(()=>{"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,a,u]=t,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";s.r(t),s.d(t,{ABTest:()=>h.Ay,ADDON_SCRIPT_VERSION:()=>f,CE_API:()=>At,CommonEventHandlers:()=>os,Emitter:()=>ce.v,ExitIntent:()=>Nt,FormData:()=>me.f,Goal:()=>u.A,IndexedDB:()=>a.mc,JSON:()=>rs,NativeURL:()=>ns,Preview:()=>ee,READY_STATE_PATTERN:()=>Ae,Tracker:()=>is,URL:()=>ve.j,addListener:()=>r.ch,addTag:()=>r.Ap,addToCart:()=>Jt,benchmark:()=>o.aE,benchmarkEnabled:()=>o.$J,checkoutCompleted:()=>Xt,clearIdentity:()=>ke.SY,click:()=>r.jM,consent:()=>a.vJ,converted:()=>Gt.H$,cookieStorage:()=>_.i,customEvent:()=>r.ex,debug:()=>o.Yz,debug2:()=>o.cC,debug2Enabled:()=>o.$Q,debugEnabled:()=>o.dK,debugError:()=>le.A,decreaseSessionWorth:()=>ke.LV,deleteCookie:()=>r.Yj,domReadySetup:()=>Pe,each:()=>r.__,errorTracking:()=>le.o,get:()=>E.get,getCensoredElements:()=>fe,getCookie:()=>r.Ri,getCookieMode:()=>a.mr,getCookies:()=>r.OR,getLastFlow:()=>Kt.lD,getSegmentTracker:()=>J.MH,getSession:()=>Yt,getSessionId:()=>Wt,goalConversion:()=>Gt.og,goalIdString:()=>Gt.CT,hasFeature:()=>r.jI,http:()=>E,hudMain:()=>be,identify:()=>ke.ls,ignore:()=>r.Xe,increaseSessionWorth:()=>ke.vn,isBot:()=>Re,isConsent:()=>a.VK,listen:()=>r.KT,loadHUD:()=>Se,matchURL:()=>Ce.$,matchesAddon:()=>te,matchesLegacyOrSegments:()=>J.mF,matchesSelector:()=>r.B5,matchesTrigger:()=>Q._9,nextGoalConversionValue:()=>Gt.uw,notifyError:()=>Tt,onDOMReady:()=>$e,pagesTracker:()=>ct,parseNumberString:()=>qt.s,promisePool:()=>ue,remoteLog:()=>pe,removeListener:()=>r.pQ,resetSession:()=>jt,set:()=>r.hZ,setCurrency:()=>Gt.MN,setRecordingsSamplingRate:()=>Ke,setSessionWorth:()=>ke.LG,showCTA:()=>K,showFeedbackSurvey:()=>z,showSurvey:()=>M,startCheckout:()=>Qt,startRecording:()=>qe,stopRecording:()=>Je,testModeCheck:()=>r.ou,traceLog:()=>o.aQ,trackSurveyResponse:()=>ae,triggerAddons:()=>Z,userDataMain:()=>kt,userMainTestMode:()=>bt,uuid_v1:()=>de.O,writeCookie:()=>r.o});var i={};s.r(i),s.d(i,{previewHandler:()=>V,showFeedbackSurvey:()=>z,showSurvey:()=>M,trigger:()=>B});var n={};s.r(n),s.d(n,{previewHandler:()=>j,showCTA:()=>K,trigger:()=>q});s(7022);var r=s(2886),o=s(3380),a=s(4451);"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;tl(s)})}CE2.getNativeXMLHttpRequest=function(){return new CE2.Native.XMLHttpRequest},"undefined"!=typeof Prototype&&(0,o.Yz)("[Loading] WARNING: Prototype.js library detected, it can cause tracking issues"),(0,o.Yz)(`[Loading] Cookie mode=${(0,a.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 s=document.createElement("script");s.src=e,s.type="text/javascript",s.async=!0,s.onload=()=>{t&&t()},document.head.append(s)}),CE2.loadTrackingScript||(CE2.loadTrackingScript=function(e){return e()}),CE2.loadSessionTrackingScript||(CE2.loadSessionTrackingScript=function(e){return e()}),CE2.w&&!CE2.w.CE_URL_FINGERPRINT&&(CE2.w.CE_URL_FINGERPRINT=function(){const{host:e}=CE2.w.location;let{pathname:t}=CE2.w.location;return t=t.split("/").map((e=>e.replace(/^([\d]+|(.*(\d.*){2}))$/,"*"))).join("/"),`${e.replace(/^(www|m)\./i,"")}${t}`.toLowerCase().replace(/\/$/,"")}),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&&setTimeout((()=>{CE2.w.CE_API=CE2.CE_API(CE2.w.CE_API)}));var u=s(8856),h=s(2484);const g=function(e){if(CE2.data.sites_sampling)for(let t=0,s=CE2.data.sites_sampling;t-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)),s=new Date(1e3*parseInt(this.site.recordingSettings.samplingEndDateUnix,10)),i=new Date(1e3*parseInt(this.site.recordingSettings.samplingUpdatedAt,10)),n=new Date(1e3*parseInt(this.site.recordingSettings.samplingCompletedAt,10));return!(i&&n&&n>i)&&(t<=e&&e<=s)},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"}};var E=s(1509);const f=CE2.w?.CE_ADDON_VERSION||"1.0.132",C="preview",m="testMode",v="pageChange",y="survey",w="cta",S=2;var _=s(8e3);let I=!1;const b={survey:"Survey",cta:"CTA"},k=()=>new Promise((e=>{CE2.loadTrackingScript((()=>{e()}))})),T=()=>I?Promise.resolve():new Promise((e=>{const t=(()=>{const{data:e}=CE2,t=`/scripts/addons/${f}/index.js`;return CE2.w.CE_ADDON_HOST?[CE2.w.CE_ADDON_HOST,t].join(""):new CE2.Native.URL(t,e.common_script_url).toString()})();CE2.loadScript(t,(()=>{I=!0,e()}))})),N=async e=>{CE2[b[e]]||(await T(),CE2.loadAddon?await CE2.loadAddon(e):(0,o.Yz)("[Addons] CE2.loadAddon not defined after loading addont script"))},R=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 s=t.map((e=>((0,o.Yz)(`[Addons] ${e.href}: schedule waiting`),new Promise((t=>{let s,i=!1;e.addEventListener("load",(()=>{i=!0,(0,o.Yz)(`[Addons] ${e.href}: loaded`),s&&clearTimeout(s),t("ok")})),s=setTimeout((()=>{!1===i&&((0,o.Yz)(`[Addons] ${e.href}: timed out`),t("timed out"))}),5e3)})))));return 0===(await Promise.all(s)).filter((e=>"string"==typeof e&&"timed out"===e)).length},A=e=>{const{sampling:t,external:s}=e?.config||{};if(!e||"number"!=typeof t||!0===s)return!1;let i=_.i.get("as");if("boolean"!=typeof i){const e=100*Math.random();i=e>t,(0,o.Yz)("[Addons] Sampling",{seed:e,sampling:t}),_.i.set("as",i)}return i},D="initiated",O="dataLoaded",$="scriptLoaded",P="dataMissing",H="https://core.crazyegg.com";class U{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,s=t.survey_launch_origins||t.addon_launch_origins||[];return[t.ce_app_url,...s].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 s=t.slice(2).join(".");return!(s&&s!==CE2.w.location.hostname&&!CE2.w.location.hostname.endsWith(`.${s}`))}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:D},H);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?O:P},H),e&&((0,r.ch)(window,`${this.type}Loaded`,(()=>{t.source.postMessage({status:$},H)})),this.currentAddon=e,this.onDisplay(e)))})),window.removeEventListener("message",e))};window.addEventListener("message",e)}CE2.loaded=!0}loadData(e){return new Promise(((t,s)=>{const{data:i}=CE2,n=new CE2.Native.URL(i.survey_preview_dest||i.addon_preview_dest);n.searchParams.set("token",e),n.searchParams.set("user",i.uid),n.searchParams.set("host",CE2.w.location.hostname),(0,E.get)(n.href,(e=>{e&&200===e.status&&e.responseText?t(CE2.Native.JSON.parse(e.responseText.trim())):s(new Error("Preview addon not found"))}))}))}}const V=new U("survey",(async e=>(await N(y),CE2.launchAddon(y,{mode:C,addon:e}))));let x=[];const L=()=>{const{Survey:e}=CE2;for(let e=0,t=x;e{})),e.on("notTrigger",(()=>{})),e.on("surveyDisplay",(({id:e})=>{(0,E.sendCounter)("survey:view",e)})),e.on("questionDisplay",((e,t)=>{const s=e.questions[t]?.id;s&&(0,E.sendCounter)("question:view",`${e.id}_${s}`)}))]},M=async e=>{if("string"!=typeof e)throw new Error("Survey ID must be a string");const t=(CE2.data.addons||[]).find((t=>t.id===e));t?A(t)?(0,o.Yz)(`Addon ${e} is sampled`):(await k(),await N(y),L((CE2.site,CE2.getSession(CE2.site?.id))),CE2.Survey.showSurvey(e)):(0,o.Yz)(`Addon ${e} is not found`)},z=async e=>{if("string"!=typeof e)throw new Error("Survey ID must be a string");await k(),await N(y),L((CE2.site,CE2.getSession(CE2.site?.id))),CE2.Survey.showFeedbackSurvey(e)},B=async(e,t)=>{const{addons:s}=CE2.data;return CE2.w.CE_EXTERNAL_SURVEY?(async e=>{if(CE2.w.CE_EXTERNAL_SURVEY_PREVIEW&&"preview"===e)return await N("survey"),V.load();if("preview"!==e){await k();const{addons:e}=CE2.data;e.length&&(CE2.state.survey=e[0],await M(e[0].id))}})(e):e===C?(V.isPreview()&&await N(y),V.load()):void(s&&0!==s.filter((({type:e})=>e===y)).length?V.isPreview()||await(async e=>{await k(),await N(y),L(),await CE2.launchAddon(y)})():(0,o.Yz)("[Addons] Nothing to match"))},F="cta_converted",Y=e=>{const t=(0,r.IS)("sessionId");if(!e||!t)return;(e=>{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(F)||"{}");e[t.goal_id]={id:t.id,goalId:t.goal_id,timestamp:Date.now()},CE2.Native.sessionStorageWrapper.write(F,CE2.Native.JSON.stringify(e))}})(e);const s=[(0,r.IS)("visitID"),S,(0,r.IS)("session").numberVisits(),e.id];(0,E.sendCounter)("cta:click",e.id),CE2.tracker?.sendCtaClick(s)},j=new U("cta",(async e=>(await N(w),CE2.launchAddon(w,{mode:C,addon:e}))));let W=[];const G=e=>{const{CTA:t}=CE2;for(let e=0,t=W;e{})),t.on("notTrigger",(()=>{})),t.on("display",(e=>{e&&(async({id:e})=>{await R("crazyegg-cta")&&(0,E.sendCounter)("cta:view",e)})(e)})),t.on("click",(t=>{t&&Y(t,e.site)}))]},K=async e=>{if("string"!=typeof e)throw new Error("CTA ID must be a string");const t=(CE2.data.addons||[]).find((t=>t.id===e));t?A(t)?(0,o.Yz)(`Addon ${e} is sampled`):(await k(),await N(w),G({site:CE2.site,session:CE2.getSession(CE2.site?.id)}),CE2.CTA.showCTA(e)):(0,o.Yz)(`Addon ${e} is not found`)},q=async(e,t)=>{if(e===C)return j.isPreview()&&await N(w),j.load();const{addons:s}=CE2.data;s&&0!==s.filter((({type:e})=>e===w)).length&&(j.isPreview()||await(async e=>{await k(),await N(w),G(e),await CE2.launchAddon(w)})(t))};var J=s(474),Q=s(7471);const X=[i,n],Z=(e,t={})=>{CE2.data.addons=(CE2.data.addons||[]).filter((e=>!1===A(e)));for(let s=0;s(0,J.mF)({resourceType:e.type,resourceId:e.id},(()=>(0,Q._9)(e.config.audience?.conditions,t))),se="text-entry/email",ie=["multi-choice/single","multi-choice/multi","text-entry/short","text-entry/long",se,"rating/stars","rating/numerical","rating/smiley","rating/NPS"],ne=e=>!e.some((e=>0!==e&&!e)),re=e=>[e.questionType,e.questionId,e.questionText,e.response,e.questionPosition,e.otherResponse],oe=e=>CE2.tracker?.[e],ae=(e,t,s=null)=>{if(!e||!t.length)return(0,o.Yz)("Survey: invalid arguments");if(!((e,t)=>{const s=!e||ne(Object.values(e)),i=!t.map((e=>ne(Object.values(e))&&ie.includes(e.questionType))).some((e=>!e));return s&&i})(s,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(re),n=[oe("visitID"),CE2.visitorTracker.getIdentification(),s?.id||"",s?.formatVersion||"",e,oe("session")?.numberVisits(),i,CE2.w.location.href],r=t.find((e=>e.questionType===se&&e.response));CE2.tracker?.sendSurveyResponse(n,r?.response)};var ce=s(3201),de=s(2759),le=s(4808);const ue=function(e,t,s){return new Promise(((i,n)=>{const r=[],o=[];let a,c=0,d=0;const l=()=>{if(d>=e.length&&!a)return void(a=Promise.all(o).then((()=>{i(r)})).catch((e=>{n(e)})));if(d>=e.length)return;const u=e[d];d+=1;const h=s(u);o.push(h),h.then((e=>{r.push(e),c-=1,l()})).catch((e=>{n(e)})),c+=1,c{t.status<200||t.status>=300?ye(`Error loading latest HUD version: ${t.status} ${t.statusText}`):e(t.responseText.trim())}))}(),CE2.state.loadedHUD=!0,CE2.Native.localStorage.setItem("powerup","true"),!0)}catch(e){return ye(e),!1}},_e=function(){try{if(we())return Se(),!0}catch(e){ye(e)}return!1},Ie={startListener(){CE2.w.opener&&CE2.w.addEventListener("message",Ie.onMessage)},stopListener(e,t){CE2.w.removeEventListener("message",Ie.onMessage),e.postMessage({hudLaunched:!0},t)},onMessage(e){try{if(ye("Received message"),e.source!==CE2.w.opener)return void ye("Unexpected source");if(![CE2.data.ce_app_url,...CE2.data.hud.launch_origins].includes(e.origin))return void ye("Unexpected source url");const t=e.data;if(!t||"object"!=typeof t)return void ye("Unexpected message");if("number"!=typeof t.launcherId)return void ye("Unexpected launcherId");CE2.Native.sessionStorage.setItem("ce-hud-launch-params",CE2.Native.JSON.stringify(t)),Ie.stopListener(e.source,e.origin),Se()}catch(e){ye(e)}}},be=function(){if(CE2.data&&CE2.data.hud)try{!function(){try{if(void 0===CE2.Native.localStorage)return!1;if(void 0===CE2.Native.localStorage.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&&!we()&&!e||!CE2.Native.localStorage.getItem("powerup")||(Se(),0))}catch(e){return ye(e),!1}}(),CE2.w.addEventListener("hashchange",_e),_e(),Ie.startListener()}catch(e){ye(e)}};var ke=s(715);function Te(){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(!1===navigator.onLine)return"navigator.onLine";const t=((e=window).innerHeight>=16384||e.innerWidth>=16384)&&"viewport-inner";if(t)return t;if(!navigator.language||navigator.languages&&0===navigator.languages.length)return"language";if(navigator.webdriver)return"webdriver";if(window.jasmine)return"jasmine";const s=["__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"],i=["webdriver","_phantom","__nightmare","_selenium","callPhantom","callSelenium","_Selenium_IDE_Recorder"];for(let e=0;e0;)e.pop().call();Oe=!0};if(Oe&&e(),(0,r.KT)(window,"load",e),CE2.d.addEventListener&&(0,r.KT)(CE2.d,"DOMContentLoaded",e),CE2.d.readyState){const t=Ae;!function s(){t.test(CE2.d.readyState)?e():setTimeout(s,10)}()}},He="ce_successful_csp_check";class Ue{load(){return this.loadPromise||(this.loadPromise=new Promise((e=>{if(CE2.benchmark.start("navigation|crazyegg|common|userdatamain|load-csp"),void 0===this.isSuccessful&&(this.isSuccessful=Ue.get()),void 0!==this.isSuccessful)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,E.get)(`${e}/healthcheck`,(e=>{e&&200===e.status&&e.responseText?(e=CE2.Native.JSON.parse(e.responseText.trim()),t("ok"===e.status)):t(!1)}))})):Promise.resolve(!0)));t.push(Ue.getInlineWorkerPromise()),Promise.all(t).then((t=>{this.isSuccessful=-1===t.findIndex((e=>!1===e)),this.isSuccessful&&Ue.store(),CE2.benchmark.stop("navigation|crazyegg|common|userdatamain|load-csp"),e()}))}))),this.loadPromise}hasIssues(){return!this.isSuccessful}static getInlineWorkerPromise(){return new Promise((e=>{try{const t=(0,r.I3)("crazyegg-csp-check",(e=>{self.postMessage(e.data)}),!1);if(t){const s=setTimeout((()=>{t.terminate(),e(!1)}),500);t.onmessage=i=>{clearTimeout(s),t.terminate(),e("hello"===i.data)},t.postMessage("hello")}else e(!1)}catch(t){e(!1)}}))}static store(){CE2.Native.localStorageWrapper.write(He,+new Date+864e5)}static get(){let e=CE2.Native.localStorageWrapper.read(He);if(e){if(e=parseInt(e,10),e>+new Date)return!0;CE2.Native.localStorageWrapper.remove(He)}}}const Ve=new Ue,xe=function(){const e="!$%&()*+,-.0123456789;<=>?@[]^_`{|}~",t={};let s;for(s=0;s<36;s++)t[e.charAt(s)]=s.toString(36);return t}(),Le=function(e){return parseInt(e.replace(/./g,(e=>xe[e])),36)},Me=function(e){let t="";const s=/(![^:\/a-z])|([^:\/a-z]{2})|(:[^:\/a-z]{3})|(\/[^:\/a-z]{4})/gi,i=String.fromCharCode;let n;for(;null!=(n=s.exec(e));)n[1]||n[2]?t+=i(Le(n[0])):n[3]?t+=i(Le(n[3].substr(1))):n[4]&&(t+=i(Le(n[4].substr(1))));return t},ze=function(e,t,s){const i={};CE2.visitorTracker&&(i.visitor=CE2.visitorTracker.getId()),s&&(i.goals=s.map((e=>e.id))),t&&(i.session={id:t.id,full:t.isFull()});const n=new CE2.Tracker({version:CE2.VERSION,visitId:CE2.getVisitId(),censoredElements:CE2.getCensoredElements(e),site:e,session:t,goals:s});return(0,o.Yz)("[Tracker] Starting",i),n},Be=function(e,t,s,i){const n={},a=(t||[]).filter((e=>(0,r._3)(e)));a.length&&(CE2.testID=a.map((e=>e.id)),CE2.testVersion=a.map((e=>e.v))),t&&t.length&&(n.snapshots=t.map((e=>({id:e.id,version:e.v})))),s&&(n.session={id:s.id,new:s.isNew(),full:s.isFull()}),i&&(n.urlChanged=i),(0,o.Yz)("[Tracker] Updating",n),e.update({session:s,snapshots:a,urlChanged:i})},Fe=function(){const e="v11slnt";function t(){_.i.set(e,+new Date)}function s(){const t=function(){const t=_.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 s,i;for(let t=0;t1e3&&t()}}}(),s()}catch(e){return(0,le.A)(e),!1}}}};function Ye(e){if(""!==e&&!/^\s*#.*$/.test(e))return e.replace(/\s*#.*$/,"")}function je(e,t){return t.indexOf("-")>-1?function(e,t){if(-1===e.indexOf("."))return!1;const s=e.split("."),i=Ye(t);if(!i)return!1;const n=i.split("-");if(!n[0]||!n[1])return!1;const r=n[0].split("."),o=n[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(s[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 s=e.split(":"),i=Ye(t);if(!i)return!1;const n=i.split(":");for(let e=0;e{et(e,t,s)}},st=function(e,t,s=!1){const i=s?"matched":"rejected";Xe.push({id:e.id,result:i,message:t})},it=function(e){return(t,s=!1)=>{st(e,t,s)}},nt=function(e){let t,s;const{rules:i}=e;if(CE2.data.disable_recordings_mobile&&1!==CE2.clock.getDeviceType())return et({disable_recordings_mobile:CE2.data.disable_recordings_mobile,device:CE2.clock.getDeviceType()},"disabled mobile",!1),!1;if(e.pageTargetingEnabled){if(1===Ge)return!0;if(i&&i.length)for(t=0;s=i[t++];)if((0,Ce.$)(s.u,CE2.w.location.href,s.o,null,null,tt(s)))return!0;return!1}return et({},"All pages",!0),!0};const rt=function(e,t,s){if(!e||!t||!s)throw new Error("Missing site/session/visitor");if(!e.sessionRecording)return(0,o.Yz)("[Sessions] Recordings 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=nt(e.recordingSettings),n=e.recordingSettings&&function(e){const{blockedRules:t}=e;return Qe()||(0,Ce.e)(t)}(e.recordingSettings),a=(new Fe).slow()?"slow network":(0,r.Qb)()?Ve.hasIssues()?"site has csp issue":void 0:"inline-workers not supported";if(t&&t.isFull()&&t.isExpired())return t.reset("expired"),{retry:!0,reset:!0};if(t&&t.isFull())return a?(t.reset(a),(0,r.GO)(`[Sessions] Stopped: ${a}`),{record:!1,reset:!0}):n&&e.recordingSettings.endSessionOnBlockedUrl?(t.reset("page-blocked"),(0,r.GO)("[Sessions] Page blocked and marked to end"),{record:!1,reset:!0}):Qe()?(t.reset("recording-stopped"),(0,r.GO)("[Sessions] Recording Stopped"),{record:!1,reset:!0}):n?((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",Ze),Ze=[],!i)return(0,o.Yz)("[Sessions] No matches"),{record:!1};if((0,o.Yz)("[Sessions] Matched",{url:CE2.w.location.href}),n)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 p(e);return c.validRatio()&&c.canRecord()&&!t.isDeleted()?((0,o.Yz)("[Sessions] Sampling accepted, starting new"),{record:!0,ratio:c}):((0,o.Yz)("[Sessions] Sampling rejected"),{record:!1,sampled:!0})},ot=function(e,t,s,i,n,r){if(void 0===e.isBlocked&&(e.isBlocked=new We(e.ip).blocked(r)),e.isBlocked)return st(e,"IP blocked"),!1;if(Re())return st(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 st(e,`variantid=${i.join(",")} allowed=${e.vid}`,t),t}return n&&Object.values(n).length&&e.o&&/go/.test(e.o)?(0,Ce.$)(e.u,n,e.o,e.d,CE2.n.userAgent,it(e)):s&&e.o&&/n/.test(e.o)?(0,Ce.$)(e.u,s,e.o,e.d,CE2.n.userAgent,it(e)):(0,Ce.$)(e.u,t,e.o,e.d,CE2.n.userAgent,it(e))},at="cebsp_";const ct=new class{constructor(){this.numPages=0}load(){this.numPages=(0,r.Ri)(at),this.numPages=this.numPages?parseInt(this.numPages,10):0}pageChanged(){this.numPages++,(0,r.o)(at,this.numPages)}getPages(){return this.numPages}};class dt{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,_.i.set(this.visitorIdentificationKey,this.identification))}clearIdentity(){CE2.IDENTIFIER=null,_.i.del(this.visitorIdentificationKey)}del(e){_.i.del(e)}reset(){this.del(this.visitorKey),this.del(this.visitorVisitsKey)}loadVisitorId(){if(this.storedId=_.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,_.i.set(this.visitorKey,e)}else this.id=(0,he.M4)(),_.i.set(this.visitorKey,this.id)}loadVisitorIdentification(){const e=_.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"),_.i.get(this.visitorVisitsKey)?this.numVisits=parseInt(_.i.get(this.visitorVisitsKey),10):_.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,_.i.set(this.visitorVisitsKey,this.numVisits)):e&&(this.numVisits+=1,_.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===dt.RETURNING_STATE.RETURNING}isNewDailyVisitor(){const e=_.i.get(this.visitorDailyVisitAt),t=CE2.clock.getDate();return(!e||t>e)&&(t.setUTCHours(23,59,59,999),_.i.set(this.visitorDailyVisitAt,+t),!0)}returningState(){if(void 0!==this.isReturningCache)return this.isReturningCache;let e=_.i.get(this.visitorIsReturningKey),t=_.i.get(this.visitorLastVisitAtKey),s=!1;e||(e=dt.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=dt.RETURNING_STATE.RETURNING,CE2.Native.localStorage.removeItem(this.firstVisitDataKey)),i>this.RETURNING_WINDOW_MSEC&&(e=dt.RETURNING_STATE.NEW,s=!0,CE2.Native.localStorage.removeItem(this.firstVisitDataKey)),(0,o.Yz)(`[Visitor] IsReturning id=${this.id} state=${e} lastVisit=${t} reset=${s}`),t=Date.now(),_.i.set(this.visitorIsReturningKey,e),_.i.set(this.visitorLastVisitAtKey,t),this.isReturningCache={state:e,reset:s},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(dt,"RETURNING_STATE",{NEW:"new",RETURNING:"returning"});const lt=new dt,ut=function(){return{isReturning:()=>lt.isReturning(),returningState:()=>lt.returningState(),getId:()=>lt.id,getIdentification:()=>lt.identification,getStoredId:()=>lt.storedId,getNumVisits:()=>lt.numVisits,getFirstVisitData:()=>lt.firstVisitData,setIdentityFromUrl:()=>lt.setIdentityFromUrl(),isNewDailyVisitor:()=>lt.isNewDailyVisitor(),load(){lt.load()},identify:e=>lt.identify(e),clearIdentity(){lt.clearIdentity()}}};var ht=s(401);const gt="_ce.clock_data",pt=",",Et=/^[123]$/;const ft=new class{getData(){return(0,r.Ri)(gt)}load(){if(this.loadPromise)return this.loadPromise;const e=this;return this.loadPromise=new Promise(((t,s)=>{CE2.benchmark.start("navigation|crazyegg|common|userdatamain|load-clock");const i=(0,r.Ri)(gt);if(i){const[s,n,r,o,a,c]=i.split(pt);if(!o||o===(0,ht.F)(CE2.n.userAgent))return s&&n&&(e.diff=parseInt(s,10),e.ip=n,e.device=r&&Et.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 n=i=>{const[n,a,c,d,l]=i.responseText.split(pt),u=parseInt(n,10);if(u>0){const s=+new Date-u;e.diff=s,e.ip=a,e.device=c&&Et.test(c)?parseInt(c,10):void 0,e.browser=d,e.country=l,e.userAgentMd5=(0,ht.F)(CE2.n.userAgent),e.valid=!0;const i=[s,a,e.device,e.userAgentMd5,e.browser,e.country].join(pt);(0,r.o)(gt,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"),s()};let a,c,d;if(CE2.site?.id&&!CE2.w.CE_SITE_ID){c=CE2.data.uid,d=CE2.site.id;const e=[(0,he.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)()?n({responseText:[+new Date,"99.99.99.99",1,"chrome","US"].join(pt)}):(0,E.sendEvents)({userId:c,siteId:d,context:"Clock",t:+new Date,endpoint:CE2.data.clock_url,callback:n},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 s,i,n=0;if(s=e.indexOf("("),-1==s)return 1;if(s++,-1!=(i=e.indexOf("Android",s))){if(i+=8,e.length>i&&(n=e.charAt(i)))switch(n){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",s)))switch(n=e.charAt(i+2),n){case"a":return 3;case"h":case"o":return 2}return-1!=(i=e.indexOf("BlackBerry",s))?-1!=e.indexOf("Tablet",i+10)?3:2:-1!=e.indexOf("Windows Phone",s)||-1!=e.indexOf("BB10",s)||"M"!=e.charAt(0)&&-1!=e.indexOf("Opera Mini",s)?2:1}(CE2.n.userAgent))}},Ct=["editor","ab_tests"];function mt(e){if(!Ct.includes(e))throw new Error(`unsupported feature name: ${e}`);const t=CE2.w.CE_FEATURES?.[e];return!t||!1!==t.enabled}let vt;CE2.clock=ft,CE2.csp=Ve,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},CE2.clickTypes={RAGE:"r",AUTH_BUTTON:"a",NOT_CLICKABLE:"d"},CE2.getVisitId=()=>CE2.visitId,CE2.getSessionId=()=>CE2.getSessionId();const yt=function(){CE2.bh&&(CE2.bh.parentElement.removeChild(CE2.bh),CE2.bh=null)},wt=function(e=!0){return Promise.all([CE2.clock.load(),e?CE2.csp.load():Promise.resolve()])},St=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 _t=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()},It=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:s,sites:i,goals:n}=CE2.data,a=CE2.data.global_ip_block_list,c=!0;"string"==typeof s&&(s=CE2.Native.JSON.parse(Me(s))),"string"==typeof i&&(i=CE2.Native.JSON.parse(Me(i))),"string"==typeof n&&(n=CE2.Native.JSON.parse(Me(n))),a=Me(a),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 d=function(){try{CE2.Native.localStorage.setItem("ce_localstorage_test",""),CE2.Native.localStorage.removeItem("ce_localstorage_test")}catch(e){return console.log(e.message),"localStorage not available"}return!!(0,r.uh)("_ce.cch")||"cookies not available"}();if(!0!==d)return void St(`Not tracking: can't run - ${d}`);if(CE2.hudMain&&CE2.hudMain(),CE2.bot)return void St(`Not tracking: bot detected - ${CE2.bot}`);if((0,r.LB)(CE2.w,CE2.d,CE2.n,CE2.ie))return void St("Not tracking: doNotTrack detected.");if((0,r.jI)("disable-tracking"))return void St("Not tracking: disabled.");if(yt(),t){(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(Me(CE2.data.samplingData.sites_sampling)));const e=new Map((s||[]).map((e=>[e.id,e])));if(CE2.testID=CE2.testVersion=null,CE2.tabId=(0,he.vU)(),CE2.visitorTracker=ut(),CE2.visitorTracker.load(),CE2.visitorTracker.setIdentityFromUrl(),ct.load(),await wt(!!t.sessionRecording),CE2.benchmark.stop("navigation|crazyegg|common|usermain"),Z(C,{site:t}),new We(a).blocked(CE2.clock.getIP()))return(0,o.Yz)("[Loading] IP Blocked",CE2.clock.getIP()),void(CE2.ipBlocked=!0);CE2.ipBlocked=!1,mt("ab_tests")&&("function"==typeof CE2.initFlowTracking?CE2.flowsMatching=await CE2.initFlowTracking():(0,h.bU)()&&(0,h.UE)()),vt=async function(){try{CE2.benchmark.start("navigation|crazyegg|common|monitor");const i=CE2.w.location.href,a=CE2.w.location.pathname,d=CE2.flowsMatching&&CE2.flowsMatching.map((e=>e.flow?.trackByVariant&&e.variant.variantId))||[],l="string"==typeof CE_SNAPSHOT_NAME&&CE_SNAPSHOT_NAME.trim(),u=function(e){const t={};if(e&&e.length){const{gaData:s,google_optimize:i}=CE2.w;e.forEach((e=>{if(e&&"go"==e.o){const n=(e.u||"").split(".");if(n[1]){const e=s?.[n[0]]?.experiments?.[n[1]]||i?.get?.(n[1]);e&&(t[n[1]]=e)}}}))}return t}(s),g=CE2.clock.getDateUnix();let p=!1,E=!1,f=!1,C=CE2.getSession(CE2.site?.id);C!==CE2.monitorSession&&((0,o.Yz)("[Sessions] Changed",{oldSessionId:CE2.monitorSession?.id,newSessionId:C.id}),f=!0);let m=(CE2.monitorSnapshotIds?CE2.monitorSnapshotIds.split(","):[]).map((t=>e.get(parseInt(t,10))));const y=m.filter((e=>e&&e.e&&g>=e.e)).sort().map((e=>e.id)).join(",");if(CE2.monitorPageUrl==i&&CE2.monitorVariantIds==CE2.Native.JSON.stringify(d)&&CE2.monitorGaData==CE2.Native.JSON.stringify(u)&&CE2.monitorCESnapshotName==l&&CE2.monitorExpiredSnapshotIds==y&&!CE2.recordingSettingChanged&&!f)return;if((0,r.Rc)(),CE2.monitorPagePath&&CE2.monitorPagePath===a||(p=!0),CE2.monitorPageUrl&&CE2.monitorPageUrl===i||(E=!0),p&&((0,J.$K)(),ct.pageChanged(),Z(v,{site:t,session:C}),mt("editor")&&CE2.applyVersion?.()),!E||c||CE2.flowPatchApplied||("function"==typeof CE2.initFlowTracking?CE2.flowsMatching=await CE2.initFlowTracking():(0,h.bU)()&&(0,h.UE)()),CE2.monitorPagePath=a,CE2.monitorPageUrl=i,CE2.monitorVariantIds=CE2.Native.JSON.stringify(d),CE2.monitorGaData=CE2.Native.JSON.stringify(u),CE2.monitorCESnapshotName=l,CE2.monitorExpiredSnapshotIds=y,CE2.logHistoryEnabled=!0,p||CE2.recordingSettingChanged||f){let e=rt(t,C,CE2.visitorTracker);e.reset&&e.retry&&(C=CE2.getSession(CE2.site?.id),e=rt(t,C,CE2.visitorTracker),f=!0),e.reset&&(C=CE2.getSession(CE2.site?.id),f=!0),!e.record&&e.sampled&&(C.setSampled(),f=!0),e.record&&e.ratio&&(C.startRecording(e.ratio.ratio,e.ratio.getAppliedStrategy()),f=!0)}CE2.recordingSettingChanged=!1,s&&s.length?m=function(e,t,s,i,n){(0,o.Yz)("[Snapshots] Matching parameters",{pageUrl:t,ceSnapshotName:s,variantIds:i,gaData:n});const r=[],a=new Set(CE2.scriptCheckMatchingSnapshots),c=CE2.clock.getIP();if(!e||!e.length)return;const d=CE2.clock.getDateUnix();let l=null;for(let o=0;od)?(st(u,"pending"),CE2.p[u.id]=u):ot(u,t,s,i,n,c)&&(null===l&&(l=u.v),u.v===l?r.push(u):st(u,`incompatible format version (snapshot: ${u.v}, target:${l})`),a.add(u.id))}return a.size>0&&(CE2.scriptCheckMatchingSnapshots=CE2.Native.Array.from(a)),(0,o.Yz)("[Snapshots] Matching targets",Xe),Xe=[],r}(s,i,l,d,u):(0,o.Yz)("[Snapshots] Nothing to match"),m.length>0?((0,o.Yz)("[Snapshots] Matched",m),CE2.scriptCheckSelectedSnapshot=m[0].id,CE2.scriptCheckSelectedSnapshots=m.map((e=>e.id))):s&&s.length&&(0,o.Yz)("[Snapshots] No matches");const w=function(e,t){return e&&t?e.filter((e=>e.site_id===t.id)):((0,o.Yz)("[Goals] Nothing to match"),[])}(n,t)||[];w.length&&(0,o.Yz)("[Goals] Matched",w),C.isNew()&&(0,r.jI)("web-analytics-tracking")&&((0,o.Yz)("[WebAnalytics] Starting"),C.startWebAnalytics()),CE2.tracker||(CE2.tracker=await function(e,t,s){return new Promise((i=>{t.isFull()?CE2.loadSessionTrackingScript((()=>{i(ze(e,t,s))})):s.length>0?CE2.loadTrackingScript((()=>{i(ze(e,t,s))})):i(ze(e,t,s))}))}(t,C,w)),CE2.state&&(CE2.state.logHistoryEnabled=!1,CE2.state.logHistory=[]),c=!1;const S=m.map((e=>e.id)).sort().join(","),_=S!==CE2.monitorSnapshotIds,I=CE2.state?.survey===CE2.monitorSurvey;if(!(p||f||_||I))return;_&&0===m.length&&CE2.tracker.snapshots.length>0&&CE2.tracker.stopTracker("No snapshots"),CE2.monitorSession=C,CE2.monitorSnapshotIds=S,CE2.monitorSurvey=CE2.state?.survey,await function(e,t,s,i){return new Promise((n=>{s.isFull()?CE2.loadSessionTrackingScript((()=>{n(Be(e,t,s,i))})):t.length>0?CE2.loadTrackingScript((()=>{n(Be(e,t,s,i))})):n(Be(e,t,s,i))}))}(CE2.tracker,m,C,p),C.isNew()&&C.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"),vt&&!Re()&&(await vt(),setInterval(vt,1e3))}()}else St("No site match."),CE2.loaded=!0}catch(e){(0,o.Yz)(e)}finally{yt()}},bt=async function(){CE2.visitorTracker=ut(),CE2.visitorTracker.load(),ct.load(),yt(),CE2.site={id:1,name:(0,r.R2)()},await wt(),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}(),Z(m,{site:CE2.site,session:CE2.tracker.session})}))},kt=async function(){CE2.benchmark.start("navigation|crazyegg|common|userdatamain"),CE2.visitId=(0,he.M4)(0,1),CE2.bot=Re(),(0,r.ou)()?bt():CE2.commonScriptForceLoaded?(be(),await wt(),Z(C)):CE2.data?_t((()=>{CE2.benchmark.stop("navigation|crazyegg|common|userdatamain"),It()})):CE2.data||"string"!=typeof CE_USER_DATA_URL?(0,o.Yz)("No CE2.data nor CE_USER_DATA_URL found, stopping."):((0,o.Yz)(`No CE2.data, loading user data for CE_USER_DATA_URL=${CE_USER_DATA_URL}.`),(0,E.get)(CE_USER_DATA_URL,(e=>{CE2.data=CE2.Native.JSON.parse(e.responseText),CE2.userDataToJs&&CE2.userDataToJs(CE2.data),_t((()=>{CE2.benchmark.stop("navigation|crazyegg|common|userdatamain"),It()}))})))},Tt=function(e,t=null){e&&(t&&(e.fingerprint=t),CE2.tracker&&CE2.tracker.notifyError(e))};class Nt{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===ge.p.typeMap.desktop?(0,r.ch)(CE2.w,"mousemove",this.onMouseMove):t===ge.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),s=(0,r.R2)().substr(1);new RegExp(`${s}$`,"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)}}function Rt(e){if("function"==typeof e)try{e()}catch(e){(0,o.Yz)("CE_API error:"),(0,le.A)(e)}}function At(e){let t;for(CE2.Native.Array.isArray(e)||(e=[]),e.push=function(e){Rt(e)};t=e.shift();)Rt(t);return e}const Dt="v11.s",Ot="v11.vs",$t="v11.fs",Pt="v11.sa",Ht="v11.sla",Ut="v11.send",Vt="v11.ss",xt="v11.cs",Lt="v11nv",Mt="v11r",zt="v11e",Bt="ce_fsvd";class Ft{constructor({siteId:e,id:t,visitorId:s,full:i,webAnalytics:n,isNew:o,ratio:a,strategy:c}){if(!e||!t)throw new Error("Invalid params");if(this.id=t,this.siteId=e,this.visitorId=s,this.new=o||!1,this.full=i||!1,this.webAnalytics=n||!1,this.ratio=a,this.strategy=c,o)this.firstVisitData={url:CE2.w.location.href,page_fingerprint:CE2.w.CE_URL_FINGERPRINT(),referrer:CE2.w.CE_REFERER||CE2.d.referrer,utm:(0,r.ne)()};else{const e=CE2.Native.localStorageWrapper.read(Bt);this.firstVisitData=e?CE2.Native.JSON.parse(e):{}}}static instance(e){if(!e)throw new Error("Missing required site id");const t=parseInt(Ft.currentSiteId(),10)||e;if(t&&t!==e)return Ft.reset("site-changed"),Ft.instance(e);if(this.session?.isExpired())return this.session.reset("expired"),Ft.instance(e);if(this.session&&this.session.visitorId!==CE2.visitorTracker.getId())return this.session.reset("visitor-changed"),Ft.instance(e);if(this.session)return this.session;const s=!Ft.currentSessionId(),i=Ft.currentSessionId()||(0,r.Jl)(),n=Ft.currentVisitorId()||CE2.visitorTracker.getId(),o=!!Ft.isFull(),a=!!Ft.hasWebAnalytics(),c=Ft.getRatio(),d=Ft.getStrategy();return this.session=new Ft({siteId:t,id:i,visitorId:n,isNew:s,full:o,webAnalytics:a,ratio:c,strategy:d}),this.session.store(),Ft.instance(e)}static reset(e){_.i.del(Dt),_.i.del(Ot),_.i.del(Ht),_.i.del(Ut),_.i.del(Vt),_.i.del(Lt),_.i.del($t),_.i.del(Pt),_.i.del(xt),_.i.del(Mt),_.i.del(zt),CE2.Native.localStorage.removeItem(Bt),delete this.session,(0,o.Yz)("[Sessions] Resetting",{reason:e})}static currentSiteId(){return _.i.get(xt)}static currentSessionId(){return _.i.get(Dt)}static currentVisitorId(){return _.i.get(Ot)}static isFull(){return _.i.get($t)}static hasWebAnalytics(){return _.i.get(Pt)}static getRatio(){const e=_.i.get(Mt);return e&&parseInt(e.split(",")[0],10)}static getStrategy(){const e=_.i.get(Mt);return e&&e.split(",")[1]}get(e){return _.i.get(e)}set(e,t){return _.i.set(e,t)}del(e){return _.i.del(e)}store(){this.id?(this.set(xt,this.siteId),this.set(Dt,this.id),this.set(Ot,this.visitorId),this.full&&this.set($t,1),this.webAnalytics&&this.set(Pt,1),CE2.Native.localStorageWrapper.write(Bt,CE2.Native.JSON.stringify(this.firstVisitData))):(this.del(xt),this.del(Dt),this.del(Ot),this.del($t),this.del(Pt)),this.ratio&&this.set(Mt,[this.ratio,this.strategy].join(","))}reset(e){Ft.reset(e),this.id=null}alive(){this.isInactive()||this.set(Ht,+new Date)}isExpired(){return this.isDeleted()?"isDeleted":this.isEnded()?"isEnded":!!this.isInactive()&&"isInactive"}isInactive(){const e=parseInt(this.get(Ht),10);if(this.id&&e){if(+new Date-e>18e5)return!0}return!1}isEnded(){const e=parseInt(this.get(Ut),10);if(!Number.isNaN(Number(e)))return!!(this.id&&e&&+new Date-e>3e5)||(this.del(Ut),!1)}isDeleted(){return!this.get(Dt)}isNew(){return this.new}setIsNew(e){this.new=e}isFull(){return!this.isDeleted()&&!!this.full}hasWebAnalytics(){return!this.isDeleted()&&!!this.webAnalytics}startWebAnalytics(){return this.webAnalytics=!0,this.set(Pt,1)}isSampled(){return!!this.get(Vt)}setSampled(){this.set(Vt,+new Date),this.store()}isEngaged(){return this.get(zt)}setAsEngaged(){return this.set(zt,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()}numberVisits(){return parseInt(this.get(Lt),10)||0}setNumberVisits(e){return this.set(Lt,e)}end(e=!1){const t=parseInt(this.get(Ut),10);!t&&e?this.set(Ut,1):t||this.set(Ut,+new Date)}}function Yt(e){return Ft.instance(e)}function jt(){return Ft.reset()}function Wt(){return Ft.currentSessionId()}var Gt=s(3487),Kt=s(1807),qt=s(2080);function Jt(e){CE2.tracker.addToCart(e)}function Qt(){CE2.tracker.startCheckout()}function Xt(e){CE2.tracker.checkoutCompleted(e)}var Zt=s(1789);function es(){const e=_.i.get("swk");if(e){const[t]=e.split("|");return parseFloat(t)||0}return 0}const ts=(e,t)=>(_.i.set("swk",[e,t].join("|")),e);var ss=s(9910);class is extends ss.A{constructor(e){super(e),CE2BH.defineProperty(this,"DIFF_INTERVAL",750),CE2BH.defineProperty(this,"SAMPLE_INTERVAL",100);const{visitId:t,version:s,censoredElements:i,site:n,session:r,goals:a}=e;this.eventHandlers={},this.commonEventHandlers={},this.censoredElements=i,this.hideIframes=n&&n.recordingSettings&&n.recordingSettings.hideIframes,this.version=s,this.clickCaptors=CE2.state.clickCaptors.concat([...CE2.d.body.getElementsByClassName("-ce-capture")]),this.site=n||{},this.session=r,this.sessionId=r.id,this.goals=a||[],this.snapshots=[],this.snapshotIds=[],this.blocked=!1,this.sampleCallbacks=[],this.diffCallbacks=[],this.setVisitorIDs(),this.setVisitIDs(t),this.cookies={lastSession:"v11ls"},this.site.recordingSettings&&(0,Ce.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.setupEngagementEventHandlers(),this.processBuffer({scheduleTimeout:!0}),setTimeout((()=>(0,Gt.ur)(this)))}update({session:e,snapshots:t,urlChanged:s}){this.eventHandlers.error&&this.eventHandlers.error.flush(),this.processBuffer();let i=!1;this.snapshotIds&&this.snapshotIds.sort().join(",")!==(t||[]).map((e=>e.id)).sort().join(",")&&(i=!0);const n=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.setupSnapshotAndSessionEventHandlers(),s||n){this.url&&this.hasWebAnalytics()&&this.commonEventHandlers.visit?.trigger(),this.url=window.location.href,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(n,s)}for(const e in this.eventHandlers)if(Object.prototype.hasOwnProperty.call(this.eventHandlers,e)){const t=this.eventHandlers[e];t.update&&t.update(n,s)}(this.snapshots.length||this.session?.isFull())&&!this.blocked&&this.commonEventHandlers.visit?.trigger(),this.eventHandlers.goals?.onUrlVisit()}else i&&t?.length&&this.commonEventHandlers.visit?.trigger({snapshotOnly:!0});(n||i&&t?.length)&&this.sendCustomUserData(),n&&this.commonEventHandlers.sessionmetadata?.trigger(),n&&"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)}setupGoalEventHandlers(){this.goals.length&&(this.eventHandlers.goals||=new CE2.EventHandlers.GoalConversion(this))}setupVisibilityChangeHandlers(){this.visibilitychangeHandlerSet||(this.addEventListener("visibilitychange",(0,r.oI)(this,"onVisibilityChange")),this.addEventListener("focus",(0,r.oI)(this,"onVisibilityChange")),this.addEventListener("blur",(0,r.oI)(this,"onVisibilityChange")),this.visibilitychangeHandlerSet=!0)}setupSnapshotAndSessionEventHandlers(){(this.snapshots?.length||this.session?.isFull())&&(this.eventHandlers.click||=new CE2.EventHandlers.Click(this),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),CE2.EventHandlers?.Ecommerce&&(this.session?.isFull()||this.goals)&&(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.pageFingerprint&&(this.pageFingerprintMd5=(0,ht.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(s)?"":e[s]))}addToCart({productId:e,name:t,quantity:s,price:i,currency:n}){this.eventHandlers.ecommerce&&this.eventHandlers.ecommerce.addToCart([e,t,s,this.eventHandlers.ecommerce.amountInCents(i),n])}startCheckout(){this.eventHandlers.ecommerce&&this.eventHandlers.ecommerce.startCheckout()}checkoutCompleted({orderId:e,total:t,currency:s}){this.eventHandlers.ecommerce&&this.eventHandlers.ecommerce.checkoutCompleted([e,this.eventHandlers.ecommerce.amountInCents(t),s])}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 s=((e,t)=>{const s=es();return ts(s+e,t)})(this.amountInCents(e),t);return(0,o.Yz)("[Tracker] Increase session worth",{amount:e,currency:t,finalAmount:s}),this.sendSessionWorth(s,t)}decreaseSessionWorth(e,t){if(Number.isNaN(Number(e)))return!1;const s=((e,t)=>{let s=es()-e;return s<0&&(s=0),ts(s,t)})(this.amountInCents(e),t);return(0,o.Yz)("[Tracker] Decrease session worth",{amount:e,currency:t,finalAmount:s}),this.sendSessionWorth(s,t)}setSessionWorth(e,t){if(Number.isNaN(Number(e)))return!1;const s=ts(this.amountInCents(e),t);return(0,o.Yz)("[Tracker] Set session worth",{amount:e,currency:t}),this.sendSessionWorth(s,t)}sendSessionWorth(e,t){const s=[this.visitID,e,t&&3===t.length?t.toUpperCase():null,"new"],i=this.newEvent(35,{attributes:s});this.send(i)}getUserData(){const e=[],{userData:t}=CE2.state;return(0,r.__)([1,2,3,4,5],(s=>{const i=t[s];void 0!==i&&e.push(String(s),i)})),e}goalConversion({goalId:e,value:t,triggerId:s,goalName:i,isDynamic:n=!1,skipSessionWorth:r=!1}={}){const a=n&&i?`dyn-${(0,ht.F)(i)}`:null,c=!Zt.r.alreadyConverted(a||e),d=n?null:(e=>CE2.Native.JSON.parse(CE2.Native.sessionStorageWrapper.read(F)||"{}")[e.toString()])(e),l=this.visitor.getFirstVisitData(),u=n?null:this.goals.find((({id:t})=>t===e));let h,g;if(t||n||(t=Zt.r.getNextGoalConversionValue(e,s))&&(0,o.Yz)("[Goal] Using stored value",{goal:u,triggerId:s,value:t}),!t&&u&&u.triggers){const e=u.triggers.find((e=>e.id==s));e&&e.fixed_value&&(t=e.fixed_value,(0,o.Yz)("[Goal] Using fixed value",{goal:u,trigger:e,value:t}))}t&&"object"==typeof t&&t.worth&&!Number.isNaN(t.worth)&&(h=t.currency,g=t.worth,r||this.increaseSessionWorth(g,h));const p=[CE2.w.location.href,n||d?.goalId!==e?void 0:d.id,n||d?.goalId!==e?void 0:CE2.data.addons.find((({id:e})=>e===d.id))?.name,n?i:u?.name,this.visitor.getIdentification(),e||"",l.landingUrl,l.referrer,l.time?Date.now()-l.time:null,l.utm,l.userData,CE2.clock.getIP(),CE2.clock.getDeviceType(),this.visitor.isReturning(),g?Math.round(1e4*parseFloat(g)):void 0,h];n||d?.goalId!==e||((0,E.sendCounter)("cta:conversion",d.id),(e=>{const t=CE2.Native.JSON.parse(CE2.Native.sessionStorageWrapper.read(F)||"{}");delete t[e],CE2.Native.sessionStorageWrapper.write(F,CE2.Native.JSON.stringify(t))})(e));const f=(0,Kt.lD)(),C=f&&CE2.data.flows?.[f.id],m=C?.variants?.[f.variantId],v=[f?.id,f?.name,f?.variantId,"",C?.realId,m?.realId],y=[this.visitID,s||"",c,this.session?this.session.numberVisits():"",...p,...v],w=this.newEvent(26,{attributes:y});this.sendImmediatelly(w,{goalId:a||e}),c&&Zt.r.recordConversion({goalId:e,dynamicId:a}),n||"function"!=typeof CE2.convertedFromFlow||CE2.convertedFromFlow(e,t),(0,o.Yz)("[Goals] Converted",{goalId:e,value:t,triggerId:s,goalName:i,isDynamic:n})}codeConversion(e,t){this.goals.forEach((s=>{s.triggers.forEach((i=>{const n=i.filter.conditions.filter((e=>"code"===e.criteria));if(0!==n.length)for(let r=0;r255)throw new Error("Goal name is too long:",e);this.goalConversion({isDynamic:!0,goalName:e,value:t})}}sendCustomUserData(){this.commonEventHandlers.customUserData?.trigger()}addTag(e,t={}){if(!this.session.isFull()&&!t.virtual)return;const s=CE2.Native.Array.isArray(e)?e:[e];for(let e=0;e{for(let t=0,s=n.hooks;t0?CE2.eventTypes.PAGE_UNLOAD:CE2.eventTypes.VISIT,l=this.tracker.newEvent(d,{eventID:this.tracker.visitID,attributes:c});this.tracker.session&&this.tracker.session.setNumberVisits(a),t?this.tracker.sendImmediatelly(l,{flow:"s"}):s?this.tracker.sendImmediatelly(l,{flow:"ss",virtual:!0}):this.tracker.send(l),s||!this.tracker.snapshots?.length&&!this.tracker.session.isFull()||this.triggerPerformance(e)}triggerPerformance(e={}){const{snapshotOnly:t}=e,s=CE2.w;this.performanceObserver&&(this.performanceObserver.disconnect(),delete this.performanceObserver),this.performanceEvents={},s.performance&&s.performance.getEntriesByType&&(this.handlePerformanceEntries(s.performance.getEntriesByType("navigation"),t),this.handlePerformanceEntries(s.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,s=!1){if(!this.performanceEvents[e]){const i=[this.tracker.visitID,t],n=this.tracker.newEvent(e,{attributes:i});s?this.tracker.sendImmediatelly(n,{flow:"s"}):this.tracker.send(n),this.performanceEvents[e]=!0}}analyticsData(){if(!this.tracker.hasWebAnalytics())return null;const{isNewDailyVisitor:e,isNewDailyReturningVisitor:t}=this.tracker;this.engagementTime||=0;let s=0;this.engagementStartedAt&&(s=Date.now()-(this.lastEngagementAt||this.engagementStartedAt),this.engagementTime+=s,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,s,1,this.tracker.session.getFirstVisitData()?.page_fingerprint];return this.isNewEngagementTrigger=!1,this.isNewSessionEngagementTrigger=!1,i}getLanguage(){return(CE2.n.language||CE2.n.userLanguage).split("-")[0]}setEngagement(){this.tracker.hasWebAnalytics()&&!this.engaged&&(this.engagementStartedAt=Date.now(),this.isNewEngagement=!0,this.isNewEngagementTrigger=!0,this.tracker.session.isEngaged()||(this.tracker.session.setAsEngaged(),this.isNewSessionEngagement=!0,this.isNewSessionEngagementTrigger=!0)),this.engaged=!0}updateLastEngagementAt(){this.lastEngagementAt=Date.now()}},SessionMetadata:class{constructor(e){this.tracker=e}trigger(e={}){const{virtual:t}=e,s=CE2.isBot(!0);if((0,r.jI)("v11_disable_bot_detection")&&s&&(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:${s}`})}catch(e){(0,o.Yz)(`error logging bot reason: ${e.message}`)}const i=CE2.state.overridenRecordingSamplingRate?parseInt(100/CE2.state.overridenRecordingSamplingRate,10):g(this.tracker.site);Number.isNaN(Number(i))||(this.siteRatio=i),CE2.sessionTags.length>0&&(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:s}=t;if(e){const t=[e],i=this.tracker.newEvent(19,{attributes:t});s?this.tracker.sendImmediatelly(i,{flow:"ss",virtual:!0}):this.tracker.send(i)}}},Identify:class{constructor(e){this.tracker=e}trigger(e,t={}){const{virtual:s}=t;if(e){const t=[e];this.tracker.visitor.identify(e);const i=this.tracker.newEvent(17,{attributes:t});s?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]],s=this.tracker.newEvent(18,{attributes:t});this.tracker.send(s)}}}}},7022:()=>{!function(e){var t=e.CE2BH={};function s(){return t.extends=s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(n[s]=e[s]);return n}}("undefined"==typeof window?self:window)},401:(e,t,s)=>{"use strict";s.d(t,{F:()=>n});var i=s(8922);const n=s.n(i)()},2759:(e,t,s)=>{"use strict";s.d(t,{O:()=>r});const i=function(){let e;const t=void 0!==s.g&&(s.g.crypto||s.g.msCrypto);if(t&&t.getRandomValues){const s=new Uint8Array(16);e=function(){return t.getRandomValues(s),s}}if(!e){const t=new CE2.Native.Array(16);e=function(){for(let e,s=0;s<16;s++)3&s||(e=4294967296*Math.random()),t[s]=e>>>((3&s)<<3)&255;return t}}return e}(),n=function(){const e=[];for(let t=0;t<256;++t)e[t]=(t+256).toString(16).substr(1);return function(t,s){let i=s||0;const n=e;return n[t[i++]]+n[t[i++]]+n[t[i++]]+n[t[i++]]+"-"+n[t[i++]]+n[t[i++]]+"-"+n[t[i++]]+n[t[i++]]+"-"+n[t[i++]]+n[t[i++]]+"-"+n[t[i++]]+n[t[i++]]+n[t[i++]]+n[t[i++]]+n[t[i++]]+n[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]),d=0,l=0,function(e,t,s){var i=t&&s||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:l+1,g=u-d+(h-l)/1e4;if(g<0&&void 0===e.clockseq&&(o=o+1&16383),(g<0||u>d)&&void 0===e.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");d=u,l=h,c=o;var p=(1e4*(268435455&(u+=122192928e5))+h)%4294967296;r[i++]=p>>>24&255,r[i++]=p>>>16&255,r[i++]=p>>>8&255,r[i++]=255&p;var E=u/4294967296*1e4&268435455;r[i++]=E>>>8&255,r[i++]=255&E,r[i++]=E>>>24&15|16,r[i++]=E>>>16&255,r[i++]=o>>>8|128,r[i++]=255&o;for(var f=e.node||a,C=0;C<6;++C)r[i+C]=f[C];return t||n(r)});var o,a,c,d,l},2484:(e,t,s)=>{"use strict";s.d(t,{Ay:()=>o,Fi:()=>a,UE:()=>d,bU:()=>c});var i=s(3201),n=s(3380);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("."),[s,i,n]=t;return[s,i,n,t.slice(3).join(".")||null]},c=()=>!!a(),d=()=>{CE2.loadScript(CE2.data.transformations_script_url,(()=>{(0,n.Yz)("[Flows] [Preview] transformations.js chunk is loaded. Run AB test preview"),CE2.initAbTestPreview()}))}},8e3:(e,t,s)=>{"use strict";s.d(t,{i:()=>n});var i=s(2886);const n={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,load(){let e,t,s=CE2.getCookie(this.CK);const i={};if(!s)return i;for(s=s.replace(/\\~/g,"\0").split("~"),e=0;t=s[e];e+=2)i[t.replace(/\x00/g,"~")]=s[e+1].replace(/\x00/g,"~");return i},getCookieRawValue(e){const t=[];return(0,i.__)(e,((e,s)=>{t.push(s.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})},get(e){return this.load()[e]},set(e,t){const s=this.load(),i=`${t}`;let n=!1;const r=parseInt(s[this.LAST_COOKIE_WRITE_KEY],10);r&&+new Date-r>this.LAST_COOKIE_WRITE_THRESHOLD&&(n=!0),(s[e]!==i||n)&&(s[e]=i,this.save(s))},del(e){const t=this.load();delete t[e],this.save(t)}}},3380:(e,t,s)=>{"use strict";s.d(t,{$J:()=>l,$Q:()=>r,Yz:()=>c,aE:()=>u,aQ:()=>o,cC:()=>d,dK:()=>n});const i=function(e){if(!CE2.data||!CE2.data.features)return!1;for(let t=0,s=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=>"object"==typeof e&&e instanceof Error?e:CE2.Native.JSON.stringify(e),c=(e,t)=>{if(CE2.state.logHistoryEnabled&&CE2.state.logHistory.push(e),i("remote-logs")){const s=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:s})}if(!n())return!1;let s;s="string"==typeof e?`CE: ${e}`:e;const r=[s];if(t&&r.push(t),"undefined"!=typeof window){const{console:e}=CE2.Native;e&&e.log&&e.log(...r.map(a))}},d=(e,t)=>{if(!r())return!1;c(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},u={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,s=CE2.benchmarks;t{"use strict";s.d(t,{D:()=>n,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}},n=function(e){return(CE2.Native.Array.isArray(e)?e:[e]).map((e=>i.typeMap[e])).includes(CE2.clock.getDeviceType())}},7866:(e,t,s)=>{"use strict";s.d(t,{M4:()=>n,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}(),n=function(e,t){const{crypto:s}=CE2.w,i="function"==typeof CE2.w.btoa&&CE2.w.btoa;let n,r,o,a="";if(e=e||20,s&&s.getRandomValues){const t=new Uint8Array(e);s.getRandomValues(t),n=CE2.Native.Array.from(t)}else for(n=new CE2.Native.Array(e),r=0;rString.fromCharCode(e))).join(""),i(a).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=+$/,"");for(r=0;r{"use strict";s.d(t,{v:()=>n});const i=()=>({events:{},emit(e,...t){const s=this.events[e]||[];for(let e=0,{length:i}=s;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 n{constructor(){this.emitter=i()}on(e,t,s){if(!s||!this.emitter.exists(e,t))return this.emitter.on(e,t)}once(e,t,s=!1){if(s&&this.emitter.exists(e,t))return;const i=this.on(e,(async(...e)=>(i(),t(...e))))}emit(...e){return this.emitter.emit(...e)}}},4808:(e,t,s)=>{"use strict";s.d(t,{A:()=>o,o:()=>r});var i=s(3380),n=s(1509);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,n.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))}},1807:(e,t,s)=>{"use strict";s.d(t,{D8:()=>o,W2:()=>r,lD:()=>a});var i=s(8e3);const n="flvl",r=(e,t)=>{const s=i.i.get(n)||"";s.includes(e)||i.i.set(n,`${s},${e}:${t}`)},o=()=>{i.i.del(n)},a=()=>{const e=(i.i.get(n)||"").split(",").flatMap((e=>{const[t,s]=e.split(":");return t&&CE2.data.flows?.[t]?{id:t,name:CE2.data.flows?.[t]?.name,variantId:s}:[]}));return e.length?e[e.length-1]:null}},7777:(e,t,s)=>{"use strict";s.d(t,{f:()=>n});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 s,i=0;if("string"==typeof t)for(s=t.length;i{"use strict";s.d(t,{A:()=>r});var i=s(3201);class n extends i.v{}const r=new n},1509:(e,t,s)=>{"use strict";s.r(t),s.d(t,{descriptiveEventType:()=>u,get:()=>h,send:()=>g,sendCounter:()=>E,sendEvents:()=>f,sendForm:()=>p});var i=s(7777),n=s(3380),r=s(2886),o=s(2559),a=s(4451);"undefined"==typeof CE2&&(self.CE2={}),void 0===CE2.state&&(CE2.state={});const{state:c}=CE2;let d,l;c.testModeRequests=[];const u=e=>{if(!CE2.eventTypes)return`event_type=${e}`;if(!d){d={},l=null;for(let e=0,t=Object.keys(CE2.eventTypes);el.length)&&(l=s)}}let t=d[e];const s=l.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),s&&(i.responseType=s),i.send()},g=(0,a.fY)((e=>e.includes("clock")),((e,t,s={})=>{if((0,r.ou)())return c.testModeRequests.push({url:e,data:t,options:s}),void(s.callback&&s.callback({responseText:""}));const o=s.sendBeacon&&CE2.n&&CE2.n.sendBeacon;let a=s.contentType||"text/plain";if(o&&CE2.n&&CE2.n.sendBeacon)CE2.n.sendBeacon(e,t),s.callback&&s.callback();else{if("undefined"==typeof XMLHttpRequest)return void(0,n.Yz)("XMLHttpRequest not supported");s.retries||(s.retries=0);const r=CE2.getNativeXMLHttpRequest();r.onreadystatechange=function(){if(s.callback&&4==r.readyState){if((!r.status||429===r.status||r.status>=500&&r.status<600)&&s.retry&&s.retries{g(e,t,s)}),1e3);s.callback(r)}},r.open(s.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)}})),p=(e,t,s={})=>{g(e,(e=>{let t="";const s=encodeURIComponent;return(0,r.__)(e,((e,i)=>{null!=e&&(0,o.b)(`${e}`)&&(t.length&&(t+="&"),t+=`${s(i)}=${s(e)}`)})),t})(t),CE2BH.extends(s,{contentType:"application/x-www-form-urlencoded"}))},E=(e,t)=>{if(!e||!t)return;const s={metric:e,id:t},i=CE2.data.counters_dest;g(i,CE2.Native.JSON.stringify(s),{contentType:"application/json"})},f=(e,t)=>{try{const s=[];s.push(`u=${encodeURIComponent(e.userId)}`),s.push(`st=${encodeURIComponent(e.siteId)}`),e.snapshotIds?.length&&s.push(`s=${encodeURIComponent(e.snapshotIds.join(","))}`),e.flow&&s.push(`f=${encodeURIComponent(e.flow)}`),e.sessionId&&s.push(`ss=${encodeURIComponent(e.sessionId)}`),e.pageFingerprintMd5&&s.push(`p=${encodeURIComponent(e.pageFingerprintMd5)}`),e.goalId&&s.push(`g=${encodeURIComponent(e.goalId)}`),e.abTestId&&s.push(`ab=${encodeURIComponent(e.abTestId)}`),e.pv&&s.push("pv=1"),e.t&&s.push(`t=${e.t}`),CE2.data.tracking_key&&s.push(`tk=${encodeURIComponent(CE2.data.tracking_key)}`);const i=[];for(let s=0;s{"use strict";s.d(t,{MH:()=>oe,mF:()=>ce,$K:()=>ne});const i="all",n="any",r="greater_than",o="less_than",a="equals",c="at_least",d="at_most",l="and",u={matchUrl:"matchUrl",matcher:"matcher",debug:"debug",browserAPI:"browserAPI"},h="new_or_returning",g="referrer",p="landing_page",E="visited_page",f="browser",C="device",m="country",v="os",y="screen_width",w="screen_height",S="pages_viewed",_="duration",I="var1",b="var2",k="var3",T="var4",N="var5",R="profile",A="tags",D="day_of_week",O="utm_source",$="utm_medium",P="utm_campaign",H="utm_term",U="utm_content",V="goal_code",x="click",L="form_submission",M="pixel_event",z="query_param",B={desktop:"desktop",tablet:"tablet",phone:"phone"},F="minutes";function Y(e,t){return new RegExp(`^${e.split("*").map((e=>e.split("?").map((e=>e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"))).join("."))).join(".*")}$`).test(t)}const j=[x,L,M];class W{constructor({state:e,providers:t}){this.providers=t,this.state={},this.reset(e),this.matcher=t.matcher(this.state,t)}reset(e={}){CE2BH.extends(this.state,CE2BH.extends({},{[h]:null,[g]:null,[p]:null,[E]:null,[f]:null,[C]:null,[m]:null,[y]:0,[w]:0,[S]:0,[_]:0,[I]:null,[b]:null,[k]:null,[T]:null,[N]:null,[R]:{},[A]:[],[D]:(new Date).getDay(),[O]:null,[$]:null,[P]:null,[H]:null,[U]:null,[V]:null,[x]:[],[L]:[],[M]:[],[z]:{}},W.cleanup(e))),this.debug("reset state",this.state)}static cleanup(e){const t={};if(!e)return t;for(let s=0,i=Object.keys(e);s{e.conditions.forEach(((o,a)=>{if(o.criteria!==t)return!1;const c=function(e,t){const s=e?t.find((t=>t.sync_selectors||t[`selector_for_${e}`])):null;if(!s)return null;if(t.sync_selectors)return Object.values(B).map((e=>t[`selector_for_${e}`])).find((e=>!!e))||null;return s[`selector_for_${e}`]||null}(this.state[C],o.value);if(!c)return!1;const d=s.target||s.srcElement;if(i.matchesSelector(d,c,!0)){if(!function(e,t,s){const i=e.target||e.srcElement;if(t.criteria!==L||"FORM"!==e.type)return!0;for(let e=0,n=t.value;e{e.conditions.forEach(((t,i)=>{t.value.find((e=>e.api===s.api&&(("string"!=typeof e.id||e.id.replace(/^(G|AW)-/,"")===s.id)&&("string"!=typeof e.event||e.event.toLowerCase()===s.type.toLowerCase()))))&&(this.state[t.criteria][i]=!0,r=this.match(e),this.state[t.criteria][i]=!1)}))}};return a[t]?.call(this),r}update(e){for(let t=0,s=Object.entries(e);t{const n=this.evaluate(e,t);return n&&s.push(e),n||i.push(e),n}));return l===t?n.every((e=>!0===e)):n.some((e=>!0===e))}evaluate(e,t){if(e.operator&&Array.isArray(e.conditions))return this.isMatched(e.conditions,e.operator);if(!e.value)return!1;const s=this.providers[u.matchUrl];switch(e.criteria){case h:case f:case C:case m:case v:case D:case A:case I:case b:case k:case T:case N:case V:{const t=Array.isArray(e.value)?e.value:[e.value];if(e.comparison===i){const s=Array.isArray(this.state[e.criteria])?this.state[e.criteria]:[this.state[e.criteria]];return JSON.stringify(t.sort())===JSON.stringify(s.sort())}const s=t.includes(this.state[e.criteria]);return e.comparison===n?!0===s:!1===s}case O:case $:case P:case H:case U:{const t=Array.isArray(e.value)?e.value:[e.value],s=Array.isArray(this.state[e.criteria])?this.state[e.criteria]:[this.state[e.criteria]];if(e.comparison===i)return t.every((e=>s.some((t=>Y(e,t)))));const r=t.some((e=>s.some((t=>Y(e,t)))));return e.comparison===n?!0===r:!1===r}case _:{const{count:t,unit:s}=e.value;let i=t;return s===F&&(i=60*t),e.comparison===c?i<=this.state[e.criteria]:e.comparison===d?i>=this.state[e.criteria]:e.comparison===r?ithis.state[e.criteria]}case y:case w:case S:return e.comparison===a?e.value===this.state[e.criteria]:e.comparison===r?e.valuethis.state[e.criteria];case E:case p:case g:{const t=e.value.map((t=>s(t,this.state[e.criteria])));return e.comparison===n?t.includes(!0):t.every((e=>!1===e))}case x:case L:case M:return!!this.state[e.criteria]?.length&&!0===this.state[e.criteria][t];case z:{const t=this.state[e.criteria]?.[e.name];return void 0!==t&&e.value.some((t=>Y(t,this.state[e.criteria]?.[e.name])))}}}debug(...e){this.providers.debug(...e)}}function K(e){const t=e.filter((e=>"object"!=typeof e)),s=e.filter((e=>"object"==typeof e));console.log("CE: [SegmentTracker]",t.join(" "),...s,"\n")}function q(){return{[u.debug]:(...e)=>{window.CE_DEBUG&&K(e)},[u.matchUrl]:()=>!1,[u.matcher]:(...e)=>new G(...e),[u.browserAPI]:{matchesSelector(e,t,s){let i=t;return s&&(i+=`,${t} *`),e.matches(i)}}}}var J=s(2886),Q=s(6149),X=s(3380);const Z="segment",ee="segment-no-op",te="~";let se;function ie(){const{clock:e}=CE2,{visitorTracker:t}=CE2,s=new URL(window.location.href).searchParams,{landingUrl:i,userData:n,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:0,duration:0,var1:n[0],var2:n[1],var3:n[2],var4:n[3],var5:n[4],profile:{},tags:CE2.sessionTags||[],day_of_week:(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:s.get("code"),browser:e.getBrowser(),country:e.getCountry(),query_param:(0,J.q5)(window.location.search.substring(1))||{}}}function ne(){se&&se.reset(ie())}function re(){return function({state:e,segments:t,providers:s}){return new W({state:e,segments:t,providers:CE2BH.extends({},q(),s)})}({state:ie(),providers:{matchUrl({url:e,flags:t},s){let i=t?t.join():"";return e[0]===te?(e=e.substring(0),i+="r"):e.includes("*")&&(i+="*"),(0,Q.$)(e.toLowerCase(),s,i)},debug(){}}})}function oe(){return se||(se=re())}function ae({resourceType:e,resourceId:t,eventName:s,event:i}){if(!e||!t)return!1;const n=(CE2.data.segments||[]).filter((s=>(s.resources||[]).find((s=>s.resource_type===e&&String(s.resource_id)===String(t))))),r=[];for(let e=0;e0}function ce({resourceType:e,resourceId:t,eventName:s,event:i},n){if(oe().update({visited_page:window.location.href}),(0,J.jI)(Z))return ae({resourceType:e,resourceId:t,eventName:s,event:i});if((0,J.jI)(ee)){const r=ae({resourceType:e,resourceId:t,eventName:s,event:i}),o=n();return r!==o&&(0,X.aQ)(ee,{url:window.location.href,stateUrl:oe().state.visited_page,resourceType:e,resourceId:t,eventName:s,segmentMatched:`${r}`}),o}return n()}},2559:(e,t,s)=>{"use strict";s.d(t,{b:()=>n,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}}(),n=(e,t)=>{const s=e.replace(i.strip,"");return t?s.replace(i.whitespace," "):s}},8773:(e,t,s)=>{"use strict";s.d(t,{j:()=>n});var i=s(2886);const n=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)}};n.pattern=/^\s*([\S]+?:\/\/)?([^\s\/]+?@)?([^:\/\?\#]+)?(\:\d+)?(\/?[^#\?\s]*)?([\?][^#\s]*)?([#]\S+)?/i,n.prototype={initWithString(e){const t=n.pattern.exec(e),[s,r,o,a,c,d,l,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))),d?this.path=(0,i.x4)(d):this.host&&(this.path="/")):this.path=(0,i.x4)((a||"")+(d||"")),l&&(this.qs=(0,i.q5)(l.substr(1)),this.query=l.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 n(this);let{path:s}=this;return"string"==typeof e&&(e=new n(e)),e.isURL()?new n(e):(e.isAbsolute()?s=e.path:s?(s=s.split("/"),s.pop(),s=e.path?s.concat(e.path.split("/")):s,s=s.join("/")):s=this.isURL()?`/${e.path}`:e.path,t.path=s,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,s=0;do{if(t=e.length-1,".."==e[s+1])""==e[s]&&0==s?e.splice(s+1,1):(e.splice(s,2),s-=1);else if("."==e[s]){if(0==t)break;e.splice(s,1)}else s++}while(s<=t);this.path=e.join("/")},simplify(e){let t;const s=[];if(t="file"==this.protocol?this:CE2.ie?e?e.join(this):this:(e=e||new n(CE2.d.baseURI)).join(this),t.normalize(),t.host&&s.push(t.host.replace(/^(www|m)\./,"")),null!=t.port&&s.push(`:${t.port}`),"/"==t.path||/^\/(default|home|index)\b[^\/]*$/i.test(t.path)?(t.qs||t.hash)&&s.push("/"):s.push(t.path),t.qs){const e=[];(0,i.__)(t.qs,((t,s)=>{t&&!/(^sess|^sid$|^phpsessid$|^jsessionid$|^__VIEWSTATE$)/i.test(s)&&e.push(`${encodeURIComponent(s)}=${encodeURIComponent(t)}`)})),e.length&&s.push(`?${e.join("&")}`)}return t.hash&&s.push(`#${t.hash}`),s.join("")},sameOrigin(e){return!!e&&("string"==typeof e&&(e=new n(e)),null==e.host||e.host==this.host&&e.port==this.port&&e.protocol==this.protocol)}}},6149:(e,t,s)=>{"use strict";s.d(t,{$:()=>a,e:()=>c});var i=s(2886),n=s(8773),r=s(4808);const o=function(e,t,s=!1){e&&e(t,s)},a=function(e,t,s,a,c,d){const{stringify:l}=CE2.Native.JSON,u=/(default|index)($|\..*)/i;let h,g,p,E,f,C,m,v=!1;if(""===e&&""===t)return!0;if(!e||!t)return!1;if(a&&a.indexOf(CE2.clock.getDeviceType())<0)return o(d,`device=${CE2.clock.getDeviceType()} allowed=${l(a)}`,m),!1;if(/n/.test(s=s||""))return m=e.trim()===t.trim(),o(d,`name=${t} allowed=${e}`,m),m;if(/go/.test(s)){const s=e.split(".");return m=t&&t[s[1]]==s[2],o(d,`googleOptimize=${l(t)} allowed=${l(e)}`,m),m}if(/\*/.test(s))try{let s;const i=/^https?:\/\/([^\/]+)\//.exec(e);if(i&&i[1]&&!i[1].includes("*")){const e=new CE2.Native.URL(t);e.hostname.startsWith("www.")?(e.hostname=e.hostname.replace(/^www\./,""),s=e.href):(e.hostname=`www.${e.hostname}`,s=e.href)}let n=e.replace(/[.+^$?{}()|[\]\\]/g,"\\$&");const r=n.includes("://");return n=new RegExp(`^${r?"":"https?://(www.)?"}${n.replace(/\*/g,"(.*?)")}$`,"i"),m=n.test(t)||s&&n.test(s),o(d,`url=${t} allowedwildcard=${e}`,m),m}catch(s){return(0,r.A)(s),o(d,`url=${t} allowedwildcard=${e}`),!1}if(/[re]/.test(s))try{return m=RegExp(e,"i").test(t),m||(m=RegExp(e,"i").test(decodeURI(t))),o(d,`url=${t} allowedregex=${e}`,m),m}catch(s){return(0,r.A)(s),o(d,`url=${t} allowedregex=${e}`,s),!1}e=new n.j(e&&e.toLowerCase?e.toLowerCase():e);const y=new n.j(t.toLowerCase());if(/h/.test(s)&&e.protocol!=y.protocol)return o(d,`protocol=${y.protocol} allowed=${e.protocol}`),!1;const{host:w}=y,S=w.replace(/^(www|m)\./,""),_=e.host,I=e.ihost;if(/w/.test(s)&&w!=_&&w!=I)return o(d,`host=${w} allowed=${I||_}`),!1;const b=_.replace(/^(www|m)\./,""),k=I&&I.replace(/^(www|m)\./,"");if(S!=b&&S!=k)return o(d,`host=${w} allowed=${k||b}`),!1;g=e.path?e.path:"/";const{path:T}=y;if(g!=T){if(/\//.test(s))return o(d,`path=${T} allowed=${g}`),!1;for(p=g.split("/"),h=T.split("/"),f=0,C=Math.max(p.length,h.length);f{if(N[t]!==e)return v=!0,!1})),v)return o(d,`querystring=${l(N)} allowed=${l(R)}`),!1;if(E&&((0,i.__)(N,((e,t)=>{if(e!=R[t])return v=!0})),v))return o(d,`querystring=${l(N)} allowed=strict|${l(R)}`),!1;const A=e.hash||"",D=y.hash||"";return E=/#/.test(s),(E||A)&&A!=D?(o(d,`hash=${D} allowed=${A}`),!1):(o(d,`url=${t}`,!0),!0)},c=e=>{let t,s;if(e&&e.length)for(t=0;s=e[t++];)if(a(s.u,CE2.w.location.href,s.o))return!0;return!1}},2886:(e,t,s)=>{"use strict";s.d(t,{Ap:()=>l,B5:()=>D,DQ:()=>j,Ep:()=>b,GE:()=>O,GO:()=>B,I3:()=>N,IS:()=>U,Jl:()=>r.O,KT:()=>g,LB:()=>m,OR:()=>v,Qb:()=>R,R2:()=>w,Rc:()=>x,Ri:()=>y,UO:()=>A,Wb:()=>T,Xe:()=>a,Yj:()=>_,_3:()=>C,__:()=>h,ch:()=>g,ex:()=>H,hZ:()=>E,ib:()=>P,jI:()=>F,jM:()=>f,ne:()=>M,o:()=>S,oI:()=>z,ou:()=>c,pQ:()=>p,q5:()=>u,uh:()=>I,x4:()=>d});var i=s(2559),n=s(3380),r=s(2759),o=s(4451);const a=e=>{if(!e)return;CE2.state.ignoredElements.push(e);const{tracker:t}=CE2;t&&t.ignoredElements.push(e)},c=function(){return"undefined"!=typeof CE_TEST_MODE&&CE_TEST_MODE},d=e=>{try{return decodeURIComponent(e)}catch(t){return CE2.w.unescape(e)}},l=e=>{if(CE2.Native.Array.isArray(e))for(let t=0;t{if(null==e||/^\s*$/.test(e))return null;const s={},i=e.replace(/\+/g," ").split(t||"&");let n,r,o=null,a=null,c=null;const l=Object.getOwnPropertyNames(Object.prototype);for(n=0,r=i.length;n{if(!e)return;let i;if("number"==typeof e.length&&"function"==typeof e.concat)for(let n=0,r=e.length;n{e.addEventListener(t,s,!0)},p=(e,t,s)=>{e.removeEventListener(t,s,!0)},E=(e,t)=>{(e=parseInt(e,10))>=1&&e<=5&&(CE2.state.userData[e]=String(t));const{tracker:s}=CE2;s&&s.sendCustomUserData&&s.sendCustomUserData()},f=(...e)=>{const{tracker:t}=CE2;if(t)return t.click(...e)},C=e=>null==e.r||(!1!==e.r&&!0!==e.r&&(Math.random()>=1/e.r?((0,n.Yz)(`Snapshot ${e.id} not selected due to snapshot sampling: ${e.r}`),e.r=!1):e.r=!0),e.r),m=(e,t,s,i)=>{if(!0===CE2.data.dnt)return!1;if(i&&void 0!==e.external)try{if(!0===e.external.InPrivateFilteringEnabled())return!0}catch(e){}const n=t.doNotTrack||s.doNotTrack||s.msDoNotTrack||e.doNotTrack;return"1"==n||"yes"==n},v=function(){try{return u(o.Ew.read(),/;\s*/g)||{}}catch(e){return{}}},y=function(e){return v()[e]},w=function(){const{w:e}=CE2;if(!CE2.state._tlDomain){const t=CE2.w.location.hostname;if(i.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 s=t.split(".");for(e=s.length-1;e>=0;e--){const t=`.${s.slice(e).join(".")}`;if(I("_ce.gtld",t)){CE2.state._tlDomain=t;break}}}}return CE2.state._tlDomain},S=function(e,t,s){s||(s={});const i=encodeURIComponent,n=s.path||"/",r=s.domain||w();let a=null;s.expires?a=s.expires:s.expiresIn?a=new Date((new Date).getTime()+1e3*s.expiresIn):s.expiresInDays&&(a=new Date((new Date).getTime()+86400*s.expiresInDays*1e3)),null==t&&(a=new Date(0),t="");const c=[`${i(e)}=${i(t)}`];c.push(`path=${n}`),CE2.w.parent!==CE2.w&&"https:"===CE2.w.location.protocol?(c.push("SameSite=None"),c.push("Secure")):(c.push("SameSite=Strict"),CE2.data&&CE2.data.use_secure_cookies&&c.push("Secure")),r&&c.push(`domain=${r}`),a&&c.push(`expires=${a.toUTCString()}`),o.Ew.write(c.join(";"),{key:e,value:`${i(e)}=${i(t)};`})},_=function(e,t){S(e,null,t)},I=(e,t)=>{S(e,"1",{domain:t});const s=o.Ew.read();return!!(s&&s.indexOf&&s.indexOf(e)>-1)&&(_(e,{domain:t}),!0)},b=()=>new CE2.URL((()=>{let{referrer:e}=CE2.d;try{!e&&CE2.d.location.ancestorOrigins&&([e]=CE2.d.location.ancestorOrigins)}catch(e){(0,n.Yz)("Referer error",e)}return e})()).getDomain(),k=e=>{const t=CE2.d.createElement("a");return t.href=`http://${e}/`,t.hostname},T=e=>{let t,s;for(s=0;t=e[s++];)if(n=k(t.name),r=CE2.w.location.hostname,i.re.ipHost.test(n)?n===r:r.toLowerCase().endsWith(n.toLowerCase())||r.toLowerCase().endsWith(`.${n.toLowerCase}`))return t;var n,r},N=function(e,t,s=!1){if("undefined"==typeof CE_USER_COMMON_SCRIPT_URL)return void(0,n.Yz)("Inline Worker is not supported: CE_USER_SCRIPT_URL not defined");if("undefined"==typeof CE_USER_THIRDPARTY_SCRIPT_URL)return void(0,n.Yz)("Inline Worker is not supported: CE_USER_THIRDPARTY_SCRIPT_URL not defined");const i=[],r=["CE_DEBUG","CE_TEST_MODE"];for(let e=0;e{}),!0);e?(e.terminate(),CE2.state._inws=!0):CE2.state._inws=!1}catch(e){CE2.state._inws=!1}return CE2.state._inws},A=function(e,t,s=!1){try{return N(e,t,s)}catch(e){(0,n.Yz)(`Inline Worker is not supported: ${e.message}`)}},D=(e,t,s)=>(s&&(t+=`,${t} *`),e.matches(t)),O=function(e){if("undefined"==typeof window)return CE2.s[e];try{const t="ce_proto_iframe";let s=document.getElementById(t);return s||(s=document.createElement("iframe"),s.id=t,s.title="CrazyEgg Tracking iframe",s.style.display="none",document.documentElement.appendChild(s)),s.contentWindow[e]}catch(t){return(0,n.Yz)("Clean Prototype error",t),window[e]}},$=function(e){return!!e&&/\{\s+\[native code\]/.test(Function.prototype.toString.call(e))},P=function(e){let t=Object.getOwnPropertyNames(e);for(let s=0,i=t;s{const{tracker:s}=CE2;s&&s.customEvent&&s.customEvent(e,t)},U=e=>CE2.tracker?.[e];let V;const x=(e=null)=>{V=e||performance.now()},L=["utm_source","utm_medium","utm_term","utm_content","utm_campaign"],M=e=>{let t,s=!1;const i=[];if(t=new CE2.URL(e||window.location.href).qs)for(let e=0;e{"use strict";s.d(t,{mc:()=>h,hh:()=>f,vJ:()=>E,Ew:()=>p,mr:()=>d,VK:()=>l,fY:()=>u});var i=s(3201),n=s(3380);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 s=t.target.result;e(s)},t.onerror=t=>{(0,n.Yz)(`error opening database ${t.target?.errorCode}`),e()}}))}async readAll(){if(this.dbPromise)return this.dbPromise.then((e=>e?new Promise(((t,s)=>{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,n.Yz)(`error opening database ${e.target.errorCode}`),s(e.target)}})):[]))}async store(e){if(this.dbPromise)return this.dbPromise.then((t=>{if(t)return new Promise(((s,i)=>{const r=t.transaction([this.storeName],"readwrite"),o=r.objectStore(this.storeName);r.onsuccess=e=>{s(e.target.result)},r.onerror=function(e){(0,n.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,s)=>{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,n.Yz)(`error clearing store ${e.target.errorCode}`),s(e.target)}}))}))}}const o="cec",a={STANDARD:"standard",DELAYED:"delayed"},c=new i.v;function d(){return Object.values(a).includes(CE2.w?.CE_COOKIE_MODE)?CE2.w.CE_COOKIE_MODE:a.STANDARD}function l(){if(d()===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],s=2===e.length?e[1]:e[0];return(...e)=>"function"==typeof t&&s&&t(...e)||l()?s(...e):void c.once("consent",(t=>{t&&s(...e)}))}class h{constructor(e){this.storeName=e,this.state=[],c.on("consent",(e=>{e&&this.sync()}))}async readAll(){return l()?this.instance().readAll():this.state}async store(e){return l()?this.instance().store(e):this.state=e}async clear(){l()?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 g{constructor(e){c.on("consent",(e=>{e&&this.sync()})),this.state={},this.prototype=e}write(e,t){l()?this.prototype.setItem(e,t):this.state[e]=t}read(e){return l()?this.prototype.getItem(e):this.state[e]}remove(e){l()?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 p=new class{constructor(){CE2BH.defineProperty(this,"currentValue",{}),CE2BH.defineProperty(this,"currentFullValue",{})}write(e,{key:t,value:s}){return l()?CE2.d.cookie=e:s.endsWith("=;")?(delete this.currentFullValue[t],void delete this.currentValue[t]):(this.currentFullValue[t]=e,void(this.currentValue[t]=s))}read(){return l()?CE2.d.cookie:Object.values(this.currentValue).join(" ")}sync(){Object.values(this.currentFullValue).forEach((e=>{CE2.d.cookie=e})),this.currentFullValue={},this.currentValue={}}};function E(e){CE2.state.consent=!!e,c.emit("consent",!!e),CE2.state.consent?(p.write(`${o}=1;`,{key:o,value:"1"}),p.sync()):(p.write(`${o}=;max-age=31536000;`,{key:o,value:""}),p.sync()),(0,n.Yz)(`[Loading] Cookie consent=${CE2.state.consent}`)}function f(e){return new g(e)}},3487:(e,t,s)=>{"use strict";s.d(t,{CT:()=>o,Gw:()=>a,H$:()=>h,MN:()=>d,og:()=>g,ur:()=>u,uw:()=>c});var i=s(1789);const n={intToStr:{},strToInt:{}},r=[],o=e=>"string"==typeof e?e:n&&n.intToStr?n.intToStr[e]:void 0,a=e=>{"number"==typeof e.nid&&"string"==typeof e.id&&(e.nid in n.intToStr||(n.intToStr[e.nid]=e.id,n.strToInt[e.id]=e.nid))},c=(e,t,s)=>i.r.nextGoalConversionValue(e,t,s),d=e=>i.r.setCurrency(e),l=(e,t,s,i)=>{const r="number"==typeof(o=t)?o:n&&n.strToInt?n.strToInt[o]:void 0;var o;"number"==typeof r?e.goalConversion({goalId:r,value:s,triggerId:i||r}):e.codeConversion(t,s)},u=e=>{let t;for(;t=r.shift();)t.dynamic?(delete t.dynamic,e.dynamicGoalConversion(t)):l(e,...t)},h=(e,t,s)=>{CE2.tracker?l(CE2.tracker,e,t,s):r.push([e,t,s])},g=({name:e,value:t}={})=>{CE2.tracker?CE2.tracker.dynamicGoalConversion({name:e,value:t}):r.push({dynamic:!0,name:e,value:t})}},1789:(e,t,s)=>{"use strict";s.d(t,{r:()=>d});var i=s(8856),n=s(8e3);const r="gtrk.cnv",o="gtrk.la",a="gtrk.ngv",c="gtrk.c",d={get:e=>n.i.get(e),set:(e,t)=>n.i.set(e,t),del:e=>n.i.del(e),reset(){this.del(r),this.del(o)},alive(){this.isExpired()&&this.reset(),this.set(o,(+new Date).toString(36))},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 s=this.getConvertedIds();s.includes(e)||s.includes(t)||(i.A.emit("complete",{goal:{id:e}}),s.push(e||t),this.set(r,s.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)},nextGoalConversionValue(e,t,s){let i=this.get(a);i=i?CE2.Native.JSON.parse(i):{};const n=i[e]&&i[e].findIndex((e=>e.triggerId==s));n&&!t?i[e][n].splice(n,1):Number.isInteger(n)&&t?i[e][n]={value:t,triggerId:s}:t&&(i[e]||(i[e]=[]),i[e].push({value:t,triggerId:s})),this.set(a,CE2.Native.JSON.stringify(i))},getNextGoalConversionValue(e,t=null){let s=this.get(a);s=s?CE2.Native.JSON.parse(s):{};let i=s[e]&&s[e].findIndex((e=>e.triggerId==t)),n=s[e]&&s[e][i];n||(i=s[e]&&s[e].findIndex((e=>!e.triggerId)),n=s[e]&&s[e][i]);const r=this.getCurrency();if(n&&!n.value.currency&&r&&(n.value.currency=r),s[e]&&(s[e].splice(i,1),0===s[e].length&&delete s[e]),this.set(a,CE2.Native.JSON.stringify(s)),n)return n.value}}},2080:(e,t,s)=>{"use strict";s.d(t,{O:()=>o,s:()=>r});var i=s(7471),n=s(3380);function r(e){if("string"!=typeof e)return NaN;const t=e.lastIndexOf(","),s=e.lastIndexOf(".");let i,n=e.replace(/[^0-9.,]/g,"");if(t>-1&&s>-1)i=t>s?",":".";else if(t>-1||s>-1){const e=t>-1?",":".",s=n.split(e);2===s.length&&s[1].length<3&&(i=e)}return i?(n=n.replace(new RegExp(`[^0-9\\${i}]`,"g"),""),n=n.replace(new RegExp(`\\${i}`),".")):n=n.replace(/[^0-9]/g,""),parseFloat(n)}class o{constructor(e,t=[]){this.goals=(e||[]).filter((e=>{if(!e.triggers)return!1;for(let t=0,s=e.triggers;t{const i=r(t.innerText);if("number"!=typeof i||Number.isNaN(i))return;const a={worth:i,currency:c};(0,n.Yz)("[Goals] Goal target value detected",{goal:s,trigger:o,original:t.innerText,value:a}),a&&e({type:"goalValue",value:a,goal:s,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 n(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 s=i();s?.increaseSessionWorth(e,t)}function a(e,t){const s=i();s?.decreaseSessionWorth(e,t)}function c(e,t){const s=i();s?.setSessionWorth(e,t)}s.d(t,{LG:()=>c,LV:()=>a,SY:()=>r,ls:()=>n,vn:()=>o})},9910:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var i=s(7866),n=s(1509);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=2e3}makeId(){return(0,i.M4)(0,1)}newEvent(e,t={}){const s=t.attributes||[];for(let e=0;e{this.processBuffer({scheduleTimeout:e.scheduleTimeout,sendBeacon:e.sendBeacon})}),this.bufferTimeoutInterval))}}},7471:(e,t,s)=>{"use strict";s.d(t,{DM:()=>o,V4:()=>r,_9:()=>c});var i=s(6677),n=s(6149);const r=(e,t,{debugCallback:s}={})=>{let i="";return e.indexOf("*")>-1&&(i="*"),(0,n.$)(e,t,i,null,null,s)},o={visited_page(e,{debugCallback:t}={}){const s=CE2.w.location.href;return r(e,s,{debugCallback:t})},device:e=>(0,i.D)(e),referrer(e,{debugCallback:t}={}){const s=CE2.d.referrer;return s===e&&""===s||r(e,s,{debugCallback:t})}},a=(e,{debugCallback:t,operand:s}={})=>{for(let i=0,n=e.values;i>16)+(t>>16)+(s>>16)<<16|65535&s}function o(e,t,s,i,n,o){return r((a=r(r(t,e),r(i,o)))<<(c=n)|a>>>32-c,s);var a,c}function a(e,t,s,i,n,r,a){return o(t&s|~t&i,e,t,n,r,a)}function c(e,t,s,i,n,r,a){return o(t&i|s&~i,e,t,n,r,a)}function d(e,t,s,i,n,r,a){return o(t^s^i,e,t,n,r,a)}function l(e,t,s,i,n,r,a){return o(s^(t|~i),e,t,n,r,a)}function u(e,t){var s,i,n,o,u;e[t>>5]|=128<>>9<<4)]=t;var h=1732584193,g=-271733879,p=-1732584194,E=271733878;for(s=0;s>5]>>>t%32&255);return s}function g(e){var t,s=[];for(s[(e.length>>2)-1]=void 0,t=0;t>5]|=(255&e.charCodeAt(t/8))<>>4&15)+i.charAt(15&t);return n}function E(e){return unescape(encodeURIComponent(e))}function f(e){return function(e){return h(u(g(e),8*e.length))}(E(e))}function C(e,t){return function(e,t){var s,i,n=g(e),r=[],o=[];for(r[15]=o[15]=void 0,n.length>16&&(n=u(n,8*e.length)),s=0;s<16;s+=1)r[s]=909522486^n[s],o[s]=1549556828^n[s];return i=u(r.concat(g(t)),512+8*t.length),h(u(o.concat(i),640))}(E(e),E(t))}function m(e,t,s){return t?s?C(t,e):function(e,t){return p(C(e,t))}(t,e):s?f(e):p(f(e))}void 0===(i=function(){return m}.call(t,s,t,e))||(e.exports=i)}()}},e=>{var t,s=(t=6119,e(e.s=t)),i=CE2="undefined"==typeof CE2?{}:CE2;for(var n in s)i[n]=s[n];s.__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)}})});