if("undefined"===typeof window.AddShoppersTriggerRunner)window.AddShoppersTriggerRunner=function(){var y,n,z,t,r,H,u,s,v,w,h,A;function I(a){var b=typeof a;return null!=a&&("object"==b||"function"==b)}function Q(a,b,c){function d(b){var c=q,d=i;q=i=void 0;j=b;return h=a.apply(d,c)}function p(a){var c=a-f,a=a-j;return void 0===f||c>=b||0>c||m&&a>=k}function x(){var a=Date.now();if(p(a))return g(a);var c=setTimeout,d=x,e;e=a-j;a=b-(a-f);e=m?Math.min(a,k-e):a;l=c(d,e)}function g(a){l=void 0;if(n&&q)return d(a); q=i=void 0;return h}function e(){var a=Date.now(),c=p(a);q=arguments;i=this;f=a;if(c){if(void 0===l)return j=a=f,l=setTimeout(x,b),o?d(a):h;if(m)return l=setTimeout(x,b),d(f)}void 0===l&&(l=setTimeout(x,b));return h}var q,i,k,h,l,f,j=0,o=!1,m=!1,n=!0;if("function"!=typeof a)throw new TypeError(FUNC_ERROR_TEXT);b=+b||0;I(c)&&(o=!!c.leading,k=(m="maxWait"in c)?Math.max(+c.maxWait||0,b):k,n="trailing"in c?!!c.trailing:n);e.cancel=function(){void 0!==l&&clearTimeout(l);j=0;q=f=i=l=void 0};e.flush=function(){return void 0=== l?h:g(Date.now())};return e}function J(a){for(var b=0,c=0;cc-864E5});d.push({time:c,product:a});localStorage.setItem("asProductViewHistory",JSON.stringify(d))}}catch(e){console.log(e)}}function E(a){switch(a){case "minute":case "minutes":return 6E4;case "hour":case "hours":return 36E5;case "day":case "days":return 864E5; default:return 1E3}}function e(a,b,c){switch(c){case "is":return a===b;case "is-not":return a!==b;case "less-than":return ab;case "less-than-or-eq":return a<=b;case "greater-than-or-eq":return a>=b;default:return!1}}function o(a){if(null!=a.combinator)switch(a.combinator){case "all":for(var b=a.rules,c=0;c=d)f++,p--;else break;return e(f,c,a.operator);case "page-views":return"number"===typeof z?e(z,a.value,a.operator):!1;case "url-history":return b=document.URL.search(a.value.value),"is"==a.operator?"-1"!=b?!0:!1:"is-not"==a.operator?"-1"==b?!0:!1:!1;case "reward-points":return"number"===typeof t?e(t,a.value,a.operator):!1;case "percentage-scroll":return e(r,a.value,a.operator); case "seconds-after-load":return Date.now()>=H+1E3*a.value;case "total-time-on-site":return L.setHasRule(!0),c=u,"number"===typeof a.value?(b=a.value,d="seconds"):(b=a.value.duration,d=a.value.unitOfTime),d=E(d),e(c,b*d,a.operator);case "is-recent-session":return c=parseInt(localStorage.getItem("isErcEmail")),"number"===typeof a.value?(b=a.value,d="seconds"):(b=a.value.duration,d=a.value.unitOfTime),d=E(d),e((new Date).getTime()-b*d,c,a.operator);case "users-active-campaign":return e(m.getUsersActiveEmailCampaign(), a.value,a.operator);case "user-actions":switch(a.operator){case "unfocus":return s;case "return-to-home":return v;case "navigate-away":return w;case "abandon":return h;default:return!1}default:return!1}}function M(a,b){if(null!=a.combinator)for(var c=a.rules,d=0;dh)return!0}if("left"===g&&"0">=a.pageX||"right"===g&&a.pageX>=(document.documentElement.clientWidth||window.innerWidth||document.body.clientWidth))return!0}return!1}function P(a){a=a?a:window.event;S(a,"top")&&"select"!==a.target.nodeName.toLowerCase()&&(h=!0,g(),document.removeEventListener("mouseout",P))}function m(a,b){a&&a.rules&&0=this.settings.scrollThreshold)this.settings.alertTask(),this.didAlert=!0},init:function(a){this.settings=a||{alertThreshold:50,scrollThreshold:30,resetOnClear:!1,alertTask:function(){},scrollTask:function(){}};this.delay=this.settings.delay||50;window.addEventListener("scroll",this.checkScrollSpeed.bind(this))}},L={_localStorageSetTimeField:"asTimeOnSiteSetTime",_localStorageValueField:"asTimeOnSiteValue", _localStorageExpirationPeriod:432E6,_intervalTimeout:1E3,_hasRule:!1,_lastSetTime:null,_value:0,init:function(){this._hasRule=!1;this._lastSetTime=(new Date).getTime();u=this._value=this._getValueFromLocalStorage();setInterval(this._intervalHandler.bind(this),this._intervalTimeout)},setHasRule:function(a){this._hasRule=!!a},_intervalHandler:function(){var a=(new Date).getTime();this._value+=a-this._lastSetTime;this._lastSetTime=a;u=this._value;this._saveValueToLocalStorage();this._hasRule&&g()},_getValueFromLocalStorage:function(){try{var a= (new Date).getTime(),b=localStorage.getItem(this._localStorageSetTimeField),c=null==b||isNaN(Number(b))?a:Number(b);if(a-c