var CS_CONF={"isSMB":false,"projectId":3150,"status":1,"hostnames":["nvidia.com","rainfocus.com","docs.nvidia.com"],"crossDomainTracking":0,"crossDomainSingleIframeTracking":0,"consentRequired":0,"allowSubdomains":1,"visitorCookieTimeout":34164000000,"sampleRate":100,"replayRecordingRate":20,"validationRate":10,"lastTrackingDraw":null,"trackerDomain":"c.contentsquare.net","recordingDomain":"r.contentsquare.net","useMalkaPipeline":1,"ed":"l.contentsquare.net/log/web","eMerchandisingEnabled":0,"mouseMoveHeatmapEnabled":1,"autoInsightsEnabled":1,"jsErrorsEnabled":1,"customErrorsEnabled":1,"jsCustomErrorsEnabled":0,"apiErrorsEnabled":1,"customHashIdEnabled":0,"recordingEncryptionEnabled":0,"recordingEncryptionPublicKey":null,"recordingEncryptionPublicKeyId":0,"secureCookiesEnabled":0,"triggerSessionReplayEnabled":0,"triggerSessionReplayRegex":null,"dynamicIdRegex":null,"whitelistedAttributes":[],"replayRecordingUnmaskedUrlRegex":"","replayRecordingUnmaskedUrlRegexRules":[],"replayRecordingMaskedUrlRegexRules":[],"replayRecordingMaskedUrlRegex":"","anonymisationMethod":null,"tagDeploymentMode":"CONTENTSQUARE","experimental":null,"iframesTracking":1,"textVisibilityEnabled":0,"cookielessTrackingEnabled":0,"malkaUrlEnabled":0,"malkaEtrEnabled":0,"pathComputationRules":{},"asyncSerializerEnabled":1,"pendingInactivityTimeout":5000,"accessibilityEnabled":0,"uxaDomain":"app.contentsquare.com","webviewsTrackingEnabled":0,"useStaticResourceManager":1,"performanceTimingOptions":{"withResource":false,"withNavigation":false},"replayConsentRequiredForSession":0,"eventsApiEnabled":0,"clickedElementTextEnabled":0,"collectHierarchy":0,"apiErrors":{"collectStandardHeaders":0,"collectionRules":[]},"customErrors":{"consoleMessageLogLevels":[]},"displayAdOptions":null,"taskSchedulerOptions":{"enabled":1},"malkaQuotaServiceDomain":"q-aeu1.contentsquare.net","malkaRecordingDomain":"k-aeu1.contentsquare.net","staticResourceManagerDomain":"srm.ba.contentsquare.net","voc":{"siteId":null,"enabled":0}}; var CS_INTEGRATIONS_CONF = {"adobe-target":{},"foresee":{},"usertesting":{},"hotjar":{}}; /* integration-adobe-target 3.6.0 */ !function(e){var n={};function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(r,i,function(n){return e[n]}.bind(null,i));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=1)}([function(e){e.exports=JSON.parse('{"name":"@contentsquare/integration-adobe-target-contentsquare","version":"3.6.0","scripts":{"build:snippet":"webpack"}}')},function(e,n,t){"use strict";function r(e,n){try{e()}catch(e){window._uxa=window._uxa||[],_uxa.push(["logSnippetError",n,e.message])}}function i(e){return"object"==typeof e&&null!==e}function o(e,n,t){if((t=t||window)&&n&&e){var r=!1,i=t[e];i?n():Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){return i},set:function(e){i=e,r||(r=!0,n())}})}}function a(e,n){!!(window.csqDebuggerEnabled||document.location.href.indexOf("csqDebuggerEnabled=true")>-1)&&console.log(`%cCSQ INTEGRATION: [${e}] : ${n}`,"color: #2a9d8f; font-weight: bold")}t.r(n);var u,c=t(0),s=c.name,f=c.version,p=function(e){let n,t,i,o;if(r((function(){const r=e.name;n=e.version;const a=r.replace("@contentsquare/integration-","");t=a+"-"+n;let u="-contentsquare";o=new RegExp(u+"$").test(a),i=a.replace(/-contentsquare([^-contentsquare]*)$/,"$1"),o||(u="-cap",o=new RegExp(u+"$").test(a),i=a.replace(/-cap([^-cap]*)$/,"$1"))}),"Shared-Function-readPackageJSON"),o)return{snippetBuildName:t,parameterName:i,snippetVersion:n}}(c);p&&(u=p.parameterName,s=p.snippetBuildName,f=p.snippetVersion),r((function(){window._uxa=window._uxa||[],CS_CONF.integrations=CS_CONF.integrations||[],CS_CONF.integrations.push("Adobe Target - v"+f);var e=function(e,n){if(i(window.CS_INTEGRATIONS_CONF)&&i(window.CS_INTEGRATIONS_CONF[e]))return window.CS_INTEGRATIONS_CONF[e][n]}(u,"customObjectName");e&&(e=e.trim());var n=[];function t(e){for(var t=0;t-1&&(i="",o=""),i&&o&&(n.push(i+"~~~~"+o),c=o,u="AB_AT_"+(u=i),_uxa.push(["trackDynamicVariable",{key:u,value:c}]),a(s,function(e,n){return`Dynamic variable with ${e} and value ${n} sent`}(u,c)))}var u,c}function c(n){e||(e="ttMETA"),function(e,n,t){t=t||window;var r=e.split(".");if(1==r.length)o(e,n,t);else{var i=t,a=0;const e=function(){i=a>0?i[r[a-1]]:window,++a>=r.length?o(r[a-1],n,i):o(r[a-1],e,i)};e()}}(e,(function(){setTimeout((function(){r((function(){t(window[e])}),s)}),500)}))}document.addEventListener("at-request-succeeded",(function(e){e&&e.detail&&e.detail.responseTokens&&t(e.detail.responseTokens)})),_uxa.push(["afterPageView",function(e){r((function(){c()}),s)}])}),s)}]);/* integration-foresee 3.1.0 */ !function(e){var n={};function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:i})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(t.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)t.d(i,r,function(n){return e[n]}.bind(null,r));return i},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=2)}([function(e){e.exports=JSON.parse('{"name":"@contentsquare/integration-foresee-contentsquare","version":"3.1.0","scripts":{"build:snippet":"webpack"}}')},function(e){e.exports=JSON.parse('{"displayName":"Verint (ForeSee)","dvarPrefix":"FB_FS_","apvPrefix":"cs_foresee","replayKey":"fs"}')},function(e,n,t){"use strict";function i(e,n){try{e()}catch(e){window._uxa=window._uxa||[],_uxa.push(["logSnippetError",n,e.message])}}function r(e){return"object"==typeof e&&null!==e}function o(e,n,t){if((t=t||window)&&n&&e){var i=!1,r=t[e];r?n():Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){return r},set:function(e){r=e,i||(i=!0,n())}})}}function a(e,n){!!(window.csqDebuggerEnabled||document.location.href.indexOf("csqDebuggerEnabled=true")>-1)&&console.log(`%cCSQ INTEGRATION: [${e}] : ${n}`,"color: #2a9d8f; font-weight: bold")}t.r(n);const u=function(e){let n,t,r,o;if(i((function(){const i=e.name;n=e.version;const a=i.replace("@contentsquare/integration-","");t=a+"-"+n;let u="-contentsquare";o=new RegExp(u+"$").test(a),r=a.replace(/-contentsquare([^-contentsquare]*)$/,"$1"),o||(u="-cap",o=new RegExp(u+"$").test(a),r=a.replace(/-cap([^-cap]*)$/,"$1"))}),"Shared-Function-readPackageJSON"),o)return{snippetBuildName:t,parameterName:r,snippetVersion:n}}(t(0)),c=u.parameterName,s=u.snippetBuildName,d=u.snippetVersion,f=t(1);i((function(){const e=f.displayName,n=f.dvarPrefix,t=f.apvPrefix,u=f.replayKey;window._uxa=window._uxa||[],CS_CONF.integrations=CS_CONF.integrations||[],CS_CONF.integrations.push(e+" - v"+d);let p=!1,l=!1,b=!1;const S=function(e,n){if(r(window.CS_INTEGRATIONS_CONF)&&r(window.CS_INTEGRATIONS_CONF[e]))return window.CS_INTEGRATIONS_CONF[e][n]}(c,"settings");function g(e,t,i,r){e=n+e,_uxa.push(["trackDynamicVariable",{key:e,value:t}]),p&&"etr"===i&&_uxa.push(["trackEventTriggerRecording","@ETS@"+e]),r&&l&&_uxa.push(["trackPageview",window.location.pathname+"?"+r]),a(s,function(e,n){return`Dynamic variable with ${e} and value ${n} sent`}(e,t))}function m(e){!function(e,n,t){t=t||window;var i=e.split(".");if(1==i.length)o(e,n,t);else{var r=t,a=0;const e=function(){r=a>0?r[i[a-1]]:window,++a>=i.length?o(i[a-1],n,r):o(i[a-1],e,r)};e()}}("FSR",(function(){setTimeout((function(){i((function(){window.fsReady&&fsReady((function(){i((function(){(function(e,n,t,i){return new Promise((function(r,o){function a(){_uxa.push(["replay:link:generate",{withTimestamp:t},u])}function u(i){if(i&&i.replayLink&&i.isRecording){let o="https://"+i.replayLink+"&vd="+e;if(!n&&!t){const e=new URLSearchParams(o);e.set("pvid",1);const n=e.toString();o=decodeURIComponent(n)}r(o)}}e||(e="missingFromDynamicSnippet"),t||(t=!1),i?a():_uxa.push(["onRecordingStateChange",function(e){e&&e.isRecording&&a()}])}))})(u,b).then((function(e){p=!0,i((function(){e&&FSR.CPPS&&FSR.CPPS.set&&FSR.CPPS.set("ContentsquareReplay",e)}),s)})),FSR.onInviteShown&&FSR.onInviteShown.subscribe((function(e){i((function(){e&&(e.uid?g("Feedback Invite Displayed","Survey ID : "+e.uid,0,t+"=feedback_invite_displayed"):g("Feedback Invite Displayed","true",0,t+"=feedback_invite_displayed"))}),s)}),!0,!0),FSR.onInviteAccepted&&FSR.onInviteAccepted.subscribe((function(e){i((function(){e&&(e.uid?g("Feedback Invite Submitted","Survey ID : "+e.uid,"etr",t+"=feedback_invite_submitted"):g("Feedback Invite Submitted","true","etr",t+"=feedback_invite_submitted"))}),s)}),!0,!0),FSR.onFeedbackShown&&FSR.onFeedbackShown.subscribe((function(e){i((function(){g("Feedback Displayed","true",0,t+"=feedback_displayed")}),s)}),!0,!0),FSR.onFeedbackSubmitted&&FSR.onFeedbackSubmitted.subscribe((function(e){i((function(){e&&(e.mid?g("Feedback Submitted","Survey ID : "+e.mid,"etr",t+"=feedback_submitted"):g("Feedback Submitted","true","etr",t+"=feedback_submitted"),e.rating&&g("Feedback Rating",parseInt(e.rating)))}),s)}),!0,!0)}),s)}))}),s)}),500)}))}S&&(S.indexOf("sendArtificialPageviews")>-1&&(l=!0),S.indexOf("setReplayLinkToCurrentPV")>-1&&(b=!0));let w=!1;_uxa.push(["afterPageView",function(e){i((function(){w||(w=!0,m())}),s)}])}),s)}]);/* integration-usertesting 3.1.0 */ !function(e){var n={};function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(r,i,function(n){return e[n]}.bind(null,i));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=2)}([function(e){e.exports=JSON.parse('{"name":"@contentsquare/integration-usertesting-contentsquare","version":"3.1.0","scripts":{"build:snippet":"webpack"}}')},function(e){e.exports=JSON.parse('{"displayName":"UserTesting","dvarPrefix":"UGC_UT_","apvPrefix":"cs_usertesting","replayKey":"ut"}')},function(e,n,t){"use strict";function r(e,n){try{e()}catch(e){window._uxa=window._uxa||[],_uxa.push(["logSnippetError",n,e.message])}}function i(e){return"object"==typeof e&&null!==e}function o(e,n){n||(n="="),e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var t=new RegExp("[\\?&=]"+e+n+"([^&#]*)").exec(location.search);return null===t?"":decodeURIComponent(t[1].replace(/\+/g," "))}function a(e,n){!!(window.csqDebuggerEnabled||document.location.href.indexOf("csqDebuggerEnabled=true")>-1)&&console.log(`%cCSQ INTEGRATION: [${e}] : ${n}`,"color: #2a9d8f; font-weight: bold")}t.r(n);const u=function(e){let n,t,i,o;if(r((function(){const r=e.name;n=e.version;const a=r.replace("@contentsquare/integration-","");t=a+"-"+n;let u="-contentsquare";o=new RegExp(u+"$").test(a),i=a.replace(/-contentsquare([^-contentsquare]*)$/,"$1"),o||(u="-cap",o=new RegExp(u+"$").test(a),i=a.replace(/-cap([^-cap]*)$/,"$1"))}),"Shared-Function-readPackageJSON"),o)return{snippetBuildName:t,parameterName:i,snippetVersion:n}}(t(0)),c=u.parameterName,s=u.snippetBuildName,p=u.snippetVersion,l=t(1);r((function(){const e=l.displayName,n=l.dvarPrefix,t=(l.apvPrefix,l.replayKey);window._uxa=window._uxa||[],CS_CONF.integrations=CS_CONF.integrations||[],CS_CONF.integrations.push(e+" - v"+p);let u=!1,f=!1,d=!1;const g=function(e,n){if(i(window.CS_INTEGRATIONS_CONF)&&i(window.CS_INTEGRATIONS_CONF[e]))return window.CS_INTEGRATIONS_CONF[e][n]}(c,"settings");function m(e){const i=document.location.search;if(i.indexOf("utm_source=UserTesting")>-1&&i.indexOf("utm_campaign=")>-1&&i.indexOf("utm_content=")>-1){const e=o("utm_campaign"),i=o("utm_content");i&&function(e,n,t,r){return new Promise((function(i,o){function a(){_uxa.push(["replay:link:generate",{withTimestamp:t},u])}function u(r){if(r&&r.replayLink&&r.isRecording){let o="https://"+r.replayLink+"&vd="+e;if(!n&&!t){const e=new URLSearchParams(o);e.set("pvid",1);const n=e.toString();o=decodeURIComponent(n)}i(o)}}e||(e="missingFromDynamicSnippet"),t||(t=!1),r?a():_uxa.push(["onRecordingStateChange",function(e){e&&e.isRecording&&a()}])}))}(t,d).then((function(e){u=!0,r((function(){if(e){const n=new XMLHttpRequest,t="https://cloudhub-prod.usertesting.com/usertesting/api/v1/partner-analytics";n.open("POST",t),n.setRequestHeader("Content-Type","application/json"),n.send(JSON.stringify({usertesting_eid:i,external_link:e,partner_name:"Contentsquare"}))}}),s)})),e&&(p=e,l="etr",g="cs_usertesting=study_id_"+e,c=n+(c="Study ID"),_uxa.push(["trackDynamicVariable",{key:c,value:p}]),u&&"etr"===l&&_uxa.push(["trackEventTriggerRecording","@ETS@"+c]),g&&f&&_uxa.push(["trackPageview",window.location.pathname+"?"+g]),a(s,function(e,n){return`Dynamic variable with ${e} and value ${n} sent`}(c,p)))}var c,p,l,g}g&&(g.indexOf("sendArtificialPageviews")>-1&&(f=!0),g.indexOf("setReplayLinkToCurrentPV")>-1&&(d=!0)),_uxa.push(["afterPageView",function(e){r((function(){m()}),s)}])}),s)}]);/* integration-hotjar 3.1.0 */ !function(e){var n={};function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:i})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(t.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)t.d(i,r,function(n){return e[n]}.bind(null,r));return i},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=2)}([function(e){e.exports=JSON.parse('{"name":"@contentsquare/integration-hotjar-contentsquare","version":"3.1.0","scripts":{"build:snippet":"webpack"}}')},function(e){e.exports=JSON.parse('{"displayName":"Hotjar","dvarPrefix":"FB_HJ_","apvPrefix":"cs_hotjar","replayKey":"hj"}')},function(e,n,t){"use strict";function i(e,n){try{e()}catch(e){window._uxa=window._uxa||[],_uxa.push(["logSnippetError",n,e.message])}}function r(e){return"object"==typeof e&&null!==e}function o(e,n,t){if((t=t||window)&&n&&e){var i=!1,r=t[e];r?n():Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){return r},set:function(e){r=e,i||(i=!0,n())}})}}function u(e,n){!!(window.csqDebuggerEnabled||document.location.href.indexOf("csqDebuggerEnabled=true")>-1)&&console.log(`%cCSQ INTEGRATION: [${e}] : ${n}`,"color: #2a9d8f; font-weight: bold")}t.r(n);const a=function(e){let n,t,r,o;if(i((function(){const i=e.name;n=e.version;const u=i.replace("@contentsquare/integration-","");t=u+"-"+n;let a="-contentsquare";o=new RegExp(a+"$").test(u),r=u.replace(/-contentsquare([^-contentsquare]*)$/,"$1"),o||(a="-cap",o=new RegExp(a+"$").test(u),r=u.replace(/-cap([^-cap]*)$/,"$1"))}),"Shared-Function-readPackageJSON"),o)return{snippetBuildName:t,parameterName:r,snippetVersion:n}}(t(0)),s=a.parameterName,c=a.snippetBuildName,l=a.snippetVersion,p=t(1);i((function(){const e=p.displayName,n=p.dvarPrefix,t=p.apvPrefix,a=p.replayKey;window._uxa=window._uxa||[],CS_CONF.integrations=CS_CONF.integrations||[],CS_CONF.integrations.push(e+" - v"+l);let d=!1,f=!1,y=!1;const v=function(e,n){if(r(window.CS_INTEGRATIONS_CONF)&&r(window.CS_INTEGRATIONS_CONF[e]))return window.CS_INTEGRATIONS_CONF[e][n]}(s,"settings");function g(e,t,i,r){e=n+e,_uxa.push(["trackDynamicVariable",{key:e,value:t}]),d&&"etr"===i&&_uxa.push(["trackEventTriggerRecording","@ETS@"+e]),r&&f&&_uxa.push(["trackPageview",window.location.pathname+"?"+r]),u(c,function(e,n){return`Dynamic variable with ${e} and value ${n} sent`}(e,t))}v&&(v.indexOf("sendArtificialPageviews")>-1&&(f=!0),v.indexOf("setReplayLinkToCurrentPV")>-1&&(y=!0));let w=[];function m(e){!function(e,n,t){t=t||window;var i=e.split(".");if(1==i.length)o(e,n,t);else{var r=t,u=0;const e=function(){r=u>0?r[i[u-1]]:window,++u>=i.length?o(i[u-1],n,r):o(i[u-1],e,r)};e()}}("hj",(function(){setTimeout(()=>{i((function(){(function(e,n,t,i){return new Promise((function(r,o){function u(){_uxa.push(["replay:link:generate",{withTimestamp:t},a])}function a(i){if(i&&i.replayLink&&i.isRecording){let o="https://"+i.replayLink+"&vd="+e;if(!n&&!t){const e=new URLSearchParams(o);e.set("pvid",1);const n=e.toString();o=decodeURIComponent(n)}r(o)}}e||(e="missingFromDynamicSnippet"),t||(t=!1),i?u():_uxa.push(["onRecordingStateChange",function(e){e&&e.isRecording&&u()}])}))})(a,y).then((function(e){d=!0,i((function(){e&&"function"==typeof hj&&hj("identify",null,{contentsquare_replay_link:e})}),c)}))}),c)},500)}))}window.addEventListener("hotjar-survey-event",(function(e){if(e&&e.detail&&e.detail.event){const n=e.detail,i=n.event,r=n.surveyId;if(r)if("surveyInvitationDisplayed"===i)w.includes(i+"-"+r)||(w.push(i+"-"+r),g("Survey Invitation Displayed","Survey ID : "+r,0,t+"=survey_invitation_displayed"));else if("surveyDisplayed"===i)w.includes(i+"-"+r)||(w.push(i+"-"+r),g("Survey Displayed","Survey ID : "+r,0,t+"=survey_displayed"));else if("surveySubmitted"===i){w.includes(i+"-"+r)||(w.push(i+"-"+r),g("Survey Response Submitted","Survey ID : "+r,"etr",t+"=survey_response_submitted"));const e=n.question;if(e){const t=e.type,i=e.text,o=n.questionIndex,u=n.response;let a=u[0]&&u[0].answer;"multiple-close-ended"!=t&&i&&void 0!==a&&(isNaN(a)||(a=parseInt(a)),g(r+" : "+i,a),g(r+" : Question "+(o+1),a))}const o=n.insightsUrl;o&&(w.includes(o+"-"+r)||(w.push(o+"-"+r),g("Survey Response URL",o)))}else"surveyCompleted"===i&&(w.includes(i+"-"+r)||(w.push(i+"-"+r),g("Survey Completed","Survey ID : "+r,0,t+"=survey_completed")))}}));let _=!1;_uxa.push(["afterPageView",function(e){i((function(){_||(_=!0,m())}),c)}])}),c)}]);; !function(){"use strict";var t={d:function(n,i){for(var r in i)t.o(i,r)&&!t.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:i[r]})}};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},t.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};function i(t,n){var i;return window.Zone&&"function"==typeof window.Zone.__symbol__&&(i=t[window.Zone.__symbol__(n)]),i||(i=t[n]),i}t.r(n),t.d(n,{getRequestParameters:function(){return ch}});var r="undefined"==typeof window;var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t.g?t.g:"undefined"!=typeof process?process:Function("return this")();var s="cs-native-frame",o={navigatorProperties:[{propertyName:"sendBeacon",binding:navigator}],nodeProperties:["childNodes","parentNode","nextSibling","firstChild"],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 u(t,n,i){var r=function(t,n){for(var i,r=t;r&&!(i=Object.getOwnPropertyDescriptor(r,n));)r=Object.getPrototypeOf(r);return i}(t,n);if(!r)return function(){return this[n]};switch(i){case"get":return r.get;case"set":return r.set;case"value":return r.value}}function c(t){var n,r;Object.keys(o.constructors).forEach((function(n){window[o.constructors[n]]=t[n]instanceof Function&&null==t[n].prototype?t[n].bind(window):t[n]})),function(t){window.csquerySelector={1:t.Element.prototype.querySelector,9:t.Document.prototype.querySelector,11:t.DocumentFragment.prototype.querySelector},window.csquerySelectorAll={1:t.Element.prototype.querySelectorAll,9:t.Document.prototype.querySelectorAll,11:t.DocumentFragment.prototype.querySelectorAll}}(t),("Prototype"in window||/^((?!chrome|android).)*safari/i.test(navigator.userAgent))&&(window.csMutationObserver=null!==(r=null!==(n=i(window,"MutationObserver"))&&void 0!==n?n:window.WebKitMutationObserver)&&void 0!==r?r:window.MutationObserver),h("csNode",o.nodeProperties,t.Node.prototype,"get"),h("csElement",o.elementProperties,t.Element.prototype,"get"),h("csElement",o.elementPropertiesValues,t.Element.prototype,"value",!1),h("csHTMLImageElement",o.imageProperties,t.HTMLImageElement.prototype,"set"),h("csEvent",o.eventProperties,t.Event.prototype,"get"),h("csNavigator",o.navigatorProperties,t.navigator,"value")}function h(t,n,i,r,e){void 0===e&&(e=!0),n.forEach((function(n){var s="string"!=typeof n&&"binding"in n,o=s?n.propertyName:n;(e||o in i)&&(window["".concat(t+o)]=u(i,o,r),s&&(window["".concat(t+o)]=window["".concat(t+o)].bind(n.binding)))}))}function a(t,n){window.CSProtectnativeFunctionsLogs=window.CSProtectnativeFunctionsLogs||{},window.CSProtectnativeFunctionsLogs[t]=n}if(window.csSetTimeout=i(window,"setTimeout"),window.csQueueMicrotask=i(window,"queueMicrotask"),window.csClearTimeout=i(window,"clearTimeout"),window.csSetInterval=i(window,"setInterval"),window.csClearInterval=i(window,"clearInterval"),function(){var t,n=0;function i(t){return"cs$Symbol_"+t}function r(t){return i(t)+ ++n}r.for=i,window.csSymbol=null!==(t=window.Symbol)&&void 0!==t?t:r}(),!function(){try{var t=function(){var t=document.createElement("iframe");t.id=s,t.setAttribute("hidden",""),t.setAttribute("title","Intentionally blank"),t.setAttribute("sandbox","allow-same-origin");var n=document.createElement("cs-native-frame-holder");if(n.setAttribute("hidden",""),document.body.appendChild(n),Boolean(Element.prototype.attachShadow)){var i=n.attachShadow({mode:"closed"});return i.innerHTML=t.outerHTML,i.firstElementChild.contentWindow}return n.innerHTML=t.outerHTML,n.firstElementChild.contentWindow}();return!!t&&(window.CSPureWindow=t,c(window.CSPureWindow),!0)}catch(t){return a("Warning","failed to copy references from pure iframe: ".concat(t.message)),!1}}())try{c(e)}catch(Bu){a("Critical","failed to copy references from window: ".concat(Bu.message))}var f=function(t,n){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},f(t,n)};function l(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}f(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}var v=function(){return v=Object.assign||function(t){for(var n,i=1,r=arguments.length;i=0;u--)(e=t[u])&&(o=(s<3?e(o):s>3?e(n,i,o):e(n,i))||o);return s>3&&o&&Object.defineProperty(n,i,o),o}function y(t,n,i,r){return new(i||(i=Promise))((function(e,s){function o(t){try{c(r.next(t))}catch(t){s(t)}}function u(t){try{c(r.throw(t))}catch(t){s(t)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(t){t(n)}))).then(o,u)}c((r=r.apply(t,n||[])).next())}))}function w(t,n){var i,r,e,s,o={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(s){return function(u){return function(s){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,r&&(e=2&s[0]?r.return:s[0]?r.throw||((e=r.return)&&e.call(r),0):r.next)&&!(e=e.call(r,s[1])).done)return e;switch(r=0,e&&(s=[2&s[0],e.value]),s[0]){case 0:case 1:e=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(e=o.trys,(e=e.length>0&&e[e.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!e||s[1]>e[0]&&s[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(t,n){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,e,s=i.call(t),o=[];try{for(;(void 0===n||n-- >0)&&!(r=s.next()).done;)o.push(r.value)}catch(t){e={error:t}}finally{try{r&&!r.done&&(i=s.return)&&i.call(s)}finally{if(e)throw e.error}}return o}function g(t,n,i){if(i||2===arguments.length)for(var r,e=0,s=n.length;e|/%?@`{}\\ ])/g,"\\$1")}function A(t){return N(t)&&("number"==typeof t||t instanceof Number)&&!isNaN(t)}function E(t){return t===parseInt(t,10)}function R(t){return N(t)&&("string"==typeof t||t instanceof csString)}function O(t){return"boolean"==typeof t}function T(t){return"object"==typeof t}function N(t){return void 0!==t}function k(t){return N(t)&&null!==t}function C(t){return"function"==typeof t}function I(t){return t instanceof Element}function M(t){return t instanceof Error}function P(t){for(var n=t.length,i=0;i"):"").concat(s)}function lt(t,n){if(t===K)return"|detached|";if(t.host){var i=Z(t.host),r=i.ancestors,e=i.selectionRoot;return"".concat(ft(r,e,n),"|shadow-root|")}return 11===t.nodeType?"|fragment|":""}var vt=function(){function t(t){this.options=t,this.done=!1,this.path=null}return t.prototype.getPath=function(){if(null===this.path)throw new Error("getPath was called before serializeElement");return this.path},t.prototype.isDone=function(){return this.done},t}(),dt=function(t){function n(){var n=t.apply(this,g([],m(arguments),!1))||this;return n.t=!1,n.h=!1,n.S=!1,n}return l(n,t),n.prototype.A=function(t,n){return this.t&&!(null===n&&Q(t))&&!(11===t.nodeType)&&!t.host},n.prototype.R=function(t){return!t.localName},n.prototype.serializeElement=function(t,n,i){var r;if(null!==(r=this.path)&&void 0!==r||(this.path=""),!this.A(t,n)){var e=!1;null===n&&Q(t)&&(e=!0,this.done=!0);var s=this.h&&!this.options.fullPath?"":">",o=!!t.host;if(o&&this.path&&(this.path="|shadow-root|"+s+this.path,this.S=!0,this.t=!1,this.h=!1),!o&&null===n&&11===t.nodeType)return this.path="|fragment|"+s+this.path,void(this.done=!0);if(!this.R(t)){var u=ut(t,null!=n?n:"detached",i,this.options),c=u.elementSelector,h=u.hasUniqueIdentifier;h&&(this.h=!0,this.t=!this.options.fullPath);var a="".concat(e?"|detached|".concat(s):"").concat(this.t&&!h?"":c),f=!h&&this.h&&!this.options.fullPath?"":this.path&&!this.S?">":"";this.S=!1,this.path="".concat(a).concat(f).concat(this.path)}}},n}(vt),yt=function(t,n){return yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},yt(t,n)};function wt(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}yt(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}var pt=function(){return pt=Object.assign||function(t){for(var n,i=1,r=arguments.length;i=0;u--)(e=t[u])&&(o=(s<3?e(o):s>3?e(n,i,o):e(n,i))||o);return s>3&&o&&Object.defineProperty(n,i,o),o}function St(t,n,i,r){return new(i||(i=Promise))((function(e,s){function o(t){try{c(r.next(t))}catch(t){s(t)}}function u(t){try{c(r.throw(t))}catch(t){s(t)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(t){t(n)}))).then(o,u)}c((r=r.apply(t,n||[])).next())}))}function bt(t,n){var i,r,e,s,o={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(u){return function(c){return function(u){if(i)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)try{if(i=1,r&&(e=2&u[0]?r.return:u[0]?r.throw||((e=r.return)&&e.call(r),0):r.next)&&!(e=e.call(r,u[1])).done)return e;switch(r=0,e&&(u=[2&u[0],e.value]),u[0]){case 0:case 1:e=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,r=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(e=o.trys,(e=e.length>0&&e[e.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!e||u[1]>e[0]&&u[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function Et(t,n){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,e,s=i.call(t),o=[];try{for(;(void 0===n||n-- >0)&&!(r=s.next()).done;)o.push(r.value)}catch(t){e={error:t}}finally{try{r&&!r.done&&(i=s.return)&&i.call(s)}finally{if(e)throw e.error}}return o}function Rt(t,n,i){if(i||2===arguments.length)for(var r,e=0,s=n.length;e0;){if(s){t=s;return s=null,t}var o=r[r.length-1].nextNode();if(o){var u=Ct(o);if(n&Mt.SHOW_DOCUMENT_FRAGMENT&&u&&(s=u),u&&csArray.prototype.push.call(r,document.createTreeWalker(u,i,null,!1)),Pt[o.nodeType]&n)return o}else csArray.prototype.pop.call(r)}return null},visitAll:function(i){Pt[t.nodeType]&n&&i(t);for(var r=this.nextNode();r;)Pt[r.nodeType]&n?(i(r),r=this.nextNode()):r=this.nextNode()},collectAll:function(t){var n=[];return this.visitAll((function(i){return csArray.prototype.push.call(n,t?t(i):i)})),n}}}function Ct(t){return t&&Y(t)?t.shadowRoot:null}var It=null!==(Tt=e.Node)&&void 0!==Tt?Tt:{},Mt=null!==(Nt=e.NodeFilter)&&void 0!==Nt?Nt:{},Pt=((Ot={})[2]=Mt.SHOW_ATTRIBUTE,Ot[4]=Mt.SHOW_CDATA_SECTION,Ot[8]=Mt.SHOW_COMMENT,Ot[11]=Mt.SHOW_DOCUMENT_FRAGMENT,Ot[9]=Mt.SHOW_DOCUMENT,Ot[10]=Mt.SHOW_DOCUMENT_TYPE,Ot[1]=Mt.SHOW_ELEMENT,Ot[It.ENTITY_NODE]=Mt.SHOW_ENTITY,Ot[It.ENTITY_REFERENCE_NODE]=Mt.SHOW_ENTITY_REFERENCE,Ot[It.NOTATION_NODE]=Mt.SHOW_NOTATION,Ot[7]=Mt.SHOW_PROCESSING_INSTRUCTION,Ot[3]=Mt.SHOW_TEXT,Ot),_t={debug:function(){for(var t=[],n=0;n=jt&&csArray.prototype.push.call(zt,{mName:t,mDuration:+i.toFixed(2)}),csArray.prototype.pop.call(Bt),0===Bt.length&&(i>Ut&&Ht.push(zt),zt=[])}}function Jt(t,n){return function(){for(var i=[],r=0;r=0)for(var i=t.length,r=0;r0?t:window.screen.width}function o(){var t=window.csScreen.height;return E(t)&&t>0?t:window.screen.height}t.documentHeight=n,t.documentWidth=i,t.windowHeight=r,t.windowWidth=e,t.screenWidth=s,t.screenHeight=o,t.windowOffsetX=function(){return window.pageXOffset},t.windowOffsetY=function(){return window.pageYOffset},t.getRequestParameters=function(){return{dw:"".concat(i()),dh:"".concat(n()),ww:"".concat(e()),wh:"".concat(r()),sw:"".concat(s()),sh:"".concat(o())}}}(Wt||(Wt={}));var un,cn=null!==($t=e.Node)&&void 0!==$t?$t:Object;!function(t){var n="isConnected"in cn.prototype?function(t){return t.isConnected}:function(t){return!(t.ownerDocument&&t.ownerDocument.compareDocumentPosition(t)&t.DOCUMENT_POSITION_DISCONNECTED)};t.forEachChild=function(t,n){for(var i=t;i;i=csNodenextSibling.apply(i))n(t)},t.isConnected=function(t){return n(t)},t.getAncestors=function(t,n){var i,e,s=[];try{for(var o=At(r(t,n)),u=o.next();!u.done;u=o.next()){var c=u.value;csArray.prototype.push.call(s,c)}}catch(t){i={error:t}}finally{try{u&&!u.done&&(e=o.return)&&e.call(o)}finally{if(i)throw i.error}}return s};var i=function(t,n){var i;return null!==(i=csNodeparentNode.apply(t))&&void 0!==i?i:n&&J(t)?t.host:null};function r(t,n){var r,e;return void 0===n&&(n=!1),bt(this,(function(s){switch(s.label){case 0:r=t,s.label=1;case 1:return r?[4,r]:[3,3];case 2:return s.sent(),(e=i(r,n))&&e!==r?(r=e,[3,1]):[3,3];case 3:return[2]}}))}function e(n){var i;return n.parentElement?n.parentElement:t.getRootNode(n)?null===(i=t.getRootNode(n))||void 0===i?void 0:i.host:null}function s(t){var n,i;if(!1===(null===(n=t.checkVisibility)||void 0===n?void 0:n.call(t,{checkOpacity:!0,checkVisibilityCSS:!0})))return!0;if(!t.offsetParent){if(!t.getBoundingClientRect)return _t.warn("SUP-11432: Element doesn't have getBoundingClientRect. Node: ".concat(t instanceof cn," Ctor: ").concat(null===(i=null==t?void 0:t.constructor)||void 0===i?void 0:i.name)),!1;var r=t.getBoundingClientRect();if(0==r.width&&0==r.height)return!0}var e,s=window.getComputedStyle(t);return!s||("none"===s.display||"hidden"===s.visibility||"collapse"===s.visibility||"0"===s.opacity||"opacity(0)"===s.filter||"0px"===s.width&&"0px"===s.height||("transparent"===(e=s.color)||/^(rgba|hsla)\(\d+, \d+%?, \d+%?, 0\)$/.test(e)))}function o(t){var n=t.getBoundingClientRect(),i=n.left+.5*n.width,r=n.top+.5*n.height;return u(document,i,r)}function u(n,i,r){var e=n.elementFromPoint(i,r);if(!e)return null;var s=Yt.getShadowRoot(e);return s&&s!=t.getRootNode(document.body)&&s!==n?u(s,i,r):e}function c(t){var n=o(t);return null!==n&&(t===n||(h(t)?""!==t.textContent&&n.contains(t):t.contains(n)))}function h(t){return"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"===t.localName}t.findAncestor=function(t,n,r){void 0===r&&(r=!1);for(var e=t;e;){if(n(e))return e;var s=i(e,r);if(!s||s===e)break;e=s}return null},t.walkUp=r,t.isDescendantOf=function n(i,r){if(i===r||r.contains(i))return!0;var e=t.getParentElement(i);return!(!e||e===i)&&n(e,r)},t.getParentElement=e,t.findAllElements=function(t,n){var i,r,e;void 0===n&&(n=document);var s=Kt(window.csquerySelectorAll[n.nodeType].call(n,t)),o=Yt.getAllShadowHosts(n);try{for(var u=At(o),c=u.next();!c.done;c=u.next()){var h=c.value,a=Yt.getShadowRoot(h);if(a){var f=Kt(window.csquerySelectorAll[a.nodeType].call(a,t));(e=csArray.prototype.push).call.apply(e,Rt([s],Et(f),!1))}}}catch(t){i={error:t}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(i)throw i.error}}return s},t.getRootNode=function(){if("getRootNode"in cn.prototype)return function(t,n){return t.getRootNode(n)};function t(i){var r=n(i);return J(r)?t(r.host):r}function n(t){return null!=csNodeparentNode.apply(t)?n(csNodeparentNode.apply(t)):t}return function(i,r){return"object"==typeof r&&Boolean(r.composed)?t(i):n(i)}}(),t.isHiddenByCSS=s,t.areAncestorsHiddenByCSS=function t(n){if(s(n))return!0;var i=e(n);return null!=i&&t(i)},t.getTopAncestorHiddenByCSS=function(t){var n=null,i=t;do{if(!s(i))break;n=i}while(i=e(i));return n},t.getTopElement=o,t.getElementOnTop=function(n){if(!n.getBoundingClientRect)return null;var i=n.getBoundingClientRect(),r=i.x+i.width/2,e=i.y+i.height/2;return t.getTopElementFromPoint(document,r,e)},t.getTopElementFromPoint=u,t.isVisibleInDocument=function(t){return!function(t){var n=t.getBoundingClientRect();return n.right+Wt.windowOffsetX()<0||n.bottom+Wt.windowOffsetY()<0}(t)&&!s(t)&&!function(t){var n=o(t);return null!==n&&!t.contains(n)&&!n.contains(t)}(t)},t.isVisibleInViewportInForeground=function(t){return!s(t)&&c(t)},t.isInViewPort=c,t.getAttributeNS=function(t,n,i){var r=t.getAttributeNS(n,i);return""===r?t.hasAttributeNS(n,i)?r:null:r},t.isElementFocusable=function(t){return!!t.hasAttribute("tabIndex")||("true"===t.getAttribute("contentEditable")||(!(!L(t)||!t.hasAttribute("href"))||(!(!(z(t)||H(t)||q(t)||(n=t,_(n)&&"button"===n.localName))||t.hasAttribute("disabled"))||!(!function(t){return _(t)&&"details"===t.localName}(t)&&!function(t){return _(t)&&"summary"===t.localName}(t)))));var n},t.isInlineElement=h}(un||(un={}));var hn,an=function(){function t(t){this.C=t}return t.prototype.run=function(t){for(var n=g([],m(this.C),!1),i=un.getAncestors(t,!1),r=i[i.length-1];n.length>0&&i.length>0;){var e=csArray.prototype.shift.call(i),s=i[0]||null;if(this.I(n,e,s,r),this.M(n),0===n.length)break;0===i.length&&e.host&&(r=(i=un.getAncestors(e.host,!1))[i.length-1])}},t.prototype.I=function(t,n,i,r){var e,s;try{for(var o=p(t),u=o.next();!u.done;u=o.next()){u.value.serializeElement(n,i,r)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(s=o.return)&&s.call(o)}finally{if(e)throw e.error}}},t.prototype.M=function(t){for(var n=0;n0))){var i=this.P(t);i+=i.length>0?"|":"",this.path.length+i.length>this.options.hierarchyMaxLength?this.done=!0:this.path=i+this.path}},n.prototype.P=function(t){if(!t.localName)return"";var n="@".concat(t.localName,";");return n+=this._(t.id),t.classList&&(n+=this.D(csArray.from(t.classList))),t.attributes&&(n+=this.L(t)),n},n.prototype._=function(t){return t?"#".concat(t,";"):""},n.prototype.D=function(t){return t.length>0?".".concat(csArray.prototype.join.call(csArray.prototype.sort.call(t),";."),";"):""},n.prototype.U=function(t,n){var i,r;return(null===(r=(i=this.options).isAttributeSensitive)||void 0===r?void 0:r.call(i,t,n))||-1!==csArray.prototype.indexOf.call(this.options.attributeIgnoreTokens,n)||B(t)&&-1===csString.prototype.indexOf.call(n,"data-")&&"aria-label"!==n||q(t)&&"value"===n},n.prototype.j=function(t,n){return this.options.useAnonymization&&!this.options.allWhitelistedAttributes.has(t)||n.length>this.options.attrMaxLength},n.prototype.q=function(t){var n,i,r={};try{for(var e=p(csArray.from(t.attributes)),s=e.next();!s.done;s=e.next()){var o=s.value;this.U(t,o.name)||(r[o.name]=o.value)}}catch(t){n={error:t}}finally{try{s&&!s.done&&(i=e.return)&&i.call(e)}finally{if(n)throw n.error}}return r},n.prototype.L=function(t){var n,i,r=this;if(null===(i=(n=this.options).isNodeSensitive)||void 0===i?void 0:i.call(n,t))return"";var e=Object.entries(this.q(t));return csArray.prototype.join.call(csArray.prototype.sort.call(csArray.prototype.map.call(csArray.prototype.filter.call(e,(function(t){return m(t,1)[0].length0?";":"")},n}(vt);!function(t){function n(t){return!!t&&"localName"in t&&"getAttribute"in t&&"hasAttribute"in t&&"parentNode"in t}function i(t){return t&&"jquery"in t&&1===t.length?t[0]:t}t.INVALID_ELEMENT="INVALID_ELEMENT",t.isValidElement=n,t.getElementPathAndHierarchy=function(r,e,s){void 0===s&&(s={fullPath:!1,dynamicIdRegex:null});var o=i(r);if(o===document)return{path:"",hierarchy:""};if(!n(o))return{path:t.INVALID_ELEMENT,hierarchy:t.INVALID_ELEMENT};var u=new dt(s),c=new fn(e);return new an([u,c]).run(o),{path:u.getPath(),hierarchy:c.getPath()}},t.getElementPath=function(r,e){void 0===e&&(e={fullPath:!1,dynamicIdRegex:null});var s=i(r);if(s===document)return"";if(!n(s))return t.INVALID_ELEMENT;var o=Z(s);return ft(o.ancestors,o.selectionRoot,e)},t.getElementPathAndFirstAnchorParent=function(r,e){void 0===e&&(e={fullPath:!1,dynamicIdRegex:null});var s=i(r);if(s===document)return{path:"",firstAnchorParent:null};if(!n(s))return{path:t.INVALID_ELEMENT,firstAnchorParent:null};var o=function(t){for(var n=t,i=[n],r=null;null!==csNodeparentNode.apply(n);)null===r&&L(n)&&(r=n),csArray.prototype.push.call(i,csNodeparentNode.apply(n)),n=csNodeparentNode.apply(n);return Q(n)&&csArray.prototype.push.call(i,K),{firstAnchorParent:r,ancestors:i,selectionRoot:n}}(s),u=o.firstAnchorParent;return{path:ft(o.ancestors,o.selectionRoot,e),firstAnchorParent:u}}}(hn||(hn={})),window.CSPathComputation=window.CSPathComputation||hn;var ln=function(t,n){return ln=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},ln(t,n)};function vn(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}ln(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}var dn=function(){return dn=Object.assign||function(t){for(var n,i=1,r=arguments.length;i=0;u--)(e=t[u])&&(o=(s<3?e(o):s>3?e(n,i,o):e(n,i))||o);return s>3&&o&&Object.defineProperty(n,i,o),o}function pn(t,n,i,r){return new(i||(i=Promise))((function(e,s){function o(t){try{c(r.next(t))}catch(t){s(t)}}function u(t){try{c(r.throw(t))}catch(t){s(t)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(t){t(n)}))).then(o,u)}c((r=r.apply(t,n||[])).next())}))}function mn(t,n){var i,r,e,s,o={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(u){return function(c){return function(u){if(i)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)try{if(i=1,r&&(e=2&u[0]?r.return:u[0]?r.throw||((e=r.return)&&e.call(r),0):r.next)&&!(e=e.call(r,u[1])).done)return e;switch(r=0,e&&(u=[2&u[0],e.value]),u[0]){case 0:case 1:e=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,r=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(e=o.trys,(e=e.length>0&&e[e.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!e||u[1]>e[0]&&u[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function Sn(t,n){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,e,s=i.call(t),o=[];try{for(;(void 0===n||n-- >0)&&!(r=s.next()).done;)o.push(r.value)}catch(t){e={error:t}}finally{try{r&&!r.done&&(i=s.return)&&i.call(s)}finally{if(e)throw e.error}}return o}function bn(t,n,i){if(i||2===arguments.length)for(var r,e=0,s=n.length;e-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=dn(dn({},t.voc),{enabled:!!t.voc.enabled})),t.heapEnvironment&&(this.heapEnvironment=t.heapEnvironment),t.implementations&&t.implementations.length&&(this.implementations=t.implementations),this.eventsApiEnabled=!!t.eventsApiEnabled,this.anonymizeDigits=null!==(s=t.anonymizeDigits)&&void 0!==s?s:null,this.isHeapPresent=void 0!==window.heap,this.clickedElementTextEnabled=!!t.clickedElementTextEnabled,this.recordTargetingRules=null!==(o=t.recordTargetingRules)&&void 0!==o?o:[],this.paProxyDomainUri=t.paProxyDomainUri||null,this.emitRecordInfoEvents=0!=t.emitRecordInfoEvents,this.collectHierarchy=!!t.collectHierarchy}return t.prototype.getTrackerUri=function(){return"".concat(this.F(),"://").concat(this.trackerDomain)},t.prototype.getSentryFileUri=function(){return"".concat(this.F(),"://").concat(this.tagDomain,"/uxa/smb/errors.js")},t.prototype.getSentryDSNUri=function(){return"https://".concat("f553e78fb58e051e51fe8074c4c6e73e","@").concat(this.loggerDomain,"/4508608369131520")},t.prototype.getRecordingUri=function(){return"".concat(this.F(),"://").concat(this.malkaRecordingDomain)},t.prototype.getLegacyQuotaUri=function(){return"".concat(this.F(),"://").concat(this.malkaQuotaServiceDomain)},t.prototype.getLoggerUri=function(){return"".concat(this.F(),"://").concat(this.loggerDomain)},t.prototype.getMetricsUri=function(){return"".concat(this.F(),"://").concat(this.loggerDomain,"/metrics")},t.prototype.getStaticResourceManagerUri=function(){return"".concat(this.F(),"://").concat(this.staticResourceManagerDomain)},t.prototype.getQuotaUri=function(){return"".concat(this.F(),"://").concat(this.dynamicConfDomain,"/").concat(this.projectId,".json")},t.prototype.isQuotaEnabled=function(){return this.isSMB&&!!this.dynamicConfDomain},t.prototype.getPaProxyDomainUri=function(){return"".concat(this.F(),"://").concat(this.paProxyDomainUri)},t.prototype.F=function(){return this.useHttps?"https":"http"},t.prototype.isProjectActive=function(){return 1===this.status},t.prototype.processOptionOverrides=function(t){var n=this;t&&t.forEach&&t.forEach((function(t){var i=Sn(t),r=i[0],e=i.slice(1);if("setOption"===r){var s=Sn(e,2),o=s[0],u=s[1];n.B(o,u)}}))},t.prototype.B=function(t,n){"trackerDomain"===t&&(this.trackerDomain=n),"loggerDomain"===t&&(this.loggerDomain=n),"malkaRecordingDomain"===t&&(this.malkaRecordingDomain=n),"malkaQuotaServiceDomain"===t&&(this.malkaQuotaServiceDomain=n),"staticResourceManagerDomain"===t&&(this.staticResourceManagerDomain=n),"minLogLevel"===t&&(this.minLogLevel=n),"useHttps"===t&&(this.useHttps=!!n),"isWebView"===t&&(this.isWebView=n)},t.prototype.H=function(t){return t?this.V(t):null},t.prototype.getRequestParameters=function(){return{pid:"".concat(this.projectId)}},t.prototype.updateDynamicFields=function(t,n){"emitDebugEvents"===t&&(this.emitDebugEvents=n),"minLogLevel"===t&&(this.minLogLevel=n)},t.prototype.V=function(t){try{var n=/^\/(.*)\/([gim]*)$/.exec(t);if(n){var i=Sn(n,3),r=i[1],e=i[2];return new csRegExp("^".concat(r,"$"),e)}return new csRegExp("^".concat(t,"$"))}catch(t){return null}},t.prototype.isHeaderCollectionActive=function(){var t,n;return this.apiErrors.collectStandardHeaders||!!(null===(t=this.apiErrors.validCustomHeaders)||void 0===t?void 0:t.length)||!!(null===(n=this.apiErrors.plainCustomHeaders)||void 0===n?void 0:n.length)},t.prototype.isCsSideloadingHeap=function(){var t;return"cs_sideloads_heap"===(null===(t=this.heapEnvironment)||void 0===t?void 0:t.heap_tag_status)&&!this.isHeapPresent},t.prototype.isHeapSideloadsCs=function(){var t;return"heap_sideloads_cs"===(null===(t=this.heapEnvironment)||void 0===t?void 0:t.heap_tag_status)},t.prototype.isHeapSideloadsCsV5=function(){var t;return"heap_sideloads_cs"===(null===(t=this.heapEnvironment)||void 0===t?void 0:t.heap_tag_status)&&this.G()},t.prototype.isHeapSideloadsStartDataCollection=function(){if(this.isHeapSideloadsCs()){if(this.G())return!0;var t=function(t){if(Mn.test(t)){var n=Sn(csArray.prototype.map.call(csString.prototype.split.call(t,"."),Number),3),i=n[0],r=n[1],e=n[2];return{major:i,minor:r,patch:!e||Number.isNaN(e)?0:e}}}(this.getHeapVersion()||"");if(t&&4===t.major&&function(t,n){return function(t,n){return t.major!==n.major?t.major-n.major:t.minor!==n.minor?t.minor-n.minor:t.patch-n.patch}(t,n)>=0}(t,{major:4,minor:23,patch:5}))return!0}return!1},t.prototype.G=function(){var t;return"function"==typeof(null===(t=window.heap)||void 0===t?void 0:t.getUserId)},t.prototype.getHeapVersion=function(){var t,n,i,r,e,s;return"function"==typeof(null===(t=window.heap)||void 0===t?void 0:t.getConfig)&&(null===(r=null===(i=null===(n=window.heap)||void 0===n?void 0:n.getConfig())||void 0===i?void 0:i.sdk)||void 0===r?void 0:r.version)||(null===(s=null===(e=window.heap)||void 0===e?void 0:e.version)||void 0===s?void 0:s.heapJsVersion)||void 0},t.prototype.isCsCrosswritingHeap=function(){var t;return"cs_crosswrites_heap"===(null===(t=this.heapEnvironment)||void 0===t?void 0:t.heap_tag_status)},t.prototype.isClickedElementTextEnabled=function(){return this.isSMB||this.clickedElementTextEnabled},t.prototype.isNetworkDetailsEnabled=function(){return!!this.performanceTimingOptions&&(this.performanceTimingOptions.withResource||this.performanceTimingOptions.withNavigation)},t.prototype.hasTargetingRules=function(){var t;return!!(null===(t=this.recordTargetingRules)||void 0===t?void 0:t.length)},t}(),_n=function(){function t(t,n){this.J=t,this.Y=n}return t.prototype.init=function(){this.W=this.J!==this.J.top,this.$=this.Y.isWebView&&this.J===this.J.top,this.Y.iframesTracking&&this.W||this.$?this.X=!1:this.X=!0},t.prototype.isInIframeContext=function(){return this.W},t.prototype.isTopWindowTracker=function(){return this.X},t.prototype.isInWebViewContext=function(){return this.$},t}();!function(t){t.debug="debug",t.warn="warn",t.implementation="implementation",t.error="error",t.critical="critical"}(Cn||(Cn={})),function(t){t.toQuery=function(t){return csArray.prototype.join.call(csArray.prototype.map.call(Object.keys(t),(function(n){return"".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(t[n]))})),"&")}}(In||(In={}));var xn,Dn=function(){function t(t,n){this.domainUri=t,this.path=n,this.beforeRequestCallbacks=[],this.afterRequestCallbacks=[]}return t.prototype.setRequestParametersProviders=function(){for(var t=[],n=0;n=0;r--){var e=parseInt(t[r]);r%2==0&&(e*=2),i+=Math.floor(e/10)+e%10}return 10-i%10===n},t}(),ti="15.78.1";function ni(){return{v:ti}}function ii(t){for(var n=new ArrayBuffer(t.length),i=new Uint8Array(n),r=0,e=t.length;r=5)&&(!n||!csArray.prototype.some.call(i,(function(t){return t===n})))},t.prototype.xt=function(t,n){return t in this.Ct[n]?!(this.Ct[n][t]>=5)&&(this.Ct[n][t]+=1,!0):(this.Ct[n][t]=1,!0)},t}(),Ti=!r&&document.createElement("a"),Ni=/(:443|:80)$/;function ki(t){return Ti?(Ti.href=t,Ti.href):""}function Ci(t,n){return new csURL(t,n).href}function Ii(t){var n=_i(t);return null===n?"":decodeURIComponent(n.hostname)}function Mi(t,n){return csArray.prototype.some.call(n,(function(n){return pi(t,".".concat(n))||t===n||""===n}))}function Pi(t){return csString.prototype.replace.call(t,Ni,"")}function _i(t){return Ti&&(wi(t,"http://")||wi(t,"https://"))?(Ti.href=t,{hash:Ti.hash,host:Pi(Ti.host),hostname:Ti.hostname,href:Ti.href,origin:Ti.origin?Ti.origin:Pi("".concat(Ti.protocol,"//").concat(Ti.host)),pathname:(n=Ti.pathname,"/"===n[0]?n:"/".concat(n)),port:Ti.port,protocol:Ti.protocol,search:Ti.search}):null;var n}var xi,Di,Li,Ui,ji="CS_IFRAME_MESSAGE";!function(t){t.AfterPageView="afterPageView",t.GetSessionKey="getSessionKey"}(xi||(xi={})),function(t){t.Parent="parent",t.Child="child"}(Di||(Di={})),function(t){t.Discovery="discovery",t.Stop="stop",t.RecordingContext="recordingContext",t.SensitiveStatus="sensitiveStatus",t.RecordingEvent="recordingEvent",t.EndOfBufferedMessages="endOfBufferedMessages",t.ChildLogMessage="childLogMessage",t.AnalysisEvent="analysisEvent",t.JavascriptError="javascriptError",t.ApiError="apiError",t.Assets="assets",t.DetailedApiError="detailedApiError",t.EmerchandisingMessage="emerchandisingMessage",t.Commands="commands",t.IntegrationCallback="integrationCallback",t.StaticResource="staticResource",t.TrackingContextResultMessage="trackingContextResultMessage",t.TrackingContextRequestMessage="trackingContextRequestMessage",t.CustomError="customError"}(Li||(Li={})),function(t){t.buildBaseMessage=function(t,n,i,r){var e={type:t,from:n,pid:i,signature:ji};return void 0!==r&&r>=0&&(e.id=r),e},t.isMessageValid=function(t,n,i,r){var e=Ii(t.origin);return!!t.data&&!!t.data.type&&t.data.signature===ji&&t.data.from===n&&t.data.pid===i&&Mi(e,r)},t.sendPostMessage=function(t,n,i,r){r?t.postMessage(i,n,r):t.postMessage(i,n)},t.getNewChannelMessage=function(){return new MessageChannel},t.sendChannelMessage=function(t,n){t.postMessage(n)},t.closeChannelPort=function(t){t.close()}}(Ui||(Ui={}));var qi=function(){function t(t){this.Rt=t}return t.prototype.send=function(t,n,i){void 0===n&&(n=""),void 0===i&&(i=Cn.warn);var r={message:t,errorCode:n,level:i},e=Ui.buildBaseMessage(Li.ChildLogMessage,Di.Child,this.Rt.projectId);e.content=r,Ui.sendPostMessage(window.parent,"*",e)},t}(),Hi=function(){function t(){}return t.prototype.setContext=function(t,n){this.Dt=t,this.Lt=n},t.prototype.getVisitorService=function(){return this.Dt},t.prototype.getSessionService=function(){return this.Lt},t}(),Fi=["t.contentsquare.net","clicktale"];window.addEventListener("error",(function(t){"string"!=typeof t.filename||!csArray.prototype.some.call(Fi,(function(n){return csString.prototype.indexOf.call(t.filename,n)>-1}))||csString.prototype.indexOf.call(t.filename,"blob")>-1&&(null==t.message?void 0:csString.prototype.indexOf.call(t.message,"importScripts"))>-1||Ji.critical("Uncaught jsError: filename: ".concat(t.filename," - lineno: ").concat(t.lineno," - colno: ").concat(t.colno," - message: ").concat(t.message," "))}));var Bi,zi,Vi,Gi,Ji=function(){function t(){}return t.whiteListFilename=function(t){csArray.prototype.push.call(Fi,t)},t.setStrategy=function(n){t.Ut=n},t.computeIsActive=function(n){t.jt=Tn.boolean(n),t.jt?t.qt=Tn.boolean(10):t.qt=!1},t.isLoggingActive=function(){return t.jt},t.getStrategy=function(){return t.Ut},t.debug=function(n,i){void 0===i&&(i=""),t.jt&&this.Ut.send(n,i,Cn.debug)},t.warn=function(n,i,r){var e;void 0===i&&(i=!0),void 0===r&&(r=""),t.jt&&i&&this.Ut.send(n,r,Cn.warn),null===(e=window.UXAnalytics.Console)||void 0===e||e.warn(n)},t.implementation=function(n,i){void 0===i&&(i=""),t.jt&&this.Ut.send(n,i,Cn.implementation)},t.error=function(n,i){var r;void 0===i&&(i=""),t.jt&&this.Ut.send(n,i,Cn.error),null===(r=window.UXAnalytics.Console)||void 0===r||r.error(n)},t.critical=function(t,n){void 0===n&&(n=""),this.Ut.send(t,n,Cn.critical)},t.tryToExecute=function(t,n){var i=this;return function(){for(var r=[],e=0;e0},t.getRootDomain=function(t,r){var s="_cs_root-domain",o=n(s);if(null!==o&&"1"!==o)return o;for(var u=csString.prototype.split.call(window.location.hostname,"."),c=csArray.prototype.pop.call(u);u.length&&(null===o||"1"===o);)i(s,c=csArray.prototype.join.call([csArray.prototype.pop.call(u),c],"."),c,void 0,t,r),o=n(s);return e(s,c),c}}(Bi||(Bi={})),function(t){t.browserIsSafariV12=function(){return window.navigator.vendor&&csString.prototype.indexOf.call(window.navigator.vendor,"Apple")>-1&&window.navigator.appVersion&&csString.prototype.indexOf.call(window.navigator.appVersion,"Version/12.")>-1}}(zi||(zi={})),function(t){t.None="None",t.Lax="Lax",t.NotSet="X"}(Vi||(Vi={})),function(t){t[t.Yes=1]="Yes",t[t.No=0]="No"}(Gi||(Gi={}));var $i=function(){function t(t,n,i){this.Rt=t,this.Ht=n,this.Ft=i,this.Bt=!1,this.zt=Vi.NotSet,this.Vt=Gi.No}return t.prototype.getSameSiteFlag=function(){return this.zt},t.prototype.getSecureFlag=function(){return this.Vt},t.prototype.getDomain=function(){return this.Gt},t.prototype.getRootDomain=function(){return this.Jt},t.prototype.init=function(){if(!this.Rt.cookielessTrackingEnabled){var t=this.Yt(),n=this.Wt();this.Bt=this.$t(t,n),this.Bt?(this.zt=t,this.Vt=n):this.Rt.secureCookiesEnabled&&"https:"===this.Ht.getUrlProtocol()&&(this.Vt=Gi.Yes),this.Jt=this.Xt(),this.Gt=this.Kt(this.Jt)}},t.prototype.$t=function(n,i){return!zi.browserIsSafariV12()&&(Bi.set(t.COOKIE_TEST_FOR_SAME_SITE,"Test same site",t.CURRENT_DOMAIN,void 0,n,i),!!Bi.get(t.COOKIE_TEST_FOR_SAME_SITE)&&(Bi.remove(t.COOKIE_TEST_FOR_SAME_SITE,t.CURRENT_DOMAIN),!0))},t.prototype.Yt=function(){return"http:"===this.Ht.getUrlProtocol()?Vi.Lax:this.Ft.isSameSiteNoneSecureNeeded()||this.Rt.crossDomainTracking?Vi.None:Vi.Lax},t.prototype.Wt=function(){return"http:"===this.Ht.getUrlProtocol()?Gi.No:this.Rt.secureCookiesEnabled||this.Rt.crossDomainTracking||this.Ft.isSameSiteNoneSecureNeeded()?Gi.Yes:Gi.No},t.prototype.isSameSiteSupported=function(){return this.Bt},t.prototype.set=function(t,n,i){var r=Bi.toExpireDate(i);Bi.set(t,n,this.Gt,r,this.getSameSiteFlag(),this.getSecureFlag())},t.prototype.get=function(t){var n=new csRegExp("(^|;)[ ]*".concat(t,"=([^;]*)")).exec(document.cookie);return n?decodeURIComponent(n[2]):null},t.prototype.delete=function(t,n){var i=n||this.Gt;Bi.remove(t,i)},t.prototype.Xt=function(){var t=this.Ft.isSameSiteNoneSecureNeeded()&&this.isSameSiteSupported(),n=t?Vi.None:void 0,i=t?Gi.Yes:void 0;return Bi.getRootDomain(n,i)},t.prototype.Kt=function(t){return this.Rt.allowSubdomains?t:Bi.CURRENT_DOMAIN},t.CURRENT_DOMAIN="CURRENT_DOMAIN",t.COOKIE_TEST_FOR_SAME_SITE="_cs_same_site",t}(),Xi="_cs_t",Ki=function(){function t(t,n){this.Zt=t,this.Rt=n,this.Qt=!1,this.tn=!1}return t.prototype.init=function(){if(!this.Rt.cookielessTrackingEnabled&&this.Zt.isTopWindowTracker()&&"cookie"in document){if(!this.Zt.isInIframeContext()&&Bi.isCookiePresent())return this.Qt=!0,void(this.tn=!1);if(Bi.set(Xi,"1",Bi.CURRENT_DOMAIN),null!==Bi.get(Xi))return this.Qt=!0,this.tn=!1,void Bi.remove(Xi,Bi.CURRENT_DOMAIN);Bi.set(Xi,"1",Bi.CURRENT_DOMAIN,void 0,Vi.None,Gi.Yes),null!==Bi.get(Xi)&&(this.Qt=!0,this.tn=!0,Bi.remove(Xi,Bi.CURRENT_DOMAIN))}},t.prototype.areCookiesEnabled=function(){return this.Qt},t.prototype.isSameSiteNoneSecureNeeded=function(){return this.tn},t}();var Zi,Qi=function(){function t(t,n){this.Rt=t,this.Ft=n}return t.prototype.canTrack=function(){return this.Rt.isProjectActive()&&this.nn()&&this.rn()&&this.en()},t.prototype.canTrackInChild=function(){return this.Rt.isProjectActive()&&this.un()&&(this.rn()||this.cn())},t.prototype.en=function(){return this.Rt.cookielessTrackingEnabled?function(){var t="CSSessionStorageTest";try{return sessionStorage.setItem(t,t),sessionStorage.getItem(t)===t&&(sessionStorage.removeItem(t),!0)}catch(t){return!1}}():this.Ft.areCookiesEnabled()},t.prototype.rn=function(){return Mi(window.location.hostname,this.Rt.hostnames)},t.prototype.nn=function(){return!this.hn()&&this.an()},t.prototype.un=function(){return!this.hn()&&this.fn()},t.prototype.cn=function(){return Rn(window.location.href,"about:srcdoc")&&"about:"===window.location.protocol&&""===window.location.hostname},t.prototype.hn=function(){return"visibilityState"in document&&"prerender"===document.visibilityState},t.prototype.an=function(){return this.ln()&&this.vn()},t.prototype.fn=function(){return this.ln()},t.prototype.vn=function(){try{return!!window.localStorage}catch(t){return!1}},t.prototype.ln=function(){return"pageXOffset"in window&&"pageYOffset"in window&&"onpagehide"in window&&"JSON"in window&&"parse"in window.csJSON&&"stringify"in window.csJSON&&"addEventListener"in window&&"removeEventListener"in window&&"Node"in window&&"filter"in csArray.prototype&&"forEach"in csArray.prototype&&"querySelectorAll"in document&&"now"in csDate&&"keys"in Object&&"performance"in window&&"Map"in window&&"Set"in window},t}(),tr=function(){function t(n,i){var r=this;this.dn=!1,this.yn=new Map,this.wn=new Map,this.mn=new Map,this.gn="CS_WORKER_SIGNATURE";var e="\n const algorithm = ".concat(n.algorithm,";\n const compressor = (").concat(n.getCompressorSourceCode(),")();\n ").concat('!function(){"use strict";var e,t=function(){return t=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),a=o.next();!a.done;a=o.next()){var s=a.value,i=s.metadata,c=s.events;r.send(c,i)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}},this.endpoint=e.endpoint,this.compressionOpts=e.compressionOpts,this.recoveryStorage=e.recoveryStorage,this.mandatoryParameters=null!==(t=e.mandatoryParameters)&&void 0!==t?t:[],this.worker=!!e.worker,this.recoveryStorage&&this.recoveryStorage.recover(this.handleRecoveredRequests)}return r.prototype.setQueryParams=function(e){var t=this;Object.keys(e).forEach((function(r){t.queryParams[r]=e[r]}))},r.prototype.removeQueryParams=function(e){var t=this;e?e.forEach((function(e){delete t.queryParams[e]})):this.queryParams={}},r.prototype.send=function(r,n){var o=this,s=n||t({},this.queryParams),i=!("ct"in s),c="string"!=typeof r&&!this.isArrayBuffer(r);"ct"in s||(this.compressionOpts&&i?s.ct=this.compressionOpts.compressionType:s.ct=e.UNCOMPRESSED);var u=c?JSON.stringify(r):r,h=Object.keys(s).map((function(e){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(s[e]))})).join("&"),f="".concat(this.endpoint,"?").concat(h);!function(e,t){for(var r=e.length,n=0;nthis.maxStoredBytes},e.prototype.reset=function(){this.storageBytesUsed=0},e}(),c=function(){function e(e){this.ramStorage={},this.byteSizeCounter=new i(e)}return e.prototype.save=function(e){var t=e.key,r=e.metadata,n=e.events;this.byteSizeCounter.isThresholdReached()||(this.byteSizeCounter.addString(t),"string"==typeof n?this.byteSizeCounter.addString(n):this.byteSizeCounter.addArrayBuffer(n),this.byteSizeCounter.isThresholdReached()||(this.ramStorage[t]={metadata:r,events:n}))},e.prototype.recover=function(e){var t=this,r=[];this.getStorageKeys().forEach((function(e){var n=t.ramStorage[e];void 0!==n&&(delete n.metadata.datatype,r.push(n),t.removeItem(e))})),0!==r.length&&(e(r),this.byteSizeCounter.reset())},e.prototype.getStorageKeys=function(){return Object.keys(this.ramStorage)},e.prototype.removeItem=function(e){delete this.ramStorage[e]},e}();!function(e){e[e.NOT_STARTED=0]="NOT_STARTED",e[e.OPEN_IN_PROGRESS=1]="OPEN_IN_PROGRESS",e[e.OPEN_FAILED=2]="OPEN_FAILED",e[e.READY=3]="READY"}(o||(o={}));var u=function(){function e(e,t,r){this.storageName=e,this.onOpenError=r,this.cacheState=o.NOT_STARTED,this.toBeSavedBuffer=[],this.recoveryInProgress=0,this.origin=self.origin,this.context="object"==typeof window?"":"worker-",this.byteSizeCounter=new i(t),this.init()}return e.prototype.init=function(){return r(this,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,this.openCache()];case 1:return e.sent(),this.cacheState===o.READY?this.flushToBeSavedBuffer():this.onOpenError(this.toBeSavedBuffer),[2]}}))}))},e.prototype.flushToBeSavedBuffer=function(){var e=this;this.toBeSavedBuffer.forEach((function(t){e.save(t)})),this.toBeSavedBuffer=[]},e.prototype.save=function(e){return r(this,void 0,void 0,(function(){var t,r,a;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),this.cacheState===o.OPEN_IN_PROGRESS?(this.toBeSavedBuffer.push(e),[2]):this.cacheState!==o.READY||this.byteSizeCounter.isThresholdReached()?[2]:(t=e.key,r=e.metadata,a=e.events,this.byteSizeCounter.addString(t),"string"==typeof a?this.byteSizeCounter.addString(a):this.byteSizeCounter.addArrayBuffer(a),this.byteSizeCounter.isThresholdReached()?[2]:[4,this.cache.put("".concat(this.origin,"/").concat(t),new Response(a,{headers:r}))]);case 1:case 2:return n.sent(),[3,3];case 3:return[2]}}))}))},e.prototype.recover=function(e){return r(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return this.cache?[3,2]:[4,this.openCache()];case 1:if(t.sent(),this.cacheState!==o.READY)return[2];t.label=2;case 2:return this.doRecover(e),[2]}}))}))},e.prototype.openCache=function(){return r(this,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),this.cacheState=o.OPEN_IN_PROGRESS,e=this,[4,self.caches.open("".concat(this.context).concat(this.storageName))];case 1:return e.cache=t.sent(),this.cacheState=o.READY,[3,3];case 2:return t.sent(),this.cacheState=o.OPEN_FAILED,[3,3];case 3:return[2]}}))}))},e.prototype.doRecover=function(e){return r(this,void 0,void 0,(function(){var t,r,o,a,s=this;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,5,6,7]),this.recoveryInProgress++,this.recoveryInProgress>1?[2]:[4,this.cache.keys()];case 1:return 0===(t=n.sent()).length?[2]:[4,this.cache.matchAll()];case 2:return r=n.sent(),o=r.map((function(e){var t={};e.headers.forEach((function(e,r){t[r]=e})),delete t["content-type"];var r=t.datatype;return delete t.datatype,"json"===r||"base64"===r?e.text().then((function(e){return{metadata:t,events:e}})):e.arrayBuffer().then((function(e){return{metadata:t,events:e}}))})),[4,Promise.all(o)];case 3:return a=n.sent(),[4,Promise.all(t.map((function(e){return s.cache.delete(e)})))];case 4:return n.sent(),e(a),this.byteSizeCounter.reset(),[3,7];case 5:return n.sent(),[3,7];case 6:return this.recoveryInProgress--,[7];case 7:return[2]}}))}))},e}(),h=function(){function e(e){try{this.initializeStorageStrategy(e)}catch(e){this.setRamStorageStrategy()}}return e.prototype.initializeStorageStrategy=function(e){self.caches?this.setCachesStrategy(e):this.setRamStorageStrategy()},e.prototype.save=function(e){this.storageStrategy.save(e)},e.prototype.recover=function(e){this.storageStrategy.recover(e)},e.prototype.setCachesStrategy=function(t){var r=this;this.storageStrategy=new u(t,e.MAX_SIZE,(function(e){r.setRamStorageStrategy(e)}))},e.prototype.setRamStorageStrategy=function(t){var r=this;this.storageStrategy=new c(e.MAX_SIZE),t&&t.forEach((function(e){r.storageStrategy.save(e)}))},e.MAX_SIZE=16777216,e}();!function(){var e="CS_WORKER_SIGNATURE",t=new Map,o=new h("csPersisted");function a(r){var n;if((n=r)&&n.WORKER_SIGNATURE===e)switch(r.type){case"CreatePostRequest":var a=r.endpoint,i=r.compressionOutputType,c=r.useRetry,u=r.mandatoryParameters,h={endpoint:a,mandatoryParameters:u,worker:!0};i&&(h.compressionOpts={compressor:compressor,compressionOutputType:i,compressionType:algorithm}),c&&(h.recoveryStorage=o);var f=new s(h);t.set(a,f),f.onLoad((function(t){var r={type:"onLoad",endpoint:a,response:t,WORKER_SIGNATURE:e};self.postMessage(r)})),f.onError((function(t){var r={type:"onError",endpoint:a,response:t,WORKER_SIGNATURE:e};self.postMessage(r)}));break;case"SetQueryParams":var p=r.endpoint,y=r.queryParams;(f=t.get(p))&&f.setQueryParams(y);break;case"RemoveQueryParams":p=r.endpoint,y=r.queryParams,(f=t.get(p))&&f.removeQueryParams(y);break;case"Send":p=r.endpoint;var d=r.payload;y=r.queryParams,(f=t.get(p))&&f.send(d,y);break;case"Abort":p=r.endpoint,(f=t.get(p))&&f.abort();break;case"SetHeader":p=r.endpoint;var l=r.headerName,v=r.headerValue;(f=t.get(p))&&f.setRequestHeader(l,v);break;case"SetTimeout":var S=r.endpoint,m=r.timeout;(f=t.get(S))&&f.onTimeout((function(){var t={type:"onTimeout",endpoint:S,WORKER_SIGNATURE:e};self.postMessage(t)}),m);break;default:throw new Error(JSON.stringify(r))}}self.addEventListener("message",(function(e){e.data.getReader?function(e,t){r(this,void 0,void 0,(function(){var r,o,a,s;return n(this,(function(n){switch(n.label){case 0:r=e.getReader(),n.label=1;case 1:return[4,r.read()];case 2:return o=n.sent(),a=o.done,s=o.value,a?[3,3]:(t(s),[3,1]);case 3:return[2]}}))}))}(e.data,a):a(e.data)}))}()}();');try{this.Sn=this.bn(i||e),this.dn=!0,t.isTransferableStreamSupported()&&(this.An=new ReadableStream({start:function(t){r.En=t},cancel:function(){r.En=null}}),this.Sn.postMessage(this.An,[this.An]))}catch(t){this.dn=!1}}return t.prototype.postMessage=function(t){t.WORKER_SIGNATURE=this.gn,this.En?this.En.enqueue(t):this.Sn.postMessage(t)},t.prototype.bn=function(t){var n=this,i=window.csURL||window.webkitURL,r=window.Blob,e=window.Worker,s=new r([t],{type:"application/javascript"}),o=i.createObjectURL(s);Ji.whiteListFilename(o);var u=new e(o);return u.onmessage=function(t){var i=t.data,r=i.type,e=i.endpoint;if(i.WORKER_SIGNATURE===n.gn)if("onLoad"===r){var s=t.data.response;(o=n.yn.get(e))&&o(s)}else if("onError"===r){s=t.data.response;(o=n.wn.get(e))&&o(s)}else if("onTimeout"===r){var o;(o=n.mn.get(e))&&o()}},u},t.prototype.registerOnLoadCallback=function(t,n){this.yn.set(t,n)},t.prototype.registerOnErrorCallback=function(t,n){this.wn.set(t,n)},t.prototype.registerOnTimeoutCallback=function(t,n){this.mn.set(t,n)},t.prototype.isSupported=function(){return this.dn},t.isTransferableStreamSupported=function(){try{var t=new ReadableStream;return structuredClone(t,{transfer:[t]}),!0}catch(t){return!1}},t}(),nr=function(){function t(t){var n;this.Rn={},this.On=t.endpoint,this.Tn=t.networkWorker,this.Nn=t.compressionOutputType,this.kn=t.useRetry,this.Tn.postMessage({type:"CreatePostRequest",endpoint:this.On,compressionOutputType:this.Nn,useRetry:this.kn,mandatoryParameters:null!==(n=t.mandatoryParameters)&&void 0!==n?n:[]})}return t.prototype.setQueryParams=function(t){var n=this;this.Tn.postMessage({type:"SetQueryParams",endpoint:this.On,queryParams:t}),csArray.prototype.forEach.call(Object.keys(t),(function(i){n.Rn[i]=t[i]}))},t.prototype.getQueryParams=function(){return this.Rn},t.prototype.removeQueryParams=function(t){var n=this;this.Tn.postMessage({type:"RemoveQueryParams",endpoint:this.On,queryParams:t}),t&&csArray.prototype.forEach.call(t,(function(t){delete n.Rn[t]}))},t.prototype.send=function(t,n){this.Tn.postMessage({type:"Send",endpoint:this.On,payload:t,queryParams:n})},t.prototype.abort=function(){this.Tn.postMessage({type:"Abort",endpoint:this.On})},t.prototype.onLoad=function(t){this.Tn.registerOnLoadCallback(this.On,t)},t.prototype.onError=function(t){this.Tn.registerOnErrorCallback(this.On,t)},t.prototype.setRequestHeader=function(t,n){this.Tn.postMessage({type:"SetHeader",endpoint:this.On,headerName:t,headerValue:n})},t.prototype.onTimeout=function(t,n){this.Tn.registerOnTimeoutCallback(this.On,t),this.Tn.postMessage({type:"SetTimeout",endpoint:this.On,timeout:n})},t}();!function(t){t.UNCOMPRESSED="0",t.GZIP="2"}(Zi||(Zi={}));var ir=function(t){this.onError=t},rr=function(){function t(t){var n,i=this;this.Rn={},this.Cn={},this.In=function(t){var n,r;try{for(var e=gn(t),s=e.next();!s.done;s=e.next()){var o=s.value,u=o.metadata,c=o.events;i.send(c,u)}}catch(t){n={error:t}}finally{try{s&&!s.done&&(r=e.return)&&r.call(e)}finally{if(n)throw n.error}}},this.On=t.endpoint,this.Mn=t.compressionOpts,this.Pn=t.recoveryStorage,this.mandatoryParameters=null!==(n=t.mandatoryParameters)&&void 0!==n?n:[],this.worker=!!t.worker,this.Pn&&this.Pn.recover(this.In)}return t.prototype.setQueryParams=function(t){var n=this;Object.keys(t).forEach((function(i){n.Rn[i]=t[i]}))},t.prototype.removeQueryParams=function(t){var n=this;t?t.forEach((function(t){delete n.Rn[t]})):this.Rn={}},t.prototype.send=function(t,n){var i=this,r=n||dn({},this.Rn),e=!("ct"in r),s="string"!=typeof t&&!this._n(t);"ct"in r||(this.Mn&&e?r.ct=this.Mn.compressionType:r.ct=Zi.UNCOMPRESSED);var o=s?JSON.stringify(t):t,u=Object.keys(r).map((function(t){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(r[t]))})).join("&"),c="".concat(this.On,"?").concat(u);rn(this.mandatoryParameters,(function(t){return null==r[t]}))?_t.warn("[".concat(this.worker?"WORKER":"MAIN","] All mandatory parameters are not present on ").concat(c)):this.Mn&&e&&"string"==typeof o?this.Mn.compressor(o,this.Mn.compressionOutputType,(function(t){return i.xn(c,r,t)})):this.xn(c,r,o)},t.prototype.onLoad=function(t){this.Dn=t},t.prototype.onError=function(t){this.Ln=t},t.prototype.onTimeout=function(t,n){this.Un=t,this.jn=n},t.prototype.abort=function(){this.qn&&this.qn()},t.prototype.setRequestHeader=function(t,n){this.Cn[t]=n},t.prototype.getQueryParams=function(){return this.Rn},t.prototype._n=function(t){return t&&void 0!==t.byteLength},t.prototype.xn=function(t,n,i){var r=this,e=new XMLHttpRequest,s=Object.keys(n).map((function(t){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(n[t]))})).join("&");e.open("POST",t),e.onload=function(){if(r.Pn&&r.Pn.recover(r.In),r.Dn){var t={params:n,responseText:e.responseText,status:e.status};r.Dn(t)}},e.onerror=function(){r.Pn&&r.Pn.save({key:s,metadata:n,events:i}),r.Ln&&r.Ln({params:n})},this.jn&&this.Un&&(e.timeout=this.jn,e.ontimeout=function(){r.Un()}),this.qn=function(){return e.abort()},Object.keys(this.Cn).forEach((function(t){e.setRequestHeader(t,r.Cn[t])})),e.send(i)},t}(),er=function(){function t(t){this.Hn=t,this.Tn=new tr(this.Hn)}return t.prototype.create=function(t,n,i,r,e){if(void 0===e&&(e=[]),this.Tn.isSupported()&&n)return new nr({networkWorker:this.Tn,endpoint:t,compressionOutputType:i,useRetry:!!r,mandatoryParameters:e});var s=i?{compressor:this.Hn.compress,compressionOutputType:i,compressionType:this.Hn.algorithm}:void 0;return new rr({endpoint:t,compressionOpts:s,recoveryStorage:r})},t}(),sr=function(){function t(t,n,i,r,e){this.Dt=t,this.Lt=n,this.Fn=i,this.Bn=r,this.Rt=e}return t.prototype.get=function(){return{exclusion:this.Fn.getAppliedTrackingDraw(),visitor:this.Dt.getVisitor(),session:this.Lt.getSession(),cvars:this.Bn.getCustomVariablesSession()}},t.prototype.apply=function(t){t&&(t.exclusion?this.exclude():this.include(t))},t.prototype.exclude=function(){this.Fn.exclude(this.Rt),this.Dt.removeVisitor(),this.Lt.removeSession(),this.Bn.removeCustomVariablesSession()},t.prototype.include=function(t){this.Fn.removeExclusion(),this.Dt.setVisitor(t.visitor),t.session?this.Lt.setSession(t.session):this.Lt.removeSession(),t.cvars?this.Bn.setCustomVariableSession(t.cvars):this.Bn.removeCustomVariablesSession()},t}();function or(){var t=new Error,n=t.stack?csArray.prototype.filter.call(csString.prototype.split.call(t.stack,"\n"),(function(t){return"Error"!==t&&-1===csString.prototype.indexOf.call(csString.prototype.toLowerCase.call(t),"promise ")&&-1===csString.prototype.indexOf.call(t,"[native code]")&&-1===csString.prototype.indexOf.call(t,"()")})):[];if(0===n.length)return"";var i=function(t){return t.length>0?ur(t[0]):""}(n);return""===i?"":(n=function(t,n){return csArray.prototype.filter.call(t,(function(t){return-1===csString.prototype.indexOf.call(t,n)}))}(n,i),0===n.length?"":ur(n[0]))}function ur(t){var n,i="";n=t;var r=(-1!==csString.prototype.indexOf.call(n,"@")?new csRegExp("@(.+):(\\d+):(\\d+)$"):new csRegExp("\\((.+):(\\d+):(\\d+)\\)")).exec(t);return r&&(i=r[1]),i}var cr=function(t){return t};function hr(t,n){var i=csSymbol.for(n);if(t[i])return t[i];var r=Object.getOwnPropertyDescriptor(t,n);if(!(null==r?void 0:r.writable)&&!(null==r?void 0:r.set))return _t.warn("Cannot intercept read only function '".concat(csString(n),"' of object '").concat(t,"'")),null;var e=new Set;t[i]=e;var s,o,u=t[n];if("function"==typeof u){var c=function(){var t=arguments,n=[];try{n=csArray.prototype.map.call(on(e),(function(n){return n(t)}))}catch(t){_t.error(t)}var i=u.apply(this,t);try{for(var r=0;rr)return e=s,t.apply(this,n)}}var s,o=[],u=null,c=0,h=function(){c=ai(),u=null,s=t.apply(i,o)},a=function(){for(var n=[],e=0;er?(c=a,s=t.apply(i,o),u?(window.csClearTimeout(u),u=null):o=[]):u||(u=window.csSetTimeout(h,f)),s};return a.cancel=function(){u&&(window.csClearTimeout(u),c=0,u=null,o=[])},a.flushPending=function(){u&&(window.csClearTimeout(u),h())},a}var mr,gr,Sr,br,Ar,Er=function(t){return function(n,i,r){r.value=pr(r.value,t)}};function Rr(t){var n=csEventtarget.apply(t);return n&&1===n.nodeType&&csElementshadowRoot.apply(n)&&t.composedPath?t.__csOriginalTarget||t.composedPath()[0]:n}!function(t){t[t.MUTATION_INSERT=1]="MUTATION_INSERT",t[t.MUTATION_REMOVE=2]="MUTATION_REMOVE",t[t.MUTATION_ATTRIBUTE=3]="MUTATION_ATTRIBUTE",t[t.MUTATION_CHARACTER_DATA=4]="MUTATION_CHARACTER_DATA",t[t.INITIAL_DOM=5]="INITIAL_DOM",t[t.SCROLL=6]="SCROLL",t[t.CLICK=8]="CLICK",t[t.RESIZE=9]="RESIZE",t[t.INPUT_CHECKABLE=10]="INPUT_CHECKABLE",t[t.INPUT_SELECT=11]="INPUT_SELECT",t[t.INPUT_TEXT=12]="INPUT_TEXT",t[t.HASH_CHANGE=13]="HASH_CHANGE",t[t.UNANONYMIZED_CONSENT_GRANTED=14]="UNANONYMIZED_CONSENT_GRANTED",t[t.UNANONYMIZED_CONSENT_WITHDRAWN=15]="UNANONYMIZED_CONSENT_WITHDRAWN",t[t.MOUSE_OVER=16]="MOUSE_OVER",t[t.VISIBILITY_CHANGE=17]="VISIBILITY_CHANGE",t[t.STYLESHEET_RULE_INSERT=18]="STYLESHEET_RULE_INSERT",t[t.STATIC_RESOURCE_URL=19]="STATIC_RESOURCE_URL",t[t.PERFORMANCE_TIMINGS=20]="PERFORMANCE_TIMINGS",t[t.ATTACH_SHADOW=22]="ATTACH_SHADOW",t[t.STYLESHEET_CSS_TEXT_UPDATE=23]="STYLESHEET_CSS_TEXT_UPDATE",t[t.JAVASCRIPT_ERROR=26]="JAVASCRIPT_ERROR",t[t.PAGE_EVENT=27]="PAGE_EVENT",t[t.API_ERROR=28]="API_ERROR",t[t.TEXT_VISIBILITY=29]="TEXT_VISIBILITY",t[t.MUTATION_ENCRYPTED_CHARACTER_DATA=30]="MUTATION_ENCRYPTED_CHARACTER_DATA",t[t.INPUT_ENCRYPTED_TEXT=31]="INPUT_ENCRYPTED_TEXT",t[t.KEY_DOWN=32]="KEY_DOWN",t[t.KEY_UP=33]="KEY_UP",t[t.CLIPBOARD_COMMAND=34]="CLIPBOARD_COMMAND",t[t.STYLESHEET_RULE_DELETE=37]="STYLESHEET_RULE_DELETE",t[t.USER_IDENTIFIER=38]="USER_IDENTIFIER",t[t.TOUCH_START=41]="TOUCH_START",t[t.TOUCH_MOVE=42]="TOUCH_MOVE",t[t.TOUCH_END=43]="TOUCH_END",t[t.GESTURE_RECOGNITION=44]="GESTURE_RECOGNITION",t[t.POINTER_DOWN=47]="POINTER_DOWN",t[t.POINTER_MOVE=48]="POINTER_MOVE",t[t.POINTER_UP=49]="POINTER_UP",t[t.CUSTOM_ERROR=50]="CUSTOM_ERROR",t[t.CUSTOM_ELEMENT_REGISTRATION=54]="CUSTOM_ELEMENT_REGISTRATION",t[t.REGISTER_ADOPTED_STYLE_SHEET=60]="REGISTER_ADOPTED_STYLE_SHEET",t[t.SET_ADOPTED_STYLE_SHEETS=61]="SET_ADOPTED_STYLE_SHEETS",t[t.ADOPTED_STYLESHEET_RULE_INSERT=62]="ADOPTED_STYLESHEET_RULE_INSERT",t[t.ADOPTED_STYLESHEET_RULE_DELETE=63]="ADOPTED_STYLESHEET_RULE_DELETE",t[t.SCREEN_RESIZE=65]="SCREEN_RESIZE",t[t.RESOURCE_HASHES=66]="RESOURCE_HASHES",t[t.PERFORMANCE_NAVIGATION_TIMING=67]="PERFORMANCE_NAVIGATION_TIMING",t[t.PERFORMANCE_RESOURCE_TIMING=68]="PERFORMANCE_RESOURCE_TIMING",t[t.RECORDING_INFO_EVENT=72]="RECORDING_INFO_EVENT",t[t.TEXT_REF=73]="TEXT_REF",t[t.TOUCH_CANCEL=74]="TOUCH_CANCEL",t[t.MUTATION_MOVE=75]="MUTATION_MOVE",t[t.STYLESHEET_RULE_UPDATE=76]="STYLESHEET_RULE_UPDATE",t[t.ADOPTED_STYLESHEET_RULE_UPDATE=77]="ADOPTED_STYLESHEET_RULE_UPDATE",t[t.VIDEO_PLAY=78]="VIDEO_PLAY",t[t.VIDEO_PAUSE=79]="VIDEO_PAUSE",t[t.VIDEO_SEEK=80]="VIDEO_SEEK",t[t.DEBUG=999]="DEBUG"}(mr||(mr={})),function(t){t[t.Left=0]="Left",t[t.Middle=1]="Middle",t[t.Right=2]="Right",t[t.Fourth=3]="Fourth",t[t.Fifth=4]="Fifth"}(gr||(gr={})),function(t){t[t.SWIPE=0]="SWIPE",t[t.PINCH_IN=1]="PINCH_IN",t[t.PINCH_OUT=2]="PINCH_OUT",t[t.LONG_PRESS=3]="LONG_PRESS",t[t.TAP=4]="TAP",t[t.DOUBLE_TAP=5]="DOUBLE_TAP"}(Sr||(Sr={})),function(t){t[t.SPACE=0]="SPACE",t[t.ENTER=1]="ENTER",t[t.BACKSPACE=2]="BACKSPACE",t[t.DELETE=3]="DELETE",t[t.ARROWUP=4]="ARROWUP",t[t.ARROWDOWN=5]="ARROWDOWN",t[t.ARROWLEFT=6]="ARROWLEFT",t[t.ARROWRIGHT=7]="ARROWRIGHT",t[t.CAPSLOCK=8]="CAPSLOCK",t[t.SHIFT=9]="SHIFT",t[t.TAB=10]="TAB",t[t.ALPHANUMERICAL=11]="ALPHANUMERICAL",t[t.ESCAPE=12]="ESCAPE",t[t.END=13]="END",t[t.ALT=14]="ALT",t[t.CTRL=15]="CTRL",t[t.META=16]="META"}(br||(br={})),function(t){t[t.COPY=0]="COPY",t[t.CUT=1]="CUT",t[t.PASTE=2]="PASTE"}(Ar||(Ar={}));var Or,Tr=!!window.chrome,Nr="data-cs-scroll-container";!function(t){t.isEventOnScrollContainer=function(t){return!!(k(t)&&function(t){try{if(k(csEventtarget.apply(t)))return!0}catch(t){}return!1}(t)&&I(csEventtarget.apply(t))&&null!==csEventtarget.apply(t).getAttribute(Nr))},t.getScrollContainer=function(){return window.csquerySelector[document.nodeType].call(document,"[".concat(Nr,"]"))}}(Or||(Or={}));var kr,Cr,Ir=(kr=csSymbol.for("propStore"),{getStore:function(t){return t[kr]},get:function(t,n){var i=t[kr];return null==i?void 0:i[n]},set:function(t,n,i){var r=t[kr];r||(r={},t[kr]=r),r[n]=i}});!function(t){function n(t,n){i(t,void 0,n)}function i(t,n,r){var e,s,o=!1;if(r(t,n,(function(){return o=!0})),!o){var u=t.shadowRoot;u&&i(u,t,r);var c=t.children;if(null==c?void 0:c.length)try{for(var h=p(c),a=h.next();!a.done;a=h.next()){var f=a.value;if(f&&(i(f,t,r),o))break}}catch(t){e={error:t}}finally{try{a&&!a.done&&(s=h.return)&&s.call(h)}finally{if(e)throw e.error}}}}t.setProperty=function(t,n,i){var r;t instanceof Node?Ir.set(t,n,i):(null!==(r=t.props)&&void 0!==r||(t.props={}),t.props[n]=i)},t.getProperty=function(t,n){var i;return t instanceof Node?Ir.get(t,n):null===(i=t.props)||void 0===i?void 0:i[n]},t.getProperties=function(t){return t instanceof Node?Ir.getStore(t):t.props},t.findDescendant=function(t,i){var r=null;return n(t,(function(t,n,e){return i(t)&&(r=t)&&!!e()})),r},t.traverse=n}(Cr||(Cr={}));var Mr=1,Pr=csSymbol("nodeIdentifier");function _r(t){var n=Cr.getProperty(t,Pr);return null!=n?n:(Cr.setProperty(t,Pr,Mr++),Cr.getProperty(t,Pr))}var xr,Dr;function Lr(t){if(xr||(xr=document.createElement("div")),!(!!t&&R(t)))return _t.warn("isValidSelector: invalid selector provided '".concat(t,"'")),!1;try{return nt.call(xr,t),!0}catch(n){return _t.warn("isValidSelector: invalid selector provided '".concat(t,"'")),!1}}function Ur(t,n){if(it)return it.call(t,n);var i=t;do{if(nt.call(i,n))return i;i=null==i?void 0:i.parentElement}while(null!==i&&1===i.nodeType);return null}!function(t){var n;!function(t){t[t.NotMasked=0]="NotMasked",t[t.Parent=1]="Parent",t[t.Child=2]="Child"}(n=t.MaskedElementState||(t.MaskedElementState={})),t.maskedProp="masked",t.maskedAttributeProp="maskedAttribute",t.isSelectorUserInput=function(t){return!!(T(t)&&"Attributes"in t&&"PIISelectors"in t)&&(t.Attributes instanceof Array&&t.PIISelectors instanceof Array)},t.sanitizeSelectorUserInput=function(t){return T(t)&&null!==t?("Attributes"in t||(t.Attributes=[]),"PIISelectors"in t||(t.PIISelectors=[]),t):(_t.implementation("setPIISelectors called with invalid input of type ".concat(typeof t,": ").concat(csJSON.stringify(t))),{Attributes:[],PIISelectors:[]})},t.getMaskedElementDetails=function(i){var r;return null!==(r=Cr.getProperty(i,t.maskedProp))&&void 0!==r?r:{state:n.NotMasked}},t.getMaskedAttributeDetails=function(n){var i;return null!==(i=Cr.getProperty(n,t.maskedAttributeProp))&&void 0!==i?i:{attributes:[]}},t.isMaskedElement=function(i){var r=Cr.getProperty(i,t.maskedProp);return(null==r?void 0:r.state)===n.Parent},t.isMaskedElementChild=function(i){var r=Cr.getProperty(i,t.maskedProp);return(null==r?void 0:r.state)===n.Child},t.isMaskedAttribute=function(n,i){var r=Cr.getProperty(n,t.maskedAttributeProp);return(null==(null==r?void 0:r.attributes)?void 0:csArray.prototype.indexOf.call(null==r?void 0:r.attributes,i))>-1},t.setMaskedElementProperty=function(i,r){Cr.setProperty(i,t.maskedProp,r),r.state===n.Parent&&Fn.pii.maskedParentElementsCount.increment()},t.unsetMaskedElementProperty=function(n){Cr.setProperty(n,t.maskedProp,void 0)},t.setMaskedAttributeProperty=function(n,i){Cr.setProperty(n,t.maskedAttributeProp,i)},t.getComputedSelectorSettings=function(t,n){var i,r=csArray.prototype.filter.call(t.PIISelectors,(function(t){return Lr(t)}));n.elementSelector.length>0&&(i=csArray.prototype.push).call.apply(i,g([r],m(csString.prototype.split.call(n.elementSelector,",")),!1));var e,s,o=function(t){var n,i,r,e;if(t.length<=1)return t;var s=[];try{for(var o=p(t),u=o.next();!u.done;u=o.next()){var c=u.value,h=csString.prototype.split.call(c,",");try{for(var a=(r=void 0,p(h)),f=a.next();!f.done;f=a.next()){var l=f.value;-1===csArray.prototype.indexOf.call(s,l)&&csArray.prototype.push.call(s,l)}}catch(t){r={error:t}}finally{try{f&&!f.done&&(e=a.return)&&e.call(a)}finally{if(r)throw r.error}}}}catch(t){n={error:t}}finally{try{u&&!u.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s}(g([],m(r),!1)),u={elementSelector:csArray.prototype.join.call(o,","),attrSelector:n.attrSelector,attrSelectors:n.attrSelectors};return csArray.prototype.forEach.call(t.Attributes,(function(t){(null==t?void 0:t.attrName)&&(null==t?void 0:t.selector)&&Lr(t.selector)&&!function(t,n){return csArray.prototype.some.call(t,(function(t){return t.selector===n.selector&&t.attrName===n.attrName}))}(u.attrSelectors,t)&&csArray.prototype.push.call(u.attrSelectors,t)})),u.attrSelector=(e=u.attrSelectors,s="",csArray.prototype.forEach.call(e,(function(t){var n=csString.prototype.split.call(t.selector,",");csArray.prototype.forEach.call(n,(function(t){Lr(t)&&(s&&(s+=","),s+=t)}))})),s),u}}(Dr||(Dr={}));var jr=function(){function t(){var t=this;this.eventType="user",this.ii=[],this.ei=[{type:"pointerup",listener:function(n){return t.pointerUpListener(n)},boundElement:document},{type:"pointermove",listener:function(n){return t.pointerMoveListener(n)},boundElement:document},{type:"pointerdown",listener:function(n){return t.pointerDownListener(n)},boundElement:document}],this.si=[{type:"touchstart",listener:function(n){return t.touchStartListener(n)},boundElement:document},{type:"touchmove",listener:function(n){return t.touchMoveListener(n)},boundElement:document},{type:"touchend",listener:function(n){return t.touchEndCancelListener(n)},boundElement:document},{type:"touchcancel",listener:function(n){return t.touchEndCancelListener(n)},boundElement:document}],this.oi=[{type:"click",listener:function(n){return t.clickListener(n)},boundElement:document},{type:"keyup",listener:function(n){return t.keyUpListener(n)},boundElement:document},{type:"keydown",listener:function(n){return t.keyDownListener(n)},boundElement:document},{type:"copy",listener:function(n){return t.copyListener(n)},boundElement:document},{type:"cut",listener:function(n){return t.cutListener(n)},boundElement:document},{type:"paste",listener:function(n){return t.pasteListener(n)},boundElement:document},{type:"scroll",listener:function(n){return t.scrollListener(csEventtarget.apply(n))},boundElement:document},{type:"mouseover",listener:function(n){return t.mouseOverListener(n)},boundElement:document}],this.ui=[{type:"scroll",listener:function(n){return t.scrollListener(csEventtarget.apply(n))}}];var n=function(t){if(!R(t))return null;var n=/iP(ad|hone|od).+Version\/(\d+)\..*Safari/i.exec(t);return n?Number(n[2]):null}(window.navigator.userAgent);(null===n||n&&n>=16)&&csArray.prototype.push.call(this.ui,{type:"mouseover",listener:function(n){return t.mouseOverListener(n)}}),this.ci=new lr((function(n,i){switch(i){case"initial":case"added":t.hi(n);break;case"removed":t.ai(n)}}))}return t.prototype.init=function(){this.fi(),this.li(),this.yi()},t.prototype.onEvent=function(t){csArray.prototype.push.call(this.ii,t)},t.prototype.wi=function(t,n){void 0===n&&(n=!1),csArray.prototype.forEach.call(this.ii,(function(i){return i(t,n)}))},t.prototype.start=function(){this.pi(),this.hi(document),this.ci.observe()},t.prototype.stop=function(){this.ai(document),this.ci.disconnect()},t.prototype.li=function(){var t;this.mi()&&(t=csArray.prototype.push).call.apply(t,bn([this.oi],Sn(this.ei),!1))},t.prototype.fi=function(){var t;this.gi()&&(t=csArray.prototype.push).call.apply(t,bn([this.oi],Sn(this.si),!1))},t.prototype.hi=function(t){G(t)?csArray.prototype.forEach.call(this.oi,(function(t){return dr(t)})):csArray.prototype.forEach.call(this.ui,(function(n){dr({type:n.type,listener:n.listener,boundElement:t})}))},t.prototype.ai=function(t){G(t)?csArray.prototype.forEach.call(this.oi,(function(t){return yr(t)})):csArray.prototype.forEach.call(this.ui,(function(n){yr({type:n.type,listener:n.listener,boundElement:t})}))},t.prototype.mi=function(){return"PointerEvent"in window&&"function"==typeof window.PointerEvent},t.prototype.gi=function(){return"TouchEvent"in window&&"function"==typeof window.TouchEvent},t.prototype.pi=function(){this.Si()},t.prototype.Si=function(){var t=Or.getScrollContainer()||document,n=_r(t),i=this.bi(t);if(0!==i.top||0!==i.left){var r={type:mr.SCROLL,args:[n,i.left,i.top],date:ai()};this.wi(r,!0)}},t.prototype.bi=function(t){return t===document?{top:window.pageYOffset,left:window.pageXOffset}:{top:t.scrollTop,left:t.scrollLeft}},t.prototype.scrollListener=function(t){if(!Dr.isMaskedElement(t)&&!Dr.isMaskedElementChild(t)){var n=_r(t),i=this.bi(t),r={type:mr.SCROLL,args:[n,i.left,i.top],date:ai()};this.wi(r)}},t.prototype.mouseOverListener=function(t){if(!Dr.isMaskedElementChild(t.target)){var n=_r(t.target),i={type:mr.MOUSE_OVER,args:[n],date:ai()};this.wi(i)}},t.prototype.clickListener=function(t){var n=Rr(t);if(!Dr.isMaskedElementChild(n)){var i=_r(n),r={type:mr.CLICK,args:[i],date:ai()};this.wi(r)}},t.prototype.keyUpListener=function(t){var n=Rr(t);if(!Dr.isMaskedElementChild(n)){var i=_r(n),r=this.Ai[t.key];if(void 0!==r){var e={type:mr.KEY_UP,args:[i,r],date:ai()};this.wi(e)}}},t.prototype.keyDownListener=function(t){var n=Rr(t);if(!Dr.isMaskedElementChild(n)){var i=_r(n),r=this.Ai[t.key];if(void 0!==r){var e={type:mr.KEY_DOWN,args:[i,r],date:ai()};this.wi(e)}}},t.prototype.copyListener=function(t){var n=Rr(t);if(!Dr.isMaskedElementChild(n)){var i=_r(n),r={type:mr.CLIPBOARD_COMMAND,args:[i,Ar.COPY],date:ai()};this.wi(r)}},t.prototype.cutListener=function(t){var n=Rr(t);if(!Dr.isMaskedElementChild(n)){var i=_r(n),r={type:mr.CLIPBOARD_COMMAND,args:[i,Ar.CUT],date:ai()};this.wi(r)}},t.prototype.pasteListener=function(t){var n=Rr(t);if(!Dr.isMaskedElementChild(n)){var i=_r(n),r={type:mr.CLIPBOARD_COMMAND,args:[i,Ar.PASTE],date:ai()};this.wi(r)}},t.prototype.pointerUpListener=function(t){var n=Rr(t);if(!Dr.isMaskedElementChild(n)){var i=_r(n),r={type:mr.POINTER_UP,args:[t.pointerId,t.pointerType,wr(t.clientX,1),wr(t.clientY,1),i,t.button],date:ai()};this.wi(r)}},t.prototype.pointerMoveListener=function(t){var n={type:mr.POINTER_MOVE,args:[t.pointerId,t.pointerType,wr(t.clientX,1),wr(t.clientY,1)],date:ai()};this.wi(n)},t.prototype.pointerDownListener=function(t){var n=Rr(t);if(!Dr.isMaskedElementChild(n)){var i=_r(n),r={type:mr.POINTER_DOWN,args:[t.pointerId,t.pointerType,wr(t.clientX,1),wr(t.clientY,1),i,t.button,{pageX:wr(t.pageX,1),pageY:wr(t.pageY,1)}],date:ai()};this.wi(r)}},t.prototype.touchStartListener=function(t){if(t.changedTouches)for(var n=t.changedTouches,i=0;ithis.Ei},t.prototype.reset=function(){this.Ri=0},t}(),Hr=function(){function t(t,n){void 0===t&&(t=[]),void 0===n&&(n=2048e3),this.Oi=t,this.Ti=new qr(n)}return t.prototype.addEvent=function(t){this.Ti.addString(kn(t)),csArray.prototype.push.call(this.Oi,t)},t.prototype.addEventByTimestamp=function(t){for(var n=0;n=t.date)break}csArray.prototype.splice.call(this.Oi,n,0,t)},t.prototype.eventsCount=function(){return this.Oi.length},t.prototype.clearEvents=function(){this.Ti.reset(),this.Oi=[]},t.prototype.isFull=function(){return this.eventsCount()>=200},t.prototype.isThresholdReached=function(){return this.Ti.isThresholdReached()},t.prototype.getEvents=function(){return this.Oi},t.prototype.extractEvents=function(){for(var t=[],n=0;n0&&this.count--},n.prototype.clear=function(){this.count=0},n.prototype.getData=function(){return{count:this.count}},n}(Qr),ne=(function(t){function n(n,i){var r=t.call(this,n,"Value: {count}")||this;return r.Mi=i,r}wt(n,t),n.prototype.getData=function(){return{count:this.Mi()}}}(Qr),function(t){function n(n){var i=t.call(this,n,"Living intances: {instances}
Added: {added}
Removed: {removed}")||this;return i.added=0,i.removed=0,i}return wt(n,t),Object.defineProperty(n.prototype,"value",{get:function(){return this.added-this.removed},enumerable:!1,configurable:!0}),n.prototype.increase=function(){this.added++},n.prototype.decrease=function(){this.removed++},n.prototype.getData=function(){return{added:this.added,removed:this.removed,instances:this.added-this.removed}},n}(Qr)),ie=function(t){function n(n){var i=t.call(this,n,"Count: {count}
Average: {average}ms
Total: {total}ms")||this;return i.total=0,i.count=0,i}return wt(n,t),Object.defineProperty(n.prototype,"average",{get:function(){return this.count?this.total/this.count:0},enumerable:!1,configurable:!0}),n.prototype.measure=function(t){var n=fi();t(),this.count++,this.total+=fi()-n},n.prototype.asyncMeasure=function(){var t=this,n=fi();return function(){t.count++,t.total+=fi()-n}},n.prototype.getData=function(){return{total:this.total,count:this.count,average:this.average}},n}(Qr),re={general:{category:"General",nbEvents:new te("Nb of Events"),pendingTasks:new te("Pending Tasks"),pendingEvents:new te("Pending Tasks"),nbOfMutationObservers:new ne("Nb of Mutation Observers")},mutations:{category:"Mutations",initialDOM:new ie("Initial DOM"),pendingMutations:new te("Nb of Mutations scheduled"),serializedMutations:new ie("Serialized Mutations"),count:new te("Mutation Count"),elementMutationObserved:new ne("Nb of Elements Observed by MutationObserver"),unobserveGarbageCollection:new ie("Unobserve GC")},visibilityObserver:{category:"Visibility Observer",hiddenElements:new te("Nb of Hidden Elements "),nbElements:new te("Nb of Elements")}},ee=null;function se(t){return wi(t,"data:")}function oe(t){return wi(t,"#")}function ue(t){return!!t&&pi(t,".css")}function ce(t){var n=csString.prototype.trim.call(t);if(""===t)return[];var i,r=Et((i=n,csString.prototype.split.call(i,/\s(.+)/)),2),e=r[0],s=r[1];return s?(pi(e,",")||(s=function(t){return csString.prototype.split.call(t,/,(.+)/)[1]||""}(s)),Rt([he(e)],Et(ce(s)),!1)):[he(e)]}function he(t){return csString.prototype.split.call(t,/,$/)[0]}Wr=function(){var t=function(t){return Object.keys(t)},n=csArray.prototype.map.call(t(re),(function(t){return re[t]})),i=csArray.prototype.map.call(n,(function(n){return csArray.prototype.filter.call(csArray.prototype.map.call(t(n),(function(t){return n[t]})),(function(t){return t instanceof Qr}))})),r=csArray.prototype.map.call(n,(function(t,n){return{category:t.category,performanceCounters:csArray.prototype.map.call(i[n],(function(t){return{name:t.name,format:t.format}}))}}));Yr({type:"UXA_PERFORMANCE_COUNTER_SCHEMA",event:r}),ee||(ee=csSetInterval((function(){var t=Qt(Zt(i,(function(t){return Zt(t,(function(t){return t.getData()}))})),(function(t){return t}));Yr({type:"UXA_PERFORMANCE_COUNTER",event:t})}),1e3))},r||(null!==Vr&&csSetTimeout(Wr),csSetTimeout((function(){return csArray.prototype.push.call(Jr,Wr)}))),function(t){t.QUOTA_REACHED="X",t.RECORDING_RULES_TARGETING="8",t.ANALYTICS_ONLY_RULES_TARGETING="9",t.ANALYTICS_ONLY="0",t.RECORDING_GLOBAL_SAMPLING="5",t.RECORDING_TEMPORARILY="T",t.RECORDING_URL_SAMPLING="6",t.RECORDING_ETR_SAMPLING="7",t.RECORDING_BLOCKED_BY_CONSENT_NOT_EXPRESSED="B",t.RECORDING_BLOCKED_BY_CONSENT_WITHDRAWN="W"}($r||($r={})),function(t){t.ETR_OFF="0",t.ETR_ON="1"}(Xr||(Xr={})),function(t){t.ETR_LEGACY="0",t.ETR_SESSION="1",t.ETR_PAGE="2"}(Kr||(Kr={})),function(t){t.ETR_DISABLED="0",t.ETR_PENDING="1",t.ETR_SAVED_PAGE="2",t.ETR_SAVED_SESSION="3",t.ETR_NOT_SAVED_SESSION="9"}(Zr||(Zr={}));var ae=/(@import\s*("([^"]+)"|'([^']+)'))|(url\s*\(\s*((("([^"\]]+)"|'([^'\]]+)')\s*)|([^)\]]+))\))/g;function fe(t,n){var i=csString.prototype.replace.call(t,ae,(function(){for(var t=[],i=0;i1114111?"�":csString.fromCodePoint(e)}))),c=s?"@import ":"",h=n(u)||u;return"".concat(c,"url(").concat(function(t){if(-1===csString.prototype.indexOf.call(t,'"'))return'"'.concat(t,'"');if(-1===csString.prototype.indexOf.call(t,"'"))return"'".concat(t,"'");return t}(h),")")}));return i}function le(t){var n=new Set;return fe(t,(function(t){var i,r;return n.add(null!==(r=null===(i=csString.prototype.match.call(t,/^["|'](.*)?["|']$/))||void 0===i?void 0:i[1])&&void 0!==r?r:t),t})),on(n)}var ve=new Map,de=!r&&document.implementation.createHTMLDocument("");function ye(t){if(!j(t))return null;var n=we(t);if(null===n||0===n.length)return null;var i="";if(P(t.textContent))tn(n,(function(t){return i+=t.cssText}));else{var r=function(t){if(!de)return 0;var n=ve.get(t.textContent);if(n)return n;var i=t.cloneNode(!0);i.textContent=t.textContent,de.head.appendChild(i);var r=we(i);return n=r?r.length:0,ve.set(t.textContent,n),de.head.removeChild(i),n}(t);if(r===n.length)return null;if(r>n.length)return null;for(var e=new csArray(n.length-r),s=r,o=0;s0&&J(t))for(var i=0;i= 1");var n=0,i=performance.now();return{started:i,elapsed:function(){return++n%t==0&&(i=performance.now()),i-this.started}}}(100);!o.isEmpty;){if(t.async&&f.elapsed()>=t.workTime)return void(--h<=0&&csSetTimeout(a));var l=o.pop(),v=l.node,d=null!==(r=l.serializedNode.children)&&void 0!==r?r:[];if(!F(v))for(var y=0,w=csNodefirstChild.apply(v);w;w=csNodenextSibling.apply(w))if(!is(w)){var p=ss(w);t.async&&t.initialDOM&&Cr.setProperty(w,ts,!0),d[y++]=p,u(w,p)}}t.async?csSetTimeout((function(){return s(e)})):i(e)}));if(t.async)for(var f=0;f0))return[3,17];if(o=csArray.prototype.pop.call(s),!i&&null!==o.resourceAbsolutePath&&!se(o.resourceAbsolutePath))return r.set(o.resourceAbsolutePath,null),[3,1];if(void 0!==r.get(o.resourceAbsolutePath))return[3,1];w.label=2;case 2:return w.trys.push([2,15,,16]),null===o.resourceRawPath||csString.prototype.indexOf.call(o.resourceRawPath,".css")>0?o.data?[3,5]:[4,fetch(o.resourceAbsolutePath)]:[3,8];case 3:return m=w.sent(),u=o,[4,m.text()];case 4:u.data=w.sent(),w.label=5;case 5:o.nestedResources||(o.nestedResources=le(o.data)),c=!1,h=!1,a=function(n){var i=se(n)?n:o.resourceAbsolutePath?Ci(n,o.resourceAbsolutePath):ki(n),e=r.get(i);if(void 0!==e){if(null!==e){var u=t.wr(e,n);o.data=as.stringReplaceAll(o.data,n,u)}return"continue"}var a=void 0!==nn(s,(function(t){return t.resourceAbsolutePath===i}));a||(c=!0,h||(csArray.prototype.push.call(s,o),h=!0),csArray.prototype.push.call(s,{resourceRawPath:n,resourceAbsolutePath:i}))};try{for(b=void 0,f=p(o.nestedResources),l=f.next();!l.done;l=f.next())v=l.value,a(v)}catch(t){b={error:t}}finally{try{l&&!l.done&&(A=f.return)&&A.call(f)}finally{if(b)throw b.error}}return c?[3,7]:[4,t.pr(o.data)];case 6:d=w.sent(),r.set(o.resourceAbsolutePath,{hash:d.hash,data:d.data}),w.label=7;case 7:return[3,14];case 8:return y=void 0,se(o.resourceAbsolutePath)?[3,11]:[4,fetch(o.resourceAbsolutePath)];case 9:return[4,(m=w.sent()).blob()];case 10:return y=w.sent(),[3,12];case 11:if(!(g=oi(o.resourceAbsolutePath)))return r.set(o.resourceAbsolutePath,null),[3,1];y=g,w.label=12;case 12:return[4,t.lr(y)];case 13:S=w.sent(),r.set(o.resourceAbsolutePath,{hash:S,data:y}),w.label=14;case 14:return[3,16];case 15:return w.sent(),r.set(o.resourceAbsolutePath,null),[3,16];case 16:return[3,1];case 17:return[2,r]}}))}))},t.wr=function(n,i){var r="cs://resources/".concat(n.hash);return se(i)||(r+="?".concat(t.mr,"=").concat(i)),r},t.pr=function(n){return y(this,void 0,void 0,(function(){var i,r,e;return w(this,(function(s){switch(s.label){case 0:return[4,(i=new Blob([n],{type:"text/css"})).arrayBuffer()];case 1:return r=s.sent(),[4,crypto.subtle.digest(t.yr,r)];case 2:return e=s.sent(),[2,{data:i,hash:si(e)}]}}))}))},t.yr="SHA-256",t.mr="original-resource-name",t}(),ds=function(t){function n(){var n=t.call(this)||this;return n.gr="cssrm://",n.Sr=0,n.br=!1,n}return l(n,t),n.prototype.isListening=function(t){return!!n.isSupported()&&(!!os.isDOMEvent(t)&&("initialDOM"===t.domEvent||"nodesAdded"===t.domEvent||"attributeChanged"===t.domEvent||"characterDataChanged"===t.domEvent))},n.prototype.processEvent=function(t){switch(t.domEvent){case"initialDOM":case"nodesAdded":this.Ar(t);break;case"attributeChanged":this.Er(t);break;case"characterDataChanged":this.Rr(t)}return t},n.prototype.disableOnlineAssets=function(){this.br=!1},n.prototype.enableOnlineAssets=function(){this.br=!0},n.prototype.isOnlineAssetsActivated=function(){return this.br},n.prototype.Ar=function(t){var n,i,r=this,e="initialDOM"===t.domEvent?[t.initialDOM]:t.nodes;try{for(var s=p(e),o=s.next();!o.done;o=s.next()){var u=o.value;Cr.traverse(u,(function(t,n){if(3===t.nodeType&&n)r.Or(t,n.localName);else if(Se.isElement(t)){var i=nn(t.attributes,(function(t){return"style"===t.name}));if(i&&(i.value=r.Tr(i.value)),r.Nr(t)||r.kr(t,n)){var e=nn(t.attributes,(function(t){return"src"===t.name}));e&&e.value&&(e.value=r.Cr(e.value));var s=nn(t.attributes,(function(t){return"srcset"===t.name}));if(s)return void(s.value=r.Ir(s.value))}if(r.Mr(t)&&r.br){var o=nn(t.attributes,(function(t){return"href"===t.name}));if(!o||!o.value)return;r.Sr++,r.Pr(ki(o.value),r.Sr,!0),r._r(t,o,r.Sr)}}}))}}catch(t){n={error:t}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}},n.prototype._r=function(t,n,i){csArray.prototype.push.call(t.attributes,{name:"data-cs-original-href",namespaceURI:"",value:n.value}),n.value=this.gr+i},n.prototype.Or=function(t,n){if(t&&"style"===n){var i=this.Tr(t.data);null!==i&&(t.data=i)}},n.prototype.Rr=function(t){if("style"===t.parentLocalName&&t.newValue){var n=this.Tr(t.newValue);null!==n&&(t.newValue=n)}},n.prototype.Er=function(t){if(t.newValue&&t.newValue!==t.oldValue){var n="src"===t.attribute,i="srcset"===t.attribute;if("style"===t.attribute)t.newValue=this.Tr(t.newValue);else if(n||i){var r="img"===t.localName,e="source"===t.localName&&t.parentLocalName&&"picture"===t.parentLocalName;(r||e)&&(n&&(t.newValue=this.Cr(t.newValue)),i&&(t.newValue=this.Ir(t.newValue)))}}},n.prototype.Cr=function(t){return se(t)||this.br?(this.Sr++,this.Pr(t,this.Sr,!1,ai()),this.gr+this.Sr):t},n.prototype.Ir=function(t){var n,i;if(!this.br)return t;var r=t,e=ce(t),s=ai();try{for(var o=p(e),u=o.next();!u.done;u=o.next()){var c=u.value;this.Sr++,this.Pr(ki(c),this.Sr,!1,s),r=csString.prototype.replace.call(r,c,this.gr+this.Sr)}}catch(t){n={error:t}}finally{try{u&&!u.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return r},n.prototype.Tr=function(t){var n,i,r=le(t),e=t,s=ai();try{for(var o=p(r),u=o.next();!u.done;u=o.next()){var c=u.value,h=se(c);if((h||this.br)&&!this.Dr(c)){this.Sr++,e=csString.prototype.replace.call(e,c,this.gr+this.Sr);var a=ue(c);h?this.Pr(c,this.Sr,!1,s):this.br&&(a?this.Pr(c,this.Sr,!0,s):this.Pr(ki(c),this.Sr,!1,s))}}}catch(t){n={error:t}}finally{try{u&&!u.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return e},n.prototype.Pr=function(t,n,i,r){var e=this;void 0===r&&(r=ai());var s=i?vs.toCSSStaticResourceEvent:vs.toStaticResourceEvent,o=new be((function(i){return y(e,void 0,void 0,(function(){var e,o;return w(this,(function(u){switch(u.label){case 0:return u.trys.push([0,2,,3]),[4,s(t,n,r,this.br)];case 1:return e=u.sent(),i(e||{type:"warning",message:"Failed to process static resource: ".concat(t)}),[3,3];case 2:return o=u.sent(),i({type:"warning",message:o}),[3,3];case 3:return[2]}}))}))}));this.emitEvent(o)},n.prototype.Nr=function(t){return"img"===t.localName},n.prototype.kr=function(t,n){return"source"===t.localName&&!!n&&"picture"===n.localName},n.prototype.Mr=function(t){return"link"===t.localName&&csArray.prototype.some.call(t.attributes,(function(t){return"rel"===t.name&&"stylesheet"===t.value}))},n.isSupported=function(){return vi()&&di()&&!!csArray.from},n.prototype.Dr=function(t){return 0===csString.prototype.replace.call(t,/['"]+/g,"").length},d([Xt("StaticResourceManagerProcessor.processEvent")],n.prototype,"processEvent",null),n}(fs);!function(t){t.Visible="visible",t.Hidden="hidden",t.Blur="blur",t.PagehideVisible="pagehideVisible",t.PagehideHidden="pagehideHidden",t.ExitPageByNavigate="exitPageByNavigate"}(ls||(ls={}));var ys,ws=function(){function t(){var t=this;this.Lr=!1,this.Ur=function(n){try{switch(n.type){case"visibilitychange":return"hidden"===document.visibilityState?t.jr(ls.Hidden):t.jr(ls.Visible);case"pagehide":return"hidden"===document.visibilityState?t.jr(ls.PagehideHidden):t.jr(ls.PagehideVisible);case"blur":return t.jr(ls.Blur);case"navigate":return t.qr(n)?t.jr(ls.ExitPageByNavigate):void 0;default:return}}catch(t){}}}return t.prototype.start=function(){this.Lr||(this.Lr=!0,this.Hr(),this.Fr(),this.Br(),yi()&&this.zr())},t.prototype.stop=function(){this.Lr&&(this.Lr=!1,this.Vr(),this.Gr(),this.Jr(),yi()&&this.Yr())},t.prototype.onEvent=function(t){this.jr=t},t.prototype.zr=function(){window.navigation.addEventListener("navigate",this.Ur)},t.prototype.Yr=function(){window.navigation.removeEventListener("navigate",this.Ur)},t.prototype.Hr=function(){document.addEventListener("visibilitychange",this.Ur)},t.prototype.Vr=function(){document.removeEventListener("visibilitychange",this.Ur)},t.prototype.Fr=function(){window.addEventListener("pagehide",this.Ur)},t.prototype.Gr=function(){window.removeEventListener("pagehide",this.Ur)},t.prototype.Br=function(){window.addEventListener("blur",this.Ur)},t.prototype.Jr=function(){window.removeEventListener("blur",this.Ur)},t.prototype.qr=function(t){return t instanceof NavigateEvent!=!1&&(!t.hashChange&&!t.downloadRequest&&!t.formData)},t}();!function(t){t[t.Active=0]="Active",t[t.Paused=1]="Paused",t[t.Stopped=2]="Stopped"}(ys||(ys={}));var ps,ms=function(){function t(t,n,i){void 0===i&&(i=[]);this.Wr=t,this.$r=n,this.Xr=i,this.Kr=null,this.Zr=ys.Active,this.Qr=[]}return t.prototype.reset=function(){this.Kr=null,this.Qr=[],this.Zr=ys.Active},t.prototype.disconnect=function(){this.Zr=ys.Stopped},t.prototype.te=function(){var n=this;this.$r(ys.Paused),this.Zr=ys.Paused,csSetTimeout((function(){n.Zr===ys.Paused&&n.ne()}),t.STOP_TIMEOUT)},t.prototype.ie=function(){this.$r(ys.Active),this.Zr=ys.Active,tn(this.Qr,this.Wr),this.Qr=[]},t.prototype.ne=function(){this.Qr=[],this.$r(ys.Stopped),this.Zr=ys.Stopped},t.prototype.pushEvent=function(t,n){if(n.isUserEvent&&(this.Kr=t.date,this.Zr!==ys.Active))return this.ie(),void this.Wr(t);if(this.re(t))this.Wr(t);else switch(this.Zr){case ys.Active:if(this.ee(t,n))return this.te(),void csArray.prototype.push.call(this.Qr,t);this.Wr(t);break;case ys.Paused:csArray.prototype.push.call(this.Qr,t);case ys.Stopped:}},t.prototype.ee=function(n,i){return!i.isUserEvent&&null!==this.Kr&&n.date-this.Kr>t.INACTIVITY_TIMEOUT},t.prototype.re=function(t){return csArray.prototype.indexOf.call(this.Xr,t.type)>-1},t.INACTIVITY_TIMEOUT=5e3,t.STOP_TIMEOUT=5e3,t}(),gs=function(t){function n(n,i,r,e,s,o,u,c,h,a,f,l,v,d,y,w,p,m,g,S){void 0===y&&(y=[]);var b=t.call(this)||this;return b.Rt=n,b.se=i,b.oe=r,b.ue=e,b.ce=s,b.Lt=o,b.he=u,b.ae=c,b.fe=h,b.le=a,b.ve=f,b.de=l,b.ye=v,b.we=d,b.pe=y,b.ge=w,b.Se=p,b.be=m,b.Ae=g,b.Ee=S,b.Re=0,b.Oe=new Br,b.Te={allowFromQuotaService:!0,allowFromSerialization:!0},b.Ne=pr((function(){b.se.eventsCount()>0&&b.ke()}),2e3),b.Ce=function(t){return b.processBrowserEvent(t)},b.Ie=function(t){return b.Me(t)},b.Pe=0,b._e=0,b.xe=new ws,b.De=!1,b.Le=51200,b.Ue=!1,b.je=!1,b.qe=[],b.He=new ms((function(t){return b.Fe(t)}),(function(t){switch(t){case ys.Active:b.Be();break;case ys.Stopped:b.ze()}}),[mr.RESOURCE_HASHES,mr.TEXT_VISIBILITY]),b.Ve=function(t){b.de.removeBatchInProgress("".concat(t.params.sn,".").concat(t.params.pn,".").concat(t.params.ri))},b}return vn(n,t),n.prototype.init=function(){this.Ge(),this.ve.onLoad(this.Ve),this.ve.onError(this.Ve)},n.prototype.Be=function(){csArray.prototype.forEach.call(this.ge,(function(t){return t.start()}))},n.prototype.ze=function(){csArray.prototype.forEach.call(this.ge,(function(t){return t.stopForInactivity()}))},n.prototype.Ge=function(){var t,n,i,r=this;this.we.onEvent(this.Ce,this.Ie),null===(t=this.le)||void 0===t||t.onInputNodeToEncrypt(this.Ie),null===(n=this.le)||void 0===n||n.onApiErrorToEncrypt((function(t){r.Je(t)})),null===(i=this.le)||void 0===i||i.onUserIdentifierToEncrypt(this.Ce),this.xe.onEvent((function(t){if(csSetTimeout((function(){return r.Ye("page-state",t)})),t!==ls.Visible){if(t===ls.Blur)return r.We();if(!r.De)return r.De=!0,csSetTimeout((function(){r.De=!1})),t===ls.Hidden?r.We():r.$e()}}))},n.prototype.isRecording=function(){return this.Lt.hasValidSession()&&this.isStarted},n.prototype.We=function(){var t=this;if(this.canSendEvents()){this.we.flush(),this.de.saveBatchesInProgress(),tn(this.pe,(function(n){var i,r;return tn(null!==(r=null===(i=n.getPendingEvents)||void 0===i?void 0:i.call(n))&&void 0!==r?r:[],(function(n){return t.se.addEvent(n)}))}));var n=this.se.getEvents();if(0!==n.length){this.Ye("pending-events",this.we.pendingEvents);var i=this.ve.getQueryParams();i.rst=this.getRecordingStartTimestamp(),i.let=this.getRecordingLastEventTimestamp();var r=this.ue.getCurrentIndex();i.ri=r.toString(),this.ye.removeQueryParams(),this.ye.setQueryParams(i),this._e=n[n.length-1].date;var e=this.se.stringifyEvents();if(e.length>this.Le){var s=this.Xe();if(s.length>0){var o=kn(s);this.ye.send(o)||this.de.save({key:"".concat(i.sn,".").concat(i.pn,".").concat(i.ri,".last"),metadata:dn(dn({},i),{datatype:"json"}),events:o}),this.ue.increment()}if(this.se.eventsCount()>0){i.ri=this.ue.getCurrentIndex().toString();var u=this.se.stringifyEvents();this.de.save({key:"".concat(i.sn,".").concat(i.pn,".").concat(i.ri,".last"),metadata:dn(dn({},i),{datatype:"json"}),events:u}),this.ue.increment()}}else{this.ye.send(e)||this.de.save({key:"".concat(i.sn,".").concat(i.pn,".").concat(i.ri,".last"),metadata:dn(dn({},i),{datatype:"json"}),events:e}),this.ue.increment()}this.ye.removeQueryParams(),this.se.clearEvents()}}},n.prototype.$e=function(){var t=this;if(this.canSendEvents()){this.we.flush();var n=this.ve.getQueryParams();this.de.saveBatchesInProgress(),n.rst=this.getRecordingStartTimestamp(),delete n.ri,n.hlm="true",this.ye.removeQueryParams(),tn(this.pe,(function(n){var i,r;return tn(null!==(r=null===(i=n.getPendingEvents)||void 0===i?void 0:i.call(n))&&void 0!==r?r:[],(function(n){return t.se.addEvent(n)}))}));var i=this.se.getEvents();if(0===i.length)return delete n.let,delete n.rst,this.ye.setQueryParams(n),this.ye.send(),void this.ye.removeQueryParams();this.Ye("pending-events",this.we.pendingEvents),this._e=i[i.length-1].date,n.let=this.getRecordingLastEventTimestamp(),this.ye.setQueryParams(n);var r=this.se.stringifyEvents();if(r.length>this.Le){var e=this.Xe();if(e.length>0){var s=kn(e);this.ye.send(s)||this.de.save({key:"".concat(n.sn,".").concat(n.pn,".last"),metadata:dn(dn({},n),{datatype:"json"}),events:s})}else delete n.let,delete n.rst,delete n.ri,this.ye.removeQueryParams(),this.ye.setQueryParams(n),this.ye.send(),this.ye.removeQueryParams();if(this.se.eventsCount()>0){n.rst=this.getRecordingStartTimestamp(),n.let=this.getRecordingLastEventTimestamp();var o=this.ue.getCurrentIndex();n.ri=o.toString();var u=this.se.stringifyEvents();this.de.save({key:"".concat(n.sn,".").concat(n.pn,".").concat(n.ri,".last"),metadata:dn(dn({},n),{datatype:"json"}),events:u}),this.ue.increment()}}else{this.ye.send(r)||(this.de.save({key:"".concat(n.sn,".").concat(n.pn,".").concat(n.ri,".last"),metadata:dn(dn({},n),{datatype:"json"}),events:r}),this.ue.increment())}this.ye.removeQueryParams(),this.se.clearEvents()}},n.prototype.blockSendingEventsFromQuotaService=function(){this.Te.allowFromQuotaService=!1},n.prototype.allowSendingEventsFromQuotaService=function(){this.Te.allowFromQuotaService=!0},n.prototype.blockSendingEventsFromSerialization=function(){this.Te.allowFromSerialization=!1},n.prototype.allowSendingEventsFromSerialization=function(){this.Te.allowFromSerialization=!0},n.prototype.canSendEvents=function(){return this.Te.allowFromQuotaService&&this.Te.allowFromSerialization},n.prototype.onIframeJavascriptError=function(t){var n;if(this.he&&this.Ae){null===(n=this.he)||void 0===n||n.anonymize(t);var i=this.Ae.translate({message:t.message,colno:t.colno,lineno:t.lineno,filename:t.filename,timestamp:ai(),type:"JSError"});i&&this.Ce(i)}},n.prototype.onIframeCustomError=function(t){if(this.Ee){var n=this.Ee.translate(dn(dn({},t),{timestamp:ai(),type:"CustomError"}));n&&this.Ce(n)}},n.prototype.onIframeDetailedApiError=function(t){this.Ke(t)},n.prototype.onIframeRecordingUserEvent=function(t){var n,i;try{for(var r=gn(t),e=r.next();!e.done;e=r.next()){var s=e.value;this.Me(s)}}catch(t){n={error:t}}finally{try{e&&!e.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}},n.prototype.onIframeRecordingBrowserEvent=function(t){var n,i;if(this.isStarted)try{for(var r=gn(t),e=r.next();!e.done;e=r.next()){var s=e.value;this.processBrowserEvent(s)}}catch(t){n={error:t}}finally{try{e&&!e.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}},n.prototype.processBrowserEvent=function(t){this.ce.isCurrentPageviewValid()&&this.He.pushEvent(t,{isUserEvent:!1})},n.prototype.Me=function(t){this.ce.refreshSession(),this.ce.isSessionValid()&&this.He.pushEvent(t,{isUserEvent:!0})},n.prototype.Fe=function(t){re.general.nbEvents.increase(),this.se.addEvent(t),this.se.isThresholdReached()?this.pushEvents():this.se.isFull()&&this.Ne(),this.Ze(t)},n.prototype.Ze=function(t){this.Rt.emitDebugEvents&&this.Oe.emit("recordingEvent",dn(dn({},t),{typeName:mr[t.type]}))},n.prototype.onStart=function(){var t,i=this;this.Ye("tag-version","15.78.1"),this.Ye("page-state",document.visibilityState),this.He.reset(),this.xe.start(),this.initStates(),this.we.start(),this.ae&&this.fe&&this.ae.subscribe(n.Qe,(function(t){return i.Ke(t)}),{detailedEvent:!0}),this.Rt.emitDebugEvents&&this.Oe.emit("replayRecordingStarted"),csArray.prototype.forEach.call(this.qe,(function(t){return i.ns(t)})),this.qe=[],this.Ue&&(null===(t=this.Se)||void 0===t||t.enableOnlineAssets(),this.Ue=!1)},n.prototype.onStop=function(){var t;this.xe.stop(),this.ae&&this.ae.unsubscribe(n.Qe),this.we.stop(),this.He.disconnect(),null===(t=this.Se)||void 0===t||t.disableOnlineAssets()},n.prototype.clearStates=function(){this.we.flush(),this.Ne.cancel(),this.pushEvents(),this.ve.removeQueryParams()},n.prototype.initStates=function(){this.Pe=ai(),this.ue.reset(),this.Re=0,this.ve.setQueryParams(this.oe.getRequestParameters())},n.prototype.pushEvents=function(){tn(this.pe,(function(t){var n;return null===(n=t.flushEvents)||void 0===n?void 0:n.call(t)})),this.se.eventsCount()>0&&(this.isStarted?this.ke():this.se.clearEvents())},n.prototype.ke=function(){if(this.canSendEvents()){var t=this.se.getEvents();this._e=t[t.length-1].date;var n=this.ue.getCurrentIndex();this.ve.setQueryParams({ri:n.toString(),rst:this.getRecordingStartTimestamp(),let:this.getRecordingLastEventTimestamp()});var i=this.ve.getQueryParams();this.de.addBatchInProgress("".concat(i.sn,".").concat(i.pn,".").concat(n),this.ve.getQueryParams(),t),this.ve.send(t),this.ue.increment(),this.se.clearEvents(),this.rs&&this.rs()}},n.prototype.addInitialDom=function(t){this.se.addEventByTimestamp(t),this.Ze(t)},n.prototype.Ke=function(t){if(this.be&&(t.plainCustomRequestHeaders||t.plainCustomResponseHeaders||t.requestBodyAttributes||t.responseBodyAttributes||t.customRequestHeaders||t.customResponseHeaders||t.queryParameters||t.requestBody||t.responseBody)){if(this.be.truncate(t),this.le)return void this.le.registerApiErrorToEncrypt(t);t.customRequestHeaders="",t.customResponseHeaders="",t.requestBodyAttributes="",t.responseBodyAttributes="",t.queryParameters="",t.requestBody="",t.responseBody=""}this.Je(t)},n.prototype.Je=function(t){if(this.Re0},t}(),Os=function(){function t(t){this.zn=t}var n;return t.prototype.observe=function(){var t=this;(this.xs=n.Ds.subscribe((function(n){return t.zn(n)})),n.Ls)||(n.Ls=!0,n.Us.observe(),kt(document,NodeFilter.SHOW_ELEMENT).visitAll((function(t){n.js.add(t),n.Ds.next(t)})))},t.prototype.disconnect=function(){n.Ls&&(this.xs(),n.Ds.hasObservers()||(n.Ls=!1,n.Us.disconnect(),n.Ds.clear(),n.js.clear()))},n=t,t.js=Pe(),t.Ds=new Rs,t.qs=Jt((function(t){ke((function(){var i,r;try{for(var e=At(t),s=e.next();!s.done;s=e.next()){var o=s.value;"childList"===o.type&&tn(o.addedNodes,(function(t){kt(t,NodeFilter.SHOW_ELEMENT).visitAll((function(t){n.js.has(t)||(n.js.add(t),n.Ds.next(t))}))}))}}catch(t){i={error:t}}finally{try{s&&!s.done&&(r=e.return)&&r.call(e)}finally{if(i)throw i.error}}}))}),"ElementObserver.findAllElements"),t.Ls=!1,t.Us=new Ge(n.qs),gt([xt()],t.prototype,"observe",null),gt([xt()],t.prototype,"disconnect",null),t}(),Ts=function(){function t(t,n,i){void 0===n&&(n=30),void 0===i&&(i=0);var r=this;this.Hs=t,this.Fs=n,this.Bs=i,this.zs=new Lt,this.jt=!1,this.Vs=0,this.Gs=function(){for(r.Vs=0;r.zs.length;){if(r.Vs>=r.Fs)return void csSetTimeout(r.Gs,r.Bs);var t=fi(),n=r.zs.pop();if(!n)break;r.runTask(n);var i=fi()-t;r.Vs+=i}r.jt=!1}}return t.prototype.schedule=function(t,n){void 0===n&&(n=!1),this.Hs&&!n?(re.general.pendingTasks.increase(),this.zs.push(t),this.Js()):t()},t.prototype.Js=function(){var t=this;this.jt||(this.jt=!0,csSetTimeout((function(){t.Gs()})))},t.prototype.runTask=function(t){re.general.pendingTasks.decrease(),t()},t.prototype.runPendingTasks=function(){var t=this;this.zs.forEach((function(n){t.runTask(n)})),this.zs.clear()},t.prototype.clearQueue=function(){re.general.pendingTasks.clear(),re.mutations.pendingMutations.clear(),this.zs.clear()},t.prototype.isEmpty=function(){return 0===this.zs.length},wn([xt("TaskScheduler"),Xt("runTask")],t.prototype,"runTask",null),wn([Xt("runPendingTasks")],t.prototype,"runPendingTasks",null),t}(),Ns=function(){function t(){var t=this;this.Kn=!1,this.Ys=new De((function(n){return"cssRuleInserted"===n.type&&t.Ws(n)})),this.$s=_e((function(n){t.Kn&&n.length>0&&t.Xs.schedule((function(){return tn(n,(function(n){return t.Ks.scanElement(n)}))}))})),this.Zs=function(n){var i,r,e,s=n.type,o=n.asset;"stylesheet"===s&&(null===(i=t.Qs)||void 0===i||i.call(t,o)),null===(r=t.no)||void 0===r||r.call(t,o);var u={date:ai(),type:mr.STATIC_RESOURCE_URL,args:[o.assetId]};null===(e=t.bs)||void 0===e||e.call(t,u)},this.Xs=new Ts(!0,30,0),this.io=new Os((function(n){return t.ro(n)})),this.Yn=new Ge((function(n){return t.eo(n)})),this.Ks=new Es,this.Ks.onScannedAsset(this.Zs)}return t.prototype.onEvent=function(t){this.bs=t},t.prototype.onAsset=function(t){this.no=t},t.prototype.onStyleSheetFound=function(t){this.Qs=t},t.prototype.start=function(){this.Kn||(this.Kn=!0,this.Ys.observe(),this.io.observe(),this.Yn.observe())},t.prototype.stop=function(){this.Kn&&(this.Ys.disconnect(),this.io.disconnect(),this.Yn.disconnect(),this.Kn=!1)},t.prototype.Ws=function(t){t.rule&&this.Kn&&this.Ks.scanCssString(t.rule)},t.prototype.ro=function(t){this.Kn&&Dr.getMaskedElementDetails(t).state===Dr.MaskedElementState.NotMasked&&this.$s.push(t)},t.prototype.eo=function(t){var n=this;csSetTimeout((function(){var i,r;try{for(var e=gn(t),s=e.next();!s.done;s=e.next()){var o=s.value;switch(o.type){case"attributes":n.Ks.scanElement(o.target,o.attributeName);break;case"characterData":n.so(o.target)}}}catch(t){i={error:t}}finally{try{s&&!s.done&&(r=e.return)&&r.call(e)}finally{if(i)throw i.error}}}))},t.prototype.so=function(t){x(t)&&csNodeparentNode.apply(t)&&j(csNodeparentNode.apply(t))&&this.Ks.scanCssString(t.data)},t}(),ks=function(){function t(t){this.oo=[],this.uo=[],this.Rn={},this.On=t}return t.prototype.setQueryParams=function(t){var n=this;csArray.prototype.forEach.call(Object.keys(t),(function(i){n.Rn[i]=t[i]}))},t.prototype.removeQueryParams=function(t){var n=this;t?csArray.prototype.forEach.call(t,(function(t){delete n.Rn[t]})):this.Rn={}},t.prototype.onBeaconSuccess=function(t){csArray.prototype.push.call(this.oo,t)},t.prototype.onBeaconFailure=function(t){csArray.prototype.push.call(this.uo,t)},t.prototype.send=function(t){var n=this,i=In.toQuery(dn(dn({},this.Rn),{ct:Zi.UNCOMPRESSED})),r=this.co(i,t);return r?csArray.prototype.forEach.call(this.oo,(function(t){return t()})):csArray.prototype.forEach.call(this.uo,(function(t){return t(n.Rn)})),r},t.prototype.co=function(t,n){try{if("function"!=typeof csNavigatorsendBeacon)return!1;var i=csNavigatorsendBeacon("".concat(this.On,"?").concat(t),n||"");if(i)return i}catch(t){}return"function"==typeof navigator.sendBeacon&&navigator.sendBeacon("".concat(this.On,"?").concat(t),n||"")},t}(),Cs=function(){function t(t){this.ho={},this.ao=new qr(t)}return t.prototype.save=function(t){var n=t.key,i=t.metadata,r=t.events;this.ao.isThresholdReached()||(this.ao.addString(n),"string"==typeof r?this.ao.addString(r):this.ao.addArrayBuffer(r),this.ao.isThresholdReached()||(this.ho[n]={metadata:i,events:r}))},t.prototype.recover=function(t){var n=this,i=[];csArray.prototype.forEach.call(this.fo(),(function(t){var r=n.ho[t];void 0!==r&&(delete r.metadata.datatype,csArray.prototype.push.call(i,r),n.lo(t))})),0!==i.length&&(t(i),this.ao.reset())},t.prototype.fo=function(){return Object.keys(this.ho)},t.prototype.lo=function(t){delete this.ho[t]},t}();!function(t){t[t.NOT_STARTED=0]="NOT_STARTED",t[t.OPEN_IN_PROGRESS=1]="OPEN_IN_PROGRESS",t[t.OPEN_FAILED=2]="OPEN_FAILED",t[t.READY=3]="READY"}(ps||(ps={}));var Is,Ms=function(){function t(t,n,i){this.vo=t,this.do=i,this.yo=ps.NOT_STARTED,this.wo=[],this.po=0,this.mo=self.origin,this.So="object"==typeof window?"":"worker-",this.ao=new qr(n),this.bo()}return t.prototype.bo=function(){return pn(this,void 0,void 0,(function(){return mn(this,(function(t){switch(t.label){case 0:return[4,this.Ao()];case 1:return t.sent(),this.yo===ps.READY?this.Eo():this.do(this.wo),[2]}}))}))},t.prototype.Eo=function(){var t=this;csArray.prototype.forEach.call(this.wo,(function(n){t.save(n)})),this.wo=[]},t.prototype.save=function(t){return pn(this,void 0,void 0,(function(){var n,i,r;return mn(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),this.yo===ps.OPEN_IN_PROGRESS?(csArray.prototype.push.call(this.wo,t),[2]):this.yo!==ps.READY||this.ao.isThresholdReached()?[2]:(n=t.key,i=t.metadata,r=t.events,this.ao.addString(n),"string"==typeof r?this.ao.addString(r):this.ao.addArrayBuffer(r),this.ao.isThresholdReached()?[2]:[4,this.Ro.put("".concat(this.mo,"/").concat(n),new Response(r,{headers:i}))]);case 1:return e.sent(),[3,3];case 2:return e.sent(),[3,3];case 3:return[2]}}))}))},t.prototype.recover=function(t){return pn(this,void 0,void 0,(function(){return mn(this,(function(n){switch(n.label){case 0:return this.Ro?[3,2]:[4,this.Ao()];case 1:if(n.sent(),this.yo!==ps.READY)return[2];n.label=2;case 2:return this.Oo(t),[2]}}))}))},t.prototype.Ao=function(){return pn(this,void 0,void 0,(function(){var t;return mn(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),this.yo=ps.OPEN_IN_PROGRESS,t=this,[4,self.caches.open("".concat(this.So).concat(this.vo))];case 1:return t.Ro=n.sent(),this.yo=ps.READY,[3,3];case 2:return n.sent(),this.yo=ps.OPEN_FAILED,[3,3];case 3:return[2]}}))}))},t.prototype.Oo=function(t){return pn(this,void 0,void 0,(function(){var n,i,r,e,s=this;return mn(this,(function(o){switch(o.label){case 0:return o.trys.push([0,5,6,7]),this.po++,this.po>1?[2]:[4,this.Ro.keys()];case 1:return 0===(n=o.sent()).length?[2]:[4,this.Ro.matchAll()];case 2:return i=o.sent(),r=csArray.prototype.map.call(i,(function(t){var n={};t.headers.forEach((function(t,i){n[i]=t})),delete n["content-type"];var i=n.datatype;return delete n.datatype,"json"===i||"base64"===i?t.text().then((function(t){return{metadata:n,events:t}})):t.arrayBuffer().then((function(t){return{metadata:n,events:t}}))})),[4,Promise.all(r)];case 3:return e=o.sent(),[4,Promise.all(csArray.prototype.map.call(n,(function(t){return s.Ro.delete(t)})))];case 4:return o.sent(),t(e),this.ao.reset(),[3,7];case 5:return o.sent(),[3,7];case 6:return this.po--,[7];case 7:return[2]}}))}))},t}(),Ps=function(){function t(t){try{this.To(t)}catch(t){this.ko()}}return t.prototype.To=function(t){self.caches?this.Co(t):this.ko()},t.prototype.save=function(t){this.Io.save(t)},t.prototype.recover=function(t){this.Io.recover(t)},t.prototype.Co=function(n){var i=this;this.Io=new Ms(n,t.Mo,(function(t){i.ko(t)}))},t.prototype.ko=function(n){var i=this;this.Io=new Cs(t.Mo),n&&csArray.prototype.forEach.call(n,(function(t){i.Io.save(t)}))},t.Mo=16777216,t}(),_s=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return l(n,t),n.prototype.isListening=function(t){return os.isDOMEvent(t)&&("initialDOM"===t.domEvent||"nodesAdded"===t.domEvent)},n.prototype.processEvent=function(t){var n,i,r=this,e="initialDOM"===t.domEvent?[t.initialDOM]:t.nodes,s=function(n){if(n instanceof Se){var i=Dr.getMaskedAttributeDetails(n);n.attributes=o.Po(n,i)}if(Dr.getMaskedElementDetails(n).state===Dr.MaskedElementState.Child)return"initialDOM"===t.domEvent?{value:null}:(t.nodes=csArray.prototype.filter.call(t.nodes,(function(t){return t!==n})),"continue");Cr.traverse(n,(function(t){if(t instanceof Se){var n=Dr.getMaskedAttributeDetails(t);t.attributes=r.Po(t,n);var i=Dr.getMaskedElementDetails(t);i.state===Dr.MaskedElementState.Parent&&r._o(t,i)}}))},o=this;try{for(var u=p(e),c=u.next();!c.done;c=u.next()){var h=s(c.value);if("object"==typeof h)return h.value}}catch(t){n={error:t}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}return t},n.prototype.Po=function(t,n){return 0===n.attributes.length?t.attributes:csArray.prototype.filter.call(t.attributes,(function(t){return-1===csArray.prototype.indexOf.call(n.attributes,t.name)}))},n.prototype._o=function(t,n){var i="width: ".concat(n.width,"px !important; height: ").concat(n.height,"px !important;");t.children=[],t.shadowRoot=void 0,csArray.prototype.push.call(t.attributes,{name:"style",value:i,namespaceURI:""}),Se.getAttribute(t,"data-cs-mask")||csArray.prototype.push.call(t.attributes,{name:"data-cs-mask",value:"",namespaceURI:""})},d([Xt("MaskedElementProcessor.processEvent")],n.prototype,"processEvent",null),n}(fs);!function(t){t.ANONYMIZED_TEXT_STATUS_PROP="anonymizationStatus",t.WHITELISTED_STATUS="whitelisted",t.isWhitelistedElement=function(n){return Cr.getProperty(n,t.ANONYMIZED_TEXT_STATUS_PROP)===t.WHITELISTED_STATUS},t.whitelistElement=function(n){Cr.setProperty(n,t.ANONYMIZED_TEXT_STATUS_PROP,t.WHITELISTED_STATUS)},t.removeWhitelistElement=function(n){Cr.setProperty(n,t.ANONYMIZED_TEXT_STATUS_PROP,void 0)}}(Is||(Is={}));var xs=/[\u4E00-\u9FFF]|[\u3000-\u303F]|[\u3040-\u309F]|[\u30A0-\u30FF]|[\uFF00-\uFFEF]/g,Ds=/[^a\s]/g;function Ls(t){var n=csString.prototype.replace.call(t,xs,"a");return csString.prototype.replace.call(n,Ds,"a")}var Us,js=["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"],qs=function(t){var n=new Set(js);return csArray.prototype.forEach.call(t,(function(t){n.add(t)})),n},Hs=["svg","slot"],Fs={href:new Set(["a"]),src:new Set(["iframe"])},Bs=function(){function t(t,n,i,r,e){void 0===r&&(r=null),void 0===e&&(e=!1),this.xo=t,this.Do=n,this.Ot=i,this.Lo=r,this.Uo=e,this.jo=qs(this.Do)}return t.prototype.qo=function(t,n,i){var r,e;void 0===n&&(n=null),void 0===i&&(i=!0);var s=this.Ot.checkAndAnonymizePII(t,n);if(this.Uo)try{for(var o=p(this.Ot.getLogs()),u=o.next();!u.done;u=o.next()){var c=u.value;i?(Fn.pii.redactedCreditCardsInTextNodesCount.increment(),_t.implementation("".concat(c," - text-node"))):_t.implementation("".concat(c," - attribute"))}}catch(t){r={error:t}}finally{try{u&&!u.done&&(e=o.return)&&e.call(o)}finally{if(r)throw r.error}}return s},t.prototype.sanitize=function(t){var n=this;return Cr.traverse(t,(function(t,i){if(t.anonymized=n.xo,3===t.nodeType){var r=n.getAnonymizedValue(t.data,null==i?void 0:i.localName,i?Cr.getProperties(i):void 0),e=r.anonymizedValue,s=r.withAnonymization;return t.anonymized=s,void(t.data=e)}if(Se.isElement(t))return n.Ho(t);4!==t.nodeType||(t.data=n.xo?Ls(t.data):n.qo(t.data,n.Lo))})),t},t.prototype.setAnonymization=function(t){this.xo=t},t.prototype.getAnonymizedValue=function(t,n,i){if("style"===n)return{anonymizedValue:t,withAnonymization:!1};var r=(null==i?void 0:i[Is.ANONYMIZED_TEXT_STATUS_PROP])===Is.WHITELISTED_STATUS;return this.xo&&!r?{anonymizedValue:Ls(t),withAnonymization:!0}:{anonymizedValue:this.qo(t,this.Lo),withAnonymization:!1}},t.prototype.Ho=function(t){var n=this;if(!Cr.getProperty(t,"SVG")){var i=nn(t.attributes,(function(t){return"type"===t.name})),r=null==i?void 0:i.value;t.attributes=csArray.prototype.map.call(t.attributes,(function(i){return i.anonymized=n.xo,i.value=n.getAnonymizedAttributeValue(t.localName,i.name,i.value,r),i}))}},t.prototype.getAnonymizedAttributeValue=function(t,n,i,r){return this.Fo(t,n,r)?i:function(t){return Fs.hasOwnProperty(t)}(n)?function(t,n,i){var r;return(null===(r=Fs[n])||void 0===r?void 0:r.has(t))&&!se(i)}(t,n,i)?this.Ot.anonymizePII(i):i:this.xo&&function(t,n,i){return("submit"===i||"button"===i)&&"input"===t&&"value"===n}(t,n,r)?Ls(i):("contenteditable"===n&&"false"!==i&&_t.implementation("Element found with contenteditable attr","contenteditable-attr"),this.xo?"":this.qo(i,null,!1))},t.prototype.Fo=function(t,n,i){return function(t,n,i){return"radio"===i&&"input"===t&&"name"===n||csArray.prototype.indexOf.call(Hs,t)>-1}(t,n,i)||this.jo.has(n)},t}(),zs=function(){function t(){}return t.create=function(n,i){if(!t.isSupported())throw new Error("IntersectionObserver is not supported");if(i&&i.delay&&i.delay<100)throw new Error("Visibility delay should be > 100ms");return(null==i?void 0:i.trackVisibility)&&(n=t.Bo(n)),new IntersectionObserver(n,i)},t.isSupported=function(){return!!window.IntersectionObserver&&!!window.IntersectionObserverEntry},t.Bo=function(t){return function(n,i){return t(Zt(n,Vs),i)}},t}();function Vs(t){return t.isVisible||!un.isVisibleInViewportInForeground(t.target)?t:{boundingClientRect:t.boundingClientRect,intersectionRatio:t.intersectionRatio,intersectionRect:t.intersectionRect,isIntersecting:t.isIntersecting,rootBounds:t.rootBounds,target:t.target,time:t.time,isVisible:!0}}var Gs=function(){return function(t,n,i){var r,e,s,o,u;i.value=(r=i.value,e=csSymbol("oncePerTickSymbol"),s=null,o={},u=function(){var t,n=null!==(t=this)&&void 0!==t?t:o;s=arguments,n[e]||(n[e]=!0,Js((function(){n[e]=!1,r.apply(n,s)})))},u.oncePerTickSymbol=e,u)}},Js=null!==(Us=e.csQueueMicrotask)&&void 0!==Us?Us:csSetTimeout;Gs.isScheduled=function(t,n){return t[n.oncePerTickSymbol]};var Ys,Ws=function(){function t(t){var n=this;this.zn=t,this.zo=new Map,this.Vo=function(t){var i=t.target;if(n.zo.has(i))return!0;var r=!1;return n.zo.forEach((function(t,e){!r&&n.zo.get(e).subtree&&(r=e.contains(i))})),r},re.general.nbOfMutationObservers.increase(),this.Yn=new csMutationObserver((function(i){Gs.isScheduled(n,n.garbageCollect)&&(i=en(i,n.Vo)),i.length&&ke((function(){return t(i,n)}))}))}return t.prototype.disconnect=function(){re.general.nbOfMutationObservers.decrease(),this.Yn.disconnect(),this.zo=new Map},t.prototype.takeRecords=function(){return this.Yn.takeRecords()},t.prototype.observe=function(t,n){return re.mutations.elementMutationObserved.increase(),this.zo.set(t,n),this.Yn.observe(t,n)},t.prototype.unobserve=function(t){this.zo.has(t)&&(re.mutations.elementMutationObserved.decrease(),this.zo.delete(t),this.garbageCollect())},t.prototype.garbageCollect=function(){var t=this;re.mutations.unobserveGarbageCollection.measure((function(){var n=en(t.takeRecords(),t.Vo);n.length&&t.zn(n,t),t.Yn.disconnect(),t.zo.forEach((function(n,i){return t.Yn.observe(i,n)}))}))},gt([Gs()],t.prototype,"garbageCollect",null),t}(),$s=function(){function t(t){this.zn=t,this.Go=new Set}return t.prototype.onMutations=function(t){var n,i;if(rn(t,(function(t){var n;return!!(null===(n=t.removedNodes)||void 0===n?void 0:n.length)})))try{for(var r=At(this.Go.values()),e=r.next();!e.done;e=r.next()){var s=e.value;un.isConnected(s)||(this.Go.delete(s),this.zn(s))}}catch(t){n={error:t}}finally{try{e&&!e.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}},t.prototype.observe=function(t){var n=this;this.er||(this.er=new Ge((function(t){return csSetTimeout((function(){return n.onMutations(t)}))})),this.er.observe()),this.Go.add(t)},t.prototype.disconnect=function(){var t;null===(t=this.er)||void 0===t||t.disconnect(),this.Go.clear(),this.er=void 0},gt([xt("NodeDisconnectedObserver.onMutations")],t.prototype,"onMutations",null),t}(),Xs=function(){function t(t){var n=this;this.Jo=new Set,this.Yo=new $s((function(t){return n.Wo(t)})),this.Kn=!1,this.$o=t?pt(pt({},Zs),t):Zs}return t.prototype.stop=function(){var t,n;this.Kn=!1,null===(t=this.Xo)||void 0===t||t.disconnect(),null===(n=this.Yn)||void 0===n||n.disconnect()},t.prototype.start=function(t){var n=this;if(this.Kn)throw new Error("VisibilityObserver is already started");this.zn=Dt("VisibilityObserver:callback",(function(n,i){return t(n,i)}));var i={root:null,rootMargin:"0px",threshold:.5,trackVisibility:!0,delay:300};this.Xo=zs.create((function(t){return n.handleIntersection(t)}),i),this.Yn=new Ws((function(t){return csSetTimeout((function(){tn(t,(function(t){return n.Wo(t.target)}))}))})),this.bo(),this.Kn=!0},t.prototype.observe=function(t){if(!this.Kn)throw new Error("Observer is stopped.");!1===this.$o.reobserve&&t[this.Ko]||(re.visibilityObserver.nbElements.increase(),t[this.Ko]=!0,this.watchIntersection(t))},t.prototype.bo=function(){this.Zo=csSymbol("isVisible"),this.Ko=csSymbol("ObservedElement"),this.Qo=csSymbol("LinkedElement"),this.tu=csSymbol("Tracked")},t.prototype.Wo=function(t){var n,i;this.Jo.add(t);try{for(var r=At(this.nu(t)),e=r.next();!e.done;e=r.next()){var s=e.value;this.Jo.add(s)}}catch(t){n={error:t}}finally{try{e&&!e.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}this.recheckCssVisibilityAll()},t.prototype.recheckCssVisibilityAll=function(){var t=this;tn(this.Jo.keys(),(function(n){n.isConnected&&!un.areAncestorsHiddenByCSS(n)&&n[t.Ko]&&t.watchIntersection(n)})),this.Jo.clear()},t.prototype.watchIntersection=function(t){this.Yn.unobserve(t),this.Xo.unobserve(t);var n=un.getTopAncestorHiddenByCSS(t);n?(n!==t&&(this.iu(n,t),this.watchMutation(n)),this.watchMutation(t)):this.Xo.observe(t)},t.prototype.watchMutation=function(t,n){void 0===n&&(n=!0),n&&delete t[this.Zo],this.Xo.unobserve(t);this.Yn.observe(t,{attributeFilter:["style","class","hidden"]})},t.prototype.handleIntersection=function(t){var n,i,r=this;try{for(var e=At(t),s=e.next();!s.done;s=e.next()){var o=s.value,u=o.target;if(o.isVisible){var c=this.$o.allowSameMatch||!o.target[this.Zo];o.target[this.Zo]=!0,c&&!this.$o.delay&&this.onVisibilityChanged(o.target,Ys.VisibleInViewPort)}else{un.isVisibleInDocument(u)||this.ru(u)}}}catch(t){n={error:t}}finally{try{s&&!s.done&&(i=e.return)&&i.call(e)}finally{if(n)throw n.error}}this.$o.delay&&csSetTimeout((function(){var n,i;try{for(var e=At(t),s=e.next();!s.done;s=e.next()){var o=s.value,u=o.isIntersecting&&o.isVisible;o.target[r.Zo]&&u&&r.onVisibilityChanged(o.target,Ys.VisibleInViewPort)}}catch(t){n={error:t}}finally{try{s&&!s.done&&(i=e.return)&&i.call(e)}finally{if(n)throw n.error}}}),this.$o.delay)},t.prototype.ru=function(t){re.visibilityObserver.hiddenElements.increase();var n=un.getTopElement(t);this.watchMutation(t),n&&(this.Yo.observe(n),this.iu(n,t),this.watchMutation(n,!1))},t.prototype.iu=function(t,n){var i;(t[this.Qo]=null!==(i=t[this.Qo])&&void 0!==i?i:new Set).add(n)},t.prototype.nu=function(t){var n,i,r=[];return tn(null!==(i=null===(n=t[this.Qo])||void 0===n?void 0:n.values())&&void 0!==i?i:[],(function(t){return csArray.prototype.push.call(r,t)})),r},t.prototype.onVisibilityChanged=function(t,n){if(n===Ys.VisibleInViewPort&&this.$o.trackOnce){if(this.Xo.unobserve(t),this.Yn.unobserve(t),t[this.tu])return;t[this.tu]=!0}this.zn(t,n)},t.isSupported=function(){return zs.isSupported()},gt([xt()],t.prototype,"observe",null),gt([Er({wait:50}),xt(),Xt("recheckCssVisibilityAll")],t.prototype,"recheckCssVisibilityAll",null),gt([xt()],t.prototype,"watchIntersection",null),gt([xt()],t.prototype,"watchMutation",null),gt([xt(),Xt("VisibilityObserver.handleIntersection")],t.prototype,"handleIntersection",null),gt([xt()],t.prototype,"onVisibilityChanged",null),t}();!function(t){t.VisibleInViewPort="VisibleInViewPort",t.HiddenByAnother="HiddenByAnother",t.Hidden="Hidden"}(Ys||(Ys={}));var Ks,Zs={delay:1e3,trackOnce:!0,reobserve:!1},Qs=function(){function t(t){var n=this;this.zn=t,this.js=Pe(),this.eu=function(t){ke((function(){var i,r;try{for(var e=At(t),s=e.next();!s.done;s=e.next()){var o=s.value;"childList"===o.type&&tn(o.addedNodes,(function(t){kt(t,NodeFilter.SHOW_TEXT).visitAll((function(t){n.js.has(t)||(n.js.add(t),n.zn(t))}))}))}}catch(t){i={error:t}}finally{try{s&&!s.done&&(r=e.return)&&r.call(e)}finally{if(i)throw i.error}}}))},this.Us=new Ge(this.eu)}return t.prototype.observe=function(){var t=this;this.Us.observe(),kt(document,NodeFilter.SHOW_TEXT).visitAll((function(n){t.js.add(n),t.zn(n)}))},t.prototype.disconnect=function(){this.js.clear(),this.Us.disconnect()},t}();!function(t){t.ENCRYPTED_NODE_PROP="toEncrypt",t.shouldEncrypt=function(n){return!0===Cr.getProperty(n,t.ENCRYPTED_NODE_PROP)},t.markEncryptedNode=function(n){Cr.setProperty(n,t.ENCRYPTED_NODE_PROP,!0),Fn.pii.encryptedNodeCount.increment()},t.unmarkEncryptedNode=function(n){Cr.setProperty(n,t.ENCRYPTED_NODE_PROP,void 0)}}(Ks||(Ks={}));var to;!function(t){function n(n){var i=t.call(this)||this;return i.su=new Set,i.ou=new Set,i.hu=!1,i.au=new Set,i.xo=!1,i.fu=new Xs(n),i.lu=new Qs((function(t){var n=un.getParentElement(t);!n||!n.isConnected||Dr.isMaskedElement(n)||Dr.isMaskedElementChild(n)||Ks.shouldEncrypt(n)||j(n)||F(n)||H(n)||P(t.data)||(i.su.add(n),i.vu())})),i}l(n,t),n.prototype.onStart=function(){var t=this;Xs.isSupported()&&(this.fu.start((function(n,i){return t.onVisibilityChanged(n,i)})),this.lu.observe())},n.prototype.onStop=function(){Xs.isSupported()&&(this.fu.stop(),this.lu.disconnect(),this.su.clear(),this.ou.clear(),this.au.clear(),this.hu=!1)},n.prototype.setAnonymization=function(t){this.xo=t},n.prototype.vu=function(){var t=this;this.hu||(this.hu=!0,Me((function(){var n,i;if(t.isStarted){t.hu=!1;var r=t.su;t.su=new Set;try{for(var e=p(on(r)),s=e.next();!s.done;s=e.next()){var o=s.value;o.isConnected&&!t.ou.has(o)&&(t.ou.add(o),rn(csNodechildNodes.apply(o),(function(t){return 3===t.nodeType}))&&t.fu.observe(o))}}catch(t){n={error:t}}finally{try{s&&!s.done&&(i=e.return)&&i.call(e)}finally{if(n)throw n.error}}}}),1001))},n.prototype.onVisibilityChanged=function(t,n){var i=this;n!==Ys.VisibleInViewPort||this.xo&&!Is.isWhitelistedElement(t)||tn(csNodechildNodes.apply(t),(function(t){if(3===t.nodeType){var r=t.data;i.au.has(r)||(i.au.add(r),i.produceEvent({type:"TextVisibility",text:r,state:n}))}}))},d([xt()],n.prototype,"onVisibilityChanged",null)}(us);!function(t){t.isTextVisibilityEvent=function(t){return"TextVisibility"===t.type}}(to||(to={}));var no,io,ro,eo,so=function(t){function n(n,i,r,e){void 0===e&&(e=null);var s=t.call(this)||this;s.Ot=r,s.Lo=e;return s.du=new Bs(n,i,r,e,!0),s}return l(n,t),n.prototype.setAnonymization=function(t){this.du.setAnonymization(t)},n.prototype.isListening=function(t){return to.isTextVisibilityEvent(t)||os.isDOMEvent(t)&&("initialDOM"===t.domEvent||"nodesAdded"===t.domEvent||"attributeChanged"===t.domEvent||"characterDataChanged"===t.domEvent)},n.prototype.processEvent=function(t){if(to.isTextVisibilityEvent(t))return t.text=this.Ot.checkAndAnonymizePII(t.text,this.Lo),t;switch(t.domEvent){case"initialDOM":case"nodesAdded":this.yu(t);break;case"attributeChanged":this.wu(t);break;case"characterDataChanged":this.pu(t)}return t},n.prototype.yu=function(t){var n,i,r="initialDOM"===t.domEvent?[t.initialDOM]:t.nodes;try{for(var e=p(r),s=e.next();!s.done;s=e.next()){var o=s.value;this.du.sanitize(o)}}catch(t){n={error:t}}finally{try{s&&!s.done&&(i=e.return)&&i.call(e)}finally{if(n)throw n.error}}},n.prototype.wu=function(t){t.isSvg||t.newValue&&(null!==t.localName?t.newValue=this.du.getAnonymizedAttributeValue(t.localName,t.attribute,t.newValue,t.inputType):t.newValue="")},n.prototype.pu=function(t){t.newValue=this.du.getAnonymizedValue(t.newValue,t.parentLocalName,t.parentProps).anonymizedValue},d([Xt("AnonymizedTextProcessor.processEvent")],n.prototype,"processEvent",null),n}(fs),oo=function(t){function n(n){var i=t.call(this)||this;return i.mu=n,i}return l(n,t),n.prototype.isListening=function(t){return os.isDOMEvent(t)&&"initialDOM"===t.domEvent},n.prototype.processEvent=function(t){return"initialDOM"===t.domEvent&&(t.initialDOM.baseURI=this.mu.anonymizeUrl(t.initialDOM.baseURI)),t},d([Xt("UrlAnonymizationProcessor.processEvent")],n.prototype,"processEvent",null),n}(fs),uo="textarea",co=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return l(n,t),n.prototype.isListening=function(t){return os.isDOMEvent(t)&&("initialDOM"===t.domEvent||"nodesAdded"===t.domEvent||"characterDataChanged"===t.domEvent)},n.prototype.processEvent=function(t){switch(t.domEvent){case"initialDOM":this.gu(t);break;case"nodesAdded":this.Su(t);break;case"characterDataChanged":this.bu(t)}return t},n.prototype.gu=function(t){var n=this;Cr.traverse(t.initialDOM,(function(t,i){n.Au(t,i)&&(t.data=n.Eu(t.data))}))},n.prototype.Su=function(t){var n,i,r=this;try{for(var e=p(t.nodes),s=e.next();!s.done;s=e.next()){var o=s.value;Cr.traverse(o,(function(n,i){r.Ru(n,i,t)&&(n.data=r.Eu(n.data))}))}}catch(t){n={error:t}}finally{try{s&&!s.done&&(i=e.return)&&i.call(e)}finally{if(n)throw n.error}}},n.prototype.bu=function(t){t.parentLocalName===uo&&(t.newValue=this.Eu(t.newValue))},n.prototype.Eu=function(t){return csString.prototype.replace.call(t,/\S/g,"•")},n.prototype.Ru=function(t,n,i){return this.Ou(t,i)||this.Au(t,n)},n.prototype.Ou=function(t,n){return 3===t.nodeType&&n.targetLocalName===uo},n.prototype.Au=function(t,n){return 3===t.nodeType&&N(n)&&n.localName===uo},d([Xt("AnonymizedTextAreaProcessor.processEvent")],n.prototype,"processEvent",null),n}(fs),ho=function(){function t(t){var n=this;this.zn=t,this.Tu={boundElement:window,type:"resize",listener:function(){return n.resizeListener()}},this.zn=t}return t.prototype.observe=function(){dr(this.Tu),this.pi()},t.prototype.pi=function(){this.resizeListener()},t.prototype.disconnect=function(){yr(this.Tu)},t.prototype.resizeListener=function(){var t={width:Wt.windowWidth(),height:Wt.windowHeight()};this.zn(t)},gt([xt("resize")],t.prototype,"resizeListener",null),t}();!function(t){t.PORTRAIT="Portrait",t.LANDSCAPE="Landscape"}(no||(no={})),function(t){t.PORTRAIT_PRIMARY="portrait-primary",t.PORTRAIT_SECONDARY="portrait-secondary",t.LANDSCAPE_PRIMARY="landscape-primary",t.LANDSCAPE_SECONDARY="landscape-secondary"}(io||(io={})),function(t){t[t.PORTRAIT=0]="PORTRAIT",t[t.PORTRAIT_REVERSE=180]="PORTRAIT_REVERSE",t[t.LANDSCAPE=-90]="LANDSCAPE",t[t.LANDSCAPE_REVERSE=90]="LANDSCAPE_REVERSE"}(ro||(ro={})),function(t){var n=null;t.isScreenOrientationApiSupported=function(){var t;return null!=n?n:n=!!(null===(t=e.screen)||void 0===t?void 0:t.orientation)},t.isDeprecatedScreenOrientationApiSupported=function(){return"orientation"in e},t.getCurrentOrientation=function(){return t.isScreenOrientationApiSupported()?function(){var t;switch(null===(t=e.screen.orientation)||void 0===t?void 0:t.type){case io.PORTRAIT_PRIMARY:case io.PORTRAIT_SECONDARY:return no.PORTRAIT;case io.LANDSCAPE_PRIMARY:case io.LANDSCAPE_SECONDARY:return no.LANDSCAPE;default:return no.PORTRAIT}}():t.isDeprecatedScreenOrientationApiSupported()?function(){switch(window.orientation){case ro.PORTRAIT:case ro.PORTRAIT_REVERSE:return no.PORTRAIT;case ro.LANDSCAPE:case ro.LANDSCAPE_REVERSE:return no.LANDSCAPE;default:return no.PORTRAIT}}():no.LANDSCAPE}}(eo||(eo={}));var ao=function(t){function n(){var n=t.apply(this,g([],m(arguments),!1))||this;return n.Nu=null,n.ku=null,n.Cu=new ho((function(t){n.produceEvent(v(v({},t),{type:"viewportResize"})),n.onScreenPotentiallyChanged()})),n}return l(n,t),n.prototype.onScreenPotentiallyChanged=function(){var t=eo.getCurrentOrientation(),n=this.Iu(t),i=n.screenWidth,r=n.screenHeight;if(i!==this.Nu||r!==this.ku){this.Nu=i,this.ku=r;var e={type:"screenResize",width:i,height:r};this.produceEvent(e)}},n.prototype.Iu=function(t){var n,i,r=Wt.screenWidth(),e=Wt.screenHeight();return t===no.PORTRAIT?(n=r,i=e):(n=Math.max(r,e),i=Math.min(r,e)),{screenWidth:n,screenHeight:i}},n.prototype.onStart=function(){this.Cu.observe()},n.prototype.onStop=function(){this.Nu=null,this.ku=null,this.Cu.disconnect()},n}(us);function fo(t){var n=csEventtarget.apply(t);return n&&_(n)&&csElementshadowRoot.apply(n)&&t.composedPath?t.__csOriginalTarget||t.composedPath()[0]:n}var lo=function(){function t(t,n){void 0===n&&(n={closest:!1});var i=this;this.zn=t,this.$o=n,this.Mu="",this.Pu=Pe(),this.eo=Jt((function(t){var n,r;if(""!==i.Mu){var e=[];try{for(var s=At(Qt(t,(function(t){return t.addedNodes}))),o=s.next();!o.done;o=s.next()){var u=o.value;if(V(u)||i.$o.closest&&x(u))sn(i.$o.closest?i._u(u,i.Mu):i.findMatchingElements(u,i.Mu),e)}}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}e.length&&i.zn(e,"added")}}),"SelectorObserver.processMutations"),this.xu=function(t,n){if(""!==i.Mu&&"added"===n){var r=i.findMatchingElements(t,i.Mu);r.length&&i.zn(r,"added")}},this.er=new Ge(this.eo,this.xu)}return Object.defineProperty(t.prototype,"selectors",{get:function(){return""===this.Mu?null:this.Mu},enumerable:!1,configurable:!0}),t.prototype.observe=function(t){var n,i,r=this;""===this.Mu?this.er.observe():this.Mu+=",",this.Mu+=t;var e=this.findMatchingElements(document,t);try{for(var s=At(this.er.shadowRoots),o=s.next();!o.done;o=s.next()){var u=o.value;sn(this.findMatchingElements(u,t),e)}}catch(t){n={error:t}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}e.length&&(tn(e,(function(t){r.Pu.add(t)})),this.zn(e,"initial"))},t.prototype.processPendingMutations=function(){this.eo(this.er.takeRecords())},t.prototype.disconnect=function(){this.er.disconnect(),this.Pu.clear(),this.Mu=""},t.prototype._u=function(t,n){var i=this,r=[];if(x(t)){var e;if(t.parentElement)(e=Ur(t.parentElement,n))&&csArray.prototype.push.call(r,e);return csArray.prototype.filter.call(r,(function(t){return!1===i.Pu.has(t)}))}return I(t)&&(e=Ur(t,n))?(csArray.prototype.push.call(r,e),csArray.prototype.filter.call(r,(function(t){return!1===i.Pu.has(t)}))):this.findMatchingElements(t,n)},t.prototype.findMatchingElements=function(t,n){var i=this,r=Kt(window.csquerySelectorAll[t.nodeType].call(t,n));return _(t)&&nt.call(t,n)&&csArray.prototype.push.call(r,t),csArray.prototype.filter.call(r,(function(t){return!1===i.Pu.has(t)}))},gt([xt()],t.prototype,"observe",null),gt([xt()],t.prototype,"disconnect",null),gt([Xt("SelectorObserver.findMatchingElements")],t.prototype,"findMatchingElements",null),t}(),vo=function(t){function n(){var n=t.call(this)||this;return n.Du=function(t){var i=fo(t);i&&n.Lu(i,t.type)},n.ci=new lr((function(t,i){switch(i){case"initial":case"added":n.Uu(t);break;case"removed":n.ju(t)}})),n.qu=new lo((function(t,i){"initial"!==i&&"added"!==i||n.Hu(t)})),n}return l(n,t),n.shouldProcessElement=function(t){return"VIDEO"===t.tagName&&un.isConnected(t)&&!Dr.isMaskedElement(t)&&!Dr.isMaskedElementChild(t)},n.isPlaying=function(t){return!t.paused&&!t.ended},n.prototype.onStart=function(){this.Uu(document),this.ci.observe(),this.qu.observe("video")},n.prototype.onStop=function(){this.ju(document),this.ci.disconnect(),this.qu.disconnect()},n.prototype.Lu=function(t){for(var i,r,e=this,s=[],o=1;o0&&-1===csString.prototype.indexOf.call(e.tagName,":")&&-1===csString.prototype.indexOf.call(e.tagName,'"')&&-1===csString.prototype.indexOf.call(e.tagName,",")&&csArray.prototype.indexOf.call(W,csString.prototype.toLocaleLowerCase.call(e.tagName))<0&&n.register(csString.prototype.toLowerCase.call(u.tagName))}}catch(t){i={error:t}}finally{try{o&&!o.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}}));var i=_e(n.Ku);return n.io=new Os((function(t){return i.push(t)})),n.su=new Set,n}return l(n,t),n.prototype.onStart=function(){this.Xu&&this.io.observe()},n.prototype.onStop=function(){this.su.clear(),this.io.disconnect()},n.prototype.register=function(t){return y(this,void 0,void 0,(function(){return w(this,(function(n){switch(n.label){case 0:return this.su.has(t)?[2]:(this.su.add(t),[4,window.customElements.whenDefined(t)]);case 1:return n.sent(),this.produceEvent({type:"CustomElementRegistration",tagName:csString.prototype.toLowerCase.call(t)}),[2]}}))}))},d([xt()],n.prototype,"register",null),n}(us),Ao=function(){function t(t){this.zn=t}return t.isNavigationTimingObserverSupported=function(){var t,n;return(null==(null===(t=window.PerformanceObserver)||void 0===t?void 0:t.supportedEntryTypes)?void 0:csArray.prototype.indexOf.call(null===(n=window.PerformanceObserver)||void 0===n?void 0:n.supportedEntryTypes,"navigation"))>=0},t.getTimeOrigin=function(){return window.performance.timeOrigin},t.Zu=function(){if(this.isNavigationTimingObserverSupported())return new window.PerformanceObserver((function(n){return t.Qu(n)}))},t.Qu=function(n){var i=n.getEntriesByType("navigation")[0];i&&(this.tc=i,t.nc(i))},t.Jn=function(t){this.rc(t),this.tc&&t(this.tc),this.ec||this.sc()},t.rc=function(t){this.oc.add(t)},t.cc=function(t){this.oc.delete(t)},t.sc=function(){if(this.hc||(this.hc=this.Zu()),!this.hc)return this.tc||(this.tc={requestStart:window.performance.timing.requestStart,domInteractive:window.performance.timing.domInteractive}),void this.nc(this.tc);this.hc.observe({type:"navigation",buffered:!0}),this.ec=!0},t.nc=function(t){this.oc.forEach((function(n){return n(t)}))},t.ni=function(t){this.cc(t),0===this.oc.size&&this.ac()},t.ac=function(){var t;this.ec&&(null===(t=this.hc)||void 0===t||t.disconnect(),this.ec=!1,this.tc=null,this.hc=this.Zu())},t.prototype.observe=function(){t.Jn(this.zn)},t.prototype.disconnect=function(){t.ni(this.zn)},t.ec=!1,t.oc=new Set,t.tc=null,t}(),Eo=function(t){function n(){var n=t.apply(this,g([],m(arguments),!1))||this;return n.fc=null,n.lc=new Ao((function(t){if(!n.fc){var i=n.vc(t);i&&(n.fc=i,n.produceEvent(i))}})),n}return l(n,t),n.prototype.onStart=function(){this.fc?this.produceEvent(this.fc):this.lc.observe()},n.prototype.onStop=function(){this.lc.disconnect()},n.prototype.vc=function(t){var n=Ao.getTimeOrigin();return{type:"PerformanceTiming",timings:{timeOrigin:n,requestStart:Math.floor(n+t.requestStart),domInteractive:Math.floor(n+t.domInteractive)},timestamp:ai()}},n}(us);!function(t){t[t.TAP=0]="TAP",t[t.LONG_PRESS=1]="LONG_PRESS",t[t.DRAG=2]="DRAG",t[t.FLICK=3]="FLICK",t[t.PINCH_IN=4]="PINCH_IN",t[t.PINCH_OUT=5]="PINCH_OUT"}(mo||(mo={})),function(t){t[t.UP=1]="UP",t[t.DOWN=2]="DOWN",t[t.LEFT=3]="LEFT",t[t.RIGHT=4]="RIGHT"}(go||(go={}));var Ro,Oo=function(){function t(){}return t.prototype.compute=function(t,n){var i=this.yc(n.x)-this.yc(t.x),r=this.yc(n.y)-this.yc(t.y),e=n.time-t.time;return{duration:e,distance:this.wc(i,r),direction:this.mc(i,r),velocity:this.gc(i,r,e)}},t.prototype.computePinchMetrics=function(t,n){var i=this.yc(n.x)-this.yc(t.x),r=this.yc(n.y)-this.yc(t.y);return{duration:n.time-t.time,distance:this.wc(i,r)}},t.prototype.getScale=function(t,n){return Math.abs(n/t-1)},t.prototype.yc=function(t){return t/window.devicePixelRatio},t.prototype.wc=function(t,n){return Math.round(Math.sqrt(t*t+n*n))},t.prototype.gc=function(t,n,i){var r=i/1e3,e=t/r,s=n/r;return Math.round(Math.abs(e)+Math.abs(s))},t.prototype.mc=function(t,n){return Math.abs(t)>Math.abs(n)?t>0?go.RIGHT:go.LEFT:n>0?go.DOWN:go.UP},t}(),To="undefined"!=typeof performance&&!!performance.now,No=To?function(){return performance.now()}:csDate.now,ko=To?null===(Ro=performance.timing)||void 0===Ro?void 0:Ro.navigationStart:0,Co=function(){return Math.round(No()+ko)};function Io(t,n){void 0===n&&(n=0);var i=Math.pow(10,n);return Math.round(t*i)/i}var Mo,Po=function(){function t(){this.Sc={},this.bc=function(){},this.Ac=new Oo,this.Ec()}return t.isGestureDetectionSupported=function(){return"undefined"!=typeof devicePixelRatio},t.prototype.onGesture=function(t){this.bc=t},t.prototype.isValidTouchEvent=function(t){return"touches"in t&&"changedTouches"in t},t.prototype.processActionDown=function(t){if(this.Rc(t)){this.Oc(t)&&this.Ec();var n={x:t.touches[0].clientX,y:t.touches[0].clientY,time:Co()};if(1===t.touches.length)this.Sc.startPinchTime=n.time,this.Sc.firstTouch=n;else if(2===t.touches.length&&(this.Sc.secondTouch={x:t.touches[1].clientX,y:t.touches[1].clientY,time:Co()},this.Sc.firstTouch&&this.Sc.secondTouch)){var i=this.Ac.computePinchMetrics(this.Sc.firstTouch,this.Sc.secondTouch);this.Tc=i.distance}csArray.prototype.push.call(this.Nc,n),this.kc=Rr(t)}},t.prototype.processActionMove=function(){this.Cc=!0},t.prototype.processActionUp=function(t){if(this.Ic(t)){if(csArray.prototype.push.call(this.Nc,{x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY,time:Co()}),this.Mc(t)&&this.Sc.startPinchTime){var n={x:t.touches[0].clientX,y:t.touches[0].clientY,time:this.Sc.startPinchTime},i={x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY,time:Co()};this.Sc.firstTouch&&(this.Sc.firstTouch=n,this.Sc.secondTouch=i),this.Pc(t)}this.Tc||this._c()&&this.xc(t)}},t.prototype.Ec=function(){this.Nc=[],this.kc=null,this.Cc=!1,this.Tc=null,this.Dc=!0},t.prototype.xc=function(t){var n=this.Ac.compute(this.Nc[0],this.Nc[1]);this.Dc=t.isTrusted;var i=this.Cc?this.Lc(n):this.Uc(n);if(this.jc(i.type,t.changedTouches)){var r=t.changedTouches[0];i.pageX=Io(r.pageX,1),i.pageY=Io(r.pageY,1)}this.bc(i,t)},t.prototype.Pc=function(t){if(this.Sc.firstTouch&&this.Sc.secondTouch){var n=this.Ac.computePinchMetrics(this.Sc.firstTouch,this.Sc.secondTouch);this.Dc=t.isTrusted;var i=this.qc(n);i&&this.bc(i,t)}},t.prototype.qc=function(t){if(this.Tc&&!(this.Ac.getScale(this.Tc,t.distance)<.1))return{type:this.Tc>t.distance?mo.PINCH_IN:mo.PINCH_OUT,target:this.kc,distance:t.distance,isTrusted:this.Dc}},t.prototype.Lc=function(t){return{type:t.velocity<100?mo.DRAG:mo.FLICK,target:this.kc,velocity:t.velocity,distance:t.distance,direction:t.direction,isTrusted:this.Dc}},t.prototype.Uc=function(t){return{type:t.duration<1e3?mo.TAP:mo.LONG_PRESS,target:this.kc,isTrusted:this.Dc}},t.prototype.jc=function(t,n){return t===mo.TAP&&n&&1===n.length},t.prototype.Oc=function(t){return 1===t.touches.length},t.prototype._c=function(){return 2===this.Nc.length},t.prototype.Rc=function(t){return t.touches.length>0},t.prototype.Ic=function(t){return t.changedTouches.length>0},t.prototype.Mc=function(t){return this.Cc&&!!this.Tc&&1===t.changedTouches.length&&1===t.touches.length},t}(),_o=function(){function t(t){this.zn=t}return t.prototype.observe=function(){t.Hc&&t.Fc(this.zn)},t.prototype.disconnect=function(){t.Hc&&t.Bc(this.zn)},t.zc=function(n,i){csArray.prototype.forEach.call(on(t.oc),(function(t){return t(n,i)}))},t.Fc=function(n){t.oc.has(n)||(t.oc.add(n),1===t.oc.size&&(t.Vc.onGesture(t.zc),csArray.prototype.forEach.call(t.Ss,(function(t){return dr(t)}))))},t.Bc=function(n){t.oc.delete(n),0===t.oc.size&&csArray.prototype.forEach.call(t.Ss,(function(t){return yr(t)}))},t.Gc=function(n){if(t.Vc.isValidTouchEvent(n))switch(n.type){case"touchstart":t.Vc.processActionDown(n);break;case"touchmove":t.Vc.processActionMove();break;case"touchend":t.Vc.processActionUp(n)}},t.Ss=[{boundElement:e.document,type:"touchstart",listener:function(n){return t.Gc(n)}},{boundElement:e.document,type:"touchmove",listener:function(n){return t.Gc(n)}},{boundElement:e.document,type:"touchend",listener:function(n){return t.Gc(n)}}],t.Hc=Po.isGestureDetectionSupported(),t.oc=new Set,t.Vc=new Po,t}(),xo=function(t){function n(){var n=t.call(this)||this;return n.Jc=new _o(n.Yc.bind(n)),n}return l(n,t),n.prototype.onStart=function(){this.Jc.observe()},n.prototype.onStop=function(){this.Jc.disconnect()},n.prototype.Yc=function(t){var n=this.Wc(t);n&&this.produceEvent(n)},n.prototype.Wc=function(t){if(!this.$c(t))return null;var n,i=(n=t.target,Cr.getProperty(n,Pr));return i?{type:"Gesture",targetId:i,data:{type:t.type,direction:t.direction,distance:t.distance,velocity:t.velocity,pageX:t.pageX,pageY:t.pageY}}:null},n.prototype.$c=function(t){return null!==t.target&&!(_(t.target)&&Dr.isMaskedElementChild(t.target))},n}(us),Do=function(){function t(t){var n=this;this.zn=t,this.Xc=!1,this.Tu={boundElement:e,type:"error",listener:function(t){return n.Kc(t)}}}return t.prototype.observe=function(){dr(this.Tu,this.Xc)},t.prototype.disconnect=function(){yr(this.Tu,this.Xc)},t.prototype.Kc=function(t){this.zn(t)},t}(),Lo=function(t){function n(){var n=t.apply(this,g([],m(arguments),!1))||this;return n.Zc=new Do((function(t){return n.Qc(t)})),n}return l(n,t),n.prototype.Qc=function(t){var n=t.message,i=t.filename,r=t.lineno,e=t.colno;n=null!=n?n:"[NO ERROR MESSAGE]",i=!i||se(i)?"":i,this.produceEvent({type:"JSError",message:n,filename:i,lineno:r,colno:e})},n.prototype.onStart=function(){this.Zc.observe()},n.prototype.onStop=function(){this.Zc.disconnect()},n}(us),Uo=function(t){function n(n){var i=t.call(this)||this;return i.th=n,i.nh=1024,i.ih=150,i}return l(n,t),n.prototype.isListening=function(t){return"JSError"===t.type},n.prototype.processEvent=function(t){return t.message=as.truncate(t.message,this.nh,as.ELLIPSIS),t.filename=as.truncate(t.filename,this.ih,as.ELLIPSIS),this.th(t)},n}(fs),jo=[],qo=!1,Ho=Jt((function(){for(var t=csDate.now(),n=0;n=35)return jo=csArray.prototype.slice.call(jo,n+1),void csSetTimeout(Ho);jo=[],qo=!1}),"executeTasks");!function(t){t[t.Started=0]="Started",t[t.Stopped=1]="Stopped",t[t.Processing=2]="Processing",t[t.Completed=3]="Completed"}(Mo||(Mo={}));var Fo=function(){function t(){var t=this;this.rh=new Lt,this.Zr=Mo.Stopped,this.zn=null,this.eh=function(n){t.Zr!==Mo.Stopped&&n&&(t.zn(n),t.oh())}}return Object.defineProperty(t.prototype,"queueLength",{get:function(){return this.rh.length},enumerable:!1,configurable:!0}),t.prototype.start=function(t){if(this.zn)throw new Error("callback already set");this.Zr=Mo.Started,this.zn=t},t.prototype.push=function(t){this.rh.push(t),this.uh()},t.prototype.stop=function(){this.zn=null,this.Zr=Mo.Stopped,this.rh.clear()},t.pipe=function(n,i){var r,e,s=n,o=new csArray,u=function(n){var i=new t;i.start((function(t){n.pushEvent(t)})),csArray.prototype.push.call(o,i),tn(s,(function(t){return t.subscribe((function(t){return i.push(t)}))})),s=[n]};try{for(var c=p(i),h=c.next();!h.done;h=c.next()){u(h.value)}}catch(t){r={error:t}}finally{try{h&&!h.done&&(e=c.return)&&e.call(c)}finally{if(r)throw r.error}}var a=new Bo(o);return tn(s,(function(t){return t.subscribe((function(t){return a.push(t)}))})),a},t.prototype.hh=function(){return this.Zr===Mo.Stopped},t.prototype.ah=function(){return this.Zr===Mo.Processing},t.prototype.oh=function(){var t=this;this.hh()||(this.rh.isEmpty?this.Zr=Mo.Completed:(this.Zr=Mo.Processing,function(t){if(csArray.prototype.push.call(jo,t),!qo){for(var n=0;n<3;n++)csSetTimeout(Ho);qo=!0}}((function(){var n=t.rh.pop();n instanceof be?n.complete(t.eh):t.eh(n)}))))},t.prototype.uh=function(){this.hh()||this.ah()||this.oh()},t}(),Bo=function(t){function n(n){var i=t.call(this)||this;return i.fh=n,i}return l(n,t),Object.defineProperty(n.prototype,"queueLength",{get:function(){return csArray.prototype.reduce.call(this.fh,(function(t,n){return t+n.queueLength}),0)},enumerable:!1,configurable:!0}),n.prototype.stop=function(){t.prototype.stop.call(this),tn(this.fh,(function(t){return t.stop()}))},n}(Fo),zo=function(){function t(t,n){void 0===n&&(n=[]),this.producers=t,this.processors=n,this.Kn=!1,this.oc=[]}return Object.defineProperty(t.prototype,"pendingEvents",{get:function(){var t,n;return null!==(n=null===(t=this.rh)||void 0===t?void 0:t.queueLength)&&void 0!==n?n:0},enumerable:!1,configurable:!0}),t.prototype.start=function(){if(this.Kn)throw new Error("Recording is already started.");var t=this.oc;this.rh=Fo.pipe(this.producers,this.processors),this.rh.start((function(n){return csArray.prototype.forEach.call(t,(function(t){return t(n)}))})),tn(this.producers,(function(t){return t.start()})),tn(this.processors,(function(t){return t.start()})),this.Kn=!0},t.prototype.stop=function(){var t,n,i,r;this.rh.stop(),this.oc.length=0;try{for(var e=p(this.producers),s=e.next();!s.done;s=e.next()){s.value.stop()}}catch(n){t={error:n}}finally{try{s&&!s.done&&(n=e.return)&&n.call(e)}finally{if(t)throw t.error}}try{for(var o=p(this.processors),u=o.next();!u.done;u=o.next()){u.value.stop()}}catch(t){i={error:t}}finally{try{u&&!u.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}this.Kn=!1,this.oc=[]},t.prototype.subscribe=function(t){var n=this;if(this.Kn)throw new Error("Recording is already started.");return csArray.prototype.push.call(this.oc,t),function(){return n.oc=csArray.prototype.filter.call(n.oc,(function(n){return n!==t}))}},t}(),Vo=function(t){function n(n){var i=t.call(this)||this;return i.pe=n,i}return vn(n,t),n.prototype.subscribe=function(n){return t.prototype.subscribe.call(this,n)},n.prototype.onStart=function(){var t=this;tn(this.pe,(function(n){n.onEvent((function(i){var r;return t.Wr(i,null!==(r=n.eventType)&&void 0!==r?r:"browser")}))})),tn(this.pe,(function(t){var n;null===(n=t.start)||void 0===n||n.call(t)}))},n.prototype.onStop=function(){tn(this.pe,(function(t){var n;return null===(n=t.stop)||void 0===n?void 0:n.call(t)}))},n.prototype.Wr=function(t,n){this.produceEvent({timestamp:ai(),type:"Legacy",originalEvent:t,eventType:n})},n}(us);function Go(t){var n=function(t){var n={type:Jo(t.type)};for(var i in t){var r=t[i];void 0!==r&&"type"!==i&&(n[i]=r)}return n}(t.data);return{type:mr.GESTURE_RECOGNITION,args:[t.targetId,n],date:t.timestamp}}function Jo(t){switch(t){case mo.DRAG:case mo.FLICK:return Sr.SWIPE;case mo.LONG_PRESS:return Sr.LONG_PRESS;case mo.TAP:return Sr.TAP;case mo.PINCH_IN:return Sr.PINCH_IN;case mo.PINCH_OUT:return Sr.PINCH_OUT}}var Yo;function Wo(t){return function(t,n){var i=[],r=!1;return{push:function(t){var e=this;csArray.prototype.push.call(i,t),i.length!==n.batchSize?n.autoFlushDelay&&n.autoFlushDelay>0&&!r&&(r=!0,csSetTimeout((function(){r=!1,i.length>0&&e.flush()}),n.autoFlushDelay)):this.flush()},flush:function(){if(i.length){var n=i;i=[],t(n)}}}}((function(n){var i={visibleInViewPort:n},r={type:mr.TEXT_VISIBILITY,date:ai(),args:[i]};t(r)}),{batchSize:20,autoFlushDelay:1e3})}!function(t){t.REQUEST_START="requestStart",t.DOM_INTERACTIVE="domInteractive",t.TIME_ORIGIN="timeOrigin"}(Yo||(Yo={}));dn(dn({},{connectEnd:"ce",connectStart:"cs",decodedBodySize:"dbs",domainLookupEnd:"dle",domainLookupStart:"dls",duration:"d",fetchStart:"fs",initiatorType:"it",name:"n",nextHopProtocol:"nhp",redirectEnd:"re",redirectStart:"rs",requestStart:"rqs",responseEnd:"rse",responseStart:"rss",responseStatus:"rst",secureConnectionStart:"scs",startTime:"st",transferSize:"ts"}),{domComplete:"dc",domContentLoadedEventEnd:"dclee",domContentLoadedEventStart:"dcles",domInteractive:"di",loadEventEnd:"lee",loadEventStart:"les",type:"t"});var $o=0;var Xo,Ko=function(){function t(t,n,i,r,e){var s=this;this.yh=t,this.ph=n,this.mh=i,this.Ae=r,this.Ee=e,this.gh=function(){},this.Sh=function(){},this.bh=Wo((function(t){return s.gh(t)}))}return Object.defineProperty(t.prototype,"pendingEvents",{get:function(){return this.yh.pendingEvents},enumerable:!1,configurable:!0}),t.prototype.start=function(){var t,n,i=this;this.Ah={processEvent:function(t,n){if(t.originalEvent.type===mr.PERFORMANCE_RESOURCE_TIMING)return $o>=500?null:($o+=1,n(dn(dn({},t.originalEvent),{date:t.timestamp})));n(t.originalEvent)},reset:function(){$o=0}},this.yh.subscribe((function(t){var n,r,e,s,o,u,c=t,h=c.timestamp;switch(c.type){case"Legacy":var a="user"===c.eventType?null!==(n=i.Sh)&&void 0!==n?n:function(){}:i.gh;i.Ah.processEvent(c,a);break;case"CustomElementRegistration":i.gh({type:mr.CUSTOM_ELEMENT_REGISTRATION,date:h,args:[c.tagName]});break;case"DomEvent":!function(t,n,i){var r,e,s=t.timestamp;switch(t.domEvent){case"initialDOM":var o=t.initialDOM,u={type:mr.INITIAL_DOM,date:s,args:[o]};i.emitInitialDomDone(u);break;case"nodesAdded":csArray.prototype.forEach.call(t.nodes,(function(i){n({type:mr.MUTATION_INSERT,date:s,args:[t.target,t.nextSibling,i]})}));break;case"nodesMoved":try{for(var c=gn(t.nodesIds),h=c.next();!h.done;h=c.next()){var a=h.value;n({type:mr.MUTATION_MOVE,date:s,args:[a,t.nextSibling,t.target]})}}catch(t){r={error:t}}finally{try{h&&!h.done&&(e=c.return)&&e.call(c)}finally{if(r)throw r.error}}break;case"nodesRemoved":csArray.prototype.forEach.call(t.nodesIds,(function(t){n({type:mr.MUTATION_REMOVE,date:s,args:[t]})}));break;case"attributeChanged":var f=t.target,l=t.namespace,v=t.attribute,d=t.newValue;n({type:mr.MUTATION_ATTRIBUTE,date:s,args:[f,l,v,d]});break;case"characterDataChanged":f=t.target,d=t.newValue,n({type:mr.MUTATION_CHARACTER_DATA,date:s,args:[f,d]});break;case"cssRuleInserted":f=t.target;var y=t.rule,w=N(p=t.index)?[f,y,p]:[f,y];n({type:mr.STYLESHEET_RULE_INSERT,date:s,args:w});break;case"cssRuleDeleted":f=t.target;var p=t.index;n({type:mr.STYLESHEET_RULE_DELETE,date:s,args:[f,p]});break;case"cssRuleUpdated":f=t.target,y=t.rule,p=t.index,n({type:mr.STYLESHEET_RULE_UPDATE,date:s,args:[f,y,p]});break;case"shadowRootAttached":f=t.target;var m=t.shadowRoot;n({type:mr.ATTACH_SHADOW,date:s,args:[f,m]});break;case"adoptedStyleSheetRegistered":var g=t.sheetId,S=t.cssRules;n({type:mr.REGISTER_ADOPTED_STYLE_SHEET,date:s,args:[g,{cssRules:S}]});break;case"adoptedStyleSheetsSet":f=t.target;var b=t.sheetsIds;n({type:mr.SET_ADOPTED_STYLE_SHEETS,date:s,args:[f,b]});break;case"adoptedStyleSheetRuleInserted":g=t.sheetId,y=t.rule,w=N(p=t.index)?[g,y,p]:[g,y],n({type:mr.ADOPTED_STYLESHEET_RULE_INSERT,date:s,args:w});break;case"adoptedStyleSheetRuleDeleted":g=t.sheetId,p=t.index,n({type:mr.ADOPTED_STYLESHEET_RULE_DELETE,date:s,args:[g,p]});break;case"adoptedStyleSheetRuleUpdated":w=[g=t.sheetId,y=t.rule,p=t.index],n({type:mr.ADOPTED_STYLESHEET_RULE_UPDATE,date:s,args:w});break;default:Ji.error("translateDOMEvent: DOMEvent not supported")}}(c,i.gh,i.ph);break;case"InputEvent":var f=function(t){switch(t.inputType){case"text":return{type:mr.INPUT_TEXT,args:[t.target,t.value],date:t.timestamp};case"select":return{type:mr.INPUT_SELECT,args:[t.target,t.selectedIndex],date:t.timestamp};case"checkable":return{type:mr.INPUT_CHECKABLE,args:[t.target,t.checked],date:t.timestamp}}}(c);null===(r=i.Sh)||void 0===r||r.call(i,f);break;case"encryptedCharacterDataChanged":var l=c.target,v=c.rawData,d=c.encryptedData,y=c.encryptionMetadata;i.gh({type:mr.MUTATION_ENCRYPTED_CHARACTER_DATA,date:h,args:[l,v,d,y]});break;case"StaticResource":var w=c.url;i.gh({type:mr.STATIC_RESOURCE_URL,date:h,args:[w]});break;case"ResizeMaskedElement":l=c.target;var p=c.width,m=c.height;i.gh({type:mr.MUTATION_ATTRIBUTE,date:h,args:[l,"","style","width:".concat(p,"px !important;height:").concat(m,"px !important;")]});break;case"Gesture":var g=Go(t);null===(e=i.Sh)||void 0===e||e.call(i,g);break;case"TextVisibility":i.bh.push(c.text);break;case"StaticResourceManagerEvent":null===(s=i.mh)||void 0===s||s.processEvent(c);break;case"screenResize":p=c.width,m=c.height;var S={type:mr.SCREEN_RESIZE,date:h,args:[p,m]};i.gh(S);break;case"viewportResize":p=c.width,m=c.height;var b={type:mr.RESIZE,date:h,args:[p,m]};i.gh(b);break;case"PerformanceTiming":i.gh(function(t){return{type:mr.PERFORMANCE_TIMINGS,args:[{performanceTiming:Yo.REQUEST_START,timestamp:t.timings.requestStart},{performanceTiming:Yo.DOM_INTERACTIVE,timestamp:t.timings.domInteractive},{performanceTiming:Yo.TIME_ORIGIN,timestamp:t.timings.timeOrigin}],date:t.timestamp}}(c));break;case"CustomError":(A=null===(o=i.Ee)||void 0===o?void 0:o.translate(c))&&i.gh(A);break;case"JSError":(A=null===(u=i.Ae)||void 0===u?void 0:u.translate(c))&&i.gh(A);break;case"VideoEvent":var A;(A=function(t){switch(t.videoEventType){case"play":return{type:mr.VIDEO_PLAY,args:[t.nodeId],date:t.timestamp};case"pause":return{type:mr.VIDEO_PAUSE,args:[t.nodeId],date:t.timestamp};case"seeked":var n=t;return{type:mr.VIDEO_SEEK,args:[n.nodeId,n.newTimePositionInSec],date:t.timestamp};default:return null}}(c))&&i.gh(A);break;case"warning":Ji.warn(c.message);break;default:Ji.error("WebRecorderEventTranslator: Event not supported (".concat(c.type,")"))}})),this.ph.emitInitialDomStart(),null===(t=this.Ae)||void 0===t||t.start(),null===(n=this.Ee)||void 0===n||n.start(),this.yh.start()},t.prototype.stop=function(){var t,n,i;this.reset(),this.flush(),this.yh.stop(),null===(t=this.mh)||void 0===t||t.flushEvents(),null===(n=this.Ae)||void 0===n||n.stop(),null===(i=this.Ee)||void 0===i||i.stop()},t.prototype.flush=function(){this.bh.flush()},t.prototype.onEvent=function(t,n){var i,r=this;this.gh=t,this.Sh=n,null===(i=this.mh)||void 0===i||i.onEvent((function(t){return r.gh(t)}))},t.prototype.reset=function(){this.Ah.reset()},t}(),Zo=function(){function t(t){void 0===t&&(t=100),this.Eh=t,this.Rh={},this.Oh=null,this.mr="original-resource-name"}return t.prototype.onEvent=function(t){this.Th=t},t.prototype.processEvent=function(t){this.Nh(t.resourceId,t.resource.hash,t.originalResourceName),this.kh(t)},t.prototype.flushEvents=function(){this.Oh&&csClearTimeout(this.Oh),this.Ch()},t.prototype.onSendStaticResource=function(t){this.kh=t},t.prototype.Ch=function(){if(Object.keys(this.Rh).length){var t={type:mr.RESOURCE_HASHES,date:ai(),args:[this.Rh]};this.Oh=null,this.Rh={},this.Th(t)}},t.prototype.Nh=function(t,n,i){var r=this,e=n;i&&(e+="?".concat(this.mr,"=").concat(i)),this.Rh[t]=e,this.Oh||(this.Oh=window.csSetTimeout((function(){return r.Ch()}),this.Eh))},t}(),Qo=function(){function t(t,n,i){this.ph=t,this.Lt=n,this.Ih=i,this.Mh=Zr.ETR_DISABLED,this.Ph=Zr.ETR_PENDING,this._h=!0}return t.prototype.getEtrStatus=function(t){void 0===t&&(t=this.Lt.getSession());var n=null==t?void 0:t.etrStatus;return this.xh()&&n===Zr.ETR_SAVED_SESSION?n:this.Mh},t.prototype.onEventTriggerRecording=function(t,n){switch(n){case Kr.ETR_PAGE:this.Dh(Zr.ETR_SAVED_PAGE);break;case Kr.ETR_LEGACY:case Kr.ETR_SESSION:this.Dh(Zr.ETR_SAVED_SESSION)}},t.prototype.handleCollectStateChange=function(t){this._h=!1,t?this.Lh(this.Ph):this.Lh(Zr.ETR_DISABLED)},t.prototype.handleArtificialPageview=function(){this.Ih?(this._h=!0,this.Lh(Zr.ETR_DISABLED)):this.xh()&&this.Lh(Zr.ETR_PENDING)},t.prototype.handleSessionRenewal=function(){this._h=!0,this.Lh(Zr.ETR_DISABLED)},t.prototype.Lh=function(t){this.Mh=t,this.Ph=Zr.ETR_PENDING,this.Uh(t),this.ph.emitRecordingContextChange()},t.prototype.Dh=function(t){this._h?Number(t)>Number(this.Ph)&&(this.Ph=t):this.xh()&&Number(t)>Number(this.Mh)&&(this.Mh=t,this.Uh(t),this.ph.emitRecordingContextChange())},t.prototype.Uh=function(t){var n=this.Lt.getSession();null!==n&&n.etrStatus===Zr.ETR_NOT_SAVED_SESSION&&t===Zr.ETR_SAVED_SESSION&&(n.etrStatus=t,this.Lt.setSession(n))},t.prototype.xh=function(){return this.Mh!==Zr.ETR_DISABLED},t}();function tu(t,n){var i,r,e,s,o=null,u=function(c){var h=fi();if(!c&&null!==o){var a=n-(h-o);if(a>0)return void(r=window.csSetTimeout(u,a))}var f=h-e;r=null,o=null,e=null,s=t.apply(void 0,Rt([f],Et(i),!1))},c=function(){for(var t=[],c=0;c0&&csArray.prototype.forEach.call(t.nestedResources,(function(t){n.Wh(t.hash,t.data)}))},n.prototype.Wh=function(t,n){this.Fh.has(t)||(this.Fh.add(t),this.Hh[t]=n,this.Gh())},n.prototype.Jh=function(){return pn(this,void 0,void 0,(function(){var t,n,i,r=this;return mn(this,(function(e){switch(e.label){case 0:return t=this.Hh,this.Hh={},[4,this.$h(t)];case 1:return(n=e.sent()).length?(i=this.Xh(n),[4,Promise.all(csArray.prototype.map.call(i,(function(t){return window.fetch(r.Vh,{method:"POST",body:t})})))]):[2];case 2:return e.sent(),[2]}}))}))},n.prototype.Kh=function(t){return pn(this,void 0,void 0,(function(){var n,i;return mn(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),(n=Object.keys(t)).length?(i={projectId:this.Bh.pid,filter:Xo.NOT_EXIST,hashes:n,touch:!0},[4,window.fetch(this.zh,{method:"POST",body:csJSON.stringify(i)})]):[2,[]];case 1:return[4,r.sent().json()];case 2:return[2,r.sent()];case 3:return r.sent(),[2,[]];case 4:return[2]}}))}))},n.prototype.$h=function(t){return pn(this,void 0,void 0,(function(){var n,i;return mn(this,(function(r){switch(r.label){case 0:return n=[],[4,this.Kh(t)];case 1:return i=r.sent(),csArray.prototype.forEach.call(i,(function(i){var r=t[i];r?csArray.prototype.push.call(n,{hash:i,data:r}):Ji.warn("SRM: received unknown hash: "+i)})),[2,n]}}))}))},n.prototype.Xh=function(t){var n,i,r=0,e=[new FormData];try{for(var s=gn(t),o=s.next();!o.done;o=s.next()){var u=o.value,c=u.data,h=u.hash,a=e.length-1;if((r+=c.size)<8388608)e[a].append("",c,h);else{var f=new FormData;f.append("",c,h),r=c.size,csArray.prototype.push.call(e,f)}}}catch(t){n={error:t}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return e},n}(zr),su=function(){function t(t){this.Zh=t,this.Qh=20,this.ta=0,this.Lr=!1}return t.prototype.translate=function(t){if(this.ta>=this.Qh)return this.Zh.stop(),null;this.ta+=1;var n=t.filename,i=t.message,r=t.lineno,e=t.colno,s=t.timestamp;return{type:mr.JAVASCRIPT_ERROR,date:s,args:[{errorType:"jsError",message:i,filename:n,lineno:r,colno:e}]}},t.prototype.start=function(){this.Lr||(this.ta=0,this.Lr=!0)},t.prototype.stop=function(){this.Lr=!1},t}(),ou=function(){function t(){this.Qh=20,this.na=0,this.Lr=!1}return t.prototype.translate=function(t){if(this.na>=this.Qh)return null;this.na+=1;var n=t.message,i=t.attributes,r=t.timestamp;return{type:mr.CUSTOM_ERROR,date:r,args:[{errorType:"customError",message:n,attributes:i}]}},t.prototype.start=function(){this.Lr||(this.na=0,this.Lr=!0)},t.prototype.stop=function(){this.Lr=!1},t}(),uu="v2/recording",cu=["isRecording"],hu=["replay:resourceManager:enableForOnlineResource:nextPageviewOnly","cssrm:onlineAssets:activateForNextPageview"],au=["replay:resourceManager:getStatus","cssrm:getStatus"],fu=function(){function t(t,n,i,r,e,s,o,u,c,h,a,f,l,v,d,y,w,p,m,g,S,b){this.ia=t,this.Lt=n,this.Rt=i,this.Bh=r,this.ra=e,this.Ot=s,this.ce=o,this.ea=u,this.he=c,this.ae=h,this.fe=a,this.sa=f,this.ph=l,this.oa=v,this.ua=d,this.ca=y,this.ha=w,this.mu=p,this.be=m,this.aa=g,this.fa=S,this.le=b}return t.prototype.init=function(){var t,n=this,i=[],r=[];csArray.prototype.push.call(r,new _s),this.va=new so(this.aa.shouldUseAnonymization(),this.Rt.whitelistedAttributes,this.Ot,this.Rt.anonymizeDigits),this.da();var e=new Ps("csPersisted");this.ya(e);var s=new Fr;this.se=new Hr;var o=new Ns;csArray.prototype.push.call(i,o),this.Rt.useStaticResourceManager&&ds.isSupported()&&(this.Se=new ds,this.mh=new Zo,this.wa=new eu(this.mh,this.Rt.getStaticResourceManagerUri(),this.Bh),this.ua.addListener(this.wa),csArray.prototype.push.call(r,this.Se));var u=new bs(s,this.Bh,{getRequestParameters:function(){return{let:n.recordingService.getRecordingLastEventTimestamp()}}},{getRequestParameters:function(){return{rst:n.recordingService.getRecordingStartTimestamp()}}},{getRequestParameters:function(){return{rt:csArray.prototype.join.call(n.Lt.getCollectStates(),",")}}}),c=new ks("".concat(this.Rt.getRecordingUri(),"/").concat(uu));csArray.prototype.push.call(r,this.va),csArray.prototype.push.call(r,new oo(this.mu)),csArray.prototype.push.call(r,new co),this.pa=new jr,this.pa.init(),csArray.prototype.push.call(i,this.pa),this.de=new Ss(e,c,this.ve),csArray.prototype.push.call(i,new As(window.location,this.Ot));var h=new hs,a=new ao,f=new vo,l=new So(this.le),v=new bo,d=[a,this.ea,h,new Vo(csArray.prototype.filter.call(i,(function(t){return t}))),v,new Eo,new xo,l,f];this.Rt.jsErrorsEnabled&&(this.Zh=new Lo,this.ma=new Uo((function(t){return n.he.anonymize(t)})),this.Ae=new su(this.Zh),csArray.prototype.push.call(d,this.Zh),csArray.prototype.push.call(r,this.ma)),(null===(t=this.Rt.customErrors)||void 0===t?void 0:t.enabled)&&(this.Ee=new ou);var y=new zo(d,r),w=new Ko(y,this.ph,this.mh,this.Ae,this.Ee),p=[h,a,f,l,v];this.recordingService=new gs(this.Rt,this.se,u,s,this.ce,this.Lt,this.he,this.ae,this.fe,this.le,this.ve,this.de,c,w,i,p,this.Se,this.be,this.Ae,this.Ee),this.oa.addListener(this.recordingService),this.ua.addListener(this.recordingService),this.recordingService.init(),this.ra.register(cu,(function(){return n.Lt.isReplayRecorded()&&!n.ca.isUrlExcludedForSessionReplay()})),this.ra.register(hu,(function(){n.recordingService.activateOnlineAssetsOnNextPageview(),n.ph.emitRecordingContextChange()})),this.ra.register(au,(function(){return n.recordingService.getStaticResourceManagerStatus()})),this.ga=new Qo(this.ph,this.Lt,this.Rt.malkaUrlEnabled),this.oa.addListener(this.ga),this.ia.enableRecordingContext(this.recordingService,this.Lt,this.ga),this.Sa()},t.prototype.onAfterNaturalPageView=function(){var t;this.ca.isUrlExcludedForSessionReplay()?this.recordingService.resetOnlineAssetsOnPageview():this.recordingService.updateOnlineAssetsOnPageview(),null===(t=this.wa)||void 0===t||t.initState()},t.prototype.onStartTracking=function(){this.de.recover(),this.da(),this.Lt.isReplayRecorded()&&!this.ca.isUrlExcludedForSessionReplay()&&(this.Lt.isTemporarilyRecorded()&&this.recordingService.blockSendingEventsFromQuotaService(),this.ba())},t.prototype.onArtificialPageViewEnd=function(){!this.Lt.isReplayRecorded()||this.ca.isUrlExcludedForSessionReplay()||this.Lt.isTemporarilyRecorded()||this.de.sendLastMessageBeacon(),this.recordingService.clearStates()},t.prototype.onBeforeArtificialPageView=function(){this.ga.handleArtificialPageview()},t.prototype.onAfterArtificialPageView=function(){this.da(),this.Lt.isReplayRecorded()&&!this.ca.isUrlExcludedForSessionReplay()?(this.Lt.isTemporarilyRecorded()&&this.recordingService.blockSendingEventsFromQuotaService(),this.recordingService.updateOnlineAssetsOnPageview(),this.Aa()):(this.recordingService.resetOnlineAssetsOnPageview(),this.Ea())},t.prototype.onBeforeSessionRenewal=function(){this.ga.handleSessionRenewal(),this.recordingService.clearStates(),this.Ea()},t.prototype.onOptout=function(){this.Ea(),this.recordingService.onOptOut()},t.prototype.onReplayUnanonymizationConsentGranted=function(){this.da(),this.recordingService.triggerUnanonymizationConsentGranted(),this.ph.emitRecordingContextChange()},t.prototype.onReplayUnanonymizationConsentWithdrawn=function(){this.da(),this.recordingService.triggerUnanonymizationConsentWithdrawn(),this.ph.emitRecordingContextChange()},t.prototype.onCollectStateChange=function(t,n){if(t===$r.QUOTA_REACHED||t===$r.ANALYTICS_ONLY&&n===Xr.ETR_OFF)this.recordingService.clearEvents(),this.Ea();else{this.ve.setQueryParams({rt:csArray.prototype.join.call(this.Lt.getCollectStates(),",")}),this.recordingService.allowSendingEventsFromQuotaService(),this.recordingService.pushEvents();var i=t===$r.ANALYTICS_ONLY&&n===Xr.ETR_ON;this.ga.handleCollectStateChange(i)}},t.prototype.onInitialDomStart=function(){this.recordingService.blockSendingEventsFromSerialization(),this.de.blockSendingLastMessage()},t.prototype.onInitialDomDone=function(t){this.recordingService.allowSendingEventsFromSerialization(),this.recordingService.addInitialDom(t),this.de.allowSendingLastMessage(),this.pa.start(),this.recordingService.pushEvents()},t.prototype.onAfterReplayRecordingConsentGranted=function(){this.Lt.isReplayRecorded()&&!this.ca.isUrlExcludedForSessionReplay()&&(this.Lt.isTemporarilyRecorded()&&this.recordingService.blockSendingEventsFromQuotaService(),this.ba(),this.recordingService.triggerRecordingForSessionGranted())},t.prototype.onAfterReplayRecordingConsentWithdrawn=function(){this.recordingService.isRecording()&&(this.recordingService.triggerRecordingForSessionWithdrawn(),this.recordingService.clearStates(),this.Ea())},t.prototype.Sa=function(){var t,n,i,r;(null===(n=null===(t=this.Rt.experimental.sessionReplay)||void 0===t?void 0:t.shadowRoot)||void 0===n?void 0:n.filterByHostSelector)&&tn(null===(r=null===(i=this.Rt.experimental.sessionReplay)||void 0===i?void 0:i.shadowRoot)||void 0===r?void 0:r.filterByHostSelector,(function(t){Lr(t)&&Ge.setShadowRootFilter((function(n){try{return nt.call(n.host,t)}catch(t){return!1}}))}))},t.prototype.ba=function(){this.recordingService.start(),this.de.start(),this.ph.emitRecordingContextChange()},t.prototype.Ea=function(){var t;void 0===t&&(t=!1),t&&(Mr=1),Pr=csSymbol("nodeIdentifier"),this.recordingService.stop(),this.de.stop(),this.ph.emitRecordingContextChange()},t.prototype.Aa=function(){this.Ea(),this.ba()},t.prototype.ya=function(t){this.ve=this.ha.create("".concat(this.Rt.getRecordingUri(),"/").concat(uu),!0,"byteArray",t,["rt","v","pid","pn","sn","uu"])},t.prototype.da=function(){var t,n=this.aa.shouldUseAnonymization();this.va.setAnonymization(n),null===(t=this.Ra)||void 0===t||t.setAnonymization(n)},wn([Xt("Recording.onStartTracking")],t.prototype,"onStartTracking",null),wn([Xt("onInitialDomDone")],t.prototype,"onInitialDomDone",null),t}();!function(t){t[t.NOT_NEEDED=1]="NOT_NEEDED",t[t.NOT_EXPRESSED=2]="NOT_EXPRESSED",t[t.WITHDRAWN=3]="WITHDRAWN",t[t.GRANTED=4]="GRANTED"}(iu||(iu={})),function(t){t.isReplayConsentNeeded=function(t){return t.replayConsentRequiredForSession},t.isRecordingBlockedByConsent=function(t){return t.collectState===$r.RECORDING_BLOCKED_BY_CONSENT_NOT_EXPRESSED||t.collectState===$r.RECORDING_BLOCKED_BY_CONSENT_WITHDRAWN},t.isRecordingWithDrawn=function(t){return t.collectState===$r.RECORDING_BLOCKED_BY_CONSENT_WITHDRAWN}}(ru||(ru={}));var lu=function(){function t(t,n,i,r){this.Dt=t,this.Lt=n,this.Rt=i,this.Oa=r,this.Ta=!1}return t.prototype.isNaturalPageViewSent=function(){return this.Ta},t.prototype.setNaturalPageViewSent=function(t){this.Ta=t},t.prototype.getTrackingContext=function(){var t=this.Lt.getSession();if(!t)return null;var n=this.getSessionKey();if(!n)return null;var i=this.Rt.projectId,r=this.Rt.uxaDomain,e=t.pageNumber,s=this.Oa.getPageViewType(),o=this.Lt.isReplayRecorded(),u=this.Na(t);return dn({projectId:i,sessionKey:n,pageNumber:e,pageViewType:s,isRecording:o,uxaDomain:r,recordingConsentState:u},this.Rt.smbConfig)},t.prototype.getSessionKey=function(){var t=this.Dt.getVisitor();return t?"".concat(t.id,".").concat(t.visitsCount):null},t.prototype.Na=function(t){return ru.isReplayConsentNeeded(this.Rt)?t.collectState===$r.RECORDING_BLOCKED_BY_CONSENT_NOT_EXPRESSED?iu.NOT_EXPRESSED:t.collectState===$r.RECORDING_BLOCKED_BY_CONSENT_WITHDRAWN?iu.WITHDRAWN:iu.GRANTED:iu.NOT_NEEDED},t}(),vu=function(){function t(t){this.ka=t,this.Ca=[]}return t.prototype.handleCommand=function(t){if(C(t)&&(this.Ia(t),this.ka.isNaturalPageViewSent())){var n=this.ka.getTrackingContext();null!==n&&this.Ma(t,n)}},t.prototype.Ia=function(t){csArray.prototype.push.call(this.Ca,t)},t.prototype.executeRegisteredCallbacks=function(){var t=this,n=this.ka.getTrackingContext();null!==n&&csArray.prototype.map.call(this.Ca,(function(i){return t.Ma(i,n)}))},t.prototype.Ma=function(t,n){csSetTimeout((function(){t(n)}))},t}(),du=function(){function t(t){this.ka=t,this.Pa=[]}return t.prototype.handleCommand=function(t){return this.ka.isNaturalPageViewSent()?this._a(t):void this.xa(t)},t.prototype._a=function(t){var n=this.ka.getSessionKey();return this.Da(t)&&null!==n&&this.Ma(t.callback,n),n},t.prototype.xa=function(t){this.Da(t)&&csArray.prototype.push.call(this.Pa,t.callback)},t.prototype.flushPendingCallbacks=function(){var t=this,n=this.ka.getSessionKey();null!==n&&csArray.prototype.forEach.call(this.Pa,(function(i){t.Ma(i,n)})),this.Pa=[]},t.prototype.Da=function(t){return t&&"function"==typeof t.callback},t.prototype.Ma=function(t,n){csSetTimeout((function(){t(n)}))},t}(),yu=function(){function t(t,n){this.La=t,this.ka=n}return t.prototype.onTrackingContextRequestCallback=function(t){var n=this.ka.getTrackingContext();null!==n&&this.La.sendToChildren(Li.TrackingContextResultMessage,dn(dn({},t),{trackingContext:n}))},t.prototype.onIframeIntegrationCallback=function(t){if(this.ka.isNaturalPageViewSent()){var n=this.ka.getTrackingContext();null!==n&&(t.trackingContext=n,this.La.sendToChildren(Li.IntegrationCallback,t))}},t.prototype.sendAfterPageViewCallbackToChildren=function(){var t=this.ka.getTrackingContext();if(null!==t){var n={trackingContext:t,initiator:xi.AfterPageView};this.La.sendToChildren(Li.IntegrationCallback,n)}},t}();function wu(t,n){var i,r=t.isRecording,e=t.pageNumber,s=t.projectId,o=t.siteId,u=t.uxaDomain,c=t.csLiteDomain,h=/^(.+)\.(\d+)$/.exec(t.sessionKey);if(r&&h){var a=Sn(h,3),f=a[1],l=a[2];i=o?"".concat(c,"/sites/").concat(o,"/player?uu=").concat(f,"&sn=").concat(l,"&pn=").concat(e):"".concat(u,"/quick-playback/index.html?pid=").concat(s,"&uu=").concat(f,"&sn=").concat(l,"&pvid=").concat(e,"&recordingType=cs"),n.withTimestamp&&(i+="&t=".concat(ai()-n.recordingStartTimestamp))}return{replayLink:i,isRecording:r}}var pu,mu,gu=function(){function t(t){this.ka=t}return t.prototype.handleCommand=function(t,n){T(t)&&C(n)&&this.Ma(t,n)},t.prototype.Ma=function(t,n){var i=this;csSetTimeout((function(){var r=i.ka.getTrackingContext();if(r){var e=wu(r,t);n(e)}}))},t}(),Su=function(){function t(){this.Ca=new Set}return t.prototype.handleCommand=function(t,n){var i=this;return C(t)?this.Ca.has(t)?null:(this.Ca.add(t),n&&(this.So=n,this.Ua(t,n)),function(){return i.Ca.delete(t)}):null},t.prototype.executeCallbacks=function(t){var n=this;this.ja(t)&&(this.So=t,this.Ca.forEach((function(i){return n.Ua(i,t)})))},t.prototype.Ua=function(t,n){csSetTimeout((function(){try{t(n)}catch(t){}}))},t.prototype.ja=function(t){var n=t.isRecording,i=t.recordingStartTimestamp,r=t.etrState,e=t.etrStatus,s=t.collectState;return this.So&&(this.So.isRecording!==n||this.So.recordingStartTimestamp!==i||this.So.etrState!==r||this.So.etrStatus!==e||this.So.collectState!==s)},t}(),bu=["afterPageView"],Au=["getSessionKey"],Eu=["onRecordingContextChange","onRecordingStateChange"],Ru=["replay:link:generate"],Ou=function(){function t(t,n,i,r,e,s,o,u){this.Dt=t,this.Lt=n,this.ra=i,this.qa=r,this.La=e,this.Rt=s,this.Oa=o,this.ia=u}return t.prototype.init=function(){var t=this;this.ka=new lu(this.Dt,this.Lt,this.Rt,this.Oa),this.Ha=new vu(this.ka),this.Fa=new du(this.ka),this.Ba=new Su,this.za=new gu(this.ka),this.Va=new yu(this.La,this.ka),this.qa.addListener(this.Va),this.ra.register(Au,(function(n){return t.Fa.handleCommand(n)})),this.ra.register(bu,(function(n){return t.Ha.handleCommand(n)})),this.ra.register(Eu,(function(n){t.Ba.handleCommand(n,t.ia.getRecordingContext())})),this.ra.register(Ru,(function(n,i){t.Ga&&t.za.handleCommand(dn(dn({},n),{recordingStartTimestamp:t.ia.getRecordingContext().recordingStartTimestamp}),i)}))},t.prototype.onAfterNaturalPageView=function(){this.ka.setNaturalPageViewSent(!0),this.Fa.flushPendingCallbacks(),this.Ha.executeRegisteredCallbacks(),this.Va.sendAfterPageViewCallbackToChildren()},t.prototype.onAfterArtificialPageView=function(){this.Ha.executeRegisteredCallbacks(),this.Va.sendAfterPageViewCallbackToChildren()},t.prototype.onCollectStateChange=function(){this.executeRecordingContextChangeCallbacks()},t.prototype.onRecordingContextChange=function(){this.executeRecordingContextChangeCallbacks()},t.prototype.executeRecordingContextChangeCallbacks=function(){this.Ba.executeCallbacks(this.ia.getRecordingContext())},t.prototype.setRecordingService=function(t){this.Ga=t},wn([nu()],t.prototype,"executeRecordingContextChangeCallbacks",null),t}(),Tu=function(){function t(t,n){this.key=csString.prototype.slice.call(t,0,512),this.value=R(n)?csString.prototype.slice.call(n,0,255):n}return t.isKeyValid=function(t){return R(t)},t.isValueValid=function(t){return R(t)||E(t)},t}(),Nu=function(t){function n(n,i){var r=t.call(this)||this;return r.Ja=n,r.Ot=i,r.Ya=[],r}return vn(n,t),n.prototype.onStart=function(){var t=this;csArray.prototype.forEach.call(this.Ya,(function(n){return t.trackDynamicVariable(n.key,n.value)})),this.Ya=[]},n.prototype.onStop=function(){},n.prototype.trackDynamicVariable=function(t,n){if(this.isStarted){if(Tu.isKeyValid(t)&&Tu.isValueValid(n)){var i=this.Ot.anonymizePII(t),r=E(n)?n:this.Ot.anonymizePII(n),e=this.Ot.checkAndAnonymizePII(t),s=this.Ot.checkAndAnonymizePII(csString(n));i!==e&&_t.implementation("[PII] Dynamic variable name may contain CC: ".concat(e)),csString(r)!==s&&_t.implementation("[PII] Dynamic variable value may contain CC: ".concat(s)),this.Ja.add(new Tu(i,r))}}else csArray.prototype.push.call(this.Ya,{key:t,value:n})},n}(zr),ku=function(){function t(t){this.Wa=t,this.Ja=[]}return t.prototype.add=function(t){csArray.prototype.push.call(this.Ja,t),this.setBatchReadyCall()},t.prototype.clear=function(){this.Ja=[]},t.prototype.onBatchReady=function(t){this.$a=t},t.prototype.getRequestParameters=function(){var t,n,i={};try{for(var r=gn(this.Ja),e=r.next();!e.done;e=r.next()){var s=e.value;i[s.key]=s.value}}catch(n){t={error:n}}finally{try{e&&!e.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return{dv:this.Wa.compressSync(csJSON.stringify(i),"base64"),ct:this.Wa.algorithm}},t.prototype.setBatchReadyCall=function(){this.$a()},wn([nu(),xt("dynamicVariablesBatchReady")],t.prototype,"setBatchReadyCall",null),t}(),Cu=["trackDynamicVariable"],Iu=function(){function t(t,n,i,r,e,s){this.ra=t,this.Lt=n,this.Rt=i,this.Bh=r,this.Wa=e,this.Ot=s,this.it=new Ln(this.Rt.getTrackerUri(),"dvar"),this.Ja=new ku(this.Wa),this.Xa=new Nu(this.Ja,this.Ot)}return t.prototype.init=function(){var t=this;this.it.setRequestParametersProviders(this.Bh,this.Ja),this.Lt.setDynamicVariablesService(this.Xa),this.Ja.onBatchReady((function(){return t.it.send()})),this.it.after((function(){return t.Ja.clear()})),this.ra.register(Cu,(function(n){var i=void 0===n?{}:n,r=i.key,e=i.value;t.Xa.trackDynamicVariable(r,e)}))},t.prototype.onStartTracking=function(){this.Xa.start()},t}(),Mu=function(){function t(t,n){this.id=t,this.revenue=n}return t.from=function(n){var i=new t(n.id,parseFloat(n.revenue));return isNaN(parseFloat(n.tax))||(i.tax=parseFloat(n.tax)),isNaN(parseFloat(n.shipping))||(i.shipping=parseFloat(n.shipping)),R(n.currency)&&n.currency.length<=10&&(i.currency=n.currency),i},t.prototype.hasValidRevenue=function(){return!isNaN(this.revenue)&&this.revenue>=0},t.isValid=function(t){return k(t)&&A(t.revenue)&&R(t.currency)&&t.currency.length<=10&&(!k(t.id)||R(t.id))},t}(),Pu=function(){function t(t,n,i,r){this.id=t,this.name=n,this.price=i,this.quantity=r}return t.from=function(n){if(!t.Ka(n))return null;var i=new t(n.id,n.name,parseFloat(n.price),parseInt(n.quantity,10));return N(n.sku)&&(i.sku=n.sku),N(n.category)&&(i.category=n.category),N(n.merchant)&&n.merchant.length>0&&(i.merchant=n.merchant.slice(0,100)),i},t.Ka=function(t){return k(t)&&R(t.id)&&R(t.name)&&A(parseFloat(t.price))&&E(parseInt(t.quantity,10))&&(!N(t.sku)||R(t.sku))&&(!N(t.category)||R(t.category))&&(!N(t.merchant)||R(t.merchant))},t}(),_u=function(t){function n(n,i,r){var e=t.call(this)||this;return e.Ot=n,e.Za=i,e.ce=r,e.Qa=[],e.clear(),e}return vn(n,t),n.prototype.onStart=function(){var t=this;csArray.prototype.forEach.call(this.Qa,(function(n){t.tf=n.transaction,t.nf=n.transactionItems,t.sendTransaction()})),this.Qa=[]},n.prototype.onStop=function(){},n.prototype.addTransaction=function(t){var n=this.Ot.anonymizeFields(t,["id"]);this.tf=Mu.from(n)},n.prototype.getTransaction=function(){return this.tf},n.prototype.sendTransaction=function(){if(!this.isStarted)return csArray.prototype.push.call(this.Qa,{transaction:this.tf,transactionItems:bn([],Sn(this.nf),!1)}),void this.clear();null!==this.Za&&null!==this.ce&&(this.ce.refreshSession(),this.ce.isSessionValid()&&(this.tf.hasValidRevenue()?this.Za.send():Ji.warn("Transaction Service: unable to send transaction with invalid parameters")))},n.prototype.addItem=function(t){if(!C(t)){var n=this.Ot.anonymizeFields(t,["id","name","sku","category"]),i=Pu.from(n);null!==i&&csArray.prototype.push.call(this.nf,i)}},n.prototype.getItems=function(){return this.nf},n.prototype.clear=function(){this.tf=Mu.from({revenue:NaN}),this.nf=[]},n.prototype.getRequestParameters=function(){var t={id:this.tf.id?"".concat(this.tf.id):"",revenue:"".concat(this.tf.revenue)};return N(this.tf.tax)&&(t.tax="".concat(this.tf.tax)),N(this.tf.shipping)&&(t.shipping="".concat(this.tf.shipping)),N(this.tf.currency)&&(t.cu="".concat(this.tf.currency)),t.items=window.csJSON.stringify(this.nf),t},n}(zr),xu=function(t){function n(n,i){var r=t.call(this)||this;return r.if=n,r.ce=i,r.rf=null,r.ef=[],r}return vn(n,t),n.prototype.onStart=function(){var t=this;csArray.prototype.forEach.call(this.ef,(function(n){t.rf=n,t.sf()})),this.ef=[]},n.prototype.onStop=function(){},n.prototype.addToCart=function(t){var n={};R(t.sku)&&(n.sku=csString.prototype.slice.call(t.sku,0,100)),R(t.merchant)&&(n.merchant=csString.prototype.slice.call(t.merchant,0,100)),(n.sku||n.merchant)&&(this.rf=n,this.sf())},n.prototype.getCartItem=function(){return this.rf},n.prototype.sf=function(){if(!this.isStarted&&null!==this.rf)return csArray.prototype.push.call(this.ef,this.rf),void this.clear();this.ce.refreshSession(),this.ce.isSessionValid()&&this.if.send()},n.prototype.clear=function(){this.rf=null},n.prototype.getRequestParameters=function(){if(!this.rf)return{};var t={};return R(this.rf.sku)&&this.rf.sku.length>0&&(t.sku=this.rf.sku),R(this.rf.merchant)&&this.rf.merchant.length>0&&(t.me=this.rf.merchant),t},n}(zr),Du=["ecommerce:addToCart","ec:cart:add"],Lu=["ecommerce:addTransaction","ec:transaction:create"],Uu=["ecommerce:addItem","ec:transaction:items:add"],ju=["ecommerce:send","ec:transaction:send"],qu=function(){function t(t,n,i,r,e,s,o){this.Rt=t,this.qh=n,this.Dt=i,this.ra=r,this.Ot=e,this.ce=s,this.Ht=o}return t.prototype.init=function(){var t=this,n=new Ln(this.Rt.getTrackerUri(),"transaction"),i=new Ln(this.Rt.getTrackerUri(),"addtocart");this.uf=new _u(this.Ot,n,this.ce),this.cf=new xu(i,this.ce);var r=new bs(this.qh,this.Dt,this.Ht,this.uf);n.setRequestParametersProviders(r),n.after((function(){t.uf.clear()}));var e=new bs(this.qh,this.Dt,this.Ht,this.cf);i.setRequestParametersProviders(e),i.after((function(){t.cf.clear()})),this.ra.register(Lu,(function(n){t.uf.addTransaction(n)})),this.ra.register(Uu,(function(n){return t.uf.addItem(n)})),this.ra.register(ju,(function(){return t.uf.sendTransaction()})),this.ra.register(Du,(function(n){t.cf.addToCart(n)}))},t.prototype.onStartTracking=function(){this.uf.start(),this.cf.start()},t}(),Hu=function(){function t(t){this.hf=t.performance}return t.prototype.getRequestParameters=function(){if(this.af())return{};var t=this.ff();return{str:t.startRender,di:t.domInteractive,dc:t.domComplete,fl:t.fullyLoaded}},t.prototype.ff=function(){var t=this.hf.timing;return{startRender:"".concat(t.domLoading-t.requestStart),domInteractive:"".concat(t.domInteractive-t.requestStart),domComplete:"".concat(t.domComplete-t.requestStart),fullyLoaded:"".concat(t.loadEventEnd-t.requestStart)}},t.prototype.af=function(){return!(this.hf&&this.hf.timing&&this.hf.timing.loadEventEnd>0)},t}();function Fu(t){return void 0!==t.tgt}!function(t){t[t.RESIZE=0]="RESIZE",t[t.SCROLL=1]="SCROLL",t[t.MOUSEMOVE=2]="MOUSEMOVE",t[t.MOUSEDOWN=3]="MOUSEDOWN",t[t.MOUSEUP=4]="MOUSEUP",t[t.CLICK=5]="CLICK",t[t.MOUSEOVER=6]="MOUSEOVER",t[t.MOUSEOUT=7]="MOUSEOUT",t[t.CHANGE=10]="CHANGE",t[t.FOCUSIN=11]="FOCUSIN",t[t.FOCUSOUT=12]="FOCUSOUT",t[t.TAP=14]="TAP",t[t.KEYDOWN=15]="KEYDOWN",t[t.KEYUP=16]="KEYUP",t[t.COMMAND=17]="COMMAND",t[t.SUBMIT_COMMAND=18]="SUBMIT_COMMAND",t[t.PERFORMANCE=19]="PERFORMANCE",t[t.DRAG=20]="DRAG",t[t.FLICK=21]="FLICK",t[t.KEYBOARD_NAVIGATION=22]="KEYBOARD_NAVIGATION",t[t.ZOOM=23]="ZOOM",t[t.VIEWPORT_SCALE=24]="VIEWPORT_SCALE",t[t.TEXT_HIGHLIGHT=25]="TEXT_HIGHLIGHT",t[t.DEAD_CLICK=30]="DEAD_CLICK",t[t.DEAD_ZOOM=31]="DEAD_ZOOM",t[t.PAGE_RELOAD=32]="PAGE_RELOAD",t[t.THRASHED_CURSOR=33]="THRASHED_CURSOR",t[t.BLANK_PAGE=34]="BLANK_PAGE",t[t.EXTERNAL_EVENT=35]="EXTERNAL_EVENT",t[t.SUBMIT=36]="SUBMIT"}(pu||(pu={})),function(t){t.SUCCESS="success",t.FAILURE="failure",t.ATTEMPT="attempt"}(mu||(mu={}));var Bu,zu,Vu,Gu,Ju,Yu,Wu=function(){function t(){}return t.build=function(t,n,i){return csArray.prototype.reduce.call(i,(function(n,i){return i.enhanceAnalysisEvent(t,n)}),n)},t}(),$u=function(){function t(t,n,i){this.lf=t,this.vf=n,this.$o=i}return t.prototype.processGesture=function(t,n){switch(t.type){case mo.TAP:this.df(n);break;case mo.FLICK:this.yf(t,n);break;case mo.DRAG:this.wf(t,n)}},t.prototype.df=function(t){var n={type:pu.TAP,ts:0,x:0,y:0,tgt:""},i=Wu.build(t,n,this.lf);i.tgt!==hn.INVALID_ELEMENT&&this.bs(i)},t.prototype.wf=function(t,n){var i,r,e={type:pu.DRAG,ts:0,fd:t.direction,tgt:""};(null===(i=this.$o)||void 0===i?void 0:i.collectGestureDistance)&&(e.distance=t.distance),(null===(r=this.$o)||void 0===r?void 0:r.collectGestureVelocity)&&(e.velocity=t.velocity);var s=Wu.build(n,e,this.lf);s.tgt!==hn.INVALID_ELEMENT&&this.bs(s)},t.prototype.yf=function(t,n){var i,r,e={type:pu.FLICK,ts:0,fd:t.direction,tgt:""};(null===(i=this.$o)||void 0===i?void 0:i.collectGestureDistance)&&(e.distance=t.distance),(null===(r=this.$o)||void 0===r?void 0:r.collectGestureVelocity)&&(e.velocity=t.velocity);var s=Wu.build(n,e,this.lf);s.tgt!==hn.INVALID_ELEMENT&&this.bs(s)},t.prototype.onEvent=function(t){this.bs=t},t.prototype.start=function(){var n=this;this.vf.subscribe(t.pf,(function(t,i){return n.processGesture(t,i)}))},t.prototype.stop=function(){this.vf.unsubscribe(t.pf)},t.pf="AnalysisGestureTracker",wn([Wi()],t.prototype,"processGesture",null),t}(),Xu=function(){function t(t,n,i,r){void 0===r&&(r=["submit"]);var e=this;this.lf=t,this.mf=n,this.gf=i,this.Sf=r,this.bf="select, select *, input, textarea",this.Af="select, select *, input, textarea",this.Ef="a, a *, button, button *, select, select *, input, textarea",this.Rf="input, select, textarea",this.Of="form",this.Tf=150,this.Nf=400,this.kf=!1,this.Cf=tu((function(t,n){return e.scrollListener(t,n)}),this.Tf),this.If=tu((function(t){return e.resizeListener(t)}),this.Tf),this.Mf=pr((function(t){return e.mouseMoveListener(t)}),this.Nf),this.Pf=[{boundElement:window,type:"resize",listener:function(){return e.If()}},{boundElement:document,type:"scroll",listener:function(t){return e.Cf(t)}},{boundElement:window,type:"mousemove",listener:function(t){e.Mf(function(t){return t.composedPath&&Object.defineProperty(t,"__csOriginalTarget",{value:t.composedPath()[0],writable:!1,enumerable:!1}),t}(t))}},{boundElement:document,type:"mousedown",listener:function(t){return e.mouseDownListener(t)}},{boundElement:document,type:"mouseup",listener:function(t){return e.mouseUpListener(t)}},{boundElement:document,type:"click",listener:function(t){return e.clickListener(t)}}],this._f=[{type:"change",listener:this.gf.on(this.Af,(function(t){return e.changeListener(t)}))},{type:"submit",listener:this.gf.on(this.Of,(function(t){return e.submitListener(t)}))}],this.xf=bn([{boundElement:document,type:"mouseover",listener:this.gf.on(this.Ef,(function(t){return e.mouseOverListener(t)}))},{boundElement:document,type:"mouseout",listener:this.gf.on(this.Ef,(function(t){return e.mouseOutListener(t)}))},{boundElement:document,type:"focusin",listener:this.gf.on(this.bf,(function(t){return e.focusInListener(t)}))},{boundElement:document,type:"focusout",listener:this.gf.on(this.bf,(function(t){return e.focusOutListener(t)}))},{boundElement:document,type:"keyup",listener:this.gf.on(this.Rf,(function(t){return e.keyUpListener(t)}))},{boundElement:document,type:"keydown",listener:this.gf.on(this.Rf,(function(t){return e.keyDownListener(t)}))},{boundElement:document,type:"copy",listener:this.gf.on(this.Rf,(function(t){return e.copyListener(t)}))},{boundElement:document,type:"cut",listener:this.gf.on(this.Rf,(function(t){return e.cutListener(t)}))},{boundElement:document,type:"paste",listener:this.gf.on(this.Rf,(function(t){return e.pasteListener(t)}))}],Sn(csArray.prototype.map.call(this._f,(function(t){return dn(dn({},t),{boundElement:document})}))),!1),this.Ai={},this.zi=function(t,n){switch(n){case"initial":case"added":e.hi(t);break;case"removed":e.ai(t)}},this.ci=new lr(this.zi),this.yi()}return t.prototype.hi=function(t){if(G(t)){var n=this.Df();csArray.prototype.forEach.call(n,(function(t){return dr(t)}))}else{n=this.Lf();csArray.prototype.forEach.call(n,(function(n){dr(dn(dn({},n),{boundElement:t}))}))}},t.prototype.ai=function(t){if(G(t)){var n=this.Df();csArray.prototype.forEach.call(n,(function(t){return yr(t)}))}else{n=this.Lf();csArray.prototype.forEach.call(n,(function(n){yr(dn(dn({},n),{boundElement:t}))}))}},t.prototype.onEvent=function(t){this.bs=t},t.prototype.start=function(){this.ci.observe(),this.hi(document),this.resizeListener()},t.prototype.stop=function(){this.ai(document),this.ci.disconnect()},t.prototype.flushPendingDebouncedListeners=function(){this.Cf.flushPending(),this.If.flushPending()},t.prototype.Uf=function(t){return csArray.prototype.some.call(this.Sf,(function(n){return n===t}))},t.prototype.Lf=function(){var t=this;return this.gf.isMatchesSelectorSupported()?csArray.prototype.filter.call(this._f,(function(n){return!t.Uf(n.type)})):(Ji.warn("Element.matches is not implemented yet"),[])},t.prototype.Df=function(){var t,n,i=this,r=[];return(t=csArray.prototype.push).call.apply(t,bn([r],Sn(this.Pf),!1)),this.gf.isMatchesSelectorSupported()?(n=csArray.prototype.push).call.apply(n,bn([r],Sn(this.xf),!1)):Ji.warn("Element.matches is not implemented yet"),csArray.prototype.filter.call(r,(function(t){return!i.Uf(t.type)}))},t.prototype.resizeListener=function(t){var n=Or.getScrollContainer(),i=I(n);i&&(this.kf=!0);var r={type:pu.RESIZE,ts:0,x:i?n.clientWidth:Wt.windowWidth(),y:i?n.clientHeight:Wt.windowHeight()};void 0!==t&&(r.d=t),this.bs(r)},t.prototype.scrollListener=function(t,n){var i=Or.isEventOnScrollContainer(n);!this.kf&&i&&this.resizeListener();var r={type:pu.SCROLL,ts:0,x:i?csEventtarget.apply(n).scrollLeft:Wt.windowOffsetX(),y:i?csEventtarget.apply(n).scrollTop:Wt.windowOffsetY(),d:t},e=Wu.build(n,r,this.lf);this.bs(e)},t.prototype.mouseMoveListener=function(t){var n={type:pu.MOUSEMOVE,ts:0,x:t.pageX,y:t.pageY},i=Wu.build(t,n,this.lf);this.bs(i)},t.prototype.mouseDownListener=function(t){var n={type:pu.MOUSEDOWN,ts:0,x:t.pageX,y:t.pageY,tgt:""},i=Wu.build(t,n,this.lf);this.jf(i)},t.prototype.mouseUpListener=function(t){var n={type:pu.MOUSEUP,ts:0,x:t.pageX,y:t.pageY,tgt:""},i=Wu.build(t,n,this.lf);this.jf(i)},t.prototype.clickListener=function(t){var n={type:pu.CLICK,ts:0,x:t.pageX,y:t.pageY,tgt:""},i=Wu.build(t,n,this.lf);this.jf(i)},t.prototype.mouseOverListener=function(t){var n={type:pu.MOUSEOVER,ts:0,x:t.pageX,y:t.pageY,tgt:""},i=Wu.build(t,n,this.lf);this.jf(i)},t.prototype.mouseOutListener=function(t){var n={type:pu.MOUSEOUT,ts:0,x:t.pageX,y:t.pageY,tgt:this.mf.getEventTargetPath(t)},i=Wu.build(t,n,this.lf);this.jf(i)},t.prototype.focusInListener=function(t){var n={type:pu.FOCUSIN,ts:0,tgt:this.mf.getEventTargetPath(t)},i=Wu.build(t,n,this.lf);this.jf(i)},t.prototype.focusOutListener=function(t){var n={type:pu.FOCUSOUT,ts:0,tgt:this.mf.getEventTargetPath(t)},i=Wu.build(t,n,this.lf);this.jf(i)},t.prototype.changeListener=function(t){var n={type:pu.CHANGE,ts:0,tgt:""},i=Wu.build(t,n,this.lf);this.jf(i)},t.prototype.submitListener=function(t){var n={type:pu.SUBMIT,ts:0,tgt:""},i=Wu.build(t,n,this.lf);this.jf(i)},t.prototype.copyListener=function(t){var n={type:pu.COMMAND,ts:0,tgt:this.mf.getEventTargetPath(t),key:Ar.COPY};this.jf(n)},t.prototype.cutListener=function(t){var n={type:pu.COMMAND,ts:0,tgt:this.mf.getEventTargetPath(t),key:Ar.CUT};this.jf(n)},t.prototype.pasteListener=function(t){var n={type:pu.COMMAND,ts:0,tgt:this.mf.getEventTargetPath(t),key:Ar.PASTE};this.jf(n)},t.prototype.keyUpListener=function(t){var n={type:pu.KEYUP,ts:0,tgt:this.mf.getEventTargetPath(t),key:this.qf(t)};this.jf(n)},t.prototype.keyDownListener=function(t){var n={type:pu.KEYDOWN,ts:0,tgt:this.mf.getEventTargetPath(t),key:this.qf(t)};this.jf(n)},t.prototype.qf=function(t){var n=this.Ai[t.key];return void 0===n?br.ALPHANUMERICAL:n},t.prototype.jf=function(t){Fu(t)&&t.tgt!==hn.INVALID_ELEMENT&&this.bs(t)},t.prototype.yi=function(){this.Ai[" "]=br.SPACE,this.Ai.Spacebar=br.SPACE,this.Ai.Enter=br.ENTER,this.Ai.Backspace=br.BACKSPACE,this.Ai.Delete=br.DELETE,this.Ai.ArrowUp=br.ARROWUP,this.Ai.ArrowDown=br.ARROWDOWN,this.Ai.ArrowLeft=br.ARROWLEFT,this.Ai.ArrowRight=br.ARROWRIGHT,this.Ai.Up=br.ARROWUP,this.Ai.Down=br.ARROWDOWN,this.Ai.Left=br.ARROWLEFT,this.Ai.Right=br.ARROWRIGHT,this.Ai.CapsLock=br.CAPSLOCK,this.Ai.Shift=br.SHIFT,this.Ai.Tab=br.TAB},wn([xt("Event handler type: resize")],t.prototype,"resizeListener",null),wn([xt("Event handler type: scroll")],t.prototype,"scrollListener",null),wn([xt("Event handler type: mouseMove"),Wi()],t.prototype,"mouseMoveListener",null),wn([xt("Event handler type: mouseDown"),Wi()],t.prototype,"mouseDownListener",null),wn([xt("Event handler type: mouseUp"),Wi()],t.prototype,"mouseUpListener",null),wn([xt("Event handler type: click"),Wi()],t.prototype,"clickListener",null),wn([xt("Event handler type: mouseOver"),Wi()],t.prototype,"mouseOverListener",null),wn([xt("Event handler type: mouseOut"),Wi()],t.prototype,"mouseOutListener",null),wn([xt("Event handler type: focusIn")],t.prototype,"focusInListener",null),wn([xt("Event handler type: focusOut")],t.prototype,"focusOutListener",null),wn([xt("Event handler type: change")],t.prototype,"changeListener",null),wn([xt("Event handler type: submit"),Wi()],t.prototype,"submitListener",null),wn([xt("Event handler type: copy")],t.prototype,"copyListener",null),wn([xt("Event handler type: cut")],t.prototype,"cutListener",null),wn([xt("Event handler type: paste")],t.prototype,"pasteListener",null),wn([xt("Event handler type: keyup")],t.prototype,"keyUpListener",null),wn([xt("Event handler type: keydown")],t.prototype,"keyDownListener",null),t}(),Ku=function(){function t(){var t=this;this.Hf=100,this.Ff=0,this.Bf=Wt.documentHeight(),this.zf={boundElement:document,type:"scroll",listener:function(n){return t.maxScrollRateListener(n)}},this.Ff=this.Vf(Or.getScrollContainer()).maxScrollRate}return t.prototype.onEvent=function(t){this.bs=t},t.prototype.start=function(){dr(this.zf)},t.prototype.stop=function(){yr(this.zf)},t.prototype.reset=function(){var t=Or.getScrollContainer(),n=this.Vf(t),i=n.maxScrollRate,r=n.maxDocumentHeight;this.Bf=r,this.Ff=i,this.bs()},t.prototype.Vf=function(t){var n=0,i=0;if(null===t)i=Wt.documentHeight(),n=this.Gf(i);else{var r=this.Jf(t);i=this.Yf(t,r),n=this.Wf(t,r)}return{maxScrollRate:n,maxDocumentHeight:i}},t.prototype.maxScrollRateListener=function(t){var n=null;Or.isEventOnScrollContainer(t)&&(n=csEventtarget.apply(t));var i=this.Vf(n),r=i.maxScrollRate,e=i.maxDocumentHeight;(r>this.Ff||e>this.Bf)&&(this.Ff=r,e>this.Bf&&(this.Bf=e),this.bs())},t.prototype.Gf=function(t){var n=Math.round(this.$f()/t*100);return Math.min(n,this.Hf)},t.prototype.$f=function(){var t=Wt.windowHeight();return Wt.windowOffsetY()+t},t.prototype.Wf=function(t,n){var i=t.scrollTop+t.clientHeight+t.getBoundingClientRect().top+n,r=this.Yf(t,n),e=Math.round(i/r*100);return Math.min(e,this.Hf)},t.prototype.Jf=function(t){var n=window.getComputedStyle(t).paddingTop||"0px";return parseInt(n,10)},t.prototype.Yf=function(t,n){return t.scrollHeight+t.getBoundingClientRect().top+n},t.prototype.getRequestParameters=function(){return{sr:"".concat(this.Ff),mdh:"".concat(this.Bf)}},wn([xt("MaxScrollRate handler")],t.prototype,"maxScrollRateListener",null),t}(),Zu=function(){function t(t,n,i,r,e,s,o,u,c,h,a,f,l,v,d,y,w,p,m,g,S){this.Rt=t,this.Xf=n,this.vf=i,this.Kf=r,this.Zf=e,this.Qf=s,this.tl=o,this.nl=u,this.ce=c,this.Pn=h,this.il=a,this.rl=f,this.xe=l,this.ve=v,this.el=d,this.sl=y,this.ol=w,this.ul=p,this.cl=m,this.hl=g,this.al=S,this.Oe=new Br,this.ll=!1}return t.prototype.init=function(){var t,n,i,r,e,s,o,u=this;this.Xf.onEvent((function(t){return u.Me(t)})),this.vf.onEvent((function(t){return u.Me(t)})),this.Kf.onEvent((function(){var t=u.Kf.getRequestParameters();u.ve.setQueryParams(t),u.tl.setQueryParams(t)})),this.rl.onEvent((function(t){return u.vl(t)})),this.dl(),null===(t=this.el)||void 0===t||t.onEvent((function(t){return u.Me(t)})),null===(n=this.cl)||void 0===n||n.onEvent((function(t){return u.Me(t)})),null===(i=this.sl)||void 0===i||i.onEvent((function(t){return u.Me(t)})),null===(r=this.ol)||void 0===r||r.onEvent((function(t){return u.Me(t)})),this.yl(),null===(e=this.ul)||void 0===e||e.onEvent((function(t){return u.vl(t)})),null===(s=this.hl)||void 0===s||s.onEvent((function(t){return u.vl(t)})),null===(o=this.al)||void 0===o||o.onEvent((function(t){return u.vl(t)}))},t.prototype.yl=function(){var t=this;this.tl.onBeaconSuccess((function(){t.Qf.clearEvents()})),this.tl.onBeaconFailure((function(n){t.wl(n)}))},t.prototype.initStates=function(){var t=this.nl.getRequestParameters(),n=this.Zf.getRequestParameters(),i=this.Kf.getRequestParameters();this.ve.setQueryParams(t),this.ve.setQueryParams(n),this.ve.setQueryParams(i),this.tl.setQueryParams(t),this.tl.setQueryParams(n),this.tl.setQueryParams(i),this.pl()},t.prototype.clearStates=function(t){var n,i;this.Xf.flushPendingDebouncedListeners(),null===(n=this.sl)||void 0===n||n.flushPendingKeyboardNavigationEvent(),null===(i=this.ol)||void 0===i||i.flushPendingTextHighlightEvent(),t?(this.ml(),this.sendLastMessageBeacon()):this.sendEvents(),this.Kf.reset(),this.ve.removeQueryParams()},t.prototype.start=function(t){var n,i,r,e,s,o,u;t||null===(n=this.ul)||void 0===n||n.start(),this.xe.start(),this.Xf.start(),this.Kf.start(),this.vf.start(),null===(i=this.el)||void 0===i||i.start(),null===(r=this.ol)||void 0===r||r.start(),t||this.rl.start(),null===(e=this.sl)||void 0===e||e.start(),null===(s=this.cl)||void 0===s||s.start(),null===(o=this.hl)||void 0===o||o.start(),null===(u=this.al)||void 0===u||u.start()},t.prototype.collectInitialEvents=function(){var t;null===(t=this.el)||void 0===t||t.collectInitialEvents()},t.prototype.onIframeAnalysisBrowserEvent=function(t){this.vl(t)},t.prototype.onIframeAnalysisUserEvent=function(t){this.Me(t)},t.prototype.onExternalEvent=function(t){this.Fe(t)},t.prototype.vl=function(t){this.ce.isCurrentPageviewValid()&&this.Fe(t)},t.prototype.Me=function(t){this.ce.refreshSession(),this.ce.isSessionValid()&&this.Fe(t)},t.prototype.Fe=function(t){this.Qf.addEvent(this.gl(t)),this.Qf.isFull()&&this.sendEvents(),this.Rt.emitDebugEvents&&this.Oe.emit("analysisEvent",dn(dn({},t),{typeName:pu[t.type]}))},t.prototype.gl=function(t){return t.ts=this.Sl(),t},t.prototype.ml=function(){this.tl.setQueryParams({hlm:"true"}),this.ll=!0},t.prototype.sendLastMessageBeacon=function(){this.tl.setQueryParams(this.Zf.getRequestParameters()),this.tl.send(this.Qf.stringifyEvents()),this.tl.removeQueryParams(["hlm"]),this.ll=!1},t.prototype.sendEvents=function(){this.Qf.isEmpty()||(this.ve.setQueryParams(this.nl.getRequestParameters()),this.ve.setQueryParams(this.Zf.getRequestParameters()),this.ve.send(this.Qf.getEvents()),this.Qf.clearEvents())},t.prototype.stop=function(){var t,n,i,r,e,s,o;this.xe.stop(),this.Xf.stop(),this.Kf.stop(),this.vf.stop(),this.rl.stop(),null===(t=this.el)||void 0===t||t.stop(),null===(n=this.sl)||void 0===n||n.stop(),null===(i=this.ol)||void 0===i||i.stop(),null===(r=this.cl)||void 0===r||r.stop(),this.Qf.empty(),null===(e=this.ul)||void 0===e||e.stop(),null===(s=this.hl)||void 0===s||s.stop(),null===(o=this.al)||void 0===o||o.stop()},t.prototype.pl=function(){this.bl=ai()},t.prototype.Sl=function(){return ai()-this.bl},t.prototype.dl=function(){var t=this;this.xe.onEvent((function(n){var i,r;n!==ls.Visible&&(null===(i=t.sl)||void 0===i||i.flushPendingKeyboardNavigationEvent(),null===(r=t.ol)||void 0===r||r.flushPendingTextHighlightEvent(),n===ls.PagehideVisible?t.ml():n===ls.PagehideHidden?(t.ml(),t.sendLastMessageBeacon()):t.Qf.isEmpty()&&!t.ll||t.sendLastMessageBeacon())}))},t.prototype.wl=function(t){try{this.Qf.isEmpty()&&!this.ll||this.Pn.save({requestParameters:t,events:this.Qf.getEvents()})}catch(t){}},t.prototype.pushSubmitCommandEvent=function(t,n){if(function(t){return t===mu.SUCCESS||t===mu.FAILURE||t===mu.ATTEMPT}(t))if(I(n)){var i={status:t,type:pu.SUBMIT_COMMAND,ts:0,tgt:this.il.getElementPath(n)};i.tgt!==hn.INVALID_ELEMENT&&this.vl(i)}else Ji.warn("AnalysisEvents Service: invalid element: ".concat(n));else Ji.warn("AnalysisEvents Service: invalid submit status: ".concat(t))},t}(),Qu=function(){function t(t,n){var i=this;this.Pn=t,this.ve=n,this.Al=function(){"visible"===document.visibilityState&&i.El()}}return t.prototype.start=function(){this.El(),this.Hr()},t.prototype.stop=function(){this.Vr()},t.prototype.getRecoveryStorage=function(){return this.Pn},t.prototype.El=function(){var t=this.Pn.recover();if(null!==t){var n=t,i=n.requestParameters,r=n.events;this.ve.send(r,i)}},t.prototype.Hr=function(){document.addEventListener("visibilitychange",this.Al)},t.prototype.Vr=function(){document.removeEventListener("visibilitychange",this.Al)},t}(),tc=function(){function t(t){this.vo=t}return t.prototype.save=function(t){localStorage.setItem(this.vo,csJSON.stringify(t))},t.prototype.clear=function(){localStorage.removeItem(this.vo)},t.prototype.recover=function(){var t=localStorage.getItem(this.vo);if(null===t)return null;var n=null;try{n=csJSON.parse(t)}catch(n){Ji.error("Invalid item in localStorage.\n (key:".concat(this.vo,"; value:").concat(t,")"))}finally{this.clear()}return n},t}(),nc=function(){function t(t){var n=this;this.Rl=t,this.Ol=function(t){return n.processMetric(t)},this.Lr=!1}return t.prototype.onEvent=function(t){this.bs=t},t.prototype.start=function(){this.Lr||(this.Lr=!0,this.Rl.onFCP(this.Ol),this.Rl.onCLS(this.Ol),this.Rl.onFID(this.Ol),this.Rl.onLCP(this.Ol),this.Rl.onTTFB(this.Ol),this.Rl.onINP(this.Ol))},t.prototype.stop=function(){this.Lr=!1},t.prototype.processMetric=function(t){if(this.Lr){var n={type:pu.PERFORMANCE,name:t.name,val:t.value,ts:0};this.bs(n)}},wn([xt("Performance metric handler")],t.prototype,"processMetric",null),t}(),ic=-1,rc=function(t){addEventListener("pageshow",(function(n){n.persisted&&(ic=n.timeStamp,t(n))}),!0)},ec=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},sc=function(){var t=ec();return t&&t.activationStart||0},oc=function(t,n){var i=ec(),r="navigate";return ic>=0?r="back-forward-cache":i&&(document.prerendering||sc()>0?r="prerender":document.wasDiscarded?r="restore":i.type&&(r=i.type.replace(/_/g,"-"))),{name:t,value:void 0===n?-1:n,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},uc=function(t,n,i){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var r=new PerformanceObserver((function(t){Promise.resolve().then((function(){n(t.getEntries())}))}));return r.observe(Object.assign({type:t,buffered:!0},i||{})),r}}catch(t){}},cc=function(t,n,i,r){var e,s;return function(o){n.value>=0&&(o||r)&&((s=n.value-(e||0))||void 0===e)&&(e=n.value,n.delta=s,n.rating=function(t,n){return t>n[1]?"poor":t>n[0]?"needs-improvement":"good"}(n.value,i),t(n))}},hc=function(t){requestAnimationFrame((function(){return requestAnimationFrame((function(){return t()}))}))},ac=function(t){var n=function(n){"pagehide"!==n.type&&"hidden"!==document.visibilityState||t(n)};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},fc=function(t){var n=!1;return function(i){n||(t(i),n=!0)}},lc=-1,vc=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},dc=function(t){"hidden"===document.visibilityState&&lc>-1&&(lc="visibilitychange"===t.type?t.timeStamp:0,wc())},yc=function(){addEventListener("visibilitychange",dc,!0),addEventListener("prerenderingchange",dc,!0)},wc=function(){removeEventListener("visibilitychange",dc,!0),removeEventListener("prerenderingchange",dc,!0)},pc=function(){return lc<0&&(lc=vc(),yc(),rc((function(){setTimeout((function(){lc=vc(),yc()}),0)}))),{get firstHiddenTime(){return lc}}},mc=function(t){document.prerendering?addEventListener("prerenderingchange",(function(){return t()}),!0):t()},gc=[1800,3e3],Sc=function(t,n){n=n||{},mc((function(){var i,r=pc(),e=oc("FCP"),s=uc("paint",(function(t){t.forEach((function(t){"first-contentful-paint"===t.name&&(s.disconnect(),t.startTime=0&&zu1e12?new Date:performance.now())-t.timeStamp;"pointerdown"==t.type?function(t,n){var i=function(){Rc(t,n),e()},r=function(){e()},e=function(){removeEventListener("pointerup",i,Ac),removeEventListener("pointercancel",r,Ac)};addEventListener("pointerup",i,Ac),addEventListener("pointercancel",r,Ac)}(n,t):Rc(n,t)}},Nc=function(t){["mousedown","keydown","touchstart","pointerdown"].forEach((function(n){return t(n,Tc,Ac)}))},kc=[100,300],Cc=0,Ic=1/0,Mc=0,Pc=function(t){t.forEach((function(t){t.interactionId&&(Ic=Math.min(Ic,t.interactionId),Mc=Math.max(Mc,t.interactionId),Cc=Mc?(Mc-Ic)/7+1:0)}))},_c=function(){return Ju?Cc:performance.interactionCount||0},xc=function(){"interactionCount"in performance||Ju||(Ju=uc("event",Pc,{type:"event",buffered:!0,durationThreshold:0}))},Dc=[200,500],Lc=0,Uc=function(){return _c()-Lc},jc=[],qc={},Hc=function(t){var n=jc[jc.length-1],i=qc[t.interactionId];if(i||jc.length<10||t.duration>n.latency){if(i)i.entries.push(t),i.latency=Math.max(i.latency,t.duration);else{var r={id:t.interactionId,latency:t.duration,entries:[t]};qc[r.id]=r,jc.push(r)}jc.sort((function(t,n){return n.latency-t.latency})),jc.splice(10).forEach((function(t){delete qc[t.id]}))}},Fc=[2500,4e3],Bc={},zc=[800,1800],Vc=function t(n){document.prerendering?mc((function(){return t(n)})):"complete"!==document.readyState?addEventListener("load",(function(){return t(n)}),!0):setTimeout(n,0)},Gc=function(t,n){n=n||{};var i=oc("TTFB"),r=cc(t,i,zc,n.reportAllChanges);Vc((function(){var e=ec();if(e){var s=e.responseStart;if(s<=0||s>performance.now())return;i.value=Math.max(s-sc(),0),i.entries=[e],r(!0),rc((function(){i=oc("TTFB",0),(r=cc(t,i,zc,n.reportAllChanges))(!0)}))}}))},Jc=function(){function t(){}return t.prototype.onFCP=function(t){Sc(t,{reportAllChanges:!0})},t.prototype.onCLS=function(t){!function(t,n){n=n||{},Sc(fc((function(){var i,r=oc("CLS",0),e=0,s=[],o=function(t){t.forEach((function(t){if(!t.hadRecentInput){var n=s[0],i=s[s.length-1];e&&t.startTime-i.startTime<1e3&&t.startTime-n.startTime<5e3?(e+=t.value,s.push(t)):(e=t.value,s=[t])}})),e>r.value&&(r.value=e,r.entries=s,i())},u=uc("layout-shift",o);u&&(i=cc(t,r,bc,n.reportAllChanges),ac((function(){o(u.takeRecords()),i(!0)})),rc((function(){e=0,r=oc("CLS",0),i=cc(t,r,bc,n.reportAllChanges),hc((function(){return i()}))})),setTimeout(i,0))})))}(t,{reportAllChanges:!0})},t.prototype.onFID=function(t){!function(t,n){n=n||{},mc((function(){var i,r=pc(),e=oc("FID"),s=function(t){t.startTime0&&(e.value=0,e.entries=[]),r(!0)})),rc((function(){jc=[],Lc=_c(),e=oc("INP"),r=cc(t,e,Dc,n.reportAllChanges)})))}))}(t,{reportAllChanges:!0})},t}(),Yc=function(){function t(t){void 0===t&&(t=[]),this.Oi=t}return t.prototype.stringifyEvents=function(){return csJSON.stringify(this.Oi)},t.prototype.addEvent=function(t){csArray.prototype.push.call(this.Oi,t)},t.prototype.eventsCount=function(){return this.Oi.length},t.prototype.clearEvents=function(){this.Oi=[]},t.prototype.empty=function(){this.clearEvents()},t.prototype.isFull=function(){return this.eventsCount()>=50},t.prototype.isEmpty=function(){return 0===this.Oi.length},t.prototype.getEvents=function(){return this.Oi},t}(),Wc=function(){function t(){}return t.prototype.isEventTypeSupported=function(t){return-1!==csArray.prototype.indexOf.call(this.supportedEventTypes,t)},t.prototype.enhanceAnalysisEvent=function(t,n){return this.isEventTypeSupported(n.type)?this.baseEnhanceAnalysisEvent(t,n):n},t}(),$c=function(t){function n(){var n=t.apply(this,bn([],Sn(arguments),!1))||this;return n.supportedEventTypes=[pu.CHANGE],n.Tl=["text","email","number","search","tel","url","password"],n}return vn(n,t),n.prototype.baseEnhanceAnalysisEvent=function(t,n){var i=Rr(t);return q(i)&&csArray.prototype.indexOf.call(this.Tl,i.type)>=0&&(n.isBlank=""===i.value),n},n}(Wc),Xc=function(t){function n(n){var i=t.call(this)||this;return i.mf=n,i.supportedEventTypes=[pu.MOUSEDOWN,pu.MOUSEUP,pu.CLICK,pu.MOUSEOVER,pu.TAP,pu.DRAG,pu.FLICK,pu.SUBMIT,pu.CHANGE],i}return vn(n,t),n.prototype.baseEnhanceAnalysisEvent=function(t,n){return n.tgt||(n.tgt=this.mf.getEventTargetPath(t)),n},n}(Wc);!function(t){t.getRelativePosition=function(t){var n=Rr(t);if(!(n&&_(n)&&C(n.getBoundingClientRect)&&k(t.pageX)&&k(t.pageY)))return{xRel:-1,yRel:-1,valid:!1};var i=n.getBoundingClientRect(),r=t.pageX-i.left-Wt.windowOffsetX(),e=t.pageY-i.top-Wt.windowOffsetY();n!==document.documentElement&&(r+=n.scrollLeft,e+=n.scrollTop);var s=Math.max(n.scrollWidth,i.width),o=Math.max(n.scrollHeight,i.height);return{xRel:Math.round(r/s*65535),yRel:Math.round(e/o*65535),valid:!0}}}(Yu||(Yu={}));var Kc,Zc=function(t){function n(n,i){var r=t.call(this)||this;return r.tt=n,r.mf=i,r.supportedEventTypes=[pu.MOUSEMOVE,pu.CLICK],r.Nl="",r}return vn(n,t),n.prototype.baseEnhanceAnalysisEvent=function(t,n){var i=Yu.getRelativePosition(t),r=i.valid,e=i.xRel,s=i.yRel;if(r){var o=this.mf.getEventTargetPath(t);o!==hn.INVALID_ELEMENT&&(n.xRel=e,n.yRel=s,n.type===pu.MOUSEMOVE&&(o!==this.Nl||this.tt.iframesTracking?(this.Nl=o,n.tgtHM=o):n.tgtHM=""))}else n.type===pu.MOUSEMOVE&&(this.Nl="");return n},n}(Wc);!function(t){t[t.ANONYMIZED=0]="ANONYMIZED",t[t.CAPTURED=1]="CAPTURED",t[t.MASKED=2]="MASKED",t[t.ENCRYPTED=3]="ENCRYPTED"}(Kc||(Kc={}));var Qc=function(t){function n(n,i,r){var e=t.call(this)||this;return e.Rt=n,e.kl=i,e.Ot=r,e.supportedEventTypes=[pu.TAP,pu.CLICK],e}return vn(n,t),n.prototype.Cl=function(t){for(var n="",i=document.createTreeWalker(t,NodeFilter.SHOW_TEXT),r=i.nextNode();r;){if(n+=r.textContent,this.kl.getElementSensitiveStatus(r.parentElement)!==Kc.CAPTURED)return!0;if(csString.prototype.trim.call(n).length>=100)break;r=i.nextNode()}return!1},n.prototype.baseEnhanceAnalysisEvent=function(t,n){if(I(csEventtarget.apply(t))){var i=Ur(csEventtarget.apply(t),"button,a");if(i&&R(i.textContent)&&!this.Cl(i)&&!this.Ot.hasPII(i.textContent,this.Rt.anonymizeDigits)){var r=as.truncate(csString.prototype.trim.call(i.textContent),100);r.length>0&&(n.text=r)}}return n},n}(Wc);function th(t,n,i){var r=[];return t.mouseMoveHeatmapEnabled&&csArray.prototype.push.call(r,new Zc(t,n)),t.isClickedElementTextEnabled()&&csArray.prototype.push.call(r,new Qc(t,i,new Qn)),csArray.prototype.push.call(r,new $c,new Xc(n)),r}function nh(t,n,i){var r=[];return t.isClickedElementTextEnabled()&&csArray.prototype.push.call(r,new Qc(t,i,new Qn)),csArray.prototype.push.call(r,new Xc(n)),r}var ih,rh="v2/events",eh=["submit"],sh=function(){function t(t,n,i,r,e,s,o,u,c,h,a,f){this.Rt=t,this.qh=n,this.Dt=i,this.il=r,this.gf=e,this.ra=s,this.ce=o,this.vf=u,this.qa=c,this.ha=h,this.Il=a,this.kl=f}return t.prototype.init=function(){var t=this,n=new Yc,i=this.ha.create("".concat(this.Rt.getTrackerUri(),"/").concat(rh),!0,"base64");this.Ml=this.Pl(i),this._l=this.xl(n,this.Ml.getRecoveryStorage(),i),this._l.init(),this.Il.addListener(this._l),this.qa.addListener(this._l),this.ra.register(eh,(function(n,i){t._l.pushSubmitCommandEvent(n,i)}))},t.prototype.onStartTracking=function(t){this.Ml.start(),this._l.start(t)},t.prototype.onAfterNaturalPageView=function(){this._l.initStates()},t.prototype.onAfterArtificialPageView=function(){this._l.initStates(),this._l.collectInitialEvents()},t.prototype.onArtificialPageViewEnd=function(){this._l.clearStates(!0)},t.prototype.onBeforeSessionRenewal=function(){this._l.clearStates(),this._l.stop(),this.Ml.stop()},t.prototype.onOptout=function(){this._l.stop(),this.Ml.stop()},t.prototype.xl=function(t,n,i){var r=new Hu(window),e=new Ku,s=th(this.Rt,this.il,this.kl),o=[];this.Rt.collectHierarchy||csArray.prototype.push.call(o,"submit");var u=new Xu(s,this.il,this.gf,o),c=nh(this.Rt,this.il,this.kl),h=new $u(c,this.vf),a=new nc(new Jc),f=new ws;var l=new ks("".concat(this.Rt.getTrackerUri(),"/").concat(rh)),v=new bs(this.qh,this.Dt);return new Zu(this.Rt,u,h,e,r,t,l,v,this.ce,n,this.il,a,f,i,undefined,undefined,undefined,undefined,undefined,undefined,undefined)},t.prototype.Pl=function(t){return new Qu(new tc("csAnalysisEventsPersisted"),t)},t}();!function(t){t.Artificial="a",t.Renewal="r",t.Natural="n"}(ih||(ih={}));var oh=function(t){function n(n,i,r,e,s){var o=t.call(this)||this;return o.ph=n,o.Il=i,o.Dl=r,o.Ht=e,o.Oa=s,o}return vn(n,t),n.prototype.init=function(){this.Ll()},n.prototype.onStart=function(t){if(t)this.Ul();else{this.jl();try{(null===document||void 0===document?void 0:document.prerendering)&&Ji.warn("Speculative API: Natural page view sent when prerendering (pageview: ".concat(this.Ht.getUrl(),")"))}catch(t){}}},n.prototype.onStop=function(){},n.prototype.triggerArtificialPageView=function(t,n){this.isStarted?this.ql(t,n):k(t)&&this.Ht.overridePath(t,n),this.isStarted||(this.Il.emitTargetingRulesArtificialPageview(this.Ht.getUrl()),this.Ht.cleanupOverrideLifespan())},n.prototype.jl=function(){this.Oa.setPageViewType(ih.Natural),this.ph.emitBeforeNaturalPageView(),this.Dl.send(),this.Ht.cleanupOverrideLifespan(),this.ph.emitAfterNaturalPageView()},n.prototype.Ul=function(){this.Oa.setPageViewType(ih.Renewal),this.ph.emitBeforeNaturalPageView(),this.Dl.send(),this.ph.emitAfterNaturalPageView()},n.prototype.ql=function(t,n){this.Oa.setPageViewType(ih.Artificial),this.ph.emitArtificialPageViewEnd(),k(t)&&this.Ht.overridePath(t,n),this.ph.emitBeforeArtificialPageView(),this.Dl.send(),this.Ht.cleanupOverrideLifespan(),this.ph.emitAfterArtificialPageView()},n.prototype.Ll=function(){var t=this;window.addEventListener("pageshow",(function(n){t.isStarted&&n.persisted&&t.ql()}))},n}(zr),uh=window.navigator.language||window.navigator.userLanguage||window.navigator.browserLanguage||window.navigator.systemLanguage||"unknown";function ch(){return{la:uh}}var hh=function(){function t(t,n){this.mu=t,this.sa=n,this.Hl=!1}return t.prototype.getRequestParameters=function(){return{dr:this.Fl()}},t.prototype.addUrlMaskingPattern=function(t){this.sa.addUrlMaskingPattern(t)},t.prototype.enableRemoveQueryString=function(){this.Hl=!0},t.prototype.disableRemoveQueryString=function(){this.Hl=!1},t.prototype.Fl=function(){var t=this.Hl?this.mu.removeQueryString(this.Bl()):this.Bl();return this.mu.anonymizeUrl(t,this.sa.getUrlMaskingPatterns())},t.prototype.Bl=function(){var t="";try{t=window.top.document.referrer}catch(n){if(window.parent)try{t=window.parent.document.referrer}catch(n){t=""}}return""===t&&(t=document.referrer),"string"!=typeof t&&(t=""),t},t}(),ah=function(){function t(t){this.Lt=t,this.zl=this.Vl()&&window.CSCurrentScript}return t.prototype.Gl=function(){var t=window.CSCurrentScript;if(!t)return null;var n=window.performance.getEntriesByName(t.src,"resource")[0];return!n||this.Jl(n)?null:Math.round(n.responseEnd-n.fetchStart)},t.prototype.Jl=function(t){var n=t.transferSize;return void 0!==n?0===n||300===n||n6e4},t}();function Ph(t){return t.tagDeploymentMode===lh.DualCollectionReview||t.tagDeploymentMode===lh.DualCollection}!function(t){t.ContentSquare="CONTENTSQUARE",t.LoadedByClicktale="LOADED_BY_CLICKTALE",t.LoadClicktalePtc="LOAD_CLICKTALE_PTC",t.DualCollectionReview="DUAL_COLLECTION_REVIEW",t.DualCollection="DUAL_COLLECTION",t.ContentSquareTagClickTaleEndpoints="CONTENTSQUARE_TAG_CLICKTALE_ENDPOINTS"}(lh||(lh={})),function(t){t.isRecording=function(){return window.ClickTaleIsRecording&&window.ClickTaleIsRecording()},t.stopRecording=function(){window.ClickTaleStop&&window.ClickTaleStop()},t.triggerLogicalPageView=function(t){window.ClickTaleLogicalWithUploadPage&&window.ClickTaleLogicalWithUploadPage(t)},t.sendPageEvent=function(t){window.ClickTaleEvent&&window.ClickTaleEvent(t)},t.sendEventTriggerRecording=function(t){window.ClickTaleEventTrigger&&window.ClickTaleEventTrigger(t)}}(vh||(vh={}));var _h,xh="RSA-OAEP",Dh="AES-CTR";!function(t){var n,i,r,s=!1,o=null,u="undefined"!=typeof TextEncoder?new TextEncoder:null;function c(){var t,n;return null!=(null===(n=null===(t=e.self.crypto)||void 0===t?void 0:t.subtle)||void 0===n?void 0:n.encrypt)&&null!=e.self.CryptoKey}function h(n){return St(this,void 0,void 0,(function(){var r;return bt(this,(function(e){switch(e.label){case 0:return!c()||s?[2,null]:[4,i];case 1:e.sent(),(r=ii(n)).byteLength>190&&(r=r.slice(0,190)),e.label=2;case 2:return e.trys.push([2,4,,5]),[4,t.crypto.encrypt({name:xh},o,r)];case 3:return[2,ri(e.sent())];case 4:return e.sent(),[2,null];case 5:return[2]}}))}))}function a(n){var i;return St(this,void 0,void 0,(function(){var r;return bt(this,(function(e){switch(e.label){case 0:if(!c())return[2,null];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,t.crypto.exportKey("jwk",n)];case 2:return r=e.sent(),[2,null!==(i=r.k)&&void 0!==i?i:null];case 3:return e.sent(),[2,null];case 4:return[2]}}))}))}t.crypto=null===(n=e.crypto)||void 0===n?void 0:n.subtle,t.MAX_DIGEST_INPUT_SIZE=100,t.isKeyImported=function(){return!s},t.getCryptoKey=function(){return o},t.isSupported=c,t.importKey=function(n){return St(this,void 0,void 0,(function(){return bt(this,(function(r){switch(r.label){case 0:return[4,i=t.crypto.importKey("spki",ei(n),{name:xh,hash:"SHA-256"},!1,["encrypt"]).catch((function(){return s=!0,null}))];case 1:return o=r.sent(),i=void 0,o||_t.warn("Fail to import public key '".concat(n,"'")),[2]}}))}))},t.asymmetricEncrypt=h,t.symmetricEncrypt=function(n,i){return St(this,void 0,void 0,(function(){var r,e;return bt(this,(function(o){switch(o.label){case 0:if(!c()||s)return[2,null];r={counter:i.initializationVector,name:Dh,length:64},e=u.encode(n),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,t.crypto.encrypt(r,i.cryptoKey,e)];case 2:return[2,ri(o.sent())];case 3:return o.sent(),[2,null];case 4:return[2]}}))}))},t.encryptSecret=function(t){return St(this,void 0,void 0,(function(){var n,i;return bt(this,(function(r){switch(r.label){case 0:return[4,a(t)];case 1:if(!(n=r.sent()))throw new Error("Export secret failed");return[4,h(n)];case 2:if(!(i=r.sent()))throw new Error("Encrypt secret failed");return[2,i]}}))}))},t.generateSymmetricKey=function(){return St(this,void 0,void 0,(function(){return bt(this,(function(n){switch(n.label){case 0:if(!c()||s)return[2,null];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,t.crypto.generateKey({name:Dh,length:128},!0,["encrypt","decrypt"])];case 2:return[2,{cryptoKey:n.sent(),initializationVector:e.crypto.getRandomValues(new Uint8Array(16))}];case 3:return n.sent(),[2,null];case 4:return[2]}}))}))},t.setDigestSalt=function(t){r=t},t.digest=function(n){return St(this,void 0,void 0,(function(){var i;return bt(this,(function(e){switch(e.label){case 0:n=csString.prototype.toLocaleLowerCase.call(csString.prototype.trim.call(n)),r&&(n="".concat(n,":").concat(r)),i=u.encode(n),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,t.crypto.digest("SHA-1",i)];case 2:return[2,si(e.sent())];case 3:return e.sent(),[2,null];case 4:return[2]}}))}))},t.generateKeyPair=function(){return e.crypto.subtle.generateKey({name:"RSA-OAEP",modulusLength:2048,publicExponent:new Uint8Array([1,0,1]),hash:"SHA-256"},!0,["encrypt","decrypt"])}}(_h||(_h={}));var Lh,Uh="@user-identifier@",jh=function(t){function n(n,i,r,e){var s=t.call(this)||this;return s.Rt=n,s.lv=i,s.Wa=r,s.Il=e,s.vv=[],s.qe=[],s}return vn(n,t),n.prototype.onStart=function(){var t=this;csArray.prototype.forEach.call(this.vv,(function(n){return t.trackPageEvent(n)})),this.vv=[],csArray.prototype.forEach.call(this.qe,(function(n){return t.trackEventTriggerRecording(n)})),this.qe=[]},n.prototype.onStop=function(){},n.prototype.trackPageEvent=function(t){this.isStarted?n.yv(t)&&(this.wv(t)?_h.isSupported()&&this.pv(t):this.mv(t)):csArray.prototype.push.call(this.vv,t)},n.prototype.wv=function(t){return Rn(t,Uh)},n.prototype.pv=function(t){return pn(this,void 0,void 0,(function(){var n,i;return mn(this,(function(r){switch(r.label){case 0:return this.Rt.customHashIdEnabled?(n=csString.prototype.slice.call(t,17)).length>_h.MAX_DIGEST_INPUT_SIZE?(Ji.warn("UserIdentifier event: invalid user identifier"),[2]):[4,_h.digest(n)]:[2];case 1:return(i=r.sent())?(this.gv={eventName:i,isETR:!1,isCustomHashId:!0},this.Sv()):Ji.warn("Page event: unable to compute customHashId"),this.Rt.encryptionEnabled?(this.Il.emitUserIdentifierEvent(n),[2]):[2]}}))}))},n.prototype.mv=function(t){this.Il.emitPageEvent(t),this.gv={eventName:t,isETR:!1,isCustomHashId:!1},this.Sv(),this.Rt.tagDeploymentMode===lh.LoadClicktalePtc&&vh.sendPageEvent(t)},n.prototype.trackEventTriggerRecording=function(t){this.isStarted?n.yv(t)&&(this.Rt.malkaEtrEnabled?this.bv(t):this.Av(t)):csArray.prototype.push.call(this.qe,t)},n.prototype.bv=function(t){Rn(t,"@ETP@")?this.Il.emitEventTriggerRecording(t,Kr.ETR_PAGE):this.Il.emitEventTriggerRecording(t,Kr.ETR_SESSION),this.gv={eventName:t,isETR:!0,isCustomHashId:!1},this.Sv()},n.prototype.Av=function(t){var n;(Ph(n=this.Rt)||n.tagDeploymentMode===lh.LoadClicktalePtc)&&(this.Il.emitEventTriggerRecording(t,Kr.ETR_LEGACY),this.gv={eventName:t,isETR:!0,isCustomHashId:!1},this.Sv(),this.Rt.tagDeploymentMode===lh.LoadClicktalePtc&&vh.sendEventTriggerRecording(t))},n.prototype.getRequestParameters=function(){return{value:this.Wa.compressSync(this.gv.eventName,"base64"),ct:this.Wa.algorithm,isETR:"".concat(this.gv.isETR),isCustomHashId:"".concat(this.gv.isCustomHashId)}},n.prototype.Sv=function(){this.lv.send()},n.yv=function(t){return R(t)&&!!csString.prototype.trim.call(t)},n}(zr),qh=["trackPageEvent"],Hh=["trackEventTriggerRecording"],Fh=function(){function t(t,n,i,r,e){this.Rt=t,this.ra=n,this.Wa=i,this.Bh=r,this.Il=e}return t.prototype.init=function(){var t=this,n=new Ln(this.Rt.getTrackerUri(),"pageEvent");this.Ev=new jh(this.Rt,n,this.Wa,this.Il),n.setRequestParametersProviders(this.Ev,this.Bh),this.ra.register(qh,(function(n){t.Ev.trackPageEvent(n)})),this.ra.register(Hh,(function(n){t.Ev.trackEventTriggerRecording(n)}))},t.prototype.onStartTracking=function(){this.Ev.start()},t}(),Bh=function(){function t(){this.subscriptions={}}return t.prototype.subscribe=function(t,n){this.subscriptions[t]=n,1===Object.keys(this.subscriptions).length&&this.onStartTracking()},t.prototype.unsubscribe=function(t){delete this.subscriptions[t],0===Object.keys(this.subscriptions).length&&this.onStopTracking()},t}(),zh=function(t){function n(){var n=t.call(this)||this;return n.er=new Do((function(t){return n.errorListener(t)})),n}return vn(n,t),n.prototype.onStartTracking=function(){this.er.observe()},n.prototype.onStopTracking=function(){this.er.disconnect()},n.prototype.errorListener=function(t){var n=this.Rv(t);for(var i in this.subscriptions){(0,this.subscriptions[i])(n)}},n.prototype.Ov=function(t){return t=null!=t?t:"[NO ERROR MESSAGE]",as.truncate(t,n.nh,as.ELLIPSIS)},n.prototype.Tv=function(t){return!t||se(t)?"":as.truncate(t,n.ih,as.ELLIPSIS)},n.prototype.Rv=function(t){return{errorType:"jsError",message:this.Ov(t.message),filename:this.Tv(t.filename),lineno:t.lineno,colno:t.colno}},n.nh=1024,n.ih=150,wn([xt("Event handler type: error")],n.prototype,"errorListener",null),n}(Bh),Vh=function(){function t(t){this.ra=t}return t.prototype.init=function(){this.Nv(t.kv,Ei),this.Nv(t.Cv,Ai)},t.prototype.Nv=function(t,n){this.ra.register([t],(function(t,i){R(t)&&(R(i)||M(i))&&Ji.error(i,"".concat(n).concat(t))}))},t.Cv="logSnippetError",t.kv="logImplementationSnippetError",t}(),Gh=function(){function t(t,n,i,r,e){this.Rt=t,this.La=n,this.ia=i,this.kl=r,this.qa=e}return t.prototype.init=function(){var t=this;this.La.onChildMessage((function(n,i,r){return t.qa.emitIframeEvent(n,i,r)})),this.La.setSentiveStatusCallback((function(){return t.kl.getSensitiveStatus()})),this.La.setRecordingContextCallback((function(){return t.ia.getRecordingContext()}))},t.prototype.onStartTracking=function(){this.Rt.iframesTracking&&this.La.start()},t.prototype.onOptout=function(){this.Rt.iframesTracking&&this.La.stop()},t.prototype.onSensitiveStatusChange=function(){if(this.Rt.iframesTracking){var t=this.kl.getSensitiveStatus();this.La.onSensitiveStatusChange(t)}},t.prototype.onRecordingContextChange=function(){if(this.Rt.iframesTracking){var t=this.ia.getRecordingContext();this.La.onRecordingContextChange(t)}},t}(),Jh=function(t){function n(n){var i=t.call(this)||this;return i.Rt=n,i.Iv=0,i.Mv=new Map,i.Pv={boundElement:window,type:"message",listener:function(t){return i._v(t)}},i}return vn(n,t),n.prototype.onChildMessage=function(t){this.xv=t},n.prototype.setRecordingContextCallback=function(t){this.Dv=t},n.prototype.setSentiveStatusCallback=function(t){this.Lv=t},n.prototype.onSensitiveStatusChange=function(t){var n=this,i=Ui.buildBaseMessage(Li.SensitiveStatus,Di.Parent,this.Rt.projectId);i.content=t;var r=Ui.buildBaseMessage(Li.SensitiveStatus,Di.Parent,this.Rt.projectId);r.content=dn(dn({},t),{started:!1,useAnonymization:!0,capturedElementSelector:""}),this.Mv.forEach((function(t){if(t.port){var e=n.Uv(t)?r:i;n.jv(t,e)}}))},n.prototype.onRecordingContextChange=function(t){var n=this,i=Ui.buildBaseMessage(Li.RecordingContext,Di.Parent,this.Rt.projectId);i.content=t,this.Mv.forEach((function(t){!n.Uv(t)&&t.port&&n.jv(t,i)}))},n.prototype.sendToChildren=function(t,n){var i=Ui.buildBaseMessage(t,Di.Parent,this.Rt.projectId);i.content=n,this.qv(i)},n.prototype.onStart=function(){dr(this.Pv,!1),this.Hv()},n.prototype.onStop=function(){this.Fv(),yr(this.Pv,!1),this.Bv()},n.prototype.Hv=function(){var t=this,n=this.zv();this.Vv(n),csArray.prototype.forEach.call(n,(function(n){if(null===t.Gv(n)){var i={iframe:n};t.Mv.set(t.Iv,i),t.Iv+=1}})),this.Jv()},n.prototype.zv=function(){var t=this;return csArray.prototype.filter.call(un.findAllElements("iframe"),(function(n){return t.Yv(n)}))},n.prototype.Vv=function(t){var n=this;this.Mv.forEach((function(i,r){i.iframe&&-1===csArray.prototype.indexOf.call(t,i.iframe)&&n.Wv(r,i)}))},n.prototype.Wv=function(t,n){n.port&&Ui.closeChannelPort(n.port),this.Mv.delete(t)},n.prototype.Bv=function(){this.Mv.forEach((function(t){t.port&&Ui.closeChannelPort(t.port)})),this.Mv.clear()},n.prototype.Gv=function(t){var n=null;return this.Mv.forEach((function(i,r){null===n&&i.iframe===t&&(n=r)})),n},n.prototype.Yv=function(t){return t.id!==s&&(!t.src||Mi(Ii(t.src),this.Rt.hostnames))},n.prototype.qv=function(t){var n=this;this.Mv.forEach((function(i){n.jv(i,t)}))},n.prototype.jv=function(t,n){var i=n.type===Li.SensitiveStatus||n.type===Li.RecordingContext;!t.port||i&&!t.initialStatusSent||Ui.sendChannelMessage(t.port,n)},n.prototype.Jv=function(){var t=this;this.Mv.forEach((function(n,i){if(n.iframe.contentWindow){var r=t.$v(i);Ui.sendPostMessage(n.iframe.contentWindow,"*",r)}}))},n.prototype.Fv=function(){var t=this.Xv();this.Mv.forEach((function(n){n.port?Ui.sendChannelMessage(n.port,t):n.iframe.contentWindow&&Ui.sendPostMessage(n.iframe.contentWindow,"*",t)}))},n.prototype.$v=function(t){return Ui.buildBaseMessage(Li.Discovery,Di.Parent,this.Rt.projectId,t)},n.prototype.Xv=function(){return Ui.buildBaseMessage(Li.Stop,Di.Parent,this.Rt.projectId)},n.prototype.Kv=function(t,n){var i=this,r=this.Mv.get(t);void 0!==r?(r.port=n,r.port.onmessage=function(t){i.Zv(t,r)}):Ji.error("Parent received channel messaging initialization from unknow child id : ".concat(t," (").concat(this.Iv,")"))},n.prototype.Qv=function(t){if(t.port){var n=Ui.buildBaseMessage(Li.SensitiveStatus,Di.Parent,this.Rt.projectId),i=this.Lv();this.Uv(t)&&(i.started=!1,i.capturedElementSelector="",i.useAnonymization=!0),n.content=i,Ui.sendChannelMessage(t.port,n)}},n.prototype.td=function(t){if(t.port){var n=Ui.buildBaseMessage(Li.RecordingContext,Di.Parent,this.Rt.projectId),i=this.Dv();this.Uv(t)&&(i.isRecording=!1,i.isMutationTrackerStarted=!1),n.content=i,Ui.sendChannelMessage(t.port,n)}},n.prototype.Zv=function(t,n){if(void 0!==n){var i=t.data.type,r=t.data.content;i===Li.EndOfBufferedMessages?(this.Qv(n),this.td(n),n.initialStatusSent=!0):this.xv(n.iframe,i,r)}else Ji.error("Parent received channelMessage from unknown child : ".concat(csJSON.stringify(t.data)))},n.prototype._v=function(t){if(Ui.isMessageValid(t,Di.Child,this.Rt.projectId,this.Rt.hostnames))switch(t.data.type){case Li.Discovery:if(void 0===t.data.id)return void this.Hv();if(t.ports&&1===t.ports.length&&this.Mv.has(t.data.id))return void this.Kv(t.data.id,t.ports[0]);Ji.error("Parent received wrong channelMessage initialization : (".concat(t.origin,") : ").concat(csJSON.stringify(t.data)));break;case Li.ChildLogMessage:this.xv(null,Li.ChildLogMessage,t.data.content);break;default:Ji.warn("Parent received unexpected postMessage type from child (".concat(t.origin,") : ").concat(csJSON.stringify(t.data)))}},n.prototype.Uv=function(t){return Dr.isMaskedElement(t.iframe)||Dr.isMaskedElementChild(t.iframe)},n}(zr),Yh=function(){function t(t){this.nd=t}return t.prototype.buildApiErrors=function(t,n){var i=this.nd.collectDataPoints(t,n);if(null===i)return null;var r=this.rd(t,i);return n?{apiError:r,detailedApiError:this.sd(t,i)}:{apiError:r}},t.prototype.sd=function(t,n){var i=this.od(t);return n.collectQueryParam&&t.queryParameters&&(i.queryParameters=t.queryParameters),n.collectRequestBody&&t.requestBody&&(i.requestBody=t.requestBody),n.collectResponseBody&&t.responseBody&&(i.responseBody=t.responseBody),Object.keys(n.standardRequestHeaders).length>0&&(i.standardRequestHeaders=n.standardRequestHeaders),Object.keys(n.standardResponseHeaders).length>0&&(i.standardResponseHeaders=n.standardResponseHeaders),Object.keys(n.customRequestHeaders).length>0&&(i.customRequestHeaders=csJSON.stringify(n.customRequestHeaders)),Object.keys(n.customResponseHeaders).length>0&&(i.customResponseHeaders=csJSON.stringify(n.customResponseHeaders)),Object.keys(n.plainCustomRequestHeaders).length>0&&(i.plainCustomRequestHeaders=n.plainCustomRequestHeaders),Object.keys(n.plainCustomResponseHeaders).length>0&&(i.plainCustomResponseHeaders=n.plainCustomResponseHeaders),n.plainResponseBodyAttributes&&Object.keys(n.plainResponseBodyAttributes).length>0&&(i.plainResponseBodyAttributes=n.plainResponseBodyAttributes),n.plainRequestBodyAttributes&&Object.keys(n.plainRequestBodyAttributes).length>0&&(i.plainRequestBodyAttributes=n.plainRequestBodyAttributes),Object.keys(n.responseBodyAttributes).length>0&&(i.responseBodyAttributes=csJSON.stringify(n.responseBodyAttributes)),Object.keys(n.requestBodyAttributes).length>0&&(i.requestBodyAttributes=csJSON.stringify(n.requestBodyAttributes)),i},t.prototype.od=function(t){return{errorType:"apiError",url:t.url,method:t.method,requestTime:t.requestTime,responseTime:t.responseTime,statusCode:t.statusCode,library:t.library}},t.prototype.rd=function(t,n){var i=this.od(t);return n.matchingBodyContents.length>0&&(i.matchingBodyContents=n.matchingBodyContents),Object.keys(n.plainResponseBodyAttributes).length>0&&(i.plainBodyResponseAttributes=n.plainResponseBodyAttributes),i},t}(),Wh=function(t){function n(n,i,r){var e=t.call(this)||this;return e.ud=n,e.ad=i,e.ld=r,e.vd=0,e.dd=new Yh(r),e}return vn(n,t),n.prototype.subscribe=function(n,i,r){(null==r?void 0:r.detailedEvent)&&(Object.defineProperty(i,"detailedEvent",{value:r.detailedEvent}),this.vd++),t.prototype.subscribe.call(this,n,i)},n.prototype.unsubscribe=function(n){var i;(null===(i=this.subscriptions[n])||void 0===i?void 0:i.hasOwnProperty("detailedEvent"))&&this.vd--,t.prototype.unsubscribe.call(this,n)},n.prototype.init=function(){var t=this,n=this.ld.computeApiErrorCollectionOptions();this.ud.setCollectionOptions(n),this.ud.onEvent((function(n){return t.yd(n)})),this.ad.setCollectionOptions(n),this.ad.onEvent((function(n){return t.yd(n)}))},n.prototype.onStartTracking=function(){this.ud.start(),this.ad.start()},n.prototype.onStopTracking=function(){this.ud.stop(),this.ad.stop()},n.prototype.yd=function(t){var n=this.dd.buildApiErrors(t,0!==this.vd);if(n)for(var i in this.subscriptions){var r=this.subscriptions[i];r.hasOwnProperty("detailedEvent")?n.detailedApiError&&r(n.detailedApiError):r(n.apiError)}},n}(Bh),$h=function(){function t(t,n){this.sa=t,this.mu=n}return t.prototype.addUrlMaskingPattern=function(t){this.sa.addUrlMaskingPattern(t)},t.prototype.anonymize=function(t){var n=this.mu.removeQueryString(t.url);return dn(dn({},t),{url:this.mu.anonymizeUrl(n,this.sa.getUrlMaskingPatterns(),this.sa.getPartialUrlMaskingPatterns()),library:t.library?this.mu.anonymizeUrl(t.library,this.sa.getUrlMaskingPatterns(),this.sa.getPartialUrlMaskingPatterns()):void 0})},t}(),Xh=function(){function t(t,n){this.Ot=t,this.Ht=n}return t.prototype.anonymize=function(t){return R(t.message)&&(t.message=this.wd(t.message),t.message=this.Ot.anonymizePII(t.message)),R(t.filename)&&(t.filename=this.Ht.computeOverriddenUrl(t.filename)),t},t.prototype.wd=function(t){return csString.prototype.replace.call(t,/(value\s*=\s*".*"|value\s*=\s*'.*')/,"value='".concat("CS_ANONYMIZED_VALUE","'"))},t}(),Kh=function(t){function n(n){var i=t.call(this)||this;return i.pd=n,i.Ss=[{boundElement:document,type:"touchstart",listener:function(t){return i.Fe(t)}},{boundElement:document,type:"touchmove",listener:function(t){return i.Fe(t)}},{boundElement:document,type:"touchend",listener:function(t){return i.Fe(t)}}],i.md=new Po,i.md.onGesture((function(t,n){return i.Yc(t,n)})),i}return l(n,t),n.prototype.Yc=function(t,n){for(var i in this.subscriptions){(0,this.subscriptions[i])(t,n)}},n.prototype.onStartTracking=function(){this.canDetectGesture()&&csArray.prototype.forEach.call(this.Ss,(function(t){return dr(t)}))},n.prototype.onStopTracking=function(){this.canDetectGesture()&&csArray.prototype.forEach.call(this.Ss,(function(t){return yr(t)}))},n.prototype.canDetectGesture=function(){return"undefined"!=typeof devicePixelRatio},n.prototype.Fe=function(t){var n=this;this.pd.tryToExecute("process gesture event",(function(){if(n.md.isValidTouchEvent(t))switch(t.type){case"touchstart":n.md.processActionDown(t);break;case"touchmove":n.md.processActionMove();break;case"touchend":n.md.processActionUp(t)}}))()},n.isSwipe=function(t){return t.type===mo.FLICK||t.type===mo.DRAG},n}(Bh),Zh=function(t){function n(n,i){var r=t.call(this)||this;return r.ve=n,r.gd=i,r.Sd=0,r}return vn(n,t),n.prototype.onStart=function(){var t=this;Ji.isPerfLoggingActive()&&(this.bd=window.csSetInterval((function(){return t.Ad()}),n.Ed))},n.prototype.onStop=function(){Ji.isPerfLoggingActive()&&(this.Ad(),csClearInterval(this.bd))},n.prototype.Ad=function(){if(!(Ht.isEmpty||this.Sd>=n.Rd)){this.Sd++;var t=dn({a:n.Od,l:n.Td},this.gd.getRequestParameters()),i=[];Ht.forEach((function(n){csArray.prototype.forEach.call(n,(function(n){csArray.prototype.push.call(i,dn(dn({},n),t))}))})),this.ve.send(i),Ht.clear()}},n.Od="uxa",n.Td="perf",n.Ed=5e3,n.Rd=5,n}(zr),Qh=function(){function t(t,n,i){this.Rt=t,this.gd=n,this.ha=i}return t.prototype.init=function(){this.Nd=new Zh(this.ha.create(this.Rt.getLoggerUri(),!0),this.gd)},t.prototype.onStartTracking=function(){this.Nd.start()},t.prototype.onOptout=function(){this.Nd.stop()},t}(),ta=function(){function t(t){this.kl=t,this.kd=!1}return t.prototype.enableRecordingContext=function(t,n,i){this.kd=!0,this.Ga=t,this.Lt=n,this.ga=i},t.prototype.getRecordingContext=function(){var t,n,i,r;if(!this.kd)return{isRecording:!1,recordingStartTimestamp:0,etrState:Xr.ETR_OFF,etrStatus:Zr.ETR_DISABLED,collectState:$r.ANALYTICS_ONLY};var e=this.Lt.getSession();return{isRecording:this.Ga.isRecording(),isMutationTrackerStarted:this.Ga.isStarted,useAnonymization:this.kl.getSensitiveStatus().useAnonymization,enableOnlineResources:null===(t=this.Ga.getStaticResourceManagerStatus())||void 0===t?void 0:t.onlineAssets.activated,enableOnlineResourcesOnNextPageview:null===(n=this.Ga.getStaticResourceManagerStatus())||void 0===n?void 0:n.onlineAssets.enabledOnNextPageview,recordingStartTimestamp:parseInt(this.Ga.getRecordingStartTimestamp(),10),etrState:null!==(i=null==e?void 0:e.etrState)&&void 0!==i?i:Xr.ETR_OFF,etrStatus:this.ga.getEtrStatus(e),collectState:null!==(r=null==e?void 0:e.collectState)&&void 0!==r?r:$r.ANALYTICS_ONLY}},t}(),na=function(){function t(){}return t.isRecordingSupported=function(){return"MutationObserver"in window&&"visibilityState"in document},t.isAsyncSerializationSupported=function(){return"Promise"in window&&"findIndex"in csArray.prototype},t}(),ia=function(t){function n(n,i,r,e){var s=t.call(this)||this;return s.ae=n,s.Cd=i,s.qh=r,s.fe=e,s.Id=[],s.Re=0,s}return vn(n,t),n.prototype.init=function(){this.ae.init()},n.prototype.initStates=function(){this.Md(),this.Id=[],this.Re=0,this.pl()},n.prototype.pl=function(){this.bl=ai()},n.prototype.Sl=function(){return ai()-this.bl},n.prototype.onStart=function(){var t=this;this.ae.subscribe(n.Qe,(function(n){return t.Fe(n)}))},n.prototype.onStop=function(){this.ae.unsubscribe(n.Qe)},n.prototype.onIframeApiError=function(t){this.Fe(t)},n.prototype.Fe=function(t){this.isStarted&&this.Re0&&n<=5}(n))&&(!function(t){for(var n in t){var i=t[n];if("string"==typeof i&&i.length>30&&(i=as.truncate(i,30,as.ELLIPSIS),t[n]=i),n.length>30){var r=as.truncate(n,30,as.ELLIPSIS);delete t[n],t[r]=i}}}(n),r.attributes=n),r}}(Lh||(Lh={}));var ca,ha,aa=function(t){function n(n,i,r,e,s){var o=t.call(this)||this;return o.Bd=n,o.qh=i,o.zd=r,o.Il=e,o.Vd=s,o.Gd=[],o.na=0,o.jd=[],o}return vn(n,t),n.prototype.initStates=function(){var t,n=this;this.Md(),this.bl=ai(),this.Gd=[],this.na=0,null===(t=this.Vd)||void 0===t||t.onEvent((function(t){return n.Fe(t)}))},n.prototype.trackCustomError=function(t,n){if(void 0===n&&(n={}),R(t)&&T(n)&&k(n)){var i=Lh.buildCustomErrorEvent(t,n);this.Hd(i)}},n.prototype.onIframeCustomError=function(t){this.Fe(t)},n.prototype.onStart=function(){var t;this.qd(),null===(t=this.Vd)||void 0===t||t.start()},n.prototype.onStop=function(){var t;null===(t=this.Vd)||void 0===t||t.stop()},n.prototype.qd=function(){var t=this;this.isStarted&&(csArray.prototype.forEach.call(this.jd,(function(n){return t.Hd(n)})),this.jd=[])},n.prototype.Hd=function(t){if(this.isStarted){var n=this.Fe(t);n&&this.Il.emitCustomErrorEvent(n)}else csArray.prototype.push.call(this.jd,t)},n.prototype.Fe=function(t){if(this.isStarted&&this.na<20){var n=this.Jd(t);return csArray.prototype.push.call(this.Gd,n),this.Pd(),n}return null},n.prototype.Jd=function(t){var n=dn(dn({},t),{rt:this.Sl()});return n.message=this.zd.anonymize(t.message),n},n.prototype.Md=function(){this.Bd.removeQueryParams(),this.Bd.setQueryParams(this.qh.getRequestParameters())},n.prototype.Sl=function(){return ai()-this.bl},n.prototype.Pd=function(){this.Bd.send({errors:this.Gd}),this.Gd=[],this.na+=1},n}(zr),fa=function(){function t(t,n,i,r,e,s,o,u){this.zd=t,this.Rt=n,this.qh=i,this.ra=r,this.oa=e,this.ha=s,this.qa=o,this.Vd=u}return t.prototype.init=function(){var t=this.ha.create("".concat(this.Rt.getTrackerUri(),"/").concat("custom-errors"),!0);this.Yd=new aa(t,this.qh,this.zd,this.oa,this.Vd),this.qa.addListener(this.Yd),this.xd()},t.prototype.xd=function(){var t=this;this.ra.register(oa,(function(n,i){t.Yd.trackCustomError(n,i)}))},t.prototype.onStartTracking=function(){this.Yd.start()},t.prototype.onAfterNaturalPageView=function(){this.Yd.initStates()},t.prototype.onAfterArtificialPageView=function(){this.Yd.initStates()},t.prototype.onBeforeSessionRenewal=function(){this.Yd.stop()},t.prototype.onOptout=function(){this.Yd.stop()},t}(),la=function(){function t(){this.Wd=ih.Natural}return t.prototype.setPageViewType=function(t){this.Wd=t},t.prototype.getPageViewType=function(){return this.Wd},t.prototype.getRequestParameters=function(){return{pvt:this.Wd}},t}(),va=function(){function t(t){this.ce=t}return t.prototype.onAfterVisitorRenewal=function(){this.ce.renewSession()},t}();!function(t){t.replayRecordingUnmaskedUrlRegex="replayRecordingUnmaskedUrlRegex",t.replayRecordingMaskedUrlRegex="replayRecordingMaskedUrlRegex",t.replayRecordingUnmaskedUrlRegexRules="replayRecordingUnmaskedUrlRegexRules",t.replayRecordingMaskedUrlRegexRules="replayRecordingMaskedUrlRegexRules"}(ca||(ca={})),function(t){t.START="start",t.NOT_START="not-start",t.END="end",t.NOT_END="not-end",t.CONTAIN="contain",t.NOT_CONTAIN="not-contain",t.EXACT="exact",t.NOT_EXACT="not-exact"}(ha||(ha={}));var da,ya,wa=function(){function t(t,n,i,r){this.Zl=t,this.Rt=n,this.Ht=i,this.$d=r}return t.prototype.init=function(){this.Xd()},t.prototype.shouldMaskNonTextElements=function(){return this.Rt.isSMB&&this.Rt.anonymisationMethod===ca.replayRecordingMaskedUrlRegexRules&&this.shouldUseAnonymization()},t.prototype.shouldUseAnonymization=function(){if(this.Zl.isReplayUnanonymizedAllowedByConsent()){switch(this.Rt.anonymisationMethod){case null:case ca.replayRecordingMaskedUrlRegex:return!(!this.Rt.replayRecordingMaskedUrlRegex||!this.Rt.replayRecordingMaskedUrlRegex.test(this.Ht.getAnonymizedUrl()));case ca.replayRecordingMaskedUrlRegexRules:return this.$d.evaluateUrl(this.Ht.getAnonymizedUrl())}return!1}switch(this.Rt.anonymisationMethod){case null:case ca.replayRecordingUnmaskedUrlRegex:return!(this.Rt.replayRecordingUnmaskedUrlRegex&&this.Rt.replayRecordingUnmaskedUrlRegex.test(this.Ht.getAnonymizedUrl()));case ca.replayRecordingUnmaskedUrlRegexRules:return!this.$d.evaluateUrl(this.Ht.getAnonymizedUrl())}return!0},t.prototype.Xd=function(){this.Rt.anonymisationMethod===ca.replayRecordingMaskedUrlRegexRules&&this.Rt.replayRecordingMaskedUrlRegexRules?this.$d.setRegexRules(this.Rt.replayRecordingMaskedUrlRegexRules):this.Rt.anonymisationMethod===ca.replayRecordingUnmaskedUrlRegexRules&&this.Rt.replayRecordingUnmaskedUrlRegexRules&&this.$d.setRegexRules(this.Rt.replayRecordingUnmaskedUrlRegexRules)},t}(),pa=function(){function t(){this.Kd=[]}return t.prototype.setRegexRules=function(t){var n=this;this.Kd=csArray.prototype.map.call(t,(function(t){return n.Zd(t)}))},t.prototype.evaluateUrl=function(t){var n=this;return csArray.prototype.some.call(this.Kd,(function(i){var r,e,s=n.Qd(t,i);return(null==i?void 0:i.notOperator)?!(null===(r=i.regex)||void 0===r?void 0:r.test(s)):null===(e=i.regex)||void 0===e?void 0:e.test(s)}))},t.prototype.Qd=function(t,n){var i=_i(t);return i?n.ignoreQueryParams&&n.ignoreURIFragments?"".concat(i.origin).concat(i.pathname):n.ignoreQueryParams?"".concat(i.origin).concat(i.pathname).concat(i.hash):n.ignoreURIFragments?"".concat(i.origin).concat(i.pathname).concat(i.search):t:t},t.prototype.ty=function(t){return t.ignoreCaseSensitivity?"i":""},t.prototype.Zd=function(t){switch(t.operator){case ha.NOT_START:t.notOperator=!0;case ha.START:t.regex=new csRegExp("^".concat(t.value),this.ty(t));break;case ha.NOT_END:t.notOperator=!0;case ha.END:t.regex=new csRegExp("".concat(t.value,"$"),this.ty(t));break;case ha.NOT_CONTAIN:t.notOperator=!0;case ha.CONTAIN:t.regex=new csRegExp("".concat(t.value),this.ty(t));break;case ha.NOT_EXACT:t.notOperator=!0;case ha.EXACT:t.regex=new csRegExp("^".concat(t.value,"$"),this.ty(t));break;default:Ji.warn("buildRegexWithRule, unknown type: ".concat(t.operator))}return t},t}(),ma=function(){function t(){this.ny=["application/json","application/graphql","application/xml","text/plain","text/csv","text/html","text/xml","text/javascript"]}return t.prototype.setCollectionOptions=function(t){this.iy=t},t.prototype.isValidBodyType=function(t){var n=t["content-type"];if(!n)return!1;var i=csString.prototype.toLocaleLowerCase.call(n);return rn(this.ny,(function(t){return Rn(i,t)}))},t.prototype.canCollect=function(t,n){return this.ey(t,n)&&this.sy(n)},t.prototype.ey=function(t,n){return t>=400||t>=200&&t<300&&this.iy.statusCodes.has(t)&&this.oy(n)},t.prototype.oy=function(t){return rn(this.iy.urls,(function(n){return-1!==csString.prototype.indexOf.call(t,n)}))},t.prototype.sy=function(t){return function(t,n){for(var i=t.length,r=0;rthis._y&&(e=0,n[i]=as.ELLIPSIS),n[r]&&(e+=this.Dy(csJSON.stringify(n[r])))>this._y&&(n[r]=t.truncatedObjectMarker)},t.prototype.Uy=function(t){t.queryParameters&&this.Dy(t.queryParameters)>this.Py&&(t.queryParameters=as.ELLIPSIS)},t.prototype.jy=function(t){t.requestBody&&this.Dy(t.requestBody)>this.Iy&&(t.requestBody=as.ELLIPSIS),t.responseBody&&this.Dy(t.responseBody)>this.My&&(t.responseBody=as.ELLIPSIS)},t.prototype.truncate=function(t){this.Xu?(this.Uy(t),this.jy(t),this.Ly(t,"customResponseHeaders","plainCustomResponseHeaders"),this.Ly(t,"customRequestHeaders","plainCustomRequestHeaders")):(t.queryParameters="",t.requestBody="",t.responseBody="",t.customResponseHeaders="",t.customRequestHeaders="",t.plainCustomResponseHeaders={},t.plainCustomRequestHeaders={})},t.truncatedObjectMarker=((da={})[as.ELLIPSIS]=as.ELLIPSIS,da),t}();!function(t){t.isValidJSONPath=function(t){if(!t)return!0;if(!function(t){for(var n=[],i=0;i-1))return!1;csArray.prototype.pop.call(n)}return 0===n.length}(t))return!1;var n=csString.prototype.split.call(t,/[\[\]]/);return csArray.prototype.every.call(n,(function(t){var n=t[0],i=t[t.length-1];if(("'"===n||'"'===n)&&n!==i)return!1;var r=csString.prototype.split.call(t,".");return 0===r[0].length&&csArray.prototype.shift.call(r),csArray.prototype.every.call(r,(function(t){var n=/^\-?\d+$/.exec(t);return n?parseInt(n[0],10)>=0:"$"===t||/\w+/.test(t)}))}))},t.getJSONPathValue=function(t,n){var i,r;if(t){var e=csString.prototype.split.call(t,/[\$\[\]]/),s=[];csArray.prototype.forEach.call(e,(function(t){var n;"'"!==t[0]&&'"'!==t[0]?(n=csArray.prototype.push).call.apply(n,Rt([s],Et(csArray.prototype.filter.call(csString.prototype.split.call(t,"."),(function(t){return t.length>0}))),!1)):csArray.prototype.push.call(s,csString.prototype.substring.call(t,1,t.length-1))})),"$"===s[0]&&csArray.prototype.shift.call(s);var o=n;try{for(var u=At(s),c=u.next();!c.done;c=u.next()){var h=c.value;if(void 0===o[h])return;o=o[h]}}catch(t){i={error:t}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(i)throw i.error}}return o}}}(ya||(ya={}));var Aa,Ea=function(){function t(){this.qy=new Set(["age","cache-control","clear-site-data","expires","pragma","warning","downlink","ect","rtt","last-modified","connection","keep-alive","accept","accept-encoding","accept-language","expect","access-control-allow-origin","access-control-allow-credentials","access-control-allow-headers","access-control-allow-methods","access-control-expose-headers","access-control-max-age","access-control-request-headers","access-control-request-method","origin","timing-allow-origin","content-length","content-type","content-encoding","content-language","via","host","referrer-policy","user-agent","allow","server","accept-ranges","range","if-range","content-range","cross-origin-embedder-policy","cross-origin-opener-policy","cross-origin-resource-policy","content-security-policy","content-security-policy-report-only","expect-ct","feature-policy","strict-transport-security","upgrade-insecure-requests","x-content-type-options","x-download-options","x-frame-options","x-permitted-cross-domain-policies","x-powered-by","x-xss-protection","sec-fetch-site","sec-fetch-mode","sec-fetch-user","sec-fetch-dest"])}return t.prototype.isValidStandardHeader=function(t){return this.qy.has(t)},t}(),Ra=function(){function t(){this.Hy=64e3,this.Fy=100,this.By={collectQueryParam:!1,collectRequestBody:!1,collectResponseBody:!1,matchingBodyContents:[],plainResponseBodyAttributes:{},plainRequestBodyAttributes:{},requestBodyAttributes:{},responseBodyAttributes:{},standardRequestHeaders:{},standardResponseHeaders:{},customRequestHeaders:{},customResponseHeaders:{},plainCustomRequestHeaders:{},plainCustomResponseHeaders:{}},this.zy=new Ea}return t.prototype.Vy=function(t){return t.length<=this.Hy},t.prototype.Gy=function(t){var n=t["content-type"];return void 0!==n&&(wi(n,"application/json")||wi(n,"application/graphql"))},t.prototype.Jy=function(t,n){return t&&this.Vy(t)&&this.Gy(n)},t.prototype.Yy=function(t,n,i,r){var e="request"===r?this.Wy:this.$y;if(void 0!==e||this.Jy(n,i)){if(void 0===e)try{e=csJSON.parse(n),"request"===r?this.Wy=e:this.$y=e}catch(t){return}var s=ya.getJSONPathValue(t,e);if(void 0!==s&&(null===s||!T(s))){var o=R(s)?s:csJSON.stringify(s);return as.truncate(o,this.Fy,as.ELLIPSIS)}}},t.prototype.isBodyAttributeValueFound=function(t,n){var i,r;return"request-response"!==n.type&&"response"!==n.type||(i=this.Yy(n.path,t.responseBody,t.responseHeaders,"response")),"request-response"!==n.type&&"request"!==n.type||(r=this.Yy(n.path,t.requestBody,t.requestHeaders,"request")),N(i)||N(r)},t.prototype.collectBodyAttribute=function(t,n,i){var r;"request-response"!==n.type&&"response"!==n.type||(r=this.Yy(n.path,t.responseBody,t.responseHeaders,"response"))&&(n.encrypted?this.By.responseBodyAttributes[n.path]=r:(r=i(r),this.By.plainResponseBodyAttributes[n.path]=r)),"request-response"!==n.type&&"request"!==n.type||(r=this.Yy(n.path,t.requestBody,t.requestHeaders,"request"))&&(n.encrypted?r&&(this.By.requestBodyAttributes[n.path]=r):(r=i(r),this.By.plainRequestBodyAttributes[n.path]=r))},t.prototype.isBodyContentMatching=function(t,n){return!!t.responseBody&&!!new csRegExp(n,"i").test(t.responseBody)},t.prototype.collectBodyContent=function(t){-1===csArray.prototype.indexOf.call(this.By.matchingBodyContents,t)&&csArray.prototype.push.call(this.By.matchingBodyContents,t)},t.prototype.collectCustomHeaders=function(t,n,i){var r=csString.prototype.toLocaleLowerCase.call(n.headerName);!t.responseHeaders[r]||"request-response"!==n.type&&"response"!==n.type||(n.encrypted?this.By.customResponseHeaders[r]=t.responseHeaders[r]:this.By.plainCustomResponseHeaders[r]=i(t.responseHeaders[r])),!t.requestHeaders[r]||"request-response"!==n.type&&"request"!==n.type||(n.encrypted?this.By.customRequestHeaders[r]=t.requestHeaders[r]:this.By.plainCustomRequestHeaders[r]=i(t.requestHeaders[r]))},t.prototype.collectStandardHeaders=function(t){var n,i,r,e;if(!(Object.keys(this.By.standardRequestHeaders).length>0||Object.keys(this.By.standardResponseHeaders).length>0)){try{for(var s=gn(Object.entries(t.requestHeaders)),o=s.next();!o.done;o=s.next()){var u=Sn(o.value,2),c=u[0],h=u[1];this.zy.isValidStandardHeader(c)&&(this.By.standardRequestHeaders[c]=h)}}catch(t){n={error:t}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}try{for(var a=gn(Object.entries(t.responseHeaders)),f=a.next();!f.done;f=a.next()){var l=Sn(f.value,2),v=l[0];h=l[1];this.zy.isValidStandardHeader(v)&&(this.By.standardResponseHeaders[v]=h)}}catch(t){r={error:t}}finally{try{f&&!f.done&&(e=a.return)&&e.call(a)}finally{if(r)throw r.error}}}},t.prototype.setCollectQueryParam=function(t){t&&(this.By.collectQueryParam=!0)},t.prototype.setCollectResponseBody=function(t){t&&(this.By.collectResponseBody=!0)},t.prototype.setCollectRequestBody=function(t){t&&(this.By.collectRequestBody=!0)},t.prototype.getCollectedDataPoints=function(){return this.By},t}();!function(t){t.CONTENTSQUARE="contentsquare.net",t.CLICKTALE="clicktale.net",t.FAKE_TRACKER="fake-tracker.content-square.fr"}(Aa||(Aa={}));var Oa,Ta=function(){function t(){}return t.prototype.computeApiErrorCollectionOptions=function(){var t,n,i=new Set,r=[];if(this.rules)try{for(var e=gn(this.rules),s=e.next();!s.done;s=e.next()){var o=s.value;void 0!==o.statusCode&&i.add(o.statusCode),void 0!==o.url&&-1===csArray.prototype.indexOf.call(r,o.url)&&csArray.prototype.push.call(r,o.url)}}catch(n){t={error:n}}finally{try{s&&!s.done&&(n=e.return)&&n.call(e)}finally{if(t)throw t.error}}var u=[Aa.CONTENTSQUARE,Aa.CLICKTALE];return csArray.prototype.push.call(u,Aa.FAKE_TRACKER),{statusCodes:i,urls:r,excludedDomains:u}},t}(),Na=function(t){function n(n,i){var r=t.call(this)||this;return r.Xy=n,r.Ot=i,r.rules=n.collectionRules,r}return vn(n,t),n.prototype.collectDataPoints=function(t,n){var i,r;this.By=new Ra;var e=!1;if(this.Xy.collectionRules)try{for(var s=gn(this.Xy.collectionRules),o=s.next();!o.done;o=s.next()){var u=o.value;this.Ky(u,t)&&this.Zy(u,t)&&this.Qy(u,t)&&(e=!0,this.tw(t,u,n))}}catch(t){i={error:t}}finally{try{o&&!o.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return e||(e=this.nw(t)),e&&n&&this.Xy.collectStandardHeaders&&this.By.collectStandardHeaders(t),e?this.By.getCollectedDataPoints():null},n.prototype.computeApiErrorCollectionOptions=function(){var t,n,i=this.Xy.collectionRules||[],r=new Set,e=[];try{for(var s=gn(i),o=s.next();!o.done;o=s.next()){var u=o.value;void 0!==u.statusCode&&r.add(u.statusCode),void 0!==u.url&&-1===csArray.prototype.indexOf.call(e,u.url)&&csArray.prototype.push.call(e,u.url)}}catch(n){t={error:n}}finally{try{o&&!o.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}var c=[Aa.CONTENTSQUARE,Aa.CLICKTALE];return csArray.prototype.push.call(c,Aa.FAKE_TRACKER),{statusCodes:r,urls:e,excludedDomains:c}},n.prototype.Ky=function(t,n){return(!t.statusCode&&n.statusCode>=400||void 0!==t.statusCode&&t.statusCode===n.statusCode)&&(!t.url||-1!==csString.prototype.indexOf.call(n.url,t.url))},n.prototype.Zy=function(t,n){return!t.bodyContent||this.By.isBodyContentMatching(n,t.bodyContent)},n.prototype.Qy=function(t,n){var i=csArray.prototype.find.call(t.bodyAttributePaths,(function(t){return t.primary}));return void 0===i||this.By.isBodyAttributeValueFound(n,i)},n.prototype.nw=function(t){return t.statusCode>=400},n.prototype.tw=function(t,n,i){var r,e,s,o,u=this;n.bodyContent&&this.By.collectBodyContent(n.bodyContent);var c=nn(n.bodyAttributePaths,(function(t){return 1===t.primary}));if(c&&this.By.collectBodyAttribute(t,c,(function(t){return u.Ot.anonymizePII(t)})),i){this.By.setCollectQueryParam(n.collectQueryParam),this.By.setCollectResponseBody(n.collectResponseBody),this.By.setCollectRequestBody(n.collectRequestBody);try{for(var h=gn(n.customHeaders),a=h.next();!a.done;a=h.next()){var f=a.value;this.By.collectCustomHeaders(t,f,(function(t){return u.Ot.anonymizePII(t)}))}}catch(t){r={error:t}}finally{try{a&&!a.done&&(e=h.return)&&e.call(h)}finally{if(r)throw r.error}}var l=en(n.bodyAttributePaths,(function(t){return!t.primary}));try{for(var v=gn(l),d=v.next();!d.done;d=v.next()){var y=d.value;this.By.collectBodyAttribute(t,y,(function(t){return u.Ot.anonymizePII(t)}))}}catch(t){s={error:t}}finally{try{d&&!d.done&&(o=v.return)&&o.call(v)}finally{if(s)throw s.error}}}},n}(Ta),ka=function(t){function n(n,i){var r=t.call(this)||this;return r.Xy=n,r.Ot=i,r.rules=n.configurableApiErrorRules,r}return vn(n,t),n.prototype.collectDataPoints=function(t,n){this.By=new Ra;var i=this.iw(t,this.Xy.configurableApiErrorRules);return i.isMatching?(i.matchingBodyContents.length>0&&this.By.collectBodyContent(i.matchingBodyContents[0]),n&&this.rw(t),this.By.getCollectedDataPoints()):null},n.prototype.computeApiErrorCollectionOptions=function(){var t,n,i=this.Xy.configurableApiErrorRules||[],r=new Set,e=[];try{for(var s=gn(i),o=s.next();!o.done;o=s.next()){var u=o.value;void 0!==u.statusCode&&r.add(u.statusCode),void 0!==u.url&&-1===csArray.prototype.indexOf.call(e,u.url)&&csArray.prototype.push.call(e,u.url)}}catch(n){t={error:n}}finally{try{o&&!o.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}var c=[Aa.CONTENTSQUARE,Aa.CLICKTALE];return csArray.prototype.push.call(c,Aa.FAKE_TRACKER),{statusCodes:r,urls:e,excludedDomains:c}},n.prototype.iw=function(t,n){var i,r;if(t.statusCode>=400)return{isMatching:!0,matchingBodyContents:[]};if(n)try{for(var e=gn(n),s=e.next();!s.done;s=e.next()){var o=s.value;if(this.ew(t,o))return{isMatching:!0,matchingBodyContents:o.bodyContent?[o.bodyContent]:[]}}}catch(t){i={error:t}}finally{try{s&&!s.done&&(r=e.return)&&r.call(e)}finally{if(i)throw i.error}}return{isMatching:!1,matchingBodyContents:[]}},n.prototype.ew=function(t,n){return!(t.statusCode!==n.statusCode||-1===csString.prototype.indexOf.call(t.url,n.url)||n.bodyContent&&!this.By.isBodyContentMatching(t,n.bodyContent))},n.prototype.rw=function(t){this.Xy.collectStandardHeaders&&this.By.collectStandardHeaders(t),this.Xy.validCustomHeaders&&this.ow(t,this.Xy.validCustomHeaders,Number(!0)),this.Xy.plainCustomHeaders&&this.ow(t,this.Xy.plainCustomHeaders,Number(!1)),this.oy(t.url,this.Xy.validUrls)&&(this.Xy.collectQueryParam&&this.By.setCollectQueryParam(Number(this.Xy.collectQueryParam)),this.Xy.collectResponseBody&&this.By.setCollectResponseBody(Number(this.Xy.collectResponseBody)),this.Xy.collectRequestBody&&this.By.setCollectRequestBody(Number(this.Xy.collectRequestBody)))},n.prototype.ow=function(t,n,i){var r,e,s=this;try{for(var o=gn(n),u=o.next();!u.done;u=o.next()){var c=u.value;this.By.collectCustomHeaders(t,{headerName:c,encrypted:i,type:"request-response"},(function(t){return s.Ot.anonymizePII(t)}))}}catch(t){r={error:t}}finally{try{u&&!u.done&&(e=o.return)&&e.call(o)}finally{if(r)throw r.error}}},n.prototype.oy=function(t,n){return!!n&&csArray.prototype.some.call(n,(function(n){return-1!==csString.prototype.indexOf.call(t,n)}))},n}(Ta),Ca=function(t){function n(n){var i=t.call(this)||this;return i.qu=null,i.uw=null,i.Yn=null,i.Cu=null,i.hw=["value","checked","src","data","alt"],i.aw={state:Dr.MaskedElementState.Child},i.fw=function(t){var n,r;try{for(var e=p(t),s=e.next();!s.done;s=e.next()){var o=s.value;if(Dr.isMaskedElement(o.target)||Dr.isMaskedElementChild(o.target))for(var u=0;u-1&&nt.call(t,n.selector)}))&&csArray.prototype.push.call(r.attributes,e)},s=0;sNumber(t.pattern);case"less_than":return Number(i)=s}(t,i);case"unknown":return function(t){if(!k(t))return!0;if(R(t))return""===csString.prototype.trim.call(t);if(O(t))return!0===t;if(A(t))return 0!==t;return!1}(i);default:return Ji.warn("targeting.matchOperation.regex not managed operation ".concat(t.match_operation)),!1}}(t,i);return t.negate?!s:s}function r(t,n){var i=new csDate,r=i.setDate(i.getDate()-Number(t.pattern)),e=new csDate(r);return new csDate(n).toDateString()===e.toDateString()}function e(t){var n=_i(wi(t,"http://")||wi(t,"https://")?t:"https://".concat(t));return null!==n?csString.prototype.replace.call(n.host,/^www./,""):t}t.isUrlMatching=function(t,n){var r,e;try{for(var s=gn(t),o=s.next();!o.done;o=s.next()){if(i(o.value,n))return!0}}catch(t){r={error:t}}finally{try{o&&!o.done&&(e=s.return)&&e.call(s)}finally{if(r)throw r.error}}return!1},t.isMatching=function(t,n){var r,e,s,o;if(R(n))try{for(var u=gn(t),c=u.next();!c.done;c=u.next()){if(i(c.value,n))return!0}}catch(t){r={error:t}}finally{try{c&&!c.done&&(e=u.return)&&e.call(u)}finally{if(r)throw r.error}}else if(O(n))try{for(var h=gn(t),a=h.next();!a.done;a=h.next()){if(i(a.value,csString(n)))return!0}}catch(t){s={error:t}}finally{try{a&&!a.done&&(o=h.return)&&o.call(h)}finally{if(s)throw s.error}}return!1}}(Oa||(Oa={}));var za,Va=function(){function t(){this.Vw=[],this.Gw=[]}return t.prototype.setTargetingRules=function(t){var n,i;try{for(var r=gn(t),e=r.next();!e.done;e=r.next()){var s=e.value;"url"===s.component?csArray.prototype.push.call(this.Vw,s):"trigger"===s.component&&csArray.prototype.push.call(this.Gw,s)}}catch(t){n={error:t}}finally{try{e&&!e.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}},t.prototype.matchUrl=function(t){return Oa.isUrlMatching(this.Vw,t)},t.prototype.matchTrigger=function(t){return Oa.isMatching(this.Gw,t)},t}(),Ga=function(t){function n(n,i,r){var e=t.call(this)||this;return e.Jw=n,e.Yw=i,e.Ht=r,e}return vn(n,t),n.prototype.init=function(){this.Ww=new Va,this.Jw&&this.Ww.setTargetingRules(this.Jw)},n.prototype.onStart=function(){},n.prototype.checkInitialUrlTargetingRules=function(){var t=this.Ht.getAnonymizedUrl();this.$w(t,"url")&&this.Yw()},n.prototype.onStop=function(){},n.prototype.onTargetingRulesArtificialPageview=function(t){this.isStarted&&this.$w(t,"url")&&this.Yw()},n.prototype.onExternalEvent=function(t){this.isStarted&&this.$w(t.name,"trigger")&&this.Yw()},n.prototype.$w=function(t,n){var i,r;return!("url"!==n||!R(t)||!(null===(i=this.Ww)||void 0===i?void 0:i.matchUrl(t)))||!("trigger"!==n||!(null===(r=this.Ww)||void 0===r?void 0:r.matchTrigger(t)))},n}(zr),Ja=function(){function t(t,n,i,r,e,s){this.Jw=t,this.Xw=n,this.ph=i,this.Kw=r,this.Il=e,this.Ht=s}return t.prototype.init=function(){this.Zw=new Ga(this.Jw,this.Xw,this.Ht),this.Il.addListener(this.Zw),this.Zw.init()},t.prototype.start=function(){this.Zw.start()},t.prototype.stop=function(){this.Zw.stop()},t.prototype.checkInitialUrlTargetingRules=function(){this.Zw.checkInitialUrlTargetingRules()},t.prototype.emitTargetingCollectState=function(){var t=this.Kw.getInitialCollectState();t===$r.ANALYTICS_ONLY?this.ph.emitCollectStateChange($r.ANALYTICS_ONLY_RULES_TARGETING,Xr.ETR_OFF):t===$r.RECORDING_GLOBAL_SAMPLING&&this.ph.emitCollectStateChange($r.RECORDING_RULES_TARGETING,Xr.ETR_OFF)},t}(),Ya=function(){function t(t,n,i,r,e,s,o,u,c,h,a,f,l,v,d,y,w,p,m,g,S,b,A,E,R,O,T,N,k){var C=this;this.qh=t,this.Wa=n,this.Dt=i,this.Lt=r,this.ph=e,this.ra=s,this.Qw=o,this.Rt=u,this.tp=c,this.np=h,this.ip=a,this.Zl=f,this.Ot=l,this.il=v,this.mu=d,this.Ht=y,this.rp=w,this.Il=p,this.qa=m,this.Bn=g,this.ep=S,this.ca=b,this.sp=A,this.Xs=E,this.ha=R,this.op=O,this.up=T,this.Kw=N,this.Uw=k,this.cp=function(t){void 0===t&&(t=!1);var n=C.Lt.getSession();null===n?(C.hp=new Ja(C.Rt.recordTargetingRules,C.ap,C.ph,C.Kw,C.Il,C.Ht),C.hp.init(),C.hp.start()):n.collectState!==$r.RECORDING_RULES_TARGETING&&n.collectState!==$r.ANALYTICS_ONLY_RULES_TARGETING||C.ap(t)},this.ap=function(t){void 0===t&&(t=!1),C.fp.onLoad((function(){var n,i;null===(n=C.hp)||void 0===n||n.emitTargetingCollectState(),null===(i=C.hp)||void 0===i||i.stop(),C.ph.emitStartTracking(t)})),C.lp(t)},this.lp=function(t){void 0===t&&(t=!1),C.np.isActive()||(C.Uw.init(),C.vp.start(t),C.fp.start())},this.dp=function(){C.ph.emitBeforeSessionRenewal(),C.yp(!0),C.ph.emitAfterSessionRenewal()},this.wp=function(){C.ph.emitBeforeSessionRenewal(),C.Kw.refreshQuota(),C.Kw.onQuotaReady((function(t){t!==$r.QUOTA_REACHED&&(C.yp(!0),C.ph.emitAfterSessionRenewal())}))}}return t.prototype.start=function(){var t,n,i,r,e,s,o,u,c,h,a,f,l,v,d,y,w,p=this;(this.tp.init(),this.np.init(),this.np.isActive())||(this.Xs.schedule((function(){a=new Mh(p.Lt,p.Dt),v=new va(a),h=new Ah(p.il),f=new Ca((function(){})),d=new Ia;var m=new La(f,p.Uw,d,w,p.pp());l=new Ma(p.pp(),p.Uw,m,d,y);var g=new Da(p.ph,p.ra,p.Uw,m,d,y,w);g.init(),p.ph.addListener(g),t=new sh(p.Rt,p.qh,p.Dt,p.il,h,p.ra,a,new Kh(Ji),p.qa,p.ha,p.Il,l),n=new Iu(p.ra,p.Lt,p.Rt,p.qh,p.Wa,p.Ot),c=new ta(l);var S=new Jh(p.Rt);(u=new Gh(p.Rt,S,c,l,p.qa)).init();var b=new la;i=new Ou(p.Dt,p.Lt,p.ra,p.qa,S,p.Rt,b,c),r=new qu(p.Rt,p.qh,p.Dt,p.ra,p.Ot,a,p.Ht),p.vp=new bh(p.Rt,p.ra,p.ph,p.qh,p.Dt,p.Lt,p.Zl,p.Bn,p.mu,p.Ht,p.ca,b,p.Il,p.Ql,undefined),p.mp=new Ih(p.Rt,p.Dt,p.Lt,p.ra),e=new Fh(p.Rt,p.ra,p.Wa,p.qh,p.Il),s=new Vh(p.ra),o=new Qh(p.Rt,new bi(p.Rt,p.Ot),p.ha),p.fp=new Eh})),this.Rt.apiErrors.enabled&&this.Xs.schedule((function(){p.sa=new dh,p.gp=new qa(p.ra,p.sa),p.gp.init()})),this.Rt.apiErrors.enabled&&this.Xs.schedule((function(){var t,n;n=(null===(t=p.Rt.apiErrors.collectionRules)||void 0===t?void 0:t.length)?new Na(p.Rt.apiErrors,p.Ot):new ka(p.Rt.apiErrors,p.Ot),p.ae=new Wh(new ga,new Sa,n),p.fe=new $h(p.sa,p.mu),p.be=new ba;var i=new ea(p.ae,p.fe,p.Rt,p.qh,p.qa,p.ra,p.ha);i.init(),p.ph.addListener(i)})),this.Rt.customErrors.enabled&&this.Xs.schedule((function(){p.zd=new Ba(p.Ot);var t=new fa(p.zd,p.Rt,p.qh,p.ra,p.Il,p.ha,p.qa,undefined);t.init(),p.ph.addListener(t)})),this.Rt.jsErrorsEnabled&&this.Xs.schedule((function(){p.Dd=new zh,p.he=new Xh(p.Ot,p.Ht);var t=new ua(p.Dd,p.he,p.Rt,p.qh,p.qa,p.ra,p.Il,p.Ht,p.ha);t.init(),p.ph.addListener(t)})),this.Xs.schedule((function(){p.ip.init()})),this.Xs.schedule((function(){i.init()})),this.Xs.schedule((function(){n.init()})),this.Xs.schedule((function(){r.init()})),this.Xs.schedule((function(){p.ep.init()})),this.Xs.schedule((function(){p.vp.init()})),this.Xs.schedule((function(){p.mp.init()})),this.Xs.schedule((function(){e.init()})),this.Xs.schedule((function(){p.rp.init()})),this.Xs.schedule((function(){s.init()})),this.Xs.schedule((function(){o.init()})),this.Xs.schedule((function(){p.sp.init()})),this.Xs.schedule((function(){p.ph.addListener(p.mp),p.ph.addListener(p.Qw),p.ph.addListener(t),p.ph.addListener(p.ip),p.ph.addListener(i),p.ph.addListener(r),p.ph.addListener(p.ep),p.ph.addListener(p.vp),p.ph.addListener(e),p.ph.addListener(n),p.ph.addListener(u),p.ph.addListener(o),p.ph.addListener(v)})),na.isRecordingSupported()&&this.Xs.schedule((function(){var t=new fu(c,p.Lt,p.Rt,p.qh,p.ra,p.Ot,a,f,p.he,p.ae,p.fe,p.sa,p.ph,p.Il,p.qa,p.ca,p.ha,p.mu,p.be,p.pp(),p.zd,y);t.init(),p.ph.addListener(t),i.setRecordingService(t.recordingService)})),this.Xs.schedule((function(){t.init()})),this.Xs.schedule((function(){p.Rt.isQuotaEnabled()?a.onSessionExpired((function(){p.wp()})):a.onSessionExpired((function(){p.dp()})),p.yp()})))},t.prototype.yp=function(t){var n=this;if(void 0===t&&(t=!1),this.Rt.hasTargetingRules())return this.cp(t),this.ra.start(),void(this.hp&&this.hp.checkInitialUrlTargetingRules());this.ra.start(),this.fp.onLoad((function(){n.ph.emitStartTracking(t)})),Ph(this.Rt)&&!t||this.lp(t)},t.prototype.pp=function(){if(this.aa)return this.aa;var t=new pa;return this.aa=new wa(this.Zl,this.Rt,this.Ht,t),this.aa.init(),this.aa.shouldUseAnonymization()&&Fn.pii.fullAnonymizedPagesCount.increment(),this.aa},t}(),Wa=function(){function t(t,n,i,r,e,s,o,u){this.Rt=t,this.Dt=n,this.Fn=i,this.Sp=r,this.bp=e,this.Ap=s,this.Ep=o,this.Rp=u}return t.prototype.compute=function(t){var n,i,r=this;this.Rt.crossDomainTracking&&!this.Rt.cookielessTrackingEnabled?this.Rt.crossDomainSingleIframeTracking?null===(n=this.Ep)||void 0===n||n.start((function(){return r.Op(t)})):null===(i=this.Ap)||void 0===i||i.applyUpToDate((function(){return r.Op(t)})):this.Op(t)},t.prototype.Op=function(t){this.bp.handle(),this.Sp.clear(),this.Tp()?(this.Sp.restoreClearedVisitor(),t(!0)):(this.Fn.exclude(this.Rt),t(!1))},t.prototype.Tp=function(){var t=Tn.boolean(this.Rt.sampleRate);return this.Rp.isForceIncluded()||!this.Fn.isExcluded()&&this.Dt.doesVisitorExist()||!this.Fn.isExcluded()&&t},t}();!function(t){t.generate=function(){var t=navigator.userAgent+navigator.language+navigator.platform,n=csString.prototype.slice.call(function(t){for(var n=0,i=0;ithis.kp},t.prototype.renewVisitor=function(){this._p()?(this.xp=ai(),this.Pp(),this.ph.emitAfterVisitorRenewal()):Ji.warn("session:start:newVisitor is trying to renew visitor under time limit")},t.prototype.Pp=function(){this.ph.emitBeforeVisitorRenewal(),this.removeVisitor()},t}(),Ka="_cs_s",Za=18e5,Qa=/^(\d+\.[01356789TBWX](\.[01])?(\.[39])?)(\.\d+)?$/,tf=".";!function(t){t[t.NOT_FOUND=0]="NOT_FOUND",t[t.EXPIRED=1]="EXPIRED",t[t.FOUND=2]="FOUND"}($a||($a={}));var nf,rf=function(){function t(t,n,i){this.Rt=t,this.op=n,this.Dp=i,this.Ro=null,this.Lp=!1}return t.prototype.get=function(n){var i=this.getRawSession(n);return this.isValid(i)?t.fromString(i):null},t.prototype.getRawSession=function(n){if(n){var i=this.jp();return t.qp(i)}var r=this.Hp(),e=r.sessionString,s=r.status,o=t.qp(e);if(s!==$a.EXPIRED)return o;if(this.Rt.cookielessTrackingEnabled)return null;var u=this.jp();if(!u)return null;var c=csString.prototype.split.call(u,tf);if(!t.Fp(c))return u;var h=c[c.length-1],a=parseInt(h,10);return isNaN(a)||this.Bp(a),o},t.prototype.onCookieToSet=function(t){this.zp=t},t.prototype.onCookieToRemove=function(t){this.Vp=t},t.prototype.set=function(t,n){var i;void 0===n&&(n=Za);var r=ai()+n,e=this.toString(t);e+="".concat(tf).concat(r),this.Gp(e,r),this.Rt.cookielessTrackingEnabled?this.Dp.setItem(Ka,e):(this.op.set(Ka,e,n),null===(i=this.zp)||void 0===i||i.call(this,Ka,e,n))},t.prototype.remove=function(){var t;this.Rt.cookielessTrackingEnabled?this.Dp.removeItem(Ka):(this.op.delete(Ka),null===(t=this.Vp)||void 0===t||t.call(this,Ka)),this.Jp()},t.prototype.handleSubdomainChange=function(){if(!this.Rt.cookielessTrackingEnabled){var t=this.get(!0);t&&(this.Rt.allowSubdomains?this.op.delete(Ka,$i.CURRENT_DOMAIN):this.op.delete(Ka,this.op.getRootDomain()),this.set(t))}},t.prototype.isValid=function(n){return null!==n&&t.isValidSessionString(n)},t.prototype.toString=function(t){return csArray.prototype.join.call([t.pageNumber,t.collectState,t.etrState,t.etrStatus],tf)},t.prototype.Gp=function(t,n){this.Ro={sessionString:t,expires:n}},t.prototype.Hp=function(){return this.Ro?this.Ro&&ai()<=this.Ro.expires?{sessionString:this.Ro.sessionString,status:$a.FOUND}:{sessionString:this.Ro.sessionString,status:$a.EXPIRED}:{sessionString:this.jp(),status:$a.NOT_FOUND}},t.prototype.Jp=function(){this.Ro=null},t.prototype.Bp=function(t){this.Ro&&(this.Ro.expires=t,this.Lp=!0)},t.prototype.isCacheRefreshed=function(){return this.Lp},t.prototype.resetCacheRefreshed=function(){this.Lp=!1},t.prototype.jp=function(){if(this.Rt.cookielessTrackingEnabled){var t=this.Dp.getItem(Ka);return!t||this.Yp(t)?null:t}var n=this.op.get(Ka);return!n||this.Yp(n)?null:n},t.prototype.Yp=function(n){var i=csString.prototype.split.call(n,tf);if(!t.Fp(i))return!1;var r=parseInt(i[i.length-1],10);return!isNaN(r)&&ai()>r},t.Fp=function(t){return 13===t[t.length-1].length},t.qp=function(t){var n;if(!t)return null;var i=null===(n=csString.prototype.match.call(t,Qa))||void 0===n?void 0:n[1];return null!=i?i:null},t.fromRawString=function(n){var i=t.qp(n);return null!==i?t.fromString(i):null},t.fromString=function(t){var n,i,r=Sn(csString.prototype.split.call(t,tf),4),e=r[0],s=r[1],o=r[2],u=r[3];return{collectState:s,etrState:null!==(n=o)&&void 0!==n?n:Xr.ETR_OFF,etrStatus:null!==(i=u)&&void 0!==i?i:Zr.ETR_NOT_SAVED_SESSION,pageNumber:parseInt(e,10)}},t.isValidSessionString=function(t){return Qa.test(t)},t}();!function(t){t[t.NO=0]="NO",t[t.WITHDRAWN=1]="WITHDRAWN",t[t.GRANTED=2]="GRANTED"}(nf||(nf={}));var ef,sf=function(){function t(t,n){this.Wp=t,this.Kw=n,this.$p=null,this.Xp=0,this.Kp=nf.NO}return t.prototype.setDynamicVariablesService=function(t){this.Zp=t},t.prototype.createOrUpdateSession=function(){this.Qp(),this.tm=ai(),this.Xp=0;var t=this.nm();null===t?(t=this.im(),this.rm(t),this.sm(t)):(t=this.Kw.sanitizeSessionCollectState(t),this.rm(t),t.collectState=this.Kw.getEligibleCollectState(t)),this.setSession(t)},t.prototype.grantReplayRecording=function(t){t.collectState=this.Kw.getInitialCollectState(),t.collectState=this.Kw.computeInitialCollectStateFromRecordingConsentGranted(t),this.setSession(t)},t.prototype.grantReplayRecordingBeforeSessionStart=function(){this.Kp=nf.GRANTED},t.prototype.withdrawnReplayRecording=function(t){t.collectState=this.Kw.getRecordingConsentWithdrawn(),this.setSession(t)},t.prototype.withdrawnReplayRecordingBeforeSessionStart=function(){this.Kp=nf.WITHDRAWN},t.prototype.sm=function(t){this.Kp===nf.WITHDRAWN?(t.collectState=this.Kw.getRecordingConsentWithdrawn(),this.setSession(t)):this.Kp===nf.GRANTED?t.collectState=this.Kw.computeInitialCollectStateFromRecordingConsentGranted(t):t.collectState=this.Kw.computeInitialCollectState(t),this.Kp=nf.NO},t.prototype.im=function(){return{pageNumber:0,collectState:this.Kw.getInitialCollectState(),etrState:Xr.ETR_OFF,etrStatus:Zr.ETR_NOT_SAVED_SESSION}},t.prototype.rm=function(t){t.pageNumber+=1},t.prototype.isReplayRecorded=function(){var t=this.getSession();return!!t&&this.Kw.isReplayRecorded(t)},t.prototype.isTemporarilyRecorded=function(){var t=this.getSession();return(null==t?void 0:t.collectState)===$r.RECORDING_TEMPORARILY},t.prototype.abortQuotaServiceRequest=function(){this.Kw.abortQuotaServiceRequest()},t.prototype.getRequestParameters=function(){var t={},n=this.getSession();return null!==n&&(t.pn="".concat(n.pageNumber)),t},t.prototype.getSession=function(){return this.Wp.get()},t.prototype.nm=function(){return this.Wp.get(!0)},t.prototype.doesSessionExist=function(){return null!==this.Wp.get()},t.prototype.setSession=function(t){this.Wp.set(t)},t.prototype.refreshSession=function(){var t=this.nm();t&&this.setSession(t)},t.prototype.removeSession=function(){this.Wp.remove()},t.prototype.getCollectStates=function(){var t=this.getSession(),n=[];return t&&(t.collectState!==$r.ANALYTICS_ONLY&&csArray.prototype.push.call(n,t.collectState===$r.RECORDING_RULES_TARGETING?$r.RECORDING_GLOBAL_SAMPLING:t.collectState),t.etrState===Xr.ETR_ON&&csArray.prototype.push.call(n,$r.RECORDING_ETR_SAMPLING)),n},t.prototype.updateCollectState=function(t,n){var i=this.getSession();null!==i&&(i.collectState=t,i.etrState=n,this.setSession(i))},t.prototype.hasValidSession=function(){var t=this.Wp.getRawSession();return this.Wp.isValid(t)},t.prototype.handleSubdomainChange=function(){this.Wp.handleSubdomainChange()},t.prototype.pollCacheRefreshEvent=function(t){void 0===t&&(t=!0);var n=this.Wp.isCacheRefreshed();return n&&t&&this.Wp.resetCacheRefreshed(),n},t.prototype.extendSessionPeriodically=function(){this.$p||this.om()},t.prototype.extendSession=function(){var t=this.getSession();return null===t?(Ji.warn("extendSession is trying to extend an expired session"),this.Qp(),!1):(this.Wp.set(t,Za),!0)},t.prototype.om=function(){this.um()?this.Qp():this.extendSession()&&(this.hm(),this.am())},t.prototype.am=function(){var t=this;this.$p=window.csSetTimeout((function(){t.om()}),174e4)},t.prototype.um=function(){return 1434e4-(ai()+Za-this.tm)<0},t.prototype.Qp=function(){this.$p&&(window.csClearTimeout(this.$p),this.$p=null)},t.prototype.hm=function(){this.Xp+=1,this.Zp.trackDynamicVariable("session_expiry_update",this.Xp)},t}(),of=function(){function t(t,n,i){this.Rt=t,this.Dt=n,this.Fn=i}return t.prototype.clear=function(){this.fm()&&(this.lm=this.Dt.getVisitor(),this.Dt.removeVisitor()),this.vm()&&this.Fn.removeExclusion()},t.prototype.fm=function(){return this.Dt.doesVisitorExist()&&this.Dt.getVisitor().appliedTrackingDraw!==this.Rt.lastTrackingDraw},t.prototype.vm=function(){return this.Fn.getAppliedTrackingDraw()!==this.Rt.lastTrackingDraw},t.prototype.restoreClearedVisitor=function(){this.lm&&this.Dt.setVisitor(this.lm)},t}(),uf=function(){function t(t,n,i){this.Dt=t,this.Lt=n,this.dm=i}return t.prototype.handle=function(){this.Dt.hasAllowSubdomainsChanged()&&(this.Dt.handleSubdomainChange(),this.Lt.handleSubdomainChange(),this.dm.handleSubdomainChange())},t}(),cf="_cs_c";!function(t){t[t.NOT_REQUIRED=0]="NOT_REQUIRED",t[t.NOT_EXPRESSED=1]="NOT_EXPRESSED",t[t.GRANTED=2]="GRANTED",t[t.WITHDRAWN=3]="WITHDRAWN"}(ef||(ef={}));var hf,af=function(){function t(t,n,i){this.Rt=t,this.op=n,this.up=i}return t.prototype.get=function(){var t;return null===(t=this.Rt.cookielessTrackingEnabled?this.up.getItem(cf):this.op.get(cf))?t:Number(t)},t.prototype.set=function(t){this.Rt.cookielessTrackingEnabled?this.up.setItem(cf,csString(t)):this.op.set(cf,csString(t),On)},t.prototype.remove=function(){this.Rt.cookielessTrackingEnabled?this.up.removeItem(cf):this.op.delete(cf)},t.prototype.handleSubdomainChange=function(){this.Rt.cookielessTrackingEnabled||(this.Rt.allowSubdomains?this.op.delete(cf,$i.CURRENT_DOMAIN):this.op.delete(cf,this.op.getRootDomain()))},t}(),ff=function(){function t(t,n,i){this.Rt=t,this.Lt=n,this.ph=i}return t.prototype.grantReplayConsent=function(){if(ru.isReplayConsentNeeded(this.Rt)){var t=this.Lt.getSession();t?ru.isRecordingBlockedByConsent(t)&&(this.Lt.grantReplayRecording(t),this.ph.emitAfterReplayRecordingConsentGranted()):this.Lt.grantReplayRecordingBeforeSessionStart()}},t.prototype.withdrawReplayConsent=function(){if(ru.isReplayConsentNeeded(this.Rt)){var t=this.Lt.getSession();t?ru.isRecordingWithDrawn(t)||(this.Lt.withdrawnReplayRecording(t),this.ph.emitAfterReplayRecordingConsentWithdrawn()):this.Lt.withdrawnReplayRecordingBeforeSessionStart()}},t}(),lf=["replay:consent:unanonymized:granted","trackConsentGranted"],vf=["replay:consent:unanonymized:withdrawn","trackConsentWithdrawn"],df=["replay:consent:startForSession:granted"],yf=["replay:consent:startForSession:withdrawn"],wf=function(){function t(t,n,i,r,e){this.Rt=t,this.ra=n,this.Zl=i,this.Lt=r,this.ph=e}return t.prototype.init=function(){this.ym=new ff(this.Rt,this.Lt,this.ph),this.Zl.setInitialConsent(),this.xd()},t.prototype.xd=function(){var t=this;this.ra.register(lf,(function(){t.Zl.grantReplayAnonymizationConsent()})),this.ra.register(vf,(function(){t.Zl.withdrawReplayAnonymizationConsent()})),this.ra.register(df,(function(){t.ym.grantReplayConsent()})),this.ra.register(yf,(function(){t.ym.withdrawReplayConsent()}))},t.prototype.onOptout=function(){this.Zl.removeAllConsents()},t.prototype.onBeforeVisitorRenewal=function(){this.Zl.removeAllConsents()},t.prototype.onAfterVisitorRenewal=function(){this.Zl.setInitialConsent()},t.prototype.onAfterVisitorCleared=function(){this.Zl.setInitialConsent()},t}(),pf=function(){function t(t,n,i){this.Rt=t,this.Np=n,this.ph=i}return t.prototype.setInitialConsent=function(){var t=this.Np.get();(null===t||this.hasConsentRequiredChanged(t))&&this.setDefaultReplayAnonymization()},t.prototype.hasConsentRequiredChanged=function(t){var n=this.Rt.consentRequired;return n&&t===ef.NOT_REQUIRED||!n&&t!==ef.NOT_REQUIRED},t.prototype.handleSubdomainChange=function(){this.Np.handleSubdomainChange()},t.prototype.setDefaultReplayAnonymization=function(){var t=this.Rt.consentRequired?ef.NOT_EXPRESSED:ef.NOT_REQUIRED;this.Np.set(t)},t.prototype.grantReplayAnonymizationConsent=function(){this.Rt.consentRequired&&(this.Np.set(ef.GRANTED),this.ph.emitReplayUnanonymizationConsentGranted())},t.prototype.withdrawReplayAnonymizationConsent=function(){this.Rt.consentRequired&&(this.Np.set(ef.WITHDRAWN),this.ph.emitReplayUnanonymizationConsentWithdrawn())},t.prototype.removeAllConsents=function(){this.Np.remove()},t.prototype.isReplayUnanonymizedAllowedByConsent=function(){return!this.Rt.consentRequired||this.Np.get()===ef.GRANTED},t.prototype.getRequestParameters=function(){return{uc:"".concat(this.Np.get())}},t}(),mf=function(){function t(t,n,i,r,e,s,o){this.ph=t,this.ra=n,this.Qw=i,this.tp=r,this.np=e,this.wm=s,this.ip=o}return t.prototype.start=function(){this.ph.addListener(this.wm),this.ph.addListener(this.ip),this.ph.addListener(this.Qw),this.ip.init(),this.tp.init(),this.np.init(),this.np.isActive()||this.ra.start()},t}(),gf="_cs_ex",Sf=2592e6,bf=/^[0-9]+$/,Af=function(){function t(t,n,i){this.Rt=t,this.op=n,this.Dp=i}return t.prototype.onCookieToSet=function(t){this.zp=t},t.prototype.onCookieToRemove=function(t){this.Vp=t},t.prototype.get=function(){return this.Rt.cookielessTrackingEnabled?Number(this.Dp.getItem(gf)):Number(this.op.get(gf))},t.prototype.set=function(t){var n;this.Rt.cookielessTrackingEnabled?this.Dp.setItem(gf,t):(this.op.set(gf,t,Sf),null===(n=this.zp)||void 0===n||n.call(this,gf,t,Sf))},t.prototype.remove=function(){var t;this.Rt.cookielessTrackingEnabled?this.Dp.removeItem(gf):(this.op.delete(gf),null===(t=this.Vp)||void 0===t||t.call(this,gf))},t.isValidExclusionString=function(t){return bf.test(t)},t}(),Ef=function(){function t(t,n){this.gs=t,this.Np=n}return t.prototype.exclude=function(t){this.Np.set(csString(t.lastTrackingDraw))},t.prototype.removeExclusion=function(){this.Np.remove()},t.prototype.isExcluded=function(){return this.pm()||this.gm()},t.prototype.pm=function(){return 0!==this.getAppliedTrackingDraw()},t.prototype.getAppliedTrackingDraw=function(){return this.Np.get()},t.prototype.gm=function(){return csString.prototype.indexOf.call(this.gs.href,gf)>0},t}(),Rf=function(){function t(t){this.Xa=t}return t.prototype.onOptout=function(){this.Xa.removeExclusion()},t}();!function(t){t.SessionReplay="SR",t.None=""}(hf||(hf={}));var Of=function(){function t(t){this.Ht=t,this.Sm=new csRegExp("".concat(".^"))}return t.prototype.setExcludeUrlForSessionReplay=function(t){try{this.Sm=new csRegExp(t)}catch(n){Ji.warn("excludeURLforReplay - invalid regex '".concat(t,"'")),this.Sm=new csRegExp("".concat(".*"))}},t.prototype.bm=function(){return this.Sm.test(this.Ht.getAnonymizedUrl())?hf.SessionReplay:hf.None},t.prototype.isUrlExcludedForSessionReplay=function(){return this.bm()===hf.SessionReplay},t.prototype.getRequestParameters=function(){return{ex:this.bm()}},t}(),Tf=["excludeURLforReplay"],Nf=function(){function t(t,n){this.Xa=t,this.ra=n}return t.prototype.init=function(){var t=this;this.ra.register(Tf,(function(n){R(n)&&t.Xa.setExcludeUrlForSessionReplay(n)}))},t}(),kf="_cs_inc",Cf=function(){function t(t,n){this.gs=t,this.op=n}return t.prototype.isForceIncluded=function(){return this.Am()||this.Em()},t.prototype.isForceReplayRecorded=function(){return this.Rm($r.RECORDING_GLOBAL_SAMPLING)},t.prototype.Am=function(){return null!==this.op.get(kf)},t.prototype.Rm=function(t){return this.op.get(kf)===t},t.prototype.Em=function(){return csString.prototype.indexOf.call(this.gs.href,kf)>0},t}(),If="_cs_optout",Mf=function(){function t(t,n,i){this.Rt=t,this.op=n,this.up=i}return t.prototype.get=function(){return this.Rt.cookielessTrackingEnabled?this.up.getItem(If):this.op.get(If)},t.prototype.set=function(t){this.Rt.cookielessTrackingEnabled?this.up.setItem(If,t):this.op.set(If,t,On)},t}(),Pf=function(){function t(t,n,i){this.ph=t,this.gs=n,this.Np=i}return t.prototype.init=function(){!this.isActive()&&this.Om()&&this.activate()},t.prototype.isActive=function(){return"1"===this.Np.get()},t.prototype.activate=function(){this.ph.emitOptout(),this.Np.set("1")},t.prototype.Om=function(){return csString.prototype.indexOf.call(this.gs.href,If)>0},t}(),_f=["optout"],xf=["optin"],Df=function(){function t(t,n){this.ra=t,this.np=n}return t.prototype.init=function(){var t=this;this.ra.register(_f,(function(){t.np.activate()}))},t}(),Lf=function(){function t(t,n){this.ra=t,this.qa=n}return t.prototype.init=function(){this.qa.addListener(this.ra)},t.prototype.onOptout=function(){this.ra.stop()},t.prototype.onBeforeSessionRenewal=function(){this.ra.stop()},t}();var Uf;!function(t){t.UXA="_uxa",t.WVT="cs_wvt"}(Uf||(Uf={}));var jf,qf=function(t){function n(n){var i=t.call(this)||this;return i.Tm=n,i.Nm={},i}return vn(n,t),n.prototype.register=function(t,n,i){var r,e;try{for(var s=gn(t),o=s.next();!o.done;o=s.next()){var u=o.value;this.Nm[u]={callback:n,configuration:i},this.Nm}}catch(t){r={error:t}}finally{try{o&&!o.done&&(e=s.return)&&e.call(s)}finally{if(r)throw r.error}}},n.prototype.onStart=function(){this.km(),this.Cm()},n.prototype.onStop=function(){var t,n;try{for(var i=gn(this.Tm),r=i.next();!r.done;r=i.next()){var e=r.value;window[e]=[]}}catch(n){t={error:n}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},n.prototype.applyFromIntegration=function(t,n,i){this.Im(t,n,"Commands.apply.from.integration: ".concat(i))},n.prototype.applyFromImplementation=function(t,n,i){this.Im(t,n,"Commands.apply.from.implementation: ".concat(i))},n.prototype.onIframeCommands=function(t){var n,i;try{for(var r=gn(t.commands),e=r.next();!e.done;e=r.next()){var s=e.value;this.Mm(s.name,s.params,t.iframePath)}}catch(t){n={error:t}}finally{try{e&&!e.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}},n.prototype.Im=function(t,n,i){var r=this;this.isStarted?Ji.tryToExecute(i,(function(){var i;if(r.Nm[t])return(i=r.Nm[t]).callback.apply(i,bn([],Sn(n),!1))}))():window._uxa.push(bn([t],Sn(n),!1))},n.prototype.Mm=function(t,n,i){var r=this;Ji.tryToExecute("Commands.apply.from.iframe: ".concat(i),(function(){var i;if(r.Nm[t])return(i=r.Nm[t]).callback.apply(i,bn([],Sn(n),!1))}))()},n.prototype.km=function(){var t,n,i=this;try{for(var r=gn(this.Tm),e=r.next();!e.done;e=r.next()){var s=e.value;window[s].forEach((function(t){var n=Sn(t),r=n[0],e=n.slice(1);return i.Pm(r,e,!1)}))}}catch(n){t={error:n}}finally{try{e&&!e.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},n.prototype.Cm=function(){var t,n,i=this;try{for(var r=gn(this.Tm),e=r.next();!e.done;e=r.next()){var s=e.value;window[s]={push:function(t){var n=Sn(t),r=n[0],e=n.slice(1);return i.Pm(r,e,!0)}}}}catch(n){t={error:n}}finally{try{e&&!e.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},n.prototype.Pm=function(t,n,i){var r,e,s;if(this.Nm[t]){if((null===(e=this.Nm[t].configuration)||void 0===e?void 0:e.disableApplyPending)&&!i||(null===(s=this.Nm[t].configuration)||void 0===s?void 0:s.disableApplyImmediate)&&i)return;try{return(r=this.Nm[t]).callback.apply(r,bn([],Sn(n),!1))}catch(i){Ji.error("Command ".concat(t," failed - params: ").concat(csJSON.stringify(n)),i)}}},n}(zr),Hf=function(){function t(t,n,i,r){this.Rt=t,this.Dt=n,this.Lt=i,this._m=r}return t.prototype.getRequestParameters=function(){var t,n,i,r,e,s=dn(dn({},ni()),this.Rt.getRequestParameters()),o=this.Lt.getSession();o&&(s.pn="".concat(o.pageNumber));var u=this.Dt.getVisitor();if(u&&(s.sn="".concat(u.visitsCount),s.uu="".concat(u.id)),(null===(t=this._m)||void 0===t?void 0:t.hasSubProjectId())&&(s.subProjectID="".concat(this._m.getSubProjectId())),window.heap)try{s.happid=window.heap.appid,s.hsid=null===(i=(n=window.heap).getSessionId)||void 0===i?void 0:i.call(n),s.huu=(null===(e=(r=window.heap).getUserId)||void 0===e?void 0:e.call(r))||window.heap.userId}catch(t){delete s.happid,delete s.hsid,delete s.huu}return s},t}(),Ff=function(){function t(t,n){this.ra=t,this.tt=n}return t.prototype.init=function(){var t=this;this.ra.register(["debugEvents"],(function(n){"boolean"==typeof n&&t.tt.updateDynamicFields("emitDebugEvents",n)}))},t}();function Bf(t,n,i){if(!N(n)&&!N(i))return t.href;var r=N(n)?zf(n):t.pathname,e=N(i)?Vf(i):t.search;return"".concat(t.protocol,"//").concat(t.host).concat(r).concat(e)}function zf(t){return Rn(t,"/")?t:"/".concat(t)}function Vf(t){return Rn(t,"?")||""===t?t:"?".concat(t)}!function(t){t[t.page=1]="page",t[t.onNextPageviewOnly=2]="onNextPageviewOnly"}(jf||(jf={}));var Gf,Jf=function(){function t(t,n){this.gs=t,this.mu=n,this.xm=10}return t.prototype.overridePath=function(t,n){if(""!==t){var i=this.Dm(n);i&&(this.Lm=i),this.Um=n?this.jm(t,n):t}else this.Um=void 0},t.prototype.overrideQuery=function(t,n){var i=this.Dm(n);i&&(this.qm=i),this.Hm=n?this.jm(t,n):t},t.prototype.computeOverriddenUrl=function(t){return this.Fm(t)?this.getAnonymizedUrl():t},t.prototype.Bm=function(t){return("string"==typeof t||"number"==typeof t)&&t in jf},t.prototype.Fm=function(t){var n=this.zm(this.gs.href);return this.zm(t)===n},t.prototype.zm=function(t){return n=t,i="/",-1!==csString.prototype.indexOf.call(n,i,n.length-i.length)?csString.prototype.slice.call(t,0,-1):t;var n,i},t.prototype.Dm=function(t){return N(null==t?void 0:t.lifespan)&&this.Bm(null==t?void 0:t.lifespan)?null==t?void 0:t.lifespan:null},t.prototype.Vm=function(){return this.Lm&&this.Lm in jf},t.prototype.Gm=function(){return this.qm&&this.qm in jf},t.prototype.cleanupOverrideLifespan=function(){this.Vm()&&(this.Um=void 0,this.Lm=void 0),this.Gm()&&(this.Hm=void 0,this.qm=void 0)},t.prototype.getAnonymizedUrl=function(){var t=Bf(this.gs,this.Um,this.Hm);return this.mu.anonymizeUrl(t)},t.prototype.getUrl=function(){return Bf(this.gs,this.Um,this.Hm)},t.prototype.getAnonymizedPathAndQuery=function(){var t=N(this.Um)?zf(this.Um):this.gs.pathname,n=N(this.Hm)?Vf(this.Hm):this.gs.search;return this.mu.anonymizeUrl(t+n)},t.prototype.getUrlProtocol=function(){return this.gs.protocol},t.prototype.getRequestParameters=function(){return{url:this.getAnonymizedUrl()}},t.prototype.jm=function(t,n){return this.Jm(n)?this.Ym(t):this.Wm(n)?this.$m(t):t},t.prototype.Wm=function(t){return Boolean(t.decodeURI)},t.prototype.$m=function(t){return this.Xm(t,1,!1)},t.prototype.Jm=function(t){return Boolean(t.decodeURIDeep)},t.prototype.Ym=function(t){return this.Xm(t,this.xm,!0)},t.prototype.Xm=function(t,n,i){for(var r=t,e=0;e=0;)t[n]=0}var n=256,i=286,r=30,e=15,s=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]),o=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]),u=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),c=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),h=new Array(576);t(h);var a=new Array(60);t(a);var f=new Array(512);t(f);var l=new Array(256);t(l);var v=new Array(29);t(v);var d,y,w,p=new Array(r);function m(t,n,i,r,e){this.static_tree=t,this.extra_bits=n,this.extra_base=i,this.elems=r,this.max_length=e,this.has_stree=t&&t.length}function g(t,n){this.dyn_tree=t,this.max_code=0,this.stat_desc=n}t(p);var S=function(t){return t<256?f[t]:f[256+(t>>>7)]},b=function(t,n){t.pending_buf[t.pending++]=255&n,t.pending_buf[t.pending++]=n>>>8&255},A=function(t,n,i){t.bi_valid>16-i?(t.bi_buf|=n<>16-t.bi_valid,t.bi_valid+=i-16):(t.bi_buf|=n<>>=1,i<<=1}while(--n>0);return i>>>1},O=function(t,n,i){var r,s,o=new Array(16),u=0;for(r=1;r<=e;r++)o[r]=u=u+i[r-1]<<1;for(s=0;s<=n;s++){var c=t[2*s+1];0!==c&&(t[2*s]=R(o[c]++,c))}},T=function(t){var n;for(n=0;n8?b(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},k=function(t,n,i,r){var e=2*n,s=2*i;return t[e]>1;i>=1;i--)C(t,o,i);s=h;do{i=t.heap[1],t.heap[1]=t.heap[t.heap_len--],C(t,o,1),r=t.heap[1],t.heap[--t.heap_max]=i,t.heap[--t.heap_max]=r,o[2*s]=o[2*i]+o[2*r],t.depth[s]=(t.depth[i]>=t.depth[r]?t.depth[i]:t.depth[r])+1,o[2*i+1]=o[2*r+1]=s,t.heap[1]=s++,C(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,n){var i,r,s,o,u,c,h=n.dyn_tree,a=n.max_code,f=n.stat_desc.static_tree,l=n.stat_desc.has_stree,v=n.stat_desc.extra_bits,d=n.stat_desc.extra_base,y=n.stat_desc.max_length,w=0;for(o=0;o<=e;o++)t.bl_count[o]=0;for(h[2*t.heap[t.heap_max]+1]=0,i=t.heap_max+1;i<573;i++)(o=h[2*h[2*(r=t.heap[i])+1]+1]+1)>y&&(o=y,w++),h[2*r+1]=o,r>a||(t.bl_count[o]++,u=0,r>=d&&(u=v[r-d]),c=h[2*r],t.opt_len+=c*(o+u),l&&(t.static_len+=c*(f[2*r+1]+u)));if(0!==w){do{for(o=y-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[y]--,w-=2}while(w>0);for(o=y;0!==o;o--)for(r=t.bl_count[o];0!==r;)(s=t.heap[--i])>a||(h[2*s+1]!==o&&(t.opt_len+=(o-h[2*s+1])*h[2*s],h[2*s+1]=o),r--)}}(t,n),O(o,a,t.bl_count)},P=function(t,n,i){var r,e,s=-1,o=n[1],u=0,c=7,h=4;for(0===o&&(c=138,h=3),n[2*(i+1)+1]=65535,r=0;r<=i;r++)e=o,o=n[2*(r+1)+1],++u>=7;g0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var i,r=4093624447;for(i=0;i<=31;i++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*i])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(i=32;i=3&&0===t.bl_tree[2*c[n]+1];n--);return t.opt_len+=3*(n+1)+5+5+4,n}(t),s=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=s&&(s=o)):s=o=r+5,r+4<=s&&-1!==i?D(t,i,r,e):4===t.strategy||o===s?(A(t,2+(e?1:0),3),I(t,h,a)):(A(t,4+(e?1:0),3),function(t,n,i,r){var e;for(A(t,n-257,5),A(t,i-1,5),A(t,r-4,4),e=0;e>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&i,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===i?t.dyn_ltree[2*r]++:(t.matches++,i--,t.dyn_ltree[2*(l[r]+n+1)]++,t.dyn_dtree[2*S(i)]++),t.last_lit===t.lit_bufsize-1},q=function(t){A(t,2,3),E(t,256,h),function(t){16===t.bi_valid?(b(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)},H={_tr_init:L,_tr_stored_block:D,_tr_flush_block:U,_tr_tally:j,_tr_align:q},F=function(t,n,i,r){for(var e=65535&t,s=t>>>16&65535,o=0;0!==i;){i-=o=i>2e3?2e3:i;do{s=s+(e=e+n[r++]|0)|0}while(--o);e%=65521,s%=65521}return e|s<<16},B=new Uint32Array(function(){for(var t,n=[],i=0;i<256;i++){t=i;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;n[i]=t}return n}()),z=function(t,n,i,r){var e=B,s=r+i;t^=-1;for(var o=r;o>>8^e[255&(t^n[o])];return~t},V={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"},G=0,J=2,Y=3,W=4,$=0,X=1,K=-1,Z=0,Q=8,tt=H._tr_init,nt=H._tr_stored_block,it=H._tr_flush_block,rt=H._tr_tally,et=H._tr_align,st=G,ot=1,ut=Y,ct=W,ht=5,at=$,ft=X,lt=-2,vt=-3,dt=-5,yt=K,wt=1,pt=2,mt=3,gt=4,St=Z,bt=2,At=Q,Et=258,Rt=262,Ot=103,Tt=113,Nt=666,kt=function(t,n){return t.msg=V[n],n},Ct=function(t){return(t<<1)-(t>4?9:0)},It=function(t){for(var n=t.length;--n>=0;)t[n]=0},Mt=function(t,n,i){return(n<t.avail_out&&(i=t.avail_out),0!==i&&(t.output.set(n.pending_buf.subarray(n.pending_out,n.pending_out+i),t.next_out),t.next_out+=i,n.pending_out+=i,t.total_out+=i,t.avail_out-=i,n.pending-=i,0===n.pending&&(n.pending_out=0))},_t=function(t,n){it(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,n),t.block_start=t.strstart,Pt(t.strm)},xt=function(t,n){t.pending_buf[t.pending++]=n},Dt=function(t,n){t.pending_buf[t.pending++]=n>>>8&255,t.pending_buf[t.pending++]=255&n},Lt=function(t,n,i,r){var e=t.avail_in;return e>r&&(e=r),0===e?0:(t.avail_in-=e,n.set(t.input.subarray(t.next_in,t.next_in+e),i),1===t.state.wrap?t.adler=F(t.adler,n,e,i):2===t.state.wrap&&(t.adler=z(t.adler,n,e,i)),t.next_in+=e,t.total_in+=e,e)},Ut=function(t,n){var i,r,e=t.max_chain_length,s=t.strstart,o=t.prev_length,u=t.nice_match,c=t.strstart>t.w_size-Rt?t.strstart-(t.w_size-Rt):0,h=t.window,a=t.w_mask,f=t.prev,l=t.strstart+Et,v=h[s+o-1],d=h[s+o];t.prev_length>=t.good_match&&(e>>=2),u>t.lookahead&&(u=t.lookahead);do{if(h[(i=n)+o]===d&&h[i+o-1]===v&&h[i]===h[s]&&h[++i]===h[s+1]){s+=2,i++;do{}while(h[++s]===h[++i]&&h[++s]===h[++i]&&h[++s]===h[++i]&&h[++s]===h[++i]&&h[++s]===h[++i]&&h[++s]===h[++i]&&h[++s]===h[++i]&&h[++s]===h[++i]&&so){if(t.match_start=n,o=r,r>=u)break;v=h[s+o-1],d=h[s+o]}}}while((n=f[n&a])>c&&0!=--e);return o<=t.lookahead?o:t.lookahead},jt=function(t){var n,i,r,e,s,o=t.w_size;do{if(e=t.window_size-t.lookahead-t.strstart,t.strstart>=o+(o-Rt)){t.window.set(t.window.subarray(o,o+o),0),t.match_start-=o,t.strstart-=o,t.block_start-=o,n=i=t.hash_size;do{r=t.head[--n],t.head[n]=r>=o?r-o:0}while(--i);n=i=o;do{r=t.prev[--n],t.prev[n]=r>=o?r-o:0}while(--i);e+=o}if(0===t.strm.avail_in)break;if(i=Lt(t.strm,t.window,t.strstart+t.lookahead,e),t.lookahead+=i,t.lookahead+t.insert>=3)for(s=t.strstart-t.insert,t.ins_h=t.window[s],t.ins_h=Mt(t,t.ins_h,t.window[s+1]);t.insert&&(t.ins_h=Mt(t,t.ins_h,t.window[s+3-1]),t.prev[s&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=s,s++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead=3&&(t.ins_h=Mt(t,t.ins_h,t.window[t.strstart+3-1]),i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==i&&t.strstart-i<=t.w_size-Rt&&(t.match_length=Ut(t,i)),t.match_length>=3)if(r=rt(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=Mt(t,t.ins_h,t.window[t.strstart+3-1]),i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=Mt(t,t.ins_h,t.window[t.strstart+1]);else r=rt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(_t(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,n===ct?(_t(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(_t(t,!1),0===t.strm.avail_out)?1:2},Ht=function(t,n){for(var i,r,e;;){if(t.lookahead=3&&(t.ins_h=Mt(t,t.ins_h,t.window[t.strstart+3-1]),i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==i&&t.prev_length4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){e=t.strstart+t.lookahead-3,r=rt(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=e&&(t.ins_h=Mt(t,t.ins_h,t.window[t.strstart+3-1]),i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,r&&(_t(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((r=rt(t,0,t.window[t.strstart-1]))&&_t(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=rt(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,n===ct?(_t(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(_t(t,!1),0===t.strm.avail_out)?1:2};function Ft(t,n,i,r,e){this.good_length=t,this.max_lazy=n,this.nice_length=i,this.max_chain=r,this.func=e}var Bt=[new Ft(0,0,0,0,(function(t,n){var i=65535;for(i>t.pending_buf_size-5&&(i=t.pending_buf_size-5);;){if(t.lookahead<=1){if(jt(t),0===t.lookahead&&n===st)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+i;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,_t(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-Rt&&(_t(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,n===ct?(_t(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(_t(t,!1),t.strm.avail_out),1)})),new Ft(4,4,8,4,qt),new Ft(4,5,16,8,qt),new Ft(4,6,32,32,qt),new Ft(4,4,16,16,Ht),new Ft(8,16,32,32,Ht),new Ft(8,16,128,128,Ht),new Ft(8,32,128,256,Ht),new Ft(32,128,258,1024,Ht),new Ft(32,258,258,4096,Ht)];function zt(){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=At,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(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),It(this.dyn_ltree),It(this.dyn_dtree),It(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),It(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),It(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}var Vt=function(t){if(!t||!t.state)return kt(t,lt);t.total_in=t.total_out=0,t.data_type=bt;var n=t.state;return n.pending=0,n.pending_out=0,n.wrap<0&&(n.wrap=-n.wrap),n.status=n.wrap?42:Tt,t.adler=2===n.wrap?0:1,n.last_flush=st,tt(n),at},Gt=function(t){var n=Vt(t);return n===at&&function(t){t.window_size=2*t.w_size,It(t.head),t.max_lazy_match=Bt[t.level].max_lazy,t.good_match=Bt[t.level].good_length,t.nice_match=Bt[t.level].nice_length,t.max_chain_length=Bt[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0}(t.state),n},Jt=function(t,n,i,r,e,s){if(!t)return lt;var o=1;if(n===yt&&(n=6),r<0?(o=0,r=-r):r>15&&(o=2,r-=16),e<1||e>9||i!==At||r<8||r>15||n<0||n>9||s<0||s>gt)return kt(t,lt);8===r&&(r=9);var u=new zt;return t.state=u,u.strm=t,u.wrap=o,u.gzhead=null,u.w_bits=r,u.w_size=1<ht||n<0)return t?kt(t,lt):lt;var e=t.state;if(!t.output||!t.input&&0!==t.avail_in||e.status===Nt&&n!==ct)return kt(t,0===t.avail_out?dt:lt);e.strm=t;var s=e.last_flush;if(e.last_flush=n,42===e.status)if(2===e.wrap)t.adler=0,xt(e,31),xt(e,139),xt(e,8),e.gzhead?(xt(e,(e.gzhead.text?1:0)+(e.gzhead.hcrc?2:0)+(e.gzhead.extra?4:0)+(e.gzhead.name?8:0)+(e.gzhead.comment?16:0)),xt(e,255&e.gzhead.time),xt(e,e.gzhead.time>>8&255),xt(e,e.gzhead.time>>16&255),xt(e,e.gzhead.time>>24&255),xt(e,9===e.level?2:e.strategy>=pt||e.level<2?4:0),xt(e,255&e.gzhead.os),e.gzhead.extra&&e.gzhead.extra.length&&(xt(e,255&e.gzhead.extra.length),xt(e,e.gzhead.extra.length>>8&255)),e.gzhead.hcrc&&(t.adler=z(t.adler,e.pending_buf,e.pending,0)),e.gzindex=0,e.status=69):(xt(e,0),xt(e,0),xt(e,0),xt(e,0),xt(e,0),xt(e,9===e.level?2:e.strategy>=pt||e.level<2?4:0),xt(e,3),e.status=Tt);else{var o=At+(e.w_bits-8<<4)<<8;o|=(e.strategy>=pt||e.level<2?0:e.level<6?1:6===e.level?2:3)<<6,0!==e.strstart&&(o|=32),o+=31-o%31,e.status=Tt,Dt(e,o),0!==e.strstart&&(Dt(e,t.adler>>>16),Dt(e,65535&t.adler)),t.adler=1}if(69===e.status)if(e.gzhead.extra){for(i=e.pending;e.gzindex<(65535&e.gzhead.extra.length)&&(e.pending!==e.pending_buf_size||(e.gzhead.hcrc&&e.pending>i&&(t.adler=z(t.adler,e.pending_buf,e.pending-i,i)),Pt(t),i=e.pending,e.pending!==e.pending_buf_size));)xt(e,255&e.gzhead.extra[e.gzindex]),e.gzindex++;e.gzhead.hcrc&&e.pending>i&&(t.adler=z(t.adler,e.pending_buf,e.pending-i,i)),e.gzindex===e.gzhead.extra.length&&(e.gzindex=0,e.status=73)}else e.status=73;if(73===e.status)if(e.gzhead.name){i=e.pending;do{if(e.pending===e.pending_buf_size&&(e.gzhead.hcrc&&e.pending>i&&(t.adler=z(t.adler,e.pending_buf,e.pending-i,i)),Pt(t),i=e.pending,e.pending===e.pending_buf_size)){r=1;break}r=e.gzindexi&&(t.adler=z(t.adler,e.pending_buf,e.pending-i,i)),0===r&&(e.gzindex=0,e.status=91)}else e.status=91;if(91===e.status)if(e.gzhead.comment){i=e.pending;do{if(e.pending===e.pending_buf_size&&(e.gzhead.hcrc&&e.pending>i&&(t.adler=z(t.adler,e.pending_buf,e.pending-i,i)),Pt(t),i=e.pending,e.pending===e.pending_buf_size)){r=1;break}r=e.gzindexi&&(t.adler=z(t.adler,e.pending_buf,e.pending-i,i)),0===r&&(e.status=Ot)}else e.status=Ot;if(e.status===Ot&&(e.gzhead.hcrc?(e.pending+2>e.pending_buf_size&&Pt(t),e.pending+2<=e.pending_buf_size&&(xt(e,255&t.adler),xt(e,t.adler>>8&255),t.adler=0,e.status=Tt)):e.status=Tt),0!==e.pending){if(Pt(t),0===t.avail_out)return e.last_flush=-1,at}else if(0===t.avail_in&&Ct(n)<=Ct(s)&&n!==ct)return kt(t,dt);if(e.status===Nt&&0!==t.avail_in)return kt(t,dt);if(0!==t.avail_in||0!==e.lookahead||n!==st&&e.status!==Nt){var u=e.strategy===pt?function(t,n){for(var i;;){if(0===t.lookahead&&(jt(t),0===t.lookahead)){if(n===st)return 1;break}if(t.match_length=0,i=rt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,i&&(_t(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,n===ct?(_t(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(_t(t,!1),0===t.strm.avail_out)?1:2}(e,n):e.strategy===mt?function(t,n){for(var i,r,e,s,o=t.window;;){if(t.lookahead<=Et){if(jt(t),t.lookahead<=Et&&n===st)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(r=o[e=t.strstart-1])===o[++e]&&r===o[++e]&&r===o[++e]){s=t.strstart+Et;do{}while(r===o[++e]&&r===o[++e]&&r===o[++e]&&r===o[++e]&&r===o[++e]&&r===o[++e]&&r===o[++e]&&r===o[++e]&&et.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(i=rt(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(i=rt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),i&&(_t(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,n===ct?(_t(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(_t(t,!1),0===t.strm.avail_out)?1:2}(e,n):Bt[e.level].func(e,n);if(3!==u&&4!==u||(e.status=Nt),1===u||3===u)return 0===t.avail_out&&(e.last_flush=-1),at;if(2===u&&(n===ot?et(e):n!==ht&&(nt(e,0,0,!1),n===ut&&(It(e.head),0===e.lookahead&&(e.strstart=0,e.block_start=0,e.insert=0))),Pt(t),0===t.avail_out))return e.last_flush=-1,at}return n!==ct?at:e.wrap<=0?ft:(2===e.wrap?(xt(e,255&t.adler),xt(e,t.adler>>8&255),xt(e,t.adler>>16&255),xt(e,t.adler>>24&255),xt(e,255&t.total_in),xt(e,t.total_in>>8&255),xt(e,t.total_in>>16&255),xt(e,t.total_in>>24&255)):(Dt(e,t.adler>>>16),Dt(e,65535&t.adler)),Pt(t),e.wrap>0&&(e.wrap=-e.wrap),0!==e.pending?at:ft)},Wt=function(t,n){var i=n.length;if(!t||!t.state)return lt;var r=t.state,e=r.wrap;if(2===e||1===e&&42!==r.status||r.lookahead)return lt;if(1===e&&(t.adler=F(t.adler,n,i,0)),r.wrap=0,i>=r.w_size){0===e&&(It(r.head),r.strstart=0,r.block_start=0,r.insert=0);var s=new Uint8Array(r.w_size);s.set(n.subarray(i-r.w_size,i),0),n=s,i=r.w_size}var o=t.avail_in,u=t.next_in,c=t.input;for(t.avail_in=i,t.next_in=0,t.input=n,jt(r);r.lookahead>=3;){var h=r.strstart,a=r.lookahead-2;do{r.ins_h=Mt(r,r.ins_h,r.window[h+3-1]),r.prev[h&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=h,h++}while(--a);r.strstart=h,r.lookahead=2,jt(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,t.next_in=u,t.input=c,t.avail_in=o,r.wrap=e,at},$t={deflateInit:function(t,n){return Jt(t,n,At,15,8,St)},deflateInit2:Jt,deflateReset:Gt,deflateResetKeep:Vt,deflateSetHeader:function(t,n){return t&&t.state?2!==t.state.wrap?lt:(t.state.gzhead=n,at):lt},deflate:Yt,deflateEnd:function(t){if(!t||!t.state)return lt;var n=t.state.status;return 42!==n&&69!==n&&73!==n&&91!==n&&n!==Ot&&n!==Tt&&n!==Nt?kt(t,lt):(t.state=null,n===Tt?kt(t,vt):at)},deflateSetDictionary:Wt,deflateInfo:"pako deflate (from Nodeca project)"},Xt=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},Kt=function(t){for(var n=Array.prototype.slice.call(arguments,1);n.length;){var i=n.shift();if(i){if("object"!=typeof i)throw new TypeError(i+"must be non-object");for(var r in i)Xt(i,r)&&(t[r]=i[r])}}return t},Zt=function(t){for(var n=0,i=0,r=t.length;i=252?6:nn>=248?5:nn>=240?4:nn>=224?3:nn>=192?2:1;tn[254]=tn[254]=1;var rn=function(t,n){if(void 0===n&&(n=t.length),n<65534&&t.subarray&&Qt)return String.fromCharCode.apply(null,t.length===n?t:t.subarray(0,n));for(var i="",r=0;r>>6,n[s++]=128|63&i):i<65536?(n[s++]=224|i>>>12,n[s++]=128|i>>>6&63,n[s++]=128|63&i):(n[s++]=240|i>>>18,n[s++]=128|i>>>12&63,n[s++]=128|i>>>6&63,n[s++]=128|63&i);return n};var sn=function(){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},on=Object.prototype.toString,un=G,cn=J,hn=Y,an=W,fn=$,ln=X,vn=K,dn=Z,yn=Q;function wn(t){this.options=Kt({level:vn,method:yn,chunkSize:16384,windowBits:15,memLevel:8,strategy:dn},t||{});var n=this.options;n.raw&&n.windowBits>0?n.windowBits=-n.windowBits:n.gzip&&n.windowBits>0&&n.windowBits<16&&(n.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new sn,this.strm.avail_out=0;var i=$t.deflateInit2(this.strm,n.level,n.method,n.windowBits,n.memLevel,n.strategy);if(i!==fn)throw new Error(V[i]);if(n.header&&$t.deflateSetHeader(this.strm,n.header),n.dictionary){var r=void 0;if(r="string"==typeof n.dictionary?en(n.dictionary):"[object ArrayBuffer]"===on.call(n.dictionary)?new Uint8Array(n.dictionary):n.dictionary,(i=$t.deflateSetDictionary(this.strm,r))!==fn)throw new Error(V[i]);this._dict_set=!0}}function pn(t,n){return(n=n||{}).gzip=!0,function(t,n){var i=new wn(n=n||{});if(i.push(t,!0),i.err)throw i.msg||V[i.err];return i.result}(t,n)}return wn.prototype.push=function(t,n){var i,r,e=this.strm,s=this.options.chunkSize;if(this.ended)return!1;for(r=n===~~n?n:!0===n?an:un,"string"==typeof t?e.input=en(t):"[object ArrayBuffer]"===on.call(t)?e.input=new Uint8Array(t):e.input=t,e.next_in=0,e.avail_in=e.input.length;;)if(0===e.avail_out&&(e.output=new Uint8Array(s),e.next_out=0,e.avail_out=s),(r===cn||r===hn)&&e.avail_out<=6)this.onData(e.output.subarray(0,e.next_out)),e.avail_out=0;else{if((i=$t.deflate(e,r))===ln)return e.next_out>0&&this.onData(e.output.subarray(0,e.next_out)),i=$t.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===fn;if(0!==e.avail_out){if(r>0&&e.next_out>0)this.onData(e.output.subarray(0,e.next_out)),e.avail_out=0;else if(0===e.avail_in)break}else this.onData(e.output)}return!0},wn.prototype.onData=function(t){this.chunks.push(t)},wn.prototype.onEnd=function(t){t===fn&&(this.result=Zt(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(t,n,i){var r=pn(t);return r="base64"===n?btoa(rn(r)):r.buffer,i&&i(r),r}}var Qf=function(t){function n(n){var i=t.call(this,n)||this;return i.algorithm=Zi.GZIP,i.pg=Zf(),i.mg=function(t,n,r){r(i.pg(t,n))},i.compress=tl(),"undefined"!=typeof CompressionStream&&Tr||(i.compress=i.mg,i.getCompressorSourceCode=function(){return Zf.toString()}),i}return vn(n,t),n.prototype.compressSync=function(t,n){return this.pg(t,n)},n.prototype.getCompressorSourceCode=function(){return tl.toString()},n}(ir);function tl(){return function(t,n,i){var r=new Response(t).body.pipeThrough(new CompressionStream("gzip")),e=new Response(r).arrayBuffer();"base64"!==n?e.then((function(t){return i(t)})):e.then((function(t){return n=t,new Promise((function(t){var i=new FileReader;i.onload=function(n){return t(n.target.result.split(",")[1])},i.readAsDataURL(new Blob([n]))}));var n})).then((function(t){return i(t)}))}}var nl=function(t){function n(){var n=t.apply(this,bn([],Sn(arguments),!1))||this;return n.algorithm=Zi.UNCOMPRESSED,n}return vn(n,t),n.prototype.compress=function(t,n,i){i(this.compressSync(t,n))},n.prototype.compressSync=function(t,n){return t},n.prototype.getCompressorSourceCode=function(){return function(){return function(t,n,i){return i(t)}}.toString()},n}(ir),il=function(){function t(){}return t.create=function(t,n){return void 0===n&&(n=!0),this.instance?this.instance:n&&!Kf.isCompressionEnabled()?new nl(t):this.instance=new Qf(t)},t}(),rl=function(){function t(){}return t.prototype.setItem=function(t,n){window.sessionStorage.setItem(t,n)},t.prototype.getItem=function(t){return window.sessionStorage.getItem(t)},t.prototype.removeItem=function(t){window.sessionStorage.removeItem(t)},t}(),el=function(){function t(){}return t.prototype.setItem=function(t,n){window.localStorage.setItem(t,n)},t.prototype.getItem=function(t){return window.localStorage.getItem(t)},t.prototype.removeItem=function(t){window.localStorage.removeItem(t)},t}(),sl="_cs_cvars",ol=function(){function t(t,n,i){this.Rt=t,this.op=n,this.Dp=i}return t.prototype.onCookieToSet=function(t){this.zp=t},t.prototype.onCookieToRemove=function(t){this.Vp=t},t.prototype.get=function(){return this.Rt.cookielessTrackingEnabled?this.Dp.getItem(sl):this.op.get(sl)},t.prototype.set=function(t){var n;this.Rt.cookielessTrackingEnabled?this.Dp.setItem(sl,t):(this.op.set(sl,t),null===(n=this.zp)||void 0===n||n.call(this,sl,t))},t.prototype.remove=function(){var t;this.Rt.cookielessTrackingEnabled?this.Dp.removeItem(sl):(this.op.delete(sl),null===(t=this.Vp)||void 0===t||t.call(this,sl))},t.isValidCustomVarString=function(t){return"string"==typeof t},t}(),ul=["visit",2],cl=["page",3],hl=["nextPageOnly",4],al=function(){function t(t,n){this.Ot=t,this.Np=n,this.gg={},this.Sg={}}return t.prototype.set=function(t,n,i,r){var e,s;if((A(t)||R(t))&&Number(t)>0&&k(n)&&k(i)&&!C(n)&&!C(i)&&this.bg(r)){var o=this.Ot.anonymizePII(csString(n)),u=this.Ot.anonymizePII(csString(i)),c=this.Ot.checkAndAnonymizePII(csString(n)),h=this.Ot.checkAndAnonymizePII(csString(i));if(o!==c&&_t.implementation("[PII] Custom variable name may contain CC: ".concat(c)),u!==h&&_t.implementation("[PII] Custom variable value may contain CC: ".concat(h)),e=[csString.prototype.slice.call(o,0,512),csString.prototype.slice.call(u,0,255)],s=""!==i,!N(r)||csArray.prototype.indexOf.call(ul,r)>=0){var a=this.getCustomVariablesSession();s?a[t]=e:delete a[t],this.setCustomVariableSession(a)}(!N(r)||csArray.prototype.indexOf.call(cl,r)>=0)&&(s?this.gg[t]=e:delete this.gg[t]),N(r)&&csArray.prototype.indexOf.call(hl,r)>=0&&(s?this.Sg[t]=e:delete this.Sg[t])}},t.prototype.getCustomVariablesSession=function(){var t=this.Np.get();if(!t)return{};var n=window.csJSON.parse(t);return null!==n&&T(n)?n:{}},t.prototype.setCustomVariableSession=function(t){this.Np.set(window.csJSON.stringify(t))},t.prototype.removeCustomVariablesSession=function(){this.Np.remove()},t.prototype.removeCustomVariablesPage=function(){this.gg={}},t.prototype.getRequestParameters=function(){var t=this.getCustomVariablesSession();for(var n in this.Sg)this.Sg.hasOwnProperty(n)&&(this.gg[n]=this.Sg[n]);for(var n in this.gg)this.gg.hasOwnProperty(n)&&(t[n]=this.gg[n]);if(window.csJSON.stringify(t).length<=2)return{};var i={cvars:this.Ag(t)};return this.gg&&window.csJSON.stringify(this.gg).length>2&&(i.cvarp=this.Ag(this.gg)),i},t.prototype.deleteNextPageOnlyCustomVariables=function(){if(Object.keys(this.Sg).length>0)for(var t in this.Sg)this.Sg[t]===this.gg[t]&&(delete this.gg[t],delete this.Sg[t])},t.prototype.Eg=function(t){for(var n in t)if(t.hasOwnProperty(n)){var i=parseInt(n,10),r=t[n],e=r[0],s=r[1];u=1,c=20,(!(E(o=i)&&o>=u&&o<=c)||e.length>512||s.length>255)&&delete t[n]}var o,u,c},t.prototype.Ag=function(t){this.Eg(t);var n=function(t){var n;for(n in t)return!1;return!0}(t)?[]:t;return window.csJSON.stringify(n)},t.prototype.bg=function(t){return!N(t)||R(t)||A(t)},t.prototype.getAllValidCustomVars=function(){var t=this.getCustomVariablesSession();for(var n in this.Sg)this.Sg.hasOwnProperty(n)&&(this.gg[n]=this.Sg[n]);for(var n in this.gg)this.gg.hasOwnProperty(n)&&(t[n]=this.gg[n]);return this.Eg(t),t},t}(),fl=["setCustomVariable"],ll=function(){function t(t,n){this.ra=t,this.Bn=n}return t.prototype.init=function(){var t=this;this.ra.register(fl,(function(n,i,r,e){t.Bn.set(n,i,r,e)}))},t.prototype.onAfterArtificialPageView=function(){this.Bn.deleteNextPageOnlyCustomVariables()},t.prototype.onAfterNaturalPageView=function(){this.Bn.deleteNextPageOnlyCustomVariables()},t.prototype.onOptout=function(){this.Bn.removeCustomVariablesSession()},t.prototype.onBeforeVisitorRenewal=function(){this.Bn.removeCustomVariablesSession(),this.Bn.removeCustomVariablesPage()},t}(),vl="_cs_id",dl=/^(([a-z0-9\-])+(\.[0-9]+){6})(\.(None|Lax|X)\.(0|1))?(\.[0-1])?(\.\b(x|[0-9a-fA-F]{12})\b)?$/,yl=function(){function t(t,n,i){this.Rt=t,this.op=n,this.Dp=i}return t.prototype.onCookieToSet=function(t){this.zp=t},t.prototype.onCookieToRemove=function(t){this.Vp=t},t.prototype.get=function(){var n;return(n=this.Rt.cookielessTrackingEnabled?this.Dp.getItem(vl):this.op.get(vl))?t.fromString(n):null},t.prototype.set=function(n){var i,r=t.toString(n);if(this.Rt.cookielessTrackingEnabled)this.Dp.setItem(vl,r);else{var e=new csDate(n.expires);this.op.set(vl,r,e),null===(i=this.zp)||void 0===i||i.call(this,vl,r,e)}},t.prototype.remove=function(){var t;this.Rt.cookielessTrackingEnabled?this.Dp.removeItem(vl):(this.op.delete(vl),null===(t=this.Vp)||void 0===t||t.call(this,vl))},t.prototype.handleSubdomainChange=function(){if(!this.Rt.cookielessTrackingEnabled){var t=this.get();t&&(t.allowSubdomains=this.Rt.allowSubdomains,this.Rt.allowSubdomains?this.op.delete(vl,$i.CURRENT_DOMAIN):this.op.delete(vl,this.op.getRootDomain()),this.set(t))}},t.fromString=function(t){var n=Sn(csString.prototype.split.call(t,"."),9),i=n[0],r=n[1],e=n[2],s=n[3],o=n[4],u=n[5],c=n[6],h=n[7],a=n[8];return{id:i,creationTimestamp:Number(r),visitsCount:Number(e),hitTimestamp:Number(s),lastVisitTimestamp:Number(o),appliedTrackingDraw:Number(u),expires:Number(c),allowSubdomains:void 0===h?void 0:!!Number(h),identityPrint:void 0===a||"x"===a?null:a}},t.toString=function(t){var n;return csArray.prototype.join.call([t.id,t.creationTimestamp,t.visitsCount,t.hitTimestamp,t.lastVisitTimestamp,t.appliedTrackingDraw,t.expires,t.allowSubdomains?1:0,null!==(n=t.identityPrint)&&void 0!==n?n:"x"],".")},t.isValidVisitorString=function(t){return dl.test(t)},t}(),wl=function(){function t(t){this.Ot=t}return t.prototype.anonymizeUrl=function(t,n,i){void 0===n&&(n=[]),void 0===i&&(i=[]);var r=this.Ot.anonymizePII(t);r=this.Ot.anonymizeJwt(r);var e=this.Rg(r,n);return e!==r?e:this.Og(r,i)},t.prototype.removeQueryString=function(t){var n=this.Tg(t),i=n.path;return""!==n.queryString?"".concat(i,"?"):i},t.prototype.Tg=function(t){var n,i=csString.prototype.indexOf.call(t,"?"),r="";return-1!==i?(n=csString.prototype.slice.call(t,0,i),r=csString.prototype.slice.call(t,i,t.length)):n=t,{path:n,queryString:r}},t.prototype.Rg=function(t,n){var i,r;if(0===n.length)return t;var e=this.Tg(t),s=e.path,o=e.queryString,u=csString.prototype.split.call(s,"/");try{for(var c=gn(n),h=c.next();!h.done;h=c.next()){var a=h.value,f=this.Ng(u,a);if(null!==f)return"".concat(f).concat(o)}}catch(t){i={error:t}}finally{try{h&&!h.done&&(r=c.return)&&r.call(c)}finally{if(i)throw i.error}}return t},t.prototype.Ng=function(t,n){if(t.length=n.length)csArray.prototype.push.call(i,e);else{var s=n[r].key;if(this.kg(s)){var o=n[r].value;csArray.prototype.push.call(i,o)}else{if(e!==s)return null;csArray.prototype.push.call(i,e)}}}return csArray.prototype.join.call(i,"/")},t.prototype.Og=function(t,n){var i,r;if(0===n.length)return t;var e=this.Tg(t),s=e.path,o=e.queryString,u=csString.prototype.split.call(s,"/");try{for(var c=gn(n),h=c.next();!h.done;h=c.next()){var a=h.value;u=this.Cg(u,a)}}catch(t){i={error:t}}finally{try{h&&!h.done&&(r=c.return)&&r.call(c)}finally{if(i)throw i.error}}return"".concat(csArray.prototype.join.call(u,"/")).concat(o)},t.prototype.Cg=function(t,n){for(var i=[],r=0,e="http:"===t[0]||"https:"===t[0]?2:0,s=0;s=e){var c=n[r].value;csArray.prototype.push.call(i,o.length>0?c:""),++r===n.length&&(r=0)}else if(o!==u){for(var h=0;h0?"".concat(s,"/").concat(h.context):"".concat(s)}}catch(t){i={error:t}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(i)throw i.error}}return n},t.prototype.Hg=function(t,n){this.Fg(this.xg,t,n)},t.prototype.qg=function(t,n){this.Fg(this._g,t,n)},t.prototype.Fg=function(t,n,i){i.args&&(i.args[t.clientX]=Math.round(n.left+i.args[t.clientX]),i.args[t.clientY]=Math.round(n.top+i.args[t.clientY]))},t.prototype.Ug=function(t){return-1!==csArray.prototype.indexOf.call(this.Dg,t.type)},t.prototype.jg=function(t){return-1!==csArray.prototype.indexOf.call(this.Lg,t.type)},t}(),El=function(){function t(t){this.Bg=t}return t.prototype.start=function(){var t=this;this.Bg.onEvent((function(n){return t.Fe(n)})),this.Bg.start()},t.prototype.stop=function(){this.Bg.stop()},t.prototype.Fe=function(t){var n="Content Security Policy error. Violated directive: ".concat(t.violatedDirective," - Source file: ").concat(t.sourceFile);Ji.warn(n)},t}(),Rl=function(){function t(){var t=this;this.Tu={boundElement:document,type:"securitypolicyviolation",listener:function(n){return t.securityPolicyViolationListener(n)}}}return t.prototype.start=function(){dr(this.Tu)},t.prototype.stop=function(){yr(this.Tu)},t.prototype.onEvent=function(t){this.bs=t},t.prototype.zg=function(n){if(!n)return!1;var i=n.disposition;return R(n.sourceFile)&&csArray.prototype.some.call(t.Vg,(function(t){return csString.prototype.indexOf.call(n.sourceFile,t)>0}))&&"report"!==i},t.prototype.securityPolicyViolationListener=function(t){this.zg(t)&&this.bs({violatedDirective:t.violatedDirective,sourceFile:t.sourceFile})},t.Vg=["contentsquare","cdnssl.clicktale.net"],wn([xt("Event handler type: securitypolicyviolation")],t.prototype,"securityPolicyViolationListener",null),t}(),Ol=function(){function t(){}return t.prototype.init=function(){this.Gg=new El(new Rl),this.Gg.start()},t.prototype.onOptout=function(){this.Gg.stop()},t}(),Tl=function(t){function n(n,i,r){var e=t.call(this,n,i)||this;return e.Jg=null,e.Yg=(null==r?void 0:r.type)||"json",e.Wg=null==r?void 0:r.cacheMinutes,e.jn=null==r?void 0:r.timeout,e}return vn(n,t),n.prototype.onLoad=function(t){this.Dn=t},n.prototype.onError=function(t){this.Ln=t},n.prototype.onTimeout=function(t,n){this.Un=t,this.jn=n},n.prototype.send=function(){csArray.prototype.forEach.call(this.beforeRequestCallbacks,(function(t){return t()}));var t=this.retrieveParameters();this.K(t);var n=In.toQuery(t),i="".concat(this.domainUri).concat(this.path?"/".concat(this.path):"","?").concat(n);this.Fl(i,this.Yg)},n.prototype.abort=function(){this.Jg&&(this.Jg.abort(),this.Jg=null)},n.prototype.isInProgress=function(){return null!==this.Jg},n.prototype.Fl=function(t,n){var i,r=this,e=new XMLHttpRequest;e.open("GET",t,!0),e.responseType=n,e.onerror=function(){var t;return null===(t=r.Ln)||void 0===t?void 0:t.call(r,e)},e.ontimeout=function(){var t;return null===(t=r.Un)||void 0===t?void 0:t.call(r,e)},e.onload=function(){var t,i;e.status>=200&&e.status<400?(null===(t=r.Dn)||void 0===t||t.call(r,r.$g(e,n)?e.response:e.responseText),csArray.prototype.forEach.call(r.afterRequestCallbacks,(function(t){return t()}))):null===(i=r.Ln)||void 0===i||i.call(r,e)},e.onloadend=function(){r.Jg=null},e.timeout=null!==(i=this.jn)&&void 0!==i?i:5e3,this.Jg=e,e.send()},n.prototype.$g=function(t,n){var i=t.getResponseHeader("Content-Type");return null===i?"json"===n:csString.prototype.indexOf.call(csString.prototype.toLowerCase.call(i),"json")>0},n.prototype.K=function(t){var n,i,r;n=this.Wg?"".concat((i=this.Wg,r=60*i*1e3,"".concat(Math.floor(csDate.now()/r)))):csString.prototype.slice.call("".concat(Math.random()),2,8),t.r=n},n}(Dn),Nl=function(t){this.configuration=t},kl=function(t){function n(n,i,r){var e=t.call(this,n)||this;return e.configuration=n,e.Xg=i,e.ph=r,e.Kg=$r.RECORDING_GLOBAL_SAMPLING,e}return vn(n,t),n.prototype.refreshQuota=function(){this.Zg=void 0,this.Qg()},n.prototype.onQuotaReady=function(t){this.tS=t},n.prototype.init=function(){this.nS()},n.prototype.sanitizeSessionCollectState=function(t){return t},n.prototype.canCollect=function(t){return null!==t&&t.collectState!==$r.QUOTA_REACHED},n.prototype.computeInitialCollectState=function(t){return this.Zg?(this.ph.emitCollectStateChange(this.Zg,Xr.ETR_OFF),this.Zg):(Ji.warn("Quota file error computeInitialCollectState() called before quota answered"),$r.QUOTA_REACHED)},n.prototype.getEligibleCollectState=function(t){return t.collectState===$r.QUOTA_REACHED?$r.QUOTA_REACHED:!na.isRecordingSupported()&&this.isReplayRecorded(t)?$r.ANALYTICS_ONLY:t.collectState===$r.RECORDING_RULES_TARGETING?$r.RECORDING_RULES_TARGETING:t.collectState===$r.ANALYTICS_ONLY_RULES_TARGETING?$r.ANALYTICS_ONLY_RULES_TARGETING:t.collectState===$r.RECORDING_GLOBAL_SAMPLING?$r.RECORDING_GLOBAL_SAMPLING:$r.ANALYTICS_ONLY},n.prototype.abortQuotaServiceRequest=function(){},n.prototype.isReplayRecorded=function(t){return t.collectState===$r.RECORDING_GLOBAL_SAMPLING||t.collectState===$r.RECORDING_RULES_TARGETING},n.prototype.getInitialCollectState=function(){return this.Zg||$r.QUOTA_REACHED},n.prototype.setVisitorService=function(t){},n.prototype.computeInitialCollectStateFromRecordingConsentGranted=function(t){return $r.ANALYTICS_ONLY},n.prototype.iS=function(t){this.Zg=t,this.tS&&this.tS(t)},n.prototype.nS=function(){var t=this;this.Xg.onError((function(n){return t.quotaServiceErrorHandler("HTTP:".concat(n.status," - fetching quota file for pid: ").concat(t.configuration.projectId))})),this.Xg.onTimeout((function(){return t.quotaServiceErrorHandler("timeout")})),this.Xg.onLoad((function(n){return t.quotaFileHandler(n)}))},n.prototype.Qg=function(){this.Xg.isInProgress()||this.Xg.send()},n.prototype.quotaFileHandler=function(t){var n;(null===(n=null==t?void 0:t.quotas)||void 0===n?void 0:n.length)?this.rS(t):this.quotaServiceErrorHandler("Quota types missing from config file")},n.prototype.quotaServiceErrorHandler=function(t){var n="Quota error - ".concat(t);Ji.warn(n),this.iS(this.Kg)},n.prototype.rS=function(t){var n,i,r=!1,e=!1;try{for(var s=gn(t.quotas),o=s.next();!o.done;o=s.next()){var u=o.value;"ANALYTICS"===u.quotaType&&u.value?r=!0:"RECORDING"===u.quotaType&&u.value&&Tn.boolean(Math.round(100*u.value))&&(e=!0)}}catch(t){n={error:t}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}!r&&e?this.quotaServiceErrorHandler("Quota types impossible: replay without analytics - ".concat(csJSON.stringify(t))):r&&e?na.isRecordingSupported()?this.iS($r.RECORDING_GLOBAL_SAMPLING):this.iS($r.ANALYTICS_ONLY):r&&!e?this.iS($r.ANALYTICS_ONLY):this.iS($r.QUOTA_REACHED)},n.prototype.getRecordingConsentWithdrawn=function(){return $r.ANALYTICS_ONLY},wn([xt("Quota File: quotaFileHandler")],n.prototype,"quotaFileHandler",null),wn([xt("Quota File: onerror")],n.prototype,"quotaServiceErrorHandler",null),n}(Nl),Cl=function(t){function n(n,i,r,e,s){var o=t.call(this,n)||this;return o.configuration=n,o.eS=i,o.ph=r,o.Rp=e,o.Ht=s,o.sS=[],o}return vn(n,t),n.prototype.refreshQuota=function(){},n.prototype.onQuotaReady=function(t){},n.prototype.canCollect=function(t){return!0},n.prototype.init=function(){this.oS()},n.prototype.sanitizeSessionCollectState=function(t){return t.collectState!==$r.QUOTA_REACHED&&t.collectState!==$r.RECORDING_RULES_TARGETING&&t.collectState!==$r.RECORDING_TEMPORARILY||(t.collectState=$r.ANALYTICS_ONLY),t},n.prototype.computeInitialCollectState=function(t){return ru.isReplayConsentNeeded(this.configuration)?$r.RECORDING_BLOCKED_BY_CONSENT_NOT_EXPRESSED:this.sm(t)},n.prototype.computeInitialCollectStateFromRecordingConsentGranted=function(t){return this.sm(t)},n.prototype.sm=function(t){return na.isRecordingSupported()?(this.sS=[],Tn.percentage()0?(this.Qg(t),$r.RECORDING_TEMPORARILY):$r.ANALYTICS_ONLY):$r.ANALYTICS_ONLY},n.prototype.getEligibleCollectState=function(t){return na.isRecordingSupported()?ru.isRecordingBlockedByConsent(t)?t.collectState===$r.RECORDING_BLOCKED_BY_CONSENT_WITHDRAWN?$r.RECORDING_BLOCKED_BY_CONSENT_WITHDRAWN:$r.RECORDING_BLOCKED_BY_CONSENT_NOT_EXPRESSED:t.collectState===$r.RECORDING_GLOBAL_SAMPLING?$r.RECORDING_GLOBAL_SAMPLING:(this.sS=[],this.configuration.malkaUrlEnabled&&(csArray.prototype.push.call(this.sS,$r.RECORDING_URL_SAMPLING),this.configuration.malkaEtrEnabled&&csArray.prototype.push.call(this.sS,$r.RECORDING_ETR_SAMPLING)),this.sS.length>0?(this.Qg(t),$r.RECORDING_TEMPORARILY):(t.etrState===Xr.ETR_ON&&this.ph.emitCollectStateChange($r.ANALYTICS_ONLY,Xr.ETR_ON),$r.ANALYTICS_ONLY)):$r.ANALYTICS_ONLY},n.prototype.Qg=function(t){var n,i=null===(n=this.Dt)||void 0===n?void 0:n.getVisitor();this.eS.send({recordingTypes:csArray.prototype.map.call(this.sS,Number),url:this.Ht.getAnonymizedUrl(),projectId:this.configuration.projectId,uu:(null==i?void 0:i.id)||"",sn:(null==i?void 0:i.visitsCount)||"",pn:(null==t?void 0:t.pageNumber)||""})},n.prototype.abortQuotaServiceRequest=function(){this.eS.abort()},n.prototype.isReplayRecorded=function(t){return!ru.isRecordingBlockedByConsent(t)&&(t.collectState===$r.RECORDING_TEMPORARILY||t.collectState===$r.RECORDING_GLOBAL_SAMPLING||t.collectState===$r.RECORDING_URL_SAMPLING||t.etrState===Xr.ETR_ON)},n.prototype.oS=function(){var t=this;this.eS.onError((function(){return t.quotaServiceErrorHandler("NetworkError")})),this.eS.onTimeout((function(){return t.quotaServiceTimeoutHandler()}),3e3),this.eS.onLoad((function(n){return t.quotaServiceLoadHandler(n)}))},n.prototype.quotaServiceErrorHandler=function(t){this.uS("error - ".concat(t))},n.prototype.quotaServiceTimeoutHandler=function(){this.uS("timeout")},n.prototype.uS=function(t){var n=$r.ANALYTICS_ONLY;this.cS(this.sS)?(n=$r.RECORDING_GLOBAL_SAMPLING,Ji.warn("Quota Service: request ".concat(t," - bypassed by GLOBAL_SAMPLING"))):Ji.warn("Quota Service: request ".concat(t)),this.ph.emitCollectStateChange(n,Xr.ETR_OFF)},n.prototype.quotaServiceLoadHandler=function(t){if(200===t.status){var n;try{n=csJSON.parse(t.responseText)}catch(n){return void this.quotaServiceErrorHandler("Unable to parse the quota service response: ".concat(t.responseText))}var i=null==n.allowedRecordingTypes?void 0:csArray.prototype.map.call(n.allowedRecordingTypes,csString);if(i){var r=Xr.ETR_OFF,e=$r.ANALYTICS_ONLY;this.cS(i)?e=$r.RECORDING_GLOBAL_SAMPLING:this.hS(i)&&(e=$r.RECORDING_URL_SAMPLING),this.aS(i)&&(r=Xr.ETR_ON),this.ph.emitCollectStateChange(e,r)}else this.quotaServiceErrorHandler("recording types missing from quota service response")}else this.quotaServiceErrorHandler("Status code: ".concat(t.status))},n.prototype.cS=function(t){return csArray.prototype.some.call(t,(function(t){return t===$r.RECORDING_GLOBAL_SAMPLING}))},n.prototype.hS=function(t){return csArray.prototype.some.call(t,(function(t){return t===$r.RECORDING_URL_SAMPLING}))},n.prototype.aS=function(t){return csArray.prototype.some.call(t,(function(t){return t===$r.RECORDING_ETR_SAMPLING}))},n.prototype.setVisitorService=function(t){this.Dt=t},n.prototype.getInitialCollectState=function(){return $r.ANALYTICS_ONLY},n.prototype.getRecordingConsentWithdrawn=function(){return $r.RECORDING_BLOCKED_BY_CONSENT_WITHDRAWN},wn([xt("Quota Service: onerror")],n.prototype,"quotaServiceErrorHandler",null),wn([xt("Quota Service: ontimeout")],n.prototype,"quotaServiceTimeoutHandler",null),wn([xt("Quota Service: onload")],n.prototype,"quotaServiceLoadHandler",null),n}(Nl);var Il,Ml,Pl=function(){function t(){this.fS={PIISelectors:["picture","img","video","audio"],Attributes:[]},this.mw={elementSelector:"",attrSelector:"",attrSelectors:[]};var t={PIISelectors:bn(bn(["[data-cs-mask]","#c1_card_info_id",".ctHidden"],Sn(["[data-heap-redact-text]","[heap-ignore]","[data-heap-ignore]","[data-heap-redact-attributes]"]),!1),Sn(["[data-hj-suppress]",".data-hj-suppress","[data-hj-masked]"]),!1),Attributes:[{selector:".ctHidden,input:not([type=button]):not([type=submit])",attrName:"value"}]};this.mw=Dr.getComputedSelectorSettings(t,this.mw)}return t.prototype.init=function(){this.lS()},t.prototype.setMaskedElementSettingsFromCommand=function(t){t=Dr.sanitizeSelectorUserInput(t),Dr.isSelectorUserInput(t)&&this.vS(t)},t.prototype.setMaskedElementSettingsFromParent=function(t){var n={PIISelectors:csString.prototype.split.call(t.elementSelector,","),Attributes:t.attrSelectors};this.vS(n)},t.prototype.getMaskedElementSettings=function(t){return t?this.dS(this.fS):this.mw},t.prototype.lS=function(){var t,n,i,r,e,s,o,u={PIISelectors:[],Attributes:[]};(null===(r=null===(i=null===(n=null===window||void 0===window?void 0:window.ClickTaleSettings)||void 0===n?void 0:n.DOM)||void 0===i?void 0:i.PII)||void 0===r?void 0:r.Text)instanceof Array&&(t=u.PIISelectors).push.apply(t,bn([],Sn(window.ClickTaleSettings.DOM.PII.Text),!1)),(null===(o=null===(s=null===(e=null===window||void 0===window?void 0:window.ClickTaleSettings)||void 0===e?void 0:e.DOM)||void 0===s?void 0:s.PII)||void 0===o?void 0:o.Attributes)instanceof Array&&window.ClickTaleSettings.DOM.PII.Attributes.forEach((function(t){R(t.attr)&&R(t.rule)&&u.Attributes.push({selector:t.rule,attrName:t.attr})})),this.vS(u)},t.prototype.vS=function(t){this.mw=this.dS(t)},t.prototype.dS=function(t){return Dr.getComputedSelectorSettings(t,this.mw)},t}(),_l=function(){function t(t,n,i,r,e){var s=this;this.Rt=t,this.Ft=n,this.Tt=i,this.Xs=r,this.ph=e,this.yS=function(){var t=Bi.get(Ka);null!==t&&rf.isValidSessionString(t)?s.Kw.canCollect(rf.fromRawString(t))&&s.init():(s.Kw.onQuotaReady((function(t){t!==$r.QUOTA_REACHED&&s.init()})),s.Kw.refreshQuota())}}return t.prototype.initWithQuota=function(){var t;if(!1!==(null===(t=this.Rt.smbConfig)||void 0===t?void 0:t.record)){var n=new Tl(this.Rt.getQuotaUri(),"",{type:"json",cacheMinutes:15});this.Kw=new kl(this.Rt,n,this.ph),this.Kw.init(),this.yS()}},t.prototype.init=function(){var t,n,i,r,e,s,o,u,c,h,a,f,l,v,d,y,w,p,m,g,S,b,A,E,R,O,T,N,k,C,I,M=this;_h.isSupported()&&_h.setDigestSalt(this.Rt.projectId.toString()),this.Xs.schedule((function(){t=new Qn,n=new wl(t),r=new Jf(window.location,n),(i=new $i(M.Rt,r,M.Ft)).init()})),this.Xs.schedule((function(){e=new rl,s=new el,y=new Cf(window.location,i),(new Ol).init(),w=il.create(Ji.warn);var t=(d=new er(w)).create("".concat(M.Rt.getLegacyQuotaUri(),"/quota"),!0);void 0===M.Kw&&(M.Kw=new Cl(M.Rt,t,M.ph,y,r),M.Kw.init())})),this.Xs.schedule((function(){o=new rf(M.Rt,i,e),u=new sf(o,M.Kw)})),this.Xs.schedule((function(){c=new yl(M.Rt,i,e),h=new Xa(M.Rt,c,u,M.ph),M.Tt.setContext(h,u),M.Kw.setVisitorService(h)})),this.Xs.schedule((function(){I=new pf(M.Rt,new af(M.Rt,i,s),M.ph),a=new uf(h,u,I),f=new Af(M.Rt,i,e),l=new Ef(window.location,f),v=new Rf(l),p=new of(M.Rt,h,l),k=new ml(hn,M.Rt),E=new gl(k),R=new Sl(k),O=new bl(k),T=new Al,N=new Xf(E,R,O,T),A=new qf([Uf.UXA]),m=new Lf(A,N),g=new Of(r),S=new Nf(g,A);var n=new ol(M.Rt,i,e);C=new al(t,n),b=new ll(A,C);new sr(h,u,l,C,M.Rt)})),this.Xs.schedule((function(){new Wa(M.Rt,h,l,p,a,undefined,undefined,y).compute((function(e){M.Xs.schedule((function(){m.init();var o=new Wf,c=new wf(M.Rt,A,I,u,M.ph),a=new Mf(M.Rt,i,s),f=new Pf(M.ph,window.location,a),l=new Df(A,f),y=new Ff(A,M.Rt);var p=new Hf(M.Rt,h,u,undefined);if(e){M.ph.emitInitTracking();var E=new Pl;new Ya(p,w,h,u,M.ph,A,m,M.Rt,l,f,c,I,t,k,n,r,y,o,N,C,b,g,S,M.Xs,d,i,s,M.Kw,E).start()}else{new mf(M.ph,A,m,l,f,v,c).start()}}))}))}))},t}();!function(t){var n,i={loadBundle:function(t){var s,o,u,h,a=t.source,f=t.data;if(r(f)){n=f.token,c(i.loadBundle),e(t.origin)&&(h=function(t,n){return csString.prototype.replace.call(csString.prototype.replace.call(csString.prototype.replace.call(t,"{version}",n.version),"{token}",n.token),"{domain}",n.domain)}("{domain}/tag/tag.bundle.js?v={version}",f),s=h,o=function(){return a.postMessage("csBundleLoaded",t.origin)},(u=document.createElement("script")).type="text/javascript",u.async=!0,u.src=s,u.onload=o,u.charset="utf-8",document.head.appendChild(u))}}};function r(t){return t&&"csBundleInjection"===t.type&&e(t.domain)&&o(t.version)&&s(t.token)}function e(n){return/^https?:\/\/[a-zA-Z0-9\.\-]+\.(content-square\.fr|contentsquare\.com|csq\.io)$/.test(n)||t.hjDomainRegex.test(n)}function s(t){return/^[a-zA-Z0-9]+$/.test(t)}function o(t){return/^[a-zA-Z0-9\.]+$/.test(t)}function u(t){window.addEventListener("message",t,!1)}function c(t){window.removeEventListener("message",t,!1)}t.getToken=function(){return n},t.isAuthorizedIncomingMessage=r,t.hjDomainRegex=/^https?:\/\/[a-zA-Z0-9\.\-]+\.hotjar\.com$/,t.isAuthorizedDomain=e,t.isAuthorizedToken=s,t.isAuthorizedTagVersion=o,t.isActivable=function(){var t=window.opener||window.parent;return window!==t&&window.addEventListener},t.waitForBundleInjection=function(){u(i.loadBundle)},t.listen=u,t.removeListener=c}(Il||(Il={})),function(t){var n,i,r=window.opener||window.parent,e=[/^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$/,Il.hjDomainRegex],s={ping:function(t){if("ping"===t.data&&o(t.origin)){var r=Il.hjDomainRegex.test(t.origin);n=r?"https://app.contentsquare.com":t.origin,i=r?t.origin:void 0,h(s.ping),c(s.insertMessageScript),u("".concat("utils.js","?cb=").concat((new csDate).getTime()))}},insertMessageScript:a((function(t){var n=t.data;"string"==typeof n&&"ping"!==n&&(h(s.insertMessageScript),u(n))}))};function o(t){return csArray.prototype.some.call(e,(function(n){return n.test(t)}))}function u(t,i){var r=document.createElement("script");r.type="text/javascript",r.async=!0;var e=csString.prototype.replace.call(n,/^https?:/,"");r.src="".concat(e,"/").concat("tag","/").concat(t),r.onload=i,r.charset="utf-8",document.getElementsByTagName("head")[0].appendChild(r),function(t){csString.prototype.includes.call(t,"&mode=")&&sessionStorage.setItem("_hjRetakerMode",csString.prototype.split.call(t,"&mode=")[1])}(t)}function c(t){window.addEventListener("message",t,!1)}function h(t){window.removeEventListener("message",t,!1)}function a(t){return function(r){(r.origin===n||i)&&t(r)}}t.getToken=function(){return Il.getToken()},t.isActivable=function(){return window!==r&&window.addEventListener},t.isAuthorizedDomain=o,t.waitForConnection=function(){c(s.ping),Il.waitForBundleInjection()},t.listen=c,t.removeListener=h,t.secureListener=a,t.post=function(t){i?r.postMessage(t,i):n&&r.postMessage(t,n)}}(Ml||(Ml={}));var xl=window.CSFrameCommunication||Ml,Dl=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return vn(n,t),n.prototype.emitTrackingContextResultMessage=function(t){var n,i;try{for(var r=gn(this.listeners),e=r.next();!e.done;e=r.next()){var s=e.value;s.onTrackingContextResultCallback&&s.onTrackingContextResultCallback(t)}}catch(t){n={error:t}}finally{try{e&&!e.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}},n.prototype.emitAfterPageViewCallback=function(t){var n,i;try{for(var r=gn(this.listeners),e=r.next();!e.done;e=r.next()){var s=e.value;s.onAfterPageViewCallback&&s.onAfterPageViewCallback(t)}}catch(t){n={error:t}}finally{try{e&&!e.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}},n.prototype.emitIntegrationSessionKeyCallback=function(t){var n,i;try{for(var r=gn(this.listeners),e=r.next();!e.done;e=r.next()){var s=e.value;s.onIntegrationSessionKeyCallback&&s.onIntegrationSessionKeyCallback(t)}}catch(t){n={error:t}}finally{try{e&&!e.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}},n.prototype.emitParentRecordingContextChange=function(t){var n,i;try{for(var r=gn(this.listeners),e=r.next();!e.done;e=r.next()){var s=e.value;s.onParentRecordingContextChange&&s.onParentRecordingContextChange(t)}}catch(t){n={error:t}}finally{try{e&&!e.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}},n.prototype.emitParentSensitiveStatusChange=function(t){var n,i;try{for(var r=gn(this.listeners),e=r.next();!e.done;e=r.next()){var s=e.value;s.onParentSensitiveStatusChange&&s.onParentSensitiveStatusChange(t)}}catch(t){n={error:t}}finally{try{e&&!e.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}},n.prototype.emitStartAnalytics=function(){var t,n;try{for(var i=gn(this.listeners),r=i.next();!r.done;r=i.next()){var e=r.value;e.onStartAnalytics&&e.onStartAnalytics()}}catch(n){t={error:n}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},n.prototype.emitStopAnalytics=function(){var t,n;try{for(var i=gn(this.listeners),r=i.next();!r.done;r=i.next()){var e=r.value;e.onStopAnalytics&&e.onStopAnalytics()}}catch(n){t={error:n}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},n.prototype.emitStartRecording=function(){var t,n;try{for(var i=gn(this.listeners),r=i.next();!r.done;r=i.next()){var e=r.value;e.onStartRecording&&e.onStartRecording()}}catch(n){t={error:n}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},n.prototype.emitStopRecording=function(){var t,n;try{for(var i=gn(this.listeners),r=i.next();!r.done;r=i.next()){var e=r.value;e.onStopRecording&&e.onStopRecording()}}catch(n){t={error:n}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},n}(Yf),Ll=function(t){function n(n){var i=t.call(this)||this;return i.Xs=n,i}return vn(n,t),n.prototype.emitBeforeNaturalPageView=function(){var t,n;try{for(var i=gn(this.listeners),r=i.next();!r.done;r=i.next()){var e=r.value;e.onBeforeNaturalPageView&&e.onBeforeNaturalPageView()}}catch(n){t={error:n}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},n.prototype.emitAfterNaturalPageView=function(){var t,n;try{for(var i=gn(this.listeners),r=i.next();!r.done;r=i.next()){var e=r.value;e.onAfterNaturalPageView&&e.onAfterNaturalPageView()}}catch(n){t={error:n}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},n.prototype.emitInitTracking=function(){var t,n;try{for(var i=gn(this.listeners),r=i.next();!r.done;r=i.next()){var e=r.value;e.onInitTracking&&e.onInitTracking()}}catch(n){t={error:n}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},n.prototype.emitStartTracking=function(t){var n,i,r=function(n){n.onStartTracking&&e.Xs.schedule((function(){return n.onStartTracking(t)}))},e=this;try{for(var s=gn(this.listeners),o=s.next();!o.done;o=s.next()){r(o.value)}}catch(t){n={error:t}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}},n.prototype.emitArtificialPageViewEnd=function(){var t,n;try{for(var i=gn(this.listeners),r=i.next();!r.done;r=i.next()){var e=r.value;if(e.onArtificialPageViewEnd)try{e.onArtificialPageViewEnd()}catch(t){Ji.error(t)}}}catch(n){t={error:n}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},n.prototype.emitBeforeArtificialPageView=function(){var t,n;try{for(var i=gn(this.listeners),r=i.next();!r.done;r=i.next()){var e=r.value;e.onBeforeArtificialPageView&&e.onBeforeArtificialPageView()}}catch(n){t={error:n}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},n.prototype.emitAfterArtificialPageView=function(){var t,n;try{for(var i=gn(this.listeners),r=i.next();!r.done;r=i.next()){var e=r.value;e.onAfterArtificialPageView&&e.onAfterArtificialPageView()}}catch(n){t={error:n}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},n.prototype.emitBeforeSessionRenewal=function(){var t,n;try{for(var i=gn(this.listeners),r=i.next();!r.done;r=i.next()){var e=r.value;e.onBeforeSessionRenewal&&e.onBeforeSessionRenewal()}}catch(n){t={error:n}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},n.prototype.emitAfterSessionRenewal=function(){var t,n;try{for(var i=gn(this.listeners),r=i.next();!r.done;r=i.next()){var e=r.value;e.onAfterSessionRenewal&&e.onAfterSessionRenewal()}}catch(n){t={error:n}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},n.prototype.emitOptout=function(){var t,n;try{for(var i=gn(this.listeners),r=i.next();!r.done;r=i.next()){var e=r.value;e.onOptout&&e.onOptout()}}catch(n){t={error:n}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},n.prototype.emitReplayUnanonymizationConsentGranted=function(){var t,n;try{for(var i=gn(this.listeners),r=i.next();!r.done;r=i.next()){var e=r.value;e.onReplayUnanonymizationConsentGranted&&e.onReplayUnanonymizationConsentGranted()}}catch(n){t={error:n}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},n.prototype.emitReplayUnanonymizationConsentWithdrawn=function(){var t,n;try{for(var i=gn(this.listeners),r=i.next();!r.done;r=i.next()){var e=r.value;e.onReplayUnanonymizationConsentWithdrawn&&e.onReplayUnanonymizationConsentWithdrawn()}}catch(n){t={error:n}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},n.prototype.emitAfterReplayRecordingConsentGranted=function(){var t,n;try{for(var i=gn(this.listeners),r=i.next();!r.done;r=i.next()){var e=r.value;e.onAfterReplayRecordingConsentGranted&&e.onAfterReplayRecordingConsentGranted()}}catch(n){t={error:n}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},n.prototype.emitAfterReplayRecordingConsentWithdrawn=function(){var t,n;try{for(var i=gn(this.listeners),r=i.next();!r.done;r=i.next()){var e=r.value;e.onAfterReplayRecordingConsentWithdrawn&&e.onAfterReplayRecordingConsentWithdrawn()}}catch(n){t={error:n}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},n.prototype.emitCollectStateChange=function(t,n){var i,r;try{for(var e=gn(this.listeners),s=e.next();!s.done;s=e.next()){var o=s.value;o.onCollectStateChange&&o.onCollectStateChange(t,n)}}catch(t){i={error:t}}finally{try{s&&!s.done&&(r=e.return)&&r.call(e)}finally{if(i)throw i.error}}},n.prototype.emitInitialDomStart=function(){var t,n;try{for(var i=gn(this.listeners),r=i.next();!r.done;r=i.next()){var e=r.value;e.onInitialDomStart&&e.onInitialDomStart()}}catch(n){t={error:n}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},n.prototype.emitInitialDomDone=function(t){var n,i;try{for(var r=gn(this.listeners),e=r.next();!e.done;e=r.next()){var s=e.value;s.onInitialDomDone&&s.onInitialDomDone(t)}}catch(t){n={error:t}}finally{try{e&&!e.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}},n.prototype.emitRecordingContextChange=function(){var t,n;try{for(var i=gn(this.listeners),r=i.next();!r.done;r=i.next()){var e=r.value;e.onRecordingContextChange&&e.onRecordingContextChange()}}catch(n){t={error:n}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},n.prototype.emitSensitiveStatusChange=function(){var t,n,i;try{for(var r=gn(this.listeners),e=r.next();!e.done;e=r.next()){var s=e.value;null===(i=s.onSensitiveStatusChange)||void 0===i||i.call(s)}}catch(n){t={error:n}}finally{try{e&&!e.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},n.prototype.emitBeforeVisitorRenewal=function(){var t,n;try{for(var i=gn(this.listeners),r=i.next();!r.done;r=i.next()){var e=r.value;e.onBeforeVisitorRenewal&&e.onBeforeVisitorRenewal()}}catch(n){t={error:n}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},n.prototype.emitAfterVisitorCleared=function(){var t,n;try{for(var i=gn(this.listeners),r=i.next();!r.done;r=i.next()){var e=r.value;e.onAfterVisitorCleared&&e.onAfterVisitorCleared()}}catch(n){t={error:n}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},n.prototype.emitAfterVisitorRenewal=function(){var t,n;try{for(var i=gn(this.listeners),r=i.next();!r.done;r=i.next()){var e=r.value;e.onAfterVisitorRenewal&&e.onAfterVisitorRenewal()}}catch(n){t={error:n}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},wn([Xt("emitStartTracking")],n.prototype,"emitStartTracking",null),n}(Yf),Ul=Math.pow(2,52),jl=null;function ql(t){return St(this,void 0,void 0,(function(){var n,i;return bt(this,(function(r){switch(r.label){case 0:return(null==jl?void 0:jl.visitorId)===t?[2,jl.heapUserId]:[4,Hl(t)];case 1:return n=r.sent(),i=Number(n%BigInt(Ul)),jl={visitorId:t,heapUserId:i},[2,i]}}))}))}function Hl(t){return St(this,void 0,void 0,(function(){var n,i;return bt(this,(function(r){switch(r.label){case 0:return[4,crypto.subtle.digest("SHA-256",Fl(t))];case 1:return n=r.sent(),i=function(t){for(var n=new ArrayBuffer(t.byteLength+1),i=new Uint8Array(n),r=1;r0?this.isStarted?[4,this.bS(n,this.wS)]:[3,2]:[3,3];case 1:return h.sent(),[3,3];case 2:this.mS=n,h.label=3;case 3:return[2]}}))}))},n.prototype.bS=function(t,n){return pn(this,void 0,void 0,(function(){var i,r,e,s,o,u,c,h;return mn(this,(function(a){switch(a.label){case 0:return(i=this.Dt.getVisitor())?(e=csString,[4,ql(i.id)]):(_t.warn("could not get current visitor",!0,"UserPropertiesService"),[2]);case 1:r=e.apply(void 0,[a.sent()]),this.SS={a:n,u:r,st:ai().toString(),b:"web",v:"1",s:"1",tv:"4.0"};try{for(s=gn(Object.keys(t)),o=s.next();!o.done;o=s.next())u=o.value,this.SS["_".concat(u)]=t[u]}catch(t){c={error:t}}finally{try{o&&!o.done&&(h=s.return)&&h.call(s)}finally{if(c)throw c.error}}return this.pS.send(),this.ce.refreshSession(),[2]}}))}))},n.prototype.onStart=function(){null!==this.mS&&(this.bS(this.mS,this.wS),this.mS=null)},n.prototype.onStop=function(){},n}(zr),Vl=["addUserProperties"],Gl=(function(){function t(t,n,i,r){this.ra=t,this.Rt=n,this.Dt=i,this.ce=r}t.prototype.init=function(){var t=this,n=new Tl(this.Rt.getPaProxyDomainUri(),"api/add_user_properties_v3");this.AS=new zl(this.Rt.heapEnvironment.env_id,n,this.Dt,this.ce),this.ra.register(Vl,(function(n){T(n)&&null!==n&&t.AS.addUserProperties(n)}))},t.prototype.onStartTracking=function(){this.AS.start()},t.prototype.onBeforeSessionRenewal=function(){this.AS.stop()},t.prototype.onOptout=function(){this.AS.stop()}}(),["undefined","anonymous","true","false","not_authenticated","NaN","NA","Na","unique_identifier","0","",'""',"[object Object]","{{ customer.email }}","{{ email }}"]),Jl=[/^email$/i,/^none$/i,/^unknown$/i,/^guest$/i,/^null$/i],Yl=function(t){function n(n,i,r,e){var s=t.call(this)||this;return s.wS=n,s.pS=i,s.Dt=r,s.ce=e,s.ES=255,s.yr="SHA-256",s.Qr=null,s.RS=null,s.OS=!1,s.TS=null,s.NS=null,di()?(s.OS=!0,s.TS=new TextEncoder,i.setRequestParametersProviders({getRequestParameters:function(){var t;return null!==(t=s.NS)&&void 0!==t?t:{}}}),i.after((function(){s.NS=null})),s):s}return vn(n,t),n.prototype.onStart=function(){if(null!==this.Qr){var t=this.Qr,n=t.identity,i=t.sendHashedIdentity;this.Qr=null,this.identify(n,i)}},n.prototype.onStop=function(){},n.prototype.identify=function(t,n){return pn(this,void 0,void 0,(function(){var i,r;return mn(this,(function(e){switch(e.label){case 0:return this.OS?this.wS?this.isStarted?this.kS(t)?[2]:(i=as.truncate(t,this.ES),(r=this.Dt.getVisitor())?[4,this.CS(i,r.identityPrint)]:(_t.warn("identify: visitor not found",!0,"identify"),[2])):(this.Qr={identity:t,sendHashedIdentity:n},[2]):(_t.error("missing heap env id","identify"),[2]):[2];case 1:if(e.sent()){if(this.Dt.renewVisitor(),!(r=this.Dt.getVisitor()))return _t.warn("identify: visitor not found",!0,"identify"),[2]}else this.ce.refreshSession();return[4,Promise.all([this.IS(i,n,this.wS,r.id),this.MS(i,r)])];case 2:return e.sent(),[2]}}))}))},n.prototype.resetIdentity=function(){null!==this.Qr&&(this.Qr=null),this.getIdentity()&&this.Dt.renewVisitor()},n.prototype.getIdentity=function(){var t=this.Dt.getVisitor();return t&&t.identityPrint?t.identityPrint:null},n.prototype.CS=function(t,n){return pn(this,void 0,void 0,(function(){return mn(this,(function(i){switch(i.label){case 0:return n?[4,this.PS(t)]:[2,!1];case 1:return[2,i.sent()!==n]}}))}))},n.prototype.MS=function(t,n){return pn(this,void 0,void 0,(function(){var i;return mn(this,(function(r){switch(r.label){case 0:return i=n,[4,this.PS(t)];case 1:return i.identityPrint=r.sent(),this.Dt.setVisitor(n),[2]}}))}))},n.prototype.PS=function(t){var n;return pn(this,void 0,void 0,(function(){var i,r;return mn(this,(function(e){switch(e.label){case 0:return(null===(n=this.RS)||void 0===n?void 0:n.identity)===t?[2,this.RS.identityPrint]:[4,mi(this.yr,this.TS.encode("%-idtt_Salt!"+t))];case 1:return i=e.sent(),r=as.truncate(i,12),this.RS={identity:t,identityPrint:r},[2,r]}}))}))},n.prototype.IS=function(t,n,i,r){return pn(this,void 0,void 0,(function(){var e,s,o,u;return mn(this,(function(c){switch(c.label){case 0:return n?[4,mi(this.yr,this.TS.encode(t))]:[3,2];case 1:return s=c.sent(),[3,3];case 2:s=t,c.label=3;case 3:return e=s,u=csString,[4,ql(r)];case 4:return o=u.apply(void 0,[c.sent()]),this.NS={a:i,u:o,st:ai().toString(),b:"web",i:e,v:"1",s:"1"},this.pS.send(),[2]}}))}))},n.prototype.kS=function(t){var n,i,r,e;try{for(var s=gn(Gl),o=s.next();!o.done;o=s.next()){if(t===o.value)return!0}}catch(t){n={error:t}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}try{for(var u=gn(Jl),c=u.next();!c.done;c=u.next()){if(c.value.test(t))return!0}}catch(t){r={error:t}}finally{try{c&&!c.done&&(e=u.return)&&e.call(u)}finally{if(r)throw r.error}}return!1},n}(zr),Wl=["identify"],$l=["getIdentity"],Xl=["resetIdentity"],Kl=(function(){function t(t,n,i,r){this.ra=t,this.Rt=n,this.Dt=i,this.ce=r}t.prototype.init=function(){var t,n=this,i=new Tl(this.Rt.getPaProxyDomainUri(),"api/identify_v3");this._S=new Yl(null===(t=this.Rt.heapEnvironment)||void 0===t?void 0:t.env_id,i,this.Dt,this.ce),this.ra.register(Wl,(function(t,i){if(R(t)||A(t)){var r=!1;n.xS(i)&&(r=Boolean(i.hash)),n._S.identify(t.toString(),r)}})),this.ra.register(Xl,(function(){return n._S.resetIdentity()})),this.ra.register($l,(function(){return n._S.getIdentity()}))},t.prototype.onStartTracking=function(){this._S.start()},t.prototype.onBeforeSessionRenewal=function(){this._S.stop()},t.prototype.onOptout=function(){this._S.stop()},t.prototype.xS=function(t){return k(t)&&T(t)&&"hash"in t}}(),["trackTransaction"]),Zl=function(){function t(t){this.DS=t}return t.prototype.init=function(){this.DS.register(Cu),this.DS.register(fl),this.DS.register(wh),this.DS.register(ph),this.DS.register(yh),this.DS.register(Du),this.DS.register(Lu),this.DS.register(Uu),this.DS.register(ju),this.DS.register(Kl),this.DS.register(Oh),this.DS.register(Th),this.DS.register(_f),this.DS.register(xf),this.DS.register(kh),this.DS.register(qh),this.DS.register(Hh),this.DS.register(hu),this.DS.register(lf),this.DS.register(vf),this.DS.register(df),this.DS.register(yf),this.DS.register(Ua),this.DS.register(ja),this.DS.register(Vl),this.DS.register(Wl),this.DS.register($l),this.DS.register(Xl)},t.prototype.onStartTracking=function(){this.DS.start()},t.prototype.onOptout=function(){this.DS.stop()},t}(),Ql=function(t){function n(n,i){var r=t.call(this)||this;return r.ra=n,r.LS=i,r.Ja=[],r}return vn(n,t),n.prototype.onStart=function(){this.commandsBatchReady()},n.prototype.onStop=function(){this.Ja=[]},n.prototype.register=function(t){var n,i,r=this,e=function(t){s.ra.register([t],(function(){for(var n=[],i=0;i=t.date)return csArray.prototype.splice.call(this.se,n,0,t),this.QS=!0,void this.nb()}this.ib(t),this.nb()},n}(zr),av=function(){function t(t){this.Rt=t}return t.prototype.isReplayUnanonymizedAllowedByConsent=function(){return!this.Rt.consentRequired},t}(),fv=function(){function t(){}return t.isWebViewLocalAssetsSupported=function(){return"URL"in window},t}(),lv=["webview:replay:start"],vv=["webview:replay:stop"],dv=function(){function t(t,n,i,r,e,s,o,u){this.Rt=t,this.$S=n,this.rb=i,this.eb=r,this.sb=e,this.ra=s,this.Ht=o,this.FS=u,this.ob=!1}return t.prototype.init=function(){var t=this,n=new av(this.Rt),i=new pa;if(this.ca=new Of(this.Ht),new Nf(this.ca,this.ra).init(),this.aa=new wa(n,this.Rt,this.Ht,i),this.aa.init(),fv.isWebViewLocalAssetsSupported()){var r=function(n){t.ub(n)},e=function(t){return Ji.error("An error occurred while fetching a styleSheet: "+t)},s=new Set,o=function(t){return!s.has(t)},u=function(n){s.add(n.assetId),t.ub([n])};this.rb.onAsset((function(n){t.cb(n)})),this.rb.onStyleSheetFound((function(n){t.sb.getStyleSheetAssets(n.assetId,r,e,o,u)}))}this.hb()},t.prototype.onStartRecording=function(){if(this.ob=!0,!this.ca.isUrlExcludedForSessionReplay()){var t=this.FS.getSensitiveStatus();this.$S.emitParentRecordingContextChange({isRecording:!0,isMutationTrackerStarted:!0,useAnonymization:t.useAnonymization})}},t.prototype.onStopRecording=function(){this.ob=!1,this.$S.emitParentRecordingContextChange({isRecording:!1,isMutationTrackerStarted:!1})},t.prototype.onArtificialPageViewEnd=function(){this.$S.emitParentRecordingContextChange({isRecording:!1})},t.prototype.onAfterArtificialPageView=function(){this.Lr()&&!this.ca.isUrlExcludedForSessionReplay()&&this.$S.emitParentRecordingContextChange({isRecording:!0})},t.prototype.Lr=function(){return this.ob},t.prototype.hb=function(){var t=this;this.ra.register(lv,(function(){t.$S.emitStartAnalytics(),t.$S.emitStartRecording()}),{disableApplyPending:!0}),this.ra.register(vv,(function(){return t.$S.emitStopRecording()}),{disableApplyPending:!0})},t.prototype.cb=function(t){this.eb.sendToParent(Li.Assets,{assets:[t]})},t.prototype.ub=function(t){0!==t.length&&this.eb.sendToParent(Li.Assets,{assets:t})},t}();var yv=/(@import\s*("([^"]+)"|'([^']+)'))|(url\s*\(\s*((("([^"\]]+)"|'([^'\]]+)')\s*)|([^)\]]+))\))/g;function wv(t,n){var i=t.replace(yv,(function(){for(var t=[],i=0;i1114111?"�":String.fromCodePoint(e)}));return(r?"@import ":"")+"url("+function(t){if(-1===t.indexOf('"'))return'"'+t+'"';if(-1===t.indexOf("'"))return"'"+t+"'";return t}(n(s)||s)+")"}));return i}var pv,mv=function(){function t(t){this.ab=t}return t.prototype.getStyleSheetAssets=function(t,n,i,r,e){var s=this,o=[];if(ue(t)){this.ab.getResourceContentText(t,(function(t,u){var c=s.fb(t,u);csArray.prototype.forEach.call(c,(function(t){csArray.prototype.push.call(o,t),ue(t.assetId)&&r(t.assetId)&&(null==e||e(t),s.getStyleSheetAssets(t.assetId,n,i,r,e))})),n(o)}),(function(t){return i(t)}))}},t.prototype.fb=function(t,n){return this.lb(t,function(t){var n=[];return wv(t,(function(t){return n.push(t),t})),n}(n))},t.prototype.lb=function(t,n){return csArray.prototype.map.call(csArray.prototype.filter.call(csArray.prototype.filter.call(n,(function(t){return!se(t)})),(function(t){return!oe(t)})),(function(n){return{assetId:Ci(n,t),assetBasePath:t,assetRawPath:n}}))},t}(),gv=function(){function t(){}return t.prototype.getResourceContentText=function(t,n,i){var r=this.yb((function(i){n(t,i.responseText)}),i);r.open("GET",t),r.send()},t.prototype.yb=function(t,n){var i=new XMLHttpRequest;return i.onreadystatechange=function(){i.readyState===XMLHttpRequest.DONE&&(200===i.status?t(i):n(i.statusText))},i},t}(),Sv=function(t){function n(n,i){var r=t.call(this)||this;return r.mh=n,r.LS=i,r}return vn(n,t),n.prototype.onStart=function(){},n.prototype.onStop=function(){},n.prototype.init=function(){var t=this;this.mh.onSendStaticResource((function(n){return t.LS.sendToParent(Li.StaticResource,n)}))},n}(zr),bv=function(){function t(t,n,i,r,e,s,o,u,c,h,a,f,l){this.Rt=t,this.Ot=n,this.ea=i,this.ph=r,this.LS=e,this.HS=s,this.ra=o,this.BS=u,this.Zt=c,this.Ht=h,this.FS=a,this.mu=f,this.le=l}return t.prototype.init=function(){var t=this,n=[],i=this.HS.getRecordingContext();this.va=new so(!!i.useAnonymization,this.Rt.whitelistedAttributes,this.Ot,this.Rt.anonymizeDigits);var r=[];csArray.prototype.push.call(r,new _s,this.va,new oo(this.mu)),csArray.prototype.push.call(r,new co);var e=new Ns;csArray.prototype.push.call(n,e),!this.Zt.isInWebViewContext()&&this.Rt.useStaticResourceManager&&ds.isSupported()&&(this.Se=new ds,csArray.prototype.push.call(r,this.Se),this.mh=new Zo,this.wb=new Sv(this.mh,this.LS),this.wb.init()),this.pa=new jr,this.pa.init(),csArray.prototype.push.call(n,this.pa),csArray.prototype.push.call(n,new As(window.location,this.Ot));var s=[this.ea,new hs,new Vo(csArray.prototype.filter.call(n,(function(t){return t}))),new bo,new Eo,new xo,new So(this.le)];var o=new zo(s,r),u=new Ko(o,this.ph,this.mh);if(this.pb=new hv(this.Rt,this.le,this.LS,u,n,this.Se),this.ra.register(cu,(function(){return t.HS.getRecordingContext().isRecording})),this.ra.register(au,(function(){return t.pb.getStaticResourceManagerStatus()})),this.pb.init(),this.Zt.isInWebViewContext()){var c=new mv(new gv);this.mb=new dv(this.Rt,this.BS,e,this.LS,c,this.ra,this.Ht,this.FS),this.BS.addListener(this.mb),this.ph.addListener(this.mb),this.mb.init()}},t.prototype.onParentRecordingContextChange=function(t){var n,i;void 0!==t.useAnonymization&&this.da(t.useAnonymization),void 0!==t.enableOnlineResourcesOnNextPageview&&this.pb.setOnlineAssetsEnabledOnNextStart(t.enableOnlineResourcesOnNextPageview),t.isRecording?(this.Sa(),this.pb.setEnableOnlineAssets(t.enableOnlineResources),this.pb.start(),null===(n=this.wb)||void 0===n||n.start()):(this.pb.stop(),null===(i=this.wb)||void 0===i||i.stop())},t.prototype.onInitialDomStart=function(){},t.prototype.onInitialDomDone=function(t){this.pa.start(),this.pb.addInitialDom(t)},t.prototype.da=function(t){var n;this.va.setAnonymization(t),null===(n=this.Ra)||void 0===n||n.setAnonymization(t)},t.prototype.onOptout=function(){this.pb.stop()},t.prototype.Sa=function(){var t,n,i,r;(null===(n=null===(t=this.Rt.experimental.sessionReplay)||void 0===t?void 0:t.shadowRoot)||void 0===n?void 0:n.filterByHostSelector)&&tn(null===(r=null===(i=this.Rt.experimental.sessionReplay)||void 0===i?void 0:i.shadowRoot)||void 0===r?void 0:r.filterByHostSelector,(function(t){Lr(t)&&Ge.setShadowRootFilter((function(n){try{return nt.call(n.host,t)}catch(t){return!1}}))}))},t}(),Av=function(){function t(t,n){this.eb=t,this.gb=n}return t.prototype.init=function(){var t=this;this.eb.onWebViewEvent((function(n,i){t.gb.emitWebviewEventToBridge(n,i)}))},t.prototype.onStartTracking=function(){this.eb.start()},t.prototype.onOptout=function(){this.eb.stop()},t.prototype.onStartAnalytics=function(){this.eb.setAnalyticsStatus(!0)},t.prototype.onStopAnalytics=function(){this.eb.setAnalyticsStatus(!1)},t.prototype.onParentRecordingContextChange=function(t){this.gb.setSessionReplayStatus(t.isRecording)},t}();!function(t){t[t.PAGE_VIEW=4]="PAGE_VIEW",t[t.TAP=6]="TAP",t[t.LONG_PRESS=8]="LONG_PRESS",t[t.DRAG=9]="DRAG",t[t.FLICK=10]="FLICK",t[t.DETAILED_API_ERROR=13]="DETAILED_API_ERROR",t[t.JAVASCRIPT_ERROR_SR=19]="JAVASCRIPT_ERROR_SR",t[t.CUSTOM_ERROR_SR=20]="CUSTOM_ERROR_SR",t[t.API_ERROR=21]="API_ERROR",t[t.CUSTOM_ERROR_AN=25]="CUSTOM_ERROR_AN",t[t.JAVASCRIPT_ERROR_AN=26]="JAVASCRIPT_ERROR_AN"}(pv||(pv={}));var Ev,Rv=function(){function t(){this.Sb=1}return t.prototype.transformEvent=function(t){switch(t.type){case pu.TAP:return{version:this.Sb,type:pv.TAP,data:{path:t.tgt}};case pu.DRAG:var n=t;return{version:this.Sb,type:pv.DRAG,data:{path:n.tgt,direction:n.fd,distance:n.distance,velocity:n.velocity}};case pu.FLICK:var i=t;return{version:this.Sb,type:pv.FLICK,data:{path:i.tgt,direction:i.fd,distance:i.distance,velocity:i.velocity}};default:return null}},t}(),Ov=function(){function t(t,n,i,r){this.Ht=t,this.he=n,this.fe=i,this.zd=r,this.Sb=1}return t.prototype.transformEvent=function(t,n){switch(t){case Li.ApiError:case Li.DetailedApiError:var i=this.fe.anonymize(n);return{version:this.Sb,data:i};case Li.JavascriptError:var r=dn(dn({},n),{pageUrl:this.Ht.getAnonymizedUrl()});i=this.he.anonymize(r);return{version:this.Sb,data:dn(dn({},i),{date:ai()})};case Li.CustomError:var e=n;return e.message=this.zd.anonymize(e.message),{version:this.Sb,data:dn(dn({},e),{date:ai()})};default:return null}},t}();!function(t){t.isCSJavascriptBridgeDefined=function(){return"object"==typeof window.CSJavascriptBridge&&"function"==typeof window.CSJavascriptBridge.optIn&&"function"==typeof window.CSJavascriptBridge.optOut&&"function"==typeof window.CSJavascriptBridge.sendEvent&&"function"==typeof window.CSJavascriptBridge.sendDynamicVar&&"function"==typeof window.CSJavascriptBridge.sendTransaction},t.getBridgeVersion=function(){if("function"==typeof window.CSJavascriptBridge.getVersion)try{var t=window.CSJavascriptBridge.getVersion();if(A(t))return t}catch(t){Ji.warn("an error occurred when calling getVersion")}return null},t.notifyIsReadyForTracking=function(){"function"==typeof window.CSJavascriptBridge.onWebviewTrackingReady&&window.CSJavascriptBridge.onWebviewTrackingReady()},t.sendAnalysisEvent=function(t){window.CSJavascriptBridge.sendEvent(csJSON.stringify(t))},t.sendSREvent=function(t){var n,i;if(window.CSJavascriptBridge.sendSREvent)try{for(var r=gn(t.events),e=r.next();!e.done;e=r.next()){var s=e.value;window.CSJavascriptBridge.sendSREvent(csJSON.stringify(s))}}catch(t){n={error:t}}finally{try{e&&!e.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}},t.sendLog=function(t){window.CSJavascriptBridge&&window.CSJavascriptBridge.sendLog&&window.CSJavascriptBridge.sendLog(csJSON.stringify(t))},t.sendOptIn=function(){window.CSJavascriptBridge.optIn()},t.sendOptOut=function(){window.CSJavascriptBridge.optOut()},t.sendDynamicVariable=function(t,n){window.CSJavascriptBridge.sendDynamicVar(t,n)},t.sendTransaction=function(t,n,i){window.CSJavascriptBridge.sendTransaction(t,n,i)},t.sendAssets=function(t,n){if(window.CSJavascriptBridge.sendAssets){var i=csJSON.stringify(t);window.CSJavascriptBridge.sendAssets(i,n||null)}else window.CSJavascriptBridge.sendSRAssets&&window.CSJavascriptBridge.sendSRAssets(csArray.prototype.map.call(t,(function(t){return t.assetId})))},t.sendNativeSREvent=function(t){window.CSJavascriptBridge&&window.CSJavascriptBridge.sendNativeSREvent&&window.CSJavascriptBridge.sendNativeSREvent(csJSON.stringify(t))}}(Ev||(Ev={}));var Tv=function(){function t(t,n,i,r,e,s,o,u){this.bb=t,this.uf=n,this.Ab=i,this.Eb=r,this.Rb=e,this.ph=s,this.Ht=o,this.sa=u,this.Ob=!1}return t.prototype.emitWebviewEventToBridge=function(t,n){return pn(this,void 0,void 0,(function(){var i,r,e,s,o,u,c,h,a=this;return mn(this,(function(f){switch(f.label){case 0:switch(t){case Li.AnalysisEvent:return[3,1];case Li.RecordingEvent:return[3,2];case Li.ChildLogMessage:return[3,3];case Li.Commands:return[3,4];case Li.Assets:return[3,5];case Li.JavascriptError:return[3,7];case Li.ApiError:return[3,8];case Li.DetailedApiError:return[3,9]}return[3,10];case 1:return(i=this.Ab.transformEvent(n.event))&&Ev.sendAnalysisEvent(i),[3,11];case 2:return Ev.sendSREvent(n),[3,11];case 3:return Ev.sendLog(n),[3,11];case 4:return Ji.tryToExecute("SDKMessageUtils.sendMessage.sendCommandMessage: ".concat(n),(function(){a.Tb(n)}))(),[3,11];case 5:return e=(r=n).assets,s=r.serializationId,[4,this.Rb.getTransformedAssets(e,s)];case 6:return o=f.sent(),Ev.sendAssets(o,s),[3,11];case 7:return(u=this.Eb.transformEvent(Li.JavascriptError,n))&&(this.Ob&&Ev.sendNativeSREvent(dn(dn({},u),{type:pv.JAVASCRIPT_ERROR_SR})),Ev.sendAnalysisEvent(dn(dn({},u),{type:pv.JAVASCRIPT_ERROR_AN}))),[3,11];case 8:return(c=this.Eb.transformEvent(Li.ApiError,n))&&Ev.sendAnalysisEvent(dn(dn({},c),{type:pv.API_ERROR})),[3,11];case 9:return(h=this.Eb.transformEvent(Li.DetailedApiError,n))&&Ev.sendNativeSREvent(dn(dn({},h),{type:pv.DETAILED_API_ERROR})),[3,11];case 10:return[3,11];case 11:return[2]}}))}))},t.prototype.setSessionReplayStatus=function(t){this.Ob=t},t.prototype.Tb=function(t){var n,i,r=t.commands;try{for(var e=gn(r),s=e.next();!s.done;s=e.next()){var o=s.value;switch(!0){case csArray.prototype.indexOf.call(xf,o.name)>=0:Ev.sendOptIn();break;case csArray.prototype.indexOf.call(_f,o.name)>=0:this.ph.emitOptout(),Ev.sendOptOut();break;case csArray.prototype.indexOf.call(Cu,o.name)>=0:this.Nb(o);break;case csArray.prototype.indexOf.call(yh,o.name)>=0:this.kb(o);break;case csArray.prototype.indexOf.call(Lu,o.name)>=0:this.Cb(o);break;case csArray.prototype.indexOf.call(Uu,o.name)>=0:break;case csArray.prototype.indexOf.call(ju,o.name)>=0:this.Ib();break;case csArray.prototype.indexOf.call(Kl,o.name)>=0:this.Cb(o),this.Ib();break;case csArray.prototype.indexOf.call(ra,o.name)>=0:this.sa.addUrlMaskingPattern(o.params[0]);break;case csArray.prototype.indexOf.call(Ua,o.name)>=0:this.sa.addPartialUrlMaskingPattern(o.params[0]);break;case csArray.prototype.indexOf.call(ja,o.name)>=0:this.sa.resetPartialUrlMaskingPatterns();break;case csArray.prototype.indexOf.call(oa,o.name)>=0:this.Mb(o);break;default:Ji.warn("WebviewBridgeEventEmitter received an unknown command: ".concat(csJSON.stringify(o)))}}}catch(t){n={error:t}}finally{try{s&&!s.done&&(i=e.return)&&i.call(e)}finally{if(n)throw n.error}}},t.prototype.Nb=function(t){if(1===t.params.length){var n=t.params[0];if(T(n)&&"key"in n&&"value"in n&&Tu.isKeyValid(n.key)&&Tu.isValueValid(n.value)){var i=this.bb.anonymizePII(n.key),r=E(n.value)?n.value:this.bb.anonymizePII(n.value);Ev.sendDynamicVariable(i,r)}}},t.prototype.kb=function(t){if(1===t.params.length){var n=t.params[0];if(R(n)){var i={type:pv.PAGE_VIEW,version:1,data:{url:n}};this.Ht.overridePath(n),this.ph.emitArtificialPageViewEnd(),Ev.sendAnalysisEvent(i),this.ph.emitAfterArtificialPageView()}}},t.prototype.Cb=function(t){if(1===t.params.length){var n=Sn(t.params,1)[0];n.value&&(n.revenue=n.value),this.uf.addTransaction(n)}},t.prototype.Ib=function(){var t=this.uf.getTransaction();Mu.isValid(t)&&(Ev.sendTransaction(t.id?t.id:null,t.revenue,t.currency?t.currency:""),this.uf.clear())},t.prototype.Mb=function(t){if(!(t.params.length<1)){var n=t.params[0],i=t.params[1]||{};if(R(n)&&T(i)){var r=Lh.buildCustomErrorEvent(n,i),e=this.Eb.transformEvent(Li.CustomError,r);e&&(this.Ob&&Ev.sendNativeSREvent(dn(dn({},e),{type:pv.CUSTOM_ERROR_SR})),Ev.sendAnalysisEvent(dn(dn({},e),{type:pv.CUSTOM_ERROR_AN})))}}},t}(),Nv="LOCAL_ASSET",kv="NONE",Cv="ONLY_LOCAL_ASSETS",Iv="ALL",Mv=function(){function t(t){var n,i;this.Pb=t,this._b=new Set,this.xb=kv;try{var r=null===(i=null===(n=window.CSJavascriptBridge)||void 0===n?void 0:n.getAssetTransformerMode)||void 0===i?void 0:i.call(n);r!==Cv&&r!==Iv||(this.xb=r)}catch(t){}}return t.prototype.setAssetProcessingMode=function(t){this.xb=t},t.prototype.getTransformedAssets=function(t,n){return pn(this,void 0,void 0,(function(){var i,r,e,s,o,u,c,h,a,f,l,v;return mn(this,(function(d){switch(d.label){case 0:if(this.xb===kv)return[2,t];i=[],d.label=1;case 1:d.trys.push([1,10,11,12]),r=gn(t),e=r.next(),d.label=2;case 2:if(e.done)return[3,9];if(s=e.value,o=s.assetId,u=this.Db(o),this.xb!==Iv&&u!==Nv)return[3,7];if(c=o,this.Lb(o,n)&&(c=this.Ub(o,n)),this._b.has(c))return csArray.prototype.push.call(i,s),[3,8];d.label=3;case 3:return d.trys.push([3,5,,6]),[4,this.Pb.getAssetContent(o)];case 4:return h=d.sent(),this._b.has(c)?(csArray.prototype.push.call(i,s),[3,8]):(csArray.prototype.push.call(i,dn(dn({},s),{retrievedAssetContent:h})),this._b.add(s.assetId),[3,6]);case 5:return a=d.sent(),Ji.error("an error occurred while getting data for asset: ".concat(c,": ").concat(a)),csArray.prototype.push.call(i,s),[3,6];case 6:return[3,8];case 7:csArray.prototype.push.call(i,s),d.label=8;case 8:return e=r.next(),[3,2];case 9:return[3,12];case 10:return f=d.sent(),l={error:f},[3,12];case 11:try{e&&!e.done&&(v=r.return)&&v.call(r)}finally{if(l)throw l.error}return[7];case 12:return[2,i]}}))}))},t.prototype.Db=function(t){var n=window.WEBVIEW_SERVER_URL||null;try{return"file:"===new csURL(t).protocol||n&&csString.prototype.startsWith.call(t,n)?Nv:"REMOTE_ASSET"}catch(n){Ji.error("Error constructing URL (".concat(t,'"): ').concat(n.message))}return"UNKNOWN_ASSET_TYPE"},t.prototype.Lb=function(t,n){return n&&csString.prototype.endsWith.call(t,".css")||!1},t.prototype.Ub=function(t,n){return"".concat(t,"#").concat(n)},t}(),Pv=function(){function t(){this.jb=52428800,this.qb=31457280,this.Hb=0,this.Fb=!1,this.Bb=new Map,this.rh=[]}return t.prototype.getAssetContent=function(t){return pn(this,void 0,void 0,(function(){var n,i=this;return mn(this,(function(r){return(n=this.Bb.get(t))?[2,n]:[2,new Promise((function(n,r){csArray.prototype.push.call(i.rh,{assetUrl:t,successCallback:n,errorCallback:r}),i.Fb||i.zb()}))]}))}))},t.prototype.zb=function(){return pn(this,void 0,void 0,(function(){var t,n,i=this;return mn(this,(function(r){switch(r.label){case 0:this.Fb=!0,t=function(){var t,r,e,s,o,u,c,h,a,f,l,v;return mn(this,(function(d){switch(d.label){case 0:if(t=csArray.prototype.shift.call(n.rh),r=t.assetUrl,e=t.successCallback,s=t.errorCallback,o=n.Bb.get(r))return e(o),[2,"continue"];d.label=1;case 1:return d.trys.push([1,3,,4]),[4,n.Vb("GET",r,"blob")];case 2:if(u=d.sent(),200===(c=u.target).status){if(h=c.getResponseHeader("Content-Type"),(a=Number(c.getResponseHeader("Content-Length")))&&Number(a)>n.qb)return v="asset is too big, size = ".concat(a," bytes"),s(v),[2,"continue"];(f=new FileReader).onload=function(){var t={data:csString.prototype.split.call(f.result,"base64,")[1],mimeType:null!=h?h:""};i.Hb+=a,i.Hb>i.jb&&(i.Hb=0,i.Bb.clear()),i.Bb.set(r,t),e(t)},f.onerror=function(){s("Error converting XHR response to base64")},f.readAsDataURL(c.response)}else s("error downloading ".concat(r,": ").concat(c.statusText));return[3,4];case 3:return l=d.sent(),v="Error downloading resource ".concat(r,": ").concat(l.message),s(v),[3,4];case 4:return[2]}}))},n=this,r.label=1;case 1:return this.rh.length>0?[5,t()]:[3,3];case 2:return r.sent(),[3,1];case 3:return this.Fb=!1,[2]}}))}))},t.prototype.Vb=function(t,n,i){return new Promise((function(r,e){var s=new XMLHttpRequest;s.open(t,n),s.responseType=i,s.onload=r,s.onerror=e,s.send()}))},t}();function _v(t){if(null==t?void 0:t.length)return Zt(t,(function(t){return function(t){var n=[];try{n=Zt(t.cssRules,(function(t){return t.cssText}))}catch(t){}return{cssRules:n}}(t)}))}var xv=function(){function t(t,n){this.LS=t,this.sb=n,this.Gb=new Es}return t.prototype.Jb=function(){var t=this,n=new Set;kt(document,NodeFilter.SHOW_ELEMENT).visitAll((function(i){n.has(i)||(t.Gb.scanElement(i),n.add(i))}))},t.prototype.handleCommand=function(t){var n=t&&t.withAssets,i=[],r=new Set,e=new Set,s=[];n&&fv.isWebViewLocalAssetsSupported()?(this.Gb.onScannedAsset((function(t){var n=t.type,o=t.asset;"stylesheet"!==n||e.has(o.assetId)||(e.add(o.assetId),csArray.prototype.push.call(s,o)),r.has(o.assetId)||(r.add(o.assetId),csArray.prototype.push.call(i,o))})),this.Jb()):fv.isWebViewLocalAssetsSupported()||Ji.warn("Local asset is not supported on this browser");var o,u=(void kt(document).visitAll((function(t){var n;if(J(t)&&(null===(n=t.adoptedStyleSheets)||void 0===n?void 0:n.length)>0){var i=_v(t.adoptedStyleSheets);Cr.setProperty(t,"styles",i)}})),o=function(t,n){var i;return rs(v(v({},n),{async:!1}))(t,(function(t){return i=t})),i}(document),Cr.traverse(o,(function(t){if(11===t.nodeType){var n=Cr.getProperty(t,"styles");n&&(t.adoptedStyleSheets=n)}})),o),c=csJSON.stringify(u);if(n){var h=za.generate();return this.Yb(i,s,h),csJSON.stringify({serializedDom:c,serializationId:h})}return c},t.prototype.Yb=function(t,n,i){var r=this;0===n.length?this.ub(t,i):this.Wb(t,n,i,(function(t,n){return r.ub(t,n)}))},t.prototype.Wb=function(t,n,i,r){var e=this,s=0,o=0,u=new Set(csArray.prototype.map.call(t,(function(t){return t.assetId}))),c=function(t){return!u.has(t)},h=function(i){u.has(i.assetId)||(u.add(i.assetId),csArray.prototype.push.call(n,i),csArray.prototype.push.call(t,i))},a=function(e){var c,h;try{for(var a=gn(e),f=a.next();!f.done;f=a.next()){var l=f.value;u.has(l.assetId)||(u.add(l.assetId),csArray.prototype.push.call(t,l))}}catch(t){c={error:t}}finally{try{f&&!f.done&&(h=a.return)&&h.call(a)}finally{if(c)throw c.error}}++s+o===n.length&&r(t,i)},f=function(e){o++,Ji.error("An error occurred while fetching a styleSheet: "+e),s+o===n.length&&r(t,i)};csArray.prototype.forEach.call(n,(function(t){e.sb.getStyleSheetAssets(t.assetId,a,f,c,h)}))},t.prototype.ub=function(t,n){this.LS.sendToParent(Li.Assets,{assets:t,serializationId:n})},t}();var Dv=function(){function t(t){this.Rt=t,this.$b=null}return t.prototype.isSdkTrackingContext=function(t){return k(t)&&T(t)&&R(t.sessionKey)&&E(t.pageNumber)&&R(t.pageViewType)&&O(t.isRecording)},t.prototype.update=function(t){if(!this.isSdkTrackingContext(t))return Ji.warn("webViewTrackingContext.service received wrong sdkTrackingContext, content:".concat(csJSON.stringify(t))),void(this.$b=null);this.$b=dn(dn(dn({},t),{recordingConsentState:iu.NOT_NEEDED,projectId:this.Rt.projectId,uxaDomain:this.Rt.uxaDomain}),this.Rt.smbConfig)},t.prototype.getTrackingContext=function(){return this.$b},t}(),Lv=function(){function t(t){this.Xb=t,this.Ca=[]}return t.prototype.handleCommand=function(t){if(C(t)){this.Ia(t);var n=this.Xb.getTrackingContext();null!==n&&this.Ma(t,n)}},t.prototype.executeRegisteredCallbacks=function(t){var n=this,i=t.trackingContext;i&&csArray.prototype.map.call(this.Ca,(function(t){return n.Ma(t,i)}))},t.prototype.Ia=function(t){csArray.prototype.push.call(this.Ca,t)},t.prototype.Ma=function(t,n){csSetTimeout((function(){t(n)}))},t}(),Uv=function(){function t(t,n){this.La=t,this.Xb=n}return t.prototype.onIframeIntegrationCallback=function(t){var n=this.Xb.getTrackingContext();null!==n&&(t.trackingContext=n,this.La.sendToChildren(Li.IntegrationCallback,t))},t}(),jv=function(){function t(t){this.commandsService=t,this.Ba=new Su}return t.prototype.registerChildCommands=function(){var t=this;this.commandsService.register(Eu,(function(n){return t.Ba.handleCommand(n,t.Kb)}))},t.prototype.onParentRecordingContextChange=function(t){this.Kb={isRecording:t.isRecording,recordingStartTimestamp:t.recordingStartTimestamp||0,etrState:t.etrState||Xr.ETR_OFF},this.Ba.executeCallbacks(this.Kb)},wn([nu()],t.prototype,"onParentRecordingContextChange",null),t}(),qv=["serializeWebView","webview:serializeWebView"],Hv=["setAssetTransformerMode","webview:setAssetTransformerMode"],Fv=["webview:onAfterScreenView"],Bv=function(t){function n(n,i,r,e,s,o,u){var c=t.call(this,n)||this;return c.commandsService=n,c.LS=i,c.La=r,c.Rb=e,c.Zb=s,c.qa=o,c.Rt=u,c}return vn(n,t),n.prototype.init=function(){this.Xb=new Dv(this.Rt),this.Qb=new Uv(this.La,this.Xb),this.qa.addListener(this.Qb),this.tA=new Lv(this.Xb);var t=new mv(new gv);this.nA=new xv(this.LS,t),this.xd()},n.prototype.onAfterPageViewCallback=function(t){this.tA.executeRegisteredCallbacks(t)},n.prototype.xd=function(){var n=this;t.prototype.registerChildCommands.call(this),this.commandsService.register(bu,(function(t){n.tA.handleCommand(t)})),this.commandsService.register(Fv,(function(t){n.Xb.update(t);var i=n.Xb.getTrackingContext();null!==i&&n.Zb.emitAfterPageViewCallback({initiator:xi.AfterPageView,trackingContext:i})})),this.commandsService.register(qv,(function(t){return n.nA.handleCommand(t)})),this.commandsService.register(Hv,(function(t){t!==kv&&t!==Cv&&t!==Iv||n.Rb.setAssetProcessingMode(t)}))},n}(jv),zv=function(){function t(t){this.LS=t,this.Ca={}}return t.prototype.handleCommand=function(t){C(t)&&this.Ia(t)},t.prototype.executeRegisteredCallbacks=function(t){var n=t.trackingContext;if(n)if(t.callbackId){var i=this.Ca[t.callbackId];i&&this.Ma(i,n)}else for(var r in this.Ca)this.Ma(this.Ca[r],n)},t.prototype.Ia=function(t){var n=Tn.integer(),i={callbackId:n,initiator:xi.AfterPageView};this.Ca[n]=t,this.LS.sendToParent(Li.IntegrationCallback,i)},t.prototype.Ma=function(t,n){csSetTimeout((function(){t(n)}))},t}(),Vv=function(){function t(t){this.LS=t,this.Pa={}}return t.prototype.handleCommand=function(t){T(t)&&C(t.callback)&&this.xa(t.callback)},t.prototype.executePendingCallbacks=function(t){var n=t.trackingContext,i=t.callbackId;if(i&&n){var r=this.Pa[i];r&&(delete this.Pa[i],this.Ma(r,n.sessionKey))}},t.prototype.xa=function(t){var n=Tn.integer(),i={callbackId:n,initiator:xi.GetSessionKey};this.Pa[n]=t,this.LS.sendToParent(Li.IntegrationCallback,i)},t.prototype.Ma=function(t,n){csSetTimeout((function(){t(n)}))},t}(),Gv=function(){function t(t,n){this.LS=t,this.La=n,this.iA={}}return t.prototype.handleCommand=function(t,n){T(t)&&C(n)&&this.xa(t,n)},t.prototype.executePendingCommand=function(t){var n=t.trackingContext,i=t.callbackId;if(i&&n)if(this.iA[i]){var r=Sn(this.iA[i],2),e=r[0],s=r[1];e&&(delete this.iA[i],this.Ma(n,e,s))}else this.La.sendToChildren(Li.TrackingContextResultMessage,t)},t.prototype.xa=function(t,n){var i=Tn.integer();this.iA[i]=[t,n],this.LS.sendToParent(Li.TrackingContextRequestMessage,{callbackId:i})},t.prototype.Ma=function(t,n,i){csSetTimeout((function(){var r=wu(t,n);i(r)}))},t}(),Jv=function(t){function n(n,i,r){var e=t.call(this,n)||this;return e.commandsService=n,e.LS=i,e.La=r,e}return vn(n,t),n.prototype.init=function(){this.rA=new zv(this.LS),this.eA=new Vv(this.LS),this.sA=new Gv(this.LS,this.La),this.xd()},n.prototype.onAfterPageViewCallback=function(t){this.rA.executeRegisteredCallbacks(t)},n.prototype.onIntegrationSessionKeyCallback=function(t){this.eA.executePendingCallbacks(t)},n.prototype.onTrackingContextResultCallback=function(t){this.sA.executePendingCommand(t)},n.prototype.xd=function(){var n=this;t.prototype.registerChildCommands.call(this),this.commandsService.register(bu,(function(t){n.rA.handleCommand(t)})),this.commandsService.register(Au,(function(t){return n.eA.handleCommand(t)})),this.commandsService.register(Ru,(function(t,i){n.sA.handleCommand(t,i)}))},n}(jv),Yv=function(){function t(t,n,i,r,e,s){this.ra=t,this.Uw=n,this.ea=i,this.qw=r,this.le=e,this.oA=s}return t.prototype.init=function(){var t,n;this.oA&&this.le&&(null===(t=this.oA)||void 0===t||t.addSelector(null===(n=this.le)||void 0===n?void 0:n.getEncryptionSelectors())),this.xd(),this.jw=new La(this.ea,this.Uw,this.qw,this.oA)},t.prototype.uA=function(){this.jw.start()},t.prototype.ne=function(){this.jw.stop()},t.prototype.onParentSensitiveStatusChange=function(t){var n,i;t.maskedElementSettings&&this.Uw.setMaskedElementSettingsFromParent(t.maskedElementSettings),t.capturedElementSelector&&this.qw.setWhitelistedElementsSelector(t.capturedElementSelector),t.encryptionSelectors&&(null===(n=this.oA)||void 0===n||n.addSelector(t.encryptionSelectors),null===(i=this.le)||void 0===i||i.setEncryptionSelectors(t.encryptionSelectors)),t.started?this.uA():this.ne()},t.prototype.xd=function(){var t=this;this.ra.register(xa,(function(n){t.qw.setWhitelistedElementsSelector(n)})),this.ra.register(_a,(function(n){t.Uw.setMaskedElementSettingsFromCommand(n)})),this.ra.register(Pa,(function(n){var i,r;null===(i=t.le)||void 0===i||i.setEncryptionSelectors(n),null===(r=t.oA)||void 0===r||r.addSelector(n)}))},t}(),Wv=function(){function t(t,n,i,r,e,s,o){this.ph=t,this.ra=n,this.Uw=i,this.ea=r,this.aa=e,this.qw=s,this.FS=o,this.jw=new La(this.ea,this.Uw,this.qw,void 0,this.aa)}return t.prototype.init=function(){this.aa.init(),this.xd()},t.prototype.onStartAnalytics=function(){this.yp()},t.prototype.onAfterArtificialPageView=function(){this.cA(),this.yp()},t.prototype.onStopAnalytics=function(){this.cA()},t.prototype.yp=function(){this.jw.start(),this.FS.setSensitiveStatus({started:!0,useAnonymization:this.aa.shouldUseAnonymization()}),this.ph.emitSensitiveStatusChange()},t.prototype.cA=function(){this.jw.stop(),this.FS.setSensitiveStatus({started:!1,useAnonymization:this.aa.shouldUseAnonymization()}),this.ph.emitSensitiveStatusChange()},t.prototype.xd=function(){var t=this;this.ra.register(xa,(function(n){t.qw.setWhitelistedElementsSelector(n),t.ph.emitSensitiveStatusChange()})),this.ra.register(_a,(function(n){t.Uw.setMaskedElementSettingsFromCommand(n),t.ph.emitSensitiveStatusChange()}))},t}(),$v=function(){function t(t,n,i,r,e,s,o,u,c){var h=this;this.$S=t,this.ph=n,this.Rt=i,this.LS=r,this.HS=e,this.ra=s,this.Zt=o,this.Xs=u,this.FS=c,this.lp=function(){h.ra.start(),h.fp.start()}}return t.prototype.start=function(){var t,n,i,r,e,s,o,u,c,h,a,f,l,v=this;this.Xs.schedule((function(){if(e=new Pl,s=new Ca((function(){})),f=new Ia,v.Zt.isInIframeContext()){var t=new Yv(v.ra,e,s,f,l,undefined);t.init(),v.$S.addListener(t)}if(i=new Qn,h=new wl(i),a=new Jf(window.location,h),v.Zt.isInWebViewContext()){var n=new av(v.Rt),r=new pa,o=new wa(n,v.Rt,a,r),u=new Wv(v.ph,v.ra,e,s,o,f,v.FS);u.init(),v.$S.addListener(u)}})),this.Xs.schedule((function(){t=new ml(hn,v.Rt),n=new Ah(t),r=new cv(v.Rt,t,n,v.LS,v.Zt,v.$S,v.ra,new Kh(Ji),v.FS),v.$S.addListener(r)})),na.isRecordingSupported()&&this.Xs.schedule((function(){var t=new bv(v.Rt,i,s,v.ph,v.LS,v.HS,v.ra,v.$S,v.Zt,a,v.FS,h,l);v.ph.addListener(t),v.$S.addListener(t),t.init()})),this.Xs.schedule((function(){c=new Jh(v.Rt);var n=new gl(t),i=new Sl(t),r=new bl(t),e=new Al;u=new Xf(n,i,r,e),o=new ev(c,u,v.LS,v.HS,v.FS)})),this.Xs.schedule((function(){u.addListener(o),v.$S.addListener(o),v.ph.addListener(o),v.ph.addListener(r)})),this.Xs.schedule((function(){var t;if(v.Zt.isInWebViewContext()){var n=new Pv;v.Rb=new Mv(n),t=new Bv(v.ra,v.LS,c,v.Rb,v.$S,u,v.Rt)}else t=new Jv(v.ra,v.LS,c);v.$S.addListener(t),t.init()})),this.Xs.schedule((function(){o.init(),r.init()})),this.Xs.schedule((function(){if(v.Zt.isInWebViewContext()){var t=new Rv,n=new Xh(i,a),r=new dh,e=new $h(r,h),s=new Ba(i),o=new Ov(a,n,e,s),u=new Tv(i,new _u(i,null,null),t,o,v.Rb,v.ph,a,r),c=new Av(v.LS,u);c.init(),v.ph.addListener(c),v.$S.addListener(c)}else{var f=new rv(v.LS);v.ph.addListener(f)}})),this.fp=new Eh,this.Xs.schedule((function(){v.fp.onLoad((function(){v.ph.emitStartTracking()})),v.lp()}))},t}(),Xv=function(t){function n(n,i,r){void 0===r&&(r=500);var e=t.call(this,2500)||this;return e.$S=n,e.Rt=i,e.hA=r,e.aA=!1,e.fA=void 0,e.lA=!0,e}return vn(n,t),n.prototype.onStart=function(){this.vA()},n.prototype.onStop=function(){this.buffer.reset(),this.dA&&window.csClearInterval(this.dA)},n.prototype.sendToParent=function(t,n){var i;if(this.yA())null===(i=this.wA)||void 0===i||i.call(this,t,n);else if(this.pA(t)){var r=this.buildChildBaseMessage(t,n);this.buffer.addMessage(r)}},n.prototype.yA=function(){return this.aA&&this.lA},n.prototype.pA=function(t){return!this.aA||t===Li.Commands},n.prototype.onWebViewEvent=function(t){this.wA=t},n.prototype.setAnalyticsStatus=function(t){this.lA=t,this.lA&&this.mA()},n.prototype.sendAllMessagesFromBuffer=function(){var t,n,i,r=this.buffer.getMessages();try{for(var e=gn(r),s=e.next();!s.done;s=e.next()){var o=s.value;null===(i=this.wA)||void 0===i||i.call(this,o.type,o.content)}}catch(n){t={error:n}}finally{try{s&&!s.done&&(n=e.return)&&n.call(e)}finally{if(t)throw t.error}}this.buffer.reset()},n.prototype.mA=function(){var t,n,i;if(this.aA){var r=this.buffer.getMessages();try{for(var e=gn(r),s=e.next();!s.done;s=e.next()){var o=s.value;o.type===Li.Commands&&(null===(i=this.wA)||void 0===i||i.call(this,o.type,o.content))}}catch(n){t={error:n}}finally{try{s&&!s.done&&(n=e.return)&&n.call(e)}finally{if(t)throw t.error}}this.buffer.reset()}},n.prototype.buildChildBaseMessage=function(t,n){return{type:t,content:n}},n.prototype.vA=function(){var t=this;this.aA=Ev.isCSJavascriptBridgeDefined(),this.aA?this.gA():this.dA=window.csSetInterval((function(){t.aA=Ev.isCSJavascriptBridgeDefined(),t.aA&&(t.gA(),window.csClearInterval(t.dA))}),this.hA)},n.prototype.gA=function(){this.SA(),this.fA=Ev.getBridgeVersion(),null===this.fA?this.sendAllMessagesFromBuffer():this.fA>=2?(this.bA(),Ev.notifyIsReadyForTracking()):Ji.warn("bridge version ".concat(this.fA," is not supported"))},n.prototype.SA=function(){var t={message:csJSON.stringify(this.Rt),errorCode:"TAG_CONFIGURATION",level:Cn.critical};Ev.sendLog(t)},n.prototype.bA=function(){this.$S.emitStopAnalytics()},n}(nv),Kv=function(){function t(){this.Kb=null}return t.prototype.getRecordingContext=function(){return null===this.Kb?{isRecording:!1}:this.Kb},t.prototype.setRecordingContext=function(t){this.Kb=t},t}(),Zv=function(t){function n(n,i){var r=t.call(this)||this;return r.ae=n,r.LS=i,r}return vn(n,t),n.prototype.onStart=function(){var t=this;this.ae.subscribe(n.Qe,(function(n){return t.Fe(n)}))},n.prototype.onStop=function(){this.ae.unsubscribe(n.Qe)},n.prototype.Fe=function(t){this.isStarted&&this.LS.sendToParent(Li.ApiError,t)},n.Qe="ChildApiErrorsService",n}(zr),Qv=function(t){function n(n,i){var r=t.call(this)||this;return r.ae=n,r.LS=i,r}return vn(n,t),n.prototype.onStart=function(){var t=this;this.ae.subscribe(n.Qe,(function(n){return t.Fe(n)}),{detailedEvent:!0})},n.prototype.onStop=function(){this.ae.unsubscribe(n.Qe)},n.prototype.Fe=function(t){this.isStarted&&this.LS.sendToParent(Li.DetailedApiError,t)},n.Qe="ChildDetailedApiErrorsService",n}(zr),td=function(){function t(t,n,i){this.Rt=t,this.LS=n,this.DS=i}return t.prototype.init=function(){var t,n,i=new Qn;n=(null===(t=this.Rt.apiErrors.collectionRules)||void 0===t?void 0:t.length)?new Na(this.Rt.apiErrors,i):new ka(this.Rt.apiErrors,i),this.ae=new Wh(new ga,new Sa,n),this.AA=new Zv(this.ae,this.LS),this.EA=new Qv(this.ae,this.LS),this.ae.init(),this.xd()},t.prototype.xd=function(){this.DS.register(ra)},t.prototype.onStartTracking=function(){this.AA.start()},t.prototype.onParentRecordingContextChange=function(t){t.isRecording?this.EA.start():this.EA.stop()},t.prototype.onOptout=function(){this.AA.stop(),this.EA.stop()},t.prototype.onStartAnalytics=function(){this.AA.start()},t.prototype.onStopAnalytics=function(){this.AA.stop()},t}(),nd=function(t){function n(n,i){var r=t.call(this)||this;return r.Dd=n,r.LS=i,r}return vn(n,t),n.prototype.onStart=function(){var t=this;this.Dd.subscribe(n.Qe,(function(n){return t.Fe(n)}))},n.prototype.onStop=function(){this.Dd.unsubscribe(n.Qe)},n.prototype.Fe=function(t){this.isStarted&&this.LS.sendToParent(Li.JavascriptError,t)},n.Qe="ChildJavaScriptErrorsService",n}(zr),id=function(){function t(t,n,i){this.Rt=t,this.LS=n,this.DS=i}return t.prototype.init=function(){var t=new zh;this.RA=new nd(t,this.LS),this.xd()},t.prototype.onStartTracking=function(){this.RA.start()},t.prototype.onOptout=function(){this.RA.stop()},t.prototype.onStartAnalytics=function(){this.RA.start()},t.prototype.onStopAnalytics=function(){this.RA.stop()},t.prototype.xd=function(){this.Rt.jsCustomErrorsEnabled&&!this.Rt.customErrors.enabled&&this.DS.register(oa)},t}(),rd=function(){function t(t,n,i){this.Rt=t,this.LS=n,this.DS=i}return t.prototype.init=function(){this.xd()},t.prototype.onStartTracking=function(){var t;null===(t=this.OA)||void 0===t||t.start()},t.prototype.onOptout=function(){var t;null===(t=this.OA)||void 0===t||t.stop()},t.prototype.onStartAnalytics=function(){var t;null===(t=this.OA)||void 0===t||t.start()},t.prototype.onStopAnalytics=function(){var t;null===(t=this.OA)||void 0===t||t.stop()},t.prototype.xd=function(){this.DS.register(oa)},t}(),ed=function(){function t(){this.TA={started:!1,useAnonymization:!0}}return t.prototype.getSensitiveStatus=function(){return this.TA},t.prototype.setSensitiveStatus=function(t){this.TA=t},t.prototype.getElementSensitiveStatus=function(t){return this.TA.started?Dr.isMaskedElement(t)||Dr.isMaskedElementChild(t)?Kc.MASKED:Ks.shouldEncrypt(t)?Kc.ENCRYPTED:this.TA.useAnonymization?Is.isWhitelistedElement(t)?Kc.CAPTURED:Kc.ANONYMIZED:Kc.CAPTURED:Kc.ANONYMIZED},t}(),sd=function(){function t(t,n,i){this.Rt=t,this.Zt=n,this.Xs=i}return t.prototype.init=function(){var t,n,i,r,e,s,o,u,c=this;_h.isSupported()&&_h.setDigestSalt(this.Rt.projectId.toString()),this.Xs.schedule((function(){t=new Ll(c.Xs),n=new Dl,i=new Kv,r=new ed;var o=[Uf.UXA];c.Zt.isInWebViewContext()?(window.cs_wvt=window.cs_wvt||[],csArray.prototype.push.call(o,Uf.WVT),e=new Xv(n,c.Rt)):e=new iv(c.Rt,t,i,r,n),s=new qf(o)})),this.Xs.schedule((function(){o=new Ql(s,e),u=new Zl(o)})),this.Xs.schedule((function(){u.init()})),this.Xs.schedule((function(){0})),this.Xs.schedule((function(){if(c.Rt.apiErrors.enabled){var i=new td(c.Rt,e,o);i.init(),t.addListener(i),n.addListener(i)}if(c.Rt.jsErrorsEnabled){var r=new id(c.Rt,e,o);r.init(),t.addListener(r),n.addListener(r)}if(c.Rt.customErrors.enabled){var s=new rd(c.Rt,e,o);s.init(),t.addListener(s),n.addListener(s)}})),this.Xs.schedule((function(){t.addListener(u)})),this.Xs.schedule((function(){t.emitInitTracking()})),this.Xs.schedule((function(){new $v(n,t,c.Rt,e,i,s,c.Zt,c.Xs,r).start()}))},t}(),od=function(){function t(t,n,i){this.Rt=t,this.Zt=n,this.Tt=i}return t.prototype.start=function(){var t,n,i,r,e;if(!window.UXAnalytics){window.UXAnalytics={};var s=new Ts(!!(null===(t=this.Rt.taskSchedulerOptions)||void 0===t?void 0:t.enabled),null===(n=this.Rt.taskSchedulerOptions)||void 0===n?void 0:n.maxProcessingTime,null===(i=this.Rt.taskSchedulerOptions)||void 0===i?void 0:i.waitDuration),o=new Ki(this.Zt,this.Rt);o.init();var u=new Qi(this.Rt,o);if(this.Zt.isTopWindowTracker()&&u.canTrack()){if((null===(r=window.CSProtectnativeFunctionsLogs)||void 0===r?void 0:r.Warning)&&Ji.warn("protectNativeFunctions failed: ".concat(window.CSProtectnativeFunctionsLogs.Warning)),null===(e=window.CSProtectnativeFunctionsLogs)||void 0===e?void 0:e.Critical)return void Ji.error("protectNativeFunctions failed: ".concat(window.CSProtectnativeFunctionsLogs.Critical));var c=new Ll(s),h=new _l(this.Rt,o,this.Tt,s,c);this.Rt.isQuotaEnabled()?h.initWithQuota():h.init()}else if(!this.Zt.isTopWindowTracker()&&u.canTrackInChild()){new sd(this.Rt,this.Zt,s).init()}var a=csString.prototype.indexOf.call(window.location.href,"csDebug=1")>-1;window.UXAnalytics={Sensitive:{isNodeSensitive:function(t){return Dr.isMaskedElement(t)||Dr.isMaskedElementChild(t)},isAttributeSensitive:function(t,n){return Dr.isMaskedAttribute(t,n)},getSensitiveAttributes:function(t){return en(t.attributes,(function(n){return Dr.isMaskedAttribute(t,n.name)}))}},Console:{warn:function(t){a&&console.warn("cs.tracking.warning",t)},error:function(t){a&&console.error("cs.tracking.error",t)}},Version:ti},!window.CSFrameCommunication&&xl.isActivable()&&(window.CSFrameCommunication=xl,xl.waitForConnection())}},wn([Xt("main.start"),xt("main.start")],t.prototype,"start",null),t}(),ud=function(){function t(){}return t.prototype.send=function(t,n,i){void 0===i&&(i=Cn.warn);var r={message:t,errorCode:n,level:i};Ev.sendLog(r)},t}(),cd=function(){function t(t,n,i){this.ve=t,this.Ot=n,this.NA=i,this.rh=[],this.ft=null,this.kA=ni().v}return t.prototype.CA=function(){0!==this.rh.length&&(this.ve.send({m:csArray.prototype.map.call(this.rh,(function(t){return{n:t.name,p:t.parameter,v:t.value}})),p:this.Ot.anonymizePII(window.location.pathname),pid:this.NA,v:this.kA}),this.rh=[])},t.prototype.push=function(n){var i=this;csArray.prototype.push.call(this.rh,n),this.ft&&(csClearTimeout(this.ft),this.ft=null),this.rh.length>=t.MAX_QUEUE_SIZE?this.CA():this.ft=window.csSetTimeout((function(){i.CA(),i.ft=null}),t.DEBOUNCE_INTERVAL)},t.DEBOUNCE_INTERVAL=5e3,t.MAX_QUEUE_SIZE=100,t}();function hd(){var t=new Pn(window.CS_CONF);window._uxa=window._uxa||[],t.processOptionOverrides(window._uxa);var n=new _n(window,t);n.init();var i=new Hi;if(_t=Ji,Yi=!0,Ji.computeIsActive(t.validationRate),n.isTopWindowTracker()){var r=new Oi(t,i);Ji.setStrategy(r)}else if(n.isInIframeContext()){var e=new qi(t);Ji.setStrategy(e)}else if(n.isInWebViewContext()){var s=new ud;Ji.setStrategy(s)}Ft(),function(t){var n=t.validationRate/10,i=Tn.boolean(n);if("staging"===t.environment||i)try{var r=il.create(Ji.warn),e=new er(r).create(t.getMetricsUri(),!0),s=new Qn,o=new cd(e,s,t.projectId);jn.setGlobalService(o)}catch(t){Ji.warn("Error initializing metrics: ".concat(t.message))}}(t),new od(t,n,i).start()}window.CSCurrentScript=document.currentScript,csSetTimeout((function(){try{t=hd,(null===document||void 0===document?void 0:document.prerendering)?document.addEventListener("prerenderingchange",t,{once:!0}):t()}catch(t){}var t}))}();