var UTILITIES=function(){function n(){t()}function t(){Array.isArray||(Array.isArray=function(n){return Object.prototype.toString.call(n)==="[object Array]"})}return n(),{arrayContains:function(n,t){for(var r=!1,i=0,u=t.length;i<u;i++)if(t[i]===n){r=!0;break}return r},consoleSupport:function(){typeof console=="undefined"&&(console={log:function(){},info:function(){},warn:function(){},error:function(){}})},convertDateFormat:function(n){return n.getMonth()+1+"-"+n.getDate()+"-"+n.getFullYear()+" "+n.getHours()+":"+n.getMinutes()+":"+n.getSeconds()},detectIE:function(){var n=window.navigator.userAgent,i=n.indexOf("MSIE "),u,r,t;return i>0?parseInt(n.substring(i+5,n.indexOf(".",i)),10):(u=n.indexOf("Trident/"),u>0)?(r=n.indexOf("rv:"),parseInt(n.substring(r+3,n.indexOf(".",r)),10)):(t=n.indexOf("Edge/"),t>0)?parseInt(n.substring(t+5,n.indexOf(".",t)),10):!1},elementsArePresent:function(n){var t,i,r=!0;if(Array.isArray(n)){for(t=0;t<n.length;t++)if(typeof n[t]=="undefined"||n[t]===null||n[t].length<=0){r=!1;break}}else i=n,(typeof i=="undefined"||i===null||i.length<=0)&&(r=!1);return r},extractCampaignIndentifier:function(n){var i=n.toLowerCase().indexOf("/collection/")>=0?!0:!1,t;return t=i?n.toLowerCase().split("/collection/").pop():n.toLowerCase().split("/campaign/").pop(),t=t.split("?").shift(),t=t.split("/").shift(),{id:t,isCollection:i}},extractGuid:function(n){var t=n.match(/[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}/);return t[0]},formatMoney:function(n,t){for(var i=parseFloat(n).toFixed(2).split("."),r=/(\d+)(\d{3})/;r.test(i[0]);)i[0]=i[0].replace(r,"$1,$2");return t===!1?"$"+i[0]:"$"+i[0]+"."+i[1]},formatMVCDate:function(n){if(typeof n!="undefined"&&n!==null&&n!==""&&n.length)try{var t=new Date(parseInt(n.substr(6)));return t.getMonth()+1+"/"+t.getDate()+"/"+t.getFullYear()}catch(r){return null}else return null},generateGuid:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var t=Math.random()*16|0,i=n==="x"?t:t&3|8;return i.toString(16)})},getMonthName:function(n){return["January","February","March","April","May","June","July","August","September","October","November","December"][n]},getQueryStringValue:function(n){for(var u=window.location.search.substring(1),r=u.split("&"),i="",t=0,t=0;t<r.length;t++)if(i=r[t].split("="),i[0].toLowerCase()===n.toLowerCase())return i[1]},nullEmptyOrUndefined:function(n){return Array.isArray(n)&&n.length>0?!1:typeof n=="object"&&!Array.isArray(n)?this.objectIsNullOrEmptyOrUndefined(n):typeof n=="string"&&n.trim().length>0?!1:typeof n=="number"&&n>=0?!1:!0},isValidTime:function(n){var t=new Date("4/1/2018 "+n);return isNaN(t.getTime())===!0?!1:!0},makeSafeForCSS:function(n){return n.replace(/[^a-z0-9]/g,function(n){var t=n.charCodeAt(0);return t===32?"-":t>=65&&t<=90?"_"+n.toLowerCase():"__"+("000"+t.toString(16)).slice(-4)})},objectIsNullOrEmptyOrUndefined:function(n){var t=!0,i;if(typeof n!="undefined"&&n!==null)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t=!1);return t},parseQueryString:function(n){var f=decodeURIComponent(n.toLowerCase()),i={},u,t,r,e,o;if(f!==""){for(u=f.split(/&(?:amp;)?/gi),r=0,e=u.length;r<e;r++)t=u[r].split("="),typeof i[t[0]]=="undefined"?i[t[0]]=t[1]:(typeof i[t[0]]=="string"&&(i[t[0]]=[i[t[0]]]),i[t[0]].push(t[1]));return i}return o},randomNumber:function(n){return Math.floor(Math.random()*n)+1},scrollToElement:function(n,t){var i=0;i=n.attr("type")==="hidden"?$(n.prevAll(":visible")[0]).offset().top:n.offset().top;$("html, body").animate({scrollTop:i+(t?t:0)},2e3)},scrubQueryParams:function(n,t){function u(){for(var n="",r=0;r<t.length;r++)t[r]in i&&(n!==""&&(n+="&"),n+=t[r]+"="+i[t[r]]);return n!==""?"?"+n:""}var i=this.parseQueryString(n.search.substring(1)),r=typeof t!="undefined"&&typeof i!="undefined"?u():"";return[n.protocol,"//",n.host,n.pathname,r].join("")},serializeObjectAsQueryString:function(n){var i=[];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&i.push(encodeURIComponent(t)+"="+encodeURIComponent(n[t]));return i.join("&")},shuffle:function(n){for(var t=n.length,r,i;0!==t;)i=Math.floor(Math.random()*t),t-=1,r=n[t],n[t]=n[i],n[i]=r;return n},stripCC:function(n){return n.replace(/\b(\d[ -]*?){13,16}/g,"")},testCookieSupport:function(){document.cookie="uwTestCookie=true;";for(var t=!1,i=document.cookie.split("; "),n=0,n=0;n<i.length;n++)if(i[n].indexOf("uwTestCookie=")===0){t=!0;document.cookie="uwTestCookie=; expires=Sat, 01 Jan 2000 00:00:00 UTC;";break}return t},timeRegexAMPM:"^(1[0-2]|0?[1-9]):([0-5][0-9])( |)([AaPp][Mm])$",datetimeRegexAMPM:"^(0?[1-9]|1[0-2])(-|/)(0?[1-9]|[12][0-9]|3[01])(-|/)([0-9]{4})( )(00|[0-9]|1[0-9]|2[0-3]):([0-9]|[0-5][0-9])( |)([AaPp][Mm])$",toBool:function(n){return n.toLowerCase()==="true"?!0:!1},valueIsDefined:function(n){return typeof n!="undefined"&&n!==null&&n!==""?!0:!1}}}(),GTAG=function(){return{logException:function(n){SERVER_SETTINGS.useAnalytics&&gtag("event","exception",{description:"JS Error - "+n.message+" / "+n.filename+": "+n.lineno+" / "+window.location.pathname,fatal:!1})},logTransaction:function(n,t,i){SERVER_SETTINGS.useAnalytics&&gtag("event","purchase",{transaction_id:n,currency:"USD",value:t,items:i})},logTransactionToCustomGA:function(n,t,i,r){SERVER_SETTINGS.useAnalytics&&gtag("event","purchase",{send_to:r,transaction_id:n,currency:"USD",value:t,items:i})},logAddToCart:function(n){SERVER_SETTINGS.useAnalytics&&gtag("event","add_to_cart",{currency:"USD",value:n[0].price,items:n})},logRemoveFromCart:function(n){SERVER_SETTINGS.useAnalytics&&gtag("event","remove_from_cart",{currency:"USD",value:n[0].price,items:n})},logBeginCheckout:function(n,t){SERVER_SETTINGS.useAnalytics&&gtag("event","begin_checkout",{currency:"USD",value:n,items:t})},logShare:function(n,t,i){SERVER_SETTINGS.useAnalytics&&gtag("event","share",{method:n,content_type:t,item_id:i})},logViewItem:function(n){SERVER_SETTINGS.useAnalytics&&gtag("event","view_item",{currency:"USD",value:n[0].price,items:n})},logViewItemList:function(n){SERVER_SETTINGS.useAnalytics&&gtag("event","view_item_list",{items:n})},logSearch:function(n){if(SERVER_SETTINGS.useAnalytics){var t=decodeURIComponent(n);gtag("event","search",{search_term:t})}}}}()