(function(w,d){zaraz.debug=(dh="")=>{document.cookie=`zarazDebug=${dh}; path=/`;location.reload()};window.zaraz._al=function(bA,bB,bC){w.zaraz.listeners.push({item:bA,type:bB,callback:bC});bA.addEventListener(bB,bC)};zaraz.preview=(bD="")=>{document.cookie=`zarazPreview=${bD}; path=/`;location.reload()};zaraz.i=function(U){const V=d.createElement("div");V.innerHTML=unescape(U);const W=V.querySelectorAll("script");for(let X=0;X<W.length;X++){const Y=d.createElement("script");W[X].innerHTML&&(Y.innerHTML=W[X].innerHTML);for(const Z of W[X].attributes)Y.setAttribute(Z.name,Z.value);d.head.appendChild(Y);W[X].remove()}d.body.appendChild(V)};zaraz.f=async function(ch,ci){const cj={credentials:"include",keepalive:!0,mode:"no-cors"};if(ci){cj.method="POST";cj.body=new URLSearchParams(ci);cj.headers={"Content-Type":"application/x-www-form-urlencoded"}}return await fetch(ch,cj)};for(;zaraz.deferred.length;)zaraz.deferred.pop()();Object.defineProperty(zaraz.deferred,"push",{configurable:!0,enumerable:!1,writable:!0,value:function(...di){let dj=Array.prototype.push.apply(this,di);for(;zaraz.deferred.length;)zaraz.deferred.pop()();return dj}});addEventListener("onpagehide"in self?"pagehide":"unload",(function(){for(;zaraz.deferred.length;)zaraz.deferred.pop()()}));window.zaraz._p=async cc=>new Promise((cd=>{if(cc){cc.e&&cc.e.forEach((ce=>{try{new Function(ce)()}catch(cf){console.error(`Error executing script: ${ce}\n`,cf)}}));Promise.allSettled((cc.f||[]).map((cg=>fetch(cg[0],cg[1]))))}cd()}));zaraz.pageVariables={};zaraz.__zcl={};zaraz.track=async function(bH,bI,bJ){return new Promise(((bK,bL)=>{const bM={name:bH,data:{}};for(const bN of[localStorage,sessionStorage])Object.keys(bN||{}).filter((bP=>bP.startsWith("_zaraz_"))).forEach((bO=>{try{bM.data[bO.slice(7)]=JSON.parse(bN.getItem(bO))}catch{bM.data[bO.slice(7)]=bN.getItem(bO)}}));Object.keys(zaraz.pageVariables).forEach((bQ=>bM.data[bQ]=JSON.parse(zaraz.pageVariables[bQ])));Object.keys(zaraz.__zcl).forEach((bR=>bM.data[`__zcl_${bR}`]=zaraz.__zcl[bR]));bM.data.__zarazMCListeners=zaraz.__zarazMCListeners;
//
bM.data={...bM.data,...bI};bM.zarazData=zarazData;fetch("/cdn-cgi/zaraz/t",{credentials:"include",keepalive:!0,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(bM)}).catch((()=>{
//
return fetch("/cdn-cgi/zaraz/t",{credentials:"include",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(bM)})})).then((function(bT){zarazData._let=(new Date).getTime();bT.ok||bL();return 204!==bT.status&&bT.json()})).then((async bS=>{await zaraz._p(bS);"function"==typeof bJ&&bJ()})).finally((()=>bK()))}))};zaraz.set=function(bU,bV,bW){try{bV=JSON.stringify(bV)}catch(bX){return}prefixedKey="_zaraz_"+bU;sessionStorage&&sessionStorage.removeItem(prefixedKey);localStorage&&localStorage.removeItem(prefixedKey);delete zaraz.pageVariables[bU];if(void 0!==bV){bW&&"session"==bW.scope?sessionStorage&&sessionStorage.setItem(prefixedKey,bV):bW&&"page"==bW.scope?zaraz.pageVariables[bU]=bV:localStorage&&localStorage.setItem(prefixedKey,bV);zaraz.__watchVar={key:bU,value:bV}}};for(const{m:bY,a:bZ}of zarazData.q.filter((({m:b_})=>["debug","set"].includes(b_))))zaraz[bY](...bZ);for(const{m:ca,a:cb}of zaraz.q)zaraz[ca](...cb);delete zaraz.q;delete zarazData.q;zaraz.fulfilTrigger=function(br,bs,bt,bu){zaraz.__zarazTriggerMap||(zaraz.__zarazTriggerMap={});zaraz.__zarazTriggerMap[br]||(zaraz.__zarazTriggerMap[br]="");zaraz.__zarazTriggerMap[br]+="*"+bs+"*";zaraz.track("__zarazEmpty",{...bt,__zarazClientTriggers:zaraz.__zarazTriggerMap[br]},bu)};window.dataLayer=w.dataLayer||[];zaraz._processDataLayer=cF=>{for(const cG of Object.entries(cF))zaraz.set(cG[0],cG[1],{scope:"page"});if(cF.event){if(zarazData.dataLayerIgnore&&zarazData.dataLayerIgnore.includes(cF.event))return;let cH={};for(let cI of dataLayer.slice(0,dataLayer.indexOf(cF)+1))cH={...cH,...cI};delete cH.event;cF.event.startsWith("gtm.")||zaraz.track(cF.event,cH)}};const cE=w.dataLayer.push;Object.defineProperty(w.dataLayer,"push",{configurable:!0,enumerable:!1,writable:!0,value:function(...cJ){let cK=cE.apply(this,cJ);zaraz._processDataLayer(cJ[0]);return cK}});dataLayer.forEach((cL=>zaraz._processDataLayer(cL)));zaraz._cts=()=>{zaraz._timeouts&&zaraz._timeouts.forEach((cM=>clearTimeout(cM)));zaraz._timeouts=[]};zaraz._rl=function(){w.zaraz.listeners&&w.zaraz.listeners.forEach((cN=>cN.item.removeEventListener(cN.type,cN.callback)));window.zaraz.listeners=[]};history.pushState=function(){try{zaraz._rl();zaraz._cts&&zaraz._cts()}finally{History.prototype.pushState.apply(history,arguments);setTimeout((()=>{zarazData.l=d.location.href;zarazData.t=d.title;zaraz.pageVariables={};zaraz.__zarazMCListeners={};zaraz.track("__zarazSPA")}),100)}};history.replaceState=function(){try{zaraz._rl();zaraz._cts&&zaraz._cts()}finally{History.prototype.replaceState.apply(history,arguments);setTimeout((()=>{zarazData.l=d.location.href;zarazData.t=d.title;zaraz.pageVariables={};zaraz.track("__zarazSPA")}),100)}};zaraz._c=ey=>{const{event:ez,...eA}=ey;zaraz.track(ez,{...eA,__zarazClientEvent:!0})};zaraz._syncedAttributes=["altKey","clientX","clientY","pageX","pageY","button"];zaraz.__zcl.track=!0;d.addEventListener("visibilitychange",(dk=>{zaraz._c({event:"visibilityChange",visibilityChange:[{state:d.visibilityState,timestamp:(new Date).getTime()}]},1)}));zaraz.__zcl.visibilityChange=!0;zaraz.__zarazMCListeners={"google-analytics_v4_fd20":["visibilityChange"]};zaraz._p({"e":["(function(w,d){w.zarazData.executed.push(\"Pageview\");})(window,document)"]})})(window,document);