(()=>{"use strict";var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var i=t[e]={exports:{}};return r[e].call(i.exports,i,i.exports,o),i.exports}o.m=r,e=[],o.O=(r,t,n,i)=>{if(!t){var l=1/0;for(s=0;s=i)&&Object.keys(o.O).every((e=>o.O[e](t[u])))?t.splice(u--,1):(a=!1,i0&&e[s-1][2]>i;s--)e[s]=e[s-1];e[s]=[t,n,i]},o.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return o.d(r,{a:r}),r},o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={121:0};o.O.j=r=>0===e[r];var r=(r,t)=>{var n,i,l=t[0],a=t[1],u=t[2],f=0;if(l.some((r=>0!==e[r]))){for(n in a)o.o(a,n)&&(o.m[n]=a[n]);if(u)var s=u(o)}for(r&&r(t);f{"use strict";n.r(t),n.d(t,{ABTest:()=>se.Ay,ADDON_SCRIPT_VERSION:()=>le,CE_API:()=>On.i,CommonEventHandlers:()=>yi,Emitter:()=>st.v,ExitIntent:()=>Rn,FormData:()=>mt.f,Goal:()=>ie.A,IndexedDB:()=>u.mc,JSON:()=>vi,NativeURL:()=>Ci,Preview:()=>Je,READY_STATE_PATTERN:()=>Rt,Tracker:()=>Ei,URL:()=>Et.j,addListener:()=>r.ch,addTag:()=>r.Ap,addToCart:()=>Zn,benchmark:()=>o.aE,benchmarkEnabled:()=>o.$J,botDetector:()=>It,checkoutCompleted:()=>ti,clearIdentity:()=>bt.SY,clearSegmentSession:()=>He.RY,click:()=>r.jM,consent:()=>u.vJ,converted:()=>Jn.H$,cookieStorage:()=>me.i,createRunner:()=>rt.ji,customEvent:()=>r.ex,debug:()=>o.Yz,debug2:()=>o.cC,debug2Enabled:()=>o.$Q,debugEnabled:()=>o.dK,debugError:()=>at.A,decreaseSessionWorth:()=>bt.LV,deleteCookie:()=>r.Yj,domReadySetup:()=>$t,each:()=>r.__,errorTracking:()=>at.o,evaluateSegmentEvent:()=>He.Bi,fp:()=>wi,get:()=>ce.get,getCensoredElements:()=>gt,getCookie:()=>r.Ri,getCookieMode:()=>u.mr,getCookies:()=>r.OR,getLastFlow:()=>ae.lD,getLastFlowData:()=>ae.hN,getMatchedSegmentIds:()=>He.cZ,getSegmentTracker:()=>He.MH,getSession:()=>Kn,getSessionId:()=>Xn,goalConversion:()=>Jn.og,goalIdString:()=>Jn.CT,hasFeature:()=>r.jI,http:()=>ce,hudMain:()=>St,identify:()=>bt.ls,ignore:()=>r.Xe,increaseSessionWorth:()=>bt.vn,inlineWorker:()=>rt.UO,isBot:()=>At,isConsent:()=>u.VK,listen:()=>r.KT,loadAddonScript:()=>ye,loadAddonThirdpartyScript:()=>we,loadHUD:()=>yt,matchURL:()=>ft.$,matchesAddon:()=>Qe,matchesLegacyOrSegments:()=>He.mF,matchesSegments:()=>He.YZ,matchesSelector:()=>r.B5,matchesTrigger:()=>Ke._9,nextGoalConversionValue:()=>Jn.uw,notifyError:()=>An,onDOMReady:()=>Ut,pagesTracker:()=>cn,parseNumberString:()=>Qn.s,promisePool:()=>ct,registerRemoteOp:()=>rt.PV,remoteLog:()=>ut,removeListener:()=>r.pQ,resetSession:()=>qn,set:()=>r.hZ,setCurrency:()=>Jn.MN,setRecordingsSamplingRate:()=>Ft,setSessionWorth:()=>bt.LG,showCTA:()=>Fe,showFeedbackSurvey:()=>Le,showSurvey:()=>Me,startCheckout:()=>ei,startRecording:()=>Gt,stopRecording:()=>Kt,testModeCheck:()=>r.ou,traceLog:()=>o.aQ,trackEvent:()=>Jn.sx,trackSurveyResponse:()=>it,triggerAddons:()=>Xe,updateSegmentState:()=>He.ww,userDataMain:()=>Nn,userMainTestMode:()=>Tn,uuid_v1:()=>ot.O,writeCookie:()=>r.o});var i={};n.r(i),n.d(i,{previewHandler:()=>Ue,showFeedbackSurvey:()=>Le,showSurvey:()=>Me,trigger:()=>Ve});var s={};n.r(s),n.d(s,{previewHandler:()=>We,showCTA:()=>Fe,trigger:()=>Ge});n(5102);var r=n(390),o=n(884);const a=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,c=/^(?=.*\d)(?=.*[a-f])[0-9a-f]{6,24}$/i,l=/(?:^|[-_])(?:\dq\d{2}|q\d[-_]\d{4})(?:$|[-_])/i;var u=n(98);"undefined"==typeof CE2&&(globalThis.CE2={}),CE2.userDataToJs=function(){const e=[["uid","uid"],["snapshots","snapshots"],["status","status"],["flows","flows"],["sites","sites"],["USER_SCRIPT_VERSION","updated_at"],["__CE_HOST__","ce_app_url"],["COMMON_SCRIPT","common_script_url"],["COMMON_SCRIPT_SECURE","common_script_url"],["TRACKING_SCRIPT","tracking_script_url"],["TRACKING_SCRIPT_SECURE","tracking_script_url"],["AUTH_KEY","hud_auth_key"],["HUD","hud"],["GLOBAL_IP_BLOCK_LIST","global_ip_block_list"],["IS_USING_IP_BLOCKING","is_using_ip_blocking"],["TRACKING_DEST_NEW","v6_tracking_dest"],["TRACKING_DEST_NEW_SECURE","v6_secure_tracking_dest"],["DEST_V11","v11_tracking_dest"],["FT_DEST","flow_tracking_dest"],["PAGE_VIEWS_LIMIT_REACHED","page_views_limit_reached"],["NUMBER_OF_RECORDINGS","recordings_number"],["RECORDINGS_ACTIVATION","recordings_activation"],["ERROR_TRACKING","error_tracking"],["DEST_ERRORS_API","error_tracking_dest"],["DEST_ERRORS_API_DOMAIN","error_tracking_script_url"]];for(let t=0;tp(n)})}CE2.getNativeXMLHttpRequest=function(){return new CE2.Native.XMLHttpRequest},CE2.insertScript||(CE2.insertScript=function(e,t){const n=t&&t.parentNode?t.parentNode:document.head||document.documentElement;try{const i=(0,r.GE)("Node");t?i.prototype.insertBefore.call(n,e,t):i.prototype.appendChild.call(n,e)}catch(i){t?n.insertBefore(e,t):n.appendChild(e)}}),"undefined"!=typeof Prototype&&(0,o.Yz)("[Loading] WARNING: Prototype.js library detected, it can cause tracking issues"),(0,o.Yz)(`[Loading] Cookie mode=${(0,u.mr)()}`),CE2.sessionTags=[],CE2.p={},CE2.state.ignoredElements=[],CE2.state.clickCaptors=[],CE2.state.logHistory=[],CE2.state.logHistoryEnabled=!1,CE2.state.userData=[],CE2.getBox||(CE2.getBox=()=>{}),CE2.getUserDataTime||(CE2.getUserDataTime=function(){if(window.performance&&performance.getEntriesByType){var e=performance.getEntriesByType("navigation");if(e&&e[0])return"back_forward"===e[0].type?parseInt(+new Date/3e5,10):1}return parseInt(+new Date/36e5,10)}),CE2.loadScript||(CE2.loadScript=function(e,t){const n=document.createElement("script");n.type="text/javascript",n.async=!0,n.src=e,n.onload=()=>{t&&t()};const i=document.getElementsByTagName("script")[0];CE2.insertScript(n,i)}),CE2.loadTrackingScript||(CE2.loadTrackingScript=function(e){return e()}),CE2.loadSessionTrackingScript||(CE2.loadSessionTrackingScript=function(e){return e()}),CE2.createUrlFingerprint=function(e,{includeHash:t=!1}={}){const{host:n}=e;let{pathname:i}=e;const s=t&&e.hash||"";return i=i.split("/").map((e=>function(e){if(!e)return!1;if(/^\d+$/.test(e)||a.test(e)||c.test(e))return!0;const t=e.split(/[-_]/),n=e.match(/\d+/g)||[],i=n.reduce(((e,t)=>e+t.length),0);return!t.some(((e,n)=>n>0&&/^\d{4}$/.test(e)&&/^\d{4}$/.test(t[n-1])))&&!l.test(e)&&(!!/^\d{2,}$/.test(t[t.length-1])||n.length>=2&&i>=4||/\d{3,}/.test(e))}(e)?"*":e)).join("/"),`${n.replace(/^(www|m)\./i,"")}${i}${s}`.toLowerCase().replace(/\/$/,"")},CE2.w&&!CE2.w.CE_URL_FINGERPRINT&&(CE2.w.CE_URL_FINGERPRINT=function(){return CE2.createUrlFingerprint(CE2.w.location)}),CE2.autoStart=CE2.w&&("undefined"==typeof CE_MANUAL_START||!CE_MANUAL_START),CE2.loadTrackingScript||(CE2.loadTrackingScript=function(e){return e()}),CE2.loadSessionTrackingScript||(CE2.loadSessionTrackingScript=function(e){return e()}),CE2.w&&(CE2.loadCEAPI=function(){CE2.w.CE_API=CE2.CE_API(CE2.w.CE_API)});const g="[\\s\\u00a0\\u2028\\u2029]+";let f;if("undefined"!=typeof Intl&&Intl.Segmenter)try{f=new Intl.Segmenter}catch(e){}const m={whitespace:new RegExp(g,"g"),strip:new RegExp(`^${g}|${g}$`,"g"),href:/\bhref="(.*?)"/i,ipHost:/^([\d\.]+|\[[a-f\d:]+\])$/i,allChars:/\p{RI}\p{RI}|\p{Emoji}(\p{EMod}|\u{FE0F}\u{20E3}?|[\u{E0020}-\u{E007E}]+\u{E007F})?(\u{200D}\p{Emoji}(\p{EMod}|\u{FE0F}\u{20E3}?|[\u{E0020}-\u{E007E}]+\u{E007F})?)*|./gsu};function E(e,t){const n=e.replace(m.strip,"");return t?n.replace(m.whitespace," "):n}const C=2048,v=65535-C;let y,w,_=0;function S(e){const t=e.defaultView,n=e.documentElement;if(n.scrollHeight>t.innerHeight)return e.scrollingElement?e.scrollingElement:"BackCompat"===e.compatMode?e.body:n;if(!e.querySelectorAll||"number"!=typeof e.body.scrollHeight)return;const{body:i}=e,s=Array.from(e.querySelectorAll("html, body, body *")).filter((e=>!e.ownerSVGElement)),r=i.getElementsByTagName("*").length;for(let e=0,n=Math.min(7e3,s.length);e=n.scrollHeight)continue;if(!(n.offsetWidth||n.offsetHeight||n.getClientRects().length))continue;if(n.getElementsByTagName("*").length/r<.5)continue;if(n.clientHeight>window.innerHeight)continue;const i=n.getBoundingClientRect();if(!(Math.floor(i.width||i.right-i.left)<.75*t.innerWidth)&&!(Math.floor(i.height||i.bottom-i.top)<.75*t.innerHeight))return n}}function b(e){const t=(e=e||window).document,n=Date.now();return w!==e.location.pathname?(y=S(t),w=e.location.pathname,_=n):y&&y.scrollHeight<=y.clientHeight&&n-_>2e3&&(y=S(t),_=n),y=y||("BackCompat"===t.compatMode?t.body:t.documentElement),{left:y.scrollLeft,top:y.scrollTop,width:e.innerWidth,height:e.innerHeight,root:y}}const k={};k.opera=k.ie=k.chrome=k.safari=k.firefox=!1,k.browser="unknown";const I="undefined"!=typeof window?window:{},T="undefined"!=typeof navigator?navigator:{},N=T.userAgent;function A(e,t){const n=Math.min(t.width,t.height),i=E(e.coords,!0).split(/[^\d\.%]+/).map((e=>function(e,t){let n=parseInt(e,10);return-1!=e.indexOf("%")&&(n*=.01*t),isNaN(n)?null:n}(e,n)));let s,r,o;if(!/circle/i.test(e.shape)){s=[],r=[];for(let e=0,t=i.length;e=3)return[s,r,o]=i,{left:s-o,top:r-o,width:2*o,height:2*o}}function R(e){const t=function(e){const t=new RegExp(`(^|#)${e.parentNode.name}`,"i"),n=e.ownerDocument.getElementsByTagName("IMG");let i,s;for(i=0;s=n[i++];)if(t.test(s.useMap))return s}(e);if(!t)return;const n=O(t),i=A(e,n);return i?{left:n.left+i.left,top:n.top+i.top,width:i.width,height:i.height}:void 0}function O(e,t,n,{usePseudo:i=!1}={}){let s;if(t=t||{},"AREA"==e.nodeName)s=R(e),s&&(t.left=s.left,t.top=s.top,t.width=s.width,t.height=s.height);else if(e.getBoundingClientRect){s=e.getBoundingClientRect();const n=b();if(t.left=Math.floor(s.left+n.left),t.top=Math.floor(s.top+n.top),k.webkit&&k.webkitVersion<533&&"relative"==e.style.position&&(t.left+=parseInt(e.style.left,10),t.top+=parseInt(e.style.top,10)),t.width=Math.floor(s.width||s.right-s.left),t.height=Math.floor(s.height||s.bottom-s.top),i&&(0===t.width||0===t.height)){const n=function(e){let t,n;for(let i=0,s=["::before","::after"];ie.nodeType===Node.TEXT_NODE))))}I.opera&&"function"==typeof I.opera.version?(k.browser="opera",k.opera=!0,k.operaVersion=parseInt(I.opera.version(),10)):/\bMSIE\b/.test(N)?(k.browser="ie",k.ie=!0,k.ieVersion=parseInt(/MSIE (\d+)\.\d+/.exec(T.userAgent)[1],10),k.ieQuirksMode="BackCompat"==document.compatMode):/\b(iPhone|iP[ao]d)\b/.test(N)?(k.browser="iphone",k.iphone=!0,k.webkit=!0):/\bChrome\b/.test(N)?(k.browser="chrome",k.chrome=!0,k.webkit=!0):/AppleWebKit/.test(T.appVersion)?(k.browser="safari",k.safari=!0,k.webkit=!0):/Mozilla/i.test(N)&&!/compatible|webkit/i.test(N)&&(k.browser="firefox",k.firefox=!0),k.webkit&&(k.webkitVersion=parseInt(/AppleWebKit\/(\d+)/.exec(N)[1],10));const U=function(e){if(this.src=e,this.protocol=this.host=this.port=this.path=this.qs=this.hash=this.query=null,e){const t=typeof e;"string"==t?this.initWithString(e):"object"==t&&this.initWithURI(e)}};function $(e){try{return decodeURIComponent(e)}catch(t){return window.unescape(e)}}U.pattern=/^\s*([\S]+?:\/\/)?([^\s\/]+?@)?([^:\/\?\#]+)?(\:\d+)?(\/?[^#\?\s]*)?([\?][^#\s]*)?([#]\S+)?/i,U.prototype={initWithString(e){const t=U.pattern.exec(e),[n,i,s,r,o,a,c,l]=t;i||"/"==e.charAt(0)?(i&&(this.protocol=i.substr(0,i.indexOf(":"))),this.host=r||null,o&&(this.port=Number(o.substr(1))),a?this.path=$(a):this.host&&(this.path="/")):this.path=$((r||"")+(a||"")),c&&(this.qs=function(e,t){if(null==e||/^\s*$/.test(e))return null;const n={};let i=null;const s=e.replace(/\+/g," ").split(t||"&");let r,o;for(r=0,o=s.length;re.segment)):[...i.matchAll(m.allChars)].map((e=>e[0])),s.slice(0,t).join("")}(E(function(e){const t=void 0===e.textContent?"innerText":"textContent";let n=e[t].substr(0,16384);function i(e,n){let i,s;for(i=0;s=n[i++];)e=e.replace(s[t],"");return e}return n=i(n,e.getElementsByTagName("SCRIPT")),n=i(n,e.getElementsByTagName("NOSCRIPT")),n}(e),!0),t)}function z(e){if(!k.ie)return e.getAttribute("href");{const t=e.outerHTML.match(m.href);if(t)return E(t[1])}}function j(e){return/^\s*data:/.test(e)?E(e).substr(0,100):new U(e).simplify()}function W(e){const t=function(e){let t=e.className;if(t&&"string"==typeof t)return t=E(t.replace(/(\s|^)-ce-capture\b/g,"")).split(/\s+/),t.sort(),t.join(" ")}(e);if(!t||M<=6)return t;const n=[];for(let e=0,i=t.split(/\s+/);e=16?q:e>=13?K:12===e?G:null}function Q(e){return"string"==typeof e?`[${Y(function(e){const t=2147483648+function(e){let t=0;if(0==e.length)return t;for(let n=0;n=13?x:P}(t)[n]||0;return 0===i&&t>=13?t>=17?n.replace(/\d+/g,""):n:i}function ee(e){const t=[];let n,i,s="";for(let i=0,s=e.length;i2)s+=`${Q(n.type)}x${Y(n.count)}`;else for(let e=0;e=13,r=(s&&e.shadowRoot||e).querySelectorAll("*");for(let e=0;e=13&&o.ownerSVGElement||(i&&o.nodeName in i||D(o)||(n.push({type:Z(o,t)}),s&&o.shadowRoot&&n.push(...te(o.shadowRoot,{formatVersion:t,descendants:n}))))}return n}const ne=function(e,{formatVersion:t,ignore:n}={}){"number"!=typeof t&&(t=n?12:11);const i=function(e){return D(e)?1===e.children.length&&"FONT"===e.firstElementChild?e.parentElement:e.parentElement.parentElement:e}(e);this.type=Z(i,t),this.elders=ee(function(e,{formatVersion:t=11}={}){let n,i=e;const s=[],r=J(t),o=t>=13;for(;;){if(i.previousElementSibling)n=1,i=i.previousElementSibling;else if(i.parentNode&&i.parentNode!==document.body&&i.parentNode!==document.documentElement)n=2,i=i.parentNode;else{if(!o||i.nodeName!==X||!i.host)break;n=2,i=i.host}if(!(r&&i.nodeName in r||o&&i.nodeName===X||D(i)||(s.push({type:Z(i,t),relation:n}),!(s.length>=32))))break}return s}(i,{formatVersion:t})),this.youngerSiblings=ee(function(e,{formatVersion:t=11}={}){const n=[],i=J(t);for(let s=e.nextElementSibling;n.length<32&&s;s=s.nextElementSibling)i&&s.nodeName in i||D(s)||n.push({type:Z(s,t)});return n}(i,{formatVersion:t})),this.descendants=ee(te(i,{formatVersion:t})),O(i,this,null,{usePseudo:t>=16}),this.name=B(i),t>=16&&(this.visible=F(i))};ne.fromObject=function(e){if(e instanceof ne)return e;const t=Object.create(ne.prototype);for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},ne.prototype.toString=function(){return`${ne.hex(this.type)};${this.elders};${this.youngerSiblings};${this.descendants}`};var ie=n(5832),se=n(8356);class re{constructor(e){this.site=e,this.clock=CE2.clock,this.ratio=e.recording_ratio}validRatio(){return!Number.isNaN(Number(this.ratio))&&null!=this.ratio}canRecord(){const e=CE2.w.innerWidth||CE2.d.documentElement.clientWidth;if((CE2.w.innerHeight||CE2.d.documentElement.clientHeight)<10||e<10)return this.debug("Sampling rejected: too small screen size"),!1;let t="undefined"!=typeof CE_ENFORCE_RECORDING&&CE_ENFORCE_RECORDING;const n=CE2.data&&CE2.data.dkey;if(!t&&n&&CE2.w&&CE2.w.location.href.indexOf(`ced=${n}`)&&CE2.w.location.href.indexOf("ceer=1")>-1&&(t=!0),t)return this.debug("CE_ENFORCE_RECORDING applied"),this._setAppliedStrategy("enforced"),!0;const i=CE2.state.overridenRecordingSamplingRate;if(i){this.debug(`Sampling Ratio: enforced to ${i}`);const e=100*Math.random()e)}customSamplingApplies(){if(!this.clock)return!1;const e=CE2.clock.getDate();if(!e)return!1;const t=new Date(1e3*parseInt(this.site.recordingSettings.samplingStartDateUnix,10)),n=new Date(1e3*parseInt(this.site.recordingSettings.samplingEndDateUnix,10)),i=new Date(1e3*parseInt(this.site.recordingSettings.samplingUpdatedAt,10)),s=new Date(1e3*parseInt(this.site.recordingSettings.samplingCompletedAt,10));return!(i&&s&&s>i)&&(t<=e&&e<=n)}customPeriodEnded(){if(!this.clock)return!1;return CE2.clock.getDate()>new Date(1e3*parseInt(this.site.recordingSettings.samplingEndDateUnix,10))}debug(e,t){(0,o.Yz)(`[Sessions] ${e}`,t)}_strategy(){return"custom"===this.site.recordingSettings.samplingStrategy?"custom":"consecutive"===this.site.recordingSettings.samplingStrategy?"consecutive":"no_sampling"===this.site.recordingSettings.samplingStrategy?"no_sampling":"uniform"}_key(){return"custom"===this._strategy()||"consecutive"===this._strategy()?btoa(`${this.site.id}|${this.site.recordingSettings.samplingUpdatedAt}`):"all"}}class oe{constructor(e){this.site=e,this.clock=CE2.clock,this.ratio=e.web_analytics_ratio}validRatio(){return!Number.isNaN(Number(this.ratio))&&null!=this.ratio}debug(e,t){(0,o.Yz)(`[WebAnalytics] ${e}`,t)}canRecord(){const e=Math.random()*this.ratio;return this.debug("Sampling Ratio",{random:e,ratio:this.ratio,accepted:e<1}),e<1}}var ae=n(7823);var ce=n(4933);const le=CE2.w?.CE_ADDON_VERSION||"1.0.147",de="preview",ue="testMode",he="pageChange",pe="survey",ge="cta",fe=2;var me=n(9152);const Ee={},Ce={survey:"Survey",cta:"CTA"},ve=()=>new Promise((e=>{CE2.loadTrackingScript((()=>{e()}))})),ye=(e="index.js")=>Ee[e]?Promise.resolve():new Promise((t=>{const n=((e="index.js")=>{const{data:t}=CE2,n=`/scripts/addons/${le}/${e}`;return CE2.w.CE_ADDON_HOST?[CE2.w.CE_ADDON_HOST,n].join(""):new CE2.Native.URL(n,t.common_script_url).toString()})(e);CE2.loadScript(n,(()=>{Ee[e]=!0,t()}))})),we=e=>Ee[e]?Promise.resolve():new Promise((t=>{const n=(e=>{const{data:t}=CE2,n=`/scripts/addons/thirdparty/${e}`;return CE2.w.CE_ADDON_HOST?[CE2.w.CE_ADDON_HOST,n].join(""):new CE2.Native.URL(n,t.common_script_url).toString()})(e);CE2.loadScript(n,(()=>{Ee[e]=!0,t()}))})),_e=async e=>{CE2[Ce[e]]||(await ye(),CE2.loadAddon?await CE2.loadAddon(e):(0,o.Yz)("[Addons] CE2.loadAddon not defined after loading addont script"))},Se=async e=>{const t=(e=>{const t=document.getElementsByTagName(e)[0];return t?[...t.shadowRoot.querySelectorAll("link[rel=stylesheet]")]:[]})(e).filter((e=>!e.sheet));if(0===t.length)return!0;(0,o.Yz)(`[Addons] not loaded files: ${t.length}`);const n=t.map((e=>((0,o.Yz)(`[Addons] ${e.href}: schedule waiting`),new Promise((t=>{let n,i=!1;e.addEventListener("load",(()=>{i=!0,(0,o.Yz)(`[Addons] ${e.href}: loaded`),n&&clearTimeout(n),t("ok")})),n=setTimeout((()=>{!1===i&&((0,o.Yz)(`[Addons] ${e.href}: timed out`),t("timed out"))}),5e3)})))));return 0===(await Promise.all(n)).filter((e=>"string"==typeof e&&"timed out"===e)).length},be=e=>{const{sampling:t,external:n}=e?.config||{};if(!e||"number"!=typeof t||!0===n)return!1;let i=me.i.get("as");if("boolean"!=typeof i){const e=100*Math.random();i=e>t,(0,o.Yz)("[Addons] Sampling",{seed:e,sampling:t}),me.i.set("as",i)}return i},ke="initiated",Ie="dataLoaded",Te="scriptLoaded",Ne="dataMissing",Ae="https://core.crazyegg.com";class Re{constructor(e,t){this.type=e,this.key=`ce_${e}_preview`,this.isLoadedByHash=!1,this.currentAddon=null,this.onDisplay=t}isPreview(){const e=!!this.getHash()||this.isLoadedByHash;return e&&(CE2.surveyPreviewMode=!0),e}isOpenedWindow(){return window.opener}isPlatformOrigin(e){const{data:t}=CE2,n=t.survey_launch_origins||t.addon_launch_origins||[];return[t.ce_app_url,...n].includes(e)}isValidHash(e){if(!e||"string"!=typeof e)return!1;const t=e.split(".");if(!/^[a-zA-Z0-9_-]{43}$/.test(t[0]))return!1;if(!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.test(t[1]))return!1;const n=t.slice(2).join(".");return!(n&&n!==CE2.w.location.hostname&&!CE2.w.location.hostname.endsWith(`.${n}`))}getHash(){const e=CE2.w.location.hash.match(new RegExp(`#ce-${this.type}-(.+)`));if(e&&e[1]){const t=e[1];return this.isValidHash(t)?(CE2.Native.sessionStorage&&CE2.Native.sessionStorageWrapper.write(this.key,t),t):null}if(!CE2.Native.sessionStorage)return null;const t=CE2.Native.sessionStorageWrapper.read(this.key);return this.isValidHash(t)?t:null}load(){const e=this.getHash();if(e)this.loadData(e).catch(console.error).then((e=>{e&&(this.currentAddon=e,this.onDisplay(e))}));else{window.opener&&window.opener.postMessage({status:ke},Ae);const e=t=>{t.source===window.opener&&this.isPlatformOrigin(t.origin)&&t.data&&"object"==typeof t.data&&t.data.token&&(this.isLoadedByHash=!0,this.loadData(t.data.token).then((e=>{e&&e.type!==this.type||(CE2.Native.sessionStorage&&CE2.Native.sessionStorageWrapper.write(this.key,t.data.token),t.source.postMessage({status:e?Ie:Ne},Ae),e&&((0,r.ch)(window,`${this.type}Loaded`,(()=>{t.source.postMessage({status:Te},Ae)})),this.currentAddon=e,this.onDisplay(e)))})),window.removeEventListener("message",e))};window.addEventListener("message",e)}CE2.loaded=!0}loadData(e){return new Promise(((t,n)=>{const{data:i}=CE2,s=new CE2.Native.URL(i.survey_preview_dest||i.addon_preview_dest);s.searchParams.set("token",e),s.searchParams.set("user",i.uid),s.searchParams.set("host",CE2.w.location.hostname),(0,ce.get)(s.href,(e=>{e&&200===e.status&&e.responseText?t(CE2.Native.JSON.parse(e.responseText.trim())):n(new Error("Preview addon not found"))}))}))}}const Oe=(e,t,n)=>{if(!e||!e.CE_EXTERNAL_SURVEY||e.parent===e)return!1;const i=t?.private?.postToParent;if(!i||!0!==i.enabled)return!1;const s=i.origin;if(!(e=>{if("string"!=typeof e||""===e)return!1;try{return new URL(e).origin===e}catch(e){return!1}})(s))return!1;try{return e.parent.postMessage({source:"crazyegg-survey",type:n,surveyId:t?.id},s),!0}catch(e){return!1}};var De=n(9327);const Ue=new Re("survey",(async e=>(await _e(pe),CE2.launchAddon(pe,{mode:de,addon:e}))));let $e=[];const Pe=(e,t)=>{if(!(0,De.a)("surveys"))return(0,o.Yz)("[Addons] Survey event ignored: feature disabled");const n=[e.id,t],i=CE2.tracker.newEvent(CE2.eventTypes.SURVEY_COMPLETE,{attributes:n});CE2.tracker.send(i)},xe=()=>{const{Survey:e}=CE2;for(let e=0,t=$e;e{})),e.on("notTrigger",(()=>{})),e.on("surveyComplete",((e,t)=>{Pe(e,t),Oe(CE2.w,e,"survey-complete")})),e.on("surveyClose",Pe),e.on("surveyDisplay",(({id:e})=>{if(!(0,De.a)("surveys"))return(0,o.Yz)("[Addons] Survey display ignored: feature disabled");(0,ce.sendCounter)("survey:view",e)})),e.on("questionDisplay",((e,t)=>{if(!(0,De.a)("surveys"))return(0,o.Yz)("[Addons] Survey question display ignored: feature disabled");const n=e.questions[t]?.id;n&&(0,ce.sendCounter)("question:view",`${e.id}_${n}`)}))]},Me=async e=>{if(!(0,De.a)("surveys"))return void(0,o.Yz)("[Addons] Survey ignored: feature disabled");if("string"!=typeof e)throw new Error("Survey ID must be a string");const t=(CE2.data.addons||[]).find((t=>t.id===e));t?be(t)?(0,o.Yz)(`Addon ${e} is sampled`):(await ve(),await _e(pe),xe((CE2.site,CE2.getSession(CE2.site?.id))),CE2.Survey.showSurvey(e)):(0,o.Yz)(`Addon ${e} is not found`)},Le=async e=>{if(!(0,De.a)("surveys"))return void(0,o.Yz)("[Addons] Feedback survey ignored: feature disabled");if("string"!=typeof e)throw new Error("Survey ID must be a string");const t=(CE2.data.addons||[]).find((t=>t.type===pe&&t.id===e));t?be(t)?(0,o.Yz)(`Addon ${e} is sampled`):(await ve(),await _e(pe),xe((CE2.site,CE2.getSession(CE2.site?.id))),CE2.Survey.showFeedbackSurvey(e)):(0,o.Yz)(`Addon ${e} is not found`)},Ve=async(e,t)=>{if(!(0,De.a)("surveys"))return void(0,o.Yz)("[Addons] Survey disabled");const{addons:n}=CE2.data;if(CE2.w.CE_EXTERNAL_SURVEY)return(async e=>{if((0,De.a)("surveys")){if(CE2.w.CE_EXTERNAL_SURVEY_PREVIEW&&"preview"===e)return await _e("survey"),Ue.load();if("preview"!==e){await ve();const{addons:e}=CE2.data;e.length&&(CE2.state.survey=e[0],await Me(e[0].id))}}else(0,o.Yz)("[Addons] External survey disabled")})(e);if(e===de)return Ue.isPreview()&&await _e(pe),Ue.load();0!==(n||[]).filter((e=>e.type===pe&&!1===be(e))).length?Ue.isPreview()||await(async e=>{await ve(),await _e(pe),xe(),await CE2.launchAddon(pe)})():(0,o.Yz)("[Addons] Disabled")};var He=n(9979);const ze="cta_converted",je=e=>{if(!(0,De.a)("ctas"))return(0,o.Yz)("[Addons] CTA click ignored: feature disabled");const t=(0,r.IS)("sessionId");if(!e||!t)return;(e=>{if(!(0,De.a)("ctas"))return;const t=CE2.data.addons.find((({id:t})=>t===e.id));if(t?.goal_id){const e=CE2.Native.JSON.parse(CE2.Native.sessionStorageWrapper.read(ze)||"{}");e[t.goal_id]={id:t.id,goalId:t.goal_id,timestamp:Date.now()},CE2.Native.sessionStorageWrapper.write(ze,CE2.Native.JSON.stringify(e))}})(e);const n={addonType:fe,addonId:e.id};(0,ce.sendCounter)("cta:click",e.id),CE2.tracker?.sendCtaClick(n),null!=e.id&&(0,He.ww)("clicked_cta",String(e.id))},We=new Re("cta",(async e=>(await _e(ge),CE2.launchAddon(ge,{mode:de,addon:e}))));let Be=[];const Ye=e=>{const{CTA:t}=CE2;for(let e=0,t=Be;e{})),t.on("notTrigger",(()=>{})),t.on("display",(e=>{e&&(async({id:e})=>{if(!(0,De.a)("ctas"))return(0,o.Yz)("[Addons] CTA view ignored: feature disabled");await Se("crazyegg-cta")&&(0,ce.sendCounter)("cta:view",e)})(e)})),t.on("click",(t=>{t&&je(t,e.site)}))]},Fe=async e=>{if(!(0,De.a)("ctas"))return void(0,o.Yz)("[Addons] CTA ignored: feature disabled");if("string"!=typeof e)throw new Error("CTA ID must be a string");const t=(CE2.data.addons||[]).find((t=>t.id===e));t?be(t)?(0,o.Yz)(`Addon ${e} is sampled`):(await ve(),await _e(ge),Ye({site:CE2.site,session:CE2.getSession(CE2.site?.id)}),CE2.CTA.showCTA(e)):(0,o.Yz)(`Addon ${e} is not found`)},Ge=async(e,t)=>{if(!(0,De.a)("ctas"))return void(0,o.Yz)("[Addons] CTA disabled");if(e===de)return We.isPreview()&&await _e(ge),We.load();const{addons:n}=CE2.data;0!==(n||[]).filter((e=>e.type===ge&&!1===be(e))).length&&(We.isPreview()||await(async e=>{await ve(),await _e(ge),Ye(e),await CE2.launchAddon(ge)})(t))};var Ke=n(623);const qe=[i,s],Xe=(e,t={})=>{for(let n=0;n!!e&&(be(e)?(t?.debugCallback?.("sampled",!1),!1):(0,He.mF)({resourceType:e.type,resourceId:e.id},(()=>(0,Ke._9)(e.config?.audience?.conditions,t)))),Ze="text-entry/email",et=["multi-choice/single","multi-choice/multi","text-entry/short","text-entry/long",Ze,"rating/stars","rating/numerical","rating/smiley","rating/NPS"],tt=e=>!e.some((e=>0!==e&&!e)),nt=e=>[e.questionType,e.questionId,e.questionText,e.response,e.questionPosition,e.otherResponse],it=(e,t,n=null)=>{if(!(0,De.a)("surveys"))return(0,o.Yz)("Survey: feature disabled");if(!e||!t.length)return(0,o.Yz)("Survey: invalid arguments");if(!((e,t)=>{const n=!e||tt(Object.values(e)),i=!t.map((e=>tt(Object.values(e))&&et.includes(e.questionType))).some((e=>!e));return n&&i})(n,t))return(0,o.Yz)("Survey: Invalid survey or response structure");if(CE2.surveyPreviewMode)return(0,o.Yz)("Survey: do not send responses in preview mode");const i=t.map(nt),s={surveyId:n?.id||"",surveyFormatVersion:n?.formatVersion||"",groupResponseId:e,whitelistedResponsesKeys:i},r=t.find((e=>e.questionType===Ze&&e.response));CE2.tracker?.sendSurveyResponse(s,r?.response),n?.id&&(0,He.ww)("answered_survey",String(n.id))};var st=n(8401),rt=n(1137),ot=n(55),at=n(3032);const ct=function(e,t,n){return new Promise(((i,s)=>{const r=[],o=[];let a,c=0,l=0;const d=()=>{if(l>=e.length&&!a)return void(a=Promise.all(o).then((()=>{i(r)})).catch((e=>{s(e)})));if(l>=e.length)return;const u=e[l];l+=1;const h=n(u);o.push(h),h.then((e=>{r.push(e),c-=1,d()})).catch((e=>{s(e)})),c+=1,c{t.status<200||t.status>=300?Ct(`Error loading latest HUD version: ${t.status} ${t.statusText}`):e(t.responseText.trim())}))}(),CE2.state.loadedHUD=!0,CE2.Native.sessionStorage.setItem("powerup","true"),!0)}catch(e){return Ct(e),!1}},wt=function(){try{if(vt())return yt(),!0}catch(e){Ct(e)}return!1},_t={startListener(){CE2.w.opener&&CE2.w.addEventListener("message",_t.onMessage)},stopListener(e,t){CE2.w.removeEventListener("message",_t.onMessage),e.postMessage({hudLaunched:!0},t)},onMessage(e){try{if(Ct("Received message"),e.source!==CE2.w.opener)return void Ct("Unexpected source");if(![CE2.data.ce_app_url,...CE2.data.hud.launch_origins].includes(e.origin))return void Ct("Unexpected source url");const t=e.data;if(!t||"object"!=typeof t)return void Ct("Unexpected message");if("number"!=typeof t.launcherId)return void Ct("Unexpected launcherId");CE2.Native.sessionStorage.setItem("ce-hud-launch-params",CE2.Native.JSON.stringify(t)),_t.stopListener(e.source,e.origin),yt()}catch(e){Ct(e)}}},St=function(){if(CE2.data&&CE2.data.hud)try{!function(){try{if(void 0===CE2.Native.sessionStorage)return!1;if(void 0===CE2.Native.sessionStorage.getItem)return!1;const e=Boolean(CE2.Native.sessionStorage&&"function"==typeof CE2.Native.sessionStorage.getItem&&CE2.Native.sessionStorage.getItem("ce-hud-launch-params"));return!(CE2.w.opener&&!vt()&&!e||!CE2.Native.sessionStorage.getItem("powerup")||(yt(),0))}catch(e){return Ct(e),!1}}(),CE2.w.addEventListener("hashchange",wt),wt(),_t.startListener()}catch(e){Ct(e)}};var bt=n(6315);const kt="ce_bot_detector";const It=new class{constructor(){CE2BH.defineProperty(this,"_onPopState",(()=>{this._incrementVisitIfNeeded()})),"undefined"==typeof window||(0,r.jI)("v11_disable_bot_detection")||window.__CE_SCRIPT_CHECK||(this.lastPathname=window.location.pathname,this._init())}_init(){this._loadState().detected||(this._incrementVisitIfNeeded(),this._pathCheckInterval=setInterval((()=>{this._incrementVisitIfNeeded()}),500),window.addEventListener("popstate",this._onPopState),this._mouseDownHandler=()=>{const e=this._loadState();e.detected||(e.clicks+=1,this._checkForBot(e),this._saveState(e))},window.addEventListener("mousedown",this._mouseDownHandler,!0))}_loadState(){try{const e=CE2.Native.localStorageWrapper.read(kt),t={visits:0,clicks:0,firstVisitTime:Date.now(),detected:!1};if(!e)return t;const n=CE2.Native.JSON.parse(e);if(!n.detected&&n.firstVisitTime){const e=6048e5;if(Date.now()-n.firstVisitTime>e)return t}return n}catch(e){return console.error("Error loading bot detector state",e),{visits:0,clicks:0,firstVisitTime:Date.now(),detected:!1}}}_saveState(e){CE2.Native.localStorageWrapper.write(kt,CE2.Native.JSON.stringify(e))}_incrementVisitIfNeeded(){const e=window.location.pathname;if(e===this.lastPathname)return;const t=this._loadState();t.detected||(this.lastPathname=e,t.visits+=1,this._checkForBot(t),this._saveState(t))}_checkForBot(e){const{visits:t,clicks:n}=e;t>0&&n/t>1e3&&this._markAsBot(e,"High click-to-visit ratio"),t>10&&0===n&&this._markAsBot(e,"Many visits without clicks")}_markAsBot(e,t){console.warn("Bot detected:",t),e.detected=!0,window.removeEventListener("mousedown",this._mouseDownHandler,!0),window.removeEventListener("popstate",this._onPopState,!0),clearInterval(this._pathCheckInterval),this._saveState(e)}isBot(){return!window.__CE_SCRIPT_CHECK&&this._loadState().detected}};function Tt(){try{if(function(e){return!window.__CE_SCRIPT_CHECK&&(!!/bingpreview|prerender|jorgee|Mediapartners-Google|APIs-Google|phpcrawl|GoogleAdSenseInfeed|Google Page Speed Insights|Google-Ads-Overview|Google-Read-Aloud|Google-Structured-Data-Testing-Tool|Data Theorem|alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo|yandex|phantom|headless|BrandVerity|ruxitsynthetic|Chrome-Lighthouse/i.test(e)||void 0)}(navigator.userAgent))return"userAgent";if(It.isBot())return"clicksToVisitsRatio";if(!1===navigator.onLine)return"navigator.onLine";const e=function(e){return(e.innerHeight>=16384||e.innerWidth>=16384)&&"viewport-inner"}(window);if(e)return e;if(!navigator.language||!navigator.languages||navigator.languages&&0===navigator.languages.length)return"language";if(navigator.webdriver)return"webdriver";if(window.jasmine)return"jasmine";const t=["__webdriver_evaluate","__selenium_evaluate","__webdriver_script_function","__webdriver_script_func","__webdriver_script_fn","__fxdriver_evaluate","__driver_unwrapped","__webdriver_unwrapped","__driver_evaluate","__selenium_unwrapped","__fxdriver_unwrapped"],n=["webdriver","_phantom","__nightmare","_selenium","callPhantom","callSelenium","_Selenium_IDE_Recorder"];for(let e=0;e0;)e.pop().call();Dt=!0};if(Dt&&e(),(0,r.KT)(window,"load",e),CE2.d.addEventListener&&(0,r.KT)(CE2.d,"DOMContentLoaded",e),CE2.d.readyState){const t=Rt;!function n(){t.test(CE2.d.readyState)?e():setTimeout(n,10)}()}};var Pt=n(5213);const xt=function(){const e="!$%&()*+,-.0123456789;<=>?@[]^_`{|}~",t={};let n;for(n=0;n<36;n++)t[e.charAt(n)]=n.toString(36);return t}(),Mt=function(e){return parseInt(e.replace(/./g,(e=>xt[e])),36)},Lt=function(e){let t="";const n=/(![^:\/a-z])|([^:\/a-z]{2})|(:[^:\/a-z]{3})|(\/[^:\/a-z]{4})/gi,i=String.fromCharCode;let s;for(;null!=(s=n.exec(e));)s[1]||s[2]?t+=i(Mt(s[0])):s[3]?t+=i(Mt(s[3].substr(1))):s[4]&&(t+=i(Mt(s[4].substr(1))));return t},Vt=function(e,t,n){const i={};CE2.visitorTracker&&(i.visitor=CE2.visitorTracker.getId()),n&&(i.goals=n.map((e=>e.id))),t&&(i.session={id:t.id,full:t.isFull()});const s=new CE2.Tracker({version:CE2.VERSION,visitId:CE2.getVisitId(),censoredElements:CE2.getCensoredElements(e),site:e,session:t,goals:n});return(0,o.Yz)("[Tracker] Starting",i),s},Ht=function(e,t,n,i,s){const a={},c=(t||[]).filter((e=>(0,r._3)(e)));c.length?(CE2.testID=c.map((e=>e.id)),CE2.testVersion=c.map((e=>e.v))):CE2.testID=CE2.testVersion=null,t&&t.length&&(a.snapshots=t.map((e=>({id:e.id,version:e.v})))),n&&(a.session={id:n.id,new:n.isNew(),full:n.isFull()}),s&&(a.goals=s.map((e=>e.id))),i&&(a.urlChanged=i),(0,o.Yz)("[Tracker] Updating",a),e.update({session:n,snapshots:c,urlChanged:i,goals:s})},zt=function(){const e="v11slnt";function t(){me.i.set(e,+new Date)}function n(){const t=function(){const t=me.i.get(e);if(t)return parseInt(t,10)}();return!!t&&+new Date-t<6e5}return{slow:()=>{if((0,r.jI)("v11_record_slow_network"))return!1;try{return function(){if(navigator&&navigator.connection&&navigator.connection.downlink){const{downlink:e}=navigator.connection;e<.5&&t()}}(),function(){if(performance&&performance.getEntriesByType){const e=performance.getEntriesByType("resource");if(void 0===e||e.length<=0)return!1;let n,i;for(let t=0;t1e3&&t()}}}(),n()}catch(e){return(0,at.A)(e),!1}}}};function jt(e){if(""!==e&&!/^\s*#.*$/.test(e))return e.replace(/\s*#.*$/,"")}function Wt(e,t){return t.indexOf("-")>-1?function(e,t){if(-1===e.indexOf("."))return!1;const n=e.split("."),i=jt(t);if(!i)return!1;const s=i.split("-");if(!s[0]||!s[1])return!1;const r=s[0].split("."),o=s[1].split(".");for(let e=0;e<4;e++){if(!r[e]||!o[e])return!1;if("*"===r[e]||"*"===o[e])continue;const t=parseInt(n[e],10);if(tparseInt(o[e],10))return!1}return!0}(e,t):t.indexOf(":")>-1?function(e,t){if(-1===e.indexOf(":"))return!1;const n=e.split(":"),i=jt(t);if(!i)return!1;const s=i.split(":");for(let e=0;e{Qt(e,t,n)}},en=function(e,t,n=!1){const i=n?"matched":"rejected";Xt.push({id:e.id,result:i,message:t})},tn=function(e){return(t,n=!1)=>{en(e,t,n)}},nn=function(e){let t,n;const{rules:i}=e;if(CE2.data.disable_recordings_mobile&&1!==CE2.clock.getDeviceType())return Qt({disable_recordings_mobile:CE2.data.disable_recordings_mobile,device:CE2.clock.getDeviceType()},"disabled mobile",!1),!1;if(e.pageTargetingEnabled){if(1===Yt)return!0;if(i&&i.length)for(t=0;n=i[t++];)if((0,ft.$)(n.u,CE2.w.location.href,n.o,null,null,Zt(n)))return!0;return!1}return Qt({},"All pages",!0),!0};const sn=function(e,t,n){if(!e||!t||!n)throw new Error("Missing site/session/visitor");if(!e.sessionRecording)return(0,o.Yz)("[Sessions] Disabled"),{record:!1};if(!(e.recordingSettings&&e.recordingSettings.recordIframes)&&CE2.w.parent!==CE2.w){const e=(0,r.Ep)(),t=(0,r.R2)().substr(1);if(e&&e.indexOf(t)>-1)return(0,o.Yz)("[Sessions] Recordings prevented from iframe"),{record:!1}}const i=nn(e.recordingSettings),s=e.recordingSettings&&function(e){const{blockedRules:t}=e;return qt()||(0,ft.e)(t)}(e.recordingSettings),a=(new zt).slow()?"slow network":Pt.D.transport()===Pt.Z.NONE?"no usable transport (worker + iframe both blocked or healthcheck failed)":void 0;if(t&&t.isFull())return a?(t.reset(a),(0,r.GO)(`[Sessions] Stopped: ${a}`),{record:!1,reset:!0}):s&&e.recordingSettings.endSessionOnBlockedUrl?(t.reset("page-blocked"),(0,r.GO)("[Sessions] Page blocked and marked to end"),{record:!1,reset:!0}):qt()?(t.reset("recording-stopped"),(0,r.GO)("[Sessions] Recording Stopped"),{record:!1,reset:!0}):s?((0,r.GO)("[Sessions] Page blocked"),{record:!1}):((0,o.Yz)("[Sessions] Continued"),{record:!0});if((0,o.Yz)("[Sessions] Matching parameters",CE2.w.location.href),(0,o.Yz)("[Sessions] Matching target",Jt),Jt=[],!i)return(0,o.Yz)("[Sessions] No matches"),{record:!1};if((0,o.Yz)("[Sessions] Matched",{url:CE2.w.location.href}),s)return(0,o.Yz)("[Sessions] Page blocked"),{record:!1};if(a)return(0,o.Yz)(`[Sessions] Won't start: ${a}`),{record:!1};if(t.isSampled())return(0,o.Yz)("[Sessions] Sampling standby"),{record:!1};const c=new re(e);return c.validRatio()&&c.canRecord()?((0,o.Yz)("[Sessions] Sampling accepted, starting new"),{record:!0,ratio:c}):((0,o.Yz)("[Sessions] Sampling rejected"),{record:!1,sampled:!0})},rn=function(e,t){if(!e||!t)throw new Error("Missing site/session");if(!e.webAnalytics)return(0,o.Yz)("[WebAnalytics] Disabled"),{record:!1};if(t.hasWebAnalytics())return(0,o.Yz)("[WebAnalytics] Continued"),{record:!0};if(!e.web_analytics_ratio)return(0,o.Yz)("[WebAnalytics] Disabled"),{record:!1,sampled:!0};if(t.isWebAnalyticsSampled())return(0,o.Yz)("[WebAnalytics] Sampling standby"),{record:!1};const n=new oe(e);return n.validRatio()&&n.canRecord()&&!t.isDeleted()?((0,o.Yz)("[WebAnalytics] Sampling accepted, starting new"),{record:!0,ratio:n}):((0,o.Yz)("[WebAnalytics] Sampling rejected"),{record:!1,sampled:!0})},on=function(e,t,n,i,s,r){if(void 0===e.isBlocked&&(e.isBlocked=new Bt(e.ip).blocked(r)),e.isBlocked)return en(e,"IP blocked"),!1;if(At())return en(e,"bot blocked"),!1;if(e.vid){const t=i.includes(e.vid)&&(!CE2.Native.Array.isArray(e.d)||e.d.indexOf(CE2.clock.getDeviceType())>=0);return en(e,`variantid=${i.join(",")} allowed=${e.vid}`,t),t}return s&&Object.values(s).length&&e.o&&/go/.test(e.o)?(0,ft.$)(e.u,s,e.o,e.d,CE2.n.userAgent,tn(e)):n&&e.o&&/n/.test(e.o)?(0,ft.$)(e.u,n,e.o,e.d,CE2.n.userAgent,tn(e)):(0,ft.$)(e.u,t,e.o,e.d,CE2.n.userAgent,tn(e))},an="cebsp_";const cn=new class{constructor(){this.numPages=0}load(){this.numPages=(0,r.Ri)(an),this.numPages=this.numPages?parseInt(this.numPages,10):0}pageChanged(){this.numPages++,(0,r.o)(an,this.numPages)}getPages(){return this.numPages}};var ln=n(9115);class dn{constructor(){CE2BH.defineProperty(this,"CURRENT_RETURNING_WINDOW_MSEC",18e5),CE2BH.defineProperty(this,"RETURNING_WINDOW_MSEC",2592e6),CE2BH.defineProperty(this,"visitorV6Key","_cer.v"),CE2BH.defineProperty(this,"visitorKey","v"),CE2BH.defineProperty(this,"visitorIdentificationKey","vi"),CE2BH.defineProperty(this,"visitorIsReturningKey","vir"),CE2BH.defineProperty(this,"visitorLastVisitAtKey","lva"),CE2BH.defineProperty(this,"visitorVisitsKeyLegacy","vv"),CE2BH.defineProperty(this,"visitorVisitsKey","vpv"),CE2BH.defineProperty(this,"visitorDailyVisitAt","vdva"),CE2BH.defineProperty(this,"browserSessionCookie","cebs"),CE2BH.defineProperty(this,"firstVisitDataKey","ce_fvd"),this.id=null,this.identification=void 0,this.storedId=null,this.numVisits=null,this.visitorV6Parts=null,this.firstVisitData=null,(0,r.Ri)(this.visitorV6Key)&&(this.visitorV6Parts=(0,r.Ri)(this.visitorV6Key).split("."))}load(){this.loadVisitorId(),this.loadVisitorIdentification(),this.loadVisitorVisits(),this.loadFirstVisitData()}identify(e){e&&(CE2.IDENTIFIER=this.identification=e,me.i.set(this.visitorIdentificationKey,this.identification))}clearIdentity(){CE2.IDENTIFIER=null,me.i.del(this.visitorIdentificationKey)}del(e){me.i.del(e)}reset(){this.del(this.visitorKey),this.del(this.visitorVisitsKey)}loadVisitorId(){if(this.storedId=me.i.get(this.visitorKey),window.CE_VISITOR_ID)this.id=window.CE_VISITOR_ID,this.storedId&&window.CE_VISITOR_ID!==this.storedId&&this.reset();else if(this.storedId)this.id=this.storedId;else if(this.visitorV6Parts){const[e]=this.visitorV6Parts;this.id=e,me.i.set(this.visitorKey,e)}else this.id=(0,lt.M4)(),me.i.set(this.visitorKey,this.id)}loadVisitorIdentification(){const e=me.i.get(this.visitorIdentificationKey);CE2.IDENTIFIER?this.identification=CE2.IDENTIFIER:e&&(this.identification=e,CE2.IDENTIFIER=this.identification)}loadVisitorVisits(){const e=!(0,r.Ri)(this.browserSessionCookie);e&&(this.isReturning(),CE2.Native.localStorage.removeItem(this.firstVisitDataKey)),(0,r.o)(this.browserSessionCookie,"1"),me.i.get(this.visitorVisitsKey)?this.numVisits=parseInt(me.i.get(this.visitorVisitsKey),10):me.i.get(this.visitorVisitsKeyLegacy)?this.numVisits=1:this.visitorV6Parts&&this.visitorV6Parts[2]&&(this.numVisits=parseInt(this.visitorV6Parts[2],36)),null===this.numVisits?(this.numVisits=0,me.i.set(this.visitorVisitsKey,this.numVisits)):e&&(this.numVisits+=1,me.i.set(this.visitorVisitsKey,this.numVisits))}loadFirstVisitData(){let e=CE2.Native.localStorageWrapper.read(this.firstVisitDataKey);if(e)this.firstVisitData=CE2.Native.JSON.parse(e);else{const{userData:t}=CE2.state;e={landingUrl:CE2.w.location.href,referrer:CE2.d.referrer,time:Date.now(),utm:(0,r.ne)(),dailyVisitTime:Date.now(),userData:Object.values(t).length>0?[t[1],t[2],t[3],t[4],t[5]]:[]},this.firstVisitData=e,CE2.Native.localStorageWrapper.write(this.firstVisitDataKey,CE2.Native.JSON.stringify(e))}}isReturning(){return this.returningState().state===dn.RETURNING_STATE.RETURNING}isNewDailyVisitor(){const e=me.i.get(this.visitorDailyVisitAt),t=CE2.clock.getDate();return(!e||t>e)&&(t.setUTCHours(23,59,59,999),me.i.set(this.visitorDailyVisitAt,+t),!0)}returningState(){if(void 0!==this.isReturningCache)return this.isReturningCache;let e=me.i.get(this.visitorIsReturningKey),t=me.i.get(this.visitorLastVisitAtKey),n=!1;e||(e=dn.RETURNING_STATE.NEW,t=Date.now(),CE2.Native.localStorage.removeItem(this.firstVisitDataKey));const i=Date.now()-t;return i>this.CURRENT_RETURNING_WINDOW_MSEC&&(e=dn.RETURNING_STATE.RETURNING,CE2.Native.localStorage.removeItem(this.firstVisitDataKey)),i>this.RETURNING_WINDOW_MSEC&&(e=dn.RETURNING_STATE.NEW,n=!0,CE2.Native.localStorage.removeItem(this.firstVisitDataKey)),(0,o.Yz)(`[Visitor] IsReturning id=${this.id} state=${e} lastVisit=${t} reset=${n}`),t=Date.now(),me.i.set(this.visitorIsReturningKey,e),me.i.set(this.visitorLastVisitAtKey,t),this.isReturningCache={state:e,reset:n},this.isReturningCache}setIdentityFromUrl(){const e=CE2.site?.autoIdQueryParam||"CE_ID",t=new CE2.Native.URL(CE2.w.location.href).searchParams.get(e);"string"==typeof t&&0!==t.trim().length&&this.identify(t)}}CE2BH.defineProperty(dn,"RETURNING_STATE",{NEW:"new",RETURNING:"returning"});const un=new dn,hn=function(){return{isReturning:()=>un.isReturning(),returningState:()=>un.returningState(),getId:()=>un.id,getIdentification:()=>un.identification,getStoredId:()=>un.storedId,getNumVisits:()=>un.numVisits,getFirstVisitData:()=>un.firstVisitData,setIdentityFromUrl:()=>un.setIdentityFromUrl(),isNewDailyVisitor:()=>un.isNewDailyVisitor(),load(){un.load()},identify:e=>un.identify(e),clearIdentity(){un.clearIdentity()}}};var pn=n(1881);const gn="_ce.clock_data",fn=",",mn=/^[123]$/;const En=new class{getData(){return(0,r.Ri)(gn)}load(){if(this.loadPromise)return this.loadPromise;const e=this;return this.loadPromise=new Promise(((t,n)=>{CE2.benchmark.start("navigation|crazyegg|common|userdatamain|load-clock");const i=(0,r.Ri)(gn);if(i){const[n,s,r,o,a,c]=i.split(fn);if(!o||o===(0,pn.F)(CE2.n.userAgent))return n&&s&&(e.diff=parseInt(n,10),e.ip=s,e.device=r&&mn.test(r)?parseInt(r,10):void 0,e.userAgentMd5=o,e.browser=a,e.country=c,e.valid=!0),CE2.benchmark.stop("navigation|crazyegg|common|userdatamain|load-clock"),CE2.debug("[Clock] Loaded from cookie",i),void t();CE2.debug("[Clock] User agent changed, reloading")}const s=i=>{const[s,a,c,l,d]=i.responseText.split(fn),u=parseInt(s,10);if(u>0){const n=+new Date-u;e.diff=n,e.ip=a,e.device=c&&mn.test(c)?parseInt(c,10):void 0,e.browser=l,e.country=d,e.userAgentMd5=(0,pn.F)(CE2.n.userAgent),e.valid=!0;const i=[n,a,e.device,e.userAgentMd5,e.browser,e.country].join(fn);(0,r.o)(gn,i,{expiresInDays:1}),(0,o.Yz)("[Clock] Fetch from api",i),CE2.benchmark.stop("navigation|crazyegg|common|userdatamain|load-clock"),t()}else(0,o.Yz)("[Clock] Error, stopping"),n()};let a,c,l;if(CE2.site?.id&&!CE2.w.CE_SITE_ID){c=CE2.data.uid,l=CE2.site.id;const e=[(0,lt.M4)(0,1),CE2.visitorTracker.getId(),36,CE2.VERSION,+new Date,CE2.tabId],t=CE2.visitorTracker.getFirstVisitData();a=[e,[CE2.getVisitId(),t.landingUrl,t.referrer,(0,r.ne)(t.landingUrl),CE2.w.CE_URL_FINGERPRINT(),CE2.visitorTracker.isReturning()?1:0,CE2.visitorTracker.getNumVisits()]]}(0,r.ou)()?s({responseText:[+new Date,"99.99.99.99",1,"chrome","US"].join(fn)}):(0,ce.sendEvents)({userId:c,siteId:l,context:"Clock",t:+new Date,endpoint:CE2.data.clock_url,callback:s},a?[a]:[])})),this.loadPromise}getIP(){return this.ip}getDiff(){return this.diff}getBrowser(){return this.browser}getCountry(){return this.country}getDate(){if(this.valid)return new Date(+new Date-this.diff)}getDateUnix(){const e=this.getDate();if(e)return Math.floor(e/1e3)}getDeviceType(){return this.device?this.device:((0,o.Yz)("[Clock] Clock didn't know device. Using deviceType() instead."),function(e){const t=e.toLowerCase();let n,i,s=0;if(n=e.indexOf("("),-1==n)return 1;if(n++,-1!=(i=e.indexOf("Android",n))){if(i+=8,e.length>i&&(s=e.charAt(i)))switch(s){case"2":if(-1!=e.indexOf("BNTV",i))return 3;if(-1!=t.indexOf("nook",i))return 3;if(-1!=e.indexOf("Kindle",i))return 3;if(-1!=e.indexOf("Touchpad",i))return 3;break;case"3":return 3;case"4":if(-1!=e.indexOf("Silk",i))return 3}return-1!=t.indexOf("tablet",i)?3:-1!=e.indexOf("Mobi",i)?2:3}if(-1!=(i=e.indexOf("iP",n)))switch(s=e.charAt(i+2),s){case"a":return 3;case"h":case"o":return 2}return-1!=(i=e.indexOf("BlackBerry",n))?-1!=e.indexOf("Tablet",i+10)?3:2:-1!=e.indexOf("Windows Phone",n)||-1!=e.indexOf("BB10",n)||"M"!=e.charAt(0)&&-1!=e.indexOf("Opera Mini",n)?2:1}(CE2.n.userAgent))}};let Cn,vn;CE2.clock=En,CE2.csp=Pt.D,CE2.eventTypes={VISIT:1,CLICK:2,SCROLL:3,MOUSE_MOVEMENT:4,PAGE_STATE:5,RESIZE:6,SESSION_SCROLL:7,ERROR:8,PAGE_LOAD:9,INACTIVE:10,TYPING:11,CUSTOM:12,PAGE_VISIBILITY:13,DOM_CONTENT_LOADED:14,FIRST_CONTENTFUL_PAINT:15,DOM_INTERACTIVE:16,IDENTIFY:17,CUSTOM_USER_DATA:18,TAG:19,SESSION_RATIO:20,VALID_SESSION:21,END_SESSION:22,ECOMMERCE:23,FORM:24,CUSTOM_PERFORMANCE:25,GOAL_CONVERSION:26,ASSETS:27,SURVEY_RESPONSE:28,EXCESSIVE_SCROLL:29,LONG_TASK:30,FIRST_INPUT_DELAY:31,CUMULATIVE_LAYOUT_SHIFT:32,LARGEST_PAINT:33,QUICKBACK:34,SESSION_WORTH:35,DAILY_VISIT:36,DAILY_VISIT_COUNTER:37,ADDON_CLICK:38,PAGE_VIEW:39,AB_TEST_VIEW:40,AB_TEST_CONVERSION:41,PAGE_UNLOAD:42,SURVEY_COMPLETE:43,USAGE:44},CE2.clickTypes={RAGE:"r",AUTH_BUTTON:"a",NOT_CLICKABLE:"d"},CE2.getVisitId=()=>CE2.visitId,CE2.getSessionId=()=>CE2.getSessionId();const yn=function(){(0,o.Yz)("[Loading] Stopping Monitor"),clearInterval(vn),vn=null,Cn=null};function wn(){(0,r.Yj)("_CEFT")}const _n=function(){CE2.bh&&(CE2.bh.parentElement.removeChild(CE2.bh),CE2.bh=null)},Sn=function(e=!0){return Promise.all([CE2.clock.load(),e?CE2.csp.load():Promise.resolve()])},bn=function(e){try{(0,o.Yz)(`[Loading] ${e}`),"function"==typeof CE_NOT_TRACKING&&window.CE_NOT_TRACKING(e)}catch(e){(0,o.Yz)("[Loading] Not tracking callback failure",e)}CE2.loaded=!0};const kn=function(e){if(CE2.benchmark.start("navigation|crazyegg|common|userdatamain|load-samplingdata"),CE2.data&&CE2.data.samplingData)return e();const t=CE2.getNativeXMLHttpRequest();t.onreadystatechange=function(){if(4==t.readyState)try{200==t.status&&t.responseText&&(CE2.data.samplingData=CE2.Native.JSON.parse(t.responseText),CE2.benchmark.stop("navigation|crazyegg|common|userdatamain|load-samplingdata"),e())}catch(e){(0,o.Yz)("[Loading] Error loading sampling data",e.message)}},t.onerror=function(e){(0,o.Yz)("[Loading] Error loading sampling data",e.message)},(0,o.Yz)("[Loading] Sampling user data",CE2.data.sampling_data_url),t.open("GET",`${CE2.data.sampling_data_url}?t=${CE2.getUserDataTime()}`,!0),t.send()},In=async function(){CE2.benchmark.start("navigation|crazyegg|common|usermain");try{CE2.VERSION=CE2.data.version;let e=`[Loading] Starting version=${CE2.VERSION}`;window.parent!==window&&(e+=" from within an iframe"),(0,o.Yz)(e);let t,{snapshots:n,sites:i,goals:s}=CE2.data,a=!0;"string"==typeof n&&(n=CE2.Native.JSON.parse(Lt(n))),"string"==typeof i&&(i=CE2.Native.JSON.parse(Lt(i))),"string"==typeof s&&(s=CE2.Native.JSON.parse(Lt(s))),i&&CE2.w.CE_SITE_ID?(CE2.sites=i,CE2.site=t=i.find((e=>e.id===CE2.w.CE_SITE_ID))):i&&(CE2.sites=i,CE2.site=t=(0,r.Wb)(i));const c=await new Promise((e=>{const t=CE2.w.CE_MAX_RETRIES||30;let n=0;const i=()=>{n++;try{CE2.Native.localStorage.setItem("ce_localstorage_test",""),CE2.Native.localStorage.removeItem("ce_localstorage_test")}catch(s){return CE2.debug(`[Checks] localStorage not available, trying again... attempt ${n}`),n>=t?void e("localStorage not available"):void setTimeout(i,1e3)}CE2.debug("[Checks] localStorage available");const s="cch",r=""+ +new Date;me.i.set(s,r);const o=me.i.get(s)===r;if(me.i.del(s),!o)return CE2.debug(`[Checks] cookies not available, trying again... attempt ${n}`),n>=t?void e("cookies not available"):void setTimeout(i,1e3);CE2.debug("[Checks] cookies available"),e(!0)};i()}));if(!0!==c)return void bn(`Not tracking: can't run - ${c}`);if(CE2.hudMain&&CE2.hudMain(),CE2.bot)return void bn(`Not tracking: bot detected - ${CE2.bot}`);if(t){if((0,r.LB)(CE2.w,CE2.d,CE2.n,CE2.ie))return void bn("Not tracking: doNotTrack detected.");if((0,r.jI)("disable-tracking"))return void bn("Not tracking: disabled.");(0,r.ch)(CE2.w,"pageshow",(e=>{e.persisted&&(delete CE2.monitorPagePath,delete CE2.monitorPageUrl)})),!CE2.data.sites_sampling&&CE2.data.samplingData&&CE2.data.samplingData.sites_sampling&&(CE2.data.sites_sampling=CE2.Native.JSON.parse(Lt(CE2.data.samplingData.sites_sampling)));const e=new Map((n||[]).map((e=>[e.id,e])));if(CE2.testID=CE2.testVersion=null,CE2.tabId=(0,lt.vU)(),CE2.visitorTracker=hn(),CE2.visitorTracker.load(),CE2.visitorTracker.setIdentityFromUrl(),cn.load(),ln.Ts({enabled:"all_page_views"===CE2.data.page_view_metering_strategy,timeoutMs:3e3}),await Sn(!!t.sessionRecording),CE2.benchmark.stop("navigation|crazyegg|common|usermain"),Xe(de,{site:t}),new Bt(t.settings?.blockIpList).blocked(CE2.clock.getIP()))return(0,o.Yz)("[Loading] IP Blocked",CE2.clock.getIP()),void(CE2.ipBlocked=!0);CE2.ipBlocked=!1,(0,De.a)("ab_tests")&&("function"==typeof CE2.initFlowTracking?CE2.flowsMatching=await CE2.initFlowTracking():(0,se.bU)()?(0,se.UE)():wn()),Cn=async function(){try{if(It.isBot())return CE2.tracker&&(CE2.tracker.addTag("bot",{virtual:!0}),CE2.tracker.session?.reset("bot detected"),CE2.tracker.cleanup(),delete CE2.tracker),yn(),void bn("Not tracking: bot detected - 'clicks to visits ratio'");CE2.benchmark.start("navigation|crazyegg|common|monitor");const i=CE2.w.location.href,c=CE2.w.location.pathname,l=CE2.flowsMatching&&CE2.flowsMatching.map((e=>e.flow?.trackByVariant&&e.variant.variantId))||[],d="string"==typeof CE_SNAPSHOT_NAME&&CE_SNAPSHOT_NAME.trim(),u=function(e){const t={};if(e&&e.length){const{gaData:n,google_optimize:i}=CE2.w;e.forEach((e=>{if(e&&"go"==e.o){const s=(e.u||"").split(".");if(s[1]){const e=n?.[s[0]]?.experiments?.[s[1]]||i?.get?.(s[1]);e&&(t[s[1]]=e)}}}))}return t}(n),h=CE2.clock.getDateUnix();let p=!1,g=!1,f=!1,m=CE2.getSession(CE2.site?.id);const E=(0,De.a)("ab_tests"),C=(0,De.a)("heatmaps"),v=(0,De.a)("recordings"),y=(0,De.a)("web_analytics"),w=(0,De.a)("conversions"),_=CE2.Native.JSON.stringify({ab_tests:E,editor:(0,De.a)("editor"),ctas:(0,De.a)("ctas"),surveys:(0,De.a)("surveys"),heatmaps:C,recordings:v,conversions:w,web_analytics:y}),S=CE2.monitorFeatureConfigState&&CE2.monitorFeatureConfigState!==_,b=!1===CE2.monitorAbTestsEnabled&&E;let k;if(!m)return void yn();m!==CE2.monitorSession&&((0,o.Yz)("[Sessions] Set",{oldSessionId:CE2.monitorSession?.id,sessionId:m.id}),f=!0);let I=(CE2.monitorSnapshotIds?CE2.monitorSnapshotIds.split(","):[]).map((t=>e.get(parseInt(t,10))));const T=I.filter((e=>e&&e.e&&h>=e.e)).sort().map((e=>e.id)).join(",");if(CE2.monitorPageUrl==i&&CE2.monitorVariantIds==CE2.Native.JSON.stringify(l)&&CE2.monitorGaData==CE2.Native.JSON.stringify(u)&&CE2.monitorCESnapshotName==d&&CE2.monitorExpiredSnapshotIds==T&&CE2.monitorFeatureConfigState==_&&!CE2.recordingSettingChanged&&!f)return;if((0,r.Rc)(),CE2.monitorPagePath&&CE2.monitorPagePath===c||(p=!0),CE2.monitorPageUrl&&CE2.monitorPageUrl===i||(g=!0),p?(m&&m.isExpired()&&((0,He.RY)(),m.reset("expired"),m=CE2.getSession(CE2.site?.id),f=!0),(0,He.$K)(),cn.pageChanged(),ln.sS(),Xe(he,{site:t,session:m}),(0,De.a)("editor")&&CE2.applyVersion?.()):S&&Xe(he,{site:t,session:m}),!E||!g&&!b||a||CE2.flowPatchApplied||("function"==typeof CE2.initFlowTracking?CE2.flowsMatching=await CE2.initFlowTracking():(0,se.bU)()?(0,se.UE)():wn()),CE2.monitorPagePath=c,CE2.monitorPageUrl=i,CE2.monitorVariantIds=CE2.Native.JSON.stringify(l),CE2.monitorGaData=CE2.Native.JSON.stringify(u),CE2.monitorCESnapshotName=d,CE2.monitorExpiredSnapshotIds=T,CE2.monitorFeatureConfigState=_,CE2.monitorAbTestsEnabled=E,CE2.logHistoryEnabled=!0,p||f||S)if(y){let e=rn(t,m);e.reset&&e.retry&&(m=CE2.getSession(CE2.site?.id),e=rn(t,m),f=!0),e.reset&&(m=CE2.getSession(CE2.site?.id),f=!0),!e.record&&e.sampled&&(m.setWebAnalyticsSampled(),f=!0),e.record&&e.ratio&&(m.startWebAnalytics(e.ratio.ratio),f=!0)}else m.hasWebAnalytics()&&(m.stopWebAnalytics("feature-disabled"),f=!0,k||="web analytics disabled"),(0,o.Yz)("[WebAnalytics] Disabled by feature config");if(p||CE2.recordingSettingChanged||f||S)if(v){let e=sn(t,m,CE2.visitorTracker);e.reset&&e.retry&&(m=CE2.getSession(CE2.site?.id),e=sn(t,m,CE2.visitorTracker),f=!0),e.reset&&(m=CE2.getSession(CE2.site?.id),f=!0),!e.record&&e.sampled&&(m.setSampled(),f=!0),e.record&&e.ratio&&(m.startRecording(e.ratio.ratio,e.ratio.getAppliedStrategy()),f=!0)}else m.isFull()&&(m.stopRecording("feature-disabled"),f=!0,k||="recordings disabled"),(0,o.Yz)("[Sessions] Recordings disabled by feature config");CE2.recordingSettingChanged=!1,C&&n&&n.length?I=function(e,t,n,i,s){(0,o.Yz)("[Snapshots] Matching parameters",{pageUrl:t,ceSnapshotName:n,variantIds:i,gaData:s});const r=[],a=new Set(CE2.scriptCheckMatchingSnapshots),c=CE2.clock.getIP();if(!e||!e.length)return;const l=CE2.clock.getDateUnix();let d=null;for(let o=0;ol)?(en(u,"pending"),CE2.p[u.id]=u):on(u,t,n,i,s,c)&&(null===d&&(d=u.v),u.v===d?r.push(u):en(u,`incompatible format version (snapshot: ${u.v}, target:${d})`),a.add(u.id))}return a.size>0&&(CE2.scriptCheckMatchingSnapshots=CE2.Native.Array.from(a)),(0,o.Yz)("[Snapshots] Matching targets",Xt),Xt=[],r}(n,i,d,l,u):((0,o.Yz)("[Snapshots] Disabled"),I=[],delete CE2.scriptCheckSelectedSnapshot,CE2.scriptCheckSelectedSnapshots=[]),I.length>0?((0,o.Yz)("[Snapshots] Matched",I),CE2.scriptCheckSelectedSnapshot=I[0].id,CE2.scriptCheckSelectedSnapshots=I.map((e=>e.id))):n&&n.length&&(0,o.Yz)("[Snapshots] No matches");const N=w&&function(e,t){return e&&t?e.filter((e=>e.site_id===t.id)):((0,o.Yz)("[Goals] Disabled"),[])}(s,t)||[];w||(0,o.Yz)("[Goals] Disabled by feature config"),N.length&&(0,o.Yz)("[Goals] Matched",N),k&&function(e){CE2.tracker&&((0,o.Yz)("[Tracker] Restarting",{reason:e}),CE2.tracker.cleanup(),delete CE2.tracker)}(k),CE2.tracker||(CE2.tracker=await function(e,t,n){return new Promise((i=>{t.isFull()?CE2.loadSessionTrackingScript((()=>{i(Vt(e,t,n))})):n.length>0?CE2.loadTrackingScript((()=>{i(Vt(e,t,n))})):i(Vt(e,t,n))}))}(t,m,N),CE2.loadCEAPI()),CE2.state&&(CE2.state.logHistoryEnabled=!1,CE2.state.logHistory=[]),a=!1;const A=I.map((e=>e.id)).sort().join(","),R=A!==CE2.monitorSnapshotIds,O=CE2.state?.survey===CE2.monitorSurvey;if(!(p||f||R||O||S))return;R&&0===I.length&&CE2.tracker.snapshots.length>0&&CE2.tracker.stopTracker("No snapshots"),CE2.monitorSession=m,CE2.monitorSnapshotIds=A,CE2.monitorSurvey=CE2.state?.survey,await function(e,t,n,i,s){return new Promise((r=>{n.isFull()?CE2.loadSessionTrackingScript((()=>{r(Ht(e,t,n,i,s))})):t.length>0||s.length>0?CE2.loadTrackingScript((()=>{r(Ht(e,t,n,i,s))})):r(Ht(e,t,n,i,s))}))}(CE2.tracker,I,m,p,N),m.isNew()&&m.setIsNew(!1),CE2.benchmark.stop("navigation|crazyegg|common|monitor"),CE2.benchmark.stop("navigation|crazyegg|common"),CE2.benchmark.stop("navigation|crazyegg"),CE2.benchmark.stop("navigation"),CE2.loaded=!0,CE2.benchmark.autoReport()&&setTimeout((()=>CE2.benchmark.report()),5e3)}catch(e){(0,o.Yz)(e)}},await async function(){(0,o.Yz)("[Loading] Starting Monitor"),Cn&&!At()&&(await Cn(),vn=setInterval(Cn,1e3))}()}else bn("No site match."),CE2.loaded=!0}catch(e){(0,o.Yz)(e)}finally{_n()}},Tn=async function(){CE2.visitorTracker=hn(),CE2.visitorTracker.load(),cn.load(),_n(),CE2.site={id:1,name:(0,r.R2)()},await Sn(),CE2.loadSessionTrackingScript((()=>{CE2.tracker=function(){(0,o.Yz)("[Tracker] Starting Test Mode");const e=CE2.getSession(CE2.site?.id);e.startRecording(1,"uniform");const t=new CE2.Tracker({version:CE2.VERSION,visitId:CE2.getVisitId(),session:e,censoredElements:[]});return t.update({snapshots:[{id:"testsnapshot"}]}),t.testMode=!0,t}(),CE2.loadCEAPI(),Xe(ue,{site:CE2.site,session:CE2.tracker.session})}))},Nn=async function(){CE2.benchmark.start("navigation|crazyegg|common|userdatamain"),CE2.visitId=(0,lt.M4)(0,1),CE2.bot=At(),(0,r.ou)()?Tn():CE2.commonScriptForceLoaded?(St(),await Sn(),Xe(de),_n()):CE2.data?kn((()=>{CE2.benchmark.stop("navigation|crazyegg|common|userdatamain"),In()})):CE2.data||"string"!=typeof CE_USER_DATA_URL?((0,o.Yz)("No CE2.data nor CE_USER_DATA_URL found, stopping."),_n()):((0,o.Yz)(`No CE2.data, loading user data for CE_USER_DATA_URL=${CE_USER_DATA_URL}.`),(0,ce.get)(CE_USER_DATA_URL,(e=>{CE2.data=CE2.Native.JSON.parse(e.responseText),CE2.userDataToJs&&CE2.userDataToJs(CE2.data),kn((()=>{CE2.benchmark.stop("navigation|crazyegg|common|userdatamain"),In()}))})))},An=function(e,t=null){e&&(t&&(e.fingerprint=t),CE2.tracker&&CE2.tracker.notifyError(e))};class Rn{constructor(e){this.callback=e||(()=>{}),this.onMouseMove=this.mouseMove.bind(this),this.onScroll=this.scroll.bind(this),this.exited=!1;const t=CE2.clock.getDeviceType();t===dt.p.typeMap.desktop?(0,r.ch)(CE2.w,"mousemove",this.onMouseMove):t===dt.p.typeMap.phone&&(this.prevScroll=CE2.w.scrollY||CE2.d.documentElement.scrollTop||CE2.d.body.scrollTop,(0,r.ch)(CE2.w,"scroll",this.onScroll))}mouseMove(e){e.clientY<=20&&this.onExit(),this.hoveredElement!==e.target&&clearTimeout(this.hoverTimout),this.hoveredElement=e.target;const t=e.target.closest("a");if(t&&t.href){const e=new URL(t.href,CE2.d.baseURI),n=(0,r.R2)().substr(1);new RegExp(`${n}$`,"i").test(e.hostname)||(this.hoverTimout=setTimeout((()=>{this.onExit()}),100))}}scroll(){const e=CE2.w.scrollY||CE2.d.documentElement.scrollTop||CE2.d.body.scrollTop;this.prevScroll-e>100&&this.onExit(),this.prevScroll=e}onExit(){this.destroy(),this.exited||(this.exited=!0,this.callback())}destroy(){(0,r.pQ)(CE2.w,"mousemove",this.onMouseMove),(0,r.pQ)(CE2.w,"scroll",this.onScroll),clearTimeout(this.hoverTimout)}}var On=n(2171);const Dn="v11.s",Un="v11.vs",$n="v11.fs",Pn="v11.sla",xn="v11.send",Mn="v11.ss",Ln="v11.ws",Vn="v11.wss",Hn="v11.wr",zn="v11.cs",jn="v11.fsvd",Wn="v11nv",Bn="v11r",Yn="v11e";function Fn(e){return e&&"object"==typeof e&&!Array.isArray(e)?e:{}}class Gn{constructor({siteId:e,id:t,visitorId:n,isNew:i,full:s,webAnalytics:a,webAnalyticsRatio:c,ratio:l,strategy:d}){if(!e||!t)throw new Error("Invalid params");this.id=t,this.siteId=e,this.visitorId=n,this.new=i||!1,this.full=s||!1,this.webAnalytics=a||!1,this.webAnalyticsRatio=c,this.ratio=l,this.strategy=d,this.firstVisitData=i?function(){let e=CE2.w.CE_URL_FINGERPRINT(),t=CE2.w.CE_REFERER||CE2.d.referrer;return e&&(e=e.substr(0,200)),t&&(t=t.substr(0,200)),{notModifiedUrl:CE2.w.location.href,url:e,ref:t,utm:(0,r.ne)()}}():function(){const e=CE2.Native.localStorageWrapper.read(jn);if(e)try{return Fn(CE2.Native.JSON.parse(e))}catch(e){return CE2.Native.localStorageWrapper.remove(jn),(0,o.Yz)("[Sessions] Failed to load first visit data from localStorage",e),{}}const t=me.i.get(jn);if(!t)return{};try{const e=Fn(JSON.parse(atob(decodeURIComponent(t))));return CE2.Native.localStorageWrapper.write(jn,CE2.Native.JSON.stringify(e)),me.i.del(jn),e}catch(e){return CE2.Native.localStorageWrapper.remove(jn),me.i.del(jn),(0,o.Yz)("[Sessions] Failed to load first visit data from cookie",e),{}}}()}static instance(e){if(!e)throw new Error("Missing required site id");const t=parseInt(Gn.currentSiteId(),10)||e;if(t&&t!==e)return Gn.reset("site-changed"),Gn.instance(e);if(this.session&&this.session.visitorId!==CE2.visitorTracker.getId())return this.session.reset("visitor-changed"),Gn.instance(e);if(this.session&&Number.isNaN(this.session.getLastActivity()))return Gn.reset("last-activity-invalid"),Gn.instance(e);if(this.session)return this.session;const n=!Gn.currentSessionId(),i=Gn.currentSessionId()||(0,r.Jl)(),s=Gn.currentVisitorId()||CE2.visitorTracker.getId(),a=!!Gn.isFull(),c=!!Gn.hasWebAnalytics(),l=Gn.getWebAnalyticsRatio(),d=Gn.getRatio(),u=Gn.getStrategy();if(this.session=new Gn({siteId:t,id:i,visitorId:s,isNew:n,full:a,webAnalytics:c,webAnalyticsRatio:l,ratio:d,strategy:u}),this.session.store(),Gn.currentSessionId())return n&&this.session.alive(),Gn.instance(e);(0,o.Yz)("[Sessions] Failed to store session cookies")}static reset(e){me.i.del(Dn),me.i.del(Un),me.i.del(Pn),me.i.del(xn),me.i.del(Mn),me.i.del(Wn),me.i.del($n),me.i.del(Ln),me.i.del(Vn),me.i.del(Hn),me.i.del(zn),me.i.del(Bn),me.i.del(Yn),me.i.del(jn),CE2.Native.localStorageWrapper.remove(jn),delete this.session,(0,o.Yz)("[Sessions] Resetting",{reason:e})}static currentSiteId(){return me.i.get(zn)}static currentSessionId(){return me.i.get(Dn)}static currentVisitorId(){return me.i.get(Un)}static isFull(){return me.i.get($n)}static hasWebAnalytics(){return me.i.get(Ln)}static getWebAnalyticsRatio(){const e=me.i.get(Hn);return e&&parseInt(e,10)}static getRatio(){const e=me.i.get(Bn);return e&&parseInt(e.split(",")[0],10)}static getStrategy(){const e=me.i.get(Bn);return e&&e.split(",")[1]}static getLastActivity(){return parseInt(me.i.get(Pn),10)}get(e){return me.i.get(e)}set(e,t){return me.i.set(e,t)}del(e){return me.i.del(e)}store(){this.set(zn,this.siteId),this.set(Dn,this.id),this.set(Un,this.visitorId),this.full&&this.set($n,1),this.webAnalytics&&this.set(Ln,1),CE2.Native.localStorageWrapper.write(jn,CE2.Native.JSON.stringify(this.firstVisitData)),this.ratio&&this.set(Bn,[this.ratio,this.strategy].join(",")),this.webAnalyticsRatio&&this.set(Hn,this.webAnalyticsRatio)}reset(e){Gn.reset(e),this.id=null}alive(){this.isInactive()||this.set(Pn,+new Date)}isExpired(){return this.isDeleted()?"isDeleted":this.isEnded()?"isEnded":!!this.isInactive()&&"isInactive"}isInactive(){const e=this.getLastActivity();if(this.id&&e){if(+new Date-e>18e5)return!0}return!1}getLastActivity(){return Gn.getLastActivity()}isEnded(){const e=parseInt(this.get(xn),10);if(!Number.isNaN(Number(e)))return!!(this.id&&e&&+new Date-e>3e5)||(this.del(xn),!1)}isDeleted(){return!this.get(Dn)}isNew(){return this.new}setIsNew(e){this.new=e}isFull(){return!!this.full}hasWebAnalytics(){return!!this.webAnalytics}startWebAnalytics(e){this.webAnalytics=!0,this.webAnalyticsRatio=e,this.store()}stopWebAnalytics(e){this.webAnalytics=!1,this.webAnalyticsRatio=null,this.del(Ln),this.del(Vn),this.del(Hn),this.del(Yn),(0,o.Yz)("[WebAnalytics] Stopping",{reason:e})}isSampled(){return!!this.get(Mn)}setSampled(){this.set(Mn,+new Date),this.store()}isWebAnalyticsSampled(){return!!this.get(Vn)}setWebAnalyticsSampled(){this.set(Vn,+new Date),this.store()}getWebAnalyticsRatio(){return this.webAnalyticsRatio}isEngaged(){return new Promise((e=>{this.get(Yn)?e(!0):setTimeout((()=>{e(this.get(Yn))}),200*Math.random())}))}setAsEngaged(){return this.set(Yn,1)}getRatio(){return this.ratio}getStrategy(){return this.strategy}getFirstVisitData(){return this.firstVisitData}startRecording(e,t){this.new=!0,this.full=!0,this.ratio=e,this.strategy=t,this.store()}stopRecording(e){this.setIsNew(!1),this.full=!1,this.ratio=null,this.strategy=null,this.del($n),this.del(Mn),this.del(Bn),(0,o.Yz)("[Sessions] Stopping recording",{reason:e})}numberVisits(){return parseInt(this.get(Wn),10)||0}setNumberVisits(e){return this.set(Wn,e)}end(e=!1){const t=parseInt(this.get(xn),10);!t&&e?this.set(xn,1):t||this.set(xn,+new Date)}}function Kn(e){return Gn.instance(e)}function qn(){return Gn.reset()}function Xn(){return Gn.currentSessionId()}var Jn=n(5439),Qn=n(9056);function Zn(e){CE2.tracker?CE2.tracker.addToCart(e):((0,o.Yz)("[Ecommerce] addToCart deferred until tracker ready"),(0,On.V)((()=>CE2.tracker.addToCart(e))))}function ei(e){CE2.tracker?CE2.tracker.startCheckout(e):((0,o.Yz)("[Ecommerce] startCheckout deferred until tracker ready"),(0,On.V)((()=>CE2.tracker.startCheckout(e))))}function ti(e){CE2.tracker?CE2.tracker.checkoutCompleted(e):((0,o.Yz)("[Ecommerce] checkoutCompleted deferred until tracker ready"),(0,On.V)((()=>CE2.tracker.checkoutCompleted(e))))}var ni=n(8423);const ii=/[\s\u2028\u2029]+/g,si=(e,t)=>{const n=ni._.Array().from(e);return n.length<=t?e:n.slice(0,t).join("")},ri=e=>{if("string"!=typeof e)return"";let t=e.normalize("NFC");return t=t.replace(ii," "),t=t.trim(),si(t,100)},oi=(e,t=0)=>{if(void 0===e)return null;if(e instanceof Date)return e.toJSON();const n=typeof e;if("string"===n)return si(e,1024);if("number"===n||"boolean"===n||null===e)return e;if("object"===n){if(t>=10)return null;let n;if(ni._.Array().isArray(e))n=e.map((e=>oi(e,t+1)));else{n={};for(let i=0,s=Object.keys(e);i1024?null:n}return si(String(e),1024)};var ai=n(5121),ci=n(8157);const li="_ce.av";let di=null;const ui=()=>{if(di)return di;if(me.i.canSave){const e=(0,r.Ri)(li);if(e)try{const t=CE2.Native.JSON.parse(e);if(CE2.Native.Array.isArray(t))return di=t.filter((e=>CE2.Native.Array.isArray(e)&&"string"==typeof e[0]&&"number"==typeof e[1])),di}catch(e){}}return di=[],di},hi=e=>{me.i.canSave&&(0,r.o)(li,CE2.Native.JSON.stringify(e),{expiresInDays:180})},pi=e=>{const t=Date.now()-15552e6,n=e.filter((([,e])=>e>=t));for(;n.length&&CE2.Native.JSON.stringify(n).length>3072;)n.shift();return n},gi={record(e){const t=(e=>{try{const t=new CE2.URL(e||CE2.w.location.href),{qs:n}=t;if(!n)return null;const i=n.ce_adid||n.utm_content;if("string"!=typeof i)return null;const s=i.trim();return s?s.length>256?s.slice(0,256):s:null}catch(e){return null}})(e);if(!t)return;const n=pi(ui());n.some((e=>e[0]===t))?di=n:(n.push([t,Date.now()]),di=pi(n),hi(di))},getVisits(){const e=ui();return di=pi(e),di.length!==e.length&&hi(di),di.slice()},_reset(){di=null}};var fi=n(1619),mi=n(1814);class Ei extends mi.A{constructor(e){super(e),CE2BH.defineProperty(this,"DIFF_INTERVAL",750),CE2BH.defineProperty(this,"SAMPLE_INTERVAL",100);const{visitId:t,version:n,censoredElements:i,site:s,session:r,goals:a}=e;this.eventHandlers={},this.commonEventHandlers={},this.censoredElements=i,this.hideIframes=s&&s.recordingSettings&&s.recordingSettings.hideIframes,this.version=n,this.clickCaptors=CE2.state.clickCaptors.concat([...CE2.d.body.getElementsByClassName("-ce-capture")]),this.site=s||{},this.session=r,this.sessionId=r.id,this.goals=a||[],this.snapshots=[],this.snapshotIds=[],this.blocked=!1,this.sampleCallbacks=[],this.diffCallbacks=[],this.isVisible=!0,this.setVisitorIDs(),this.setVisitIDs(t),this.cookies={lastSession:"v11ls"},this.site.recordingSettings&&(0,ft.e)(this.site.recordingSettings.blockedRules)&&((0,o.Yz)("[Tracker] Session page blocked"),this.blocked=!0),this.isDocumentHiddenOnce=document.hidden,this.setupCommonEventHandlers(),this.setupVisibilityChangeHandlers(),this.setupGoalEventHandlers(),this.setupEcommerceEventHandler(),this.setupEngagementEventHandlers(),this.processBuffer({scheduleTimeout:!0})}update({session:e,snapshots:t,urlChanged:n,goals:i}){this.eventHandlers.error&&this.eventHandlers.error.flush(),this.processBuffer();let s=!1;this.snapshotIds&&this.snapshotIds.sort().join(",")!==(t||[]).map((e=>e.id)).sort().join(",")&&(s=!0);const r=e&&(e.isNew()||this.session?.id!==e.id);if(e){this.session=e,this.sessionId=e.id,e.isFull()&&!this.assetsTracker&&(this.assetsTracker=new CE2.AssetTracker(this),this.assetsTracker.setup());CE2.cookieStorage.get(this.cookies.lastSession)!==(this.session&&this.session.id)&&this.resetSessionTracking()}if(this.snapshots=t||[],this.snapshotIds=this.snapshots.map((e=>e.id)),this.formatVersion=this.snapshots[0]&&this.snapshots[0].v,this.goals=i||[],this.setupCommonEventHandlers(),this.setupGoalEventHandlers(),this.setupSnapshotAndSessionEventHandlers(),n||r){(0,ai.R)(),!r&&this.url&&this.hasWebAnalytics()&&this.commonEventHandlers.visit?.trigger(),this.url=window.location.href,gi.record(this.url),this.session.hasWebAnalytics()&&(this.isNewDailyVisitor=this.visitor.isNewDailyVisitor(),this.isNewDailyReturningVisitor=this.isNewDailyVisitor&&this.visitor.isReturning()),this.setVisitIDs(),this.setupPageFingerprint();for(const e in this.commonEventHandlers)if(Object.prototype.hasOwnProperty.call(this.commonEventHandlers,e)){const t=this.commonEventHandlers[e];t.update&&t.update(r,n)}for(const e in this.eventHandlers)if(Object.prototype.hasOwnProperty.call(this.eventHandlers,e)){const t=this.eventHandlers[e];t.update&&t.update(r,n)}(this.snapshots.length||this.session?.isFull()&&!this.blocked)&&this.commonEventHandlers.visit?.trigger(),this.eventHandlers.goals?.onUrlVisit()}else s&&t?.length&&this.commonEventHandlers.visit?.trigger({snapshotOnly:!0});(r||s&&t?.length)&&this.sendCustomUserData(),r&&this.commonEventHandlers.sessionmetadata?.trigger(),r&&"function"==typeof CE_SESSION_READY&&CE_SESSION_READY(this.session),this.updated=!0}cleanup(){if(this.eventHandlers.error&&this.eventHandlers.error.flush(),this.processBuffer(),clearTimeout(this.sampleTimeout),clearTimeout(this.diffTimeout),delete this.sampleTimeout,delete this.diffTimeout,this.assetsTracker&&(this.assetsTracker.cleanup(),delete this.assetsTracker),this.eventsTargets)for(let e=0,t=Array.from(this.eventsTargets.keys());e{this.pageUnloading=!1}),1e3)}onEngagement(){this.commonEventHandlers.visit.setEngagement()}rageClick(){this.eventHandlers.error&&this.eventHandlers.error.assignAttribute("rageClicked")}notifyError(e){this.session&&this.eventHandlers.error&&this.eventHandlers.error.onError(e)}setupCommonEventHandlers(){this.commonEventHandlers.visit||=new CE2.CommonEventHandlers.Visit(this),this.commonEventHandlers.sessionmetadata||=new CE2.CommonEventHandlers.SessionMetadata(this),this.commonEventHandlers.tag||=new CE2.CommonEventHandlers.Tag(this),this.commonEventHandlers.identify||=new CE2.CommonEventHandlers.Identify(this),this.commonEventHandlers.customUserData||=new CE2.CommonEventHandlers.CustomUserData(this),(this.snapshots?.length||this.session?.isFull()||this.hasWebAnalytics())&&(this.commonEventHandlers.click||=new CE2.CommonEventHandlers.Click(this))}setupGoalEventHandlers(){this.goals.length?this.eventHandlers.goals?this.eventHandlers.goals.goals=this.goals:this.eventHandlers.goals=new CE2.EventHandlers.GoalConversion(this):this.eventHandlers.goals&&(this.eventHandlers.goals.goals=[],this.eventHandlers.goals.cleanup?.(),delete this.eventHandlers.goals)}setupVisibilityChangeHandlers(){this.visibilitychangeHandlerSet||(this.addEventListener("visibilitychange",(0,r.oI)(this,"onVisibilityChange")),this.addEventListener("focus",(0,r.oI)(this,"onBlurFocus")),this.addEventListener("blur",(0,r.oI)(this,"onBlurFocus")),this.visibilitychangeHandlerSet=!0)}setupSnapshotAndSessionEventHandlers(){(this.snapshots?.length||this.session?.isFull())&&(this.eventHandlers.excessiveScrolls||=new CE2.EventHandlers.ExcessiveScroll(this),this.eventHandlers.scroll||=new CE2.EventHandlers.Scroll(this),this.eventHandlers.metric||=new CE2.EventHandlers.Metric(this)),this.session?.isFull()&&!this.blocked&&(this.eventHandlers.sessionscroll||=new CE2.EventHandlers.SessionScroll(this),this.eventHandlers.mousemovement||=new CE2.EventHandlers.MouseMovement(this),this.eventHandlers.resize||=new CE2.EventHandlers.Resize(this),this.eventHandlers.activity||=new CE2.EventHandlers.Activity(this),(0,r.jI)("hide-errors")||(this.eventHandlers.error||=new CE2.EventHandlers.Error(this)),this.eventHandlers.quickback||=new CE2.EventHandlers.QuickBack(this),this.eventHandlers.form||=new CE2.EventHandlers.Form(this),this.eventHandlers.pageState||=new CE2.EventHandlers.PageState(this),this.eventHandlers.typing||=new CE2.EventHandlers.Typing(this),this.eventHandlers.visibility||=new CE2.EventHandlers.Visibility(this),this.runSampleCallbacks(),this.runDiffCallbacks()),this.beforeUnloadHandlerSet||(this.addEventListener(CE2.opera?"unload":"beforeunload",(0,r.oI)(this,"onUnload")),this.beforeUnloadHandlerSet=!0),this.setupEcommerceEventHandler()}setupEcommerceEventHandler(){CE2.EventHandlers?.Ecommerce&&(this.session?.isFull()||this.goals.length)&&(this.eventHandlers.ecommerce||=new CE2.EventHandlers.Ecommerce(this))}setupEngagementEventHandlers(){this.hasWebAnalytics()&&(this.engagementEventHandlerSet||(this.addEventListener("click",(()=>this.onEngagement())),this.addEventListener("scroll",(()=>this.onEngagement())),this.engagementEventHandlerSet=!0))}setupPageFingerprint(){delete this.pageFingerprint,delete this.pageFingerprintMd5,CE2.w.CE_URL_FINGERPRINT&&(this.pageFingerprint=CE2.w.CE_URL_FINGERPRINT()),(this.session?.isFull()||this.hasWebAnalytics())&&this.pageFingerprint&&(this.pageFingerprintMd5=(0,pn.F)(this.pageFingerprint))}addSampleCallback(e){this.sampleCallbacks.push(e)}addDiffCallback(e){this.diffCallbacks.push(e)}runSampleCallbacks(e=!0){if(this.runSampleCallbacksBind)for(let e=0,t=this.sampleCallbacks;e(t||[]).includes(n)?"":e[n]))}addToCart({productId:e,name:t,quantity:n,price:i,currency:s}){this.eventHandlers.ecommerce&&this.eventHandlers.ecommerce.addToCart([e,t,n,this.eventHandlers.ecommerce.amountInCents(i),s])}startCheckout(){this.eventHandlers.ecommerce&&this.eventHandlers.ecommerce.startCheckout()}checkoutCompleted({orderId:e,total:t,currency:n}){this.eventHandlers.ecommerce&&this.eventHandlers.ecommerce.checkoutCompleted([e,this.eventHandlers.ecommerce.amountInCents(t),n])}setVisitIDs(e){CE2.visitId=this.visitID=e||this.makeId()}setVisitorIDs(){this.visitorID=this.visitor.getId()}resetSessionTracking(){this.session?.id&&CE2.cookieStorage.set(this.cookies.lastSession,this.session.id)}identify(e,t={}){this.session&&e&&this.commonEventHandlers.identify?.trigger(e,t)}clearIdentity(){this.visitor.clearIdentity()}amountInCents(e){return e&&!Number.isNaN(Number(e))&&Math.round(1e4*parseFloat(e))}increaseSessionWorth(e,t){if(Number.isNaN(Number(e)))return!1;const n=(0,fi.vn)(this.amountInCents(e),t);return(0,o.Yz)("[Tracker] Increase session worth",{amount:e,currency:t,finalAmount:n}),this.sendSessionWorth(n,t)}decreaseSessionWorth(e,t){if(Number.isNaN(Number(e)))return!1;const n=(0,fi.LV)(this.amountInCents(e),t);return(0,o.Yz)("[Tracker] Decrease session worth",{amount:e,currency:t,finalAmount:n}),this.sendSessionWorth(n,t)}setSessionWorth(e,t){if(Number.isNaN(Number(e)))return!1;const n=(0,fi.LG)(this.amountInCents(e),t);return(0,o.Yz)("[Tracker] Set session worth",{amount:e,currency:t}),this.sendSessionWorth(n,t)}sendSessionWorth(e,t){(0,He.SJ)({number:e,currency:t});const n=[this.visitID,e,t&&3===t.length?t.toUpperCase():null,"new"],i=this.newEvent(35,{attributes:n});this.send(i)}getUserData(){const e=[],{userData:t}=CE2.state;return(0,r.__)([1,2,3,4,5],(n=>{const i=t[n];void 0!==i&&e.push(String(n),i)})),e}goalConversion({goalId:e,value:t,triggerId:n,goalName:i,isDynamic:s=!1,skipSessionWorth:r=!1,userProperties:a}={}){if(!(0,De.a)("conversions"))return void(0,o.Yz)("[Goals] Conversion ignored: feature disabled",{goalId:e,triggerId:n,goalName:i,isDynamic:s});const c=s&&i?`dyn-${(0,pn.F)(i)}`:null,l=!ci.r.alreadyConverted(c||e),d=s?null:(e=>{if(!(0,De.a)("ctas"))return;return CE2.Native.JSON.parse(CE2.Native.sessionStorageWrapper.read(ze)||"{}")[e.toString()]})(e),u=this.visitor.getFirstVisitData(),h=s?null:this.goals.find((({id:t})=>t===e));let p,g;if(t||s||(t=ci.r.getNextGoalConversionValue(e,n))&&(0,o.Yz)("[Goal] Using stored value",{goal:h,triggerId:n,value:t}),!t&&h&&h.triggers){const e=h.triggers.find((e=>e.id==n));e&&e.fixed_value&&(t=e.fixed_value,(0,o.Yz)("[Goal] Using fixed value",{goal:h,trigger:e,value:t}))}t&&"object"==typeof t&&t.worth&&!Number.isNaN(t.worth)&&(p=t.currency,g=t.worth,r||this.increaseSessionWorth(g,p));const f=[CE2.w.location.href,s||d?.goalId!==e?void 0:d.id,s||d?.goalId!==e?void 0:CE2.data.addons.find((({id:e})=>e===d.id))?.name,s?i:h?.name,this.visitor.getIdentification(),e||"",u.landingUrl,u.referrer,u.time?Date.now()-u.time:null,u.utm,u.userData,CE2.clock.getIP(),CE2.clock.getDeviceType(),this.visitor.isReturning(),g?Math.round(1e4*parseFloat(g)):void 0,p];s||d?.goalId!==e||((0,ce.sendCounter)("cta:conversion",d.id),(e=>{const t=CE2.Native.JSON.parse(CE2.Native.sessionStorageWrapper.read(ze)||"{}");delete t[e],CE2.Native.sessionStorageWrapper.write(ze,CE2.Native.JSON.stringify(t))})(e));const m=(0,ae.hN)(),E=[m?.id,m?.name,m?.variantId,"",m?.realId,m?.variantRealId,this.pageFingerprint,gi.getVisits()],C=[this.visitID,n||"",l,this.session?this.session.numberVisits():"",...f,...E],v=(e=>{if(!e||"object"!=typeof e||ni._.Array().isArray(e))return null;const t=Object.keys(e).slice(0,25);if(0===t.length)return null;const n={};for(let i=0;i{n.triggers.forEach((i=>{const s=i.filter.conditions.filter((e=>"code"===e.criteria));if(0!==s.length)for(let r=0;r255)throw new Error("Goal name is too long:",e);this.goalConversion({isDynamic:!0,goalName:e,value:t,userProperties:n})}else(0,o.Yz)("[Goals] Dynamic conversion ignored: feature disabled",{name:e})}sendCustomUserData(){this.commonEventHandlers.customUserData?.trigger()}addTag(e,t={}){if(!this.session.isFull()&&!t.virtual)return;const n=CE2.Native.Array.isArray(e)?e:[e];for(let e=0;e{for(let t=0,n=s.hooks;t0?CE2.eventTypes.PAGE_UNLOAD:CE2.eventTypes.VISIT,u=this.tracker.newEvent(d,{eventID:d===CE2.eventTypes.VISIT?this.tracker.visitID:void 0,attributes:l});this.tracker.session&&this.tracker.session.setNumberVisits(a),t?this.tracker.sendImmediatelly(u,{flow:"s"}):n?this.tracker.sendImmediatelly(u,{flow:"ss",virtual:!0}):this.tracker.send(u),n||!this.tracker.snapshots?.length&&!this.tracker.session.isFull()||this.triggerPerformance(e)}triggerPerformance(e={}){const{snapshotOnly:t}=e,n=CE2.w;this.performanceObserver&&(this.performanceObserver.disconnect(),delete this.performanceObserver),n.performance&&n.performance.getEntriesByType&&(this.handlePerformanceEntries(n.performance.getEntriesByType("navigation"),t),this.handlePerformanceEntries(n.performance.getEntriesByType("paint"),t),"undefined"!=typeof PerformanceObserver&&(this.performanceObserver=new PerformanceObserver((e=>{this.handlePerformanceEntries(e.getEntries(),t)})),this.performanceObserver.observe({entryTypes:["navigation","paint"]})))}handlePerformanceEntries(e=[],t=!1){this.tracker.isDocumentHiddenOnce||e.forEach((e=>{"navigation"===e.entryType?(e.domContentLoadedEventStart&&this.sendPerformance(CE2.eventTypes.DOM_CONTENT_LOADED,e.domContentLoadedEventStart,t),e.domInteractive&&this.sendPerformance(CE2.eventTypes.DOM_INTERACTIVE,e.domInteractive,t),e.loadEventStart&&this.sendPerformance(CE2.eventTypes.PAGE_LOAD,e.loadEventStart,t)):"first-contentful-paint"===e.name&&this.sendPerformance(CE2.eventTypes.FIRST_CONTENTFUL_PAINT,e.startTime,t)}))}sendPerformance(e,t,n=!1){if(!this.performanceEvents[e]||n){const i=[this.tracker.visitID,t],s=this.tracker.newEvent(e,{attributes:i});n?this.tracker.sendImmediatelly(s,{flow:"s"}):this.tracker.send(s),this.performanceEvents[e]=!0}}analyticsData(){if(!this.tracker.hasWebAnalytics())return null;const{isNewDailyVisitor:e,isNewDailyReturningVisitor:t}=this.tracker;this.engagementTime||=0;let n=0;this.engagementStartedAt&&(n=Date.now()-(this.lastEngagementAt||this.engagementStartedAt),this.engagementTime+=n,this.lastEngagementAt=Date.now());const i=[this.tracker.visitID,this.sequence,e,t,this.isNewSession,this.isNewSessionEngagement,this.isNewSessionEngagementTrigger,this.isNewEngagement,this.isNewEngagementTrigger,this.engagementTime,n,this.tracker.session.getWebAnalyticsRatio(),this.tracker.session.getFirstVisitData()?.url,this.tracker.session.getFirstVisitData()?.notModifiedUrl];return this.isNewEngagementTrigger=!1,this.isNewSessionEngagementTrigger=!1,i}getLanguage(){return(CE2.n.language||CE2.n.userLanguage).split("-")[0]}async setEngagement(){this.tracker.hasWebAnalytics()&&!this.engaged&&(this.engagementStartedAt=Date.now(),this.isNewEngagement=!0,this.isNewEngagementTrigger=!0,await this.tracker.session.isEngaged()||(this.tracker.session.setAsEngaged(),this.isNewSessionEngagement=!0,this.isNewSessionEngagementTrigger=!0)),this.engaged=!0}updateLastEngagementAt(){this.lastEngagementAt=Date.now()}},Click:class{constructor(e){this.tracker=e,this.opaqueElement=null,this.lastClicked=null,this.ignoredElements=CE2.state.ignoredElements.concat([...CE2.d.body.getElementsByClassName("-ce-ignore")]),this.resetLimitCount(),this.tracker.addEventListener("mousedown",(0,r.oI)(this,"onClick")),this.tracker.addEventListener("change",(0,r.oI)(this,"onChange"));for(let e=0,t=CE2.d.querySelectorAll("OBJECT, EMBED");e1&&i.height>1&&(this.tracker.addEventListener("mouseover",(0,r.oI)(this,"onOver"),n),this.tracker.addEventListener("mouseout",(0,r.oI)(this,"onOut"),n))}for(let e=0,t=CE2.d.querySelectorAll("FRAME, IFRAME");e1&&e.height>1&&(this.tracker.addEventListener("mouseover",(0,r.oI)(this,"onOver"),n),this.tracker.addEventListener("mouseout",(0,r.oI)(this,"onOut"),n))}}this.tracker.addEventListener("blur",(0,r.oI)(this,"onBlur")),this.tracker.addEventListener(CE2.opera?"unload":"beforeunload",(0,r.oI)(this,"onUnload"))}update(){this.resetLimitCount()}cleanup(){delete this.lastClicked,delete this.lastClickedTime,delete this.ignoredElements,this.resetLimitCount()}resetLimitCount(){this.clickTotal=0}overLimit(){return!!(0,r.jI)("per-visit-event-limit")&&this.clickTotal>100}onChange(e){if(e.target&&"SELECT"===e.target.tagName){this.tracker.onActivity();for(let t=0,n=e.target.querySelectorAll("option");t=13?(0,r.wt)(e):e.srcElement||e.target;if("OPTION"===t.tagName&&t.parentElement&&"SELECT"===t.parentElement.tagName)return;this.click(t,null,null,n,e)}}onBlur(){const e=this.opaqueElement;e&&e!==this.lastClicked&&(this.click(e),this.opaqueElement=null)}onUnload(){const e=this.opaqueElement;e&&this.isIgnored(e)&&(this.click(e),this.opaqueElement=null)}onClickFrame(e){this.onClick(e,!0)}onOver(e){const t=e.srcElement||e.target;this.isIgnored(t)||this.isIgnored((0,r.wt)(e))||(this.opaqueElement=t)}onOut(e){this.isIgnored(e.srcElement||e.target)||this.isIgnored((0,r.wt)(e))||(this.opaqueElement=null)}click(e,t,n,i,s){if(this.isTopLevelElement(e)||this.isIgnored(e))return;if(e=this.tracker.getElementToRecord(e),(0,r.KQ)(e))return;const o=this.tracker.getFingerprint(e),a=this.getClickPosition(t,n,o,s);a.button=i,"l"===i&&(a.clickType=this.getClickType(s)),this.lastClicked=e;const c=[this.tracker.visitID,...this.tracker.getFingerprintAttributes(o),a.x,a.y,a.button,a.pageX,a.pageY,a.clickType],l=this.tracker.newEvent(CE2.eventTypes.CLICK,{attributes:c});this.tracker.send(l)}getClickPosition(e,t,n,i){let s;const o={x:e||0,y:t||0,pageX:0,pageY:0};return i&&(i.srcElement||i.target)?(e||(s=(0,r.v$)(i),o.x=s[0]-n.pageX,o.y=s[1]-n.pageY),o.pageX=i.pageX,o.pageY=i.pageY):e&&t?(o.x=e,o.y=t):i||(o.x=o.pageX=n.width/2,o.y=o.pageY=n.height/2),o}getClickType(e){if(!e)return"";const t=(0,r.wt)(e),n=this.isClickableElement(t);let i="";return n||(i+=CE2.clickTypes.NOT_CLICKABLE),this.rageClick(e,t,n)&&(i+=CE2.clickTypes.RAGE,this.tracker.rageClick()),n&&this.authenticationButton(t)&&(i+=CE2.clickTypes.AUTH_BUTTON),i||void 0}rageClick(e,t,n){if(!e)return!1;if(e.timeStamp===this.lastEventTimeStamp)return this.lastRageValue;let i=!1;if(e.detail>2)i=!0;else if(this.lastClickedTime){const s=+new Date-this.lastClickedTime;(n&&this.lastClickedElement===t&&2!==e.detail||!n)&&s<3e3&&(i=!0)}return this.lastClickedTime=+new Date,this.lastEventTimeStamp=e.timeStamp,this.lastRageValue=i,this.lastClickedElement=t,i}authenticationButton(e){if(e.innerText){const t=e.innerText.trim().toLowerCase();return!!["sign in with","register with","authorize","join with"].some((e=>new RegExp(`^${e}`).test(t)))||["sign in","signin","signup","sign up","register","login","create account","register account","join","join us"].some((t=>t===e.innerText.trim().toLowerCase()))}}isClickableElement(e){const t=["a","a *","button","button *","input","option","select","textarea","iframe"].join(",");if((0,r.B5)(e,t))return!0;const n=getComputedStyle(e);return!("pointer"!==n.cursor&&"text"!==n.cursor&&!(n.textDecorationLine||"").includes("underline"))}isTopLevelElement(e){return e===document||e===document.body||e===document.documentElement}isIgnored(e){return(0,r.DQ)(this.ignoredElements,e)}},SessionMetadata:class{constructor(e){this.tracker=e}trigger(e={}){const{virtual:t}=e,n=CE2.isBot(!0);if((0,r.jI)("v11_disable_bot_detection")&&n&&(this.tracker.addTag("bot",{virtual:t}),CE2.w.serverLog&&this.tracker.visitor&&this.tracker.session))try{CE2.w.serverLog({id:this.tracker.visitor.getId(),value:`sessionid:${this.tracker.session.id}, bot:${n}`})}catch(e){(0,o.Yz)(`error logging bot reason: ${e.message}`)}const i=CE2.state.overridenRecordingSamplingRate?parseInt(100/CE2.state.overridenRecordingSamplingRate,10):function(e){if(CE2.data.sites_sampling)for(let t=0,n=CE2.data.sites_sampling;t0&&(this.tracker.addTag(CE2.sessionTags,{virtual:t}),CE2.sessionTags=[]),CE2.appliedStrategy&&this.sendSessionRatio()}sendSessionRatio(){const e=[this.siteRatio,CE2.appliedStrategy],t=this.tracker.newEvent(CE2.eventTypes.SESSION_RATIO,{attributes:e});this.tracker.send(t)}},Tag:class{constructor(e){this.tracker=e}trigger(e,t={}){const{virtual:n}=t;if(e){const t=[e],i=this.tracker.newEvent(19,{attributes:t});n?this.tracker.sendImmediatelly(i,{flow:"ss",virtual:!0}):this.tracker.send(i)}}},Identify:class{constructor(e){this.tracker=e}trigger(e,t={}){const{virtual:n}=t;if(e){const t=[e];this.tracker.visitor.identify(e);const i=this.tracker.newEvent(17,{attributes:t});n?this.tracker.sendImmediatelly(i,{flow:"ss",virtual:!0}):this.tracker.send(i)}}},CustomUserData:class{constructor(e){this.tracker=e}trigger(){const{userData:e}=CE2.state;if(e.length>0&&e.find((e=>!!e))){const t=[e[1],e[2],e[3],e[4],e[5]],n=this.tracker.newEvent(18,{attributes:t});this.tracker.send(n)}}}},wi={getBox:O,scroll:b,fingerprint2:function(e,t={}){return new ne(e,t)}}},5102:()=>{!function(e){var t=e.CE2BH={};function n(){return t.extends=n=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(s[n]=e[n]);return s}}("undefined"==typeof window?self:window)},1881:(e,t,n)=>{"use strict";n.d(t,{F:()=>s});var i=n(5043);const s=n.n(i)()},6103:(e,t,n)=>{"use strict";n.d(t,{K:()=>i});const i=function(){var e=String.fromCharCode,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",n={};var i={compressToBase64:function(e){if(null==e)return"";var n=i._compress(e,6,(function(e){return t.charAt(e)}));switch(n.length%4){default:case 0:return n;case 1:return n+"===";case 2:return n+"==";case 3:return n+"="}},decompressFromBase64:function(e){return null==e?"":""==e?null:i._decompress(e.length,32,(function(i){return function(e,t){if(!n[e]){n[e]={};for(var i=0;i>=1}else{for(s=1,i=0;i>=1}0==--u&&(u=Math.pow(2,p),p++),delete a[d]}else for(s=o[d],i=0;i>=1;0==--u&&(u=Math.pow(2,p),p++),o[l]=h++,d=String(c)}if(""!==d){if(Object.prototype.hasOwnProperty.call(a,d)){if(d.charCodeAt(0)<256){for(i=0;i>=1}else{for(s=1,i=0;i>=1}0==--u&&(u=Math.pow(2,p),p++),delete a[d]}else for(s=o[d],i=0;i>=1;0==--u&&(u=Math.pow(2,p),p++)}for(s=2,i=0;i>=1;for(;;){if(f<<=1,m==t-1){g.push(n(f));break}m++}return g.join("")},decompress:function(e){return null==e?"":""==e?null:i._decompress(e.length,32768,(function(t){return e.charCodeAt(t)}))},_decompress:function(t,n,i){var s,r,o,a,c,l,d,u=[],h=4,p=4,g=3,f="",m=[],E={val:i(0),position:n,index:1};for(s=0;s<3;s+=1)u[s]=s;for(o=0,c=Math.pow(2,2),l=1;l!=c;)a=E.val&E.position,E.position>>=1,0==E.position&&(E.position=n,E.val=i(E.index++)),o|=(a>0?1:0)*l,l<<=1;switch(o){case 0:for(o=0,c=Math.pow(2,8),l=1;l!=c;)a=E.val&E.position,E.position>>=1,0==E.position&&(E.position=n,E.val=i(E.index++)),o|=(a>0?1:0)*l,l<<=1;d=e(o);break;case 1:for(o=0,c=Math.pow(2,16),l=1;l!=c;)a=E.val&E.position,E.position>>=1,0==E.position&&(E.position=n,E.val=i(E.index++)),o|=(a>0?1:0)*l,l<<=1;d=e(o);break;case 2:return""}for(u[3]=d,r=d,m.push(d);;){if(E.index>t)return"";for(o=0,c=Math.pow(2,g),l=1;l!=c;)a=E.val&E.position,E.position>>=1,0==E.position&&(E.position=n,E.val=i(E.index++)),o|=(a>0?1:0)*l,l<<=1;switch(d=o){case 0:for(o=0,c=Math.pow(2,8),l=1;l!=c;)a=E.val&E.position,E.position>>=1,0==E.position&&(E.position=n,E.val=i(E.index++)),o|=(a>0?1:0)*l,l<<=1;u[p++]=e(o),d=p-1,h--;break;case 1:for(o=0,c=Math.pow(2,16),l=1;l!=c;)a=E.val&E.position,E.position>>=1,0==E.position&&(E.position=n,E.val=i(E.index++)),o|=(a>0?1:0)*l,l<<=1;u[p++]=e(o),d=p-1,h--;break;case 2:return m.join("")}if(0==h&&(h=Math.pow(2,g),g++),u[d])f=u[d];else{if(d!==p)return null;f=r+r.charAt(0)}m.push(f),u[p++]=r+f.charAt(0),r=f,0==--h&&(h=Math.pow(2,g),g++)}}};return i}()},55:(e,t,n)=>{"use strict";n.d(t,{O:()=>r});const i=function(){let e;const t=void 0!==n.g&&(n.g.crypto||n.g.msCrypto);if(t&&t.getRandomValues){const n=new Uint8Array(16);e=function(){return t.getRandomValues(n),n}}if(!e){const t=new CE2.Native.Array(16);e=function(){for(let e,n=0;n<16;n++)3&n||(e=4294967296*Math.random()),t[n]=e>>>((3&n)<<3)&255;return t}}return e}(),s=function(){const e=[];for(let t=0;t<256;++t)e[t]=(t+256).toString(16).substr(1);return function(t,n){let i=n||0;const s=e;return s[t[i++]]+s[t[i++]]+s[t[i++]]+s[t[i++]]+"-"+s[t[i++]]+s[t[i++]]+"-"+s[t[i++]]+s[t[i++]]+"-"+s[t[i++]]+s[t[i++]]+"-"+s[t[i++]]+s[t[i++]]+s[t[i++]]+s[t[i++]]+s[t[i++]]+s[t[i++]]}}(),r=(o=i(),a=[1|o[0],o[1],o[2],o[3],o[4],o[5]],c=16383&(o[6]<<8|o[7]),l=0,d=0,function(e,t,n){var i=t&&n||0,r=t||[],o=void 0!==(e=e||{}).clockseq?e.clockseq:c,u=void 0!==e.msecs?e.msecs:(new Date).getTime(),h=void 0!==e.nsecs?e.nsecs:d+1,p=u-l+(h-d)/1e4;if(p<0&&void 0===e.clockseq&&(o=o+1&16383),(p<0||u>l)&&void 0===e.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=u,d=h,c=o;var g=(1e4*(268435455&(u+=122192928e5))+h)%4294967296;r[i++]=g>>>24&255,r[i++]=g>>>16&255,r[i++]=g>>>8&255,r[i++]=255&g;var f=u/4294967296*1e4&268435455;r[i++]=f>>>8&255,r[i++]=255&f,r[i++]=f>>>24&15|16,r[i++]=f>>>16&255,r[i++]=o>>>8|128,r[i++]=255&o;for(var m=e.node||a,E=0;E<6;++E)r[i+E]=m[E];return t||s(r)});var o,a,c,l,d},8356:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>o,Fi:()=>a,UE:()=>l,bU:()=>c});var i=n(8401),s=n(884);class r extends i.v{}const o=new r,a=()=>{const e=document.location.hash.match(/#ce-abtest-(.+)/);if(!e||!e[1])return;const t=e[1].split("."),[n,i,s]=t;return[n,i,s,t.slice(3).join(".")||null]},c=()=>!!a(),l=()=>{CE2.loadScript(CE2.data.transformations_script_url,(()=>{(0,s.Yz)("[Flows] [Preview] transformations.js chunk is loaded. Run AB test preview"),CE2.initAbTestPreview()}))}},9152:(e,t,n)=>{"use strict";n.d(t,{i:()=>s});var i=n(390);const s={CK:"_ce.s",LAST_COOKIE_WRITE_KEY:"lcw",LAST_COOKIE_WRITE_THRESHOLD:3e5,saveTimeout:null,canSave:"undefined"==typeof CE_NO_COOKIES||!CE_NO_COOKIES,expiresIn:"number"==typeof CE_COOKIE_EXPIRE_DAYS?CE_COOKIE_EXPIRE_DAYS:365,values:{},load(){if(!this.canSave)return this.values;let e,t,n=CE2.getCookie(this.CK);const i={};if(!n)return i;for(n=n.replace(/\\~/g,"\0").split("~"),e=0;t=n[e];e+=2)i[t.replace(/\x00/g,"~")]=n[e+1].replace(/\x00/g,"~");return i},getCookieRawValue(e){const t=[];return(0,i.__)(e,((e,n)=>{n!==this.LAST_COOKIE_WRITE_KEY&&(t.push(n.replace("~","\\~")),t.push(e.replace("~","\\~")))})),t.push(`${this.LAST_COOKIE_WRITE_KEY}~${+new Date}`),t.join("~")},save(e){this.canSave?(0,i.o)(this.CK,this.getCookieRawValue(e),{expiresInDays:this.expiresIn}):this.values=e},get(e){return this.load()[e]},set(e,t){const n=this.load(),i=`${t}`;let s=!1;const r=parseInt(n[this.LAST_COOKIE_WRITE_KEY],10);r&&+new Date-r>this.LAST_COOKIE_WRITE_THRESHOLD&&(s=!0),(n[e]!==i||s)&&(n[e]=i,this.save(n))},del(e){const t=this.load();delete t[e],this.save(t)}}},884:(e,t,n)=>{"use strict";n.d(t,{$J:()=>l,$Q:()=>r,Yz:()=>a,aE:()=>d,aQ:()=>o,cC:()=>c,dK:()=>s});const i=function(e){if(!CE2.data||!CE2.data.features)return!1;for(let t=0,n=CE2.data.features;t{const e=CE2.data&&CE2.data.dkey;return!!(e&&CE2.w&&CE2.w.location.href.indexOf(`ced=${e}`)>-1)||(!!i("remote-logs")||"undefined"!=typeof CE_DEBUG&&CE_DEBUG)},r=()=>"undefined"!=typeof CE_DEBUG&&CE_DEBUG>=2,o=(e,t)=>{CE2.n.sendBeacon&&CE2.n.sendBeacon(CE2.data.v11_tracking_dest.replace("v11","debug"),CE2.Native.JSON.stringify({siteId:CE2.site?.id,userId:CE2.data.uid,type:e,data:CE2BH.extends({version:CE2.VERSION,ts:+new Date},t)}))},a=(e,t)=>{if(CE2.state.logHistoryEnabled&&CE2.state.logHistory.push(e),i("remote-logs")){const n=t?CE2.Native.JSON.stringify(t).substring(0,120):"";o("logs",{visitorId:CE2.visitorTracker?.getId(),visitId:CE2.getVisitId&&CE2.getVisitId(),sessionId:CE2.getSessionId&&CE2.getSessionId(),msg:e,obj:n})}if(!s())return!1;let n;n="string"==typeof e?`CE: ${e}`:e;const r=[n];if(t&&r.push(t),"undefined"!=typeof window){const{console:e}=CE2.Native;e&&e.log&&e.log(...r)}},c=(e,t)=>{if(!r())return!1;a(e,t)},l=function(){return void 0!==CE2.w.CE_BENCHMARK&&CE2.w.CE_BENCHMARK||(CE2&&CE2.w&&CE2.w.location.href.indexOf("ceb=#{data[:dkey]}"))>-1},d={autoReport:()=>void 0!==CE2.w.CE_BENCHMARK&&CE2.w.CE_BENCHMARK||window.location.href.indexOf("ceb=#{data[:dkey]}")>-1,start:(e,t=[])=>{if(CE2.benchmark.stopped)return;CE2.benchmarks.find((t=>t.name===e))||CE2.benchmarks.push({name:e,tags:t,startedAt:new Date})},stop:e=>{if(CE2.benchmark.stopped)return;const t=CE2.benchmarks.find((t=>t.name===e));t&&!t.diff&&(t.diff=+new Date-+t.startedAt)},report:()=>{const e=["CE: [Benchmark]",""];for(let t=0,n=CE2.benchmarks;t{"use strict";n.d(t,{D:()=>s,p:()=>i});const i={types:{desktop:{name:"desktop",fullName:"Desktop",code:1,display:{width:1280,height:800},viewport:{width:1280,height:800},userAgent:null},phone:{name:"phone",fullName:"Phone",code:2,display:{width:320,height:480},viewport:{width:980,height:1091},userAgent:"Mozilla/5.0 (Android 7.0; Mobile; rv:60.0) Gecko/60.0 Firefox/60.0"},tablet:{name:"tablet",fullName:"Tablet",code:3,display:{width:800,height:1280},viewport:{width:980,height:1568},userAgent:"Mozilla/5.0 (Android 7.0; Tablet; rv:60.0) Gecko/60.0 Firefox/60.0"}},codeMap:{1:"desktop",2:"phone",3:"tablet"},typeMap:{desktop:1,phone:2,tablet:3}},s=function(e){return(CE2.Native.Array.isArray(e)?e:[e]).map((e=>i.typeMap[e])).includes(CE2.clock.getDeviceType())}},4794:(e,t,n)=>{"use strict";n.d(t,{M4:()=>s,T:()=>i,vU:()=>o});const i=function(){const e=navigator.userAgent;CE2.opera=CE2.ie=CE2.chrome=CE2.safari=CE2.firefox=!1;let t="unknown";return CE2.w&&CE2.w.opera&&"function"==typeof CE2.w.opera.version?(t="opera",CE2.opera=!0,CE2.operaVersion=parseInt(CE2.w.opera.version(),10)):/\bMSIE\b/.test(e)?(t="ie",CE2.ie=!0,CE2.ieVersion=parseInt(/MSIE (\d+)\.\d+/.exec(navigator.userAgent)[1],10),CE2.ieQuirksMode="BackCompat"==document.compatMode):/\b(iPhone|iP[ao]d)\b/.test(e)?(t="iphone",CE2.iphone=!0,CE2.webkit=!0,/AppleWebKit/.test(navigator.appVersion)&&(t="safari",CE2.safari=!0)):/\bChrome\b/.test(e)?(t="chrome",CE2.chrome=!0,CE2.webkit=!0):/AppleWebKit/.test(navigator.appVersion)?(t="safari",CE2.safari=!0,CE2.webkit=!0):/Mozilla/i.test(e)&&!/compatible|webkit/i.test(e)&&(t="firefox",CE2.firefox=!0),CE2.webkit&&(CE2.webkitVersion=parseInt(/AppleWebKit\/(\d+)/.exec(e)[1],10)),t}(),s=function(e,t){const{crypto:n}=CE2.w,i="function"==typeof CE2.w.btoa&&CE2.w.btoa;let s,r,o,a="";if(e=e||20,n&&n.getRandomValues){const t=new Uint8Array(e);n.getRandomValues(t),s=CE2.Native.Array.from(t)}else for(s=new CE2.Native.Array(e),r=0;rString.fromCharCode(e))).join(""),i(a).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=+$/,"");for(r=0;r{"use strict";n.d(t,{O:()=>r,R:()=>s});const i=new Set;function s(){i.clear()}function r(e,t){return t.filter((t=>!function(e,t){const n=function(e,t){const n=t?.[0]?.[0];if(!n)return;const i=[];return!e.snapshotIds||e.flow&&"s"!==e.flow||i.push(`s-${e.snapshotIds.join(",")}`),!e.sessionId||e.flow&&"ss"!==e.flow||i.push(`ss-${e.sessionId}`),!e.goalId||e.flow&&"g"!==e.flow||i.push(`g-${e.goalId}`),!e.abTestId||e.flow&&"ab"!==e.flow||i.push(`ab-${e.abTestId}`),i.push(n),i.join(":")}(e,t);return!(!n||!i.has(n)&&(i.add(n),1))}(e,t)))}CE2.state&&(CE2.state.knownEventIds=i)},8401:(e,t,n)=>{"use strict";n.d(t,{v:()=>s});const i=()=>({events:{},emit(e,...t){const n=this.events[e]||[];for(let e=0,{length:i}=n;e{this.events[e]=this.events[e]?.filter((e=>t!==e))}},exists(e,t){return this.events[e]&&1===this.events[e].filter((e=>e===t)).length}});class s{constructor(){this.emitter=i()}on(e,t,n){if(!n||!this.emitter.exists(e,t))return this.emitter.on(e,t)}once(e,t,n=!1){if(n&&this.emitter.exists(e,t))return;const i=this.on(e,(async(...e)=>(i(),t(...e))))}emit(...e){return this.emitter.emit(...e)}}},3032:(e,t,n)=>{"use strict";n.d(t,{A:()=>o,o:()=>r});var i=n(884),s=n(4933);const r=function(){const e={};return e.sendError=function(e){try{if(CE2.data&&CE2.data.error_tracking){const t={url:window.location.href,error:e.type,error_name:e.name,filename:e.filename};e.message&&(t.error_description=e.message.toString()),e.error&&e.error.stack&&(t.stack=e.error.stack.toString()),(0,s.send)(`${CE2.data.error_tracking_dest}?u=${encodeURIComponent(CE2.data.uid)}`,CE2.Native.JSON.stringify(t),{sendBeacon:!0})}}catch(e){}},e.listen=function(){if(!CE2.data.error_tracking_dest||!CE2.data||!CE2.data.uid)return;const e=CE2.data.error_tracking_script_url;window.addEventListener("error",(t=>{try{if((0,i.Yz)(`Error Tacking: Error Event '${t}'`),!t.filename)return;(0,i.Yz)(`Error Tacking: Error filename '${t.filename}'`),t.filename.includes(e)&&this.sendError(t)}catch(e){}}))},e}(),o=e=>{(e instanceof Error||e instanceof TypeError)&&((0,i.Yz)(e),r&&r.sendError&&r.sendError(e))}},9327:(e,t,n)=>{"use strict";n.d(t,{a:()=>s});const i=["editor","ab_tests","ctas","surveys","heatmaps","recordings","conversions","web_analytics"];function s(e){if(!i.includes(e))throw new Error(`unsupported feature name: ${e}`);const t=CE2.w.CE_FEATURES?.[e];return!t||!1!==t.enabled}},7823:(e,t,n)=>{"use strict";n.d(t,{D8:()=>o,Uf:()=>a,W2:()=>r,hN:()=>l,lD:()=>c});var i=n(9152);const s="flvl",r=(e,t)=>{const n=i.i.get(s)||"";n.includes(e)||i.i.set(s,`${n},${e}:${t}`)},o=()=>{i.i.del(s)},a=e=>{e.length?i.i.set(s,e.reduce(((e,{id:t,variantId:n})=>`${e},${t}:${n}`),"")):o()},c=()=>{const e=(i.i.get(s)||"").split(",").flatMap((e=>{const[t,n]=e.split(":");return t&&CE2.data.flows?.[t]?{id:t,name:CE2.data.flows?.[t]?.name,variantId:n}:[]}));return e.length?e[e.length-1]:null},l=()=>{const e=c();if(!e)return null;const t=CE2.data.flows?.[e.id],n=t?.variants?.[e.variantId];return{id:e.id,name:e.name,variantId:e.variantId,realId:t?.realId,variantRealId:n?.realId}}},5265:(e,t,n)=>{"use strict";n.d(t,{f:()=>s});const i={};!function(e){function t(){if(!(this instanceof t))return new t;this.boundary=`------RWWorkerFormDataBoundary${Math.random().toString(36)}`;const e=this.data=[];this.__append=function(t){let n,i=0;if("string"==typeof t)for(n=t.length;i{"use strict";n.d(t,{A:()=>r});var i=n(8401);class s extends i.v{}const r=new s},4933:(e,t,n)=>{"use strict";n.r(t),n.d(t,{descriptiveEventType:()=>p,get:()=>g,send:()=>f,sendCounter:()=>E,sendEvents:()=>C,sendForm:()=>m});var i=n(5265),s=n(884),r=n(390),o=n(3455),a=n(98),c=n(5121),l=n(9115);"undefined"==typeof CE2&&(self.CE2={}),void 0===CE2.state&&(CE2.state={});const{state:d}=CE2;let u,h;d.testModeRequests=[];const p=e=>{if(!CE2.eventTypes)return`event_type=${e}`;if(!u){u={},h=null;for(let e=0,t=Object.keys(CE2.eventTypes);eh.length)&&(h=n)}}let t=u[e];const n=h.length-t.length;for(let e=0;e{const i=CE2.getNativeXMLHttpRequest();i.onreadystatechange=function(){4==i.readyState&&t(i)},i.open("GET",e,!0),n&&(i.responseType=n),i.send()},f=(0,a.fY)((e=>e.includes("clock")),((e,t,n={})=>{if((0,r.ou)())return d.testModeRequests.push({url:e,data:t,options:n}),void(n.callback&&n.callback({responseText:""}));const o=n.sendBeacon&&CE2.n&&CE2.n.sendBeacon;let a=n.contentType||"text/plain";if(o&&CE2.n&&CE2.n.sendBeacon)CE2.n.sendBeacon(e,t),n.callback&&n.callback();else{if("undefined"==typeof XMLHttpRequest)return void(0,s.Yz)("XMLHttpRequest not supported");n.retries||(n.retries=0);const r=CE2.getNativeXMLHttpRequest();r.onreadystatechange=function(){if(n.callback&&4==r.readyState){if((!r.status||429===r.status||r.status>=500&&r.status<600)&&n.retry&&n.retries{f(e,t,n)}),1e3);n.callback(r)}},r.open(n.method||"POST",e),t instanceof i.f&&(t.__endedMultipart||t.__append(`--${t.boundary}--\r\n`),t.__endedMultipart=!0,a=`multipart/form-data; boundary=${t.boundary}`,t=new Uint8Array(t.data)),r.setRequestHeader("Content-type",a),r.send(t)}})),m=(e,t,n={})=>{f(e,(e=>{let t="";const n=encodeURIComponent;return(0,r.__)(e,((e,i)=>{null!=e&&(0,o.b)(`${e}`)&&(t.length&&(t+="&"),t+=`${n(i)}=${n(e)}`)})),t})(t),CE2BH.extends(n,{contentType:"application/x-www-form-urlencoded"}))},E=(e,t)=>{if(!e||!t)return;const n={metric:e,id:t},i=CE2.data.counters_dest;f(i,CE2.Native.JSON.stringify(n),{contentType:"application/json"})},C=(e,t)=>{let n;try{n=(0,c.O)(e,t),"Tracker"===e.context&&n.length&&l.t0(n);const i=[];i.push(`u=${encodeURIComponent(e.userId)}`),i.push(`st=${encodeURIComponent(e.siteId)}`),e.snapshotIds?.length&&i.push(`s=${encodeURIComponent(e.snapshotIds.join(","))}`),e.flow&&i.push(`f=${encodeURIComponent(e.flow)}`),e.sessionId&&i.push(`ss=${encodeURIComponent(e.sessionId)}`),e.pageFingerprintMd5&&i.push(`p=${encodeURIComponent(e.pageFingerprintMd5)}`),e.goalId&&i.push(`g=${encodeURIComponent(e.goalId)}`),e.abTestId&&i.push(`ab=${encodeURIComponent(e.abTestId)}`),e.pv&&i.push("pv=1"),e.t&&i.push(`t=${e.t}`),CE2.data.tracking_key&&i.push(`tk=${encodeURIComponent(CE2.data.tracking_key)}`);const r=[];for(let t=0,i=n;t{"use strict";n.d(t,{PV:()=>r.P,UO:()=>c,ji:()=>a});var i=n(5213),s=n(884),r=n(9550);const o=e=>{const t={onmessage:null,onerror:null,postMessage:null,terminate:null,name:e};if("undefined"==typeof CE_USER_REMOTE_HOST_URL)return(0,s.Yz)("inlineWorker iframe: CE_USER_REMOTE_HOST_URL not defined"),null;let n=null,i=null,r=!1,o=!1;const a=[],c=()=>{if(!o){if(o=!0,i){try{i.close()}catch(e){}i=null}n&&n.parentNode&&n.parentNode.removeChild(n),n=null}};t.terminate=c,t.postMessage=e=>{o||(r&&i?i.postMessage(e):a.push(e))};const l="undefined"==typeof CE_USER_REMOTE_HOST_URL?null:new CE2.Native.URL(CE_USER_REMOTE_HOST_URL).toString(),d=new CE2.Native.URL(l).origin;n=CE2.d.createElement("iframe"),n.style.display="none",n.setAttribute("aria-hidden","true"),n.src=l;const u=setTimeout((()=>{return e="iframe handshake timeout",void(o||(c(),"function"==typeof t.onerror&&t.onerror({message:e})));var e}),5e3);return n.addEventListener("load",(()=>{if(o)return;const s=new MessageChannel;i=s.port1,i.onmessage=e=>{if(r||!e.data||"ready"!==e.data.type)"function"==typeof t.onmessage&&t.onmessage(e);else for(r=!0,clearTimeout(u);a.length;)i.postMessage(a.shift())},i.start(),n.contentWindow.postMessage({type:"ce-remote-init",op:e},d,[s.port2])})),CE2.d.body.appendChild(n),t},a=e=>{try{return i.D.transport()===i.Z.IFRAME?o(e):(e=>{if("undefined"==typeof CE_USER_THIRDPARTY_SCRIPT_URL||"undefined"==typeof CE_USER_COMMON_SCRIPT_URL||"undefined"==typeof CE_USER_REMOTE_SCRIPT_URL)return(0,s.Yz)("inlineWorker: required script URLs not defined"),null;const t=[];for(let e=0,n=["CE_DEBUG","CE_TEST_MODE"];e{"use strict";n.d(t,{P:()=>i}),"undefined"==typeof CE2&&(self.CE2={}),CE2.RemoteOps||(CE2.RemoteOps={});const i=(e,t)=>{CE2.RemoteOps[e]=t}},9979:(e,t,n)=>{"use strict";n.d(t,{RY:()=>x,Bi:()=>O,cZ:()=>U,MH:()=>N,W_:()=>$,mF:()=>M,YZ:()=>D,$K:()=>T,SJ:()=>R,B_:()=>P,ww:()=>A});var i={359:(e,t,n)=>{function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;ti})},704:(e,t,n)=>{n.d(t,{CX:()=>s,I8:()=>c,Lc:()=>l,aA:()=>o,fP:()=>r,lU:()=>a,q4:()=>i});const i=1,s={all:"all",any:"any",greaterThan:"greater_than",lessThan:"less_than",equals:"equals",atLeast:"at_least",atMost:"at_most",between:"between"},r={and:"and",or:"or"},o={matchUrl:"matchUrl",matcher:"matcher",debug:"debug",browserAPI:"browserAPI"},a={new_or_returning:"new_or_returning",referrer:"referrer",landing_page:"landing_page",visited_page:"visited_page",browser:"browser",device:"device",country:"country",os:"os",screen_width:"screen_width",screen_height:"screen_height",pages_viewed:"pages_viewed",duration:"duration",var1:"var1",var2:"var2",var3:"var3",var4:"var4",var5:"var5",profile:"profile",tags:"tags",day_of_week:"day_of_week",utm_source:"utm_source",utm_medium:"utm_medium",utm_campaign:"utm_campaign",utm_term:"utm_term",utm_content:"utm_content",goal_code:"goal_code",goal_conversions:"goal_conversions",clicked_cta:"clicked_cta",answered_survey:"answered_survey",click:"click",form_submission:"form_submission",pixel_event:"pixel_event",ecommerce_event:"ecommerce_event",query_param:"query_param",visitor_id:"visitor_id",max_worth:"max_worth"},c=new Set([a.click,a.form_submission,a.pixel_event,a.ecommerce_event]),l=[a.click,a.form_submission,a.pixel_event,a.ecommerce_event,a.goal_conversions,a.clicked_cta,a.answered_survey,a.max_worth]},408:(e,t,n)=>{n.d(t,{Fj:()=>o,Uv:()=>s,WO:()=>i,th:()=>r});const i={desktop:"desktop",tablet:"tablet",phone:"phone"},s={unknown:"unknown",ie:"ie",opera:"opera",edge:"edge",safari:"safari",chrome:"chrome",firefox:"firefox"},r={seconds:"seconds",minutes:"minutes",hours:"hours",days:"days"},o={sunday:"sunday",monday:"monday",tuesday:"tuesday",wednesday:"wednesday",thursday:"thursday",friday:"friday",saturday:"saturday"}},188:(e,t,n)=>{n.d(t,{a:()=>a});var i=n(704),s=n(600),r=n(408);class o{constructor(e,t){this.state=e,this.providers=t}normalizeComparisonValue(e,t){return e!==i.lU.browser&&e!==i.lU.os||"string"!=typeof t?t:t.toLowerCase()}match(e){return(!e.except||!this.isMatched(e.except.conditions,e.except.operator))&&this.isMatched(e.conditions,e.operator)}isMatched(e,t){const n=(e,t)=>this.evaluate(e,t);return i.fP.and===t?e.every(n):e.some(n)}evaluate(e){if(e.operator&&Array.isArray(e.conditions))return this.isMatched(e.conditions,e.operator);if(!e.value)return!1;const t=this.providers[i.aA.matchUrl];switch(e.criteria){case i.lU.new_or_returning:case i.lU.browser:case i.lU.device:case i.lU.country:case i.lU.os:case i.lU.day_of_week:case i.lU.tags:case i.lU.var1:case i.lU.var2:case i.lU.var3:case i.lU.var4:case i.lU.var5:case i.lU.visitor_id:case i.lU.goal_code:case i.lU.goal_conversions:case i.lU.clicked_cta:case i.lU.answered_survey:{const t=(Array.isArray(e.value)?e.value:[e.value]).map((t=>this.normalizeComparisonValue(e.criteria,t)));if(e.comparison===i.CX.all){const n=(Array.isArray(this.state[e.criteria])?this.state[e.criteria]:[this.state[e.criteria]]).map((t=>this.normalizeComparisonValue(e.criteria,t)));return JSON.stringify(t.sort())===JSON.stringify(n.sort())}const n=this.normalizeComparisonValue(e.criteria,this.state[e.criteria]),s=Array.isArray(n)?t.some((t=>n.map((t=>this.normalizeComparisonValue(e.criteria,t))).includes(t))):t.includes(n);return e.comparison===i.CX.any?!0===s:!1===s}case i.lU.utm_source:case i.lU.utm_medium:case i.lU.utm_campaign:case i.lU.utm_term:case i.lU.utm_content:{const t=Array.isArray(e.value)?e.value:[e.value],n=Array.isArray(this.state[e.criteria])?this.state[e.criteria]:[this.state[e.criteria]];if(e.comparison===i.CX.all)return t.every((e=>n.some((t=>(0,s.AD)(e,t)))));const r=t.some((e=>n.some((t=>(0,s.AD)(e,t)))));return e.comparison===i.CX.any?!0===r:!1===r}case i.lU.duration:{const t=this.state[e.criteria],n=(e,t)=>t===r.th.minutes?60*e:t===r.th.hours?3600*e:t===r.th.days?86400*e:e;if(e.comparison===i.CX.between){const{min:i,max:s,unit:r}=e.value;return n(i,r)<=t&&t<=n(s,r)}const{count:s,unit:o}=e.value,a=n(s,o);return e.comparison===i.CX.atLeast?a<=t:e.comparison===i.CX.atMost?a>=t:e.comparison===i.CX.greaterThan?at:e.comparison===i.CX.equals&&a===t}case i.lU.screen_width:case i.lU.screen_height:case i.lU.pages_viewed:{const t=Number(this.state[e.criteria]);return e.comparison===i.CX.equals?e.value===t:e.comparison===i.CX.greaterThan?e.valuet:e.comparison===i.CX.atLeast?e.value<=t:e.comparison===i.CX.atMost?e.value>=t:e.comparison===i.CX.between&&e.value.min<=t&&t<=e.value.max}case i.lU.visited_page:case i.lU.landing_page:case i.lU.referrer:{const n=e.value.map((n=>t(n,this.state[e.criteria])));return e.comparison===i.CX.any?n.includes(!0):n.every((e=>!1===e))}case i.lU.click:case i.lU.form_submission:case i.lU.pixel_event:case i.lU.ecommerce_event:return!0;case i.lU.query_param:{const t=this.state[e.criteria]?.[e.name];return void 0!==t&&e.value.some((t=>(0,s.AD)(t,this.state[e.criteria]?.[e.name])))}case i.lU.max_worth:{const t=this.state[e.criteria];if(!t||t.currency!==e.value.currency)return!1;const n=t.number,s=e.value.number;switch(e.comparison){case i.CX.greaterThan:return n>s;case i.CX.lessThan:return n=s;case i.CX.atMost:return n<=s;case i.CX.between:return n>=e.value.min&&n<=e.value.max;default:return!1}}}}debug(...e){this.providers.debug(...e)}}function a(){return{[i.aA.debug]:(...e)=>{window.CE_DEBUG&&function(e){const t=e.filter((e=>"object"!=typeof e)),n=e.filter((e=>"object"==typeof e));console.log("CE: [SegmentTracker]",t.join(" "),...n,"\n")}(e)},[i.aA.matchUrl]:()=>!1,[i.aA.matcher]:(...e)=>new o(...e),[i.aA.browserAPI]:{matchesSelector(e,t,n){let i=t;return n&&(i+=`,${t} *`),e.matches(i)}}}}},600:(e,t,n)=>{n.d(t,{AD:()=>a,GH:()=>o,tx:()=>r});var i=n(704),s=n(408);function r(e,t,n){const s=e.target||e.srcElement;if(t.criteria!==i.lU.form_submission||"FORM"!==e.type)return!0;for(let e=0,i=t.value;et.sync_selectors||t[`selector_for_${e}`])):null;return n?t.sync_selectors?Object.values(s.WO).map((e=>t[`selector_for_${e}`])).find((e=>!!e))||null:n[`selector_for_${e}`]||null:null}function a(e,t){return new RegExp(`^${e.split("*").map((e=>e.split("?").map((e=>e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"))).join("."))).join(".*")}$`).test(t)}}},s={};function r(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={exports:{}};return i[e](n,n.exports,r),n.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{r.d(o,{I8:()=>n.I8,Lc:()=>n.Lc,v7:()=>h,yD:()=>B,yd:()=>e,a:()=>p.a});var e={};r.r(e),r.d(e,{answeredSurvey:()=>k,browser:()=>m,click:()=>x,clickedCta:()=>I,country:()=>E,dayOfWeek:()=>w,device:()=>f,duration:()=>R,durationBetween:()=>O,ecommerceEvent:()=>V,factory:()=>W,formSubmission:()=>H,goalCode:()=>S,goalConversions:()=>b,landingPage:()=>$,maxWorth:()=>z,maxWorthBetween:()=>j,newOrReturning:()=>g,os:()=>C,pagesViewed:()=>_,pixelEvent:()=>M,queryParam:()=>L,referrer:()=>U,screenHeight:()=>y,screenWidth:()=>v,tags:()=>A,utm:()=>N,variable:()=>T,visitedPage:()=>D,visitorId:()=>P});var t=r(359),n=r(704),i=r(408),s=r(600);function a(e,t){return`${e}::${t}`}function c(e,t){return e?`${e}.${t}`:`${t}`}function l(e){return e.except?.conditions?.length||0}function d(e){if(!Array.isArray(e))return[];const t=[...new Set(e)];return t.length>50?t.slice(t.length-50):t}const u=Object.values(i.Fj);class h{constructor({state:e,providers:t,sessionKey:n}){this.providers=t,this.sessionKey=n,this.state={},this.reset(e),this.matcher=t.matcher(this.state,t)}reset(e={}){this.matchedSegmentIds=new Set,this.unmetConditions={},this.metConditions={},(0,t.Z)(this.state,(0,t.Z)({},{[n.lU.new_or_returning]:null,[n.lU.referrer]:null,[n.lU.landing_page]:null,[n.lU.visited_page]:null,[n.lU.browser]:null,[n.lU.device]:null,[n.lU.country]:null,[n.lU.screen_width]:0,[n.lU.screen_height]:0,[n.lU.pages_viewed]:0,[n.lU.duration]:0,[n.lU.var1]:null,[n.lU.var2]:null,[n.lU.var3]:null,[n.lU.var4]:null,[n.lU.var5]:null,[n.lU.profile]:{},[n.lU.tags]:[],[n.lU.day_of_week]:u[(new Date).getDay()],[n.lU.utm_source]:null,[n.lU.utm_medium]:null,[n.lU.utm_campaign]:null,[n.lU.utm_term]:null,[n.lU.utm_content]:null,[n.lU.goal_code]:null,[n.lU.visitor_id]:null,[n.lU.goal_conversions]:[],[n.lU.clicked_cta]:[],[n.lU.click]:[],[n.lU.form_submission]:[],[n.lU.pixel_event]:[],[n.lU.ecommerce_event]:[],[n.lU.query_param]:{}},h.cleanup(e)))}static cleanup(e){const t={};if(!e)return t;for(let n=0,i=Object.keys(e);nn.I8.has(e.criteria)))&&!e.conditions.every(((e,s)=>!n.I8.has(e.criteria)||this.state[e.criteria]?.includes(a(t,s+i)))))return!1;const s=this.matchWithStickiness(e,t);return s&&(this.matchedSegmentIds.add(t),delete this.unmetConditions[t],delete this.metConditions[t]),s}matchWithStickiness(e,t){return this.metConditions[t]||(this.metConditions[t]=new Set),this.evaluateStickyConditions(e.conditions,e.operator,t,"",l(e))}evaluateMatchedConditions(e,t,i,s="",r=0){this.metConditions[i]||(this.metConditions[i]=new Set);const o=this.metConditions[i],a=e.map(((e,t)=>{const n=c(s,t+r);if(o.has(n))return!0;let a;return a=e.operator&&Array.isArray(e.conditions)?this.evaluateMatchedConditions(e.conditions,e.operator,i,n):this.matcher.evaluate(e),a&&o.add(n),a}));return t===n.fP.and?a.every(Boolean):a.some(Boolean)}evaluateStickyConditions(e,t,i,s,r=0){const o=this.metConditions[i],a=e.map(((e,t)=>{const n=c(s,t+r);let a;return a=e.operator&&Array.isArray(e.conditions)?this.evaluateStickyConditions(e.conditions,e.operator,i,n)||o.has(n):o.has(n)||this.matcher.evaluate(e),a&&o.add(n),a}));return t===n.fP.and?a.every(Boolean):a.some(Boolean)}getMatchedSegmentIds(){return Array.from(this.matchedSegmentIds)}updateUnmetConditions(e,t){const n=new Set,i=this.metConditions[e]||new Set;this.collectUnmetConditions(t.conditions,e,n,i,"",l(t)),this.unmetConditions[e]=n}collectUnmetConditions(e,t,i,s,r,o=0){for(let l=0;l!(e.api!==i.api||"string"==typeof e.id&&e.id.replace(/^(G|AW)-/,"")!==i.id||"string"==typeof e.event&&e.event.toLowerCase()!==i.type.toLowerCase())))&&this.state[c.criteria].push(u):t===n.lU.ecommerce_event&&c.value.find((e=>!("string"==typeof e.api&&e.api!==i.api||"string"==typeof e.event&&e.event.toLowerCase()!==i.type.toLowerCase())))&&this.state[c.criteria].push(u)}}}append(e,t){const n=this.state[e]||(this.state[e]=[]);n.includes(t)||n.push(t)}update(e){for(let t=0,n=Object.entries(e);t[e,[...t]]))),metConditions:Object.fromEntries(Object.entries(this.metConditions).map((([e,t])=>[e,[...t]])))}}deserialize(e){if(e&&1===e.version){if(e.accumulatedState)for(let t=0,n=Object.entries(e.accumulatedState);t[e,new Set(Array.isArray(t)?t:[])])))),e.metConditions&&"object"==typeof e.metConditions&&!Array.isArray(e.metConditions)&&(this.metConditions=Object.fromEntries(Object.entries(e.metConditions).map((([e,t])=>[e,new Set(Array.isArray(t)?t:[])]))))}}resolveConditionPaths(e,t){return t.map((t=>{const n=String(t).split(".").map(Number);let i,s=function(e){return e.except?[...e.except.conditions,...e.conditions]:e.conditions}(e);for(let e=0;e"function"==typeof e?e():e))}}function B({state:e,providers:n,sessionKey:i}){return new h({state:e,providers:(0,t.Z)({},(0,p.a)(),n),sessionKey:i})}})();var a=o.yD,c=n(390),l=n(6103),d=n(884);const u={click:0,form_submission:1,pixel_event:2,ecommerce_event:3,goal_conversions:4,clicked_cta:5,answered_survey:6,max_worth:7},h=Object.fromEntries(Object.entries(u).map((([e,t])=>[t,e])));class p{constructor(e,{state:t,providers:n}){this.cookieKey=`_ce.seg.${e}`,this.tracker=a({state:t,providers:n,sessionKey:e}),this.debounceTimer=null,this.lastWriteTime=0;const i=this.load();if(i)try{(0,d.Yz)("[Segments] Restoring persisted session",{key:this.cookieKey}),this.tracker.deserialize(i),this.tracker.update(t)}catch(e){(0,d.Yz)("[Segments] Failed to deserialize persisted session, clearing cookie",e),this.clearCookie()}}compactAccumulatedState(e={}){const t={};return Object.entries(u).forEach((([n,i])=>{const s=e[n],r=Array.isArray(s)&&0===s.length,o=s&&"object"==typeof s&&!Array.isArray(s)&&0===Object.keys(s).length;null==s||r||o||(t[i]=s)})),t}expandAccumulatedState(e={}){const t={};return Object.entries(e).forEach((([e,n])=>{const i=h[e];i&&(t[i]=n)})),t}encodePersisted(e){const t=this.compactAccumulatedState(e?.accumulatedState),n=e?.matchedSegmentIds?.length?e.matchedSegmentIds:null,i=e?.unmetConditions&&Object.keys(e.unmetConditions).length?e.unmetConditions:null,s=e?.metConditions&&Object.keys(e.metConditions).length?e.metConditions:null;return[1,Object.keys(t).length?t:null,n,i,s]}decodePersisted(e){if(Array.isArray(e)){const[t,n,i,s,r]=e;return 1!==t?null:{version:1,accumulatedState:this.expandAccumulatedState(n||{}),matchedSegmentIds:i||[],unmetConditions:s||{},metConditions:r||{}}}return e&&"object"==typeof e&&!Array.isArray(e)?e:null}save(){try{const e=this.tracker.serialize(),t=JSON.stringify(this.encodePersisted(e)),n=l.K.compressToBase64(t);(0,c.o)(this.cookieKey,n,{expiresIn:1800}),this.lastWriteTime=Date.now()}catch(e){(0,d.Yz)("[Segments] Failed to persist session",e)}}load(){try{const e=(0,c.Ri)(this.cookieKey);if(!e)return null;const t=l.K.decompressFromBase64(e);return t?this.decodePersisted(JSON.parse(t)):null}catch(e){return(0,d.Yz)("[Segments] Failed to load persisted session",e),null}}clearCookie(){(0,c.Yj)(this.cookieKey)}persistImmediate(){this.debounceTimer&&(clearTimeout(this.debounceTimer),this.debounceTimer=null),this.save()}persistDebounced(){this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout((()=>{this.debounceTimer=null,this.save()}),100)}match(e,t){const n=this.tracker.match(e,t);return this.persistDebounced(),n}evaluateEvent(e,t,n){const i=this.tracker.evaluateEvent(e,t,n);return this.persistImmediate(),i}append(e,t){this.tracker.append(e,t),this.persistImmediate()}update(e){this.tracker.update(e),this.persistImmediate()}getMatchedSegmentIds(){return this.tracker.getMatchedSegmentIds()}get state(){return this.tracker.state}keepAlive(){Date.now()-this.lastWriteTime<3e5||this.save()}reset(e){this.persistImmediate(),this.tracker.reset(e);const t=this.load();if(t)try{this.tracker.deserialize(t),e&&this.tracker.update(e)}catch(e){(0,d.Yz)("[Segments] Failed to deserialize persisted session on reset, clearing cookie",e),this.clearCookie()}}clearSession(){this.debounceTimer&&(clearTimeout(this.debounceTimer),this.debounceTimer=null),this.clearCookie(),this.tracker.reset()}}var g=n(5909),f=n(1619);const m="~",E=1e4,C={Windows:"Windows","Windows Phone":"Windows Phone",Android:"Android",Linux:"Linux",iOS:"iOS",macOS:"macOS"};let v,y,w;function _(){if(v)return v;const e=navigator.userAgentData?.platform;if(e)return v=C[e]||"Other";const t=navigator.userAgent;return v=/Windows Phone/i.test(t)?"Windows Phone":/Windows/i.test(t)?"Windows":/iPhone|iPad|iPod/i.test(t)?"iOS":/Android/i.test(t)?"Android":/Macintosh/i.test(t)&&navigator.maxTouchPoints>1?"iOS":/Mac OS X|Macintosh/i.test(t)?"macOS":/Linux/i.test(t)?"Linux":"Other"}function S(){const{visitorTracker:e}=CE2;return("function"==typeof e.getIdentification?e.getIdentification():null)||e.getId()}function b(){const e=CE2.visitorTracker.getFirstVisitData?.()?.time;return e?Math.max(0,Math.floor((Date.now()-e)/1e3)):0}function k(){w||(w=setInterval((()=>{y&&y.tracker.update({duration:b()})}),E))}function I(){const{clock:e}=CE2,{visitorTracker:t}=CE2,n=new URL(window.location.href).searchParams,{landingUrl:i,userData:s,utm:r}=t.getFirstVisitData()||{},o=window.innerWidth||window.screen.availWidth,a=window.innerHeight||window.screen.availHeight;return{device:{1:"desktop",2:"phone",3:"tablet"}[e.getDeviceType()],visited_page:window.location.href,referrer:document.referrer,new_or_returning:t.returningState().state,landing_page:i,screen_width:o,screen_height:a,pages_viewed:t.getNumVisits?.()??0,duration:b(),var1:s[0],var2:s[1],var3:s[2],var4:s[3],var5:s[4],profile:{},tags:CE2.sessionTags||[],day_of_week:["sunday","monday","tuesday","wednesday","thursday","friday","saturday"][(new Date).getDay()],utm_source:r[0],utm_medium:r[1],utm_term:r[2],utm_content:r[3],utm_campaign:r[4],goal_code:n.get("code"),browser:e.getBrowser(),country:e.getCountry(),os:_(),visitor_id:S(),query_param:(0,c.q5)(window.location.search.substring(1))||{},max_worth:(0,f.Ok)()}}function T(){y&&y.reset(I())}function N(){return y?(k(),y):(y=function(){const e=I();return new p("targeting",{state:e,providers:{browserAPI:{matchesSelector(e,t,n){let i=t;n&&(i+=`,${t} *`);try{return e.matches(i)}catch(e){return!1}}},matchUrl({url:e,flags:t},n){let i=t?t.join():"";return e[0]===m&&(e=e.substring(0),i+="r"),(0,g.$)(e.toLowerCase(),n,i)},debug(){}}})}(),k(),y)}function A(e,t){N().append(e,t)}function R(e){(0,d.Yz)("[Segments] Updating max_worth"),N().update({max_worth:e})}function O(e,t){const{segments:n}=CE2.data;n&&0!==n.length&&N().evaluateEvent(n,e,t)}function D({resourceType:e,resourceId:t}){if(!e||!t)return!1;const n=(CE2.data.segments||[]).filter((n=>(n.resources||[]).find((n=>n.resource_type===e&&String(n.resource_id)===String(t))))),i=[];for(let e=0;e0}function U(){return N().getMatchedSegmentIds()}function $(){y&&y.keepAlive()}function P(){y&&y.update({duration:b()})}function x(){w&&(clearInterval(w),w=null),y?(y.clearSession(),y=null):(0,c.Yj)("_ce.seg.targeting")}function M({resourceType:e,resourceId:t},n){if(!(CE2.data.segments||[]).some((n=>(n.resources||[]).some((n=>n.resource_type===e&&String(n.resource_id)===String(t))))))return n();const i=N(),s={};i.state.visited_page!==window.location.href&&(s.visited_page=window.location.href);const r=S();return i.state.visitor_id!==r&&(s.visitor_id=r),Object.keys(s).length>0&&i.update(s),D({resourceType:e,resourceId:t})&&n()}},3455:(e,t,n)=>{"use strict";n.d(t,{b:()=>s,re:()=>i});const i=function(){const e="[\\s\\u00a0\\u2028\\u2029]+";return{whitespace:new RegExp(e,"g"),strip:new RegExp(`^${e}|${e}$`,"g"),href:/\bhref="(.*?)"/i,ipHost:/^([\d\.]+|\[[a-f\d:]+\])$/i}}(),s=(e,t)=>{const n=e.replace(i.strip,"");return t?n.replace(i.whitespace," "):n}},6645:(e,t,n)=>{"use strict";n.d(t,{j:()=>s});var i=n(390);const s=function(e){if(this.src=e,this.protocol=this.host=this.port=this.path=this.qs=this.hash=this.query=null,e){const t=typeof e;"string"==t?this.initWithString(e):"object"==t&&this.initWithURI(e)}};s.pattern=/^\s*([\S]+?:\/\/)?([^\s\/]+?@)?([^:\/\?\#]+)?(\:\d+)?(\/?[^#\?\s]*)?([\?][^#\s]*)?([#]\S+)?/i,s.prototype={initWithString(e){const t=s.pattern.exec(e),[n,r,o,a,c,l,d,u]=t;var h;r||"/"==e.charAt(0)||a&&!("string"!=typeof(h=a)||-1===h.indexOf(".")&&"localhost"!==h||(h=new URL(`http://${h}`).hostname,!/^[a-zA-Z0-9-.]{1,253}\.?$/g.test(h)||(h.endsWith(".")&&(h=h.slice(0,h.length-1)),h.length>253||!h.split(".").every((e=>/^([a-zA-Z0-9-]+)$/g.test(e)&&e.length<64&&!e.startsWith("-")&&!e.endsWith("-"))))))?(r&&(this.protocol=r.substr(0,r.indexOf(":"))),this.host=a||null,c&&(this.port=Number(c.substr(1))),l?this.path=(0,i.x4)(l):this.host&&(this.path="/")):this.path=(0,i.x4)((a||"")+(l||"")),d&&(this.qs=(0,i.q5)(d.substr(1)),this.query=d.substr(1)),u&&(this.hash=(0,i.x4)(u.substr(1)))},initWithURI(e){(0,i.__)(e,(function(e,t){this[t]=e}),this)},isAbsolute(){return this.isURL()||this.path&&"/"==this.path.charAt(0)},isURL(){return this.protocol&&this.host},getDomain(){return this.host&&this.host.replace(/^(www|m)\./,"")},getHost(){return this.host+(this.port?`:${this.port}`:"")},getOrigin(){return`${this.protocol}://${this.getHost()}`},getFullUrl(){const e=this.query?`?${this.query}`:"";return`${this.getOrigin()}${this.path}${e}`},join(e){const t=new s(this);let{path:n}=this;return"string"==typeof e&&(e=new s(e)),e.isURL()?new s(e):(e.isAbsolute()?n=e.path:n?(n=n.split("/"),n.pop(),n=e.path?n.concat(e.path.split("/")):n,n=n.join("/")):n=this.isURL()?`/${e.path}`:e.path,t.path=n,t.qs=e.qs,t.hash=e.hash,t)},normalize(){if(!this.path)return;let e;CE2.ie&&CE2.ieVersion<9?(e=[],"/"==this.path.charAt(0)&&e.push(""),e=e.concat(this.path.split(/\/+/g)),"/"==this.path.charAt(this.path.length-1)&&e.push("")):e=this.path.split(/\/+/g);let t,n=0;do{if(t=e.length-1,".."==e[n+1])""==e[n]&&0==n?e.splice(n+1,1):(e.splice(n,2),n-=1);else if("."==e[n]){if(0==t)break;e.splice(n,1)}else n++}while(n<=t);this.path=e.join("/")},simplify(e){let t;const n=[];if(t="file"==this.protocol?this:CE2.ie?e?e.join(this):this:(e=e||new s(CE2.d.baseURI)).join(this),t.normalize(),t.host&&n.push(t.host.replace(/^(www|m)\./,"")),null!=t.port&&n.push(`:${t.port}`),"/"==t.path||/^\/(default|home|index)\b[^\/]*$/i.test(t.path)?(t.qs||t.hash)&&n.push("/"):n.push(t.path),t.qs){const e=[];(0,i.__)(t.qs,((t,n)=>{t&&!/(^sess|^sid$|^phpsessid$|^jsessionid$|^__VIEWSTATE$)/i.test(n)&&e.push(`${encodeURIComponent(n)}=${encodeURIComponent(t)}`)})),e.length&&n.push(`?${e.join("&")}`)}return t.hash&&n.push(`#${t.hash}`),n.join("")},sameOrigin(e){return!!e&&("string"==typeof e&&(e=new s(e)),null==e.host||e.host==this.host&&e.port==this.port&&e.protocol==this.protocol)}}},5909:(e,t,n)=>{"use strict";n.d(t,{$:()=>l,e:()=>d});var i=n(390),s=n(6645),r=n(3032);const o=function(e,t,n=!1){e&&e(t,n)},a=function(e,t){try{const n=e.includes("://")?"":"https?://(www.)?";let i=e.split("#"),s=i[0];const r=i.length>1?i[1]:"";i=s.split("?"),[s]=i;const o=i.length>1?i[1]:"",a=new RegExp(`^${n}${s.replace(/[.+^$?{}()|[\]\\]/g,"\\$&").replace(/\*/g,"(.*?)")}$`,"i"),c=new URL(t),l=a.test(c.origin+c.pathname);let d=!0,u=!0;if(r){d=new RegExp(`^#${r.replace(/[.+^$?{}()|[\]\\]/g,"\\$&").replace(/\*/g,"(.*?)")}$`,"i").test(c.hash||"")}if(o)if("*"===o)u=u=c.searchParams.toString().length>0;else{const e=o.split("&"),t=new URLSearchParams(c.search);u=e.every((e=>{const[n,i]=e.split("="),s=i?new RegExp(`^${i.replace(/[.+^$?{}()|[\]\\]/g,"\\$&").replace(/\*/g,"(.*?)")}$`,"i"):null;return t.has(n)&&(!s||s.test(t.get(n)))}))}return l&&u&&d}catch(e){return(0,r.A)(e),!1}},c=function(e,t){try{let n=RegExp(e,"i").test(t);return n||(n=RegExp(e,"i").test(decodeURI(t))),n}catch(e){return(0,r.A)(e),!1}},l=function(e,t,n,l,d,u){const{stringify:h}=CE2.Native.JSON,p=/(default|index)($|\..*)/i;let g,f,m,E,C,v,y,w=!1;if(""===e&&""===t)return!0;if(!e||!t)return!1;if(l&&l.indexOf(CE2.clock.getDeviceType())<0)return o(u,`device=${CE2.clock.getDeviceType()} allowed=${h(l)}`,y),!1;if(/n/.test(n=n||""))return y=e.trim()===t.trim(),o(u,`name=${t} allowed=${e}`,y),y;if(/go/.test(n)){const n=e.split(".");return y=t&&t[n[1]]==n[2],o(u,`googleOptimize=${h(t)} allowed=${h(e)}`,y),y}const _=[t];try{const e=new URL(t),n=e.pathname,i=e.search,{hash:s}=e;if(n.endsWith("/")){const t=n.slice(0,-1);_.push(e.origin+t+i+s)}n.endsWith("/")||_.push(`${e.origin}${n}/${i}${s}`);const r=n.replace(p,"");if(r!==n&&(_.push(e.origin+r+i+s),r.endsWith("/"))){const t=r.slice(0,-1);_.push(e.origin+t+i+s)}const o=[..._];for(let e=0;e{if(O[t]!==e)return w=!0,!1})),w)return o(u,`querystring=${h(O)} allowed=${h(D)}`),!1;if(E&&((0,i.__)(O,((e,t)=>{if(e!=D[t])return w=!0})),w))return o(u,`querystring=${h(O)} allowed=strict|${h(D)}`),!1;const U=e.hash||"",$=S.hash||"";return E=/#/.test(n),(E||U)&&U!=$?(o(u,`hash=${$} allowed=${U}`),!1):(o(u,`url=${t}`,!0),!0)},d=e=>{let t,n;if(e&&e.length)for(t=0;n=e[t++];)if(l(n.u,CE2.w.location.href,n.o))return!0;return!1}},390:(e,t,n)=>{"use strict";n.d(t,{Ap:()=>h,B5:()=>i.B5,CU:()=>K,DQ:()=>W,Ep:()=>T,GE:()=>R,GO:()=>H,IS:()=>$,Jl:()=>o.O,KQ:()=>F,KT:()=>f,LB:()=>y,OR:()=>w,R2:()=>S,Rc:()=>x,Ri:()=>_,Wb:()=>A,Xe:()=>l,Yj:()=>k,_3:()=>v,__:()=>g,bA:()=>G,bn:()=>Y,ch:()=>f,ex:()=>U,hZ:()=>E,ib:()=>D,jI:()=>z,jM:()=>C,ne:()=>L,o:()=>b,oI:()=>V,ou:()=>d,pQ:()=>m,q5:()=>p,v$:()=>B,wt:()=>i.EW,x4:()=>u});var i=n(6385),s=n(3455),r=n(884),o=n(55),a=n(98);let c;const l=e=>{if(!e)return;CE2.state.ignoredElements.push(e);const{tracker:t}=CE2;t&&t.ignoredElements.push(e)},d=function(){return"undefined"!=typeof CE_TEST_MODE&&CE_TEST_MODE},u=e=>{try{return decodeURIComponent(e)}catch(t){return CE2.w.unescape(e)}},h=e=>{if(CE2.Native.Array.isArray(e))for(let t=0;t{if(null==e||/^\s*$/.test(e))return null;const n={},i=e.replace(/\+/g," ").split(t||"&");let s,r,o=null,a=null,c=null;const l=Object.getOwnPropertyNames(Object.prototype);for(s=0,r=i.length;s{if(!e)return;let i;if("number"==typeof e.length&&"function"==typeof e.concat)for(let s=0,r=e.length;s{e.addEventListener(t,n,!0)},m=(e,t,n)=>{try{e.removeEventListener(t,n,!0)}catch(e){}},E=(e,t)=>{(e=parseInt(e,10))>=1&&e<=5&&(CE2.state.userData[e]=String(t));const{tracker:n}=CE2;n&&n.sendCustomUserData&&n.sendCustomUserData()},C=(...e)=>{const{tracker:t}=CE2;if(t)return t.click(...e)},v=e=>null==e.r||(!1!==e.r&&!0!==e.r&&(Math.random()>=1/e.r?((0,r.Yz)(`Snapshot ${e.id} not selected due to snapshot sampling: ${e.r}`),e.r=!1):e.r=!0),e.r),y=(e,t,n,i)=>{if(!0===CE2.site?.settings?.ignoreDnt)return!1;if(i&&void 0!==e.external)try{if(!0===e.external.InPrivateFilteringEnabled())return!0}catch(e){}const s=t.doNotTrack||n.doNotTrack||n.msDoNotTrack||e.doNotTrack;return"1"==s||"yes"==s},w=function(){try{return p(a.Ew.read(),/;\s*/g)||{}}catch(e){return{}}},_=function(e){return w()[e]},S=function(){const{w:e}=CE2;if(!CE2.state._tlDomain){const t=CE2.w.location.hostname;if(s.re.ipHost.test(t)||!/\./.test(t))CE2.state._tlDomain=t;else if(e.CE_COOKIE_DOMAIN&&new RegExp(`(^|\\.)${e.CE_COOKIE_DOMAIN.replace(/\./g,"\\.")}$`,"i").test(t))CE2.state._tlDomain=`.${e.CE_COOKIE_DOMAIN}`;else if(CE2.site?.cookieDomain)CE2.state._tlDomain=`.${CE2.site.cookieDomain}`;else{let e;const n=t.split(".");for(e=n.length-1;e>=0;e--){const t=`.${n.slice(e).join(".")}`;if(I("_ce.gtld",t)){CE2.state._tlDomain=t;break}}}}return CE2.state._tlDomain},b=function(e,t,n){n||(n={});const i=encodeURIComponent,s=n.path||"/",r=n.domain||S();let o=null;n.expires?o=n.expires:n.expiresIn?o=new Date((new Date).getTime()+1e3*n.expiresIn):n.expiresInDays&&(o=new Date((new Date).getTime()+86400*n.expiresInDays*1e3)),null==t&&(o=new Date(0),t="");const c=[`${i(e)}=${i(t)}`];c.push(`path=${s}`),CE2.w.parent!==CE2.w&&"https:"===CE2.w.location.protocol?(c.push("SameSite=None"),c.push("Secure")):(c.push("SameSite=Strict"),CE2.site?.settings?.useSecureCookies&&c.push("Secure")),r&&c.push(`domain=${r}`),o&&c.push(`expires=${o.toUTCString()}`),a.Ew.write(c.join(";"),{key:e,value:`${i(e)}=${i(t)};`})},k=function(e,t){b(e,null,t)},I=(e,t)=>{b(e,"1",{domain:t});const n=a.Ew.read();return!!(n&&n.indexOf&&n.indexOf(e)>-1)&&(k(e,{domain:t}),!0)},T=()=>new CE2.URL((()=>{let{referrer:e}=CE2.d;try{!e&&CE2.d.location.ancestorOrigins&&([e]=CE2.d.location.ancestorOrigins)}catch(e){(0,r.Yz)("Referer error",e)}return e})()).getDomain(),N=e=>{const t=CE2.d.createElement("a");return t.href=`http://${e}/`,t.hostname},A=e=>{let t,n;for(n=0;t=e[n++];)if(i=N(t.name),r=CE2.w.location.hostname,s.re.ipHost.test(i)?i===r:r.toLowerCase().endsWith(i.toLowerCase())||r.toLowerCase().endsWith(`.${i.toLowerCase}`))return t;var i,r},R=function(e){if("undefined"==typeof window)return CE2.s[e];try{const t="ce_proto_iframe";let n=document.getElementById(t);return n||(n=document.createElement("iframe"),n.id=t,n.title="CrazyEgg Tracking iframe",n.style.display="none",n.setAttribute("aria-hidden","true"),document.documentElement.appendChild(n)),n.contentWindow[e]}catch(t){return(0,r.dK)()&&console.warn("Clean Prototype error",t),window[e]}},O=function(e){return!!e&&(c||(c=R("Function")),/\{\s+\[native code\]/.test(c.prototype.toString.call(e)))},D=function(e){let t=Object.getOwnPropertyNames(e);for(let n=0,i=t;n{const{tracker:n}=CE2;n&&n.customEvent&&n.customEvent(e,t)},$=e=>CE2.tracker?.[e];let P;const x=(e=null)=>{P=e||performance.now()},M=["utm_source","utm_medium","utm_term","utm_content","utm_campaign"],L=e=>{let t,n=!1;const i=[];if(t=new CE2.URL(e||window.location.href).qs)for(let e=0;e=0},G=function(e){return e.source||e.view||e.srcElement.ownerDocument.parentWindow},K=function(e){let t;return t=CE2.ieVersion&&(CE2.ieVersion<9||CE2.ieQuirksMode)?{1:"l",2:"r",4:"m"}:{0:"l",1:"m",2:"r"},t[e.button]}},2171:(e,t,n)=>{"use strict";n.d(t,{V:()=>o,i:()=>a});var i=n(884),s=n(3032);function r(e){if("function"==typeof e)try{e()}catch(e){(0,i.Yz)("CE_API error:"),(0,s.A)(e)}}function o(e){(CE2.w.CE_API||(CE2.w.CE_API=[])).push(e)}function a(e){let t;for(CE2.Native.Array.isArray(e)||(e=[]),e.push=function(e){CE2.tracker?r(e):CE2.Native.Array.prototype.push.call(this,e)};t=e.shift();)r(t);return e}},98:(e,t,n)=>{"use strict";n.d(t,{mc:()=>h,hh:()=>m,vJ:()=>f,Ew:()=>g,mr:()=>l,VK:()=>d,fY:()=>u});var i=n(8401),s=n(884);class r{constructor(e){this.storeName=e,CE2.w&&CE2.w.indexedDB&&(this.dbPromise=this.openDB())}get isAvailable(){return!!CE2.w.indexedDB}async openDB(){return new Promise((e=>{const t=CE2.w.indexedDB.open(this.storeName,1);t.onupgradeneeded=e=>{const t=e.target.result;t.objectStoreNames.contains(this.storeName)||t.createObjectStore(this.storeName,{keyPath:"id"})},t.onsuccess=t=>{const n=t.target.result;e(n)},t.onerror=t=>{(0,s.Yz)(`error opening database ${t.target?.errorCode}`),e()}}))}async readAll(){if(this.dbPromise)return this.dbPromise.then((e=>e?new Promise(((t,n)=>{let i=e.transaction([this.storeName],"readonly");const r=i.objectStore(this.storeName);i=r.getAll(),i.onsuccess=e=>{t(e.target.result)},i.onerror=function(e){(0,s.Yz)(`error opening database ${e.target.errorCode}`),n(e.target)}})):[]))}async store(e){if(this.dbPromise)return this.dbPromise.then((t=>{if(t)return new Promise(((n,i)=>{const r=t.transaction([this.storeName],"readwrite"),o=r.objectStore(this.storeName);r.onsuccess=e=>{n(e.target.result)},r.onerror=function(e){(0,s.Yz)(`error storing records ${e.target.errorCode}`),i(e.target)},e.forEach((e=>{o.put(e)}))}))}))}async clear(){if(this.dbPromise)return this.dbPromise.then((e=>{if(e)return new Promise(((t,n)=>{let i=e.transaction([this.storeName],"readwrite");const r=i.objectStore(this.storeName);i=r.clear(),i.onsuccess=e=>{t(e.target.result)},i.onerror=function(e){(0,s.Yz)(`error clearing store ${e.target.errorCode}`),n(e.target)}}))}))}}const o="cec",a={STANDARD:"standard",DELAYED:"delayed"},c=new i.v;function l(){return Object.values(a).includes(CE2.w?.CE_COOKIE_MODE)?CE2.w.CE_COOKIE_MODE:a.STANDARD}function d(){if(l()===a.STANDARD)return!0;const e=CE2.d.cookie.split("; ").map((e=>e.split("="))).find((e=>e[0]===o));return e&&"1"===e[1]}function u(...e){const t=2===e.length&&e[0],n=2===e.length?e[1]:e[0];return(...e)=>"function"==typeof t&&n&&t(...e)||d()?n(...e):void c.once("consent",(t=>{t&&n(...e)}))}class h{constructor(e){this.storeName=e,this.state=[],c.on("consent",(e=>{e&&this.sync()}))}async readAll(){return d()?this.instance().readAll():this.state}async store(e){return d()?this.instance().store(e):this.state=e}async clear(){d()?await this.instance().clear():this.state={}}async sync(){await this.instance().store(this.state)}instance(){return this.db?this.db:this.db=new r(this.storeName)}}class p{constructor(e){c.on("consent",(e=>{e&&this.sync()})),this.state={},this.prototype=e}write(e,t){d()?this.prototype.setItem(e,t):this.state[e]=t}read(e){return d()?this.prototype.getItem(e):this.state[e]}remove(e){d()?this.prototype.removeItem(e):delete this.state[e]}sync(){Object.keys(this.state).forEach((e=>{this.prototype.setItem(e,this.state[e])}))}clear(){this.state={}}}const g=new class{constructor(){CE2BH.defineProperty(this,"currentValue",{}),CE2BH.defineProperty(this,"currentFullValue",{})}write(e,{key:t,value:n}){return d()?CE2.d.cookie=e:n.endsWith("=;")?(delete this.currentFullValue[t],void delete this.currentValue[t]):(this.currentFullValue[t]=e,void(this.currentValue[t]=n))}read(){return d()?CE2.d.cookie:Object.values(this.currentValue).join(" ")}sync(){Object.values(this.currentFullValue).forEach((e=>{CE2.d.cookie=e})),this.currentFullValue={},this.currentValue={}}};function f(e){CE2.state.consent=!!e,c.emit("consent",!!e),CE2.state.consent?(g.write(`${o}=1;`,{key:o,value:"1"}),g.sync()):(g.write(`${o}=;max-age=31536000;`,{key:o,value:""}),g.sync()),(0,s.Yz)(`[Loading] Cookie consent=${CE2.state.consent}`)}function m(e){return new p(e)}},5439:(e,t,n)=>{"use strict";n.d(t,{CT:()=>c,Gw:()=>l,H$:()=>p,MN:()=>u,og:()=>g,sx:()=>f,uw:()=>d});var i=n(8157),s=n(2171),r=n(884),o=n(9327);const a={intToStr:{},strToInt:{}},c=e=>"string"==typeof e?e:a&&a.intToStr?a.intToStr[e]:void 0,l=e=>{"number"==typeof e.nid&&"string"==typeof e.id&&(e.nid in a.intToStr||(a.intToStr[e.nid]=e.id,a.strToInt[e.id]=e.nid))},d=(e,t,n)=>(0,o.a)("conversions")&&i.r.nextGoalConversionValue(e,t,n),u=e=>i.r.setCurrency(e),h=(e,t,n,i)=>{if(!(0,o.a)("conversions"))return void(0,r.Yz)("[Goals] Conversion ignored: feature disabled",{goalId:t,triggerId:i});const s="number"==typeof(c=t)?c:a&&a.strToInt?a.strToInt[c]:void 0;var c;"number"==typeof s?e.goalConversion({goalId:s,value:n,triggerId:i||s}):e.codeConversion(t,n)},p=(e,t,n)=>{(0,o.a)("conversions")?CE2.tracker?h(CE2.tracker,e,t,n):((0,r.Yz)("[Goals] Conversion deferred until tracker ready",{goalId:e,triggerId:n}),(0,s.V)((()=>h(CE2.tracker,e,t,n)))):(0,r.Yz)("[Goals] Conversion ignored: feature disabled",{goalId:e,triggerId:n})},g=({name:e,value:t,userProperties:n}={})=>{(0,o.a)("conversions")?CE2.tracker?CE2.tracker.dynamicGoalConversion({name:e,value:t,userProperties:n}):((0,r.Yz)("[Goals] Dynamic conversion deferred until tracker ready",{name:e}),(0,s.V)((()=>CE2.tracker.dynamicGoalConversion({name:e,value:t,userProperties:n})))):(0,r.Yz)("[Goals] Dynamic conversion ignored: feature disabled",{name:e})},f=e=>g(e)},5213:(e,t,n)=>{"use strict";n.d(t,{D:()=>a,Z:()=>r});var i=n(4933);n(884);const s="ce_csp_transport_check",r={WORKER:"worker",IFRAME:"iframe",NONE:"none"};class o{load(){return this.loadPromise||(this.loadPromise=new Promise((e=>{if(CE2.benchmark.start("navigation|crazyegg|common|userdatamain|load-csp"),void 0===this._transport&&(this._transport=o.read()),void 0!==this._transport&&null!==this._transport)return CE2.benchmark.stop("navigation|crazyegg|common|userdatamain|load-csp"),void e();const t=[CE2.data.page_states_tracking_url,CE2.data.assets_tracking_url].map((e=>e?new Promise((t=>{(0,i.get)(`${e}/healthcheck`,(e=>{if(e&&200===e.status&&e.responseText)try{const n=CE2.Native.JSON.parse(e.responseText.trim());return void t("ok"===n.status)}catch(e){}t(!1)}))})):Promise.resolve(!0))),n=o.probeWorker().then((e=>e?r.WORKER:o.probeIframe().then((e=>e?r.IFRAME:r.NONE))));Promise.all([n,...t]).then((([t,...n])=>{const i=n.every(Boolean);this._transport=i?t:r.NONE,this._transport!==r.NONE&&o.write(this._transport),CE2.benchmark.stop("navigation|crazyegg|common|userdatamain|load-csp"),e()}))}))),this.loadPromise}transport(){return this._transport||r.NONE}static probeWorker(){return"undefined"==typeof CE_USER_THIRDPARTY_SCRIPT_URL||"undefined"==typeof CE_USER_COMMON_SCRIPT_URL||"undefined"==typeof CE_USER_REMOTE_SCRIPT_URL?Promise.resolve(!1):new Promise((e=>{try{const t=new Blob(["self.onmessage=function(e){self.postMessage(e.data);};"],{type:"text/javascript"}),n=new Worker(CE2.Native.URL.createObjectURL(t),{name:"crazyegg-csp-check"}),i=setTimeout((()=>{n.terminate(),e(!1)}),500);n.onmessage=t=>{clearTimeout(i),n.terminate(),e("hello"===t.data)},n.postMessage("hello")}catch(t){e(!1)}}))}static probeIframe(){return"undefined"==typeof CE_USER_REMOTE_HOST_URL?Promise.resolve(!1):new Promise((e=>{let t=!1,n=null,i=null;function s(e){n&&e.source===n.contentWindow&&e.data&&"ce-remote-probe-ready"===e.data.type&&r(!0)}function r(r){t||(t=!0,clearTimeout(i),CE2.w.removeEventListener("message",s),n&&n.parentNode&&n.parentNode.removeChild(n),e(r))}i=setTimeout((()=>r(!1)),1500);try{n=CE2.d.createElement("iframe"),n.style.display="none",n.setAttribute("aria-hidden","true"),n.src=CE_USER_REMOTE_HOST_URL,CE2.w.addEventListener("message",s),CE2.d.body.appendChild(n)}catch(e){r(!1)}}))}static read(){const e=CE2.Native.localStorageWrapper.read(s);if(!e)return null;const t=e.indexOf("|");if(-1===t)return CE2.Native.localStorageWrapper.remove(s),null;const n=parseInt(e.slice(0,t),10),i=e.slice(t+1);return!n||n<=+new Date||i!==r.WORKER&&i!==r.IFRAME?(CE2.Native.localStorageWrapper.remove(s),null):i}static write(e){const t=+new Date+864e5;CE2.Native.localStorageWrapper.write(s,`${t}|${e}`)}}const a=new o},8157:(e,t,n)=>{"use strict";n.d(t,{r:()=>l});var i=n(5832),s=n(9152);const r="gtrk.cnv",o="gtrk.la",a="gtrk.ngv",c="gtrk.c",l={get:e=>s.i.get(e),set:(e,t)=>s.i.set(e,t),del:e=>s.i.del(e),reset(){this.del(r),this.del(o)},alive(){setTimeout((()=>{this.isExpired()&&this.reset(),this.set(o,(+new Date).toString(36))}),100)},isExpired(){const e=parseInt(this.get(o),36);return!!e&&new Date-e>18e5},getConvertedIds(){if(this.isExpired())return[];const e=this.get(r);return e?e.split(",").map((e=>String(e).startsWith("dyn-")?e:parseInt(e,36))).filter((e=>String(e).startsWith("dyn-")||!Number.isNaN(Number(e)))):[]},recordConversion({goalId:e,dynamicId:t}){if(e&&("number"!=typeof e||Number.isNaN(Number(e))))return;if("string"==typeof t&&!t.startsWith("dyn-"))return;const n=this.getConvertedIds();n.includes(e)||n.includes(t)||(i.A.emit("complete",{goal:{id:e}}),n.push(e||t),this.set(r,n.map((e=>String(e).startsWith("dyn-")?e:e.toString(36))).join(",")))},alreadyConverted(e){return this.getConvertedIds().includes(e)},setCurrency(e){this.set(c,e)},getCurrency(){return this.get(c)||CE2.site?.settings?.defaultCurrency},getNextGoalConversionValues(){let e=this.get(a);try{e=e?CE2.Native.JSON.parse(e):{}}catch(t){e=e?CE2.Native.JSON.parse(atob(decodeURIComponent(e))):{}}return e},setNextGoalConversionValues(e){this.set(a,btoa(CE2.Native.JSON.stringify(e)))},nextGoalConversionValue(e,t,n){const i=this.getNextGoalConversionValues(),s=i[e]?.findIndex((e=>e.triggerId==n))??-1;-1===s||t?-1!==s&&t?i[e][s]={value:t,triggerId:n}:t&&(i[e]||(i[e]=[]),i[e].push({value:t,triggerId:n})):i[e].splice(s,1),this.setNextGoalConversionValues(i)},getNextGoalConversionValue(e,t=null){const n=this.getNextGoalConversionValues();let i=n[e]&&n[e].findIndex((e=>e.triggerId==t)),s=n[e]&&n[e][i];s||(i=n[e]&&n[e].findIndex((e=>!e.triggerId)),s=n[e]&&n[e][i]);const r=this.getCurrency();if(s&&!s.value.currency&&r&&(s.value.currency=r),n[e]&&(n[e].splice(i,1),0===n[e].length&&delete n[e]),this.setNextGoalConversionValues(n),s)return s.value}}},9056:(e,t,n)=>{"use strict";n.d(t,{O:()=>o,s:()=>r});var i=n(623),s=n(884);function r(e){if("string"!=typeof e)return NaN;const t=e.lastIndexOf(","),n=e.lastIndexOf(".");let i,s=e.replace(/[^0-9.,]/g,"");if(t>-1&&n>-1)i=t>n?",":".";else if(t>-1||n>-1){const e=t>-1?",":".",n=s.split(e);2===n.length&&n[1].length<3&&(i=e)}return i?(s=s.replace(new RegExp(`[^0-9\\${i}]`,"g"),""),s=s.replace(new RegExp(`\\${i}`),".")):s=s.replace(/[^0-9]/g,""),parseFloat(s)}class o{constructor(e,t=[]){this.goals=(e||[]).filter((e=>{if(!e.triggers)return!1;for(let t=0,n=e.triggers;t{const i=r(t.innerText);if("number"!=typeof i||Number.isNaN(i))return;const a={worth:i,currency:c};(0,s.Yz)("[Goals] Goal target value detected",{goal:n,trigger:o,original:t.innerText,value:a}),a&&e({type:"goalValue",value:a,goal:n,trigger:o})}))}}}}initMutationObserver(){this.mutationObserver||this.goals.length&&(this.mutationObserver=new MutationObserver(this.onMutation.bind(this)),this.mutationObserver.observe(CE2.d,{subtree:!0,childList:!0,characterData:!0}))}onMutation(e){for(let t=0;t{"use strict";function i(){return CE2.tracker}function s(e){if(!e)return;CE2.IDENTIFIER=e;const t=i();t?t?.identify(e):CE2.visitorTracker&&CE2.visitorTracker.identify(e)}function r(){CE2.IDENTIFIER=null;const e=i();e?e.clearIdentity():CE2.visitorTracker&&CE2.visitorTracker.clearIdentity()}function o(e,t){const n=i();n?.increaseSessionWorth(e,t)}function a(e,t){const n=i();n?.decreaseSessionWorth(e,t)}function c(e,t){const n=i();n?.setSessionWorth(e,t)}n.d(t,{LG:()=>c,LV:()=>a,SY:()=>r,ls:()=>s,vn:()=>o})},1619:(e,t,n)=>{"use strict";n.d(t,{LG:()=>o,LV:()=>c,Ok:()=>r,vn:()=>a});var i=n(9152);function s(){const e=i.i.get("swk");if(e){const[t]=e.split("|");return parseFloat(t)||0}return 0}function r(){const e=i.i.get("swk");if(e){const[t,n]=e.split("|");return{number:parseFloat(t)||0,currency:n||"USD"}}return{number:0,currency:"USD"}}const o=(e,t)=>(i.i.set("swk",[e,t].join("|")),e),a=(e,t)=>{const n=s();return o(n+e,t)},c=(e,t)=>{let n=s()-e;return n<0&&(n=0),o(n,t)}},1814:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(4794),s=n(4933);class r{constructor(){this.trackURL=CE2.data.v11_tracking_dest,this.visitor=CE2.visitorTracker,this.visitorID=CE2.visitorTracker.getId(),this.bufferQueue=[],this.bufferQueueTimeout,this.bufferTimeoutInterval=CE2.data.buffer_timeout_interval||2e3}makeId(){return(0,i.M4)(0,1)}getTimezone(){return"undefined"!=typeof Intl&&"function"==typeof Intl.DateTimeFormat&&"function"==typeof Intl.DateTimeFormat().resolvedOptions&&Intl.DateTimeFormat().resolvedOptions().timeZone||""}newEvent(e,t={}){const n=t.attributes||[];for(let e=0;e{this.processBuffer({scheduleTimeout:e.scheduleTimeout,sendBeacon:e.sendBeacon})}),this.bufferTimeoutInterval))}}},9115:(e,t,n)=>{"use strict";n.d(t,{Ts:()=>g,bX:()=>f,sS:()=>m,t0:()=>E});var i=n(4794),s=n(884);const r=3e3;let o=!1,a=r,c=!1,l=!1,d=null;function u(){d&&(clearTimeout(d),d=null)}function h(e){l=!0,u(),(0,s.Yz)(`[Usage] Page view metered (${e})`)}function p(){const e=[1];return CE2.tracker?CE2.tracker.newEvent(CE2.eventTypes.USAGE,{attributes:e}):function(e){return[[(0,i.M4)(0,1),CE2.visitorTracker?.getId(),CE2.eventTypes.USAGE,CE2.VERSION,+new Date,CE2.tabId,0],e]}(e)}function g({enabled:e=!1,timeoutMs:t=r}={}){o=!!e,a=t,c=!1,l=!1,u(),(0,s.Yz)("[Usage] Metering "+(o?"enabled":"disabled"))}function f(e,{sendBeacon:t=!1}={}){o&&!l&&CE2.tracker&&(h("standalone"),(0,s.Yz)(`[Usage] Sending standalone usage event (${e})`),CE2.tracker.sendImmediatelly(p(),{sendBeacon:t}))}function m(){o&&(c&&!l&&f("page-change"),c=!0,l=!1,u(),d=setTimeout((()=>{d=null,f("timeout")}),a))}function E(e){o&&!l&&e&&e.length&&(e.push(p()),h("piggyback"))}},623:(e,t,n)=>{"use strict";n.d(t,{DM:()=>o,V4:()=>r,_9:()=>c});var i=n(661),s=n(5909);const r=(e,t,{debugCallback:n}={})=>{let i="";return e.indexOf("*")>-1&&(i="*"),(0,s.$)(e,t,i,null,null,n)},o={visited_page(e,{debugCallback:t}={}){const n=CE2.w.location.href;return r(e,n,{debugCallback:t})},device:e=>(0,i.D)(e),referrer(e,{debugCallback:t}={}){const n=CE2.d.referrer;return n===e&&""===n||r(e,n,{debugCallback:t})}},a=(e,{debugCallback:t,operand:n}={})=>{for(let i=0,s=e.values;i>16)+(t>>16)+(n>>16)<<16|65535&n}function o(e,t,n,i,s,o){return r((a=r(r(t,e),r(i,o)))<<(c=s)|a>>>32-c,n);var a,c}function a(e,t,n,i,s,r,a){return o(t&n|~t&i,e,t,s,r,a)}function c(e,t,n,i,s,r,a){return o(t&i|n&~i,e,t,s,r,a)}function l(e,t,n,i,s,r,a){return o(t^n^i,e,t,s,r,a)}function d(e,t,n,i,s,r,a){return o(n^(t|~i),e,t,s,r,a)}function u(e,t){var n,i,s,o,u;e[t>>5]|=128<>>9<<4)]=t;var h=1732584193,p=-271733879,g=-1732584194,f=271733878;for(n=0;n>5]>>>t%32&255);return n}function p(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(255&e.charCodeAt(t/8))<>>4&15)+i.charAt(15&t);return s}function f(e){return unescape(encodeURIComponent(e))}function m(e){return function(e){return h(u(p(e),8*e.length))}(f(e))}function E(e,t){return function(e,t){var n,i,s=p(e),r=[],o=[];for(r[15]=o[15]=void 0,s.length>16&&(s=u(s,8*e.length)),n=0;n<16;n+=1)r[n]=909522486^s[n],o[n]=1549556828^s[n];return i=u(r.concat(p(t)),512+8*t.length),h(u(o.concat(i),640))}(f(e),f(t))}function C(e,t,n){return t?n?E(t,e):function(e,t){return g(E(e,t))}(t,e):n?m(e):g(m(e))}void 0===(i=function(){return C}.call(t,n,t,e))||(e.exports=i)}()},8423:(e,t,n)=>{"use strict";function i(){if(!(typeof globalThis.CE2>"u"))return globalThis.CE2}n.d(t,{_:()=>s});const s={JSON:()=>{const e=i();return e?.Native?.JSON?e.Native.JSON:JSON},Array:()=>{const e=i();return e?.Native?.Array?e.Native.Array:Array}}},6385:(e,t,n)=>{"use strict";n.d(t,{B5:()=>a,EW:()=>c,IC:()=>o,Pl:()=>r});var i=n(8423);function s(e,t=[document]){const n=e.shift(),i=t.flatMap((e=>e&&e.nodeType===Node.DOCUMENT_NODE?[...e.querySelectorAll(n)]:e.shadowRoot?[...e.shadowRoot.querySelectorAll(n)]:[]));return e.length?s(e,i):i}function r(e){try{const t=i._.JSON().parse(e);if("nested"===t.type)return t.selectors}catch{}return[e]}function o(e,t=[document]){return s(r(e),t)}function a(e,t,n){const i=r(t);let o=i.pop();const a=i.length?s([...i],[e.ownerDocument]).map((e=>e.shadowRoot||e)):[e.ownerDocument];return!(i.length&&!a.some((t=>t&&t===e.getRootNode())))&&(n&&(o+=`,${o} *`),e.matches(o))}function c(e){return e.composed?e.composedPath()[0]:e.target}}},e=>{var t,n=(t=9434,e(e.s=t)),i=CE2="undefined"==typeof CE2?{}:CE2;for(var s in n)i[s]=n[s];n.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})}]);if(CE2.benchmark.start("navigation|crazyegg|common"),CE2.benchmark.start("navigation|crazyegg|common|start"),CE2.start=function(){CE2.domReadySetup(),CE2.onDOMReady(()=>{CE2.benchmark.stop("navigation|crazyegg|common|start"),CE2.userDataMain()})},CE2.data&&CE2.data.error_tracking)try{CE2.debug("[Loading] Starting Error Tracking"),CE2.errorTracking.listen()}catch(a){CE2.debug(a)}CE2.autoStart?CE2.start():CE2.debug("[Loading] Autostart disabled"),"function"==typeof CE_READY?CE2.onDOMReady(CE_READY):"object"==typeof CE_READY&&CE2.onDOMReady(()=>{CE2.each(CE_READY,a=>{if("function"==typeof a)try{a()}catch(a){CE2.debug("[Loading] CE2.userMain error:"),CE2.debug(a)}})});