rozmova-analytics 1.1.16 → 1.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +3 -1
- package/dist/index.esm.js +11 -12
- package/dist/index.js +11 -12
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -25,7 +25,9 @@ declare class Analytics {
|
|
|
25
25
|
}): Promise<void>;
|
|
26
26
|
setConfig(params?: GConfig): void;
|
|
27
27
|
getLastGConfig(): GConfig;
|
|
28
|
-
trackPageView(
|
|
28
|
+
trackPageView({ referrer }?: {
|
|
29
|
+
referrer?: string;
|
|
30
|
+
}): void;
|
|
29
31
|
setUser(userId: string, userParams: {
|
|
30
32
|
email: string;
|
|
31
33
|
name: string;
|
package/dist/index.esm.js
CHANGED
|
@@ -11991,7 +11991,6 @@ const UTM_KEYS = [
|
|
|
11991
11991
|
"utm_keyword",
|
|
11992
11992
|
];
|
|
11993
11993
|
const GOOGLE_ANALYTICS_ID = "G-GYQLL028VQ";
|
|
11994
|
-
const GA_SERVER_CONTAINER_URL = "https://tagging.clearly.help";
|
|
11995
11994
|
const MIXPANEL_TOKEN = "9d4cb3d213e5aee689ea01dd68ad65ad";
|
|
11996
11995
|
const CUSTOMER_IO_WRITE_KEY = "e6d009719c77519432c3";
|
|
11997
11996
|
const CLARITY_ID = "irbqmnlbwz";
|
|
@@ -12576,10 +12575,10 @@ class Analytics {
|
|
|
12576
12575
|
mixpanel.register(userProperties);
|
|
12577
12576
|
this.setConfig();
|
|
12578
12577
|
this.trackPageView();
|
|
12579
|
-
gtag("config", GOOGLE_ANALYTICS_ID, {
|
|
12580
|
-
|
|
12581
|
-
|
|
12582
|
-
});
|
|
12578
|
+
// gtag("config", GOOGLE_ANALYTICS_ID, {
|
|
12579
|
+
// user_properties: userProperties,
|
|
12580
|
+
// server_container_url: GA_SERVER_CONTAINER_URL,
|
|
12581
|
+
// });
|
|
12583
12582
|
initialLoginEvent(this.trackEvent.bind(this));
|
|
12584
12583
|
this.initialized = true;
|
|
12585
12584
|
this.processDataLayer();
|
|
@@ -12677,11 +12676,11 @@ class Analytics {
|
|
|
12677
12676
|
getLastGConfig() {
|
|
12678
12677
|
return this.lastGConfig;
|
|
12679
12678
|
}
|
|
12680
|
-
trackPageView() {
|
|
12679
|
+
trackPageView({ referrer } = {}) {
|
|
12681
12680
|
const eventParams = {
|
|
12682
12681
|
page_title: document.title,
|
|
12683
12682
|
page_location: window.location.href,
|
|
12684
|
-
page_referrer:
|
|
12683
|
+
page_referrer: referrer || document.referrer,
|
|
12685
12684
|
};
|
|
12686
12685
|
mixpanel.track("page_view", eventParams);
|
|
12687
12686
|
window.dataLayer.push({
|
|
@@ -12699,11 +12698,11 @@ class Analytics {
|
|
|
12699
12698
|
mixpanel.identify(userId);
|
|
12700
12699
|
mixpanel.people.set({ $email: email, name, phone, isB2B });
|
|
12701
12700
|
// GA user
|
|
12702
|
-
gtag("config", GOOGLE_ANALYTICS_ID, {
|
|
12703
|
-
|
|
12704
|
-
|
|
12705
|
-
|
|
12706
|
-
});
|
|
12701
|
+
// gtag("config", GOOGLE_ANALYTICS_ID, {
|
|
12702
|
+
// user_properties: this.getCommonParams(),
|
|
12703
|
+
// user_id: userId,
|
|
12704
|
+
// server_container_url: GA_SERVER_CONTAINER_URL,
|
|
12705
|
+
// });
|
|
12707
12706
|
// Customer IO user
|
|
12708
12707
|
window.analytics.identify(userId, userParams);
|
|
12709
12708
|
// store user id in cookies
|
package/dist/index.js
CHANGED
|
@@ -11993,7 +11993,6 @@ const UTM_KEYS = [
|
|
|
11993
11993
|
"utm_keyword",
|
|
11994
11994
|
];
|
|
11995
11995
|
const GOOGLE_ANALYTICS_ID = "G-GYQLL028VQ";
|
|
11996
|
-
const GA_SERVER_CONTAINER_URL = "https://tagging.clearly.help";
|
|
11997
11996
|
const MIXPANEL_TOKEN = "9d4cb3d213e5aee689ea01dd68ad65ad";
|
|
11998
11997
|
const CUSTOMER_IO_WRITE_KEY = "e6d009719c77519432c3";
|
|
11999
11998
|
const CLARITY_ID = "irbqmnlbwz";
|
|
@@ -12578,10 +12577,10 @@ class Analytics {
|
|
|
12578
12577
|
mixpanel.register(userProperties);
|
|
12579
12578
|
this.setConfig();
|
|
12580
12579
|
this.trackPageView();
|
|
12581
|
-
gtag("config", GOOGLE_ANALYTICS_ID, {
|
|
12582
|
-
|
|
12583
|
-
|
|
12584
|
-
});
|
|
12580
|
+
// gtag("config", GOOGLE_ANALYTICS_ID, {
|
|
12581
|
+
// user_properties: userProperties,
|
|
12582
|
+
// server_container_url: GA_SERVER_CONTAINER_URL,
|
|
12583
|
+
// });
|
|
12585
12584
|
initialLoginEvent(this.trackEvent.bind(this));
|
|
12586
12585
|
this.initialized = true;
|
|
12587
12586
|
this.processDataLayer();
|
|
@@ -12679,11 +12678,11 @@ class Analytics {
|
|
|
12679
12678
|
getLastGConfig() {
|
|
12680
12679
|
return this.lastGConfig;
|
|
12681
12680
|
}
|
|
12682
|
-
trackPageView() {
|
|
12681
|
+
trackPageView({ referrer } = {}) {
|
|
12683
12682
|
const eventParams = {
|
|
12684
12683
|
page_title: document.title,
|
|
12685
12684
|
page_location: window.location.href,
|
|
12686
|
-
page_referrer:
|
|
12685
|
+
page_referrer: referrer || document.referrer,
|
|
12687
12686
|
};
|
|
12688
12687
|
mixpanel.track("page_view", eventParams);
|
|
12689
12688
|
window.dataLayer.push({
|
|
@@ -12701,11 +12700,11 @@ class Analytics {
|
|
|
12701
12700
|
mixpanel.identify(userId);
|
|
12702
12701
|
mixpanel.people.set({ $email: email, name, phone, isB2B });
|
|
12703
12702
|
// GA user
|
|
12704
|
-
gtag("config", GOOGLE_ANALYTICS_ID, {
|
|
12705
|
-
|
|
12706
|
-
|
|
12707
|
-
|
|
12708
|
-
});
|
|
12703
|
+
// gtag("config", GOOGLE_ANALYTICS_ID, {
|
|
12704
|
+
// user_properties: this.getCommonParams(),
|
|
12705
|
+
// user_id: userId,
|
|
12706
|
+
// server_container_url: GA_SERVER_CONTAINER_URL,
|
|
12707
|
+
// });
|
|
12709
12708
|
// Customer IO user
|
|
12710
12709
|
window.analytics.identify(userId, userParams);
|
|
12711
12710
|
// store user id in cookies
|
package/dist/index.umd.js
CHANGED
|
@@ -28,4 +28,4 @@
|
|
|
28
28
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
29
29
|
PERFORMANCE OF THIS SOFTWARE.
|
|
30
30
|
***************************************************************************** */
|
|
31
|
-
function e(e,t,r,n){return new(r||(r=Promise))((function(t,o){function i(e){try{a(n.next(e))}catch(e){o(e)}}function s(e){try{a(n.throw(e))}catch(e){o(e)}}function a(e){var n;e.done?t(e.value):(n=e.value,n instanceof r?n:new r((function(e){e(n)}))).then(i,s)}a((n=n.apply(e,[])).next())}))}for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r="undefined"==typeof Uint8Array?[]:new Uint8Array(256),n=0;n<64;n++)r[t.charCodeAt(n)]=n;var o=function(e){var r,n=new Uint8Array(e),o=n.length,i="";for(r=0;r<o;r+=3)i+=t[n[r]>>2],i+=t[(3&n[r])<<4|n[r+1]>>4],i+=t[(15&n[r+1])<<2|n[r+2]>>6],i+=t[63&n[r+2]];return o%3==2?i=i.substring(0,i.length-1)+"=":o%3==1&&(i=i.substring(0,i.length-2)+"=="),i};const i=new Map,s=new Map,a=self;a.onmessage=function(t){return e(this,0,void 0,(function*(){if(!("OffscreenCanvas"in globalThis))return a.postMessage({id:t.data.id});{const{id:r,bitmap:n,width:c,height:l,dataURLOptions:u}=t.data,p=function(t,r,n){return e(this,0,void 0,(function*(){const e=`${t}-${r}`;if("OffscreenCanvas"in globalThis){if(s.has(e))return s.get(e);const i=new OffscreenCanvas(t,r);i.getContext("2d");const a=yield i.convertToBlob(n),c=yield a.arrayBuffer(),l=o(c);return s.set(e,l),l}return""}))}(c,l,u),d=new OffscreenCanvas(c,l);d.getContext("2d").drawImage(n,0,0),n.close();const h=yield d.convertToBlob(u),f=h.type,m=yield h.arrayBuffer(),g=o(m);if(!i.has(r)&&(yield p)===g)return i.set(r,g),a.postMessage({id:r});if(i.get(r)===g)return a.postMessage({id:r});a.postMessage({id:r,type:f,base64:g,width:c,height:l}),i.set(r,g)}}))}}()},function(e){return Qe=Qe||function(e){var t=function(e){var t=e.toString().split("\n");t.pop(),t.shift();for(var r=t[0].search(/\S/),n=/(['"])__worker_loader_strict__(['"])/g,o=0,i=t.length;o<i;++o)t[o]=t[o].substring(r).replace(n,"$1use strict$2")+"\n";return t}(e),r=new Blob(t,{type:"application/javascript"});return URL.createObjectURL(r)}(Xe),new Worker(Qe,e)});class Ze{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=(e,t)=>{!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)};const{sampling:t="all",win:r,blockClass:n,blockSelector:o,recordCanvas:i,dataURLOptions:s}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,i&&"all"===t&&this.initCanvasMutationObserver(r,n,o),i&&"number"==typeof t&&this.initCanvasFPSObserver(t,r,n,o,{dataURLOptions:s})}initCanvasFPSObserver(e,t,r,n,o){const i=Je(t,r,n,!0),s=new Map,a=new Ke;a.onmessage=e=>{const{id:t}=e.data;if(s.set(t,!1),!("base64"in e.data))return;const{base64:r,type:n,width:o,height:i}=e.data;this.mutationCb({id:t,type:le["2D"],commands:[{property:"clearRect",args:[0,0,o,i]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:n}]},0,0]}]})};const c=1e3/e;let l,u=0;const p=e=>{u&&e-u<c||(u=e,(()=>{const e=[];return t.document.querySelectorAll("canvas").forEach((t=>{J(t,r,n,!0)||e.push(t)})),e})().forEach((e=>je(this,0,void 0,(function*(){var t;const r=this.mirror.getId(e);if(s.get(r))return;if(0===e.width||0===e.height)return;if(s.set(r,!0),["webgl","webgl2"].includes(e.__context)){const r=e.getContext(e.__context);!1===(null===(t=null==r?void 0:r.getContextAttributes())||void 0===t?void 0:t.preserveDrawingBuffer)&&r.clear(r.COLOR_BUFFER_BIT)}const n=yield createImageBitmap(e);a.postMessage({id:r,bitmap:n,width:e.width,height:e.height,dataURLOptions:o.dataURLOptions},[n])}))))),l=requestAnimationFrame(p)};l=requestAnimationFrame(p),this.resetObservers=()=>{i(),cancelAnimationFrame(l)}}initCanvasMutationObserver(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const n=Je(e,t,r,!1),o=function(e,t,r,n){const o=[],i=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const s of i)try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[s])continue;const i=B(t.CanvasRenderingContext2D.prototype,s,(function(o){return function(...i){return J(this.canvas,r,n,!0)||setTimeout((()=>{const r=Ge(i,t,this);e(this.canvas,{type:le["2D"],property:s,args:r})}),0),o.apply(this,i)}}));o.push(i)}catch(r){const n=z(t.CanvasRenderingContext2D.prototype,s,{set(t){e(this.canvas,{type:le["2D"],property:s,args:[t],setter:!0})}});o.push(n)}return()=>{o.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,r),i=function(e,t,r,n){const o=[];return o.push(...Ye(t.WebGLRenderingContext.prototype,le.WebGL,e,r,n,0,t)),void 0!==t.WebGL2RenderingContext&&o.push(...Ye(t.WebGL2RenderingContext.prototype,le.WebGL2,e,r,n,0,t)),()=>{o.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,r,this.mirror);this.resetObservers=()=>{n(),o(),i()}}startPendingCanvasMutationFlusher(){requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}startRAFTimestamping(){const e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach(((e,t)=>{const r=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,r)})),requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(e);if(!r||-1===t)return;const n=r.map((e=>{const t=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["type"]);return t})),{type:o}=r[0];this.mutationCb({id:t,type:o,commands:n}),this.pendingCanvasMutations.delete(e)}}class et{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new te,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const r={id:t,styleIds:[]},n=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),n.push({styleId:e,rules:Array.from(t.rules||CSSRule,((e,t)=>({rule:c(e),index:t})))})),r.styleIds.push(e)}n.length>0&&(r.styles=n),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class tt{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){requestAnimationFrame((()=>{this.clear(),this.loop&&this.periodicallyClear()}))}inOtherBuffer(e,t){const r=this.nodeMap.get(e);return r&&Array.from(r).some((e=>e!==t))}add(e,t){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}function rt(e){return Object.assign(Object.assign({},e),{timestamp:$()})}let nt,ot,it,st=!1;const at=new l;function ct(e={}){const{emit:t,checkoutEveryNms:r,checkoutEveryNth:n,blockClass:o="rr-block",blockSelector:i=null,ignoreClass:s="rr-ignore",ignoreSelector:a=null,maskTextClass:c="rr-mask",maskTextSelector:u=null,inlineStylesheet:p=!0,maskAllInputs:d,maskInputOptions:h,slimDOMOptions:f,maskInputFn:m,maskTextFn:g,hooks:_,packFn:y,sampling:v={},dataURLOptions:b={},mousemoveWait:k,recordDOM:S=!0,recordCanvas:w=!1,recordCrossOriginIframes:I=!1,recordAfter:C=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:M=!1,collectFonts:x=!1,inlineImages:E=!1,plugins:O,keepIframeSrcFn:T=()=>!1,ignoreCSSAttributes:R=new Set([]),errorHandler:L}=e;be(L);const N=!I||window.parent===window;let D=!1;if(!N)try{window.parent.document&&(D=!1)}catch(e){D=!0}if(N&&!t)throw new Error("emit function is required");void 0!==k&&void 0===v.mousemove&&(v.mousemove=k),at.reset();const A=!0===d?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==h?h:{password:!0},F=!0===f||"all"===f?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===f,headMetaDescKeywords:"all"===f}:f||{};let j;!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let U=0;const z=e=>{for(const t of O||[])t.eventProcessor&&(e=t.eventProcessor(e));return y&&!D&&(e=y(e)),e};nt=(e,o)=>{var i;if(!(null===(i=we[0])||void 0===i?void 0:i.isFrozen())||e.type===ie.FullSnapshot||e.type===ie.IncrementalSnapshot&&e.data.source===se.Mutation||we.forEach((e=>e.unfreeze())),N)null==t||t(z(e),o);else if(D){const t={type:"rrweb",event:z(e),origin:window.location.origin,isCheckout:o};window.parent.postMessage(t,"*")}if(e.type===ie.FullSnapshot)j=e,U=0;else if(e.type===ie.IncrementalSnapshot){if(e.data.source===se.Mutation&&e.data.isAttachIframe)return;U++;const t=n&&U>=n,o=r&&e.timestamp-j.timestamp>r;(t||o)&&ot(!0)}};const B=e=>{nt(rt({type:ie.IncrementalSnapshot,data:Object.assign({source:se.Mutation},e)}))},$=e=>nt(rt({type:ie.IncrementalSnapshot,data:Object.assign({source:se.Scroll},e)})),V=e=>nt(rt({type:ie.IncrementalSnapshot,data:Object.assign({source:se.CanvasMutation},e)})),J=new et({mutationCb:B,adoptedStyleSheetCb:e=>nt(rt({type:ie.IncrementalSnapshot,data:Object.assign({source:se.AdoptedStyleSheet},e)}))}),Y=new Pe({mirror:at,mutationCb:B,stylesheetManager:J,recordCrossOriginIframes:I,wrappedEmit:nt});for(const e of O||[])e.getMirror&&e.getMirror({nodeMirror:at,crossOriginIframeMirror:Y.crossOriginIframeMirror,crossOriginIframeStyleMirror:Y.crossOriginIframeStyleMirror});const X=new tt;it=new Ze({recordCanvas:w,mutationCb:V,win:window,blockClass:o,blockSelector:i,mirror:at,sampling:v.canvas,dataURLOptions:b});const Q=new Fe({mutationCb:B,scrollCb:$,bypassOptions:{blockClass:o,blockSelector:i,maskTextClass:c,maskTextSelector:u,inlineStylesheet:p,maskInputOptions:A,dataURLOptions:b,maskTextFn:g,maskInputFn:m,recordCanvas:w,inlineImages:E,sampling:v,slimDOMOptions:F,iframeManager:Y,stylesheetManager:J,canvasManager:it,keepIframeSrcFn:T,processedNodeManager:X},mirror:at});ot=(e=!1)=>{if(!S)return;nt(rt({type:ie.Meta,data:{href:window.location.href,width:G(),height:H()}}),e),J.reset(),Q.init(),we.forEach((e=>e.lock()));const t=function(e,t){const{mirror:r=new l,blockClass:n="rr-block",blockSelector:o=null,maskTextClass:i="rr-mask",maskTextSelector:s=null,inlineStylesheet:a=!0,inlineImages:c=!1,recordCanvas:u=!1,maskAllInputs:p=!1,maskTextFn:d,maskInputFn:h,slimDOM:f=!1,dataURLOptions:m,preserveWhiteSpace:g,onSerialize:_,onIframeLoad:y,iframeLoadTimeout:v,onStylesheetLoad:b,stylesheetLoadTimeout:k,keepIframeSrcFn:S=()=>!1}=t;return q(e,{doc:e,mirror:r,blockClass:n,blockSelector:o,maskTextClass:i,maskTextSelector:s,skipChild:!1,inlineStylesheet:a,maskInputOptions:!0===p?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===p?{password:!0}:p,maskTextFn:d,maskInputFn:h,slimDOMOptions:!0===f||"all"===f?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===f,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===f?{}:f,dataURLOptions:m,inlineImages:c,recordCanvas:u,preserveWhiteSpace:g,onSerialize:_,onIframeLoad:y,iframeLoadTimeout:v,onStylesheetLoad:b,stylesheetLoadTimeout:k,keepIframeSrcFn:S,newlyAddedElement:!1})}(document,{mirror:at,blockClass:o,blockSelector:i,maskTextClass:c,maskTextSelector:u,inlineStylesheet:p,maskAllInputs:A,maskTextFn:g,slimDOM:F,dataURLOptions:b,recordCanvas:w,inlineImages:E,onSerialize:e=>{K(e,at)&&Y.addIframe(e),Z(e,at)&&J.trackLinkElement(e),ee(e)&&Q.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Y.attachIframe(e,t),Q.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{J.attachLinkElement(e,t)},keepIframeSrcFn:T});if(!t)return console.warn("Failed to snapshot the document");nt(rt({type:ie.FullSnapshot,data:{node:t,initialOffset:W(window)}}),e),we.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&J.adoptStyleSheets(document.adoptedStyleSheets,at.getId(document))};try{const e=[],t=e=>{var t;return Se(Ne)({mutationCb:B,mousemoveCb:(e,t)=>nt(rt({type:ie.IncrementalSnapshot,data:{source:t,positions:e}})),mouseInteractionCb:e=>nt(rt({type:ie.IncrementalSnapshot,data:Object.assign({source:se.MouseInteraction},e)})),scrollCb:$,viewportResizeCb:e=>nt(rt({type:ie.IncrementalSnapshot,data:Object.assign({source:se.ViewportResize},e)})),inputCb:e=>nt(rt({type:ie.IncrementalSnapshot,data:Object.assign({source:se.Input},e)})),mediaInteractionCb:e=>nt(rt({type:ie.IncrementalSnapshot,data:Object.assign({source:se.MediaInteraction},e)})),styleSheetRuleCb:e=>nt(rt({type:ie.IncrementalSnapshot,data:Object.assign({source:se.StyleSheetRule},e)})),styleDeclarationCb:e=>nt(rt({type:ie.IncrementalSnapshot,data:Object.assign({source:se.StyleDeclaration},e)})),canvasMutationCb:V,fontCb:e=>nt(rt({type:ie.IncrementalSnapshot,data:Object.assign({source:se.Font},e)})),selectionCb:e=>{nt(rt({type:ie.IncrementalSnapshot,data:Object.assign({source:se.Selection},e)}))},customElementCb:e=>{nt(rt({type:ie.IncrementalSnapshot,data:Object.assign({source:se.CustomElement},e)}))},blockClass:o,ignoreClass:s,ignoreSelector:a,maskTextClass:c,maskTextSelector:u,maskInputOptions:A,inlineStylesheet:p,sampling:v,recordDOM:S,recordCanvas:w,inlineImages:E,userTriggeredOnInput:M,collectFonts:x,doc:e,maskInputFn:m,maskTextFn:g,keepIframeSrcFn:T,blockSelector:i,slimDOMOptions:F,dataURLOptions:b,mirror:at,iframeManager:Y,stylesheetManager:J,shadowDomManager:Q,processedNodeManager:X,canvasManager:it,ignoreCSSAttributes:R,plugins:(null===(t=null==O?void 0:O.filter((e=>e.observer)))||void 0===t?void 0:t.map((e=>({observer:e.observer,options:e.options,callback:t=>nt(rt({type:ie.Plugin,data:{plugin:e.name,payload:t}}))}))))||[]},_)};Y.addLoadListener((r=>{try{e.push(t(r.contentDocument))}catch(e){console.warn(e)}}));const r=()=>{ot(),e.push(t(document)),st=!0};return"interactive"===document.readyState||"complete"===document.readyState?r():(e.push(P("DOMContentLoaded",(()=>{nt(rt({type:ie.DomContentLoaded,data:{}})),"DOMContentLoaded"===C&&r()}))),e.push(P("load",(()=>{nt(rt({type:ie.Load,data:{}})),"load"===C&&r()}),window))),()=>{e.forEach((e=>e())),X.destroy(),st=!1,ke()}}catch(e){console.warn(e)}}ct.addCustomEvent=(e,t)=>{if(!st)throw new Error("please add custom event after start recording");nt(rt({type:ie.Custom,data:{tag:e,payload:t}}))},ct.freezePage=()=>{we.forEach((e=>e.freeze()))},ct.takeFullSnapshot=e=>{if(!st)throw new Error("please take full snapshot after start recording");ot(e)},ct.mirror=at;var lt,ut=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(ut||{}),pt=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(pt||{}),dt={DEBUG:!1,LIB_VERSION:"2.58.0"};if("undefined"==typeof window){var ht={hostname:""};lt={navigator:{userAgent:"",onLine:!0},document:{location:ht,referrer:""},screen:{width:0,height:0},location:ht}}else lt=window;var ft,mt,gt,_t=lt.setImmediate,yt=Object.prototype.toString,vt=void 0!==_t?function(e){return _t(e)}:setTimeout;try{Object.defineProperty({},"x",{}),ft=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(e){ft=function(e,t,r){return e[t]=r,e}}function bt(e,t){gt.add(e,t),mt||(mt=vt(gt.drain))}function kt(e){var t,r=typeof e;return null===e||"object"!==r&&"function"!==r||(t=e.then),"function"==typeof t&&t}function St(){for(var e=0;e<this.chain.length;e++)wt(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function wt(e,t,r){var n,o;try{!1===t?r.reject(e.msg):(n=!0===t?e.msg:t.call(void 0,e.msg))===r.promise?r.reject(TypeError("Promise-chain cycle")):(o=kt(n))?o.call(n,r.resolve,r.reject):r.resolve(n)}catch(e){r.reject(e)}}function It(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=kt(e))?bt((function(){var n=new xt(r);try{t.call(e,(function(){It.apply(n,arguments)}),(function(){Ct.apply(n,arguments)}))}catch(e){Ct.call(n,e)}})):(r.msg=e,r.state=1,r.chain.length>0&&bt(St,r))}catch(e){Ct.call(new xt(r),e)}}}function Ct(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&bt(St,t))}function Mt(e,t,r,n){for(var o=0;o<t.length;o++)!function(o){e.resolve(t[o]).then((function(e){r(o,e)}),n)}(o)}function xt(e){this.def=e,this.triggered=!1}function Et(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function Ot(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new Et(this);this.then=function(e,r){var n={success:"function"!=typeof e||e,failure:"function"==typeof r&&r};return n.promise=new this.constructor((function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");n.resolve=e,n.reject=t})),t.chain.push(n),0!==t.state&&bt(St,t),n.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,(function(e){It.call(t,e)}),(function(e){Ct.call(t,e)}))}catch(e){Ct.call(t,e)}}gt=function(){var e,t,r;function n(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(o,i){r=new n(o,i),t?t.next=r:e=r,t=r,r=void 0},drain:function(){var r=e;for(e=t=mt=void 0;r;)r.fn.call(r.self),r=r.next}}}();var Tt,Rt=ft({},"constructor",Ot,!1);Ot.prototype=Rt,ft(Rt,"__NPO__",0,!1),ft(Ot,"resolve",(function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this((function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");t(e)}))})),ft(Ot,"reject",(function(e){return new this((function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");r(e)}))})),ft(Ot,"all",(function(e){var t=this;return"[object Array]"!==yt.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t((function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");var o=e.length,i=Array(o),s=0;Mt(t,e,(function(e,t){i[e]=t,++s===o&&r(i)}),n)}))})),ft(Ot,"race",(function(e){var t=this;return"[object Array]"!==yt.call(e)?t.reject(TypeError("Not an array")):new t((function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");Mt(t,e,(function(e,t){r(t)}),n)}))})),Tt="undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:Ot;var Lt,Nt,Dt,At,qt,Pt,Ft,jt,Ut,zt,Bt,$t=864e5,Wt=8e3,Ht=Array.prototype,Gt=Function.prototype,Vt=Object.prototype,Jt=Ht.slice,Yt=Vt.toString,Xt=Vt.hasOwnProperty,Qt=lt.console,Kt=lt.navigator,Zt=lt.document,er=lt.opera,tr=lt.screen,rr=Kt.userAgent,nr=Gt.bind,or=Ht.forEach,ir=Ht.indexOf,sr=Ht.map,ar=Array.isArray,cr={},lr={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},ur={log:function(){if(dt.DEBUG&&!lr.isUndefined(Qt)&&Qt)try{Qt.log.apply(Qt,arguments)}catch(e){lr.each(arguments,(function(e){Qt.log(e)}))}},warn:function(){if(dt.DEBUG&&!lr.isUndefined(Qt)&&Qt){var e=["Mixpanel warning:"].concat(lr.toArray(arguments));try{Qt.warn.apply(Qt,e)}catch(t){lr.each(e,(function(e){Qt.warn(e)}))}}},error:function(){if(dt.DEBUG&&!lr.isUndefined(Qt)&&Qt){var e=["Mixpanel error:"].concat(lr.toArray(arguments));try{Qt.error.apply(Qt,e)}catch(t){lr.each(e,(function(e){Qt.error(e)}))}}},critical:function(){if(!lr.isUndefined(Qt)&&Qt){var e=["Mixpanel error:"].concat(lr.toArray(arguments));try{Qt.error.apply(Qt,e)}catch(t){lr.each(e,(function(e){Qt.error(e)}))}}}},pr=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(ur,arguments)}},dr=function(e){return{log:pr(ur.log,e),error:pr(ur.error,e),critical:pr(ur.critical,e)}};lr.bind=function(e,t){var r,n;if(nr&&e.bind===nr)return nr.apply(e,Jt.call(arguments,1));if(!lr.isFunction(e))throw new TypeError;return r=Jt.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(Jt.call(arguments)));var o={};o.prototype=e.prototype;var i=new o;o.prototype=null;var s=e.apply(i,r.concat(Jt.call(arguments)));return Object(s)===s?s:i},n},lr.each=function(e,t,r){if(null!=e)if(or&&e.forEach===or)e.forEach(t,r);else if(e.length===+e.length){for(var n=0,o=e.length;n<o;n++)if(n in e&&t.call(r,e[n],n,e)===cr)return}else for(var i in e)if(Xt.call(e,i)&&t.call(r,e[i],i,e)===cr)return},lr.extend=function(e){return lr.each(Jt.call(arguments,1),(function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])})),e},lr.isArray=ar||function(e){return"[object Array]"===Yt.call(e)},lr.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch(e){return!1}},lr.isArguments=function(e){return!(!e||!Xt.call(e,"callee"))},lr.toArray=function(e){return e?e.toArray?e.toArray():lr.isArray(e)||lr.isArguments(e)?Jt.call(e):lr.values(e):[]},lr.map=function(e,t,r){if(sr&&e.map===sr)return e.map(t,r);var n=[];return lr.each(e,(function(e){n.push(t.call(r,e))})),n},lr.keys=function(e){var t=[];return null===e||lr.each(e,(function(e,r){t[t.length]=r})),t},lr.values=function(e){var t=[];return null===e||lr.each(e,(function(e){t[t.length]=e})),t},lr.include=function(e,t){var r=!1;return null===e?r:ir&&e.indexOf===ir?-1!=e.indexOf(t):(lr.each(e,(function(e){if(r||(r=e===t))return cr})),r)},lr.includes=function(e,t){return-1!==e.indexOf(t)},lr.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},lr.isObject=function(e){return e===Object(e)&&!lr.isArray(e)},lr.isEmptyObject=function(e){if(lr.isObject(e)){for(var t in e)if(Xt.call(e,t))return!1;return!0}return!1},lr.isUndefined=function(e){return void 0===e},lr.isString=function(e){return"[object String]"==Yt.call(e)},lr.isDate=function(e){return"[object Date]"==Yt.call(e)},lr.isNumber=function(e){return"[object Number]"==Yt.call(e)},lr.isElement=function(e){return!(!e||1!==e.nodeType)},lr.encodeDates=function(e){return lr.each(e,(function(t,r){lr.isDate(t)?e[r]=lr.formatDate(t):lr.isObject(t)&&(e[r]=lr.encodeDates(t))})),e},lr.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},lr.formatDate=function(e){function t(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())},lr.strip_empty_properties=function(e){var t={};return lr.each(e,(function(e,r){lr.isString(e)&&e.length>0&&(t[r]=e)})),t},lr.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):lr.isArray(e)?(r=[],lr.each(e,(function(e){r.push(lr.truncate(e,t))}))):lr.isObject(e)?(r={},lr.each(e,(function(e,n){r[n]=lr.truncate(e,t)}))):r=e,r},lr.JSONEncode=function(e){var t=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,(function(e){var t=r[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'},r=function(e,n){var o="",i=0,s="",a="",c=0,l=o,u=[],p=n[e];switch(p&&"object"==typeof p&&"function"==typeof p.toJSON&&(p=p.toJSON(e)),typeof p){case"string":return t(p);case"number":return isFinite(p)?String(p):"null";case"boolean":case"null":return String(p);case"object":if(!p)return"null";if(o+=" ",u=[],"[object Array]"===Yt.apply(p)){for(c=p.length,i=0;i<c;i+=1)u[i]=r(i,p)||"null";return a=0===u.length?"[]":o?"[\n"+o+u.join(",\n"+o)+"\n"+l+"]":"["+u.join(",")+"]",o=l,a}for(s in p)Xt.call(p,s)&&(a=r(s,p))&&u.push(t(s)+(o?": ":":")+a);return a=0===u.length?"{}":o?"{"+u.join(",")+l+"}":"{"+u.join(",")+"}",o=l,a}};return r("",{"":e})},lr.JSONDecode=(qt={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},Pt=function(e){var t=new SyntaxError(e);throw t.at=Lt,t.text=Dt,t},Ft=function(e){return e&&e!==Nt&&Pt("Expected '"+e+"' instead of '"+Nt+"'"),Nt=Dt.charAt(Lt),Lt+=1,Nt},jt=function(){var e,t="";for("-"===Nt&&(t="-",Ft("-"));Nt>="0"&&Nt<="9";)t+=Nt,Ft();if("."===Nt)for(t+=".";Ft()&&Nt>="0"&&Nt<="9";)t+=Nt;if("e"===Nt||"E"===Nt)for(t+=Nt,Ft(),"-"!==Nt&&"+"!==Nt||(t+=Nt,Ft());Nt>="0"&&Nt<="9";)t+=Nt,Ft();if(e=+t,isFinite(e))return e;Pt("Bad number")},Ut=function(){var e,t,r,n="";if('"'===Nt)for(;Ft();){if('"'===Nt)return Ft(),n;if("\\"===Nt)if(Ft(),"u"===Nt){for(r=0,t=0;t<4&&(e=parseInt(Ft(),16),isFinite(e));t+=1)r=16*r+e;n+=String.fromCharCode(r)}else{if("string"!=typeof qt[Nt])break;n+=qt[Nt]}else n+=Nt}Pt("Bad string")},zt=function(){for(;Nt&&Nt<=" ";)Ft()},At=function(){switch(zt(),Nt){case"{":return function(){var e,t={};if("{"===Nt){if(Ft("{"),zt(),"}"===Nt)return Ft("}"),t;for(;Nt;){if(e=Ut(),zt(),Ft(":"),Object.hasOwnProperty.call(t,e)&&Pt('Duplicate key "'+e+'"'),t[e]=At(),zt(),"}"===Nt)return Ft("}"),t;Ft(","),zt()}}Pt("Bad object")}();case"[":return function(){var e=[];if("["===Nt){if(Ft("["),zt(),"]"===Nt)return Ft("]"),e;for(;Nt;){if(e.push(At()),zt(),"]"===Nt)return Ft("]"),e;Ft(","),zt()}}Pt("Bad array")}();case'"':return Ut();case"-":return jt();default:return Nt>="0"&&Nt<="9"?jt():function(){switch(Nt){case"t":return Ft("t"),Ft("r"),Ft("u"),Ft("e"),!0;case"f":return Ft("f"),Ft("a"),Ft("l"),Ft("s"),Ft("e"),!1;case"n":return Ft("n"),Ft("u"),Ft("l"),Ft("l"),null}Pt('Unexpected "'+Nt+'"')}()}},function(e){var t;return Dt=e,Lt=0,Nt=" ",t=At(),zt(),Nt&&Pt("Syntax error"),t}),lr.base64Encode=function(e){var t,r,n,o,i,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=0,c=0,l="",u=[];if(!e)return e;e=lr.utf8Encode(e);do{t=(i=e.charCodeAt(a++)<<16|e.charCodeAt(a++)<<8|e.charCodeAt(a++))>>18&63,r=i>>12&63,n=i>>6&63,o=63&i,u[c++]=s.charAt(t)+s.charAt(r)+s.charAt(n)+s.charAt(o)}while(a<e.length);switch(l=u.join(""),e.length%3){case 1:l=l.slice(0,-2)+"==";break;case 2:l=l.slice(0,-1)+"="}return l},lr.utf8Encode=function(e){var t,r,n,o,i="";for(t=r=0,n=(e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,o=0;o<n;o++){var s=e.charCodeAt(o),a=null;s<128?r++:a=s>127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==a&&(r>t&&(i+=e.substring(t,r)),i+=a,t=r=o+1)}return r>t&&(i+=e.substring(t,e.length)),i},lr.UUID=(Bt=function(){var e,t=1*new Date;if(lt.performance&<.performance.now)e=lt.performance.now();else for(e=0;t==1*new Date;)e++;return t.toString(16)+Math.floor(e).toString(16)},function(){var e=(tr.height*tr.width).toString(16);return Bt()+"-"+Math.random().toString(16).replace(".","")+"-"+function(){var e,t,r=rr,n=[],o=0;function i(e,t){var r,o=0;for(r=0;r<t.length;r++)o|=n[r]<<8*r;return e^o}for(e=0;e<r.length;e++)t=r.charCodeAt(e),n.unshift(255&t),n.length>=4&&(o=i(o,n),n=[]);return n.length>0&&(o=i(o,n)),o.toString(16)}()+"-"+e+"-"+Bt()});var hr=["ahrefsbot","ahrefssiteaudit","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandexbot","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];lr.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<hr.length;t++)if(-1!==e.indexOf(hr[t]))return!0;return!1},lr.HTTPBuildQuery=function(e,t){var r,n,o=[];return lr.isUndefined(t)&&(t="&"),lr.each(e,(function(e,t){r=encodeURIComponent(e.toString()),n=encodeURIComponent(t),o[o.length]=n+"="+r})),o.join(t)},lr.getQueryParam=function(e,t){t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var r=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e);if(null===r||r&&"string"!=typeof r[1]&&r[1].length)return"";var n=r[1];try{n=decodeURIComponent(n)}catch(e){ur.error("Skipping decoding for malformed query param: "+n)}return n.replace(/\+/g," ")},lr.cookie={get:function(e){for(var t=e+"=",r=Zt.cookie.split(";"),n=0;n<r.length;n++){for(var o=r[n];" "==o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return decodeURIComponent(o.substring(t.length,o.length))}return null},parse:function(e){var t;try{t=lr.JSONDecode(lr.cookie.get(e))||{}}catch(e){}return t},set_seconds:function(e,t,r,n,o,i,s){var a="",c="",l="";if(s)a="; domain="+s;else if(n){var u=Sr(Zt.location.hostname);a=u?"; domain=."+u:""}if(r){var p=new Date;p.setTime(p.getTime()+1e3*r),c="; expires="+p.toGMTString()}i&&(o=!0,l="; SameSite=None"),o&&(l+="; secure"),Zt.cookie=e+"="+encodeURIComponent(t)+c+"; path=/"+a+l},set:function(e,t,r,n,o,i,s){var a="",c="",l="";if(s)a="; domain="+s;else if(n){var u=Sr(Zt.location.hostname);a=u?"; domain=."+u:""}if(r){var p=new Date;p.setTime(p.getTime()+24*r*60*60*1e3),c="; expires="+p.toGMTString()}i&&(o=!0,l="; SameSite=None"),o&&(l+="; secure");var d=e+"="+encodeURIComponent(t)+c+"; path=/"+a+l;return Zt.cookie=d,d},remove:function(e,t,r){lr.cookie.set(e,"",-1,t,!1,!1,r)}};var fr=null,mr=function(e,t){if(null!==fr&&!t)return fr;var r=!0;try{e=e||lt.localStorage;var n="__mplss_"+vr(8);e.setItem(n,"xyz"),"xyz"!==e.getItem(n)&&(r=!1),e.removeItem(n)}catch(e){r=!1}return fr=r,r};lr.localStorage={is_supported:function(e){var t=mr(null,e);return t||ur.error("localStorage unsupported; falling back to cookie store"),t},error:function(e){ur.error("localStorage error: "+e)},get:function(e){try{return lt.localStorage.getItem(e)}catch(e){lr.localStorage.error(e)}return null},parse:function(e){try{return lr.JSONDecode(lr.localStorage.get(e))||{}}catch(e){}return null},set:function(e,t){try{lt.localStorage.setItem(e,t)}catch(e){lr.localStorage.error(e)}},remove:function(e){try{lt.localStorage.removeItem(e)}catch(e){lr.localStorage.error(e)}}},lr.register_event=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,r,n,o,i){if(t)if(t.addEventListener&&!o)t.addEventListener(r,n,!!i);else{var s="on"+r,a=t[s];t[s]=function(t,r,n){var o=function(o){if(o=o||e(lt.event)){var i,s,a=!0;return lr.isFunction(n)&&(i=n(o)),s=r.call(t,o),!1!==i&&!1!==s||(a=!1),a}};return o}(t,n,a)}else ur.error("No valid element provided to register_event")}}();var gr=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');lr.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(e,r){var n=" "+r+" ";return(" "+e.className+" ").replace(t," ").indexOf(n)>=0}function n(t){if(!Zt.getElementsByTagName)return[];var n,o,i,s,a,c,l,u,p,d,h=t.split(" "),f=[Zt];for(c=0;c<h.length;c++)if((n=h[c].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){i=(o=n.split("#"))[0];var m=o[1],g=Zt.getElementById(m);if(!g||i&&g.nodeName.toLowerCase()!=i)return[];f=[g]}else if(n.indexOf(".")>-1){i=(o=n.split("."))[0];var _=o[1];for(i||(i="*"),s=[],a=0,l=0;l<f.length;l++)for(p="*"==i?e(f[l]):f[l].getElementsByTagName(i),u=0;u<p.length;u++)s[a++]=p[u];for(f=[],d=0,l=0;l<s.length;l++)s[l].className&&lr.isString(s[l].className)&&r(s[l],_)&&(f[d++]=s[l])}else{var y=n.match(gr);if(y){i=y[1];var v,b=y[2],k=y[3],S=y[4];for(i||(i="*"),s=[],a=0,l=0;l<f.length;l++)for(p="*"==i?e(f[l]):f[l].getElementsByTagName(i),u=0;u<p.length;u++)s[a++]=p[u];switch(f=[],d=0,k){case"=":v=function(e){return e.getAttribute(b)==S};break;case"~":v=function(e){return e.getAttribute(b).match(new RegExp("\\b"+S+"\\b"))};break;case"|":v=function(e){return e.getAttribute(b).match(new RegExp("^"+S+"-?"))};break;case"^":v=function(e){return 0===e.getAttribute(b).indexOf(S)};break;case"$":v=function(e){return e.getAttribute(b).lastIndexOf(S)==e.getAttribute(b).length-S.length};break;case"*":v=function(e){return e.getAttribute(b).indexOf(S)>-1};break;default:v=function(e){return e.getAttribute(b)}}for(f=[],d=0,l=0;l<s.length;l++)v(s[l])&&(f[d++]=s[l])}else{for(i=n,s=[],a=0,l=0;l<f.length;l++)for(p=f[l].getElementsByTagName(i),u=0;u<p.length;u++)s[a++]=p[u];f=s}}return f}return function(e){return lr.isElement(e)?[e]:lr.isObject(e)&&!lr.isUndefined(e.length)?e:n.call(this,e)}}();var _r=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],yr=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];lr.info={campaignParams:function(e){var t="",r={};return lr.each(_r,(function(n){(t=lr.getQueryParam(Zt.URL,n)).length?r[n]=t:void 0!==e&&(r[n]=e)})),r},clickParams:function(){var e="",t={};return lr.each(yr,(function(r){(e=lr.getQueryParam(Zt.URL,r)).length&&(t[r]=e)})),t},marketingParams:function(){return lr.extend(lr.info.campaignParams(),lr.info.clickParams())},searchEngine:function(e){return 0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},searchInfo:function(e){var t=lr.info.searchEngine(e),r="yahoo"!=t?"q":"p",n={};if(null!==t){n.$search_engine=t;var o=lr.getQueryParam(e,r);o.length&&(n.mp_keyword=o)}return n},browser:function(e,t,r){return t=t||"",r||lr.includes(e," OPR/")?lr.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":lr.includes(e,"IEMobile")||lr.includes(e,"WPDesktop")?"Internet Explorer Mobile":lr.includes(e,"SamsungBrowser/")?"Samsung Internet":lr.includes(e,"Edge")||lr.includes(e,"Edg/")?"Microsoft Edge":lr.includes(e,"FBIOS")?"Facebook Mobile":lr.includes(e,"Chrome")?"Chrome":lr.includes(e,"CriOS")?"Chrome iOS":lr.includes(e,"UCWEB")||lr.includes(e,"UCBrowser")?"UC Browser":lr.includes(e,"FxiOS")?"Firefox iOS":lr.includes(t,"Apple")?lr.includes(e,"Mobile")?"Mobile Safari":"Safari":lr.includes(e,"Android")?"Android Mobile":lr.includes(e,"Konqueror")?"Konqueror":lr.includes(e,"Firefox")?"Firefox":lr.includes(e,"MSIE")||lr.includes(e,"Trident/")?"Internet Explorer":lr.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,r){var n={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[lr.info.browser(e,t,r)];if(void 0===n)return null;var o=e.match(n);return o?parseFloat(o[o.length-2]):null},os:function(){var e=rr;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return lt.location.href},properties:function(e){return"object"!=typeof e&&(e={}),lr.extend(lr.strip_empty_properties({$os:lr.info.os(),$browser:lr.info.browser(rr,Kt.vendor,er),$referrer:Zt.referrer,$referring_domain:lr.info.referringDomain(Zt.referrer),$device:lr.info.device(rr)}),{$current_url:lr.info.currentUrl(),$browser_version:lr.info.browserVersion(rr,Kt.vendor,er),$screen_height:tr.height,$screen_width:tr.width,mp_lib:"web",$lib_version:dt.LIB_VERSION,$insert_id:vr(),time:lr.timestamp()/1e3},lr.strip_empty_properties(e))},people_properties:function(){return lr.extend(lr.strip_empty_properties({$os:lr.info.os(),$browser:lr.info.browser(rr,Kt.vendor,er)}),{$browser_version:lr.info.browserVersion(rr,Kt.vendor,er)})},mpPageViewProperties:function(){return lr.strip_empty_properties({current_page_title:Zt.title,current_domain:lt.location.hostname,current_url_path:lt.location.pathname,current_url_protocol:lt.location.protocol,current_url_search:lt.location.search})}};var vr=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},br=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,kr=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Sr=function(e){var t=kr,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=br);var o=e.match(t);return o?o[0]:""},wr=null,Ir=null;"undefined"!=typeof JSON&&(wr=JSON.stringify,Ir=JSON.parse),wr=wr||lr.JSONEncode,Ir=Ir||lr.JSONDecode,lr.toArray=lr.toArray,lr.isObject=lr.isObject,lr.JSONEncode=lr.JSONEncode,lr.JSONDecode=lr.JSONDecode,lr.isBlockedUA=lr.isBlockedUA,lr.isEmptyObject=lr.isEmptyObject,lr.info=lr.info,lr.info.device=lr.info.device,lr.info.browser=lr.info.browser,lr.info.browserVersion=lr.info.browserVersion,lr.info.properties=lr.info.properties,lr.NPO=Ot;function Cr(e,t){qr(!0,e,t)}function Mr(e,t){qr(!1,e,t)}function xr(e,t){return"1"===Ar(e,t)}function Er(e,t){if(function(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||lt,r=t.navigator||{},n=!1;return lr.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],(function(e){lr.includes([!0,1,"1","yes"],e)&&(n=!0)})),n}(t))return ur.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var r="0"===Ar(e,t);return r&&ur.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function Or(e){return Pr(e,(function(e){return this.get_config(e)}))}function Tr(e){return Pr(e,(function(e){return this._get_config(e)}))}function Rr(e){return Pr(e,(function(e){return this._get_config(e)}))}function Lr(e,t){Nr(t=t||{}).remove(Dr(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function Nr(e){return"localStorage"===(e=e||{}).persistenceType?lr.localStorage:lr.cookie}function Dr(e,t){return((t=t||{}).persistencePrefix||"__mp_opt_in_out_")+e}function Ar(e,t){return Nr(t).get(Dr(e,t))}function qr(e,t,r){lr.isString(t)&&t.length?(Nr(r=r||{}).set(Dr(t,r),e?1:0,lr.isNumber(r.cookieExpiration)?r.cookieExpiration:null,!!r.crossSubdomainCookie,!!r.secureCookie,!!r.crossSiteCookie,r.cookieDomain),r.track&&e&&r.track(r.trackEventName||"$opt_in",r.trackProperties,{send_immediately:!0})):ur.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function Pr(e,t){return function(){var r=!1;try{var n=t.call(this,"token"),o=t.call(this,"ignore_dnt"),i=t.call(this,"opt_out_tracking_persistence_type"),s=t.call(this,"opt_out_tracking_cookie_prefix"),a=t.call(this,"window");n&&(r=Er(n,{ignoreDnt:o,persistenceType:i,persistencePrefix:s,window:a}))}catch(e){ur.error("Unexpected error when checking tracking opt-out status: "+e)}if(!r)return e.apply(this,arguments);var c=arguments[arguments.length-1];"function"==typeof c&&c(0)}}var Fr=dr("lock"),jr=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||Tt};jr.prototype.withLock=function(e,t){return new(0,this.promiseImpl)(lr.bind((function(r,n){var o=t||(new Date).getTime()+"|"+Math.random(),i=(new Date).getTime(),s=this.storageKey,a=this.pollIntervalMS,c=this.timeoutMS,l=this.storage,u=s+":X",p=s+":Y",d=s+":Z",h=function(e){if((new Date).getTime()-i>c)return Fr.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+o+"]"),l.removeItem(d),l.removeItem(p),void g();setTimeout((function(){try{e()}catch(e){n(e)}}),a*(Math.random()+.1))},f=function(e,t){e()?t():h((function(){f(e,t)}))},m=function(){var e=l.getItem(p);return(!e||e===o)&&(l.setItem(p,o),l.getItem(p)===o||(mr(l,!0)||n(new Error("localStorage support dropped while acquiring lock")),!1))},g=function(){l.setItem(u,o),f(m,(function(){l.getItem(u)!==o?h((function(){l.getItem(p)===o?f((function(){return!l.getItem(d)}),_):g()})):_()}))},_=function(){l.setItem(d,"1");var t=function(){l.removeItem(d),l.getItem(p)===o&&l.removeItem(p),l.getItem(u)===o&&l.removeItem(u)};e().then((function(e){t(),r(e)})).catch((function(e){t(),n(e)}))};try{if(!mr(l,!0))throw new Error("localStorage support check failed");g()}catch(e){n(e)}}),this))};var Ur=function(e){this.storage=e||localStorage};Ur.prototype.init=function(){return Tt.resolve()},Ur.prototype.setItem=function(e,t){return new Tt(lr.bind((function(r,n){try{this.storage.setItem(e,t)}catch(e){n(e)}r()}),this))},Ur.prototype.getItem=function(e){return new Tt(lr.bind((function(t,r){var n;try{n=this.storage.getItem(e)}catch(e){r(e)}t(n)}),this))},Ur.prototype.removeItem=function(e){return new Tt(lr.bind((function(t,r){try{this.storage.removeItem(e)}catch(e){r(e)}t()}),this))};var zr=dr("batch"),Br=function(e,t){t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new Ur,this.lock=new jr(e,{storage:t.sharedLockStorage||window.localStorage}),this.queueStorage.init()),this.reportError=t.errorReporter||lr.bind(zr.error,zr),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1};Br.prototype.ensureInit=function(){return this.initialized?Tt.resolve():this.queueStorage.init().then(lr.bind((function(){this.initialized=!0}),this)).catch(lr.bind((function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1}),this))},Br.prototype.enqueue=function(e,t){var r={id:vr(),flushAfter:(new Date).getTime()+2*t,payload:e};if(this.usePersistence){var n=lr.bind((function(){return this.ensureInit().then(lr.bind((function(){return this.readFromStorage()}),this)).then(lr.bind((function(e){return e.push(r),this.saveToStorage(e)}),this)).then(lr.bind((function(e){return e&&this.memQueue.push(r),e}),this)).catch(lr.bind((function(t){return this.reportError("Error enqueueing item",t,e),!1}),this))}),this);return this.lock.withLock(n,this.pid).catch(lr.bind((function(e){return this.reportError("Error acquiring storage lock",e),!1}),this))}return this.memQueue.push(r),Tt.resolve(!0)},Br.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(lr.bind((function(){return this.readFromStorage()}),this)).then(lr.bind((function(r){if(r.length){var n={};lr.each(t,(function(e){n[e.id]=!0}));for(var o=0;o<r.length;o++){var i=r[o];if((new Date).getTime()>i.flushAfter&&!n[i.id]&&(i.orphaned=!0,t.push(i),t.length>=e))break}}return t}),this)):Tt.resolve(t)};var $r=function(e,t){var r=[];return lr.each(e,(function(e){e.id&&!t[e.id]&&r.push(e)})),r};Br.prototype.removeItemsByID=function(e){var t={};if(lr.each(e,(function(e){t[e]=!0})),this.memQueue=$r(this.memQueue,t),this.usePersistence){var r=lr.bind((function(){return this.ensureInit().then(lr.bind((function(){return this.readFromStorage()}),this)).then(lr.bind((function(e){return e=$r(e,t),this.saveToStorage(e)}),this)).then(lr.bind((function(){return this.readFromStorage()}),this)).then(lr.bind((function(e){for(var r=0;r<e.length;r++){var n=e[r];if(n.id&&t[n.id])throw new Error("Item not removed from storage")}return!0}),this)).catch(lr.bind((function(t){return this.reportError("Error removing items",t,e),!1}),this))}),this);return this.lock.withLock(r,this.pid).catch(lr.bind((function(e){return this.reportError("Error acquiring storage lock",e),!mr(this.queueStorage.storage,!0)&&r().then(lr.bind((function(e){return e||this.queueStorage.removeItem(this.storageKey).then((function(){return e}))}),this)).catch(lr.bind((function(e){return this.reportError("Error clearing queue",e),!1}),this))}),this))}return Tt.resolve(!0)};var Wr=function(e,t){var r=[];return lr.each(e,(function(e){var n=e.id;if(n in t){var o=t[n];null!==o&&(e.payload=o,r.push(e))}else r.push(e)})),r};Br.prototype.updatePayloads=function(e){return this.memQueue=Wr(this.memQueue,e),this.usePersistence?this.lock.withLock(lr.bind((function(){return this.ensureInit().then(lr.bind((function(){return this.readFromStorage()}),this)).then(lr.bind((function(t){return t=Wr(t,e),this.saveToStorage(t)}),this)).catch(lr.bind((function(t){return this.reportError("Error updating items",e,t),!1}),this))}),this),this.pid).catch(lr.bind((function(e){return this.reportError("Error acquiring storage lock",e),!1}),this)):Tt.resolve(!0)},Br.prototype.readFromStorage=function(){return this.ensureInit().then(lr.bind((function(){return this.queueStorage.getItem(this.storageKey)}),this)).then(lr.bind((function(e){return e&&(e=Ir(e),lr.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null)),e||[]}),this)).catch(lr.bind((function(e){return this.reportError("Error retrieving queue",e),[]}),this))},Br.prototype.saveToStorage=function(e){try{var t=wr(e)}catch(e){return this.reportError("Error serializing queue",e),Tt.resolve(!1)}return this.ensureInit().then(lr.bind((function(){return this.queueStorage.setItem(this.storageKey,t)}),this)).then((function(){return!0})).catch(lr.bind((function(e){return this.reportError("Error saving queue",e),!1}),this))},Br.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(lr.bind((function(){return this.queueStorage.removeItem(this.storageKey)}),this)):Tt.resolve()};var Hr=dr("batch"),Gr=function(e,t){this.errorReporter=t.errorReporter,this.queue=new Br(e,{errorReporter:lr.bind(this.reportError,this),queueStorage:t.queueStorage,sharedLockStorage:t.sharedLockStorage,usePersistence:t.usePersistence}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=t.flushOnlyOnInterval||!1};Gr.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},Gr.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},Gr.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},Gr.prototype.clear=function(){return this.queue.clear()},Gr.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},Gr.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},Gr.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(lr.bind((function(){this.stopped||this.flush()}),this),this.flushInterval))},Gr.prototype.sendRequestPromise=function(e,t){return new Tt(lr.bind((function(r){this.sendRequest(e,t,r)}),this))},Gr.prototype.flush=function(e){if(this.requestInProgress)return Hr.log("Flush: Request already in progress"),Tt.resolve();this.requestInProgress=!0,e=e||{};var t=this.libConfig.batch_request_timeout_ms,r=(new Date).getTime(),n=this.batchSize;return this.queue.fillBatch(n).then(lr.bind((function(o){var i=o.length===n,s=[],a={};if(lr.each(o,(function(e){var t=e.payload;if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t.event&&t.properties&&(t.properties=lr.extend({},t.properties,{mp_sent_by_lib_version:dt.LIB_VERSION}));var r=!0,n=e.id;n?(this.itemIdsSentSuccessfully[n]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:o.length,timesSent:this.itemIdsSentSuccessfully[n]}),r=!1):this.reportError("[dupe] found item with no ID",{item:e}),r&&s.push(t)}a[e.id]=t}),this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),Tt.resolve();var c=lr.bind((function(){return this.queue.removeItemsByID(lr.map(o,(function(e){return e.id}))).then(lr.bind((function(e){return lr.each(o,lr.bind((function(e){var t=e.id;t?(this.itemIdsSentSuccessfully[t]=this.itemIdsSentSuccessfully[t]||0,this.itemIdsSentSuccessfully[t]++,this.itemIdsSentSuccessfully[t]>5&&this.reportError("[dupe] item ID sent too many times",{item:e,batchSize:o.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError("[dupe] found item with no ID while removing",{item:e})}),this)),e?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!i?(this.resetFlush(),Tt.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),Tt.resolve())}),this))}),this),l=lr.bind((function(i){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(a);if(lr.isObject(i)&&"timeout"===i.error&&(new Date).getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(lr.isObject(i)&&(i.httpStatusCode>=500||429===i.httpStatusCode||i.httpStatusCode<=0&&(u=lt.navigator.onLine,!lr.isUndefined(u)&&!u)||"timeout"===i.error)){var s=2*this.flushInterval;return i.retryAfter&&(s=1e3*parseInt(i.retryAfter,10)||s),s=Math.min(6e5,s),this.reportError("Error; retry in "+s+" ms"),this.scheduleFlush(s),Tt.resolve()}if(lr.isObject(i)&&413===i.httpStatusCode){if(o.length>1){var l=Math.max(1,Math.floor(n/2));return this.batchSize=Math.min(this.batchSize,l,o.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),Tt.resolve()}return this.reportError("Single-event request too large; dropping",o),this.resetBatchSize(),c()}return c()}catch(e){this.reportError("Error handling API response",e),this.resetFlush()}var u}),this),u={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(u.transport="sendBeacon"),Hr.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,u).then(l)}),this)).catch(lr.bind((function(e){this.reportError("Error flushing request queue",e),this.resetFlush()}),this))},Gr.prototype.reportError=function(e,t){if(Hr.error.apply(Hr.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(t){Hr.error(t)}};var Vr=dr("recorder"),Jr=lt.CompressionStream,Yr={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},Xr=new Set([pt.MouseMove,pt.MouseInteraction,pt.Scroll,pt.ViewportResize,pt.Input,pt.TouchMove,pt.MediaInteraction,pt.Drag,pt.Selection]);var Qr=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout,this._onMaxLengthReached=e.onMaxLengthReached,this._rrwebRecord=e.rrwebRecord,this.replayId=e.replayId,this._stopRecording=null,this.seqNo=0,this.replayStartTime=null,this.replayStartUrl=null,this.batchStartUrl=null,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=$t,this.recordMinMs=0;var t="__mprec_"+this.getConfig("token")+"_"+this.replayId;this.batcher=new Gr(t,{errorReporter:lr.bind(this.reportError,this),flushOnlyOnInterval:!0,libConfig:Yr,sendRequestFunc:lr.bind(this.flushEventsWithOptOut,this),usePersistence:!1})};Qr.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},Qr.prototype.get_config=function(e){return this.getConfig(e)},Qr.prototype.startRecording=function(e){if(null===this._stopRecording){this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>$t&&(this.recordMaxMs=$t,Vr.critical("record_max_ms cannot be greater than "+$t+"ms. Capping value.")),this.recordMinMs=this.getConfig("record_min_ms"),this.recordMinMs>Wt&&(this.recordMinMs=Wt,Vr.critical("record_min_ms cannot be greater than 8000ms. Capping value.")),this.replayStartTime=(new Date).getTime(),this.batchStartUrl=lr.info.currentUrl(),this.replayStartUrl=lr.info.currentUrl(),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=lr.bind((function(){clearTimeout(this.idleTimeoutId),this.idleTimeoutId=setTimeout(this._onIdleTimeout,this.getConfig("record_idle_timeout_ms"))}),this),r=this.getConfig("record_block_selector");if(""!==r&&null!==r||(r=void 0),this._stopRecording=this._rrwebRecord({emit:lr.bind((function(e){this.batcher.enqueue(e),function(e){return e.type===ut.IncrementalSnapshot&&Xr.has(e.data.source)}(e)&&(this.batcher.stopped&&(new Date).getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t())}),this),blockClass:this.getConfig("record_block_class"),blockSelector:r,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextClass:this.getConfig("record_mask_text_class"),maskTextSelector:this.getConfig("record_mask_text_selector"),recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15}}),"function"!=typeof this._stopRecording)return this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,void this.stopRecording();t(),this.maxTimeoutId=setTimeout(lr.bind(this._onMaxLengthReached,this),this.recordMaxMs)}else Vr.log("Recording already in progress, skipping startRecording.")},Qr.prototype.stopRecording=function(){if(!this.isRrwebStopped()){try{this._stopRecording()}catch(e){this.reportError("Error with rrweb stopRecording",e)}this._stopRecording=null}this.batcher.stopped?this.batcher.clear():(this.batcher.flush(),this.batcher.stop()),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId)},Qr.prototype.isRrwebStopped=function(){return null===this._stopRecording},Qr.prototype.flushEventsWithOptOut=function(e,t,r){this._flushEvents(e,t,r,lr.bind(this._onOptOut,this))},Qr.prototype._onOptOut=function(e){0===e&&this.stopRecording()},Qr.prototype._sendRequest=function(e,t,r,n){var o=lr.bind((function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=lr.info.currentUrl()),n({status:0,httpStatusCode:t.status,responseBody:r,retryAfter:t.headers.get("Retry-After")})}),this);lt.fetch(this.getConfig("api_host")+"/"+this.getConfig("api_routes").record+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:r}).then((function(e){e.json().then((function(t){o(e,t)})).catch((function(e){n({error:e})}))})).catch((function(e){n({error:e,httpStatusCode:0})}))},Qr.prototype._flushEvents=Or((function(e,t,r){const n=e.length;if(n>0){var o=this.replayId,i=e[0].timestamp;0!==this.seqNo&&this.replayStartTime||(0!==this.seqNo&&this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=i);var s=e[n-1].timestamp-this.replayStartTime,a={$current_url:this.batchStartUrl,$lib_version:dt.LIB_VERSION,batch_start_time:i/1e3,distinct_id:String(this._mixpanel.get_distinct_id()),mp_lib:"web",replay_id:o,replay_length_ms:s,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},c=lr.JSONEncode(e),l=this._mixpanel.get_property("$device_id");l&&(a.$device_id=l);var u=this._mixpanel.get_property("$user_id");if(u&&(a.$user_id=u),Jr){var p=new Blob([c],{type:"application/json"}).stream().pipeThrough(new Jr("gzip"));new Response(p).blob().then(lr.bind((function(e){a.format="gzip",this._sendRequest(o,a,e,r)}),this))}else a.format="body",this._sendRequest(o,a,c,r)}})),Qr.prototype.reportError=function(e,t){Vr.error.apply(Vr.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.getConfig("error_reporter")(e,t)}catch(t){Vr.error(t)}};var Kr=dr("recorder"),Zr=function(e){this._mixpanel=e,this.activeRecording=null};Zr.prototype.startRecording=function(e){if(!this.activeRecording||this.activeRecording.isRrwebStopped()){var t=lr.bind((function(){Kr.log("Idle timeout reached, restarting recording."),this.resetRecording()}),this),r=lr.bind((function(){Kr.log("Max recording length reached, stopping recording."),this.resetRecording()}),this);this.activeRecording=new Qr({mixpanelInstance:this._mixpanel,onIdleTimeout:t,onMaxLengthReached:r,replayId:lr.UUID(),rrwebRecord:ct}),this.activeRecording.startRecording(e)}else Kr.log("Recording already in progress, skipping startRecording.")},Zr.prototype.stopRecording=function(){this.activeRecording&&(this.activeRecording.stopRecording(),this.activeRecording=null)},Zr.prototype.resetRecording=function(){this.stopRecording(),this.startRecording(!0)},Zr.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null},Object.defineProperty(Zr.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),lt.__mp_recorder=Zr;var en=function(){};en.prototype.create_properties=function(){},en.prototype.event_handler=function(){},en.prototype.after_track_handler=function(){},en.prototype.init=function(e){return this.mp=e,this},en.prototype.track=function(e,t,r,n){var o=this,i=lr.dom_query(e);if(0!==i.length)return lr.each(i,(function(e){lr.register_event(e,this.override_event,(function(e){var i={},s=o.create_properties(r,this),a=o.mp.get_config("track_links_timeout");o.event_handler(e,this,i),window.setTimeout(o.track_callback(n,s,i,!0),a),o.mp.track(t,s,o.track_callback(n,s,i))}))}),this),!0;ur.error("The DOM query ("+e+") returned 0 elements")},en.prototype.track_callback=function(e,t,r,n){n=n||!1;var o=this;return function(){r.callback_fired||(r.callback_fired=!0,e&&!1===e(n,t)||o.after_track_handler(t,r,n))}},en.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):lr.extend({},e)};var tn=function(){this.override_event="click"};lr.inherit(tn,en),tn.prototype.create_properties=function(e,t){var r=tn.superclass.create_properties.apply(this,arguments);return t.href&&(r.url=t.href),r},tn.prototype.event_handler=function(e,t,r){r.new_tab=2===e.which||e.metaKey||e.ctrlKey||"_blank"===t.target,r.href=t.href,r.new_tab||e.preventDefault()},tn.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout((function(){window.location=t.href}),0)};var rn=function(){this.override_event="submit"};lr.inherit(rn,en),rn.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},rn.prototype.after_track_handler=function(e,t){setTimeout((function(){t.element.submit()}),0)};var nn="$set",on="$set_once",sn="$unset",an="$add",cn="$append",ln="$union",un="$remove",pn={set_action:function(e,t){var r={},n={};return lr.isObject(e)?lr.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[nn]=n,r},unset_action:function(e){var t={},r=[];return lr.isArray(e)||(e=[e]),lr.each(e,(function(e){this._is_reserved_property(e)||r.push(e)}),this),t[sn]=r,t},set_once_action:function(e,t){var r={},n={};return lr.isObject(e)?lr.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[on]=n,r},union_action:function(e,t){var r={},n={};return lr.isObject(e)?lr.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=lr.isArray(e)?e:[e])}),this):n[e]=lr.isArray(t)?t:[t],r[ln]=n,r},append_action:function(e,t){var r={},n={};return lr.isObject(e)?lr.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[cn]=n,r},remove_action:function(e,t){var r={},n={};return lr.isObject(e)?lr.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[un]=n,r},delete_action:function(){var e={$delete:""};return e}},dn=function(){};lr.extend(dn.prototype,pn),dn.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},dn.prototype.set=Rr((function(e,t,r){var n=this.set_action(e,t);return lr.isObject(e)&&(r=t),this._send_request(n,r)})),dn.prototype.set_once=Rr((function(e,t,r){var n=this.set_once_action(e,t);return lr.isObject(e)&&(r=t),this._send_request(n,r)})),dn.prototype.unset=Rr((function(e,t){var r=this.unset_action(e);return this._send_request(r,t)})),dn.prototype.union=Rr((function(e,t,r){lr.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)})),dn.prototype.delete=Rr((function(e){var t=this.delete_action();return this._send_request(t,e)})),dn.prototype.remove=Rr((function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)})),dn.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var r=lr.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,endpoint:this._get_config("api_host")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)},dn.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},dn.prototype._get_config=function(e){return this._mixpanel.get_config(e)},dn.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},dn.prototype.remove=dn.prototype.remove,dn.prototype.set=dn.prototype.set,dn.prototype.set_once=dn.prototype.set_once,dn.prototype.union=dn.prototype.union,dn.prototype.unset=dn.prototype.unset,dn.prototype.toString=dn.prototype.toString;var hn=function(){};lr.extend(hn.prototype,pn),hn.prototype._init=function(e){this._mixpanel=e},hn.prototype.set=Tr((function(e,t,r){var n=this.set_action(e,t);return lr.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),n[nn]=lr.extend({},lr.info.people_properties(),n[nn]),this._send_request(n,r)})),hn.prototype.set_once=Tr((function(e,t,r){var n=this.set_once_action(e,t);return lr.isObject(e)&&(r=t),this._send_request(n,r)})),hn.prototype.unset=Tr((function(e,t){var r=this.unset_action(e);return this._send_request(r,t)})),hn.prototype.increment=Tr((function(e,t,r){var n={},o={};return lr.isObject(e)?(lr.each(e,(function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e)))return void ur.error("Invalid increment value passed to mixpanel.people.increment - must be a number");o[t]=e}}),this),r=t):(lr.isUndefined(t)&&(t=1),o[e]=t),n[an]=o,this._send_request(n,r)})),hn.prototype.append=Tr((function(e,t,r){lr.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)})),hn.prototype.remove=Tr((function(e,t,r){lr.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)})),hn.prototype.union=Tr((function(e,t,r){lr.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)})),hn.prototype.track_charge=Tr((function(e,t,r){if(lr.isNumber(e)||(e=parseFloat(e),!isNaN(e)))return this.append("$transactions",lr.extend({$amount:e},t),r);ur.error("Invalid value passed to mixpanel.people.track_charge - must be a number")})),hn.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},hn.prototype.delete_user=function(){if(this._identify_called()){var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)}ur.error("mixpanel.people.delete_user() requires you to call identify() first")},hn.prototype.toString=function(){return this._mixpanel.toString()+".people"},hn.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var r=this._mixpanel.get_property("$device_id"),n=this._mixpanel.get_property("$user_id"),o=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e.$device_id=r),n&&(e.$user_id=n),o&&(e.$had_persisted_distinct_id=o);var i=lr.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:i,endpoint:this._get_config("api_host")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),lr.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),lr.truncate(i,255))},hn.prototype._get_config=function(e){return this._mixpanel.get_config(e)},hn.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},hn.prototype._enqueue=function(e){nn in e?this._mixpanel.persistence._add_to_people_queue(nn,e):on in e?this._mixpanel.persistence._add_to_people_queue(on,e):sn in e?this._mixpanel.persistence._add_to_people_queue(sn,e):an in e?this._mixpanel.persistence._add_to_people_queue(an,e):cn in e?this._mixpanel.persistence._add_to_people_queue(cn,e):un in e?this._mixpanel.persistence._add_to_people_queue(un,e):ln in e?this._mixpanel.persistence._add_to_people_queue(ln,e):ur.error("Invalid call to _enqueue():",e)},hn.prototype._flush_one_queue=function(e,t,r,n){var o=this,i=lr.extend({},this._mixpanel.persistence.load_queue(e)),s=i;lr.isUndefined(i)||!lr.isObject(i)||lr.isEmptyObject(i)||(o._mixpanel.persistence._pop_from_people_queue(e,i),o._mixpanel.persistence.save(),n&&(s=n(i)),t.call(o,s,(function(t,n){0===t&&o._mixpanel.persistence._add_to_people_queue(e,i),lr.isUndefined(r)||r(t,n)})))},hn.prototype._flush=function(e,t,r,n,o,i,s){var a=this;this._flush_one_queue(nn,this.set,e),this._flush_one_queue(on,this.set_once,n),this._flush_one_queue(sn,this.unset,i,(function(e){return lr.keys(e)})),this._flush_one_queue(an,this.increment,t),this._flush_one_queue(ln,this.union,o);var c=this._mixpanel.persistence.load_queue(cn);if(!lr.isUndefined(c)&&lr.isArray(c)&&c.length)for(var l,u=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(cn,l),lr.isUndefined(r)||r(e,t)},p=c.length-1;p>=0;p--)c=this._mixpanel.persistence.load_queue(cn),l=c.pop(),a._mixpanel.persistence.save(),lr.isEmptyObject(l)||a.append(l,u);var d=this._mixpanel.persistence.load_queue(un);if(!lr.isUndefined(d)&&lr.isArray(d)&&d.length)for(var h,f=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(un,h),lr.isUndefined(s)||s(e,t)},m=d.length-1;m>=0;m--)d=this._mixpanel.persistence.load_queue(un),h=d.pop(),a._mixpanel.persistence.save(),lr.isEmptyObject(h)||a.remove(h,f)},hn.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},hn.prototype.set=hn.prototype.set,hn.prototype.set_once=hn.prototype.set_once,hn.prototype.unset=hn.prototype.unset,hn.prototype.increment=hn.prototype.increment,hn.prototype.append=hn.prototype.append,hn.prototype.remove=hn.prototype.remove,hn.prototype.union=hn.prototype.union,hn.prototype.track_charge=hn.prototype.track_charge,hn.prototype.clear_charges=hn.prototype.clear_charges,hn.prototype.delete_user=hn.prototype.delete_user,hn.prototype.toString=hn.prototype.toString;var fn,mn="__mps",gn="__mpso",_n="__mpus",yn="__mpa",vn="__mpap",bn="__mpr",kn="__mpu",Sn="$people_distinct_id",wn="__alias",In="__timers",Cn=[mn,gn,_n,yn,vn,bn,kn,Sn,wn,In],Mn=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;"cookie"!==t&&"localStorage"!==t&&(ur.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&lr.localStorage.is_supported()?this.storage=lr.localStorage:this.storage=lr.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};Mn.prototype.properties=function(){var e={};return this.load(),lr.each(this.props,(function(t,r){lr.include(Cn,r)||(e[r]=t)})),e},Mn.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=lr.extend({},e))}},Mn.prototype.upgrade=function(){var e,t;this.storage===lr.localStorage?(e=lr.cookie.parse(this.name),lr.cookie.remove(this.name),lr.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===lr.cookie&&(t=lr.localStorage.parse(this.name),lr.localStorage.remove(this.name),t&&this.register_once(t))},Mn.prototype.save=function(){this.disabled||this.storage.set(this.name,lr.JSONEncode(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},Mn.prototype.load_prop=function(e){return this.load(),this.props[e]},Mn.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},Mn.prototype.clear=function(){this.remove(),this.props={}},Mn.prototype.register_once=function(e,t,r){return!!lr.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),lr.each(e,(function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)}),this),this.save(),!0)},Mn.prototype.register=function(e,t){return!!lr.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),lr.extend(this.props,e),this.save(),!0)},Mn.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},Mn.prototype.update_search_keyword=function(e){this.register(lr.info.searchInfo(e))},Mn.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:lr.info.referringDomain(e)||"$direct"},"")},Mn.prototype.get_referrer_info=function(){return lr.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},Mn.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)},Mn.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},Mn.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},Mn.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},Mn.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},Mn.prototype.get_cross_subdomain=function(){return this.cross_subdomain},Mn.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},Mn.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],o=this._get_or_create_queue(nn),i=this._get_or_create_queue(on),s=this._get_or_create_queue(sn),a=this._get_or_create_queue(an),c=this._get_or_create_queue(ln),l=this._get_or_create_queue(un,[]),u=this._get_or_create_queue(cn,[]);r===mn?(lr.extend(o,n),this._pop_from_people_queue(an,n),this._pop_from_people_queue(ln,n),this._pop_from_people_queue(sn,n)):r===gn?(lr.each(n,(function(e,t){t in i||(i[t]=e)})),this._pop_from_people_queue(sn,n)):r===_n?lr.each(n,(function(e){lr.each([o,i,a,c],(function(t){e in t&&delete t[e]})),lr.each(u,(function(t){e in t&&delete t[e]})),s[e]=!0})):r===yn?(lr.each(n,(function(e,t){t in o?o[t]+=e:(t in a||(a[t]=0),a[t]+=e)}),this),this._pop_from_people_queue(sn,n)):r===kn?(lr.each(n,(function(e,t){lr.isArray(e)&&(t in c||(c[t]=[]),c[t]=c[t].concat(e))})),this._pop_from_people_queue(sn,n)):r===bn?(l.push(n),this._pop_from_people_queue(cn,n)):r===vn&&(u.push(n),this._pop_from_people_queue(sn,n)),ur.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),ur.log(t),this.save()},Mn.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];lr.isUndefined(r)||lr.each(t,(function(t,n){e===cn||e===un?lr.each(r,(function(e){e[n]===t&&delete e[n]})):delete r[n]}),this)},Mn.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},Mn.prototype._get_queue_key=function(e){return e===nn?mn:e===on?gn:e===sn?_n:e===an?yn:e===cn?vn:e===un?bn:e===ln?kn:void ur.error("Invalid queue:",e)},Mn.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=lr.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)},Mn.prototype.set_event_timer=function(e,t){var r=this.load_prop(In)||{};r[e]=t,this.props[In]=r,this.save()},Mn.prototype.remove_event_timer=function(e){var t=(this.load_prop(In)||{})[e];return lr.isUndefined(t)||(delete this.props[In][e],this.save()),t};var xn,En=function(e,t){throw new Error(e+" not available in this build.")},On=function(e){return e},Tn=function(){},Rn="mixpanel",Ln="base64",Nn="$device:",Dn=lt.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,An=!Dn&&-1===rr.indexOf("MSIE")&&-1===rr.indexOf("Mozilla"),qn=null;Kt.sendBeacon&&(qn=function(){return Kt.sendBeacon.apply(Kt,arguments)});var Pn={track:"track/",engage:"engage/",groups:"groups/",record:"record/"},Fn={api_host:"https://api-js.mixpanel.com",api_routes:Pn,api_method:"POST",api_transport:"XHR",api_payload_format:Ln,app_host:"https://mixpanel.com",cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:Tn,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:Tn,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video",record_canvas:!1,record_collect_fonts:!1,record_idle_timeout_ms:18e5,record_mask_text_class:new RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),record_mask_text_selector:"*",record_max_ms:$t,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},jn=!1,Un=function(){},zn=function(e,t,r){var n,o=r===Rn?xn:xn[r];if(o&&0===fn)n=o;else{if(o&&!lr.isArray(o))return void ur.error("You have already initialized "+r);n=new Un}if(n._cached_groups={},n._init(e,t,r),n.people=new hn,n.people._init(n),!n.get_config("skip_first_touch_marketing")){var i=lr.info.campaignParams(null),s={},a=!1;lr.each(i,(function(e,t){s["initial_"+t]=e,e&&(a=!0)})),a&&n.people.set_once(s)}return dt.DEBUG=dt.DEBUG||n.get_config("debug"),!lr.isUndefined(o)&&lr.isArray(o)&&(n._execute_array.call(n.people,o.people),n._execute_array(o)),n};Un.prototype.init=function(e,t,r){if(lr.isUndefined(r))this.report_error("You must name your new library: init(token, config, name)");else{if(r!==Rn){var n=zn(e,t,r);return xn[r]=n,n._loaded(),n}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},Un.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var n={};"api_payload_format"in t||(t.api_host||Fn.api_host).match(/\.mixpanel\.com/)&&(n.api_payload_format="json");if(this.set_config(lr.extend({},Fn,n,t,{name:r,token:e,callback_fn:(r===Rn?r:Rn+"."+r)+"._jsc"})),this._jsc=Tn,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(lr.localStorage.is_supported(!0)&&Dn){if(this.init_batchers(),qn&<.addEventListener){var o=lr.bind((function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})}),this);lt.addEventListener("pagehide",(function(e){e.persisted&&o()})),lt.addEventListener("visibilitychange",(function(){"hidden"===Zt.visibilityState&&o()}))}}else this._batch_requests=!1,ur.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),lr.each(this.get_batcher_configs(),(function(e){ur.log("Clearing batch queue "+e.queue_key),lr.localStorage.remove(e.queue_key)}));this.persistence=this.cookie=new Mn(this.config),this.unpersisted_superprops={},this._gdpr_init();var i=lr.UUID();this.get_distinct_id()||this.register_once({distinct_id:Nn+i,$device_id:i},"");var s=this.get_config("track_pageview");s&&this._init_url_change_tracking(s),this.get_config("record_sessions_percent")>0&&100*Math.random()<=this.get_config("record_sessions_percent")&&this.start_session_recording()},Un.prototype.start_session_recording=Or((function(){if(lt.MutationObserver){var e=lr.bind((function(){this._recorder=this._recorder||new lt.__mp_recorder(this),this._recorder.startRecording()}),this);lr.isUndefined(lt.__mp_recorder)?En(this.get_config("recorder_src"),e):e()}else ur.critical("Browser does not support MutationObserver; skipping session recording")})),Un.prototype.stop_session_recording=function(){this._recorder?this._recorder.stopRecording():ur.critical("Session recorder module not loaded")},Un.prototype.get_session_recording_properties=function(){var e={},t=this._get_session_replay_id();return t&&(e.$mp_replay_id=t),e},Un.prototype.get_session_replay_url=function(){var e=null,t=this._get_session_replay_id();t&&(e="https://mixpanel.com/projects/replay-redirect?"+lr.HTTPBuildQuery({replay_id:t,distinct_id:this.get_distinct_id(),token:this.get_config("token")}));return e},Un.prototype._get_session_replay_id=function(){var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},Un.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=lr.info.campaignParams(null);lr.each(e,function(e,t){this.unregister(t)}.bind(this))}},Un.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(Zt.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(lr.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(Zt.referrer)},Un.prototype._dom_loaded=function(){lr.each(this.__dom_loaded_queue,(function(e){this._track_dom.apply(this,e)}),this),this.has_opted_out_tracking()||lr.each(this.__request_queue,(function(e){this._send_request.apply(this,e)}),this),delete this.__dom_loaded_queue,delete this.__request_queue},Un.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!jn)return this.__dom_loaded_queue.push([e,t]),!1;var r=(new e).init(this);return r.track.apply(r,t)},Un.prototype._init_url_change_tracking=function(e){var t="";if(this.track_pageview()&&(t=lr.info.currentUrl()),lr.include(["full-url","url-with-path-and-query-string","url-with-path"],e)){lt.addEventListener("popstate",(function(){lt.dispatchEvent(new Event("mp_locationchange"))})),lt.addEventListener("hashchange",(function(){lt.dispatchEvent(new Event("mp_locationchange"))}));var r=lt.history.pushState;"function"==typeof r&&(lt.history.pushState=function(e,t,n){r.call(lt.history,e,t,n),lt.dispatchEvent(new Event("mp_locationchange"))});var n=lt.history.replaceState;"function"==typeof n&&(lt.history.replaceState=function(e,t,r){n.call(lt.history,e,t,r),lt.dispatchEvent(new Event("mp_locationchange"))}),lt.addEventListener("mp_locationchange",function(){var r=lr.info.currentUrl(),n=!1;("full-url"===e?n=r!==t:"url-with-path-and-query-string"===e?n=r.split("#")[0]!==t.split("#")[0]:"url-with-path"===e&&(n=r.split("#")[0].split("?")[0]!==t.split("#")[0].split("?")[0]),n)&&(this.track_pageview()&&(t=r))}.bind(this))}},Un.prototype._prepare_callback=function(e,t){if(lr.isUndefined(e))return null;if(Dn){return function(r){e(r,t)}}var r=this._jsc,n=""+Math.floor(1e8*Math.random()),o=this.get_config("callback_fn")+"["+n+"]";return r[n]=function(o){delete r[n],e(o,t)},o},Un.prototype._send_request=function(e,t,r,n){var o=!0;if(An)return this.__request_queue.push(arguments),o;var i={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;n||!lr.isFunction(r)&&"string"!=typeof r||(n=r,r=null),r=lr.extend(i,r||{}),Dn||(r.method="GET");var a="POST"===r.method,c=qn&&a&&"sendbeacon"===r.transport.toLowerCase(),l=r.verbose;t.verbose&&(l=!0),this.get_config("test")&&(t.test=1),l&&(t.verbose=1),this.get_config("img")&&(t.img=1),Dn||(n?t.callback=n:(l||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=(new Date).getTime().toString(),a&&(s="data="+encodeURIComponent(t.data),delete t.data),e+="?"+lr.HTTPBuildQuery(t);var u=this;if("img"in t){var p=Zt.createElement("img");p.src=e,Zt.body.appendChild(p)}else if(c){try{o=qn(e,s)}catch(e){u.report_error(e),o=!1}try{n&&n(o?1:0)}catch(e){u.report_error(e)}}else if(Dn)try{var d=new XMLHttpRequest;d.open(r.method,e,!0);var h=this.get_config("xhr_headers");if(a&&(h["Content-Type"]="application/x-www-form-urlencoded"),lr.each(h,(function(e,t){d.setRequestHeader(t,e)})),r.timeout_ms&&void 0!==d.timeout){d.timeout=r.timeout_ms;var f=(new Date).getTime()}d.withCredentials=!0,d.onreadystatechange=function(){var e;if(4===d.readyState)if(200===d.status){if(n)if(l){var t;try{t=lr.JSONDecode(d.responseText)}catch(e){if(u.report_error(e),!r.ignore_json_errors)return;t=d.responseText}n(t)}else n(Number(d.responseText))}else if(e=d.timeout&&!d.status&&(new Date).getTime()-f>=d.timeout?"timeout":"Bad HTTP status: "+d.status+" "+d.statusText,u.report_error(e),n)if(l){var o=d.responseHeaders||{};n({status:0,httpStatusCode:d.status,error:e,retryAfter:o["Retry-After"]})}else n(0)},d.send(s)}catch(e){u.report_error(e),o=!1}else{var m=Zt.createElement("script");m.type="text/javascript",m.async=!0,m.defer=!0,m.src=e;var g=Zt.getElementsByTagName("script")[0];g.parentNode.insertBefore(m,g)}return o},Un.prototype._execute_array=function(e){var t,r=[],n=[],o=[];lr.each(e,(function(e){e&&(t=e[0],lr.isArray(t)?o.push(e):"function"==typeof e?e.call(this):lr.isArray(e)&&"alias"===t?r.push(e):lr.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?o.push(e):n.push(e))}),this);var i=function(e,t){lr.each(e,(function(e){if(lr.isArray(e[0])){var r=t;lr.each(e,(function(e){r=r[e[0]].apply(r,e.slice(1))}))}else this[e[0]].apply(this,e.slice(1))}),t)};i(r,this),i(n,this),i(o,this)},Un.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},Un.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token"),t=this.get_config("api_routes");return this._batcher_configs=this._batcher_configs||{events:{type:"events",endpoint:"/"+t.track,queue_key:e+"_ev"},people:{type:"people",endpoint:"/"+t.engage,queue_key:e+"_pp"},groups:{type:"groups",endpoint:"/"+t.groups,queue_key:e+"_gr"}},this._batcher_configs},Un.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=lr.bind((function(e){return new Gr(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:lr.bind((function(t,r,n){this._send_request(this.get_config("api_host")+e.endpoint,this._encode_data_for_request(t),r,this._prepare_callback(n,t))}),this),beforeSendHook:lr.bind((function(t){return this._run_hook("before_send_"+e.type,t)}),this),stopAllBatchingFunc:lr.bind(this.stop_batch_senders,this),usePersistence:!0})}),this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},Un.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,lr.each(this.request_batchers,(function(e){e.start()})))},Un.prototype.stop_batch_senders=function(){this._batch_requests=!1,lr.each(this.request_batchers,(function(e){e.stop(),e.clear()}))},Un.prototype.push=function(e){this._execute_array([e])},Un.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},Un.prototype._encode_data_for_request=function(e){var t=lr.JSONEncode(e);return this.get_config("api_payload_format")===Ln&&(t=lr.base64Encode(t)),{data:t}},Un.prototype._track_or_batch=function(e,t){var r=lr.truncate(e.data,255),n=e.endpoint,o=e.batcher,i=e.should_send_immediately,s=e.send_request_options||{};t=t||Tn;var a=!0,c=lr.bind((function(){return s.skip_hooks||(r=this._run_hook("before_send_"+e.type,r)),r?(ur.log("MIXPANEL REQUEST:"),ur.log(r),this._send_request(n,this._encode_data_for_request(r),s,this._prepare_callback(t,r))):null}),this);return this._batch_requests&&!i?o.enqueue(r).then((function(e){e?t(1,r):c()})):a=c(),a&&r},Un.prototype.track=Or((function(e,t,r,n){n||"function"!=typeof r||(n=r,r=null);var o=(r=r||{}).transport;o&&(r.transport=o);var i=r.send_immediately;if("function"!=typeof n&&(n=Tn),lr.isUndefined(e))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(e)){(t=lr.extend({},t)).token=this.get_config("token");var s=this.persistence.remove_event_timer(e);if(!lr.isUndefined(s)){var a=(new Date).getTime()-s;t.$duration=parseFloat((a/1e3).toFixed(3))}this._set_default_superprops();var c=this.get_config("track_marketing")?lr.info.marketingParams():{};t=lr.extend({},lr.info.properties({mp_loader:this.get_config("mp_loader")}),c,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var l=this.get_config("property_blacklist");lr.isArray(l)?lr.each(l,(function(e){delete t[e]})):this.report_error("Invalid value for property_blacklist config: "+l);var u={event:e,properties:t};return this._track_or_batch({type:"events",data:u,endpoint:this.get_config("api_host")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:i,send_request_options:r},n)}n(0)}})),Un.prototype.set_group=Or((function(e,t,r){lr.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this.people.set(e,t,r)})),Un.prototype.add_group=Or((function(e,t,r){var n=this.get_property(e),o={};return void 0===n?(o[e]=[t],this.register(o)):-1===n.indexOf(t)&&(n.push(t),o[e]=n,this.register(o)),this.people.union(e,t,r)})),Un.prototype.remove_group=Or((function(e,t,r){var n=this.get_property(e);if(void 0!==n){var o=n.indexOf(t);o>-1&&(n.splice(o,1),this.register({group_key:n})),0===n.length&&this.unregister(e)}return this.people.remove(e,t,r)})),Un.prototype.track_with_groups=Or((function(e,t,r,n){var o=lr.extend({},t||{});return lr.each(r,(function(e,t){null!=e&&(o[t]=e)})),this.track(e,o,n)})),Un.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},Un.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},Un.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),n=this._cached_groups[r];return void 0!==n&&n._group_key===e&&n._group_id===t||((n=new dn)._init(this,e,t),this._cached_groups[r]=n),n},Un.prototype.track_pageview=Or((function(e,t){"object"!=typeof e&&(e={});var r=(t=t||{}).event_name||"$mp_web_page_view",n=lr.extend(lr.info.mpPageViewProperties(),lr.info.campaignParams(),lr.info.clickParams()),o=lr.extend({},n,e);return this.track(r,o)})),Un.prototype.track_links=function(){return this._track_dom.call(this,tn,arguments)},Un.prototype.track_forms=function(){return this._track_dom.call(this,rn,arguments)},Un.prototype.time_event=function(e){lr.isUndefined(e)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this.persistence.set_event_timer(e,(new Date).getTime())};var Bn={persistent:!0},$n=function(e){var t;return t=lr.isObject(e)?e:lr.isUndefined(e)?{}:{days:e},lr.extend({},Bn,t)};Un.prototype.register=function(e,t){var r=$n(t);r.persistent?this.persistence.register(e,r.days):lr.extend(this.unpersisted_superprops,e)},Un.prototype.register_once=function(e,t,r){var n=$n(r);n.persistent?this.persistence.register_once(e,t,n.days):(void 0===t&&(t="None"),lr.each(e,(function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)}),this))},Un.prototype.unregister=function(e,t){(t=$n(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]},Un.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},Un.prototype.identify=function(e,t,r,n,o,i,s,a){var c=this.get_distinct_id();if(e&&c!==e){if("string"==typeof e&&0===e.indexOf(Nn))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var l=c;this.register_once({$had_persisted_distinct_id:!0,$device_id:l},"")}e!==c&&e!==this.get_property(wn)&&(this.unregister(wn),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,n,o,i,s,a),e!==c&&this.track("$identify",{distinct_id:e,$anon_distinct_id:c},{skip_hooks:!0})},Un.prototype.reset=function(){this.persistence.clear(),this._flags.identify_called=!1;var e=lr.UUID();this.register_once({distinct_id:Nn+e,$device_id:e},"")},Un.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},Un.prototype.alias=function(e,t){if(e===this.get_property(Sn))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return lr.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(wn,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},(function(){r.identify(e)}))):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},Un.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},Un.prototype.set_config=function(e){lr.isObject(e)&&(lr.extend(this.config,e),e.batch_size&&lr.each(this.request_batchers,(function(e){e.resetBatchSize()})),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),dt.DEBUG=dt.DEBUG||this.get_config("debug"))},Un.prototype.get_config=function(e){return this.config[e]},Un.prototype._run_hook=function(e){var t=(this.config.hooks[e]||On).apply(this,Jt.call(arguments,1));return void 0===t&&(this.report_error(e+" hook did not return a value"),t=null),t},Un.prototype.get_property=function(e){return this.persistence.load_prop([e])},Un.prototype.toString=function(){var e=this.get_config("name");return e!==Rn&&(e=Rn+"."+e),e},Un.prototype._event_is_disabled=function(e){return lr.isBlockedUA(rr)||this._flags.disable_all_events||lr.include(this.__disabled_events,e)},Un.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&lr.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_tracking()||!this.get_config("opt_out_tracking_by_default")&&!lr.cookie.get("mp_optout")||(lr.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},Un.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else{if(!e||!e.enable_persistence)return;t=!1}this.get_config("disable_persistence")||this.persistence.disabled===t||this.persistence.set_disabled(t),t?this.stop_batch_senders():this._batchers_were_started&&this.start_batch_senders()},Un.prototype._gdpr_call_func=function(e,t){return t=lr.extend({track:lr.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),lr.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})},Un.prototype.opt_in_tracking=function(e){e=lr.extend({enable_persistence:!0},e),this._gdpr_call_func(Cr,e),this._gdpr_update_persistence(e)},Un.prototype.opt_out_tracking=function(e){(e=lr.extend({clear_persistence:!0,delete_user:!0},e)).delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(Mr,e),this._gdpr_update_persistence(e)},Un.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(xr,e)},Un.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(Er,e)},Un.prototype.clear_opt_in_out_tracking=function(e){e=lr.extend({enable_persistence:!0},e),this._gdpr_call_func(Lr,e),this._gdpr_update_persistence(e)},Un.prototype.report_error=function(e,t){ur.error.apply(ur.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(t){ur.error(t)}},Un.prototype.init=Un.prototype.init,Un.prototype.reset=Un.prototype.reset,Un.prototype.disable=Un.prototype.disable,Un.prototype.time_event=Un.prototype.time_event,Un.prototype.track=Un.prototype.track,Un.prototype.track_links=Un.prototype.track_links,Un.prototype.track_forms=Un.prototype.track_forms,Un.prototype.track_pageview=Un.prototype.track_pageview,Un.prototype.register=Un.prototype.register,Un.prototype.register_once=Un.prototype.register_once,Un.prototype.unregister=Un.prototype.unregister,Un.prototype.identify=Un.prototype.identify,Un.prototype.alias=Un.prototype.alias,Un.prototype.name_tag=Un.prototype.name_tag,Un.prototype.set_config=Un.prototype.set_config,Un.prototype.get_config=Un.prototype.get_config,Un.prototype.get_property=Un.prototype.get_property,Un.prototype.get_distinct_id=Un.prototype.get_distinct_id,Un.prototype.toString=Un.prototype.toString,Un.prototype.opt_out_tracking=Un.prototype.opt_out_tracking,Un.prototype.opt_in_tracking=Un.prototype.opt_in_tracking,Un.prototype.has_opted_out_tracking=Un.prototype.has_opted_out_tracking,Un.prototype.has_opted_in_tracking=Un.prototype.has_opted_in_tracking,Un.prototype.clear_opt_in_out_tracking=Un.prototype.clear_opt_in_out_tracking,Un.prototype.get_group=Un.prototype.get_group,Un.prototype.set_group=Un.prototype.set_group,Un.prototype.add_group=Un.prototype.add_group,Un.prototype.remove_group=Un.prototype.remove_group,Un.prototype.track_with_groups=Un.prototype.track_with_groups,Un.prototype.start_batch_senders=Un.prototype.start_batch_senders,Un.prototype.stop_batch_senders=Un.prototype.stop_batch_senders,Un.prototype.start_session_recording=Un.prototype.start_session_recording,Un.prototype.stop_session_recording=Un.prototype.stop_session_recording,Un.prototype.get_session_recording_properties=Un.prototype.get_session_recording_properties,Un.prototype.get_session_replay_url=Un.prototype.get_session_replay_url,Un.prototype.DEFAULT_API_ROUTES=Pn,Mn.prototype.properties=Mn.prototype.properties,Mn.prototype.update_search_keyword=Mn.prototype.update_search_keyword,Mn.prototype.update_referrer_info=Mn.prototype.update_referrer_info,Mn.prototype.get_cross_subdomain=Mn.prototype.get_cross_subdomain,Mn.prototype.clear=Mn.prototype.clear;var Wn={},Hn=function(){xn.init=function(e,t,r){if(r)return xn[r]||(xn[r]=Wn[r]=zn(e,t,r),xn[r]._loaded()),xn[r];var n=xn;Wn[Rn]?n=Wn[Rn]:e&&((n=zn(e,t,Rn))._loaded(),Wn[Rn]=n),xn=n,1===fn&&(lt[Rn]=xn),lr.each(Wn,(function(e,t){t!==Rn&&(xn[t]=e)})),xn._=lr}};var Gn=(En=function(e,t){t()},fn=0,xn=new Un,Hn(),xn.init(),function(){function e(){e.done||(e.done=!0,jn=!0,An=!1,lr.each(Wn,(function(e){e._dom_loaded()})))}if(Zt.addEventListener)"complete"===Zt.readyState?e():Zt.addEventListener("DOMContentLoaded",e,!1);else if(Zt.attachEvent){Zt.attachEvent("onreadystatechange",e);var t=!1;try{t=null===lt.frameElement}catch(e){}Zt.documentElement.doScroll&&t&&function t(){try{Zt.documentElement.doScroll("left")}catch(e){return void setTimeout(t,1)}e()}()}lr.register_event(lt,"load",e,!0)}(),xn);const Vn="rid",Jn="rozmovaAnalyticsParams",Yn=["utm_source","utm_medium","utm_campaign","utm_campaign_id","utm_advertiser_id","utm_adset_id","utm_adset_name","utm_ad_id","utm_ad_name","utm_keyword"],Xn="G-GYQLL028VQ",Qn="https://tagging.clearly.help",Kn=["en","uk","pl","es","ru"],Zn=["view_item_list","select_item","view_item","begin_checkout","add_payment_info"],eo=["rozmova.me","clearly.help"],to=e=>new URLSearchParams(window.location.search).get(e);function ro(){const e=navigator.userAgent;return e.indexOf("Edg")>-1?"Microsoft Edge":e.indexOf("Chrome")>-1?"Chrome":e.indexOf("Firefox")>-1?"Firefox":e.indexOf("Safari")>-1?"Safari":e.indexOf("Opera")>-1?"Opera":e.indexOf("Trident")>-1||e.indexOf("MSIE")>-1?"Internet Explorer":"Unknown"}function no(){const e=navigator.userAgent;return/Mobi|Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)?"Mobile":"Desktop"}function oo(){const e=navigator.userAgent;return e.includes("Win")?"Windows":e.includes("Mac")?"macOS":e.includes("X11")||e.includes("Linux")?"Linux":e.includes("Android")?"Android":e.includes("like Mac")?"iOS":"Unknown OS"}const io=()=>{const e=window.location.hostname.split("."),t=e.length;return 1===e.length?e[0]:e.slice(t-2,t).join(".")},so=["accounts.google.com","appleid.apple.com","checkout.stripe.com"],ao=()=>{const e=document.referrer;if(e){const t=new URL(e);if([...so,io()].some((e=>t.hostname.includes(e))))return null}return e};function co(){const e=ao();if(!e)return null;const t={"google.com":"q","bing.com":"q","yahoo.com":"p","duckduckgo.com":"q","ask.com":"q","baidu.com":"wd","yandex.com":"text"},r=new URL(e);for(const[e,n]of Object.entries(t))if(r.hostname.includes(e)){const e=r.searchParams.get(n);return e?decodeURIComponent(e):null}return null}const lo=()=>{const e=o.get("_ga");if(!e)return"";const t=e.split(".");return t[2]+"."+t[3]};function uo(){const e=o.get("_ga_GYQLL028VQ");if(!e)return null;const t=e.split("."),r=t[0];if("GS1"===r&&4===t.length)return t[2];if("GS2"===r&&t.length>=3){const e=t[2].match(/s(\d+)/);if(e)return e[1]}return null}const po=e=>{if(!e)return"external";return eo.some((t=>e.includes(t)))?"internal":"external"};const ho=e=>{const t=io();o.set(Vn,e,{domain:t}),localStorage.setItem(Vn,e)},fo=()=>{const e=((e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")),""))();return ho(e),e},mo=()=>{const e=to(Vn);return e&&ho(e),e||localStorage.getItem(Vn)||o.get(Vn)||fo()},go="my_profile_id",_o=()=>o.get(go),yo="my_profile_email",vo=()=>o.get(yo),bo="opt-in",ko="opt-out",So="show--consent",wo="show--preferences",Io="disable--interaction",Co="data-category",Mo="div",xo="button",Eo="aria-hidden",Oo="btn-group",To="click",Ro="data-role",Lo="consentModal",No="preferencesModal";const Do=new class{constructor(){this.t={mode:bo,revision:0,autoShow:!0,lazyHtmlGeneration:!0,autoClearCookies:!0,manageScriptTags:!0,hideFromBots:!0,cookie:{name:"cc_cookie",expiresAfterDays:182,domain:"",path:"/",sameSite:"Lax"}},this.o={i:{},l:"",_:{},u:{},p:{},m:[],v:!1,h:null,C:null,S:null,M:"",D:!0,T:!1,k:!1,A:!1,N:!1,H:[],V:!1,I:!0,L:[],j:!1,F:"",P:!1,O:[],R:[],B:[],G:[],J:!1,U:!1,$:!1,q:[],K:[],W:[],X:{},Y:{},Z:{},ee:{},te:{},oe:[]},this.ne={ae:{},se:{}},this.ce={},this.re={ie:"cc:onFirstConsent",le:"cc:onConsent",de:"cc:onChange",fe:"cc:onModalShow",_e:"cc:onModalHide",ue:"cc:onModalReady"}}},Ao=(e,t)=>e.indexOf(t),qo=(e,t)=>-1!==Ao(e,t),Po=e=>Array.isArray(e),Fo=e=>"string"==typeof e,jo=e=>!!e&&"object"==typeof e&&!Po(e),Uo=e=>"function"==typeof e,zo=e=>Object.keys(e),Bo=e=>Array.from(new Set(e)),$o=()=>document.activeElement,Wo=e=>e.preventDefault(),Ho=(e,t)=>e.querySelectorAll(t),Go=e=>{const t=document.createElement(e);return e===xo&&(t.type=e),t},Vo=(e,t,r)=>e.setAttribute(t,r),Jo=(e,t,r)=>{e.removeAttribute(r?"data-"+t:t)},Yo=(e,t,r)=>e.getAttribute(r?"data-"+t:t),Xo=(e,t)=>e.appendChild(t),Qo=(e,t)=>e.classList.add(t),Ko=(e,t)=>Qo(e,"cm__"+t),Zo=(e,t)=>Qo(e,"pm__"+t),ei=(e,t)=>e.classList.remove(t),ti=e=>{if("object"!=typeof e)return e;if(e instanceof Date)return new Date(e.getTime());let t=Array.isArray(e)?[]:{};for(let r in e){let n=e[r];t[r]=ti(n)}return t},ri=(e,t)=>dispatchEvent(new CustomEvent(e,{detail:t})),ni=(e,t,r,n)=>{e.addEventListener(t,r),n&&Do.o.m.push({pe:e,me:t,ge:r})},oi=(e,t)=>{const r=e||[],n=t||[];return r.filter((e=>!qo(n,e))).concat(n.filter((e=>!qo(r,e))))},ii=e=>{Do.o.R=Bo(e),Do.o.F=(()=>{let e="custom";const{R:t,O:r,B:n}=Do.o,o=t.length;return o===r.length?e="all":o===n.length&&(e="necessary"),e})()},si=(e,t,r,n)=>{const o="accept-",{show:i,showPreferences:s,hide:a,hidePreferences:c,acceptCategory:l}=t,u=e||document,p=e=>Ho(u,`[data-cc="${e}"]`),d=(e,t)=>{Wo(e),l(t),c(),a()},h=p("show-preferencesModal"),f=p("show-consentModal"),m=p(o+"all"),g=p(o+"necessary"),_=p(o+"custom"),y=Do.t.lazyHtmlGeneration;for(const e of h)Vo(e,"aria-haspopup","dialog"),ni(e,To,(e=>{Wo(e),s()})),y&&(ni(e,"mouseenter",(e=>{Wo(e),Do.o.N||r(t,n)}),!0),ni(e,"focus",(()=>{Do.o.N||r(t,n)})));for(let e of f)Vo(e,"aria-haspopup","dialog"),ni(e,To,(e=>{Wo(e),i(!0)}),!0);for(let e of m)ni(e,To,(e=>{d(e,"all")}),!0);for(let e of _)ni(e,To,(e=>{d(e)}),!0);for(let e of g)ni(e,To,(e=>{d(e,[])}),!0)},ai=(e,t)=>{e&&(t&&(e.tabIndex=-1),e.focus(),t&&e.removeAttribute("tabindex"))},ci=(e,t)=>{const r=n=>{n.target.removeEventListener("transitionend",r),"opacity"===n.propertyName&&"1"===getComputedStyle(e).opacity&&ai((e=>1===e?Do.ne.be:Do.ne.ve)(t))};ni(e,"transitionend",r)};let li;const ui=e=>{clearTimeout(li),e?Qo(Do.ne.ye,Io):li=setTimeout((()=>{ei(Do.ne.ye,Io)}),500)},pi=["M 19.5 4.5 L 4.5 19.5 M 4.5 4.501 L 19.5 19.5","M 3.572 13.406 L 8.281 18.115 L 20.428 5.885","M 21.999 6.94 L 11.639 17.18 L 2.001 6.82 "],di=(e=0,t=1.5)=>`<svg viewBox="0 0 24 24" stroke-width="${t}"><path d="${pi[e]}"/></svg>`,hi=e=>{const t=Do.ne,r=Do.o;(e=>{const n=e===t.he,o=r.i.disablePageInteraction?t.ye:n?t.Ce:t.ye;ni(o,"keydown",(t=>{if("Tab"!==t.key||!(n?r.k&&!r.A:r.A))return;const o=$o(),i=n?r.q:r.K;0!==i.length&&(t.shiftKey?o!==i[0]&&e.contains(o)||(Wo(t),ai(i[1])):o!==i[1]&&e.contains(o)||(Wo(t),ai(i[0])))}),!0)})(e)},fi=["[href]",xo,"input","details","[tabindex]"].map((e=>e+':not([tabindex="-1"])')).join(","),mi=e=>{const{o:t,ne:r}=Do,n=(e,t)=>{const r=Ho(e,fi);t[0]=r[0],t[1]=r[r.length-1]};1===e&&t.T&&n(r.he,t.q),2===e&&t.N&&n(r.we,t.K)},gi=(e,t,r)=>{const{de:n,le:o,ie:i,_e:s,ue:a,fe:c}=Do.ce,l=Do.re;if(t){const n={modalName:t};return e===l.fe?Uo(c)&&c(n):e===l._e?Uo(s)&&s(n):(n.modal=r,Uo(a)&&a(n)),ri(e,n)}const u={cookie:Do.o.p};e===l.ie?Uo(i)&&i(ti(u)):e===l.le?Uo(o)&&o(ti(u)):(u.changedCategories=Do.o.L,u.changedServices=Do.o.ee,Uo(n)&&n(ti(u))),ri(e,ti(u))},_i=(e,t)=>{try{return e()}catch(e){return!t&&console.warn("CookieConsent:",e),!1}},yi=e=>{const{Y:t,ee:r,O:n,X:o,oe:i,p:s,L:a}=Do.o;for(const e of n){const n=r[e]||t[e]||[];for(const r of n){const n=o[e][r];if(!n)continue;const{onAccept:i,onReject:s}=n;!n.Se&&qo(t[e],r)?(n.Se=!0,Uo(i)&&i()):n.Se&&!qo(t[e],r)&&(n.Se=!1,Uo(s)&&s())}}if(!Do.t.manageScriptTags)return;const c=i,l=e||s.categories||[],u=(e,n)=>{if(n>=e.length)return;const o=i[n];if(o.xe)return u(e,n+1);const s=o.Me,c=o.De,p=o.Te,d=qo(l,c),h=!!p&&qo(t[c],p);if(!p&&!o.ke&&d||!p&&o.ke&&!d&&qo(a,c)||p&&!o.ke&&h||p&&o.ke&&!h&&qo(r[c]||[],p)){o.xe=!0;const t=Yo(s,"type",!0);Jo(s,"type",!!t),Jo(s,Co);let r=Yo(s,"src",!0);r&&Jo(s,"src",!0);const i=Go("script");i.textContent=s.innerHTML;for(const{nodeName:e}of s.attributes)Vo(i,e,s[e]||Yo(s,e));t&&(i.type=t),r?i.src=r:r=s.src;const a=!!r&&(!t||["text/javascript","module"].includes(t));if(a&&(i.onload=i.onerror=()=>{u(e,++n)}),s.replaceWith(i),a)return}u(e,++n)};u(c,0)},vi="bottom",bi="left",ki="center",Si="right",wi="inline",Ii="wide",Ci="pm--",Mi=["middle","top",vi],xi=[bi,ki,Si],Ei={box:{Ee:[Ii,wi],Ae:Mi,Ne:xi,He:vi,Ve:Si},cloud:{Ee:[wi],Ae:Mi,Ne:xi,He:vi,Ve:ki},bar:{Ee:[wi],Ae:Mi.slice(1),Ne:[],He:vi,Ve:""}},Oi={box:{Ee:[],Ae:[],Ne:[],He:"",Ve:""},bar:{Ee:[Ii],Ae:[],Ne:[bi,Si],He:"",Ve:bi}},Ti=e=>{const t=Do.o.i.guiOptions,r=t&&t.consentModal,n=t&&t.preferencesModal;0===e&&Ri(Do.ne.he,Ei,r,"cm--","box","cm"),1===e&&Ri(Do.ne.we,Oi,n,Ci,"box","pm")},Ri=(e,t,r,n,o,i)=>{e.className=i;const s=r&&r.layout,a=r&&r.position,c=r&&r.flipButtons,l=!r||!1!==r.equalWeightButtons,u=s&&s.split(" ")||[],p=u[0],d=u[1],h=p in t?p:o,f=t[h],m=qo(f.Ee,d)&&d,g=a&&a.split(" ")||[],_=g[0],y=n===Ci?g[0]:g[1],v=qo(f.Ae,_)?_:f.He,b=qo(f.Ne,y)?y:f.Ve,k=t=>{t&&Qo(e,n+t)};k(h),k(m),k(v),k(b),c&&k("flip");const S=i+"__btn--secondary";if("cm"===i){const{Ie:e,Le:t}=Do.ne;e&&(l?ei(e,S):Qo(e,S)),t&&(l?ei(t,S):Qo(t,S))}else{const{je:e}=Do.ne;e&&(l?ei(e,S):Qo(e,S))}},Li=(e,t)=>{const r=Do.o,n=Do.ne,{hide:o,hidePreferences:i,acceptCategory:s}=e,a=e=>{s(e),i(),o()},c=r.u&&r.u.preferencesModal;if(!c)return;const l=c.title,u=c.closeIconLabel,p=c.acceptAllBtn,d=c.acceptNecessaryBtn,h=c.savePreferencesBtn,f=c.sections||[],m=p||d||h;if(n.Fe)n.Pe=Go(Mo),Zo(n.Pe,"body");else{n.Fe=Go(Mo),Qo(n.Fe,"pm-wrapper");const e=Go("div");Qo(e,"pm-overlay"),Xo(n.Fe,e),ni(e,To,i),n.we=Go(Mo),Qo(n.we,"pm"),Vo(n.we,"role","dialog"),Vo(n.we,Eo,!0),Vo(n.we,"aria-modal",!0),Vo(n.we,"aria-labelledby","pm__title"),ni(n.ye,"keydown",(e=>{27===e.keyCode&&i()}),!0),n.Oe=Go(Mo),Zo(n.Oe,"header"),n.Re=Go("h2"),Zo(n.Re,"title"),n.Re.id="pm__title",n.Be=Go(xo),Zo(n.Be,"close-btn"),Vo(n.Be,"aria-label",c.closeIconLabel||""),ni(n.Be,To,i),n.Ge=Go("span"),n.Ge.innerHTML=di(),Xo(n.Be,n.Ge),n.Je=Go(Mo),Zo(n.Je,"body"),n.Ue=Go(Mo),Zo(n.Ue,"footer");var g=Go(Mo);Qo(g,"btns");var _=Go(Mo),y=Go(Mo);Zo(_,Oo),Zo(y,Oo),Xo(n.Ue,_),Xo(n.Ue,y),Xo(n.Oe,n.Re),Xo(n.Oe,n.Be),n.ve=Go(Mo),Vo(n.ve,"tabIndex",-1),Xo(n.we,n.ve),Xo(n.we,n.Oe),Xo(n.we,n.Je),m&&Xo(n.we,n.Ue),Xo(n.Fe,n.we)}let v;l&&(n.Re.innerHTML=l,u&&Vo(n.Be,"aria-label",u)),f.forEach(((e,t)=>{const o=e.title,i=e.description,s=e.linkedCategory,a=s&&r.P[s],l=e.cookieTable,u=l&&l.body,p=l&&l.caption,d=u&&u.length>0,h=!!a,f=h&&r.X[s],m=jo(f)&&zo(f)||[],g=h&&(!!i||!!d||zo(f).length>0);var _=Go(Mo);if(Zo(_,"section"),g||i){var y=Go(Mo);Zo(y,"section-desc-wrapper")}let b=m.length;if(g&&b>0){const e=Go(Mo);Zo(e,"section-services");for(const t of m){const r=f[t],n=r&&r.label||t,o=Go(Mo),i=Go(Mo),c=Go(Mo),l=Go(Mo);Zo(o,"service"),Zo(l,"service-title"),Zo(i,"service-header"),Zo(c,"service-icon");const u=Ni(n,t,a,!0,s);l.innerHTML=n,Xo(i,c),Xo(i,l),Xo(o,i),Xo(o,u),Xo(e,o)}Xo(y,e)}if(o){var k=Go(Mo),S=Go(h?xo:Mo);if(Zo(k,"section-title-wrapper"),Zo(S,"section-title"),S.innerHTML=o,Xo(k,S),h){const e=Go("span");e.innerHTML=di(2,3.5),Zo(e,"section-arrow"),Xo(k,e),_.className+="--toggle";const t=Ni(o,s,a);let r=c.serviceCounterLabel;if(b>0&&Fo(r)){let e=Go("span");Zo(e,"badge"),Zo(e,"service-counter"),Vo(e,Eo,!0),Vo(e,"data-servicecounter",b),r&&(r=r.split("|"),r=r.length>1&&b>1?r[1]:r[0],Vo(e,"data-counterlabel",r)),e.innerHTML=b+(r?" "+r:""),Xo(S,e)}if(g){Zo(_,"section--expandable");var w=s+"-desc";Vo(S,"aria-expanded",!1),Vo(S,"aria-controls",w)}Xo(k,t)}else Vo(S,"role","heading"),Vo(S,"aria-level","3");Xo(_,k)}if(i){var I=Go("p");Zo(I,"section-desc"),I.innerHTML=i,Xo(y,I)}if(g&&(Vo(y,Eo,"true"),y.id=w,((e,t,r)=>{ni(S,To,(()=>{t.classList.contains("is-expanded")?(ei(t,"is-expanded"),Vo(r,"aria-expanded","false"),Vo(e,Eo,"true")):(Qo(t,"is-expanded"),Vo(r,"aria-expanded","true"),Vo(e,Eo,"false"))}))})(y,_,S),d)){const e=Go("table"),r=Go("thead"),o=Go("tbody");if(p){const t=Go("caption");Zo(t,"table-caption"),t.innerHTML=p,e.appendChild(t)}Zo(e,"section-table"),Zo(r,"table-head"),Zo(o,"table-body");const i=l.headers,s=zo(i),a=n.$e.createDocumentFragment(),c=Go("tr");for(const e of s){const r=i[e],n=Go("th");n.id="cc__row-"+r+t,Vo(n,"scope","col"),Zo(n,"table-th"),n.innerHTML=r,Xo(a,n)}Xo(c,a),Xo(r,c);const d=n.$e.createDocumentFragment();for(const e of u){const r=Go("tr");Zo(r,"table-tr");for(const n of s){const o=i[n],s=e[n],a=Go("td"),c=Go(Mo);Zo(a,"table-td"),Vo(a,"data-column",o),Vo(a,"headers","cc__row-"+o+t),c.insertAdjacentHTML("beforeend",s),Xo(a,c),Xo(r,a)}Xo(d,r)}Xo(o,d),Xo(e,r),Xo(e,o),Xo(y,e)}(g||i)&&Xo(_,y);const C=n.Pe||n.Je;h?(v||(v=Go(Mo),Zo(v,"section-toggles")),v.appendChild(_)):v=null,Xo(C,v||_)})),p&&(n.ze||(n.ze=Go(xo),Zo(n.ze,"btn"),Vo(n.ze,Ro,"all"),Xo(_,n.ze),ni(n.ze,To,(()=>a("all")))),n.ze.innerHTML=p),d&&(n.je||(n.je=Go(xo),Zo(n.je,"btn"),Vo(n.je,Ro,"necessary"),Xo(_,n.je),ni(n.je,To,(()=>a([])))),n.je.innerHTML=d),h&&(n.qe||(n.qe=Go(xo),Zo(n.qe,"btn"),Zo(n.qe,"btn--secondary"),Vo(n.qe,Ro,"save"),Xo(y,n.qe),ni(n.qe,To,(()=>a()))),n.qe.innerHTML=h),n.Pe&&(n.we.replaceChild(n.Pe,n.Je),n.Je=n.Pe),Ti(1),r.N||(r.N=!0,gi(Do.re.ue,No,n.we),t(e),Xo(n.Ce,n.Fe),hi(n.we),setTimeout((()=>Qo(n.Fe,"cc--anim")),100)),mi(2)};function Ni(e,t,r,n,o){const i=Do.o,s=Do.ne,a=Go("label"),c=Go("input"),l=Go("span"),u=Go("span"),p=Go("span"),d=Go("span"),h=Go("span");if(d.innerHTML=di(1,3),h.innerHTML=di(0,3),c.type="checkbox",Qo(a,"section__toggle-wrapper"),Qo(c,"section__toggle"),Qo(d,"toggle__icon-on"),Qo(h,"toggle__icon-off"),Qo(l,"toggle__icon"),Qo(u,"toggle__icon-circle"),Qo(p,"toggle__label"),Vo(l,Eo,"true"),n?(Qo(a,"toggle-service"),Vo(c,Co,o),s.se[o][t]=c):s.ae[t]=c,n?(e=>{ni(c,"change",(()=>{const t=s.se[e],r=s.ae[e];i.Z[e]=[];for(let r in t){const n=t[r];n.checked&&i.Z[e].push(n.value)}r.checked=i.Z[e].length>0}))})(o):(e=>{ni(c,To,(()=>{const t=s.se[e],r=c.checked;i.Z[e]=[];for(let n in t)t[n].checked=r,r&&i.Z[e].push(n)}))})(t),c.value=t,p.textContent=e.replace(/<.*>.*<\/.*>/gm,""),Xo(u,h),Xo(u,d),Xo(l,u),i.D)(r.readOnly||r.enabled)&&(c.checked=!0);else if(n){const e=i.Y[o];c.checked=r.readOnly||qo(e,t)}else qo(i.R,t)&&(c.checked=!0);return r.readOnly&&(c.disabled=!0),Xo(a,c),Xo(a,l),Xo(a,p),a}const Di=()=>{const e=Go("span");return Do.ne.Ke||(Do.ne.Ke=e),e},Ai=(e,t)=>{const r=Do.o,n=Do.ne,{hide:o,showPreferences:i,acceptCategory:s}=e,a=r.u&&r.u.consentModal;if(!a)return;const c=a.acceptAllBtn,l=a.acceptNecessaryBtn,u=a.showPreferencesBtn,p=a.closeIconLabel,d=a.footer,h=a.label,f=a.title,m=e=>{o(),s(e)};if(!n.Qe){n.Qe=Go(Mo),n.he=Go(Mo),n.We=Go(Mo),n.Xe=Go(Mo),n.Ye=Go(Mo),Qo(n.Qe,"cm-wrapper"),Qo(n.he,"cm"),Ko(n.We,"body"),Ko(n.Xe,"texts"),Ko(n.Ye,"btns"),Vo(n.he,"role","dialog"),Vo(n.he,"aria-modal","true"),Vo(n.he,Eo,"false"),Vo(n.he,"aria-describedby","cm__desc"),h?Vo(n.he,"aria-label",h):f&&Vo(n.he,"aria-labelledby","cm__title");const e="box",t=r.i.guiOptions,o=t&&t.consentModal,i=(o&&o.layout||e).split(" ")[0]===e;f&&p&&i&&(n.Le||(n.Le=Go(xo),n.Le.innerHTML=di(),Ko(n.Le,"btn"),Ko(n.Le,"btn--close"),ni(n.Le,To,(()=>{m([])})),Xo(n.We,n.Le)),Vo(n.Le,"aria-label",p)),Xo(n.We,n.Xe),(c||l||u)&&Xo(n.We,n.Ye),n.be=Go(Mo),Vo(n.be,"tabIndex",-1),Xo(n.he,n.be),Xo(n.he,n.We),Xo(n.Qe,n.he)}f&&(n.Ze||(n.Ze=Go("h2"),n.Ze.className=n.Ze.id="cm__title",Xo(n.Xe,n.Ze)),n.Ze.innerHTML=f);let g=a.description;if(g&&(r.V&&(g=g.replace("{{revisionMessage}}",r.I?"":a.revisionMessage||"")),n.et||(n.et=Go("p"),n.et.className=n.et.id="cm__desc",Xo(n.Xe,n.et)),n.et.innerHTML=g),c&&(n.tt||(n.tt=Go(xo),Xo(n.tt,Di()),Ko(n.tt,"btn"),Vo(n.tt,Ro,"all"),ni(n.tt,To,(()=>{m("all")}))),n.tt.firstElementChild.innerHTML=c),l&&(n.Ie||(n.Ie=Go(xo),Xo(n.Ie,Di()),Ko(n.Ie,"btn"),Vo(n.Ie,Ro,"necessary"),ni(n.Ie,To,(()=>{m([])}))),n.Ie.firstElementChild.innerHTML=l),u&&(n.ot||(n.ot=Go(xo),Xo(n.ot,Di()),Ko(n.ot,"btn"),Ko(n.ot,"btn--secondary"),Vo(n.ot,Ro,"show"),ni(n.ot,"mouseenter",(()=>{r.N||Li(e,t)})),ni(n.ot,To,i)),n.ot.firstElementChild.innerHTML=u),n.nt||(n.nt=Go(Mo),Ko(n.nt,Oo),c&&Xo(n.nt,n.tt),l&&Xo(n.nt,n.Ie),(c||l)&&Xo(n.We,n.nt),Xo(n.Ye,n.nt)),n.ot&&!n.st&&(n.st=Go(Mo),n.Ie&&n.tt?(Ko(n.st,Oo),Xo(n.st,n.ot),Xo(n.Ye,n.st)):(Xo(n.nt,n.ot),Ko(n.nt,Oo+"--uneven"))),d){if(!n.ct){let e=Go(Mo),t=Go(Mo);n.ct=Go(Mo),Ko(e,"footer"),Ko(t,"links"),Ko(n.ct,"link-group"),Xo(t,n.ct),Xo(e,t),Xo(n.he,e)}n.ct.innerHTML=d}Ti(0),r.T||(r.T=!0,gi(Do.re.ue,Lo,n.he),t(e),Xo(n.Ce,n.Qe),hi(n.he),setTimeout((()=>Qo(n.Qe,"cc--anim")),100)),mi(1),si(n.We,e,Li,t)},qi=e=>{if(!Fo(e))return null;if(e in Do.o._)return e;let t=e.slice(0,2);return t in Do.o._?t:null},Pi=()=>Do.o.l||Do.o.i.language.default,Fi=e=>{e&&(Do.o.l=e)},ji=()=>{const e=Do.ne;if(e.Ce)return;e.Ce=Go(Mo),e.Ce.id="cc-main",e.Ce.setAttribute("data-nosnippet",""),(()=>{let e=Do.o.i.language.rtl,t=Do.ne.Ce;e&&t&&(Po(e)||(e=[e]),qo(e,Do.o.l)?Qo(t,"cc--rtl"):ei(t,"cc--rtl"))})();let t=Do.o.i.root;t&&Fo(t)&&(t=document.querySelector(t)),(t||e.$e.body).appendChild(e.Ce)},Ui=(e,t)=>{if(t instanceof RegExp)return e.filter((e=>t.test(e)));{const r=Ao(e,t);return r>-1?[e[r]]:[]}},zi=e=>{const{hostname:t,protocol:r}=location,{name:n,path:o,domain:i,sameSite:s,useLocalStorage:a}=Do.t.cookie,c=864e5*(()=>{const e=Do.t.cookie.expiresAfterDays;return Uo(e)?e(Do.o.F):e})(),l=new Date;l.setTime(l.getTime()+c),Do.o.p.expirationTime=l.getTime();const u=JSON.stringify(Do.o.p);let p=n+"="+encodeURIComponent(u)+(0!==c?"; expires="+l.toUTCString():"")+"; Path="+o+"; SameSite="+s;qo(t,".")&&(p+="; Domain="+i),"https:"===r&&(p+="; Secure"),a?((e,t)=>{_i((()=>localStorage.setItem(e,t)))})(n,u):document.cookie=p,Do.o.p},Bi=(e,t,r)=>{if(0===e.length)return;const n=r||Do.t.cookie.domain,o=t||Do.t.cookie.path,i="www."===n.slice(0,4),s=i&&n.substring(4),a=(e,t)=>{document.cookie=e+"=; path="+o+(t?"; domain=."+t:"")+"; expires=Thu, 01 Jan 1970 00:00:01 GMT;"};for(const t of e)a(t),a(t,n),i&&a(t,s)},$i=(e,t)=>{const r=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return r?r.pop():""},Wi=e=>{const t=Do.o.D?[]:Do.o.R;return qo(t,e)},Hi=(e,t)=>{const r=Do.o.D?[]:Do.o.Y[t]||[];return qo(r,e)},Gi=e=>{const{ne:t,o:r}=Do;if(!r.k){if(!r.T){if(!e)return;Ai(Vi,ji)}r.k=!0,r.U=$o(),r.v&&ui(!0),ci(t.he,1),Qo(t.ye,So),Vo(t.he,Eo,"false"),setTimeout((()=>{ai(Do.ne.be)}),100),gi(Do.re.fe,Lo)}};var Vi={show:Gi,hide:()=>{const{ne:e,o:t,re:r}=Do;t.k&&(t.k=!1,t.v&&ui(),ai(e.Ke,!0),ei(e.ye,So),Vo(e.he,Eo,"true"),ai(t.U),t.U=null,gi(r._e,Lo))},showPreferences:()=>{const e=Do.o;e.A||(e.N||Li(Vi,ji),e.A=!0,e.k?e.$=$o():e.U=$o(),ci(Do.ne.we,2),Qo(Do.ne.ye,wo),Vo(Do.ne.we,Eo,"false"),setTimeout((()=>{ai(Do.ne.ve)}),100),gi(Do.re.fe,No))},hidePreferences:()=>{const e=Do.o;e.A&&(e.A=!1,(()=>{const e=Ji(),t=Do.o.P,r=Do.ne.ae,n=Do.ne.se,o=e=>qo(Do.o.G,e);for(const i in r){const s=!!t[i].readOnly;r[i].checked=s||(e?Wi(i):o(i));for(const t in n[i])n[i][t].checked=s||(e?Hi(t,i):o(i))}})(),ai(Do.ne.Ge,!0),ei(Do.ne.ye,wo),Vo(Do.ne.we,Eo,"true"),e.k?(ai(e.$),e.$=null):(ai(e.U),e.U=null),gi(Do.re._e,No))},acceptCategory:(e,t=[])=>{((e,t)=>{const{O:r,R:n,B:o,N:i,Z:s,G:a,X:c}=Do.o;let l=[];if(e){Po(e)?l.push(...e):Fo(e)&&(l="all"===e?r:[e]);for(const e of r)s[e]=qo(l,e)?zo(c[e]):[]}else l=[...n,...a],i&&(l=(()=>{const e=Do.ne.ae;if(!e)return[];let t=[];for(let r in e)e[r].checked&&t.push(r);return t})());l=l.filter((e=>!qo(r,e)||!qo(t,e))),l.push(...o),ii(l)})(e,t),(()=>{const e=Do.o,{Z:t,B:r,Y:n,X:o,O:i}=e,s=i;e.te=ti(n);for(const i of s){const s=o[i],a=zo(s),c=t[i]&&t[i].length>0,l=qo(r,i);if(0!==a.length){if(n[i]=[],l)n[i].push(...a);else if(c){const e=t[i];n[i].push(...e)}else n[i]=e.Z[i];n[i]=Bo(n[i])}}})(),(()=>{const e=Do.o;e.L=Do.t.mode===ko&&e.D?oi(e.G,e.R):oi(e.R,e.p.categories);let t=e.L.length>0,r=!1;for(const t of e.O)e.ee[t]=oi(e.Y[t],e.te[t]),e.ee[t].length>0&&(r=!0);const n=Do.ne.ae;for(const t in n)n[t].checked=qo(e.R,t);for(const t of e.O){const r=Do.ne.se[t],n=e.Y[t];for(const e in r)r[e].checked=qo(n,e)}e.C||(e.C=new Date),e.M||(e.M=([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))),e.p={categories:ti(e.R),revision:Do.t.revision,data:e.h,consentTimestamp:e.C.toISOString(),consentId:e.M,services:ti(e.Y)};let o=!1;const i=t||r;(e.D||i)&&(e.D&&(e.D=!1,o=!0),e.S=e.S?new Date:e.C,e.p.lastConsentTimestamp=e.S.toISOString(),zi(),Do.t.autoClearCookies&&(o||i)&&(e=>{const t=Do.o,r=(()=>{const e=document.cookie.split(/;\s*/),t=[];for(const r of e){let e=r.split("=")[0];t.push(e)}return t})(),n=(e=>{const t=Do.o;return(e?t.O:t.L).filter((e=>{const r=t.P[e];return!!r&&!r.readOnly&&!!r.autoClear}))})(e);for(const e in t.ee)for(const n of t.ee[e]){const o=t.X[e][n].cookies;if(!qo(t.Y[e],n)&&o)for(const e of o){const t=Ui(r,e.name);Bi(t,e.path,e.domain)}}for(const o of n){const n=t.P[o].autoClear,i=n&&n.cookies||[],s=qo(t.L,o),a=!qo(t.R,o),c=s&&a;if(e?a:c){n.reloadPage&&c&&(t.j=!0);for(const e of i){const t=Ui(r,e.name);Bi(t,e.path,e.domain)}}}})(o),yi()),o&&(gi(Do.re.ie),gi(Do.re.le),Do.t.mode===bo)||(i&&gi(Do.re.de),e.j&&(e.j=!1,location.reload()))})()}};const Ji=()=>!Do.o.D,Yi=async e=>{const{o:t,t:r,re:n}=Do,o=window;if(!o._ccRun){if(o._ccRun=!0,(e=>{const{ne:t,t:r,o:n}=Do,o=r,i=n,{cookie:s}=o,a=Do.ce,c=e.cookie,l=e.categories,u=zo(l)||[],p=navigator,d=document;t.$e=d,t.ye=d.documentElement,s.domain=location.hostname,i.i=e,i.P=l,i.O=u,i._=e.language.translations,i.v=!!e.disablePageInteraction,a.ie=e.onFirstConsent,a.le=e.onConsent,a.de=e.onChange,a._e=e.onModalHide,a.fe=e.onModalShow,a.ue=e.onModalReady;const{mode:h,autoShow:f,lazyHtmlGeneration:m,autoClearCookies:g,revision:_,manageScriptTags:y,hideFromBots:v}=e;h===ko&&(o.mode=h),"boolean"==typeof g&&(o.autoClearCookies=g),"boolean"==typeof y&&(o.manageScriptTags=y),"number"==typeof _&&_>=0&&(o.revision=_,i.V=!0),"boolean"==typeof f&&(o.autoShow=f),"boolean"==typeof m&&(o.lazyHtmlGeneration=m),!1===v&&(o.hideFromBots=!1),!0===o.hideFromBots&&p&&(i.J=p.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(p.userAgent)||p.webdriver),jo(c)&&(o.cookie={...s,...c}),o.autoClearCookies,i.V,o.manageScriptTags,(e=>{const{P:t,X:r,Y:n,Z:o,B:i}=Do.o;for(let s of e){const e=t[s],a=e.services||{},c=jo(a)&&zo(a)||[];r[s]={},n[s]=[],o[s]=[],e.readOnly&&(i.push(s),n[s]=c),Do.ne.se[s]={};for(let e of c){const t=a[e];t.Se=!1,r[s][e]=t}}})(u),(()=>{if(!Do.t.manageScriptTags)return;const e=Do.o,t=Ho(document,"script["+Co+"]");for(const r of t){let t=Yo(r,Co),n=r.dataset.service||"",o=!1;if(t&&"!"===t.charAt(0)&&(t=t.slice(1),o=!0),"!"===n.charAt(0)&&(n=n.slice(1),o=!0),qo(e.O,t)&&(e.oe.push({Me:r,xe:!1,ke:o,De:t,Te:n}),n)){const r=e.X[t];r[n]||(r[n]={Se:!1})}}})(),Fi((()=>{const e=Do.o.i.language.autoDetect;if(e){const t={browser:navigator.language,document:document.documentElement.lang},r=qi(t[e]);if(r)return r}return Pi()})())})(e),t.J)return;(()=>{const e=Do.o,t=Do.t,r=(()=>{const e=Do.t.cookie.name,t=Do.t.cookie.useLocalStorage;return((e,t)=>{let r;return r=_i((()=>JSON.parse(t?e:decodeURIComponent(e))),!0)||{},r})(t?(r=e,_i((()=>localStorage.getItem(r)))||""):$i(e),t);var r})(),{categories:n,services:o,consentId:i,consentTimestamp:s,lastConsentTimestamp:a,data:c,revision:l}=r,u=Po(n);e.p=r,e.M=i;const p=!!i&&Fo(i);e.C=s,e.C&&(e.C=new Date(s)),e.S=a,e.S&&(e.S=new Date(a)),e.h=void 0!==c?c:null,e.V&&p&&l!==t.revision&&(e.I=!1),e.D=!(p&&e.I&&e.C&&e.S&&u),t.cookie.useLocalStorage&&!e.D&&(e.D=(new Date).getTime()>(r.expirationTime||0),e.D&&(e=>{_i((()=>localStorage.removeItem(e)))})(t.cookie.name)),e.D,(()=>{const e=Do.o;for(const t of e.O){const r=e.P[t];if(r.readOnly||r.enabled){e.G.push(t);const r=e.X[t]||{};for(let n in r)e.Z[t].push(n),e.i.mode===ko&&e.Y[t].push(n)}}})(),e.D?t.mode===ko&&(e.R=[...e.G]):(e.Z={...e.Y},e.Y={...e.Y,...o},ii([...e.B,...n]))})();const s=Ji();if(!await(async e=>{const t=Do.o;let r=qi(e)?e:Pi(),n=t._[r];return Fo(n)?n=await(async e=>{try{const t=await fetch(e);return await t.json()}catch(e){return console.error(e),!1}})(n):Uo(n)&&(n=await n()),!!n&&(t.u=n,Fi(r),!0)})())return!1;if(si(null,i=Vi,Li,ji),Do.o.D&&Ai(i,ji),Do.t.lazyHtmlGeneration||Li(i,ji),r.autoShow&&!s&&Gi(!0),s)return yi(),gi(n.le);r.mode===ko&&yi(t.G)}var i},Xi=e=>({en:{consentModal:{title:"We use cookies",description:"Our website uses essential cookies to ensure its proper operation and tracking cookies to understand how you interact with it. Tracking will be enabled only upon your explicit consent.",acceptAllBtn:"Accept all",acceptNecessaryBtn:"Reject all",showPreferencesBtn:"Manage preferences"},preferencesModal:{title:"Consent preferences center",acceptAllBtn:"Accept all",acceptNecessaryBtn:"Reject all",savePreferencesBtn:"Accept current selection",closeIconLabel:"Close modal",sections:[{title:"Tracking technologies and your consent",description:"Cookies are small files that websites place on users' devices to collect data and enhance user experience. They can remember preferences, and track browsing habits. You can modify your preferences regarding cookies and tracking at any time."},{title:"Strictly necessary cookies",description:"These cookies are essential for the proper functioning of the website and cannot be disabled.",linkedCategory:"necessary"},{title:"Analytics cookies",description:"These cookies collect information about how you use our website. All of the data is anonymized and cannot be used to identify you.",linkedCategory:"analytics"},{title:"More information",description:`For any queries in relation to our policy on cookies and your choices, please <a href="mailto:${e?"hello@clearly.help":"hello@rozmova.me"}">contact us</a>`}]}},pl:{consentModal:{title:"Używamy plików cookie",description:"Nasza strona internetowa używa niezbędnych plików cookie do jej prawidłowego działania oraz plików śledzących, aby zrozumieć, jak z niej korzystasz. Śledzenie zostanie włączone tylko po Twojej wyraźnej zgodzie.",acceptAllBtn:"Akceptuj wszystkie",acceptNecessaryBtn:"Odrzuć wszystkie",showPreferencesBtn:"Zarządzaj ustawieniami"},preferencesModal:{title:"Centrum preferencji zgody",acceptAllBtn:"Akceptuj wszystkie",acceptNecessaryBtn:"Odrzuć wszystkie",savePreferencesBtn:"Akceptuj bieżący wybór",closeIconLabel:"Zamknij okno",sections:[{title:"Technologie śledzenia i Twoja zgoda",description:"Pliki cookie to małe pliki, które strony internetowe umieszczają na urządzeniach użytkowników, aby zbierać dane i poprawiać doświadczenie użytkownika. Mogą zapamiętywać preferencje i śledzić nawyki przeglądania. Możesz zmienić swoje preferencje dotyczące plików cookie i śledzenia w dowolnym momencie."},{title:"Niezbędne pliki cookie",description:"Te pliki cookie są niezbędne do prawidłowego funkcjonowania strony internetowej i nie można ich wyłączyć.",linkedCategory:"necessary"},{title:"Pliki cookie analityczne",description:"Te pliki cookie zbierają informacje o tym, jak korzystasz z naszej strony internetowej. Wszystkie dane są anonimizowane i nie mogą zostać wykorzystane do Twojej identyfikacji.",linkedCategory:"analytics"},{title:"Więcej informacji",description:`W przypadku pytań dotyczących naszej polityki plików cookie i Twoich wyborów, prosimy <a href="mailto:${e?"hello@clearly.help":"hello@rozmova.me"}">skontaktować się z nami</a>.`}]}},es:{consentModal:{title:"Usamos cookies",description:"Nuestro sitio web utiliza cookies esenciales para garantizar su correcto funcionamiento y cookies de seguimiento para comprender cómo interactúas con él. El seguimiento solo se habilitará con tu consentimiento explícito.",acceptAllBtn:"Aceptar todas",acceptNecessaryBtn:"Rechazar todas",showPreferencesBtn:"Gestionar preferencias"},preferencesModal:{title:"Centro de preferencias de consentimiento",acceptAllBtn:"Aceptar todas",acceptNecessaryBtn:"Rechazar todas",savePreferencesBtn:"Aceptar selección actual",closeIconLabel:"Cerrar ventana",sections:[{title:"Tecnologías de seguimiento y tu consentimiento",description:"Las cookies son pequeños archivos que los sitios web colocan en los dispositivos de los usuarios para recopilar datos y mejorar la experiencia del usuario. Pueden recordar preferencias y rastrear hábitos de navegación. Puedes modificar tus preferencias sobre cookies y seguimiento en cualquier momento."},{title:"Cookies estrictamente necesarias",description:"Estas cookies son esenciales para el funcionamiento adecuado del sitio web y no se pueden desactivar.",linkedCategory:"necessary"},{title:"Cookies de análisis",description:"Estas cookies recopilan información sobre cómo usas nuestro sitio web. Todos los datos están anonimizados y no pueden utilizarse para identificarte.",linkedCategory:"analytics"},{title:"Más información",description:`Para cualquier consulta sobre nuestra política de cookies y tus elecciones, por favor <a href="mailto:${e?"hello@clearly.help":"hello@rozmova.me"}">contáctanos</a>.`}]}},uk:{consentModal:{title:"Ми використовуємо файли cookie",description:"Наш вебсайт використовує необхідні файли cookie для забезпечення його належної роботи, а також файли відстеження, щоб зрозуміти, як ви з ним взаємодієте. Відстеження буде увімкнено лише після вашої явної згоди.",acceptAllBtn:"Прийняти всі",acceptNecessaryBtn:"Відхилити всі",showPreferencesBtn:"Керувати налаштуваннями"},preferencesModal:{title:"Центр налаштувань згоди",acceptAllBtn:"Прийняти всі",acceptNecessaryBtn:"Відхилити всі",savePreferencesBtn:"Прийняти поточний вибір",closeIconLabel:"Закрити вікно",sections:[{title:"Технології відстеження та ваша згода",description:"Файли cookie – це невеликі файли, які вебсайти зберігають на пристроях користувачів для збору даних і покращення взаємодії. Вони можуть запам'ятовувати вподобання та відстежувати поведінку перегляду. Ви можете змінити свої налаштування щодо файлів cookie та відстеження у будь-який час."},{title:"Строго необхідні файли cookie",description:"Ці файли cookie є необхідними для належного функціонування вебсайту і їх не можна вимкнути.",linkedCategory:"necessary"},{title:"Аналітичні файли cookie",description:"Ці файли cookie збирають інформацію про те, як ви використовуєте наш вебсайт. Усі дані анонімізовані і не можуть бути використані для ідентифікації вас.",linkedCategory:"analytics"},{title:"Додаткова інформація",description:`Якщо у вас є запитання щодо нашої політики використання файлів cookie та ваших налаштувань, будь ласка, <a href="mailto:${e?"hello@clearly.help":"hello@rozmova.me"}">зв'яжіться з нами</a>.`}]}}}),Qi=(e,t)=>{const r=document.createElement("link");r.rel="stylesheet",r.href="https://cdn.jsdelivr.net/gh/orestbida/cookieconsent@3.0.1/dist/cookieconsent.css",document.head.appendChild(r);const n=document.createElement("style");n.innerHTML='\n :root {\n /** Change font **/\n --cc-font-family: "Inter", sans-serif;\n\n /** Change button primary color to black **/\n --cc-btn-primary-bg: #4C6EF5;\n --cc-btn-primary-border-color: #4C6EF5;\n }\n',document.head.appendChild(n),Yi(((e,t)=>{const r=io();return{language:{default:e,translations:Xi(t)},cookie:{domain:r},guiOptions:{consentModal:{layout:"box wide",position:"bottom left"},preferencesModal:{layout:"bar"}},categories:{necessary:{enabled:!0,readOnly:!0},analytics:{enabled:!0,readOnly:!1,services:{ga:{label:"Google Analytics",onAccept:()=>{gtag("consent","update",{ad_storage:"granted",ad_user_data:"granted",ad_personalization:"granted",analytics_storage:"granted"})},onReject:()=>{gtag("consent","update",{ad_storage:"granted",ad_user_data:"granted",ad_personalization:"granted",analytics_storage:"granted"})}}}}}}})(e,t))};var Ki=new class{initialized=!1;locale="uk";platform="web";dataLayer=[];lastGConfig={};isInitialized(){return this.initialized}async init({locale:t,platform:r,isClearly:n}={}){if(this.initialized)return;!function(){const e=document.createElement("script");e.type="text/javascript",e.text='\n (function(){\n var analytics = window.analytics = window.analytics || [];\n if (!analytics.initialize) \n if (analytics.invoked) \n window.console && console.error && console.error("Snippet included twice.");\n else {\n analytics.invoked = !0;\n analytics.methods = ["trackSubmit", "trackClick", "trackLink", "trackForm", "pageview", "identify", "reset", "group", "track", "ready", "alias", "debug", "page", "once", "off", "on", "addSourceMiddleware", "addIntegrationMiddleware", "setAnonymousId", "addDestinationMiddleware"];\n analytics.factory = function(e) {\n return function() {\n var t = Array.prototype.slice.call(arguments);\n t.unshift(e);\n analytics.push(t);\n return analytics;\n }\n };\n for (var e = 0; e < analytics.methods.length; e++) {\n var key = analytics.methods[e];\n analytics[key] = analytics.factory(key);\n }\n analytics.load = function(key, e) {\n var t = document.createElement("script");\n t.type = "text/javascript";\n t.async = !0;\n t.src = "https://cdp-eu.customer.io/v1/analytics-js/snippet/" + key + "/analytics.min.js";\n var n = document.getElementsByTagName("script")[0];\n n.parentNode.insertBefore(t, n);\n analytics._writeKey = key;\n analytics._loadOptions = e;\n };\n analytics.SNIPPET_VERSION = "4.15.3";\n analytics.load("e6d009719c77519432c3");\n analytics.page();\n }\n })();\n ',document.head.appendChild(e)}(),(()=>{const e=to("geo");if(e){const t=io();o.set("geo",e,{domain:t})}})();const i=mo();(navigator.userAgent||navigator.vendor||window.opera).match(/FBAN|FBAV|Instagram/i)&&((e,t)=>{const r=new URL(window.location.href);r.searchParams.set(e,t),window.history.replaceState({path:r.toString()},"",r.toString())})(Vn,i),this.locale=t||(e=>{const t=window.location.pathname.split("/")[1];return Kn.includes(t)?t:e?"en":"uk"})(n),r&&(this.platform=r),"web"===this.platform&&n&&Qi(this.locale,n),Gn.init("9d4cb3d213e5aee689ea01dd68ad65ad",{debug:!1,track_pageview:"url-with-path",persistence:"cookie"}),e.init("irbqmnlbwz");const s=await this.getCommonParams();Gn.register(s),this.setConfig(),this.trackPageView(),gtag("config",Xn,{user_properties:s,server_container_url:Qn}),(e=>{const t="prev_session_id",r=o.get(t),n=uo();if(r!==n){const r=io();n&&o.set(t,n,{domain:r}),e("login",{logged:"no"},{ga:!0})}})(this.trackEvent.bind(this)),this.initialized=!0,this.processDataLayer()}processDataLayer(){const e=["g_config","page_view"];for(const t of e){const e=this.dataLayer.findIndex((e=>e.eventName===t));if(-1!==e){const t=this.dataLayer.splice(e,1)[0];this.trackEvent(t.eventName,t.eventParams)}}for(;this.dataLayer.length>0;){const e=this.dataLayer.shift();this.trackEvent(e?.eventName,e?.eventParams)}}setUserTag(t,r){e.setTag(t,r)}async trackEvent(e,t,r={ga:!0,mixpanel:!0,customerIO:!0}){if(!this.initialized)return void this.dataLayer.push({eventName:e,eventParams:t});const n=await this.getCommonParams(),o={...n,...t};if(r.mixpanel)try{Gn.track(e,o)}catch(e){console.log(e)}if(r.ga)try{const r={locale:n.locale,platform:n.platform,funnel_name:n.funnel_name,user_id:n.user_id,logged_in:n.logged_in,...t};Zn.includes(e)&&window.dataLayer.push({ecommerce:null}),window.dataLayer.push({event:e,...r})}catch(e){console.log(e)}if(r.customerIO)try{window.analytics.track(e,o)}catch(e){console.log(e)}}setConfig(e={userId:_o(),email:vo(),locale:this.locale}){this.lastGConfig=e;const{userId:t,email:r,locale:n}=e,o={user_id:t,is_logged:t?"yes":"no",locale:n,platform:this.platform,user_type:po(r)};Gn.track("g_config",o),window.dataLayer.push({event:"g_config",...o})}getLastGConfig(){return this.lastGConfig}trackPageView(){const e={page_title:document.title,page_location:window.location.href,page_referrer:ao()};Gn.track("page_view",e),window.dataLayer.push({event:"page_view",...e})}setUser(e,t){if(!this.initialized)return void console.warn("Analytics is not initialized.");const{email:r,name:n,phone:i,isB2B:s}=t;Gn.identify(e),Gn.people.set({$email:r,name:n,phone:i,isB2B:s}),gtag("config",Xn,{user_properties:this.getCommonParams(),user_id:e,server_container_url:Qn}),window.analytics.identify(e,t),(e=>{const t=io();o.set(go,e,{domain:t})})(e),(e=>{const t=io();o.set(yo,e,{domain:t})})(r),this.trackEvent("login",{logged:"yes",uid:e})}async getCommonParams(){const e=(()=>{const e=o.get(Jn),t=e?JSON.parse(e):{},r=new URLSearchParams(window.location.search),n={...Yn.some((e=>r.get(e)&&r.get(e)!==t[e]))?Yn.reduce(((e,t)=>({...e,[t]:r.get(t)})),{}):Yn.reduce(((e,r)=>({...e,[r]:t[r]})),{}),referrer:ao()||t.referrer,search_query:co()||t.search_query,landing_page_url:t.landing_page_url||window.location.href};return o.set(Jn,JSON.stringify(n),{domain:io()}),n})(),t=await new Promise((e=>{if("undefined"!=typeof gtag)try{gtag("get",Xn,"client_id",(function(t){e(t||lo())})),setTimeout((()=>{e(lo())}),1e3)}catch(t){console.warn("Error getting client ID from gtag:",t),e(lo())}else e(lo())}));return{...e,fbc:o.get("_fbc"),fbp:o.get("_fbp"),session_id:uo(),user_pseudo_id:t,rid:mo(),funnel_name:o.get("funnel_name"),language:window.navigator.language,platform:this.platform,url:window.location.href,device:no(),browser:ro(),system:oo(),locale:this.locale,logged_in:!!_o(),user_id:_o()}}setLocale(e){this.locale=e}resetUser(){this.initialized?(Gn.reset(),window.analytics.reset(),(()=>{const e=io();o.remove(go,{domain:e})})(),(()=>{const e=io();o.remove(yo,{domain:e})})(),this.trackEvent("login",{logged:"no"}),fo(),this.init()):console.warn("Analytics is not initialized.")}getUserId=mo};return Ki}));
|
|
31
|
+
function e(e,t,r,n){return new(r||(r=Promise))((function(t,o){function i(e){try{a(n.next(e))}catch(e){o(e)}}function s(e){try{a(n.throw(e))}catch(e){o(e)}}function a(e){var n;e.done?t(e.value):(n=e.value,n instanceof r?n:new r((function(e){e(n)}))).then(i,s)}a((n=n.apply(e,[])).next())}))}for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r="undefined"==typeof Uint8Array?[]:new Uint8Array(256),n=0;n<64;n++)r[t.charCodeAt(n)]=n;var o=function(e){var r,n=new Uint8Array(e),o=n.length,i="";for(r=0;r<o;r+=3)i+=t[n[r]>>2],i+=t[(3&n[r])<<4|n[r+1]>>4],i+=t[(15&n[r+1])<<2|n[r+2]>>6],i+=t[63&n[r+2]];return o%3==2?i=i.substring(0,i.length-1)+"=":o%3==1&&(i=i.substring(0,i.length-2)+"=="),i};const i=new Map,s=new Map,a=self;a.onmessage=function(t){return e(this,0,void 0,(function*(){if(!("OffscreenCanvas"in globalThis))return a.postMessage({id:t.data.id});{const{id:r,bitmap:n,width:c,height:l,dataURLOptions:u}=t.data,p=function(t,r,n){return e(this,0,void 0,(function*(){const e=`${t}-${r}`;if("OffscreenCanvas"in globalThis){if(s.has(e))return s.get(e);const i=new OffscreenCanvas(t,r);i.getContext("2d");const a=yield i.convertToBlob(n),c=yield a.arrayBuffer(),l=o(c);return s.set(e,l),l}return""}))}(c,l,u),d=new OffscreenCanvas(c,l);d.getContext("2d").drawImage(n,0,0),n.close();const h=yield d.convertToBlob(u),f=h.type,m=yield h.arrayBuffer(),g=o(m);if(!i.has(r)&&(yield p)===g)return i.set(r,g),a.postMessage({id:r});if(i.get(r)===g)return a.postMessage({id:r});a.postMessage({id:r,type:f,base64:g,width:c,height:l}),i.set(r,g)}}))}}()},function(e){return Qe=Qe||function(e){var t=function(e){var t=e.toString().split("\n");t.pop(),t.shift();for(var r=t[0].search(/\S/),n=/(['"])__worker_loader_strict__(['"])/g,o=0,i=t.length;o<i;++o)t[o]=t[o].substring(r).replace(n,"$1use strict$2")+"\n";return t}(e),r=new Blob(t,{type:"application/javascript"});return URL.createObjectURL(r)}(Xe),new Worker(Qe,e)});class Ze{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=(e,t)=>{!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)};const{sampling:t="all",win:r,blockClass:n,blockSelector:o,recordCanvas:i,dataURLOptions:s}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,i&&"all"===t&&this.initCanvasMutationObserver(r,n,o),i&&"number"==typeof t&&this.initCanvasFPSObserver(t,r,n,o,{dataURLOptions:s})}initCanvasFPSObserver(e,t,r,n,o){const i=Je(t,r,n,!0),s=new Map,a=new Ke;a.onmessage=e=>{const{id:t}=e.data;if(s.set(t,!1),!("base64"in e.data))return;const{base64:r,type:n,width:o,height:i}=e.data;this.mutationCb({id:t,type:le["2D"],commands:[{property:"clearRect",args:[0,0,o,i]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:n}]},0,0]}]})};const c=1e3/e;let l,u=0;const p=e=>{u&&e-u<c||(u=e,(()=>{const e=[];return t.document.querySelectorAll("canvas").forEach((t=>{J(t,r,n,!0)||e.push(t)})),e})().forEach((e=>je(this,0,void 0,(function*(){var t;const r=this.mirror.getId(e);if(s.get(r))return;if(0===e.width||0===e.height)return;if(s.set(r,!0),["webgl","webgl2"].includes(e.__context)){const r=e.getContext(e.__context);!1===(null===(t=null==r?void 0:r.getContextAttributes())||void 0===t?void 0:t.preserveDrawingBuffer)&&r.clear(r.COLOR_BUFFER_BIT)}const n=yield createImageBitmap(e);a.postMessage({id:r,bitmap:n,width:e.width,height:e.height,dataURLOptions:o.dataURLOptions},[n])}))))),l=requestAnimationFrame(p)};l=requestAnimationFrame(p),this.resetObservers=()=>{i(),cancelAnimationFrame(l)}}initCanvasMutationObserver(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const n=Je(e,t,r,!1),o=function(e,t,r,n){const o=[],i=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const s of i)try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[s])continue;const i=B(t.CanvasRenderingContext2D.prototype,s,(function(o){return function(...i){return J(this.canvas,r,n,!0)||setTimeout((()=>{const r=Ge(i,t,this);e(this.canvas,{type:le["2D"],property:s,args:r})}),0),o.apply(this,i)}}));o.push(i)}catch(r){const n=z(t.CanvasRenderingContext2D.prototype,s,{set(t){e(this.canvas,{type:le["2D"],property:s,args:[t],setter:!0})}});o.push(n)}return()=>{o.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,r),i=function(e,t,r,n){const o=[];return o.push(...Ye(t.WebGLRenderingContext.prototype,le.WebGL,e,r,n,0,t)),void 0!==t.WebGL2RenderingContext&&o.push(...Ye(t.WebGL2RenderingContext.prototype,le.WebGL2,e,r,n,0,t)),()=>{o.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,r,this.mirror);this.resetObservers=()=>{n(),o(),i()}}startPendingCanvasMutationFlusher(){requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}startRAFTimestamping(){const e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach(((e,t)=>{const r=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,r)})),requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(e);if(!r||-1===t)return;const n=r.map((e=>{const t=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["type"]);return t})),{type:o}=r[0];this.mutationCb({id:t,type:o,commands:n}),this.pendingCanvasMutations.delete(e)}}class et{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new te,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const r={id:t,styleIds:[]},n=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),n.push({styleId:e,rules:Array.from(t.rules||CSSRule,((e,t)=>({rule:c(e),index:t})))})),r.styleIds.push(e)}n.length>0&&(r.styles=n),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class tt{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){requestAnimationFrame((()=>{this.clear(),this.loop&&this.periodicallyClear()}))}inOtherBuffer(e,t){const r=this.nodeMap.get(e);return r&&Array.from(r).some((e=>e!==t))}add(e,t){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}function rt(e){return Object.assign(Object.assign({},e),{timestamp:$()})}let nt,ot,it,st=!1;const at=new l;function ct(e={}){const{emit:t,checkoutEveryNms:r,checkoutEveryNth:n,blockClass:o="rr-block",blockSelector:i=null,ignoreClass:s="rr-ignore",ignoreSelector:a=null,maskTextClass:c="rr-mask",maskTextSelector:u=null,inlineStylesheet:p=!0,maskAllInputs:d,maskInputOptions:h,slimDOMOptions:f,maskInputFn:m,maskTextFn:g,hooks:_,packFn:y,sampling:v={},dataURLOptions:b={},mousemoveWait:k,recordDOM:S=!0,recordCanvas:w=!1,recordCrossOriginIframes:I=!1,recordAfter:C=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:M=!1,collectFonts:x=!1,inlineImages:E=!1,plugins:O,keepIframeSrcFn:T=()=>!1,ignoreCSSAttributes:R=new Set([]),errorHandler:L}=e;be(L);const N=!I||window.parent===window;let D=!1;if(!N)try{window.parent.document&&(D=!1)}catch(e){D=!0}if(N&&!t)throw new Error("emit function is required");void 0!==k&&void 0===v.mousemove&&(v.mousemove=k),at.reset();const A=!0===d?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==h?h:{password:!0},F=!0===f||"all"===f?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===f,headMetaDescKeywords:"all"===f}:f||{};let j;!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let U=0;const z=e=>{for(const t of O||[])t.eventProcessor&&(e=t.eventProcessor(e));return y&&!D&&(e=y(e)),e};nt=(e,o)=>{var i;if(!(null===(i=we[0])||void 0===i?void 0:i.isFrozen())||e.type===ie.FullSnapshot||e.type===ie.IncrementalSnapshot&&e.data.source===se.Mutation||we.forEach((e=>e.unfreeze())),N)null==t||t(z(e),o);else if(D){const t={type:"rrweb",event:z(e),origin:window.location.origin,isCheckout:o};window.parent.postMessage(t,"*")}if(e.type===ie.FullSnapshot)j=e,U=0;else if(e.type===ie.IncrementalSnapshot){if(e.data.source===se.Mutation&&e.data.isAttachIframe)return;U++;const t=n&&U>=n,o=r&&e.timestamp-j.timestamp>r;(t||o)&&ot(!0)}};const B=e=>{nt(rt({type:ie.IncrementalSnapshot,data:Object.assign({source:se.Mutation},e)}))},$=e=>nt(rt({type:ie.IncrementalSnapshot,data:Object.assign({source:se.Scroll},e)})),V=e=>nt(rt({type:ie.IncrementalSnapshot,data:Object.assign({source:se.CanvasMutation},e)})),J=new et({mutationCb:B,adoptedStyleSheetCb:e=>nt(rt({type:ie.IncrementalSnapshot,data:Object.assign({source:se.AdoptedStyleSheet},e)}))}),Y=new Pe({mirror:at,mutationCb:B,stylesheetManager:J,recordCrossOriginIframes:I,wrappedEmit:nt});for(const e of O||[])e.getMirror&&e.getMirror({nodeMirror:at,crossOriginIframeMirror:Y.crossOriginIframeMirror,crossOriginIframeStyleMirror:Y.crossOriginIframeStyleMirror});const X=new tt;it=new Ze({recordCanvas:w,mutationCb:V,win:window,blockClass:o,blockSelector:i,mirror:at,sampling:v.canvas,dataURLOptions:b});const Q=new Fe({mutationCb:B,scrollCb:$,bypassOptions:{blockClass:o,blockSelector:i,maskTextClass:c,maskTextSelector:u,inlineStylesheet:p,maskInputOptions:A,dataURLOptions:b,maskTextFn:g,maskInputFn:m,recordCanvas:w,inlineImages:E,sampling:v,slimDOMOptions:F,iframeManager:Y,stylesheetManager:J,canvasManager:it,keepIframeSrcFn:T,processedNodeManager:X},mirror:at});ot=(e=!1)=>{if(!S)return;nt(rt({type:ie.Meta,data:{href:window.location.href,width:G(),height:H()}}),e),J.reset(),Q.init(),we.forEach((e=>e.lock()));const t=function(e,t){const{mirror:r=new l,blockClass:n="rr-block",blockSelector:o=null,maskTextClass:i="rr-mask",maskTextSelector:s=null,inlineStylesheet:a=!0,inlineImages:c=!1,recordCanvas:u=!1,maskAllInputs:p=!1,maskTextFn:d,maskInputFn:h,slimDOM:f=!1,dataURLOptions:m,preserveWhiteSpace:g,onSerialize:_,onIframeLoad:y,iframeLoadTimeout:v,onStylesheetLoad:b,stylesheetLoadTimeout:k,keepIframeSrcFn:S=()=>!1}=t;return q(e,{doc:e,mirror:r,blockClass:n,blockSelector:o,maskTextClass:i,maskTextSelector:s,skipChild:!1,inlineStylesheet:a,maskInputOptions:!0===p?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===p?{password:!0}:p,maskTextFn:d,maskInputFn:h,slimDOMOptions:!0===f||"all"===f?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===f,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===f?{}:f,dataURLOptions:m,inlineImages:c,recordCanvas:u,preserveWhiteSpace:g,onSerialize:_,onIframeLoad:y,iframeLoadTimeout:v,onStylesheetLoad:b,stylesheetLoadTimeout:k,keepIframeSrcFn:S,newlyAddedElement:!1})}(document,{mirror:at,blockClass:o,blockSelector:i,maskTextClass:c,maskTextSelector:u,inlineStylesheet:p,maskAllInputs:A,maskTextFn:g,slimDOM:F,dataURLOptions:b,recordCanvas:w,inlineImages:E,onSerialize:e=>{K(e,at)&&Y.addIframe(e),Z(e,at)&&J.trackLinkElement(e),ee(e)&&Q.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Y.attachIframe(e,t),Q.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{J.attachLinkElement(e,t)},keepIframeSrcFn:T});if(!t)return console.warn("Failed to snapshot the document");nt(rt({type:ie.FullSnapshot,data:{node:t,initialOffset:W(window)}}),e),we.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&J.adoptStyleSheets(document.adoptedStyleSheets,at.getId(document))};try{const e=[],t=e=>{var t;return Se(Ne)({mutationCb:B,mousemoveCb:(e,t)=>nt(rt({type:ie.IncrementalSnapshot,data:{source:t,positions:e}})),mouseInteractionCb:e=>nt(rt({type:ie.IncrementalSnapshot,data:Object.assign({source:se.MouseInteraction},e)})),scrollCb:$,viewportResizeCb:e=>nt(rt({type:ie.IncrementalSnapshot,data:Object.assign({source:se.ViewportResize},e)})),inputCb:e=>nt(rt({type:ie.IncrementalSnapshot,data:Object.assign({source:se.Input},e)})),mediaInteractionCb:e=>nt(rt({type:ie.IncrementalSnapshot,data:Object.assign({source:se.MediaInteraction},e)})),styleSheetRuleCb:e=>nt(rt({type:ie.IncrementalSnapshot,data:Object.assign({source:se.StyleSheetRule},e)})),styleDeclarationCb:e=>nt(rt({type:ie.IncrementalSnapshot,data:Object.assign({source:se.StyleDeclaration},e)})),canvasMutationCb:V,fontCb:e=>nt(rt({type:ie.IncrementalSnapshot,data:Object.assign({source:se.Font},e)})),selectionCb:e=>{nt(rt({type:ie.IncrementalSnapshot,data:Object.assign({source:se.Selection},e)}))},customElementCb:e=>{nt(rt({type:ie.IncrementalSnapshot,data:Object.assign({source:se.CustomElement},e)}))},blockClass:o,ignoreClass:s,ignoreSelector:a,maskTextClass:c,maskTextSelector:u,maskInputOptions:A,inlineStylesheet:p,sampling:v,recordDOM:S,recordCanvas:w,inlineImages:E,userTriggeredOnInput:M,collectFonts:x,doc:e,maskInputFn:m,maskTextFn:g,keepIframeSrcFn:T,blockSelector:i,slimDOMOptions:F,dataURLOptions:b,mirror:at,iframeManager:Y,stylesheetManager:J,shadowDomManager:Q,processedNodeManager:X,canvasManager:it,ignoreCSSAttributes:R,plugins:(null===(t=null==O?void 0:O.filter((e=>e.observer)))||void 0===t?void 0:t.map((e=>({observer:e.observer,options:e.options,callback:t=>nt(rt({type:ie.Plugin,data:{plugin:e.name,payload:t}}))}))))||[]},_)};Y.addLoadListener((r=>{try{e.push(t(r.contentDocument))}catch(e){console.warn(e)}}));const r=()=>{ot(),e.push(t(document)),st=!0};return"interactive"===document.readyState||"complete"===document.readyState?r():(e.push(P("DOMContentLoaded",(()=>{nt(rt({type:ie.DomContentLoaded,data:{}})),"DOMContentLoaded"===C&&r()}))),e.push(P("load",(()=>{nt(rt({type:ie.Load,data:{}})),"load"===C&&r()}),window))),()=>{e.forEach((e=>e())),X.destroy(),st=!1,ke()}}catch(e){console.warn(e)}}ct.addCustomEvent=(e,t)=>{if(!st)throw new Error("please add custom event after start recording");nt(rt({type:ie.Custom,data:{tag:e,payload:t}}))},ct.freezePage=()=>{we.forEach((e=>e.freeze()))},ct.takeFullSnapshot=e=>{if(!st)throw new Error("please take full snapshot after start recording");ot(e)},ct.mirror=at;var lt,ut=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(ut||{}),pt=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(pt||{}),dt={DEBUG:!1,LIB_VERSION:"2.58.0"};if("undefined"==typeof window){var ht={hostname:""};lt={navigator:{userAgent:"",onLine:!0},document:{location:ht,referrer:""},screen:{width:0,height:0},location:ht}}else lt=window;var ft,mt,gt,_t=lt.setImmediate,yt=Object.prototype.toString,vt=void 0!==_t?function(e){return _t(e)}:setTimeout;try{Object.defineProperty({},"x",{}),ft=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(e){ft=function(e,t,r){return e[t]=r,e}}function bt(e,t){gt.add(e,t),mt||(mt=vt(gt.drain))}function kt(e){var t,r=typeof e;return null===e||"object"!==r&&"function"!==r||(t=e.then),"function"==typeof t&&t}function St(){for(var e=0;e<this.chain.length;e++)wt(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function wt(e,t,r){var n,o;try{!1===t?r.reject(e.msg):(n=!0===t?e.msg:t.call(void 0,e.msg))===r.promise?r.reject(TypeError("Promise-chain cycle")):(o=kt(n))?o.call(n,r.resolve,r.reject):r.resolve(n)}catch(e){r.reject(e)}}function It(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=kt(e))?bt((function(){var n=new xt(r);try{t.call(e,(function(){It.apply(n,arguments)}),(function(){Ct.apply(n,arguments)}))}catch(e){Ct.call(n,e)}})):(r.msg=e,r.state=1,r.chain.length>0&&bt(St,r))}catch(e){Ct.call(new xt(r),e)}}}function Ct(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&bt(St,t))}function Mt(e,t,r,n){for(var o=0;o<t.length;o++)!function(o){e.resolve(t[o]).then((function(e){r(o,e)}),n)}(o)}function xt(e){this.def=e,this.triggered=!1}function Et(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function Ot(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new Et(this);this.then=function(e,r){var n={success:"function"!=typeof e||e,failure:"function"==typeof r&&r};return n.promise=new this.constructor((function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");n.resolve=e,n.reject=t})),t.chain.push(n),0!==t.state&&bt(St,t),n.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,(function(e){It.call(t,e)}),(function(e){Ct.call(t,e)}))}catch(e){Ct.call(t,e)}}gt=function(){var e,t,r;function n(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(o,i){r=new n(o,i),t?t.next=r:e=r,t=r,r=void 0},drain:function(){var r=e;for(e=t=mt=void 0;r;)r.fn.call(r.self),r=r.next}}}();var Tt,Rt=ft({},"constructor",Ot,!1);Ot.prototype=Rt,ft(Rt,"__NPO__",0,!1),ft(Ot,"resolve",(function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this((function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");t(e)}))})),ft(Ot,"reject",(function(e){return new this((function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");r(e)}))})),ft(Ot,"all",(function(e){var t=this;return"[object Array]"!==yt.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t((function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");var o=e.length,i=Array(o),s=0;Mt(t,e,(function(e,t){i[e]=t,++s===o&&r(i)}),n)}))})),ft(Ot,"race",(function(e){var t=this;return"[object Array]"!==yt.call(e)?t.reject(TypeError("Not an array")):new t((function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");Mt(t,e,(function(e,t){r(t)}),n)}))})),Tt="undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:Ot;var Lt,Nt,Dt,At,qt,Pt,Ft,jt,Ut,zt,Bt,$t=864e5,Wt=8e3,Ht=Array.prototype,Gt=Function.prototype,Vt=Object.prototype,Jt=Ht.slice,Yt=Vt.toString,Xt=Vt.hasOwnProperty,Qt=lt.console,Kt=lt.navigator,Zt=lt.document,er=lt.opera,tr=lt.screen,rr=Kt.userAgent,nr=Gt.bind,or=Ht.forEach,ir=Ht.indexOf,sr=Ht.map,ar=Array.isArray,cr={},lr={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},ur={log:function(){if(dt.DEBUG&&!lr.isUndefined(Qt)&&Qt)try{Qt.log.apply(Qt,arguments)}catch(e){lr.each(arguments,(function(e){Qt.log(e)}))}},warn:function(){if(dt.DEBUG&&!lr.isUndefined(Qt)&&Qt){var e=["Mixpanel warning:"].concat(lr.toArray(arguments));try{Qt.warn.apply(Qt,e)}catch(t){lr.each(e,(function(e){Qt.warn(e)}))}}},error:function(){if(dt.DEBUG&&!lr.isUndefined(Qt)&&Qt){var e=["Mixpanel error:"].concat(lr.toArray(arguments));try{Qt.error.apply(Qt,e)}catch(t){lr.each(e,(function(e){Qt.error(e)}))}}},critical:function(){if(!lr.isUndefined(Qt)&&Qt){var e=["Mixpanel error:"].concat(lr.toArray(arguments));try{Qt.error.apply(Qt,e)}catch(t){lr.each(e,(function(e){Qt.error(e)}))}}}},pr=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(ur,arguments)}},dr=function(e){return{log:pr(ur.log,e),error:pr(ur.error,e),critical:pr(ur.critical,e)}};lr.bind=function(e,t){var r,n;if(nr&&e.bind===nr)return nr.apply(e,Jt.call(arguments,1));if(!lr.isFunction(e))throw new TypeError;return r=Jt.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(Jt.call(arguments)));var o={};o.prototype=e.prototype;var i=new o;o.prototype=null;var s=e.apply(i,r.concat(Jt.call(arguments)));return Object(s)===s?s:i},n},lr.each=function(e,t,r){if(null!=e)if(or&&e.forEach===or)e.forEach(t,r);else if(e.length===+e.length){for(var n=0,o=e.length;n<o;n++)if(n in e&&t.call(r,e[n],n,e)===cr)return}else for(var i in e)if(Xt.call(e,i)&&t.call(r,e[i],i,e)===cr)return},lr.extend=function(e){return lr.each(Jt.call(arguments,1),(function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])})),e},lr.isArray=ar||function(e){return"[object Array]"===Yt.call(e)},lr.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch(e){return!1}},lr.isArguments=function(e){return!(!e||!Xt.call(e,"callee"))},lr.toArray=function(e){return e?e.toArray?e.toArray():lr.isArray(e)||lr.isArguments(e)?Jt.call(e):lr.values(e):[]},lr.map=function(e,t,r){if(sr&&e.map===sr)return e.map(t,r);var n=[];return lr.each(e,(function(e){n.push(t.call(r,e))})),n},lr.keys=function(e){var t=[];return null===e||lr.each(e,(function(e,r){t[t.length]=r})),t},lr.values=function(e){var t=[];return null===e||lr.each(e,(function(e){t[t.length]=e})),t},lr.include=function(e,t){var r=!1;return null===e?r:ir&&e.indexOf===ir?-1!=e.indexOf(t):(lr.each(e,(function(e){if(r||(r=e===t))return cr})),r)},lr.includes=function(e,t){return-1!==e.indexOf(t)},lr.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},lr.isObject=function(e){return e===Object(e)&&!lr.isArray(e)},lr.isEmptyObject=function(e){if(lr.isObject(e)){for(var t in e)if(Xt.call(e,t))return!1;return!0}return!1},lr.isUndefined=function(e){return void 0===e},lr.isString=function(e){return"[object String]"==Yt.call(e)},lr.isDate=function(e){return"[object Date]"==Yt.call(e)},lr.isNumber=function(e){return"[object Number]"==Yt.call(e)},lr.isElement=function(e){return!(!e||1!==e.nodeType)},lr.encodeDates=function(e){return lr.each(e,(function(t,r){lr.isDate(t)?e[r]=lr.formatDate(t):lr.isObject(t)&&(e[r]=lr.encodeDates(t))})),e},lr.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},lr.formatDate=function(e){function t(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())},lr.strip_empty_properties=function(e){var t={};return lr.each(e,(function(e,r){lr.isString(e)&&e.length>0&&(t[r]=e)})),t},lr.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):lr.isArray(e)?(r=[],lr.each(e,(function(e){r.push(lr.truncate(e,t))}))):lr.isObject(e)?(r={},lr.each(e,(function(e,n){r[n]=lr.truncate(e,t)}))):r=e,r},lr.JSONEncode=function(e){var t=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,(function(e){var t=r[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'},r=function(e,n){var o="",i=0,s="",a="",c=0,l=o,u=[],p=n[e];switch(p&&"object"==typeof p&&"function"==typeof p.toJSON&&(p=p.toJSON(e)),typeof p){case"string":return t(p);case"number":return isFinite(p)?String(p):"null";case"boolean":case"null":return String(p);case"object":if(!p)return"null";if(o+=" ",u=[],"[object Array]"===Yt.apply(p)){for(c=p.length,i=0;i<c;i+=1)u[i]=r(i,p)||"null";return a=0===u.length?"[]":o?"[\n"+o+u.join(",\n"+o)+"\n"+l+"]":"["+u.join(",")+"]",o=l,a}for(s in p)Xt.call(p,s)&&(a=r(s,p))&&u.push(t(s)+(o?": ":":")+a);return a=0===u.length?"{}":o?"{"+u.join(",")+l+"}":"{"+u.join(",")+"}",o=l,a}};return r("",{"":e})},lr.JSONDecode=(qt={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},Pt=function(e){var t=new SyntaxError(e);throw t.at=Lt,t.text=Dt,t},Ft=function(e){return e&&e!==Nt&&Pt("Expected '"+e+"' instead of '"+Nt+"'"),Nt=Dt.charAt(Lt),Lt+=1,Nt},jt=function(){var e,t="";for("-"===Nt&&(t="-",Ft("-"));Nt>="0"&&Nt<="9";)t+=Nt,Ft();if("."===Nt)for(t+=".";Ft()&&Nt>="0"&&Nt<="9";)t+=Nt;if("e"===Nt||"E"===Nt)for(t+=Nt,Ft(),"-"!==Nt&&"+"!==Nt||(t+=Nt,Ft());Nt>="0"&&Nt<="9";)t+=Nt,Ft();if(e=+t,isFinite(e))return e;Pt("Bad number")},Ut=function(){var e,t,r,n="";if('"'===Nt)for(;Ft();){if('"'===Nt)return Ft(),n;if("\\"===Nt)if(Ft(),"u"===Nt){for(r=0,t=0;t<4&&(e=parseInt(Ft(),16),isFinite(e));t+=1)r=16*r+e;n+=String.fromCharCode(r)}else{if("string"!=typeof qt[Nt])break;n+=qt[Nt]}else n+=Nt}Pt("Bad string")},zt=function(){for(;Nt&&Nt<=" ";)Ft()},At=function(){switch(zt(),Nt){case"{":return function(){var e,t={};if("{"===Nt){if(Ft("{"),zt(),"}"===Nt)return Ft("}"),t;for(;Nt;){if(e=Ut(),zt(),Ft(":"),Object.hasOwnProperty.call(t,e)&&Pt('Duplicate key "'+e+'"'),t[e]=At(),zt(),"}"===Nt)return Ft("}"),t;Ft(","),zt()}}Pt("Bad object")}();case"[":return function(){var e=[];if("["===Nt){if(Ft("["),zt(),"]"===Nt)return Ft("]"),e;for(;Nt;){if(e.push(At()),zt(),"]"===Nt)return Ft("]"),e;Ft(","),zt()}}Pt("Bad array")}();case'"':return Ut();case"-":return jt();default:return Nt>="0"&&Nt<="9"?jt():function(){switch(Nt){case"t":return Ft("t"),Ft("r"),Ft("u"),Ft("e"),!0;case"f":return Ft("f"),Ft("a"),Ft("l"),Ft("s"),Ft("e"),!1;case"n":return Ft("n"),Ft("u"),Ft("l"),Ft("l"),null}Pt('Unexpected "'+Nt+'"')}()}},function(e){var t;return Dt=e,Lt=0,Nt=" ",t=At(),zt(),Nt&&Pt("Syntax error"),t}),lr.base64Encode=function(e){var t,r,n,o,i,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=0,c=0,l="",u=[];if(!e)return e;e=lr.utf8Encode(e);do{t=(i=e.charCodeAt(a++)<<16|e.charCodeAt(a++)<<8|e.charCodeAt(a++))>>18&63,r=i>>12&63,n=i>>6&63,o=63&i,u[c++]=s.charAt(t)+s.charAt(r)+s.charAt(n)+s.charAt(o)}while(a<e.length);switch(l=u.join(""),e.length%3){case 1:l=l.slice(0,-2)+"==";break;case 2:l=l.slice(0,-1)+"="}return l},lr.utf8Encode=function(e){var t,r,n,o,i="";for(t=r=0,n=(e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,o=0;o<n;o++){var s=e.charCodeAt(o),a=null;s<128?r++:a=s>127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==a&&(r>t&&(i+=e.substring(t,r)),i+=a,t=r=o+1)}return r>t&&(i+=e.substring(t,e.length)),i},lr.UUID=(Bt=function(){var e,t=1*new Date;if(lt.performance&<.performance.now)e=lt.performance.now();else for(e=0;t==1*new Date;)e++;return t.toString(16)+Math.floor(e).toString(16)},function(){var e=(tr.height*tr.width).toString(16);return Bt()+"-"+Math.random().toString(16).replace(".","")+"-"+function(){var e,t,r=rr,n=[],o=0;function i(e,t){var r,o=0;for(r=0;r<t.length;r++)o|=n[r]<<8*r;return e^o}for(e=0;e<r.length;e++)t=r.charCodeAt(e),n.unshift(255&t),n.length>=4&&(o=i(o,n),n=[]);return n.length>0&&(o=i(o,n)),o.toString(16)}()+"-"+e+"-"+Bt()});var hr=["ahrefsbot","ahrefssiteaudit","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandexbot","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];lr.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<hr.length;t++)if(-1!==e.indexOf(hr[t]))return!0;return!1},lr.HTTPBuildQuery=function(e,t){var r,n,o=[];return lr.isUndefined(t)&&(t="&"),lr.each(e,(function(e,t){r=encodeURIComponent(e.toString()),n=encodeURIComponent(t),o[o.length]=n+"="+r})),o.join(t)},lr.getQueryParam=function(e,t){t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var r=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e);if(null===r||r&&"string"!=typeof r[1]&&r[1].length)return"";var n=r[1];try{n=decodeURIComponent(n)}catch(e){ur.error("Skipping decoding for malformed query param: "+n)}return n.replace(/\+/g," ")},lr.cookie={get:function(e){for(var t=e+"=",r=Zt.cookie.split(";"),n=0;n<r.length;n++){for(var o=r[n];" "==o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return decodeURIComponent(o.substring(t.length,o.length))}return null},parse:function(e){var t;try{t=lr.JSONDecode(lr.cookie.get(e))||{}}catch(e){}return t},set_seconds:function(e,t,r,n,o,i,s){var a="",c="",l="";if(s)a="; domain="+s;else if(n){var u=Sr(Zt.location.hostname);a=u?"; domain=."+u:""}if(r){var p=new Date;p.setTime(p.getTime()+1e3*r),c="; expires="+p.toGMTString()}i&&(o=!0,l="; SameSite=None"),o&&(l+="; secure"),Zt.cookie=e+"="+encodeURIComponent(t)+c+"; path=/"+a+l},set:function(e,t,r,n,o,i,s){var a="",c="",l="";if(s)a="; domain="+s;else if(n){var u=Sr(Zt.location.hostname);a=u?"; domain=."+u:""}if(r){var p=new Date;p.setTime(p.getTime()+24*r*60*60*1e3),c="; expires="+p.toGMTString()}i&&(o=!0,l="; SameSite=None"),o&&(l+="; secure");var d=e+"="+encodeURIComponent(t)+c+"; path=/"+a+l;return Zt.cookie=d,d},remove:function(e,t,r){lr.cookie.set(e,"",-1,t,!1,!1,r)}};var fr=null,mr=function(e,t){if(null!==fr&&!t)return fr;var r=!0;try{e=e||lt.localStorage;var n="__mplss_"+vr(8);e.setItem(n,"xyz"),"xyz"!==e.getItem(n)&&(r=!1),e.removeItem(n)}catch(e){r=!1}return fr=r,r};lr.localStorage={is_supported:function(e){var t=mr(null,e);return t||ur.error("localStorage unsupported; falling back to cookie store"),t},error:function(e){ur.error("localStorage error: "+e)},get:function(e){try{return lt.localStorage.getItem(e)}catch(e){lr.localStorage.error(e)}return null},parse:function(e){try{return lr.JSONDecode(lr.localStorage.get(e))||{}}catch(e){}return null},set:function(e,t){try{lt.localStorage.setItem(e,t)}catch(e){lr.localStorage.error(e)}},remove:function(e){try{lt.localStorage.removeItem(e)}catch(e){lr.localStorage.error(e)}}},lr.register_event=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,r,n,o,i){if(t)if(t.addEventListener&&!o)t.addEventListener(r,n,!!i);else{var s="on"+r,a=t[s];t[s]=function(t,r,n){var o=function(o){if(o=o||e(lt.event)){var i,s,a=!0;return lr.isFunction(n)&&(i=n(o)),s=r.call(t,o),!1!==i&&!1!==s||(a=!1),a}};return o}(t,n,a)}else ur.error("No valid element provided to register_event")}}();var gr=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');lr.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(e,r){var n=" "+r+" ";return(" "+e.className+" ").replace(t," ").indexOf(n)>=0}function n(t){if(!Zt.getElementsByTagName)return[];var n,o,i,s,a,c,l,u,p,d,h=t.split(" "),f=[Zt];for(c=0;c<h.length;c++)if((n=h[c].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){i=(o=n.split("#"))[0];var m=o[1],g=Zt.getElementById(m);if(!g||i&&g.nodeName.toLowerCase()!=i)return[];f=[g]}else if(n.indexOf(".")>-1){i=(o=n.split("."))[0];var _=o[1];for(i||(i="*"),s=[],a=0,l=0;l<f.length;l++)for(p="*"==i?e(f[l]):f[l].getElementsByTagName(i),u=0;u<p.length;u++)s[a++]=p[u];for(f=[],d=0,l=0;l<s.length;l++)s[l].className&&lr.isString(s[l].className)&&r(s[l],_)&&(f[d++]=s[l])}else{var y=n.match(gr);if(y){i=y[1];var v,b=y[2],k=y[3],S=y[4];for(i||(i="*"),s=[],a=0,l=0;l<f.length;l++)for(p="*"==i?e(f[l]):f[l].getElementsByTagName(i),u=0;u<p.length;u++)s[a++]=p[u];switch(f=[],d=0,k){case"=":v=function(e){return e.getAttribute(b)==S};break;case"~":v=function(e){return e.getAttribute(b).match(new RegExp("\\b"+S+"\\b"))};break;case"|":v=function(e){return e.getAttribute(b).match(new RegExp("^"+S+"-?"))};break;case"^":v=function(e){return 0===e.getAttribute(b).indexOf(S)};break;case"$":v=function(e){return e.getAttribute(b).lastIndexOf(S)==e.getAttribute(b).length-S.length};break;case"*":v=function(e){return e.getAttribute(b).indexOf(S)>-1};break;default:v=function(e){return e.getAttribute(b)}}for(f=[],d=0,l=0;l<s.length;l++)v(s[l])&&(f[d++]=s[l])}else{for(i=n,s=[],a=0,l=0;l<f.length;l++)for(p=f[l].getElementsByTagName(i),u=0;u<p.length;u++)s[a++]=p[u];f=s}}return f}return function(e){return lr.isElement(e)?[e]:lr.isObject(e)&&!lr.isUndefined(e.length)?e:n.call(this,e)}}();var _r=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],yr=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];lr.info={campaignParams:function(e){var t="",r={};return lr.each(_r,(function(n){(t=lr.getQueryParam(Zt.URL,n)).length?r[n]=t:void 0!==e&&(r[n]=e)})),r},clickParams:function(){var e="",t={};return lr.each(yr,(function(r){(e=lr.getQueryParam(Zt.URL,r)).length&&(t[r]=e)})),t},marketingParams:function(){return lr.extend(lr.info.campaignParams(),lr.info.clickParams())},searchEngine:function(e){return 0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},searchInfo:function(e){var t=lr.info.searchEngine(e),r="yahoo"!=t?"q":"p",n={};if(null!==t){n.$search_engine=t;var o=lr.getQueryParam(e,r);o.length&&(n.mp_keyword=o)}return n},browser:function(e,t,r){return t=t||"",r||lr.includes(e," OPR/")?lr.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":lr.includes(e,"IEMobile")||lr.includes(e,"WPDesktop")?"Internet Explorer Mobile":lr.includes(e,"SamsungBrowser/")?"Samsung Internet":lr.includes(e,"Edge")||lr.includes(e,"Edg/")?"Microsoft Edge":lr.includes(e,"FBIOS")?"Facebook Mobile":lr.includes(e,"Chrome")?"Chrome":lr.includes(e,"CriOS")?"Chrome iOS":lr.includes(e,"UCWEB")||lr.includes(e,"UCBrowser")?"UC Browser":lr.includes(e,"FxiOS")?"Firefox iOS":lr.includes(t,"Apple")?lr.includes(e,"Mobile")?"Mobile Safari":"Safari":lr.includes(e,"Android")?"Android Mobile":lr.includes(e,"Konqueror")?"Konqueror":lr.includes(e,"Firefox")?"Firefox":lr.includes(e,"MSIE")||lr.includes(e,"Trident/")?"Internet Explorer":lr.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,r){var n={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[lr.info.browser(e,t,r)];if(void 0===n)return null;var o=e.match(n);return o?parseFloat(o[o.length-2]):null},os:function(){var e=rr;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return lt.location.href},properties:function(e){return"object"!=typeof e&&(e={}),lr.extend(lr.strip_empty_properties({$os:lr.info.os(),$browser:lr.info.browser(rr,Kt.vendor,er),$referrer:Zt.referrer,$referring_domain:lr.info.referringDomain(Zt.referrer),$device:lr.info.device(rr)}),{$current_url:lr.info.currentUrl(),$browser_version:lr.info.browserVersion(rr,Kt.vendor,er),$screen_height:tr.height,$screen_width:tr.width,mp_lib:"web",$lib_version:dt.LIB_VERSION,$insert_id:vr(),time:lr.timestamp()/1e3},lr.strip_empty_properties(e))},people_properties:function(){return lr.extend(lr.strip_empty_properties({$os:lr.info.os(),$browser:lr.info.browser(rr,Kt.vendor,er)}),{$browser_version:lr.info.browserVersion(rr,Kt.vendor,er)})},mpPageViewProperties:function(){return lr.strip_empty_properties({current_page_title:Zt.title,current_domain:lt.location.hostname,current_url_path:lt.location.pathname,current_url_protocol:lt.location.protocol,current_url_search:lt.location.search})}};var vr=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},br=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,kr=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Sr=function(e){var t=kr,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=br);var o=e.match(t);return o?o[0]:""},wr=null,Ir=null;"undefined"!=typeof JSON&&(wr=JSON.stringify,Ir=JSON.parse),wr=wr||lr.JSONEncode,Ir=Ir||lr.JSONDecode,lr.toArray=lr.toArray,lr.isObject=lr.isObject,lr.JSONEncode=lr.JSONEncode,lr.JSONDecode=lr.JSONDecode,lr.isBlockedUA=lr.isBlockedUA,lr.isEmptyObject=lr.isEmptyObject,lr.info=lr.info,lr.info.device=lr.info.device,lr.info.browser=lr.info.browser,lr.info.browserVersion=lr.info.browserVersion,lr.info.properties=lr.info.properties,lr.NPO=Ot;function Cr(e,t){qr(!0,e,t)}function Mr(e,t){qr(!1,e,t)}function xr(e,t){return"1"===Ar(e,t)}function Er(e,t){if(function(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||lt,r=t.navigator||{},n=!1;return lr.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],(function(e){lr.includes([!0,1,"1","yes"],e)&&(n=!0)})),n}(t))return ur.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var r="0"===Ar(e,t);return r&&ur.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function Or(e){return Pr(e,(function(e){return this.get_config(e)}))}function Tr(e){return Pr(e,(function(e){return this._get_config(e)}))}function Rr(e){return Pr(e,(function(e){return this._get_config(e)}))}function Lr(e,t){Nr(t=t||{}).remove(Dr(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function Nr(e){return"localStorage"===(e=e||{}).persistenceType?lr.localStorage:lr.cookie}function Dr(e,t){return((t=t||{}).persistencePrefix||"__mp_opt_in_out_")+e}function Ar(e,t){return Nr(t).get(Dr(e,t))}function qr(e,t,r){lr.isString(t)&&t.length?(Nr(r=r||{}).set(Dr(t,r),e?1:0,lr.isNumber(r.cookieExpiration)?r.cookieExpiration:null,!!r.crossSubdomainCookie,!!r.secureCookie,!!r.crossSiteCookie,r.cookieDomain),r.track&&e&&r.track(r.trackEventName||"$opt_in",r.trackProperties,{send_immediately:!0})):ur.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function Pr(e,t){return function(){var r=!1;try{var n=t.call(this,"token"),o=t.call(this,"ignore_dnt"),i=t.call(this,"opt_out_tracking_persistence_type"),s=t.call(this,"opt_out_tracking_cookie_prefix"),a=t.call(this,"window");n&&(r=Er(n,{ignoreDnt:o,persistenceType:i,persistencePrefix:s,window:a}))}catch(e){ur.error("Unexpected error when checking tracking opt-out status: "+e)}if(!r)return e.apply(this,arguments);var c=arguments[arguments.length-1];"function"==typeof c&&c(0)}}var Fr=dr("lock"),jr=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||Tt};jr.prototype.withLock=function(e,t){return new(0,this.promiseImpl)(lr.bind((function(r,n){var o=t||(new Date).getTime()+"|"+Math.random(),i=(new Date).getTime(),s=this.storageKey,a=this.pollIntervalMS,c=this.timeoutMS,l=this.storage,u=s+":X",p=s+":Y",d=s+":Z",h=function(e){if((new Date).getTime()-i>c)return Fr.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+o+"]"),l.removeItem(d),l.removeItem(p),void g();setTimeout((function(){try{e()}catch(e){n(e)}}),a*(Math.random()+.1))},f=function(e,t){e()?t():h((function(){f(e,t)}))},m=function(){var e=l.getItem(p);return(!e||e===o)&&(l.setItem(p,o),l.getItem(p)===o||(mr(l,!0)||n(new Error("localStorage support dropped while acquiring lock")),!1))},g=function(){l.setItem(u,o),f(m,(function(){l.getItem(u)!==o?h((function(){l.getItem(p)===o?f((function(){return!l.getItem(d)}),_):g()})):_()}))},_=function(){l.setItem(d,"1");var t=function(){l.removeItem(d),l.getItem(p)===o&&l.removeItem(p),l.getItem(u)===o&&l.removeItem(u)};e().then((function(e){t(),r(e)})).catch((function(e){t(),n(e)}))};try{if(!mr(l,!0))throw new Error("localStorage support check failed");g()}catch(e){n(e)}}),this))};var Ur=function(e){this.storage=e||localStorage};Ur.prototype.init=function(){return Tt.resolve()},Ur.prototype.setItem=function(e,t){return new Tt(lr.bind((function(r,n){try{this.storage.setItem(e,t)}catch(e){n(e)}r()}),this))},Ur.prototype.getItem=function(e){return new Tt(lr.bind((function(t,r){var n;try{n=this.storage.getItem(e)}catch(e){r(e)}t(n)}),this))},Ur.prototype.removeItem=function(e){return new Tt(lr.bind((function(t,r){try{this.storage.removeItem(e)}catch(e){r(e)}t()}),this))};var zr=dr("batch"),Br=function(e,t){t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new Ur,this.lock=new jr(e,{storage:t.sharedLockStorage||window.localStorage}),this.queueStorage.init()),this.reportError=t.errorReporter||lr.bind(zr.error,zr),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1};Br.prototype.ensureInit=function(){return this.initialized?Tt.resolve():this.queueStorage.init().then(lr.bind((function(){this.initialized=!0}),this)).catch(lr.bind((function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1}),this))},Br.prototype.enqueue=function(e,t){var r={id:vr(),flushAfter:(new Date).getTime()+2*t,payload:e};if(this.usePersistence){var n=lr.bind((function(){return this.ensureInit().then(lr.bind((function(){return this.readFromStorage()}),this)).then(lr.bind((function(e){return e.push(r),this.saveToStorage(e)}),this)).then(lr.bind((function(e){return e&&this.memQueue.push(r),e}),this)).catch(lr.bind((function(t){return this.reportError("Error enqueueing item",t,e),!1}),this))}),this);return this.lock.withLock(n,this.pid).catch(lr.bind((function(e){return this.reportError("Error acquiring storage lock",e),!1}),this))}return this.memQueue.push(r),Tt.resolve(!0)},Br.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(lr.bind((function(){return this.readFromStorage()}),this)).then(lr.bind((function(r){if(r.length){var n={};lr.each(t,(function(e){n[e.id]=!0}));for(var o=0;o<r.length;o++){var i=r[o];if((new Date).getTime()>i.flushAfter&&!n[i.id]&&(i.orphaned=!0,t.push(i),t.length>=e))break}}return t}),this)):Tt.resolve(t)};var $r=function(e,t){var r=[];return lr.each(e,(function(e){e.id&&!t[e.id]&&r.push(e)})),r};Br.prototype.removeItemsByID=function(e){var t={};if(lr.each(e,(function(e){t[e]=!0})),this.memQueue=$r(this.memQueue,t),this.usePersistence){var r=lr.bind((function(){return this.ensureInit().then(lr.bind((function(){return this.readFromStorage()}),this)).then(lr.bind((function(e){return e=$r(e,t),this.saveToStorage(e)}),this)).then(lr.bind((function(){return this.readFromStorage()}),this)).then(lr.bind((function(e){for(var r=0;r<e.length;r++){var n=e[r];if(n.id&&t[n.id])throw new Error("Item not removed from storage")}return!0}),this)).catch(lr.bind((function(t){return this.reportError("Error removing items",t,e),!1}),this))}),this);return this.lock.withLock(r,this.pid).catch(lr.bind((function(e){return this.reportError("Error acquiring storage lock",e),!mr(this.queueStorage.storage,!0)&&r().then(lr.bind((function(e){return e||this.queueStorage.removeItem(this.storageKey).then((function(){return e}))}),this)).catch(lr.bind((function(e){return this.reportError("Error clearing queue",e),!1}),this))}),this))}return Tt.resolve(!0)};var Wr=function(e,t){var r=[];return lr.each(e,(function(e){var n=e.id;if(n in t){var o=t[n];null!==o&&(e.payload=o,r.push(e))}else r.push(e)})),r};Br.prototype.updatePayloads=function(e){return this.memQueue=Wr(this.memQueue,e),this.usePersistence?this.lock.withLock(lr.bind((function(){return this.ensureInit().then(lr.bind((function(){return this.readFromStorage()}),this)).then(lr.bind((function(t){return t=Wr(t,e),this.saveToStorage(t)}),this)).catch(lr.bind((function(t){return this.reportError("Error updating items",e,t),!1}),this))}),this),this.pid).catch(lr.bind((function(e){return this.reportError("Error acquiring storage lock",e),!1}),this)):Tt.resolve(!0)},Br.prototype.readFromStorage=function(){return this.ensureInit().then(lr.bind((function(){return this.queueStorage.getItem(this.storageKey)}),this)).then(lr.bind((function(e){return e&&(e=Ir(e),lr.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null)),e||[]}),this)).catch(lr.bind((function(e){return this.reportError("Error retrieving queue",e),[]}),this))},Br.prototype.saveToStorage=function(e){try{var t=wr(e)}catch(e){return this.reportError("Error serializing queue",e),Tt.resolve(!1)}return this.ensureInit().then(lr.bind((function(){return this.queueStorage.setItem(this.storageKey,t)}),this)).then((function(){return!0})).catch(lr.bind((function(e){return this.reportError("Error saving queue",e),!1}),this))},Br.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(lr.bind((function(){return this.queueStorage.removeItem(this.storageKey)}),this)):Tt.resolve()};var Hr=dr("batch"),Gr=function(e,t){this.errorReporter=t.errorReporter,this.queue=new Br(e,{errorReporter:lr.bind(this.reportError,this),queueStorage:t.queueStorage,sharedLockStorage:t.sharedLockStorage,usePersistence:t.usePersistence}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=t.flushOnlyOnInterval||!1};Gr.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},Gr.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},Gr.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},Gr.prototype.clear=function(){return this.queue.clear()},Gr.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},Gr.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},Gr.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(lr.bind((function(){this.stopped||this.flush()}),this),this.flushInterval))},Gr.prototype.sendRequestPromise=function(e,t){return new Tt(lr.bind((function(r){this.sendRequest(e,t,r)}),this))},Gr.prototype.flush=function(e){if(this.requestInProgress)return Hr.log("Flush: Request already in progress"),Tt.resolve();this.requestInProgress=!0,e=e||{};var t=this.libConfig.batch_request_timeout_ms,r=(new Date).getTime(),n=this.batchSize;return this.queue.fillBatch(n).then(lr.bind((function(o){var i=o.length===n,s=[],a={};if(lr.each(o,(function(e){var t=e.payload;if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t.event&&t.properties&&(t.properties=lr.extend({},t.properties,{mp_sent_by_lib_version:dt.LIB_VERSION}));var r=!0,n=e.id;n?(this.itemIdsSentSuccessfully[n]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:o.length,timesSent:this.itemIdsSentSuccessfully[n]}),r=!1):this.reportError("[dupe] found item with no ID",{item:e}),r&&s.push(t)}a[e.id]=t}),this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),Tt.resolve();var c=lr.bind((function(){return this.queue.removeItemsByID(lr.map(o,(function(e){return e.id}))).then(lr.bind((function(e){return lr.each(o,lr.bind((function(e){var t=e.id;t?(this.itemIdsSentSuccessfully[t]=this.itemIdsSentSuccessfully[t]||0,this.itemIdsSentSuccessfully[t]++,this.itemIdsSentSuccessfully[t]>5&&this.reportError("[dupe] item ID sent too many times",{item:e,batchSize:o.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError("[dupe] found item with no ID while removing",{item:e})}),this)),e?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!i?(this.resetFlush(),Tt.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),Tt.resolve())}),this))}),this),l=lr.bind((function(i){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(a);if(lr.isObject(i)&&"timeout"===i.error&&(new Date).getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(lr.isObject(i)&&(i.httpStatusCode>=500||429===i.httpStatusCode||i.httpStatusCode<=0&&(u=lt.navigator.onLine,!lr.isUndefined(u)&&!u)||"timeout"===i.error)){var s=2*this.flushInterval;return i.retryAfter&&(s=1e3*parseInt(i.retryAfter,10)||s),s=Math.min(6e5,s),this.reportError("Error; retry in "+s+" ms"),this.scheduleFlush(s),Tt.resolve()}if(lr.isObject(i)&&413===i.httpStatusCode){if(o.length>1){var l=Math.max(1,Math.floor(n/2));return this.batchSize=Math.min(this.batchSize,l,o.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),Tt.resolve()}return this.reportError("Single-event request too large; dropping",o),this.resetBatchSize(),c()}return c()}catch(e){this.reportError("Error handling API response",e),this.resetFlush()}var u}),this),u={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(u.transport="sendBeacon"),Hr.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,u).then(l)}),this)).catch(lr.bind((function(e){this.reportError("Error flushing request queue",e),this.resetFlush()}),this))},Gr.prototype.reportError=function(e,t){if(Hr.error.apply(Hr.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(t){Hr.error(t)}};var Vr=dr("recorder"),Jr=lt.CompressionStream,Yr={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},Xr=new Set([pt.MouseMove,pt.MouseInteraction,pt.Scroll,pt.ViewportResize,pt.Input,pt.TouchMove,pt.MediaInteraction,pt.Drag,pt.Selection]);var Qr=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout,this._onMaxLengthReached=e.onMaxLengthReached,this._rrwebRecord=e.rrwebRecord,this.replayId=e.replayId,this._stopRecording=null,this.seqNo=0,this.replayStartTime=null,this.replayStartUrl=null,this.batchStartUrl=null,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=$t,this.recordMinMs=0;var t="__mprec_"+this.getConfig("token")+"_"+this.replayId;this.batcher=new Gr(t,{errorReporter:lr.bind(this.reportError,this),flushOnlyOnInterval:!0,libConfig:Yr,sendRequestFunc:lr.bind(this.flushEventsWithOptOut,this),usePersistence:!1})};Qr.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},Qr.prototype.get_config=function(e){return this.getConfig(e)},Qr.prototype.startRecording=function(e){if(null===this._stopRecording){this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>$t&&(this.recordMaxMs=$t,Vr.critical("record_max_ms cannot be greater than "+$t+"ms. Capping value.")),this.recordMinMs=this.getConfig("record_min_ms"),this.recordMinMs>Wt&&(this.recordMinMs=Wt,Vr.critical("record_min_ms cannot be greater than 8000ms. Capping value.")),this.replayStartTime=(new Date).getTime(),this.batchStartUrl=lr.info.currentUrl(),this.replayStartUrl=lr.info.currentUrl(),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=lr.bind((function(){clearTimeout(this.idleTimeoutId),this.idleTimeoutId=setTimeout(this._onIdleTimeout,this.getConfig("record_idle_timeout_ms"))}),this),r=this.getConfig("record_block_selector");if(""!==r&&null!==r||(r=void 0),this._stopRecording=this._rrwebRecord({emit:lr.bind((function(e){this.batcher.enqueue(e),function(e){return e.type===ut.IncrementalSnapshot&&Xr.has(e.data.source)}(e)&&(this.batcher.stopped&&(new Date).getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t())}),this),blockClass:this.getConfig("record_block_class"),blockSelector:r,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextClass:this.getConfig("record_mask_text_class"),maskTextSelector:this.getConfig("record_mask_text_selector"),recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15}}),"function"!=typeof this._stopRecording)return this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,void this.stopRecording();t(),this.maxTimeoutId=setTimeout(lr.bind(this._onMaxLengthReached,this),this.recordMaxMs)}else Vr.log("Recording already in progress, skipping startRecording.")},Qr.prototype.stopRecording=function(){if(!this.isRrwebStopped()){try{this._stopRecording()}catch(e){this.reportError("Error with rrweb stopRecording",e)}this._stopRecording=null}this.batcher.stopped?this.batcher.clear():(this.batcher.flush(),this.batcher.stop()),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId)},Qr.prototype.isRrwebStopped=function(){return null===this._stopRecording},Qr.prototype.flushEventsWithOptOut=function(e,t,r){this._flushEvents(e,t,r,lr.bind(this._onOptOut,this))},Qr.prototype._onOptOut=function(e){0===e&&this.stopRecording()},Qr.prototype._sendRequest=function(e,t,r,n){var o=lr.bind((function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=lr.info.currentUrl()),n({status:0,httpStatusCode:t.status,responseBody:r,retryAfter:t.headers.get("Retry-After")})}),this);lt.fetch(this.getConfig("api_host")+"/"+this.getConfig("api_routes").record+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:r}).then((function(e){e.json().then((function(t){o(e,t)})).catch((function(e){n({error:e})}))})).catch((function(e){n({error:e,httpStatusCode:0})}))},Qr.prototype._flushEvents=Or((function(e,t,r){const n=e.length;if(n>0){var o=this.replayId,i=e[0].timestamp;0!==this.seqNo&&this.replayStartTime||(0!==this.seqNo&&this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=i);var s=e[n-1].timestamp-this.replayStartTime,a={$current_url:this.batchStartUrl,$lib_version:dt.LIB_VERSION,batch_start_time:i/1e3,distinct_id:String(this._mixpanel.get_distinct_id()),mp_lib:"web",replay_id:o,replay_length_ms:s,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},c=lr.JSONEncode(e),l=this._mixpanel.get_property("$device_id");l&&(a.$device_id=l);var u=this._mixpanel.get_property("$user_id");if(u&&(a.$user_id=u),Jr){var p=new Blob([c],{type:"application/json"}).stream().pipeThrough(new Jr("gzip"));new Response(p).blob().then(lr.bind((function(e){a.format="gzip",this._sendRequest(o,a,e,r)}),this))}else a.format="body",this._sendRequest(o,a,c,r)}})),Qr.prototype.reportError=function(e,t){Vr.error.apply(Vr.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.getConfig("error_reporter")(e,t)}catch(t){Vr.error(t)}};var Kr=dr("recorder"),Zr=function(e){this._mixpanel=e,this.activeRecording=null};Zr.prototype.startRecording=function(e){if(!this.activeRecording||this.activeRecording.isRrwebStopped()){var t=lr.bind((function(){Kr.log("Idle timeout reached, restarting recording."),this.resetRecording()}),this),r=lr.bind((function(){Kr.log("Max recording length reached, stopping recording."),this.resetRecording()}),this);this.activeRecording=new Qr({mixpanelInstance:this._mixpanel,onIdleTimeout:t,onMaxLengthReached:r,replayId:lr.UUID(),rrwebRecord:ct}),this.activeRecording.startRecording(e)}else Kr.log("Recording already in progress, skipping startRecording.")},Zr.prototype.stopRecording=function(){this.activeRecording&&(this.activeRecording.stopRecording(),this.activeRecording=null)},Zr.prototype.resetRecording=function(){this.stopRecording(),this.startRecording(!0)},Zr.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null},Object.defineProperty(Zr.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),lt.__mp_recorder=Zr;var en=function(){};en.prototype.create_properties=function(){},en.prototype.event_handler=function(){},en.prototype.after_track_handler=function(){},en.prototype.init=function(e){return this.mp=e,this},en.prototype.track=function(e,t,r,n){var o=this,i=lr.dom_query(e);if(0!==i.length)return lr.each(i,(function(e){lr.register_event(e,this.override_event,(function(e){var i={},s=o.create_properties(r,this),a=o.mp.get_config("track_links_timeout");o.event_handler(e,this,i),window.setTimeout(o.track_callback(n,s,i,!0),a),o.mp.track(t,s,o.track_callback(n,s,i))}))}),this),!0;ur.error("The DOM query ("+e+") returned 0 elements")},en.prototype.track_callback=function(e,t,r,n){n=n||!1;var o=this;return function(){r.callback_fired||(r.callback_fired=!0,e&&!1===e(n,t)||o.after_track_handler(t,r,n))}},en.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):lr.extend({},e)};var tn=function(){this.override_event="click"};lr.inherit(tn,en),tn.prototype.create_properties=function(e,t){var r=tn.superclass.create_properties.apply(this,arguments);return t.href&&(r.url=t.href),r},tn.prototype.event_handler=function(e,t,r){r.new_tab=2===e.which||e.metaKey||e.ctrlKey||"_blank"===t.target,r.href=t.href,r.new_tab||e.preventDefault()},tn.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout((function(){window.location=t.href}),0)};var rn=function(){this.override_event="submit"};lr.inherit(rn,en),rn.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},rn.prototype.after_track_handler=function(e,t){setTimeout((function(){t.element.submit()}),0)};var nn="$set",on="$set_once",sn="$unset",an="$add",cn="$append",ln="$union",un="$remove",pn={set_action:function(e,t){var r={},n={};return lr.isObject(e)?lr.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[nn]=n,r},unset_action:function(e){var t={},r=[];return lr.isArray(e)||(e=[e]),lr.each(e,(function(e){this._is_reserved_property(e)||r.push(e)}),this),t[sn]=r,t},set_once_action:function(e,t){var r={},n={};return lr.isObject(e)?lr.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[on]=n,r},union_action:function(e,t){var r={},n={};return lr.isObject(e)?lr.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=lr.isArray(e)?e:[e])}),this):n[e]=lr.isArray(t)?t:[t],r[ln]=n,r},append_action:function(e,t){var r={},n={};return lr.isObject(e)?lr.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[cn]=n,r},remove_action:function(e,t){var r={},n={};return lr.isObject(e)?lr.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[un]=n,r},delete_action:function(){var e={$delete:""};return e}},dn=function(){};lr.extend(dn.prototype,pn),dn.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},dn.prototype.set=Rr((function(e,t,r){var n=this.set_action(e,t);return lr.isObject(e)&&(r=t),this._send_request(n,r)})),dn.prototype.set_once=Rr((function(e,t,r){var n=this.set_once_action(e,t);return lr.isObject(e)&&(r=t),this._send_request(n,r)})),dn.prototype.unset=Rr((function(e,t){var r=this.unset_action(e);return this._send_request(r,t)})),dn.prototype.union=Rr((function(e,t,r){lr.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)})),dn.prototype.delete=Rr((function(e){var t=this.delete_action();return this._send_request(t,e)})),dn.prototype.remove=Rr((function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)})),dn.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var r=lr.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,endpoint:this._get_config("api_host")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)},dn.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},dn.prototype._get_config=function(e){return this._mixpanel.get_config(e)},dn.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},dn.prototype.remove=dn.prototype.remove,dn.prototype.set=dn.prototype.set,dn.prototype.set_once=dn.prototype.set_once,dn.prototype.union=dn.prototype.union,dn.prototype.unset=dn.prototype.unset,dn.prototype.toString=dn.prototype.toString;var hn=function(){};lr.extend(hn.prototype,pn),hn.prototype._init=function(e){this._mixpanel=e},hn.prototype.set=Tr((function(e,t,r){var n=this.set_action(e,t);return lr.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),n[nn]=lr.extend({},lr.info.people_properties(),n[nn]),this._send_request(n,r)})),hn.prototype.set_once=Tr((function(e,t,r){var n=this.set_once_action(e,t);return lr.isObject(e)&&(r=t),this._send_request(n,r)})),hn.prototype.unset=Tr((function(e,t){var r=this.unset_action(e);return this._send_request(r,t)})),hn.prototype.increment=Tr((function(e,t,r){var n={},o={};return lr.isObject(e)?(lr.each(e,(function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e)))return void ur.error("Invalid increment value passed to mixpanel.people.increment - must be a number");o[t]=e}}),this),r=t):(lr.isUndefined(t)&&(t=1),o[e]=t),n[an]=o,this._send_request(n,r)})),hn.prototype.append=Tr((function(e,t,r){lr.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)})),hn.prototype.remove=Tr((function(e,t,r){lr.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)})),hn.prototype.union=Tr((function(e,t,r){lr.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)})),hn.prototype.track_charge=Tr((function(e,t,r){if(lr.isNumber(e)||(e=parseFloat(e),!isNaN(e)))return this.append("$transactions",lr.extend({$amount:e},t),r);ur.error("Invalid value passed to mixpanel.people.track_charge - must be a number")})),hn.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},hn.prototype.delete_user=function(){if(this._identify_called()){var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)}ur.error("mixpanel.people.delete_user() requires you to call identify() first")},hn.prototype.toString=function(){return this._mixpanel.toString()+".people"},hn.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var r=this._mixpanel.get_property("$device_id"),n=this._mixpanel.get_property("$user_id"),o=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e.$device_id=r),n&&(e.$user_id=n),o&&(e.$had_persisted_distinct_id=o);var i=lr.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:i,endpoint:this._get_config("api_host")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),lr.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),lr.truncate(i,255))},hn.prototype._get_config=function(e){return this._mixpanel.get_config(e)},hn.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},hn.prototype._enqueue=function(e){nn in e?this._mixpanel.persistence._add_to_people_queue(nn,e):on in e?this._mixpanel.persistence._add_to_people_queue(on,e):sn in e?this._mixpanel.persistence._add_to_people_queue(sn,e):an in e?this._mixpanel.persistence._add_to_people_queue(an,e):cn in e?this._mixpanel.persistence._add_to_people_queue(cn,e):un in e?this._mixpanel.persistence._add_to_people_queue(un,e):ln in e?this._mixpanel.persistence._add_to_people_queue(ln,e):ur.error("Invalid call to _enqueue():",e)},hn.prototype._flush_one_queue=function(e,t,r,n){var o=this,i=lr.extend({},this._mixpanel.persistence.load_queue(e)),s=i;lr.isUndefined(i)||!lr.isObject(i)||lr.isEmptyObject(i)||(o._mixpanel.persistence._pop_from_people_queue(e,i),o._mixpanel.persistence.save(),n&&(s=n(i)),t.call(o,s,(function(t,n){0===t&&o._mixpanel.persistence._add_to_people_queue(e,i),lr.isUndefined(r)||r(t,n)})))},hn.prototype._flush=function(e,t,r,n,o,i,s){var a=this;this._flush_one_queue(nn,this.set,e),this._flush_one_queue(on,this.set_once,n),this._flush_one_queue(sn,this.unset,i,(function(e){return lr.keys(e)})),this._flush_one_queue(an,this.increment,t),this._flush_one_queue(ln,this.union,o);var c=this._mixpanel.persistence.load_queue(cn);if(!lr.isUndefined(c)&&lr.isArray(c)&&c.length)for(var l,u=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(cn,l),lr.isUndefined(r)||r(e,t)},p=c.length-1;p>=0;p--)c=this._mixpanel.persistence.load_queue(cn),l=c.pop(),a._mixpanel.persistence.save(),lr.isEmptyObject(l)||a.append(l,u);var d=this._mixpanel.persistence.load_queue(un);if(!lr.isUndefined(d)&&lr.isArray(d)&&d.length)for(var h,f=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(un,h),lr.isUndefined(s)||s(e,t)},m=d.length-1;m>=0;m--)d=this._mixpanel.persistence.load_queue(un),h=d.pop(),a._mixpanel.persistence.save(),lr.isEmptyObject(h)||a.remove(h,f)},hn.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},hn.prototype.set=hn.prototype.set,hn.prototype.set_once=hn.prototype.set_once,hn.prototype.unset=hn.prototype.unset,hn.prototype.increment=hn.prototype.increment,hn.prototype.append=hn.prototype.append,hn.prototype.remove=hn.prototype.remove,hn.prototype.union=hn.prototype.union,hn.prototype.track_charge=hn.prototype.track_charge,hn.prototype.clear_charges=hn.prototype.clear_charges,hn.prototype.delete_user=hn.prototype.delete_user,hn.prototype.toString=hn.prototype.toString;var fn,mn="__mps",gn="__mpso",_n="__mpus",yn="__mpa",vn="__mpap",bn="__mpr",kn="__mpu",Sn="$people_distinct_id",wn="__alias",In="__timers",Cn=[mn,gn,_n,yn,vn,bn,kn,Sn,wn,In],Mn=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;"cookie"!==t&&"localStorage"!==t&&(ur.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&lr.localStorage.is_supported()?this.storage=lr.localStorage:this.storage=lr.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};Mn.prototype.properties=function(){var e={};return this.load(),lr.each(this.props,(function(t,r){lr.include(Cn,r)||(e[r]=t)})),e},Mn.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=lr.extend({},e))}},Mn.prototype.upgrade=function(){var e,t;this.storage===lr.localStorage?(e=lr.cookie.parse(this.name),lr.cookie.remove(this.name),lr.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===lr.cookie&&(t=lr.localStorage.parse(this.name),lr.localStorage.remove(this.name),t&&this.register_once(t))},Mn.prototype.save=function(){this.disabled||this.storage.set(this.name,lr.JSONEncode(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},Mn.prototype.load_prop=function(e){return this.load(),this.props[e]},Mn.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},Mn.prototype.clear=function(){this.remove(),this.props={}},Mn.prototype.register_once=function(e,t,r){return!!lr.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),lr.each(e,(function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)}),this),this.save(),!0)},Mn.prototype.register=function(e,t){return!!lr.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),lr.extend(this.props,e),this.save(),!0)},Mn.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},Mn.prototype.update_search_keyword=function(e){this.register(lr.info.searchInfo(e))},Mn.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:lr.info.referringDomain(e)||"$direct"},"")},Mn.prototype.get_referrer_info=function(){return lr.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},Mn.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)},Mn.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},Mn.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},Mn.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},Mn.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},Mn.prototype.get_cross_subdomain=function(){return this.cross_subdomain},Mn.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},Mn.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],o=this._get_or_create_queue(nn),i=this._get_or_create_queue(on),s=this._get_or_create_queue(sn),a=this._get_or_create_queue(an),c=this._get_or_create_queue(ln),l=this._get_or_create_queue(un,[]),u=this._get_or_create_queue(cn,[]);r===mn?(lr.extend(o,n),this._pop_from_people_queue(an,n),this._pop_from_people_queue(ln,n),this._pop_from_people_queue(sn,n)):r===gn?(lr.each(n,(function(e,t){t in i||(i[t]=e)})),this._pop_from_people_queue(sn,n)):r===_n?lr.each(n,(function(e){lr.each([o,i,a,c],(function(t){e in t&&delete t[e]})),lr.each(u,(function(t){e in t&&delete t[e]})),s[e]=!0})):r===yn?(lr.each(n,(function(e,t){t in o?o[t]+=e:(t in a||(a[t]=0),a[t]+=e)}),this),this._pop_from_people_queue(sn,n)):r===kn?(lr.each(n,(function(e,t){lr.isArray(e)&&(t in c||(c[t]=[]),c[t]=c[t].concat(e))})),this._pop_from_people_queue(sn,n)):r===bn?(l.push(n),this._pop_from_people_queue(cn,n)):r===vn&&(u.push(n),this._pop_from_people_queue(sn,n)),ur.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),ur.log(t),this.save()},Mn.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];lr.isUndefined(r)||lr.each(t,(function(t,n){e===cn||e===un?lr.each(r,(function(e){e[n]===t&&delete e[n]})):delete r[n]}),this)},Mn.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},Mn.prototype._get_queue_key=function(e){return e===nn?mn:e===on?gn:e===sn?_n:e===an?yn:e===cn?vn:e===un?bn:e===ln?kn:void ur.error("Invalid queue:",e)},Mn.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=lr.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)},Mn.prototype.set_event_timer=function(e,t){var r=this.load_prop(In)||{};r[e]=t,this.props[In]=r,this.save()},Mn.prototype.remove_event_timer=function(e){var t=(this.load_prop(In)||{})[e];return lr.isUndefined(t)||(delete this.props[In][e],this.save()),t};var xn,En=function(e,t){throw new Error(e+" not available in this build.")},On=function(e){return e},Tn=function(){},Rn="mixpanel",Ln="base64",Nn="$device:",Dn=lt.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,An=!Dn&&-1===rr.indexOf("MSIE")&&-1===rr.indexOf("Mozilla"),qn=null;Kt.sendBeacon&&(qn=function(){return Kt.sendBeacon.apply(Kt,arguments)});var Pn={track:"track/",engage:"engage/",groups:"groups/",record:"record/"},Fn={api_host:"https://api-js.mixpanel.com",api_routes:Pn,api_method:"POST",api_transport:"XHR",api_payload_format:Ln,app_host:"https://mixpanel.com",cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:Tn,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:Tn,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video",record_canvas:!1,record_collect_fonts:!1,record_idle_timeout_ms:18e5,record_mask_text_class:new RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),record_mask_text_selector:"*",record_max_ms:$t,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},jn=!1,Un=function(){},zn=function(e,t,r){var n,o=r===Rn?xn:xn[r];if(o&&0===fn)n=o;else{if(o&&!lr.isArray(o))return void ur.error("You have already initialized "+r);n=new Un}if(n._cached_groups={},n._init(e,t,r),n.people=new hn,n.people._init(n),!n.get_config("skip_first_touch_marketing")){var i=lr.info.campaignParams(null),s={},a=!1;lr.each(i,(function(e,t){s["initial_"+t]=e,e&&(a=!0)})),a&&n.people.set_once(s)}return dt.DEBUG=dt.DEBUG||n.get_config("debug"),!lr.isUndefined(o)&&lr.isArray(o)&&(n._execute_array.call(n.people,o.people),n._execute_array(o)),n};Un.prototype.init=function(e,t,r){if(lr.isUndefined(r))this.report_error("You must name your new library: init(token, config, name)");else{if(r!==Rn){var n=zn(e,t,r);return xn[r]=n,n._loaded(),n}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},Un.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var n={};"api_payload_format"in t||(t.api_host||Fn.api_host).match(/\.mixpanel\.com/)&&(n.api_payload_format="json");if(this.set_config(lr.extend({},Fn,n,t,{name:r,token:e,callback_fn:(r===Rn?r:Rn+"."+r)+"._jsc"})),this._jsc=Tn,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(lr.localStorage.is_supported(!0)&&Dn){if(this.init_batchers(),qn&<.addEventListener){var o=lr.bind((function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})}),this);lt.addEventListener("pagehide",(function(e){e.persisted&&o()})),lt.addEventListener("visibilitychange",(function(){"hidden"===Zt.visibilityState&&o()}))}}else this._batch_requests=!1,ur.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),lr.each(this.get_batcher_configs(),(function(e){ur.log("Clearing batch queue "+e.queue_key),lr.localStorage.remove(e.queue_key)}));this.persistence=this.cookie=new Mn(this.config),this.unpersisted_superprops={},this._gdpr_init();var i=lr.UUID();this.get_distinct_id()||this.register_once({distinct_id:Nn+i,$device_id:i},"");var s=this.get_config("track_pageview");s&&this._init_url_change_tracking(s),this.get_config("record_sessions_percent")>0&&100*Math.random()<=this.get_config("record_sessions_percent")&&this.start_session_recording()},Un.prototype.start_session_recording=Or((function(){if(lt.MutationObserver){var e=lr.bind((function(){this._recorder=this._recorder||new lt.__mp_recorder(this),this._recorder.startRecording()}),this);lr.isUndefined(lt.__mp_recorder)?En(this.get_config("recorder_src"),e):e()}else ur.critical("Browser does not support MutationObserver; skipping session recording")})),Un.prototype.stop_session_recording=function(){this._recorder?this._recorder.stopRecording():ur.critical("Session recorder module not loaded")},Un.prototype.get_session_recording_properties=function(){var e={},t=this._get_session_replay_id();return t&&(e.$mp_replay_id=t),e},Un.prototype.get_session_replay_url=function(){var e=null,t=this._get_session_replay_id();t&&(e="https://mixpanel.com/projects/replay-redirect?"+lr.HTTPBuildQuery({replay_id:t,distinct_id:this.get_distinct_id(),token:this.get_config("token")}));return e},Un.prototype._get_session_replay_id=function(){var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},Un.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=lr.info.campaignParams(null);lr.each(e,function(e,t){this.unregister(t)}.bind(this))}},Un.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(Zt.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(lr.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(Zt.referrer)},Un.prototype._dom_loaded=function(){lr.each(this.__dom_loaded_queue,(function(e){this._track_dom.apply(this,e)}),this),this.has_opted_out_tracking()||lr.each(this.__request_queue,(function(e){this._send_request.apply(this,e)}),this),delete this.__dom_loaded_queue,delete this.__request_queue},Un.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!jn)return this.__dom_loaded_queue.push([e,t]),!1;var r=(new e).init(this);return r.track.apply(r,t)},Un.prototype._init_url_change_tracking=function(e){var t="";if(this.track_pageview()&&(t=lr.info.currentUrl()),lr.include(["full-url","url-with-path-and-query-string","url-with-path"],e)){lt.addEventListener("popstate",(function(){lt.dispatchEvent(new Event("mp_locationchange"))})),lt.addEventListener("hashchange",(function(){lt.dispatchEvent(new Event("mp_locationchange"))}));var r=lt.history.pushState;"function"==typeof r&&(lt.history.pushState=function(e,t,n){r.call(lt.history,e,t,n),lt.dispatchEvent(new Event("mp_locationchange"))});var n=lt.history.replaceState;"function"==typeof n&&(lt.history.replaceState=function(e,t,r){n.call(lt.history,e,t,r),lt.dispatchEvent(new Event("mp_locationchange"))}),lt.addEventListener("mp_locationchange",function(){var r=lr.info.currentUrl(),n=!1;("full-url"===e?n=r!==t:"url-with-path-and-query-string"===e?n=r.split("#")[0]!==t.split("#")[0]:"url-with-path"===e&&(n=r.split("#")[0].split("?")[0]!==t.split("#")[0].split("?")[0]),n)&&(this.track_pageview()&&(t=r))}.bind(this))}},Un.prototype._prepare_callback=function(e,t){if(lr.isUndefined(e))return null;if(Dn){return function(r){e(r,t)}}var r=this._jsc,n=""+Math.floor(1e8*Math.random()),o=this.get_config("callback_fn")+"["+n+"]";return r[n]=function(o){delete r[n],e(o,t)},o},Un.prototype._send_request=function(e,t,r,n){var o=!0;if(An)return this.__request_queue.push(arguments),o;var i={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;n||!lr.isFunction(r)&&"string"!=typeof r||(n=r,r=null),r=lr.extend(i,r||{}),Dn||(r.method="GET");var a="POST"===r.method,c=qn&&a&&"sendbeacon"===r.transport.toLowerCase(),l=r.verbose;t.verbose&&(l=!0),this.get_config("test")&&(t.test=1),l&&(t.verbose=1),this.get_config("img")&&(t.img=1),Dn||(n?t.callback=n:(l||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=(new Date).getTime().toString(),a&&(s="data="+encodeURIComponent(t.data),delete t.data),e+="?"+lr.HTTPBuildQuery(t);var u=this;if("img"in t){var p=Zt.createElement("img");p.src=e,Zt.body.appendChild(p)}else if(c){try{o=qn(e,s)}catch(e){u.report_error(e),o=!1}try{n&&n(o?1:0)}catch(e){u.report_error(e)}}else if(Dn)try{var d=new XMLHttpRequest;d.open(r.method,e,!0);var h=this.get_config("xhr_headers");if(a&&(h["Content-Type"]="application/x-www-form-urlencoded"),lr.each(h,(function(e,t){d.setRequestHeader(t,e)})),r.timeout_ms&&void 0!==d.timeout){d.timeout=r.timeout_ms;var f=(new Date).getTime()}d.withCredentials=!0,d.onreadystatechange=function(){var e;if(4===d.readyState)if(200===d.status){if(n)if(l){var t;try{t=lr.JSONDecode(d.responseText)}catch(e){if(u.report_error(e),!r.ignore_json_errors)return;t=d.responseText}n(t)}else n(Number(d.responseText))}else if(e=d.timeout&&!d.status&&(new Date).getTime()-f>=d.timeout?"timeout":"Bad HTTP status: "+d.status+" "+d.statusText,u.report_error(e),n)if(l){var o=d.responseHeaders||{};n({status:0,httpStatusCode:d.status,error:e,retryAfter:o["Retry-After"]})}else n(0)},d.send(s)}catch(e){u.report_error(e),o=!1}else{var m=Zt.createElement("script");m.type="text/javascript",m.async=!0,m.defer=!0,m.src=e;var g=Zt.getElementsByTagName("script")[0];g.parentNode.insertBefore(m,g)}return o},Un.prototype._execute_array=function(e){var t,r=[],n=[],o=[];lr.each(e,(function(e){e&&(t=e[0],lr.isArray(t)?o.push(e):"function"==typeof e?e.call(this):lr.isArray(e)&&"alias"===t?r.push(e):lr.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?o.push(e):n.push(e))}),this);var i=function(e,t){lr.each(e,(function(e){if(lr.isArray(e[0])){var r=t;lr.each(e,(function(e){r=r[e[0]].apply(r,e.slice(1))}))}else this[e[0]].apply(this,e.slice(1))}),t)};i(r,this),i(n,this),i(o,this)},Un.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},Un.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token"),t=this.get_config("api_routes");return this._batcher_configs=this._batcher_configs||{events:{type:"events",endpoint:"/"+t.track,queue_key:e+"_ev"},people:{type:"people",endpoint:"/"+t.engage,queue_key:e+"_pp"},groups:{type:"groups",endpoint:"/"+t.groups,queue_key:e+"_gr"}},this._batcher_configs},Un.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=lr.bind((function(e){return new Gr(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:lr.bind((function(t,r,n){this._send_request(this.get_config("api_host")+e.endpoint,this._encode_data_for_request(t),r,this._prepare_callback(n,t))}),this),beforeSendHook:lr.bind((function(t){return this._run_hook("before_send_"+e.type,t)}),this),stopAllBatchingFunc:lr.bind(this.stop_batch_senders,this),usePersistence:!0})}),this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},Un.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,lr.each(this.request_batchers,(function(e){e.start()})))},Un.prototype.stop_batch_senders=function(){this._batch_requests=!1,lr.each(this.request_batchers,(function(e){e.stop(),e.clear()}))},Un.prototype.push=function(e){this._execute_array([e])},Un.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},Un.prototype._encode_data_for_request=function(e){var t=lr.JSONEncode(e);return this.get_config("api_payload_format")===Ln&&(t=lr.base64Encode(t)),{data:t}},Un.prototype._track_or_batch=function(e,t){var r=lr.truncate(e.data,255),n=e.endpoint,o=e.batcher,i=e.should_send_immediately,s=e.send_request_options||{};t=t||Tn;var a=!0,c=lr.bind((function(){return s.skip_hooks||(r=this._run_hook("before_send_"+e.type,r)),r?(ur.log("MIXPANEL REQUEST:"),ur.log(r),this._send_request(n,this._encode_data_for_request(r),s,this._prepare_callback(t,r))):null}),this);return this._batch_requests&&!i?o.enqueue(r).then((function(e){e?t(1,r):c()})):a=c(),a&&r},Un.prototype.track=Or((function(e,t,r,n){n||"function"!=typeof r||(n=r,r=null);var o=(r=r||{}).transport;o&&(r.transport=o);var i=r.send_immediately;if("function"!=typeof n&&(n=Tn),lr.isUndefined(e))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(e)){(t=lr.extend({},t)).token=this.get_config("token");var s=this.persistence.remove_event_timer(e);if(!lr.isUndefined(s)){var a=(new Date).getTime()-s;t.$duration=parseFloat((a/1e3).toFixed(3))}this._set_default_superprops();var c=this.get_config("track_marketing")?lr.info.marketingParams():{};t=lr.extend({},lr.info.properties({mp_loader:this.get_config("mp_loader")}),c,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var l=this.get_config("property_blacklist");lr.isArray(l)?lr.each(l,(function(e){delete t[e]})):this.report_error("Invalid value for property_blacklist config: "+l);var u={event:e,properties:t};return this._track_or_batch({type:"events",data:u,endpoint:this.get_config("api_host")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:i,send_request_options:r},n)}n(0)}})),Un.prototype.set_group=Or((function(e,t,r){lr.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this.people.set(e,t,r)})),Un.prototype.add_group=Or((function(e,t,r){var n=this.get_property(e),o={};return void 0===n?(o[e]=[t],this.register(o)):-1===n.indexOf(t)&&(n.push(t),o[e]=n,this.register(o)),this.people.union(e,t,r)})),Un.prototype.remove_group=Or((function(e,t,r){var n=this.get_property(e);if(void 0!==n){var o=n.indexOf(t);o>-1&&(n.splice(o,1),this.register({group_key:n})),0===n.length&&this.unregister(e)}return this.people.remove(e,t,r)})),Un.prototype.track_with_groups=Or((function(e,t,r,n){var o=lr.extend({},t||{});return lr.each(r,(function(e,t){null!=e&&(o[t]=e)})),this.track(e,o,n)})),Un.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},Un.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},Un.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),n=this._cached_groups[r];return void 0!==n&&n._group_key===e&&n._group_id===t||((n=new dn)._init(this,e,t),this._cached_groups[r]=n),n},Un.prototype.track_pageview=Or((function(e,t){"object"!=typeof e&&(e={});var r=(t=t||{}).event_name||"$mp_web_page_view",n=lr.extend(lr.info.mpPageViewProperties(),lr.info.campaignParams(),lr.info.clickParams()),o=lr.extend({},n,e);return this.track(r,o)})),Un.prototype.track_links=function(){return this._track_dom.call(this,tn,arguments)},Un.prototype.track_forms=function(){return this._track_dom.call(this,rn,arguments)},Un.prototype.time_event=function(e){lr.isUndefined(e)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this.persistence.set_event_timer(e,(new Date).getTime())};var Bn={persistent:!0},$n=function(e){var t;return t=lr.isObject(e)?e:lr.isUndefined(e)?{}:{days:e},lr.extend({},Bn,t)};Un.prototype.register=function(e,t){var r=$n(t);r.persistent?this.persistence.register(e,r.days):lr.extend(this.unpersisted_superprops,e)},Un.prototype.register_once=function(e,t,r){var n=$n(r);n.persistent?this.persistence.register_once(e,t,n.days):(void 0===t&&(t="None"),lr.each(e,(function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)}),this))},Un.prototype.unregister=function(e,t){(t=$n(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]},Un.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},Un.prototype.identify=function(e,t,r,n,o,i,s,a){var c=this.get_distinct_id();if(e&&c!==e){if("string"==typeof e&&0===e.indexOf(Nn))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var l=c;this.register_once({$had_persisted_distinct_id:!0,$device_id:l},"")}e!==c&&e!==this.get_property(wn)&&(this.unregister(wn),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,n,o,i,s,a),e!==c&&this.track("$identify",{distinct_id:e,$anon_distinct_id:c},{skip_hooks:!0})},Un.prototype.reset=function(){this.persistence.clear(),this._flags.identify_called=!1;var e=lr.UUID();this.register_once({distinct_id:Nn+e,$device_id:e},"")},Un.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},Un.prototype.alias=function(e,t){if(e===this.get_property(Sn))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return lr.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(wn,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},(function(){r.identify(e)}))):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},Un.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},Un.prototype.set_config=function(e){lr.isObject(e)&&(lr.extend(this.config,e),e.batch_size&&lr.each(this.request_batchers,(function(e){e.resetBatchSize()})),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),dt.DEBUG=dt.DEBUG||this.get_config("debug"))},Un.prototype.get_config=function(e){return this.config[e]},Un.prototype._run_hook=function(e){var t=(this.config.hooks[e]||On).apply(this,Jt.call(arguments,1));return void 0===t&&(this.report_error(e+" hook did not return a value"),t=null),t},Un.prototype.get_property=function(e){return this.persistence.load_prop([e])},Un.prototype.toString=function(){var e=this.get_config("name");return e!==Rn&&(e=Rn+"."+e),e},Un.prototype._event_is_disabled=function(e){return lr.isBlockedUA(rr)||this._flags.disable_all_events||lr.include(this.__disabled_events,e)},Un.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&lr.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_tracking()||!this.get_config("opt_out_tracking_by_default")&&!lr.cookie.get("mp_optout")||(lr.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},Un.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else{if(!e||!e.enable_persistence)return;t=!1}this.get_config("disable_persistence")||this.persistence.disabled===t||this.persistence.set_disabled(t),t?this.stop_batch_senders():this._batchers_were_started&&this.start_batch_senders()},Un.prototype._gdpr_call_func=function(e,t){return t=lr.extend({track:lr.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),lr.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})},Un.prototype.opt_in_tracking=function(e){e=lr.extend({enable_persistence:!0},e),this._gdpr_call_func(Cr,e),this._gdpr_update_persistence(e)},Un.prototype.opt_out_tracking=function(e){(e=lr.extend({clear_persistence:!0,delete_user:!0},e)).delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(Mr,e),this._gdpr_update_persistence(e)},Un.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(xr,e)},Un.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(Er,e)},Un.prototype.clear_opt_in_out_tracking=function(e){e=lr.extend({enable_persistence:!0},e),this._gdpr_call_func(Lr,e),this._gdpr_update_persistence(e)},Un.prototype.report_error=function(e,t){ur.error.apply(ur.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(t){ur.error(t)}},Un.prototype.init=Un.prototype.init,Un.prototype.reset=Un.prototype.reset,Un.prototype.disable=Un.prototype.disable,Un.prototype.time_event=Un.prototype.time_event,Un.prototype.track=Un.prototype.track,Un.prototype.track_links=Un.prototype.track_links,Un.prototype.track_forms=Un.prototype.track_forms,Un.prototype.track_pageview=Un.prototype.track_pageview,Un.prototype.register=Un.prototype.register,Un.prototype.register_once=Un.prototype.register_once,Un.prototype.unregister=Un.prototype.unregister,Un.prototype.identify=Un.prototype.identify,Un.prototype.alias=Un.prototype.alias,Un.prototype.name_tag=Un.prototype.name_tag,Un.prototype.set_config=Un.prototype.set_config,Un.prototype.get_config=Un.prototype.get_config,Un.prototype.get_property=Un.prototype.get_property,Un.prototype.get_distinct_id=Un.prototype.get_distinct_id,Un.prototype.toString=Un.prototype.toString,Un.prototype.opt_out_tracking=Un.prototype.opt_out_tracking,Un.prototype.opt_in_tracking=Un.prototype.opt_in_tracking,Un.prototype.has_opted_out_tracking=Un.prototype.has_opted_out_tracking,Un.prototype.has_opted_in_tracking=Un.prototype.has_opted_in_tracking,Un.prototype.clear_opt_in_out_tracking=Un.prototype.clear_opt_in_out_tracking,Un.prototype.get_group=Un.prototype.get_group,Un.prototype.set_group=Un.prototype.set_group,Un.prototype.add_group=Un.prototype.add_group,Un.prototype.remove_group=Un.prototype.remove_group,Un.prototype.track_with_groups=Un.prototype.track_with_groups,Un.prototype.start_batch_senders=Un.prototype.start_batch_senders,Un.prototype.stop_batch_senders=Un.prototype.stop_batch_senders,Un.prototype.start_session_recording=Un.prototype.start_session_recording,Un.prototype.stop_session_recording=Un.prototype.stop_session_recording,Un.prototype.get_session_recording_properties=Un.prototype.get_session_recording_properties,Un.prototype.get_session_replay_url=Un.prototype.get_session_replay_url,Un.prototype.DEFAULT_API_ROUTES=Pn,Mn.prototype.properties=Mn.prototype.properties,Mn.prototype.update_search_keyword=Mn.prototype.update_search_keyword,Mn.prototype.update_referrer_info=Mn.prototype.update_referrer_info,Mn.prototype.get_cross_subdomain=Mn.prototype.get_cross_subdomain,Mn.prototype.clear=Mn.prototype.clear;var Wn={},Hn=function(){xn.init=function(e,t,r){if(r)return xn[r]||(xn[r]=Wn[r]=zn(e,t,r),xn[r]._loaded()),xn[r];var n=xn;Wn[Rn]?n=Wn[Rn]:e&&((n=zn(e,t,Rn))._loaded(),Wn[Rn]=n),xn=n,1===fn&&(lt[Rn]=xn),lr.each(Wn,(function(e,t){t!==Rn&&(xn[t]=e)})),xn._=lr}};var Gn=(En=function(e,t){t()},fn=0,xn=new Un,Hn(),xn.init(),function(){function e(){e.done||(e.done=!0,jn=!0,An=!1,lr.each(Wn,(function(e){e._dom_loaded()})))}if(Zt.addEventListener)"complete"===Zt.readyState?e():Zt.addEventListener("DOMContentLoaded",e,!1);else if(Zt.attachEvent){Zt.attachEvent("onreadystatechange",e);var t=!1;try{t=null===lt.frameElement}catch(e){}Zt.documentElement.doScroll&&t&&function t(){try{Zt.documentElement.doScroll("left")}catch(e){return void setTimeout(t,1)}e()}()}lr.register_event(lt,"load",e,!0)}(),xn);const Vn="rid",Jn="rozmovaAnalyticsParams",Yn=["utm_source","utm_medium","utm_campaign","utm_campaign_id","utm_advertiser_id","utm_adset_id","utm_adset_name","utm_ad_id","utm_ad_name","utm_keyword"],Xn=["en","uk","pl","es","ru"],Qn=["view_item_list","select_item","view_item","begin_checkout","add_payment_info"],Kn=["rozmova.me","clearly.help"],Zn=e=>new URLSearchParams(window.location.search).get(e);function eo(){const e=navigator.userAgent;return e.indexOf("Edg")>-1?"Microsoft Edge":e.indexOf("Chrome")>-1?"Chrome":e.indexOf("Firefox")>-1?"Firefox":e.indexOf("Safari")>-1?"Safari":e.indexOf("Opera")>-1?"Opera":e.indexOf("Trident")>-1||e.indexOf("MSIE")>-1?"Internet Explorer":"Unknown"}function to(){const e=navigator.userAgent;return/Mobi|Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)?"Mobile":"Desktop"}function ro(){const e=navigator.userAgent;return e.includes("Win")?"Windows":e.includes("Mac")?"macOS":e.includes("X11")||e.includes("Linux")?"Linux":e.includes("Android")?"Android":e.includes("like Mac")?"iOS":"Unknown OS"}const no=()=>{const e=window.location.hostname.split("."),t=e.length;return 1===e.length?e[0]:e.slice(t-2,t).join(".")},oo=["accounts.google.com","appleid.apple.com","checkout.stripe.com"],io=()=>{const e=document.referrer;if(e){const t=new URL(e);if([...oo,no()].some((e=>t.hostname.includes(e))))return null}return e};function so(){const e=io();if(!e)return null;const t={"google.com":"q","bing.com":"q","yahoo.com":"p","duckduckgo.com":"q","ask.com":"q","baidu.com":"wd","yandex.com":"text"},r=new URL(e);for(const[e,n]of Object.entries(t))if(r.hostname.includes(e)){const e=r.searchParams.get(n);return e?decodeURIComponent(e):null}return null}const ao=()=>{const e=o.get("_ga");if(!e)return"";const t=e.split(".");return t[2]+"."+t[3]};function co(){const e=o.get("_ga_GYQLL028VQ");if(!e)return null;const t=e.split("."),r=t[0];if("GS1"===r&&4===t.length)return t[2];if("GS2"===r&&t.length>=3){const e=t[2].match(/s(\d+)/);if(e)return e[1]}return null}const lo=e=>{if(!e)return"external";return Kn.some((t=>e.includes(t)))?"internal":"external"};const uo=e=>{const t=no();o.set(Vn,e,{domain:t}),localStorage.setItem(Vn,e)},po=()=>{const e=((e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")),""))();return uo(e),e},ho=()=>{const e=Zn(Vn);return e&&uo(e),e||localStorage.getItem(Vn)||o.get(Vn)||po()},fo="my_profile_id",mo=()=>o.get(fo),go="my_profile_email",_o=()=>o.get(go),yo="opt-in",vo="opt-out",bo="show--consent",ko="show--preferences",So="disable--interaction",wo="data-category",Io="div",Co="button",Mo="aria-hidden",xo="btn-group",Eo="click",Oo="data-role",To="consentModal",Ro="preferencesModal";const Lo=new class{constructor(){this.t={mode:yo,revision:0,autoShow:!0,lazyHtmlGeneration:!0,autoClearCookies:!0,manageScriptTags:!0,hideFromBots:!0,cookie:{name:"cc_cookie",expiresAfterDays:182,domain:"",path:"/",sameSite:"Lax"}},this.o={i:{},l:"",_:{},u:{},p:{},m:[],v:!1,h:null,C:null,S:null,M:"",D:!0,T:!1,k:!1,A:!1,N:!1,H:[],V:!1,I:!0,L:[],j:!1,F:"",P:!1,O:[],R:[],B:[],G:[],J:!1,U:!1,$:!1,q:[],K:[],W:[],X:{},Y:{},Z:{},ee:{},te:{},oe:[]},this.ne={ae:{},se:{}},this.ce={},this.re={ie:"cc:onFirstConsent",le:"cc:onConsent",de:"cc:onChange",fe:"cc:onModalShow",_e:"cc:onModalHide",ue:"cc:onModalReady"}}},No=(e,t)=>e.indexOf(t),Do=(e,t)=>-1!==No(e,t),Ao=e=>Array.isArray(e),qo=e=>"string"==typeof e,Po=e=>!!e&&"object"==typeof e&&!Ao(e),Fo=e=>"function"==typeof e,jo=e=>Object.keys(e),Uo=e=>Array.from(new Set(e)),zo=()=>document.activeElement,Bo=e=>e.preventDefault(),$o=(e,t)=>e.querySelectorAll(t),Wo=e=>{const t=document.createElement(e);return e===Co&&(t.type=e),t},Ho=(e,t,r)=>e.setAttribute(t,r),Go=(e,t,r)=>{e.removeAttribute(r?"data-"+t:t)},Vo=(e,t,r)=>e.getAttribute(r?"data-"+t:t),Jo=(e,t)=>e.appendChild(t),Yo=(e,t)=>e.classList.add(t),Xo=(e,t)=>Yo(e,"cm__"+t),Qo=(e,t)=>Yo(e,"pm__"+t),Ko=(e,t)=>e.classList.remove(t),Zo=e=>{if("object"!=typeof e)return e;if(e instanceof Date)return new Date(e.getTime());let t=Array.isArray(e)?[]:{};for(let r in e){let n=e[r];t[r]=Zo(n)}return t},ei=(e,t)=>dispatchEvent(new CustomEvent(e,{detail:t})),ti=(e,t,r,n)=>{e.addEventListener(t,r),n&&Lo.o.m.push({pe:e,me:t,ge:r})},ri=(e,t)=>{const r=e||[],n=t||[];return r.filter((e=>!Do(n,e))).concat(n.filter((e=>!Do(r,e))))},ni=e=>{Lo.o.R=Uo(e),Lo.o.F=(()=>{let e="custom";const{R:t,O:r,B:n}=Lo.o,o=t.length;return o===r.length?e="all":o===n.length&&(e="necessary"),e})()},oi=(e,t,r,n)=>{const o="accept-",{show:i,showPreferences:s,hide:a,hidePreferences:c,acceptCategory:l}=t,u=e||document,p=e=>$o(u,`[data-cc="${e}"]`),d=(e,t)=>{Bo(e),l(t),c(),a()},h=p("show-preferencesModal"),f=p("show-consentModal"),m=p(o+"all"),g=p(o+"necessary"),_=p(o+"custom"),y=Lo.t.lazyHtmlGeneration;for(const e of h)Ho(e,"aria-haspopup","dialog"),ti(e,Eo,(e=>{Bo(e),s()})),y&&(ti(e,"mouseenter",(e=>{Bo(e),Lo.o.N||r(t,n)}),!0),ti(e,"focus",(()=>{Lo.o.N||r(t,n)})));for(let e of f)Ho(e,"aria-haspopup","dialog"),ti(e,Eo,(e=>{Bo(e),i(!0)}),!0);for(let e of m)ti(e,Eo,(e=>{d(e,"all")}),!0);for(let e of _)ti(e,Eo,(e=>{d(e)}),!0);for(let e of g)ti(e,Eo,(e=>{d(e,[])}),!0)},ii=(e,t)=>{e&&(t&&(e.tabIndex=-1),e.focus(),t&&e.removeAttribute("tabindex"))},si=(e,t)=>{const r=n=>{n.target.removeEventListener("transitionend",r),"opacity"===n.propertyName&&"1"===getComputedStyle(e).opacity&&ii((e=>1===e?Lo.ne.be:Lo.ne.ve)(t))};ti(e,"transitionend",r)};let ai;const ci=e=>{clearTimeout(ai),e?Yo(Lo.ne.ye,So):ai=setTimeout((()=>{Ko(Lo.ne.ye,So)}),500)},li=["M 19.5 4.5 L 4.5 19.5 M 4.5 4.501 L 19.5 19.5","M 3.572 13.406 L 8.281 18.115 L 20.428 5.885","M 21.999 6.94 L 11.639 17.18 L 2.001 6.82 "],ui=(e=0,t=1.5)=>`<svg viewBox="0 0 24 24" stroke-width="${t}"><path d="${li[e]}"/></svg>`,pi=e=>{const t=Lo.ne,r=Lo.o;(e=>{const n=e===t.he,o=r.i.disablePageInteraction?t.ye:n?t.Ce:t.ye;ti(o,"keydown",(t=>{if("Tab"!==t.key||!(n?r.k&&!r.A:r.A))return;const o=zo(),i=n?r.q:r.K;0!==i.length&&(t.shiftKey?o!==i[0]&&e.contains(o)||(Bo(t),ii(i[1])):o!==i[1]&&e.contains(o)||(Bo(t),ii(i[0])))}),!0)})(e)},di=["[href]",Co,"input","details","[tabindex]"].map((e=>e+':not([tabindex="-1"])')).join(","),hi=e=>{const{o:t,ne:r}=Lo,n=(e,t)=>{const r=$o(e,di);t[0]=r[0],t[1]=r[r.length-1]};1===e&&t.T&&n(r.he,t.q),2===e&&t.N&&n(r.we,t.K)},fi=(e,t,r)=>{const{de:n,le:o,ie:i,_e:s,ue:a,fe:c}=Lo.ce,l=Lo.re;if(t){const n={modalName:t};return e===l.fe?Fo(c)&&c(n):e===l._e?Fo(s)&&s(n):(n.modal=r,Fo(a)&&a(n)),ei(e,n)}const u={cookie:Lo.o.p};e===l.ie?Fo(i)&&i(Zo(u)):e===l.le?Fo(o)&&o(Zo(u)):(u.changedCategories=Lo.o.L,u.changedServices=Lo.o.ee,Fo(n)&&n(Zo(u))),ei(e,Zo(u))},mi=(e,t)=>{try{return e()}catch(e){return!t&&console.warn("CookieConsent:",e),!1}},gi=e=>{const{Y:t,ee:r,O:n,X:o,oe:i,p:s,L:a}=Lo.o;for(const e of n){const n=r[e]||t[e]||[];for(const r of n){const n=o[e][r];if(!n)continue;const{onAccept:i,onReject:s}=n;!n.Se&&Do(t[e],r)?(n.Se=!0,Fo(i)&&i()):n.Se&&!Do(t[e],r)&&(n.Se=!1,Fo(s)&&s())}}if(!Lo.t.manageScriptTags)return;const c=i,l=e||s.categories||[],u=(e,n)=>{if(n>=e.length)return;const o=i[n];if(o.xe)return u(e,n+1);const s=o.Me,c=o.De,p=o.Te,d=Do(l,c),h=!!p&&Do(t[c],p);if(!p&&!o.ke&&d||!p&&o.ke&&!d&&Do(a,c)||p&&!o.ke&&h||p&&o.ke&&!h&&Do(r[c]||[],p)){o.xe=!0;const t=Vo(s,"type",!0);Go(s,"type",!!t),Go(s,wo);let r=Vo(s,"src",!0);r&&Go(s,"src",!0);const i=Wo("script");i.textContent=s.innerHTML;for(const{nodeName:e}of s.attributes)Ho(i,e,s[e]||Vo(s,e));t&&(i.type=t),r?i.src=r:r=s.src;const a=!!r&&(!t||["text/javascript","module"].includes(t));if(a&&(i.onload=i.onerror=()=>{u(e,++n)}),s.replaceWith(i),a)return}u(e,++n)};u(c,0)},_i="bottom",yi="left",vi="center",bi="right",ki="inline",Si="wide",wi="pm--",Ii=["middle","top",_i],Ci=[yi,vi,bi],Mi={box:{Ee:[Si,ki],Ae:Ii,Ne:Ci,He:_i,Ve:bi},cloud:{Ee:[ki],Ae:Ii,Ne:Ci,He:_i,Ve:vi},bar:{Ee:[ki],Ae:Ii.slice(1),Ne:[],He:_i,Ve:""}},xi={box:{Ee:[],Ae:[],Ne:[],He:"",Ve:""},bar:{Ee:[Si],Ae:[],Ne:[yi,bi],He:"",Ve:yi}},Ei=e=>{const t=Lo.o.i.guiOptions,r=t&&t.consentModal,n=t&&t.preferencesModal;0===e&&Oi(Lo.ne.he,Mi,r,"cm--","box","cm"),1===e&&Oi(Lo.ne.we,xi,n,wi,"box","pm")},Oi=(e,t,r,n,o,i)=>{e.className=i;const s=r&&r.layout,a=r&&r.position,c=r&&r.flipButtons,l=!r||!1!==r.equalWeightButtons,u=s&&s.split(" ")||[],p=u[0],d=u[1],h=p in t?p:o,f=t[h],m=Do(f.Ee,d)&&d,g=a&&a.split(" ")||[],_=g[0],y=n===wi?g[0]:g[1],v=Do(f.Ae,_)?_:f.He,b=Do(f.Ne,y)?y:f.Ve,k=t=>{t&&Yo(e,n+t)};k(h),k(m),k(v),k(b),c&&k("flip");const S=i+"__btn--secondary";if("cm"===i){const{Ie:e,Le:t}=Lo.ne;e&&(l?Ko(e,S):Yo(e,S)),t&&(l?Ko(t,S):Yo(t,S))}else{const{je:e}=Lo.ne;e&&(l?Ko(e,S):Yo(e,S))}},Ti=(e,t)=>{const r=Lo.o,n=Lo.ne,{hide:o,hidePreferences:i,acceptCategory:s}=e,a=e=>{s(e),i(),o()},c=r.u&&r.u.preferencesModal;if(!c)return;const l=c.title,u=c.closeIconLabel,p=c.acceptAllBtn,d=c.acceptNecessaryBtn,h=c.savePreferencesBtn,f=c.sections||[],m=p||d||h;if(n.Fe)n.Pe=Wo(Io),Qo(n.Pe,"body");else{n.Fe=Wo(Io),Yo(n.Fe,"pm-wrapper");const e=Wo("div");Yo(e,"pm-overlay"),Jo(n.Fe,e),ti(e,Eo,i),n.we=Wo(Io),Yo(n.we,"pm"),Ho(n.we,"role","dialog"),Ho(n.we,Mo,!0),Ho(n.we,"aria-modal",!0),Ho(n.we,"aria-labelledby","pm__title"),ti(n.ye,"keydown",(e=>{27===e.keyCode&&i()}),!0),n.Oe=Wo(Io),Qo(n.Oe,"header"),n.Re=Wo("h2"),Qo(n.Re,"title"),n.Re.id="pm__title",n.Be=Wo(Co),Qo(n.Be,"close-btn"),Ho(n.Be,"aria-label",c.closeIconLabel||""),ti(n.Be,Eo,i),n.Ge=Wo("span"),n.Ge.innerHTML=ui(),Jo(n.Be,n.Ge),n.Je=Wo(Io),Qo(n.Je,"body"),n.Ue=Wo(Io),Qo(n.Ue,"footer");var g=Wo(Io);Yo(g,"btns");var _=Wo(Io),y=Wo(Io);Qo(_,xo),Qo(y,xo),Jo(n.Ue,_),Jo(n.Ue,y),Jo(n.Oe,n.Re),Jo(n.Oe,n.Be),n.ve=Wo(Io),Ho(n.ve,"tabIndex",-1),Jo(n.we,n.ve),Jo(n.we,n.Oe),Jo(n.we,n.Je),m&&Jo(n.we,n.Ue),Jo(n.Fe,n.we)}let v;l&&(n.Re.innerHTML=l,u&&Ho(n.Be,"aria-label",u)),f.forEach(((e,t)=>{const o=e.title,i=e.description,s=e.linkedCategory,a=s&&r.P[s],l=e.cookieTable,u=l&&l.body,p=l&&l.caption,d=u&&u.length>0,h=!!a,f=h&&r.X[s],m=Po(f)&&jo(f)||[],g=h&&(!!i||!!d||jo(f).length>0);var _=Wo(Io);if(Qo(_,"section"),g||i){var y=Wo(Io);Qo(y,"section-desc-wrapper")}let b=m.length;if(g&&b>0){const e=Wo(Io);Qo(e,"section-services");for(const t of m){const r=f[t],n=r&&r.label||t,o=Wo(Io),i=Wo(Io),c=Wo(Io),l=Wo(Io);Qo(o,"service"),Qo(l,"service-title"),Qo(i,"service-header"),Qo(c,"service-icon");const u=Ri(n,t,a,!0,s);l.innerHTML=n,Jo(i,c),Jo(i,l),Jo(o,i),Jo(o,u),Jo(e,o)}Jo(y,e)}if(o){var k=Wo(Io),S=Wo(h?Co:Io);if(Qo(k,"section-title-wrapper"),Qo(S,"section-title"),S.innerHTML=o,Jo(k,S),h){const e=Wo("span");e.innerHTML=ui(2,3.5),Qo(e,"section-arrow"),Jo(k,e),_.className+="--toggle";const t=Ri(o,s,a);let r=c.serviceCounterLabel;if(b>0&&qo(r)){let e=Wo("span");Qo(e,"badge"),Qo(e,"service-counter"),Ho(e,Mo,!0),Ho(e,"data-servicecounter",b),r&&(r=r.split("|"),r=r.length>1&&b>1?r[1]:r[0],Ho(e,"data-counterlabel",r)),e.innerHTML=b+(r?" "+r:""),Jo(S,e)}if(g){Qo(_,"section--expandable");var w=s+"-desc";Ho(S,"aria-expanded",!1),Ho(S,"aria-controls",w)}Jo(k,t)}else Ho(S,"role","heading"),Ho(S,"aria-level","3");Jo(_,k)}if(i){var I=Wo("p");Qo(I,"section-desc"),I.innerHTML=i,Jo(y,I)}if(g&&(Ho(y,Mo,"true"),y.id=w,((e,t,r)=>{ti(S,Eo,(()=>{t.classList.contains("is-expanded")?(Ko(t,"is-expanded"),Ho(r,"aria-expanded","false"),Ho(e,Mo,"true")):(Yo(t,"is-expanded"),Ho(r,"aria-expanded","true"),Ho(e,Mo,"false"))}))})(y,_,S),d)){const e=Wo("table"),r=Wo("thead"),o=Wo("tbody");if(p){const t=Wo("caption");Qo(t,"table-caption"),t.innerHTML=p,e.appendChild(t)}Qo(e,"section-table"),Qo(r,"table-head"),Qo(o,"table-body");const i=l.headers,s=jo(i),a=n.$e.createDocumentFragment(),c=Wo("tr");for(const e of s){const r=i[e],n=Wo("th");n.id="cc__row-"+r+t,Ho(n,"scope","col"),Qo(n,"table-th"),n.innerHTML=r,Jo(a,n)}Jo(c,a),Jo(r,c);const d=n.$e.createDocumentFragment();for(const e of u){const r=Wo("tr");Qo(r,"table-tr");for(const n of s){const o=i[n],s=e[n],a=Wo("td"),c=Wo(Io);Qo(a,"table-td"),Ho(a,"data-column",o),Ho(a,"headers","cc__row-"+o+t),c.insertAdjacentHTML("beforeend",s),Jo(a,c),Jo(r,a)}Jo(d,r)}Jo(o,d),Jo(e,r),Jo(e,o),Jo(y,e)}(g||i)&&Jo(_,y);const C=n.Pe||n.Je;h?(v||(v=Wo(Io),Qo(v,"section-toggles")),v.appendChild(_)):v=null,Jo(C,v||_)})),p&&(n.ze||(n.ze=Wo(Co),Qo(n.ze,"btn"),Ho(n.ze,Oo,"all"),Jo(_,n.ze),ti(n.ze,Eo,(()=>a("all")))),n.ze.innerHTML=p),d&&(n.je||(n.je=Wo(Co),Qo(n.je,"btn"),Ho(n.je,Oo,"necessary"),Jo(_,n.je),ti(n.je,Eo,(()=>a([])))),n.je.innerHTML=d),h&&(n.qe||(n.qe=Wo(Co),Qo(n.qe,"btn"),Qo(n.qe,"btn--secondary"),Ho(n.qe,Oo,"save"),Jo(y,n.qe),ti(n.qe,Eo,(()=>a()))),n.qe.innerHTML=h),n.Pe&&(n.we.replaceChild(n.Pe,n.Je),n.Je=n.Pe),Ei(1),r.N||(r.N=!0,fi(Lo.re.ue,Ro,n.we),t(e),Jo(n.Ce,n.Fe),pi(n.we),setTimeout((()=>Yo(n.Fe,"cc--anim")),100)),hi(2)};function Ri(e,t,r,n,o){const i=Lo.o,s=Lo.ne,a=Wo("label"),c=Wo("input"),l=Wo("span"),u=Wo("span"),p=Wo("span"),d=Wo("span"),h=Wo("span");if(d.innerHTML=ui(1,3),h.innerHTML=ui(0,3),c.type="checkbox",Yo(a,"section__toggle-wrapper"),Yo(c,"section__toggle"),Yo(d,"toggle__icon-on"),Yo(h,"toggle__icon-off"),Yo(l,"toggle__icon"),Yo(u,"toggle__icon-circle"),Yo(p,"toggle__label"),Ho(l,Mo,"true"),n?(Yo(a,"toggle-service"),Ho(c,wo,o),s.se[o][t]=c):s.ae[t]=c,n?(e=>{ti(c,"change",(()=>{const t=s.se[e],r=s.ae[e];i.Z[e]=[];for(let r in t){const n=t[r];n.checked&&i.Z[e].push(n.value)}r.checked=i.Z[e].length>0}))})(o):(e=>{ti(c,Eo,(()=>{const t=s.se[e],r=c.checked;i.Z[e]=[];for(let n in t)t[n].checked=r,r&&i.Z[e].push(n)}))})(t),c.value=t,p.textContent=e.replace(/<.*>.*<\/.*>/gm,""),Jo(u,h),Jo(u,d),Jo(l,u),i.D)(r.readOnly||r.enabled)&&(c.checked=!0);else if(n){const e=i.Y[o];c.checked=r.readOnly||Do(e,t)}else Do(i.R,t)&&(c.checked=!0);return r.readOnly&&(c.disabled=!0),Jo(a,c),Jo(a,l),Jo(a,p),a}const Li=()=>{const e=Wo("span");return Lo.ne.Ke||(Lo.ne.Ke=e),e},Ni=(e,t)=>{const r=Lo.o,n=Lo.ne,{hide:o,showPreferences:i,acceptCategory:s}=e,a=r.u&&r.u.consentModal;if(!a)return;const c=a.acceptAllBtn,l=a.acceptNecessaryBtn,u=a.showPreferencesBtn,p=a.closeIconLabel,d=a.footer,h=a.label,f=a.title,m=e=>{o(),s(e)};if(!n.Qe){n.Qe=Wo(Io),n.he=Wo(Io),n.We=Wo(Io),n.Xe=Wo(Io),n.Ye=Wo(Io),Yo(n.Qe,"cm-wrapper"),Yo(n.he,"cm"),Xo(n.We,"body"),Xo(n.Xe,"texts"),Xo(n.Ye,"btns"),Ho(n.he,"role","dialog"),Ho(n.he,"aria-modal","true"),Ho(n.he,Mo,"false"),Ho(n.he,"aria-describedby","cm__desc"),h?Ho(n.he,"aria-label",h):f&&Ho(n.he,"aria-labelledby","cm__title");const e="box",t=r.i.guiOptions,o=t&&t.consentModal,i=(o&&o.layout||e).split(" ")[0]===e;f&&p&&i&&(n.Le||(n.Le=Wo(Co),n.Le.innerHTML=ui(),Xo(n.Le,"btn"),Xo(n.Le,"btn--close"),ti(n.Le,Eo,(()=>{m([])})),Jo(n.We,n.Le)),Ho(n.Le,"aria-label",p)),Jo(n.We,n.Xe),(c||l||u)&&Jo(n.We,n.Ye),n.be=Wo(Io),Ho(n.be,"tabIndex",-1),Jo(n.he,n.be),Jo(n.he,n.We),Jo(n.Qe,n.he)}f&&(n.Ze||(n.Ze=Wo("h2"),n.Ze.className=n.Ze.id="cm__title",Jo(n.Xe,n.Ze)),n.Ze.innerHTML=f);let g=a.description;if(g&&(r.V&&(g=g.replace("{{revisionMessage}}",r.I?"":a.revisionMessage||"")),n.et||(n.et=Wo("p"),n.et.className=n.et.id="cm__desc",Jo(n.Xe,n.et)),n.et.innerHTML=g),c&&(n.tt||(n.tt=Wo(Co),Jo(n.tt,Li()),Xo(n.tt,"btn"),Ho(n.tt,Oo,"all"),ti(n.tt,Eo,(()=>{m("all")}))),n.tt.firstElementChild.innerHTML=c),l&&(n.Ie||(n.Ie=Wo(Co),Jo(n.Ie,Li()),Xo(n.Ie,"btn"),Ho(n.Ie,Oo,"necessary"),ti(n.Ie,Eo,(()=>{m([])}))),n.Ie.firstElementChild.innerHTML=l),u&&(n.ot||(n.ot=Wo(Co),Jo(n.ot,Li()),Xo(n.ot,"btn"),Xo(n.ot,"btn--secondary"),Ho(n.ot,Oo,"show"),ti(n.ot,"mouseenter",(()=>{r.N||Ti(e,t)})),ti(n.ot,Eo,i)),n.ot.firstElementChild.innerHTML=u),n.nt||(n.nt=Wo(Io),Xo(n.nt,xo),c&&Jo(n.nt,n.tt),l&&Jo(n.nt,n.Ie),(c||l)&&Jo(n.We,n.nt),Jo(n.Ye,n.nt)),n.ot&&!n.st&&(n.st=Wo(Io),n.Ie&&n.tt?(Xo(n.st,xo),Jo(n.st,n.ot),Jo(n.Ye,n.st)):(Jo(n.nt,n.ot),Xo(n.nt,xo+"--uneven"))),d){if(!n.ct){let e=Wo(Io),t=Wo(Io);n.ct=Wo(Io),Xo(e,"footer"),Xo(t,"links"),Xo(n.ct,"link-group"),Jo(t,n.ct),Jo(e,t),Jo(n.he,e)}n.ct.innerHTML=d}Ei(0),r.T||(r.T=!0,fi(Lo.re.ue,To,n.he),t(e),Jo(n.Ce,n.Qe),pi(n.he),setTimeout((()=>Yo(n.Qe,"cc--anim")),100)),hi(1),oi(n.We,e,Ti,t)},Di=e=>{if(!qo(e))return null;if(e in Lo.o._)return e;let t=e.slice(0,2);return t in Lo.o._?t:null},Ai=()=>Lo.o.l||Lo.o.i.language.default,qi=e=>{e&&(Lo.o.l=e)},Pi=()=>{const e=Lo.ne;if(e.Ce)return;e.Ce=Wo(Io),e.Ce.id="cc-main",e.Ce.setAttribute("data-nosnippet",""),(()=>{let e=Lo.o.i.language.rtl,t=Lo.ne.Ce;e&&t&&(Ao(e)||(e=[e]),Do(e,Lo.o.l)?Yo(t,"cc--rtl"):Ko(t,"cc--rtl"))})();let t=Lo.o.i.root;t&&qo(t)&&(t=document.querySelector(t)),(t||e.$e.body).appendChild(e.Ce)},Fi=(e,t)=>{if(t instanceof RegExp)return e.filter((e=>t.test(e)));{const r=No(e,t);return r>-1?[e[r]]:[]}},ji=e=>{const{hostname:t,protocol:r}=location,{name:n,path:o,domain:i,sameSite:s,useLocalStorage:a}=Lo.t.cookie,c=864e5*(()=>{const e=Lo.t.cookie.expiresAfterDays;return Fo(e)?e(Lo.o.F):e})(),l=new Date;l.setTime(l.getTime()+c),Lo.o.p.expirationTime=l.getTime();const u=JSON.stringify(Lo.o.p);let p=n+"="+encodeURIComponent(u)+(0!==c?"; expires="+l.toUTCString():"")+"; Path="+o+"; SameSite="+s;Do(t,".")&&(p+="; Domain="+i),"https:"===r&&(p+="; Secure"),a?((e,t)=>{mi((()=>localStorage.setItem(e,t)))})(n,u):document.cookie=p,Lo.o.p},Ui=(e,t,r)=>{if(0===e.length)return;const n=r||Lo.t.cookie.domain,o=t||Lo.t.cookie.path,i="www."===n.slice(0,4),s=i&&n.substring(4),a=(e,t)=>{document.cookie=e+"=; path="+o+(t?"; domain=."+t:"")+"; expires=Thu, 01 Jan 1970 00:00:01 GMT;"};for(const t of e)a(t),a(t,n),i&&a(t,s)},zi=(e,t)=>{const r=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return r?r.pop():""},Bi=e=>{const t=Lo.o.D?[]:Lo.o.R;return Do(t,e)},$i=(e,t)=>{const r=Lo.o.D?[]:Lo.o.Y[t]||[];return Do(r,e)},Wi=e=>{const{ne:t,o:r}=Lo;if(!r.k){if(!r.T){if(!e)return;Ni(Hi,Pi)}r.k=!0,r.U=zo(),r.v&&ci(!0),si(t.he,1),Yo(t.ye,bo),Ho(t.he,Mo,"false"),setTimeout((()=>{ii(Lo.ne.be)}),100),fi(Lo.re.fe,To)}};var Hi={show:Wi,hide:()=>{const{ne:e,o:t,re:r}=Lo;t.k&&(t.k=!1,t.v&&ci(),ii(e.Ke,!0),Ko(e.ye,bo),Ho(e.he,Mo,"true"),ii(t.U),t.U=null,fi(r._e,To))},showPreferences:()=>{const e=Lo.o;e.A||(e.N||Ti(Hi,Pi),e.A=!0,e.k?e.$=zo():e.U=zo(),si(Lo.ne.we,2),Yo(Lo.ne.ye,ko),Ho(Lo.ne.we,Mo,"false"),setTimeout((()=>{ii(Lo.ne.ve)}),100),fi(Lo.re.fe,Ro))},hidePreferences:()=>{const e=Lo.o;e.A&&(e.A=!1,(()=>{const e=Gi(),t=Lo.o.P,r=Lo.ne.ae,n=Lo.ne.se,o=e=>Do(Lo.o.G,e);for(const i in r){const s=!!t[i].readOnly;r[i].checked=s||(e?Bi(i):o(i));for(const t in n[i])n[i][t].checked=s||(e?$i(t,i):o(i))}})(),ii(Lo.ne.Ge,!0),Ko(Lo.ne.ye,ko),Ho(Lo.ne.we,Mo,"true"),e.k?(ii(e.$),e.$=null):(ii(e.U),e.U=null),fi(Lo.re._e,Ro))},acceptCategory:(e,t=[])=>{((e,t)=>{const{O:r,R:n,B:o,N:i,Z:s,G:a,X:c}=Lo.o;let l=[];if(e){Ao(e)?l.push(...e):qo(e)&&(l="all"===e?r:[e]);for(const e of r)s[e]=Do(l,e)?jo(c[e]):[]}else l=[...n,...a],i&&(l=(()=>{const e=Lo.ne.ae;if(!e)return[];let t=[];for(let r in e)e[r].checked&&t.push(r);return t})());l=l.filter((e=>!Do(r,e)||!Do(t,e))),l.push(...o),ni(l)})(e,t),(()=>{const e=Lo.o,{Z:t,B:r,Y:n,X:o,O:i}=e,s=i;e.te=Zo(n);for(const i of s){const s=o[i],a=jo(s),c=t[i]&&t[i].length>0,l=Do(r,i);if(0!==a.length){if(n[i]=[],l)n[i].push(...a);else if(c){const e=t[i];n[i].push(...e)}else n[i]=e.Z[i];n[i]=Uo(n[i])}}})(),(()=>{const e=Lo.o;e.L=Lo.t.mode===vo&&e.D?ri(e.G,e.R):ri(e.R,e.p.categories);let t=e.L.length>0,r=!1;for(const t of e.O)e.ee[t]=ri(e.Y[t],e.te[t]),e.ee[t].length>0&&(r=!0);const n=Lo.ne.ae;for(const t in n)n[t].checked=Do(e.R,t);for(const t of e.O){const r=Lo.ne.se[t],n=e.Y[t];for(const e in r)r[e].checked=Do(n,e)}e.C||(e.C=new Date),e.M||(e.M=([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))),e.p={categories:Zo(e.R),revision:Lo.t.revision,data:e.h,consentTimestamp:e.C.toISOString(),consentId:e.M,services:Zo(e.Y)};let o=!1;const i=t||r;(e.D||i)&&(e.D&&(e.D=!1,o=!0),e.S=e.S?new Date:e.C,e.p.lastConsentTimestamp=e.S.toISOString(),ji(),Lo.t.autoClearCookies&&(o||i)&&(e=>{const t=Lo.o,r=(()=>{const e=document.cookie.split(/;\s*/),t=[];for(const r of e){let e=r.split("=")[0];t.push(e)}return t})(),n=(e=>{const t=Lo.o;return(e?t.O:t.L).filter((e=>{const r=t.P[e];return!!r&&!r.readOnly&&!!r.autoClear}))})(e);for(const e in t.ee)for(const n of t.ee[e]){const o=t.X[e][n].cookies;if(!Do(t.Y[e],n)&&o)for(const e of o){const t=Fi(r,e.name);Ui(t,e.path,e.domain)}}for(const o of n){const n=t.P[o].autoClear,i=n&&n.cookies||[],s=Do(t.L,o),a=!Do(t.R,o),c=s&&a;if(e?a:c){n.reloadPage&&c&&(t.j=!0);for(const e of i){const t=Fi(r,e.name);Ui(t,e.path,e.domain)}}}})(o),gi()),o&&(fi(Lo.re.ie),fi(Lo.re.le),Lo.t.mode===yo)||(i&&fi(Lo.re.de),e.j&&(e.j=!1,location.reload()))})()}};const Gi=()=>!Lo.o.D,Vi=async e=>{const{o:t,t:r,re:n}=Lo,o=window;if(!o._ccRun){if(o._ccRun=!0,(e=>{const{ne:t,t:r,o:n}=Lo,o=r,i=n,{cookie:s}=o,a=Lo.ce,c=e.cookie,l=e.categories,u=jo(l)||[],p=navigator,d=document;t.$e=d,t.ye=d.documentElement,s.domain=location.hostname,i.i=e,i.P=l,i.O=u,i._=e.language.translations,i.v=!!e.disablePageInteraction,a.ie=e.onFirstConsent,a.le=e.onConsent,a.de=e.onChange,a._e=e.onModalHide,a.fe=e.onModalShow,a.ue=e.onModalReady;const{mode:h,autoShow:f,lazyHtmlGeneration:m,autoClearCookies:g,revision:_,manageScriptTags:y,hideFromBots:v}=e;h===vo&&(o.mode=h),"boolean"==typeof g&&(o.autoClearCookies=g),"boolean"==typeof y&&(o.manageScriptTags=y),"number"==typeof _&&_>=0&&(o.revision=_,i.V=!0),"boolean"==typeof f&&(o.autoShow=f),"boolean"==typeof m&&(o.lazyHtmlGeneration=m),!1===v&&(o.hideFromBots=!1),!0===o.hideFromBots&&p&&(i.J=p.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(p.userAgent)||p.webdriver),Po(c)&&(o.cookie={...s,...c}),o.autoClearCookies,i.V,o.manageScriptTags,(e=>{const{P:t,X:r,Y:n,Z:o,B:i}=Lo.o;for(let s of e){const e=t[s],a=e.services||{},c=Po(a)&&jo(a)||[];r[s]={},n[s]=[],o[s]=[],e.readOnly&&(i.push(s),n[s]=c),Lo.ne.se[s]={};for(let e of c){const t=a[e];t.Se=!1,r[s][e]=t}}})(u),(()=>{if(!Lo.t.manageScriptTags)return;const e=Lo.o,t=$o(document,"script["+wo+"]");for(const r of t){let t=Vo(r,wo),n=r.dataset.service||"",o=!1;if(t&&"!"===t.charAt(0)&&(t=t.slice(1),o=!0),"!"===n.charAt(0)&&(n=n.slice(1),o=!0),Do(e.O,t)&&(e.oe.push({Me:r,xe:!1,ke:o,De:t,Te:n}),n)){const r=e.X[t];r[n]||(r[n]={Se:!1})}}})(),qi((()=>{const e=Lo.o.i.language.autoDetect;if(e){const t={browser:navigator.language,document:document.documentElement.lang},r=Di(t[e]);if(r)return r}return Ai()})())})(e),t.J)return;(()=>{const e=Lo.o,t=Lo.t,r=(()=>{const e=Lo.t.cookie.name,t=Lo.t.cookie.useLocalStorage;return((e,t)=>{let r;return r=mi((()=>JSON.parse(t?e:decodeURIComponent(e))),!0)||{},r})(t?(r=e,mi((()=>localStorage.getItem(r)))||""):zi(e),t);var r})(),{categories:n,services:o,consentId:i,consentTimestamp:s,lastConsentTimestamp:a,data:c,revision:l}=r,u=Ao(n);e.p=r,e.M=i;const p=!!i&&qo(i);e.C=s,e.C&&(e.C=new Date(s)),e.S=a,e.S&&(e.S=new Date(a)),e.h=void 0!==c?c:null,e.V&&p&&l!==t.revision&&(e.I=!1),e.D=!(p&&e.I&&e.C&&e.S&&u),t.cookie.useLocalStorage&&!e.D&&(e.D=(new Date).getTime()>(r.expirationTime||0),e.D&&(e=>{mi((()=>localStorage.removeItem(e)))})(t.cookie.name)),e.D,(()=>{const e=Lo.o;for(const t of e.O){const r=e.P[t];if(r.readOnly||r.enabled){e.G.push(t);const r=e.X[t]||{};for(let n in r)e.Z[t].push(n),e.i.mode===vo&&e.Y[t].push(n)}}})(),e.D?t.mode===vo&&(e.R=[...e.G]):(e.Z={...e.Y},e.Y={...e.Y,...o},ni([...e.B,...n]))})();const s=Gi();if(!await(async e=>{const t=Lo.o;let r=Di(e)?e:Ai(),n=t._[r];return qo(n)?n=await(async e=>{try{const t=await fetch(e);return await t.json()}catch(e){return console.error(e),!1}})(n):Fo(n)&&(n=await n()),!!n&&(t.u=n,qi(r),!0)})())return!1;if(oi(null,i=Hi,Ti,Pi),Lo.o.D&&Ni(i,Pi),Lo.t.lazyHtmlGeneration||Ti(i,Pi),r.autoShow&&!s&&Wi(!0),s)return gi(),fi(n.le);r.mode===vo&&gi(t.G)}var i},Ji=e=>({en:{consentModal:{title:"We use cookies",description:"Our website uses essential cookies to ensure its proper operation and tracking cookies to understand how you interact with it. Tracking will be enabled only upon your explicit consent.",acceptAllBtn:"Accept all",acceptNecessaryBtn:"Reject all",showPreferencesBtn:"Manage preferences"},preferencesModal:{title:"Consent preferences center",acceptAllBtn:"Accept all",acceptNecessaryBtn:"Reject all",savePreferencesBtn:"Accept current selection",closeIconLabel:"Close modal",sections:[{title:"Tracking technologies and your consent",description:"Cookies are small files that websites place on users' devices to collect data and enhance user experience. They can remember preferences, and track browsing habits. You can modify your preferences regarding cookies and tracking at any time."},{title:"Strictly necessary cookies",description:"These cookies are essential for the proper functioning of the website and cannot be disabled.",linkedCategory:"necessary"},{title:"Analytics cookies",description:"These cookies collect information about how you use our website. All of the data is anonymized and cannot be used to identify you.",linkedCategory:"analytics"},{title:"More information",description:`For any queries in relation to our policy on cookies and your choices, please <a href="mailto:${e?"hello@clearly.help":"hello@rozmova.me"}">contact us</a>`}]}},pl:{consentModal:{title:"Używamy plików cookie",description:"Nasza strona internetowa używa niezbędnych plików cookie do jej prawidłowego działania oraz plików śledzących, aby zrozumieć, jak z niej korzystasz. Śledzenie zostanie włączone tylko po Twojej wyraźnej zgodzie.",acceptAllBtn:"Akceptuj wszystkie",acceptNecessaryBtn:"Odrzuć wszystkie",showPreferencesBtn:"Zarządzaj ustawieniami"},preferencesModal:{title:"Centrum preferencji zgody",acceptAllBtn:"Akceptuj wszystkie",acceptNecessaryBtn:"Odrzuć wszystkie",savePreferencesBtn:"Akceptuj bieżący wybór",closeIconLabel:"Zamknij okno",sections:[{title:"Technologie śledzenia i Twoja zgoda",description:"Pliki cookie to małe pliki, które strony internetowe umieszczają na urządzeniach użytkowników, aby zbierać dane i poprawiać doświadczenie użytkownika. Mogą zapamiętywać preferencje i śledzić nawyki przeglądania. Możesz zmienić swoje preferencje dotyczące plików cookie i śledzenia w dowolnym momencie."},{title:"Niezbędne pliki cookie",description:"Te pliki cookie są niezbędne do prawidłowego funkcjonowania strony internetowej i nie można ich wyłączyć.",linkedCategory:"necessary"},{title:"Pliki cookie analityczne",description:"Te pliki cookie zbierają informacje o tym, jak korzystasz z naszej strony internetowej. Wszystkie dane są anonimizowane i nie mogą zostać wykorzystane do Twojej identyfikacji.",linkedCategory:"analytics"},{title:"Więcej informacji",description:`W przypadku pytań dotyczących naszej polityki plików cookie i Twoich wyborów, prosimy <a href="mailto:${e?"hello@clearly.help":"hello@rozmova.me"}">skontaktować się z nami</a>.`}]}},es:{consentModal:{title:"Usamos cookies",description:"Nuestro sitio web utiliza cookies esenciales para garantizar su correcto funcionamiento y cookies de seguimiento para comprender cómo interactúas con él. El seguimiento solo se habilitará con tu consentimiento explícito.",acceptAllBtn:"Aceptar todas",acceptNecessaryBtn:"Rechazar todas",showPreferencesBtn:"Gestionar preferencias"},preferencesModal:{title:"Centro de preferencias de consentimiento",acceptAllBtn:"Aceptar todas",acceptNecessaryBtn:"Rechazar todas",savePreferencesBtn:"Aceptar selección actual",closeIconLabel:"Cerrar ventana",sections:[{title:"Tecnologías de seguimiento y tu consentimiento",description:"Las cookies son pequeños archivos que los sitios web colocan en los dispositivos de los usuarios para recopilar datos y mejorar la experiencia del usuario. Pueden recordar preferencias y rastrear hábitos de navegación. Puedes modificar tus preferencias sobre cookies y seguimiento en cualquier momento."},{title:"Cookies estrictamente necesarias",description:"Estas cookies son esenciales para el funcionamiento adecuado del sitio web y no se pueden desactivar.",linkedCategory:"necessary"},{title:"Cookies de análisis",description:"Estas cookies recopilan información sobre cómo usas nuestro sitio web. Todos los datos están anonimizados y no pueden utilizarse para identificarte.",linkedCategory:"analytics"},{title:"Más información",description:`Para cualquier consulta sobre nuestra política de cookies y tus elecciones, por favor <a href="mailto:${e?"hello@clearly.help":"hello@rozmova.me"}">contáctanos</a>.`}]}},uk:{consentModal:{title:"Ми використовуємо файли cookie",description:"Наш вебсайт використовує необхідні файли cookie для забезпечення його належної роботи, а також файли відстеження, щоб зрозуміти, як ви з ним взаємодієте. Відстеження буде увімкнено лише після вашої явної згоди.",acceptAllBtn:"Прийняти всі",acceptNecessaryBtn:"Відхилити всі",showPreferencesBtn:"Керувати налаштуваннями"},preferencesModal:{title:"Центр налаштувань згоди",acceptAllBtn:"Прийняти всі",acceptNecessaryBtn:"Відхилити всі",savePreferencesBtn:"Прийняти поточний вибір",closeIconLabel:"Закрити вікно",sections:[{title:"Технології відстеження та ваша згода",description:"Файли cookie – це невеликі файли, які вебсайти зберігають на пристроях користувачів для збору даних і покращення взаємодії. Вони можуть запам'ятовувати вподобання та відстежувати поведінку перегляду. Ви можете змінити свої налаштування щодо файлів cookie та відстеження у будь-який час."},{title:"Строго необхідні файли cookie",description:"Ці файли cookie є необхідними для належного функціонування вебсайту і їх не можна вимкнути.",linkedCategory:"necessary"},{title:"Аналітичні файли cookie",description:"Ці файли cookie збирають інформацію про те, як ви використовуєте наш вебсайт. Усі дані анонімізовані і не можуть бути використані для ідентифікації вас.",linkedCategory:"analytics"},{title:"Додаткова інформація",description:`Якщо у вас є запитання щодо нашої політики використання файлів cookie та ваших налаштувань, будь ласка, <a href="mailto:${e?"hello@clearly.help":"hello@rozmova.me"}">зв'яжіться з нами</a>.`}]}}}),Yi=(e,t)=>{const r=document.createElement("link");r.rel="stylesheet",r.href="https://cdn.jsdelivr.net/gh/orestbida/cookieconsent@3.0.1/dist/cookieconsent.css",document.head.appendChild(r);const n=document.createElement("style");n.innerHTML='\n :root {\n /** Change font **/\n --cc-font-family: "Inter", sans-serif;\n\n /** Change button primary color to black **/\n --cc-btn-primary-bg: #4C6EF5;\n --cc-btn-primary-border-color: #4C6EF5;\n }\n',document.head.appendChild(n),Vi(((e,t)=>{const r=no();return{language:{default:e,translations:Ji(t)},cookie:{domain:r},guiOptions:{consentModal:{layout:"box wide",position:"bottom left"},preferencesModal:{layout:"bar"}},categories:{necessary:{enabled:!0,readOnly:!0},analytics:{enabled:!0,readOnly:!1,services:{ga:{label:"Google Analytics",onAccept:()=>{gtag("consent","update",{ad_storage:"granted",ad_user_data:"granted",ad_personalization:"granted",analytics_storage:"granted"})},onReject:()=>{gtag("consent","update",{ad_storage:"granted",ad_user_data:"granted",ad_personalization:"granted",analytics_storage:"granted"})}}}}}}})(e,t))};var Xi=new class{initialized=!1;locale="uk";platform="web";dataLayer=[];lastGConfig={};isInitialized(){return this.initialized}async init({locale:t,platform:r,isClearly:n}={}){if(this.initialized)return;!function(){const e=document.createElement("script");e.type="text/javascript",e.text='\n (function(){\n var analytics = window.analytics = window.analytics || [];\n if (!analytics.initialize) \n if (analytics.invoked) \n window.console && console.error && console.error("Snippet included twice.");\n else {\n analytics.invoked = !0;\n analytics.methods = ["trackSubmit", "trackClick", "trackLink", "trackForm", "pageview", "identify", "reset", "group", "track", "ready", "alias", "debug", "page", "once", "off", "on", "addSourceMiddleware", "addIntegrationMiddleware", "setAnonymousId", "addDestinationMiddleware"];\n analytics.factory = function(e) {\n return function() {\n var t = Array.prototype.slice.call(arguments);\n t.unshift(e);\n analytics.push(t);\n return analytics;\n }\n };\n for (var e = 0; e < analytics.methods.length; e++) {\n var key = analytics.methods[e];\n analytics[key] = analytics.factory(key);\n }\n analytics.load = function(key, e) {\n var t = document.createElement("script");\n t.type = "text/javascript";\n t.async = !0;\n t.src = "https://cdp-eu.customer.io/v1/analytics-js/snippet/" + key + "/analytics.min.js";\n var n = document.getElementsByTagName("script")[0];\n n.parentNode.insertBefore(t, n);\n analytics._writeKey = key;\n analytics._loadOptions = e;\n };\n analytics.SNIPPET_VERSION = "4.15.3";\n analytics.load("e6d009719c77519432c3");\n analytics.page();\n }\n })();\n ',document.head.appendChild(e)}(),(()=>{const e=Zn("geo");if(e){const t=no();o.set("geo",e,{domain:t})}})();const i=ho();(navigator.userAgent||navigator.vendor||window.opera).match(/FBAN|FBAV|Instagram/i)&&((e,t)=>{const r=new URL(window.location.href);r.searchParams.set(e,t),window.history.replaceState({path:r.toString()},"",r.toString())})(Vn,i),this.locale=t||(e=>{const t=window.location.pathname.split("/")[1];return Xn.includes(t)?t:e?"en":"uk"})(n),r&&(this.platform=r),"web"===this.platform&&n&&Yi(this.locale,n),Gn.init("9d4cb3d213e5aee689ea01dd68ad65ad",{debug:!1,track_pageview:"url-with-path",persistence:"cookie"}),e.init("irbqmnlbwz");const s=await this.getCommonParams();Gn.register(s),this.setConfig(),this.trackPageView(),(e=>{const t="prev_session_id",r=o.get(t),n=co();if(r!==n){const r=no();n&&o.set(t,n,{domain:r}),e("login",{logged:"no"},{ga:!0})}})(this.trackEvent.bind(this)),this.initialized=!0,this.processDataLayer()}processDataLayer(){const e=["g_config","page_view"];for(const t of e){const e=this.dataLayer.findIndex((e=>e.eventName===t));if(-1!==e){const t=this.dataLayer.splice(e,1)[0];this.trackEvent(t.eventName,t.eventParams)}}for(;this.dataLayer.length>0;){const e=this.dataLayer.shift();this.trackEvent(e?.eventName,e?.eventParams)}}setUserTag(t,r){e.setTag(t,r)}async trackEvent(e,t,r={ga:!0,mixpanel:!0,customerIO:!0}){if(!this.initialized)return void this.dataLayer.push({eventName:e,eventParams:t});const n=await this.getCommonParams(),o={...n,...t};if(r.mixpanel)try{Gn.track(e,o)}catch(e){console.log(e)}if(r.ga)try{const r={locale:n.locale,platform:n.platform,funnel_name:n.funnel_name,user_id:n.user_id,logged_in:n.logged_in,...t};Qn.includes(e)&&window.dataLayer.push({ecommerce:null}),window.dataLayer.push({event:e,...r})}catch(e){console.log(e)}if(r.customerIO)try{window.analytics.track(e,o)}catch(e){console.log(e)}}setConfig(e={userId:mo(),email:_o(),locale:this.locale}){this.lastGConfig=e;const{userId:t,email:r,locale:n}=e,o={user_id:t,is_logged:t?"yes":"no",locale:n,platform:this.platform,user_type:lo(r)};Gn.track("g_config",o),window.dataLayer.push({event:"g_config",...o})}getLastGConfig(){return this.lastGConfig}trackPageView({referrer:e}={}){const t={page_title:document.title,page_location:window.location.href,page_referrer:e||document.referrer};Gn.track("page_view",t),window.dataLayer.push({event:"page_view",...t})}setUser(e,t){if(!this.initialized)return void console.warn("Analytics is not initialized.");const{email:r,name:n,phone:i,isB2B:s}=t;Gn.identify(e),Gn.people.set({$email:r,name:n,phone:i,isB2B:s}),window.analytics.identify(e,t),(e=>{const t=no();o.set(fo,e,{domain:t})})(e),(e=>{const t=no();o.set(go,e,{domain:t})})(r),this.trackEvent("login",{logged:"yes",uid:e})}async getCommonParams(){const e=(()=>{const e=o.get(Jn),t=e?JSON.parse(e):{},r=new URLSearchParams(window.location.search),n={...Yn.some((e=>r.get(e)&&r.get(e)!==t[e]))?Yn.reduce(((e,t)=>({...e,[t]:r.get(t)})),{}):Yn.reduce(((e,r)=>({...e,[r]:t[r]})),{}),referrer:io()||t.referrer,search_query:so()||t.search_query,landing_page_url:t.landing_page_url||window.location.href};return o.set(Jn,JSON.stringify(n),{domain:no()}),n})(),t=await new Promise((e=>{if("undefined"!=typeof gtag)try{gtag("get","G-GYQLL028VQ","client_id",(function(t){e(t||ao())})),setTimeout((()=>{e(ao())}),1e3)}catch(t){console.warn("Error getting client ID from gtag:",t),e(ao())}else e(ao())}));return{...e,fbc:o.get("_fbc"),fbp:o.get("_fbp"),session_id:co(),user_pseudo_id:t,rid:ho(),funnel_name:o.get("funnel_name"),language:window.navigator.language,platform:this.platform,url:window.location.href,device:to(),browser:eo(),system:ro(),locale:this.locale,logged_in:!!mo(),user_id:mo()}}setLocale(e){this.locale=e}resetUser(){this.initialized?(Gn.reset(),window.analytics.reset(),(()=>{const e=no();o.remove(fo,{domain:e})})(),(()=>{const e=no();o.remove(go,{domain:e})})(),this.trackEvent("login",{logged:"no"}),po(),this.init()):console.warn("Analytics is not initialized.")}getUserId=ho};return Xi}));
|