//15.229.4+fix-36b17b73-es2019 2026-06-09T20:08:11.491Z (3f50d356c2adf) var CS_CONF={"collectionEnabled":true,"projectId":451116,"status":1,"hostnames":[""],"crossDomainTracking":0,"crossDomainSingleIframeTracking":0,"consentRequired":0,"allowSubdomains":1,"visitorCookieTimeout":34164000000,"sampleRate":100,"replayRecordingRate":100,"validationRate":10,"lastTrackingDraw":null,"trackerDomain":"c.ba.contentsquare.net","recordingDomain":"r.contentsquare.net","useMalkaPipeline":1,"malkaQuotaServiceDomain":"q.ba.contentsquare.net","malkaRecordingDomain":"k.ba.contentsquare.net","ed":"l.contentsquare.net/log/web","eMerchandisingEnabled":0,"mouseMoveHeatmapEnabled":1,"jsErrorsEnabled":1,"customErrorsEnabled":0,"jsCustomErrorsEnabled":0,"apiErrorsEnabled":0,"customHashIdEnabled":0,"recordingEncryptionEnabled":0,"recordingEncryptionPublicKey":null,"recordingEncryptionPublicKeyId":0,"secureCookiesEnabled":1,"triggerSessionReplayEnabled":0,"triggerSessionReplayRegex":null,"dynamicIdRegex":null,"whitelistedAttributes":null,"replayRecordingUnmaskedUrlRegex":null,"replayRecordingUnmaskedUrlRegexRules":[],"replayRecordingMaskedUrlRegexRules":[{"operator":"exact","value":"app.maxlife.com","ignoreQueryParams":1,"ignoreURIFragments":1,"ignoreCaseSensitivity":1,"maskMedia":1}],"replayRecordingMaskedUrlRegex":null,"anonymisationMethod":"replayRecordingMaskedUrlRegexRules","anonymizeDigits":true,"tagDeploymentMode":"CONTENTSQUARE","experimental":null,"iframesTracking":0,"textVisibilityEnabled":0,"cookielessTrackingEnabled":0,"malkaUrlEnabled":0,"malkaEtrEnabled":0,"pathComputationRules":{},"asyncSerializerEnabled":1,"pendingInactivityTimeout":5000,"accessibilityEnabled":0,"taskSchedulerOptions":{"enabled":1},"uxaDomain":"app.contentsquare.com","webviewsTrackingEnabled":0,"staticResourceManagerDomain":"srm.ba.contentsquare.net","useStaticResourceManager":1,"performanceTimingOptions":{"withResource":false,"withNavigation":false},"replayConsentRequiredForSession":0,"displayAdOptions":null,"implementations":[{"template":{"name":"ArtificialPageview","args":{}},"triggers":[{"name":"HistoryChange","args":{"listeners":"popstate, pushState, replaceState, hashchange","useDebounce":"no","window":400}}]}],"eventsApiEnabled":0,"dynamicConfDomain":"t.contentsquare.net/settings","collectHierarchy":0,"collectSubmit":0,"collectTargetText":1,"tagVerificationDomain":"tcvsapi.contentsquare.com","tagVerificationEnabled":true,"startMode":1,"quotas":[{"quotaType":"ANALYTICS","value":1},{"quotaType":"RECORDING","value":0.05}],"trackingCodeVerified":true}; window.CSCurrentScript = document.currentScript; (async function(_d, _w) { const _yieldToMainThread = typeof scheduler !== "undefined" && scheduler?.yield ? scheduler.yield.bind(scheduler) : () => new Promise(resolve => setTimeout(resolve, 0)); await _yieldToMainThread(); (()=>{var rg=Object.defineProperty;var ng=(i,r,t)=>r in i?rg(i,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[r]=t;var ai=(i,r,t)=>ng(i,typeof r!="symbol"?r+"":r,t);var og={857:(i,r,t)=>{t.d(r,{_R:()=>C,al:()=>N,Jx:()=>H,sp:()=>W});let e=null,s=null;function n(){var _t,Ft;let zt=(_t=_d.getElementsByTagName("cs-native-frame-holder")[0])!==null&&_t!==void 0?_t:_d.createElement("cs-native-frame-holder");if(zt.contentWindow&&csNodeisConnected.apply(zt))return zt.contentWindow;zt.setAttribute("hidden","");let ii=((Ft=zt.attachShadow)===null||Ft===void 0?void 0:Ft.call(zt,{mode:"closed"}))||zt;ii.innerHTML='';let Si=ii.firstElementChild;return(_d.head||_d.body).appendChild(zt),zt.contentWindow=Si.contentWindow,zt.contentWindow}function o(_t){try{return!!_t.document&&typeof _t.setTimeout=="function"}catch{throw new Error("Unable to access properties of the pure window, likely due to cross-origin restrictions")}}let c=(()=>{try{let _t=n();return o(_t),_t}catch(_t){return l("Warning",`failed to copy references from pure iframe: ${_t.message}`),_w}})();function l(_t,Ft){_w.CSProtectnativeFunctionsLogs=_w.CSProtectnativeFunctionsLogs||{},_w.CSProtectnativeFunctionsLogs[_t]=Ft}function u(_t){try{return c[_t]}catch(Ft){return l("Warning",`Failed to access global property ${_t} from pure window: ${Ft.message}`),_w[_t]}}function h(_t,Ft){let zt=`__npt__${Ft}`;for(let ii of _t){let Si=c[ii].prototype,_r=_w[ii].prototype,zi=Object.getOwnPropertyDescriptor(Si,Ft);if(!zi)return Ft;Object.defineProperty(_r,zt,zi),Object.defineProperty(Si,zt,zi)}return zt}let p=(..._t)=>Ft=>h(_t,Ft),E=null,m=null,S=null,A=null,x=null,I=null,C=u("JSON"),H=u("URL"),M=null,N=u("RegExp"),W=u("screen"),q=null,lt=null,Lt=null,de=null,be=null,T=null,j=null,z=null,K=null,Pt=null,Nt=null,me=null;lt=p("Element","Document","ShadowRoot");let ye=null,Ei=null;lt=p("Element");let vs=null,Gi=null,Ss=null,cr=null,lr=null,ws=null,_i=null,As=null,vi=null,Wt=null;lt=p("HTMLImageElement");let Ee=null;lt=p("Array");let bs=null,En=null,ur=null,hr=null,_n=null,Ts=null,Rs=null,vn=null,dr=null,Cs=null;lt=p("String");let fr=null,Is=null,pr=null,gr=null,Sn=null,wn=null;lt=p("Navigator");let An=null;lt=p("Event");let mr=null,yr=null;function Er(_t){return _t instanceof csArray||_t instanceof yr}},64:(i,r,t)=>{t.d(r,{SV:()=>n,pu:()=>c});var e=t(913);let s=(()=>{class l{constructor(h){if(this.Ut=(0,e.b)("byteArray"),h!=="gzip")throw new TypeError(`Unsupported compression format: '${h}'`);let p,E=[];this.readable=new ReadableStream({start(S){p=S}});let m=this.Ut;this.writable=new WritableStream({write(S){csArray.prototype.push.call(E,S)},close(){let S;if(E.length===1)S=E[0];else{let x=csArray.prototype.reduce.call(E,(C,H)=>C+H.length,0);S=new Uint8Array(x);let I=0;for(let C of E)S.set(C,I),I+=C.length}let A=m(S.buffer);p.enqueue(new Uint8Array(A)),p.close()}})}}return l})(),n=(()=>{var l;return(l=_w.CompressionStream)!==null&&l!==void 0?l:s})(),o=_w.scheduler,c={yield:()=>o!=null&&o.yield?o.yield():new Promise(l=>csSetTimeout(l,0)),postTask:(l,u)=>o!=null&&o.postTask?o.postTask(l,u):new Promise(h=>csSetTimeout(h,0)).then(l)}},913:(i,r,t)=>{t.d(r,{b:()=>e});function e(s){function u(a){let g=a.length;for(;--g>=0;)a[g]=0}let h=0,p=1,E=2,m=3,S=258,A=29,x=256,I=x+1+A,C=30,H=19,M=2*I+1,N=15,W=16,q=7,lt=256,Lt=16,de=17,be=18,T=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),j=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),z=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),K=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Pt=512,Nt=new Array((I+2)*2);u(Nt);let me=new Array(C*2);u(me);let ye=new Array(Pt);u(ye);let Ei=new Array(S-m+1);u(Ei);let vs=new Array(A);u(vs);let Gi=new Array(C);u(Gi);function Ss(a,g,y,_,d){this.static_tree=a,this.extra_bits=g,this.extra_base=y,this.elems=_,this.max_length=d,this.has_stree=a&&a.length}let cr,lr,ws;function _i(a,g){this.dyn_tree=a,this.max_code=0,this.stat_desc=g}let As=a=>a<256?ye[a]:ye[256+(a>>>7)],vi=(a,g)=>{a.pending_buf[a.pending++]=g&255,a.pending_buf[a.pending++]=g>>>8&255},Wt=(a,g,y)=>{a.bi_valid>W-y?(a.bi_buf|=g<>W-a.bi_valid,a.bi_valid+=y-W):(a.bi_buf|=g<{Wt(a,y[g*2],y[g*2+1])},bs=(a,g)=>{let y=0;do y|=a&1,a>>>=1,y<<=1;while(--g>0);return y>>>1},En=a=>{a.bi_valid===16?(vi(a,a.bi_buf),a.bi_buf=0,a.bi_valid=0):a.bi_valid>=8&&(a.pending_buf[a.pending++]=a.bi_buf&255,a.bi_buf>>=8,a.bi_valid-=8)},ur=(a,g)=>{let y=g.dyn_tree,_=g.max_code,d=g.stat_desc.static_tree,P=g.stat_desc.has_stree,R=g.stat_desc.extra_bits,D=g.stat_desc.extra_base,dt=g.stat_desc.max_length,F,_e,Ri,At,Ki,Ls,Pn=0;for(At=0;At<=N;At++)a.bl_count[At]=0;for(y[a.heap[a.heap_max]*2+1]=0,F=a.heap_max+1;Fdt&&(At=dt,Pn++),y[_e*2+1]=At,!(_e>_)&&(a.bl_count[At]++,Ki=0,_e>=D&&(Ki=R[_e-D]),Ls=y[_e*2],a.opt_len+=Ls*(At+Ki),P&&(a.static_len+=Ls*(d[_e*2+1]+Ki)));if(Pn!==0){do{for(At=dt-1;a.bl_count[At]===0;)At--;a.bl_count[At]--,a.bl_count[At+1]+=2,a.bl_count[dt]--,Pn-=2}while(Pn>0);for(At=dt;At!==0;At--)for(_e=a.bl_count[At];_e!==0;)Ri=a.heap[--F],!(Ri>_)&&(y[Ri*2+1]!==At&&(a.opt_len+=(At-y[Ri*2+1])*y[Ri*2],y[Ri*2+1]=At),_e--)}},hr=(a,g,y)=>{let _=new Array(N+1),d=0,P,R;for(P=1;P<=N;P++)_[P]=d=d+y[P-1]<<1;for(R=0;R<=g;R++){let D=a[R*2+1];D!==0&&(a[R*2]=bs(_[D]++,D))}},_n=()=>{let a,g,y,_,d,P=new Array(N+1);for(y=0,_=0;_>=7;_{let g;for(g=0;g{a.bi_valid>8?vi(a,a.bi_buf):a.bi_valid>0&&(a.pending_buf[a.pending++]=a.bi_buf),a.bi_buf=0,a.bi_valid=0},vn=(a,g,y,_)=>{Rs(a),_&&(vi(a,y),vi(a,~y)),a.pending_buf.set(a.window.subarray(g,g+y),a.pending),a.pending+=y},dr=(a,g,y,_)=>{let d=g*2,P=y*2;return a[d]{let _=a.heap[y],d=y<<1;for(;d<=a.heap_len&&(d{let _,d,P=0,R,D;if(a.last_lit!==0)do _=a.pending_buf[a.d_buf+P*2]<<8|a.pending_buf[a.d_buf+P*2+1],d=a.pending_buf[a.l_buf+P],P++,_===0?Ee(a,d,g):(R=Ei[d],Ee(a,R+x+1,g),D=T[R],D!==0&&(d-=vs[R],Wt(a,d,D)),_--,R=As(_),Ee(a,R,y),D=j[R],D!==0&&(_-=Gi[R],Wt(a,_,D)));while(P{let y=g.dyn_tree,_=g.stat_desc.static_tree,d=g.stat_desc.has_stree,P=g.stat_desc.elems,R,D,dt=-1,F;for(a.heap_len=0,a.heap_max=M,R=0;R>1;R>=1;R--)Cs(a,y,R);F=P;do R=a.heap[1],a.heap[1]=a.heap[a.heap_len--],Cs(a,y,1),D=a.heap[1],a.heap[--a.heap_max]=R,a.heap[--a.heap_max]=D,y[F*2]=y[R*2]+y[D*2],a.depth[F]=(a.depth[R]>=a.depth[D]?a.depth[R]:a.depth[D])+1,y[R*2+1]=y[D*2+1]=F,a.heap[1]=F++,Cs(a,y,1);while(a.heap_len>=2);a.heap[--a.heap_max]=a.heap[1],ur(a,g),hr(y,dt,a.bl_count)},pr=(a,g,y)=>{let _,d=-1,P,R=g[0*2+1],D=0,dt=7,F=4;for(R===0&&(dt=138,F=3),g[(y+1)*2+1]=65535,_=0;_<=y;_++)P=R,R=g[(_+1)*2+1],!(++D{let _,d=-1,P,R=g[0*2+1],D=0,dt=7,F=4;for(R===0&&(dt=138,F=3),_=0;_<=y;_++)if(P=R,R=g[(_+1)*2+1],!(++D{let g;for(pr(a,a.dyn_ltree,a.l_desc.max_code),pr(a,a.dyn_dtree,a.d_desc.max_code),Is(a,a.bl_desc),g=H-1;g>=3&&a.bl_tree[K[g]*2+1]===0;g--);return a.opt_len+=3*(g+1)+5+5+4,g},wn=(a,g,y,_)=>{let d;for(Wt(a,g-257,5),Wt(a,y-1,5),Wt(a,_-4,4),d=0;d<_;d++)Wt(a,a.bl_tree[K[d]*2+1],3);gr(a,a.dyn_ltree,g-1),gr(a,a.dyn_dtree,y-1)},An=a=>{let g=4093624447,y;for(y=0;y<=31;y++,g>>>=1)if(g&1&&a.dyn_ltree[y*2]!==0)return 0;if(a.dyn_ltree[9*2]!==0||a.dyn_ltree[10*2]!==0||a.dyn_ltree[13*2]!==0)return 1;for(y=32;y{mr||(_n(),mr=!0),a.l_desc=new _i(a.dyn_ltree,cr),a.d_desc=new _i(a.dyn_dtree,lr),a.bl_desc=new _i(a.bl_tree,ws),a.bi_buf=0,a.bi_valid=0,Ts(a)},Er=(a,g,y,_)=>{Wt(a,(h<<1)+(_?1:0),3),vn(a,g,y,!0)},_t=a=>{Wt(a,p<<1,3),Ee(a,lt,Nt),En(a)},Ft=(a,g,y,_)=>{let d,P,R=0;a.level>0?(a.strm.data_type===2&&(a.strm.data_type=An(a)),Is(a,a.l_desc),Is(a,a.d_desc),R=Sn(a),d=a.opt_len+3+7>>>3,P=a.static_len+3+7>>>3,P<=d&&(d=P)):d=P=y+5,y+4<=d&&g!==-1?Er(a,g,y,_):a.strategy===4||P===d?(Wt(a,(p<<1)+(_?1:0),3),fr(a,Nt,me)):(Wt(a,(E<<1)+(_?1:0),3),wn(a,a.l_desc.max_code+1,a.d_desc.max_code+1,R+1),fr(a,a.dyn_ltree,a.dyn_dtree)),Ts(a),_&&Rs(a)},zt=(a,g,y)=>(a.pending_buf[a.d_buf+a.last_lit*2]=g>>>8&255,a.pending_buf[a.d_buf+a.last_lit*2+1]=g&255,a.pending_buf[a.l_buf+a.last_lit]=y&255,a.last_lit++,g===0?a.dyn_ltree[y*2]++:(a.matches++,g--,a.dyn_ltree[(Ei[y]+x+1)*2]++,a.dyn_dtree[As(g)*2]++),a.last_lit===a.lit_bufsize-1);var ii=yr,Si=Er,_r=Ft,zi=zt,xo=_t,Lo={_tr_init:ii,_tr_stored_block:Si,_tr_flush_block:_r,_tr_tally:zi,_tr_align:xo},bn=(a,g,y,_)=>{let d=a&65535|0,P=a>>>16&65535|0,R=0;for(;y!==0;){R=y>2e3?2e3:y,y-=R;do d=d+g[_++]|0,P=P+d|0;while(--R);d%=65521,P%=65521}return d|P<<16|0};let Vo=()=>{let a,g=[];for(var y=0;y<256;y++){a=y;for(var _=0;_<8;_++)a=a&1?3988292384^a>>>1:a>>>1;g[y]=a}return g},Uo=new Uint32Array(Vo());var ze=(a,g,y,_)=>{let d=Uo,P=_+y;a^=-1;for(let R=_;R>>8^d[(a^g[R])&255];return a^-1},Ps={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},w={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};let{_tr_init:rt,_tr_stored_block:Ns,_tr_flush_block:Te,_tr_tally:Re,_tr_align:Q}=Lo,{Z_NO_FLUSH:Ce,Z_PARTIAL_FLUSH:al,Z_FULL_FLUSH:cl,Z_FINISH:si,Z_BLOCK:Ho,Z_OK:De,Z_STREAM_END:jo,Z_STREAM_ERROR:yt,Z_DATA_ERROR:Os,Z_BUF_ERROR:vr,Z_DEFAULT_COMPRESSION:$o,Z_FILTERED:Sr,Z_HUFFMAN_ONLY:qi,Z_RLE:Wi,Z_FIXED:tt,Z_DEFAULT_STRATEGY:Bo,Z_UNKNOWN:Tn,Z_DEFLATED:Fi}=w,Go=9,wr=15,zo=8,Ar=256+1+29,ri=30,qo=19,Ms=2*Ar+1,Wo=15,nt=3,ke=258,fe=ke+nt+1,Rn=32,ni=42,Ds=69,Yi=73,ks=91,wi=103,oi=113,f=666,v=1,b=2,Z=3,et=4,vt=3,Ot=(a,g)=>(a.msg=Ps[g],g),Ie=a=>(a<<1)-(a>4?9:0),Ai=a=>{let g=a.length;for(;--g>=0;)a[g]=0},bi=(a,g,y)=>(g<{let g=a.state,y=g.pending;y>a.avail_out&&(y=a.avail_out),y!==0&&(a.output.set(g.pending_buf.subarray(g.pending_out,g.pending_out+y),a.next_out),a.next_out+=y,g.pending_out+=y,a.total_out+=y,a.avail_out-=y,g.pending-=y,g.pending===0&&(g.pending_out=0))},Yt=(a,g)=>{Te(a,a.block_start>=0?a.block_start:-1,a.strstart-a.block_start,g),a.block_start=a.strstart,Ti(a.strm)},gt=(a,g)=>{a.pending_buf[a.pending++]=g},br=(a,g)=>{a.pending_buf[a.pending++]=g>>>8&255,a.pending_buf[a.pending++]=g&255},vp=(a,g,y,_)=>{let d=a.avail_in;return d>_&&(d=_),d===0?0:(a.avail_in-=d,g.set(a.input.subarray(a.next_in,a.next_in+d),y),a.state.wrap===1?a.adler=bn(a.adler,g,d,y):a.state.wrap===2&&(a.adler=ze(a.adler,g,d,y)),a.next_in+=d,a.total_in+=d,d)},hl=(a,g)=>{let y=a.max_chain_length,_=a.strstart,d,P,R=a.prev_length,D=a.nice_match,dt=a.strstart>a.w_size-fe?a.strstart-(a.w_size-fe):0,F=a.window,_e=a.w_mask,Ri=a.prev,At=a.strstart+ke,Ki=F[_+R-1],Ls=F[_+R];a.prev_length>=a.good_match&&(y>>=2),D>a.lookahead&&(D=a.lookahead);do if(d=g,!(F[d+R]!==Ls||F[d+R-1]!==Ki||F[d]!==F[_]||F[++d]!==F[_+1])){_+=2,d++;do;while(F[++_]===F[++d]&&F[++_]===F[++d]&&F[++_]===F[++d]&&F[++_]===F[++d]&&F[++_]===F[++d]&&F[++_]===F[++d]&&F[++_]===F[++d]&&F[++_]===F[++d]&&_R){if(a.match_start=g,R=P,P>=D)break;Ki=F[_+R-1],Ls=F[_+R]}}while((g=Ri[g&_e])>dt&&--y!==0);return R<=a.lookahead?R:a.lookahead},Xi=a=>{let g=a.w_size,y,_,d,P,R;do{if(P=a.window_size-a.lookahead-a.strstart,a.strstart>=g+(g-fe)){a.window.set(a.window.subarray(g,g+g),0),a.match_start-=g,a.strstart-=g,a.block_start-=g,_=a.hash_size,y=_;do d=a.head[--y],a.head[y]=d>=g?d-g:0;while(--_);_=g,y=_;do d=a.prev[--y],a.prev[y]=d>=g?d-g:0;while(--_);P+=g}if(a.strm.avail_in===0)break;if(_=vp(a.strm,a.window,a.strstart+a.lookahead,P),a.lookahead+=_,a.lookahead+a.insert>=nt)for(R=a.strstart-a.insert,a.ins_h=a.window[R],a.ins_h=bi(a,a.ins_h,a.window[R+1]);a.insert&&(a.ins_h=bi(a,a.ins_h,a.window[R+nt-1]),a.prev[R&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=R,R++,a.insert--,!(a.lookahead+a.insert{let y=65535;for(y>a.pending_buf_size-5&&(y=a.pending_buf_size-5);;){if(a.lookahead<=1){if(Xi(a),a.lookahead===0&&g===Ce)return v;if(a.lookahead===0)break}a.strstart+=a.lookahead,a.lookahead=0;let _=a.block_start+y;if((a.strstart===0||a.strstart>=_)&&(a.lookahead=a.strstart-_,a.strstart=_,Yt(a,!1),a.strm.avail_out===0)||a.strstart-a.block_start>=a.w_size-fe&&(Yt(a,!1),a.strm.avail_out===0))return v}return a.insert=0,g===si?(Yt(a,!0),a.strm.avail_out===0?Z:et):(a.strstart>a.block_start&&(Yt(a,!1),a.strm.avail_out===0),v)},Fo=(a,g)=>{let y,_;for(;;){if(a.lookahead=nt&&(a.ins_h=bi(a,a.ins_h,a.window[a.strstart+nt-1]),y=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart),y!==0&&a.strstart-y<=a.w_size-fe&&(a.match_length=hl(a,y)),a.match_length>=nt)if(_=Re(a,a.strstart-a.match_start,a.match_length-nt),a.lookahead-=a.match_length,a.match_length<=a.max_lazy_match&&a.lookahead>=nt){a.match_length--;do a.strstart++,a.ins_h=bi(a,a.ins_h,a.window[a.strstart+nt-1]),y=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart;while(--a.match_length!==0);a.strstart++}else a.strstart+=a.match_length,a.match_length=0,a.ins_h=a.window[a.strstart],a.ins_h=bi(a,a.ins_h,a.window[a.strstart+1]);else _=Re(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++;if(_&&(Yt(a,!1),a.strm.avail_out===0))return v}return a.insert=a.strstart{let y,_,d;for(;;){if(a.lookahead=nt&&(a.ins_h=bi(a,a.ins_h,a.window[a.strstart+nt-1]),y=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart),a.prev_length=a.match_length,a.prev_match=a.match_start,a.match_length=nt-1,y!==0&&a.prev_length4096)&&(a.match_length=nt-1)),a.prev_length>=nt&&a.match_length<=a.prev_length){d=a.strstart+a.lookahead-nt,_=Re(a,a.strstart-1-a.prev_match,a.prev_length-nt),a.lookahead-=a.prev_length-1,a.prev_length-=2;do++a.strstart<=d&&(a.ins_h=bi(a,a.ins_h,a.window[a.strstart+nt-1]),y=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart);while(--a.prev_length!==0);if(a.match_available=0,a.match_length=nt-1,a.strstart++,_&&(Yt(a,!1),a.strm.avail_out===0))return v}else if(a.match_available){if(_=Re(a,0,a.window[a.strstart-1]),_&&Yt(a,!1),a.strstart++,a.lookahead--,a.strm.avail_out===0)return v}else a.match_available=1,a.strstart++,a.lookahead--}return a.match_available&&(_=Re(a,0,a.window[a.strstart-1]),a.match_available=0),a.insert=a.strstart{let y,_,d,P,R=a.window;for(;;){if(a.lookahead<=ke){if(Xi(a),a.lookahead<=ke&&g===Ce)return v;if(a.lookahead===0)break}if(a.match_length=0,a.lookahead>=nt&&a.strstart>0&&(d=a.strstart-1,_=R[d],_===R[++d]&&_===R[++d]&&_===R[++d])){P=a.strstart+ke;do;while(_===R[++d]&&_===R[++d]&&_===R[++d]&&_===R[++d]&&_===R[++d]&&_===R[++d]&&_===R[++d]&&_===R[++d]&&da.lookahead&&(a.match_length=a.lookahead)}if(a.match_length>=nt?(y=Re(a,1,a.match_length-nt),a.lookahead-=a.match_length,a.strstart+=a.match_length,a.match_length=0):(y=Re(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++),y&&(Yt(a,!1),a.strm.avail_out===0))return v}return a.insert=0,g===si?(Yt(a,!0),a.strm.avail_out===0?Z:et):a.last_lit&&(Yt(a,!1),a.strm.avail_out===0)?v:b},Ap=(a,g)=>{let y;for(;;){if(a.lookahead===0&&(Xi(a),a.lookahead===0)){if(g===Ce)return v;break}if(a.match_length=0,y=Re(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++,y&&(Yt(a,!1),a.strm.avail_out===0))return v}return a.insert=0,g===si?(Yt(a,!0),a.strm.avail_out===0?Z:et):a.last_lit&&(Yt(a,!1),a.strm.avail_out===0)?v:b};function qe(a,g,y,_,d){this.good_length=a,this.max_lazy=g,this.nice_length=y,this.max_chain=_,this.func=d}let Tr=[new qe(0,0,0,0,Sp),new qe(4,4,8,4,Fo),new qe(4,5,16,8,Fo),new qe(4,6,32,32,Fo),new qe(4,4,16,16,xs),new qe(8,16,32,32,xs),new qe(8,16,128,128,xs),new qe(8,32,128,256,xs),new qe(32,128,258,1024,xs),new qe(32,258,258,4096,xs)],bp=a=>{a.window_size=2*a.w_size,Ai(a.head),a.max_lazy_match=Tr[a.level].max_lazy,a.good_match=Tr[a.level].good_length,a.nice_match=Tr[a.level].nice_length,a.max_chain_length=Tr[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=nt-1,a.match_available=0,a.ins_h=0};function Tp(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Fi,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(Ms*2),this.dyn_dtree=new Uint16Array((2*ri+1)*2),this.bl_tree=new Uint16Array((2*qo+1)*2),Ai(this.dyn_ltree),Ai(this.dyn_dtree),Ai(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(Wo+1),this.heap=new Uint16Array(2*Ar+1),Ai(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Ar+1),Ai(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}let dl=a=>{if(!a||!a.state)return Ot(a,yt);a.total_in=a.total_out=0,a.data_type=Tn;let g=a.state;return g.pending=0,g.pending_out=0,g.wrap<0&&(g.wrap=-g.wrap),g.status=g.wrap?ni:oi,a.adler=g.wrap===2?0:1,g.last_flush=Ce,rt(g),De},fl=a=>{let g=dl(a);return g===De&&bp(a.state),g},Rp=(a,g)=>!a||!a.state||a.state.wrap!==2?yt:(a.state.gzhead=g,De),pl=(a,g,y,_,d,P)=>{if(!a)return yt;let R=1;if(g===$o&&(g=6),_<0?(R=0,_=-_):_>15&&(R=2,_-=16),d<1||d>Go||y!==Fi||_<8||_>15||g<0||g>9||P<0||P>tt)return Ot(a,yt);_===8&&(_=9);let D=new Tp;return a.state=D,D.strm=a,D.wrap=R,D.gzhead=null,D.w_bits=_,D.w_size=1<pl(a,g,Fi,wr,zo,Bo),Ip=(a,g)=>{let y,_;if(!a||!a.state||g>Ho||g<0)return a?Ot(a,yt):yt;let d=a.state;if(!a.output||!a.input&&a.avail_in!==0||d.status===f&&g!==si)return Ot(a,a.avail_out===0?vr:yt);d.strm=a;let P=d.last_flush;if(d.last_flush=g,d.status===ni)if(d.wrap===2)a.adler=0,gt(d,31),gt(d,139),gt(d,8),d.gzhead?(gt(d,(d.gzhead.text?1:0)+(d.gzhead.hcrc?2:0)+(d.gzhead.extra?4:0)+(d.gzhead.name?8:0)+(d.gzhead.comment?16:0)),gt(d,d.gzhead.time&255),gt(d,d.gzhead.time>>8&255),gt(d,d.gzhead.time>>16&255),gt(d,d.gzhead.time>>24&255),gt(d,d.level===9?2:d.strategy>=qi||d.level<2?4:0),gt(d,d.gzhead.os&255),d.gzhead.extra&&d.gzhead.extra.length&&(gt(d,d.gzhead.extra.length&255),gt(d,d.gzhead.extra.length>>8&255)),d.gzhead.hcrc&&(a.adler=ze(a.adler,d.pending_buf,d.pending,0)),d.gzindex=0,d.status=Ds):(gt(d,0),gt(d,0),gt(d,0),gt(d,0),gt(d,0),gt(d,d.level===9?2:d.strategy>=qi||d.level<2?4:0),gt(d,vt),d.status=oi);else{let R=Fi+(d.w_bits-8<<4)<<8,D=-1;d.strategy>=qi||d.level<2?D=0:d.level<6?D=1:d.level===6?D=2:D=3,R|=D<<6,d.strstart!==0&&(R|=Rn),R+=31-R%31,d.status=oi,br(d,R),d.strstart!==0&&(br(d,a.adler>>>16),br(d,a.adler&65535)),a.adler=1}if(d.status===Ds)if(d.gzhead.extra){for(y=d.pending;d.gzindex<(d.gzhead.extra.length&65535)&&!(d.pending===d.pending_buf_size&&(d.gzhead.hcrc&&d.pending>y&&(a.adler=ze(a.adler,d.pending_buf,d.pending-y,y)),Ti(a),y=d.pending,d.pending===d.pending_buf_size));)gt(d,d.gzhead.extra[d.gzindex]&255),d.gzindex++;d.gzhead.hcrc&&d.pending>y&&(a.adler=ze(a.adler,d.pending_buf,d.pending-y,y)),d.gzindex===d.gzhead.extra.length&&(d.gzindex=0,d.status=Yi)}else d.status=Yi;if(d.status===Yi)if(d.gzhead.name){y=d.pending;do{if(d.pending===d.pending_buf_size&&(d.gzhead.hcrc&&d.pending>y&&(a.adler=ze(a.adler,d.pending_buf,d.pending-y,y)),Ti(a),y=d.pending,d.pending===d.pending_buf_size)){_=1;break}d.gzindexy&&(a.adler=ze(a.adler,d.pending_buf,d.pending-y,y)),_===0&&(d.gzindex=0,d.status=ks)}else d.status=ks;if(d.status===ks)if(d.gzhead.comment){y=d.pending;do{if(d.pending===d.pending_buf_size&&(d.gzhead.hcrc&&d.pending>y&&(a.adler=ze(a.adler,d.pending_buf,d.pending-y,y)),Ti(a),y=d.pending,d.pending===d.pending_buf_size)){_=1;break}d.gzindexy&&(a.adler=ze(a.adler,d.pending_buf,d.pending-y,y)),_===0&&(d.status=wi)}else d.status=wi;if(d.status===wi&&(d.gzhead.hcrc?(d.pending+2>d.pending_buf_size&&Ti(a),d.pending+2<=d.pending_buf_size&&(gt(d,a.adler&255),gt(d,a.adler>>8&255),a.adler=0,d.status=oi)):d.status=oi),d.pending!==0){if(Ti(a),a.avail_out===0)return d.last_flush=-1,De}else if(a.avail_in===0&&Ie(g)<=Ie(P)&&g!==si)return Ot(a,vr);if(d.status===f&&a.avail_in!==0)return Ot(a,vr);if(a.avail_in!==0||d.lookahead!==0||g!==Ce&&d.status!==f){let R=d.strategy===qi?Ap(d,g):d.strategy===Wi?wp(d,g):Tr[d.level].func(d,g);if((R===Z||R===et)&&(d.status=f),R===v||R===Z)return a.avail_out===0&&(d.last_flush=-1),De;if(R===b&&(g===al?Q(d):g!==Ho&&(Ns(d,0,0,!1),g===cl&&(Ai(d.head),d.lookahead===0&&(d.strstart=0,d.block_start=0,d.insert=0))),Ti(a),a.avail_out===0))return d.last_flush=-1,De}return g!==si?De:d.wrap<=0?jo:(d.wrap===2?(gt(d,a.adler&255),gt(d,a.adler>>8&255),gt(d,a.adler>>16&255),gt(d,a.adler>>24&255),gt(d,a.total_in&255),gt(d,a.total_in>>8&255),gt(d,a.total_in>>16&255),gt(d,a.total_in>>24&255)):(br(d,a.adler>>>16),br(d,a.adler&65535)),Ti(a),d.wrap>0&&(d.wrap=-d.wrap),d.pending!==0?De:jo)},Pp=a=>{if(!a||!a.state)return yt;let g=a.state.status;return g!==ni&&g!==Ds&&g!==Yi&&g!==ks&&g!==wi&&g!==oi&&g!==f?Ot(a,yt):(a.state=null,g===oi?Ot(a,Os):De)},Np=(a,g)=>{let y=g.length;if(!a||!a.state)return yt;let _=a.state,d=_.wrap;if(d===2||d===1&&_.status!==ni||_.lookahead)return yt;if(d===1&&(a.adler=bn(a.adler,g,y,0)),_.wrap=0,y>=_.w_size){d===0&&(Ai(_.head),_.strstart=0,_.block_start=0,_.insert=0);let dt=new Uint8Array(_.w_size);dt.set(g.subarray(y-_.w_size,y),0),g=dt,y=_.w_size}let P=a.avail_in,R=a.next_in,D=a.input;for(a.avail_in=y,a.next_in=0,a.input=g,Xi(_);_.lookahead>=nt;){let dt=_.strstart,F=_.lookahead-(nt-1);do _.ins_h=bi(_,_.ins_h,_.window[dt+nt-1]),_.prev[dt&_.w_mask]=_.head[_.ins_h],_.head[_.ins_h]=dt,dt++;while(--F);_.strstart=dt,_.lookahead=nt-1,Xi(_)}return _.strstart+=_.lookahead,_.block_start=_.strstart,_.insert=_.lookahead,_.lookahead=0,_.match_length=_.prev_length=nt-1,_.match_available=0,a.next_in=R,a.input=D,a.avail_in=P,_.wrap=d,De};var Op=Cp,Mp=pl,Dp=fl,kp=dl,xp=Rp,Lp=Ip,Vp=Pp,Up=Np,Hp="pako deflate (from Nodeca project)",Rr={deflateInit:Op,deflateInit2:Mp,deflateReset:Dp,deflateResetKeep:kp,deflateSetHeader:xp,deflate:Lp,deflateEnd:Vp,deflateSetDictionary:Up,deflateInfo:Hp};let jp=(a,g)=>Object.prototype.hasOwnProperty.call(a,g);var $p=function(a){let g=Array.prototype.slice.call(arguments,1);for(;g.length;){let y=g.shift();if(y){if(typeof y!="object")throw new TypeError(y+"must be non-object");for(let _ in y)jp(y,_)&&(a[_]=y[_])}}return a},Bp=a=>{let g=0;for(let _=0,d=a.length;_=252?6:a>=248?5:a>=240?4:a>=224?3:a>=192?2:1;Cr[254]=Cr[254]=1;var Gp=a=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(a);let g,y,_,d,P,R=a.length,D=0;for(d=0;d>>6,g[P++]=128|y&63):y<65536?(g[P++]=224|y>>>12,g[P++]=128|y>>>6&63,g[P++]=128|y&63):(g[P++]=240|y>>>18,g[P++]=128|y>>>12&63,g[P++]=128|y>>>6&63,g[P++]=128|y&63);return g};let yl=(a,g=a.length)=>{if(g<65534&&a.subarray&&ml)return String.fromCharCode.apply(null,a.length===g?a:a.subarray(0,g));let y="";for(let _=0;_{let y=g||a.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(a.subarray(0,g));let _,d,P=new Array(y*2);for(d=0,_=0;_4){P[d++]=65533,_+=D-1;continue}for(R&=D===2?31:D===3?15:7;D>1&&_1){P[d++]=65533;continue}R<65536?P[d++]=R:(R-=65536,P[d++]=55296|R>>10&1023,P[d++]=56320|R&1023)}return yl(P,d)},qp=(a,g)=>{g=g||a.length,g>a.length&&(g=a.length);let y=g-1;for(;y>=0&&(a[y]&192)===128;)y--;return y<0||y===0?g:y+Cr[a[y]]>g?y:g},El={string2buf:Gp,buf2string:zp,utf8border:qp};function Wp(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var Fp=Wp;let _l=Object.prototype.toString,{Z_NO_FLUSH:Yp,Z_SYNC_FLUSH:Xp,Z_FULL_FLUSH:Kp,Z_FINISH:Qp,Z_OK:Cn,Z_STREAM_END:Jp,Z_DEFAULT_COMPRESSION:Zp,Z_DEFAULT_STRATEGY:tg,Z_DEFLATED:eg}=w;function In(a){this.options=gl.assign({level:Zp,method:eg,chunkSize:16384,windowBits:15,memLevel:8,strategy:tg},a||{});let g=this.options;g.raw&&g.windowBits>0?g.windowBits=-g.windowBits:g.gzip&&g.windowBits>0&&g.windowBits<16&&(g.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Fp,this.strm.avail_out=0;let y=Rr.deflateInit2(this.strm,g.level,g.method,g.windowBits,g.memLevel,g.strategy);if(y!==Cn)throw new Error(Ps[y]);if(g.header&&Rr.deflateSetHeader(this.strm,g.header),g.dictionary){let _;if(typeof g.dictionary=="string"?_=El.string2buf(g.dictionary):_l.call(g.dictionary)==="[object ArrayBuffer]"?_=new Uint8Array(g.dictionary):_=g.dictionary,y=Rr.deflateSetDictionary(this.strm,_),y!==Cn)throw new Error(Ps[y]);this._dict_set=!0}}In.prototype.push=function(a,g){let y=this.strm,_=this.options.chunkSize,d,P;if(this.ended)return!1;for(g===~~g?P=g:P=g===!0?Qp:Yp,typeof a=="string"?y.input=El.string2buf(a):_l.call(a)==="[object ArrayBuffer]"?y.input=new Uint8Array(a):y.input=a,y.next_in=0,y.avail_in=y.input.length;;){if(y.avail_out===0&&(y.output=new Uint8Array(_),y.next_out=0,y.avail_out=_),(P===Xp||P===Kp)&&y.avail_out<=6){this.onData(y.output.subarray(0,y.next_out)),y.avail_out=0;continue}if(d=Rr.deflate(y,P),d===Jp)return y.next_out>0&&this.onData(y.output.subarray(0,y.next_out)),d=Rr.deflateEnd(this.strm),this.onEnd(d),this.ended=!0,d===Cn;if(y.avail_out===0){this.onData(y.output);continue}if(P>0&&y.next_out>0){this.onData(y.output.subarray(0,y.next_out)),y.avail_out=0;continue}if(y.avail_in===0)break}return!0},In.prototype.onData=function(a){this.chunks.push(a)},In.prototype.onEnd=function(a){a===Cn&&(this.result=gl.flattenChunks(this.chunks)),this.chunks=[],this.err=a,this.msg=this.strm.msg};function ig(a,g){g=g||{};let y=new In(g);if(y.push(a,!0),y.err)throw y.msg||Ps[y.err];return y.result}function sg(a,g){return g=g||{},g.gzip=!0,ig(a,g)}return(a,g)=>{let y=sg(a);return s==="base64"?y=btoa(yl(y)):y=y.buffer,g&&g(y),y}}}},vl={};function k(i){var r=vl[i];if(r!==void 0)return r.exports;var t=vl[i]={exports:{}};return og[i](t,t.exports,k),t.exports}k.d=(i,r)=>{for(var t in r)k.o(r,t)&&!k.o(i,t)&&Object.defineProperty(i,t,{enumerable:!0,get:r[t]})};k.o=(i,r)=>Object.prototype.hasOwnProperty.call(i,r);k.r=i=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var _c={};k.r(_c);k.d(_c,{getRequestParameters:()=>Ww});function Qh(i,r,t,e){var s=arguments.length,n=s<3?r:e===null?e=Object.getOwnPropertyDescriptor(r,t):e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,r,t,e);else for(var c=i.length-1;c>=0;c--)(o=i[c])&&(n=(s<3?o(n):s>3?o(r,t,n):o(r,t))||n);return s>3&&n&&Object.defineProperty(r,t,n),n}function vc(i){return{debug(...r){i.debug(...r)},warn(...r){i.warn(...r)},error(r,...t){i.error(r,...t)},critical(r,...t){let e=i.critical;e?e.call(i,r,...t):i.error(r,...t)}}}var Lr=vc(console);function ag(i){Lr=vc(i)}function Sl(i,r){var t;return r instanceof Error?`${i} Caused by: ${r.message} ${(t=r.stack)!==null&&t!==void 0?t:""}`:`${i}: ${csString(r)}`}function on(i){let r;function t(n){if(!i)return n;let o=n instanceof Error?n.message:n;return`[${i}] ${o}`}let e={debug(...n){let[o,...c]=n;(r!=null?r:Lr).debug(...i&&typeof o=="string"?[t(o),...c]:n)},warn(...n){let[o,...c]=n;(r!=null?r:Lr).warn(...i&&typeof o=="string"?[t(o),...c]:n)},error(n,...o){let c=r!=null?r:Lr,[l,...u]=o,h=t(n);if(l!=null&&typeof l!="string"){let p=typeof h=="string"?h:h.message;c.error(Sl(p,l))}else l!==void 0?c.error(h,l,...u):c.error(h)},critical(n,...o){let c=r!=null?r:Lr,[l,...u]=o,h=t(n);if(l!=null&&typeof l!="string"){let p=typeof h=="string"?h:h.message;c.critical(Sl(p,l))}else l!==void 0?c.critical(h,l,...u):c.critical(h)}};function s(n){r=vc(n)}return{logger:e,setLogger:s}}var{logger:cg}=on("metrics"),Fr={error(i,r){cg.error(i,r)}},Jh=typeof performance!="undefined"&&!!performance.now,wl=Jh?()=>performance.now():()=>Date.now(),lg=(()=>{var i,r,t;return Jh?(r=(i=performance.timing)===null||i===void 0?void 0:i.navigationStart)!==null&&r!==void 0?r:Math.floor((t=performance.timeOrigin)!==null&&t!==void 0?t:0):0})(),Al={now(){return Math.round(wl()+lg)},elapsed(){return wl()}};function ug(i,r){let t=r.wait,e=r.mode||"leading",s,n=[],o=null,c=0,l,u=()=>{c=Al.now(),o=null,l=i.apply(s,n),n=[],s=null},h=function(...p){if(s=this,n=[...p],e==="trailing")return o||(o=csSetTimeout(u,t)),l;let E=Al.now(),m=t-(E-c);return m<=0||m>t?(c=E,l=i.apply(s,n),o?(csClearTimeout(o),o=null):n=[]):o||(o=csSetTimeout(u,m)),l};return h.cancel=()=>{o&&(csClearTimeout(o),c=0,o=null,n=[])},h.flushPending=()=>{o&&(csClearTimeout(o),u())},h}function hg(i,r){let t=null,e,s=[],n=()=>{t=null,i.apply(e,s),s=[],e=null};return function(...o){e=this,s=[...o],t&&csClearTimeout(t),t=csSetTimeout(n,r)}}var Zh=i=>(r,t,e)=>{let s=(t==null?void 0:t.toString())||"",n=i||`${r.constructor&&r.constructor.name}.${s}`;if(e){let o=e.value;e.value=function(...c){return fg(n,o.bind(this))(...c)}}};function dg(i){return typeof i!="undefined"}function bl(i){return i instanceof Error}function fg(i,r){return function(...t){try{let e=r.apply(this,t);return dg(self.Promise)&&e instanceof self.Promise?e.then(s=>s,s=>Fr.error(bl(s)?s:new Error(s),i)):e}catch(e){try{Fr.error(bl(e)?e:new Error(e),i)}catch{}}}}var pg=k(857).Jx,se=(()=>{class i{static setGlobalService(t){i.globalService=t}static zE(t){this.qE.test(t)||Fr.error(`Invalid metric name: "${t}". Must contain only letters with optional hyphens or dots between words.`)}static validateParameterName(t){return!/^https?:\/\/.+/.test(t)&&!this.WE.test(t)?(Fr.error(`Invalid parameter name: "${t}". Must start with letters, optionally followed by segments of letters or digits separated by hyphens, dots, colons, underscores, or pipes.`),!1):!0}constructor(t){this.name=t,this.values={},i.zE(t)}reset(){this.values={}}flush(t=""){if(!i.globalService)return!1;let e=this.values,s=Object.keys(e);if(!s.length)return!1;let n=csArray.prototype.map.call(s,o=>({name:this.name,parameter:`${t===""?"":`${t}.`}${o}`,value:Math.round(e[o])}));return i.globalService.push(n),this.reset(),n.length>0}}return i.globalService=null,i.qE=/^[a-zA-Z]+([-.][a-zA-Z]+)*$/,i.WE=/^[a-zA-Z]+([-.:_|][a-zA-Z0-9]+)*$/,Qh([Zh()],i.prototype,"flush",null),i})(),St=(()=>{class i extends se{constructor(t,e=100){super(t),this.FE=e,this.values={},this.debouncedFlush=()=>this.flush(),e&&(this.debouncedFlush=hg(()=>this.flush(),this.FE))}count(t,e=1){se.globalService&&(this.values[t]||se.validateParameterName(t),this.values[t]=(this.values[t]||0)+e,this.debouncedFlush())}}return i})(),Ir=(()=>{class i extends se{constructor(t,e=["max","average","total","count"]){super(t),this.collecting=e,this.values={average:0,count:0,max:0,total:0}}get average(){return this.values.average}get count(){return this.values.count}get max(){return this.values.max}get total(){return this.values.total}flush(t=""){if(this.count===0)return!1;let e=Object.keys(this.values);return csArray.prototype.forEach.call(csArray.prototype.filter.call(e,s=>!csArray.prototype.some.call(this.collecting,n=>s===n)),s=>{delete this.values[s]}),super.flush(t)}push(t){this.values.count++,this.values.total+=t,this.values.max=Math.max(this.values.max,t),this.values.average=this.values.total/this.values.count}reset(){this.values={count:0,total:0,max:0,average:0}}}return i})(),Pr=(()=>{class i extends se{constructor(t,e=["max","average","total","count"]){super(t),this.collecting=e}flush(t=""){let e=Object.keys(this.values);return csArray.prototype.forEach.call(csArray.prototype.filter.call(e,s=>!csArray.prototype.some.call(this.collecting,n=>csString.prototype.endsWith.call(s,`.${n}`))),s=>{delete this.values[s]}),super.flush(t)}add(t,e){var s,n,o,c,l,u,h;if(!se.globalService)return;this.values[`${t}.count`]||se.validateParameterName(t);let p=E=>this.values[`${t}.${E}`];(s=(c=this.values)[l=`${t}.count`])!==null&&s!==void 0||(c[l]=0),(n=(u=this.values)[h=`${t}.total`])!==null&&n!==void 0||(u[h]=0),this.values[`${t}.count`]++,this.values[`${t}.total`]+=e,this.values[`${t}.max`]=Math.max((o=p("max"))!==null&&o!==void 0?o:0,e),this.values[`${t}.average`]=p("total")/p("count")}}return i})(),gg=(()=>{class i extends se{constructor(){super(...arguments),this.values={}}set(t,e="flags"){var s,n;se.globalService&&(this.values[e]||se.validateParameterName(e),(s=(n=this.values)[e])!==null&&s!==void 0||(n[e]=0),this.values[e]|=t,this.flush())}}return i})(),mg=(()=>{class i extends se{constructor(t,e={iterations:10,interval:2e3}){super(t),this.Wd=e,this.oa=0,this.je=null,this.aa=[],this.values={}}push(t){_d.visibilityState!=="hidden"&&(this.oa+=t,this.je||this.YE())}YE(){this.je=_w.csSetInterval(()=>{csArray.prototype.push.call(this.aa,this.oa),this.oa=0,this.aa.length>=this.Wd.iterations&&this.je&&csClearInterval(this.je)},this.Wd.interval)}flush(t){return this.je&&(csClearInterval(this.je),this.je=null),csArray.prototype.forEach.call(this.aa,(e,s)=>{this.values[`interval.${s+1}`]=e}),this.aa=[],this.oa=0,super.flush(t)}}return i})(),yg=(()=>{class i extends se{constructor(){super("upload-size"),this.ca=new Map}add(t,e,s){if(t===0)return;try{e=`${csString.prototype.substring.call(csString.prototype.replace.call(new pg(e).pathname,/[^a-z0-9]+/g,"-"),1)||"home"}|${s}`,e=csString.prototype.toLowerCase.call(csString.prototype.replace.call(e,/^v2-/,""))}catch{Fr.error(`Invalid URL for upload size metric: ${e}`);return}let n=this.ca.get(e)||{count:0,total:0,max:0,average:0};n.count++,n.total+=t,n.max=Math.max(n.max,t),n.average=n.total/n.count,this.ca.set(e,n)}flush(t){if(se.globalService===null||isNaN(+t))return!1;let e=[];return this.ca.forEach((s,n)=>{csArray.prototype.forEach.call(Object.keys(s),o=>{let c=`${n}.${o}.${t}`;se.validateParameterName(c),csArray.prototype.push.call(e,{name:this.name,parameter:c,value:Math.round(s[o])})})}),se.globalService.push(e),this.ca.clear(),!0}}return Qh([Zh()],i.prototype,"flush",null),i})(),G={counters:{boot:new St("boot"),commandsFromIntegrations:new St("commands-from-integrations"),commandsFromCSTC:new St("commands-from-cstc"),commandsFromIframe:new St("commands-from-iframe"),commandApplied:new St("command-applied"),commandError:new St("command-error"),commandMisuse:new St("command-misuse"),CSTCSnippetUsed:new St("cstc-snippet-used"),redactedPII:new St("redacted-pii"),pageAnonymisation:new St("page-anonymisation"),patchedNativeFunctions:new St("patched-native-functions"),pureWindowState:new St("pure-window-state"),sensitiveElements:new St("sensitive-elements"),cspErrors:new St("csp-errors"),networkRequests:new St("network-requests"),webVitalsErrors:new St("web-vitals-errors"),trackedFeatures:new St("tracked-features"),longTasks:new Ir("long-tasks"),errors:new St("errors"),methodPerformance:new Pr("perf"),transferSize:new Ir("transfer-size",["max","average"]),downloadTime:new Ir("download-time",["average"]),blockingTime:new Ir("blocking-time"),inpContribution:new Ir("inp-contribution"),tasks:new Pr("tasks"),availableFeatures:new gg("available-features"),dom:new Pr("dom",["total"]),mutations:new mg("mutations"),requestTimeouts:new St("request-timeouts"),requestErrors:new St("request-errors"),requestCounts:new St("request-counter"),payloadSize:new yg,featureUsage:new St("feature-usage"),inpLoaf:new Pr("inp-loaf",["max","average"]),transactions:new St("transactions"),cssomVarFallback:new St("cssom-var-fallback"),nativeOverrides:new St("native-overrides"),experimentVariantApplied:new St("experiment-variant-applied"),experimentVariantApplyDuration:new Pr("experiment-variant-apply-duration"),experimentFailed:new St("experiment-failed")},setService(i){se.setGlobalService(i)},normalizeParameter(i){return csString.prototype.toLowerCase.call(csString.prototype.replace.call(csString.prototype.replace.call(i,/([a-z])([A-Z])/g,"$1-$2"),/([A-Z])([A-Z][a-z])/g,"$1-$2"))}},Eg=typeof performance!="undefined"&&!!performance.now,_g=Eg?()=>performance.now():()=>Date.now(),Tl={elapsed(){return _g()}},{logger:td,setLogger:k0}=on("task"),ed=(()=>{class i{constructor(){this.Pe=0}get length(){return this.Pe}get isEmpty(){return!this.mt}pushAll(t){for(let e=0;e{La++,csQueueMicrotask(()=>So(()=>{try{i()}finally{La--}},[$i.MicroTask,"queueMicrotask"]))},Qn=new ed,Jn=new ed;function er(i,r="high"){Qn.isEmpty&&Jn.isEmpty&&sd(vg),r==="high"?Jn.push(Rl(i)):Qn.push(Rl(i))}function sd(i,r=10){r===0?id(i):csQueueMicrotask(()=>sd(i,r-1))}function vg(){for(;!Jn.isEmpty;)Jn.pop()();for(;!Qn.isEmpty;)Qn.pop()()}function Rl(i){return function(){try{i.apply(_w,arguments)}catch(r){td.critical(r)}}}var $i=(()=>{let i;return function(r){r.Timer="timer",r.MonkeyPatch="monkeyPatch",r.MutationObserver="mutationObserver",r.EventListener="eventListener",r.IntersectionObserver="intersectionObserver",r.MicroTask="microtask"}(i||(i={})),i})(),xe=null,Sg=["click","tap","keyup","keydown","pointerup","pointerdown"];async function So(i,r,t=null){if(xe&&r[0]!==$i.MicroTask)return i();t&&(xe=t),xe||(xe={type:r[0],elapsed:0});try{xe.elapsed+=wg(i)}catch(e){td.critical(new Error(`Task error: ${r}/${i.name}. ${e.message} ${e.stack}`),"TASK_ERROR")}finally{La<=0&&(xe.elapsed>50&&(G.counters.longTasks.push(xe.elapsed),G.counters.blockingTime.push(xe.elapsed-50)),G.counters.tasks.add(r[0],xe.elapsed),csArray.prototype.includes.call(Sg,r[1])&&G.counters.inpContribution.push(xe.elapsed),xe=null)}}function wg(i){let r=Tl.elapsed();return i(),Tl.elapsed()-r}function ms(i,r){let t;return _w.Zone&&typeof _w.Zone.__symbol__=="function"&&(t=i[_w.Zone.__symbol__(r)]),t!=null?t:i[r]}var rd=typeof _w=="undefined";function Ag(){return typeof _w!="undefined"?_w:Function("return this")()}var mt=Ag();var Yo;var Ci={navigatorProperties:[{propertyName:"sendBeacon",binding:navigator}],nodeProperties:["childNodes","parentNode","nextSibling","firstChild","nodeType","isConnected"],elementProperties:["shadowRoot"],elementPropertiesValues:["matches","mozMatchesSelector","msMatchesSelector","oMatchesSelector","webkitMatchesSelector"],eventProperties:["target"],imageProperties:["src"],constructors:{Array:"csArray",String:"csString",MutationObserver:"csMutationObserver"}};function nd(i,r){let t=ms(_w,i);return function(e,s){return t(()=>So(e,[r,i]),s)}}_w.csSetTimeout=nd("setTimeout",$i.Timer);_w.csSetInterval=nd("setInterval",$i.Timer);_w.csQueueMicrotask=(Yo=ms(_w,"queueMicrotask"))!==null&&Yo!==void 0?Yo:setTimeout;_w.csClearTimeout=ms(_w,"clearTimeout");_w.csClearInterval=ms(_w,"clearInterval");_w.csFileReader=ms(_w,"FileReader");function bg(){var i,r;let t=(i=_d.getElementsByTagName("cs-native-frame-holder")[0])!==null&&i!==void 0?i:_d.createElement("cs-native-frame-holder");if(t.contentWindow&&t.isConnected)return t.contentWindow;t.setAttribute("hidden","");let e=((r=t.attachShadow)===null||r===void 0?void 0:r.call(t,{mode:"closed"}))||t;e.innerHTML='';let s=e.firstElementChild;return(_d.head||_d.body).appendChild(t),t.contentWindow=s.contentWindow,t.contentWindow}function Tg(i,r){let t,e=i;for(;e&&!(t=Object.getOwnPropertyDescriptor(e,r));)e=Object.getPrototypeOf(e);return t}function Rg(i,r,t){let e=Tg(i,r);if(!e)return function(){return this[r]};switch(t){case"get":return e.get;case"set":return e.set;case"value":return e.value}}function od(i){var r,t;Object.keys(Ci.constructors).forEach(s=>{_w[Ci.constructors[s]]=i[s]instanceof Function&&i[s].prototype==null?i[s].bind(_w):i[s]}),Pg(i);let e=i.MutationObserver;("Prototype"in _w||Ig())&&(e=(t=(r=ms(_w,"MutationObserver"))!==null&&r!==void 0?r:_w.WebKitMutationObserver)!==null&&t!==void 0?t:_w.MutationObserver),_w.csIntersectionObserver=Cl(_w.IntersectionObserver,$i.IntersectionObserver),_w.csMutationObserver=Cl(e,$i.MutationObserver),Vs("csNode",Ci.nodeProperties,i.Node.prototype,"get"),Vs("csElement",Ci.elementProperties,i.Element.prototype,"get"),Vs("csElement",Ci.elementPropertiesValues,i.Element.prototype,"value",!1),Vs("csHTMLImageElement",Ci.imageProperties,i.HTMLImageElement.prototype,"set"),Vs("csEvent",Ci.eventProperties,i.Event.prototype,"get"),Vs("csNavigator",Ci.navigatorProperties,i.navigator,"value")}function Vs(i,r,t,e,s=!0){r.forEach(n=>{let o=typeof n!="string"&&"binding"in n,c=o?n.propertyName:n;(s||c in t)&&(_w[`${i+c}`]=Rg(t,c,e),o&&(_w[`${i+c}`]=_w[`${i+c}`].bind(n.binding)))})}function Sc(i,r){_w.CSProtectnativeFunctionsLogs=_w.CSProtectnativeFunctionsLogs||{},_w.CSProtectnativeFunctionsLogs[i]=r}function Cg(){try{let i=bg();return i?(_w.CSPureWindow=i,od(_w.CSPureWindow),!0):!1}catch(i){return Sc("Warning",`failed to copy references from pure iframe: ${i.message}`),!1}}if(!Cg())try{od(mt)}catch(i){Sc("Critical",`failed to copy references from window: ${i.message}`)}function Ig(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function Pg(i){_w.csquerySelector={1:i.Element.prototype.querySelector,9:i.Document.prototype.querySelector,11:i.DocumentFragment.prototype.querySelector},_w.csquerySelectorAll={1:i.Element.prototype.querySelectorAll,9:i.Document.prototype.querySelectorAll,11:i.DocumentFragment.prototype.querySelectorAll}}function Cl(i,r){try{let t=function(e,s){return new i((o,c)=>{So(()=>e(o,c),[r,i.name])},s)};return t.base=i,t}catch{return Sc("Warning",`failed to extends ${i.name}`),i}}function wt(i){return csNodenodeType.apply(i)===1}function Zn(i){return csNodenodeType.apply(i)===3}function Ng(i){return csNodenodeType.apply(i)===8}function Og(i){return wt(i)&&i.localName==="link"}function Mg(i){return wt(i)&&i.localName==="source"}function ad(i){return wt(i)&&i.localName==="a"}function cd(i){return Og(i)&&csString.prototype.indexOf.call(i.rel,"stylesheet")!==-1}function Dg(i){return wt(i)&&i.localName==="img"}function wo(i){return wt(i)&&i.localName==="style"}function us(i){return wt(i)&&i.localName==="input"}function to(i){return wt(i)&&i.localName==="textarea"}function kg(i){return wt(i)&&i.localName==="script"}function xg(i){return wt(i)&&i.localName==="button"}function an(i){return wt(i)&&"ownerSVGElement"in i}function Yr(i){return wt(i)&&i.localName==="select"}function Lg(i){return wt(i)&&i.localName==="details"}function Vg(i){return wt(i)&&i.localName==="summary"}function Ug(i){return an(i)&&i.localName==="image"}function Hg(i){return an(i)&&i.localName==="use"}function jg(i){return an(i)&&i.localName==="feImage"}function $g(i){switch(csNodenodeType.apply(i)){case 9:case 11:return!0;default:return!1}}function Bg(i){switch(csNodenodeType.apply(i)){case 9:case 11:case 1:return!0;default:return!1}}function Xr(i){return csNodenodeType.apply(i)===9}function pi(i){return $g(i)&&"host"in i&&"mode"in i}function ld(i){return wt(i)&&!!csElementshadowRoot.apply(i)&&pi(csElementshadowRoot.apply(i))}var cn="detached";function ud(i){let r=i,t=[r];for(;csNodeparentNode.apply(r)!==null;)r=csNodeparentNode.apply(r),csArray.prototype.push.call(t,r);return eo(r)&&csArray.prototype.push.call(t,cn),{ancestors:t,selectionRoot:r}}function Gg(i){let r=i,t=[r],e=null;for(;csNodeparentNode.apply(r)!==null;)e===null&&ad(r)&&(e=r),csArray.prototype.push.call(t,csNodeparentNode.apply(r)),r=csNodeparentNode.apply(r);return eo(r)&&csArray.prototype.push.call(t,cn),{firstAnchorParent:e,ancestors:t,selectionRoot:r}}function eo(i){return Vi.isValidElement(i)}var es=(()=>{var i,r;return(r=(i=mt.Element)===null||i===void 0?void 0:i.prototype)!==null&&r!==void 0?r:{}})(),we=es.matches||es.matchesSelector||es.mozMatchesSelector||es.msMatchesSelector||es.oMatchesSelector||es.webkitMatchesSelector,Il=es.closest,zg="@",qg=[/\d{4}/,/^ember\d+$/],Wg=k(857).al,Ct=(()=>{let i;return function(r){r.ELLIPSIS="\u2026";function t(o){return csString.prototype.replace.call(o,/[.*+?^${}()|[\]\\]/g,"\\$&")}function e(o){return csString.prototype.replace.call(o,/([#;&,.+*~':"!^$[\]()<=>|/%?@`{}\\ ])/g,"\\$1")}r.escapeInvalidCharacters=e;function s(o,c,l){if("replaceAll"in csString.prototype)return csString.prototype.replaceAll.call(o,c,l);let u=new Wg(t(c),"g");return csString.prototype.replace.call(o,u,l)}r.stringReplaceAll=s;function n(o,c,l=""){return o.length<=c?o:csString.prototype.slice.call(o,0,c-l.length)+l}r.truncate=n}(i||(i={})),i})();function Va(i){return Ct.escapeInvalidCharacters(csString.prototype.toLowerCase.call(i.localName))}function Fg(i){let r=i.getAttribute("id");return r&&Ct.escapeInvalidCharacters(r)}var hd=9;function Yg(i,r){return r?csArray.prototype.some.call(r,t=>we.call(i,t)):!1}function Xg(i,r,t){if(i===cn||csNodenodeType.apply(i)===hd)return 0;let e=t.dynamicElementNameRegex,s=!!(e!=null&&e.test(r.localName)),n=Va(r),o=0,c=r.previousElementSibling;for(;c;)(Va(c)===n||s&&(e!=null&&e.test(c.localName)))&&!Yg(c,t.reliableSelectors)&&(o+=1),c=c.previousElementSibling;return o}function Kg(i,r,t){if(i===cn||csNodenodeType.apply(i)===hd)return 0;let e=0,s=r.previousElementSibling;for(;s;)we.call(s,t)&&(e+=1),s=s.previousElementSibling;return e}var wc="data-cs-override-id",Qg="data-cs-dynamic-id";function dd(i,r,t,e){let s=e.dynamicIdRegex||null,n=e.dynamicElementNameRegex,o=Va(i);if(n&&n.test(i.localName)&&(o=csString.prototype.replace.call(o,n,`$1${zg}`)),tm(i,t)){let E=Ac(i);return{hasUniqueIdentifier:!0,elementSelector:`${o}[${wc}="${E}"]`}}let c=om(i,t,e);if(c.success)return{hasUniqueIdentifier:!0,elementSelector:`${o}#UA[${c.attributeName}="${c.attributeValue}"]`};let l=Jg(i,t,e);if(l)return{hasUniqueIdentifier:!0,elementSelector:`${o}#UCS[${l}]`};let u=Fg(i);if(im(i,u,t,s))return{hasUniqueIdentifier:!0,elementSelector:`${o}#${u}`};let h=Zg(i,e);if(h){let E=Kg(r,i,h);return{hasUniqueIdentifier:!1,elementSelector:`${o}[${h}](${E})`}}let p=Xg(r,i,e);return{hasUniqueIdentifier:!1,elementSelector:`${o}:eq(${p})`}}function Jg(i,r,t){if(t.uniqueCssSelectors){for(let e of t.uniqueCssSelectors)if(we.call(i,e)&&nm(e,r))return e}}function Zg(i,r){if(r.reliableSelectors){for(let t of r.reliableSelectors)if(we.call(i,t))return t}}function tm(i,r){let t=Ac(i);return t&&csString.prototype.match.call(t,/^[\w-]+$/)&&bc(wc,t,r)}function em(i){return Ac(i)!==null}function Ac(i){return i.getAttribute(wc)}function im(i,r,t,e){return r&&!em(i)&&!sm(i,r,e)&&rm(r,t)}function sm(i,r,t){if(i.hasAttribute(Qg)||Pl(r,t))return!0;let e=i.getAttribute("id");return r!==e?Pl(e,t):!1}function Pl(i,r){let t=!1;return i&&r&&(t=r.test(i)),i&&(csArray.prototype.some.call(qg,e=>e.test(i))||t)}function rm(i,r){return i&&bc("id",i,r)}function bc(i,r,t){try{return _w.csquerySelectorAll[t.nodeType].call(t,`[${i}="${r}"]`).length===1}catch(e){if(e.name!=="SyntaxError")throw e}return!1}function nm(i,r){try{return _w.csquerySelectorAll[r.nodeType].call(r,i).length===1}catch(t){if(t.name!=="SyntaxError")throw t}return!1}function om(i,r,t){if(!t.uniqueAttributes)return{success:!1};for(let e of t.uniqueAttributes){let s=i.getAttribute(e);if(s!==null&&bc(e,s,r))return{attributeName:e,attributeValue:s,success:!0}}return{success:!1}}var Ua=11;function io(i,r,t){let e=csArray.prototype.shift.call(i);if(i.length===0)return Nl(e,t);let s=e,n=i[0],{elementSelector:o,hasUniqueIdentifier:c}=dd(s,n,r,t);if(!t.fullPath&&c){let u=i[i.length-1];return`${Nl(u,t)}${o}`}let l=io(i,r,t);return`${l?`${l}>`:""}${o}`}function Nl(i,r){if(i===cn)return"|detached|";if(pi(i)){let{ancestors:t,selectionRoot:e}=ud(i.host);return`${io(t,e,r)}|shadow-root|`}return csNodenodeType.apply(i)===Ua?"|fragment|":""}var fd=(()=>{class i{constructor(t){this.options=t,this.done=!1,this.path=null}getPath(){if(this.path===null)throw new Error("getPath was called before serializeElement");return this.path}isDone(){return this.done}}return i})(),am=(()=>{class i extends fd{constructor(){super(...arguments),this.ua=!1,this.ha=!1,this.rl=!1}XE(t,e){return this.ua&&!(e===null&&eo(t))&&csNodenodeType.apply(t)!==Ua&&!pi(t)}KE(t){return!t.localName}serializeElement(t,e,s){var n;if((n=this.path)!==null&&n!==void 0||(this.path=""),this.XE(t,e))return;let o=!1;e===null&&eo(t)&&(o=!0,this.done=!0);let c=this.ha&&!this.options.fullPath?"":">",l=pi(t);if(l&&this.path&&(this.path="|shadow-root|"+c+this.path,this.rl=!0,this.ua=!1,this.ha=!1),!l&&e===null&&csNodenodeType.apply(t)===Ua){this.path="|fragment|"+c+this.path,this.done=!0;return}if(this.KE(t))return;let u=e!=null?e:"detached",{elementSelector:h,hasUniqueIdentifier:p}=dd(t,u,s,this.options);p&&(this.ha=!0,this.ua=!this.options.fullPath);let E=`${o?`|detached|${c}`:""}${this.ua&&!p?"":h}`,S=!p&&this.ha&&!this.options.fullPath?"":this.path&&!this.rl?">":"";this.rl=!1,this.path=`${E}${S}${this.path}`}}return i})(),cm=(()=>{class i extends fd{serializeElement(t){var e;if((e=this.path)!==null&&e!==void 0||(this.path=""),(t==="detached"||t.localName==="body")&&(this.done=!0,this.path.length>0))return;let s=this.QE(t);if(s+=s.length>0?"|":"",this.path.length+s.length>this.options.hierarchyMaxLength){this.done=!0;return}this.path=s+this.path}QE(t){if(!t.localName)return"";let e=`@${t.localName};`;return e+=this.JE(t.id),t.classList&&(e+=this.ZE(csArray.from(t.classList))),t.attributes&&(e+=this.t_(t)),e}JE(t){return t?`#${t};`:""}ZE(t){return t.length>0?`.${csArray.prototype.join.call(csArray.prototype.sort.call(t),";.")};`:""}e_(t,e){var s,n;return e==="id"||e==="class"||((n=(s=this.options).isAttributeSensitive)===null||n===void 0?void 0:n.call(s,t,e))||csArray.prototype.indexOf.call(this.options.attributeIgnoreTokens,e)!==-1||an(t)&&csString.prototype.indexOf.call(e,"data-")===-1&&e!=="aria-label"||us(t)&&e==="value"}i_(t,e){return this.options.useAnonymization&&!this.options.allWhitelistedAttributes.has(t)||e.length>this.options.attrMaxLength}s_(t){let e={};for(let s of csArray.from(t.attributes))this.e_(t,s.name)||(e[s.name]=s.value);return e}t_(t){var e,s;if(!((s=(e=this.options).isNodeSensitive)===null||s===void 0)&&s.call(e,t))return"";let n=Object.entries(this.s_(t));return csArray.prototype.join.call(csArray.prototype.sort.call(csArray.prototype.map.call(csArray.prototype.filter.call(n,([o])=>o.lengththis.i_(o,c)?`[${o}]`:`[${o}=${c}]`)),";")+(n.length>0?";":"")}}return i})();function jt(i){return ft(i)&&(typeof i=="number"||i instanceof Number)&&!isNaN(i)}function hs(i){return i===parseInt(i,10)}function O(i){return ft(i)&&(typeof i=="string"||i instanceof csString)}function Kr(i){return typeof i=="boolean"}function Ks(i){return typeof i=="object"}function ft(i){return typeof i!="undefined"}function It(i){return ft(i)&&i!==null}function at(i){return typeof i=="object"&&i!==null}function lm(i,r,t){return hs(i)&&i>=r&&i<=t}function Qr(i){for(let r in i)return!1;return!0}function $e(i){return typeof i=="function"}function zn(i){return typeof Node!="undefined"&&i instanceof Node}function gi(i){return i instanceof Element}function Je(i){return i instanceof Error}function Tc(i){let r=i.length;for(let t=0;t{let i;return function(r){function t(){let p=[s()];return _d.documentElement&&csArray.prototype.push.call(p,_d.documentElement.scrollHeight,_d.documentElement.offsetHeight,_d.documentElement.clientHeight),_d.body&&csArray.prototype.push.call(p,_d.body.scrollHeight,_d.body.offsetHeight),Math.max(...p)}r.documentHeight=t;function e(){return _d.documentElement.scrollWidth}r.documentWidth=e;function s(){return _w.innerHeight}r.windowHeight=s;function n(){return _w.innerWidth}r.windowWidth=n;function o(){let p=Ol.width;return hs(p)&&p>0?p:_w.screen.width}r.screenWidth=o;function c(){let p=Ol.height;return hs(p)&&p>0?p:_w.screen.height}r.screenHeight=c;function l(){return _w.pageXOffset}r.windowOffsetX=l;function u(){return _w.pageYOffset}r.windowOffsetY=u;function h(){return{dw:`${e()}`,dh:`${t()}`,ww:`${n()}`,wh:`${s()}`,sw:`${o()}`,sh:`${c()}`}}r.getRequestParameters=h}(i||(i={})),i})(),Et=(()=>{let i;return function(r){r.debug="debug",r.warn="warn",r.implementation="implementation",r.error="error",r.critical="critical"}(i||(i={})),i})(),Xo={[Et.debug]:0,[Et.warn]:1,[Et.implementation]:1,[Et.error]:2,[Et.critical]:3},ut={debug(...i){},warn(...i){},implementation(...i){},error(...i){},critical(...i){},isPerfLoggingActive(){return!1}};function pd(i){ut=i}var V=i=>(r,t,e)=>{let s=(t==null?void 0:t.toString())||"",n=i||`${r.constructor&&r.constructor.name}.${s}`;if(e){let o=e.value;e.value=function(...c){return Li(n,o.bind(this))(...c)}}};function Li(i,r){return function(...t){try{let e=r.apply(this,t);return ft(self.Promise)&&e instanceof self.Promise?e.then(s=>s,s=>ut.error(Je(s)?s:new Error(s),i)):e}catch(e){try{ut.error(Je(e)?e:new Error(e),i)}catch{}}}}function so(i){var r;let t=(r=i.length)!==null&&r!==void 0?r:0,e=new csArray(t);for(let s=0;scsArray.prototype.push.call(t,e)),t}function pt(i,r){if(dm(i)){let t=i.length;for(let e=0;e=0}function ln(i,r){let t=i.length;for(let e=0;ecsArray.prototype.push.call(t,r?[s,e]:e)),t}function pm(i){return csArray.isArray(i)&&i.length>0}function ve(i,r=ae.SHOW_ALL){let t=r|ae.SHOW_ELEMENT,e=[_d.createTreeWalker(i,t,null,!1)],s=Dl(i);s&&csArray.prototype.push.call(e,_d.createTreeWalker(s,t,null,!1));let n=null;return{root:i,nextNode(){if(s){let o=s;return s=null,o}for(;e.length>0;){if(n){let u=n;return n=null,u}let c=e[e.length-1].nextNode();if(!c){csArray.prototype.pop.call(e);continue}let l=Dl(c);if(r&ae.SHOW_DOCUMENT_FRAGMENT&&l&&(n=l),l&&csArray.prototype.push.call(e,_d.createTreeWalker(l,t,null,!1)),(Qo[csNodenodeType.apply(c)]&r)!==0)return c}return null},visitAll(o){Qo[csNodenodeType.apply(i)]&r&&o(i);let c=this.nextNode();for(;c;){if((Qo[csNodenodeType.apply(c)]&r)===0){c=this.nextNode();continue}o(c),c=this.nextNode()}},find(o){let c;return this.visitAll(l=>o(l)&&(c=l)),c},collectAll(o){let c=[];return this.visitAll(l=>csArray.prototype.push.call(c,o?o(l):l)),c}}}function Dl(i){return i&&ld(i)?i.shadowRoot:null}var Ko=(()=>{var i;return(i=mt.Node)!==null&&i!==void 0?i:{}})(),ae=(()=>{var i;return(i=mt.NodeFilter)!==null&&i!==void 0?i:{}})(),Qo={2:ae.SHOW_ATTRIBUTE,4:ae.SHOW_CDATA_SECTION,8:ae.SHOW_COMMENT,11:ae.SHOW_DOCUMENT_FRAGMENT,9:ae.SHOW_DOCUMENT,10:ae.SHOW_DOCUMENT_TYPE,1:ae.SHOW_ELEMENT,[Ko.ENTITY_NODE]:ae.SHOW_ENTITY,[Ko.ENTITY_REFERENCE_NODE]:ae.SHOW_ENTITY_REFERENCE,[Ko.NOTATION_NODE]:ae.SHOW_NOTATION,7:ae.SHOW_PROCESSING_INSTRUCTION,3:ae.SHOW_TEXT};function Ao(i){let r=new ArrayBuffer(i.length),t=new Uint8Array(r);for(let e=0,s=i.length;e{let e=new csFileReader;e.onload=s=>{var n,o;if(typeof((n=s.target)===null||n===void 0?void 0:n.result)!="string")return t("Unexpected output: "+((o=s.target)===null||o===void 0?void 0:o.result));r(csString.prototype.split.call(s.target.result,",")[1])},e.readAsDataURL(new Blob([i]))})}function Rc(i){let r=mt.atob(i);return Ao(r)}function ro(i){let r=csArray.from(new Uint8Array(i));return csArray.prototype.join.call(csArray.prototype.map.call(r,t=>csString.prototype.padStart.call(t.toString(16),2,"0")),"")}function mm(i){let r=csString.prototype.split.call(i,";"),t=r[0],e=csArray.prototype.filter.call(csArray.prototype.slice.call(r,1),s=>csString.prototype.includes.call(s,"="));return csArray.prototype.join.call([t,...e],";")}function xl(i){let r=csString.prototype.indexOf.call(i,";base64,")!==-1,t=csString.prototype.indexOf.call(i,","),e=r?[csString.prototype.substring.call(i,0,t-7),csString.prototype.substring.call(i,t+1)]:[csString.prototype.substring.call(i,0,t),csString.prototype.substring.call(i,t+1)];if(!r&&/^%3Csvg/i.test(e[1]))try{e[1]=decodeURIComponent(e[1])}catch(o){ut.warn(`${o}, calling decodeURIComponent on: ${e[1]}`)}let n=r?Rc(e[1]):Ao(e[1]);return new Blob([n],{type:mm(csString.prototype.replace.call(e[0],"data:",""))})}var Ed=typeof performance!="undefined"&&!!performance.now,Ll=Ed?()=>performance.now():()=>Date.now(),ym=(()=>{var i,r;return Ed?(r=(i=performance.timing)===null||i===void 0?void 0:i.navigationStart)!==null&&r!==void 0?r:Math.floor(performance.timeOrigin):0})(),bo=34164e6,Em=2592e6,_m=2592e5,U={now(){return Math.round(Ll()+ym)},elapsed(){return Ll()}};function Vl(){return Math.floor(U.now()/1e3)}function vd(){return typeof mt.Promise=="function"}function Sd(){var i;return typeof crypto!="undefined"&&$e((i=crypto.subtle)===null||i===void 0?void 0:i.digest)}function Ul(){var i,r;return typeof((i=_w.navigation)===null||i===void 0?void 0:i.addEventListener)=="function"&&typeof((r=_w.navigation)===null||r===void 0?void 0:r.removeEventListener)=="function"}function Jt(i,r){return csString.prototype.lastIndexOf.call(i,r,0)===0}function ir(i,r){return csString.prototype.indexOf.call(i,r,i.length-r.length)!==-1}async function Hl(i,r){return ro(await _w.crypto.subtle.digest(i,r))}var vm=Number.MAX_SAFE_INTEGER||9007199254740991,fs={percentage(){return Math.floor(Math.random()*1e4)/100},boolean(i){return this.percentage(){let s=U.elapsed()-t;s>=ja&&G.counters.methodPerformance.add(r,s),s>Nn&&G.counters.blockingTime.push(s-Nn)});else{let s=U.elapsed()-t;s>=ja&&G.counters.methodPerformance.add(r,s),s>Nn&&G.counters.blockingTime.push(s-Nn)}return e}}var ne=function(i){return function(r,t,e){let s=e.value;e.value=un(s,i)}},di=(()=>{let i;return function(r){function t(){return!!Element.prototype.attachShadow}r.isSupported=t;function e(n){return n&&ld(n)?n.shadowRoot:null}r.getShadowRoot=e;function s(n){return ve(n,NodeFilter.SHOW_DOCUMENT_FRAGMENT).collectAll(o=>o.host)}r.getAllShadowHosts=un(s,"getAllShadowHosts")}(i||(i={})),i})(),Jo=(()=>{var i;return(i=mt.Node)!==null&&i!==void 0?i:Object})(),kt=(()=>{let i;return function(r){let t="isConnected"in Jo.prototype?T=>csNodeisConnected.apply(T):T=>!T.ownerDocument||!(T.ownerDocument.compareDocumentPosition(T)&T.DOCUMENT_POSITION_DISCONNECTED);function e(T,j){for(let z=T;z;z=csNodenextSibling.apply(z))j(T)}r.forEachChild=e;function s(T){return t(T)}r.isConnected=s;function n(T,j){let z=[];for(let K of l(T,j))csArray.prototype.push.call(z,K);return z}r.getAncestors=n;let o=(T,j)=>{var z;return(z=csNodeparentNode.apply(T))!==null&&z!==void 0?z:j&&pi(T)?T.host:null};function c(T,j,z=!1){let K=T;for(;K;){if(j(K))return K;let Pt=o(K,z);if(Pt&&Pt!==K)K=Pt;else break}return null}r.findAncestor=c;function*l(T,j=!1){let z=T;for(;z;){yield z;let K=o(z,j);if(K&&K!==z)z=K;else break}}r.walkUp=l;function u(T,j){if(T===j||j.contains(T))return!0;let z=r.getParentElement(T);return z&&z!==T?u(z,j):!1}r.isDescendantOf=u;function h(T){var j;return T.parentElement?T.parentElement:r.getRootNode(T)?(j=r.getRootNode(T))===null||j===void 0?void 0:j.host:null}r.getParentElement=h;function p(T,j=_d){let z=so(_w.csquerySelectorAll[j.nodeType].call(j,T)),K=di.getAllShadowHosts(j);for(let Pt of K){let Nt=di.getShadowRoot(Pt);if(!Nt)continue;let me=so(_w.csquerySelectorAll[Nt.nodeType].call(Nt,T));csArray.prototype.push.call(z,...me)}return z}r.findAllElements=p,r.getRootNode=(()=>{if("getRootNode"in Jo.prototype)return(z,K)=>z.getRootNode(K);function T(z){let K=j(z);return pi(K)?T(K.host):K}function j(z){return csNodeparentNode.apply(z)!=null?j(csNodeparentNode.apply(z)):z}return(z,K)=>typeof K=="object"&&!!K.composed?T(z):j(z)})();function E(T){return T==="transparent"||/^(rgba|hsla)\(\d+, \d+%?, \d+%?, 0\)$/.test(T)}function m(T){let j=T.getBoundingClientRect();return j.right+Ht.windowOffsetX()<0||j.bottom+Ht.windowOffsetY()<0}function S(T){var j,z;if(((j=T.checkVisibility)===null||j===void 0?void 0:j.call(T,{checkOpacity:!0,checkVisibilityCSS:!0}))===!1)return!0;if(!T.offsetParent){if(!T.getBoundingClientRect)return ut.warn(`SUP-11432: Element doesn't have getBoundingClientRect. Node: ${T instanceof Jo} Ctor: ${(z=T==null?void 0:T.constructor)===null||z===void 0?void 0:z.name}`),!1;let Nt=T.getBoundingClientRect();if(Nt.width===0&&Nt.height===0)return!0}let K=_w.getComputedStyle(T);return K?K.display==="none"||K.visibility==="hidden"||K.visibility==="collapse"||K.opacity==="0"||K.filter==="opacity(0)"||K.width==="0px"&&K.height==="0px"||E(K.color):!0}r.isHiddenByCSS=S;function A(T){if(S(T))return!0;let z=h(T);return z!=null&&A(z)}r.areAncestorsHiddenByCSS=A;function x(T){let j=null,z=T;do if(S(z))j=z;else break;while(z=h(z));return j}r.getTopAncestorHiddenByCSS=x;function I(T){let j=C(T);return j!==null&&!T.contains(j)&&!j.contains(T)}function C(T){let j=T.getBoundingClientRect(),z=j.left+.5*j.width,K=j.top+.5*j.height;return M(_d,z,K)}r.getTopElement=C;function H(T){if(!T.getBoundingClientRect)return null;let j=T.getBoundingClientRect(),z=j.x+j.width/2,K=j.y+j.height/2;return r.getTopElementFromPoint(_d,z,K)}r.getElementOnTop=H;function M(T,j,z){let K=T.elementFromPoint(j,z);if(!K)return null;let Pt=di.getShadowRoot(K);return Pt&&Pt!==r.getRootNode(_d.body)&&Pt!==T?M(Pt,j,z):K}r.getTopElementFromPoint=M;function N(T){return!m(T)&&!S(T)&&!I(T)}r.isVisibleInDocument=N;function W(T){return S(T)?!1:q(T)}r.isVisibleInViewportInForeground=W;function q(T){let j=C(T);return j===null?!1:T===j?!0:de(T)?T.textContent!==""&&j.contains(T):T.contains(j)}r.isInViewPort=q;function lt(T,j,z){let K=T.getAttributeNS(j,z);return K===""?T.hasAttributeNS(j,z)?K:null:K}r.getAttributeNS=lt;function Lt(T){return!!(T.hasAttribute("tabIndex")||T.getAttribute("contentEditable")==="true"||ad(T)&&T.hasAttribute("href")||(Yr(T)||to(T)||us(T)||xg(T))&&!T.hasAttribute("disabled")||Lg(T)||Vg(T))}r.isElementFocusable=Lt;function de(T){return T.localName==="span"||T.localName==="a"||T.localName==="b"||T.localName==="i"||T.localName==="button"||T.localName==="input"||T.localName==="label"||T.localName==="cite"||T.localName==="small"||T.localName==="strong"||T.localName==="code"||T.localName==="abbr"||T.localName==="em"||T.localName==="dfn"||T.localName==="time"||T.localName==="output"||T.localName==="object"||T.localName==="sub"}r.isInlineElement=de;function be(T){_d.readyState==="loading"?_d.addEventListener("DOMContentLoaded",()=>T(),{once:!0}):csSetTimeout(T)}r.onDocumentLoaded=be}(i||(i={})),i})(),wm=(()=>{class i{constructor(t){this.r_=t}run(t){let e=[...this.r_],s=kt.getAncestors(t,!1),n=s[s.length-1];for(;e.length>0&&s.length>0;){let o=csArray.prototype.shift.call(s),c=s[0]||null;if(this.n_(e,o,c,n),this.o_(e),e.length===0)break;s.length===0&&pi(o)&&(s=kt.getAncestors(o.host,!1),n=s[s.length-1])}}n_(t,e,s,n){for(let o of t)o.serializeElement(e,s,n)}o_(t){for(let e=0;e{let i;return function(r){r.INVALID_ELEMENT="INVALID_ELEMENT";function t(c){return!!c&&"localName"in c&&"getAttribute"in c&&"hasAttribute"in c&&"parentNode"in c}r.isValidElement=t;function e(c,l,u={fullPath:!1,dynamicIdRegex:null}){let h=o(c);if(h===_d)return{path:"",hierarchy:""};if(!t(h))return{path:r.INVALID_ELEMENT,hierarchy:r.INVALID_ELEMENT};let p=new am(u),E=new cm(l);return new wm([p,E]).run(h),{path:p.getPath(),hierarchy:E.getPath()}}r.getElementPathAndHierarchy=e;function s(c,l={fullPath:!1,dynamicIdRegex:null}){let u=o(c);if(u===_d)return"";if(!t(u))return r.INVALID_ELEMENT;let{ancestors:h,selectionRoot:p}=ud(u);return io(h,p,l)}r.getElementPath=s;function n(c,l={fullPath:!1,dynamicIdRegex:null}){let u=o(c);if(u===_d)return{path:"",firstAnchorParent:null};if(!t(u))return{path:r.INVALID_ELEMENT,firstAnchorParent:null};let{firstAnchorParent:h,ancestors:p,selectionRoot:E}=Gg(u);return{path:io(p,E,l),firstAnchorParent:h}}r.getElementPathAndFirstAnchorParent=n;function o(c){return c&&"jquery"in c&&c.length===1?c[0]:c}}(i||(i={})),i})();_w.CSPathComputation=_w.CSPathComputation||Vi;var Ad=k(857).al,Am=/[a-zA-Z0-9._%+-]+(?:@|%40|%2540)[a-zA-Z0-9.%-_]+((?:\.|%2[eE])[a-zA-Z0-9-]+)+/g,bm=/[a-zA-Z0-9+_-](?:@|%40|%2540)/,Tm="CS_ANONYMIZED_EMAIL",Zo="([-A-Za-z0-9+/=_]|=[^=]|={3,})+",Rm=new Ad(`(ey${Zo}\\.ey${Zo}\\.${Zo})`,"g"),Cm="CS_ANONYMIZED_JWT",Im=/[0-9]{4}/,Pm=/(^|[^a-zA-Z0-9*.,-])([45*][0-9*]{3}([ -]?)[0-9*]{4}\3[0-9*]{4}\3[0-9*]{4})($|[^a-zA-Z0-9*.,-])/g,Nm="CS_ANONYMIZED_PII",Om="\u2022",Mm=/\d/g,Dm=/([+(]{0,2}\d[-_ ()/]{0,4}){9,}/,km=/(?:\d{1,3}\.){3}\d{1,3}/,xm=/(?:[A-F0-9]{1,4}:){7}[A-F0-9]{1,4}/,Lm=new Ad("(?:^|[?&#]|%3[fF]|%2[36])(?:id_token|access_token|refresh_token|auth_token)(=|%3[dD]).*?(?=%2[36]|&|$)","gi"),Vm=/_token/i,Um="CS_ANONYMIZED_TOKEN",We=(()=>{let i;return function(r){function t(E){return csString.prototype.replace.call(E,Am,Tm)}r.replaceEmail=t;function e(E){return csString.prototype.replace.call(E,Rm,Cm)}r.replaceJWT=e;function s(E,m){return csString.prototype.replace.call(E,Pm,m)}r.replaceCreditCardNumber=s;function n(E){return csString.prototype.replace.call(E,Mm,Om)}r.replaceDigits=n;function o(E){return csString.prototype.replace.call(E,Lm,function(m){let S=csString.prototype.match.call(m,/%3d/i),A=S?S[0]:"=";return csString.prototype.split.call(m,A)[0]+A+Um})}r.replaceTokens=o;function c(E){return km.test(E)||xm.test(E)}r.mayHaveIPAddress=c;function l(E){return Dm.test(E)}r.mayHaveNumberSequence=l;function u(E){return Im.test(E)}r.mayHaveCreditCardNumber=u;function h(E){return bm.test(E)}r.mayHaveEmail=h;function p(E){return Vm.test(E)}r.mayHaveToken=p}(i||(i={})),i})(),Be=(()=>{class i{hasPII(t,e){let s=this.checkAndAnonymizePII(t,e);return t!==s}checkAndAnonymizePII(t,e=null){let s=this.a_(this.nl(t));return e===!0?s=this.c_(s):e===!1&&(s=this.l_(s)),s}anonymizePII(t){return this.nl(t)}anonymizeJwt(t){return We.replaceJWT(t)}anonymizeTokens(t){return We.mayHaveToken(t)?We.replaceTokens(t):t}anonymizeFields(t,e){return csArray.prototype.forEach.call(e,s=>{t[s]=this.nl(t[s])}),t}nl(t){if(We.mayHaveEmail(t)){let e=We.replaceEmail(t);return e!==t&&G.counters.redactedPII.count("email"),e}return t}c_(t){return We.replaceDigits(t)}l_(t){return We.mayHaveNumberSequence(t)?We.replaceDigits(t):t}a_(t){return We.mayHaveCreditCardNumber(t)?We.replaceCreditCardNumber(t,(e,s,n,o,c)=>{if(csString.prototype.indexOf.call(n,"*")===-1){let u=o.length?csArray.prototype.join.call(csString.prototype.split.call(n,o),""):n;if(!this.u_(u))return e;G.counters.redactedPII.count("cc")}else G.counters.redactedPII.count("cc-partial");return`${s}${Nm}${c}`}):t}u_(t){let e=parseInt(t[t.length-1]),s=0;for(let n=t.length-2;n>=0;n--){let o=parseInt(t[n]);n%2===0&&(o*=2),s+=Math.floor(o/10)+o%10}return 10-s%10===e}}return i})(),bd="15.229.4+fix-36b17b73";function Cc(){return{v:bd}}var Td=(()=>{class i{constructor(t,e){this.E=t,this.O=e}getRequestParameters(){return{d:`${U.now()}`,p:this.O.anonymizePII(_w.location.href),...this.E.getRequestParameters(),...Cc()}}}return i})(),Hm="No stacktrace",jm="No context";function Rd(i,r){return Je(i)?`${i.stack||Hm} ${r}`:r||jm}function Ic(i,r,t){let e=Je(r)?i.anonymizePII(r.message||r.toString()):r;return t&&(e+=` ErrorCode: ${t}`),e}var Cd=k(857)._R;function jl(){}function $a(i,r){return csString.prototype.lastIndexOf.call(i,r,0)===0}function $m(i,r){return csString.prototype.indexOf.call(i,r,i.length-r.length)!==-1}var ta=Symbol("cachedJson");function Bm(i){if(i[ta])return i[ta];if(csArray.isArray(i)){if(i.length===0)return"[]";let r="["+Ue(i[0]);for(let t=1;t{class i{constructor(t,e){this.domainUri=t,this.path=e,this.beforeRequestCallbacks=[],this.afterRequestCallbacks=[]}setRequestParametersProviders(...t){this.requestParametersProviders=t}before(t){csArray.prototype.push.call(this.beforeRequestCallbacks,t)}after(t){csArray.prototype.push.call(this.afterRequestCallbacks,t)}retrieveParameters(){return this.requestParametersProviders?csArray.prototype.reduce.call(csArray.prototype.map.call(this.requestParametersProviders,t=>t.getRequestParameters()),(t,e)=>({...t,...e})):{}}}return i})(),Jr=(()=>{let i;return function(r){function t(e){return csArray.prototype.join.call(csArray.prototype.map.call(Object.keys(e),s=>`${encodeURIComponent(s)}=${encodeURIComponent(e[s])}`),"&")}r.toQuery=t}(i||(i={})),i})(),Zr=(()=>{class i extends Id{constructor(t,e){super(t,e)}send(){csArray.prototype.forEach.call(this.beforeRequestCallbacks,s=>s());let t=this.retrieveParameters();this.ol(t);let e=Jr.toQuery(t);this.h_(e),csArray.prototype.forEach.call(this.afterRequestCallbacks,s=>s())}h_(t){let e=new _w.Image(1,1);e.onload=jl,e.onerror=jl,csHTMLImageElementsrc.call(e,`${this.domainUri}${this.path?`/${this.path}`:""}?${t}`)}ol(t){t.r=csString.prototype.slice.call(`${Math.random()}`,2,8)}}return i})(),Pd=(()=>{class i{constructor(t,e){this.Ke=t,this.d_=e}init(){this.Bt=new Zr(this.Ke.getLoggerUri()),this.Bt.setRequestParametersProviders(this,this.d_)}send(t){this.da=t,this.Bt.send()}getRequestParameters(){return{a:this.da.app,l:this.da.level,m:this.da.message,s:this.da.stacktrace}}}return i})(),Gm="uxa",Nd=(()=>{class i{constructor(t){if(this.Bt=null,this.O=new Be,!!t)try{let e=new Td(t,this.O);this.Bt=new Pd(t,e),this.Bt.init()}catch{this.Bt=null}}send(t,e,s){if(this.Bt)try{let n={message:Ic(this.O,t,e),stacktrace:Rd(t),app:Gm,level:s};this.Bt.send(n);return}catch{}}}return i})(),Od=["t.contentsquare.net","clicktale"],zm=i=>{var r;if(typeof i.filename=="string"&&csArray.prototype.some.call(Od,t=>csString.prototype.indexOf.call(i.filename,t)>-1)&&!(csString.prototype.indexOf.call(i.filename,"blob")>-1&&(i.message==null?void 0:csString.prototype.indexOf.call(i.message,"importScripts"))>-1)){let t=new Error(i.message);t.stack=(r=i.error)===null||r===void 0?void 0:r.stack,$.critical(t)}};_w.addEventListener("error",zm);var $=(()=>{class i{constructor(){}static whiteListFilename(t){csArray.prototype.push.call(Od,t)}static setStrategy(t){i.Ds=t}static computeIsActive(t){i.ks=fs.boolean(t),i.ks?i.al=fs.boolean(10):i.al=!1}static isLoggingActive(){return i.ks}static getStrategy(){return i.Ds}static debug(t,e=""){i.ks&&this.Ds.send(t,e,Et.debug)}static warn(t,e=!0,s=""){var n,o;G.counters.errors.count("warning"),i.ks&&e&&this.Ds.send(t,s,Et.warn),(o=(n=_w.UXAnalytics)===null||n===void 0?void 0:n.Console)===null||o===void 0||o.warn(t)}static implementation(t,e=""){G.counters.errors.count("implementation"),i.ks&&this.Ds.send(t,e,Et.implementation)}static error(t,e=""){var s,n;G.counters.errors.count("error"),i.ks&&this.Ds.send(t,e,Et.error),(n=(s=_w.UXAnalytics)===null||s===void 0?void 0:s.Console)===null||n===void 0||n.error(t)}static critical(t,e=""){G.counters.errors.count("critical"),this.Ds.send(t,e,Et.critical)}static tryToExecute(t,e){return function(...s){try{let n=e.apply(this,s);return ft(mt.Promise)&&n instanceof mt.Promise?n.then(o=>o,o=>i.error(Je(o)?o:new Error(o),t)):n}catch(n){try{i.error(Je(n)?n:new Error(n),t)}catch{}}}}static isPerfLoggingActive(){return i.al}}return i.Ds=new Nd,i.ks=!1,i.al=!1,i})();var Nr=void 0,ea=()=>{if(!Nr){try{let i=_w.performance;if(i!=null&&typeof i.now=="function")return Nr=i.now.bind(i),Nr()}catch{}Nr=()=>Date.now()}return Nr()},qm=k(64).pu;function Wm(i){return Symbol(i)}var Fm=20,Ii=i=>{var r;return Md(i)?(r=i.name)!==null&&r!==void 0?r:"anonymous":csString(i)},Md=i=>typeof i=="function"&&i.prototype&&i.prototype.constructor===i,Ym=i=>typeof i=="object"&&i!==null&&"__optional"in i,Xm=i=>{let r=i.prototype;return r!=null&&r.__module===!0},Km=i=>{var r,t;let e=i.prototype,s=(r=e.imports)!==null&&r!==void 0?r:[];return{providers:(t=e.providers)!==null&&t!==void 0?t:[],imports:csArray.prototype.filter.call(s,n=>!!n),exports:e.exports}},Qm=i=>{var r;let t=(r=i.prototype.imports)!==null&&r!==void 0?r:[];return csArray.prototype.filter.call(t,e=>!!e)},Jm=i=>{let r=i;return r===csString||r===Number||r===Boolean||r===Object||r===csArray||r===Symbol||r===BigInt},Pc=(()=>{class i{constructor(){this.Ne=new Map,this.cl=new Set,this.hi=new Map,this.ll=new Map,this.xs=new Map,this.Fd=new Map,this.ul=0,this.Ne.set(i,{type:"factory",provider:()=>this,token:i,instance:this})}register(t,e,s){if(Md(t)){let n=e!=null?e:t,o={type:"class",provider:t,token:n};if(this.Ne.has(n))throw new Error(`Token "${Ii(n)}" is already registered`);this.Ne.set(n,o),n!==t&&this.Ne.set(t,o)}else{if(e===void 0)throw new Error("A token is required when registering a factory function");this.Ne.set(e,{type:"factory",provider:t,token:e,deps:s})}}override(t,e){this.Ne.set(t,{type:"factory",provider:()=>e,token:t,instance:e})}registerModule(t){if(this.cl.has(t))return;this.cl.add(t);let{providers:e,imports:s,exports:n}=Km(t);for(let c of s)this.registerModule(c);this.Fd.set(t,s),n!==void 0&&this.ll.set(t,new Set(n));let o=new Map;this.xs.set(t,o),o.set(t,{type:"class",provider:t,token:t}),this.hi.set(t,t);for(let c of e)c&&this.f_(t,o,c);this.p_(t,o,s)}p_(t,e,s){for(let n of s){let o=this.xs.get(n);if(o){for(let c of o.keys())if(c!==n&&this.Yd(n,c)&&!this.Ne.has(c)&&e.has(c))throw new Error(`Duplicate provider: "${Ii(c)}" is provided by "${t.name}" and also exported by imported module "${n.name}". Remove it from one of them.`)}}}f_(t,e,s){if(typeof s=="function"){let n=s;if(typeof n.useFactory=="function")s={provide:s.provide||s,useFactory:n.useFactory.bind(n),inject:n.inject};else{e.set(s,{type:"class",provider:s,token:s}),this.hi.set(s,t);return}}if("useClass"in s){let n=s.provide,o={type:"class",provider:s.useClass,token:n};e.set(n,o),n!==s.useClass&&(e.set(s.useClass,o),this.hi.set(s.useClass,t)),this.hi.set(n,t)}else if("useValue"in s){let n=s.provide;e.set(n,{type:"factory",provider:()=>s.useValue,token:n}),this.hi.set(n,t)}else if("useFactory"in s){let n=s.provide;e.set(n,{type:"factory",provider:s.useFactory,token:n,deps:s.inject}),this.hi.set(n,t)}}dl(t,e){let s=this.Ne.get(t);if(s)return{registration:s,owningModule:e};let n=this.xs.get(e);if(n!=null&&n.has(t))return{registration:n.get(t),owningModule:e};let o=this.pl(e);for(let c of o)if(this.Yd(c,t)){let l=this.xs.get(c);if(l!=null&&l.has(t))return{registration:l.get(t),owningModule:c};let u=this.dl(t,c);if(u)return u}}Yd(t,e){return this.ll.has(t)?this.ll.get(t).has(e):!0}pl(t){var e;return(e=this.Fd.get(t))!==null&&e!==void 0?e:[]}async resolve(t){this.ul=ea();let e=this.Ne.has(t)?void 0:this.hi.get(t);return this.gl(t,new Set,e)}async gl(t,e,s){if(t==null)return;if(e.has(t))throw new Error(`Circular dependency detected for token: ${Ii(t)}`);let n=this.fa();n&&await n;let o,c=s;if(s){let h=this.dl(t,s);h&&(o=h.registration,c=h.owningModule)}else o=this.Ne.get(t);if(o||this.g_(t,e,s),o.instance!==void 0)return o.instance;if(o.resolving)return o.resolving;e.add(t);let u=(async()=>{var h,p;try{let E;if(o.type==="factory"){let m=o.provider,S=(h=o.deps)!==null&&h!==void 0?h:[],A=await this.Xd(S,e,c);E=await m(...A)}else{let m=o.provider,S=(p=m.$deps)!==null&&p!==void 0?p:[];await this.m_(m,e);let A=await this.Xd(S,e,c);E=new m(...A),await this.y_(E)}return o.instance=E,E}finally{o.resolving=void 0,e.delete(t)}})();return o.resolving=u,u}async Xd(t,e,s){let n=[];for(let o of t){let c=this.fa();c&&await c;let l,u;if(Ym(o)?(l=o.__optional,u=!0):(l=o,u=!1),Jm(l)){let p=csArray.prototype.join.call(csArray.prototype.map.call(csArray.from(e),Ii)," -> "),E=p?` Resolution path: ${p} -> ${Ii(l)}`:"";throw new Error(`Cannot resolve primitive type: ${Ii(l)}. Use @Inject with a token instead.${E}`)}if(u&&!(s?this.dl(l,s)!==void 0:this.Ne.has(l))){csArray.prototype.push.call(n,void 0);continue}let h=await this.gl(l,e,s);csArray.prototype.push.call(n,h)}return n}async m_(t,e){if(!Xm(t))return;let s=Qm(t);for(let n of s){let o=this.fa();o&&await o,await this.gl(n,e,n)}}async y_(t){t!==null&&typeof t=="object"&&"onInit"in t&&typeof t.onInit=="function"&&await t.onInit()}g_(t,e,s){let n=Ii(t),o=csArray.prototype.join.call(csArray.prototype.map.call(csArray.from(e),Ii)," -> "),c=o?` Resolution path: ${o} -> ${n}`:"";if(s){let l=this.pl(s);for(let h of l){let p=this.xs.get(h);if(p!=null&&p.has(t))throw new Error(`Module boundary violation: "${n}" is not exported from module "${h.name}". Add it to ${h.name}'s exports array to make it accessible.${c}`)}let u=this.hi.get(t);if(u)throw new Error(`Module boundary violation: "${n}" is provided by "${u.name}" but "${s.name}" does not import "${u.name}".${c}`)}throw new Error(`No registration found for token: ${n}${c}`)}fa(){if(ea()-this.ul>=Fm)return this.ul=ea(),qm.yield()}E_(t){var e;let s=this.Ne.get(t);if(s)return s;let n=this.hi.get(t);if(n)return(e=this.xs.get(n))===null||e===void 0?void 0:e.get(t)}getDeps(t){var e,s;let n=this.E_(t);return n?n.type==="class"?(e=n.provider.$deps)!==null&&e!==void 0?e:[]:(s=n.deps)!==null&&s!==void 0?s:[]:[]}has(t){return this.Ne.has(t)?!0:this.hi.has(t)}async bootModules(){var t,e;let s=new Set,n=[],o=c=>{if(!s.has(c)){s.add(c);for(let l of this.pl(c))o(l);csArray.prototype.push.call(n,c)}};for(let c of this.cl)o(c);for(let c of n){let l=this.fa();l&&await l;let u=(e=(t=this.xs.get(c))===null||t===void 0?void 0:t.get(c))===null||e===void 0?void 0:e.instance;u!=null&&typeof u=="object"&&"onBootstrap"in u&&typeof u.onBootstrap=="function"&&await u.onBootstrap()}}}return i})();async function Zm(i){let r=new Pc;r.registerModule(i);let t=await r.resolve(i);return await r.bootModules(),t}var Nc=(()=>{class i extends Error{constructor(t,e,s){super(e),this.level=t,this.code=s}}return i})(),$l=(()=>{class i extends Nc{constructor(t){super(Et.warn,`Tracking not allowed: ${t||"Unknown reason"}`,"NOT_ALLOWED_TO_TRACK")}}return i})(),ty=(()=>{class i extends Nc{constructor(t){super(Et.error,`protectNativeFunctions failed: ${t}`,"NATIVE_PROTECTION_FAILED")}}return i})();function ey(i){if(i instanceof Nc)switch(i.level){case Et.debug:ut.debug(i.message,i.code);return;case Et.warn:ut.warn(i.message,!0,i.code);return;case Et.error:ut.error(i,i.code);return;case Et.critical:ut.critical(i,i.code);return}ut.critical(i,"UNEXPECTED_ERROR")}function L(i,r,t,e){var s=arguments.length,n=s<3?r:e===null?e=Object.getOwnPropertyDescriptor(r,t):e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,r,t,e);else for(var c=i.length-1;c>=0;c--)(o=i[c])&&(n=(s<3?o(n):s>3?o(r,t,n):o(r,t))||n);return s>3&&n&&Object.defineProperty(r,t,n),n}var no;(function(i){i.replayRecordingUnmaskedUrlRegex="replayRecordingUnmaskedUrlRegex",i.replayRecordingMaskedUrlRegex="replayRecordingMaskedUrlRegex",i.replayRecordingUnmaskedUrlRegexRules="replayRecordingUnmaskedUrlRegexRules",i.replayRecordingMaskedUrlRegexRules="replayRecordingMaskedUrlRegexRules"})(no||(no={}));var Bl;(function(i){i.START="start",i.NOT_START="not-start",i.END="end",i.NOT_END="not-end",i.CONTAIN="contain",i.NOT_CONTAIN="not-contain",i.EXACT="exact",i.NOT_EXACT="not-exact"})(Bl||(Bl={}));var iy=k(857).Jx;function Pe(i){return Jt(i,"data:")}function sy(i){return Jt(i,"#")}function ry(i){return!!i&&(ir(i,".css")||Jt(i,"https://fonts.googleapis.com/css"))}function ny(i=location.href){let r={};return new iy(i).searchParams.forEach((t,e)=>r[e]=t),r}var Gl=k(857).al,oy=["id","class","style","srcset","sizes","rel","type","width","height","media","align","dir","bgcolor","color","border","colspan","rowspan","cols","rows","size","start","slot","data-cs-override-id"],Oc=i=>{let r=new Set(oy);return csArray.prototype.forEach.call(i,t=>{r.add(t)}),r},ay=["svg","slot"],cy=(i,r,t)=>t==="radio"&&i==="input"&&r==="name"||csArray.prototype.indexOf.call(ay,i)>-1,Dd={href:new Set(["a"]),src:new Set(["iframe"])},ly=i=>Dd.hasOwnProperty(i),uy=(i,r,t)=>{var e;return((e=Dd[r])===null||e===void 0?void 0:e.has(i))&&!Pe(t)},hy=(i,r,t)=>(t==="submit"||t==="button")&&i==="input"&&r==="value";function ia(i){return i?dy(i):null}function dy(i){try{let r=/^\/(.*)\/([gim]*)$/.exec(i);if(r){let[,t,e]=r;return new Gl(`^${t}$`,e)}return new Gl(`^${i}$`)}catch{return null}}var kd=Wm("CS_CONF");var fy=/^\d+\.\d+(?:\.\d+)?$/,py=i=>{if(!fy.test(i))return;let[r,t,e]=csArray.prototype.map.call(csString.prototype.split.call(i,"."),Number);return{major:r,minor:t,patch:!e||Number.isNaN(e)?0:e}},gy=(i,r)=>i.major!==r.major?i.major-r.major:i.minor!==r.minor?i.minor-r.minor:i.patch-r.patch,my=(i,r)=>gy(i,r)>=0,zl=k(857).al,yy=1,Ba=(()=>{let i;return function(r){r[r.Disabled=0]="Disabled",r[r.ButtonAndLinkOnly=1]="ButtonAndLinkOnly",r[r.Enabled=2]="Enabled"}(i||(i={})),i})(),oo=(()=>{let i;return function(r){r[r.Automatic=1]="Automatic",r[r.Manual=2]="Manual"}(i||(i={})),i})(),ht=(()=>{class i{constructor(t){var e,s,n,o,c,l,u,h,p,E;this.isChild=!1,this.isSMB=!!t.isSMB,this.trackerDomain=t.trackerDomain,this.dynamicConfDomain=t.dynamicConfDomain,this.settingsFileUri=t.settingsFileUri,this.tagDomain=t.tagDomain,this.loggerDomain=t.ed,this.minLogLevel=t.logLevel,this.projectId=t.projectId,this.smbConfig=t.smbConfig,this.status=t.status,this.hostnames=t.hostnames,this.iframesTracking=!!t.iframesTracking,this.crossDomainTracking=!1,this.crossDomainSingleIframeTracking=!!t.crossDomainSingleIframeTracking,this.consentRequired=t.anonymisationMethod===no.replayRecordingUnmaskedUrlRegexRules||t.anonymisationMethod===no.replayRecordingUnmaskedUrlRegex||t.anonymisationMethod===null&&!!t.consentRequired,this.allowSubdomains=!!t.allowSubdomains,this.visitorCookieTimeout=t.visitorCookieTimeout||bo,this.sampleRate=t.sampleRate,this.replayRecordingRate=t.replayRecordingRate,this.validationRate=t.validationRate,this.lastTrackingDraw=t.lastTrackingDraw||1,this.useHttps=!0,this.eMerchandisingEnabled=!1,this.jsErrorsEnabled=!0,this.collectionEnabled=!!((n=(e=t.collectionEnabled)!==null&&e!==void 0?e:(s=t.smbConfig)===null||s===void 0?void 0:s.record)!==null&&n!==void 0&&n),this.apiErrors={enabled:0,...t.apiErrors},this.customErrors={enabled:0,...t.customErrors},this.jsCustomErrorsEnabled=t.jsCustomErrorsEnabled,this.triggerSessionReplayEnabled=t.triggerSessionReplayEnabled,this.triggerSessionReplayRegex=ia(t.triggerSessionReplayRegex),this.dynamicIdRegex=t.dynamicIdRegex?new zl(t.dynamicIdRegex):null,this.whitelistedAttributes=t.whitelistedAttributes||[],this.replayRecordingUnmaskedUrlRegex=ia(t.replayRecordingUnmaskedUrlRegex),this.replayRecordingMaskedUrlRegex=ia(t.replayRecordingMaskedUrlRegex),this.replayRecordingMaskedUrlRegexRules=t.replayRecordingMaskedUrlRegexRules||null,this.replayRecordingUnmaskedUrlRegexRules=t.replayRecordingUnmaskedUrlRegexRules||null,this.anonymisationMethod=t.anonymisationMethod||null,this.tagDeploymentMode=t.tagDeploymentMode,this.dualCollectionTagDomain=t.dualCollectionTagDomain||null,this.ptcDomain=t.ptcDomain||null,this.ptcGuid=t.ptcGuid||null,this.secureCookiesEnabled=!!t.secureCookiesEnabled,this.ptcSha512=t.ptcSha512||null,this.ptcSnapshotPath=t.ptcSnapshotPath||null,this.emitDebugEvents=!1,this.staticResourceManagerDomain=t.staticResourceManagerDomain||null,this.malkaRecordingDomain=t.malkaRecordingDomain||null,this.textVisibilityEnabled=!1,this.experimental=t.experimental||{},this.malkaEtrEnabled=!!t.malkaEtrEnabled,this.malkaUrlEnabled=!!t.malkaUrlEnabled,this.recordingUrlRules=(o=t.recordingUrlRules)!==null&&o!==void 0?o:[],this.cookielessTrackingEnabled=t.cookielessTrackingEnabled,this.customHashIdEnabled=!!t.customHashIdEnabled,this.encryptionEnabled=!1,this.encryptionPublicKey=t.recordingEncryptionPublicKey||null,this.pathComputationRules=t.pathComputationRules||{},t.pathComputationRules&&t.pathComputationRules.dynamicElementNameRegex===""&&(this.pathComputationRules.dynamicElementNameRegex=null),t.pathComputationRules&&t.pathComputationRules.dynamicElementNameRegex&&(this.pathComputationRules.dynamicElementNameRegex=new zl(t.pathComputationRules.dynamicElementNameRegex)),this.asyncSerializerEnabled=!!t.asyncSerializerEnabled,this.encryptionPublicKeyId=t.recordingEncryptionPublicKeyId,this.pendingInactivityTimeout=t.pendingInactivityTimeout||5e3,this.accessibilityEnabled=!1,this.useStaticResourceManager=!0,this.uxaDomain=t.uxaDomain,this.environment=((c=t.uxaDomain)===null||c===void 0?void 0:c.indexOf("staging"))>-1?"staging":"production",this.performanceTimingOptions=t.performanceTimingOptions,this.replayConsentRequiredForSession=!!t.replayConsentRequiredForSession,this.isWebView=!1,t.displayAdOptions&&t.displayAdOptions.length&&(this.displayAdOptions=t.displayAdOptions),t.voc&&(this.voc={...t.voc,enabled:!!t.voc.enabled}),this.vocData=t.vocData,t.heapEnvironment&&(this.heapEnvironment=t.heapEnvironment),t.implementations&&t.implementations.length&&(this.implementations=t.implementations),this.eventsApiEnabled=!1,this.anonymizeDigits=(l=t.anonymizeDigits)!==null&&l!==void 0?l:null,this.isHeapPresent=_w.heap!==void 0,this.recordTargetingRules=(u=t.recordTargetingRules)!==null&&u!==void 0?u:[],this.paProxyDomainUri=t.paProxyDomainUri||null,this.emitRecordInfoEvents=t.emitRecordInfoEvents!==!1,this.collectHierarchy=!!t.collectHierarchy,this.collectSubmit=!!t.collectSubmit,this.collectTargetText=(h=t.collectTargetText)!==null&&h!==void 0?h:Ba.Disabled,this.identityEncryptionKey=t.identityEncryptionKey||null,this.tagVerificationDomain=t.tagVerificationDomain,this.tagVerificationEnabled=!0,this.trackingCodeVerified=!!t.trackingCodeVerified,this.quotas=(p=t.quotas)!==null&&p!==void 0?p:null,this.startMode=(E=t.startMode)!==null&&E!==void 0?E:oo.Automatic,this.eventEnricher=t.eventEnricher||null,this.experiments=t.experiments||null}getTrackerUri(){return`${this.es()}://${this.trackerDomain}`}getRecordingUri(){return`${this.es()}://${this.malkaRecordingDomain}`}getLoggerUri(){return`${this.es()}://${this.loggerDomain}`}getMetricsUri(){return`${this.es()}://${this.loggerDomain}/metrics`}getStaticResourceManagerUri(){return`${this.es()}://${this.staticResourceManagerDomain}`}getVerificationEndpoint(){return`${this.es()}://${this.tagVerificationDomain}`}getSettingsFileUri(){return this.settingsFileUri?this.settingsFileUri:`${this.es()}://${this.dynamicConfDomain}/${this.projectId}.json`}isQuotaEnabled(){return this.isSMB||this.quotas!==null}getPaProxyDomainUri(){return`${this.es()}://${this.paProxyDomainUri}`}es(){return this.useHttps?"https":"http"}isProjectActive(){return this.status===yy}onInit(){var t;!((t=_w._uxa)===null||t===void 0)&&t.forEach&&_w._uxa.forEach(([e,...s])=>{if(e==="setOption"){let[n,o]=s;this.__(n,o)}else e==="setIframeAutonomous"&&(this.allowSubdomains=!1,this.iframesTracking=!1)})}__(t,e){t==="trackerDomain"&&(this.trackerDomain=e),t==="loggerDomain"&&(this.loggerDomain=e),t==="malkaRecordingDomain"&&(this.malkaRecordingDomain=e),t==="staticResourceManagerDomain"&&(this.staticResourceManagerDomain=e),t==="minLogLevel"&&(this.minLogLevel=e),t==="useHttps"&&(this.useHttps=!!e),t==="isWebView"&&(this.isWebView=e),t==="dynamicConfDomain"&&(this.dynamicConfDomain=e),t==="paProxyDomainUri"&&(this.paProxyDomainUri=e),t==="allowSubdomains"&&(this.allowSubdomains=!!e),t==="iframesTracking"&&(this.iframesTracking=!!e),t==="startMode"&&hs(e)&&csArray.prototype.includes.call(Object.values(oo),e)&&(this.startMode=e)}getRequestParameters(){return{pid:`${this.projectId}`}}updateDynamicFields(t,e){t==="emitDebugEvents"&&(this.emitDebugEvents=e),t==="minLogLevel"&&(this.minLogLevel=e)}isCsSideloadingHeap(){return!1}isHeapSideloadsCs(){return!1}isHeapSideloadsCsV5(){return!1}isHeapSideloadsStartDataCollection(){if(this.isHeapSideloadsCs()){if(this.v_())return!0;let t=py(this.getHeapVersion()||"");if(t&&t.major===4&&my(t,{major:4,minor:23,patch:5}))return!0}return!1}v_(){var t;return typeof((t=_w.heap)===null||t===void 0?void 0:t.getUserId)=="function"}getHeapVersion(){var t,e,s,n,o,c;return typeof((t=_w.heap)===null||t===void 0?void 0:t.getConfig)=="function"&&((n=(s=(e=_w.heap)===null||e===void 0?void 0:e.getConfig())===null||s===void 0?void 0:s.sdk)===null||n===void 0?void 0:n.version)||((c=(o=_w.heap)===null||o===void 0?void 0:o.version)===null||c===void 0?void 0:c.heapJsVersion)||void 0}isCsCrosswritingHeap(){return!1}getHeapStorageLocation(){var t,e;return(e=(t=this.heapEnvironment)===null||t===void 0?void 0:t.heap_storage_location)!==null&&e!==void 0?e:null}getHeapWebAppUri(){return this.getHeapStorageLocation()==="eu-west-1"?"https://eu.heapanalytics.com":"https://heapanalytics.com"}isCollectTargetTextEnabled(){return this.collectTargetText!==Ba.Disabled}isNetworkDetailsEnabled(){return this.performanceTimingOptions?this.performanceTimingOptions.withResource||this.performanceTimingOptions.withNavigation:!1}hasRecordingUrlRules(){return this.recordingUrlRules.length>0}hasTargetingRules(){var t;return!!(!((t=this.recordTargetingRules)===null||t===void 0)&&t.length)}getHeapEnvId(){return this.heapEnvironment?this.heapEnvironment.env_id:""}}return i.$deps=[kd],i})(),Qs=(()=>{class i{constructor(t,e){this.Ar=t,this.Kd=e}onInit(){this.Qd=this.Ar!==this.Ar.top,this.Jd=this.Kd.isWebView&&this.Ar===this.Ar.top,this.Kd.iframesTracking&&this.Qd&&!this.S_()||this.Jd?this.Zd=!1:this.Zd=!0}isInIframeContext(){return this.Qd}isTopWindowTracker(){return this.Zd}isInWebViewContext(){return this.Jd}S_(){var t,e,s;let n=!1;try{n=$e((e=(t=this.Ar.top)===null||t===void 0?void 0:t.$A)===null||e===void 0?void 0:e.createComponent)||at((s=this.Ar.top)===null||s===void 0?void 0:s.LWR)}catch{}return n}}return i.$deps=[Window,ht],i})(),To=(()=>{class i{}return i})(),sr=(()=>{class i{setItem(t,e){_w.sessionStorage.setItem(t,e)}getItem(t){return _w.sessionStorage.getItem(t)}removeItem(t){_w.sessionStorage.removeItem(t)}}return i.$deps=[],i})(),hn=(()=>{let i;return function(r){r.UNCOMPRESSED="0",r.GZIP="2"}(i||(i={})),i})(),dn=(()=>{class i{}return i})(),Ey=k(857)._R,_y=2e4,ao=(()=>{class i{constructor(t){var e,s;this.Qe={},this.ml={},this.tf=n=>{for(let o of n){let{metadata:c,events:l}=o;this.send(l,c)}},this.Ls=t.endpoint,this.Rn=t.compressionOpts,this.de=t.recoveryStorage,this.mandatoryParameters=(e=t.mandatoryParameters)!==null&&e!==void 0?e:[],this.yl=t.contentType,this.worker=!!t.worker,this.El=(s=t.disableRequestCounting)!==null&&s!==void 0?s:!1,this.de&&this.de.recover(this.tf)}setQueryParams(t){csArray.prototype.forEach.call(Object.keys(t),e=>{this.Qe[e]=t[e]})}removeQueryParams(t){t?csArray.prototype.forEach.call(t,e=>{delete this.Qe[e]}):this.Qe={}}send(t,e){t=t!=null?t:"";let s=e||{...this.Qe},n=!("ct"in s),o=this.yl==="application/json"||typeof t!="string"&&!this.w_(t);"ct"in s||(!this.Rn||!n?s.ct=hn.UNCOMPRESSED:s.ct=this.Rn.compressionType);let c=o?Ey.stringify(t):t,l=csArray.prototype.join.call(csArray.prototype.map.call(Object.keys(s),p=>`${encodeURIComponent(p)}=${encodeURIComponent(s[p])}`),"&"),u=`${this.Ls}?${l}`;if(md(this.mandatoryParameters,p=>s[p]==null)){ut.warn(`[${this.worker?"WORKER":"MAIN"}] All mandatory parameters are not present on ${u}`);return}let h=p=>typeof p=="string"?p.length:p.byteLength;G.counters.payloadSize.add(h(c),u,"raw"),this.Rn&&n&&typeof c=="string"?this.Rn.compressor(c,this.Rn.compressionOutputType,p=>{G.counters.payloadSize.add(h(p),u,"compressed"),this.ef(u,s,p)}):this.ef(u,s,c)}onLoad(t){this.br=t}onError(t){this.Cn=t}onTimeout(t,e){this.Vs=t,this.pa=e}abort(){this.sf&&this.sf()}setRequestHeader(t,e){this.ml[t]=e}getQueryParams(){return this.Qe}w_(t){return t&&t.byteLength!==void 0}ef(t,e,s){let n=new XMLHttpRequest,o=csArray.prototype.join.call(csArray.prototype.map.call(Object.keys(e),c=>`${encodeURIComponent(c)}=${encodeURIComponent(e[c])}`),"&");n.open("POST",t,!0),this.yl&&n.setRequestHeader("Content-Type",this.yl),n.onload=()=>{if(this.de&&this.de.recover(this.tf),this.br){let c={params:e,responseText:n.responseText,status:n.status};this.br(c)}this.El||G.counters.requestCounts.count(this.Ls)},n.onerror=()=>{this.de&&this.de.save({key:o,metadata:e,events:s}),this.El||G.counters.requestErrors.count(this.Ls),this.Cn&&this.Cn({params:e})},n.timeout=this.pa||_y,n.ontimeout=()=>{this.El||G.counters.requestTimeouts.count(this.Ls),this.Vs&&this.Vs()},this.sf=()=>n.abort(),csArray.prototype.forEach.call(Object.keys(this.ml),c=>{n.setRequestHeader(c,this.ml[c])}),n.send(s)}}return i})(),ql="cs_verify_install_auto",Wl="cs_verify_install",vy="csqVerifyInstall",Sy="csqVerifyUUID",wy="hjVerifyInstall",Ay="hjVerifyUUID",xd=(()=>{class i{constructor(t,e){this.E=t,this.xt=e}verifyInstallation(){var t;let e=ny(),s=e[vy]||e[wy]||"",n=e[Sy]||e[Ay]||"",o,c=0;try{o=this.xt.getItem(Wl)}catch{}if(s||o){if(c=Number(s||o)||0,s)try{this.xt.setItem(Wl,s)}catch{}if(((t=_w.CSQ_TAGS)===null||t===void 0?void 0:t.length)>1){this.A_(c,n);return}this.b_(c,n)}}verifyInstallationAuto(){if(this.E.trackingCodeVerified)return;let t=null;try{t=this.xt.getItem(ql)}catch{}let e=`${this.E.projectId}`;if(!t||t!==e){let s=new ao({endpoint:this.T_(),contentType:"application/json"});s.send({}),s.onLoad(()=>{this.xt.setItem(ql,e)}),s.onError(n=>{$.error(`Failed to report verification results: ${n}`,"verifyInstallationAuto")})}}T_(){return`${this.E.getVerificationEndpoint()}/v2/projects/${this.E.projectId}/verify-installation/auto`}R_(t){return`${this.E.getVerificationEndpoint()}/v1/verification/${t}/result`}rf(t,e){this.Tr({title:"Contentsquare installation invalid",message:"The tracking code you are trying to verify does not match the one installed on this page. Please make sure you install the correct tracking code provided for this site.",status:"bad"}),this.In({verifyUUID:e,status:"wrong_code",detail:{expected:csString(t),actual:csString(this.E.projectId)}});let s=`Passed projectId: ${t} != Configured Site ${this.E.projectId}`;$.error(s,"verifyInstallation")}A_(t,e){let s=csArray.prototype.filter.call(_w.CSQ_TAGS,function(u,h){return csArray.prototype.indexOf.call(_w.CSQ_TAGS,u)===h}),n="You have "+_w.CSQ_TAGS.length+" tracking scripts installed on your site. ",o=!!_w.dataLayer,c;s.length>1?(c=n+"Please remove the duplicate scripts to prevent data collection issues.",this.Tr({title:"Multiple different Contentsquare scripts detected",message:c,status:"bad"}),this.In({verifyUUID:e,status:"multiple_codes",detail:{expected:csString(t),actual:csArray.prototype.map.call(s,csString),gtm:!1}})):o?(c=n+"If you've installed Contentsquare through GTM - please remove the duplicate scripts to prevent data collection issues.",this.Tr({title:"Multiple Contentsquare scripts detected",message:c,status:"bad"}),this.In({verifyUUID:e,status:"multiple_codes",detail:{expected:csString(t),actual:csArray.prototype.map.call(s,csString),gtm:!0}})):t===this.E.projectId?(c=n+"This will not affect data collection, but we do suggest removing redundant scripts.",this.Tr({title:"Multiple Contentsquare scripts detected",message:c,status:"warning"}),this.In({verifyUUID:e,status:"warning",detail:{expected:csString(t),reason:"multiple scripts"}})):this.rf(t,e);let l="Passed Site ID: "+t+" contains multiple scripts "+csArray.prototype.join.call(_w.CSQ_TAGS,", ");$.error(l,"verifyInstallation")}b_(t,e){if(t===this.E.projectId){let s=()=>this.Tr({title:"Contentsquare installation verified",message:"The Contentsquare tracking code has been properly installed on this page. Browse your site in this window if you wish to verify installation on any other pages.",status:"good"}),n=()=>this.Tr({title:"Error reporting verification results",message:"There was an error reporting the verification result. Please try again.",status:"bad"});this.In({verifyUUID:e,status:"ok",onSuccess:s,onError:n})}else this.rf(t,e)}C_(t){switch(t){case"good":return"\u2705";case"bad":return"\u274C";case"warning":return"\u26A0\uFE0F";default:return"\u2139\uFE0F"}}Tr({title:t,message:e,status:s}){let o=`${this.C_(s)} ${t} ${e}`;_w.alert(o)}In({verifyUUID:t,detail:e,status:s,onSuccess:n,onError:o}){if(!t)return;let c=new ao({endpoint:this.R_(t),contentType:"application/json"}),l={...e&&{error_detail:e},status:s};c.send(l),c.onLoad(u=>{u.status<400?n&&n():o&&o()}),c.onError(u=>{$.error(`Failed to report verification results: ${u}`,"verifyInstallation"),o&&o()})}}return i.$deps=[ht,sr],i})(),Rt=(()=>{class i extends Error{constructor(t,e){let s=e?`Command misuse: ${t} - ${e}`:`Command misuse: ${t}`;super(s),this.name="MisusedCommandError"}}return i})(),sa;function re(i){if(sa||(sa=_d.createElement("div")),!(!!i&&O(i)))return ut.warn(`isValidSelector: invalid selector provided '${i}'`),!1;try{return we.call(sa,i),!0}catch{return ut.warn(`isValidSelector: invalid selector provided '${i}'`),!1}}function Js(i,r){if(Il)return Il.call(i,r);let t=i;do{if(we.call(t,r))return t;t=t==null?void 0:t.parentElement}while(t!==null&&csNodenodeType.apply(t)===1);return null}function by(i,r){if(i===r)return!0;if(i==null||r==null||typeof i!=typeof r||typeof i!="object"||csArray.isArray(i)!==csArray.isArray(r))return!1;if(csArray.isArray(i))return i.length!==r.length?!1:csArray.prototype.every.call(i,(s,n)=>s===r[n]);let t=Object.keys(i),e=Object.keys(r);return t.length!==e.length?!1:csArray.prototype.every.call(t,s=>i[s]===r[s])}function is(i,r=15){if(!i||typeof i!="object")return i;let t=[],e=n=>{if(csArray.isArray(n))return csArray.from(n);let o={},c=Object.keys(n);if(c.length>0&&csArray.prototype.push.call(t,{source:n,target:o,keys:c,index:0})>r){let u=csArray.prototype.join.call(csArray.prototype.map.call(t,h=>h.keys[h.index-1]),".");throw new Error(`Too deep object to clone probably due to circular reference at "${u.length>100?csString.prototype.slice.call(u,0,100)+"...":u}"`)}return o},s=e(i);for(;t.length>0;){let n=t[t.length-1];if(n.index>=n.keys.length){csArray.prototype.pop.call(t);continue}let o=n.keys[n.index++],c=n.source[o];if(!c||typeof c!="object"){n.target[o]=c;continue}let l=e(c);n.target[o]=l}return s}function Ld(i){for(let r in i)if(i[r]!==void 0)return!0;return!1}function Vd(i,r){if(csArray.isArray(i)&&csArray.isArray(r))return i.length!==r.length||csArray.prototype.some.call(i,(s,n)=>s!==r[n])?is(r):void 0;let t={},e=new Set([...Object.keys(i||{}),...Object.keys(r||{})]);for(let s of e){let n=i[s],o=r[s];if(n===o)continue;let c=typeof n;if(c!==typeof o)n===void 0&&o!==void 0?t[s]=o:n!==void 0&&o===void 0&&(t[s]=null);else if(c==="object"&&n&&o){let u=Vd(n,o);u!==void 0&&(t[s]=u)}else t[s]=is(o)}return Ld(t)?t:void 0}function Ud(i,r){let t=r,e=i,s;for(let n in t){let o=t[n];if(o===null)n in e&&(s||(s={...e}),delete s[n]);else if(o!==void 0){let c=e[n];if(c&&typeof c=="object"&&o&&typeof o=="object"&&!csArray.isArray(c)&&!csArray.isArray(o)){let l=Ud(c,o);l!==c&&(s||(s={...e}),s[n]=l)}else c!==o&&(s||(s={...e}),s[n]=o)}}return s!=null?s:e}function Hd(i){let r=null;return t=>t?r=t:r||(r=i())}var Ty=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function Ry(i){return csString.prototype.indexOf.call(i,"-")>0&&csString.prototype.indexOf.call(i,":")===-1&&csString.prototype.indexOf.call(i,'"')===-1&&csString.prototype.indexOf.call(i,",")===-1&&!Ty.has(i)}var Us=Hd(()=>new WeakMap),ra=Hd(()=>new Set),as=(()=>{let i;return function(r){function t(h){return Us().get(h)}r.getAll=t;function e(h,p){var E;return(E=Us().get(h))===null||E===void 0?void 0:E[p]}r.get=e;function s(h,p,E){let m=Us().get(h);m||Us().set(h,m={}),!by(m[p],E)&&(m[p]=E,c(h))}r.set=s;function n(h,p){let E=Us().get(h);E&&(delete E[p],c(h))}r.remove=n;function o(){Us(new WeakMap)}r.reset=o;function c(h){for(let p of ra())p(h)}function l(h){ra().add(h)}r.subscribe=l;function u(h){ra().delete(h)}r.unsubscribe=u}(i||(i={})),i})(),Dt=(()=>{let i;return function(r){function t(l,u,h){var p;if(zn(l))as.set(l,u,h);else{let E=l;(p=E.props)!==null&&p!==void 0||(E.props={}),E.props[u]=h}}r.setProperty=t;function e(l,u){var h;return zn(l)?as.get(l,u):(h=l.props)===null||h===void 0?void 0:h[u]}r.getProperty=e;function s(l){return zn(l)?as.getAll(l):l.props}r.getProperties=s;function n(l,u){let h=null;return o(l,(p,E,m)=>u(p)&&(h=p)&&!!m()),h}r.findDescendant=n;function o(l,u){c(l,void 0,u)}r.traverse=o;function c(l,u,h){let p=!1;if(h(l,u,()=>p=!0),p)return;let m=l.shadowRoot;m&&c(m,l,h);let S=l.children;if(S!=null&&S.length){for(let A of S)if(A&&(c(A,l,h),p))break}}}(i||(i={})),i})(),B=(()=>{let i;return function(r){let t;(function(I){I[I.NotMasked=0]="NotMasked",I[I.Parent=1]="Parent",I[I.Child=2]="Child"})(t=r.MaskedElementState||(r.MaskedElementState={})),r.maskedProp="masked",r.maskedAttributeProp="maskedAttribute";function e(I){return Ks(I)&&"Attributes"in I&&"PIISelectors"in I?I.Attributes instanceof Array&&I.PIISelectors instanceof Array:!1}r.isSelectorUserInput=e;function s(I){if(!Ks(I)||I===null)throw new Rt("setPIISelectors");return"Attributes"in I||(I.Attributes=[]),"PIISelectors"in I||(I.PIISelectors=[]),I}r.sanitizeSelectorUserInput=s;function n(I){var C,H,M;return"nodeType"in I?(C=Dt.getProperty(I,r.maskedProp))!==null&&C!==void 0?C:{state:t.NotMasked}:(M=(H=I.metadata)===null||H===void 0?void 0:H[r.maskedProp])!==null&&M!==void 0?M:{state:t.NotMasked}}r.getMaskedElementDetails=n;function o(I){var C,H,M;return"nodeType"in I?(C=Dt.getProperty(I,r.maskedAttributeProp))!==null&&C!==void 0?C:{attributes:[]}:(M=(H=I.metadata)===null||H===void 0?void 0:H[r.maskedAttributeProp])!==null&&M!==void 0?M:{attributes:[]}}r.getMaskedAttributeDetails=o;function c(I){let C=Dt.getProperty(I,r.maskedProp);return(C==null?void 0:C.state)===t.Parent}r.isMaskedElement=c;function l(I){let C=Dt.getProperty(I,r.maskedProp);return(C==null?void 0:C.state)===t.Child}r.isMaskedElementChild=l;function u(I,C){let H=Dt.getProperty(I,r.maskedAttributeProp);return((H==null?void 0:H.attributes)==null?void 0:csArray.prototype.indexOf.call(H==null?void 0:H.attributes,C))>-1}r.isMaskedAttribute=u;function h(I,C){Dt.setProperty(I,r.maskedProp,C)}r.setMaskedElementProperty=h;function p(I){Dt.setProperty(I,r.maskedProp,void 0)}r.unsetMaskedElementProperty=p;function E(I,C){Dt.setProperty(I,r.maskedAttributeProp,C)}r.setMaskedAttributeProperty=E;function m(I,C){let H=csArray.prototype.filter.call(I.PIISelectors,W=>re(W));C.elementSelector.length>0&&csArray.prototype.push.call(H,...csString.prototype.split.call(C.elementSelector,","));let M=x([...H]),N={elementSelector:csArray.prototype.join.call(M,","),attrSelector:C.attrSelector,attrSelectors:C.attrSelectors};return csArray.prototype.forEach.call(I.Attributes,W=>{W!=null&&W.attrName&&(W!=null&&W.selector)&&re(W.selector)&&!S(N.attrSelectors,W)&&csArray.prototype.push.call(N.attrSelectors,W)}),N.attrSelector=A(N.attrSelectors),N}r.getComputedSelectorSettings=m;function S(I,C){return csArray.prototype.some.call(I,H=>H.selector===C.selector&&H.attrName===C.attrName)}function A(I){let C="";return csArray.prototype.forEach.call(I,H=>{let M=csString.prototype.split.call(H.selector,",");csArray.prototype.forEach.call(M,N=>{re(N)&&(C&&(C+=","),C+=N)})}),C}function x(I){if(I.length<=1)return I;let C=[];for(let H of I){let M=csString.prototype.split.call(H,",");for(let N of M)csArray.prototype.indexOf.call(C,N)===-1&&csArray.prototype.push.call(C,N)}return C}}(i||(i={})),i})(),ss=(()=>{let i;return function(r){let t="{domain}/tag/tag.bundle.js?v={version}",e,s={loadBundle(C){let H=C.source,M=C.data;if(c(M)){let N=()=>{let W=n(t,M);E(W,()=>H.postMessage("csBundleLoaded",C.origin))};e=M.token,I(s.loadBundle),l(C.origin)&&N()}}};function n(C,H){return csString.prototype.replace.call(csString.prototype.replace.call(csString.prototype.replace.call(C,"{version}",H.version),"{token}",H.token),"{domain}",H.domain)}function o(){return e}r.getToken=o;function c(C){return C&&C.type==="csBundleInjection"&&l(C.domain)&&h(C.version)&&u(C.token)}r.isAuthorizedIncomingMessage=c,r.hjDomainRegex=/^https?:\/\/[a-zA-Z0-9\.\-]+\.hotjar\.com$/;function l(C){return/^https?:\/\/[a-zA-Z0-9\.\-]+\.(content-square\.fr|contentsquare\.com|csq\.io)$/.test(C)||r.hjDomainRegex.test(C)}r.isAuthorizedDomain=l;function u(C){return/^[a-zA-Z0-9]+$/.test(C)}r.isAuthorizedToken=u;function h(C){return/^[a-zA-Z0-9\.]+$/.test(C)}r.isAuthorizedTagVersion=h;function p(){let C=_w.opener||_w.parent;return _w!==C&&_w.addEventListener}r.isActivable=p;function E(C,H){let M=_d.createElement("script");M.type="text/javascript",M.async=!0,M.src=C,M.onload=H,M.charset="utf-8",_d.head.appendChild(M)}r.addScript=E;function m(C){let H=_d.createElement("link");H.rel="stylesheet",H.href=C,_d.head.appendChild(H)}r.addStyle=m;function S(C){return`${C}?cb=${new Date().getTime()}`}r.addCacheBusting=S;function A(){x(s.loadBundle)}r.waitForBundleInjection=A;function x(C){_w.addEventListener("message",C,!1)}r.listen=x;function I(C){_w.removeEventListener("message",C,!1)}r.removeListener=I}(i||(i={})),i})(),Fl="_hp_ved",Cy=18e5,Iy="/js/ved.js",Py="/css/ved.css",Ny="/js/ved.css",Oy=(()=>{let i;return function(r){r.StatusUpdate="status"}(i||(i={})),i})(),My=(()=>{let i;return function(r){r.ReceivedInitMessage="received_init_message"}(i||(i={})),i})(),Dy=k(857).al;var na=(()=>{let i;return function(r){let t=!1,e;function s(E){return e+E}function n(){let E=[s(Py),s(Ny)];csArray.prototype.forEach.call(E,m=>{ss.addStyle(m)})}function o(E){let m=new Dy("(^|;)[ ]*"+E+"=([^;]*)"),S=m.exec(_d.cookie);return S?decodeURIComponent(S[2]):null}function c(E,m,S){let A=encodeURIComponent(E)+"="+encodeURIComponent(m),x=new Date;x.setTime(x.getTime()+S);let I=A+"; expires="+x.toUTCString()+"; path=/";_d.cookie=I}function l(){c(Fl,"on",Cy)}function u(){return o(Fl)==="on"}r.isVLCookieEnabled=u;function h(E){_w.heapV=Object.assign({},_w.heap,{source:E==null?void 0:E.source,uri:e,loadArgs:E==null?void 0:E.data.args,identify:()=>{},track:()=>{}})}r.initializeHeapV=h;function p(E,m){var S;if(e=E,m){let A={type:Oy.StatusUpdate,value:My.ReceivedInitMessage},x={targetOrigin:m==null?void 0:m.origin};(S=m==null?void 0:m.source)===null||S===void 0||S.postMessage(A,x)}t||(t=!0,l(),h(m),_w.heapV&&(ss.addScript(s(Iy)),n()))}r.init=p}(i||(i={})),i})(),ky=(()=>{let i;return function(r){let t=_w.opener||_w.parent,e="tag",s="https://app.contentsquare.com",n=[/^https:\/\/app\.contentsquare\.com$/,/^https:\/\/dev-app\.contentsquare\.com$/,/^https:\/\/staging-app\.contentsquare\.com$/,/^https:\/\/.*\.test\.contentsquare\.com$/,/^https:\/\/app\.[a-z0-9-]+\.csiab\.[a-z0-9-]+\.csq\.io$/,ss.hjDomainRegex],o,c,l,u={initHeapVisualLabeler(N){var W;N.origin===l&&((W=N.data)===null||W===void 0?void 0:W.message)==="init"&&N.source&&(na.init(l,N),C(u.initHeapVisualLabeler))},ping(N){typeof N.data=="string"&&N.data==="ping"&&E(N.origin)&&(c=N.origin,o=ss.hjDomainRegex.test(N.origin)?s:N.origin,C(u.ping),I(u.insertMessageScript),m(ss.addCacheBusting("utils.js")))},insertMessageScript:H(N=>{typeof N.data=="string"&&N.data!=="ping"&&(C(u.insertMessageScript),m(N.data))})};function h(){return ss.getToken()}r.getToken=h;function p(){return _w!==t&&_w.addEventListener}r.isActivable=p;function E(N){return csArray.prototype.some.call(n,W=>W.test(N))}r.isAuthorizedDomain=E;function m(N,W){let q=_d.createElement("script");q.type="text/javascript",q.async=!0;let lt=o==null?void 0:csString.prototype.replace.call(o,/^https?:/,"");q.src=`${lt}/${e}/${N}`,q.onload=W,q.charset="utf-8",_d.getElementsByTagName("head")[0].appendChild(q),S(N)}function S(N){csString.prototype.includes.call(N,"&mode=")&&sessionStorage.setItem("_hjRetakerMode",csString.prototype.split.call(N,"&mode=")[1])}function A(){I(u.ping),ss.waitForBundleInjection()}r.waitForConnection=A;function x(N){l=N,I(u.initHeapVisualLabeler),na.isVLCookieEnabled()&&na.init(l)}r.waitForHeapVisualLabeler=x;function I(N){_w.addEventListener("message",N,!1)}r.listen=I;function C(N){_w.removeEventListener("message",N,!1)}r.removeListener=C;function H(N){return function(W){W.origin===c&&N(W)}}r.secureListener=H;function M(N){c&&t.postMessage(N,c)}r.post=M}(i||(i={})),i})();var On=_w.CSFrameCommunication||ky,Yl=(()=>{class i{constructor(t,e,s,n){this.E=t,this.pt=e,this.I_=s,this.nf=n}start(){var t,e,s;if(_w.CSQ_TAGS=csArray.prototype.concat.call(_w.CSQ_TAGS||[],this.E.projectId),_w.UXAnalytics)return;_w.UXAnalytics={},!((t=_w.CSProtectnativeFunctionsLogs)===null||t===void 0)&&t.Warning&&$.warn(`protectNativeFunctions failed: ${_w.CSProtectnativeFunctionsLogs.Warning}`),this.pt.isInWebViewContext()||((e=this.nf)===null||e===void 0||e.verifyInstallationAuto(),(s=this.nf)===null||s===void 0||s.verifyInstallation()),this.I_.init();let n=csString.prototype.indexOf.call(_w.location.href,"csDebug=1")>-1;_w.UXAnalytics={Sensitive:{isNodeSensitive(o){return B.isMaskedElement(o)||B.isMaskedElementChild(o)},isAttributeSensitive(o,c){return B.isMaskedAttribute(o,c)},getSensitiveAttributes(o){return Ha(o.attributes,c=>B.isMaskedAttribute(o,c.name))}},Console:{warn(o){n&&console.warn("cs.tracking.warning",o)},error(o){n&&console.error("cs.tracking.error",o)}},Version:bd},_w.CSFrameCommunication||(_w.CSFrameCommunication=On,On.isActivable()&&On.waitForConnection(),this.E.isCsCrosswritingHeap()&&On.waitForHeapVisualLabeler(this.E.getHeapWebAppUri()))}}return i.$deps=[ht,Qs,To,{__optional:xd}],L([ne("main.start"),V("main.start")],i.prototype,"start",null),i})();function Bt(i){return r=>(r.prototype.__module=!0,i.providers&&(r.prototype.providers=i.providers),i.imports&&(r.prototype.imports=i.imports),i.exports&&(r.prototype.exports=i.exports),r)}var{logger:Vr,setLogger:x0}=on("domListeners"),jr;function xy(i){return jr=i,()=>{jr===i&&(jr=void 0)}}function jd(i,r){try{jr?jr(r,i):i()}catch(t){Vr.error(`Error in ${r.type}/${r.type==="intercept"?r.method:r.name}`,t)}}function Ly(i){if(_d!=null&&_d.prerendering){_d.addEventListener("prerenderingchange",i,{once:!0});return}i()}var Ga=!1;function Vy(){Ga=!0}function Tt(){return(i,r,t)=>{if(t){let e=t.value;t.value=function(s,n){(s==null?void 0:s.isTrusted)===!1&&Ga||e.call(this,s,n)}}else{let e=i[r];if(typeof e!="function")return;i[r]=function(s,...n){(s==null?void 0:s.isTrusted)===!1&&Ga||e.call(this,s,n)}}}}function he(i,r,t){return t?{provide:i,useFactory:r,inject:t}:{provide:i,useFactory:r}}var $d=":";function Xl(i){let r=[],t=Uy(i),e=csString.prototype.split.call(t,"/");for(let s of e)Jt(s,$d)?csArray.prototype.push.call(r,{key:s,value:`CS_ANONYMIZED_${csString.prototype.toUpperCase.call(csString.prototype.slice.call(s,1))}`}):csArray.prototype.push.call(r,{key:s,value:null});return r}function Uy(i){let r=i;return Jt(i,"/")&&(r=csString.prototype.substring.call(r,1)),ir(i,"/")&&(r=csString.prototype.slice.call(r,0,-1)),r}var Hy=/\b((?:profile|user|last|first|primary|primary(?:[/_+-]|%20)?last)(?:[/_+-]|%20)?(?:name)[/=])[^#;?&/]+/gi,jy="$1CS_ANONYMIZED_NAME",tn=(()=>{class i{constructor(t){this.O=t}anonymizeUrl(t,e={}){let s=e.maskingPatterns||[],n=e.partialMaskingPatterns||[],o=this.O.anonymizePII(t);if(o=this.O.anonymizeJwt(o),o=this.O.anonymizeTokens(o),e.maskNames){let u=o;o=this.Pn(o),o!==u&&(G.counters.redactedPII.count("name"),G.counters.redactedPII.count("name-in-url"))}let c=this.P_(o,s);if(c!==o)return G.counters.redactedPII.count("url"),c;let l=this.N_(o,n);return l!==o&&G.counters.redactedPII.count("url"),l}removeQueryString(t){let{path:e,queryString:s}=this._l(t);return s!==""?`${e}?`:e}_l(t){let e=csString.prototype.indexOf.call(t,"?"),s,n="";return e!==-1?(s=csString.prototype.slice.call(t,0,e),n=csString.prototype.slice.call(t,e,t.length)):s=t,{path:s,queryString:n}}P_(t,e){if(e.length===0)return t;let{path:s,queryString:n}=this._l(t),o=csString.prototype.split.call(s,"/");for(let c of e){let l=this.O_(o,c);if(l!==null)return`${l}${n}`}return t}O_(t,e){if(t.length=e.length){csArray.prototype.push.call(s,o);continue}let c=e[n].key;if(this.of(c)){let l=e[n].value;csArray.prototype.push.call(s,l);continue}if(o===c){csArray.prototype.push.call(s,o);continue}return null}return csArray.prototype.join.call(s,"/")}N_(t,e){if(e.length===0)return t;let{path:s,queryString:n}=this._l(t),o=csString.prototype.split.call(s,"/");for(let c of e)o=this.M_(o,c);return`${csArray.prototype.join.call(o,"/")}${n}`}M_(t,e){let s=[],n=0,c=t[0]==="http:"||t[0]==="https:"?2:0;for(let l=0;l=c){let p=e[n].value;csArray.prototype.push.call(s,u.length>0?p:""),n++,n===e.length&&(n=0);continue}if(u===h){csArray.prototype.push.call(s,u),n++,n===e.length&&(n=0);continue}for(let p=0;p{let i;return function(r){r[r.page=1]="page",r[r.onNextPageviewOnly=2]="onNextPageviewOnly"}(i||(i={})),i})(),ys=(()=>{class i{constructor(t,e){this.Gt=t,this.ft=e,this.D_=10}overridePath(t,e){if(t===""){this.ss=void 0;return}let s=this.af(e);s&&(this.vl=s),this.ss=e?this.cf(t,e):t}overrideQuery(t,e){let s=this.af(e);s&&(this.Sl=s),this.Nn=e?this.cf(t,e):t}computeOverriddenUrl(t){return this.k_(t)?this.getAnonymizedUrl():t}x_(t){return(typeof t=="string"||typeof t=="number")&&t in oa}k_(t){let e=this.ga(this.Gt.href);return this.ga(t)===e}ga(t){return $m(t,"/")?csString.prototype.slice.call(t,0,-1):t}af(t){return ft(t==null?void 0:t.lifespan)&&this.x_(t==null?void 0:t.lifespan)?t==null?void 0:t.lifespan:null}L_(){return this.vl&&this.vl in oa}V_(){return this.Sl&&this.Sl in oa}cleanupOverrideLifespan(){this.L_()&&(this.ss=void 0,this.vl=void 0),this.V_()&&(this.Nn=void 0,this.Sl=void 0)}getAnonymizedUrl(){let t=Kl(this.Gt,this.ss,this.Nn);return this.ft.anonymizeUrl(t)}getUrl(){return Kl(this.Gt,this.ss,this.Nn)}getAnonymizedPathAndQuery(){let t=ft(this.ss)?za(this.ss):this.Gt.pathname,e=ft(this.Nn)?Bd(this.Nn):this.Gt.search;return this.ft.anonymizeUrl(t+e)}getPath(){return ft(this.ss)?za(this.ss):this.Gt.pathname}getUrlProtocol(){return this.Gt.protocol}getRequestParameters(){return{url:this.getAnonymizedUrl()}}cf(t,e){return this.U_(e)?this.H_(t):this.j_(e)?this.$_(t):t}j_(t){return!!t.decodeURI}$_(t){return this.lf(t,1,!1)}U_(t){return!!t.decodeURIDeep}H_(t){return this.lf(t,this.D_,!0)}lf(t,e,s){let n=t;for(let o=0;o{let i;return function(r){r.None="None",r.Lax="Lax",r.NotSet="X"}(i||(i={})),i})(),Ke=(()=>{let i;return function(r){r[r.Yes=1]="Yes",r[r.No=0]="No"}(i||(i={})),i})(),Mt=(()=>{let i;return function(r){r.CURRENT_DOMAIN="CURRENT_DOMAIN";function t(l){let h=new $y(`(^|;)[ ]*${l}=([^;]*)`).exec(_d.cookie);return h?decodeURIComponent(h[2]):null}r.get=t;function e(l,u,h,p,E,m){let S=encodeURIComponent(`${u}`),A=h===r.CURRENT_DOMAIN?void 0:h,x=s(p),I=x?`;expires=${x.toUTCString()}`:"",C=";path=/",H=It(A)?`;domain=${A}`:"",M=`${l}=${S}${I}${C}${H}`;return ft(E)&&E!==xi.NotSet&&(M=`${M};SameSite=${E}`),ft(m)&&m===Ke.Yes&&(M=`${M};Secure`),_d.cookie=M,!0}r.set=e;function s(l){return jt(l)?new Date(U.now()+l):l}r.toExpireDate=s;function n(l,u){t(l)&&e(l,"",u,new Date(0)),t(l)&&e(l,"",u,new Date(0),xi.None,Ke.Yes)}r.remove=n;function o(){return _d.cookie.length>0}r.isCookiePresent=o;function c(l,u){let h="_cs_root-domain",p=t(h);if(p!==null&&p!=="1")return p;let E=csString.prototype.split.call(_w.location.hostname,"."),m=csArray.prototype.pop.call(E);for(;E.length&&(p===null||p==="1");)m=csArray.prototype.join.call([csArray.prototype.pop.call(E),m],"."),e(h,m,m,void 0,l,u),p=t(h);return n(h,m),m}r.getRootDomain=c}(i||(i={})),i})(),Hs="_cs_t",Ql="1",Mc=(()=>{class i{constructor(t,e){this.pt=t,this.E=e,this.ma=!1,this.ya=!1}onInit(){if(!this.E.cookielessTrackingEnabled&&this.pt.isTopWindowTracker()&&"cookie"in _d){if(!this.pt.isInIframeContext()&&Mt.isCookiePresent()){this.ma=!0,this.ya=!1;return}if(Mt.set(Hs,Ql,Mt.CURRENT_DOMAIN),Mt.get(Hs)!==null){this.ma=!0,this.ya=!1,Mt.remove(Hs,Mt.CURRENT_DOMAIN);return}Mt.set(Hs,Ql,Mt.CURRENT_DOMAIN,void 0,xi.None,Ke.Yes),Mt.get(Hs)!==null&&(this.ma=!0,this.ya=!0,Mt.remove(Hs,Mt.CURRENT_DOMAIN))}}areCookiesEnabled(){return this.ma}isSameSiteNoneSecureNeeded(){return this.ya}}return i.$deps=[Qs,ht],i})(),By=(()=>{class i{get(t){return Mt.get(t)}}return i.$deps=[],i})(),Gy=(()=>{let i;return function(r){function t(){return _w.navigator.vendor&&csString.prototype.indexOf.call(_w.navigator.vendor,"Apple")>-1&&_w.navigator.appVersion&&csString.prototype.indexOf.call(_w.navigator.appVersion,"Version/12.")>-1}r.browserIsSafariV12=t}(i||(i={})),i})(),Ge=(()=>{class i extends By{constructor(t,e,s){super(),this.E=t,this.A=e,this.On=s,this.wl=!1,this.uf=xi.NotSet,this.Al=Ke.No}getSameSiteFlag(){return this.uf}getSecureFlag(){return this.Al}getDomain(){return this.bl}getRootDomain(){return this.hf}init(){if(this.E.cookielessTrackingEnabled)return;let t=this.B_(),e=this.G_();this.wl=this.z_(t,e),this.wl?(this.uf=t,this.Al=e):this.E.secureCookiesEnabled&&this.A.getUrlProtocol()==="https:"&&(this.Al=Ke.Yes),this.hf=this.q_(),this.bl=this.W_(this.hf)}z_(t,e){return Gy.browserIsSafariV12()?!1:(Mt.set(i.COOKIE_TEST_FOR_SAME_SITE,"Test same site",i.CURRENT_DOMAIN,void 0,t,e),Mt.get(i.COOKIE_TEST_FOR_SAME_SITE)?(Mt.remove(i.COOKIE_TEST_FOR_SAME_SITE,i.CURRENT_DOMAIN),!0):!1)}B_(){return this.A.getUrlProtocol()==="http:"?xi.Lax:this.On.isSameSiteNoneSecureNeeded()||this.E.crossDomainTracking?xi.None:xi.Lax}G_(){return this.A.getUrlProtocol()==="http:"?Ke.No:this.E.secureCookiesEnabled||this.E.crossDomainTracking||this.On.isSameSiteNoneSecureNeeded()?Ke.Yes:Ke.No}isSameSiteSupported(){return this.wl}set(t,e,s,n){let o=Mt.toExpireDate(s),c=n?Ke.Yes:this.getSecureFlag();Mt.set(t,e,this.bl,o,this.getSameSiteFlag(),c)}delete(t,e){let s=e||this.bl;Mt.remove(t,s)}q_(){let t=this.On.isSameSiteNoneSecureNeeded()&&this.isSameSiteSupported(),e=t?xi.None:void 0,s=t?Ke.Yes:void 0;return Mt.getRootDomain(e,s)}W_(t){return this.E.allowSubdomains?t:Mt.CURRENT_DOMAIN}}return i.$deps=[ht,ys,Mc],i.CURRENT_DOMAIN="CURRENT_DOMAIN",i.COOKIE_TEST_FOR_SAME_SITE="_cs_same_site",i})(),L0=k(64).SV;var X=(()=>{let i;return function(r){r.QUOTA_REACHED="X",r.RECORDING_RULES_TARGETING="8",r.ANALYTICS_ONLY_RULES_TARGETING="9",r.ANALYTICS_ONLY_RECORDING_PENDING_RULES_TARGETING="P",r.ANALYTICS_ONLY="0",r.RECORDING_GLOBAL_SAMPLING="5",r.RECORDING_URL_SAMPLING="6",r.RECORDING_ETR_SAMPLING="7"}(i||(i={})),i})();function Gd(i){return i===X.ANALYTICS_ONLY_RECORDING_PENDING_RULES_TARGETING}function Dc(i){return i===X.RECORDING_GLOBAL_SAMPLING||i===X.RECORDING_RULES_TARGETING||i===X.RECORDING_URL_SAMPLING||i===X.RECORDING_ETR_SAMPLING}var zy={[X.RECORDING_RULES_TARGETING]:X.RECORDING_GLOBAL_SAMPLING},Ui=(()=>{let i;return function(r){r.ETR_OFF="0",r.ETR_ON="1"}(i||(i={})),i})(),Hi=(()=>{let i;return function(r){r.ETR_LEGACY="0",r.ETR_SESSION="1",r.ETR_PAGE="2"}(i||(i={})),i})(),ge=(()=>{let i;return function(r){r.ETR_DISABLED="0",r.ETR_PENDING="1",r.ETR_SAVED_PAGE="2",r.ETR_SAVED_SESSION="3",r.ETR_NOT_SAVED_SESSION="9"}(i||(i={})),i})(),ue=(()=>{let i;return function(r){r.UNNECESSARY="U",r.NOT_EXPRESSED="N",r.WITHDRAWN="W",r.GRANTED="G"}(i||(i={})),i})(),zd=/^(\d+\.[01356789BWXP](\.[01UNWG])?(\.[39])?)(\.\d+)?$/,qd=".";function qy(i){return csArray.prototype.join.call([i.pageNumber,i.collectState,i.replayConsent,i.etrStatus],qd)}function Wy(i){if(!co(i))return null;let r=qn(i);return r!==null?Wd(r):null}function Wd(i){var r,t,e;let[s,n,o,c]=csString.prototype.split.call(i,qd);return n==="B"||n==="W"?{collectState:X.ANALYTICS_ONLY,replayConsent:n==="B"?ue.NOT_EXPRESSED:ue.WITHDRAWN,etrStatus:(r=c)!==null&&r!==void 0?r:ge.ETR_NOT_SAVED_SESSION,pageNumber:parseInt(s,10)}:{collectState:n,replayConsent:(t=o)!==null&&t!==void 0?t:ue.UNNECESSARY,etrStatus:(e=c)!==null&&e!==void 0?e:ge.ETR_NOT_SAVED_SESSION,pageNumber:parseInt(s,10)}}function co(i){return zd.test(i)}function qn(i){if(!i)return null;let r=(()=>{var t;return(t=csString.prototype.match.call(i,zd))===null||t===void 0?void 0:t[1]})();return r!=null?r:null}var Le="_cs_s",lo=18e5,Mn=".",Fy=13,Dn=(()=>{let i;return function(r){r[r.NOT_FOUND=0]="NOT_FOUND",r[r.EXPIRED=1]="EXPIRED",r[r.FOUND=2]="FOUND"}(i||(i={})),i})(),qa=(()=>{class i{constructor(t,e,s){this.E=t,this.D=e,this.xt=s,this.Et=null,this.Tl=!1}get(t){let e=this.getRawSession(t);return this.isValid(e)?Wd(e):null}getRawSession(t){if(t){let h=this.Ea();return qn(h)}let{sessionString:e,status:s}=this.F_(),n=qn(e);if(s!==Dn.EXPIRED)return n;if(this.E.cookielessTrackingEnabled)return null;let o=this.Ea();if(!o)return null;let c=csString.prototype.split.call(o,Mn);if(!i.df(c))return o;let l=c[c.length-1],u=parseInt(l,10);return isNaN(u)||this.Y_(u),n}onCookieSet(t){this.Je=t}onCookieRemoved(t){this.Us=t}set(t,e=lo){let s=U.now()+e,n=this.X_(t,s);this.K_(n,s),this.ff(n,e)}extendSessionExpiry(t=lo){let e=this.Ea();if(e===null||!co(e))return!1;let s=U.now()+t,n=`${qn(e)}${Mn}${s}`;return this.ff(n,t),this.Et&&(this.Et.expires=s),!0}X_(t,e){return`${qy(t)}${Mn}${e}`}ff(t,e){var s;this.E.cookielessTrackingEnabled?this.xt.setItem(Le,t):(this.D.set(Le,t,e),(s=this.Je)===null||s===void 0||s.call(this,Le,t,e))}remove(){var t;this.E.cookielessTrackingEnabled?this.xt.removeItem(Le):(this.D.delete(Le),(t=this.Us)===null||t===void 0||t.call(this,Le)),this.Q_()}handleSubdomainChange(){if(this.E.cookielessTrackingEnabled)return;let t=this.get(!0);t&&(this.E.allowSubdomains?this.D.delete(Le,Ge.CURRENT_DOMAIN):this.D.delete(Le,this.D.getRootDomain()),this.set(t))}isValid(t){return t!==null&&co(t)}K_(t,e){this.Et={sessionString:t,expires:e}}F_(){return this.Et?this.Et&&U.now()<=this.Et.expires?{sessionString:this.Et.sessionString,status:Dn.FOUND}:{sessionString:this.Et.sessionString,status:Dn.EXPIRED}:{sessionString:this.Ea(),status:Dn.NOT_FOUND}}Q_(){this.Et=null}Y_(t){this.Et&&(this.Et.expires=t,this.Tl=!0)}isCacheRefreshed(){return this.Tl}resetCacheRefreshed(){this.Tl=!1}Ea(){if(this.E.cookielessTrackingEnabled){let e=this.xt.getItem(Le);return!e||this.pf(e)?null:e}let t=this.D.get(Le);return!t||this.pf(t)?null:t}pf(t){let e=csString.prototype.split.call(t,Mn);if(!i.df(e))return!1;let s=parseInt(e[e.length-1],10);return!isNaN(s)&&U.now()>s}static df(t){return t[t.length-1].length===Fy}}return i.$deps=[ht,Ge,sr],i})(),V0=k(857)._R;var Ur=(()=>{class i{constructor(t,e){this.ft=t,this.At=e,this.Rl=!1}getRequestParameters(){return{dr:this.get()}}addUrlMaskingPattern(t){this.At.addUrlMaskingPattern(t)}enableRemoveQueryString(){this.Rl=!0}disableRemoveQueryString(){this.Rl=!1}get(){let t=this.Rl?this.ft.removeQueryString(this.Ef()):this.Ef();return this.ft.anonymizeUrl(t,{maskingPatterns:this.At.getUrlMaskingPatterns()})}set(t){this._f=t}Ef(){if(this._f)return this._f;let t="";try{t=_w.top.document.referrer}catch{if(_w.parent)try{t=_w.parent.document.referrer}catch{t=""}}return t===""&&(t=_d.referrer),typeof t!="string"&&(t=""),t}}return i})();var Ro=(()=>{class i{setItem(t,e){_w.localStorage.setItem(t,e)}getItem(t){return _w.localStorage.getItem(t)}removeItem(t){_w.localStorage.removeItem(t)}}return i.$deps=[],i})(),kc=(()=>{class i{static useFactory(t,e){return t.create(e,this.key,this.expiresIn,this.forceSecureFlag)}static get inject(){return[Fd,this.browserStorageType]}constructor(t,e,s,n,o,c){this.E=t,this.D=e,this.Cl=s,this.rs=n,this.vf=o,this.sv=c}onCookieSet(t){this.Je=t}onCookieRemoved(t){this.Us=t}get(){return this.E.cookielessTrackingEnabled?this.Cl.getItem(this.rs):this.D.get(this.rs)}set(t){var e;this.E.cookielessTrackingEnabled?this.Cl.setItem(this.rs,t):(this.D.set(this.rs,t,this.vf,this.sv),(e=this.Je)===null||e===void 0||e.call(this,this.rs,t,this.vf))}remove(){var t;this.E.cookielessTrackingEnabled?this.Cl.removeItem(this.rs):(this.D.delete(this.rs),(t=this.Us)===null||t===void 0||t.call(this,this.rs))}}return i})(),Fd=(()=>{class i{constructor(t,e){this.E=t,this.D=e}create(t,e,s,n){return new kc(this.E,this.D,t,e,s,n)}}return i.$deps=[ht,Ge],i})(),Co=(()=>{class i extends kc{}return i.browserStorageType=sr,i})(),Yy=(()=>{class i extends kc{}return i.browserStorageType=Ro,i})(),Xe=["setCustomVariable"],kn=k(857)._R,Xy="_cs_cvars",Jl=512,Zl=255,xn={SESSION:["visit",2],PAGE:["page",3],NEXT_PAGE_ONLY:["nextPageOnly",4]},Wa=(()=>{class i extends Co{}return i.key=Xy,i})(),uo=(()=>{class i{constructor(t,e){this.O=t,this.et=e,this.Zt={},this.Hs={},this.Mn={},this.rv=new Set(csArray.prototype.flat.call(Object.values(xn)))}set(t,e,s,n){let o,c;if(!(jt(t)||O(t))||O(t)&&csString.prototype.trim.call(t)==="")throw new Rt(Xe[0],"index must be a number or string");let l=Number(t);if(Number.isNaN(l))throw new Rt(Xe[0],"index must be a valid number");if(l<=0)throw new Rt(Xe[0],"index must be greater than 0");if(!It(e))throw new Rt(Xe[0],"name is required");if($e(e))throw new Rt(Xe[0],"name cannot be a function");if(!It(s))throw new Rt(Xe[0],"value is required");if($e(s))throw new Rt(Xe[0],"value cannot be a function");if(!this.nv(n))throw new Rt(Xe[0],"invalid scope: "+csString(n));let u=this.O.anonymizePII(csString(e)),h=this.O.anonymizePII(csString(s));if(o=[csString.prototype.slice.call(u,0,Jl),csString.prototype.slice.call(h,0,Zl)],c=s!=="",!ft(n)||csArray.prototype.indexOf.call(xn.SESSION,n)>=0){let p=this.getCustomVariablesSession();c?p[t]=o:delete p[t],this.setCustomVariableSession(p)}(!ft(n)||csArray.prototype.indexOf.call(xn.PAGE,n)>=0)&&(c?this.Zt[t]=o:delete this.Zt[t]),ft(n)&&csArray.prototype.indexOf.call(xn.NEXT_PAGE_ONLY,n)>=0&&(c?this.Hs[t]=o:delete this.Hs[t])}getCustomVariablesSession(){let t=this.et.get();if(!t)return{};let e=kn.parse(t);return e!==null&&Ks(e)?e:{}}setCustomVariableSession(t){this.et.set(kn.stringify(t))}removeCustomVariablesSession(){this.et.remove()}removeCustomVariablesPage(){this.Zt={}}getRequestParameters(){let t=this.getCustomVariablesSession();for(let s in this.Zt)this.Zt.hasOwnProperty(s)&&(t[s]=this.Zt[s]);if(kn.stringify(t).length<=2)return{};let e={cvars:this.Sf(t)};return this.hasCustomVariablesPage()&&(e.cvarp=this.getCustomVariablesPage()),e}onBeforePageview(){for(let t in this.Mn)this.Mn.hasOwnProperty(t)&&(this.Mn[t]===this.Zt[t]&&delete this.Zt[t],delete this.Mn[t]);for(let t in this.Hs)this.Hs.hasOwnProperty(t)&&(this.Mn[t]=this.Hs[t],this.Zt[t]=this.Hs[t],delete this.Hs[t])}hasCustomVariablesPage(){return this.Zt&&!Qr(this.Zt)}getCustomVariablesPage(){return this.Sf(this.Zt)}getAllValidPageCustomVars(){let t={...this.Zt};return this.Il(t),t}Il(t){for(let e in t)if(t.hasOwnProperty(e)){let s=parseInt(e,10),n=t[e],o=n[0],c=n[1];(!lm(s,1,20)||o.length>Jl||c.length>Zl)&&delete t[e]}}Sf(t){this.Il(t);let e=Qr(t)?[]:t;return kn.stringify(e)}nv(t){return!ft(t)||this.rv.has(t)}getAllValidCustomVars(){let t=this.getCustomVariablesSession();for(let e in this.Zt)this.Zt.hasOwnProperty(e)&&(t[e]=this.Zt[e]);return this.Il(t),t}}return i.$deps=[Be,Wa],i})(),Ky=k(857).al,ho=".",xc="__DOT__",Qy=/^(([a-z0-9\-])+(\.[0-9]+){6})(\.[0-1])?(\.\b(x|[0-9a-fA-F]{12})\b)?$/,Yd="x";function Jy(i){let[r,t,e,s,n,o,c,l,u]=sE(i);return{id:r,creationTimestamp:Number(t),visitsCount:Number(e),hitTimestamp:Number(s),lastVisitTimestamp:Number(n),appliedTrackingDraw:Number(o),expires:Number(c),allowSubdomains:l===void 0?void 0:!!Number(l),identityPrint:u===void 0||u===Yd?null:u}}function Zy(i){var r;return csArray.prototype.join.call(csArray.prototype.map.call(csArray.prototype.map.call([i.id,i.creationTimestamp,i.visitsCount,i.hitTimestamp,i.lastVisitTimestamp,i.appliedTrackingDraw,i.expires,i.allowSubdomains?1:0,(r=i.identityPrint)!==null&&r!==void 0?r:Yd],csString),eE),ho)}function tE(i){return Qy.test(i)}function eE(i){return csString.prototype.replace.call(i,/\./g,xc)}function iE(i){return csString.prototype.replace.call(i,new Ky(xc,"g"),ho)}function sE(i){return csString.prototype.indexOf.call(i,xc)!==-1?csArray.prototype.map.call(csString.prototype.split.call(i,ho),iE):csString.prototype.split.call(i,ho)}var Fe="_cs_id",Fa=(()=>{class i{constructor(t,e,s){this.E=t,this.D=e,this.xt=s}onCookieSet(t){this.Je=t}onCookieRemoved(t){this.Us=t}get(){let t;return this.E.cookielessTrackingEnabled?t=this.xt.getItem(Fe):t=this.D.get(Fe),t?(tE(t)||$.warn(`Invalid visitor string: ${t}`),Jy(t)):null}set(t){var e;let s=Zy(t);if(this.E.cookielessTrackingEnabled)this.xt.setItem(Fe,s);else{let n=new Date(t.expires);this.D.set(Fe,s,n),(e=this.Je)===null||e===void 0||e.call(this,Fe,s,n)}}remove(){var t;this.E.cookielessTrackingEnabled?this.xt.removeItem(Fe):(this.D.delete(Fe),(t=this.Us)===null||t===void 0||t.call(this,Fe))}handleSubdomainChange(){if(this.E.cookielessTrackingEnabled)return;let t=this.get();t&&(t.allowSubdomains=this.E.allowSubdomains,this.E.allowSubdomains?this.D.delete(Fe,Ge.CURRENT_DOMAIN):this.D.delete(Fe,this.D.getRootDomain()),this.set(t))}}return i.$deps=[ht,Ge,sr],i})(),{logger:aa,setLogger:U0}=on("scheduler"),fo=(()=>{class i{constructor(t){if(this.Pe=0,t)for(let e of t)this.push(e)}get length(){return this.Pe}push(t){this.Pe++,this.Jt?this.Jt=this.Jt[1]=[t,void 0]:this.Jt=this.mt=[t,void 0]}shift(){if(!this.mt)return;this.Pe--;let t=this.mt[0];return this.mt=this.mt[1],this.mt||(this.Jt=void 0),t}isEmpty(){return!this.mt}}return i})(),Zs=(()=>{let i;return function(r){r[r.High=0]="High",r[r.Low=1]="Low"}(i||(i={})),i})(),Wn=(()=>{class i{constructor(){this.Pl=new fo,this.Nl=new fo}get length(){return this.Pl.length+this.Nl.length}push(t,e=Zs.Low){return e===Zs.High?this.Pl.push(t):this.Nl.push(t),this.length}shift(){var t;return(t=this.Pl.shift())!==null&&t!==void 0?t:this.Nl.shift()}isEmpty(){return this.length===0}}return i})();function rE(){if(typeof performance!="undefined"&&typeof performance.now=="function")try{let i=performance.now();if(Number.isFinite(i))return()=>performance.now()}catch(i){}return()=>Date.now()}var Or=rE(),Vt=(()=>{let i;return function(r){r[r.Continue=1]="Continue",r[r.Stop=0]="Stop",r[r.Reschedule=2]="Reschedule"}(i||(i={})),i})(),tu=40,nE=10,Bi=(()=>{class i{constructor(){this.Cr=new Wn,this.wf=()=>{csSetTimeout(()=>{let t=this.ov();if(this.Af(t),!t.hasTimeLeft){let e=t.elapsedTime;e>tu*3&&aa.warn(`Task largely exceeded maximum duration: ${e.toFixed(2)}ms`)}(this.It||!this.Cr.isEmpty())&&this.wf()},0)}}ov(){let t=Or(),e=0,s=!0;return{get hasTimeLeft(){return s&&e++%nE===0&&(s=Or()-t{class i{constructor(){this.listeners=[]}addListener(t){csArray.prototype.includes.call(this.listeners,t)||csArray.prototype.push.call(this.listeners,t)}}return i})(),Zt=(()=>{class i extends Lc{constructor(t){super(),this.L=t}emitBeforeNaturalPageView(t){for(let e of this.listeners)e.onBeforeNaturalPageView&&e.onBeforeNaturalPageView(t)}emitAfterNaturalPageView(t){for(let e of this.listeners)e.onAfterNaturalPageView&&e.onAfterNaturalPageView(t)}emitInitTracking(){for(let t of this.listeners)t.onInitTracking&&t.onInitTracking()}emitTrackingAllowed(){for(let t of this.listeners)t.onTrackingAllowed&&t.onTrackingAllowed()}emitStartTracking(t){for(let e of this.listeners)e.onStartTracking&&this.L.task(()=>e.onStartTracking(t))}emitStartNoTrackingMode(){for(let t of this.listeners)t.onStartNoTrackingMode&&this.L.task(()=>t.onStartNoTrackingMode())}emitArtificialPageViewEnd(t=!1){for(let e of this.listeners)if(e.onArtificialPageViewEnd)try{e.onArtificialPageViewEnd(t)}catch(s){$.error(s)}}emitBeforeArtificialPageView(t,e){for(let s of this.listeners)s.onBeforeArtificialPageView&&s.onBeforeArtificialPageView(t,e)}emitAfterArtificialPageView(t=!1){for(let e of this.listeners)e.onAfterArtificialPageView&&e.onAfterArtificialPageView(t)}emitBeforeSessionRenewal(){for(let t of this.listeners)t.onBeforeSessionRenewal&&t.onBeforeSessionRenewal()}emitAfterSessionRenewal(){for(let t of this.listeners)t.onAfterSessionRenewal&&t.onAfterSessionRenewal()}emitOptout(){for(let t of this.listeners)t.onOptout&&t.onOptout()}emitReplayUnanonymizationConsentGranted(){for(let t of this.listeners)t.onReplayUnanonymizationConsentGranted&&t.onReplayUnanonymizationConsentGranted()}emitReplayUnanonymizationConsentWithdrawn(){for(let t of this.listeners)t.onReplayUnanonymizationConsentWithdrawn&&t.onReplayUnanonymizationConsentWithdrawn()}emitAfterReplayRecordingConsentGranted(){for(let t of this.listeners)t.onAfterReplayRecordingConsentGranted&&t.onAfterReplayRecordingConsentGranted()}emitAfterReplayRecordingConsentWithdrawn(){for(let t of this.listeners)t.onAfterReplayRecordingConsentWithdrawn&&t.onAfterReplayRecordingConsentWithdrawn()}emitCollectStateChange(t,e){for(let s of this.listeners)s.onCollectStateChange&&s.onCollectStateChange(t,e)}emitInitialDomStart(){for(let t of this.listeners)t.onInitialDomStart&&t.onInitialDomStart()}emitInitialDomDone(t){for(let e of this.listeners)e.onInitialDomDone&&e.onInitialDomDone(t)}emitRecordingContextChange(){for(let t of this.listeners)t.onRecordingContextChange&&t.onRecordingContextChange()}emitSensitiveStatusChange(){var t;for(let e of this.listeners)(t=e.onSensitiveStatusChange)===null||t===void 0||t.call(e)}emitBeforeVisitorRenewal(){for(let t of this.listeners)t.onBeforeVisitorRenewal&&t.onBeforeVisitorRenewal()}emitAfterVisitorCleared(){for(let t of this.listeners)t.onAfterVisitorCleared&&t.onAfterVisitorCleared()}emitAfterVisitorRenewal(){for(let t of this.listeners)t.onAfterVisitorRenewal&&t.onAfterVisitorRenewal()}emitSessionCreated(){for(let t of this.listeners)t.onSessionCreated&&t.onSessionCreated()}emitSessionRemoved(){for(let t of this.listeners)t.onSessionRemoved&&t.onSessionRemoved()}emitSessionRefreshed(){for(let t of this.listeners)t.onSessionRefreshed&&t.onSessionRefreshed()}emitTargetingRulesMatched(){for(let t of this.listeners)t.onTargetingRulesMatched&&t.onTargetingRulesMatched()}}return i.$deps=[Bi],L([ne("emitStartTracking")],i.prototype,"emitStartTracking",null),i})(),Gs=(()=>{let i;return function(r){function t(n){return n.replayConsentRequiredForSession}r.isReplayConsentNeeded=t;function e(n){return n.replayConsent===ue.NOT_EXPRESSED||n.replayConsent===ue.WITHDRAWN}r.isRecordingBlockedByConsent=e;function s(n){return n.replayConsent===ue.WITHDRAWN}r.isRecordingWithDrawn=s}(i||(i={})),i})(),qs=(()=>{class i{static isRecordingSupported(){return"MutationObserver"in _w&&"visibilityState"in _d}}return i})(),mi=(()=>{class i{constructor(t,e,s,n){this.configuration=t,this.lifeCycleEventsEmitter=e,this.urlService=s,this.regexRulesEvaluator=n,this.recordingUrlRulesUsed=!1}getEligibleCollectState(t){if(this.fv(t))return X.ANALYTICS_ONLY;if(this.shouldPreserveSessionCollectState(t))return t.collectState;let e=this.isUrlSampledForRecording()?X.RECORDING_URL_SAMPLING:X.ANALYTICS_ONLY;return this.lifeCycleEventsEmitter.emitCollectStateChange(e,this.getEtrState()),e}isEtrActive(){return this.configuration.malkaEtrEnabled}getEtrState(){return this.isEtrActive()?Ui.ETR_ON:Ui.ETR_OFF}isReplayRecorded(t){return!qs.isRecordingSupported()||Gs.isRecordingBlockedByConsent(t)?!1:this.bf(t)}bf(t){return t.collectState===X.QUOTA_REACHED?!1:this.pv(t)||this.isEtrActive()}pv(t){return t.collectState===X.RECORDING_GLOBAL_SAMPLING||t.collectState===X.RECORDING_URL_SAMPLING||t.collectState===X.RECORDING_RULES_TARGETING}isUrlSampledForRecording(){return qs.isRecordingSupported()&&this.recordingUrlRulesUsed&&this.regexRulesEvaluator.evaluateUrl(this.urlService.getAnonymizedUrl())}fv(t){return!qs.isRecordingSupported()&&this.bf(t)}shouldPreserveSessionCollectState(t){switch(t.collectState){case X.ANALYTICS_ONLY_RULES_TARGETING:case X.ANALYTICS_ONLY_RECORDING_PENDING_RULES_TARGETING:case X.RECORDING_RULES_TARGETING:return this.configuration.hasTargetingRules();case X.RECORDING_GLOBAL_SAMPLING:return!0;default:return!1}}initUrlRules(){this.configuration.malkaUrlEnabled&&this.configuration.hasRecordingUrlRules()&&(this.recordingUrlRulesUsed=!0,this.regexRulesEvaluator.setRegexRules(this.configuration.recordingUrlRules))}}return i})(),Vc=60*1e3,oE=60*Vc,aE=4*oE-Vc,Qi=(()=>{let i;return function(r){r[r.NO=0]="NO",r[r.WITHDRAWN=1]="WITHDRAWN",r[r.GRANTED=2]="GRANTED"}(i||(i={})),i})(),Oe=(()=>{class i{constructor(t,e,s,n){this.pe=t,this._e=e,this.w=s,this.E=n,this.Dn=null,this.Ol=0,this.Ir=Qi.NO}setDynamicVariablesService(t){this.gv=t}createOrUpdateSession(){this.Ml(),this.mv=U.now(),this.Ol=0;let t=this.yv();t===null?(t=this.Ev(),this._v(t),this.w.emitSessionCreated()):(this.vv(t),t.collectState=this._e.getEligibleCollectState(t)),this.setSession(t)}grantReplayRecording(t){t.replayConsent=ue.GRANTED,t.collectState=this._e.computeInitialCollectState(t),this.setSession(t)}grantReplayRecordingBeforeSessionStart(){this.Ir=Qi.GRANTED}withdrawnReplayRecording(t){t.replayConsent=ue.WITHDRAWN,this.setSession(t)}withdrawnReplayRecordingBeforeSessionStart(){this.Ir=Qi.WITHDRAWN}_v(t){this.Ir===Qi.WITHDRAWN?t.replayConsent=ue.WITHDRAWN:(this.Ir===Qi.GRANTED&&(t.replayConsent=ue.GRANTED),t.collectState=this._e.computeInitialCollectState(t)),this.Ir=Qi.NO}Ev(){return{pageNumber:1,collectState:this._e.getInitialCollectState(),replayConsent:this.E.replayConsentRequiredForSession?ue.NOT_EXPRESSED:ue.UNNECESSARY,etrStatus:ge.ETR_NOT_SAVED_SESSION}}vv(t){t.pageNumber+=1}isReplayRecorded(){let t=this.getSession();return!!t&&this._e.isReplayRecorded(t)}getRequestParameters(){let t={},e=this.getSession();return e!==null&&(t.pn=`${e.pageNumber}`),t}getSession(){return this.pe.get()}yv(){return this.pe.get(!0)}doesSessionExist(){return this.pe.get()!==null}setSession(t){this.pe.set(t),this.w.emitSessionRefreshed()}refreshSession(){this.pe.extendSessionExpiry()&&this.w.emitSessionRefreshed()}removeSession(){this.pe.remove(),this.w.emitSessionRemoved()}resetPendingReplayConsent(){this.Ir=Qi.NO}getRecordingTypes(){let t=this.getSession(),e=this.Sv(t);return this.wv(e)}wv(t){let e=[];return csArray.prototype.forEach.call(t,s=>{if(Dc(s)){let n=zy[s]||s;csArray.prototype.push.call(e,n)}}),e}Sv(t){let e=[];return(t==null?void 0:t.collectState)!==void 0&&(csArray.prototype.push.call(e,t.collectState),this.E.malkaEtrEnabled&&csArray.prototype.push.call(e,X.RECORDING_ETR_SAMPLING)),e}updateCollectState(t){let e=this.getSession();e!==null&&(e.collectState=t,this.setSession(e))}hasValidSession(){let t=this.pe.getRawSession();return this.pe.isValid(t)}handleSubdomainChange(){this.pe.handleSubdomainChange()}pollCacheRefreshEvent(t=!0){let e=this.pe.isCacheRefreshed();return e&&t&&this.pe.resetCacheRefreshed(),e}extendSessionPeriodically(){this.Dn||this.Tf()}extendSession(){return this.pe.extendSessionExpiry()?(this.w.emitSessionRefreshed(),!0):($.warn("extendSession is trying to extend an expired session"),this.Ml(),!1)}Tf(){if(this.Av()){this.Ml();return}this.extendSession()&&(this.bv(),this.Tv())}Tv(){this.Dn=_w.csSetTimeout(()=>{this.Tf()},lo-Vc)}Av(){return aE-(U.now()+lo-this.mv)<0}Ml(){this.Dn&&(_w.csClearTimeout(this.Dn),this.Dn=null)}bv(){this.Ol+=1,this.gv.trackDynamicVariable("session_expiry_update",this.Ol)}}return i.$deps=[qa,mi,Zt,ht],i})(),cE=(()=>{let i;return function(r){function t(){let s=navigator.userAgent+navigator.language+navigator.platform,n=csString.prototype.slice.call(e(s).toString(16),-4),o=new Date().getTime(),c="xxxxxxxx-hhhh-axxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,l=>{let u=(o+Math.random()*16)%16|0;return o=Math.floor(o/16),(l==="x"?u:u&7|8).toString(16)});return csString.prototype.replace.call(c,"hhhh",n)}r.generate=t;function e(s){let n=0;for(let o=0;o{class i{constructor(t,e,s,n){this.E=t,this.et=e,this.w=s,this.R=n,this.Rv=10*1e3}createOrUpdateVisitor(){var t;let e=this.getVisitor();e===null&&(e=this.Cv(),(t=this.R)===null||t===void 0||t.removeSession()),this.Iv(e),this.setVisitor(e)}Cv(){return{id:cE.generate(),visitsCount:0,appliedTrackingDraw:this.E.lastTrackingDraw,creationTimestamp:Vl(),lastVisitTimestamp:0,hitTimestamp:0,expires:U.now()+this.E.visitorCookieTimeout,allowSubdomains:this.E.allowSubdomains,identityPrint:null}}Iv(t){let e=Vl();this.R&&!this.R.doesSessionExist()&&(t.visitsCount+=1,t.lastVisitTimestamp=e),t.hitTimestamp=e,t.appliedTrackingDraw=this.E.lastTrackingDraw,this.Rf=t.visitsCount}getRequestParameters(){let t=this.getVisitor();return t?{uu:t.id,sn:`${t.visitsCount}`,hd:`${t.hitTimestamp}`}:{}}getVisitor(){return this.et.get()}setVisitor(t){this.et.set(t)}doesVisitorExist(){return this.et.get()!==null}resetVisitor(){this.Cf(),this.w.emitAfterVisitorCleared()}removeVisitor(){this.et.remove()}hasAllowSubdomainsChanged(){let t=this.getVisitor();return t?t.allowSubdomains!==this.E.allowSubdomains:!1}handleSubdomainChange(){this.et.handleSubdomainChange()}isSessionRenewed(){let t=this.getVisitor();return t===null||this.Rf===void 0?!1:t.visitsCount!==this.Rf}Pv(){return!ft(this.If)||U.now()-this.If>this.Rv}renewVisitor(){this.Pv()?(this.If=U.now(),this.Cf(),this.w.emitAfterVisitorRenewal()):$.warn("session:start:newVisitor is trying to renew visitor under time limit")}Cf(){this.w.emitBeforeVisitorRenewal(),this.removeVisitor()}}return i.$deps=[ht,Fa,Zt,{__optional:Oe}],i})();function Io(i,r){typeof r=="number"&&(r={wait:r});let t=r.wait,e=r.mode||"leading",s,n=[],o=null,c=0,l,u=()=>{c=U.now(),o=null,l=i.apply(s,n),n=[],s=null},h=function(...p){if(s=this!==null&&this!==void 0?this:mt,n=[...p],e==="trailing")return o||(o=mt.csSetTimeout(u,t)),l;let E=U.now(),m=t-(E-c);return m<=0||m>t?(c=E,l=i.apply(s,n),o?(mt.csClearTimeout(o),o=null):n=[]):o||(o=mt.csSetTimeout(u,m)),l};return h.cancel=()=>{o&&(mt.csClearTimeout(o),c=0,o=null,n=[])},h.flushPending=()=>{o&&(mt.csClearTimeout(o),u())},h}var Po=i=>(r,t,e)=>{let s=e.value,n=new WeakMap,o=c=>{let l=n.get(c);return l||(l=Io(s.bind(c),i),n.set(c,l)),l};e.value=function(...c){if(typeof this!="object"&&typeof this!="function"||this===null){ut.warn("@Throttle decorated method called without a valid instance context");return}return o(this)(...c)}},lE=60*1e3,uE=30*1e3,en=(()=>{class i{constructor(t,e){this.R=t,this.I=e,this.Dl=!1,this.Nv=Io(()=>this.R.refreshSession(),uE)}onSessionExpired(t){this.Ov=t}isSessionValid(){return this.Dl?!0:!(!this.R.hasValidSession()||this.R.pollCacheRefreshEvent()&&this.I.isSessionRenewed())}isCurrentPageviewValid(){let t=this.R.hasValidSession();return this.R.pollCacheRefreshEvent(!1)?!this.I.isSessionRenewed():t}refreshSession(){this.isSessionValid()?this.Nv():this.Mv()&&(this.Pf=U.now(),this.renewSession(!1))}renewSession(t){this.Dl=!0,this.Ov(t),this.Dl=!1}Mv(){return!_d.hidden&&(!ft(this.Pf)||U.now()-this.Pf>lE)}}return i.$deps=[Oe,Se],i})(),hE="_cs_i",dE=(()=>{class i extends Co{}return i.key=hE,i.expiresIn=_m,i.forceSecureFlag=!0,i})(),fE="spki",eu="RSA-OAEP",pE="SHA-256",iu="AES-CTR",gE="SHA-1",su=190,Ws=(()=>{let i;return function(r){var t;let e=!1,s=null,n,o=typeof TextEncoder!="undefined"?new TextEncoder:null,c;r.crypto=(t=mt.crypto)===null||t===void 0?void 0:t.subtle,r.MAX_DIGEST_INPUT_SIZE=100;function l(){return!e}r.isKeyImported=l;function u(){return s}r.getCryptoKey=u;function h(){var M,N;return((N=(M=mt.self.crypto)===null||M===void 0?void 0:M.subtle)===null||N===void 0?void 0:N.encrypt)!=null&&mt.self.CryptoKey!=null}r.isSupported=h;async function p(M){n=r.crypto.importKey(fE,Rc(M),{name:eu,hash:pE},!1,["encrypt"]).catch(()=>(e=!0,null)),s=await n,n=void 0,s||ut.warn(`Fail to import public key '${M}'`)}r.importKey=p;async function E(M){if(!h()||e)return null;await n;let N=Ao(M);N.byteLength>su&&(N=N.slice(0,su));try{let W=await r.crypto.encrypt({name:eu},s,N);return kl(W)}catch{return null}}r.asymmetricEncrypt=E;async function m(M,N){if(!h()||e)return null;let W={counter:N.initializationVector,name:iu,length:64},q=o.encode(M);try{let lt=await r.crypto.encrypt(W,N.cryptoKey,q);return kl(lt)}catch{return null}}r.symmetricEncrypt=m;async function S(M){let N=await A(M);if(!N)throw new Error("Export secret failed");let W=await E(N);if(!W)throw new Error("Encrypt secret failed");return W}r.encryptSecret=S;async function A(M){var N;if(!h())return null;try{return(N=(await r.crypto.exportKey("jwk",M)).k)!==null&&N!==void 0?N:null}catch{return null}}async function x(){if(!h()||e)return null;try{return{cryptoKey:await r.crypto.generateKey({name:iu,length:128},!0,["encrypt","decrypt"]),initializationVector:mt.crypto.getRandomValues(new Uint8Array(16))}}catch{return null}}r.generateSymmetricKey=x;function I(M){c=M}r.setDigestSalt=I;async function C(M){M=csString.prototype.toLocaleLowerCase.call(csString.prototype.trim.call(M)),c&&(M=`${M}:${c}`);let N=o.encode(M);try{let W=await r.crypto.digest(gE,N);return ro(W)}catch{return null}}r.digest=C;function H(){return mt.crypto.subtle.generateKey({name:"RSA-OAEP",modulusLength:2048,publicExponent:new Uint8Array([1,0,1]),hash:"SHA-256"},!0,["encrypt","decrypt"])}r.generateKeyPair=H}(i||(i={})),i})(),mE=Math.pow(2,52),Mr=null;async function yE(i){if((Mr==null?void 0:Mr.visitorId)===i)return Mr.heapUserId;let r=await EE(i),t=Number(r%BigInt(mE));return Mr={visitorId:i,heapUserId:t},t}async function EE(i){let r=await crypto.subtle.digest("SHA-256",_E(i)),t=new Uint8Array(r.slice(0,8));return t=SE(t),vE(t)}function _E(i){let r=new ArrayBuffer(i.length),t=new Uint8Array(r);for(let e=0;e{class i{constructor(){this._isStarted=!1}get isStarted(){return this._isStarted}start(...t){this._isStarted||(this._isStarted=!0,this.onStart(...t))}stop(){this._isStarted&&(this._isStarted=!1,this.onStop())}restart(){this.stop(),this.start()}}return i})(),wE=i=>{let r=i*60*1e3;return`${Math.floor(Date.now()/r)}`},AE=5e3,Xd=(()=>{class i extends Id{constructor(t,e,s){super(t,e),this.Pr=null,this.Dv=(s==null?void 0:s.type)||"json",this.Nf=s==null?void 0:s.cacheMinutes,this.pa=s==null?void 0:s.timeout}onLoad(t){this.br=t}onError(t){this.Cn=t}onTimeout(t,e){this.Vs=t,this.pa=e}send(){csArray.prototype.forEach.call(this.beforeRequestCallbacks,n=>n());let t=this.retrieveParameters();this.ol(t);let e=Jr.toQuery(t),s=`${this.domainUri}${this.path?`/${this.path}`:""}?${e}`;this.kv(s,this.Dv)}abort(){this.Pr&&(this.Pr.abort(),this.Pr=null)}isInProgress(){return this.Pr!==null}kv(t,e){var s;let n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType=e,n.onerror=()=>{var o;return(o=this.Cn)===null||o===void 0?void 0:o.call(this,n)},n.ontimeout=()=>{var o;return(o=this.Vs)===null||o===void 0?void 0:o.call(this,n)},n.onload=()=>{var o,c;n.status>=200&&n.status<400?((o=this.br)===null||o===void 0||o.call(this,this.xv(n,e)?n.response:n.responseText),csArray.prototype.forEach.call(this.afterRequestCallbacks,l=>l())):(c=this.Cn)===null||c===void 0||c.call(this,n)},n.onloadend=()=>{this.Pr=null},n.timeout=(s=this.pa)!==null&&s!==void 0?s:AE,this.Pr=n,n.send()}xv(t,e){let s=t.getResponseHeader("Content-Type");return s===null?e==="json":csString.prototype.indexOf.call(csString.prototype.toLowerCase.call(s),"json")>0}ol(t){let e;this.Nf?e=`${wE(this.Nf)}`:e=csString.prototype.slice.call(`${Math.random()}`,2,8),t.r=e}}return i})(),bE=["undefined","anonymous","true","false","not_authenticated","NaN","NA","Na","unique_identifier","0","",'""',"[object Object]","{{ customer.email }}","{{ email }}"],TE=[/^email$/i,/^none$/i,/^unknown$/i,/^guest$/i,/^null$/i],RE=255,CE="%-idtt_Salt!",IE="spki",ru="RSA-OAEP",ca="SHA-256",nu=318,PE=(()=>{class i extends oe{constructor(t,e,s,n){super(),this.I=e,this.V=s,this.ve=n,this.it=null,this.kl=null,this.xl=null,this.Ll=!1,this.Vl=null,this.Ul=null,this.Hl=null,this.va=null,this.jl=null,this.ns=t.getHeapEnvId(),this.$l=t.identityEncryptionKey,this.kn=new Xd(t.getPaProxyDomainUri(),"api/identify_v3"),Sd()&&(this.Ll=!0,this.Vl=new TextEncoder,this.kn.setRequestParametersProviders({getRequestParameters:()=>{var o;return(o=this.Ul)!==null&&o!==void 0?o:{}}}),this.kn.after(()=>{this.Ul=null}))}onStart(){var t,e;let s=(t=this.I.getVisitor())===null||t===void 0?void 0:t.id,n=(e=this.ve.get()==null?void 0:csString.prototype.split.call(this.ve.get(),"."))===null||e===void 0?void 0:e[0];if(s!==n&&this.ve.remove(),this.$l?!this.jl&&this.Ll&&Ws.isSupported()&&(this.jl=Promise.all([this.Of(this.$l).then(this.Lv.bind(this)),this.Uv(this.$l)])):ut.warn("identify: missing encryption key",!0,"identify"),this.it!==null){let{identity:o,sendHashedIdentity:c}=this.it;this.it=null,this.identify(o,c).catch(l=>ut.error(l,"IdentityService"))}}onStop(){}async identify(t,e){if(!this.Ll)return;if(!this.ns){ut.error("missing heap env id","identify");return}if(!this.isStarted){this.it={identity:t,sendHashedIdentity:e};return}if(this.Hv(t))return;let s=Ct.truncate(t,RE),n=this.I.getVisitor();if(!n){ut.warn("identify: visitor not found",!0,"identify");return}if(await this.jv(s,n.identityPrint)){if(this.I.renewVisitor(),n=this.I.getVisitor(),!n){ut.warn("identify: visitor not found",!0,"identify");return}}else this.V.refreshSession();await Promise.all([this.$v(s,e,this.ns,n.id),this.Bv(s,n),this.Gv(s,n)])}resetIdentity(){this.it!==null&&(this.it=null),this.getIdentityPrint()&&this.I.renewVisitor(),this.ve.get()&&this.ve.remove()}getIdentityPrint(){let t=this.I.getVisitor();return!t||!t.identityPrint?null:t.identityPrint}getIdentity(){let t=this.ve.get();return t||null}getEncryptedIdentityAndKey(){let t=this.ve.get();if(!t)return null;let e=csString.prototype.split.call(t,".");return e.length!==3?null:`${e[1]}.${e[2]}`}setIdentityCookie(t){this.ve.set(t)}async jv(t,e){return e?await this.Mf(t)!==e:!1}async Bv(t,e){e.identityPrint=await this.Mf(t),this.I.setVisitor(e)}async Mf(t){var e;if(((e=this.kl)===null||e===void 0?void 0:e.identity)===t)return this.kl.identityPrint;let s=await this.Of(t),n=Ct.truncate(s,12);return this.kl={identity:t,identityPrint:n},n}async Of(t){return Hl(ca,this.Vl.encode(CE+t))}async Lv(t){this.va=Ct.truncate(t,16);let e=this.ve.get();if(!e)return;let s=csString.prototype.split.call(e,".");s.length===3&&s[2]!==this.va&&this.ve.remove()}async Uv(t){try{this.Hl=await Ws.crypto.importKey(IE,Rc(t),{name:ru,hash:ca},!1,["encrypt"])}catch{ut.error(`fail to import encryption key '${t}'`,"IdentityService")}}async zv(t){if(!this.Hl)return null;let e=Ao(t);e.byteLength>nu&&(ut.error("arrayBuffer too long","encryptIdentity"),e=e.slice(0,nu));try{let s=await Ws.crypto.encrypt({name:ru},this.Hl,e);return gm(s)}catch{return null}}async Gv(t,e){if(await this.jl,!this.va)return;let s=await this.qv(t);s&&this.ve.set(`${e.id}.${s}.${this.va}`)}async qv(t){var e;if(((e=this.xl)===null||e===void 0?void 0:e.identity)===t)return this.xl.encryptedIdentity;let s=await this.zv(t);return s?(this.xl={identity:t,encryptedIdentity:s},s):null}async $v(t,e,s,n){let o=e?await Hl(ca,this.Vl.encode(t)):t,c=csString(await yE(n));this.Ul={a:s,u:c,st:U.now().toString(),b:"web",i:o,v:"1",s:"1"},this.kn.send()}Hv(t){for(let e of bE)if(t===e)return!0;for(let e of TE)if(e.test(t))return!0;return!1}}return i.$deps=[ht,Se,en,dE],i})(),NE=(()=>{class i{constructor(){this.Df=255,this.Wv="****",this.Fv="data-cs-hide-title",this.Yv="data-heap-redact-text",this.Sa={value:!1,onNextPageviewOnly:!1}}getRequestParameters(){return{t:this.getPageTitle()}}getPageTitle(){return this.Sa.value||this.Xv()?this.Wv:this.Kv(_w.document.title)}setHidePageTitle(t){this.Sa={value:!0,onNextPageviewOnly:t}}resetHidePageTitle(){this.Sa={value:!1,onNextPageviewOnly:!1}}updateStateOnAfterPageview(){this.Sa.onNextPageviewOnly&&this.resetHidePageTitle()}Xv(){let t=_w.csquerySelector[_d.nodeType].call(_d,"head > title");return t===null?!1:t.getAttribute(this.Fv)!==null||t.getAttribute(this.Yv)!==null}Kv(t){return t.length>this.Df?csString.prototype.substring.call(t,0,this.Df):t}}return i.$deps=[],i})(),H0=k(857).Jx;var j0=k(857).Jx;var po=(()=>{class i{constructor(t,e,s){this.E=t,this.I=e,this.R=s,this.xf=[]}addParamsEnhancer(t){csArray.prototype.push.call(this.xf,t)}getRequestParameters(){let t={...Cc(),...this.E.getRequestParameters()},e=this.R.getSession();e&&(t.pn=`${e.pageNumber}`);let s=this.I.getVisitor();s&&(t.sn=`${s.visitsCount}`,t.uu=`${s.id}`);for(let n of this.xf)n.enhanceRequestParams(t);if(_w.heap&&!this.E.isCsCrosswritingHeap())try{t.happid=_w.heap.appid,_w.heap.getSessionId&&(t.hsid=_w.heap.getSessionId()),_w.heap.getUserId?t.huu=_w.heap.getUserId():_w.heap.userId&&(t.huu=_w.heap.userId),_w.heap.getPageviewMetadata&&(t.hpvid=_w.heap.getPageviewMetadata().pageviewId)}catch{delete t.happid,delete t.hsid,delete t.huu,delete t.hpvid}return t}}return i.$deps=[ht,Se,Oe],i})(),Ya=(()=>{class i extends po{constructor(t,e,s){super(t,e,s)}}return i.$deps=[ht,Se,Oe],i})(),Xa=(()=>{class i extends po{constructor(t,e,s){super(t,e,s)}}return i.$deps=[ht,Se,Oe],i})(),No=(()=>{class i{setContext(t,e){this.I=t,this.R=e}getVisitorService(){return this.I}getSessionService(){return this.R}}return i.$deps=[],i})();var Xt=(()=>{let i;return function(r){r.Discovery="discovery",r.Stop="stop",r.RecordingContext="recordingContext",r.SensitiveStatus="sensitiveStatus",r.RecordingEvent="recordingEvent",r.EndOfBufferedMessages="endOfBufferedMessages",r.ChildLogMessage="childLogMessage",r.AnalysisEvent="analysisEvent",r.JavascriptError="javascriptError",r.ApiError="apiError",r.Assets="assets",r.DetailedApiError="detailedApiError",r.EmerchandisingMessage="emerchandisingMessage",r.Commands="commands",r.IntegrationCallback="integrationCallback",r.StaticResource="staticResource",r.TrackingContextResultMessage="trackingContextResultMessage",r.TrackingContextRequestMessage="trackingContextRequestMessage",r.CustomError="customError"}(i||(i={})),i})(),OE=k(857).Jx,Kt=!rd&&_d.createElement("a"),ME=/(:443|:80)$/;function ji(i){return Kt?(Kt.href=i,Kt.href):""}function DE(i,r){return new OE(i,r).href}function kE(i,r,t={}){let{allowWildcard:e=!0}=t;return csArray.prototype.some.call(r,s=>e&&s===""||s!==""&&(ir(i,`.${s}`)||i===s))}function xE(i){return i[0]==="/"?i:`/${i}`}function ou(i){return csString.prototype.replace.call(i,ME,"")}function Kd(i){return!Kt||!Jt(i,"http://")&&!Jt(i,"https://")?null:(Kt.href=i,{hash:Kt.hash,host:ou(Kt.host),hostname:Kt.hostname,href:Kt.href,origin:Kt.origin?Kt.origin:ou(`${Kt.protocol}//${Kt.host}`),pathname:xE(Kt.pathname),port:Kt.port,protocol:Kt.protocol,search:Kt.search})}var LE=(()=>{class i{constructor(t,e){this.Ke=t,this.tS=e}init(){this.Bt=new ao({endpoint:this.Ke.getLoggerUri(),contentType:"text/plain"})}send(t){let e=this.tS.getRequestParameters(),s=csArray.prototype.map.call(t,n=>({...e,a:n.app,l:n.level,m:n.message,s:n.stacktrace}));this.Bt.send(s)}getRequestParameters(){return{}}}return i})(),VE=k(857)._R,UE="uxa",au=5,Qd="snippet-",Jd="implementation-snippet-",cu=(()=>{let i;return function(r){r.IMPLEMENTATION="implementation",r.DYNAMIC="dynamic"}(i||(i={})),i})(),HE=(()=>{class i{constructor(t,e,s,n){this.as=e,this.O=new Be,this.Lf=Xo[Et.warn],this.Lf=Xo[t.minLogLevel||Et.warn];let o=new Td(t,this.O);this.Bt=s||new Pd(t,o),this.Vf=n||new LE(t,o),this.Bl={[Et.debug]:[],[Et.warn]:[],[Et.implementation]:[],[Et.error]:[],[Et.critical]:[]},this.Aa={implementation:{},dynamic:{}},this.Bt.init(),this.Vf.init()}send(t,e="",s=Et.warn){if(!this.Uf(s,e))return;csArray.prototype.push.call(this.Bl[s],e||"");let n=this.eS(),o={message:Ic(this.O,t,e),stacktrace:Rd(t,n),app:UE,level:s};this.Bt.send(o)}sendBulk(t){let e=csArray.prototype.filter.call(t,n=>{let o=n.level,c=this.iS(n.message);return csString.prototype.startsWith.call(n.message,"debug-ct-log")?!0:this.Uf(o,c)?(csArray.prototype.push.call(this.Bl[o],c||""),!0):!1});if(e.length===0)return;let s=csArray.prototype.map.call(e,n=>({...n,message:n.message,stacktrace:n.stacktrace}));this.Vf.send(s)}iS(t){let e=csString.prototype.match.call(t,/ErrorCode: (.+)$/);return e?e[1]:""}eS(){let t=this.as.getVisitorService(),e=t==null?void 0:t.getVisitor();if(!e)return"No context";let s=this.as.getSessionService(),n=s&&s.getSession(),o={userId:e.id,sessionNumber:e.visitsCount,pageNumber:n&&n.pageNumber};return VE.stringify(o)}Uf(t,e){if(Xo[t]=au?!1:!(e&&csArray.prototype.some.call(s,n=>n===e))}Hf(t,e){return t in this.Aa[e]?this.Aa[e][t]>=au?!1:(this.Aa[e][t]+=1,!0):(this.Aa[e][t]=1,!0)}}return i})(),ci=k(857)._R;var jE=(()=>{let i;return function(r){function t(){return typeof _w.CSJavascriptBridge=="object"&&typeof _w.CSJavascriptBridge.optIn=="function"&&typeof _w.CSJavascriptBridge.optOut=="function"&&typeof _w.CSJavascriptBridge.sendEvent=="function"&&typeof _w.CSJavascriptBridge.sendDynamicVar=="function"&&typeof _w.CSJavascriptBridge.sendTransaction=="function"}r.isCSJavascriptBridgeDefined=t;function e(){if(typeof _w.CSJavascriptBridge.getVersion=="function")try{let q=_w.CSJavascriptBridge.getVersion();if(jt(q))return q}catch{$.warn("an error occurred when calling getVersion")}return null}r.getBridgeVersion=e;function s(){typeof _w.CSJavascriptBridge.onWebviewTrackingReady=="function"&&_w.CSJavascriptBridge.onWebviewTrackingReady()}r.notifyIsReadyForTracking=s;function n(q,lt){_w.CSJavascriptBridge.identify&&_w.CSJavascriptBridge.identify(q,ci.stringify(lt))}r.identify=n;function o(){_w.CSJavascriptBridge.resetIdentity&&_w.CSJavascriptBridge.resetIdentity()}r.resetIdentity=o;function c(q){_w.CSJavascriptBridge.addUserProperties&&_w.CSJavascriptBridge.addUserProperties(ci.stringify(q))}r.addUserProperties=c;function l(q){_w.CSJavascriptBridge.addEventProperties&&_w.CSJavascriptBridge.addEventProperties(ci.stringify(q))}r.addEventProperties=l;function u(q){_w.CSJavascriptBridge.removeEventProperty&&_w.CSJavascriptBridge.removeEventProperty(q)}r.removeEventProperty=u;function h(){_w.CSJavascriptBridge.clearEventProperties&&_w.CSJavascriptBridge.clearEventProperties()}r.clearEventProperties=h;function p(q){_w.CSJavascriptBridge.addPageviewProperties&&_w.CSJavascriptBridge.addPageviewProperties(ci.stringify(q))}r.addPageviewProperties=p;function E(q){_w.CSJavascriptBridge.removePageviewProperty&&_w.CSJavascriptBridge.removePageviewProperty(q)}r.removePageviewProperty=E;function m(){_w.CSJavascriptBridge.clearPageviewProperties&&_w.CSJavascriptBridge.clearPageviewProperties()}r.clearPageviewProperties=m;function S(q){_w.CSJavascriptBridge.sendEvent(ci.stringify(q))}r.sendAnalysisEvent=S;function A(q){if(_w.CSJavascriptBridge.sendSREvent)for(let lt of q.events)_w.CSJavascriptBridge.sendSREvent(ci.stringify(lt))}r.sendSREvent=A;function x(q){_w.CSJavascriptBridge&&_w.CSJavascriptBridge.sendLog&&_w.CSJavascriptBridge.sendLog(ci.stringify(q))}r.sendLog=x;function I(){_w.CSJavascriptBridge.optIn()}r.sendOptIn=I;function C(){_w.CSJavascriptBridge.optOut()}r.sendOptOut=C;function H(q,lt){_w.CSJavascriptBridge.sendDynamicVar(q,lt)}r.sendDynamicVariable=H;function M(q,lt,Lt){_w.CSJavascriptBridge.sendTransaction(q,lt,Lt)}r.sendTransaction=M;function N(q,lt){if(_w.CSJavascriptBridge.sendAssets){let Lt=ci.stringify(q);_w.CSJavascriptBridge.sendAssets(Lt,lt||null)}else _w.CSJavascriptBridge.sendSRAssets&&_w.CSJavascriptBridge.sendSRAssets(csArray.prototype.map.call(q,Lt=>Lt.assetId))}r.sendAssets=N;function W(q){_w.CSJavascriptBridge&&_w.CSJavascriptBridge.sendNativeSREvent&&_w.CSJavascriptBridge.sendNativeSREvent(ci.stringify(q))}r.sendNativeSREvent=W}(i||(i={})),i})(),$E="No stacktrace",BE=(()=>{class i{constructor(){this.O=new Be}send(t,e,s=Et.warn){let n={message:Ic(this.O,t),errorCode:e,level:s},o=this.sS(t);o&&(n.stacktrace=o),jE.sendLog(n)}sS(t){if(Je(t))return`${t.stack||$E}`}sendBulk(t){}}return i.$deps=[],i})(),lu=(()=>{class i{constructor(t,e,s){this.pt=t,this.E=e,this.as=s}createStrategy(){return this.pt.isTopWindowTracker()?new HE(this.E,this.as):this.pt.isInWebViewContext()?new BE:new Nd(this.E)}}return i.$deps=[Qs,ht,No],i})();function bt(i,r,t,e){var s=arguments.length,n=s<3?r:e===null?e=Object.getOwnPropertyDescriptor(r,t):e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,r,t,e);else for(var c=i.length-1;c>=0;c--)(o=i[c])&&(n=(s<3?o(n):s>3?o(r,t,n):o(r,t))||n);return s>3&&n&&Object.defineProperty(r,t,n),n}var uu=k(857).al;function GE(){try{let i=new Error,r=i.stack?csArray.prototype.filter.call(csString.prototype.split.call(i.stack,` `),e=>e!=="Error"&&csString.prototype.indexOf.call(csString.prototype.toLowerCase.call(e),"promise ")===-1&&csString.prototype.indexOf.call(e,"[native code]")===-1&&csString.prototype.indexOf.call(e,"()")===-1):[];if(r.length===0)return"";let t=qE(r);return t===""||(r=WE(r,t),r.length===0)?"":Zd(r[0])}catch{return""}}function zE(i){return csString.prototype.indexOf.call(i,"@")!==-1}function qE(i){return i.length>0?Zd(i[0]):""}function WE(i,r){return csArray.prototype.filter.call(i,t=>csString.prototype.indexOf.call(t,r)===-1)}function Zd(i){let r="",t;zE(i)?t=new uu("@(.+):(\\d+):(\\d+)$"):t=new uu("\\((.+):(\\d+):(\\d+)\\)");let e=t.exec(i);return e&&(r=e[1]),r}var ns=(()=>{let i;return function(r){r[r.Properties=1]="Properties",r[r.Methods=2]="Methods",r[r.All=3]="All"}(i||(i={})),i})(),Fn=new WeakMap,la=new WeakMap;function FE(i,r){if(!i||typeof i!="object"&&typeof i!="function")return i;if(Fn.has(i))return Fn.get(i);let t=r();return Fn.set(i,t),t}function Ka(i,r){return i.prototype=r.prototype,Object.defineProperty(i,"toString",{value:()=>r.toString()}),i}function YE(i,r,t,e,s){let n=csString(r);Object.defineProperty(i,r,{set(o){var c;let l=t.get?t.get.call(this):void 0,u=(c=t.set)===null||c===void 0?void 0:c.apply(this,[o]);return Fn.delete(l),e(this,{name:n,args:[o],result:u,oldValue:l}),u},get(){var o;let c=this,l=(o=t.get)===null||o===void 0?void 0:o.apply(this);return typeof Proxy!="function"?l:FE(l,()=>{let u=new Map,h=new Proxy(l,{get(p,E){let m=Reflect.get(p,E);if(typeof m!="function")return m;let S=u.get(m);if(S)return S;let A;return s&ns.Methods?A=Ka(function(...x){let I=la.get(this)||this,C=Reflect.apply(m,I,x);return e(c,{name:n,property:E,args:x,result:C}),C},m):A=Ka(function(...x){let I=la.get(this)||this;return Reflect.apply(m,I,x)},m),u.set(m,A),A},set:s&ns.Properties?(p,E,m)=>{let S=Reflect.get(p,E),A=Reflect.set(p,E,m);return e(c,{name:n,property:E,args:[m],result:A,oldValue:S}),A}:Reflect.set});return la.set(h,l),h})}})}function XE(i,r,t,e,s,n){let o=csString(r),c={};t.get&&(c.get=t.get),t.set&&(c.set=function(l){let u=t.get?t.get.call(this):this[r],h=t.set.call(this,l);return e(this,{name:o,args:[l],result:h,oldValue:u}),h}),t.value&&(typeof t.value=="function"?c.value=Ka(function(...l){let u=s?s(l):l,h=Reflect.apply(t.value,this,l);if(n){let p=GE();e(this,{name:o,args:csArray.from(u),result:h,callerName:p})}else e(this,{name:o,args:csArray.from(u),result:h});return h},t.value):c.value=t.value,c.writable=t.writable!==!1),t.configurable!==void 0&&(c.configurable=t.configurable),t.enumerable!==void 0&&(c.enumerable=t.enumerable),Object.defineProperty(i,r,c)}function it(i,r,t,e={}){var s,n;let o=i&&i.prototype?i.prototype:i;if(!o)return()=>{};let c=(s=e.ownProperty)!==null&&s!==void 0?s:!1,l=e.mode!=null?`_m${e.mode}`:"",u=Symbol.for(`fd_intercept_${r}${l}`);if(c?Object.prototype.hasOwnProperty.call(o,u):u in o){let S=o[u];return S.add(t),()=>S.delete(t)}let p=new Set([t]);o[u]=p;let E=Object.getOwnPropertyDescriptor(o,r);if(!E)return Vr.warn(`Could not find descriptor for ${r} on target ${o}`),()=>p.delete(t);if(!E.configurable)return Vr.warn(`Cannot intercept non-configurable property '${r}' on target ${o}`),()=>p.delete(t);if(E.value&&typeof E.value=="function"&&!E.writable)return Vr.warn(`Cannot intercept read-only function '${r}' on target ${o}`),()=>p.delete(t);let m=(S,A)=>{jd(()=>{for(let x of p)try{x(S,A)}catch(I){Vr.error(`Error in intercept hook for ${r} on target ${o}`,I)}},{type:"intercept",method:r,context:S,args:A.args})};return e.mode?YE(o,r,E,m,e.mode):XE(o,r,E,m,e.prepareArgs,(n=e.withCallerName)!==null&&n!==void 0?n:!1),()=>p.delete(t)}var fn=(()=>{var i;class r{static rS(e){this.Ci.forEach(s=>{e(s,"initial")})}static xn(e){if(this.j||(this.j=new csMutationObserver(s=>{for(let n of s)csNodeisConnected.apply(n.target)&&pt(n.addedNodes,this.nS),pt(n.removedNodes,this.oS)})),csArray.prototype.push.call(this._t,e),!this.bt){this.bt=!0,this.j.observe(_d,this.Ln);for(let s of di.getAllShadowHosts(_d)){let n=csElementshadowRoot.apply(s);this.Ci.add(n),this.j.observe(n,this.Ln)}this.ti||(this.ti=it(Element,"attachShadow",(s,{result:n})=>this.$s(n)&&this.jf(n)))}this.rS(e)}static $s(e){return csNodeisConnected.apply(e)&&e.ownerDocument===_d}static Vn(e){var s,n;this._t=csArray.prototype.filter.call(this._t,o=>o!==e),this._t.length===0&&(this._t=[],this.bt=!1,(s=this.j)===null||s===void 0||s.disconnect(),(n=this.ti)===null||n===void 0||n.call(this),this.ti=null,this.Ci.clear())}constructor(e){this.C=e,this.C=Li("DocumentShadowRootObserver:callback",(s,n)=>e(s,n))}get shadowRoots(){return ds(i.Ci)}static get shadowRootsCount(){if(i.bt)return ds(i.Ci).length}takeRecords(){var e,s;return(s=(e=i.j)===null||e===void 0?void 0:e.takeRecords())!==null&&s!==void 0?s:[]}observe(){di.isSupported()&&i.xn(this.C)}disconnect(){di.isSupported()&&i.Vn(this.C)}}return i=r,r._t=[],r.Ci=new Set,r.bt=!1,r.ti=null,r.Ln={childList:!0,subtree:!0},r.jf=t=>{i.Ci.has(t)||(i.j.observe(t,i.Ln),i.Ci.add(t),pt(i._t,e=>e(t,"added")))},r.nS=t=>{ve(t,NodeFilter.SHOW_DOCUMENT_FRAGMENT).visitAll(i.jf)},r.oS=t=>{csNodeisConnected.apply(t)||ve(t,NodeFilter.SHOW_DOCUMENT_FRAGMENT).visitAll(e=>{i.Ci.has(e)&&(i.Ci.delete(e),pt(i._t,s=>s(e,"removed")))})},bt([V()],r.prototype,"observe",null),bt([V()],r.prototype,"disconnect",null),r})(),rs=(()=>{let i;return function(r){r.Artificial="a",r.Renewal="r",r.Natural="n"}(i||(i={})),i})(),KE=(()=>{class i{constructor(){this.je=null,this.aS=1}startInterval(){this.je=_w.csSetInterval(()=>{let t=this.aS++;if(this.flush(`interval.${t}`),t>=5){this.stopInterval();return}},5e3)}flush(t){G.counters.tasks.flush(t),G.counters.longTasks.flush(t)}clear(){G.counters.tasks.reset(),G.counters.longTasks.reset(),this.stopInterval()}stopInterval(){this.je&&(csClearInterval(this.je),this.je=null)}}return i})(),tf=-1,rr=i=>{addEventListener("pageshow",r=>{r.persisted&&(tf=r.timeStamp,i(r))},!0)},Ze=(i,r,t,e)=>{let s,n;return o=>{r.value>=0&&(o||e)&&(n=r.value-(s!=null?s:0),(n||s===void 0)&&(s=r.value,r.delta=n,r.rating=((c,l)=>c>l[1]?"poor":c>l[0]?"needs-improvement":"good")(r.value,t),i(r)))}},Uc=i=>{requestAnimationFrame(()=>requestAnimationFrame(()=>i()))},Hc=()=>{let i=performance.getEntriesByType("navigation")[0];if(i&&i.responseStart>0&&i.responseStart{var r;let i=Hc();return(r=i==null?void 0:i.activationStart)!=null?r:0},ti=(i,r=-1)=>{let t=Hc(),e="navigate";return tf>=0?e="back-forward-cache":t&&(_d.prerendering||pn()>0?e="prerender":_d.wasDiscarded?e="restore":t.type&&(e=t.type.replace(/_/g,"-"))),{name:i,value:r,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:e}},ua=new WeakMap;function jc(i,r){return ua.get(i)||ua.set(i,new r),ua.get(i)}var Qa=class{constructor(){ai(this,"t");ai(this,"i",0);ai(this,"o",[])}h(r){var s;if(r.hadRecentInput)return;let t=this.o[0],e=this.o.at(-1);this.i&&t&&e&&r.startTime-e.startTime<1e3&&r.startTime-t.startTime<5e3?(this.i+=r.value,this.o.push(r)):(this.i=r.value,this.o=[r]),(s=this.t)==null||s.call(this,r)}},gn=(i,r,t={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(i)){let e=new PerformanceObserver(s=>{Promise.resolve().then(()=>{r(s.getEntries())})});return e.observe({type:i,buffered:!0,...t}),e}}catch{}},$c=i=>{let r=!1;return()=>{r||(i(),r=!0)}},zs=-1,hu=()=>_d.visibilityState!=="hidden"||_d.prerendering?1/0:0,go=i=>{_d.visibilityState==="hidden"&&zs>-1&&(zs=i.type==="visibilitychange"?i.timeStamp:0,QE())},du=()=>{addEventListener("visibilitychange",go,!0),addEventListener("prerenderingchange",go,!0)},QE=()=>{removeEventListener("visibilitychange",go,!0),removeEventListener("prerenderingchange",go,!0)},ef=()=>{var i;if(zs<0){let r=pn(),t=_d.prerendering||(i=_w.performance.getEntriesByType("visibility-state").filter(e=>e.name==="hidden"&&e.startTime>r)[0])==null?void 0:i.startTime;zs=t!=null?t:hu(),du(),rr(()=>{setTimeout(()=>{zs=hu(),du()})})}return{get firstHiddenTime(){return zs}}},Oo=i=>{_d.prerendering?addEventListener("prerenderingchange",()=>i(),!0):i()},fu=[1800,3e3],sf=(i,r={})=>{Oo(()=>{let t=ef(),e,s=ti("FCP"),n=gn("paint",o=>{for(let c of o)c.name==="first-contentful-paint"&&(n.disconnect(),c.startTime{s=ti("FCP"),e=Ze(i,s,fu,r.reportAllChanges),Uc(()=>{s.value=performance.now()-o.timeStamp,e(!0)})}))})},pu=[.1,.25],JE=(i,r={})=>{sf($c(()=>{let t,e=ti("CLS",0),s=jc(r,Qa),n=c=>{for(let l of c)s.h(l);s.i>e.value&&(e.value=s.i,e.entries=s.o,t())},o=gn("layout-shift",n);o&&(t=Ze(i,e,pu,r.reportAllChanges),_d.addEventListener("visibilitychange",()=>{_d.visibilityState==="hidden"&&(n(o.takeRecords()),t(!0))}),rr(()=>{s.i=0,e=ti("CLS",0),t=Ze(i,e,pu,r.reportAllChanges),Uc(()=>t())}),setTimeout(t))}))},rf=0,ha=1/0,Ln=0,ZE=i=>{for(let r of i)r.interactionId&&(ha=Math.min(ha,r.interactionId),Ln=Math.max(Ln,r.interactionId),rf=Ln?(Ln-ha)/7+1:0)},Ja,gu=()=>{var i;return Ja?rf:(i=performance.interactionCount)!=null?i:0},t_=()=>{"interactionCount"in performance||Ja||(Ja=gn("event",ZE,{type:"event",buffered:!0,durationThreshold:0}))},mu=0,Za=class{constructor(){ai(this,"u",[]);ai(this,"l",new Map);ai(this,"m");ai(this,"p")}v(){mu=gu(),this.u.length=0,this.l.clear()}P(){let r=Math.min(this.u.length-1,Math.floor((gu()-mu)/50));return this.u[r]}h(r){var s,n;if((s=this.m)==null||s.call(this,r),!r.interactionId&&r.entryType!=="first-input")return;let t=this.u.at(-1),e=this.l.get(r.interactionId);if(e||this.u.length<10||r.duration>t.T){if(e?r.duration>e.T?(e.entries=[r],e.T=r.duration):r.duration===e.T&&r.startTime===e.entries[0].startTime&&e.entries.push(r):(e={id:r.interactionId,entries:[r],T:r.duration},this.l.set(e.id,e),this.u.push(e)),this.u.sort((o,c)=>c.T-o.T),this.u.length>10){let o=this.u.splice(10);for(let c of o)this.l.delete(c.id)}(n=this.p)==null||n.call(this,e)}}},nf=i=>{let r=_w.requestIdleCallback||setTimeout;_d.visibilityState==="hidden"?i():(r(i=$c(i)),_d.addEventListener("visibilitychange",i,{once:!0}))},yu=[200,500],e_=(i,r={})=>{_w.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&Oo(()=>{var c;t_();let t,e=ti("INP"),s=jc(r,Za),n=l=>{nf(()=>{for(let h of l)s.h(h);let u=s.P();u&&u.T!==e.value&&(e.value=u.T,e.entries=u.entries,t())})},o=gn("event",n,{durationThreshold:(c=r.durationThreshold)!=null?c:40});t=Ze(i,e,yu,r.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),_d.addEventListener("visibilitychange",()=>{_d.visibilityState==="hidden"&&(n(o.takeRecords()),t(!0))}),rr(()=>{s.v(),e=ti("INP"),t=Ze(i,e,yu,r.reportAllChanges)}))})},tc=class{constructor(){ai(this,"m")}h(r){var t;(t=this.m)==null||t.call(this,r)}},Eu=[2500,4e3],i_=(i,r={})=>{Oo(()=>{let t=ef(),e,s=ti("LCP"),n=jc(r,tc),o=l=>{r.reportAllChanges||(l=l.slice(-1));for(let u of l)n.h(u),u.startTime{o(c.takeRecords()),c.disconnect(),e(!0)});for(let u of["keydown","click","visibilitychange"])addEventListener(u,()=>nf(l),{capture:!0,once:!0});rr(u=>{s=ti("LCP"),e=Ze(i,s,Eu,r.reportAllChanges),Uc(()=>{s.value=performance.now()-u.timeStamp,e(!0)})})}})},_u=[800,1800],ec=i=>{_d.prerendering?Oo(()=>ec(i)):_d.readyState!=="complete"?addEventListener("load",()=>ec(i),!0):setTimeout(i)},s_=(i,r={})=>{let t=ti("TTFB"),e=Ze(i,t,_u,r.reportAllChanges);ec(()=>{let s=Hc();s&&(t.value=Math.max(s.responseStart-pn(),0),t.entries=[s],e(!0),rr(()=>{t=ti("TTFB",0),e=Ze(i,t,_u,r.reportAllChanges),e(!0)}))})},of=(()=>{class i{static observe(t,e){csArray.prototype.forEach.call(t,s=>{i._t[s]&&i._t[s].add(e),csArray.prototype.includes.call(i.$f,s)||i.cS(s)})}static cS(t){try{switch(t){case"FCP":sf(e=>{i._t.FCP.forEach(s=>s(e))},{reportAllChanges:!0});break;case"CLS":JE(e=>{i._t.CLS.forEach(s=>s(e))},{reportAllChanges:!0});break;case"LCP":i_(e=>{i._t.LCP.forEach(s=>s(e))},{reportAllChanges:!0});break;case"TTFB":s_(e=>{i._t.TTFB.forEach(s=>s(e))},{reportAllChanges:!0});break;case"INP":e_(e=>{i._t.INP.forEach(s=>s(e))},{reportAllChanges:!0});break}csArray.prototype.push.call(i.$f,t)}catch{G.counters.webVitalsErrors.count(t)}}static disconnect(t,e){csArray.prototype.forEach.call(t,s=>{i._t[s]&&i._t[s].delete(e)})}constructor(t,e){this.Bf=t,this.C=e}observe(){i.observe(this.Bf,this.C)}disconnect(){i.disconnect(this.Bf,this.C)}}return i.$f=[],i._t={FCP:new Set,CLS:new Set,LCP:new Set,TTFB:new Set,INP:new Set},i})(),r_=(()=>{class i{get lS(){return typeof PerformanceObserver!="undefined"&&(PerformanceObserver.supportedEntryTypes==null?void 0:csArray.prototype.includes.call(PerformanceObserver.supportedEntryTypes,"long-animation-frame"))}get uS(){return typeof performance=="object"&&typeof performance.getEntriesByType=="function"}constructor(){var t;this.U=!1,this.Gl=null,this.hS=10,this.dS=5,this.cs=[],this.Bs=[],this.Un=new of(["INP"],e=>this.onINP(e)),this.Gf=(t=_w.CSCurrentScript)===null||t===void 0?void 0:t.src}start(){this.lS&&this.uS&&this.Gf&&(this.Un.observe(),this.initLoAFObserver(),this.U=!0)}stop(){var t;this.U&&(this.Un.disconnect(),(t=this.Gl)===null||t===void 0||t.disconnect(),this.cs=[],this.Bs=[],this.U=!1)}initLoAFObserver(){var t;this.Gl=new PerformanceObserver(e=>{for(let s of e.getEntries())this.onLoAF(s)}),(t=this.Gl)===null||t===void 0||t.observe({type:"long-animation-frame",buffered:!1})}onINP(t){if(!t.entries||t.entries.length===0)return;let e=t.entries[0],s=t.entries[t.entries.length-1],n=e.startTime,o=s.startTime+s.duration;csArray.prototype.push.call(this.Bs,{metric:t,startTime:n,endTime:o}),this.Bs.length>this.dS&&csArray.prototype.shift.call(this.Bs)}onLoAF(t){let e={startTime:t.startTime,duration:t.duration,csDuration:csArray.prototype.reduce.call(csArray.prototype.filter.call(t.scripts,s=>s.sourceURL===this.Gf),(s,n)=>s+n.duration,0)};csArray.prototype.push.call(this.cs,e),this.cs.length>this.hS&&csArray.prototype.shift.call(this.cs),this.fS()}fS(){for(;this.Bs.length>0;){let t=this.Bs[0],e=this.pS(t.startTime,t.endTime);if(e===null)break;csArray.prototype.shift.call(this.Bs),e.length>0&&this.reportINPWithLoAFs(t,e)}}pS(t,e){let s=this.cs[0],n=this.cs[this.cs.length-1];return s&&s.startTime>e?[]:n&&n.startTime+n.duration{let l=c.startTime+c.duration;return tc.startTime})}reportINPWithLoAFs(t,e){let s=t.metric.value,n=t.startTime,o=t.endTime,c=0;csArray.prototype.forEach.call(e,l=>{let u=l.startTime+l.duration,h=Math.max(l.startTime,n),p=Math.min(u,o),E=Math.max(0,p-h);if(l.duration>0){let m=l.csDuration/l.duration;c+=E*m}}),G.counters.inpLoaf.add("total",s),G.counters.inpLoaf.add("contribution",c)}}return L([V()],i.prototype,"initLoAFObserver",null),L([V()],i.prototype,"onINP",null),L([V()],i.prototype,"onLoAF",null),L([V()],i.prototype,"reportINPWithLoAFs",null),i})(),n_=k(857).Jx,o_="t.contentsquare.net",a_="t-staging.contentsquare.net",c_="/experiment/",l_="experiment";function u_(i){return i==="staging"?a_:o_}function vu(i){try{return new n_(i)}catch{return null}}var Su=(()=>{class i{constructor(t){this.E=t,this.Hn=!1,this.zl=[],this.zf=new r_,this.Ii=new KE,this.qf=u_(t.environment)}onStartTracking(){this.gS(),this.zf.start()}gS(){if(typeof performance!="object"||typeof performance.getEntriesByType!="function")return;let t=this.mS();this.Wf(csArray.prototype.filter.call(t,e=>this.yS(e))),this.ES()&&this.Wf(csArray.prototype.filter.call(t,e=>this.Ff(e)),l_)}mS(){return csArray.prototype.filter.call(performance.getEntriesByType("resource"),t=>t.initiatorType==="script")}Wf(t,e){csArray.prototype.forEach.call(t,s=>{if(s.transferSize===0)return;let n=s.responseEnd-s.responseStart,o=s.transferSize;n>=0&&G.counters.downloadTime.push(n),o>=0&&G.counters.transferSize.push(o)}),G.counters.downloadTime.count>0&&G.counters.downloadTime.flush(e),G.counters.transferSize.count>0&&G.counters.transferSize.flush(e)}yS(t){var e;if(this.Ff(t))return!1;let s=(e=_w.CSCurrentScript)===null||e===void 0?void 0:e.src;return s?s===t.name:this._S(t.name)}Ff(t){let e=vu(t.name);return e?e.hostname===this.qf&&csString.prototype.startsWith.call(e.pathname,c_):!1}_S(t){var e;return((e=vu(t))===null||e===void 0?void 0:e.hostname)===this.qf}ES(){var t,e;return!!(!((e=(t=this.E.experiments)===null||t===void 0?void 0:t.list)===null||e===void 0)&&e.length)}Yf(){let t=fn.shadowRootsCount;t!==void 0&&G.counters.dom.add("shadow-dom",t),G.counters.mutations.flush(),G.counters.dom.flush(),G.counters.blockingTime.flush(),G.counters.inpContribution.flush(),G.counters.inpLoaf.flush()}onBeforeArtificialPageView(){this.Yf(),this.Xf(),this.Ii.stopInterval(),this.Hn=!0}onBeforeNaturalPageView(){this.Yf()}onAfterNaturalPageView(t){t===rs.Natural?(this.Ii.flush("boot"),this.Ii.startInterval()):(this.Xf(),this.Ii.stopInterval(),this.Hn=!0)}onInitialDomStart(){this.Hn||this.Ii.stopInterval()}onInitialDomDone(){if(this.Hn)return;this.Hn=!0,this.Ii.flush("initial-dom"),this.Kf(()=>{this.Ii.flush("post-initial-dom"),this.Ii.startInterval()},5e3);let t=0,e=this.Kf(()=>{let s=t.toString();G.counters.payloadSize.flush(s),++t>6&&e()},1e3,5e3)}onOptout(){this.Ii.clear(),this.zf.stop()}Xf(){csArray.prototype.forEach.call(this.zl,t=>t()),this.zl=[]}Kf(t,e,s){let n,o,c=()=>{o=void 0,t(),s!==void 0&&(n=self.csSetInterval(t,s))};o=self.csSetTimeout(c,e);let l=()=>{o!==void 0&&(csClearTimeout(o),o=void 0),n!==void 0&&(csClearInterval(n),n=void 0)};return csArray.prototype.push.call(this.zl,l),l}}return i.$deps=[ht],i})(),h_=k(857)._R,Hr=(()=>{class i{constructor(){this.ba={elementSelector:"",attrSelector:"",attrSelectors:[]},this.ql={elementSelector:"",attrSelector:"",attrSelectors:[]},this.vS=_w.top===_w?"pii-migration":"pii-migration-iframe",this.Qf=!1}onAfterNaturalPageView(){this.Jf()}onParentSensitiveStatusChange(t){t.started&&!this.Qf&&(this.Qf=!0,t.maskedElementSettings&&(this.ba=t.maskedElementSettings),this.Jf())}Jf(){var t,e;let s=this.Zf(this.ba),n=this.Zf(this.ql),o=csArray.prototype.filter.call(n.elementSelectors,l=>csArray.prototype.indexOf.call(s.elementSelectors,l)===-1&&l!=="[data-cs-mask]"),c={};for(let[l,u]of Object.entries(n.attrSelectors)){let h=s.attrSelectors[l]||[],p=csArray.prototype.filter.call(u,E=>csArray.prototype.indexOf.call(h,E)===-1);p.length>0&&(c[l]=p)}(o.length>0||Object.keys(c).length>0)&&($.computeIsActive(100),$.warn(h_.stringify({selectors:o,attrs:c}),!0,this.vS),$.computeIsActive((e=(t=_w.CS_CONF)===null||t===void 0?void 0:t.validationRate)!==null&&e!==void 0?e:10))}Zf(t){let e=csString.prototype.trim.call(t.elementSelector).length>0?csArray.prototype.filter.call(csArray.prototype.map.call(csString.prototype.split.call(t.elementSelector,","),n=>csString.prototype.trim.call(n)),n=>n.length>0):[],s={};for(let n of t.attrSelectors)s[n.attrName]=csArray.prototype.filter.call(csArray.prototype.map.call(csString.prototype.split.call(n.selector,","),o=>csString.prototype.trim.call(o)),o=>o.length>0);return{elementSelectors:e,attrSelectors:s}}markClicktalePIIInUse(t){this.ql=B.getComputedSelectorSettings(t,this.ql)}markPIIMaskingTemplateInUse(t){let e=B.sanitizeSelectorUserInput(t);this.ba=B.getComputedSelectorSettings(e,this.ba)}}return i.$deps=[],L([V()],i.prototype,"markPIIMaskingTemplateInUse",null),i})(),d_=(()=>{let i=class{};return i.$deps=[],i=L([Bt({providers:[he(Window,()=>{try{return _w}catch{return _w}}),he(Location,r=>r.location,[Window]),he(Storage,r=>r.localStorage,[Window])]})],i),i})(),$r="|iframe|",Mo=(()=>{class i extends Lc{emitIframeAnalysisUserEvent(t){for(let e of this.listeners)e.onIframeAnalysisUserEvent&&e.onIframeAnalysisUserEvent(t)}emitIframeAnalysisBrowserEvent(t){for(let e of this.listeners)e.onIframeAnalysisBrowserEvent&&e.onIframeAnalysisBrowserEvent(t)}emitIframeRecordingUserEvent(t){for(let e of this.listeners)e.onIframeRecordingUserEvent&&e.onIframeRecordingUserEvent(t)}emitIframeRecordingBrowserEvent(t){for(let e of this.listeners)e.onIframeRecordingBrowserEvent&&e.onIframeRecordingBrowserEvent(t)}emitIframeJavascriptError(t){for(let e of this.listeners)e.onIframeJavascriptError&&e.onIframeJavascriptError(t)}emitIframeApiError(t){for(let e of this.listeners)e.onIframeApiError&&e.onIframeApiError(t)}emitIframeDetailedApiError(t){for(let e of this.listeners)e.onIframeDetailedApiError&&e.onIframeDetailedApiError(t)}emitIframeEmerchandisingMessage(t){for(let e of this.listeners)e.onIframeEmerchandisingMessage&&e.onIframeEmerchandisingMessage(t)}emitIframeCommands(t){for(let e of this.listeners)e.onIframeCommands&&e.onIframeCommands(t)}emitIframeIntegrationCallback(t){for(let e of this.listeners)e.onIframeIntegrationCallback&&e.onIframeIntegrationCallback(t)}emitIframeStaticResource(t){for(let e of this.listeners)e.onIframeStaticResource&&e.onIframeStaticResource(t)}emitTrackingContextRequestMessage(t){for(let e of this.listeners)e.onTrackingContextRequestCallback&&e.onTrackingContextRequestCallback(t)}emitIframeCustomError(t){for(let e of this.listeners)e.onIframeCustomError&&e.onIframeCustomError(t)}}return i.$deps=[],i})(),wu=k(857)._R,f_=(()=>{let i;return function(r){r.UXA="_uxa",r.WVT="cs_wvt"}(i||(i={})),i})(),Me=(()=>{class i extends oe{constructor(t,e){super(),this.Wl=t,this.Fl=e,this.Pi={}}register(t,e,s){for(let n of t){let o=(...c)=>{let l=(s==null?void 0:s.metricParameter)||n;try{let u=e(...c);return G.counters.commandApplied.count(l),u}catch(u){u instanceof Rt?(G.counters.commandMisuse.count(l),$.implementation(`Misused Command: ${n}; Args: ${wu.stringify(c)}; Error: ${Je(u)?u.stack:u}`)):(G.counters.commandError.count(l),$.error(`Command Error - ${n}: ${Je(u)?u.stack:u}`))}};this.Pi[n]={callback:o,configuration:s}}}onStart(){this.SS(),this.wS()}onStop(){for(let t of this.Wl)_w[t]=[]}applyFromIntegration(t,e,s){this.tp(t,e,`Commands.apply.from.integration: ${s}`),G.counters.commandsFromIntegrations.count(t)}applyFromImplementation(t,e,s){var n;this.tp(t,e,`Commands.apply.from.implementation: ${s}`),G.counters.commandsFromCSTC.count(t),s==="PIIMaskingTemplate"&&((n=this.Fl)===null||n===void 0||n.markPIIMaskingTemplateInUse(e[0]))}onIframeCommands(t){for(let e of t.commands)this.AS(e.name,e.params,t.iframePath),G.counters.commandsFromIframe.count(e.name)}tp(t,e,s){if(!this.isStarted){_w._uxa.push([t,...e]);return}$.tryToExecute(s,()=>{if(this.Pi[t])return this.Pi[t].callback(...e)})()}AS(t,e,s){$.tryToExecute(`Commands.apply.from.iframe: ${s}`,()=>{if(this.Pi[t])return this.Pi[t].callback(...e)})()}SS(){for(let t of this.Wl)_w[t].forEach(([e,...s])=>this.ep(e,s,!1))}wS(){for(let t of this.Wl)_w[t]={push:([e,...s])=>this.ep(e,s,!0)}}ep(t,e,s){var n,o;if(this.Pi[t]){if(((n=this.Pi[t].configuration)===null||n===void 0?void 0:n.disableApplyPending)&&!s||((o=this.Pi[t].configuration)===null||o===void 0?void 0:o.disableApplyImmediate)&&s)return;try{return this.Pi[t].callback(...e)}catch(l){$.error(`Command ${t} failed - params: ${wu.stringify(e)}`,l)}}}}return i})(),J=(()=>{let i;return function(r){r[r.RESIZE=0]="RESIZE",r[r.SCROLL=1]="SCROLL",r[r.MOUSEMOVE=2]="MOUSEMOVE",r[r.MOUSEDOWN=3]="MOUSEDOWN",r[r.MOUSEUP=4]="MOUSEUP",r[r.CLICK=5]="CLICK",r[r.MOUSEOVER=6]="MOUSEOVER",r[r.MOUSEOUT=7]="MOUSEOUT",r[r.CHANGE=10]="CHANGE",r[r.FOCUSIN=11]="FOCUSIN",r[r.FOCUSOUT=12]="FOCUSOUT",r[r.TAP=14]="TAP",r[r.KEYDOWN=15]="KEYDOWN",r[r.KEYUP=16]="KEYUP",r[r.COMMAND=17]="COMMAND",r[r.PERFORMANCE=19]="PERFORMANCE",r[r.DRAG=20]="DRAG",r[r.FLICK=21]="FLICK",r[r.KEYBOARD_NAVIGATION=22]="KEYBOARD_NAVIGATION",r[r.ZOOM=23]="ZOOM",r[r.VIEWPORT_SCALE=24]="VIEWPORT_SCALE",r[r.TEXT_HIGHLIGHT=25]="TEXT_HIGHLIGHT",r[r.DEAD_CLICK=30]="DEAD_CLICK",r[r.DEAD_ZOOM=31]="DEAD_ZOOM",r[r.PAGE_RELOAD=32]="PAGE_RELOAD",r[r.THRASHED_CURSOR=33]="THRASHED_CURSOR",r[r.BLANK_PAGE=34]="BLANK_PAGE",r[r.EXTERNAL_EVENT=35]="EXTERNAL_EVENT",r[r.SUBMIT=36]="SUBMIT",r[r.CUSTOM_EVENT=37]="CUSTOM_EVENT"}(i||(i={})),i})(),hi=(()=>{let i;return function(r){r.APPCUES="appcues",r.CHAMELEON="chameleon",r.CONTENTSQUARE="contentsquare",r.SEGMENT="segment",r.SHOPIFY="shopify",r.WEB="web"}(i||(i={})),i})();function p_(i){return i.tgtHM!==void 0}function af(i){return i.tgt!==void 0}function g_(i){return i.tgtLk!==void 0}function m_(i){return i.x!==void 0&&i.y!==void 0}function y_(i){return i===hi.APPCUES||i===hi.CHAMELEON||i===hi.CONTENTSQUARE||i===hi.SEGMENT||i===hi.SHOPIFY||i===hi.WEB}var cf=(()=>{class i extends Lc{emitPageEvent(t){for(let e of this.listeners)e.onPageEvent&&e.onPageEvent(t)}emitEventTriggerRecording(t,e){for(let s of this.listeners)s.onEventTriggerRecording&&s.onEventTriggerRecording(t,e)}emitCustomJavaScriptErrorEvent(t){for(let e of this.listeners)e.onCustomJavaScriptErrorEvent&&e.onCustomJavaScriptErrorEvent(t)}emitCustomErrorEvent(t){for(let e of this.listeners)e.onCustomErrorEvent&&e.onCustomErrorEvent(t)}emitUserIdentifierEvent(t){for(let e of this.listeners)e.onUserIdentifierEvent&&e.onUserIdentifierEvent(t)}emitExternalEvent(t){for(let e of this.listeners)e.onExternalEvent&&e.onExternalEvent({type:J.EXTERNAL_EVENT,name:t,ts:0})}emitTargetingRulesArtificialPageview(t){for(let e of this.listeners)e.onTargetingRulesArtificialPageview&&e.onTargetingRulesArtificialPageview(t)}}return i.$deps=[],i})();function E_(){let i="CSSessionStorageTest";try{return sessionStorage.setItem(i,i),sessionStorage.getItem(i)!==i?!1:(sessionStorage.removeItem(i),!0)}catch{return!1}}var Au=k(857)._R,lf=(()=>{class i{constructor(t,e){this.E=t,this.On=e}canTrack(){return this.E.isProjectActive()&&this.bS()&&this.ip()&&this.TS()}canTrackInChild(){return this.E.isProjectActive()&&this.RS()&&(this.ip()||this.CS()||this.IS())}TS(){return this.E.cookielessTrackingEnabled?E_():this.On.areCookiesEnabled()}ip(){return kE(_w.location.hostname,this.E.hostnames)}bS(){return!this.sp()&&this.PS()}RS(){return!this.sp()&&this.NS()}CS(){return _w.location.protocol==="about:"&&_w.location.hostname===""}sp(){return"visibilityState"in _d&&_d.visibilityState==="prerender"}PS(){return this.rp()&&this.OS()}NS(){return this.rp()}OS(){try{return!!_w.localStorage}catch{return!1}}rp(){return"pageXOffset"in _w&&"pageYOffset"in _w&&"onpagehide"in _w&&"JSON"in _w&&"parse"in Au&&"stringify"in Au&&"addEventListener"in _w&&"removeEventListener"in _w&&"Node"in _w&&"filter"in csArray.prototype&&"forEach"in csArray.prototype&&"querySelectorAll"in _d&&"now"in Date&&"keys"in Object&&"performance"in _w&&"Map"in _w&&"Set"in _w}IS(){return this.E.isWebView&&_w.location.protocol==="file:"&&_w.location.hostname===""}}return i.$deps=[ht,Mc],i})(),__=(()=>{let i;return function(r){r.COMPRESSION_DISABLED="compressionDisabled"}(i||(i={})),i})(),v_=k(857).al,S_=(()=>{class i{constructor(){}static init(t){(!this.Yl||t!==void 0)&&this.initFlags(t)}static initFlags(t=_d.cookie){var e;let s=(e=/_cs_debug=((\w|\.|\:|=)+)/g.exec(t))===null||e===void 0?void 0:e[1];if(this.Yl=new Map,s){let n=csString.prototype.split.call(s,".");for(let o=0;o{var o;let c=s.toString(),l=`${(o=e.constructor)===null||o===void 0?void 0:o.name}.${c}`,u=n.value;w_(i.getString("debugLog"),t)&&(n.value=function(...h){return console.log(l,...h),u.bind(this)(...h)})}}}return i})();function w_(i,r){var t;return i==null?!1:i===r||!!(!((t=csString.prototype.match.call(i,new v_("(^|,)("+r+")(,|$)")))===null||t===void 0)&&t.length)}var A_=k(913),da=k(64).pu,b_=k(64).SV,T_=(()=>{class i extends dn{constructor(){super(),this.algorithm=hn.GZIP,this.MS=(0,A_.b)("base64"),this.compress=async(t,e,s)=>{await da.yield();let n=new Response(t).body.pipeThrough(new b_("gzip")),o=await new Response(n).arrayBuffer();if(e==="base64"){let c=await this.DS(o);return await da.yield(),s==null||s(c),c}else return await da.yield(),s==null||s(o),o}}compressSync(t){try{return this.MS(t)}catch(e){throw ut.warn(e),e}}DS(t){return new Promise(e=>{let s=new FileReader;s.onload=n=>e(n.target.result.split(",")[1]),s.readAsDataURL(new Blob([t]))})}}return i})(),R_=(()=>{class i extends dn{constructor(){super(...arguments),this.algorithm=hn.UNCOMPRESSED,this.compress=(t,e,s)=>{s(t)},this.compressSync=t=>t}}return i})(),uf=(()=>{class i{static create(t=!0){return this.instance?this.instance:t&&!S_.isCompressionEnabled()?new R_:this.instance=new T_}}return i})(),Bc=(()=>{class i{constructor(t){this.np=t}create(t,e,s,n){let o=e?{compressor:this.np.compress,compressionOutputType:e,compressionType:this.np.algorithm}:void 0;return new ao({endpoint:t,compressionOpts:o,recoveryStorage:s,disableRequestCounting:n})}}return i.$deps=[dn],i})(),C_=(()=>{class i{constructor(t,e,s,n=i.THROTTLE_INTERVAL){var o;this.send=t,this.getRequestParameters=e,this.onInit=s,this.queue=[],this.throttledFlush=ug(()=>this._flush(),{wait:n,mode:"trailing"}),(o=this.onInit)===null||o===void 0||o.call(this)}_flush(){this.queue.length!==0&&(this.send({m:csArray.prototype.map.call(this.queue,t=>({n:t.name,p:t.parameter,v:t.value})),...this.getRequestParameters()}),this.queue=[])}push(t){csArray.prototype.push.call(this.queue,...t),this.throttledFlush()}}return i.THROTTLE_INTERVAL=5e3,i})(),I_=k(64).SV,fa=k(64).pu;function P_(){csSetTimeout(()=>{let i=0;typeof I_!="undefined"&&(i|=1),typeof TransformStream!="undefined"&&(i|=2),typeof performance!="undefined"&&typeof performance.now=="function"&&(i|=4),typeof Worker!="undefined"&&(i|=8),typeof fa!="undefined"&&(typeof fa.yield=="function"&&(i|=16),typeof fa.postTask=="function"&&(i|=32)),typeof _w!="undefined"&&(i|=64),typeof csArray.prototype.flat=="function"&&(i|=128),_w.csquerySelector[_d.nodeType].call(_d,"form[toolname]")&&(i|=256),G.counters.availableFeatures.set(i),Dr(Date.now,"Date.now"),Dr(_d.querySelector,"document.querySelector"),Dr(_d.querySelectorAll,"document.querySelectorAll"),Dr(csNavigatorsendBeacon,"navigator.sendBeacon");for(let[r,...t]of M_)for(let e of t){let s=N_(r,e);s&&Dr(s,`${r.name}.${e}`)}})}function N_(i,r){var t;let e=Object.getOwnPropertyDescriptor(i.prototype,r);return(t=e==null?void 0:e.get)!==null&&t!==void 0?t:e==null?void 0:e.value}function Dr(i,r){O_(i)||G.counters.nativeOverrides.count(r,1)}function O_(i){return typeof i!="function"||/native code/.test(i.toString())}var M_=[[Node,"childNodes","parentNode","nextSibling","firstChild","nodeType","isConnected"],[csArray,"filter","map"],[Element,"shadowRoot","matches","firstElementChild"],[Event,"target"],[HTMLImageElement,"src"]],D_=(()=>{class i extends C_{constructor(t,e,s){let n=()=>{P_()},o=()=>({p:e.anonymizePII(_w.location.pathname),pid:s,v:Cc().v});super(t.send.bind(t),o,n)}}return i})();function k_(i,r){let t=i.validationRate/10,e=fs.boolean(t);if((i.environment==="staging"||e)&&!r.isInWebViewContext())try{let n=uf.create(r.isTopWindowTracker()),c=new Bc(n).create(i.getMetricsUri(),void 0,void 0,!0),l=new Be,u=new D_(c,l,i.projectId);G.setService(u)}catch(n){$.warn(`Error initializing metrics: ${n.message}`)}}var Pi="_cs_c",Ji=(()=>{let i;return function(r){r[r.NOT_REQUIRED=0]="NOT_REQUIRED",r[r.NOT_EXPRESSED=1]="NOT_EXPRESSED",r[r.GRANTED=2]="GRANTED",r[r.WITHDRAWN=3]="WITHDRAWN"}(i||(i={})),i})(),hf=(()=>{class i{constructor(t,e,s){this.E=t,this.D=e,this.zt=s}get(){let t;return this.E.cookielessTrackingEnabled?t=this.zt.getItem(Pi):t=this.D.get(Pi),t===null?t:Number(t)}set(t){this.E.cookielessTrackingEnabled?this.zt.setItem(Pi,csString(t)):this.D.set(Pi,csString(t),bo)}remove(){this.E.cookielessTrackingEnabled?this.zt.removeItem(Pi):this.D.delete(Pi)}handleSubdomainChange(){this.E.cookielessTrackingEnabled||(this.E.allowSubdomains?this.D.delete(Pi,Ge.CURRENT_DOMAIN):this.D.delete(Pi,this.D.getRootDomain()))}}return i.$deps=[ht,Ge,Ro],i})(),sn=(()=>{class i{constructor(t,e,s){this.E=t,this.et=e,this.w=s}setInitialConsent(){let t=this.et.get();(t===null||this.hasConsentRequiredChanged(t))&&this.setDefaultReplayAnonymization()}hasConsentRequiredChanged(t){let e=this.E.consentRequired;return e&&t===Ji.NOT_REQUIRED||!e&&t!==Ji.NOT_REQUIRED}handleSubdomainChange(){this.et.handleSubdomainChange()}setDefaultReplayAnonymization(){let t=this.E.consentRequired?Ji.NOT_EXPRESSED:Ji.NOT_REQUIRED;this.et.set(t)}grantReplayAnonymizationConsent(){this.E.consentRequired&&(this.et.set(Ji.GRANTED),this.w.emitReplayUnanonymizationConsentGranted())}withdrawReplayAnonymizationConsent(){this.E.consentRequired&&(this.et.set(Ji.WITHDRAWN),this.w.emitReplayUnanonymizationConsentWithdrawn())}removeAllConsents(){this.et.remove()}isReplayUnanonymizedAllowedByConsent(){return!this.E.consentRequired||this.et.get()===Ji.GRANTED}getRequestParameters(){return{uc:`${this.et.get()}`}}}return i.$deps=[ht,hf,Zt],i})();function x_(){let i="[data-cs-mask]",r="#c1_card_info_id",t=".ctHidden",e=["[data-heap-redact-text]","[heap-ignore]","[data-heap-ignore]","[data-heap-redact-attributes]"],s=["[data-hj-suppress]",".data-hj-suppress","[data-hj-masked]"];return[i,r,t,...e,...s]}function L_(){return[{selector:".ctHidden,input:not([type=button]):not([type=submit])",attrName:"value"}]}var df=["setEncryptionSelectors"],Gc=["setPIISelectors"],ff=["setCapturedElementsSelector"],pf=(()=>{class i{constructor(t){this.Fl=t,this.kS={PIISelectors:["picture","img","video","audio"],Attributes:[]},this.Ni={elementSelector:"",attrSelector:"",attrSelectors:[]};let e={PIISelectors:x_(),Attributes:L_()};this.Ni=B.getComputedSelectorSettings(e,this.Ni)}init(){this.xS()}setMaskedElementSettingsFromCommand(t){if(t=B.sanitizeSelectorUserInput(t),!B.isSelectorUserInput(t))throw new Rt(Gc[0]);this.Xl(t)}setMaskedElementSettingsFromParent(t){let e={PIISelectors:csString.prototype.split.call(t.elementSelector,","),Attributes:t.attrSelectors};this.Xl(e)}getMaskedElementSettings(t){return t?this.op(this.kS):this.Ni}xS(){var t,e,s,n,o,c,l;let u={PIISelectors:[],Attributes:[]};((s=(e=(t=_w==null?void 0:_w.ClickTaleSettings)===null||t===void 0?void 0:t.DOM)===null||e===void 0?void 0:e.PII)===null||s===void 0?void 0:s.Text)instanceof Array&&u.PIISelectors.push(..._w.ClickTaleSettings.DOM.PII.Text),((c=(o=(n=_w==null?void 0:_w.ClickTaleSettings)===null||n===void 0?void 0:n.DOM)===null||o===void 0?void 0:o.PII)===null||c===void 0?void 0:c.Attributes)instanceof Array&&_w.ClickTaleSettings.DOM.PII.Attributes.forEach(h=>{O(h.attr)&&O(h.rule)&&u.Attributes.push({selector:h.rule,attrName:h.attr})}),(l=this.Fl)===null||l===void 0||l.markClicktalePIIInUse(u),this.Xl(u)}Xl(t){this.Ni=this.op(t)}op(t){return B.getComputedSelectorSettings(t,this.Ni)}}return i.$deps=[{__optional:Hr}],i})();function V_(i,r){let t=r.createStrategy();$.computeIsActive(i.validationRate),ag($),pd($),$.setStrategy(t)}var te=(()=>{let i=class{constructor(t,e,s,n,o,c){this.E=t,this.pt=e,this.LS=s,this.w=n,this.VS=o,this.Nr=c}onInit(){var t;V_(this.E,this.LS),k_(this.E,this.pt),this.w.addListener(this.VS),!((t=this.E.experimental)===null||t===void 0)&&t.checkPIIMigration&&this.Nr&&this.w.addListener(this.Nr)}};return i.$deps=[ht,Qs,lu,Zt,Su,Hr],i=L([Bt({imports:[d_],providers:[he(kd,()=>_w.CS_CONF),ht,Qs,he(Bi,()=>new Bi),he(tn,r=>new tn(r),[Be]),he(Me,r=>new Me([f_.UXA],r),[Hr]),he(Hr,r=>{var t;return!((t=r.experimental)===null||t===void 0)&&t.checkPIIMigration?new Hr:void 0},[ht]),Be,ys,Mc,Ge,Ro,sr,cf,Zt,Mo,Su,pf,hf,sn,lf,No,lu,Fd]})],i),i})(),li=(()=>{let i;return function(r){r.REGEX="regex",r.START="start",r.NOT_START="not-start",r.END="end",r.NOT_END="not-end",r.CONTAIN="contain",r.NOT_CONTAIN="not-contain",r.EXACT="exact",r.NOT_EXACT="not-exact"}(i||(i={})),i})(),Ye=(()=>{let i;return function(r){r.START="start",r.NOT_START="not-start",r.END="end",r.NOT_END="not-end",r.CONTAIN="contain",r.NOT_CONTAIN="not-contain",r.EXACT="exact",r.NOT_EXACT="not-exact",r.REGEX_TO_RULE="regex-to-rule"}(i||(i={})),i})(),Zi=(()=>{let i;return function(r){r.replayRecordingUnmaskedUrlRegex="replayRecordingUnmaskedUrlRegex",r.replayRecordingMaskedUrlRegex="replayRecordingMaskedUrlRegex",r.replayRecordingUnmaskedUrlRegexRules="replayRecordingUnmaskedUrlRegexRules",r.replayRecordingMaskedUrlRegexRules="replayRecordingMaskedUrlRegexRules"}(i||(i={})),i})(),js=k(857).al,ps=(()=>{class i{constructor(){this.Kl=[]}setRegexRules(t){this.Kl=csArray.prototype.filter.call(csArray.prototype.map.call(t,e=>this.US(e)),e=>e!==null)}evaluateUrl(t){return csArray.prototype.some.call(this.Kl,e=>this.ap(t,e))}getMatchingRules(t){return csArray.prototype.map.call(csArray.prototype.filter.call(this.Kl,e=>this.ap(t,e)),e=>e.ruleInput)}ap(t,e){var s,n;let o=this.HS(t,e);return!this.jS(e)||!this.$S(e)?!1:(e.regex.lastIndex=0,!!(e!=null&&e.notOperator?!(!((s=e.regex)===null||s===void 0)&&s.test(o)):!((n=e.regex)===null||n===void 0)&&n.test(o)))}jS(t){let e=new Date,s=t.startDate&&t.startDate>e,n=t.endDate&&t.endDate{class i{constructor(t,e){this.Gt=t,this.D=e}isForceIncluded(){return this.GS()||this.zS()}isForceReplayRecorded(){return this.qS(X.RECORDING_GLOBAL_SAMPLING)}GS(){return this.D.get(pa)!==null}qS(t){return this.D.get(pa)===t}zS(){return csString.prototype.indexOf.call(this.Gt.href,pa)>0}}return i.$deps=[Location,Ge],i})(),gf=(()=>{class i extends mi{constructor(t,e,s,n){super(t,e,s,n)}onInit(){}canTrack(){return!1}async refresh(){}canCollect(t){return!1}computeInitialCollectState(t){return this.getInitialCollectState()}getInitialCollectState(){return X.QUOTA_REACHED}}return i.$deps=[ht,Zt,ys,ps],i})(),U_=k(857)._R,mf=(()=>{class i extends mi{constructor(t,e,s,n){super(t,e,s,n),this.Ra=X.RECORDING_GLOBAL_SAMPLING,this.lp=X.QUOTA_REACHED}async onInit(){let t=Mt.get(Le);if(t!==null&&co(t)){let e=Wy(t);this.ls=e==null?void 0:e.collectState;return}this.ls=await this.up()}canTrack(){return this.ls!==void 0&&this.ls!==X.QUOTA_REACHED}async refresh(){this.ls=await this.up()}canCollect(t){return t!==null&&t.collectState!==X.QUOTA_REACHED}computeInitialCollectState(t){return this.ls?(this.lifeCycleEventsEmitter.emitCollectStateChange(this.ls,this.getEtrState()),this.ls):($.warn("Quota file error computeInitialCollectState() called before quota answered"),X.QUOTA_REACHED)}isEtrActive(){return!1}shouldPreserveSessionCollectState(t){return t.collectState===X.QUOTA_REACHED?!0:super.shouldPreserveSessionCollectState(t)}getInitialCollectState(){return this.ls||X.QUOTA_REACHED}async up(){try{return await this.WS()}catch(t){return $.error(`Quota error - unexpected: ${t}`),this.lp}}WS(){let t=this.FS();return new Promise(e=>{t.onError(s=>{let n=`Quota error - HTTP:${s.status} - fetching quota file for pid: ${this.configuration.projectId}`;$.warn(n),e(this.Ra)}),t.onTimeout(()=>{$.warn("Quota error - timeout"),e(this.Ra)}),t.onLoad(s=>{var n;return e((n=this.parseQuotaResponse(s))!==null&&n!==void 0?n:this.lp)}),t.send()})}FS(){return new Xd(this.configuration.getSettingsFileUri(),"",{type:"json",cacheMinutes:15})}parseQuotaResponse(t){var e;return!((e=t==null?void 0:t.quotas)===null||e===void 0)&&e.length?this.YS(t):($.warn("Quota error - Quota types missing from config file"),this.Ra)}YS(t){let e=!1,s=!1;for(let n of t.quotas)n.quotaType==="ANALYTICS"&&n.value?e=!0:n.quotaType==="RECORDING"&&n.value&&fs.boolean(Math.round(n.value*100))&&(s=!0);if(!e&&s){let n=`Quota error - Quota types impossible: replay without analytics - ${U_.stringify(t)}`;return $.warn(n),this.Ra}return e&&s?qs.isRecordingSupported()?X.RECORDING_GLOBAL_SAMPLING:X.ANALYTICS_ONLY:e?X.ANALYTICS_ONLY:X.QUOTA_REACHED}}return i.$deps=[ht,Zt,ys,ps],L([V("Quota File: parseQuotaResponse")],i.prototype,"parseQuotaResponse",null),i})(),yf=(()=>{class i extends mi{constructor(t,e,s,n,o){super(t,e,n,o),this.Ql=s}onInit(){this.initUrlRules()}canTrack(){return!0}async refresh(){}canCollect(t){return!0}computeInitialCollectState(t){if(!qs.isRecordingSupported())return X.ANALYTICS_ONLY;let e=X.ANALYTICS_ONLY;return fs.percentage(){let i=class{};return i.$deps=[],i=L([Bt({imports:[te],providers:[rn,he(ps,()=>new ps),mf,yf,gf,he(mi,async(r,t)=>r.resolve(H_(t)),[Pc,ht])],exports:[mi,rn]})],i),i})(),Do=(()=>{let i=class{constructor(t,e,s){this.as=t,this.I=e,this.R=s}onInit(){this.as.setContext(this.I,this.R)}};return i.$deps=[No,Se,Oe],i=L([Bt({imports:[te,j_],providers:[qa,Fa,en,Oe,Se],exports:[qa,Oe,Fa,Se,en,mi,rn]})],i),i})(),Ef=(()=>{class i{updateProperties(t){let s={...this.getProperties(),...t};this.setProperties(s)}removeProperty(t){let e={...this.getProperties()};delete e[t],this.setProperties(e)}clearProperties(){this.setProperties({})}}return i})(),_f=(()=>{class i extends Ef{constructor(){super(),this.hp={}}getProperties(){return this.hp}setProperties(t){this.hp=t}}return i.$deps=[],i})(),$_="_cs_ep",B_=(()=>{class i extends Co{}return i.key=$_,i.expiresIn=bo,i})(),bu=k(857)._R,vf=(()=>{class i extends Ef{constructor(t){super(),this.Or=t}getProperties(){let t=this.Or.get();return t?bu.parse(t):{}}setProperties(t){if(Qr(t)){this.clearProperties();return}let e=bu.stringify(t);this.Or.set(e)}clearProperties(){this.Or.remove()}}return i.$deps=[B_],i})(),ce=(()=>{let i;return function(r){r[r.ANONYMIZED=0]="ANONYMIZED",r[r.CAPTURED=1]="CAPTURED",r[r.MASKED=2]="MASKED",r[r.ENCRYPTED=3]="ENCRYPTED"}(i||(i={})),i})(),G_=(()=>{class i{constructor(){this.Ca=new Map,this.Ia=new Map,this.$e=new Map,this.Pa=new Map}setConf(t){for(let e in t)(e==="click"||e==="submit"||e==="change"||e==="pageview")&&this.XS(t[e],e)}getConf(){return{clicks:this.Ca,submits:this.Ia,changes:this.$e,pageviews:this.Pa}}clearConf(){this.Ca.clear(),this.Ia.clear(),this.$e.clear(),this.Pa.clear()}XS(t,e){for(let s in t){let n=this.KS(s,e)||{formValue:[],textInElement:[],elementExists:[],attribute:[],textInElementPageview:[]},o=t[s];if(o.t)for(let c in o.t){let l=o.t[c];csArray.prototype.push.call(n.textInElement,{[l]:{name:c}})}if(o.f)for(let c in o.f){let l=o.f[c];csArray.prototype.push.call(n.formValue,{[l]:{name:c}})}if(o.ex)for(let c in o.ex){let l=o.ex[c];csArray.prototype.push.call(n.elementExists,{[l]:{name:c}})}if(o.a)for(let c in o.a){let l=o.a[c];"target"in l&&"attribute"in l&&csArray.prototype.push.call(n.attribute,{[l.target]:{attribute:l.attribute,name:c}})}if(o.s)for(let c in o.s){let l=o.s[c];csArray.prototype.push.call(n.textInElementPageview,{[l]:{name:c}})}e==="click"?this.Ca.set(s,n):e==="submit"?this.Ia.set(s,n):e==="change"?this.$e.set(s,n):e==="pageview"&&this.Pa.set(s,n)}}KS(t,e){if(e==="click")return this.Ca.get(t);if(e==="submit")return this.Ia.get(t);if(e==="change")return this.$e.get(t);if(e==="pageview")return this.Pa.get(t)}}return i})(),Ni=(()=>{let i;return function(r){function t(u,h,p=50){return o(u,h,()=>!1,()=>!1,p)}r.getNearestElementMatching=t;function e(u,h,p,E=50){return o(u,h,p,c,E)}r.getNearestUnmaskedElementMatching=e;function s(u){return l(u,()=>!1)}r.getElementMatching=s;function n(u,h){return l(u,h)}r.getUnmaskedElementMatching=n;function o(u,h,p,E,m=50){let S=u,A=0;for(;S&&A0){for(let I of x)if(!p(I))return I}S=kt.getParentElement(S),A++}return null}function c(u){return B.isMaskedElement(u)||B.isMaskedElementChild(u)}function l(u,h){let p=kt.findAllElements(u,_d);if(p.length>0){for(let E of p)if(!h(E))return E}return null}}(i||(i={})),i})(),z_=k(857).al,q_=(()=>{let i;return function(r){function t(l){switch(csString.prototype.toLowerCase.call(l.tagName)){case"input":{let u=l;switch(u.type){case"date":case"email":return e(u);case"password":return"****";case"checkbox":return s(u);case"radio":return o(u);default:return l.value}}case"textarea":return l.value;case"select":return Yr(l)?n(l):null;default:return null}}r.getInputElementValue=t;function e(l){return l.validity.valid?csString.prototype.trim.call(l.value):null}function s(l){let u=l.checked?"true":"false";if(!l.name)return u;let h=`input[type=checkbox][name=${l.name}]`,p=kt.findAllElements(h);if(p.length>1){let E=[];return csArray.prototype.forEach.call(p,m=>{us(m)&&m.checked&&csArray.prototype.push.call(E,csString.prototype.trim.call(m.value))}),csArray.prototype.join.call(E,",")}return u}function n(l){let u=l.options[l.selectedIndex];return u!=null&&u.value?new z_(/^[^\w]/).test(u.value)&&u.value===u.innerHTML?null:u.value:null}function o(l){let u=l.checked?"true":"false";if(!l.name)return u;let h=`input[type=radio][name=${l.name}]`,p=kt.findAllElements(h);if(p.length>0){for(let E of p)if(us(E)&&E.checked)return c(E)}return u}function c(l){if((l==null?void 0:l.id)!==""){let u=kt.findAllElements(`label#${l.id}`);if(u.length>0&&u[0].textContent)return csString.prototype.trim.call(u[0].textContent)}return csString.prototype.trim.call(l.value)}}(i||(i={})),i})(),Tu=k(857).al,W_=(()=>{class i{constructor(t,e,s){this.qt=e,this.O=s,this.QS=1024,this.JS=512,this.Jl="N/A",this.Na=n=>{if(this.qt.getElementSensitiveStatus(n)!==ce.CAPTURED)return!0;let o=us(n)||to(n)||Yr(n)?n.value:n.textContent;return!o||csString.prototype.trim.call(o).length===0?!1:this.dp(o)},this.fp=new G_,this.fp.setConf(t),this.Oa=this.fp.getConf()}getProperties(t,e,s){return e==="click"?this.Ma(t,this.Oa.clicks):e==="submit"?this.Ma(t,this.Oa.submits):e==="change"?this.Ma(t,this.Oa.changes):e==="pageview"?this.Ma(t,this.Oa.pageviews,s):null}Ma(t,e,s){let n={};return e.forEach((o,c)=>{if(!(wt(t)&&!t.matches(c)||Xr(t)&&!this.ZS(c,s))){for(let l of o.textInElement)this.pp(n,t,l);for(let l of o.formValue)this.tw(n,t,l);for(let l of o.elementExists)this.ew(n,t,l);for(let l of o.attribute)this.iw(n,t,l);for(let l of o.textInElementPageview)this.pp(n,t,l)}}),Qr(n)?null:n}pp(t,e,s){let n;for(let o in s)wt(e)?n=Ni.getNearestUnmaskedElementMatching(e,o,this.Na):n=Ni.getUnmaskedElementMatching(o,this.Na),n&&this.Mr(t,s[o].name,n.textContent||"")}tw(t,e,s){let n;for(let o in s){if(wt(e)?n=Ni.getNearestUnmaskedElementMatching(e,o,this.Na):n=Ni.getUnmaskedElementMatching(o,this.Na),n===null){this.Mr(t,s[o].name,this.Jl);continue}if(us(n)||to(n)||Yr(n)){let c=q_.getInputElementValue(n);this.Mr(t,s[o].name,c||this.Jl)}}}ew(t,e,s){let n;for(let o in s)wt(e)?n=Ni.getNearestElementMatching(e,o):n=Ni.getElementMatching(o),this.Mr(t,s[o].name,n!==null)}iw(t,e,s){let n;for(let o in s){let c=s[o].attribute;if(wt(e)?n=Ni.getNearestUnmaskedElementMatching(e,o,u=>this.gp(u,c)):n=Ni.getUnmaskedElementMatching(o,u=>this.gp(u,c)),n===null){this.Mr(t,s[o].name,this.Jl);continue}let l=n.getAttribute(c);l!==null&&this.Mr(t,s[o].name,l)}}Mr(t,e,s){let n=Ct.truncate(e,this.JS),o=Ct.truncate(csString.prototype.trim.call(this.rw(s)),this.QS);t[n]=o}rw(t){if(O(t)){let e="||";return csString.prototype.replace.call(t,new Tu(e,"g"),"")}else if(Kr(t))return t?"true":"false";return""}gp(t,e){let s=t.getAttribute(e);return!(s!==null&&this.qt.getAttributeSensitiveStatus(t,e)===ce.CAPTURED&&!this.dp(s))}dp(t){return this.O.hasPII(t,null)}ZS(t,e){if(!e||e.length===0)return!1;try{let s=decodeURIComponent(t);return new Tu("^"+csString.prototype.replace.call(s,/\*/g,".*")+"$").test(e)}catch{return!1}}}return i})();function F_(i){if(typeof Object.values=="function")return Object.values(i);let r=[];for(let t in i)i.hasOwnProperty(t)&&csArray.prototype.push.call(r,i[t]);return r}function Y_(i,r){if(Object.keys(i).length<=r)return i;let t={},e=0;for(let[s,n]of Object.entries(i)){if(e>=r)break;t[s]=n,e++}return t}var Sf=(()=>{let i;return function(r){function e(s,n,o,c){let l={...s,...n,...o,...c};return Y_(l,200)}r.mergeAndLimitProperties=e}(i||(i={})),i})(),nr=(()=>{class i{isEventTypeSupported(t){return csArray.prototype.indexOf.call(this.supportedEventTypes,t)!==-1}enhanceAnalysisEvent(t,e){return this.isEventTypeSupported(e.type)?this.baseEnhanceAnalysisEvent(t,e):e}}return i})(),X_=(()=>{class i extends nr{constructor(t,e,s){super(),this.te=t,this.Tt=e,this.nw=s,this.supportedEventTypes=[J.CLICK,J.TAP,J.SUBMIT,J.CHANGE,J.CUSTOM_EVENT]}baseEnhanceAnalysisEvent(t,e){var s,n;let o=Sf.mergeAndLimitProperties((s=this.te)===null||s===void 0?void 0:s.getProperties(),(n=this.Tt)===null||n===void 0?void 0:n.getProperties(),this.ow(t),e.properties);return Object.keys(o).length>0&&(e.properties=o),e}ow(t){var e,s;return!t||!gi(csEventtarget.apply(t))?{}:(s=(e=this.nw)===null||e===void 0?void 0:e.getProperties(csEventtarget.apply(t),this.aw(t)))!==null&&s!==void 0?s:{}}aw(t){switch(t.type){case"submit":return"submit";case"change":return"change";default:return"click"}}}return i.$deps=[{__optional:_f},{__optional:vf},{__optional:W_}],i})(),K_=(()=>{class i{constructor(){this.mp=new Set,this.yp=[],this.Zl=new Set,this.tu=[]}addUrlMaskingPattern(t){if(this.mp.has(t))return;this.mp.add(t);let e=Xl(t);csArray.prototype.push.call(this.yp,e)}getUrlMaskingPatterns(){return this.yp}resetPartialUrlMaskingPatterns(){this.Zl.clear(),this.tu=[]}addPartialUrlMaskingPattern(t){if(this.Zl.has(t))return;this.Zl.add(t);let e=Xl(t);csArray.prototype.push.call(this.tu,e)}getPartialUrlMaskingPatterns(){return this.tu}}return i})(),Ru=["setReferrer"],Q_=(()=>{let i=class{constructor(t,e){this.S=t,this.fi=e}onInit(){this.S.register(Ru,t=>{if(!O(t))throw new Rt(Ru[0]);this.fi.set(t)})}};return i.$deps=[Me,Ur],i=L([Bt({imports:[te],providers:[he(Ur,r=>new Ur(r,new K_),[tn])],exports:[Ur]})],i),i})(),J_=(()=>{let i=class{};return i.$deps=[],i=L([Bt({imports:[te,Do],providers:[po,Ya,Xa],exports:[po,Ya,Xa]})],i),i})();function Qt(i){let r=csEventtarget.apply(i);return r&&gi(r)&&csElementshadowRoot.apply(r)&&i.composedPath?i.__csOriginalTarget||i.composedPath()[0]:r}function Z_(i){return i.composedPath&&Object.defineProperty(i,"__csOriginalTarget",{value:i.composedPath()[0],writable:!1,enumerable:!1}),i}function tv(){return(i,r,t)=>{let e=t.value;return e&&(t.value=function(s){if(Qt(s)===csEventtarget.apply(s))return e.call(this,s)}),t}}var ev=["data-com.agilebits.onepassword.initial-value","data-com.onepassword.iv","data-ember-action","data-initial-value","data-previous-value","data-react-checksum","data-reactid","maxlength","onclick","onsubmit","style"],iv=1024,sv=1024,cs=(()=>{class i{constructor(t,e){this.yt=t,this.E=e}getEventTargetPathAndHierarchy(t,e){let s=Qt(t),n={isNodeSensitive(o){return B.isMaskedElement(o)||B.isMaskedElementChild(o)},isAttributeSensitive(o,c){return B.isMaskedAttribute(o,c)},allWhitelistedAttributes:Oc(this.E.whitelistedAttributes),attributeIgnoreTokens:ev,useAnonymization:e,attrMaxLength:sv,hierarchyMaxLength:iv};return this.yt.getElementPathAndHierarchy(s,n,{dynamicIdRegex:this.E.dynamicIdRegex,...this.E.pathComputationRules})}getEventTargetPath(t){let e=Qt(t);return this.yt.getElementPath(e,{dynamicIdRegex:this.E.dynamicIdRegex,...this.E.pathComputationRules})}getEventTargetPathAndTargetLink(t){let e=Qt(t),{path:s,firstAnchorParent:n}=this.yt.getElementPathAndFirstAnchorParent(e,{dynamicIdRegex:this.E.dynamicIdRegex,...this.E.pathComputationRules}),o=this.lw(n)?n.href:"";return{path:s,targetLink:o}}hasValidEventTarget(t){let e=Qt(t);return this.yt.isValidElement(e)}getElementPath(t){return this.yt.getElementPath(t,{dynamicIdRegex:this.E.dynamicIdRegex,...this.E.pathComputationRules})}lw(t){var e;return t!==null&&t.hasAttribute("href")&&!$a((e=t.getAttribute("href"))!==null&&e!==void 0?e:"","#")}}return i})(),wf="_cs_ex",ic=(()=>{class i extends Co{}return i.key=wf,i.expiresIn=Em,i})(),Br=(()=>{class i{constructor(t,e){this.Gt=t,this.et=e}exclude(t){this.et.set(csString(t.lastTrackingDraw))}removeExclusion(){this.et.remove()}isExcluded(){return this.uw()||this.hw()}uw(){return this.getAppliedTrackingDraw()!==0}getAppliedTrackingDraw(){return Number(this.et.get())}hw(){return csString.prototype.indexOf.call(this.Gt.href,wf)>0}}return i.$deps=[Location,ic],i})(),rv=(()=>{let i=class{constructor(t,e){this.Oi=t,this.w=e}onInit(){this.w.addListener(this)}onOptout(){this.Oi.removeExclusion()}};return i.$deps=[Br,Zt],i=L([Bt({imports:[te],providers:[ic,Br],exports:[Br,ic]})],i),i})(),Cu=(()=>{class i{constructor(t,e,s){this.E=t,this.R=e,this.w=s}grantReplayConsent(){if(!Gs.isReplayConsentNeeded(this.E))return;let t=this.R.getSession();if(!t){this.R.grantReplayRecordingBeforeSessionStart();return}Gs.isRecordingBlockedByConsent(t)&&(this.R.grantReplayRecording(t),this.w.emitAfterReplayRecordingConsentGranted())}withdrawReplayConsent(){if(!Gs.isReplayConsentNeeded(this.E))return;let t=this.R.getSession();if(!t){this.R.withdrawnReplayRecordingBeforeSessionStart();return}Gs.isRecordingWithDrawn(t)||(this.R.withdrawnReplayRecording(t),this.w.emitAfterReplayRecordingConsentWithdrawn())}}return i.$deps=[ht,Oe,Zt],i})(),nv=["replay:consent:unanonymized:granted","trackConsentGranted"],ov=["replay:consent:unanonymized:withdrawn","trackConsentWithdrawn"],av=["replay:consent:startForSession:granted"],cv=["replay:consent:startForSession:withdrawn"],Af=(()=>{let i=class{constructor(t,e,s,n){this.S=t,this.Wt=e,this.w=s,this.Ep=n}onInit(){this.w.addListener(this),this.lt()}onTrackingAllowed(){this.Wt.setInitialConsent()}lt(){this.S.register(nv,()=>{this.Wt.grantReplayAnonymizationConsent()}),this.S.register(ov,()=>{this.Wt.withdrawReplayAnonymizationConsent()}),this.S.register(av,()=>{this.Ep.grantReplayConsent()}),this.S.register(cv,()=>{this.Ep.withdrawReplayConsent()})}onOptout(){this.Wt.removeAllConsents()}onBeforeVisitorRenewal(){this.Wt.removeAllConsents()}onAfterVisitorRenewal(){this.Wt.setInitialConsent()}onAfterVisitorCleared(){this.Wt.setInitialConsent()}};return i.$deps=[Me,sn,Zt,Cu],i=L([Bt({imports:[te,Do],providers:[Cu],exports:[i,sn]})],i),i})(),sc=(()=>{class i{constructor(t,e,s){this.I=t,this.R=e,this.fw=s}handle(){this.I.hasAllowSubdomainsChanged()&&(this.I.handleSubdomainChange(),this.R.handleSubdomainChange(),this.fw.handleSubdomainChange())}}return i.$deps=[Se,Oe,sn],i})(),rc=(()=>{class i{constructor(t,e,s){this.E=t,this.I=e,this.pi=s}clear(){this.pw()&&(this._p=this.I.getVisitor(),this.I.removeVisitor()),this.gw()&&this.pi.removeExclusion()}pw(){return this.I.doesVisitorExist()&&this.I.getVisitor().appliedTrackingDraw!==this.E.lastTrackingDraw}gw(){return this.pi.getAppliedTrackingDraw()!==this.E.lastTrackingDraw}restoreClearedVisitor(){this._p&&this.I.setVisitor(this._p)}}return i.$deps=[ht,Se,Br],i})(),nc=(()=>{class i{constructor(t,e,s,n,o,c){this.E=t,this.I=e,this.pi=s,this.vp=n,this.mw=o,this.Ql=c}addComputeInterceptor(t){this.Sp=t}compute(t){this.Sp?this.Sp.intercept(()=>this.wp(t)):this.wp(t)}wp(t){this.mw.handle(),this.vp.clear(),this.yw()?(this.vp.restoreClearedVisitor(),t(!0)):(this.pi.exclude(this.E),t(!1))}yw(){let t=fs.boolean(this.E.sampleRate);return this.Ql.isForceIncluded()||!this.pi.isExcluded()&&this.I.doesVisitorExist()||!this.pi.isExcluded()&&t}}return i.$deps=[ht,Se,Br,rc,sc,rn],i})(),zc=(()=>{let i=class{};return i.$deps=[],i=L([Bt({imports:[te,rv,Af,Do],providers:[he(cs,r=>new cs(Vi,r),[ht]),Wa,uo,sc,rc,nc],exports:[cs,Wa,uo,en,sc,rc,nc]})],i),i})();var bf=null,lv=Math.pow(2,31);function uv(i,r=0){let l=r>>>0,u=i.length;for(let m=0;m>>0;S=Math.imul(S,3432918353),S=S<<15|S>>>17,S=Math.imul(S,461845907),l^=S,l=l<<13|l>>>19,l=Math.imul(l,5)+3864292196}let h=0,p=u&3,E=u-p;switch(p){case 3:h^=(csString.prototype.charCodeAt.call(i,E+2)&255)<<16;case 2:h^=(csString.prototype.charCodeAt.call(i,E+1)&255)<<8;case 1:h^=csString.prototype.charCodeAt.call(i,E)&255,h=Math.imul(h,3432918353),h=h<<15|h>>>17,h=Math.imul(h,461845907),l^=h}return l^=u,l^=l>>>16,l=Math.imul(l,2246822507),l^=l>>>13,l=Math.imul(l,3266489909),l^=l>>>16,l>>>0}function Tf(i){return uv(i)+lv>>>0}var Rf=(()=>{class i{constructor(t,e,s){this.Rt=t,this.E=e,this.Ap=s}transformEvent(t,e){this.Ew(t,e.event);let s=this.Rt.getElementPath(t);return this._w(s,e.event),this.vw(e.event),e}Ew(t,e){if(m_(e)){let s=t.getBoundingClientRect();e.x=Math.round(s.left+e.x+Ht.windowOffsetX()),e.y=Math.round(s.top+e.y+Ht.windowOffsetY())}}_w(t,e){af(e)&&(e.tgt=`${t}${$r}${e.tgt}`),p_(e)&&(e.tgtHM=`${t}${$r}${e.tgtHM}`,this.E.isChild||(e.tgtHMH=Tf(e.tgtHM))),g_(e)&&(e.tgtLk=`${t}${$r}${e.tgtLk}`)}vw(t){!this.E.isChild&&this.Ap&&this.Ap.enhanceAnalysisEvent(null,t)}}return i.$deps=[cs,ht,{__optional:X_}],i})(),Cf=(()=>{class i{constructor(t){this.Rt=t}transformEvent(t,e){let s=this.Rt.getElementPath(t);return{iframePath:e.iframePath?`${s}${$r}${e.iframePath}`:s,commands:e.commands}}}return i.$deps=[cs],i})(),If=(()=>{class i{constructor(t){this.Rt=t}transformEvent(t,e){if(e.products.length===0)return e;let s=this.Rt.getElementPath(t),n=csArray.prototype.map.call(e.products,o=>({...o,targetPath:`${s}${$r}${o.targetPath}`}));return{...e,products:n}}}return i.$deps=[cs],i})(),hv=1,Iu=Symbol("nodeIdentifier");function ct(i){let r=i[Iu];return r!=null?r:i[Iu]=hv++}var Y=(()=>{let i;return function(r){r[r.MUTATION_INSERT=1]="MUTATION_INSERT",r[r.MUTATION_REMOVE=2]="MUTATION_REMOVE",r[r.MUTATION_ATTRIBUTE=3]="MUTATION_ATTRIBUTE",r[r.MUTATION_CHARACTER_DATA=4]="MUTATION_CHARACTER_DATA",r[r.INITIAL_DOM=5]="INITIAL_DOM",r[r.SCROLL=6]="SCROLL",r[r.CLICK=8]="CLICK",r[r.RESIZE=9]="RESIZE",r[r.INPUT_CHECKABLE=10]="INPUT_CHECKABLE",r[r.INPUT_SELECT=11]="INPUT_SELECT",r[r.INPUT_TEXT=12]="INPUT_TEXT",r[r.HASH_CHANGE=13]="HASH_CHANGE",r[r.UNANONYMIZED_CONSENT_GRANTED=14]="UNANONYMIZED_CONSENT_GRANTED",r[r.UNANONYMIZED_CONSENT_WITHDRAWN=15]="UNANONYMIZED_CONSENT_WITHDRAWN",r[r.MOUSE_OVER=16]="MOUSE_OVER",r[r.VISIBILITY_CHANGE=17]="VISIBILITY_CHANGE",r[r.STYLESHEET_RULE_INSERT=18]="STYLESHEET_RULE_INSERT",r[r.STATIC_RESOURCE_URL=19]="STATIC_RESOURCE_URL",r[r.PERFORMANCE_TIMINGS=20]="PERFORMANCE_TIMINGS",r[r.ATTACH_SHADOW=22]="ATTACH_SHADOW",r[r.STYLESHEET_CSS_TEXT_UPDATE=23]="STYLESHEET_CSS_TEXT_UPDATE",r[r.JAVASCRIPT_ERROR=26]="JAVASCRIPT_ERROR",r[r.PAGE_EVENT=27]="PAGE_EVENT",r[r.API_ERROR=28]="API_ERROR",r[r.TEXT_VISIBILITY=29]="TEXT_VISIBILITY",r[r.MUTATION_ENCRYPTED_CHARACTER_DATA=30]="MUTATION_ENCRYPTED_CHARACTER_DATA",r[r.INPUT_ENCRYPTED_TEXT=31]="INPUT_ENCRYPTED_TEXT",r[r.KEY_DOWN=32]="KEY_DOWN",r[r.KEY_UP=33]="KEY_UP",r[r.CLIPBOARD_COMMAND=34]="CLIPBOARD_COMMAND",r[r.STYLESHEET_RULE_DELETE=37]="STYLESHEET_RULE_DELETE",r[r.USER_IDENTIFIER=38]="USER_IDENTIFIER",r[r.TOUCH_START=41]="TOUCH_START",r[r.TOUCH_MOVE=42]="TOUCH_MOVE",r[r.TOUCH_END=43]="TOUCH_END",r[r.GESTURE_RECOGNITION=44]="GESTURE_RECOGNITION",r[r.POINTER_DOWN=47]="POINTER_DOWN",r[r.POINTER_MOVE=48]="POINTER_MOVE",r[r.POINTER_UP=49]="POINTER_UP",r[r.CUSTOM_ERROR=50]="CUSTOM_ERROR",r[r.CUSTOM_ELEMENT_REGISTRATION=54]="CUSTOM_ELEMENT_REGISTRATION",r[r.REGISTER_ADOPTED_STYLE_SHEET=60]="REGISTER_ADOPTED_STYLE_SHEET",r[r.SET_ADOPTED_STYLE_SHEETS=61]="SET_ADOPTED_STYLE_SHEETS",r[r.ADOPTED_STYLESHEET_RULE_INSERT=62]="ADOPTED_STYLESHEET_RULE_INSERT",r[r.ADOPTED_STYLESHEET_RULE_DELETE=63]="ADOPTED_STYLESHEET_RULE_DELETE",r[r.SCREEN_RESIZE=65]="SCREEN_RESIZE",r[r.RESOURCE_HASHES=66]="RESOURCE_HASHES",r[r.PERFORMANCE_NAVIGATION_TIMING=67]="PERFORMANCE_NAVIGATION_TIMING",r[r.PERFORMANCE_RESOURCE_TIMING=68]="PERFORMANCE_RESOURCE_TIMING",r[r.RECORDING_INFO_EVENT=72]="RECORDING_INFO_EVENT",r[r.TEXT_REF=73]="TEXT_REF",r[r.TOUCH_CANCEL=74]="TOUCH_CANCEL",r[r.MUTATION_MOVE=75]="MUTATION_MOVE",r[r.STYLESHEET_RULE_UPDATE=76]="STYLESHEET_RULE_UPDATE",r[r.ADOPTED_STYLESHEET_RULE_UPDATE=77]="ADOPTED_STYLESHEET_RULE_UPDATE",r[r.VIDEO_PLAY=78]="VIDEO_PLAY",r[r.VIDEO_PAUSE=79]="VIDEO_PAUSE",r[r.VIDEO_SEEK=80]="VIDEO_SEEK",r[r.ADOPTED_STYLESHEET_DISABLED=98]="ADOPTED_STYLESHEET_DISABLED",r[r.STYLESHEET_DISABLED=99]="STYLESHEET_DISABLED",r[r.DOM_INITIAL_STATE=102]="DOM_INITIAL_STATE",r[r.DOM_PATCH_STATE=103]="DOM_PATCH_STATE",r[r.DEBUG=999]="DEBUG"}(i||(i={})),i})(),dv=(()=>{let i;return function(r){r[r.ObjCompression=1]="ObjCompression"}(i||(i={})),i})(),ts=(()=>{let i;return function(r){r.CONSENT_FOR_SESSION_GRANTED="consent-granted",r.CONSENT_FOR_SESSION_WITHDRAWN="consent-withdrawn",r.TAG_VERSION="tag-version",r.PAGE_STATE="page-state",r.PENDING_EVENTS="pending-events"}(i||(i={})),i})();var kr=(()=>{let i;return function(r){r[r.SWIPE=0]="SWIPE",r[r.PINCH_IN=1]="PINCH_IN",r[r.PINCH_OUT=2]="PINCH_OUT",r[r.LONG_PRESS=3]="LONG_PRESS",r[r.TAP=4]="TAP",r[r.DOUBLE_TAP=5]="DOUBLE_TAP"}(i||(i={})),i})(),fv=k(857)._R,Pf=(()=>{class i{constructor(){this.Sw={clientX:2,clientY:3},this.Aw={clientX:1,clientY:2},this.bw=[Y.POINTER_DOWN,Y.POINTER_MOVE,Y.POINTER_UP],this.Tw=[Y.TOUCH_START,Y.TOUCH_MOVE,Y.TOUCH_END]}transformEvents(t,e){if(!kt.isConnected(t))return e.events=csArray.prototype.filter.call(e.events,c=>c.type!==Y.VISIBILITY_CHANGE),e.events.length===0||($.warn(`IframeRecordingEventsTransformer received event ${Xt.RecordingEvent} from disconnected iframe, content:${fv.stringify(e.events)}`),e.events=[]),e;let s=ct(t),n=null;csArray.prototype.some.call(e.events,c=>this.bp(c)||this.Tp(c))&&(n=t.getBoundingClientRect());for(let c of e.events)this.bp(c)?this.Rw(n,c):this.Tp(c)&&this.Cw(n,c),c.context=c.context&&c.context.length>0?`${s}/${c.context}`:`${s}`;return e}Cw(t,e){this.Rp(this.Aw,t,e)}Rw(t,e){this.Rp(this.Sw,t,e)}Rp(t,e,s){s.args&&(s.args[t.clientX]=Math.round(e.left+s.args[t.clientX]),s.args[t.clientY]=Math.round(e.top+s.args[t.clientY]))}bp(t){return csArray.prototype.indexOf.call(this.bw,t.type)!==-1}Tp(t){return csArray.prototype.indexOf.call(this.Tw,t.type)!==-1}}return i.$deps=[],i})(),Pu=k(857)._R,oc=(()=>{class i{constructor(t,e,s,n,o){this.X=t,this.Iw=e,this.Pw=s,this.Nw=n,this.Ow=o}dispatch(t,e,s){if(this.Mw(e)&&t===null){$.error(`IframeEventDispatcher received event ${e} with null iframe, content:${Pu.stringify(s)}`);return}switch(e){case Xt.ChildLogMessage:this.Dw(s);break;case Xt.AnalysisEvent:{let n=s,o=this.Iw.transformEvent(t,n);o.isUserEvent?this.X.emitIframeAnalysisUserEvent(o.event):this.X.emitIframeAnalysisBrowserEvent(o.event);break}case Xt.RecordingEvent:{let n=s,o=this.Ow.transformEvents(t,n);if(o.events.length===0)return;o.containsUserEvent?this.X.emitIframeRecordingUserEvent(o.events):this.X.emitIframeRecordingBrowserEvent(o.events);break}case Xt.JavascriptError:this.X.emitIframeJavascriptError(s);break;case Xt.ApiError:this.X.emitIframeApiError(s);break;case Xt.DetailedApiError:this.X.emitIframeDetailedApiError(s);break;case Xt.CustomError:this.X.emitIframeCustomError(s);break;case Xt.EmerchandisingMessage:{let n=this.Nw.transformEvent(t,s);this.X.emitIframeEmerchandisingMessage(n);break}case Xt.Commands:{let n=this.Pw.transformEvent(t,s);this.X.emitIframeCommands(n);break}case Xt.IntegrationCallback:this.X.emitIframeIntegrationCallback(s);break;case Xt.StaticResource:this.X.emitIframeStaticResource(s);break;case Xt.TrackingContextRequestMessage:this.X.emitTrackingContextRequestMessage(s);break;default:$.error(`Parent received unknown data type from iframe : ${Pu.stringify(s)}`)}}Mw(t){let e=[Xt.AnalysisEvent,Xt.RecordingEvent,Xt.EmerchandisingMessage,Xt.Commands];return csArray.prototype.indexOf.call(e,t)!==-1}Dw(t){let{message:e,errorCode:s,level:n}=t;switch(n){case Et.debug:$.debug(e,s);break;case Et.warn:$.warn(e,!0,s);break;case Et.implementation:$.implementation(e,s);break;case Et.error:$.error(e,s);break;case Et.critical:$.critical(e,s);break}}}return i.$deps=[Mo,Rf,Cf,If,Pf],i})(),pv=(()=>{let i=class{};return i.$deps=[],i=L([Bt({imports:[te,zc,bf],providers:[Rf,Cf,If,Pf,oc],exports:[oc]})],i),i})(),Nf=(()=>{let i=class{constructor(t,e,s){this.S=t,this.X=e,this.w=s}onInit(){this.X.addListener(this.S),this.w.addListener(this)}onOptout(){this.S.stop()}onBeforeSessionRenewal(){this.S.stop()}};return i.$deps=[Me,Mo,Zt],i=L([Bt({imports:[te]})],i),i})(),Of=(()=>{class i{constructor(t){this.S=t}start(){this.S.start()}}return i.$deps=[Me],i})(),ga=k(857).al,ma=(()=>{let i;return function(r){r.SessionReplay="SR",r.None=""}(i||(i={})),i})(),gv=".^",Mf=".*",Yn=(()=>{class i{constructor(t){this.A=t,this.eu=new ga(`${gv}`)}setExcludeUrlForSessionReplay(t){try{this.eu=new ga(t)}catch{$.warn(`excludeURLforReplay - invalid regex '${t}'`),this.eu=new ga(`${Mf}`)}}Cp(){return this.eu.test(this.A.getAnonymizedUrl())?ma.SessionReplay:ma.None}isUrlExcludedForSessionReplay(){return this.Cp()===ma.SessionReplay}getRequestParameters(){return{ex:this.Cp()}}}return i.$deps=[ys],i})(),Df=["excludeURLforReplay"],mv=(()=>{let i=class{constructor(t,e){this.Oi=t,this.S=e}onInit(){this.S.register(Df,t=>{if(O(t))this.Oi.setExcludeUrlForSessionReplay(t);else throw new Rt("excludeURLforReplay")})}};return i.$deps=[Yn,Me],i=L([Bt({imports:[te],providers:[Yn],exports:[Yn]})],i),i})(),yv=k(857).al,Nu=1/0,{toString:Ev}=Object.prototype;function _v(i){return i==null?i===void 0?"[object Undefined]":"[object Null]":Ev.call(i)}var qc=i=>typeof i=="symbol"||typeof i=="object"&&i!=null&&_v(i)==="[object Symbol]";function kf(i){if(typeof i=="string"||qc(i))return i;let r=`${i}`;return typeof i=="number"?r==="0"&&1/i===-Nu?"-0":r:i instanceof Number&&r==="0"&&1/i.valueOf()===-Nu?"-0":r}var vv=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Sv=/^\w*$/;function wv(i,r){return csArray.isArray(i)?!1:typeof i=="number"||typeof i=="boolean"||i==null||qc(i)?!0:Sv.test(i)||!vv.test(i)||r!=null&&i in Object(r)}function Wc(i,r){if(typeof i!="function"||r!=null&&typeof r!="function")throw new TypeError("Expected a function");let t=function(...e){let s=r?r.apply(this,e):e[0],{cache:n}=t;if(n.has(s))return n.get(s);let o=i.apply(this,e);return t.cache=n.set(s,o)||n,o};return t.cache=new(Wc.Cache||Map),t}Wc.Cache=Map;var Av=500;function bv(i){let r=Wc(i,t=>{let{cache:e}=r;return e.size===Av&&e.clear(),t});return r}var Tv=46,Rv=/\\(\\)?/g,Cv=yv(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g"),xf=bv(i=>{let r=[];return csString.prototype.charCodeAt.call(i,0)===Tv&&csArray.prototype.push.call(r,""),csString.prototype.replace.call(i,Cv,(t,e,s,n)=>{let o=t;return s?o=csString.prototype.replace.call(n,Rv,"$1"):e&&(o=csString.prototype.trim.call(e)),csArray.prototype.push.call(r,o),t}),r});function Iv(i,r){return csArray.isArray(i)?i:wv(i,r)?[i]:xf(i)}function Pv(i,r){let t=Iv(r,i),e=i,s=0,{length:n}=t;for(;e!=null&&s"']/g,xv=Uf(Hf.source),Lv=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Vn=/($^)/,Vv={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Uv=/[()=,{}[\]/\s]/,Hv=/<%-([\s\S]+?)%>/g,jv=/<%([\s\S]+?)%>/g,jf=/<%=([\s\S]+?)%>/g,{hasOwnProperty:Ou}=Object.prototype,$v="Invalid `variable` option passed into `_.template`";function Bv(i){return`\\${Vv[i]}`}var Gv={"&":"&","<":"<",">":">",'"':""","'":"'"},zv={escape:Hv,evaluate:jv,interpolate:jf,variable:"",imports:{_:{template:Xn,escape(i){return i&&xv.test(i)?csString.prototype.replace.call(i,Hf,r=>Gv[r]):i!=null?i:""}}}};function Xn(i,r){let t={...zv,...r},e=Object.keys(t.imports||{}),s=csArray.prototype.map.call(e,S=>t==null?void 0:t.imports[S]),n,o,c=0,l=t.interpolate||Vn,u="__p += '",h=Uf(`${(t.escape||Vn).source}|${l.source}|${(l===jf?Lv:Vn).source}|${(t.evaluate||Vn).source}|$`,"g"),p=`//# sourceURL=${Ou.call(t,"sourceURL")?csString.prototype.replace.call(`${t.sourceURL}`,/\s/g," "):void 0} `;i==null||csString.prototype.replace.call(i,h,(S,A,x,I,C,H)=>{let M=x||I;return u+=csString.prototype.replace.call(csString.prototype.slice.call(i,c,H),kv,Bv),A&&(n=!0,u+=`' + __e(${A}) + '`),C&&(o=!0,u+=`'; ${C}; __p += '`),M&&(u+=`' + ((__t = (${M})) == null ? '' : __t) + '`),c=H+S.length,S}),u+=`'; `;let E=Ou.call(t,"variable")&&t.variable;if(!E)u=`with (obj) { ${u} } `;else if(Uv.test(E))throw new Error($v);u=csString.prototype.replace.call(csString.prototype.replace.call(o?csString.prototype.replace.call(u,Ov,""):u,Mv,"$1"),Dv,"$1;"),u=`function(${E||"obj"}) { ${E?"":`obj || (obj = {}); `}var __t, __p = ''${n?", __e = _.escape":""}${o?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `}${u}return __p }`;let m;try{m=Function(...e,`${p}return ${u}`)(...s)}catch(S){m=S}if(m.source=u,m instanceof Error)throw m;return m}var qv=/^(\s*("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')\s*,?)+$/,Wv=/<%[\s\S]+?%>|<%-[\s\S]+?%>|<%=[\s\S]+?%>|\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/,Fv=/^document\.querySelector\(("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')\)\.(textContent|value)$/;function Mu(i){if(!qv.test(i)||Wv.test(i))throw new Error("whitelisted function is wrongly used")}var Du={"window.location.hash.replace(":(i,r)=>{let t=csString.prototype.substring.call(i,29,i.length-1);return Mu(t),Xn(`\${${i}}`)(r)},"window.sessionStorage.getItem(":(i,r)=>{let t=csString.prototype.substring.call(i,30,i.length-1);return Mu(t),Xn(`\${${i}}`)(r)},"document.querySelector(":(i,r)=>{if(Fv.test(i))return Xn(`\${${i}}`)(r)},"new Date().getTime()":(i,r)=>new Date().getTime().toString()};function Yv(i){let r=ln(Object.keys(Du),t=>Jt(i,t));if(r)return Du[r]}function Xv(i){return Jt(i,"'")&&ir(i,"'")}var Kv=/\$\{([\s\S]+?)\}/g,Qv=i=>(r,t,e)=>{let s="";return csArray.prototype.forEach.call(csString.prototype.split.call(t,"+"),n=>{let o=csString.prototype.trim.call(n),c=Vf(i,o);if(c===void 0)if(Xv(o))c=csString.prototype.substring.call(o,1,o.length-1);else{let l=Yv(o);if(l&&(c=l(o,i)),c===void 0)throw new Error("undefined not allowed")}s+=c}),s};function tr(i,r){try{return csString.prototype.replace.call(i,Kv,Qv(r))}catch{return null}}function ac(i,r){let t={};for(let e of Object.keys(i)){let s=i[e];if(O(s)){let n=tr(s,r);if(n===null)return null;t[e]=n}else t[e]=s}return t}function cc(i,r){let t=csArray.prototype.join.call(csArray.prototype.filter.call(csArray.prototype.map.call(csString.prototype.split.call(i,","),e=>tr(e,r)),e=>e!==null&&re(e)),",");return re(t)?t:null}var ku=k(857).al,ya=(()=>{let i;return function(r){r.AND="AND",r.OR="OR"}(i||(i={})),i})(),Ve=(()=>{let i;return function(r){r.STARTS_WITH="startsWith",r.EQUALS="equals",r.NOT_EQUALS="notEquals",r.CONTAINS="contains",r.NOT_CONTAINS="notContains",r.MATCHES="matches",r.NOT_MATCHES="notMatches",r.EXIST="exist",r.NOT_EXIST="notExist"}(i||(i={})),i})();function $f(i,r){return Jv(i.operator,iS(i.args,r))}function Jv(i,r){switch(i){case Ve.EXIST:case Ve.NOT_EXIST:return Zv(i,r);default:return tS(i,r)}}function Zv(i,r){let[t]=r;if(!re(t))return!1;switch(i){case Ve.EXIST:return _w.csquerySelector[_d.nodeType].call(_d,t)!==null;case Ve.NOT_EXIST:return _w.csquerySelector[_d.nodeType].call(_d,t)===null;default:return!1}}function tS(i,r){let[t,e]=r;if(!(i in ya)&&!(O(t)&&O(e)))return!1;switch(i){case ya.AND:return!!csArray.prototype.reduce.call(r,(n,o)=>n&&o);case ya.OR:return!!csArray.prototype.reduce.call(r,(n,o)=>n||o);case Ve.STARTS_WITH:return Jt(t,e);case Ve.EQUALS:return t===e;case Ve.NOT_EQUALS:return t!==e;case Ve.CONTAINS:return csString.prototype.indexOf.call(t,e)>-1;case Ve.NOT_CONTAINS:return csString.prototype.indexOf.call(t,e)===-1;case Ve.MATCHES:{let n=xu(e);return n!==null&&n.test(t)}case Ve.NOT_MATCHES:{let n=xu(e);return n!==null&&!n.test(t)}default:return!1}}function eS(i){return!!(i&&i.operator&&i.args)}function iS(i,r){return csArray.prototype.map.call(i,t=>eS(t)?$f(t,r):O(t)?tr(t,r):t)}function xu(i){let r=/^\/(.*)\/([gimy]*)$/.exec(i),t=null;if(r){let[,e,s]=r;try{t=new ku(e,s)}catch{}}else try{t=new ku(i)}catch{}return t}var sS=["api-errors:maskUrl"],Gt=(()=>{class i{constructor(t,e){this.commandsService=t,this.args=e}}return i})(),mn=(()=>{class i extends Gt{}return i})(),rS=(()=>{class i extends Gt{validateArgs(t){return at(t)?O(t.url):!1}execute(t){this.commandsService.applyFromImplementation(sS[0],[t.url],"ApiErrorsMaskUrlTemplate")}}return i})(),Bf=["trackPageview"],lc=["setPath"],uc=["setQuery"],Lu=["referrer:maskUrl"],nS=["referrer:removeQueryString"],oS=["referrer:keepQueryString"];function Fc(i){switch(i){case"no decoding":return null;case"decode once":return{decodeURI:!0};case"decode multiple times":return{decodeURIDeep:!0};default:return null}}function Yc(i){switch(i==null?void 0:i[0]){case"on next pageview only":return{lifespan:"onNextPageviewOnly"};default:return null}}var Gf=(()=>{class i extends Gt{validateArgs(t){if(at(t)){let e=ft(t.path)?O(t.path):!0,s=ft(t.decodeURI)?O(t.decodeURI):!0,n=ft(t.lifespan)?csArray.isArray(t.lifespan):!0;return e&&s&&n}return!1}execute(t){if(!t.path)this.$n([]);else{let e=[t.path],s=Fc(t.decodeURI),n=Yc(t.lifespan),o={...s,...n};Object.keys(o).length&&e.push(o),this.$n(e)}}$n(t){this.commandsService.applyFromImplementation(Bf[0],t,"ArtificialPageviewTemplate")}}return i})(),aS=(()=>{class i extends Gt{constructor(){super(...arguments),this.iu=!1}validateArgs(t){return at(t)&&O(t.type)&&O(t.urls)&&(t.type==="allow"||t.type==="block")&&csString.prototype.trim.call(t.urls).length>0?(this.iu=!1,!0):($.implementation(`BlockAllowListForSRTemplate has wrong argument: ${t}, fallback to default config.`),this.iu=!0,!0)}execute(t){let e="";this.iu?e=Mf:e=this.kw(t.urls,t.type),this.commandsService.applyFromImplementation(Df[0],[e],"BlockAllowListForSRTemplate")}kw(t,e){let s=e==="allow"?"?!":"";return s+=csArray.prototype.join.call(csArray.prototype.map.call(csString.prototype.split.call(t,","),n=>`.*${csString.prototype.trim.call(n)}`),"|"),`^(${s}).*?`}}return i})(),zf=["trackError"],cS=(()=>{class i extends mn{validateArgs(t){return at(t)?O(t.message)&&csArray.isArray(t.attributes):!1}execute(t,e){let s=tr(t.message,e);if(!s)return;let n={};for(let o of t.attributes){let c=tr(o.value,e);c!==null&&(n[o.key]=c)}this.commandsService.applyFromImplementation(zf[0],[s,n],"CustomErrorTemplate")}}return i})(),lS=(()=>{class i extends Gt{validateArgs(t){if(at(t)){let e=Lf(t),s=csArray.isArray(t.scope)?yd(t.scope,n=>O(n)):!0;return e&&s&&jt(t.index)&&O(t.name)&&O(t.value)}return!1}execute(t){this.commandsService.applyFromImplementation(Xe[0],[t.index,t.name,t.value,t.scope[0]],"CustomVariableTemplate")}}return i})(),uS=(()=>{class i extends Gt{validateArgs(t){return at(t)?O(t.selector):!1}execute(t){this.commandsService.applyFromImplementation(df[0],[t.selector],"DataCsEncryptTemplate")}}return i})(),hS="data-cs-override-id",dS=(()=>{class i extends Gt{validateArgs(t){if(at(t)){let e=It(t.value)?O(t.value):!0;return O(t.selector)&&e}return!1}execute(t){var e;if(!re(t.selector))return;let s=_w.csquerySelector[_d.nodeType].call(_d,t.selector);s&&s.setAttribute(hS,(e=t.value)!==null&&e!==void 0?e:"")}}return i})(),Xc=["trackDynamicVariable"],fS=20,pS=(()=>{class i extends mn{validateArgs(t){return at(t)?Lf(t)&&O(t.key)&&O(t.value)&&O(t.type):!1}execute(t,e){let s=ac(t,e);s!==null?this.$n(s):this.xw(t,e)()}xw(t,e){return()=>{let s=0,n=_w.csSetInterval(()=>{s+=1;let o=ac(t,e);if(o!==null){_w.csClearInterval(n),n=void 0,s=0,this.$n(o);return}s>=fS&&(_w.csClearInterval(n),n=void 0,s=0)},100)}}$n(t){let e=t.value;if(t.type==="Integer"){let s=Number.parseInt(t.value,10);Number.isNaN(s)||(e=s)}this.commandsService.applyFromImplementation(Xc[0],[{key:t.key,value:e}],"DynamicVariableTemplate")}}return i})(),gS=["ecommerce:addToCart","ec:cart:add"],Kc=["ecommerce:addTransaction","ec:transaction:create"],ko=["ecommerce:addItem","ec:transaction:items:add"],Qc=["ecommerce:send","ec:transaction:send"],mS=(()=>{class i extends Gt{validateArgs(t){return at(t)?O(t.transactionId)&&jt(t.revenue)&&O(t.currency)&&O(t.name)&&O(t.sku)&&O(t.category)&&jt(t.price)&&jt(t.quantity):!1}execute(t){this.Lw({id:t.transactionId,revenue:t.revenue,currency:t.currency}),this.Vw({id:t.transactionId,name:t.name,sku:t.sku,category:t.category,price:t.price,quantity:t.quantity}),this.Da()}Lw(t){this.commandsService.applyFromImplementation(Kc[0],[t],"EcTransactionAllTemplate")}Vw(t){this.commandsService.applyFromImplementation(ko[0],[t],"EcTransactionAllTemplate")}Da(){this.commandsService.applyFromImplementation(Qc[0],[],"EcTransactionAllTemplate")}}return i})(),yS=(()=>{class i extends Gt{validateArgs(t){return at(t)?O(t.id)&&jt(t.revenue)&&O(t.currency):!1}execute(t){this.commandsService.applyFromImplementation(Kc[0],[t],"EcTransactionCreateTemplate")}}return i})(),ES=(()=>{class i extends Gt{validateArgs(t){return at(t)?O(t.id)&&O(t.name)&&O(t.sku)&&O(t.category)&&jt(t.price)&&jt(t.quantity):!1}execute(t){this.commandsService.applyFromImplementation(ko[0],[t],"EcTransactionItemsAddTemplate")}}return i})(),_S=(()=>{class i extends Gt{validateArgs(t){return!!at(t)}execute(){this.commandsService.applyFromImplementation(Qc[0],[],"EcTransactionSendTemplate")}}return i})(),vS=(()=>{class i extends mn{validateArgs(t){return at(t)?It(t)&&O(t.selector):!1}execute(t,e){if(!It(t)||!O(t==null?void 0:t.selector))return;let s=cc(t.selector,e);s!==null&&this.commandsService.applyFromImplementation(ff[0],[s],"ElementUnmaskingTemplate")}}return i})(),Jc=["trackPageEvent"],yn=["trackEventTriggerRecording"],SS=(()=>{class i extends Gt{validateArgs(t){return at(t)?O(t.eventName):!1}execute(t){this.commandsService.applyFromImplementation(yn[0],[`@ETP@${t.eventName}`],"EventTriggerRecordingPageTemplate")}}return i})(),wS=(()=>{class i extends Gt{validateArgs(t){return at(t)?O(t.eventName):!1}execute(t){this.commandsService.applyFromImplementation(yn[0],[`@ETS@${t.eventName}`],"EventTriggerRecordingSessionTemplate")}}return i})(),AS=["networkRequest:maskUrls"];var bS=(()=>{class i extends Gt{validateArgs(t){return at(t)?O(t.maskingPattern):!1}execute(t){this.commandsService.applyFromImplementation(AS[0],[t.maskingPattern],"NetworkRequestMaskUrlTemplate")}}return i})(),TS=(()=>{class i extends Gt{validateArgs(t){return at(t)?O(t.eventName):!1}execute(t){this.commandsService.applyFromImplementation(Jc[0],[t.eventName],"PageEventTemplate")}}return i})(),RS=(()=>{class i extends mn{validateArgs(t){if(at(t)){let e=csArray.isArray(t.cssSelectors),s=csArray.isArray(t.attributes);return e&&s}return!1}execute(t,e){let s=csArray.prototype.filter.call(csArray.prototype.map.call(t.cssSelectors,c=>cc(c,e)),c=>!!c),n=csArray.prototype.filter.call(csArray.prototype.map.call(t.attributes,c=>{let l=tr(c.attrName,e),u=cc(c.selector,e);return{attrName:l,selector:u}}),c=>!!c.attrName&&!!c.selector),o={PIISelectors:[...s],Attributes:[...n]};this.commandsService.applyFromImplementation(Gc[0],[o],"PIIMaskingTemplate")}}return i})(),CS=(()=>{class i extends Gt{validateArgs(t){return at(t)?O(t.eventName):!1}execute(t){this.commandsService.applyFromImplementation(yn[0],[`${t.eventName}`],"RecordingEventTriggerTemplate")}}return i})(),IS=(()=>{class i extends Gt{validateArgs(t){return at(t)?O(t.path):!1}execute(t){let e=[t.path],s=Fc(t.decodeURI),n=Yc(t.lifespan),o={...s,...n};Object.keys(o).length&&e.push(o),this.commandsService.applyFromImplementation(lc[0],e,"SetPathTemplate")}}return i})(),PS=(()=>{class i extends Gt{validateArgs(t){return at(t)?O(t.query):!1}execute(t){let e=[t.query],s=Fc(t.decodeURI),n=Yc(t.lifespan),o={...s,...n};Object.keys(o).length&&e.push(o),this.commandsService.applyFromImplementation(uc[0],e,"SetQueryTemplate")}}return i})(),NS=["isRecording"],qf=["replay:resourceManager:enableForOnlineResource:nextPageviewOnly","cssrm:onlineAssets:activateForNextPageview"],OS=(()=>{class i extends Gt{validateArgs(t){return!!at(t)}execute(){this.commandsService.applyFromImplementation(qf[0],[],"SrmOnlineAssetsTemplate")}}return i})(),Wf=["afterPageView"],MS=["getSessionKey"],DS=["getPageviewContext"],kS=["onRecordingContextChange","onRecordingStateChange"],xS=["replay:link:generate"],Ae=(()=>{class i{onEvent(t){this.onEventCallback=t}constructor(t,e,s,n){this.commandsService=t,this.condition=s,this.experimentalConfig=n,this.isStarted=!1,this.Ip=!1,this.args=e}start(){this.Ip||(this.onInit(),this.Ip=!0),this.isStarted||(this.onStart(),this.isStarted=!0)}stop(){this.isStarted&&(this.onStop(),this.isStarted=!1)}}return L([V()],i.prototype,"start",null),L([V()],i.prototype,"stop",null),i})(),LS=(()=>{class i extends Ae{validateArgs(t){return!!at(t)}Uw(){this.isStarted&&this.onEventCallback()}onInit(){this.commandsService.applyFromImplementation(Wf[0],[()=>this.Uw()],"AfterPageViewTrigger")}onStart(){}onStop(){}}return i})(),hc=(()=>{class i extends Ae{constructor(){super(...arguments),this.su={pageviewTypes:["natural","artificial"]}}validateArgs(t){var e;return at(t)&&Ks(t)&&csArray.isArray(t.pageviewTypes)&&yd(t.pageviewTypes,n=>O(n))||($.implementation(`BeforePageViewTrigger has wrong argument: ${(e=this.args)===null||e===void 0?void 0:e.pageviewTypes}, fallback to default config.`),this.args=this.su),!0}onInit(){this.Hw=this.args.pageviewTypes}onPageView(t){this.isStarted&&csArray.prototype.indexOf.call(this.Hw,t)!==-1&&this.onEventCallback()}onStart(){}onStop(){}}return i})(),Zc=(()=>{class i{constructor(){this.set=new Set}add(t){this.set.add(t),this.set.size===1&&csSetTimeout(()=>{this.set.clear()})}has(t){return this.set.has(t)}del(t){this.set.delete(t)}clear(){this.set.clear()}values(){return ds(this.set)}get count(){return this.set.size}}return i})();function tl(i,r=!1){let t=new Zc;return{push(e){t.count===0&&(r?er:csSetTimeout)(()=>{i(t.values()),t.clear()}),t.add(e)}}}var Vu={childList:!0,subtree:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,attributeOldValue:!0},yi=(()=>{var i;class r{static setShadowRootFilter(e){csArray.prototype.push.call(i.shadowRootFilters,e)}static ru(e){if(i.shadowRootFilters.length>0&&pi(e))for(let s=0;s{this.isRefreshing=!1;let s=this.mutationObserver.takeRecords();s.length&&i.mutationCallback(s),this.mutationObserver.disconnect(),this.observedTargets.forEach(n=>{this.mutationObserver.observe(n,Vu)})})))}static observe(e,s){csArray.prototype.push.call(this.callbacks,e),s&&csArray.prototype.push.call(this.shadowRootCallbacks,s),this.started?s&&csArray.prototype.forEach.call(di.getAllShadowHosts(_d),n=>s(csElementshadowRoot.apply(n),"initial")):(this.mutationObserver=new csMutationObserver(this.mutationCallback),this.ru(_d),this.shadowRootObserver=new fn(this.onShadowRoot),this.shadowRootObserver.observe(),this.started=!0,pt(this.shadowRootObserver.shadowRoots,n=>{this.ru(n)}))}static disconnect(e,s){var n,o;this.callbacks=csArray.prototype.filter.call(this.callbacks,c=>c!==e),s&&(this.shadowRootCallbacks=csArray.prototype.filter.call(this.shadowRootCallbacks,c=>c!==s)),this.callbacks.length===0&&(this.callbacks=[],this.shadowRootCallbacks=[],i.shadowRootFilters=[],(n=this.shadowRootObserver)===null||n===void 0||n.disconnect(),(o=this.mutationObserver)===null||o===void 0||o.disconnect(),this.observedTargets.clear(),this.started=!1)}constructor(e,s){this.C=e,this.Pp=s;let n=tl(o=>e(o,this),!0);this.C=Li("DocumentMutationObserver:callback",o=>{pt(o,c=>n.push(c))})}get shadowRoots(){var e,s;return(s=(e=i.shadowRootObserver)===null||e===void 0?void 0:e.shadowRoots)!==null&&s!==void 0?s:[]}takeRecords(){var e;let s=(e=i.mutationObserver)===null||e===void 0?void 0:e.takeRecords(),n=i.shadowRootObserver.takeRecords();return s!=null&&s.length&&n.length?fm(s,n):s!=null?s:n}observe(){i.observe(this.C,this.Pp)}disconnect(){i.disconnect(this.C,this.Pp)}}return i=r,r.callbacks=[],r.shadowRootCallbacks=[],r.started=!1,r.observedTargets=new Set,r.shadowRootFilters=[],r.mutationCallback=t=>{G.counters.mutations.push(t.length),csArray.prototype.forEach.call(i.callbacks,e=>e(t,i.mutationObserver))},r.onShadowRoot=(t,e)=>{pt(i.shadowRootCallbacks,s=>s(t,e)),e!=="removed"?i.ru(t):i.disconnectShadowRoot(t)},r.isRefreshing=!1,bt([V()],r.prototype,"observe",null),bt([V()],r.prototype,"disconnect",null),r})(),ei=(()=>{class i{get selectors(){return this.ei===""?null:this.ei}constructor(t,e={closest:!1}){this.C=t,this.Nt=e,this.ei="",this.Bn=new Zc,this.Dr=un(s=>{if(this.ei==="")return;let n=[];for(let o of gd(s,c=>c.addedNodes)){if(!(Bg(o)||this.Nt.closest&&Zn(o)))continue;let c=this.Nt.closest?this.jw(o,this.ei):this.findMatchingElements(o,this.ei);Ml(c,n)}n.length&&this.C(n,"added")},"SelectorObserver.processMutations"),this.$w=(s,n)=>{if(this.ei===""||n!=="added")return;let o=this.findMatchingElements(s,this.ei);o.length&&this.C(o,"added")},this.W=new yi(this.Dr,this.$w)}observe(t){this.ei===""?this.W.observe():this.ei+=",",this.ei+=t;let e=this.findMatchingElements(_d,t);for(let s of this.W.shadowRoots){let n=this.findMatchingElements(s,t);Ml(n,e)}e.length&&(pt(e,s=>{this.Bn.add(s)}),this.C(e,"initial"))}processPendingMutations(){this.Dr(this.W.takeRecords())}disconnect(){this.W.disconnect(),this.Bn.clear(),this.ei=""}jw(t,e){let s=[];if(Zn(t)){if(t.parentElement){let n=Js(t.parentElement,e);n&&csArray.prototype.push.call(s,n)}return csArray.prototype.filter.call(s,n=>this.Bn.has(n)===!1)}else{if(gi(t)){let n=Js(t,e);if(n)return csArray.prototype.push.call(s,n),csArray.prototype.filter.call(s,o=>this.Bn.has(o)===!1)}return this.findMatchingElements(t,e)}}findMatchingElements(t,e){let s=so(_w.csquerySelectorAll[t.nodeType].call(t,e));return wt(t)&&we.call(t,e)&&csArray.prototype.push.call(s,t),csArray.prototype.filter.call(s,n=>this.Bn.has(n)===!1)}}return bt([V()],i.prototype,"observe",null),bt([V()],i.prototype,"disconnect",null),bt([ne("SelectorObserver.findMatchingElements")],i.prototype,"findMatchingElements",null),i})(),Uu="once per pageview",VS="always",US=(()=>{class i extends Ae{constructor(){super(...arguments),this.vt=!0}validateArgs(t){if(at(t)){let e=O(t.selector),s=t.frequency?t.frequency===Uu||t.frequency===VS:!0;return e&&s}return!1}onInit(){if(!re(this.args.selector)){this.vt=!1;return}this.Gn=this.args.frequency?this.args.frequency===Uu:!0,this.W=new ei((t,e)=>this.C(t,e))}onStart(){this.vt&&this.W.observe(this.args.selector)}onStop(){this.vt&&(this.W.processPendingMutations(),this.W.disconnect())}C(t,e){e==="added"&&(this.Gn?(this.stop(),this.onEventCallback({element:t[0]})):new Set(t).forEach(s=>this.onEventCallback({element:s})))}}return i})(),dc=()=>(i,r,t)=>{t.value=HS(t.value)};function HS(i){let r=Symbol("oncePerTickSymbol"),t=null,e={},s=function(){var n;let o=(n=this)!==null&&n!==void 0?n:e;if(t=arguments,o[r])return;o[r]=!0,id(()=>{o[r]=!1,i.apply(o,t)})};return s.oncePerTickSymbol=r,s}dc.isScheduled=(i,r)=>{let t=r.oncePerTickSymbol;return i[t]};var jS=(()=>{class i{constructor(t){this.C=t,this.hs=new Map,this.Np=e=>{let s=e.target;if(this.hs.has(s))return!0;let n=!1;return this.hs.forEach((o,c)=>{n||!this.hs.get(c).subtree||(n=c.contains(s))}),n},this.j=new csMutationObserver(e=>{dc.isScheduled(this,this.garbageCollect)&&(e=Ha(e,this.Np)),e.length&&er(()=>t(e,this))})}disconnect(){this.j.disconnect(),this.hs=new Map}takeRecords(){return this.j.takeRecords()}observe(t,e){return this.hs.set(t,e),this.j.observe(t,e)}unobserve(t){this.hs.has(t)&&(this.hs.delete(t),this.garbageCollect())}garbageCollect(){let t=Ha(this.takeRecords(),this.Np);t.length&&this.C(t,this),this.j.disconnect(),this.hs.forEach((e,s)=>this.j.observe(s,e))}}return bt([dc()],i.prototype,"garbageCollect",null),i})(),Hu=(()=>{class i{static create(t,e){if(!i.isSupported())throw new Error("IntersectionObserver is not supported");if(e&&e.delay&&e.delay<100)throw new Error("Visibility delay should be > 100ms");return e!=null&&e.trackVisibility&&(t=i.Bw(t)),new csIntersectionObserver(t,e)}static isSupported(){return!!_w.csIntersectionObserver&&!!_w.IntersectionObserverEntry}static Bw(t){return(e,s)=>t(um(e,$S),s)}}return i})();function $S(i){return i.isVisible||!kt.isVisibleInViewportInForeground(i.target)?i:{boundingClientRect:i.boundingClientRect,intersectionRatio:i.intersectionRatio,intersectionRect:i.intersectionRect,isIntersecting:i.isIntersecting,rootBounds:i.rootBounds,target:i.target,time:i.time,isVisible:!0}}var BS=(()=>{class i{constructor(t){this.C=t,this.Mi=new Set}onMutations(t){if(md(t,e=>{var s;return!!(!((s=e.removedNodes)===null||s===void 0)&&s.length)}))for(let e of this.Mi.values())kt.isConnected(e)||(this.Mi.delete(e),this.C(e))}observe(t){this.W||(this.W=new yi(e=>csSetTimeout(()=>this.onMutations(e))),this.W.observe()),this.Mi.add(t)}disconnect(){var t;(t=this.W)===null||t===void 0||t.disconnect(),this.Mi.clear(),this.W=void 0}}return bt([V("NodeDisconnectedObserver.onMutations")],i.prototype,"onMutations",null),i})(),GS=300,mo=(()=>{class i{constructor(t){this.ka=new Set,this.Gw=new BS(e=>this.Op(e)),this.bt=!1,this.Nt=t?{...ju,...t}:ju}stop(){var t,e;this.bt=!1,(t=this.zn)===null||t===void 0||t.disconnect(),(e=this.j)===null||e===void 0||e.disconnect()}start(t){if(this.bt)throw new Error("VisibilityObserver is already started");this.C=Li("VisibilityObserver:callback",(s,n)=>t(s,n));let e={root:null,rootMargin:"0px",threshold:.5,trackVisibility:!0,delay:GS};this.zn=Hu.create(s=>this.handleIntersection(s),e),this.j=new jS(s=>csSetTimeout(()=>{pt(s,n=>this.Op(n.target))})),this.qn(),this.bt=!0}observe(t){if(!this.bt)throw new Error("Observer is stopped.");this.Nt.reobserve===!1&&t[this.nu]||(t[this.nu]=!0,this.watchIntersection(t))}qn(){this.xa=Symbol("isVisible"),this.nu=Symbol("ObservedElement"),this.ou=Symbol("LinkedElement"),this.Mp=Symbol("Tracked")}Op(t){this.ka.add(t);for(let e of this.zw(t))this.ka.add(e);this.recheckCssVisibilityAll()}recheckCssVisibilityAll(){pt(this.ka.keys(),t=>{!csNodeisConnected.apply(t)||kt.areAncestorsHiddenByCSS(t)||t[this.nu]&&this.watchIntersection(t)}),this.ka.clear()}watchIntersection(t){this.j.unobserve(t),this.zn.unobserve(t);let e=kt.getTopAncestorHiddenByCSS(t);e?(e!==t&&(this.Dp(e,t),this.watchMutation(e)),this.watchMutation(t)):this.zn.observe(t)}watchMutation(t,e=!0){e&&delete t[this.xa],this.zn.unobserve(t);let s={attributeFilter:["style","class","hidden"]};this.j.observe(t,s)}handleIntersection(t){for(let e of t){let s=e.target;if(!e.isVisible){kt.isVisibleInDocument(s)||this.qw(s);continue}let n=this.Nt.allowSameMatch||!e.target[this.xa];e.target[this.xa]=!0,n&&!this.Nt.delay&&this.onVisibilityChanged(e.target,Gr.VisibleInViewPort)}this.Nt.delay&&csSetTimeout(()=>{for(let e of t){let s=e.isIntersecting&&e.isVisible;e.target[this.xa]&&s&&this.onVisibilityChanged(e.target,Gr.VisibleInViewPort)}},this.Nt.delay)}qw(t){let e=kt.getTopElement(t);this.watchMutation(t),e&&(this.Gw.observe(e),this.Dp(e,t),this.watchMutation(e,!1))}Dp(t,e){var s;(t[this.ou]=(s=t[this.ou])!==null&&s!==void 0?s:new Set).add(e)}zw(t){var e,s;let n=[],o=(s=(e=t[this.ou])===null||e===void 0?void 0:e.values())!==null&&s!==void 0?s:[];return pt(o,c=>csArray.prototype.push.call(n,c)),n}onVisibilityChanged(t,e){if(e===Gr.VisibleInViewPort&&this.Nt.trackOnce){if(this.zn.unobserve(t),this.j.unobserve(t),t[this.Mp])return;t[this.Mp]=!0}this.C(t,e)}static isSupported(){return Hu.isSupported()}}return bt([V()],i.prototype,"observe",null),bt([Po({wait:50}),V(),ne("recheckCssVisibilityAll")],i.prototype,"recheckCssVisibilityAll",null),bt([V()],i.prototype,"watchIntersection",null),bt([V()],i.prototype,"watchMutation",null),bt([V(),ne("VisibilityObserver.handleIntersection")],i.prototype,"handleIntersection",null),bt([V()],i.prototype,"onVisibilityChanged",null),i})(),Gr=(()=>{let i;return function(r){r.VisibleInViewPort="VisibleInViewPort",r.HiddenByAnother="HiddenByAnother",r.Hidden="Hidden"}(i||(i={})),i})(),ju={delay:1e3,trackOnce:!0,reobserve:!1},$u="once per pageview",zS="always",qS=(()=>{class i extends Ae{constructor(){super(...arguments),this.au=!1,this.Gs=!1,this.Gn=!0}validateArgs(t){if(at(t)){let e=O(t.selector),s=t.frequency?t.frequency===$u||t.frequency===zS:!0;return e&&s}return!1}onInit(){if(!mo.isSupported())return;this.Gs=!0,this.Gn=this.args.frequency?this.args.frequency===$u:!0;let t=this.kp();this.Q=new ei((e,s)=>{if(s==="initial")for(let n of e)kt.isVisibleInViewportInForeground(n)&&(n[this.lu]=!0);this.hu(e)},{closest:t}),this.Lt=new mo({delay:0,trackOnce:!1,reobserve:!0,allowSameMatch:!0})}onStart(){!this.Gs||this.isStarted||(this.lu=Symbol("skipElement"),this.au=!1,this.Lt.start((t,e)=>this.du(t,e)),this.Q.observe(this.args.selector))}onStop(){!this.Gs||!this.isStarted||(this.Q.disconnect(),this.Lt.stop())}du(t,e){if(this.isStarted&&e===Gr.VisibleInViewPort){let n=this.kp()?t.closest(this.args.selector):t;if(n){if(n&&n[this.lu]){delete n[this.lu];return}this.Gn&&this.stop(),(!this.Gn||!this.au)&&(this.au=!0,this.onEventCallback({element:n}))}}}hu(t){for(let e of t)this.Lt.observe(e)}kp(){var t;return((t=this.experimentalConfig)===null||t===void 0?void 0:t.useClosestElement)===!0}}return i})(),Ut=(()=>{let i;return function(r){r[r.TAP=0]="TAP",r[r.LONG_PRESS=1]="LONG_PRESS",r[r.DRAG=2]="DRAG",r[r.FLICK=3]="FLICK",r[r.PINCH_IN=4]="PINCH_IN",r[r.PINCH_OUT=5]="PINCH_OUT"}(i||(i={})),i})(),Un=(()=>{let i;return function(r){r[r.UP=1]="UP",r[r.DOWN=2]="DOWN",r[r.LEFT=3]="LEFT",r[r.RIGHT=4]="RIGHT"}(i||(i={})),i})(),WS=(()=>{class i{compute(t,e){let s=this.ds(e.x)-this.ds(t.x),n=this.ds(e.y)-this.ds(t.y),o=e.time-t.time;return{duration:o,distance:this.xp(s,n),direction:this.Ww(s,n),velocity:this.Fw(s,n,o)}}computePinchMetrics(t,e){let s=this.ds(e.x)-this.ds(t.x),n=this.ds(e.y)-this.ds(t.y);return{duration:e.time-t.time,distance:this.xp(s,n)}}getScale(t,e){return Math.abs(e/t-1)}ds(t){return t/_w.devicePixelRatio}xp(t,e){return Math.round(Math.sqrt(t*t+e*e))}Fw(t,e,s){let n=s/1e3,o=t/n,c=e/n;return Math.round(Math.abs(o)+Math.abs(c))}Ww(t,e){return Math.abs(t)>Math.abs(e)?t>0?Un.RIGHT:Un.LEFT:e>0?Un.DOWN:Un.UP}}return i})();function Bu(i,r=0){let t=Math.pow(10,r);return Math.round(i*t)/t}var FS=1e3,YS=100,XS=.1,fc=(()=>{class i{constructor(){this.kr=[],this.ee={},this.fu=()=>{},this.La=new WS,this.Lp()}static isGestureDetectionSupported(){return typeof devicePixelRatio!="undefined"}onGesture(t){this.fu=t}isValidTouchEvent(t){return"touches"in t&&"changedTouches"in t}processActionDown(t){if(!this.Yw(t))return;this.Xw(t)&&this.Lp();let e={x:t.touches[0].clientX,y:t.touches[0].clientY,time:U.now()};if(t.touches.length===1)this.ee.startPinchTime=e.time,this.ee.firstTouch=e;else if(t.touches.length===2&&(this.ee.secondTouch={x:t.touches[1].clientX,y:t.touches[1].clientY,time:U.now()},this.ee.firstTouch&&this.ee.secondTouch)){let s=this.La.computePinchMetrics(this.ee.firstTouch,this.ee.secondTouch);this.xr=s.distance}csArray.prototype.push.call(this.kr,e),this.Va=Qt(t)}processActionMove(){this.pu=!0}processActionUp(t){if(this.Kw(t)){if(csArray.prototype.push.call(this.kr,{x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY,time:U.now()}),this.Qw(t)&&this.ee.startPinchTime){let e={x:t.touches[0].clientX,y:t.touches[0].clientY,time:this.ee.startPinchTime},s={x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY,time:U.now()};this.ee.firstTouch&&(this.ee.firstTouch=e,this.ee.secondTouch=s),this.Jw(t)}this.xr||this.Zw()&&this.tA(t)}}Lp(){this.kr=[],this.Va=void 0,this.pu=!1,this.xr=void 0,this.Wn=!0}tA(t){let e=this.La.compute(this.kr[0],this.kr[1]);this.Wn=t.isTrusted;let s=this.pu?this.eA(e):this.iA(e);if(this.sA(s.type,t.changedTouches)){let n=t.changedTouches[0];s.pageX=Bu(n.pageX,1),s.pageY=Bu(n.pageY,1)}this.fu(s,t)}Jw(t){if(!(this.ee.firstTouch&&this.ee.secondTouch))return;let e=this.La.computePinchMetrics(this.ee.firstTouch,this.ee.secondTouch);this.Wn=t.isTrusted;let s=this.rA(e);s&&this.fu(s,t)}rA(t){return!this.xr||this.La.getScale(this.xr,t.distance)t.distance?Ut.PINCH_IN:Ut.PINCH_OUT,target:this.Va,distance:t.distance,isTrusted:this.Wn}}eA(t){return{type:t.velocity0}Kw(t){return t.changedTouches.length>0}Qw(t){return this.pu===!0&&!!this.xr&&t.changedTouches.length===1&&t.touches.length===1}}return i})();function ee(i,r,t,e){var s,n;let o=(s=e==null?void 0:e.capture)!==null&&s!==void 0?s:!0,c=(n=e==null?void 0:e.passive)!==null&&n!==void 0?n:!0,l=u=>{jd(()=>t(u),{type:"listen",event:u,name:r})};return i.addEventListener(r,l,{capture:o,passive:c}),()=>{i.removeEventListener(r,l,{capture:o})}}var yo=Symbol("cleanup");function $t(i,r=!0){var t;(t=i[yo])===null||t===void 0||t.call(i),i[yo]=ee(i.boundElement,i.type,e=>i.listener.call(i.boundElement,e),{capture:r})}function xt(i,r){var t;(t=i[yo])===null||t===void 0||t.call(i),i[yo]=void 0}var KS="touchstart",QS="touchmove",JS="touchend",Ff=(()=>{class i{constructor(t){this.C=t}observe(){i.Vp&&i.gu(this.C)}disconnect(){i.Vp&&i.Fn(this.C)}static nA(t,e){csArray.prototype.forEach.call(ds(i.Ht),s=>s(t,e))}static gu(t){i.Ht.has(t)||(i.Ht.add(t),i.Ht.size===1&&(i.Yn.onGesture(i.nA),csArray.prototype.forEach.call(i.fs,e=>$t(e))))}static Fn(t){i.Ht.delete(t),i.Ht.size===0&&csArray.prototype.forEach.call(i.fs,e=>xt(e))}static mu(t){if(i.Yn.isValidTouchEvent(t))switch(t.type){case"touchstart":i.Yn.processActionDown(t);break;case"touchmove":i.Yn.processActionMove();break;case"touchend":i.Yn.processActionUp(t);break}}}return i.fs=[{boundElement:mt.document,type:KS,listener:r=>i.mu(r)},{boundElement:mt.document,type:QS,listener:r=>i.mu(r)},{boundElement:mt.document,type:JS,listener:r=>i.mu(r)}],i.Vp=fc.isGestureDetectionSupported(),i.Ht=new Set,i.Yn=new fc,i})(),ZS=(()=>{class i extends Ae{constructor(){super(...arguments),this.yu=!1,this.vt=!0,this.ps=!0,this.gs={boundElement:_d,type:"click",listener:t=>{if(this.yu){this.yu=!1;return}this.onClickOrTap(t)}},this.oA=(t,e)=>{t.type===Ut.TAP&&(this.yu=!0,this.onClickOrTap(e))}}validateArgs(t){return at(t)?O(t.selector):!1}onClickOrTap({target:t}){if(It(t)&&gi(t)){let e=Js(t,this.args.selector);e&&this.onEventCallback({element:e})}}onInit(){if(!re(this.args.selector)){this.vt=!1;return}this.Xn=new Ff(this.oA)}onStart(){var t;this.vt&&($t(this.gs,this.ps),(t=this.Xn)===null||t===void 0||t.observe())}onStop(){var t;this.vt&&(xt(this.gs,this.ps),(t=this.Xn)===null||t===void 0||t.disconnect())}}return L([V("onClickOrTap"),Tt()],i.prototype,"onClickOrTap",null),i})(),tw=(()=>{class i extends Ae{constructor(){super(...arguments),this.vt=!0,this.Up=!1}validateArgs(t){return at(t)?O(t.selector):!1}onInit(){if(!re(this.args.selector)){this.vt=!1;return}this.W=new ei((t,e)=>{this.C(t,e)})}onStart(){this.vt&&(this.W.observe(this.args.selector),this.Up=!0)}onStop(){this.vt&&(this.W.processPendingMutations(),this.W.disconnect())}C(t,e){this.Up?e==="added"&&new Set(t).forEach(s=>this.onEventCallback({element:s})):this.onEventCallback({element:t[0]})}}return i})(),ew=(()=>{class i extends Ae{constructor(){super(...arguments),this.vt=!0}validateArgs(t){return at(t)?O(t.selector):!1}onInit(){if(!re(this.args.selector)){this.vt=!1;return}this.Q=new ei(t=>this.aA(t)),this.j=new yi(t=>this.cA(t))}onStart(){this.vt&&(this.Ua=Symbol("MatchingElement"),this.Q.observe(this.args.selector),this.j.observe())}onStop(){this.vt&&(this.Q.processPendingMutations(),this.Q.disconnect(),this.j.disconnect())}aA(t){new Set(t).forEach(e=>this.lA(e))}cA(t){let e=gd(t,n=>n.removedNodes),s=[];for(let n of e)csArray.prototype.push.call(s,...this.uA(n));new Set(s).forEach(n=>this.onEventCallback({element:n}))}lA(t){t[this.Ua]=!0}uA(t){let e=[];return ve(t,NodeFilter.SHOW_ELEMENT).visitAll(s=>{s[this.Ua]&&(kt.isConnected(s)?we.call(s,this.args.selector)||delete s[this.Ua]:delete s[this.Ua],csArray.prototype.push.call(e,s))}),e}}return i})(),iw=(()=>{class i extends Ae{constructor(){super(...arguments),this.Ha=!0}validateArgs(t){return at(t)?O(t.selector):!1}onInit(){if(!re(this.args.selector)||!mo.isSupported()){this.Ha=!1;return}this.Lt=new mo({delay:0,trackOnce:!0,reobserve:!0}),this.Q=new ei(t=>this.hu(t),{closest:!0})}hu(t){for(let e of t)this.Lt.observe(e)}du(t,e){if(this.isStarted&&e===Gr.VisibleInViewPort){let s=Js(t,this.args.selector);s&&(this.onEventCallback({element:s}),this.stop(),this.Ha=!1)}}onStart(){this.Ha&&(this.Lt.start((t,e)=>this.du(t,e)),this.Q.observe(this.args.selector))}onStop(){this.Ha&&(this.Lt.stop(),this.Q.disconnect())}}return i})(),sw=(()=>{class i extends Ae{constructor(){super(...arguments),this.vt=!0,this.ps=!0,this.gs={boundElement:_d,type:"submit",listener:t=>this.submitListener(t)}}validateArgs(t){return at(t)?O(t.selector):!1}submitListener({target:t}){It(t)&&gi(t)&&we.call(t,this.args.selector)&&this.onEventCallback({element:t})}onInit(){re(this.args.selector)||(this.vt=!1)}onStart(){this.vt&&$t(this.gs,this.ps)}onStop(){this.vt&&xt(this.gs,this.ps)}}return L([V("submitListener"),Tt()],i.prototype,"submitListener",null),i})(),rw=(()=>{class i extends Ae{constructor(){super(...arguments),this.gs={boundElement:_w,type:"hashchange",listener:t=>this.hashChangedListener(t)}}validateArgs(t){return!!at(t)}hashChangedListener(t){t.newURL&&t.newURL===t.oldURL||this.onEventCallback()}onInit(){}onStart(){$t(this.gs)}onStop(){xt(this.gs)}}return L([V("hashChangedListener"),Tt()],i.prototype,"hashChangedListener",null),i})();function Eo(i,r){let t,e,s,n,o,c=null,l=h=>{let p=U.elapsed();if(!h&&c!==null){let m=r-(p-c);if(m>=1){s=mt.csSetTimeout(l,m);return}}let E=p-n;s=null,c=null,n=null,o=i.apply(t,[E,...e])},u=function(){if(t=this,e=arguments,n){c=U.elapsed();return}return n=U.elapsed(),s=mt.csSetTimeout(l,r),o};return u.flushPending=()=>{s&&(mt.csClearTimeout(s),l(!0))},u.cancel=()=>{c=null,n=null,s&&(mt.csClearTimeout(s),s=null)},u}var nw=(()=>{class i{static hA(){var t,e,s,n;if("history"in _w){let o=Object.getOwnPropertyDescriptors(history);if(!((t=o.pushState)===null||t===void 0)&&t.writable&&(!((e=o.replaceState)===null||e===void 0)&&e.writable))return history}if(History.prototype){let o=Object.getOwnPropertyDescriptors(History.prototype);if(!((s=o.pushState)===null||s===void 0)&&s.writable&&(!((n=o.replaceState)===null||n===void 0)&&n.writable))return History.prototype}ut.warn("Unable to override pushState, replaceState",!0,"HistoryChangeObserver")}static dA(){let t=i.hA();i.Kn===null&&$e(t==null?void 0:t.pushState)&&(i.Kn=it(t,"pushState",(e,{args:s})=>{i.Hp("pushstate",s)})),i.Qn===null&&$e(t==null?void 0:t.replaceState)&&(i.Qn=it(t,"replaceState",(e,{args:s})=>{i.Hp("replacestate",s)}))}static xn(t){i._t.add(t),i._t.size===1&&((i.Kn===null||i.Qn===null)&&i.dA(),$t(i.jp),$t(i.$p))}static Vn(t){var e,s;i._t.delete(t),i._t.size===0&&((e=i.Kn)===null||e===void 0||e.call(i),i.Kn=null,(s=i.Qn)===null||s===void 0||s.call(i),i.Qn=null,xt(i.jp),xt(i.$p))}static Hp(t,e){let s={type:t,state:e[0]};O(e[2])&&(s.url=e[2]),i.Lr(s)}static popstateListener(t){i.Lr({type:"popstate",state:t.state})}static hashchangeListener(t){i.Lr({type:"hashchange",state:null,url:t.newURL})}static Lr(t){csArray.prototype.forEach.call(ds(i._t),e=>{e(t)})}constructor(t){this.C=t}observe(){i.xn(this.C)}disconnect(){i.Vn(this.C)}}return i.Kn=null,i.Qn=null,i.jp={boundElement:mt,type:"popstate",listener:r=>i.popstateListener(r)},i.$p={boundElement:mt,type:"hashchange",listener:r=>i.hashchangeListener(r)},i._t=new Set,bt([V("popstateListener"),Tt()],i,"popstateListener",null),bt([V("hashchangeListener"),Tt()],i,"hashchangeListener",null),i})(),ow=(()=>{class i extends Ae{validateArgs(t){if(at(t)){let e=O(t.useDebounce),s=t.useDebounce==="yes"?jt(t==null?void 0:t.window):!0,n=O(t.listeners);return e&&s&&n}return!1}onInit(){this.args.useDebounce==="yes"?this.Di=Eo(()=>{this.onEventCallback()},this.args.window):this.Di=this.onEventCallback,this.W=new nw(t=>this.fA(t))}Bp(){return _w.location.href}fA(t){let e=t.type==="replacestate"&&this.args.listeners.indexOf("replaceState")===-1,s=t.type==="hashchange"&&this.args.listeners.indexOf("hashchange")===-1;if(e||s)return;let n=this.Bp();this.Gp!==n&&(this.Gp=n,this.Di())}onStart(){this.Gp=this.Bp(),this.W.observe()}onStop(){this.W.disconnect()}}return i})(),aw=(()=>{class i extends Ae{constructor(){super(...arguments),this.vt=!0,this.zp={boundElement:_d,type:"mouseover",listener:t=>this.mouseoverListener(t)},this.qp={boundElement:_d,type:"mouseleave",listener:t=>this.mouseleaveListener(t)}}validateArgs(t){return at(t)?O(t.selector):!1}onInit(){re(this.args.selector)||(this.vt=!1)}mouseleaveListener({target:t}){It(t)&&gi(t)&&t[this.ja]&&delete t[this.ja]}mouseoverListener({target:t}){if(It(t)&&gi(t)){let e=Js(t,this.args.selector);e!==null&&!e[this.ja]&&(e[this.ja]=!0,this.onEventCallback({element:e}))}}onStart(){this.vt&&(this.ja=Symbol("Hovered"),$t(this.qp,!0),$t(this.zp,!0))}onStop(){this.vt&&(xt(this.zp),xt(this.qp))}}return L([V("mouseleaveListener"),Tt()],i.prototype,"mouseleaveListener",null),L([V("mouseoverListener"),Tt()],i.prototype,"mouseoverListener",null),i})(),cw=(()=>{class i{static readyStateChangeListener(t){csArray.prototype.forEach.call(ds(i.callbacks),e=>e(t))}static gu(t){i.callbacks.has(t)||(i.callbacks.add(t),i.callbacks.size===1&&$t(i.eventHandler,!1))}static Fn(t){i.callbacks.delete(t),i.callbacks.size===0&&xt(i.eventHandler,!1)}constructor(t){this.C=t}observe(){i.gu(this.C)}disconnect(){i.Fn(this.C)}}return i.callbacks=new Set,i.eventHandler={boundElement:mt.document,type:"readystatechange",listener:i.readyStateChangeListener},bt([V("readyStateChangeListener"),Tt()],i,"readyStateChangeListener",null),i})(),lw=(()=>{class i extends Ae{constructor(){super(...arguments),this.su={state:"Any"}}validateArgs(t){var e;return at(t)&&O(t.state)||($.implementation(`PageStateTrigger has wrong argument: ${(e=this.args)===null||e===void 0?void 0:e.state}, fallback to default config.`),this.args=this.su),!0}onInit(){this.Vt=this.args.state.toLowerCase(),this.W=new cw(()=>{this.Wp(this.Vt,_d.readyState)&&(this.onEventCallback(),this.W.disconnect())})}onStart(){this.Wp(this.Vt,_d.readyState)?this.onEventCallback():this.W.observe()}onStop(){this.W.disconnect()}Wp(t,e){let s=i.Fp[e];return i.Fp[t]<=s}}return i.Fp={complete:3,interactive:2,loading:1,any:0},i})(),uw=(()=>{class i{constructor(t,e){this.S=t,this.pA=e,this.gA={ApiErrorsMaskUrl:rS,NetworkRequestMaskUrls:bS,ArtificialPageview:Gf,BlockAllowListForSr:aS,CustomError:cS,CustomVariable:lS,DataCsEncrypt:uS,DataCsOverride:dS,DynamicVariable:pS,EcTransactionAll:mS,EcTransactionCreate:yS,EcTransactionItemsAdd:ES,EcTransactionSend:_S,ElementUnmasking:vS,EventTriggerRecordingPage:SS,EventTriggerRecordingSession:wS,PageEvent:TS,PiiMasking:RS,RecordingEventTrigger:CS,SetPath:IS,SetQuery:PS,SrmOnlineAssets:OS},this.Vr={AfterPageView:LS,ElementAdded:US,ElementBecomesVisible:qS,ElementExist:tw,ElementRemoved:ew,ElementVisibility:iw,ElementClick:ZS,FormSubmit:sw,HashChange:rw,HistoryChange:ow,Mouseover:aw,PageState:lw,BeforePageView:hc}}mA(t){let e=this.gA[t.name];return e?new e(this.S,t.args):($.error(`Implementations: template ${t.name} does not exist`),null)}yA(t){var e;let s=this.Vr[t.name];if(!s)return $.error(`Implementations: trigger ${t.name} does not exist`),null;let n=(e=this.pA)===null||e===void 0?void 0:e[t.name];return new s(this.S,t.args,t.condition,n)}parse(t){let e=[];for(let{triggers:s,template:n}of t){let o=this.mA(n);if(!o)continue;if(!o.validateArgs(o.args)){$.implementation(`${n.name} has wrong argument.`);continue}for(let l of s){let u=this.yA(l);if(!u)continue;if(!u.validateArgs(u.args)){$.implementation(`${l.name} has wrong argument.`);continue}csArray.prototype.push.call(e,{name:`${l.name}_${n.name}`,trigger:u,template:o})}}return e}}return i})();function hw(i){return csArray.isArray(i)?csArray.prototype.map.call(i,kf):qc(i)?[i]:csArray.from(xf(i))}function dw(i,r){try{let e=/^values\(([a-zA-Z0-9_$[\].]+)\)\[\?([a-zA-Z0-9_$]+)\]$/.exec(i);if(!e)return null;let s=e[1],n=e[2],o=Vf(r,hw(s));if(typeof o!="object"||o===null)return null;let c=[];return csArray.prototype.forEach.call(Object.keys(o),l=>{let u=o[l];typeof u=="object"&&u!==null&&!csArray.isArray(u)&&n in u&&csArray.prototype.push.call(c,u)}),c}catch{return null}}function fw(i,r){let e=/^\[([0-9]+):([0-9+])\]$/.exec(i);if(!e)return null;let s=parseInt(e[1],10),n=parseInt(e[2],10);return n<=s||n>r.length?null:csArray.prototype.slice.call(r,s,n)}function pw(i,r){let t=csString.prototype.split.call(i,"|");if(t.length>2)return null;let e=dw(csString.prototype.trim.call(t[0]),r);return t.length===2?e===null?null:fw(csString.prototype.trim.call(t[1]),e):e}var Ea=(()=>{class i{constructor(t,e,s,n){this.EA=t,this.L=s,this.Oe={window:_w,document:_d,location,cookies:{}},this.Vr=new Set,this._A=new uw(e,n)}onInit(){Object.defineProperty(this.Oe,"cookies",{get:()=>this.vA()});let t=this._A.parse(this.EA);for(let{name:e,trigger:s,template:n}of t)s instanceof hc&&n instanceof Gf||(this.Vr.add(s),s.onEvent(o=>{this.onTriggerEvent(o,n),G.counters.CSTCSnippetUsed.count(e)}))}start(t=!1){this.Vr.forEach(e=>{e.condition&&!$f(e.condition,this.Oe)||(t?this.L.task(()=>{e.start()}):e.start())})}stop(){this.Vr.forEach(t=>{t.stop()})}onBeforePageView(t){this.Vr.forEach(e=>{if(e instanceof hc){e.onPageView(t);return}})}onTriggerEvent(t,e){let s=this.SA(t),n={...this.Oe,...s},o=[];if(Nv(e.args)&&O(e.args.iterable)&&e.args.iterable.length>0){let c=pw(e.args.iterable,n);if(It(c)){let l=csArray.prototype.map.call(c,u=>({...n,$:u}));csArray.prototype.push.call(o,...l)}}else csArray.prototype.push.call(o,n);if(e instanceof mn){for(let c of o)e.execute(e.args,c);return}for(let c of o){let l=ac(e.args,c);l&&e.execute(l)}}vA(){let t;try{t=_d.cookie}catch{t=""}return csArray.prototype.reduce.call(csString.prototype.split.call(t,"; "),(e,s)=>{let[n,o]=csString.prototype.split.call(s,"=");return o!==void 0&&(e[n]=o),e},{})}SA(t){let e={...t};for(let s in e)wt(e[s])&&(B.isMaskedElement(e[s])||B.isMaskedElementChild(e[s]))&&delete e[s];return e}}return L([ne("implementationsService.start")],i.prototype,"start",null),L([V()],i.prototype,"onTriggerEvent",null),i})(),gw=(()=>{let i=class{constructor(t,e){this.w=t,this.ki=e}onInit(){this.ki.onInit(),this.w.addListener(this)}onInitTracking(){this.ki.start(!0)}onOptout(){this.ki.stop()}onBeforeSessionRenewal(){this.ki.stop(),this.ki.start()}onArtificialPageViewEnd(){this.ki.stop()}onBeforeArtificialPageView(){this.ki.start(),this.ki.onBeforePageView("artificial")}onBeforeNaturalPageView(){this.ki.onBeforePageView("natural")}};return i.$deps=[Zt,Ea],i=L([Bt({imports:[te,Nf],providers:[he(Ea,(r,t,e)=>{var s;return new Ea(r.implementations||[],t,e,(s=r.experimental)===null||s===void 0?void 0:s.snippets)},[ht,Me,Bi])]})],i),i})(),mw=gw,Yf="_cs_optout",Gu="1",Xf=(()=>{class i extends Yy{}return i.key=Yf,i.expiresIn=bo,i})(),zr=(()=>{class i{constructor(t,e,s){this.w=t,this.Gt=e,this.et=s,this.zs=!1}qn(){!this.isActive()&&this.wA()&&this.activate()}isActive(){return this.zs||(this.zs=!0,this.qn()),this.et.get()===Gu}activate(){this.w.emitOptout(),this.et.set(Gu)}wA(){return csString.prototype.indexOf.call(this.Gt.href,Yf)>0}}return i.$deps=[Zt,Location,Xf],i})(),yw=["optout"];var Ew=(()=>{let i=class{constructor(t,e){this.S=t,this.ms=e}onInit(){this.S.register(yw,()=>{this.ms.activate()})}};return i.$deps=[Me,zr],i=L([Bt({imports:[te],providers:[Xf,zr],exports:[zr]})],i),i})(),Kf=(()=>{class i{constructor(){this.Me={boundElement:_d,type:"securitypolicyviolation",listener:t=>this.securityPolicyViolationListener(t)}}start(){$t(this.Me)}stop(){xt(this.Me)}onEvent(t){this.B=t}bA(t){if(!t)return!1;let e=t.disposition;return O(t.sourceFile)&&csArray.prototype.some.call(i.AA,s=>csString.prototype.indexOf.call(t.sourceFile,s)>0)&&e!=="report"}securityPolicyViolationListener(t){this.bA(t)&&this.B({violatedDirective:t.violatedDirective,sourceFile:t.sourceFile})}}return i.$deps=[],i.AA=["contentsquare","cdnssl.clicktale.net"],L([V("Event handler type: securitypolicyviolation")],i.prototype,"securityPolicyViolationListener",null),i})(),zu=(()=>{class i{constructor(t){this.Eu=t}start(){this.Eu.onEvent(t=>this.K(t)),this.Eu.start()}stop(){this.Eu.stop()}K(t){let e=`Content Security Policy error. Violated directive: ${t.violatedDirective} - Source file: ${t.sourceFile}`;$.warn(e)}}return i.$deps=[Kf],i})(),vw=(()=>{let i=class{constructor(t,e){this.$a=t,this.w=e}onInit(){this.$a.start(),this.w.addListener(this)}onOptout(){this.$a.stop()}onArtificialPageViewEnd(t){t&&this.$a.stop()}onAfterArtificialPageView(t){t&&this.$a.start()}};return i.$deps=[zu,Zt],i=L([Bt({imports:[te],providers:[zu,Kf]})],i),i})(),Qf=(()=>{let i=class{constructor(t,e){this.S=t,this.ot=e}onInit(){this.S.register(Xe,(t,e,s,n)=>{this.ot.set(t,e,s,n)})}onBeforeArtificialPageView(){this.ot.onBeforePageview()}onBeforeNaturalPageView(){this.ot.onBeforePageview()}onOptout(){this.ot.removeCustomVariablesSession()}onBeforeVisitorRenewal(){this.ot.removeCustomVariablesSession(),this.ot.removeCustomVariablesPage()}};return i.$deps=[Me,uo],i=L([Bt({imports:[te,zc]})],i),i})(),Sw=(()=>{class i{constructor(t,e,s,n){this.Se=t,this.Jn=e,this.Zn=s,this.Wt=n}init(){this.TA()}shouldMaskNonTextElements(){if(this.Se.anonymisationMethod!==Zi.replayRecordingMaskedUrlRegexRules)return!1;if(this.Se.isSMB)return this.shouldUseAnonymization();let t=this.Zn.getMatchingRules(this.Jn.getAnonymizedUrl());return csArray.prototype.some.call(t,e=>e.maskMedia)}shouldUseAnonymization(){if(this.Wt&&!this.Wt.isReplayUnanonymizedAllowedByConsent()){switch(this.Se.anonymisationMethod){case null:case Zi.replayRecordingUnmaskedUrlRegex:return!(this.Se.replayRecordingUnmaskedUrlRegex&&this.Se.replayRecordingUnmaskedUrlRegex.test(this.Jn.getAnonymizedUrl()));case Zi.replayRecordingUnmaskedUrlRegexRules:return!this.Zn.evaluateUrl(this.Jn.getAnonymizedUrl())}return!0}else{switch(this.Se.anonymisationMethod){case null:case Zi.replayRecordingMaskedUrlRegex:return!!(this.Se.replayRecordingMaskedUrlRegex&&this.Se.replayRecordingMaskedUrlRegex.test(this.Jn.getAnonymizedUrl()));case Zi.replayRecordingMaskedUrlRegexRules:return this.Zn.evaluateUrl(this.Jn.getAnonymizedUrl())}return!1}}TA(){this.Se.anonymisationMethod===Zi.replayRecordingMaskedUrlRegexRules&&this.Se.replayRecordingMaskedUrlRegexRules?this.Zn.setRegexRules(this.Se.replayRecordingMaskedUrlRegexRules):this.Se.anonymisationMethod===Zi.replayRecordingUnmaskedUrlRegexRules&&this.Se.replayRecordingUnmaskedUrlRegexRules&&this.Zn.setRegexRules(this.Se.replayRecordingUnmaskedUrlRegexRules)}}return i})(),sR=k(857).al,rR=k(857)._R,nR=k(857).Jx;var oR=k(857)._R;function or(i,r,t,e){var s=arguments.length,n=s<3?r:e===null?e=Object.getOwnPropertyDescriptor(r,t):e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,r,t,e);else for(var c=i.length-1;c>=0;c--)(o=i[c])&&(n=(s<3?o(n):s>3?o(r,t,n):o(r,t))||n);return s>3&&n&&Object.defineProperty(r,t,n),n}var ar=(()=>{class i{constructor(){this.Ot=[],this.isStarted=!1}get name(){var t;return((t=this.constructor)===null||t===void 0?void 0:t.name)||"Producer"}async produceEvent(t){var e;this.isStarted&&(t.timestamp=(e=t.timestamp)!==null&&e!==void 0?e:U.now(),t.timestamp==null&&(t.timestamp=U.now()),csArray.prototype.forEach.call(this.Ot,s=>s(t)))}onStop(){}start(){this.isStarted||(this.isStarted=!0,Li(`${this.name}.start`,()=>this.onStart())())}stop(){this.isStarted&&(this.isStarted=!1,Li(`${this.name}.stop`,()=>this.onStop())(),this.Ot=[])}stopForInactivity(){this.isStarted&&(this.isStarted=!1,Li(`${this.name}.stopForInactivity`,()=>this.onStop())())}subscribe(t){return csArray.prototype.push.call(this.Ot,t),()=>{let e=csArray.prototype.indexOf.call(this.Ot,t);csArray.prototype.splice.call(this.Ot,e,1)}}}return i})(),ww=(()=>{class i extends ar{constructor(t){super(),this.Q=null,this.Ga=null,this.j=null,this.to=null,this.Yp=["value","checked","src","data","alt"],this.za={state:B.MaskedElementState.Child},this.RA=e=>{for(let s of e){if(B.isMaskedElement(s.target)||B.isMaskedElementChild(s.target))for(let n=0;nh==="added"&&this.OA(u))),this.j.observe(),csSetTimeout(this.CA)}onStop(){var t,e,s;this.Q&&(this.Kp(_d),this.Q.disconnect()),(t=this.Ga)===null||t===void 0||t.disconnect(),(e=this.j)===null||e===void 0||e.disconnect(),(s=this.to)===null||s===void 0||s.disconnect()}IA(){return _w.ResizeObserver?new ResizeObserver(t=>{_w.requestAnimationFrame(()=>{csArray.prototype.forEach.call(t,e=>{this.resizeObserverCallback(e)})})}):null}PA(){return new ei(t=>{csArray.prototype.forEach.call(t,e=>{this.MA(e)?this.Xp(e):(this.DA(e),this.kA(e))})})}NA(t){return new ei(e=>{csArray.prototype.forEach.call(e,s=>this.xA(s,t))})}resizeObserverCallback(t){let e=t.target.getBoundingClientRect(),s=B.getMaskedElementDetails(t.target);if(s.state!==B.MaskedElementState.Parent||e.width===s.width&&e.height===s.height)return;let n={state:B.MaskedElementState.Parent,width:e.width,height:e.height};B.setMaskedElementProperty(t.target,n),this.produceEvent({type:"ResizeMaskedElement",target:ct(t.target),width:e.width,height:e.height})}kA(t){!this.to||!wt(t)||kg(t)||this.to.observe(t)}MA(t){let e=csNodeparentNode.apply(t);return e?B.isMaskedElement(e)||B.isMaskedElementChild(e):pi(t)?B.isMaskedElement(t.host)||B.isMaskedElementChild(t.host):!1}OA(t){(B.isMaskedElement(t.host)||B.isMaskedElementChild(t.host))&&B.setMaskedElementProperty(t,this.za)}Kp(t){ve(t,NodeFilter.SHOW_ELEMENT).visitAll(s=>{B.unsetMaskedElementProperty(s),t===_d&&G.counters.dom.add("size",1)})}DA(t){let e=t.getBoundingClientRect(),s={state:B.MaskedElementState.Parent,width:e.width,height:e.height};B.setMaskedElementProperty(t,s),this.LA(t),ve(t).visitAll(n=>n!==t&&B.setMaskedElementProperty(n,this.za))}Xp(t){B.setMaskedElementProperty(t,this.za),ve(t).visitAll(e=>e!==t&&B.setMaskedElementProperty(e,this.za))}LA(t){var e;let s=(e=Dt.getProperty(t,B.maskedAttributeProp))!==null&&e!==void 0?e:{attributes:[]};for(let n=0;ncsString.prototype.indexOf.call(l.attrName,c)>-1&&we.call(t,l.selector))&&csArray.prototype.push.call(n.attributes,c)}n.attributes.length!==0&&B.setMaskedAttributeProperty(t,n)}}return or([V()],i.prototype,"resizeObserverCallback",null),i})(),Qe=(()=>{let i;return function(r){r.ANONYMIZED_TEXT_STATUS_PROP="anonymizationStatus",r.WHITELISTED_STATUS="whitelisted";function t(n){return Dt.getProperty(n,r.ANONYMIZED_TEXT_STATUS_PROP)===r.WHITELISTED_STATUS}r.isWhitelistedElement=t;function e(n){Dt.setProperty(n,r.ANONYMIZED_TEXT_STATUS_PROP,r.WHITELISTED_STATUS)}r.whitelistElement=e;function s(n){Dt.setProperty(n,r.ANONYMIZED_TEXT_STATUS_PROP,void 0)}r.removeWhitelistElement=s}(i||(i={})),i})(),Aw=(()=>{class i{constructor(){this._u=0,this.U=!1,this.Qp="data-cs-capture",this.ys=t=>{for(let e of t){if(Qe.isWhitelistedElement(e.target))for(let s=0;spt(e,s=>this.Jp(s))));let t=this.vu?`[${this.Qp}], ${this.vu}`:`[${this.Qp}]`;this.Q.observe(t),this.j||(this.j=new yi(this.ys,(e,s)=>s==="added"&&this.UA(e))),this.j.observe()}stop(){this.U&&(this._u--,this._u===0&&(this.U=!1,this.HA()))}HA(){this.Q&&(this.Zp(_d),this.Q.disconnect()),this.j&&this.j.disconnect()}setWhitelistedElementsSelector(t,e=!0){if(re(t))this.vu=t;else if(e)throw new Rt("setCapturedElementsSelector")}getWhitelistedElementsSelector(){return this.vu}Jp(t){ve(t).visitAll(e=>{Qe.whitelistElement(e)})}UA(t){Qe.isWhitelistedElement(t.host)&&Qe.whitelistElement(t)}Zp(t){ve(t,NodeFilter.SHOW_ELEMENT).visitAll(s=>{Qe.removeWhitelistElement(s)})}}return i})(),bw=i=>i instanceof HTMLFormElement?"form":i.localName,qu=new Map,_a=!rd&&_d.implementation.createHTMLDocument("");function Tw(i){var r,t;return(t=(r=i.sheet)===null||r===void 0?void 0:r.href)!==null&&t!==void 0?t:i.getAttribute("href")}function Rw(i){if(!wo(i))return null;let r=Jf(i);if(r===null||r.length===0)return null;let t="";if(Tc(i.textContent))pt(r,e=>t+=e.cssText);else{let e=Cw(i);if(e===r.length||e>r.length)return null;let s=new csArray(r.length-e);for(let n=e,o=0;nt+=n.cssText)}return t}function Cw(i){if(!_a)return 0;let r=qu.get(i.textContent);if(r)return r;let t=i.cloneNode(!0);t.textContent=i.textContent,_a.head.appendChild(t);let e=Jf(t);return r=e?e.length:0,qu.set(i.textContent,r),_a.head.removeChild(t),r}function Jf(i){try{if(i.disabled)return null;let r=i.sheet;return r?r.cssRules||r.rules:null}catch(r){let t=r;if(t.name!=="SecurityError"&&t.name!=="InvalidAccessError")throw t;return null}}var ls={ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,ENTITY_REFERENCE_NODE:5,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,STYLESHEET:50};var Zf=(()=>{class i{constructor(t){this.csId=ct(t),this.props=as.getAll(t)}}return i})(),Iw=(()=>{class i extends Zf{constructor(t){super(t),this.nodeType=3,this.data=t.data}}return i})(),Pw=(()=>{class i extends Zf{constructor(t){var e,s,n;super(t),this.attributes=[],this.nodeType=ls.ELEMENT_NODE,this.localName=bw(t),this.namespaceURI=(e=t.namespaceURI)!==null&&e!==void 0?e:void 0,this.children=[];let o=Rw(t);if(o){this.children=new csArray(csNodechildNodes.apply(t).length);let c=_d.createTextNode(o),l=new Iw(c);csArray.prototype.push.call(this.children,l)}(wo(t)||cd(t))&&(this.disabledSheet=(n=(s=t.sheet)===null||s===void 0?void 0:s.disabled)!==null&&n!==void 0?n:!1)}static isElement(t){return t.nodeType===ls.ELEMENT_NODE}static getAttribute(t,e){return ln(t.attributes,s=>s.name===e)}static getAttributeValue(t,e){var s;return(s=this.getAttribute(t,e))===null||s===void 0?void 0:s.value}}return i})();var Nw=/[\u4E00-\u9FFF]|[\u3000-\u303F]|[\u3040-\u309F]|[\u30A0-\u30FF]|[\uFF00-\uFFEF]/g,Ow="\uFF41",Mw=/[^a\s]/g,Dw="a";function va(i){let r=csString.prototype.replace.call(i,Nw,Ow);return csString.prototype.replace.call(r,Mw,Dw)}function kw(i,r){let t=r==="number"?"0":"\u2022";return csString.prototype.replace.call(i,/\S/g,t)}var xw=(()=>{class i{constructor(t,e,s,n=null,o=!1){this.gi=t,this.eo=e,this.O=s,this.qa=n,this.BA=o,this.io=Oc(this.eo)}sanitize(t){return Dt.traverse(t,(e,s)=>{if(e.anonymized=this.gi,e.nodeType===ls.TEXT_NODE){let n=e,{anonymizedValue:o,withAnonymization:c}=this.getAnonymizedValue(n.data,s==null?void 0:s.localName,s?Dt.getProperties(s):void 0);e.anonymized=c,n.data=o;return}if(Pw.isElement(e))return this.GA(e);if(e.nodeType===ls.CDATA_SECTION_NODE){let n=e;n.data=this.gi?va(n.data):this.O.checkAndAnonymizePII(n.data,this.qa);return}}),t}setAnonymization(t){this.gi=t}getAnonymizedValue(t,e,s){if(e==="style")return{anonymizedValue:t,withAnonymization:!1};let n=(s==null?void 0:s[Qe.ANONYMIZED_TEXT_STATUS_PROP])===Qe.WHITELISTED_STATUS;return this.gi&&!n?{anonymizedValue:va(t),withAnonymization:!0}:{anonymizedValue:this.O.checkAndAnonymizePII(t,this.qa),withAnonymization:!1}}GA(t){let e=ln(t.attributes,n=>n.name==="type"),s=e==null?void 0:e.value;t.attributes=csArray.prototype.map.call(t.attributes,n=>(n.anonymized=this.gi,n.value=this.getAnonymizedAttributeValue(t.namespaceURI,t.localName,n.name,n.value,s),n))}getAnonymizedAttributeValue(t,e,s,n,o){if(t==="http://www.w3.org/2000/svg"||t==="svg"||this.zA(e,s,o))return n;if(ly(s))return uy(e,s,n)?this.O.anonymizePII(n):n;let c=this.BA&&s==="placeholder";return this.gi&&(hy(e,s,o)||c)?va(n):this.gi?"":this.O.checkAndAnonymizePII(n,null)}zA(t,e,s){return cy(t,e,s)||this.io.has(e)}}return i})();var Lw=(()=>{class i{constructor(){this.Pe=0}get length(){return this.Pe}get isEmpty(){return!this.mt}pushAll(t){for(let e=0;e{let i;return function(r){r.HJ_DUAL_COLLECT="one_app_tag_dc"}(i||(i={})),i})(),Sa=(()=>{class i{static set(t,e){i.eg[t]=e}static get(t){return i.eg[t]}}return i.eg={[qr.HJ_DUAL_COLLECT]:null},i})();function tp(){return _w.hjSiteSettings?(_w.hjSiteSettings.features==null?void 0:csArray.prototype.indexOf.call(_w.hjSiteSettings.features,qr.HJ_DUAL_COLLECT))>-1:!1}function Uw(i){return tp()?i?!Dc(i)&&!Gd(i):!0:!1}function Hw(i){return!tp()||!i?!1:Dc(i)||Gd(i)}var os=(()=>{let i;return function(r){r.Natural="Natural",r.Artificial="Artificial",r.Renewal="Renewal"}(i||(i={})),i})(),jw=(()=>{class i extends oe{constructor(t,e,s,n,o,c,l,u,h,p){super(),this.E=t,this.w=e,this.F=s,this.qs=n,this.A=o,this.mi=c,this.tb=l,this.te=u,this.Tt=h,this.bu=p,this.Be=null}init(){this.Tu()}onStart(t=os.Natural){switch(t){case os.Natural:this.Ru();break;case os.Artificial:this.Cu();break;case os.Renewal:this.Iu();break}}onStop(){}triggerArtificialPageView(t,e){this.isStarted?(this.w.emitArtificialPageViewEnd(),this.Ws(t,e)):(It(t)&&this.A.overridePath(t,e),this.F.emitTargetingRulesArtificialPageview(this.A.getUrl()),this.E.hasTargetingRules()&&this.A.cleanupOverrideLifespan())}Ru(){this.mi.setPageViewType(rs.Natural);let t=this.A.getAnonymizedUrl();this.w.emitBeforeNaturalPageView(t),this.Pu(),this.A.cleanupOverrideLifespan(),this.w.emitAfterNaturalPageView(rs.Natural),this.Be=t}Iu(){this.mi.setPageViewType(rs.Renewal);let t=this.A.getAnonymizedUrl();this.w.emitBeforeNaturalPageView(t),this.Pu(),this.w.emitAfterNaturalPageView(rs.Renewal),this.Be=t}Ws(t,e,s=!1){It(t)&&this.A.overridePath(t,e);let n=this.A.getAnonymizedUrl();this.w.emitBeforeArtificialPageView(this.Be,n),this.mi.setPageViewType(rs.Artificial),this.Pu(),this.A.cleanupOverrideLifespan(),this.w.emitAfterArtificialPageView(s),this.Be=n}Cu(){this.Ws(null,void 0,!0)}Tu(){_w.addEventListener("pageshow",t=>{this.isStarted&&t.persisted&&(this.w.emitArtificialPageViewEnd(),this.Ws())})}eb(){var t,e,s;let n=(t=this.bu)===null||t===void 0?void 0:t.getProperties(_d,"pageview",this.A.getPath()),o=Sf.mergeAndLimitProperties((e=this.te)===null||e===void 0?void 0:e.getProperties(),(s=this.Tt)===null||s===void 0?void 0:s.getProperties(),n!=null?n:void 0,void 0);if(Object.keys(o).length>0)return o}Pu(){let t=this.eb(),e=t?{properties:t}:void 0;this.qs.removeQueryParams(),this.qs.setQueryParams({...this.tb.getRequestParameters(),...e?{}:{ct:hn.UNCOMPRESSED}}),this.qs.send(e)}}return i})();var nn=(()=>{class i{constructor(...t){this.ig=t}addProvider(t){csArray.prototype.push.call(this.ig,t)}getRequestParameters(){return csArray.prototype.reduce.call(this.ig,(t,e)=>({...e.getRequestParameters(),...t}),{})}}return i})(),$w="data-cs-scroll-container",el=`[${$w}]`,ui,Fs=null;function Bw(i){try{if(It(csEventtarget.apply(i)))return!0}catch{}return!1}function Gw(){if(!di.isSupported())return null;for(let i of di.getAllShadowHosts(_d)){let r=csElementshadowRoot.apply(i);if(r){let t=_w.csquerySelector[r.nodeType].call(r,el);if(t)return t}}return null}function Wu(){Fs||(Fs=new ei(()=>{qt.resetCache(),qt.getScrollContainer()}),Fs.observe(el))}function Fu(){Fs&&(Fs.disconnect(),Fs=null)}var qt=(()=>{let i;return function(r){function t(u){if(It(u)&&Bw(u)){let h=e();if(h===null)return!1;if(csEventtarget.apply(u)===h)return!0;try{if(u.composedPath&&u.composedPath()[0]===h)return!0}catch{}}return!1}r.isEventOnScrollContainer=t;function e(){var u;if(ui!==void 0)if(ui&&!csNodeisConnected.apply(ui))ui=void 0,Wu();else return ui;return ui=(u=_w.csquerySelector[_d.nodeType].call(_d,el))!==null&&u!==void 0?u:Gw(),ui?Fu():Wu(),ui}r.getScrollContainer=e;function s(u){return t(u)?e():null}r.getScrollContainerFromEvent=s;function n(){ui=void 0}r.resetCache=n;function o(){Fu(),n()}r.stop=o;function c(u){return parseInt(_w.getComputedStyle(u).paddingTop||"0px",10)}r.getPaddingTop=c;function l(u,h=c(u)){return u.scrollHeight+u.getBoundingClientRect().top+h}r.getDocumentHeightFromContainer=l}(i||(i={})),i})(),zw=(()=>{class i{getRequestParameters(){return{dw:`${Ht.documentWidth()}`,dh:`${this.ib()}`,ww:`${Ht.windowWidth()}`,wh:`${Ht.windowHeight()}`,sw:`${Ht.screenWidth()}`,sh:`${Ht.screenHeight()}`}}ib(){let t=qt.getScrollContainer(),e=Ht.documentHeight();return t?Math.max(e,qt.getDocumentHeightFromContainer(t)):e}}return i})();function qw(){return _w.navigator.language||_w.navigator.userLanguage||_w.navigator.browserLanguage||_w.navigator.systemLanguage||"unknown"}function Ww(){return{la:qw()}}var Fw=99999,Yw=(()=>{class i{constructor(t){this.R=t,this.sb=this.rb()&&_w.CSCurrentScript}nb(){let t=_w.CSCurrentScript;if(!t)return null;let e=_w.performance.getEntriesByName(t.src,"resource")[0];return!e||this.ob(e)?null:Math.round(e.responseEnd-e.fetchStart)}ob(t){let e=t.transferSize;return e!==void 0?e===0||e===300||eKs(i)&&i!==null,Kw=(i,r,t,e)=>{i.register(Bf,(s,n)=>{if(!O(s)){r.triggerArtificialPageView();return}wa(n)?r.triggerArtificialPageView(s,n):r.triggerArtificialPageView(s)}),i.register(lc,(s,n)=>{if(!O(s))throw new Rt(lc[0]);wa(n)?t.overridePath(s,n):t.overridePath(s)}),i.register(uc,(s,n)=>{if(!O(s))throw new Rt(uc[0]);wa(n)?t.overrideQuery(s,n):t.overrideQuery(s)}),e&&(i.register(Lu,s=>{if(!O(s))throw new Rt(Lu[0]);e.addUrlMaskingPattern(s)}),i.register(nS,()=>e.enableRemoveQueryString()),i.register(oS,()=>e.disableRemoveQueryString()))},Qw=(()=>{class i{constructor(t,e,s,n,o,c,l,u,h,p,E,m,S,A,x,I,C,H,M){this.E=t,this.S=e,this.w=s,this.Ge=n,this.I=o,this.R=c,this.fi=l,this.Wt=u,this.ot=h,this.A=p,this.se=E,this.mi=m,this.F=S,this.jt=A,this.Ze=x,this.Ur=I,this.te=C,this.Tt=H,this.bu=M}init(){let t=this.jt.create(`${this.E.getTrackerUri()}/${Xw}`,"base64"),e=new nn(this.Ge,this.I,new zw,this.fi,this.A,this.Wt,_c,this.ot,this.mi,new Yw(this.R),this.se);this.so=new jw(this.E,this.w,this.F,t,this.A,this.mi,e,this.te,this.Tt,this.bu),this.so.init(),this.Ze&&e.addProvider(this.Ze),this.Ur&&e.addProvider(this.Ur);let s=this.E.isCsCrosswritingHeap();if(s||this.E.isCsSideloadingHeap()||this.E.isHeapSideloadsCs()){let n=this.E.getHeapEnvId()||void 0;e.addProvider({getRequestParameters(){let o={cw:s?"1":"2"};return n&&(o.happid=n),o}})}Kw(this.S,this.so,this.A,this.fi)}start(t){this.so.start(t)}stop(){this.so.stop()}onBeforeSessionRenewal(){this.so.stop()}}return i})();var pc=null,Jw=(()=>{let i=class{constructor(t,e){this.S=t,this.Ke=e}onInit(){this.S.register(["debugEvents"],t=>{typeof t=="boolean"&&this.Ke.updateDynamicFields("emitDebugEvents",t)})}};return i.$deps=[Me,ht],i=L([Bt({imports:[te]})],i),i})(),ep=(()=>{class i{constructor(){this.subscriptions={}}subscribe(t,e){this.subscriptions[t]=e,Object.keys(this.subscriptions).length===1&&this.onStartTracking()}unsubscribe(t){delete this.subscriptions[t],Object.keys(this.subscriptions).length===0&&this.onStopTracking()}}return i})(),Zw=(()=>{class i extends ep{constructor(t){super(),this.lb=t,this.fs=[{boundElement:_d,type:"touchstart",listener:e=>this.K(e)},{boundElement:_d,type:"touchmove",listener:e=>this.K(e)},{boundElement:_d,type:"touchend",listener:e=>this.K(e)}],this.ro=new fc,this.ro.onGesture((e,s)=>this.Ou(e,s))}Ou(t,e){for(let s in this.subscriptions){let n=this.subscriptions[s];n(t,e)}}onStartTracking(){this.canDetectGesture()&&csArray.prototype.forEach.call(this.fs,t=>$t(t))}onStopTracking(){this.canDetectGesture()&&csArray.prototype.forEach.call(this.fs,t=>xt(t))}canDetectGesture(){return typeof devicePixelRatio!="undefined"}K(t){this.lb.tryToExecute("process gesture event",()=>{if(this.ro.isValidTouchEvent(t))switch(t.type){case"touchstart":this.ro.processActionDown(t);break;case"touchmove":this.ro.processActionMove();break;case"touchend":this.ro.processActionUp(t);break}})()}static isSwipe(t){return t.type===Ut.FLICK||t.type===Ut.DRAG}}return i})(),ki=(()=>{let i;return function(r){r.EDITABLE_NODE_PROP="editableNode";function t(n){var o;return"nodeType"in n?Dt.getProperty(n,r.EDITABLE_NODE_PROP)===!0:((o=n.metadata)===null||o===void 0?void 0:o[r.EDITABLE_NODE_PROP])===!0}r.isEditableNode=t;function e(n){Dt.setProperty(n,r.EDITABLE_NODE_PROP,!0)}r.markEditableNode=e;function s(n){Dt.setProperty(n,r.EDITABLE_NODE_PROP,void 0)}r.unmarkEditableNode=s}(i||(i={})),i})(),tA=(()=>{class i{constructor(){this.Q=null,this.j=null,this.U=!1,this.ys=t=>{for(let e of t)if(ki.isEditableNode(e.target))for(let s=0;spt(t,e=>{this.ng(e)})),this.Q.observe("[contenteditable]"),this.j=new yi(this.ys,(t,e)=>e==="added"&&this.hb(t)),this.j.observe())}stop(){var t,e;this.U&&(this.U=!1,(t=this.Q)===null||t===void 0||t.disconnect(),this.Q=null,(e=this.j)===null||e===void 0||e.disconnect(),this.j=null)}ng(t){ve(t).visitAll(e=>{ki.markEditableNode(e)})}hb(t){ki.isEditableNode(t.host)&&ki.markEditableNode(t)}}return i})(),eA=(()=>{let i;return function(r){r.ENCRYPTED_NODE_PROP="encrypted";function t(n){return Dt.getProperty(n,r.ENCRYPTED_NODE_PROP)===!0}r.shouldEncrypt=t;function e(n){Dt.setProperty(n,r.ENCRYPTED_NODE_PROP,!0)}r.markEncryptedNode=e;function s(n){Dt.setProperty(n,r.ENCRYPTED_NODE_PROP,void 0)}r.unmarkEncryptedNode=s}(i||(i={})),i})();var uR=k(857)._R;var gs;(function(i){i.ContentSquare="CONTENTSQUARE",i.LoadedByClicktale="LOADED_BY_CLICKTALE",i.LoadClicktalePtc="LOAD_CLICKTALE_PTC",i.DualCollectionReview="DUAL_COLLECTION_REVIEW",i.DualCollection="DUAL_COLLECTION",i.ContentSquareTagClickTaleEndpoints="CONTENTSQUARE_TAG_CLICKTALE_ENDPOINTS"})(gs||(gs={}));var hR=k(857).al;var Yu=(()=>{let i;return function(r){function t(){return _w.ClickTaleIsRecording&&_w.ClickTaleIsRecording()}r.isRecording=t;function e(){_w.ClickTaleStop&&_w.ClickTaleStop()}r.stopRecording=e;function s(c){_w.ClickTaleLogicalWithUploadPage&&_w.ClickTaleLogicalWithUploadPage(c)}r.triggerLogicalPageView=s;function n(c){_w.ClickTaleEvent&&_w.ClickTaleEvent(c)}r.sendPageEvent=n;function o(c){_w.ClickTaleEventTrigger&&_w.ClickTaleEventTrigger(c)}r.sendEventTriggerRecording=o}(i||(i={})),i})();function gc(i){return i.tagDeploymentMode===gs.DualCollectionReview||i.tagDeploymentMode===gs.DualCollection}function iA(i){return gc(i)||i.tagDeploymentMode===gs.LoadClicktalePtc}var sA=(()=>{class i{constructor(t){this.yt=t}on(t,e){return s=>{this.yt.hasValidEventTarget(s)&&this.xb(s,t)&&e(s)}}xb(t,e){let s=Qt(t);return we.call(s,e)}isMatchesSelectorSupported(){return!!we}}return i})(),rA=(()=>{class i extends oe{constructor(){super(),this.fg=0}onStart(){$.isPerfLoggingActive()&&(this.oo=_w.csSetInterval(()=>this.pg(),i.Lb))}onStop(){$.isPerfLoggingActive()&&(this.pg(),csClearInterval(this.oo))}pg(){this.fg>=i.Vb||G.counters.methodPerformance.flush()&&this.fg++}}return i.Lb=5e3,i.Vb=5,i})(),nA=(()=>{class i{constructor(){}init(){this.Ya=new rA}onStartTracking(){this.Ya.start()}onOptout(){this.Ya.stop()}onArtificialPageViewEnd(t){t&&this.Ya.stop()}onAfterArtificialPageView(t){t&&this.Ya.start()}}return i})();var dR=k(857)._R;var Ne=(()=>{let i;return function(r){r.Visible="visible",r.Hidden="hidden",r.Blur="blur",r.PagehideVisible="pagehideVisible",r.PagehideHidden="pagehideHidden",r.ExitPageByNavigate="exitPageByNavigate"}(i||(i={})),i})(),ip=(()=>{class i{constructor(){this.U=!1,this.vs=t=>{try{switch(t.type){case"visibilitychange":return _d.visibilityState==="hidden"?this.Di(Ne.Hidden):this.Di(Ne.Visible);case"pagehide":return _d.visibilityState==="hidden"?this.Di(Ne.PagehideHidden):this.Di(Ne.PagehideVisible);case"blur":return this.Di(Ne.Blur);case"navigate":return this.uT(t)?this.Di(Ne.ExitPageByNavigate):void 0;default:return}}catch{}}}start(){this.U||(this.U=!0,this.Hu(),this.hT(),this.dT(),Ul()&&this.fT())}stop(){this.U&&(this.U=!1,this.ju(),this.pT(),this.gT(),Ul()&&this.mT())}onEvent(t){this.Di=t}fT(){_w.navigation.addEventListener("navigate",this.vs)}mT(){_w.navigation.removeEventListener("navigate",this.vs)}Hu(){_d.addEventListener("visibilitychange",this.vs)}ju(){_d.removeEventListener("visibilitychange",this.vs)}hT(){_w.addEventListener("pagehide",this.vs)}pT(){_w.removeEventListener("pagehide",this.vs)}dT(){_w.addEventListener("blur",this.vs)}gT(){_w.removeEventListener("blur",this.vs)}uT(t){return t instanceof NavigateEvent?!t.hashChange&&!t.downloadRequest&&!t.formData:!1}}return i})(),sp=(()=>{class i{constructor(t){this.Tg=[],this.Rg=[],this.Qe={},this.Ls=t}setQueryParams(t){csArray.prototype.forEach.call(Object.keys(t),e=>{this.Qe[e]=t[e]})}removeQueryParams(t){t?csArray.prototype.forEach.call(t,e=>{delete this.Qe[e]}):this.Qe={}}onBeaconSuccess(t){csArray.prototype.push.call(this.Tg,t)}onBeaconFailure(t){csArray.prototype.push.call(this.Rg,t)}send(t){let e=Jr.toQuery({...this.Qe,ct:hn.UNCOMPRESSED}),s=this.yT(e,t);return s?csArray.prototype.forEach.call(this.Tg,n=>n()):csArray.prototype.forEach.call(this.Rg,n=>n(this.Qe)),s}yT(t,e){try{if(typeof csNavigatorsendBeacon!="function")return!1;let s=csNavigatorsendBeacon(`${this.Ls}?${t}`,e||"");if(s)return s}catch{}return typeof navigator.sendBeacon!="function"?!1:navigator.sendBeacon(`${this.Ls}?${t}`,e||"")}}return i})(),mc=["trackEvent"];var rp=(()=>{class i{emit(t,e,s,n=_d){let c=`${s!==void 0?`${s}`:`${i.ET}`}${t}`,l=i.createEvent(c,{detail:e});l!==null&&n.dispatchEvent(l)}static createEvent(t,e={}){if(typeof CustomEvent=="function")return new CustomEvent(t,e);let s=this._T();if(s===null)return null;let{bubbles:n=!1,cancelable:o=!1,detail:c}=e;return s.initCustomEvent(t,n,o,c),s}static _T(){try{return _d.createEvent("CustomEvent")}catch{return null}}}return i.ET="cs.tracking.",i})(),oA=1024,aA=512,Aa=1024,ba="||",cA=(()=>{let i;return function(r){function t(c,l){return O(c)&&csString.prototype.indexOf.call(csString.prototype.toLowerCase.call(c),hi.CHAMELEON)!==-1?hi.CHAMELEON:l}r.handleCustomEventCommandMisuse=t;function e(c,l,u){let h=s(u);return{type:J.CUSTOM_EVENT,ts:0,customEventName:Ct.truncate(c,oA,Ct.ELLIPSIS),sourceLibrary:y_(l)?l:hi.WEB,...Qr(h)?{}:{properties:h}}}r.buildCustomEvent=e;function s(c){let l={};for(let u in c){if(u.length>aA)continue;let h=c[u];if(jt(h)||Kr(h))l[u]=csString(h);else if(o(h))l[u]=Ct.truncate(h,Aa,Ct.ELLIPSIS);else if(pm(h)){let p=n(h);p!==""&&(l[u]=p)}}return l}r.sanitizeCustomEventProperties=s;function n(c){let l="";for(let u=0;u{class i{static buildFromCustomEvent(t,e){return this.Cg(null,t,e)}static buildFromAnalysisEvent(t,e,s){return this.Cg(t,e,s)}static Cg(t,e,s){return csArray.prototype.reduce.call(s,(n,o)=>o.enhanceAnalysisEvent(t,n),e)}}return i})(),lA=(()=>{class i extends oe{constructor(t,e,s,n,o,c,l,u,h,p,E,m,S,A,x,I,C){super(),this.E=t,this.Ss=e,this.Ae=s,this.jr=n,this.$u=o,this.si=c,this.ke=l,this.Bu=u,this.V=h,this.de=p,this.Gu=E,this.ni=m,this.Y=S,this.Ft=A,this.Qa=x,this.Li=I,this.Vi=C,this.$r=new rp,this.Ja=!1,this.Ks=[]}init(){var t,e,s;this.Ss.onEvent(n=>this.ne(n)),this.Ae.onEvent(n=>this.ne(n)),this.jr.onEvent(()=>{let n=this.jr.getRequestParameters();this.Y.setQueryParams(n),this.ke.setQueryParams(n)}),this.Gu.onEvent(n=>this.Ui(n)),this.zu(),(t=this.Qa)===null||t===void 0||t.onEvent(n=>this.ne(n)),(e=this.Li)===null||e===void 0||e.onEvent(n=>this.ne(n)),(s=this.Vi)===null||s===void 0||s.onEvent(n=>this.ne(n)),this.vT()}vT(){this.ke.onBeaconSuccess(()=>{this.si.clearEvents()}),this.ke.onBeaconFailure(t=>{this.ST(t)})}initStates(){let t=this.Bu.getRequestParameters(),e=this.$u.getRequestParameters(),s=this.jr.getRequestParameters();this.Y.setQueryParams(t),this.Y.setQueryParams(e),this.Y.setQueryParams(s),this.ke.setQueryParams(t),this.ke.setQueryParams(e),this.ke.setQueryParams(s),this.qu()}clearStates(t){var e,s;this.Ss.flushPendingDebouncedListeners(),(e=this.Li)===null||e===void 0||e.flushPendingKeyboardNavigationEvent(),(s=this.Vi)===null||s===void 0||s.flushPendingTextHighlightEvent(),t?(this.Wu(),this.sendLastMessageBeacon()):this.sendEvents(),this.jr.reset(),this.Y.removeQueryParams()}onStart(t){var e,s,n;this.ni.start(),this.Ss.start(),this.jr.start(),this.Ae.start(),(e=this.Qa)===null||e===void 0||e.start(),(s=this.Vi)===null||s===void 0||s.start(),t||this.Gu.start(),(n=this.Li)===null||n===void 0||n.start(),csArray.prototype.forEach.call(this.Ks,o=>{this.Ui(o)}),this.Ks=[]}collectInitialEvents(){var t;(t=this.Qa)===null||t===void 0||t.collectInitialEvents()}onIframeAnalysisBrowserEvent(t){this.Ui(t)}onIframeAnalysisUserEvent(t){this.ne(t)}onExternalEvent(t){this.K(t)}Ui(t){this.isStarted&&this.V.isCurrentPageviewValid()&&this.K(t)}ne(t){this.isStarted&&(this.V.refreshSession(),this.V.isSessionValid()&&this.K(t))}K(t){this.si.addEvent(this.wT(t)),this.si.isFull()&&this.sendEvents(),this.E.emitDebugEvents&&this.$r.emit("analysisEvent",{...t,typeName:J[t.type]})}wT(t){return t.ts=this.Qs(),t}Wu(){this.ke.setQueryParams({hlm:"true"}),this.Ja=!0}sendLastMessageBeacon(){this.ke.removeQueryParams(["i"]),this.ke.setQueryParams(this.Bu.getRequestParameters()),this.ke.setQueryParams(this.$u.getRequestParameters()),this.ke.send(this.si.stringifyEvents()),this.ke.removeQueryParams(["hlm"]),this.Ja=!1}sendEvents(){this.si.isEmpty()||(this.ke.removeQueryParams(["i"]),this.Y.setQueryParams(this.Bu.getRequestParameters()),this.Y.setQueryParams(this.$u.getRequestParameters()),this.Y.send(this.si.getEvents()),this.si.clearEvents())}onStop(){var t,e,s;this.ni.stop(),this.Ss.stop(),this.jr.stop(),this.Ae.stop(),this.Gu.stop(),(t=this.Qa)===null||t===void 0||t.stop(),(e=this.Li)===null||e===void 0||e.stop(),(s=this.Vi)===null||s===void 0||s.stop(),qt.stop(),this.si.empty()}qu(){this.yi=U.now()}Qs(){return U.now()-this.yi}zu(){this.ni.onEvent(t=>{var e,s;t!==Ne.Visible&&((e=this.Li)===null||e===void 0||e.flushPendingKeyboardNavigationEvent(),(s=this.Vi)===null||s===void 0||s.flushPendingTextHighlightEvent(),t===Ne.PagehideVisible?this.Wu():t===Ne.PagehideHidden?(this.Wu(),this.sendLastMessageBeacon()):(!this.si.isEmpty()||this.Ja)&&this.sendLastMessageBeacon())})}ST(t){try{(!this.si.isEmpty()||this.Ja)&&this.de.save({requestParameters:t,events:this.si.getEvents()})}catch{}}pushCustomEvent(t,e,s){if(!(O(t)&&!Tc(t))||s!==void 0&&!at(s))throw new Rt(mc[0]);let n=cA.buildCustomEvent(t,e,s),o=le.buildFromCustomEvent(n,this.Ft);this.isStarted?this.Ui(o):csArray.prototype.push.call(this.Ks,o)}}return i})(),uA=(()=>{class i extends nr{constructor(){super(...arguments),this.supportedEventTypes=[J.CHANGE],this.AT=["text","email","number","search","tel","url","password"]}baseEnhanceAnalysisEvent(t,e){let s=Qt(t);return us(s)&&csArray.prototype.indexOf.call(this.AT,s.type)>=0&&(e.isBlank=s.value===""),e}}return i})();var np=(()=>{class i extends nr{constructor(t){super(),this.yt=t,this.supportedEventTypes=[J.MOUSEDOWN,J.MOUSEUP,J.CLICK,J.MOUSEOVER,J.TAP,J.DRAG,J.FLICK,J.SUBMIT,J.CHANGE]}baseEnhanceAnalysisEvent(t,e){return e.tgt||(e.tgt=this.yt.getEventTargetPath(t)),e}}return i})(),Xu=65535,hA=(()=>{let i;return function(r){function t(e){let s=Qt(e);if(!s||!wt(s)||!$e(s.getBoundingClientRect)||!It(e.pageX)||!It(e.pageY))return{xRel:-1,yRel:-1,valid:!1};let n=s.getBoundingClientRect(),o=e.pageX-n.left-Ht.windowOffsetX(),c=e.pageY-n.top-Ht.windowOffsetY();s!==_d.documentElement&&(o+=s.scrollLeft,c+=s.scrollTop);let l=Math.max(s.scrollWidth,n.width),u=Math.max(s.scrollHeight,n.height),h=Math.round(o/l*Xu),p=Math.round(c/u*Xu);return{xRel:h,yRel:p,valid:!0}}r.getRelativePosition=t}(i||(i={})),i})(),dA=(()=>{class i extends nr{constructor(t,e){super(),this.Ke=t,this.yt=e,this.supportedEventTypes=[J.MOUSEMOVE,J.CLICK],this.Fu=""}baseEnhanceAnalysisEvent(t,e){let{valid:s,xRel:n,yRel:o}=hA.getRelativePosition(t);if(s){let c=this.yt.getEventTargetPath(t);c!==Vi.INVALID_ELEMENT&&(e.xRel=n,e.yRel=o,e.type===J.MOUSEMOVE&&(c!==this.Fu||this.Ke.iframesTracking?(this.Fu=c,e.tgtHM=c,this.Ke.isChild||(e.tgtHMH=Tf(e.tgtHM))):e.tgtHM=""))}else e.type===J.MOUSEMOVE&&(this.Fu="");return e}}return i})(),op=(()=>{class i extends nr{constructor(t,e){super(),this.yt=t,this.qt=e,this.supportedEventTypes=[J.CLICK,J.SUBMIT,J.CHANGE,J.TAP]}baseEnhanceAnalysisEvent(t,e){let s=this.qt.getSensitiveStatus().useAnonymization,{path:n,hierarchy:o}=this.yt.getEventTargetPathAndHierarchy(t,s);return e.tgt=n,e.hrchy=o,e}}return i})(),Ku=100,ap=(()=>{class i extends nr{constructor(t,e,s){super(),this.E=t,this.qt=e,this.O=s,this.supportedEventTypes=[J.TAP,J.CLICK,J.SUBMIT]}bT(t){let e="",s=_d.createTreeWalker(t,NodeFilter.SHOW_TEXT),n=s.nextNode();for(;n;){if(e+=n.textContent,Yr(n.parentElement)||to(n.parentElement)||this.qt.getElementSensitiveStatus(n.parentElement)!==ce.CAPTURED)return!0;if(csString.prototype.trim.call(e).length>=Ku)break;n=s.nextNode()}return!1}TT(t){let e=Js(t,"button,a");return e||(this.E.collectTargetText===Ba.ButtonAndLinkOnly?null:t)}baseEnhanceAnalysisEvent(t,e){if(gi(csEventtarget.apply(t))){let s=this.TT(csEventtarget.apply(t));if(s&&O(s.textContent)&&!this.bT(s)&&!this.O.hasPII(s.textContent,this.E.anonymizeDigits)){let n=Ct.truncate(csString.prototype.trim.call(s.textContent),Ku);n.length>0&&(e.text=n)}}return e}}return i})();function fA(i,r,t,e,s){let n=[];return csArray.prototype.push.call(n,new dA(i,r)),i.isCollectTargetTextEnabled()&&csArray.prototype.push.call(n,new ap(i,t,new Be)),i.collectHierarchy&&csArray.prototype.push.call(n,new op(r,t)),csArray.prototype.push.call(n,new uA,new np(r)),n}function pA(i,r,t,e,s){let n=[];return i.isCollectTargetTextEnabled()&&csArray.prototype.push.call(n,new ap(i,t,new Be)),i.collectHierarchy&&csArray.prototype.push.call(n,new op(r,t)),csArray.prototype.push.call(n,new np(r)),n}var gA=(()=>{class i extends oe{constructor(t,e){super(),this.de=t,this.Y=e,this.Ig=()=>{_d.visibilityState==="visible"&&this.Pg()}}onStart(){this.Pg(),this.Hu()}onStop(){this.ju()}getRecoveryStorage(){return this.de}Pg(){let t=this.de.recover();if(t!==null){let{requestParameters:e,events:s}=t;this.Y.send(s,e)}}Hu(){_d.addEventListener("visibilitychange",this.Ig)}ju(){_d.removeEventListener("visibilitychange",this.Ig)}}return i})(),Qu=k(857)._R,mA=(()=>{class i{constructor(t){this.Br=t}save(t){localStorage.setItem(this.Br,Qu.stringify(t))}clear(){localStorage.removeItem(this.Br)}recover(){let t=localStorage.getItem(this.Br);if(t===null)return null;let e=null;try{e=Qu.parse(t)}catch{$.error(`Invalid item in localStorage. (key:${this.Br}; value:${t})`)}finally{this.clear()}return e}}return i})(),yA=k(857)._R,EA=50,_A=(()=>{class i{constructor(t=[]){this.Yt=t}stringifyEvents(){return yA.stringify(this.Yt)}addEvent(t){csArray.prototype.push.call(this.Yt,t)}eventsCount(){return this.Yt.length}clearEvents(){this.Yt=[]}empty(){this.clearEvents()}isFull(){return this.eventsCount()>=EA}isEmpty(){return this.Yt.length===0}getEvents(){return this.Yt}}return i})(),Ys=(()=>{let i;return function(r){r[r.COPY=0]="COPY",r[r.CUT=1]="CUT",r[r.PASTE=2]="PASTE"}(i||(i={})),i})(),st=(()=>{let i;return function(r){r[r.SPACE=0]="SPACE",r[r.ENTER=1]="ENTER",r[r.BACKSPACE=2]="BACKSPACE",r[r.DELETE=3]="DELETE",r[r.ARROWUP=4]="ARROWUP",r[r.ARROWDOWN=5]="ARROWDOWN",r[r.ARROWLEFT=6]="ARROWLEFT",r[r.ARROWRIGHT=7]="ARROWRIGHT",r[r.CAPSLOCK=8]="CAPSLOCK",r[r.SHIFT=9]="SHIFT",r[r.TAB=10]="TAB",r[r.ALPHANUMERICAL=11]="ALPHANUMERICAL",r[r.ESCAPE=12]="ESCAPE",r[r.END=13]="END",r[r.ALT=14]="ALT",r[r.CTRL=15]="CTRL",r[r.META=16]="META"}(i||(i={})),i})(),vA=(()=>{class i{constructor(t,e,s,n=["submit"]){this.Ft=t,this.yt=e,this.Xt=s,this.RT=n,this.Ng="select, select *, input, textarea",this.CT="select, select *, input, textarea",this.Og="a, a *, button, button *, select, select *, input, textarea",this.lo="input, select, textarea",this.IT="form",this.Za=150,this.PT=400,this.Mg=!1,this.Gr=Eo((o,c,l)=>this.scrollListener(o,c,l),this.Za),this.Dg=Eo(o=>this.resizeListener(o),this.Za),this.NT=Io(o=>this.mouseMoveListener(o),this.PT),this.OT=[{boundElement:_w,type:"resize",listener:()=>this.Dg()},{boundElement:_d,type:"scroll",listener:o=>this.Gr(o,qt.getScrollContainerFromEvent(o))},{boundElement:_w,type:"mousemove",listener:o=>{this.NT(Z_(o))}},{boundElement:_d,type:"mousedown",listener:o=>this.mouseDownListener(o)},{boundElement:_d,type:"mouseup",listener:o=>this.mouseUpListener(o)},{boundElement:_d,type:"click",listener:o=>this.clickListener(o)}],this.MT={type:"scroll",listener:o=>{let c=qt.getScrollContainerFromEvent(o);c&&this.Gr(o,c)}},this.kg=[{type:"change",listener:this.Xt.on(this.CT,o=>this.changeListener(o))},{type:"submit",listener:this.Xt.on(this.IT,o=>this.submitListener(o))}],this.DT=[{boundElement:_d,type:"mouseover",listener:this.Xt.on(this.Og,o=>this.mouseOverListener(o))},{boundElement:_d,type:"mouseout",listener:this.Xt.on(this.Og,o=>this.mouseOutListener(o))},{boundElement:_d,type:"focusin",listener:this.Xt.on(this.Ng,o=>this.focusInListener(o))},{boundElement:_d,type:"focusout",listener:this.Xt.on(this.Ng,o=>this.focusOutListener(o))},{boundElement:_d,type:"keyup",listener:this.Xt.on(this.lo,o=>this.keyUpListener(o))},{boundElement:_d,type:"keydown",listener:this.Xt.on(this.lo,o=>this.keyDownListener(o))},{boundElement:_d,type:"copy",listener:this.Xt.on(this.lo,o=>this.copyListener(o))},{boundElement:_d,type:"cut",listener:this.Xt.on(this.lo,o=>this.cutListener(o))},{boundElement:_d,type:"paste",listener:this.Xt.on(this.lo,o=>this.pasteListener(o))},...csArray.prototype.map.call(this.kg,o=>({...o,boundElement:_d}))],this.G={},this.zr=new Map,this.Yu=(o,c)=>{switch(c){case"initial":case"added":this.Js(o);break;case"removed":this.Zs(o);break}},this.ws=new fn(this.Yu),this.Xu()}Js(t){if(Xr(t)){let e=this.xg();csArray.prototype.forEach.call(e,s=>$t(s))}else{if(this.zr.has(t))return;let e=[...csArray.prototype.map.call(this.kT(),s=>({...s,boundElement:t})),{...this.MT,boundElement:t}];csArray.prototype.forEach.call(e,s=>$t(s)),this.zr.set(t,e)}}Zs(t){if(Xr(t)){let e=this.xg();csArray.prototype.forEach.call(e,s=>xt(s))}else{let e=this.zr.get(t);e&&(csArray.prototype.forEach.call(e,s=>xt(s)),this.zr.delete(t))}}onEvent(t){this.B=t}start(){this.ws.observe(),this.Js(_d),this.resizeListener()}stop(){this.Zs(_d),this.zr.forEach(t=>{csArray.prototype.forEach.call(t,e=>xt(e))}),this.zr.clear(),this.ws.disconnect()}flushPendingDebouncedListeners(){this.Gr.flushPending(),this.Dg.flushPending()}Lg(t){return csArray.prototype.some.call(this.RT,e=>e===t)}kT(){return this.Xt.isMatchesSelectorSupported()?csArray.prototype.filter.call(this.kg,t=>!this.Lg(t.type)):($.warn("Element.matches is not implemented yet"),[])}xg(){let t=[];return csArray.prototype.push.call(t,...this.OT),this.Xt.isMatchesSelectorSupported()?csArray.prototype.push.call(t,...this.DT):$.warn("Element.matches is not implemented yet"),csArray.prototype.filter.call(t,e=>!this.Lg(e.type))}resizeListener(t){let e=qt.getScrollContainer(),s=gi(e);s&&(this.Mg=!0);let n={type:J.RESIZE,ts:0,x:s?e.clientWidth:Ht.windowWidth(),y:s?e.clientHeight:Ht.windowHeight()};t!==void 0&&(n.d=t),this.B(n)}scrollListener(t,e,s){!this.Mg&&s&&this.resizeListener();let n={type:J.SCROLL,ts:0,x:s?s.scrollLeft:Ht.windowOffsetX(),y:s?s.scrollTop:Ht.windowOffsetY(),d:t},o=le.buildFromAnalysisEvent(e,n,this.Ft);this.B(o)}mouseMoveListener(t){let e={type:J.MOUSEMOVE,ts:0,x:t.pageX,y:t.pageY},s=le.buildFromAnalysisEvent(t,e,this.Ft);this.B(s)}mouseDownListener(t){let e={type:J.MOUSEDOWN,ts:0,x:t.pageX,y:t.pageY,tgt:""},s=le.buildFromAnalysisEvent(t,e,this.Ft);this.be(s)}mouseUpListener(t){let e={type:J.MOUSEUP,ts:0,x:t.pageX,y:t.pageY,tgt:""},s=le.buildFromAnalysisEvent(t,e,this.Ft);this.be(s)}clickListener(t){let e={type:J.CLICK,ts:0,x:t.pageX,y:t.pageY,tgt:""},s=le.buildFromAnalysisEvent(t,e,this.Ft);this.be(s)}mouseOverListener(t){let e={type:J.MOUSEOVER,ts:0,x:t.pageX,y:t.pageY,tgt:""},s=le.buildFromAnalysisEvent(t,e,this.Ft);this.be(s)}mouseOutListener(t){let e={type:J.MOUSEOUT,ts:0,x:t.pageX,y:t.pageY,tgt:this.yt.getEventTargetPath(t)},s=le.buildFromAnalysisEvent(t,e,this.Ft);this.be(s)}focusInListener(t){let e={type:J.FOCUSIN,ts:0,tgt:this.yt.getEventTargetPath(t)},s=le.buildFromAnalysisEvent(t,e,this.Ft);this.be(s)}focusOutListener(t){let e={type:J.FOCUSOUT,ts:0,tgt:this.yt.getEventTargetPath(t)},s=le.buildFromAnalysisEvent(t,e,this.Ft);this.be(s)}changeListener(t){let e={type:J.CHANGE,ts:0,tgt:""},s=le.buildFromAnalysisEvent(t,e,this.Ft);this.be(s)}submitListener(t){let e={type:J.SUBMIT,ts:0,tgt:""},s=le.buildFromAnalysisEvent(t,e,this.Ft);this.be(s)}copyListener(t){let e={type:J.COMMAND,ts:0,tgt:this.yt.getEventTargetPath(t),key:Ys.COPY};this.be(e)}cutListener(t){let e={type:J.COMMAND,ts:0,tgt:this.yt.getEventTargetPath(t),key:Ys.CUT};this.be(e)}pasteListener(t){let e={type:J.COMMAND,ts:0,tgt:this.yt.getEventTargetPath(t),key:Ys.PASTE};this.be(e)}keyUpListener(t){let e={type:J.KEYUP,ts:0,tgt:this.yt.getEventTargetPath(t),key:this.Vg(t)};this.be(e)}keyDownListener(t){let e={type:J.KEYDOWN,ts:0,tgt:this.yt.getEventTargetPath(t),key:this.Vg(t)};this.be(e)}Vg(t){let e=this.G[t.key];return e===void 0?st.ALPHANUMERICAL:e}be(t){af(t)&&t.tgt!==Vi.INVALID_ELEMENT&&this.B(t)}Xu(){this.G[" "]=st.SPACE,this.G.Spacebar=st.SPACE,this.G.Enter=st.ENTER,this.G.Backspace=st.BACKSPACE,this.G.Delete=st.DELETE,this.G.ArrowUp=st.ARROWUP,this.G.ArrowDown=st.ARROWDOWN,this.G.ArrowLeft=st.ARROWLEFT,this.G.ArrowRight=st.ARROWRIGHT,this.G.Up=st.ARROWUP,this.G.Down=st.ARROWDOWN,this.G.Left=st.ARROWLEFT,this.G.Right=st.ARROWRIGHT,this.G.CapsLock=st.CAPSLOCK,this.G.Shift=st.SHIFT,this.G.Tab=st.TAB}}return L([V("Event handler type: resize")],i.prototype,"resizeListener",null),L([V("Event handler type: scroll")],i.prototype,"scrollListener",null),L([V("Event handler type: mouseMove"),Tt()],i.prototype,"mouseMoveListener",null),L([V("Event handler type: mouseDown"),Tt()],i.prototype,"mouseDownListener",null),L([V("Event handler type: mouseUp"),Tt()],i.prototype,"mouseUpListener",null),L([V("Event handler type: click"),Tt()],i.prototype,"clickListener",null),L([V("Event handler type: mouseOver"),Tt()],i.prototype,"mouseOverListener",null),L([V("Event handler type: mouseOut"),Tt()],i.prototype,"mouseOutListener",null),L([V("Event handler type: focusIn")],i.prototype,"focusInListener",null),L([V("Event handler type: focusOut")],i.prototype,"focusOutListener",null),L([V("Event handler type: change")],i.prototype,"changeListener",null),L([V("Event handler type: submit"),Tt()],i.prototype,"submitListener",null),L([V("Event handler type: copy")],i.prototype,"copyListener",null),L([V("Event handler type: cut")],i.prototype,"cutListener",null),L([V("Event handler type: paste")],i.prototype,"pasteListener",null),L([V("Event handler type: keyup")],i.prototype,"keyUpListener",null),L([V("Event handler type: keydown")],i.prototype,"keyDownListener",null),i})(),SA=(()=>{class i{constructor(t,e,s){this.Ft=t,this.Ae=e,this.Nt=s}processGesture(t,e){switch(t.type){case Ut.TAP:this.xT(e);break;case Ut.FLICK:this.LT(t,e);break;case Ut.DRAG:this.VT(t,e);break;default:break}}xT(t){let e={type:J.TAP,ts:0,x:0,y:0,tgt:""},s=le.buildFromAnalysisEvent(t,e,this.Ft);s.tgt!==Vi.INVALID_ELEMENT&&this.B(s)}VT(t,e){var s,n;let o={type:J.DRAG,ts:0,fd:t.direction,tgt:""};!((s=this.Nt)===null||s===void 0)&&s.collectGestureDistance&&(o.distance=t.distance),!((n=this.Nt)===null||n===void 0)&&n.collectGestureVelocity&&(o.velocity=t.velocity);let c=le.buildFromAnalysisEvent(e,o,this.Ft);c.tgt!==Vi.INVALID_ELEMENT&&this.B(c)}LT(t,e){var s,n;let o={type:J.FLICK,ts:0,fd:t.direction,tgt:""};!((s=this.Nt)===null||s===void 0)&&s.collectGestureDistance&&(o.distance=t.distance),!((n=this.Nt)===null||n===void 0)&&n.collectGestureVelocity&&(o.velocity=t.velocity);let c=le.buildFromAnalysisEvent(e,o,this.Ft);c.tgt!==Vi.INVALID_ELEMENT&&this.B(c)}onEvent(t){this.B=t}start(){this.Ae.subscribe(i.Ug,(t,e)=>this.processGesture(t,e))}stop(){this.Ae.unsubscribe(i.Ug)}}return i.Ug="AnalysisGestureTracker",L([Tt()],i.prototype,"processGesture",null),i})();var wA=(()=>{class i{constructor(){this.jg=100,this.ho=0,this.qr=0,this.$g={boundElement:_d,type:"scroll",listener:e=>this.maxScrollRateListener(e)},this.Wr=new Map,this.Yu=(e,s)=>{switch(s){case"initial":case"added":{if(this.Wr.has(e))return;let n={boundElement:e,type:"scroll",listener:o=>{qt.isEventOnScrollContainer(o)&&this.maxScrollRateListener(o,!0)}};this.Wr.set(e,n),$t(n);break}case"removed":{let n=this.Wr.get(e);n&&(xt(n),this.Wr.delete(e));break}}},this.ws=new fn(this.Yu);let t=this.Ju(qt.getScrollContainer());this.ho=t.maxScrollRate,this.qr=t.maxDocumentHeight}onEvent(t){this.B=t}start(){$t(this.$g),this.ws.observe()}stop(){xt(this.$g),this.Wr.forEach(t=>{xt(t)}),this.Wr.clear(),this.ws.disconnect()}reset(){qt.resetCache();let t=qt.getScrollContainer(),{maxScrollRate:e,maxDocumentHeight:s}=this.Ju(t);this.qr=s,this.ho=e,this.B()}Ju(t){let e=0,s=0;if(t===null)s=Ht.documentHeight(),e=this.$T(s);else{let n=qt.getPaddingTop(t);s=qt.getDocumentHeightFromContainer(t,n),e=this.BT(t,n)}return{maxScrollRate:e,maxDocumentHeight:s}}maxScrollRateListener(t,e){let s=null;(e!=null?e:qt.isEventOnScrollContainer(t))&&(s=qt.getScrollContainer());let{maxScrollRate:n,maxDocumentHeight:o}=this.Ju(s);(n>this.ho||o>this.qr)&&(this.ho=n,o>this.qr&&(this.qr=o),this.B())}$T(t){let e=Math.round(this.GT()/t*100);return Math.min(e,this.jg)}GT(){let t=Ht.windowHeight();return Ht.windowOffsetY()+t}BT(t,e){let s=t.scrollTop+t.clientHeight+t.getBoundingClientRect().top+e,n=qt.getDocumentHeightFromContainer(t,e),o=Math.round(s/n*100);return Math.min(o,this.jg)}getRequestParameters(){return{sr:`${this.ho}`,mdh:`${this.qr}`}}}return L([V("MaxScrollRate handler")],i.prototype,"maxScrollRateListener",null),i})(),AA=(()=>{class i{constructor(){this.zT=t=>this.processMetric(t),this.U=!1,this.Un=new of(["FCP","CLS","LCP","TTFB","INP"],this.zT)}onEvent(t){this.B=t}start(){this.U||(this.U=!0,this.Un.observe())}stop(){this.U=!1,this.Un.disconnect()}processMetric(t){if(!this.U)return;let e={type:J.PERFORMANCE,name:t.name,val:t.value,ts:0};this.B(e)}}return L([V("Performance metric handler")],i.prototype,"processMetric",null),i})(),bA=(()=>{class i{constructor(t){this.qT=Math.pow(2,32)-2,this.er=t.performance}getRequestParameters(){let t=this.WT();return t?{str:t.startRender,di:t.domInteractive,dc:t.domComplete,fl:t.fullyLoaded}:{}}WT(){let t=this.FT();if(t&&(t==null?void 0:t.loadEventEnd)>0){let e=this.Bg({startRender:t.responseStart-t.requestStart,domInteractive:t.domInteractive-t.requestStart,domComplete:t.domComplete-t.requestStart,fullyLoaded:t.loadEventEnd-t.requestStart});if(e)return e}if(this.er&&this.er.timing&&this.er.timing.loadEventEnd>0){let e=this.er.timing;return this.Bg({startRender:e.domLoading-e.requestStart,domInteractive:e.domInteractive-e.requestStart,domComplete:e.domComplete-e.requestStart,fullyLoaded:e.loadEventEnd-e.requestStart})}return null}FT(){if(!this.YT())return null;let t=this.er.getEntriesByType("navigation");return t&&t.length>0?t[0]:null}Bg(t){let e={};for(let s in t){let n=t[s];if(n<0)e[s]="0";else{if(n>this.qT||!Number.isFinite(n))return null;e[s]=Math.round(n).toString()}}return csArray.prototype.every.call(Object.values(e),s=>s==="0")?null:e}YT(){return typeof this.er=="object"&&typeof this.er.getEntriesByType=="function"}}return i})();var fR=k(857).sp;var TA="csAnalysisEventsPersisted",Ju="v2/events",RA=(()=>{class i{constructor(t,e,s,n,o,c,l,u,h,p,E,m,S,A,x){this.E=t,this.Mt=e,this.I=s,this.Rt=n,this.Xt=o,this.S=c,this.V=l,this.Ae=u,this.X=h,this.jt=p,this.F=E,this.qt=m,this.Z=S,this.te=A,this.Tt=x}init(){let t=new _A,e=this.jt.create(`${this.E.getTrackerUri()}/${Ju}`,"base64");this.Fr=this.s0(e),this.Te=this.r0(t,this.Fr.getRecoveryStorage(),e),this.Te.init(),this.F.addListener(this.Te),this.X.addListener(this.Te),this.S.register(mc,s=>{if(!at(s))throw new Rt(mc[0]);this.Te.pushCustomEvent(s.name,s.source,s.properties)})}onStartTracking(t){this.Fr.start(),this.Te.start(t)}onAfterNaturalPageView(){this.Te.initStates()}onArtificialPageViewEnd(t){this.Te.clearStates(!0),t&&(this.Te.stop(),this.Fr.stop())}onAfterArtificialPageView(t){this.Te.initStates(),t&&(this.Te.start(),this.Fr.start()),this.Te.collectInitialEvents()}onBeforeSessionRenewal(){this.Te.clearStates(),this.Te.stop(),this.Fr.stop()}onOptout(){this.Te.stop(),this.Fr.stop()}r0(t,e,s){let n=new bA(_w),o=new wA,c=fA(this.E,this.Rt,this.qt,this.te,this.Tt),l=[];this.E.collectSubmit||csArray.prototype.push.call(l,"submit");let u=new vA(c,this.Rt,this.Xt,l),h=pA(this.E,this.Rt,this.qt,this.te,this.Tt),p=new SA(h,this.Ae),E=new AA,m=new ip,S,A,x,I=new sp(`${this.E.getTrackerUri()}/${Ju}`),C=new nn(this.Mt,this.I);return new lA(this.E,u,p,o,n,t,I,C,this.V,e,E,m,s,c,S,A,x)}s0(t){return new gA(new mA(TA),t)}}return i})(),CA=["startDataCollection","data-collection:start"],IA=["data-collection:stop"],PA=(()=>{class i{constructor(t,e){this.oi=t,this.S=e}init(){this.S.register(CA,()=>{this.oi.startDataCollection()}),this.S.register(IA,()=>{this.oi.stopDataCollection()})}}return i})(),Ta={fromSessionRenewal:!1,isRenewedVisitor:!1},NA=(()=>{class i{constructor(t,e,s,n,o,c){this.E=t,this.w=e,this.ms=s,this.ut=n,this.ir=o,this.V=c,this.tm=!1,this.em=0,this.th=!0,this.im=!1,this.Bi=!1,this.startDataCollection=({fromSessionRenewal:l,onAfterDataCollectionStartedCallback:u}=Ta)=>{l&&this.Bi||!this.tm?this.n0(l,u):this.o0()}}isDataCollectionStarted(){return this.Bi}tryStartAutomaticDataCollection({fromSessionRenewal:t,isRenewedVisitor:e,onAfterDataCollectionStartedCallback:s}=Ta){this.a0(t,e)&&this.startDataCollection({fromSessionRenewal:t,onAfterDataCollectionStartedCallback:s})}disableStartDataCollection(){this.th=!1}allowStartDataCollection({fromSessionRenewal:t}=Ta){this.th=!0,this.im&&this.startDataCollection({fromSessionRenewal:t})}stopDataCollection(){this.Bi&&(this.Bi=!1,this.w.emitArtificialPageViewEnd(!0),this.ir.stop())}o0(){this.Bi||(this.Bi=!0,this.V.isSessionValid()?(this.V.refreshSession(),this.ir.start(os.Artificial)):this.V.renewSession(!1))}a0(t,e){return e&&!this.Bi?!1:t?!0:this.E.startMode===oo.Manual?!1:!gc(this.E)&&!this.E.isHeapSideloadsStartDataCollection()&&!this.E.isCsSideloadingHeap()}n0(t,e){if(this.ms.isActive()||(this.im=!0,this.c0()&&(this.em++,this.em<2))||!this.th||this.Bi&&!t)return;this.tm=!0,this.Bi=!0,this.ut.init();let s=t?os.Renewal:os.Natural;this.ir.start(s);let n=()=>{this.w.emitStartTracking(t),typeof e=="function"&&e()};kt.onDocumentLoaded(n)}c0(){return gc(this.E)&&this.E.isCsSideloadingHeap()}}return i})();var pR=k(857)._R;var gR=k(857)._R;var mR=k(857)._R,yR=k(857).al;var ER=k(857)._R;var OA=20,MA="Custom Error:",DA=(()=>{class i extends oe{constructor(t,e,s,n,o,c,l){super(),this.Wi=t,this.hh=e,this.Mt=s,this.Re=n,this.bs=o,this.A=c,this.V=l,this.ac=[],this.or=0,this.nr=[]}initStates(){this.yi=U.now(),this.hh.removeQueryParams(),this.hh.setQueryParams(this.Mt.getRequestParameters()),this.ac=[],this.or=0}onStart(){this.Wi.subscribe(i.Kt,t=>this.K(t)),this.uh()}onStop(){this.Wi.unsubscribe(i.Kt)}onIframeJavascriptError(t){this.K(t)}trackCustomError(t){let e={errorType:"jsError",message:`${MA} ${t}`,lineno:1,colno:1,filename:""};this.yo(e)}yo(t){if(this.isStarted){let e=this.K(t);e&&this.bs.emitCustomJavaScriptErrorEvent(e)}else csArray.prototype.push.call(this.nr,t)}uh(){this.isStarted&&(csArray.prototype.forEach.call(this.nr,t=>this.yo(t)),this.nr=[])}K(t){if(this.isStarted&&this.or{class i{constructor(t,e,s,n,o,c,l,u,h,p){this.Wi=t,this.Re=e,this.E=s,this.Mt=n,this.X=o,this.S=c,this.bs=l,this.A=u,this.jt=h,this.V=p}init(){let t=this.jt.create(`${this.E.getTrackerUri()}/${kA}`);this.Fi=new DA(this.Wi,t,this.Mt,this.Re,this.bs,this.A,this.V),this.X.addListener(this.Fi),this.lt()}lt(){this.E.jsCustomErrorsEnabled&&!this.E.customErrors.enabled&&this.S.register(zf,t=>{this.Fi.trackCustomError(t)})}onStartTracking(){this.Fi.start()}onAfterNaturalPageView(){this.Fi.initStates()}onArtificialPageViewEnd(t){t&&this.Fi.stop()}onAfterArtificialPageView(t){this.Fi.initStates(),t&&this.Fi.start()}onBeforeSessionRenewal(){this.Fi.stop()}onOptout(){this.Fi.stop()}}return i})(),cp=(()=>{class i{constructor(t){this.C=t,this.ps=!1,this.Me={boundElement:mt,type:"error",listener:e=>this.k0(e)}}observe(){$t(this.Me,this.ps)}disconnect(){xt(this.Me,this.ps)}k0(t){this.C(t)}}return i})(),LA=(()=>{class i extends ep{constructor(){super(),this.W=new cp(t=>this.errorListener(t))}onStartTracking(){this.W.observe()}onStopTracking(){this.W.disconnect()}errorListener(t){let e=this.x0(t);for(let s in this.subscriptions){let n=this.subscriptions[s];n(e)}}L0(t){return t=t!=null?t:"[NO ERROR MESSAGE]",Ct.truncate(t,i.fh,Ct.ELLIPSIS)}V0(t){return!t||Pe(t)?"":Ct.truncate(t,i.ph,Ct.ELLIPSIS)}x0(t){return{errorType:"jsError",message:this.L0(t.message),filename:this.V0(t.filename),lineno:t.lineno,colno:t.colno}}}return i.fh=1024,i.ph=150,L([V("Event handler type: error")],i.prototype,"errorListener",null),i})(),VA="CS_ANONYMIZED_VALUE",UA=(()=>{class i{constructor(t,e){this.O=t,this.A=e}anonymize(t){return O(t.message)&&(t.message=this.U0(t.message),t.message=this.O.anonymizePII(t.message)),O(t.filename)&&(t.filename=this.A.computeOverriddenUrl(t.filename)),t}U0(t){return csString.prototype.replace.call(t,/(value\s*=\s*".*"|value\s*=\s*'.*')/,`value='${VA}'`)}}return i})(),HA=512,jA=255,Ra=(()=>{class i{constructor(t,e){this.key=csString.prototype.slice.call(t,0,HA),this.value=O(e)?csString.prototype.slice.call(e,0,jA):e}static isKeyValid(t){return O(t)}static isValueValid(t){return O(t)||hs(t)}}return i})(),$A=(()=>{class i extends oe{constructor(t,e){super(),this.oe=t,this.O=e,this.gh=[]}onStart(){csArray.prototype.forEach.call(this.gh,t=>this.lm(t.key,t.value)),this.gh=[]}onStop(){}lm(t,e){let s=this.O.anonymizePII(t),n=hs(e)?e:this.O.anonymizePII(e);this.oe.add(new Ra(s,n))}trackDynamicVariable(t,e){if(Ra.isKeyValid(t)&&Ra.isValueValid(e)){if(!this.isStarted){csArray.prototype.push.call(this.gh,{key:t,value:e});return}this.lm(t,e)}else throw new Rt(Xc[0])}}return i})(),BA=k(857)._R,GA=(()=>{class i{constructor(t){this.Ut=t,this.oe=[]}add(t){csArray.prototype.push.call(this.oe,t),this.setBatchReadyCall()}clear(){this.oe=[]}onBatchReady(t){this.H0=t}getRequestParameters(){let t={};for(let e of this.oe)t[e.key]=e.value;return{dv:this.Ut.compressSync(BA.stringify(t)),ct:this.Ut.algorithm}}setBatchReadyCall(){this.H0()}}return L([Po({wait:0,mode:"trailing"}),V("dynamicVariablesBatchReady")],i.prototype,"setBatchReadyCall",null),i})(),zA="dvar",qA=(()=>{class i{constructor(t,e,s,n,o,c){this.S=t,this.R=e,this.E=s,this.Ge=n,this.Ut=o,this.O=c,this.Bt=new Zr(this.E.getTrackerUri(),zA),this.oe=new GA(this.Ut),this.Oi=new $A(this.oe,this.O)}init(){this.Bt.setRequestParametersProviders(this.Ge,this.oe),this.R.setDynamicVariablesService(this.Oi),this.oe.onBatchReady(()=>this.Bt.send()),this.Bt.after(()=>this.oe.clear()),this.S.register(Xc,({key:t,value:e}={})=>{this.Oi.trackDynamicVariable(t,e)})}onStartTracking(){this.Oi.start()}onArtificialPageViewEnd(t){t&&this.Oi.stop()}onAfterArtificialPageView(t){t&&this.Oi.start()}}return i})(),lp=100,WA=100,FA=(()=>{class i extends oe{constructor(t,e){super(),this.j0=t,this.V=e,this.xe=null,this.mh=[]}onStart(){csArray.prototype.forEach.call(this.mh,t=>{this.xe=t,this.um()}),this.mh=[]}onStop(){}addToCart(t){let e={};O(t.sku)&&(e.sku=csString.prototype.slice.call(t.sku,0,WA)),O(t.merchant)&&(e.merchant=csString.prototype.slice.call(t.merchant,0,lp)),(e.sku||e.merchant)&&(this.xe=e,this.um())}getCartItem(){return this.xe}um(){if(!this.isStarted&&this.xe!==null){csArray.prototype.push.call(this.mh,this.xe),this.clear();return}this.V.refreshSession(),this.V.isSessionValid()&&this.j0.send()}clear(){this.xe=null}getRequestParameters(){if(!this.xe)return{};let t={};return O(this.xe.sku)&&this.xe.sku.length>0&&(t.sku=this.xe.sku),O(this.xe.merchant)&&this.xe.merchant.length>0&&(t.me=this.xe.merchant),t}}return i})(),Zu=(()=>{class i{constructor(t,e){this.id=t,this.revenue=e}static from(t){let e=new i(t.id,parseFloat(t.revenue));return isNaN(parseFloat(t.tax))||(e.tax=parseFloat(t.tax)),isNaN(parseFloat(t.shipping))||(e.shipping=parseFloat(t.shipping)),O(t.currency)&&t.currency.length<=10&&(e.currency=t.currency),e}hasValidRevenue(){return!isNaN(this.revenue)&&this.revenue>=0}static isValid(t){return It(t)&&jt(t.revenue)&&O(t.currency)&&t.currency.length<=10&&(!It(t.id)||O(t.id))}}return i})(),YA=(()=>{class i{constructor(t,e,s,n){this.id=t,this.name=e,this.price=s,this.quantity=n}static from(t){if(!i.Au(t))return null;let e=new i(t.id,t.name,parseFloat(t.price),parseInt(t.quantity,10));return ft(t.sku)&&(e.sku=t.sku),ft(t.category)&&(e.category=t.category),ft(t.merchant)&&t.merchant.length>0&&(e.merchant=t.merchant.slice(0,lp)),e}static Au(t){return It(t)&&O(t.id)&&O(t.name)&&jt(parseFloat(t.price))&&hs(parseInt(t.quantity,10))&&(!ft(t.sku)||O(t.sku))&&(!ft(t.category)||O(t.category))&&(!ft(t.merchant)||O(t.merchant))}}return i})(),XA=k(857)._R,KA=(()=>{class i extends oe{constructor(t,e,s){super(),this.O=t,this.hm=e,this.V=s,this.yh=[],this.clear()}onStart(){csArray.prototype.forEach.call(this.yh,t=>{this.Ce=t.transaction,this.Eo=t.transactionItems,this.sendTransaction()}),this.yh=[]}onStop(){}addTransaction(t){let e=this.O.anonymizeFields(t,["id"]);this.Ce=Zu.from(e)}getTransaction(){return this.Ce}sendTransaction(){if(!this.isStarted){csArray.prototype.push.call(this.yh,{transaction:this.Ce,transactionItems:[...this.Eo]}),this.clear();return}if(!(this.hm===null||this.V===null)&&(this.V.refreshSession(),!!this.V.isSessionValid())){if(!this.Ce.hasValidRevenue()){$.warn("Transaction Service: unable to send transaction with invalid parameters");return}this.hm.send(),G.counters.transactions.count("sent")}}addItem(t){if($e(t))throw new Rt(ko[1]);let e=this.O.anonymizeFields(t,["id","name","sku","category"]),s=YA.from(e);s!==null&&csArray.prototype.push.call(this.Eo,s)}getItems(){return this.Eo}clear(){this.Ce=Zu.from({revenue:NaN}),this.Eo=[]}getRequestParameters(){let t={id:this.Ce.id?`${this.Ce.id}`:"",revenue:`${this.Ce.revenue}`};return ft(this.Ce.tax)&&(t.tax=`${this.Ce.tax}`),ft(this.Ce.shipping)&&(t.shipping=`${this.Ce.shipping}`),ft(this.Ce.currency)&&(t.cu=`${this.Ce.currency}`),t.items=XA.stringify(this.Eo),t}}return i})(),QA=(()=>{class i{constructor(t,e,s,n,o,c,l){this.E=t,this.Mt=e,this.I=s,this.S=n,this.O=o,this.V=c,this.A=l}init(){let t=new Zr(this.E.getTrackerUri(),"transaction"),e=new Zr(this.E.getTrackerUri(),"addtocart");this.qe=new KA(this.O,t,this.V),this.Xr=new FA(e,this.V);let s=new nn(this.Mt,this.I,this.A,this.qe);t.setRequestParametersProviders(s),t.after(()=>{this.qe.clear()});let n=new nn(this.Mt,this.I,this.A,this.Xr);e.setRequestParametersProviders(n),e.after(()=>{this.Xr.clear()}),this.S.register(Kc,o=>{this.qe.addTransaction(o)}),this.S.register(ko,o=>this.qe.addItem(o)),this.S.register(Qc,()=>this.qe.sendTransaction()),this.S.register(gS,o=>{this.Xr.addToCart(o)})}onStartTracking(){this.qe.start(),this.Xr.start()}onArtificialPageViewEnd(t){t&&(this.qe.stop(),this.Xr.stop())}onAfterArtificialPageView(t){t&&(this.qe.start(),this.Xr.start())}}return i})();var _R=k(857).Jx;var JA=2,il=(()=>{class i{constructor(t){this.iR=t,this.cc=0}addString(t){this.cc+=t.length*JA}addArrayBuffer(t){this.cc+=t.byteLength}isThresholdReached(){return this.cc>this.iR}reset(){this.cc=0}}return i})(),vR=k(857)._R;var SR=k(857)._R;var wR=k(857)._R;var ZA=(()=>{class i{constructor(t){this.Dt=t,this.ye=[]}handleCommand(t){if($e(t)&&(this.bo(t),this.Dt.isNaturalPageViewSent())){let e=this.Dt.getTrackingContext();e!==null&&this.Qt(t,e)}}bo(t){csArray.prototype.push.call(this.ye,t)}executeRegisteredCallbacks(){let t=this.Dt.getTrackingContext();t!==null&&csArray.prototype.map.call(this.ye,e=>this.Qt(e,t))}Qt(t,e){csSetTimeout(()=>{t(e)})}}return i})(),tb=(()=>{class i{constructor(t){this.Dt=t,this.ar=[]}handleCommand(t){if(this.Dt.isNaturalPageViewSent())return this.vR(t);this.To(t)}vR(t){let e=this.Dt.getSessionKey();return this.Am(t)&&e!==null&&this.Qt(t.callback,e),e}To(t){this.Am(t)&&csArray.prototype.push.call(this.ar,t.callback)}flushPendingCallbacks(){let t=this.Dt.getSessionKey();t!==null&&csArray.prototype.forEach.call(this.ar,e=>{this.Qt(e,t)}),this.ar=[]}Am(t){return t&&typeof t.callback=="function"}Qt(t,e){csSetTimeout(()=>{t(e)})}}return i})(),eb=(()=>{class i{constructor(){this.ye=new Set}handleCommand(t,e){return!$e(t)||this.ye.has(t)?null:(this.ye.add(t),e&&(this.Oe=e,this.bm(t,e)),()=>this.ye.delete(t))}executeCallbacks(t){this.SR(t)&&(this.Oe=t,this.ye.forEach(e=>this.bm(e,t)))}bm(t,e){csSetTimeout(()=>{try{t(e)}catch{}})}SR(t){let{isRecording:e,recordingStartTimestamp:s,etrState:n,etrStatus:o,collectState:c}=t;return this.Oe&&(this.Oe.isRecording!==e||this.Oe.recordingStartTimestamp!==s||this.Oe.etrState!==n||this.Oe.etrStatus!==o||this.Oe.collectState!==c)}}return i})();function ib(i,r){let{isRecording:t,pageNumber:e,projectId:s,siteId:n,uxaDomain:o,csLiteDomain:c}=i,l=/^(.+)\.(\d+)$/.exec(i.sessionKey),u;if(t&&l){let[,h,p]=l;n?u=`${c}/sites/${n}/player?uu=${h}&sn=${p}&pn=${e}`:u=`${o}/quick-playback/index.html?pid=${s}&uu=${h}&sn=${p}&pvid=${e}&recordingType=cs`,r.withTimestamp&&(u+=`&t=${U.now()-r.recordingStartTimestamp}`)}return{replayLink:u,isRecording:t}}var sb=(()=>{class i{constructor(t){this.Dt=t}handleCommand(t,e){Ks(t)&&$e(e)&&this.Qt(t,e)}Qt(t,e){csSetTimeout(()=>{let s=this.Dt.getTrackingContext();if(s){let n=ib(s,t);e(n)}})}}return i})(),xr=(()=>{let i;return function(r){r[r.NOT_NEEDED=1]="NOT_NEEDED",r[r.NOT_EXPRESSED=2]="NOT_EXPRESSED",r[r.WITHDRAWN=3]="WITHDRAWN",r[r.GRANTED=4]="GRANTED"}(i||(i={})),i})(),rb=(()=>{class i{constructor(t,e,s,n,o,c){this.I=t,this.R=e,this.E=s,this.mi=n,this.A=o,this.ot=c,this.Tm=!1}isNaturalPageViewSent(){return this.Tm}setNaturalPageViewSent(t){this.Tm=t}getTrackingContext(t=!1){let e=this.R.getSession();if(!e)return null;let s=this.getSessionKey();if(!s)return null;let n=this.E.projectId,o=this.E.uxaDomain,c=e.pageNumber,l=this.mi.getPageViewType(),u=this.R.isReplayRecorded(),h=this.wR(e),p,E,m;return(t||this.E.experiments)&&(p=this.A.getUrl(),E=this.ot.getAllValidCustomVars(),m=this.ot.getAllValidPageCustomVars()),{projectId:n,sessionKey:s,pageNumber:c,pageViewType:l,isRecording:u,uxaDomain:o,recordingConsentState:h,...this.E.smbConfig,pageViewUrl:p,customVariables:E,...m!==void 0?{pageCustomVariables:m}:{}}}getSessionKey(){let t=this.I.getVisitor();return t?`${t.id}.${t.visitsCount}`:null}wR(t){if(!Gs.isReplayConsentNeeded(this.E))return xr.NOT_NEEDED;switch(t.replayConsent){case ue.NOT_EXPRESSED:return xr.NOT_EXPRESSED;case ue.WITHDRAWN:return xr.WITHDRAWN;case ue.GRANTED:return xr.GRANTED;default:return xr.NOT_NEEDED}}}return i})(),nb=(()=>{class i{constructor(t,e,s,n,o,c,l,u,h,p){this.I=t,this.R=e,this.S=s,this.X=n,this.J=o,this.E=c,this.mi=l,this.Es=u,this.A=h,this.ot=p,this.Rm=null}init(){this.Dt=new rb(this.I,this.R,this.E,this.mi,this.A,this.ot),this.vh=new ZA(this.Dt),this.Cm=new tb(this.Dt),this.Ro=new eb,this.AR=new sb(this.Dt),this.S.register(MS,t=>this.Cm.handleCommand(t)),this.S.register(Wf,t=>this.vh.handleCommand(t)),this.S.register(DS,t=>t(this.Dt.getTrackingContext(!0))),this.S.register(kS,t=>this.Ro.handleCommand(t,this.Es.getRecordingContext())),this.S.register(xS,(t,e)=>{this.en&&this.AR.handleCommand({...t,recordingStartTimestamp:this.Es.getRecordingContext().recordingStartTimestamp},e)})}onAfterNaturalPageView(){var t;this.Dt.setNaturalPageViewSent(!0),this.Cm.flushPendingCallbacks(),this.vh.executeRegisteredCallbacks(),(t=this.Rm)===null||t===void 0||t.sendAfterPageViewCallbackToChildren()}onAfterArtificialPageView(){var t;this.vh.executeRegisteredCallbacks(),(t=this.Rm)===null||t===void 0||t.sendAfterPageViewCallbackToChildren()}onCollectStateChange(){this.executeRecordingContextChangeCallbacks()}onRecordingContextChange(){this.executeRecordingContextChangeCallbacks()}executeRecordingContextChangeCallbacks(){this.Ro.executeCallbacks(this.Es.getRecordingContext())}setRecordingService(t){this.en=t}}return L([Po({wait:0,mode:"trailing"})],i.prototype,"executeRecordingContextChangeCallbacks",null),i})(),ob=(()=>{class i{constructor(t){this.S=t}init(){this.Im(i.bR,Jd),this.Im(i.TR,Qd)}Im(t,e){this.S.register([t],(s,n)=>{!O(s)||!(O(n)||Je(n))||$.error(n,`${e}${s}`)})}}return i.TR="logSnippetError",i.bR="logImplementationSnippetError",i})(),ab="@ETP@",th="@user-identifier@",cb=(()=>{class i extends oe{constructor(t,e,s,n){super(),this.E=t,this.RR=e,this.Ut=s,this.F=n,this.Sh=[],this.cr=[]}onStart(){csArray.prototype.forEach.call(this.Sh,t=>this.Pm(t)),this.Sh=[],csArray.prototype.forEach.call(this.cr,t=>this.Nm(t)),this.cr=[]}onStop(){}Pm(t){this.CR(t)?Ws.isSupported()&&this.IR(t):this.PR(t)}trackPageEvent(t){if(!i.Om(t))throw new Rt(Jc[0]);this.isStarted?this.Pm(t):csArray.prototype.push.call(this.Sh,t)}CR(t){return $a(t,th)}async IR(t){if(!this.E.customHashIdEnabled)return;let e=csString.prototype.slice.call(t,th.length);if(e.length>Ws.MAX_DIGEST_INPUT_SIZE){$.warn("UserIdentifier event: invalid user identifier");return}let s=await Ws.digest(e);s?(this.rn={eventName:s,isETR:!1,isCustomHashId:!0},this.gc()):$.warn("Page event: unable to compute customHashId"),this.E.encryptionEnabled&&this.F.emitUserIdentifierEvent(e)}PR(t){this.F.emitPageEvent(t),this.rn={eventName:t,isETR:!1,isCustomHashId:!1},this.gc(),this.E.tagDeploymentMode===gs.LoadClicktalePtc&&Yu.sendPageEvent(t)}Nm(t){this.E.malkaEtrEnabled?this.NR(t):this.MR(t)}trackEventTriggerRecording(t){if(!i.Om(t))throw new Rt(yn[0]);this.isStarted?this.Nm(t):csArray.prototype.push.call(this.cr,t)}NR(t){$a(t,ab)?this.F.emitEventTriggerRecording(t,Hi.ETR_PAGE):this.F.emitEventTriggerRecording(t,Hi.ETR_SESSION),this.rn={eventName:t,isETR:!0,isCustomHashId:!1},this.gc()}MR(t){iA(this.E)&&(this.F.emitEventTriggerRecording(t,Hi.ETR_LEGACY),this.rn={eventName:t,isETR:!0,isCustomHashId:!1},this.gc(),this.E.tagDeploymentMode===gs.LoadClicktalePtc&&Yu.sendEventTriggerRecording(t))}getRequestParameters(){return{value:this.Ut.compressSync(this.rn.eventName),ct:this.Ut.algorithm,isETR:`${this.rn.isETR}`,isCustomHashId:`${this.rn.isCustomHashId}`}}gc(){this.RR.send()}static Om(t){return O(t)&&!!csString.prototype.trim.call(t)}}return i})(),lb=(()=>{class i{constructor(t,e,s,n,o){this.E=t,this.S=e,this.Ut=s,this.Ge=n,this.F=o}init(){let t=new Zr(this.E.getTrackerUri(),"pageEvent");this.nn=new cb(this.E,t,this.Ut,this.F),t.setRequestParametersProviders(this.nn,this.Ge),this.S.register(Jc,e=>{this.nn.trackPageEvent(e)}),this.S.register(yn,e=>{this.nn.trackEventTriggerRecording(e)})}onStartTracking(){this.nn.start()}onArtificialPageViewEnd(t){t&&this.nn.stop()}onAfterArtificialPageView(t){t&&this.nn.start()}}return i})();var ub=(()=>{class i{constructor(){this.Ah=rs.Natural}setPageViewType(t){this.Ah=t}getPageViewType(){return this.Ah}getRequestParameters(){return{pvt:this.Ah}}}return i})();var ot=(()=>{let i;return function(r){r[r.ELEMENT_NODE=1]="ELEMENT_NODE",r[r.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",r[r.TEXT_NODE=3]="TEXT_NODE",r[r.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",r[r.COMMENT_NODE=8]="COMMENT_NODE",r[r.DOCUMENT_NODE=9]="DOCUMENT_NODE",r[r.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",r[r.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",r[r.CSS_STYLESHEET_NODE=50]="CSS_STYLESHEET_NODE"}(i||(i={})),i})(),Hn=(()=>{let i;return function(r){r[r.Closed=0]="Closed",r[r.Open=1]="Open",r[r.OpenModal=2]="OpenModal"}(i||(i={})),i})(),eh=new Bi,Es=(()=>{class i{constructor(){this.Ot=[]}start(){}stop(){this.Ot.length=0,this.Ot=[]}pushEvent(t){i.pendingEvents++;let e=this.Ot;this.isListening(t)?eh.task(()=>{let n=Li("Processor:processEvent",o=>this.processEvent(o))(t);n!=null&&csArray.prototype.forEach.call(e,o=>o(n)),i.pendingEvents--}):eh.task(()=>{csArray.prototype.forEach.call(e,s=>s(t)),i.pendingEvents--})}subscribe(t){return csArray.prototype.push.call(this.Ot,t),()=>{this.Ot=csArray.prototype.filter.call(this.Ot,e=>e!==t)}}emitEvent(t){er(()=>csArray.prototype.forEach.call(this.Ot,e=>e(t)))}}return i.pendingEvents=0,i})(),hb=(()=>{class i extends Es{isListening(t){return t.type==="DOM_PATCH"||t.type==="DOM_INITIAL_STATE"}processEvent(t){let{MaskedElementState:e}=B,s=t.type==="DOM_PATCH"?t.diff:t.state,n=t.state,o=new Map,c=0;function l(u){let h=`${u}`,p=o.get(h);if(p!==void 0)return p;let E=n[u];if(!E)return o.set(h,!1),!1;let{state:m}=B.getMaskedElementDetails(E);if(m===e.Child||m===e.Parent)return o.set(h,!0),!0;let S=E.parent!=null?l(E.parent):!1;return o.set(h,S),S}for(let u in s){let h=s[u],p=n[u],E=B.getMaskedElementDetails(p);if(!p.parent){E.state!==e.NotMasked?ut.error(`MaskedElementProcessor: node without parent in diff with masking details, this should not happen (id: ${u})`):p.type!==ot.DOCUMENT_NODE&&p.type!==ot.CSS_STYLESHEET_NODE&&ut.error(`MaskedElementProcessor: node without parent in diff, this should not happen (id: ${u})`);continue}if(E.state===e.Child||l(p.parent)){delete s[u],o.set(u,!0);continue}p.type===ot.ELEMENT_NODE&&(this.DR(h,p),E.state===e.Parent&&(o.set(u,!0),this.Su(h,E),c++))}return c>0&&G.counters.sensitiveElements.count("masked-elements",c),t}DR(t,e){if(!t.attributes)return;let{attributes:s}=B.getMaskedAttributeDetails(e);if(s!=null&&s.length)for(let n of s)delete t.attributes[n]}Su(t,e){var s;let n=`width: ${e.width}px !important; height: ${e.height}px !important;`;(s=t.attributes)!==null&&s!==void 0||(t.attributes={}),delete t.firstChild,delete t.shadowRoot,t.attributes.style=n,t.attributes["data-cs-mask"]||(t.attributes["data-cs-mask"]="")}}return or([ne("MaskedElementProcessor.processEvent")],i.prototype,"processEvent",null),i})(),db=/(?:^|[{;])\s*(?!--)[\w-]+:\s*(?=;)/g;function fb(i){let r=0;for(let t in i){let e=i[t];if(typeof e!="string")continue;let s=csString.prototype.match.call(e,db);s&&(r+=s.length)}return r}var pb=(()=>{class i extends Es{constructor(){super(...arguments),this.cssomVarFallbackCount=0}isListening(t){return t.type==="DOM_INITIAL_STATE"||t.type==="DOM_PATCH"}processEvent(t){let e=0,s=t.type==="DOM_PATCH"?t.diff:t.state;for(let n in s){let o=t.state[n];if(!o||o.type!==ot.CSS_STYLESHEET_NODE)continue;let c=s[n];c.cssRules&&(e+=fb(c.cssRules))}return e>0&&(this.cssomVarFallbackCount+=e,G.counters.cssomVarFallback.count("detected",e)),t}}return i})();var ih=(()=>{let i;return function(r){function t(e){return e.type==="TextVisibility"}r.isTextVisibilityEvent=t}(i||(i={})),i})();function sh(i){var r;let t=(r=i.attributes)===null||r===void 0?void 0:r.type;if(t!=null)return csString.prototype.trim.call(csString.prototype.toLowerCase.call(t))}var gb=(()=>{class i extends Es{constructor(t,e,s=new Be,n=null,o=!1){super(),this.O=s,this.qa=n,this.captureAnonymizedPlaceholders=o,this.Ih=new xw(t,e,s,n,o)}setAnonymization(t){this.Ih.setAnonymization(t)}isListening(t){return t.type==="DOM_PATCH"||t.type==="DOM_INITIAL_STATE"||ih.isTextVisibilityEvent(t)}processEvent(t){var e,s;if(ih.isTextVisibilityEvent(t))return t.text=this.O.checkAndAnonymizePII(t.text,this.qa),t;let n=t.type==="DOM_PATCH"?t.diff:t.state,o=t.state;for(let c in n){let l=o[c];if(!l){ut.warn(`AnonymizedTextProcessor: Missing node ${c} in state (event: ${t.type})`,!0,"AnonymizedTextProcessor.handleFastDom");continue}let u=l.parent,h=u?o[u]:void 0;switch(l.type){case ls.TEXT_NODE:case ls.COMMENT_NODE:{let p=n[c];if(p.data==null)continue;if(h||ut.warn(`AnonymizedTextProcessor: Missing parent "${u}" from node ${c} (${l.type}) (event: ${t.type})`,!0,"AnonymizedTextProcessor.handleFastDom"),(h==null?void 0:h.localName)==="script"){p.data="";continue}let{anonymizedValue:E,withAnonymization:m}=this.Ih.getAnonymizedValue((e=p.data)!==null&&e!==void 0?e:"",h==null?void 0:h.localName,h==null?void 0:h.metadata);p.anonymized=m,p.data=E;break}case ls.ELEMENT_NODE:{let p=n[c];if(p.attributes)for(let E in p.attributes){let m=p.attributes[E];if(m==null)continue;let S=sh(l);p.attributes[E]=this.Ih.getAnonymizedAttributeValue(l.namespaceURI,l.localName,E,m,S)}!((s=p.state)===null||s===void 0)&&s.value&&(p.state.value=kw(p.state.value,sh(l)));break}}}return t}}return or([ne("AnonymizedTextProcessor.processEvent")],i.prototype,"processEvent",null),i})(),up=(()=>{class i{constructor(t){this.type="asyncEvent",this.Ph=!1,t&&t(e=>this.resolve(e))}resolve(t){if(this.Ph)throw new Error("AsyncEvent already resolve.");t.timestamp==null&&(t={...t,timestamp:this.timestamp}),this.Dm=t,this.Ph=!0,this.C&&this.C(this.Dm)}complete(t){this.Ph&&t(this.Dm),this.C=t}wait(){return new Promise(t=>this.complete(t))}}return i})();function rh(i){return csString.prototype.replace.call(i,/[:\\]/g,"\\$&")}function Ca(i){return csString.prototype.replace.call(i,/\\([:\\\\])/g,"$1")}function Kn(i,r){let t=rh(r);return i?`${rh(i)}:${t}`:t}function mb(i){let r=!1,t=-1;for(let n=0;n1114111?"\uFFFD":String.fromCodePoint(r)}function vb(i){return i.replace(/\\(?:([a-fA-F0-9]{1,6})|(\\+|.))[\n\t\x20]?/g,function(r,t,e){return e||_b(t)})}function Sb(i){return i.replace(/([\\]+|")|([\n])/g,function(r,t,e){return t?"\\".concat(t," "):"\\".concat(e.codePointAt(0).toString(16)," ")})}var wb=k(857).al,_s=function(i,r){return Object.defineProperty?Object.defineProperty(i,"raw",{value:r}):i.raw=r,i},rl=String.raw(oh||(oh=_s([`\\(?:[a-fA-F0-9]{1,6}|\\+|.)[ ]?`],["\\\\(?:[a-fA-F0-9]{1,6}|\\\\+|.)[\\n\\t\\x20]?"]))),Ab=String.raw(ah||(ah=_s(["((?:",'|[^"])+)'],["((?:",'|[^"])+)'])),rl),bb=String.raw(ch||(ch=_s(["((?:","|[^'])+)"],["((?:","|[^'])+)"])),rl),Tb=String.raw(lh||(lh=_s(["((?:",`|[^)"'])+)`],["((?:",`|[^)"'])+)`])),rl),hp=String.raw(uh||(uh=_s(['(?:"',`"|'`,"')"],['(?:"',`"|'`,"')"])),Ab,bb),Rb=String.raw(hh||(hh=_s(["urls*(s*(?:","|",")s*)"],["url\\s*\\(\\s*(?:","|",")\\s*\\)"])),hp,Tb),Cb=String.raw(dh||(dh=_s(["@imports*",""],["@import\\s*",""])),hp),Ib=new wb("".concat(Rb,"|").concat(Cb),"g");function Pb(i,r){return i.replace(Ib,function(t){for(var e=[],s=1;s{class i{static async toStaticResourceEvent(t,e,s){let n=await i.VR(t);if(!n)return null;let o=await i.Lm(n),c=Pe(t)?void 0:t,l={type:"StaticResourceManagerEvent",timestamp:s,resourceId:e,resource:{hash:o,data:n}};return c&&(l.originalResourceName=c),l}static async toCSSStaticResourceEvent(t,e,s,n){let o=await i.UR(t,n),c=ji(t),l=o.get(c);if(!l)return null;let u={type:"StaticResourceManagerEvent",timestamp:s,resourceId:e,resource:{hash:l.hash,data:l.data}};return o.delete(c),o.size&&(u.nestedResources=[],o.forEach(h=>{h&&csArray.prototype.push.call(u.nestedResources,{hash:h.hash,data:h.data})})),u}static async Lm(t){let e=await t.arrayBuffer(),s=await crypto.subtle.digest(this.Vm,e);return ro(s)}static async VR(t){let e;if(!Pe(t))e=await(await _w.fetch(t)).blob();else{let s=xl(t);if(!s)return null;e=s}return e}static async UR(t,e){let s=new Map,n=ji(t),c=[{resourceRawPath:t,resourceAbsolutePath:n}];for(;c.length>0;){let l=csArray.prototype.pop.call(c);if(!e&&l.resourceAbsolutePath!==null&&!Pe(l.resourceAbsolutePath)){s.set(l.resourceAbsolutePath,null);continue}if(s.get(l.resourceAbsolutePath)===void 0)try{if(l.resourceRawPath===null||csString.prototype.indexOf.call(l.resourceRawPath,".css")>0){if(!l.data){let m=await fetch(l.resourceAbsolutePath);l.data=await m.text()}l.nestedResources||(l.nestedResources=Wr(l.data));let p=!1,E=!1;for(let m of l.nestedResources){let S=Pe(m)?m:l.resourceAbsolutePath?DE(m,l.resourceAbsolutePath):ji(m),A=s.get(S);if(A!==void 0){if(A!==null){let I=i.HR(A,m);l.data=Ct.stringReplaceAll(l.data,m,I)}continue}ln(c,I=>I.resourceAbsolutePath===S)!==void 0||(p=!0,E||(csArray.prototype.push.call(c,l),E=!0),csArray.prototype.push.call(c,{resourceRawPath:m,resourceAbsolutePath:S}))}if(!p){let m=await i.jR(l.data);s.set(l.resourceAbsolutePath,{hash:m.hash,data:m.data})}}else{let p;if(!Pe(l.resourceAbsolutePath))p=await(await fetch(l.resourceAbsolutePath)).blob();else{let m=xl(l.resourceAbsolutePath);if(!m){s.set(l.resourceAbsolutePath,null);continue}p=m}let E=await i.Lm(p);s.set(l.resourceAbsolutePath,{hash:E,data:p})}}catch{s.set(l.resourceAbsolutePath,null)}}return s}static HR(t,e){let s=`cs://resources/${t.hash}`;return Pe(e)||(s+=`?${i.Nh}=${e}`),s}static async jR(t){let e=new Blob([t],{type:"text/css"}),s=await e.arrayBuffer(),n=await crypto.subtle.digest(i.Vm,s);return{data:e,hash:ro(n)}}}return i.Vm="SHA-256",i.Nh="original-resource-name",i})(),Ia=Kn("http://www.w3.org/1999/xlink","href"),yc=(()=>{class i extends Es{get busy(){return this.Oh>0}constructor(){super(),this.$R="cssrm://",this.BR=1,this.Xi=!1,this.Oh=0}isListening(t){return i.isSupported()?t.type==="DOM_PATCH"||t.type==="DOM_INITIAL_STATE":!1}processEvent(t){var e;let s=t.type==="DOM_PATCH"?t.diff:t.state;for(let n in s){let o=s[n],c=t.state[n],l=t.state[c.parent];switch(c.type){case ot.TEXT_NODE:this.GR(o,l==null?void 0:l.localName);break;case ot.CSS_STYLESHEET_NODE:{if(o=o,o.cssRules)for(let u in o.cssRules){let h=o.cssRules[u];if(typeof h!="string")continue;let p=this.Mh(h);p!==null&&(o.cssRules[u]=p)}break}case ot.ELEMENT_NODE:{o=o;let u=o.attributes;if(!u)continue;if(typeof u.style=="string"&&(u.style=this.Mh(u.style)),(this.zR(c.localName)||this.qR(c.localName,l==null?void 0:l.localName))&&(typeof u.src=="string"&&(u.src=this.Dh(u.src)),typeof u.srcset=="string"&&(u.srcset=this.WR(u.srcset))),this.FR(c.localName)&&(typeof u.href=="string"&&(u.href=this.Dh(u.href)),typeof u[Ia]=="string"&&(u[Ia]=this.Dh(u[Ia]))),this.Xi&&c.localName==="link"&&(!((e=u.href)===null||e===void 0)&&e.length)&&u.rel==="stylesheet"){let h=this.an(ji(u.href),!0);u["data-cs-original-href"]=u.href,u.href=h}}}}return t}disableOnlineAssets(){this.Xi=!1}enableOnlineAssets(){this.Xi=!0}isOnlineAssetsActivated(){return this.Xi}GR(t,e){if(!t||e!=="style"||t.data==null)return;let s=this.Mh(t.data);s!==null&&(t.data=s)}Dh(t){return Pe(t)||this.Xi?this.an(t,!1,U.now()):t}WR(t){if(!this.Xi)return t;let e=t,s=sl(t);for(let n of s){let o=this.an(ji(n),!1);e=csString.prototype.replace.call(e,n,o)}return e}Mh(t){let e=Wr(t),s=t,n=U.now();for(let o of e){let c=Pe(o);if(!(c||this.Xi)||this.YR(o))continue;let l=ry(o),u=o;c?u=this.an(o,!1,n):this.Xi&&(l?u=this.an(o,!0,n):u=this.an(ji(o),!1,n)),s=csString.prototype.replace.call(s,o,u)}return s}an(t,e,s=U.now()){let n=this.BR++;this.Oh++;let o=e?fh.toCSSStaticResourceEvent:fh.toStaticResourceEvent,c=new up(async l=>{try{let u=await o(t,n,s,this.Xi);l(u||{type:"warning",message:`Failed to process static resource: ${t}`})}catch(u){l({type:"warning",message:u})}finally{this.Oh--}});return this.emitEvent(c),this.$R+n}zR(t){return t==="img"}FR(t){return t==="image"}qR(t,e){return t==="source"&&e==="picture"}static isSupported(){return vd()&&Sd()&&!!csArray.from}YR(t){return csString.prototype.replace.call(t,/['"]+/g,"").length===0}}return or([ne("StaticResourceManagerProcessor.processEvent")],i.prototype,"processEvent",null),i})();function*dp(i,r){for(let t of Object.values(i))r(t)&&(yield t)}var Nb=(()=>{class i extends Es{constructor(t){super(),this.ft=t}isListening(t){return t.type==="DOM_INITIAL_STATE"}processEvent(t){for(let e of dp(t.state,s=>s.type===ot.DOCUMENT_NODE))e&&e.type===ot.DOCUMENT_NODE&&(e.baseURI=this.ft.anonymizeUrl(e.baseURI));return t}}return or([ne("UrlAnonymizationProcessor.processEvent")],i.prototype,"processEvent",null),i})(),Ob="textarea",Mb=(()=>{class i extends Es{isListening(t){return t.type==="DOM_PATCH"||t.type==="DOM_INITIAL_STATE"}processEvent(t){let e=t.type==="DOM_PATCH"?t.diff:t.state,s=t.state;for(let n in e){let o=e[n],c=s[n];if(!c.parent||!("data"in o)||c.type!==3)continue;let l=s[c.parent];l||ut.warn(`AnonymizedEditableTextProcessor: Missing parent "${c.parent}" from node ${n} (${c.type}) (event: ${t.type})`,!0,"AnonymizedEditableTextProcessor.processFastDOM"),this.XR(o,c.metadata,l==null?void 0:l.localName)}return t}XR(t,e,s){this.KR(s,e)&&t.data!=null&&(t.data=this.QR(t.data))}QR(t){return csString.prototype.replace.call(t,/\S/g,"\u2022")}KR(t,e){return t===Ob||(e==null?void 0:e[ki.EDITABLE_NODE_PROP])===!0}}return or([ne("AnonymizedEditableTextProcessor.processEvent")],i.prototype,"processEvent",null),i})(),{logger:Di,setLogger:AR}=on("fastDom");var Db=(()=>{class i{constructor(t){this.ae=t,this.yc=!1,this.Mi=new WeakSet,this.Ec=e=>{let s=e.ownerDocument||e;s&&this.Mi.has(s)&&this.ae(e)}}observe(t){this.Mi.has(t)||(this.Mi.add(t),this.yc||(as.subscribe(this.Ec),this.yc=!0))}disconnect(){this.yc&&(as.unsubscribe(this.Ec),this.yc=!1),this.Mi=new WeakSet}}return i})(),kb=(()=>{class i{constructor(t){this.ae=t,this.Ot=new WeakMap,this.ce=e=>this.ae({type:"state",target:e}),this.Um=e=>this.ae({type:"setAdoptedStyleSheets",target:e}),this.cn=e=>this.ae({type:"styleSheetUpdated",target:e}),this.JR=e=>this.ae({type:"animationUpdated",target:e}),this.lr=async(e,{name:s})=>{let n=e.effect,o=n==null?void 0:n.target;o&&((s==="updatePlaybackRate"||s==="reverse")&&await e.ready,this.ae({type:"animationUpdated",target:o}))},this.Io=e=>{var s;let n=(s=this.ZR(e))===null||s===void 0?void 0:s.parentStyleSheet;n&&this.cn(n)},this.tC=e=>this.ae({type:"styleSheetDisabledChanged",target:e}),this.Hm=e=>{let s=e.ownerDocument;s&&this.ae({type:"activeElementChanged",target:s})},this.Ec=e=>this.ae({type:"metadataChanged",target:e})}eC(t){return csNodenodeType.apply(t)===ot.DOCUMENT_NODE}iC(t){let e=[ee(t,"input",s=>this.ce(csEventtarget.apply(s))),ee(t,"change",s=>this.ce(csEventtarget.apply(s))),ee(t,"checked",s=>this.ce(csEventtarget.apply(s))),ee(t,"scroll",s=>this.ce(csEventtarget.apply(s))),ee(t,"toggle",s=>this.ce(csEventtarget.apply(s))),ee(t,"focusin",s=>this.Hm(csEventtarget.apply(s))),ee(t,"focusout",s=>this.Hm(csEventtarget.apply(s))),ee(t,"pointerover",s=>{let n=csEventtarget.apply(s),o=n.ownerDocument;o&&this.ae({type:"pointerOverElement",target:o,element:n})}),ee(t,"pointerout",s=>{let o=csEventtarget.apply(s).ownerDocument;o&&this.ae({type:"pointerOverElement",target:o,element:null})}),ee(t,"load",s=>{let n=csEventtarget.apply(s);switch(n.localName){case"iframe":case"link":this.ae({type:"loaded",target:n});break}})];this._c(t,()=>{csArray.prototype.forEach.call(e,s=>s())})}sC(t){let e=t.defaultView;if(!e)return;let s=[ee(e,"resize",()=>this.ce(t)),...e.visualViewport?[ee(e.visualViewport,"resize",()=>this.ce(t)),ee(e.visualViewport,"scroll",()=>this.ce(t))]:[],ee(t,"visibilitychange",()=>this.ce(t)),ee(t,"fullscreenchange",()=>this.ce(t)),it(e.Document,"adoptedStyleSheets",this.Um,{mode:ns.Methods}),it(e.ShadowRoot,"adoptedStyleSheets",this.Um,{mode:ns.Methods}),it(e.Element,"attachShadow",(n,{result:o})=>{this.ae({type:"attachShadow",target:n,shadowRoot:o})}),it(e.HTMLInputElement,"value",this.ce),it(e.HTMLInputElement,"checked",this.ce),it(e.HTMLSelectElement,"selectedIndex",this.ce),it(e.CSSStyleSheet,"insertRule",this.cn),it(e.CSSStyleSheet,"deleteRule",this.cn),it(e.CSSStyleSheet,"replace",this.cn),it(e.CSSStyleSheet,"replaceSync",this.cn),it(e.CSSStyleSheet,"addRule",this.cn),it(e.CSSStyleRule,"style",this.Io,{mode:ns.Properties}),it(e.CSSGroupingRule,"insertRule",this.Io),it(e.CSSGroupingRule,"deleteRule",this.Io),it(e.CSSStyleDeclaration,"setProperty",this.Io),it(e.CSSStyleDeclaration,"removeProperty",this.Io),it(e.StyleSheet,"disabled",this.tC),it(e.HTMLDialogElement,"show",this.ce),it(e.HTMLDialogElement,"showModal",this.ce),it(e.HTMLDialogElement,"close",this.ce),it(e.CustomElementRegistry,"define",(n,{args:o})=>{this.ae({type:"customElementRegistration",target:t,name:o[0]})}),it(e.Element,"animate",this.JR),it(e.Animation,"play",this.lr),it(e.Animation,"pause",this.lr),it(e.Animation,"finish",this.lr),it(e.Animation,"cancel",this.lr),it(e.Animation,"reverse",this.lr),it(e.Animation,"updatePlaybackRate",this.lr),it(e.Animation,"currentTime",this.lr,{mode:ns.Properties})];this._c(t,()=>{csArray.prototype.forEach.call(s,n=>n())})}ZR(t){for(;t.parentRule!==null;)t=t.parentRule;return t}rC(t){let e=new csMutationObserver(s=>{this.ae(s)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,characterData:!0}),this._c(t,()=>{e.disconnect()})}nC(t){let e=new Db(this.Ec);e.observe(t),this._c(t,()=>{e.disconnect()})}_c(t,e){this.Ot.get(t)==null||csArray.prototype.push.call(this.Ot.get(t),e)}observe(t){this.Ot.has(t)||(this.Ot.set(t,[]),this.iC(t),this.eC(t)&&(this.sC(t),this.nC(t)),this.rC(t))}disconnect(t){let e=this.Ot.get(t)||[];for(let s of e)try{s()}catch(n){Di.warn(n)}this.Ot.delete(t)}}return i})(),ph=(()=>{class i{get length(){return this.Ct.length}constructor(){this.Po=[],this.Ct=new Wn,this.kh=new Set}oC(t){switch(t.type){case"attributes":return`-${t.attributeNamespace}-${t.attributeName}`;default:return""}}aC(t){switch(t.type){case"pointerOverElement":case"customElementRegistration":return}return`${ct(t.target)}-${t.type}${this.oC(t)}`}cC(t){switch(t.type){case"state":return Zs.High;default:return Zs.Low}}lC(t){let e=this.aC(t);if(e){if(this.kh.has(e))return;this.kh.add(e)}return this.Ct.push({mutation:t,key:e},this.cC(t))}uC(){this.Po.length!==0&&(csArray.prototype.forEach.call(csArray.prototype.flat.call(this.Po),t=>this.lC(t)),this.Po=[])}push(t){csArray.prototype.push.call(this.Po,t)}shift(){this.uC();let t=this.Ct.shift();if(t)return t.key&&this.kh.delete(t.key),t.mutation}isEmpty(){return this.Ct.isEmpty()&&this.Po.length===0}}return i})(),xb=new Bi;function $s(i,r=Zs.Low){return xb.task(i,r)}function Lb(i){return{get node(){return csNodenextSibling.apply(i)}}}function Vb(i){return{get node(){return csNodefirstChild.apply(i)}}}function Ub(i){return{get node(){return i.contentDocument}}}function Hb(i){return{get node(){return csElementshadowRoot.apply(i)}}}function jb(i){return typeof i=="boolean"}function jn(i){return typeof i=="number"&&!Number.isNaN(i)}function $b(i){return typeof i=="string"}function gh(i,r){try{return i.matches(r)}catch{return!1}}function Bb(i){var r;let t=new Map;if(!i.getAnimations)return t;for(let e of i.getAnimations()){let s=(r=e.effect)===null||r===void 0?void 0:r.target;if(s){let n=t.get(s);n?csArray.prototype.push.call(n,e):t.set(s,[e])}}return t}var Gb=40,$n=["nextSibling","firstChild","contentDocument","shadowRoot","sheetId"];function Bn(i,r){return!!i&&r in i&&!!i[r]}var mh={"http://www.w3.org/1999/xhtml":void 0,"http://www.w3.org/2000/svg":"svg"},yh=(()=>{class i{constructor(t){this.C=t,this.W=new kb(e=>{this.vc.push(e),this.hC()}),this.xh=!1,this.We={},this.$e=new Map,this.vc=new ph,this.Oo=new Map,this.Mo=null,this.processedMutationsCount=0,this.serializedNodeCount=0,this.jm=0,this.$m=Gb}disconnect(){var t;for(let e of this.Oo.values())this.W.disconnect(e);this.Oo.clear(),this.We={},this.$e.clear(),this.vc=new ph,(t=this.Lh)===null||t===void 0||t.abort(),this.Lh=void 0}observe(t){return this.disconnect(),this.Sc(t),this}getState(t=!0){return this.xh=!1,t&&this.Bm(),this.We}getChanges(){let t={};for(let[s,n]of this.$e){let o=this.We[s];if(!(n&&!o))if(o&&!n)t[s]=is(o);else{let c=Vd(n,o);c!==void 0&&(t[s]=c)}}return this.Bm(),Ld(t)?t:void 0}setFrameRate(t){return this.$m=t/1e3,this}onChange(t){return this.C=t,()=>{this.C===t&&(this.C=void 0,this.Do&&(csClearTimeout(this.Do),this.Do=void 0))}}async getStateAsync(t=!0){return await this.Gm(),this.getState(t)}async getChangesAsync(){return await this.Gm(),this.getChanges()}async Gm(){return new Promise(t=>{$s(()=>t())})}Bm(){this.$e.clear()}static apply(t,e,s){let n={...t},o=new Set,c=new Set,l=E=>{c.has(E)?c.delete(E):o.add(E)},u=E=>{o.has(E)?o.delete(E):c.add(E)};function h(E,m){for(let S of $n)S in m&&(Bn(E,S)&&l(E[S]),Bn(m,S)&&u(m[S]))}for(let E in e){let m=e[E];if(m==null)continue;let S=E,A=n[S],x=m,I=A===void 0?x:Ud(A,x);h(A,x),n[S]=I}let p=csArray.from(o);for(;p.length>0;){let E=csArray.prototype.pop.call(p);if(c.has(E))continue;let m=n[E];if(m){delete n[E],s==null||s(E);for(let S of $n)Bn(m,S)&&csArray.prototype.push.call(p,m[S])}}return n}static nodeRelationsEntries(t,e=!1){let s=e?$n.filter(o=>o!=="nextSibling"):$n,n=[];for(let o of s)Bn(t,o)&&csArray.prototype.push.call(n,{key:o,nodeId:t[o]});return n}Vh(){this.xh||(this.We={...this.We},this.xh=!0)}ht(t){if(this.Vh(),t in this.We&&!this.$e.has(t)){let e=this.We[t];this.$e.set(t,is(e)),this.We[t]=is(e)}return this.We[t]}dC(t){var e;let s=t.effect;return{keyframes:this.fC((e=s==null?void 0:s.getKeyframes())!==null&&e!==void 0?e:[]),options:this.pC(t,s),time:this.gC(t.currentTime),state:t.playState,rate:t.playbackRate}}gC(t){if(t!==null)return jn(t)?Math.trunc(t):t}fC(t){return csArray.prototype.reduce.call(t,(e,s,n)=>(e[n]=s,e),{})}pC(t,e){var s,n;let o={...(s=e==null?void 0:e.getTiming())!==null&&s!==void 0?s:{},composite:e==null?void 0:e.composite,pseudoElement:e==null?void 0:e.pseudoElement,iterationComposite:e==null?void 0:e.iterationComposite},c=t.id;c&&(o.id=c);let l=t.timeline;return l&&l!==((n=e==null?void 0:e.target)===null||n===void 0?void 0:n.ownerDocument.timeline)&&Di.warn("FastDOM: Non-default animation timeline detected; serialization may be inaccurate."),o}mC(t){try{let e=t.cssRules.length,s={};for(let n=0;n{let n=e||{};return n[Kn(s.namespaceURI,s.name)]=s.value,n},void 0)}qm(t){let e=t.defaultView,s=e==null?void 0:e.visualViewport;return{state:{scrollX:e==null?void 0:e.scrollX,scrollY:e==null?void 0:e.scrollY,visibility:t.visibilityState},viewport:{width:s==null?void 0:s.width,height:s==null?void 0:s.height,scale:s==null?void 0:s.scale,offsetLeft:s==null?void 0:s.offsetLeft,offsetTop:s==null?void 0:s.offsetTop},screen:{width:e==null?void 0:e.screen.width,height:e==null?void 0:e.screen.height}}}vC(t){return t.open?gh(t,":modal")?Hn.OpenModal:Hn.Open:Hn.Closed}Wm(t){let e={},s=!1;if("value"in t&&$b(t.value)&&(e.value=t.value,s=!0),"selectedIndex"in t&&jn(t.selectedIndex)&&t.selectedIndex>=0&&(e.selectedIndex=t.selectedIndex,s=!0),"checked"in t&&jb(t.checked)&&(e.checked=t.checked,s=!0),t.popover&&gh(t,":popover-open"))e.popover=!0,s=!0;else if(t.localName==="dialog"){let c=this.vC(t);e.dialog=c,e.open=c!==Hn.Closed,s=!0}let{scrollLeft:n,scrollTop:o}=t;return jn(n)&&n!==0&&(e.scrollX=n,s=!0),jn(o)&&o!==0&&(e.scrollY=o,s=!0),s?e:void 0}hC(){var t;((t=this.Lh)===null||t===void 0?void 0:t.isEnded)!==!1&&(this.Lh=$s(e=>(this.Dr(e),this.Fm(),this.vc.isEmpty()?Vt.Stop:Vt.Reschedule)))}Fm(){if(!this.C||this.Do)return;let t=performance.now()-this.jm,e=Math.max(0,this.$m-t);this.Do=csSetTimeout(()=>{this.Do=void 0;let s=this.getChanges();this.jm=performance.now(),s&&this.C(s,this.getState())},e)}SC(t){for(let e=t==null?void 0:t.previousSibling;e;e=e.previousSibling)if(this.isVirtualized(e))return ct(e)}wC(t){var e;let s=csNodeparentNode.apply(t)||t.host||((e=t.defaultView)===null||e===void 0?void 0:e.frameElement);if(this.isVirtualized(s))return ct(s)}Sc(t){if(this.isVirtualized(t))return;let e=new fo;this.Ym(t,e),!e.isEmpty()&&$s(s=>{let n;for(;s.hasTimeLeft&&(n=e.shift());){let o=n.node;if(!o||!this.$s(o))continue;let c=this.wC(o);c&&(this.isVirtualized(o)||this.Ym(o,e),this.Xm(o,c),csNodenextSibling.apply(o)&&e.push(Lb(o)))}return e.isEmpty()?Vt.Stop:Vt.Continue})}AC(t){switch(t){case ot.DOCUMENT_NODE:return"contentDocument";case ot.DOCUMENT_FRAGMENT_NODE:return"shadowRoot";default:return"childList"}}ln(t){$s(()=>{let e=t.ownerNode;if(e&&(!this.$s(e)||!this.isVirtualized(e)))return Vt.Stop;if(this.isVirtualized(t)||!e||e.localName==="style"?this.Km(t):this.Uh(ct(t),{type:ot.CSS_STYLESHEET_NODE,cssRules:{},disabled:t.disabled}),e&&this.isVirtualized(e)){let s=ct(e);this.ht(s).sheetId=ct(t)}return Vt.Stop})}bC(t){var e;this.Mo||(this.Mo=new Map,csQueueMicrotask(()=>{this.Mo=null}));let s=t.ownerDocument;if(!s)return[];let n=this.Mo.get(s);return n||(n=Bb(s),this.Mo.set(s,n)),(e=n.get(t))!==null&&e!==void 0?e:[]}Qm(t,e){var s,n;e===void 0&&(e=(n=(s=t.getAnimations)===null||s===void 0?void 0:s.call(t))!==null&&n!==void 0?n:[]);let o={},c=0,l=e.length;$s(u=>{if(!this.isVirtualized(t)||!this.$s(t))return Vt.Stop;let h=this.ht(ct(t));if(!h)return Vt.Stop;for(;u.hasTimeLeft&&c0?o:void 0,Vt.Stop)})}Jm(t){let e=0,s=ct(t),n=t.adoptedStyleSheets||[],o=n.length,c={};$s(l=>{if(!this.isVirtualized(t)||!this.$s(t)||n!==t.adoptedStyleSheets)return Vt.Stop;for(;l.hasTimeLeft&&e0&&this.Qm(h,p),csElementshadowRoot.apply(h)&&e.push(Hb(h));break}break}}csNodefirstChild.apply(t)&&e.push(Vb(t))}ty(t,e){let s=this.ht(t),n=s.customElements||(s.customElements={});n[e]=1}ey(t){let e=new fo([t]),s=new Set;this.iy(t);let n;for(;n=e.shift();){if(s.has(n)){Di.warn(`Node id ${n} already visited during deletion process`);continue}s.add(n);let o=this.ht(n);if(o){switch(o.type){case ot.DOCUMENT_NODE:case ot.DOCUMENT_FRAGMENT_NODE:this.W.disconnect(this.Oo.get(n)),this.Oo.delete(n)}this.Vh(),delete this.We[n];for(let{nodeId:c}of i.nodeRelationsEntries(o))e.push(c)}}}Hh(t,e,s,n){t&&this.iy(t);let o;if(e){let c=this.ht(e);o=c.nextSibling,c.nextSibling=t}else{let c=this.ht(s);o=c.firstChild,c.firstChild=t}if(n&&t&&o!==t){let c=this.ht(t);if(c.nextSibling=o,o){let l=this.ht(o);l.previousSibling=t}}if(t){let c=this.ht(t);c.parent=s,c.previousSibling=e}}TC(t){var e;let s=this.ht(t),n=new Set;for(let o=s==null?void 0:s.firstChild;o;o=(e=this.ht(o))===null||e===void 0?void 0:e.nextSibling){if(n.has(o)){Di.warn(`Cycle detected in children of node id ${t}, breaking traversal.`);break}n.add(o)}return n}$s(t){let e="isConnected"in t?t:"ownerNode"in t?t.ownerNode:null;return e?csNodeisConnected.apply(e):!0}iy(t){let e=this.ht(t);if(e){if(e.previousSibling!==void 0){let s=this.ht(e.previousSibling);s&&(s.nextSibling=e.nextSibling)}else if(e.parent!==void 0){let s=this.ht(e.parent);s&&s.firstChild===t&&(s.firstChild=e.nextSibling)}if(e.nextSibling!==void 0){let s=this.ht(e.nextSibling);s&&(s.previousSibling=e.previousSibling)}e.parent=void 0,e.nextSibling=void 0,e.previousSibling=void 0}}zm(t){try{let e=as.getAll(t);if(e)return is(e)}catch(e){Di.error("FastDOM.serializeNodeMetadata",e)}}Dr(t){var e,s;let n;for(;t.hasTimeLeft&&(n=this.vc.shift());){if(this.processedMutationsCount++,!this.isVirtualized(n.target)||!this.$s(n.target))continue;let o=ct(n.target);switch(n.type){case"attachShadow":{this.Sc(n.shadowRoot),this.Xm(n.shadowRoot,o);break}case"childList":{let c,l=this.TC(o);for(let h=csNodefirstChild.apply(n.target);h;h=csNodenextSibling.apply(h)){this.Sc(h);let p=ct(h);l.delete(p),this.Hh(p,c,o),c=p}this.Hh(void 0,c,o);for(let h of l)this.ey(h);let u=this.ht(o);if(u.type===ot.ELEMENT_NODE&&u.localName==="style"){let h=n.target.sheet;h&&this.ln(h)}break}case"characterData":{let c=this.ht(o);if(c.type===ot.TEXT_NODE&&(c.data=n.target.data,((e=n.target.parentElement)===null||e===void 0?void 0:e.localName)==="style")){c.data="";let l=(s=n.target.parentElement)===null||s===void 0?void 0:s.sheet;l&&this.ln(l)}break}case"attributes":{let c=Kn(n.attributeNamespace,n.attributeName),l=n.target,u=this.ht(o),h=l.getAttributeNS(n.attributeNamespace,n.attributeName);u.attributes=u.attributes||{},h===null?delete u.attributes[c]:u.attributes[c]=h;break}case"state":{let c=this.ht(o);c.type===ot.DOCUMENT_NODE?Object.assign(c,this.qm(n.target)):c.state=this.Wm(n.target);break}case"setAdoptedStyleSheets":{this.Jm(n.target);break}case"styleSheetUpdated":{this.ln(n.target);break}case"styleSheetDisabledChanged":{let c=this.ht(o);c.disabled=n.target.disabled;break}case"animationUpdated":{this.Qm(n.target);break}case"loaded":{switch(n.target.localName){case"link":{let c=n.target;c.rel==="stylesheet"&&c.sheet&&this.ln(c.sheet);break}case"iframe":{let c=n.target,l=this.ht(o),u=c.contentDocument,h=u&&ct(u);l.contentDocument&&l.contentDocument!==h&&(this.ey(l.contentDocument),delete l.contentDocument),this.Zm(c)&&this.Sc(u);break}}break}case"activeElementChanged":{let c=this.ht(o),l=n.target.activeElement||void 0;c.activeId=l&&ct(l);break}case"pointerOverElement":{let c=this.ht(o),l=n.element||void 0;c.hoveredId=l&&ct(l);break}case"customElementRegistration":{this.ty(o,n.name);break}case"metadataChanged":{let c=this.ht(o);c.metadata=this.zm(n.target);break}}}}}return i.trackIframeContent=!1,i.cloneDeep=is,i.findNodes=dp,i.stringifyAttrKey=Kn,i.parseAttrKey=mb,i})(),zb=5e3,qb=(()=>{class i extends ar{constructor(){super(...arguments),this.jh=0}get name(){return"DomStateProducer"}async onStart(){this.$h();let t=++this.jh;this.ko||(this.ko=new yh().observe(_d));let e=await this.ko.getStateAsync();if(t!==this.jh)return;let s=yh.cloneDeep(e);this.produceEvent({type:"DOM_INITIAL_STATE",state:s}),this.Fn=this.ko.onChange((n,o)=>{this.produceEvent({type:"DOM_PATCH",diff:n,state:o})})}onStop(){var t;this.jh++,(t=this.Fn)===null||t===void 0||t.call(this),this.RC()}RC(){this.$h(),this.Bh=csSetTimeout(()=>{this.destroy()},zb)}$h(){this.Bh!==void 0&&(csClearTimeout(this.Bh),this.Bh=void 0)}destroy(){var t;this.$h(),(t=this.ko)===null||t===void 0||t.disconnect(),this.ko=void 0}}return i})(),Eh=(()=>{class i{static isNavigationTimingObserverSupported(){var t,e;return(((t=_w.PerformanceObserver)===null||t===void 0?void 0:t.supportedEntryTypes)==null?void 0:csArray.prototype.indexOf.call((e=_w.PerformanceObserver)===null||e===void 0?void 0:e.supportedEntryTypes,"navigation"))>=0}static getTimeOrigin(){return _w.performance.timeOrigin}static sy(){if(this.isNavigationTimingObserverSupported())return new _w.PerformanceObserver(t=>i.CC(t))}static CC(t){let s=t.getEntriesByType("navigation")[0];s&&(this.ur=s,i.Lr(s))}static xn(t){this.IC(t),this.ur&&t(this.ur),this.Fe||this.PC()}static IC(t){this.Ht.add(t)}static NC(t){this.Ht.delete(t)}static PC(){if(this.xo||(this.xo=this.sy()),!this.xo){this.ur||(this.ur={requestStart:_w.performance.timing.requestStart,domInteractive:_w.performance.timing.domInteractive}),this.Lr(this.ur);return}this.xo.observe({type:"navigation",buffered:!0}),this.Fe=!0}static Lr(t){this.Ht.forEach(e=>e(t))}static Vn(t){this.NC(t),this.Ht.size===0&&this.Lo()}static Lo(){var t;this.Fe&&((t=this.xo)===null||t===void 0||t.disconnect(),this.Fe=!1,this.ur=null,this.xo=this.sy())}constructor(t){this.C=t}observe(){i.xn(this.C)}disconnect(){i.Vn(this.C)}}return i.Fe=!1,i.Ht=new Set,i.ur=null,i})(),Wb=(()=>{class i extends ar{constructor(){super(...arguments),this.wc=null,this.ry=new Eh(t=>{if(this.wc)return;let e=this.OC(t);e&&(this.wc=e,this.produceEvent(e))})}onStart(){if(this.wc){this.produceEvent(this.wc);return}this.ry.observe()}onStop(){this.ry.disconnect()}OC(t){let e=Eh.getTimeOrigin();return{type:"PerformanceTiming",timings:{timeOrigin:e,requestStart:Math.floor(e+t.requestStart),domInteractive:Math.floor(e+t.domInteractive)},timestamp:U.now()}}}return i})(),Fb=(()=>{class i extends ar{constructor(){super(),this.Xn=new Ff(this.Ou.bind(this))}onStart(){this.Xn.observe()}onStop(){this.Xn.disconnect()}Ou(t){let e=this.MC(t);e&&this.produceEvent(e)}MC(t){return this.DC(t)?{type:"Gesture",targetId:ct(t.target),data:{type:t.type,direction:t.direction,distance:t.distance,velocity:t.velocity,pageX:t.pageX,pageY:t.pageY}}:null}DC(t){return zn(t.target)&&!(wt(t.target)&&B.isMaskedElementChild(t.target))}}return i})(),Yb=(()=>{class i extends ar{constructor(){super(...arguments),this.ny=new cp(t=>this.kC(t))}kC({message:t,filename:e,lineno:s,colno:n}){t=t!=null?t:"[NO ERROR MESSAGE]",e=!e||Pe(e)?"":e,this.produceEvent({type:"JSError",message:t,filename:e,lineno:s,colno:n})}onStart(){this.ny.observe()}onStop(){this.ny.disconnect()}}return i})(),Xb=(()=>{class i extends Es{constructor(t){super(),this.xC=t,this.fh=1024,this.ph=150}isListening(t){return t.type==="JSError"}processEvent(t){return t.message=Ct.truncate(t.message,this.fh,Ct.ELLIPSIS),t.filename=Ct.truncate(t.filename,this.ph,Ct.ELLIPSIS),this.xC(t)}}return i})();var Bs=[],Ec=!1,fp=un(Qb,"executeTasks");function Kb(i){if(csArray.prototype.push.call(Bs,i),!Ec){for(let r=0;r<3;r++)csSetTimeout(fp);Ec=!0}}function Qb(){let i=Date.now();for(let r=0;r=35){Bs=csArray.prototype.slice.call(Bs,r+1),csSetTimeout(fp);return}Bs=[],Ec=!1}var Oi=(()=>{let i;return function(r){r[r.Started=0]="Started",r[r.Stopped=1]="Stopped",r[r.Processing=2]="Processing",r[r.Completed=3]="Completed"}(i||(i={})),i})(),pp=(()=>{class i{constructor(){this.Ct=new Lw,this.Vt=Oi.Stopped,this.C=null,this.ay=t=>{this.Vt===Oi.Stopped||!t||(this.C(t),this.cy())}}get queueLength(){return this.Ct.length}start(t){if(this.C)throw new Error("callback already set");this.Vt=Oi.Started,this.C=t}push(t){this.Ct.push(t),this.HC()}stop(){this.C=null,this.Vt=Oi.Stopped,this.Ct.clear()}static pipe(t,e){let s=t,n=new csArray;for(let c of e){let l=new i;l.start(u=>{c.pushEvent(u)}),csArray.prototype.push.call(n,l),pt(s,u=>u.subscribe(h=>l.push(h))),s=[c]}let o=new Jb(n);return pt(s,c=>c.subscribe(l=>o.push(l))),o}ly(){return this.Vt===Oi.Stopped}_i(){return this.Vt===Oi.Processing}cy(){if(!this.ly()){if(this.Ct.isEmpty){this.Vt=Oi.Completed;return}this.Vt=Oi.Processing,Kb(()=>{let t=this.Ct.pop();t instanceof up?t.complete(this.ay):this.ay(t)})}}HC(){this.ly()||this._i()||this.cy()}}return i})(),Jb=(()=>{class i extends pp{constructor(t){super(),this.uy=t}get queueLength(){return csArray.prototype.reduce.call(this.uy,(t,e)=>t+e.queueLength,0)}stop(){super.stop(),pt(this.uy,t=>t.stop())}}return i})(),Zb=(()=>{class i{constructor(t,e=[]){this.producers=t,this.processors=e,this.bt=!1,this.Ht=[]}get pendingEvents(){var t,e;return(e=(t=this.Ct)===null||t===void 0?void 0:t.queueLength)!==null&&e!==void 0?e:0}start(){if(this.bt)throw new Error("Recording is already started.");let t=this.Ht;this.Ct=pp.pipe(this.producers,this.processors),this.Ct.start(e=>csArray.prototype.forEach.call(t,s=>s(e))),pt(this.producers,e=>e.start()),pt(this.processors,e=>e.start()),this.bt=!0}stop(){this.Ct.stop(),this.Ht.length=0;for(let t of this.producers)t.stop();for(let t of this.processors)t.stop();this.bt=!1,this.Ht=[]}subscribe(t){if(this.bt)throw new Error("Recording is already started.");return csArray.prototype.push.call(this.Ht,t),()=>this.Ht=csArray.prototype.filter.call(this.Ht,e=>e!==t)}}return i})(),tT=(()=>{class i{constructor(t){this.hy=t,this.ti=null,this.dy=!1,this.jC=typeof requestIdleCallback!="undefined"?e=>requestIdleCallback(e):e=>csSetTimeout(e)}async start(){this.dy||(this.dy=!0,await this.$C(this.hy))}stop(){var t;(t=this.ti)===null||t===void 0||t.call(this),this.ti=null}async $C(t){await this.BC(mt.document)?t():this.GC(this.hy)}GC(t){this.ti=it(HTMLElement,"attachInternals",()=>{t(),this.stop()})}async BC(t){await new Promise(n=>this.jC(()=>n()));let e=ve(t,NodeFilter.SHOW_ELEMENT),s=e.nextNode();for(;s;){if(this.zC(s))return!0;s=e.nextNode()}return!1}zC(t){var e;return((e=t.constructor)===null||e===void 0?void 0:e.formAssociated)===!0&&csString.prototype.includes.call(t.tagName,"-")}}return i})(),Mi=(()=>{let i;return function(r){r[r.NOT_STARTED=0]="NOT_STARTED",r[r.OPEN_IN_PROGRESS=1]="OPEN_IN_PROGRESS",r[r.OPEN_FAILED=2]="OPEN_FAILED",r[r.READY=3]="READY"}(i||(i={})),i})(),eT=(()=>{class i{constructor(t,e,s){this.Br=t,this.qC=s,this.fr=Mi.NOT_STARTED,this.Ac=[],this.Gh=0,this.WC=self.origin,this.Oe=typeof _w=="object"?"":"worker-",this.Ve=new il(e),this.qn()}async qn(){await this.fy(),this.fr===Mi.READY?this.FC():this.qC(this.Ac)}FC(){csArray.prototype.forEach.call(this.Ac,t=>{this.save(t)}),this.Ac=[]}async save(t){try{if(this.fr===Mi.OPEN_IN_PROGRESS){csArray.prototype.push.call(this.Ac,t);return}if(this.fr!==Mi.READY||this.Ve.isThresholdReached())return;let{key:e,metadata:s,events:n}=t;if(this.Ve.addString(e),typeof n=="string"?this.Ve.addString(n):this.Ve.addArrayBuffer(n),this.Ve.isThresholdReached())return;await this.Et.put(`${this.WC}/${e}`,new Response(n,{headers:s}))}catch{}}async recover(t){!this.Et&&(await this.fy(),this.fr!==Mi.READY)||this.YC(t)}async fy(){try{this.fr=Mi.OPEN_IN_PROGRESS,this.Et=await self.caches.open(`${this.Oe}${this.Br}`),this.fr=Mi.READY}catch{this.fr=Mi.OPEN_FAILED}}async YC(t){try{if(this.Gh++,this.Gh>1)return;let e=await this.Et.keys();if(e.length===0)return;let s=await this.Et.matchAll(),n=csArray.prototype.map.call(s,c=>{let l={};c.headers.forEach((h,p)=>{l[p]=h}),delete l["content-type"];let u=l.datatype;return delete l.datatype,u==="json"||u==="base64"?c.text().then(h=>({metadata:l,events:h})):c.arrayBuffer().then(h=>({metadata:l,events:h}))}),o=await Promise.all(n);await Promise.all(csArray.prototype.map.call(e,c=>this.Et.delete(c))),t(o),this.Ve.reset()}catch{}finally{this.Gh--}}}return i})(),iT=(()=>{class i{constructor(t){this.bc={},this.Ve=new il(t)}save({key:t,metadata:e,events:s}){this.Ve.isThresholdReached()||(this.Ve.addString(t),typeof s=="string"?this.Ve.addString(s):this.Ve.addArrayBuffer(s),!this.Ve.isThresholdReached()&&(this.bc[t]={metadata:e,events:s}))}recover(t){let e=[];csArray.prototype.forEach.call(this.XC(),s=>{let n=this.bc[s];n!==void 0&&(delete n.metadata.datatype,csArray.prototype.push.call(e,n),this.KC(s))}),e.length!==0&&(t(e),this.Ve.reset())}XC(){return Object.keys(this.bc)}KC(t){delete this.bc[t]}}return i})(),sT=(()=>{class i{constructor(t){try{this.QC(t)}catch{this.zh()}}QC(t){self.caches?this.JC(t):this.zh()}save(t){this.Tc.save(t)}recover(t){this.Tc.recover(t)}JC(t){this.Tc=new eT(t,i.py,e=>{this.zh(e)})}zh(t){this.Tc=new iT(i.py),t&&csArray.prototype.forEach.call(t,e=>{this.Tc.save(e)})}}return i.py=1024*1024*16,i})(),rT=(()=>{class i{constructor(t,e){this.w=t,this.R=e,this.Vo=ge.ETR_DISABLED,this.Rc=ge.ETR_PENDING,this.gy=!0}getEtrStatus(t){t===void 0&&(t=this.R.getSession());let e=t==null?void 0:t.etrStatus;return this.my()&&e===ge.ETR_SAVED_SESSION?e:this.Vo}onEventTriggerRecording(t,e){switch(e){case Hi.ETR_PAGE:this.yy(ge.ETR_SAVED_PAGE);break;case Hi.ETR_LEGACY:case Hi.ETR_SESSION:this.yy(ge.ETR_SAVED_SESSION);break}}onCollectStateChange(t,e){this.gy=!1,t===X.ANALYTICS_ONLY&&e===Ui.ETR_ON?this.Ey(this.Rc):this.Ey(ge.ETR_DISABLED)}Ey(t){this.Vo=t,this.Rc=ge.ETR_PENDING,this._y(t),this.w.emitRecordingContextChange()}yy(t){this.gy?Number(t)>Number(this.Rc)&&(this.Rc=t):this.my()&&Number(t)>Number(this.Vo)&&(this.Vo=t,this._y(t),this.w.emitRecordingContextChange())}_y(t){let e=this.R.getSession();e!==null&&e.etrStatus===ge.ETR_NOT_SAVED_SESSION&&t===ge.ETR_SAVED_SESSION&&(e.etrStatus=t,this.R.setSession(e))}my(){return this.Vo!==ge.ETR_DISABLED}}return i})(),nT=(()=>{class i{constructor(t=100){this.ZC=t,this.Cc={},this.Uo=null,this.Nh="original-resource-name"}onEvent(t){this.tI=t}processEvent(t){this.eI(t.resourceId,t.resource.hash,t.originalResourceName),this.iI(t)}flushEvents(){this.Uo&&csClearTimeout(this.Uo),this.vy()}onSendStaticResource(t){this.iI=t}vy(){if(!Object.keys(this.Cc).length)return;let t={type:Y.RESOURCE_HASHES,date:U.now(),args:[this.Cc]};this.Uo=null,this.Cc={},this.tI(t)}eI(t,e,s){let n=e;s&&(n+=`?${this.Nh}=${s}`),this.Cc[t]=n,!this.Uo&&(this.Uo=_w.csSetTimeout(()=>this.vy(),this.ZC))}}return i})();function oT(i){let r=aT(i.data);return{type:Y.GESTURE_RECOGNITION,args:[i.targetId,r],date:i.timestamp}}function aT(i){let r={type:cT(i.type)};for(let t in i){let e=i[t];e!==void 0&&t!=="type"&&(r[t]=e)}return r}function cT(i){switch(i){case Ut.DRAG:case Ut.FLICK:return kr.SWIPE;case Ut.LONG_PRESS:return kr.LONG_PRESS;case Ut.TAP:return kr.TAP;case Ut.PINCH_IN:return kr.PINCH_IN;case Ut.PINCH_OUT:return kr.PINCH_OUT}}var Pa=(()=>{let i;return function(r){r.REQUEST_START="requestStart",r.DOM_INTERACTIVE="domInteractive",r.TIME_ORIGIN="timeOrigin"}(i||(i={})),i})();function lT(i){return{type:Y.PERFORMANCE_TIMINGS,args:[{performanceTiming:Pa.REQUEST_START,timestamp:i.timings.requestStart},{performanceTiming:Pa.DOM_INTERACTIVE,timestamp:i.timings.domInteractive},{performanceTiming:Pa.TIME_ORIGIN,timestamp:i.timings.timeOrigin}],date:i.timestamp}}var uT=500,Na=0;function hT(){return{processEvent(i,r){if(i.originalEvent.type===Y.PERFORMANCE_RESOURCE_TIMING)return Na>=uT?null:(Na+=1,r({...i.originalEvent,date:i.timestamp}));r(i.originalEvent)},reset(){Na=0}}}var dT=["parent","previousSibling","metadata"];function _h(i){let r=i.type==="DOM_PATCH",t=r?i.diff:i.state;for(let e in t){let s=t[e],n=!1;for(let o of dT)o in s&&(delete s[o],n=!0);r&&n&&Object.keys(s).length===0&&delete t[e]}return i}function fT(i,r){let t=[],e=!1;return{push(s){if(csArray.prototype.push.call(t,s),t.length===r.batchSize){this.flush();return}r.autoFlushDelay&&r.autoFlushDelay>0&&!e&&(e=!0,csSetTimeout(()=>{e=!1,t.length>0&&this.flush()},r.autoFlushDelay))},flush(){if(!t.length)return;let s=t;t=[],i(s)}}}var pT=20;function gT(i){return fT(r=>{let t={visibleInViewPort:r},e={type:Y.TEXT_VISIBILITY,date:U.now(),args:[t]};i(e)},{batchSize:pT,autoFlushDelay:1e3})}var mT=(()=>{class i{get pendingEvents(){return this.Ic.pendingEvents}constructor(t,e,s,n,o){this.Ic=t,this.w=e,this.Ue=s,this.wi=n,this.Ki=o,this.ai=()=>{},this.Pc=()=>{},this.Sy=gT(c=>this.ai(c))}start(){var t,e;this.wy=hT(),this.Ic.subscribe(s=>{var n,o,c,l,u,h;let p=s,{timestamp:E}=p;switch(p.type){case"Legacy":{let m=p.eventType==="user"?(n=this.Pc)!==null&&n!==void 0?n:()=>{}:this.ai;this.wy.processEvent(p,m)}break;case"inputEncryptedText":{let{target:m,value:S,encryptedData:A,encryptionMetadata:x}=p;(o=this.Pc)===null||o===void 0||o.call(this,{type:Y.INPUT_ENCRYPTED_TEXT,date:E,args:[m,S,A,x]});break}case"encryptedCharacterDataChanged":{let{target:m,rawData:S,encryptedData:A,encryptionMetadata:x}=p;this.ai({type:Y.MUTATION_ENCRYPTED_CHARACTER_DATA,date:E,args:[m,S,A,x]});break}case"StaticResource":{let{url:m}=p;this.ai({type:Y.STATIC_RESOURCE_URL,date:E,args:[m]});break}case"ResizeMaskedElement":{let{target:m,width:S,height:A}=p;this.ai({type:Y.MUTATION_ATTRIBUTE,date:E,args:[m,"","style",`width:${S}px !important;height:${A}px !important;`]});break}case"Gesture":{let m=oT(s);(c=this.Pc)===null||c===void 0||c.call(this,m);break}case"TextVisibility":{this.Sy.push(p.text);break}case"StaticResourceManagerEvent":{(l=this.Ue)===null||l===void 0||l.processEvent(p);break}case"PerformanceTiming":{this.ai(lT(p));break}case"CustomError":{let m=(u=this.Ki)===null||u===void 0?void 0:u.translate(p);m&&this.ai(m);break}case"JSError":{let m=(h=this.wi)===null||h===void 0?void 0:h.translate(p);m&&this.ai(m);break}case"DOM_INITIAL_STATE":{let m=_h(p),S={type:Y.DOM_INITIAL_STATE,date:E,args:[m.state]};this.w.emitInitialDomDone(S);break}case"DOM_PATCH":{let m=_h(p),S={type:Y.DOM_PATCH_STATE,date:E,args:[m.diff]};this.ai(S);break}case"warning":{$.warn(p.message);break}default:$.error(`WebRecorderEventTranslator: Event not supported (${p.type})`);break}}),this.w.emitInitialDomStart(),(t=this.wi)===null||t===void 0||t.start(),(e=this.Ki)===null||e===void 0||e.start(),this.Ic.start()}stop(){var t,e,s;this.reset(),this.flush(),this.Ic.stop(),(t=this.Ue)===null||t===void 0||t.flushEvents(),(e=this.wi)===null||e===void 0||e.stop(),(s=this.Ki)===null||s===void 0||s.stop()}flush(){this.Sy.flush()}onEvent(t,e){var s;this.ai=t,this.Pc=e,(s=this.Ue)===null||s===void 0||s.onEvent(n=>this.ai(n))}reset(){this.wy.reset()}}return i})();var yT=(()=>{class i{constructor(t){this.Nc=t,this.fo=20,this.or=0,this.U=!1}translate(t){if(this.or>=this.fo)return this.Nc.stop(),null;this.or+=1;let{filename:e,message:s,lineno:n,colno:o,timestamp:c}=t;return{type:Y.JAVASCRIPT_ERROR,date:c,args:[{errorType:"jsError",message:s,filename:e,lineno:n,colno:o}]}}start(){this.U||(this.or=0,this.U=!0)}stop(){this.U=!1}}return i})(),ET=(()=>{class i extends ar{constructor(t){super(),this.Ye=t}subscribe(t){return super.subscribe(t)}onStart(){pt(this.Ye,t=>{t.onEvent(e=>{var s;return this.un(e,(s=t.eventType)!==null&&s!==void 0?s:"browser")})}),pt(this.Ye,t=>{var e;(e=t.start)===null||e===void 0||e.call(t)})}onStop(){pt(this.Ye,t=>{var e;return(e=t.stop)===null||e===void 0?void 0:e.call(t)})}un(t,e){this.produceEvent({timestamp:U.now(),type:"Legacy",originalEvent:t,eventType:e})}}return i})(),_T=(()=>{class i{push(t){let e={value:t};this.hn?(this.qh.next=e,this.qh=e):(this.hn=e,this.qh=e)}shift(){if(!this.hn)return;let t=this.hn;return this.hn=t.next,this.hn||(this.qh=void 0),t.value}isEmpty(){return!this.hn}}return i})(),vT=(()=>{class i{constructor(t,e,s=Number.MAX_SAFE_INTEGER){this.sI=t,this.rI=e,this.Ay=s,this.dn=0,this.Wh=0,this.Ct=new _T,this.Et=new Map}push(t){if(t.lengththis.Ay)return t;if(this.Et.has(t))return{"$\xA7":this.Et.get(t)};for(;!this.Ct.isEmpty()&&(this.Et.size>=this.rI||this.Wh+t.length>this.Ay);){let s=this.Ct.shift();this.Et.delete(s),this.Wh-=s.length}this.Wh+=t.length;let e=this.dn++;return this.Et.set(t,e),this.Ct.push(t),t}}return i})();var ST=(()=>{class i{constructor(t){this.Ut=new vT(t.minStringSize,t.maxElements,t.maxMemorySize)}encode(t){let e=new Set;return this.Fh(t,e)}Fh(t,e){if(t==null)return t;if(typeof t=="string")return this.Ut.push(t);if(csArray.isArray(t))return e.has(t)?t:(e.add(t),csArray.prototype.map.call(t,s=>this.Fh(s,e)));if(typeof t=="object"){if(e.has(t))return t;e.add(t);let s={};for(let n of Object.keys(t))s[n]=this.Fh(t[n],e);return s}return t}}return i})();var ie=(()=>{let i;return function(r){r[r.Active=0]="Active",r[r.Paused=1]="Paused",r[r.Stopped=2]="Stopped"}(i||(i={})),i})(),wT=(()=>{class i{constructor(t,e,s=[]){this.un=t,this.Yh=e,this.nI=s,this.Oc=null,this.Vt=ie.Active,this.it=[]}reset(){this.Oc=null,this.it=[],this.Vt=ie.Active}disconnect(){this.Vt=ie.Stopped}oI(){this.Yh(ie.Paused),this.Vt=ie.Paused,csSetTimeout(()=>{this.Vt===ie.Paused&&this.Xh()},i.STOP_TIMEOUT)}aI(){this.Yh(ie.Active),this.Vt=ie.Active,pt(this.it,this.un),this.it=[]}Xh(){this.it=[],this.Yh(ie.Stopped),this.Vt=ie.Stopped}pushEvent(t,e){if(e.isUserEvent&&(this.Oc=t.date,this.Vt!==ie.Active)){this.aI(),this.un(t);return}if(this.cI(t)){this.un(t);return}switch(this.Vt){case ie.Active:if(this.lI(t,e)){this.oI(),csArray.prototype.push.call(this.it,t);return}this.un(t);break;case ie.Paused:csArray.prototype.push.call(this.it,t);break;case ie.Stopped:break}}lI(t,e){return!e.isUserEvent&&this.Oc!==null&&t.date-this.Oc>i.INACTIVITY_TIMEOUT}cI(t){return csArray.prototype.indexOf.call(this.nI,t.type)>-1}}return i.INACTIVITY_TIMEOUT=5e3,i.STOP_TIMEOUT=5e3,i})(),AT=2e3,vh={encoding:dv.ObjCompression,opts:{minStringSize:256,maxElements:5e5,maxMemorySize:2e7}},Gn=new Set([Y.API_ERROR,Y.JAVASCRIPT_ERROR,Y.CUSTOM_ERROR,Y.TEXT_VISIBILITY,Y.POINTER_DOWN]),bT=(()=>{class i extends oe{constructor(t,e,s,n,o,c,l,u,h,p,E,m,S,A=[],x,I,C,H,M){super(),this.E=t,this.z=e,this.uI=s,this.V=n,this.R=o,this.Re=c,this.St=l,this.ze=u,this.wt=h,this.Y=p,this.$t=E,this.kt=m,this.Xe=S,this.Ye=A,this.by=x,this.le=I,this.Ho=C,this.wi=H,this.Ki=M,this.As=0,this.$r=new rp,this.Kh=!0,this.Ty=Io(()=>{this.z.eventsCount()>0&&this.Ry()},AT),this.Qi=N=>this.processBrowserEvent(N),this.jo=N=>this.ne(N),this.Mc=0,this.$o=0,this.ni=new ip,this.Qh=!1,this.Cy=50*1024,this.pr=!1,this.Bo=!1,this.cr=[],this.Jh=null,this.Dc=new wT(N=>this.K(N),N=>{switch(N){case ie.Active:this.hI();break;case ie.Stopped:this.dI();break}},[Y.RESOURCE_HASHES,Y.TEXT_VISIBILITY,Y.API_ERROR,Y.JAVASCRIPT_ERROR]),this.Iy=N=>{this.$t.removeBatchInProgress(`${N.params.sn}.${N.params.pn}.${N.params.ri}`)}}init(){this.Zh(),this.Y.onLoad(this.Iy),this.Y.onError(this.Iy)}hI(){csArray.prototype.forEach.call(this.by,t=>t.start())}dI(){csArray.prototype.forEach.call(this.by,t=>t.stopForInactivity())}Zh(){var t,e,s;this.Xe.onEvent(this.Qi,this.jo),(t=this.wt)===null||t===void 0||t.onInputNodeToEncrypt(this.jo),(e=this.wt)===null||e===void 0||e.onApiErrorToEncrypt(n=>{this.Py(n)}),(s=this.wt)===null||s===void 0||s.onUserIdentifierToEncrypt(this.Qi),this.ni.onEvent(n=>{if(csSetTimeout(()=>this.gr(ts.PAGE_STATE,n)),n!==Ne.Visible){if(n===Ne.Blur)return this.Ny();if(!this.Qh)return this.Qh=!0,csSetTimeout(()=>{this.Qh=!1}),n===Ne.Hidden?this.Ny():this.fI()}})}isRecording(){return this.R.hasValidSession()&&this.isStarted}Ny(){if(!this.canSendEvents())return;this.Xe.flush(),this.$t.saveBatchesInProgress(),pt(this.Ye,l=>{var u,h;return pt((h=(u=l.getPendingEvents)===null||u===void 0?void 0:u.call(l))!==null&&h!==void 0?h:[],p=>this.z.addEvent(p))});let t=this.z.getEvents();if(t.length===0)return;this.gr(ts.PENDING_EVENTS,this.Xe.pendingEvents);let e=this.Y.getQueryParams();e.rst=this.getRecordingStartTimestamp(),this.$o=t[t.length-1].date,e.let=this.getRecordingLastEventTimestamp();let s=this.z.getCurrentRequestIndex(),n=s.getCurrentIndex();e.ri=n.toString(),this.kt.removeQueryParams(),this.kt.setQueryParams(e);let o=this.Oy(),c=Ue(o);if(c.length>this.Cy){let l=csArray.prototype.filter.call(o,h=>Gn.has(h.type));if(l.length>0){let h=Ue(l);this.kt.send(h)||this.$t.save({key:`${e.sn}.${e.pn}.${e.ri}.last`,metadata:{...e,datatype:"json"},events:h}),s.increment()}let u=csArray.prototype.filter.call(o,h=>!Gn.has(h.type));if(u.length>0){e.ri=s.getCurrentIndex().toString();let h=Ue(u);this.$t.save({key:`${e.sn}.${e.pn}.${e.ri}.last`,metadata:{...e,datatype:"json"},events:h}),s.increment()}}else this.kt.send(c)||this.$t.save({key:`${e.sn}.${e.pn}.${e.ri}.last`,metadata:{...e,datatype:"json"},events:c}),s.increment();this.kt.removeQueryParams(),this.z.clearEvents()}fI(){if(!this.canSendEvents())return;this.Xe.flush();let t=this.Y.getQueryParams();this.$t.saveBatchesInProgress(),t.rst=this.getRecordingStartTimestamp(),delete t.ri,t.hlm="true",this.kt.removeQueryParams(),pt(this.Ye,o=>{var c,l;return pt((l=(c=o.getPendingEvents)===null||c===void 0?void 0:c.call(o))!==null&&l!==void 0?l:[],u=>this.z.addEvent(u))});let e=this.z.getEvents();if(e.length===0){delete t.let,delete t.rst,this.kt.setQueryParams(t),this.kt.send(),this.kt.removeQueryParams();return}this.gr(ts.PENDING_EVENTS,this.Xe.pendingEvents),this.$o=e[e.length-1].date,t.let=this.getRecordingLastEventTimestamp(),this.kt.setQueryParams(t);let s=this.Oy(),n=Ue(s);if(n.length>this.Cy){let o=csArray.prototype.filter.call(s,l=>Gn.has(l.type));if(o.length>0){let l=Ue(o);this.kt.send(l)||this.$t.save({key:`${t.sn}.${t.pn}.last`,metadata:{...t,datatype:"json"},events:l})}else delete t.let,delete t.rst,delete t.ri,this.kt.removeQueryParams(),this.kt.setQueryParams(t),this.kt.send(),this.kt.removeQueryParams();let c=csArray.prototype.filter.call(s,l=>!Gn.has(l.type));if(c.length>0){t.rst=this.getRecordingStartTimestamp(),t.let=this.getRecordingLastEventTimestamp();let l=this.z.getCurrentRequestIndex(),u=l.getCurrentIndex();t.ri=u.toString();let h=Ue(c);this.$t.save({key:`${t.sn}.${t.pn}.${t.ri}.last`,metadata:{...t,datatype:"json"},events:h}),l.increment()}}else this.kt.send(n)||(this.$t.save({key:`${t.sn}.${t.pn}.${t.ri}.last`,metadata:{...t,datatype:"json"},events:n}),this.z.getCurrentRequestIndex().increment());this.kt.removeQueryParams(),this.z.clearEvents()}blockSendingEventsFromSerialization(){this.Kh=!1}allowSendingEventsFromSerialization(){this.Kh=!0}canSendEvents(){return this.Kh}onIframeJavascriptError(t){var e;if(this.Re&&this.wi){(e=this.Re)===null||e===void 0||e.anonymize(t);let s=this.wi.translate({message:t.message,colno:t.colno,lineno:t.lineno,filename:t.filename,timestamp:U.now(),type:"JSError"});s&&this.Qi(s)}}onIframeCustomError(t){if(this.Ki){let e=this.Ki.translate({...t,timestamp:U.now(),type:"CustomError"});e&&this.Qi(e)}}onIframeDetailedApiError(t){this.My(t)}onIframeRecordingUserEvent(t){for(let e of t)this.ne(e)}onIframeRecordingBrowserEvent(t){if(this.isStarted)for(let e of t)this.processBrowserEvent(e)}processBrowserEvent(t){this.V.isCurrentPageviewValid()&&this.Dc.pushEvent(t,{isUserEvent:!1})}ne(t){this.V.refreshSession(),this.V.isSessionValid()&&this.Dc.pushEvent(t,{isUserEvent:!0})}K(t){this.z.addEvent(t),this.z.isThresholdReached()?this.pushEvents():this.z.isFull()&&this.Ty(),this.Dy(t)}pI(t){return t.type===Y.DOM_INITIAL_STATE}gI(t){return t.type===Y.DOM_PATCH_STATE}ky(t,e){var s;return t}Oy(){let t=this.z.getOrderedBatchSlots(),e=[];for(let s of t){let n=this.ky(s.batch.getEvents(),s.metadata.pageNumber);csArray.prototype.push.call(e,...n)}return e}Dy(t){this.E.emitDebugEvents&&this.$r.emit("recordingEvent",{...t,typeName:Y[t.type]})}onStart(){var t;this.gr(ts.TAG_VERSION,"15.229.4+fix-36b17b73"),this.gr(ts.PAGE_STATE,_d.visibilityState),this.Dc.reset(),this.ni.start(),this.initStates(),this.Xe.start(),this.St&&this.ze&&this.St.subscribe(i.Kt,e=>this.My(e),{detailedEvent:!0}),this.E.emitDebugEvents&&this.$r.emit("replayRecordingStarted"),csArray.prototype.forEach.call(this.cr,e=>this.xy(e)),this.cr=[],this.pr&&((t=this.le)===null||t===void 0||t.enableOnlineAssets(),this.pr=!1)}onStop(){var t;this.ni.stop(),this.St&&this.St.unsubscribe(i.Kt),this.Xe.stop(),this.Dc.disconnect(),(t=this.le)===null||t===void 0||t.disableOnlineAssets()}clearStates(){this.Xe.flush(),this.Ty.cancel(),this.pushEvents(),this.Y.removeQueryParams()}initStates(){this.Mc=U.now(),this.z.getCurrentRequestIndex().reset(),this.As=0,this.Y.setQueryParams(this.uI.getRequestParameters())}pushEvents(){pt(this.Ye,t=>{var e;return(e=t.flushEvents)===null||e===void 0?void 0:e.call(t)}),this.z.eventsCount()>0&&(this.isStarted?this.Ry():this.z.clearEvents())}Ry(){if(!this.canSendEvents())return;let t=this.z.getOrderedBatchSlots();for(let e of t){let s=e.batch.getEvents();if(!s.length)continue;let n=this.ky(s,e.metadata.pageNumber);this.$o=n[n.length-1].date;let o=e.metadata.requestIndex,c=o.getCurrentIndex(),l=this.Mc>this.$o?n[0].date:this.Mc;this.Y.setQueryParams({pn:csString(e.metadata.pageNumber),ri:c.toString(),rst:l.toString(),let:this.getRecordingLastEventTimestamp()});let u=this.Y.getQueryParams();this.$t.addBatchInProgress(`${u.sn}.${u.pn}.${c}`,{...this.Y.getQueryParams()},n),this.Y.send(n),o.increment(),e.batch.clearEvents(),this.Ly&&this.Ly()}this.z.clearEmptyBatchSlots()}addInitialDom(t){this.z.addEventByTimestamp(t),this.Dy(t)}My(t){if(this.Ho&&(t.plainCustomRequestHeaders||t.plainCustomResponseHeaders||t.requestBodyAttributes||t.responseBodyAttributes||t.customRequestHeaders||t.customResponseHeaders||t.queryParameters||t.requestBody||t.responseBody)){if(this.Ho.truncate(t),this.wt){this.wt.registerApiErrorToEncrypt(t);return}t.customRequestHeaders="",t.customResponseHeaders="",t.requestBodyAttributes="",t.responseBodyAttributes="",t.queryParameters="",t.requestBody="",t.responseBody=""}this.Py(t)}Py(t){if(this.As{var e;return(e=t.releaseResources)===null||e===void 0?void 0:e.call(t)})}gr(t,e){if(!this.E.emitRecordInfoEvents)return;let s={date:U.now(),type:Y.RECORDING_INFO_EVENT,args:e==null?[t]:[t,e]};this.z.addEvent(s)}}return i.Kt="RecordingService",i.vI=255,i.mI=20,i._I="etrp",i.EI="etrs",i.Vy="1",L([ne("addInitialDom")],i.prototype,"addInitialDom",null),i})(),TT=k(857)._R,RT="T",CT=(()=>{class i extends oe{constructor(t,e,s){super(),this.de=t,this.kt=e,this.Y=s,this.td=!1,this.Go={},this.SI=n=>{if(n.length!==0)for(let o of n){let{metadata:c,events:l}=o;this.wI(c.rt)&&this.Y.send(l,c)}},_w.addEventListener("focus",()=>{this.recover()})}onStart(){this.Go={}}onStop(){}recover(){this.de.recover(this.SI)}addBatchInProgress(t,e,s){this.Go[t]={metadata:{...e},events:s}}removeBatchInProgress(t){delete this.Go[t]}blockSendingLastMessage(){this.td=!1}allowSendingLastMessage(){this.td=!0}sendLastMessageBeacon(){if(this.td){let{ri:t,rst:e,let:s,...n}=this.Y.getQueryParams();n.hlm="true",this.kt.setQueryParams(n),this.kt.send()}}wI(t){return!!t&&!csString.prototype.includes.call(t,RT)}saveBatchesInProgress(){csArray.prototype.forEach.call(Object.keys(this.Go),t=>{let{metadata:e,events:s}=this.Go[t];this.de.save({key:`${e.sn}.${e.pn}.${e.ri}`,metadata:{...e,datatype:"json"},events:TT.stringify(s)})})}save(t){this.de.save(t)}}return L([V("RecordingRecovery")],i.prototype,"recover",null),i})(),IT=k(857)._R,PT=(()=>{let i;return function(r){r[r.NOT_EXIST=2]="NOT_EXIST"}(i||(i={})),i})(),NT=8*1024*1024,OT=(()=>{class i extends oe{constructor(t,e,s){super(),this.Ue=t,this.Hy=e,this.Mt=s,this.sd={},this.jy=new Set,this._i=!1}initState(){vd()&&(this.Ge=this.Mt.getRequestParameters(),this.AI=`${this.Hy}/exist?${Jr.toQuery(this.Ge)}`,this.bI=`${this.Hy}/putTag?${Jr.toQuery(this.Ge)}`,this.$y=Eo(async()=>{if(this._i){this.$y();return}this._i=!0;try{await this.TI()}finally{this._i=!1}},300),this.Ue.onSendStaticResource(t=>{this.By(t)}))}onStart(){}onStop(){}onIframeStaticResource(t){this.By(t)}By(t){this.Gy(t.resource.hash,t.resource.data),t.nestedResources&&t.nestedResources.length>0&&csArray.prototype.forEach.call(t.nestedResources,e=>{this.Gy(e.hash,e.data)})}Gy(t,e){this.jy.has(t)||(this.jy.add(t),this.sd[t]=e,this.$y())}async TI(){let t=this.sd;this.sd={};let e=await this.RI(t);if(!e.length)return;let s=this.CI(e);await Promise.all(csArray.prototype.map.call(s,n=>_w.fetch(this.bI,{method:"POST",body:n})))}async II(t){try{let e=Object.keys(t);if(!e.length)return[];let s={projectId:this.Ge.pid,filter:PT.NOT_EXIST,hashes:e,touch:!0};return await(await _w.fetch(this.AI,{method:"POST",body:IT.stringify(s)})).json()}catch{return[]}}async RI(t){let e=[],s=await this.II(t);return csArray.prototype.forEach.call(s,n=>{let o=t[n];o?csArray.prototype.push.call(e,{hash:n,data:o}):$.warn("SRM: received unknown hash: "+n)}),e}CI(t){let e=0,s=[new FormData];for(let n of t){let{data:o,hash:c}=n,l=s.length-1;if(e=e+o.size,e{class i{constructor(){this.dn=1}getCurrentIndex(){return this.dn}increment(){this.dn+=1}reset(){this.dn=1}getRequestParameters(){return{ri:`${this.dn}`}}}return i})(),gp=2*1e3*1024,MT=200,wh=(()=>{class i{constructor(t=gp){this.Yt=[],this.rd=new il(t)}addEvent(t){this.rd.addString(Ue(t)),csArray.prototype.push.call(this.Yt,t)}addEventByTimestamp(t){let e=0;for(;e=t.date);e+=1);csArray.prototype.splice.call(this.Yt,e,0,t)}eventsCount(){return this.Yt.length}clearEvents(){this.rd.reset(),this.Yt=[]}isFull(){return this.eventsCount()>=MT}isThresholdReached(){return this.rd.isThresholdReached()}getEvents(){return this.Yt}extractEvents(...t){let e=[],s=[];return csArray.prototype.forEach.call(this.Yt,n=>{csArray.prototype.indexOf.call(t,n.type)!==-1?csArray.prototype.push.call(e,n):csArray.prototype.push.call(s,n)}),this.Yt=s,e}stringifyEvents(){return Ue(this.Yt)}yO(t){t.type===Y.INITIAL_DOM&&(_w.CSDomSerialized=_w.CSDomSerialized?_w.CSDomSerialized+1:1)}}return L([ne("RecordingBatch.addEvent")],i.prototype,"addEvent",null),i})(),DT=3,kT=8,xT=(()=>{class i{constructor(t,e=gp,s=DT){this.PI=t,this.zy=e,this.nd=s,this.kc={}}addEvent(t){this.qy().addEvent(t)}addEventByTimestamp(t){this.qy().addEventByTimestamp(t)}eventsCount(){return csArray.prototype.reduce.call(this.mr(),(t,e)=>t+e.batch.eventsCount(),0)}isFull(){return csArray.prototype.some.call(this.mr(),t=>t.batch.isFull())}isThresholdReached(){let t=this.mr();return t.length>=this.nd||csArray.prototype.some.call(t,e=>e.batch.isThresholdReached())}getEvents(){return csArray.prototype.reduce.call(this.getOrderedBatchSlots(),(t,e)=>csArray.prototype.concat.call(t,e.batch.getEvents()),[])}extractEvents(...t){return csArray.prototype.reduce.call(this.getOrderedBatchSlots(),(e,s)=>csArray.prototype.concat.call(e,s.batch.extractEvents(...t)),[])}stringifyEvents(){return Ue(this.getEvents())}clearEvents(){csArray.prototype.forEach.call(this.mr(),t=>t.batch.clearEvents())}clearEmptyBatchSlots(){let t=this.getOrderedBatchSlots();for(let e=0;eMath.max(this.nd,kT)&&$.warn(`RecordingBatchGroup: max number of slots overflowed(${this.mr().length}/${this.nd})`),s}qy(){return this.Wy().batch}getCurrentRequestIndex(){return this.Wy().metadata.requestIndex}}return i})();function LT(i,r){return i.metadata.pageNumber-r.metadata.pageNumber}function pe(i,r=0){let t=Math.pow(10,r);return Math.round(i*t)/t}var VT=(()=>{class i{constructor(t,e){this.Gt=t,this.O=e,this.fs=[{boundElement:_w,type:"hashchange",listener:()=>this.hashChangeListener()},{boundElement:_d,type:"visibilitychange",listener:()=>this.visibilityChangeListener()}]}onEvent(t){this.B=t}start(){this.Js(),this.triggerInitialEvents()}stop(){this.Zs()}Js(){csArray.prototype.forEach.call(this.fs,t=>$t(t))}Zs(){csArray.prototype.forEach.call(this.fs,t=>xt(t))}triggerInitialEvents(){this.hashChangeListener()}hashChangeListener(){let t={type:Y.HASH_CHANGE,args:[this.O.anonymizePII(this.Gt.href)],date:U.now()};this.B(t)}visibilityChangeListener(){let t={type:Y.VISIBILITY_CHANGE,args:[_d.visibilityState],date:U.now()};this.B(t)}}return L([V("hashChange")],i.prototype,"hashChangeListener",null),L([V("visibilityChange")],i.prototype,"visibilityChangeListener",null),i})();function UT(i){if(!O(i))return null;let t=/iP(ad|hone|od).+Version\/(\d+)\..*Safari/i.exec(i);return t?Number(t[2]):null}var HT=33,jT=(()=>{class i{constructor(){this.eventType="user",this.ad=[],this.VI=[{type:"pointerup",listener:e=>this.pointerUpListener(e),boundElement:_d},{type:"pointermove",listener:e=>this.pointerMoveListener(e),boundElement:_d},{type:"pointerdown",listener:e=>this.pointerDownListener(e),boundElement:_d}],this.UI=[{type:"touchstart",listener:e=>this.touchStartListener(e),boundElement:_d},{type:"touchmove",listener:e=>this.touchMoveListener(e),boundElement:_d},{type:"touchend",listener:e=>this.touchEndCancelListener(e),boundElement:_d},{type:"touchcancel",listener:e=>this.touchEndCancelListener(e),boundElement:_d}],this.xc=[{type:"click",listener:e=>this.clickListener(e),boundElement:_d},{type:"keyup",listener:e=>this.keyUpListener(e),boundElement:_d},{type:"keydown",listener:e=>this.keyDownListener(e),boundElement:_d},{type:"copy",listener:e=>this.copyListener(e),boundElement:_d},{type:"cut",listener:e=>this.cutListener(e),boundElement:_d},{type:"paste",listener:e=>this.pasteListener(e),boundElement:_d},{type:"scroll",listener:e=>this.scrollListener(csEventtarget.apply(e)),boundElement:_d},{type:"mouseover",listener:e=>this.mouseOverListener(e),boundElement:_d}],this.cd=[{type:"scroll",listener:e=>this.scrollListener(csEventtarget.apply(e))}];let t=UT(_w.navigator.userAgent);(t===null||t&&t>=16)&&csArray.prototype.push.call(this.cd,{type:"mouseover",listener:e=>this.mouseOverListener(e)}),this.ws=new fn((e,s)=>{switch(s){case"initial":case"added":this.Js(e);break;case"removed":this.Zs(e);break}})}init(){this.HI(),this.jI(),this.Xu()}onEvent(t){csArray.prototype.push.call(this.ad,t)}Ee(t,e=!1){csArray.prototype.forEach.call(this.ad,s=>s(t,e))}start(){this.$I(),this.Js(_d),this.ws.observe()}stop(){this.Zs(_d),this.ws.disconnect(),this.ad=[]}jI(){this.BI()&&csArray.prototype.push.call(this.xc,...this.VI)}HI(){this.GI()&&csArray.prototype.push.call(this.xc,...this.UI)}Js(t){Xr(t)?csArray.prototype.forEach.call(this.xc,e=>$t(e)):csArray.prototype.forEach.call(this.cd,e=>{let s={type:e.type,listener:e.listener,boundElement:t};$t(s)})}Zs(t){Xr(t)?csArray.prototype.forEach.call(this.xc,e=>xt(e)):csArray.prototype.forEach.call(this.cd,e=>{let s={type:e.type,listener:e.listener,boundElement:t};xt(s)})}BI(){return"PointerEvent"in _w&&typeof _w.PointerEvent=="function"}GI(){return"TouchEvent"in _w&&typeof _w.TouchEvent=="function"}$I(){this.zI()}zI(){let t=qt.getScrollContainer()||_d,e=ct(t),s=this.Fy(t);if(s.top!==0||s.left!==0){let n={type:Y.SCROLL,args:[e,s.left,s.top],date:U.now()};this.Ee(n,!0)}}Fy(t){return t===_d?{top:_w.pageYOffset,left:_w.pageXOffset}:{top:t.scrollTop,left:t.scrollLeft}}scrollListener(t){if(B.isMaskedElement(t)||B.isMaskedElementChild(t))return;let e=ct(t),s=this.Fy(t),n={type:Y.SCROLL,args:[e,s.left,s.top],date:U.now()};this.Ee(n)}mouseOverListener(t){if(B.isMaskedElementChild(t.target))return;let e=ct(t.target),s={type:Y.MOUSE_OVER,args:[e],date:U.now()};this.Ee(s)}clickListener(t){let e=Qt(t);if(B.isMaskedElementChild(e))return;let s=ct(e),n={type:Y.CLICK,args:[s],date:U.now()};this.Ee(n)}keyUpListener(t){let e=Qt(t);if(B.isMaskedElementChild(e))return;let s=ct(e),n=this.G[t.key];if(n===void 0)return;let o={type:Y.KEY_UP,args:[s,n],date:U.now()};this.Ee(o)}keyDownListener(t){let e=Qt(t);if(B.isMaskedElementChild(e))return;let s=ct(e),n=this.G[t.key];if(n===void 0)return;let o={type:Y.KEY_DOWN,args:[s,n],date:U.now()};this.Ee(o)}copyListener(t){let e=Qt(t);if(B.isMaskedElementChild(e))return;let s=ct(e),n={type:Y.CLIPBOARD_COMMAND,args:[s,Ys.COPY],date:U.now()};this.Ee(n)}cutListener(t){let e=Qt(t);if(B.isMaskedElementChild(e))return;let s=ct(e),n={type:Y.CLIPBOARD_COMMAND,args:[s,Ys.CUT],date:U.now()};this.Ee(n)}pasteListener(t){let e=Qt(t);if(B.isMaskedElementChild(e))return;let s=ct(e),n={type:Y.CLIPBOARD_COMMAND,args:[s,Ys.PASTE],date:U.now()};this.Ee(n)}pointerUpListener(t){let e=Qt(t);if(B.isMaskedElementChild(e))return;let s=ct(e),n={type:Y.POINTER_UP,args:[t.pointerId,t.pointerType,pe(t.clientX,1),pe(t.clientY,1),s,t.button],date:U.now()};this.Ee(n)}pointerMoveListener(t){let e={type:Y.POINTER_MOVE,args:[t.pointerId,t.pointerType,pe(t.clientX,1),pe(t.clientY,1)],date:U.now()};this.Ee(e)}pointerDownListener(t){let e=Qt(t);if(B.isMaskedElementChild(e))return;let s=ct(e),n={type:Y.POINTER_DOWN,args:[t.pointerId,t.pointerType,pe(t.clientX,1),pe(t.clientY,1),s,t.button,{pageX:pe(t.pageX,1),pageY:pe(t.pageY,1)}],date:U.now()};this.Ee(n)}touchStartListener(t){if(!t.changedTouches)return;let{changedTouches:e}=t;for(let s=0;s{class i{constructor(t){this.C=t,this.xi=[],this.qI=tl(e=>this.processUpdateRulesInATick(e)),this.C=e=>er(()=>t(e))}observe(){csArray.prototype.push.call(this.xi,it(_w.CSSStyleSheet,"insertRule",(t,{args:e})=>{this.processInsertRule(t,e)}),it(_w.CSSStyleSheet,"deleteRule",(t,{args:e})=>{this.processDeleteRule(t,e)}),it(_w.CSSGroupingRule,"insertRule",t=>{this.processUpdateRule(t)}),it(_w.CSSGroupingRule,"deleteRule",t=>{this.processUpdateRule(t)}),it(_w.StyleSheet,"disabled",(t,{args:e,oldValue:s})=>{let n=e[0];n!==s&&this.WI(t,n)}),it(_w.CSSStyleDeclaration,"setProperty",t=>{let e=t.parentRule;e instanceof CSSStyleRule&&this.processUpdateRule(e)}),it(_w.CSSStyleDeclaration,"removeProperty",t=>{let e=t.parentRule;e instanceof CSSStyleRule&&this.processUpdateRule(e)}),it(_w.CSSStyleRule,"style",t=>{this.processUpdateRule(t)},{mode:ns.Properties}))}disconnect(){csArray.prototype.forEach.call(this.xi,t=>t()),this.xi=[]}processInsertRule(t,[e,s]){if(t[Oa]==null&&!t.ownerNode)return;let n={type:"cssRuleInserted",sheet:t,rule:e,index:s};this.C(n)}processUpdateRule(t){let e=t;for(;e.parentRule!==null;)e=e.parentRule;e.parentStyleSheet!==null&&this.qI.push(e)}processUpdateRulesInATick(t){for(let e of t){if(e.parentStyleSheet===null)return;let s=e.parentStyleSheet,n=csArray.prototype.indexOf.call(so(s.cssRules),e);if(n===-1)return;let o={type:"cssRuleUpdated",sheet:s,rule:e.cssText,index:n};this.C(o)}}processDeleteRule(t,[e]){if(t[Oa]==null&&!t.ownerNode)return;let s={type:"cssRuleDeleted",sheet:t,index:e};this.C(s)}WI(t,e){if(t[Oa]==null&&!t.ownerNode)return;let s={type:"cssStyleSheetDisabled",sheet:t,disabled:e};this.C(s)}}return bt([V()],i.prototype,"observe",null),bt([V()],i.prototype,"disconnect",null),bt([V()],i.prototype,"processInsertRule",null),bt([V()],i.prototype,"processUpdateRule",null),bt([V()],i.prototype,"processUpdateRulesInATick",null),bt([V()],i.prototype,"processDeleteRule",null),i})(),BT=(()=>{class i{constructor(t=Number.POSITIVE_INFINITY){this.Rs=[],this.it=[],this.FI=t}next(t){this.it.length===this.FI&&csArray.prototype.shift.call(this.it),csArray.prototype.push.call(this.it,t),this.it.length===1&&csSetTimeout(()=>this.clear());for(let e of this.Rs)e(t)}subscribe(t){if(ln(this.Rs,s=>t===s))return()=>{this.Rs=csArray.prototype.filter.call(this.Rs,s=>s!==t)};csArray.prototype.push.call(this.Rs,t);for(let s of this.it)t(s);return()=>{this.Rs=csArray.prototype.filter.call(this.Rs,s=>s!==t)}}clear(){this.it=[]}hasObservers(){return this.Rs.length>0}}return i})(),GT=(()=>{var i;class r{constructor(e){this.C=e}observe(){this.YI=i.Wo.subscribe(e=>this.C(e)),i.Lc||(i.Lc=!0,i.Co.observe(),ve(_d,NodeFilter.SHOW_ELEMENT).visitAll(s=>{i.Yi.add(s),i.Wo.next(s)}))}disconnect(){i.Lc&&(this.YI(),i.Wo.hasObservers()||(i.Lc=!1,i.Co.disconnect(),i.Wo.clear(),i.Yi.clear()))}}return i=r,r.Yi=new Zc,r.Wo=new BT,r.XI=un(t=>{er(()=>{for(let e of t)e.type==="childList"&&pt(e.addedNodes,s=>{ve(s,NodeFilter.SHOW_ELEMENT).visitAll(o=>{i.Yi.has(o)||(i.Yi.add(o),i.Wo.next(o))})})})},"ElementObserver.findAllElements"),r.Lc=!1,r.Co=new yi(i.XI),bt([V()],r.prototype,"observe",null),bt([V()],r.prototype,"disconnect",null),r})(),zT=(()=>{class i{constructor(t={maskingEnabled:!0}){this.KI=t}onScannedAsset(t){this.Vc=t}Uc(){let t=_w.location.href,e=csString.prototype.indexOf.call(t,"#");return e===-1?t:csString.prototype.substring.call(t,0,e)}scanCssString(t){this.ld(Wr(t))}scanElement(t,e){this.KI.maskingEnabled&&(B.getMaskedElementDetails(t).state!==B.MaskedElementState.NotMasked||e&&B.isMaskedAttribute(t,e))||(wo(t)?this.QI(t):cd(t)?this.JI(t,e):(this.ZI(t,e),this.tP(t,e),this.eP(t,e)))}JI(t,e){var s;if((!e||e==="href")&&t.href){let o={assetId:((s=t.sheet)===null||s===void 0?void 0:s.href)||t.href,assetBasePath:this.Uc(),assetRawPath:Tw(t)};this.Vc({type:"stylesheet",asset:o})}}QI(t){var e;let s=new Set;if(t.textContent)for(let o of Wr(t.textContent))s.add(o);let n;try{n=(e=t.sheet)===null||e===void 0?void 0:e.cssRules}catch(o){o.name==="SecurityError"||o.name==="InvalidAccessError"||$.error(o.message)}if(n)for(let o=0;othis.ud(e)),e=>({rawUrl:e,absoluteUrl:ji(e)})),e=>{let s={assetId:e.absoluteUrl,assetBasePath:this.Uc(),assetRawPath:e.rawUrl};this.Vc({type:"asset",asset:s})})}iP(t){return/^https:\/\/\w+:\w+@/.test(t)}}return i})(),qT=(()=>{class i{constructor(){this.bt=!1,this.Yy=new $T(t=>t.type==="cssRuleInserted"&&this.rP(t)),this.nP=tl(t=>{this.bt&&t.length>0&&this.L.task(()=>pt(t,e=>this.Fo.scanElement(e)))}),this.oP=({type:t,asset:e})=>{var s,n,o;t==="stylesheet"&&((s=this.aP)===null||s===void 0||s.call(this,e)),(n=this.cP)===null||n===void 0||n.call(this,e);let c={date:U.now(),type:Y.STATIC_RESOURCE_URL,args:[e.assetId]};(o=this.B)===null||o===void 0||o.call(this,c)},this.L=new Bi,this.Xy=new GT(t=>this.lP(t)),this.j=new yi(t=>this.Dr(t)),this.Fo=new zT,this.Fo.onScannedAsset(this.oP)}onEvent(t){this.B=t}onAsset(t){this.cP=t}onStyleSheetFound(t){this.aP=t}start(){this.bt||(this.bt=!0,this.Yy.observe(),this.Xy.observe(),this.j.observe())}stop(){this.bt&&(this.Yy.disconnect(),this.Xy.disconnect(),this.j.disconnect(),this.bt=!1)}rP(t){!t.rule||!this.bt||this.Fo.scanCssString(t.rule)}lP(t){this.bt&&B.getMaskedElementDetails(t).state===B.MaskedElementState.NotMasked&&this.nP.push(t)}Dr(t){csSetTimeout(()=>{for(let e of t)switch(e.type){case"attributes":this.Fo.scanElement(e.target,e.attributeName);break;case"characterData":this.uP(e.target);break;case"childList":}})}uP(t){Zn(t)&&csNodeparentNode.apply(t)&&wo(csNodeparentNode.apply(t))&&this.Fo.scanCssString(t.data)}}return i})(),WT="csPersisted",Ah="v2/recording",FT=["replay:resourceManager:getStatus","cssrm:getStatus"],YT=(()=>{class i{constructor(t,e,s,n,o,c,l,u,h,p,E,m,S,A,x,I,C,H,M,N,W,q){this.Es=t,this.R=e,this.E=s,this.Ge=n,this.S=o,this.O=c,this.V=l,this.we=u,this.Re=h,this.St=p,this.ze=E,this.At=m,this.w=S,this.bs=A,this.Ky=x,this.se=I,this.jt=C,this.ft=H,this.Ho=M,this.nt=N,this.EO=W,this.wt=q,this.Hc=null}init(){var t,e;let s=[],n=[];csArray.prototype.push.call(n,new hb),csArray.prototype.push.call(n,new pb),this.Yo=new gb(this.nt.shouldUseAnonymization(),this.E.whitelistedAttributes,this.O,this.E.anonymizeDigits),this.yr();let o=new sT(WT);this.hP(o),this.z=new xT(()=>{var A;return((A=this.R.getSession())===null||A===void 0?void 0:A.pageNumber)||0});let c=new qT;csArray.prototype.push.call(s,c),yc.isSupported()&&(this.le=new yc,this.Ue=new nT,this.Qy=new OT(this.Ue,this.E.getStaticResourceManagerUri(),this.Ge),this.Ky.addListener(this.Qy),csArray.prototype.push.call(n,this.le));let l=new nn(this.Ge,{getRequestParameters:()=>({let:this.recordingService.getRecordingLastEventTimestamp()})},{getRequestParameters:()=>({rst:this.recordingService.getRecordingStartTimestamp()})},{getRequestParameters:()=>({rt:csArray.prototype.join.call(this.R.getRecordingTypes(),",")})}),u=new sp(`${this.E.getRecordingUri()}/${Ah}`);csArray.prototype.push.call(n,this.Yo),csArray.prototype.push.call(n,new Nb(this.ft)),csArray.prototype.push.call(n,new Mb),this.Er=new jT,this.Er.init(),csArray.prototype.push.call(s,this.Er),this.$t=new CT(o,u,this.Y),csArray.prototype.push.call(s,new VT(_w.location,this.O));let h=new qb,p=[this.we,h,new ET(csArray.prototype.filter.call(s,A=>A)),new Wb,new Fb];this.Nc=new Yb,this.fP=new Xb(A=>this.Re.anonymize(A)),this.wi=new yT(this.Nc),csArray.prototype.push.call(p,this.Nc),csArray.prototype.push.call(n,this.fP);let E=new Zb(p,n),m=new mT(E,this.w,this.Ue,this.wi,this.Ki),S=[h];this.recordingService=new bT(this.E,this.z,l,this.V,this.R,this.Re,this.St,this.ze,this.wt,this.Y,this.$t,u,m,s,S,this.le,this.Ho,this.wi,this.Ki),this.bs.addListener(this.recordingService),this.Ky.addListener(this.recordingService),this.recordingService.init(),this.S.register(NS,()=>this.R.isReplayRecorded()&&!this.se.isUrlExcludedForSessionReplay()),this.S.register(qf,()=>{this.recordingService.activateOnlineAssetsOnNextPageview(),this.w.emitRecordingContextChange()}),this.S.register(FT,()=>this.recordingService.getStaticResourceManagerStatus()),this.Xo=new rT(this.w,this.R),this.bs.addListener(this.Xo),this.Es.enableRecordingContext(this.recordingService,this.R,this.Xo),this.dd()}onAfterNaturalPageView(){var t;this.se.isUrlExcludedForSessionReplay()?this.recordingService.resetOnlineAssetsOnPageview():this.recordingService.updateOnlineAssetsOnPageview(),(t=this.Qy)===null||t===void 0||t.initState()}onStartTracking(){this.$t.recover(),this.yr(),this.R.isReplayRecorded()&&!this.se.isUrlExcludedForSessionReplay()&&(this.jc(),this.Hc||(this.Hc=new tT(()=>G.counters.featureUsage.count("form-associated-custom-elements")),this.Hc.start()))}onArtificialPageViewEnd(){this.R.isReplayRecorded()&&!this.se.isUrlExcludedForSessionReplay()&&this.$t.sendLastMessageBeacon(),this.recordingService.clearStates(),this.Ko()}onAfterArtificialPageView(){this.yr(),this.R.isReplayRecorded()&&!this.se.isUrlExcludedForSessionReplay()?(this.recordingService.updateOnlineAssetsOnPageview(),this.jc()):this.recordingService.resetOnlineAssetsOnPageview()}onBeforeSessionRenewal(){this.recordingService.clearStates(),this.Ko()}onOptout(){var t;this.Ko(),this.recordingService.onOptOut(),(t=this.Hc)===null||t===void 0||t.stop()}onReplayUnanonymizationConsentGranted(){this.yr(),this.recordingService.triggerUnanonymizationConsentGranted(),this.w.emitRecordingContextChange()}onReplayUnanonymizationConsentWithdrawn(){this.yr(),this.recordingService.triggerUnanonymizationConsentWithdrawn(),this.w.emitRecordingContextChange()}onCollectStateChange(t,e){t===X.QUOTA_REACHED||t===X.ANALYTICS_ONLY&&e===Ui.ETR_OFF?(this.recordingService.clearEvents(),this.Ko()):(this.Y.setQueryParams({rt:csArray.prototype.join.call(this.R.getRecordingTypes(),",")}),this.recordingService.pushEvents(),this.Xo.onCollectStateChange(t,e))}onTargetingRulesMatched(){this.R.isReplayRecorded()&&!this.se.isUrlExcludedForSessionReplay()&&!this.recordingService.isRecording()&&this.jc()}onInitialDomStart(){this.recordingService.blockSendingEventsFromSerialization(),this.$t.blockSendingLastMessage()}onInitialDomDone(t){this.recordingService.allowSendingEventsFromSerialization(),this.recordingService.addInitialDom(t),this.$t.allowSendingLastMessage(),this.Er.start(),this.recordingService.pushEvents()}onAfterReplayRecordingConsentGranted(){this.R.isReplayRecorded()&&!this.se.isUrlExcludedForSessionReplay()&&(this.jc(),this.recordingService.triggerRecordingForSessionGranted())}onAfterReplayRecordingConsentWithdrawn(){this.recordingService.isRecording()&&(this.recordingService.triggerRecordingForSessionWithdrawn(),this.recordingService.clearStates(),this.Ko())}dd(){var t,e,s,n,o,c;if(!((s=(e=(t=this.E.experimental)===null||t===void 0?void 0:t.sessionReplay)===null||e===void 0?void 0:e.shadowRoot)===null||s===void 0)&&s.filterByHostSelector){let l=(c=(o=(n=this.E.experimental)===null||n===void 0?void 0:n.sessionReplay)===null||o===void 0?void 0:o.shadowRoot)===null||c===void 0?void 0:c.filterByHostSelector;pt(l,u=>{re(u)&&yi.setShadowRootFilter(h=>{try{return we.call(h.host,u)}catch{return!1}})})}}jc(){this.recordingService.start(),this.$t.start(),this.w.emitRecordingContextChange()}Ko(){this.recordingService.stop(),this.$t.stop(),this.w.emitRecordingContextChange()}hP(t){let e="byteArray";this.Y=this.jt.create(`${this.E.getRecordingUri()}/${Ah}`,e,t)}yr(){var t;let e=this.nt.shouldUseAnonymization();this.Yo.setAnonymization(e),(t=this.dP)===null||t===void 0||t.setAnonymization(e)}}return L([ne("Recording.onStartTracking")],i.prototype,"onStartTracking",null),L([ne("onInitialDomDone")],i.prototype,"onInitialDomDone",null),i})(),XT=(()=>{class i{constructor(t,e){this.qt=t,this.E=e,this.Jy=!1}enableRecordingContext(t,e,s){this.Jy=!0,this.en=t,this.R=e,this.Xo=s}getRecordingContext(){var t,e,s;if(!this.Jy)return{isRecording:!1,recordingStartTimestamp:0,etrState:Ui.ETR_OFF,etrStatus:ge.ETR_DISABLED,collectState:X.ANALYTICS_ONLY};let n=this.R.getSession();return{isRecording:this.en.isRecording(),useAnonymization:this.qt.getSensitiveStatus().useAnonymization,enableOnlineResources:(t=this.en.getStaticResourceManagerStatus())===null||t===void 0?void 0:t.onlineAssets.activated,enableOnlineResourcesOnNextPageview:(e=this.en.getStaticResourceManagerStatus())===null||e===void 0?void 0:e.onlineAssets.enabledOnNextPageview,recordingStartTimestamp:parseInt(this.en.getRecordingStartTimestamp(),10),etrState:this.E.malkaEtrEnabled?Ui.ETR_ON:Ui.ETR_OFF,etrStatus:this.Xo.getEtrStatus(n),collectState:(s=n==null?void 0:n.collectState)!==null&&s!==void 0?s:X.ANALYTICS_ONLY}}}return i})();var KT=(()=>{class i{constructor(t,e,s,n,o,c,l){this.w=t,this.S=e,this.ut=s,this.ue=n,this.ie=o,this.wt=c,this.gn=l}init(){var t,e;this.gn&&this.wt&&((t=this.gn)===null||t===void 0||t.addSelector((e=this.wt)===null||e===void 0?void 0:e.getEncryptionSelectors())),this.lt()}onBeforeNaturalPageView(t){this.ue.start(),this.w.emitSensitiveStatusChange()}onStartTracking(t){this.ue.start(),this.w.emitSensitiveStatusChange()}onAfterArtificialPageView(){this.ue.stop(),this.ue.start(),this.w.emitSensitiveStatusChange()}onBeforeSessionRenewal(){this.ue.stop(),this.w.emitSensitiveStatusChange()}onOptout(){this.ue.stop(),this.w.emitSensitiveStatusChange()}onReplayUnanonymizationConsentGranted(){this.w.emitSensitiveStatusChange()}onReplayUnanonymizationConsentWithdrawn(){this.w.emitSensitiveStatusChange()}lt(){this.S.register(Gc,t=>{this.ut.setMaskedElementSettingsFromCommand(t),this.w.emitSensitiveStatusChange()}),this.S.register(ff,t=>{this.ie.setWhitelistedElementsSelector(t),this.w.emitSensitiveStatusChange()}),this.S.register(df,t=>{var e,s;(e=this.wt)===null||e===void 0||e.setEncryptionSelectors(t),(s=this.gn)===null||s===void 0||s.addSelector(t)})}}return i})(),QT=(()=>{class i extends oe{constructor(t,e,s,n,o,c){super(),this.we=t,this.ut=e,this.ie=s,this.gn=n,this.En=o,this.nt=c}onStart(){var t,e,s;this.ie.start(),this.we.setMaskedElementSettings(this.ut.getMaskedElementSettings((t=this.nt)===null||t===void 0?void 0:t.shouldMaskNonTextElements())),this.we.startIdentifier(),(e=this.gn)===null||e===void 0||e.start(),(s=this.En)===null||s===void 0||s.start()}onStop(){var t,e;this.ie.stop(),this.we.stopIdentifier(),(t=this.gn)===null||t===void 0||t.stop(),(e=this.En)===null||e===void 0||e.stop()}}return i})(),JT=(()=>{class i{constructor(t,e,s,n,o,c){this.nt=t,this.ut=e,this.ue=s,this.ie=n,this.eo=o,this.wt=c,this.io=Oc(this.eo)}getSensitiveStatus(){var t,e;return{started:this.ue.isStarted,useAnonymization:this.nt.shouldUseAnonymization(),capturedElementSelector:this.ie.getWhitelistedElementsSelector(),maskedElementSettings:this.ut.getMaskedElementSettings((t=this.nt)===null||t===void 0?void 0:t.shouldMaskNonTextElements()),encryptionSelectors:(e=this.wt)===null||e===void 0?void 0:e.getEncryptionSelectors()}}getElementSensitiveStatus(t){let e=this.ue.isStarted,s=this.nt.shouldUseAnonymization();return e?B.isMaskedElement(t)||B.isMaskedElementChild(t)?ce.MASKED:eA.shouldEncrypt(t)?ce.ENCRYPTED:ki.isEditableNode(t)?ce.ANONYMIZED:s?Qe.isWhitelistedElement(t)?ce.CAPTURED:ce.ANONYMIZED:ce.CAPTURED:ce.ANONYMIZED}getAttributeSensitiveStatus(t,e){if(!this.ue.isStarted)return ce.ANONYMIZED;let s=this.nt.shouldUseAnonymization();return B.isMaskedAttribute(t,e)?ce.MASKED:s?an(t)||Qe.isWhitelistedElement(t)||this.io.has(e)?ce.CAPTURED:ce.ANONYMIZED:ce.CAPTURED}}return i})(),ZT=(()=>{class i{constructor(t){this.V=t}onAfterVisitorRenewal(){this.V.renewSession(!0)}}return i})(),t0={MATCHED:{[X.ANALYTICS_ONLY]:X.ANALYTICS_ONLY_RULES_TARGETING,[X.RECORDING_GLOBAL_SAMPLING]:X.RECORDING_RULES_TARGETING,[X.ANALYTICS_ONLY_RECORDING_PENDING_RULES_TARGETING]:X.RECORDING_RULES_TARGETING},MISSED:{[X.ANALYTICS_ONLY]:X.ANALYTICS_ONLY_RULES_TARGETING,[X.RECORDING_GLOBAL_SAMPLING]:X.ANALYTICS_ONLY_RECORDING_PENDING_RULES_TARGETING}},e0=k(857).al,Ma=(()=>{let i;return function(r){let t;function e(m){t=m}r.setLogger=e;function s(m,S){for(let A of m)if(o(A,S))return!0;return!1}r.isUrlMatching=s;function n(m,S){if(O(S)){for(let A of m)if(o(A,S))return!0}else if(Kr(S)){for(let A of m)if(o(A,csString(S)))return!0}return!1}r.isMatching=n;function o(m,S){let A=c(m,S);return m.negate?!A:A}function c(m,S){switch(m.rule_type==="date"&&(m.match_operation==="less_than"||m.match_operation==="greater_than")&&(S=(new Date(S).valueOf()/1e3).toFixed(0)),m.match_operation){case"exact":switch(m.rule_type){case"string":return O(m.pattern)?csString.prototype.toLowerCase.call(S)===csString.prototype.toLowerCase.call(m.pattern):!1;case"boolean":return S===m.pattern||S===csString(m.pattern);case"number":return It(S)?Number(S)===Number(m.pattern):!1;default:return S===m.pattern}case"starts_with":return O(m.pattern)?csString.prototype.indexOf.call(S,m.pattern)===0:!1;case"ends_with":return O(m.pattern)?ir(S,m.pattern):!1;case"contains":return O(m.pattern)?csString.prototype.indexOf.call(S,m.pattern)!==-1:!1;case"regex":if(!O(m.pattern))return!1;try{return new e0(m.pattern).test(S)}catch(A){return t==null||t.warn(`targeting.matchOperation.regex invalid ${A==null?void 0:A.message}`),!1}case"simple":return O(m.pattern)?E(S)===E(m.pattern):!1;case"greater_than":return Number(S)>Number(m.pattern);case"less_than":return Number(S)=I.getTime()}function p(m){return It(m)?O(m)?csString.prototype.trim.call(m)==="":Kr(m)?m===!0:jt(m)?m!==0:!1:!0}function E(m){let S=Jt(m,"http://")||Jt(m,"https://")?m:`https://${m}`,A=Kd(S);return A!==null?csString.prototype.replace.call(A.host,/^www./,""):m}}(i||(i={})),i})(),i0=(()=>{let i;return function(r){r.URL="url"}(i||(i={})),i})(),Da={isLegacyURL:i=>i.component==="url",isLegacyTrigger:i=>i.component==="trigger",isURL:i=>i.type===i0.URL},s0=(()=>{class i{constructor(t){this.tE=new ps,this.eE=[],this.iE=[],Ma.setLogger(t)}setTargetingRules(t){this.tE.setRegexRules(csArray.prototype.filter.call(t,Da.isURL));for(let e of t)Da.isLegacyURL(e)?csArray.prototype.push.call(this.eE,e):Da.isLegacyTrigger(e)&&csArray.prototype.push.call(this.iE,e)}matchUrl(t){return Ma.isUrlMatching(this.eE,t)||this.tE.evaluateUrl(t)}matchTrigger(t){return Ma.isMatching(this.iE,t)}}return i})(),r0=(()=>{class i extends oe{constructor(t,e,s){super(),this.sE=t,this.gd=e,this.A=s}init(){this.md=new s0($),this.sE&&this.md.setTargetingRules(this.sE)}onStart(){}checkTargetingRules(){let t=this.A.getAnonymizedUrl();this.gd(this.yd(t,"url"))}onStop(){}onTargetingRulesArtificialPageview(t){this.isStarted&&this.gd(this.yd(t,"url"))}onExternalEvent(t){this.isStarted&&this.gd(this.yd(t.name,"trigger"))}yd(t,e){var s,n;return e==="url"&&O(t)&&(!((s=this.md)===null||s===void 0)&&s.matchUrl(t))?!0:!!(e==="trigger"&&(!((n=this.md)===null||n===void 0)&&n.matchTrigger(t)))}}return i})(),n0=(()=>{class i{constructor(t,e,s,n,o,c,l){this.E=t,this.w=e,this._e=s,this.F=n,this.A=o,this.R=c,this.oi=l,this._r=!1,this.Jo=(u=!1)=>{this._r&&this.E.isSMB&&this.oi.allowStartDataCollection({fromSessionRenewal:u}),this.E.startMode===oo.Automatic&&this.oi.startDataCollection({fromSessionRenewal:u})},this._P=u=>{this._r||(this._r=u,this.rE(),this.Jo())}}init(){this.E.isSMB&&this.oi.disableStartDataCollection(),this._n=new r0(this.E.recordTargetingRules,this._P,this.A),this.F.addListener(this._n),this._n.init()}start(){this._n.start()}stop(){this._n.stop()}maybeStartDataCollection(t){if(t){this.Jo(t);return}if(this.vP()){this._r=!0,this.Jo(),this.stop();return}this._n.checkTargetingRules()}onAfterArtificialPageView(){this._n.checkTargetingRules()}onCollectStateChange(t){if(this.nE(t)){this.stop();return}let e=t===X.ANALYTICS_ONLY_RECORDING_PENDING_RULES_TARGETING;!this._r&&e||csSetTimeout(()=>this.oE(t),0)}onStartTracking(){this.rE()}vP(){let t=this.R.getSession();return!!(t&&this.nE(t.collectState))}nE(t){return t===X.RECORDING_RULES_TARGETING||t===X.ANALYTICS_ONLY_RULES_TARGETING}rE(){var t;if(this._r){let e=this.R.getSession(),s=this._e.getInitialCollectState();this.oE((t=e==null?void 0:e.collectState)!==null&&t!==void 0?t:s),this.oi.isDataCollectionStarted()&&this.w.emitTargetingRulesMatched()}}oE(t){let e=t0[this._r?"MATCHED":"MISSED"][t];e&&this.w.emitCollectStateChange(e,Ui.ETR_OFF)}}return i})();var o0=["clearSession"],a0=["extendSession"];var c0=["getSessionData"],l0=["session:start:newVisitor"],u0=["session:clear:visitor"],h0=(()=>{class i{constructor(t,e,s){this.E=t,this.I=e,this.R=s,this.yi=U.now()}resetStartTime(){this.yi=U.now()}getSessionData(){let{projectId:t}=this.E,e=this.I.getVisitor();e==null&&$.warn("Visitor is null. This happens when a snippet tries to get Session Data before the tag was initialized.");let{id:s,visitsCount:n}=e!=null?e:{},o=this.R.getSession();o===null&&$.warn("Session is null. This happens when a snippet tries to get Session Data before the tag was initialized.");let{pageNumber:c}=o!=null?o:{};return{projectId:t,userId:s,sessionNumber:n,pageNumber:c,relativeTimestamp:U.now()-this.yi}}}return i})(),d0=(()=>{class i{constructor(t,e,s,n){this.E=t,this.I=e,this.R=s,this.S=n}init(){this.Ed=new h0(this.E,this.I,this.R),this.S.register(o0,()=>{this.R.removeSession(),this.R.resetPendingReplayConsent()}),this.S.register(a0,()=>this.R.extendSessionPeriodically(),{disableApplyPending:!0}),this.S.register(c0,()=>this.Ed.getSessionData(),{disableApplyPending:!0}),this.S.register(l0,()=>{this.I.renewVisitor(),this.R.resetPendingReplayConsent()}),this.S.register(u0,()=>{this.I.resetVisitor()},{disableApplyImmediate:!0})}onBeforeNaturalPageView(){this.I.createOrUpdateVisitor(),this.R.createOrUpdateSession()}onBeforeArtificialPageView(){this.I.createOrUpdateVisitor(),this.R.createOrUpdateSession()}onAfterNaturalPageView(){this.Ed.resetStartTime()}onAfterArtificialPageView(){this.Ed.resetStartTime()}onOptout(){this.I.removeVisitor(),this.R.removeSession()}onCollectStateChange(t){this.R.updateCollectState(t)}}return i})(),mp=(()=>{class i{constructor(t,e,s,n,o,c,l,u,h,p,E,m,S,A,x,I,C,H,M,N,W,q,lt,Lt,de,be,T,j,z,K,Pt,Nt,me){this.us=t,this.SP=e,this.Ut=s,this.I=n,this.R=o,this.V=c,this.fi=l,this.w=u,this.S=h,this.E=p,this.ms=E,this.Wt=m,this.O=S,this.Rt=A,this.ft=x,this.A=I,this.F=C,this.X=H,this.Wa=M,this.ot=N,this.wP=W,this.se=q,this.L=lt,this.jt=Lt,this.D=de,this.zt=be,this.xt=T,this._e=j,this.ut=z,this.Ze=K,this.Pt=Pt,this.te=Nt,this.Tt=me,this.AP=ye=>{this.w.emitBeforeSessionRenewal(),this._e.refresh().then(()=>{this._e.canTrack()&&(this.Zo(!0,ye),this.w.emitAfterSessionRenewal())})}}onInit(){this.w.emitInitTracking()}start(){if(this.ms.isActive())return;let t,e,s,n,o,c,l,u,h,p,E,m,S,A,x,I,C,H;this.L.task(()=>{A=new ZT(this.V),E=new sA(this.Rt),m=new ww(()=>{}),x=new Aw,H=new tA;let M=new QT(m,this.ut,x,C,H,this._d());S=new JT(this._d(),this.ut,M,x,this.E.whitelistedAttributes,I);let N=new KT(this.w,this.S,this.ut,M,x,I,C);N.init(),this.w.addListener(N),t=new RA(this.E,this.us,this.I,this.Rt,E,this.S,this.V,new Zw($),this.X,this.jt,this.F,S,this.Z,this.te,this.Tt),e=new qA(this.S,this.R,this.E,this.us,this.Ut,this.O),p=new XT(S,this.E);let W=null,q=new ub;s=new nb(this.I,this.R,this.S,this.X,W,this.E,q,p,this.A,this.ot),n=new QA(this.E,this.us,this.I,this.S,this.O,this.V,this.A);let lt,Lt;this.ir=new Qw(this.E,this.S,this.w,this.us,this.I,this.R,this.fi,this.Wt,this.ot,this.A,this.se,q,this.F,this.jt,this.Ze,lt,this.te,this.Tt,Lt),this.cE=new d0(this.E,this.I,this.R,this.S),this.oi=new NA(this.E,this.w,this.ms,this.ut,this.ir,this.V),new PA(this.oi,this.S).init(),c=new lb(this.E,this.S,this.Ut,this.us,this.F),l=new ob(this.S),u=new nA}),this.L.task(()=>{this.Wi=new LA,this.Re=new UA(this.O,this.A);let M=new xA(this.Wi,this.Re,this.E,this.us,this.X,this.S,this.F,this.A,this.jt,this.V);M.init(),this.w.addListener(M)}),this.L.task(()=>{s.init()}),this.L.task(()=>{e.init()}),this.L.task(()=>{n.init()}),this.L.task(()=>{this.ir.init()}),this.L.task(()=>{this.cE.init()}),this.L.task(()=>{c.init()}),this.L.task(()=>{l.init()}),this.L.task(()=>{u.init()}),this.L.task(()=>{this.w.addListener(this.cE),this.w.addListener(t),this.w.addListener(s),this.w.addListener(n),this.w.addListener(this.wP),this.w.addListener(this.ir),this.w.addListener(c),this.w.addListener(e),this.w.addListener(u),this.w.addListener(A)}),qs.isRecordingSupported()&&this.L.task(()=>{let M=new YT(p,this.R,this.E,this.SP,this.S,this.O,this.V,m,this.Re,this.St,this.ze,this.At,this.w,this.F,this.X,this.se,this.jt,this.ft,this.Ho,this._d(),this.Yr,I);M.init(),this.w.addListener(M),s.setRecordingService(M.recordingService)}),this.L.task(()=>{let M,N}),this.L.task(()=>{t.init()}),this.L.task(()=>{this.V.onSessionExpired(M=>{this.AP(M)}),this.Zo()})}Zo(t=!1,e=!1){var s,n,o;if(this.E.hasTargetingRules()){this.ta||(this.ta=new n0(this.E,this.w,this._e,this.F,this.A,this.R,this.oi),this.w.addListener(this.ta),this.ta.init(),this.ta.start(),this.S.start(),(s=this.Z)===null||s===void 0||s.start()),this.ta.maybeStartDataCollection(t);return}this.S.start(),(n=this.Z)===null||n===void 0||n.start(),this.oi.tryStartAutomaticDataCollection({fromSessionRenewal:t,isRenewedVisitor:e})}_d(){if(this.nt)return this.nt;let t=new ps;return this.nt=new Sw(this.E,this.A,t,this.Wt),this.nt.init(),this.nt.shouldUseAnonymization()&&G.counters.pageAnonymisation.count("anonymized-on-start"),this.nt}}return i.$deps=[Ya,Xa,dn,Se,Oe,en,Ur,Zt,Me,ht,zr,sn,Be,cs,tn,ys,cf,Mo,oc,uo,Qf,Yn,Bi,Bc,Ge,Ro,sr,mi,pf,{__optional:NE},{__optional:PE},{__optional:_f},{__optional:vf}],i})();function f0(){let i=new MutationObserver(r=>{r.forEach(t=>{pt(t.removedNodes,e=>{e instanceof HTMLElement&&e.tagName==="CS-NATIVE-FRAME-HOLDER"&&(G.counters.pureWindowState.count("iframe-deletion"),ut.warn(" deleted"),i.disconnect())})})});i.observe(_d.body,{childList:!0})}function bh(i){return typeof i!="function"?!1:i.toString().indexOf("[native code]")!==-1}function p0(){(!bh(MutationObserver)||!bh(MutationObserver.prototype.observe))&&G.counters.patchedNativeFunctions.count("MutationObserver")}function g0(){try{_w.CSPureWindow&&f0(),p0()}catch{}}var bR=k(857)._R;var TR=k(857).Jx;var RR=k(857)._R;var CR=k(857)._R;var IR=k(857)._R;var PR=k(857)._R;var yp=(()=>{class i{constructor(t,e,s,n,o,c,l){this.bE=t,this.as=e,this.ms=s,this.ra=n,this.I=o,this.R=c,this.w=l}initTracking(){this.as.setContext(this.I,this.R),this.ra.compute(t=>{this.SN(t).catch(e=>$.error(e,"boot:trackingState"))})}async initNoTracking(){pc&&(await this.bE.resolve(pc)).start()}async SN(t){if(this.ms.isActive())return;this.w.emitTrackingAllowed();let e=t?mp:Of;(await this.bE.resolve(e)).start()}}return i.$deps=[Pc,No,zr,nc,Se,Oe,Zt],i})(),Ep=(()=>{class i extends To{constructor(t,e,s){super(),this.D=t,this._e=e,this.TE=s}init(){this.D.init(),this.wN(),this._e.canTrack()?this.TE.initTracking():this.TE.initNoTracking()}wN(){let t=this._e.getInitialCollectState();Uw(t)?(Sa.set(qr.HJ_DUAL_COLLECT,"hj-recording"),_w.dispatchEvent(new CustomEvent(Vw)),G.counters.trackedFeatures.count("dual-collection-hj-replay")):Hw(t)?(Sa.set(qr.HJ_DUAL_COLLECT,"csq-replay"),G.counters.trackedFeatures.count("dual-collection-csq-replay")):Sa.set(qr.HJ_DUAL_COLLECT,null)}}return i.$deps=[Ge,mi,yp],i})(),_p=[],m0=he(To,y0,[Qs,lf,Ep,..._p]);function y0(i,r,t,e){var s,n;try{if(!i.isTopWindowTracker()&&!1){if(r.canTrackInChild()){if(!e)throw new Error("ChildBoot dependency was not resolved.");return e}throw new $l}if(!((s=_w.CSProtectnativeFunctionsLogs)===null||s===void 0)&&s.Critical)throw new ty((n=_w.CSProtectnativeFunctionsLogs)===null||n===void 0?void 0:n.Critical);if(!r.canTrack())throw new $l;return g0(),t}catch(o){throw G.counters.boot.count("no-boot"),o}}var E0=[Ep,m0,..._p];var NR=k(857)._R;var OR=k(857)._R;var MR=k(857)._R;var _0=null;var v0=null;var S0=null,w0=(()=>{let i=class{};return i.$deps=[],i=L([Bt({imports:[te,Do,Ew,mv,Jw,Q_,zc,Af,Nf,S0,bf,Qf,vw,pv,_0,v0,mw,J_],providers:[...E0,yp,he(dn,()=>uf.create()),Bc,mp,Of,pc],exports:[To]})],i),i})();var kR=k(857)._R;var A0=function(){"use strict";function i(s,n){function o(){this.constructor=s}o.prototype=n.prototype,s.prototype=new o}function r(s,n,o,c){var l=Error.call(this,s);return Object.setPrototypeOf&&Object.setPrototypeOf(l,r.prototype),l.expected=n,l.found=o,l.location=c,l.name="SyntaxError",l}i(r,Error);function t(s,n,o){return o=o||" ",s.length>n?s:(n-=s.length,o+=o.repeat(n),s+o.slice(0,n))}r.prototype.format=function(s){var n="Error: "+this.message;if(this.location){var o=null,c;for(c=0;c `+h+` `+E+` | `+u.line+" | "+m+` `+E+" | "+t("",l.column-1," ")+t("",A,"^")}else n+=` at `+h}return n},r.buildMessage=function(s,n){var o={literal:function(m){return'"'+l(m.text)+'"'},class:function(m){var S=m.parts.map(function(A){return csArray.isArray(A)?u(A[0])+"-"+u(A[1]):u(A)});return"["+(m.inverted?"^":"")+S.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(m){return m.description}};function c(m){return m.charCodeAt(0).toString(16).toUpperCase()}function l(m){return m.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(S){return"\\x0"+c(S)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(S){return"\\x"+c(S)})}function u(m){return m.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(S){return"\\x0"+c(S)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(S){return"\\x"+c(S)})}function h(m){return o[m.type](m)}function p(m){var S=m.map(h),A,x;if(S.sort(),S.length>0){for(A=1,x=1;A",E=":eq(",m=")",S="[",A="](",x="#",I="|shadow-root|",C="|iframe|",H="@",M="\\",N="#UCS[",W="]",q="#UA",lt="=",Lt='="',de='"]',be=/^[\]]/,T=/^[\]"]/,j=/^[#;&,.+*~':"!\^$[\]()<=>|\/%?@`{}\\ ]/,z=/^[0-9]/,K=yt("|detached|",!1),Pt=yt(">",!1),Nt=yt(":eq(",!1),me=yt(")",!1),ye=yt("[",!1),Ei=yt("](",!1),vs=yt("#",!1),Gi=yt("|shadow-root|",!1),Ss=yt("|iframe|",!1),cr=yt("@",!1),lr=Sr("word"),ws=Os(["]"],!1,!1),_i=vr(),As=yt("\\",!1),vi=Os(["]",'"'],!1,!1),Wt=Os(["#",";","&",",",".","+","*","~","'",":",'"',"!","^","$","[","]","(",")","<","=",">","|","/","%","?","@","`","{","}","\\"," "],!1,!1),Ee=Sr("integer"),bs=Os([["0","9"]],!1,!1),En=yt("#UCS[",!1),ur=yt("]",!1),hr=yt("#UA",!1),_n=yt("=",!1),Ts=yt('="',!1),Rs=yt('"]',!1),vn=function(){return{type:"detached"}},dr=function(f,v){let[b,Z]=v||[[],[]],et=b.length==2?[b[0]]:[];return[f,...et,...Z]},Cs=function(f){return{type:"directChildSelector",...f}},fr=function(f){return{type:"uniqueIdentifierSelector",...f}},Is=function(f,v){return{localName:f,position:v}},pr=function(f,v,b){return{localName:f,customSelector:v,position:b}},gr=function(f){return{...f,kind:"uniqueAttribute"}},Sn=function(f){return{...f,kind:"uniqueCssSelector"}},wn=function(f,v){return{localName:f,attrName:"id",attrValue:v,kind:"uniqueId"}},An=function(){return{type:"propertySelector",property:"shadowRoot"}},mr=function(){return{type:"propertySelector",property:"contentDocument"}},yr=function(f,v){return f.join("")+(v||"")},Er=function(){return"@"},_t=function(f){return f.join("")},Ft=function(){return""},zt=function(f){return f.join("")},ii=function(f){return f},Si=function(f){return f},_r=function(f){return f.join("")},zi=function(f){return f},xo=function(f){return f},Lo=function(f){return f},nl=function(f){return parseInt(f.join(""),10)},bn=function(f,v){return{uniqueCssSelector:v}},Vo=function(){return"#UA"},Uo=function(){return""},ol=function(f,v,b){return{localName:f,attrName:v,attrValue:b}},ze=function(f,v,b){return{localName:f,attrName:v,attrValue:b}},Ps=function(f,v,b){return{localName:f,attrName:v,attrValue:b}},w=0,rt=0,Ns=[{line:1,column:1}],Te=0,Re=[],Q=0,Ce;if("startRule"in n){if(!(n.startRule in l))throw new Error(`Can't start parsing from rule "`+n.startRule+'".');u=l[n.startRule]}function al(){return s.substring(rt,w)}function cl(){return rt}function si(){return{source:c,start:rt,end:w}}function Ho(){return Wi(rt,w)}function De(f,v){throw v=v!==void 0?v:Wi(rt,w),Tn([Sr(f)],s.substring(rt,w),v)}function jo(f,v){throw v=v!==void 0?v:Wi(rt,w),Bo(f,v)}function yt(f,v){return{type:"literal",text:f,ignoreCase:v}}function Os(f,v,b){return{type:"class",parts:f,inverted:v,ignoreCase:b}}function vr(){return{type:"any"}}function $o(){return{type:"end"}}function Sr(f){return{type:"other",description:f}}function qi(f){var v=Ns[f],b;if(v)return v;for(b=f-1;!Ns[b];)b--;for(v=Ns[b],v={line:v.line,column:v.column};bTe&&(Te=w,Re=[]),csArray.prototype.push.call(Re,f))}function Bo(f,v){return new r(f,null,null,v)}function Tn(f,v,b){return new r(r.buildMessage(f,v),f,v,b)}function Fi(){var f,v,b;return f=wr(),f===o&&(f=w,v=Go(),v!==o?(b=wr(),b!==o?(v=[v,b],f=v):(w=f,f=o)):(w=f,f=o)),f}function Go(){var f,v,b;return f=w,s.substr(w,10)===h?(v=h,w+=10):(v=o,Q===0&&tt(K)),v!==o?(s.charCodeAt(w)===62?(b=p,w++):(b=o,Q===0&&tt(Pt)),b===o&&(b=null),rt=f,f=vn()):(w=f,f=o),f}function wr(){var f,v,b,Z,et,vt;return f=w,v=zo(),v!==o?(b=w,Z=w,et=Ar(),et!==o?(s.charCodeAt(w)===62?(vt=p,w++):(vt=o,Q===0&&tt(Pt)),vt===o&&(vt=null),et=[et,vt],Z=et):(w=Z,Z=o),Z===o&&(s.charCodeAt(w)===62?(Z=p,w++):(Z=o,Q===0&&tt(Pt))),Z!==o?(et=wr(),et!==o?(Z=[Z,et],b=Z):(w=b,b=o)):(w=b,b=o),b===o&&(b=null),rt=f,f=dr(v,b)):(w=f,f=o),f}function zo(){var f,v;return f=w,v=ll(),v!==o&&(rt=f,v=Cs(v)),f=v,f===o&&(f=w,v=ul(),v!==o&&(rt=f,v=fr(v)),f=v),f}function ll(){var f,v,b,Z,et,vt,Ot;return f=w,v=ri(),v!==o?(s.substr(w,4)===E?(b=E,w+=4):(b=o,Q===0&&tt(Nt)),b!==o?(Z=Yi(),Z!==o?(s.charCodeAt(w)===41?(et=m,w++):(et=o,Q===0&&tt(me)),et!==o?(rt=f,f=Is(v,Z)):(w=f,f=o)):(w=f,f=o)):(w=f,f=o)):(w=f,f=o),f===o&&(f=w,v=ri(),v!==o?(s.charCodeAt(w)===91?(b=S,w++):(b=o,Q===0&&tt(ye)),b!==o?(Z=nt(),Z!==o?(s.substr(w,2)===A?(et=A,w+=2):(et=o,Q===0&&tt(Ei)),et!==o?(vt=Yi(),vt!==o?(s.charCodeAt(w)===41?(Ot=m,w++):(Ot=o,Q===0&&tt(me)),Ot!==o?(rt=f,f=pr(v,Z,vt)):(w=f,f=o)):(w=f,f=o)):(w=f,f=o)):(w=f,f=o)):(w=f,f=o)):(w=f,f=o)),f}function ul(){var f,v,b,Z;return f=w,v=oi(),v!==o&&(rt=f,v=gr(v)),f=v,f===o&&(f=w,v=ks(),v!==o&&(rt=f,v=Sn(v)),f=v,f===o&&(f=w,v=ri(),v!==o?(s.charCodeAt(w)===35?(b=x,w++):(b=o,Q===0&&tt(vs)),b!==o?(Z=Ms(),Z!==o?(rt=f,f=wn(v,Z)):(w=f,f=o)):(w=f,f=o)):(w=f,f=o))),f}function Ar(){var f,v;return f=w,s.substr(w,13)===I?(v=I,w+=13):(v=o,Q===0&&tt(Gi)),v!==o&&(rt=f,v=An()),f=v,f===o&&(f=w,s.substr(w,8)===C?(v=C,w+=8):(v=o,Q===0&&tt(Ss)),v!==o&&(rt=f,v=mr()),f=v),f}function ri(){var f,v,b;if(f=w,v=[],b=ni(),b!==o)for(;b!==o;)csArray.prototype.push.call(v,b),b=ni();else v=o;return v!==o?(b=qo(),b===o&&(b=null),rt=f,f=yr(v,b)):(w=f,f=o),f}function qo(){var f,v;return f=w,s.charCodeAt(w)===64?(v=H,w++):(v=o,Q===0&&tt(cr)),v!==o&&(rt=f,v=Er()),f=v,f}function Ms(){var f,v,b;if(Q++,f=w,v=[],b=ni(),b!==o)for(;b!==o;)csArray.prototype.push.call(v,b),b=ni();else v=o;return v!==o&&(rt=f,v=_t(v)),f=v,Q--,f===o&&(v=o,Q===0&&tt(lr)),f}function Wo(){var f,v;return f=w,v="",rt=f,v=Ft(),f=v,f}function nt(){var f,v,b;if(f=w,v=[],b=ke(),b!==o)for(;b!==o;)csArray.prototype.push.call(v,b),b=ke();else v=o;return v!==o&&(rt=f,v=zt(v)),f=v,f}function ke(){var f,v,b;return f=w,v=w,Q++,be.test(s.charAt(w))?(b=s.charAt(w),w++):(b=o,Q===0&&tt(ws)),Q--,b===o?v=void 0:(w=v,v=o),v!==o?(s.length>w?(b=s.charAt(w),w++):(b=o,Q===0&&tt(_i)),b!==o?(rt=f,f=ii(b)):(w=f,f=o)):(w=f,f=o),f===o&&(f=w,s.charCodeAt(w)===92?(v=M,w++):(v=o,Q===0&&tt(As)),v!==o?(be.test(s.charAt(w))?(b=s.charAt(w),w++):(b=o,Q===0&&tt(ws)),b!==o?(rt=f,f=Si(b)):(w=f,f=o)):(w=f,f=o)),f}function fe(){var f,v,b;if(f=w,v=[],b=Rn(),b!==o)for(;b!==o;)csArray.prototype.push.call(v,b),b=Rn();else v=o;return v!==o&&(rt=f,v=_r(v)),f=v,f}function Rn(){var f,v,b;return f=w,v=w,Q++,T.test(s.charAt(w))?(b=s.charAt(w),w++):(b=o,Q===0&&tt(vi)),Q--,b===o?v=void 0:(w=v,v=o),v!==o?(s.length>w?(b=s.charAt(w),w++):(b=o,Q===0&&tt(_i)),b!==o?(rt=f,f=zi(b)):(w=f,f=o)):(w=f,f=o),f}function ni(){var f,v,b;return f=w,v=w,Q++,b=Ds(),Q--,b===o?v=void 0:(w=v,v=o),v!==o?(s.length>w?(b=s.charAt(w),w++):(b=o,Q===0&&tt(_i)),b!==o?(rt=f,f=xo(b)):(w=f,f=o)):(w=f,f=o),f===o&&(f=w,s.charCodeAt(w)===92?(v=M,w++):(v=o,Q===0&&tt(As)),v!==o?(b=Ds(),b!==o?(rt=f,f=Lo(b)):(w=f,f=o)):(w=f,f=o)),f}function Ds(){var f;return j.test(s.charAt(w))?(f=s.charAt(w),w++):(f=o,Q===0&&tt(Wt)),f}function Yi(){var f,v,b;if(Q++,f=w,v=[],z.test(s.charAt(w))?(b=s.charAt(w),w++):(b=o,Q===0&&tt(bs)),b!==o)for(;b!==o;)csArray.prototype.push.call(v,b),z.test(s.charAt(w))?(b=s.charAt(w),w++):(b=o,Q===0&&tt(bs));else v=o;return v!==o&&(rt=f,v=nl(v)),f=v,Q--,f===o&&(v=o,Q===0&&tt(Ee)),f}function ks(){var f,v,b,Z,et;return f=w,v=ri(),v!==o?(s.substr(w,5)===N?(b=N,w+=5):(b=o,Q===0&&tt(En)),b!==o?(Z=nt(),Z!==o?(s.charCodeAt(w)===93?(et=W,w++):(et=o,Q===0&&tt(ur)),et!==o?(rt=f,f=bn(v,Z)):(w=f,f=o)):(w=f,f=o)):(w=f,f=o)):(w=f,f=o),f}function wi(){var f,v;return f=w,s.substr(w,3)===q?(v=q,w+=3):(v=o,Q===0&&tt(hr)),v!==o&&(rt=f,v=Vo()),f=v,f===o&&(f=w,v="",rt=f,v=Uo(),f=v),f}function oi(){var f,v,b,Z,et,vt,Ot,Ie;return f=w,v=ri(),v!==o?(b=wi(),b!==o?(s.charCodeAt(w)===91?(Z=S,w++):(Z=o,Q===0&&tt(ye)),Z!==o?(et=Ms(),et!==o?(s.charCodeAt(w)===61?(vt=lt,w++):(vt=o,Q===0&&tt(_n)),vt!==o?(Ot=fe(),Ot!==o?(s.charCodeAt(w)===93?(Ie=W,w++):(Ie=o,Q===0&&tt(ur)),Ie!==o?(rt=f,f=ol(v,et,Ot)):(w=f,f=o)):(w=f,f=o)):(w=f,f=o)):(w=f,f=o)):(w=f,f=o)):(w=f,f=o)):(w=f,f=o),f===o&&(f=w,v=ri(),v!==o?(b=wi(),b!==o?(s.charCodeAt(w)===91?(Z=S,w++):(Z=o,Q===0&&tt(ye)),Z!==o?(et=Ms(),et!==o?(s.substr(w,2)===Lt?(vt=Lt,w+=2):(vt=o,Q===0&&tt(Ts)),vt!==o?(Ot=fe(),Ot!==o?(s.substr(w,2)===de?(Ie=de,w+=2):(Ie=o,Q===0&&tt(Rs)),Ie!==o?(rt=f,f=ze(v,et,Ot)):(w=f,f=o)):(w=f,f=o)):(w=f,f=o)):(w=f,f=o)):(w=f,f=o)):(w=f,f=o)):(w=f,f=o),f===o&&(f=w,v=ri(),v!==o?(b=wi(),b!==o?(s.charCodeAt(w)===91?(Z=S,w++):(Z=o,Q===0&&tt(ye)),Z!==o?(et=Ms(),et!==o?(s.substr(w,2)===Lt?(vt=Lt,w+=2):(vt=o,Q===0&&tt(Ts)),vt!==o?(Ot=Wo(),s.substr(w,2)===de?(Ie=de,w+=2):(Ie=o,Q===0&&tt(Rs)),Ie!==o?(rt=f,f=Ps(v,et,Ot)):(w=f,f=o)):(w=f,f=o)):(w=f,f=o)):(w=f,f=o)):(w=f,f=o)):(w=f,f=o))),f}if(Ce=u(),Ce!==o&&w===s.length)return Ce;throw Ce!==o&&w=",i.MATCH_LESS_OR_EQUAL="<=",i.MATCH_GREATER=">",i.MATCH_LESS="<",i.MATCH_LOGICAL_EQUAL="=",i.MATCH_LOGICAL_NOT_EQUAL="!=",i.MATCH_GTE="more_or_equals",i.MATCH_LTE="less_or_equals",i.MATCH_GT="more_than",i.MATCH_LT="less_than",i.MATCH_CONTAINS="contains",i.MATCH_DOES_NOT_CONTAIN="not_contains",i.MATCH_EQUALS="equals",i.MATCH_NOT_EQUALS="not_equals",i.MATCH_STARTS_WITH="starts_with",i.MATCH_DOES_NOT_START_WITH="not_starts_with",i.MATCH_ENDS_WITH="ends_with",i.MATCH_DOES_NOT_END_WITH="not_ends_with",i.MATCH_REGEX="matches_regex",i.MATCH_IN="matchIn",i.MATCH_BETWEEN="between",i.DOES_NOT_MATCH_IN="not_matchIn",i.DOES_NOT_MATCH_REGEX="not_matches_regex",i.DOES_NOT_MATCH="doesNotMatchIn",i.IS_EMPTY="is_empty",i.NOT_IS_EMPTY="not_is_empty",i.EXISTS="exists",i.NOT_EXISTS="not_exists",i.HAS_ANY="hasAny",i.NOT_HAS_ANY="not_hasAny",i.HAS_ALL="hasAll",i.NOT_HAS_ALL="not_hasAll",i.SIMPLE_MATCH="simple_match",i.NOT_SIMPLE_MATCH="not_simple_match"})(_o||(_o={}));var Th;(function(i){i.interactionEvents="interactionEvents",i.zoneMetrics="zoneMetrics",i.zoneInsights="zoneInsights",i.pageviewMetrics="pageviewMetrics",i.dynamicVars="dynamicVars",i.errors="errors",i.textConditions="textConditions",i.pageEvents="pageEvents",i.webVitals="webVitals",i.pageviewFrustrationScore="pageviewFrustrationScore",i.accessibilityMetrics="accessibilityMetrics",i.pageviewFrustrationFactor="pageviewFrustrationFactor",i.zoneFrustrationFactor="zoneFrustrationFactor"})(Th||(Th={}));var fi;(function(i){i.Pageviews="pageviews",i.UserId="userId",i.Goal="goal",i.GoalId="goal:id",i.GoalReference="goal:reference",i.SegmentId="segment:id",i.PrestoredText="page:prestored_text",i.TextSeen="segment:textSeen",i.VisitText="visit:text",i.IsReturning="visit:isNew",i.NumberVisits="visit:number",i.Language="visitor:language",i.Connection="visit:connectionType",i.AppVersion="visit:appVersion",i.DynamicVariable="dynamicVar",i.DeviceCommercialName="device:marketingName",i.DeviceModel="device:manufacturer",i.DeviceModelCommercialName="device:manufacturerCommercialName",i.DeviceModelVersion="device:model",i.OsVersion="device:osVersion",i.Device="device",i.DeviceType="device:typeId",i.Transaction="visit:isBuyer",i.Amount="visit:amount",i.NumberPageViews="visit:pageviews",i.VisitDuration="visit:durationTime",i.Referrer="source:from",i.GeographicCity="location:city",i.GeographicArea="location:country",i.Test="version:id",i.CustomVariable="customVar",i.Browser="browser:name",i.BrowserVersion="browser:version",i.BrowserSemanticVersion="browser:semanticVersion",i.Os="browser:platform",i.WebOsVersion="browser:platformVersion",i.Resolution="browser:resolution",i.BrowserWindowWidth="browser:windowWidth",i.BrowserWindowHeight="browser:windowHeight",i.LandingPath="visit:landingPath",i.LandingPage="visit:landingPage",i.LandingPagePOF="visit:landingPagePOF",i.ExitPage="visit:exitPath",i.NumberPageviews="visit:pageviews",i.PageHostViewed="page:host",i.PagePathViewed="page:path",i.PageFullUrlViewd="page:fullURL",i.PageQueryParamsViewed="page:query",i.PageEvent="page:pageEvent",i.PageText="page:text",i.ExternalEvent="externalEvent",i.Feedback="voc:feedback",i.NetPromoterScore="voc:nps",i.Survey="voc:surveyId",i.Reaction="voc:reaction",i.FullText="page:full_text",i.PageCustomHashId="page:customHashId",i.CustomHashId="customHashId",i.SessionVisitIP="visit:ip",i.SegmentMerch="segment:merch",i.SegmentMerchProduct="segment:merchProduct",i.SegmentMerchCategoryBrand="segment:merchCategoryBrand",i.Error="error",i.ErrorMessage="error:message",i.ErrorFileName="error:filename",i.ErrorLineNumber="error:lineNumber",i.ErrorColumnNumber="error:colNumber",i.ErrorType="error:type",i.ErrorGroupId="error:groupId",i.ErrorGroupIdV1="error:groupIdV1",i.ApiErrorURL="errorApi:url",i.ApiErrorStatusCode="errorApi:statusCode",i.ApiErrorMethod="errorApi:method",i.ApiErrorType="errorApi:type",i.ApiErrorGroupId="errorApi:groupId",i.ApiErrorGroupIdV1="errorApi:groupIdV1",i.ApiErrorBodyAttribute="errorApi:responseBodyAttribute",i.ErrorDismissStatus="error:dismiss_status",i.ApiErrorDismissStatus="errorApi:dismiss_status",i.CustomErrorType="customError:type",i.CustomErrorMessage="customError:message",i.CustomErrorAttributes="customError:attributes",i.CustomErrorGroupId="customError:groupId",i.CustomErrorGroupIdV1="customError:groupIdV1",i.CrashType="errorCrash:type",i.CrashGroupId="errorCrash:groupId",i.CrashSpecificId="errorCrash:id",i.FlutterType="errorFlutter:type",i.FlutterGroupId="errorFlutter:groupId",i.FlutterSpecificId="errorFlutter:id",i.ExcludeBots="visit:excludeBots",i.IsBot="visit:isBot",i.SdkScreenActivity="screen:activity",i.SdkScreenContainer="screen:container",i.SdkScreenQuery="screen:query",i.SdkScreenName="screen:name",i.LargestContentfulPaint="cwv:largest_contentful_paint",i.FirstContentfulPaint="cwv:first_contentful_paint",i.CumulativeLayoutShift="cwv:cumulative_layout_shift",i.InteractionToNextPaint="cwv:interaction_to_next_paint",i.FirstInputDelay="cwv:first_input_delay",i.TimeToFirstByte="cwv:time_to_first_byte",i.EnrichmentIntegration="external:integrationEnrichment",i.DynamicSnippetIntegration="external:dynamicSnippetIntegration",i.ExternalSegmentIntegration="external:segmentIntegration",i.AccessibilityFeatures="accessibility:features",i.AccessibilityZoom="accessibility:max_zoom",i.AccessibilityHighlight="accessibility:text_highlight",i.AccessibilityKeyboard="accessibility:keyboard",i.AccessibilityKeyboardClick="accessibility:keyboard_click",i.AccessibilityKeyboardFocus="accessibility:keyboard_focus",i.AccessibilityKeyboardScroll="accessibility:keyboard_scroll",i.AccessibilityExtensions="accessibility:extensions",i.PageviewFrustrationScore="pageviewFrustrationScore",i.SessionFrustrationScore="visit:sessionFrustrationScore",i.FrustrationFactor="frustrationFactor",i.FrustrationFactorBlankPage="frustrationFactor:blankPage",i.FrustrationFactorDeadLink="frustrationFactor:deadAnchor",i.FrustrationFactorDeadClick="frustrationFactor:deadClick",i.FrustrationFactorDeadZoom="frustrationFactor:deadZoom",i.FrustrationFactorExcessiveHover="frustrationFactor:excessiveHover",i.FrustrationFactorLoopingIndex="frustrationFactor:loopingIndex",i.FrustrationFactorMultipleButtonInteractions="frustrationFactor:multipleButtonInteractions",i.FrustrationFactorMultipleFieldInteractions="frustrationFactor:multipleFieldInteractions",i.FrustrationFactorMultipleInteractions="frustrationFactor:multipleInteractions",i.FrustrationFactorMultipleUseTarget="frustrationFactor:multipleUseTarget",i.FrustrationFactorPageReload="frustrationFactor:pageReload",i.FrustrationFactorPropViewsNotConsumed="frustrationFactor:propViewsNotConsumed",i.FrustrationFactorRageClick="frustrationFactor:rageClick",i.FrustrationFactorRageTap="frustrationFactor:rageTap",i.FrustrationFactorLowActivity="frustrationFactor:lowActivity",i.FrustrationFactorThrashedCursor="frustrationFactor:thrashedCursor",i.SessionWithUserReturn="heap:sessionWithUserReturn",i.SessionFollowedByPurchase="heap:sessionFollowedByPurchase",i.FrontEndClickedElement="frontend-clicked-element"})(fi||(fi={}));var VR=[fi.PageHostViewed,fi.PagePathViewed,fi.PageQueryParamsViewed],Rh;(function(i){i.ZoneInteractionClick="pageview:zone-interaction:click",i.ZoneInteractionHover="pageview:zone-interaction:hover",i.ZoneInteractionTap="pageview:zone-interaction:tap",i.ZoneInteractionExitZone="pageview:zone-interaction:exitZone",i.TextConditionFullSearch="pageview:fullSearch",i.TextConditionPrestoredText="pageview:prestoredText",i.MetricHoverTime="metric:hoverTime",i.MetricTimeBeforeFirstClick="metric:timeBeforeFirstClick",i.MetricTimeBeforeFirstTap="metric:timeBeforeFirstTap",i.MetricHesitationTime="metric:hesitationTime",i.MetricScrollRate="metric:scrollRate",i.MetricTimeSpent="metric:timeSpent",i.FrontendZoneInteractionGoal="frontend:pageview:zone-interaction:goal",i.PageEvent="page:pageEvent",i.FrustrationScore="pageview:frustration-score"})(Rh||(Rh={}));var Ch;(function(i){i.Click="click",i.Change="change",i.DynamicVariable="dvar_page",i.Focus="focus",i.Tap="tap",i.Pageview="pageview",i.Screenview="screenview",i.PageEvent="pageEvent",i.Hover="hover",i.HoverTime="hoverTime",i.ExitPage="exitPage",i.ExitZone="exitZone",i.Purchase="purchase",i.AddToCart="addToCart",i.MetricBounce="metric:bounce",i.MetricScrollRate="metric:scrollRate",i.MetricTimeBeforeFirstClick="metric:timeBeforeFirstClick",i.MetricTimeBeforeFirstTap="metric:timeBeforeFirstTap",i.MetricHesitationTime="metric:hesitationTime",i.MetricHoverTime="metric:hoverTime",i.MetricTimeSpent="metric:timeSpent",i.MetricClickRepetition="metric:clickRepetition",i.BlankPage="friction:blankPage",i.DeadClick="friction:deadClick",i.DeadLink="friction:deadAnchor",i.DeadZoom="friction:deadZoom",i.ExcessiveHover="friction:excessiveHover",i.FastBack="friction:fastBack",i.LoadingTime="friction:loadingTime",i.LowActivity="friction:lowActivity",i.MultipleButtonInteraction="friction:multipleButtonInteraction",i.MultipleFieldInteraction="friction:multipleFieldInteraction",i.MultipleInteraction="friction:multipleInteraction",i.MultiplePageRevisit="friction:multiplePageRevisit",i.MultipleUseTarget="friction:multipleUseTarget",i.PageReload="friction:pageReload",i.PromocodeStruggle="friction:promocodeStruggle",i.QualifiedBouncers="friction:qualifiedBouncers",i.RageClick="friction:rageClick",i.RageTap="friction:rageTap",i.ThrashedCursor="friction:thrashedCursor",i.Swipe="swipe",i.LandingPage="landingPage",i.LargestContentFulPaint="cwv:largest_contentful_paint",i.FirstContentFulPaint="cwv:first_contentful_paint",i.CumulativeLayoutShift="cwv:cumulative_layout_shift",i.InteractionToNextPaint="cwv:interaction_to_next_paint",i.FirstInputDelay="cwv:first_input_delay",i.TimeToFistByte="cwv:time_to_first_byte",i.Error="error",i.AccessibilityFeatures="accessibility:features",i.AccessibilityZoom="accessibility:max_zoom",i.AccessibilityHighlight="accessibility:text_highlight",i.AccessibilityKeyboard="accessibility:keyboard",i.AccessibilityKeyboardClick="accessibility:keyboard_click",i.AccessibilityKeyboardFocus="accessibility:keyboard_focus",i.AccessibilityKeyboardScroll="accessibility:keyboard_scroll",i.AccessibilityExtensions="accessibility:extensions"})(Ch||(Ch={}));var He;(function(i){i.AND="AND",i.OR="OR",i.NOT="NOT",i.SEQ="SEQ",i.CSEQ="CSEQ",i.THEN="THEN",i.DIRECTLY_THEN="DIRECTLY_THEN",i.FILTER="filter",i.EVENT_OCCURRENCE="event_occurrence",i.EVENT_SEQUENCE_OCCURRENCE="event_sequence_occurrence"})(He||(He={}));var Ih;(function(i){i.EQUAL="=",i.GREATER=">",i.LESS="<",i.GREATER_OR_EQUAL=">=",i.LESS_OR_EQUAL="<=",i.NOT_EQUAL="!=",i.BETWEEN="between"})(Ih||(Ih={}));var Ph;(function(i){i.ANY="any",i.URL="url",i.PAGE="page"})(Ph||(Ph={}));var Nh;(function(i){i.ANY="any",i.NAMED="named",i.EXACT="exact",i.GROUPED="grouped"})(Nh||(Nh={}));var Oh;(function(i){i.API="API",i.JS="JS",i.CUSTOM="CUSTOM",i.CRASH="CRASH",i.FLUTTER="FLUTTER"})(Oh||(Oh={}));var Mh;(function(i){i.GET="GET",i.POST="POST",i.PUT="PUT",i.PATCH="PATCH",i.DELETE="DELETE"})(Mh||(Mh={}));var Dh;(function(i){i.EXPERIENCED="EXPERIENCED",i.HAVE_NOT_EXPERIENCED="HAVE_NOT_EXPERIENCED"})(Dh||(Dh={}));var kh;(function(i){i.ALL="ALL",i.DISMISSED="DISMISSED",i.UNDISMISSED="UNDISMISSED"})(kh||(kh={}));var UR=Object.freeze([He.AND,He.OR,He.SEQ,He.CSEQ,He.THEN,He.DIRECTLY_THEN]),HR={children:[],nodeType:He.AND},jR={nodeType:He.FILTER,field:fi.SegmentId,operator:_o.MATCH_EQUALS,value:b0.ALL_VISITORS},xh;(function(i){i.Model="model",i.Product="product",i.Category="category",i.Brand="brand"})(xh||(xh={}));var Lh;(function(i){i.Visit="pageview:visit",i.First="pageview:first",i.Last="pageview:last",i.Bounce="pageview:bounce",i.FrontendGoal="frontend:pageview:goal"})(Lh||(Lh={}));var $R={field:"pageview:no_op",nodeType:He.FILTER,operator:_o.MATCH_EQUALS},Vh;(function(i){i.PageViewedConditionId="goal:reference:PageViewed",i.ZoneClickedConditionId="goal:reference:click",i.SamePageViewConditionEditorId="pageviews"})(Vh||(Vh={}));var BR=[fi.EnrichmentIntegration,fi.DynamicSnippetIntegration,fi.ExternalSegmentIntegration];var GR=k(857).al;var zR=k(857).Jx,ka;(ka=_w._uxa)!==null&&ka!==void 0||(_w._uxa=[]);var qR=k(857)._R;var T0=["visitor:language"],R0=["device","browser:resolution","browser:windowWidth","browser:windowHeight"],C0=["visit:isNew","visit:number","source:from"],WR=[...T0,...R0,...C0];var I0={ALL_VISITORS:-1,NEW_VISITORS:1,RETURNING_VISITORS:2,BOTS_AND_SPIDERS:3,PURCHASE_INTENT_USERS:4,AI_BOTS:5,VISITS_WITH_TRANSACTIONS:7,VISITS_WITHOUT_TRANSACTIONS:8,NON_BOUNCE_VISITS:12,BOUNCE_VISITS:13},vo;(function(i){i.MATCH_GREATER_OR_EQUAL=">=",i.MATCH_LESS_OR_EQUAL="<=",i.MATCH_GREATER=">",i.MATCH_LESS="<",i.MATCH_LOGICAL_EQUAL="=",i.MATCH_LOGICAL_NOT_EQUAL="!=",i.MATCH_GTE="more_or_equals",i.MATCH_LTE="less_or_equals",i.MATCH_GT="more_than",i.MATCH_LT="less_than",i.MATCH_CONTAINS="contains",i.MATCH_DOES_NOT_CONTAIN="not_contains",i.MATCH_EQUALS="equals",i.MATCH_NOT_EQUALS="not_equals",i.MATCH_STARTS_WITH="starts_with",i.MATCH_DOES_NOT_START_WITH="not_starts_with",i.MATCH_ENDS_WITH="ends_with",i.MATCH_DOES_NOT_END_WITH="not_ends_with",i.MATCH_REGEX="matches_regex",i.MATCH_IN="matchIn",i.MATCH_BETWEEN="between",i.DOES_NOT_MATCH_IN="not_matchIn",i.DOES_NOT_MATCH_REGEX="not_matches_regex",i.DOES_NOT_MATCH="doesNotMatchIn",i.IS_EMPTY="is_empty",i.NOT_IS_EMPTY="not_is_empty",i.EXISTS="exists",i.NOT_EXISTS="not_exists",i.HAS_ANY="hasAny",i.NOT_HAS_ANY="not_hasAny",i.HAS_ALL="hasAll",i.NOT_HAS_ALL="not_hasAll",i.SIMPLE_MATCH="simple_match",i.NOT_SIMPLE_MATCH="not_simple_match"})(vo||(vo={}));var Uh;(function(i){i.interactionEvents="interactionEvents",i.zoneMetrics="zoneMetrics",i.zoneInsights="zoneInsights",i.pageviewMetrics="pageviewMetrics",i.dynamicVars="dynamicVars",i.errors="errors",i.textConditions="textConditions",i.pageEvents="pageEvents",i.webVitals="webVitals",i.pageviewFrustrationScore="pageviewFrustrationScore",i.accessibilityMetrics="accessibilityMetrics",i.pageviewFrustrationFactor="pageviewFrustrationFactor",i.zoneFrustrationFactor="zoneFrustrationFactor"})(Uh||(Uh={}));var Xs;(function(i){i.Pageviews="pageviews",i.UserId="userId",i.Goal="goal",i.GoalId="goal:id",i.GoalReference="goal:reference",i.SegmentId="segment:id",i.PrestoredText="page:prestored_text",i.TextSeen="segment:textSeen",i.VisitText="visit:text",i.IsReturning="visit:isNew",i.NumberVisits="visit:number",i.Language="visitor:language",i.Connection="visit:connectionType",i.AppVersion="visit:appVersion",i.DynamicVariable="dynamicVar",i.DeviceCommercialName="device:marketingName",i.DeviceModel="device:manufacturer",i.DeviceModelCommercialName="device:manufacturerCommercialName",i.DeviceModelVersion="device:model",i.OsVersion="device:osVersion",i.Device="device",i.DeviceType="device:typeId",i.Transaction="visit:isBuyer",i.Amount="visit:amount",i.NumberPageViews="visit:pageviews",i.VisitDuration="visit:durationTime",i.Referrer="source:from",i.GeographicCity="location:city",i.GeographicArea="location:country",i.Test="version:id",i.CustomVariable="customVar",i.Browser="browser:name",i.BrowserVersion="browser:version",i.BrowserSemanticVersion="browser:semanticVersion",i.Os="browser:platform",i.WebOsVersion="browser:platformVersion",i.Resolution="browser:resolution",i.BrowserWindowWidth="browser:windowWidth",i.BrowserWindowHeight="browser:windowHeight",i.LandingPath="visit:landingPath",i.LandingPage="visit:landingPage",i.LandingPagePOF="visit:landingPagePOF",i.ExitPage="visit:exitPath",i.NumberPageviews="visit:pageviews",i.PageHostViewed="page:host",i.PagePathViewed="page:path",i.PageFullUrlViewd="page:fullURL",i.PageQueryParamsViewed="page:query",i.PageEvent="page:pageEvent",i.PageText="page:text",i.ExternalEvent="externalEvent",i.Feedback="voc:feedback",i.NetPromoterScore="voc:nps",i.Survey="voc:surveyId",i.Reaction="voc:reaction",i.FullText="page:full_text",i.PageCustomHashId="page:customHashId",i.CustomHashId="customHashId",i.SessionVisitIP="visit:ip",i.SegmentMerch="segment:merch",i.SegmentMerchProduct="segment:merchProduct",i.SegmentMerchCategoryBrand="segment:merchCategoryBrand",i.Error="error",i.ErrorMessage="error:message",i.ErrorFileName="error:filename",i.ErrorLineNumber="error:lineNumber",i.ErrorColumnNumber="error:colNumber",i.ErrorType="error:type",i.ErrorGroupId="error:groupId",i.ErrorGroupIdV1="error:groupIdV1",i.ApiErrorURL="errorApi:url",i.ApiErrorStatusCode="errorApi:statusCode",i.ApiErrorMethod="errorApi:method",i.ApiErrorType="errorApi:type",i.ApiErrorGroupId="errorApi:groupId",i.ApiErrorGroupIdV1="errorApi:groupIdV1",i.ApiErrorBodyAttribute="errorApi:responseBodyAttribute",i.ErrorDismissStatus="error:dismiss_status",i.ApiErrorDismissStatus="errorApi:dismiss_status",i.CustomErrorType="customError:type",i.CustomErrorMessage="customError:message",i.CustomErrorAttributes="customError:attributes",i.CustomErrorGroupId="customError:groupId",i.CustomErrorGroupIdV1="customError:groupIdV1",i.CrashType="errorCrash:type",i.CrashGroupId="errorCrash:groupId",i.CrashSpecificId="errorCrash:id",i.FlutterType="errorFlutter:type",i.FlutterGroupId="errorFlutter:groupId",i.FlutterSpecificId="errorFlutter:id",i.ExcludeBots="visit:excludeBots",i.IsBot="visit:isBot",i.SdkScreenActivity="screen:activity",i.SdkScreenContainer="screen:container",i.SdkScreenQuery="screen:query",i.SdkScreenName="screen:name",i.LargestContentfulPaint="cwv:largest_contentful_paint",i.FirstContentfulPaint="cwv:first_contentful_paint",i.CumulativeLayoutShift="cwv:cumulative_layout_shift",i.InteractionToNextPaint="cwv:interaction_to_next_paint",i.FirstInputDelay="cwv:first_input_delay",i.TimeToFirstByte="cwv:time_to_first_byte",i.EnrichmentIntegration="external:integrationEnrichment",i.DynamicSnippetIntegration="external:dynamicSnippetIntegration",i.ExternalSegmentIntegration="external:segmentIntegration",i.AccessibilityFeatures="accessibility:features",i.AccessibilityZoom="accessibility:max_zoom",i.AccessibilityHighlight="accessibility:text_highlight",i.AccessibilityKeyboard="accessibility:keyboard",i.AccessibilityKeyboardClick="accessibility:keyboard_click",i.AccessibilityKeyboardFocus="accessibility:keyboard_focus",i.AccessibilityKeyboardScroll="accessibility:keyboard_scroll",i.AccessibilityExtensions="accessibility:extensions",i.PageviewFrustrationScore="pageviewFrustrationScore",i.SessionFrustrationScore="visit:sessionFrustrationScore",i.FrustrationFactor="frustrationFactor",i.FrustrationFactorBlankPage="frustrationFactor:blankPage",i.FrustrationFactorDeadLink="frustrationFactor:deadAnchor",i.FrustrationFactorDeadClick="frustrationFactor:deadClick",i.FrustrationFactorDeadZoom="frustrationFactor:deadZoom",i.FrustrationFactorExcessiveHover="frustrationFactor:excessiveHover",i.FrustrationFactorLoopingIndex="frustrationFactor:loopingIndex",i.FrustrationFactorMultipleButtonInteractions="frustrationFactor:multipleButtonInteractions",i.FrustrationFactorMultipleFieldInteractions="frustrationFactor:multipleFieldInteractions",i.FrustrationFactorMultipleInteractions="frustrationFactor:multipleInteractions",i.FrustrationFactorMultipleUseTarget="frustrationFactor:multipleUseTarget",i.FrustrationFactorPageReload="frustrationFactor:pageReload",i.FrustrationFactorPropViewsNotConsumed="frustrationFactor:propViewsNotConsumed",i.FrustrationFactorRageClick="frustrationFactor:rageClick",i.FrustrationFactorRageTap="frustrationFactor:rageTap",i.FrustrationFactorLowActivity="frustrationFactor:lowActivity",i.FrustrationFactorThrashedCursor="frustrationFactor:thrashedCursor",i.SessionWithUserReturn="heap:sessionWithUserReturn",i.SessionFollowedByPurchase="heap:sessionFollowedByPurchase",i.FrontEndClickedElement="frontend-clicked-element",i.BotName="visit:bot_name",i.BotProvider="visit:bot_provider",i.BotType="visit:bot_type"})(Xs||(Xs={}));var FR=[Xs.PageHostViewed,Xs.PagePathViewed,Xs.PageQueryParamsViewed],Hh;(function(i){i.ZoneInteractionClick="pageview:zone-interaction:click",i.ZoneInteractionHover="pageview:zone-interaction:hover",i.ZoneInteractionTap="pageview:zone-interaction:tap",i.ZoneInteractionExitZone="pageview:zone-interaction:exitZone",i.TextConditionFullSearch="pageview:fullSearch",i.TextConditionPrestoredText="pageview:prestoredText",i.MetricHoverTime="metric:hoverTime",i.MetricTimeBeforeFirstClick="metric:timeBeforeFirstClick",i.MetricTimeBeforeFirstTap="metric:timeBeforeFirstTap",i.MetricHesitationTime="metric:hesitationTime",i.MetricScrollRate="metric:scrollRate",i.MetricTimeSpent="metric:timeSpent",i.FrontendZoneInteractionGoal="frontend:pageview:zone-interaction:goal",i.PageEvent="page:pageEvent",i.FrustrationScore="pageview:frustration-score"})(Hh||(Hh={}));var jh;(function(i){i.Click="click",i.Change="change",i.DynamicVariable="dvar_page",i.Focus="focus",i.Tap="tap",i.Pageview="pageview",i.Screenview="screenview",i.PageEvent="pageEvent",i.Hover="hover",i.HoverTime="hoverTime",i.ExitPage="exitPage",i.ExitZone="exitZone",i.Purchase="purchase",i.AddToCart="addToCart",i.MetricBounce="metric:bounce",i.MetricScrollRate="metric:scrollRate",i.MetricTimeBeforeFirstClick="metric:timeBeforeFirstClick",i.MetricTimeBeforeFirstTap="metric:timeBeforeFirstTap",i.MetricHesitationTime="metric:hesitationTime",i.MetricHoverTime="metric:hoverTime",i.MetricTimeSpent="metric:timeSpent",i.MetricClickRepetition="metric:clickRepetition",i.BlankPage="friction:blankPage",i.DeadClick="friction:deadClick",i.DeadLink="friction:deadAnchor",i.DeadZoom="friction:deadZoom",i.ExcessiveHover="friction:excessiveHover",i.FastBack="friction:fastBack",i.LoadingTime="friction:loadingTime",i.LowActivity="friction:lowActivity",i.MultipleButtonInteraction="friction:multipleButtonInteraction",i.MultipleFieldInteraction="friction:multipleFieldInteraction",i.MultipleInteraction="friction:multipleInteraction",i.MultiplePageRevisit="friction:multiplePageRevisit",i.MultipleUseTarget="friction:multipleUseTarget",i.PageReload="friction:pageReload",i.PromocodeStruggle="friction:promocodeStruggle",i.QualifiedBouncers="friction:qualifiedBouncers",i.RageClick="friction:rageClick",i.RageTap="friction:rageTap",i.ThrashedCursor="friction:thrashedCursor",i.Swipe="swipe",i.LandingPage="landingPage",i.LargestContentFulPaint="cwv:largest_contentful_paint",i.FirstContentFulPaint="cwv:first_contentful_paint",i.CumulativeLayoutShift="cwv:cumulative_layout_shift",i.InteractionToNextPaint="cwv:interaction_to_next_paint",i.FirstInputDelay="cwv:first_input_delay",i.TimeToFistByte="cwv:time_to_first_byte",i.Error="error",i.AccessibilityFeatures="accessibility:features",i.AccessibilityZoom="accessibility:max_zoom",i.AccessibilityHighlight="accessibility:text_highlight",i.AccessibilityKeyboard="accessibility:keyboard",i.AccessibilityKeyboardClick="accessibility:keyboard_click",i.AccessibilityKeyboardFocus="accessibility:keyboard_focus",i.AccessibilityKeyboardScroll="accessibility:keyboard_scroll",i.AccessibilityExtensions="accessibility:extensions"})(jh||(jh={}));var je;(function(i){i.AND="AND",i.OR="OR",i.NOT="NOT",i.SEQ="SEQ",i.CSEQ="CSEQ",i.THEN="THEN",i.DIRECTLY_THEN="DIRECTLY_THEN",i.FILTER="filter",i.EVENT_OCCURRENCE="event_occurrence",i.EVENT_SEQUENCE_OCCURRENCE="event_sequence_occurrence"})(je||(je={}));var $h;(function(i){i.EQUAL="=",i.GREATER=">",i.LESS="<",i.GREATER_OR_EQUAL=">=",i.LESS_OR_EQUAL="<=",i.NOT_EQUAL="!=",i.BETWEEN="between"})($h||($h={}));var Bh;(function(i){i.ANY="any",i.URL="url",i.PAGE="page"})(Bh||(Bh={}));var Gh;(function(i){i.ANY="any",i.NAMED="named",i.EXACT="exact",i.GROUPED="grouped"})(Gh||(Gh={}));var zh;(function(i){i.API="API",i.JS="JS",i.CUSTOM="CUSTOM",i.CRASH="CRASH",i.FLUTTER="FLUTTER"})(zh||(zh={}));var qh;(function(i){i.GET="GET",i.POST="POST",i.PUT="PUT",i.PATCH="PATCH",i.DELETE="DELETE"})(qh||(qh={}));var Wh;(function(i){i.EXPERIENCED="EXPERIENCED",i.HAVE_NOT_EXPERIENCED="HAVE_NOT_EXPERIENCED"})(Wh||(Wh={}));var Fh;(function(i){i.ALL="ALL",i.DISMISSED="DISMISSED",i.UNDISMISSED="UNDISMISSED"})(Fh||(Fh={}));var YR=Object.freeze([je.AND,je.OR,je.SEQ,je.CSEQ,je.THEN,je.DIRECTLY_THEN]),XR={children:[],nodeType:je.AND},KR={nodeType:je.FILTER,field:Xs.SegmentId,operator:vo.MATCH_EQUALS,value:I0.ALL_VISITORS},Yh;(function(i){i.Model="model",i.Product="product",i.Category="category",i.Brand="brand"})(Yh||(Yh={}));var Xh;(function(i){i.Visit="pageview:visit",i.First="pageview:first",i.Last="pageview:last",i.Bounce="pageview:bounce",i.FrontendGoal="frontend:pageview:goal"})(Xh||(Xh={}));var QR={field:"pageview:no_op",nodeType:je.FILTER,operator:vo.MATCH_EQUALS},Kh;(function(i){i.PageViewedConditionId="goal:reference:PageViewed",i.ZoneClickedConditionId="goal:reference:click",i.SamePageViewConditionEditorId="pageviews"})(Kh||(Kh={}));var P0=null,N0=(()=>{let i=class{constructor(t,e){this.fO=t,this.E=e}onBootstrap(){csSetTimeout(()=>{try{Ly(()=>this.pO())}catch(t){$.error(t,"trackingTagStartup")}})}pO(){_w._uxa=_w._uxa||[],this.gO(),Vy(),this.mO(),Sm(),this.fO.start()}gO(){xy((t,e)=>{let s=t.type==="listen"?[$i.EventListener,t.name]:[$i.MonkeyPatch,t.method];So(e,s)})}mO(){var t,e;!((e=(t=this.E)===null||t===void 0?void 0:t.experimental)===null||e===void 0)&&e.disableMutationObserverProtection&&_w.csMutationObserver&&(_w.csMutationObserver=ms(_w,"MutationObserver"))}};return i.$deps=[Yl,ht],i=L([Bt({imports:[w0,te,P0],providers:[Yl,xd]})],i),i})(),O0=k(64).pu,xa;(xa=_w.CSCurrentScript)!==null&&xa!==void 0||(_w.CSCurrentScript=_d.currentScript);pd($);O0.yield().then(()=>Zm(N0)).catch(ey);})(); })(document, window); // signature-ef364c254a1e326e3f090b002a75f99d8749248a37af6f663d0910a767eea058