cdnssl.clicktale.net Open in urlscan Pro
2600:9000:2490:e600:c:7c62:1240:93a1  Public Scan

URL: http://cdnssl.clicktale.net/www43/ptc/e802b0fb-4da3-4648-a335-e31c353417bf.js
Submission: On March 21 via manual from US — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

var CS_CONF={"projectId":2351,"status":1,"hostnames":["fidelity.com","fmrpi.az1.qualtrics.com","qualtrics.com"],"crossDomainTracking":0,"crossDomainSingleIframeTracking":0,"consentRequired":1,"allowSubdomains":1,"visitorCookieTimeout":34164000000,"sampleRate":25,"replayRecordingRate":50,"validationRate":10,"lastTrackingDraw":1709223144,"trackerDomain":"c.clicktale.net","recordingDomain":"r.clicktale.net","useMalkaPipeline":1,"ed":"l.clicktale.net/log/web","eMerchandisingEnabled":0,"mouseMoveHeatmapEnabled":1,"autoInsightsEnabled":1,"jsErrorsEnabled":1,"customErrorsEnabled":0,"jsCustomErrorsEnabled":0,"apiErrorsEnabled":1,"customHashIdEnabled":1,"recordingEncryptionEnabled":0,"recordingEncryptionPublicKey":null,"recordingEncryptionPublicKeyId":0,"secureCookiesEnabled":0,"triggerSessionReplayEnabled":0,"triggerSessionReplayRegex":null,"dynamicIdRegex":"(^button-[\\w-]+)|(^panel-[\\w-]+)","whitelistedAttributes":[],"replayRecordingUnmaskedUrlRegex":"^https:\\/\\/((research2(xq1)?\\.fidelity\\.com\\/pi\\/((stock-screener.*)|(etf-screener)))|(myguidance(xq1)?\\.fidelity\\.com\\/ftgw\\/pna\\/public\\/(.*))|(www(xq1)?\\.fidelity\\.com\\/.*)|(digital(xq1)?\\.fidelity\\.com\\/((stgw\\/digital\\/planning\\/retirement\\/retirement-decision-guide(\\/entry\\/v2\\/.*|\\/pre-medicare\\/.*))|(prgw\\/digital\\/(msw\\/((overview|details)\\/.*)))|(ftgw\\/digital\\/(pathway|research-sdp|(pep\\/((review\\/account-summary)|(onboarding\\/suitability))))).*))|(screener(xq1)?\\.fidelity\\.com\\/ftgw\\/etf\\/snapshot\\/snapshot\\.jhtml)|(fundresearch(xq1)?\\.fidelity\\.com\\/)|(^communications\\.fidelity\\.com\\/pi*))\\/{0,1}(\\?[^\\/]*)?$","replayRecordingUnmaskedUrlRegexRules":[],"replayRecordingMaskedUrlRegexRules":[],"replayRecordingMaskedUrlRegex":null,"anonymisationMethod":"replayRecordingUnmaskedUrlRegex","tagDeploymentMode":"DUAL_COLLECTION","experimental":null,"iframesTracking":1,"textVisibilityEnabled":0,"cookielessTrackingEnabled":0,"malkaUrlEnabled":0,"malkaEtrEnabled":1,"pathComputationRules":{"reliableSelectors":[],"uniqueAttributes":[],"uniqueCssSelectors":[]},"asyncSerializerEnabled":1,"pendingInactivityTimeout":5000,"accessibilityEnabled":0,"uxaDomain":"app.contentsquare.com","webviewsTrackingEnabled":0,"useStaticResourceManager":1,"performanceTimingOptions":{"withResource":false,"withNavigation":false},"replayConsentRequiredForSession":0,"apiErrors":{"validCustomHeaders":[],"plainCustomHeaders":[],"validUrls":[],"configurableApiErrorRules":[],"collectStandardHeaders":0,"collectQueryParam":0,"collectRequestBody":0,"collectResponseBody":0,"collectionRules":[]},"displayAdOptions":null,"taskSchedulerOptions":{"enabled":1},"malkaQuotaServiceDomain":"q-aus1.clicktale.net","malkaRecordingDomain":"k-aus1.clicktale.net","staticResourceManagerDomain":"srm.bf.contentsquare.net","dualCollectionTagDomain":"clicktale.net","ptcDomain":"cdnssl.clicktale.net","ptcPartition":"www43","ptcGuid":"e802b0fb-4da3-4648-a335-e31c353417bf"};
var CS_INTEGRATIONS_CONF = {"adobe-target":{},"qualtrics":{"settings":[]}};
/* integration-adobe-target 3.6.5 */
!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-cap","version":"3.6.5","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 a(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())}})}}t.r(n);var o,u=t(0),c=u.name,p=u.version,s=function(e){var n,t,i,a;if(r((function(){var r=e.name;i=e.version;var o=r.replace("@contentsquare/integration-","");n=o+"-"+i;var u="-contentsquare";a=new RegExp(u+"$").test(o),t=o.replace(/-contentsquare([^-contentsquare]*)$/,"$1"),a||(u="-cap",a=new RegExp(u+"$").test(o),t=o.replace(/-cap([^-cap]*)$/,"$1"))}),"Shared-Function-readPackageJSON"),a)return{snippetBuildName:n,parameterName:t,snippetVersion:i}}(u);s&&(o=s.parameterName,c=s.snippetBuildName,p=s.snippetVersion),r((function(){window._uxa=window._uxa||[],CS_CONF.integrations=CS_CONF.integrations||[],CS_CONF.integrations.push("Adobe Target - v"+p);var e=function(e,n){if(i(window.CS_INTEGRATIONS_CONF)&&i(window.CS_INTEGRATIONS_CONF[e]))return window.CS_INTEGRATIONS_CONF[e][n]}(o,"customObjectName");e&&(e=e.trim());var n=[];function t(e){for(var t=0;t<e.length;t++){var r=e[t],i="",a="";r.CampaignName&&r.RecipeName?(i=r.CampaignName,a=r.RecipeName):r.campaign&&r.experience?(i=r.campaign,a=r.experience):r["activity.name"]&&r["experience.name"]&&(i=r["activity.name"],a=r["experience.name"]),n.length&&n.indexOf(i+"~~~~"+a)>-1&&(i="",a=""),i&&a&&(n.push(i+"~~~~"+a),u=a,o="AB_AT_"+(o=i),_uxa.push(["trackDynamicVariable",{key:o,value:u}]))}var o,u}function u(n){e||(e="ttMETA"),function(e,n,t){t=t||window;var r=e.split(".");if(1==r.length)a(e,n,t);else{var i=t,o=0;const e=function(){i=o>0?i[r[o-1]]:window,++o>=r.length?a(r[o-1],n,i):a(r[o-1],e,i)};e()}}(e,(function(){setTimeout((function(){r((function(){t(window[e])}),c)}),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(){u()}),c)}])}),c)}]);/* integration-qualtrics 2.19.1 */
!function(e){var t={};function n(i){if(t[i])return t[i].exports;var a=t[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(i,a,function(t){return e[t]}.bind(null,a));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e){e.exports=JSON.parse('{"name":"@contentsquare/integration-qualtrics-cap","version":"2.19.1","scripts":{"build:snippet":"webpack"}}')},function(e,t,n){"use strict";function i(e,t){try{e()}catch(e){window._uxa=window._uxa||[],_uxa.push(["logSnippetError",t,e.message])}}function a(e){return"object"==typeof e&&null!==e}function o(e,t){t||(t="="),e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var n=new RegExp("[\\?&=]"+e+t+"([^&#]*)").exec(location.search);return null===n?"":decodeURIComponent(n[1].replace(/\+/g," "))}n.r(t);var r,s=n(0),c=s.name,u=s.version,d=function(e){var t,n,a,o;if(i((function(){var i=e.name;a=e.version;var r=i.replace("@contentsquare/integration-","");t=r+"-"+a;var s="-contentsquare";o=new RegExp(s+"$").test(r),n=r.replace(/-contentsquare([^-contentsquare]*)$/,"$1"),o||(s="-cap",o=new RegExp(s+"$").test(r),n=r.replace(/-cap([^-cap]*)$/,"$1"))}),"Shared-Function-readPackageJSON"),o)return{snippetBuildName:t,parameterName:n,snippetVersion:a}}(s);d&&(r=d.parameterName,c=d.snippetBuildName,u=d.snippetVersion),i((function(){window._uxa=window._uxa||[],CS_CONF.integrations=CS_CONF.integrations||[],CS_CONF.integrations.push("Qualtrics - v"+u);var e=!1;window.self!=window.top&&(e=CS_CONF.iframesTracking);var t=function(e,t){if(a(window.CS_INTEGRATIONS_CONF)&&a(window.CS_INTEGRATIONS_CONF[e]))return window.CS_INTEGRATIONS_CONF[e][t]}(r,"settings"),n=!1,s=1;t&&(t.indexOf("sendArtificialPageviews")>-1&&(n=!0),t.indexOf("setReplayLinkToFirstPV")>-1&&(s=0));var d=!1;function l(e,t,i,a){e="FB_QT_"+e,_uxa.push(["trackDynamicVariable",{key:e,value:t}]),d&&"etr"===i&&_uxa.push(["trackEventTriggerRecording","@ETS@"+e]),a&&n&&_uxa.push(["trackPageview",window.location.pathname+"?"+a])}function p(){for(var e=0,t=document.domain,n=t.split("."),i="_cs_tld"+(new Date).getTime();e<n.length-1&&-1==document.cookie.indexOf(i+"="+i);)t=n.slice(-1-++e).join("."),document.cookie=i+"="+i+";domain="+t+";SameSite=None;Secure";return document.cookie=i+"=;expires=Thu, 01 Jan 1970 00:00:01 GMT;domain="+t+";",t}function f(e){for(var t=e+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){for(var a=n[i];" "==a.charAt(0);)a=a.substring(1,a.length);if(0===a.indexOf(t))return a.substring(t.length,a.length)}return""}function _(){var e={contentsquare_integration:f("_cs_s"),vendor:"qualtrics"};window.opener?window.opener.postMessage(e,"*"):self!=top&&window.top.postMessage(e,"*")}function S(e){return e.toString().replace(/[^\w. ]/gi,(function(e){return"&#"+e.charCodeAt(0)+";"}))}if(window.Qualtrics&&Qualtrics.SurveyEngine&&"function"==typeof Qualtrics.SurveyEngine.addOnPageSubmit){if(!e){var g="";if(window._cs_integration_qualtrics_postmessage_csid||window.ClickTaleSettings&&ClickTaleSettings.PTC&&ClickTaleSettings.PTC.IntegrationHandler&&ClickTaleSettings.PTC.IntegrationHandler.UserValues)window._cs_integration_qualtrics_postmessage_csid?g=_cs_integration_qualtrics_postmessage_csid:ClickTaleSettings.PTC.IntegrationHandler.UserValues&&(g=ClickTaleSettings.PTC.IntegrationHandler.UserValues);else{var m=document.location.search;m.indexOf("CSID=")>-1?g=o("CSID"):CS_CONF.ptcDomain&&m.indexOf("CT_UID=")>-1?g=o("CT_UID"):window._cs_integration_qualtrics_csid&&(g=decodeURIComponent(_cs_integration_qualtrics_csid))}if(g&&"null"!=g){var v=g.split("~"),y=v[0],b=v[1],I=v[2],C=v[3],D=p();y&&b&&I&&(C?document.cookie="_cs_optout="+C+";domain="+D+";path=/;SameSite=None;Secure":(document.cookie="_cs_optout=;domain="+D+";path=/;expires=Thu, 01-Jan-1970 00:00:01 GMT;SameSite=None;Secure",document.cookie="_cs_optout=;path=/;expires=Thu, 01-Jan-1970 00:00:01 GMT;SameSite=None;Secure",document.cookie="_cs_optout=;domain=."+document.location.host+";path=/;expires=Thu, 01-Jan-1970 00:00:01 GMT;SameSite=None;Secure"),document.cookie="_cs_id="+y+";domain="+D+";path=/;SameSite=None;Secure",document.cookie="_cs_s="+b+";domain="+D+";path=/;SameSite=None;Secure",document.cookie="_cs_c="+I+";domain="+D+";path=/;SameSite=None;Secure")}}var w="";function h(t){if(!e){var n=f("_cs_s");if(n&&n.indexOf(".T.")>-1)var i=setInterval((function(){(n=f("_cs_s"))&&-1===n.indexOf(".T.")&&(clearInterval(i),_())}),500);else _()}setTimeout((function(){if(d=_uxa.push(["isRecording"])){var e=function(e,t,n){e||(e="missingFromDynamicSnippet");var i=t;if(isNaN(i)&&(t=0),n){var a=n.sessionKey.split("."),o=n.projectId,r=a[0],s=a[1],c=n.pageNumber,u=c-t;return t>=c&&(u=c),0===i&&(u=1),"https://app.contentsquare.com/quick-playback/index.html?pid="+o+"&uu="+r+"&sn="+s+"&pvid="+u+"&recordingType=cs&vd="+e}}("qt",s,t);if(e&&Qualtrics.SurveyEngine){var n=Qualtrics.SurveyEngine,i="";CS_CONF.ptcDomain&&(i="ClicktaleSpecificRecording",!0===w&&"function"==typeof n.setJSEmbeddedData?n.setJSEmbeddedData(i,e):!1===w&&"function"==typeof n.setEmbeddedData&&n.setEmbeddedData(i,e)),i="ContentsquareReplayLink",!0===w&&"function"==typeof n.setJSEmbeddedData?n.setJSEmbeddedData(i,e):!1===w&&"function"==typeof n.setEmbeddedData&&n.setEmbeddedData(i,e)}}}),500)}if(window.Page?w=!1:window.q&&(w=!0),_uxa.push(["afterPageView",function(e){i((function(){h(e)}),c)}]),window.addEventListener("Contentsquare_QT_Integration_Dispatcher",(function(e){i((function(){if(e&&"object"==typeof e.detail&&"string"==typeof e.detail.key&&"string"==typeof e.detail.value){var t=e.detail.key,n=e.detail.value;"FB_QT_"===t.slice(0,6)&&(t=t.slice(6)),l(t,n)}}),c)})),!1===w&&"function"==typeof Page.getSessionId&&Page.runtime&&Page.runtime.ED&&Page.runtime.ED.SurveyID&&Page._questionRenderers&&Qualtrics.SurveyEngine.QuestionInfo){var T=Page.runtime.ED.SurveyID,k=Page.getSessionId().replace("FS_","R_");l("Feedback Displayed","Survey ID : "+T);var O=!1,x=!1,N=!1,E=[];function P(){for(var e=Qualtrics.SurveyEngine.QuestionInfo,t=Object.keys(e),n=0;n<t.length;n++){var i=Qualtrics.SurveyEngine.QuestionInfo[t[n]].Selector;if(i&&"TB"!=i){x=!0;break}}}function F(){i((function(){P(),O||(O=!0,l("Feedback Accepted","Survey ID : "+T,0,"cs_qualtrics=feedback_accepted_"+T)),setTimeout((function(){x&&!N&&!1===Page.runtime.FailedValidation&&(N=!0,l("Feedback Submitted","Survey ID : "+T,"etr","cs_qualtrics=feedback_submitted_"+T),l("Feedback Response ID",k))}),2e3);for(var e=Page._questionRenderers,t=Object.keys(e),n=0;n<t.length;n++){var i=e[t[n]].runtime;if(i&&i.Selector&&i.QuestionText&&i.Displayed){var a=i.QuestionText;if("NPS"===i.Selector&&i.Selected){var o=parseInt(i.Selected);E.includes(t[n]+"~~~"+o)||(E.push(t[n]+"~~~"+o),l("NPS Rating - "+t[n]+" - "+T+" - "+a,o))}if("STAR"===i.Selector)for(var r=i.Choices,s=Object.keys(r),c=0;c<s.length;c++){var u=r[s[c]].Display;if(r[s[c]].Value){var d=parseInt(r[s[c]].Value);E.includes(t[n]+" ("+(c+1)+")~~~"+d)||(E.push(t[n]+" ("+(c+1)+")~~~"+d),l("Star Rating - "+t[n]+" ("+(c+1)+") - "+T+" - "+u,d))}}if("SAVR"===i.Selector||"SAHR"===i.Selector)if((g=i.Selected)&&i.Choices)(m=i.Choices[g].ID)&&(E.includes(t[n]+"~~~AID"+m)||(E.push(t[n]+"~~~AID"+m),l(t[n]+" - "+T,"AID"+m)));if("MAVR"===i.Selector&&i.Choices){var p=i.Choices,f=Object.keys(p);for(c=0;c<f.length;c++){if(p[f[c]].Selected)(m=p[f[c]].ID)&&(E.includes(t[n]+"~~~AID"+m)||(E.push(t[n]+"~~~AID"+m),l(t[n]+" - "+T,"AID"+m)))}}if("Likert"===i.Selector&&i.Choices){var _=i.Choices,S=Object.keys(_);for(c=0;c<S.length;c++){var g,m;if(g=_[S[c]].Selected)if(!E.includes(t[n]+"~~~"+g))(m=_[S[c]].ID)&&(E.push(t[n]+"~~~"+g),l(t[n]+" - "+T+" - AID"+m,g))}}}}setTimeout((function(){document.getElementById("NextButton")||l("Feedback Completed","Survey ID : "+T,0,"cs_qualtrics=feedback_completed_"+T)}),2e3),Qualtrics.SurveyEngine.addOnPageSubmit(F)}),c)}P(),Qualtrics.SurveyEngine.addOnPageSubmit(F)}else if(!0===w&&q.appData&&q.appData.setup&&q.appData.setup.survey&&q.appData.setup.survey.id&&q.appData.session&&q.appData.session.id){T=q.appData.setup.survey.id,k=q.appData.session.id.replace("FS_","R_");l("Feedback Displayed","Survey ID : "+T);N=!1;function F(){N||(N=!0,l("Feedback Submitted","Survey ID : "+T,"etr","cs_qualtrics=feedback_submitted_"+T),l("Feedback Response ID",k)),setTimeout((function(){document.getElementById("next-button")||l("Feedback Completed","Survey ID : "+T,0,"cs_qualtrics=feedback_completed_"+T)}),2e3),Qualtrics.SurveyEngine.addOnPageSubmit(F)}Qualtrics.SurveyEngine.addOnPageSubmit(F)}}else if(!e){function R(){var e=f("_cs_id"),t=f("_cs_c"),n=f("_cs_optout");return e+"~"+Q+"~"+t+"~"+n}var Q;function A(e){function t(){var e=R();localStorage.setItem("CSID",e),CS_CONF.ptcDomain&&(localStorage.setItem("CT_UID",e),sessionStorage.setItem("CT_UID",e)),sessionStorage.setItem("CSID",e)}if((Q=f("_cs_s"))&&Q.indexOf(".T.")>-1)var n=setInterval((function(){(Q=f("_cs_s"))&&-1===Q.indexOf(".T.")&&(clearInterval(n),t())}),500);else t()}function h(e){A()}window.addEventListener("message",(function(e){var t=e.data;t&&(t.contentsquare_integration&&"qualtrics"===t.vendor&&i((function(){const e=t.contentsquare_integration,n=e.split("."),i=Number(n[n.length-1]),a=new Date(i).toUTCString();if(window.CS_CONF&&CS_CONF.allowSubdomains){const t=p();document.cookie="_cs_s="+S(e)+";expires="+a+";domain="+t+";path=/"}else document.cookie="_cs_s="+S(e)+";expires="+a+";path=/";A()}),c),t.message&&"Contentsquare_QT_Integration_Ready"===t.message&&i((function(){var t={message:"Contentsquare_QT_Integration_Launch",user_values:R()};e.source.postMessage(t,"*")}),c))})),_uxa.push(["afterPageView",function(e){i((function(){h()}),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]})},o:function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r:function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{getRequestParameters:function(){return to}});var i="cs-native-frame",r={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"}};function s(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 e(t){Object.keys(r.constructors).forEach((function(n){window[r.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=window.WebKitMutationObserver||window.MutationObserver),u("csNode",r.nodeProperties,t.Node.prototype,"get"),u("csElement",r.elementProperties,t.Element.prototype,"get"),u("csElement",r.elementPropertiesValues,t.Element.prototype,"value",!1),u("csHTMLImageElement",r.imageProperties,t.HTMLImageElement.prototype,"set"),u("csEvent",r.eventProperties,t.Event.prototype,"get"),u("csNavigator",r.navigatorProperties,t.navigator,"value")}function u(t,n,i,r,e){void 0===e&&(e=!0),n.forEach((function(n){var u="string"!=typeof n&&"binding"in n,o=u?n.propertyName:n;(e||o in i)&&(window["".concat(t+o)]=s(i,o,r),u&&(window["".concat(t+o)]=window["".concat(t+o)].bind(n.binding)))}))}function o(t,n){window.CSProtectnativeFunctionsLogs=window.CSProtectnativeFunctionsLogs||{},window.CSProtectnativeFunctionsLogs[t]=n}if(function(){var t,n=0;window.csSymbol=null!==(t=window.Symbol)&&void 0!==t?t:function(t){return"$$"+t+ ++n}}(),!function(){try{var t=function(){var t=document.createElement("iframe");t.id=i,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 r=n.attachShadow({mode:"closed"});return r.innerHTML=t.outerHTML,r.firstElementChild.contentWindow}return n.innerHTML=t.outerHTML,n.firstElementChild.contentWindow}();return!!t&&(window.CSPureWindow=t,e(window.CSPureWindow),!0)}catch(t){return o("Warning","failed to copy references from pure iframe: ".concat(t.message)),!1}}())try{e(window)}catch(Fe){o("Critical","failed to copy references from window: ".concat(Fe.message))}function h(t){return c(csString.prototype.toLowerCase.call(t.localName))}function c(t){return csString.prototype.replace.call(t,/([#;&,.+*~':"!^$[\]()<=>|/%?@`{}\\ ])/g,"\\$1")}function a(t){return 1===t.nodeType}function f(t){return 3===t.nodeType}function v(t){return a(t)&&"source"===t.localName}function l(t){return null!==t&&a(t)&&"picture"===t.localName}function d(t){return a(t)&&"a"===t.localName}function w(t){return function(t){return a(t)&&"link"===t.localName}(t)&&-1!==csString.prototype.indexOf.call(t.rel,"stylesheet")}function y(t){return a(t)&&"img"===t.localName}function p(t){return a(t)&&"style"===t.localName}function m(t){return a(t)&&"input"===t.localName}function g(t){return a(t)&&"textarea"===t.localName}function A(t){return a(t)&&"script"===t.localName}function S(t){return a(t)&&"ownerSVGElement"in t}function E(t){return a(t)&&"select"===t.localName}function b(t){switch(t.nodeType){case 9:case 11:return!0;default:return!1}}function R(t){switch(t.nodeType){case 9:case 11:case 1:return!0;default:return!1}}function N(t){return 9===t.nodeType}function T(t){return b(t)&&"host"in t&&"mode"in t}function O(t){return a(t)&&!!csElementshadowRoot.apply(t)&&T(csElementshadowRoot.apply(t))}var k=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"];var C="detached";function I(t){for(var n=t,i=[n];null!==csNodeparentNode.apply(n);)n=csNodeparentNode.apply(n),csArray.prototype.push.call(i,n);return _(n)&&csArray.prototype.push.call(i,C),{ancestors:i,selectionRoot:n}}function _(t){return F.isValidElement(t)}var P=window.csElementmatches||window.csElementmatchesSelector||window.csElementmozMatchesSelector||window.csElementmsMatchesSelector||window.csElementoMatchesSelector||window.csElementwebkitMatchesSelector,M=9;function x(t,n){return!!n&&csArray.prototype.some.call(n,(function(n){return P.call(t,n)}))}var L=[/\d{4}/,/^ember\d+$/],D="@",U="data-cs-override-id",j="data-cs-dynamic-id";function H(t,n,i,r){var s=r.dynamicIdRegex||null,e=r.dynamicElementNameRegex,u=h(t);e&&(e.test(t.localName)&&(u=csString.prototype.replace.call(u,e,"$1".concat(D))));if(function(t,n){var i=q(t);return i&&csString.prototype.match.call(i,/^[\w-]+$/)&&z(U,i,n)}(t,i)){var o=q(t);return{hasUniqueIdentifier:!0,elementSelector:"".concat(u,"[").concat(U,'="').concat(o,'"]')}}var a=function(t,n,i){if(!i.uniqueAttributes)return{success:!1};for(var r=0,s=i.uniqueAttributes;r<s.length;r++){var e=s[r],u=t.getAttribute(e);if(null!==u)if(z(e,u,n))return{attributeName:e,attributeValue:u,success:!0}}return{success:!1}}(t,i,r);if(a.success)return{hasUniqueIdentifier:!0,elementSelector:"".concat(u,"#UA[").concat(a.attributeName,'="').concat(a.attributeValue,'"]')};var f=function(t,n,i){if(!i.uniqueCssSelectors)return;for(var r=0,s=i.uniqueCssSelectors;r<s.length;r++){var e=s[r];if(P.call(t,e)&&B(e,n))return e}return}(t,i,r);if(f)return{hasUniqueIdentifier:!0,elementSelector:"".concat(u,"#UCS[").concat(f,"]")};var v=function(t){var n=t.getAttribute("id");return n?c(n):n}(t);if(function(t,n,i,r){return n&&!function(t){return null!==q(t)}(t)&&!function(t,n,i){return t.hasAttribute(j)||function(t,n){var i=!1;t&&n&&(i=n.test(t));return t&&(csArray.prototype.some.call(L,(function(n){return n.test(t)}))||i)}(n,i)}(t,n,r)&&function(t,n){return t&&z("id",t,n)}(n,i)}(t,v,i,s))return{hasUniqueIdentifier:!0,elementSelector:"".concat(u,"#").concat(v)};var l=function(t,n){if(!n.reliableSelectors)return;for(var i=0,r=n.reliableSelectors;i<r.length;i++){var s=r[i];if(P.call(t,s))return s}return}(t,r);if(l){var d=function(t,n,i){if(t===C||t.nodeType===M)return 0;for(var r=0,s=n.previousElementSibling;s;)P.call(s,i)&&(r+=1),s=s.previousElementSibling;return r}(n,t,l);return{hasUniqueIdentifier:!1,elementSelector:"".concat(u,"[").concat(l,"](").concat(d,")")}}var w=function(t,n,i){if(t===C||t.nodeType===M)return 0;for(var r=i.dynamicElementNameRegex,s=!!(null==r?void 0:r.test(n.localName)),e=h(n),u=0,o=n.previousElementSibling;o;)(h(o)===e||s&&(null==r?void 0:r.test(o.localName)))&&!x(o,i.reliableSelectors)&&(u+=1),o=o.previousElementSibling;return u}(n,t,r);return{hasUniqueIdentifier:!1,elementSelector:"".concat(u,":eq(").concat(w,")")}}function q(t){return t.getAttribute(U)}function z(t,n,i){try{return 1===window.csquerySelectorAll[i.nodeType].call(i,"[".concat(t,'="').concat(n,'"]')).length}catch(t){if("SyntaxError"!==t.name)throw t}return!1}function B(t,n){try{return 1===window.csquerySelectorAll[n.nodeType].call(n,t).length}catch(t){if("SyntaxError"!==t.name)throw t}return!1}var F,V=11;function G(t,n,i){var r=csArray.prototype.shift.call(t);if(0===t.length)return W(r,i);var s=H(r,t[0],n,i),e=s.elementSelector,u=s.hasUniqueIdentifier;if(!i.fullPath&&u){var o=t[t.length-1];return"".concat(W(o,i)).concat(e)}var h=G(t,n,i);return"".concat(h?"".concat(h,">"):"").concat(e)}function W(t,n){if(t===C)return"|detached|";if(t.host){var i=I(t.host),r=i.ancestors,s=i.selectionRoot;return"".concat(G(r,s,n),"|shadow-root|")}return t.nodeType===V?"|fragment|":""}!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.getElementPath=function(r,s){void 0===s&&(s={fullPath:!1,dynamicIdRegex:null});var e=i(r);if(e===document)return"";if(!n(e))return t.INVALID_ELEMENT;var u=I(e);return G(u.ancestors,u.selectionRoot,s)},t.getElementPathAndFirstAnchorParent=function(r,s){void 0===s&&(s={fullPath:!1,dynamicIdRegex:null});var e=i(r);if(e===document)return{path:"",firstAnchorParent:null};if(!n(e))return{path:t.INVALID_ELEMENT,firstAnchorParent:null};var u=function(t){for(var n=t,i=[n],r=null;null!==csNodeparentNode.apply(n);)null===r&&d(n)&&(r=n),csArray.prototype.push.call(i,csNodeparentNode.apply(n)),n=csNodeparentNode.apply(n);return _(n)&&csArray.prototype.push.call(i,C),{firstAnchorParent:r,ancestors:i,selectionRoot:n}}(e),o=u.firstAnchorParent;return{path:G(u.ancestors,u.selectionRoot,s),firstAnchorParent:o}}}(F||(F={})),window.CSPathComputation=window.CSPathComputation||F;var J=function(t,n){return J=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])},J(t,n)};function Y(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}J(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}var X=function(){return X=Object.assign||function(t){for(var n,i=1,r=arguments.length;i<r;i++)for(var s in n=arguments[i])Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s]);return t},X.apply(this,arguments)};function K(t,n,i,r){var s,e=arguments.length,u=e<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,n,i,r);else for(var o=t.length-1;o>=0;o--)(s=t[o])&&(u=(e<3?s(u):e>3?s(n,i,u):s(n,i))||u);return e>3&&u&&Object.defineProperty(n,i,u),u}function $(t,n,i,r){return new(i||(i=Promise))((function(s,e){function u(t){try{h(r.next(t))}catch(t){e(t)}}function o(t){try{h(r.throw(t))}catch(t){e(t)}}function h(t){var n;t.done?s(t.value):(n=t.value,n instanceof i?n:new i((function(t){t(n)}))).then(u,o)}h((r=r.apply(t,n||[])).next())}))}function Z(t,n){var i,r,s,e,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return e={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function o(e){return function(o){return function(e){if(i)throw new TypeError("Generator is already executing.");for(;u;)try{if(i=1,r&&(s=2&e[0]?r.return:e[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,e[1])).done)return s;switch(r=0,s&&(e=[2&e[0],s.value]),e[0]){case 0:case 1:s=e;break;case 4:return u.label++,{value:e[1],done:!1};case 5:u.label++,r=e[1],e=[0];continue;case 7:e=u.ops.pop(),u.trys.pop();continue;default:if(!(s=u.trys,(s=s.length>0&&s[s.length-1])||6!==e[0]&&2!==e[0])){u=0;continue}if(3===e[0]&&(!s||e[1]>s[0]&&e[1]<s[3])){u.label=e[1];break}if(6===e[0]&&u.label<s[1]){u.label=s[1],s=e;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(e);break}s[2]&&u.ops.pop(),u.trys.pop();continue}e=n.call(t,u)}catch(t){e=[6,t],r=0}finally{i=s=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}([e,o])}}}Object.create;function Q(t,n,i){if(i||2===arguments.length)for(var r,s=0,e=n.length;s<e;s++)!r&&s in n||(r||(r=Array.prototype.slice.call(n,0,s)),r[s]=n[s]);return t.concat(r||Array.prototype.slice.call(n))}Object.create;var tt=Number.MAX_SAFE_INTEGER||9007199254740991;function nt(){}function it(t,n){return 0===csString.prototype.lastIndexOf.call(t,n,0)}var rt=34164e6,st={percentage:function(){return Math.floor(1e4*Math.random())/100},boolean:function(t){return this.percentage()<t},integer:function(t){return void 0===t&&(t=tt),Math.floor(Math.random()*t)}},et=csSymbol("cachedJson");var ut,ot,ht=void 0!==window.Symbol?function(t){if(t[et])return t[et];if(csArray.isArray(t)){if(0===t.length)return"[]";for(var n="["+ht(t[0]),i=1;i<t.length;i++)n+=","+ht(t[i]);return n+"]"}return t[et]=csJSON.stringify(t)}:csJSON.stringify,ct=function(){function t(t){var n,i;this.trackerDomain=t.trackerDomain,this.loggerDomain=t.ed,this.minLogLevel=t.logLevel,this.projectId=t.projectId,this.status=t.status,this.hostnames=t.hostnames,this.iframesTracking=!!t.iframesTracking,this.crossDomainTracking=!!t.crossDomainTracking,this.crossDomainSingleIframeTracking=!!t.crossDomainSingleIframeTracking,this.consentRequired=!!t.consentRequired,this.allowSubdomains=!!t.allowSubdomains,this.visitorCookieTimeout=t.visitorCookieTimeout||rt,this.sampleRate=t.sampleRate,this.replayRecordingRate=t.replayRecordingRate,this.validationRate=t.validationRate,this.lastTrackingDraw=t.lastTrackingDraw||1,this.useHttps=!0,this.eMerchandisingEnabled=t.eMerchandisingEnabled,this.mouseMoveHeatmapEnabled=t.mouseMoveHeatmapEnabled,this.jsErrorsEnabled=t.jsErrorsEnabled,this.apiErrors=X({enabled:null!==(n=t.apiErrorsEnabled)&&void 0!==n?n:0},t.apiErrors),this.customErrors=X({enabled:null!==(i=t.customErrorsEnabled)&&void 0!==i?i:0},t.customErrors),this.jsCustomErrorsEnabled=t.jsCustomErrorsEnabled,this.triggerSessionReplayEnabled=t.triggerSessionReplayEnabled,this.triggerSessionReplayRegex=this.t(t.triggerSessionReplayRegex),this.dynamicIdRegex=t.dynamicIdRegex?new RegExp(t.dynamicIdRegex):null,this.whitelistedAttributes=t.whitelistedAttributes||[],this.replayRecordingUnmaskedUrlRegex=this.t(t.replayRecordingUnmaskedUrlRegex),this.replayRecordingMaskedUrlRegex=this.t(t.replayRecordingMaskedUrlRegex),this.replayRecordingMaskedUrlRegexRules=t.replayRecordingMaskedUrlRegexRules||null,this.replayRecordingUnmaskedUrlRegexRules=t.replayRecordingUnmaskedUrlRegexRules||null,this.anonymisationMethod=t.anonymisationMethod||null,this.tagDeploymentMode=t.tagDeploymentMode,this.dualCollectionTagDomain=t.dualCollectionTagDomain||null,this.ptcDomain=t.ptcDomain||null,this.ptcGuid=t.ptcGuid||null,this.secureCookiesEnabled=!!t.secureCookiesEnabled,this.ptcSha512=t.ptcSha512||null,this.ptcSnapshotPath=t.ptcSnapshotPath||null,this.emitDebugEvents=!1,this.malkaQuotaServiceDomain=t.malkaQuotaServiceDomain||null,this.staticResourceManagerDomain=t.staticResourceManagerDomain||null,this.malkaRecordingDomain=t.malkaRecordingDomain||null,this.textVisibilityEnabled=t.textVisibilityEnabled,this.experimental=t.experimental||{},this.malkaEtrEnabled=!!t.malkaEtrEnabled,this.malkaUrlEnabled=!!t.malkaUrlEnabled,this.cookielessTrackingEnabled=t.cookielessTrackingEnabled,this.customHashIdEnabled=!!t.customHashIdEnabled,this.encryptionEnabled=!!t.recordingEncryptionEnabled,this.encryptionPublicKey=t.recordingEncryptionPublicKey||null,this.pathComputationRules=t.pathComputationRules||{},t.pathComputationRules&&""===t.pathComputationRules.dynamicElementNameRegex&&(this.pathComputationRules.dynamicElementNameRegex=null),t.pathComputationRules&&t.pathComputationRules.dynamicElementNameRegex&&(this.pathComputationRules.dynamicElementNameRegex=new RegExp(t.pathComputationRules.dynamicElementNameRegex)),this.asyncSerializerEnabled=!!t.asyncSerializerEnabled,this.encryptionPublicKeyId=t.recordingEncryptionPublicKeyId,this.pendingInactivityTimeout=t.pendingInactivityTimeout||5e3,this.accessibilityEnabled=!!t.accessibilityEnabled,this.useStaticResourceManager=!!t.useStaticResourceManager,t.taskSchedulerOptions&&(this.taskSchedulerOptions=X(X({},t.taskSchedulerOptions),{enabled:!!t.taskSchedulerOptions.enabled})),this.uxaDomain=t.uxaDomain,this.performanceTimingOptions=t.performanceTimingOptions,this.replayConsentRequiredForSession=!!t.replayConsentRequiredForSession,this.isWebView=!1,t.displayAdOptions&&t.displayAdOptions.length&&(this.displayAdOptions=t.displayAdOptions),t.voc&&(this.voc=X(X({},t.voc),{enabled:!!t.voc.enabled}))}return t.prototype.getTrackerUri=function(){return"".concat(this.i(),"://").concat(this.trackerDomain)},t.prototype.getRecordingUri=function(){return"".concat(this.i(),"://").concat(this.malkaRecordingDomain)},t.prototype.getQuotaServiceUri=function(){return"".concat(this.i(),"://").concat(this.malkaQuotaServiceDomain)},t.prototype.getLoggerUri=function(){return"".concat(this.i(),"://").concat(this.loggerDomain)},t.prototype.getStaticResourceManagerUri=function(){return"".concat(this.i(),"://").concat(this.staticResourceManagerDomain)},t.prototype.i=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=t[0],r=t.slice(1);if("setOption"===i){var s=r[0],e=r[1];n.u(s,e)}}))},t.prototype.u=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.t=function(t){return t?this.h(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.h=function(t){try{var n=/^\/(.*)\/([gim]*)$/.exec(t);if(n){var i=n[1],r=n[2];return new RegExp("^".concat(i,"$"),r)}return new RegExp("^".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}(),at=function(){function t(t,n){this.A=t,this.S=n}return t.prototype.init=function(){this.R=this.A!==this.A.top,this.N=this.S.isWebView&&this.A===this.A.top,this.S.iframesTracking&&this.R||this.N?this.T=!1:this.T=!0},t.prototype.isInIframeContext=function(){return this.R},t.prototype.isTopWindowTracker=function(){return this.T},t.prototype.isInWebViewContext=function(){return this.N},t}();!function(t){t.debug="debug",t.warn="warn",t.error="error",t.critical="critical"}(ut||(ut={})),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]))})),"&")}}(ot||(ot={}));var ft=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<arguments.length;n++)t[n]=arguments[n];this.requestParametersProviders=t},t.prototype.before=function(t){csArray.prototype.push.call(this.beforeRequestCallbacks,t)},t.prototype.after=function(t){csArray.prototype.push.call(this.afterRequestCallbacks,t)},t.prototype.retrieveParameters=function(){return this.requestParametersProviders?csArray.prototype.reduce.call(csArray.prototype.map.call(this.requestParametersProviders,(function(t){return t.getRequestParameters()})),(function(t,n){return X(X({},t),n)})):{}},t}(),vt=function(t){function n(n,i){return t.call(this,n,i)||this}return Y(n,t),n.prototype.send=function(){csArray.prototype.forEach.call(this.beforeRequestCallbacks,(function(t){return t()}));var t=this.retrieveParameters();this.O(t);var n=ot.toQuery(t);this.C(n),csArray.prototype.forEach.call(this.afterRequestCallbacks,(function(t){return t()}))},n.prototype.C=function(t){var n=new window.Image(1,1);n.onload=nt,n.onerror=nt,csHTMLImageElementsrc.call(n,"".concat(this.domainUri).concat(this.path?"/".concat(this.path):"","?").concat(t))},n.prototype.O=function(t){t.r=csString.prototype.slice.call("".concat(Math.random()),2,8)},n}(ft),lt=function(){function t(t,n){this.I=t,this._=n}return t.prototype.init=function(){this.P=new vt(this.I.getLoggerUri()),this.P.setRequestParametersProviders(this,this._)},t.prototype.send=function(t){this.M=t,this.P.send()},t.prototype.getRequestParameters=function(){return{a:this.M.app,l:this.M.level,m:this.M.message,s:this.M.stacktrace}},t}(),dt=/[a-zA-Z0-9._%+-]+(?:@|%40|%2540)[a-zA-Z0-9.%-_]+((?:\.|%2[eE])[a-zA-Z0-9-]+)+/g,wt=/[a-zA-Z0-9+_-](?:@|%40|%2540)/,yt="([-A-Za-z0-9+/=_]|=[^=]|={3,})+",pt=new RegExp("(ey".concat(yt,"\\.ey").concat(yt,"\\.").concat(yt,")"),"g"),mt=/[0-9]{4}/,gt=/(^|[^a-zA-Z0-9*.,-])([45*][0-9*]{3}([ -]?)[0-9*]{4}\3[0-9*]{4}\3[0-9*]{4})($|[^a-zA-Z0-9*.,-])/g,At=function(){function t(){}return t.prototype.anonymizePII=function(t){return"string"==typeof t&&(t=this.anonymizeEmail(t)),t},t.prototype.anonymizeEmail=function(t){return wt.test(t)?csString.prototype.replace.call(t,dt,"CS_ANONYMIZED_EMAIL"):t},t.prototype.anonymizeCreditCard=function(t){var n=this;return mt.test(t)?csString.prototype.replace.call(t,gt,(function(t,i,r,s,e){if(-1===csString.prototype.indexOf.call(r,"*")){var u=s.length?csArray.prototype.join.call(csString.prototype.split.call(r,s),""):r;if(!n.L(u))return t}return"".concat(i).concat("CS_ANONYMIZED_PII").concat(e)})):t},t.prototype.L=function(t){for(var n=parseInt(t[t.length-1]),i=0,r=t.length-2;r>=0;r--){var s=parseInt(t[r]);r%2==0&&(s*=2),i+=Math.floor(s/10)+s%10}return 10-i%10===n},t.prototype.anonymizeJwt=function(t){return csString.prototype.replace.call(t,pt,"CS_ANONYMIZED_JWT")},t.prototype.anonymizeFields=function(t,n){var i=this;return csArray.prototype.forEach.call(n,(function(n){t[n]=i.anonymizeEmail(t[n])})),t},t}(),St="14.1.2";function Et(){return{v:St}}var bt=function(){return void 0!==window.performance&&window.performance.now?window.performance.timing.navigationStart+Math.round(window.performance.now()):csDate.now()};function Rt(){return Math.floor(bt()/1e3)}function Nt(t,n){return 0===csString.prototype.lastIndexOf.call(t,n,0)}function Tt(t,n){return-1!==csString.prototype.indexOf.call(t,n,t.length-n.length)}var Ot=function(){function t(t,n){this.D=t,this.U=n}return t.prototype.getRequestParameters=function(){return X(X({d:"".concat(bt()),p:this.U.anonymizePII(window.location.href)},this.D.getRequestParameters()),Et())},t}();function kt(t){return Pt(t)&&("number"==typeof t||t instanceof Number)&&!isNaN(t)}function Ct(t){return t===parseInt(t,10)}function It(t){return Pt(t)&&("string"==typeof t||t instanceof csString)}function _t(t){return"object"==typeof t}function Pt(t){return void 0!==t}function Mt(t){return Pt(t)&&null!==t}function xt(t){return"function"==typeof t}function Lt(t){return t instanceof Element}function Dt(t){return t instanceof Error}var Ut,jt,Ht="snippet-",qt="implementation-snippet-";!function(t){t.IMPLEMENTATION="implementation",t.DYNAMIC="dynamic"}(Ut||(Ut={})),function(t){t[t.debug=0]="debug",t[t.warn=1]="warn",t[t.error=2]="error",t[t.critical=3]="critical"}(jt||(jt={}));var zt=function(){function t(t,n,i){var r;this.j=n,this.U=new At,this.H=jt[ut.warn],this.H=jt[t.minLogLevel||ut.warn],this.P=i||new lt(t,new Ot(t,this.U)),this.q=((r={})[ut.debug]=[],r[ut.warn]=[],r[ut.error]=[],r[ut.critical]=[],r),this.B={implementation:{},dynamic:{}},this.P.init()}return t.prototype.send=function(t,n,i){if(void 0===n&&(n=""),void 0===i&&(i=ut.warn),this.F(i,n)){csArray.prototype.push.call(this.q[i],n||"");var r={message:this.V(t,n),stacktrace:this.G(t),app:"uxa",level:i};this.P.send(r)}},t.prototype.V=function(t,n){var i=Dt(t)?this.U.anonymizePII(t.message||t.toString()):t;return n&&(i+=" ErrorCode: ".concat(n)),i},t.prototype.G=function(t){return Dt(t)?"".concat(t.stack||"No stacktrace"," ").concat(this.W()):this.W()},t.prototype.W=function(){var t=this.j.getVisitorService(),n=null==t?void 0:t.getVisitor();if(!n)return"No context";var i=this.j.getSessionService(),r=i&&i.getSession(),s={userId:n.id,sessionNumber:n.visitsCount,pageNumber:r&&r.pageNumber};return csJSON.stringify(s)},t.prototype.F=function(t,n){if(jt[t]<this.H)return!1;if(0===(null==n?void 0:csString.prototype.indexOf.call(n,qt,0)))return this.J(n,Ut.IMPLEMENTATION);if(0===(null==n?void 0:csString.prototype.indexOf.call(n,Ht,0)))return this.J(n,Ut.DYNAMIC);var i=this.q[t];return!(i.length>=5)&&(!n||!csArray.prototype.some.call(i,(function(t){return t===n})))},t.prototype.J=function(t,n){return t in this.B[n]?!(this.B[n][t]>=5)&&(this.B[n][t]+=1,!0):(this.B[n][t]=1,!0)},t}(),Bt="undefined"==typeof window,Ft="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:process;var Vt=!Bt&&document.createElement("a"),Gt=/(:443|:80)$/;function Wt(t){return Vt?(Vt.href=t,Vt.href):""}function Jt(t,n){return new csURL(t,n).href}function Yt(t){var n=$t(t);return null===n?"":decodeURIComponent(n.hostname)}function Xt(t,n){return csArray.prototype.some.call(n,(function(n){return Tt(t,".".concat(n))||t===n||""===n}))}function Kt(t){return csString.prototype.replace.call(t,Gt,"")}function $t(t){return Vt&&(Nt(t,"http://")||Nt(t,"https://"))?(Vt.href=t,{hash:Vt.hash,host:Kt(Vt.host),hostname:Vt.hostname,href:Vt.href,origin:Vt.origin?Vt.origin:Kt("".concat(Vt.protocol,"//").concat(Vt.host)),pathname:(n=Vt.pathname,"/"===n[0]?n:"/".concat(n)),port:Vt.port,protocol:Vt.protocol,search:Vt.search}):null;var n}var Zt,Qt,tn,nn,rn="CS_IFRAME_MESSAGE";!function(t){t.AfterPageView="afterPageView",t.GetSessionKey="getSessionKey"}(Zt||(Zt={})),function(t){t.Parent="parent",t.Child="child"}(Qt||(Qt={})),function(t){t.Discovery="discovery",t.Stop="stop",t.RecordingStatus="recordingStatus",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"}(tn||(tn={})),function(t){t.buildBaseMessage=function(t,n,i,r){var s={type:t,from:n,pid:i,signature:rn};return void 0!==r&&r>=0&&(s.id=r),s},t.isMessageValid=function(t,n,i,r){var s=Yt(t.origin);return!!t.data&&!!t.data.type&&t.data.signature===rn&&t.data.from===n&&t.data.pid===i&&Xt(s,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()}}(nn||(nn={}));var sn=function(){function t(t){this.D=t}return t.prototype.send=function(t,n,i){void 0===n&&(n=""),void 0===i&&(i=ut.warn);var r={message:t,errorCode:n,level:i},s=nn.buildBaseMessage(tn.ChildLogMessage,Qt.Child,this.D.projectId);s.content=r,nn.sendPostMessage(window.parent,"*",s)},t}(),en=function(){function t(){}return t.prototype.setContext=function(t,n){this.Y=t,this.X=n},t.prototype.getVisitorService=function(){return this.Y},t.prototype.getSessionService=function(){return this.X},t}(),un=["t.contentsquare.net","clicktale"];window.addEventListener("error",(function(t){"string"!=typeof t.filename||!csArray.prototype.some.call(un,(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||on.error("Uncaught jsError: filename: ".concat(t.filename," - lineno: ").concat(t.lineno," - colno: ").concat(t.colno," - message: ").concat(t.message," "))}));var on=function(){function t(){}return t.whiteListFilename=function(t){csArray.prototype.push.call(un,t)},t.setStrategy=function(n){t.K=n},t.computeIsActive=function(n){t.$=st.boolean(n),t.$?t.Z=st.boolean(10):t.Z=!1},t.isLoggingActive=function(){return t.$},t.getStrategy=function(){return t.K},t.debug=function(n,i){void 0===i&&(i=""),t.$&&this.K.send(n,i,ut.debug)},t.warn=function(n,i){void 0===i&&(i=""),t.$&&this.K.send(n,i,ut.warn)},t.error=function(n,i){void 0===i&&(i=""),t.$&&this.K.send(n,i,ut.error)},t.critical=function(n,i){void 0===i&&(i=""),t.$&&this.K.send(n,i,ut.critical)},t.tryToExecute=function(t,n){var i=this;return function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];try{var e=n.apply(void 0,r);return Pt(window.Promise)&&e instanceof window.Promise?e.then((function(t){return t}),(function(n){return i.error(n,t)})):e}catch(n){try{i.error(n,t)}catch(t){}}}},t.isPerfLoggingActive=function(){return t.Z},t.$=!1,t.Z=!1,t}(),hn={debug:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n]},warn:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n]},error:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n]},critical:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n]}};var cn,an,fn,vn,ln=function(t){return function(n,i,r){var s=(null==i?void 0:i.toString())||"",e=t||"".concat(n.constructor&&n.constructor.name,".").concat(s);if(r){var u=r.value;r.value=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return function(t,n){return function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];try{var s=n.apply(void 0,i);return Pt(window.Promise)&&s instanceof window.Promise?s.then((function(t){return t}),(function(n){return hn.error(n,t)})):s}catch(n){try{hn.error(n,t)}catch(t){}}}}(e,u.bind(this)).apply(void 0,t)}}}};!function(t){function n(t){var n=new RegExp("(^|;)[ ]*".concat(t,"=([^;]*)")).exec(document.cookie);return n?decodeURIComponent(n[2]):null}function i(n,i,s,e,u,o){var h=encodeURIComponent("".concat(i)),c=s===t.CURRENT_DOMAIN?void 0:s,a=r(e),f=a?";expires=".concat(a.toUTCString()):"",v=Mt(c)?";domain=".concat(c):"",l="".concat(n,"=").concat(h).concat(f).concat(";path=/").concat(v);return Pt(u)&&u!==fn.NotSet&&(l="".concat(l,";SameSite=").concat(u)),Pt(o)&&o===vn.Yes&&(l="".concat(l,";Secure")),document.cookie=l,!0}function r(t){return kt(t)?new csDate(bt()+t):t}function s(t,r){n(t)&&i(t,"",r,new csDate(0)),n(t)&&i(t,"",r,new csDate(0),fn.None,vn.Yes)}t.CURRENT_DOMAIN="CURRENT_DOMAIN",t.get=n,t.set=i,t.toExpireDate=r,t.remove=s,t.isCookiePresent=function(){return document.cookie.length>0},t.getRootDomain=function(t,r){var e="_cs_root-domain",u=n(e);if(null!==u&&"1"!==u)return u;for(var o=csString.prototype.split.call(window.location.hostname,"."),h=csArray.prototype.pop.call(o);o.length&&(null===u||"1"===u);)i(e,h=csArray.prototype.join.call([csArray.prototype.pop.call(o),h],"."),h,void 0,t,r),u=n(e);return s(e,h),h}}(cn||(cn={})),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}}(an||(an={})),function(t){t.None="None",t.Lax="Lax",t.NotSet="X"}(fn||(fn={})),function(t){t[t.Yes=1]="Yes",t[t.No=0]="No"}(vn||(vn={}));var dn=function(){function t(t,n,i){this.D=t,this.tt=n,this.nt=i,this.it=!1,this.st=fn.NotSet,this.et=vn.No}return t.prototype.getSameSiteFlag=function(){return this.st},t.prototype.getSecureFlag=function(){return this.et},t.prototype.getDomain=function(){return this.ut},t.prototype.getRootDomain=function(){return this.ot},t.prototype.init=function(){if(!this.D.cookielessTrackingEnabled){var t=this.ht(),n=this.ft();this.it=this.vt(t,n),this.it?(this.st=t,this.et=n):this.D.secureCookiesEnabled&&"https:"===this.tt.getUrlProtocol()&&(this.et=vn.Yes),this.ot=this.lt(),this.ut=this.wt(this.ot)}},t.prototype.vt=function(n,i){return!an.browserIsSafariV12()&&(cn.set(t.COOKIE_TEST_FOR_SAME_SITE,"Test same site",t.CURRENT_DOMAIN,void 0,n,i),!!cn.get(t.COOKIE_TEST_FOR_SAME_SITE)&&(cn.remove(t.COOKIE_TEST_FOR_SAME_SITE,t.CURRENT_DOMAIN),!0))},t.prototype.ht=function(){return"http:"===this.tt.getUrlProtocol()?fn.Lax:this.nt.isSameSiteNoneSecureNeeded()||this.D.crossDomainTracking?fn.None:fn.Lax},t.prototype.ft=function(){return"http:"===this.tt.getUrlProtocol()?vn.No:this.D.secureCookiesEnabled||this.D.crossDomainTracking||this.nt.isSameSiteNoneSecureNeeded()?vn.Yes:vn.No},t.prototype.isSameSiteSupported=function(){return this.it},t.prototype.set=function(t,n,i){var r=cn.toExpireDate(i);cn.set(t,n,this.ut,r,this.getSameSiteFlag(),this.getSecureFlag())},t.prototype.get=function(t){var n=new RegExp("(^|;)[ ]*".concat(t,"=([^;]*)")).exec(document.cookie);return n?decodeURIComponent(n[2]):null},t.prototype.delete=function(t,n){var i=n||this.ut;cn.remove(t,i)},t.prototype.lt=function(){var t=this.nt.isSameSiteNoneSecureNeeded()&&this.isSameSiteSupported(),n=t?fn.None:void 0,i=t?vn.Yes:void 0;return cn.getRootDomain(n,i)},t.prototype.wt=function(t){return this.D.allowSubdomains?t:cn.CURRENT_DOMAIN},t.CURRENT_DOMAIN="CURRENT_DOMAIN",t.COOKIE_TEST_FOR_SAME_SITE="_cs_same_site",t}(),wn="_cs_t",yn=function(){function t(t,n){this.yt=t,this.D=n,this.gt=!1,this.At=!1}return t.prototype.init=function(){if(!this.D.cookielessTrackingEnabled&&this.yt.isTopWindowTracker()&&"cookie"in document){if(!this.yt.isInIframeContext()&&cn.isCookiePresent())return this.gt=!0,void(this.At=!1);if(cn.set(wn,"1",cn.CURRENT_DOMAIN),null!==cn.get(wn))return this.gt=!0,this.At=!1,void cn.remove(wn,cn.CURRENT_DOMAIN);cn.set(wn,"1",cn.CURRENT_DOMAIN,void 0,fn.None,vn.Yes),null!==cn.get(wn)&&(this.gt=!0,this.At=!0,cn.remove(wn,cn.CURRENT_DOMAIN))}},t.prototype.areCookiesEnabled=function(){return this.gt},t.prototype.isSameSiteNoneSecureNeeded=function(){return this.At},t}();var pn,mn=function(){function t(t,n){this.D=t,this.nt=n}return t.prototype.canTrack=function(){return this.D.isProjectActive()&&this.St()&&this.Et()&&this.bt()},t.prototype.canTrackInChild=function(){return this.D.isProjectActive()&&this.Rt()&&(this.Et()||this.Nt())},t.prototype.bt=function(){return this.D.cookielessTrackingEnabled?function(){var t="CSSessionStorageTest";try{return sessionStorage.setItem(t,t),sessionStorage.getItem(t)===t&&(sessionStorage.removeItem(t),!0)}catch(t){return!1}}():this.nt.areCookiesEnabled()},t.prototype.Et=function(){return Xt(window.location.hostname,this.D.hostnames)},t.prototype.St=function(){return!this.Tt()&&this.Ot()},t.prototype.Rt=function(){return!this.Tt()&&this.kt()},t.prototype.Nt=function(){return it(window.location.href,"about:srcdoc")&&"about:"===window.location.protocol&&""===window.location.hostname},t.prototype.Tt=function(){return"visibilityState"in document&&"prerender"===document.visibilityState},t.prototype.Ot=function(){return this.Ct()&&!!window.localStorage},t.prototype.kt=function(){return this.Ct()},t.prototype.Ct=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}(),gn=function(){function t(t){var n=this;this.It=!1,this._t=new Map,this.Pt=new Map,this.Mt=new Map,this.xt="CS_WORKER_SIGNATURE";var i="\n    const algorithm = ".concat(t.algorithm,";\n    const compressor = (").concat(t.getCompressorSourceCode(),")();\n    ").concat('!function(){"use strict";var e,t=function(){return t=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},t.apply(this,arguments)};function r(e,t,r,n){return new(r||(r=Promise))((function(o,s){function a(e){try{c(n.next(e))}catch(e){s(e)}}function i(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,i)}c((n=n.apply(e,t||[])).next())}))}function n(e,t){var r,n,o,s,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function i(s){return function(i){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,i])}}}Object.create,Object.create,function(e){e.UNCOMPRESSED="0",e.GZIP="2"}(e||(e={}));var o,s=function(){function r(e){var t=this;this.queryParams={},this.headers={},this.handleRecoveredRequests=function(e){for(var r=0,n=e;r<n.length;r++){var o=n[r],s=o.metadata,a=o.events;t.send(a,s)}},this.endpoint=e.endpoint,this.compressionOpts=e.compressionOpts,this.recoveryStorage=e.recoveryStorage,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),a=!("ct"in s),i="string"!=typeof r&&!this.isArrayBuffer(r);"ct"in s||(this.compressionOpts&&a?s.ct=this.compressionOpts.compressionType:s.ct=e.UNCOMPRESSED);var c=i?JSON.stringify(r):r,u=Object.keys(s).map((function(e){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(s[e]))})).join("&"),h="".concat(this.endpoint,"?").concat(u);this.compressionOpts&&a&&"string"==typeof c?this.compressionOpts.compressor(c,this.compressionOpts.compressionOutputType,(function(e){return o.doSend(h,s,e)})):this.doSend(h,s,c)},r.prototype.onLoad=function(e){this.onLoadCallback=e},r.prototype.onError=function(e){this.onErrorCallback=e},r.prototype.onTimeout=function(e,t){this.onTimeoutCallback=e,this.timeout=t},r.prototype.abort=function(){this.abortCurrentXhrCall&&this.abortCurrentXhrCall()},r.prototype.setRequestHeader=function(e,t){this.headers[e]=t},r.prototype.getQueryParams=function(){return this.queryParams},r.prototype.isArrayBuffer=function(e){return e&&void 0!==e.byteLength},r.prototype.doSend=function(e,t,r){var n=this,o=new XMLHttpRequest,s=Object.keys(t).map((function(e){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(t[e]))})).join("&");o.open("POST",e),o.onload=function(){if(n.recoveryStorage&&n.recoveryStorage.recover(n.handleRecoveredRequests),n.onLoadCallback){var e={params:t,responseText:o.responseText,status:o.status};n.onLoadCallback(e)}},o.onerror=function(){n.recoveryStorage&&n.recoveryStorage.save({key:s,metadata:t,events:r}),n.onErrorCallback&&n.onErrorCallback({params:t})},this.timeout&&this.onTimeoutCallback&&(o.timeout=this.timeout,o.ontimeout=function(){n.onTimeoutCallback()}),this.abortCurrentXhrCall=function(){return o.abort()},Object.keys(this.headers).forEach((function(e){o.setRequestHeader(e,n.headers[e])})),o.send(r)},r}(),a=function(){function e(e){this.maxStoredBytes=e,this.storageBytesUsed=0}return e.prototype.addString=function(e){this.storageBytesUsed+=2*e.length},e.prototype.addArrayBuffer=function(e){this.storageBytesUsed+=e.byteLength},e.prototype.isThresholdReached=function(){return this.storageBytesUsed>this.maxStoredBytes},e.prototype.reset=function(){this.storageBytesUsed=0},e}(),i=function(){function e(e){this.ramStorage={},this.byteSizeCounter=new a(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 c=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 a(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,s;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,s=e.events,this.byteSizeCounter.addString(t),"string"==typeof s?this.byteSizeCounter.addString(s):this.byteSizeCounter.addArrayBuffer(s),this.byteSizeCounter.isThresholdReached()?[2]:[4,this.cache.put("".concat(this.origin,"/").concat(t),new Response(s,{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,s,a=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 s=n.sent(),[4,Promise.all(t.map((function(e){return a.cache.delete(e)})))];case 4:return n.sent(),e(s),this.byteSizeCounter.reset(),[3,7];case 5:return n.sent(),[3,7];case 6:return this.recoveryInProgress--,[7];case 7:return[2]}}))}))},e}(),u=function(){function e(e){self.caches?this.setCachesStrategy(e):this.setRamStorageStrategy()}return 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 c(t,e.MAX_SIZE,(function(e){r.setRamStorageStrategy(e)}))},e.prototype.setRamStorageStrategy=function(t){var r=this;this.storageStrategy=new i(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 u("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={endpoint:a};i&&(u.compressionOpts={compressor:compressor,compressionOutputType:i,compressionType:algorithm}),c&&(u.recoveryStorage=o);var h=new s(u);t.set(a,h),h.onLoad((function(t){var r={type:"onLoad",endpoint:a,response:t,WORKER_SIGNATURE:e};self.postMessage(r)})),h.onError((function(t){var r={type:"onError",endpoint:a,response:t,WORKER_SIGNATURE:e};self.postMessage(r)}));break;case"SetQueryParams":var p=r.endpoint,f=r.queryParams;(h=t.get(p))&&h.setQueryParams(f);break;case"RemoveQueryParams":p=r.endpoint,f=r.queryParams,(h=t.get(p))&&h.removeQueryParams(f);break;case"Send":p=r.endpoint;var y=r.payload;f=r.queryParams,(h=t.get(p))&&h.send(y,f);break;case"Abort":p=r.endpoint,(h=t.get(p))&&h.abort();break;case"SetHeader":p=r.endpoint;var d=r.headerName,l=r.headerValue;(h=t.get(p))&&h.setRequestHeader(d,l);break;case"SetTimeout":var v=r.endpoint,S=r.timeout;(h=t.get(v))&&h.onTimeout((function(){var t={type:"onTimeout",endpoint:v,WORKER_SIGNATURE:e};self.postMessage(t)}),S);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,s,a;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(),s=o.done,a=o.value,s?[3,3]:(t(a),[3,1]);case 3:return[2]}}))}))}(e.data,a):a(e.data)}))}()}();');try{this.Lt=this.Dt(i),this.It=!0,this.Ut()&&(this.jt=new ReadableStream({start:function(t){n.Ht=t}}),this.Lt.postMessage(this.jt,[this.jt]),this.postMessage=this.postMessageAsTransferable)}catch(t){this.It=!1}}return t.prototype.postMessage=function(t){t.WORKER_SIGNATURE=this.xt,this.Lt.postMessage(t)},t.prototype.postMessageAsTransferable=function(t){t.WORKER_SIGNATURE=this.xt,this.Ht.enqueue(t)},t.prototype.Dt=function(t){var n=this,i=window.csURL||window.webkitURL,r=window.Blob,s=window.Worker,e=new r([t],{type:"application/javascript"}),u=i.createObjectURL(e);on.whiteListFilename(u);var o=new s(u);return o.onmessage=function(t){var i=t.data,r=i.type,s=i.endpoint;if(i.WORKER_SIGNATURE===n.xt)if("onLoad"===r){var e=t.data.response;(u=n._t.get(s))&&u(e)}else if("onError"===r){e=t.data.response;(u=n.Pt.get(s))&&u(e)}else if("onTimeout"===r){var u;(u=n.Mt.get(s))&&u()}},o},t.prototype.registerOnLoadCallback=function(t,n){this._t.set(t,n)},t.prototype.registerOnErrorCallback=function(t,n){this.Pt.set(t,n)},t.prototype.registerOnTimeoutCallback=function(t,n){this.Mt.set(t,n)},t.prototype.isSupported=function(){return this.It},t.prototype.Ut=function(){try{var t=new ReadableStream;return structuredClone(t,{transfer:[t]}),!0}catch(t){return!1}},t}(),An=function(){function t(t){this.qt={},this.zt=t.endpoint,this.Bt=t.networkWorker,this.Ft=t.compressionOutputType,this.Vt=t.useRetry,this.Bt.postMessage({type:"CreatePostRequest",endpoint:this.zt,compressionOutputType:this.Ft,useRetry:this.Vt})}return t.prototype.setQueryParams=function(t){var n=this;this.Bt.postMessage({type:"SetQueryParams",endpoint:this.zt,queryParams:t}),csArray.prototype.forEach.call(Object.keys(t),(function(i){n.qt[i]=t[i]}))},t.prototype.getQueryParams=function(){return this.qt},t.prototype.removeQueryParams=function(t){var n=this;this.Bt.postMessage({type:"RemoveQueryParams",endpoint:this.zt,queryParams:t}),t&&csArray.prototype.forEach.call(t,(function(t){delete n.qt[t]}))},t.prototype.send=function(t,n){this.Bt.postMessage({type:"Send",endpoint:this.zt,payload:t,queryParams:n})},t.prototype.abort=function(){this.Bt.postMessage({type:"Abort",endpoint:this.zt})},t.prototype.onLoad=function(t){this.Bt.registerOnLoadCallback(this.zt,t)},t.prototype.onError=function(t){this.Bt.registerOnErrorCallback(this.zt,t)},t.prototype.setRequestHeader=function(t,n){this.Bt.postMessage({type:"SetHeader",endpoint:this.zt,headerName:t,headerValue:n})},t.prototype.onTimeout=function(t,n){this.Bt.registerOnTimeoutCallback(this.zt,t),this.Bt.postMessage({type:"SetTimeout",endpoint:this.zt,timeout:n})},t}();!function(t){t.UNCOMPRESSED="0",t.GZIP="2"}(pn||(pn={}));var Sn,En,bn,Rn,Nn=function(t){this.onError=t},Tn=function(){function t(t){var n=this;this.qt={},this.Gt={},this.Wt=function(t){for(var i=0,r=t;i<r.length;i++){var s=r[i],e=s.metadata,u=s.events;n.send(u,e)}},this.zt=t.endpoint,this.Jt=t.compressionOpts,this.Yt=t.recoveryStorage,this.Yt&&this.Yt.recover(this.Wt)}return t.prototype.setQueryParams=function(t){var n=this;Object.keys(t).forEach((function(i){n.qt[i]=t[i]}))},t.prototype.removeQueryParams=function(t){var n=this;t?t.forEach((function(t){delete n.qt[t]})):this.qt={}},t.prototype.send=function(t,n){var i=this,r=n||X({},this.qt),s=!("ct"in r),e="string"!=typeof t&&!this.Xt(t);"ct"in r||(this.Jt&&s?r.ct=this.Jt.compressionType:r.ct=pn.UNCOMPRESSED);var u=e?JSON.stringify(t):t,o=Object.keys(r).map((function(t){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(r[t]))})).join("&"),h="".concat(this.zt,"?").concat(o);this.Jt&&s&&"string"==typeof u?this.Jt.compressor(u,this.Jt.compressionOutputType,(function(t){return i.Kt(h,r,t)})):this.Kt(h,r,u)},t.prototype.onLoad=function(t){this.$t=t},t.prototype.onError=function(t){this.Zt=t},t.prototype.onTimeout=function(t,n){this.Qt=t,this.tn=n},t.prototype.abort=function(){this.nn&&this.nn()},t.prototype.setRequestHeader=function(t,n){this.Gt[t]=n},t.prototype.getQueryParams=function(){return this.qt},t.prototype.Xt=function(t){return t&&void 0!==t.byteLength},t.prototype.Kt=function(t,n,i){var r=this,s=new XMLHttpRequest,e=Object.keys(n).map((function(t){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(n[t]))})).join("&");s.open("POST",t),s.onload=function(){if(r.Yt&&r.Yt.recover(r.Wt),r.$t){var t={params:n,responseText:s.responseText,status:s.status};r.$t(t)}},s.onerror=function(){r.Yt&&r.Yt.save({key:e,metadata:n,events:i}),r.Zt&&r.Zt({params:n})},this.tn&&this.Qt&&(s.timeout=this.tn,s.ontimeout=function(){r.Qt()}),this.nn=function(){return s.abort()},Object.keys(this.Gt).forEach((function(t){s.setRequestHeader(t,r.Gt[t])})),s.send(i)},t}(),On=function(){function t(t){this.rn=t,this.Bt=new gn(this.rn)}return t.prototype.create=function(t,n,i,r){if(this.Bt.isSupported()&&n)return new An({networkWorker:this.Bt,endpoint:t,compressionOutputType:i,useRetry:!!r});var s=i?{compressor:this.rn.compress,compressionOutputType:i,compressionType:this.rn.algorithm}:void 0;return new Tn({endpoint:t,compressionOpts:s,recoveryStorage:r})},t}(),kn=function(){function t(t,n,i,r,s){this.Y=t,this.X=n,this.en=i,this.un=r,this.D=s}return t.prototype.get=function(){return{exclusion:this.en.getAppliedTrackingDraw(),visitor:this.Y.getVisitor(),session:this.X.getSession(),cvars:this.un.getCustomVariablesSession()}},t.prototype.apply=function(t){t&&(t.exclusion?this.exclude():this.include(t))},t.prototype.exclude=function(){this.en.exclude(this.D),this.Y.removeVisitor(),this.X.removeSession(),this.un.removeCustomVariablesSession()},t.prototype.include=function(t){this.en.removeExclusion(),this.Y.setVisitor(t.visitor),t.session?this.X.setSession(t.session):this.X.removeSession(),t.cvars?this.un.setCustomVariableSession(t.cvars):this.un.removeCustomVariablesSession()},t}();!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"}(Sn||(Sn={})),function(t){t[t.RECORDING_CONSENT_FOR_SESSION_GRANTED=1]="RECORDING_CONSENT_FOR_SESSION_GRANTED",t[t.RECORDING_CONSENT_FOR_SESSION_WITHDRAWN=2]="RECORDING_CONSENT_FOR_SESSION_WITHDRAWN"}(En||(En={})),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"}(bn||(bn={})),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"}(Rn||(Rn={}));var Cn=!0;function In(t,n){void 0===n&&(n=Cn),t.boundElement.addEventListener(t.type,t.listener,n)}function _n(t,n){void 0===n&&(n=Cn),t.boundElement.removeEventListener(t.type,t.listener,n)}function Pn(t,n){void 0===n&&(n=0);var i=Math.pow(10,n);return Math.round(t*i)/i}var Mn=function(){return Mn=Object.assign||function(t){for(var n,i=1,r=arguments.length;i<r;i++)for(var s in n=arguments[i])Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s]);return t},Mn.apply(this,arguments)};function xn(t,n,i,r){return new(i||(i=Promise))((function(s,e){function u(t){try{h(r.next(t))}catch(t){e(t)}}function o(t){try{h(r.throw(t))}catch(t){e(t)}}function h(t){var n;t.done?s(t.value):(n=t.value,n instanceof i?n:new i((function(t){t(n)}))).then(u,o)}h((r=r.apply(t,n||[])).next())}))}function Ln(t,n){var i,r,s,e,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return e={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function o(o){return function(h){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;e&&(e=0,o[0]&&(u=0)),u;)try{if(i=1,r&&(s=2&o[0]?r.return:o[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,o[1])).done)return s;switch(r=0,s&&(o=[2&o[0],s.value]),o[0]){case 0:case 1:s=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,r=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!(s=u.trys,(s=s.length>0&&s[s.length-1])||6!==o[0]&&2!==o[0])){u=0;continue}if(3===o[0]&&(!s||o[1]>s[0]&&o[1]<s[3])){u.label=o[1];break}if(6===o[0]&&u.label<s[1]){u.label=s[1],s=o;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(o);break}s[2]&&u.ops.pop(),u.trys.pop();continue}o=n.call(t,u)}catch(t){o=[6,t],r=0}finally{i=s=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,h])}}}Object.create;function Dn(t,n,i){if(i||2===arguments.length)for(var r,s=0,e=n.length;s<e;s++)!r&&s in n||(r||(r=Array.prototype.slice.call(n,0,s)),r[s]=n[s]);return t.concat(r||Array.prototype.slice.call(n))}Object.create;"function"==typeof SuppressedError&&SuppressedError;function Un(t,n){"number"==typeof n&&(n={wait:n});var i,r=n.wait;if(n.ignoreThrottledCalls){var s=0;return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var e=bt();if(e-s>r)return s=e,t.apply(this,n)}}var e,u=[],o=null,h=0,c=function(){h=bt(),o=null,e=t.apply(i,u)},a=function(){for(var n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];var a=bt(),f=r-(a-h);return i=null!=this?this:window,u=Dn([],n,!0),f<=0||f>r?(h=a,e=t.apply(i,u),o?(window.clearTimeout(o),o=null):u=[]):o||(o=window.setTimeout(c,f)),e};return a.cancel=function(){o&&(window.clearTimeout(o),h=0,o=null,u=[])},a.flushPending=function(){o&&(window.clearTimeout(o),c())},a}var jn,Hn;!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"}(jn||(jn={})),function(t){t[t.COPY=0]="COPY",t[t.CUT=1]="CUT",t[t.PASTE=2]="PASTE"}(Hn||(Hn={}));var qn=function(){function t(){}return t.isEmpty=function(){return 0===t.hn.length},t.add=function(n){var i;(i=csArray.prototype.push).call.apply(i,Q([t.hn],n,!1))},t.getAll=function(){return t.hn},t.clear=function(){t.hn=[]},t.hn=[],t}(),zn=50,Bn=.1;var Fn=!1;var Vn=[],Gn=[];var Wn=function(t){return function(n,i,r){var s=r.value;r.value=function(){if(!Fn)return r.value=s,s.apply(this,arguments);!function(t){csArray.prototype.push.call(Vn,t),performance.mark("".concat(t,"-start"))}(t);var n=s.apply(this,arguments);return function(t){var n=performance.measure(t,"".concat(t,"-start"));if(n){var i=n.duration;i>=Bn&&csArray.prototype.push.call(Gn,{mName:t,mDuration:+i.toFixed(2)}),csArray.prototype.pop.call(Vn),0===Vn.length&&(i>zn&&qn.add(Gn),Gn=[])}}(t),n}}},Jn=function(t){return function(n,i,r){var s=r.value;r.value=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(!Fn)return r.value=s,s.apply(this,n);!function(t){performance.mark("".concat(t,"-start"))}(t);var e=s.apply(this,n);return e.then((function(){!function(t){var n=performance.measure(t,"".concat(t,"-start"));if(n){var i=n.duration;i>zn&&qn.add([{mName:t,mDuration:+i.toFixed(2)}])}}(t)})),e}}};function Yn(t){var n=csEventtarget.apply(t);return n&&a(n)&&csElementshadowRoot.apply(n)&&t.composedPath?t.__csOriginalTarget||t.composedPath()[0]:n}function Xn(){return function(t,n,i){var r=i.value;i.value=function(t,n){!1===(null==t?void 0:t.isTrusted)&&Xn.enabled||r.call(this,t,n)}}}Xn.enabled=!0;var Kn,$n,Zn=!!window.chrome,Qn="data-cs-scroll-container";!function(t){t.isEventOnScrollContainer=function(t){return!!(Mt(t)&&function(t){try{if(Mt(csEventtarget.apply(t)))return!0}catch(t){}return!1}(t)&&Lt(csEventtarget.apply(t))&&null!==csEventtarget.apply(t).getAttribute(Qn))},t.getScrollContainer=function(){return window.csquerySelector[document.nodeType].call(document,"[".concat(Qn,"]"))}}(Kn||(Kn={}));$n=Ft.Element;var ti=window.csElementmatches||window.csElementmatchesSelector||window.csElementmozMatchesSelector||window.csElementmsMatchesSelector||window.csElementoMatchesSelector||window.csElementwebkitMatchesSelector,ni=document.createElement("div");function ii(t){if(!(!!t&&It(t)))return hn.warn("isValidSelector: invalid selector provided '".concat(t,"'")),!1;try{return ti.call(ni,t),!0}catch(n){return hn.warn("isValidSelector: invalid selector provided '".concat(t,"'")),!1}}var ri,si,ei,ui=(ri=csSymbol("propStore"),{getStore:function(t){return t[ri]},get:function(t,n){var i=t[ri];return null==i?void 0:i[n]},set:function(t,n,i){var r=t[ri];r||(r={},t[ri]=r),r[n]=i},reset:function(){ri=csSymbol("propStore")}});!function(t){function n(t,i,r){var s=!1;if(r(t,i,(function(){return s=!0})),!s){var e=t.children;if(null==e?void 0:e.length)for(var u=0,o=e;u<o.length;u++){if(n(o[u],t,r),s)break}}}t.setProperty=function(t,n,i){var r;t instanceof Node?ui.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?ui.get(t,n):null===(i=t.props)||void 0===i?void 0:i[n]},t.getProperties=function(t){return t instanceof Node?ui.getStore(t):t.props},t.traverse=function(t,i){n(t,void 0,i)}}(si||(si={})),function(t){var n;!function(t){t[t.NotSensitive=0]="NotSensitive",t[t.Parent=1]="Parent",t[t.Child=2]="Child"}(n=t.SensitiveState||(t.SensitiveState={})),t.sensitiveProp="sensitive",t.sensitiveAttributeProp="sensitiveAttribute",t.getSensitiveDetails=function(i){var r;return null!==(r=si.getProperty(i,t.sensitiveProp))&&void 0!==r?r:{state:n.NotSensitive}},t.getAttributeSensitiveDetails=function(n){var i;return null!==(i=si.getProperty(n,t.sensitiveAttributeProp))&&void 0!==i?i:{attributes:[]}},t.isSensitive=function(i){var r=si.getProperty(i,t.sensitiveProp);return(null==r?void 0:r.state)===n.Parent},t.isSensitiveChild=function(i){var r=si.getProperty(i,t.sensitiveProp);return(null==r?void 0:r.state)===n.Child},t.isSensitiveAttribute=function(n,i){var r=si.getProperty(n,t.sensitiveAttributeProp);return(null==(null==r?void 0:r.attributes)?void 0:csArray.prototype.indexOf.call(null==r?void 0:r.attributes,i))>-1},t.setSensitiveProperty=function(n,i){si.setProperty(n,t.sensitiveProp,i)},t.unsetSensitiveProperty=function(n){si.setProperty(n,t.sensitiveProp,void 0)},t.setSensitiveAttributeProperty=function(n,i){si.setProperty(n,t.sensitiveAttributeProp,i)},t.getComputedAttributeSelector=function(t){var n="";return csArray.prototype.forEach.call(t,(function(t){var i=csString.prototype.split.call(t.selector,","),r=csString.prototype.split.call(t.attrName,",");csArray.prototype.forEach.call(r,(function(t){for(var r=0;r<i.length;r+=1){var s="".concat(i[r],"[").concat(t,"]");ii(s)&&(n&&(n+=","),n+=s)}}))})),n}}(ei||(ei={}));var oi=function(){function t(t){var n=this;this.cn=t,this.an=new Set,this.fn=[],this.vn=[{type:"pointerup",listener:function(t){return n.pointerUpListener(t)},boundElement:document},{type:"pointermove",listener:function(t){return n.pointerMoveListener(t)},boundElement:document},{type:"pointerdown",listener:function(t){return n.pointerDownListener(t)},boundElement:document}],this.ln=[{type:"touchstart",listener:function(t){return n.touchStartListener(t)},boundElement:document},{type:"touchmove",listener:function(t){return n.touchMoveListener(t)},boundElement:document},{type:"touchend",listener:function(t){return n.touchEndCancelListener(t)},boundElement:document},{type:"touchcancel",listener:function(t){return n.touchEndCancelListener(t)},boundElement:document}],this.dn=[{type:"click",listener:function(t){return n.clickListener(t)},boundElement:document},{type:"keyup",listener:function(t){return n.keyUpListener(t)},boundElement:document},{type:"keydown",listener:function(t){return n.keyDownListener(t)},boundElement:document},{type:"copy",listener:function(t){return n.copyListener(t)},boundElement:document},{type:"cut",listener:function(t){return n.cutListener(t)},boundElement:document},{type:"paste",listener:function(t){return n.pasteListener(t)},boundElement:document},{type:"scroll",listener:function(t){return n.scrollListener(csEventtarget.apply(t))},boundElement:document},{type:"mouseover",listener:function(t){return n.mouseOverListener(t)},boundElement:document}],this.wn=[{type:"scroll",listener:function(t){return n.scrollListener(csEventtarget.apply(t))}}];var i=function(t){if(!It(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===i||i&&i>=16)&&csArray.prototype.push.call(this.wn,{type:"mouseover",listener:function(t){return n.mouseOverListener(t)}})}var n;return t.prototype.init=function(){this.yn(),this.mn(),this.gn(),this.An()},t.prototype.An=function(){var t=this;this.cn.onDocumentIdentified((function(n){t.Sn(n)}))},t.prototype.onEvent=function(t){csArray.prototype.push.call(this.fn,t)},t.prototype.En=function(t,n){void 0===n&&(n=!1),csArray.prototype.forEach.call(this.fn,(function(i){return i(t,n)}))},t.prototype.start=function(){this.bn()},t.prototype.stop=function(){this.Rn()},t.prototype.mn=function(){var t;this.Nn()&&(t=csArray.prototype.push).call.apply(t,Q([this.dn],this.vn,!1))},t.prototype.yn=function(){var t;this.Tn()&&(t=csArray.prototype.push).call.apply(t,Q([this.dn],this.ln,!1))},t.prototype.Sn=function(t){N(t)?csArray.prototype.forEach.call(this.dn,(function(t){return In(t)})):this.an.has(t)||(this.an.add(t),csArray.prototype.forEach.call(this.wn,(function(n){var i=n;i.boundElement=t,In(i)})))},t.prototype.On=function(t){N(t)?csArray.prototype.forEach.call(this.dn,(function(t){return _n(t)})):(this.an.delete(t),csArray.prototype.forEach.call(this.wn,(function(n){var i=n;i.boundElement=t,_n(i)})))},t.prototype.Nn=function(){return"PointerEvent"in window&&"function"==typeof window.PointerEvent},t.prototype.Tn=function(){return"TouchEvent"in window&&"function"==typeof window.TouchEvent},t.prototype.Rn=function(){var t=this;this.On(document),this.an.forEach((function(n){return t.On(n)}))},t.prototype.bn=function(){this.kn()},t.prototype.kn=function(){var t=Kn.getScrollContainer()||document,n=this.cn.getId(t);if(n){var i=this.Cn(t);if(0!==i.top||0!==i.left){var r={type:Sn.SCROLL,args:[n,i.left,i.top],date:bt()};this.En(r,!0)}}},t.prototype.Cn=function(t){return t===document?{top:window.pageYOffset,left:window.pageXOffset}:{top:t.scrollTop,left:t.scrollLeft}},t.prototype.scrollListener=function(t){if(!ei.isSensitive(t)&&!ei.isSensitiveChild(t)){var n=this.cn.getId(t);if(n){var i=this.Cn(t),r={type:Sn.SCROLL,args:[n,i.left,i.top],date:bt()};this.En(r)}}},t.prototype.mouseOverListener=function(t){if(!ei.isSensitiveChild(t.target)){var n=this.cn.getId(t.target);if(n){var i={type:Sn.MOUSE_OVER,args:[n],date:bt()};this.En(i)}}},t.prototype.clickListener=function(t){var n=Yn(t);if(!ei.isSensitiveChild(n)){var i=this.cn.getId(n);if(i){var r={type:Sn.CLICK,args:[i],date:bt()};this.En(r)}}},t.prototype.keyUpListener=function(t){var n=Yn(t);if(!ei.isSensitiveChild(n)){var i=this.cn.getId(n);if(i){var r=this.In[t.key];if(void 0!==r){var s={type:Sn.KEY_UP,args:[i,r],date:bt()};this.En(s)}}}},t.prototype.keyDownListener=function(t){var n=Yn(t);if(!ei.isSensitiveChild(n)){var i=this.cn.getId(n);if(i){var r=this.In[t.key];if(void 0!==r){var s={type:Sn.KEY_DOWN,args:[i,r],date:bt()};this.En(s)}}}},t.prototype.copyListener=function(t){var n=Yn(t);if(!ei.isSensitiveChild(n)){var i=this.cn.getId(n);if(i){var r={type:Sn.CLIPBOARD_COMMAND,args:[i,Hn.COPY],date:bt()};this.En(r)}}},t.prototype.cutListener=function(t){var n=Yn(t);if(!ei.isSensitiveChild(n)){var i=this.cn.getId(n);if(i){var r={type:Sn.CLIPBOARD_COMMAND,args:[i,Hn.CUT],date:bt()};this.En(r)}}},t.prototype.pasteListener=function(t){var n=Yn(t);if(!ei.isSensitiveChild(n)){var i=this.cn.getId(n);if(i){var r={type:Sn.CLIPBOARD_COMMAND,args:[i,Hn.PASTE],date:bt()};this.En(r)}}},t.prototype.pointerUpListener=function(t){var n=Yn(t);if(!ei.isSensitiveChild(n)){var i=this.cn.getId(n);if(i){var r={type:Sn.POINTER_UP,args:[t.pointerId,t.pointerType,Pn(t.clientX,1),Pn(t.clientY,1),i,t.button],date:bt()};this.En(r)}}},t.prototype.pointerMoveListener=function(t){var n={type:Sn.POINTER_MOVE,args:[t.pointerId,t.pointerType,Pn(t.clientX,1),Pn(t.clientY,1)],date:bt()};this.En(n)},t.prototype.pointerDownListener=function(t){var n=Yn(t);if(!ei.isSensitiveChild(n)){var i=this.cn.getId(n);if(i){var r={type:Sn.POINTER_DOWN,args:[t.pointerId,t.pointerType,Pn(t.clientX,1),Pn(t.clientY,1),i,t.button,{pageX:Pn(t.pageX,1),pageY:Pn(t.pageY,1)}],date:bt()};this.En(r)}}},t.prototype.touchStartListener=function(t){if(t.changedTouches)for(var n=t.changedTouches,i=0;i<n.length;i+=1){var r=n[i],s={type:Sn.TOUCH_START,args:[r.identifier,Pn(r.clientX,1),Pn(r.clientY,1)],date:bt()};this.En(s)}},t.prototype.touchMoveListener=function(t){if(t.changedTouches)for(var n=t.changedTouches,i=0;i<n.length;i+=1){var r=n[i],s={type:Sn.TOUCH_MOVE,args:[r.identifier,Pn(r.clientX,1),Pn(r.clientY,1)],date:bt()};this.En(s)}},t.prototype.touchEndCancelListener=function(t){if(t.changedTouches)for(var n=t.changedTouches,i=0;i<n.length;i+=1){var r=n[i],s={type:"touchend"===t.type?Sn.TOUCH_END:Sn.TOUCH_CANCEL,args:[r.identifier,Pn(r.clientX,1),Pn(r.clientY,1)],date:bt()};this.En(s)}},t.prototype.gn=function(){this.In={},this.In[" "]=jn.SPACE,this.In.Spacebar=jn.SPACE,this.In.Backspace=jn.BACKSPACE,this.In.Enter=jn.ENTER,this.In.Delete=jn.DELETE,this.In.ArrowUp=jn.ARROWUP,this.In.ArrowDown=jn.ARROWDOWN,this.In.ArrowLeft=jn.ARROWLEFT,this.In.ArrowRight=jn.ARROWRIGHT,this.In.Up=jn.ARROWUP,this.In.Down=jn.ARROWDOWN,this.In.Left=jn.ARROWLEFT,this.In.Right=jn.ARROWRIGHT,this.In.CapsLock=jn.CAPSLOCK,this.In.Shift=jn.SHIFT,this.In.Tab=jn.TAB,this.In.Escape=jn.ESCAPE,this.In.Esc=jn.ESCAPE,this.In.End=jn.END,this.In.Alt=jn.ALT,this.In.Control=jn.CTRL,this.In.Meta=jn.META},K([Wn("RecordingPageEvents.start")],t.prototype,"start",null),K([ln("scroll")],t.prototype,"scrollListener",null),K([ln("mouseOver"),Xn(),function(t,n,i){var r=i.value;return r&&(i.value=function(t){if(Yn(t)===csEventtarget.apply(t))return r.call(this,t)}),i}],t.prototype,"mouseOverListener",null),K([ln("click"),Xn()],t.prototype,"clickListener",null),K([ln("Event handler type: keyup")],t.prototype,"keyUpListener",null),K([ln("Event handler type: keydown")],t.prototype,"keyDownListener",null),K([ln("Event handler type: copy")],t.prototype,"copyListener",null),K([ln("Event handler type: cut")],t.prototype,"cutListener",null),K([ln("Event handler type: paste")],t.prototype,"pasteListener",null),K([ln("Event handler type: pointerup"),Xn()],t.prototype,"pointerUpListener",null),K([ln("Event handler type: pointermove"),Xn(),(n={wait:33,ignoreThrottledCalls:!0},function(t,i,r){r.value=Un(r.value,n)})],t.prototype,"pointerMoveListener",null),K([ln("Event handler type: pointerdown"),Xn()],t.prototype,"pointerDownListener",null),K([ln("Event handler type: touchstart"),Xn()],t.prototype,"touchStartListener",null),K([ln("Event handler type: touchmove"),Xn()],t.prototype,"touchMoveListener",null),K([ln("Event handler type: touchend-cancel"),Xn()],t.prototype,"touchEndCancelListener",null),t}();function hi(t){for(var n,i=null!==(n=t.length)&&void 0!==n?n:0,r=new csArray(i),s=0;s<i;s+=1)r[s]=t[s];return r}function ci(t,n){for(var i=t.length,r=new csArray(i),s=0;s<i;s+=1)r[s]=n(t[s]);return r}function ai(t,n,i){for(var r=0,s=0;s<t.length;s+=1)for(var e=n(t[s]),u=0;u<e.length;u++)i(e[u],r++);return[]}function fi(t,n){var i=[];return ai(t,n,(function(t){return csArray.prototype.push.call(i,t)})),i}function vi(t,n){if(t.length>=0)for(var i=t.length,r=0;r<i;r++)n(t[r],r);else for(var s=0,e=t.next();!e.done;)n(e.value,s++),e=t.next()}function li(t,n){for(var i=t.length,r=[],s=0;s<i;s+=1){var e=t[s];n(e)&&csArray.prototype.push.call(r,e)}return r}function di(t,n){for(var i=0;i<t.length;i++)csArray.prototype.push.call(n,t[i])}function wi(t){var n=[];return t.forEach((function(t){return csArray.prototype.push.call(n,t)})),n}var yi,pi,mi=function(){function t(){this._n=0}return Object.defineProperty(t.prototype,"length",{get:function(){return this._n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEmpty",{get:function(){return!this.Pn},enumerable:!1,configurable:!0}),t.prototype.pushAll=function(t){for(var n=0;n<t.length;n++)this.push(t[n])},t.prototype.push=function(t){this._n++,this.Mn?this.Mn=this.Mn[1]=[t,void 0]:this.Mn=this.Pn=[t,void 0]},t.prototype.pop=function(){if(!this.Pn)return null;this._n--;var t=this.Pn[0];return this.Pn=this.Pn[1],this.Pn||(this.Mn=void 0),t},t.prototype.forEach=function(t){for(var n=this.Pn;null==n?void 0:n.length;)t(n[0]),n=n[1]},t.prototype.clear=function(){this._n=0,this.Pn=this.Mn=void 0},t}(),gi=(yi="queueMicrotask",pi=setTimeout,void 0!==Ft[yi]?Ft[yi]:pi),Ai=new mi,Si=new mi,Ei=1;function bi(t,n){void 0===n&&(n="high");var i=Ei;Ai.isEmpty&&Si.isEmpty&&Ri((function(){if(Ei===i){var t=function(){for(;!Si.isEmpty;){Si.pop()()}for(;!Ai.isEmpty;){Ai.pop()()}Si.isEmpty||t()};t()}})),"high"===n?Si.push(t):Ai.push(t)}function Ri(t,n){void 0===n&&(n=10),gi(0===n?t:function(){return Ri(t,n-1)})}var Ni,Ti,Oi,ki=function(){function t(t,n,i,r,s,e){void 0===e&&(e=document);var u=this;this.xn=t,this.Ln=n,this.Dn=i,this.cn=r,this.Un=s,this.jn=e,this.Hn=!1,this.qn=function(t){u.Dn.emitInitialDomDone(t)},this.zn=function(t){var n=u.cn.getId(t.target);if(n){var i={args:[n,null,"style","width:".concat(t.width,"px !important;height:").concat(t.height,"px !important;")],date:bt(),type:Sn.MUTATION_ATTRIBUTE};u.Bn(i)}},this.Ln.onCharacterDataMutation((function(t){u.Fn(t)})),this.Ln.onAttributesMutation((function(t){u.Vn(t)})),this.Ln.onChildListMutation((function(t,n){vi(t.addedNodes,(function(t){u.cn.identifyNodes(t,n)})),u.Gn(t,n),vi(t.removedNodes,(function(t){u.Un.unidentifySensitiveNodes(t)}))})),this.Ln.onAttachShadowMutation((function(t){t.target.isConnected&&null!==csElementshadowRoot.apply(t.target)&&(u.cn.identifyNodes(csElementshadowRoot.apply(t.target)),bi((function(){return u.Wn(t)})))})),this.Un.onSensitiveElementResize(this.zn)}return t.prototype.onEvent=function(t){this.Bn=t},t.prototype.isStarted=function(){return this.Hn},t.prototype.start=function(){this.isStarted()||(this.Hn=!0,this.Ln.start(),this.Jn())},t.prototype.stop=function(){this.isStarted()&&(this.Hn=!1,this.Un.unidentifyAllSensitiveNodes(),this.Ln.stop())},t.prototype.flushEvents=function(){this.Ln.flushPendingMutations()},t.prototype.Jn=function(){this.Dn.emitInitialDomStart(),this.Un.identifySensitiveNodes(),this.cn.identifyNodes(this.jn),this.xn.serializeInitialDom(this.jn,this.qn)},t.prototype.Wn=function(t){if(!ei.isSensitive(t.target)&&!ei.isSensitiveChild(t.target)){var n=this.xn.serializeAttachShadowEvent(t);if(n){var i={args:n,date:t.date,type:Sn.ATTACH_SHADOW};this.Bn(i)}}},t.prototype.Vn=function(t){if(!ei.isSensitiveChild(t.target)&&!ei.isSensitiveAttribute(t.target,t.attributeName)){var n=this.xn.serializeMutationAttribute(t);if(n){var i={args:n,date:t.date,type:Sn.MUTATION_ATTRIBUTE};this.Bn(i)}}},t.prototype.Fn=function(t){var n=t.target.parentElement;if(!n||!ei.isSensitive(n)&&!ei.isSensitiveChild(n)){var i=this.xn.serializeMutationCharacterData(t);if(i){var r={args:i,date:t.date,type:Sn.MUTATION_CHARACTER_DATA};this.Bn(r)}}},t.prototype.Gn=function(t,n){var i=this;if(!ei.isSensitive(t.target)&&!ei.isSensitiveChild(t.target)){var r=this.xn.serializeMutationChildList(t,n);if(r){var s=r.removedNodes,e=r.addedNodes;csArray.prototype.forEach.call(s,(function(n){var r={args:n,date:t.date,type:Sn.MUTATION_REMOVE};i.Bn(r)})),csArray.prototype.forEach.call(e,(function(n){var r={args:n,date:t.date,type:Sn.MUTATION_INSERT};i.Bn(r)}))}}},t}(),Ci=function(){function t(t){this.Yn=t,this.Xn=0}return t.prototype.addString=function(t){this.Xn+=2*t.length},t.prototype.addArrayBuffer=function(t){this.Xn+=t.byteLength},t.prototype.isThresholdReached=function(){return this.Xn>this.Yn},t.prototype.reset=function(){this.Xn=0},t}(),Ii=function(){function t(t,n){void 0===t&&(t=[]),void 0===n&&(n=512e3),this.Kn=t,this.$n=new Ci(n)}return t.prototype.addEvent=function(t){this.$n.addString(ht(t)),csArray.prototype.push.call(this.Kn,t)},t.prototype.addEventByTimestamp=function(t){for(var n=0;n<this.Kn.length;n+=1){if(this.Kn[n].date>=t.date)break}csArray.prototype.splice.call(this.Kn,n,0,t)},t.prototype.eventsCount=function(){return this.Kn.length},t.prototype.clearEvents=function(){this.$n.reset(),this.Kn=[]},t.prototype.isFull=function(){return this.eventsCount()>=200},t.prototype.isThresholdReached=function(){return this.$n.isThresholdReached()},t.prototype.getEvents=function(){return this.Kn},t.prototype.extractEvents=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=[],r=[];return csArray.prototype.forEach.call(this.Kn,(function(n){-1!==csArray.prototype.indexOf.call(t,n.type)?csArray.prototype.push.call(i,n):csArray.prototype.push.call(r,n)})),this.Kn=r,i},t.prototype.stringifyEvents=function(){return ht(this.Kn)},t.prototype.Zn=function(t){t.type===Sn.INITIAL_DOM&&(window.CSDomSerialized=window.CSDomSerialized?window.CSDomSerialized+1:1)},K([Wn("RecordingBatch.addEvent")],t.prototype,"addEvent",null),t}(),_i=function(){function t(){this.Qn=1}return t.prototype.getCurrentIndex=function(){return this.Qn},t.prototype.increment=function(){this.Qn+=1},t.prototype.reset=function(){this.Qn=1},t.prototype.getRequestParameters=function(){return{ri:"".concat(this.Qn)}},t}(),Pi=function(){function t(){}return t.prototype.emit=function(n,i,r,s){void 0===s&&(s=document);var e="".concat(void 0!==r?r:t.ti),u="".concat(e).concat(n),o=t.createEvent(u,{detail:i});null!==o&&s.dispatchEvent(o)},t.createEvent=function(t,n){if(void 0===n&&(n={}),"function"==typeof CustomEvent)return new CustomEvent(t,n);var i=this.ni();if(null===i)return null;var r=n.bubbles,s=void 0!==r&&r,e=n.cancelable,u=void 0!==e&&e,o=n.detail;return i.initCustomEvent(t,s,u,o),i},t.ni=function(){try{return document.createEvent("CustomEvent")}catch(t){return null}},t.ti="cs.tracking.",t}(),Mi=function(){function t(){this.isStarted=!1}return t.prototype.start=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.isStarted||(this.isStarted=!0,this.onStart.apply(this,t))},t.prototype.stop=function(){this.isStarted&&(this.isStarted=!1,this.onStop())},t.prototype.restart=function(){this.stop(),this.start()},t}();!function(t){t.BLOCKED_BY_CONSENT_NOT_EXPRESSED="B",t.BLOCKED_BY_CONSENT_WITHDRAWN="W",t.NOT_RECORDED="0",t.TEMPORARILY_RECORDED="T",t.GLOBAL_SAMPLING="5",t.URL_SAMPLING="6",t.ETR_SAMPLING="7"}(Ni||(Ni={})),function(t){t.ETR_OFF="0",t.ETR_ON="1"}(Ti||(Ti={})),function(t){t.ETR_LEGACY="0",t.ETR_SESSION="1",t.ETR_PAGE="2"}(Oi||(Oi={}));var xi,Li,Di,Ui=function(){function t(t){var n=this;this.type="asyncEvent",this.ii=!1,t&&t((function(t){return n.resolve(t)}))}return t.prototype.resolve=function(t){if(this.ii)throw new Error("AsyncEvent already resolve.");null==t.timestamp&&(t=X(X({},t),{timestamp:this.timestamp})),this.si=t,this.ii=!0,this.ei&&this.ei(this.si)},t.prototype.complete=function(t){this.ii&&t(this.si),this.ei=t},t.prototype.wait=function(){var t=this;return new Promise((function(n){return t.complete(n)}))},t}(),ji=function(){function t(t){this.ei=t,this.ui=new mi,this.oi=!1}return t.prototype.onEvent=function(t){if(this.ei)throw new Error("callback already set");return this.ei=t,this},t.prototype.push=function(t){this.ui.push(t),this.hi()},t.pipe=function(n,i){for(var r=n,s=function(n){var i=new t((function(t){n.pushEvent(t)}));vi(r,(function(t){return t.subscribe((function(t){return i.push(t)}))})),r=[n]},e=0,u=i;e<u.length;e++){s(u[e])}var o=new t;return vi(r,(function(t){return t.subscribe((function(t){return o.push(t)}))})),o},t.prototype.hi=function(){var t=this;if(!this.oi){if(this.oi=!0,!this.ei)throw new Error("callback not set");var n=this.ui.pop(),i=function(n){t.ei(n),t.oi=!1,t.ui.isEmpty||t.hi()};n instanceof Ui?n.complete(i):i(n)}},t}(),Hi=function(){function t(t,n){void 0===n&&(n=[]);var i=this;this.producers=t,this.processors=n,this.Hn=!1,this.ci=[],this.ai=function(t){return csArray.prototype.forEach.call(i.ci,(function(n){return n(t)}))}}return t.prototype.start=function(){if(this.Hn)throw new Error("Recording is already started.");ji.pipe(this.producers,this.processors).onEvent(this.ai),vi(this.producers,(function(t){return t.start()})),vi(this.processors,(function(t){return t.start()})),this.Hn=!0},t.prototype.stop=function(){for(var t=0,n=this.producers;t<n.length;t++){n[t].stop()}for(var i=0,r=this.processors;i<r.length;i++){r[i].stop()}this.Hn=!1,this.ci=[]},t.prototype.subscribe=function(t){var n=this;if(this.Hn)throw new Error("Recording is already started.");return csArray.prototype.push.call(this.ci,t),function(){return n.ci=csArray.prototype.filter.call(n.ci,(function(n){return n!==t}))}},t}();function qi(){var t=new Set;return{add:function(n){t.add(n),1===t.size&&setTimeout((function(){t.clear()}))},has:function(n){return t.has(n)},del:function(n){t.delete(n)},values:function(){return wi(t)},get count(){return t.size}}}function zi(t,n){void 0===n&&(n=Gi.SHOW_ALL);var i=n|Gi.SHOW_ELEMENT,r=[document.createTreeWalker(t,i,null,!1)],s=Bi(t);s&&csArray.prototype.push.call(r,document.createTreeWalker(s,i,null,!1));var e=null;return{root:t,nextNode:function(){if(s){var t=s;return s=null,t}for(;r.length>0;){if(e){t=e;return e=null,t}var u=r[r.length-1].nextNode();if(u){var o=Bi(u);if(n&Gi.SHOW_DOCUMENT_FRAGMENT&&o&&(e=o),o&&csArray.prototype.push.call(r,document.createTreeWalker(o,i,null,!1)),Wi[u.nodeType]&n)return u}else csArray.prototype.pop.call(r)}return null},visitAll:function(i){Wi[t.nodeType]&n&&i(t);for(var r=this.nextNode();r;)i(r),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 Bi(t){return t&&O(t)?t.shadowRoot:null}var Fi,Vi=null!==(Li=Ft.Node)&&void 0!==Li?Li:{},Gi=null!==(Di=Ft.NodeFilter)&&void 0!==Di?Di:{},Wi=((xi={})[2]=Gi.SHOW_ATTRIBUTE,xi[4]=Gi.SHOW_CDATA_SECTION,xi[8]=Gi.SHOW_COMMENT,xi[11]=Gi.SHOW_DOCUMENT_FRAGMENT,xi[9]=Gi.SHOW_DOCUMENT,xi[10]=Gi.SHOW_DOCUMENT_TYPE,xi[1]=Gi.SHOW_ELEMENT,xi[Vi.ENTITY_NODE]=Gi.SHOW_ENTITY,xi[Vi.ENTITY_REFERENCE_NODE]=Gi.SHOW_ENTITY_REFERENCE,xi[Vi.NOTATION_NODE]=Gi.SHOW_NOTATION,xi[7]=Gi.SHOW_PROCESSING_INSTRUCTION,xi[3]=Gi.SHOW_TEXT,xi);function Ji(){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]")})):[];if(0===n.length)return"";var i=function(t){return t.length>0?Yi(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?"":Yi(n[0]))}function Yi(t){var n,i="";n=t;var r=(-1!==csString.prototype.indexOf.call(n,"@")?new RegExp("@(.+):(\\d+):(\\d+)$"):new RegExp("\\((.+):(\\d+):(\\d+)\\)")).exec(t);return r&&(i=r[1]),i}!function(t){t.isSupported=function(){return!!Element.prototype.attachShadow},t.getShadowRoot=function(t){return t&&O(t)?t.shadowRoot:null},t.getAllShadowHosts=function(t){return zi(t,NodeFilter.SHOW_DOCUMENT_FRAGMENT).collectAll((function(t){return t.host}))}}(Fi||(Fi={}));var Xi=function(t){return t};function Ki(t){var n,i=t.target,r=t.methodName,s=t.hook,e=t.hookPrepareArgs,u=void 0===e?Xi:e,o=t.options;if(!(null===(n=Object.getOwnPropertyDescriptor(i,r))||void 0===n?void 0:n.writable))return hn.warn("Cannot intercept read only function '".concat(csString(r),"' of object '").concat(i,"'")),null;var h,c,a=!1,f=i[r];if("function"==typeof f){var v=function(){var t=u(arguments),n=f.apply(this,arguments);if(a){var i=void 0;o&&o.withCallerName&&(i=Ji());try{s({result:n,context:this,args:t,callerName:i})}catch(t){hn.error(t)}}return n};(h=v).prototype=(c=f).prototype,Object.defineProperty(h,"toString",{value:function(){return c.toString()}}),i[r]=v}return{activate:function(){return a=!0},deactivate:function(){return a=!1}}}function $i(t,n,i){var r=!1,s=Object.getOwnPropertyDescriptor(t,n);if(s){if(!s.configurable)return hn.warn("Cannot intercept read only property '".concat(csString(n),"' of object '").concat(t,"'")),null;Object.defineProperty(t,n,Mn(Mn({},s.get?{get:function(){return s.get.apply(this,arguments)}}:{}),s.set?{set:function(){var t=arguments,n=s.set.apply(this,t);if(r)try{i(this,t[0])}catch(t){hn.error(t)}return n}}:{}))}return{activate:function(){return r=!0},deactivate:function(){return r=!1}}}var Zi,Qi=function(){function t(t){this.ei=t}var n;return t.fi=function(t){this.an.forEach((function(n){t(n,"initial")}))},t.vi=function(t){var n=this;if(csArray.prototype.push.call(this.li,t),!this.Hn){this.Hn=!0;var i={childList:!0,subtree:!0};this.wi.observe(document,i);for(var r=0,s=Fi.getAllShadowHosts(document);r<s.length;r++){var e=s[r];this.an.add(csElementshadowRoot.apply(e)),this.wi.observe(document,i)}this.yi||(this.yi=Ki({target:Element.prototype,methodName:"attachShadow",hook:function(t){return t.result.isConnected&&n.pi(t.result)}})),this.yi.activate()}this.fi(t)},t.mi=function(t){var n;this.li=csArray.prototype.filter.call(this.li,(function(n){return n!==t})),0===this.li.length&&(this.li=[],this.Hn=!1,this.wi.disconnect(),null===(n=this.yi)||void 0===n||n.deactivate(),this.an.clear())},Object.defineProperty(t.prototype,"shadowRoots",{get:function(){return wi(n.an)},enumerable:!1,configurable:!0}),t.prototype.observe=function(){Fi.isSupported()&&n.vi(this.ei)},t.prototype.disconnect=function(){Fi.isSupported()&&n.mi(this.ei)},n=t,t.li=[],t.an=new Set,t.Hn=!1,t.wi=new csMutationObserver((function(t){ai(t,(function(t){return t.addedNodes}),n.gi),ai(t,(function(t){return t.removedNodes}),(function(t){zi(t,NodeFilter.SHOW_DOCUMENT_FRAGMENT).visitAll((function(t){return n.an.delete(t)}))}))})),t.pi=function(t){n.an.has(t)||(n.an.add(t),vi(n.li,(function(n){return n(t,"added")})))},t.gi=function(t){zi(t,NodeFilter.SHOW_DOCUMENT_FRAGMENT).visitAll(n.pi)},t}(),tr={childList:!0,subtree:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,attributeOldValue:!0},nr=function(){function t(t,n){this.ei=t,this.Ai=n}var n;return t.observe=function(t,n){var i=this;csArray.prototype.push.call(this.callbacks,t),n&&csArray.prototype.push.call(this.shadowRootCallbacks,n),this.started?n&&csArray.prototype.forEach.call(Fi.getAllShadowHosts(document),(function(t){return n(csElementshadowRoot.apply(t),"initial")})):(this.mutationObsever=new csMutationObserver((function(t){csArray.prototype.forEach.call(i.callbacks,(function(n){return n(t,i.mutationObsever)}))})),this.mutationObsever.observe(document,tr),this.shadowRootObserver=new Qi(this.onShadowRoot),this.shadowRootObserver.observe(),this.started=!0,vi(this.shadowRootObserver.shadowRoots,(function(t){return i.mutationObsever.observe(t,tr)})))},t.disconnect=function(t,n){var i,r;this.callbacks=csArray.prototype.filter.call(this.callbacks,(function(n){return n!==t})),n&&(this.shadowRootCallbacks=csArray.prototype.filter.call(this.shadowRootCallbacks,(function(t){return t!==n}))),0===this.callbacks.length&&(this.callbacks=[],this.shadowRootCallbacks=[],null===(i=this.shadowRootObserver)||void 0===i||i.disconnect(),null===(r=this.mutationObsever)||void 0===r||r.disconnect(),this.started=!1)},Object.defineProperty(t.prototype,"shadowRoots",{get:function(){var t,i;return null!==(i=null===(t=n.shadowRootObserver)||void 0===t?void 0:t.shadowRoots)&&void 0!==i?i:[]},enumerable:!1,configurable:!0}),t.prototype.observe=function(){n.observe(this.ei,this.Ai)},t.prototype.disconnect=function(){n.disconnect(this.ei,this.Ai)},n=t,t.callbacks=[],t.shadowRootCallbacks=[],t.started=!1,t.mutationObsever=new csMutationObserver((function(t){csArray.prototype.forEach.call(n.callbacks,(function(i){return i(t,n.mutationObsever)}))})),t.onShadowRoot=function(t,i){vi(n.shadowRootCallbacks,(function(n){return n(t,i)})),"removed"!==i&&n.mutationObsever.observe(t,tr)},t}(),ir=function(){function t(t){var n=this;this.Si="",this.Ei=qi(),this.bi=function(t){if(""!==n.Si){for(var i=[],r=0,s=fi(t,(function(t){return t.addedNodes}));r<s.length;r++){var e=s[r];R(e)&&di(n.Ri(e,n.Si),i)}i.length&&n.ei(i)}},this.ei=t,this.Ni=new nr(this.bi)}return Object.defineProperty(t.prototype,"selectors",{get:function(){return""===this.Si?null:this.Si},enumerable:!1,configurable:!0}),t.prototype.observe=function(t){var n=this;""===this.Si?this.Ni.observe():this.Si+=",",this.Si+=t;var i=this.Ri(document,t);i.length&&(vi(i,(function(t){n.Ei.add(t)})),this.ei(i))},t.prototype.disconnect=function(){this.Ni.disconnect(),this.Si=""},t.prototype.Ri=function(t,n){var i=this,r=fi(Fi.getAllShadowHosts(t),(function(t){return window.csquerySelectorAll[t.shadowRoot.nodeType].call(t.shadowRoot,n)}));return di(window.csquerySelectorAll[t.nodeType].call(t,n),r),a(t)&&ti.call(t,n)&&csArray.prototype.push.call(r,t),csArray.prototype.filter.call(r,(function(t){return!1===i.Ei.has(t)}))},t}();!function(t){var n,i;t.ANONYMIZATION_STATUS_PROP="anonymizationStatus",t.CS_CAPTURE_ATTRIBUTE="data-cs-capture",t.ANONMIZATION_WHITELISTED_STATUS="whitelisted",t.start=function(){new ir((function(n){return function(n){vi(n,(function(n){zi(n).visitAll((function(n){return function(n){si.setProperty(n,t.ANONYMIZATION_STATUS_PROP,t.ANONMIZATION_WHITELISTED_STATUS)}(n)}))}))}(n)})).observe("".concat(i))},t.stop=function(){n},t.setWhitelistedElementsSelector=function(t){i=t},t.getWhitelistedElementsSelector=function(){return i},t.isWhitelisted=function(n){return si.getProperty(n,t.ANONYMIZATION_STATUS_PROP)===t.ANONMIZATION_WHITELISTED_STATUS||a(n)&&n.hasAttribute(t.CS_CAPTURE_ATTRIBUTE)}}(Zi||(Zi={}));var rr,sr=function(){function t(t){this.Ti=t}return t.prototype.start=function(){var t=this;this.Ti.subscribe((function(n){var i=n,r=i.timestamp;switch(i.type){case"Legacy":t.ei(i.originalEvent);break;case"CustomElementRegistration":t.ei({type:Sn.CUSTOM_ELEMENT_REGISTRATION,date:r,args:[i.tagName]});break;case"DomEvent":!function(t,n){var i=t.timestamp;switch(t.domEvent){case"initialDOM":var r=t.initialDOM;n({type:Sn.INITIAL_DOM,date:i,args:[r]});break;case"nodesAdded":csArray.prototype.forEach.call(t.nodes,(function(r){n({type:Sn.MUTATION_INSERT,date:i,args:[t.target,t.nextSibling,r]})}));break;case"nodesMoved":n({type:Sn.MUTATION_MOVE,date:i,args:[t.target,t.nextSibling,t.nodesIds]});break;case"nodesRemoved":csArray.prototype.forEach.call(t.nodesIds,(function(t){n({type:Sn.MUTATION_REMOVE,date:i,args:[t]})}));break;case"attributeChanged":var s=t.target,e=t.namespace,u=t.attribute,o=t.newValue;n({type:Sn.MUTATION_ATTRIBUTE,date:i,args:[s,e,u,o]});break;case"characterDataChanged":s=t.target,o=t.newValue,n({type:Sn.MUTATION_CHARACTER_DATA,date:i,args:[s,o]});break;case"cssRuleInserted":s=t.target;var h=t.rule,c=Pt(a=t.index)?[s,h,a]:[s,h];n({type:Sn.STYLESHEET_RULE_INSERT,date:i,args:c});break;case"cssRuleDeleted":s=t.target;var a=t.index;n({type:Sn.STYLESHEET_RULE_DELETE,date:i,args:[s,a]});break;case"shadowRootAttached":s=t.target;var f=t.shadowRoot;n({type:Sn.ATTACH_SHADOW,date:i,args:[s,f]});break;case"adoptedStyleSheetRegistered":var v=t.sheetId,l=t.cssRules;n({type:Sn.REGISTER_ADOPTED_STYLE_SHEET,date:i,args:[v,l]});break;case"adoptedStyleSheetsSet":s=t.target;var d=t.sheetsIds;n({type:Sn.SET_ADOPTED_STYLE_SHEETS,date:i,args:[s,d]});break;case"adoptedStyleSheetRuleInserted":v=t.sheetId,h=t.rule,c=Pt(a=t.index)?[v,h,a]:[v,h],n({type:Sn.ADOPTED_STYLESHEET_RULE_INSERT,date:i,args:c});break;case"adoptedStyleSheetRuleDeleted":v=t.sheetId,a=t.index,n({type:Sn.ADOPTED_STYLESHEET_RULE_DELETE,date:i,args:[v,a]});break;default:on.error("translateDOMEvent: DOMEvent not supported")}}(i,t.ei);break;case"TextVisibility":break;case"encryptedCharacterDataChanged":var s=i.target,e=i.rawData,u=i.encryptedData,o=i.encryptionMetadata;t.ei({type:Sn.MUTATION_ENCRYPTED_CHARACTER_DATA,date:r,args:[s,e,u,o]});break;case"StaticResource":var h=i.url;t.ei({type:Sn.STATIC_RESOURCE_URL,date:r,args:[h]});break;default:on.error("WebRecorderEventTranslator: Event not supported")}})),this.Ti.start()},t.prototype.stop=function(){this.Ti.stop()},t.prototype.onEvent=function(t){this.ei=t},t}(),er=function(){function t(){this.Oi=[]}return t.prototype.produceEvent=function(t){var n;null!==(n=t.timestamp)&&void 0!==n||(t.timestamp=bt()),csArray.prototype.forEach.call(this.Oi,(function(n){return n(t)}))},t.prototype.stop=function(){this.Oi=[]},t.prototype.subscribe=function(t){var n=this;return csArray.prototype.push.call(this.Oi,t),function(){var i=csArray.prototype.indexOf.call(n.Oi,t);csArray.prototype.splice.call(n.Oi,i,1)}},t}(),ur=function(t){function n(n){var i=t.call(this)||this;return i.ki=n,i}return Y(n,t),n.prototype.subscribe=function(n){return t.prototype.subscribe.call(this,n)},n.prototype.start=function(){var t=this;vi(this.ki,(function(n){n.onEvent((function(n){return t.ai(n)}))})),vi(this.ki,(function(t){var n;null===(n=t.start)||void 0===n||n.call(t)}))},n.prototype.stop=function(){vi(this.ki,(function(t){var n;return null===(n=t.stop)||void 0===n?void 0:n.call(t)})),t.prototype.stop.call(this)},n.prototype.ai=function(t){this.produceEvent({timestamp:bt(),type:"Legacy",originalEvent:t})},n}(er);!function(t){t.Visible="visible",t.Hidden="hidden",t.Blur="blur",t.PagehideVisible="pagehideVisible",t.PagehideHidden="pagehideHidden"}(rr||(rr={}));var or,hr,cr=function(){function t(){var t=this;this.Ci=!1,this.Ii=function(n){try{switch(n.type){case"visibilitychange":if("hidden"===document.visibilityState)return t._i(rr.Hidden);break;case"pagehide":return"hidden"===document.visibilityState?t._i(rr.PagehideHidden):t._i(rr.PagehideVisible);case"blur":return t._i(rr.Blur);default:return}}catch(t){}}}return t.prototype.start=function(){this.Ci||(this.Ci=!0,this.Pi(),this.Mi(),this.xi())},t.prototype.stop=function(){this.Ci&&(this.Ci=!1,this.Li(),this.Di(),this.Ui())},t.prototype.onEvent=function(t){this._i=t},t.prototype.Pi=function(){document.addEventListener("visibilitychange",this.Ii)},t.prototype.Li=function(){document.removeEventListener("visibilitychange",this.Ii)},t.prototype.Mi=function(){window.addEventListener("pagehide",this.Ii)},t.prototype.Di=function(){window.removeEventListener("pagehide",this.Ii)},t.prototype.xi=function(){window.addEventListener("blur",this.Ii)},t.prototype.Ui=function(){window.removeEventListener("blur",this.Ii)},t}(),ar=function(){function t(t){var n=this;this.ei=t,this.ji=qi(),this.Hi=function(t){bi((function(){for(var i=0,r=t;i<r.length;i++){var s=r[i];"childList"===s.type&&vi(s.addedNodes,(function(t){zi(t,NodeFilter.SHOW_ELEMENT).visitAll((function(t){n.ji.has(t)||(n.ji.add(t),n.ei(t))}))}))}}))},this.qi=new nr(this.Hi)}return t.prototype.observe=function(){var t=this;this.qi.observe(),zi(document,NodeFilter.SHOW_ELEMENT).visitAll((function(n){t.ji.add(n),t.ei(n)}))},t.prototype.disconnect=function(){this.qi.disconnect()},t}(),fr=function(t){function n(){var n=t.call(this)||this;n.zi="object"==typeof window.customElements&&"function"==typeof window.customElements.whenDefined&&"function"==typeof window.Promise,n.Bi=function(t){for(var i=0,r=t;i<r.length;i++){var s=r[i];ei.isSensitive(s)||ei.isSensitiveChild(s)||a(e=s)&&csString.prototype.indexOf.call(e.tagName,"-")>0&&-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(k,csString.prototype.toLocaleLowerCase.call(e.tagName))<0&&n.Fi(csString.prototype.toLowerCase.call(s.tagName))}var e};var i,r,s=(i=n.Bi,r=qi(),{push:function(t){0===r.count&&setTimeout((function(){i(r.values())})),r.add(t)}});return n.Vi=new ar((function(t){return s.push(t)})),n.Gi=new Set,n}return Y(n,t),n.prototype.start=function(){this.zi&&this.Vi.observe()},n.prototype.stop=function(){this.Gi.clear(),this.Vi.disconnect()},n.prototype.Fi=function(t){return $(this,void 0,void 0,(function(){return Z(this,(function(n){switch(n.label){case 0:return this.Gi.has(t)?[2]:(this.Gi.add(t),[4,window.customElements.whenDefined(t)]);case 1:return n.sent(),this.produceEvent({type:"CustomElementRegistration",tagName:csString.prototype.toLowerCase.call(t)}),[2]}}))}))},n}(er),vr=function(t){function n(n,i,r,s,e,u,o,h,c,a,f,v,l,d,w,y,p,m,g,A,S){void 0===A&&(A=[]);var E=t.call(this)||this;return E.D=n,E.Wi=i,E.Ji=r,E.Yi=s,E.Xi=e,E.Ki=u,E.$i=o,E.Zi=h,E.Qi=c,E.tr=a,E.X=f,E.nr=v,E.ir=l,E.rr=d,E.er=w,E.ur=y,E.hr=p,E.cr=m,E.ar=g,E.ki=A,E.vr=S,E.lr=0,E.wr=0,E.yr=0,E.pr=new Pi,E.mr={allowFromQuotaService:!0,allowFromSerialization:!0},E.gr=Un((function(){E.Wi.eventsCount()>0&&E.Ar()}),2e3),E.Sr=function(t){return E.processBrowserEvent(t)},E.Er=function(t){return E.br(t)},E.Rr=0,E.Nr=0,E.Tr=new cr,E.Or=!1,E.kr=51200,E.Cr=!1,E.Ir=!1,E._r=[],E.Pr=function(t){E.cr.removeBatchInProgress("".concat(t.params.sn,".").concat(t.params.pn,".").concat(t.params.ri))},E.Ti=new Hi([new ur(csArray.prototype.filter.call(Q([E.Ki],E.ki,!0),(function(t){return t}))),new fr]),E.Mr=new sr(E.Ti),E.Mr.onEvent(E.Sr),E}return Y(n,t),n.prototype.init=function(){this.Lr(),this.hr.onLoad(this.Pr),this.hr.onError(this.Pr)},n.prototype.Lr=function(){var t,n,i,r,s=this;this.$i.onEvent(this.Er),this.Zi.onEvent(this.Er),this.Qi.onEvent(this.Er),null===(t=this.ur)||void 0===t||t.onTextNodeToEncrypt(this.Sr),null===(n=this.ur)||void 0===n||n.onApiErrorToEncrypt((function(t){s.Dr(t)})),null===(i=this.ur)||void 0===i||i.onUserIdentifierToEncrypt(this.Sr),null===(r=this.ar)||void 0===r||r.onEvent(this.Sr),this.Tr.onEvent((function(t){return t===rr.Blur?s.Ur():s.Or?void 0:(s.Or=!0,setTimeout((function(){s.Or=!1})),t===rr.Hidden?s.Ur():s.jr())}))},n.prototype.isRecording=function(){return this.X.hasValidSession()&&this.isStarted},n.prototype.Ur=function(){var t=this;if(this.canSendEvents()){this.cr.saveBatchesInProgress(),vi(this.ki,(function(n){var i,r;return vi(null!==(r=null===(i=n.getPendingEvents)||void 0===i?void 0:i.call(n))&&void 0!==r?r:[],(function(n){return t.Wi.addEvent(n)}))}));var n=this.Wi.getEvents();if(0!==n.length){var i=this.hr.getQueryParams();i.rst=this.getRecordingStartTimestamp(),i.let=this.getRecordingLastEventTimestamp();var r=this.Yi.getCurrentIndex();i.ri=r.toString(),this.vr.removeQueryParams(),this.vr.setQueryParams(i),this.Nr=n[n.length-1].date;var s=this.Wi.stringifyEvents();if(s.length>this.kr){var e=this.Hr();if(e.length>0){var u=ht(e);this.vr.send(u)||this.cr.save({key:"".concat(i.sn,".").concat(i.pn,".").concat(i.ri,".last"),metadata:X(X({},i),{datatype:"json"}),events:u}),this.Yi.increment()}if(this.Wi.eventsCount()>0){i.ri=this.Yi.getCurrentIndex().toString();var o=this.Wi.stringifyEvents();this.cr.save({key:"".concat(i.sn,".").concat(i.pn,".").concat(i.ri,".last"),metadata:X(X({},i),{datatype:"json"}),events:o}),this.Yi.increment()}}else{this.vr.send(s)||this.cr.save({key:"".concat(i.sn,".").concat(i.pn,".").concat(i.ri,".last"),metadata:X(X({},i),{datatype:"json"}),events:s}),this.Yi.increment()}this.vr.removeQueryParams(),this.Wi.clearEvents()}}},n.prototype.jr=function(){var t=this;if(this.canSendEvents()){var n=this.hr.getQueryParams();this.cr.saveBatchesInProgress(),n.rst=this.getRecordingStartTimestamp(),delete n.ri,n.hlm="true",this.vr.removeQueryParams(),vi(this.ki,(function(n){var i,r;return vi(null!==(r=null===(i=n.getPendingEvents)||void 0===i?void 0:i.call(n))&&void 0!==r?r:[],(function(n){return t.Wi.addEvent(n)}))}));var i=this.Wi.getEvents();if(0===i.length)return delete n.let,delete n.rst,this.vr.setQueryParams(n),this.vr.send(),void this.vr.removeQueryParams();this.Nr=i[i.length-1].date,n.let=this.getRecordingLastEventTimestamp(),this.vr.setQueryParams(n);var r=this.Wi.stringifyEvents();if(r.length>this.kr){var s=this.Hr();if(s.length>0){var e=ht(s);this.vr.send(e)||this.cr.save({key:"".concat(n.sn,".").concat(n.pn,".last"),metadata:X(X({},n),{datatype:"json"}),events:e})}else delete n.let,delete n.rst,delete n.ri,this.vr.removeQueryParams(),this.vr.setQueryParams(n),this.vr.send(),this.vr.removeQueryParams();if(this.Wi.eventsCount()>0){n.rst=this.getRecordingStartTimestamp(),n.let=this.getRecordingLastEventTimestamp();var u=this.Yi.getCurrentIndex();n.ri=u.toString();var o=this.Wi.stringifyEvents();this.cr.save({key:"".concat(n.sn,".").concat(n.pn,".").concat(n.ri,".last"),metadata:X(X({},n),{datatype:"json"}),events:o}),this.Yi.increment()}}else{this.vr.send(r)||(this.cr.save({key:"".concat(n.sn,".").concat(n.pn,".").concat(n.ri,".last"),metadata:X(X({},n),{datatype:"json"}),events:r}),this.Yi.increment())}this.vr.removeQueryParams(),this.Wi.clearEvents()}},n.prototype.isMutationTrackerStarted=function(){return this.Ki.isStarted()},n.prototype.blockSendingEventsFromQuotaService=function(){this.mr.allowFromQuotaService=!1},n.prototype.allowSendingEventsFromQuotaService=function(){this.mr.allowFromQuotaService=!0},n.prototype.blockSendingEventsFromSerialization=function(){this.mr.allowFromSerialization=!1},n.prototype.allowSendingEventsFromSerialization=function(){this.mr.allowFromSerialization=!0},n.prototype.canSendEvents=function(){return this.mr.allowFromQuotaService&&this.mr.allowFromSerialization},n.prototype.onIframeJavascriptError=function(t){this.qr(t)},n.prototype.onIframeDetailedApiError=function(t){this.zr(t)},n.prototype.onIframeRecordingUserEvent=function(t){for(var n=0,i=t;n<i.length;n++){var r=i[n];this.br(r)}},n.prototype.onIframeRecordingBrowserEvent=function(t){if(this.isMutationTrackerStarted())for(var n=0,i=t;n<i.length;n++){var r=i[n];this.processBrowserEvent(r)}},n.prototype.processBrowserEvent=function(t){this.tr.isCurrentPageviewValid()&&this.Br(t)},n.prototype.br=function(t){this.tr.isSessionValid()&&this.Br(t)},n.prototype.Br=function(t){this.Wi.addEvent(t),this.Wi.isThresholdReached()?this.pushEvents():this.Wi.isFull()&&this.gr(),this.Fr(t)},n.prototype.Fr=function(t){this.D.emitDebugEvents&&this.pr.emit("recordingEvent",X(X({},t),{typeName:Sn[t.type]}))},n.prototype.onStart=function(){var t=this;Zi.start(),this.Tr.start(),this.initStates(),this.Xi.start(),this.Mr.start(),this.Qi.start(),this.Zi.start(),this.nr&&this.ir&&this.nr.subscribe(n.Vr,(function(n){return t.qr(n)})),this.rr&&this.er&&this.rr.subscribe(n.Vr,(function(n){return t.zr(n)}),{detailedEvent:!0}),this.D.emitDebugEvents&&this.pr.emit("replayRecordingStarted"),csArray.prototype.forEach.call(this._r,(function(n){return t.Gr(n)})),this._r=[]},n.prototype.onStop=function(){Zi.stop(),this.Tr.stop(),this.Xi.stop(),this.$i.stop(),this.Zi.stop(),this.nr&&this.nr.unsubscribe(n.Vr),this.rr&&this.rr.unsubscribe(n.Vr),this.Mr.stop(),this.Qi.stop(),this.Ir=!1},n.prototype.clearStates=function(){this.Ki.flushEvents(),this.gr.cancel(),this.pushEvents(),this.hr.removeQueryParams()},n.prototype.initStates=function(){this.Rr=bt(),this.Yi.reset(),this.lr=0,this.wr=0,this.yr=0,this.hr.setQueryParams(this.Ji.getRequestParameters())},n.prototype.pushEvents=function(){vi(this.ki,(function(t){var n;return null===(n=t.flushEvents)||void 0===n?void 0:n.call(t)})),this.Wi.eventsCount()>0&&(this.isStarted?this.Ar():this.Wi.clearEvents())},n.prototype.Ar=function(){if(this.canSendEvents()){var t=this.Wi.getEvents();this.Nr=t[t.length-1].date;var n=this.Yi.getCurrentIndex();this.hr.setQueryParams({ri:n.toString(),rst:this.getRecordingStartTimestamp(),let:this.getRecordingLastEventTimestamp()});var i=this.hr.getQueryParams();this.cr.addBatchInProgress("".concat(i.sn,".").concat(i.pn,".").concat(n),this.hr.getQueryParams(),t),this.hr.send(t),this.Yi.increment(),this.Wi.clearEvents(),this.Wr&&this.Wr()}},n.prototype.addInitialDom=function(t){this.Wi.addEventByTimestamp(t),this.Fr(t)},n.prototype.zr=function(t){if(t.customRequestHeaders||t.customResponseHeaders||t.queryParameters||t.requestBody||t.responseBody){if(this.ur)return void this.ur.registerApiErrorToEncrypt(t);t.customRequestHeaders="",t.customResponseHeaders="",t.queryParameters="",t.requestBody="",t.responseBody=""}this.Dr(t)},n.prototype.Dr=function(t){if(this.wr<n.Jr){var i={type:Sn.API_ERROR,date:bt(),args:[this.er.anonymize(t)]};this.Sr(i),this.wr=this.wr+1}},n.prototype.qr=function(t){if(this.lr<n.Yr){var i={type:Sn.JAVASCRIPT_ERROR,date:bt(),args:[this.ir.anonymize(t)]};this.Sr(i),this.lr=this.lr+1}},n.prototype.Xr=function(t){if(this.yr<n.Kr){var i={type:Sn.CUSTOM_ERROR,date:bt(),args:[t]};this.Sr(i),this.yr=this.yr+1}},n.prototype.$r=function(t){var i,r;t===Oi.ETR_SESSION?this.hr.setQueryParams(((i={})[n.Zr]=n.Qr,i)):t===Oi.ETR_PAGE&&this.hr.setQueryParams(((r={})[n.ns]=n.Qr,r))},n.prototype.clearEvents=function(){this.Wi.clearEvents()},n.prototype.onCustomJavaScriptErrorEvent=function(t){this.qr(t)},n.prototype.onCustomErrorEvent=function(t){this.Xr(t)},n.prototype.onPageEvent=function(t){this.rs(t)},n.prototype.onUserIdentifierEvent=function(t){var n,i={userIdentifier:t,date:bt(),keyId:this.D.encryptionPublicKeyId};null===(n=this.ur)||void 0===n||n.registerUserIdentifierToEncrypt(i)},n.prototype.onEventTriggerRecording=function(t,n){this.isStarted?this.Gr({eventName:t,eventType:n}):csArray.prototype.push.call(this._r,{eventName:t,eventType:n})},n.prototype.Gr=function(t){this.$r(t.eventType),this.rs(t.eventName),this.pushEvents()},n.prototype.rs=function(t){var i={type:Sn.PAGE_EVENT,date:bt(),args:[{eventName:csString.prototype.slice.call(t,0,n.ss)}]};this.Wi.addEvent(i)},n.prototype.triggerUnanonymizationConsentGranted=function(){var t={date:bt(),type:Sn.UNANONYMIZED_CONSENT_GRANTED};this.Wi.addEvent(t)},n.prototype.triggerUnanonymizationConsentWithdrawn=function(){var t={date:bt(),type:Sn.UNANONYMIZED_CONSENT_WITHDRAWN};this.Wi.addEvent(t)},n.prototype.triggerRecordingForSessionGranted=function(){var t={date:bt(),type:Sn.RECORDING_INFO_EVENT,args:[En.RECORDING_CONSENT_FOR_SESSION_GRANTED]};this.Wi.addEvent(t)},n.prototype.triggerRecordingForSessionWithdrawn=function(){var t={date:bt(),type:Sn.RECORDING_INFO_EVENT,args:[En.RECORDING_CONSENT_FOR_SESSION_WITHDRAWN]};this.Wi.addEvent(t)},n.prototype.activateOnlineAssetsOnNextPageview=function(){this.Cr=!0,this.Ir=!0},n.prototype.getStaticResourceManagerStatus=function(){return this.ar?{isStarted:this.D.useStaticResourceManager&&this.ar.isSupported(),onlineAssets:{activated:this.ar.isOnlineAssetsActivated(),enabledOnNextPageview:this.Cr,enabledForChildrenOnNextStart:this.Ir}}:null},n.prototype.updateStaticResourceManagerOnlineAssets=function(){this.ar&&this.Cr&&(this.ar.enableOnlineAssets(),this.Ir=!0,this.Cr=!1)},n.prototype.onRecordingRequestSent=function(t){this.Wr=t},n.prototype.getRecordingStartTimestamp=function(){return this.Rr.toString()},n.prototype.getRecordingLastEventTimestamp=function(){return this.Nr.toString()},n.prototype.onOptOut=function(){vi(this.ki,(function(t){var n;return null===(n=t.releaseResources)||void 0===n?void 0:n.call(t)}))},n.prototype.Hr=function(){return this.Wi.extractEvents(Sn.API_ERROR,Sn.JAVASCRIPT_ERROR,Sn.CUSTOM_ERROR,Sn.TEXT_VISIBILITY,Sn.POINTER_DOWN)},n.Vr="RecordingService",n.ss=255,n.Yr=20,n.Jr=20,n.Kr=20,n.ns="etrp",n.Zr="etrs",n.Qr="1",K([Wn("addInitialDom")],n.prototype,"addInitialDom",null),n}(Mi),lr=function(t){function n(n,i,r){var s=t.call(this)||this;return s.Yt=n,s.vr=i,s.hr=r,s.es=!1,s.us={},s.hs=function(t){if(0!==t.length)for(var n=0,i=t;n<i.length;n++){var r=i[n],e=r.metadata,u=r.events;s.cs(e.rt)&&s.hr.send(u,e)}},window.addEventListener("focus",(function(){s.recover()})),s}return Y(n,t),n.prototype.onStart=function(){this.us={}},n.prototype.onStop=function(){},n.prototype.recover=function(){this.Yt.recover(this.hs)},n.prototype.addBatchInProgress=function(t,n,i){this.us[t]={metadata:X({},n),events:i}},n.prototype.removeBatchInProgress=function(t){delete this.us[t]},n.prototype.blockSendingLastMessage=function(){this.es=!1},n.prototype.allowSendingLastMessage=function(){this.es=!0},n.prototype.sendLastMessageBeacon=function(){if(this.es){var t=this.hr.getQueryParams(),n=(t.ri,t.rst,t.let,function(t,n){var i={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(i[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(r=Object.getOwnPropertySymbols(t);s<r.length;s++)n.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(t,r[s])&&(i[r[s]]=t[r[s]])}return i}(t,["ri","rst","let"]));n.hlm="true",this.vr.setQueryParams(n),this.vr.send()}},n.prototype.cs=function(t){return!!t&&-1===csString.prototype.indexOf.call(t,Ni.TEMPORARILY_RECORDED)},n.prototype.saveBatchesInProgress=function(){var t=this;csArray.prototype.forEach.call(Object.keys(this.us),(function(n){var i=t.us[n],r=i.metadata,s=i.events;t.Yt.save({key:"".concat(r.sn,".").concat(r.pn,".").concat(r.ri),metadata:X(X({},r),{datatype:"json"}),events:csJSON.stringify(s)})}))},n.prototype.save=function(t){this.Yt.save(t)},K([ln("RecordingRecovery")],n.prototype,"recover",null),n}(Mi);!function(t){function n(){var t=[r()];return document.documentElement&&csArray.prototype.push.call(t,document.documentElement.scrollHeight,document.documentElement.offsetHeight,document.documentElement.clientHeight),document.body&&csArray.prototype.push.call(t,document.body.scrollHeight,document.body.offsetHeight),Math.max.apply(Math,t)}function i(){return document.documentElement.scrollWidth}function r(){return window.innerHeight}function s(){return window.innerWidth}function e(){var t=window.csScreen.width;return Ct(t)&&t>0?t:window.screen.width}function u(){var t=window.csScreen.height;return Ct(t)&&t>0?t:window.screen.height}t.documentHeight=n,t.documentWidth=i,t.windowHeight=r,t.windowWidth=s,t.screenWidth=e,t.screenHeight=u,t.windowOffsetX=function(){return window.pageXOffset},t.windowOffsetY=function(){return window.pageYOffset},t.getRequestParameters=function(){return{dw:"".concat(i()),dh:"".concat(n()),ww:"".concat(s()),wh:"".concat(r()),sw:"".concat(e()),sh:"".concat(u())}}}(or||(or={}));var dr,wr=null!==(hr=Ft.Node)&&void 0!==hr?hr:Object;!function(t){var n="isConnected"in wr.prototype?function(t){return t.isConnected}:function(t){return!(t.ownerDocument&&t.ownerDocument.compareDocumentPosition(t)&t.DOCUMENT_POSITION_DISCONNECTED)};function i(t){var n;return t.parentElement?t.parentElement:t.getRootNode?null===(n=t.getRootNode())||void 0===n?void 0:n.host:null}function r(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 hn.warn("SUP-11432: Element doesn't have getBoundingClientRect. Node: ".concat(t instanceof wr," 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 s,e=window.getComputedStyle(t);return!e||("none"===e.display||"hidden"===e.visibility||"collapse"===e.visibility||"0"===e.opacity||"opacity(0)"===e.filter||"0px"===e.width&&"0px"===e.height||("transparent"===(s=e.color)||/^(rgba|hsla)\(\d+, \d+%?, \d+%?, 0\)$/.test(s)))}function s(t){var n=t.getBoundingClientRect(),i=n.left+.5*n.width,r=n.top+.5*n.height;return e(document,i,r)}function e(t,n,i){var r=t.elementFromPoint(n,i);if(!r)return null;var s=Fi.getShadowRoot(r);return s&&s!=document.body.getRootNode()&&s!==t?e(s,n,i):r}function u(t){var n=s(t);return null!==n&&(t===n||t.contains(n))}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=[],r=function(t){csArray.prototype.push.call(i,t);for(var n=t.getRootNode(),r=t;(null==r?void 0:r.parentElement)&&r.parentElement!==n;)csArray.prototype.push.call(i,r.parentElement),r=r.parentElement;return csArray.prototype.push.call(i,n),i};if(n)for(var s=t;s;){r(s);var e=s.getRootNode();if(!(e instanceof ShadowRoot))break;s=e.host}else r(t);return i},t.isDescendantOf=function n(i,r){if(i===r||r.contains(i))return!0;var s=t.getParentElement(i);return!(!s||s===i)&&n(s,r)},t.getParentElement=i,t.findAllElements=function(t,n){var i;void 0===n&&(n=document);for(var r=hi(window.csquerySelectorAll[n.nodeType].call(n,t)),s=0,e=Fi.getAllShadowHosts(n);s<e.length;s++){var u=e[s],o=csElementshadowRoot.apply(u),h=hi(window.csquerySelectorAll[o.nodeType].call(o,t));(i=csArray.prototype.push).call.apply(i,Dn([r],h,!1))}return r},t.isHiddenByCSS=r,t.areAncestorsHiddenByCSS=function t(n){if(r(n))return!0;var s=i(n);return null!=s&&t(s)},t.getTopAncestorHiddenByCSS=function(t){var n=null,s=t;do{if(!r(s))break;n=s}while(s=i(s));return n},t.getTopElement=s,t.getElementOnTop=function(n){if(!n.getBoundingClientRect)return null;var i=n.getBoundingClientRect(),r=i.x+i.width/2,s=i.y+i.height/2;return t.getTopElementFromPoint(document,r,s)},t.getTopElementFromPoint=e,t.isVisibleInDocument=function(t){return!function(t){var n=t.getBoundingClientRect();return n.right+or.windowOffsetX()<0||n.bottom+or.windowOffsetY()<0}(t)&&!r(t)&&!function(t){var n=s(t);return null!==n&&!t.contains(n)}(t)},t.isVisibleInViewportInForeground=function(t){return!r(t)&&u(t)},t.isInViewPort=u,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")||(!(!d(t)||!t.hasAttribute("href"))||(!(!(E(t)||g(t)||m(t)||(n=t,a(n)&&"button"===n.localName))||t.hasAttribute("disabled"))||!(!function(t){return a(t)&&"details"===t.localName}(t)&&!function(t){return a(t)&&"summary"===t.localName}(t)))));var n}}(dr||(dr={}));var yr=/[^\s]/g;function pr(t){return csString.prototype.replace.call(t,yr,"a")}var mr,gr,Ar,Sr,Er=function(){function t(t,n,i,r){this.fs=t,this.cn=n,this.vs=i,this.ur=r,this.ls=!1}return t.prototype.setAnonymization=function(t){this.ds=t},t.prototype.isDOMSerializationInProgress=function(){return this.ls},t.prototype.serializeInitialDom=function(t,n){if(this.fs.isAsynchronous())this.serializeDocumentAsync(t).then((function(t){t&&n(t)})).catch((function(t){on.error(t)}));else{var i=this.ws(t);n(i)}},t.prototype.ws=function(t){return{args:[this.fs.serialize(t,{withAnonymization:this.ds})],date:bt(),type:Sn.INITIAL_DOM}},t.prototype.serializeDocumentAsync=function(t){return $(this,void 0,void 0,(function(){return Z(this,(function(n){switch(n.label){case 0:this.ls=!0,n.label=1;case 1:return n.trys.push([1,,3,4]),[4,this.fs.startSerializeAsync(t,{withAnonymization:this.ds})];case 2:return[2,n.sent()];case 3:return this.ls=!1,[7];case 4:return[2]}}))}))},t.prototype.serializeMutationCharacterData=function(t){var n,i=this.cn.getId(t.target);if(!i)return null;var r=t.target;if(r.data===t.oldValue)return null;if(f(r)&&(null===(n=this.ur)||void 0===n?void 0:n.shouldEncrypt(r)))return this.ur.registerTextNodeMutationToEncrypt({targetId:i,textNode:r,serializedTextData:pr(r.data),date:t.date}),null;var s=this.vs.getAnonymizedText(this.ds,r,r.data);f(r)&&(s=this.fs.serializeTextMutation(r,s));var e=[i,s];return this.ys(this.fs)&&this.isDOMSerializationInProgress()&&this.fs.handleMutationCharacterData(t,e),e},t.prototype.serializeAttachShadowEvent=function(t){var n=this.cn.getId(t.target);return n?[n,this.fs.serialize(t.shadowRoot)]:null},t.prototype.serializeMutationAttribute=function(t){var n=this.cn.getId(t.target);if(!n)return null;var i=t.target,r=t.attributeName,s=t.attributeNamespace,e=dr.getAttributeNS(t.target,s,r);e&&(e=this.vs.getAnonymizedAttributeValue(i,this.ds,r,e),e=this.fs.serializeAttributeMutationValue(t.target,r,e));var u=[n,s,r,e];return this.ys(this.fs)&&this.isDOMSerializationInProgress()&&this.fs.handleMutationAttribute(t.oldValue?this.vs.getAnonymizedAttributeValue(i,this.ds,r,t.oldValue):t.oldValue,u),u},t.prototype.serializeMutationChildList=function(t,n){var i=this.cn.getId(t.target);return i?this.ys(this.fs)&&this.isDOMSerializationInProgress()?this.fs.serializeMutationChildList(t,this.ds,n):{removedNodes:this.ps(t),addedNodes:this.gs(t,i,n)}:(vi(t.addedNodes,(function(t){var i=n.get(t);i&&n.set(t,i-1)})),null)},t.prototype.ys=function(t){return t.isAsynchronous()},t.prototype.ps=function(t){for(var n=[],i=0;i<t.removedNodes.length;i+=1){var r=this.cn.getId(t.removedNodes[i]);r&&csArray.prototype.push.call(n,[r])}return n},t.prototype.gs=function(t,n,i){var r=[],s=null;if(t.nextSibling){var e=this.cn.getId(t.nextSibling);s=void 0!==e?e:null}for(var u=0;u<t.addedNodes.length;u+=1){var o=t.addedNodes[u],h=this.fs.serialize(o,{excludedNodes:i,withAnonymization:this.ds}),c=i.get(o);c&&i.set(o,c-1),csArray.prototype.push.call(r,[n,s,h])}return r},K([Jn("serializeDocumentAsync")],t.prototype,"serializeDocumentAsync",null),t}(),br=function(){function t(t,n,i){var r=this;this.cn=t,this.As=n,this.Xi=i,this.Ss()&&(this.Es=$i(window.CSSStyleDeclaration.prototype,"cssText",(function(t,n){return r.setStyleDeclarationCssText(t,n)})))}return t.prototype.onEvent=function(t){this.Bn=t},t.prototype.start=function(){this.bs=this.Xi.registerToInsertRuleInterceptor(this.sendInsertion.bind(this)),this.Rs=this.Xi.registerToDeleteRuleInterceptor(this.sendDeletion.bind(this)),this.Es&&this.Es.activate()},t.prototype.stop=function(){var t,n;null===(t=this.bs)||void 0===t||t.call(this),null===(n=this.Rs)||void 0===n||n.call(this),this.Es&&this.Es.deactivate()},t.prototype.setStyleDeclarationCssText=function(t,n){var i=this.Ns(t);if((null==i?void 0:i.ownerNode)&&(!a(i.ownerNode)||!ei.isSensitiveChild(i.ownerNode))){var r=this.cn.getId(i.ownerNode);if(r){var s=this.Ts(i.cssRules,t.parentRule),e={date:bt(),type:Sn.STYLESHEET_CSS_TEXT_UPDATE,args:[r,s,n]};this.Bn(e),this.As.scanCssString(n)}}},t.prototype.Ns=function(t){var n=t.parentRule;return n&&n.parentStyleSheet},t.prototype.Ts=function(t,n){return csArray.prototype.indexOf.call(csArray.from(t),n)},t.prototype.Ss=function(){return window.CSSStyleDeclaration&&window.CSSStyleDeclaration.prototype&&Object.getOwnPropertyDescriptor(window.CSSStyleDeclaration.prototype,"cssText")},t.prototype.sendInsertion=function(t,n){var i=n[0],r=n[1];if(t.ownerNode&&(!a(t.ownerNode)||!ei.isSensitiveChild(t.ownerNode))){var s=this.cn.getId(t.ownerNode);if(s){var e={date:bt(),type:Sn.STYLESHEET_RULE_INSERT,args:Pt(r)?[s,i,r]:[s,i]};this.Bn(e),this.As.scanCssString(i)}}},t.prototype.sendDeletion=function(t,n){var i=n[0];if(t.ownerNode&&(!a(t.ownerNode)||!ei.isSensitiveChild(t.ownerNode))){var r=this.cn.getId(t.ownerNode);if(r){var s={date:bt(),type:Sn.STYLESHEET_RULE_DELETE,args:[r,i]};this.Bn(s)}}},K([ln("styleSheetRuleTracker.setStyleDeclarationCssText")],t.prototype,"setStyleDeclarationCssText",null),K([ln("styleSheetRuleTracker.sendInsertion")],t.prototype,"sendInsertion",null),K([ln("styleSheetRuleTracker.sendDeletion")],t.prototype,"sendDeletion",null),t}(),Rr="data-cs-mask",Nr=function(){function t(){}return t.prototype.beforeSerializeChildren=function(t,n){return ei.isSensitive(t)||this.Os(t)?[]:n},t.prototype.beforeSerializeAttributes=function(t,n){return ei.isSensitive(t)&&!A(t)&&(csArray.prototype.push.call(n,this.ks(t)),t.hasAttribute(Rr)||csArray.prototype.push.call(n,document.createAttribute(Rr))),csArray.prototype.filter.call(n,(function(n){return!ei.isSensitiveAttribute(t,n.name)}))},t.prototype.Os=function(t){return T(t)&&ei.isSensitive(t.host)},t.prototype.ks=function(t){var n=t.getBoundingClientRect(),i=document.createAttribute("style");return i.value="width: ".concat(n.width,"px !important; height: ").concat(n.height,"px !important;"),t.__contentsquare_height=n.height,t.__contentsquare_width=n.width,i},t}(),Tr=null!==(mr=Ft.Element)&&void 0!==mr?mr:{prototype:{}},Or=null!==(gr=Ft.Node)&&void 0!==gr?gr:{prototype:{}},kr=function(t){return Object.getOwnPropertyDescriptor(t.prototype,"localName")},Cr=null!==(Ar=kr(Tr))&&void 0!==Ar?Ar:kr(Or);!function(t){t[t.WebElement=0]="WebElement",t[t.MobileView=1]="MobileView",t[t.WebViewContainer=2]="WebViewContainer"}(Sr||(Sr={}));var Ir=function(t){this.csId=t.__contentsquare_identifier,this.format=Sr.WebElement,t.__contentsquare_artificial&&(this.artificial=t.__contentsquare_artificial)};var _r=function(t){function n(n){var i,r=t.call(this,n)||this;return r.attributes=[],r.localName=(i=n,Cr.get.call(i)),r.namespaceURI=n.namespaceURI,r.children=[],r.nodeType=1,r}return Y(n,t),n}(Ir),Pr=["id","class","style","src","srcset","sizes","href","rel","type","width","height","media","align","dir","bgcolor","color","border","colspan","rowspan","cols","rows","size","start","slot",U],Mr=function(){function t(t,n){this.U=t,this.D=n,this.Cs=new Set}return t.prototype.init=function(){var t=this;csArray.prototype.forEach.call(Pr,(function(n){t.Cs.add(n)})),csArray.prototype.forEach.call(this.D.whitelistedAttributes,(function(n){t.Cs.add(n)}))},t.prototype.beforeSerializeChildren=function(t,n,i){return(p(t)||Zi.isWhitelisted(t))&&(i.withAnonymization=!1),n},t.prototype.serializeAttribute=function(t,n,i,r){i.anonymized=r.withAnonymization;var s=this.getAnonymizedAttributeValue(t,r.withAnonymization,i.name,i.value);i.value=s},t.prototype.serializeTextNode=function(t,n,i){n.data=this.getAnonymizedText(i.withAnonymization,t,n.data)},t.prototype.serializeCDATASectionNode=function(t,n,i){var r=t.data;return n.data=i.withAnonymization?pr(r):this.U.anonymizePII(r),n},t.prototype.getAnonymizedText=function(t,n,i){if(csNodeparentNode.apply(n)){if(p(csNodeparentNode.apply(n)))return i;if(t&&Zi.isWhitelisted(csNodeparentNode.apply(n)))return this.U.anonymizeCreditCard(this.U.anonymizeEmail(i))}return t?pr(i):this.U.anonymizeCreditCard(this.U.anonymizeEmail(i))},t.prototype.getAnonymizedAttributeValue=function(t,n,i,r){return this.Is(i)||S(t)||a(s=t)&&"slot"===s.localName?r:n&&m(t)&&("submit"===t.type||"button"===t.type)&&"value"===i?pr(r):n?"":this.U.anonymizeCreditCard(this.U.anonymizeEmail(r));var s},t.prototype.afterSerialize=function(t,n,i){null==n.anonymized&&(n.anonymized=i.withAnonymization),n instanceof _r&&n.shadowRoot&&null==n.shadowRoot.anonymized&&(n.shadowRoot.anonymized=i.withAnonymization)},t.prototype.Is=function(t){return this.Cs.has(t)},t}(),xr=function(){function t(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._s=t}return t.prototype.addProvider=function(t){csArray.prototype.push.call(this._s,t)},t.prototype.getRequestParameters=function(){return csArray.prototype.reduce.call(this._s,(function(t,n){return X(X({},n.getRequestParameters()),t)}),{})},t}();function Lr(t,n){var i,r,s,e,u=null,o=function(h){var c=bt();if(!h&&null!==u){var a=n-(c-u);if(a>0)return void(r=window.setTimeout(o,a))}var f=c-s;r=null,u=null,s=null,e=t.apply(void 0,Dn([f],i,!1))},h=function(){for(var t=[],h=0;h<arguments.length;h++)t[h]=arguments[h];if(i=Dn([],t,!0),!s)return s=bt(),r=window.setTimeout(o,n),e;u=bt()};return h.flushPending=function(){r&&(window.clearTimeout(r),o(!0))},h.cancel=function(){u=null,s=null,r&&(window.clearTimeout(r),r=null)},h}function Dr(t){return void 0===t&&(t=0),function(n,i,r){var s=r.value,e=!1;r.value=function(){for(var n=this,i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];e||(e=!0,setTimeout((function(){e=!1,s.apply(n,i)}),t))}}}var Ur=function(){function t(t){var n=this;this.D=t,this.Ps=!1,this.Ms=Lr((function(){n.Ps=!1,n.xs()}),this.D.pendingInactivityTimeout)}return t.prototype.start=function(){this.Ps=!0,this.Ms()},t.prototype.stop=function(){this.Ps=!1,this.Ms.cancel()},t.prototype.trackActivity=function(){this.Ps||(this.Ps=!0,this.Ls()),this.Ms()},t.prototype.isUserActive=function(){return this.Ps},t.prototype.onActivityStopped=function(t){this.xs=t},t.prototype.onActivityResumed=function(t){this.Ls=t},t}(),jr=function(){function t(t,n,i){var r=this;this.Ds=t,this.U=n,this.Us=i,this.js=[{boundElement:window,type:"resize",listener:function(){return r.resizeListener()}},{boundElement:window,type:"hashchange",listener:function(){return r.hashChangeListener()}},{boundElement:document,type:"visibilitychange",listener:function(){return r.visibilityChangeListener()}}]}return t.prototype.onEvent=function(t){this.Bn=t},t.prototype.start=function(){this.Sn(),this.triggerInitialEvents(),this.Us&&(this.Us.setOnScreenChangedCallback(this.Bn),this.Us.start())},t.prototype.stop=function(){var t;this.On(),null===(t=this.Us)||void 0===t||t.stop()},t.prototype.Sn=function(){csArray.prototype.forEach.call(this.js,(function(t){return In(t)}))},t.prototype.On=function(){csArray.prototype.forEach.call(this.js,(function(t){return _n(t)}))},t.prototype.triggerInitialEvents=function(){this.resizeListener(),this.hashChangeListener()},t.prototype.resizeListener=function(){var t,n={type:Sn.RESIZE,args:[or.windowWidth(),or.windowHeight()],date:bt()};this.Bn(n),null===(t=this.Us)||void 0===t||t.onScreenPotentiallyChanged()},t.prototype.hashChangeListener=function(){var t={type:Sn.HASH_CHANGE,args:[this.U.anonymizePII(this.Ds.href)],date:bt()};this.Bn(t)},t.prototype.visibilityChangeListener=function(){var t={type:Sn.VISIBILITY_CHANGE,args:[document.visibilityState],date:bt()};this.Bn(t)},K([ln("resize")],t.prototype,"resizeListener",null),K([ln("hashChange")],t.prototype,"hashChangeListener",null),K([ln("visibilityChange")],t.prototype,"visibilityChangeListener",null),t}(),Hr=function(t){function n(n,i,r,s,e,u,o){var h=t.call(this)||this;return h.$i=n,h.Ki=i,h.Hs=r,h.qs=s,h.xn=e,h.zs=u,h.Dn=o,h.Bs=0,h}return Y(n,t),n.prototype.init=function(){var t=this;this.$i.onEvent((function(n,i){i||t.Fs()})),this.qs.onRecordingRequestSent((function(){t.Bs+=1,t.Vs()})),this.Hs.onActivityStopped((function(){t.Vs()})),this.Hs.onActivityResumed((function(){t.Ki.isStarted()||t.Gs()}))},n.prototype.onIframeRecordingUserEvent=function(t){this.Fs()},n.prototype.onStart=function(){this.Hs.start()},n.prototype.onStop=function(){this.Hs.stop()},n.prototype.Vs=function(){this.Ki.isStarted()&&!this.xn.isDOMSerializationInProgress()&&!this.Hs.isUserActive()&&this.Bs>=2&&this.Ws()},n.prototype.Fs=function(){this.Hs.trackActivity(),this.Bs=0},n.prototype.Ws=function(){this.Ki.stop(),this.Dn.emitRecordingStatusChange()},n.prototype.Gs=function(){this.xn.setAnonymization(this.zs.shouldUseAnonymization()),this.Ki.start(),this.Dn.emitRecordingStatusChange()},n}(Mi);var qr=/(@import\s*("([^"]+)"|'([^']+)'))|(url\s*\(\s*((("([^"\]]+)"|'([^'\]]+)')\s*)|([^)\]]+))\))/g;function zr(t,n){var i=t.replace(qr,(function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var r=t[3]||t[4],s=t[9]||t[10]||t[11],e=(r||s).trim().replace(/(\\)*\\(?:([a-fA-F0-9]{1,6})|(.))[\n\t\x20]?/g,(function(t,n,i,r){if("\\"===n)return t.slice(1);if(r)return r;var s=parseInt(i,16);return 55296<=s&&s<=57343||0===s||s>1114111?"�":String.fromCodePoint(s)}));return(r?"@import ":"")+"url("+function(t){if(-1===t.indexOf('"'))return'"'+t+'"';if(-1===t.indexOf("'"))return"'"+t+"'";return t}(n(e)||e)+")"}));return i}function Br(t){var n=[];return zr(t,(function(t){return n.push(t),t})),n}function Fr(t){return Nt(t,"data:")}function Vr(t){return Nt(t,"#")}function Gr(t){return!!t&&Tt(t,".css")}function Wr(t){var n=csString.prototype.trim.call(t);if(""===t)return[];var i,r=(i=n,csString.prototype.split.call(i,/\s(.+)/)),s=r[0],e=r[1];return e?(Tt(s,",")||(e=function(t){return csString.prototype.split.call(t,/,(.+)/)[1]||""}(e)),Dn([Jr(s)],Wr(e),!0)):[Jr(s)]}function Jr(t){return csString.prototype.split.call(t,/,$/)[0]}var Yr,Xr=function(){function t(t,n,i){void 0===n&&(n=30),void 0===i&&(i=0);var r=this;this.Js=t,this.Ys=n,this.Xs=i,this.Ks=new mi,this.$=!1,this.$s=0,this.Zs=function(){for(r.$s=0;r.Ks.length;){if(r.$s>=r.Ys)return void setTimeout(r.Zs,r.Xs);var t=bt(),n=r.Ks.pop();if(!n)break;r.runTask(n);var i=bt()-t;r.$s+=i}r.$=!1}}return t.prototype.schedule=function(t,n){void 0===n&&(n=!1),this.Js&&!n?(this.Ks.push(t),this.Qs()):t()},t.prototype.Qs=function(){var t=this;this.$||(this.$=!0,setTimeout((function(){t.Zs()})))},t.prototype.runTask=function(t){t()},t.prototype.runPendingTasks=function(){var t=this;this.Ks.forEach((function(n){t.runTask(n)})),this.Ks.clear()},t.prototype.clearQueue=function(){this.Ks.clear()},t.prototype.isEmpty=function(){return 0===this.Ks.length},K([ln("TaskScheduler"),Wn("runTask")],t.prototype,"runTask",null),K([Wn("runPendingTasks")],t.prototype,"runPendingTasks",null),t}(),Kr=function(){function t(t){void 0===t&&(t=!1);var n=this;this.te=!1,this.taskScheduler=new Xr(t),this.Vi=new ar((function(t){return n.taskScheduler.schedule((function(){return n.ne(t)}))})),this.Ln=new nr((function(t){return n.taskScheduler.schedule((function(){return n.bi(t)}))}))}return t.prototype.start=function(){this.te||(this.te=!0,this.Vi.observe(),this.Ln.observe())},t.prototype.stop=function(){this.Vi.disconnect(),this.Ln.disconnect(),this.te=!1},t.prototype.onEvent=function(t){this.Bn=t},t.prototype.onAsset=function(t){this.ie=t},t.prototype.onStyleSheetFound=function(t){this.re=t},t.prototype.scanText=function(t){f(t)&&csNodeparentNode.apply(t)&&p(csNodeparentNode.apply(t))&&this.scanCssString(t.data)},t.prototype.scanCssString=function(t){this.se(Br(t))},t.prototype.ne=function(t){this.te&&ei.getSensitiveDetails(t).state===ei.SensitiveState.NotSensitive&&this.ee(t)},t.prototype.ee=function(t,n){ei.getSensitiveDetails(t).state!==ei.SensitiveState.NotSensitive||n&&ei.isSensitiveAttribute(t,n)||(p(t)?this.ue(t):this.oe(t,n)||(this.he(t,n),this.ce(t,n),this.ae(t,n)))},t.prototype.oe=function(t,n){var i,r,s;if(w(t)&&(!n||"href"===n)&&t.href){var e=(null===(i=t.sheet)||void 0===i?void 0:i.href)||t.href,u={assetId:e,assetBasePath:window.location.href,assetRawPath:t.getAttribute("href")};return null===(r=this.re)||void 0===r||r.call(this,u),null===(s=this.ie)||void 0===s||s.call(this,u),this.fe(e),!0}return!1},t.prototype.ue=function(t){for(var n,i=new Set,r=0;r<csNodechildNodes.apply(t).length;r++){var s=csNodechildNodes.apply(t)[r];if(3===s.nodeType)for(var e=0,u=Br(s.data);e<u.length;e++){var o=u[e];i.add(o)}}var h=null===(n=t.sheet)||void 0===n?void 0:n.cssRules;if(h)for(r=0;r<h.length;r++)for(var c=0,a=Br(h.item(r).cssText);c<a.length;c++){o=a[c];i.add(o)}this.se(wi(i))},t.prototype.ve=function(t){return!this.le(t)&&!Fr(t)&&!Vr(t)},t.prototype.he=function(t,n){var i;if(y(t)){if(!n||"src"===n){var r=t.getAttribute("src");r&&this.ve(r)&&(this.fe(t.src),null===(i=this.ie)||void 0===i||i.call(this,{assetId:t.src,assetRawPath:r,assetBasePath:window.location.href}))}n&&"srcset"!==n||!t.srcset||this.de(t.srcset)}},t.prototype.ce=function(t,n){if(1===t.nodeType&&t.hasAttribute&&(!n||"style"===n)&&t.hasAttribute("style")){var i=t.getAttribute("style");if("string"!=typeof i)throw new Error("Unexpected style: "+t.outerHTML);this.scanCssString(i)}},t.prototype.de=function(t){this.se(Wr(t))},t.prototype.ae=function(t,n){var i,r;if((S(r=t)&&"image"===r.localName||function(t){return S(t)&&"use"===t.localName}(t)||function(t){return S(t)&&"feImage"===t.localName}(t))&&(!n||"href"===n||"xlink:href"===n)){var s=t.getAttribute("href")||t.getAttribute("xlink:href");if(s&&this.ve(s)){var e=Wt(s);this.fe(e),null===(i=this.ie)||void 0===i||i.call(this,{assetId:e,assetRawPath:s,assetBasePath:window.location.href})}}},t.prototype.se=function(t){var n=this;return csArray.prototype.forEach.call(csArray.prototype.map.call(csArray.prototype.filter.call(csArray.prototype.filter.call(csArray.prototype.filter.call(t,(function(t){return!n.le(t)})),(function(t){return!Fr(t)})),(function(t){return!Vr(t)})),(function(t){return{rawUrl:t,absoluteUrl:Wt(t)}})),(function(t){var i;n.Bn&&n.fe(t.absoluteUrl),null===(i=n.ie)||void 0===i||i.call(n,{assetId:t.absoluteUrl,assetBasePath:window.location.href,assetRawPath:t.rawUrl})}))},t.prototype.bi=function(t){for(var n=0,i=t;n<i.length;n++){var r=i[n];switch(r.type){case"attributes":this.ee(r.target,r.attributeName);break;case"characterData":this.scanText(r.target)}}},t.prototype.fe=function(t){var n,i={date:bt(),type:Sn.STATIC_RESOURCE_URL,args:[t]};null===(n=this.Bn)||void 0===n||n.call(this,i)},t.prototype.le=function(t){return/^https:\/\/\w+:\w+@/.test(t)},t}();!function(t){t.REQUEST_START="requestStart",t.DOM_INTERACTIVE="domInteractive",t.TIME_ORIGIN="timeOrigin"}(Yr||(Yr={}));var $r,Zr,Qr=function(){function t(t){this.we=t.performance}return t.prototype.onEvent=function(t){this.Bn=t},t.prototype.start=function(){this.ye()&&this.pe()},t.prototype.pe=function(){var t={args:this.ge(),date:bt(),type:Sn.PERFORMANCE_TIMINGS};this.Bn(t)},t.prototype.ye=function(){return!(!this.we||!this.we.timing)},t.prototype.ge=function(){return[{performanceTiming:Yr.REQUEST_START,timestamp:this.we.timing.requestStart},{performanceTiming:Yr.DOM_INTERACTIVE,timestamp:this.we.timing.domInteractive},{performanceTiming:Yr.TIME_ORIGIN,timestamp:this.we.timeOrigin}]},t}(),ts=function(t){function n(n){var i=t.call(this)||this;return i.Ae=n,i.Se=new Map,i}return Y(n,t),n.prototype.init=function(){this.Ee(),this.be()},n.prototype.be=function(){var t=this;this.Ni=new csMutationObserver((function(n){bi((function(){return t.handleMutations(n)}),"low")}))},n.prototype.Ee=function(){var t=this;this.Re()&&(this.Ne=Ki({target:Element.prototype,methodName:"attachShadow",hook:function(n){var i=n.context,r=n.result;return t.handleAttachShadow(i,r)}})),this.Te()&&(this.Oe=Ki({target:Element.prototype,methodName:"createShadowRoot",hook:function(n){var i=n.context,r=n.result;return t.handleAttachShadow(i,r)}}))},n.prototype.onChildListMutation=function(t){this.ke=t},n.prototype.onCharacterDataMutation=function(t){this.Ce=t},n.prototype.onAttributesMutation=function(t){this.Ie=t},n.prototype.onAttachShadowMutation=function(t){this._e=t},n.prototype.observe=function(t,n){this.isStarted&&this.Ni.observe(t,n)},n.prototype.onStart=function(){this.Ne&&this.Ne.activate(),this.Oe&&this.Oe.activate()},n.prototype.onStop=function(){this.Ne&&this.Ne.deactivate(),this.Oe&&this.Oe.deactivate(),this.Ae.clearQueue(),this.Ni.disconnect()},n.prototype.flushPendingMutations=function(){if(this.isStarted){!function(){for(Ei++;!Si.isEmpty;)Si.pop()();for(;!Ai.isEmpty;)Ai.pop()()}(),this.Ae.runPendingTasks();var t=this.Ni.takeRecords();this.handleMutations(t,!0)}},n.prototype.Re=function(){return window.Element&&window.Element.prototype&&"function"==typeof window.Element.prototype.attachShadow},n.prototype.Te=function(){return window.Element&&window.Element.prototype&&"function"==typeof window.Element.prototype.createShadowRoot},n.prototype.handleMutations=function(t,n){var i=this;void 0===n&&(n=!1);var r=bt(),s=t.length>1?this.Pe(t):t;this.Ae.isEmpty()&&this.Se.clear(),this.Me(s);for(var e=function(t){var e=s[t];e.date=r,u.Ae.schedule((function(){i.processMutation(e,i.Se)}),n)},u=this,o=0;o<s.length;o+=1)e(o)},n.prototype.Pe=function(t){for(var n=new Map,i=0;i<t.length;i+=1){if("attributes"===(f=t[i]).type){var r=f.target,s=f.attributeNamespace,e=f.attributeName,u="".concat(s||""," ").concat(e),o=n.get(r),h=dr.getAttributeNS(r,s,e)===f.oldValue?"none":"last";if(o)o.has(u)||o.set(u,h);else{var c=new Map;c.set(u,h),n.set(r,c)}}}var a=[];for(i=t.length-1;i>=0;i-=1){var f;if("attributes"===(f=t[i]).type){r=f.target,s=f.attributeNamespace,e=f.attributeName,u="".concat(s||""," ").concat(e);"last"===(o=n.get(r)).get(u)&&(csArray.prototype.push.call(a,f),o.set(u,"none"))}else csArray.prototype.push.call(a,f)}return csArray.prototype.reverse.call(a)},n.prototype.handleAttachShadow=function(t,n){this._e({shadowRoot:n,date:bt(),target:t})},n.prototype.processMutation=function(t,n){switch(t.type){case"attributes":this.Ie(t);break;case"characterData":this.Ce(t);break;case"childList":this.ke(t,n);break;default:throw new Error("mutation type is not supported")}},n.prototype.Me=function(t){var n=this;csArray.prototype.forEach.call(t,(function(t){vi(t.addedNodes,(function(t){var i=n.Se.get(t);i?n.Se.set(t,i+1):n.Se.set(t,1)}))}))},K([ln("handleMutations")],n.prototype,"handleMutations",null),K([Wn("handleAttachShadow")],n.prototype,"handleAttachShadow",null),K([Wn("processMutation")],n.prototype,"processMutation",null),n}(Mi),ns=function(t){function n(n,i){var r=t.call(this,n)||this;return r.cn=i,r.xe={subtree:!0,attributes:!0,childList:!0,characterData:!0,attributeOldValue:!0,characterDataOldValue:!0},r}return Y(n,t),n.prototype.init=function(){t.prototype.init.call(this),this.An()},n.prototype.An=function(){var t=this;this.cn.onDocumentIdentified((function(n){t.observe(n,t.xe)}))},n}(ts),is=function(){function t(t){this.Le=[],this.De=[],this.qt={},this.zt=t}return t.prototype.setQueryParams=function(t){var n=this;csArray.prototype.forEach.call(Object.keys(t),(function(i){n.qt[i]=t[i]}))},t.prototype.removeQueryParams=function(t){var n=this;t?csArray.prototype.forEach.call(t,(function(t){delete n.qt[t]})):this.qt={}},t.prototype.onBeaconSuccess=function(t){csArray.prototype.push.call(this.Le,t)},t.prototype.onBeaconFailure=function(t){csArray.prototype.push.call(this.De,t)},t.prototype.send=function(t){var n=this,i=ot.toQuery(X(X({},this.qt),{ct:pn.UNCOMPRESSED})),r=this.Ue(i,t);return r?csArray.prototype.forEach.call(this.Le,(function(t){return t()})):csArray.prototype.forEach.call(this.De,(function(t){return t(n.qt)})),r},t.prototype.Ue=function(t,n){try{if("function"!=typeof csNavigatorsendBeacon)return!1;var i=csNavigatorsendBeacon("".concat(this.zt,"?").concat(t),n||"");if(i)return i}catch(t){}return"function"==typeof navigator.sendBeacon&&navigator.sendBeacon("".concat(this.zt,"?").concat(t),n||"")},t}();!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"}($r||($r={})),function(t){t[t.UP=1]="UP",t[t.DOWN=2]="DOWN",t[t.LEFT=3]="LEFT",t[t.RIGHT=4]="RIGHT"}(Zr||(Zr={}));var rs=function(){function t(t,n){this.je=t,this.cn=n}return t.prototype.start=function(){var n=this;this.je.subscribe(t.He,(function(t,i){return n.processGesture(t,i)}))},t.prototype.stop=function(){this.je.unsubscribe(t.He)},t.prototype.onEvent=function(t){this.Bn=t},t.prototype.processGesture=function(t,n){if(t.target&&(!a(t.target)||!ei.isSensitiveChild(t.target))){var i=this.cn.getId(t.target);if(i)switch(t.type){case $r.DRAG:case $r.FLICK:this.qe(Rn.SWIPE,t,i,n);break;case $r.LONG_PRESS:this.qe(Rn.LONG_PRESS,t,i,n);break;case $r.TAP:this.qe(Rn.TAP,t,i,n);break;case $r.PINCH_IN:this.qe(Rn.PINCH_IN,t,i,n);break;case $r.PINCH_OUT:this.qe(Rn.PINCH_OUT,t,i,n)}}},t.prototype.qe=function(t,n,i,r){var s=this.ze(n,t,r),e={type:Sn.GESTURE_RECOGNITION,args:[i,s],date:bt()};this.Bn(e)},t.prototype.ze=function(t,n,i){var r={type:n};if(t.direction&&(r.direction=t.direction),t.distance&&(r.distance=t.distance),t.velocity&&(r.velocity=t.velocity),n===Rn.TAP&&i.changedTouches&&1===i.changedTouches.length){var s=i.changedTouches[0];r.pageX=Pn(s.pageX,1),r.pageY=Pn(s.pageY,1)}return r},t.He="RecordingGesturesTracker",K([Xn()],t.prototype,"processGesture",null),t}(),ss=function(t){function n(n){var i=t.call(this,n)||this;return i.name=n.name,i.publicId=n.publicId,i.systemId=n.systemId,i.nodeType=10,i}return Y(n,t),n}(Ir),es=function(t){var n;this.name=t.name,this.value=t.value,this.namespaceURI=null!==(n=t.namespaceURI)&&void 0!==n?n:""},us=function(t){function n(n){var i=t.call(this,n)||this;return i.data=n.data,i.nodeType=3,i}return Y(n,t),n}(Ir),os=function(t){function n(n){var i=t.call(this,n)||this;return i.data=n.data,i.nodeType=4,i}return Y(n,t),n}(Ir),hs=function(t){function n(n){var i=t.call(this,n)||this;return i.data=n.data,i.nodeType=8,i}return Y(n,t),n}(Ir),cs=function(t){function n(i){var r=t.call(this,i)||this;return r.baseURI=n.getBaseURI(i),r.children=[],r.nodeType=9,r}return Y(n,t),n.getBaseURI=function(t){var n=t.baseURI;if(null==n){var i=t.getElementsByTagName("base");n=0!==i.length?i[0].href:t.URL}return n},n}(Ir),as=function(t){function n(n){var i=t.call(this,n)||this;return i.mode=n.mode,i.children=[],i.nodeType=11,i}return Y(n,t),n}(Ir),fs=function(){function t(n){for(var i=function(i){var s=csArray.prototype.map.call(csArray.prototype.filter.call(n,(function(t){return t[i]})),(function(t){return function(n,r,s,e){return t[i](n,r,s,e)}})),e=t.Be(s);r[i]=e},r=this,s=0,e=t.Fe;s<e.length;s++){i(e[s])}}return t.create=function(n){return new t(n)},t.Be=function(t){var n=csArray.prototype.map.call(t,(function(t){return function(n,i,r,s){return t(n,i,r,s)||i}})),i=n[0],r=n[1],s=n[2],e=n[3],u=n[4];switch(t.length){case 0:return function(t,n){return n};case 1:return t[0];case 2:return function(t,n,s,e){return r(t,i(t,n,s,e),s,e)};case 3:return function(t,n,e,u){return s(t,r(t,i(t,n,e,u),e,u),e,u)};case 4:return function(t,n,u,o){return e(t,s(t,r(t,i(t,n,u,o),u,o),u,o),u,o)};case 5:return function(t,n,o,h){return u(t,e(t,s(t,r(t,i(t,n,o,h),o,h),o,h),o,h),o,h)};default:return function(n,i,r,s){for(var e=i,u=0;u<t.length;u++)e=t[u](n,i,r,s)||e;return i}}},t.Fe=["beforeSerializeAttributes","beforeSerializeChildren","afterSerialize","afterSerializeShadowRoot","serializeElementNode","serializeAttribute","serializeTextNode","serializeCDATASectionNode","serializeCommentNode","serializeDocumentNode","serializeShadowRootNode","serializeTextMutation","serializeAttributeMutationValue"],t}(),vs=function(){function t(t){this.Ve=fs.create(t)}return t.prototype.isAsynchronous=function(){return!0},t.prototype.serializeTextMutation=function(t,n){return this.Ve.serializeTextMutation(t,n)},t.prototype.serializeAttributeMutationValue=function(t,n,i){return this.Ve.serializeAttributeMutationValue(t,i,n)},t.prototype.serialize=function(t,n){var i,r=X({},n),s=t.nodeType;switch(s){case 1:i=this.Ge(t,r);break;case 3:i=this.We(t,r);break;case 4:i=this.Je(t,r);break;case 7:case 8:i=this.Ye(t,r);break;case 10:i=new ss(t);break;case 9:i=this.Xe(t,r);break;case 11:i=this.Ke(t,r);break;default:throw new Error("serialization is not supported (nodeType: ".concat(s,")"))}return this.Ve.afterSerialize(t,i,r),i},t.prototype.Ge=function(t,n){var i=new _r(t);this.Ve.serializeElementNode(t,i,n),i.attributes=this.$e(t,n);var r=csElementshadowRoot.apply(t);return r&&(i.shadowRoot=this.Ze(r,n)),i.children=this.Qe(t,n),i},t.prototype.$e=function(t,n){var i=hi(t.attributes);i=this.Ve.beforeSerializeAttributes(t,i,n);for(var r=0;r<i.length;++r){var s=i[r];i[r]=this.tu(t,s,n)}return i},t.prototype.tu=function(t,n,i){var r=new es(n);return this.Ve.serializeAttribute(t,n,r,i),r},t.prototype.runBeforeSerializeChildrenHook=function(t,n,i){var r=i||csNodechildNodes.apply(t);return r=n.excludedNodes?li(r,(function(t){return!n.excludedNodes.get(t)})):r,hi(r=this.Ve.beforeSerializeChildren(t,r,n))},t.prototype.Qe=function(t,n){if(n.skipChildrenSerialization)return[];for(var i=this.runBeforeSerializeChildrenHook(t,n),r=0;r<i.length;++r){var s=i[r];i[r]=this.serialize(s,n)}return i},t.prototype.We=function(t,n){var i=new us(t);return this.Ve.serializeTextNode(t,i,n),i},t.prototype.Je=function(t,n){var i=new os(t);return this.Ve.serializeCDATASectionNode(t,i,n),i},t.prototype.Ye=function(t,n){var i=new hs(t);return this.Ve.serializeCommentNode(t,i,n),i},t.prototype.Xe=function(t,n){var i=new cs(t);return this.Ve.serializeDocumentNode(t,i,n),i.children=this.Qe(t,n),i},t.prototype.Ze=function(t,n){var i=new as(t);return this.Ve.serializeShadowRootNode(t,i,n),i.children=this.Qe(t,n),this.Ve.afterSerializeShadowRoot(t,i,n),i},t.prototype.Ke=function(t,n){if(t.mode)return this.Ze(t,n);throw new Error("Not implemented yet.")},t}();function ls(){return $(this,void 0,void 0,(function(){return Z(this,(function(t){switch(t.label){case 0:return[4,new Promise((function(t){setTimeout((function(){t()}),0)}))];case 1:return t.sent(),[2]}}))}))}var ds=function(){function t(t){this.cn=t,this.nu=!1,this.iu=new Map,this.ru={},this.su=new Map,this.eu=new Map,this.ou=new Set,this.hu=new Map}return t.prototype.beforeSerializeChildren=function(t,n){var i=this;return this.nu?li(n,(function(t){return!i.isAddedNodeDuringSerialization(t)})):n},t.prototype.beforeSerializeAttributes=function(t,n,i){if(!this.nu)return n;var r=this.cn.getId(t);if(!r)return n;var s=this.eu.get(r);return s?csArray.prototype.filter.call(n,(function(t){var n="".concat(t.name).concat(t.namespaceURI||""),i=s.get(n);return!(i&&null===i.value)})):n},t.prototype.serializeTextNode=function(t,n,i){if(this.nu){var r=this.su.get(n.csId);r&&(n.data=r)}},t.prototype.serializeCommentNode=function(t,n){if(this.nu){var i=this.su.get(n.csId);i&&(n.data=i)}},t.prototype.afterSerialize=function(t,n,i){this.nu&&(csNodeparentNode.apply(t)&&!this.getSerializedNodeByNode(csNodeparentNode.apply(t))||i.skipRegisterNode||this.au(n,i))},t.prototype.afterSerializeShadowRoot=function(t,n,i){this.nu&&(i.skipRegisterNode||this.au(n,i))},t.prototype.enable=function(){this.nu=!0,this.fu()},t.prototype.disable=function(){this.nu=!1,this.fu()},t.prototype.setDefaultSerializationOptions=function(t){this.ru=t},t.prototype.getSerializedNodeById=function(t){var n;return null===(n=this.iu.get(t))||void 0===n?void 0:n.serializedNode},t.prototype.getSerializedNodeByNode=function(t){var n,i=this.cn.getId(t);if(i)return null===(n=this.iu.get(i))||void 0===n?void 0:n.serializedNode},t.prototype.getOptions=function(t){var n,i=this.cn.getId(t);return i&&(null===(n=this.iu.get(i))||void 0===n?void 0:n.options)||this.ru},t.prototype.registerInitialCharacterData=function(t,n){this.su.get(t)||this.su.set(t,n)},t.prototype.registerInitialAttributes=function(t,n,i,r){var s=this.eu.get(t),e="".concat(i).concat(n||"");if(s){if(s.has(e))return}else s=new Map,this.eu.set(t,s);var u={name:i,namespaceURI:n||"",value:r};s.set(e,u)},t.prototype.markAddedTreeAsProcessed=function(t){for(var n,i=document.createNodeIterator(t,NodeFilter.SHOW_ALL,null,!1);n=i.nextNode();){var r=this.cn.getId(n);r&&this.ou.add(r)}},t.prototype.markRemovedNodeAsProcessed=function(t,n,i){var r=this.cn.getId(i),s=this.cn.getId(t);if(r&&s){var e=this.hu.get(r);if(e)csArray.prototype.push.call(e.removedNodeIds,s),csArray.prototype.indexOf.call(e.childNodeIds,s)<0&&csArray.prototype.push.call(e.childNodeIds,s);else{for(var u=[],o=n?this.cn.getId(n):null,h=0;h<csNodechildNodes.apply(i).length;h+=1){var c=this.cn.getId(csNodechildNodes.apply(i)[h]);c&&!this.ou.has(c)&&(o&&c===o&&csArray.prototype.push.call(u,s),csArray.prototype.push.call(u,c))}null===o&&csArray.prototype.push.call(u,s);var a=[s];this.hu.set(r,{childNodeIds:u,removedNodeIds:a})}}},t.prototype.addSerializedChildToParent=function(t,n,i){var r=this.getSerializedNodeByNode(t);r&&ys(r)&&this.vu(n,r,i)},t.prototype.isAddedNodeDuringSerialization=function(t){var n=this.cn.getId(t);return!!n&&this.ou.has(n)},t.prototype.getInitialIndexInParent=function(t,n){var i=this.cn.getId(n),r=this.cn.getId(t);if(!i||!r)return-1;var s=this.hu.get(i);return s?csArray.prototype.indexOf.call(s.childNodeIds,r):-1},t.prototype.fu=function(){this.iu.clear(),this.su.clear(),this.eu.clear(),this.ou.clear(),this.hu.clear()},t.prototype.au=function(t,n){t.csId&&(this.lu(t.csId,t,n),this.du(t.csId,t),this.iu.set(t.csId,{serializedNode:t,options:n}))},t.prototype.lu=function(t,n,i){if(function(t){return t instanceof _r}(n)){var r=this.eu.get(t);if(r){for(var s=0,e=n.attributes;s<e.length;s++){var u=e[s],o="".concat(u.name).concat(u.namespaceURI||""),h=r.get(o);h&&null!==h.value&&(u.value=h.value,r.delete(o))}r.forEach((function(t){null!==t.value&&csArray.prototype.push.call(n.attributes,{name:t.name,value:t.value,namespaceURI:t.namespaceURI,anonymized:i.withAnonymization||!1})}))}}},t.prototype.vu=function(t,n,i){(i.csId||ws(i))&&(t>=0?csArray.prototype.splice.call(n.children,t,0,i):ws(i)&&csArray.prototype.push.call(n.children,i))},t.prototype.du=function(t,n){var i;if(ys(n)){var r=this.hu.get(t);if(r)for(var s=0,e=r.removedNodeIds;s<e.length;s++){var u=e[s],o=csArray.prototype.indexOf.call(r.childNodeIds,u);if(-1!==o){var h=null===(i=this.iu.get(u))||void 0===i?void 0:i.serializedNode;void 0!==h&&this.vu(o,n,h)}}}},t}();function ws(t){return"artificial"in t}function ys(t){return"children"in t}var ps,ms,gs={taskTime:25},As=function(t){function n(n,i,r,s){void 0===r&&(r=new ds(i)),void 0===s&&(s=gs);var e=t.call(this,Q([r],n,!0))||this;return e.wu=i,e.yu=r,e.pu=s,e.mu=0,e.gu=e.pu.taskTime,e}return Y(n,t),n.prototype.isAsynchronous=function(){return!0},n.prototype.handleMutationAttribute=function(t,n){var i=n[0],r=n[1],s=n[2];this.yu.getSerializedNodeById(i)||this.yu.registerInitialAttributes(i,r,s,t)},n.prototype.handleMutationCharacterData=function(t,n){var i=n[0];this.yu.getSerializedNodeById(i)||this.yu.registerInitialCharacterData(i,t.oldValue||"")},n.prototype.serializeMutationChildList=function(t,n,i){var r=this.gs(t,n,i);return this.Au(t),{removedNodes:this.ps(t,n),addedNodes:r}},n.prototype.startSerializeAsync=function(t,n){return void 0===n&&(n={}),$(this,void 0,void 0,(function(){return Z(this,(function(i){return this.mu+=1,this.yu.setDefaultSerializationOptions(n),[2,this.Su(t,n)]}))}))},n.prototype.gs=function(t,n,i){var r=[],s=null;if(t.nextSibling){var e=this.wu.getId(t.nextSibling);s=void 0!==e?e:null}for(var u=this.wu.getId(t.target),o=0;o<t.addedNodes.length;o+=1){var h=t.addedNodes[o],c=this.serialize(h,{excludedNodes:i,skipRegisterNode:!0,withAnonymization:n}),a=i.get(h);a&&i.set(h,a-1),csArray.prototype.push.call(r,[u,s,c])}return r},n.prototype.Au=function(t){for(var n=0;n<t.addedNodes.length;n+=1){var i=t.addedNodes[n];this.yu.markAddedTreeAsProcessed(i)}},n.prototype.Eu=function(t,n){if(!n)return-1;var i=this.yu.getInitialIndexInParent(t,n);return i>=0?i:csArray.prototype.indexOf.call(csNodechildNodes.apply(n),t)},n.prototype.ps=function(t,n){for(var i=[],r=0;r<t.removedNodes.length;r+=1){var s=t.removedNodes[r];if(this.yu.markRemovedNodeAsProcessed(s,t.nextSibling,t.target),this.bu(s))this.Ru(s)&&this.Nu(s,n);else{var e=this.serialize(s,{withAnonymization:n});if(this.Ru(t.target)){var u=this.Eu(s,t.target);this.yu.addSerializedChildToParent(t.target,u,e)}}var o=this.wu.getId(s);o&&csArray.prototype.push.call(i,[o])}return i},n.prototype.Nu=function(t,n){for(var i=0;i<csNodechildNodes.apply(t).length;i+=1){var r=csNodechildNodes.apply(t)[i];if(this.Ru(r))this.Nu(r,n);else if(!this.yu.isAddedNodeDuringSerialization(r)){var s=this.serialize(r,{withAnonymization:n}),e=this.Eu(r,t);this.yu.addSerializedChildToParent(t,e,s)}}},n.prototype.Ru=function(t){return!!this.yu.getSerializedNodeByNode(t)},n.prototype.bu=function(t){return this.Ru(t)||this.yu.isAddedNodeDuringSerialization(t)},n.prototype.Su=function(t,n){return void 0===n&&(n={}),$(this,void 0,void 0,(function(){var i,r,s,e,u,o,h,c,f,v,l;return Z(this,(function(d){switch(d.label){case 0:return i=this.mu,r=bt(),this.yu.enable(),n.skipChildrenSerialization=!0,s=[t],[4,ls()];case 1:if(d.sent(),i!==this.mu)return[2,null];this.Tu=csDate.now(),this.serialize(t,n),d.label=2;case 2:if(!(s.length>0))return[3,7];e=csArray.prototype.pop.call(s),u=this.yu.getOptions(e),o=this.runBeforeSerializeChildrenHook(e,u),h=csArray.prototype.shift.call(o),d.label=3;case 3:return h?csDate.now()-this.Tu>this.gu?[4,ls()]:[3,5]:[3,6];case 4:if(d.sent(),i!==this.mu)return[2,null];this.Tu=csDate.now(),d.label=5;case 5:return this.bu(h)?(h=csArray.prototype.shift.call(o),[3,3]):(csArray.prototype.push.call(s,h),c=this.serialize(h,u),f=this.Eu(h,e),this.yu.addSerializedChildToParent(e,f,c),a(h)&&csElementshadowRoot.apply(h)&&(v=csElementshadowRoot.apply(h),csArray.prototype.push.call(s,v)),h=csArray.prototype.shift.call(o),[3,3]);case 6:return[3,2];case 7:if(!(l=this.yu.getSerializedNodeByNode(t)))throw this.yu.disable(),new Error("traverseAndSerialize : fail to serialize");return this.yu.disable(),[2,{args:[l],date:r,type:Sn.INITIAL_DOM}]}}))}))},n}(vs),Ss=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Y(n,t),n.prototype.isAsynchronous=function(){return!1},n}(vs),Es=function(){function t(){this.Ou=new Map,this.ku=document.implementation.createHTMLDocument("")}return t.prototype.beforeSerializeChildren=function(t,n){if(!p(t))return n;var i=this.Cu(t);if(null===i||0===i.length)return n;if(function(t){for(var n=t.length,i=0;i<n;i++)switch(csString.prototype.charCodeAt.call(t,i)){case 9:case 10:case 11:case 12:case 13:case 32:case 160:continue;default:return!1}return!0}(t.textContent)){var r=hi(n);return csArray.prototype.push.call(r,this.Iu(i)),r}var s=this._u(t);if(s===i.length)return n;for(var e=new csArray(i.length-s),u=s,o=0;u<i.length;u+=1,o+=1)e[o]=i[u];r=hi(n);return csArray.prototype.push.call(r,this.Iu(e)),r},t.prototype._u=function(t){var n=this.Ou.get(t.textContent);if(n)return n;var i=t.cloneNode(!0);i.textContent=t.textContent,this.ku.head.appendChild(i);var r=this.Cu(i);return n=r?r.length:0,this.Ou.set(t.textContent,n),this.ku.head.removeChild(i),n},t.prototype.Cu=function(t){try{if(t.disabled)return null;var n=t.sheet;return n?n.cssRules||n.rules:null}catch(t){if("SecurityError"!==t.name&&"InvalidAccessError"!==t.name)throw t;return null}},t.prototype.Iu=function(t){var n="";vi(t,(function(t){return n+=t.cssText}));var i=document.createTextNode(n);return i.__contentsquare_artificial=!0,i},t}(),bs=function(){function t(t,n){this.cn=t,this.Xi=n,this.Pu=1,this.Hn=!1}return t.prototype.isAdoptedStyleSheetsSupported=function(){return"adoptedStyleSheets"in Document.prototype&&"queueMicrotask"in window},t.prototype.init=function(){this.isAdoptedStyleSheetsSupported()&&(this.Mu=new Set,this.xu=$i(window.ShadowRoot.prototype,"adoptedStyleSheets",this.Lu.bind(this)),this.Du=$i(window.Document.prototype,"adoptedStyleSheets",this.Lu.bind(this)))},t.prototype.onEvent=function(t){this.Bn=t},t.prototype.start=function(){!this.Hn&&this.isAdoptedStyleSheetsSupported()&&(this.Hn=!0,this.Uu(),this.xu&&this.xu.activate(),this.Du&&this.Du.activate())},t.prototype.stop=function(){this.Hn&&this.isAdoptedStyleSheetsSupported()&&(this.Hn=!1,this.ju(),this.Mu.clear(),this.xu&&this.xu.deactivate(),this.Du&&this.Du.deactivate())},t.prototype.serializeDocumentNode=function(t){var n;(null===(n=t.adoptedStyleSheets)||void 0===n?void 0:n.length)&&this.Lu(t,t.adoptedStyleSheets)},t.prototype.serializeShadowRootNode=function(t){var n;(null===(n=t.adoptedStyleSheets)||void 0===n?void 0:n.length)&&this.Lu(t,t.adoptedStyleSheets)},t.prototype.Uu=function(){this.bs=this.Xi.registerToInsertRuleInterceptor(this.Hu.bind(this)),this.Rs=this.Xi.registerToDeleteRuleInterceptor(this.qu.bind(this))},t.prototype.ju=function(){var t,n;null===(t=this.bs)||void 0===t||t.call(this),null===(n=this.Rs)||void 0===n||n.call(this)},t.prototype.Lu=function(t,n){var i=this;this.Hn&&bi((function(){csArray.prototype.forEach.call(n,(function(t){return i.zu(t)}));var r=csArray.prototype.map.call(n,(function(t){return i.Bu(t)})),s=i.cn.getId(t);if(s){var e={type:Sn.SET_ADOPTED_STYLE_SHEETS,args:[s,r],date:bt()};i.Bn(e)}}))},t.prototype.Bu=function(t){return t.__adopted_stylesheet_id},t.prototype.Hu=function(t,n){var i=n[0],r=n[1],s=this.Fu(t);if(s){var e={date:bt(),type:Sn.ADOPTED_STYLESHEET_RULE_INSERT,args:Pt(r)?[s,i,r]:[s,i]};this.Bn(e)}},t.prototype.qu=function(t,n){var i=n[0],r=this.Fu(t);if(r&&r){var s={date:bt(),type:Sn.ADOPTED_STYLESHEET_RULE_DELETE,args:[r,i]};this.Bn(s)}},t.prototype.Fu=function(t){return this.Mu.has(t)&&t.__adopted_stylesheet_id?t.__adopted_stylesheet_id:null},t.prototype.zu=function(t){if(!this.Mu.has(t)){var n=this.Pu++;t.__adopted_stylesheet_id=n,this.Mu.add(t);var i=this.Vu(t),r={type:Sn.REGISTER_ADOPTED_STYLE_SHEET,args:[n,i],date:bt()};this.Bn(r)}},t.prototype.Vu=function(t){var n=[];try{n=csArray.prototype.map.call(t.cssRules,(function(t){return t.cssText}))}catch(t){on.warn("AdoptedStylesheetsTracker.serializeStyleSheet: could not extract cssRules")}return{cssRules:n}},t}();!function(t){t.replayRecordingUnmaskedUrlRegex="replayRecordingUnmaskedUrlRegex",t.replayRecordingMaskedUrlRegex="replayRecordingMaskedUrlRegex",t.replayRecordingUnmaskedUrlRegexRules="replayRecordingUnmaskedUrlRegexRules",t.replayRecordingMaskedUrlRegexRules="replayRecordingMaskedUrlRegexRules"}(ps||(ps={})),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"}(ms||(ms={}));var Rs,Ns=function(){function t(t,n,i,r){this.Gu=t,this.D=n,this.tt=i,this.Wu=r}return t.prototype.init=function(){this.Ju()},t.prototype.shouldUseAnonymization=function(){if(this.Gu.isReplayUnanonymizedAllowedByConsent()){switch(this.D.anonymisationMethod){case null:case ps.replayRecordingMaskedUrlRegex:return!(!this.D.replayRecordingMaskedUrlRegex||!this.D.replayRecordingMaskedUrlRegex.test(this.tt.getAnonymizedUrl()));case ps.replayRecordingMaskedUrlRegexRules:return this.Wu.evaluateUrl(this.tt.getAnonymizedUrl())}return!1}switch(this.D.anonymisationMethod){case null:case ps.replayRecordingUnmaskedUrlRegex:return!(this.D.replayRecordingUnmaskedUrlRegex&&this.D.replayRecordingUnmaskedUrlRegex.test(this.tt.getAnonymizedUrl()));case ps.replayRecordingUnmaskedUrlRegexRules:return!this.Wu.evaluateUrl(this.tt.getAnonymizedUrl())}return!0},t.prototype.Ju=function(){this.D.anonymisationMethod===ps.replayRecordingMaskedUrlRegexRules&&this.D.replayRecordingMaskedUrlRegexRules?this.Wu.setRegexRules(this.D.replayRecordingMaskedUrlRegexRules):this.D.anonymisationMethod===ps.replayRecordingUnmaskedUrlRegexRules&&this.D.replayRecordingUnmaskedUrlRegexRules&&this.Wu.setRegexRules(this.D.replayRecordingUnmaskedUrlRegexRules)},t}(),Ts=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}(),Os=function(){function t(){this.Hn=!1,this.Yu=[],this.Xu=[],this.Ku()}return t.prototype.registerToInsertRuleInterceptor=function(t){var n=this;return this.$u(this.Yu,t)?function(){}:(csArray.prototype.push.call(this.Yu,t),function(){n.Yu=csArray.prototype.filter.call(n.Yu,(function(n){return n!==t}))})},t.prototype.registerToDeleteRuleInterceptor=function(t){var n=this;return this.$u(this.Xu,t)?function(){}:(csArray.prototype.push.call(this.Xu,t),function(){n.Xu=csArray.prototype.filter.call(n.Xu,(function(n){return n!==t}))})},t.prototype.start=function(){var t,n;this.Hn||(this.Hn=!0,null===(t=this.Zu)||void 0===t||t.activate(),null===(n=this.Qu)||void 0===n||n.activate())},t.prototype.stop=function(){var t,n;this.Hn&&(this.Hn=!1,null===(t=this.Zu)||void 0===t||t.deactivate(),null===(n=this.Qu)||void 0===n||n.deactivate())},t.prototype.$u=function(t,n){return csArray.prototype.indexOf.call(t,n)>-1},t.prototype.no=function(t,n){csArray.prototype.forEach.call(this.Yu,(function(i){return i(t,n)}))},t.prototype.io=function(t,n){csArray.prototype.forEach.call(this.Xu,(function(i){return i(t,n)}))},t.prototype.Ku=function(){var t=this;this.ro()&&(this.Zu=Ki({target:window.CSSStyleSheet.prototype,methodName:"insertRule",hook:function(n){var i=n.context,r=n.args;t.no(i,r)}})),this.so()&&(this.Qu=Ki({target:window.CSSStyleSheet.prototype,methodName:"deleteRule",hook:function(n){var i=n.context,r=n.args;return t.io(i,r)}}))},t.prototype.ro=function(){var t,n;return"function"==typeof(null===(n=null===(t=window.CSSStyleSheet)||void 0===t?void 0:t.prototype)||void 0===n?void 0:n.insertRule)},t.prototype.so=function(){var t,n;return"function"==typeof(null===(n=null===(t=window.CSSStyleSheet)||void 0===t?void 0:t.prototype)||void 0===n?void 0:n.deleteRule)},t}(),ks=function(){function t(t){this.eo={},this.uo=new Ci(t)}return t.prototype.save=function(t){var n=t.key,i=t.metadata,r=t.events;this.uo.isThresholdReached()||(this.uo.addString(n),"string"==typeof r?this.uo.addString(r):this.uo.addArrayBuffer(r),this.uo.isThresholdReached()||(this.eo[n]={metadata:i,events:r}))},t.prototype.recover=function(t){var n=this,i=[];csArray.prototype.forEach.call(this.oo(),(function(t){var r=n.eo[t];void 0!==r&&(delete r.metadata.datatype,csArray.prototype.push.call(i,r),n.ho(t))})),0!==i.length&&(t(i),this.uo.reset())},t.prototype.oo=function(){return Object.keys(this.eo)},t.prototype.ho=function(t){delete this.eo[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"}(Rs||(Rs={}));var Cs,Is,_s,Ps,Ms=function(){function t(t,n,i){this.co=t,this.ao=i,this.fo=Rs.NOT_STARTED,this.vo=[],this.lo=0,this.do=self.origin,this.wo="object"==typeof window?"":"worker-",this.uo=new Ci(n),this.yo()}return t.prototype.yo=function(){return $(this,void 0,void 0,(function(){return Z(this,(function(t){switch(t.label){case 0:return[4,this.po()];case 1:return t.sent(),this.fo===Rs.READY?this.mo():this.ao(this.vo),[2]}}))}))},t.prototype.mo=function(){var t=this;csArray.prototype.forEach.call(this.vo,(function(n){t.save(n)})),this.vo=[]},t.prototype.save=function(t){return $(this,void 0,void 0,(function(){var n,i,r;return Z(this,(function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),this.fo===Rs.OPEN_IN_PROGRESS?(csArray.prototype.push.call(this.vo,t),[2]):this.fo!==Rs.READY||this.uo.isThresholdReached()?[2]:(n=t.key,i=t.metadata,r=t.events,this.uo.addString(n),"string"==typeof r?this.uo.addString(r):this.uo.addArrayBuffer(r),this.uo.isThresholdReached()?[2]:[4,this.Ao.put("".concat(this.do,"/").concat(n),new Response(r,{headers:i}))]);case 1:return s.sent(),[3,3];case 2:return s.sent(),[3,3];case 3:return[2]}}))}))},t.prototype.recover=function(t){return $(this,void 0,void 0,(function(){return Z(this,(function(n){switch(n.label){case 0:return this.Ao?[3,2]:[4,this.po()];case 1:if(n.sent(),this.fo!==Rs.READY)return[2];n.label=2;case 2:return this.So(t),[2]}}))}))},t.prototype.po=function(){return $(this,void 0,void 0,(function(){var t;return Z(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),this.fo=Rs.OPEN_IN_PROGRESS,t=this,[4,self.caches.open("".concat(this.wo).concat(this.co))];case 1:return t.Ao=n.sent(),this.fo=Rs.READY,[3,3];case 2:return n.sent(),this.fo=Rs.OPEN_FAILED,[3,3];case 3:return[2]}}))}))},t.prototype.So=function(t){return $(this,void 0,void 0,(function(){var n,i,r,s,e=this;return Z(this,(function(u){switch(u.label){case 0:return u.trys.push([0,5,6,7]),this.lo++,this.lo>1?[2]:[4,this.Ao.keys()];case 1:return 0===(n=u.sent()).length?[2]:[4,this.Ao.matchAll()];case 2:return i=u.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 s=u.sent(),[4,Promise.all(csArray.prototype.map.call(n,(function(t){return e.Ao.delete(t)})))];case 4:return u.sent(),t(s),this.uo.reset(),[3,7];case 5:return u.sent(),[3,7];case 6:return this.lo--,[7];case 7:return[2]}}))}))},t}(),xs=function(){function t(t){self.caches?this.Eo(t):this.bo()}return t.prototype.save=function(t){this.Ro.save(t)},t.prototype.recover=function(t){this.Ro.recover(t)},t.prototype.Eo=function(n){var i=this;this.Ro=new Ms(n,t.To,(function(t){i.bo(t)}))},t.prototype.bo=function(n){var i=this;this.Ro=new ks(t.To),n&&csArray.prototype.forEach.call(n,(function(t){i.Ro.save(t)}))},t.To=16777216,t}();!function(t){t.PORTRAIT="Portrait",t.LANDSCAPE="Landscape"}(Cs||(Cs={})),function(t){t.PORTRAIT_PRIMARY="portrait-primary",t.PORTRAIT_SECONDARY="portrait-secondary",t.LANDSCAPE_PRIMARY="landscape-primary",t.LANDSCAPE_SECONDARY="landscape-secondary"}(Is||(Is={})),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"}(_s||(_s={})),function(t){function n(){return"orientation"in screen}function i(){return"orientation"in window}t.isScreenOrientationApiSupported=n,t.isDeprecatedScreenOrientationApiSupported=i;var r=n()?function(){switch(screen.orientation.type){case Is.PORTRAIT_PRIMARY:case Is.PORTRAIT_SECONDARY:return Cs.PORTRAIT;case Is.LANDSCAPE_PRIMARY:case Is.LANDSCAPE_SECONDARY:return Cs.LANDSCAPE;default:return Cs.PORTRAIT}}:i()?function(){switch(window.orientation){case _s.PORTRAIT:case _s.PORTRAIT_REVERSE:return Cs.PORTRAIT;case _s.LANDSCAPE:case _s.LANDSCAPE_REVERSE:return Cs.LANDSCAPE;default:return Cs.PORTRAIT}}:function(){return Cs.LANDSCAPE};t.getCurrentOrientation=function(){return r()}}(Ps||(Ps={}));var Ls,Ds=function(){function t(){this.Oo=null,this.ko=null,this.Hn=!1}return t.prototype.start=function(){this.Hn||(this.Hn=!0,this.onScreenPotentiallyChanged())},t.prototype.stop=function(){this.Hn&&(this.Hn=!1,this.Oo=null,this.ko=null)},t.prototype.setOnScreenChangedCallback=function(t){this.Co=t},t.prototype.onScreenPotentiallyChanged=function(){var t;if(this.Hn){var n=Ps.getCurrentOrientation(),i=this.Io(n),r=i.screenWidth,s=i.screenHeight;if(r!==this.Oo||s!==this.ko){this.Oo=r,this.ko=s;var e={type:Sn.SCREEN_RESIZE,args:[r,s],date:bt()};null===(t=this.Co)||void 0===t||t.call(this,e)}}},t.prototype.Io=function(t){var n,i,r=or.screenWidth(),s=or.screenHeight();return t===Cs.PORTRAIT?(n=r,i=s):(n=Math.max(r,s),i=Math.min(r,s)),{screenWidth:n,screenHeight:i}},t}(),Us=function(){function t(t){this.ar=t,this._o="cssrm://",this.Po=0}return t.prototype.beforeSerializeAttributes=function(t,n){if(ei.isSensitive(t))return n;if(y(t)||v(t)&&l(csNodeparentNode.apply(t))){var i=n,r=t.getAttribute("src");if(null!==r&&r.length>0&&(Fr(r)||this.ar.isOnlineAssetsActivated()))return this.Po++,this.Mo(t.src,this.Po),this.xo(n,this.Po);if(null!==t.getAttribute("srcset")&&this.ar.isOnlineAssetsActivated()){for(var s=Wr(t.srcset),e=this.Po+1,u=0,o=s;u<o.length;u++){var h=o[u];this.Po++,this.Mo(Wt(h),this.Po)}i=this.Lo(n,e,s)}return i}return w(t)&&""!==t.getAttribute("href")&&this.ar.isOnlineAssetsActivated()?(this.Po++,this.Do(t.href,this.Po),this.Uo(n,this.Po)):null!==t.getAttribute("style")?this.jo(n):n},t.prototype.serializeTextNode=function(t,n,i){t.parentElement&&p(t.parentElement)&&(n.data=this.Ho(n.data))},t.prototype.serializeTextMutation=function(t,n){return csNodeparentNode.apply(t)&&p(csNodeparentNode.apply(t))?this.Ho(n):n},t.prototype.serializeAttributeMutationValue=function(t,n,i){if(ei.isSensitive(t))return n;if(y(t)||v(t)&&l(csNodeparentNode.apply(t))){if("src"===i&&(Fr(n)||this.ar.isOnlineAssetsActivated()))return this.Po++,this.Mo(n,this.Po),this._o+this.Po;if("srcset"===i&&this.ar.isOnlineAssetsActivated()){for(var r=Wr(n),s=this.Po+1,e=0,u=r;e<u.length;e++){var o=u[e];this.Po++,this.Mo(Wt(o),this.Po)}return this.qo(s,n,r).value}}return w(t)&&"href"===i&&this.ar.isOnlineAssetsActivated()?(this.Po++,this.Do(n,this.Po),this._o+this.Po):"style"===i?this.Ho(n):n},t.prototype.Ho=function(t){var n=csArray.from(new Set(Br(t)));if(this.zo(n)||this.ar.isOnlineAssetsActivated()&&this.Bo(n)){for(var i=t,r=0,s=n;r<s.length;r++){var e=s[r];if(this.Fo(e))return i;(this.ar.isOnlineAssetsActivated()||Fr(e))&&(this.Po++,i=csString.prototype.replace.call(i,e,this._o+this.Po)),Fr(e)?this.Mo(e,this.Po):this.ar.isOnlineAssetsActivated()&&(Gr(e)?this.Do(e,this.Po):this.Mo(e,this.Po))}return i}return t},t.prototype.zo=function(t){return csArray.prototype.some.call(t,(function(t){return Fr(t)}))},t.prototype.Bo=function(t){return csArray.prototype.some.call(t,(function(t){return!Fr(t)}))},t.prototype.jo=function(t){var n=this;return csArray.prototype.map.call(t,(function(t){if("style"!==t.name)return t;var i=document.createAttribute(t.name);return i.value=n.Ho(t.value),i}))},t.prototype.xo=function(t,n){var i=this;return csArray.prototype.map.call(t,(function(t){if("src"!==t.name)return t;var r=document.createAttribute(t.name);return r.value=i._o+n,r}))},t.prototype.Lo=function(t,n,i){var r=this;return csArray.prototype.map.call(t,(function(t){return"srcset"!==t.name?t:r.qo(n,t.value,i)}))},t.prototype.qo=function(t,n,i){var r=t,s=document.createAttribute("srcset");s.value=n;for(var e=0,u=i;e<u.length;e++){var o=u[e];s.value=csString.prototype.replace.call(s.value,o,this._o+r),r++}return s},t.prototype.Uo=function(t,n){for(var i=[],r=0,s=t;r<s.length;r++){var e=s[r],u=document.createAttribute(e.name);if(csArray.prototype.push.call(i,u),"href"===e.name){var o=document.createAttribute("data-cs-original-href");o.value=e.value,csArray.prototype.push.call(i,o),u.value=this._o+n}else u.value=e.value}return i},t.prototype.Mo=function(t,n){this.ar.processStaticResource({id:n,input:t})},t.prototype.Do=function(t,n){this.ar.processStaticCssLinkResource({id:n,input:t})},t.prototype.Fo=function(t){return 0===csString.prototype.replaceAll.call(t,/['"]+/g,"").length},t}();!function(t){t[t.NOT_EXIST=2]="NOT_EXIST"}(Ls||(Ls={}));var js=function(t){function n(n,i,r,s){void 0===s&&(s=8388608);var e=t.call(this)||this;return e.ar=n,e.Vo=i,e.Go=r,e.Wo=s,e.Jo={},e.Yo=new Set,e.oi=!1,e}return Y(n,t),n.prototype.onStart=function(){this.ar.start()},n.prototype.onStop=function(){this.ar.stop()},n.prototype.initState=function(){var t=this;this.ar.isStaticResourceManagerSupported()&&(this.Xo=this.Go.getRequestParameters(),this.Ko="".concat(this.Vo,"/exist?").concat(ot.toQuery(this.Xo)),this.$o="".concat(this.Vo,"/putTag?").concat(ot.toQuery(this.Xo)),this.Zo=Lr((function(){return $(t,void 0,void 0,(function(){return Z(this,(function(t){switch(t.label){case 0:if(this.oi)return this.Zo(),[2];t.label=1;case 1:return t.trys.push([1,,3,4]),this.oi=!0,[4,this.Qo()];case 2:return t.sent(),[3,4];case 3:return this.oi=!1,[7];case 4:return[2]}}))}))}),300),this.ar.sendStaticResource((function(n){t.Yo.has(n.hash)||(t.Yo.add(n.hash),t.Jo[n.hash]=n,t.Zo())})))},n.prototype.onIframeStaticResource=function(t){this.ar.isStaticResourceManagerSupported()&&!this.Yo.has(t.hash)&&(this.Yo.add(t.hash),this.Jo[t.hash]=t,this.Zo())},n.prototype.Qo=function(){return $(this,void 0,void 0,(function(){var t,n,i,r=this;return Z(this,(function(s){switch(s.label){case 0:return t=this.Jo,this.Jo={},[4,this.th(t)];case 1:return(n=s.sent()).length?(i=this.nh(n),[4,Promise.all(csArray.prototype.map.call(i,(function(t){return window.fetch(r.$o,{method:"POST",body:t})})))]):[2];case 2:return s.sent(),[2]}}))}))},n.prototype.ih=function(t){return $(this,void 0,void 0,(function(){var n,i;return Z(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),(n=Object.keys(t)).length?(i={projectId:this.Xo.pid,filter:Ls.NOT_EXIST,hashes:n,touch:!0},[4,window.fetch(this.Ko,{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.th=function(t){return $(this,void 0,void 0,(function(){var n,i,r;return Z(this,(function(s){switch(s.label){case 0:n=[],s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this.ih(t)];case 2:return i=s.sent(),csArray.prototype.forEach.call(i,(function(i){var r=t[i];r?csArray.prototype.push.call(n,r):on.warn("SRM: received unknown hash: "+i)})),[3,4];case 3:return r=s.sent(),on.warn("SRM Service,getUnknownHashes error: ".concat(r.message," ")),[3,4];case 4:return[2,n]}}))}))},n.prototype.nh=function(t){for(var n=0,i=[],r=0,s=t;r<s.length;r++){var e=s[r],u=e.blob,o=e.hash,h=n+u.size;if(h<this.Wo){this.rh(i).append("",u,o),n=h}else{var c=new FormData;csArray.prototype.push.call(i,c),c.append("",u,o),n=u.size}}return i},n.prototype.rh=function(t){if(0===t.length){var n=new FormData;return csArray.prototype.push.call(t,n),n}return t[t.length-1]},n}(Mi),Hs=function(){function t(){this.eh=[]}return t.prototype.setRegexRules=function(t){var n=this;this.eh=csArray.prototype.map.call(t,(function(t){return n.uh(t)}))},t.prototype.evaluateUrl=function(t){var n=this;return csArray.prototype.some.call(this.eh,(function(i){var r,s,e=n.oh(t,i);return(null==i?void 0:i.notOperator)?!(null===(r=i.regex)||void 0===r?void 0:r.test(e)):null===(s=i.regex)||void 0===s?void 0:s.test(e)}))},t.prototype.oh=function(t,n){var i=$t(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.hh=function(t){return t.ignoreCaseSensitivity?"i":""},t.prototype.uh=function(t){switch(t.operator){case ms.NOT_START:t.notOperator=!0;case ms.START:t.regex=new RegExp("^".concat(t.value),this.hh(t));break;case ms.NOT_END:t.notOperator=!0;case ms.END:t.regex=new RegExp("".concat(t.value,"$"),this.hh(t));break;case ms.NOT_CONTAIN:t.notOperator=!0;case ms.CONTAIN:t.regex=new RegExp("".concat(t.value),this.hh(t));break;case ms.NOT_EXACT:t.notOperator=!0;case ms.EXACT:t.regex=new RegExp("^".concat(t.value,"$"),this.hh(t));break;default:on.warn("buildRegexWithRule, unknown type: ".concat(t.operator))}return t},t}(),qs=function(){return void 0!==window.performance&&window.performance.now?window.performance.timing.navigationStart+Math.round(window.performance.now()):csDate.now()};function zs(t){for(var n=new ArrayBuffer(t.length),i=new Uint8Array(n),r=0,s=t.length;r<s;r+=1)i[r]=csString.prototype.charCodeAt.call(t,r);return n}function Bs(t){for(var n=new Uint8Array(t),i="",r=0;r<n.byteLength;r+=1)i+=csString.fromCodePoint(n[r]);return i}function Fs(t){return zs(self.atob(t))}function Vs(t){var n=csArray.from(new Uint8Array(t));return csArray.prototype.join.call(csArray.prototype.map.call(n,(function(t){return csString.prototype.padStart.call(t.toString(16),2,"0")})),"")}function Gs(t){var n=-1!==csString.prototype.indexOf.call(t,";base64,"),i=csString.prototype.indexOf.call(t,","),r=n?[csString.prototype.substring.call(t,0,i-7),csString.prototype.substring.call(t,i+1)]:[csString.prototype.substring.call(t,0,i),csString.prototype.substring.call(t,i+1)];!n&&/^%3Csvg/i.test(r[1])&&(r[1]=decodeURIComponent(r[1]));var s=n?Fs(r[1]):zs(r[1]);return new Blob([s],{type:csString.prototype.replace.call(r[0],"data:","")})}var Ws,Js="RSA-OAEP",Ys="AES-CTR";!function(t){var n,i,r,s=!1,e=null,u=window.TextEncoder?new window.TextEncoder:null;function o(){var t,n;return null!=(null===(n=null===(t=window.self.crypto)||void 0===t?void 0:t.subtle)||void 0===n?void 0:n.encrypt)&&null!=window.self.CryptoKey}function h(n){return xn(this,void 0,void 0,(function(){var r;return Ln(this,(function(u){switch(u.label){case 0:return!o()||s?[2,null]:[4,i];case 1:u.sent(),(r=zs(n)).byteLength>190&&(r=r.slice(0,190)),u.label=2;case 2:return u.trys.push([2,4,,5]),[4,t.crypto.encrypt({name:Js},e,r)];case 3:return[2,Bs(u.sent())];case 4:return u.sent(),[2,null];case 5:return[2]}}))}))}function c(n){var i;return xn(this,void 0,void 0,(function(){var r;return Ln(this,(function(s){switch(s.label){case 0:if(!o())return[2,null];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,t.crypto.exportKey("jwk",n)];case 2:return r=s.sent(),[2,null!==(i=r.k)&&void 0!==i?i:null];case 3:return s.sent(),[2,null];case 4:return[2]}}))}))}t.crypto=null===(n=window.crypto)||void 0===n?void 0:n.subtle,t.prop="toEncrypt",t.MAX_DIGEST_INPUT_SIZE=100,t.isKeyImported=function(){return!s},t.getCryptoKey=function(){return e},t.isSupported=o,t.importKey=function(n){return xn(this,void 0,void 0,(function(){return Ln(this,(function(r){switch(r.label){case 0:return[4,i=t.crypto.importKey("spki",Fs(n),{name:Js,hash:"SHA-256"},!1,["encrypt"]).catch((function(){return s=!0,null}))];case 1:return e=r.sent(),i=void 0,e||hn.warn("Fail to import public key '".concat(n,"'")),[2]}}))}))},t.asymmetricEncrypt=h,t.symmetricEncrypt=function(n,i){return xn(this,void 0,void 0,(function(){var r,e;return Ln(this,(function(h){switch(h.label){case 0:if(!o()||s)return[2,null];r={counter:i.initializationVector,name:Ys,length:64},e=u.encode(n),h.label=1;case 1:return h.trys.push([1,3,,4]),[4,t.crypto.encrypt(r,i.cryptoKey,e)];case 2:return[2,Bs(h.sent())];case 3:return h.sent(),[2,null];case 4:return[2]}}))}))},t.encryptSecret=function(t){return xn(this,void 0,void 0,(function(){var n,i;return Ln(this,(function(r){switch(r.label){case 0:return[4,c(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 xn(this,void 0,void 0,(function(){return Ln(this,(function(n){switch(n.label){case 0:if(!o()||s)return[2,null];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,t.crypto.generateKey({name:Ys,length:128},!0,["encrypt","decrypt"])];case 2:return[2,{cryptoKey:n.sent(),initializationVector:window.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 xn(this,void 0,void 0,(function(){var i;return Ln(this,(function(s){switch(s.label){case 0:n=csString.prototype.toLocaleLowerCase.call(csString.prototype.trim.call(n)),r&&(n="".concat(n,":").concat(r)),i=u.encode(n),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,t.crypto.digest("SHA-1",i)];case 2:return[2,Vs(s.sent())];case 3:return s.sent(),[2,null];case 4:return[2]}}))}))},t.generateKeyPair=function(){return window.crypto.subtle.generateKey({name:"RSA-OAEP",modulusLength:2048,publicExponent:new Uint8Array([1,0,1]),hash:"SHA-256"},!0,["encrypt","decrypt"])}}(Ws||(Ws={}));var Xs,Ks,$s=function(){function t(t){void 0===t&&(t=100),this.ah=t,this.fh="original-resource-name",this.lh=!1,this.Hn=!1,this.yh=!1,this.ph="SHA-256",this.mh={},this.gh=null}return t.prototype.init=function(){"Promise"in window&&"function"==typeof window.Promise&&Ws.isSupported()&&(this.lh=!0)},t.prototype.enableOnlineAssets=function(){this.yh=!0},t.prototype.isOnlineAssetsActivated=function(){return this.yh},t.prototype.isSupported=function(){return this.lh},t.prototype.processStaticResource=function(t){var n;return $(this,void 0,void 0,(function(){var i,r,s,e,u,o;return Z(this,(function(h){switch(h.label){case 0:return h.trys.push([0,7,,8]),this.lh?(i=void 0,Fr(t.input)?[3,3]:[4,window.fetch(t.input)]):[2];case 1:return[4,h.sent().blob()];case 2:return i=h.sent(),[3,4];case 3:if(!(r=Gs(t.input)))return[2];i=r,h.label=4;case 4:return[4,i.arrayBuffer()];case 5:return s=h.sent(),[4,crypto.subtle.digest(this.ph,s)];case 6:return e=h.sent(),u=Vs(e),o=Fr(t.input)?void 0:t.input,this.Ah(t.id,u,o),null===(n=this.Sh)||void 0===n||n.call(this,{hash:u,blob:i}),[3,8];case 7:return h.sent(),[3,8];case 8:return[2]}}))}))},t.prototype.processStaticCssLinkResource=function(t){return $(this,void 0,void 0,(function(){var n;return Z(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),this.lh?[4,this.Eh(t.input)]:[2];case 1:return n=i.sent(),this.Ah(t.id,n.get(Wt(t.input)).hash,t.input),this.bh(n),[3,3];case 2:return i.sent(),[3,3];case 3:return[2]}}))}))},t.prototype.isStaticResourceManagerSupported=function(){return this.lh},t.prototype.onEvent=function(t){this.Bn=t},t.prototype.sendStaticResource=function(t){this.Sh=t},t.prototype.flushEvents=function(){var t;if(Object.keys(this.mh).length){this.gh&&clearTimeout(this.gh);var n={type:Sn.RESOURCE_HASHES,date:qs(),args:[this.mh]};this.gh=null,this.mh={},null===(t=this.Bn)||void 0===t||t.call(this,n)}},t.prototype.start=function(){this.Hn||(this.Hn=!0)},t.prototype.stop=function(){this.Hn&&(this.Hn=!1,this.yh=!1,this.flushEvents())},t.prototype.Ah=function(t,n,i){var r=this,s=n;i&&(s+="?".concat(this.fh,"=").concat(i)),this.mh[t]=s,this.gh&&clearTimeout(this.gh),this.gh=window.setTimeout((function(){return r.flushEvents()}),this.ah)},t.prototype.Eh=function(t){return $(this,void 0,void 0,(function(){var n,i,r,s,e,u,o,h,c,a,f,v,l,d,w,y,p;return Z(this,(function(m){switch(m.label){case 0:n=new Map,i=Wt(t),r=[{resourceRawPath:t,resourceAbsolutePath:i}],m.label=1;case 1:if(!(r.length>0))return[3,17];if(s=csArray.prototype.pop.call(r),!this.isOnlineAssetsActivated()&&null!==s.resourceAbsolutePath&&!Fr(s.resourceAbsolutePath))return n.set(s.resourceAbsolutePath,null),[3,1];if(void 0!==n.get(s.resourceAbsolutePath))return[3,1];m.label=2;case 2:return m.trys.push([2,15,,16]),null===s.resourceRawPath||csString.prototype.indexOf.call(s.resourceRawPath,".css")>0?s.data?[3,5]:[4,fetch(s.resourceAbsolutePath)]:[3,8];case 3:return w=m.sent(),e=s,[4,w.text()];case 4:e.data=m.sent(),m.label=5;case 5:for(s.nestedResources||(s.nestedResources=csArray.from(new Set(Br(s.data)))),u=!1,o=!1,h=function(t){var i=Fr(t)?t:s.resourceAbsolutePath?Jt(t,s.resourceAbsolutePath):Wt(t),e=n.get(i);if(void 0!==e){if(null!==e){var h=c.Rh(e,t);s.data=csString.prototype.replaceAll.call(s.data,t,h)}return"continue"}var a=void 0!==csArray.prototype.find.call(r,(function(t){return t.resourceAbsolutePath===i}));a||(u=!0,o||(csArray.prototype.push.call(r,s),o=!0),csArray.prototype.push.call(r,{resourceRawPath:t,resourceAbsolutePath:i}))},c=this,a=0,f=s.nestedResources;a<f.length;a++)v=f[a],h(v);return u?[3,7]:[4,this.Nh(s.data)];case 6:l=m.sent(),n.set(s.resourceAbsolutePath,{hash:l.hash,blob:l.blob}),m.label=7;case 7:return[3,14];case 8:return d=void 0,Fr(s.resourceAbsolutePath)?[3,11]:[4,fetch(s.resourceAbsolutePath)];case 9:return[4,(w=m.sent()).blob()];case 10:return d=m.sent(),[3,12];case 11:if(!(y=Gs(s.resourceAbsolutePath)))return n.set(s.resourceAbsolutePath,null),[3,1];d=y,m.label=12;case 12:return[4,this.Th(d)];case 13:p=m.sent(),n.set(s.resourceAbsolutePath,{hash:p,blob:d}),m.label=14;case 14:return[3,16];case 15:return m.sent(),n.set(s.resourceAbsolutePath,null),[3,16];case 16:return[3,1];case 17:return[2,n]}}))}))},t.prototype.Rh=function(t,n){var i="cs://resources/".concat(t.hash);return Fr(n)||(i+="?".concat(this.fh,"=").concat(n)),i},t.prototype.Nh=function(t){return $(this,void 0,void 0,(function(){var n,i,r;return Z(this,(function(s){switch(s.label){case 0:return[4,(n=new Blob([t],{type:"text/css"})).arrayBuffer()];case 1:return i=s.sent(),[4,crypto.subtle.digest(this.ph,i)];case 2:return r=s.sent(),[2,{blob:n,hash:Vs(r)}]}}))}))},t.prototype.Th=function(t){return $(this,void 0,void 0,(function(){var n;return Z(this,(function(i){switch(i.label){case 0:return[4,t.arrayBuffer()];case 1:return n=i.sent(),[4,crypto.subtle.digest(this.ph,n)];case 2:return[2,Vs(i.sent())]}}))}))},t.prototype.bh=function(t){var n=this;t.forEach((function(t){var i;t&&(null===(i=n.Sh)||void 0===i||i.call(n,{hash:t.hash,blob:t.blob}))}))},t}(),Zs=function(){function t(){this.Oh=[],this.kh=1}return t.prototype.identifyNodes=function(t,n){for(var i=[document.createTreeWalker(t,NodeFilter.SHOW_ALL,null,!1)],r=!1;i.length>0;)for(var s=csArray.prototype.pop.call(i),e=s.root;null!==e;)if(r&&n&&n.get(e)>0){for(var u=s.nextSibling();null===u&&null!==s.parentNode();)u=s.nextSibling();e=u}else e.__contentsquare_identifier=this.kh,this.kh+=1,a(e)&&csElementshadowRoot.apply(e)?csArray.prototype.push.call(i,document.createTreeWalker(csElementshadowRoot.apply(e),NodeFilter.SHOW_ALL,null,!1)):b(e)&&this.Ch(e),e=s.nextNode(),r=!0},t.prototype.getId=function(t){return t.__contentsquare_identifier},t.getId=function(t){return t.__contentsquare_identifier},t.prototype.getIds=function(t){for(var n,i=new Set,r=document.createNodeIterator(t,NodeFilter.SHOW_ALL,null,!1);n=r.nextNode();){var s=n.__contentsquare_identifier;if(s&&i.add(s),a(n)&&csElementshadowRoot.apply(n)){var e=csElementshadowRoot.apply(n);this.getIds(e).forEach((function(t){return i.add(t)}))}}return i},t.prototype.onDocumentIdentified=function(t){csArray.prototype.push.call(this.Oh,t)},t.prototype.Ch=function(t){for(var n=0,i=this.Oh;n<i.length;n++){(0,i[n])(t)}},t}(),Qs=function(){function t(){this.Ih=new Map,this._h={},this.Ph=!1}return t.prototype.start=function(){},t.prototype.stop=function(){this.flushEvents(),this.Ih.clear()},t.prototype.serializeTextNode=function(t,n){var i=this.setReferenceId(n.data);return n.data="cstextref://".concat(i),n},t.prototype.serializeCDATASectionNode=function(t,n){var i=this.setReferenceId(n.data);return n.data="cstextref://".concat(i),n},t.prototype.onEvent=function(t){this.Bn=t},t.prototype.flushEvents=function(){var t=this.Mh();t&&this.Bn(t)},t.prototype.getPendingEvents=function(){var t=this.Mh();return t?[t]:[]},t.prototype.getReferenceId=function(t){return this.Ih.get(t)},t.prototype.setReferenceId=function(t){return this.xh(t)},t.prototype.Mh=function(){if(0!==Object.keys(this._h).length){var t={type:Sn.TEXT_REF,date:bt(),args:[this._h]};return this._h={},t}},t.prototype.xh=function(t){var n=this,i=this.Ih.get(t);return i||(i=this.Ih.size+1,this.Ih.set(t,i),this._h[i]=t,this.Ph||(this.Ph=!0,bi((function(){n.Ph=!1,n.flushEvents()}))),i)},t}(),te=function(){function t(t,n){var i,r=this;this.cn=t,this.ur=n,this.Bn=nt,this.Hn=!1,this.Lh=new Set,this.Dh=qi(),this.Uh=function(t){return r.inputHandler(t)},this.jh=function(t,n,i,s){if(i&&r.Hn&&t.isConnected){var e=r.cn.getId(t);e&&r.Hh(t)&&bi((function(){r.qh(t,e)}))}return s.apply(t,[n])},this.zh(),this.Bh(),this.Fh(),null===(i=this.ur)||void 0===i||i.onInputNodeToEncrypt((function(t){r.Bn(t)}))}return t.prototype.start=function(){this.Hn||(this.Hn=!0,In({type:"keyup",boundElement:document,listener:this.Uh}),In({type:"change",boundElement:document,listener:this.Uh}))},t.prototype.stop=function(){var t=this;this.Hn&&(this.Hn=!1,_n({type:"keyup",boundElement:document,listener:this.Uh}),_n({type:"change",boundElement:document,listener:this.Uh}),this.Lh.forEach((function(n){_n({type:"change",boundElement:n,listener:t.Uh})})),this.Lh.clear())},t.prototype.serializeElementNode=function(t,n){var i=this;if(this.Hn){if(!this.Hh(t))return;bi((function(){i.qh(t,n.csId)}))}},t.prototype.onEvent=function(t){this.Bn=t},t.prototype.qh=function(t,n){var i,r,s;if(!this.Dh.has(t))if(this.Dh.add(t),this.Vh(t)){var e={type:Sn.INPUT_SELECT,args:[n,t.selectedIndex],date:bt()};this.Bn(e)}else if(this.Gh(t)){var u={type:Sn.INPUT_CHECKABLE,args:[n,t.checked],date:bt()};this.Bn(u)}else{var o=this.Wh(t),h=this.Jh(t);if(o||h){var c=null!==(i=t.value)&&void 0!==i?i:"";if(null===(r=this.ur)||void 0===r?void 0:r.shouldEncrypt(t))return void(null===(s=this.ur)||void 0===s||s.registerInputNodeToEncrypt({targetId:n,targetValue:c,date:bt()}));var a=h?"0":"•",f={type:Sn.INPUT_TEXT,args:[n,csString.prototype.replace.call(c,/\S/g,a)],date:bt()};this.Bn(f)}}},t.prototype.inputHandler=function(t){var n=this,i=Yn(t),r=this.cn.getId(i);r&&this.Hh(i)&&i.isConnected&&bi((function(){n.qh(i,r)}))},t.prototype.afterSerializeShadowRoot=function(t){this.Lh.has(t)||(In({type:"change",listener:this.Uh,boundElement:t}),this.Lh.add(t))},t.prototype.zh=function(){var t=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value");if(null==t?void 0:t.configurable){var n=t.set,i=this;t.set=function(t){var r=t!==this.value;return i.jh(this,t,r,n)},Object.defineProperty(HTMLInputElement.prototype,"value",t)}},t.prototype.Bh=function(){var t=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"checked");if(null==t?void 0:t.configurable){var n=t.set,i=this;t.set=function(t){var r=t!==this.checked;return i.jh(this,t,r,n)},Object.defineProperty(HTMLInputElement.prototype,"checked",t)}},t.prototype.Fh=function(){var t=Object.getOwnPropertyDescriptor(HTMLSelectElement.prototype,"selectedIndex");if(null==t?void 0:t.configurable){var n=t.set,i=this;t.set=function(t){var r=t!==this.selectedIndex;return i.jh(this,t,r,n)},Object.defineProperty(HTMLSelectElement.prototype,"selectedIndex",t)}},t.prototype.Vh=function(n){return ti.call(n,t.Yh)},t.prototype.Wh=function(n){return ti.call(n,t.Xh)},t.prototype.Jh=function(n){return ti.call(n,t.Kh)},t.prototype.Gh=function(n){return ti.call(n,t.$h)},t.prototype.Hh=function(t){return!ei.isSensitive(t)&&!ei.isSensitiveChild(t)&&(m(t)||E(t)||g(t))},t.Xh=csArray.prototype.join.call(["textarea","input:not([type])",'input[type="text"]','input[type="email"]','input[type="search"]','input[type="tel"]','input[type="url"]','input[type="password"]'],","),t.Kh='input[type="number"]',t.$h=csArray.prototype.join.call(['input[type="checkbox"]','input[type="radio"]'],","),t.Yh="select",K([Xn()],t.prototype,"inputHandler",null),t}(),ne="v2/recording",ie=["setCapturedElementsSelector"],re=["setPIISelectors"],se=["isRecording"],ee=["replay:resourceManager:enableForOnlineResource:nextPageviewOnly","cssrm:onlineAssets:activateForNextPageview"],ue=["replay:resourceManager:getStatus","cssrm:getStatus"],oe=function(){function t(t,n,i,r,s,e,u,o,h,c,a,f,v,l,d,w,y,p,m,g,A,S){this.Zh=t,this.X=n,this.D=i,this.Gu=r,this.Xo=s,this.Qh=e,this.U=u,this.tr=o,this.tt=h,this.Un=c,this.nr=a,this.ir=f,this.rr=v,this.je=l,this.er=d,this.Dn=w,this.tc=y,this.nc=p,this.ic=m,this.Ae=g,this.rc=A,this.sc=S,this.ar=null,this.ec=null}return t.prototype.init=function(){var t=this,n=[],i=new xs("csPersisted");this.oc(i);var r=new _i;this.Wi=new Ii;var s=new Zs,e=new Nr;this.hc=new Mr(this.U,this.D),this.hc.init();var u=new Kr;csArray.prototype.push.call(n,u);var o=new ns(this.Ae,s),h=[new Es,e,this.hc],c=null;this.D.useStaticResourceManager&&(this.ar=new $s,this.ar.init(),csArray.prototype.push.call(n,this.ar),this.ar.isStaticResourceManagerSupported()&&(c=new Us(this.ar),csArray.prototype.push.call(h,c),this.ec=new js(this.ar,this.D.getStaticResourceManagerUri(),this.Xo)));var a=new Os,f=new bs(s,a);f.init(),csArray.prototype.push.call(n,f),f.isAdoptedStyleSheetsSupported()&&csArray.prototype.push.call(h,f);var v=new Qs;csArray.prototype.push.call(h,v),csArray.prototype.push.call(n,v);var l,d=new te(s,this.ur);csArray.prototype.push.call(h,d),l=this.cc()?new As(h,s):new Ss(h);var w=new xr(r,this.Xo,{getRequestParameters:function(){return{let:t.recordingService.getRecordingLastEventTimestamp()}}},{getRequestParameters:function(){return{rst:t.recordingService.getRecordingStartTimestamp()}}},{getRequestParameters:function(){return{rt:csArray.prototype.join.call(t.X.getRecordingStates(),",")}}}),y=new is("".concat(this.D.getRecordingUri(),"/").concat(ne)),p=new Hs;this.zs=new Ns(this.Gu,this.D,this.tt,p),this.zs.init(),this.xn=new Er(l,s,this.hc,this.ur),this.xn.setAnonymization(this.zs.shouldUseAnonymization()),this.$i=new oi(s),this.$i.init();var m=new ki(this.xn,o,this.Dn,s,this.Un);this.cr=new lr(i,y,this.hr),csArray.prototype.push.call(n,new br(s,u,a)),csArray.prototype.push.call(n,new Qr(window)),csArray.prototype.push.call(n,new jr(window.location,this.U,new Ds)),this.recordingService=new vr(this.D,this.Wi,w,r,a,m,this.$i,d,new rs(this.je,s),this.tr,this.X,this.nr,this.ir,this.rr,this.er,this.ur,this.hr,this.cr,this.ar,n,y),this.ac=new Hr(this.$i,m,new Ur(this.D),this.recordingService,this.xn,this.zs,this.Dn),this.tc.addListener(this.recordingService),this.nc.addListener(this.recordingService),this.nc.addListener(this.ac),this.ec&&this.nc.addListener(this.ec),o.init(),this.ac.init(),this.recordingService.init(),this.Qh.register(se,(function(){return t.X.isReplayRecorded()&&!t.ic.isUrlExcludedForSessionReplay()})),this.Qh.register(ie,(function(n){Zi.setWhitelistedElementsSelector(n),t.Dn.emitRecordingStatusChange()})),this.Qh.register(re,(function(n){t.Un.setPIISelectors(n),t.Dn.emitRecordingStatusChange()})),this.Qh.register(ee,(function(){t.recordingService.activateOnlineAssetsOnNextPageview(),t.Dn.emitRecordingStatusChange()})),this.Qh.register(ue,(function(){return t.recordingService.getStaticResourceManagerStatus()})),this.Zh.enableRecordingStatus(this.recordingService,this.Un,this.zs,this.X,this.ur)},t.prototype.onAfterNaturalPageView=function(){var t;null===(t=this.ec)||void 0===t||t.initState()},t.prototype.onStartTracking=function(){this.cr.recover(),this.xn.setAnonymization(this.zs.shouldUseAnonymization()),this.X.isReplayRecorded()&&!this.ic.isUrlExcludedForSessionReplay()&&(this.X.isTemporarilyRecorded()&&this.recordingService.blockSendingEventsFromQuotaService(),this.fc())},t.prototype.onArtificialPageViewEnd=function(){this.recordingService.clearStates(),!this.X.isReplayRecorded()||this.ic.isUrlExcludedForSessionReplay()||this.X.isTemporarilyRecorded()||this.cr.sendLastMessageBeacon()},t.prototype.onAfterArtificialPageView=function(){this.xn.setAnonymization(this.zs.shouldUseAnonymization()),this.X.isReplayRecorded()&&!this.ic.isUrlExcludedForSessionReplay()?(this.X.isTemporarilyRecorded()&&this.recordingService.blockSendingEventsFromQuotaService(),this.vc()):this.lc()},t.prototype.onBeforeSessionRenewal=function(){this.recordingService.clearStates(),this.lc()},t.prototype.onOptout=function(){this.lc(),this.recordingService.onOptOut()},t.prototype.onReplayUnanonymizationConsentGranted=function(){this.xn.setAnonymization(this.zs.shouldUseAnonymization()),this.recordingService.triggerUnanonymizationConsentGranted(),this.Dn.emitRecordingStatusChange()},t.prototype.onReplayUnanonymizationConsentWithdrawn=function(){this.xn.setAnonymization(this.zs.shouldUseAnonymization()),this.recordingService.triggerUnanonymizationConsentWithdrawn(),this.Dn.emitRecordingStatusChange()},t.prototype.onRecordingStateChange=function(t,n){t===Ni.NOT_RECORDED&&n===Ti.ETR_OFF?(this.recordingService.clearEvents(),this.lc()):(this.hr.setQueryParams({rt:csArray.prototype.join.call(this.X.getRecordingStates(),",")}),this.recordingService.allowSendingEventsFromQuotaService(),this.xn.isDOMSerializationInProgress()||this.recordingService.pushEvents())},t.prototype.onInitialDomStart=function(){this.recordingService.blockSendingEventsFromSerialization(),this.cr.blockSendingLastMessage()},t.prototype.onInitialDomDone=function(t){this.recordingService.allowSendingEventsFromSerialization(),this.recordingService.addInitialDom(t),this.cr.allowSendingLastMessage(),this.$i.start(),this.recordingService.pushEvents()},t.prototype.onAfterReplayRecordingConsentGranted=function(){this.X.isReplayRecorded()&&!this.ic.isUrlExcludedForSessionReplay()&&(this.X.isTemporarilyRecorded()&&this.recordingService.blockSendingEventsFromQuotaService(),this.fc(),this.recordingService.triggerRecordingForSessionGranted())},t.prototype.onAfterReplayRecordingConsentWithdrawn=function(){this.recordingService.isRecording()&&(this.recordingService.triggerRecordingForSessionWithdrawn(),this.recordingService.clearStates(),this.lc())},t.prototype.fc=function(){var t;this.recordingService.updateStaticResourceManagerOnlineAssets(),this.ac.start(),this.recordingService.start(),null===(t=this.ec)||void 0===t||t.start(),this.cr.start(),this.Dn.emitRecordingStatusChange()},t.prototype.lc=function(){var t;this.ac.stop(),this.recordingService.stop(),null===(t=this.ec)||void 0===t||t.stop(),this.cr.stop(),this.Dn.emitRecordingStatusChange()},t.prototype.vc=function(){this.lc(),this.fc()},t.prototype.oc=function(t){this.hr=this.rc.create("".concat(this.D.getRecordingUri(),"/").concat(ne),!0,"byteArray",t)},t.prototype.cc=function(){return Ts.isAsyncSerializationSupported()&&this.D.asyncSerializerEnabled},t.prototype.wc=function(){return!!this.D.encryptionPublicKey&&this.D.encryptionPublicKeyId>0&&Ws.isSupported()},K([Wn("Recording.onStartTracking")],t.prototype,"onStartTracking",null),K([Wn("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"}(Xs||(Xs={})),function(t){t.isReplayConsentNeeded=function(t){return t.replayConsentRequiredForSession},t.isRecordingBlockedByConsent=function(t){return t.recordingState===Ni.BLOCKED_BY_CONSENT_NOT_EXPRESSED||t.recordingState===Ni.BLOCKED_BY_CONSENT_WITHDRAWN},t.isRecordingWithDrawn=function(t){return t.recordingState===Ni.BLOCKED_BY_CONSENT_WITHDRAWN}}(Ks||(Ks={}));var he=function(){function t(t,n,i,r){this.Y=t,this.X=n,this.D=i,this.yc=r,this.mc=!1}return t.prototype.isNaturalPageViewSent=function(){return this.mc},t.prototype.setNaturalPageViewSent=function(t){this.mc=t},t.prototype.getTrackingContext=function(){var t=this.X.getSession();if(!t)return null;var n=this.getSessionKey();if(!n)return null;var i=this.gc(t),r=this.Ac(),s=this.Sc(),e=this.Ec();return{projectId:r,sessionKey:n,pageNumber:i,pageViewType:s,isRecording:this.bc(),uxaDomain:e,recordingConsentState:this.Rc(t)}},t.prototype.getSessionKey=function(){var t=this.Y.getVisitor();return t?"".concat(t.id,".").concat(t.visitsCount):null},t.prototype.Rc=function(t){return Ks.isReplayConsentNeeded(this.D)?t.recordingState===Ni.BLOCKED_BY_CONSENT_NOT_EXPRESSED?Xs.NOT_EXPRESSED:t.recordingState===Ni.BLOCKED_BY_CONSENT_WITHDRAWN?Xs.WITHDRAWN:Xs.GRANTED:Xs.NOT_NEEDED},t.prototype.gc=function(t){return t.pageNumber},t.prototype.Ac=function(){return this.D.projectId},t.prototype.Sc=function(){return this.yc.getPageViewType()},t.prototype.Ec=function(){return this.D.uxaDomain},t.prototype.bc=function(){return this.X.isReplayRecorded()},t}(),ce=function(){function t(t){this.Nc=t,this.Tc=[]}return t.prototype.handleCommand=function(t){if(xt(t)&&(this.Oc(t),this.Nc.isNaturalPageViewSent())){var n=this.Nc.getTrackingContext();null!==n&&this.kc(t,n)}},t.prototype.Oc=function(t){csArray.prototype.push.call(this.Tc,t)},t.prototype.executeRegisteredCallbacks=function(){var t=this,n=this.Nc.getTrackingContext();null!==n&&csArray.prototype.map.call(this.Tc,(function(i){return t.kc(i,n)}))},t.prototype.kc=function(t,n){setTimeout((function(){t(n)}))},t}(),ae=function(){function t(t){this.Nc=t,this.Cc=[]}return t.prototype.handleCommand=function(t){return this.Nc.isNaturalPageViewSent()?this.Ic(t):void this._c(t)},t.prototype.Ic=function(t){var n=this.Nc.getSessionKey();return this.$u(t)&&null!==n&&this.kc(t.callback,n),n},t.prototype._c=function(t){this.$u(t)&&csArray.prototype.push.call(this.Cc,t.callback)},t.prototype.flushPendingCallbacks=function(){var t=this,n=this.Nc.getSessionKey();null!==n&&csArray.prototype.forEach.call(this.Cc,(function(i){t.kc(i,n)})),this.Cc=[]},t.prototype.$u=function(t){return t&&"function"==typeof t.callback},t.prototype.kc=function(t,n){setTimeout((function(){t(n)}))},t}(),fe=function(){function t(t,n){this.Pc=t,this.Nc=n}return t.prototype.onTrackingContextRequestCallback=function(t){var n=this.Nc.getTrackingContext();null!==n&&this.Pc.sendToChildren(tn.TrackingContextResultMessage,X(X({},t),{trackingContext:n}))},t.prototype.onIframeIntegrationCallback=function(t){if(this.Nc.isNaturalPageViewSent()){var n=this.Nc.getTrackingContext();null!==n&&(t.trackingContext=n,this.Pc.sendToChildren(tn.IntegrationCallback,t))}},t.prototype.sendAfterPageViewCallbackToChildren=function(){var t=this.Nc.getTrackingContext();if(null!==t){var n={trackingContext:t,initiator:Zt.AfterPageView};this.Pc.sendToChildren(tn.IntegrationCallback,n)}},t}();function ve(t,n){var i,r=t.isRecording,s=t.pageNumber,e=t.projectId,u=t.uxaDomain,o=/^(.+)\.(\d+)$/.exec(t.sessionKey);if(r&&o){var h=o[1],c=o[2];i="".concat(u,"/quick-playback/index.html?pid=").concat(e,"&uu=").concat(h,"&sn=").concat(c,"&pvid=").concat(s,"&recordingType=cs"),n.withTimestamp&&(i+="&t=".concat(bt()-n.recordingStartTimestamp))}return{replayLink:i,isRecording:r}}var le,de,we=function(){function t(t){this.Nc=t}return t.prototype.handleCommand=function(t,n){_t(t)&&xt(n)&&this.kc(t,n)},t.prototype.kc=function(t,n){var i=this;setTimeout((function(){var r=i.Nc.getTrackingContext();if(r){var s=ve(r,t);n(s)}}))},t}(),ye=function(){function t(){this.Tc=new Set}return t.prototype.handleCommand=function(t,n){var i=this;return xt(t)?this.Tc.has(t)?null:(this.Tc.add(t),n&&(this.wo=n,this.Mc(t,n)),function(){return i.Tc.delete(t)}):null},t.prototype.executeCallbacks=function(t){var n=this;this.xc(t)&&(this.wo=t,this.Tc.forEach((function(i){return n.Mc(i,t)})))},t.prototype.Mc=function(t,n){setTimeout((function(){try{t(n)}catch(t){}}))},t.prototype.xc=function(t){var n=t.isRecording,i=t.recordingStartTimestamp,r=t.etrState;return this.wo&&(this.wo.isRecording!==n||this.wo.recordingStartTimestamp!==i||this.wo.etrState!==r)},t}(),pe=["afterPageView"],me=["getSessionKey"],ge=["onRecordingStateChange"],Ae=["replay:link:generate"],Se=function(){function t(t,n,i,r,s,e,u,o){this.Y=t,this.X=n,this.Qh=i,this.Lc=r,this.Pc=s,this.D=e,this.yc=u,this.Zh=o}return t.prototype.init=function(){var t=this;this.Nc=new he(this.Y,this.X,this.D,this.yc),this.Dc=new ce(this.Nc),this.Uc=new ae(this.Nc),this.jc=new ye,this.Hc=new we(this.Nc),this.qc=new fe(this.Pc,this.Nc),this.Lc.addListener(this.qc),this.Qh.register(me,(function(n){return t.Uc.handleCommand(n)})),this.Qh.register(pe,(function(n){return t.Dc.handleCommand(n)})),this.Qh.register(ge,(function(n){t.jc.handleCommand(n,t.Zh.getRecordingStatus())})),this.Qh.register(Ae,(function(n,i){t.qs&&t.Hc.handleCommand(X(X({},n),{recordingStartTimestamp:t.Zh.getRecordingStatus().recordingStartTimestamp}),i)}))},t.prototype.onAfterNaturalPageView=function(){this.Nc.setNaturalPageViewSent(!0),this.Uc.flushPendingCallbacks(),this.Dc.executeRegisteredCallbacks(),this.qc.sendAfterPageViewCallbackToChildren()},t.prototype.onAfterArtificialPageView=function(){this.Dc.executeRegisteredCallbacks(),this.qc.sendAfterPageViewCallbackToChildren()},t.prototype.onRecordingStateChange=function(){this.jc.executeCallbacks(this.Zh.getRecordingStatus())},t.prototype.onRecordingStatusChange=function(){this.jc.executeCallbacks(this.Zh.getRecordingStatus())},t.prototype.setRecordingService=function(t){this.qs=t},K([Dr()],t.prototype,"onRecordingStateChange",null),K([Dr()],t.prototype,"onRecordingStatusChange",null),t}(),Ee=function(){function t(t,n){this.key=csString.prototype.slice.call(t,0,512),this.value=It(n)?csString.prototype.slice.call(n,0,255):n}return t.isValid=function(t,n){return It(t)&&(It(n)||Ct(n))},t}(),be=function(t){function n(n,i){var r=t.call(this)||this;return r.zc=n,r.U=i,r.Bc=[],r}return Y(n,t),n.prototype.onStart=function(){var t=this;csArray.prototype.forEach.call(this.Bc,(function(n){return t.trackDynamicVariable(n.key,n.value)})),this.Bc=[]},n.prototype.onStop=function(){},n.prototype.trackDynamicVariable=function(t,n){this.isStarted?Ee.isValid(t,n)&&this.zc.add(new Ee(this.U.anonymizePII(t),this.U.anonymizePII(n))):csArray.prototype.push.call(this.Bc,{key:t,value:n})},n}(Mi),Re=function(){function t(t){this.Fc=t,this.zc=[]}return t.prototype.add=function(t){csArray.prototype.push.call(this.zc,t),this.setBatchReadyCall()},t.prototype.clear=function(){this.zc=[]},t.prototype.onBatchReady=function(t){this.Vc=t},t.prototype.getRequestParameters=function(){for(var t={},n=0,i=this.zc;n<i.length;n++){var r=i[n];t[r.key]=r.value}return{dv:this.Fc.compressSync(csJSON.stringify(t),"base64"),ct:this.Fc.algorithm}},t.prototype.setBatchReadyCall=function(){this.Vc()},K([Dr(),ln("dynamicVariablesBatchReady")],t.prototype,"setBatchReadyCall",null),t}(),Ne=["trackDynamicVariable"],Te=function(){function t(t,n,i,r,s,e){this.Qh=t,this.X=n,this.D=i,this.Xo=r,this.Fc=s,this.U=e,this.P=new vt(this.D.getTrackerUri(),"dvar"),this.zc=new Re(this.Fc),this.Gc=new be(this.zc,this.U)}return t.prototype.init=function(){var t=this;this.P.setRequestParametersProviders(this.Xo,this.zc),this.X.setDynamicVariablesService(this.Gc),this.zc.onBatchReady((function(){return t.P.send()})),this.P.after((function(){return t.zc.clear()})),this.Qh.register(Ne,(function(n){var i=void 0===n?{}:n,r=i.key,s=i.value;t.Gc.trackDynamicVariable(r,s)}))},t.prototype.onStartTracking=function(){this.Gc.start()},t}(),Oe=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)),It(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 Mt(t)&&kt(t.revenue)&&It(t.currency)&&t.currency.length<=10&&(!Mt(t.id)||It(t.id))},t}(),ke=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.Wc(n))return null;var i=new t(n.id,n.name,parseFloat(n.price),parseInt(n.quantity,10));return Pt(n.sku)&&(i.sku=n.sku),Pt(n.category)&&(i.category=n.category),Pt(n.merchant)&&n.merchant.length>0&&(i.merchant=n.merchant.slice(0,100)),i},t.Wc=function(t){return Mt(t)&&It(t.id)&&It(t.name)&&kt(parseFloat(t.price))&&Ct(parseInt(t.quantity,10))&&(!Pt(t.sku)||It(t.sku))&&(!Pt(t.category)||It(t.category))&&(!Pt(t.merchant)||It(t.merchant))},t}(),Ce=function(){function t(t,n,i){this.U=t,this.Jc=n,this.tr=i,this.clear()}return t.prototype.addTransaction=function(t){var n=this.U.anonymizeFields(t,["id"]);this.Yc=Oe.from(n)},t.prototype.getTransaction=function(){return this.Yc},t.prototype.sendTransaction=function(){null!==this.Jc&&null!==this.tr&&this.tr.isSessionValid()&&(this.Yc.hasValidRevenue()?this.Jc.send():on.warn("Transaction Service: unable to send transaction with invalid parameters"))},t.prototype.addItem=function(t){if(!xt(t)){var n=this.U.anonymizeFields(t,["id","name","sku","category"]),i=ke.from(n);null!==i&&csArray.prototype.push.call(this.Xc,i)}},t.prototype.getItems=function(){return this.Xc},t.prototype.clear=function(){this.Yc=Oe.from({revenue:NaN}),this.Xc=[]},t.prototype.getRequestParameters=function(){var t={id:this.Yc.id?"".concat(this.Yc.id):"",revenue:"".concat(this.Yc.revenue)};return Pt(this.Yc.tax)&&(t.tax="".concat(this.Yc.tax)),Pt(this.Yc.shipping)&&(t.shipping="".concat(this.Yc.shipping)),Pt(this.Yc.currency)&&(t.cu="".concat(this.Yc.currency)),t.items=window.csJSON.stringify(this.Xc),t},t}(),Ie=function(){function t(t,n){this.Kc=t,this.tr=n,this.$c=null}return t.prototype.addToCart=function(t){var n={};It(t.sku)&&(n.sku=csString.prototype.slice.call(t.sku,0,100)),It(t.merchant)&&(n.merchant=csString.prototype.slice.call(t.merchant,0,100)),(n.sku||n.merchant)&&(this.$c=n,this.sendCartItem())},t.prototype.getCartItem=function(){return this.$c},t.prototype.sendCartItem=function(){this.tr.isSessionValid()&&this.Kc.send()},t.prototype.clear=function(){this.$c=null},t.prototype.getRequestParameters=function(){if(!this.$c)return{};var t={};return It(this.$c.sku)&&this.$c.sku.length>0&&(t.sku=this.$c.sku),It(this.$c.merchant)&&this.$c.merchant.length>0&&(t.me=this.$c.merchant),t},t}(),_e=["ecommerce:addToCart","ec:cart:add"],Pe=["ecommerce:addTransaction","ec:transaction:create"],Me=["ecommerce:addItem","ec:transaction:items:add"],xe=["ecommerce:send","ec:transaction:send"],Le=function(){function t(t,n,i,r,s,e,u){this.D=t,this.Go=n,this.Y=i,this.Qh=r,this.U=s,this.tr=e,this.tt=u}return t.prototype.init=function(){var t=new vt(this.D.getTrackerUri(),"transaction"),n=new vt(this.D.getTrackerUri(),"addtocart"),i=new Ce(this.U,t,this.tr),r=new Ie(n,this.tr),s=new xr(this.Go,this.Y,this.tt,i);t.setRequestParametersProviders(s),t.after((function(){i.clear()}));var e=new xr(this.Go,this.Y,this.tt,r);n.setRequestParametersProviders(e),n.after((function(){r.clear()})),this.Qh.register(Pe,(function(t){i.addTransaction(t)})),this.Qh.register(Me,(function(t){return i.addItem(t)})),this.Qh.register(xe,(function(){return i.sendTransaction()})),this.Qh.register(_e,(function(t){r.addToCart(t)}))},t}(),De=function(){function t(t){this.we=t.performance}return t.prototype.getRequestParameters=function(){if(this.Zc())return{};var t=this.Qc();return{str:t.startRender,di:t.domInteractive,dc:t.domComplete,fl:t.fullyLoaded}},t.prototype.Qc=function(){var t=this.we.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.Zc=function(){return!(this.we&&this.we.timing&&this.we.timing.loadEventEnd>0)},t}();function Ue(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=18]="SUBMIT",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"}(le||(le={})),function(t){t.SUCCESS="success",t.FAILURE="failure",t.ATTEMPT="attempt"}(de||(de={}));var je,He=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}(),qe=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}(),ze=function(t){function n(n){var i=t.call(this)||this;return i.ta=n,i.supportedEventTypes=[le.MOUSEDOWN,le.MOUSEUP,le.CLICK,le.MOUSEOVER,le.TAP,le.DRAG,le.FLICK],i}return Y(n,t),n.prototype.baseEnhanceAnalysisEvent=function(t,n){return n.tgt||(n.tgt=this.ta.getEventTargetPath(t)),n},n}(qe),Be=function(){function t(t,n,i,r){this.D=t,this.ta=n,this.je=i,this.na=r,this.ia=[],csArray.prototype.push.call(this.ia,new ze(this.ta))}return t.prototype.processGesture=function(t,n){switch(t.type){case $r.TAP:this.ra(n);break;case $r.FLICK:this.sa(t,n);break;case $r.DRAG:this.ea(t,n)}},t.prototype.ra=function(t){var n={type:le.TAP,ts:0,x:0,y:0,tgt:""},i=He.build(t,n,this.ia);i.tgt!==F.INVALID_ELEMENT&&this.Bn(i)},t.prototype.ea=function(t,n){var i,r,s={type:le.DRAG,ts:0,fd:t.direction,tgt:""};(null===(i=this.na)||void 0===i?void 0:i.collectGestureDistance)&&(s.distance=t.distance),(null===(r=this.na)||void 0===r?void 0:r.collectGestureVelocity)&&(s.velocity=t.velocity);var e=He.build(n,s,this.ia);e.tgt!==F.INVALID_ELEMENT&&this.Bn(e)},t.prototype.sa=function(t,n){var i,r,s={type:le.FLICK,ts:0,fd:t.direction,tgt:""};(null===(i=this.na)||void 0===i?void 0:i.collectGestureDistance)&&(s.distance=t.distance),(null===(r=this.na)||void 0===r?void 0:r.collectGestureVelocity)&&(s.velocity=t.velocity);var e=He.build(n,s,this.ia);e.tgt!==F.INVALID_ELEMENT&&this.Bn(e)},t.prototype.onEvent=function(t){this.Bn=t},t.prototype.start=function(){var n=this;this.je.subscribe(t.He,(function(t,i){return n.processGesture(t,i)}))},t.prototype.stop=function(){this.je.unsubscribe(t.He)},t.He="AnalysisGestureTracker",K([Xn()],t.prototype,"processGesture",null),t}();!function(t){t.getRelativePosition=function(t){var n=Yn(t);if(!(n&&a(n)&&xt(n.getBoundingClientRect)&&Mt(t.pageX)&&Mt(t.pageY)))return{xRel:-1,yRel:-1,valid:!1};var i=n.getBoundingClientRect(),r=t.pageX-i.left-or.windowOffsetX(),s=t.pageY-i.top-or.windowOffsetY();n!==document.documentElement&&(r+=n.scrollLeft,s+=n.scrollTop);var e=Math.max(n.scrollWidth,i.width),u=Math.max(n.scrollHeight,i.height);return{xRel:Math.round(r/e*65535),yRel:Math.round(s/u*65535),valid:!0}}}(je||(je={}));var Fe,Ve,Ge,We,Je,Ye,Xe=function(t){function n(n,i){var r=t.call(this)||this;return r.I=n,r.ta=i,r.supportedEventTypes=[le.MOUSEMOVE,le.CLICK],r.ua="",r}return Y(n,t),n.prototype.baseEnhanceAnalysisEvent=function(t,n){var i=je.getRelativePosition(t),r=i.valid,s=i.xRel,e=i.yRel;if(r){var u=this.ta.getEventTargetPath(t);u!==F.INVALID_ELEMENT&&(n.xRel=s,n.yRel=e,n.type===le.MOUSEMOVE&&(u!==this.ua||this.I.iframesTracking?(this.ua=u,n.tgtHM=u):n.tgtHM=""))}else n.type===le.MOUSEMOVE&&(this.ua="");return n},n}(qe),Ke=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.supportedEventTypes=[le.CHANGE],n.oa=["text","email","number","search","tel","url","password"],n}return Y(n,t),n.prototype.baseEnhanceAnalysisEvent=function(t,n){var i=Yn(t);return m(i)&&csArray.prototype.indexOf.call(this.oa,i.type)>=0&&(n.isBlank=""===i.value),n},n}(qe),$e=function(){function t(t,n,i){var r=this;this.I=t,this.ta=n,this.ha=i,this.ca="select, select *, input, textarea",this.aa="select, select *, input, textarea",this.fa="a, a *, button, button *, select, select *, input, textarea",this.va="input, select, textarea",this.da=150,this.wa=400,this.ya=!1,this.pa=Lr((function(t,n){return r.scrollListener(t,n)}),this.da),this.ma=Lr((function(t){return r.resizeListener(t)}),this.da),this.ga=Un((function(t){return r.mouseMoveListener(t)}),this.wa),this.Aa=[{boundElement:window,type:"resize",listener:function(){return r.ma()}},{boundElement:document,type:"scroll",listener:function(t){return r.pa(t)}},{boundElement:window,type:"mousemove",listener:function(t){r.ga(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 r.mouseDownListener(t)}},{boundElement:document,type:"mouseup",listener:function(t){return r.mouseUpListener(t)}},{boundElement:document,type:"click",listener:function(t){return r.clickListener(t)}}],this.Sa=[{type:"change",listener:this.ha.on(this.aa,(function(t){return r.changeListener(t)}))}],this.Ea=Q([{boundElement:document,type:"mouseover",listener:this.ha.on(this.fa,(function(t){return r.mouseOverListener(t)}))},{boundElement:document,type:"mouseout",listener:this.ha.on(this.fa,(function(t){return r.mouseOutListener(t)}))},{boundElement:document,type:"focusin",listener:this.ha.on(this.ca,(function(t){return r.focusInListener(t)}))},{boundElement:document,type:"focusout",listener:this.ha.on(this.ca,(function(t){return r.focusOutListener(t)}))},{boundElement:document,type:"keyup",listener:this.ha.on(this.va,(function(t){return r.keyUpListener(t)}))},{boundElement:document,type:"keydown",listener:this.ha.on(this.va,(function(t){return r.keyDownListener(t)}))},{boundElement:document,type:"copy",listener:this.ha.on(this.va,(function(t){return r.copyListener(t)}))},{boundElement:document,type:"cut",listener:this.ha.on(this.va,(function(t){return r.cutListener(t)}))},{boundElement:document,type:"paste",listener:this.ha.on(this.va,(function(t){return r.pasteListener(t)}))}],csArray.prototype.map.call(this.Sa,(function(t){return X(X({},t),{boundElement:document})})),!0),this.ia=[],this.In={},this.an=new Set,this.ba=function(t,n){switch(n){case"initial":r.an.add(t);break;case"added":r.an.has(t)||(r.an.add(t),r.Sn(t));break;case"removed":r.On(t),r.an.delete(t)}},this.Ra=new Qi(this.ba),this.gn(),this.I.mouseMoveHeatmapEnabled&&csArray.prototype.push.call(this.ia,new Xe(this.I,this.ta)),csArray.prototype.push.call(this.ia,new Ke,new ze(this.ta))}return t.prototype.Sn=function(t){if(N(t)){var n=this.Na();csArray.prototype.forEach.call(n,(function(t){return In(t)}))}else{n=this.Ta();csArray.prototype.forEach.call(n,(function(n){In(X(X({},n),{boundElement:t}))}))}},t.prototype.On=function(t){if(N(t)){var n=this.Na();csArray.prototype.forEach.call(n,(function(t){return _n(t)}))}else{n=this.Ta();csArray.prototype.forEach.call(n,(function(n){_n(X(X({},n),{boundElement:t}))}))}},t.prototype.onEvent=function(t){this.Bn=t},t.prototype.start=function(){var t=this;this.Ra.observe(),this.Sn(document),this.an.forEach((function(n){return t.Sn(n)})),this.resizeListener()},t.prototype.stop=function(){var t=this;this.On(document),csArray.prototype.forEach.call(this.Ra.shadowRoots,(function(n){return t.On(n)})),this.Ra.disconnect(),this.an.clear()},t.prototype.flushPendingDebouncedListeners=function(){this.pa.flushPending(),this.ma.flushPending()},t.prototype.Ta=function(){return this.ha.isMatchesSelectorSupported()?this.Sa:(on.warn("Element.matches is not implemented yet"),[])},t.prototype.Na=function(){return this.ha.isMatchesSelectorSupported()?Q(Q([],this.Aa,!0),this.Ea,!0):(on.warn("Element.matches is not implemented yet"),this.Aa)},t.prototype.resizeListener=function(t){var n=Kn.getScrollContainer(),i=Lt(n);i&&(this.ya=!0);var r={type:le.RESIZE,ts:0,x:i?n.clientWidth:or.windowWidth(),y:i?n.clientHeight:or.windowHeight()};void 0!==t&&(r.d=t),this.Bn(r)},t.prototype.scrollListener=function(t,n){var i=Kn.isEventOnScrollContainer(n);!this.ya&&i&&this.resizeListener();var r={type:le.SCROLL,ts:0,x:i?csEventtarget.apply(n).scrollLeft:or.windowOffsetX(),y:i?csEventtarget.apply(n).scrollTop:or.windowOffsetY(),d:t},s=He.build(n,r,this.ia);this.Bn(s)},t.prototype.mouseMoveListener=function(t){var n={type:le.MOUSEMOVE,ts:0,x:t.pageX,y:t.pageY},i=He.build(t,n,this.ia);this.Bn(i)},t.prototype.mouseDownListener=function(t){var n={type:le.MOUSEDOWN,ts:0,x:t.pageX,y:t.pageY,tgt:""},i=He.build(t,n,this.ia);this.Oa(i)},t.prototype.mouseUpListener=function(t){var n={type:le.MOUSEUP,ts:0,x:t.pageX,y:t.pageY,tgt:""},i=He.build(t,n,this.ia);this.Oa(i)},t.prototype.clickListener=function(t){var n={type:le.CLICK,ts:0,x:t.pageX,y:t.pageY,tgt:""},i=He.build(t,n,this.ia);this.Oa(i)},t.prototype.mouseOverListener=function(t){var n={type:le.MOUSEOVER,ts:0,x:t.pageX,y:t.pageY,tgt:""},i=He.build(t,n,this.ia);this.Oa(i)},t.prototype.mouseOutListener=function(t){var n={type:le.MOUSEOUT,ts:0,x:t.pageX,y:t.pageY,tgt:this.ta.getEventTargetPath(t)},i=He.build(t,n,this.ia);this.Oa(i)},t.prototype.focusInListener=function(t){var n={type:le.FOCUSIN,ts:0,tgt:this.ta.getEventTargetPath(t)},i=He.build(t,n,this.ia);this.Oa(i)},t.prototype.focusOutListener=function(t){var n={type:le.FOCUSOUT,ts:0,tgt:this.ta.getEventTargetPath(t)},i=He.build(t,n,this.ia);this.Oa(i)},t.prototype.changeListener=function(t){var n={type:le.CHANGE,ts:0,tgt:this.ta.getEventTargetPath(t)},i=He.build(t,n,this.ia);this.Oa(i)},t.prototype.copyListener=function(t){var n={type:le.COMMAND,ts:0,tgt:this.ta.getEventTargetPath(t),key:Hn.COPY};this.Oa(n)},t.prototype.cutListener=function(t){var n={type:le.COMMAND,ts:0,tgt:this.ta.getEventTargetPath(t),key:Hn.CUT};this.Oa(n)},t.prototype.pasteListener=function(t){var n={type:le.COMMAND,ts:0,tgt:this.ta.getEventTargetPath(t),key:Hn.PASTE};this.Oa(n)},t.prototype.keyUpListener=function(t){var n={type:le.KEYUP,ts:0,tgt:this.ta.getEventTargetPath(t),key:this.ka(t)};this.Oa(n)},t.prototype.keyDownListener=function(t){var n={type:le.KEYDOWN,ts:0,tgt:this.ta.getEventTargetPath(t),key:this.ka(t)};this.Oa(n)},t.prototype.ka=function(t){var n=this.In[t.key];return void 0===n?jn.ALPHANUMERICAL:n},t.prototype.Oa=function(t){Ue(t)&&t.tgt!==F.INVALID_ELEMENT&&this.Bn(t)},t.prototype.gn=function(){this.In[" "]=jn.SPACE,this.In.Spacebar=jn.SPACE,this.In.Enter=jn.ENTER,this.In.Backspace=jn.BACKSPACE,this.In.Delete=jn.DELETE,this.In.ArrowUp=jn.ARROWUP,this.In.ArrowDown=jn.ARROWDOWN,this.In.ArrowLeft=jn.ARROWLEFT,this.In.ArrowRight=jn.ARROWRIGHT,this.In.Up=jn.ARROWUP,this.In.Down=jn.ARROWDOWN,this.In.Left=jn.ARROWLEFT,this.In.Right=jn.ARROWRIGHT,this.In.CapsLock=jn.CAPSLOCK,this.In.Shift=jn.SHIFT,this.In.Tab=jn.TAB},K([ln("Event handler type: resize")],t.prototype,"resizeListener",null),K([ln("Event handler type: scroll")],t.prototype,"scrollListener",null),K([ln("Event handler type: mouseMove"),Xn()],t.prototype,"mouseMoveListener",null),K([ln("Event handler type: mouseDown"),Xn()],t.prototype,"mouseDownListener",null),K([ln("Event handler type: mouseUp"),Xn()],t.prototype,"mouseUpListener",null),K([ln("Event handler type: click"),Xn()],t.prototype,"clickListener",null),K([ln("Event handler type: mouseOver"),Xn()],t.prototype,"mouseOverListener",null),K([ln("Event handler type: mouseOut"),Xn()],t.prototype,"mouseOutListener",null),K([ln("Event handler type: focusIn")],t.prototype,"focusInListener",null),K([ln("Event handler type: focusOut")],t.prototype,"focusOutListener",null),K([ln("Event handler type: change")],t.prototype,"changeListener",null),K([ln("Event handler type: copy")],t.prototype,"copyListener",null),K([ln("Event handler type: cut")],t.prototype,"cutListener",null),K([ln("Event handler type: paste")],t.prototype,"pasteListener",null),K([ln("Event handler type: keyup")],t.prototype,"keyUpListener",null),K([ln("Event handler type: keydown")],t.prototype,"keyDownListener",null),t}(),Ze=function(){function t(){var t=this;this.Ca=100,this.Ia=0,this._a=or.documentHeight(),this.Pa={boundElement:document,type:"scroll",listener:function(n){return t.maxScrollRateListener(n)}}}return t.prototype.onEvent=function(t){this.Bn=t},t.prototype.start=function(){In(this.Pa),this.reset()},t.prototype.stop=function(){_n(this.Pa)},t.prototype.reset=function(){this._a=or.documentHeight();var t=Kn.getScrollContainer();if(null===t)this.Ia=this.Ma(or.documentHeight());else{var n=this.xa(t);this.Ia=this.La(t,n)}this.Bn()},t.prototype.maxScrollRateListener=function(t){var n,i;if(Kn.isEventOnScrollContainer(t)){var r=csEventtarget.apply(t),s=this.xa(r);n=this.Da(r,s),i=this.La(r,s)}else n=or.documentHeight(),i=this.Ma(n);(i>this.Ia||n>this._a)&&(this.Ia=i,n>this._a&&(this._a=n),this.Bn())},t.prototype.Ma=function(t){var n=Math.round(this.Ua()/t*100);return Math.min(n,this.Ca)},t.prototype.Ua=function(){var t=or.windowHeight();return or.windowOffsetY()+t},t.prototype.La=function(t,n){var i=t.scrollTop+t.clientHeight+t.getBoundingClientRect().top+n,r=this.Da(t,n),s=Math.round(i/r*100);return Math.min(s,this.Ca)},t.prototype.xa=function(t){var n=window.getComputedStyle(t).paddingTop||"0px";return parseInt(n,10)},t.prototype.Da=function(t,n){return t.scrollHeight+t.getBoundingClientRect().top+n},t.prototype.getRequestParameters=function(){return{sr:"".concat(this.Ia),mdh:"".concat(this._a)}},K([ln("MaxScrollRate handler")],t.prototype,"maxScrollRateListener",null),t}(),Qe=function(){function t(t,n,i,r,s,e,u,o,h,c,a,f,v,l,d,w,y,p,m,g,A){this.D=t,this.ja=n,this.je=i,this.Ha=r,this.qa=s,this.za=e,this.Ba=u,this.Fa=o,this.tr=h,this.Yt=c,this.Va=a,this.Ga=f,this.Tr=v,this.hr=l,this.Wa=d,this.Ja=w,this.Ya=y,this.Xa=p,this.Ka=m,this.$a=g,this.Za=A,this.pr=new Pi,this.Qa=!1}return t.prototype.init=function(){var t,n,i,r,s,e,u,o=this;this.ja.onEvent((function(t){return o.br(t)})),this.je.onEvent((function(t){return o.br(t)})),this.Ha.onEvent((function(){var t=o.Ha.getRequestParameters();o.hr.setQueryParams(t),o.Ba.setQueryParams(t)})),this.Ga.onEvent((function(t){return o.tf(t)})),this.nf(),null===(t=this.Wa)||void 0===t||t.onEvent((function(t){return o.br(t)})),null===(n=this.Ka)||void 0===n||n.onEvent((function(t){return o.br(t)})),null===(i=this.Ja)||void 0===i||i.onEvent((function(t){return o.br(t)})),null===(r=this.Ya)||void 0===r||r.onEvent((function(t){return o.br(t)})),this.if(),null===(s=this.Xa)||void 0===s||s.onEvent((function(t){return o.tf(t)})),null===(e=this.$a)||void 0===e||e.onEvent((function(t){return o.tf(t)})),null===(u=this.Za)||void 0===u||u.onEvent((function(t){return o.tf(t)}))},t.prototype.if=function(){var t=this;this.Ba.onBeaconSuccess((function(){t.za.clearEvents()})),this.Ba.onBeaconFailure((function(n){t.rf(n)}))},t.prototype.initStates=function(){var t=this.Fa.getRequestParameters(),n=this.qa.getRequestParameters(),i=this.Ha.getRequestParameters();this.hr.setQueryParams(t),this.hr.setQueryParams(n),this.hr.setQueryParams(i),this.Ba.setQueryParams(t),this.Ba.setQueryParams(n),this.Ba.setQueryParams(i),this.sf()},t.prototype.start=function(t){var n,i,r,s,e,u,o;t||null===(n=this.Xa)||void 0===n||n.start(),this.Tr.start(),this.ja.start(),this.Ha.start(),this.je.start(),null===(i=this.Wa)||void 0===i||i.start(),null===(r=this.Ya)||void 0===r||r.start(),t||this.Ga.start(),null===(s=this.Ja)||void 0===s||s.start(),null===(e=this.Ka)||void 0===e||e.start(),null===(u=this.$a)||void 0===u||u.start(),null===(o=this.Za)||void 0===o||o.start()},t.prototype.collectInitialEvents=function(){var t;null===(t=this.Wa)||void 0===t||t.collectInitialEvents()},t.prototype.onIframeAnalysisEvent=function(t){this.Br(t)},t.prototype.tf=function(t){this.tr.isCurrentPageviewValid()&&this.Br(t)},t.prototype.br=function(t){this.tr.isSessionValid()&&this.Br(t)},t.prototype.Br=function(t){this.za.addEvent(this.ef(t)),this.za.isFull()&&this.sendEvents(),this.D.emitDebugEvents&&this.pr.emit("analysisEvent",X(X({},t),{typeName:le[t.type]}))},t.prototype.ef=function(t){return t.ts=this.uf(),t},t.prototype.hf=function(){this.Ba.setQueryParams({hlm:"true"}),this.Qa=!0},t.prototype.sendLastMessageBeacon=function(){this.Ba.setQueryParams(this.qa.getRequestParameters()),this.Ba.send(this.za.stringifyEvents()),this.Ba.removeQueryParams(["hlm"]),this.Qa=!1},t.prototype.sendEvents=function(){this.za.isEmpty()||(this.hr.setQueryParams(this.Fa.getRequestParameters()),this.hr.setQueryParams(this.qa.getRequestParameters()),this.hr.send(this.za.getEvents()),this.za.clearEvents())},t.prototype.stop=function(){var t,n,i,r,s,e,u;this.Tr.stop(),this.ja.stop(),this.Ha.stop(),this.je.stop(),this.Ga.stop(),null===(t=this.Wa)||void 0===t||t.stop(),null===(n=this.Ja)||void 0===n||n.stop(),null===(i=this.Ya)||void 0===i||i.stop(),null===(r=this.Ka)||void 0===r||r.stop(),this.za.empty(),null===(s=this.Xa)||void 0===s||s.stop(),null===(e=this.$a)||void 0===e||e.stop(),null===(u=this.Za)||void 0===u||u.stop()},t.prototype.clearStates=function(t){var n,i;this.ja.flushPendingDebouncedListeners(),null===(n=this.Ja)||void 0===n||n.flushPendingKeyboardNavigationEvent(),null===(i=this.Ya)||void 0===i||i.flushPendingTextHighlightEvent(),t?(this.hf(),this.sendLastMessageBeacon()):this.sendEvents(),this.Ha.reset(),this.Ga.stop(),this.hr.removeQueryParams()},t.prototype.sf=function(){this.cf=bt()},t.prototype.uf=function(){return bt()-this.cf},t.prototype.nf=function(){var t=this;this.Tr.onEvent((function(n){var i,r;null===(i=t.Ja)||void 0===i||i.flushPendingKeyboardNavigationEvent(),null===(r=t.Ya)||void 0===r||r.flushPendingTextHighlightEvent(),n===rr.PagehideVisible?t.hf():n===rr.PagehideHidden?(t.hf(),t.sendLastMessageBeacon()):t.za.isEmpty()&&!t.Qa||t.sendLastMessageBeacon()}))},t.prototype.rf=function(t){try{this.za.isEmpty()&&!this.Qa||this.Yt.save({requestParameters:t,events:this.za.getEvents()})}catch(t){}},t.prototype.pushSubmitEvent=function(t,n){if(function(t){return t===de.SUCCESS||t===de.FAILURE||t===de.ATTEMPT}(t))if(Lt(n)){var i={status:t,type:le.SUBMIT,ts:0,tgt:this.Va.getElementPath(n)};i.tgt!==F.INVALID_ELEMENT&&this.tf(i)}else on.warn("AnalysisEvents Service: invalid element: ".concat(n));else on.warn("AnalysisEvents Service: invalid submit status: ".concat(t))},t}(),tu=function(){function t(t,n){var i=this;this.Yt=t,this.hr=n,this.af=function(){"visible"===document.visibilityState&&i.ff()}}return t.prototype.start=function(){this.ff(),this.Pi()},t.prototype.stop=function(){this.Li()},t.prototype.getRecoveryStorage=function(){return this.Yt},t.prototype.ff=function(){var t=this.Yt.recover();if(null!==t){var n=t,i=n.requestParameters,r=n.events;this.hr.send(r,i)}},t.prototype.Pi=function(){document.addEventListener("visibilitychange",this.af)},t.prototype.Li=function(){document.removeEventListener("visibilitychange",this.af)},t}(),nu=function(){function t(t){this.co=t}return t.prototype.save=function(t){localStorage.setItem(this.co,csJSON.stringify(t))},t.prototype.clear=function(){localStorage.removeItem(this.co)},t.prototype.recover=function(){var t=localStorage.getItem(this.co);if(null===t)return null;var n=null;try{n=csJSON.parse(t)}catch(n){on.error("Invalid item in localStorage.\n         (key:".concat(this.co,"; value:").concat(t,")"))}finally{this.clear()}return n},t}(),iu=function(){function t(t){var n=this;this.vf=t,this.lf=function(t){return n.processMetric(t)},this.Ci=!1}return t.prototype.onEvent=function(t){this.Bn=t},t.prototype.start=function(){this.Ci||(this.Ci=!0,this.vf.onFCP(this.lf),this.vf.onCLS(this.lf),this.vf.onFID(this.lf),this.vf.onLCP(this.lf),this.vf.onTTFB(this.lf),this.vf.onINP(this.lf))},t.prototype.stop=function(){this.Ci=!1},t.prototype.processMetric=function(t){if(this.Ci){var n={type:le.PERFORMANCE,name:t.name,val:t.value,ts:0};this.Bn(n)}},K([ln("Performance metric handler")],t.prototype,"processMetric",null),t}(),ru=-1,su=function(t){addEventListener("pageshow",(function(n){n.persisted&&(ru=n.timeStamp,t(n))}),!0)},eu=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},uu=function(){var t=eu();return t&&t.activationStart||0},ou=function(t,n){var i=eu(),r="navigate";return ru>=0?r="back-forward-cache":i&&(document.prerendering||uu()>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}},hu=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){}},cu=function(t,n,i,r){var s,e;return function(u){n.value>=0&&(u||r)&&((e=n.value-(s||0))||void 0===s)&&(s=n.value,n.delta=e,n.rating=function(t,n){return t>n[1]?"poor":t>n[0]?"needs-improvement":"good"}(n.value,i),t(n))}},au=function(t){requestAnimationFrame((function(){return requestAnimationFrame((function(){return t()}))}))},fu=function(t){var n=function(n){"pagehide"!==n.type&&"hidden"!==document.visibilityState||t(n)};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},vu=function(t){var n=!1;return function(i){n||(t(i),n=!0)}},lu=-1,du=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},wu=function(t){"hidden"===document.visibilityState&&lu>-1&&(lu="visibilitychange"===t.type?t.timeStamp:0,pu())},yu=function(){addEventListener("visibilitychange",wu,!0),addEventListener("prerenderingchange",wu,!0)},pu=function(){removeEventListener("visibilitychange",wu,!0),removeEventListener("prerenderingchange",wu,!0)},mu=function(){return lu<0&&(lu=du(),yu(),su((function(){setTimeout((function(){lu=du(),yu()}),0)}))),{get firstHiddenTime(){return lu}}},gu=function(t){document.prerendering?addEventListener("prerenderingchange",(function(){return t()}),!0):t()},Au=[1800,3e3],Su=function(t,n){n=n||{},gu((function(){var i,r=mu(),s=ou("FCP"),e=hu("paint",(function(t){t.forEach((function(t){"first-contentful-paint"===t.name&&(e.disconnect(),t.startTime<r.firstHiddenTime&&(s.value=Math.max(t.startTime-uu(),0),s.entries.push(t),i(!0)))}))}));e&&(i=cu(t,s,Au,n.reportAllChanges),su((function(r){s=ou("FCP"),i=cu(t,s,Au,n.reportAllChanges),au((function(){s.value=performance.now()-r.timeStamp,i(!0)}))})))}))},Eu=[.1,.25],bu={passive:!0,capture:!0},Ru=new Date,Nu=function(t,n){Fe||(Fe=n,Ve=t,Ge=new Date,ku(removeEventListener),Tu())},Tu=function(){if(Ve>=0&&Ve<Ge-Ru){var t={entryType:"first-input",name:Fe.type,target:Fe.target,cancelable:Fe.cancelable,startTime:Fe.timeStamp,processingStart:Fe.timeStamp+Ve};We.forEach((function(n){n(t)})),We=[]}},Ou=function(t){if(t.cancelable){var n=(t.timeStamp>1e12?new Date:performance.now())-t.timeStamp;"pointerdown"==t.type?function(t,n){var i=function(){Nu(t,n),s()},r=function(){s()},s=function(){removeEventListener("pointerup",i,bu),removeEventListener("pointercancel",r,bu)};addEventListener("pointerup",i,bu),addEventListener("pointercancel",r,bu)}(n,t):Nu(n,t)}},ku=function(t){["mousedown","keydown","touchstart","pointerdown"].forEach((function(n){return t(n,Ou,bu)}))},Cu=[100,300],Iu=0,_u=1/0,Pu=0,Mu=function(t){t.forEach((function(t){t.interactionId&&(_u=Math.min(_u,t.interactionId),Pu=Math.max(Pu,t.interactionId),Iu=Pu?(Pu-_u)/7+1:0)}))},xu=function(){return Je?Iu:performance.interactionCount||0},Lu=function(){"interactionCount"in performance||Je||(Je=hu("event",Mu,{type:"event",buffered:!0,durationThreshold:0}))},Du=[200,500],Uu=0,ju=function(){return xu()-Uu},Hu=[],qu={},zu=function(t){var n=Hu[Hu.length-1],i=qu[t.interactionId];if(i||Hu.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]};qu[r.id]=r,Hu.push(r)}Hu.sort((function(t,n){return n.latency-t.latency})),Hu.splice(10).forEach((function(t){delete qu[t.id]}))}},Bu=[2500,4e3],Fu={},Vu=[800,1800],Gu=function t(n){document.prerendering?gu((function(){return t(n)})):"complete"!==document.readyState?addEventListener("load",(function(){return t(n)}),!0):setTimeout(n,0)},Wu=function(t,n){n=n||{};var i=ou("TTFB"),r=cu(t,i,Vu,n.reportAllChanges);Gu((function(){var s=eu();if(s){var e=s.responseStart;if(e<=0||e>performance.now())return;i.value=Math.max(e-uu(),0),i.entries=[s],r(!0),su((function(){i=ou("TTFB",0),(r=cu(t,i,Vu,n.reportAllChanges))(!0)}))}}))},Ju=function(){function t(){}return t.prototype.onFCP=function(t){Su(t,{reportAllChanges:!0})},t.prototype.onCLS=function(t){!function(t,n){n=n||{},Su(vu((function(){var i,r=ou("CLS",0),s=0,e=[],u=function(t){t.forEach((function(t){if(!t.hadRecentInput){var n=e[0],i=e[e.length-1];s&&t.startTime-i.startTime<1e3&&t.startTime-n.startTime<5e3?(s+=t.value,e.push(t)):(s=t.value,e=[t])}})),s>r.value&&(r.value=s,r.entries=e,i())},o=hu("layout-shift",u);o&&(i=cu(t,r,Eu,n.reportAllChanges),fu((function(){u(o.takeRecords()),i(!0)})),su((function(){s=0,r=ou("CLS",0),i=cu(t,r,Eu,n.reportAllChanges),au((function(){return i()}))})),setTimeout(i,0))})))}(t,{reportAllChanges:!0})},t.prototype.onFID=function(t){!function(t,n){n=n||{},gu((function(){var i,r=mu(),s=ou("FID"),e=function(t){t.startTime<r.firstHiddenTime&&(s.value=t.processingStart-t.startTime,s.entries.push(t),i(!0))},u=function(t){t.forEach(e)},o=hu("first-input",u);i=cu(t,s,Cu,n.reportAllChanges),o&&fu(vu((function(){u(o.takeRecords()),o.disconnect()}))),o&&su((function(){var r;s=ou("FID"),i=cu(t,s,Cu,n.reportAllChanges),We=[],Ve=-1,Fe=null,ku(addEventListener),r=e,We.push(r),Tu()}))}))}(t,{reportAllChanges:!0})},t.prototype.onLCP=function(t){!function(t,n){n=n||{},gu((function(){var i,r=mu(),s=ou("LCP"),e=function(t){var n=t[t.length-1];n&&n.startTime<r.firstHiddenTime&&(s.value=Math.max(n.startTime-uu(),0),s.entries=[n],i())},u=hu("largest-contentful-paint",e);if(u){i=cu(t,s,Bu,n.reportAllChanges);var o=vu((function(){Fu[s.id]||(e(u.takeRecords()),u.disconnect(),Fu[s.id]=!0,i(!0))}));["keydown","click"].forEach((function(t){addEventListener(t,(function(){return setTimeout(o,0)}),!0)})),fu(o),su((function(r){s=ou("LCP"),i=cu(t,s,Bu,n.reportAllChanges),au((function(){s.value=performance.now()-r.timeStamp,Fu[s.id]=!0,i(!0)}))}))}}))}(t,{reportAllChanges:!0})},t.prototype.onTTFB=function(t){Wu(t,{reportAllChanges:!0})},t.prototype.onINP=function(t){!function(t,n){n=n||{},gu((function(){var i;Lu();var r,s=ou("INP"),e=function(t){t.forEach((function(t){t.interactionId&&zu(t),"first-input"===t.entryType&&!Hu.some((function(n){return n.entries.some((function(n){return t.duration===n.duration&&t.startTime===n.startTime}))}))&&zu(t)}));var n,i=(n=Math.min(Hu.length-1,Math.floor(ju()/50)),Hu[n]);i&&i.latency!==s.value&&(s.value=i.latency,s.entries=i.entries,r())},u=hu("event",e,{durationThreshold:null!==(i=n.durationThreshold)&&void 0!==i?i:40});r=cu(t,s,Du,n.reportAllChanges),u&&("PerformanceEventTiming"in window&&"interactionId"in PerformanceEventTiming.prototype&&u.observe({type:"first-input",buffered:!0}),fu((function(){e(u.takeRecords()),s.value<0&&ju()>0&&(s.value=0,s.entries=[]),r(!0)})),su((function(){Hu=[],Uu=xu(),s=ou("INP"),r=cu(t,s,Du,n.reportAllChanges)})))}))}(t,{reportAllChanges:!0})},t}(),Yu=function(){function t(t){void 0===t&&(t=[]),this.Kn=t}return t.prototype.stringifyEvents=function(){return csJSON.stringify(this.Kn)},t.prototype.addEvent=function(t){csArray.prototype.push.call(this.Kn,t)},t.prototype.eventsCount=function(){return this.Kn.length},t.prototype.clearEvents=function(){this.Kn=[]},t.prototype.empty=function(){this.clearEvents()},t.prototype.isFull=function(){return this.eventsCount()>=50},t.prototype.isEmpty=function(){return 0===this.Kn.length},t.prototype.getEvents=function(){return this.Kn},t}(),Xu="v2/events",Ku=["submit"],$u=function(){function t(t,n,i,r,s,e,u,o,h,c){this.D=t,this.Go=n,this.Y=i,this.Va=r,this.ha=s,this.Qh=e,this.tr=u,this.je=o,this.Lc=h,this.rc=c}return t.prototype.init=function(){var t=this,n=new Yu,i=this.rc.create("".concat(this.D.getTrackerUri(),"/").concat(Xu),!0,"base64");this.df=this.wf(i),this.yf=this.pf(n,this.df.getRecoveryStorage(),i),this.yf.init(),this.Lc.addListener(this.yf),this.Qh.register(Ku,(function(n,i){t.yf.pushSubmitEvent(n,i)}))},t.prototype.onStartTracking=function(t){this.df.start(),this.yf.start(t)},t.prototype.onAfterNaturalPageView=function(){this.yf.initStates()},t.prototype.onAfterArtificialPageView=function(){this.yf.initStates(),this.yf.collectInitialEvents()},t.prototype.onArtificialPageViewEnd=function(){this.yf.clearStates(!0)},t.prototype.onBeforeSessionRenewal=function(){this.yf.clearStates(),this.yf.stop(),this.df.stop()},t.prototype.onOptout=function(){this.yf.stop(),this.df.stop()},t.prototype.pf=function(t,n,i){var r=new De(window),s=new Ze,e=new $e(this.D,this.Va,this.ha),u=new Be(this.D,this.Va,this.je),o=new iu(new Ju),h=new cr;var c=new is("".concat(this.D.getTrackerUri(),"/").concat(Xu)),a=new xr(this.Go,this.Y);return new Qe(this.D,e,u,s,r,t,c,a,this.tr,n,this.Va,o,h,i,undefined,undefined,undefined,undefined,undefined,undefined,undefined)},t.prototype.wf=function(t){return new tu(new nu("csAnalysisEventsPersisted"),t)},t}();!function(t){t.Artificial="a",t.Renewal="r",t.Natural="n"}(Ye||(Ye={}));var Zu=function(t){function n(n,i,r,s){var e=t.call(this)||this;return e.Dn=n,e.mf=i,e.tt=r,e.yc=s,e}return Y(n,t),n.prototype.init=function(){this.gf()},n.prototype.onStart=function(t){t?this.Af():this.Sf()},n.prototype.onStop=function(){},n.prototype.triggerArtificialPageView=function(t,n){this.isStarted?this.Ef(t,n):Mt(t)&&this.tt.overridePath(t,n)},n.prototype.Sf=function(){this.yc.setPageViewType(Ye.Natural),this.Dn.emitBeforeNaturalPageView(),this.mf.send(),this.tt.cleanupOverrideLifespan(),this.Dn.emitAfterNaturalPageView()},n.prototype.Af=function(){this.yc.setPageViewType(Ye.Renewal),this.Dn.emitBeforeNaturalPageView(),this.mf.send(),this.Dn.emitAfterNaturalPageView()},n.prototype.Ef=function(t,n){this.yc.setPageViewType(Ye.Artificial),this.Dn.emitArtificialPageViewEnd(),Mt(t)&&this.tt.overridePath(t,n),this.Dn.emitBeforeArtificialPageView(),this.mf.send(),this.tt.cleanupOverrideLifespan(),this.Dn.emitAfterArtificialPageView()},n.prototype.gf=function(){var t=this;window.addEventListener("pageshow",(function(n){t.isStarted&&n.persisted&&t.Ef()}))},n}(Mi),Qu=window.navigator.language||window.navigator.userLanguage||window.navigator.browserLanguage||window.navigator.systemLanguage||"unknown";function to(){return{la:Qu}}var no,io=function(){function t(t){this.sc=t,this.bf=[],this.Rf=!1}return t.prototype.getRequestParameters=function(){return{dr:this.Nf()}},t.prototype.addUrlMaskingPattern=function(t){var n=this.sc.getUrlMaskingPattern(t);csArray.prototype.push.call(this.bf,n)},t.prototype.enableRemoveQueryString=function(){this.Rf=!0},t.prototype.disableRemoveQueryString=function(){this.Rf=!1},t.prototype.Nf=function(){var t=this.Rf?this.sc.removeQueryString(this.Tf()):this.Tf();return this.sc.anonymizeUrl(t,this.bf)},t.prototype.Tf=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}(),ro=function(){function t(t){this.X=t,this.Of=this.kf()&&"currentScript"in document}return t.prototype.Cf=function(){var t=window.CSCurrentScript;if(!t)return null;var n=window.performance.getEntriesByName(t.src,"resource")[0];return!n||this.If(n)?null:Math.round(n.responseEnd-n.fetchStart)},t.prototype.If=function(t){var n=t.transferSize;return void 0!==n?0===n||300===n||n<t.encodedBodySize:t.connectStart===t.domainLookupEnd},t.prototype.getRequestParameters=function(){if(!this.Of||1!==this.gc())return{};var t=this.Cf();return null===t?{}:{dt:"".concat(Math.min(t,99999))}},t.prototype.gc=function(){var t;return(null===(t=this.X.getSession())||void 0===t?void 0:t.pageNumber)||null},t.prototype.kf=function(){return"object"==typeof window.performance&&"function"==typeof window.performance.getEntriesByName},t}(),so=["trackPageview"],eo=["setPath"],uo=["setQuery"],oo=["referrer:maskUrl"],ho=["referrer:removeQueryString"],co=["referrer:keepQueryString"],ao=function(){function t(t,n,i,r,s,e,u,o,h,c,a,f){this.D=t,this.Qh=n,this.Dn=i,this.Xo=r,this.Y=s,this.X=e,this.Gu=u,this.un=o,this.sc=h,this.tt=c,this.ic=a,this.yc=f}return t.prototype.init=function(){var t=this,i=new vt(this.D.getTrackerUri(),"pageview");this._f=new Zu(this.Dn,i,this.tt,this.yc);var r=new io(this.sc);this._f.init();var s=new xr(this.Xo,this.Y,or,r,this.tt,this.Gu,n,this.un,this.yc,new ro(this.X),this.ic);i.setRequestParametersProviders(s),this.Qh.register(so,(function(n,i){It(n)?t.Pf(i)?t._f.triggerArtificialPageView(n,i):t._f.triggerArtificialPageView(n):t._f.triggerArtificialPageView()})),this.Qh.register(eo,(function(n,i){It(n)&&(t.Pf(i)?t.tt.overridePath(n,i):t.tt.overridePath(n))})),this.Qh.register(uo,(function(n,i){It(n)&&(t.Pf(i)?t.tt.overrideQuery(n,i):t.tt.overrideQuery(n))})),this.Qh.register(oo,(function(t){return r.addUrlMaskingPattern(t)})),this.Qh.register(ho,(function(){return r.enableRemoveQueryString()})),this.Qh.register(co,(function(){return r.disableRemoveQueryString()}))},t.prototype.start=function(t){this._f.start(t)},t.prototype.onBeforeSessionRenewal=function(){this._f.stop()},t.prototype.Pf=function(t){return _t(t)&&null!==t},t}(),fo=function(){function t(t){this.ta=t}return t.prototype.on=function(t,n){var i=this;return function(r){i.ta.hasValidEventTarget(r)&&i.Mf(r,t)&&n(r)}},t.prototype.Mf=function(t,n){var i=Yn(t);return P.call(i,n)},t.prototype.isMatchesSelectorSupported=function(){return!!P},t}(),vo=function(){function t(){}return t.prototype.onLoad=function(t){this.$t=t},t.prototype.onLoadCallbackExecute=function(){this.$t()},t.prototype.start=function(){var t=this.onLoadCallbackExecute.bind(this);this.xf(t)},t.prototype.xf=function(t){function n(){document.removeEventListener("DOMContentLoaded",n),window.removeEventListener("load",n),t()}"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?setTimeout(t):(document.addEventListener("DOMContentLoaded",n),window.addEventListener("load",n))},K([ln("onLoad")],t.prototype,"onLoadCallbackExecute",null),t}(),lo=function(){function t(t,n,i){this.D=t,this.Y=n,this.X=i,this.cf=bt()}return t.prototype.resetStartTime=function(){this.cf=bt()},t.prototype.getSessionData=function(){var t=this.D.projectId,n=this.Y.getVisitor();null==n&&on.warn("Visitor is null. This happens when a snippet tries to get Session Data before the tag was initialized.");var i=null!=n?n:{},r=i.id,s=i.visitsCount,e=this.X.getSession();return null===e&&on.warn("Session is null. This happens when a snippet tries to get Session Data before the tag was initialized."),{projectId:t,userId:r,sessionNumber:s,pageNumber:(null!=e?e:{}).pageNumber,relativeTimestamp:bt()-this.cf}},t}(),wo=["clearSession"],yo=["extendSession"],po=["getSessionData"],mo=["session:start:newVisitor"],go=["session:clear:visitor"],Ao=function(){function t(t,n,i,r){this.D=t,this.Y=n,this.X=i,this.Qh=r}return t.prototype.init=function(){var t=this;this.Lf=new lo(this.D,this.Y,this.X),this.Qh.register(wo,(function(){return t.X.removeSession()})),this.Qh.register(yo,(function(){return t.X.extendSessionPeriodically()}),{disableApplyPending:!0}),this.Qh.register(po,(function(){return t.Lf.getSessionData()}),{disableApplyPending:!0}),this.Qh.register(mo,(function(){return t.Y.renewVitor()})),this.Qh.register(go,(function(){t.Y.resetVisitor()}),{disableApplyImmediate:!0})},t.prototype.onBeforeNaturalPageView=function(){this.Y.createOrUpdateVisitor(),this.X.createOrUpdateSession()},t.prototype.onBeforeArtificialPageView=function(){this.X.abortQuotaServiceRequest(),this.Y.createOrUpdateVisitor(),this.X.createOrUpdateSession()},t.prototype.onAfterNaturalPageView=function(){this.Lf.resetStartTime()},t.prototype.onAfterArtificialPageView=function(){this.Lf.resetStartTime()},t.prototype.onOptout=function(){this.Y.removeVisitor(),this.X.removeSession()},t.prototype.onRecordingStateChange=function(t,n){this.X.updateRecordingState(t,n)},t}(),So=function(){function t(t,n){this.X=t,this.Y=n,this.Df=!1}return t.prototype.onSessionExpired=function(t){this.Uf=t},t.prototype.isSessionValid=function(){if(this.Df)return!0;var t=this.X.hasValidSession(),n=!1;return this.X.pollCacheRefreshEvent()&&(n=this.Y.isSessionRenewed()),t&&!n||!this.jf()?t:(this.Hf=bt(),this.Df=!0,this.Uf(),this.Df=!1,this.X.hasValidSession())},t.prototype.isCurrentPageviewValid=function(){var t=this.X.hasValidSession();return this.X.pollCacheRefreshEvent(!1)?!this.Y.isSessionRenewed():t},t.prototype.startNewSession=function(){this.Uf()},t.prototype.jf=function(){return!Pt(this.Hf)||bt()-this.Hf>6e4},t}();function Eo(t){return t.tagDeploymentMode===no.DualCollectionReview||t.tagDeploymentMode===no.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"}(no||(no={}));var bo,Ro=function(){function t(t,n,i){this.D=t,this.X=n,this.Un=i}return t.prototype.init=function(){this.qf=!1,this.zf=!1},t.prototype.loadClicktalePtc=function(){!this.qf&&this.D.ptcDomain&&this.D.ptcGuid&&this.Bf()},t.prototype.startDataCollection=function(t){this.zf||(this.D.tagDeploymentMode===no.LoadClicktalePtc&&this.Ff()&&this.Un.initCTPII(),Eo(this.D)&&(this.Un.initCTPII(),t(),this.zf=!0))},t.prototype.Ff=function(){return this.X.isReplayRecorded()},t.prototype.Bf=function(){this.qf=!0;var t=this.Vf();document.getElementsByTagName("head")[0].appendChild(t)},t.prototype.Vf=function(){var t=document.createElementNS("http://www.w3.org/1999/xhtml","script");return t.async=!0,t.crossOrigin="anonymous",t.type="text/javascript",this.D.ptcSha512&&this.D.ptcSnapshotPath?(t.integrity="sha512-".concat(this.D.ptcSha512),t.src="https://".concat(this.D.ptcDomain,"/").concat(this.D.ptcSnapshotPath,"/ptc.js")):t.src="https://".concat(this.D.ptcDomain,"/ptc/").concat(this.D.ptcGuid,".js"),t},t}();!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)}}(bo||(bo={}));var No,To=function(){function t(t,n,i,r,s,e){this.D=t,this.X=n,this.tt=i,this.Qh=r,this.Gf=s,this.Un=e}return t.prototype.init=function(){var t=this;this.Wf=new Ro(this.D,this.X,this.Un),this.Wf.init(),this.Jf(),this.Qh.register(["startDataCollection"],(function(){t.Wf.startDataCollection(t.Gf)}))},t.prototype.Jf=function(){Eo(this.D)&&this.Wf.loadClicktalePtc()},t.prototype.onAfterNaturalPageView=function(){this.D.tagDeploymentMode===no.LoadClicktalePtc&&this.Wf.loadClicktalePtc()},t.prototype.onAfterArtificialPageView=function(){!this.X.isReplayRecorded()&&bo.isRecording()&&this.D.tagDeploymentMode===no.LoadClicktalePtc&&bo.triggerLogicalPageView(this.tt.getAnonymizedUrl())},t.prototype.onAfterSessionRenewal=function(){!this.X.isReplayRecorded()&&bo.isRecording()&&bo.triggerLogicalPageView(this.tt.getAnonymizedUrl())},t.prototype.onOptout=function(){bo.isRecording()&&bo.stopRecording()},t}(),Oo="@user-identifier@",ko=function(t){function n(n,i,r,s){var e=t.call(this)||this;return e.D=n,e.Yf=i,e.Fc=r,e.Xf=s,e.Kf=[],e._r=[],e}return Y(n,t),n.prototype.onStart=function(){var t=this;csArray.prototype.forEach.call(this.Kf,(function(n){return t.trackPageEvent(n)})),this.Kf=[],csArray.prototype.forEach.call(this._r,(function(n){return t.trackEventTriggerRecording(n)})),this._r=[]},n.prototype.onStop=function(){},n.prototype.trackPageEvent=function(t){this.isStarted?n.$f(t)&&(this.Zf(t)?Ws.isSupported()&&this.Qf(t):this.tv(t)):csArray.prototype.push.call(this.Kf,t)},n.prototype.Zf=function(t){return it(t,Oo)},n.prototype.Qf=function(t){return $(this,void 0,void 0,(function(){var n,i;return Z(this,(function(r){switch(r.label){case 0:return this.D.customHashIdEnabled?(n=csString.prototype.slice.call(t,17)).length>Ws.MAX_DIGEST_INPUT_SIZE?(on.warn("UserIdentifier event: invalid user identifier"),[2]):[4,Ws.digest(n)]:[2];case 1:return(i=r.sent())?(this.nv={eventName:i,isETR:!1,isCustomHashId:!0},this.iv()):on.warn("Page event: unable to compute customHashId"),this.D.encryptionEnabled?(this.Xf.emitUserIdentifierEvent(n),[2]):[2]}}))}))},n.prototype.tv=function(t){this.Xf.emitPageEvent(t),this.nv={eventName:t,isETR:!1,isCustomHashId:!1},this.iv(),this.D.tagDeploymentMode===no.LoadClicktalePtc&&bo.sendPageEvent(t)},n.prototype.trackEventTriggerRecording=function(t){this.isStarted?n.$f(t)&&(this.D.malkaEtrEnabled?this.rv(t):this.sv(t)):csArray.prototype.push.call(this._r,t)},n.prototype.rv=function(t){it(t,"@ETP@")?this.Xf.emitEventTriggerRecording(t,Oi.ETR_PAGE):this.Xf.emitEventTriggerRecording(t,Oi.ETR_SESSION),this.nv={eventName:t,isETR:!0,isCustomHashId:!1},this.iv()},n.prototype.sv=function(t){(function(t){return Eo(t)||t.tagDeploymentMode===no.LoadClicktalePtc})(this.D)&&(this.Xf.emitEventTriggerRecording(t,Oi.ETR_LEGACY),this.nv={eventName:t,isETR:!0,isCustomHashId:!1},this.iv(),this.D.tagDeploymentMode===no.LoadClicktalePtc&&bo.sendEventTriggerRecording(t))},n.prototype.getRequestParameters=function(){return{value:this.Fc.compressSync(this.nv.eventName,"base64"),ct:this.Fc.algorithm,isETR:"".concat(this.nv.isETR),isCustomHashId:"".concat(this.nv.isCustomHashId)}},n.prototype.iv=function(){this.Yf.send()},n.$f=function(t){return It(t)&&!!csString.prototype.trim.call(t)},n}(Mi),Co=["trackPageEvent"],Io=["trackEventTriggerRecording"],_o=function(){function t(t,n,i,r,s){this.D=t,this.Qh=n,this.Fc=i,this.Xo=r,this.Xf=s}return t.prototype.init=function(){var t=this,n=new vt(this.D.getTrackerUri(),"pageEvent");this.ev=new ko(this.D,n,this.Fc,this.Xf),n.setRequestParametersProviders(this.ev,this.Xo),this.Qh.register(Co,(function(n){t.ev.trackPageEvent(n)})),this.Qh.register(Io,(function(n){t.ev.trackEventTriggerRecording(n)}))},t.prototype.onStartTracking=function(){this.ev.start()},t}(),Po=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}();!function(t){t.ellipsis="…",t.truncateStringWithEllipsis=function(n,i){return n.length<=i?n:csString.prototype.slice.call(n,0,i-t.ellipsis.length)+t.ellipsis}}(No||(No={}));var Mo=function(t){function n(){var n=t.call(this)||this;return n.uv=!1,n.ov={boundElement:window,type:"error",listener:function(t){return n.errorListener(t)}},n}return Y(n,t),n.prototype.onStartTracking=function(){In(this.ov,this.uv)},n.prototype.onStopTracking=function(){_n(this.ov,this.uv)},n.prototype.errorListener=function(t){var n=this.hv(t);for(var i in this.subscriptions){(0,this.subscriptions[i])(n)}},n.prototype.cv=function(t){return t=null!=t?t:"[NO ERROR MESSAGE]",No.truncateStringWithEllipsis(t,n.av)},n.prototype.hv=function(t){return{errorType:"jsError",message:this.cv(t.message),filename:t.filename,lineno:t.lineno,colno:t.colno}},n.truncatedErrorMessageMarker="…",n.av=1024,K([ln("Event handler type: error")],n.prototype,"errorListener",null),n}(Po),xo=document.createElement("div");function Lo(t){if(!(!!t&&It(t)))return on.warn("isValidSelector: invalid selector provided '".concat(t,"'")),!1;try{return P.call(xo,t),!0}catch(n){return on.warn("isValidSelector: invalid selector provided '".concat(t,"'")),!1}}var Do,Uo=["#c1_card_info_id"],jo=function(){function t(t,n){var i;this.D=t,this.fv=n,this.vv=Q(["[data-cs-mask]","script"],Uo,!0),this.lv=[{selector:"input:not([type=button]):not([type=submit])",attrName:"value"}],this.wv={PIISelectors:Q([".ctHidden,textarea"],Uo,!0),Attributes:[{selector:".ctHidden,input:not([type=button]):not([type=submit])",attrName:"value"}]},this.yv=[],this.pv="",Eo(this.D)||(this.pv=this.mv(this.pv,this.vv),(i=csArray.prototype.push).call.apply(i,Q([this.yv],this.lv,!1)))}return t.prototype.setPIISelectors=function(t){var n,i=this;if(t){if(null===(n=t.PIISelectors)||void 0===n?void 0:n.length){var r=csArray.prototype.filter.call(t.PIISelectors,(function(t){return Lo(t)}));this.pv=this.mv(this.pv,r)}t.Attributes instanceof Array&&csArray.prototype.forEach.call(t.Attributes,(function(t){t&&t.attrName&&Lo(t.selector)&&!i.gv(t)&&csArray.prototype.push.call(i.yv,t)}))}},t.prototype.getPIISelectors=function(){return{PIISelectors:[this.pv],Attributes:this.yv}},t.prototype.initCTPII=function(){var t,n,i,r=this;if(this.pv=this.mv(this.pv,this.wv.PIISelectors),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){var s=csArray.prototype.filter.call(window.ClickTaleSettings.DOM.PII.Text,(function(t){return Lo(t)}));this.pv=this.mv(this.pv,s),(t=csArray.prototype.push).call.apply(t,Q([this.yv],this.wv.Attributes,!1)),csArray.prototype.forEach.call(window.ClickTaleSettings.DOM.PII.Attributes,(function(t){t.attr&&Lo(t.rule)&&csArray.prototype.push.call(r.yv,{selector:t.rule,attrName:t.attr})}))}},t.prototype.identifySensitiveNodes=function(){this.fv.startSensitiveIdentifier(this.pv,this.yv,(function(){}))},t.prototype.unidentifyAllSensitiveNodes=function(){this.fv.stopSensitiveIdentifier()},t.prototype.unidentifySensitiveNodes=function(t){this.fv.unidentifySensitiveNodes(t)},t.prototype.onSensitiveElementResize=function(t){this.fv.onSensitiveElementResize(t)},t.prototype.mv=function(t,n){if(0===n.length)return t;if(0===t.length)return csArray.prototype.join.call(n,",");for(var i=csString.prototype.split.call(t,","),r=0,s=n;r<s.length;r++)for(var e=s[r],u=0,o=csString.prototype.split.call(e,",");u<o.length;u++){var h=o[u];-1===csArray.prototype.indexOf.call(i,h)&&csArray.prototype.push.call(i,h)}return csArray.prototype.join.call(i,",")},t.prototype.gv=function(t){return csArray.prototype.some.call(this.yv,(function(n){return n.selector===t.selector&&n.attrName===t.attrName}))},t}(),Ho=function(){function t(t){this.Qh=t}return t.prototype.init=function(){this.Av(t.Sv,qt),this.Av(t.Ev,Ht)},t.prototype.Av=function(t,n){this.Qh.register([t],(function(t,i){It(t)&&(It(i)||Dt(i))&&on.error(i,"".concat(n).concat(t))}))},t.Ev="logSnippetError",t.Sv="logImplementationSnippetError",t}(),qo=function(){function t(t,n,i,r){this.D=t,this.Pc=n,this.Zh=i,this.Lc=r}return t.prototype.init=function(){var t=this;this.Pc.onChildMessage((function(n,i,r){return t.Lc.emitIframeEvent(n,i,r)})),this.Pc.setRecordingStatusCallback((function(){return t.Zh.getRecordingStatus()}))},t.prototype.onStartTracking=function(){this.D.iframesTracking&&this.Pc.start()},t.prototype.onOptout=function(){this.D.iframesTracking&&this.Pc.stop()},t.prototype.onRecordingStatusChange=function(){this.D.iframesTracking&&this.Pc.onRecordingStatusChange(this.Zh.getRecordingStatus())},t}(),zo=function(t){function n(n){var i=t.call(this)||this;return i.D=n,i.bv=0,i.Rv=new Map,i.Nv={boundElement:window,type:"message",listener:function(t){return i.Tv(t)}},i}return Y(n,t),n.prototype.onChildMessage=function(t){this.Ov=t},n.prototype.setRecordingStatusCallback=function(t){this.kv=t},n.prototype.onRecordingStatusChange=function(t){var n=this,i=nn.buildBaseMessage(tn.RecordingStatus,Qt.Parent,this.D.projectId);i.content=t,this.Rv.forEach((function(t){!n.Cv(t)&&t.port&&nn.sendChannelMessage(t.port,i)}))},n.prototype.sendToChildren=function(t,n){var i=nn.buildBaseMessage(t,Qt.Parent,this.D.projectId);i.content=n,this.Iv(i)},n.prototype.onStart=function(){In(this.Nv,!1),this._v()},n.prototype.onStop=function(){this.Pv(),_n(this.Nv,!1),this.Mv()},n.prototype._v=function(){var t=this,n=this.xv();this.Lv(n),csArray.prototype.forEach.call(n,(function(n){if(null===t.Dv(n)){var i={iframe:n};t.Rv.set(t.bv,i),t.bv+=1}})),this.Uv()},n.prototype.xv=function(){var t=this;return csArray.prototype.filter.call(dr.findAllElements("iframe"),(function(n){return t.jv(n)}))},n.prototype.Lv=function(t){var n=this;this.Rv.forEach((function(i,r){i.iframe&&-1===csArray.prototype.indexOf.call(t,i.iframe)&&n.Hv(r,i)}))},n.prototype.Hv=function(t,n){n.port&&nn.closeChannelPort(n.port),this.Rv.delete(t)},n.prototype.Mv=function(){this.Rv.forEach((function(t){t.port&&nn.closeChannelPort(t.port)})),this.Rv.clear()},n.prototype.Dv=function(t){var n=null;return this.Rv.forEach((function(i,r){null===n&&i.iframe===t&&(n=r)})),n},n.prototype.jv=function(t){return t.id!==i&&(!t.src||Xt(Yt(t.src),this.D.hostnames))},n.prototype.Iv=function(t){this.Rv.forEach((function(n){n.port&&nn.sendChannelMessage(n.port,t)}))},n.prototype.Uv=function(){var t=this;this.Rv.forEach((function(n,i){if(n.iframe.contentWindow){var r=t.qv(i);nn.sendPostMessage(n.iframe.contentWindow,"*",r)}}))},n.prototype.Pv=function(){var t=this.zv();this.Rv.forEach((function(n){n.port?nn.sendChannelMessage(n.port,t):n.iframe.contentWindow&&nn.sendPostMessage(n.iframe.contentWindow,"*",t)}))},n.prototype.qv=function(t){return nn.buildBaseMessage(tn.Discovery,Qt.Parent,this.D.projectId,t)},n.prototype.zv=function(){return nn.buildBaseMessage(tn.Stop,Qt.Parent,this.D.projectId)},n.prototype.Bv=function(t,n){var i=this,r=this.Rv.get(t);void 0!==r?(r.port=n,r.port.onmessage=function(t){i.Fv(t,r)}):on.error("Parent received channel messaging initialization from unknow child id : ".concat(t," (").concat(this.bv,")"))},n.prototype.Vv=function(t){if(t.port){var n=nn.buildBaseMessage(tn.RecordingStatus,Qt.Parent,this.D.projectId),i=this.kv();this.Cv(t)&&(i.isRecording=!1,i.isMutationTrackerStarted=!1),n.content=i,nn.sendChannelMessage(t.port,n)}},n.prototype.Fv=function(t,n){if(void 0!==n){var i=t.data.type,r=t.data.content;i===tn.EndOfBufferedMessages?this.Vv(n):this.Ov(n.iframe,i,r)}else on.error("Parent received channelMessage from unknown child : ".concat(csJSON.stringify(t.data)))},n.prototype.Tv=function(t){if(nn.isMessageValid(t,Qt.Child,this.D.projectId,this.D.hostnames))switch(t.data.type){case tn.Discovery:if(void 0===t.data.id)return void this._v();if(t.ports&&1===t.ports.length&&this.Rv.has(t.data.id))return void this.Bv(t.data.id,t.ports[0]);on.error("Parent received wrong channelMessage initialization : (".concat(t.origin,") : ").concat(csJSON.stringify(t.data)));break;case tn.ChildLogMessage:this.Ov(null,tn.ChildLogMessage,t.data.content);break;default:on.warn("Parent received unexpected postMessage type from child (".concat(t.origin,") : ").concat(csJSON.stringify(t.data)))}},n.prototype.Cv=function(t){return ei.isSensitive(t.iframe)||ei.isSensitiveChild(t.iframe)},n}(Mi),Bo=function(t){function n(n,i){var r=t.call(this)||this;return r.Gv=n,r.Wv=i,r.Jv=[],r}return Y(n,t),n.prototype.subscribe=function(n,i,r){(null==r?void 0:r.detailedEvent)&&Object.defineProperty(i,"detailedEvent",{value:r.detailedEvent}),t.prototype.subscribe.call(this,n,i)},n.prototype.init=function(){var t=this;this.Gv.onEvent((function(n){return t.Yv(n)})),this.Wv.onEvent((function(n){return t.Yv(n)}))},n.prototype.onStartTracking=function(){this.Gv.start(),this.Wv.start()},n.prototype.onStopTracking=function(){this.Gv.stop(),this.Wv.stop()},n.prototype.Yv=function(t){if(t.url&&t.statusCode){if(this.Xv(t.url))return;if(t.statusCode>=400||t.isConfigurableApiError)for(var n in this.subscriptions){var i=this.subscriptions[n];if(i.hasOwnProperty("detailedEvent"))i(this.Kv(t));else i(this.$v(t))}}},n.prototype.$v=function(t){return{errorType:"apiError",url:t.url,method:t.method,requestTime:t.requestTime,responseTime:t.responseTime,statusCode:t.statusCode,library:t.library,matchingBodyContent:t.matchingBodyContent}},n.prototype.Kv=function(t){var n=this.$v(t);return Object.keys(t.standardRequestHeaders).length>0&&(n.standardRequestHeaders=t.standardRequestHeaders),Object.keys(t.standardResponseHeaders).length>0&&(n.standardResponseHeaders=t.standardResponseHeaders),Object.keys(t.customRequestHeaders).length>0&&(n.customRequestHeaders=csJSON.stringify(t.customRequestHeaders)),Object.keys(t.customResponseHeaders).length>0&&(n.customResponseHeaders=csJSON.stringify(t.customResponseHeaders)),t.queryParameters&&(n.queryParameters=t.queryParameters),t.requestBody&&(n.requestBody=t.requestBody),t.responseBody&&(n.responseBody=t.responseBody),Object.keys(t.plainCustomRequestHeaders).length>0&&(n.plainCustomRequestHeaders=t.plainCustomRequestHeaders),Object.keys(t.plainCustomResponseHeaders).length>0&&(n.plainCustomResponseHeaders=t.plainCustomResponseHeaders),n},n.prototype.Xv=function(t){return csArray.prototype.some.call(this.Jv,(function(n){return-1!==csString.prototype.indexOf.call(t,n)}))},n.prototype.excludeDomains=function(t){var n;(n=csArray.prototype.push).call.apply(n,Q([this.Jv],t,!1))},n.truncatedErrorMessageMarker="…",n}(Po),Fo=function(){function t(t){this.sc=t,this.bf=[]}return t.prototype.addUrlMaskingPattern=function(t){var n=this.sc.getUrlMaskingPattern(t);csArray.prototype.push.call(this.bf,n)},t.prototype.getUrlMaskingPatterns=function(){return this.bf},t.prototype.anonymize=function(t){var n=this.sc.removeQueryString(t.url);return X(X({},t),{url:this.sc.anonymizeUrl(n,this.bf),library:t.library?this.sc.anonymizeUrl(t.library,this.bf):void 0})},t}(),Vo=function(){function t(t,n){this.U=t,this.tt=n}return t.prototype.anonymize=function(t){return It(t.message)&&(t.message=this.Zv(t.message),t.message=this.U.anonymizePII(t.message)),It(t.filename)&&(t.filename=this.tt.computeOverriddenUrl(t.filename)),t},t.prototype.Zv=function(t){return csString.prototype.replace.call(t,/(value\s*=\s*".*"|value\s*=\s*'.*')/,"value='".concat("CS_ANONYMIZED_VALUE","'"))},t}(),Go=function(){function t(){}return t.prototype.compute=function(t,n){var i=this.Qv(n.x)-this.Qv(t.x),r=this.Qv(n.y)-this.Qv(t.y),s=n.time-t.time;return{duration:s,distance:this.tl(i,r),direction:this.nl(i,r),velocity:this.il(i,r,s)}},t.prototype.computePinchMetrics=function(t,n){var i=this.Qv(n.x)-this.Qv(t.x),r=this.Qv(n.y)-this.Qv(t.y);return{duration:n.time-t.time,distance:this.tl(i,r)}},t.prototype.getScale=function(t,n){return Math.abs(n/t-1)},t.prototype.Qv=function(t){return t/window.devicePixelRatio},t.prototype.tl=function(t,n){return Math.round(Math.sqrt(t*t+n*n))},t.prototype.il=function(t,n,i){var r=i/1e3,s=t/r,e=n/r;return Math.round(Math.abs(s)+Math.abs(e))},t.prototype.nl=function(t,n){return Math.abs(t)>Math.abs(n)?t>0?Zr.RIGHT:Zr.LEFT:n>0?Zr.DOWN:Zr.UP},t}(),Wo=function(){function t(){this.rl={},this.sl=new Go,this.el()}return t.prototype.onGesture=function(t){this.ul=t},t.prototype.isValidTouchEvent=function(t){return"touches"in t&&"changedTouches"in t},t.prototype.processActionDown=function(t){if(this.ol(t)){this.hl(t)&&this.el();var n={x:t.touches[0].clientX,y:t.touches[0].clientY,time:bt()};if(1===t.touches.length)this.rl.startPinchTime=n.time,this.rl.firstTouch=n;else if(2===t.touches.length&&(this.rl.secondTouch={x:t.touches[1].clientX,y:t.touches[1].clientY,time:bt()},this.rl.firstTouch&&this.rl.secondTouch)){var i=this.sl.computePinchMetrics(this.rl.firstTouch,this.rl.secondTouch);this.cl=i.distance}csArray.prototype.push.call(this.al,n),this.vl=Yn(t)}},t.prototype.processActionMove=function(){this.ll=!0},t.prototype.processActionUp=function(t){if(this.dl(t)){if(csArray.prototype.push.call(this.al,{x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY,time:bt()}),this.wl(t)&&this.rl.startPinchTime){var n={x:t.touches[0].clientX,y:t.touches[0].clientY,time:this.rl.startPinchTime},i={x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY,time:bt()};this.rl.firstTouch&&(this.rl.firstTouch=n,this.rl.secondTouch=i),this.yl(t)}this.cl||this.pl()&&this.ml(t)}},t.prototype.el=function(){this.al=[],this.vl=null,this.ll=!1,this.cl=null,this.gl=!0},t.prototype.ml=function(t){var n=this.sl.compute(this.al[0],this.al[1]);this.gl=t.isTrusted;var i=this.ll?this.Al(n):this.Sl(n);this.ul(i,t)},t.prototype.yl=function(t){if(this.rl.firstTouch&&this.rl.secondTouch){var n=this.sl.computePinchMetrics(this.rl.firstTouch,this.rl.secondTouch);this.gl=t.isTrusted;var i=this.El(n);i&&this.ul(i,t)}},t.prototype.El=function(t){if(this.cl&&!(this.sl.getScale(this.cl,t.distance)<.1))return{type:this.cl>t.distance?$r.PINCH_IN:$r.PINCH_OUT,target:this.vl,distance:t.distance,isTrusted:this.gl}},t.prototype.Al=function(t){return{type:t.velocity<100?$r.DRAG:$r.FLICK,target:this.vl,velocity:t.velocity,distance:t.distance,direction:t.direction,isTrusted:this.gl}},t.prototype.Sl=function(t){return{type:t.duration<1e3?$r.TAP:$r.LONG_PRESS,target:this.vl,isTrusted:this.gl}},t.prototype.hl=function(t){return 1===t.touches.length},t.prototype.pl=function(){return 2===this.al.length},t.prototype.ol=function(t){return t.touches.length>0},t.prototype.dl=function(t){return t.changedTouches.length>0},t.prototype.wl=function(t){return this.ll&&!!this.cl&&1===t.changedTouches.length&&1===t.touches.length},t}(),Jo=function(t){function n(n){var i=t.call(this)||this;return i.bl=n,i.js=[{boundElement:document,type:"touchstart",listener:function(t){return i.Br(t)}},{boundElement:document,type:"touchmove",listener:function(t){return i.Br(t)}},{boundElement:document,type:"touchend",listener:function(t){return i.Br(t)}}],i.Rl=new Wo,i.Rl.onGesture((function(t,n){return i.Nl(t,n)})),i}return Y(n,t),n.prototype.Nl=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.js,(function(t){return In(t)}))},n.prototype.onStopTracking=function(){this.canDetectGesture()&&csArray.prototype.forEach.call(this.js,(function(t){return _n(t)}))},n.prototype.canDetectGesture=function(){return void 0!==window.devicePixelRatio},n.prototype.Br=function(t){var n=this;this.bl.tryToExecute("process gesture event",(function(){if(n.Rl.isValidTouchEvent(t))switch(t.type){case"touchstart":n.Rl.processActionDown(t);break;case"touchmove":n.Rl.processActionMove();break;case"touchend":n.Rl.processActionUp(t)}}))()},n.isSwipe=function(t){return t.type===$r.FLICK||t.type===$r.DRAG},n}(Po),Yo=function(t){function n(n,i){var r=t.call(this)||this;return r.hr=n,r.Tl=i,r.Ol=0,r}return Y(n,t),n.prototype.onStart=function(){var t=this;on.isPerfLoggingActive()&&(this.kl=window.setInterval((function(){return t.Cl()}),n.Il))},n.prototype.onStop=function(){on.isPerfLoggingActive()&&(this.Cl(),clearInterval(this.kl))},n.prototype.Cl=function(){if(!(qn.isEmpty()||this.Ol>=n._l)){var t=qn.getAll();this.Ol++;var i=X({a:n.Pl,l:n.Ml},this.Tl.getRequestParameters()),r=csArray.prototype.map.call(t,(function(t){return X(X({},t),i)}));this.hr.send(r),qn.clear()}},n.Pl="uxa",n.Ml="perf",n.Il=5e3,n._l=5,n}(Mi),Xo=function(){function t(t,n,i){this.D=t,this.Tl=n,this.rc=i}return t.prototype.init=function(){this.xl=new Yo(this.rc.create(this.D.getLoggerUri(),!0),this.Tl)},t.prototype.onStartTracking=function(){this.xl.start()},t.prototype.onOptout=function(){this.xl.stop()},t}(),Ko=function(){function t(){this.Ll=!1}return t.prototype.enableRecordingStatus=function(t,n,i,r,s){this.Ll=!0,this.qs=t,this.Un=n,this.zs=i,this.X=r,this.ur=s},t.prototype.getRecordingStatus=function(){var t,n,i,r;return this.Ll?{isRecording:this.qs.isRecording(),isMutationTrackerStarted:this.qs.isMutationTrackerStarted(),PIISelectors:this.Un.getPIISelectors(),capturedElementSelector:Zi.getWhitelistedElementsSelector(),useAnonymization:this.zs.shouldUseAnonymization(),encryptionSelectors:null===(t=this.ur)||void 0===t?void 0:t.getEncryptionSelectors(),activateOnlineAssetsOnNextStart:null===(n=this.qs.getStaticResourceManagerStatus())||void 0===n?void 0:n.onlineAssets.enabledForChildrenOnNextStart,recordingStartTimestamp:parseInt(this.qs.getRecordingStartTimestamp(),10),etrState:null!==(r=null===(i=this.X.getSession())||void 0===i?void 0:i.etrState)&&void 0!==r?r:Ti.ETR_OFF}:{isRecording:!1,recordingStartTimestamp:0,etrState:Ti.ETR_OFF}},t}(),$o=function(){function t(t,n,i){var r=this;this.D=t,this.Dl=n,this.Ul=i,this.Ci=!1,this.jl=null,this.li=[],this.Hl=function(t){var n=t.result,i=t.args,s=t.callerName;r.interceptFetch(n,i,s)}}return t.prototype.onEvent=function(t){csArray.prototype.push.call(this.li,t)},t.prototype.start=function(){this.Ci||this.ql()&&(this.zl(),this.jl&&this.jl.activate(),this.Ci=!0)},t.prototype.stop=function(){this.Ci&&(this.jl&&this.jl.deactivate(),this.Ci=!1)},t.prototype.ql=function(){return!!window.fetch&&"function"==typeof window.fetch},t.prototype.Bl=function(t){if(t[0]&&"function"==typeof t[0].clone){var n=hi(t);return n[0]=t[0].clone(),n}return t},t.prototype.zl=function(){this.jl||(this.jl=Ki({target:window,methodName:"fetch",hook:this.Hl,hookPrepareArgs:this.Bl,options:{withCallerName:!0}}))},t.prototype.Fl=function(t,n,i){return $(this,void 0,void 0,(function(){var r,s,e,u,o,h,c,a,f;return Z(this,(function(v){switch(v.label){case 0:return r=csString.prototype.split.call(n.url,"?"),s=r[0],e=r[1],u=Wt(s),o=X(X({},t),{url:u,method:n.method,responseTime:bt(),standardRequestHeaders:{},standardResponseHeaders:{},customRequestHeaders:{},customResponseHeaders:{},plainCustomRequestHeaders:{},plainCustomResponseHeaders:{}}),this.D.isHeaderCollectionActive()&&(h=this.Dl.extractAllHeaders(n.headers),c=this.Dl.extractAllHeaders(i.headers),this.D.apiErrors.collectStandardHeaders&&(o.standardRequestHeaders=h.standardHeaders,o.standardResponseHeaders=c.standardHeaders),o.customRequestHeaders=h.validCustomHeaders,o.customResponseHeaders=c.validCustomHeaders,o.plainCustomRequestHeaders=h.plainCustomHeaders,o.plainCustomResponseHeaders=c.plainCustomHeaders),this.Dl.isValidUrl(s,this.D.apiErrors.validUrls)?(this.D.apiErrors.collectQueryParam&&e&&(o.queryParameters=e),this.D.apiErrors.collectResponseBody&&this.Dl.isValidBodyType(o.standardResponseHeaders)?(a=o,[4,this.Dl.getResponseBody(i)]):[3,2]):[3,4];case 1:a.responseBody=v.sent(),v.label=2;case 2:return this.D.apiErrors.collectRequestBody&&this.Dl.isValidBodyType(o.standardRequestHeaders)?(f=o,[4,n.text()]):[3,4];case 3:f.requestBody=v.sent(),v.label=4;case 4:return csArray.prototype.forEach.call(this.li,(function(t){return t(o)})),[2]}}))}))},t.prototype.interceptFetch=function(t,n,i){return $(this,void 0,void 0,(function(){var r,s,e,u,o,h,c,a,f;return Z(this,(function(v){switch(v.label){case 0:if(r=n[0],s=n[1],!It((e=new Request(r,s)).url))return[2];u=bt(),v.label=1;case 1:return v.trys.push([1,3,,4]),[4,t];case 2:return o=v.sent(),[3,4];case 3:if(h=v.sent(),this.Vl(h)||this.Gl(h)||this.Wl(h))return[2];throw h;case 4:return c=o.status,a={statusCode:c,library:i,requestTime:u},c>=400?[4,this.Fl(X(X({},a),{isConfigurableApiError:!1}),e,o)]:[3,6];case 5:return v.sent(),[3,9];case 6:return[3,9];case 7:return(f=v.sent()).isMatching?[4,this.Fl(X(X({},a),{isConfigurableApiError:!0,matchingBodyContent:f.matchingBodyContent}),e,o)]:[3,9];case 8:v.sent(),v.label=9;case 9:return[2]}}))}))},t.prototype.Vl=function(t){return t instanceof TypeError},t.prototype.Gl=function(t){return t instanceof DOMException&&"AbortError"===t.name},t.prototype.Wl=function(n){return n instanceof DOMException&&csArray.prototype.some.call(t.Jl,(function(t){return t===n.name}))},t.Jl=["NoModificationAllowedError","InvalidStateError","OperationError"],K([ln("FetchRequestTracker.interceptFetch")],t.prototype,"interceptFetch",null),t}(),Zo=function(){function t(){this.Yl=["application/json","application/graphql","application/xml","text/plain","text/csv","text/html","text/xml"]}return t.prototype.isValidUrl=function(t,n){return!!n&&csArray.prototype.some.call(n,(function(n){return-1!==csString.prototype.indexOf.call(t,n)}))},t.prototype.Xl=function(t,n){for(var i=0,r=Object.keys(n);i<r.length;i++){var s=r[i];if(csString.prototype.toLowerCase.call(s)===t)return n[s]}return""},t.prototype.isValidBodyType=function(t){var n=this.Xl("content-type",t);if(!n)return!1;var i=csString.prototype.toLocaleLowerCase.call(n);return csArray.prototype.some.call(this.Yl,(function(t){return it(i,t)}))},t}(),Qo=function(t){function n(n){var i=t.call(this)||this;return i.Kl=n,i}return Y(n,t),n.prototype.extractAllHeaders=function(t){var n=this,i={},r={},s={};return t.forEach((function(t,e){n.Kl.isValidStandardHeader(e)&&t?i[e]=csString.prototype.trim.call(t):n.Kl.isValidCustomHeader(e)&&t?r[e]=csString.prototype.trim.call(t):n.Kl.isPlainCustomHeader(e)&&t&&(s[e]=csString.prototype.trim.call(t))})),{standardHeaders:i,validCustomHeaders:r,plainCustomHeaders:s}},n.prototype.extractHeadersByName=function(t,n){var i={};return n.headers.forEach((function(n,r){-1!==csArray.prototype.indexOf.call(t,csString.prototype.toLowerCase.call(r))&&n&&(i[r]=csString.prototype.trim.call(n))})),i},n.prototype.getResponseBody=function(t){return $(this,void 0,void 0,(function(){return Z(this,(function(n){return t.bodyUsed?[2,Promise.resolve(void 0)]:[2,t.clone().text()]}))}))},n}(Zo),th=function(){function t(t,n,i){var r=this;this.D=t,this.$l=n,this.Ul=i,this.Ci=!1,this.Zl=null,this.Ql=null,this.td=null,this.li=[],this.nd=function(t){var n=t.context,i=t.args,s=t.callerName;return r.interceptOpen(n,i,s)},this.rd=function(t){var n=t.context,i=t.args;return r.interceptSetRequestHeader(n,i)},this.sd=function(t){var n=t.context,i=t.args;return r.interceptSend(n,i)}}return t.prototype.onEvent=function(t){csArray.prototype.push.call(this.li,t)},t.prototype.start=function(){this.Ci||(this.ud(),this.Zl&&this.Zl.activate(),this.Ql&&this.Ql.activate(),this.td&&this.td.activate(),this.Ci=!0)},t.prototype.stop=function(){this.Ci&&(this.Zl&&this.Zl.deactivate(),this.Ql&&this.Ql.deactivate(),this.Ci=!1)},t.prototype.ud=function(){this.Zl||(this.Zl=Ki({target:XMLHttpRequest.prototype,methodName:"open",hook:this.nd,options:{withCallerName:!0}})),this.Ql||(this.Ql=Ki({target:XMLHttpRequest.prototype,methodName:"setRequestHeader",hook:this.rd})),this.td||(this.td=Ki({target:XMLHttpRequest.prototype,methodName:"send",hook:this.sd}))},t.prototype.interceptOpen=function(t,n,i){var r=this;if(n[1]&&It(n[1])){var s=csString.prototype.split.call(n[1],"?"),e=s[0],u=s[1],o=Wt(e);t.apiCall={url:o,method:n[0],standardRequestHeaders:{},standardResponseHeaders:{},customRequestHeaders:{},customResponseHeaders:{},requestTime:bt(),responseTime:0,statusCode:0,library:i,isConfigurableApiError:!1,plainCustomRequestHeaders:{},plainCustomResponseHeaders:{}},u&&this.$l.isValidUrl(o,this.D.apiErrors.validUrls)&&this.D.apiErrors.collectQueryParam&&(t.apiCall.queryParameters=u),t.addEventListener("readystatechange",(function(){return r.readyStateChangeListener(t)}))}},t.prototype.Fl=function(t){if(t.apiCall.responseTime=bt(),t.apiCall.statusCode=t.status,this.D.isHeaderCollectionActive()){var n=this.$l.extractAllHeaders(t.getAllResponseHeaders());this.D.apiErrors.collectStandardHeaders&&(t.apiCall.standardResponseHeaders=n.standardHeaders),t.apiCall.customResponseHeaders=n.validCustomHeaders,t.apiCall.plainCustomResponseHeaders=n.plainCustomHeaders}this.$l.isValidUrl(t.apiCall.url,this.D.apiErrors.validUrls)&&this.D.apiErrors.collectResponseBody&&this.$l.isValidBodyType(t.apiCall.standardResponseHeaders)&&(t.apiCall.responseBody=t.responseText),csArray.prototype.forEach.call(this.li,(function(n){return n(t.apiCall)}))},t.prototype.readyStateChangeListener=function(t){t.apiCall&&t.readyState===XMLHttpRequest.DONE&&(t.status>=400&&this.Fl(t))},t.prototype.interceptSetRequestHeader=function(t,n){if(t.apiCall&&this.D.isHeaderCollectionActive()){var i=n[0],r=n[1];this.D.apiErrors.collectStandardHeaders&&this.$l.isValidStandardHeader(i)&&r?t.apiCall.standardRequestHeaders[i]=r.trim():this.$l.isValidCustomHeader(i)&&r?t.apiCall.customRequestHeaders[i]=r.trim():this.$l.isPlainCustomHeader(i)&&r&&(t.apiCall.plainCustomRequestHeaders[i]=r.trim())}},t.prototype.interceptSend=function(t,n){var i=n[0];t.apiCall&&this.$l.isValidUrl(t.apiCall.url,this.D.apiErrors.validUrls)&&this.D.apiErrors.collectRequestBody&&this.$l.isValidBodyType(t.apiCall.standardRequestHeaders)&&"string"==typeof i&&(t.apiCall.requestBody=i)},K([ln("XhrRequestTracker.interceptOpen")],t.prototype,"interceptOpen",null),K([ln("XhrRequestTracker.readyStateChangeListener")],t.prototype,"readyStateChangeListener",null),K([ln("XhrRequestTracker.interceptSetRequestHeader")],t.prototype,"interceptSetRequestHeader",null),K([ln("XhrRequestTracker.interceptSend")],t.prototype,"interceptSend",null),t}(),nh=function(t){function n(n){var i=t.call(this)||this;return i.Kl=n,i}return Y(n,t),n.prototype.extractAllHeaders=function(t){var n=this,i={},r={},s={};return csArray.prototype.forEach.call(null==t?void 0:csString.prototype.split.call(t,/[\r\n]+/),(function(t){var e=csString.prototype.split.call(t,/:(.*)/),u=e[0],o=e[1];n.Kl.isValidStandardHeader(u)&&o?i[u]=csString.prototype.trim.call(o):n.Kl.isValidCustomHeader(u)&&o?r[u]=csString.prototype.trim.call(o):n.Kl.isPlainCustomHeader(u)&&o&&(s[u]=csString.prototype.trim.call(o))})),{standardHeaders:i,validCustomHeaders:r,plainCustomHeaders:s}},n.prototype.extractHeadersByName=function(t,n){var i={};return csArray.prototype.forEach.call(null==n.getAllResponseHeaders()?void 0:csString.prototype.split.call(n.getAllResponseHeaders(),/[\r\n]+/),(function(n){var r=csString.prototype.split.call(n,/:(.*)/),s=r[0],e=r[1];-1!==csArray.prototype.indexOf.call(t,csString.prototype.toLowerCase.call(s))&&e&&(i[s]=csString.prototype.trim.call(e))})),i},n.prototype.getResponseBody=function(t){return t.responseText},n.prototype.isValidStandardHeader=function(t){return this.Kl.isValidStandardHeader(t)},n.prototype.isValidCustomHeader=function(t){return this.Kl.isValidCustomHeader(t)},n.prototype.isPlainCustomHeader=function(t){return this.Kl.isPlainCustomHeader(t)},n}(Zo),ih=function(t){function n(n,i,r,s){var e=t.call(this)||this;return e.rr=n,e.od=i,e.Go=r,e.er=s,e.ad=[],e.wr=0,e}return Y(n,t),n.prototype.init=function(){this.rr.init()},n.prototype.initStates=function(){this.vd(),this.ad=[],this.wr=0,this.sf()},n.prototype.sf=function(){this.cf=bt()},n.prototype.uf=function(){return bt()-this.cf},n.prototype.onStart=function(){var t=this;this.rr.subscribe(n.Vr,(function(n){return t.Br(n)}))},n.prototype.onStop=function(){this.rr.unsubscribe(n.Vr)},n.prototype.onIframeApiError=function(t){this.Br(t)},n.prototype.Br=function(t){this.isStarted&&this.wr<n.ld&&(t.relativeTime=this.uf(),csArray.prototype.push.call(this.ad,this.er.anonymize(t)),this.dd())},n.prototype.vd=function(){this.od.removeQueryParams(),this.od.setQueryParams(this.Go.getRequestParameters())},n.prototype.dd=function(){this.od.send({errors:this.ad}),this.ad=[],this.wr+=1},n.Vr="ApiErrorsService",n.ld=20,n}(Mi),rh=["api-errors:maskUrl"];!function(t){t.CONTENTSQUARE="contentsquare.net",t.CLICKTALE="clicktale.net",t.FAKE_TRACKER="fake-tracker.content-square.fr"}(Do||(Do={}));var sh,eh=function(){function t(t,n,i,r,s,e,u){this.rr=t,this.er=n,this.D=i,this.Go=r,this.Lc=s,this.Qh=e,this.rc=u}return t.prototype.init=function(){var t=this.rc.create("".concat(this.D.getTrackerUri(),"/").concat("api-errors"),!0);this.rr.excludeDomains([Do.CONTENTSQUARE,Do.CLICKTALE]),this.rr.excludeDomains([Do.FAKE_TRACKER]),this.wd=new ih(this.rr,t,this.Go,this.er),this.wd.init(),this.Lc.addListener(this.wd),this.yd()},t.prototype.yd=function(){var t=this;this.Qh.register(rh,(function(n){return t.er.addUrlMaskingPattern(n)}))},t.prototype.onStartTracking=function(){this.wd.start()},t.prototype.onAfterNaturalPageView=function(){this.wd.initStates()},t.prototype.onAfterArtificialPageView=function(){this.wd.initStates()},t.prototype.onBeforeSessionRenewal=function(){this.wd.stop()},t.prototype.onOptout=function(){this.wd.stop()},t}(),uh=function(){function t(t){this.D=t,this.pd=["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-1!==csArray.prototype.indexOf.call(this.pd,csString.prototype.toLowerCase.call(t))},t.prototype.isValidCustomHeader=function(t){return this.md(t,this.D.apiErrors.validCustomHeaders)},t.prototype.isPlainCustomHeader=function(t){return this.md(t,this.D.apiErrors.plainCustomHeaders)},t.prototype.md=function(t,n){if(!n||0===n.length)return!1;var i=csString.prototype.toLowerCase.call(t);return csArray.prototype.some.call(n,(function(t){return csString.prototype.toLowerCase.call(t)===i}))},t}(),oh=function(t){function n(n,i,r,s,e,u){var o=t.call(this)||this;return o.nr=n,o.gd=i,o.Go=r,o.ir=s,o.tc=e,o.tt=u,o.Ad=[],o.lr=0,o.Sd=[],o}return Y(n,t),n.prototype.initStates=function(){this.cf=bt(),this.gd.removeQueryParams(),this.gd.setQueryParams(this.Go.getRequestParameters()),this.Ad=[],this.lr=0},n.prototype.onStart=function(){var t=this;this.nr.subscribe(n.Vr,(function(n){return t.Br(n)})),this.Ed()},n.prototype.onStop=function(){this.nr.unsubscribe(n.Vr)},n.prototype.onIframeJavascriptError=function(t){this.Br(t)},n.prototype.trackCustomError=function(t){var n={errorType:"jsError",message:"".concat("Custom Error:"," ").concat(t),lineno:1,colno:1,filename:"https://cserror.com/texterror.js"};this.bd(n)},n.prototype.bd=function(t){var n=this;this.isStarted?this.Br(t,(function(t){return n.tc.emitCustomJavaScriptErrorEvent(t)})):csArray.prototype.push.call(this.Sd,t)},n.prototype.Ed=function(){var t=this;this.isStarted&&(csArray.prototype.forEach.call(this.Sd,(function(n){return t.bd(n)})),this.Sd=[])},n.prototype.Br=function(t,n){if(this.isStarted&&this.lr<20){var i=X(X({},t),{pageUrl:this.tt.getAnonymizedUrl(),rt:this.uf()});this.ir.anonymize(i),csArray.prototype.push.call(this.Ad,i),this.dd(),n&&n(i)}},n.prototype.uf=function(){return bt()-this.cf},n.prototype.dd=function(){this.gd.send({errors:this.Ad}),this.Ad=[],this.lr+=1},n.Vr="JavaScriptErrorsService",n}(Mi),hh=["trackError"],ch=function(){function t(t,n,i,r,s,e,u,o,h){this.nr=t,this.ir=n,this.D=i,this.Go=r,this.Lc=s,this.Qh=e,this.tc=u,this.tt=o,this.rc=h}return t.prototype.init=function(){var t=this.rc.create("".concat(this.D.getTrackerUri(),"/").concat("errors"),!0);this.Rd=new oh(this.nr,t,this.Go,this.ir,this.tc,this.tt),this.Lc.addListener(this.Rd),this.yd()},t.prototype.yd=function(){var t=this;this.D.jsCustomErrorsEnabled&&!this.D.customErrors.enabled&&this.Qh.register(hh,(function(n){t.Rd.trackCustomError(n)}))},t.prototype.onStartTracking=function(){this.Rd.start()},t.prototype.onAfterNaturalPageView=function(){this.Rd.initStates()},t.prototype.onAfterArtificialPageView=function(){this.Rd.initStates()},t.prototype.onBeforeSessionRenewal=function(){this.Rd.stop()},t.prototype.onOptout=function(){this.Rd.stop()},t}(),ah=function(){function t(){this.Nd=Ye.Natural}return t.prototype.setPageViewType=function(t){this.Nd=t},t.prototype.getPageViewType=function(){return this.Nd},t.prototype.getRequestParameters=function(){return{pvt:this.Nd}},t}(),fh=function(){function t(t){this.tr=t}return t.prototype.onAfterVisitorRenewal=function(){this.tr.startNewSession()},t}(),vh=function(){function t(){var t=this;this.Td=null,this.Od=null,this.Ln=null,this.Ra=null,this.kd=null,this.Cd=function(){},this.Id=["value","checked","src","data","alt"],this._d={state:ei.SensitiveState.Child},this.Pd=function(n){for(var i=0,r=n;i<r.length;i++){var s=r[i];if(ei.isSensitive(s.target)||ei.isSensitiveChild(s.target))for(var e=0;e<s.addedNodes.length;e+=1){var u=s.addedNodes[e];ei.isSensitive(u)||ei.isSensitiveChild(u)||a(u)&&t.Md(u)}}}}return t.prototype.startSensitiveIdentifier=function(t,n,i){var r,s,e,u,o,h=this;if(null!==(r=this.kd)&&void 0!==r||(this.kd=this.xd()),0!==t.length&&(null!==(s=this.Td)&&void 0!==s||(this.Td=this.Ld()),this.Td.observe(t)),0!==n.length){null!==(e=this.Od)&&void 0!==e||(this.Od=this.Dd(n));var c=ei.getComputedAttributeSelector(n);this.Od.observe(c)}null!==(u=this.Ln)&&void 0!==u||(this.Ln=new nr(this.Pd)),this.Ln.observe(),null!==(o=this.Ra)&&void 0!==o||(this.Ra=new Qi((function(t,n){return"added"===n&&h.Ud(t)}))),this.Ra.observe(),setTimeout(i)},t.prototype.stopSensitiveIdentifier=function(){var t,n,i,r;this.Td&&(this.jd(document),this.Td.disconnect()),null===(t=this.Od)||void 0===t||t.disconnect(),null===(n=this.Ln)||void 0===n||n.disconnect(),null===(i=this.Ra)||void 0===i||i.disconnect(),null===(r=this.kd)||void 0===r||r.disconnect()},t.prototype.unidentifySensitiveNodes=function(t){this.jd(t)},t.prototype.onSensitiveElementResize=function(t){this.Cd=t},t.prototype.xd=function(){var t=this;return window.ResizeObserver?new ResizeObserver((function(n){csArray.prototype.forEach.call(n,(function(n){t.Hd(n)}))})):null},t.prototype.Ld=function(){var t=this;return new ir((function(n){csArray.prototype.forEach.call(n,(function(n){t.qd(n)?t.Md(n):(t.zd(n),t.Bd(n))}))}))},t.prototype.Dd=function(t){var n=this;return new ir((function(i){csArray.prototype.forEach.call(i,(function(i){return n.Fd(i,t)}))}))},t.prototype.Hd=function(t){var n=t.target.getBoundingClientRect(),i=ei.getSensitiveDetails(t.target);if(i.state===ei.SensitiveState.Parent&&(n.width!==i.width||n.height!==i.height)){var r={state:ei.SensitiveState.Parent,width:n.width,height:n.height};ei.setSensitiveProperty(t.target,r),this.Cd({target:t.target,width:n.width,height:n.height})}},t.prototype.Bd=function(t){this.kd&&a(t)&&!A(t)&&this.kd.observe(t)},t.prototype.qd=function(t){var n=csNodeparentNode.apply(t);return n?ei.isSensitive(n)||ei.isSensitiveChild(n):!!T(t)&&(ei.isSensitive(t.host)||ei.isSensitiveChild(t.host))},t.prototype.Ud=function(t){(ei.isSensitive(t.host)||ei.isSensitiveChild(t.host))&&ei.setSensitiveProperty(t,this._d)},t.prototype.jd=function(t){zi(t,NodeFilter.SHOW_ELEMENT).visitAll((function(t){ei.unsetSensitiveProperty(t)}))},t.prototype.zd=function(t){var n=this,i=t.getBoundingClientRect(),r={state:ei.SensitiveState.Parent,width:i.width,height:i.height};ei.setSensitiveProperty(t,r),this.Vd(t),zi(t).visitAll((function(i){return i!=t&&ei.setSensitiveProperty(i,n._d)}))},t.prototype.Md=function(t){var n=this;ei.setSensitiveProperty(t,this._d),zi(t).visitAll((function(i){return i!=t&&ei.setSensitiveProperty(i,n._d)}))},t.prototype.Vd=function(t){for(var n,i=null!==(n=si.getProperty(t,ei.sensitiveAttributeProp))&&void 0!==n?n:{attributes:[]},r=0;r<t.attributes.length;r+=1){var s=t.attributes[r].name;csArray.prototype.indexOf.call(this.Id,s)>-1&&csArray.prototype.push.call(i.attributes,s)}0!==i.attributes.length&&ei.setSensitiveAttributeProperty(t,i)},t.prototype.Fd=function(t,n){for(var i,r=null!==(i=si.getProperty(t,ei.sensitiveAttributeProp))&&void 0!==i?i:{attributes:[]},s=function(i){var s=t.attributes[i].name;csArray.prototype.some.call(n,(function(n){return csString.prototype.indexOf.call(n.attrName,s)>-1&&ti.call(t,n.selector)}))&&csArray.prototype.push.call(r.attributes,s)},e=0;e<t.attributes.length;e+=1)s(e);0!==r.attributes.length&&ei.setSensitiveAttributeProperty(t,r)},t}(),lh=function(){function t(t,n,i,r,s,e,u,o,h,c,a,f,v,l,d,w,y,p,m,g,A,S,E,b,R,N){var T=this;this.Go=t,this.Fc=n,this.Y=i,this.X=r,this.Dn=s,this.Qh=e,this.Gd=u,this.D=o,this.Wd=h,this.Jd=c,this.Yd=a,this.Gu=f,this.U=v,this.Va=l,this.sc=d,this.tt=w,this.Xd=y,this.Xf=p,this.Lc=m,this.un=g,this.Kd=A,this.ic=S,this.$d=E,this.Ae=b,this.rc=R,this.Zd=N,this.Qd=function(t){void 0===t&&(t=!1),T.tw.start(t),T.nw.start()}}return t.prototype.start=function(){var t,n,i,r,s,e,u,o,h,c,a,f,v,l,d,w,y=this;(this.Wd.init(),this.Jd.init(),this.Jd.isActive())||(this.Ae.schedule((function(){v=new So(y.X,y.Y),w=new fh(v),f=new fo(y.Va),d=new Jo(on),t=new $u(y.D,y.Go,y.Y,y.Va,f,y.Qh,v,d,y.Lc,y.rc),n=new Te(y.Qh,y.X,y.D,y.Go,y.Fc,y.U);var p=new vh;l=new jo(y.D,p),a=new Ko;var m=new zo(y.D);(c=new qo(y.D,m,a,y.Lc)).init();var g=new ah;i=new Se(y.Y,y.X,y.Qh,y.Lc,m,y.D,g,a),r=new Le(y.D,y.Go,y.Y,y.Qh,y.U,v,y.tt),y.tw=new ao(y.D,y.Qh,y.Dn,y.Go,y.Y,y.X,y.Gu,y.un,y.sc,y.tt,y.ic,g),s=new Ao(y.D,y.Y,y.X,y.Qh),e=new To(y.D,y.X,y.tt,y.Qh,y.Qd,l),u=new _o(y.D,y.Qh,y.Fc,y.Go,y.Xf),o=new Ho(y.Qh),h=new Xo(y.D,new Ot(y.D,y.U),y.rc),y.nw=new vo})),this.D.apiErrors.enabled&&this.Ae.schedule((function(){var t,n=new uh(y.D);var i=new nh(n),r=new th(y.D,i,t),s=new Qo(n),e=new $o(y.D,s,t);y.rr=new Bo(r,e),y.er=new Fo(y.sc);var u=new eh(y.rr,y.er,y.D,y.Go,y.Lc,y.Qh,y.rc);u.init(),y.Dn.addListener(u)})),this.D.jsErrorsEnabled&&this.Ae.schedule((function(){y.nr=new Mo,y.ir=new Vo(y.U,y.tt);var t=new ch(y.nr,y.ir,y.D,y.Go,y.Lc,y.Qh,y.Xf,y.tt,y.rc);t.init(),y.Dn.addListener(t)})),this.Ae.schedule((function(){y.Yd.init()})),this.Ae.schedule((function(){i.init()})),this.Ae.schedule((function(){n.init()})),this.Ae.schedule((function(){r.init()})),this.Ae.schedule((function(){y.Kd.init()})),this.Ae.schedule((function(){y.tw.init()})),this.Ae.schedule((function(){s.init()})),this.Ae.schedule((function(){e.init()})),this.Ae.schedule((function(){var t;null===(t=y.Zd)||void 0===t||t.init()})),this.Ae.schedule((function(){u.init()})),this.Ae.schedule((function(){y.Xd.init()})),this.Ae.schedule((function(){o.init()})),this.Ae.schedule((function(){h.init()})),this.Ae.schedule((function(){y.$d.init()})),this.Ae.schedule((function(){y.Dn.addListener(s),y.Dn.addListener(y.Gd),y.Dn.addListener(t),y.Dn.addListener(y.Yd),y.Dn.addListener(i),y.Dn.addListener(y.Kd),y.Dn.addListener(y.tw),y.Dn.addListener(e),y.Zd&&y.Dn.addListener(y.Zd),y.Dn.addListener(u),y.Dn.addListener(n),y.Dn.addListener(c),y.Dn.addListener(h),y.Dn.addListener(w)})),Ts.isRecordingSupported()&&this.Ae.schedule((function(){var t=new oe(a,y.X,y.D,y.Gu,y.Go,y.Qh,y.U,v,y.tt,l,y.nr,y.ir,y.rr,d,y.er,y.Dn,y.Xf,y.Lc,y.ic,y.Ae,y.rc,y.sc);t.init(),y.Dn.addListener(t),i.setRecordingService(t.recordingService)})),this.Ae.schedule((function(){t.init()})),this.Ae.schedule((function(){v.onSessionExpired((function(){y.Dn.emitBeforeSessionRenewal(),y.iw(!0),y.Dn.emitAfterSessionRenewal()})),y.iw()})))},t.prototype.iw=function(t){var n=this;void 0===t&&(t=!1),this.Qh.start(),this.nw.onLoad((function(){n.Dn.emitStartTracking(t)})),Eo(this.D)&&!t||this.Qd(t)},t}(),dh=function(){function t(t,n,i,r,s,e,u,o){this.D=t,this.Y=n,this.en=i,this.rw=r,this.ew=s,this.uw=e,this.ow=u,this.hw=o}return t.prototype.compute=function(t){var n,i,r=this;this.D.crossDomainTracking&&!this.D.cookielessTrackingEnabled?this.D.crossDomainSingleIframeTracking?null===(n=this.ow)||void 0===n||n.start((function(){return r.cw(t)})):null===(i=this.uw)||void 0===i||i.applyUpToDate((function(){return r.cw(t)})):this.cw(t)},t.prototype.cw=function(t){this.ew.handle(),this.rw.clear(),this.aw()?(this.rw.restoreClearedVisitor(),t(!0)):(this.en.exclude(this.D),t(!1))},t.prototype.aw=function(){var t=st.boolean(this.D.sampleRate);return this.hw.isForceIncluded()||!this.en.isExcluded()&&this.Y.doesVisitorExist()||!this.en.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;i<t.length;i+=1)n=csString.prototype.charCodeAt.call(t,i)+(n<<6)+(n<<16)-n;return Math.abs(n)}(t).toString(16),-4),i=(new csDate).getTime(),r="xxxxxxxx-hhhh-axxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=(i+16*Math.random())%16|0;return i=Math.floor(i/16),("x"===t?n:7&n|8).toString(16)}));return csString.prototype.replace.call(r,"hhhh",n)}}(sh||(sh={}));var wh,yh=function(){function t(t,n,i,r){this.D=t,this.fw=n,this.X=i,this.Dn=r,this.lw=1e4}return t.prototype.createOrUpdateVisitor=function(){var t=this.getVisitor();null===t&&(t=this.yw(),this.X.removeSession()),this.pw(t),this.setVisitor(t)},t.prototype.yw=function(){return{id:sh.generate(),visitsCount:0,appliedTrackingDraw:this.D.lastTrackingDraw,creationTimestamp:Rt(),lastVisitTimestamp:0,hitTimestamp:0,expires:bt()+this.D.visitorCookieTimeout,allowSubdomains:this.D.allowSubdomains}},t.prototype.pw=function(t){var n=Rt();this.X.doesSessionExist()||(t.visitsCount+=1,t.lastVisitTimestamp=n),t.hitTimestamp=n,t.appliedTrackingDraw=this.D.lastTrackingDraw,this.mw=t.visitsCount},t.prototype.getRequestParameters=function(){var t=this.getVisitor();return t?{uu:t.id,sn:"".concat(t.visitsCount),hd:"".concat(t.hitTimestamp)}:{}},t.prototype.getVisitor=function(){return this.fw.get()},t.prototype.setVisitor=function(t){this.fw.set(t)},t.prototype.doesVisitorExist=function(){return null!==this.fw.get()},t.prototype.resetVisitor=function(){this.gw(),this.Dn.emitAfterVisitorCleared()},t.prototype.removeVisitor=function(){this.fw.remove()},t.prototype.hasAllowSubdomainsChanged=function(){var t=this.getVisitor();return!!t&&t.allowSubdomains!==this.D.allowSubdomains},t.prototype.handleSubdomainChange=function(){this.fw.handleSubdomainChange()},t.prototype.isSessionRenewed=function(){var t=this.getVisitor();return null!==t&&void 0!==this.mw&&t.visitsCount!==this.mw},t.prototype.Aw=function(){return!Pt(this.Sw)||bt()-this.Sw>this.lw},t.prototype.renewVitor=function(){this.Aw()?(this.Sw=bt(),this.gw(),this.Dn.emitAfterVisitorRenewal()):on.warn("session:start:newVisitor is trying to renew visitor under time limit")},t.prototype.gw=function(){this.Dn.emitBeforeVisitorRenewal(),this.removeVisitor()},t}(),ph="_cs_s",mh=18e5,gh=/^(\d+\.[013567TBW](\.[01])?)(\.\d+)?$/,Ah=".";!function(t){t[t.NOT_FOUND=0]="NOT_FOUND",t[t.EXPIRED=1]="EXPIRED",t[t.FOUND=2]="FOUND"}(wh||(wh={}));var Sh,Eh=function(){function t(t,n,i){this.D=t,this.Ew=n,this.bw=i,this.Ao=null,this.Rw=!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.Nw();return t.Tw(i)}var r=this.Ow(),s=r.sessionString,e=r.status,u=t.Tw(s);if(e!==wh.EXPIRED)return u;if(this.D.cookielessTrackingEnabled)return null;var o=this.Nw();if(!o)return null;var h=csString.prototype.split.call(o,Ah);if(!t.kw(h))return o;var c=h[h.length-1],a=parseInt(c,10);return isNaN(a)||this.Cw(a),u},t.prototype.onCookieToSet=function(t){this.Iw=t},t.prototype.onCookieToRemove=function(t){this._w=t},t.prototype.set=function(t,n){var i;void 0===n&&(n=mh);var r=bt()+n,s=this.toString(t);s+="".concat(Ah).concat(r),this.Pw(s,r),this.D.cookielessTrackingEnabled?this.bw.setItem(ph,s):(this.Ew.set(ph,s,n),null===(i=this.Iw)||void 0===i||i.call(this,ph,s,n))},t.prototype.remove=function(){var t;this.D.cookielessTrackingEnabled?this.bw.removeItem(ph):(this.Ew.delete(ph),null===(t=this._w)||void 0===t||t.call(this,ph)),this.Mw()},t.prototype.handleSubdomainChange=function(){if(!this.D.cookielessTrackingEnabled){var t=this.get(!0);t&&(this.D.allowSubdomains?this.Ew.delete(ph,dn.CURRENT_DOMAIN):this.Ew.delete(ph,this.Ew.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.recordingState,t.etrState],Ah)},t.prototype.Pw=function(t,n){this.Ao={sessionString:t,expires:n}},t.prototype.Ow=function(){return this.Ao?this.Ao&&bt()<=this.Ao.expires?{sessionString:this.Ao.sessionString,status:wh.FOUND}:{sessionString:this.Ao.sessionString,status:wh.EXPIRED}:{sessionString:this.Nw(),status:wh.NOT_FOUND}},t.prototype.Mw=function(){this.Ao=null},t.prototype.Cw=function(t){this.Ao&&(this.Ao.expires=t,this.Rw=!0)},t.prototype.isCacheRefreshed=function(){return this.Rw},t.prototype.resetCacheRefreshed=function(){this.Rw=!1},t.prototype.Nw=function(){if(this.D.cookielessTrackingEnabled){var t=this.bw.getItem(ph);return!t||this.xw(t)?null:t}var n=this.Ew.get(ph);return!n||this.xw(n)?null:n},t.prototype.xw=function(n){var i=csString.prototype.split.call(n,Ah);if(!t.kw(i))return!1;var r=parseInt(i[i.length-1],10);return!isNaN(r)&&bt()>r},t.kw=function(t){return 13===t[t.length-1].length},t.Tw=function(t){var n;if(!t)return null;var i=null===(n=csString.prototype.match.call(t,gh))||void 0===n?void 0:n[1];return null!=i?i:null},t.fromRawString=function(n){var i=t.Tw(n);return null!==i?t.fromString(i):null},t.fromString=function(t){var n,i=csString.prototype.split.call(t,Ah),r=i[0];return{recordingState:i[1],etrState:null!==(n=i[2])&&void 0!==n?n:Ti.ETR_OFF,pageNumber:parseInt(r,10)}},t.isValidSessionString=function(t){return gh.test(t)},t}();!function(t){t[t.NO=0]="NO",t[t.WITHDRAWN=1]="WITHDRAWN",t[t.GRANTED=2]="GRANTED"}(Sh||(Sh={}));var bh,Rh=function(){function t(t,n){this.Lw=t,this.Dw=n,this.Uw=null,this.jw=0,this.Hw=Sh.NO}return t.prototype.setDynamicVariablesService=function(t){this.qw=t},t.prototype.createOrUpdateSession=function(){this.zw(),this.Bw=bt(),this.jw=0;var t=this.Fw();null===t?(t=this.Vw(),this.Gw(t),this.Ww(t)):(t=this.Dw.sanitizeSessionRecordingState(t),this.Gw(t),t.recordingState=this.Dw.updateRecordingState(t)),this.setSession(t)},t.prototype.grantReplayRecording=function(t){t.recordingState=this.Dw.getDisabledRecordingState(),t.recordingState=this.Dw.computeInitialRecordingStateFromRecordingConsentGranted(t),this.setSession(t)},t.prototype.grantReplayRecordingBeforeSessionStart=function(){this.Hw=Sh.GRANTED},t.prototype.withdrawnReplayRecording=function(t){t.recordingState=this.Dw.getConsentWithdrawnRecordingState(),this.setSession(t)},t.prototype.withdrawnReplayRecordingBeforeSessionStart=function(){this.Hw=Sh.WITHDRAWN},t.prototype.Ww=function(t){this.Hw===Sh.WITHDRAWN?(t.recordingState=this.Dw.getConsentWithdrawnRecordingState(),this.setSession(t)):this.Hw===Sh.GRANTED?t.recordingState=this.Dw.computeInitialRecordingStateFromRecordingConsentGranted(t):t.recordingState=this.Dw.computeInitialRecordingState(t),this.Hw=Sh.NO},t.prototype.Vw=function(){return{pageNumber:0,recordingState:this.Dw.getDisabledRecordingState(),etrState:Ti.ETR_OFF}},t.prototype.Gw=function(t){t.pageNumber+=1},t.prototype.isReplayRecorded=function(){var t=this.getSession();return!!t&&this.Dw.isReplayRecorded(t)},t.prototype.isTemporarilyRecorded=function(){var t=this.getSession();return(null==t?void 0:t.recordingState)===Ni.TEMPORARILY_RECORDED},t.prototype.abortQuotaServiceRequest=function(){this.Dw.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.Lw.get()},t.prototype.Fw=function(){return this.Lw.get(!0)},t.prototype.doesSessionExist=function(){return null!==this.Lw.get()},t.prototype.setSession=function(t){this.Lw.set(t)},t.prototype.removeSession=function(){this.Lw.remove()},t.prototype.getRecordingStates=function(){var t=this.getSession(),n=[];return t&&(t.recordingState!==Ni.NOT_RECORDED&&csArray.prototype.push.call(n,t.recordingState),t.etrState===Ti.ETR_ON&&csArray.prototype.push.call(n,Ni.ETR_SAMPLING)),n},t.prototype.updateRecordingState=function(t,n){var i=this.getSession();null!==i&&(i.recordingState=t,i.etrState=n,this.setSession(i))},t.prototype.hasValidSession=function(){var t=this.Lw.getRawSession();return this.Lw.isValid(t)},t.prototype.handleSubdomainChange=function(){this.Lw.handleSubdomainChange()},t.prototype.pollCacheRefreshEvent=function(t){void 0===t&&(t=!0);var n=this.Lw.isCacheRefreshed();return n&&t&&this.Lw.resetCacheRefreshed(),n},t.prototype.extendSessionPeriodically=function(){this.Uw||this.Jw()},t.prototype.extendSession=function(){var t=this.getSession();return null===t?(on.warn("extendSession is trying to extend an expired session"),this.zw(),!1):(this.Lw.set(t,mh),!0)},t.prototype.Jw=function(){this.Yw()?this.zw():this.extendSession()&&(this.Xw(),this.Kw())},t.prototype.Kw=function(){var t=this;this.Uw=window.setTimeout((function(){t.Jw()}),174e4)},t.prototype.Yw=function(){return 1434e4-(bt()+mh-this.Bw)<0},t.prototype.zw=function(){this.Uw&&(window.clearTimeout(this.Uw),this.Uw=null)},t.prototype.Xw=function(){this.jw+=1,this.qw.trackDynamicVariable("session_expiry_update",this.jw)},t}(),Nh=function(){function t(t,n,i){this.D=t,this.Y=n,this.en=i}return t.prototype.clear=function(){this.$w()&&(this.Zw=this.Y.getVisitor(),this.Y.removeVisitor()),this.Qw()&&this.en.removeExclusion()},t.prototype.$w=function(){return this.Y.doesVisitorExist()&&this.Y.getVisitor().appliedTrackingDraw!==this.D.lastTrackingDraw},t.prototype.Qw=function(){return this.en.getAppliedTrackingDraw()!==this.D.lastTrackingDraw},t.prototype.restoreClearedVisitor=function(){this.Zw&&this.Y.setVisitor(this.Zw)},t}(),Th=function(){function t(t,n,i){this.Y=t,this.X=n,this.ty=i}return t.prototype.handle=function(){this.Y.hasAllowSubdomainsChanged()&&(this.Y.handleSubdomainChange(),this.X.handleSubdomainChange(),this.ty.handleSubdomainChange())},t}(),Oh=function(){function t(){this.listeners=[]}return t.prototype.addListener=function(t){csArray.prototype.push.call(this.listeners,t)},t}(),kh=function(t){function n(n){var i=t.call(this)||this;return i.Ae=n,i}return Y(n,t),n.prototype.emitBeforeNaturalPageView=function(){for(var t=0,n=this.listeners;t<n.length;t++){var i=n[t];i.onBeforeNaturalPageView&&i.onBeforeNaturalPageView()}},n.prototype.emitAfterNaturalPageView=function(){for(var t=0,n=this.listeners;t<n.length;t++){var i=n[t];i.onAfterNaturalPageView&&i.onAfterNaturalPageView()}},n.prototype.emitStartTracking=function(t){for(var n=function(n){n.onStartTracking&&i.Ae.schedule((function(){return n.onStartTracking(t)}))},i=this,r=0,s=this.listeners;r<s.length;r++){n(s[r])}},n.prototype.emitArtificialPageViewEnd=function(){for(var t=0,n=this.listeners;t<n.length;t++){var i=n[t];if(i.onArtificialPageViewEnd)try{i.onArtificialPageViewEnd()}catch(t){on.error(t)}}},n.prototype.emitBeforeArtificialPageView=function(){for(var t=0,n=this.listeners;t<n.length;t++){var i=n[t];i.onBeforeArtificialPageView&&i.onBeforeArtificialPageView()}},n.prototype.emitAfterArtificialPageView=function(){for(var t=0,n=this.listeners;t<n.length;t++){var i=n[t];i.onAfterArtificialPageView&&i.onAfterArtificialPageView()}},n.prototype.emitBeforeSessionRenewal=function(){for(var t=0,n=this.listeners;t<n.length;t++){var i=n[t];i.onBeforeSessionRenewal&&i.onBeforeSessionRenewal()}},n.prototype.emitAfterSessionRenewal=function(){for(var t=0,n=this.listeners;t<n.length;t++){var i=n[t];i.onAfterSessionRenewal&&i.onAfterSessionRenewal()}},n.prototype.emitOptout=function(){for(var t=0,n=this.listeners;t<n.length;t++){var i=n[t];i.onOptout&&i.onOptout()}},n.prototype.emitReplayUnanonymizationConsentGranted=function(){for(var t=0,n=this.listeners;t<n.length;t++){var i=n[t];i.onReplayUnanonymizationConsentGranted&&i.onReplayUnanonymizationConsentGranted()}},n.prototype.emitReplayUnanonymizationConsentWithdrawn=function(){for(var t=0,n=this.listeners;t<n.length;t++){var i=n[t];i.onReplayUnanonymizationConsentWithdrawn&&i.onReplayUnanonymizationConsentWithdrawn()}},n.prototype.emitAfterReplayRecordingConsentGranted=function(){for(var t=0,n=this.listeners;t<n.length;t++){var i=n[t];i.onAfterReplayRecordingConsentGranted&&i.onAfterReplayRecordingConsentGranted()}},n.prototype.emitAfterReplayRecordingConsentWithdrawn=function(){for(var t=0,n=this.listeners;t<n.length;t++){var i=n[t];i.onAfterReplayRecordingConsentWithdrawn&&i.onAfterReplayRecordingConsentWithdrawn()}},n.prototype.emitRecordingStateChange=function(t,n){for(var i=0,r=this.listeners;i<r.length;i++){var s=r[i];s.onRecordingStateChange&&s.onRecordingStateChange(t,n)}},n.prototype.emitInitialDomStart=function(){for(var t=0,n=this.listeners;t<n.length;t++){var i=n[t];i.onInitialDomStart&&i.onInitialDomStart()}},n.prototype.emitInitialDomDone=function(t){for(var n=0,i=this.listeners;n<i.length;n++){var r=i[n];r.onInitialDomDone&&r.onInitialDomDone(t)}},n.prototype.emitRecordingStatusChange=function(){for(var t=0,n=this.listeners;t<n.length;t++){var i=n[t];i.onRecordingStatusChange&&i.onRecordingStatusChange()}},n.prototype.emitBeforeVisitorRenewal=function(){for(var t=0,n=this.listeners;t<n.length;t++){var i=n[t];i.onBeforeVisitorRenewal&&i.onBeforeVisitorRenewal()}},n.prototype.emitAfterVisitorCleared=function(){for(var t=0,n=this.listeners;t<n.length;t++){var i=n[t];i.onAfterVisitorCleared&&i.onAfterVisitorCleared()}},n.prototype.emitAfterVisitorRenewal=function(){for(var t=0,n=this.listeners;t<n.length;t++){var i=n[t];i.onAfterVisitorRenewal&&i.onAfterVisitorRenewal()}},K([Wn("emitStartTracking")],n.prototype,"emitStartTracking",null),n}(Oh),Ch="_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"}(bh||(bh={}));var Ih,_h=function(){function t(t,n,i){this.D=t,this.Ew=n,this.ny=i}return t.prototype.get=function(){var t;return null===(t=this.D.cookielessTrackingEnabled?this.ny.getItem(Ch):this.Ew.get(Ch))?t:Number(t)},t.prototype.set=function(t){this.D.cookielessTrackingEnabled?this.ny.setItem(Ch,csString(t)):this.Ew.set(Ch,csString(t),rt)},t.prototype.remove=function(){this.D.cookielessTrackingEnabled?this.ny.removeItem(Ch):this.Ew.delete(Ch)},t.prototype.handleSubdomainChange=function(){this.D.cookielessTrackingEnabled||(this.D.allowSubdomains?this.Ew.delete(Ch,dn.CURRENT_DOMAIN):this.Ew.delete(Ch,this.Ew.getRootDomain()))},t}(),Ph=function(){function t(t,n,i){this.D=t,this.X=n,this.Dn=i}return t.prototype.grantReplayConsent=function(){if(Ks.isReplayConsentNeeded(this.D)){var t=this.X.getSession();t?Ks.isRecordingBlockedByConsent(t)&&(this.X.grantReplayRecording(t),this.Dn.emitAfterReplayRecordingConsentGranted()):this.X.grantReplayRecordingBeforeSessionStart()}},t.prototype.withdrawReplayConsent=function(){if(Ks.isReplayConsentNeeded(this.D)){var t=this.X.getSession();t?Ks.isRecordingWithDrawn(t)||(this.X.withdrawnReplayRecording(t),this.Dn.emitAfterReplayRecordingConsentWithdrawn()):this.X.withdrawnReplayRecordingBeforeSessionStart()}},t}(),Mh=["replay:consent:unanonymized:granted","trackConsentGranted"],xh=["replay:consent:unanonymized:withdrawn","trackConsentWithdrawn"],Lh=["replay:consent:startForSession:granted"],Dh=["replay:consent:startForSession:withdrawn"],Uh=function(){function t(t,n,i,r,s){this.D=t,this.Qh=n,this.Gu=i,this.X=r,this.Dn=s}return t.prototype.init=function(){this.iy=new Ph(this.D,this.X,this.Dn),this.Gu.setInitialConsent(),this.yd()},t.prototype.yd=function(){var t=this;this.Qh.register(Mh,(function(){t.Gu.grantReplayAnonymizationConsent()})),this.Qh.register(xh,(function(){t.Gu.withdrawReplayAnonymizationConsent()})),this.Qh.register(Lh,(function(){t.iy.grantReplayConsent()})),this.Qh.register(Dh,(function(){t.iy.withdrawReplayConsent()}))},t.prototype.onOptout=function(){this.Gu.removeAllConsents()},t.prototype.onBeforeVisitorRenewal=function(){this.Gu.removeAllConsents()},t.prototype.onAfterVisitorRenewal=function(){this.Gu.setInitialConsent()},t.prototype.onAfterVisitorCleared=function(){this.Gu.setInitialConsent()},t}(),jh=function(){function t(t,n,i){this.D=t,this.fw=n,this.Dn=i}return t.prototype.setInitialConsent=function(){var t=this.fw.get();(null===t||this.hasConsentRequiredChanged(t))&&this.setDefaultReplayAnonymization()},t.prototype.hasConsentRequiredChanged=function(t){var n=this.D.consentRequired;return n&&t===bh.NOT_REQUIRED||!n&&t!==bh.NOT_REQUIRED},t.prototype.handleSubdomainChange=function(){this.fw.handleSubdomainChange()},t.prototype.setDefaultReplayAnonymization=function(){var t=this.D.consentRequired?bh.NOT_EXPRESSED:bh.NOT_REQUIRED;this.fw.set(t)},t.prototype.grantReplayAnonymizationConsent=function(){this.D.consentRequired&&(this.fw.set(bh.GRANTED),this.Dn.emitReplayUnanonymizationConsentGranted())},t.prototype.withdrawReplayAnonymizationConsent=function(){this.D.consentRequired&&(this.fw.set(bh.WITHDRAWN),this.Dn.emitReplayUnanonymizationConsentWithdrawn())},t.prototype.removeAllConsents=function(){this.fw.remove()},t.prototype.isReplayUnanonymizedAllowedByConsent=function(){return!this.D.consentRequired||this.fw.get()===bh.GRANTED},t.prototype.getRequestParameters=function(){return{uc:"".concat(this.fw.get())}},t}(),Hh=function(){function t(t,n,i,r,s,e,u){this.Dn=t,this.Qh=n,this.Gd=i,this.Wd=r,this.Jd=s,this.sy=e,this.Yd=u}return t.prototype.start=function(){this.Dn.addListener(this.sy),this.Dn.addListener(this.Yd),this.Dn.addListener(this.Gd),this.Yd.init(),this.Wd.init(),this.Jd.init(),this.Jd.isActive()||this.Qh.start()},t}(),qh="_cs_ex",zh=2592e6,Bh=/^[0-9]+$/,Fh=function(){function t(t,n,i){this.D=t,this.Ew=n,this.bw=i}return t.prototype.onCookieToSet=function(t){this.Iw=t},t.prototype.onCookieToRemove=function(t){this._w=t},t.prototype.get=function(){return this.D.cookielessTrackingEnabled?Number(this.bw.getItem(qh)):Number(this.Ew.get(qh))},t.prototype.set=function(t){var n;this.D.cookielessTrackingEnabled?this.bw.setItem(qh,t):(this.Ew.set(qh,t,zh),null===(n=this.Iw)||void 0===n||n.call(this,qh,t,zh))},t.prototype.remove=function(){var t;this.D.cookielessTrackingEnabled?this.bw.removeItem(qh):(this.Ew.delete(qh),null===(t=this._w)||void 0===t||t.call(this,qh))},t.isValidExclusionString=function(t){return Bh.test(t)},t}(),Vh=function(){function t(t,n){this.Ds=t,this.fw=n}return t.prototype.exclude=function(t){this.fw.set(csString(t.lastTrackingDraw))},t.prototype.removeExclusion=function(){this.fw.remove()},t.prototype.isExcluded=function(){return this.ey()||this.uy()},t.prototype.ey=function(){return 0!==this.getAppliedTrackingDraw()},t.prototype.getAppliedTrackingDraw=function(){return this.fw.get()},t.prototype.uy=function(){return csString.prototype.indexOf.call(this.Ds.href,qh)>0},t}(),Gh=function(){function t(t){this.Gc=t}return t.prototype.onOptout=function(){this.Gc.removeExclusion()},t}();!function(t){t.SessionReplay="SR",t.None=""}(Ih||(Ih={}));var Wh=function(){function t(t){this.tt=t,this.oy=new RegExp("".concat(".^"))}return t.prototype.setExcludeUrlForSessionReplay=function(t){this.oy=new RegExp(t)},t.prototype.hy=function(){return this.oy.test(this.tt.getAnonymizedUrl())?Ih.SessionReplay:Ih.None},t.prototype.isUrlExcludedForSessionReplay=function(){return this.hy()===Ih.SessionReplay},t.prototype.getRequestParameters=function(){return{ex:this.hy()}},t}(),Jh=["excludeURLforReplay"],Yh=function(){function t(t,n){this.Gc=t,this.Qh=n}return t.prototype.init=function(){var t=this;this.Qh.register(Jh,(function(n){It(n)&&t.Gc.setExcludeUrlForSessionReplay(n)}))},t}(),Xh="_cs_inc",Kh=function(){function t(t,n){this.Ds=t,this.Ew=n}return t.prototype.isForceIncluded=function(){return this.vy()||this.ly()},t.prototype.isForceReplayRecorded=function(){return this.wy(Ni.GLOBAL_SAMPLING)},t.prototype.vy=function(){return null!==this.Ew.get(Xh)},t.prototype.wy=function(t){return this.Ew.get(Xh)===t},t.prototype.ly=function(){return csString.prototype.indexOf.call(this.Ds.href,Xh)>0},t}(),$h="_cs_optout",Zh=function(){function t(t,n,i){this.D=t,this.Ew=n,this.ny=i}return t.prototype.get=function(){return this.D.cookielessTrackingEnabled?this.ny.getItem($h):this.Ew.get($h)},t.prototype.set=function(t){this.D.cookielessTrackingEnabled?this.ny.setItem($h,t):this.Ew.set($h,t,rt)},t}(),Qh=function(){function t(t,n,i){this.Dn=t,this.Ds=n,this.fw=i}return t.prototype.init=function(){!this.isActive()&&this.yy()&&this.activate()},t.prototype.isActive=function(){return"1"===this.fw.get()},t.prototype.activate=function(){this.Dn.emitOptout(),this.fw.set("1")},t.prototype.yy=function(){return csString.prototype.indexOf.call(this.Ds.href,$h)>0},t}(),tc=["optout"],nc=["optin"],ic=function(){function t(t,n){this.Qh=t,this.Jd=n}return t.prototype.init=function(){var t=this;this.Qh.register(tc,(function(){t.Jd.activate()}))},t}(),rc=function(){function t(t,n){this.Qh=t,this.Lc=n}return t.prototype.init=function(){this.Lc.addListener(this.Qh)},t.prototype.onOptout=function(){this.Qh.stop()},t.prototype.onBeforeSessionRenewal=function(){this.Qh.stop()},t}();var sc;!function(t){t.UXA="_uxa",t.WVT="cs_wvt"}(sc||(sc={}));var ec,uc=function(t){function n(n){var i=t.call(this)||this;return i.py=n,i.my={},i}return Y(n,t),n.prototype.register=function(t,n,i){for(var r=0,s=t;r<s.length;r++){var e=s[r];this.my[e]={callback:n,configuration:i},this.my}},n.prototype.onStart=function(){this.gy(),this.Ay()},n.prototype.onStop=function(){for(var t=0,n=this.py;t<n.length;t++){var i=n[t];window[i]=[]}},n.prototype.applyFromIntegration=function(t,n,i){var r=this;this.isStarted?on.tryToExecute("Commands.apply.from.integration: ".concat(i),(function(){var i;if(r.my[t])return(i=r.my[t]).callback.apply(i,n)}))():window._uxa.push(Q([t],n,!0))},n.prototype.onIframeCommands=function(t){for(var n=0,i=t.commands;n<i.length;n++){var r=i[n];this.Sy(r.name,r.params,t.iframePath)}},n.prototype.Sy=function(t,n,i){var r=this;on.tryToExecute("Commands.apply.from.iframe: ".concat(i),(function(){var i;if(r.my[t])return(i=r.my[t]).callback.apply(i,n)}))()},n.prototype.gy=function(){for(var t=this,n=0,i=this.py;n<i.length;n++){var r=i[n];window[r].forEach((function(n){var i=n[0],r=n.slice(1);return t.Ey(i,r,!1)}))}},n.prototype.Ay=function(){for(var t=this,n=0,i=this.py;n<i.length;n++){var r=i[n];window[r]={push:function(n){var i=n[0],r=n.slice(1);return t.Ey(i,r,!0)}}}},n.prototype.Ey=function(t,n,i){var r,s,e;if(this.my[t]){if((null===(s=this.my[t].configuration)||void 0===s?void 0:s.disableApplyPending)&&!i||(null===(e=this.my[t].configuration)||void 0===e?void 0:e.disableApplyImmediate)&&i)return;try{return(r=this.my[t]).callback.apply(r,n)}catch(i){on.error("Command ".concat(t," failed - params: ").concat(csJSON.stringify(n)),i)}}},n}(Mi),oc=function(){function t(t,n,i,r){this.D=t,this.Y=n,this.X=i,this.by=r}return t.prototype.getRequestParameters=function(){var t,n=X(X({},Et()),this.D.getRequestParameters()),i=this.X.getSession();i&&(n.pn="".concat(i.pageNumber));var r=this.Y.getVisitor();return r&&(n.sn="".concat(r.visitsCount),n.uu="".concat(r.id)),(null===(t=this.by)||void 0===t?void 0:t.hasSubProjectId())&&(n.subProjectID="".concat(this.by.getSubProjectId())),n},t}(),hc=function(){function t(t,n){this.Qh=t,this.I=n}return t.prototype.init=function(){var t=this;this.Qh.register(["debugEvents"],(function(n){"boolean"==typeof n&&t.I.updateDynamicFields("emitDebugEvents",n)}))},t}();function cc(t,n,i){if(!Pt(n)&&!Pt(i))return t.href;var r=Pt(n)?function(t){return it(t,"/")?t:"/".concat(t)}(n):t.pathname,s=Pt(i)?function(t){return it(t,"?")||""===t?t:"?".concat(t)}(i):t.search;return"".concat(t.protocol,"//").concat(t.host).concat(r).concat(s)}!function(t){t[t.page=1]="page",t[t.onNextPageviewOnly=2]="onNextPageviewOnly"}(ec||(ec={}));var ac,fc=function(){function t(t,n){this.Ds=t,this.sc=n,this.Ry=10}return t.prototype.overridePath=function(t,n){if(""!==t){var i=this.Ny(n);i&&(this.Ty=i),this.Oy=n?this.ky(t,n):t}else this.Oy=void 0},t.prototype.overrideQuery=function(t,n){var i=this.Ny(n);i&&(this.Cy=i),this.Iy=n?this.ky(t,n):t},t.prototype.computeOverriddenUrl=function(t){return this._y(t)?this.getAnonymizedUrl():t},t.prototype.Py=function(t){return("string"==typeof t||"number"==typeof t)&&t in ec},t.prototype._y=function(t){var n=this.My(this.Ds.href);return this.My(t)===n},t.prototype.My=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.Ny=function(t){return Pt(null==t?void 0:t.lifespan)&&this.Py(null==t?void 0:t.lifespan)?null==t?void 0:t.lifespan:null},t.prototype.xy=function(){return this.Ty&&this.Ty in ec},t.prototype.Ly=function(){return this.Cy&&this.Cy in ec},t.prototype.cleanupOverrideLifespan=function(){this.xy()&&(this.Oy=void 0,this.Ty=void 0),this.Ly()&&(this.Iy=void 0,this.Cy=void 0)},t.prototype.getAnonymizedUrl=function(){var t=cc(this.Ds,this.Oy,this.Iy);return this.sc.anonymizeUrl(t,[])},t.prototype.getUrlProtocol=function(){return this.Ds.protocol},t.prototype.getRequestParameters=function(){return{url:this.getAnonymizedUrl()}},t.prototype.ky=function(t,n){return this.Dy(n)?this.Uy(t):this.jy(n)?this.Hy(t):t},t.prototype.jy=function(t){return Boolean(t.decodeURI)},t.prototype.Hy=function(t){return this.qy(t,1,!1)},t.prototype.Dy=function(t){return Boolean(t.decodeURIDeep)},t.prototype.Uy=function(t){return this.qy(t,this.Ry,!0)},t.prototype.qy=function(t,n,i){for(var r=t,s=0;s<n;s++)try{var e=window.decodeURI(r);if(e===r)return r;r=e}catch(t){return r}return i&&on.warn("decodeURIDeep limit reached: ".concat(r)),r},t}(),vc=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Y(n,t),n.prototype.emitPageEvent=function(t){for(var n=0,i=this.listeners;n<i.length;n++){var r=i[n];r.onPageEvent&&r.onPageEvent(t)}},n.prototype.emitEventTriggerRecording=function(t,n){for(var i=0,r=this.listeners;i<r.length;i++){var s=r[i];s.onEventTriggerRecording&&s.onEventTriggerRecording(t,n)}},n.prototype.emitCustomJavaScriptErrorEvent=function(t){for(var n=0,i=this.listeners;n<i.length;n++){var r=i[n];r.onCustomJavaScriptErrorEvent&&r.onCustomJavaScriptErrorEvent(t)}},n.prototype.emitCustomErrorEvent=function(t){for(var n=0,i=this.listeners;n<i.length;n++){var r=i[n];r.onCustomErrorEvent&&r.onCustomErrorEvent(t)}},n.prototype.emitUserIdentifierEvent=function(t){for(var n=0,i=this.listeners;n<i.length;n++){var r=i[n];r.onUserIdentifierEvent&&r.onUserIdentifierEvent(t)}},n}(Oh),lc=function(){function t(t,n,i,r,s){this.configuration=t,this.zy=n,this.Dn=i,this.hw=r,this.tt=s,this.By=[]}return t.prototype.init=function(){this.Fy()},t.prototype.sanitizeSessionRecordingState=function(t){return t.recordingState===Ni.TEMPORARILY_RECORDED&&(t.recordingState=Ni.NOT_RECORDED),t},t.prototype.computeInitialRecordingState=function(t){return Ks.isReplayConsentNeeded(this.configuration)?Ni.BLOCKED_BY_CONSENT_NOT_EXPRESSED:this.Ww(t)},t.prototype.computeInitialRecordingStateFromRecordingConsentGranted=function(t){return this.Ww(t)},t.prototype.Ww=function(t){return Ts.isRecordingSupported()?(this.By=[],st.percentage()<this.configuration.replayRecordingRate||this.hw.isForceReplayRecorded()?csArray.prototype.push.call(this.By,Ni.GLOBAL_SAMPLING):this.configuration.malkaUrlEnabled&&csArray.prototype.push.call(this.By,Ni.URL_SAMPLING),this.configuration.malkaEtrEnabled&&csArray.prototype.push.call(this.By,Ni.ETR_SAMPLING),this.By.length>0?(this.Vy(t),Ni.TEMPORARILY_RECORDED):Ni.NOT_RECORDED):Ni.NOT_RECORDED},t.prototype.updateRecordingState=function(t){return Ts.isRecordingSupported()?Ks.isRecordingBlockedByConsent(t)?t.recordingState===Ni.BLOCKED_BY_CONSENT_WITHDRAWN?Ni.BLOCKED_BY_CONSENT_WITHDRAWN:Ni.BLOCKED_BY_CONSENT_NOT_EXPRESSED:t.recordingState===Ni.GLOBAL_SAMPLING?Ni.GLOBAL_SAMPLING:(this.By=[],this.configuration.malkaUrlEnabled&&(csArray.prototype.push.call(this.By,Ni.URL_SAMPLING),this.configuration.malkaEtrEnabled&&csArray.prototype.push.call(this.By,Ni.ETR_SAMPLING)),this.By.length>0?(this.Vy(t),Ni.TEMPORARILY_RECORDED):Ni.NOT_RECORDED):Ni.NOT_RECORDED},t.prototype.Vy=function(t){var n,i=null===(n=this.Y)||void 0===n?void 0:n.getVisitor();this.zy.send({recordingTypes:csArray.prototype.map.call(this.By,Number),url:this.tt.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)||""})},t.prototype.abortQuotaServiceRequest=function(){this.zy.abort()},t.prototype.isReplayRecorded=function(t){return!Ks.isRecordingBlockedByConsent(t)&&(t.recordingState===Ni.TEMPORARILY_RECORDED||t.recordingState===Ni.GLOBAL_SAMPLING||t.recordingState===Ni.URL_SAMPLING||t.etrState===Ti.ETR_ON)},t.prototype.Fy=function(){var t=this;this.zy.onError((function(){return t.quotaServiceErrorHandler("NetworkError")})),this.zy.onTimeout((function(){return t.quotaServiceTimeoutHandler()}),3e3),this.zy.onLoad((function(n){return t.quotaServiceLoadHandler(n)}))},t.prototype.quotaServiceErrorHandler=function(t){this.Gy("error - ".concat(t))},t.prototype.quotaServiceTimeoutHandler=function(){this.Gy("timeout")},t.prototype.Gy=function(t){var n=Ni.NOT_RECORDED;this.Wy(this.By)?(n=Ni.GLOBAL_SAMPLING,on.warn("Quota Service: request ".concat(t," - bypassed by GLOBAL_SAMPLING"))):on.warn("Quota Service: request ".concat(t)),this.Dn.emitRecordingStateChange(n,Ti.ETR_OFF)},t.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=Ti.ETR_OFF,s=Ni.NOT_RECORDED;this.Wy(i)?s=Ni.GLOBAL_SAMPLING:this.Jy(i)&&(s=Ni.URL_SAMPLING),this.Yy(i)&&(r=Ti.ETR_ON),this.Dn.emitRecordingStateChange(s,r)}else this.quotaServiceErrorHandler("recording types missing from quota service response")}else this.quotaServiceErrorHandler("Status code: ".concat(t.status))},t.prototype.Wy=function(t){return csArray.prototype.some.call(t,(function(t){return t===Ni.GLOBAL_SAMPLING}))},t.prototype.Jy=function(t){return csArray.prototype.some.call(t,(function(t){return t===Ni.URL_SAMPLING}))},t.prototype.Yy=function(t){return csArray.prototype.some.call(t,(function(t){return t===Ni.ETR_SAMPLING}))},t.prototype.setVisitorService=function(t){this.Y=t},t.prototype.getDisabledRecordingState=function(){return Ni.NOT_RECORDED},t.prototype.getConsentWithdrawnRecordingState=function(){return Ni.BLOCKED_BY_CONSENT_WITHDRAWN},K([ln("Quota Service: onerror")],t.prototype,"quotaServiceErrorHandler",null),K([ln("Quota Service: ontimeout")],t.prototype,"quotaServiceTimeoutHandler",null),K([ln("Quota Service: onload")],t.prototype,"quotaServiceLoadHandler",null),t}(),dc="|iframe|",wc=function(t){function n(n,i,r,s){var e=t.call(this)||this;return e.Xy=n,e.Ky=i,e.$y=r,e.Zy=s,e}return Y(n,t),n.prototype.emitIframeEvent=function(t,n,i){if(this.Qy(n)&&null===t)on.error("iframeEventEmitter received event ".concat(n," with null iframe, content:").concat(csJSON.stringify(i)));else switch(n){case tn.ChildLogMessage:this.tp(i);break;case tn.AnalysisEvent:var r=this.Xy.transformEvent(t,i);this.np(r);break;case tn.RecordingEvent:var s=i,e=this.Zy.transformEvents(t,s);if(0===e.events.length)return;e.containsUserEvent?this.ip(e.events):this.rp(e.events);break;case tn.JavascriptError:this.sp(i);break;case tn.ApiError:this.ep(i);break;case tn.DetailedApiError:this.up(i);break;case tn.CustomError:this.op(i);break;case tn.EmerchandisingMessage:var u=this.$y.transformEvent(t,i);this.hp(u);break;case tn.Commands:var o=this.Ky.transformEvent(t,i);this.cp(o);break;case tn.IntegrationCallback:this.ap(i);break;case tn.StaticResource:this.fp(i);break;case tn.TrackingContextRequestMessage:this.vp(i);break;default:on.error("Parent received unknown data type from iframe : ".concat(csJSON.stringify(i)))}},n.prototype.Qy=function(t){var n=[tn.AnalysisEvent,tn.RecordingEvent,tn.EmerchandisingMessage,tn.Commands];return-1!==csArray.prototype.indexOf.call(n,t)},n.prototype.tp=function(t){var n=t.message,i=t.errorCode;switch(t.level){case ut.debug:on.debug(n,i);break;case ut.warn:on.warn(n,i);break;case ut.error:on.error(n,i);break;case ut.critical:on.critical(n,i)}},n.prototype.np=function(t){for(var n=0,i=this.listeners;n<i.length;n++){var r=i[n];r.onIframeAnalysisEvent&&r.onIframeAnalysisEvent(t)}},n.prototype.ip=function(t){for(var n=0,i=this.listeners;n<i.length;n++){var r=i[n];r.onIframeRecordingUserEvent&&r.onIframeRecordingUserEvent(t)}},n.prototype.rp=function(t){for(var n=0,i=this.listeners;n<i.length;n++){var r=i[n];r.onIframeRecordingBrowserEvent&&r.onIframeRecordingBrowserEvent(t)}},n.prototype.sp=function(t){for(var n=0,i=this.listeners;n<i.length;n++){var r=i[n];r.onIframeJavascriptError&&r.onIframeJavascriptError(t)}},n.prototype.ep=function(t){for(var n=0,i=this.listeners;n<i.length;n++){var r=i[n];r.onIframeApiError&&r.onIframeApiError(t)}},n.prototype.up=function(t){for(var n=0,i=this.listeners;n<i.length;n++){var r=i[n];r.onIframeDetailedApiError&&r.onIframeDetailedApiError(t)}},n.prototype.hp=function(t){for(var n=0,i=this.listeners;n<i.length;n++){var r=i[n];r.onIframeEmerchandisingMessage&&r.onIframeEmerchandisingMessage(t)}},n.prototype.cp=function(t){for(var n=0,i=this.listeners;n<i.length;n++){var r=i[n];r.onIframeCommands&&r.onIframeCommands(t)}},n.prototype.ap=function(t){for(var n=0,i=this.listeners;n<i.length;n++){var r=i[n];r.onIframeIntegrationCallback&&r.onIframeIntegrationCallback(t)}},n.prototype.fp=function(t){for(var n=0,i=this.listeners;n<i.length;n++){var r=i[n];r.onIframeStaticResource&&r.onIframeStaticResource(t)}},n.prototype.vp=function(t){for(var n=0,i=this.listeners;n<i.length;n++){var r=i[n];r.onTrackingContextRequestCallback&&r.onTrackingContextRequestCallback(t)}},n.prototype.op=function(t){for(var n=0,i=this.listeners;n<i.length;n++){var r=i[n];r.onIframeCustomError&&r.onIframeCustomError(t)}},n}(Oh);!function(t){t.COMPRESSION_DISABLED="compressionDisabled"}(ac||(ac={}));var yc=function(){function t(){}return t.init=function(t){var n;void 0===t&&(t=document.cookie);var i=null===(n=/_cs_debug=((\w|\.|\:|=)+)/g.exec(t))||void 0===n?void 0:n[1];if(this.lp=new Map,i)for(var r=csString.prototype.split.call(i,"."),s=0;s<r.length;s++){var e=csString.prototype.split.call(r[s],"="),u=e[0],o=e[1];this.lp.set(u,o||"true")}},t.getBoolean=function(t){var n=this.getString(t);return null!=n&&"false"!==n&&0!==parseInt(n)},t.getString=function(t){var n;return null===(n=this.lp)||void 0===n?void 0:n.get(t)},t.isCompressionEnabled=function(){return!this.getBoolean(ac.COMPRESSION_DISABLED)},t.Log=function(n){return function(i,r,s){var e,u=r.toString(),o="".concat(null===(e=i.constructor)||void 0===e?void 0:e.name,".").concat(u),h=s.value;(function(t,n){var i;if(null==t)return!1;return t===n||!!(null===(i=csString.prototype.match.call(t,new RegExp("(^|,)("+n+")(,|$)")))||void 0===i?void 0:i.length)})(t.getString("debugLog"),n)&&(s.value=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return console.log.apply(console,Q([o],t,!1)),h.bind(this).apply(void 0,t)})}},t}();function pc(){function t(t){for(var n=t.length;--n>=0;)t[n]=0}var n=256,i=286,r=30,s=15,e=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]),u=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]),o=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),h=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),c=new Array(576);t(c);var a=new Array(60);t(a);var f=new Array(512);t(f);var v=new Array(256);t(v);var l=new Array(29);t(l);var d,w,y,p=new Array(r);function m(t,n,i,r,s){this.static_tree=t,this.extra_bits=n,this.extra_base=i,this.elems=r,this.max_length=s,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 A=function(t){return t<256?f[t]:f[256+(t>>>7)]},S=function(t,n){t.pending_buf[t.pending++]=255&n,t.pending_buf[t.pending++]=n>>>8&255},E=function(t,n,i){t.bi_valid>16-i?(t.bi_buf|=n<<t.bi_valid&65535,S(t,t.bi_buf),t.bi_buf=n>>16-t.bi_valid,t.bi_valid+=i-16):(t.bi_buf|=n<<t.bi_valid&65535,t.bi_valid+=i)},b=function(t,n,i){E(t,i[2*n],i[2*n+1])},R=function(t,n){var i=0;do{i|=1&t,t>>>=1,i<<=1}while(--n>0);return i>>>1},N=function(t,n,i){var r,e,u=new Array(16),o=0;for(r=1;r<=s;r++)u[r]=o=o+i[r-1]<<1;for(e=0;e<=n;e++){var h=t[2*e+1];0!==h&&(t[2*e]=R(u[h]++,h))}},T=function(t){var n;for(n=0;n<i;n++)t.dyn_ltree[2*n]=0;for(n=0;n<r;n++)t.dyn_dtree[2*n]=0;for(n=0;n<19;n++)t.bl_tree[2*n]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},O=function(t){t.bi_valid>8?S(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 s=2*n,e=2*i;return t[s]<t[e]||t[s]===t[e]&&r[n]<=r[i]},C=function(t,n,i){for(var r=t.heap[i],s=i<<1;s<=t.heap_len&&(s<t.heap_len&&k(n,t.heap[s+1],t.heap[s],t.depth)&&s++,!k(n,r,t.heap[s],t.depth));)t.heap[i]=t.heap[s],i=s,s<<=1;t.heap[i]=r},I=function(t,i,r){var s,o,h,c,a=0;if(0!==t.last_lit)do{s=t.pending_buf[t.d_buf+2*a]<<8|t.pending_buf[t.d_buf+2*a+1],o=t.pending_buf[t.l_buf+a],a++,0===s?b(t,o,i):(h=v[o],b(t,h+n+1,i),0!==(c=e[h])&&(o-=l[h],E(t,o,c)),s--,h=A(s),b(t,h,r),0!==(c=u[h])&&(s-=p[h],E(t,s,c)))}while(a<t.last_lit);b(t,256,i)},_=function(t,n){var i,r,e,u=n.dyn_tree,o=n.stat_desc.static_tree,h=n.stat_desc.has_stree,c=n.stat_desc.elems,a=-1;for(t.heap_len=0,t.heap_max=573,i=0;i<c;i++)0!==u[2*i]?(t.heap[++t.heap_len]=a=i,t.depth[i]=0):u[2*i+1]=0;for(;t.heap_len<2;)u[2*(e=t.heap[++t.heap_len]=a<2?++a:0)]=1,t.depth[e]=0,t.opt_len--,h&&(t.static_len-=o[2*e+1]);for(n.max_code=a,i=t.heap_len>>1;i>=1;i--)C(t,u,i);e=c;do{i=t.heap[1],t.heap[1]=t.heap[t.heap_len--],C(t,u,1),r=t.heap[1],t.heap[--t.heap_max]=i,t.heap[--t.heap_max]=r,u[2*e]=u[2*i]+u[2*r],t.depth[e]=(t.depth[i]>=t.depth[r]?t.depth[i]:t.depth[r])+1,u[2*i+1]=u[2*r+1]=e,t.heap[1]=e++,C(t,u,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,n){var i,r,e,u,o,h,c=n.dyn_tree,a=n.max_code,f=n.stat_desc.static_tree,v=n.stat_desc.has_stree,l=n.stat_desc.extra_bits,d=n.stat_desc.extra_base,w=n.stat_desc.max_length,y=0;for(u=0;u<=s;u++)t.bl_count[u]=0;for(c[2*t.heap[t.heap_max]+1]=0,i=t.heap_max+1;i<573;i++)(u=c[2*c[2*(r=t.heap[i])+1]+1]+1)>w&&(u=w,y++),c[2*r+1]=u,r>a||(t.bl_count[u]++,o=0,r>=d&&(o=l[r-d]),h=c[2*r],t.opt_len+=h*(u+o),v&&(t.static_len+=h*(f[2*r+1]+o)));if(0!==y){do{for(u=w-1;0===t.bl_count[u];)u--;t.bl_count[u]--,t.bl_count[u+1]+=2,t.bl_count[w]--,y-=2}while(y>0);for(u=w;0!==u;u--)for(r=t.bl_count[u];0!==r;)(e=t.heap[--i])>a||(c[2*e+1]!==u&&(t.opt_len+=(u-c[2*e+1])*c[2*e],c[2*e+1]=u),r--)}}(t,n),N(u,a,t.bl_count)},P=function(t,n,i){var r,s,e=-1,u=n[1],o=0,h=7,c=4;for(0===u&&(h=138,c=3),n[2*(i+1)+1]=65535,r=0;r<=i;r++)s=u,u=n[2*(r+1)+1],++o<h&&s===u||(o<c?t.bl_tree[2*s]+=o:0!==s?(s!==e&&t.bl_tree[2*s]++,t.bl_tree[32]++):o<=10?t.bl_tree[34]++:t.bl_tree[36]++,o=0,e=s,0===u?(h=138,c=3):s===u?(h=6,c=3):(h=7,c=4))},M=function(t,n,i){var r,s,e=-1,u=n[1],o=0,h=7,c=4;for(0===u&&(h=138,c=3),r=0;r<=i;r++)if(s=u,u=n[2*(r+1)+1],!(++o<h&&s===u)){if(o<c)do{b(t,s,t.bl_tree)}while(0!=--o);else 0!==s?(s!==e&&(b(t,s,t.bl_tree),o--),b(t,16,t.bl_tree),E(t,o-3,2)):o<=10?(b(t,17,t.bl_tree),E(t,o-3,3)):(b(t,18,t.bl_tree),E(t,o-11,7));o=0,e=s,0===u?(h=138,c=3):s===u?(h=6,c=3):(h=7,c=4)}},x=!1,L=function(t,n,i,r){E(t,0+(r?1:0),3),function(t,n,i,r){O(t),r&&(S(t,i),S(t,~i)),t.pending_buf.set(t.window.subarray(n,n+i),t.pending),t.pending+=i}(t,n,i,!0)},D=function(t){x||(!function(){var t,n,h,g,A,S=new Array(16);for(h=0,g=0;g<28;g++)for(l[g]=h,t=0;t<1<<e[g];t++)v[h++]=g;for(v[h-1]=g,A=0,g=0;g<16;g++)for(p[g]=A,t=0;t<1<<u[g];t++)f[A++]=g;for(A>>=7;g<r;g++)for(p[g]=A<<7,t=0;t<1<<u[g]-7;t++)f[256+A++]=g;for(n=0;n<=s;n++)S[n]=0;for(t=0;t<=143;)c[2*t+1]=8,t++,S[8]++;for(;t<=255;)c[2*t+1]=9,t++,S[9]++;for(;t<=279;)c[2*t+1]=7,t++,S[7]++;for(;t<=287;)c[2*t+1]=8,t++,S[8]++;for(N(c,287,S),t=0;t<r;t++)a[2*t+1]=5,a[2*t]=R(t,5);d=new m(c,e,257,i,s),w=new m(a,u,0,r,s),y=new m(new Array(0),o,0,19,7)}(),x=!0),t.l_desc=new g(t.dyn_ltree,d),t.d_desc=new g(t.dyn_dtree,w),t.bl_desc=new g(t.bl_tree,y),t.bi_buf=0,t.bi_valid=0,T(t)},U=function(t,i,r,s){var e,u,o=0;t.level>0?(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<n;i++)if(0!==t.dyn_ltree[2*i])return 1;return 0}(t)),_(t,t.l_desc),_(t,t.d_desc),o=function(t){var n;for(P(t,t.dyn_ltree,t.l_desc.max_code),P(t,t.dyn_dtree,t.d_desc.max_code),_(t,t.bl_desc),n=18;n>=3&&0===t.bl_tree[2*h[n]+1];n--);return t.opt_len+=3*(n+1)+5+5+4,n}(t),e=t.opt_len+3+7>>>3,(u=t.static_len+3+7>>>3)<=e&&(e=u)):e=u=r+5,r+4<=e&&-1!==i?L(t,i,r,s):4===t.strategy||u===e?(E(t,2+(s?1:0),3),I(t,c,a)):(E(t,4+(s?1:0),3),function(t,n,i,r){var s;for(E(t,n-257,5),E(t,i-1,5),E(t,r-4,4),s=0;s<r;s++)E(t,t.bl_tree[2*h[s]+1],3);M(t,t.dyn_ltree,n-1),M(t,t.dyn_dtree,i-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,o+1),I(t,t.dyn_ltree,t.dyn_dtree)),T(t),s&&O(t)},j=function(t,i,r){return t.pending_buf[t.d_buf+2*t.last_lit]=i>>>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*(v[r]+n+1)]++,t.dyn_dtree[2*A(i)]++),t.last_lit===t.lit_bufsize-1},H=function(t){E(t,2,3),b(t,256,c),function(t){16===t.bi_valid?(S(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)},q={_tr_init:D,_tr_stored_block:L,_tr_flush_block:U,_tr_tally:j,_tr_align:H},z=function(t,n,i,r){for(var s=65535&t,e=t>>>16&65535,u=0;0!==i;){i-=u=i>2e3?2e3:i;do{e=e+(s=s+n[r++]|0)|0}while(--u);s%=65521,e%=65521}return s|e<<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}()),F=function(t,n,i,r){var s=B,e=r+i;t^=-1;for(var u=r;u<e;u++)t=t>>>8^s[255&(t^n[u])];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,W=2,J=3,Y=4,X=0,K=1,$=-1,Z=0,Q=8,tt=q._tr_init,nt=q._tr_stored_block,it=q._tr_flush_block,rt=q._tr_tally,st=q._tr_align,et=G,ut=1,ot=J,ht=Y,ct=5,at=X,ft=K,vt=-2,lt=-3,dt=-5,wt=$,yt=1,pt=2,mt=3,gt=4,At=Z,St=2,Et=Q,bt=258,Rt=262,Nt=103,Tt=113,Ot=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},_t=function(t,n,i){return(n<<t.hash_shift^i)&t.hash_mask},Pt=function(t){var n=t.state,i=n.pending;i>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))},Mt=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},Lt=function(t,n){t.pending_buf[t.pending++]=n>>>8&255,t.pending_buf[t.pending++]=255&n},Dt=function(t,n){var i,r,s=t.max_chain_length,e=t.strstart,u=t.prev_length,o=t.nice_match,h=t.strstart>t.w_size-Rt?t.strstart-(t.w_size-Rt):0,c=t.window,a=t.w_mask,f=t.prev,v=t.strstart+bt,l=c[e+u-1],d=c[e+u];t.prev_length>=t.good_match&&(s>>=2),o>t.lookahead&&(o=t.lookahead);do{if(c[(i=n)+u]===d&&c[i+u-1]===l&&c[i]===c[e]&&c[++i]===c[e+1]){e+=2,i++;do{}while(c[++e]===c[++i]&&c[++e]===c[++i]&&c[++e]===c[++i]&&c[++e]===c[++i]&&c[++e]===c[++i]&&c[++e]===c[++i]&&c[++e]===c[++i]&&c[++e]===c[++i]&&e<v);if(r=bt-(v-e),e=v-bt,r>u){if(t.match_start=n,u=r,r>=o)break;l=c[e+u-1],d=c[e+u]}}}while((n=f[n&a])>h&&0!=--s);return u<=t.lookahead?u:t.lookahead},Ut=function(t){var n,i,r,s,e,u,o,h,c,a,f=t.w_size;do{if(s=t.window_size-t.lookahead-t.strstart,t.strstart>=f+(f-Rt)){t.window.set(t.window.subarray(f,f+f),0),t.match_start-=f,t.strstart-=f,t.block_start-=f,n=i=t.hash_size;do{r=t.head[--n],t.head[n]=r>=f?r-f:0}while(--i);n=i=f;do{r=t.prev[--n],t.prev[n]=r>=f?r-f:0}while(--i);s+=f}if(0===t.strm.avail_in)break;if(u=t.strm,o=t.window,h=t.strstart+t.lookahead,c=s,a=void 0,(a=u.avail_in)>c&&(a=c),i=0===a?0:(u.avail_in-=a,o.set(u.input.subarray(u.next_in,u.next_in+a),h),1===u.state.wrap?u.adler=z(u.adler,o,a,h):2===u.state.wrap&&(u.adler=F(u.adler,o,a,h)),u.next_in+=a,u.total_in+=a,a),t.lookahead+=i,t.lookahead+t.insert>=3)for(e=t.strstart-t.insert,t.ins_h=t.window[e],t.ins_h=_t(t,t.ins_h,t.window[e+1]);t.insert&&(t.ins_h=_t(t,t.ins_h,t.window[e+3-1]),t.prev[e&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=e,e++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<Rt&&0!==t.strm.avail_in)},jt=function(t,n){for(var i,r;;){if(t.lookahead<Rt){if(Ut(t),t.lookahead<Rt&&n===et)return 1;if(0===t.lookahead)break}if(i=0,t.lookahead>=3&&(t.ins_h=_t(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=Dt(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=_t(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=_t(t,t.ins_h,t.window[t.strstart+1]);else r=rt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(Mt(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,n===ht?(Mt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Mt(t,!1),0===t.strm.avail_out)?1:2},Ht=function(t,n){for(var i,r,s;;){if(t.lookahead<Rt){if(Ut(t),t.lookahead<Rt&&n===et)return 1;if(0===t.lookahead)break}if(i=0,t.lookahead>=3&&(t.ins_h=_t(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_length<t.max_lazy_match&&t.strstart-i<=t.w_size-Rt&&(t.match_length=Dt(t,i),t.match_length<=5&&(t.strategy===yt||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){s=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<=s&&(t.ins_h=_t(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&&(Mt(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((r=rt(t,0,t.window[t.strstart-1]))&&Mt(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===ht?(Mt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Mt(t,!1),0===t.strm.avail_out)?1:2};function qt(t,n,i,r,s){this.good_length=t,this.max_lazy=n,this.nice_length=i,this.max_chain=r,this.func=s}var zt=[new qt(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(Ut(t),0===t.lookahead&&n===et)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,Mt(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-Rt&&(Mt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,n===ht?(Mt(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(Mt(t,!1),t.strm.avail_out),1)})),new qt(4,4,8,4,jt),new qt(4,5,16,8,jt),new qt(4,6,32,32,jt),new qt(4,4,16,16,Ht),new qt(8,16,32,32,Ht),new qt(8,16,128,128,Ht),new qt(8,32,128,256,Ht),new qt(32,128,258,1024,Ht),new qt(32,258,258,4096,Ht)];function Bt(){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=Et,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 Ft=function(t){if(!t||!t.state)return kt(t,vt);t.total_in=t.total_out=0,t.data_type=St;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=et,tt(n),at},Vt=function(t){var n=Ft(t);return n===at&&function(t){t.window_size=2*t.w_size,It(t.head),t.max_lazy_match=zt[t.level].max_lazy,t.good_match=zt[t.level].good_length,t.nice_match=zt[t.level].nice_length,t.max_chain_length=zt[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},Gt=function(t,n,i,r,s,e){if(!t)return vt;var u=1;if(n===wt&&(n=6),r<0?(u=0,r=-r):r>15&&(u=2,r-=16),s<1||s>9||i!==Et||r<8||r>15||n<0||n>9||e<0||e>gt)return kt(t,vt);8===r&&(r=9);var o=new Bt;return t.state=o,o.strm=t,o.wrap=u,o.gzhead=null,o.w_bits=r,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=s+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+3-1)/3),o.window=new Uint8Array(2*o.w_size),o.head=new Uint16Array(o.hash_size),o.prev=new Uint16Array(o.w_size),o.lit_bufsize=1<<s+6,o.pending_buf_size=4*o.lit_bufsize,o.pending_buf=new Uint8Array(o.pending_buf_size),o.d_buf=1*o.lit_bufsize,o.l_buf=3*o.lit_bufsize,o.level=n,o.strategy=e,o.method=i,Vt(t)},Wt=function(t,n){var i,r;if(!t||!t.state||n>ct||n<0)return t?kt(t,vt):vt;var s=t.state;if(!t.output||!t.input&&0!==t.avail_in||s.status===Ot&&n!==ht)return kt(t,0===t.avail_out?dt:vt);s.strm=t;var e=s.last_flush;if(s.last_flush=n,42===s.status)if(2===s.wrap)t.adler=0,xt(s,31),xt(s,139),xt(s,8),s.gzhead?(xt(s,(s.gzhead.text?1:0)+(s.gzhead.hcrc?2:0)+(s.gzhead.extra?4:0)+(s.gzhead.name?8:0)+(s.gzhead.comment?16:0)),xt(s,255&s.gzhead.time),xt(s,s.gzhead.time>>8&255),xt(s,s.gzhead.time>>16&255),xt(s,s.gzhead.time>>24&255),xt(s,9===s.level?2:s.strategy>=pt||s.level<2?4:0),xt(s,255&s.gzhead.os),s.gzhead.extra&&s.gzhead.extra.length&&(xt(s,255&s.gzhead.extra.length),xt(s,s.gzhead.extra.length>>8&255)),s.gzhead.hcrc&&(t.adler=F(t.adler,s.pending_buf,s.pending,0)),s.gzindex=0,s.status=69):(xt(s,0),xt(s,0),xt(s,0),xt(s,0),xt(s,0),xt(s,9===s.level?2:s.strategy>=pt||s.level<2?4:0),xt(s,3),s.status=Tt);else{var u=Et+(s.w_bits-8<<4)<<8;u|=(s.strategy>=pt||s.level<2?0:s.level<6?1:6===s.level?2:3)<<6,0!==s.strstart&&(u|=32),u+=31-u%31,s.status=Tt,Lt(s,u),0!==s.strstart&&(Lt(s,t.adler>>>16),Lt(s,65535&t.adler)),t.adler=1}if(69===s.status)if(s.gzhead.extra){for(i=s.pending;s.gzindex<(65535&s.gzhead.extra.length)&&(s.pending!==s.pending_buf_size||(s.gzhead.hcrc&&s.pending>i&&(t.adler=F(t.adler,s.pending_buf,s.pending-i,i)),Pt(t),i=s.pending,s.pending!==s.pending_buf_size));)xt(s,255&s.gzhead.extra[s.gzindex]),s.gzindex++;s.gzhead.hcrc&&s.pending>i&&(t.adler=F(t.adler,s.pending_buf,s.pending-i,i)),s.gzindex===s.gzhead.extra.length&&(s.gzindex=0,s.status=73)}else s.status=73;if(73===s.status)if(s.gzhead.name){i=s.pending;do{if(s.pending===s.pending_buf_size&&(s.gzhead.hcrc&&s.pending>i&&(t.adler=F(t.adler,s.pending_buf,s.pending-i,i)),Pt(t),i=s.pending,s.pending===s.pending_buf_size)){r=1;break}r=s.gzindex<s.gzhead.name.length?255&s.gzhead.name.charCodeAt(s.gzindex++):0,xt(s,r)}while(0!==r);s.gzhead.hcrc&&s.pending>i&&(t.adler=F(t.adler,s.pending_buf,s.pending-i,i)),0===r&&(s.gzindex=0,s.status=91)}else s.status=91;if(91===s.status)if(s.gzhead.comment){i=s.pending;do{if(s.pending===s.pending_buf_size&&(s.gzhead.hcrc&&s.pending>i&&(t.adler=F(t.adler,s.pending_buf,s.pending-i,i)),Pt(t),i=s.pending,s.pending===s.pending_buf_size)){r=1;break}r=s.gzindex<s.gzhead.comment.length?255&s.gzhead.comment.charCodeAt(s.gzindex++):0,xt(s,r)}while(0!==r);s.gzhead.hcrc&&s.pending>i&&(t.adler=F(t.adler,s.pending_buf,s.pending-i,i)),0===r&&(s.status=Nt)}else s.status=Nt;if(s.status===Nt&&(s.gzhead.hcrc?(s.pending+2>s.pending_buf_size&&Pt(t),s.pending+2<=s.pending_buf_size&&(xt(s,255&t.adler),xt(s,t.adler>>8&255),t.adler=0,s.status=Tt)):s.status=Tt),0!==s.pending){if(Pt(t),0===t.avail_out)return s.last_flush=-1,at}else if(0===t.avail_in&&Ct(n)<=Ct(e)&&n!==ht)return kt(t,dt);if(s.status===Ot&&0!==t.avail_in)return kt(t,dt);if(0!==t.avail_in||0!==s.lookahead||n!==et&&s.status!==Ot){var o=s.strategy===pt?function(t,n){for(var i;;){if(0===t.lookahead&&(Ut(t),0===t.lookahead)){if(n===et)return 1;break}if(t.match_length=0,i=rt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,i&&(Mt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,n===ht?(Mt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Mt(t,!1),0===t.strm.avail_out)?1:2}(s,n):s.strategy===mt?function(t,n){for(var i,r,s,e,u=t.window;;){if(t.lookahead<=bt){if(Ut(t),t.lookahead<=bt&&n===et)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(r=u[s=t.strstart-1])===u[++s]&&r===u[++s]&&r===u[++s]){e=t.strstart+bt;do{}while(r===u[++s]&&r===u[++s]&&r===u[++s]&&r===u[++s]&&r===u[++s]&&r===u[++s]&&r===u[++s]&&r===u[++s]&&s<e);t.match_length=bt-(e-s),t.match_length>t.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&&(Mt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,n===ht?(Mt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Mt(t,!1),0===t.strm.avail_out)?1:2}(s,n):zt[s.level].func(s,n);if(3!==o&&4!==o||(s.status=Ot),1===o||3===o)return 0===t.avail_out&&(s.last_flush=-1),at;if(2===o&&(n===ut?st(s):n!==ct&&(nt(s,0,0,!1),n===ot&&(It(s.head),0===s.lookahead&&(s.strstart=0,s.block_start=0,s.insert=0))),Pt(t),0===t.avail_out))return s.last_flush=-1,at}return n!==ht?at:s.wrap<=0?ft:(2===s.wrap?(xt(s,255&t.adler),xt(s,t.adler>>8&255),xt(s,t.adler>>16&255),xt(s,t.adler>>24&255),xt(s,255&t.total_in),xt(s,t.total_in>>8&255),xt(s,t.total_in>>16&255),xt(s,t.total_in>>24&255)):(Lt(s,t.adler>>>16),Lt(s,65535&t.adler)),Pt(t),s.wrap>0&&(s.wrap=-s.wrap),0!==s.pending?at:ft)},Jt=function(t,n){var i=n.length;if(!t||!t.state)return vt;var r=t.state,s=r.wrap;if(2===s||1===s&&42!==r.status||r.lookahead)return vt;if(1===s&&(t.adler=z(t.adler,n,i,0)),r.wrap=0,i>=r.w_size){0===s&&(It(r.head),r.strstart=0,r.block_start=0,r.insert=0);var e=new Uint8Array(r.w_size);e.set(n.subarray(i-r.w_size,i),0),n=e,i=r.w_size}var u=t.avail_in,o=t.next_in,h=t.input;for(t.avail_in=i,t.next_in=0,t.input=n,Ut(r);r.lookahead>=3;){var c=r.strstart,a=r.lookahead-2;do{r.ins_h=_t(r,r.ins_h,r.window[c+3-1]),r.prev[c&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=c,c++}while(--a);r.strstart=c,r.lookahead=2,Ut(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=o,t.input=h,t.avail_in=u,r.wrap=s,at},Yt={deflateInit:function(t,n){return Gt(t,n,Et,15,8,At)},deflateInit2:Gt,deflateReset:Vt,deflateResetKeep:Ft,deflateSetHeader:function(t,n){return t&&t.state?2!==t.state.wrap?vt:(t.state.gzhead=n,at):vt},deflate:Wt,deflateEnd:function(t){if(!t||!t.state)return vt;var n=t.state.status;return 42!==n&&69!==n&&73!==n&&91!==n&&n!==Nt&&n!==Tt&&n!==Ot?kt(t,vt):(t.state=null,n===Tt?kt(t,lt):at)},deflateSetDictionary:Jt,deflateInfo:"pako deflate (from Nodeca project)"},Xt=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},Kt={assign: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},flattenChunks:function(t){for(var n=0,i=0,r=t.length;i<r;i++)n+=t[i].length;var s=new Uint8Array(n),e=(i=0,0);for(r=t.length;i<r;i++){var u=t[i];s.set(u,e),e+=u.length}return s}},$t=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){$t=!1}for(var Zt=new Uint8Array(256),Qt=0;Qt<256;Qt++)Zt[Qt]=Qt>=252?6:Qt>=248?5:Qt>=240?4:Qt>=224?3:Qt>=192?2:1;Zt[254]=Zt[254]=1;var tn=function(t,n){if(void 0===n&&(n=t.length),n<65534&&t.subarray&&$t)return String.fromCharCode.apply(null,t.length===n?t:t.subarray(0,n));for(var i="",r=0;r<n;r++)i+=String.fromCharCode(t[r]);return i},nn={string2buf:function(t){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);var n,i,r,s,e,u=t.length,o=0;for(s=0;s<u;s++)55296==(64512&(i=t.charCodeAt(s)))&&s+1<u&&56320==(64512&(r=t.charCodeAt(s+1)))&&(i=65536+(i-55296<<10)+(r-56320),s++),o+=i<128?1:i<2048?2:i<65536?3:4;for(n=new Uint8Array(o),e=0,s=0;e<o;s++)55296==(64512&(i=t.charCodeAt(s)))&&s+1<u&&56320==(64512&(r=t.charCodeAt(s+1)))&&(i=65536+(i-55296<<10)+(r-56320),s++),i<128?n[e++]=i:i<2048?(n[e++]=192|i>>>6,n[e++]=128|63&i):i<65536?(n[e++]=224|i>>>12,n[e++]=128|i>>>6&63,n[e++]=128|63&i):(n[e++]=240|i>>>18,n[e++]=128|i>>>12&63,n[e++]=128|i>>>6&63,n[e++]=128|63&i);return n},buf2string:function(t,n){var i,r,s=n||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,n));var e=new Array(2*s);for(r=0,i=0;i<s;){var u=t[i++];if(u<128)e[r++]=u;else{var o=Zt[u];if(o>4)e[r++]=65533,i+=o-1;else{for(u&=2===o?31:3===o?15:7;o>1&&i<s;)u=u<<6|63&t[i++],o--;o>1?e[r++]=65533:u<65536?e[r++]=u:(u-=65536,e[r++]=55296|u>>10&1023,e[r++]=56320|1023&u)}}}return tn(e,r)},utf8border:function(t,n){(n=n||t.length)>t.length&&(n=t.length);for(var i=n-1;i>=0&&128==(192&t[i]);)i--;return i<0||0===i?n:i+Zt[t[i]]>n?i:n}};var rn=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},sn=Object.prototype.toString,en=G,un=W,on=J,hn=Y,cn=X,an=K,fn=$,vn=Z,ln=Q;function dn(t){this.options=Kt.assign({level:fn,method:ln,chunkSize:16384,windowBits:15,memLevel:8,strategy:vn},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 rn,this.strm.avail_out=0;var i=Yt.deflateInit2(this.strm,n.level,n.method,n.windowBits,n.memLevel,n.strategy);if(i!==cn)throw new Error(V[i]);if(n.header&&Yt.deflateSetHeader(this.strm,n.header),n.dictionary){var r=void 0;if(r="string"==typeof n.dictionary?nn.string2buf(n.dictionary):"[object ArrayBuffer]"===sn.call(n.dictionary)?new Uint8Array(n.dictionary):n.dictionary,(i=Yt.deflateSetDictionary(this.strm,r))!==cn)throw new Error(V[i]);this._dict_set=!0}}function wn(t,n){return(n=n||{}).gzip=!0,function(t,n){var i=new dn(n=n||{});if(i.push(t,!0),i.err)throw i.msg||V[i.err];return i.result}(t,n)}return dn.prototype.push=function(t,n){var i,r,s=this.strm,e=this.options.chunkSize;if(this.ended)return!1;for(r=n===~~n?n:!0===n?hn:en,"string"==typeof t?s.input=nn.string2buf(t):"[object ArrayBuffer]"===sn.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;;)if(0===s.avail_out&&(s.output=new Uint8Array(e),s.next_out=0,s.avail_out=e),(r===un||r===on)&&s.avail_out<=6)this.onData(s.output.subarray(0,s.next_out)),s.avail_out=0;else{if((i=Yt.deflate(s,r))===an)return s.next_out>0&&this.onData(s.output.subarray(0,s.next_out)),i=Yt.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===cn;if(0!==s.avail_out){if(r>0&&s.next_out>0)this.onData(s.output.subarray(0,s.next_out)),s.avail_out=0;else if(0===s.avail_in)break}else this.onData(s.output)}return!0},dn.prototype.onData=function(t){this.chunks.push(t)},dn.prototype.onEnd=function(t){t===cn&&(this.result=Kt.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(t,n,i){var r=wn(t);return r="base64"===n?btoa(tn(r)):r.buffer,i&&i(r),r}}yc.init();var mc=function(t){function n(n){var i=t.call(this,n)||this;return i.algorithm=pn.GZIP,i.dp=pc(),i.wp=function(t,n,r){r(i.dp(t,n))},i.compress=gc(),"undefined"!=typeof CompressionStream&&Zn||(i.compress=i.wp,i.getCompressorSourceCode=function(){return pc.toString()}),i}return Y(n,t),n.prototype.compressSync=function(t,n){return this.dp(t,n)},n.prototype.getCompressorSourceCode=function(){return gc.toString()},n}(Nn);function gc(){return function(t,n,i){var r=new Response(t).body.pipeThrough(new CompressionStream("gzip")),s=new Response(r).arrayBuffer();"base64"!==n?s.then((function(t){return i(t)})):s.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 Ac,Sc,Ec=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.algorithm=pn.UNCOMPRESSED,n}return Y(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}(Nn),bc=function(){function t(){}return t.create=function(t){return this.instance?this.instance:yc.isCompressionEnabled()?this.instance=new mc(t):new Ec(t)},t}(),Rc=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}(),Nc=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}(),Tc="_cs_cvars",Oc=function(){function t(t,n,i){this.D=t,this.Ew=n,this.bw=i}return t.prototype.onCookieToSet=function(t){this.Iw=t},t.prototype.onCookieToRemove=function(t){this._w=t},t.prototype.get=function(){return this.D.cookielessTrackingEnabled?this.bw.getItem(Tc):this.Ew.get(Tc)},t.prototype.set=function(t){var n;this.D.cookielessTrackingEnabled?this.bw.setItem(Tc,t):(this.Ew.set(Tc,t),null===(n=this.Iw)||void 0===n||n.call(this,Tc,t))},t.prototype.remove=function(){var t;this.D.cookielessTrackingEnabled?this.bw.removeItem(Tc):(this.Ew.delete(Tc),null===(t=this._w)||void 0===t||t.call(this,Tc))},t.isValidCustomVarString=function(t){return"string"==typeof t},t}(),kc=["visit",2],Cc=["page",3],Ic=["nextPageOnly",4],_c=function(){function t(t,n){this.U=t,this.fw=n,this.yp={},this.pp={}}return t.prototype.set=function(t,n,i,r){var s,e;if(t>0&&Mt(n)&&Mt(i)&&!xt(n)&&!xt(i)){var u=this.U.anonymizePII(csString(n)),o=this.U.anonymizePII(csString(i));if(s=[csString.prototype.slice.call(u,0,512),csString.prototype.slice.call(o,0,255)],e=""!==i,!Pt(r)||csArray.prototype.indexOf.call(kc,r)>=0){var h=this.getCustomVariablesSession();e?h[t]=s:delete h[t],this.setCustomVariableSession(h)}(!Pt(r)||csArray.prototype.indexOf.call(Cc,r)>=0)&&(e?this.yp[t]=s:delete this.yp[t]),Pt(r)&&csArray.prototype.indexOf.call(Ic,r)>=0&&(e?this.pp[t]=s:delete this.pp[t])}},t.prototype.getCustomVariablesSession=function(){var t=this.fw.get();if(!t)return{};var n=window.csJSON.parse(t);return null!==n&&_t(n)?n:{}},t.prototype.setCustomVariableSession=function(t){this.fw.set(window.csJSON.stringify(t))},t.prototype.removeCustomVariablesSession=function(){this.fw.remove()},t.prototype.removeCustomVariablesPage=function(){this.yp={}},t.prototype.getRequestParameters=function(){var t=this.getCustomVariablesSession();for(var n in this.pp)this.pp.hasOwnProperty(n)&&(this.yp[n]=this.pp[n]);for(var n in this.yp)this.yp.hasOwnProperty(n)&&(t[n]=this.yp[n]);if(window.csJSON.stringify(t).length<=2)return{};var i={cvars:this.mp(t)};return this.yp&&window.csJSON.stringify(this.yp).length>2&&(i.cvarp=this.mp(this.yp)),i},t.prototype.deleteNextPageOnlyCustomVariables=function(){if(Object.keys(this.pp).length>0)for(var t in this.pp)this.pp[t]===this.yp[t]&&(delete this.yp[t],delete this.pp[t])},t.prototype.mp=function(t){for(var n in t)if(t.hasOwnProperty(n)){var i=parseInt(n,10),r=t[n],s=r[0],e=r[1];o=1,h=20,(!(Ct(u=i)&&u>=o&&u<=h)||s.length>512||e.length>255)&&delete t[n]}var u,o,h,c=function(t){var n;for(n in t)return!1;return!0}(t)?[]:t;return window.csJSON.stringify(c)},t}(),Pc=["setCustomVariable"],Mc=function(){function t(t,n){this.Qh=t,this.un=n}return t.prototype.init=function(){var t=this;this.Qh.register(Pc,(function(n,i,r,s){t.un.set(n,i,r,s)}))},t.prototype.onAfterArtificialPageView=function(){this.un.deleteNextPageOnlyCustomVariables()},t.prototype.onAfterNaturalPageView=function(){this.un.deleteNextPageOnlyCustomVariables()},t.prototype.onOptout=function(){this.un.removeCustomVariablesSession()},t.prototype.onBeforeVisitorRenewal=function(){this.un.removeCustomVariablesSession(),this.un.removeCustomVariablesPage()},t}(),xc="_cs_id",Lc=/^(([a-z0-9\-])+(\.[0-9]+){6})(\.(None|Lax|X)\.(0|1))?(\.[0-1])?$/,Dc=function(){function t(t,n,i){this.D=t,this.Ew=n,this.bw=i}return t.prototype.onCookieToSet=function(t){this.Iw=t},t.prototype.onCookieToRemove=function(t){this._w=t},t.prototype.get=function(){var n;return(n=this.D.cookielessTrackingEnabled?this.bw.getItem(xc):this.Ew.get(xc))?t.fromString(n):null},t.prototype.set=function(n){var i,r=t.toString(n);if(this.D.cookielessTrackingEnabled)this.bw.setItem(xc,r);else{var s=new csDate(n.expires);this.Ew.set(xc,r,s),null===(i=this.Iw)||void 0===i||i.call(this,xc,r,s)}},t.prototype.remove=function(){var t;this.D.cookielessTrackingEnabled?this.bw.removeItem(xc):(this.Ew.delete(xc),null===(t=this._w)||void 0===t||t.call(this,xc))},t.prototype.handleSubdomainChange=function(){if(!this.D.cookielessTrackingEnabled){var t=this.get();t&&(t.allowSubdomains=this.D.allowSubdomains,this.D.allowSubdomains?this.Ew.delete(xc,dn.CURRENT_DOMAIN):this.Ew.delete(xc,this.Ew.getRootDomain()),this.set(t))}},t.fromString=function(t){var n=csString.prototype.split.call(t,"."),i=n[0],r=n[1],s=n[2],e=n[3],u=n[4],o=n[5],h=n[6],c=n[7];return{id:i,creationTimestamp:Number(r),visitsCount:Number(s),hitTimestamp:Number(e),lastVisitTimestamp:Number(u),appliedTrackingDraw:Number(o),expires:Number(h),allowSubdomains:void 0===c?void 0:!!Number(c)}},t.toString=function(t){return csArray.prototype.join.call([t.id,t.creationTimestamp,t.visitsCount,t.hitTimestamp,t.lastVisitTimestamp,t.appliedTrackingDraw,t.expires,t.allowSubdomains?1:0],".")},t.isValidVisitorString=function(t){return Lc.test(t)},t}(),Uc=function(){function t(t){this.U=t}return t.prototype.getUrlMaskingPattern=function(n){for(var i=[],r=0,s=csString.prototype.split.call(n,"/");r<s.length;r++){var e=s[r];it(e,t.gp)?csArray.prototype.push.call(i,{key:e,value:"CS_ANONYMIZED_".concat(csString.prototype.toUpperCase.call(csString.prototype.slice.call(e,1)))}):csArray.prototype.push.call(i,{key:e,value:null})}return i},t.prototype.anonymizeUrl=function(t,n){var i=this.U.anonymizePII(t);return i=this.U.anonymizeJwt(i),n.length>0?this.Ap(i,n):i},t.prototype.removeQueryString=function(t){var n=this.Sp(t),i=n.path;return""!==n.queryString?"".concat(i,"?"):i},t.prototype.Sp=function(t){var n=csString.prototype.indexOf.call(t,"?"),i="",r="";return-1!==n?(i=csString.prototype.slice.call(t,0,n),r=csString.prototype.slice.call(t,n,t.length)):i=t,{path:i,queryString:r}},t.prototype.Ap=function(t,n){for(var i=this.Sp(t),r=i.path,s=i.queryString,e=csString.prototype.split.call(r,"/"),u=0,o=n;u<o.length;u++){var h=o[u],c=this.Ep(e,h);if(null!==c)return"".concat(c).concat(s)}return t},t.prototype.Ep=function(n,i){if(n.length<i.length)return null;for(var r="",s=0;s<n.length;s+=1)if(s>=i.length)r+="".concat(n[s],"/");else if(it(i[s].key,t.gp))r+="".concat(i[s].value,"/");else{if(n[s]!==i[s].key)return null;r+="".concat(n[s],"/")}return csString.prototype.slice.call(r,0,-1)},t.gp=":",t}(),jc=function(){function t(t,n){this.ta=t,this.D=n}return t.prototype.getEventTargetPath=function(t){var n=Yn(t);return this.ta.getElementPath(n,X({dynamicIdRegex:this.D.dynamicIdRegex},this.D.pathComputationRules))},t.prototype.getEventTargetPathAndTargetLink=function(t){var n=Yn(t),i=this.ta.getElementPathAndFirstAnchorParent(n,X({dynamicIdRegex:this.D.dynamicIdRegex},this.D.pathComputationRules)),r=i.path,s=i.firstAnchorParent;return{path:r,targetLink:this.bp(s)?s.href:""}},t.prototype.hasValidEventTarget=function(t){var n=Yn(t);return this.ta.isValidElement(n)},t.prototype.getElementPath=function(t){return this.ta.getElementPath(t,X({dynamicIdRegex:this.D.dynamicIdRegex},this.D.pathComputationRules))},t.prototype.bp=function(t){var n;return null!==t&&t.hasAttribute("href")&&!it(null!==(n=t.getAttribute("href"))&&void 0!==n?n:"","#")},t}(),Hc=function(){function t(t){this.Va=t}return t.prototype.transformEvent=function(t,n){var i=this.Rp(t,n),r=this.Va.getElementPath(t);return this.Np(r,i)},t.prototype.Rp=function(t,n){if(function(t){return void 0!==t.x&&void 0!==t.y}(n)){var i=t.getBoundingClientRect();n.x=Math.round(i.left+n.x+or.windowOffsetX()),n.y=Math.round(i.top+n.y+or.windowOffsetY())}return n},t.prototype.Np=function(t,n){return Ue(n)&&(n.tgt="".concat(t).concat(dc).concat(n.tgt)),function(t){return void 0!==t.tgtHM}(n)&&(n.tgtHM="".concat(t).concat(dc).concat(n.tgtHM)),function(t){return void 0!==t.tgtLk}(n)&&(n.tgtLk="".concat(t).concat(dc).concat(n.tgtLk)),n},t}(),qc=function(){function t(t){this.Va=t}return t.prototype.transformEvent=function(t,n){var i=this.Va.getElementPath(t);return{iframePath:n.iframePath?"".concat(i).concat(dc).concat(n.iframePath):i,commands:n.commands}},t}(),zc=function(){function t(t){this.Va=t}return t.prototype.transformEvent=function(t,n){if(0===n.products.length)return n;var i=this.Va.getElementPath(t),r=csArray.prototype.map.call(n.products,(function(t){return X(X({},t),{targetPath:"".concat(i).concat(dc).concat(t.targetPath)})}));return X(X({},n),{products:r})},t}(),Bc=function(){function t(t){this.cn=t,this.Tp={clientX:2,clientY:3},this.Op={clientX:1,clientY:2},this.kp=[Sn.POINTER_DOWN,Sn.POINTER_MOVE,Sn.POINTER_UP],this.Cp=[Sn.TOUCH_START,Sn.TOUCH_MOVE,Sn.TOUCH_END]}return t.prototype.transformEvents=function(t,n){var i=this;if(!dr.isConnected(t))return n.events=csArray.prototype.filter.call(n.events,(function(t){return t.type!==Sn.VISIBILITY_CHANGE})),0===n.events.length||(on.warn("IframeRecordingEventsTransformer received event ".concat(tn.RecordingEvent,"\n        from disconnected iframe, content:").concat(csJSON.stringify(n.events))),n.events=[]),n;var r=this.cn.getId(t);if(void 0===r)return on.error("IframeRecordingEventsTransformer received event ".concat(tn.RecordingEvent,"\n        from unidentified iframe, content:").concat(csJSON.stringify(n.events))),n.events=[],n;var s=null;csArray.prototype.some.call(n.events,(function(t){return i.Ip(t)||i._p(t)}))&&(s=t.getBoundingClientRect());for(var e=0,u=n.events;e<u.length;e++){var o=u[e];this.Ip(o)?this.Pp(s,o):this._p(o)&&this.Mp(s,o),o.context=o.context&&o.context.length>0?"".concat(r,"/").concat(o.context):"".concat(r)}return n},t.prototype.Mp=function(t,n){this.xp(this.Op,t,n)},t.prototype.Pp=function(t,n){this.xp(this.Tp,t,n)},t.prototype.xp=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.Ip=function(t){return-1!==csArray.prototype.indexOf.call(this.kp,t.type)},t.prototype._p=function(t){return-1!==csArray.prototype.indexOf.call(this.Cp,t.type)},t}(),Fc=function(){function t(t){this.Lp=t}return t.prototype.start=function(){var t=this;this.Lp.onEvent((function(n){return t.Br(n)})),this.Lp.start()},t.prototype.stop=function(){this.Lp.stop()},t.prototype.Br=function(t){var n="Content Security Policy error. Violated directive: ".concat(t.violatedDirective," - Source file: ").concat(t.sourceFile);on.warn(n)},t}(),Vc=function(){function t(){var t=this;this.ov={boundElement:document,type:"securitypolicyviolation",listener:function(n){return t.securityPolicyViolationListener(n)}}}return t.prototype.start=function(){In(this.ov)},t.prototype.stop=function(){_n(this.ov)},t.prototype.onEvent=function(t){this.Bn=t},t.prototype.Dp=function(n){if(!n)return!1;var i=n.disposition;return It(n.sourceFile)&&csArray.prototype.some.call(t.jp,(function(t){return csString.prototype.indexOf.call(n.sourceFile,t)>0}))&&"report"!==i},t.prototype.securityPolicyViolationListener=function(t){this.Dp(t)&&this.Bn({violatedDirective:t.violatedDirective,sourceFile:t.sourceFile})},t.jp=["contentsquare","cdnssl.clicktale.net"],K([ln("Event handler type: securitypolicyviolation")],t.prototype,"securityPolicyViolationListener",null),t}(),Gc=function(){function t(){}return t.prototype.init=function(){this.Hp=new Fc(new Vc),this.Hp.start()},t.prototype.onOptout=function(){this.Hp.stop()},t}(),Wc=function(){function t(t,n,i,r){this.D=t,this.nt=n,this.j=i,this.Ae=r}return t.prototype.init=function(){var t,n,i,r,s,e,u,o,h,c,a,f,v,l,d,w,y,p,m,g,A,S,E,b,R,N,T,O,k,C,I,_,P,M=this;Ws.isSupported()&&Ws.setDigestSalt(this.D.projectId.toString()),this.Ae.schedule((function(){t=new kh(M.Ae),n=new At,i=new Uc(n),s=new fc(window.location,i),(r=new dn(M.D,s,M.nt)).init()})),this.Ae.schedule((function(){e=new Rc,u=new Nc,p=new Kh(window.location,r),(new Gc).init(),m=bc.create(on.warn);var n=(y=new On(m)).create("".concat(M.D.getQuotaServiceUri(),"/quota"),!0);(c=new lc(M.D,n,t,p,s)).init()})),this.Ae.schedule((function(){o=new Eh(M.D,r,e),h=new Rh(o,c)})),this.Ae.schedule((function(){a=new Dc(M.D,r,e),f=new yh(M.D,a,h,t),M.j.setContext(f,h),c.setVisitorService(f)})),this.Ae.schedule((function(){P=new jh(M.D,new _h(M.D,r,u),t),v=new Th(f,h,P),l=new Fh(M.D,r,e),d=new Vh(window.location,l),w=new Gh(d),g=new Nh(M.D,f,d);var i=new Zs;I=new jc(F,M.D),N=new Hc(I),T=new qc(I),O=new zc(I),k=new Bc(i),C=new wc(N,T,O,k),R=new uc([sc.UXA]),A=new rc(R,C),S=new Wh(s),E=new Yh(S,R);var o=new Oc(M.D,r,e);_=new _c(n,o),b=new Mc(R,_);new kn(f,h,d,_,M.D)})),this.Ae.schedule((function(){new dh(M.D,f,d,g,v,undefined,undefined,p).compute((function(e){M.Ae.schedule((function(){A.init();var o=new vc,c=new Uh(M.D,R,P,h,t),a=new Zh(M.D,r,u),v=new Qh(t,window.location,a),l=new ic(R,v),d=new hc(R,M.D);var p=new oc(M.D,f,h,undefined);e?new lh(p,m,f,h,t,R,A,M.D,l,v,c,P,n,I,i,s,d,o,C,_,b,S,E,M.Ae,y,undefined).start():new Hh(t,R,A,l,v,w,c).start()}))}))}))},t}();!function(t){var n,i="{domain}/tag/bridge.html?v={version}#{token}",r={loadBundle:function(t){var o=t.source,h=t.data;if(e(h)){var f=function(){var n,i,r,e=s("{domain}/tag/tag.bundle.js?v={version}",h);n=e,i=function(){return o.postMessage("csBundleLoaded",t.origin)},(r=document.createElement("script")).type="text/javascript",r.async=!0,r.src=n,r.onload=i,r.charset="utf-8",document.head.appendChild(r)};n=h.token,a(r.loadBundle),u(t.origin)?f():function(t,n){var r=s(i,t),e=function(t){var n=document.createElement("iframe");return n.src=t,n.id="content-square-bridge",n.setAttribute("style","display: none !important; visibility: hidden !important;"),n}(r),u=function(t){t.source===e.contentWindow&&"TOKEN_VALID"===t.data&&(a(u),e.remove(),n())};c(u),document.head.appendChild(e)}(h,f)}}};function s(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)}function e(t){return t&&"csBundleInjection"===t.type&&u(t.domain)&&h(t.version)&&o(t.token)}function u(t){return/^https?:\/\/[a-zA-Z0-9\.\-]+\.(content-square\.fr|contentsquare\.com|csq\.io)$/.test(t)}function o(t){return/^[a-zA-Z0-9]+$/.test(t)}function h(t){return/^[a-zA-Z0-9\.]+$/.test(t)}function c(t){window.addEventListener("message",t,!1)}function a(t){window.removeEventListener("message",t,!1)}t.getToken=function(){return n},t.isAuthorizedIncomingMessage=e,t.isAuthorizedDomain=u,t.isAuthorizedToken=o,t.isAuthorizedTagVersion=h,t.isActivable=function(){var t=window.opener||window.parent;return window!==t&&window.addEventListener},t.waitForBundleInjection=function(){c(r.loadBundle)},t.listen=c,t.removeListener=a}(Ac||(Ac={})),function(t){var n,i=window.opener||window.parent,r=[/^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$/],s={ping:function(t){"ping"===t.data&&e(t.origin)&&(n=t.origin,h(s.ping),o(s.insertMessageScript),u("".concat("utils.js","?cb=").concat((new csDate).getTime())))},insertMessageScript:c((function(t){var n=t.data;"string"==typeof n&&"ping"!==n&&(h(s.insertMessageScript),u(n))}))};function e(t){return csArray.prototype.some.call(r,(function(n){return n.test(t)}))}function u(t,i){var r=document.createElement("script");r.type="text/javascript",r.async=!0;var s=csString.prototype.replace.call(n,/^https?:/,"");r.src="".concat(s,"/").concat("tag","/").concat(t),r.onload=i,r.charset="utf-8",document.getElementsByTagName("head")[0].appendChild(r)}function o(t){window.addEventListener("message",t,!1)}function h(t){window.removeEventListener("message",t,!1)}function c(t){return function(i){i.origin===n&&t(i)}}t.getToken=function(){return Ac.getToken()},t.isActivable=function(){return window!==i&&window.addEventListener},t.isAuthorizedDomain=e,t.waitForConnection=function(){o(s.ping),Ac.waitForBundleInjection()},t.listen=o,t.removeListener=h,t.secureListener=c,t.post=function(t){n&&i.postMessage(t,n)}}(Sc||(Sc={}));var Jc,Yc=window.CSFrameCommunication||Sc,Xc=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Y(n,t),n.prototype.emitTrackingContextResultMessage=function(t){for(var n=0,i=this.listeners;n<i.length;n++){var r=i[n];r.onTrackingContextResultCallback&&r.onTrackingContextResultCallback(t)}},n.prototype.emitAfterPageViewCallback=function(t){for(var n=0,i=this.listeners;n<i.length;n++){var r=i[n];r.onAfterPageViewCallback&&r.onAfterPageViewCallback(t)}},n.prototype.emitIntegrationSessionKeyCallback=function(t){for(var n=0,i=this.listeners;n<i.length;n++){var r=i[n];r.onIntegrationSessionKeyCallback&&r.onIntegrationSessionKeyCallback(t)}},n.prototype.emitParentRecordingStatusChange=function(t){for(var n=0,i=this.listeners;n<i.length;n++){var r=i[n];r.onParentRecordingStatusChange&&r.onParentRecordingStatusChange(t)}},n.prototype.emitStartAnalytics=function(){for(var t=0,n=this.listeners;t<n.length;t++){var i=n[t];i.onStartAnalytics&&i.onStartAnalytics()}},n.prototype.emitStopAnalytics=function(){for(var t=0,n=this.listeners;t<n.length;t++){var i=n[t];i.onStopAnalytics&&i.onStopAnalytics()}},n.prototype.emitStartRecording=function(){for(var t=0,n=this.listeners;t<n.length;t++){var i=n[t];i.onStartRecording&&i.onStartRecording()}},n.prototype.emitStopRecording=function(){for(var t=0,n=this.listeners;t<n.length;t++){var i=n[t];i.onStopRecording&&i.onStopRecording()}},n}(Oh),Kc=["trackTransaction"],$c=function(){function t(t){this.qp=t}return t.prototype.init=function(){this.qp.register(Ne),this.qp.register(Pc),this.qp.register(eo),this.qp.register(uo),this.qp.register(so),this.qp.register(_e),this.qp.register(Pe),this.qp.register(Me),this.qp.register(xe),this.qp.register(Kc),this.qp.register(wo),this.qp.register(yo),this.qp.register(tc),this.qp.register(nc),this.qp.register(mo),this.qp.register(Co),this.qp.register(Io),this.qp.register(ee),this.qp.register(Mh),this.qp.register(xh),this.qp.register(Lh),this.qp.register(Dh)},t.prototype.onStartTracking=function(){this.qp.start()},t.prototype.onOptout=function(){this.qp.stop()},t}(),Zc=function(t){function n(n,i){var r=t.call(this)||this;return r.Qh=n,r.zp=i,r.zc=[],r}return Y(n,t),n.prototype.onStart=function(){this.commandsBatchReady()},n.prototype.onStop=function(){this.zc=[]},n.prototype.register=function(t){for(var n=this,i=function(t){r.Qh.register([t],(function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];return n.send(t,i)}))},r=this,s=0,e=t;s<e.length;s++){i(e[s])}},n.prototype.send=function(t,n){csArray.prototype.push.call(this.zc,{name:t,params:n}),this.isStarted&&this.commandsBatchReady()},n.prototype.commandsBatchReady=function(){if(0!==this.zc.length){var t={commands:this.zc};this.zp.sendToParent(tn.Commands,t),this.zc=[]}},K([ln("Commands.iframe.commandsBatch.send")],n.prototype,"send",null),K([Dr(),ln("send iframe commands batch")],n.prototype,"commandsBatchReady",null),n}(Mi),Qc=function(){function t(t){void 0===t&&(t=25),this.Bp=t,this.Fp=[]}return t.prototype.reset=function(){this.Fp=[]},t.prototype.getMessages=function(){return this.Fp},t.prototype.addMessage=function(t){this.Fp.length<this.Bp?csArray.prototype.push.call(this.Fp,t):this.Fp.length===this.Bp&&(this.Vp(t),csArray.prototype.push.call(this.Fp,t))},t.prototype.Vp=function(t){t.type=tn.ChildLogMessage,t.content={message:"Buffer is full, events might be missing.",errorCode:"",level:ut.warn}},t}(),ta=function(t){function n(n){var i=t.call(this)||this;return i.buffer=new Qc(n),i}return Y(n,t),n}(Mi),na=function(t){function n(n,i,r,s){var e=t.call(this,25)||this;return e.D=n,e.Dn=i,e.Gp=r,e.Wp=s,e.Jp=null,e.Yp={boundElement:window,type:"message",listener:function(t){return e.Tv(t)}},e}return Y(n,t),n.prototype.onStart=function(){In(this.Yp,!1),this.Xp()},n.prototype.onStop=function(){_n(this.Yp,!1),this.Jp&&(nn.closeChannelPort(this.Jp),this.Jp=null)},n.prototype.sendToParent=function(t,n){var i=this.buildChildBaseMessage(t,n);this.Kp(i)},n.prototype.Xp=function(){var t=this.buildChildBaseMessage(tn.Discovery);nn.sendPostMessage(window.parent,"*",t)},n.prototype.buildChildBaseMessage=function(t,n){var i=nn.buildBaseMessage(t,Qt.Child,this.D.projectId);return n&&(i.content=n),i},n.prototype.Kp=function(t){null!==this.Jp?nn.sendChannelMessage(this.Jp,t):this.buffer.addMessage(t)},n.prototype.$p=function(t,n){var i=this,r=nn.getNewChannelMessage();this.Jp=r.port1,this.Jp.onmessage=function(t){i.Fv(t)};var s=this.buildChildBaseMessage(tn.Discovery);s.id=n,nn.sendPostMessage(window.parent,t,s,[r.port2]),this.sendAllMessagesFromBuffer()},n.prototype.Fv=function(t){switch(t.data.type){case tn.TrackingContextResultMessage:this.Wp.emitTrackingContextResultMessage(t.data.content);break;case tn.IntegrationCallback:var n=t.data.content;n.initiator===Zt.AfterPageView?this.Wp.emitAfterPageViewCallback(n):n.initiator===Zt.GetSessionKey?this.Wp.emitIntegrationSessionKeyCallback(n):on.warn("Iframe child received unknown IntegrationCallback type from parent : ".concat(csJSON.stringify(t.data)));break;case tn.Stop:this.Dn.emitOptout();break;case tn.RecordingStatus:var i=t.data.content;this.Gp.setRecordingStatus(i),this.Wp.emitParentRecordingStatusChange(i);break;default:on.warn("Iframe child received unknown channelMessage type from parent : ".concat(csJSON.stringify(t.data)))}},n.prototype.Tv=function(t){if(null===this.Jp&&nn.isMessageValid(t,Qt.Parent,this.D.projectId,this.D.hostnames))switch(t.data.type){case tn.Stop:this.Dn.emitOptout();break;case tn.Discovery:if(!Ct(t.data.id)||t.data.id<0)return void on.warn("Iframe child received discovery without valid id from parent (".concat(t.origin,") : ").concat(csJSON.stringify(t.data)));this.$p(t.origin,t.data.id);break;default:on.warn("Iframe child received unknown postMessage type from parent (".concat(t.origin,") : ").concat(csJSON.stringify(t.data)))}},n.prototype.sendAllMessagesFromBuffer=function(){if(null!==this.Jp){for(var t=0,n=this.buffer.getMessages();t<n.length;t++){var i=n[t];nn.sendChannelMessage(this.Jp,i)}this.Zp(),this.buffer.reset()}},n.prototype.Zp=function(){var t=nn.buildBaseMessage(tn.EndOfBufferedMessages,Qt.Child,this.D.projectId);nn.sendChannelMessage(this.Jp,t)},n}(ta),ia=function(){function t(t){this.zp=t}return t.prototype.onStartTracking=function(){this.zp.start()},t.prototype.onOptout=function(){this.zp.stop()},t}(),ra=function(){function t(t,n,i,r){this.Pc=t,this.Lc=n,this.zp=i,this.Gp=r}return t.prototype.init=function(){var t=this;this.Pc.onChildMessage((function(n,i,r){return t.Lc.emitIframeEvent(n,i,r)})),this.Pc.setRecordingStatusCallback((function(){return t.Gp.getRecordingStatus()}))},t.prototype.onStartTracking=function(){this.Pc.start()},t.prototype.onOptout=function(){this.Pc.stop()},t.prototype.onIframeRecordingUserEvent=function(t){var n={events:t,containsUserEvent:!0};this.zp.sendToParent(tn.RecordingEvent,n)},t.prototype.onIframeRecordingBrowserEvent=function(t){var n={events:t,containsUserEvent:!1};this.zp.sendToParent(tn.RecordingEvent,n)},t.prototype.onIframeAnalysisEvent=function(t){this.zp.sendToParent(tn.AnalysisEvent,t)},t.prototype.onIframeJavascriptError=function(t){this.zp.sendToParent(tn.JavascriptError,t)},t.prototype.onIframeApiError=function(t){this.zp.sendToParent(tn.ApiError,t)},t.prototype.onIframeDetailedApiError=function(t){this.zp.sendToParent(tn.DetailedApiError,t)},t.prototype.onIframeEmerchandisingMessage=function(t){this.zp.sendToParent(tn.EmerchandisingMessage,t)},t.prototype.onIframeCommands=function(t){this.zp.sendToParent(tn.Commands,t)},t.prototype.onIframeIntegrationCallback=function(t){this.zp.sendToParent(tn.IntegrationCallback,t)},t.prototype.onTrackingContextRequestCallback=function(t){this.zp.sendToParent(tn.TrackingContextRequestMessage,t)},t.prototype.onIframeStaticResource=function(t){this.zp.sendToParent(tn.StaticResource,t)},t.prototype.onIframeCustomError=function(t){this.zp.sendToParent(tn.CustomError,t)},t.prototype.onTrackingContextResultCallback=function(t){this.Pc.sendToChildren(tn.TrackingContextResultMessage,t)},t.prototype.onAfterPageViewCallback=function(t){this.Pc.sendToChildren(tn.IntegrationCallback,t)},t.prototype.onIntegrationSessionKeyCallback=function(t){this.Pc.sendToChildren(tn.IntegrationCallback,t)},t.prototype.onParentRecordingStatusChange=function(t){this.Pc.sendToChildren(tn.RecordingStatus,t)},t}(),sa=function(t){function n(n,i,r,s,e,u,o,h){var c=t.call(this)||this;return c.ja=n,c.je=i,c.zp=r,c.Ja=s,c.Ya=e,c.Ka=u,c.$a=o,c.Za=h,c}return Y(n,t),n.prototype.init=function(){var t,n,i,r,s,e=this;this.ja.onEvent((function(t){return e.Br(t)})),this.je.onEvent((function(t){return e.Br(t)})),null===(t=this.Ja)||void 0===t||t.onEvent((function(t){return e.Br(t)})),null===(n=this.Ya)||void 0===n||n.onEvent((function(t){return e.Br(t)})),null===(i=this.Ka)||void 0===i||i.onEvent((function(t){return e.Br(t)})),null===(r=this.$a)||void 0===r||r.onEvent((function(t){return e.Br(t)})),null===(s=this.Za)||void 0===s||s.onEvent((function(t){return e.Br(t)}))},n.prototype.onStart=function(){var t,n,i,r,s;this.ja.start(),this.je.start(),null===(t=this.Ja)||void 0===t||t.start(),null===(n=this.Ya)||void 0===n||n.start(),null===(i=this.Ka)||void 0===i||i.start(),null===(r=this.$a)||void 0===r||r.start(),null===(s=this.Za)||void 0===s||s.start()},n.prototype.onStop=function(){var t,n,i,r,s;this.ja.stop(),this.je.stop(),null===(t=this.Ja)||void 0===t||t.stop(),null===(n=this.Ya)||void 0===n||n.stop(),null===(i=this.Ka)||void 0===i||i.stop(),null===(r=this.$a)||void 0===r||r.stop(),null===(s=this.Za)||void 0===s||s.stop()},n.prototype.Br=function(t){this.isStarted&&t.type!==le.RESIZE&&this.zp.sendToParent(tn.AnalysisEvent,t)},n}(Mi),ea=["webview:analytics:start"],ua=["webview:analytics:stop"],oa=function(){function t(t,n,i,r,s,e,u,o){this.D=t,this.Va=n,this.ha=i,this.zp=r,this.yt=s,this.Qp=e,this.Qh=u,this.je=o}return t.prototype.init=function(){var t=new $e(this.D,this.Va,this.ha),n=this.yt.isInWebViewContext()?{collectGestureVelocity:!0,collectGestureDistance:!0}:{collectGestureVelocity:!1,collectGestureDistance:!1},i=new Be(this.D,this.Va,this.je,n);this.tm=new sa(t,i,this.zp,undefined,undefined,undefined,undefined,undefined),this.tm.init(),this.yt.isInWebViewContext()&&this.nm()},t.prototype.onStartTracking=function(){this.tm.start()},t.prototype.onOptout=function(){this.tm.stop()},t.prototype.onStartAnalytics=function(){this.tm.start()},t.prototype.onStopAnalytics=function(){this.tm.stop()},t.prototype.nm=function(){var t=this;this.Qh.register(ea,(function(){return t.Qp.emitStartAnalytics()}),{disableApplyPending:!0}),this.Qh.register(ua,(function(){t.Qp.emitStopRecording(),t.Qp.emitStopAnalytics()}),{disableApplyPending:!0})},t}(),ha=function(t){function n(n,i,r,s,e,u,o,h,c,a){void 0===a&&(a=[]);var f=t.call(this)||this;return f.D=n,f.Xi=i,f.Ki=r,f.$i=s,f.Zi=e,f.Qi=u,f.ur=o,f.zp=h,f.ar=c,f.ki=a,f.im=!1,f.pr=new Pi,f.mr=!1,f.Wi=[],f.rm=!1,f.Sr=function(t){return f.tf(t)},f.Er=function(t){return f.br(t)},f.Ti=new Hi([new ur(csArray.prototype.filter.call(Q([f.Ki],f.ki,!0),(function(t){return t}))),new fr]),f.Mr=new sr(f.Ti),f.Mr.onEvent(f.Sr),f}return Y(n,t),n.prototype.init=function(){this.Lr()},n.prototype.Lr=function(){var t,n;this.Ki.onEvent(this.Sr),this.$i.onEvent(this.Er),this.Zi.onEvent(this.Er),this.Qi.onEvent(this.Er),null===(t=this.ur)||void 0===t||t.onTextNodeToEncrypt(this.Sr),null===(n=this.ar)||void 0===n||n.onEvent(this.Sr)},n.prototype.blockSendingEventsFromSerialization=function(){this.mr=!1},n.prototype.allowSendingEventsFromSerialization=function(){this.mr=!0},n.prototype.activateOnlineAssetsOnNextStart=function(){this.im=!0},n.prototype.getStaticResourceManagerStatus=function(){return this.ar?{supported:this.ar.isSupported(),onlineAssets:{activated:this.ar.isOnlineAssetsActivated(),enableOnNextStart:this.im}}:null},n.prototype.tf=function(t){this.sm(t),this.um()},n.prototype.br=function(t){this.om(t),this.um()},n.prototype.om=function(t){csArray.prototype.push.call(this.Wi,t),this.rm=!0},n.prototype.sm=function(t){csArray.prototype.push.call(this.Wi,t)},n.prototype.um=function(){if(this.mr){vi(this.ki,(function(t){var n;return null===(n=t.flushEvents)||void 0===n?void 0:n.call(t)}));var t={containsUserEvent:this.rm,events:this.Wi};this.zp.sendToParent(tn.RecordingEvent,t),this.Wi=[],this.rm=!1}},n.prototype.onStart=function(){var t;Zi.start(),this.ar&&this.im&&(this.ar.enableOnlineAssets(),this.im=!1),this.Xi.start(),this.Mr.start(),this.Ki.start(),this.Qi.start(),null===(t=this.ar)||void 0===t||t.start(),this.Zi.start(),this.D.emitDebugEvents&&this.pr.emit("replayRecordingStarted")},n.prototype.onStop=function(){var t;Zi.stop(),this.Xi.stop(),this.Mr.stop(),this.Ki.stop(),this.$i.stop(),this.Zi.stop(),this.Qi.stop(),null===(t=this.ar)||void 0===t||t.stop()},n.prototype.addInitialDom=function(t){for(var n=0;n<this.Wi.length;n+=1){if(this.Wi[n].date>=t.date)return csArray.prototype.splice.call(this.Wi,n,0,t),this.rm=!0,void this.um()}this.om(t),this.um()},n}(Mi),ca=function(){function t(t){this.D=t}return t.prototype.isReplayUnanonymizedAllowedByConsent=function(){return!this.D.consentRequired},t}(),aa=function(){function t(){}return t.isWebViewLocalAssetsSupported=function(){return"URL"in window},t}(),fa=["webview:replay:start"],va=["webview:replay:stop"],la=function(){function t(t,n,i,r,s,e,u,o){this.D=t,this.Un=n,this.Qp=i,this.As=r,this.hm=s,this.am=e,this.Qh=u,this.tt=o,this.fm=!1}return t.prototype.init=function(){var t=this,n=new ca(this.D),i=new Hs;if(this.ic=new Wh(this.tt),new Yh(this.ic,this.Qh).init(),this.zs=new Ns(n,this.D,this.tt,i),this.zs.init(),aa.isWebViewLocalAssetsSupported()){var r=function(n){t.vm(n)},s=function(t){return on.error("An error occurred while fetching a styleSheet: "+t)},e=new Set,u=function(t){return!e.has(t)},o=function(n){e.add(n.assetId),t.vm([n])};this.As.onAsset((function(n){t.lm(n)})),this.As.onStyleSheetFound((function(n){t.am.getStyleSheetAssets(n.assetId,r,s,u,o)}))}this.dm()},t.prototype.onStartRecording=function(){this.fm=!0,this.ic.isUrlExcludedForSessionReplay()||this.Qp.emitParentRecordingStatusChange({isRecording:!0,isMutationTrackerStarted:!0,PIISelectors:this.Un.getPIISelectors(),capturedElementSelector:Zi.getWhitelistedElementsSelector(),useAnonymization:this.zs.shouldUseAnonymization()})},t.prototype.onStopRecording=function(){this.fm=!1,this.Qp.emitParentRecordingStatusChange({isRecording:!1,isMutationTrackerStarted:!1})},t.prototype.onArtificialPageViewEnd=function(){this.Qp.emitParentRecordingStatusChange({isRecording:!1})},t.prototype.onAfterArtificialPageView=function(){this.Ci()&&!this.ic.isUrlExcludedForSessionReplay()&&this.Qp.emitParentRecordingStatusChange({isRecording:!0})},t.prototype.Ci=function(){return this.fm},t.prototype.dm=function(){var t=this;this.Qh.register(fa,(function(){t.Qp.emitStartAnalytics(),t.Qp.emitStartRecording()}),{disableApplyPending:!0}),this.Qh.register(va,(function(){return t.Qp.emitStopRecording()}),{disableApplyPending:!0})},t.prototype.lm=function(t){this.hm.sendToParent(tn.Assets,{assets:[t]})},t.prototype.vm=function(t){0!==t.length&&this.hm.sendToParent(tn.Assets,{assets:t})},t}(),da=function(){function t(t){this.wm=t}return t.prototype.getStyleSheetAssets=function(t,n,i,r,s){var e=this,u=[];if(Gr(t)){this.wm.getResourceContentText(t,(function(t,o){var h=e.ue(t,o);csArray.prototype.forEach.call(h,(function(t){csArray.prototype.push.call(u,t),Gr(t.assetId)&&r(t.assetId)&&(null==s||s(t),e.getStyleSheetAssets(t.assetId,n,i,r,s))})),n(u)}),(function(t){return i(t)}))}},t.prototype.ue=function(t,n){return this.ym(t,Br(n))},t.prototype.ym=function(t,n){return csArray.prototype.map.call(csArray.prototype.filter.call(csArray.prototype.filter.call(n,(function(t){return!Fr(t)})),(function(t){return!Vr(t)})),(function(n){return{assetId:Jt(n,t),assetBasePath:t,assetRawPath:n}}))},t}(),wa=function(){function t(){}return t.prototype.getResourceContentText=function(t,n,i){var r=this.pm((function(i){n(t,i.responseText)}),i);r.open("GET",t),r.send()},t.prototype.pm=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}(),ya=function(t){function n(n,i){var r=t.call(this)||this;return r.ar=n,r.zp=i,r}return Y(n,t),n.prototype.onStart=function(){this.ar.start()},n.prototype.onStop=function(){this.ar.stop()},n.prototype.init=function(){var t=this;this.ar.isStaticResourceManagerSupported()&&this.ar.sendStaticResource((function(n){return t.zp.sendToParent(tn.StaticResource,n)}))},n}(Mi),pa=function(){function t(t,n,i,r,s,e,u,o,h,c,a,f,v){this.D=t,this.U=n,this.cn=i,this.Un=r,this.je=s,this.Dn=e,this.zp=u,this.Gp=o,this.Qh=h,this.Wp=c,this.yt=a,this.Ae=f,this.tt=v}return t.prototype.init=function(){var t=this,n=[],i=new Nr;this.hc=new Mr(this.U,this.D),this.hc.init();var r=new Kr;csArray.prototype.push.call(n,r);var s=new ns(this.Ae,this.cn),e=[new Es,i,this.hc],u=null;!this.yt.isInWebViewContext()&&this.D.useStaticResourceManager&&(this.ar=new $s,this.ar.init(),csArray.prototype.push.call(n,this.ar),this.ar.isStaticResourceManagerSupported()&&(u=new Us(this.ar),csArray.prototype.push.call(e,u),this.gm=new ya(this.ar,this.zp),this.gm.init()));var o=new te(this.cn,this.ur);csArray.prototype.push.call(e,o);var h=new Os,c=new bs(this.cn,h);c.init(),csArray.prototype.push.call(n,c),c.isAdoptedStyleSheetsSupported()&&csArray.prototype.push.call(e,c);var a,f=new Qs;if(csArray.prototype.push.call(e,f),csArray.prototype.push.call(n,f),this.cc()){var v=new ds(this.cn);a=new As(e,this.cn,v)}else a=new Ss(e);if(this.xn=new Er(a,this.cn,this.hc,this.ur),this.$i=new oi(this.cn),this.$i.init(),this.Ki=new ki(this.xn,s,this.Dn,this.cn,this.Un),csArray.prototype.push.call(n,new br(this.cn,r,h)),csArray.prototype.push.call(n,new Qr(window)),csArray.prototype.push.call(n,new jr(window.location,this.U)),this.Am=new ha(this.D,h,this.Ki,this.$i,o,new rs(this.je,this.cn),this.ur,this.zp,this.ar,n),this.Qh.register(se,(function(){return t.Gp.getRecordingStatus().isRecording})),this.Qh.register(ie,(function(t){Zi.setWhitelistedElementsSelector(t)})),this.Qh.register(re,(function(n){t.Un.setPIISelectors(n)})),this.Qh.register(ue,(function(){return t.Am.getStaticResourceManagerStatus()})),s.init(),this.Am.init(),this.yt.isInWebViewContext()){var l=new da(new wa);this.Sm=new la(this.D,this.Un,this.Wp,r,this.zp,l,this.Qh,this.tt),this.Wp.addListener(this.Sm),this.Dn.addListener(this.Sm),this.Sm.init()}},t.prototype.onParentRecordingStatusChange=function(t){var n,i;t.PIISelectors&&this.Un.setPIISelectors(t.PIISelectors),t.capturedElementSelector&&Zi.setWhitelistedElementsSelector(t.capturedElementSelector),void 0!==t.useAnonymization&&this.xn.setAnonymization(t.useAnonymization),t.encryptionSelectors&&this.ur.setEncryptionSelectors(t.encryptionSelectors),t.activateOnlineAssetsOnNextStart&&this.Am.activateOnlineAssetsOnNextStart(),t.isRecording?(this.Am.start(),null===(n=this.gm)||void 0===n||n.start()):(this.Am.stop(),null===(i=this.gm)||void 0===i||i.stop()),t.isMutationTrackerStarted?this.Ki.start():this.Ki.stop()},t.prototype.onInitialDomStart=function(){this.Am.blockSendingEventsFromSerialization()},t.prototype.onInitialDomDone=function(t){this.$i.start(),this.Am.allowSendingEventsFromSerialization(),this.Am.addInitialDom(t)},t.prototype.cc=function(){return Ts.isAsyncSerializationSupported()&&this.D.asyncSerializerEnabled},t.prototype.wc=function(){return!!this.D.encryptionPublicKey&&this.D.encryptionPublicKeyId>0&&Ws.isSupported()},t.prototype.onOptout=function(){this.Am.stop()},t}(),ma=function(){function t(t,n){this.hm=t,this.Em=n}return t.prototype.init=function(){var t=this;this.hm.onWebViewEvent((function(n,i){t.Em.emitWebviewEventToBridge(n,i)}))},t.prototype.onStartTracking=function(){this.hm.start()},t.prototype.onOptout=function(){this.hm.stop()},t.prototype.onStartAnalytics=function(){this.Em.setAnalyticsStatus(!0)},t.prototype.onStopAnalytics=function(){this.Em.setAnalyticsStatus(!1)},t.prototype.onParentRecordingStatusChange=function(t){this.Em.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"}(Jc||(Jc={}));var ga,Aa=function(){function t(){this.bm=1}return t.prototype.transformEvent=function(t){switch(t.type){case le.TAP:return{version:this.bm,type:Jc.TAP,data:{path:t.tgt}};case le.DRAG:var n=t;return{version:this.bm,type:Jc.DRAG,data:{path:n.tgt,direction:n.fd,distance:n.distance,velocity:n.velocity}};case le.FLICK:var i=t;return{version:this.bm,type:Jc.FLICK,data:{path:i.tgt,direction:i.fd,distance:i.distance,velocity:i.velocity}};default:return null}},t}(),Sa=function(){function t(t,n,i,r){this.tt=t,this.ir=n,this.er=i,this.U=r,this.bm=1}return t.prototype.transformEvent=function(t,n){switch(t){case tn.ApiError:case tn.DetailedApiError:var i=this.er.anonymize(n);return{version:this.bm,data:i};case tn.JavascriptError:var r=X(X({},n),{pageUrl:this.tt.getAnonymizedUrl()});i=this.ir.anonymize(r);return{version:this.bm,data:X(X({},i),{date:bt()})};case tn.CustomError:var s=n;return s.message=this.U.anonymizePII(s.message),{version:this.bm,data:X(X({},s),{date:bt()})};default:return null}},t}();!function(t){var n=5,i=30,r=30;t.buildCustomErrorEvent=function(t,s,e){void 0===e&&(e=!1);var u={message:No.truncateStringWithEllipsis(t,300),errorType:"customError"};return(e||function(t){var i=Object.keys(t).length;return i>0&&i<=n}(s))&&(!function(t){for(var n in t){var s=t[n];if(t[n].length>r&&(s=No.truncateStringWithEllipsis(t[n],r),t[n]=s),n.length>i){var e=No.truncateStringWithEllipsis(n,i);delete t[n],t[e]=s}}}(s),u.attributes=s),u}}(ga||(ga={}));var Ea;!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(kt(t))return t}catch(t){on.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){if(window.CSJavascriptBridge.sendSREvent)for(var n=0,i=t.events;n<i.length;n++){var r=i[n];window.CSJavascriptBridge.sendSREvent(csJSON.stringify(r))}},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))}}(Ea||(Ea={}));var ba,Ra,Na=function(){function t(t,n,i,r,s,e,u,o){this.Rm=t,this.Nm=n,this.Tm=i,this.Om=r,this.km=s,this.Dn=e,this.er=u,this.tt=o,this.Cm=!0,this.Im=!1}return t.prototype.emitWebviewEventToBridge=function(t,n){return $(this,void 0,void 0,(function(){var i,r,s,e,u,o,h,c,a=this;return Z(this,(function(f){switch(f.label){case 0:switch(t){case tn.AnalysisEvent:return[3,1];case tn.RecordingEvent:return[3,2];case tn.ChildLogMessage:return[3,3];case tn.Commands:return[3,4];case tn.Assets:return[3,5];case tn.JavascriptError:return[3,7];case tn.ApiError:return[3,8];case tn.DetailedApiError:return[3,9]}return[3,10];case 1:return(i=this.Tm.transformEvent(n))&&Ea.sendAnalysisEvent(i),[3,11];case 2:return Ea.sendSREvent(n),[3,11];case 3:return Ea.sendLog(n),[3,11];case 4:return on.tryToExecute("SDKMessageUtils.sendMessage.sendCommandMessage: ".concat(n),(function(){a._m(n)}))(),[3,11];case 5:return s=(r=n).assets,e=r.serializationId,[4,this.km.getTransformedAssets(s,e)];case 6:return u=f.sent(),Ea.sendAssets(u,e),[3,11];case 7:return(o=this.Om.transformEvent(tn.JavascriptError,n))&&(this.Im&&Ea.sendNativeSREvent(X(X({},o),{type:Jc.JAVASCRIPT_ERROR_SR})),Ea.sendAnalysisEvent(X(X({},o),{type:Jc.JAVASCRIPT_ERROR_AN}))),[3,11];case 8:return(h=this.Om.transformEvent(tn.ApiError,n))&&Ea.sendAnalysisEvent(X(X({},h),{type:Jc.API_ERROR})),[3,11];case 9:return(c=this.Om.transformEvent(tn.DetailedApiError,n))&&Ea.sendNativeSREvent(X(X({},c),{type:Jc.DETAILED_API_ERROR})),[3,11];case 10:return[3,11];case 11:return[2]}}))}))},t.prototype.setAnalyticsStatus=function(t){this.Cm=t},t.prototype.setSessionReplayStatus=function(t){this.Im=t},t.prototype._m=function(t){for(var n=0,i=t.commands;n<i.length;n++){var r=i[n];switch(!0){case csArray.prototype.indexOf.call(nc,r.name)>=0:Ea.sendOptIn();break;case csArray.prototype.indexOf.call(tc,r.name)>=0:this.Dn.emitOptout(),Ea.sendOptOut();break;case csArray.prototype.indexOf.call(Ne,r.name)>=0:this.Pm(r);break;case csArray.prototype.indexOf.call(so,r.name)>=0:this.Mm(r);break;case csArray.prototype.indexOf.call(Pe,r.name)>=0:this.xm(r);break;case csArray.prototype.indexOf.call(Me,r.name)>=0:break;case csArray.prototype.indexOf.call(xe,r.name)>=0:this.Lm();break;case csArray.prototype.indexOf.call(Kc,r.name)>=0:this.xm(r),this.Lm();break;case csArray.prototype.indexOf.call(rh,r.name)>=0:this.er.addUrlMaskingPattern(r.params[0]);break;case csArray.prototype.indexOf.call(hh,r.name)>=0:this.Dm(r);break;default:on.warn("WebviewBridgeEventEmitter received an unknown command: ".concat(csJSON.stringify(r)))}}},t.prototype.Pm=function(t){if(1===t.params.length&&this.Cm){var n=t.params[0];if(Ee.isValid(n.key,n.value)){var i=this.Rm.anonymizePII(n.key),r=this.Rm.anonymizePII(n.value);Ea.sendDynamicVariable(i,r)}}},t.prototype.Mm=function(t){if(1===t.params.length&&this.Cm){var n=t.params[0];if(It(n)){var i={type:Jc.PAGE_VIEW,version:1,data:{url:n}};this.tt.overridePath(n),this.Dn.emitArtificialPageViewEnd(),Ea.sendAnalysisEvent(i),this.Dn.emitAfterArtificialPageView()}}},t.prototype.xm=function(t){if(1===t.params.length&&this.Cm){var n=t.params[0];n.value&&(n.revenue=n.value),this.Nm.addTransaction(n)}},t.prototype.Lm=function(){if(this.Cm){var t=this.Nm.getTransaction();Oe.isValid(t)&&(Ea.sendTransaction(t.id?t.id:null,t.revenue,t.currency?t.currency:""),this.Nm.clear())}},t.prototype.Dm=function(t){if(!(t.params.length<1)&&this.Cm){var n=t.params[0],i=t.params[1]||{};if(It(n)&&_t(i)){var r=ga.buildCustomErrorEvent(n,i),s=this.Om.transformEvent(tn.CustomError,r);s&&(this.Im&&Ea.sendNativeSREvent(X(X({},s),{type:Jc.CUSTOM_ERROR_SR})),Ea.sendAnalysisEvent(X(X({},s),{type:Jc.CUSTOM_ERROR_AN})))}}},t}(),Ta="LOCAL_ASSET",Oa="NONE",ka="ONLY_LOCAL_ASSETS",Ca="ALL",Ia=function(){function t(t){var n,i;this.Um=t,this.jm=new Set,this.Hm=Oa;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!==ka&&r!==Ca||(this.Hm=r)}catch(t){}}return t.prototype.setAssetProcessingMode=function(t){this.Hm=t},t.prototype.getTransformedAssets=function(t,n){return $(this,void 0,void 0,(function(){var i,r,s,e,u,o,h,c,a;return Z(this,(function(f){switch(f.label){case 0:if(this.Hm===Oa)return[2,t];i=[],r=0,s=t,f.label=1;case 1:if(!(r<s.length))return[3,8];if(e=s[r],u=e.assetId,o=this.qm(u),this.Hm!==Ca&&o!==Ta)return[3,6];if(h=u,this.zm(u,n)&&(h=this.Bm(u,n)),this.jm.has(h))return csArray.prototype.push.call(i,e),[3,7];f.label=2;case 2:return f.trys.push([2,4,,5]),[4,this.Um.getAssetContent(u)];case 3:return c=f.sent(),this.jm.has(h)?(csArray.prototype.push.call(i,e),[3,7]):(csArray.prototype.push.call(i,X(X({},e),{retrievedAssetContent:c})),this.jm.add(e.assetId),[3,5]);case 4:return a=f.sent(),on.error("an error occurred while getting data for asset: ".concat(h,": ").concat(a)),csArray.prototype.push.call(i,e),[3,5];case 5:return[3,7];case 6:csArray.prototype.push.call(i,e),f.label=7;case 7:return r++,[3,1];case 8:return[2,i]}}))}))},t.prototype.qm=function(t){var n=window.WEBVIEW_SERVER_URL||null;try{return"file:"===new csURL(t).protocol||n&&csString.prototype.startsWith.call(t,n)?Ta:"REMOTE_ASSET"}catch(n){on.error("Error constructing URL (".concat(t,'"): ').concat(n.message))}return"UNKNOWN_ASSET_TYPE"},t.prototype.zm=function(t,n){return n&&csString.prototype.endsWith.call(t,".css")||!1},t.prototype.Bm=function(t,n){return"".concat(t,"#").concat(n)},t}(),_a=function(){function t(){this.Fm=52428800,this.Vm=31457280,this.Gm=0,this.Wm=!1,this.Jm=new Map,this.ui=[]}return t.prototype.getAssetContent=function(t){return $(this,void 0,void 0,(function(){var n,i=this;return Z(this,(function(r){return(n=this.Jm.get(t))?[2,n]:[2,new Promise((function(n,r){csArray.prototype.push.call(i.ui,{assetUrl:t,successCallback:n,errorCallback:r}),i.Wm||i.Ym()}))]}))}))},t.prototype.Ym=function(){return $(this,void 0,void 0,(function(){var t,n,i=this;return Z(this,(function(r){switch(r.label){case 0:this.Wm=!0,t=function(){var t,r,s,e,u,o,h,c,a,f,v,l;return Z(this,(function(d){switch(d.label){case 0:if(t=csArray.prototype.shift.call(n.ui),r=t.assetUrl,s=t.successCallback,e=t.errorCallback,u=n.Jm.get(r))return s(u),[2,"continue"];d.label=1;case 1:return d.trys.push([1,3,,4]),[4,n.Xm("GET",r,"blob")];case 2:if(o=d.sent(),200===(h=o.target).status){if(c=h.getResponseHeader("Content-Type"),(a=Number(h.getResponseHeader("Content-Length")))&&Number(a)>n.Vm)return l="asset is too big, size = ".concat(a," bytes"),e(l),[2,"continue"];(f=new FileReader).onload=function(){var t={data:csString.prototype.split.call(f.result,"base64,")[1],mimeType:null!=c?c:""};i.Gm+=a,i.Gm>i.Fm&&(i.Gm=0,i.Jm.clear()),i.Jm.set(r,t),s(t)},f.onerror=function(){e("Error converting XHR response to base64")},f.readAsDataURL(h.response)}else e("error downloading ".concat(r,": ").concat(h.statusText));return[3,4];case 3:return v=d.sent(),l="Error downloading resource ".concat(r,": ").concat(v.message),e(l),[3,4];case 4:return[2]}}))},n=this,r.label=1;case 1:return this.ui.length>0?[5,t()]:[3,3];case 2:return r.sent(),[3,1];case 3:return this.Wm=!1,[2]}}))}))},t.prototype.Xm=function(t,n,i){return new Promise((function(r,s){var e=new XMLHttpRequest;e.open(t,n),e.responseType=i,e.onload=r,e.onerror=s,e.send()}))},t}(),Pa=function(){function t(t,n,i,r){this.zp=t,this.am=n,this.As=i,this.fs=r}return t.prototype.handleCommand=function(t){var n=t&&t.withAssets,i=[],r=new Set,s=new Set,e=[];n&&aa.isWebViewLocalAssetsSupported()?(this.As.onAsset((function(t){r.has(t.assetId)||(r.add(t.assetId),csArray.prototype.push.call(i,t))})),this.As.onStyleSheetFound((function(t){s.has(t.assetId)||(s.add(t.assetId),csArray.prototype.push.call(e,t))})),this.As.stop(),this.As.start()):(this.As.stop(),aa.isWebViewLocalAssetsSupported()||on.warn("Local asset is not supported on this browser"));var u=this.fs.serialize(document),o=csJSON.stringify(u);if(n){var h=sh.generate();return this.Km(i,e,h),csJSON.stringify({serializedDom:o,serializationId:h})}return o},t.prototype.Km=function(t,n,i){var r=this;0===n.length?this.vm(t,i):this.$m(t,n,i,(function(t,n){return r.vm(t,n)}))},t.prototype.$m=function(t,n,i,r){var s=this,e=0,u=0,o=new Set(csArray.prototype.map.call(t,(function(t){return t.assetId}))),h=function(t){return!o.has(t)},c=function(i){o.has(i.assetId)||(o.add(i.assetId),csArray.prototype.push.call(n,i),csArray.prototype.push.call(t,i))},a=function(s){for(var h=0,c=s;h<c.length;h++){var a=c[h];o.has(a.assetId)||(o.add(a.assetId),csArray.prototype.push.call(t,a))}++e+u===n.length&&r(t,i)},f=function(s){u++,on.error("An error occurred while fetching a styleSheet: "+s),e+u===n.length&&r(t,i)};csArray.prototype.forEach.call(n,(function(t){s.am.getStyleSheetAssets(t.assetId,a,f,h,c)}))},t.prototype.vm=function(t,n){this.zp.sendToParent(tn.Assets,{assets:t,serializationId:n})},t}(),Ma=function(){function t(){}return t.prototype.serializeShadowRootNode=function(t,n){var i;(null===(i=t.adoptedStyleSheets)||void 0===i?void 0:i.length)>0&&(n.adoptedStyleSheets=this.Zm(t.adoptedStyleSheets))},t.prototype.Zm=function(t){var n=this;return ci(t,(function(t){return n.Vu(t)}))},t.prototype.Vu=function(t){var n=[];try{n=ci(t.cssRules,(function(t){return t.cssText}))}catch(t){}return{cssRules:n}},t}(),xa=function(){function t(t){this.D=t,this.Qm=null,this.tg=this.Ac(),this.ng=this.Ec()}return t.prototype.isSdkTrackingContext=function(t){return Mt(t)&&_t(t)&&It(t.sessionKey)&&Ct(t.pageNumber)&&It(t.pageViewType)&&"boolean"==typeof t.isRecording},t.prototype.update=function(t){if(!this.isSdkTrackingContext(t))return on.warn("webViewTrackingContext.service received wrong sdkTrackingContext, content:".concat(csJSON.stringify(t))),void(this.Qm=null);this.Qm=X(X({},t),{recordingConsentState:Xs.NOT_NEEDED,projectId:this.tg,uxaDomain:this.ng})},t.prototype.getTrackingContext=function(){return this.Qm},t.prototype.Ac=function(){return this.D.projectId},t.prototype.Ec=function(){return this.D.uxaDomain},t}(),La=function(){function t(t){this.ig=t,this.Tc=[]}return t.prototype.handleCommand=function(t){if(xt(t)){this.Oc(t);var n=this.ig.getTrackingContext();null!==n&&this.kc(t,n)}},t.prototype.executeRegisteredCallbacks=function(t){var n=this,i=t.trackingContext;i&&csArray.prototype.map.call(this.Tc,(function(t){return n.kc(t,i)}))},t.prototype.Oc=function(t){csArray.prototype.push.call(this.Tc,t)},t.prototype.kc=function(t,n){setTimeout((function(){t(n)}))},t}(),Da=function(){function t(t,n){this.Pc=t,this.ig=n}return t.prototype.onIframeIntegrationCallback=function(t){var n=this.ig.getTrackingContext();null!==n&&(t.trackingContext=n,this.Pc.sendToChildren(tn.IntegrationCallback,t))},t}(),Ua=function(){function t(t){this.commandsService=t,this.jc=new ye}return t.prototype.registerChildCommands=function(){var t=this;this.commandsService.register(ge,(function(n){return t.jc.handleCommand(n,t.Dw)}))},t.prototype.onParentRecordingStatusChange=function(t){this.Dw={isRecording:t.isRecording,recordingStartTimestamp:t.recordingStartTimestamp||0,etrState:t.etrState||Ti.ETR_OFF},this.jc.executeCallbacks(this.Dw)},K([Dr()],t.prototype,"onParentRecordingStatusChange",null),t}(),ja=["serializeWebView","webview:serializeWebView"],Ha=["setAssetTransformerMode","webview:setAssetTransformerMode"],qa=["webview:onAfterScreenView"],za=function(t){function n(n,i,r,s,e,u,o){var h=t.call(this,n)||this;return h.commandsService=n,h.zp=i,h.Pc=r,h.km=s,h.rg=e,h.Lc=u,h.D=o,h}return Y(n,t),n.prototype.init=function(){this.ig=new xa(this.D),this.sg=new Da(this.Pc,this.ig),this.Lc.addListener(this.sg),this.eg=new La(this.ig);var t=new da(new wa),n=new Kr(!1),i=new vs([new Es,new Ma]);this.ug=new Pa(this.zp,t,n,i),this.yd()},n.prototype.onAfterPageViewCallback=function(t){this.eg.executeRegisteredCallbacks(t)},n.prototype.yd=function(){var n=this;t.prototype.registerChildCommands.call(this),this.commandsService.register(pe,(function(t){n.eg.handleCommand(t)})),this.commandsService.register(qa,(function(t){n.ig.update(t);var i=n.ig.getTrackingContext();null!==i&&n.rg.emitAfterPageViewCallback({initiator:Zt.AfterPageView,trackingContext:i})})),this.commandsService.register(ja,(function(t){return n.ug.handleCommand(t)})),this.commandsService.register(Ha,(function(t){t!==Oa&&t!==ka&&t!==Ca||n.km.setAssetProcessingMode(t)}))},n}(Ua),Ba=function(){function t(t){this.zp=t,this.Tc={}}return t.prototype.handleCommand=function(t){xt(t)&&this.Oc(t)},t.prototype.executeRegisteredCallbacks=function(t){var n=t.trackingContext;if(n)if(t.callbackId){var i=this.Tc[t.callbackId];i&&this.kc(i,n)}else for(var r in this.Tc)this.kc(this.Tc[r],n)},t.prototype.Oc=function(t){var n=st.integer(),i={callbackId:n,initiator:Zt.AfterPageView};this.Tc[n]=t,this.zp.sendToParent(tn.IntegrationCallback,i)},t.prototype.kc=function(t,n){setTimeout((function(){t(n)}))},t}(),Fa=function(){function t(t){this.zp=t,this.Cc={}}return t.prototype.handleCommand=function(t){_t(t)&&xt(t.callback)&&this._c(t.callback)},t.prototype.executePendingCallbacks=function(t){var n=t.trackingContext,i=t.callbackId;if(i&&n){var r=this.Cc[i];r&&(delete this.Cc[i],this.kc(r,n.sessionKey))}},t.prototype._c=function(t){var n=st.integer(),i={callbackId:n,initiator:Zt.GetSessionKey};this.Cc[n]=t,this.zp.sendToParent(tn.IntegrationCallback,i)},t.prototype.kc=function(t,n){setTimeout((function(){t(n)}))},t}(),Va=function(){function t(t,n){this.zp=t,this.Pc=n,this.og={}}return t.prototype.handleCommand=function(t,n){_t(t)&&xt(n)&&this._c(t,n)},t.prototype.executePendingCommand=function(t){var n=t.trackingContext,i=t.callbackId;if(i&&n)if(this.og[i]){var r=this.og[i],s=r[0],e=r[1];s&&(delete this.og[i],this.kc(n,s,e))}else this.Pc.sendToChildren(tn.TrackingContextResultMessage,t)},t.prototype._c=function(t,n){var i=st.integer();this.og[i]=[t,n],this.zp.sendToParent(tn.TrackingContextRequestMessage,{callbackId:i})},t.prototype.kc=function(t,n,i){setTimeout((function(){var r=ve(t,n);i(r)}))},t}(),Ga=function(t){function n(n,i,r){var s=t.call(this,n)||this;return s.commandsService=n,s.zp=i,s.Pc=r,s}return Y(n,t),n.prototype.init=function(){this.hg=new Ba(this.zp),this.cg=new Fa(this.zp),this.ag=new Va(this.zp,this.Pc),this.yd()},n.prototype.onAfterPageViewCallback=function(t){this.hg.executeRegisteredCallbacks(t)},n.prototype.onIntegrationSessionKeyCallback=function(t){this.cg.executePendingCallbacks(t)},n.prototype.onTrackingContextResultCallback=function(t){this.ag.executePendingCommand(t)},n.prototype.yd=function(){var n=this;t.prototype.registerChildCommands.call(this),this.commandsService.register(pe,(function(t){n.hg.handleCommand(t)})),this.commandsService.register(me,(function(t){return n.cg.handleCommand(t)})),this.commandsService.register(Ae,(function(t,i){n.ag.handleCommand(t,i)}))},n}(Ua),Wa=function(){function t(t,n,i,r,s,e,u,o){var h=this;this.Qp=t,this.Dn=n,this.D=i,this.zp=r,this.Gp=s,this.Qh=e,this.yt=u,this.Ae=o,this.Qd=function(){h.Qh.start(),h.nw.start()}}return t.prototype.start=function(){var t,n,i,r,s,e,u,o,h,c,a,f,v=this;this.Ae.schedule((function(){t=new jc(F,v.D),n=new fo(t),i=new At,c=new Uc(i),a=new fc(window.location,c),f=new Jo(on),r=new oa(v.D,t,n,v.zp,v.yt,v.Qp,v.Qh,f),v.Qp.addListener(r)})),this.Ae.schedule((function(){if(v.yt.isInWebViewContext()){var t=new Aa,n=new Vo(i,a),r=new Fo(c),s=new Sa(a,n,r,i),e=new _a;v.km=new Ia(e);var u=new Na(i,new Ce(i,null,null),t,s,v.km,v.Dn,r,a),o=new ma(v.zp,u);o.init(),v.Dn.addListener(o),v.Qp.addListener(o)}else{var h=new ia(v.zp);v.Dn.addListener(h)}})),this.Ae.schedule((function(){e=new Zs;var t=new vh;s=new jo(v.D,t)})),Ts.isRecordingSupported()&&this.Ae.schedule((function(){var t=new pa(v.D,i,e,s,f,v.Dn,v.zp,v.Gp,v.Qh,v.Qp,v.yt,v.Ae,a);v.Dn.addListener(t),v.Qp.addListener(t),t.init()})),this.Ae.schedule((function(){h=new zo(v.D);var n=new Hc(t),i=new qc(t),r=new zc(t),s=new Bc(e);o=new wc(n,i,r,s),u=new ra(h,o,v.zp,v.Gp)})),this.Ae.schedule((function(){o.addListener(u),v.Qp.addListener(u),v.Dn.addListener(u),v.Dn.addListener(r)})),this.Ae.schedule((function(){var t;t=v.yt.isInWebViewContext()?new za(v.Qh,v.zp,h,v.km,v.Qp,o,v.D):new Ga(v.Qh,v.zp,h),v.Qp.addListener(t),t.init()})),this.Ae.schedule((function(){u.init(),r.init()})),this.nw=new vo,this.Ae.schedule((function(){v.nw.onLoad((function(){v.Dn.emitStartTracking()})),v.Qd()}))},t}(),Ja=function(t){function n(n,i){void 0===i&&(i=500);var r=t.call(this,2500)||this;return r.Qp=n,r.fg=i,r.vg=!1,r.lg=void 0,r}return Y(n,t),n.prototype.onStart=function(){this.dg()},n.prototype.onStop=function(){this.buffer.reset(),this.wg&&window.clearInterval(this.wg)},n.prototype.sendToParent=function(t,n){var i;if(this.vg)null===(i=this.yg)||void 0===i||i.call(this,t,n);else if(void 0===this.lg){var r=this.buildChildBaseMessage(t,n);this.buffer.addMessage(r)}},n.prototype.onWebViewEvent=function(t){this.yg=t},n.prototype.sendAllMessagesFromBuffer=function(){for(var t,n=0,i=this.buffer.getMessages();n<i.length;n++){var r=i[n];null===(t=this.yg)||void 0===t||t.call(this,r.type,r.content)}this.buffer.reset()},n.prototype.pg=function(){for(var t,n=0,i=this.buffer.getMessages();n<i.length;n++){var r=i[n];r.type===tn.Commands&&(null===(t=this.yg)||void 0===t||t.call(this,r.type,r.content))}this.buffer.reset()},n.prototype.buildChildBaseMessage=function(t,n){return{type:t,content:n}},n.prototype.dg=function(){var t=this;this.vg=Ea.isCSJavascriptBridgeDefined(),this.vg?this.mg():this.wg=window.setInterval((function(){t.vg=Ea.isCSJavascriptBridgeDefined(),t.vg&&(t.mg(),window.clearInterval(t.wg))}),this.fg)},n.prototype.mg=function(){this.lg=Ea.getBridgeVersion(),null===this.lg?this.sendAllMessagesFromBuffer():this.lg>=2?(this.pg(),this.gg(),Ea.notifyIsReadyForTracking()):on.warn("bridge version ".concat(this.lg," is not supported"))},n.prototype.gg=function(){this.Qp.emitStopAnalytics()},n}(ta),Ya=function(){function t(){this.Ag=null}return t.prototype.getRecordingStatus=function(){return null===this.Ag?{isRecording:!1}:this.Ag},t.prototype.setRecordingStatus=function(t){this.Ag=t},t}(),Xa=function(t){function n(n,i){var r=t.call(this)||this;return r.rr=n,r.zp=i,r}return Y(n,t),n.prototype.onStart=function(){var t=this;this.rr.subscribe(n.Vr,(function(n){return t.Br(n)}))},n.prototype.onStop=function(){this.rr.unsubscribe(n.Vr)},n.prototype.Br=function(t){this.isStarted&&this.zp.sendToParent(tn.ApiError,t)},n.Vr="ChildApiErrorsService",n}(Mi),Ka=function(t){function n(n,i){var r=t.call(this)||this;return r.rr=n,r.zp=i,r}return Y(n,t),n.prototype.onStart=function(){var t=this;this.rr.subscribe(n.Vr,(function(n){return t.Br(n)}),{detailedEvent:!0})},n.prototype.onStop=function(){this.rr.unsubscribe(n.Vr)},n.prototype.Br=function(t){this.isStarted&&this.zp.sendToParent(tn.DetailedApiError,t)},n.Vr="ChildDetailedApiErrorsService",n}(Mi),$a=function(){function t(t,n,i){this.D=t,this.zp=n,this.qp=i}return t.prototype.init=function(){var t,n=new uh(this.D),i=new nh(n);var r=new th(this.D,i,t),s=new Qo(n),e=new $o(this.D,s,t);this.rr=new Bo(r,e),this.rr.excludeDomains([Do.CONTENTSQUARE,Do.CLICKTALE]),this.rr.excludeDomains([Do.FAKE_TRACKER]),this.Sg=new Xa(this.rr,this.zp),this.Eg=new Ka(this.rr,this.zp),this.rr.init(),this.yd()},t.prototype.yd=function(){this.qp.register(rh)},t.prototype.onStartTracking=function(){this.Sg.start()},t.prototype.onParentRecordingStatusChange=function(t){t.isRecording?this.Eg.start():this.Eg.stop()},t.prototype.onOptout=function(){this.Sg.stop(),this.Eg.stop()},t.prototype.onStartAnalytics=function(){this.Sg.start()},t.prototype.onStopAnalytics=function(){this.Sg.stop()},t}(),Za=function(t){function n(n,i){var r=t.call(this)||this;return r.nr=n,r.zp=i,r}return Y(n,t),n.prototype.onStart=function(){var t=this;this.nr.subscribe(n.Vr,(function(n){return t.Br(n)}))},n.prototype.onStop=function(){this.nr.unsubscribe(n.Vr)},n.prototype.Br=function(t){this.isStarted&&this.zp.sendToParent(tn.JavascriptError,t)},n.Vr="ChildJavaScriptErrorsService",n}(Mi),Qa=function(){function t(t,n,i){this.D=t,this.zp=n,this.qp=i}return t.prototype.init=function(){var t=new Mo;this.bg=new Za(t,this.zp),this.yd()},t.prototype.onStartTracking=function(){this.bg.start()},t.prototype.onOptout=function(){this.bg.stop()},t.prototype.onStartAnalytics=function(){this.bg.start()},t.prototype.onStopAnalytics=function(){this.bg.stop()},t.prototype.yd=function(){this.D.jsCustomErrorsEnabled&&!this.D.customErrors.enabled&&this.qp.register(hh)},t}(),tf=function(){function t(t,n,i){this.D=t,this.yt=n,this.Ae=i}return t.prototype.init=function(){var t,n,i,r,s,e,u,o=this;Ws.isSupported()&&Ws.setDigestSalt(this.D.projectId.toString()),this.Ae.schedule((function(){t=new kh(o.Ae),n=new Xc,i=new Ya;var e=[sc.UXA];o.yt.isInWebViewContext()?(window.cs_wvt=window.cs_wvt||[],csArray.prototype.push.call(e,sc.WVT),r=new Ja(n)):r=new na(o.D,t,i,n),s=new uc(e)})),this.Ae.schedule((function(){e=new Zc(s,r),u=new $c(e)})),this.Ae.schedule((function(){u.init()})),this.Ae.schedule((function(){if(o.D.apiErrors.enabled){var i=new $a(o.D,r,e);i.init(),t.addListener(i),n.addListener(i)}if(o.D.jsErrorsEnabled){var s=new Qa(o.D,r,e);s.init(),t.addListener(s),n.addListener(s)}})),this.Ae.schedule((function(){t.addListener(u)})),this.Ae.schedule((function(){new Wa(n,t,o.D,r,i,s,o.yt,o.Ae).start()}))},t}(),nf=function(){function t(t,n,i){this.D=t,this.yt=n,this.j=i}return t.prototype.start=function(){var t,n,i,r,s;if(!window.UXAnalytics){window.CSCurrentScript=document.currentScript;var e=new Xr(!!(null===(t=this.D.taskSchedulerOptions)||void 0===t?void 0:t.enabled),null===(n=this.D.taskSchedulerOptions)||void 0===n?void 0:n.maxProcessingTime,null===(i=this.D.taskSchedulerOptions)||void 0===i?void 0:i.waitDuration),u=new yn(this.yt,this.D);u.init();var o=new mn(this.D,u);if(this.yt.isTopWindowTracker()&&o.canTrack()){if((null===(r=window.CSProtectnativeFunctionsLogs)||void 0===r?void 0:r.Warning)&&on.warn("protectNativeFunctions failed: ".concat(window.CSProtectnativeFunctionsLogs.Warning)),null===(s=window.CSProtectnativeFunctionsLogs)||void 0===s?void 0:s.Critical)return void on.error("protectNativeFunctions failed: ".concat(window.CSProtectnativeFunctionsLogs.Critical));new Wc(this.D,u,this.j,e).init()}else if(!this.yt.isTopWindowTracker()&&o.canTrackInChild()){new tf(this.D,this.yt,e).init()}window.UXAnalytics={},!window.CSFrameCommunication&&Yc.isActivable()&&(window.CSFrameCommunication=Yc,Yc.waitForConnection())}},K([Wn("main.start"),ln("main.start")],t.prototype,"start",null),t}(),rf=function(){function t(){}return t.prototype.send=function(t,n,i){void 0===i&&(i=ut.warn);var r={message:t,errorCode:n,level:i};Ea.sendLog(r)},t}();try{var sf=new ct(window.CS_CONF);window._uxa=window._uxa||[],sf.processOptionOverrides(window._uxa);var ef=new at(window,sf);ef.init();var uf=new en;if(hn=on,on.computeIsActive(sf.validationRate),ef.isTopWindowTracker()){var of=new zt(sf,uf);on.setStrategy(of)}else if(ef.isInIframeContext()){var hf=new sn(sf);on.setStrategy(hf)}else if(ef.isInWebViewContext()){var cf=new rf;on.setStrategy(cf)}0,void 0===ba&&(ba=50),void 0===Ra&&(Ra=.1),Fn=on.isPerfLoggingActive()&&function(){var t;if(!(null===(t=window.performance)||void 0===t?void 0:t.mark))return!1;var n="isPerformanceMeasureSupported",i="".concat(n,"_a");return performance.mark(i),void 0!==performance.measure(n,i)}(),Fn&&(zn=ba,Bn=Ra),new nf(sf,ef,uf).start()}catch($n){}}();