//15.225.5-es2019 2026-05-23T07:25:28.604Z (ea79310ddd5b7) var CS_CONF={"collectionEnabled":true,"isLegacyHJ":false,"projectId":741896,"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":"contain","value":".*","ignoreQueryParams":1,"ignoreURIFragments":1,"ignoreCaseSensitivity":1,"maskMedia":0}],"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,"voc":{"siteId":null,"enabled":0},"implementations":[{"template":{"name":"ArtificialPageview","args":{}},"triggers":[{"name":"HistoryChange","args":{"listeners":"popstate, pushState, replaceState","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":0},{"quotaType":"RECORDING","value":0}],"trackingCodeVerified":true}; window.CSCurrentScript = document.currentScript; (async function(_d, _w) { var scheduler = _w.scheduler && _w.scheduler.yield ? _w.scheduler : { postTask: function(cb) { return new Promise(function(resolve, reject) { setTimeout(function() { try { resolve(cb()); } catch (e) { reject(e); } }, 0); }); }, yield: function() { return new Promise(function(r) { setTimeout(r, 0); }); } }; await scheduler.yield(); (()=>{var Cf=Object.defineProperty;var If=(i,r,t)=>r in i?Cf(i,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[r]=t;var ti=(i,r,t)=>If(i,typeof r!="symbol"?r+"":r,t);var qi={};qi.d=(i,r)=>{for(var t in r)qi.o(r,t)&&!qi.o(i,t)&&Object.defineProperty(i,t,{enumerable:!0,get:r[t]})};qi.o=(i,r)=>Object.prototype.hasOwnProperty.call(i,r);qi.r=i=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var Oa={};qi.r(Oa);qi.d(Oa,{getRequestParameters:()=>oA});function Hu(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 Ma(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 Ks=Ma(console);function Pf(i){Ks=Ma(i)}function Dc(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 dr(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:Ks).debug(...i&&typeof o=="string"?[t(o),...c]:n)},warn(...n){let[o,...c]=n;(r!=null?r:Ks).warn(...i&&typeof o=="string"?[t(o),...c]:n)},error(n,...o){let c=r!=null?r:Ks,[l,...u]=o,h=t(n);if(l!=null&&typeof l!="string"){let p=typeof h=="string"?h:h.message;c.error(Dc(p,l))}else l!==void 0?c.error(h,l,...u):c.error(h)},critical(n,...o){let c=r!=null?r:Ks,[l,...u]=o,h=t(n);if(l!=null&&typeof l!="string"){let p=typeof h=="string"?h:h.message;c.critical(Dc(p,l))}else l!==void 0?c.critical(h,l,...u):c.critical(h)}};function s(n){r=Ma(n)}return{logger:e,setLogger:s}}var{logger:Nf}=dr("metrics"),ar={error(i,r){Nf.error(i,r)}},ju=typeof performance!="undefined"&&!!performance.now,kc=ju?()=>performance.now():()=>csDate.now(),Of=(()=>{var i,r,t;return ju?(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})(),Lc={now(){return Math.round(kc()+Of)},elapsed(){return kc()}};function Mf(i,r){let t=r.wait,e=r.mode||"leading",s,n=[],o=null,c=0,l,u=()=>{c=Lc.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 y=Lc.now(),m=t-(y-c);return m<=0||m>t?(c=y,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 Df(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 Bu=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 Lf(n,o.bind(this))(...c)}}};function kf(i){return typeof i!="undefined"}function xc(i){return i instanceof Error}function Lf(i,r){return function(...t){try{let e=r.apply(this,t);return kf(self.Promise)&&e instanceof self.Promise?e.then(s=>s,s=>ar.error(xc(s)?s:new Error(s),i)):e}catch(e){try{ar.error(xc(e)?e:new Error(e),i)}catch{}}}}var Jt=(()=>{class i{static setGlobalService(t){i.globalService=t}static Xy(t){this.Ky.test(t)||ar.error(`Invalid metric name: "${t}". Must contain only letters with optional hyphens or dots between words.`)}static validateParameterName(t){return!/^https?:\/\/.+/.test(t)&&!this.Jy.test(t)?(ar.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.Xy(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.Ky=/^[a-zA-Z]+([-.][a-zA-Z]+)*$/,i.Jy=/^[a-zA-Z]+([-.:_|][a-zA-Z0-9]+)*$/,Hu([Bu()],i.prototype,"flush",null),i})(),yt=(()=>{class i extends Jt{constructor(t,e=100){super(t),this.Qy=e,this.values={},this.debouncedFlush=()=>this.flush(),e&&(this.debouncedFlush=Df(()=>this.flush(),this.Qy))}count(t,e=1){Jt.globalService&&(this.values[t]||Jt.validateParameterName(t),this.values[t]=(this.values[t]||0)+e,this.debouncedFlush())}}return i})(),Gs=(()=>{class i extends Jt{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})(),zs=(()=>{class i extends Jt{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(!Jt.globalService)return;this.values[`${t}.count`]||Jt.validateParameterName(t);let p=y=>this.values[`${t}.${y}`];(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})(),xf=(()=>{class i extends Jt{constructor(){super(...arguments),this.values={}}set(t,e="flags"){var s,n;Jt.globalService&&(this.values[e]||Jt.validateParameterName(e),(s=(n=this.values)[e])!==null&&s!==void 0||(n[e]=0),this.values[e]|=t,this.flush())}}return i})(),Vf=(()=>{class i extends Jt{constructor(t,e={iterations:10,interval:2e3}){super(t),this.Kd=e,this.ca=0,this.je=null,this.ua=[],this.values={}}push(t){_d.visibilityState!=="hidden"&&(this.ca+=t,this.je||this.Zy())}Zy(){this.je=_w.csSetInterval(()=>{csArray.prototype.push.call(this.ua,this.ca),this.ca=0,this.ua.length>=this.Kd.iterations&&this.je&&csClearInterval(this.je)},this.Kd.interval)}flush(t){return this.je&&(csClearInterval(this.je),this.je=null),csArray.prototype.forEach.call(this.ua,(e,s)=>{this.values[`interval.${s+1}`]=e}),this.ua=[],this.ca=0,super.flush(t)}}return i})(),Uf=(()=>{class i extends Jt{constructor(){super("upload-size"),this.ha=new Map}add(t,e,s){if(t===0)return;try{e=`${csString.prototype.substring.call(csString.prototype.replace.call(new csURL(e).pathname,/[^a-z0-9]+/g,"-"),1)||"home"}|${s}`,e=csString.prototype.toLowerCase.call(csString.prototype.replace.call(e,/^v2-/,""))}catch{ar.error(`Invalid URL for upload size metric: ${e}`);return}let n=this.ha.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.ha.set(e,n)}flush(t){if(Jt.globalService===null||isNaN(+t))return!1;let e=[];return this.ha.forEach((s,n)=>{csArray.prototype.forEach.call(Object.keys(s),o=>{let c=`${n}.${o}.${t}`;Jt.validateParameterName(c),csArray.prototype.push.call(e,{name:this.name,parameter:c,value:Math.round(s[o])})})}),Jt.globalService.push(e),this.ha.clear(),!0}}return Hu([Bu()],i.prototype,"flush",null),i})(),$={counters:{boot:new yt("boot"),commandsFromIntegrations:new yt("commands-from-integrations"),commandsFromCSTC:new yt("commands-from-cstc"),commandsFromIframe:new yt("commands-from-iframe"),commandApplied:new yt("command-applied"),commandError:new yt("command-error"),commandMisuse:new yt("command-misuse"),CSTCSnippetUsed:new yt("cstc-snippet-used"),redactedPII:new yt("redacted-pii"),pageAnonymisation:new yt("page-anonymisation"),patchedNativeFunctions:new yt("patched-native-functions"),pureWindowState:new yt("pure-window-state"),sensitiveElements:new yt("sensitive-elements"),cspErrors:new yt("csp-errors"),networkRequests:new yt("network-requests"),webVitalsErrors:new yt("web-vitals-errors"),trackedFeatures:new yt("tracked-features"),longTasks:new Gs("long-tasks"),errors:new yt("errors"),methodPerformance:new zs("perf"),transferSize:new Gs("transfer-size",["max","average"]),downloadTime:new Gs("download-time",["average"]),blockingTime:new Gs("blocking-time"),inpContribution:new Gs("inp-contribution"),tasks:new zs("tasks"),availableFeatures:new xf("available-features"),dom:new zs("dom",["total"]),mutations:new Vf("mutations"),requestTimeouts:new yt("request-timeouts"),requestErrors:new yt("request-errors"),requestCounts:new yt("request-counter"),payloadSize:new Uf,featureUsage:new yt("feature-usage"),inpLoaf:new zs("inp-loaf",["max","average"]),transactions:new yt("transactions"),cssomVarFallback:new yt("cssom-var-fallback"),nativeOverrides:new yt("native-overrides"),experimentVariantApplied:new yt("experiment-variant-applied"),experimentVariantApplyDuration:new zs("experiment-variant-apply-duration"),experimentFailed:new yt("experiment-failed")},setService(i){Jt.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"))}},Hf=typeof performance!="undefined"&&!!performance.now,jf=Hf?()=>performance.now():()=>csDate.now(),Vc={elapsed(){return jf()}},{logger:$u,setLogger:TT}=dr("task"),Gu=(()=>{class i{constructor(){this.Ne=0}get length(){return this.Ne}get isEmpty(){return!this.pt}pushAll(t){for(let e=0;e{ta++,csQueueMicrotask(()=>Mn(()=>{try{i()}finally{ta--}},[Ti.MicroTask,"queueMicrotask"]))},cn=new Gu,ln=new Gu;function Cs(i,r="high"){cn.isEmpty&&ln.isEmpty&&qu(Bf),r==="high"?ln.push(Uc(i)):cn.push(Uc(i))}function qu(i,r=10){r===0?zu(i):csQueueMicrotask(()=>qu(i,r-1))}function Bf(){for(;!ln.isEmpty;)ln.pop()();for(;!cn.isEmpty;)cn.pop()()}function Uc(i){return function(){try{i.apply(_w,arguments)}catch(r){$u.critical(r)}}}var Ti=(()=>{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})(),Ne=null,$f=["click","tap","keyup","keydown","pointerup","pointerdown"];async function Mn(i,r,t=null){if(Ne&&r[0]!==Ti.MicroTask)return i();t&&(Ne=t),Ne||(Ne={type:r[0],elapsed:0});try{Ne.elapsed+=Gf(i)}catch(e){$u.critical(new Error(`Task error: ${r}/${i.name}. ${e.message} ${e.stack}`),"TASK_ERROR")}finally{ta<=0&&(Ne.elapsed>50&&($.counters.longTasks.push(Ne.elapsed),$.counters.blockingTime.push(Ne.elapsed-50)),$.counters.tasks.add(r[0],Ne.elapsed),csArray.prototype.includes.call($f,r[1])&&$.counters.inpContribution.push(Ne.elapsed),Ne=null)}}function Gf(i){let r=Vc.elapsed();return i(),Vc.elapsed()-r}function Qi(i,r){let t;return _w.Zone&&typeof _w.Zone.__symbol__=="function"&&(t=i[_w.Zone.__symbol__(r)]),t!=null?t:i[r]}var Fu=typeof _w=="undefined";function zf(){return typeof _w!="undefined"?_w:Function("return this")()}var pt=zf();var mo,qf="cs-native-frame";var di={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:{Date:"csDate",JSON:"csJSON",Array:"csArray",String:"csString",URL:"csURL",MutationObserver:"csMutationObserver",screen:"csScreen",RegExp:"csRegExp"}};function Wu(i,r){let t=Qi(_w,i);return function(e,s){return t(()=>Mn(e,[r,i]),s)}}_w.csSetTimeout=Wu("setTimeout",Ti.Timer);_w.csSetInterval=Wu("setInterval",Ti.Timer);_w.csQueueMicrotask=(mo=Qi(_w,"queueMicrotask"))!==null&&mo!==void 0?mo:setTimeout;_w.csClearTimeout=Qi(_w,"clearTimeout");_w.csClearInterval=Qi(_w,"clearInterval");_w.csFileReader=Qi(_w,"FileReader");(()=>{var i;let r=0;function t(s){return"cs$Symbol_"+s}function e(s){return t(s)+ ++r}e.for=t,_w.csSymbol=(i=_w.Symbol)!==null&&i!==void 0?i:e})();function Ff(){let i=_d.createElement("iframe");i.id=qf,i.setAttribute("hidden",""),i.setAttribute("title","Intentionally blank"),i.setAttribute("sandbox","allow-same-origin");let r=_d.createElement("cs-native-frame-holder");if(r.setAttribute("hidden",""),_d.body.appendChild(r),!!Element.prototype.attachShadow){let e=r.attachShadow({mode:"closed"});return e.innerHTML=i.outerHTML,e.firstElementChild.contentWindow}return r.innerHTML=i.outerHTML,r.firstElementChild.contentWindow}function Wf(i,r){let t,e=i;for(;e&&!(t=Object.getOwnPropertyDescriptor(e,r));)e=Object.getPrototypeOf(e);return t}function Yf(i,r,t){let e=Wf(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 Yu(i){var r,t;Object.keys(di.constructors).forEach(s=>{_w[di.constructors[s]]=i[s]instanceof Function&&i[s].prototype==null?i[s].bind(_w):i[s]}),Jf(i);let e=i.MutationObserver;("Prototype"in _w||Kf())&&(e=(t=(r=Qi(_w,"MutationObserver"))!==null&&r!==void 0?r:_w.WebKitMutationObserver)!==null&&t!==void 0?t:_w.MutationObserver),_w.csIntersectionObserver=Hc(_w.IntersectionObserver,Ti.IntersectionObserver),_w.csMutationObserver=Hc(e,Ti.MutationObserver),us("csNode",di.nodeProperties,i.Node.prototype,"get"),us("csElement",di.elementProperties,i.Element.prototype,"get"),us("csElement",di.elementPropertiesValues,i.Element.prototype,"value",!1),us("csHTMLImageElement",di.imageProperties,i.HTMLImageElement.prototype,"set"),us("csEvent",di.eventProperties,i.Event.prototype,"get"),us("csNavigator",di.navigatorProperties,i.navigator,"value")}function us(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}`]=Yf(t,c,e),o&&(_w[`${i+c}`]=_w[`${i+c}`].bind(n.binding)))})}function Da(i,r){_w.CSProtectnativeFunctionsLogs=_w.CSProtectnativeFunctionsLogs||{},_w.CSProtectnativeFunctionsLogs[i]=r}function Xf(){try{let i=Ff();return i?(_w.CSPureWindow=i,Yu(_w.CSPureWindow),!0):!1}catch(i){return Da("Warning",`failed to copy references from pure iframe: ${i.message}`),!1}}if(!Xf())try{Yu(pt)}catch(i){Da("Critical",`failed to copy references from window: ${i.message}`)}function Kf(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function Jf(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 Hc(i,r){try{let t=function(e,s){return new i((o,c)=>{Mn(()=>e(o,c),[r,i.name])},s)};return t.base=i,t}catch{return Da("Warning",`failed to extends ${i.name}`),i}}function Ct(i){return csNodenodeType.apply(i)===1}function un(i){return csNodenodeType.apply(i)===3}function Qf(i){return csNodenodeType.apply(i)===8}function Zf(i){return Ct(i)&&i.localName==="link"}function tp(i){return Ct(i)&&i.localName==="source"}function Xu(i){return Ct(i)&&i.localName==="a"}function Ku(i){return Zf(i)&&csString.prototype.indexOf.call(i.rel,"stylesheet")!==-1}function ep(i){return Ct(i)&&i.localName==="img"}function Dn(i){return Ct(i)&&i.localName==="style"}function ka(i){return Ct(i)&&i.localName==="input"}function Ju(i){return Ct(i)&&i.localName==="textarea"}function ip(i){return Ct(i)&&i.localName==="script"}function sp(i){return Ct(i)&&i.localName==="button"}function fr(i){return Ct(i)&&"ownerSVGElement"in i}function Qu(i){return Ct(i)&&i.localName==="select"}function rp(i){return Ct(i)&&i.localName==="details"}function np(i){return Ct(i)&&i.localName==="summary"}function op(i){return fr(i)&&i.localName==="image"}function ap(i){return fr(i)&&i.localName==="use"}function cp(i){return fr(i)&&i.localName==="feImage"}function lp(i){switch(csNodenodeType.apply(i)){case 9:case 11:return!0;default:return!1}}function up(i){switch(csNodenodeType.apply(i)){case 9:case 11:case 1:return!0;default:return!1}}function hn(i){return csNodenodeType.apply(i)===9}function oi(i){return lp(i)&&"host"in i&&"mode"in i}function Zu(i){return Ct(i)&&!!csElementshadowRoot.apply(i)&&oi(csElementshadowRoot.apply(i))}var pr="detached";function th(i){let r=i,t=[r];for(;csNodeparentNode.apply(r)!==null;)r=csNodeparentNode.apply(r),csArray.prototype.push.call(t,r);return dn(r)&&csArray.prototype.push.call(t,pr),{ancestors:t,selectionRoot:r}}function hp(i){let r=i,t=[r],e=null;for(;csNodeparentNode.apply(r)!==null;)e===null&&Xu(r)&&(e=r),csArray.prototype.push.call(t,csNodeparentNode.apply(r)),r=csNodeparentNode.apply(r);return dn(r)&&csArray.prototype.push.call(t,pr),{firstAnchorParent:e,ancestors:t,selectionRoot:r}}function dn(i){return vi.isValidElement(i)}var Ui=(()=>{var i,r;return(r=(i=pt.Element)===null||i===void 0?void 0:i.prototype)!==null&&r!==void 0?r:{}})(),Se=Ui.matches||Ui.matchesSelector||Ui.mozMatchesSelector||Ui.msMatchesSelector||Ui.oMatchesSelector||Ui.webkitMatchesSelector,jc=Ui.closest,dp="@",fp=[/\d{4}/,/^ember\d+$/],Gt=(()=>{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 csRegExp(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 ea(i){return Gt.escapeInvalidCharacters(csString.prototype.toLowerCase.call(i.localName))}function pp(i){let r=i.getAttribute("id");return r&&Gt.escapeInvalidCharacters(r)}var eh=9;function gp(i,r){return r?csArray.prototype.some.call(r,t=>Se.call(i,t)):!1}function mp(i,r,t){if(i===pr||csNodenodeType.apply(i)===eh)return 0;let e=t.dynamicElementNameRegex,s=!!(e!=null&&e.test(r.localName)),n=ea(r),o=0,c=r.previousElementSibling;for(;c;)(ea(c)===n||s&&(e!=null&&e.test(c.localName)))&&!gp(c,t.reliableSelectors)&&(o+=1),c=c.previousElementSibling;return o}function Ep(i,r,t){if(i===pr||csNodenodeType.apply(i)===eh)return 0;let e=0,s=r.previousElementSibling;for(;s;)Se.call(s,t)&&(e+=1),s=s.previousElementSibling;return e}var La="data-cs-override-id",yp="data-cs-dynamic-id";function ih(i,r,t,e){let s=e.dynamicIdRegex||null,n=e.dynamicElementNameRegex,o=ea(i);if(n&&n.test(i.localName)&&(o=csString.prototype.replace.call(o,n,`$1${dp}`)),vp(i,t)){let y=xa(i);return{hasUniqueIdentifier:!0,elementSelector:`${o}[${La}="${y}"]`}}let c=Ip(i,t,e);if(c.success)return{hasUniqueIdentifier:!0,elementSelector:`${o}#UA[${c.attributeName}="${c.attributeValue}"]`};let l=Sp(i,t,e);if(l)return{hasUniqueIdentifier:!0,elementSelector:`${o}#UCS[${l}]`};let u=pp(i);if(Ap(i,u,t,s))return{hasUniqueIdentifier:!0,elementSelector:`${o}#${u}`};let h=_p(i,e);if(h){let y=Ep(r,i,h);return{hasUniqueIdentifier:!1,elementSelector:`${o}[${h}](${y})`}}let p=mp(r,i,e);return{hasUniqueIdentifier:!1,elementSelector:`${o}:eq(${p})`}}function Sp(i,r,t){if(t.uniqueCssSelectors){for(let e of t.uniqueCssSelectors)if(Se.call(i,e)&&Cp(e,r))return e}}function _p(i,r){if(r.reliableSelectors){for(let t of r.reliableSelectors)if(Se.call(i,t))return t}}function vp(i,r){let t=xa(i);return t&&csString.prototype.match.call(t,/^[\w-]+$/)&&Va(La,t,r)}function wp(i){return xa(i)!==null}function xa(i){return i.getAttribute(La)}function Ap(i,r,t,e){return r&&!wp(i)&&!Tp(i,r,e)&&Rp(r,t)}function Tp(i,r,t){return i.hasAttribute(yp)||bp(r,t)}function bp(i,r){let t=!1;return i&&r&&(t=r.test(i)),i&&(csArray.prototype.some.call(fp,e=>e.test(i))||t)}function Rp(i,r){return i&&Va("id",i,r)}function Va(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 Cp(i,r){try{return _w.csquerySelectorAll[r.nodeType].call(r,i).length===1}catch(t){if(t.name!=="SyntaxError")throw t}return!1}function Ip(i,r,t){if(!t.uniqueAttributes)return{success:!1};for(let e of t.uniqueAttributes){let s=i.getAttribute(e);if(s!==null&&Va(e,s,r))return{attributeName:e,attributeValue:s,success:!0}}return{success:!1}}var ia=11;function fn(i,r,t){let e=csArray.prototype.shift.call(i);if(i.length===0)return Bc(e,t);let s=e,n=i[0],{elementSelector:o,hasUniqueIdentifier:c}=ih(s,n,r,t);if(!t.fullPath&&c){let u=i[i.length-1];return`${Bc(u,t)}${o}`}let l=fn(i,r,t);return`${l?`${l}>`:""}${o}`}function Bc(i,r){if(i===pr)return"|detached|";if(oi(i)){let{ancestors:t,selectionRoot:e}=th(i.host);return`${fn(t,e,r)}|shadow-root|`}return csNodenodeType.apply(i)===ia?"|fragment|":""}var sh=(()=>{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})(),Pp=(()=>{class i extends sh{constructor(){super(...arguments),this.da=!1,this.fa=!1,this.sl=!1}tS(t,e){return this.da&&!(e===null&&dn(t))&&csNodenodeType.apply(t)!==ia&&!oi(t)}eS(t){return!t.localName}serializeElement(t,e,s){var n;if((n=this.path)!==null&&n!==void 0||(this.path=""),this.tS(t,e))return;let o=!1;e===null&&dn(t)&&(o=!0,this.done=!0);let c=this.fa&&!this.options.fullPath?"":">",l=oi(t);if(l&&this.path&&(this.path="|shadow-root|"+c+this.path,this.sl=!0,this.da=!1,this.fa=!1),!l&&e===null&&csNodenodeType.apply(t)===ia){this.path="|fragment|"+c+this.path,this.done=!0;return}if(this.eS(t))return;let u=e!=null?e:"detached",{elementSelector:h,hasUniqueIdentifier:p}=ih(t,u,s,this.options);p&&(this.fa=!0,this.da=!this.options.fullPath);let y=`${o?`|detached|${c}`:""}${this.da&&!p?"":h}`,_=!p&&this.fa&&!this.options.fullPath?"":this.path&&!this.sl?">":"";this.sl=!1,this.path=`${y}${_}${this.path}`}}return i})(),Np=(()=>{class i extends sh{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.iS(t);if(s+=s.length>0?"|":"",this.path.length+s.length>this.options.hierarchyMaxLength){this.done=!0;return}this.path=s+this.path}iS(t){if(!t.localName)return"";let e=`@${t.localName};`;return e+=this.sS(t.id),t.classList&&(e+=this.rS(csArray.from(t.classList))),t.attributes&&(e+=this.nS(t)),e}sS(t){return t?`#${t};`:""}rS(t){return t.length>0?`.${csArray.prototype.join.call(csArray.prototype.sort.call(t),";.")};`:""}oS(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||fr(t)&&csString.prototype.indexOf.call(e,"data-")===-1&&e!=="aria-label"||ka(t)&&e==="value"}aS(t,e){return this.options.useAnonymization&&!this.options.allWhitelistedAttributes.has(t)||e.length>this.options.attrMaxLength}cS(t){let e={};for(let s of csArray.from(t.attributes))this.oS(t,s.name)||(e[s.name]=s.value);return e}nS(t){var e,s;if(!((s=(e=this.options).isNodeSensitive)===null||s===void 0)&&s.call(e,t))return"";let n=Object.entries(this.cS(t));return csArray.prototype.join.call(csArray.prototype.sort.call(csArray.prototype.map.call(csArray.prototype.filter.call(n,([o])=>o.lengththis.aS(o,c)?`[${o}]`:`[${o}=${c}]`)),";")+(n.length>0?";":"")}}return i})();function Ht(i){return ht(i)&&(typeof i=="number"||i instanceof Number)&&!isNaN(i)}function Yi(i){return i===parseInt(i,10)}function M(i){return ht(i)&&(typeof i=="string"||i instanceof csString)}function pn(i){return typeof i=="boolean"}function vs(i){return typeof i=="object"}function ht(i){return typeof i!="undefined"}function It(i){return ht(i)&&i!==null}function rt(i){return typeof i=="object"&&i!==null}function Op(i,r,t){return Yi(i)&&i>=r&&i<=t}function sa(i){for(let r in i)return!1;return!0}function xe(i){return typeof i=="function"}function tn(i){return typeof Node!="undefined"&&i instanceof Node}function bi(i){return i instanceof Element}function Xe(i){return i instanceof Error}function Ua(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=_w.csScreen.width;return Yi(p)&&p>0?p:_w.screen.width}r.screenWidth=o;function c(){let p=_w.csScreen.height;return Yi(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})(),mt=(()=>{let i;return function(r){r.debug="debug",r.warn="warn",r.implementation="implementation",r.error="error",r.critical="critical"}(i||(i={})),i})(),Eo={[mt.debug]:0,[mt.warn]:1,[mt.implementation]:1,[mt.error]:2,[mt.critical]:3},at={debug(...i){},warn(...i){},implementation(...i){},error(...i){},critical(...i){},isPerfLoggingActive(){return!1}};function rh(i){at=i}var L=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 _i(n,o.bind(this))(...c)}}};function _i(i,r){return function(...t){try{let e=r.apply(this,t);return ht(self.Promise)&&e instanceof self.Promise?e.then(s=>s,s=>at.error(Xe(s)?s:new Error(s),i)):e}catch(e){try{at.error(Xe(e)?e:new Error(e),i)}catch{}}}}function gn(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 dt(i,r){if(kp(i)){let t=i.length;for(let e=0;e=0}function gr(i,r){let t=i.length;for(let e=0;ecsArray.prototype.push.call(t,r?[s,e]:e)),t}function xp(i){return csArray.isArray(i)&&i.length>0}function ye(i,r=ie.SHOW_ALL){let t=r|ie.SHOW_ELEMENT,e=[_d.createTreeWalker(i,t,null,!1)],s=Gc(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=Gc(c);if(r&ie.SHOW_DOCUMENT_FRAGMENT&&l&&(n=l),l&&csArray.prototype.push.call(e,_d.createTreeWalker(l,t,null,!1)),(So[csNodenodeType.apply(c)]&r)!==0)return c}return null},visitAll(o){So[csNodenodeType.apply(i)]&r&&o(i);let c=this.nextNode();for(;c;){if((So[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 Gc(i){return i&&Zu(i)?i.shadowRoot:null}var yo=(()=>{var i;return(i=pt.Node)!==null&&i!==void 0?i:{}})(),ie=(()=>{var i;return(i=pt.NodeFilter)!==null&&i!==void 0?i:{}})(),So={2:ie.SHOW_ATTRIBUTE,4:ie.SHOW_CDATA_SECTION,8:ie.SHOW_COMMENT,11:ie.SHOW_DOCUMENT_FRAGMENT,9:ie.SHOW_DOCUMENT,10:ie.SHOW_DOCUMENT_TYPE,1:ie.SHOW_ELEMENT,[yo.ENTITY_NODE]:ie.SHOW_ENTITY,[yo.ENTITY_REFERENCE_NODE]:ie.SHOW_ENTITY_REFERENCE,[yo.NOTATION_NODE]:ie.SHOW_NOTATION,7:ie.SHOW_PROCESSING_INSTRUCTION,3:ie.SHOW_TEXT};function Ha(i){let r=new ArrayBuffer(i.length),t=new Uint8Array(r);for(let e=0,s=i.length;ecsString.prototype.padStart.call(t.toString(16),2,"0")),"")}function Vp(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 qc(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){at.warn(`${o}, calling decodeURIComponent on: ${e[1]}`)}let n=r?ja(e[1]):Ha(e[1]);return new Blob([n],{type:Vp(csString.prototype.replace.call(e[0],"data:",""))})}var ch=typeof performance!="undefined"&&!!performance.now,Fc=ch?()=>performance.now():()=>csDate.now(),Up=(()=>{var i,r;return ch?(r=(i=performance.timing)===null||i===void 0?void 0:i.navigationStart)!==null&&r!==void 0?r:Math.floor(performance.timeOrigin):0})(),Ba=34164e6,Hp=2592e6;var U={now(){return Math.round(Fc()+Up)},elapsed(){return Fc()}};function Wc(){return Math.floor(U.now()/1e3)}function lh(){return typeof pt.Promise=="function"}function jp(){var i;return typeof crypto!="undefined"&&xe((i=crypto.subtle)===null||i===void 0?void 0:i.digest)}function Yc(){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 Wt(i,r){return csString.prototype.lastIndexOf.call(i,r,0)===0}function Is(i,r){return csString.prototype.indexOf.call(i,r,i.length-r.length)!==-1}var Bp=Number.MAX_SAFE_INTEGER||9007199254740991,Xi={percentage(){return Math.floor(Math.random()*1e4)/100},boolean(i){return this.percentage(){let s=U.elapsed()-t;s>=oa&&$.counters.methodPerformance.add(r,s),s>Br&&$.counters.blockingTime.push(s-Br)});else{let s=U.elapsed()-t;s>=oa&&$.counters.methodPerformance.add(r,s),s>Br&&$.counters.blockingTime.push(s-Br)}return e}}var Zt=function(i){return function(r,t,e){let s=e.value;e.value=mr(s,i)}},ri=(()=>{let i;return function(r){function t(){return!!Element.prototype.attachShadow}r.isSupported=t;function e(n){return n&&Zu(n)?n.shadowRoot:null}r.getShadowRoot=e;function s(n){return ye(n,NodeFilter.SHOW_DOCUMENT_FRAGMENT).collectAll(o=>o.host)}r.getAllShadowHosts=mr(s,"getAllShadowHosts")}(i||(i={})),i})(),_o=(()=>{var i;return(i=pt.Node)!==null&&i!==void 0?i:Object})(),de=(()=>{let i;return function(r){let t="isConnected"in _o.prototype?T=>csNodeisConnected.apply(T):T=>!T.ownerDocument||!(T.ownerDocument.compareDocumentPosition(T)&T.DOCUMENT_POSITION_DISCONNECTED);function e(T,V){for(let H=T;H;H=csNodenextSibling.apply(H))V(T)}r.forEachChild=e;function s(T){return t(T)}r.isConnected=s;function n(T,V){let H=[];for(let F of l(T,V))csArray.prototype.push.call(H,F);return H}r.getAncestors=n;let o=(T,V)=>{var H;return(H=csNodeparentNode.apply(T))!==null&&H!==void 0?H:V&&oi(T)?T.host:null};function c(T,V,H=!1){let F=T;for(;F;){if(V(F))return F;let vt=o(F,H);if(vt&&vt!==F)F=vt;else break}return null}r.findAncestor=c;function*l(T,V=!1){let H=T;for(;H;){yield H;let F=o(H,V);if(F&&F!==H)H=F;else break}}r.walkUp=l;function u(T,V){if(T===V||V.contains(T))return!0;let H=r.getParentElement(T);return H&&H!==T?u(H,V):!1}r.isDescendantOf=u;function h(T){var V;return T.parentElement?T.parentElement:r.getRootNode(T)?(V=r.getRootNode(T))===null||V===void 0?void 0:V.host:null}r.getParentElement=h;function p(T,V=_d){let H=gn(_w.csquerySelectorAll[V.nodeType].call(V,T)),F=ri.getAllShadowHosts(V);for(let vt of F){let At=ri.getShadowRoot(vt);if(!At)continue;let oe=gn(_w.csquerySelectorAll[At.nodeType].call(At,T));csArray.prototype.push.call(H,...oe)}return H}r.findAllElements=p,r.getRootNode=(()=>{if("getRootNode"in _o.prototype)return(H,F)=>H.getRootNode(F);function T(H){let F=V(H);return oi(F)?T(F.host):F}function V(H){return csNodeparentNode.apply(H)!=null?V(csNodeparentNode.apply(H)):H}return(H,F)=>typeof F=="object"&&!!F.composed?T(H):V(H)})();function y(T){return T==="transparent"||/^(rgba|hsla)\(\d+, \d+%?, \d+%?, 0\)$/.test(T)}function m(T){let V=T.getBoundingClientRect();return V.right+Ut.windowOffsetX()<0||V.bottom+Ut.windowOffsetY()<0}function _(T){var V,H;if(((V=T.checkVisibility)===null||V===void 0?void 0:V.call(T,{checkOpacity:!0,checkVisibilityCSS:!0}))===!1)return!0;if(!T.offsetParent){if(!T.getBoundingClientRect)return at.warn(`SUP-11432: Element doesn't have getBoundingClientRect. Node: ${T instanceof _o} Ctor: ${(H=T==null?void 0:T.constructor)===null||H===void 0?void 0:H.name}`),!1;let At=T.getBoundingClientRect();if(At.width===0&&At.height===0)return!0}let F=_w.getComputedStyle(T);return F?F.display==="none"||F.visibility==="hidden"||F.visibility==="collapse"||F.opacity==="0"||F.filter==="opacity(0)"||F.width==="0px"&&F.height==="0px"||y(F.color):!0}r.isHiddenByCSS=_;function A(T){if(_(T))return!0;let H=h(T);return H!=null&&A(H)}r.areAncestorsHiddenByCSS=A;function D(T){let V=null,H=T;do if(_(H))V=H;else break;while(H=h(H));return V}r.getTopAncestorHiddenByCSS=D;function I(T){let V=C(T);return V!==null&&!T.contains(V)&&!V.contains(T)}function C(T){let V=T.getBoundingClientRect(),H=V.left+.5*V.width,F=V.top+.5*V.height;return O(_d,H,F)}r.getTopElement=C;function x(T){if(!T.getBoundingClientRect)return null;let V=T.getBoundingClientRect(),H=V.x+V.width/2,F=V.y+V.height/2;return r.getTopElementFromPoint(_d,H,F)}r.getElementOnTop=x;function O(T,V,H){let F=T.elementFromPoint(V,H);if(!F)return null;let vt=ri.getShadowRoot(F);return vt&&vt!==r.getRootNode(_d.body)&&vt!==T?O(vt,V,H):F}r.getTopElementFromPoint=O;function N(T){return!m(T)&&!_(T)&&!I(T)}r.isVisibleInDocument=N;function W(T){return _(T)?!1:q(T)}r.isVisibleInViewportInForeground=W;function q(T){let V=C(T);return V===null?!1:T===V?!0:te(T)?T.textContent!==""&&V.contains(T):T.contains(V)}r.isInViewPort=q;function gt(T,V,H){let F=T.getAttributeNS(V,H);return F===""?T.hasAttributeNS(V,H)?F:null:F}r.getAttributeNS=gt;function Pt(T){return!!(T.hasAttribute("tabIndex")||T.getAttribute("contentEditable")==="true"||Xu(T)&&T.hasAttribute("href")||(Qu(T)||Ju(T)||ka(T)||sp(T))&&!T.hasAttribute("disabled")||rp(T)||np(T))}r.isElementFocusable=Pt;function te(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=te;function fe(T){_d.readyState==="loading"?_d.addEventListener("DOMContentLoaded",()=>T(),{once:!0}):csSetTimeout(T)}r.onDocumentLoaded=fe}(i||(i={})),i})(),Gp=(()=>{class i{constructor(t){this.lS=t}run(t){let e=[...this.lS],s=de.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.uS(e,o,c,n),this.hS(e),e.length===0)break;s.length===0&&oi(o)&&(s=de.getAncestors(o.host,!1),n=s[s.length-1])}}uS(t,e,s,n){for(let o of t)o.serializeElement(e,s,n)}hS(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 Pp(u),y=new Np(l);return new Gp([p,y]).run(h),{path:p.getPath(),hierarchy:y.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}=th(u);return fn(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:y}=hp(u);return{path:fn(p,y,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 zp=/[a-zA-Z0-9._%+-]+(?:@|%40|%2540)[a-zA-Z0-9.%-_]+((?:\.|%2[eE])[a-zA-Z0-9-]+)+/g,qp=/[a-zA-Z0-9+_-](?:@|%40|%2540)/,Fp="CS_ANONYMIZED_EMAIL",vo="([-A-Za-z0-9+/=_]|=[^=]|={3,})+",Wp=new csRegExp(`(ey${vo}\\.ey${vo}\\.${vo})`,"g"),Yp="CS_ANONYMIZED_JWT",Xp=/[0-9]{4}/,Kp=/(^|[^a-zA-Z0-9*.,-])([45*][0-9*]{3}([ -]?)[0-9*]{4}\3[0-9*]{4}\3[0-9*]{4})($|[^a-zA-Z0-9*.,-])/g,Jp="CS_ANONYMIZED_PII",Qp="\u2022",Zp=/\d/g,tg=/([+(]{0,2}\d[-_ ()/]{0,4}){9,}/,eg=/(?:\d{1,3}\.){3}\d{1,3}/,ig=/(?:[A-F0-9]{1,4}:){7}[A-F0-9]{1,4}/,sg=new csRegExp("(?:^|[?&#]|%3[fF]|%2[36])(?:id_token|access_token|refresh_token|auth_token)(=|%3[dD]).*?(?=%2[36]|&|$)","gi"),rg=/_token/i,ng="CS_ANONYMIZED_TOKEN",Ge=(()=>{let i;return function(r){function t(y){return csString.prototype.replace.call(y,zp,Fp)}r.replaceEmail=t;function e(y){return csString.prototype.replace.call(y,Wp,Yp)}r.replaceJWT=e;function s(y,m){return csString.prototype.replace.call(y,Kp,m)}r.replaceCreditCardNumber=s;function n(y){return csString.prototype.replace.call(y,Zp,Qp)}r.replaceDigits=n;function o(y){return csString.prototype.replace.call(y,sg,function(m){let _=csString.prototype.match.call(m,/%3d/i),A=_?_[0]:"=";return csString.prototype.split.call(m,A)[0]+A+ng})}r.replaceTokens=o;function c(y){return eg.test(y)||ig.test(y)}r.mayHaveIPAddress=c;function l(y){return tg.test(y)}r.mayHaveNumberSequence=l;function u(y){return Xp.test(y)}r.mayHaveCreditCardNumber=u;function h(y){return qp.test(y)}r.mayHaveEmail=h;function p(y){return rg.test(y)}r.mayHaveToken=p}(i||(i={})),i})(),Ke=(()=>{class i{hasPII(t,e){let s=this.checkAndAnonymizePII(t,e);return t!==s}checkAndAnonymizePII(t,e=null){let s=this.dS(this.rl(t));return e===!0?s=this.fS(s):e===!1&&(s=this.pS(s)),s}anonymizePII(t){return this.rl(t)}anonymizeJwt(t){return Ge.replaceJWT(t)}anonymizeTokens(t){return Ge.mayHaveToken(t)?Ge.replaceTokens(t):t}anonymizeFields(t,e){return csArray.prototype.forEach.call(e,s=>{t[s]=this.rl(t[s])}),t}rl(t){if(Ge.mayHaveEmail(t)){let e=Ge.replaceEmail(t);return e!==t&&$.counters.redactedPII.count("email"),e}return t}fS(t){return Ge.replaceDigits(t)}pS(t){return Ge.mayHaveNumberSequence(t)?Ge.replaceDigits(t):t}dS(t){return Ge.mayHaveCreditCardNumber(t)?Ge.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.gS(u))return e;$.counters.redactedPII.count("cc")}else $.counters.redactedPII.count("cc-partial");return`${s}${Jp}${c}`}):t}gS(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})(),hh="15.225.5";function $a(){return{v:hh}}var dh=(()=>{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(),...$a()}}}return i})(),og="No stacktrace",ag="No context";function fh(i,r){return Xe(i)?`${i.stack||og} ${r}`:r||ag}function Ga(i,r,t){let e=Xe(r)?i.anonymizePII(r.message||r.toString()):r;return t&&(e+=` ErrorCode: ${t}`),e}function Xc(){}function aa(i,r){return csString.prototype.lastIndexOf.call(i,r,0)===0}function cg(i,r){return csString.prototype.indexOf.call(i,r,i.length-r.length)!==-1}var wo=csSymbol("cachedJson");function lg(i){if(i[wo])return i[wo];if(csArray.isArray(i)){if(i.length===0)return"[]";let r="["+De(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})(),cr=(()=>{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})(),lr=(()=>{class i extends ph{constructor(t,e){super(t,e)}send(){csArray.prototype.forEach.call(this.beforeRequestCallbacks,s=>s());let t=this.retrieveParameters();this.nl(t);let e=cr.toQuery(t);this.mS(e),csArray.prototype.forEach.call(this.afterRequestCallbacks,s=>s())}mS(t){let e=new _w.Image(1,1);e.onload=Xc,e.onerror=Xc,csHTMLImageElementsrc.call(e,`${this.domainUri}${this.path?`/${this.path}`:""}?${t}`)}nl(t){t.r=csString.prototype.slice.call(`${Math.random()}`,2,8)}}return i})(),gh=(()=>{class i{constructor(t,e){this.Je=t,this.ES=e}init(){this.Gt=new lr(this.Je.getLoggerUri()),this.Gt.setRequestParametersProviders(this,this.ES)}send(t){this.pa=t,this.Gt.send()}getRequestParameters(){return{a:this.pa.app,l:this.pa.level,m:this.pa.message,s:this.pa.stacktrace}}}return i})(),ug="uxa",mh=(()=>{class i{constructor(t){if(this.Gt=null,this.O=new Ke,!!t)try{let e=new dh(t,this.O);this.Gt=new gh(t,e),this.Gt.init()}catch{this.Gt=null}}send(t,e,s){if(this.Gt)try{let n={message:Ga(this.O,t,e),stacktrace:fh(t),app:ug,level:s};this.Gt.send(n);return}catch{}}}return i})(),Eh=["t.contentsquare.net","clicktale"],hg=i=>{var r;if(typeof i.filename=="string"&&csArray.prototype.some.call(Eh,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,z.critical(t)}};_w.addEventListener("error",hg);var z=(()=>{class i{constructor(){}static whiteListFilename(t){csArray.prototype.push.call(Eh,t)}static setStrategy(t){i.Ns=t}static computeIsActive(t){i.Os=Xi.boolean(t),i.Os?i.ol=Xi.boolean(10):i.ol=!1}static isLoggingActive(){return i.Os}static getStrategy(){return i.Ns}static debug(t,e=""){i.Os&&this.Ns.send(t,e,mt.debug)}static warn(t,e=!0,s=""){var n,o;$.counters.errors.count("warning"),i.Os&&e&&this.Ns.send(t,s,mt.warn),(o=(n=_w.UXAnalytics)===null||n===void 0?void 0:n.Console)===null||o===void 0||o.warn(t)}static implementation(t,e=""){$.counters.errors.count("implementation"),i.Os&&this.Ns.send(t,e,mt.implementation)}static error(t,e=""){var s,n;$.counters.errors.count("error"),i.Os&&this.Ns.send(t,e,mt.error),(n=(s=_w.UXAnalytics)===null||s===void 0?void 0:s.Console)===null||n===void 0||n.error(t)}static critical(t,e=""){$.counters.errors.count("critical"),this.Ns.send(t,e,mt.critical)}static tryToExecute(t,e){return function(...s){try{let n=e.apply(this,s);return ht(pt.Promise)&&n instanceof pt.Promise?n.then(o=>o,o=>i.error(Xe(o)?o:new Error(o),t)):n}catch(n){try{i.error(Xe(n)?n:new Error(n),t)}catch{}}}}static isPerfLoggingActive(){return i.ol}}return i.Ns=new mh,i.Os=!1,i.ol=!1,i})();var qs=void 0,Ao=()=>{if(!qs){try{let i=_w.performance;if(i!=null&&typeof i.now=="function")return qs=i.now.bind(i),qs()}catch{}qs=()=>csDate.now()}return qs()};function yh(i){return csSymbol(i)}var dg=20,fi=i=>{var r;return Sh(i)?(r=i.name)!==null&&r!==void 0?r:"anonymous":csString(i)},Sh=i=>typeof i=="function"&&i.prototype&&i.prototype.constructor===i,fg=i=>typeof i=="object"&&i!==null&&"__optional"in i,pg=i=>{let r=i.prototype;return r!=null&&r.__module===!0},gg=i=>{var r,t;let e=i.prototype;return{providers:(r=e.providers)!==null&&r!==void 0?r:[],imports:(t=e.imports)!==null&&t!==void 0?t:[],exports:e.exports}},mg=i=>{var r;return(r=i.prototype.imports)!==null&&r!==void 0?r:[]},Eg=i=>{let r=i;return r===csString||r===Number||r===Boolean||r===Object||r===csArray||r===csSymbol||r===BigInt},yg=typeof scheduler!="undefined"&&(scheduler!=null&&scheduler.yield)?scheduler.yield.bind(scheduler):()=>new Promise(i=>csSetTimeout(i,0)),Sg=(()=>{class i{constructor(){this.Be=new Map,this.Jd=new Set,this.fi=new Map,this.al=new Map,this.Sr=new Map,this.cl=new Map,this.ll=0}register(t,e,s){if(Sh(t)){let n=e!=null?e:t,o={type:"class",provider:t,token:n};if(this.Be.has(n))throw new Error(`Token "${fi(n)}" is already registered`);this.Be.set(n,o),n!==t&&this.Be.set(t,o)}else{if(e===void 0)throw new Error("A token is required when registering a factory function");this.Be.set(e,{type:"factory",provider:t,token:e,deps:s})}}override(t,e){this.Be.set(t,{type:"factory",provider:()=>e,token:t,instance:e})}registerModule(t){if(this.Jd.has(t))return;this.Jd.add(t);let{providers:e,imports:s,exports:n}=gg(t);for(let c of s)this.registerModule(c);this.cl.set(t,s),n!==void 0&&this.al.set(t,new Set(n));let o=new Map;this.Sr.set(t,o),o.set(t,{type:"class",provider:t,token:t}),this.fi.set(t,t);for(let c of e)this.yS(t,o,c);this.SS(t,o,s)}SS(t,e,s){for(let n of s){let o=this.Sr.get(n);if(o){for(let c of o.keys())if(c!==n&&this.Qd(n,c)&&!this.Be.has(c)&&e.has(c))throw new Error(`Duplicate provider: "${fi(c)}" is provided by "${t.name}" and also exported by imported module "${n.name}". Remove it from one of them.`)}}}yS(t,e,s){if(typeof s=="function")e.set(s,{type:"class",provider:s,token:s}),this.fi.set(s,t);else 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.fi.set(s.useClass,t)),this.fi.set(n,t)}else if("useValue"in s){let n=s.provide;e.set(n,{type:"factory",provider:()=>s.useValue,token:n}),this.fi.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.fi.set(n,t)}}ul(t,e){var s;let n=this.Be.get(t);if(n)return{registration:n,owningModule:e};let o=this.Sr.get(e);if(o!=null&&o.has(t))return{registration:o.get(t),owningModule:e};let c=(s=this.cl.get(e))!==null&&s!==void 0?s:[];for(let l of c)if(this.Qd(l,t)){let u=this.Sr.get(l);if(u!=null&&u.has(t))return{registration:u.get(t),owningModule:l};let h=this.ul(t,l);if(h)return h}}Qd(t,e){return this.al.has(t)?this.al.get(t).has(e):!0}async resolve(t){this.ll=Ao();let e=this.Be.has(t)?void 0:this.fi.get(t);return this.dl(t,new Set,e)}async dl(t,e,s){if(t==null)return;if(e.has(t))throw new Error(`Circular dependency detected for token: ${fi(t)}`);let n=this.pl();n&&await n;let o,c=s;if(s){let h=this.ul(t,s);h&&(o=h.registration,c=h.owningModule)}else o=this.Be.get(t);if(o||this._S(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 y;if(o.type==="factory"){let m=o.provider,_=(h=o.deps)!==null&&h!==void 0?h:[],A=await this.Zd(_,e,c);y=await m(...A)}else{let m=o.provider,_=(p=m.$deps)!==null&&p!==void 0?p:[],A=await this.Zd(_,e,c);y=new m(...A),await this.vS(m,e),await this.wS(y)}return o.instance=y,y}finally{o.resolving=void 0,e.delete(t)}})();return o.resolving=u,u}async Zd(t,e,s){let n=[];for(let o of t){let c=this.pl();c&&await c;let l,u;if(fg(o)?(l=o.__optional,u=!0):(l=o,u=!1),Eg(l)){let p=csArray.prototype.join.call(csArray.prototype.map.call(csArray.from(e),fi)," -> "),y=p?` Resolution path: ${p} -> ${fi(l)}`:"";throw new Error(`Cannot resolve primitive type: ${fi(l)}. Use @Inject with a token instead.${y}`)}if(u&&!(s?this.ul(l,s)!==void 0:this.Be.has(l))){csArray.prototype.push.call(n,void 0);continue}let h=await this.dl(l,e,s);csArray.prototype.push.call(n,h)}return n}async vS(t,e){if(!pg(t))return;let s=mg(t);for(let n of s){let o=this.pl();o&&await o,await this.dl(n,e,n)}}async wS(t){t!==null&&typeof t=="object"&&"setup"in t&&typeof t.setup=="function"&&await t.setup()}_S(t,e,s){var n;let o=fi(t),c=csArray.prototype.join.call(csArray.prototype.map.call(csArray.from(e),fi)," -> "),l=c?` Resolution path: ${c} -> ${o}`:"";if(s){let u=(n=this.cl.get(s))!==null&&n!==void 0?n:[];for(let p of u){let y=this.Sr.get(p);if(y!=null&&y.has(t))throw new Error(`Module boundary violation: "${o}" is not exported from module "${p.name}". Add it to ${p.name}'s exports array to make it accessible.${l}`)}let h=this.fi.get(t);if(h)throw new Error(`Module boundary violation: "${o}" is provided by "${h.name}" but "${s.name}" does not import "${h.name}".${l}`)}throw new Error(`No registration found for token: ${o}${l}`)}pl(){if(Ao()-this.ll>=dg)return this.ll=Ao(),yg()}AS(t){var e;let s=this.Be.get(t);if(s)return s;let n=this.fi.get(t);if(n)return(e=this.Sr.get(n))===null||e===void 0?void 0:e.get(t)}getDeps(t){var e,s;let n=this.AS(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.Be.has(t)?!0:this.fi.has(t)}}return i})();async function _g(i){let r=new Sg;return r.registerModule(i),r.resolve(i)}var za=(()=>{class i extends Error{constructor(t,e,s){super(e),this.level=t,this.code=s}}return i})(),Kc=(()=>{class i extends za{constructor(t){super(mt.warn,`Tracking not allowed: ${t||"Unknown reason"}`,"NOT_ALLOWED_TO_TRACK")}}return i})(),vg=(()=>{class i extends za{constructor(t){super(mt.error,`protectNativeFunctions failed: ${t}`,"NATIVE_PROTECTION_FAILED")}}return i})();function wg(i){if(i instanceof za)switch(i.level){case mt.debug:at.debug(i.message,i.code);return;case mt.warn:at.warn(i.message,!0,i.code);return;case mt.error:at.error(i,i.code);return;case mt.critical:at.critical(i,i.code);return}at.critical(i,"UNEXPECTED_ERROR")}function B(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 mn;(function(i){i.replayRecordingUnmaskedUrlRegex="replayRecordingUnmaskedUrlRegex",i.replayRecordingMaskedUrlRegex="replayRecordingMaskedUrlRegex",i.replayRecordingUnmaskedUrlRegexRules="replayRecordingUnmaskedUrlRegexRules",i.replayRecordingMaskedUrlRegexRules="replayRecordingMaskedUrlRegexRules"})(mn||(mn={}));var Jc;(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"})(Jc||(Jc={}));function be(i){return Wt(i,"data:")}function Ag(i){return Wt(i,"#")}function Tg(i){return!!i&&(Is(i,".css")||Wt(i,"https://fonts.googleapis.com/css"))}function bg(i=location.href){let r={};return new csURL(i).searchParams.forEach((t,e)=>r[e]=t),r}var Rg=["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"],qa=i=>{let r=new Set(Rg);return csArray.prototype.forEach.call(i,t=>{r.add(t)}),r},Cg=["svg","slot"],Ig=(i,r,t)=>t==="radio"&&i==="input"&&r==="name"||csArray.prototype.indexOf.call(Cg,i)>-1,_h={href:new Set(["a"]),src:new Set(["iframe"])},Pg=i=>_h.hasOwnProperty(i),Ng=(i,r,t)=>{var e;return((e=_h[r])===null||e===void 0?void 0:e.has(i))&&!be(t)},Og=(i,r,t)=>(t==="submit"||t==="button")&&i==="input"&&r==="value";function To(i){return i?Mg(i):null}function Mg(i){try{let r=/^\/(.*)\/([gim]*)$/.exec(i);if(r){let[,t,e]=r;return new csRegExp(`^${t}$`,e)}return new csRegExp(`^${i}$`)}catch{return null}}var vh=yh("CS_CONF");var Dg=/^\d+\.\d+(?:\.\d+)?$/,kg=i=>{if(!Dg.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}},Lg=(i,r)=>i.major!==r.major?i.major-r.major:i.minor!==r.minor?i.minor-r.minor:i.patch-r.patch,xg=(i,r)=>Lg(i,r)>=0,Vg=1,ca=(()=>{let i;return function(r){r[r.Disabled=0]="Disabled",r[r.ButtonAndLinkOnly=1]="ButtonAndLinkOnly",r[r.Enabled=2]="Enabled"}(i||(i={})),i})(),En=(()=>{let i;return function(r){r[r.Automatic=1]="Automatic",r[r.Manual=2]="Manual"}(i||(i={})),i})(),Dt=(()=>{class i{constructor(t){var e,s,n,o,c,l,u,h,p,y;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===mn.replayRecordingUnmaskedUrlRegexRules||t.anonymisationMethod===mn.replayRecordingUnmaskedUrlRegex||t.anonymisationMethod===null&&!!t.consentRequired,this.allowSubdomains=!!t.allowSubdomains,this.visitorCookieTimeout=t.visitorCookieTimeout||Ba,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=To(t.triggerSessionReplayRegex),this.dynamicIdRegex=t.dynamicIdRegex?new RegExp(t.dynamicIdRegex):null,this.whitelistedAttributes=t.whitelistedAttributes||[],this.replayRecordingUnmaskedUrlRegex=To(t.replayRecordingUnmaskedUrlRegex),this.replayRecordingMaskedUrlRegex=To(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 RegExp(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:ca.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=(y=t.startMode)!==null&&y!==void 0?y:En.Automatic,this.eventEnricher=t.eventEnricher||null,this.experiments=t.experiments||null}getTrackerUri(){return`${this.ss()}://${this.trackerDomain}`}getRecordingUri(){return`${this.ss()}://${this.malkaRecordingDomain}`}getLoggerUri(){return`${this.ss()}://${this.loggerDomain}`}getMetricsUri(){return`${this.ss()}://${this.loggerDomain}/metrics`}getStaticResourceManagerUri(){return`${this.ss()}://${this.staticResourceManagerDomain}`}getVerificationEndpoint(){return`${this.ss()}://${this.tagVerificationDomain}`}getSettingsFileUri(){return this.settingsFileUri?this.settingsFileUri:`${this.ss()}://${this.dynamicConfDomain}/${this.projectId}.json`}isQuotaEnabled(){return this.isSMB||this.quotas!==null}getPaProxyDomainUri(){return`${this.ss()}://${this.paProxyDomainUri}`}ss(){return this.useHttps?"https":"http"}isProjectActive(){return this.status===Vg}setup(){var t;!((t=_w._uxa)===null||t===void 0)&&t.forEach&&_w._uxa.forEach(([e,...s])=>{if(e==="setOption"){let[n,o]=s;this.TS(n,o)}else e==="setIframeAutonomous"&&(this.allowSubdomains=!1,this.iframesTracking=!1)})}TS(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"&&Yi(e)&&Object.values(En).includes(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.bS())return!0;let t=kg(this.getHeapVersion()||"");if(t&&t.major===4&&xg(t,{major:4,minor:23,patch:5}))return!0}return!1}bS(){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!==ca.Disabled}isNetworkDetailsEnabled(){return this.performanceTimingOptions?this.performanceTimingOptions.withResource||this.performanceTimingOptions.withNavigation:!1}hasRecordingUrlRules(){var t;return!!(!((t=this.recordingUrlRules)===null||t===void 0)&&t.length)}hasTargetingRules(){var t;return!!(!((t=this.recordTargetingRules)===null||t===void 0)&&t.length)}getHeapEnvId(){return this.heapEnvironment?this.heapEnvironment.env_id:""}}return i.$deps=[vh],i})(),Ps=(()=>{class i{constructor(t,e){this._r=t,this.tf=e}setup(){this.ef=this._r!==this._r.top,this.sf=this.tf.isWebView&&this._r===this._r.top,this.tf.iframesTracking&&this.ef&&!this.RS()||this.sf?this.rf=!1:this.rf=!0}isInIframeContext(){return this.ef}isTopWindowTracker(){return this.rf}isInWebViewContext(){return this.sf}RS(){var t,e,s;let n=!1;try{n=xe((e=(t=this._r.top)===null||t===void 0?void 0:t.$A)===null||e===void 0?void 0:e.createComponent)||rt((s=this._r.top)===null||s===void 0?void 0:s.LWR)}catch{}return n}}return i.$deps=[Window,Dt],i})(),Fa=(()=>{class i{}return i})(),Er=(()=>{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})(),yr=(()=>{let i;return function(r){r.UNCOMPRESSED="0",r.GZIP="2"}(i||(i={})),i})(),wh=(()=>{class i{}return i})(),Ug=2e4,yn=(()=>{class i{constructor(t){var e,s;this.Qe={},this.gl={},this.nf=n=>{for(let o of n){let{metadata:c,events:l}=o;this.send(l,c)}},this.Ms=t.endpoint,this.An=t.compressionOpts,this.pe=t.recoveryStorage,this.mandatoryParameters=(e=t.mandatoryParameters)!==null&&e!==void 0?e:[],this.ml=t.contentType,this.worker=!!t.worker,this.El=(s=t.disableRequestCounting)!==null&&s!==void 0?s:!1,this.pe&&this.pe.recover(this.nf)}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.ml==="application/json"||typeof t!="string"&&!this.CS(t);"ct"in s||(!this.An||!n?s.ct=yr.UNCOMPRESSED:s.ct=this.An.compressionType);let c=o?csJSON.stringify(t):t,l=csArray.prototype.join.call(csArray.prototype.map.call(Object.keys(s),p=>`${encodeURIComponent(p)}=${encodeURIComponent(s[p])}`),"&"),u=`${this.Ms}?${l}`;if(oh(this.mandatoryParameters,p=>s[p]==null)){at.warn(`[${this.worker?"WORKER":"MAIN"}] All mandatory parameters are not present on ${u}`);return}let h=p=>typeof p=="string"?p.length:p.byteLength;$.counters.payloadSize.add(h(c),u,"raw"),this.An&&n&&typeof c=="string"?this.An.compressor(c,this.An.compressionOutputType,p=>{$.counters.payloadSize.add(h(p),u,"compressed"),this.of(u,s,p)}):this.of(u,s,c)}onLoad(t){this.vr=t}onError(t){this.Tn=t}onTimeout(t,e){this.Ds=t,this.ga=e}abort(){this.af&&this.af()}setRequestHeader(t,e){this.gl[t]=e}getQueryParams(){return this.Qe}CS(t){return t&&t.byteLength!==void 0}of(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.ml&&n.setRequestHeader("Content-Type",this.ml),n.onload=()=>{if(this.pe&&this.pe.recover(this.nf),this.vr){let c={params:e,responseText:n.responseText,status:n.status};this.vr(c)}this.El||$.counters.requestCounts.count(this.Ms)},n.onerror=()=>{this.pe&&this.pe.save({key:o,metadata:e,events:s}),this.El||$.counters.requestErrors.count(this.Ms),this.Tn&&this.Tn({params:e})},n.timeout=this.ga||Ug,n.ontimeout=()=>{this.El||$.counters.requestTimeouts.count(this.Ms),this.Ds&&this.Ds()},this.af=()=>n.abort(),csArray.prototype.forEach.call(Object.keys(this.gl),c=>{n.setRequestHeader(c,this.gl[c])}),n.send(s)}}return i})(),Qc="cs_verify_install_auto",Zc="cs_verify_install",Hg="csqVerifyInstall",jg="csqVerifyUUID",Bg="hjVerifyInstall",$g="hjVerifyUUID",Ah=(()=>{class i{constructor(t,e){this.E=t,this.mt=e}verifyInstallation(){var t;let e=bg(),s=e[Hg]||e[Bg]||"",n=e[jg]||e[$g]||"",o,c=0;try{o=this.mt.getItem(Zc)}catch{}if(s||o){if(c=Number(s||o)||0,s)try{this.mt.setItem(Zc,s)}catch{}if(((t=_w.CSQ_TAGS)===null||t===void 0?void 0:t.length)>1){this.IS(c,n);return}this.PS(c,n)}}verifyInstallationAuto(){if(this.E.trackingCodeVerified)return;let t=null;try{t=this.mt.getItem(Qc)}catch{}let e=`${this.E.projectId}`;if(!t||t!==e){let s=new yn({endpoint:this.NS(),contentType:"application/json"});s.send({}),s.onLoad(()=>{this.mt.setItem(Qc,e)}),s.onError(n=>{z.error(`Failed to report verification results: ${n}`,"verifyInstallationAuto")})}}NS(){return`${this.E.getVerificationEndpoint()}/v2/projects/${this.E.projectId}/verify-installation/auto`}OS(t){return`${this.E.getVerificationEndpoint()}/v1/verification/${t}/result`}cf(t,e){this.wr({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.Rn({verifyUUID:e,status:"wrong_code",detail:{expected:String(t),actual:String(this.E.projectId)}});let s=`Passed projectId: ${t} != Configured Site ${this.E.projectId}`;z.error(s,"verifyInstallation")}IS(t,e){let s=_w.CSQ_TAGS.filter(function(u,h){return _w.CSQ_TAGS.indexOf(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.wr({title:"Multiple different Contentsquare scripts detected",message:c,status:"bad"}),this.Rn({verifyUUID:e,status:"multiple_codes",detail:{expected:String(t),actual:s.map(String),gtm:!1}})):o?(c=n+"If you've installed Contentsquare through GTM - please remove the duplicate scripts to prevent data collection issues.",this.wr({title:"Multiple Contentsquare scripts detected",message:c,status:"bad"}),this.Rn({verifyUUID:e,status:"multiple_codes",detail:{expected:String(t),actual:s.map(String),gtm:!0}})):t===this.E.projectId?(c=n+"This will not affect data collection, but we do suggest removing redundant scripts.",this.wr({title:"Multiple Contentsquare scripts detected",message:c,status:"warning"}),this.Rn({verifyUUID:e,status:"warning",detail:{expected:String(t),reason:"multiple scripts"}})):this.cf(t,e);let l="Passed Site ID: "+t+" contains multiple scripts "+_w.CSQ_TAGS.join(", ");z.error(l,"verifyInstallation")}PS(t,e){if(t===this.E.projectId){let s=()=>this.wr({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.wr({title:"Error reporting verification results",message:"There was an error reporting the verification result. Please try again.",status:"bad"});this.Rn({verifyUUID:e,status:"ok",onSuccess:s,onError:n})}else this.cf(t,e)}MS(t){switch(t){case"good":return"\u2705";case"bad":return"\u274C";case"warning":return"\u26A0\uFE0F";default:return"\u2139\uFE0F"}}wr({title:t,message:e,status:s}){let o=`${this.MS(s)} ${t} ${e}`;_w.alert(o)}Rn({verifyUUID:t,detail:e,status:s,onSuccess:n,onError:o}){if(!t)return;let c=new yn({endpoint:this.OS(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=>{z.error(`Failed to report verification results: ${u}`,"verifyInstallation"),o&&o()})}}return i.$deps=[Dt,Er],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})(),bo;function Qt(i){if(bo||(bo=_d.createElement("div")),!(!!i&&M(i)))return at.warn(`isValidSelector: invalid selector provided '${i}'`),!1;try{return Se.call(bo,i),!0}catch{return at.warn(`isValidSelector: invalid selector provided '${i}'`),!1}}function ws(i,r){if(jc)return jc.call(i,r);let t=i;do{if(Se.call(t,r))return t;t=t==null?void 0:t.parentElement}while(t!==null&&csNodenodeType.apply(t)===1);return null}function Gg(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 Hi(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 Th(i){for(let r in i)if(i[r]!==void 0)return!0;return!1}function bh(i,r){if(csArray.isArray(i)&&csArray.isArray(r))return i.length!==r.length||csArray.prototype.some.call(i,(s,n)=>s!==r[n])?Hi(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=bh(n,o);u!==void 0&&(t[s]=u)}else t[s]=Hi(o)}return Th(t)?t:void 0}function Rh(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=Rh(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 Ch(i){let r=null;return t=>t?r=t:r||(r=i())}var zg=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function qg(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&&!zg.has(i)}var hs=Ch(()=>new WeakMap),Ro=Ch(()=>new Set),Fi=(()=>{let i;return function(r){function t(h){return hs().get(h)}r.getAll=t;function e(h,p){var y;return(y=hs().get(h))===null||y===void 0?void 0:y[p]}r.get=e;function s(h,p,y){let m=hs().get(h);m||hs().set(h,m={}),!Gg(m[p],y)&&(m[p]=y,c(h))}r.set=s;function n(h,p){let y=hs().get(h);y&&(delete y[p],c(h))}r.remove=n;function o(){hs(new WeakMap)}r.reset=o;function c(h){for(let p of Ro())p(h)}function l(h){Ro().add(h)}r.subscribe=l;function u(h){Ro().delete(h)}r.unsubscribe=u}(i||(i={})),i})(),Mt=(()=>{let i;return function(r){function t(l,u,h){var p;if(tn(l))Fi.set(l,u,h);else{let y=l;(p=y.props)!==null&&p!==void 0||(y.props={}),y.props[u]=h}}r.setProperty=t;function e(l,u){var h;return tn(l)?Fi.get(l,u):(h=l.props)===null||h===void 0?void 0:h[u]}r.getProperty=e;function s(l){return tn(l)?Fi.getAll(l):l.props}r.getProperties=s;function n(l,u){let h=null;return o(l,(p,y,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 _=l.children;if(_!=null&&_.length){for(let A of _)if(A&&(c(A,l,h),p))break}}}(i||(i={})),i})(),G=(()=>{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 vs(I)&&"Attributes"in I&&"PIISelectors"in I?I.Attributes instanceof Array&&I.PIISelectors instanceof Array:!1}r.isSelectorUserInput=e;function s(I){if(!vs(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,x,O;return"nodeType"in I?(C=Mt.getProperty(I,r.maskedProp))!==null&&C!==void 0?C:{state:t.NotMasked}:(O=(x=I.metadata)===null||x===void 0?void 0:x[r.maskedProp])!==null&&O!==void 0?O:{state:t.NotMasked}}r.getMaskedElementDetails=n;function o(I){var C,x,O;return"nodeType"in I?(C=Mt.getProperty(I,r.maskedAttributeProp))!==null&&C!==void 0?C:{attributes:[]}:(O=(x=I.metadata)===null||x===void 0?void 0:x[r.maskedAttributeProp])!==null&&O!==void 0?O:{attributes:[]}}r.getMaskedAttributeDetails=o;function c(I){let C=Mt.getProperty(I,r.maskedProp);return(C==null?void 0:C.state)===t.Parent}r.isMaskedElement=c;function l(I){let C=Mt.getProperty(I,r.maskedProp);return(C==null?void 0:C.state)===t.Child}r.isMaskedElementChild=l;function u(I,C){let x=Mt.getProperty(I,r.maskedAttributeProp);return((x==null?void 0:x.attributes)==null?void 0:csArray.prototype.indexOf.call(x==null?void 0:x.attributes,C))>-1}r.isMaskedAttribute=u;function h(I,C){Mt.setProperty(I,r.maskedProp,C)}r.setMaskedElementProperty=h;function p(I){Mt.setProperty(I,r.maskedProp,void 0)}r.unsetMaskedElementProperty=p;function y(I,C){Mt.setProperty(I,r.maskedAttributeProp,C)}r.setMaskedAttributeProperty=y;function m(I,C){let x=csArray.prototype.filter.call(I.PIISelectors,W=>Qt(W));C.elementSelector.length>0&&csArray.prototype.push.call(x,...csString.prototype.split.call(C.elementSelector,","));let O=D([...x]),N={elementSelector:csArray.prototype.join.call(O,","),attrSelector:C.attrSelector,attrSelectors:C.attrSelectors};return csArray.prototype.forEach.call(I.Attributes,W=>{W!=null&&W.attrName&&(W!=null&&W.selector)&&Qt(W.selector)&&!_(N.attrSelectors,W)&&csArray.prototype.push.call(N.attrSelectors,W)}),N.attrSelector=A(N.attrSelectors),N}r.getComputedSelectorSettings=m;function _(I,C){return csArray.prototype.some.call(I,x=>x.selector===C.selector&&x.attrName===C.attrName)}function A(I){let C="";return csArray.prototype.forEach.call(I,x=>{let O=csString.prototype.split.call(x.selector,",");csArray.prototype.forEach.call(O,N=>{Qt(N)&&(C&&(C+=","),C+=N)})}),C}function D(I){if(I.length<=1)return I;let C=[];for(let x of I){let O=csString.prototype.split.call(x,",");for(let N of O)csArray.prototype.indexOf.call(C,N)===-1&&csArray.prototype.push.call(C,N)}return C}}(i||(i={})),i})(),ji=(()=>{let i;return function(r){let t="{domain}/tag/tag.bundle.js?v={version}",e,s={loadBundle(C){let x=C.source,O=C.data;if(c(O)){let N=()=>{let W=n(t,O);y(W,()=>x.postMessage("csBundleLoaded",C.origin))};e=O.token,I(s.loadBundle),l(C.origin)&&N()}}};function n(C,x){return csString.prototype.replace.call(csString.prototype.replace.call(csString.prototype.replace.call(C,"{version}",x.version),"{token}",x.token),"{domain}",x.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 y(C,x){let O=_d.createElement("script");O.type="text/javascript",O.async=!0,O.src=C,O.onload=x,O.charset="utf-8",_d.head.appendChild(O)}r.addScript=y;function m(C){let x=_d.createElement("link");x.rel="stylesheet",x.href=C,_d.head.appendChild(x)}r.addStyle=m;function _(C){return`${C}?cb=${new csDate().getTime()}`}r.addCacheBusting=_;function A(){D(s.loadBundle)}r.waitForBundleInjection=A;function D(C){_w.addEventListener("message",C,!1)}r.listen=D;function I(C){_w.removeEventListener("message",C,!1)}r.removeListener=I}(i||(i={})),i})(),tl="_hp_ved",Fg=18e5,Wg="/js/ved.js",Yg="/css/ved.css",Xg="/js/ved.css",Kg=(()=>{let i;return function(r){r.StatusUpdate="status"}(i||(i={})),i})(),Jg=(()=>{let i;return function(r){r.ReceivedInitMessage="received_init_message"}(i||(i={})),i})();var Co=(()=>{let i;return function(r){let t=!1,e;function s(y){return e+y}function n(){let y=[s(Yg),s(Xg)];csArray.prototype.forEach.call(y,m=>{ji.addStyle(m)})}function o(y){let m=new csRegExp("(^|;)[ ]*"+y+"=([^;]*)"),_=m.exec(_d.cookie);return _?decodeURIComponent(_[2]):null}function c(y,m,_){let A=encodeURIComponent(y)+"="+encodeURIComponent(m),D=new csDate;D.setTime(D.getTime()+_);let I=A+"; expires="+D.toUTCString()+"; path=/";_d.cookie=I}function l(){c(tl,"on",Fg)}function u(){return o(tl)==="on"}r.isVLCookieEnabled=u;function h(y){_w.heapV=Object.assign({},_w.heap,{source:y==null?void 0:y.source,uri:e,loadArgs:y==null?void 0:y.data.args,identify:()=>{},track:()=>{}})}r.initializeHeapV=h;function p(y,m){var _;if(e=y,m){let A={type:Kg.StatusUpdate,value:Jg.ReceivedInitMessage},D={targetOrigin:m==null?void 0:m.origin};(_=m==null?void 0:m.source)===null||_===void 0||_.postMessage(A,D)}t||(t=!0,l(),h(m),_w.heapV&&(ji.addScript(s(Wg)),n()))}r.init=p}(i||(i={})),i})(),Qg=(()=>{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$/,ji.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&&(Co.init(l,N),C(u.initHeapVisualLabeler))},ping(N){typeof N.data=="string"&&N.data==="ping"&&y(N.origin)&&(c=N.origin,o=ji.hjDomainRegex.test(N.origin)?s:N.origin,C(u.ping),I(u.insertMessageScript),m(ji.addCacheBusting("utils.js")))},insertMessageScript:x(N=>{typeof N.data=="string"&&N.data!=="ping"&&(C(u.insertMessageScript),m(N.data))})};function h(){return ji.getToken()}r.getToken=h;function p(){return _w!==t&&_w.addEventListener}r.isActivable=p;function y(N){return csArray.prototype.some.call(n,W=>W.test(N))}r.isAuthorizedDomain=y;function m(N,W){let q=_d.createElement("script");q.type="text/javascript",q.async=!0;let gt=o==null?void 0:csString.prototype.replace.call(o,/^https?:/,"");q.src=`${gt}/${e}/${N}`,q.onload=W,q.charset="utf-8",_d.getElementsByTagName("head")[0].appendChild(q),_(N)}function _(N){csString.prototype.includes.call(N,"&mode=")&&sessionStorage.setItem("_hjRetakerMode",csString.prototype.split.call(N,"&mode=")[1])}function A(){I(u.ping),ji.waitForBundleInjection()}r.waitForConnection=A;function D(N){l=N,I(u.initHeapVisualLabeler),Co.isVLCookieEnabled()&&Co.init(l)}r.waitForHeapVisualLabeler=D;function I(N){_w.addEventListener("message",N,!1)}r.listen=I;function C(N){_w.removeEventListener("message",N,!1)}r.removeListener=C;function x(N){return function(W){W.origin===c&&N(W)}}r.secureListener=x;function O(N){c&&t.postMessage(N,c)}r.post=O}(i||(i={})),i})();var $r=_w.CSFrameCommunication||Qg,el=(()=>{class i{constructor(t,e,s,n){this.E=t,this.Et=e,this.DS=s,this.lf=n}start(){var t,e,s;if(_w.CSQ_TAGS=(_w.CSQ_TAGS||[]).concat(this.E.projectId),_w.UXAnalytics)return;_w.UXAnalytics={},!((t=_w.CSProtectnativeFunctionsLogs)===null||t===void 0)&&t.Warning&&z.warn(`protectNativeFunctions failed: ${_w.CSProtectnativeFunctionsLogs.Warning}`),this.Et.isInWebViewContext()||((e=this.lf)===null||e===void 0||e.verifyInstallationAuto(),(s=this.lf)===null||s===void 0||s.verifyInstallation()),this.DS.init();let n=_w.location.href.indexOf("csDebug=1")>-1;_w.UXAnalytics={Sensitive:{isNodeSensitive(o){return G.isMaskedElement(o)||G.isMaskedElementChild(o)},isAttributeSensitive(o,c){return G.isMaskedAttribute(o,c)},getSensitiveAttributes(o){return ra(o.attributes,c=>G.isMaskedAttribute(o,c.name))}},Console:{warn(o){n&&console.warn("cs.tracking.warning",o)},error(o){n&&console.error("cs.tracking.error",o)}},Version:hh},_w.CSFrameCommunication||(_w.CSFrameCommunication=$r,$r.isActivable()&&$r.waitForConnection(),this.E.isCsCrosswritingHeap()&&$r.waitForHeapVisualLabeler(this.E.getHeapWebAppUri()))}}return i.$deps=[Dt,Ps,Fa,{__optional:Ah}],B([Zt("main.start"),L("main.start")],i.prototype,"start",null),i})();function Sr(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:Js,setLogger:bT}=dr("domListeners"),Zs;function Zg(i){return Zs=i,()=>{Zs===i&&(Zs=void 0)}}function Ih(i,r){try{Zs?Zs(r,i):i()}catch(t){Js.error(`Error in ${r.type}/${r.type==="intercept"?r.method:r.name}`,t)}}function tm(i){if(_d!=null&&_d.prerendering){_d.addEventListener("prerenderingchange",i,{once:!0});return}i()}var la=!1;function em(){la=!0}function wt(){return(i,r,t)=>{if(t){let e=t.value;t.value=function(s,n){(s==null?void 0:s.isTrusted)===!1&&la||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&&la||e.call(this,s,n)}}}}var{logger:Io,setLogger:RT}=dr("scheduler"),Sn=(()=>{class i{constructor(t){if(this.Ne=0,t)for(let e of t)this.push(e)}get length(){return this.Ne}push(t){this.Ne++,this.Zt?this.Zt=this.Zt[1]=[t,void 0]:this.Zt=this.pt=[t,void 0]}shift(){if(!this.pt)return;this.Ne--;let t=this.pt[0];return this.pt=this.pt[1],this.pt||(this.Zt=void 0),t}isEmpty(){return!this.pt}}return i})(),As=(()=>{let i;return function(r){r[r.High=0]="High",r[r.Low=1]="Low"}(i||(i={})),i})(),en=(()=>{class i{constructor(){this.yl=new Sn,this.Sl=new Sn}get length(){return this.yl.length+this.Sl.length}push(t,e=As.Low){return e===As.High?this.yl.push(t):this.Sl.push(t),this.length}shift(){var t;return(t=this.yl.shift())!==null&&t!==void 0?t:this.Sl.shift()}isEmpty(){return this.length===0}}return i})();function im(){if(typeof performance!="undefined"&&typeof performance.now=="function")try{let i=performance.now();if(Number.isFinite(i))return()=>performance.now()}catch(i){}return()=>csDate.now()}var Fs=im(),xt=(()=>{let i;return function(r){r[r.Continue=1]="Continue",r[r.Stop=0]="Stop",r[r.Reschedule=2]="Reschedule"}(i||(i={})),i})(),il=40,sm=10,Ts=(()=>{class i{constructor(){this.Ar=new en,this.uf=()=>{csSetTimeout(()=>{let t=this.kS();if(this.hf(t),!t.hasTimeLeft){let e=t.elapsedTime;e>il*3&&Io.warn(`Task largely exceeded maximum duration: ${e.toFixed(2)}ms`)}(this.Nt||!this.Ar.isEmpty())&&this.uf()},0)}}kS(){let t=Fs(),e=0,s=!0;return{get hasTimeLeft(){return s&&e++%sm===0&&(s=Fs()-t{class i{constructor(){this.listeners=[]}addListener(t){csArray.prototype.push.call(this.listeners,t)}}return i})(),Ki=(()=>{class i extends Wa{constructor(t){super(),this.M=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()}emitStartTracking(t){for(let e of this.listeners)e.onStartTracking&&this.M.task(()=>e.onStartTracking(t))}emitStartNoTrackingMode(){for(let t of this.listeners)t.onStartNoTrackingMode&&this.M.task(()=>t.onStartNoTrackingMode())}emitArtificialPageViewEnd(t=!1){for(let e of this.listeners)if(e.onArtificialPageViewEnd)try{e.onArtificialPageViewEnd(t)}catch(s){z.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=[Ts],B([Zt("emitStartTracking")],i.prototype,"emitStartTracking",null),i})();function _t(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 rm(){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=om(r);return t===""||(r=am(r,t),r.length===0)?"":Ph(r[0])}catch{return""}}function nm(i){return csString.prototype.indexOf.call(i,"@")!==-1}function om(i){return i.length>0?Ph(i[0]):""}function am(i,r){return csArray.prototype.filter.call(i,t=>csString.prototype.indexOf.call(t,r)===-1)}function Ph(i){let r="",t;nm(i)?t=new csRegExp("@(.+):(\\d+):(\\d+)$"):t=new csRegExp("\\((.+):(\\d+):(\\d+)\\)");let e=t.exec(i);return e&&(r=e[1]),r}var $i=(()=>{let i;return function(r){r[r.Properties=1]="Properties",r[r.Methods=2]="Methods",r[r.All=3]="All"}(i||(i={})),i})(),sn=new WeakMap,Po=new WeakMap;function cm(i,r){if(!i||typeof i!="object"&&typeof i!="function")return i;if(sn.has(i))return sn.get(i);let t=r();return sn.set(i,t),t}function ua(i,r){return i.prototype=r.prototype,Object.defineProperty(i,"toString",{value:()=>r.toString()}),i}function lm(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 sn.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:cm(l,()=>{let u=new Map,h=new Proxy(l,{get(p,y){let m=Reflect.get(p,y);if(typeof m!="function")return m;let _=u.get(m);if(_)return _;let A;return s&$i.Methods?A=ua(function(...D){let I=Po.get(this)||this,C=Reflect.apply(m,I,D);return e(c,{name:n,property:y,args:D,result:C}),C},m):A=ua(function(...D){let I=Po.get(this)||this;return Reflect.apply(m,I,D)},m),u.set(m,A),A},set:s&$i.Properties?(p,y,m)=>{let _=Reflect.get(p,y),A=Reflect.set(p,y,m);return e(c,{name:n,property:y,args:[m],result:A,oldValue:_}),A}:Reflect.set});return Po.set(h,l),h})}})}function um(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=ua(function(...l){let u=s?s(l):l,h=Reflect.apply(t.value,this,l);if(n){let p=rm();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 et(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=csSymbol.for(`fd_intercept_${r}${l}`);if(c?Object.prototype.hasOwnProperty.call(o,u):u in o){let _=o[u];return _.add(t),()=>_.delete(t)}let p=new Set([t]);o[u]=p;let y=Object.getOwnPropertyDescriptor(o,r);if(!y)return Js.warn(`Could not find descriptor for ${r} on target ${o}`),()=>p.delete(t);if(!y.configurable)return Js.warn(`Cannot intercept non-configurable property '${r}' on target ${o}`),()=>p.delete(t);if(y.value&&typeof y.value=="function"&&!y.writable)return Js.warn(`Cannot intercept read-only function '${r}' on target ${o}`),()=>p.delete(t);let m=(_,A)=>{Ih(()=>{for(let D of p)try{D(_,A)}catch(I){Js.error(`Error in intercept hook for ${r} on target ${o}`,I)}},{type:"intercept",method:r,context:_,args:A.args})};return e.mode?lm(o,r,y,m,e.mode):um(o,r,y,m,e.prepareArgs,(n=e.withCallerName)!==null&&n!==void 0?n:!1),()=>p.delete(t)}var _r=(()=>{var i;class r{static jS(e){this.Ci.forEach(s=>{e(s,"initial")})}static Cn(e){if(this.j||(this.j=new csMutationObserver(s=>{for(let n of s)csNodeisConnected.apply(n.target)&&dt(n.addedNodes,this.BS),dt(n.removedNodes,this.$S)})),csArray.prototype.push.call(this.yt,e),!this.bt){this.bt=!0,this.j.observe(_d,this.In);for(let s of ri.getAllShadowHosts(_d)){let n=csElementshadowRoot.apply(s);this.Ci.add(n),this.j.observe(n,this.In)}this.Ze||(this.Ze=et(Element,"attachShadow",(s,{result:n})=>this.ks(n)&&this.df(n)))}this.jS(e)}static ks(e){return csNodeisConnected.apply(e)&&e.ownerDocument===_d}static Pn(e){var s,n;this.yt=csArray.prototype.filter.call(this.yt,o=>o!==e),this.yt.length===0&&(this.yt=[],this.bt=!1,(s=this.j)===null||s===void 0||s.disconnect(),(n=this.Ze)===null||n===void 0||n.call(this),this.Ze=null,this.Ci.clear())}constructor(e){this.C=e,this.C=_i("DocumentShadowRootObserver:callback",(s,n)=>e(s,n))}get shadowRoots(){return Ri(i.Ci)}static get shadowRootsCount(){if(i.bt)return Ri(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(){ri.isSupported()&&i.Cn(this.C)}disconnect(){ri.isSupported()&&i.Pn(this.C)}}return i=r,r.yt=[],r.Ci=new Set,r.bt=!1,r.Ze=null,r.In={childList:!0,subtree:!0},r.df=t=>{i.Ci.has(t)||(i.j.observe(t,i.In),i.Ci.add(t),dt(i.yt,e=>e(t,"added")))},r.BS=t=>{ye(t,NodeFilter.SHOW_DOCUMENT_FRAGMENT).visitAll(i.df)},r.$S=t=>{csNodeisConnected.apply(t)||ye(t,NodeFilter.SHOW_DOCUMENT_FRAGMENT).visitAll(e=>{i.Ci.has(e)&&(i.Ci.delete(e),dt(i.yt,s=>s(e,"removed")))})},_t([L()],r.prototype,"observe",null),_t([L()],r.prototype,"disconnect",null),r})(),Bi=(()=>{let i;return function(r){r.Artificial="a",r.Renewal="r",r.Natural="n"}(i||(i={})),i})(),hm=(()=>{class i{constructor(){this.je=null,this.GS=1}startInterval(){this.je=_w.csSetInterval(()=>{let t=this.GS++;if(this.flush(`interval.${t}`),t>=5){this.stopInterval();return}},5e3)}flush(t){$.counters.tasks.flush(t),$.counters.longTasks.flush(t)}clear(){$.counters.tasks.reset(),$.counters.longTasks.reset(),this.stopInterval()}stopInterval(){this.je&&(csClearInterval(this.je),this.je=null)}}return i})(),Nh=-1,Ns=i=>{addEventListener("pageshow",r=>{r.persisted&&(Nh=r.timeStamp,i(r))},!0)},Je=(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)))}},Ya=i=>{requestAnimationFrame(()=>requestAnimationFrame(()=>i()))},Xa=()=>{let i=performance.getEntriesByType("navigation")[0];if(i&&i.responseStart>0&&i.responseStart{var r;let i=Xa();return(r=i==null?void 0:i.activationStart)!=null?r:0},Qe=(i,r=-1)=>{let t=Xa(),e="navigate";return Nh>=0?e="back-forward-cache":t&&(_d.prerendering||vr()>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}},No=new WeakMap;function Ka(i,r){return No.get(i)||No.set(i,new r),No.get(i)}var ha=class{constructor(){ti(this,"t");ti(this,"i",0);ti(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)}},wr=(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{}},Ja=i=>{let r=!1;return()=>{r||(i(),r=!0)}},ms=-1,sl=()=>_d.visibilityState!=="hidden"||_d.prerendering?1/0:0,_n=i=>{_d.visibilityState==="hidden"&&ms>-1&&(ms=i.type==="visibilitychange"?i.timeStamp:0,dm())},rl=()=>{addEventListener("visibilitychange",_n,!0),addEventListener("prerenderingchange",_n,!0)},dm=()=>{removeEventListener("visibilitychange",_n,!0),removeEventListener("prerenderingchange",_n,!0)},Oh=()=>{var i;if(ms<0){let r=vr(),t=_d.prerendering||(i=_w.performance.getEntriesByType("visibility-state").filter(e=>e.name==="hidden"&&e.startTime>r)[0])==null?void 0:i.startTime;ms=t!=null?t:sl(),rl(),Ns(()=>{setTimeout(()=>{ms=sl(),rl()})})}return{get firstHiddenTime(){return ms}}},kn=i=>{_d.prerendering?addEventListener("prerenderingchange",()=>i(),!0):i()},nl=[1800,3e3],Mh=(i,r={})=>{kn(()=>{let t=Oh(),e,s=Qe("FCP"),n=wr("paint",o=>{for(let c of o)c.name==="first-contentful-paint"&&(n.disconnect(),c.startTime{s=Qe("FCP"),e=Je(i,s,nl,r.reportAllChanges),Ya(()=>{s.value=performance.now()-o.timeStamp,e(!0)})}))})},ol=[.1,.25],fm=(i,r={})=>{Mh(Ja(()=>{let t,e=Qe("CLS",0),s=Ka(r,ha),n=c=>{for(let l of c)s.h(l);s.i>e.value&&(e.value=s.i,e.entries=s.o,t())},o=wr("layout-shift",n);o&&(t=Je(i,e,ol,r.reportAllChanges),_d.addEventListener("visibilitychange",()=>{_d.visibilityState==="hidden"&&(n(o.takeRecords()),t(!0))}),Ns(()=>{s.i=0,e=Qe("CLS",0),t=Je(i,e,ol,r.reportAllChanges),Ya(()=>t())}),setTimeout(t))}))},Dh=0,Oo=1/0,Gr=0,pm=i=>{for(let r of i)r.interactionId&&(Oo=Math.min(Oo,r.interactionId),Gr=Math.max(Gr,r.interactionId),Dh=Gr?(Gr-Oo)/7+1:0)},da,al=()=>{var i;return da?Dh:(i=performance.interactionCount)!=null?i:0},gm=()=>{"interactionCount"in performance||da||(da=wr("event",pm,{type:"event",buffered:!0,durationThreshold:0}))},cl=0,fa=class{constructor(){ti(this,"u",[]);ti(this,"l",new Map);ti(this,"m");ti(this,"p")}v(){cl=al(),this.u.length=0,this.l.clear()}P(){let r=Math.min(this.u.length-1,Math.floor((al()-cl)/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)}}},kh=i=>{let r=_w.requestIdleCallback||setTimeout;_d.visibilityState==="hidden"?i():(r(i=Ja(i)),_d.addEventListener("visibilitychange",i,{once:!0}))},ll=[200,500],mm=(i,r={})=>{_w.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&kn(()=>{var c;gm();let t,e=Qe("INP"),s=Ka(r,fa),n=l=>{kh(()=>{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=wr("event",n,{durationThreshold:(c=r.durationThreshold)!=null?c:40});t=Je(i,e,ll,r.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),_d.addEventListener("visibilitychange",()=>{_d.visibilityState==="hidden"&&(n(o.takeRecords()),t(!0))}),Ns(()=>{s.v(),e=Qe("INP"),t=Je(i,e,ll,r.reportAllChanges)}))})},pa=class{constructor(){ti(this,"m")}h(r){var t;(t=this.m)==null||t.call(this,r)}},ul=[2500,4e3],Em=(i,r={})=>{kn(()=>{let t=Oh(),e,s=Qe("LCP"),n=Ka(r,pa),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,()=>kh(l),{capture:!0,once:!0});Ns(u=>{s=Qe("LCP"),e=Je(i,s,ul,r.reportAllChanges),Ya(()=>{s.value=performance.now()-u.timeStamp,e(!0)})})}})},hl=[800,1800],ga=i=>{_d.prerendering?kn(()=>ga(i)):_d.readyState!=="complete"?addEventListener("load",()=>ga(i),!0):setTimeout(i)},ym=(i,r={})=>{let t=Qe("TTFB"),e=Je(i,t,hl,r.reportAllChanges);ga(()=>{let s=Xa();s&&(t.value=Math.max(s.responseStart-vr(),0),t.entries=[s],e(!0),Ns(()=>{t=Qe("TTFB",0),e=Je(i,t,hl,r.reportAllChanges),e(!0)}))})},Lh=(()=>{class i{static observe(t,e){csArray.prototype.forEach.call(t,s=>{i.yt[s]&&i.yt[s].add(e),csArray.prototype.includes.call(i.ff,s)||i.zS(s)})}static zS(t){try{switch(t){case"FCP":Mh(e=>{i.yt.FCP.forEach(s=>s(e))},{reportAllChanges:!0});break;case"CLS":fm(e=>{i.yt.CLS.forEach(s=>s(e))},{reportAllChanges:!0});break;case"LCP":Em(e=>{i.yt.LCP.forEach(s=>s(e))},{reportAllChanges:!0});break;case"TTFB":ym(e=>{i.yt.TTFB.forEach(s=>s(e))},{reportAllChanges:!0});break;case"INP":mm(e=>{i.yt.INP.forEach(s=>s(e))},{reportAllChanges:!0});break}csArray.prototype.push.call(i.ff,t)}catch{$.counters.webVitalsErrors.count(t)}}static disconnect(t,e){csArray.prototype.forEach.call(t,s=>{i.yt[s]&&i.yt[s].delete(e)})}constructor(t,e){this.pf=t,this.C=e}observe(){i.observe(this.pf,this.C)}disconnect(){i.disconnect(this.pf,this.C)}}return i.ff=[],i.yt={FCP:new Set,CLS:new Set,LCP:new Set,TTFB:new Set,INP:new Set},i})(),Sm=(()=>{class i{get qS(){return typeof PerformanceObserver!="undefined"&&(PerformanceObserver.supportedEntryTypes==null?void 0:csArray.prototype.includes.call(PerformanceObserver.supportedEntryTypes,"long-animation-frame"))}get FS(){return typeof performance=="object"&&typeof performance.getEntriesByType=="function"}constructor(){var t;this.U=!1,this._l=null,this.WS=10,this.YS=5,this.rs=[],this.Ls=[],this.Nn=new Lh(["INP"],e=>this.onINP(e)),this.gf=(t=_w.CSCurrentScript)===null||t===void 0?void 0:t.src}start(){this.qS&&this.FS&&this.gf&&(this.Nn.observe(),this.initLoAFObserver(),this.U=!0)}stop(){var t;this.U&&(this.Nn.disconnect(),(t=this._l)===null||t===void 0||t.disconnect(),this.rs=[],this.Ls=[],this.U=!1)}initLoAFObserver(){var t;this._l=new PerformanceObserver(e=>{for(let s of e.getEntries())this.onLoAF(s)}),(t=this._l)===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.Ls,{metric:t,startTime:n,endTime:o}),this.Ls.length>this.YS&&csArray.prototype.shift.call(this.Ls)}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.rs,e),this.rs.length>this.WS&&csArray.prototype.shift.call(this.rs),this.XS()}XS(){for(;this.Ls.length>0;){let t=this.Ls[0],e=this.KS(t.startTime,t.endTime);if(e===null)break;csArray.prototype.shift.call(this.Ls),e.length>0&&this.reportINPWithLoAFs(t,e)}}KS(t,e){let s=this.rs[0],n=this.rs[this.rs.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),y=Math.max(0,p-h);if(l.duration>0){let m=l.csDuration/l.duration;c+=y*m}}),$.counters.inpLoaf.add("total",s),$.counters.inpLoaf.add("contribution",c)}}return B([L()],i.prototype,"initLoAFObserver",null),B([L()],i.prototype,"onINP",null),B([L()],i.prototype,"onLoAF",null),B([L()],i.prototype,"reportINPWithLoAFs",null),i})(),_m="t.contentsquare.net",vm="t-staging.contentsquare.net",wm="/experiment/",Am="experiment";function Tm(i){return i==="staging"?vm:_m}function dl(i){try{return new csURL(i)}catch{return null}}var fl=(()=>{class i{constructor(t){this.E=t,this.On=!1,this.vl=[],this.mf=new Sm,this.Ii=new hm,this.Ef=Tm(t.environment)}onStartTracking(){this.JS(),this.mf.start()}JS(){if(typeof performance!="object"||typeof performance.getEntriesByType!="function")return;let t=this.QS();this.yf(t.filter(e=>this.ZS(e))),this.t_()&&this.yf(t.filter(e=>this.Sf(e)),Am)}QS(){return performance.getEntriesByType("resource").filter(t=>t.initiatorType==="script")}yf(t,e){t.forEach(s=>{if(s.transferSize===0)return;let n=s.responseEnd-s.responseStart,o=s.transferSize;n>=0&&$.counters.downloadTime.push(n),o>=0&&$.counters.transferSize.push(o)}),$.counters.downloadTime.count>0&&$.counters.downloadTime.flush(e),$.counters.transferSize.count>0&&$.counters.transferSize.flush(e)}ZS(t){var e;if(this.Sf(t))return!1;let s=(e=_w.CSCurrentScript)===null||e===void 0?void 0:e.src;return s?s===t.name:this.e_(t.name)}Sf(t){let e=dl(t.name);return e?e.hostname===this.Ef&&e.pathname.startsWith(wm):!1}e_(t){var e;return((e=dl(t))===null||e===void 0?void 0:e.hostname)===this.Ef}t_(){var t,e;return!!(!((e=(t=this.E.experiments)===null||t===void 0?void 0:t.list)===null||e===void 0)&&e.length)}_f(){let t=_r.shadowRootsCount;t!==void 0&&$.counters.dom.add("shadow-dom",t),$.counters.mutations.flush(),$.counters.dom.flush(),$.counters.blockingTime.flush(),$.counters.inpContribution.flush(),$.counters.inpLoaf.flush()}onBeforeArtificialPageView(){this._f(),this.vf(),this.Ii.stopInterval(),this.On=!0}onBeforeNaturalPageView(){this._f()}onAfterNaturalPageView(t){t===Bi.Natural?(this.Ii.flush("boot"),this.Ii.startInterval()):(this.vf(),this.Ii.stopInterval(),this.On=!0)}onInitialDomStart(){this.On||this.Ii.stopInterval()}onInitialDomDone(){if(this.On)return;this.On=!0,this.Ii.flush("initial-dom"),this.wf(()=>{this.Ii.flush("post-initial-dom"),this.Ii.startInterval()},5e3);let t=0,e=this.wf(()=>{let s=t.toString();$.counters.payloadSize.flush(s),++t>6&&e()},1e3,5e3)}onOptout(){this.Ii.clear(),this.mf.stop()}vf(){this.vl.forEach(t=>t()),this.vl=[]}wf(t,e,s){let n,o,c=()=>{o=void 0,t(),s!==void 0&&(n=self.setInterval(t,s))};o=self.setTimeout(c,e);let l=()=>{o!==void 0&&(clearTimeout(o),o=void 0),n!==void 0&&(clearInterval(n),n=void 0)};return this.vl.push(l),l}}return i.$deps=[Dt],i})(),Qs=(()=>{class i{constructor(){this.Ea={elementSelector:"",attrSelector:"",attrSelectors:[]},this.wl={elementSelector:"",attrSelector:"",attrSelectors:[]},this.i_=_w.top===_w?"pii-migration":"pii-migration-iframe",this.Af=!1}onAfterNaturalPageView(){this.Tf()}onParentSensitiveStatusChange(t){t.started&&!this.Af&&(this.Af=!0,t.maskedElementSettings&&(this.Ea=t.maskedElementSettings),this.Tf())}Tf(){var t,e;let s=this.bf(this.Ea),n=this.bf(this.wl),o=n.elementSelectors.filter(l=>s.elementSelectors.indexOf(l)===-1&&l!=="[data-cs-mask]"),c={};for(let[l,u]of Object.entries(n.attrSelectors)){let h=s.attrSelectors[l]||[],p=u.filter(y=>h.indexOf(y)===-1);p.length>0&&(c[l]=p)}(o.length>0||Object.keys(c).length>0)&&(z.computeIsActive(100),z.warn(JSON.stringify({selectors:o,attrs:c}),!0,this.i_),z.computeIsActive((e=(t=_w.CS_CONF)===null||t===void 0?void 0:t.validationRate)!==null&&e!==void 0?e:10))}bf(t){let e=t.elementSelector.trim().length>0?t.elementSelector.split(",").map(n=>n.trim()).filter(n=>n.length>0):[],s={};for(let n of t.attrSelectors)s[n.attrName]=n.selector.split(",").map(o=>o.trim()).filter(o=>o.length>0);return{elementSelectors:e,attrSelectors:s}}markClicktalePIIInUse(t){this.wl=G.getComputedSelectorSettings(t,this.wl)}markPIIMaskingTemplateInUse(t){let e=G.sanitizeSelectorUserInput(t);this.Ea=G.getComputedSelectorSettings(e,this.Ea)}}return i.$deps=[],B([L()],i.prototype,"markPIIMaskingTemplateInUse",null),i})();function Ce(i,r,t){return t?{provide:i,useFactory:r,inject:t}:{provide:i,useFactory:r}}var xh=":";function pl(i){let r=[],t=bm(i),e=csString.prototype.split.call(t,"/");for(let s of e)Wt(s,xh)?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 bm(i){let r=i;return Wt(i,"/")&&(r=csString.prototype.substring.call(r,1)),Is(i,"/")&&(r=csString.prototype.slice.call(r,0,-1)),r}var Rm=/\b((?:profile|user|last|first|primary|primary(?:[/_+-]|%20)?last)(?:[/_+-]|%20)?(?:name)[/=])[^#;?&/]+/gi,Cm="$1CS_ANONYMIZED_NAME",vn=(()=>{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.Mn(o),o!==u&&($.counters.redactedPII.count("name"),$.counters.redactedPII.count("name-in-url"))}let c=this.s_(o,s);if(c!==o)return $.counters.redactedPII.count("url"),c;let l=this.r_(o,n);return l!==o&&$.counters.redactedPII.count("url"),l}removeQueryString(t){let{path:e,queryString:s}=this.Al(t);return s!==""?`${e}?`:e}Al(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}}s_(t,e){if(e.length===0)return t;let{path:s,queryString:n}=this.Al(t),o=csString.prototype.split.call(s,"/");for(let c of e){let l=this.n_(o,c);if(l!==null)return`${l}${n}`}return t}n_(t,e){if(t.length=e.length){csArray.prototype.push.call(s,o);continue}let c=e[n].key;if(this.Rf(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,"/")}r_(t,e){if(e.length===0)return t;let{path:s,queryString:n}=this.Al(t),o=csString.prototype.split.call(s,"/");for(let c of e)o=this.o_(o,c);return`${csArray.prototype.join.call(o,"/")}${n}`}o_(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=class{};return i.$deps=[],i=B([Sr({providers:[Ce(Window,()=>{try{return _w}catch{return _w}}),Ce(Location,r=>r.location,[Window]),Ce(Storage,r=>r.localStorage,[Window])]})],i),i})(),ne=(()=>{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})(),Pm=(()=>{let i;return function(r){r.UXA="_uxa",r.WVT="cs_wvt"}(i||(i={})),i})(),ma=(()=>{class i extends ne{constructor(t,e){super(),this.Tl=t,this.bl=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 $.counters.commandApplied.count(l),u}catch(u){u instanceof Rt?($.counters.commandMisuse.count(l),z.implementation(`Misused Command: ${n}; Args: ${csJSON.stringify(c)}; Error: ${Xe(u)?u.stack:u}`)):($.counters.commandError.count(l),z.error(`Command Error - ${n}: ${Xe(u)?u.stack:u}`))}};this.Pi[n]={callback:o,configuration:s}}}onStart(){this.a_(),this.c_()}onStop(){for(let t of this.Tl)_w[t]=[]}applyFromIntegration(t,e,s){this.Cf(t,e,`Commands.apply.from.integration: ${s}`),$.counters.commandsFromIntegrations.count(t)}applyFromImplementation(t,e,s){var n;this.Cf(t,e,`Commands.apply.from.implementation: ${s}`),$.counters.commandsFromCSTC.count(t),s==="PIIMaskingTemplate"&&((n=this.bl)===null||n===void 0||n.markPIIMaskingTemplateInUse(e[0]))}onIframeCommands(t){for(let e of t.commands)this.l_(e.name,e.params,t.iframePath),$.counters.commandsFromIframe.count(e.name)}Cf(t,e,s){if(!this.isStarted){_w._uxa.push([t,...e]);return}z.tryToExecute(s,()=>{if(this.Pi[t])return this.Pi[t].callback(...e)})()}l_(t,e,s){z.tryToExecute(`Commands.apply.from.iframe: ${s}`,()=>{if(this.Pi[t])return this.Pi[t].callback(...e)})()}a_(){for(let t of this.Tl)_w[t].forEach(([e,...s])=>this.If(e,s,!1))}c_(){for(let t of this.Tl)_w[t]={push:([e,...s])=>this.If(e,s,!0)}}If(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){z.error(`Command ${t} failed - params: ${csJSON.stringify(e)}`,l)}}}}return i})(),Q=(()=>{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})(),si=(()=>{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 Nm(i){return i.tgtHM!==void 0}function Vh(i){return i.tgt!==void 0}function Om(i){return i.tgtLk!==void 0}function Mm(i){return i.x!==void 0&&i.y!==void 0}function Dm(i){return i===si.APPCUES||i===si.CHAMELEON||i===si.CONTENTSQUARE||i===si.SEGMENT||i===si.SHOPIFY||i===si.WEB}var Uh=(()=>{class i extends Wa{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:Q.EXTERNAL_EVENT,name:t,ts:0})}emitTargetingRulesArtificialPageview(t){for(let e of this.listeners)e.onTargetingRulesArtificialPageview&&e.onTargetingRulesArtificialPageview(t)}}return i.$deps=[],i})(),Qa=(()=>{class i{setContext(t,e){this.I=t,this.R=e}getVisitorService(){return this.I}getSessionService(){return this.R}}return i.$deps=[],i})();var zt=(()=>{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})(),qt=!Fu&&_d.createElement("a"),km=/(:443|:80)$/;function wi(i){return qt?(qt.href=i,qt.href):""}function Lm(i,r){return new csURL(i,r).href}function xm(i,r,t={}){let{allowWildcard:e=!0}=t;return csArray.prototype.some.call(r,s=>e&&s===""||s!==""&&(Is(i,`.${s}`)||i===s))}function Vm(i){return i[0]==="/"?i:`/${i}`}function gl(i){return csString.prototype.replace.call(i,km,"")}function Hh(i){return!qt||!Wt(i,"http://")&&!Wt(i,"https://")?null:(qt.href=i,{hash:qt.hash,host:gl(qt.host),hostname:qt.hostname,href:qt.href,origin:qt.origin?qt.origin:gl(`${qt.protocol}//${qt.host}`),pathname:Vm(qt.pathname),port:qt.port,protocol:qt.protocol,search:qt.search})}var Um=(()=>{class i{constructor(t,e){this.Je=t,this.u_=e}init(){this.Gt=new yn({endpoint:this.Je.getLoggerUri(),contentType:"text/plain"})}send(t){let e=this.u_.getRequestParameters(),s=csArray.prototype.map.call(t,n=>({...e,a:n.app,l:n.level,m:n.message,s:n.stacktrace}));this.Gt.send(s)}getRequestParameters(){return{}}}return i})(),Hm="uxa",ml=5,jh="snippet-",Bh="implementation-snippet-",El=(()=>{let i;return function(r){r.IMPLEMENTATION="implementation",r.DYNAMIC="dynamic"}(i||(i={})),i})(),jm=(()=>{class i{constructor(t,e,s,n){this.Tr=e,this.O=new Ke,this.Pf=Eo[mt.warn],this.Pf=Eo[t.minLogLevel||mt.warn];let o=new dh(t,this.O);this.Gt=s||new gh(t,o),this.Nf=n||new Um(t,o),this.Rl={[mt.debug]:[],[mt.warn]:[],[mt.implementation]:[],[mt.error]:[],[mt.critical]:[]},this.ya={implementation:{},dynamic:{}},this.Gt.init(),this.Nf.init()}send(t,e="",s=mt.warn){if(!this.Of(s,e))return;csArray.prototype.push.call(this.Rl[s],e||"");let n=this.h_(),o={message:Ga(this.O,t,e),stacktrace:fh(t,n),app:Hm,level:s};this.Gt.send(o)}sendBulk(t){let e=csArray.prototype.filter.call(t,n=>{let o=n.level,c=this.d_(n.message);return csString.prototype.startsWith.call(n.message,"debug-ct-log")?!0:this.Of(o,c)?(csArray.prototype.push.call(this.Rl[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.Nf.send(s)}d_(t){let e=csString.prototype.match.call(t,/ErrorCode: (.+)$/);return e?e[1]:""}h_(){let t=this.Tr.getVisitorService(),e=t==null?void 0:t.getVisitor();if(!e)return"No context";let s=this.Tr.getSessionService(),n=s&&s.getSession(),o={userId:e.id,sessionNumber:e.visitsCount,pageNumber:n&&n.pageNumber};return csJSON.stringify(o)}Of(t,e){if(Eo[t]=ml?!1:!(e&&csArray.prototype.some.call(s,n=>n===e))}Mf(t,e){return t in this.ya[e]?this.ya[e][t]>=ml?!1:(this.ya[e][t]+=1,!0):(this.ya[e][t]=1,!0)}}return i})();var Bm=(()=>{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(Ht(q))return q}catch{z.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,gt){_w.CSJavascriptBridge.identify&&_w.CSJavascriptBridge.identify(q,csJSON.stringify(gt))}r.identify=n;function o(){_w.CSJavascriptBridge.resetIdentity&&_w.CSJavascriptBridge.resetIdentity()}r.resetIdentity=o;function c(q){_w.CSJavascriptBridge.addUserProperties&&_w.CSJavascriptBridge.addUserProperties(csJSON.stringify(q))}r.addUserProperties=c;function l(q){_w.CSJavascriptBridge.addEventProperties&&_w.CSJavascriptBridge.addEventProperties(csJSON.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(csJSON.stringify(q))}r.addPageviewProperties=p;function y(q){_w.CSJavascriptBridge.removePageviewProperty&&_w.CSJavascriptBridge.removePageviewProperty(q)}r.removePageviewProperty=y;function m(){_w.CSJavascriptBridge.clearPageviewProperties&&_w.CSJavascriptBridge.clearPageviewProperties()}r.clearPageviewProperties=m;function _(q){_w.CSJavascriptBridge.sendEvent(csJSON.stringify(q))}r.sendAnalysisEvent=_;function A(q){if(_w.CSJavascriptBridge.sendSREvent)for(let gt of q.events)_w.CSJavascriptBridge.sendSREvent(csJSON.stringify(gt))}r.sendSREvent=A;function D(q){_w.CSJavascriptBridge&&_w.CSJavascriptBridge.sendLog&&_w.CSJavascriptBridge.sendLog(csJSON.stringify(q))}r.sendLog=D;function I(){_w.CSJavascriptBridge.optIn()}r.sendOptIn=I;function C(){_w.CSJavascriptBridge.optOut()}r.sendOptOut=C;function x(q,gt){_w.CSJavascriptBridge.sendDynamicVar(q,gt)}r.sendDynamicVariable=x;function O(q,gt,Pt){_w.CSJavascriptBridge.sendTransaction(q,gt,Pt)}r.sendTransaction=O;function N(q,gt){if(_w.CSJavascriptBridge.sendAssets){let Pt=csJSON.stringify(q);_w.CSJavascriptBridge.sendAssets(Pt,gt||null)}else _w.CSJavascriptBridge.sendSRAssets&&_w.CSJavascriptBridge.sendSRAssets(csArray.prototype.map.call(q,Pt=>Pt.assetId))}r.sendAssets=N;function W(q){_w.CSJavascriptBridge&&_w.CSJavascriptBridge.sendNativeSREvent&&_w.CSJavascriptBridge.sendNativeSREvent(csJSON.stringify(q))}r.sendNativeSREvent=W}(i||(i={})),i})(),$m="No stacktrace",Gm=(()=>{class i{constructor(){this.O=new Ke}send(t,e,s=mt.warn){let n={message:Ga(this.O,t),errorCode:e,level:s},o=this.f_(t);o&&(n.stacktrace=o),Bm.sendLog(n)}f_(t){if(Xe(t))return`${t.stack||$m}`}sendBulk(t){}}return i.$deps=[],i})(),$h=(()=>{class i{constructor(t,e,s){this.Et=t,this.E=e,this.Tr=s}createStrategy(){return this.Et.isTopWindowTracker()?new jm(this.E,this.Tr):this.Et.isInWebViewContext()?new Gm:new mh(this.E)}}return i.$deps=[Ps,Dt,Qa],i})(),Si=(()=>{let i;return function(r){r.None="None",r.Lax="Lax",r.NotSet="X"}(i||(i={})),i})(),We=(()=>{let i;return function(r){r[r.Yes=1]="Yes",r[r.No=0]="No"}(i||(i={})),i})(),Ot=(()=>{let i;return function(r){r.CURRENT_DOMAIN="CURRENT_DOMAIN";function t(l){let h=new csRegExp(`(^|;)[ ]*${l}=([^;]*)`).exec(_d.cookie);return h?decodeURIComponent(h[2]):null}r.get=t;function e(l,u,h,p,y,m){let _=encodeURIComponent(`${u}`),A=h===r.CURRENT_DOMAIN?void 0:h,D=s(p),I=D?`;expires=${D.toUTCString()}`:"",C=";path=/",x=It(A)?`;domain=${A}`:"",O=`${l}=${_}${I}${C}${x}`;return ht(y)&&y!==Si.NotSet&&(O=`${O};SameSite=${y}`),ht(m)&&m===We.Yes&&(O=`${O};Secure`),_d.cookie=O,!0}r.set=e;function s(l){return Ht(l)?new csDate(U.now()+l):l}r.toExpireDate=s;function n(l,u){t(l)&&e(l,"",u,new csDate(0)),t(l)&&e(l,"",u,new csDate(0),Si.None,We.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 y=csString.prototype.split.call(_w.location.hostname,"."),m=csArray.prototype.pop.call(y);for(;y.length&&(p===null||p==="1");)m=csArray.prototype.join.call([csArray.prototype.pop.call(y),m],"."),e(h,m,m,void 0,l,u),p=t(h);return n(h,m),m}r.getRootDomain=c}(i||(i={})),i})(),ds="_cs_t",yl="1",Za=(()=>{class i{constructor(t,e){this.Et=t,this.E=e,this.Sa=!1,this._a=!1}setup(){if(!this.E.cookielessTrackingEnabled&&this.Et.isTopWindowTracker()&&"cookie"in _d){if(!this.Et.isInIframeContext()&&Ot.isCookiePresent()){this.Sa=!0,this._a=!1;return}if(Ot.set(ds,yl,Ot.CURRENT_DOMAIN),Ot.get(ds)!==null){this.Sa=!0,this._a=!1,Ot.remove(ds,Ot.CURRENT_DOMAIN);return}Ot.set(ds,yl,Ot.CURRENT_DOMAIN,void 0,Si.None,We.Yes),Ot.get(ds)!==null&&(this.Sa=!0,this._a=!0,Ot.remove(ds,Ot.CURRENT_DOMAIN))}}areCookiesEnabled(){return this.Sa}isSameSiteNoneSecureNeeded(){return this._a}}return i.$deps=[Ps,Dt],i})();function zm(){let i="CSSessionStorageTest";try{return sessionStorage.setItem(i,i),sessionStorage.getItem(i)!==i?!1:(sessionStorage.removeItem(i),!0)}catch{return!1}}var Gh=(()=>{class i{constructor(t,e){this.E=t,this.Dn=e}canTrack(){return this.E.isProjectActive()&&this.p_()&&this.Df()&&this.g_()}canTrackInChild(){return this.E.isProjectActive()&&this.m_()&&(this.Df()||this.E_()||this.y_())}g_(){return this.E.cookielessTrackingEnabled?zm():this.Dn.areCookiesEnabled()}Df(){return xm(_w.location.hostname,this.E.hostnames)}p_(){return!this.kf()&&this.S_()}m_(){return!this.kf()&&this.__()}E_(){return _w.location.protocol==="about:"&&_w.location.hostname===""}kf(){return"visibilityState"in _d&&_d.visibilityState==="prerender"}S_(){return this.Lf()&&this.v_()}__(){return this.Lf()}v_(){try{return!!_w.localStorage}catch{return!1}}Lf(){return"pageXOffset"in _w&&"pageYOffset"in _w&&"onpagehide"in _w&&"JSON"in _w&&"parse"in _w.JSON&&"stringify"in _w.JSON&&"addEventListener"in _w&&"removeEventListener"in _w&&"Node"in _w&&"filter"in Array.prototype&&"forEach"in Array.prototype&&"querySelectorAll"in _d&&"now"in Date&&"keys"in Object&&"performance"in _w&&"Map"in _w&&"Set"in _w}y_(){return this.E.isWebView&&_w.location.protocol==="file:"&&_w.location.hostname===""}}return i.$deps=[Dt,Za],i})();function Sl(i,r,t){if(!ht(r)&&!ht(t))return i.href;let e=ht(r)?Ea(r):i.pathname,s=ht(t)?zh(t):i.search;return`${i.protocol}//${i.host}${e}${s}`}function Ea(i){return Wt(i,"/")?i:`/${i}`}function zh(i){return Wt(i,"?")||i===""?i:`?${i}`}var Mo=(()=>{let i;return function(r){r[r.page=1]="page",r[r.onNextPageviewOnly=2]="onNextPageviewOnly"}(i||(i={})),i})(),Ln=(()=>{class i{constructor(t,e){this.zt=t,this.tt=e,this.w_=10}overridePath(t,e){if(t===""){this.ns=void 0;return}let s=this.xf(e);s&&(this.Cl=s),this.ns=e?this.Vf(t,e):t}overrideQuery(t,e){let s=this.xf(e);s&&(this.Il=s),this.kn=e?this.Vf(t,e):t}computeOverriddenUrl(t){return this.A_(t)?this.getAnonymizedUrl():t}T_(t){return(typeof t=="string"||typeof t=="number")&&t in Mo}A_(t){let e=this.va(this.zt.href);return this.va(t)===e}va(t){return cg(t,"/")?t.slice(0,-1):t}xf(t){return ht(t==null?void 0:t.lifespan)&&this.T_(t==null?void 0:t.lifespan)?t==null?void 0:t.lifespan:null}b_(){return this.Cl&&this.Cl in Mo}R_(){return this.Il&&this.Il in Mo}cleanupOverrideLifespan(){this.b_()&&(this.ns=void 0,this.Cl=void 0),this.R_()&&(this.kn=void 0,this.Il=void 0)}getAnonymizedUrl(){let t=Sl(this.zt,this.ns,this.kn);return this.tt.anonymizeUrl(t)}getUrl(){return Sl(this.zt,this.ns,this.kn)}getAnonymizedPathAndQuery(){let t=ht(this.ns)?Ea(this.ns):this.zt.pathname,e=ht(this.kn)?zh(this.kn):this.zt.search;return this.tt.anonymizeUrl(t+e)}getPath(){return ht(this.ns)?Ea(this.ns):this.zt.pathname}getUrlProtocol(){return this.zt.protocol}getRequestParameters(){return{url:this.getAnonymizedUrl()}}Vf(t,e){return this.C_(e)?this.I_(t):this.P_(e)?this.N_(t):t}P_(t){return!!t.decodeURI}N_(t){return this.Uf(t,1,!1)}C_(t){return!!t.decodeURIDeep}I_(t){return this.Uf(t,this.w_,!0)}Uf(t,e,s){let n=t;for(let o=0;o{class i{get(t){return Ot.get(t)}}return i.$deps=[],i})(),Fm=(()=>{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})(),ai=(()=>{class i extends qm{constructor(t,e,s){super(),this.E=t,this.A=e,this.Dn=s,this.Pl=!1,this.Hf=Si.NotSet,this.Nl=We.No}getSameSiteFlag(){return this.Hf}getSecureFlag(){return this.Nl}getDomain(){return this.Ol}getRootDomain(){return this.jf}init(){if(this.E.cookielessTrackingEnabled)return;let t=this.O_(),e=this.M_();this.Pl=this.D_(t,e),this.Pl?(this.Hf=t,this.Nl=e):this.E.secureCookiesEnabled&&this.A.getUrlProtocol()==="https:"&&(this.Nl=We.Yes),this.jf=this.k_(),this.Ol=this.L_(this.jf)}D_(t,e){return Fm.browserIsSafariV12()?!1:(Ot.set(i.COOKIE_TEST_FOR_SAME_SITE,"Test same site",i.CURRENT_DOMAIN,void 0,t,e),Ot.get(i.COOKIE_TEST_FOR_SAME_SITE)?(Ot.remove(i.COOKIE_TEST_FOR_SAME_SITE,i.CURRENT_DOMAIN),!0):!1)}O_(){return this.A.getUrlProtocol()==="http:"?Si.Lax:this.Dn.isSameSiteNoneSecureNeeded()||this.E.crossDomainTracking?Si.None:Si.Lax}M_(){return this.A.getUrlProtocol()==="http:"?We.No:this.E.secureCookiesEnabled||this.E.crossDomainTracking||this.Dn.isSameSiteNoneSecureNeeded()?We.Yes:We.No}isSameSiteSupported(){return this.Pl}set(t,e,s,n){let o=Ot.toExpireDate(s),c=n?We.Yes:this.getSecureFlag();Ot.set(t,e,this.Ol,o,this.getSameSiteFlag(),c)}delete(t,e){let s=e||this.Ol;Ot.remove(t,s)}k_(){let t=this.Dn.isSameSiteNoneSecureNeeded()&&this.isSameSiteSupported(),e=t?Si.None:void 0,s=t?We.Yes:void 0;return Ot.getRootDomain(e,s)}L_(t){return this.E.allowSubdomains?t:Ot.CURRENT_DOMAIN}}return i.$deps=[Dt,Ln,Za],i.CURRENT_DOMAIN="CURRENT_DOMAIN",i.COOKIE_TEST_FOR_SAME_SITE="_cs_same_site",i})(),tc=(()=>{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})(),pi="_cs_c",Li=(()=>{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})(),qh=(()=>{class i{constructor(t,e,s){this.E=t,this.L=e,this.kt=s}get(){let t;return this.E.cookielessTrackingEnabled?t=this.kt.getItem(pi):t=this.L.get(pi),t===null?t:Number(t)}set(t){this.E.cookielessTrackingEnabled?this.kt.setItem(pi,String(t)):this.L.set(pi,String(t),Ba)}remove(){this.E.cookielessTrackingEnabled?this.kt.removeItem(pi):this.L.delete(pi)}handleSubdomainChange(){this.E.cookielessTrackingEnabled||(this.E.allowSubdomains?this.L.delete(pi,ai.CURRENT_DOMAIN):this.L.delete(pi,this.L.getRootDomain()))}}return i.$deps=[Dt,ai,tc],i})(),Fh=(()=>{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===Li.NOT_REQUIRED||!e&&t!==Li.NOT_REQUIRED}handleSubdomainChange(){this.et.handleSubdomainChange()}setDefaultReplayAnonymization(){let t=this.E.consentRequired?Li.NOT_EXPRESSED:Li.NOT_REQUIRED;this.et.set(t)}grantReplayAnonymizationConsent(){this.E.consentRequired&&(this.et.set(Li.GRANTED),this.w.emitReplayUnanonymizationConsentGranted())}withdrawReplayAnonymizationConsent(){this.E.consentRequired&&(this.et.set(Li.WITHDRAWN),this.w.emitReplayUnanonymizationConsentWithdrawn())}removeAllConsents(){this.et.remove()}isReplayUnanonymizedAllowedByConsent(){return!this.E.consentRequired||this.et.get()===Li.GRANTED}getRequestParameters(){return{uc:`${this.et.get()}`}}}return i.$deps=[Dt,qh,Ki],i})();function Wm(){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 Ym(){return[{selector:".ctHidden,input:not([type=button]):not([type=submit])",attrName:"value"}]}var Wh=["setEncryptionSelectors"],ec=["setPIISelectors"],Yh=["setCapturedElementsSelector"],Xh=(()=>{class i{constructor(t){this.bl=t,this.x_={PIISelectors:["picture","img","video","audio"],Attributes:[]},this.Ni={elementSelector:"",attrSelector:"",attrSelectors:[]};let e={PIISelectors:Wm(),Attributes:Ym()};this.Ni=G.getComputedSelectorSettings(e,this.Ni)}init(){this.V_()}setMaskedElementSettingsFromCommand(t){if(t=G.sanitizeSelectorUserInput(t),!G.isSelectorUserInput(t))throw new Rt(ec[0]);this.Ml(t)}setMaskedElementSettingsFromParent(t){let e={PIISelectors:t.elementSelector.split(","),Attributes:t.attrSelectors};this.Ml(e)}getMaskedElementSettings(t){return t?this.Bf(this.x_):this.Ni}V_(){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=>{M(h.attr)&&M(h.rule)&&u.Attributes.push({selector:h.rule,attrName:h.attr})}),(l=this.bl)===null||l===void 0||l.markClicktalePIIInUse(u),this.Ml(u)}Ml(t){this.Ni=this.Bf(t)}Bf(t){return G.getComputedSelectorSettings(t,this.Ni)}}return i.$deps=[{__optional:Qs}],i})(),Xm=(()=>{let i;return function(r){r.COMPRESSION_DISABLED="compressionDisabled"}(i||(i={})),i})(),Km=(()=>{class i{constructor(){}static init(t){(!this.Dl||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.Dl=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;Jm(i.getString("debugLog"),t)&&(n.value=function(...h){return console.log(l,...h),u.bind(this)(...h)})}}}return i})();function Jm(i,r){var t;return i==null?!1:i===r||!!(!((t=csString.prototype.match.call(i,new csRegExp("(^|,)("+r+")(,|$)")))===null||t===void 0)&&t.length)}var Qm=(()=>{class i{constructor(t){this.U_=t,this.$f=[],this.xs={},this.H_=0}static async create(t,e={}){let s=new i(t),n,o=!1;return csArray.prototype.forEach.call(Object.entries(e),([c,l])=>{e[c]=l,s.register(l)}),await s.Vs(!1).catch(async c=>{s.br();let l=c.toString();at.warn("Failed to start worker: "+l),l.indexOf("DataCloneError")!==-1?await s.Vs(!0).then(()=>{o=!0}).catch(u=>{s.br(),at.warn("Failed to start worker (stringify mode): "+u.toString()),n=new t}):n=new t}),new Proxy(s,{get(c,l){return l==="__worker"?s.qt:t.prototype[l]instanceof Function?(...u)=>n?Promise.resolve(n[l](...u)):s.Gf(l,u,o):n?Promise.resolve(n[l]):s.Gf(l,[],o)}})}Gf(t,e,s){let n=++this.H_;return new Promise((o,c)=>{this.xs[n]=(l,u)=>{delete this.xs[n],l?c(l):o(u)};try{let l=s?csJSON.stringify({id:n,command:t,params:e}):{id:n,command:t,params:e};this.qt.postMessage(l)}catch(l){delete this.xs[n],c(l)}})}register(t){csArray.prototype.push.call(this.$f,t.toString())}Vs(t){try{let e=_l.toString()+` `+csArray.prototype.join.call(this.$f,` `)+` const stringifyMode = ${t}; const klass = (${this.U_.toString()}); ${_l.name}()`,s=new Blob([e],{type:"application/javascript"});this.kl=csURL.createObjectURL(s),this.qt=new Worker(this.kl),this.qt.addEventListener("message",async n=>{var o,c,l,u,h,p,y,m;if(n.data==="ping")return;let _=null;try{_=t?csJSON.parse(n.data):n.data}catch(A){at.error("Worker error: failed to parse message: "+A.message);return}if(!_||typeof _!="object"){at.error("Worker error: ","Invalid message payload");return}if(_.type!=="critical"&&!_.id){at.error("Worker error: ","No ID");return}switch(_.type){case"critical":at.error("Worker error: "+_.critical);break;case"error":let A=this.j_(_.error,t);(c=(o=this.xs)[_.id])===null||c===void 0||c.call(o,A,void 0);break;case"resultInBase64ToArrayBuffer":try{let D=ja(_.resultInBase64);(u=(l=this.xs)[_.id])===null||u===void 0||u.call(l,void 0,D)}catch(D){at.error(`Worker error: ${D.message}`),(p=(h=this.xs)[_.id])===null||p===void 0||p.call(h,D,void 0)}break;case"result":(m=(y=this.xs)[_.id])===null||m===void 0||m.call(y,void 0,_.result);break;default:at.error("Worker error: ","Invalid response type")}}),this.qt.postMessage(t?'{"id":-1}':{id:-1})}catch(e){return Promise.reject(e)}return new Promise((e,s)=>{this.qt.onerror=n=>s(new Error(n.message)),this.qt.onmessage=()=>{this.qt.onmessage=this.qt.onerror=null,e()}})}br(){this.kl&&csURL.revokeObjectURL(this.kl),this.qt&&this.qt.terminate()}j_(t,e){if(!e)return t;let{name:s,message:n,stack:o}=t,c=new Error(n);return c.name=s,c.stack=o,c}}return i})();function _l(){let i=new klass,r=stringifyMode;function t(u){return r?JSON.stringify(u):u}function e(u){return r?JSON.parse(u):u}function s(u){self.postMessage(t(u))}function n(u){return new Promise((h,p)=>{let y=new FileReader;y.onload=m=>{var _,A;if(typeof((_=m.target)===null||_===void 0?void 0:_.result)!="string")return p(new Error("Unexpected output: "+((A=m.target)===null||A===void 0?void 0:A.result)));h(m.target.result.split(",")[1])},y.onerror=()=>p(new Error("FileReader error")),y.onabort=()=>p(new Error("FileReader aborted")),y.readAsDataURL(new Blob([u]))})}function o(u,h,p){r&&p instanceof ArrayBuffer?n(p).then(y=>{s({type:"resultInBase64ToArrayBuffer",resultInBase64:y,id:u,command:h})}).catch(y=>{c(u,h,"Failed to convert ArrayBuffer to base64: "+y.message)}):s({type:"result",result:p,id:u,command:h})}function c(u,h,p){let y=p instanceof Error?p:new Error(csString(p)),m=r?{name:y.name,message:y.message,stack:y.stack}:y;s({type:"error",error:m,id:u,command:h})}function l(u){s({type:"critical",critical:u})}self.postMessage("ping"),self.onmessage=u=>{let h=null;try{h=e(u.data)}catch(_){l("Failed to deserialize message: "+_.message);return}if(!h||typeof h!="object"){l("Invalid message payload");return}if(h.id===-1)return;if(!h.command){l(`Invalid command (${h.command})`);return}let{id:p,command:y,params:m}=h;Promise.resolve().then(()=>{let _=i[y];return typeof _=="function"?_.apply(i,m):_}).then(_=>o(p,y,_),_=>c(p,y,_))}}function ya(){function s(a){let g=a.length;for(;--g>=0;)a[g]=0}let n=0,o=1,c=2,l=3,u=258,h=29,p=256,y=p+1+h,m=30,_=19,A=2*y+1,D=15,I=16,C=7,x=256,O=16,N=17,W=18,q=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]),gt=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]),Pt=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),te=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),fe=512,T=new Array((y+2)*2);s(T);let V=new Array(m*2);s(V);let H=new Array(fe);s(H);let F=new Array(u-l+1);s(F);let vt=new Array(h);s(vt);let At=new Array(m);s(At);function oe(a,g,E,S,d){this.static_tree=a,this.extra_bits=g,this.extra_base=E,this.elems=S,this.max_length=d,this.has_stree=a&&a.length}let ae,ve,Ve;function Ue(a,g){this.dyn_tree=a,this.max_code=0,this.stat_desc=g}let He=a=>a<256?H[a]:H[256+(a>>>7)],ce=(a,g)=>{a.pending_buf[a.pending++]=g&255,a.pending_buf[a.pending++]=g>>>8&255},Lt=(a,g,E)=>{a.bi_valid>I-E?(a.bi_buf|=g<>I-a.bi_valid,a.bi_valid+=E-I):(a.bi_buf|=g<{Lt(a,E[g*2],E[g*2+1])},ts=(a,g)=>{let E=0;do E|=a&1,a>>>=1,E<<=1;while(--g>0);return E>>>1},Rr=a=>{a.bi_valid===16?(ce(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)},Hn=(a,g)=>{let E=g.dyn_tree,S=g.max_code,d=g.stat_desc.static_tree,P=g.stat_desc.has_stree,R=g.stat_desc.extra_bits,k=g.stat_desc.extra_base,ut=g.stat_desc.max_length,Y,me,hi,St,ki,ls,jr=0;for(St=0;St<=D;St++)a.bl_count[St]=0;for(E[a.heap[a.heap_max]*2+1]=0,Y=a.heap_max+1;Yut&&(St=ut,jr++),E[me*2+1]=St,!(me>S)&&(a.bl_count[St]++,ki=0,me>=k&&(ki=R[me-k]),ls=E[me*2],a.opt_len+=ls*(St+ki),P&&(a.static_len+=ls*(d[me*2+1]+ki)));if(jr!==0){do{for(St=ut-1;a.bl_count[St]===0;)St--;a.bl_count[St]--,a.bl_count[St+1]+=2,a.bl_count[ut]--,jr-=2}while(jr>0);for(St=ut;St!==0;St--)for(me=a.bl_count[St];me!==0;)hi=a.heap[--Y],!(hi>S)&&(E[hi*2+1]!==St&&(a.opt_len+=(St-E[hi*2+1])*E[hi*2],E[hi*2+1]=St),me--)}},Cr=(a,g,E)=>{let S=new Array(D+1),d=0,P,R;for(P=1;P<=D;P++)S[P]=d=d+E[P-1]<<1;for(R=0;R<=g;R++){let k=a[R*2+1];k!==0&&(a[R*2]=ts(S[k]++,k))}},jn=()=>{let a,g,E,S,d,P=new Array(D+1);for(E=0,S=0;S>=7;S{let g;for(g=0;g{a.bi_valid>8?ce(a,a.bi_buf):a.bi_valid>0&&(a.pending_buf[a.pending++]=a.bi_buf),a.bi_buf=0,a.bi_valid=0},Pr=(a,g,E,S)=>{Ir(a),S&&(ce(a,E),ce(a,~E)),a.pending_buf.set(a.window.subarray(g,g+E),a.pending),a.pending+=E},Nr=(a,g,E,S)=>{let d=g*2,P=E*2;return a[d]{let S=a.heap[E],d=E<<1;for(;d<=a.heap_len&&(d{let S,d,P=0,R,k;if(a.last_lit!==0)do S=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++,S===0?le(a,d,g):(R=F[d],le(a,R+p+1,g),k=q[R],k!==0&&(d-=vt[R],Lt(a,d,k)),S--,R=He(S),le(a,R,E),k=gt[R],k!==0&&(S-=At[R],Lt(a,S,k)));while(P{let E=g.dyn_tree,S=g.stat_desc.static_tree,d=g.stat_desc.has_stree,P=g.stat_desc.elems,R,k,ut=-1,Y;for(a.heap_len=0,a.heap_max=A,R=0;R>1;R>=1;R--)ks(a,E,R);Y=P;do R=a.heap[1],a.heap[1]=a.heap[a.heap_len--],ks(a,E,1),k=a.heap[1],a.heap[--a.heap_max]=R,a.heap[--a.heap_max]=k,E[Y*2]=E[R*2]+E[k*2],a.depth[Y]=(a.depth[R]>=a.depth[k]?a.depth[R]:a.depth[k])+1,E[R*2+1]=E[k*2+1]=Y,a.heap[1]=Y++,ks(a,E,1);while(a.heap_len>=2);a.heap[--a.heap_max]=a.heap[1],Hn(a,g),Cr(E,ut,a.bl_count)},Or=(a,g,E)=>{let S,d=-1,P,R=g[0*2+1],k=0,ut=7,Y=4;for(R===0&&(ut=138,Y=3),g[(E+1)*2+1]=65535,S=0;S<=E;S++)P=R,R=g[(S+1)*2+1],!(++k{let S,d=-1,P,R=g[0*2+1],k=0,ut=7,Y=4;for(R===0&&(ut=138,Y=3),S=0;S<=E;S++)if(P=R,R=g[(S+1)*2+1],!(++k{let g;for(Or(a,a.dyn_ltree,a.l_desc.max_code),Or(a,a.dyn_dtree,a.d_desc.max_code),es(a,a.bl_desc),g=_-1;g>=3&&a.bl_tree[te[g]*2+1]===0;g--);return a.opt_len+=3*(g+1)+5+5+4,g},$n=(a,g,E,S)=>{let d;for(Lt(a,g-257,5),Lt(a,E-1,5),Lt(a,S-4,4),d=0;d{let g=4093624447,E;for(E=0;E<=31;E++,g>>>=1)if(g&1&&a.dyn_ltree[E*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(E=32;E{Dr||(jn(),Dr=!0),a.l_desc=new Ue(a.dyn_ltree,ae),a.d_desc=new Ue(a.dyn_dtree,ve),a.bl_desc=new Ue(a.bl_tree,Ve),a.bi_buf=0,a.bi_valid=0,Ds(a)},kr=(a,g,E,S)=>{Lt(a,(n<<1)+(S?1:0),3),Pr(a,g,E,!0)},qn=a=>{Lt(a,o<<1,3),le(a,x,T),Rr(a)},Fn=(a,g,E,S)=>{let d,P,R=0;a.level>0?(a.strm.data_type===2&&(a.strm.data_type=Gn(a)),es(a,a.l_desc),es(a,a.d_desc),R=Bn(a),d=a.opt_len+3+7>>>3,P=a.static_len+3+7>>>3,P<=d&&(d=P)):d=P=E+5,E+4<=d&&g!==-1?kr(a,g,E,S):a.strategy===4||P===d?(Lt(a,(o<<1)+(S?1:0),3),Ls(a,T,V)):(Lt(a,(c<<1)+(S?1:0),3),$n(a,a.l_desc.max_code+1,a.d_desc.max_code+1,R+1),Ls(a,a.dyn_ltree,a.dyn_dtree)),Ds(a),S&&Ir(a)},Wn=(a,g,E)=>(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]=E&255,a.last_lit++,g===0?a.dyn_ltree[E*2]++:(a.matches++,g--,a.dyn_ltree[(F[E]+p+1)*2]++,a.dyn_dtree[He(g)*2]++),a.last_lit===a.lit_bufsize-1);var Yn=zn,Xn=kr,Kn=Fn,Jn=Wn,Qn=qn,Zn={_tr_init:Yn,_tr_stored_block:Xn,_tr_flush_block:Kn,_tr_tally:Jn,_tr_align:Qn},Lr=(a,g,E,S)=>{let d=a&65535|0,P=a>>>16&65535|0,R=0;for(;E!==0;){R=E>2e3?2e3:E,E-=R;do d=d+g[S++]|0,P=P+d|0;while(--R);d%=65521,P%=65521}return d|P<<16|0};let to=()=>{let a,g=[];for(var E=0;E<256;E++){a=E;for(var S=0;S<8;S++)a=a&1?3988292384^a>>>1:a>>>1;g[E]=a}return g},eo=new Uint32Array(to());var je=(a,g,E,S)=>{let d=eo,P=S+E;a^=-1;for(let R=S;R>>8^d[(a^g[R])&255];return a^-1},is={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"},xr={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:io,_tr_stored_block:so,_tr_flush_block:ro,_tr_tally:Be,_tr_align:w}=Zn,{Z_NO_FLUSH:Z,Z_PARTIAL_FLUSH:ss,Z_FULL_FLUSH:we,Z_FINISH:Ae,Z_BLOCK:K,Z_OK:ee,Z_STREAM_END:no,Z_STREAM_ERROR:pe,Z_DATA_ERROR:vc,Z_BUF_ERROR:Vr,Z_DEFAULT_COMPRESSION:wc,Z_FILTERED:Ac,Z_HUFFMAN_ONLY:Tt,Z_RLE:rs,Z_FIXED:oo,Z_DEFAULT_STRATEGY:ao,Z_UNKNOWN:xs,Z_DEFLATED:Ci}=xr,Ii=9,tt=15,co=8,Vs=256+1+29,Us=30,ho=19,fo=2*Vs+1,po=15,nt=3,Yt=258,ge=Yt+nt+1,ns=32,os=42,as=69,Pi=73,Ni=91,Oi=103,Te=113,li=666,bt=1,Mi=2,Pe=3,ui=4,f=3,v=(a,g)=>(a.msg=is[g],g),b=a=>(a<<1)-(a>4?9:0),J=a=>{let g=a.length;for(;--g>=0;)a[g]=0},lt=(a,g,E)=>(g<{let g=a.state,E=g.pending;E>a.avail_out&&(E=a.avail_out),E!==0&&(a.output.set(g.pending_buf.subarray(g.pending_out,g.pending_out+E),a.next_out),a.next_out+=E,g.pending_out+=E,a.total_out+=E,a.avail_out-=E,g.pending-=E,g.pending===0&&(g.pending_out=0))},Et=(a,g)=>{ro(a,a.block_start>=0?a.block_start:-1,a.strstart-a.block_start,g),a.block_start=a.strstart,Nt(a.strm)},ft=(a,g)=>{a.pending_buf[a.pending++]=g},Hs=(a,g)=>{a.pending_buf[a.pending++]=g>>>8&255,a.pending_buf[a.pending++]=g&255},$d=(a,g,E,S)=>{let d=a.avail_in;return d>S&&(d=S),d===0?0:(a.avail_in-=d,g.set(a.input.subarray(a.next_in,a.next_in+d),E),a.state.wrap===1?a.adler=Lr(a.adler,g,d,E):a.state.wrap===2&&(a.adler=je(a.adler,g,d,E)),a.next_in+=d,a.total_in+=d,d)},Tc=(a,g)=>{let E=a.max_chain_length,S=a.strstart,d,P,R=a.prev_length,k=a.nice_match,ut=a.strstart>a.w_size-ge?a.strstart-(a.w_size-ge):0,Y=a.window,me=a.w_mask,hi=a.prev,St=a.strstart+Yt,ki=Y[S+R-1],ls=Y[S+R];a.prev_length>=a.good_match&&(E>>=2),k>a.lookahead&&(k=a.lookahead);do if(d=g,!(Y[d+R]!==ls||Y[d+R-1]!==ki||Y[d]!==Y[S]||Y[++d]!==Y[S+1])){S+=2,d++;do;while(Y[++S]===Y[++d]&&Y[++S]===Y[++d]&&Y[++S]===Y[++d]&&Y[++S]===Y[++d]&&Y[++S]===Y[++d]&&Y[++S]===Y[++d]&&Y[++S]===Y[++d]&&Y[++S]===Y[++d]&&SR){if(a.match_start=g,R=P,P>=k)break;ki=Y[S+R-1],ls=Y[S+R]}}while((g=hi[g&me])>ut&&--E!==0);return R<=a.lookahead?R:a.lookahead},Di=a=>{let g=a.w_size,E,S,d,P,R;do{if(P=a.window_size-a.lookahead-a.strstart,a.strstart>=g+(g-ge)){a.window.set(a.window.subarray(g,g+g),0),a.match_start-=g,a.strstart-=g,a.block_start-=g,S=a.hash_size,E=S;do d=a.head[--E],a.head[E]=d>=g?d-g:0;while(--S);S=g,E=S;do d=a.prev[--E],a.prev[E]=d>=g?d-g:0;while(--S);P+=g}if(a.strm.avail_in===0)break;if(S=$d(a.strm,a.window,a.strstart+a.lookahead,P),a.lookahead+=S,a.lookahead+a.insert>=nt)for(R=a.strstart-a.insert,a.ins_h=a.window[R],a.ins_h=lt(a,a.ins_h,a.window[R+1]);a.insert&&(a.ins_h=lt(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 E=65535;for(E>a.pending_buf_size-5&&(E=a.pending_buf_size-5);;){if(a.lookahead<=1){if(Di(a),a.lookahead===0&&g===Z)return bt;if(a.lookahead===0)break}a.strstart+=a.lookahead,a.lookahead=0;let S=a.block_start+E;if((a.strstart===0||a.strstart>=S)&&(a.lookahead=a.strstart-S,a.strstart=S,Et(a,!1),a.strm.avail_out===0)||a.strstart-a.block_start>=a.w_size-ge&&(Et(a,!1),a.strm.avail_out===0))return bt}return a.insert=0,g===Ae?(Et(a,!0),a.strm.avail_out===0?Pe:ui):(a.strstart>a.block_start&&(Et(a,!1),a.strm.avail_out===0),bt)},go=(a,g)=>{let E,S;for(;;){if(a.lookahead=nt&&(a.ins_h=lt(a,a.ins_h,a.window[a.strstart+nt-1]),E=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart),E!==0&&a.strstart-E<=a.w_size-ge&&(a.match_length=Tc(a,E)),a.match_length>=nt)if(S=Be(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=lt(a,a.ins_h,a.window[a.strstart+nt-1]),E=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=lt(a,a.ins_h,a.window[a.strstart+1]);else S=Be(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++;if(S&&(Et(a,!1),a.strm.avail_out===0))return bt}return a.insert=a.strstart{let E,S,d;for(;;){if(a.lookahead=nt&&(a.ins_h=lt(a,a.ins_h,a.window[a.strstart+nt-1]),E=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,E!==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,S=Be(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=lt(a,a.ins_h,a.window[a.strstart+nt-1]),E=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++,S&&(Et(a,!1),a.strm.avail_out===0))return bt}else if(a.match_available){if(S=Be(a,0,a.window[a.strstart-1]),S&&Et(a,!1),a.strstart++,a.lookahead--,a.strm.avail_out===0)return bt}else a.match_available=1,a.strstart++,a.lookahead--}return a.match_available&&(S=Be(a,0,a.window[a.strstart-1]),a.match_available=0),a.insert=a.strstart{let E,S,d,P,R=a.window;for(;;){if(a.lookahead<=Yt){if(Di(a),a.lookahead<=Yt&&g===Z)return bt;if(a.lookahead===0)break}if(a.match_length=0,a.lookahead>=nt&&a.strstart>0&&(d=a.strstart-1,S=R[d],S===R[++d]&&S===R[++d]&&S===R[++d])){P=a.strstart+Yt;do;while(S===R[++d]&&S===R[++d]&&S===R[++d]&&S===R[++d]&&S===R[++d]&&S===R[++d]&&S===R[++d]&&S===R[++d]&&da.lookahead&&(a.match_length=a.lookahead)}if(a.match_length>=nt?(E=Be(a,1,a.match_length-nt),a.lookahead-=a.match_length,a.strstart+=a.match_length,a.match_length=0):(E=Be(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++),E&&(Et(a,!1),a.strm.avail_out===0))return bt}return a.insert=0,g===Ae?(Et(a,!0),a.strm.avail_out===0?Pe:ui):a.last_lit&&(Et(a,!1),a.strm.avail_out===0)?bt:Mi},qd=(a,g)=>{let E;for(;;){if(a.lookahead===0&&(Di(a),a.lookahead===0)){if(g===Z)return bt;break}if(a.match_length=0,E=Be(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++,E&&(Et(a,!1),a.strm.avail_out===0))return bt}return a.insert=0,g===Ae?(Et(a,!0),a.strm.avail_out===0?Pe:ui):a.last_lit&&(Et(a,!1),a.strm.avail_out===0)?bt:Mi};function $e(a,g,E,S,d){this.good_length=a,this.max_lazy=g,this.nice_length=E,this.max_chain=S,this.func=d}let js=[new $e(0,0,0,0,Gd),new $e(4,4,8,4,go),new $e(4,5,16,8,go),new $e(4,6,32,32,go),new $e(4,4,16,16,cs),new $e(8,16,32,32,cs),new $e(8,16,128,128,cs),new $e(8,32,128,256,cs),new $e(32,128,258,1024,cs),new $e(32,258,258,4096,cs)],Fd=a=>{a.window_size=2*a.w_size,J(a.head),a.max_lazy_match=js[a.level].max_lazy,a.good_match=js[a.level].good_length,a.nice_match=js[a.level].nice_length,a.max_chain_length=js[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 Wd(){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=Ci,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(fo*2),this.dyn_dtree=new Uint16Array((2*Us+1)*2),this.bl_tree=new Uint16Array((2*ho+1)*2),J(this.dyn_ltree),J(this.dyn_dtree),J(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(po+1),this.heap=new Uint16Array(2*Vs+1),J(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Vs+1),J(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 bc=a=>{if(!a||!a.state)return v(a,pe);a.total_in=a.total_out=0,a.data_type=xs;let g=a.state;return g.pending=0,g.pending_out=0,g.wrap<0&&(g.wrap=-g.wrap),g.status=g.wrap?os:Te,a.adler=g.wrap===2?0:1,g.last_flush=Z,io(g),ee},Rc=a=>{let g=bc(a);return g===ee&&Fd(a.state),g},Yd=(a,g)=>!a||!a.state||a.state.wrap!==2?pe:(a.state.gzhead=g,ee),Cc=(a,g,E,S,d,P)=>{if(!a)return pe;let R=1;if(g===wc&&(g=6),S<0?(R=0,S=-S):S>15&&(R=2,S-=16),d<1||d>Ii||E!==Ci||S<8||S>15||g<0||g>9||P<0||P>oo)return v(a,pe);S===8&&(S=9);let k=new Wd;return a.state=k,k.strm=a,k.wrap=R,k.gzhead=null,k.w_bits=S,k.w_size=1<Cc(a,g,Ci,tt,co,ao),Kd=(a,g)=>{let E,S;if(!a||!a.state||g>K||g<0)return a?v(a,pe):pe;let d=a.state;if(!a.output||!a.input&&a.avail_in!==0||d.status===li&&g!==Ae)return v(a,a.avail_out===0?Vr:pe);d.strm=a;let P=d.last_flush;if(d.last_flush=g,d.status===os)if(d.wrap===2)a.adler=0,ft(d,31),ft(d,139),ft(d,8),d.gzhead?(ft(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)),ft(d,d.gzhead.time&255),ft(d,d.gzhead.time>>8&255),ft(d,d.gzhead.time>>16&255),ft(d,d.gzhead.time>>24&255),ft(d,d.level===9?2:d.strategy>=Tt||d.level<2?4:0),ft(d,d.gzhead.os&255),d.gzhead.extra&&d.gzhead.extra.length&&(ft(d,d.gzhead.extra.length&255),ft(d,d.gzhead.extra.length>>8&255)),d.gzhead.hcrc&&(a.adler=je(a.adler,d.pending_buf,d.pending,0)),d.gzindex=0,d.status=as):(ft(d,0),ft(d,0),ft(d,0),ft(d,0),ft(d,0),ft(d,d.level===9?2:d.strategy>=Tt||d.level<2?4:0),ft(d,f),d.status=Te);else{let R=Ci+(d.w_bits-8<<4)<<8,k=-1;d.strategy>=Tt||d.level<2?k=0:d.level<6?k=1:d.level===6?k=2:k=3,R|=k<<6,d.strstart!==0&&(R|=ns),R+=31-R%31,d.status=Te,Hs(d,R),d.strstart!==0&&(Hs(d,a.adler>>>16),Hs(d,a.adler&65535)),a.adler=1}if(d.status===as)if(d.gzhead.extra){for(E=d.pending;d.gzindex<(d.gzhead.extra.length&65535)&&!(d.pending===d.pending_buf_size&&(d.gzhead.hcrc&&d.pending>E&&(a.adler=je(a.adler,d.pending_buf,d.pending-E,E)),Nt(a),E=d.pending,d.pending===d.pending_buf_size));)ft(d,d.gzhead.extra[d.gzindex]&255),d.gzindex++;d.gzhead.hcrc&&d.pending>E&&(a.adler=je(a.adler,d.pending_buf,d.pending-E,E)),d.gzindex===d.gzhead.extra.length&&(d.gzindex=0,d.status=Pi)}else d.status=Pi;if(d.status===Pi)if(d.gzhead.name){E=d.pending;do{if(d.pending===d.pending_buf_size&&(d.gzhead.hcrc&&d.pending>E&&(a.adler=je(a.adler,d.pending_buf,d.pending-E,E)),Nt(a),E=d.pending,d.pending===d.pending_buf_size)){S=1;break}d.gzindexE&&(a.adler=je(a.adler,d.pending_buf,d.pending-E,E)),S===0&&(d.gzindex=0,d.status=Ni)}else d.status=Ni;if(d.status===Ni)if(d.gzhead.comment){E=d.pending;do{if(d.pending===d.pending_buf_size&&(d.gzhead.hcrc&&d.pending>E&&(a.adler=je(a.adler,d.pending_buf,d.pending-E,E)),Nt(a),E=d.pending,d.pending===d.pending_buf_size)){S=1;break}d.gzindexE&&(a.adler=je(a.adler,d.pending_buf,d.pending-E,E)),S===0&&(d.status=Oi)}else d.status=Oi;if(d.status===Oi&&(d.gzhead.hcrc?(d.pending+2>d.pending_buf_size&&Nt(a),d.pending+2<=d.pending_buf_size&&(ft(d,a.adler&255),ft(d,a.adler>>8&255),a.adler=0,d.status=Te)):d.status=Te),d.pending!==0){if(Nt(a),a.avail_out===0)return d.last_flush=-1,ee}else if(a.avail_in===0&&b(g)<=b(P)&&g!==Ae)return v(a,Vr);if(d.status===li&&a.avail_in!==0)return v(a,Vr);if(a.avail_in!==0||d.lookahead!==0||g!==Z&&d.status!==li){let R=d.strategy===Tt?qd(d,g):d.strategy===rs?zd(d,g):js[d.level].func(d,g);if((R===Pe||R===ui)&&(d.status=li),R===bt||R===Pe)return a.avail_out===0&&(d.last_flush=-1),ee;if(R===Mi&&(g===ss?w(d):g!==K&&(so(d,0,0,!1),g===we&&(J(d.head),d.lookahead===0&&(d.strstart=0,d.block_start=0,d.insert=0))),Nt(a),a.avail_out===0))return d.last_flush=-1,ee}return g!==Ae?ee:d.wrap<=0?no:(d.wrap===2?(ft(d,a.adler&255),ft(d,a.adler>>8&255),ft(d,a.adler>>16&255),ft(d,a.adler>>24&255),ft(d,a.total_in&255),ft(d,a.total_in>>8&255),ft(d,a.total_in>>16&255),ft(d,a.total_in>>24&255)):(Hs(d,a.adler>>>16),Hs(d,a.adler&65535)),Nt(a),d.wrap>0&&(d.wrap=-d.wrap),d.pending!==0?ee:no)},Jd=a=>{if(!a||!a.state)return pe;let g=a.state.status;return g!==os&&g!==as&&g!==Pi&&g!==Ni&&g!==Oi&&g!==Te&&g!==li?v(a,pe):(a.state=null,g===Te?v(a,vc):ee)},Qd=(a,g)=>{let E=g.length;if(!a||!a.state)return pe;let S=a.state,d=S.wrap;if(d===2||d===1&&S.status!==os||S.lookahead)return pe;if(d===1&&(a.adler=Lr(a.adler,g,E,0)),S.wrap=0,E>=S.w_size){d===0&&(J(S.head),S.strstart=0,S.block_start=0,S.insert=0);let ut=new Uint8Array(S.w_size);ut.set(g.subarray(E-S.w_size,E),0),g=ut,E=S.w_size}let P=a.avail_in,R=a.next_in,k=a.input;for(a.avail_in=E,a.next_in=0,a.input=g,Di(S);S.lookahead>=nt;){let ut=S.strstart,Y=S.lookahead-(nt-1);do S.ins_h=lt(S,S.ins_h,S.window[ut+nt-1]),S.prev[ut&S.w_mask]=S.head[S.ins_h],S.head[S.ins_h]=ut,ut++;while(--Y);S.strstart=ut,S.lookahead=nt-1,Di(S)}return S.strstart+=S.lookahead,S.block_start=S.strstart,S.insert=S.lookahead,S.lookahead=0,S.match_length=S.prev_length=nt-1,S.match_available=0,a.next_in=R,a.input=k,a.avail_in=P,S.wrap=d,ee};var Zd=Xd,tf=Cc,ef=Rc,sf=bc,rf=Yd,nf=Kd,of=Jd,af=Qd,cf="pako deflate (from Nodeca project)",Bs={deflateInit:Zd,deflateInit2:tf,deflateReset:ef,deflateResetKeep:sf,deflateSetHeader:rf,deflate:nf,deflateEnd:of,deflateSetDictionary:af,deflateInfo:cf};let lf=(a,g)=>Object.prototype.hasOwnProperty.call(a,g);var uf=function(a){let g=Array.prototype.slice.call(arguments,1);for(;g.length;){let E=g.shift();if(E){if(typeof E!="object")throw new TypeError(E+"must be non-object");for(let S in E)lf(E,S)&&(a[S]=E[S])}}return a},hf=a=>{let g=0;for(let S=0,d=a.length;S=252?6:a>=248?5:a>=240?4:a>=224?3:a>=192?2:1;$s[254]=$s[254]=1;var df=a=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(a);let g,E,S,d,P,R=a.length,k=0;for(d=0;d>>6,g[P++]=128|E&63):E<65536?(g[P++]=224|E>>>12,g[P++]=128|E>>>6&63,g[P++]=128|E&63):(g[P++]=240|E>>>18,g[P++]=128|E>>>12&63,g[P++]=128|E>>>6&63,g[P++]=128|E&63);return g};let Nc=(a,g=a.length)=>{if(g<65534&&a.subarray&&Pc)return String.fromCharCode.apply(null,a.length===g?a:a.subarray(0,g));let E="";for(let S=0;S{let E=g||a.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(a.subarray(0,g));let S,d,P=new Array(E*2);for(d=0,S=0;S4){P[d++]=65533,S+=k-1;continue}for(R&=k===2?31:k===3?15:7;k>1&&S1){P[d++]=65533;continue}R<65536?P[d++]=R:(R-=65536,P[d++]=55296|R>>10&1023,P[d++]=56320|R&1023)}return Nc(P,d)},pf=(a,g)=>{g=g||a.length,g>a.length&&(g=a.length);let E=g-1;for(;E>=0&&(a[E]&192)===128;)E--;return E<0||E===0?g:E+$s[a[E]]>g?E:g},Oc={string2buf:df,buf2string:ff,utf8border:pf};function gf(){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 mf=gf;let Mc=Object.prototype.toString,{Z_NO_FLUSH:Ef,Z_SYNC_FLUSH:yf,Z_FULL_FLUSH:Sf,Z_FINISH:_f,Z_OK:Ur,Z_STREAM_END:vf,Z_DEFAULT_COMPRESSION:wf,Z_DEFAULT_STRATEGY:Af,Z_DEFLATED:Tf}=xr;function Hr(a){this.options=Ic.assign({level:wf,method:Tf,chunkSize:16384,windowBits:15,memLevel:8,strategy:Af},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 mf,this.strm.avail_out=0;let E=Bs.deflateInit2(this.strm,g.level,g.method,g.windowBits,g.memLevel,g.strategy);if(E!==Ur)throw new Error(is[E]);if(g.header&&Bs.deflateSetHeader(this.strm,g.header),g.dictionary){let S;if(typeof g.dictionary=="string"?S=Oc.string2buf(g.dictionary):Mc.call(g.dictionary)==="[object ArrayBuffer]"?S=new Uint8Array(g.dictionary):S=g.dictionary,E=Bs.deflateSetDictionary(this.strm,S),E!==Ur)throw new Error(is[E]);this._dict_set=!0}}Hr.prototype.push=function(a,g){let E=this.strm,S=this.options.chunkSize,d,P;if(this.ended)return!1;for(g===~~g?P=g:P=g===!0?_f:Ef,typeof a=="string"?E.input=Oc.string2buf(a):Mc.call(a)==="[object ArrayBuffer]"?E.input=new Uint8Array(a):E.input=a,E.next_in=0,E.avail_in=E.input.length;;){if(E.avail_out===0&&(E.output=new Uint8Array(S),E.next_out=0,E.avail_out=S),(P===yf||P===Sf)&&E.avail_out<=6){this.onData(E.output.subarray(0,E.next_out)),E.avail_out=0;continue}if(d=Bs.deflate(E,P),d===vf)return E.next_out>0&&this.onData(E.output.subarray(0,E.next_out)),d=Bs.deflateEnd(this.strm),this.onEnd(d),this.ended=!0,d===Ur;if(E.avail_out===0){this.onData(E.output);continue}if(P>0&&E.next_out>0){this.onData(E.output.subarray(0,E.next_out)),E.avail_out=0;continue}if(E.avail_in===0)break}return!0},Hr.prototype.onData=function(a){this.chunks.push(a)},Hr.prototype.onEnd=function(a){a===Ur&&(this.result=Ic.flattenChunks(this.chunks)),this.chunks=[],this.err=a,this.msg=this.strm.msg};function bf(a,g){g=g||{};let E=new Hr(g);if(E.push(a,!0),E.err)throw E.msg||is[E.err];return E.result}function Rf(a,g){return g=g||{},g.gzip=!0,bf(a,g)}return(a,g,E)=>{let S=Rf(a);return g==="base64"?S=btoa(Nc(S)):S=S.buffer,E&&E(S),S}}var Zm=(()=>{class i extends wh{constructor(){super(),this.algorithm=yr.GZIP,this.B_=ya(),this.compress=(s,n,o)=>this.zf.compress(s,n).then(o);let e=typeof CompressionStream!="undefined"&&!!self.CompressionStream?eE:tE;this.zf=new e,Qm.create(e,{getPakoCompressor:ya}).then(s=>{this.zf=s})}compressSync(t,e){try{return this.B_(t,e)}catch(s){throw at.warn(s),s}}}return i})(),tE=(()=>{class i{constructor(){this.$_=ya()}compress(t,e){return Promise.resolve(this.$_(t,e))}}return i})(),eE=(()=>{class i{G_(t){return new Promise(e=>{let s=new FileReader;s.onload=n=>e(n.target.result.split(",")[1]),s.readAsDataURL(new Blob([t]))})}compress(t,e){let s=new Response(t).body.pipeThrough(new CompressionStream("gzip")),n=new Response(s).arrayBuffer();return e==="base64"?n.then(o=>this.G_(o)):n}}return i})(),iE=(()=>{class i extends wh{constructor(){super(...arguments),this.algorithm=yr.UNCOMPRESSED,this.compress=(t,e,s)=>{s(this.compressSync(t,e))},this.compressSync=(t,e)=>t}}return i})(),Kh=(()=>{class i{static create(t=!0){return this.instance?this.instance:t&&!Km.isCompressionEnabled()?new iE:this.instance=new Zm}}return i})(),Jh=(()=>{class i{constructor(t){this.qf=t}create(t,e,s,n){let o=e?{compressor:this.qf.compress,compressionOutputType:e,compressionType:this.qf.algorithm}:void 0;return new yn({endpoint:t,compressionOpts:o,recoveryStorage:s,disableRequestCounting:n})}}return i})(),sE=(()=>{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=Mf(()=>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})();function rE(){csSetTimeout(()=>{let i=0;typeof CompressionStream!="undefined"&&(i|=1),typeof TransformStream!="undefined"&&(i|=2),typeof performance!="undefined"&&typeof performance.now=="function"&&(i|=4),typeof Worker!="undefined"&&(i|=8),typeof scheduler!="undefined"&&(typeof scheduler.yield=="function"&&(i|=16),typeof scheduler.postTask=="function"&&(i|=32)),typeof _w!="undefined"&&(i|=64),$.counters.availableFeatures.set(i),Ws(csDate.now,"Date.now"),Ws(_d.querySelector,"document.querySelector"),Ws(_d.querySelectorAll,"document.querySelectorAll"),Ws(csNavigatorsendBeacon,"navigator.sendBeacon");for(let[r,...t]of aE)for(let e of t){let s=nE(r,e);s&&Ws(s,`${r.name}.${e}`)}})}function nE(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 Ws(i,r){oE(i)||$.counters.nativeOverrides.count(r,1)}function oE(i){return typeof i!="function"||/native code/.test(i.toString())}var aE=[[Node,"childNodes","parentNode","nextSibling","firstChild","nodeType","isConnected"],[csArray,"filter","map"],[Element,"shadowRoot","matches","firstElementChild"],[Event,"target"],[HTMLImageElement,"src"]],cE=(()=>{class i extends sE{constructor(t,e,s){let n=()=>{rE()},o=()=>({p:e.anonymizePII(_w.location.pathname),pid:s,v:$a().v});super(t.send.bind(t),o,n)}}return i})();function lE(i,r){let t=i.validationRate/10,e=Xi.boolean(t);if((i.environment==="staging"||e)&&!r.isInWebViewContext())try{let n=Kh.create(r.isTopWindowTracker()),c=new Jh(n).create(i.getMetricsUri(),void 0,void 0,!0),l=new Ke,u=new cE(c,l,i.projectId);$.setService(u)}catch(n){z.warn(`Error initializing metrics: ${n.message}`)}}var Qh=yh("InitLogging");function uE(i,r,t){return z.computeIsActive(i.validationRate),Pf(z),rh(z),z.setStrategy(t.createStrategy()),lE(i,r),!0}var hE=Ce(Qh,uE,[Dt,Ps,$h]),ic=(()=>{let i=class{constructor(t,e,s,n){this.E=t,this.w=e,this.z_=s,this.Rr=n}setup(){var t;this.w.addListener(this.z_),!((t=this.E.experimental)===null||t===void 0)&&t.checkPIIMigration&&this.Rr&&this.w.addListener(this.Rr)}};return i.$deps=[Dt,Ki,fl,Qs],i=B([Sr({imports:[Im],providers:[Ce(vh,()=>_w.CS_CONF),Dt,Ps,Ce(Ts,()=>new Ts),Ce(vn,r=>new vn(r),[Ke]),Ce(ma,r=>new ma([Pm.UXA],r),[Qs]),Ce(Qs,r=>{var t;return!((t=r.experimental)===null||t===void 0)&&t.checkPIIMigration?new Qs:void 0},[Dt]),Ke,Ln,Za,ai,tc,Er,Uh,Ki,fl,Xh,qh,Fh,Gh,Qa,$h,hE]})],i),i})(),wn=".",sc="__DOT__",dE=/^(([a-z0-9\-])+(\.[0-9]+){6})(\.[0-1])?(\.\b(x|[0-9a-fA-F]{12})\b)?$/,Zh="x";function fE(i){let[r,t,e,s,n,o,c,l,u]=yE(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===Zh?null:u}}function pE(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:Zh],csString),mE),wn)}function gE(i){return dE.test(i)}function mE(i){return csString.prototype.replace.call(i,/\./g,sc)}function EE(i){return csString.prototype.replace.call(i,new csRegExp(sc,"g"),wn)}function yE(i){return csString.prototype.indexOf.call(i,sc)!==-1?csArray.prototype.map.call(csString.prototype.split.call(i,wn),EE):csString.prototype.split.call(i,wn)}var ze="_cs_id",An=(()=>{class i{constructor(t,e,s){this.E=t,this.L=e,this.mt=s}onCookieSet(t){this.ti=t}onCookieRemoved(t){this.Us=t}get(){let t;return this.E.cookielessTrackingEnabled?t=this.mt.getItem(ze):t=this.L.get(ze),t?(gE(t)||z.warn(`Invalid visitor string: ${t}`),fE(t)):null}set(t){var e;let s=pE(t);if(this.E.cookielessTrackingEnabled)this.mt.setItem(ze,s);else{let n=new Date(t.expires);this.L.set(ze,s,n),(e=this.ti)===null||e===void 0||e.call(this,ze,s,n)}}remove(){var t;this.E.cookielessTrackingEnabled?this.mt.removeItem(ze):(this.L.delete(ze),(t=this.Us)===null||t===void 0||t.call(this,ze))}handleSubdomainChange(){if(this.E.cookielessTrackingEnabled)return;let t=this.get();t&&(t.allowSubdomains=this.E.allowSubdomains,this.E.allowSubdomains?this.L.delete(ze,ai.CURRENT_DOMAIN):this.L.delete(ze,this.L.getRootDomain()),this.set(t))}}return i.$deps=[Dt,ai,Er],i})(),j=(()=>{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 td(i){return i===j.ANALYTICS_ONLY_RECORDING_PENDING_RULES_TARGETING}function rc(i){return i===j.RECORDING_GLOBAL_SAMPLING||i===j.RECORDING_RULES_TARGETING||i===j.RECORDING_URL_SAMPLING||i===j.RECORDING_ETR_SAMPLING}var SE={[j.RECORDING_RULES_TARGETING]:j.RECORDING_GLOBAL_SAMPLING},Ie=(()=>{let i;return function(r){r.ETR_OFF="0",r.ETR_ON="1"}(i||(i={})),i})(),Ai=(()=>{let i;return function(r){r.ETR_LEGACY="0",r.ETR_SESSION="1",r.ETR_PAGE="2"}(i||(i={})),i})(),he=(()=>{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})(),re=(()=>{let i;return function(r){r.UNNECESSARY="U",r.NOT_EXPRESSED="N",r.WITHDRAWN="W",r.GRANTED="G"}(i||(i={})),i})(),ed=/^(\d+\.[01356789BWXP](\.[01UNWG])?(\.[39])?)(\.\d+)?$/,id=".";function _E(i){return csArray.prototype.join.call([i.pageNumber,i.collectState,i.replayConsent,i.etrStatus],id)}function vE(i){if(!Tn(i))return null;let r=rn(i);return r!==null?sd(r):null}function sd(i){var r,t,e;let[s,n,o,c]=csString.prototype.split.call(i,id);return n==="B"||n==="W"?{collectState:j.ANALYTICS_ONLY,replayConsent:n==="B"?re.NOT_EXPRESSED:re.WITHDRAWN,etrStatus:(r=c)!==null&&r!==void 0?r:he.ETR_NOT_SAVED_SESSION,pageNumber:parseInt(s,10)}:{collectState:n,replayConsent:(t=o)!==null&&t!==void 0?t:re.UNNECESSARY,etrStatus:(e=c)!==null&&e!==void 0?e:he.ETR_NOT_SAVED_SESSION,pageNumber:parseInt(s,10)}}function Tn(i){return ed.test(i)}function rn(i){if(!i)return null;let r=(()=>{var t;return(t=csString.prototype.match.call(i,ed))===null||t===void 0?void 0:t[1]})();return r!=null?r:null}var Oe="_cs_s",bn=18e5,zr=".",wE=13,qr=(()=>{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})(),Rn=(()=>{class i{constructor(t,e,s){this.E=t,this.L=e,this.mt=s,this.St=null,this.Ll=!1}get(t){let e=this.getRawSession(t);return this.isValid(e)?sd(e):null}getRawSession(t){if(t){let h=this.wa();return rn(h)}let{sessionString:e,status:s}=this.q_(),n=rn(e);if(s!==qr.EXPIRED)return n;if(this.E.cookielessTrackingEnabled)return null;let o=this.wa();if(!o)return null;let c=o.split(zr);if(!i.Ff(c))return o;let l=c[c.length-1],u=parseInt(l,10);return isNaN(u)||this.F_(u),n}onCookieSet(t){this.ti=t}onCookieRemoved(t){this.Us=t}set(t,e=bn){let s=U.now()+e,n=this.W_(t,s);this.Y_(n,s),this.Wf(n,e)}extendSessionExpiry(t=bn){let e=this.wa();if(e===null||!Tn(e))return!1;let s=U.now()+t,n=`${rn(e)}${zr}${s}`;return this.Wf(n,t),this.St&&(this.St.expires=s),!0}W_(t,e){return`${_E(t)}${zr}${e}`}Wf(t,e){var s;this.E.cookielessTrackingEnabled?this.mt.setItem(Oe,t):(this.L.set(Oe,t,e),(s=this.ti)===null||s===void 0||s.call(this,Oe,t,e))}remove(){var t;this.E.cookielessTrackingEnabled?this.mt.removeItem(Oe):(this.L.delete(Oe),(t=this.Us)===null||t===void 0||t.call(this,Oe)),this.X_()}handleSubdomainChange(){if(this.E.cookielessTrackingEnabled)return;let t=this.get(!0);t&&(this.E.allowSubdomains?this.L.delete(Oe,ai.CURRENT_DOMAIN):this.L.delete(Oe,this.L.getRootDomain()),this.set(t))}isValid(t){return t!==null&&Tn(t)}Y_(t,e){this.St={sessionString:t,expires:e}}q_(){return this.St?this.St&&U.now()<=this.St.expires?{sessionString:this.St.sessionString,status:qr.FOUND}:{sessionString:this.St.sessionString,status:qr.EXPIRED}:{sessionString:this.wa(),status:qr.NOT_FOUND}}X_(){this.St=null}F_(t){this.St&&(this.St.expires=t,this.Ll=!0)}isCacheRefreshed(){return this.Ll}resetCacheRefreshed(){this.Ll=!1}wa(){if(this.E.cookielessTrackingEnabled){let e=this.mt.getItem(Oe);return!e||this.Yf(e)?null:e}let t=this.L.get(Oe);return!t||this.Yf(t)?null:t}Yf(t){let e=t.split(zr);if(!i.Ff(e))return!1;let s=parseInt(e[e.length-1],10);return!isNaN(s)&&U.now()>s}static Ff(t){return t[t.length-1].length===wE}}return i.$deps=[Dt,ai,Er],i})(),bs=(()=>{class i{constructor(t){this.configuration=t}}return i})(),nc=60*1e3,AE=60*nc,TE=4*AE-nc,fs=(()=>{let i;return function(r){r[r.NO=0]="NO",r[r.WITHDRAWN=1]="WITHDRAWN",r[r.GRANTED=2]="GRANTED"}(i||(i={})),i})(),Es=(()=>{class i{constructor(t,e,s,n){this.ge=t,this.Ee=e,this.w=s,this.E=n,this.Ln=null,this.xl=0,this.xn=fs.NO}setDynamicVariablesService(t){this.K_=t}createOrUpdateSession(){this.Vl(),this.J_=U.now(),this.xl=0;let t=this.Xf();t===null?(t=this.Q_(),this.Aa(t),this.w.emitSessionCreated()):(t=this.Ee.sanitizeSessionCollectState(t),this.Z_(t),t.collectState=this.Ee.getEligibleCollectState(t)),this.setSession(t)}grantReplayRecording(t){t.replayConsent=re.GRANTED,t.collectState=this.Ee.computeInitialCollectStateFromRecordingConsentGranted(t),this.setSession(t)}grantReplayRecordingBeforeSessionStart(){this.xn=fs.GRANTED}withdrawnReplayRecording(t){t.replayConsent=re.WITHDRAWN,this.setSession(t)}withdrawnReplayRecordingBeforeSessionStart(){this.xn=fs.WITHDRAWN}Aa(t){this.xn===fs.WITHDRAWN?t.replayConsent=re.WITHDRAWN:this.xn===fs.GRANTED?(t.replayConsent=re.GRANTED,t.collectState=this.Ee.computeInitialCollectStateFromRecordingConsentGranted(t)):t.collectState=this.Ee.computeInitialCollectState(t),this.xn=fs.NO}Q_(){return{pageNumber:1,collectState:this.Ee.getInitialCollectState(),replayConsent:this.E.replayConsentRequiredForSession?re.NOT_EXPRESSED:re.UNNECESSARY,etrStatus:he.ETR_NOT_SAVED_SESSION}}Z_(t){t.pageNumber+=1}isReplayRecorded(){let t=this.getSession();return!!t&&this.Ee.isReplayRecorded(t)}getRequestParameters(){let t={},e=this.getSession();return e!==null&&(t.pn=`${e.pageNumber}`),t}getSession(){return this.ge.get()}Xf(){return this.ge.get(!0)}doesSessionExist(){return this.ge.get()!==null}setSession(t){this.ge.set(t),this.w.emitSessionRefreshed()}refreshSession(){let t=this.Xf();t&&this.setSession(t)}removeSession(){this.ge.remove(),this.w.emitSessionRemoved()}getRecordingTypes(){let t=this.getSession(),e=this.iv(t);return this.sv(e)}sv(t){let e=[];return t.forEach(s=>{if(rc(s)){let n=SE[s]||s;e.push(n)}}),e}iv(t){let e=[];return(t==null?void 0:t.collectState)!==void 0&&(e.push(t.collectState),this.E.malkaEtrEnabled&&e.push(j.RECORDING_ETR_SAMPLING)),e}updateCollectState(t){let e=this.getSession();e!==null&&(e.collectState=t,this.setSession(e))}hasValidSession(){let t=this.ge.getRawSession();return this.ge.isValid(t)}handleSubdomainChange(){this.ge.handleSubdomainChange()}pollCacheRefreshEvent(t=!0){let e=this.ge.isCacheRefreshed();return e&&t&&this.ge.resetCacheRefreshed(),e}extendSessionPeriodically(){this.Ln||this.Kf()}extendSession(){return this.ge.extendSessionExpiry()?(this.w.emitSessionRefreshed(),!0):(z.warn("extendSession is trying to extend an expired session"),this.Vl(),!1)}Kf(){if(this.rv()){this.Vl();return}this.extendSession()&&(this.nv(),this.ov())}ov(){this.Ln=_w.setTimeout(()=>{this.Kf()},bn-nc)}rv(){return TE-(U.now()+bn-this.J_)<0}Vl(){this.Ln&&(_w.clearTimeout(this.Ln),this.Ln=null)}nv(){this.xl+=1,this.K_.trackDynamicVariable("session_expiry_update",this.xl)}}return i.$deps=[Rn,bs,Ki,Dt],i})(),bE=(()=>{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 csDate().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.av=10*1e3}createOrUpdateVisitor(){var t;let e=this.getVisitor();e===null&&(e=this.cv(),(t=this.R)===null||t===void 0||t.removeSession()),this.lv(e),this.setVisitor(e)}cv(){return{id:bE.generate(),visitsCount:0,appliedTrackingDraw:this.E.lastTrackingDraw,creationTimestamp:Wc(),lastVisitTimestamp:0,hitTimestamp:0,expires:U.now()+this.E.visitorCookieTimeout,allowSubdomains:this.E.allowSubdomains,identityPrint:null}}lv(t){let e=Wc();this.R&&!this.R.doesSessionExist()&&(t.visitsCount+=1,t.lastVisitTimestamp=e),t.hitTimestamp=e,t.appliedTrackingDraw=this.E.lastTrackingDraw,this.Jf=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.Qf(),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.Jf===void 0?!1:t.visitsCount!==this.Jf}uv(){return!ht(this.Zf)||U.now()-this.Zf>this.av}renewVisitor(){this.uv()?(this.Zf=U.now(),this.Qf(),this.w.emitAfterVisitorRenewal()):z.warn("session:start:newVisitor is trying to renew visitor under time limit")}Qf(){this.w.emitBeforeVisitorRenewal(),this.removeVisitor()}}return i.$deps=[Dt,An,Ki,{__optional:Es}],i})(),ei=(()=>{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})(),qe=(()=>{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})(),xi=(()=>{let i;return function(r){r.replayRecordingUnmaskedUrlRegex="replayRecordingUnmaskedUrlRegex",r.replayRecordingMaskedUrlRegex="replayRecordingMaskedUrlRegex",r.replayRecordingUnmaskedUrlRegexRules="replayRecordingUnmaskedUrlRegexRules",r.replayRecordingMaskedUrlRegexRules="replayRecordingMaskedUrlRegexRules"}(i||(i={})),i})(),er=(()=>{class i{constructor(){this.Ul=[]}setRegexRules(t){this.Ul=csArray.prototype.filter.call(csArray.prototype.map.call(t,e=>this.hv(e)),e=>e!==null)}evaluateUrl(t){return csArray.prototype.some.call(this.Ul,e=>this.tp(t,e))}getMatchingRules(t){return csArray.prototype.map.call(csArray.prototype.filter.call(this.Ul,e=>this.tp(t,e)),e=>e.ruleInput)}tp(t,e){var s,n;let o=this.fv(t,e);return!this.pv(e)||!this.gv(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)))}pv(t){let e=new csDate,s=t.startDate&&t.startDate>e,n=t.endDate&&t.endDate{let i;return function(r){function t(n){return n.replayConsentRequiredForSession}r.isReplayConsentNeeded=t;function e(n){return n.replayConsent===re.NOT_EXPRESSED||n.replayConsent===re.WITHDRAWN}r.isRecordingBlockedByConsent=e;function s(n){return n.replayConsent===re.WITHDRAWN}r.isRecordingWithDrawn=s}(i||(i={})),i})(),ur=(()=>{class i{static isRecordingSupported(){return"MutationObserver"in _w&&"visibilityState"in _d}}return i})(),RE=(()=>{class i extends bs{constructor(t,e,s,n,o){super(t),this.configuration=t,this.w=e,this.Vn=s,this.A=n,this.Hl=o,this.jl=!1}refreshQuota(){}canCollect(t){return!0}init(){this.configuration.malkaUrlEnabled&&this.configuration.hasRecordingUrlRules()&&(this.jl=!0,this.Hl.setRegexRules(this.configuration.recordingUrlRules))}sanitizeSessionCollectState(t){return(t.collectState===j.QUOTA_REACHED||t.collectState===j.RECORDING_RULES_TARGETING)&&(t.collectState=j.ANALYTICS_ONLY),t}computeInitialCollectState(){return this.Aa()}computeInitialCollectStateFromRecordingConsentGranted(){return this.Aa()}Aa(){if(!ur.isRecordingSupported())return j.ANALYTICS_ONLY;let t=j.ANALYTICS_ONLY,e=Ie.ETR_OFF;return Xi.percentage(){class i extends bs{constructor(t,e,s){super(t),this.configuration=t,this.Un=e,this.w=s,this.Ev=j.RECORDING_GLOBAL_SAMPLING}refreshQuota(t){this.ip=t,this.Hn=void 0,this.yv()}init(t){this.Sv();let e=Ot.get(Oe);if(e!==null&&Tn(e)){let s=vE(e);t(this.canCollect(s),s==null?void 0:s.collectState)}else this.refreshQuota(s=>{t(s!==j.QUOTA_REACHED,s)})}sanitizeSessionCollectState(t){return t}canCollect(t){return t!==null&&t.collectState!==j.QUOTA_REACHED}computeInitialCollectState(t){return this.Hn?(this.w.emitCollectStateChange(this.Hn,this.configuration.malkaEtrEnabled?Ie.ETR_ON:Ie.ETR_OFF),this.Hn):(z.warn("Quota file error computeInitialCollectState() called before quota answered"),j.QUOTA_REACHED)}getEligibleCollectState(t){return t.collectState===j.QUOTA_REACHED?j.QUOTA_REACHED:!ur.isRecordingSupported()&&this.isReplayRecorded(t)?j.ANALYTICS_ONLY:t.collectState===j.RECORDING_RULES_TARGETING?j.RECORDING_RULES_TARGETING:t.collectState===j.ANALYTICS_ONLY_RULES_TARGETING?j.ANALYTICS_ONLY_RULES_TARGETING:t.collectState===j.ANALYTICS_ONLY_RECORDING_PENDING_RULES_TARGETING?j.ANALYTICS_ONLY_RECORDING_PENDING_RULES_TARGETING:t.collectState===j.RECORDING_GLOBAL_SAMPLING?j.RECORDING_GLOBAL_SAMPLING:j.ANALYTICS_ONLY}isReplayRecorded(t){return Gi.isRecordingBlockedByConsent(t)?!1:t.collectState===j.RECORDING_GLOBAL_SAMPLING||t.collectState===j.RECORDING_RULES_TARGETING}getInitialCollectState(){return this.Hn||j.QUOTA_REACHED}computeInitialCollectStateFromRecordingConsentGranted(t){return this.computeInitialCollectState(t)}Bn(t){this.Hn=t,this.ip&&this.ip(t)}Sv(){this.Un.onError(t=>this.quotaServiceErrorHandler(`HTTP:${t.status} - fetching quota file for pid: ${this.configuration.projectId}`)),this.Un.onTimeout(()=>this.quotaServiceErrorHandler("timeout")),this.Un.onLoad(t=>this.quotaFileHandler(t))}yv(){this.Un.isInProgress()||this.Un.send()}quotaFileHandler(t){var e;if(!(!((e=t==null?void 0:t.quotas)===null||e===void 0)&&e.length)){this.quotaServiceErrorHandler("Quota types missing from config file");return}this._v(t)}quotaServiceErrorHandler(t){let e=`Quota error - ${t}`;z.warn(e),this.Bn(this.Ev)}_v(t){let e=!1,s=!1;for(let n of t.quotas)n.quotaType==="ANALYTICS"&&n.value?e=!0:n.quotaType==="RECORDING"&&n.value&&Xi.boolean(Math.round(n.value*100))&&(s=!0);!e&&s?this.quotaServiceErrorHandler(`Quota types impossible: replay without analytics - ${csJSON.stringify(t)}`):e&&s?ur.isRecordingSupported()?this.Bn(j.RECORDING_GLOBAL_SAMPLING):this.Bn(j.ANALYTICS_ONLY):e&&!s?this.Bn(j.ANALYTICS_ONLY):this.Bn(j.QUOTA_REACHED)}}return B([L("Quota File: quotaFileHandler")],i.prototype,"quotaFileHandler",null),B([L("Quota File: onerror")],i.prototype,"quotaServiceErrorHandler",null),i})(),Do="_cs_inc",nn=(()=>{class i{constructor(t,e){this.zt=t,this.L=e}isForceIncluded(){return this.vv()||this.wv()}isForceReplayRecorded(){return this.Av(j.RECORDING_GLOBAL_SAMPLING)}vv(){return this.L.get(Do)!==null}Av(t){return this.L.get(Do)===t}wv(){return this.zt.href.indexOf(Do)>0}}return i.$deps=[Location,ai],i})(),IE=i=>{let r=i*60*1e3;return`${Math.floor(csDate.now()/r)}`},PE=5e3,NE=(()=>{class i extends ph{constructor(t,e,s){super(t,e),this.Cr=null,this.Tv=(s==null?void 0:s.type)||"json",this.sp=s==null?void 0:s.cacheMinutes,this.ga=s==null?void 0:s.timeout}onLoad(t){this.vr=t}onError(t){this.Tn=t}onTimeout(t,e){this.Ds=t,this.ga=e}send(){csArray.prototype.forEach.call(this.beforeRequestCallbacks,n=>n());let t=this.retrieveParameters();this.nl(t);let e=cr.toQuery(t),s=`${this.domainUri}${this.path?`/${this.path}`:""}?${e}`;this.bv(s,this.Tv)}abort(){this.Cr&&(this.Cr.abort(),this.Cr=null)}isInProgress(){return this.Cr!==null}bv(t,e){var s;let n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType=e,n.onerror=()=>{var o;return(o=this.Tn)===null||o===void 0?void 0:o.call(this,n)},n.ontimeout=()=>{var o;return(o=this.Ds)===null||o===void 0?void 0:o.call(this,n)},n.onload=()=>{var o,c;n.status>=200&&n.status<400?((o=this.vr)===null||o===void 0||o.call(this,this.Rv(n,e)?n.response:n.responseText),csArray.prototype.forEach.call(this.afterRequestCallbacks,l=>l())):(c=this.Tn)===null||c===void 0||c.call(this,n)},n.onloadend=()=>{this.Cr=null},n.timeout=(s=this.ga)!==null&&s!==void 0?s:PE,this.Cr=n,n.send()}Rv(t,e){let s=t.getResponseHeader("Content-Type");return s===null?e==="json":csString.prototype.indexOf.call(csString.prototype.toLowerCase.call(s),"json")>0}nl(t){let e;this.sp?e=`${IE(this.sp)}`:e=csString.prototype.slice.call(`${Math.random()}`,2,8),t.r=e}}return i})();function xn(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:pt,n=[...p],e==="trailing")return o||(o=pt.csSetTimeout(u,t)),l;let y=U.now(),m=t-(y-c);return m<=0||m>t?(c=y,l=i.apply(s,n),o?(pt.csClearTimeout(o),o=null):n=[]):o||(o=pt.csSetTimeout(u,m)),l};return h.cancel=()=>{o&&(pt.csClearTimeout(o),c=0,o=null,n=[])},h.flushPending=()=>{o&&(pt.csClearTimeout(o),u())},h}var Vn=i=>(r,t,e)=>{let s=e.value,n=new WeakMap,o=c=>{let l=n.get(c);return l||(l=xn(s.bind(c),i),n.set(c,l)),l};e.value=function(...c){if(typeof this!="object"&&typeof this!="function"||this===null){at.warn("@Throttle decorated method called without a valid instance context");return}return o(this)(...c)}},OE=60*1e3,ME=30*1e3,Sa=(()=>{class i{constructor(t,e){this.R=t,this.I=e,this.Bl=!1,this.Cv=xn(()=>this.R.refreshSession(),ME)}onSessionExpired(t){this.Iv=t}isSessionValid(){return this.Bl?!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.Cv():this.Pv()&&(this.rp=U.now(),this.renewSession(!1))}renewSession(t){this.Bl=!0,this.Iv(t),this.Bl=!1}Pv(){return!_d.hidden&&(!ht(this.rp)||U.now()-this.rp>OE)}}return i.$deps=[Es,tr],i})(),DE=(()=>{let i=class{constructor(t,e,s){this.Tr=t,this.I=e,this.R=s}setup(){this.Tr.setContext(this.I,this.R)}};return i.$deps=[Qa,tr,Es],i=B([Sr({imports:[ic],providers:[Rn,An,nn,Sa,Ce(er,()=>new er),Es,tr,Ce(bs,(r,t,e,s,n)=>{if(r.isQuotaEnabled()&&r.collectionEnabled){let c=new NE(r.getSettingsFileUri(),"",{type:"json",cacheMinutes:15});return new CE(r,c,t)}let o=new RE(r,t,e,s,n);return o.init(),o},[Dt,Ki,nn,Ln,er])],exports:[Rn,Es,An,tr,Sa,bs,nn]})],i),i})();function kE(){let i=new MutationObserver(r=>{r.forEach(t=>{dt(t.removedNodes,e=>{e instanceof HTMLElement&&e.tagName==="CS-NATIVE-FRAME-HOLDER"&&($.counters.pureWindowState.count("iframe-deletion"),at.warn(" deleted"),i.disconnect())})})});i.observe(_d.body,{childList:!0})}function vl(i){return typeof i!="function"?!1:i.toString().indexOf("[native code]")!==-1}function LE(){(!vl(MutationObserver)||!vl(MutationObserver.prototype.observe))&&$.counters.patchedNativeFunctions.count("MutationObserver")}function xE(){try{_w.CSPureWindow&&kE(),LE()}catch{}}var VE="spki",wl="RSA-OAEP",UE="SHA-256",Al="AES-CTR",HE="SHA-1",Tl=190,ir=(()=>{let i;return function(r){var t;let e=!1,s=null,n,o=typeof TextEncoder!="undefined"?new TextEncoder:null,c;r.crypto=(t=pt.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 O,N;return((N=(O=pt.self.crypto)===null||O===void 0?void 0:O.subtle)===null||N===void 0?void 0:N.encrypt)!=null&&pt.self.CryptoKey!=null}r.isSupported=h;async function p(O){n=r.crypto.importKey(VE,ja(O),{name:wl,hash:UE},!1,["encrypt"]).catch(()=>(e=!0,null)),s=await n,n=void 0,s||at.warn(`Fail to import public key '${O}'`)}r.importKey=p;async function y(O){if(!h()||e)return null;await n;let N=Ha(O);N.byteLength>Tl&&(N=N.slice(0,Tl));try{let W=await r.crypto.encrypt({name:wl},s,N);return zc(W)}catch{return null}}r.asymmetricEncrypt=y;async function m(O,N){if(!h()||e)return null;let W={counter:N.initializationVector,name:Al,length:64},q=o.encode(O);try{let gt=await r.crypto.encrypt(W,N.cryptoKey,q);return zc(gt)}catch{return null}}r.symmetricEncrypt=m;async function _(O){let N=await A(O);if(!N)throw new Error("Export secret failed");let W=await y(N);if(!W)throw new Error("Encrypt secret failed");return W}r.encryptSecret=_;async function A(O){var N;if(!h())return null;try{return(N=(await r.crypto.exportKey("jwk",O)).k)!==null&&N!==void 0?N:null}catch{return null}}async function D(){if(!h()||e)return null;try{return{cryptoKey:await r.crypto.generateKey({name:Al,length:128},!0,["encrypt","decrypt"]),initializationVector:pt.crypto.getRandomValues(new Uint8Array(16))}}catch{return null}}r.generateSymmetricKey=D;function I(O){c=O}r.setDigestSalt=I;async function C(O){O=csString.prototype.toLocaleLowerCase.call(csString.prototype.trim.call(O)),c&&(O=`${O}:${c}`);let N=o.encode(O);try{let W=await r.crypto.digest(HE,N);return na(W)}catch{return null}}r.digest=C;function x(){return pt.crypto.subtle.generateKey({name:"RSA-OAEP",modulusLength:2048,publicExponent:new Uint8Array([1,0,1]),hash:"SHA-256"},!0,["encrypt","decrypt"])}r.generateKeyPair=x}(i||(i={})),i})();var bl=1/0,{toString:jE}=Object.prototype;function BE(i){return i==null?i===void 0?"[object Undefined]":"[object Null]":jE.call(i)}var oc=i=>typeof i=="symbol"||typeof i=="object"&&i!=null&&BE(i)==="[object Symbol]";function rd(i){if(typeof i=="string"||oc(i))return i;let r=`${i}`;return typeof i=="number"?r==="0"&&1/i===-bl?"-0":r:i instanceof Number&&r==="0"&&1/i.valueOf()===-bl?"-0":r}var $E=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,GE=/^\w*$/;function zE(i,r){return csArray.isArray(i)?!1:typeof i=="number"||typeof i=="boolean"||i==null||oc(i)?!0:GE.test(i)||!$E.test(i)||r!=null&&i in Object(r)}function ac(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(ac.Cache||Map),t}ac.Cache=Map;var qE=500;function FE(i){let r=ac(i,t=>{let{cache:e}=r;return e.size===qE&&e.clear(),t});return r}var WE=46,YE=/\\(\\)?/g,XE=csRegExp(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g"),nd=FE(i=>{let r=[];return csString.prototype.charCodeAt.call(i,0)===WE&&csArray.prototype.push.call(r,""),csString.prototype.replace.call(i,XE,(t,e,s,n)=>{let o=t;return s?o=csString.prototype.replace.call(n,YE,"$1"):e&&(o=csString.prototype.trim.call(e)),csArray.prototype.push.call(r,o),t}),r});function KE(i,r){return csArray.isArray(i)?i:zE(i,r)?[i]:nd(i)}function JE(i,r){let t=KE(r,i),e=i,s=0,{length:n}=t;for(;e!=null&&s"']/g,sy=csRegExp(cd.source),ry=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Fr=/($^)/,ny={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},oy=/[()=,{}[\]/\s]/,ay=/<%-([\s\S]+?)%>/g,cy=/<%([\s\S]+?)%>/g,ld=/<%=([\s\S]+?)%>/g,{hasOwnProperty:Rl}=Object.prototype,ly="Invalid `variable` option passed into `_.template`";function uy(i){return`\\${ny[i]}`}var hy={"&":"&","<":"<",">":">",'"':""","'":"'"},dy={escape:ay,evaluate:cy,interpolate:ld,variable:"",imports:{_:{template:on,escape(i){return i&&sy.test(i)?csString.prototype.replace.call(i,cd,r=>hy[r]):i!=null?i:""}}}};function on(i,r){let t={...dy,...r},e=Object.keys(t.imports||{}),s=csArray.prototype.map.call(e,_=>t==null?void 0:t.imports[_]),n,o,c=0,l=t.interpolate||Fr,u="__p += '",h=csRegExp(`${(t.escape||Fr).source}|${l.source}|${(l===ld?ry:Fr).source}|${(t.evaluate||Fr).source}|$`,"g"),p=`//# sourceURL=${Rl.call(t,"sourceURL")?csString.prototype.replace.call(`${t.sourceURL}`,/\s/g," "):void 0} `;i==null||csString.prototype.replace.call(i,h,(_,A,D,I,C,x)=>{let O=D||I;return u+=csString.prototype.replace.call(csString.prototype.slice.call(i,c,x),iy,uy),A&&(n=!0,u+=`' + __e(${A}) + '`),C&&(o=!0,u+=`'; ${C}; __p += '`),O&&(u+=`' + ((__t = (${O})) == null ? '' : __t) + '`),c=x+_.length,_}),u+=`'; `;let y=Rl.call(t,"variable")&&t.variable;if(!y)u=`with (obj) { ${u} } `;else if(oy.test(y))throw new Error(ly);u=csString.prototype.replace.call(csString.prototype.replace.call(o?csString.prototype.replace.call(u,ZE,""):u,ty,"$1"),ey,"$1;"),u=`function(${y||"obj"}) { ${y?"":`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(_){m=_}if(m.source=u,m instanceof Error)throw m;return m}var fy=/^(\s*("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')\s*,?)+$/,py=/<%[\s\S]+?%>|<%-[\s\S]+?%>|<%=[\s\S]+?%>|\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/,gy=/^document\.querySelector\(("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')\)\.(textContent|value)$/;function Cl(i){if(!fy.test(i)||py.test(i))throw new Error("whitelisted function is wrongly used")}var Il={"window.location.hash.replace(":(i,r)=>{let t=csString.prototype.substring.call(i,29,i.length-1);return Cl(t),on(`\${${i}}`)(r)},"window.sessionStorage.getItem(":(i,r)=>{let t=csString.prototype.substring.call(i,30,i.length-1);return Cl(t),on(`\${${i}}`)(r)},"document.querySelector(":(i,r)=>{if(gy.test(i))return on(`\${${i}}`)(r)},"new Date().getTime()":(i,r)=>new csDate().getTime().toString()};function my(i){let r=gr(Object.keys(Il),t=>Wt(i,t));if(r)return Il[r]}function Ey(i){return Wt(i,"'")&&Is(i,"'")}var yy=/\$\{([\s\S]+?)\}/g,Sy=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=ad(i,o);if(c===void 0)if(Ey(o))c=csString.prototype.substring.call(o,1,o.length-1);else{let l=my(o);if(l&&(c=l(o,i)),c===void 0)throw new Error("undefined not allowed")}s+=c}),s};function Rs(i,r){try{return csString.prototype.replace.call(i,yy,Sy(r))}catch{return null}}function _a(i,r){let t={};for(let e of Object.keys(i)){let s=i[e];if(M(s)){let n=Rs(s,r);if(n===null)return null;t[e]=n}else t[e]=s}return t}function va(i,r){let t=csArray.prototype.join.call(csArray.prototype.filter.call(csArray.prototype.map.call(csString.prototype.split.call(i,","),e=>Rs(e,r)),e=>e!==null&&Qt(e)),",");return Qt(t)?t:null}var ko=(()=>{let i;return function(r){r.AND="AND",r.OR="OR"}(i||(i={})),i})(),Me=(()=>{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 ud(i,r){return _y(i.operator,Ty(i.args,r))}function _y(i,r){switch(i){case Me.EXIST:case Me.NOT_EXIST:return vy(i,r);default:return wy(i,r)}}function vy(i,r){let[t]=r;if(!Qt(t))return!1;switch(i){case Me.EXIST:return _w.csquerySelector[_d.nodeType].call(_d,t)!==null;case Me.NOT_EXIST:return _w.csquerySelector[_d.nodeType].call(_d,t)===null;default:return!1}}function wy(i,r){let[t,e]=r;if(!(i in ko)&&!(M(t)&&M(e)))return!1;switch(i){case ko.AND:return!!csArray.prototype.reduce.call(r,(n,o)=>n&&o);case ko.OR:return!!csArray.prototype.reduce.call(r,(n,o)=>n||o);case Me.STARTS_WITH:return Wt(t,e);case Me.EQUALS:return t===e;case Me.NOT_EQUALS:return t!==e;case Me.CONTAINS:return csString.prototype.indexOf.call(t,e)>-1;case Me.NOT_CONTAINS:return csString.prototype.indexOf.call(t,e)===-1;case Me.MATCHES:{let n=Pl(e);return n!==null&&n.test(t)}case Me.NOT_MATCHES:{let n=Pl(e);return n!==null&&!n.test(t)}default:return!1}}function Ay(i){return!!(i&&i.operator&&i.args)}function Ty(i,r){return csArray.prototype.map.call(i,t=>Ay(t)?ud(t,r):M(t)?Rs(t,r):t)}function Pl(i){let r=/^\/(.*)\/([gimy]*)$/.exec(i),t=null;if(r){let[,e,s]=r;try{t=new csRegExp(e,s)}catch{}}else try{t=new csRegExp(i)}catch{}return t}var by=["api-errors:maskUrl"],Bt=(()=>{class i{constructor(t,e){this.commandsService=t,this.args=e}}return i})(),Ar=(()=>{class i extends Bt{}return i})(),Ry=(()=>{class i extends Bt{validateArgs(t){return rt(t)?M(t.url):!1}execute(t){this.commandsService.applyFromImplementation(by[0],[t.url],"ApiErrorsMaskUrlTemplate")}}return i})(),hd=["trackPageview"],wa=["setPath"],Aa=["setQuery"],Nl=["referrer:maskUrl"],Cy=["referrer:removeQueryString"],Iy=["referrer:keepQueryString"];function cc(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 lc(i){switch(i==null?void 0:i[0]){case"on next pageview only":return{lifespan:"onNextPageviewOnly"};default:return null}}var dd=(()=>{class i extends Bt{validateArgs(t){if(rt(t)){let e=ht(t.path)?M(t.path):!0,s=ht(t.decodeURI)?M(t.decodeURI):!0,n=ht(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=cc(t.decodeURI),n=lc(t.lifespan),o={...s,...n};Object.keys(o).length&&e.push(o),this.$n(e)}}$n(t){this.commandsService.applyFromImplementation(hd[0],t,"ArtificialPageviewTemplate")}}return i})(),fd=["excludeURLforReplay"],Lo=(()=>{let i;return function(r){r.SessionReplay="SR",r.None=""}(i||(i={})),i})(),Py=".^",pd=".*",Ny=(()=>{class i{constructor(t){this.A=t,this.$l=new csRegExp(`${Py}`)}setExcludeUrlForSessionReplay(t){try{this.$l=new csRegExp(t)}catch{z.warn(`excludeURLforReplay - invalid regex '${t}'`),this.$l=new csRegExp(`${pd}`)}}np(){return this.$l.test(this.A.getAnonymizedUrl())?Lo.SessionReplay:Lo.None}isUrlExcludedForSessionReplay(){return this.np()===Lo.SessionReplay}getRequestParameters(){return{ex:this.np()}}}return i})(),Oy=(()=>{class i extends Bt{constructor(){super(...arguments),this.Gl=!1}validateArgs(t){return rt(t)&&M(t.type)&&M(t.urls)&&(t.type==="allow"||t.type==="block")&&csString.prototype.trim.call(t.urls).length>0?(this.Gl=!1,!0):(z.implementation(`BlockAllowListForSRTemplate has wrong argument: ${t}, fallback to default config.`),this.Gl=!0,!0)}execute(t){let e="";this.Gl?e=pd:e=this.Dv(t.urls,t.type),this.commandsService.applyFromImplementation(fd[0],[e],"BlockAllowListForSRTemplate")}Dv(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})(),gd=["trackError"],My=(()=>{class i extends Ar{validateArgs(t){return rt(t)?M(t.message)&&csArray.isArray(t.attributes):!1}execute(t,e){let s=Rs(t.message,e);if(!s)return;let n={};for(let o of t.attributes){let c=Rs(o.value,e);c!==null&&(n[o.key]=c)}this.commandsService.applyFromImplementation(gd[0],[s,n],"CustomErrorTemplate")}}return i})(),Fe=["setCustomVariable"],Dy=(()=>{class i extends Bt{validateArgs(t){if(rt(t)){let e=od(t),s=csArray.isArray(t.scope)?ah(t.scope,n=>M(n)):!0;return e&&s&&Ht(t.index)&&M(t.name)&&M(t.value)}return!1}execute(t){this.commandsService.applyFromImplementation(Fe[0],[t.index,t.name,t.value,t.scope[0]],"CustomVariableTemplate")}}return i})(),ky=(()=>{class i extends Bt{validateArgs(t){return rt(t)?M(t.selector):!1}execute(t){this.commandsService.applyFromImplementation(Wh[0],[t.selector],"DataCsEncryptTemplate")}}return i})(),Ly="data-cs-override-id",xy=(()=>{class i extends Bt{validateArgs(t){if(rt(t)){let e=It(t.value)?M(t.value):!0;return M(t.selector)&&e}return!1}execute(t){var e;if(!Qt(t.selector))return;let s=_w.csquerySelector[_d.nodeType].call(_d,t.selector);s&&s.setAttribute(Ly,(e=t.value)!==null&&e!==void 0?e:"")}}return i})(),uc=["trackDynamicVariable"],Vy=20,Uy=(()=>{class i extends Ar{validateArgs(t){return rt(t)?od(t)&&M(t.key)&&M(t.value)&&M(t.type):!1}execute(t,e){let s=_a(t,e);s!==null?this.$n(s):this.kv(t,e)()}kv(t,e){return()=>{let s=0,n=_w.csSetInterval(()=>{s+=1;let o=_a(t,e);if(o!==null){_w.csClearInterval(n),n=void 0,s=0,this.$n(o);return}s>=Vy&&(_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(uc[0],[{key:t.key,value:e}],"DynamicVariableTemplate")}}return i})(),Hy=["ecommerce:addToCart","ec:cart:add"],hc=["ecommerce:addTransaction","ec:transaction:create"],Un=["ecommerce:addItem","ec:transaction:items:add"],dc=["ecommerce:send","ec:transaction:send"],jy=(()=>{class i extends Bt{validateArgs(t){return rt(t)?M(t.transactionId)&&Ht(t.revenue)&&M(t.currency)&&M(t.name)&&M(t.sku)&&M(t.category)&&Ht(t.price)&&Ht(t.quantity):!1}execute(t){this.Lv({id:t.transactionId,revenue:t.revenue,currency:t.currency}),this.xv({id:t.transactionId,name:t.name,sku:t.sku,category:t.category,price:t.price,quantity:t.quantity}),this.ba()}Lv(t){this.commandsService.applyFromImplementation(hc[0],[t],"EcTransactionAllTemplate")}xv(t){this.commandsService.applyFromImplementation(Un[0],[t],"EcTransactionAllTemplate")}ba(){this.commandsService.applyFromImplementation(dc[0],[],"EcTransactionAllTemplate")}}return i})(),By=(()=>{class i extends Bt{validateArgs(t){return rt(t)?M(t.id)&&Ht(t.revenue)&&M(t.currency):!1}execute(t){this.commandsService.applyFromImplementation(hc[0],[t],"EcTransactionCreateTemplate")}}return i})(),$y=(()=>{class i extends Bt{validateArgs(t){return rt(t)?M(t.id)&&M(t.name)&&M(t.sku)&&M(t.category)&&Ht(t.price)&&Ht(t.quantity):!1}execute(t){this.commandsService.applyFromImplementation(Un[0],[t],"EcTransactionItemsAddTemplate")}}return i})(),Gy=(()=>{class i extends Bt{validateArgs(t){return!!rt(t)}execute(){this.commandsService.applyFromImplementation(dc[0],[],"EcTransactionSendTemplate")}}return i})(),zy=(()=>{class i extends Ar{validateArgs(t){return rt(t)?It(t)&&M(t.selector):!1}execute(t,e){if(!It(t)||!M(t==null?void 0:t.selector))return;let s=va(t.selector,e);s!==null&&this.commandsService.applyFromImplementation(Yh[0],[s],"ElementUnmaskingTemplate")}}return i})(),fc=["trackPageEvent"],Tr=["trackEventTriggerRecording"],qy=(()=>{class i extends Bt{validateArgs(t){return rt(t)?M(t.eventName):!1}execute(t){this.commandsService.applyFromImplementation(Tr[0],[`@ETP@${t.eventName}`],"EventTriggerRecordingPageTemplate")}}return i})(),Fy=(()=>{class i extends Bt{validateArgs(t){return rt(t)?M(t.eventName):!1}execute(t){this.commandsService.applyFromImplementation(Tr[0],[`@ETS@${t.eventName}`],"EventTriggerRecordingSessionTemplate")}}return i})(),Wy=["networkRequest:maskUrls"];var Yy=(()=>{class i extends Bt{validateArgs(t){return rt(t)?M(t.maskingPattern):!1}execute(t){this.commandsService.applyFromImplementation(Wy[0],[t.maskingPattern],"NetworkRequestMaskUrlTemplate")}}return i})(),Xy=(()=>{class i extends Bt{validateArgs(t){return rt(t)?M(t.eventName):!1}execute(t){this.commandsService.applyFromImplementation(fc[0],[t.eventName],"PageEventTemplate")}}return i})(),Ky=(()=>{class i extends Ar{validateArgs(t){if(rt(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=>va(c,e)),c=>!!c),n=csArray.prototype.filter.call(csArray.prototype.map.call(t.attributes,c=>{let l=Rs(c.attrName,e),u=va(c.selector,e);return{attrName:l,selector:u}}),c=>!!c.attrName&&!!c.selector),o={PIISelectors:[...s],Attributes:[...n]};this.commandsService.applyFromImplementation(ec[0],[o],"PIIMaskingTemplate")}}return i})(),Jy=(()=>{class i extends Bt{validateArgs(t){return rt(t)?M(t.eventName):!1}execute(t){this.commandsService.applyFromImplementation(Tr[0],[`${t.eventName}`],"RecordingEventTriggerTemplate")}}return i})(),Qy=(()=>{class i extends Bt{validateArgs(t){return rt(t)?M(t.path):!1}execute(t){let e=[t.path],s=cc(t.decodeURI),n=lc(t.lifespan),o={...s,...n};Object.keys(o).length&&e.push(o),this.commandsService.applyFromImplementation(wa[0],e,"SetPathTemplate")}}return i})(),Zy=(()=>{class i extends Bt{validateArgs(t){return rt(t)?M(t.query):!1}execute(t){let e=[t.query],s=cc(t.decodeURI),n=lc(t.lifespan),o={...s,...n};Object.keys(o).length&&e.push(o),this.commandsService.applyFromImplementation(Aa[0],e,"SetQueryTemplate")}}return i})(),tS=["isRecording"],md=["replay:resourceManager:enableForOnlineResource:nextPageviewOnly","cssrm:onlineAssets:activateForNextPageview"],eS=(()=>{class i extends Bt{validateArgs(t){return!!rt(t)}execute(){this.commandsService.applyFromImplementation(md[0],[],"SrmOnlineAssetsTemplate")}}return i})(),Ed=["afterPageView"],iS=["getSessionKey"],sS=["getPageviewContext"],rS=["onRecordingContextChange","onRecordingStateChange"],nS=["replay:link:generate"],_e=(()=>{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.op=!1,this.args=e}start(){this.op||(this.onInit(),this.op=!0),this.isStarted||(this.onStart(),this.isStarted=!0)}stop(){this.isStarted&&(this.onStop(),this.isStarted=!1)}}return B([L()],i.prototype,"start",null),B([L()],i.prototype,"stop",null),i})(),oS=(()=>{class i extends _e{validateArgs(t){return!!rt(t)}Uv(){this.isStarted&&this.onEventCallback()}onInit(){this.commandsService.applyFromImplementation(Ed[0],[()=>this.Uv()],"AfterPageViewTrigger")}onStart(){}onStop(){}}return i})(),Ta=(()=>{class i extends _e{constructor(){super(...arguments),this.zl={pageviewTypes:["natural","artificial"]}}validateArgs(t){var e;return rt(t)&&vs(t)&&csArray.isArray(t.pageviewTypes)&&ah(t.pageviewTypes,n=>M(n))||(z.implementation(`BeforePageViewTrigger has wrong argument: ${(e=this.args)===null||e===void 0?void 0:e.pageviewTypes}, fallback to default config.`),this.args=this.zl),!0}onInit(){this.Hv=this.args.pageviewTypes}onPageView(t){this.isStarted&&csArray.prototype.indexOf.call(this.Hv,t)!==-1&&this.onEventCallback()}onStart(){}onStop(){}}return i})(),pc=(()=>{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 Ri(this.set)}get count(){return this.set.size}}return i})();function gc(i,r=!1){let t=new pc;return{push(e){t.count===0&&(r?Cs:csSetTimeout)(()=>{i(t.values()),t.clear()}),t.add(e)}}}var Ol={childList:!0,subtree:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,attributeOldValue:!0},ci=(()=>{var i;class r{static setShadowRootFilter(e){csArray.prototype.push.call(i.shadowRootFilters,e)}static ql(e){if(i.shadowRootFilters.length>0&&oi(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,Ol)})})))}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(ri.getAllShadowHosts(_d),n=>s(csElementshadowRoot.apply(n),"initial")):(this.mutationObserver=new csMutationObserver(this.mutationCallback),this.ql(_d),this.shadowRootObserver=new _r(this.onShadowRoot),this.shadowRootObserver.observe(),this.started=!0,dt(this.shadowRootObserver.shadowRoots,n=>{this.ql(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.ap=s;let n=gc(o=>e(o,this),!0);this.C=_i("DocumentMutationObserver:callback",o=>{dt(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?Lp(s,n):s!=null?s:n}observe(){i.observe(this.C,this.ap)}disconnect(){i.disconnect(this.C,this.ap)}}return i=r,r.callbacks=[],r.shadowRootCallbacks=[],r.started=!1,r.observedTargets=new Set,r.shadowRootFilters=[],r.mutationCallback=t=>{$.counters.mutations.push(t.length),csArray.prototype.forEach.call(i.callbacks,e=>e(t,i.mutationObserver))},r.onShadowRoot=(t,e)=>{dt(i.shadowRootCallbacks,s=>s(t,e)),e!=="removed"?i.ql(t):i.disconnectShadowRoot(t)},r.isRefreshing=!1,_t([L()],r.prototype,"observe",null),_t([L()],r.prototype,"disconnect",null),r})(),Ze=(()=>{class i{get selectors(){return this.ei===""?null:this.ei}constructor(t,e={closest:!1}){this.C=t,this.Lt=e,this.ei="",this.Gn=new pc,this.Ir=mr(s=>{if(this.ei==="")return;let n=[];for(let o of nh(s,c=>c.addedNodes)){if(!(up(o)||this.Lt.closest&&un(o)))continue;let c=this.Lt.closest?this.jv(o,this.ei):this.findMatchingElements(o,this.ei);$c(c,n)}n.length&&this.C(n,"added")},"SelectorObserver.processMutations"),this.Bv=(s,n)=>{if(this.ei===""||n!=="added")return;let o=this.findMatchingElements(s,this.ei);o.length&&this.C(o,"added")},this.W=new ci(this.Ir,this.Bv)}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);$c(n,e)}e.length&&(dt(e,s=>{this.Gn.add(s)}),this.C(e,"initial"))}processPendingMutations(){this.Ir(this.W.takeRecords())}disconnect(){this.W.disconnect(),this.Gn.clear(),this.ei=""}jv(t,e){let s=[];if(un(t)){if(t.parentElement){let n=ws(t.parentElement,e);n&&csArray.prototype.push.call(s,n)}return csArray.prototype.filter.call(s,n=>this.Gn.has(n)===!1)}else{if(bi(t)){let n=ws(t,e);if(n)return csArray.prototype.push.call(s,n),csArray.prototype.filter.call(s,o=>this.Gn.has(o)===!1)}return this.findMatchingElements(t,e)}}findMatchingElements(t,e){let s=gn(_w.csquerySelectorAll[t.nodeType].call(t,e));return Ct(t)&&Se.call(t,e)&&csArray.prototype.push.call(s,t),csArray.prototype.filter.call(s,n=>this.Gn.has(n)===!1)}}return _t([L()],i.prototype,"observe",null),_t([L()],i.prototype,"disconnect",null),_t([Zt("SelectorObserver.findMatchingElements")],i.prototype,"findMatchingElements",null),i})(),Ml="once per pageview",aS="always",cS=(()=>{class i extends _e{constructor(){super(...arguments),this._t=!0}validateArgs(t){if(rt(t)){let e=M(t.selector),s=t.frequency?t.frequency===Ml||t.frequency===aS:!0;return e&&s}return!1}onInit(){if(!Qt(this.args.selector)){this._t=!1;return}this.zn=this.args.frequency?this.args.frequency===Ml:!0,this.W=new Ze((t,e)=>this.C(t,e))}onStart(){this._t&&this.W.observe(this.args.selector)}onStop(){this._t&&(this.W.processPendingMutations(),this.W.disconnect())}C(t,e){e==="added"&&(this.zn?(this.stop(),this.onEventCallback({element:t[0]})):new Set(t).forEach(s=>this.onEventCallback({element:s})))}}return i})(),ba=()=>(i,r,t)=>{t.value=lS(t.value)};function lS(i){let r=csSymbol("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,zu(()=>{o[r]=!1,i.apply(o,t)})};return s.oncePerTickSymbol=r,s}ba.isScheduled=(i,r)=>{let t=r.oncePerTickSymbol;return i[t]};var uS=(()=>{class i{constructor(t){this.C=t,this.as=new Map,this.cp=e=>{let s=e.target;if(this.as.has(s))return!0;let n=!1;return this.as.forEach((o,c)=>{n||!this.as.get(c).subtree||(n=c.contains(s))}),n},this.j=new csMutationObserver(e=>{ba.isScheduled(this,this.garbageCollect)&&(e=ra(e,this.cp)),e.length&&Cs(()=>t(e,this))})}disconnect(){this.j.disconnect(),this.as=new Map}takeRecords(){return this.j.takeRecords()}observe(t,e){return this.as.set(t,e),this.j.observe(t,e)}unobserve(t){this.as.has(t)&&(this.as.delete(t),this.garbageCollect())}garbageCollect(){let t=ra(this.takeRecords(),this.cp);t.length&&this.C(t,this),this.j.disconnect(),this.as.forEach((e,s)=>this.j.observe(s,e))}}return _t([ba()],i.prototype,"garbageCollect",null),i})(),Dl=(()=>{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.$v(t)),new csIntersectionObserver(t,e)}static isSupported(){return!!_w.csIntersectionObserver&&!!_w.IntersectionObserverEntry}static $v(t){return(e,s)=>t(Mp(e,hS),s)}}return i})();function hS(i){return i.isVisible||!de.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 dS=(()=>{class i{constructor(t){this.C=t,this.Oi=new Set}onMutations(t){if(oh(t,e=>{var s;return!!(!((s=e.removedNodes)===null||s===void 0)&&s.length)}))for(let e of this.Oi.values())de.isConnected(e)||(this.Oi.delete(e),this.C(e))}observe(t){this.W||(this.W=new ci(e=>csSetTimeout(()=>this.onMutations(e))),this.W.observe()),this.Oi.add(t)}disconnect(){var t;(t=this.W)===null||t===void 0||t.disconnect(),this.Oi.clear(),this.W=void 0}}return _t([L("NodeDisconnectedObserver.onMutations")],i.prototype,"onMutations",null),i})(),fS=300,Cn=(()=>{class i{constructor(t){this.Ra=new Set,this.Gv=new dS(e=>this.lp(e)),this.bt=!1,this.Lt=t?{...kl,...t}:kl}stop(){var t,e;this.bt=!1,(t=this.qn)===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=_i("VisibilityObserver:callback",(s,n)=>t(s,n));let e={root:null,rootMargin:"0px",threshold:.5,trackVisibility:!0,delay:fS};this.qn=Dl.create(s=>this.handleIntersection(s),e),this.j=new uS(s=>csSetTimeout(()=>{dt(s,n=>this.lp(n.target))})),this.Fl(),this.bt=!0}observe(t){if(!this.bt)throw new Error("Observer is stopped.");this.Lt.reobserve===!1&&t[this.Wl]||(t[this.Wl]=!0,this.watchIntersection(t))}Fl(){this.Ca=csSymbol("isVisible"),this.Wl=csSymbol("ObservedElement"),this.Yl=csSymbol("LinkedElement"),this.up=csSymbol("Tracked")}lp(t){this.Ra.add(t);for(let e of this.zv(t))this.Ra.add(e);this.recheckCssVisibilityAll()}recheckCssVisibilityAll(){dt(this.Ra.keys(),t=>{!csNodeisConnected.apply(t)||de.areAncestorsHiddenByCSS(t)||t[this.Wl]&&this.watchIntersection(t)}),this.Ra.clear()}watchIntersection(t){this.j.unobserve(t),this.qn.unobserve(t);let e=de.getTopAncestorHiddenByCSS(t);e?(e!==t&&(this.hp(e,t),this.watchMutation(e)),this.watchMutation(t)):this.qn.observe(t)}watchMutation(t,e=!0){e&&delete t[this.Ca],this.qn.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){de.isVisibleInDocument(s)||this.qv(s);continue}let n=this.Lt.allowSameMatch||!e.target[this.Ca];e.target[this.Ca]=!0,n&&!this.Lt.delay&&this.onVisibilityChanged(e.target,sr.VisibleInViewPort)}this.Lt.delay&&csSetTimeout(()=>{for(let e of t){let s=e.isIntersecting&&e.isVisible;e.target[this.Ca]&&s&&this.onVisibilityChanged(e.target,sr.VisibleInViewPort)}},this.Lt.delay)}qv(t){let e=de.getTopElement(t);this.watchMutation(t),e&&(this.Gv.observe(e),this.hp(e,t),this.watchMutation(e,!1))}hp(t,e){var s;(t[this.Yl]=(s=t[this.Yl])!==null&&s!==void 0?s:new Set).add(e)}zv(t){var e,s;let n=[],o=(s=(e=t[this.Yl])===null||e===void 0?void 0:e.values())!==null&&s!==void 0?s:[];return dt(o,c=>csArray.prototype.push.call(n,c)),n}onVisibilityChanged(t,e){if(e===sr.VisibleInViewPort&&this.Lt.trackOnce){if(this.qn.unobserve(t),this.j.unobserve(t),t[this.up])return;t[this.up]=!0}this.C(t,e)}static isSupported(){return Dl.isSupported()}}return _t([L()],i.prototype,"observe",null),_t([Vn({wait:50}),L(),Zt("recheckCssVisibilityAll")],i.prototype,"recheckCssVisibilityAll",null),_t([L()],i.prototype,"watchIntersection",null),_t([L()],i.prototype,"watchMutation",null),_t([L(),Zt("VisibilityObserver.handleIntersection")],i.prototype,"handleIntersection",null),_t([L()],i.prototype,"onVisibilityChanged",null),i})(),sr=(()=>{let i;return function(r){r.VisibleInViewPort="VisibleInViewPort",r.HiddenByAnother="HiddenByAnother",r.Hidden="Hidden"}(i||(i={})),i})(),kl={delay:1e3,trackOnce:!0,reobserve:!1},Ll="once per pageview",pS="always",gS=(()=>{class i extends _e{constructor(){super(...arguments),this.Xl=!1,this.Hs=!1,this.zn=!0}validateArgs(t){if(rt(t)){let e=M(t.selector),s=t.frequency?t.frequency===Ll||t.frequency===pS:!0;return e&&s}return!1}onInit(){if(!Cn.isSupported())return;this.Hs=!0,this.zn=this.args.frequency?this.args.frequency===Ll:!0;let t=this.dp();this.K=new Ze((e,s)=>{if(s==="initial")for(let n of e)de.isVisibleInViewportInForeground(n)&&(n[this.Kl]=!0);this.Jl(e)},{closest:t}),this.Ut=new Cn({delay:0,trackOnce:!1,reobserve:!0,allowSameMatch:!0})}onStart(){!this.Hs||this.isStarted||(this.Kl=csSymbol("skipElement"),this.Xl=!1,this.Ut.start((t,e)=>this.Ql(t,e)),this.K.observe(this.args.selector))}onStop(){!this.Hs||!this.isStarted||(this.K.disconnect(),this.Ut.stop())}Ql(t,e){if(this.isStarted&&e===sr.VisibleInViewPort){let n=this.dp()?t.closest(this.args.selector):t;if(n){if(n&&n[this.Kl]){delete n[this.Kl];return}this.zn&&this.stop(),(!this.zn||!this.Xl)&&(this.Xl=!0,this.onEventCallback({element:n}))}}}Jl(t){for(let e of t)this.Ut.observe(e)}dp(){var t;return((t=this.experimentalConfig)===null||t===void 0?void 0:t.useClosestElement)===!0}}return i})(),Vt=(()=>{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})(),Wr=(()=>{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})();function Ft(i){let r=csEventtarget.apply(i);return r&&bi(r)&&csElementshadowRoot.apply(r)&&i.composedPath?i.__csOriginalTarget||i.composedPath()[0]:r}function mS(i){return i.composedPath&&Object.defineProperty(i,"__csOriginalTarget",{value:i.composedPath()[0],writable:!1,enumerable:!1}),i}function ES(){return(i,r,t)=>{let e=t.value;return e&&(t.value=function(s){if(Ft(s)===csEventtarget.apply(s))return e.call(this,s)}),t}}var yS=(()=>{class i{compute(t,e){let s=this.cs(e.x)-this.cs(t.x),n=this.cs(e.y)-this.cs(t.y),o=e.time-t.time;return{duration:o,distance:this.fp(s,n),direction:this.Fv(s,n),velocity:this.Wv(s,n,o)}}computePinchMetrics(t,e){let s=this.cs(e.x)-this.cs(t.x),n=this.cs(e.y)-this.cs(t.y);return{duration:e.time-t.time,distance:this.fp(s,n)}}getScale(t,e){return Math.abs(e/t-1)}cs(t){return t/_w.devicePixelRatio}fp(t,e){return Math.round(Math.sqrt(t*t+e*e))}Wv(t,e,s){let n=s/1e3,o=t/n,c=e/n;return Math.round(Math.abs(o)+Math.abs(c))}Fv(t,e){return Math.abs(t)>Math.abs(e)?t>0?Wr.RIGHT:Wr.LEFT:e>0?Wr.DOWN:Wr.UP}}return i})();function xl(i,r=0){let t=Math.pow(10,r);return Math.round(i*t)/t}var SS=1e3,_S=100,vS=.1,Ra=(()=>{class i{constructor(){this.Pr=[],this.te={},this.Zl=()=>{},this.Ia=new yS,this.pp()}static isGestureDetectionSupported(){return typeof devicePixelRatio!="undefined"}onGesture(t){this.Zl=t}isValidTouchEvent(t){return"touches"in t&&"changedTouches"in t}processActionDown(t){if(!this.Yv(t))return;this.Xv(t)&&this.pp();let e={x:t.touches[0].clientX,y:t.touches[0].clientY,time:U.now()};if(t.touches.length===1)this.te.startPinchTime=e.time,this.te.firstTouch=e;else if(t.touches.length===2&&(this.te.secondTouch={x:t.touches[1].clientX,y:t.touches[1].clientY,time:U.now()},this.te.firstTouch&&this.te.secondTouch)){let s=this.Ia.computePinchMetrics(this.te.firstTouch,this.te.secondTouch);this.Nr=s.distance}csArray.prototype.push.call(this.Pr,e),this.Pa=Ft(t)}processActionMove(){this.tu=!0}processActionUp(t){if(this.Kv(t)){if(csArray.prototype.push.call(this.Pr,{x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY,time:U.now()}),this.Jv(t)&&this.te.startPinchTime){let e={x:t.touches[0].clientX,y:t.touches[0].clientY,time:this.te.startPinchTime},s={x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY,time:U.now()};this.te.firstTouch&&(this.te.firstTouch=e,this.te.secondTouch=s),this.Qv(t)}this.Nr||this.Zv()&&this.tw(t)}}pp(){this.Pr=[],this.Pa=void 0,this.tu=!1,this.Nr=void 0,this.Fn=!0}tw(t){let e=this.Ia.compute(this.Pr[0],this.Pr[1]);this.Fn=t.isTrusted;let s=this.tu?this.ew(e):this.iw(e);if(this.rw(s.type,t.changedTouches)){let n=t.changedTouches[0];s.pageX=xl(n.pageX,1),s.pageY=xl(n.pageY,1)}this.Zl(s,t)}Qv(t){if(!(this.te.firstTouch&&this.te.secondTouch))return;let e=this.Ia.computePinchMetrics(this.te.firstTouch,this.te.secondTouch);this.Fn=t.isTrusted;let s=this.nw(e);s&&this.Zl(s,t)}nw(t){return!this.Nr||this.Ia.getScale(this.Nr,t.distance)t.distance?Vt.PINCH_IN:Vt.PINCH_OUT,target:this.Pa,distance:t.distance,isTrusted:this.Fn}}ew(t){return{type:t.velocity<_S?Vt.DRAG:Vt.FLICK,target:this.Pa,velocity:t.velocity,distance:t.distance,direction:t.direction,isTrusted:this.Fn}}iw(t){return{type:t.duration0}Kv(t){return t.changedTouches.length>0}Jv(t){return this.tu===!0&&!!this.Nr&&t.changedTouches.length===1&&t.touches.length===1}}return i})();function Xt(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=>{Ih(()=>t(u),{type:"listen",event:u,name:r})};return i.addEventListener(r,l,{capture:o,passive:c}),()=>{i.removeEventListener(r,l,{capture:o})}}var In=csSymbol("cleanup");function jt(i,r=!0){var t;(t=i[In])===null||t===void 0||t.call(i),i[In]=Xt(i.boundElement,i.type,e=>i.listener.call(i.boundElement,e),{capture:r})}function kt(i,r){var t;(t=i[In])===null||t===void 0||t.call(i),i[In]=void 0}var wS="touchstart",AS="touchmove",TS="touchend",yd=(()=>{class i{constructor(t){this.C=t}observe(){i.gp&&i.eu(this.C)}disconnect(){i.gp&&i.Wn(this.C)}static ow(t,e){csArray.prototype.forEach.call(Ri(i.jt),s=>s(t,e))}static eu(t){i.jt.has(t)||(i.jt.add(t),i.jt.size===1&&(i.Yn.onGesture(i.ow),csArray.prototype.forEach.call(i.ls,e=>jt(e))))}static Wn(t){i.jt.delete(t),i.jt.size===0&&csArray.prototype.forEach.call(i.ls,e=>kt(e))}static iu(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.ls=[{boundElement:pt.document,type:wS,listener:r=>i.iu(r)},{boundElement:pt.document,type:AS,listener:r=>i.iu(r)},{boundElement:pt.document,type:TS,listener:r=>i.iu(r)}],i.gp=Ra.isGestureDetectionSupported(),i.jt=new Set,i.Yn=new Ra,i})(),bS=(()=>{class i extends _e{constructor(){super(...arguments),this.su=!1,this._t=!0,this.us=!0,this.hs={boundElement:_d,type:"click",listener:t=>{if(this.su){this.su=!1;return}this.onClickOrTap(t)}},this.aw=(t,e)=>{t.type===Vt.TAP&&(this.su=!0,this.onClickOrTap(e))}}validateArgs(t){return rt(t)?M(t.selector):!1}onClickOrTap({target:t}){if(It(t)&&bi(t)){let e=ws(t,this.args.selector);e&&this.onEventCallback({element:e})}}onInit(){if(!Qt(this.args.selector)){this._t=!1;return}this.Xn=new yd(this.aw)}onStart(){var t;this._t&&(jt(this.hs,this.us),(t=this.Xn)===null||t===void 0||t.observe())}onStop(){var t;this._t&&(kt(this.hs,this.us),(t=this.Xn)===null||t===void 0||t.disconnect())}}return B([L("onClickOrTap"),wt()],i.prototype,"onClickOrTap",null),i})(),RS=(()=>{class i extends _e{constructor(){super(...arguments),this._t=!0,this.mp=!1}validateArgs(t){return rt(t)?M(t.selector):!1}onInit(){if(!Qt(this.args.selector)){this._t=!1;return}this.W=new Ze((t,e)=>{this.C(t,e)})}onStart(){this._t&&(this.W.observe(this.args.selector),this.mp=!0)}onStop(){this._t&&(this.W.processPendingMutations(),this.W.disconnect())}C(t,e){this.mp?e==="added"&&new Set(t).forEach(s=>this.onEventCallback({element:s})):this.onEventCallback({element:t[0]})}}return i})(),CS=(()=>{class i extends _e{constructor(){super(...arguments),this._t=!0}validateArgs(t){return rt(t)?M(t.selector):!1}onInit(){if(!Qt(this.args.selector)){this._t=!1;return}this.K=new Ze(t=>this.lw(t)),this.j=new ci(t=>this.uw(t))}onStart(){this._t&&(this.Na=csSymbol("MatchingElement"),this.K.observe(this.args.selector),this.j.observe())}onStop(){this._t&&(this.K.processPendingMutations(),this.K.disconnect(),this.j.disconnect())}lw(t){new Set(t).forEach(e=>this.hw(e))}uw(t){let e=nh(t,n=>n.removedNodes),s=[];for(let n of e)csArray.prototype.push.call(s,...this.fw(n));new Set(s).forEach(n=>this.onEventCallback({element:n}))}hw(t){t[this.Na]=!0}fw(t){let e=[];return ye(t,NodeFilter.SHOW_ELEMENT).visitAll(s=>{s[this.Na]&&(de.isConnected(s)?Se.call(s,this.args.selector)||delete s[this.Na]:delete s[this.Na],csArray.prototype.push.call(e,s))}),e}}return i})(),IS=(()=>{class i extends _e{constructor(){super(...arguments),this.Oa=!0}validateArgs(t){return rt(t)?M(t.selector):!1}onInit(){if(!Qt(this.args.selector)||!Cn.isSupported()){this.Oa=!1;return}this.Ut=new Cn({delay:0,trackOnce:!0,reobserve:!0}),this.K=new Ze(t=>this.Jl(t),{closest:!0})}Jl(t){for(let e of t)this.Ut.observe(e)}Ql(t,e){if(this.isStarted&&e===sr.VisibleInViewPort){let s=ws(t,this.args.selector);s&&(this.onEventCallback({element:s}),this.stop(),this.Oa=!1)}}onStart(){this.Oa&&(this.Ut.start((t,e)=>this.Ql(t,e)),this.K.observe(this.args.selector))}onStop(){this.Oa&&(this.Ut.stop(),this.K.disconnect())}}return i})(),PS=(()=>{class i extends _e{constructor(){super(...arguments),this._t=!0,this.us=!0,this.hs={boundElement:_d,type:"submit",listener:t=>this.submitListener(t)}}validateArgs(t){return rt(t)?M(t.selector):!1}submitListener({target:t}){It(t)&&bi(t)&&Se.call(t,this.args.selector)&&this.onEventCallback({element:t})}onInit(){Qt(this.args.selector)||(this._t=!1)}onStart(){this._t&&jt(this.hs,this.us)}onStop(){this._t&&kt(this.hs,this.us)}}return B([L("submitListener"),wt()],i.prototype,"submitListener",null),i})(),NS=(()=>{class i extends _e{constructor(){super(...arguments),this.hs={boundElement:_w,type:"hashchange",listener:t=>this.hashChangedListener(t)}}validateArgs(t){return!!rt(t)}hashChangedListener(t){t.newURL&&t.newURL===t.oldURL||this.onEventCallback()}onInit(){}onStart(){jt(this.hs)}onStop(){kt(this.hs)}}return B([L("hashChangedListener"),wt()],i.prototype,"hashChangedListener",null),i})();function Pn(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=pt.csSetTimeout(l,m);return}}let y=p-n;s=null,c=null,n=null,o=i.apply(t,[y,...e])},u=function(){if(t=this,e=arguments,n){c=U.elapsed();return}return n=U.elapsed(),s=pt.csSetTimeout(l,r),o};return u.flushPending=()=>{s&&(pt.csClearTimeout(s),l(!0))},u.cancel=()=>{c=null,n=null,s&&(pt.csClearTimeout(s),s=null)},u}var OS=(()=>{class i{static pw(){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}at.warn("Unable to override pushState, replaceState",!0,"HistoryChangeObserver")}static gw(){let t=i.pw();i.Kn===null&&xe(t==null?void 0:t.pushState)&&(i.Kn=et(t,"pushState",(e,{args:s})=>{i.Ep("pushstate",s)})),i.Jn===null&&xe(t==null?void 0:t.replaceState)&&(i.Jn=et(t,"replaceState",(e,{args:s})=>{i.Ep("replacestate",s)}))}static Cn(t){i.yt.add(t),i.yt.size===1&&((i.Kn===null||i.Jn===null)&&i.gw(),jt(i.yp),jt(i.Sp))}static Pn(t){var e,s;i.yt.delete(t),i.yt.size===0&&((e=i.Kn)===null||e===void 0||e.call(i),i.Kn=null,(s=i.Jn)===null||s===void 0||s.call(i),i.Jn=null,kt(i.yp),kt(i.Sp))}static Ep(t,e){let s={type:t,state:e[0]};M(e[2])&&(s.url=e[2]),i.Or(s)}static popstateListener(t){i.Or({type:"popstate",state:t.state})}static hashchangeListener(t){i.Or({type:"hashchange",state:null,url:t.newURL})}static Or(t){csArray.prototype.forEach.call(Ri(i.yt),e=>{e(t)})}constructor(t){this.C=t}observe(){i.Cn(this.C)}disconnect(){i.Pn(this.C)}}return i.Kn=null,i.Jn=null,i.yp={boundElement:pt,type:"popstate",listener:r=>i.popstateListener(r)},i.Sp={boundElement:pt,type:"hashchange",listener:r=>i.hashchangeListener(r)},i.yt=new Set,_t([L("popstateListener"),wt()],i,"popstateListener",null),_t([L("hashchangeListener"),wt()],i,"hashchangeListener",null),i})(),MS=(()=>{class i extends _e{validateArgs(t){if(rt(t)){let e=M(t.useDebounce),s=t.useDebounce==="yes"?Ht(t==null?void 0:t.window):!0,n=M(t.listeners);return e&&s&&n}return!1}onInit(){this.args.useDebounce==="yes"?this.Mi=Pn(()=>{this.onEventCallback()},this.args.window):this.Mi=this.onEventCallback,this.W=new OS(t=>this.mw(t))}_p(){return _w.location.href}mw(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._p();this.vp!==n&&(this.vp=n,this.Mi())}onStart(){this.vp=this._p(),this.W.observe()}onStop(){this.W.disconnect()}}return i})(),DS=(()=>{class i extends _e{constructor(){super(...arguments),this._t=!0,this.wp={boundElement:_d,type:"mouseover",listener:t=>this.mouseoverListener(t)},this.Ap={boundElement:_d,type:"mouseleave",listener:t=>this.mouseleaveListener(t)}}validateArgs(t){return rt(t)?M(t.selector):!1}onInit(){Qt(this.args.selector)||(this._t=!1)}mouseleaveListener({target:t}){It(t)&&bi(t)&&t[this.Ma]&&delete t[this.Ma]}mouseoverListener({target:t}){if(It(t)&&bi(t)){let e=ws(t,this.args.selector);e!==null&&!e[this.Ma]&&(e[this.Ma]=!0,this.onEventCallback({element:e}))}}onStart(){this._t&&(this.Ma=csSymbol("Hovered"),jt(this.Ap,!0),jt(this.wp,!0))}onStop(){this._t&&(kt(this.wp),kt(this.Ap))}}return B([L("mouseleaveListener"),wt()],i.prototype,"mouseleaveListener",null),B([L("mouseoverListener"),wt()],i.prototype,"mouseoverListener",null),i})(),kS=(()=>{class i{static readyStateChangeListener(t){csArray.prototype.forEach.call(Ri(i.callbacks),e=>e(t))}static eu(t){i.callbacks.has(t)||(i.callbacks.add(t),i.callbacks.size===1&&jt(i.eventHandler,!1))}static Wn(t){i.callbacks.delete(t),i.callbacks.size===0&&kt(i.eventHandler,!1)}constructor(t){this.C=t}observe(){i.eu(this.C)}disconnect(){i.Wn(this.C)}}return i.callbacks=new Set,i.eventHandler={boundElement:pt.document,type:"readystatechange",listener:i.readyStateChangeListener},_t([L("readyStateChangeListener"),wt()],i,"readyStateChangeListener",null),i})(),LS=(()=>{class i extends _e{constructor(){super(...arguments),this.zl={state:"Any"}}validateArgs(t){var e;return rt(t)&&M(t.state)||(z.implementation(`PageStateTrigger has wrong argument: ${(e=this.args)===null||e===void 0?void 0:e.state}, fallback to default config.`),this.args=this.zl),!0}onInit(){this.Ht=this.args.state.toLowerCase(),this.W=new kS(()=>{this.Tp(this.Ht,_d.readyState)&&(this.onEventCallback(),this.W.disconnect())})}onStart(){this.Tp(this.Ht,_d.readyState)?this.onEventCallback():this.W.observe()}onStop(){this.W.disconnect()}Tp(t,e){let s=i.bp[e];return i.bp[t]<=s}}return i.bp={complete:3,interactive:2,loading:1,any:0},i})(),xS=(()=>{class i{constructor(t,e){this.S=t,this.Ew=e,this.yw={ApiErrorsMaskUrl:Ry,NetworkRequestMaskUrls:Yy,ArtificialPageview:dd,BlockAllowListForSr:Oy,CustomError:My,CustomVariable:Dy,DataCsEncrypt:ky,DataCsOverride:xy,DynamicVariable:Uy,EcTransactionAll:jy,EcTransactionCreate:By,EcTransactionItemsAdd:$y,EcTransactionSend:Gy,ElementUnmasking:zy,EventTriggerRecordingPage:qy,EventTriggerRecordingSession:Fy,PageEvent:Xy,PiiMasking:Ky,RecordingEventTrigger:Jy,SetPath:Qy,SetQuery:Zy,SrmOnlineAssets:eS},this.Mr={AfterPageView:oS,ElementAdded:cS,ElementBecomesVisible:gS,ElementExist:RS,ElementRemoved:CS,ElementVisibility:IS,ElementClick:bS,FormSubmit:PS,HashChange:NS,HistoryChange:MS,Mouseover:DS,PageState:LS,BeforePageView:Ta}}Sw(t){let e=this.yw[t.name];return e?new e(this.S,t.args):(z.error(`Implementations: template ${t.name} does not exist`),null)}_w(t){var e;let s=this.Mr[t.name];if(!s)return z.error(`Implementations: trigger ${t.name} does not exist`),null;let n=(e=this.Ew)===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.Sw(n);if(!o)continue;if(!o.validateArgs(o.args)){z.implementation(`${n.name} has wrong argument.`);continue}for(let l of s){let u=this._w(l);if(!u)continue;if(!u.validateArgs(u.args)){z.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 VS(i){return csArray.isArray(i)?csArray.prototype.map.call(i,rd):oc(i)?[i]:csArray.from(nd(i))}function US(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=ad(r,VS(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 HS(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 jS(i,r){let t=csString.prototype.split.call(i,"|");if(t.length>2)return null;let e=US(csString.prototype.trim.call(t[0]),r);return t.length===2?e===null?null:HS(csString.prototype.trim.call(t[1]),e):e}var BS=(()=>{class i{constructor(t,e,s,n){this.vw=t,this.M=s,this.Oe={window:_w,document:_d,location,cookies:{}},this.Mr=new Set,this.Aw=new xS(e,n)}init(){Object.defineProperty(this.Oe,"cookies",{get:()=>this.Tw()});let t=this.Aw.parse(this.vw);for(let{name:e,trigger:s,template:n}of t)s instanceof Ta&&n instanceof dd||(this.Mr.add(s),s.onEvent(o=>{this.onTriggerEvent(o,n),$.counters.CSTCSnippetUsed.count(e)}))}start(t=!1){this.Mr.forEach(e=>{e.condition&&!ud(e.condition,this.Oe)||(t?this.M.task(()=>{e.start()}):e.start())})}stop(){this.Mr.forEach(t=>{t.stop()})}onBeforePageView(t){this.Mr.forEach(e=>{if(e instanceof Ta){e.onPageView(t);return}})}onTriggerEvent(t,e){let s=this.bw(t),n={...this.Oe,...s},o=[];if(QE(e.args)&&M(e.args.iterable)&&e.args.iterable.length>0){let c=jS(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 Ar){for(let c of o)e.execute(e.args,c);return}for(let c of o){let l=_a(e.args,c);l&&e.execute(l)}}Tw(){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},{})}bw(t){let e={...t};for(let s in e)Ct(e[s])&&(G.isMaskedElement(e[s])||G.isMaskedElementChild(e[s]))&&delete e[s];return e}}return B([Zt("implementationsService.start")],i.prototype,"start",null),B([L()],i.prototype,"onTriggerEvent",null),i})(),$S=(()=>{class i{constructor(t,e,s,n){this.Di=new BS(t,e,s,n)}init(){this.Di.init()}onInitTracking(){this.Di.start(!0)}onOptout(){this.Di.stop()}onBeforeSessionRenewal(){this.Di.stop(),this.Di.start()}onArtificialPageViewEnd(){this.Di.stop()}onBeforeArtificialPageView(){this.Di.start(),this.Di.onBeforePageView("artificial")}onBeforeNaturalPageView(){this.Di.onBeforePageView("natural")}}return i})();var GS=["optout"];var zS=["startDataCollection","data-collection:start"],qS=["data-collection:stop"],FS=["replay:consent:unanonymized:granted","trackConsentGranted"],WS=["replay:consent:unanonymized:withdrawn","trackConsentWithdrawn"],YS=["replay:consent:startForSession:granted"],XS=["replay:consent:startForSession:withdrawn"];var KS=["clearSession"],JS=["extendSession"];var QS=["getSessionData"],ZS=["session:start:newVisitor"],t_=["session:clear:visitor"];var Sd=(()=>{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})(),e_=(()=>{class i extends Sd{constructor(t){super(),this.Nw=t,this.ls=[{boundElement:_d,type:"touchstart",listener:e=>this.X(e)},{boundElement:_d,type:"touchmove",listener:e=>this.X(e)},{boundElement:_d,type:"touchend",listener:e=>this.X(e)}],this.Qn=new Ra,this.Qn.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.ls,t=>jt(t))}onStopTracking(){this.canDetectGesture()&&csArray.prototype.forEach.call(this.ls,t=>kt(t))}canDetectGesture(){return typeof devicePixelRatio!="undefined"}X(t){this.Nw.tryToExecute("process gesture event",()=>{if(this.Qn.isValidTouchEvent(t))switch(t.type){case"touchstart":this.Qn.processActionDown(t);break;case"touchmove":this.Qn.processActionMove();break;case"touchend":this.Qn.processActionUp(t);break}})()}static isSwipe(t){return t.type===Vt.FLICK||t.type===Vt.DRAG}}return i})();function Os(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 i_=1,Vl=csSymbol("nodeIdentifier");function ot(i){let r=i[Vl];return r!=null?r:i[Vl]=i_++}var Ms=(()=>{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,_i(`${this.name}.start`,()=>this.onStart())())}stop(){this.isStarted&&(this.isStarted=!1,_i(`${this.name}.stop`,()=>this.onStop())(),this.Ot=[])}stopForInactivity(){this.isStarted&&(this.isStarted=!1,_i(`${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})(),s_=(()=>{class i extends Ms{constructor(t){super(),this.K=null,this.ka=null,this.j=null,this.Zn=null,this.Ip=["value","checked","src","data","alt"],this.La={state:G.MaskedElementState.Child},this.Ow=e=>{for(let s of e){if(G.isMaskedElement(s.target)||G.isMaskedElementChild(s.target))for(let n=0;nh==="added"&&this.xw(u))),this.j.observe(),csSetTimeout(this.Mw)}onStop(){var t,e,s;this.K&&(this.Np(_d),this.K.disconnect()),(t=this.ka)===null||t===void 0||t.disconnect(),(e=this.j)===null||e===void 0||e.disconnect(),(s=this.Zn)===null||s===void 0||s.disconnect()}Dw(){return _w.ResizeObserver?new ResizeObserver(t=>{_w.requestAnimationFrame(()=>{csArray.prototype.forEach.call(t,e=>{this.resizeObserverCallback(e)})})}):null}kw(){return new Ze(t=>{csArray.prototype.forEach.call(t,e=>{this.Vw(e)?this.Pp(e):(this.Uw(e),this.Hw(e))})})}Lw(t){return new Ze(e=>{csArray.prototype.forEach.call(e,s=>this.jw(s,t))})}resizeObserverCallback(t){let e=t.target.getBoundingClientRect(),s=G.getMaskedElementDetails(t.target);if(s.state!==G.MaskedElementState.Parent||e.width===s.width&&e.height===s.height)return;let n={state:G.MaskedElementState.Parent,width:e.width,height:e.height};G.setMaskedElementProperty(t.target,n),this.produceEvent({type:"ResizeMaskedElement",target:ot(t.target),width:e.width,height:e.height})}Hw(t){!this.Zn||!Ct(t)||ip(t)||this.Zn.observe(t)}Vw(t){let e=csNodeparentNode.apply(t);return e?G.isMaskedElement(e)||G.isMaskedElementChild(e):oi(t)?G.isMaskedElement(t.host)||G.isMaskedElementChild(t.host):!1}xw(t){(G.isMaskedElement(t.host)||G.isMaskedElementChild(t.host))&&G.setMaskedElementProperty(t,this.La)}Np(t){ye(t,NodeFilter.SHOW_ELEMENT).visitAll(s=>{G.unsetMaskedElementProperty(s),t===_d&&$.counters.dom.add("size",1)})}Uw(t){let e=t.getBoundingClientRect(),s={state:G.MaskedElementState.Parent,width:e.width,height:e.height};G.setMaskedElementProperty(t,s),this.Bw(t),ye(t).visitAll(n=>n!==t&&G.setMaskedElementProperty(n,this.La))}Pp(t){G.setMaskedElementProperty(t,this.La),ye(t).visitAll(e=>e!==t&&G.setMaskedElementProperty(e,this.La))}Bw(t){var e;let s=(e=Mt.getProperty(t,G.maskedAttributeProp))!==null&&e!==void 0?e:{attributes:[]};for(let n=0;ncsString.prototype.indexOf.call(l.attrName,c)>-1&&Se.call(t,l.selector))&&csArray.prototype.push.call(n.attributes,c)}n.attributes.length!==0&&G.setMaskedAttributeProperty(t,n)}}return Os([L()],i.prototype,"resizeObserverCallback",null),i})(),Ye=(()=>{let i;return function(r){r.ANONYMIZED_TEXT_STATUS_PROP="anonymizationStatus",r.WHITELISTED_STATUS="whitelisted";function t(n){return Mt.getProperty(n,r.ANONYMIZED_TEXT_STATUS_PROP)===r.WHITELISTED_STATUS}r.isWhitelistedElement=t;function e(n){Mt.setProperty(n,r.ANONYMIZED_TEXT_STATUS_PROP,r.WHITELISTED_STATUS)}r.whitelistElement=e;function s(n){Mt.setProperty(n,r.ANONYMIZED_TEXT_STATUS_PROP,void 0)}r.removeWhitelistElement=s}(i||(i={})),i})(),r_=(()=>{class i{constructor(){this.au=0,this.U=!1,this.Op="data-cs-capture",this.fs=t=>{for(let e of t){if(Ye.isWhitelistedElement(e.target))for(let s=0;sdt(e,s=>this.Mp(s))));let t=this.lu?`[${this.Op}], ${this.lu}`:`[${this.Op}]`;this.K.observe(t),this.j||(this.j=new ci(this.fs,(e,s)=>s==="added"&&this.Gw(e))),this.j.observe()}stop(){this.U&&(this.au--,this.au===0&&(this.U=!1,this.zw()))}zw(){this.K&&(this.Dp(_d),this.K.disconnect()),this.j&&this.j.disconnect()}setWhitelistedElementsSelector(t,e=!0){if(Qt(t))this.lu=t;else if(e)throw new Rt("setCapturedElementsSelector")}getWhitelistedElementsSelector(){return this.lu}Mp(t){ye(t).visitAll(e=>{Ye.whitelistElement(e)})}Gw(t){Ye.isWhitelistedElement(t.host)&&Ye.whitelistElement(t)}Dp(t){ye(t,NodeFilter.SHOW_ELEMENT).visitAll(s=>{Ye.removeWhitelistElement(s)})}}return i})(),yi=(()=>{let i;return function(r){r.EDITABLE_NODE_PROP="editableNode";function t(n){var o;return"nodeType"in n?Mt.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){Mt.setProperty(n,r.EDITABLE_NODE_PROP,!0)}r.markEditableNode=e;function s(n){Mt.setProperty(n,r.EDITABLE_NODE_PROP,void 0)}r.unmarkEditableNode=s}(i||(i={})),i})(),n_=(()=>{class i{constructor(){this.K=null,this.j=null,this.U=!1,this.fs=t=>{for(let e of t)if(yi.isEditableNode(e.target))for(let s=0;sdt(t,e=>{this.kp(e)})),this.K.observe("[contenteditable]"),this.j=new ci(this.fs,(t,e)=>e==="added"&&this.qw(t)),this.j.observe())}stop(){var t,e;this.U&&(this.U=!1,(t=this.K)===null||t===void 0||t.disconnect(),this.K=null,(e=this.j)===null||e===void 0||e.disconnect(),this.j=null)}kp(t){ye(t).visitAll(e=>{yi.markEditableNode(e)})}qw(t){yi.isEditableNode(t.host)&&yi.markEditableNode(t)}}return i})(),o_=(()=>{let i;return function(r){r.ENCRYPTED_NODE_PROP="encrypted";function t(n){return Mt.getProperty(n,r.ENCRYPTED_NODE_PROP)===!0}r.shouldEncrypt=t;function e(n){Mt.setProperty(n,r.ENCRYPTED_NODE_PROP,!0)}r.markEncryptedNode=e;function s(n){Mt.setProperty(n,r.ENCRYPTED_NODE_PROP,void 0)}r.unmarkEncryptedNode=s}(i||(i={})),i})();var a_=(()=>{class i{constructor(t,e,s,n){this.ve=t,this.to=e,this.eo=s,this.Mt=n}init(){this.Ww()}shouldMaskNonTextElements(){if(this.ve.anonymisationMethod!==xi.replayRecordingMaskedUrlRegexRules)return!1;if(this.ve.isSMB)return this.shouldUseAnonymization();let t=this.eo.getMatchingRules(this.to.getAnonymizedUrl());return csArray.prototype.some.call(t,e=>e.maskMedia)}shouldUseAnonymization(){if(this.Mt&&!this.Mt.isReplayUnanonymizedAllowedByConsent()){switch(this.ve.anonymisationMethod){case null:case xi.replayRecordingUnmaskedUrlRegex:return!(this.ve.replayRecordingUnmaskedUrlRegex&&this.ve.replayRecordingUnmaskedUrlRegex.test(this.to.getAnonymizedUrl()));case xi.replayRecordingUnmaskedUrlRegexRules:return!this.eo.evaluateUrl(this.to.getAnonymizedUrl())}return!0}else{switch(this.ve.anonymisationMethod){case null:case xi.replayRecordingMaskedUrlRegex:return!!(this.ve.replayRecordingMaskedUrlRegex&&this.ve.replayRecordingMaskedUrlRegex.test(this.to.getAnonymizedUrl()));case xi.replayRecordingMaskedUrlRegexRules:return this.eo.evaluateUrl(this.to.getAnonymizedUrl())}return!1}}Ww(){this.ve.anonymisationMethod===xi.replayRecordingMaskedUrlRegexRules&&this.ve.replayRecordingMaskedUrlRegexRules?this.eo.setRegexRules(this.ve.replayRecordingMaskedUrlRegexRules):this.ve.anonymisationMethod===xi.replayRecordingUnmaskedUrlRegexRules&&this.ve.replayRecordingUnmaskedUrlRegexRules&&this.eo.setRegexRules(this.ve.replayRecordingUnmaskedUrlRegexRules)}}return i})(),c_=(()=>{class i{constructor(t){this.gt=t}on(t,e){return s=>{this.gt.hasValidEventTarget(s)&&this.Yw(s,t)&&e(s)}}Yw(t,e){let s=Ft(t);return Se.call(s,e)}isMatchesSelectorSupported(){return!!Se}}return i})(),l_=["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"],u_=1024,h_=1024,d_=(()=>{class i{constructor(t,e){this.gt=t,this.E=e}getEventTargetPathAndHierarchy(t,e){let s=Ft(t),n={isNodeSensitive(o){return G.isMaskedElement(o)||G.isMaskedElementChild(o)},isAttributeSensitive(o,c){return G.isMaskedAttribute(o,c)},allWhitelistedAttributes:qa(this.E.whitelistedAttributes),attributeIgnoreTokens:l_,useAnonymization:e,attrMaxLength:h_,hierarchyMaxLength:u_};return this.gt.getElementPathAndHierarchy(s,n,{dynamicIdRegex:this.E.dynamicIdRegex,...this.E.pathComputationRules})}getEventTargetPath(t){let e=Ft(t);return this.gt.getElementPath(e,{dynamicIdRegex:this.E.dynamicIdRegex,...this.E.pathComputationRules})}getEventTargetPathAndTargetLink(t){let e=Ft(t),{path:s,firstAnchorParent:n}=this.gt.getElementPathAndFirstAnchorParent(e,{dynamicIdRegex:this.E.dynamicIdRegex,...this.E.pathComputationRules}),o=this.Xw(n)?n.href:"";return{path:s,targetLink:o}}hasValidEventTarget(t){let e=Ft(t);return this.gt.isValidElement(e)}getElementPath(t){return this.gt.getElementPath(t,{dynamicIdRegex:this.E.dynamicIdRegex,...this.E.pathComputationRules})}Xw(t){var e;return t!==null&&t.hasAttribute("href")&&!aa((e=t.getAttribute("href"))!==null&&e!==void 0?e:"","#")}}return i})();var f_="CS_ANONYMIZED_VALUE",p_=(()=>{class i{constructor(t,e){this.O=t,this.A=e}anonymize(t){return M(t.message)&&(t.message=this.Qw(t.message),t.message=this.O.anonymizePII(t.message)),M(t.filename)&&(t.filename=this.A.computeOverriddenUrl(t.filename)),t}Qw(t){return csString.prototype.replace.call(t,/(value\s*=\s*".*"|value\s*=\s*'.*')/,`value='${f_}'`)}}return i})();var Ul=(()=>{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)),M(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)&&Ht(t.revenue)&&M(t.currency)&&t.currency.length<=10&&(!It(t.id)||M(t.id))}}return i})(),vd=100,g_=100,m_=(()=>{class i{constructor(t,e,s,n){this.id=t,this.name=e,this.price=s,this.quantity=n}static from(t){if(!i.du(t))return null;let e=new i(t.id,t.name,parseFloat(t.price),parseInt(t.quantity,10));return ht(t.sku)&&(e.sku=t.sku),ht(t.category)&&(e.category=t.category),ht(t.merchant)&&t.merchant.length>0&&(e.merchant=t.merchant.slice(0,vd)),e}static du(t){return It(t)&&M(t.id)&&M(t.name)&&Ht(parseFloat(t.price))&&Yi(parseInt(t.quantity,10))&&(!ht(t.sku)||M(t.sku))&&(!ht(t.category)||M(t.category))&&(!ht(t.merchant)||M(t.merchant))}}return i})(),E_=(()=>{class i extends ne{constructor(t,e,s){super(),this.O=t,this.Vp=e,this.V=s,this.fu=[],this.clear()}onStart(){csArray.prototype.forEach.call(this.fu,t=>{this.we=t.transaction,this.io=t.transactionItems,this.sendTransaction()}),this.fu=[]}onStop(){}addTransaction(t){let e=this.O.anonymizeFields(t,["id"]);this.we=Ul.from(e)}getTransaction(){return this.we}sendTransaction(){if(!this.isStarted){csArray.prototype.push.call(this.fu,{transaction:this.we,transactionItems:[...this.io]}),this.clear();return}if(!(this.Vp===null||this.V===null)&&(this.V.refreshSession(),!!this.V.isSessionValid())){if(!this.we.hasValidRevenue()){z.warn("Transaction Service: unable to send transaction with invalid parameters");return}this.Vp.send(),$.counters.transactions.count("sent")}}addItem(t){if(xe(t))throw new Rt(Un[1]);let e=this.O.anonymizeFields(t,["id","name","sku","category"]),s=m_.from(e);s!==null&&csArray.prototype.push.call(this.io,s)}getItems(){return this.io}clear(){this.we=Ul.from({revenue:NaN}),this.io=[]}getRequestParameters(){let t={id:this.we.id?`${this.we.id}`:"",revenue:`${this.we.revenue}`};return ht(this.we.tax)&&(t.tax=`${this.we.tax}`),ht(this.we.shipping)&&(t.shipping=`${this.we.shipping}`),ht(this.we.currency)&&(t.cu=`${this.we.currency}`),t.items=_w.csJSON.stringify(this.io),t}}return i})(),X=(()=>{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})(),y_=(()=>{let i;return function(r){r[r.ObjCompression=1]="ObjCompression"}(i||(i={})),i})(),Vi=(()=>{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 Ys=(()=>{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})();var S_=(()=>{class i{constructor(){this.Hp=new Set,this.jp=[],this.gu=new Set,this.mu=[]}addUrlMaskingPattern(t){if(this.Hp.has(t))return;this.Hp.add(t);let e=pl(t);csArray.prototype.push.call(this.jp,e)}getUrlMaskingPatterns(){return this.jp}resetPartialUrlMaskingPatterns(){this.gu.clear(),this.mu=[]}addPartialUrlMaskingPattern(t){if(this.gu.has(t))return;this.gu.add(t);let e=pl(t);csArray.prototype.push.call(this.mu,e)}getPartialUrlMaskingPatterns(){return this.mu}}return i})();var __=Math.pow(2,31);function v_(i,r=0){let l=r>>>0,u=i.length;for(let m=0;m>>0;_=Math.imul(_,3432918353),_=_<<15|_>>>17,_=Math.imul(_,461845907),l^=_,l=l<<13|l>>>19,l=Math.imul(l,5)+3864292196}let h=0,p=u&3,y=u-p;switch(p){case 3:h^=(csString.prototype.charCodeAt.call(i,y+2)&255)<<16;case 2:h^=(csString.prototype.charCodeAt.call(i,y+1)&255)<<8;case 1:h^=csString.prototype.charCodeAt.call(i,y)&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 wd(i){return v_(i)+__>>>0}var rr="|iframe|",w_=(()=>{class i extends Wa{constructor(t,e,s,n){super(),this.rA=t,this.nA=e,this.oA=s,this.aA=n}emitIframeEvent(t,e,s){if(this.cA(e)&&t===null){z.error(`iframeEventEmitter received event ${e} with null iframe, content:${csJSON.stringify(s)}`);return}switch(e){case zt.ChildLogMessage:this.lA(s);break;case zt.AnalysisEvent:{let n=s,o=this.rA.transformEvent(t,n);o.isUserEvent?this.uA(o.event):this.hA(o.event);break}case zt.RecordingEvent:{let n=s,o=this.aA.transformEvents(t,n);if(o.events.length===0)return;o.containsUserEvent?this.dA(o.events):this.fA(o.events);break}case zt.JavascriptError:this.pA(s);break;case zt.ApiError:this.gA(s);break;case zt.DetailedApiError:this.mA(s);break;case zt.CustomError:this.EA(s);break;case zt.EmerchandisingMessage:{let n=this.oA.transformEvent(t,s);this.yA(n);break}case zt.Commands:{let n=this.nA.transformEvent(t,s);this.SA(n);break}case zt.IntegrationCallback:this._A(s);break;case zt.StaticResource:this.vA(s);break;case zt.TrackingContextRequestMessage:this.wA(s);break;default:z.error(`Parent received unknown data type from iframe : ${csJSON.stringify(s)}`)}}cA(t){let e=[zt.AnalysisEvent,zt.RecordingEvent,zt.EmerchandisingMessage,zt.Commands];return csArray.prototype.indexOf.call(e,t)!==-1}lA(t){let{message:e,errorCode:s,level:n}=t;switch(n){case mt.debug:z.debug(e,s);break;case mt.warn:z.warn(e,!0,s);break;case mt.implementation:z.implementation(e,s);break;case mt.error:z.error(e,s);break;case mt.critical:z.critical(e,s);break}}uA(t){for(let e of this.listeners)e.onIframeAnalysisUserEvent&&e.onIframeAnalysisUserEvent(t)}hA(t){for(let e of this.listeners)e.onIframeAnalysisBrowserEvent&&e.onIframeAnalysisBrowserEvent(t)}dA(t){for(let e of this.listeners)e.onIframeRecordingUserEvent&&e.onIframeRecordingUserEvent(t)}fA(t){for(let e of this.listeners)e.onIframeRecordingBrowserEvent&&e.onIframeRecordingBrowserEvent(t)}pA(t){for(let e of this.listeners)e.onIframeJavascriptError&&e.onIframeJavascriptError(t)}gA(t){for(let e of this.listeners)e.onIframeApiError&&e.onIframeApiError(t)}mA(t){for(let e of this.listeners)e.onIframeDetailedApiError&&e.onIframeDetailedApiError(t)}yA(t){for(let e of this.listeners)e.onIframeEmerchandisingMessage&&e.onIframeEmerchandisingMessage(t)}SA(t){for(let e of this.listeners)e.onIframeCommands&&e.onIframeCommands(t)}_A(t){for(let e of this.listeners)e.onIframeIntegrationCallback&&e.onIframeIntegrationCallback(t)}vA(t){for(let e of this.listeners)e.onIframeStaticResource&&e.onIframeStaticResource(t)}wA(t){for(let e of this.listeners)e.onTrackingContextRequestCallback&&e.onTrackingContextRequestCallback(t)}EA(t){for(let e of this.listeners)e.onIframeCustomError&&e.onIframeCustomError(t)}}return i})(),A_=(()=>{class i{constructor(t,e,s){this.Ct=t,this.Bp=e,this.$p=s}transformEvent(t,e){this.AA(t,e.event);let s=this.Ct.getElementPath(t);return this.TA(s,e.event),this.bA(e.event),e}AA(t,e){if(Mm(e)){let s=t.getBoundingClientRect();e.x=Math.round(s.left+e.x+Ut.windowOffsetX()),e.y=Math.round(s.top+e.y+Ut.windowOffsetY())}}TA(t,e){Vh(e)&&(e.tgt=`${t}${rr}${e.tgt}`),Nm(e)&&(e.tgtHM=`${t}${rr}${e.tgtHM}`,this.Bp||(e.tgtHMH=wd(e.tgtHM))),Om(e)&&(e.tgtLk=`${t}${rr}${e.tgtLk}`)}bA(t){!this.Bp&&this.$p&&this.$p.enhanceAnalysisEvent(null,t)}}return i})(),T_=(()=>{class i{constructor(t){this.Ct=t}transformEvent(t,e){let s=this.Ct.getElementPath(t);return{iframePath:e.iframePath?`${s}${rr}${e.iframePath}`:s,commands:e.commands}}}return i})(),b_=(()=>{class i{constructor(t){this.Ct=t}transformEvent(t,e){if(e.products.length===0)return e;let s=this.Ct.getElementPath(t),n=csArray.prototype.map.call(e.products,o=>({...o,targetPath:`${s}${rr}${o.targetPath}`}));return{...e,products:n}}}return i})(),R_=(()=>{class i{constructor(){this.RA={clientX:2,clientY:3},this.CA={clientX:1,clientY:2},this.IA=[X.POINTER_DOWN,X.POINTER_MOVE,X.POINTER_UP],this.PA=[X.TOUCH_START,X.TOUCH_MOVE,X.TOUCH_END]}transformEvents(t,e){if(!de.isConnected(t))return e.events=csArray.prototype.filter.call(e.events,c=>c.type!==X.VISIBILITY_CHANGE),e.events.length===0||(z.warn(`IframeRecordingEventsTransformer received event ${zt.RecordingEvent} from disconnected iframe, content:${csJSON.stringify(e.events)}`),e.events=[]),e;let s=ot(t),n=null;csArray.prototype.some.call(e.events,c=>this.Gp(c)||this.zp(c))&&(n=t.getBoundingClientRect());for(let c of e.events)this.Gp(c)?this.NA(n,c):this.zp(c)&&this.OA(n,c),c.context=c.context&&c.context.length>0?`${s}/${c.context}`:`${s}`;return e}OA(t,e){this.qp(this.CA,t,e)}NA(t,e){this.qp(this.RA,t,e)}qp(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]))}Gp(t){return csArray.prototype.indexOf.call(this.IA,t.type)!==-1}zp(t){return csArray.prototype.indexOf.call(this.PA,t.type)!==-1}}return i})();var C_=512,I_=255,xo=(()=>{class i{constructor(t,e){this.key=csString.prototype.slice.call(t,0,C_),this.value=M(e)?csString.prototype.slice.call(e,0,I_):e}static isKeyValid(t){return M(t)}static isValueValid(t){return M(t)||Yi(t)}}return i})();var P_=1024,N_=512,Vo=1024,Uo="||",O_=(()=>{let i;return function(r){function t(c,l){return M(c)&&csString.prototype.indexOf.call(csString.prototype.toLowerCase.call(c),si.CHAMELEON)!==-1?si.CHAMELEON:l}r.handleCustomEventCommandMisuse=t;function e(c,l,u){let h=s(u);return{type:Q.CUSTOM_EVENT,ts:0,customEventName:Gt.truncate(c,P_,Gt.ELLIPSIS),sourceLibrary:Dm(l)?l:si.WEB,...sa(h)?{}:{properties:h}}}r.buildCustomEvent=e;function s(c){let l={};for(let u in c){if(u.length>N_)continue;let h=c[u];if(Ht(h)||pn(h))l[u]=csString(h);else if(o(h))l[u]=Gt.truncate(h,Vo,Gt.ELLIPSIS);else if(xp(h)){let p=n(h);p!==""&&(l[u]=p)}}return l}r.sanitizeCustomEventProperties=s;function n(c){let l="";for(let u=0;u{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})();var br=(()=>{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})(),M_=(()=>{class i extends br{constructor(){super(...arguments),this.supportedEventTypes=[Q.CHANGE],this.CT=["text","email","number","search","tel","url","password"]}baseEnhanceAnalysisEvent(t,e){let s=Ft(t);return ka(s)&&csArray.prototype.indexOf.call(this.CT,s.type)>=0&&(e.isBlank=s.value===""),e}}return i})();function D_(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 k_(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 L_=(()=>{let i;return function(r){function e(s,n,o,c){let l={...s,...n,...o,...c};return k_(l,200)}r.mergeAndLimitProperties=e}(i||(i={})),i})();var Ad=(()=>{class i extends br{constructor(t){super(),this.gt=t,this.supportedEventTypes=[Q.MOUSEDOWN,Q.MOUSEUP,Q.CLICK,Q.MOUSEOVER,Q.TAP,Q.DRAG,Q.FLICK,Q.SUBMIT,Q.CHANGE]}baseEnhanceAnalysisEvent(t,e){return e.tgt||(e.tgt=this.gt.getEventTargetPath(t)),e}}return i})(),Hl=65535,x_=(()=>{let i;return function(r){function t(e){let s=Ft(e);if(!s||!Ct(s)||!xe(s.getBoundingClientRect)||!It(e.pageX)||!It(e.pageY))return{xRel:-1,yRel:-1,valid:!1};let n=s.getBoundingClientRect(),o=e.pageX-n.left-Ut.windowOffsetX(),c=e.pageY-n.top-Ut.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*Hl),p=Math.round(c/u*Hl);return{xRel:h,yRel:p,valid:!0}}r.getRelativePosition=t}(i||(i={})),i})(),V_=(()=>{class i extends br{constructor(t,e){super(),this.Je=t,this.gt=e,this.supportedEventTypes=[Q.MOUSEMOVE,Q.CLICK],this.Tu=""}baseEnhanceAnalysisEvent(t,e){let{valid:s,xRel:n,yRel:o}=x_.getRelativePosition(t);if(s){let c=this.gt.getEventTargetPath(t);c!==vi.INVALID_ELEMENT&&(e.xRel=n,e.yRel=o,e.type===Q.MOUSEMOVE&&(c!==this.Tu||this.Je.iframesTracking?(this.Tu=c,e.tgtHM=c,this.Je.isChild||(e.tgtHMH=wd(e.tgtHM))):e.tgtHM=""))}else e.type===Q.MOUSEMOVE&&(this.Tu="");return e}}return i})(),Td=(()=>{class i extends br{constructor(t,e){super(),this.gt=t,this.Ft=e,this.supportedEventTypes=[Q.CLICK,Q.SUBMIT,Q.CHANGE,Q.TAP]}baseEnhanceAnalysisEvent(t,e){let s=this.Ft.getSensitiveStatus().useAnonymization,{path:n,hierarchy:o}=this.gt.getEventTargetPathAndHierarchy(t,s);return e.tgt=n,e.hrchy=o,e}}return i})(),jl=100,bd=(()=>{class i extends br{constructor(t,e,s){super(),this.E=t,this.Ft=e,this.O=s,this.supportedEventTypes=[Q.TAP,Q.CLICK,Q.SUBMIT]}OT(t){let e="",s=_d.createTreeWalker(t,NodeFilter.SHOW_TEXT),n=s.nextNode();for(;n;){if(e+=n.textContent,Qu(n.parentElement)||Ju(n.parentElement)||this.Ft.getElementSensitiveStatus(n.parentElement)!==Ee.CAPTURED)return!0;if(csString.prototype.trim.call(e).length>=jl)break;n=s.nextNode()}return!1}MT(t){let e=ws(t,"button,a");return e||(this.E.collectTargetText===ca.ButtonAndLinkOnly?null:t)}baseEnhanceAnalysisEvent(t,e){if(bi(csEventtarget.apply(t))){let s=this.MT(csEventtarget.apply(t));if(s&&M(s.textContent)&&!this.OT(s)&&!this.O.hasPII(s.textContent,this.E.anonymizeDigits)){let n=Gt.truncate(csString.prototype.trim.call(s.textContent),jl);n.length>0&&(e.text=n)}}return e}}return i})();function U_(i,r,t,e,s){let n=[];return csArray.prototype.push.call(n,new V_(i,r)),i.isCollectTargetTextEnabled()&&csArray.prototype.push.call(n,new bd(i,t,new Ke)),i.collectHierarchy&&csArray.prototype.push.call(n,new Td(r,t)),csArray.prototype.push.call(n,new M_,new Ad(r)),n}function H_(i,r,t,e,s){let n=[];return i.isCollectTargetTextEnabled()&&csArray.prototype.push.call(n,new bd(i,t,new Ke)),i.collectHierarchy&&csArray.prototype.push.call(n,new Td(r,t)),csArray.prototype.push.call(n,new Ad(r)),n}var ys=(()=>{let i;return function(r){r[r.COPY=0]="COPY",r[r.CUT=1]="CUT",r[r.PASTE=2]="PASTE"}(i||(i={})),i})(),it=(()=>{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})(),se=(()=>{class i{static buildFromCustomEvent(t,e){return this.ig(null,t,e)}static buildFromAnalysisEvent(t,e,s){return this.ig(t,e,s)}static ig(t,e,s){return csArray.prototype.reduce.call(s,(n,o)=>o.enhanceAnalysisEvent(t,n),e)}}return i})(),j_="data-cs-scroll-container",mc=`[${j_}]`,ii,Ss=null;function B_(i){try{if(It(csEventtarget.apply(i)))return!0}catch{}return!1}function $_(){if(!ri.isSupported())return null;for(let i of ri.getAllShadowHosts(_d)){let r=csElementshadowRoot.apply(i);if(r){let t=_w.csquerySelector[r.nodeType].call(r,mc);if(t)return t}}return null}function Bl(){Ss||(Ss=new Ze(()=>{$t.resetCache(),$t.getScrollContainer()}),Ss.observe(mc))}function $l(){Ss&&(Ss.disconnect(),Ss=null)}var $t=(()=>{let i;return function(r){function t(u){if(It(u)&&B_(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(ii!==void 0)if(ii&&!csNodeisConnected.apply(ii))ii=void 0,Bl();else return ii;return ii=(u=_w.csquerySelector[_d.nodeType].call(_d,mc))!==null&&u!==void 0?u:$_(),ii?$l():Bl(),ii}r.getScrollContainer=e;function s(u){return t(u)?e():null}r.getScrollContainerFromEvent=s;function n(){ii=void 0}r.resetCache=n;function o(){$l(),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})(),G_=(()=>{class i{constructor(t,e,s,n=["submit"]){this.Wt=t,this.gt=e,this.Yt=s,this.DT=n,this.sg="select, select *, input, textarea",this.kT="select, select *, input, textarea",this.rg="a, a *, button, button *, select, select *, input, textarea",this.ro="input, select, textarea",this.LT="form",this.Fa=150,this.xT=400,this.ng=!1,this.Vr=Pn((o,c,l)=>this.scrollListener(o,c,l),this.Fa),this.og=Pn(o=>this.resizeListener(o),this.Fa),this.VT=xn(o=>this.mouseMoveListener(o),this.xT),this.UT=[{boundElement:_w,type:"resize",listener:()=>this.og()},{boundElement:_d,type:"scroll",listener:o=>this.Vr(o,$t.getScrollContainerFromEvent(o))},{boundElement:_w,type:"mousemove",listener:o=>{this.VT(mS(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.HT={type:"scroll",listener:o=>{let c=$t.getScrollContainerFromEvent(o);c&&this.Vr(o,c)}},this.ag=[{type:"change",listener:this.Yt.on(this.kT,o=>this.changeListener(o))},{type:"submit",listener:this.Yt.on(this.LT,o=>this.submitListener(o))}],this.jT=[{boundElement:_d,type:"mouseover",listener:this.Yt.on(this.rg,o=>this.mouseOverListener(o))},{boundElement:_d,type:"mouseout",listener:this.Yt.on(this.rg,o=>this.mouseOutListener(o))},{boundElement:_d,type:"focusin",listener:this.Yt.on(this.sg,o=>this.focusInListener(o))},{boundElement:_d,type:"focusout",listener:this.Yt.on(this.sg,o=>this.focusOutListener(o))},{boundElement:_d,type:"keyup",listener:this.Yt.on(this.ro,o=>this.keyUpListener(o))},{boundElement:_d,type:"keydown",listener:this.Yt.on(this.ro,o=>this.keyDownListener(o))},{boundElement:_d,type:"copy",listener:this.Yt.on(this.ro,o=>this.copyListener(o))},{boundElement:_d,type:"cut",listener:this.Yt.on(this.ro,o=>this.cutListener(o))},{boundElement:_d,type:"paste",listener:this.Yt.on(this.ro,o=>this.pasteListener(o))},...csArray.prototype.map.call(this.ag,o=>({...o,boundElement:_d}))],this.G={},this.Ur=new Map,this.bu=(o,c)=>{switch(c){case"initial":case"added":this.js(o);break;case"removed":this.Bs(o);break}},this.gs=new _r(this.bu),this.Ru()}js(t){if(hn(t)){let e=this.cg();csArray.prototype.forEach.call(e,s=>jt(s))}else{if(this.Ur.has(t))return;let e=[...csArray.prototype.map.call(this.BT(),s=>({...s,boundElement:t})),{...this.HT,boundElement:t}];csArray.prototype.forEach.call(e,s=>jt(s)),this.Ur.set(t,e)}}Bs(t){if(hn(t)){let e=this.cg();csArray.prototype.forEach.call(e,s=>kt(s))}else{let e=this.Ur.get(t);e&&(csArray.prototype.forEach.call(e,s=>kt(s)),this.Ur.delete(t))}}onEvent(t){this.B=t}start(){this.gs.observe(),this.js(_d),this.resizeListener()}stop(){this.Bs(_d),this.Ur.forEach(t=>{csArray.prototype.forEach.call(t,e=>kt(e))}),this.Ur.clear(),this.gs.disconnect()}flushPendingDebouncedListeners(){this.Vr.flushPending(),this.og.flushPending()}lg(t){return csArray.prototype.some.call(this.DT,e=>e===t)}BT(){return this.Yt.isMatchesSelectorSupported()?csArray.prototype.filter.call(this.ag,t=>!this.lg(t.type)):(z.warn("Element.matches is not implemented yet"),[])}cg(){let t=[];return csArray.prototype.push.call(t,...this.UT),this.Yt.isMatchesSelectorSupported()?csArray.prototype.push.call(t,...this.jT):z.warn("Element.matches is not implemented yet"),csArray.prototype.filter.call(t,e=>!this.lg(e.type))}resizeListener(t){let e=$t.getScrollContainer(),s=bi(e);s&&(this.ng=!0);let n={type:Q.RESIZE,ts:0,x:s?e.clientWidth:Ut.windowWidth(),y:s?e.clientHeight:Ut.windowHeight()};t!==void 0&&(n.d=t),this.B(n)}scrollListener(t,e,s){!this.ng&&s&&this.resizeListener();let n={type:Q.SCROLL,ts:0,x:s?s.scrollLeft:Ut.windowOffsetX(),y:s?s.scrollTop:Ut.windowOffsetY(),d:t},o=se.buildFromAnalysisEvent(e,n,this.Wt);this.B(o)}mouseMoveListener(t){let e={type:Q.MOUSEMOVE,ts:0,x:t.pageX,y:t.pageY},s=se.buildFromAnalysisEvent(t,e,this.Wt);this.B(s)}mouseDownListener(t){let e={type:Q.MOUSEDOWN,ts:0,x:t.pageX,y:t.pageY,tgt:""},s=se.buildFromAnalysisEvent(t,e,this.Wt);this.Te(s)}mouseUpListener(t){let e={type:Q.MOUSEUP,ts:0,x:t.pageX,y:t.pageY,tgt:""},s=se.buildFromAnalysisEvent(t,e,this.Wt);this.Te(s)}clickListener(t){let e={type:Q.CLICK,ts:0,x:t.pageX,y:t.pageY,tgt:""},s=se.buildFromAnalysisEvent(t,e,this.Wt);this.Te(s)}mouseOverListener(t){let e={type:Q.MOUSEOVER,ts:0,x:t.pageX,y:t.pageY,tgt:""},s=se.buildFromAnalysisEvent(t,e,this.Wt);this.Te(s)}mouseOutListener(t){let e={type:Q.MOUSEOUT,ts:0,x:t.pageX,y:t.pageY,tgt:this.gt.getEventTargetPath(t)},s=se.buildFromAnalysisEvent(t,e,this.Wt);this.Te(s)}focusInListener(t){let e={type:Q.FOCUSIN,ts:0,tgt:this.gt.getEventTargetPath(t)},s=se.buildFromAnalysisEvent(t,e,this.Wt);this.Te(s)}focusOutListener(t){let e={type:Q.FOCUSOUT,ts:0,tgt:this.gt.getEventTargetPath(t)},s=se.buildFromAnalysisEvent(t,e,this.Wt);this.Te(s)}changeListener(t){let e={type:Q.CHANGE,ts:0,tgt:""},s=se.buildFromAnalysisEvent(t,e,this.Wt);this.Te(s)}submitListener(t){let e={type:Q.SUBMIT,ts:0,tgt:""},s=se.buildFromAnalysisEvent(t,e,this.Wt);this.Te(s)}copyListener(t){let e={type:Q.COMMAND,ts:0,tgt:this.gt.getEventTargetPath(t),key:ys.COPY};this.Te(e)}cutListener(t){let e={type:Q.COMMAND,ts:0,tgt:this.gt.getEventTargetPath(t),key:ys.CUT};this.Te(e)}pasteListener(t){let e={type:Q.COMMAND,ts:0,tgt:this.gt.getEventTargetPath(t),key:ys.PASTE};this.Te(e)}keyUpListener(t){let e={type:Q.KEYUP,ts:0,tgt:this.gt.getEventTargetPath(t),key:this.ug(t)};this.Te(e)}keyDownListener(t){let e={type:Q.KEYDOWN,ts:0,tgt:this.gt.getEventTargetPath(t),key:this.ug(t)};this.Te(e)}ug(t){let e=this.G[t.key];return e===void 0?it.ALPHANUMERICAL:e}Te(t){Vh(t)&&t.tgt!==vi.INVALID_ELEMENT&&this.B(t)}Ru(){this.G[" "]=it.SPACE,this.G.Spacebar=it.SPACE,this.G.Enter=it.ENTER,this.G.Backspace=it.BACKSPACE,this.G.Delete=it.DELETE,this.G.ArrowUp=it.ARROWUP,this.G.ArrowDown=it.ARROWDOWN,this.G.ArrowLeft=it.ARROWLEFT,this.G.ArrowRight=it.ARROWRIGHT,this.G.Up=it.ARROWUP,this.G.Down=it.ARROWDOWN,this.G.Left=it.ARROWLEFT,this.G.Right=it.ARROWRIGHT,this.G.CapsLock=it.CAPSLOCK,this.G.Shift=it.SHIFT,this.G.Tab=it.TAB}}return B([L("Event handler type: resize")],i.prototype,"resizeListener",null),B([L("Event handler type: scroll")],i.prototype,"scrollListener",null),B([L("Event handler type: mouseMove"),wt()],i.prototype,"mouseMoveListener",null),B([L("Event handler type: mouseDown"),wt()],i.prototype,"mouseDownListener",null),B([L("Event handler type: mouseUp"),wt()],i.prototype,"mouseUpListener",null),B([L("Event handler type: click"),wt()],i.prototype,"clickListener",null),B([L("Event handler type: mouseOver"),wt()],i.prototype,"mouseOverListener",null),B([L("Event handler type: mouseOut"),wt()],i.prototype,"mouseOutListener",null),B([L("Event handler type: focusIn")],i.prototype,"focusInListener",null),B([L("Event handler type: focusOut")],i.prototype,"focusOutListener",null),B([L("Event handler type: change")],i.prototype,"changeListener",null),B([L("Event handler type: submit"),wt()],i.prototype,"submitListener",null),B([L("Event handler type: copy")],i.prototype,"copyListener",null),B([L("Event handler type: cut")],i.prototype,"cutListener",null),B([L("Event handler type: paste")],i.prototype,"pasteListener",null),B([L("Event handler type: keyup")],i.prototype,"keyUpListener",null),B([L("Event handler type: keydown")],i.prototype,"keyDownListener",null),i})(),z_=(()=>{class i{constructor(t,e,s){this.Wt=t,this.be=e,this.Lt=s}processGesture(t,e){switch(t.type){case Vt.TAP:this.$T(e);break;case Vt.FLICK:this.GT(t,e);break;case Vt.DRAG:this.zT(t,e);break;default:break}}$T(t){let e={type:Q.TAP,ts:0,x:0,y:0,tgt:""},s=se.buildFromAnalysisEvent(t,e,this.Wt);s.tgt!==vi.INVALID_ELEMENT&&this.B(s)}zT(t,e){var s,n;let o={type:Q.DRAG,ts:0,fd:t.direction,tgt:""};!((s=this.Lt)===null||s===void 0)&&s.collectGestureDistance&&(o.distance=t.distance),!((n=this.Lt)===null||n===void 0)&&n.collectGestureVelocity&&(o.velocity=t.velocity);let c=se.buildFromAnalysisEvent(e,o,this.Wt);c.tgt!==vi.INVALID_ELEMENT&&this.B(c)}GT(t,e){var s,n;let o={type:Q.FLICK,ts:0,fd:t.direction,tgt:""};!((s=this.Lt)===null||s===void 0)&&s.collectGestureDistance&&(o.distance=t.distance),!((n=this.Lt)===null||n===void 0)&&n.collectGestureVelocity&&(o.velocity=t.velocity);let c=se.buildFromAnalysisEvent(e,o,this.Wt);c.tgt!==vi.INVALID_ELEMENT&&this.B(c)}onEvent(t){this.B=t}start(){this.be.subscribe(i.hg,(t,e)=>this.processGesture(t,e))}stop(){this.be.unsubscribe(i.hg)}}return i.hg="AnalysisGestureTracker",B([wt()],i.prototype,"processGesture",null),i})();var q_=(()=>{class i{constructor(){this.ye=new Set}handleCommand(t,e){return!xe(t)||this.ye.has(t)?null:(this.ye.add(t),e&&(this.Oe=e,this.mg(t,e)),()=>this.ye.delete(t))}executeCallbacks(t){this.QT(t)&&(this.Oe=t,this.ye.forEach(e=>this.mg(e,t)))}mg(t,e){csSetTimeout(()=>{try{t(e)}catch{}})}QT(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 F_(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 W_=(()=>{class i{constructor(t){this.xt=t}handleCommand(t,e){vs(t)&&xe(e)&&this.Xt(t,e)}Xt(t,e){csSetTimeout(()=>{let s=this.xt.getTrackingContext();if(s){let n=F_(s,t);e(n)}})}}return i})();var Wi={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 Y_=(()=>{class i{constructor(){this.Ne=0}get length(){return this.Ne}get isEmpty(){return!this.pt}pushAll(t){for(let e=0;ei instanceof HTMLFormElement?"form":i.localName,Gl=new Map,Ho=!Fu&&_d.implementation.createHTMLDocument("");function K_(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 J_(i){if(!Dn(i))return null;let r=Rd(i);if(r===null||r.length===0)return null;let t="";if(Ua(i.textContent))dt(r,e=>t+=e.cssText);else{let e=Q_(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 Q_(i){if(!Ho)return 0;let r=Gl.get(i.textContent);if(r)return r;let t=i.cloneNode(!0);t.textContent=i.textContent,Ho.head.appendChild(t);let e=Rd(t);return r=e?e.length:0,Gl.set(i.textContent,r),Ho.head.removeChild(t),r}function Rd(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 Cd=(()=>{class i{constructor(t){this.csId=ot(t),this.props=Fi.getAll(t)}}return i})(),Z_=(()=>{class i extends Cd{constructor(t){super(t),this.nodeType=3,this.data=t.data}}return i})(),tv=(()=>{class i extends Cd{constructor(t){var e,s,n;super(t),this.attributes=[],this.nodeType=Wi.ELEMENT_NODE,this.localName=X_(t),this.namespaceURI=(e=t.namespaceURI)!==null&&e!==void 0?e:void 0,this.children=[];let o=J_(t);if(o){this.children=new csArray(csNodechildNodes.apply(t).length);let c=_d.createTextNode(o),l=new Z_(c);csArray.prototype.push.call(this.children,l)}(Dn(t)||Ku(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===Wi.ELEMENT_NODE}static getAttribute(t,e){return gr(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 ev=/(@import\s*("([^"]+)"|'([^']+)'))|(url\s*\(\s*((("([^"\]]+)"|'([^'\]]+)')\s*)|([^)\]]+))\)(?!\\))/g;function iv(i,r){return csString.prototype.replace.call(i,ev,(...e)=>{let s=e[3]||e[4],n=e[9]||e[10]||e[11],o=rv((s||n).trim()),c=s?"@import ":"",l=r(o)||o;return`${c}url(${sv(l)})`})}function sv(i){return csString.prototype.indexOf.call(i,'"')===-1?`"${i}"`:csString.prototype.indexOf.call(i,"'")===-1?`'${i}'`:i}function nr(i){let r=new Set;return iv(i,t=>{var e,s;return r.add((s=(e=csString.prototype.match.call(t,/^["|'](.*)?["|']$/))===null||e===void 0?void 0:e[1])!==null&&s!==void 0?s:t),t}),Ri(r)}function rv(i){let r=/(\\)*\\(?:([a-fA-F0-9]{1,6})|(.))[\n\t\x20]?/g;return csString.prototype.replace.call(i,r,(t,e,s,n)=>{if(e==="\\")return csString.prototype.slice.call(t,1);if(n)return n;let o=parseInt(s,16);return 55296<=o&&o<=57343||o===0||o>1114111?"\uFFFD":csString.fromCodePoint(o)})}function Ec(i){let r=csString.prototype.trim.call(i);if(i==="")return[];let[t,e]=nv(r);return e?(Is(t,",")||(e=ov(e)),[zl(t),...Ec(e)]):[zl(t)]}function nv(i){return csString.prototype.split.call(i,/\s(.+)/)}function zl(i){return csString.prototype.split.call(i,/,$/)[0]}function ov(i){return csString.prototype.split.call(i,/,(.+)/)[1]||""}var av=(()=>{class i{constructor(t={maskingEnabled:!0}){this.sb=t}onScannedAsset(t){this.Xa=t}Ka(){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.Pu(nr(t))}scanElement(t,e){this.sb.maskingEnabled&&(G.getMaskedElementDetails(t).state!==G.MaskedElementState.NotMasked||e&&G.isMaskedAttribute(t,e))||(Dn(t)?this.rb(t):Ku(t)?this.nb(t,e):(this.ob(t,e),this.ab(t,e),this.cb(t,e)))}nb(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.Ka(),assetRawPath:K_(t)};this.Xa({type:"stylesheet",asset:o})}}rb(t){var e;let s=new Set;if(t.textContent)for(let o of nr(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"||z.error(o.message)}if(n)for(let o=0;othis.Nu(e)),e=>({rawUrl:e,absoluteUrl:wi(e)})),e=>{let s={assetId:e.absoluteUrl,assetBasePath:this.Ka(),assetRawPath:e.rawUrl};this.Xa({type:"asset",asset:s})})}lb(t){return/^https:\/\/\w+:\w+@/.test(t)}}return i})();var Xs=(()=>{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})();var cv=/[\u4E00-\u9FFF]|[\u3000-\u303F]|[\u3040-\u309F]|[\u30A0-\u30FF]|[\uFF00-\uFFEF]/g,lv="\uFF41",uv=/[^a\s]/g,hv="a";function jo(i){let r=csString.prototype.replace.call(i,cv,lv);return csString.prototype.replace.call(r,uv,hv)}function dv(i,r){let t=r==="number"?"0":"\u2022";return csString.prototype.replace.call(i,/\S/g,t)}var fv=(()=>{class i{constructor(t,e,s,n=null,o=!1){this.mi=t,this.uo=e,this.O=s,this.Ja=n,this.yb=o,this.ho=qa(this.uo)}sanitize(t){return Mt.traverse(t,(e,s)=>{if(e.anonymized=this.mi,e.nodeType===Wi.TEXT_NODE){let n=e,{anonymizedValue:o,withAnonymization:c}=this.getAnonymizedValue(n.data,s==null?void 0:s.localName,s?Mt.getProperties(s):void 0);e.anonymized=c,n.data=o;return}if(tv.isElement(e))return this.Sb(e);if(e.nodeType===Wi.CDATA_SECTION_NODE){let n=e;n.data=this.mi?jo(n.data):this.O.checkAndAnonymizePII(n.data,this.Ja);return}}),t}setAnonymization(t){this.mi=t}getAnonymizedValue(t,e,s){if(e==="style")return{anonymizedValue:t,withAnonymization:!1};let n=(s==null?void 0:s[Ye.ANONYMIZED_TEXT_STATUS_PROP])===Ye.WHITELISTED_STATUS;return this.mi&&!n?{anonymizedValue:jo(t),withAnonymization:!0}:{anonymizedValue:this.O.checkAndAnonymizePII(t,this.Ja),withAnonymization:!1}}Sb(t){let e=gr(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.mi,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._b(e,s,o))return n;if(Pg(s))return Ng(e,s,n)?this.O.anonymizePII(n):n;let c=this.yb&&s==="placeholder";return this.mi&&(Og(e,s,o)||c)?jo(n):this.mi?"":this.O.checkAndAnonymizePII(n,null)}_b(t,e,s){return Ig(t,e,s)||this.ho.has(e)}}return i})();var ql=(()=>{let i;return function(r){function t(e){return e.type==="TextVisibility"}r.isTextVisibilityEvent=t}(i||(i={})),i})(),Zi=(()=>{class i{constructor(){this.Ot=[]}start(){}stop(){this.Ot.length=0,this.Ot=[]}pushEvent(t){if(i.pendingEvents++,this.isListening(t)){let e=this.Ot;csSetTimeout(()=>{let n=_i("Processor:processEvent",o=>this.processEvent(o))(t);n!=null&&csArray.prototype.forEach.call(e,o=>o(n)),i.pendingEvents--})}else csSetTimeout(()=>{csArray.prototype.forEach.call(this.Ot,e=>e(t))})}subscribe(t){return csArray.prototype.push.call(this.Ot,t),()=>{this.Ot=csArray.prototype.filter.call(this.Ot,e=>e!==t)}}emitEvent(t){Cs(()=>csArray.prototype.forEach.call(this.Ot,e=>e(t)))}}return i.pendingEvents=0,i})();function Fl(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 pv=(()=>{class i extends Zi{constructor(t,e,s=new Ke,n=null,o=!1){super(),this.O=s,this.Ja=n,this.captureAnonymizedPlaceholders=o,this.Lu=new fv(t,e,s,n,o)}setAnonymization(t){this.Lu.setAnonymization(t)}isListening(t){return t.type==="DOM_PATCH"||t.type==="DOM_INITIAL_STATE"||ql.isTextVisibilityEvent(t)}processEvent(t){var e,s;if(ql.isTextVisibilityEvent(t))return t.text=this.O.checkAndAnonymizePII(t.text,this.Ja),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){at.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 Wi.TEXT_NODE:case Wi.COMMENT_NODE:{let p=n[c];if(p.data==null)continue;if(h||at.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:y,withAnonymization:m}=this.Lu.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=y;break}case Wi.ELEMENT_NODE:{let p=n[c];if(p.attributes)for(let y in p.attributes){let m=p.attributes[y];if(m==null)continue;let _=Fl(l);p.attributes[y]=this.Lu.getAnonymizedAttributeValue(l.namespaceURI,l.localName,y,m,_)}!((s=p.state)===null||s===void 0)&&s.value&&(p.state.value=dv(p.state.value,Fl(l)));break}}}return t}}return Os([Zt("AnonymizedTextProcessor.processEvent")],i.prototype,"processEvent",null),i})(),st=(()=>{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})(),Yr=(()=>{let i;return function(r){r[r.Closed=0]="Closed",r[r.Open=1]="Open",r[r.OpenModal=2]="OpenModal"}(i||(i={})),i})(),gv=(()=>{class i extends Zi{isListening(t){return t.type==="DOM_PATCH"||t.type==="DOM_INITIAL_STATE"}processEvent(t){let{MaskedElementState:e}=G,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 y=n[u];if(!y)return o.set(h,!1),!1;let{state:m}=G.getMaskedElementDetails(y);if(m===e.Child||m===e.Parent)return o.set(h,!0),!0;let _=y.parent!=null?l(y.parent):!1;return o.set(h,_),_}for(let u in s){let h=s[u],p=n[u],y=G.getMaskedElementDetails(p);if(!p.parent){y.state!==e.NotMasked?at.error(`MaskedElementProcessor: node without parent in diff with masking details, this should not happen (id: ${u})`):p.type!==st.DOCUMENT_NODE&&p.type!==st.CSS_STYLESHEET_NODE&&at.error(`MaskedElementProcessor: node without parent in diff, this should not happen (id: ${u})`);continue}if(y.state===e.Child||l(p.parent)){delete s[u],o.set(u,!0);continue}p.type===st.ELEMENT_NODE&&(this.wb(h,p),y.state===e.Parent&&(o.set(u,!0),this.xu(h,y),c++))}return c>0&&$.counters.sensitiveElements.count("masked-elements",c),t}wb(t,e){if(!t.attributes)return;let{attributes:s}=G.getMaskedAttributeDetails(e);if(s!=null&&s.length)for(let n of s)delete t.attributes[n]}xu(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 Os([Zt("MaskedElementProcessor.processEvent")],i.prototype,"processEvent",null),i})(),mv=/(?:^|[{;])\s*(?!--)[\w-]+:\s*(?=;)/g;function Ev(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,mv);s&&(r+=s.length)}return r}var yv=(()=>{class i extends Zi{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!==st.CSS_STYLESHEET_NODE)continue;let c=s[n];c.cssRules&&(e+=Ev(c.cssRules))}return e>0&&(this.cssomVarFallbackCount+=e,$.counters.cssomVarFallback.count("detected",e)),t}}return i})(),Sv="textarea",_v=(()=>{class i extends Zi{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||at.warn(`AnonymizedEditableTextProcessor: Missing parent "${c.parent}" from node ${n} (${c.type}) (event: ${t.type})`,!0,"AnonymizedEditableTextProcessor.processFastDOM"),this.Ab(o,c.metadata,l==null?void 0:l.localName)}return t}Ab(t,e,s){this.Tb(s,e)&&t.data!=null&&(t.data=this.bb(t.data))}bb(t){return csString.prototype.replace.call(t,/\S/g,"\u2022")}Tb(t,e){return t===Sv||(e==null?void 0:e[yi.EDITABLE_NODE_PROP])===!0}}return Os([Zt("AnonymizedEditableTextProcessor.processEvent")],i.prototype,"processEvent",null),i})(),Id=(()=>{class i{constructor(t){this.type="asyncEvent",this.Vu=!1,t&&t(e=>this.resolve(e))}resolve(t){if(this.Vu)throw new Error("AsyncEvent already resolve.");t.timestamp==null&&(t={...t,timestamp:this.timestamp}),this.Ag=t,this.Vu=!0,this.C&&this.C(this.Ag)}complete(t){this.Vu&&t(this.Ag),this.C=t}wait(){return new Promise(t=>this.complete(t))}}return i})();function Wl(i){return csString.prototype.replace.call(i,/[:\\]/g,"\\$&")}function Bo(i){return csString.prototype.replace.call(i,/\\([:\\\\])/g,"$1")}function an(i,r){let t=Wl(r);return i?`${Wl(i)}:${t}`:t}function vv(i){let r=!1,t=-1;for(let n=0;n{class i{static async toStaticResourceEvent(t,e,s){let n=await i.Ib(t);if(!n)return null;let o=await i.Rg(n),c=be(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.Pb(t,n),c=wi(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 Rg(t){let e=await t.arrayBuffer(),s=await crypto.subtle.digest(this.Cg,e);return na(s)}static async Ib(t){let e;if(!be(t))e=await(await _w.fetch(t)).blob();else{let s=qc(t);if(!s)return null;e=s}return e}static async Pb(t,e){let s=new Map,n=wi(t),c=[{resourceRawPath:t,resourceAbsolutePath:n}];for(;c.length>0;){let l=csArray.prototype.pop.call(c);if(!e&&l.resourceAbsolutePath!==null&&!be(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=nr(l.data));let p=!1,y=!1;for(let m of l.nestedResources){let _=be(m)?m:l.resourceAbsolutePath?Lm(m,l.resourceAbsolutePath):wi(m),A=s.get(_);if(A!==void 0){if(A!==null){let I=i.Nb(A,m);l.data=Gt.stringReplaceAll(l.data,m,I)}continue}gr(c,I=>I.resourceAbsolutePath===_)!==void 0||(p=!0,y||(csArray.prototype.push.call(c,l),y=!0),csArray.prototype.push.call(c,{resourceRawPath:m,resourceAbsolutePath:_}))}if(!p){let m=await i.Ob(l.data);s.set(l.resourceAbsolutePath,{hash:m.hash,data:m.data})}}else{let p;if(!be(l.resourceAbsolutePath))p=await(await fetch(l.resourceAbsolutePath)).blob();else{let m=qc(l.resourceAbsolutePath);if(!m){s.set(l.resourceAbsolutePath,null);continue}p=m}let y=await i.Rg(p);s.set(l.resourceAbsolutePath,{hash:y,data:p})}}catch{s.set(l.resourceAbsolutePath,null)}}return s}static Nb(t,e){let s=`cs://resources/${t.hash}`;return be(e)||(s+=`?${i.Uu}=${e}`),s}static async Ob(t){let e=new Blob([t],{type:"text/css"}),s=await e.arrayBuffer(),n=await crypto.subtle.digest(i.Cg,s);return{data:e,hash:na(n)}}}return i.Cg="SHA-256",i.Uu="original-resource-name",i})(),$o=an("http://www.w3.org/1999/xlink","href"),Ia=(()=>{class i extends Zi{get busy(){return this.Hu>0}constructor(){super(),this.Mb="cssrm://",this.Db=1,this.$i=!1,this.Hu=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 st.TEXT_NODE:this.kb(o,l==null?void 0:l.localName);break;case st.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.ju(h);p!==null&&(o.cssRules[u]=p)}break}case st.ELEMENT_NODE:{o=o;let u=o.attributes;if(!u)continue;if(typeof u.style=="string"&&(u.style=this.ju(u.style)),(this.Lb(c.localName)||this.xb(c.localName,l==null?void 0:l.localName))&&(typeof u.src=="string"&&(u.src=this.Bu(u.src)),typeof u.srcset=="string"&&(u.srcset=this.Vb(u.srcset))),this.Ub(c.localName)&&(typeof u.href=="string"&&(u.href=this.Bu(u.href)),typeof u[$o]=="string"&&(u[$o]=this.Bu(u[$o]))),this.$i&&c.localName==="link"&&(!((e=u.href)===null||e===void 0)&&e.length)&&u.rel==="stylesheet"){let h=this.jr(wi(u.href),!0);u["data-cs-original-href"]=u.href,u.href=h}}}}return t}disableOnlineAssets(){this.$i=!1}enableOnlineAssets(){this.$i=!0}isOnlineAssetsActivated(){return this.$i}kb(t,e){if(!t||e!=="style"||t.data==null)return;let s=this.ju(t.data);s!==null&&(t.data=s)}Bu(t){return be(t)||this.$i?this.jr(t,!1,U.now()):t}Vb(t){if(!this.$i)return t;let e=t,s=Ec(t);for(let n of s){let o=this.jr(wi(n),!1);e=csString.prototype.replace.call(e,n,o)}return e}ju(t){let e=nr(t),s=t,n=U.now();for(let o of e){let c=be(o);if(!(c||this.$i)||this.Hb(o))continue;let l=Tg(o),u=o;c?u=this.jr(o,!1,n):this.$i&&(l?u=this.jr(o,!0,n):u=this.jr(wi(o),!1,n)),s=csString.prototype.replace.call(s,o,u)}return s}jr(t,e,s=U.now()){let n=this.Db++;this.Hu++;let o=e?Yl.toCSSStaticResourceEvent:Yl.toStaticResourceEvent,c=new Id(async l=>{try{let u=await o(t,n,s,this.$i);l(u||{type:"warning",message:`Failed to process static resource: ${t}`})}catch(u){l({type:"warning",message:u})}finally{this.Hu--}});return this.emitEvent(c),this.Mb+n}Lb(t){return t==="img"}Ub(t){return t==="image"}xb(t,e){return t==="source"&&e==="picture"}static isSupported(){return lh()&&jp()&&!!csArray.from}Hb(t){return csString.prototype.replace.call(t,/['"]+/g,"").length===0}}return Os([Zt("StaticResourceManagerProcessor.processEvent")],i.prototype,"processEvent",null),i})();function*Pd(i,r){for(let t of Object.values(i))r(t)&&(yield t)}var wv=(()=>{class i extends Zi{constructor(t){super(),this.tt=t}isListening(t){return t.type==="DOM_INITIAL_STATE"}processEvent(t){for(let e of Pd(t.state,s=>s.type===st.DOCUMENT_NODE))e&&e.type===st.DOCUMENT_NODE&&(e.baseURI=this.tt.anonymizeUrl(e.baseURI));return t}}return Os([Zt("UrlAnonymizationProcessor.processEvent")],i.prototype,"processEvent",null),i})(),{logger:Ei,setLogger:NT}=dr("fastDom");var Av=(()=>{class i{constructor(t){this.oe=t,this.Za=!1,this.Oi=new WeakSet,this.tc=e=>{let s=e.ownerDocument||e;s&&this.Oi.has(s)&&this.oe(e)}}observe(t){this.Oi.has(t)||(this.Oi.add(t),this.Za||(Fi.subscribe(this.tc),this.Za=!0))}disconnect(){this.Za&&(Fi.unsubscribe(this.tc),this.Za=!1),this.Oi=new WeakSet}}return i})(),Tv=(()=>{class i{constructor(t){this.oe=t,this.Ot=new WeakMap,this.ae=e=>this.oe({type:"state",target:e}),this.Ig=e=>this.oe({type:"setAdoptedStyleSheets",target:e}),this.Br=e=>this.oe({type:"styleSheetUpdated",target:e}),this.jb=e=>this.oe({type:"animationUpdated",target:e}),this.Fs=async(e,{name:s})=>{let n=e.effect,o=n==null?void 0:n.target;o&&((s==="updatePlaybackRate"||s==="reverse")&&await e.ready,this.oe({type:"animationUpdated",target:o}))},this.po=e=>{var s;let n=(s=this.Bb(e))===null||s===void 0?void 0:s.parentStyleSheet;n&&this.Br(n)},this.$b=e=>this.oe({type:"styleSheetDisabledChanged",target:e}),this.Pg=e=>{let s=e.ownerDocument;s&&this.oe({type:"activeElementChanged",target:s})},this.tc=e=>this.oe({type:"metadataChanged",target:e})}Gb(t){return csNodenodeType.apply(t)===st.DOCUMENT_NODE}zb(t){let e=[Xt(t,"input",s=>this.ae(csEventtarget.apply(s))),Xt(t,"change",s=>this.ae(csEventtarget.apply(s))),Xt(t,"checked",s=>this.ae(csEventtarget.apply(s))),Xt(t,"scroll",s=>this.ae(csEventtarget.apply(s))),Xt(t,"toggle",s=>this.ae(csEventtarget.apply(s))),Xt(t,"focusin",s=>this.Pg(csEventtarget.apply(s))),Xt(t,"focusout",s=>this.Pg(csEventtarget.apply(s))),Xt(t,"pointerover",s=>{let n=csEventtarget.apply(s),o=n.ownerDocument;o&&this.oe({type:"pointerOverElement",target:o,element:n})}),Xt(t,"pointerout",s=>{let o=csEventtarget.apply(s).ownerDocument;o&&this.oe({type:"pointerOverElement",target:o,element:null})}),Xt(t,"load",s=>{let n=csEventtarget.apply(s);switch(n.localName){case"iframe":case"link":this.oe({type:"loaded",target:n});break}})];this.ic(t,()=>{csArray.prototype.forEach.call(e,s=>s())})}qb(t){let e=t.defaultView;if(!e)return;let s=[Xt(e,"resize",()=>this.ae(t)),...e.visualViewport?[Xt(e.visualViewport,"resize",()=>this.ae(t)),Xt(e.visualViewport,"scroll",()=>this.ae(t))]:[],Xt(t,"visibilitychange",()=>this.ae(t)),Xt(t,"fullscreenchange",()=>this.ae(t)),et(e.Document,"adoptedStyleSheets",this.Ig,{mode:$i.Methods}),et(e.ShadowRoot,"adoptedStyleSheets",this.Ig,{mode:$i.Methods}),et(e.Element,"attachShadow",(n,{result:o})=>{this.oe({type:"attachShadow",target:n,shadowRoot:o})}),et(e.HTMLInputElement,"value",this.ae),et(e.HTMLInputElement,"checked",this.ae),et(e.HTMLSelectElement,"selectedIndex",this.ae),et(e.CSSStyleSheet,"insertRule",this.Br),et(e.CSSStyleSheet,"deleteRule",this.Br),et(e.CSSStyleSheet,"replace",this.Br),et(e.CSSStyleSheet,"replaceSync",this.Br),et(e.CSSStyleSheet,"addRule",this.Br),et(e.CSSStyleRule,"style",this.po,{mode:$i.Properties}),et(e.CSSGroupingRule,"insertRule",this.po),et(e.CSSGroupingRule,"deleteRule",this.po),et(e.CSSStyleDeclaration,"setProperty",this.po),et(e.CSSStyleDeclaration,"removeProperty",this.po),et(e.StyleSheet,"disabled",this.$b),et(e.HTMLDialogElement,"show",this.ae),et(e.HTMLDialogElement,"showModal",this.ae),et(e.HTMLDialogElement,"close",this.ae),et(e.CustomElementRegistry,"define",(n,{args:o})=>{this.oe({type:"customElementRegistration",target:t,name:o[0]})}),et(e.Element,"animate",this.jb),et(e.Animation,"play",this.Fs),et(e.Animation,"pause",this.Fs),et(e.Animation,"finish",this.Fs),et(e.Animation,"cancel",this.Fs),et(e.Animation,"reverse",this.Fs),et(e.Animation,"updatePlaybackRate",this.Fs),et(e.Animation,"currentTime",this.Fs,{mode:$i.Properties})];this.ic(t,()=>{csArray.prototype.forEach.call(s,n=>n())})}Bb(t){for(;t.parentRule!==null;)t=t.parentRule;return t}Fb(t){let e=new csMutationObserver(s=>{this.oe(s)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,characterData:!0}),this.ic(t,()=>{e.disconnect()})}Wb(t){let e=new Av(this.tc);e.observe(t),this.ic(t,()=>{e.disconnect()})}ic(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.zb(t),this.Gb(t)&&(this.qb(t),this.Wb(t)),this.Fb(t))}disconnect(t){let e=this.Ot.get(t)||[];for(let s of e)try{s()}catch(n){Ei.warn(n)}this.Ot.delete(t)}}return i})(),Xl=(()=>{class i{get length(){return this.It.length}constructor(){this.go=[],this.It=new en,this.$u=new Set}Yb(t){switch(t.type){case"attributes":return`-${t.attributeNamespace}-${t.attributeName}`;default:return""}}Xb(t){switch(t.type){case"pointerOverElement":case"customElementRegistration":return}return`${ot(t.target)}-${t.type}${this.Yb(t)}`}Kb(t){switch(t.type){case"state":return As.High;default:return As.Low}}Jb(t){let e=this.Xb(t);if(e){if(this.$u.has(e))return;this.$u.add(e)}return this.It.push({mutation:t,key:e},this.Kb(t))}Qb(){this.go.length!==0&&(csArray.prototype.forEach.call(csArray.prototype.flat.call(this.go),t=>this.Jb(t)),this.go=[])}push(t){csArray.prototype.push.call(this.go,t)}shift(){this.Qb();let t=this.It.shift();if(t)return t.key&&this.$u.delete(t.key),t.mutation}isEmpty(){return this.It.isEmpty()&&this.go.length===0}}return i})(),bv=new Ts;function ps(i,r=As.Low){return bv.task(i,r)}function Rv(i){return{get node(){return csNodenextSibling.apply(i)}}}function Cv(i){return{get node(){return csNodefirstChild.apply(i)}}}function Iv(i){return{get node(){return i.contentDocument}}}function Pv(i){return{get node(){return csElementshadowRoot.apply(i)}}}function Nv(i){return typeof i=="boolean"}function Xr(i){return typeof i=="number"&&!Number.isNaN(i)}function Ov(i){return typeof i=="string"}function Kl(i,r){try{return i.matches(r)}catch{return!1}}function Mv(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 Dv=40,Kr=["nextSibling","firstChild","contentDocument","shadowRoot","sheetId"];function Jr(i,r){return!!i&&r in i&&!!i[r]}var Jl={"http://www.w3.org/1999/xhtml":void 0,"http://www.w3.org/2000/svg":"svg"},Ql=(()=>{class i{constructor(t){this.C=t,this.W=new Tv(e=>{this.sc.push(e),this.Zb()}),this.Gu=!1,this.Fe={},this.qe=new Map,this.sc=new Xl,this.mo=new Map,this.Eo=null,this.processedMutationsCount=0,this.serializedNodeCount=0,this.Ng=0,this.Og=Dv}disconnect(){var t;for(let e of this.mo.values())this.W.disconnect(e);this.mo.clear(),this.Fe={},this.qe.clear(),this.sc=new Xl,(t=this.zu)===null||t===void 0||t.abort(),this.zu=void 0}observe(t){return this.disconnect(),this.rc(t),this}getState(t=!0){return this.Gu=!1,t&&this.Mg(),this.Fe}getChanges(){let t={};for(let[s,n]of this.qe){let o=this.Fe[s];if(!(n&&!o))if(o&&!n)t[s]=Hi(o);else{let c=bh(n,o);c!==void 0&&(t[s]=c)}}return this.Mg(),Th(t)?t:void 0}setFrameRate(t){return this.Og=t/1e3,this}onChange(t){return this.C=t,()=>{this.C===t&&(this.C=void 0,this.yo&&(csClearTimeout(this.yo),this.yo=void 0))}}async getStateAsync(t=!0){return await this.Dg(),this.getState(t)}async getChangesAsync(){return await this.Dg(),this.getChanges()}async Dg(){return new Promise(t=>{ps(()=>t())})}Mg(){this.qe.clear()}static apply(t,e,s){let n={...t},o=new Set,c=new Set,l=y=>{c.has(y)?c.delete(y):o.add(y)},u=y=>{o.has(y)?o.delete(y):c.add(y)};function h(y,m){for(let _ of Kr)_ in m&&(Jr(y,_)&&l(y[_]),Jr(m,_)&&u(m[_]))}for(let y in e){let m=e[y];if(m==null)continue;let _=y,A=n[_],D=m,I=A===void 0?D:Rh(A,D);h(A,D),n[_]=I}let p=csArray.from(o);for(;p.length>0;){let y=csArray.prototype.pop.call(p);if(c.has(y))continue;let m=n[y];if(m){delete n[y],s==null||s(y);for(let _ of Kr)Jr(m,_)&&csArray.prototype.push.call(p,m[_])}}return n}static nodeRelationsEntries(t,e=!1){let s=e?Kr.filter(o=>o!=="nextSibling"):Kr,n=[];for(let o of s)Jr(t,o)&&csArray.prototype.push.call(n,{key:o,nodeId:t[o]});return n}qu(){this.Gu||(this.Fe={...this.Fe},this.Gu=!0)}ht(t){if(this.qu(),t in this.Fe&&!this.qe.has(t)){let e=this.Fe[t];this.qe.set(t,Hi(e)),this.Fe[t]=Hi(e)}return this.Fe[t]}t0(t){var e;let s=t.effect;return{keyframes:this.e0((e=s==null?void 0:s.getKeyframes())!==null&&e!==void 0?e:[]),options:this.i0(t,s),time:this.s0(t.currentTime),state:t.playState,rate:t.playbackRate}}s0(t){if(t!==null)return Xr(t)?Math.trunc(t):t}e0(t){return csArray.prototype.reduce.call(t,(e,s,n)=>(e[n]=s,e),{})}i0(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)&&Ei.warn("FastDOM: Non-default animation timeline detected; serialization may be inaccurate."),o}r0(t){try{let e=t.cssRules.length,s={};for(let n=0;n{let n=e||{};return n[an(s.namespaceURI,s.name)]=s.value,n},void 0)}Lg(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}}}c0(t){return t.open?Kl(t,":modal")?Yr.OpenModal:Yr.Open:Yr.Closed}xg(t){let e={},s=!1;if("value"in t&&Ov(t.value)&&(e.value=t.value,s=!0),"selectedIndex"in t&&Xr(t.selectedIndex)&&t.selectedIndex>=0&&(e.selectedIndex=t.selectedIndex,s=!0),"checked"in t&&Nv(t.checked)&&(e.checked=t.checked,s=!0),t.popover&&Kl(t,":popover-open"))e.popover=!0,s=!0;else if(t.localName==="dialog"){let c=this.c0(t);e.dialog=c,e.open=c!==Yr.Closed,s=!0}let{scrollLeft:n,scrollTop:o}=t;return Xr(n)&&n!==0&&(e.scrollX=n,s=!0),Xr(o)&&o!==0&&(e.scrollY=o,s=!0),s?e:void 0}Zb(){var t;((t=this.zu)===null||t===void 0?void 0:t.isEnded)!==!1&&(this.zu=ps(e=>(this.Ir(e),this.Vg(),this.sc.isEmpty()?xt.Stop:xt.Reschedule)))}Vg(){if(!this.C||this.yo)return;let t=performance.now()-this.Ng,e=Math.max(0,this.Og-t);this.yo=csSetTimeout(()=>{this.yo=void 0;let s=this.getChanges();this.Ng=performance.now(),s&&this.C(s,this.getState())},e)}l0(t){for(let e=t==null?void 0:t.previousSibling;e;e=e.previousSibling)if(this.isVirtualized(e))return ot(e)}u0(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 ot(s)}rc(t){if(this.isVirtualized(t))return;let e=new Sn;this.Ug(t,e),!e.isEmpty()&&ps(s=>{let n;for(;s.hasTimeLeft&&(n=e.shift());){let o=n.node;if(!o||!this.ks(o))continue;let c=this.u0(o);c&&(this.isVirtualized(o)||this.Ug(o,e),this.Hg(o,c),csNodenextSibling.apply(o)&&e.push(Rv(o)))}return e.isEmpty()?xt.Stop:xt.Continue})}h0(t){switch(t){case st.DOCUMENT_NODE:return"contentDocument";case st.DOCUMENT_FRAGMENT_NODE:return"shadowRoot";default:return"childList"}}$r(t){ps(()=>{let e=t.ownerNode;if(e&&(!this.ks(e)||!this.isVirtualized(e)))return xt.Stop;if(this.isVirtualized(t)||!e||e.localName==="style"?this.jg(t):this.Fu(ot(t),{type:st.CSS_STYLESHEET_NODE,cssRules:{},disabled:t.disabled}),e&&this.isVirtualized(e)){let s=ot(e);this.ht(s).sheetId=ot(t)}return xt.Stop})}d0(t){var e;this.Eo||(this.Eo=new Map,csQueueMicrotask(()=>{this.Eo=null}));let s=t.ownerDocument;if(!s)return[];let n=this.Eo.get(s);return n||(n=Mv(s),this.Eo.set(s,n)),(e=n.get(t))!==null&&e!==void 0?e:[]}Bg(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;ps(u=>{if(!this.isVirtualized(t)||!this.ks(t))return xt.Stop;let h=this.ht(ot(t));if(!h)return xt.Stop;for(;u.hasTimeLeft&&c0?o:void 0,xt.Stop)})}$g(t){let e=0,s=ot(t),n=t.adoptedStyleSheets||[],o=n.length,c={};ps(l=>{if(!this.isVirtualized(t)||!this.ks(t)||n!==t.adoptedStyleSheets)return xt.Stop;for(;l.hasTimeLeft&&e0&&this.Bg(h,p),csElementshadowRoot.apply(h)&&e.push(Pv(h));break}break}}csNodefirstChild.apply(t)&&e.push(Cv(t))}zg(t,e){let s=this.ht(t),n=s.customElements||(s.customElements={});n[e]=1}qg(t){let e=new Sn([t]),s=new Set;this.Fg(t);let n;for(;n=e.shift();){if(s.has(n)){Ei.warn(`Node id ${n} already visited during deletion process`);continue}s.add(n);let o=this.ht(n);if(o){switch(o.type){case st.DOCUMENT_NODE:case st.DOCUMENT_FRAGMENT_NODE:this.W.disconnect(this.mo.get(n)),this.mo.delete(n)}this.qu(),delete this.Fe[n];for(let{nodeId:c}of i.nodeRelationsEntries(o))e.push(c)}}}Wu(t,e,s,n){t&&this.Fg(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}}f0(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)){Ei.warn(`Cycle detected in children of node id ${t}, breaking traversal.`);break}n.add(o)}return n}ks(t){let e="isConnected"in t?t:"ownerNode"in t?t.ownerNode:null;return e?csNodeisConnected.apply(e):!0}Fg(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}}kg(t){try{let e=Fi.getAll(t);if(e)return Hi(e)}catch(e){Ei.error("FastDOM.serializeNodeMetadata",e)}}Ir(t){var e,s;let n;for(;t.hasTimeLeft&&(n=this.sc.shift());){if(this.processedMutationsCount++,!this.isVirtualized(n.target)||!this.ks(n.target))continue;let o=ot(n.target);switch(n.type){case"attachShadow":{this.rc(n.shadowRoot),this.Hg(n.shadowRoot,o);break}case"childList":{let c,l=this.f0(o);for(let h=csNodefirstChild.apply(n.target);h;h=csNodenextSibling.apply(h)){this.rc(h);let p=ot(h);l.delete(p),this.Wu(p,c,o),c=p}this.Wu(void 0,c,o);for(let h of l)this.qg(h);let u=this.ht(o);if(u.type===st.ELEMENT_NODE&&u.localName==="style"){let h=n.target.sheet;h&&this.$r(h)}break}case"characterData":{let c=this.ht(o);if(c.type===st.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.$r(l)}break}case"attributes":{let c=an(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===st.DOCUMENT_NODE?Object.assign(c,this.Lg(n.target)):c.state=this.xg(n.target);break}case"setAdoptedStyleSheets":{this.$g(n.target);break}case"styleSheetUpdated":{this.$r(n.target);break}case"styleSheetDisabledChanged":{let c=this.ht(o);c.disabled=n.target.disabled;break}case"animationUpdated":{this.Bg(n.target);break}case"loaded":{switch(n.target.localName){case"link":{let c=n.target;c.rel==="stylesheet"&&c.sheet&&this.$r(c.sheet);break}case"iframe":{let c=n.target,l=this.ht(o),u=c.contentDocument,h=u&&ot(u);l.contentDocument&&l.contentDocument!==h&&(this.qg(l.contentDocument),delete l.contentDocument),this.Gg(c)&&this.rc(u);break}}break}case"activeElementChanged":{let c=this.ht(o),l=n.target.activeElement||void 0;c.activeId=l&&ot(l);break}case"pointerOverElement":{let c=this.ht(o),l=n.element||void 0;c.hoveredId=l&&ot(l);break}case"customElementRegistration":{this.zg(o,n.name);break}case"metadataChanged":{let c=this.ht(o);c.metadata=this.kg(n.target);break}}}}}return i.trackIframeContent=!1,i.cloneDeep=Hi,i.findNodes=Pd,i.stringifyAttrKey=an,i.parseAttrKey=vv,i})(),kv=5e3,Lv=(()=>{class i extends Ms{constructor(){super(...arguments),this.Yu=0}get name(){return"DomStateProducer"}async onStart(){this.Xu();let t=++this.Yu;this.So||(this.So=new Ql().observe(_d));let e=await this.So.getStateAsync();if(t!==this.Yu)return;let s=Ql.cloneDeep(e);this.produceEvent({type:"DOM_INITIAL_STATE",state:s}),this.Wn=this.So.onChange((n,o)=>{this.produceEvent({type:"DOM_PATCH",diff:n,state:o})})}onStop(){var t;this.Yu++,(t=this.Wn)===null||t===void 0||t.call(this),this.p0()}p0(){this.Xu(),this.Ku=csSetTimeout(()=>{this.destroy()},kv)}Xu(){this.Ku!==void 0&&(csClearTimeout(this.Ku),this.Ku=void 0)}destroy(){var t;this.Xu(),(t=this.So)===null||t===void 0||t.disconnect(),this.So=void 0}}return i})(),Zl=(()=>{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 Wg(){if(this.isNavigationTimingObserverSupported())return new _w.PerformanceObserver(t=>i.g0(t))}static g0(t){let s=t.getEntriesByType("navigation")[0];s&&(this.Ws=s,i.Or(s))}static Cn(t){this.m0(t),this.Ws&&t(this.Ws),this.We||this.E0()}static m0(t){this.jt.add(t)}static y0(t){this.jt.delete(t)}static E0(){if(this._o||(this._o=this.Wg()),!this._o){this.Ws||(this.Ws={requestStart:_w.performance.timing.requestStart,domInteractive:_w.performance.timing.domInteractive}),this.Or(this.Ws);return}this._o.observe({type:"navigation",buffered:!0}),this.We=!0}static Or(t){this.jt.forEach(e=>e(t))}static Pn(t){this.y0(t),this.jt.size===0&&this.vo()}static vo(){var t;this.We&&((t=this._o)===null||t===void 0||t.disconnect(),this.We=!1,this.Ws=null,this._o=this.Wg())}constructor(t){this.C=t}observe(){i.Cn(this.C)}disconnect(){i.Pn(this.C)}}return i.We=!1,i.jt=new Set,i.Ws=null,i})(),xv=(()=>{class i extends Ms{constructor(){super(...arguments),this.nc=null,this.Yg=new Zl(t=>{if(this.nc)return;let e=this.S0(t);e&&(this.nc=e,this.produceEvent(e))})}onStart(){if(this.nc){this.produceEvent(this.nc);return}this.Yg.observe()}onStop(){this.Yg.disconnect()}S0(t){let e=Zl.getTimeOrigin();return{type:"PerformanceTiming",timings:{timeOrigin:e,requestStart:Math.floor(e+t.requestStart),domInteractive:Math.floor(e+t.domInteractive)},timestamp:U.now()}}}return i})(),Vv=(()=>{class i extends Ms{constructor(){super(),this.Xn=new yd(this.ou.bind(this))}onStart(){this.Xn.observe()}onStop(){this.Xn.disconnect()}ou(t){let e=this._0(t);e&&this.produceEvent(e)}_0(t){return this.v0(t)?{type:"Gesture",targetId:ot(t.target),data:{type:t.type,direction:t.direction,distance:t.distance,velocity:t.velocity,pageX:t.pageX,pageY:t.pageY}}:null}v0(t){return tn(t.target)&&!(Ct(t.target)&&G.isMaskedElementChild(t.target))}}return i})(),gs=[],Pa=!1,Nd=mr(Hv,"executeTasks");function Uv(i){if(csArray.prototype.push.call(gs,i),!Pa){for(let r=0;r<3;r++)csSetTimeout(Nd);Pa=!0}}function Hv(){let i=csDate.now();for(let r=0;r=35){gs=csArray.prototype.slice.call(gs,r+1),csSetTimeout(Nd);return}gs=[],Pa=!1}var gi=(()=>{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})(),Od=(()=>{class i{constructor(){this.It=new Y_,this.Ht=gi.Stopped,this.C=null,this.Xg=t=>{this.Ht===gi.Stopped||!t||(this.C(t),this.Kg())}}get queueLength(){return this.It.length}start(t){if(this.C)throw new Error("callback already set");this.Ht=gi.Started,this.C=t}push(t){this.It.push(t),this.w0()}stop(){this.C=null,this.Ht=gi.Stopped,this.It.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),dt(s,u=>u.subscribe(h=>l.push(h))),s=[c]}let o=new jv(n);return dt(s,c=>c.subscribe(l=>o.push(l))),o}Jg(){return this.Ht===gi.Stopped}Ei(){return this.Ht===gi.Processing}Kg(){if(!this.Jg()){if(this.It.isEmpty){this.Ht=gi.Completed;return}this.Ht=gi.Processing,Uv(()=>{let t=this.It.pop();t instanceof Id?t.complete(this.Xg):this.Xg(t)})}}w0(){this.Jg()||this.Ei()||this.Kg()}}return i})(),jv=(()=>{class i extends Od{constructor(t){super(),this.Qg=t}get queueLength(){return csArray.prototype.reduce.call(this.Qg,(t,e)=>t+e.queueLength,0)}stop(){super.stop(),dt(this.Qg,t=>t.stop())}}return i})(),Bv=(()=>{class i{constructor(t,e=[]){this.producers=t,this.processors=e,this.bt=!1,this.jt=[]}get pendingEvents(){var t,e;return(e=(t=this.It)===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.jt;this.It=Od.pipe(this.producers,this.processors),this.It.start(e=>csArray.prototype.forEach.call(t,s=>s(e))),dt(this.producers,e=>e.start()),dt(this.processors,e=>e.start()),this.bt=!0}stop(){this.It.stop(),this.jt.length=0;for(let t of this.producers)t.stop();for(let t of this.processors)t.stop();this.bt=!1,this.jt=[]}subscribe(t){if(this.bt)throw new Error("Recording is already started.");return csArray.prototype.push.call(this.jt,t),()=>this.jt=csArray.prototype.filter.call(this.jt,e=>e!==t)}}return i})(),$v=(()=>{class i{constructor(t=100){this.A0=t,this.oc={},this.wo=null,this.Uu="original-resource-name"}onEvent(t){this.T0=t}processEvent(t){this.b0(t.resourceId,t.resource.hash,t.originalResourceName),this.R0(t)}flushEvents(){this.wo&&csClearTimeout(this.wo),this.Zg()}onSendStaticResource(t){this.R0=t}Zg(){if(!Object.keys(this.oc).length)return;let t={type:X.RESOURCE_HASHES,date:U.now(),args:[this.oc]};this.wo=null,this.oc={},this.T0(t)}b0(t,e,s){let n=e;s&&(n+=`?${this.Uu}=${s}`),this.oc[t]=n,!this.wo&&(this.wo=_w.csSetTimeout(()=>this.Zg(),this.A0))}}return i})();function Gv(i){let r=zv(i.data);return{type:X.GESTURE_RECOGNITION,args:[i.targetId,r],date:i.timestamp}}function zv(i){let r={type:qv(i.type)};for(let t in i){let e=i[t];e!==void 0&&t!=="type"&&(r[t]=e)}return r}function qv(i){switch(i){case Vt.DRAG:case Vt.FLICK:return Ys.SWIPE;case Vt.LONG_PRESS:return Ys.LONG_PRESS;case Vt.TAP:return Ys.TAP;case Vt.PINCH_IN:return Ys.PINCH_IN;case Vt.PINCH_OUT:return Ys.PINCH_OUT}}var Go=(()=>{let i;return function(r){r.REQUEST_START="requestStart",r.DOM_INTERACTIVE="domInteractive",r.TIME_ORIGIN="timeOrigin"}(i||(i={})),i})();function Fv(i){return{type:X.PERFORMANCE_TIMINGS,args:[{performanceTiming:Go.REQUEST_START,timestamp:i.timings.requestStart},{performanceTiming:Go.DOM_INTERACTIVE,timestamp:i.timings.domInteractive},{performanceTiming:Go.TIME_ORIGIN,timestamp:i.timings.timeOrigin}],date:i.timestamp}}var Wv=500,zo=0;function Yv(){return{processEvent(i,r){if(i.originalEvent.type===X.PERFORMANCE_RESOURCE_TIMING)return zo>=Wv?null:(zo+=1,r({...i.originalEvent,date:i.timestamp}));r(i.originalEvent)},reset(){zo=0}}}var Xv=["parent","previousSibling","metadata"];function tu(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 Xv)o in s&&(delete s[o],n=!0);r&&n&&Object.keys(s).length===0&&delete t[e]}return i}function Kv(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 Jv=20;function Qv(i){return Kv(r=>{let t={visibleInViewPort:r},e={type:X.TEXT_VISIBILITY,date:U.now(),args:[t]};i(e)},{batchSize:Jv,autoFlushDelay:1e3})}var Zv=(()=>{class i{get pendingEvents(){return this.ac.pendingEvents}constructor(t,e,s,n,o){this.ac=t,this.w=e,this.De=s,this.yi=n,this.Gi=o,this.si=()=>{},this.cc=()=>{},this.tm=Qv(c=>this.si(c))}start(){var t,e;this.em=Yv(),this.ac.subscribe(s=>{var n,o,c,l,u,h;let p=s,{timestamp:y}=p;switch(p.type){case"Legacy":{let m=p.eventType==="user"?(n=this.cc)!==null&&n!==void 0?n:()=>{}:this.si;this.em.processEvent(p,m)}break;case"inputEncryptedText":{let{target:m,value:_,encryptedData:A,encryptionMetadata:D}=p;(o=this.cc)===null||o===void 0||o.call(this,{type:X.INPUT_ENCRYPTED_TEXT,date:y,args:[m,_,A,D]});break}case"encryptedCharacterDataChanged":{let{target:m,rawData:_,encryptedData:A,encryptionMetadata:D}=p;this.si({type:X.MUTATION_ENCRYPTED_CHARACTER_DATA,date:y,args:[m,_,A,D]});break}case"StaticResource":{let{url:m}=p;this.si({type:X.STATIC_RESOURCE_URL,date:y,args:[m]});break}case"ResizeMaskedElement":{let{target:m,width:_,height:A}=p;this.si({type:X.MUTATION_ATTRIBUTE,date:y,args:[m,"","style",`width:${_}px !important;height:${A}px !important;`]});break}case"Gesture":{let m=Gv(s);(c=this.cc)===null||c===void 0||c.call(this,m);break}case"TextVisibility":{this.tm.push(p.text);break}case"StaticResourceManagerEvent":{(l=this.De)===null||l===void 0||l.processEvent(p);break}case"PerformanceTiming":{this.si(Fv(p));break}case"CustomError":{let m=(u=this.Gi)===null||u===void 0?void 0:u.translate(p);m&&this.si(m);break}case"JSError":{let m=(h=this.yi)===null||h===void 0?void 0:h.translate(p);m&&this.si(m);break}case"DOM_INITIAL_STATE":{let m=tu(p),_={type:X.DOM_INITIAL_STATE,date:y,args:[m.state]};this.w.emitInitialDomDone(_);break}case"DOM_PATCH":{let m=tu(p),_={type:X.DOM_PATCH_STATE,date:y,args:[m.diff]};this.si(_);break}case"warning":{z.warn(p.message);break}default:z.error(`WebRecorderEventTranslator: Event not supported (${p.type})`);break}}),this.w.emitInitialDomStart(),(t=this.yi)===null||t===void 0||t.start(),(e=this.Gi)===null||e===void 0||e.start(),this.ac.start()}stop(){var t,e,s;this.reset(),this.flush(),this.ac.stop(),(t=this.De)===null||t===void 0||t.flushEvents(),(e=this.yi)===null||e===void 0||e.stop(),(s=this.Gi)===null||s===void 0||s.stop()}flush(){this.tm.flush()}onEvent(t,e){var s;this.si=t,this.cc=e,(s=this.De)===null||s===void 0||s.onEvent(n=>this.si(n))}reset(){this.em.reset()}}return i})(),tw=(()=>{class i extends Ms{constructor(t){super(),this.Ye=t}subscribe(t){return super.subscribe(t)}onStart(){dt(this.Ye,t=>{t.onEvent(e=>{var s;return this.Gr(e,(s=t.eventType)!==null&&s!==void 0?s:"browser")})}),dt(this.Ye,t=>{var e;(e=t.start)===null||e===void 0||e.call(t)})}onStop(){dt(this.Ye,t=>{var e;return(e=t.stop)===null||e===void 0?void 0:e.call(t)})}Gr(t,e){this.produceEvent({timestamp:U.now(),type:"Legacy",originalEvent:t,eventType:e})}}return i})(),Md=(()=>{class i{constructor(t){this.C=t,this.us=!1,this.ke={boundElement:pt,type:"error",listener:e=>this.C0(e)}}observe(){jt(this.ke,this.us)}disconnect(){kt(this.ke,this.us)}C0(t){this.C(t)}}return i})(),ew=(()=>{class i extends Ms{constructor(){super(...arguments),this.im=new Md(t=>this.I0(t))}I0({message:t,filename:e,lineno:s,colno:n}){t=t!=null?t:"[NO ERROR MESSAGE]",e=!e||be(e)?"":e,this.produceEvent({type:"JSError",message:t,filename:e,lineno:s,colno:n})}onStart(){this.im.observe()}onStop(){this.im.disconnect()}}return i})(),iw=(()=>{class i extends Zi{constructor(t){super(),this.P0=t,this.Ju=1024,this.Qu=150}isListening(t){return t.type==="JSError"}processEvent(t){return t.message=Gt.truncate(t.message,this.Ju,Gt.ELLIPSIS),t.filename=Gt.truncate(t.filename,this.Qu,Gt.ELLIPSIS),this.P0(t)}}return i})();var sw=(()=>{class i{constructor(t){this.rm=t,this.Ze=null,this.nm=!1,this.D0=typeof requestIdleCallback!="undefined"?e=>requestIdleCallback(e):e=>csSetTimeout(e)}async start(){this.nm||(this.nm=!0,await this.k0(this.rm))}stop(){var t;(t=this.Ze)===null||t===void 0||t.call(this),this.Ze=null}async k0(t){await this.L0(pt.document)?t():this.x0(this.rm)}x0(t){this.Ze=et(HTMLElement,"attachInternals",()=>{t(),this.stop()})}async L0(t){await new Promise(n=>this.D0(()=>n()));let e=ye(t,NodeFilter.SHOW_ELEMENT),s=e.nextNode();for(;s;){if(this.V0(s))return!0;s=e.nextNode()}return!1}V0(t){var e;return((e=t.constructor)===null||e===void 0?void 0:e.formAssociated)===!0&&csString.prototype.includes.call(t.tagName,"-")}}return i})(),rw=2,yc=(()=>{class i{constructor(t){this.U0=t,this.lc=0}addString(t){this.lc+=t.length*rw}addArrayBuffer(t){this.lc+=t.byteLength}isThresholdReached(){return this.lc>this.U0}reset(){this.lc=0}}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})(),nw=(()=>{class i{constructor(t,e,s){this.zr=t,this.H0=s,this.Ys=mi.NOT_STARTED,this.hc=[],this.ih=0,this.j0=self.origin,this.Oe=typeof _w=="object"?"":"worker-",this.Le=new yc(e),this.Fl()}async Fl(){await this.om(),this.Ys===mi.READY?this.B0():this.H0(this.hc)}B0(){csArray.prototype.forEach.call(this.hc,t=>{this.save(t)}),this.hc=[]}async save(t){try{if(this.Ys===mi.OPEN_IN_PROGRESS){csArray.prototype.push.call(this.hc,t);return}if(this.Ys!==mi.READY||this.Le.isThresholdReached())return;let{key:e,metadata:s,events:n}=t;if(this.Le.addString(e),typeof n=="string"?this.Le.addString(n):this.Le.addArrayBuffer(n),this.Le.isThresholdReached())return;await this.St.put(`${this.j0}/${e}`,new Response(n,{headers:s}))}catch{}}async recover(t){!this.St&&(await this.om(),this.Ys!==mi.READY)||this.$0(t)}async om(){try{this.Ys=mi.OPEN_IN_PROGRESS,this.St=await self.caches.open(`${this.Oe}${this.zr}`),this.Ys=mi.READY}catch{this.Ys=mi.OPEN_FAILED}}async $0(t){try{if(this.ih++,this.ih>1)return;let e=await this.St.keys();if(e.length===0)return;let s=await this.St.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.St.delete(c))),t(o),this.Le.reset()}catch{}finally{this.ih--}}}return i})(),ow=(()=>{class i{constructor(t){this.fc={},this.Le=new yc(t)}save({key:t,metadata:e,events:s}){this.Le.isThresholdReached()||(this.Le.addString(t),typeof s=="string"?this.Le.addString(s):this.Le.addArrayBuffer(s),!this.Le.isThresholdReached()&&(this.fc[t]={metadata:e,events:s}))}recover(t){let e=[];csArray.prototype.forEach.call(this.G0(),s=>{let n=this.fc[s];n!==void 0&&(delete n.metadata.datatype,csArray.prototype.push.call(e,n),this.z0(s))}),e.length!==0&&(t(e),this.Le.reset())}G0(){return Object.keys(this.fc)}z0(t){delete this.fc[t]}}return i})(),aw=(()=>{class i{constructor(t){try{this.q0(t)}catch{this.rh()}}q0(t){self.caches?this.F0(t):this.rh()}save(t){this.pc.save(t)}recover(t){this.pc.recover(t)}F0(t){this.pc=new nw(t,i.am,e=>{this.rh(e)})}rh(t){this.pc=new ow(i.am),t&&csArray.prototype.forEach.call(t,e=>{this.pc.save(e)})}}return i.am=1024*1024*16,i})(),Dd=(()=>{class i{constructor(t){this.cm=[],this.lm=[],this.Qe={},this.Ms=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.cm,t)}onBeaconFailure(t){csArray.prototype.push.call(this.lm,t)}send(t){let e=cr.toQuery({...this.Qe,ct:yr.UNCOMPRESSED}),s=this.W0(e,t);return s?csArray.prototype.forEach.call(this.cm,n=>n()):csArray.prototype.forEach.call(this.lm,n=>n(this.Qe)),s}W0(t,e){try{if(typeof csNavigatorsendBeacon!="function")return!1;let s=csNavigatorsendBeacon(`${this.Ms}?${t}`,e||"");if(s)return s}catch{}return typeof navigator.sendBeacon!="function"?!1:navigator.sendBeacon(`${this.Ms}?${t}`,e||"")}}return i})(),hr=(()=>{class i{constructor(...t){this.um=t}addProvider(t){csArray.prototype.push.call(this.um,t)}getRequestParameters(){return csArray.prototype.reduce.call(this.um,(t,e)=>({...e.getRequestParameters(),...t}),{})}}return i})(),cw=(()=>{class i{constructor(t,e){this.w=t,this.R=e,this.Ao=he.ETR_DISABLED,this.gc=he.ETR_PENDING,this.hm=!0}getEtrStatus(t){t===void 0&&(t=this.R.getSession());let e=t==null?void 0:t.etrStatus;return this.dm()&&e===he.ETR_SAVED_SESSION?e:this.Ao}onEventTriggerRecording(t,e){switch(e){case Ai.ETR_PAGE:this.fm(he.ETR_SAVED_PAGE);break;case Ai.ETR_LEGACY:case Ai.ETR_SESSION:this.fm(he.ETR_SAVED_SESSION);break}}onCollectStateChange(t,e){this.hm=!1,t===j.ANALYTICS_ONLY&&e===Ie.ETR_ON?this.pm(this.gc):this.pm(he.ETR_DISABLED)}pm(t){this.Ao=t,this.gc=he.ETR_PENDING,this.gm(t),this.w.emitRecordingContextChange()}fm(t){this.hm?Number(t)>Number(this.gc)&&(this.gc=t):this.dm()&&Number(t)>Number(this.Ao)&&(this.Ao=t,this.gm(t),this.w.emitRecordingContextChange())}gm(t){let e=this.R.getSession();e!==null&&e.etrStatus===he.ETR_NOT_SAVED_SESSION&&t===he.ETR_SAVED_SESSION&&(e.etrStatus=t,this.R.setSession(e))}dm(){return this.Ao!==he.ETR_DISABLED}}return i})();var lw=(()=>{class i{constructor(t){this.mc=t,this.To=20,this.Ks=0,this.U=!1}translate(t){if(this.Ks>=this.To)return this.mc.stop(),null;this.Ks+=1;let{filename:e,message:s,lineno:n,colno:o,timestamp:c}=t;return{type:X.JAVASCRIPT_ERROR,date:c,args:[{errorType:"jsError",message:s,filename:e,lineno:n,colno:o}]}}start(){this.U||(this.Ks=0,this.U=!0)}stop(){this.U=!1}}return i})(),uw=(()=>{class i{push(t){let e={value:t};this.qr?(this.nh.next=e,this.nh=e):(this.qr=e,this.nh=e)}shift(){if(!this.qr)return;let t=this.qr;return this.qr=t.next,this.qr||(this.nh=void 0),t.value}isEmpty(){return!this.qr}}return i})(),hw=(()=>{class i{constructor(t,e,s=Number.MAX_SAFE_INTEGER){this.Y0=t,this.X0=e,this.mm=s,this.Fr=0,this.oh=0,this.It=new uw,this.St=new Map}push(t){if(t.lengththis.mm)return t;if(this.St.has(t))return{"$\xA7":this.St.get(t)};for(;!this.It.isEmpty()&&(this.St.size>=this.X0||this.oh+t.length>this.mm);){let s=this.It.shift();this.St.delete(s),this.oh-=s.length}this.oh+=t.length;let e=this.Fr++;return this.St.set(t,e),this.It.push(t),t}}return i})();var dw=(()=>{class i{constructor(t){this.se=new hw(t.minStringSize,t.maxElements,t.maxMemorySize)}encode(t){let e=new Set;return this.ah(t,e)}ah(t,e){if(t==null)return t;if(typeof t=="string")return this.se.push(t);if(csArray.isArray(t))return e.has(t)?t:(e.add(t),csArray.prototype.map.call(t,s=>this.ah(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.ah(t[n],e);return s}return t}}return i})();var kd=(()=>{class i{emit(t,e,s,n=_d){let c=`${s!==void 0?`${s}`:`${i.K0}`}${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.J0();if(s===null)return null;let{bubbles:n=!1,cancelable:o=!1,detail:c}=e;return s.initCustomEvent(t,n,o,c),s}static J0(){try{return _d.createEvent("CustomEvent")}catch{return null}}}return i.K0="cs.tracking.",i})(),Re=(()=>{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})(),Ld=(()=>{class i{constructor(){this.U=!1,this.Ss=t=>{try{switch(t.type){case"visibilitychange":return _d.visibilityState==="hidden"?this.Mi(Re.Hidden):this.Mi(Re.Visible);case"pagehide":return _d.visibilityState==="hidden"?this.Mi(Re.PagehideHidden):this.Mi(Re.PagehideVisible);case"blur":return this.Mi(Re.Blur);case"navigate":return this.Q0(t)?this.Mi(Re.ExitPageByNavigate):void 0;default:return}}catch{}}}start(){this.U||(this.U=!0,this.ch(),this.Z0(),this.tR(),Yc()&&this.eR())}stop(){this.U&&(this.U=!1,this.lh(),this.iR(),this.sR(),Yc()&&this.rR())}onEvent(t){this.Mi=t}eR(){_w.navigation.addEventListener("navigate",this.Ss)}rR(){_w.navigation.removeEventListener("navigate",this.Ss)}ch(){_d.addEventListener("visibilitychange",this.Ss)}lh(){_d.removeEventListener("visibilitychange",this.Ss)}Z0(){_w.addEventListener("pagehide",this.Ss)}iR(){_w.removeEventListener("pagehide",this.Ss)}tR(){_w.addEventListener("blur",this.Ss)}sR(){_w.removeEventListener("blur",this.Ss)}Q0(t){return t instanceof NavigateEvent?!t.hashChange&&!t.downloadRequest&&!t.formData:!1}}return i})(),Kt=(()=>{let i;return function(r){r[r.Active=0]="Active",r[r.Paused=1]="Paused",r[r.Stopped=2]="Stopped"}(i||(i={})),i})(),fw=(()=>{class i{constructor(t,e,s=[]){this.Gr=t,this.uh=e,this.nR=s,this.Ec=null,this.Ht=Kt.Active,this.it=[]}reset(){this.Ec=null,this.it=[],this.Ht=Kt.Active}disconnect(){this.Ht=Kt.Stopped}oR(){this.uh(Kt.Paused),this.Ht=Kt.Paused,csSetTimeout(()=>{this.Ht===Kt.Paused&&this.br()},i.STOP_TIMEOUT)}aR(){this.uh(Kt.Active),this.Ht=Kt.Active,dt(this.it,this.Gr),this.it=[]}br(){this.it=[],this.uh(Kt.Stopped),this.Ht=Kt.Stopped}pushEvent(t,e){if(e.isUserEvent&&(this.Ec=t.date,this.Ht!==Kt.Active)){this.aR(),this.Gr(t);return}if(this.cR(t)){this.Gr(t);return}switch(this.Ht){case Kt.Active:if(this.lR(t,e)){this.oR(),csArray.prototype.push.call(this.it,t);return}this.Gr(t);break;case Kt.Paused:csArray.prototype.push.call(this.it,t);break;case Kt.Stopped:break}}lR(t,e){return!e.isUserEvent&&this.Ec!==null&&t.date-this.Ec>i.INACTIVITY_TIMEOUT}cR(t){return csArray.prototype.indexOf.call(this.nR,t.type)>-1}}return i.INACTIVITY_TIMEOUT=5e3,i.STOP_TIMEOUT=5e3,i})(),pw=2e3,eu={encoding:y_.ObjCompression,opts:{minStringSize:256,maxElements:5e5,maxMemorySize:2e7}},Qr=new Set([X.API_ERROR,X.JAVASCRIPT_ERROR,X.CUSTOM_ERROR,X.TEXT_VISIBILITY,X.POINTER_DOWN]),gw=(()=>{class i extends ne{constructor(t,e,s,n,o,c,l,u,h,p,y,m,_,A=[],D,I,C,x,O){super(),this.E=t,this.F=e,this.uR=s,this.V=n,this.R=o,this.Ae=c,this.wt=l,this.ze=u,this.At=h,this.Y=p,this.Bt=y,this.Vt=m,this.Xe=_,this.Ye=A,this.Em=D,this.ce=I,this.bo=C,this.yi=x,this.Gi=O,this._s=0,this.Wr=new kd,this.hh=!0,this.ym=xn(()=>{this.F.eventsCount()>0&&this.Sm()},pw),this.zi=N=>this.processBrowserEvent(N),this.Ro=N=>this.ne(N),this.yc=0,this.Co=0,this.ni=new Ld,this.fh=!1,this._m=50*1024,this.Js=!1,this.Io=!1,this.Qs=[],this.ph=null,this.Sc=new fw(N=>this.X(N),N=>{switch(N){case Kt.Active:this.hR();break;case Kt.Stopped:this.dR();break}},[X.RESOURCE_HASHES,X.TEXT_VISIBILITY,X.API_ERROR,X.JAVASCRIPT_ERROR]),this.vm=N=>{this.Bt.removeBatchInProgress(`${N.params.sn}.${N.params.pn}.${N.params.ri}`)}}init(){this.gh(),this.Y.onLoad(this.vm),this.Y.onError(this.vm)}hR(){csArray.prototype.forEach.call(this.Em,t=>t.start())}dR(){csArray.prototype.forEach.call(this.Em,t=>t.stopForInactivity())}gh(){var t,e,s;this.Xe.onEvent(this.zi,this.Ro),(t=this.At)===null||t===void 0||t.onInputNodeToEncrypt(this.Ro),(e=this.At)===null||e===void 0||e.onApiErrorToEncrypt(n=>{this.wm(n)}),(s=this.At)===null||s===void 0||s.onUserIdentifierToEncrypt(this.zi),this.ni.onEvent(n=>{if(csSetTimeout(()=>this.Zs(Vi.PAGE_STATE,n)),n!==Re.Visible){if(n===Re.Blur)return this.Am();if(!this.fh)return this.fh=!0,csSetTimeout(()=>{this.fh=!1}),n===Re.Hidden?this.Am():this.fR()}})}isRecording(){return this.R.hasValidSession()&&this.isStarted}Am(){if(!this.canSendEvents())return;this.Xe.flush(),this.Bt.saveBatchesInProgress(),dt(this.Ye,l=>{var u,h;return dt((h=(u=l.getPendingEvents)===null||u===void 0?void 0:u.call(l))!==null&&h!==void 0?h:[],p=>this.F.addEvent(p))});let t=this.F.getEvents();if(t.length===0)return;this.Zs(Vi.PENDING_EVENTS,this.Xe.pendingEvents);let e=this.Y.getQueryParams();e.rst=this.getRecordingStartTimestamp(),this.Co=t[t.length-1].date,e.let=this.getRecordingLastEventTimestamp();let s=this.F.getCurrentRequestIndex(),n=s.getCurrentIndex();e.ri=n.toString(),this.Vt.removeQueryParams(),this.Vt.setQueryParams(e);let o=this.Tm(),c=De(o);if(c.length>this._m){let l=csArray.prototype.filter.call(o,h=>Qr.has(h.type));if(l.length>0){let h=De(l);this.Vt.send(h)||this.Bt.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=>!Qr.has(h.type));if(u.length>0){e.ri=s.getCurrentIndex().toString();let h=De(u);this.Bt.save({key:`${e.sn}.${e.pn}.${e.ri}.last`,metadata:{...e,datatype:"json"},events:h}),s.increment()}}else this.Vt.send(c)||this.Bt.save({key:`${e.sn}.${e.pn}.${e.ri}.last`,metadata:{...e,datatype:"json"},events:c}),s.increment();this.Vt.removeQueryParams(),this.F.clearEvents()}fR(){if(!this.canSendEvents())return;this.Xe.flush();let t=this.Y.getQueryParams();this.Bt.saveBatchesInProgress(),t.rst=this.getRecordingStartTimestamp(),delete t.ri,t.hlm="true",this.Vt.removeQueryParams(),dt(this.Ye,o=>{var c,l;return dt((l=(c=o.getPendingEvents)===null||c===void 0?void 0:c.call(o))!==null&&l!==void 0?l:[],u=>this.F.addEvent(u))});let e=this.F.getEvents();if(e.length===0){delete t.let,delete t.rst,this.Vt.setQueryParams(t),this.Vt.send(),this.Vt.removeQueryParams();return}this.Zs(Vi.PENDING_EVENTS,this.Xe.pendingEvents),this.Co=e[e.length-1].date,t.let=this.getRecordingLastEventTimestamp(),this.Vt.setQueryParams(t);let s=this.Tm(),n=De(s);if(n.length>this._m){let o=csArray.prototype.filter.call(s,l=>Qr.has(l.type));if(o.length>0){let l=De(o);this.Vt.send(l)||this.Bt.save({key:`${t.sn}.${t.pn}.last`,metadata:{...t,datatype:"json"},events:l})}else delete t.let,delete t.rst,delete t.ri,this.Vt.removeQueryParams(),this.Vt.setQueryParams(t),this.Vt.send(),this.Vt.removeQueryParams();let c=csArray.prototype.filter.call(s,l=>!Qr.has(l.type));if(c.length>0){t.rst=this.getRecordingStartTimestamp(),t.let=this.getRecordingLastEventTimestamp();let l=this.F.getCurrentRequestIndex(),u=l.getCurrentIndex();t.ri=u.toString();let h=De(c);this.Bt.save({key:`${t.sn}.${t.pn}.${t.ri}.last`,metadata:{...t,datatype:"json"},events:h}),l.increment()}}else this.Vt.send(n)||(this.Bt.save({key:`${t.sn}.${t.pn}.${t.ri}.last`,metadata:{...t,datatype:"json"},events:n}),this.F.getCurrentRequestIndex().increment());this.Vt.removeQueryParams(),this.F.clearEvents()}blockSendingEventsFromSerialization(){this.hh=!1}allowSendingEventsFromSerialization(){this.hh=!0}canSendEvents(){return this.hh}onIframeJavascriptError(t){var e;if(this.Ae&&this.yi){(e=this.Ae)===null||e===void 0||e.anonymize(t);let s=this.yi.translate({message:t.message,colno:t.colno,lineno:t.lineno,filename:t.filename,timestamp:U.now(),type:"JSError"});s&&this.zi(s)}}onIframeCustomError(t){if(this.Gi){let e=this.Gi.translate({...t,timestamp:U.now(),type:"CustomError"});e&&this.zi(e)}}onIframeDetailedApiError(t){this.bm(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.Sc.pushEvent(t,{isUserEvent:!1})}ne(t){this.V.refreshSession(),this.V.isSessionValid()&&this.Sc.pushEvent(t,{isUserEvent:!0})}X(t){this.F.addEvent(t),this.F.isThresholdReached()?this.pushEvents():this.F.isFull()&&this.ym(),this.Rm(t)}pR(t){return t.type===X.DOM_INITIAL_STATE}gR(t){return t.type===X.DOM_PATCH_STATE}Cm(t,e){var s;return t}Tm(){let t=this.F.getOrderedBatchSlots(),e=[];for(let s of t){let n=this.Cm(s.batch.getEvents(),s.metadata.pageNumber);csArray.prototype.push.call(e,...n)}return e}Rm(t){this.E.emitDebugEvents&&this.Wr.emit("recordingEvent",{...t,typeName:X[t.type]})}onStart(){var t;this.Zs(Vi.TAG_VERSION,"15.225.5"),this.Zs(Vi.PAGE_STATE,_d.visibilityState),this.Sc.reset(),this.ni.start(),this.initStates(),this.Xe.start(),this.wt&&this.ze&&this.wt.subscribe(i.Kt,e=>this.bm(e),{detailedEvent:!0}),this.E.emitDebugEvents&&this.Wr.emit("replayRecordingStarted"),csArray.prototype.forEach.call(this.Qs,e=>this.Im(e)),this.Qs=[],this.Js&&((t=this.ce)===null||t===void 0||t.enableOnlineAssets(),this.Js=!1)}onStop(){var t;this.ni.stop(),this.wt&&this.wt.unsubscribe(i.Kt),this.Xe.stop(),this.Sc.disconnect(),(t=this.ce)===null||t===void 0||t.disableOnlineAssets()}clearStates(){this.Xe.flush(),this.ym.cancel(),this.pushEvents(),this.Y.removeQueryParams()}initStates(){this.yc=U.now(),this.F.getCurrentRequestIndex().reset(),this._s=0,this.Y.setQueryParams(this.uR.getRequestParameters())}pushEvents(){dt(this.Ye,t=>{var e;return(e=t.flushEvents)===null||e===void 0?void 0:e.call(t)}),this.F.eventsCount()>0&&(this.isStarted?this.Sm():this.F.clearEvents())}Sm(){if(!this.canSendEvents())return;let t=this.F.getOrderedBatchSlots();for(let e of t){let s=e.batch.getEvents();if(!s.length)continue;let n=this.Cm(s,e.metadata.pageNumber);this.Co=n[n.length-1].date;let o=e.metadata.requestIndex,c=o.getCurrentIndex(),l=this.yc>this.Co?n[0].date:this.yc;this.Y.setQueryParams({pn:csString(e.metadata.pageNumber),ri:c.toString(),rst:l.toString(),let:this.getRecordingLastEventTimestamp()});let u=this.Y.getQueryParams();this.Bt.addBatchInProgress(`${u.sn}.${u.pn}.${c}`,{...this.Y.getQueryParams()},n),this.Y.send(n),o.increment(),e.batch.clearEvents(),this.Pm&&this.Pm()}this.F.clearEmptyBatchSlots()}addInitialDom(t){this.F.addEventByTimestamp(t),this.Rm(t)}bm(t){if(this.bo&&(t.plainCustomRequestHeaders||t.plainCustomResponseHeaders||t.requestBodyAttributes||t.responseBodyAttributes||t.customRequestHeaders||t.customResponseHeaders||t.queryParameters||t.requestBody||t.responseBody)){if(this.bo.truncate(t),this.At){this.At.registerApiErrorToEncrypt(t);return}t.customRequestHeaders="",t.customResponseHeaders="",t.requestBodyAttributes="",t.responseBodyAttributes="",t.queryParameters="",t.requestBody="",t.responseBody=""}this.wm(t)}wm(t){if(this._s{var e;return(e=t.releaseResources)===null||e===void 0?void 0:e.call(t)})}Zs(t,e){if(!this.E.emitRecordInfoEvents)return;let s={date:U.now(),type:X.RECORDING_INFO_EVENT,args:e==null?[t]:[t,e]};this.F.addEvent(s)}}return i.Kt="RecordingService",i._R=255,i.mR=20,i.SR="etrp",i.yR="etrs",i.Nm="1",B([Zt("addInitialDom")],i.prototype,"addInitialDom",null),i})(),mw="T",Ew=(()=>{class i extends ne{constructor(t,e,s){super(),this.pe=t,this.Vt=e,this.Y=s,this.mh=!1,this.Po={},this.vR=n=>{if(n.length!==0)for(let o of n){let{metadata:c,events:l}=o;this.wR(c.rt)&&this.Y.send(l,c)}},_w.addEventListener("focus",()=>{this.recover()})}onStart(){this.Po={}}onStop(){}recover(){this.pe.recover(this.vR)}addBatchInProgress(t,e,s){this.Po[t]={metadata:{...e},events:s}}removeBatchInProgress(t){delete this.Po[t]}blockSendingLastMessage(){this.mh=!1}allowSendingLastMessage(){this.mh=!0}sendLastMessageBeacon(){if(this.mh){let{ri:t,rst:e,let:s,...n}=this.Y.getQueryParams();n.hlm="true",this.Vt.setQueryParams(n),this.Vt.send()}}wR(t){return!!t&&!csString.prototype.includes.call(t,mw)}saveBatchesInProgress(){csArray.prototype.forEach.call(Object.keys(this.Po),t=>{let{metadata:e,events:s}=this.Po[t];this.pe.save({key:`${e.sn}.${e.pn}.${e.ri}`,metadata:{...e,datatype:"json"},events:csJSON.stringify(s)})})}save(t){this.pe.save(t)}}return B([L("RecordingRecovery")],i.prototype,"recover",null),i})(),yw=(()=>{let i;return function(r){r[r.NOT_EXIST=2]="NOT_EXIST"}(i||(i={})),i})(),Sw=8*1024*1024,vw=(()=>{class i extends ne{constructor(t,e,s){super(),this.De=t,this.Mm=e,this.Tt=s,this.Eh={},this.Dm=new Set,this.Ei=!1}initState(){lh()&&(this.Ke=this.Tt.getRequestParameters(),this.AR=`${this.Mm}/exist?${cr.toQuery(this.Ke)}`,this.TR=`${this.Mm}/putTag?${cr.toQuery(this.Ke)}`,this.km=Pn(async()=>{if(this.Ei){this.km();return}this.Ei=!0;try{await this.bR()}finally{this.Ei=!1}},300),this.De.onSendStaticResource(t=>{this.Lm(t)}))}onStart(){}onStop(){}onIframeStaticResource(t){this.Lm(t)}Lm(t){this.xm(t.resource.hash,t.resource.data),t.nestedResources&&t.nestedResources.length>0&&csArray.prototype.forEach.call(t.nestedResources,e=>{this.xm(e.hash,e.data)})}xm(t,e){this.Dm.has(t)||(this.Dm.add(t),this.Eh[t]=e,this.km())}async bR(){let t=this.Eh;this.Eh={};let e=await this.RR(t);if(!e.length)return;let s=this.CR(e);await Promise.all(csArray.prototype.map.call(s,n=>_w.fetch(this.TR,{method:"POST",body:n})))}async IR(t){try{let e=Object.keys(t);if(!e.length)return[];let s={projectId:this.Ke.pid,filter:yw.NOT_EXIST,hashes:e,touch:!0};return await(await _w.fetch(this.AR,{method:"POST",body:csJSON.stringify(s)})).json()}catch{return[]}}async RR(t){let e=[],s=await this.IR(t);return csArray.prototype.forEach.call(s,n=>{let o=t[n];o?csArray.prototype.push.call(e,{hash:n,data:o}):z.warn("SRM: received unknown hash: "+n)}),e}CR(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.Fr=1}getCurrentIndex(){return this.Fr}increment(){this.Fr+=1}reset(){this.Fr=1}getRequestParameters(){return{ri:`${this.Fr}`}}}return i})(),xd=2*1e3*1024,ww=200,su=(()=>{class i{constructor(t=xd){this.Jt=[],this.yh=new yc(t)}addEvent(t){this.yh.addString(De(t)),csArray.prototype.push.call(this.Jt,t)}addEventByTimestamp(t){let e=0;for(;e=t.date);e+=1);csArray.prototype.splice.call(this.Jt,e,0,t)}eventsCount(){return this.Jt.length}clearEvents(){this.yh.reset(),this.Jt=[]}isFull(){return this.eventsCount()>=ww}isThresholdReached(){return this.yh.isThresholdReached()}getEvents(){return this.Jt}extractEvents(...t){let e=[],s=[];return csArray.prototype.forEach.call(this.Jt,n=>{csArray.prototype.indexOf.call(t,n.type)!==-1?csArray.prototype.push.call(e,n):csArray.prototype.push.call(s,n)}),this.Jt=s,e}stringifyEvents(){return De(this.Jt)}VO(t){t.type===X.INITIAL_DOM&&(_w.CSDomSerialized=_w.CSDomSerialized?_w.CSDomSerialized+1:1)}}return B([Zt("RecordingBatch.addEvent")],i.prototype,"addEvent",null),i})(),Aw=3,Tw=8,bw=(()=>{class i{constructor(t,e=xd,s=Aw){this.PR=t,this.Vm=e,this.Sh=s,this._c={}}addEvent(t){this.Um().addEvent(t)}addEventByTimestamp(t){this.Um().addEventByTimestamp(t)}eventsCount(){return csArray.prototype.reduce.call(this.tr(),(t,e)=>t+e.batch.eventsCount(),0)}isFull(){return csArray.prototype.some.call(this.tr(),t=>t.batch.isFull())}isThresholdReached(){let t=this.tr();return t.length>=this.Sh||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 De(this.getEvents())}clearEvents(){csArray.prototype.forEach.call(this.tr(),t=>t.batch.clearEvents())}clearEmptyBatchSlots(){let t=this.getOrderedBatchSlots();for(let e=0;eMath.max(this.Sh,Tw)&&z.warn(`RecordingBatchGroup: max number of slots overflowed(${this.tr().length}/${this.Sh})`),s}Um(){return this.Hm().batch}getCurrentRequestIndex(){return this.Hm().metadata.requestIndex}}return i})();function Rw(i,r){return i.metadata.pageNumber-r.metadata.pageNumber}function ue(i,r=0){let t=Math.pow(10,r);return Math.round(i*t)/t}var Cw=(()=>{class i{constructor(t,e){this.zt=t,this.O=e,this.ls=[{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.Bs()}js(){csArray.prototype.forEach.call(this.ls,t=>jt(t))}Bs(){csArray.prototype.forEach.call(this.ls,t=>kt(t))}triggerInitialEvents(){this.hashChangeListener()}hashChangeListener(){let t={type:X.HASH_CHANGE,args:[this.O.anonymizePII(this.zt.href)],date:U.now()};this.B(t)}visibilityChangeListener(){let t={type:X.VISIBILITY_CHANGE,args:[_d.visibilityState],date:U.now()};this.B(t)}}return B([L("hashChange")],i.prototype,"hashChangeListener",null),B([L("visibilityChange")],i.prototype,"visibilityChangeListener",null),i})();function Iw(i){if(!M(i))return null;let t=/iP(ad|hone|od).+Version\/(\d+)\..*Safari/i.exec(i);return t?Number(t[2]):null}var Pw=33,Nw=(()=>{class i{constructor(){this.eventType="user",this.vh=[],this.UR=[{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.HR=[{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.wc=[{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.Ah=[{type:"scroll",listener:e=>this.scrollListener(csEventtarget.apply(e))}];let t=Iw(_w.navigator.userAgent);(t===null||t&&t>=16)&&csArray.prototype.push.call(this.Ah,{type:"mouseover",listener:e=>this.mouseOverListener(e)}),this.gs=new _r((e,s)=>{switch(s){case"initial":case"added":this.js(e);break;case"removed":this.Bs(e);break}})}init(){this.jR(),this.BR(),this.Ru()}onEvent(t){csArray.prototype.push.call(this.vh,t)}Se(t,e=!1){csArray.prototype.forEach.call(this.vh,s=>s(t,e))}start(){this.$R(),this.js(_d),this.gs.observe()}stop(){this.Bs(_d),this.gs.disconnect(),this.vh=[]}BR(){this.GR()&&csArray.prototype.push.call(this.wc,...this.UR)}jR(){this.zR()&&csArray.prototype.push.call(this.wc,...this.HR)}js(t){hn(t)?csArray.prototype.forEach.call(this.wc,e=>jt(e)):csArray.prototype.forEach.call(this.Ah,e=>{let s={type:e.type,listener:e.listener,boundElement:t};jt(s)})}Bs(t){hn(t)?csArray.prototype.forEach.call(this.wc,e=>kt(e)):csArray.prototype.forEach.call(this.Ah,e=>{let s={type:e.type,listener:e.listener,boundElement:t};kt(s)})}GR(){return"PointerEvent"in _w&&typeof _w.PointerEvent=="function"}zR(){return"TouchEvent"in _w&&typeof _w.TouchEvent=="function"}$R(){this.qR()}qR(){let t=$t.getScrollContainer()||_d,e=ot(t),s=this.jm(t);if(s.top!==0||s.left!==0){let n={type:X.SCROLL,args:[e,s.left,s.top],date:U.now()};this.Se(n,!0)}}jm(t){return t===_d?{top:_w.pageYOffset,left:_w.pageXOffset}:{top:t.scrollTop,left:t.scrollLeft}}scrollListener(t){if(G.isMaskedElement(t)||G.isMaskedElementChild(t))return;let e=ot(t),s=this.jm(t),n={type:X.SCROLL,args:[e,s.left,s.top],date:U.now()};this.Se(n)}mouseOverListener(t){if(G.isMaskedElementChild(t.target))return;let e=ot(t.target),s={type:X.MOUSE_OVER,args:[e],date:U.now()};this.Se(s)}clickListener(t){let e=Ft(t);if(G.isMaskedElementChild(e))return;let s=ot(e),n={type:X.CLICK,args:[s],date:U.now()};this.Se(n)}keyUpListener(t){let e=Ft(t);if(G.isMaskedElementChild(e))return;let s=ot(e),n=this.G[t.key];if(n===void 0)return;let o={type:X.KEY_UP,args:[s,n],date:U.now()};this.Se(o)}keyDownListener(t){let e=Ft(t);if(G.isMaskedElementChild(e))return;let s=ot(e),n=this.G[t.key];if(n===void 0)return;let o={type:X.KEY_DOWN,args:[s,n],date:U.now()};this.Se(o)}copyListener(t){let e=Ft(t);if(G.isMaskedElementChild(e))return;let s=ot(e),n={type:X.CLIPBOARD_COMMAND,args:[s,ys.COPY],date:U.now()};this.Se(n)}cutListener(t){let e=Ft(t);if(G.isMaskedElementChild(e))return;let s=ot(e),n={type:X.CLIPBOARD_COMMAND,args:[s,ys.CUT],date:U.now()};this.Se(n)}pasteListener(t){let e=Ft(t);if(G.isMaskedElementChild(e))return;let s=ot(e),n={type:X.CLIPBOARD_COMMAND,args:[s,ys.PASTE],date:U.now()};this.Se(n)}pointerUpListener(t){let e=Ft(t);if(G.isMaskedElementChild(e))return;let s=ot(e),n={type:X.POINTER_UP,args:[t.pointerId,t.pointerType,ue(t.clientX,1),ue(t.clientY,1),s,t.button],date:U.now()};this.Se(n)}pointerMoveListener(t){let e={type:X.POINTER_MOVE,args:[t.pointerId,t.pointerType,ue(t.clientX,1),ue(t.clientY,1)],date:U.now()};this.Se(e)}pointerDownListener(t){let e=Ft(t);if(G.isMaskedElementChild(e))return;let s=ot(e),n={type:X.POINTER_DOWN,args:[t.pointerId,t.pointerType,ue(t.clientX,1),ue(t.clientY,1),s,t.button,{pageX:ue(t.pageX,1),pageY:ue(t.pageY,1)}],date:U.now()};this.Se(n)}touchStartListener(t){if(!t.changedTouches)return;let{changedTouches:e}=t;for(let s=0;s{class i{constructor(t){this.C=t,this.qi=[],this.FR=gc(e=>this.processUpdateRulesInATick(e)),this.C=e=>Cs(()=>t(e))}observe(){csArray.prototype.push.call(this.qi,et(_w.CSSStyleSheet,"insertRule",(t,{args:e})=>{this.processInsertRule(t,e)}),et(_w.CSSStyleSheet,"deleteRule",(t,{args:e})=>{this.processDeleteRule(t,e)}),et(_w.CSSGroupingRule,"insertRule",t=>{this.processUpdateRule(t)}),et(_w.CSSGroupingRule,"deleteRule",t=>{this.processUpdateRule(t)}),et(_w.StyleSheet,"disabled",(t,{args:e,oldValue:s})=>{let n=e[0];n!==s&&this.WR(t,n)}),et(_w.CSSStyleDeclaration,"setProperty",t=>{let e=t.parentRule;e instanceof CSSStyleRule&&this.processUpdateRule(e)}),et(_w.CSSStyleDeclaration,"removeProperty",t=>{let e=t.parentRule;e instanceof CSSStyleRule&&this.processUpdateRule(e)}),et(_w.CSSStyleRule,"style",t=>{this.processUpdateRule(t)},{mode:$i.Properties}))}disconnect(){csArray.prototype.forEach.call(this.qi,t=>t()),this.qi=[]}processInsertRule(t,[e,s]){if(t[qo]==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.FR.push(e)}processUpdateRulesInATick(t){for(let e of t){if(e.parentStyleSheet===null)return;let s=e.parentStyleSheet,n=csArray.prototype.indexOf.call(gn(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[qo]==null&&!t.ownerNode)return;let s={type:"cssRuleDeleted",sheet:t,index:e};this.C(s)}WR(t,e){if(t[qo]==null&&!t.ownerNode)return;let s={type:"cssStyleSheetDisabled",sheet:t,disabled:e};this.C(s)}}return _t([L()],i.prototype,"observe",null),_t([L()],i.prototype,"disconnect",null),_t([L()],i.prototype,"processInsertRule",null),_t([L()],i.prototype,"processUpdateRule",null),_t([L()],i.prototype,"processUpdateRulesInATick",null),_t([L()],i.prototype,"processDeleteRule",null),i})(),Mw=(()=>{class i{constructor(t=Number.POSITIVE_INFINITY){this.vs=[],this.it=[],this.YR=t}next(t){this.it.length===this.YR&&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.vs)e(t)}subscribe(t){if(gr(this.vs,s=>t===s))return()=>{this.vs=csArray.prototype.filter.call(this.vs,s=>s!==t)};csArray.prototype.push.call(this.vs,t);for(let s of this.it)t(s);return()=>{this.vs=csArray.prototype.filter.call(this.vs,s=>s!==t)}}clear(){this.it=[]}hasObservers(){return this.vs.length>0}}return i})(),Dw=(()=>{var i;class r{constructor(e){this.C=e}observe(){this.XR=i.Do.subscribe(e=>this.C(e)),i.Ac||(i.Ac=!0,i.fo.observe(),ye(_d,NodeFilter.SHOW_ELEMENT).visitAll(s=>{i.Bi.add(s),i.Do.next(s)}))}disconnect(){i.Ac&&(this.XR(),i.Do.hasObservers()||(i.Ac=!1,i.fo.disconnect(),i.Do.clear(),i.Bi.clear()))}}return i=r,r.Bi=new pc,r.Do=new Mw,r.KR=mr(t=>{Cs(()=>{for(let e of t)e.type==="childList"&&dt(e.addedNodes,s=>{ye(s,NodeFilter.SHOW_ELEMENT).visitAll(o=>{i.Bi.has(o)||(i.Bi.add(o),i.Do.next(o))})})})},"ElementObserver.findAllElements"),r.Ac=!1,r.fo=new ci(i.KR),_t([L()],r.prototype,"observe",null),_t([L()],r.prototype,"disconnect",null),r})(),kw=(()=>{class i{constructor(){this.bt=!1,this.Bm=new Ow(t=>t.type==="cssRuleInserted"&&this.JR(t)),this.QR=gc(t=>{this.bt&&t.length>0&&this.M.task(()=>dt(t,e=>this.ko.scanElement(e)))}),this.ZR=({type:t,asset:e})=>{var s,n,o;t==="stylesheet"&&((s=this.tC)===null||s===void 0||s.call(this,e)),(n=this.eC)===null||n===void 0||n.call(this,e);let c={date:U.now(),type:X.STATIC_RESOURCE_URL,args:[e.assetId]};(o=this.B)===null||o===void 0||o.call(this,c)},this.M=new Ts,this.$m=new Dw(t=>this.iC(t)),this.j=new ci(t=>this.Ir(t)),this.ko=new av,this.ko.onScannedAsset(this.ZR)}onEvent(t){this.B=t}onAsset(t){this.eC=t}onStyleSheetFound(t){this.tC=t}start(){this.bt||(this.bt=!0,this.Bm.observe(),this.$m.observe(),this.j.observe())}stop(){this.bt&&(this.Bm.disconnect(),this.$m.disconnect(),this.j.disconnect(),this.bt=!1)}JR(t){!t.rule||!this.bt||this.ko.scanCssString(t.rule)}iC(t){this.bt&&G.getMaskedElementDetails(t).state===G.MaskedElementState.NotMasked&&this.QR.push(t)}Ir(t){csSetTimeout(()=>{for(let e of t)switch(e.type){case"attributes":this.ko.scanElement(e.target,e.attributeName);break;case"characterData":this.sC(e.target);break;case"childList":}})}sC(t){un(t)&&csNodeparentNode.apply(t)&&Dn(csNodeparentNode.apply(t))&&this.ko.scanCssString(t.data)}}return i})(),Lw="csPersisted",ru="v2/recording",xw=["replay:resourceManager:getStatus","cssrm:getStatus"],Vw=(()=>{class i{constructor(t,e,s,n,o,c,l,u,h,p,y,m,_,A,D,I,C,x,O,N,W,q){this.ws=t,this.R=e,this.E=s,this.Ke=n,this.S=o,this.O=c,this.V=l,this.Re=u,this.Ae=h,this.wt=p,this.ze=y,this.Rt=m,this.w=_,this.As=A,this.Gm=D,this.le=I,this.$t=C,this.tt=x,this.bo=O,this.nt=N,this.UO=W,this.At=q,this.Tc=null}init(){var t,e;let s=[],n=[];csArray.prototype.push.call(n,new gv),csArray.prototype.push.call(n,new yv),this.Lo=new pv(this.nt.shouldUseAnonymization(),this.E.whitelistedAttributes,this.O,this.E.anonymizeDigits),this.er();let o=new aw(Lw);this.rC(o),this.F=new bw(()=>{var A;return((A=this.R.getSession())===null||A===void 0?void 0:A.pageNumber)||0});let c=new kw;csArray.prototype.push.call(s,c),Ia.isSupported()&&(this.ce=new Ia,this.De=new $v,this.zm=new vw(this.De,this.E.getStaticResourceManagerUri(),this.Ke),this.Gm.addListener(this.zm),csArray.prototype.push.call(n,this.ce));let l=new hr(this.Ke,{getRequestParameters:()=>({let:this.recordingService.getRecordingLastEventTimestamp()})},{getRequestParameters:()=>({rst:this.recordingService.getRecordingStartTimestamp()})},{getRequestParameters:()=>({rt:csArray.prototype.join.call(this.R.getRecordingTypes(),",")})}),u=new Dd(`${this.E.getRecordingUri()}/${ru}`);csArray.prototype.push.call(n,this.Lo),csArray.prototype.push.call(n,new wv(this.tt)),csArray.prototype.push.call(n,new _v),this.ir=new Nw,this.ir.init(),csArray.prototype.push.call(s,this.ir),this.Bt=new Ew(o,u,this.Y),csArray.prototype.push.call(s,new Cw(_w.location,this.O));let h=new Lv,p=[this.Re,h,new tw(csArray.prototype.filter.call(s,A=>A)),new xv,new Vv];this.mc=new ew,this.oC=new iw(A=>this.Ae.anonymize(A)),this.yi=new lw(this.mc),csArray.prototype.push.call(p,this.mc),csArray.prototype.push.call(n,this.oC);let y=new Bv(p,n),m=new Zv(y,this.w,this.De,this.yi,this.Gi),_=[h];this.recordingService=new gw(this.E,this.F,l,this.V,this.R,this.Ae,this.wt,this.ze,this.At,this.Y,this.Bt,u,m,s,_,this.ce,this.bo,this.yi,this.Gi),this.As.addListener(this.recordingService),this.Gm.addListener(this.recordingService),this.recordingService.init(),this.S.register(tS,()=>this.R.isReplayRecorded()&&!this.le.isUrlExcludedForSessionReplay()),this.S.register(md,()=>{this.recordingService.activateOnlineAssetsOnNextPageview(),this.w.emitRecordingContextChange()}),this.S.register(xw,()=>this.recordingService.getStaticResourceManagerStatus()),this.xo=new cw(this.w,this.R),this.As.addListener(this.xo),this.ws.enableRecordingContext(this.recordingService,this.R,this.xo),this.Th()}onAfterNaturalPageView(){var t;this.le.isUrlExcludedForSessionReplay()?this.recordingService.resetOnlineAssetsOnPageview():this.recordingService.updateOnlineAssetsOnPageview(),(t=this.zm)===null||t===void 0||t.initState()}onStartTracking(){this.Bt.recover(),this.er(),this.R.isReplayRecorded()&&!this.le.isUrlExcludedForSessionReplay()&&(this.bc(),this.Tc||(this.Tc=new sw(()=>$.counters.featureUsage.count("form-associated-custom-elements")),this.Tc.start()))}onArtificialPageViewEnd(){this.R.isReplayRecorded()&&!this.le.isUrlExcludedForSessionReplay()&&this.Bt.sendLastMessageBeacon(),this.recordingService.clearStates(),this.Vo()}onAfterArtificialPageView(){this.er(),this.R.isReplayRecorded()&&!this.le.isUrlExcludedForSessionReplay()?(this.recordingService.updateOnlineAssetsOnPageview(),this.bc()):this.recordingService.resetOnlineAssetsOnPageview()}onBeforeSessionRenewal(){this.recordingService.clearStates(),this.Vo()}onOptout(){var t;this.Vo(),this.recordingService.onOptOut(),(t=this.Tc)===null||t===void 0||t.stop()}onReplayUnanonymizationConsentGranted(){this.er(),this.recordingService.triggerUnanonymizationConsentGranted(),this.w.emitRecordingContextChange()}onReplayUnanonymizationConsentWithdrawn(){this.er(),this.recordingService.triggerUnanonymizationConsentWithdrawn(),this.w.emitRecordingContextChange()}onCollectStateChange(t,e){t===j.QUOTA_REACHED||t===j.ANALYTICS_ONLY&&e===Ie.ETR_OFF?(this.recordingService.clearEvents(),this.Vo()):(this.Y.setQueryParams({rt:csArray.prototype.join.call(this.R.getRecordingTypes(),",")}),this.recordingService.pushEvents(),this.xo.onCollectStateChange(t,e))}onTargetingRulesMatched(){this.R.isReplayRecorded()&&!this.le.isUrlExcludedForSessionReplay()&&!this.recordingService.isRecording()&&this.bc()}onInitialDomStart(){this.recordingService.blockSendingEventsFromSerialization(),this.Bt.blockSendingLastMessage()}onInitialDomDone(t){this.recordingService.allowSendingEventsFromSerialization(),this.recordingService.addInitialDom(t),this.Bt.allowSendingLastMessage(),this.ir.start(),this.recordingService.pushEvents()}onAfterReplayRecordingConsentGranted(){this.R.isReplayRecorded()&&!this.le.isUrlExcludedForSessionReplay()&&(this.bc(),this.recordingService.triggerRecordingForSessionGranted())}onAfterReplayRecordingConsentWithdrawn(){this.recordingService.isRecording()&&(this.recordingService.triggerRecordingForSessionWithdrawn(),this.recordingService.clearStates(),this.Vo())}Th(){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;dt(l,u=>{Qt(u)&&ci.setShadowRootFilter(h=>{try{return Se.call(h.host,u)}catch{return!1}})})}}bc(){this.recordingService.start(),this.Bt.start(),this.w.emitRecordingContextChange()}Vo(){this.recordingService.stop(),this.Bt.stop(),this.w.emitRecordingContextChange()}rC(t){let e="byteArray";this.Y=this.$t.create(`${this.E.getRecordingUri()}/${ru}`,e,t)}er(){var t;let e=this.nt.shouldUseAnonymization();this.Lo.setAnonymization(e),(t=this.nC)===null||t===void 0||t.setAnonymization(e)}}return B([Zt("Recording.onStartTracking")],i.prototype,"onStartTracking",null),B([Zt("onInitialDomDone")],i.prototype,"onInitialDomDone",null),i})();var Uw=(()=>{class i{constructor(t,e){this.Fi=t,this.S=e}init(){this.S.register(fd,t=>{if(M(t))this.Fi.setExcludeUrlForSessionReplay(t);else throw new Rt("excludeURLforReplay")})}}return i})();var Hw=(()=>{class i extends ne{constructor(t,e,s,n,o,c){super(),this.Re=t,this.ot=e,this.ue=s,this.Yr=n,this.Xr=o,this.nt=c}onStart(){var t,e,s;this.ue.start(),this.Re.setMaskedElementSettings(this.ot.getMaskedElementSettings((t=this.nt)===null||t===void 0?void 0:t.shouldMaskNonTextElements())),this.Re.startIdentifier(),(e=this.Yr)===null||e===void 0||e.start(),(s=this.Xr)===null||s===void 0||s.start()}onStop(){var t,e;this.ue.stop(),this.Re.stopIdentifier(),(t=this.Yr)===null||t===void 0||t.stop(),(e=this.Xr)===null||e===void 0||e.stop()}}return i})();var jw=(()=>{class i extends Sd{constructor(){super(),this.W=new Md(t=>this.errorListener(t))}onStartTracking(){this.W.observe()}onStopTracking(){this.W.disconnect()}errorListener(t){let e=this.FC(t);for(let s in this.subscriptions){let n=this.subscriptions[s];n(e)}}WC(t){return t=t!=null?t:"[NO ERROR MESSAGE]",Gt.truncate(t,i.Ju,Gt.ELLIPSIS)}YC(t){return!t||be(t)?"":Gt.truncate(t,i.Qu,Gt.ELLIPSIS)}FC(t){return{errorType:"jsError",message:this.WC(t.message),filename:this.YC(t.filename),lineno:t.lineno,colno:t.colno}}}return i.Ju=1024,i.Qu=150,B([L("Event handler type: error")],i.prototype,"errorListener",null),i})();var Bw=(()=>{class i{constructor(t,e){this.S=t,this.vt=e}init(){this.vt.addListener(this.S)}onOptout(){this.S.stop()}onBeforeSessionRenewal(){this.S.stop()}}return i})();var $w=(()=>{class i{constructor(t,e,s,n,o,c,l){this.w=t,this.S=e,this.Gh=s,this.zh=n,this.Si=o,this.aI=c,this.Bo=l}start(){this.w.addListener(this.aI),this.w.addListener(this.Bo),this.w.addListener(this.Gh),this.Bo.init(),this.zh.init(),this.Si.init(),!this.Si.isActive()&&this.S.start()}}return i})(),Vd="_cs_ex",Gw=(()=>{class i{constructor(t){this.Fi=t}onOptout(){this.Fi.removeExclusion()}}return i})(),zw=(()=>{class i{constructor(t,e){this.zt=t,this.et=e}exclude(t){this.et.set(csString(t.lastTrackingDraw))}removeExclusion(){this.et.remove()}isExcluded(){return this.cI()||this.lI()}cI(){return this.getAppliedTrackingDraw()!==0}getAppliedTrackingDraw(){return Number(this.et.get())}lI(){return csString.prototype.indexOf.call(this.zt.href,Vd)>0}}return i})();var Ud="_cs_optout",qw=(()=>{class i{constructor(t,e){this.S=t,this.Si=e}init(){this.S.register(GS,()=>{this.Si.activate()})}}return i})(),nu="1",Fw=(()=>{class i{constructor(t,e,s){this.w=t,this.zt=e,this.et=s}init(){!this.isActive()&&this.SI()&&this.activate()}isActive(){return this.et.get()===nu}activate(){this.w.emitOptout(),this.et.set(nu)}SI(){return csString.prototype.indexOf.call(this.zt.href,Ud)>0}}return i})(),Fo=(()=>{class i{constructor(t,e,s,n,o,c){this.E=t,this.L=e,this.td=s,this.Is=n,this.hE=o,this._I=c}onCookieSet(t){this.ti=t}onCookieRemoved(t){this.Us=t}get(){return this.E.cookielessTrackingEnabled?this.td.getItem(this.Is):this.L.get(this.Is)}set(t){var e;this.E.cookielessTrackingEnabled?this.td.setItem(this.Is,t):(this.L.set(this.Is,t,this.hE,this._I),(e=this.ti)===null||e===void 0||e.call(this,this.Is,t,this.hE))}remove(){var t;this.E.cookielessTrackingEnabled?this.td.removeItem(this.Is):(this.L.delete(this.Is),(t=this.Us)===null||t===void 0||t.call(this,this.Is))}}return i})(),Ww=(()=>{class i{constructor(t){this.sd=t}start(){this.sd.onEvent(t=>this.X(t)),this.sd.start()}stop(){this.sd.stop()}X(t){let e=`Content Security Policy error. Violated directive: ${t.violatedDirective} - Source file: ${t.sourceFile}`;z.warn(e)}}return i})(),Yw=(()=>{class i{constructor(){this.ke={boundElement:_d,type:"securitypolicyviolation",listener:t=>this.securityPolicyViolationListener(t)}}start(){jt(this.ke)}stop(){kt(this.ke)}onEvent(t){this.B=t}wI(t){if(!t)return!1;let e=t.disposition;return M(t.sourceFile)&&csArray.prototype.some.call(i.vI,s=>csString.prototype.indexOf.call(t.sourceFile,s)>0)&&e!=="report"}securityPolicyViolationListener(t){this.wI(t)&&this.B({violatedDirective:t.violatedDirective,sourceFile:t.sourceFile})}}return i.vI=["contentsquare","cdnssl.clicktale.net"],B([L("Event handler type: securitypolicyviolation")],i.prototype,"securityPolicyViolationListener",null),i})(),Xw=(()=>{class i{init(){this.xc=new Ww(new Yw),this.xc.start()}onOptout(){this.xc.stop()}onArtificialPageViewEnd(t){t&&this.xc.stop()}onAfterArtificialPageView(t){t&&this.xc.start()}}return i})(),Kw=(()=>{class i{constructor(t,e,s){this.E=t,this.R=e,this.w=s}grantReplayConsent(){if(!Gi.isReplayConsentNeeded(this.E))return;let t=this.R.getSession();if(!t){this.R.grantReplayRecordingBeforeSessionStart();return}Gi.isRecordingBlockedByConsent(t)&&(this.R.grantReplayRecording(t),this.w.emitAfterReplayRecordingConsentGranted())}withdrawReplayConsent(){if(!Gi.isReplayConsentNeeded(this.E))return;let t=this.R.getSession();if(!t){this.R.withdrawnReplayRecordingBeforeSessionStart();return}Gi.isRecordingWithDrawn(t)||(this.R.withdrawnReplayRecording(t),this.w.emitAfterReplayRecordingConsentWithdrawn())}}return i})(),Jw=(()=>{class i{constructor(t,e,s,n,o){this.E=t,this.S=e,this.Mt=s,this.R=n,this.w=o}init(){this.dE=new Kw(this.E,this.R,this.w),this.Mt.setInitialConsent(),this.ut()}ut(){this.S.register(FS,()=>{this.Mt.grantReplayAnonymizationConsent()}),this.S.register(WS,()=>{this.Mt.withdrawReplayAnonymizationConsent()}),this.S.register(YS,()=>{this.dE.grantReplayConsent()}),this.S.register(XS,()=>{this.dE.withdrawReplayConsent()})}onOptout(){this.Mt.removeAllConsents()}onBeforeVisitorRenewal(){this.Mt.removeAllConsents()}onAfterVisitorRenewal(){this.Mt.setInitialConsent()}onAfterVisitorCleared(){this.Mt.setInitialConsent()}}return i})(),Qw="_cs_cvars",Zw=(()=>{class i{constructor(t,e){this.S=t,this.lt=e}init(){this.S.register(Fe,(t,e,s,n)=>{this.lt.set(t,e,s,n)})}onBeforeArtificialPageView(){this.lt.onBeforePageview()}onBeforeNaturalPageView(){this.lt.onBeforePageview()}onOptout(){this.lt.removeCustomVariablesSession()}onBeforeVisitorRenewal(){this.lt.removeCustomVariablesSession(),this.lt.removeCustomVariablesPage()}}return i})(),ou=512,au=255,Zr={SESSION:["visit",2],PAGE:["page",3],NEXT_PAGE_ONLY:["nextPageOnly",4]},tA=(()=>{class i{constructor(t,e){this.O=t,this.et=e,this.fe={},this.nr={},this.$o={},this.AI=new Set(csArray.prototype.flat.call(Object.values(Zr)))}set(t,e,s,n){let o,c;if(!(Ht(t)||M(t))||M(t)&&csString.prototype.trim.call(t)==="")throw new Rt(Fe[0],"index must be a number or string");let l=Number(t);if(Number.isNaN(l))throw new Rt(Fe[0],"index must be a valid number");if(l<=0)throw new Rt(Fe[0],"index must be greater than 0");if(!It(e))throw new Rt(Fe[0],"name is required");if(xe(e))throw new Rt(Fe[0],"name cannot be a function");if(!It(s))throw new Rt(Fe[0],"value is required");if(xe(s))throw new Rt(Fe[0],"value cannot be a function");if(!this.TI(n))throw new Rt(Fe[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,ou),csString.prototype.slice.call(h,0,au)],c=s!=="",!ht(n)||csArray.prototype.indexOf.call(Zr.SESSION,n)>=0){let p=this.getCustomVariablesSession();c?p[t]=o:delete p[t],this.setCustomVariableSession(p)}(!ht(n)||csArray.prototype.indexOf.call(Zr.PAGE,n)>=0)&&(c?this.fe[t]=o:delete this.fe[t]),ht(n)&&csArray.prototype.indexOf.call(Zr.NEXT_PAGE_ONLY,n)>=0&&(c?this.nr[t]=o:delete this.nr[t])}getCustomVariablesSession(){let t=this.et.get();if(!t)return{};let e=_w.csJSON.parse(t);return e!==null&&vs(e)?e:{}}setCustomVariableSession(t){this.et.set(_w.csJSON.stringify(t))}removeCustomVariablesSession(){this.et.remove()}removeCustomVariablesPage(){this.fe={}}getRequestParameters(){let t=this.getCustomVariablesSession();for(let s in this.fe)this.fe.hasOwnProperty(s)&&(t[s]=this.fe[s]);if(_w.csJSON.stringify(t).length<=2)return{};let e={cvars:this.fE(t)};return this.hasCustomVariablesPage()&&(e.cvarp=this.getCustomVariablesPage()),e}onBeforePageview(){for(let t in this.$o)this.$o.hasOwnProperty(t)&&(this.$o[t]===this.fe[t]&&delete this.fe[t],delete this.$o[t]);for(let t in this.nr)this.nr.hasOwnProperty(t)&&(this.$o[t]=this.nr[t],this.fe[t]=this.nr[t],delete this.nr[t])}hasCustomVariablesPage(){return this.fe&&!sa(this.fe)}getCustomVariablesPage(){return this.fE(this.fe)}getAllValidPageCustomVars(){let t={...this.fe};return this.rd(t),t}rd(t){for(let e in t)if(t.hasOwnProperty(e)){let s=parseInt(e,10),n=t[e],o=n[0],c=n[1];(!Op(s,1,20)||o.length>ou||c.length>au)&&delete t[e]}}fE(t){this.rd(t);let e=sa(t)?[]:t;return _w.csJSON.stringify(e)}TI(t){return!ht(t)||this.AI.has(t)}getAllValidCustomVars(){let t=this.getCustomVariablesSession();for(let e in this.fe)this.fe.hasOwnProperty(e)&&(t[e]=this.fe[e]);return this.rd(t),t}}return i})();var eA="csq:start-hotjar",or=(()=>{let i;return function(r){r.HJ_DUAL_COLLECT="one_app_tag_dc"}(i||(i={})),i})(),Wo=(()=>{class i{static set(t,e){i.gE[t]=e}static get(t){return i.gE[t]}}return i.gE={[or.HJ_DUAL_COLLECT]:null},i})();function Hd(){return _w.hjSiteSettings?(_w.hjSiteSettings.features==null?void 0:csArray.prototype.indexOf.call(_w.hjSiteSettings.features,or.HJ_DUAL_COLLECT))>-1:!1}function cu(i){return Hd()?i?!rc(i)&&!td(i):!0:!1}function iA(i){return!Hd()||!i?!1:rc(i)||td(i)}var zi=(()=>{let i;return function(r){r.Natural="Natural",r.Artificial="Artificial",r.Renewal="Renewal"}(i||(i={})),i})(),sA=(()=>{class i extends ne{constructor(t,e,s,n,o,c,l,u,h,p){super(),this.E=t,this.w=e,this.z=s,this.or=n,this.A=o,this._i=c,this.DI=l,this.re=u,this.Pt=h,this.od=p,this.Ge=null}init(){this.ad()}onStart(t=zi.Natural){switch(t){case zi.Natural:this.cd();break;case zi.Artificial:this.ld();break;case zi.Renewal:this.ud();break}}onStop(){}triggerArtificialPageView(t,e){this.isStarted?(this.w.emitArtificialPageViewEnd(),this.ar(t,e)):(It(t)&&this.A.overridePath(t,e),this.z.emitTargetingRulesArtificialPageview(this.A.getUrl()),this.E.hasTargetingRules()&&this.A.cleanupOverrideLifespan())}cd(){this._i.setPageViewType(Bi.Natural);let t=this.A.getAnonymizedUrl();this.w.emitBeforeNaturalPageView(t),this.dd(),this.A.cleanupOverrideLifespan(),this.w.emitAfterNaturalPageView(Bi.Natural),this.Ge=t}ud(){this._i.setPageViewType(Bi.Renewal);let t=this.A.getAnonymizedUrl();this.w.emitBeforeNaturalPageView(t),this.dd(),this.w.emitAfterNaturalPageView(Bi.Renewal),this.Ge=t}ar(t,e,s=!1){It(t)&&this.A.overridePath(t,e);let n=this.A.getAnonymizedUrl();this.w.emitBeforeArtificialPageView(this.Ge,n),this._i.setPageViewType(Bi.Artificial),this.dd(),this.A.cleanupOverrideLifespan(),this.w.emitAfterArtificialPageView(s),this.Ge=n}ld(){this.ar(null,void 0,!0)}ad(){_w.addEventListener("pageshow",t=>{this.isStarted&&t.persisted&&(this.w.emitArtificialPageViewEnd(),this.ar())})}kI(){var t,e,s;let n=(t=this.od)===null||t===void 0?void 0:t.getProperties(_d,"pageview",this.A.getPath()),o=L_.mergeAndLimitProperties((e=this.re)===null||e===void 0?void 0:e.getProperties(),(s=this.Pt)===null||s===void 0?void 0:s.getProperties(),n!=null?n:void 0,void 0);if(Object.keys(o).length>0)return o}dd(){let t=this.kI(),e=t?{properties:t}:void 0;this.or.removeQueryParams(),this.or.setQueryParams({...this.DI.getRequestParameters(),...e?{}:{ct:yr.UNCOMPRESSED}}),this.or.send(e)}}return i})();var rA=(()=>{class i{getRequestParameters(){return{dw:`${Ut.documentWidth()}`,dh:`${this.LI()}`,ww:`${Ut.windowWidth()}`,wh:`${Ut.windowHeight()}`,sw:`${Ut.screenWidth()}`,sh:`${Ut.screenHeight()}`}}LI(){let t=$t.getScrollContainer(),e=Ut.documentHeight();return t?Math.max(e,$t.getDocumentHeightFromContainer(t)):e}}return i})();function nA(){return _w.navigator.language||_w.navigator.userLanguage||_w.navigator.browserLanguage||_w.navigator.systemLanguage||"unknown"}function oA(){return{la:nA()}}var aA=99999,cA=(()=>{class i{constructor(t){this.R=t,this.xI=this.VI()&&_w.CSCurrentScript}UI(){let t=_w.CSCurrentScript;if(!t)return null;let e=_w.performance.getEntriesByName(t.src,"resource")[0];return!e||this.HI(e)?null:Math.round(e.responseEnd-e.fetchStart)}HI(t){let e=t.transferSize;return e!==void 0?e===0||e===300||evs(i)&&i!==null,uA=(i,r,t,e)=>{i.register(hd,(s,n)=>{if(!M(s)){r.triggerArtificialPageView();return}Yo(n)?r.triggerArtificialPageView(s,n):r.triggerArtificialPageView(s)}),i.register(wa,(s,n)=>{if(!M(s))throw new Rt(wa[0]);Yo(n)?t.overridePath(s,n):t.overridePath(s)}),i.register(Aa,(s,n)=>{if(!M(s))throw new Rt(Aa[0]);Yo(n)?t.overrideQuery(s,n):t.overrideQuery(s)}),e&&(i.register(Nl,s=>{if(!M(s))throw new Rt(Nl[0]);e.addUrlMaskingPattern(s)}),i.register(Cy,()=>e.enableRemoveQueryString()),i.register(Iy,()=>e.disableRemoveQueryString()))},hA=(()=>{class i{constructor(t,e,s,n,o,c,l,u,h,p,y,m,_,A,D,I,C,x,O){this.E=t,this.S=e,this.w=s,this.Ke=n,this.I=o,this.R=c,this.vi=l,this.Mt=u,this.lt=h,this.A=p,this.le=y,this._i=m,this.z=_,this.$t=A,this.ai=D,this.Zr=I,this.re=C,this.Pt=x,this.od=O}init(){let t=this.$t.create(`${this.E.getTrackerUri()}/${lA}`,"base64"),e=new hr(this.Ke,this.I,new rA,this.vi,this.A,this.Mt,Oa,this.lt,this._i,new cA(this.R),this.le);this.Go=new sA(this.E,this.w,this.z,t,this.A,this._i,e,this.re,this.Pt,this.od),this.Go.init(),this.ai&&e.addProvider(this.ai),this.Zr&&e.addProvider(this.Zr);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}})}uA(this.S,this.Go,this.A,this.vi)}start(t){this.Go.start(t)}stop(){this.Go.stop()}onBeforeSessionRenewal(){this.Go.stop()}}return i})();var dA=(()=>{class i{constructor(t,e){this.tt=t,this.Rt=e,this.gd=!1}getRequestParameters(){return{dr:this.get()}}addUrlMaskingPattern(t){this.Rt.addUrlMaskingPattern(t)}enableRemoveQueryString(){this.gd=!0}disableRemoveQueryString(){this.gd=!1}get(){let t=this.gd?this.tt.removeQueryString(this.SE()):this.SE();return this.tt.anonymizeUrl(t,{maskingPatterns:this.Rt.getUrlMaskingPatterns()})}set(t){this._E=t}SE(){if(this._E)return this._E;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})(),fA=(()=>{class i{constructor(t,e){this.S=t,this.Je=e}init(){this.S.register(["debugEvents"],t=>{typeof t=="boolean"&&this.Je.updateDynamicFields("emitDebugEvents",t)})}}return i})();var lu=(()=>{class i{constructor(t,e,s,n){this.E=t,this.I=e,this.R=s,this.Qt=n}getRequestParameters(){let t={...$a(),...this.E.getRequestParameters()},e=this.R.getSession();e&&(t.pn=`${e.pageNumber}`);let s=this.I.getVisitor();if(s&&(t.sn=`${s.visitsCount}`,t.uu=`${s.id}`),this.WI(t),_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}WI(t){if(!this.Qt)return;let e=this.Qt.getSharedContext();e&&(t.happid=e.happid,t.t=e.pageTitle,t.fvt=csString(e.firstViewTime),t.fvurl=e.firstViewUrl,e.previousViewUrl&&(t.pvurl=e.previousViewUrl),t.url=e.currentViewUrl,e.sessionReferrer&&(t.fpvurl=e.sessionReferrer),t.sw=csString(e.screenWidth),t.sh=csString(e.screenHeight),t.cvt=csString(e.currentViewTime),e.encryptedIdentity&&(t.i=e.encryptedIdentity),e.cvarp&&(t.cvarp=e.cvarp))}}return i})();var Ji;(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"})(Ji||(Ji={}));var uu=(()=>{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 Na(i){return i.tagDeploymentMode===Ji.DualCollectionReview||i.tagDeploymentMode===Ji.DualCollection}function pA(i){return Na(i)||i.tagDeploymentMode===Ji.LoadClicktalePtc}var gA=(()=>{class i extends ne{constructor(){super(),this.bE=0}onStart(){z.isPerfLoggingActive()&&(this.qo=_w.csSetInterval(()=>this.RE(),i.tP))}onStop(){z.isPerfLoggingActive()&&(this.RE(),csClearInterval(this.qo))}RE(){this.bE>=i.eP||$.counters.methodPerformance.flush()&&this.bE++}}return i.tP=5e3,i.eP=5,i})(),mA=(()=>{class i{constructor(){}init(){this.Uc=new gA}onStartTracking(){this.Uc.start()}onOptout(){this.Uc.stop()}onArtificialPageViewEnd(t){t&&this.Uc.stop()}onAfterArtificialPageView(t){t&&this.Uc.start()}}return i})();var EA=(()=>{class i extends ne{constructor(t,e,s,n,o,c,l,u,h,p,y,m,_,A,D,I,C){super(),this.E=t,this.ms=e,this.be=s,this.en=n,this.Sd=o,this.ci=c,this.Ve=l,this._d=u,this.V=h,this.pe=p,this.vd=y,this.ni=m,this.Y=_,this.Wt=A,this.Bc=D,this.Ui=I,this.Hi=C,this.Wr=new kd,this.$c=!1,this.Gs=[]}init(){var t,e,s;this.ms.onEvent(n=>this.ne(n)),this.be.onEvent(n=>this.ne(n)),this.en.onEvent(()=>{let n=this.en.getRequestParameters();this.Y.setQueryParams(n),this.Ve.setQueryParams(n)}),this.vd.onEvent(n=>this.ji(n)),this.wd(),(t=this.Bc)===null||t===void 0||t.onEvent(n=>this.ne(n)),(e=this.Ui)===null||e===void 0||e.onEvent(n=>this.ne(n)),(s=this.Hi)===null||s===void 0||s.onEvent(n=>this.ne(n)),this.oP()}oP(){this.Ve.onBeaconSuccess(()=>{this.ci.clearEvents()}),this.Ve.onBeaconFailure(t=>{this.aP(t)})}initStates(){let t=this._d.getRequestParameters(),e=this.Sd.getRequestParameters(),s=this.en.getRequestParameters();this.Y.setQueryParams(t),this.Y.setQueryParams(e),this.Y.setQueryParams(s),this.Ve.setQueryParams(t),this.Ve.setQueryParams(e),this.Ve.setQueryParams(s),this.Ad()}clearStates(t){var e,s;this.ms.flushPendingDebouncedListeners(),(e=this.Ui)===null||e===void 0||e.flushPendingKeyboardNavigationEvent(),(s=this.Hi)===null||s===void 0||s.flushPendingTextHighlightEvent(),t?(this.Td(),this.sendLastMessageBeacon()):this.sendEvents(),this.en.reset(),this.Y.removeQueryParams()}onStart(t){var e,s,n;this.ni.start(),this.ms.start(),this.en.start(),this.be.start(),(e=this.Bc)===null||e===void 0||e.start(),(s=this.Hi)===null||s===void 0||s.start(),t||this.vd.start(),(n=this.Ui)===null||n===void 0||n.start(),csArray.prototype.forEach.call(this.Gs,o=>{this.ji(o)}),this.Gs=[]}collectInitialEvents(){var t;(t=this.Bc)===null||t===void 0||t.collectInitialEvents()}onIframeAnalysisBrowserEvent(t){this.ji(t)}onIframeAnalysisUserEvent(t){this.ne(t)}onExternalEvent(t){this.X(t)}ji(t){this.isStarted&&this.V.isCurrentPageviewValid()&&this.X(t)}ne(t){this.isStarted&&(this.V.refreshSession(),this.V.isSessionValid()&&this.X(t))}X(t){this.ci.addEvent(this.cP(t)),this.ci.isFull()&&this.sendEvents(),this.E.emitDebugEvents&&this.Wr.emit("analysisEvent",{...t,typeName:Q[t.type]})}cP(t){return t.ts=this.fr(),t}Td(){this.Ve.setQueryParams({hlm:"true"}),this.$c=!0}sendLastMessageBeacon(){this.Ve.removeQueryParams(["i"]),this.Ve.setQueryParams(this._d.getRequestParameters()),this.Ve.setQueryParams(this.Sd.getRequestParameters()),this.Ve.send(this.ci.stringifyEvents()),this.Ve.removeQueryParams(["hlm"]),this.$c=!1}sendEvents(){this.ci.isEmpty()||(this.Ve.removeQueryParams(["i"]),this.Y.setQueryParams(this._d.getRequestParameters()),this.Y.setQueryParams(this.Sd.getRequestParameters()),this.Y.send(this.ci.getEvents()),this.ci.clearEvents())}onStop(){var t,e,s;this.ni.stop(),this.ms.stop(),this.en.stop(),this.be.stop(),this.vd.stop(),(t=this.Bc)===null||t===void 0||t.stop(),(e=this.Ui)===null||e===void 0||e.stop(),(s=this.Hi)===null||s===void 0||s.stop(),$t.stop(),this.ci.empty()}Ad(){this.wi=U.now()}fr(){return U.now()-this.wi}wd(){this.ni.onEvent(t=>{var e,s;t!==Re.Visible&&((e=this.Ui)===null||e===void 0||e.flushPendingKeyboardNavigationEvent(),(s=this.Hi)===null||s===void 0||s.flushPendingTextHighlightEvent(),t===Re.PagehideVisible?this.Td():t===Re.PagehideHidden?(this.Td(),this.sendLastMessageBeacon()):(!this.ci.isEmpty()||this.$c)&&this.sendLastMessageBeacon())})}aP(t){try{(!this.ci.isEmpty()||this.$c)&&this.pe.save({requestParameters:t,events:this.ci.getEvents()})}catch{}}pushCustomEvent(t,e,s){if(!(M(t)&&!Ua(t))||s!==void 0&&!rt(s))throw new Rt(Ca[0]);let n=O_.buildCustomEvent(t,e,s),o=se.buildFromCustomEvent(n,this.Wt);this.isStarted?this.ji(o):csArray.prototype.push.call(this.Gs,o)}}return i})(),yA=(()=>{class i extends ne{constructor(t,e){super(),this.pe=t,this.Y=e,this.kE=()=>{_d.visibilityState==="visible"&&this.LE()}}onStart(){this.LE(),this.ch()}onStop(){this.lh()}getRecoveryStorage(){return this.pe}LE(){let t=this.pe.recover();if(t!==null){let{requestParameters:e,events:s}=t;this.Y.send(s,e)}}ch(){_d.addEventListener("visibilitychange",this.kE)}lh(){_d.removeEventListener("visibilitychange",this.kE)}}return i})(),SA=(()=>{class i{constructor(t){this.zr=t}save(t){localStorage.setItem(this.zr,csJSON.stringify(t))}clear(){localStorage.removeItem(this.zr)}recover(){let t=localStorage.getItem(this.zr);if(t===null)return null;let e=null;try{e=csJSON.parse(t)}catch{z.error(`Invalid item in localStorage. (key:${this.zr}; value:${t})`)}finally{this.clear()}return e}}return i})(),_A=50,vA=(()=>{class i{constructor(t=[]){this.Jt=t}stringifyEvents(){return csJSON.stringify(this.Jt)}addEvent(t){csArray.prototype.push.call(this.Jt,t)}eventsCount(){return this.Jt.length}clearEvents(){this.Jt=[]}empty(){this.clearEvents()}isFull(){return this.eventsCount()>=_A}isEmpty(){return this.Jt.length===0}getEvents(){return this.Jt}}return i})(),wA=(()=>{class i{constructor(){this.xE=100,this.Yo=0,this.rn=0,this.VE={boundElement:_d,type:"scroll",listener:e=>this.maxScrollRateListener(e)},this.nn=new Map,this.bu=(e,s)=>{switch(s){case"initial":case"added":{if(this.nn.has(e))return;let n={boundElement:e,type:"scroll",listener:o=>{$t.isEventOnScrollContainer(o)&&this.maxScrollRateListener(o,!0)}};this.nn.set(e,n),jt(n);break}case"removed":{let n=this.nn.get(e);n&&(kt(n),this.nn.delete(e));break}}},this.gs=new _r(this.bu);let t=this.bd($t.getScrollContainer());this.Yo=t.maxScrollRate,this.rn=t.maxDocumentHeight}onEvent(t){this.B=t}start(){jt(this.VE),this.gs.observe()}stop(){kt(this.VE),this.nn.forEach(t=>{kt(t)}),this.nn.clear(),this.gs.disconnect()}reset(){$t.resetCache();let t=$t.getScrollContainer(),{maxScrollRate:e,maxDocumentHeight:s}=this.bd(t);this.rn=s,this.Yo=e,this.B()}bd(t){let e=0,s=0;if(t===null)s=Ut.documentHeight(),e=this.lP(s);else{let n=$t.getPaddingTop(t);s=$t.getDocumentHeightFromContainer(t,n),e=this.uP(t,n)}return{maxScrollRate:e,maxDocumentHeight:s}}maxScrollRateListener(t,e){let s=null;(e!=null?e:$t.isEventOnScrollContainer(t))&&(s=$t.getScrollContainer());let{maxScrollRate:n,maxDocumentHeight:o}=this.bd(s);(n>this.Yo||o>this.rn)&&(this.Yo=n,o>this.rn&&(this.rn=o),this.B())}lP(t){let e=Math.round(this.hP()/t*100);return Math.min(e,this.xE)}hP(){let t=Ut.windowHeight();return Ut.windowOffsetY()+t}uP(t,e){let s=t.scrollTop+t.clientHeight+t.getBoundingClientRect().top+e,n=$t.getDocumentHeightFromContainer(t,e),o=Math.round(s/n*100);return Math.min(o,this.xE)}getRequestParameters(){return{sr:`${this.Yo}`,mdh:`${this.rn}`}}}return B([L("MaxScrollRate handler")],i.prototype,"maxScrollRateListener",null),i})(),AA=(()=>{class i{constructor(){this.dP=t=>this.processMetric(t),this.U=!1,this.Nn=new Lh(["FCP","CLS","LCP","TTFB","INP"],this.dP)}onEvent(t){this.B=t}start(){this.U||(this.U=!0,this.Nn.observe())}stop(){this.U=!1,this.Nn.disconnect()}processMetric(t){if(!this.U)return;let e={type:Q.PERFORMANCE,name:t.name,val:t.value,ts:0};this.B(e)}}return B([L("Performance metric handler")],i.prototype,"processMetric",null),i})(),TA=(()=>{class i{constructor(t){this.fP=Math.pow(2,32)-2,this.pr=t.performance}getRequestParameters(){let t=this.pP();return t?{str:t.startRender,di:t.domInteractive,dc:t.domComplete,fl:t.fullyLoaded}:{}}pP(){let t=this.gP();if(t&&(t==null?void 0:t.loadEventEnd)>0){let e=this.UE({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.pr&&this.pr.timing&&this.pr.timing.loadEventEnd>0){let e=this.pr.timing;return this.UE({startRender:e.domLoading-e.requestStart,domInteractive:e.domInteractive-e.requestStart,domComplete:e.domComplete-e.requestStart,fullyLoaded:e.loadEventEnd-e.requestStart})}return null}gP(){if(!this.mP())return null;let t=this.pr.getEntriesByType("navigation");return t&&t.length>0?t[0]:null}UE(t){let e={};for(let s in t){let n=t[s];if(n<0)e[s]="0";else{if(n>this.fP||!Number.isFinite(n))return null;e[s]=Math.round(n).toString()}}return csArray.prototype.every.call(Object.values(e),s=>s==="0")?null:e}mP(){return typeof this.pr=="object"&&typeof this.pr.getEntriesByType=="function"}}return i})();var bA="csAnalysisEventsPersisted",hu="v2/events",RA=(()=>{class i{constructor(t,e,s,n,o,c,l,u,h,p,y,m,_,A,D){this.E=t,this.Tt=e,this.I=s,this.Ct=n,this.Yt=o,this.S=c,this.V=l,this.be=u,this.vt=h,this.$t=p,this.z=y,this.Ft=m,this.Q=_,this.re=A,this.Pt=D}init(){let t=new vA,e=this.$t.create(`${this.E.getTrackerUri()}/${hu}`,"base64");this.an=this.bP(e),this.Ie=this.RP(t,this.an.getRecoveryStorage(),e),this.Ie.init(),this.z.addListener(this.Ie),this.vt.addListener(this.Ie),this.S.register(Ca,s=>{if(!rt(s))throw new Rt(Ca[0]);this.Ie.pushCustomEvent(s.name,s.source,s.properties)})}onStartTracking(t){this.an.start(),this.Ie.start(t)}onAfterNaturalPageView(){this.Ie.initStates()}onArtificialPageViewEnd(t){this.Ie.clearStates(!0),t&&(this.Ie.stop(),this.an.stop())}onAfterArtificialPageView(t){this.Ie.initStates(),t&&(this.Ie.start(),this.an.start()),this.Ie.collectInitialEvents()}onBeforeSessionRenewal(){this.Ie.clearStates(),this.Ie.stop(),this.an.stop()}onOptout(){this.Ie.stop(),this.an.stop()}RP(t,e,s){let n=new TA(_w),o=new wA,c=U_(this.E,this.Ct,this.Ft,this.re,this.Pt),l=[];this.E.collectSubmit||csArray.prototype.push.call(l,"submit");let u=new G_(c,this.Ct,this.Yt,l),h=H_(this.E,this.Ct,this.Ft,this.re,this.Pt),p=new z_(h,this.be),y=new AA,m=new Ld,_,A,D,I=new Dd(`${this.E.getTrackerUri()}/${hu}`),C=new hr(this.Tt,this.I);return new EA(this.E,u,p,o,n,t,I,C,this.V,e,y,m,s,c,_,A,D)}bP(t){return new yA(new SA(bA),t)}}return i})(),CA=(()=>{class i{constructor(t,e){this.li=t,this.S=e}init(){this.S.register(zS,()=>{this.li.startDataCollection()}),this.S.register(qS,()=>{this.li.stopDataCollection()})}}return i})(),Xo={fromSessionRenewal:!1,isRenewedVisitor:!1},IA=(()=>{class i{constructor(t,e,s,n,o,c){this.E=t,this.w=e,this.Si=s,this.ot=n,this.gr=o,this.V=c,this.WE=!1,this.YE=0,this.Cd=!0,this.XE=!1,this.Xi=!1,this.startDataCollection=({fromSessionRenewal:l,onAfterDataCollectionStartedCallback:u}=Xo)=>{l&&this.Xi||!this.WE?this.CP(l,u):this.IP()}}isDataCollectionStarted(){return this.Xi}tryStartAutomaticDataCollection({fromSessionRenewal:t,isRenewedVisitor:e,onAfterDataCollectionStartedCallback:s}=Xo){this.PP(t,e)&&this.startDataCollection({fromSessionRenewal:t,onAfterDataCollectionStartedCallback:s})}disableStartDataCollection(){this.Cd=!1}allowStartDataCollection({fromSessionRenewal:t}=Xo){this.Cd=!0,this.XE&&this.startDataCollection({fromSessionRenewal:t})}stopDataCollection(){this.Xi&&(this.Xi=!1,this.w.emitArtificialPageViewEnd(!0),this.gr.stop())}IP(){this.Xi||(this.Xi=!0,this.V.isSessionValid()?(this.V.refreshSession(),this.gr.start(zi.Artificial)):this.V.renewSession(!1))}PP(t,e){return e&&!this.Xi?!1:t?!0:this.E.startMode===En.Manual?!1:!Na(this.E)&&!this.E.isHeapSideloadsStartDataCollection()&&!this.E.isCsSideloadingHeap()}CP(t,e){if(this.Si.isActive()||(this.XE=!0,this.NP()&&(this.YE++,this.YE<2))||!this.Cd||this.Xi&&!t)return;this.WE=!0,this.Xi=!0,this.ot.init();let s=t?zi.Renewal:zi.Natural;this.gr.start(s);let n=()=>{this.w.emitStartTracking(t),typeof e=="function"&&e()};de.onDocumentLoaded(n)}NP(){return Na(this.E)&&this.E.isCsSideloadingHeap()}}return i})();var PA=20,NA="Custom Error:",OA=(()=>{class i extends ne{constructor(t,e,s,n,o,c,l){super(),this.Yi=t,this.Md=e,this.Tt=s,this.Ae=n,this.As=o,this.A=c,this.V=l,this.qc=[],this.Ks=0,this.mr=[]}initStates(){this.wi=U.now(),this.Md.removeQueryParams(),this.Md.setQueryParams(this.Tt.getRequestParameters()),this.qc=[],this.Ks=0}onStart(){this.Yi.subscribe(i.Kt,t=>this.X(t)),this.Od()}onStop(){this.Yi.unsubscribe(i.Kt)}onIframeJavascriptError(t){this.X(t)}trackCustomError(t){let e={errorType:"jsError",message:`${NA} ${t}`,lineno:1,colno:1,filename:""};this.Qo(e)}Qo(t){if(this.isStarted){let e=this.X(t);e&&this.As.emitCustomJavaScriptErrorEvent(e)}else csArray.prototype.push.call(this.mr,t)}Od(){this.isStarted&&(csArray.prototype.forEach.call(this.mr,t=>this.Qo(t)),this.mr=[])}X(t){if(this.isStarted&&this.Ks{class i{constructor(t,e,s,n,o,c,l,u,h,p){this.Yi=t,this.Ae=e,this.E=s,this.Tt=n,this.vt=o,this.S=c,this.As=l,this.A=u,this.$t=h,this.V=p}init(){let t=this.$t.create(`${this.E.getTrackerUri()}/${MA}`);this.Qi=new OA(this.Yi,t,this.Tt,this.Ae,this.As,this.A,this.V),this.vt.addListener(this.Qi),this.ut()}ut(){this.E.jsCustomErrorsEnabled&&!this.E.customErrors.enabled&&this.S.register(gd,t=>{this.Qi.trackCustomError(t)})}onStartTracking(){this.Qi.start()}onAfterNaturalPageView(){this.Qi.initStates()}onArtificialPageViewEnd(t){t&&this.Qi.stop()}onAfterArtificialPageView(t){this.Qi.initStates(),t&&this.Qi.start()}onBeforeSessionRenewal(){this.Qi.stop()}onOptout(){this.Qi.stop()}}return i})(),kA=(()=>{class i extends ne{constructor(t,e){super(),this.ee=t,this.O=e,this.Dd=[]}onStart(){csArray.prototype.forEach.call(this.Dd,t=>this.QE(t.key,t.value)),this.Dd=[]}onStop(){}QE(t,e){let s=this.O.anonymizePII(t),n=Yi(e)?e:this.O.anonymizePII(e);this.ee.add(new xo(s,n))}trackDynamicVariable(t,e){if(xo.isKeyValid(t)&&xo.isValueValid(e)){if(!this.isStarted){csArray.prototype.push.call(this.Dd,{key:t,value:e});return}this.QE(t,e)}else throw new Rt(uc[0])}}return i})(),LA=(()=>{class i{constructor(t){this.se=t,this.ee=[]}add(t){csArray.prototype.push.call(this.ee,t),this.setBatchReadyCall()}clear(){this.ee=[]}onBatchReady(t){this.HP=t}getRequestParameters(){let t={};for(let e of this.ee)t[e.key]=e.value;return{dv:this.se.compressSync(csJSON.stringify(t),"base64"),ct:this.se.algorithm}}setBatchReadyCall(){this.HP()}}return B([Vn({wait:0,mode:"trailing"}),L("dynamicVariablesBatchReady")],i.prototype,"setBatchReadyCall",null),i})(),xA="dvar",VA=(()=>{class i{constructor(t,e,s,n,o,c){this.S=t,this.R=e,this.E=s,this.Ke=n,this.se=o,this.O=c,this.Gt=new lr(this.E.getTrackerUri(),xA),this.ee=new LA(this.se),this.Fi=new kA(this.ee,this.O)}init(){this.Gt.setRequestParametersProviders(this.Ke,this.ee),this.R.setDynamicVariablesService(this.Fi),this.ee.onBatchReady(()=>this.Gt.send()),this.Gt.after(()=>this.ee.clear()),this.S.register(uc,({key:t,value:e}={})=>{this.Fi.trackDynamicVariable(t,e)})}onStartTracking(){this.Fi.start()}onArtificialPageViewEnd(t){t&&this.Fi.stop()}onAfterArtificialPageView(t){t&&this.Fi.start()}}return i})(),UA=(()=>{class i extends ne{constructor(t,e){super(),this.jP=t,this.V=e,this.Ue=null,this.kd=[]}onStart(){csArray.prototype.forEach.call(this.kd,t=>{this.Ue=t,this.ZE()}),this.kd=[]}onStop(){}addToCart(t){let e={};M(t.sku)&&(e.sku=csString.prototype.slice.call(t.sku,0,g_)),M(t.merchant)&&(e.merchant=csString.prototype.slice.call(t.merchant,0,vd)),(e.sku||e.merchant)&&(this.Ue=e,this.ZE())}getCartItem(){return this.Ue}ZE(){if(!this.isStarted&&this.Ue!==null){csArray.prototype.push.call(this.kd,this.Ue),this.clear();return}this.V.refreshSession(),this.V.isSessionValid()&&this.jP.send()}clear(){this.Ue=null}getRequestParameters(){if(!this.Ue)return{};let t={};return M(this.Ue.sku)&&this.Ue.sku.length>0&&(t.sku=this.Ue.sku),M(this.Ue.merchant)&&this.Ue.merchant.length>0&&(t.me=this.Ue.merchant),t}}return i})(),HA=(()=>{class i{constructor(t,e,s,n,o,c,l){this.E=t,this.Tt=e,this.I=s,this.S=n,this.O=o,this.V=c,this.A=l}init(){let t=new lr(this.E.getTrackerUri(),"transaction"),e=new lr(this.E.getTrackerUri(),"addtocart");this.$e=new E_(this.O,t,this.V),this.cn=new UA(e,this.V);let s=new hr(this.Tt,this.I,this.A,this.$e);t.setRequestParametersProviders(s),t.after(()=>{this.$e.clear()});let n=new hr(this.Tt,this.I,this.A,this.cn);e.setRequestParametersProviders(n),e.after(()=>{this.cn.clear()}),this.S.register(hc,o=>{this.$e.addTransaction(o)}),this.S.register(Un,o=>this.$e.addItem(o)),this.S.register(dc,()=>this.$e.sendTransaction()),this.S.register(Hy,o=>{this.cn.addToCart(o)})}onStartTracking(){this.$e.start(),this.cn.start()}onArtificialPageViewEnd(t){t&&(this.$e.stop(),this.cn.stop())}onAfterArtificialPageView(t){t&&(this.$e.start(),this.cn.start())}}return i})();var jA=(()=>{class i{constructor(t){this.xt=t,this.ye=[]}handleCommand(t){if(xe(t)&&(this.ao(t),this.xt.isNaturalPageViewSent())){let e=this.xt.getTrackingContext();e!==null&&this.Xt(t,e)}}ao(t){csArray.prototype.push.call(this.ye,t)}executeRegisteredCallbacks(){let t=this.xt.getTrackingContext();t!==null&&csArray.prototype.map.call(this.ye,e=>this.Xt(e,t))}Xt(t,e){csSetTimeout(()=>{t(e)})}}return i})(),BA=(()=>{class i{constructor(t){this.xt=t,this.qs=[]}handleCommand(t){if(this.xt.isNaturalPageViewSent())return this.SN(t);this.co(t)}SN(t){let e=this.xt.getSessionKey();return this.hy(t)&&e!==null&&this.Xt(t.callback,e),e}co(t){this.hy(t)&&csArray.prototype.push.call(this.qs,t.callback)}flushPendingCallbacks(){let t=this.xt.getSessionKey();t!==null&&csArray.prototype.forEach.call(this.qs,e=>{this.Xt(e,t)}),this.qs=[]}hy(t){return t&&typeof t.callback=="function"}Xt(t,e){csSetTimeout(()=>{t(e)})}}return i})();var $A=(()=>{class i{constructor(t,e,s,n,o,c){this.I=t,this.R=e,this.E=s,this._i=n,this.A=o,this.lt=c,this.dy=!1}isNaturalPageViewSent(){return this.dy}setNaturalPageViewSent(t){this.dy=t}getTrackingContext(){let t=this.R.getSession();if(!t)return null;let e=this.getSessionKey();if(!e)return null;let s=this.E.projectId,n=this.E.uxaDomain,o=t.pageNumber,c=this._i.getPageViewType(),l=this.R.isReplayRecorded(),u=this._N(t),h,p,y;return this.E.experiments&&(h=this.A.getUrl(),p=this.lt.getAllValidCustomVars(),y=this.lt.getAllValidPageCustomVars()),{projectId:s,sessionKey:e,pageNumber:o,pageViewType:c,isRecording:l,uxaDomain:n,recordingConsentState:u,...this.E.smbConfig,pageViewUrl:h,customVariables:p,...y!==void 0?{pageCustomVariables:y}:{}}}getSessionKey(){let t=this.I.getVisitor();return t?`${t.id}.${t.visitsCount}`:null}_N(t){if(!Gi.isReplayConsentNeeded(this.E))return Xs.NOT_NEEDED;switch(t.replayConsent){case re.NOT_EXPRESSED:return Xs.NOT_EXPRESSED;case re.WITHDRAWN:return Xs.WITHDRAWN;case re.GRANTED:return Xs.GRANTED;default:return Xs.NOT_NEEDED}}}return i})(),GA=(()=>{class i{constructor(t,e,s,n,o,c,l,u,h,p){this.I=t,this.R=e,this.S=s,this.vt=n,this.J=o,this.E=c,this._i=l,this.ws=u,this.A=h,this.lt=p,this.fy=null}init(){this.xt=new $A(this.I,this.R,this.E,this._i,this.A,this.lt),this.Vd=new jA(this.xt),this.py=new BA(this.xt),this.oo=new q_,this.vN=new W_(this.xt),this.S.register(iS,t=>this.py.handleCommand(t)),this.S.register(Ed,t=>this.Vd.handleCommand(t)),this.S.register(sS,t=>t(this.xt.getTrackingContext())),this.S.register(rS,t=>this.oo.handleCommand(t,this.ws.getRecordingContext())),this.S.register(nS,(t,e)=>{this.gn&&this.vN.handleCommand({...t,recordingStartTimestamp:this.ws.getRecordingContext().recordingStartTimestamp},e)})}onAfterNaturalPageView(){var t;this.xt.setNaturalPageViewSent(!0),this.py.flushPendingCallbacks(),this.Vd.executeRegisteredCallbacks(),(t=this.fy)===null||t===void 0||t.sendAfterPageViewCallbackToChildren()}onAfterArtificialPageView(){var t;this.Vd.executeRegisteredCallbacks(),(t=this.fy)===null||t===void 0||t.sendAfterPageViewCallbackToChildren()}onCollectStateChange(){this.executeRecordingContextChangeCallbacks()}onRecordingContextChange(){this.executeRecordingContextChangeCallbacks()}executeRecordingContextChangeCallbacks(){this.oo.executeCallbacks(this.ws.getRecordingContext())}setRecordingService(t){this.gn=t}}return B([Vn({wait:0,mode:"trailing"})],i.prototype,"executeRecordingContextChangeCallbacks",null),i})(),zA=(()=>{class i{constructor(t){this.S=t}init(){this.gy(i.wN,Bh),this.gy(i.AN,jh)}gy(t,e){this.S.register([t],(s,n)=>{!M(s)||!(M(n)||Xe(n))||z.error(n,`${e}${s}`)})}}return i.AN="logSnippetError",i.wN="logImplementationSnippetError",i})(),qA="@ETP@",du="@user-identifier@",FA=(()=>{class i extends ne{constructor(t,e,s,n){super(),this.E=t,this.TN=e,this.se=s,this.z=n,this.Ud=[],this.Qs=[]}onStart(){csArray.prototype.forEach.call(this.Ud,t=>this.my(t)),this.Ud=[],csArray.prototype.forEach.call(this.Qs,t=>this.Ey(t)),this.Qs=[]}onStop(){}my(t){this.bN(t)?ir.isSupported()&&this.RN(t):this.CN(t)}trackPageEvent(t){if(!i.yy(t))throw new Rt(fc[0]);this.isStarted?this.my(t):csArray.prototype.push.call(this.Ud,t)}bN(t){return aa(t,du)}async RN(t){if(!this.E.customHashIdEnabled)return;let e=csString.prototype.slice.call(t,du.length);if(e.length>ir.MAX_DIGEST_INPUT_SIZE){z.warn("UserIdentifier event: invalid user identifier");return}let s=await ir.digest(e);s?(this.En={eventName:s,isETR:!1,isCustomHashId:!0},this.Kc()):z.warn("Page event: unable to compute customHashId"),this.E.encryptionEnabled&&this.z.emitUserIdentifierEvent(e)}CN(t){this.z.emitPageEvent(t),this.En={eventName:t,isETR:!1,isCustomHashId:!1},this.Kc(),this.E.tagDeploymentMode===Ji.LoadClicktalePtc&&uu.sendPageEvent(t)}Ey(t){this.E.malkaEtrEnabled?this.IN(t):this.PN(t)}trackEventTriggerRecording(t){if(!i.yy(t))throw new Rt(Tr[0]);this.isStarted?this.Ey(t):csArray.prototype.push.call(this.Qs,t)}IN(t){aa(t,qA)?this.z.emitEventTriggerRecording(t,Ai.ETR_PAGE):this.z.emitEventTriggerRecording(t,Ai.ETR_SESSION),this.En={eventName:t,isETR:!0,isCustomHashId:!1},this.Kc()}PN(t){pA(this.E)&&(this.z.emitEventTriggerRecording(t,Ai.ETR_LEGACY),this.En={eventName:t,isETR:!0,isCustomHashId:!1},this.Kc(),this.E.tagDeploymentMode===Ji.LoadClicktalePtc&&uu.sendEventTriggerRecording(t))}getRequestParameters(){return{value:this.se.compressSync(this.En.eventName,"base64"),ct:this.se.algorithm,isETR:`${this.En.isETR}`,isCustomHashId:`${this.En.isCustomHashId}`}}Kc(){this.TN.send()}static yy(t){return M(t)&&!!csString.prototype.trim.call(t)}}return i})(),WA=(()=>{class i{constructor(t,e,s,n,o){this.E=t,this.S=e,this.se=s,this.Ke=n,this.z=o}init(){let t=new lr(this.E.getTrackerUri(),"pageEvent");this.Sn=new FA(this.E,t,this.se,this.z),t.setRequestParametersProviders(this.Sn,this.Ke),this.S.register(fc,e=>{this.Sn.trackPageEvent(e)}),this.S.register(Tr,e=>{this.Sn.trackEventTriggerRecording(e)})}onStartTracking(){this.Sn.start()}onArtificialPageViewEnd(t){t&&this.Sn.stop()}onAfterArtificialPageView(t){t&&this.Sn.start()}}return i})();var YA=(()=>{class i{constructor(){this.Hd=Bi.Natural}setPageViewType(t){this.Hd=t}getPageViewType(){return this.Hd}getRequestParameters(){return{pvt:this.Hd}}}return i})();var XA=(()=>{class i{constructor(t,e){this.Ft=t,this.E=e,this.Sy=!1}enableRecordingContext(t,e,s){this.Sy=!0,this.gn=t,this.R=e,this.xo=s}getRecordingContext(){var t,e,s;if(!this.Sy)return{isRecording:!1,recordingStartTimestamp:0,etrState:Ie.ETR_OFF,etrStatus:he.ETR_DISABLED,collectState:j.ANALYTICS_ONLY};let n=this.R.getSession();return{isRecording:this.gn.isRecording(),useAnonymization:this.Ft.getSensitiveStatus().useAnonymization,enableOnlineResources:(t=this.gn.getStaticResourceManagerStatus())===null||t===void 0?void 0:t.onlineAssets.activated,enableOnlineResourcesOnNextPageview:(e=this.gn.getStaticResourceManagerStatus())===null||e===void 0?void 0:e.onlineAssets.enabledOnNextPageview,recordingStartTimestamp:parseInt(this.gn.getRecordingStartTimestamp(),10),etrState:this.E.malkaEtrEnabled?Ie.ETR_ON:Ie.ETR_OFF,etrStatus:this.xo.getEtrStatus(n),collectState:(s=n==null?void 0:n.collectState)!==null&&s!==void 0?s:j.ANALYTICS_ONLY}}}return i})(),KA=(()=>{class i{constructor(t,e,s,n,o,c,l){this.w=t,this.S=e,this.ot=s,this.he=n,this.ue=o,this.At=c,this.Yr=l}init(){var t,e;this.Yr&&this.At&&((t=this.Yr)===null||t===void 0||t.addSelector((e=this.At)===null||e===void 0?void 0:e.getEncryptionSelectors())),this.ut()}onBeforeNaturalPageView(t){this.he.start(),this.w.emitSensitiveStatusChange()}onStartTracking(t){this.he.start(),this.w.emitSensitiveStatusChange()}onAfterArtificialPageView(){this.he.stop(),this.he.start(),this.w.emitSensitiveStatusChange()}onBeforeSessionRenewal(){this.he.stop(),this.w.emitSensitiveStatusChange()}onOptout(){this.he.stop(),this.w.emitSensitiveStatusChange()}onReplayUnanonymizationConsentGranted(){this.w.emitSensitiveStatusChange()}onReplayUnanonymizationConsentWithdrawn(){this.w.emitSensitiveStatusChange()}ut(){this.S.register(ec,t=>{this.ot.setMaskedElementSettingsFromCommand(t),this.w.emitSensitiveStatusChange()}),this.S.register(Yh,t=>{this.ue.setWhitelistedElementsSelector(t),this.w.emitSensitiveStatusChange()}),this.S.register(Wh,t=>{var e,s;(e=this.At)===null||e===void 0||e.setEncryptionSelectors(t),(s=this.Yr)===null||s===void 0||s.addSelector(t)})}}return i})(),JA=(()=>{class i{constructor(t,e,s,n,o,c){this.nt=t,this.ot=e,this.he=s,this.ue=n,this.uo=o,this.At=c,this.ho=qa(this.uo)}getSensitiveStatus(){var t,e;return{started:this.he.isStarted,useAnonymization:this.nt.shouldUseAnonymization(),capturedElementSelector:this.ue.getWhitelistedElementsSelector(),maskedElementSettings:this.ot.getMaskedElementSettings((t=this.nt)===null||t===void 0?void 0:t.shouldMaskNonTextElements()),encryptionSelectors:(e=this.At)===null||e===void 0?void 0:e.getEncryptionSelectors()}}getElementSensitiveStatus(t){let e=this.he.isStarted,s=this.nt.shouldUseAnonymization();return e?G.isMaskedElement(t)||G.isMaskedElementChild(t)?Ee.MASKED:o_.shouldEncrypt(t)?Ee.ENCRYPTED:yi.isEditableNode(t)?Ee.ANONYMIZED:s?Ye.isWhitelistedElement(t)?Ee.CAPTURED:Ee.ANONYMIZED:Ee.CAPTURED:Ee.ANONYMIZED}getAttributeSensitiveStatus(t,e){if(!this.he.isStarted)return Ee.ANONYMIZED;let s=this.nt.shouldUseAnonymization();return G.isMaskedAttribute(t,e)?Ee.MASKED:s?fr(t)||Ye.isWhitelistedElement(t)||this.ho.has(e)?Ee.CAPTURED:Ee.ANONYMIZED:Ee.CAPTURED}}return i})(),QA=(()=>{class i{constructor(t){this.V=t}onAfterVisitorRenewal(){this.V.renewSession(!0)}}return i})(),ZA={MATCHED:{[j.ANALYTICS_ONLY]:j.ANALYTICS_ONLY_RULES_TARGETING,[j.RECORDING_GLOBAL_SAMPLING]:j.RECORDING_RULES_TARGETING,[j.ANALYTICS_ONLY_RECORDING_PENDING_RULES_TARGETING]:j.RECORDING_RULES_TARGETING},MISSED:{[j.ANALYTICS_ONLY]:j.ANALYTICS_ONLY_RULES_TARGETING,[j.RECORDING_GLOBAL_SAMPLING]:j.ANALYTICS_ONLY_RECORDING_PENDING_RULES_TARGETING}},Ko=(()=>{let i;return function(r){let t;function e(m){t=m}r.setLogger=e;function s(m,_){for(let A of m)if(o(A,_))return!0;return!1}r.isUrlMatching=s;function n(m,_){if(M(_)){for(let A of m)if(o(A,_))return!0}else if(pn(_)){for(let A of m)if(o(A,csString(_)))return!0}return!1}r.isMatching=n;function o(m,_){let A=c(m,_);return m.negate?!A:A}function c(m,_){switch(m.rule_type==="date"&&(m.match_operation==="less_than"||m.match_operation==="greater_than")&&(_=(new csDate(_).valueOf()/1e3).toFixed(0)),m.match_operation){case"exact":switch(m.rule_type){case"string":return M(m.pattern)?csString.prototype.toLowerCase.call(_)===csString.prototype.toLowerCase.call(m.pattern):!1;case"boolean":return _===m.pattern||_===csString(m.pattern);case"number":return It(_)?Number(_)===Number(m.pattern):!1;default:return _===m.pattern}case"starts_with":return M(m.pattern)?csString.prototype.indexOf.call(_,m.pattern)===0:!1;case"ends_with":return M(m.pattern)?Is(_,m.pattern):!1;case"contains":return M(m.pattern)?csString.prototype.indexOf.call(_,m.pattern)!==-1:!1;case"regex":if(!M(m.pattern))return!1;try{return new csRegExp(m.pattern).test(_)}catch(A){return t==null||t.warn(`targeting.matchOperation.regex invalid ${A==null?void 0:A.message}`),!1}case"simple":return M(m.pattern)?y(_)===y(m.pattern):!1;case"greater_than":return Number(_)>Number(m.pattern);case"less_than":return Number(_)=I.getTime()}function p(m){return It(m)?M(m)?csString.prototype.trim.call(m)==="":pn(m)?m===!0:Ht(m)?m!==0:!1:!0}function y(m){let _=Wt(m,"http://")||Wt(m,"https://")?m:`https://${m}`,A=Hh(_);return A!==null?csString.prototype.replace.call(A.host,/^www./,""):m}}(i||(i={})),i})(),tT=(()=>{let i;return function(r){r.URL="url"}(i||(i={})),i})(),Jo={isLegacyURL:i=>i.component==="url",isLegacyTrigger:i=>i.component==="trigger",isURL:i=>i.type===tT.URL},eT=(()=>{class i{constructor(t){this._y=new er,this.vy=[],this.wy=[],Ko.setLogger(t)}setTargetingRules(t){this._y.setRegexRules(csArray.prototype.filter.call(t,Jo.isURL));for(let e of t)Jo.isLegacyURL(e)?csArray.prototype.push.call(this.vy,e):Jo.isLegacyTrigger(e)&&csArray.prototype.push.call(this.wy,e)}matchUrl(t){return Ko.isUrlMatching(this.vy,t)||this._y.evaluateUrl(t)}matchTrigger(t){return Ko.isMatching(this.wy,t)}}return i})(),iT=(()=>{class i extends ne{constructor(t,e,s){super(),this.Ay=t,this.jd=e,this.A=s}init(){this.Bd=new eT(z),this.Ay&&this.Bd.setTargetingRules(this.Ay)}onStart(){}checkTargetingRules(){let t=this.A.getAnonymizedUrl();this.jd(this.$d(t,"url"))}onStop(){}onTargetingRulesArtificialPageview(t){this.isStarted&&this.jd(this.$d(t,"url"))}onExternalEvent(t){this.isStarted&&this.jd(this.$d(t.name,"trigger"))}$d(t,e){var s,n;return e==="url"&&M(t)&&(!((s=this.Bd)===null||s===void 0)&&s.matchUrl(t))?!0:!!(e==="trigger"&&(!((n=this.Bd)===null||n===void 0)&&n.matchTrigger(t)))}}return i})(),sT=(()=>{class i{constructor(t,e,s,n,o,c,l){this.E=t,this.w=e,this.Ee=s,this.z=n,this.A=o,this.R=c,this.li=l,this.Er=!1,this.Ho=(u=!1)=>{this.Er&&this.E.isSMB&&this.li.allowStartDataCollection({fromSessionRenewal:u}),this.E.startMode===En.Automatic&&this.li.startDataCollection({fromSessionRenewal:u})},this.NN=u=>{this.Er||(this.Er=u,this.Ty(),this.Ho())}}init(){this.E.isSMB&&this.li.disableStartDataCollection(),this._n=new iT(this.E.recordTargetingRules,this.NN,this.A),this.z.addListener(this._n),this._n.init()}start(){this._n.start()}stop(){this._n.stop()}maybeStartDataCollection(t){if(t){this.Ho(t);return}if(this.ON()){this.Er=!0,this.Ho(),this.stop();return}this._n.checkTargetingRules()}onAfterArtificialPageView(){this._n.checkTargetingRules()}onCollectStateChange(t){if(this.by(t)){this.stop();return}let e=t===j.ANALYTICS_ONLY_RECORDING_PENDING_RULES_TARGETING;!this.Er&&e||csSetTimeout(()=>this.Ry(t),0)}onStartTracking(){this.Ty()}ON(){let t=this.R.getSession();return!!(t&&this.by(t.collectState))}by(t){return t===j.RECORDING_RULES_TARGETING||t===j.ANALYTICS_ONLY_RULES_TARGETING}Ty(){var t;if(this.Er){let e=this.R.getSession(),s=this.Ee.getInitialCollectState();this.Ry((t=e==null?void 0:e.collectState)!==null&&t!==void 0?t:s),this.li.isDataCollectionStarted()&&this.w.emitTargetingRulesMatched()}}Ry(t){let e=ZA[this.Er?"MATCHED":"MISSED"][t];e&&this.w.emitCollectStateChange(e,Ie.ETR_OFF)}}return i})();var rT=(()=>{class i{constructor(t,e,s){this.E=t,this.I=e,this.R=s,this.wi=U.now()}resetStartTime(){this.wi=U.now()}getSessionData(){let{projectId:t}=this.E,e=this.I.getVisitor();e==null&&z.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&&z.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.wi}}}return i})(),nT=(()=>{class i{constructor(t,e,s,n){this.E=t,this.I=e,this.R=s,this.S=n}init(){this.Gd=new rT(this.E,this.I,this.R),this.S.register(KS,()=>this.R.removeSession()),this.S.register(JS,()=>this.R.extendSessionPeriodically(),{disableApplyPending:!0}),this.S.register(QS,()=>this.Gd.getSessionData(),{disableApplyPending:!0}),this.S.register(ZS,()=>this.I.renewVisitor()),this.S.register(t_,()=>{this.I.resetVisitor()},{disableApplyImmediate:!0})}onBeforeNaturalPageView(){this.I.createOrUpdateVisitor(),this.R.createOrUpdateSession()}onBeforeArtificialPageView(){this.I.createOrUpdateVisitor(),this.R.createOrUpdateSession()}onAfterNaturalPageView(){this.Gd.resetStartTime()}onAfterArtificialPageView(){this.Gd.resetStartTime()}onOptout(){this.I.removeVisitor(),this.R.removeSession()}onCollectStateChange(t){this.R.updateCollectState(t)}}return i})(),oT=(()=>{class i{constructor(t,e,s,n,o,c,l,u,h,p,y,m,_,A,D,I,C,x,O,N,W,q,gt,Pt,te,fe,T,V,H,F,vt,At,oe,ae,ve,Ve,Ue){this.Tt=t,this.na=e,this.se=s,this.I=n,this.R=o,this.V=c,this.vi=l,this.w=u,this.S=h,this.Gh=p,this.E=y,this.zh=m,this.Si=_,this.Bo=A,this.Mt=D,this.O=I,this.Ct=C,this.tt=x,this.A=O,this.MN=N,this.z=W,this.vt=q,this.lt=gt,this.Iy=Pt,this.le=te,this.DN=fe,this.M=T,this.$t=V,this.L=H,this.kt=F,this.mt=vt,this.Ee=At,this.ot=oe,this.ai=ae,this.Dt=ve,this.re=Ve,this.Pt=Ue,this.kN=He=>{this.w.emitBeforeSessionRenewal(),this.Kr(!0,He),this.w.emitAfterSessionRenewal()},this.LN=He=>{this.w.emitBeforeSessionRenewal(),this.Ee.refreshQuota(ce=>{ce!==j.QUOTA_REACHED&&(this.Kr(!0,He),this.w.emitAfterSessionRenewal())})}}start(){if(this.zh.init(),this.Si.init(),this.Si.isActive())return;let t,e,s,n,o,c,l,u,h,p,y,m,_,A,D,I,C,x;this.M.task(()=>{A=new QA(this.V),y=new c_(this.Ct),m=new s_(()=>{}),D=new r_,x=new n_;let O=new Hw(m,this.ot,D,C,x,this.zd());_=new JA(this.zd(),this.ot,O,D,this.E.whitelistedAttributes,I);let N=new KA(this.w,this.S,this.ot,O,D,I,C);N.init(),this.w.addListener(N),t=new RA(this.E,this.na,this.I,this.Ct,y,this.S,this.V,new e_(z),this.vt,this.$t,this.z,_,this.Q,this.re,this.Pt),e=new VA(this.S,this.R,this.E,this.Tt,this.se,this.O),p=new XA(_,this.E);let W=null,q=new YA;s=new GA(this.I,this.R,this.S,this.vt,W,this.E,q,p,this.A,this.lt),n=new HA(this.E,this.na,this.I,this.S,this.O,this.V,this.A);let gt,Pt;this.gr=new hA(this.E,this.S,this.w,this.na,this.I,this.R,this.vi,this.Mt,this.lt,this.A,this.le,q,this.z,this.$t,this.ai,gt,this.re,this.Pt,Pt),this.Py=new nT(this.E,this.I,this.R,this.S),this.li=new IA(this.E,this.w,this.Si,this.ot,this.gr,this.V),new CA(this.li,this.S).init(),c=new WA(this.E,this.S,this.se,this.na,this.z),l=new zA(this.S),u=new mA}),this.M.task(()=>{this.Yi=new jw,this.Ae=new p_(this.O,this.A);let O=new DA(this.Yi,this.Ae,this.E,this.na,this.vt,this.S,this.z,this.A,this.$t,this.V);O.init(),this.w.addListener(O)}),this.M.task(()=>{this.Bo.init()}),this.M.task(()=>{s.init()}),this.M.task(()=>{e.init()}),this.M.task(()=>{n.init()}),this.M.task(()=>{this.Iy.init()}),this.M.task(()=>{this.gr.init()}),this.M.task(()=>{this.Py.init()}),this.M.task(()=>{c.init()}),this.M.task(()=>{this.MN.init()}),this.M.task(()=>{l.init()}),this.M.task(()=>{u.init()}),this.M.task(()=>{this.DN.init()}),this.M.task(()=>{this.w.addListener(this.Py),this.w.addListener(this.Gh),this.w.addListener(t),this.w.addListener(this.Bo),this.w.addListener(s),this.w.addListener(n),this.w.addListener(this.Iy),this.w.addListener(this.gr),this.w.addListener(c),this.w.addListener(e),this.w.addListener(u),this.w.addListener(A)}),ur.isRecordingSupported()&&this.M.task(()=>{let O=new Vw(p,this.R,this.E,this.Tt,this.S,this.O,this.V,m,this.Ae,this.wt,this.ze,this.Rt,this.w,this.z,this.vt,this.le,this.$t,this.tt,this.bo,this.zd(),this.Lr,I);O.init(),this.w.addListener(O),s.setRecordingService(O.recordingService)}),this.M.task(()=>{let O,N}),this.M.task(()=>{t.init()}),this.M.task(()=>{this.E.isQuotaEnabled()?this.V.onSessionExpired(O=>{this.LN(O)}):this.V.onSessionExpired(O=>{this.kN(O)}),this.Kr()})}Kr(t=!1,e=!1){var s,n,o;if(this.E.hasTargetingRules()){this.oa||(this.oa=new sT(this.E,this.w,this.Ee,this.z,this.A,this.R,this.li),this.w.addListener(this.oa),this.oa.init(),this.oa.start(),this.S.start(),(s=this.Q)===null||s===void 0||s.start()),this.oa.maybeStartDataCollection(t);return}this.S.start(),(n=this.Q)===null||n===void 0||n.start(),this.li.tryStartAutomaticDataCollection({fromSessionRenewal:t,isRenewedVisitor:e})}zd(){if(this.nt)return this.nt;let t=new er;return this.nt=new a_(this.E,this.A,t,this.Mt),this.nt.init(),this.nt.shouldUseAnonymization()&&$.counters.pageAnonymisation.count("anonymized-on-start"),this.nt}}return i})();var aT=(()=>{class i{constructor(t,e,s,n,o,c,l,u){this.I=t,this.R=e,this.bi=s,this.lt=n,this.E=o,this.Dt=c,this.Pt=l,this.Qt=u}get(){var t,e,s;return{exclusion:this.bi.getAppliedTrackingDraw(),visitor:this.I.getVisitor(),session:this.R.getSession(),cvars:this.lt.getCustomVariablesSession(),identity:(t=this.Dt)===null||t===void 0?void 0:t.getIdentity(),customProperties:(e=this.Pt)===null||e===void 0?void 0:e.getProperties(),sessionContext:(s=this.Qt)===null||s===void 0?void 0:s.getSessionContextStorageValue()}}apply(t){t&&(t.exclusion?this.exclude():this.include(t))}exclude(){var t,e,s;this.bi.exclude(this.E),this.I.removeVisitor(),this.R.removeSession(),this.lt.removeCustomVariablesSession(),(t=this.Dt)===null||t===void 0||t.resetIdentity(),(e=this.Pt)===null||e===void 0||e.clearProperties(),(s=this.Qt)===null||s===void 0||s.removeSessionContext()}include(t){var e,s,n;this.bi.removeExclusion(),this.I.setVisitor(t.visitor),t.session?this.R.setSession(t.session):this.R.removeSession(),t.cvars?this.lt.setCustomVariableSession(t.cvars):this.lt.removeCustomVariablesSession(),t.identity&&this.Dt?this.Dt.setIdentityCookie(t.identity):(e=this.Dt)===null||e===void 0||e.resetIdentity(),t.customProperties&&this.Pt?this.Pt.setProperties(t.customProperties):(s=this.Pt)===null||s===void 0||s.clearProperties(),t.sessionContext&&this.Qt?this.Qt.setSessionContextStorageValue(t.sessionContext):(n=this.Qt)===null||n===void 0||n.removeSessionContext()}}return i})();var cT=(()=>{class i{constructor(t,e,s){this.I=t,this.R=e,this.WN=s}handle(){this.I.hasAllowSubdomainsChanged()&&(this.I.handleSubdomainChange(),this.R.handleSubdomainChange(),this.WN.handleSubdomainChange())}}return i})(),lT=(()=>{class i{constructor(t,e,s){this.E=t,this.I=e,this.bi=s}clear(){this.YN()&&(this.xy=this.I.getVisitor(),this.I.removeVisitor()),this.XN()&&this.bi.removeExclusion()}YN(){return this.I.doesVisitorExist()&&this.I.getVisitor().appliedTrackingDraw!==this.E.lastTrackingDraw}XN(){return this.bi.getAppliedTrackingDraw()!==this.E.lastTrackingDraw}restoreClearedVisitor(){this.xy&&this.I.setVisitor(this.xy)}}return i})(),uT=(()=>{class i{constructor(t,e,s,n,o,c,l,u){this.E=t,this.I=e,this.bi=s,this.Vy=n,this.KN=o,this.JN=c,this.QN=l,this.Vn=u}compute(t){var e,s;this.E.crossDomainTracking&&!this.E.cookielessTrackingEnabled?this.E.crossDomainSingleIframeTracking?(e=this.QN)===null||e===void 0||e.start(()=>this.Fd(t)):(s=this.JN)===null||s===void 0||s.applyUpToDate(()=>this.Fd(t)):this.Fd(t)}Fd(t){this.KN.handle(),this.Vy.clear(),this.ZN()?(this.Vy.restoreClearedVisitor(),t(!0)):(this.bi.exclude(this.E),t(!1))}ZN(){let t=Xi.boolean(this.E.sampleRate);return this.Vn.isForceIncluded()||!this.bi.isExcluded()&&this.I.doesVisitorExist()||!this.bi.isExcluded()&&t}}return i})(),jd=(()=>{class i{constructor(t,e,s,n,o,c,l,u,h,p,y,m,_,A,D,I,C,x,O,N){this.E=t,this.M=e,this.w=s,this.mt=n,this.O=o,this.tt=c,this.A=l,this.L=u,this.kt=h,this.S=p,this.z=y,this.ot=m,this.Mt=_,this.Ee=A,this.ge=D,this.R=I,this.Vh=C,this.I=x,this.V=O,this.Vn=N}init(){this.L.init(),this.E.isQuotaEnabled()?this.tO():this.Uy()}tO(){if(!this.E.collectionEnabled){this.Hy(),cu()&&this.jy();return}this.Ee.init((t,e)=>{t?this.Uy():this.Hy(),cu(e)?this.jy():iA(e)?(Wo.set(or.HJ_DUAL_COLLECT,"csq-replay"),$.counters.trackedFeatures.count("dual-collection-csq-replay")):Wo.set(or.HJ_DUAL_COLLECT,null)})}jy(){Wo.set(or.HJ_DUAL_COLLECT,"hj-recording"),_w.dispatchEvent(new CustomEvent(eA)),$.counters.trackedFeatures.count("dual-collection-hj-replay")}Hy(){}Uy(){ir.isSupported()&&ir.setDigestSalt(this.E.projectId.toString());let t,e,s,n,o,c,l,u,h,p,y,m,_,A,D,I,C,x,O,N,W,q,gt,Pt,te,fe,T,V,H;this.M.task(()=>{new Xw().init()}),this.M.task(()=>{var F,vt;e=new cT(this.I,this.R,this.Mt),s=new Fo(this.E,this.L,this.mt,Vd,Hp),n=new zw(_w.location,s),o=new Gw(n),l=new lT(this.E,this.I,n),C=new d_(vi,this.E);let At=new Fo(this.E,this.L,this.mt,Qw);x=new tA(this.O,At),y=new Zw(this.S,x),fe=new dA(this.tt,new S_);let oe;m=new A_(C,this.E.isChild,oe),_=new T_(C),A=new b_(C),D=new R_,I=new w_(m,_,A,D),u=new Bw(this.S,I),h=new Ny(this.A),p=new Uw(h,this.S);let ae=new aT(this.I,this.R,n,x,this.E,gt,W,Pt)}),this.M.task(()=>{let F=new uT(this.E,this.I,n,l,e,c,t,this.Vn);this.E.implementations&&(O=new $S(this.E.implementations,this.S,this.M,this.E.experimental.snippets),O.init(),this.w.addListener(O)),F.compute(vt=>{this.M.task(()=>{(async()=>{u.init();let At=new Jw(this.E,this.S,this.Mt,this.R,this.w),oe=new Fo(this.E,this.L,this.kt,Ud,Ba),ae=new Fw(this.w,_w.location,oe),ve=new qw(this.S,ae),Ve=new fA(this.S,this.E),Ue=new lu(this.E,this.I,this.R),He=new lu(this.E,this.I,this.R,Pt);if(vt){this.w.emitInitTracking();let ce=Kh.create(),Lt=new Jh(ce);new oT(Ue,He,ce,this.I,this.R,this.V,fe,this.w,this.S,u,this.E,ve,ae,At,this.Mt,this.O,C,this.tt,this.A,Ve,this.z,I,x,y,h,p,this.M,Lt,this.L,this.kt,this.mt,this.Ee,this.ot,te,gt,N,W).start()}else new $w(this.w,this.S,u,ve,ae,o,At).start()})().catch(At=>z.error(At,"boot:trackingState"))})})})}}return i.$deps=[Dt,Ts,Ki,Er,Ke,vn,Ln,ai,tc,ma,Uh,Xh,Fh,bs,Rn,Es,An,tr,Sa,nn],i})(),Bd=[],hT=Ce(Fa,dT,[Ps,Gh,jd,Qh,...Bd]);function dT(i,r,t,e,s){var n,o;try{if(!i.isTopWindowTracker()&&!1){if(r.canTrackInChild()){if(!s)throw new Error("ChildBoot dependency was not resolved.");return s}throw new Kc}if(!((n=_w.CSProtectnativeFunctionsLogs)===null||n===void 0)&&n.Critical)throw new vg((o=_w.CSProtectnativeFunctionsLogs)===null||o===void 0?void 0:o.Critical);if(!r.canTrack())throw new Kc;return xE(),t}catch(c){throw $.counters.boot.count("no-boot"),c}}var fT=[jd,hT,...Bd],pT=(()=>{let i=class{};return i.$deps=[],i=B([Sr({imports:[ic,DE],providers:[...fT],exports:[Fa]})],i),i})();var gT=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+` `+y+` | `+u.line+" | "+m+` `+y+" | "+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 _=m.parts.map(function(A){return csArray.isArray(A)?u(A[0])+"-"+u(A[1]):u(A)});return"["+(m.inverted?"^":"")+_.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(_){return"\\x0"+c(_)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(_){return"\\x"+c(_)})}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(_){return"\\x0"+c(_)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(_){return"\\x"+c(_)})}function h(m){return o[m.type](m)}function p(m){var _=m.map(h),A,D;if(_.sort(),_.length>0){for(A=1,D=1;A<_.length;A++)_[A-1]!==_[A]&&(_[D]=_[A],D++);_.length=D}switch(_.length){case 1:return _[0];case 2:return _[0]+" or "+_[1];default:return _.slice(0,-1).join(", ")+", or "+_[_.length-1]}}function y(m){return m?'"'+l(m)+'"':"end of input"}return"Expected "+p(s)+" but "+y(n)+" found."};function e(s,n){n=n!==void 0?n:{};var o={},c=n.grammarSource,l={start:uo},u=uo,h="|detached|",p=">",y=":eq(",m=")",_="[",A="](",D="#",I="|shadow-root|",C="|iframe|",x="@",O="\\",N="#UCS[",W="]",q="#UA",gt="=",Pt='="',te='"]',fe=/^[\]]/,T=/^[\]"]/,V=/^[#;&,.+*~':"!\^$[\]()<=>|\/%?@`{}\\ ]/,H=/^[0-9]/,F=Tt("|detached|",!1),vt=Tt(">",!1),At=Tt(":eq(",!1),oe=Tt(")",!1),ae=Tt("[",!1),ve=Tt("](",!1),Ve=Tt("#",!1),Ue=Tt("|shadow-root|",!1),He=Tt("|iframe|",!1),ce=Tt("@",!1),Lt=xs("word"),le=rs(["]"],!1,!1),ts=oo(),Rr=Tt("\\",!1),Hn=rs(["]",'"'],!1,!1),Cr=rs(["#",";","&",",",".","+","*","~","'",":",'"',"!","^","$","[","]","(",")","<","=",">","|","/","%","?","@","`","{","}","\\"," "],!1,!1),jn=xs("integer"),Ds=rs([["0","9"]],!1,!1),Ir=Tt("#UCS[",!1),Pr=Tt("]",!1),Nr=Tt("#UA",!1),ks=Tt("=",!1),Ls=Tt('="',!1),es=Tt('"]',!1),Or=function(){return{type:"detached"}},Mr=function(f,v){let[b,J]=v||[[],[]],ct=b.length==2?[b[0]]:[];return[f,...ct,...J]},Bn=function(f){return{type:"directChildSelector",...f}},$n=function(f){return{type:"uniqueIdentifierSelector",...f}},Gn=function(f,v){return{localName:f,position:v}},Dr=function(f,v,b){return{localName:f,customSelector:v,position:b}},zn=function(f){return{...f,kind:"uniqueAttribute"}},kr=function(f){return{...f,kind:"uniqueCssSelector"}},qn=function(f,v){return{localName:f,attrName:"id",attrValue:v,kind:"uniqueId"}},Fn=function(){return{type:"propertySelector",property:"shadowRoot"}},Wn=function(){return{type:"propertySelector",property:"contentDocument"}},Yn=function(f,v){return f.join("")+(v||"")},Xn=function(){return"@"},Kn=function(f){return f.join("")},Jn=function(){return""},Qn=function(f){return f.join("")},Zn=function(f){return f},Sc=function(f){return f},Lr=function(f){return f.join("")},to=function(f){return f},eo=function(f){return f},_c=function(f){return f},je=function(f){return parseInt(f.join(""),10)},is=function(f,v){return{uniqueCssSelector:v}},xr=function(){return"#UA"},io=function(){return""},so=function(f,v,b){return{localName:f,attrName:v,attrValue:b}},ro=function(f,v,b){return{localName:f,attrName:v,attrValue:b}},Be=function(f,v,b){return{localName:f,attrName:v,attrValue:b}},w=0,Z=0,ss=[{line:1,column:1}],we=0,Ae=[],K=0,ee;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 no(){return s.substring(Z,w)}function pe(){return Z}function vc(){return{source:c,start:Z,end:w}}function Vr(){return Ii(Z,w)}function wc(f,v){throw v=v!==void 0?v:Ii(Z,w),lo([xs(f)],s.substring(Z,w),v)}function Ac(f,v){throw v=v!==void 0?v:Ii(Z,w),co(f,v)}function Tt(f,v){return{type:"literal",text:f,ignoreCase:v}}function rs(f,v,b){return{type:"class",parts:f,inverted:v,ignoreCase:b}}function oo(){return{type:"any"}}function ao(){return{type:"end"}}function xs(f){return{type:"other",description:f}}function Ci(f){var v=ss[f],b;if(v)return v;for(b=f-1;!ss[b];)b--;for(v=ss[b],v={line:v.line,column:v.column};bwe&&(we=w,Ae=[]),csArray.prototype.push.call(Ae,f))}function co(f,v){return new r(f,null,null,v)}function lo(f,v,b){return new r(r.buildMessage(f,v),f,v,b)}function uo(){var f,v,b;return f=Us(),f===o&&(f=w,v=Vs(),v!==o?(b=Us(),b!==o?(v=[v,b],f=v):(w=f,f=o)):(w=f,f=o)),f}function Vs(){var f,v,b;return f=w,s.substr(w,10)===h?(v=h,w+=10):(v=o,K===0&&tt(F)),v!==o?(s.charCodeAt(w)===62?(b=p,w++):(b=o,K===0&&tt(vt)),b===o&&(b=null),Z=f,f=Or()):(w=f,f=o),f}function Us(){var f,v,b,J,ct,lt;return f=w,v=ho(),v!==o?(b=w,J=w,ct=nt(),ct!==o?(s.charCodeAt(w)===62?(lt=p,w++):(lt=o,K===0&&tt(vt)),lt===o&&(lt=null),ct=[ct,lt],J=ct):(w=J,J=o),J===o&&(s.charCodeAt(w)===62?(J=p,w++):(J=o,K===0&&tt(vt))),J!==o?(ct=Us(),ct!==o?(J=[J,ct],b=J):(w=b,b=o)):(w=b,b=o),b===o&&(b=null),Z=f,f=Mr(v,b)):(w=f,f=o),f}function ho(){var f,v;return f=w,v=fo(),v!==o&&(Z=f,v=Bn(v)),f=v,f===o&&(f=w,v=po(),v!==o&&(Z=f,v=$n(v)),f=v),f}function fo(){var f,v,b,J,ct,lt,Nt;return f=w,v=Yt(),v!==o?(s.substr(w,4)===y?(b=y,w+=4):(b=o,K===0&&tt(At)),b!==o?(J=bt(),J!==o?(s.charCodeAt(w)===41?(ct=m,w++):(ct=o,K===0&&tt(oe)),ct!==o?(Z=f,f=Gn(v,J)):(w=f,f=o)):(w=f,f=o)):(w=f,f=o)):(w=f,f=o),f===o&&(f=w,v=Yt(),v!==o?(s.charCodeAt(w)===91?(b=_,w++):(b=o,K===0&&tt(ae)),b!==o?(J=as(),J!==o?(s.substr(w,2)===A?(ct=A,w+=2):(ct=o,K===0&&tt(ve)),ct!==o?(lt=bt(),lt!==o?(s.charCodeAt(w)===41?(Nt=m,w++):(Nt=o,K===0&&tt(oe)),Nt!==o?(Z=f,f=Dr(v,J,lt)):(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 po(){var f,v,b,J;return f=w,v=ui(),v!==o&&(Z=f,v=zn(v)),f=v,f===o&&(f=w,v=Mi(),v!==o&&(Z=f,v=kr(v)),f=v,f===o&&(f=w,v=Yt(),v!==o?(s.charCodeAt(w)===35?(b=D,w++):(b=o,K===0&&tt(Ve)),b!==o?(J=ns(),J!==o?(Z=f,f=qn(v,J)):(w=f,f=o)):(w=f,f=o)):(w=f,f=o))),f}function nt(){var f,v;return f=w,s.substr(w,13)===I?(v=I,w+=13):(v=o,K===0&&tt(Ue)),v!==o&&(Z=f,v=Fn()),f=v,f===o&&(f=w,s.substr(w,8)===C?(v=C,w+=8):(v=o,K===0&&tt(He)),v!==o&&(Z=f,v=Wn()),f=v),f}function Yt(){var f,v,b;if(f=w,v=[],b=Te(),b!==o)for(;b!==o;)csArray.prototype.push.call(v,b),b=Te();else v=o;return v!==o?(b=ge(),b===o&&(b=null),Z=f,f=Yn(v,b)):(w=f,f=o),f}function ge(){var f,v;return f=w,s.charCodeAt(w)===64?(v=x,w++):(v=o,K===0&&tt(ce)),v!==o&&(Z=f,v=Xn()),f=v,f}function ns(){var f,v,b;if(K++,f=w,v=[],b=Te(),b!==o)for(;b!==o;)csArray.prototype.push.call(v,b),b=Te();else v=o;return v!==o&&(Z=f,v=Kn(v)),f=v,K--,f===o&&(v=o,K===0&&tt(Lt)),f}function os(){var f,v;return f=w,v="",Z=f,v=Jn(),f=v,f}function as(){var f,v,b;if(f=w,v=[],b=Pi(),b!==o)for(;b!==o;)csArray.prototype.push.call(v,b),b=Pi();else v=o;return v!==o&&(Z=f,v=Qn(v)),f=v,f}function Pi(){var f,v,b;return f=w,v=w,K++,fe.test(s.charAt(w))?(b=s.charAt(w),w++):(b=o,K===0&&tt(le)),K--,b===o?v=void 0:(w=v,v=o),v!==o?(s.length>w?(b=s.charAt(w),w++):(b=o,K===0&&tt(ts)),b!==o?(Z=f,f=Zn(b)):(w=f,f=o)):(w=f,f=o),f===o&&(f=w,s.charCodeAt(w)===92?(v=O,w++):(v=o,K===0&&tt(Rr)),v!==o?(fe.test(s.charAt(w))?(b=s.charAt(w),w++):(b=o,K===0&&tt(le)),b!==o?(Z=f,f=Sc(b)):(w=f,f=o)):(w=f,f=o)),f}function Ni(){var f,v,b;if(f=w,v=[],b=Oi(),b!==o)for(;b!==o;)csArray.prototype.push.call(v,b),b=Oi();else v=o;return v!==o&&(Z=f,v=Lr(v)),f=v,f}function Oi(){var f,v,b;return f=w,v=w,K++,T.test(s.charAt(w))?(b=s.charAt(w),w++):(b=o,K===0&&tt(Hn)),K--,b===o?v=void 0:(w=v,v=o),v!==o?(s.length>w?(b=s.charAt(w),w++):(b=o,K===0&&tt(ts)),b!==o?(Z=f,f=to(b)):(w=f,f=o)):(w=f,f=o),f}function Te(){var f,v,b;return f=w,v=w,K++,b=li(),K--,b===o?v=void 0:(w=v,v=o),v!==o?(s.length>w?(b=s.charAt(w),w++):(b=o,K===0&&tt(ts)),b!==o?(Z=f,f=eo(b)):(w=f,f=o)):(w=f,f=o),f===o&&(f=w,s.charCodeAt(w)===92?(v=O,w++):(v=o,K===0&&tt(Rr)),v!==o?(b=li(),b!==o?(Z=f,f=_c(b)):(w=f,f=o)):(w=f,f=o)),f}function li(){var f;return V.test(s.charAt(w))?(f=s.charAt(w),w++):(f=o,K===0&&tt(Cr)),f}function bt(){var f,v,b;if(K++,f=w,v=[],H.test(s.charAt(w))?(b=s.charAt(w),w++):(b=o,K===0&&tt(Ds)),b!==o)for(;b!==o;)csArray.prototype.push.call(v,b),H.test(s.charAt(w))?(b=s.charAt(w),w++):(b=o,K===0&&tt(Ds));else v=o;return v!==o&&(Z=f,v=je(v)),f=v,K--,f===o&&(v=o,K===0&&tt(jn)),f}function Mi(){var f,v,b,J,ct;return f=w,v=Yt(),v!==o?(s.substr(w,5)===N?(b=N,w+=5):(b=o,K===0&&tt(Ir)),b!==o?(J=as(),J!==o?(s.charCodeAt(w)===93?(ct=W,w++):(ct=o,K===0&&tt(Pr)),ct!==o?(Z=f,f=is(v,J)):(w=f,f=o)):(w=f,f=o)):(w=f,f=o)):(w=f,f=o),f}function Pe(){var f,v;return f=w,s.substr(w,3)===q?(v=q,w+=3):(v=o,K===0&&tt(Nr)),v!==o&&(Z=f,v=xr()),f=v,f===o&&(f=w,v="",Z=f,v=io(),f=v),f}function ui(){var f,v,b,J,ct,lt,Nt,Et;return f=w,v=Yt(),v!==o?(b=Pe(),b!==o?(s.charCodeAt(w)===91?(J=_,w++):(J=o,K===0&&tt(ae)),J!==o?(ct=ns(),ct!==o?(s.charCodeAt(w)===61?(lt=gt,w++):(lt=o,K===0&&tt(ks)),lt!==o?(Nt=Ni(),Nt!==o?(s.charCodeAt(w)===93?(Et=W,w++):(Et=o,K===0&&tt(Pr)),Et!==o?(Z=f,f=so(v,ct,Nt)):(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=Yt(),v!==o?(b=Pe(),b!==o?(s.charCodeAt(w)===91?(J=_,w++):(J=o,K===0&&tt(ae)),J!==o?(ct=ns(),ct!==o?(s.substr(w,2)===Pt?(lt=Pt,w+=2):(lt=o,K===0&&tt(Ls)),lt!==o?(Nt=Ni(),Nt!==o?(s.substr(w,2)===te?(Et=te,w+=2):(Et=o,K===0&&tt(es)),Et!==o?(Z=f,f=ro(v,ct,Nt)):(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=Yt(),v!==o?(b=Pe(),b!==o?(s.charCodeAt(w)===91?(J=_,w++):(J=o,K===0&&tt(ae)),J!==o?(ct=ns(),ct!==o?(s.substr(w,2)===Pt?(lt=Pt,w+=2):(lt=o,K===0&&tt(Ls)),lt!==o?(Nt=os(),s.substr(w,2)===te?(Et=te,w+=2):(Et=o,K===0&&tt(es)),Et!==o?(Z=f,f=Be(v,ct,Nt)):(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(ee=u(),ee!==o&&w===s.length)return ee;throw ee!==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"})(Nn||(Nn={}));var fu;(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"})(fu||(fu={}));var ni;(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"})(ni||(ni={}));var MT=[ni.PageHostViewed,ni.PagePathViewed,ni.PageQueryParamsViewed],pu;(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"})(pu||(pu={}));var gu;(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"})(gu||(gu={}));var ke;(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"})(ke||(ke={}));var mu;(function(i){i.EQUAL="=",i.GREATER=">",i.LESS="<",i.GREATER_OR_EQUAL=">=",i.LESS_OR_EQUAL="<=",i.NOT_EQUAL="!=",i.BETWEEN="between"})(mu||(mu={}));var Eu;(function(i){i.ANY="any",i.URL="url",i.PAGE="page"})(Eu||(Eu={}));var yu;(function(i){i.ANY="any",i.NAMED="named",i.EXACT="exact",i.GROUPED="grouped"})(yu||(yu={}));var Su;(function(i){i.API="API",i.JS="JS",i.CUSTOM="CUSTOM",i.CRASH="CRASH",i.FLUTTER="FLUTTER"})(Su||(Su={}));var _u;(function(i){i.GET="GET",i.POST="POST",i.PUT="PUT",i.PATCH="PATCH",i.DELETE="DELETE"})(_u||(_u={}));var vu;(function(i){i.EXPERIENCED="EXPERIENCED",i.HAVE_NOT_EXPERIENCED="HAVE_NOT_EXPERIENCED"})(vu||(vu={}));var wu;(function(i){i.ALL="ALL",i.DISMISSED="DISMISSED",i.UNDISMISSED="UNDISMISSED"})(wu||(wu={}));var DT=Object.freeze([ke.AND,ke.OR,ke.SEQ,ke.CSEQ,ke.THEN,ke.DIRECTLY_THEN]),kT={children:[],nodeType:ke.AND},LT={nodeType:ke.FILTER,field:ni.SegmentId,operator:Nn.MATCH_EQUALS,value:mT.ALL_VISITORS},Au;(function(i){i.Model="model",i.Product="product",i.Category="category",i.Brand="brand"})(Au||(Au={}));var Tu;(function(i){i.Visit="pageview:visit",i.First="pageview:first",i.Last="pageview:last",i.Bounce="pageview:bounce",i.FrontendGoal="frontend:pageview:goal"})(Tu||(Tu={}));var xT={field:"pageview:no_op",nodeType:ke.FILTER,operator:Nn.MATCH_EQUALS},bu;(function(i){i.PageViewedConditionId="goal:reference:PageViewed",i.ZoneClickedConditionId="goal:reference:click",i.SamePageViewConditionEditorId="pageviews"})(bu||(bu={}));var VT=[ni.EnrichmentIntegration,ni.DynamicSnippetIntegration,ni.ExternalSegmentIntegration];var Qo;(Qo=_w._uxa)!==null&&Qo!==void 0||(_w._uxa=[]);var ET=["visitor:language"],yT=["device","browser:resolution","browser:windowWidth","browser:windowHeight"],ST=["visit:isNew","visit:number","source:from"],UT=[...ET,...yT,...ST];var _T={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},On;(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"})(On||(On={}));var Ru;(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"})(Ru||(Ru={}));var _s;(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"})(_s||(_s={}));var HT=[_s.PageHostViewed,_s.PagePathViewed,_s.PageQueryParamsViewed],Cu;(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"})(Cu||(Cu={}));var Iu;(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"})(Iu||(Iu={}));var Le;(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"})(Le||(Le={}));var Pu;(function(i){i.EQUAL="=",i.GREATER=">",i.LESS="<",i.GREATER_OR_EQUAL=">=",i.LESS_OR_EQUAL="<=",i.NOT_EQUAL="!=",i.BETWEEN="between"})(Pu||(Pu={}));var Nu;(function(i){i.ANY="any",i.URL="url",i.PAGE="page"})(Nu||(Nu={}));var Ou;(function(i){i.ANY="any",i.NAMED="named",i.EXACT="exact",i.GROUPED="grouped"})(Ou||(Ou={}));var Mu;(function(i){i.API="API",i.JS="JS",i.CUSTOM="CUSTOM",i.CRASH="CRASH",i.FLUTTER="FLUTTER"})(Mu||(Mu={}));var Du;(function(i){i.GET="GET",i.POST="POST",i.PUT="PUT",i.PATCH="PATCH",i.DELETE="DELETE"})(Du||(Du={}));var ku;(function(i){i.EXPERIENCED="EXPERIENCED",i.HAVE_NOT_EXPERIENCED="HAVE_NOT_EXPERIENCED"})(ku||(ku={}));var Lu;(function(i){i.ALL="ALL",i.DISMISSED="DISMISSED",i.UNDISMISSED="UNDISMISSED"})(Lu||(Lu={}));var jT=Object.freeze([Le.AND,Le.OR,Le.SEQ,Le.CSEQ,Le.THEN,Le.DIRECTLY_THEN]),BT={children:[],nodeType:Le.AND},$T={nodeType:Le.FILTER,field:_s.SegmentId,operator:On.MATCH_EQUALS,value:_T.ALL_VISITORS},xu;(function(i){i.Model="model",i.Product="product",i.Category="category",i.Brand="brand"})(xu||(xu={}));var Vu;(function(i){i.Visit="pageview:visit",i.First="pageview:first",i.Last="pageview:last",i.Bounce="pageview:bounce",i.FrontendGoal="frontend:pageview:goal"})(Vu||(Vu={}));var GT={field:"pageview:no_op",nodeType:Le.FILTER,operator:On.MATCH_EQUALS},Uu;(function(i){i.PageViewedConditionId="goal:reference:PageViewed",i.ZoneClickedConditionId="goal:reference:click",i.SamePageViewConditionEditorId="pageviews"})(Uu||(Uu={}));var vT=(()=>{let i=class{constructor(t,e){this.DO=t,this.E=e}setup(){setTimeout(()=>{try{tm(()=>this.kO())}catch(t){z.error(t,"trackingTagStartup")}})}kO(){_w._uxa=_w._uxa||[],this.LO(),em(),this.xO(),$p(),this.DO.start()}LO(){Zg((t,e)=>{let s=t.type==="listen"?[Ti.EventListener,t.name]:[Ti.MonkeyPatch,t.method];Mn(e,s)})}xO(){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=Qi(_w,"MutationObserver"))}};return i.$deps=[el,Dt],i=B([Sr({imports:[pT,ic],providers:[el,Ah]})],i),i})(),Zo;(Zo=_w.CSCurrentScript)!==null&&Zo!==void 0||(_w.CSCurrentScript=_d.currentScript);rh(z);var wT=()=>{var i,r,t;return(t=(r=(i=_w.scheduler)===null||i===void 0?void 0:i.yield)===null||r===void 0?void 0:r.call(i))!==null&&t!==void 0?t:new Promise(e=>csSetTimeout(e,0))};wT().then(()=>_g(vT)).catch(wg);})(); })(document, window); // signature-fa326f5ab28d911742cd27d50690220ae55d6038acff101337f31ae714814d74