mergn-webapp-sdk 1.0.247 → 1.0.249

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.
@@ -1,75 +1 @@
1
- /* Copyright (c) 2025 MERGN */
2
- "use strict";(()=>{var Lr=Object.defineProperty,Dr=Object.defineProperties;var Ur=Object.getOwnPropertyDescriptors;var _t=Object.getOwnPropertySymbols;var xr=Object.prototype.hasOwnProperty,kr=Object.prototype.propertyIsEnumerable;var Lt=d=>{throw TypeError(d)};var Ct=(d,e,t)=>e in d?Lr(d,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):d[e]=t,Q=(d,e)=>{for(var t in e||(e={}))xr.call(e,t)&&Ct(d,t,e[t]);if(_t)for(var t of _t(e))kr.call(e,t)&&Ct(d,t,e[t]);return d},Le=(d,e)=>Dr(d,Ur(e));var qe=(d,e,t)=>e.has(d)||Lt("Cannot "+t);var l=(d,e,t)=>(qe(d,e,"read from private field"),t?t.call(d):e.get(d)),E=(d,e,t)=>e.has(d)?Lt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(d):e.set(d,t),b=(d,e,t,r)=>(qe(d,e,"write to private field"),r?r.call(d,t):e.set(d,t),t),a=(d,e,t)=>(qe(d,e,"access private method"),t);var c=(d,e,t)=>new Promise((r,n)=>{var o=m=>{try{h(t.next(m))}catch(I){n(I)}},s=m=>{try{h(t.throw(m))}catch(I){n(I)}},h=m=>m.done?r(m.value):Promise.resolve(m.value).then(o,s);h((t=t.apply(d,e)).next())});var De="1.0.247";var Dt="https://api.mergn.com/sdk-management/api",Qe="/attribute",Ut="/set-attribute",Ze="/event",xt="/record-event";var kt="/customer",Ft="/device/add-device-token",Mt="/set-identity",Wt="/brand/get-web-push-public-key",Bt="/brand/get-time";var g=class extends Error{constructor(e){super(e),this.name="MergnError"}};g.disableSDK=!1,g.offline=!navigator.onLine,g.debugLevel=0,g.isInitialized=!1,g.loading=!1;var Mr=(d,e)=>{e instanceof g?i(2,`OriginateFrom: ${d}
3
- MergnError: ${e.message}`):e instanceof Error?i(2,`OriginateFrom: ${d}
4
- Unexpected error: ${e.message}`):i(2,`OriginateFrom: ${d}
5
- Unexpected error: ${String(e)}`)},N=(d,e,t,r=!1)=>c(void 0,null,function*(){try{F(d,!0),k(`${d} Time`,!0);try{if(d!=="verify API key"){if(d!=="verify API key"&&g.disableSDK)throw new g("Mergn SDK is disabled!");if(d!=="record event"&&g.offline)throw new g("Mergn is offline!");if(d!=="init"&&d!=="verify API key"&&d!=="record event"&&d!=="recordAttribute"&&d!=="log level check"&&d!=="login"&&!g.isInitialized)throw new g("Mergn not initialized!");if(d!=="login"&&d!=="record event"&&d!=="recordAttribute"&&g.loading)throw new g("Mergn is loading!")}return yield e()}catch(n){return t?t(n):(g.debugLevel===2||g.debugLevel===3)&&Mr(d,n),null}finally{k(`${d} Time`,!1),F(d,!1)}}catch(n){return null}});var M=(o=>(o[o.NONE=0]="NONE",o[o.INFO=1]="INFO",o[o.ERROR=2]="ERROR",o[o.ALL=3]="ALL",o[o.DEBUG=4]="DEBUG",o))(M||{}),i=(d,e)=>{g.debugLevel!==0&&(g.debugLevel>=3?d===1?console.info(`INFO: ${new Date().toISOString()}`,e):d===2&&console.error(`ERROR: ${new Date().toISOString()}`,e):g.debugLevel===1&&d===1?console.info(`INFO: ${new Date().toISOString()}`,e):g.debugLevel===2&&d===2&&console.error(`ERROR: ${new Date().toISOString()}`,e))},k=(d,e)=>{g.debugLevel!==0&&(e?console.time(d):console.timeEnd(d))},F=(d,e)=>{g.debugLevel!==0&&(e?console.group(d):console.groupEnd())};var ae,B,Ie,Ue,T=class T{constructor(){E(this,B)}retryPromise(e,t=3,r=1e3){return new Promise((n,o)=>{let s=h=>c(this,null,function*(){try{let m=yield e();n(m)}catch(m){h===0?o(m):setTimeout(()=>{s(h-1)},r)}});s(t)})}static getInstance(){return l(T,ae)||b(T,ae,new T),l(T,ae)}setApiURL(e){T.API_URL=e}updateAPIKey(e){T.apiKey=e;let t=e,r=/m(\d+)rgn/,n=t.match(r);n&&(T.brandId=n[1])}getAPIKey(){return T.apiKey}getBrandId(){return T.brandId}get(e){return c(this,null,function*(){let t=a(this,B,Ue).call(this,T.apiKey);try{let r=yield fetch(a(this,B,Ie).call(this)+e,{headers:{Authorization:t,"Content-Type":"application/json"}});if(!r.ok)throw new Error(`${t} - ${JSON.stringify(yield r.json())}`);return r.json()}catch(r){return Promise.reject(r)}})}post(e,t,r){return c(this,null,function*(){let n=a(this,B,Ue).call(this,T.apiKey);try{return(yield fetch(a(this,B,Ie).call(this)+e,{body:JSON.stringify(t||{}),headers:{Authorization:n,"Content-Type":"application/json"},method:"POST",signal:r})).json()}catch(o){return Promise.reject(o)}})}put(e,t){return c(this,null,function*(){return(yield fetch(a(this,B,Ie).call(this)+e,{body:JSON.stringify(t||{}),headers:{Authorization:a(this,B,Ue).call(this,T.apiKey),"Content-Type":"application/json"},method:"PUT"})).json()})}syncRealWorldTime(){return c(this,null,function*(){try{let e=(yield(yield fetch(a(this,B,Ie).call(this)+Bt)).json()).data;T.UTCDate=new Date(e),T.lastSyncTime=new Date}catch(e){i(2,"Failed to sync real-world time")}})}getCurrentUTCDate(){if(!T.UTCDate||!T.lastSyncTime)return i(2,"UTC Date or last sync time is not set"),new Date;let t=new Date().getTime()-T.lastSyncTime.getTime();return new Date(T.UTCDate.getTime()+t)}retryPost(e,t,r){return c(this,null,function*(){return this.retryPromise(()=>this.post(e,t,r))})}};ae=new WeakMap,B=new WeakSet,Ie=function(){return T.API_URL},Ue=function(e){return btoa(`${e}:${new Date().getTime()}`)},E(T,ae),T.API_URL=Dt;var Xe=T,P=Xe.getInstance();var $t=(m=>(m.UTM_SOURCE="utm_source",m.UTM_MEDIUM="utm_medium",m.UTM_CAMPAIGN="utm_campaign",m.UTM_TERM="utm_term",m.UTM_CONTENT="utm_content",m.GAD_SOURCE="gad_source",m.GCLID="gclid",m.FBCLID="fbclid",m))($t||{});var Vt=new Set(Object.values($t));var ce="Popup Action";var et="Content Card Action";var le,J,de,Z,ye,Se,X,S,rt,Jt,it,xe,Kt,Me,ke,nt,Ht,Fe,ee,zt,v=class v{constructor(){E(this,S);this.permission=null;this.pushMessageToSW=e=>{i(1,"Pushing message to service worker"),navigator.serviceWorker.getRegistrations().then(t=>{i(1,"Service Worker registration"),t.forEach(r=>{var n;r!=null&&r.active&&r.active.scriptURL.includes(l(v,X)||"mergn-sw.js")&&(i(1,"Service Worker ready"),(n=r.active)==null||n.postMessage(JSON.stringify(e)))})}).catch(t=>{i(2,`Failed to push message to service worker: ${t.message}`)})};this.loadWebPushActionInLocalStorage=()=>{u.loadActionInLocalStorage({actionCondition:()=>!0,actionMethod:e=>a(this,S,ke).call(this,Number(e.web_optin_instance_id)),localStorageKey:"web_push_action"})};E(this,Me,()=>{u.storeActionInLocalStorageInternal("web_push_action")});E(this,ee,e=>{u.clearActionInLocalStorage({id:e,localStorageKey:"web_push_action"})})}static getInstance(){return l(v,le)||b(v,le,new v),l(v,le)}init(e,t,r){return c(this,null,function*(){var n;if(i(1,"Initializing Notification Service"),f.recordDebugEvents({eventName:"init",eventProperties:[{eventProperty:"service_worker",value:"serviceWorker"in navigator},{eventProperty:"push_manager",value:"PushManager"in window}]}),"serviceWorker"in navigator&&"PushManager"in window){i(1,"Service Worker and Push Manager are supported");try{f.recordDebugEvents({eventName:"init_condition"}),i(1,`isExtensionSW: ${r}`),b(v,X,r?`${window.origin}/apps/mergn/mergn-sw.js`:t||"/mergn-sw.js"),i(1,`swPath: ${l(v,X)}`),yield navigator.serviceWorker.register(l(v,X)).then(m=>{b(v,J,m),setInterval(()=>{m.update()},1e3*60*60),m.addEventListener("updatefound",()=>{let I=m.installing;I&&I.addEventListener("statechange",()=>{I.state==="installed"&&console.log("New service worker installed")})})}),i(1,"Service Worker registered"),i(1,"Pushing message to service worker for initialization"),setTimeout(()=>{this.pushMessageToSW({customer:localStorage.getItem("customer")||"",events:f.getStoredEvents(),API_KEY:P.getAPIKey(),debugLevel:g.debugLevel,device_id:localStorage.getItem("uniqueIdentity")||"",operatingSystem:u.getOperatingSystem(),osVersion:u.getOSVersion(),Platform:u.getPlatform()})},1e3),b(v,ye,!0);let o=a(this,S,nt).call(this),s=Object.keys(o||{});if(s.length&&a(this,S,ke).call(this,Number(s[0])),!e)return;let h=yield(n=l(v,J))==null?void 0:n.pushManager.getSubscription();i(1,"Checking for existing subscription"),l(v,J)&&(i(1,"Service Worker registration is available"),l(v,J).update()),h?(i(1,"Existing subscription found"),f.recordDebugEvents({eventName:"existing_subscription"}),yield a(this,S,xe).call(this),b(v,de,!0)):(i(1,"No existing subscription found"),yield a(this,S,rt).call(this,l(v,Se)||void 0))}catch(o){let s=o&&o.message?o.message.substring(0,100):"undefined";yield f.recordDebugEvents({eventName:"Reachability Push Web",eventProperties:[{eventProperty:"message",value:`${s}`}]}),i(2,"Service Worker registration failed:"),i(2,s)}}else yield f.recordEvent({eventName:"Notification Disabled",eventProperties:[{eventProperty:"type",value:"notification instance not found"}]})})}showNotification(e){if(!l(v,ye)){b(v,Se,e),f.recordDebugEvents({eventName:"notification_service_not_initialized"}),i(2,"Notification service is not initialized");return}N("showNotification",()=>c(this,null,function*(){var r;let t=JSON.parse(localStorage.getItem("web_push_action")||"{}");if(t){for(let n in t)if(((r=t[n])==null?void 0:r.type)===e.type){i(1,`Notification ${e.type} already in cache`);return}}a(this,S,Kt).call(this,e),l(this,Me).call(this),a(this,S,ke).call(this,e.web_optin_instance_id)}))}};le=new WeakMap,J=new WeakMap,de=new WeakMap,Z=new WeakMap,ye=new WeakMap,Se=new WeakMap,X=new WeakMap,S=new WeakSet,rt=function(e){return c(this,null,function*(){i(1,`Checking notification permission: ${JSON.stringify(e)} `),f.recordDebugEvents({eventName:"check_permission"});let t;try{if(t=Notification.permission,t)if(i(1,`Notification permission: ${t}`),t==="default")e||(this.permission="default",f.recordDebugEvents({eventName:"Turned Off Notification Reset Permission"})),e&&(f.recordDebugEvents({eventName:"notification_data",eventProperties:[{eventProperty:"type",value:`${e==null?void 0:e.type}`}]}),l(this,ee).call(this,e.web_optin_instance_id),e.type==="two_step"?a(this,S,Jt).call(this,e):yield a(this,S,it).call(this,e));else if(t==="denied")yield f.recordEvent({eventName:"Notification Disabled",eventProperties:[{eventProperty:"type",value:"check permission denied"}]}),f.recordDebugEvents({eventName:"Turned Off Notification"}),i(1,"The user has blocked notifications."),e&&e.web_optin_instance_id&&l(this,ee).call(this,e.web_optin_instance_id);else{if(e&&e.web_optin_instance_id){l(this,ee).call(this,e.web_optin_instance_id);return}f.recordDebugEvents({eventName:"already_registered"}),i(1,"The user has already enabled notifications."),l(v,de)||(yield a(this,S,xe).call(this),e||b(v,de,!0))}}catch(r){i(2,"Failed to check notification permission"),f.recordDebugEvents({eventName:"notification_permission_error"})}})},Jt=function(e){try{let t=document.createElement("div"),r;e.banner_design.banner_image&&(r=document.createElement("img"),r.src=e.banner_design.banner_image,r.alt="Image",r.id="centered-image");let n=document.createElement("div"),o=document.createElement("div"),s=document.createElement("div"),h=document.createElement("img"),m=document.createElement("div"),I=document.createElement("div"),y=document.createElement("div"),_=document.createElement("div"),R=document.createElement("div"),x=document.createElement("div"),L=document.createElement("button"),D=document.createElement("button");t.className="mergn-overlay",n.className="mergnWebPushPopup",o.className=_.className=R.className="mergn-row",s.className="mergn-column-25",m.className="mergn-column-75",x.className="button-container",I.id="title",y.id="subtitle",L.id="button-1",D.id="button-2",h.src=e.banner_design.banner_icon,h.alt="Image",h.id="logo",I.textContent=e.banner_design.banner_title,y.textContent=e.banner_design.banner_text,L.textContent=e.banner_design.button_1.text,D.textContent=e.banner_design.button_2.text,s.appendChild(h),m.appendChild(I),m.appendChild(y),o.appendChild(s),o.appendChild(m),r&&(_.appendChild(r),r.style.cssText=`
6
- max-width: 100%;
7
- height: auto;
8
- display: block;
9
- margin-left: auto;
10
- margin-right: auto;
11
- border-radius: 10px;
12
- max-width: 350px;
13
- aspect-ratio: 2 / 1;
14
- `),x.appendChild(L),x.appendChild(D),R.appendChild(x),n.appendChild(o),n.appendChild(_),n.appendChild(R),t.appendChild(n),t.style.cssText=`
15
- position: fixed;
16
- top: 0;
17
- left: 0;
18
- width: 100%;
19
- height: 100%;
20
- background-color: rgba(0, 0, 0, 0.5);
21
- z-index: 99999999999;
22
- display: flex;
23
- justify-content: center;
24
- align-items: start;
25
- `,n.style.cssText=`
26
- background-color: ${e.banner_design.banner_color};
27
- padding: 15px;
28
- border-radius: 5px;
29
- max-width: 380px;
30
- max-height: 463px;
31
- `,o.style.cssText=_.style.cssText=R.style.cssText=`
32
- display: flex;
33
- flex-wrap: wrap;
34
- margin-bottom: 10px;
35
- `,s.style.cssText=`
36
- width: 25%;
37
- `,m.style.cssText=`
38
- width: 73%;
39
- margin-left: 2%;
40
- `,h.style.cssText=`
41
- max-width: 100%;
42
- height: auto;
43
- `,L.style.cssText=`
44
- padding: 12px 20px;
45
- border: none;
46
- background-color: ${e.banner_design.button_1.backgroundColor};
47
- color: ${e.banner_design.button_1.color};
48
- cursor: pointer;
49
- border-radius: 5px;
50
- width: 48%;
51
- `,D.style.cssText=`
52
- padding: 12px 20px;
53
- border: none;
54
- background-color: ${e.banner_design.button_2.backgroundColor};
55
- color: ${e.banner_design.button_2.color};
56
- cursor: pointer;
57
- border-radius: 5px;
58
- width: 48%;
59
- `,x.style.cssText=`
60
- display: flex;
61
- justify-content: space-between;
62
- align-items: center;
63
- flex-wrap: nowrap;
64
- width: 100%;
65
- `,I.style.cssText=`
66
- margin-bottom: 5px;
67
- font-size: 16px;
68
- color: ${e.banner_design.text_color}
69
- `,y.style.cssText=`
70
- margin-bottom: 5px;
71
- font-size: 13px;
72
- color: ${e.banner_design.text_color}
73
- `,document.body.appendChild(t),document.body.style.overflow="hidden",f.recordEvent({eventName:"Viewed Web Push Soft-ask",name:"viewed",web_optin_instance_id:e.web_optin_instance_id}),L==null||L.addEventListener("click",()=>c(this,null,function*(){t.remove(),b(v,Z,!1),document.body.style.overflow="auto",i(1,"User denied the notification permission.")})),D==null||D.addEventListener("click",()=>c(this,null,function*(){t.remove(),document.body.style.overflow="auto",yield a(this,S,it).call(this,e)}))}catch(t){}},it=function(e){return c(this,null,function*(){try{let t=yield Notification.requestPermission();t==="granted"?(i(1,"User granted the notification permission."),yield a(this,S,xe).call(this),yield f.recordEvent({eventName:"Allowed Web Push Subscription",name:"subscribed",web_optin_instance_id:e.web_optin_instance_id})):t==="denied"?i(1,"User denied the notification permission."):t==="default"&&i(1,"User closed the notification permission dialog.")}catch(t){i(2,"Failed to request notification permission"),i(2,t.message)}b(v,Z,!1)})},xe=function(){return c(this,null,function*(){var t,r;let e=yield P.get(`${Wt}`);if(i(1,`Getting Web Key: ${e.success}`),e.success){let n=yield(t=l(v,J))==null?void 0:t.pushManager.getSubscription();i(1,`Existing Subscription: ${!!n}`),n&&(yield n.unsubscribe());let o=yield(r=l(v,J))==null?void 0:r.pushManager.subscribe({applicationServerKey:e.data||"",userVisibleOnly:!0}),s=localStorage.getItem("customer")||"";i(1,`subscribeUserToPush Customer ID: ${s}`),(!s||s==="undefined")&&(yield u.setIdentity()),yield P.put(`${Ft}`,{customer_id:localStorage.getItem("customer"),device_id:localStorage.getItem("uniqueIdentity"),device_platform:u.getOperatingSystem(),is_web_push_subscribed:!0,os:u.getPlatform(),web_push_subscription_page_url:window.location.pathname,web_push_token:{token:JSON.parse(JSON.stringify(o))}}),this.pushMessageToSW({customer:localStorage.getItem("customer")||"",events:f.getStoredEvents(),API_KEY:P.getAPIKey(),debugLevel:g.debugLevel,device_id:localStorage.getItem("uniqueIdentity")||"",operatingSystem:u.getOperatingSystem(),osVersion:u.getOSVersion(),Platform:u.getPlatform()}),i(1,"User is subscribed")}else throw new Error("Failed to subscribe the user")})},Kt=function(e){u.storeActionInLocalStorage(e,"web_push_action","web_optin_instance_id")},Me=new WeakMap,ke=function(e){if(l(v,Z))return;b(v,Z,!0);let t=a(this,S,nt).call(this);if(t!=null&&t[e])switch(t[e].entry_time){case"DELAY":{a(this,S,Ht).call(this,t[e]);break}case"IMMEDIATELY":{a(this,S,Fe).call(this,t[e]);break}case"SCROLL":{a(this,S,zt).call(this,t[e]);break}default:return}},nt=function(){let e=localStorage.getItem("web_push_action");return e?JSON.parse(e):null},Ht=function(e){u.showDelayedAction({clearActionMethod:l(this,ee).bind(this),data:e,displayMethod:a(this,S,Fe).bind(this),idKey:"web_optin_instance_id",timeValueKey:"entry_time_value"})},Fe=function(e){a(this,S,rt).call(this,e)},ee=new WeakMap,zt=function(e){u.showAfterScrollAction({data:e,displayMethod:a(this,S,Fe).bind(this),timeValueKey:"entry_time_value"})},E(v,le),E(v,J,null),E(v,de,!1),E(v,Z,!1),E(v,ye,!1),E(v,Se,null),E(v,X,"");var tt=v,W=tt.getInstance();var te,w,jt,st,Yt,qt,ge,Be,We,Te,Qt,Zt,Xt,er,$e,H=class H{constructor(){E(this,w);E(this,ge,e=>{i(1,`Clearing popup event action in local storage for campaign ID: ${e}`),u.clearActionInLocalStorage({id:e,localStorageKey:"action"})});E(this,Be,(e,t)=>{let r=document.createElement("div");r.innerHTML=t,r.querySelectorAll("script").forEach(o=>{let s=document.createElement("script");o.src?s.src=o.src:s.textContent=o.textContent,e.appendChild(s)})});E(this,Te,({campaignCustomerInstanceId:e,campaignId:t,customForm:r,formDiv:n,popupContainer:o})=>{let s=(n==null?void 0:n.querySelector("form"))||r;s&&(s.querySelectorAll("input").forEach(h=>{h.style.setProperty("padding",h.style.padding,"important")}),s.addEventListener("submit",()=>c(this,null,function*(){o.remove();let h=new FormData(s),m={};i(1,"Form submitted values:");let I=[];for(let[y,_]of h.entries())m[y]=_,i(1,`${y}: ${_}`),I.push(V.recordAttribute(y,_.toString()));if(yield Promise.allSettled(I),setTimeout(()=>c(this,null,function*(){yield f.recordEvent({campaignCustomerInstanceId:e,campaignId:t,eventName:ce,eventProperties:[{eventProperty:"Form Submit",value:JSON.stringify({campaignId:t,formId:(n==null?void 0:n.id)||"custom_form",formValues:m})},{eventProperty:"Campaign Id",value:t.toString()}],name:"form"})})),s.action&&!r){let y=(s.method||"GET").toUpperCase();if((s.target||"_self")==="_blank"){let R=new URL(s.action);h.forEach((x,L)=>{R.searchParams.append(L,x.toString())}),window.open(R.toString(),"_blank");return}try{if(y==="POST"){let R=new URLSearchParams;h.forEach((x,L)=>{R.append(L,x.toString())}),yield fetch(s.action,{body:R.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"},method:"POST"})}else{let R=new URL(s.action);h.forEach((x,L)=>{R.searchParams.append(L,x.toString())}),yield fetch(R.toString(),{method:"GET"})}}catch(R){i(2,`Error submitting form data: ${R.message}`)}}})))});this.loadPopupEventActionInLocalStorage=()=>{u.loadActionInLocalStorage({actionCondition:e=>e.message.name==="Popup",actionMethod:e=>a(this,w,st).call(this,e.campaignId),localStorageKey:"action"})};E(this,$e,()=>{u.storeActionInLocalStorageInternal("action")})}static getInstance(){var e;return l(H,te)||(b(H,te,new H),a(e=l(H,te),w,jt).call(e)),l(H,te)}showPopup(e){let t=JSON.parse(localStorage.getItem("action")||"{}");if(t&&t[e==null?void 0:e.campaignId]){i(1,"Popup already in cache");return}a(this,w,er).call(this,e),l(this,$e).call(this),a(this,w,st).call(this,e.campaignId)}isPopupAction(e){return e==="Popup"}};te=new WeakMap,w=new WeakSet,jt=function(){return c(this,null,function*(){})},st=function(e){i(1,`Showing popup for campaign ID: ${e}`);let t=a(this,w,Yt).call(this);if(!t){i(1,"No popup action data found in local storage");return}if(i(1,`Popup action data: ${JSON.stringify(t)}`),document.getElementById(`popup_container_${e}`)){i(1,"Popup already displayed"),l(this,ge).call(this,e);return}if(t!=null&&t[e])switch(i(1,`Popup data for campaign ID ${e}:`),i(1,t[e]),t[e].campaignEntryTime){case"DELAY":{a(this,w,qt).call(this,t[e]);break}case"IMMEDIATELY":{a(this,w,We).call(this,t[e]);break}case"SCROLL":{a(this,w,Xt).call(this,t[e]);break}default:return}},Yt=function(){let e=localStorage.getItem("action");return e?JSON.parse(e):null},qt=function(e){u.showDelayedAction({clearActionMethod:l(this,ge).bind(this),data:e,displayMethod:a(this,w,We).bind(this),idKey:"campaignId",timeValueKey:"campaignEntryTimeValue"})},ge=new WeakMap,Be=new WeakMap,We=function(e){if(i(1,`Displaying popup for campaign ID: ${e.campaignId}`),document.getElementById(`popup_container_${e.campaignId}`))i(1,"Popup already displayed");else{let t=a(this,w,Zt).call(this,"div",e);i(1,"Popup element created and appending to the body"),l(this,Be).call(this,t,e.message.design),document.body.appendChild(t),i(1,"Popup element appended to the body"),f.recordEvent({campaignCustomerInstanceId:e.campaignCustomerInstanceId,campaignId:e.campaignId,eventName:ce,eventProperties:[{eventProperty:"Popup View",value:JSON.stringify({campaignId:e.campaignId})}],name:"view"})}i(1,"Popup displayed successfully"),l(this,ge).call(this,e.campaignId)},Te=new WeakMap,Qt=function(e,t){let r=e.parentElement;for(;r;){if(r.id.startsWith(t))return r;r=r.parentElement}return null},Zt=function(e,t){i(1,`Creating and appending element with tag: ${e}`),i(1,"Data for popup:"),i(1,t);let{campaignCustomerInstanceId:r,campaignId:n,message:{design:o}}=t,s=document.createElement(e);s.id=`popup_container_${n}`,s.innerHTML=o,s.style.position="fixed",s.style.top="0",s.style.left="0",s.style.width="100%",s.style.height="100%",s.style.zIndex="99999999",i(1,"Popup container created with ID:"),i(1,s.id);let h=s.querySelector(".u-popup-container");h&&(i(1,"Popup container element found"),h.style.zIndex="50");let m=h.querySelector(".u-popup-overlay");m&&(i(1,"Popup overlay element found"),m.style.setProperty("display","block","important")),s.querySelectorAll("form").forEach(y=>{let _=a(this,w,Qt).call(this,y,"u_content_form_");_?l(this,Te).call(this,{campaignCustomerInstanceId:r,campaignId:n,formDiv:_,popupContainer:s}):l(this,Te).call(this,{campaignCustomerInstanceId:r,campaignId:n,customForm:y,popupContainer:s})});let I=s.querySelector(".u-close-button");return(I==null?void 0:I.getAttribute("href"))==="#"&&I.removeAttribute("href"),I==null||I.addEventListener("click",()=>c(this,null,function*(){s.remove(),yield f.recordEvent({campaignCustomerInstanceId:r,campaignId:n,eventName:ce,eventProperties:[{eventProperty:"Close Click",value:JSON.stringify({campaignId:n})}],name:"close"})})),s.querySelectorAll('[id^="u_content_button_"]').forEach(y=>{y.addEventListener("click",()=>c(this,null,function*(){s.remove(),yield f.recordEvent({campaignCustomerInstanceId:r,campaignId:n,eventName:ce,eventProperties:[{eventProperty:"Button Click",value:JSON.stringify({buttonId:y.id,campaignId:n})}],name:"click"})}))}),s.querySelectorAll(".u-popup-container img").forEach(y=>{y.addEventListener("click",()=>c(this,null,function*(){var _;((_=y.parentElement)==null?void 0:_.tagName)==="A"&&y.parentElement.getAttribute("href")&&s.remove(),yield f.recordEvent({campaignCustomerInstanceId:r,campaignId:n,eventName:ce,eventProperties:[{eventProperty:"Image Click",value:JSON.stringify({campaignId:n,imageClassName:y.className,imageId:y.id})}],name:"click"})}))}),s},Xt=function(e){u.showAfterScrollAction({data:e,displayMethod:a(this,w,We).bind(this),timeValueKey:"campaignEntryTimeValue"})},er=function(e){i(1,"Storing popup action in local storage"),i(1,e),u.storeActionInLocalStorage(e,"action","campaignId")},$e=new WeakMap,E(H,te);var ot=H,z=ot.getInstance();var re,C,tr,Ve,rr,ir,nr,or,sr,j=class j{constructor(){E(this,C);this.queue=Promise.resolve()}static getInstance(){var e;return l(j,re)||(b(j,re,new j),a(e=l(j,re),C,tr).call(e)),l(j,re)}pushToQueue(e){let t=JSON.parse(localStorage.getItem("preInitializedEvents")||"[]");t.push(e),localStorage.setItem("preInitializedEvents",JSON.stringify(t))}recordEventsFromQueue(){return c(this,null,function*(){let e=JSON.parse(localStorage.getItem("preInitializedEvents")||"[]");if(Array.isArray(e))for(let t of e)yield this.recordEventPreInitialized(t)})}recordEvent(e,t){return c(this,null,function*(){g.isInitialized&&!g.loading?yield a(this,C,Ve).call(this,e,t):this.pushToQueue(e)})}recordEventPreInitialized(e){return c(this,null,function*(){try{yield a(this,C,Ve).call(this,e)}finally{a(this,C,sr).call(this,e.eventName)}})}recordDebugEvents(e){return c(this,null,function*(){g.debugLevel===4&&(!g.recordDebugEventsToggle||g.recordDebugEventsToggle[e.eventName])&&(yield a(this,C,Ve).call(this,e))})}getStoredEvents(){let e=localStorage.getItem("events");return e?JSON.parse(e):{}}storeEventsAndPropertiesInLocalStorage(){return c(this,null,function*(){if(!localStorage.getItem("events")){let e=(yield this.fetchEventData()).data;if(e){localStorage.setItem("events",JSON.stringify(e));try{W.pushMessageToSW({events:e})}catch(t){}}}})}fetchEventData(){return c(this,null,function*(){try{return yield P.get(`${Ze}`)}catch(e){throw new Error("Error fetching event data")}})}postEventRecord(e,t){return c(this,null,function*(){let r=null,n=null,o=new AbortController;return this.queue=this.queue.then(()=>c(this,null,function*(){try{if(e.events.length===0)throw new Error("No events to record");let s=yield P.post(`/v2${Ze}${xt}`,e,o.signal);if(s.success)return n=s,s;if(s.message===`Customer with id ${localStorage.getItem("customer")} not exists`)throw localStorage.removeItem("customer"),new Error("Re initializing customer Id")}catch(s){throw i(2,"Error posting event record:"),i(2,`name: ${s.name}`),i(2,`message: ${s.message}`),(s.name==="AbortError"||s.name==="TypeError"&&s.message==="Failed to fetch"||s.message==="Load failed")&&(i(2,"Request aborted"),t&&a(this,C,or).call(this,t)),r=new Error((s==null?void 0:s.message)||"Error posting event record"),s}return null})).catch(()=>{}),this.queue.then(()=>{if(r)throw r;return n})})}};re=new WeakMap,C=new WeakSet,tr=function(){return c(this,null,function*(){})},Ve=function(e,t){return c(this,null,function*(){yield N("# record event",()=>c(this,null,function*(){var Nt,Pt,At,Rt;let{campaignCustomerInstanceId:r,campaignId:n,eventName:o,eventProperties:s,name:h,web_optin_instance_id:m}=e;i(1,"# Recording event"),F("Recording event",!0),k("Recording event Time",!0),i(1,"Event Payload"),i(1,{campaignCustomerInstanceId:r,eventName:o,eventProperties:s,name:h,web_optin_instance_id:m});let I=u.getPlatform();if(I==="Crawlers"||I==="Unknown")throw new Error("Invalid platform");o!=="Web Session Concluded"&&(yield u.checkTTL());let y=[];s&&y.push(...s),y.push({eventProperty:"Platform",value:I}),y.push({eventProperty:"operating-system",value:u.getOperatingSystem()}),y.push({eventProperty:"os-version",value:u.getOSVersion()});let _=this.getStoredEvents(),R=a(this,C,ir).call(this,_,o,y);if(typeof R=="string"){i(2,R);return}u.updateSessionCreated();let{id:x}=_[o],L=a(this,C,nr).call(this,Q(Le(Q(Q(Q({},r?{campaignCustomerInstanceId:r}:{}),n?{campaignId:n}:{}),m?{web_optin_instance_id:m}:{}),{eventId:x,eventProperties:R,sessionId:localStorage.getItem("session")||"abcd"}),h?{name:h}:{}));if(i(1,"Final Event Payload to be sent:"),i(1,L),g.offline){let $=JSON.parse(localStorage.getItem("offlineEvents")||"[]");$.length<=50&&($.push(...L.events),localStorage.setItem("offlineEvents",JSON.stringify($)));return}let D=yield this.postEventRecord(L,e);(Nt=D==null?void 0:D.data)!=null&&Nt.optIn?(yield this.recordDebugEvents({eventName:"optin_data"}),W.showNotification(D.data.optIn)):o==="Viewed Webpage"&&(yield this.recordDebugEvents({eventName:"no_optin",eventProperties:[{eventProperty:"message",value:`${"Notification"in window&&typeof((Pt=window==null?void 0:window.Notification)==null?void 0:Pt.permission)!="undefined"}`}]})),(Rt=(At=D==null?void 0:D.data)==null?void 0:At.campaigns)==null||Rt.forEach($=>{if(z.isPopupAction($.message.name)){if(a(this,C,rr).call(this,$.campaignId)){i(1,`Popup event is in queue for campaignId: ${$.campaignId}`);return}z.showPopup($)}else pe.isContentCardAction($.message.name)&&pe.showContentCard($)}),k("Recording event Time",!1),F("Recording event",!1)}),r=>{P.getBrandId()==="67"&&r.message!=="Failed to fetch"&&r.message!=="Load failed"&&r.message.includes("Failed to fetch")},t)})},rr=function(e){return i(1,`Checking if popup event is in queue for campaignId: ${e}`),JSON.parse(localStorage.getItem("preInitializedEvents")||"[]").find(r=>r.campaignId===e)},ir=function(e,t,r){if(!Object.prototype.hasOwnProperty.call(e,t))return`Event ${t} is not valid.`;if(!r)return[];let n=e[t];if(!(n!=null&&n.eventProperty))return i(2,`Event ${t} does not have a valid eventProperty.`),`Event ${t} does not have a valid eventProperty.`;let o=r.filter(({eventProperty:s})=>!Object.prototype.hasOwnProperty.call(n.eventProperty,s)).map(({eventProperty:s})=>s);return o.length>0&&(i(2,`Filtering Event ${t} invalid eventProperties: ${o.join(", ")}.`),r=r.filter(({eventProperty:s})=>!o.includes(s))),r.map(({eventProperty:s,value:h})=>({eventPropertyId:n.eventProperty[s].id,value:h}))},nr=function(e){return{customerId:localStorage.getItem("customer")||"",deviceId:localStorage.getItem("uniqueIdentity")||"",events:[e]}},or=function(e){i(1,"Adding to pre-initialized event:"),i(1,e);let t=localStorage.getItem("preInitializedEvents");t&&t!=="undefined"?(t=JSON.parse(t),t.push(e)):t=[e],localStorage.setItem("preInitializedEvents",JSON.stringify(t))},sr=function(e){let t=JSON.parse(localStorage.getItem("preInitializedEvents")||"[]"),r=t.findIndex(n=>n.eventName===e);r>=0&&t.splice(r,1),localStorage.setItem("preInitializedEvents",JSON.stringify(t))},E(j,re);var at=j,f=at.getInstance();var ie,A,ar,lt,cr,lr,me,Ge,dr,ur,gr,Je,Y=class Y{constructor(){E(this,A);E(this,me,e=>{u.clearActionInLocalStorage({id:e,localStorageKey:"action"})});this.loadContentCardEventActionInLocalStorage=()=>{u.loadActionInLocalStorage({actionCondition:e=>e.message.name==="ContentCard",actionMethod:e=>a(this,A,lt).call(this,e.campaignId),localStorageKey:"action"})};E(this,Je,()=>{u.storeActionInLocalStorageInternal("action")})}static getInstance(){var e;return l(Y,ie)||(b(Y,ie,new Y),a(e=l(Y,ie),A,ar).call(e)),l(Y,ie)}showContentCard(e){let t=JSON.parse(localStorage.getItem("action")||"{}");if(t&&t[e==null?void 0:e.campaignId]){i(1,"ContentCard already in cache");return}a(this,A,gr).call(this,e),l(this,Je).call(this),a(this,A,lt).call(this,e.campaignId)}isContentCardAction(e){return e==="content_card"}};ie=new WeakMap,A=new WeakSet,ar=function(){return c(this,null,function*(){})},lt=function(e){let t=a(this,A,cr).call(this);if(document.getElementById(`contentCard_container_${e}`)){i(1,"ContentCard already displayed"),l(this,me).call(this,e);return}if(t!=null&&t[e])switch(t[e].campaignEntryTime){case"DELAY":{a(this,A,lr).call(this,t[e]);break}case"IMMEDIATELY":{a(this,A,Ge).call(this,t[e]);break}case"SCROLL":{a(this,A,ur).call(this,t[e]);break}default:return}},cr=function(){let e=localStorage.getItem("action");return e?JSON.parse(e):null},lr=function(e){u.showDelayedAction({clearActionMethod:l(this,me).bind(this),data:e,displayMethod:a(this,A,Ge).bind(this),idKey:"campaignId",timeValueKey:"campaignEntryTimeValue"})},me=new WeakMap,Ge=function(e){var t;if(i(1,"Displaying ContentCard"),i(1,e),document.getElementById(`contentCard_container_${e.campaignId}`))i(1,"ContentCard already displayed");else{let r=a(this,A,dr).call(this,"div",e);i(1,`Appending ContentCard to: ${e.message.divId}`);let n=document.querySelector(`${e.message.divId}`);i(1,"Element to append ContentCard:"),i(1,n),n?(n.innerHTML=r.outerHTML,f.recordEvent({campaignCustomerInstanceId:e.campaignCustomerInstanceId,campaignId:e.campaignId,eventName:et,eventProperties:[{eventProperty:"Content Card View",value:JSON.stringify({campaignId:e.campaignId})}],name:"view"}),(t=document.getElementById(`contentCard_container_${e.campaignId}`))==null||t.addEventListener("click",()=>{f.recordEvent({campaignCustomerInstanceId:e.campaignCustomerInstanceId,campaignId:e.campaignId,eventName:et,eventProperties:[{eventProperty:"Content Card Click",value:JSON.stringify({campaignId:e.campaignId})}],name:"click"})})):i(2,`Element ${e.message.divId} not found to append ContentCard`)}l(this,me).call(this,e.campaignId)},dr=function(e,t){var s;let{campaignId:r,message:{design:n}}=t,o=document.createElement(e);return o.id=`contentCard_container_${r}`,o.innerHTML=n,(s=o.querySelector(".u-close-button"))==null||s.remove(),o},ur=function(e){u.showAfterScrollAction({data:e,displayMethod:a(this,A,Ge).bind(this),timeValueKey:"campaignEntryTimeValue"})},gr=function(e){u.storeActionInLocalStorage(e,"action","campaignId")},Je=new WeakMap,E(Y,ie);var ct=Y,pe=ct.getInstance();var pr=new Set(["adagiobot","adidxbot","adsbot-google","adsense","criteobot","pulsepoint-crawler","yahoo-ad-monitoring","ahrefsbot","ahrefssiteaudit","barkrowler","blexbot","dataforseobot","lumar","semrush-site-audit","semrush","seobility","algolia","baiduspider","bingbot","bytespider","ccbot","duckduckbot","googlebot","googleother","mj12bot","naverbot","petalbot","seekportbot","seznambot","sogou-spider","yahoo-slurp","yandexbot","amazonbot","applebot","claudebot","gptbot","google-extended","imagesiftbot","meta-externalagent","v0bot","amazon-kendra","amazon-q","chatgpt-user","chatgpt-operator","claude-user","claude-searchbot","duckassistbot","gemini-deep-research","gpt-actions","oai-searchbot","perplexitybot","perplexity-user","better-stack","brightbot","checkly","chrome-lighthouse","cookiebot","datadog-synthetic-monitoring-robot","detectify","google-inspectiontool","google-safety","hetrixtools-uptime-monitoring-bot","hydrozen","newrelic-minions","pingdom-bot","qatech","sentry-uptime-monitoring-bot","site24x7","statuscake","uptime-robot","vercelflags","verceltracing","buffer-link-preview-bot","discordbot","discord-bot","facebookexternalhit","facebot","facebook-webhooks","github-camo","linkedinbot","microsoftpreview","naver-blueno","opengraphxyzbot","pinterest-bot","slacklinkexpandingbot","snapchatadsbot","twitterbot","vercel-favicon-bot","vercel-screenshot-bot","adyen-webhook","customerio-webhooks","falbot","github-hookshot","hookdeck","inngest","paypal","qstash","razorpay-webhook","sanity-webhooks","stripe-webhooks","svix","apple-podcasts","artemis-web-crawler","feedfetcher","google-publisher-center","apis-google","google-site-verifier","google-pagerenderer","google-read-aloud","google-storebot","google-image-proxy","google-cloudvertexbot","amazon-product-discovery","amazon-seller-initiated-listing","geedoproductsearchbot","google-storebot","chrome-privacy-preserving-prefetch-proxy","google-read-aloud","artemis-web-crawler","claritybot","contentkingbot","opengraphxyzbot","mj12bot","statuscake","uptime-robot"]);var Ee,Ke,Oe,G,K,U,we,mr,Er,ut,He=class He{constructor(){E(this,U);E(this,Ke,"device_detector_cache");E(this,Oe,24*60*60*1e3);E(this,G,navigator.userAgent.toLowerCase());E(this,K,null)}static getInstance(){return l(this,Ee)||(b(this,Ee,new He),i(4,"DeviceDetector singleton instance created")),l(this,Ee)}getOperatingSystem(){if(u.isShopify)return a(this,U,ut).call(this);if(l(this,K)!==null)return i(4,`Cache hit from memory: ${l(this,K)}`),l(this,K);let e=a(this,U,mr).call(this);if(e!==null)return b(this,K,e),e;i(1,"No cache found, performing device detection");let t=a(this,U,ut).call(this);return b(this,K,t),a(this,U,Er).call(this,t),i(1,`Device detection completed: ${t}`),t}clearCache(){try{let e=a(this,U,we).call(this,l(this,G));localStorage.removeItem(e),b(this,K,null),i(1,"Cache cleared successfully")}catch(e){i(2,`Cache clear error: ${e}`)}}getCacheStats(){try{let e=a(this,U,we).call(this,l(this,G)),t=localStorage.getItem(e);if(!t)return i(4,"getCacheStats: No cache found"),{cached:!1};let{result:r,timestamp:n}=JSON.parse(t),o={age:Date.now()-n,cached:!0,expires:l(this,Oe)-(Date.now()-n),result:r};return i(4,`Cache stats: ${JSON.stringify(o)}`),o}catch(e){return i(2,`getCacheStats error: ${e}`),{cached:!1,error:e.message}}}isCrawler(){return this.getOperatingSystem()==="Crawlers"}isMobile(){return this.getOperatingSystem()==="Mobile"}isWeb(){return this.getOperatingSystem()==="Web"}};Ee=new WeakMap,Ke=new WeakMap,Oe=new WeakMap,G=new WeakMap,K=new WeakMap,U=new WeakSet,we=function(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r)&4294967295;return`${l(this,Ke)}_${Math.abs(t)}`},mr=function(){try{let e=a(this,U,we).call(this,l(this,G)),t=localStorage.getItem(e);if(!t)return i(4,"No localStorage cache found"),null;let{result:r,timestamp:n,ua:o}=JSON.parse(t);return Date.now()-n>l(this,Oe)||o!==l(this,G)?(localStorage.removeItem(e),i(4,"localStorage cache expired or UA mismatch, removed"),null):(i(4,`Cache hit from localStorage: ${r}`),r)}catch(e){return i(2,`localStorage read error: ${e}`),null}},Er=function(e){try{let t=a(this,U,we).call(this,l(this,G)),r={result:e,timestamp:Date.now(),ua:l(this,G)};localStorage.setItem(t,JSON.stringify(r)),i(4,`Saved to localStorage cache: ${e}`)}catch(t){i(2,`localStorage save error: ${t}`)}},ut=function(){let e=l(this,G);if(i(4,`Detecting device for UA: ${e.substring(0,50)}...`),e.includes("googlebot")||e.includes("bingbot")||e.includes("facebookexternalhit"))return i(4,"Fast bot detection: Common bot pattern found"),"Crawlers";if(/android|iphone|ipad/i.test(e))return/wv|wkwebview|instagram|facebook|fbav|fban|twitter|snapchat|pinterest|linkedin|tiktok/i.test(e)?(i(4,"Detected: Mobile WebView"),"Mobile"):(i(4,"Detected: Mobile"),"Mobile");if(/windows|macintosh|linux|x11/i.test(e)){i(4,"Desktop UA detected, checking for bots...");let t=e.split(/[^a-z0-9\-_.]+/);for(let r of t)if(pr.has(r))return i(4,`Bot token found: ${r}`),"Crawlers";return i(4,"Detected: Web (Desktop)"),"Web"}return i(4,"Detected: Unknown device type"),"Unknown"},E(He,Ee,null);var dt=He,hr=dt;var he,Pe,Ae,Re,_e,Ce,fe,je,p,fr,br,vr,Ne,pt,mt,Et,ht,Ir,yr,ft,bt,Sr,Tr,wr,vt,ze,It,Or,Nr,ne=class ne{constructor(){E(this,p);E(this,Pe);E(this,Ae);E(this,Re);E(this,_e,null);E(this,Ce,null);E(this,fe,!1);E(this,je,()=>{setInterval(()=>{N("listen to shopify data",()=>c(this,null,function*(){let e=localStorage.getItem("mergn_shopify");if(e!==l(this,Ce)){i(1,"Shopify data changed"),b(this,Ce,e);let t=JSON.parse(e||"{}");if(t!=null&&t.pushMessageToSW){i(1,"Pushing message to SW from Shopify data");let r=t.pushMessageToSW;delete t.pushMessageToSW,localStorage.setItem("mergn_shopify",JSON.stringify(t)),W.pushMessageToSW(r)}if(t!=null&&t.optIn){let r=t.optIn;delete t.optIn,localStorage.setItem("mergn_shopify",JSON.stringify(t)),W.showNotification(r)}if(t!=null&&t.campaigns){let r=t.campaigns;delete t.campaigns,localStorage.setItem("mergn_shopify",JSON.stringify(t)),r.forEach(n=>{z.isPopupAction(n.message.name)?(i(1,"Showing popup from Shopify data"),i(1,n),z.showPopup(n)):pe.isContentCardAction(n.message.name)&&pe.showContentCard(n)})}}}))},1e3)});this.storeActionInLocalStorageInternal=e=>{let t=()=>{let r=JSON.parse(localStorage.getItem(e)||"{}");Object.keys(r).forEach(n=>{r[n].initialTime=new Date().getTime()}),localStorage.setItem(e,JSON.stringify(r))};t(),window.addEventListener("beforeunload",t)};this.clearActionInLocalStorage=({id:e,localStorageKey:t})=>{let r=JSON.parse(localStorage.getItem(t)||"{}");r[e]&&delete r[e],localStorage.setItem(t,JSON.stringify(r))};this.loadActionInLocalStorage=({actionCondition:e,actionMethod:t,localStorageKey:r})=>{let n=JSON.parse(localStorage.getItem(r)||"{}");Object.keys(n).forEach(o=>{e(n[o])&&t(n[o])})}}static getInstance(){return l(ne,he)||b(ne,he,new ne),l(ne,he)}init(e,t){return c(this,null,function*(){i(1,"Initializing base service");let r=a(this,p,Ne).call(this);if(t!=null&&t.shopify&&b(this,fe,!0),a(this,p,fr).call(this,e),P.getBrandId()==="35"){g.disableSDK=!0;return}let n=this.getPlatform();if(n==="Crawlers"||n==="Unknown"){i(2,"Not initializing base service for crawlers or unknown platforms");return}if(yield P.syncRealWorldTime(),i(1,"Verifying API Key"),yield a(this,p,vt).call(this,3),t!=null&&t.shopify&&l(this,je).call(this),t!=null&&t.identity)try{g.loading=!0,yield this.setIdentity(t.identity)}finally{g.loading=!1}yield this.checkTTL(),yield f.recordEventsFromQueue(),yield V.recordAttributeFromQueue(),f.recordDebugEvents({eventName:"base_init"}),i(1,"Initializing notification service from Base Service"),yield N("notification service",()=>c(this,null,function*(){yield W.init(r,t==null?void 0:t.swPath,t==null?void 0:t.isExtensionSW)})),yield a(this,p,Nr).call(this,t==null?void 0:t.shopify);let o=history.pushState;history.pushState=(...s)=>{o.apply(history,s),a(this,p,Or).call(this,t==null?void 0:t.shopify)},i(1,"tracking page change register")})}setPlatform(e){b(this,Pe,e)}setOSVersion(e){b(this,Ae,e)}setOperatingSystem(e){b(this,Re,e)}setPreviousUrl(e){b(this,_e,e)}getPreviousUrl(){return l(this,_e)}getPlatform(){return l(this,Pe)}getOSVersion(){return l(this,Ae)}getOperatingSystem(){return l(this,Re)}get isShopify(){return l(this,fe)}updateSessionCreated(){}showAfterScrollAction({data:e,displayMethod:t,timeValueKey:r}){let n=()=>{var I;let o=window.innerHeight,s=document.documentElement.scrollHeight;window.scrollY/(s-o)*100>(((I=e[r])==null?void 0:I.value)||0)&&(window.removeEventListener("scroll",n),t(e))};window.addEventListener("scroll",n)}showDelayedAction({clearActionMethod:e,data:t,displayMethod:r,idKey:n,timeValueKey:o}){var m,I,y;let s=(m=t[o])==null?void 0:m.value;((I=t[o])==null?void 0:I.duration)==="min"&&(s=s*60);let h=t.initialTime-500+(s||0)*1e3-new Date().getTime();i(1,`Initial time: ${t.initialTime}`),i(1,`Time value: ${(y=t[o])==null?void 0:y.value}`),i(1,`Current time: ${new Date().getTime()}`),i(1,`Time difference: ${h}`),h>0?setTimeout(()=>{e(t[n]),r(t)},h):(e(t[n]),r(t))}storeActionInLocalStorage(e,t,r){var s;let n=JSON.parse(localStorage.getItem(t)||"{}"),o=(s=r in e&&e[r])!=null?s:"";o&&(n[o]=Le(Q({},e),{initialTime:new Date().getTime()}),localStorage.setItem(t,JSON.stringify(n)))}checkTTL(){return c(this,null,function*(){yield N("# check TTL",()=>c(this,null,function*(){if(l(this,fe))return;i(1,"Checking TTL"),F("Checking TTL",!0),k("Checking TTL Time",!0);let e=localStorage.getItem("ttl"),t=!1;t=a(this,p,Ne).call(this,e),e!==null&&t&&(localStorage.removeItem("ttl"),localStorage.removeItem("session"),localStorage.setItem("ttl",`${new Date().getTime()}`),yield a(this,p,bt).call(this),this.clearLocalStorage()),(!e||t||a(this,p,yr).call(this))&&(a(this,p,ht).call(this)&&a(this,p,ft).call(this),a(this,p,Et).call(this)&&(yield this.setIdentity()),(a(this,p,Ne).call(this)||a(this,p,pt).call(this))&&(yield a(this,p,Tr).call(this)),yield a(this,p,bt).call(this),(a(this,p,Ne).call(this)||a(this,p,mt).call(this))&&(yield a(this,p,wr).call(this))),k("Checking TTL Time",!1),F("Checking TTL",!1)}))})}clearLocalStorage(){localStorage.removeItem("action"),localStorage.removeItem("events"),localStorage.removeItem("attributes"),localStorage.removeItem("offlineEvents")}checkIfIdentityExists(e){return!1}storeIdentity(e){let t=this.encodeData(e);this.setCookie("mergn_identity",t,365)}removeIdentity(){document.cookie="mergn_identity=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;"}encodeData(e){let r=new TextEncoder().encode(e),n="";for(let o=0;o<r.length;o++)n+=String.fromCharCode(r[o]);return btoa(n)}decodeData(e){let t=atob(e),r=new Uint8Array(t.length);for(let o=0;o<t.length;o++)r[o]=t.charCodeAt(o);return new TextDecoder().decode(r)}getCookie(e){var n;let r=`; ${document.cookie}`.split(`; ${e}=`);return r.length===2&&((n=r.pop())==null?void 0:n.split(";").shift())||null}setCookie(e,t,r){let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${n.toUTCString()}`;document.cookie=`${e}=${t}; ${o}; path=/; secure; SameSite=Strict`}setIdentity(e){return c(this,null,function*(){i(1,"identity received: "),i(1,e);let t=this.checkIfIdentityExists(e);if(i(1,`local identity: ${t}`),typeof t=="boolean"&&t)return;let r=localStorage.getItem("uniqueIdentity");(!r||r==="undefined")&&(r=a(this,p,ft).call(this));let n={deviceId:r,os:this.getPlatform()};if(e)n.identity=e;else if(typeof t=="string")n.identity=t;else if(!e&&localStorage.getItem("customer"))return;try{i(1,"Setting identity to:"),i(1,n),this.storeIdentity(n.identity),n.currentCustomer=localStorage.getItem("customer")||"";let o=yield a(this,p,Sr).call(this,n);if(o!==void 0){localStorage.setItem("customer",o);try{W.pushMessageToSW({customer:o})}catch(s){}}}catch(o){throw this.removeIdentity(),new Error("Error setting identity")}})}getVersion(){return De}};he=new WeakMap,Pe=new WeakMap,Ae=new WeakMap,Re=new WeakMap,_e=new WeakMap,Ce=new WeakMap,fe=new WeakMap,je=new WeakMap,p=new WeakSet,fr=function(e){P.updateAPIKey(e),this.setPlatform(a(this,p,br).call(this)),this.setOSVersion(a(this,p,vr).call(this)),this.setOperatingSystem(navigator.userAgent)},br=function(){return hr.getInstance().getOperatingSystem()},vr=function(){let e=navigator.userAgent,t;return e.indexOf("Instagram")>-1?t="Instagram":e.indexOf("Facebook")>-1||e.indexOf("FBAV")>-1||e.indexOf("FBAN")>-1?t="Facebook":e.indexOf("Twitter")>-1?t="Twitter":e.indexOf("Snapchat")>-1?t="Snapchat":e.indexOf("LinkedIn")>-1?t="LinkedIn":e.indexOf("TikTok")>-1?t="TikTok":e.indexOf("Chrome")>-1&&e.indexOf("Edg")===-1?t="Google Chrome":e.indexOf("Safari")>-1&&e.indexOf("Chrome")===-1?t="Safari":e.indexOf("Firefox")>-1?t="Mozilla Firefox":e.indexOf("Edg")>-1?t="Microsoft Edge":e.indexOf("MSIE")>-1||e.indexOf("Trident")>-1?t="Internet Explorer":e.indexOf("Opera")>-1||e.indexOf("OPR")>-1?t="Opera":e.indexOf("Vivaldi")>-1?t="Vivaldi":e.indexOf("Brave")>-1?t="Brave":e.indexOf("SamsungBrowser")>-1?t="Samsung Internet":e.indexOf("UCBrowser")>-1?t="UC Browser":e.indexOf("QQBrowser")>-1?t="QQ Browser":e.indexOf("Baidu")>-1?t="Baidu Browser":e.indexOf("Sogou")>-1?t="Sogou Browser":t="Unknown",t},Ne=function(e){let t=null;e||(t=localStorage.getItem("ttl"));let r=e||t;if(r){let n=parseInt(r,10),o=Date.now(),s=new Date,h=Date.UTC(s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate(),0,0,0,0);return n<h?!0:o-n>18e5}return!0},pt=function(){return!localStorage.getItem("events")},mt=function(){return!localStorage.getItem("attributes")},Et=function(){return!localStorage.getItem("customer")},ht=function(){return!localStorage.getItem("uniqueIdentity")},Ir=function(){return!localStorage.getItem("session")},yr=function(){return a(this,p,pt).call(this)||a(this,p,mt).call(this)||a(this,p,Et).call(this)||a(this,p,ht).call(this)||a(this,p,Ir).call(this)},ft=function(){let e=localStorage.getItem("uniqueIdentity");return e||(e=crypto.randomUUID(),localStorage.setItem("uniqueIdentity",e)),e},bt=function(){return c(this,null,function*(){yield N("store session",()=>c(this,null,function*(){let e=localStorage.getItem("session");if(localStorage.getItem("ttl")||(localStorage.setItem("ttl",`${new Date().getTime()}`),localStorage.removeItem("session"),e=null),!e){e=crypto.randomUUID(),localStorage.setItem("session",e);let r=localStorage.getItem("ttl"),n=r?parseInt(r,10):"";yield f.recordEvent({eventName:"Web Session Started",eventProperties:[{eventProperty:"SESSION_ID",value:localStorage.getItem("session")},{eventProperty:"SESSION_CREATED",value:n?new Date(n).toISOString():new Date().toISOString()}]})}}),e=>{P.getBrandId()==="67"&&e.message!=="Failed to fetch"&&e.message})})},Sr=function(e){return c(this,null,function*(){try{return(yield P.retryPost(`${kt}${Mt}`,e)).data}catch(t){throw new Error("Error posting identity data")}})},Tr=function(){return c(this,null,function*(){yield f.storeEventsAndPropertiesInLocalStorage()})},wr=function(){return c(this,null,function*(){yield V.storeAttributeInLocalStorage()})},vt=function(e){return c(this,null,function*(){yield N("verify API key",()=>c(this,null,function*(){var t;try{let r=parseInt(localStorage.getItem("verifyTTL")||"0",10)||0;if(!r||r&&new Date().getTime()>r){let n=yield P.get("/brand");if(!(n!=null&&n.success))throw new Error(JSON.stringify(n));localStorage.setItem("verifyTTL",(new Date().getTime()+3e5).toString())}g.disableSDK=!1,g.isInitialized=!0}catch(r){if(P.getBrandId()==="67"&&!((t=r==null?void 0:r.message)!=null&&t.startsWith("get"))&&(r==null?void 0:r.message)!=="Error verifying API key"&&r.message!=="Failed to fetch"&&r.message,e&&e>=1){yield new Promise(n=>setTimeout(n,1500)),yield a(this,p,vt).call(this,e-1);return}throw g.disableSDK=!0,new Error("Error verifying API key")}}))})},ze=function(e){return c(this,null,function*(){let t=new TextEncoder().encode(e),r=yield crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(r)).map(s=>s.toString(16).padStart(2,"0")).join("")})},It=function(e){return c(this,null,function*(){var n;i(1,"Performing viewed web page event");let t=(n=window==null?void 0:window.location)==null?void 0:n.href;if(this.setPreviousUrl(t),e){setTimeout(()=>{N("fbq",()=>c(this,null,function*(){if(P.getBrandId()==="441"){let o=localStorage.getItem("customer");if(window.fbq&&o){i(1,"Assigning external_id to Mergn PageView Event");let s={external_id:yield a(this,p,ze).call(this,o)},h=V.getAttributeFromCookie("Email"),m=V.getAttributeFromCookie("Mobile");h&&(s.em=yield a(this,p,ze).call(this,h.toLowerCase())),m&&(s.ph=yield a(this,p,ze).call(this,m.toLowerCase())),window.fbq("dataProcessingOptions",[]),window.fbq("init","2793393330816842",s),window.fbq("trackCustom","Mergn PageView"),i(1,"Assigned external_id to Mergn PageView Event")}}}))},1500),t.includes("thank_you")&&(yield f.recordEvent({eventName:"Thank you page"}));return}f.recordDebugEvents({eventName:"pre_vwp"});let r=[];new URLSearchParams(new URL(window.location.href).search).forEach((o,s)=>c(this,null,function*(){Vt.has(s)&&r.push({eventProperty:s,value:o})})),yield f.recordEvent({eventName:"Viewed Webpage",eventProperties:[{eventProperty:"URL",value:window.location.pathname},...r]})})},Or=function(e){return c(this,null,function*(){var r;i(1,"Tracking page change");let t=(r=window==null?void 0:window.location)==null?void 0:r.href;(this.getPreviousUrl()===null||this.getPreviousUrl()===void 0||t!==this.getPreviousUrl())&&(yield a(this,p,It).call(this,e))})},Nr=function(e){return c(this,null,function*(){var r,n;let t=(r=window==null?void 0:window.location)==null?void 0:r.href;f.recordDebugEvents({eventName:"show_notification_error",eventProperties:[{eventProperty:"message",value:`${t!==this.getPreviousUrl()}:${t}:${this.getPreviousUrl()}`}]});try{yield a(this,p,It).call(this,e)}catch(o){let s=o&&o.message?(n=o==null?void 0:o.message)==null?void 0:n.substring(0,100):"undefined";yield f.recordDebugEvents({eventName:"vwp_error",eventProperties:[{eventProperty:"message",value:`${s}`}]})}})},E(ne,he);var gt=ne,u=gt.getInstance();var oe,be,O,Pr,Ar,Rr,Ye,St,Tt,_r,Cr,q=class q{constructor(){E(this,O);E(this,be,!1)}static getInstance(){var e;return l(q,oe)||(b(q,oe,new q),a(e=l(q,oe),O,Pr).call(e)),l(q,oe)}recordAttributeFromQueue(){return c(this,null,function*(){yield N("# recordAttributeFromQueue",()=>c(this,null,function*(){let e=JSON.parse(localStorage.getItem("preInitializedAttributes")||"[]");if(Array.isArray(e))for(let t of e){if(i(1,"Recording pre-initialized attributes"),i(1,t),yield this.checkIfAttributeExists(t.attributeName,t.attributeValue)){i(1,`Pre Initialized Attribute ${t.attributeName} already exists with value ${t.attributeValue}`),a(this,O,Ye).call(this,t.attributeName,t.attributeValue);return}yield a(this,O,St).call(this,{attributeName:t.attributeName,attributeValue:t.attributeValue})}}))})}recordAttribute(e,t,r){return c(this,null,function*(){if(yield this.checkIfAttributeExists(e,t)){i(1,`Attribute ${e} already exists with value ${t}`),a(this,O,Ye).call(this,e,t);return}a(this,O,Rr).call(this,e),a(this,O,Ar).call(this,e,t),g.isInitialized&&!g.loading&&(yield a(this,O,St).call(this,{attributeName:e,attributeProperties:r,attributeValue:t}))})}storeAttributeInLocalStorage(){return c(this,null,function*(){if(!localStorage.getItem("attributes")&&!l(this,be)){b(this,be,!0);try{let e=(yield this.fetchAttributeData()).data;e&&localStorage.setItem("attributes",JSON.stringify(e))}catch(e){throw new Error("Error storing attribute data in local storage")}finally{b(this,be,!1)}}})}fetchAttributeData(){return c(this,null,function*(){try{return yield P.get(`${Qe}`)}catch(e){throw new Error("Error fetching attribute data")}})}storeAttribute(e,t){return c(this,null,function*(){let r=u.getCookie("mergn_customer_attributes"),n;if(!r)n={};else{let s=u.decodeData(r);n=JSON.parse(s)}n[e]=t;let o=u.encodeData(JSON.stringify(n));u.setCookie("mergn_customer_attributes",o,365)})}removeAttribute(e){return c(this,null,function*(){let t=u.getCookie("mergn_customer_attributes"),r;if(!t)r={};else{let o=u.decodeData(t);r=JSON.parse(o)}delete r[e];let n=u.encodeData(JSON.stringify(r));u.setCookie("mergn_customer_attributes",n,365)})}checkIfAttributeExists(e,t){return c(this,null,function*(){let r=u.getCookie("mergn_customer_attributes");if(!r)return!1;let n=u.decodeData(r),o=JSON.parse(n);return Object.prototype.hasOwnProperty.call(o,e)?t!==void 0?o[e]===t:!0:!1})}getAttributeFromCookie(e){let t=u.getCookie("mergn_customer_attributes");if(!t)return"";let r=u.decodeData(t);return JSON.parse(r)[e]}};oe=new WeakMap,be=new WeakMap,O=new WeakSet,Pr=function(){return c(this,null,function*(){})},Ar=function(e,t){let r=JSON.parse(localStorage.getItem("preInitializedAttributes")||"[]");r.push({attributeName:e,attributeValue:t}),localStorage.setItem("preInitializedAttributes",JSON.stringify(r))},Rr=function(e){return c(this,null,function*(){let t=JSON.parse(localStorage.getItem("preInitializedAttributes")||"[]");for(let r of t)r.attributeName===e&&(t.splice(t.indexOf(r),1),localStorage.setItem("preInitializedAttributes",JSON.stringify(t)))})},Ye=function(e,t){return c(this,null,function*(){let r=JSON.parse(localStorage.getItem("preInitializedAttributes")||"[]");for(let n of r)JSON.stringify(n)===JSON.stringify({attributeName:e,attributeValue:t})&&(r.splice(r.indexOf(n),1),localStorage.setItem("preInitializedAttributes",JSON.stringify(r)))})},St=function(n){return c(this,arguments,function*({attributeName:e,attributeProperties:t,attributeValue:r}){yield N("# recordAttribute",()=>c(this,null,function*(){if(i(1,"Recording attribute"),F("Recording attribute",!0),k("Recording attribute Time",!0),i(1,"Attribute Payload:"),i(1,`Attribute Name: ${e} | Attribute Value: ${r}`),!r||r===""){i(2,"Attribute value is required");return}yield u.checkTTL(),yield a(this,O,_r).call(this);let o=JSON.parse(localStorage.getItem("attributes")||"{}"),s=t?a(this,O,Tt).call(this,o,e,t):a(this,O,Tt).call(this,o,e);if(typeof s=="string"){i(2,s);return}o[e].should_set_identity&&(yield u.setIdentity(typeof r=="string"?r:JSON.stringify(r))),u.updateSessionCreated();let{id:h}=o[e],m={attributeId:h,attributeProperties:s,customerId:localStorage.getItem("customer")||"",deviceId:localStorage.getItem("uniqueIdentity")||"",sdkVersion:u.getVersion(),should_set_identity:o[e].should_set_identity,value:r};yield a(this,O,Cr).call(this,m,e,r),a(this,O,Ye).call(this,e,r),k("Recording attribute Time",!1),F("Recording attribute",!1)}))})},Tt=function(e,t,r){if(!Object.prototype.hasOwnProperty.call(e,t))return`Attribute ${t} is not valid.`;if(!r)return[];let n=e[t];if(!(n!=null&&n.attributeProperty))return`Attribute ${t} does not have a valid attributeProperty.`;let o=r.filter(({attributeProperty:s})=>!Object.prototype.hasOwnProperty.call(n.attributeProperty,s)).map(({attributeProperty:s})=>s);return o.length>0?`Attribute ${t} has invalid attributeProperties: ${o.join(", ")}.`:r.map(({attributeProperty:s,value:h})=>({attributePropertyId:n.attributeProperty[s].id,value:h}))},_r=function(){return c(this,null,function*(){localStorage.getItem("attributes")||(yield this.storeAttributeInLocalStorage())})},Cr=function(e,t,r){return c(this,null,function*(){try{return yield this.storeAttribute(t,r),yield P.post(`${Qe}${Ut}`,e)}catch(n){throw yield this.removeAttribute(t),new Error("Error posting attribute record")}})},E(q,oe);var yt=q,V=yt.getInstance();var ve,se=class se{constructor(){}static getInstance(){return l(se,ve)||b(se,ve,new se),l(se,ve)}init(e,t){e==="2dfd592m441rgn4cce63a9b051c62d66d9d54d46eae8a831e508559007d299a98914d62"||e==="6f4f288m471rgn87fe9b0386aab2926fa14668bb051d66753f4b2e0555486d290958095"||setTimeout(()=>{N("init",()=>c(this,null,function*(){yield N("log level check",()=>c(this,null,function*(){i(1,"Log level check");let r=localStorage.getItem("mergn_debug_level");r&&(g.debugLevel=parseInt(r,10))})),i(1,"Initializing Mergn SDK"),yield u.init(e,t),!g.disableSDK&&(f.recordDebugEvents({eventName:"mergn_init"}),i(1,"Mergn SDK Initialized"),window.addEventListener("online",()=>c(this,null,function*(){g.offline=!1;let r=JSON.parse(localStorage.getItem("offlineEvents")||"[]");Array.isArray(r)&&(yield f.postEventRecord({customerId:localStorage.getItem("customer")||"",deviceId:localStorage.getItem("uniqueIdentity")||"",events:r}),localStorage.removeItem("offlineEvents")),u.checkTTL(),u.updateSessionCreated()})),window.addEventListener("offline",()=>{g.offline=!0}),window.addEventListener("load",()=>{z.loadPopupEventActionInLocalStorage(),W.loadWebPushActionInLocalStorage()}))}))})}setDebugLevel(e,t){if(g.disableSDK||document.location.href==="https://www.broadwaypizza.com.pk/")return;let r=localStorage.getItem("mergn_debug_level");if(r){g.debugLevel=parseInt(r,10);try{W.pushMessageToSW({debugLevel:e})}catch(n){}return}if(!(e in M)){console.error(`Debug level must be according to:
74
- NONE: 0, INFO: 1, ERROR: 2, ALL: 3`);return}g.recordDebugEventsToggle=t||{},g.debugLevel=e;try{W.pushMessageToSW({debugLevel:e})}catch(n){}}recordAttribute(e,t){return c(this,null,function*(){return i(1,"attributeName"),i(1,e),i(1,"attributeValue"),i(1,t),new Promise((r,n)=>{setTimeout(()=>c(this,null,function*(){try{yield N("recordAttribute",()=>c(this,null,function*(){let o="";return Array.isArray(t)?o=JSON.stringify(t):typeof t=="number"?o=`${t}`:o=t,i(1,"Recording attribute"),i(1,`Attribute Name: ${e}, Attribute Value: ${o}`),new Promise((s,h)=>{setTimeout(()=>c(this,null,function*(){try{yield V.recordAttribute(e,o),s()}catch(m){h(m)}}))})})),r()}catch(o){n(o)}}))})})}login(e){return c(this,null,function*(){return i(1,"identity to login:"),i(1,e),new Promise((t,r)=>{setTimeout(()=>c(this,null,function*(){try{yield N("login",()=>c(this,null,function*(){i(1,"Logging in"),i(1,`Identity: ${e}`),g.loading=!0,yield u.setIdentity(e)})),t()}catch(n){r(n)}finally{g.loading=!1,yield f.recordEventsFromQueue(),yield V.recordAttributeFromQueue()}}))})})}logout(){setTimeout(()=>{N("logout",()=>c(this,null,function*(){i(1,"Logging out"),u.clearLocalStorage()}))})}recordEvent(e,t){return c(this,null,function*(){return new Promise((r,n)=>{setTimeout(()=>c(this,null,function*(){try{yield N("record event",()=>c(this,null,function*(){if(i(1,"Recording event"),i(1,`Event Payload:
75
- ${{eventName:e,eventProperties:t}}`),!e||typeof e!="string"){i(2,"Event name is required and must be a string");return}return new Promise((o,s)=>{setTimeout(()=>c(this,null,function*(){try{yield f.recordEvent({eventName:e,eventProperties:t}),o()}catch(h){s(h)}}))})})),r()}catch(o){n(o)}}))})})}getVersion(){return De}};ve=new WeakMap,E(se,ve);var wt=se,Ot=wt.getInstance();typeof window!="undefined"&&(window.mergn=Ot);var vo=Ot;})();
1
+ 'use strict';function _0x3d2f(_0x4d15b9,_0x12e0a4){const _0x48b4a8=_0x48b4();return _0x3d2f=function(_0x3d2f44,_0x3fe2db){_0x3d2f44=_0x3d2f44-0x19b;let _0x413aca=_0x48b4a8[_0x3d2f44];return _0x413aca;},_0x3d2f(_0x4d15b9,_0x12e0a4);}(function(_0x31abad,_0x55765d){const _0x4cb3d3=_0x3d2f,_0x26c33b=_0x31abad();while(!![]){try{const _0x378135=-parseInt(_0x4cb3d3(0x238))/0x1*(parseInt(_0x4cb3d3(0x34d))/0x2)+parseInt(_0x4cb3d3(0x355))/0x3*(-parseInt(_0x4cb3d3(0x2e8))/0x4)+-parseInt(_0x4cb3d3(0x1d0))/0x5*(-parseInt(_0x4cb3d3(0x3d7))/0x6)+-parseInt(_0x4cb3d3(0x38c))/0x7*(parseInt(_0x4cb3d3(0x1ef))/0x8)+parseInt(_0x4cb3d3(0x301))/0x9*(parseInt(_0x4cb3d3(0x3da))/0xa)+parseInt(_0x4cb3d3(0x3b2))/0xb*(-parseInt(_0x4cb3d3(0x308))/0xc)+parseInt(_0x4cb3d3(0x38b))/0xd;if(_0x378135===_0x55765d)break;else _0x26c33b['push'](_0x26c33b['shift']());}catch(_0x2b8c26){_0x26c33b['push'](_0x26c33b['shift']());}}}(_0x48b4,0x80284));((()=>{const _0x24c78c=_0x3d2f;var _0x27c8df=Object[_0x24c78c(0x388)],_0x19fe0c=Object[_0x24c78c(0x1b5)],_0x352f74=Object['getOwnPropertyDescriptors'],_0x9e2e93=Object['getOwnPropertySymbols'],_0x4222d6=Object[_0x24c78c(0x36c)][_0x24c78c(0x26c)],_0x2bd8bb=Object[_0x24c78c(0x36c)]['propertyIsEnumerable'],_0x4dbc6b=_0x1628a8=>{throw TypeError(_0x1628a8);},_0x2baa21=(_0x5ee87e,_0x17a0f9,_0xfd0580)=>_0x17a0f9 in _0x5ee87e?_0x27c8df(_0x5ee87e,_0x17a0f9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xfd0580}):_0x5ee87e[_0x17a0f9]=_0xfd0580,_0x2dc0ac=(_0x57adf0,_0x26de3a)=>{const _0x8d5f8b=_0x24c78c;for(var _0x5e5023 in _0x26de3a||(_0x26de3a={}))_0x4222d6[_0x8d5f8b(0x1dc)](_0x26de3a,_0x5e5023)&&_0x2baa21(_0x57adf0,_0x5e5023,_0x26de3a[_0x5e5023]);if(_0x9e2e93){for(var _0x5e5023 of _0x9e2e93(_0x26de3a))_0x2bd8bb['call'](_0x26de3a,_0x5e5023)&&_0x2baa21(_0x57adf0,_0x5e5023,_0x26de3a[_0x5e5023]);}return _0x57adf0;},_0x4086e0=(_0x4bdb4c,_0x17466d)=>_0x19fe0c(_0x4bdb4c,_0x352f74(_0x17466d)),_0x2bef39=(_0x55d793,_0x2141a5,_0x3e5317)=>_0x2141a5[_0x24c78c(0x332)](_0x55d793)||_0x4dbc6b(_0x24c78c(0x42c)+_0x3e5317),_0x101b70=(_0x5a9f29,_0x35da99,_0x17d715)=>(_0x2bef39(_0x5a9f29,_0x35da99,_0x24c78c(0x23e)),_0x17d715?_0x17d715[_0x24c78c(0x1dc)](_0x5a9f29):_0x35da99[_0x24c78c(0x3c0)](_0x5a9f29)),_0x5e7b66=(_0x497354,_0x45f5a0,_0x1b6990)=>_0x45f5a0[_0x24c78c(0x332)](_0x497354)?_0x4dbc6b(_0x24c78c(0x230)):_0x45f5a0 instanceof WeakSet?_0x45f5a0[_0x24c78c(0x21e)](_0x497354):_0x45f5a0[_0x24c78c(0x209)](_0x497354,_0x1b6990),_0x9fc6c6=(_0x4aa6c7,_0x39904a,_0x4ecbd0,_0x5c70c5)=>(_0x2bef39(_0x4aa6c7,_0x39904a,_0x24c78c(0x1b9)),_0x5c70c5?_0x5c70c5[_0x24c78c(0x1dc)](_0x4aa6c7,_0x4ecbd0):_0x39904a[_0x24c78c(0x209)](_0x4aa6c7,_0x4ecbd0),_0x4ecbd0),_0x3c2dae=(_0x5266ff,_0x42af7b,_0x3cebd8)=>(_0x2bef39(_0x5266ff,_0x42af7b,_0x24c78c(0x1a9)),_0x3cebd8),_0x6ae56d=(_0xbff604,_0x5717f6,_0x574098)=>new Promise((_0x13de47,_0x459ceb)=>{const _0x3a738f=_0x24c78c;var _0x39f76a=_0x13ff3e=>{const _0x532eb5=_0x3d2f;try{_0x2c73f8(_0x574098[_0x532eb5(0x262)](_0x13ff3e));}catch(_0x8e2974){_0x459ceb(_0x8e2974);}},_0x1cf07d=_0x30200e=>{try{_0x2c73f8(_0x574098['throw'](_0x30200e));}catch(_0x4fe759){_0x459ceb(_0x4fe759);}},_0x2c73f8=_0x3cd153=>_0x3cd153[_0x3a738f(0x29e)]?_0x13de47(_0x3cd153['value']):Promise[_0x3a738f(0x1bd)](_0x3cd153[_0x3a738f(0x3f2)])[_0x3a738f(0x19e)](_0x39f76a,_0x1cf07d);_0x2c73f8((_0x574098=_0x574098[_0x3a738f(0x2a7)](_0xbff604,_0x5717f6))[_0x3a738f(0x262)]());}),_0x39e5f3='1.0.249',_0x12e171=_0x24c78c(0x250),_0x387628=_0x24c78c(0x2e0),_0x3b96ae=_0x24c78c(0x3ea),_0x196b92='/event',_0x59773f='/record-event',_0x1602f2='/customer',_0xa02385='/device/add-device-token',_0x5dbddf=_0x24c78c(0x349),_0xcf8b1a=_0x24c78c(0x3ac),_0x4836ec='/brand/get-time',_0x31c366=class extends Error{constructor(_0x3af07a){const _0x13dd2f=_0x24c78c;super(_0x3af07a),this[_0x13dd2f(0x3ae)]='MergnError';}};_0x31c366['disableSDK']=!0x1,_0x31c366[_0x24c78c(0x3a3)]=!navigator[_0x24c78c(0x30b)],_0x31c366['debugLevel']=0x0,_0x31c366['isInitialized']=!0x1,_0x31c366[_0x24c78c(0x305)]=!0x1;var _0xe5b06f=(_0x36c8b2,_0x358930)=>{const _0xf0068d=_0x24c78c;_0x358930 instanceof _0x31c366?_0x473979(0x2,_0xf0068d(0x2f5)+_0x36c8b2+_0xf0068d(0x2a8)+_0x358930[_0xf0068d(0x366)]):_0x358930 instanceof Error?_0x473979(0x2,'OriginateFrom:\x20'+_0x36c8b2+_0xf0068d(0x318)+_0x358930['message']):_0x473979(0x2,_0xf0068d(0x2f5)+_0x36c8b2+_0xf0068d(0x318)+String(_0x358930));},_0x4246e0=(_0x2de626,_0x122e93,_0x432c81,_0x4f7676=!0x1)=>_0x6ae56d(void 0x0,null,function*(){const _0xffebb5=_0x24c78c;try{_0x13ac33(_0x2de626,!0x0),_0xc47fc2(_0x2de626+'\x20Time',!0x0);try{if(_0x2de626!==_0xffebb5(0x386)){if(_0x2de626!=='verify\x20API\x20key'&&_0x31c366[_0xffebb5(0x288)])throw new _0x31c366(_0xffebb5(0x25b));if(_0x2de626!==_0xffebb5(0x298)&&_0x31c366[_0xffebb5(0x3a3)])throw new _0x31c366('Mergn\x20is\x20offline!');if(_0x2de626!==_0xffebb5(0x3cc)&&_0x2de626!==_0xffebb5(0x386)&&_0x2de626!=='record\x20event'&&_0x2de626!==_0xffebb5(0x293)&&_0x2de626!=='log\x20level\x20check'&&_0x2de626!=='login'&&!_0x31c366[_0xffebb5(0x1a3)])throw new _0x31c366(_0xffebb5(0x351));if(_0x2de626!==_0xffebb5(0x3dd)&&_0x2de626!==_0xffebb5(0x298)&&_0x2de626!==_0xffebb5(0x293)&&_0x31c366[_0xffebb5(0x305)])throw new _0x31c366(_0xffebb5(0x33f));}return yield _0x122e93();}catch(_0x534242){return _0x432c81?_0x432c81(_0x534242):(_0x31c366[_0xffebb5(0x407)]===0x2||_0x31c366[_0xffebb5(0x407)]===0x3)&&_0xe5b06f(_0x2de626,_0x534242),null;}finally{_0xc47fc2(_0x2de626+_0xffebb5(0x287),!0x1),_0x13ac33(_0x2de626,!0x1);}}catch(_0x4fe837){return null;}}),_0x198dbf=(_0x4f19ab=>(_0x4f19ab[_0x4f19ab[_0x24c78c(0x1d2)]=0x0]=_0x24c78c(0x1d2),_0x4f19ab[_0x4f19ab[_0x24c78c(0x385)]=0x1]=_0x24c78c(0x385),_0x4f19ab[_0x4f19ab[_0x24c78c(0x39d)]=0x2]=_0x24c78c(0x39d),_0x4f19ab[_0x4f19ab[_0x24c78c(0x2ed)]=0x3]=_0x24c78c(0x2ed),_0x4f19ab[_0x4f19ab['DEBUG']=0x4]='DEBUG',_0x4f19ab))(_0x198dbf||{}),_0x473979=(_0x3fdf58,_0x2ab2e0)=>{const _0x404f45=_0x24c78c;_0x31c366[_0x404f45(0x407)]!==0x0&&(_0x31c366[_0x404f45(0x407)]>=0x3?_0x3fdf58===0x1?console[_0x404f45(0x3bf)](_0x404f45(0x3b5)+new Date()[_0x404f45(0x1f6)](),_0x2ab2e0):_0x3fdf58===0x2&&console[_0x404f45(0x392)](_0x404f45(0x33c)+new Date()['toISOString'](),_0x2ab2e0):_0x31c366[_0x404f45(0x407)]===0x1&&_0x3fdf58===0x1?console[_0x404f45(0x3bf)](_0x404f45(0x3b5)+new Date()['toISOString'](),_0x2ab2e0):_0x31c366[_0x404f45(0x407)]===0x2&&_0x3fdf58===0x2&&console[_0x404f45(0x392)](_0x404f45(0x33c)+new Date()[_0x404f45(0x1f6)](),_0x2ab2e0));},_0xc47fc2=(_0x10e7f2,_0x1db1e1)=>{const _0x1461a0=_0x24c78c;_0x31c366[_0x1461a0(0x407)]!==0x0&&(_0x1db1e1?console[_0x1461a0(0x3ab)](_0x10e7f2):console[_0x1461a0(0x406)](_0x10e7f2));},_0x13ac33=(_0x2ab3d6,_0x561f70)=>{const _0x5bdd34=_0x24c78c;_0x31c366['debugLevel']!==0x0&&(_0x561f70?console[_0x5bdd34(0x36d)](_0x2ab3d6):console[_0x5bdd34(0x36b)]());},_0x207e91,_0xa838e1,_0x4056ca,_0x346753,_0x210561=class _0x8bdbd1{constructor(){_0x5e7b66(this,_0xa838e1);}[_0x24c78c(0x207)](_0x4daf7d,_0x528c69=0x3,_0x17f534=0x3e8){return new Promise((_0x41955c,_0x345845)=>{let _0x55f208=_0x6f4cd6=>_0x6ae56d(this,null,function*(){try{let _0x45264d=yield _0x4daf7d();_0x41955c(_0x45264d);}catch(_0x3f86e0){_0x6f4cd6===0x0?_0x345845(_0x3f86e0):setTimeout(()=>{_0x55f208(_0x6f4cd6-0x1);},_0x17f534);}});_0x55f208(_0x528c69);});}static[_0x24c78c(0x432)](){return _0x101b70(_0x8bdbd1,_0x207e91)||_0x9fc6c6(_0x8bdbd1,_0x207e91,new _0x8bdbd1()),_0x101b70(_0x8bdbd1,_0x207e91);}['setApiURL'](_0x5cbf1c){const _0x5eb846=_0x24c78c;_0x8bdbd1[_0x5eb846(0x3bb)]=_0x5cbf1c;}[_0x24c78c(0x2e5)](_0x525e3d){const _0x555238=_0x24c78c;_0x8bdbd1[_0x555238(0x3eb)]=_0x525e3d;let _0x2dcf80=_0x525e3d,_0x45d0a1=/m(\d+)rgn/,_0x3fb8bf=_0x2dcf80[_0x555238(0x2fc)](_0x45d0a1);_0x3fb8bf&&(_0x8bdbd1['brandId']=_0x3fb8bf[0x1]);}[_0x24c78c(0x1a4)](){const _0x22e152=_0x24c78c;return _0x8bdbd1[_0x22e152(0x3eb)];}['getBrandId'](){return _0x8bdbd1['brandId'];}[_0x24c78c(0x3c0)](_0x4f0b15){return _0x6ae56d(this,null,function*(){const _0x3480b1=_0x3d2f;let _0x5edf84=_0x3c2dae(this,_0xa838e1,_0x346753)[_0x3480b1(0x1dc)](this,_0x8bdbd1[_0x3480b1(0x3eb)]);try{let _0x31a8db=yield fetch(_0x3c2dae(this,_0xa838e1,_0x4056ca)[_0x3480b1(0x1dc)](this)+_0x4f0b15,{'headers':{'Authorization':_0x5edf84,'Content-Type':'application/json'}});if(!_0x31a8db['ok'])throw new Error(_0x5edf84+'\x20-\x20'+JSON['stringify'](yield _0x31a8db[_0x3480b1(0x211)]()));return _0x31a8db['json']();}catch(_0x5beed3){return Promise[_0x3480b1(0x1ba)](_0x5beed3);}});}[_0x24c78c(0x40f)](_0x1895e9,_0x213f14,_0x3410c6){return _0x6ae56d(this,null,function*(){const _0x31423e=_0x3d2f;let _0x39b6d9=_0x3c2dae(this,_0xa838e1,_0x346753)['call'](this,_0x8bdbd1[_0x31423e(0x3eb)]);try{return(yield fetch(_0x3c2dae(this,_0xa838e1,_0x4056ca)['call'](this)+_0x1895e9,{'body':JSON['stringify'](_0x213f14||{}),'headers':{'Authorization':_0x39b6d9,'Content-Type':_0x31423e(0x22d)},'method':_0x31423e(0x299),'signal':_0x3410c6}))[_0x31423e(0x211)]();}catch(_0x488d8c){return Promise[_0x31423e(0x1ba)](_0x488d8c);}});}[_0x24c78c(0x22b)](_0x25454f,_0x16d48c){return _0x6ae56d(this,null,function*(){const _0x1fd29e=_0x3d2f;return(yield fetch(_0x3c2dae(this,_0xa838e1,_0x4056ca)[_0x1fd29e(0x1dc)](this)+_0x25454f,{'body':JSON[_0x1fd29e(0x1f9)](_0x16d48c||{}),'headers':{'Authorization':_0x3c2dae(this,_0xa838e1,_0x346753)[_0x1fd29e(0x1dc)](this,_0x8bdbd1[_0x1fd29e(0x3eb)]),'Content-Type':_0x1fd29e(0x22d)},'method':_0x1fd29e(0x257)}))[_0x1fd29e(0x211)]();});}[_0x24c78c(0x269)](){return _0x6ae56d(this,null,function*(){const _0x476a48=_0x3d2f;try{let _0x475144=(yield(yield fetch(_0x3c2dae(this,_0xa838e1,_0x4056ca)[_0x476a48(0x1dc)](this)+_0x4836ec))[_0x476a48(0x211)]())[_0x476a48(0x3f7)];_0x8bdbd1['UTCDate']=new Date(_0x475144),_0x8bdbd1[_0x476a48(0x251)]=new Date();}catch(_0x503fe8){_0x473979(0x2,'Failed\x20to\x20sync\x20real-world\x20time');}});}[_0x24c78c(0x3e3)](){const _0x1a2e6f=_0x24c78c;if(!_0x8bdbd1['UTCDate']||!_0x8bdbd1['lastSyncTime'])return _0x473979(0x2,_0x1a2e6f(0x256)),new Date();let _0x21054f=new Date()['getTime']()-_0x8bdbd1['lastSyncTime'][_0x1a2e6f(0x22e)]();return new Date(_0x8bdbd1[_0x1a2e6f(0x425)]['getTime']()+_0x21054f);}[_0x24c78c(0x2f3)](_0x2bc955,_0x26ae32,_0x17f835){return _0x6ae56d(this,null,function*(){const _0x248198=_0x3d2f;return this[_0x248198(0x207)](()=>this['post'](_0x2bc955,_0x26ae32,_0x17f835));});}};_0x207e91=new WeakMap(),_0xa838e1=new WeakSet(),_0x4056ca=function(){const _0x4c1b2b=_0x24c78c;return _0x210561[_0x4c1b2b(0x3bb)];},_0x346753=function(_0x54d3dd){const _0x2d11f0=_0x24c78c;return btoa(_0x54d3dd+':'+new Date()[_0x2d11f0(0x22e)]());},_0x5e7b66(_0x210561,_0x207e91),_0x210561['API_URL']=_0x12e171;var _0x1bc54e=_0x210561,_0x12a14a=_0x1bc54e['getInstance'](),_0x52a722=(_0x8c123d=>(_0x8c123d[_0x24c78c(0x30e)]=_0x24c78c(0x1e1),_0x8c123d[_0x24c78c(0x3f9)]=_0x24c78c(0x24e),_0x8c123d[_0x24c78c(0x20b)]=_0x24c78c(0x264),_0x8c123d[_0x24c78c(0x2f8)]=_0x24c78c(0x1c3),_0x8c123d['UTM_CONTENT']='utm_content',_0x8c123d['GAD_SOURCE']=_0x24c78c(0x2d3),_0x8c123d[_0x24c78c(0x1a1)]=_0x24c78c(0x40b),_0x8c123d[_0x24c78c(0x1b7)]='fbclid',_0x8c123d))(_0x52a722||{}),_0x5084e6=new Set(Object[_0x24c78c(0x35d)](_0x52a722)),_0x1413da=_0x24c78c(0x3b9),_0x2628d7='Content\x20Card\x20Action',_0x568e31,_0x2063b3,_0x349743,_0x1a5699,_0x51ba54,_0x3e6cd,_0x31e41f,_0x1bfa5e,_0x53d346,_0xd06711,_0x53e594,_0x2549ac,_0x59a81c,_0x722cdb,_0x7bc888,_0x24196d,_0x6fa32c,_0x57ef1f,_0x450164,_0x563e24,_0x3ab0ba=class _0x5195c9{constructor(){const _0x795ea7=_0x24c78c;_0x5e7b66(this,_0x1bfa5e),this[_0x795ea7(0x311)]=null,this[_0x795ea7(0x210)]=_0x3ce25a=>{const _0x167651=_0x795ea7;_0x473979(0x1,_0x167651(0x3cf)),navigator[_0x167651(0x1d7)][_0x167651(0x40c)]()[_0x167651(0x19e)](_0x152252=>{const _0x5ab8ab=_0x167651;_0x473979(0x1,_0x5ab8ab(0x24d)),_0x152252[_0x5ab8ab(0x1bc)](_0x1efb37=>{const _0x561e89=_0x5ab8ab;var _0x16f5be;_0x1efb37!=null&&_0x1efb37['active']&&_0x1efb37['active']['scriptURL'][_0x561e89(0x34c)](_0x101b70(_0x5195c9,_0x31e41f)||'mergn-sw.js')&&(_0x473979(0x1,'Service\x20Worker\x20ready'),(_0x16f5be=_0x1efb37[_0x561e89(0x359)])==null||_0x16f5be[_0x561e89(0x278)](JSON['stringify'](_0x3ce25a)));});})[_0x167651(0x3c8)](_0x1c564f=>{const _0x120a19=_0x167651;_0x473979(0x2,_0x120a19(0x1f1)+_0x1c564f['message']);});},this[_0x795ea7(0x408)]=()=>{const _0x2b4ac1=_0x795ea7;_0x1a12dc['loadActionInLocalStorage']({'actionCondition':()=>!0x0,'actionMethod':_0x6f9298=>_0x3c2dae(this,_0x1bfa5e,_0x7bc888)[_0x2b4ac1(0x1dc)](this,Number(_0x6f9298[_0x2b4ac1(0x223)])),'localStorageKey':'web_push_action'});},_0x5e7b66(this,_0x722cdb,()=>{const _0x3b92af=_0x795ea7;_0x1a12dc['storeActionInLocalStorageInternal'](_0x3b92af(0x2c2));}),_0x5e7b66(this,_0x450164,_0x4ce9d4=>{const _0x4d12e7=_0x795ea7;_0x1a12dc[_0x4d12e7(0x242)]({'id':_0x4ce9d4,'localStorageKey':_0x4d12e7(0x2c2)});});}static[_0x24c78c(0x432)](){return _0x101b70(_0x5195c9,_0x568e31)||_0x9fc6c6(_0x5195c9,_0x568e31,new _0x5195c9()),_0x101b70(_0x5195c9,_0x568e31);}[_0x24c78c(0x3cc)](_0xfd6ece,_0x7a699f,_0x10b66f){return _0x6ae56d(this,null,function*(){const _0xb1a17c=_0x3d2f;var _0x532e00;if(_0x473979(0x1,'Initializing\x20Notification\x20Service'),_0x33c4a0[_0xb1a17c(0x2cc)]({'eventName':_0xb1a17c(0x3cc),'eventProperties':[{'eventProperty':'service_worker','value':_0xb1a17c(0x1d7)in navigator},{'eventProperty':'push_manager','value':_0xb1a17c(0x1c9)in window}]}),_0xb1a17c(0x1d7)in navigator&&_0xb1a17c(0x1c9)in window){_0x473979(0x1,'Service\x20Worker\x20and\x20Push\x20Manager\x20are\x20supported');try{_0x33c4a0[_0xb1a17c(0x2cc)]({'eventName':'init_condition'}),_0x473979(0x1,'isExtensionSW:\x20'+_0x10b66f),_0x9fc6c6(_0x5195c9,_0x31e41f,_0x10b66f?window[_0xb1a17c(0x324)]+'/apps/mergn/mergn-sw.js':_0x7a699f||_0xb1a17c(0x1d1)),_0x473979(0x1,_0xb1a17c(0x3e7)+_0x101b70(_0x5195c9,_0x31e41f)),yield navigator[_0xb1a17c(0x1d7)][_0xb1a17c(0x1db)](_0x101b70(_0x5195c9,_0x31e41f))[_0xb1a17c(0x19e)](_0x4d9568=>{const _0x26636b=_0xb1a17c;_0x9fc6c6(_0x5195c9,_0x2063b3,_0x4d9568),setInterval(()=>{const _0x148e5a=_0x3d2f;_0x4d9568[_0x148e5a(0x23f)]();},0x3e8*0x3c*0x3c),_0x4d9568['addEventListener'](_0x26636b(0x2bc),()=>{const _0x2ff778=_0x26636b;let _0x17753b=_0x4d9568[_0x2ff778(0x40e)];_0x17753b&&_0x17753b[_0x2ff778(0x1cd)](_0x2ff778(0x28e),()=>{const _0x4cffc2=_0x2ff778;_0x17753b[_0x4cffc2(0x2bf)]===_0x4cffc2(0x41c)&&console[_0x4cffc2(0x23b)]('New\x20service\x20worker\x20installed');});});}),_0x473979(0x1,'Service\x20Worker\x20registered'),_0x473979(0x1,_0xb1a17c(0x2ad)),setTimeout(()=>{const _0xbb0f4a=_0xb1a17c;this['pushMessageToSW']({'customer':localStorage[_0xbb0f4a(0x225)](_0xbb0f4a(0x3ec))||'','events':_0x33c4a0[_0xbb0f4a(0x217)](),'API_KEY':_0x12a14a['getAPIKey'](),'debugLevel':_0x31c366[_0xbb0f4a(0x407)],'device_id':localStorage[_0xbb0f4a(0x225)]('uniqueIdentity')||'','operatingSystem':_0x1a12dc['getOperatingSystem'](),'osVersion':_0x1a12dc['getOSVersion'](),'Platform':_0x1a12dc[_0xbb0f4a(0x3a0)]()});},0x3e8),_0x9fc6c6(_0x5195c9,_0x51ba54,!0x0);let _0x33bf64=_0x3c2dae(this,_0x1bfa5e,_0x24196d)['call'](this),_0x2164d8=Object[_0xb1a17c(0x3ff)](_0x33bf64||{});if(_0x2164d8['length']&&_0x3c2dae(this,_0x1bfa5e,_0x7bc888)[_0xb1a17c(0x1dc)](this,Number(_0x2164d8[0x0])),!_0xfd6ece)return;let _0x4e23f2=yield(_0x532e00=_0x101b70(_0x5195c9,_0x2063b3))==null?void 0x0:_0x532e00[_0xb1a17c(0x2e4)]['getSubscription']();_0x473979(0x1,_0xb1a17c(0x2da)),_0x101b70(_0x5195c9,_0x2063b3)&&(_0x473979(0x1,'Service\x20Worker\x20registration\x20is\x20available'),_0x101b70(_0x5195c9,_0x2063b3)[_0xb1a17c(0x23f)]()),_0x4e23f2?(_0x473979(0x1,_0xb1a17c(0x220)),_0x33c4a0[_0xb1a17c(0x2cc)]({'eventName':_0xb1a17c(0x350)}),yield _0x3c2dae(this,_0x1bfa5e,_0x2549ac)[_0xb1a17c(0x1dc)](this),_0x9fc6c6(_0x5195c9,_0x349743,!0x0)):(_0x473979(0x1,'No\x20existing\x20subscription\x20found'),yield _0x3c2dae(this,_0x1bfa5e,_0x53d346)[_0xb1a17c(0x1dc)](this,_0x101b70(_0x5195c9,_0x3e6cd)||void 0x0));}catch(_0x6974d3){let _0x132031=_0x6974d3&&_0x6974d3['message']?_0x6974d3[_0xb1a17c(0x366)][_0xb1a17c(0x360)](0x0,0x64):'undefined';yield _0x33c4a0['recordDebugEvents']({'eventName':_0xb1a17c(0x33b),'eventProperties':[{'eventProperty':_0xb1a17c(0x366),'value':''+_0x132031}]}),_0x473979(0x2,_0xb1a17c(0x247)),_0x473979(0x2,_0x132031);}}else yield _0x33c4a0[_0xb1a17c(0x315)]({'eventName':_0xb1a17c(0x1c1),'eventProperties':[{'eventProperty':'type','value':'notification\x20instance\x20not\x20found'}]});});}[_0x24c78c(0x2c9)](_0x5e3d95){const _0x1b9db1=_0x24c78c;if(!_0x101b70(_0x5195c9,_0x51ba54)){_0x9fc6c6(_0x5195c9,_0x3e6cd,_0x5e3d95),_0x33c4a0[_0x1b9db1(0x2cc)]({'eventName':_0x1b9db1(0x401)}),_0x473979(0x2,_0x1b9db1(0x364));return;}_0x4246e0(_0x1b9db1(0x2c9),()=>_0x6ae56d(this,null,function*(){const _0x48ab=_0x1b9db1;var _0x3426cd;let _0x436a48=JSON[_0x48ab(0x420)](localStorage['getItem']('web_push_action')||'{}');if(_0x436a48){for(let _0x4937a6 in _0x436a48)if(((_0x3426cd=_0x436a48[_0x4937a6])==null?void 0x0:_0x3426cd[_0x48ab(0x35a)])===_0x5e3d95[_0x48ab(0x35a)]){_0x473979(0x1,_0x48ab(0x398)+_0x5e3d95['type']+_0x48ab(0x3e5));return;}}_0x3c2dae(this,_0x1bfa5e,_0x59a81c)[_0x48ab(0x1dc)](this,_0x5e3d95),_0x101b70(this,_0x722cdb)[_0x48ab(0x1dc)](this),_0x3c2dae(this,_0x1bfa5e,_0x7bc888)[_0x48ab(0x1dc)](this,_0x5e3d95['web_optin_instance_id']);}));}};_0x568e31=new WeakMap(),_0x2063b3=new WeakMap(),_0x349743=new WeakMap(),_0x1a5699=new WeakMap(),_0x51ba54=new WeakMap(),_0x3e6cd=new WeakMap(),_0x31e41f=new WeakMap(),_0x1bfa5e=new WeakSet(),_0x53d346=function(_0x286223){return _0x6ae56d(this,null,function*(){const _0x440819=_0x3d2f;_0x473979(0x1,_0x440819(0x31e)+JSON[_0x440819(0x1f9)](_0x286223)+'\x20'),_0x33c4a0['recordDebugEvents']({'eventName':_0x440819(0x2e3)});let _0x2c282a;try{if(_0x2c282a=Notification[_0x440819(0x311)],_0x2c282a){if(_0x473979(0x1,_0x440819(0x30c)+_0x2c282a),_0x2c282a==='default')_0x286223||(this[_0x440819(0x311)]=_0x440819(0x380),_0x33c4a0[_0x440819(0x2cc)]({'eventName':_0x440819(0x22c)})),_0x286223&&(_0x33c4a0[_0x440819(0x2cc)]({'eventName':_0x440819(0x42e),'eventProperties':[{'eventProperty':_0x440819(0x35a),'value':''+(_0x286223==null?void 0x0:_0x286223[_0x440819(0x35a)])}]}),_0x101b70(this,_0x450164)[_0x440819(0x1dc)](this,_0x286223[_0x440819(0x223)]),_0x286223[_0x440819(0x35a)]===_0x440819(0x212)?_0x3c2dae(this,_0x1bfa5e,_0xd06711)['call'](this,_0x286223):yield _0x3c2dae(this,_0x1bfa5e,_0x53e594)[_0x440819(0x1dc)](this,_0x286223));else{if(_0x2c282a==='denied')yield _0x33c4a0['recordEvent']({'eventName':'Notification\x20Disabled','eventProperties':[{'eventProperty':_0x440819(0x35a),'value':'check\x20permission\x20denied'}]}),_0x33c4a0[_0x440819(0x2cc)]({'eventName':_0x440819(0x234)}),_0x473979(0x1,'The\x20user\x20has\x20blocked\x20notifications.'),_0x286223&&_0x286223[_0x440819(0x223)]&&_0x101b70(this,_0x450164)[_0x440819(0x1dc)](this,_0x286223[_0x440819(0x223)]);else{if(_0x286223&&_0x286223[_0x440819(0x223)]){_0x101b70(this,_0x450164)['call'](this,_0x286223[_0x440819(0x223)]);return;}_0x33c4a0[_0x440819(0x2cc)]({'eventName':_0x440819(0x1b3)}),_0x473979(0x1,_0x440819(0x2a0)),_0x101b70(_0x3ab0ba,_0x349743)||(yield _0x3c2dae(this,_0x1bfa5e,_0x2549ac)['call'](this),_0x286223||_0x9fc6c6(_0x3ab0ba,_0x349743,!0x0));}}}}catch(_0x5a058e){_0x473979(0x2,'Failed\x20to\x20check\x20notification\x20permission'),_0x33c4a0[_0x440819(0x2cc)]({'eventName':'notification_permission_error'});}});},_0xd06711=function(_0x29a59d){const _0x5adf7e=_0x24c78c;try{let _0xed1a25=document[_0x5adf7e(0x36f)]('div'),_0x1d1a0e;_0x29a59d[_0x5adf7e(0x387)][_0x5adf7e(0x1af)]&&(_0x1d1a0e=document[_0x5adf7e(0x36f)](_0x5adf7e(0x229)),_0x1d1a0e[_0x5adf7e(0x2bd)]=_0x29a59d[_0x5adf7e(0x387)][_0x5adf7e(0x1af)],_0x1d1a0e[_0x5adf7e(0x40a)]=_0x5adf7e(0x379),_0x1d1a0e['id']='centered-image');let _0x5d8242=document[_0x5adf7e(0x36f)](_0x5adf7e(0x3cd)),_0x5e6d8d=document['createElement'](_0x5adf7e(0x3cd)),_0xd89756=document[_0x5adf7e(0x36f)](_0x5adf7e(0x3cd)),_0x129868=document[_0x5adf7e(0x36f)](_0x5adf7e(0x229)),_0x24fd62=document[_0x5adf7e(0x36f)]('div'),_0x3129b0=document[_0x5adf7e(0x36f)](_0x5adf7e(0x3cd)),_0x5cb781=document[_0x5adf7e(0x36f)]('div'),_0x5cdf17=document[_0x5adf7e(0x36f)](_0x5adf7e(0x3cd)),_0x41f997=document['createElement'](_0x5adf7e(0x3cd)),_0x3d51a7=document[_0x5adf7e(0x36f)](_0x5adf7e(0x3cd)),_0x5f17b2=document['createElement'](_0x5adf7e(0x397)),_0x4fbe0e=document[_0x5adf7e(0x36f)](_0x5adf7e(0x397));_0xed1a25[_0x5adf7e(0x1dd)]=_0x5adf7e(0x329),_0x5d8242[_0x5adf7e(0x1dd)]=_0x5adf7e(0x3fc),_0x5e6d8d[_0x5adf7e(0x1dd)]=_0x5cdf17[_0x5adf7e(0x1dd)]=_0x41f997[_0x5adf7e(0x1dd)]=_0x5adf7e(0x1e7),_0xd89756[_0x5adf7e(0x1dd)]=_0x5adf7e(0x2db),_0x24fd62[_0x5adf7e(0x1dd)]=_0x5adf7e(0x1a0),_0x3d51a7['className']=_0x5adf7e(0x339),_0x3129b0['id']=_0x5adf7e(0x34f),_0x5cb781['id']=_0x5adf7e(0x357),_0x5f17b2['id']='button-1',_0x4fbe0e['id']=_0x5adf7e(0x3f4),_0x129868['src']=_0x29a59d[_0x5adf7e(0x387)]['banner_icon'],_0x129868['alt']=_0x5adf7e(0x379),_0x129868['id']=_0x5adf7e(0x2c7),_0x3129b0[_0x5adf7e(0x2d8)]=_0x29a59d[_0x5adf7e(0x387)][_0x5adf7e(0x326)],_0x5cb781[_0x5adf7e(0x2d8)]=_0x29a59d[_0x5adf7e(0x387)][_0x5adf7e(0x275)],_0x5f17b2['textContent']=_0x29a59d[_0x5adf7e(0x387)][_0x5adf7e(0x2c3)][_0x5adf7e(0x2b2)],_0x4fbe0e[_0x5adf7e(0x2d8)]=_0x29a59d['banner_design'][_0x5adf7e(0x384)][_0x5adf7e(0x2b2)],_0xd89756[_0x5adf7e(0x336)](_0x129868),_0x24fd62['appendChild'](_0x3129b0),_0x24fd62[_0x5adf7e(0x336)](_0x5cb781),_0x5e6d8d[_0x5adf7e(0x336)](_0xd89756),_0x5e6d8d['appendChild'](_0x24fd62),_0x1d1a0e&&(_0x5cdf17['appendChild'](_0x1d1a0e),_0x1d1a0e[_0x5adf7e(0x310)][_0x5adf7e(0x2ae)]=_0x5adf7e(0x31b)),_0x3d51a7[_0x5adf7e(0x336)](_0x5f17b2),_0x3d51a7[_0x5adf7e(0x336)](_0x4fbe0e),_0x41f997[_0x5adf7e(0x336)](_0x3d51a7),_0x5d8242['appendChild'](_0x5e6d8d),_0x5d8242[_0x5adf7e(0x336)](_0x5cdf17),_0x5d8242[_0x5adf7e(0x336)](_0x41f997),_0xed1a25[_0x5adf7e(0x336)](_0x5d8242),_0xed1a25[_0x5adf7e(0x310)][_0x5adf7e(0x2ae)]=_0x5adf7e(0x29f),_0x5d8242[_0x5adf7e(0x310)][_0x5adf7e(0x2ae)]=_0x5adf7e(0x416)+_0x29a59d[_0x5adf7e(0x387)][_0x5adf7e(0x2d1)]+_0x5adf7e(0x1c4),_0x5e6d8d[_0x5adf7e(0x310)][_0x5adf7e(0x2ae)]=_0x5cdf17[_0x5adf7e(0x310)][_0x5adf7e(0x2ae)]=_0x41f997['style'][_0x5adf7e(0x2ae)]='\x0adisplay:\x20flex;\x0aflex-wrap:\x20wrap;\x0amargin-bottom:\x2010px;\x0a',_0xd89756['style'][_0x5adf7e(0x2ae)]=_0x5adf7e(0x2dd),_0x24fd62[_0x5adf7e(0x310)][_0x5adf7e(0x2ae)]='\x0awidth:\x2073%;\x0amargin-left:\x202%;\x0a',_0x129868[_0x5adf7e(0x310)][_0x5adf7e(0x2ae)]=_0x5adf7e(0x31f),_0x5f17b2[_0x5adf7e(0x310)][_0x5adf7e(0x2ae)]=_0x5adf7e(0x2d7)+_0x29a59d[_0x5adf7e(0x387)][_0x5adf7e(0x2c3)][_0x5adf7e(0x3ed)]+_0x5adf7e(0x330)+_0x29a59d[_0x5adf7e(0x387)]['button_1'][_0x5adf7e(0x274)]+_0x5adf7e(0x291),_0x4fbe0e[_0x5adf7e(0x310)][_0x5adf7e(0x2ae)]=_0x5adf7e(0x2d7)+_0x29a59d[_0x5adf7e(0x387)][_0x5adf7e(0x384)]['backgroundColor']+_0x5adf7e(0x330)+_0x29a59d[_0x5adf7e(0x387)][_0x5adf7e(0x384)][_0x5adf7e(0x274)]+_0x5adf7e(0x291),_0x3d51a7['style'][_0x5adf7e(0x2ae)]='\x0adisplay:\x20flex;\x0ajustify-content:\x20space-between;\x0aalign-items:\x20center;\x0aflex-wrap:\x20nowrap;\x0awidth:\x20100%;\x0a',_0x3129b0[_0x5adf7e(0x310)][_0x5adf7e(0x2ae)]=_0x5adf7e(0x3fb)+_0x29a59d['banner_design'][_0x5adf7e(0x3e6)]+'\x0a',_0x5cb781['style']['cssText']=_0x5adf7e(0x1f2)+_0x29a59d[_0x5adf7e(0x387)][_0x5adf7e(0x3e6)]+'\x0a',document[_0x5adf7e(0x2b8)][_0x5adf7e(0x336)](_0xed1a25),document[_0x5adf7e(0x2b8)]['style'][_0x5adf7e(0x33d)]='hidden',_0x33c4a0[_0x5adf7e(0x315)]({'eventName':_0x5adf7e(0x296),'name':_0x5adf7e(0x219),'web_optin_instance_id':_0x29a59d[_0x5adf7e(0x223)]}),_0x5f17b2==null||_0x5f17b2[_0x5adf7e(0x1cd)](_0x5adf7e(0x427),()=>_0x6ae56d(this,null,function*(){const _0x37821f=_0x5adf7e;_0xed1a25[_0x37821f(0x32b)](),_0x9fc6c6(_0x3ab0ba,_0x1a5699,!0x1),document[_0x37821f(0x2b8)][_0x37821f(0x310)][_0x37821f(0x33d)]=_0x37821f(0x215),_0x473979(0x1,'User\x20denied\x20the\x20notification\x20permission.');})),_0x4fbe0e==null||_0x4fbe0e[_0x5adf7e(0x1cd)](_0x5adf7e(0x427),()=>_0x6ae56d(this,null,function*(){const _0x3a9695=_0x5adf7e;_0xed1a25[_0x3a9695(0x32b)](),document[_0x3a9695(0x2b8)][_0x3a9695(0x310)][_0x3a9695(0x33d)]=_0x3a9695(0x215),yield _0x3c2dae(this,_0x1bfa5e,_0x53e594)[_0x3a9695(0x1dc)](this,_0x29a59d);}));}catch(_0x6ed5e7){}},_0x53e594=function(_0x283638){return _0x6ae56d(this,null,function*(){const _0x465ae6=_0x3d2f;try{let _0x24f4ec=yield Notification[_0x465ae6(0x41e)]();_0x24f4ec===_0x465ae6(0x239)?(_0x473979(0x1,'User\x20granted\x20the\x20notification\x20permission.'),yield _0x3c2dae(this,_0x1bfa5e,_0x2549ac)[_0x465ae6(0x1dc)](this),yield _0x33c4a0[_0x465ae6(0x315)]({'eventName':_0x465ae6(0x236),'name':_0x465ae6(0x42d),'web_optin_instance_id':_0x283638[_0x465ae6(0x223)]})):_0x24f4ec===_0x465ae6(0x1de)?_0x473979(0x1,_0x465ae6(0x232)):_0x24f4ec===_0x465ae6(0x380)&&_0x473979(0x1,_0x465ae6(0x272));}catch(_0x499ad8){_0x473979(0x2,_0x465ae6(0x2ea)),_0x473979(0x2,_0x499ad8[_0x465ae6(0x366)]);}_0x9fc6c6(_0x3ab0ba,_0x1a5699,!0x1);});},_0x2549ac=function(){return _0x6ae56d(this,null,function*(){const _0x15f146=_0x3d2f;var _0x3ef863,_0x17817a;let _0x1d09b6=yield _0x12a14a[_0x15f146(0x3c0)](''+_0xcf8b1a);if(_0x473979(0x1,_0x15f146(0x1b1)+_0x1d09b6[_0x15f146(0x24f)]),_0x1d09b6[_0x15f146(0x24f)]){let _0x5004e9=yield(_0x3ef863=_0x101b70(_0x3ab0ba,_0x2063b3))==null?void 0x0:_0x3ef863[_0x15f146(0x2e4)][_0x15f146(0x31c)]();_0x473979(0x1,_0x15f146(0x41f)+!!_0x5004e9),_0x5004e9&&(yield _0x5004e9['unsubscribe']());let _0x312062=yield(_0x17817a=_0x101b70(_0x3ab0ba,_0x2063b3))==null?void 0x0:_0x17817a['pushManager'][_0x15f146(0x353)]({'applicationServerKey':_0x1d09b6[_0x15f146(0x3f7)]||'','userVisibleOnly':!0x0}),_0x1d4323=localStorage[_0x15f146(0x225)]('customer')||'';_0x473979(0x1,_0x15f146(0x338)+_0x1d4323),(!_0x1d4323||_0x1d4323==='undefined')&&(yield _0x1a12dc['setIdentity']()),yield _0x12a14a['put'](''+_0xa02385,{'customer_id':localStorage[_0x15f146(0x225)](_0x15f146(0x3ec)),'device_id':localStorage[_0x15f146(0x225)](_0x15f146(0x352)),'device_platform':_0x1a12dc[_0x15f146(0x3f1)](),'is_web_push_subscribed':!0x0,'os':_0x1a12dc['getPlatform'](),'web_push_subscription_page_url':window[_0x15f146(0x2b1)][_0x15f146(0x3c9)],'web_push_token':{'token':JSON[_0x15f146(0x420)](JSON[_0x15f146(0x1f9)](_0x312062))}}),this[_0x15f146(0x210)]({'customer':localStorage[_0x15f146(0x225)](_0x15f146(0x3ec))||'','events':_0x33c4a0[_0x15f146(0x217)](),'API_KEY':_0x12a14a['getAPIKey'](),'debugLevel':_0x31c366[_0x15f146(0x407)],'device_id':localStorage[_0x15f146(0x225)](_0x15f146(0x352))||'','operatingSystem':_0x1a12dc[_0x15f146(0x3f1)](),'osVersion':_0x1a12dc[_0x15f146(0x2cd)](),'Platform':_0x1a12dc['getPlatform']()}),_0x473979(0x1,_0x15f146(0x335));}else throw new Error(_0x15f146(0x1d4));});},_0x59a81c=function(_0x23d559){const _0x527dc1=_0x24c78c;_0x1a12dc['storeActionInLocalStorage'](_0x23d559,'web_push_action',_0x527dc1(0x223));},_0x722cdb=new WeakMap(),_0x7bc888=function(_0x3b5015){const _0x1a3159=_0x24c78c;if(_0x101b70(_0x3ab0ba,_0x1a5699))return;_0x9fc6c6(_0x3ab0ba,_0x1a5699,!0x0);let _0x3b0fa7=_0x3c2dae(this,_0x1bfa5e,_0x24196d)[_0x1a3159(0x1dc)](this);if(_0x3b0fa7!=null&&_0x3b0fa7[_0x3b5015])switch(_0x3b0fa7[_0x3b5015]['entry_time']){case _0x1a3159(0x19b):{_0x3c2dae(this,_0x1bfa5e,_0x6fa32c)[_0x1a3159(0x1dc)](this,_0x3b0fa7[_0x3b5015]);break;}case _0x1a3159(0x3ba):{_0x3c2dae(this,_0x1bfa5e,_0x57ef1f)['call'](this,_0x3b0fa7[_0x3b5015]);break;}case _0x1a3159(0x423):{_0x3c2dae(this,_0x1bfa5e,_0x563e24)['call'](this,_0x3b0fa7[_0x3b5015]);break;}default:return;}},_0x24196d=function(){const _0x112228=_0x24c78c;let _0xe63e98=localStorage[_0x112228(0x225)]('web_push_action');return _0xe63e98?JSON[_0x112228(0x420)](_0xe63e98):null;},_0x6fa32c=function(_0x51888f){const _0x5c7e50=_0x24c78c;_0x1a12dc[_0x5c7e50(0x201)]({'clearActionMethod':_0x101b70(this,_0x450164)[_0x5c7e50(0x1fd)](this),'data':_0x51888f,'displayMethod':_0x3c2dae(this,_0x1bfa5e,_0x57ef1f)[_0x5c7e50(0x1fd)](this),'idKey':'web_optin_instance_id','timeValueKey':'entry_time_value'});},_0x57ef1f=function(_0x5dd00e){_0x3c2dae(this,_0x1bfa5e,_0x53d346)['call'](this,_0x5dd00e);},_0x450164=new WeakMap(),_0x563e24=function(_0x4a553b){const _0x2f5f00=_0x24c78c;_0x1a12dc[_0x2f5f00(0x32c)]({'data':_0x4a553b,'displayMethod':_0x3c2dae(this,_0x1bfa5e,_0x57ef1f)['bind'](this),'timeValueKey':_0x2f5f00(0x283)});},_0x5e7b66(_0x3ab0ba,_0x568e31),_0x5e7b66(_0x3ab0ba,_0x2063b3,null),_0x5e7b66(_0x3ab0ba,_0x349743,!0x1),_0x5e7b66(_0x3ab0ba,_0x1a5699,!0x1),_0x5e7b66(_0x3ab0ba,_0x51ba54,!0x1),_0x5e7b66(_0x3ab0ba,_0x3e6cd,null),_0x5e7b66(_0x3ab0ba,_0x31e41f,'');var _0x2a843e=_0x3ab0ba,_0x531a48=_0x2a843e['getInstance'](),_0x29f1ce,_0x45f52a,_0x545d71,_0x420089,_0x4db0b8,_0x3871b4,_0x15bb30,_0x265038,_0x34d46e,_0x170fed,_0x34a956,_0xd4e20e,_0x3c09ce,_0x59b4b7,_0x1e4a0e,_0x36f100=class _0x59e301{constructor(){_0x5e7b66(this,_0x45f52a),_0x5e7b66(this,_0x15bb30,_0x202fbf=>{const _0x290021=_0x3d2f;_0x473979(0x1,'Clearing\x20popup\x20event\x20action\x20in\x20local\x20storage\x20for\x20campaign\x20ID:\x20'+_0x202fbf),_0x1a12dc['clearActionInLocalStorage']({'id':_0x202fbf,'localStorageKey':_0x290021(0x2bb)});}),_0x5e7b66(this,_0x265038,(_0x24131d,_0x30a9b3)=>{const _0x14eb28=_0x3d2f;let _0x3ac9b4=document[_0x14eb28(0x36f)](_0x14eb28(0x3cd));_0x3ac9b4['innerHTML']=_0x30a9b3,_0x3ac9b4['querySelectorAll']('script')[_0x14eb28(0x1bc)](_0x132a4b=>{const _0x3b63e2=_0x14eb28;let _0x123bba=document[_0x3b63e2(0x36f)](_0x3b63e2(0x30a));_0x132a4b[_0x3b63e2(0x2bd)]?_0x123bba[_0x3b63e2(0x2bd)]=_0x132a4b[_0x3b63e2(0x2bd)]:_0x123bba[_0x3b63e2(0x2d8)]=_0x132a4b[_0x3b63e2(0x2d8)],_0x24131d[_0x3b63e2(0x336)](_0x123bba);});}),_0x5e7b66(this,_0x170fed,({campaignCustomerInstanceId:_0x15c77a,campaignId:_0x56ea4f,customForm:_0x1390b3,formDiv:_0xa41236,popupContainer:_0x167a02})=>{const _0x10fe0b=_0x3d2f;let _0x1fe1a6=(_0xa41236==null?void 0x0:_0xa41236[_0x10fe0b(0x276)](_0x10fe0b(0x3a7)))||_0x1390b3;_0x1fe1a6&&(_0x1fe1a6[_0x10fe0b(0x1e3)](_0x10fe0b(0x19d))[_0x10fe0b(0x1bc)](_0x887e88=>{const _0x398acc=_0x10fe0b;_0x887e88['style'][_0x398acc(0x433)]('padding',_0x887e88[_0x398acc(0x310)][_0x398acc(0x3d9)],_0x398acc(0x413));}),_0x1fe1a6[_0x10fe0b(0x1cd)](_0x10fe0b(0x1aa),()=>_0x6ae56d(this,null,function*(){const _0x350243=_0x10fe0b;_0x167a02[_0x350243(0x32b)]();let _0x265b58=new FormData(_0x1fe1a6);for(let [_0x36b992,_0x51c8aa]of _0x265b58[_0x350243(0x289)]())_0x51c8aa===''||_0x51c8aa===null||_0x51c8aa===void 0x0?_0x265b58[_0x350243(0x36a)](_0x36b992):typeof _0x51c8aa==_0x350243(0x402)&&_0x265b58[_0x350243(0x209)](_0x36b992,_0x51c8aa[_0x350243(0x313)]()['trim']());let _0x302bf6={};_0x473979(0x1,_0x350243(0x263));let _0x37bf89=[];for(let [_0x2a9101,_0x274b4d]of _0x265b58[_0x350243(0x289)]())_0x302bf6[_0x2a9101]=_0x274b4d,_0x473979(0x1,_0x2a9101+':\x20'+_0x274b4d),_0x37bf89['push'](_0x27f1f8[_0x350243(0x293)](_0x2a9101,_0x274b4d[_0x350243(0x313)]()));if(yield Promise[_0x350243(0x3f8)](_0x37bf89),setTimeout(()=>_0x6ae56d(this,null,function*(){const _0xb7079c=_0x350243;yield _0x33c4a0[_0xb7079c(0x315)]({'campaignCustomerInstanceId':_0x15c77a,'campaignId':_0x56ea4f,'eventName':_0x1413da,'eventProperties':[{'eventProperty':_0xb7079c(0x363),'value':JSON['stringify']({'campaignId':_0x56ea4f,'formId':(_0xa41236==null?void 0x0:_0xa41236['id'])||_0xb7079c(0x382),'formValues':_0x302bf6})},{'eventProperty':_0xb7079c(0x1e8),'value':_0x56ea4f[_0xb7079c(0x313)]()}],'name':_0xb7079c(0x3a7)});})),_0x1fe1a6['action']&&!_0x1390b3){let _0x207d5d=(_0x1fe1a6['method']||_0x350243(0x376))[_0x350243(0x410)]();if((_0x1fe1a6[_0x350243(0x3c3)]||'_self')===_0x350243(0x373)){let _0x5935cb=new URL(_0x1fe1a6['action']);_0x265b58[_0x350243(0x1bc)]((_0x4557d1,_0x3568c6)=>{const _0x11c6b3=_0x350243;_0x5935cb[_0x11c6b3(0x1c2)][_0x11c6b3(0x362)](_0x3568c6,_0x4557d1[_0x11c6b3(0x313)]());}),window[_0x350243(0x240)](_0x5935cb[_0x350243(0x313)](),_0x350243(0x373));return;}try{if(_0x207d5d===_0x350243(0x299)){let _0x54d365=new URLSearchParams();_0x265b58[_0x350243(0x1bc)]((_0x24bf31,_0x2998af)=>{const _0x31069d=_0x350243;_0x54d365['append'](_0x2998af,_0x24bf31[_0x31069d(0x313)]());}),yield fetch(_0x1fe1a6[_0x350243(0x2bb)],{'body':_0x54d365[_0x350243(0x313)](),'headers':{'Content-Type':_0x350243(0x2dc)},'method':_0x350243(0x299)});}else{let _0x41b7a2=new URL(_0x1fe1a6[_0x350243(0x2bb)]);_0x265b58[_0x350243(0x1bc)]((_0x43bd78,_0x463d1a)=>{const _0x555d6f=_0x350243;_0x41b7a2[_0x555d6f(0x1c2)]['append'](_0x463d1a,_0x43bd78[_0x555d6f(0x313)]());}),yield fetch(_0x41b7a2[_0x350243(0x313)](),{'method':_0x350243(0x376)});}}catch(_0x2709d1){_0x473979(0x2,_0x350243(0x28c)+_0x2709d1[_0x350243(0x366)]);}}})));}),this['loadPopupEventActionInLocalStorage']=()=>{const _0x15d09f=_0x3d2f;_0x1a12dc[_0x15d09f(0x41d)]({'actionCondition':_0x76450=>_0x76450[_0x15d09f(0x366)][_0x15d09f(0x3ae)]===_0x15d09f(0x271),'actionMethod':_0x254494=>_0x3c2dae(this,_0x45f52a,_0x420089)[_0x15d09f(0x1dc)](this,_0x254494['campaignId']),'localStorageKey':_0x15d09f(0x2bb)});},_0x5e7b66(this,_0x1e4a0e,()=>{const _0x336318=_0x3d2f;_0x1a12dc[_0x336318(0x371)](_0x336318(0x2bb));});}static[_0x24c78c(0x432)](){var _0x35e00a;return _0x101b70(_0x59e301,_0x29f1ce)||(_0x9fc6c6(_0x59e301,_0x29f1ce,new _0x59e301()),_0x3c2dae(_0x35e00a=_0x101b70(_0x59e301,_0x29f1ce),_0x45f52a,_0x545d71)['call'](_0x35e00a)),_0x101b70(_0x59e301,_0x29f1ce);}['showPopup'](_0x5d7aa0){const _0x194e6a=_0x24c78c;let _0x5965f6=JSON[_0x194e6a(0x420)](localStorage[_0x194e6a(0x225)](_0x194e6a(0x2bb))||'{}');if(_0x5965f6&&_0x5965f6[_0x5d7aa0==null?void 0x0:_0x5d7aa0[_0x194e6a(0x261)]]){_0x473979(0x1,_0x194e6a(0x1e6));return;}_0x3c2dae(this,_0x45f52a,_0x59b4b7)[_0x194e6a(0x1dc)](this,_0x5d7aa0),_0x101b70(this,_0x1e4a0e)[_0x194e6a(0x1dc)](this),_0x3c2dae(this,_0x45f52a,_0x420089)[_0x194e6a(0x1dc)](this,_0x5d7aa0[_0x194e6a(0x261)]);}[_0x24c78c(0x39b)](_0x3e4d5f){const _0x381c74=_0x24c78c;return _0x3e4d5f===_0x381c74(0x271);}};_0x29f1ce=new WeakMap(),_0x45f52a=new WeakSet(),_0x545d71=function(){return _0x6ae56d(this,null,function*(){});},_0x420089=function(_0x2b938c){const _0xe56975=_0x24c78c;_0x473979(0x1,_0xe56975(0x331)+_0x2b938c);let _0xaa7c20=_0x3c2dae(this,_0x45f52a,_0x4db0b8)[_0xe56975(0x1dc)](this);if(!_0xaa7c20){_0x473979(0x1,_0xe56975(0x430));return;}if(_0x473979(0x1,'Popup\x20action\x20data:\x20'+JSON['stringify'](_0xaa7c20)),document[_0xe56975(0x1ea)]('popup_container_'+_0x2b938c)){_0x473979(0x1,'Popup\x20already\x20displayed'),_0x101b70(this,_0x15bb30)[_0xe56975(0x1dc)](this,_0x2b938c);return;}if(_0xaa7c20!=null&&_0xaa7c20[_0x2b938c])switch(_0x473979(0x1,_0xe56975(0x2a9)+_0x2b938c+':'),_0x473979(0x1,_0xaa7c20[_0x2b938c]),_0xaa7c20[_0x2b938c][_0xe56975(0x2df)]){case _0xe56975(0x19b):{_0x3c2dae(this,_0x45f52a,_0x3871b4)[_0xe56975(0x1dc)](this,_0xaa7c20[_0x2b938c]);break;}case'IMMEDIATELY':{_0x3c2dae(this,_0x45f52a,_0x34d46e)[_0xe56975(0x1dc)](this,_0xaa7c20[_0x2b938c]);break;}case'SCROLL':{_0x3c2dae(this,_0x45f52a,_0x3c09ce)[_0xe56975(0x1dc)](this,_0xaa7c20[_0x2b938c]);break;}default:return;}},_0x4db0b8=function(){const _0xd34592=_0x24c78c;let _0x4ff9c7=localStorage[_0xd34592(0x225)](_0xd34592(0x2bb));return _0x4ff9c7?JSON[_0xd34592(0x420)](_0x4ff9c7):null;},_0x3871b4=function(_0x1bf2ab){const _0x496b33=_0x24c78c;_0x1a12dc[_0x496b33(0x201)]({'clearActionMethod':_0x101b70(this,_0x15bb30)[_0x496b33(0x1fd)](this),'data':_0x1bf2ab,'displayMethod':_0x3c2dae(this,_0x45f52a,_0x34d46e)[_0x496b33(0x1fd)](this),'idKey':'campaignId','timeValueKey':'campaignEntryTimeValue'});},_0x15bb30=new WeakMap(),_0x265038=new WeakMap(),_0x34d46e=function(_0x18fbe8){const _0x280f26=_0x24c78c;if(_0x473979(0x1,'Displaying\x20popup\x20for\x20campaign\x20ID:\x20'+_0x18fbe8[_0x280f26(0x261)]),document[_0x280f26(0x1ea)](_0x280f26(0x1ee)+_0x18fbe8['campaignId']))_0x473979(0x1,'Popup\x20already\x20displayed');else{let _0x3a7c98=_0x3c2dae(this,_0x45f52a,_0xd4e20e)['call'](this,'div',_0x18fbe8);_0x473979(0x1,_0x280f26(0x3c5)),_0x101b70(this,_0x265038)['call'](this,_0x3a7c98,_0x18fbe8[_0x280f26(0x366)]['design']),document[_0x280f26(0x2b8)]['appendChild'](_0x3a7c98),_0x473979(0x1,_0x280f26(0x259)),_0x33c4a0[_0x280f26(0x315)]({'campaignCustomerInstanceId':_0x18fbe8['campaignCustomerInstanceId'],'campaignId':_0x18fbe8[_0x280f26(0x261)],'eventName':_0x1413da,'eventProperties':[{'eventProperty':_0x280f26(0x390),'value':JSON[_0x280f26(0x1f9)]({'campaignId':_0x18fbe8[_0x280f26(0x261)]})}],'name':_0x280f26(0x281)});}_0x473979(0x1,'Popup\x20displayed\x20successfully'),_0x101b70(this,_0x15bb30)[_0x280f26(0x1dc)](this,_0x18fbe8['campaignId']);},_0x170fed=new WeakMap(),_0x34a956=function(_0x4a62d2,_0x2c8d46){const _0x2d0604=_0x24c78c;let _0x4f7704=_0x4a62d2['parentElement'];for(;_0x4f7704;){if(_0x4f7704['id'][_0x2d0604(0x32e)](_0x2c8d46))return _0x4f7704;_0x4f7704=_0x4f7704[_0x2d0604(0x268)];}return null;},_0xd4e20e=function(_0x287af4,_0x4cd1a8){const _0x5a9397=_0x24c78c;_0x473979(0x1,_0x5a9397(0x381)+_0x287af4),_0x473979(0x1,_0x5a9397(0x1fb)),_0x473979(0x1,_0x4cd1a8);let {campaignCustomerInstanceId:_0xbdb7d0,campaignId:_0x373c57,message:{design:_0x3203dd}}=_0x4cd1a8,_0x509472=document['createElement'](_0x287af4);_0x509472['id']=_0x5a9397(0x1ee)+_0x373c57,_0x509472[_0x5a9397(0x35b)]=_0x3203dd,_0x509472['style']['position']=_0x5a9397(0x2fb),_0x509472[_0x5a9397(0x310)][_0x5a9397(0x426)]='0',_0x509472[_0x5a9397(0x310)]['left']='0',_0x509472[_0x5a9397(0x310)][_0x5a9397(0x429)]='100%',_0x509472[_0x5a9397(0x310)][_0x5a9397(0x233)]='100%',_0x509472[_0x5a9397(0x310)][_0x5a9397(0x3dc)]=_0x5a9397(0x2ec),_0x473979(0x1,_0x5a9397(0x21a)),_0x473979(0x1,_0x509472['id']);let _0x338253=_0x509472[_0x5a9397(0x276)]('.u-popup-container');_0x338253&&(_0x473979(0x1,_0x5a9397(0x2b6)),_0x338253['style']['zIndex']='50');let _0x19412e=_0x338253[_0x5a9397(0x276)](_0x5a9397(0x3f5));_0x19412e&&(_0x473979(0x1,_0x5a9397(0x1ca)),_0x19412e[_0x5a9397(0x310)][_0x5a9397(0x433)]('display','block',_0x5a9397(0x413))),_0x509472['querySelectorAll'](_0x5a9397(0x3a7))[_0x5a9397(0x1bc)](_0x319bb6=>{const _0x55ac30=_0x5a9397;let _0x26876e=_0x3c2dae(this,_0x45f52a,_0x34a956)[_0x55ac30(0x1dc)](this,_0x319bb6,_0x55ac30(0x343));_0x26876e?_0x101b70(this,_0x170fed)[_0x55ac30(0x1dc)](this,{'campaignCustomerInstanceId':_0xbdb7d0,'campaignId':_0x373c57,'formDiv':_0x26876e,'popupContainer':_0x509472}):_0x101b70(this,_0x170fed)[_0x55ac30(0x1dc)](this,{'campaignCustomerInstanceId':_0xbdb7d0,'campaignId':_0x373c57,'customForm':_0x319bb6,'popupContainer':_0x509472});});let _0x1ad3dd=_0x509472[_0x5a9397(0x276)](_0x5a9397(0x38f));return(_0x1ad3dd==null?void 0x0:_0x1ad3dd['getAttribute'](_0x5a9397(0x2e1)))==='#'&&_0x1ad3dd[_0x5a9397(0x2be)](_0x5a9397(0x2e1)),_0x1ad3dd==null||_0x1ad3dd['addEventListener'](_0x5a9397(0x427),()=>_0x6ae56d(this,null,function*(){const _0x4f5c5f=_0x5a9397;_0x509472['remove'](),yield _0x33c4a0[_0x4f5c5f(0x315)]({'campaignCustomerInstanceId':_0xbdb7d0,'campaignId':_0x373c57,'eventName':_0x1413da,'eventProperties':[{'eventProperty':_0x4f5c5f(0x1b2),'value':JSON[_0x4f5c5f(0x1f9)]({'campaignId':_0x373c57})}],'name':_0x4f5c5f(0x2b9)});})),_0x509472[_0x5a9397(0x1e3)](_0x5a9397(0x26b))[_0x5a9397(0x1bc)](_0x3cf0ec=>{const _0x2afdb7=_0x5a9397;_0x3cf0ec['addEventListener'](_0x2afdb7(0x427),()=>_0x6ae56d(this,null,function*(){const _0x1bcaea=_0x2afdb7;_0x509472['remove'](),yield _0x33c4a0['recordEvent']({'campaignCustomerInstanceId':_0xbdb7d0,'campaignId':_0x373c57,'eventName':_0x1413da,'eventProperties':[{'eventProperty':_0x1bcaea(0x27f),'value':JSON['stringify']({'buttonId':_0x3cf0ec['id'],'campaignId':_0x373c57})}],'name':'click'});}));}),_0x509472[_0x5a9397(0x1e3)](_0x5a9397(0x2e6))['forEach'](_0x437aa4=>{const _0x3fa936=_0x5a9397;_0x437aa4[_0x3fa936(0x1cd)](_0x3fa936(0x427),()=>_0x6ae56d(this,null,function*(){const _0x131b97=_0x3fa936;var _0x4dcd05;((_0x4dcd05=_0x437aa4[_0x131b97(0x268)])==null?void 0x0:_0x4dcd05['tagName'])==='A'&&_0x437aa4[_0x131b97(0x268)][_0x131b97(0x265)](_0x131b97(0x2e1))&&_0x509472[_0x131b97(0x32b)](),yield _0x33c4a0[_0x131b97(0x315)]({'campaignCustomerInstanceId':_0xbdb7d0,'campaignId':_0x373c57,'eventName':_0x1413da,'eventProperties':[{'eventProperty':_0x131b97(0x327),'value':JSON[_0x131b97(0x1f9)]({'campaignId':_0x373c57,'imageClassName':_0x437aa4[_0x131b97(0x1dd)],'imageId':_0x437aa4['id']})}],'name':_0x131b97(0x427)});}));}),_0x509472;},_0x3c09ce=function(_0x4de3a8){const _0x120763=_0x24c78c;_0x1a12dc[_0x120763(0x32c)]({'data':_0x4de3a8,'displayMethod':_0x3c2dae(this,_0x45f52a,_0x34d46e)[_0x120763(0x1fd)](this),'timeValueKey':_0x120763(0x1c5)});},_0x59b4b7=function(_0x24f6a6){const _0x3a9efb=_0x24c78c;_0x473979(0x1,_0x3a9efb(0x21b)),_0x473979(0x1,_0x24f6a6),_0x1a12dc['storeActionInLocalStorage'](_0x24f6a6,'action',_0x3a9efb(0x261));},_0x1e4a0e=new WeakMap(),_0x5e7b66(_0x36f100,_0x29f1ce);var _0x1ceed5=_0x36f100,_0x3c1fed=_0x1ceed5['getInstance'](),_0x15c615,_0x233903,_0x1c4da9,_0x49faff,_0xbeda39,_0x2d0fda,_0x1597cc,_0x4ccd3c,_0x31718d,_0xb95127=class _0x57b497{constructor(){const _0x6c0069=_0x24c78c;_0x5e7b66(this,_0x233903),this['queue']=Promise[_0x6c0069(0x1bd)]();}static[_0x24c78c(0x432)](){const _0x1e434b=_0x24c78c;var _0x5ba33c;return _0x101b70(_0x57b497,_0x15c615)||(_0x9fc6c6(_0x57b497,_0x15c615,new _0x57b497()),_0x3c2dae(_0x5ba33c=_0x101b70(_0x57b497,_0x15c615),_0x233903,_0x1c4da9)[_0x1e434b(0x1dc)](_0x5ba33c)),_0x101b70(_0x57b497,_0x15c615);}[_0x24c78c(0x1c8)](_0x208d1e){const _0x385429=_0x24c78c;let _0xc3527e=JSON['parse'](localStorage[_0x385429(0x225)](_0x385429(0x26e))||'[]');_0xc3527e[_0x385429(0x25d)](_0x208d1e),localStorage[_0x385429(0x3bc)](_0x385429(0x26e),JSON['stringify'](_0xc3527e));}[_0x24c78c(0x3fa)](){return _0x6ae56d(this,null,function*(){const _0x5dec92=_0x3d2f;let _0x4b4040=JSON[_0x5dec92(0x420)](localStorage[_0x5dec92(0x225)]('preInitializedEvents')||'[]');if(Array['isArray'](_0x4b4040)){for(let _0x302e0d of _0x4b4040)yield this[_0x5dec92(0x27b)](_0x302e0d);}});}[_0x24c78c(0x315)](_0x48a3eb,_0x110180){return _0x6ae56d(this,null,function*(){const _0x3f7b0e=_0x3d2f;_0x31c366[_0x3f7b0e(0x1a3)]&&!_0x31c366[_0x3f7b0e(0x305)]?yield _0x3c2dae(this,_0x233903,_0x49faff)['call'](this,_0x48a3eb,_0x110180):this[_0x3f7b0e(0x1c8)](_0x48a3eb);});}[_0x24c78c(0x27b)](_0xff74b6){return _0x6ae56d(this,null,function*(){const _0x49e5e4=_0x3d2f;try{yield _0x3c2dae(this,_0x233903,_0x49faff)[_0x49e5e4(0x1dc)](this,_0xff74b6);}finally{_0x3c2dae(this,_0x233903,_0x31718d)[_0x49e5e4(0x1dc)](this,_0xff74b6[_0x49e5e4(0x334)]);}});}['recordDebugEvents'](_0x460a5d){return _0x6ae56d(this,null,function*(){const _0x3eb97f=_0x3d2f;_0x31c366[_0x3eb97f(0x407)]===0x4&&(!_0x31c366[_0x3eb97f(0x1b0)]||_0x31c366[_0x3eb97f(0x1b0)][_0x460a5d[_0x3eb97f(0x334)]])&&(yield _0x3c2dae(this,_0x233903,_0x49faff)[_0x3eb97f(0x1dc)](this,_0x460a5d));});}['getStoredEvents'](){const _0x4ed3cc=_0x24c78c;let _0x2b8a70=localStorage[_0x4ed3cc(0x225)](_0x4ed3cc(0x314));return _0x2b8a70?JSON[_0x4ed3cc(0x420)](_0x2b8a70):{};}[_0x24c78c(0x3e2)](){return _0x6ae56d(this,null,function*(){const _0x809eb5=_0x3d2f;if(!localStorage[_0x809eb5(0x225)](_0x809eb5(0x314))){let _0x5c7110=(yield this[_0x809eb5(0x243)]())[_0x809eb5(0x3f7)];if(_0x5c7110){localStorage[_0x809eb5(0x3bc)](_0x809eb5(0x314),JSON[_0x809eb5(0x1f9)](_0x5c7110));try{_0x531a48[_0x809eb5(0x210)]({'events':_0x5c7110});}catch(_0xea3385){}}}});}[_0x24c78c(0x243)](){return _0x6ae56d(this,null,function*(){const _0x442c0a=_0x3d2f;try{return yield _0x12a14a[_0x442c0a(0x3c0)](''+_0x196b92);}catch(_0xd89faa){throw new Error(_0x442c0a(0x2ab));}});}[_0x24c78c(0x3a5)](_0x42fb53,_0x23599b){return _0x6ae56d(this,null,function*(){const _0x5e7007=_0x3d2f;let _0x9869f7=null,_0x547165=null,_0x27b8ea=new AbortController();return this[_0x5e7007(0x414)]=this[_0x5e7007(0x414)][_0x5e7007(0x19e)](()=>_0x6ae56d(this,null,function*(){const _0x403f0d=_0x5e7007;try{if(_0x42fb53[_0x403f0d(0x314)]['length']===0x0)throw new Error(_0x403f0d(0x1fe));let _0x41a76d=yield _0x12a14a[_0x403f0d(0x40f)](_0x403f0d(0x26a)+_0x196b92+_0x59773f,_0x42fb53,_0x27b8ea[_0x403f0d(0x3b0)]);if(_0x41a76d[_0x403f0d(0x24f)])return _0x547165=_0x41a76d,_0x41a76d;if(_0x41a76d[_0x403f0d(0x366)]==='Customer\x20with\x20id\x20'+localStorage[_0x403f0d(0x225)](_0x403f0d(0x3ec))+_0x403f0d(0x252))throw localStorage['removeItem']('customer'),new Error(_0x403f0d(0x2a3));}catch(_0x5f18f5){throw _0x473979(0x2,'Error\x20posting\x20event\x20record:'),_0x473979(0x2,'name:\x20'+_0x5f18f5['name']),_0x473979(0x2,_0x403f0d(0x345)+_0x5f18f5[_0x403f0d(0x366)]),(_0x5f18f5['name']===_0x403f0d(0x2f1)||_0x5f18f5[_0x403f0d(0x3ae)]==='TypeError'&&_0x5f18f5[_0x403f0d(0x366)]===_0x403f0d(0x266)||_0x5f18f5[_0x403f0d(0x366)]===_0x403f0d(0x27a))&&(_0x473979(0x2,'Request\x20aborted'),_0x23599b&&_0x3c2dae(this,_0x233903,_0x4ccd3c)[_0x403f0d(0x1dc)](this,_0x23599b)),_0x9869f7=new Error((_0x5f18f5==null?void 0x0:_0x5f18f5[_0x403f0d(0x366)])||_0x403f0d(0x1cc)),_0x5f18f5;}return null;}))[_0x5e7007(0x3c8)](()=>{}),this[_0x5e7007(0x414)][_0x5e7007(0x19e)](()=>{if(_0x9869f7)throw _0x9869f7;return _0x547165;});});}};_0x15c615=new WeakMap(),_0x233903=new WeakSet(),_0x1c4da9=function(){return _0x6ae56d(this,null,function*(){});},_0x49faff=function(_0x3f0a27,_0x4abc57){return _0x6ae56d(this,null,function*(){const _0x1898a0=_0x3d2f;yield _0x4246e0(_0x1898a0(0x1e0),()=>_0x6ae56d(this,null,function*(){const _0x2f3e75=_0x1898a0;var _0x233860,_0x499e66,_0x253d10,_0x2a95a5;let {campaignCustomerInstanceId:_0x4a32cd,campaignId:_0x3ca411,eventName:_0x2c6b73,eventProperties:_0x4a87e5,name:_0x28a0b6,web_optin_instance_id:_0x540527}=_0x3f0a27;_0x473979(0x1,_0x2f3e75(0x3aa)),_0x13ac33('Recording\x20event',!0x0),_0xc47fc2(_0x2f3e75(0x41b),!0x0),_0x473979(0x1,_0x2f3e75(0x3e1)),_0x473979(0x1,{'campaignCustomerInstanceId':_0x4a32cd,'eventName':_0x2c6b73,'eventProperties':_0x4a87e5,'name':_0x28a0b6,'web_optin_instance_id':_0x540527});let _0x5e50e2=_0x1a12dc[_0x2f3e75(0x3a0)]();if(_0x5e50e2==='Crawlers'||_0x5e50e2===_0x2f3e75(0x1e9))throw new Error('Invalid\x20platform');_0x2c6b73!==_0x2f3e75(0x3fe)&&(yield _0x1a12dc[_0x2f3e75(0x1f7)]());let _0x403328=[];_0x4a87e5&&_0x403328['push'](..._0x4a87e5),_0x403328[_0x2f3e75(0x25d)]({'eventProperty':'Platform','value':_0x5e50e2}),_0x403328['push']({'eventProperty':_0x2f3e75(0x26f),'value':_0x1a12dc[_0x2f3e75(0x3f1)]()}),_0x403328[_0x2f3e75(0x25d)]({'eventProperty':_0x2f3e75(0x213),'value':_0x1a12dc['getOSVersion']()});let _0xb6ac0=this[_0x2f3e75(0x217)](),_0x16d7b0=_0x3c2dae(this,_0x233903,_0x2d0fda)['call'](this,_0xb6ac0,_0x2c6b73,_0x403328);if(typeof _0x16d7b0==_0x2f3e75(0x402)){_0x473979(0x2,_0x16d7b0);return;}_0x1a12dc['updateSessionCreated']();let {id:_0x5c6c6a}=_0xb6ac0[_0x2c6b73],_0x1b96fd=_0x3c2dae(this,_0x233903,_0x1597cc)[_0x2f3e75(0x1dc)](this,_0x2dc0ac(_0x4086e0(_0x2dc0ac(_0x2dc0ac(_0x2dc0ac({},_0x4a32cd?{'campaignCustomerInstanceId':_0x4a32cd}:{}),_0x3ca411?{'campaignId':_0x3ca411}:{}),_0x540527?{'web_optin_instance_id':_0x540527}:{}),{'eventId':_0x5c6c6a,'eventProperties':_0x16d7b0,'sessionId':localStorage[_0x2f3e75(0x225)](_0x2f3e75(0x3b3))||_0x2f3e75(0x222)}),_0x28a0b6?{'name':_0x28a0b6}:{}));if(_0x473979(0x1,'Final\x20Event\x20Payload\x20to\x20be\x20sent:'),_0x473979(0x1,_0x1b96fd),_0x31c366['offline']){let _0x4d179c=JSON[_0x2f3e75(0x420)](localStorage[_0x2f3e75(0x225)]('offlineEvents')||'[]');_0x4d179c[_0x2f3e75(0x38a)]<=0x32&&(_0x4d179c[_0x2f3e75(0x25d)](..._0x1b96fd[_0x2f3e75(0x314)]),localStorage['setItem'](_0x2f3e75(0x3e0),JSON[_0x2f3e75(0x1f9)](_0x4d179c)));return;}let _0xff3d84=yield this[_0x2f3e75(0x3a5)](_0x1b96fd,_0x3f0a27);(_0x233860=_0xff3d84==null?void 0x0:_0xff3d84[_0x2f3e75(0x3f7)])!=null&&_0x233860[_0x2f3e75(0x1d9)]?(yield this[_0x2f3e75(0x2cc)]({'eventName':'optin_data'}),_0x531a48[_0x2f3e75(0x2c9)](_0xff3d84[_0x2f3e75(0x3f7)][_0x2f3e75(0x1d9)])):_0x2c6b73===_0x2f3e75(0x1a6)&&(yield this['recordDebugEvents']({'eventName':'no_optin','eventProperties':[{'eventProperty':'message','value':''+(_0x2f3e75(0x302)in window&&typeof((_0x499e66=window==null?void 0x0:window[_0x2f3e75(0x302)])==null?void 0x0:_0x499e66[_0x2f3e75(0x311)])!=_0x2f3e75(0x1ac))}]})),(_0x2a95a5=(_0x253d10=_0xff3d84==null?void 0x0:_0xff3d84['data'])==null?void 0x0:_0x253d10[_0x2f3e75(0x1df)])==null||_0x2a95a5['forEach'](_0x2fe20a=>{const _0x54c66b=_0x2f3e75;if(_0x3c1fed[_0x54c66b(0x39b)](_0x2fe20a[_0x54c66b(0x366)][_0x54c66b(0x3ae)])){if(_0x3c2dae(this,_0x233903,_0xbeda39)[_0x54c66b(0x1dc)](this,_0x2fe20a['campaignId'])){_0x473979(0x1,_0x54c66b(0x1ed)+_0x2fe20a[_0x54c66b(0x261)]);return;}_0x3c1fed[_0x54c66b(0x2fa)](_0x2fe20a);}else _0x282751[_0x54c66b(0x1bb)](_0x2fe20a[_0x54c66b(0x366)][_0x54c66b(0x3ae)])&&_0x282751[_0x54c66b(0x1c6)](_0x2fe20a);}),_0xc47fc2(_0x2f3e75(0x41b),!0x1),_0x13ac33(_0x2f3e75(0x2d4),!0x1);}),_0x64067d=>{const _0x41a3e7=_0x1898a0;_0x12a14a[_0x41a3e7(0x367)]()==='67'&&_0x64067d[_0x41a3e7(0x366)]!==_0x41a3e7(0x266)&&_0x64067d[_0x41a3e7(0x366)]!==_0x41a3e7(0x27a)&&_0x64067d[_0x41a3e7(0x366)][_0x41a3e7(0x34c)](_0x41a3e7(0x266));},_0x4abc57);});},_0xbeda39=function(_0x49e814){const _0x339e8f=_0x24c78c;return _0x473979(0x1,_0x339e8f(0x404)+_0x49e814),JSON[_0x339e8f(0x420)](localStorage[_0x339e8f(0x225)](_0x339e8f(0x26e))||'[]')[_0x339e8f(0x28d)](_0x44f971=>_0x44f971[_0x339e8f(0x261)]===_0x49e814);},_0x2d0fda=function(_0x3ae076,_0x55e96c,_0x1dbb97){const _0x5d92f9=_0x24c78c;if(!Object[_0x5d92f9(0x36c)][_0x5d92f9(0x26c)][_0x5d92f9(0x1dc)](_0x3ae076,_0x55e96c))return _0x5d92f9(0x3c7)+_0x55e96c+_0x5d92f9(0x403);if(!_0x1dbb97)return[];let _0x1a25e6=_0x3ae076[_0x55e96c];if(!(_0x1a25e6!=null&&_0x1a25e6[_0x5d92f9(0x30f)]))return _0x473979(0x2,_0x5d92f9(0x3c7)+_0x55e96c+_0x5d92f9(0x1ff)),_0x5d92f9(0x3c7)+_0x55e96c+'\x20does\x20not\x20have\x20a\x20valid\x20eventProperty.';let _0x3c7e29=_0x1dbb97[_0x5d92f9(0x204)](({eventProperty:_0x50cbda})=>!Object[_0x5d92f9(0x36c)][_0x5d92f9(0x26c)][_0x5d92f9(0x1dc)](_0x1a25e6['eventProperty'],_0x50cbda))[_0x5d92f9(0x378)](({eventProperty:_0x4b4c1f})=>_0x4b4c1f);return _0x3c7e29[_0x5d92f9(0x38a)]>0x0&&(_0x473979(0x2,_0x5d92f9(0x1ab)+_0x55e96c+'\x20invalid\x20eventProperties:\x20'+_0x3c7e29['join'](',\x20')+'.'),_0x1dbb97=_0x1dbb97[_0x5d92f9(0x204)](({eventProperty:_0xb251e2})=>!_0x3c7e29[_0x5d92f9(0x34c)](_0xb251e2))),_0x1dbb97[_0x5d92f9(0x378)](({eventProperty:_0x165ca1,value:_0x521037})=>({'eventPropertyId':_0x1a25e6[_0x5d92f9(0x30f)][_0x165ca1]['id'],'value':_0x521037}));},_0x1597cc=function(_0x2ff52b){const _0xe26138=_0x24c78c;return{'customerId':localStorage[_0xe26138(0x225)](_0xe26138(0x3ec))||'','deviceId':localStorage[_0xe26138(0x225)](_0xe26138(0x352))||'','events':[_0x2ff52b]};},_0x4ccd3c=function(_0x44f2ed){const _0x68b536=_0x24c78c;_0x473979(0x1,_0x68b536(0x19c)),_0x473979(0x1,_0x44f2ed);let _0x55a6ff=localStorage['getItem'](_0x68b536(0x26e));_0x55a6ff&&_0x55a6ff!==_0x68b536(0x1ac)?(_0x55a6ff=JSON[_0x68b536(0x420)](_0x55a6ff),_0x55a6ff[_0x68b536(0x25d)](_0x44f2ed)):_0x55a6ff=[_0x44f2ed],localStorage[_0x68b536(0x3bc)](_0x68b536(0x26e),JSON[_0x68b536(0x1f9)](_0x55a6ff));},_0x31718d=function(_0x4a5f07){const _0xcbd388=_0x24c78c;let _0x3eca1e=JSON[_0xcbd388(0x420)](localStorage[_0xcbd388(0x225)]('preInitializedEvents')||'[]'),_0x107a96=_0x3eca1e['findIndex'](_0x48a89b=>_0x48a89b[_0xcbd388(0x334)]===_0x4a5f07);_0x107a96>=0x0&&_0x3eca1e[_0xcbd388(0x340)](_0x107a96,0x1),localStorage[_0xcbd388(0x3bc)]('preInitializedEvents',JSON[_0xcbd388(0x1f9)](_0x3eca1e));},_0x5e7b66(_0xb95127,_0x15c615);var _0xf13873=_0xb95127,_0x33c4a0=_0xf13873[_0x24c78c(0x432)](),_0x5f3bee,_0x43ed43,_0x202977,_0x2db4a0,_0x2fee18,_0x439c19,_0x18db26,_0x4875df,_0x47fe04,_0xc7bd04,_0x46f11e,_0x295ce4,_0x3f7484=class _0x57519d{constructor(){const _0x52c1c2=_0x24c78c;_0x5e7b66(this,_0x43ed43),_0x5e7b66(this,_0x18db26,_0x48cb98=>{const _0x47e96f=_0x3d2f;_0x1a12dc[_0x47e96f(0x242)]({'id':_0x48cb98,'localStorageKey':_0x47e96f(0x2bb)});}),this[_0x52c1c2(0x2c5)]=()=>{const _0xbcd570=_0x52c1c2;_0x1a12dc['loadActionInLocalStorage']({'actionCondition':_0xba8593=>_0xba8593[_0xbcd570(0x366)][_0xbcd570(0x3ae)]==='ContentCard','actionMethod':_0xeab210=>_0x3c2dae(this,_0x43ed43,_0x2db4a0)[_0xbcd570(0x1dc)](this,_0xeab210[_0xbcd570(0x261)]),'localStorageKey':_0xbcd570(0x2bb)});},_0x5e7b66(this,_0x295ce4,()=>{const _0x5a2fd7=_0x52c1c2;_0x1a12dc[_0x5a2fd7(0x371)](_0x5a2fd7(0x2bb));});}static['getInstance'](){const _0x55ea9e=_0x24c78c;var _0x629dea;return _0x101b70(_0x57519d,_0x5f3bee)||(_0x9fc6c6(_0x57519d,_0x5f3bee,new _0x57519d()),_0x3c2dae(_0x629dea=_0x101b70(_0x57519d,_0x5f3bee),_0x43ed43,_0x202977)[_0x55ea9e(0x1dc)](_0x629dea)),_0x101b70(_0x57519d,_0x5f3bee);}['showContentCard'](_0x3f185f){const _0x5d6f5b=_0x24c78c;let _0xf76667=JSON['parse'](localStorage[_0x5d6f5b(0x225)](_0x5d6f5b(0x2bb))||'{}');if(_0xf76667&&_0xf76667[_0x3f185f==null?void 0x0:_0x3f185f[_0x5d6f5b(0x261)]]){_0x473979(0x1,'ContentCard\x20already\x20in\x20cache');return;}_0x3c2dae(this,_0x43ed43,_0x46f11e)[_0x5d6f5b(0x1dc)](this,_0x3f185f),_0x101b70(this,_0x295ce4)['call'](this),_0x3c2dae(this,_0x43ed43,_0x2db4a0)[_0x5d6f5b(0x1dc)](this,_0x3f185f[_0x5d6f5b(0x261)]);}[_0x24c78c(0x1bb)](_0x18573c){const _0x5b2b31=_0x24c78c;return _0x18573c===_0x5b2b31(0x25e);}};_0x5f3bee=new WeakMap(),_0x43ed43=new WeakSet(),_0x202977=function(){return _0x6ae56d(this,null,function*(){});},_0x2db4a0=function(_0xcac9a5){const _0xb3e539=_0x24c78c;let _0x2e84b2=_0x3c2dae(this,_0x43ed43,_0x2fee18)[_0xb3e539(0x1dc)](this);if(document['getElementById']('contentCard_container_'+_0xcac9a5)){_0x473979(0x1,_0xb3e539(0x2d9)),_0x101b70(this,_0x18db26)[_0xb3e539(0x1dc)](this,_0xcac9a5);return;}if(_0x2e84b2!=null&&_0x2e84b2[_0xcac9a5])switch(_0x2e84b2[_0xcac9a5]['campaignEntryTime']){case'DELAY':{_0x3c2dae(this,_0x43ed43,_0x439c19)[_0xb3e539(0x1dc)](this,_0x2e84b2[_0xcac9a5]);break;}case'IMMEDIATELY':{_0x3c2dae(this,_0x43ed43,_0x4875df)['call'](this,_0x2e84b2[_0xcac9a5]);break;}case _0xb3e539(0x423):{_0x3c2dae(this,_0x43ed43,_0xc7bd04)[_0xb3e539(0x1dc)](this,_0x2e84b2[_0xcac9a5]);break;}default:return;}},_0x2fee18=function(){const _0x466394=_0x24c78c;let _0xed61e5=localStorage[_0x466394(0x225)](_0x466394(0x2bb));return _0xed61e5?JSON[_0x466394(0x420)](_0xed61e5):null;},_0x439c19=function(_0x3d202c){const _0x3e52ea=_0x24c78c;_0x1a12dc[_0x3e52ea(0x201)]({'clearActionMethod':_0x101b70(this,_0x18db26)['bind'](this),'data':_0x3d202c,'displayMethod':_0x3c2dae(this,_0x43ed43,_0x4875df)[_0x3e52ea(0x1fd)](this),'idKey':_0x3e52ea(0x261),'timeValueKey':_0x3e52ea(0x1c5)});},_0x18db26=new WeakMap(),_0x4875df=function(_0x4aad29){const _0x417be1=_0x24c78c;var _0x344229;if(_0x473979(0x1,_0x417be1(0x2b4)),_0x473979(0x1,_0x4aad29),document[_0x417be1(0x1ea)](_0x417be1(0x25c)+_0x4aad29[_0x417be1(0x261)]))_0x473979(0x1,_0x417be1(0x2d9));else{let _0x17edef=_0x3c2dae(this,_0x43ed43,_0x47fe04)['call'](this,_0x417be1(0x3cd),_0x4aad29);_0x473979(0x1,'Appending\x20ContentCard\x20to:\x20'+_0x4aad29['message'][_0x417be1(0x365)]);let _0x49ab1c=document['querySelector'](''+_0x4aad29[_0x417be1(0x366)][_0x417be1(0x365)]);_0x473979(0x1,_0x417be1(0x3b7)),_0x473979(0x1,_0x49ab1c),_0x49ab1c?(_0x49ab1c[_0x417be1(0x35b)]=_0x17edef['outerHTML'],_0x33c4a0[_0x417be1(0x315)]({'campaignCustomerInstanceId':_0x4aad29['campaignCustomerInstanceId'],'campaignId':_0x4aad29[_0x417be1(0x261)],'eventName':_0x2628d7,'eventProperties':[{'eventProperty':_0x417be1(0x292),'value':JSON[_0x417be1(0x1f9)]({'campaignId':_0x4aad29[_0x417be1(0x261)]})}],'name':'view'}),(_0x344229=document[_0x417be1(0x1ea)]('contentCard_container_'+_0x4aad29['campaignId']))==null||_0x344229[_0x417be1(0x1cd)](_0x417be1(0x427),()=>{const _0x456878=_0x417be1;_0x33c4a0[_0x456878(0x315)]({'campaignCustomerInstanceId':_0x4aad29['campaignCustomerInstanceId'],'campaignId':_0x4aad29['campaignId'],'eventName':_0x2628d7,'eventProperties':[{'eventProperty':'Content\x20Card\x20Click','value':JSON[_0x456878(0x1f9)]({'campaignId':_0x4aad29[_0x456878(0x261)]})}],'name':'click'});})):_0x473979(0x2,'Element\x20'+_0x4aad29['message'][_0x417be1(0x365)]+_0x417be1(0x418));}_0x101b70(this,_0x18db26)[_0x417be1(0x1dc)](this,_0x4aad29[_0x417be1(0x261)]);},_0x47fe04=function(_0x2c98b2,_0x37d480){const _0x157cb1=_0x24c78c;var _0x1014f7;let {campaignId:_0x437f79,message:{design:_0xff58ad}}=_0x37d480,_0x492b32=document['createElement'](_0x2c98b2);return _0x492b32['id']=_0x157cb1(0x25c)+_0x437f79,_0x492b32[_0x157cb1(0x35b)]=_0xff58ad,(_0x1014f7=_0x492b32[_0x157cb1(0x276)]('.u-close-button'))==null||_0x1014f7[_0x157cb1(0x32b)](),_0x492b32;},_0xc7bd04=function(_0x3d18cc){const _0x3b65b5=_0x24c78c;_0x1a12dc[_0x3b65b5(0x32c)]({'data':_0x3d18cc,'displayMethod':_0x3c2dae(this,_0x43ed43,_0x4875df)['bind'](this),'timeValueKey':_0x3b65b5(0x1c5)});},_0x46f11e=function(_0x3b4227){const _0x1cd28=_0x24c78c;_0x1a12dc['storeActionInLocalStorage'](_0x3b4227,_0x1cd28(0x2bb),_0x1cd28(0x261));},_0x295ce4=new WeakMap(),_0x5e7b66(_0x3f7484,_0x5f3bee);var _0x1dd59a=_0x3f7484,_0x282751=_0x1dd59a['getInstance'](),_0x5c87e8=new Set([_0x24c78c(0x1ad),'adidxbot','adsbot-google','adsense',_0x24c78c(0x3d1),_0x24c78c(0x1b4),_0x24c78c(0x40d),_0x24c78c(0x3d4),_0x24c78c(0x409),_0x24c78c(0x411),'blexbot',_0x24c78c(0x1e4),_0x24c78c(0x341),_0x24c78c(0x322),'semrush','seobility',_0x24c78c(0x2c8),_0x24c78c(0x1da),_0x24c78c(0x29b),_0x24c78c(0x3df),_0x24c78c(0x3d6),_0x24c78c(0x37e),_0x24c78c(0x3e9),_0x24c78c(0x3ce),'mj12bot','naverbot',_0x24c78c(0x235),'seekportbot',_0x24c78c(0x431),_0x24c78c(0x321),_0x24c78c(0x2ba),_0x24c78c(0x424),'amazonbot','applebot','claudebot',_0x24c78c(0x375),_0x24c78c(0x23c),_0x24c78c(0x205),_0x24c78c(0x39c),_0x24c78c(0x1e2),_0x24c78c(0x21c),_0x24c78c(0x348),_0x24c78c(0x2a4),_0x24c78c(0x1eb),'claude-user',_0x24c78c(0x2a2),_0x24c78c(0x216),_0x24c78c(0x1d3),'gpt-actions',_0x24c78c(0x3c6),_0x24c78c(0x224),_0x24c78c(0x2c1),_0x24c78c(0x2f6),'brightbot',_0x24c78c(0x419),_0x24c78c(0x3d5),_0x24c78c(0x415),_0x24c78c(0x29d),_0x24c78c(0x2ff),_0x24c78c(0x2d0),'google-safety','hetrixtools-uptime-monitoring-bot',_0x24c78c(0x3a6),_0x24c78c(0x2fe),_0x24c78c(0x1c7),'qatech',_0x24c78c(0x394),_0x24c78c(0x218),_0x24c78c(0x2c4),_0x24c78c(0x2a1),_0x24c78c(0x3bd),_0x24c78c(0x27d),'buffer-link-preview-bot','discordbot',_0x24c78c(0x3f3),_0x24c78c(0x277),_0x24c78c(0x279),_0x24c78c(0x36e),'github-camo','linkedinbot','microsoftpreview',_0x24c78c(0x33e),_0x24c78c(0x22f),_0x24c78c(0x3c4),'slacklinkexpandingbot',_0x24c78c(0x42f),_0x24c78c(0x316),_0x24c78c(0x267),'vercel-screenshot-bot','adyen-webhook',_0x24c78c(0x253),_0x24c78c(0x35f),_0x24c78c(0x282),_0x24c78c(0x1cb),'inngest',_0x24c78c(0x393),_0x24c78c(0x2d2),_0x24c78c(0x383),'sanity-webhooks','stripe-webhooks',_0x24c78c(0x304),_0x24c78c(0x1fc),_0x24c78c(0x258),'feedfetcher',_0x24c78c(0x1ce),_0x24c78c(0x2a5),_0x24c78c(0x309),_0x24c78c(0x25a),'google-read-aloud','google-storebot','google-image-proxy',_0x24c78c(0x245),_0x24c78c(0x3af),_0x24c78c(0x396),'geedoproductsearchbot','google-storebot',_0x24c78c(0x1a7),_0x24c78c(0x3a4),_0x24c78c(0x258),_0x24c78c(0x3c2),'contentkingbot',_0x24c78c(0x22f),_0x24c78c(0x37f),_0x24c78c(0x2c4),_0x24c78c(0x2a1)]),_0xd3cc00,_0x4af512,_0x10732b,_0x522a34,_0x484c20,_0x3da2bb,_0x1418d8,_0x130d50,_0x5a202c,_0x2c2c15,_0x4c5997=class _0x2e8dc5{constructor(){const _0x2148a3=_0x24c78c;_0x5e7b66(this,_0x3da2bb),_0x5e7b66(this,_0x4af512,_0x2148a3(0x39a)),_0x5e7b66(this,_0x10732b,0x18*0x3c*0x3c*0x3e8),_0x5e7b66(this,_0x522a34,navigator[_0x2148a3(0x1a8)]['toLowerCase']()),_0x5e7b66(this,_0x484c20,null);}static['getInstance'](){const _0x28e92e=_0x24c78c;return _0x101b70(this,_0xd3cc00)||(_0x9fc6c6(this,_0xd3cc00,new _0x2e8dc5()),_0x473979(0x4,_0x28e92e(0x1bf))),_0x101b70(this,_0xd3cc00);}['getOperatingSystem'](){const _0x4f13a4=_0x24c78c;if(_0x1a12dc[_0x4f13a4(0x2de)])return _0x3c2dae(this,_0x3da2bb,_0x2c2c15)[_0x4f13a4(0x1dc)](this);if(_0x101b70(this,_0x484c20)!==null)return _0x473979(0x4,_0x4f13a4(0x270)+_0x101b70(this,_0x484c20)),_0x101b70(this,_0x484c20);let _0x5eb40f=_0x3c2dae(this,_0x3da2bb,_0x130d50)[_0x4f13a4(0x1dc)](this);if(_0x5eb40f!==null)return _0x9fc6c6(this,_0x484c20,_0x5eb40f),_0x5eb40f;_0x473979(0x1,_0x4f13a4(0x20f));let _0x44ea88=_0x3c2dae(this,_0x3da2bb,_0x2c2c15)['call'](this);return _0x9fc6c6(this,_0x484c20,_0x44ea88),_0x3c2dae(this,_0x3da2bb,_0x5a202c)['call'](this,_0x44ea88),_0x473979(0x1,'Device\x20detection\x20completed:\x20'+_0x44ea88),_0x44ea88;}[_0x24c78c(0x34e)](){const _0x52a988=_0x24c78c;try{let _0x57ee81=_0x3c2dae(this,_0x3da2bb,_0x1418d8)['call'](this,_0x101b70(this,_0x522a34));localStorage[_0x52a988(0x3d3)](_0x57ee81),_0x9fc6c6(this,_0x484c20,null),_0x473979(0x1,_0x52a988(0x361));}catch(_0x15a77d){_0x473979(0x2,_0x52a988(0x399)+_0x15a77d);}}['getCacheStats'](){const _0x1d67fe=_0x24c78c;try{let _0x6aeb1f=_0x3c2dae(this,_0x3da2bb,_0x1418d8)[_0x1d67fe(0x1dc)](this,_0x101b70(this,_0x522a34)),_0xa70f45=localStorage[_0x1d67fe(0x225)](_0x6aeb1f);if(!_0xa70f45)return _0x473979(0x4,_0x1d67fe(0x214)),{'cached':!0x1};let {result:_0x519f67,timestamp:_0x45c837}=JSON[_0x1d67fe(0x420)](_0xa70f45),_0x2b7d12={'age':Date['now']()-_0x45c837,'cached':!0x0,'expires':_0x101b70(this,_0x10732b)-(Date[_0x1d67fe(0x32f)]()-_0x45c837),'result':_0x519f67};return _0x473979(0x4,_0x1d67fe(0x346)+JSON[_0x1d67fe(0x1f9)](_0x2b7d12)),_0x2b7d12;}catch(_0x51ad76){return _0x473979(0x2,_0x1d67fe(0x39f)+_0x51ad76),{'cached':!0x1,'error':_0x51ad76[_0x1d67fe(0x366)]};}}[_0x24c78c(0x29c)](){const _0x364fa2=_0x24c78c;return this['getOperatingSystem']()===_0x364fa2(0x24a);}['isMobile'](){const _0x454209=_0x24c78c;return this[_0x454209(0x3f1)]()===_0x454209(0x369);}[_0x24c78c(0x3fd)](){const _0x5d572a=_0x24c78c;return this[_0x5d572a(0x3f1)]()===_0x5d572a(0x422);}};_0xd3cc00=new WeakMap(),_0x4af512=new WeakMap(),_0x10732b=new WeakMap(),_0x522a34=new WeakMap(),_0x484c20=new WeakMap(),_0x3da2bb=new WeakSet(),_0x1418d8=function(_0x410e8d){const _0x2d8677=_0x24c78c;let _0xff2bc0=0x0;for(let _0x2b5274=0x0;_0x2b5274<_0x410e8d['length'];_0x2b5274++)_0xff2bc0=(_0xff2bc0<<0x5)-_0xff2bc0+_0x410e8d[_0x2d8677(0x255)](_0x2b5274)&0xffffffff;return _0x101b70(this,_0x4af512)+'_'+Math['abs'](_0xff2bc0);},_0x130d50=function(){const _0x33d0ba=_0x24c78c;try{let _0x17d6b1=_0x3c2dae(this,_0x3da2bb,_0x1418d8)[_0x33d0ba(0x1dc)](this,_0x101b70(this,_0x522a34)),_0x43daee=localStorage[_0x33d0ba(0x225)](_0x17d6b1);if(!_0x43daee)return _0x473979(0x4,'No\x20localStorage\x20cache\x20found'),null;let {result:_0x19526b,timestamp:_0x5c5c83,ua:_0xdeea24}=JSON[_0x33d0ba(0x420)](_0x43daee);return Date[_0x33d0ba(0x32f)]()-_0x5c5c83>_0x101b70(this,_0x10732b)||_0xdeea24!==_0x101b70(this,_0x522a34)?(localStorage[_0x33d0ba(0x3d3)](_0x17d6b1),_0x473979(0x4,_0x33d0ba(0x421)),null):(_0x473979(0x4,_0x33d0ba(0x34a)+_0x19526b),_0x19526b);}catch(_0x3bba9e){return _0x473979(0x2,_0x33d0ba(0x27c)+_0x3bba9e),null;}},_0x5a202c=function(_0x6f4325){const _0x10af06=_0x24c78c;try{let _0x1891cd=_0x3c2dae(this,_0x3da2bb,_0x1418d8)['call'](this,_0x101b70(this,_0x522a34)),_0x4f8f92={'result':_0x6f4325,'timestamp':Date[_0x10af06(0x32f)](),'ua':_0x101b70(this,_0x522a34)};localStorage[_0x10af06(0x3bc)](_0x1891cd,JSON[_0x10af06(0x1f9)](_0x4f8f92)),_0x473979(0x4,'Saved\x20to\x20localStorage\x20cache:\x20'+_0x6f4325);}catch(_0x5a4c85){_0x473979(0x2,'localStorage\x20save\x20error:\x20'+_0x5a4c85);}},_0x2c2c15=function(){const _0x3f3815=_0x24c78c;let _0x9ba2b2=_0x101b70(this,_0x522a34);if(_0x473979(0x4,_0x3f3815(0x248)+_0x9ba2b2[_0x3f3815(0x360)](0x0,0x32)+'...'),_0x9ba2b2[_0x3f3815(0x34c)]('googlebot')||_0x9ba2b2[_0x3f3815(0x34c)](_0x3f3815(0x29b))||_0x9ba2b2[_0x3f3815(0x34c)](_0x3f3815(0x277)))return _0x473979(0x4,_0x3f3815(0x3de)),_0x3f3815(0x24a);if(/android|iphone|ipad/i[_0x3f3815(0x389)](_0x9ba2b2))return/wv|wkwebview|instagram|facebook|fbav|fban|twitter|snapchat|pinterest|linkedin|tiktok/i[_0x3f3815(0x389)](_0x9ba2b2)?(_0x473979(0x4,_0x3f3815(0x2f4)),'Mobile'):(_0x473979(0x4,_0x3f3815(0x41a)),'Mobile');if(/windows|macintosh|linux|x11/i[_0x3f3815(0x389)](_0x9ba2b2)){_0x473979(0x4,_0x3f3815(0x300));let _0xb9301d=_0x9ba2b2[_0x3f3815(0x29a)](/[^a-z0-9\-_.]+/);for(let _0x1372e7 of _0xb9301d)if(_0x5c87e8[_0x3f3815(0x332)](_0x1372e7))return _0x473979(0x4,'Bot\x20token\x20found:\x20'+_0x1372e7),_0x3f3815(0x24a);return _0x473979(0x4,_0x3f3815(0x23a)),_0x3f3815(0x422);}return _0x473979(0x4,'Detected:\x20Unknown\x20device\x20type'),_0x3f3815(0x1e9);},_0x5e7b66(_0x4c5997,_0xd3cc00,null);var _0x4a6521=_0x4c5997,_0x393b97=_0x4a6521,_0x3d570f,_0x5b3179,_0x29585d,_0x567e51,_0x2d27c2,_0x5f2487,_0x513dc9,_0x537cc4,_0x4656b7,_0x44b23d,_0x2fef0,_0x33f0c7,_0x3f5cb0,_0x251981,_0x2078a3,_0x135a3e,_0x3ff077,_0x30b26f,_0x34d67e,_0x350f28,_0x4fa815,_0x7e8909,_0x46112c,_0x4e4531,_0x2cadf3,_0x5dfb00,_0x3ad1a8,_0x1ab3b3,_0xac81a7,_0x5346cf=class _0xc9b07{constructor(){const _0x560195=_0x24c78c;_0x5e7b66(this,_0x4656b7),_0x5e7b66(this,_0x5b3179),_0x5e7b66(this,_0x29585d),_0x5e7b66(this,_0x567e51),_0x5e7b66(this,_0x2d27c2,null),_0x5e7b66(this,_0x5f2487,null),_0x5e7b66(this,_0x513dc9,!0x1),_0x5e7b66(this,_0x537cc4,()=>{setInterval(()=>{const _0x226c36=_0x3d2f;_0x4246e0(_0x226c36(0x3d0),()=>_0x6ae56d(this,null,function*(){const _0x47d08d=_0x226c36;let _0x1cf6c3=localStorage[_0x47d08d(0x225)](_0x47d08d(0x368));if(_0x1cf6c3!==_0x101b70(this,_0x5f2487)){_0x473979(0x1,_0x47d08d(0x1f3)),_0x9fc6c6(this,_0x5f2487,_0x1cf6c3);let _0x5b09df=JSON[_0x47d08d(0x420)](_0x1cf6c3||'{}');if(_0x5b09df!=null&&_0x5b09df[_0x47d08d(0x210)]){_0x473979(0x1,'Pushing\x20message\x20to\x20SW\x20from\x20Shopify\x20data');let _0x4aefce=_0x5b09df[_0x47d08d(0x210)];delete _0x5b09df[_0x47d08d(0x210)],localStorage[_0x47d08d(0x3bc)]('mergn_shopify',JSON[_0x47d08d(0x1f9)](_0x5b09df)),_0x531a48['pushMessageToSW'](_0x4aefce);}if(_0x5b09df!=null&&_0x5b09df[_0x47d08d(0x1d9)]){let _0x525b7b=_0x5b09df[_0x47d08d(0x1d9)];delete _0x5b09df['optIn'],localStorage[_0x47d08d(0x3bc)]('mergn_shopify',JSON['stringify'](_0x5b09df)),_0x531a48[_0x47d08d(0x2c9)](_0x525b7b);}if(_0x5b09df!=null&&_0x5b09df[_0x47d08d(0x1df)]){let _0x2c898b=_0x5b09df[_0x47d08d(0x1df)];delete _0x5b09df[_0x47d08d(0x1df)],localStorage['setItem'](_0x47d08d(0x368),JSON[_0x47d08d(0x1f9)](_0x5b09df)),_0x2c898b['forEach'](_0x26d171=>{const _0x5163e5=_0x47d08d;_0x3c1fed[_0x5163e5(0x39b)](_0x26d171[_0x5163e5(0x366)][_0x5163e5(0x3ae)])?(_0x473979(0x1,_0x5163e5(0x2af)),_0x473979(0x1,_0x26d171),_0x3c1fed[_0x5163e5(0x2fa)](_0x26d171)):_0x282751[_0x5163e5(0x1bb)](_0x26d171[_0x5163e5(0x366)][_0x5163e5(0x3ae)])&&_0x282751[_0x5163e5(0x1c6)](_0x26d171);});}}}));},0x3e8);}),this[_0x560195(0x371)]=_0x4d4363=>{const _0x5a42e0=_0x560195;let _0x439188=()=>{const _0x5a5cd0=_0x3d2f;let _0x3571f9=JSON['parse'](localStorage[_0x5a5cd0(0x225)](_0x4d4363)||'{}');Object[_0x5a5cd0(0x3ff)](_0x3571f9)[_0x5a5cd0(0x1bc)](_0x208f13=>{const _0x35c1c3=_0x5a5cd0;_0x3571f9[_0x208f13][_0x35c1c3(0x3b8)]=new Date()[_0x35c1c3(0x22e)]();}),localStorage[_0x5a5cd0(0x3bc)](_0x4d4363,JSON[_0x5a5cd0(0x1f9)](_0x3571f9));};_0x439188(),window[_0x5a42e0(0x1cd)](_0x5a42e0(0x2e7),_0x439188);},this[_0x560195(0x242)]=({id:_0x3b756b,localStorageKey:_0x1450b6})=>{const _0x368f9a=_0x560195;let _0x82fbe2=JSON[_0x368f9a(0x420)](localStorage[_0x368f9a(0x225)](_0x1450b6)||'{}');_0x82fbe2[_0x3b756b]&&delete _0x82fbe2[_0x3b756b],localStorage['setItem'](_0x1450b6,JSON[_0x368f9a(0x1f9)](_0x82fbe2));},this[_0x560195(0x41d)]=({actionCondition:_0x427677,actionMethod:_0x42d9df,localStorageKey:_0x25f86e})=>{const _0x531613=_0x560195;let _0x1b1205=JSON[_0x531613(0x420)](localStorage[_0x531613(0x225)](_0x25f86e)||'{}');Object[_0x531613(0x3ff)](_0x1b1205)[_0x531613(0x1bc)](_0x416e3f=>{_0x427677(_0x1b1205[_0x416e3f])&&_0x42d9df(_0x1b1205[_0x416e3f]);});};}static[_0x24c78c(0x432)](){return _0x101b70(_0xc9b07,_0x3d570f)||_0x9fc6c6(_0xc9b07,_0x3d570f,new _0xc9b07()),_0x101b70(_0xc9b07,_0x3d570f);}[_0x24c78c(0x3cc)](_0x330b73,_0x4f4046){return _0x6ae56d(this,null,function*(){const _0x5459d8=_0x3d2f;_0x473979(0x1,'Initializing\x20base\x20service');let _0x24144b=_0x3c2dae(this,_0x4656b7,_0x3f5cb0)['call'](this);if(_0x4f4046!=null&&_0x4f4046[_0x5459d8(0x312)]&&_0x9fc6c6(this,_0x513dc9,!0x0),_0x3c2dae(this,_0x4656b7,_0x44b23d)[_0x5459d8(0x1dc)](this,_0x330b73),_0x12a14a[_0x5459d8(0x367)]()==='35'){_0x31c366[_0x5459d8(0x288)]=!0x0;return;}let _0x125f65=this[_0x5459d8(0x3a0)]();if(_0x125f65===_0x5459d8(0x24a)||_0x125f65===_0x5459d8(0x1e9)){_0x473979(0x2,'Not\x20initializing\x20base\x20service\x20for\x20crawlers\x20or\x20unknown\x20platforms');return;}if(yield _0x12a14a[_0x5459d8(0x269)](),_0x473979(0x1,_0x5459d8(0x290)),yield _0x3c2dae(this,_0x4656b7,_0x2cadf3)[_0x5459d8(0x1dc)](this,0x3),_0x4f4046!=null&&_0x4f4046[_0x5459d8(0x312)]&&_0x101b70(this,_0x537cc4)[_0x5459d8(0x1dc)](this),_0x4f4046!=null&&_0x4f4046[_0x5459d8(0x3b6)])try{_0x31c366[_0x5459d8(0x305)]=!0x0,yield this[_0x5459d8(0x1fa)](_0x4f4046[_0x5459d8(0x3b6)]);}finally{_0x31c366[_0x5459d8(0x305)]=!0x1;}yield this[_0x5459d8(0x1f7)](),yield _0x33c4a0[_0x5459d8(0x3fa)](),yield _0x27f1f8[_0x5459d8(0x1ec)](),_0x33c4a0[_0x5459d8(0x2cc)]({'eventName':_0x5459d8(0x2f2)}),_0x473979(0x1,_0x5459d8(0x337)),yield _0x4246e0(_0x5459d8(0x342),()=>_0x6ae56d(this,null,function*(){const _0x453497=_0x5459d8;yield _0x531a48[_0x453497(0x3cc)](_0x24144b,_0x4f4046==null?void 0x0:_0x4f4046[_0x453497(0x38d)],_0x4f4046==null?void 0x0:_0x4f4046[_0x453497(0x35c)]);})),yield _0x3c2dae(this,_0x4656b7,_0xac81a7)[_0x5459d8(0x1dc)](this,_0x4f4046==null?void 0x0:_0x4f4046[_0x5459d8(0x312)]);let _0x272462=history[_0x5459d8(0x3f6)];history[_0x5459d8(0x3f6)]=(..._0x2278ed)=>{const _0x5e8261=_0x5459d8;_0x272462['apply'](history,_0x2278ed),_0x3c2dae(this,_0x4656b7,_0x1ab3b3)['call'](this,_0x4f4046==null?void 0x0:_0x4f4046[_0x5e8261(0x312)]);},_0x473979(0x1,'tracking\x20page\x20change\x20register');});}[_0x24c78c(0x24c)](_0x4d15ed){_0x9fc6c6(this,_0x5b3179,_0x4d15ed);}[_0x24c78c(0x1ae)](_0x10de4a){_0x9fc6c6(this,_0x29585d,_0x10de4a);}['setOperatingSystem'](_0x343754){_0x9fc6c6(this,_0x567e51,_0x343754);}[_0x24c78c(0x372)](_0x546b9f){_0x9fc6c6(this,_0x2d27c2,_0x546b9f);}['getPreviousUrl'](){return _0x101b70(this,_0x2d27c2);}[_0x24c78c(0x3a0)](){return _0x101b70(this,_0x5b3179);}['getOSVersion'](){return _0x101b70(this,_0x29585d);}[_0x24c78c(0x3f1)](){return _0x101b70(this,_0x567e51);}get[_0x24c78c(0x2de)](){return _0x101b70(this,_0x513dc9);}['updateSessionCreated'](){}[_0x24c78c(0x32c)]({data:_0x9da67f,displayMethod:_0x263716,timeValueKey:_0x2f48e3}){const _0x13904d=_0x24c78c;let _0x556d3b=()=>{const _0x28d40c=_0x3d2f;var _0x1dc5cd;let _0x30c196=window[_0x28d40c(0x37a)],_0x335441=document[_0x28d40c(0x3d8)]['scrollHeight'];window['scrollY']/(_0x335441-_0x30c196)*0x64>(((_0x1dc5cd=_0x9da67f[_0x2f48e3])==null?void 0x0:_0x1dc5cd['value'])||0x0)&&(window[_0x28d40c(0x377)](_0x28d40c(0x226),_0x556d3b),_0x263716(_0x9da67f));};window[_0x13904d(0x1cd)](_0x13904d(0x226),_0x556d3b);}[_0x24c78c(0x201)]({clearActionMethod:_0x180e64,data:_0x3ea8f2,displayMethod:_0x20c4f4,idKey:_0x2bf35d,timeValueKey:_0x27034e}){const _0x6e5556=_0x24c78c;var _0xea3912,_0x3abfd5,_0x3b62c0;let _0xac8382=(_0xea3912=_0x3ea8f2[_0x27034e])==null?void 0x0:_0xea3912[_0x6e5556(0x3f2)];((_0x3abfd5=_0x3ea8f2[_0x27034e])==null?void 0x0:_0x3abfd5[_0x6e5556(0x19f)])===_0x6e5556(0x297)&&(_0xac8382=_0xac8382*0x3c);let _0x245a85=_0x3ea8f2[_0x6e5556(0x3b8)]-0x1f4+(_0xac8382||0x0)*0x3e8-new Date()[_0x6e5556(0x22e)]();_0x473979(0x1,_0x6e5556(0x26d)+_0x3ea8f2['initialTime']),_0x473979(0x1,_0x6e5556(0x1a5)+((_0x3b62c0=_0x3ea8f2[_0x27034e])==null?void 0x0:_0x3b62c0[_0x6e5556(0x3f2)])),_0x473979(0x1,'Current\x20time:\x20'+new Date()[_0x6e5556(0x22e)]()),_0x473979(0x1,'Time\x20difference:\x20'+_0x245a85),_0x245a85>0x0?setTimeout(()=>{_0x180e64(_0x3ea8f2[_0x2bf35d]),_0x20c4f4(_0x3ea8f2);},_0x245a85):(_0x180e64(_0x3ea8f2[_0x2bf35d]),_0x20c4f4(_0x3ea8f2));}['storeActionInLocalStorage'](_0x1aa9a7,_0x38697c,_0x2fa8cc){const _0x48baa1=_0x24c78c;var _0x2a1dcd;let _0x48085f=JSON[_0x48baa1(0x420)](localStorage[_0x48baa1(0x225)](_0x38697c)||'{}'),_0x47c5c6=(_0x2a1dcd=_0x2fa8cc in _0x1aa9a7&&_0x1aa9a7[_0x2fa8cc])!=null?_0x2a1dcd:'';_0x47c5c6&&(_0x48085f[_0x47c5c6]=_0x4086e0(_0x2dc0ac({},_0x1aa9a7),{'initialTime':new Date()[_0x48baa1(0x22e)]()}),localStorage[_0x48baa1(0x3bc)](_0x38697c,JSON[_0x48baa1(0x1f9)](_0x48085f)));}['checkTTL'](){return _0x6ae56d(this,null,function*(){const _0x56c5a4=_0x3d2f;yield _0x4246e0(_0x56c5a4(0x1c0),()=>_0x6ae56d(this,null,function*(){const _0x51c996=_0x56c5a4;if(_0x101b70(this,_0x513dc9))return;_0x473979(0x1,_0x51c996(0x273)),_0x13ac33('Checking\x20TTL',!0x0),_0xc47fc2(_0x51c996(0x249),!0x0);let _0x48a9c4=localStorage['getItem']('ttl'),_0x6f5900=!0x1;_0x6f5900=_0x3c2dae(this,_0x4656b7,_0x3f5cb0)[_0x51c996(0x1dc)](this,_0x48a9c4),_0x48a9c4!==null&&_0x6f5900&&(localStorage[_0x51c996(0x3d3)](_0x51c996(0x306)),localStorage[_0x51c996(0x3d3)](_0x51c996(0x3b3)),localStorage[_0x51c996(0x3bc)](_0x51c996(0x306),''+new Date()[_0x51c996(0x22e)]()),yield _0x3c2dae(this,_0x4656b7,_0x4fa815)[_0x51c996(0x1dc)](this),this['clearLocalStorage']()),(!_0x48a9c4||_0x6f5900||_0x3c2dae(this,_0x4656b7,_0x34d67e)[_0x51c996(0x1dc)](this))&&(_0x3c2dae(this,_0x4656b7,_0x3ff077)['call'](this)&&_0x3c2dae(this,_0x4656b7,_0x350f28)[_0x51c996(0x1dc)](this),_0x3c2dae(this,_0x4656b7,_0x135a3e)[_0x51c996(0x1dc)](this)&&(yield this[_0x51c996(0x1fa)]()),(_0x3c2dae(this,_0x4656b7,_0x3f5cb0)[_0x51c996(0x1dc)](this)||_0x3c2dae(this,_0x4656b7,_0x251981)[_0x51c996(0x1dc)](this))&&(yield _0x3c2dae(this,_0x4656b7,_0x46112c)[_0x51c996(0x1dc)](this)),yield _0x3c2dae(this,_0x4656b7,_0x4fa815)[_0x51c996(0x1dc)](this),(_0x3c2dae(this,_0x4656b7,_0x3f5cb0)['call'](this)||_0x3c2dae(this,_0x4656b7,_0x2078a3)[_0x51c996(0x1dc)](this))&&(yield _0x3c2dae(this,_0x4656b7,_0x4e4531)['call'](this))),_0xc47fc2(_0x51c996(0x249),!0x1),_0x13ac33('Checking\x20TTL',!0x1);}));});}['clearLocalStorage'](){const _0x14095a=_0x24c78c;localStorage['removeItem'](_0x14095a(0x2bb)),localStorage[_0x14095a(0x3d3)]('events'),localStorage['removeItem'](_0x14095a(0x347)),localStorage[_0x14095a(0x3d3)](_0x14095a(0x3e0));}['checkIfIdentityExists'](_0x4e9460){return!0x1;}[_0x24c78c(0x2f7)](_0x498263){const _0x493ae9=_0x24c78c;let _0x3e0f1a=this['encodeData'](_0x498263);this['setCookie'](_0x493ae9(0x356),_0x3e0f1a,0x16d);}[_0x24c78c(0x260)](){const _0x2bcd8d=_0x24c78c;document[_0x2bcd8d(0x1d5)]='mergn_identity=;\x20expires=Thu,\x2001\x20Jan\x201970\x2000:00:00\x20UTC;\x20path=/;';}['encodeData'](_0xee067e){const _0x55be33=_0x24c78c;let _0x4768e2=new TextEncoder()['encode'](_0xee067e),_0x5dcf79='';for(let _0x309e32=0x0;_0x309e32<_0x4768e2[_0x55be33(0x38a)];_0x309e32++)_0x5dcf79+=String[_0x55be33(0x23d)](_0x4768e2[_0x309e32]);return btoa(_0x5dcf79);}[_0x24c78c(0x395)](_0x3eeffc){const _0x1ebce5=_0x24c78c;let _0x216c6d=atob(_0x3eeffc),_0x215e16=new Uint8Array(_0x216c6d[_0x1ebce5(0x38a)]);for(let _0x1bbc22=0x0;_0x1bbc22<_0x216c6d['length'];_0x1bbc22++)_0x215e16[_0x1bbc22]=_0x216c6d[_0x1ebce5(0x255)](_0x1bbc22);return new TextDecoder()['decode'](_0x215e16);}[_0x24c78c(0x3a9)](_0x35aaee){const _0x156273=_0x24c78c;var _0x263fc6;let _0x594b7e=(';\x20'+document['cookie'])[_0x156273(0x29a)](';\x20'+_0x35aaee+'=');return _0x594b7e[_0x156273(0x38a)]===0x2&&((_0x263fc6=_0x594b7e[_0x156273(0x42a)]())==null?void 0x0:_0x263fc6[_0x156273(0x29a)](';')[_0x156273(0x1b6)]())||null;}[_0x24c78c(0x2eb)](_0x5a7ff1,_0x44d73a,_0x41bfaa){const _0x243595=_0x24c78c;let _0x59c316=new Date();_0x59c316[_0x243595(0x2ac)](_0x59c316[_0x243595(0x22e)]()+_0x41bfaa*0x18*0x3c*0x3c*0x3e8);let _0x54f451='expires='+_0x59c316[_0x243595(0x2c0)]();document[_0x243595(0x1d5)]=_0x5a7ff1+'='+_0x44d73a+';\x20'+_0x54f451+_0x243595(0x2fd);}[_0x24c78c(0x1fa)](_0x5821e6){return _0x6ae56d(this,null,function*(){const _0xf3b873=_0x3d2f;_0x473979(0x1,'identity\x20received:\x20'),_0x473979(0x1,_0x5821e6);let _0x22c8f7=this[_0xf3b873(0x31d)](_0x5821e6);if(_0x473979(0x1,_0xf3b873(0x2e2)+_0x22c8f7),typeof _0x22c8f7==_0xf3b873(0x3ca)&&_0x22c8f7)return;let _0x67114f=localStorage['getItem'](_0xf3b873(0x352));(!_0x67114f||_0x67114f==='undefined')&&(_0x67114f=_0x3c2dae(this,_0x4656b7,_0x350f28)[_0xf3b873(0x1dc)](this));let _0xf1607a={'deviceId':_0x67114f,'os':this[_0xf3b873(0x3a0)]()};if(_0x5821e6)_0xf1607a[_0xf3b873(0x3b6)]=_0x5821e6;else{if(typeof _0x22c8f7==_0xf3b873(0x402))_0xf1607a['identity']=_0x22c8f7;else{if(!_0x5821e6&&localStorage[_0xf3b873(0x225)](_0xf3b873(0x3ec)))return;}}try{_0x473979(0x1,_0xf3b873(0x28f)),_0x473979(0x1,_0xf1607a),this[_0xf3b873(0x2f7)](_0xf1607a[_0xf3b873(0x3b6)]),_0xf1607a[_0xf3b873(0x303)]=localStorage[_0xf3b873(0x225)](_0xf3b873(0x3ec))||'';let _0x43cf05=yield _0x3c2dae(this,_0x4656b7,_0x7e8909)[_0xf3b873(0x1dc)](this,_0xf1607a);if(_0x43cf05!==void 0x0){localStorage['setItem'](_0xf3b873(0x3ec),_0x43cf05);try{_0x531a48[_0xf3b873(0x210)]({'customer':_0x43cf05});}catch(_0x3b8d20){}}}catch(_0x3cdd94){throw this[_0xf3b873(0x260)](),new Error(_0xf3b873(0x24b));}});}['getVersion'](){return _0x39e5f3;}};_0x3d570f=new WeakMap(),_0x5b3179=new WeakMap(),_0x29585d=new WeakMap(),_0x567e51=new WeakMap(),_0x2d27c2=new WeakMap(),_0x5f2487=new WeakMap(),_0x513dc9=new WeakMap(),_0x537cc4=new WeakMap(),_0x4656b7=new WeakSet(),_0x44b23d=function(_0x381b4c){const _0x2ee444=_0x24c78c;_0x12a14a['updateAPIKey'](_0x381b4c),this[_0x2ee444(0x24c)](_0x3c2dae(this,_0x4656b7,_0x2fef0)[_0x2ee444(0x1dc)](this)),this['setOSVersion'](_0x3c2dae(this,_0x4656b7,_0x33f0c7)['call'](this)),this[_0x2ee444(0x28a)](navigator[_0x2ee444(0x1a8)]);},_0x2fef0=function(){const _0x20b80c=_0x24c78c;return _0x393b97[_0x20b80c(0x432)]()['getOperatingSystem']();},_0x33f0c7=function(){const _0x585039=_0x24c78c;let _0x37edd6=navigator[_0x585039(0x1a8)],_0x113496;return _0x37edd6[_0x585039(0x320)](_0x585039(0x237))>-0x1?_0x113496='Instagram':_0x37edd6[_0x585039(0x320)]('Facebook')>-0x1||_0x37edd6[_0x585039(0x320)](_0x585039(0x280))>-0x1||_0x37edd6['indexOf'](_0x585039(0x3ad))>-0x1?_0x113496=_0x585039(0x325):_0x37edd6[_0x585039(0x320)](_0x585039(0x1d8))>-0x1?_0x113496=_0x585039(0x1d8):_0x37edd6[_0x585039(0x320)]('Snapchat')>-0x1?_0x113496=_0x585039(0x1d6):_0x37edd6[_0x585039(0x320)](_0x585039(0x39e))>-0x1?_0x113496=_0x585039(0x39e):_0x37edd6['indexOf'](_0x585039(0x307))>-0x1?_0x113496=_0x585039(0x307):_0x37edd6[_0x585039(0x320)](_0x585039(0x202))>-0x1&&_0x37edd6[_0x585039(0x320)](_0x585039(0x21f))===-0x1?_0x113496='Google\x20Chrome':_0x37edd6[_0x585039(0x320)](_0x585039(0x244))>-0x1&&_0x37edd6[_0x585039(0x320)](_0x585039(0x202))===-0x1?_0x113496='Safari':_0x37edd6[_0x585039(0x320)](_0x585039(0x2b7))>-0x1?_0x113496=_0x585039(0x2f9):_0x37edd6['indexOf'](_0x585039(0x21f))>-0x1?_0x113496=_0x585039(0x31a):_0x37edd6['indexOf']('MSIE')>-0x1||_0x37edd6[_0x585039(0x320)](_0x585039(0x2b0))>-0x1?_0x113496=_0x585039(0x3be):_0x37edd6[_0x585039(0x320)](_0x585039(0x246))>-0x1||_0x37edd6[_0x585039(0x320)](_0x585039(0x20a))>-0x1?_0x113496='Opera':_0x37edd6['indexOf'](_0x585039(0x1f8))>-0x1?_0x113496=_0x585039(0x1f8):_0x37edd6[_0x585039(0x320)]('Brave')>-0x1?_0x113496=_0x585039(0x228):_0x37edd6[_0x585039(0x320)](_0x585039(0x2ca))>-0x1?_0x113496=_0x585039(0x208):_0x37edd6[_0x585039(0x320)]('UCBrowser')>-0x1?_0x113496=_0x585039(0x2c6):_0x37edd6['indexOf'](_0x585039(0x20d))>-0x1?_0x113496=_0x585039(0x1b8):_0x37edd6[_0x585039(0x320)](_0x585039(0x284))>-0x1?_0x113496='Baidu\x20Browser':_0x37edd6[_0x585039(0x320)](_0x585039(0x391))>-0x1?_0x113496=_0x585039(0x412):_0x113496=_0x585039(0x1e9),_0x113496;},_0x3f5cb0=function(_0x872806){const _0x27b0c9=_0x24c78c;let _0x5a262e=null;_0x872806||(_0x5a262e=localStorage[_0x27b0c9(0x225)](_0x27b0c9(0x306)));let _0x4c49a3=_0x872806||_0x5a262e;if(_0x4c49a3){let _0x111fd8=parseInt(_0x4c49a3,0xa),_0x48cecd=Date[_0x27b0c9(0x32f)](),_0x95e7ab=new Date(),_0x274905=Date[_0x27b0c9(0x1f5)](_0x95e7ab[_0x27b0c9(0x22a)](),_0x95e7ab[_0x27b0c9(0x2f0)](),_0x95e7ab[_0x27b0c9(0x3b4)](),0x0,0x0,0x0,0x0);return _0x111fd8<_0x274905?!0x0:_0x48cecd-_0x111fd8>0x1b7740;}return!0x0;},_0x251981=function(){const _0x2eac13=_0x24c78c;return!localStorage[_0x2eac13(0x225)](_0x2eac13(0x314));},_0x2078a3=function(){const _0x4cb227=_0x24c78c;return!localStorage['getItem'](_0x4cb227(0x347));},_0x135a3e=function(){const _0x58ed15=_0x24c78c;return!localStorage['getItem'](_0x58ed15(0x3ec));},_0x3ff077=function(){const _0x16b135=_0x24c78c;return!localStorage[_0x16b135(0x225)](_0x16b135(0x352));},_0x30b26f=function(){const _0x48e61e=_0x24c78c;return!localStorage['getItem'](_0x48e61e(0x3b3));},_0x34d67e=function(){const _0x20b730=_0x24c78c;return _0x3c2dae(this,_0x4656b7,_0x251981)[_0x20b730(0x1dc)](this)||_0x3c2dae(this,_0x4656b7,_0x2078a3)[_0x20b730(0x1dc)](this)||_0x3c2dae(this,_0x4656b7,_0x135a3e)['call'](this)||_0x3c2dae(this,_0x4656b7,_0x3ff077)[_0x20b730(0x1dc)](this)||_0x3c2dae(this,_0x4656b7,_0x30b26f)[_0x20b730(0x1dc)](this);},_0x350f28=function(){const _0x309633=_0x24c78c;let _0x19e50d=localStorage['getItem'](_0x309633(0x352));return _0x19e50d||(_0x19e50d=crypto[_0x309633(0x1be)](),localStorage[_0x309633(0x3bc)](_0x309633(0x352),_0x19e50d)),_0x19e50d;},_0x4fa815=function(){return _0x6ae56d(this,null,function*(){const _0x5c89d7=_0x3d2f;yield _0x4246e0(_0x5c89d7(0x2cb),()=>_0x6ae56d(this,null,function*(){const _0x5b53a5=_0x5c89d7;let _0xd2329b=localStorage[_0x5b53a5(0x225)](_0x5b53a5(0x3b3));if(localStorage[_0x5b53a5(0x225)](_0x5b53a5(0x306))||(localStorage[_0x5b53a5(0x3bc)](_0x5b53a5(0x306),''+new Date()[_0x5b53a5(0x22e)]()),localStorage[_0x5b53a5(0x3d3)](_0x5b53a5(0x3b3)),_0xd2329b=null),!_0xd2329b){_0xd2329b=crypto[_0x5b53a5(0x1be)](),localStorage[_0x5b53a5(0x3bc)](_0x5b53a5(0x3b3),_0xd2329b);let _0x1666bd=localStorage[_0x5b53a5(0x225)](_0x5b53a5(0x306)),_0x1bc647=_0x1666bd?parseInt(_0x1666bd,0xa):'';yield _0x33c4a0[_0x5b53a5(0x315)]({'eventName':_0x5b53a5(0x33a),'eventProperties':[{'eventProperty':'SESSION_ID','value':localStorage[_0x5b53a5(0x225)](_0x5b53a5(0x3b3))},{'eventProperty':_0x5b53a5(0x286),'value':_0x1bc647?new Date(_0x1bc647)[_0x5b53a5(0x1f6)]():new Date()[_0x5b53a5(0x1f6)]()}]});}}),_0x5c368a=>{const _0x3b73e6=_0x5c89d7;_0x12a14a['getBrandId']()==='67'&&_0x5c368a[_0x3b73e6(0x366)]!=='Failed\x20to\x20fetch'&&_0x5c368a[_0x3b73e6(0x366)];});});},_0x7e8909=function(_0x4149b5){return _0x6ae56d(this,null,function*(){const _0x530e9f=_0x3d2f;try{return(yield _0x12a14a[_0x530e9f(0x2f3)](''+_0x1602f2+_0x5dbddf,_0x4149b5))[_0x530e9f(0x3f7)];}catch(_0x58064d){throw new Error(_0x530e9f(0x3a2));}});},_0x46112c=function(){return _0x6ae56d(this,null,function*(){const _0x535036=_0x3d2f;yield _0x33c4a0[_0x535036(0x3e2)]();});},_0x4e4531=function(){return _0x6ae56d(this,null,function*(){yield _0x27f1f8['storeAttributeInLocalStorage']();});},_0x2cadf3=function(_0x4f0fe7){return _0x6ae56d(this,null,function*(){const _0x2f08bf=_0x3d2f;yield _0x4246e0(_0x2f08bf(0x386),()=>_0x6ae56d(this,null,function*(){const _0xa2b1e9=_0x2f08bf;var _0x271a33;try{let _0x4d02ad=parseInt(localStorage['getItem'](_0xa2b1e9(0x370))||'0',0xa)||0x0;if(!_0x4d02ad||_0x4d02ad&&new Date()[_0xa2b1e9(0x22e)]()>_0x4d02ad){let _0x264bd1=yield _0x12a14a['get'](_0xa2b1e9(0x354));if(!(_0x264bd1!=null&&_0x264bd1[_0xa2b1e9(0x24f)]))throw new Error(JSON[_0xa2b1e9(0x1f9)](_0x264bd1));localStorage['setItem'](_0xa2b1e9(0x370),(new Date()[_0xa2b1e9(0x22e)]()+0x493e0)[_0xa2b1e9(0x313)]());}_0x31c366[_0xa2b1e9(0x288)]=!0x1,_0x31c366['isInitialized']=!0x0;}catch(_0x2288c2){if(_0x12a14a[_0xa2b1e9(0x367)]()==='67'&&!((_0x271a33=_0x2288c2==null?void 0x0:_0x2288c2[_0xa2b1e9(0x366)])!=null&&_0x271a33[_0xa2b1e9(0x32e)](_0xa2b1e9(0x3c0)))&&(_0x2288c2==null?void 0x0:_0x2288c2[_0xa2b1e9(0x366)])!=='Error\x20verifying\x20API\x20key'&&_0x2288c2[_0xa2b1e9(0x366)]!==_0xa2b1e9(0x266)&&_0x2288c2[_0xa2b1e9(0x366)],_0x4f0fe7&&_0x4f0fe7>=0x1){yield new Promise(_0x2959df=>setTimeout(_0x2959df,0x5dc)),yield _0x3c2dae(this,_0x4656b7,_0x2cadf3)[_0xa2b1e9(0x1dc)](this,_0x4f0fe7-0x1);return;}throw _0x31c366['disableSDK']=!0x0,new Error('Error\x20verifying\x20API\x20key');}}));});},_0x5dfb00=function(_0x4092f6){return _0x6ae56d(this,null,function*(){const _0x727f9f=_0x3d2f;let _0x43705d=new TextEncoder()[_0x727f9f(0x2a6)](_0x4092f6),_0x1cd4a1=yield crypto[_0x727f9f(0x25f)][_0x727f9f(0x27e)]('SHA-256',_0x43705d);return Array[_0x727f9f(0x38e)](new Uint8Array(_0x1cd4a1))[_0x727f9f(0x378)](_0x1ec592=>_0x1ec592[_0x727f9f(0x313)](0x10)[_0x727f9f(0x1f4)](0x2,'0'))['join']('');});},_0x3ad1a8=function(_0x36fecd){return _0x6ae56d(this,null,function*(){const _0x44eaba=_0x3d2f;var _0x2b6ac5;_0x473979(0x1,_0x44eaba(0x203));let _0x83ae37=(_0x2b6ac5=window==null?void 0x0:window[_0x44eaba(0x2b1)])==null?void 0x0:_0x2b6ac5[_0x44eaba(0x2e1)];if(this[_0x44eaba(0x372)](_0x83ae37),_0x36fecd){setTimeout(()=>{const _0x1a217f=_0x44eaba;_0x4246e0(_0x1a217f(0x3cb),()=>_0x6ae56d(this,null,function*(){const _0x5741f0=_0x1a217f;if(_0x12a14a[_0x5741f0(0x367)]()==='441'){let _0x234a89=localStorage['getItem'](_0x5741f0(0x3ec));if(window[_0x5741f0(0x3cb)]&&_0x234a89){_0x473979(0x1,'Assigning\x20external_id\x20to\x20Mergn\x20PageView\x20Event');let _0x49c02e={'external_id':yield _0x3c2dae(this,_0x4656b7,_0x5dfb00)[_0x5741f0(0x1dc)](this,_0x234a89)},_0x38137c=_0x27f1f8['getAttributeFromCookie']('Email'),_0x39b2fc=_0x27f1f8['getAttributeFromCookie']('Mobile');_0x38137c&&(_0x49c02e['em']=yield _0x3c2dae(this,_0x4656b7,_0x5dfb00)[_0x5741f0(0x1dc)](this,_0x38137c[_0x5741f0(0x1e5)]())),_0x39b2fc&&(_0x49c02e['ph']=yield _0x3c2dae(this,_0x4656b7,_0x5dfb00)['call'](this,_0x39b2fc[_0x5741f0(0x1e5)]())),window[_0x5741f0(0x3cb)](_0x5741f0(0x206),[]),window[_0x5741f0(0x3cb)](_0x5741f0(0x3cc),_0x5741f0(0x405),_0x49c02e),window[_0x5741f0(0x3cb)](_0x5741f0(0x37d),_0x5741f0(0x294)),_0x473979(0x1,_0x5741f0(0x28b));}}}));},0x5dc),_0x83ae37[_0x44eaba(0x34c)](_0x44eaba(0x2aa))&&(yield _0x33c4a0[_0x44eaba(0x315)]({'eventName':_0x44eaba(0x20c)}));return;}_0x33c4a0[_0x44eaba(0x2cc)]({'eventName':'pre_vwp'});let _0x54c722=[];new URLSearchParams(new URL(window[_0x44eaba(0x2b1)]['href'])[_0x44eaba(0x317)])['forEach']((_0x4edb98,_0x46b898)=>_0x6ae56d(this,null,function*(){const _0x167774=_0x44eaba;_0x5084e6[_0x167774(0x332)](_0x46b898)&&_0x54c722[_0x167774(0x25d)]({'eventProperty':_0x46b898,'value':_0x4edb98});})),yield _0x33c4a0['recordEvent']({'eventName':_0x44eaba(0x1a6),'eventProperties':[{'eventProperty':'URL','value':window[_0x44eaba(0x2b1)][_0x44eaba(0x3c9)]},..._0x54c722]});});},_0x1ab3b3=function(_0x3bfc55){return _0x6ae56d(this,null,function*(){const _0x22dd02=_0x3d2f;var _0x4fcb1c;_0x473979(0x1,_0x22dd02(0x2cf));let _0x5a30eb=(_0x4fcb1c=window==null?void 0x0:window[_0x22dd02(0x2b1)])==null?void 0x0:_0x4fcb1c[_0x22dd02(0x2e1)];(this[_0x22dd02(0x37b)]()===null||this[_0x22dd02(0x37b)]()===void 0x0||_0x5a30eb!==this[_0x22dd02(0x37b)]())&&(yield _0x3c2dae(this,_0x4656b7,_0x3ad1a8)[_0x22dd02(0x1dc)](this,_0x3bfc55));});},_0xac81a7=function(_0x46056a){return _0x6ae56d(this,null,function*(){const _0x5ec801=_0x3d2f;var _0x434c4c,_0x72eb49;let _0x212135=(_0x434c4c=window==null?void 0x0:window[_0x5ec801(0x2b1)])==null?void 0x0:_0x434c4c[_0x5ec801(0x2e1)];_0x33c4a0['recordDebugEvents']({'eventName':_0x5ec801(0x3e8),'eventProperties':[{'eventProperty':_0x5ec801(0x366),'value':(_0x212135!==this[_0x5ec801(0x37b)]())+':'+_0x212135+':'+this[_0x5ec801(0x37b)]()}]});try{yield _0x3c2dae(this,_0x4656b7,_0x3ad1a8)[_0x5ec801(0x1dc)](this,_0x46056a);}catch(_0x20d8a3){let _0x2e104c=_0x20d8a3&&_0x20d8a3['message']?(_0x72eb49=_0x20d8a3==null?void 0x0:_0x20d8a3[_0x5ec801(0x366)])==null?void 0x0:_0x72eb49['substring'](0x0,0x64):_0x5ec801(0x1ac);yield _0x33c4a0[_0x5ec801(0x2cc)]({'eventName':'vwp_error','eventProperties':[{'eventProperty':_0x5ec801(0x366),'value':''+_0x2e104c}]});}});},_0x5e7b66(_0x5346cf,_0x3d570f);var _0x991bdc=_0x5346cf,_0x1a12dc=_0x991bdc['getInstance'](),_0x10d561,_0x23cecd,_0x4df586,_0x25f91c,_0x26f91d,_0x4c9c34,_0xbf904b,_0x339155,_0x13a0d9,_0x4a4354,_0x7407ab,_0x1cf998=class _0x30dab6{constructor(){_0x5e7b66(this,_0x4df586),_0x5e7b66(this,_0x23cecd,!0x1);}static[_0x24c78c(0x432)](){const _0x177444=_0x24c78c;var _0x353383;return _0x101b70(_0x30dab6,_0x10d561)||(_0x9fc6c6(_0x30dab6,_0x10d561,new _0x30dab6()),_0x3c2dae(_0x353383=_0x101b70(_0x30dab6,_0x10d561),_0x4df586,_0x25f91c)[_0x177444(0x1dc)](_0x353383)),_0x101b70(_0x30dab6,_0x10d561);}[_0x24c78c(0x1ec)](){return _0x6ae56d(this,null,function*(){const _0x324fbf=_0x3d2f;yield _0x4246e0(_0x324fbf(0x32a),()=>_0x6ae56d(this,null,function*(){const _0x3b1e6d=_0x324fbf;let _0x105fe0=JSON[_0x3b1e6d(0x420)](localStorage[_0x3b1e6d(0x225)](_0x3b1e6d(0x2e9))||'[]');if(Array['isArray'](_0x105fe0))for(let _0x3bd26e of _0x105fe0){if(_0x473979(0x1,_0x3b1e6d(0x221)),_0x473979(0x1,_0x3bd26e),yield this['checkIfAttributeExists'](_0x3bd26e[_0x3b1e6d(0x3b1)],_0x3bd26e[_0x3b1e6d(0x400)])){_0x473979(0x1,_0x3b1e6d(0x42b)+_0x3bd26e[_0x3b1e6d(0x3b1)]+_0x3b1e6d(0x3a8)+_0x3bd26e[_0x3b1e6d(0x400)]),_0x3c2dae(this,_0x4df586,_0xbf904b)[_0x3b1e6d(0x1dc)](this,_0x3bd26e[_0x3b1e6d(0x3b1)],_0x3bd26e['attributeValue']);return;}yield _0x3c2dae(this,_0x4df586,_0x339155)[_0x3b1e6d(0x1dc)](this,{'attributeName':_0x3bd26e['attributeName'],'attributeValue':_0x3bd26e['attributeValue']});}}));});}['recordAttribute'](_0x1328cb,_0x24a461,_0x44c525){return _0x6ae56d(this,null,function*(){const _0x571154=_0x3d2f;if(yield this[_0x571154(0x3e4)](_0x1328cb,_0x24a461)){_0x473979(0x1,'Attribute\x20'+_0x1328cb+_0x571154(0x3a8)+_0x24a461),_0x3c2dae(this,_0x4df586,_0xbf904b)[_0x571154(0x1dc)](this,_0x1328cb,_0x24a461);return;}_0x3c2dae(this,_0x4df586,_0x4c9c34)['call'](this,_0x1328cb),_0x3c2dae(this,_0x4df586,_0x26f91d)['call'](this,_0x1328cb,_0x24a461),_0x31c366[_0x571154(0x1a3)]&&!_0x31c366[_0x571154(0x305)]&&(yield _0x3c2dae(this,_0x4df586,_0x339155)[_0x571154(0x1dc)](this,{'attributeName':_0x1328cb,'attributeProperties':_0x44c525,'attributeValue':_0x24a461}));});}['storeAttributeInLocalStorage'](){return _0x6ae56d(this,null,function*(){const _0x4a8675=_0x3d2f;if(!localStorage[_0x4a8675(0x225)](_0x4a8675(0x347))&&!_0x101b70(this,_0x23cecd)){_0x9fc6c6(this,_0x23cecd,!0x0);try{let _0x51de1d=(yield this[_0x4a8675(0x34b)]())[_0x4a8675(0x3f7)];_0x51de1d&&localStorage[_0x4a8675(0x3bc)]('attributes',JSON['stringify'](_0x51de1d));}catch(_0x5a6d90){throw new Error(_0x4a8675(0x231));}finally{_0x9fc6c6(this,_0x23cecd,!0x1);}}});}[_0x24c78c(0x34b)](){return _0x6ae56d(this,null,function*(){const _0x404b3f=_0x3d2f;try{return yield _0x12a14a[_0x404b3f(0x3c0)](''+_0x387628);}catch(_0x4e5548){throw new Error(_0x404b3f(0x3a1));}});}[_0x24c78c(0x2ce)](_0x2bbe97,_0x28ab6a){return _0x6ae56d(this,null,function*(){const _0x2dd056=_0x3d2f;let _0x57a8a9=_0x1a12dc[_0x2dd056(0x3a9)](_0x2dd056(0x1a2)),_0x42ba15;if(!_0x57a8a9)_0x42ba15={};else{let _0x3a7e27=_0x1a12dc[_0x2dd056(0x395)](_0x57a8a9);_0x42ba15=JSON[_0x2dd056(0x420)](_0x3a7e27);}_0x42ba15[_0x2bbe97]=_0x28ab6a;let _0x327db7=_0x1a12dc[_0x2dd056(0x2d5)](JSON[_0x2dd056(0x1f9)](_0x42ba15));_0x1a12dc[_0x2dd056(0x2eb)](_0x2dd056(0x1a2),_0x327db7,0x16d);});}[_0x24c78c(0x2be)](_0x105d9a){return _0x6ae56d(this,null,function*(){const _0x7918bf=_0x3d2f;let _0x505dc4=_0x1a12dc[_0x7918bf(0x3a9)](_0x7918bf(0x1a2)),_0x22030c;if(!_0x505dc4)_0x22030c={};else{let _0xdb3b1c=_0x1a12dc[_0x7918bf(0x395)](_0x505dc4);_0x22030c=JSON[_0x7918bf(0x420)](_0xdb3b1c);}delete _0x22030c[_0x105d9a];let _0x336ce2=_0x1a12dc['encodeData'](JSON[_0x7918bf(0x1f9)](_0x22030c));_0x1a12dc[_0x7918bf(0x2eb)](_0x7918bf(0x1a2),_0x336ce2,0x16d);});}[_0x24c78c(0x3e4)](_0x1ab3b0,_0x1178bc){return _0x6ae56d(this,null,function*(){const _0x32276b=_0x3d2f;let _0x2e4965=_0x1a12dc[_0x32276b(0x3a9)](_0x32276b(0x1a2));if(!_0x2e4965)return!0x1;let _0x31a246=_0x1a12dc[_0x32276b(0x395)](_0x2e4965),_0x4ec44e=JSON['parse'](_0x31a246);return Object['prototype'][_0x32276b(0x26c)][_0x32276b(0x1dc)](_0x4ec44e,_0x1ab3b0)?_0x1178bc!==void 0x0?_0x4ec44e[_0x1ab3b0]===_0x1178bc:!0x0:!0x1;});}[_0x24c78c(0x241)](_0xc21922){const _0x26f5d3=_0x24c78c;let _0x8754b6=_0x1a12dc[_0x26f5d3(0x3a9)](_0x26f5d3(0x1a2));if(!_0x8754b6)return'';let _0x52847b=_0x1a12dc[_0x26f5d3(0x395)](_0x8754b6);return JSON[_0x26f5d3(0x420)](_0x52847b)[_0xc21922];}};_0x10d561=new WeakMap(),_0x23cecd=new WeakMap(),_0x4df586=new WeakSet(),_0x25f91c=function(){return _0x6ae56d(this,null,function*(){});},_0x26f91d=function(_0x381966,_0x2e15e4){const _0x4fc4ab=_0x24c78c;let _0x16fb1d=JSON[_0x4fc4ab(0x420)](localStorage[_0x4fc4ab(0x225)](_0x4fc4ab(0x2e9))||'[]');_0x16fb1d['push']({'attributeName':_0x381966,'attributeValue':_0x2e15e4}),localStorage[_0x4fc4ab(0x3bc)]('preInitializedAttributes',JSON['stringify'](_0x16fb1d));},_0x4c9c34=function(_0x128b0f){return _0x6ae56d(this,null,function*(){const _0xedbe25=_0x3d2f;let _0xea2696=JSON['parse'](localStorage[_0xedbe25(0x225)](_0xedbe25(0x2e9))||'[]');for(let _0x4f6f46 of _0xea2696)_0x4f6f46['attributeName']===_0x128b0f&&(_0xea2696[_0xedbe25(0x340)](_0xea2696[_0xedbe25(0x320)](_0x4f6f46),0x1),localStorage[_0xedbe25(0x3bc)](_0xedbe25(0x2e9),JSON[_0xedbe25(0x1f9)](_0xea2696)));});},_0xbf904b=function(_0x535452,_0x15a38d){return _0x6ae56d(this,null,function*(){const _0x27a1f1=_0x3d2f;let _0x5c3563=JSON[_0x27a1f1(0x420)](localStorage['getItem']('preInitializedAttributes')||'[]');for(let _0xe77016 of _0x5c3563)JSON[_0x27a1f1(0x1f9)](_0xe77016)===JSON[_0x27a1f1(0x1f9)]({'attributeName':_0x535452,'attributeValue':_0x15a38d})&&(_0x5c3563[_0x27a1f1(0x340)](_0x5c3563[_0x27a1f1(0x320)](_0xe77016),0x1),localStorage[_0x27a1f1(0x3bc)]('preInitializedAttributes',JSON[_0x27a1f1(0x1f9)](_0x5c3563)));});},_0x339155=function(_0x8c231f){return _0x6ae56d(this,arguments,function*({attributeName:_0x3aa0de,attributeProperties:_0x96ccb7,attributeValue:_0x40c15d}){yield _0x4246e0('#\x20recordAttribute',()=>_0x6ae56d(this,null,function*(){const _0x520f80=_0x3d2f;if(_0x473979(0x1,'Recording\x20attribute'),_0x13ac33('Recording\x20attribute',!0x0),_0xc47fc2(_0x520f80(0x2b5),!0x0),_0x473979(0x1,_0x520f80(0x3f0)),_0x473979(0x1,'Attribute\x20Name:\x20'+_0x3aa0de+'\x20|\x20Attribute\x20Value:\x20'+_0x40c15d),!_0x40c15d||_0x40c15d===''){_0x473979(0x2,_0x520f80(0x3d2));return;}yield _0x1a12dc['checkTTL'](),yield _0x3c2dae(this,_0x4df586,_0x4a4354)[_0x520f80(0x1dc)](this);let _0x39b80b=JSON[_0x520f80(0x420)](localStorage[_0x520f80(0x225)](_0x520f80(0x347))||'{}'),_0x1d2f42=_0x96ccb7?_0x3c2dae(this,_0x4df586,_0x13a0d9)[_0x520f80(0x1dc)](this,_0x39b80b,_0x3aa0de,_0x96ccb7):_0x3c2dae(this,_0x4df586,_0x13a0d9)[_0x520f80(0x1dc)](this,_0x39b80b,_0x3aa0de);if(typeof _0x1d2f42==_0x520f80(0x402)){_0x473979(0x2,_0x1d2f42);return;}_0x39b80b[_0x3aa0de]['should_set_identity']&&(yield _0x1a12dc[_0x520f80(0x1fa)](typeof _0x40c15d==_0x520f80(0x402)?_0x40c15d:JSON['stringify'](_0x40c15d))),_0x1a12dc['updateSessionCreated']();let {id:_0x33f6c8}=_0x39b80b[_0x3aa0de],_0x88009a={'attributeId':_0x33f6c8,'attributeProperties':_0x1d2f42,'customerId':localStorage[_0x520f80(0x225)]('customer')||'','deviceId':localStorage[_0x520f80(0x225)]('uniqueIdentity')||'','sdkVersion':_0x1a12dc[_0x520f80(0x3db)](),'should_set_identity':_0x39b80b[_0x3aa0de][_0x520f80(0x227)],'value':_0x40c15d};yield _0x3c2dae(this,_0x4df586,_0x7407ab)[_0x520f80(0x1dc)](this,_0x88009a,_0x3aa0de,_0x40c15d),_0x3c2dae(this,_0x4df586,_0xbf904b)['call'](this,_0x3aa0de,_0x40c15d),_0xc47fc2(_0x520f80(0x2b5),!0x1),_0x13ac33('Recording\x20attribute',!0x1);}));});},_0x13a0d9=function(_0x46a971,_0x74a230,_0x5e8d62){const _0x148d1b=_0x24c78c;if(!Object[_0x148d1b(0x36c)][_0x148d1b(0x26c)][_0x148d1b(0x1dc)](_0x46a971,_0x74a230))return _0x148d1b(0x2b3)+_0x74a230+_0x148d1b(0x403);if(!_0x5e8d62)return[];let _0x3f468a=_0x46a971[_0x74a230];if(!(_0x3f468a!=null&&_0x3f468a['attributeProperty']))return _0x148d1b(0x2b3)+_0x74a230+_0x148d1b(0x428);let _0x3cfa76=_0x5e8d62['filter'](({attributeProperty:_0x54f461})=>!Object[_0x148d1b(0x36c)][_0x148d1b(0x26c)][_0x148d1b(0x1dc)](_0x3f468a[_0x148d1b(0x1cf)],_0x54f461))['map'](({attributeProperty:_0x4cb4f6})=>_0x4cb4f6);return _0x3cfa76[_0x148d1b(0x38a)]>0x0?_0x148d1b(0x2b3)+_0x74a230+_0x148d1b(0x254)+_0x3cfa76[_0x148d1b(0x328)](',\x20')+'.':_0x5e8d62[_0x148d1b(0x378)](({attributeProperty:_0x73fcee,value:_0x5361c9})=>({'attributePropertyId':_0x3f468a[_0x148d1b(0x1cf)][_0x73fcee]['id'],'value':_0x5361c9}));},_0x4a4354=function(){return _0x6ae56d(this,null,function*(){const _0x338a86=_0x3d2f;localStorage[_0x338a86(0x225)](_0x338a86(0x347))||(yield this[_0x338a86(0x37c)]());});},_0x7407ab=function(_0x290d46,_0x267d4f,_0x82d334){return _0x6ae56d(this,null,function*(){const _0x510e08=_0x3d2f;try{return yield this[_0x510e08(0x2ce)](_0x267d4f,_0x82d334),yield _0x12a14a[_0x510e08(0x40f)](''+_0x387628+_0x3b96ae,_0x290d46);}catch(_0x542067){throw yield this[_0x510e08(0x2be)](_0x267d4f),new Error(_0x510e08(0x285));}});},_0x5e7b66(_0x1cf998,_0x10d561);var _0x55e259=_0x1cf998,_0x27f1f8=_0x55e259[_0x24c78c(0x432)](),_0x3111e1,_0x5cd22f=class _0x4de001{constructor(){}static[_0x24c78c(0x432)](){return _0x101b70(_0x4de001,_0x3111e1)||_0x9fc6c6(_0x4de001,_0x3111e1,new _0x4de001()),_0x101b70(_0x4de001,_0x3111e1);}['init'](_0x134aa8,_0x30ac96){const _0x20c454=_0x24c78c;_0x134aa8===_0x20c454(0x2d6)||_0x134aa8===_0x20c454(0x3ee)||setTimeout(()=>{_0x4246e0('init',()=>_0x6ae56d(this,null,function*(){const _0x2c14ca=_0x3d2f;yield _0x4246e0(_0x2c14ca(0x295),()=>_0x6ae56d(this,null,function*(){const _0xe30bf3=_0x2c14ca;_0x473979(0x1,'Log\x20level\x20check');let _0x2ae734=localStorage['getItem'](_0xe30bf3(0x358));_0x2ae734&&(_0x31c366[_0xe30bf3(0x407)]=parseInt(_0x2ae734,0xa));})),_0x473979(0x1,_0x2c14ca(0x200)),yield _0x1a12dc['init'](_0x134aa8,_0x30ac96),!_0x31c366[_0x2c14ca(0x288)]&&(_0x33c4a0[_0x2c14ca(0x2cc)]({'eventName':_0x2c14ca(0x3c1)}),_0x473979(0x1,'Mergn\x20SDK\x20Initialized'),window['addEventListener'](_0x2c14ca(0x374),()=>_0x6ae56d(this,null,function*(){const _0x22a663=_0x2c14ca;_0x31c366[_0x22a663(0x3a3)]=!0x1;let _0x27671d=JSON[_0x22a663(0x420)](localStorage[_0x22a663(0x225)]('offlineEvents')||'[]');Array[_0x22a663(0x20e)](_0x27671d)&&(yield _0x33c4a0['postEventRecord']({'customerId':localStorage[_0x22a663(0x225)]('customer')||'','deviceId':localStorage[_0x22a663(0x225)](_0x22a663(0x352))||'','events':_0x27671d}),localStorage[_0x22a663(0x3d3)](_0x22a663(0x3e0))),_0x1a12dc['checkTTL'](),_0x1a12dc[_0x22a663(0x333)]();})),window['addEventListener'](_0x2c14ca(0x3a3),()=>{const _0x877b25=_0x2c14ca;_0x31c366[_0x877b25(0x3a3)]=!0x0;}),window['addEventListener'](_0x2c14ca(0x319),()=>{const _0x4fdc3d=_0x2c14ca;_0x3c1fed[_0x4fdc3d(0x30d)](),_0x531a48[_0x4fdc3d(0x408)]();}));}));});}[_0x24c78c(0x3ef)](_0x12c772,_0x576660){const _0x3808e1=_0x24c78c;if(_0x31c366[_0x3808e1(0x288)]||document[_0x3808e1(0x2b1)][_0x3808e1(0x2e1)]===_0x3808e1(0x21d))return;let _0x1cdbe7=localStorage[_0x3808e1(0x225)]('mergn_debug_level');if(_0x1cdbe7){_0x31c366[_0x3808e1(0x407)]=parseInt(_0x1cdbe7,0xa);try{_0x531a48[_0x3808e1(0x210)]({'debugLevel':_0x12c772});}catch(_0x300245){}return;}if(!(_0x12c772 in _0x198dbf)){console[_0x3808e1(0x392)]('Debug\x20level\x20must\x20be\x20according\x20to:\x0a\x20NONE:\x200,\x20INFO:\x201,\x20ERROR:\x202,\x20ALL:\x203');return;}_0x31c366[_0x3808e1(0x1b0)]=_0x576660||{},_0x31c366[_0x3808e1(0x407)]=_0x12c772;try{_0x531a48[_0x3808e1(0x210)]({'debugLevel':_0x12c772});}catch(_0x2327c4){}}[_0x24c78c(0x293)](_0x56439d,_0x3f2840){return _0x6ae56d(this,null,function*(){const _0xbe0e85=_0x3d2f;return _0x473979(0x1,_0xbe0e85(0x3b1)),_0x473979(0x1,_0x56439d),_0x473979(0x1,_0xbe0e85(0x400)),_0x473979(0x1,_0x3f2840),new Promise((_0x3d56b0,_0x31bd1a)=>{setTimeout(()=>_0x6ae56d(this,null,function*(){try{yield _0x4246e0('recordAttribute',()=>_0x6ae56d(this,null,function*(){const _0x3b609a=_0x3d2f;let _0x1304c9='';return Array[_0x3b609a(0x20e)](_0x3f2840)?_0x1304c9=JSON[_0x3b609a(0x1f9)](_0x3f2840):typeof _0x3f2840==_0x3b609a(0x35e)?_0x1304c9=''+_0x3f2840:_0x1304c9=_0x3f2840,_0x473979(0x1,_0x3b609a(0x344)),_0x473979(0x1,_0x3b609a(0x434)+_0x56439d+',\x20Attribute\x20Value:\x20'+_0x1304c9),new Promise((_0x5f1d3e,_0x128d5b)=>{setTimeout(()=>_0x6ae56d(this,null,function*(){const _0x224fea=_0x3d2f;try{yield _0x27f1f8[_0x224fea(0x293)](_0x56439d,_0x1304c9),_0x5f1d3e();}catch(_0x3ac436){_0x128d5b(_0x3ac436);}}));});})),_0x3d56b0();}catch(_0x1332ce){_0x31bd1a(_0x1332ce);}}));});});}[_0x24c78c(0x3dd)](_0x267211){return _0x6ae56d(this,null,function*(){return _0x473979(0x1,'identity\x20to\x20login:'),_0x473979(0x1,_0x267211),new Promise((_0x42731c,_0x35557d)=>{setTimeout(()=>_0x6ae56d(this,null,function*(){const _0x1b1725=_0x3d2f;try{yield _0x4246e0('login',()=>_0x6ae56d(this,null,function*(){const _0xb69191=_0x3d2f;_0x473979(0x1,_0xb69191(0x2ef)),_0x473979(0x1,_0xb69191(0x1f0)+_0x267211),_0x31c366[_0xb69191(0x305)]=!0x0,yield _0x1a12dc[_0xb69191(0x1fa)](_0x267211);})),_0x42731c();}catch(_0x44b035){_0x35557d(_0x44b035);}finally{_0x31c366[_0x1b1725(0x305)]=!0x1,yield _0x33c4a0[_0x1b1725(0x3fa)](),yield _0x27f1f8[_0x1b1725(0x1ec)]();}}));});});}[_0x24c78c(0x32d)](){setTimeout(()=>{const _0x539dfd=_0x3d2f;_0x4246e0(_0x539dfd(0x32d),()=>_0x6ae56d(this,null,function*(){const _0xd4850a=_0x539dfd;_0x473979(0x1,_0xd4850a(0x2ee)),_0x1a12dc['clearLocalStorage']();}));});}[_0x24c78c(0x315)](_0x4012a4,_0x56919f){return _0x6ae56d(this,null,function*(){return new Promise((_0x3d77af,_0x46d816)=>{setTimeout(()=>_0x6ae56d(this,null,function*(){try{yield _0x4246e0('record\x20event',()=>_0x6ae56d(this,null,function*(){const _0x596b8f=_0x3d2f;if(_0x473979(0x1,'Recording\x20event'),_0x473979(0x1,_0x596b8f(0x417)+{'eventName':_0x4012a4,'eventProperties':_0x56919f}),!_0x4012a4||typeof _0x4012a4!='string'){_0x473979(0x2,'Event\x20name\x20is\x20required\x20and\x20must\x20be\x20a\x20string');return;}return new Promise((_0x55a99d,_0x2cb791)=>{setTimeout(()=>_0x6ae56d(this,null,function*(){const _0x1c068c=_0x3d2f;try{yield _0x33c4a0[_0x1c068c(0x315)]({'eventName':_0x4012a4,'eventProperties':_0x56919f}),_0x55a99d();}catch(_0x4c8e13){_0x2cb791(_0x4c8e13);}}));});})),_0x3d77af();}catch(_0x1ef374){_0x46d816(_0x1ef374);}}));});});}['getVersion'](){return _0x39e5f3;}};_0x3111e1=new WeakMap(),_0x5e7b66(_0x5cd22f,_0x3111e1);var _0xd84de0=_0x5cd22f,_0x9a5721=_0xd84de0[_0x24c78c(0x432)]();typeof window!='undefined'&&(window[_0x24c78c(0x323)]=_0x9a5721);var _0x5d9274=_0x9a5721;})());function _0x48b4(){const _0x2b0c6f=['Mozilla\x20Firefox','showPopup','fixed','match',';\x20path=/;\x20secure;\x20SameSite=Strict','newrelic-minions','detectify','Desktop\x20UA\x20detected,\x20checking\x20for\x20bots...','27UgeGoO','Notification','currentCustomer','svix','loading','ttl','TikTok','12jKMFbw','google-site-verifier','script','onLine','Notification\x20permission:\x20','loadPopupEventActionInLocalStorage','UTM_SOURCE','eventProperty','style','permission','shopify','toString','events','recordEvent','twitterbot','search','\x0aUnexpected\x20error:\x20','load','Microsoft\x20Edge','\x0amax-width:\x20100%;\x0aheight:\x20auto;\x0adisplay:\x20block;\x0amargin-left:\x20auto;\x0amargin-right:\x20auto;\x0aborder-radius:\x2010px;\x0amax-width:\x20350px;\x0aaspect-ratio:\x202\x20/\x201;\x0a','getSubscription','checkIfIdentityExists','Checking\x20notification\x20permission:\x20','\x0amax-width:\x20100%;\x0aheight:\x20auto;\x0a','indexOf','sogou-spider','semrush-site-audit','mergn','origin','Facebook','banner_title','Image\x20Click','join','mergn-overlay','#\x20recordAttributeFromQueue','remove','showAfterScrollAction','logout','startsWith','now',';\x0acolor:\x20','Showing\x20popup\x20for\x20campaign\x20ID:\x20','has','updateSessionCreated','eventName','User\x20is\x20subscribed','appendChild','Initializing\x20notification\x20service\x20from\x20Base\x20Service','subscribeUserToPush\x20Customer\x20ID:\x20','button-container','Web\x20Session\x20Started','Reachability\x20Push\x20Web','ERROR:\x20','overflow','naver-blueno','Mergn\x20is\x20loading!','splice','lumar','notification\x20service','u_content_form_','Recording\x20attribute','message:\x20','Cache\x20stats:\x20','attributes','amazon-q','/set-identity','Cache\x20hit\x20from\x20localStorage:\x20','fetchAttributeData','includes','1766484DMcIKD','clearCache','title','existing_subscription','Mergn\x20not\x20initialized!','uniqueIdentity','subscribe','/brand','3dMqWqE','mergn_identity','subtitle','mergn_debug_level','active','type','innerHTML','isExtensionSW','values','number','falbot','substring','Cache\x20cleared\x20successfully','append','Form\x20Submit','Notification\x20service\x20is\x20not\x20initialized','divId','message','getBrandId','mergn_shopify','Mobile','delete','groupEnd','prototype','group','facebook-webhooks','createElement','verifyTTL','storeActionInLocalStorageInternal','setPreviousUrl','_blank','online','gptbot','GET','removeEventListener','map','Image','innerHeight','getPreviousUrl','storeAttributeInLocalStorage','trackCustom','duckduckbot','mj12bot','default','Creating\x20and\x20appending\x20element\x20with\x20tag:\x20','custom_form','razorpay-webhook','button_2','INFO','verify\x20API\x20key','banner_design','defineProperty','test','length','13230828Zuaqgd','5329653wefCIS','swPath','from','.u-close-button','Popup\x20View','Sogou','error','paypal','sentry-uptime-monitoring-bot','decodeData','amazon-seller-initiated-listing','button','Notification\x20','Cache\x20clear\x20error:\x20','device_detector_cache','isPopupAction','meta-externalagent','ERROR','LinkedIn','getCacheStats\x20error:\x20','getPlatform','Error\x20fetching\x20attribute\x20data','Error\x20posting\x20identity\x20data','offline','google-read-aloud','postEventRecord','hydrozen','form','\x20already\x20exists\x20with\x20value\x20','getCookie','#\x20Recording\x20event','time','/brand/get-web-push-public-key','FBAN','name','amazon-product-discovery','signal','attributeName','231077gvIbzn','session','getUTCDate','INFO:\x20','identity','Element\x20to\x20append\x20ContentCard:','initialTime','Popup\x20Action','IMMEDIATELY','API_URL','setItem','vercelflags','Internet\x20Explorer','info','get','mergn_init','claritybot','target','pinterest-bot','Popup\x20element\x20created\x20and\x20appending\x20to\x20the\x20body','oai-searchbot','Event\x20','catch','pathname','boolean','fbq','init','div','googleother','Pushing\x20message\x20to\x20service\x20worker','listen\x20to\x20shopify\x20data','criteobot','Attribute\x20value\x20is\x20required','removeItem','ahrefsbot','chrome-lighthouse','ccbot','18NrCRMg','documentElement','padding','2745760aGarbq','getVersion','zIndex','login','Fast\x20bot\x20detection:\x20Common\x20bot\x20pattern\x20found','bytespider','offlineEvents','Event\x20Payload','storeEventsAndPropertiesInLocalStorage','getCurrentUTCDate','checkIfAttributeExists','\x20already\x20in\x20cache','text_color','swPath:\x20','show_notification_error','googlebot','/set-attribute','apiKey','customer','backgroundColor','6f4f288m471rgn87fe9b0386aab2926fa14668bb051d66753f4b2e0555486d290958095','setDebugLevel','Attribute\x20Payload:','getOperatingSystem','value','discord-bot','button-2','.u-popup-overlay','pushState','data','allSettled','UTM_MEDIUM','recordEventsFromQueue','\x0amargin-bottom:\x205px;\x0afont-size:\x2016px;\x0acolor:\x20','mergnWebPushPopup','isWeb','Web\x20Session\x20Concluded','keys','attributeValue','notification_service_not_initialized','string','\x20is\x20not\x20valid.','Checking\x20if\x20popup\x20event\x20is\x20in\x20queue\x20for\x20campaignId:\x20','2793393330816842','timeEnd','debugLevel','loadWebPushActionInLocalStorage','ahrefssiteaudit','alt','gclid','getRegistrations','yahoo-ad-monitoring','installing','post','toUpperCase','barkrowler','Sogou\x20Browser','important','queue','cookiebot','\x0abackground-color:\x20','Event\x20Payload:\x0a\x20','\x20not\x20found\x20to\x20append\x20ContentCard','checkly','Detected:\x20Mobile','Recording\x20event\x20Time','installed','loadActionInLocalStorage','requestPermission','Existing\x20Subscription:\x20','parse','localStorage\x20cache\x20expired\x20or\x20UA\x20mismatch,\x20removed','Web','SCROLL','yandexbot','UTCDate','top','click','\x20does\x20not\x20have\x20a\x20valid\x20attributeProperty.','width','pop','Pre\x20Initialized\x20Attribute\x20','Cannot\x20','subscribed','notification_data','snapchatadsbot','No\x20popup\x20action\x20data\x20found\x20in\x20local\x20storage','seznambot','getInstance','setProperty','Attribute\x20Name:\x20','DELAY','Adding\x20to\x20pre-initialized\x20event:','input','then','duration','mergn-column-75','GCLID','mergn_customer_attributes','isInitialized','getAPIKey','Time\x20value:\x20','Viewed\x20Webpage','chrome-privacy-preserving-prefetch-proxy','userAgent','access\x20private\x20method','submit','Filtering\x20Event\x20','undefined','adagiobot','setOSVersion','banner_image','recordDebugEventsToggle','Getting\x20Web\x20Key:\x20','Close\x20Click','already_registered','pulsepoint-crawler','defineProperties','shift','FBCLID','QQ\x20Browser','write\x20to\x20private\x20field','reject','isContentCardAction','forEach','resolve','randomUUID','DeviceDetector\x20singleton\x20instance\x20created','#\x20check\x20TTL','Notification\x20Disabled','searchParams','utm_term',';\x0apadding:\x2015px;\x0aborder-radius:\x205px;\x0amax-width:\x20380px;\x0amax-height:\x20463px;\x0a','campaignEntryTimeValue','showContentCard','pingdom-bot','pushToQueue','PushManager','Popup\x20overlay\x20element\x20found','hookdeck','Error\x20posting\x20event\x20record','addEventListener','google-publisher-center','attributeProperty','1698310NmsrVJ','/mergn-sw.js','NONE','gemini-deep-research','Failed\x20to\x20subscribe\x20the\x20user','cookie','Snapchat','serviceWorker','Twitter','optIn','baiduspider','register','call','className','denied','campaigns','#\x20record\x20event','utm_source','v0bot','querySelectorAll','dataforseobot','toLowerCase','Popup\x20already\x20in\x20cache','mergn-row','Campaign\x20Id','Unknown','getElementById','chatgpt-operator','recordAttributeFromQueue','Popup\x20event\x20is\x20in\x20queue\x20for\x20campaignId:\x20','popup_container_','8kiLekk','Identity:\x20','Failed\x20to\x20push\x20message\x20to\x20service\x20worker:\x20','\x0amargin-bottom:\x205px;\x0afont-size:\x2013px;\x0acolor:\x20','Shopify\x20data\x20changed','padStart','UTC','toISOString','checkTTL','Vivaldi','stringify','setIdentity','Data\x20for\x20popup:','apple-podcasts','bind','No\x20events\x20to\x20record','\x20does\x20not\x20have\x20a\x20valid\x20eventProperty.','Initializing\x20Mergn\x20SDK','showDelayedAction','Chrome','Performing\x20viewed\x20web\x20page\x20event','filter','imagesiftbot','dataProcessingOptions','retryPromise','Samsung\x20Internet','set','OPR','UTM_CAMPAIGN','Thank\x20you\x20page','QQBrowser','isArray','No\x20cache\x20found,\x20performing\x20device\x20detection','pushMessageToSW','json','two_step','os-version','getCacheStats:\x20No\x20cache\x20found','auto','duckassistbot','getStoredEvents','site24x7','viewed','Popup\x20container\x20created\x20with\x20ID:','Storing\x20popup\x20action\x20in\x20local\x20storage','amazon-kendra','https://www.broadwaypizza.com.pk/','add','Edg','Existing\x20subscription\x20found','Recording\x20pre-initialized\x20attributes','abcd','web_optin_instance_id','perplexitybot','getItem','scroll','should_set_identity','Brave','img','getUTCFullYear','put','Turned\x20Off\x20Notification\x20Reset\x20Permission','application/json','getTime','opengraphxyzbot','Cannot\x20add\x20the\x20same\x20private\x20member\x20more\x20than\x20once','Error\x20storing\x20attribute\x20data\x20in\x20local\x20storage','User\x20denied\x20the\x20notification\x20permission.','height','Turned\x20Off\x20Notification','petalbot','Allowed\x20Web\x20Push\x20Subscription','Instagram','1YVIPim','granted','Detected:\x20Web\x20(Desktop)','log','google-extended','fromCharCode','read\x20from\x20private\x20field','update','open','getAttributeFromCookie','clearActionInLocalStorage','fetchEventData','Safari','google-cloudvertexbot','Opera','Service\x20Worker\x20registration\x20failed:','Detecting\x20device\x20for\x20UA:\x20','Checking\x20TTL\x20Time','Crawlers','Error\x20setting\x20identity','setPlatform','Service\x20Worker\x20registration','utm_medium','success','https://api.mergn.com/sdk-management/api','lastSyncTime','\x20not\x20exists','customerio-webhooks','\x20has\x20invalid\x20attributeProperties:\x20','charCodeAt','UTC\x20Date\x20or\x20last\x20sync\x20time\x20is\x20not\x20set','PUT','artemis-web-crawler','Popup\x20element\x20appended\x20to\x20the\x20body','google-pagerenderer','Mergn\x20SDK\x20is\x20disabled!','contentCard_container_','push','content_card','subtle','removeIdentity','campaignId','next','Form\x20submitted\x20values:','utm_campaign','getAttribute','Failed\x20to\x20fetch','vercel-favicon-bot','parentElement','syncRealWorldTime','/v2','[id^=\x22u_content_button_\x22]','hasOwnProperty','Initial\x20time:\x20','preInitializedEvents','operating-system','Cache\x20hit\x20from\x20memory:\x20','Popup','User\x20closed\x20the\x20notification\x20permission\x20dialog.','Checking\x20TTL','color','banner_text','querySelector','facebookexternalhit','postMessage','facebot','Load\x20failed','recordEventPreInitialized','localStorage\x20read\x20error:\x20','verceltracing','digest','Button\x20Click','FBAV','view','github-hookshot','entry_time_value','Baidu','Error\x20posting\x20attribute\x20record','SESSION_CREATED','\x20Time','disableSDK','entries','setOperatingSystem','Assigned\x20external_id\x20to\x20Mergn\x20PageView\x20Event','Error\x20submitting\x20form\x20data:\x20','find','statechange','Setting\x20identity\x20to:','Verifying\x20API\x20Key',';\x0acursor:\x20pointer;\x0aborder-radius:\x205px;\x0awidth:\x2048%;\x0a','Content\x20Card\x20View','recordAttribute','Mergn\x20PageView','log\x20level\x20check','Viewed\x20Web\x20Push\x20Soft-ask','min','record\x20event','POST','split','bingbot','isCrawler','datadog-synthetic-monitoring-robot','done','\x0aposition:\x20fixed;\x0atop:\x200;\x0aleft:\x200;\x0awidth:\x20100%;\x0aheight:\x20100%;\x0abackground-color:\x20rgba(0,\x200,\x200,\x200.5);\x0az-index:\x2099999999999;\x0adisplay:\x20flex;\x0ajustify-content:\x20center;\x0aalign-items:\x20start;\x0a','The\x20user\x20has\x20already\x20enabled\x20notifications.','uptime-robot','claude-searchbot','Re\x20initializing\x20customer\x20Id','chatgpt-user','apis-google','encode','apply','\x0aMergnError:\x20','Popup\x20data\x20for\x20campaign\x20ID\x20','thank_you','Error\x20fetching\x20event\x20data','setTime','Pushing\x20message\x20to\x20service\x20worker\x20for\x20initialization','cssText','Showing\x20popup\x20from\x20Shopify\x20data','Trident','location','text','Attribute\x20','Displaying\x20ContentCard','Recording\x20attribute\x20Time','Popup\x20container\x20element\x20found','Firefox','body','close','yahoo-slurp','action','updatefound','src','removeAttribute','state','toUTCString','perplexity-user','web_push_action','button_1','statuscake','loadContentCardEventActionInLocalStorage','UC\x20Browser','logo','algolia','showNotification','SamsungBrowser','store\x20session','recordDebugEvents','getOSVersion','storeAttribute','Tracking\x20page\x20change','google-inspectiontool','banner_color','qstash','gad_source','Recording\x20event','encodeData','2dfd592m441rgn4cce63a9b051c62d66d9d54d46eae8a831e508559007d299a98914d62','\x0apadding:\x2012px\x2020px;\x0aborder:\x20none;\x0abackground-color:\x20\x20','textContent','ContentCard\x20already\x20displayed','Checking\x20for\x20existing\x20subscription','mergn-column-25','application/x-www-form-urlencoded','\x0awidth:\x2025%;\x0a','isShopify','campaignEntryTime','/attribute','href','local\x20identity:\x20','check_permission','pushManager','updateAPIKey','.u-popup-container\x20img','beforeunload','2679640edlOBb','preInitializedAttributes','Failed\x20to\x20request\x20notification\x20permission','setCookie','99999999','ALL','Logging\x20out','Logging\x20in','getUTCMonth','AbortError','base_init','retryPost','Detected:\x20Mobile\x20WebView','OriginateFrom:\x20','better-stack','storeIdentity','UTM_TERM'];_0x48b4=function(){return _0x2b0c6f;};return _0x48b4();}