mergn-webapp-sdk 1.0.245 → 1.0.247
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.global.js +75 -1
- package/dist/index.js +75 -1
- package/dist/index2.js +75 -0
- package/package.json +1 -1
- package/dist/index.mjs +0 -1
package/dist/index.global.js
CHANGED
|
@@ -1 +1,75 @@
|
|
|
1
|
-
'use strict';function _0x454b(){const _0x4f6a69=['amazon-kendra','target','banner_color','Service\x20Worker\x20registered','brandId','indexOf','scroll','getCacheStats:\x20No\x20cache\x20found','optIn','mergn_shopify','barkrowler','twitterbot','button_1','Tracking\x20page\x20change','getTime','isShopify','PUT','recordAttributeFromQueue','Assigning\x20external_id\x20to\x20Mergn\x20PageView\x20Event','Pushing\x20message\x20to\x20service\x20worker','existing_subscription','Saved\x20to\x20localStorage\x20cache:\x20','split','queue','getItem','events','Error\x20storing\x20attribute\x20data\x20in\x20local\x20storage','utm_source','initialTime','pushToQueue','Viewed\x20Web\x20Push\x20Soft-ask','snapchatadsbot','pingdom-bot','height','Baidu\x20Browser','QQ\x20Browser','vercelflags','.u-popup-container\x20img','TikTok','createElement','dataProcessingOptions','defineProperties','User\x20closed\x20the\x20notification\x20permission\x20dialog.','attributeName','Facebook','FBAN','getOperatingSystem','OriginateFrom:\x20','DELAY','outerHTML','error','fromCharCode','vwp_error','/set-identity','call','13157226XrChBE','web_optin_instance_id','padStart','UTC','DEBUG','decode','check_permission','checkIfIdentityExists','utm_content','seznambot','Notification\x20','action','Web\x20Session\x20Concluded','Error\x20posting\x20attribute\x20record','Popup\x20container\x20created\x20with\x20ID:','update','mergn-sw.js','7daGMOO','catch','uniqueIdentity','\x20|\x20Attribute\x20Value:\x20','isContentCardAction','Google\x20Chrome','getOSVersion','seekportbot','1207074ylyFtw','microsoftpreview','fbq','Fast\x20bot\x20detection:\x20Common\x20bot\x20pattern\x20found','Form\x20submitted\x20values:','preInitializedEvents','Platform','search','login','Microsoft\x20Edge','Setting\x20identity\x20to:','pushManager','Failed\x20to\x20subscribe\x20the\x20user','Popup\x20Action','GET','padding','text_color','recordDebugEventsToggle','undefined','shift','already_registered','setPreviousUrl','match','99999999','The\x20user\x20has\x20already\x20enabled\x20notifications.','success','\x0amargin-bottom:\x205px;\x0afont-size:\x2013px;\x0acolor:\x20','customerio-webhooks','/mergn-sw.js','isWeb','optin_data','verify\x20API\x20key','data','verifyTTL','ccbot','keys','Event\x20Payload:\x0a\x20','Turned\x20Off\x20Notification\x20Reset\x20Permission','Failed\x20to\x20sync\x20real-world\x20time','github-camo','parentElement','chatgpt-user','button-2','offlineEvents','min','Desktop\x20UA\x20detected,\x20checking\x20for\x20bots...','2dfd592m441rgn4cce63a9b051c62d66d9d54d46eae8a831e508559007d299a98914d62','Vivaldi','campaignCustomerInstanceId','group','newrelic-minions','attributeProperty','No\x20localStorage\x20cache\x20found','SESSION_ID','write\x20to\x20private\x20field','Image','\x20invalid\x20eventProperties:\x20','apis-google','two_step','design','button_2','postEventRecord','Popup\x20container\x20element\x20found','origin','register','NONE','facebookexternalhit','campaignId','text','contentCard_container_','removeAttribute','time','adsense','Error\x20verifying\x20API\x20key','subscribed','isInitialized','session','showNotification','isMobile','Time\x20difference:\x20','Failed\x20to\x20request\x20notification\x20permission','ERROR','getAttributeFromCookie','No\x20events\x20to\x20record','UTM_TERM','banner_text','content_card','User\x20denied\x20the\x20notification\x20permission.','info','\x20already\x20exists\x20with\x20value\x20','site24x7','device_detector_cache','installed','GAD_SOURCE','discordbot','addEventListener','logout','remove',';\x0apadding:\x2015px;\x0aborder-radius:\x205px;\x0amax-width:\x20380px;\x0amax-height:\x20463px;\x0a','MergnError','close','Mergn\x20PageView','pre_vwp','submit','Recording\x20attribute\x20Time','Mergn\x20is\x20loading!','setIdentity','storeIdentity','storeActionInLocalStorageInternal','getPreviousUrl','Load\x20failed','serviceWorker','add','Checking\x20notification\x20permission:\x20','Service\x20Worker\x20registration\x20failed:','Pushing\x20message\x20to\x20service\x20worker\x20for\x20initialization','attributes','Appending\x20ContentCard\x20to:\x20','getUTCDate','\x20is\x20not\x20valid.','mj12bot','Creating\x20and\x20appending\x20element\x20with\x20tag:\x20','discord-bot','backgroundColor','https://api.mergn.com/sdk-management/api','Notification','beforeunload','Notification\x20permission:\x20','querySelectorAll','applebot','googleother','v0bot','#\x20recordAttributeFromQueue','Web',',\x20Attribute\x20Value:\x20','GCLID','\x20already\x20in\x20cache','toLowerCase','setCookie','splice','/device/add-device-token','gad_source','Mergn\x20SDK\x20Initialized','has','Mergn\x20not\x20initialized!','geedoproductsearchbot','Accepted\x20Web\x20Push\x20Soft-ask','href',';\x20path=/;\x20secure;\x20SameSite=Strict','Baidu','google-cloudvertexbot','gptbot','\x0amargin-bottom:\x205px;\x0afont-size:\x2016px;\x0acolor:\x20','Service\x20Worker\x20and\x20Push\x20Manager\x20are\x20supported','display','storeAttributeInLocalStorage','resolve','svix','test','showDelayedAction','hidden','google-storebot','uptime-robot','init','Failed\x20to\x20check\x20notification\x20permission','retryPromise','string','google-image-proxy','fetchEventData','loadPopupEventActionInLocalStorage','pushMessageToSW','statuscake','\x20not\x20found\x20to\x20append\x20ContentCard','documentElement','view','UTM_MEDIUM','Crawlers','razorpay-webhook','oai-searchbot','Detecting\x20device\x20for\x20UA:\x20','isExtensionSW','getVersion','granted','fbclid','auto','alt','Internet\x20Explorer','getCacheStats','denied','Trident','parse','decodeData','google-inspectiontool','join','Detected:\x20Web\x20(Desktop)','u_content_form_','better-stack','mergn_identity','no_optin','randomUUID','Recording\x20event\x20Time','push_manager','Cache\x20stats:\x20','defineProperty','SESSION_CREATED','Popup\x20displayed\x20successfully','Service\x20Worker\x20registration','Popup\x20event\x20is\x20in\x20queue\x20for\x20campaignId:\x20','showPopup','attributeValue','amazon-seller-initiated-listing','substring','Content\x20Card\x20Click','swPath','recordAttribute','propertyIsEnumerable','syncRealWorldTime','isPopupAction','/brand/get-web-push-public-key','isArray','shopify','7975535yHgvqF','Detected:\x20Mobile\x20WebView','#\x20check\x20TTL','Email','setOperatingSystem','Thank\x20you\x20page','SCROLL','claritybot','requestPermission','\x20Time','\x0aMergnError:\x20','yahoo-ad-monitoring','tagName','name','getInstance','eventName','artemis-web-crawler','Current\x20time:\x20','mergn-overlay','Event\x20','Opera','vercel-favicon-bot','getAPIKey','pinterest-bot','default','abs','Brave','\x20not\x20exists','startsWith','441','offline','Initializing\x20Mergn\x20SDK','hetrixtools-uptime-monitoring-bot','SamsungBrowser','getCookie','now','\x0amax-width:\x20100%;\x0aheight:\x20auto;\x0a','fetchAttributeData','Closed\x20Web\x20Push\x20Subscription','cookiebot','Failed\x20to\x20fetch','storeAttribute','load','lastSyncTime','toISOString','Displaying\x20popup\x20for\x20campaign\x20ID:\x20','application/json','boolean','mergn_customer_attributes','Firefox','removeEventListener','Cannot\x20add\x20the\x20same\x20private\x20member\x20more\x20than\x20once','Pushing\x20message\x20to\x20SW\x20from\x20Shopify\x20data','Cache\x20clear\x20error:\x20','next','Edg','Identity:\x20','Content\x20Card\x20View','entry_time_value','/set-attribute','OPR','identity\x20received:\x20','Reachability\x20Push\x20Web','Initializing\x20notification\x20service\x20from\x20Base\x20Service','zIndex','mergn-column-25','searchParams','Checking\x20for\x20existing\x20subscription','API_URL','POST','Sogou\x20Browser','body','google-site-verifier','mergn_init','notification\x20service','filter','clearActionInLocalStorage','No\x20existing\x20subscription\x20found','Mergn\x20is\x20offline!','preInitializedAttributes','ALL','get','removeItem','https://www.broadwaypizza.com.pk/','1.0.245','5772676WrbuAs','post','No\x20cache\x20found,\x20performing\x20device\x20detection','toUTCString','pathname','pop','SHA-256','push','divId','recordEventPreInitialized','IMMEDIATELY','cookie','init_condition','\x20does\x20not\x20have\x20a\x20valid\x20eventProperty.','google-extended','getPlatform','button','meta-externalagent','os-version','/brand','yandexbot','userAgent','reject','isInteger','statechange','ContentCard\x20already\x20displayed','INFO','\x20-\x20','popup_container_','stringify','querySelector','web_push_action','Showing\x20popup\x20for\x20campaign\x20ID:\x20','ahrefsbot','Form\x20Submit','Recording\x20attribute','sentry-uptime-monitoring-bot','Getting\x20Web\x20Key:\x20','append','paypal','Initial\x20time:\x20','QQBrowser','Checking\x20if\x20popup\x20event\x20is\x20in\x20queue\x20for\x20campaignId:\x20','name:\x20','record\x20event','getRegistrations','active','location','base_init','google-pagerenderer','overflow','Mozilla\x20Firefox','/brand/get-time','5918346mqcUAD','Close\x20Click','/apps/mergn/mergn-sw.js','getBrandId','UCBrowser','\x0aUnexpected\x20error:\x20','Allowed\x20Web\x20Push\x20Subscription','read\x20from\x20private\x20field','campaignEntryTimeValue','mergn-column-75','banner_icon','.u-popup-overlay','textContent','campaignEntryTime','PushManager','digest','campaigns','updateAPIKey','localStorage\x20cache\x20expired\x20or\x20UA\x20mismatch,\x20removed','swPath:\x20','adidxbot','gpt-actions','UTM_CONTENT','Debug\x20level\x20must\x20be\x20according\x20to:\x0a\x20NONE:\x200,\x20INFO:\x201,\x20ERROR:\x202,\x20ALL:\x203','customer','banner_design','debugLevel','Denied\x20Web\x20Push\x20Soft-ask','storeEventsAndPropertiesInLocalStorage','semrush','utm_medium','scrollHeight','updateSessionCreated','datadog-synthetic-monitoring-robot','_self','img','value','Cache\x20cleared\x20successfully','sanity-webhooks','logo','Element\x20','postMessage','facebook-webhooks','banner_image','position','795068poojQV','petalbot','showAfterScrollAction','appendChild','checkly','Clearing\x20popup\x20event\x20action\x20in\x20local\x20storage\x20for\x20campaign\x20ID:\x20','map','chrome-lighthouse','Logging\x20out','forEach','className','top','UTCDate','viewed','Service\x20Worker\x20registration\x20is\x20available','mergn','removeIdentity','setDebugLevel','Recording\x20pre-initialized\x20attributes','100%','Checking\x20TTL','Request\x20aborted','stripe-webhooks','loadWebPushActionInLocalStorage','/record-event','pushState','Popup\x20element\x20created\x20and\x20appending\x20to\x20the\x20body','claude-user','Attribute\x20','Web\x20Session\x20Started','throw','prototype','semrush-site-audit','access\x20private\x20method','User\x20granted\x20the\x20notification\x20permission.','expires=','UTC\x20Date\x20or\x20last\x20sync\x20time\x20is\x20not\x20set','put','centered-image','Popup\x20action\x20data:\x20','\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','isCrawler','9341656JFCmHu','src','button-container','opengraphxyzbot','abcd','state','Logging\x20in','Error\x20posting\x20event\x20record:','eventProperty','\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','Service\x20Worker\x20ready','mergnWebPushPopup','Existing\x20subscription\x20found','getSubscription','algolia','hookdeck',';\x0acolor:\x20','Cannot\x20','store\x20session','bind','updatefound','mergn-row','listen\x20to\x20shopify\x20data','retryPost','hasOwnProperty','Existing\x20Subscription:\x20','Assigned\x20external_id\x20to\x20Mergn\x20PageView\x20Event','service_worker','notification_data','Notification\x20Disabled','check\x20permission\x20denied','mergn_debug_level','Attribute\x20Name:\x20','utm_campaign','length','Verifying\x20API\x20Key','\x0apadding:\x2012px\x2020px;\x0aborder:\x20none;\x0abackground-color:\x20\x20','important','Detected:\x20Unknown\x20device\x20type','clearLocalStorage','set','tracking\x20page\x20change\x20register','MSIE','\x20has\x20invalid\x20attributeProperties:\x20','color','localStorage\x20read\x20error:\x20','includes',';\x0acursor:\x20pointer;\x0aborder-radius:\x205px;\x0awidth:\x2048%;\x0a','googlebot','Button\x20Click','AbortError','#\x20Recording\x20event','naver-blueno','User\x20is\x20subscribed','Safari','Twitter','notification_permission_error','notification\x20instance\x20not\x20found','hydrozen','cssText','encode','Turned\x20Off\x20Notification','setTime','loading','checkIfAttributeExists','Recording\x20event','DeviceDetector\x20singleton\x20instance\x20created','getStoredEvents','recordEventsFromQueue','seobility','recordEvent','apiKey','Error\x20fetching\x20event\x20data','form','chatgpt-operator','button-1','LinkedIn','Time\x20value:\x20','UTM_SOURCE','perplexity-user','bingbot','Cache\x20hit\x20from\x20localStorage:\x20','Popup','setOSVersion','script','/attribute','4mBXDMK','left','identity','message','.u-close-button','Error\x20fetching\x20attribute\x20data','Filtering\x20Event\x20','checkTTL','Failed\x20to\x20push\x20message\x20to\x20service\x20worker:\x20','findIndex','duration','recordDebugEvents','pulsepoint-crawler','setProperty','facebot','inngest','unsubscribe','then','FBAV','Unknown','ERROR:\x20','charCodeAt','click','claudebot','done','log\x20level\x20check','Popup\x20already\x20in\x20cache','Mobile','Shopify\x20data\x20changed','amazon-q','getAttribute','style','Viewed\x20Webpage','[id^=\x22u_content_button_\x22]','Instagram','#\x20record\x20event','getUTCFullYear','entries','amazonbot','div','apply','encodeData','ttl','INFO:\x20','Data\x20for\x20popup:','application/x-www-form-urlencoded','setItem','getElementById','brightbot','innerHTML','linkedinbot','Notification\x20service\x20is\x20not\x20initialized','#\x20recordAttribute','_blank','Snapchat','json','timeEnd','loadActionInLocalStorage','subscribe','scrollY','toString','type','Chrome','permission','disableSDK','storeActionInLocalStorage','Pre\x20Initialized\x20Attribute\x20','criteobot','adsbot-google','showContentCard','from','/v2','allSettled','setPlatform','toUpperCase'];_0x454b=function(){return _0x4f6a69;};return _0x454b();}(function(_0x4778ea,_0xc870b2){const _0x38f62b=_0x3706,_0x237588=_0x4778ea();while(!![]){try{const _0xcf07c7=parseInt(_0x38f62b(0x1b3))/0x1*(parseInt(_0x38f62b(0x233))/0x2)+parseInt(_0x38f62b(0x2ce))/0x3+-parseInt(_0x38f62b(0x151))/0x4+parseInt(_0x38f62b(0xfc))/0x5+-parseInt(_0x38f62b(0x186))/0x6+-parseInt(_0x38f62b(0x2c6))/0x7*(-parseInt(_0x38f62b(0x1dd))/0x8)+-parseInt(_0x38f62b(0x2b5))/0x9;if(_0xcf07c7===_0xc870b2)break;else _0x237588['push'](_0x237588['shift']());}catch(_0x3eec67){_0x237588['push'](_0x237588['shift']());}}}(_0x454b,0xd2e5a));function _0x3706(_0x272cfb,_0x2cc055){const _0x454bb5=_0x454b();return _0x3706=function(_0x37060d,_0x3551be){_0x37060d=_0x37060d-0x9a;let _0x432d3e=_0x454bb5[_0x37060d];return _0x432d3e;},_0x3706(_0x272cfb,_0x2cc055);}((()=>{const _0x18566b=_0x3706;var _0x4a9521=Object[_0x18566b(0xea)],_0x7fd857=Object[_0x18566b(0x2a7)],_0x1805c1=Object['getOwnPropertyDescriptors'],_0x593ae1=Object['getOwnPropertySymbols'],_0x5a7a80=Object[_0x18566b(0x1d2)][_0x18566b(0x1f5)],_0x532049=Object[_0x18566b(0x1d2)][_0x18566b(0xf6)],_0x26dc88=_0x4dfd52=>{throw TypeError(_0x4dfd52);},_0x5e35db=(_0x590c11,_0x47894a,_0x57dbc1)=>_0x47894a in _0x590c11?_0x4a9521(_0x590c11,_0x47894a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x57dbc1}):_0x590c11[_0x47894a]=_0x57dbc1,_0x9bf69c=(_0x5209b1,_0x9fe609)=>{const _0x2c3858=_0x18566b;for(var _0x163cee in _0x9fe609||(_0x9fe609={}))_0x5a7a80[_0x2c3858(0x2b4)](_0x9fe609,_0x163cee)&&_0x5e35db(_0x5209b1,_0x163cee,_0x9fe609[_0x163cee]);if(_0x593ae1){for(var _0x163cee of _0x593ae1(_0x9fe609))_0x532049[_0x2c3858(0x2b4)](_0x9fe609,_0x163cee)&&_0x5e35db(_0x5209b1,_0x163cee,_0x9fe609[_0x163cee]);}return _0x5209b1;},_0x4ff0ee=(_0x6c0d48,_0x15e15e)=>_0x7fd857(_0x6c0d48,_0x1805c1(_0x15e15e)),_0x2f8dda=(_0x42a908,_0x36d98a,_0x4102ca)=>_0x36d98a[_0x18566b(0xae)](_0x42a908)||_0x26dc88(_0x18566b(0x1ee)+_0x4102ca),_0x2ae45e=(_0x55c1c2,_0x203c27,_0x56099d)=>(_0x2f8dda(_0x55c1c2,_0x203c27,_0x18566b(0x18d)),_0x56099d?_0x56099d['call'](_0x55c1c2):_0x203c27[_0x18566b(0x14d)](_0x55c1c2)),_0x120e23=(_0x2a3ed1,_0x298251,_0xef2d5e)=>_0x298251['has'](_0x2a3ed1)?_0x26dc88(_0x18566b(0x12f)):_0x298251 instanceof WeakSet?_0x298251[_0x18566b(0x33e)](_0x2a3ed1):_0x298251[_0x18566b(0x205)](_0x2a3ed1,_0xef2d5e),_0x4183cd=(_0x3825ea,_0x15107a,_0x5a8a14,_0x151391)=>(_0x2f8dda(_0x3825ea,_0x15107a,_0x18566b(0x304)),_0x151391?_0x151391[_0x18566b(0x2b4)](_0x3825ea,_0x5a8a14):_0x15107a[_0x18566b(0x205)](_0x3825ea,_0x5a8a14),_0x5a8a14),_0x24718d=(_0x2836bd,_0x86766c,_0x39961a)=>(_0x2f8dda(_0x2836bd,_0x86766c,_0x18566b(0x1d4)),_0x39961a),_0x5ee3ca=(_0x40429b,_0x6f9b5c,_0x219ad3)=>new Promise((_0x17c17e,_0x1dd2f1)=>{const _0x3f1c02=_0x18566b;var _0x1bc442=_0x3f7f1c=>{const _0x45dc32=_0x3706;try{_0x5afe5f(_0x219ad3[_0x45dc32(0x132)](_0x3f7f1c));}catch(_0x3a7c24){_0x1dd2f1(_0x3a7c24);}},_0x2e1163=_0x9af93=>{const _0x2c42e2=_0x3706;try{_0x5afe5f(_0x219ad3[_0x2c42e2(0x1d1)](_0x9af93));}catch(_0x2ccb45){_0x1dd2f1(_0x2ccb45);}},_0x5afe5f=_0x2cabf8=>_0x2cabf8[_0x3f1c02(0x24b)]?_0x17c17e(_0x2cabf8['value']):Promise[_0x3f1c02(0xbb)](_0x2cabf8[_0x3f1c02(0x1aa)])[_0x3f1c02(0x244)](_0x1bc442,_0x2e1163);_0x5afe5f((_0x219ad3=_0x219ad3['apply'](_0x40429b,_0x6f9b5c))[_0x3f1c02(0x132)]());}),_0x1b9bc9=_0x18566b(0x150),_0x46e76f=_0x18566b(0x9b),_0x50c00a=_0x18566b(0x232),_0x5b7537=_0x18566b(0x137),_0x1bf009='/event',_0x33b1ed=_0x18566b(0x1cb),_0xf1df01='/customer',_0xd864e=_0x18566b(0xab),_0x1e649d=_0x18566b(0x2b3),_0x302bc8=_0x18566b(0xf9),_0xa36b0=_0x18566b(0x185),_0x16ae1c=class extends Error{constructor(_0x144f5b){const _0x53b97b=_0x18566b;super(_0x144f5b),this[_0x53b97b(0x109)]=_0x53b97b(0x331);}};_0x16ae1c['disableSDK']=!0x1,_0x16ae1c[_0x18566b(0x11a)]=!navigator['onLine'],_0x16ae1c['debugLevel']=0x0,_0x16ae1c[_0x18566b(0x319)]=!0x1,_0x16ae1c[_0x18566b(0x21c)]=!0x1;var _0x58a424=(_0x25f1cd,_0xae1c50)=>{const _0x32527f=_0x18566b;_0xae1c50 instanceof _0x16ae1c?_0x187999(0x2,_0x32527f(0x2ad)+_0x25f1cd+_0x32527f(0x106)+_0xae1c50['message']):_0xae1c50 instanceof Error?_0x187999(0x2,_0x32527f(0x2ad)+_0x25f1cd+_0x32527f(0x18b)+_0xae1c50[_0x32527f(0x236)]):_0x187999(0x2,_0x32527f(0x2ad)+_0x25f1cd+_0x32527f(0x18b)+String(_0xae1c50));},_0x5b4f5a=(_0x3b62e6,_0x453ca6,_0x5d1a23,_0x5905f7=!0x1)=>_0x5ee3ca(void 0x0,null,function*(){const _0xca8cec=_0x18566b;try{_0x17615e(_0x3b62e6,!0x0),_0x4e5064(_0x3b62e6+_0xca8cec(0x105),!0x0);try{if(_0x3b62e6!=='verify\x20API\x20key'){if(_0x3b62e6!=='verify\x20API\x20key'&&_0x16ae1c['disableSDK'])throw new _0x16ae1c('Mergn\x20SDK\x20is\x20disabled!');if(_0x3b62e6!==_0xca8cec(0x17d)&&_0x16ae1c[_0xca8cec(0x11a)])throw new _0x16ae1c(_0xca8cec(0x14a));if(_0x3b62e6!==_0xca8cec(0xc2)&&_0x3b62e6!==_0xca8cec(0x2ed)&&_0x3b62e6!=='record\x20event'&&_0x3b62e6!=='recordAttribute'&&_0x3b62e6!==_0xca8cec(0x24c)&&!_0x16ae1c[_0xca8cec(0x319)])throw new _0x16ae1c(_0xca8cec(0xaf));if(_0x3b62e6!==_0xca8cec(0x2d6)&&_0x3b62e6!==_0xca8cec(0x17d)&&_0x3b62e6!==_0xca8cec(0xf5)&&_0x16ae1c['loading'])throw new _0x16ae1c(_0xca8cec(0x337));}return yield _0x453ca6();}catch(_0x25a7e1){return _0x5d1a23?_0x5d1a23(_0x25a7e1):(_0x16ae1c[_0xca8cec(0x1a0)]===0x2||_0x16ae1c[_0xca8cec(0x1a0)]===0x3)&&_0x58a424(_0x3b62e6,_0x25a7e1),null;}finally{_0x4e5064(_0x3b62e6+_0xca8cec(0x105),!0x1),_0x17615e(_0x3b62e6,!0x1);}}catch(_0x4d242b){return null;}}),_0x5e5cfa=(_0x2cd02a=>(_0x2cd02a[_0x2cd02a['NONE']=0x0]=_0x18566b(0x30f),_0x2cd02a[_0x2cd02a[_0x18566b(0x16b)]=0x1]=_0x18566b(0x16b),_0x2cd02a[_0x2cd02a['ERROR']=0x2]=_0x18566b(0x31f),_0x2cd02a[_0x2cd02a[_0x18566b(0x14c)]=0x3]=_0x18566b(0x14c),_0x2cd02a[_0x2cd02a[_0x18566b(0x2b9)]=0x4]=_0x18566b(0x2b9),_0x2cd02a))(_0x5e5cfa||{}),_0x187999=(_0x431596,_0x4fc4a7)=>{const _0x9da196=_0x18566b;_0x16ae1c[_0x9da196(0x1a0)]!==0x0&&(_0x16ae1c[_0x9da196(0x1a0)]>=0x3?_0x431596===0x1?console[_0x9da196(0x326)](_0x9da196(0x25e)+new Date()['toISOString'](),_0x4fc4a7):_0x431596===0x2&&console[_0x9da196(0x2b0)](_0x9da196(0x247)+new Date()[_0x9da196(0x128)](),_0x4fc4a7):_0x16ae1c[_0x9da196(0x1a0)]===0x1&&_0x431596===0x1?console[_0x9da196(0x326)](_0x9da196(0x25e)+new Date()['toISOString'](),_0x4fc4a7):_0x16ae1c[_0x9da196(0x1a0)]===0x2&&_0x431596===0x2&&console['error'](_0x9da196(0x247)+new Date()[_0x9da196(0x128)](),_0x4fc4a7));},_0x4e5064=(_0x54a82c,_0xcef2fd)=>{const _0x4cdd8d=_0x18566b;_0x16ae1c[_0x4cdd8d(0x1a0)]!==0x0&&(_0xcef2fd?console[_0x4cdd8d(0x315)](_0x54a82c):console[_0x4cdd8d(0x26b)](_0x54a82c));},_0x17615e=(_0x5412f8,_0x39b406)=>{const _0x2e771d=_0x18566b;_0x16ae1c[_0x2e771d(0x1a0)]!==0x0&&(_0x39b406?console[_0x2e771d(0x2ff)](_0x5412f8):console['groupEnd']());},_0x3f8e44,_0x519c66,_0x9fdfdb,_0x40f5ba,_0x359793=class _0x3b4e8f{constructor(){_0x120e23(this,_0x519c66);}['retryPromise'](_0x103158,_0x45174b=0x3,_0x48054a=0x3e8){return new Promise((_0xd43dd2,_0xd3fba9)=>{let _0xa71bdd=_0x55829d=>_0x5ee3ca(this,null,function*(){try{let _0x5b1b69=yield _0x103158();_0xd43dd2(_0x5b1b69);}catch(_0x393dca){_0x55829d===0x0?_0xd3fba9(_0x393dca):setTimeout(()=>{_0xa71bdd(_0x55829d-0x1);},_0x48054a);}});_0xa71bdd(_0x45174b);});}static[_0x18566b(0x10a)](){return _0x2ae45e(_0x3b4e8f,_0x3f8e44)||_0x4183cd(_0x3b4e8f,_0x3f8e44,new _0x3b4e8f()),_0x2ae45e(_0x3b4e8f,_0x3f8e44);}['setApiURL'](_0x508fec){const _0x9f5da6=_0x18566b;_0x3b4e8f[_0x9f5da6(0x140)]=_0x508fec;}[_0x18566b(0x197)](_0xcadc7b){const _0x5ecfb6=_0x18566b;_0x3b4e8f[_0x5ecfb6(0x224)]=_0xcadc7b;let _0x37330e=_0xcadc7b,_0x2c2a1a=/m(\d+)rgn/,_0x978ef6=_0x37330e[_0x5ecfb6(0x2e4)](_0x2c2a1a);_0x978ef6&&(_0x3b4e8f['brandId']=_0x978ef6[0x1]);}[_0x18566b(0x112)](){const _0x3bf207=_0x18566b;return _0x3b4e8f[_0x3bf207(0x224)];}[_0x18566b(0x189)](){const _0x1b6944=_0x18566b;return _0x3b4e8f[_0x1b6944(0x282)];}['get'](_0x18c2ee){return _0x5ee3ca(this,null,function*(){const _0x540e43=_0x3706;let _0x411374=_0x24718d(this,_0x519c66,_0x40f5ba)[_0x540e43(0x2b4)](this,_0x3b4e8f[_0x540e43(0x224)]);try{let _0x217bb8=yield fetch(_0x24718d(this,_0x519c66,_0x9fdfdb)['call'](this)+_0x18c2ee,{'headers':{'Authorization':_0x411374,'Content-Type':_0x540e43(0x12a)}});if(!_0x217bb8['ok'])throw new Error(_0x411374+_0x540e43(0x16c)+JSON[_0x540e43(0x16e)](yield _0x217bb8['json']()));return _0x217bb8['json']();}catch(_0x44c673){return Promise[_0x540e43(0x167)](_0x44c673);}});}['post'](_0x376624,_0x3db12b,_0x12abd5){return _0x5ee3ca(this,null,function*(){const _0x4f1a67=_0x3706;let _0x471cee=_0x24718d(this,_0x519c66,_0x40f5ba)['call'](this,_0x3b4e8f[_0x4f1a67(0x224)]);try{return(yield fetch(_0x24718d(this,_0x519c66,_0x9fdfdb)[_0x4f1a67(0x2b4)](this)+_0x376624,{'body':JSON[_0x4f1a67(0x16e)](_0x3db12b||{}),'headers':{'Authorization':_0x471cee,'Content-Type':_0x4f1a67(0x12a)},'method':_0x4f1a67(0x141),'signal':_0x12abd5}))[_0x4f1a67(0x26a)]();}catch(_0x5b452f){return Promise[_0x4f1a67(0x167)](_0x5b452f);}});}[_0x18566b(0x1d8)](_0xeb934d,_0x197e41){return _0x5ee3ca(this,null,function*(){const _0x32319c=_0x3706;return(yield fetch(_0x24718d(this,_0x519c66,_0x9fdfdb)[_0x32319c(0x2b4)](this)+_0xeb934d,{'body':JSON[_0x32319c(0x16e)](_0x197e41||{}),'headers':{'Authorization':_0x24718d(this,_0x519c66,_0x40f5ba)[_0x32319c(0x2b4)](this,_0x3b4e8f[_0x32319c(0x224)]),'Content-Type':'application/json'},'method':_0x32319c(0x28e)}))[_0x32319c(0x26a)]();});}[_0x18566b(0xf7)](){return _0x5ee3ca(this,null,function*(){const _0x59103a=_0x3706;try{let _0x16b51a=(yield(yield fetch(_0x24718d(this,_0x519c66,_0x9fdfdb)[_0x59103a(0x2b4)](this)+_0xa36b0))[_0x59103a(0x26a)]())['data'];_0x3b4e8f[_0x59103a(0x1bf)]=new Date(_0x16b51a),_0x3b4e8f[_0x59103a(0x127)]=new Date();}catch(_0x2a12fa){_0x187999(0x2,_0x59103a(0x2f4));}});}['getCurrentUTCDate'](){const _0x4ee743=_0x18566b;if(!_0x3b4e8f[_0x4ee743(0x1bf)]||!_0x3b4e8f[_0x4ee743(0x127)])return _0x187999(0x2,_0x4ee743(0x1d7)),new Date();let _0x234aa3=new Date()['getTime']()-_0x3b4e8f[_0x4ee743(0x127)]['getTime']();return new Date(_0x3b4e8f['UTCDate'][_0x4ee743(0x28c)]()+_0x234aa3);}['retryPost'](_0x5f33d7,_0x1a549b,_0x440992){return _0x5ee3ca(this,null,function*(){const _0x2e2336=_0x3706;return this[_0x2e2336(0xc4)](()=>this[_0x2e2336(0x152)](_0x5f33d7,_0x1a549b,_0x440992));});}};_0x3f8e44=new WeakMap(),_0x519c66=new WeakSet(),_0x9fdfdb=function(){return _0x359793['API_URL'];},_0x40f5ba=function(_0x3dea17){const _0x193dde=_0x18566b;return btoa(_0x3dea17+':'+new Date()[_0x193dde(0x28c)]());},_0x120e23(_0x359793,_0x3f8e44),_0x359793[_0x18566b(0x140)]=_0x46e76f;var _0x376d2b=_0x359793,_0x543d58=_0x376d2b[_0x18566b(0x10a)](),_0x3f06d4=(_0x1ca8b0=>(_0x1ca8b0[_0x18566b(0x22b)]=_0x18566b(0x299),_0x1ca8b0[_0x18566b(0xce)]=_0x18566b(0x1a4),_0x1ca8b0['UTM_CAMPAIGN']=_0x18566b(0x1fe),_0x1ca8b0[_0x18566b(0x322)]='utm_term',_0x1ca8b0[_0x18566b(0x19c)]=_0x18566b(0x2bd),_0x1ca8b0[_0x18566b(0x32b)]=_0x18566b(0xac),_0x1ca8b0[_0x18566b(0xa6)]='gclid',_0x1ca8b0['FBCLID']=_0x18566b(0xd6),_0x1ca8b0))(_0x3f06d4||{}),_0x430a76=new Set(Object['values'](_0x3f06d4)),_0x533ce4=_0x18566b(0x2db),_0x36cbe4='Content\x20Card\x20Action',_0x1c6902,_0x94fe84,_0x1bcd38,_0x4134f5,_0x12346a,_0x55c3f0,_0x317c4e,_0x433383,_0x3bb186,_0x394a44,_0x2493f0,_0x483163,_0x1e5c47,_0x4eeb78,_0x1d1dec,_0x311b90,_0x53b88f,_0x33be2a,_0x53750c,_0x2645a5,_0x39035d=class _0x359f9b{constructor(){const _0x3974e0=_0x18566b;_0x120e23(this,_0x433383),this[_0x3974e0(0x272)]=null,this[_0x3974e0(0xc9)]=_0x5e6534=>{const _0x14ae8f=_0x3974e0;_0x187999(0x1,_0x14ae8f(0x291)),navigator[_0x14ae8f(0x33d)][_0x14ae8f(0x17e)]()['then'](_0x1e192e=>{const _0x4535e0=_0x14ae8f;_0x187999(0x1,_0x4535e0(0xed)),_0x1e192e[_0x4535e0(0x1bc)](_0x2a8786=>{const _0x49e764=_0x4535e0;var _0x404d7e;_0x2a8786!=null&&_0x2a8786[_0x49e764(0x17f)]&&_0x2a8786['active']['scriptURL'][_0x49e764(0x20b)](_0x2ae45e(_0x359f9b,_0x317c4e)||_0x49e764(0x2c5))&&(_0x187999(0x1,_0x49e764(0x1e7)),(_0x404d7e=_0x2a8786['active'])==null||_0x404d7e[_0x49e764(0x1af)](JSON[_0x49e764(0x16e)](_0x5e6534)));});})[_0x14ae8f(0x2c7)](_0x207ca6=>{const _0x232b53=_0x14ae8f;_0x187999(0x2,_0x232b53(0x23b)+_0x207ca6[_0x232b53(0x236)]);});},this['loadWebPushActionInLocalStorage']=()=>{const _0x9d10ad=_0x3974e0;_0x13a202[_0x9d10ad(0x26c)]({'actionCondition':()=>!0x0,'actionMethod':_0x7f42a2=>_0x24718d(this,_0x433383,_0x1d1dec)[_0x9d10ad(0x2b4)](this,Number(_0x7f42a2[_0x9d10ad(0x2b6)])),'localStorageKey':_0x9d10ad(0x170)});},_0x120e23(this,_0x4eeb78,()=>{const _0x4d6bc1=_0x3974e0;_0x13a202['storeActionInLocalStorageInternal'](_0x4d6bc1(0x170));}),_0x120e23(this,_0x53750c,_0x4c1b50=>{const _0x136713=_0x3974e0;_0x13a202[_0x136713(0x148)]({'id':_0x4c1b50,'localStorageKey':_0x136713(0x170)});});}static['getInstance'](){return _0x2ae45e(_0x359f9b,_0x1c6902)||_0x4183cd(_0x359f9b,_0x1c6902,new _0x359f9b()),_0x2ae45e(_0x359f9b,_0x1c6902);}[_0x18566b(0xc2)](_0x54c570,_0x57bb35,_0x166cca){return _0x5ee3ca(this,null,function*(){const _0x441b07=_0x3706;var _0x578acb;if(_0x187999(0x1,'Initializing\x20Notification\x20Service'),_0x14ec85[_0x441b07(0x23e)]({'eventName':_0x441b07(0xc2),'eventProperties':[{'eventProperty':_0x441b07(0x1f8),'value':_0x441b07(0x33d)in navigator},{'eventProperty':_0x441b07(0xe8),'value':_0x441b07(0x194)in window}]}),_0x441b07(0x33d)in navigator&&'PushManager'in window){_0x187999(0x1,_0x441b07(0xb8));try{_0x14ec85['recordDebugEvents']({'eventName':_0x441b07(0x15d)}),_0x187999(0x1,'isExtensionSW:\x20'+_0x166cca),_0x4183cd(_0x359f9b,_0x317c4e,_0x166cca?window[_0x441b07(0x30d)]+_0x441b07(0x188):_0x57bb35||_0x441b07(0x2ea)),_0x187999(0x1,_0x441b07(0x199)+_0x2ae45e(_0x359f9b,_0x317c4e)),yield navigator['serviceWorker'][_0x441b07(0x30e)](_0x2ae45e(_0x359f9b,_0x317c4e))['then'](_0x137a4e=>{const _0x41465c=_0x441b07;_0x4183cd(_0x359f9b,_0x94fe84,_0x137a4e),setInterval(()=>{_0x137a4e['update']();},0x3e8*0x3c*0x3c),_0x137a4e['addEventListener'](_0x41465c(0x1f1),()=>{const _0x902122=_0x41465c;let _0x4342ee=_0x137a4e['installing'];_0x4342ee&&_0x4342ee[_0x902122(0x32d)](_0x902122(0x169),()=>{const _0x52a23c=_0x902122;_0x4342ee[_0x52a23c(0x1e2)]===_0x52a23c(0x32a)&&console['log']('New\x20service\x20worker\x20installed');});});}),_0x187999(0x1,_0x441b07(0x281)),_0x187999(0x1,_0x441b07(0x341)),setTimeout(()=>{const _0x4b1fef=_0x441b07;this['pushMessageToSW']({'customer':localStorage[_0x4b1fef(0x296)]('customer')||'','events':_0x14ec85['getStoredEvents'](),'API_KEY':_0x543d58[_0x4b1fef(0x112)](),'debugLevel':_0x16ae1c[_0x4b1fef(0x1a0)],'device_id':localStorage[_0x4b1fef(0x296)](_0x4b1fef(0x2c8))||'','operatingSystem':_0x13a202[_0x4b1fef(0x2ac)](),'osVersion':_0x13a202[_0x4b1fef(0x2cc)](),'Platform':_0x13a202[_0x4b1fef(0x160)]()});},0x3e8),_0x4183cd(_0x359f9b,_0x12346a,!0x0);let _0x1716d7=_0x24718d(this,_0x433383,_0x311b90)[_0x441b07(0x2b4)](this),_0x542e69=Object[_0x441b07(0x2f1)](_0x1716d7||{});if(_0x542e69[_0x441b07(0x1ff)]&&_0x24718d(this,_0x433383,_0x1d1dec)[_0x441b07(0x2b4)](this,Number(_0x542e69[0x0])),!_0x54c570)return;let _0x112ca1=yield(_0x578acb=_0x2ae45e(_0x359f9b,_0x94fe84))==null?void 0x0:_0x578acb['pushManager']['getSubscription']();_0x187999(0x1,_0x441b07(0x13f)),_0x2ae45e(_0x359f9b,_0x94fe84)&&(_0x187999(0x1,_0x441b07(0x1c1)),_0x2ae45e(_0x359f9b,_0x94fe84)[_0x441b07(0x2c4)]()),_0x112ca1?(_0x187999(0x1,_0x441b07(0x1e9)),_0x14ec85[_0x441b07(0x23e)]({'eventName':_0x441b07(0x292)}),yield _0x24718d(this,_0x433383,_0x483163)[_0x441b07(0x2b4)](this),_0x4183cd(_0x359f9b,_0x1bcd38,!0x0)):(_0x187999(0x1,_0x441b07(0x149)),yield _0x24718d(this,_0x433383,_0x3bb186)[_0x441b07(0x2b4)](this,_0x2ae45e(_0x359f9b,_0x55c3f0)||void 0x0));}catch(_0x17ef34){let _0x28e9f7=_0x17ef34&&_0x17ef34[_0x441b07(0x236)]?_0x17ef34['message'][_0x441b07(0xf2)](0x0,0x64):_0x441b07(0x2e0);yield _0x14ec85[_0x441b07(0x23e)]({'eventName':_0x441b07(0x13a),'eventProperties':[{'eventProperty':'message','value':''+_0x28e9f7}]}),_0x187999(0x2,_0x441b07(0x340)),_0x187999(0x2,_0x28e9f7);}}else yield _0x14ec85[_0x441b07(0x223)]({'eventName':_0x441b07(0x1fa),'eventProperties':[{'eventProperty':'type','value':_0x441b07(0x216)}]});});}[_0x18566b(0x31b)](_0x1fe97f){const _0x124f25=_0x18566b;if(!_0x2ae45e(_0x359f9b,_0x12346a)){_0x4183cd(_0x359f9b,_0x55c3f0,_0x1fe97f),_0x14ec85[_0x124f25(0x23e)]({'eventName':'notification_service_not_initialized'}),_0x187999(0x2,_0x124f25(0x266));return;}_0x5b4f5a(_0x124f25(0x31b),()=>_0x5ee3ca(this,null,function*(){const _0x281e8f=_0x124f25;var _0x4e136e;let _0x380b1f=JSON['parse'](localStorage[_0x281e8f(0x296)]('web_push_action')||'{}');if(_0x380b1f){for(let _0x340ef3 in _0x380b1f)if(((_0x4e136e=_0x380b1f[_0x340ef3])==null?void 0x0:_0x4e136e['type'])===_0x1fe97f[_0x281e8f(0x270)]){_0x187999(0x1,_0x281e8f(0x2bf)+_0x1fe97f[_0x281e8f(0x270)]+_0x281e8f(0xa7));return;}}_0x24718d(this,_0x433383,_0x1e5c47)[_0x281e8f(0x2b4)](this,_0x1fe97f),_0x2ae45e(this,_0x4eeb78)[_0x281e8f(0x2b4)](this),_0x24718d(this,_0x433383,_0x1d1dec)[_0x281e8f(0x2b4)](this,_0x1fe97f[_0x281e8f(0x2b6)]);}));}};_0x1c6902=new WeakMap(),_0x94fe84=new WeakMap(),_0x1bcd38=new WeakMap(),_0x4134f5=new WeakMap(),_0x12346a=new WeakMap(),_0x55c3f0=new WeakMap(),_0x317c4e=new WeakMap(),_0x433383=new WeakSet(),_0x3bb186=function(_0x212500){return _0x5ee3ca(this,null,function*(){const _0x9c6a09=_0x3706;_0x187999(0x1,_0x9c6a09(0x33f)+JSON[_0x9c6a09(0x16e)](_0x212500)+'\x20'),_0x14ec85[_0x9c6a09(0x23e)]({'eventName':_0x9c6a09(0x2bb)});let _0x192764;try{if(_0x192764=Notification[_0x9c6a09(0x272)],_0x192764){if(_0x187999(0x1,_0x9c6a09(0x9e)+_0x192764),_0x192764==='default')_0x212500||(this['permission']='default',_0x14ec85[_0x9c6a09(0x23e)]({'eventName':_0x9c6a09(0x2f3)})),_0x212500&&(_0x14ec85[_0x9c6a09(0x23e)]({'eventName':_0x9c6a09(0x1f9),'eventProperties':[{'eventProperty':_0x9c6a09(0x270),'value':''+(_0x212500==null?void 0x0:_0x212500[_0x9c6a09(0x270)])}]}),_0x2ae45e(this,_0x53750c)['call'](this,_0x212500['web_optin_instance_id']),_0x212500['type']===_0x9c6a09(0x308)?_0x24718d(this,_0x433383,_0x394a44)[_0x9c6a09(0x2b4)](this,_0x212500):yield _0x24718d(this,_0x433383,_0x2493f0)[_0x9c6a09(0x2b4)](this,_0x212500));else{if(_0x192764==='denied')yield _0x14ec85[_0x9c6a09(0x223)]({'eventName':_0x9c6a09(0x1fa),'eventProperties':[{'eventProperty':_0x9c6a09(0x270),'value':_0x9c6a09(0x1fb)}]}),_0x14ec85[_0x9c6a09(0x23e)]({'eventName':_0x9c6a09(0x21a)}),_0x187999(0x1,'The\x20user\x20has\x20blocked\x20notifications.'),_0x212500&&_0x212500[_0x9c6a09(0x2b6)]&&_0x2ae45e(this,_0x53750c)['call'](this,_0x212500[_0x9c6a09(0x2b6)]);else{if(_0x212500&&_0x212500['web_optin_instance_id']){_0x2ae45e(this,_0x53750c)[_0x9c6a09(0x2b4)](this,_0x212500['web_optin_instance_id']);return;}_0x14ec85['recordDebugEvents']({'eventName':_0x9c6a09(0x2e2)}),_0x187999(0x1,_0x9c6a09(0x2e6)),_0x2ae45e(_0x39035d,_0x1bcd38)||(yield _0x24718d(this,_0x433383,_0x483163)[_0x9c6a09(0x2b4)](this),yield _0x14ec85['recordEvent']({'eventName':'Already\x20Registered\x20To\x20Web\x20Push'}),_0x212500||_0x4183cd(_0x39035d,_0x1bcd38,!0x0));}}}}catch(_0x5d80ef){_0x187999(0x2,_0x9c6a09(0xc3)),_0x14ec85[_0x9c6a09(0x23e)]({'eventName':_0x9c6a09(0x215)});}});},_0x394a44=function(_0x5df426){const _0x16ccae=_0x18566b;try{let _0x147396=document[_0x16ccae(0x2a5)]('div'),_0xcc9923;_0x5df426[_0x16ccae(0x19f)][_0x16ccae(0x1b1)]&&(_0xcc9923=document[_0x16ccae(0x2a5)](_0x16ccae(0x1a9)),_0xcc9923[_0x16ccae(0x1de)]=_0x5df426['banner_design'][_0x16ccae(0x1b1)],_0xcc9923['alt']=_0x16ccae(0x305),_0xcc9923['id']=_0x16ccae(0x1d9));let _0x44cb50=document[_0x16ccae(0x2a5)](_0x16ccae(0x25a)),_0x42e538=document[_0x16ccae(0x2a5)](_0x16ccae(0x25a)),_0x265067=document['createElement'](_0x16ccae(0x25a)),_0x107c48=document[_0x16ccae(0x2a5)](_0x16ccae(0x1a9)),_0x1ff8ff=document[_0x16ccae(0x2a5)](_0x16ccae(0x25a)),_0x395545=document[_0x16ccae(0x2a5)]('div'),_0x260875=document['createElement']('div'),_0xfb7096=document['createElement']('div'),_0x36118c=document[_0x16ccae(0x2a5)](_0x16ccae(0x25a)),_0x402b06=document[_0x16ccae(0x2a5)](_0x16ccae(0x25a)),_0x3dca1f=document[_0x16ccae(0x2a5)](_0x16ccae(0x161)),_0x8f5be7=document['createElement'](_0x16ccae(0x161));_0x147396[_0x16ccae(0x1bd)]=_0x16ccae(0x10e),_0x44cb50[_0x16ccae(0x1bd)]=_0x16ccae(0x1e8),_0x42e538['className']=_0xfb7096[_0x16ccae(0x1bd)]=_0x36118c[_0x16ccae(0x1bd)]=_0x16ccae(0x1f2),_0x265067[_0x16ccae(0x1bd)]=_0x16ccae(0x13d),_0x1ff8ff[_0x16ccae(0x1bd)]=_0x16ccae(0x18f),_0x402b06['className']=_0x16ccae(0x1df),_0x395545['id']='title',_0x260875['id']='subtitle',_0x3dca1f['id']=_0x16ccae(0x228),_0x8f5be7['id']=_0x16ccae(0x2f8),_0x107c48[_0x16ccae(0x1de)]=_0x5df426[_0x16ccae(0x19f)][_0x16ccae(0x190)],_0x107c48[_0x16ccae(0xd8)]='Image',_0x107c48['id']=_0x16ccae(0x1ad),_0x395545['textContent']=_0x5df426[_0x16ccae(0x19f)]['banner_title'],_0x260875[_0x16ccae(0x192)]=_0x5df426['banner_design'][_0x16ccae(0x323)],_0x3dca1f[_0x16ccae(0x192)]=_0x5df426[_0x16ccae(0x19f)][_0x16ccae(0x28a)][_0x16ccae(0x312)],_0x8f5be7['textContent']=_0x5df426[_0x16ccae(0x19f)][_0x16ccae(0x30a)][_0x16ccae(0x312)],_0x265067[_0x16ccae(0x1b6)](_0x107c48),_0x1ff8ff[_0x16ccae(0x1b6)](_0x395545),_0x1ff8ff['appendChild'](_0x260875),_0x42e538[_0x16ccae(0x1b6)](_0x265067),_0x42e538[_0x16ccae(0x1b6)](_0x1ff8ff),_0xcc9923&&(_0xfb7096[_0x16ccae(0x1b6)](_0xcc9923),_0xcc9923[_0x16ccae(0x252)][_0x16ccae(0x218)]=_0x16ccae(0x1db)),_0x402b06[_0x16ccae(0x1b6)](_0x3dca1f),_0x402b06['appendChild'](_0x8f5be7),_0x36118c[_0x16ccae(0x1b6)](_0x402b06),_0x44cb50[_0x16ccae(0x1b6)](_0x42e538),_0x44cb50[_0x16ccae(0x1b6)](_0xfb7096),_0x44cb50['appendChild'](_0x36118c),_0x147396[_0x16ccae(0x1b6)](_0x44cb50),_0x147396[_0x16ccae(0x252)][_0x16ccae(0x218)]=_0x16ccae(0x1e6),_0x44cb50[_0x16ccae(0x252)]['cssText']='\x0abackground-color:\x20'+_0x5df426[_0x16ccae(0x19f)][_0x16ccae(0x280)]+_0x16ccae(0x330),_0x42e538[_0x16ccae(0x252)][_0x16ccae(0x218)]=_0xfb7096[_0x16ccae(0x252)][_0x16ccae(0x218)]=_0x36118c[_0x16ccae(0x252)][_0x16ccae(0x218)]='\x0adisplay:\x20flex;\x0aflex-wrap:\x20wrap;\x0amargin-bottom:\x2010px;\x0a',_0x265067[_0x16ccae(0x252)][_0x16ccae(0x218)]='\x0awidth:\x2025%;\x0a',_0x1ff8ff[_0x16ccae(0x252)][_0x16ccae(0x218)]='\x0awidth:\x2073%;\x0amargin-left:\x202%;\x0a',_0x107c48[_0x16ccae(0x252)][_0x16ccae(0x218)]=_0x16ccae(0x120),_0x3dca1f[_0x16ccae(0x252)][_0x16ccae(0x218)]=_0x16ccae(0x201)+_0x5df426[_0x16ccae(0x19f)][_0x16ccae(0x28a)][_0x16ccae(0x9a)]+_0x16ccae(0x1ed)+_0x5df426[_0x16ccae(0x19f)]['button_1'][_0x16ccae(0x209)]+_0x16ccae(0x20c),_0x8f5be7[_0x16ccae(0x252)]['cssText']=_0x16ccae(0x201)+_0x5df426[_0x16ccae(0x19f)][_0x16ccae(0x30a)][_0x16ccae(0x9a)]+_0x16ccae(0x1ed)+_0x5df426[_0x16ccae(0x19f)][_0x16ccae(0x30a)][_0x16ccae(0x209)]+_0x16ccae(0x20c),_0x402b06[_0x16ccae(0x252)][_0x16ccae(0x218)]='\x0adisplay:\x20flex;\x0ajustify-content:\x20space-between;\x0aalign-items:\x20center;\x0aflex-wrap:\x20nowrap;\x0awidth:\x20100%;\x0a',_0x395545[_0x16ccae(0x252)][_0x16ccae(0x218)]=_0x16ccae(0xb7)+_0x5df426[_0x16ccae(0x19f)][_0x16ccae(0x2de)]+'\x0a',_0x260875[_0x16ccae(0x252)][_0x16ccae(0x218)]=_0x16ccae(0x2e8)+_0x5df426[_0x16ccae(0x19f)][_0x16ccae(0x2de)]+'\x0a',document[_0x16ccae(0x143)][_0x16ccae(0x1b6)](_0x147396),document[_0x16ccae(0x143)][_0x16ccae(0x252)][_0x16ccae(0x183)]=_0x16ccae(0xbf),_0x14ec85[_0x16ccae(0x223)]({'eventName':_0x16ccae(0x29c),'name':_0x16ccae(0x1c0),'web_optin_instance_id':_0x5df426[_0x16ccae(0x2b6)]}),_0x3dca1f==null||_0x3dca1f[_0x16ccae(0x32d)](_0x16ccae(0x249),()=>_0x5ee3ca(this,null,function*(){const _0x2f804c=_0x16ccae;_0x147396[_0x2f804c(0x32f)](),_0x4183cd(_0x39035d,_0x4134f5,!0x1),document[_0x2f804c(0x143)]['style'][_0x2f804c(0x183)]=_0x2f804c(0xd7),yield _0x14ec85[_0x2f804c(0x223)]({'eventName':_0x2f804c(0x1a1),'web_optin_instance_id':_0x5df426['web_optin_instance_id']}),_0x187999(0x1,'User\x20denied\x20the\x20notification\x20permission.');})),_0x8f5be7==null||_0x8f5be7['addEventListener'](_0x16ccae(0x249),()=>_0x5ee3ca(this,null,function*(){const _0x8c898d=_0x16ccae;_0x147396['remove'](),document['body'][_0x8c898d(0x252)][_0x8c898d(0x183)]=_0x8c898d(0xd7),_0x14ec85[_0x8c898d(0x223)]({'eventName':_0x8c898d(0xb1),'web_optin_instance_id':_0x5df426[_0x8c898d(0x2b6)]}),yield _0x24718d(this,_0x433383,_0x2493f0)[_0x8c898d(0x2b4)](this,_0x5df426);}));}catch(_0x55f745){}},_0x2493f0=function(_0x492d3f){return _0x5ee3ca(this,null,function*(){const _0x3b335e=_0x3706;try{_0x14ec85[_0x3b335e(0x223)]({'eventName':'Displayed\x20Web\x20Push\x20Subscription','name':_0x3b335e(0x1c0),'web_optin_instance_id':_0x492d3f['web_optin_instance_id']});let _0xa8ba59=yield Notification[_0x3b335e(0x104)]();_0xa8ba59===_0x3b335e(0xd5)?(_0x187999(0x1,_0x3b335e(0x1d5)),yield _0x24718d(this,_0x433383,_0x483163)[_0x3b335e(0x2b4)](this),yield _0x14ec85[_0x3b335e(0x223)]({'eventName':_0x3b335e(0x18c),'name':_0x3b335e(0x318),'web_optin_instance_id':_0x492d3f['web_optin_instance_id']})):_0xa8ba59===_0x3b335e(0xdb)?(yield _0x14ec85[_0x3b335e(0x223)]({'eventName':'Blocked\x20Web\x20Push\x20Subscription'}),_0x187999(0x1,_0x3b335e(0x325))):_0xa8ba59===_0x3b335e(0x114)&&(yield _0x14ec85[_0x3b335e(0x223)]({'eventName':_0x3b335e(0x122)}),_0x187999(0x1,_0x3b335e(0x2a8)));}catch(_0x113935){_0x187999(0x2,_0x3b335e(0x31e)),_0x187999(0x2,_0x113935['message']);}_0x4183cd(_0x39035d,_0x4134f5,!0x1);});},_0x483163=function(){return _0x5ee3ca(this,null,function*(){const _0x19fbbd=_0x3706;var _0xe2a144,_0x40b3a8;let _0x1f86ac=yield _0x543d58[_0x19fbbd(0x14d)](''+_0x302bc8);if(_0x187999(0x1,_0x19fbbd(0x176)+_0x1f86ac[_0x19fbbd(0x2e7)]),_0x1f86ac[_0x19fbbd(0x2e7)]){let _0x2bd283=yield(_0xe2a144=_0x2ae45e(_0x39035d,_0x94fe84))==null?void 0x0:_0xe2a144[_0x19fbbd(0x2d9)][_0x19fbbd(0x1ea)]();_0x187999(0x1,_0x19fbbd(0x1f6)+!!_0x2bd283),_0x2bd283&&(yield _0x2bd283[_0x19fbbd(0x243)]());let _0x15737f=yield(_0x40b3a8=_0x2ae45e(_0x39035d,_0x94fe84))==null?void 0x0:_0x40b3a8[_0x19fbbd(0x2d9)][_0x19fbbd(0x26d)]({'applicationServerKey':_0x1f86ac[_0x19fbbd(0x2ee)]||'','userVisibleOnly':!0x0}),_0x14f03c=localStorage['getItem'](_0x19fbbd(0x19e))||'';_0x187999(0x1,'subscribeUserToPush\x20Customer\x20ID:\x20'+_0x14f03c),(!_0x14f03c||_0x14f03c===_0x19fbbd(0x2e0))&&(yield _0x13a202[_0x19fbbd(0x338)]()),yield _0x543d58[_0x19fbbd(0x1d8)](''+_0xd864e,{'customer_id':localStorage['getItem']('customer'),'device_id':localStorage['getItem']('uniqueIdentity'),'device_platform':_0x13a202[_0x19fbbd(0x2ac)](),'is_web_push_subscribed':!0x0,'os':_0x13a202[_0x19fbbd(0x160)](),'web_push_subscription_page_url':window[_0x19fbbd(0x180)][_0x19fbbd(0x155)],'web_push_token':{'token':JSON[_0x19fbbd(0xdd)](JSON[_0x19fbbd(0x16e)](_0x15737f))}}),this[_0x19fbbd(0xc9)]({'customer':localStorage[_0x19fbbd(0x296)]('customer')||'','events':_0x14ec85[_0x19fbbd(0x220)](),'API_KEY':_0x543d58[_0x19fbbd(0x112)](),'debugLevel':_0x16ae1c[_0x19fbbd(0x1a0)],'device_id':localStorage[_0x19fbbd(0x296)](_0x19fbbd(0x2c8))||'','operatingSystem':_0x13a202['getOperatingSystem'](),'osVersion':_0x13a202[_0x19fbbd(0x2cc)](),'Platform':_0x13a202['getPlatform']()}),_0x187999(0x1,_0x19fbbd(0x212));}else throw new Error(_0x19fbbd(0x2da));});},_0x1e5c47=function(_0x41c55b){const _0x27d5bf=_0x18566b;_0x13a202[_0x27d5bf(0x274)](_0x41c55b,_0x27d5bf(0x170),'web_optin_instance_id');},_0x4eeb78=new WeakMap(),_0x1d1dec=function(_0x89a081){const _0x2eecfc=_0x18566b;if(_0x2ae45e(_0x39035d,_0x4134f5))return;_0x4183cd(_0x39035d,_0x4134f5,!0x0);let _0x20f2a9=_0x24718d(this,_0x433383,_0x311b90)[_0x2eecfc(0x2b4)](this);if(_0x20f2a9!=null&&_0x20f2a9[_0x89a081])switch(_0x20f2a9[_0x89a081]['entry_time']){case'DELAY':{_0x24718d(this,_0x433383,_0x53b88f)[_0x2eecfc(0x2b4)](this,_0x20f2a9[_0x89a081]);break;}case'IMMEDIATELY':{_0x24718d(this,_0x433383,_0x33be2a)[_0x2eecfc(0x2b4)](this,_0x20f2a9[_0x89a081]);break;}case _0x2eecfc(0x102):{_0x24718d(this,_0x433383,_0x2645a5)['call'](this,_0x20f2a9[_0x89a081]);break;}default:return;}},_0x311b90=function(){const _0x55b044=_0x18566b;let _0x222f24=localStorage[_0x55b044(0x296)](_0x55b044(0x170));return _0x222f24?JSON[_0x55b044(0xdd)](_0x222f24):null;},_0x53b88f=function(_0x46906c){const _0x3c49d9=_0x18566b;_0x13a202[_0x3c49d9(0xbe)]({'clearActionMethod':_0x2ae45e(this,_0x53750c)[_0x3c49d9(0x1f0)](this),'data':_0x46906c,'displayMethod':_0x24718d(this,_0x433383,_0x33be2a)[_0x3c49d9(0x1f0)](this),'idKey':_0x3c49d9(0x2b6),'timeValueKey':_0x3c49d9(0x136)});},_0x33be2a=function(_0x8229d8){const _0x44ef94=_0x18566b;_0x24718d(this,_0x433383,_0x3bb186)[_0x44ef94(0x2b4)](this,_0x8229d8);},_0x53750c=new WeakMap(),_0x2645a5=function(_0x3d1b29){const _0x16a724=_0x18566b;_0x13a202['showAfterScrollAction']({'data':_0x3d1b29,'displayMethod':_0x24718d(this,_0x433383,_0x33be2a)[_0x16a724(0x1f0)](this),'timeValueKey':_0x16a724(0x136)});},_0x120e23(_0x39035d,_0x1c6902),_0x120e23(_0x39035d,_0x94fe84,null),_0x120e23(_0x39035d,_0x1bcd38,!0x1),_0x120e23(_0x39035d,_0x4134f5,!0x1),_0x120e23(_0x39035d,_0x12346a,!0x1),_0x120e23(_0x39035d,_0x55c3f0,null),_0x120e23(_0x39035d,_0x317c4e,'');var _0x15b74d=_0x39035d,_0x5ef6e0=_0x15b74d[_0x18566b(0x10a)](),_0xa40fae,_0x48fdac,_0x39a87c,_0xa43184,_0x3a4aa2,_0x522476,_0x2ce9ee,_0x20f68c,_0xb3959e,_0x3220c3,_0x40ce8a,_0x12bb18,_0x263b4a,_0x517749,_0x467b16,_0x519a97=class _0x2b20dd{constructor(){const _0x3a8c81=_0x18566b;_0x120e23(this,_0x48fdac),_0x120e23(this,_0x2ce9ee,_0x2e2fb1=>{const _0x1ee3dd=_0x3706;_0x187999(0x1,_0x1ee3dd(0x1b8)+_0x2e2fb1),_0x13a202['clearActionInLocalStorage']({'id':_0x2e2fb1,'localStorageKey':'action'});}),_0x120e23(this,_0x20f68c,(_0x5030e5,_0x93ca18)=>{const _0x4d6f4a=_0x3706;let _0x3222bc=document['createElement'](_0x4d6f4a(0x25a));_0x3222bc['innerHTML']=_0x93ca18,_0x3222bc['querySelectorAll'](_0x4d6f4a(0x231))[_0x4d6f4a(0x1bc)](_0x68861b=>{const _0x57ea14=_0x4d6f4a;let _0xd4277e=document[_0x57ea14(0x2a5)](_0x57ea14(0x231));_0x68861b[_0x57ea14(0x1de)]?_0xd4277e[_0x57ea14(0x1de)]=_0x68861b['src']:_0xd4277e[_0x57ea14(0x192)]=_0x68861b[_0x57ea14(0x192)],_0x5030e5[_0x57ea14(0x1b6)](_0xd4277e);});}),_0x120e23(this,_0x3220c3,({campaignCustomerInstanceId:_0x5eafdf,campaignId:_0x289f73,customForm:_0x555101,formDiv:_0x1a7d6b,popupContainer:_0x3f2d89})=>{const _0x139340=_0x3706;let _0xf1abf0=(_0x1a7d6b==null?void 0x0:_0x1a7d6b[_0x139340(0x16f)](_0x139340(0x226)))||_0x555101;_0xf1abf0&&(_0xf1abf0[_0x139340(0x9f)]('input')['forEach'](_0x1c9c39=>{const _0x207e09=_0x139340;_0x1c9c39[_0x207e09(0x252)][_0x207e09(0x240)](_0x207e09(0x2dd),_0x1c9c39[_0x207e09(0x252)][_0x207e09(0x2dd)],_0x207e09(0x202));}),_0xf1abf0[_0x139340(0x32d)](_0x139340(0x335),()=>_0x5ee3ca(this,null,function*(){const _0x520baf=_0x139340;_0x3f2d89['remove']();let _0x337062=new FormData(_0xf1abf0),_0x40641b={};_0x187999(0x1,_0x520baf(0x2d2));let _0x1d1cfb=[];for(let [_0x592fb0,_0x37eb8e]of _0x337062[_0x520baf(0x258)]())_0x40641b[_0x592fb0]=_0x37eb8e,_0x187999(0x1,_0x592fb0+':\x20'+_0x37eb8e),_0x1d1cfb[_0x520baf(0x158)](_0x59b850[_0x520baf(0xf5)](_0x592fb0,_0x37eb8e[_0x520baf(0x26f)]()));if(yield Promise[_0x520baf(0x27b)](_0x1d1cfb),setTimeout(()=>_0x5ee3ca(this,null,function*(){const _0x13bf65=_0x520baf;yield _0x14ec85[_0x13bf65(0x223)]({'campaignCustomerInstanceId':_0x5eafdf,'campaignId':_0x289f73,'eventName':_0x533ce4,'eventProperties':[{'eventProperty':_0x13bf65(0x173),'value':JSON[_0x13bf65(0x16e)]({'campaignId':_0x289f73,'formId':(_0x1a7d6b==null?void 0x0:_0x1a7d6b['id'])||'custom_form','formValues':_0x40641b})},{'eventProperty':'Campaign\x20Id','value':_0x289f73['toString']()}],'name':_0x13bf65(0x226)});})),_0xf1abf0[_0x520baf(0x2c0)]&&!_0x555101){let _0x336484=(_0xf1abf0['method']||_0x520baf(0x2dc))[_0x520baf(0x27d)]();if((_0xf1abf0[_0x520baf(0x27f)]||_0x520baf(0x1a8))===_0x520baf(0x268)){let _0x314d79=new URL(_0xf1abf0['action']);_0x337062[_0x520baf(0x1bc)]((_0x575e19,_0x1c39cf)=>{const _0x2dbbbb=_0x520baf;_0x314d79['searchParams'][_0x2dbbbb(0x177)](_0x1c39cf,_0x575e19[_0x2dbbbb(0x26f)]());}),window['open'](_0x314d79[_0x520baf(0x26f)](),_0x520baf(0x268));return;}try{if(_0x336484===_0x520baf(0x141)){let _0x1e944b=new URLSearchParams();_0x337062['forEach']((_0x2facb5,_0x6c72c4)=>{const _0x123180=_0x520baf;_0x1e944b['append'](_0x6c72c4,_0x2facb5[_0x123180(0x26f)]());}),yield fetch(_0xf1abf0['action'],{'body':_0x1e944b[_0x520baf(0x26f)](),'headers':{'Content-Type':_0x520baf(0x260)},'method':_0x520baf(0x141)});}else{let _0x10eab7=new URL(_0xf1abf0[_0x520baf(0x2c0)]);_0x337062[_0x520baf(0x1bc)]((_0x1384c3,_0x487a42)=>{const _0x3b6199=_0x520baf;_0x10eab7[_0x3b6199(0x13e)][_0x3b6199(0x177)](_0x487a42,_0x1384c3[_0x3b6199(0x26f)]());}),yield fetch(_0x10eab7['toString'](),{'method':_0x520baf(0x2dc)});}}catch(_0x5633b4){_0x187999(0x2,'Error\x20submitting\x20form\x20data:\x20'+_0x5633b4['message']);}}})));}),this[_0x3a8c81(0xc8)]=()=>{const _0x1f3a9a=_0x3a8c81;_0x13a202[_0x1f3a9a(0x26c)]({'actionCondition':_0x20f448=>_0x20f448[_0x1f3a9a(0x236)]['name']===_0x1f3a9a(0x22f),'actionMethod':_0x2bc80e=>_0x24718d(this,_0x48fdac,_0xa43184)[_0x1f3a9a(0x2b4)](this,_0x2bc80e[_0x1f3a9a(0x311)]),'localStorageKey':_0x1f3a9a(0x2c0)});},_0x120e23(this,_0x467b16,()=>{const _0x1440dc=_0x3a8c81;_0x13a202[_0x1440dc(0x33a)](_0x1440dc(0x2c0));});}static[_0x18566b(0x10a)](){var _0x58dd3a;return _0x2ae45e(_0x2b20dd,_0xa40fae)||(_0x4183cd(_0x2b20dd,_0xa40fae,new _0x2b20dd()),_0x24718d(_0x58dd3a=_0x2ae45e(_0x2b20dd,_0xa40fae),_0x48fdac,_0x39a87c)['call'](_0x58dd3a)),_0x2ae45e(_0x2b20dd,_0xa40fae);}[_0x18566b(0xef)](_0x389ac2){const _0x1b6a5f=_0x18566b;let _0x4f5c87=JSON['parse'](localStorage['getItem'](_0x1b6a5f(0x2c0))||'{}');if(_0x4f5c87&&_0x4f5c87[_0x389ac2==null?void 0x0:_0x389ac2[_0x1b6a5f(0x311)]]){_0x187999(0x1,_0x1b6a5f(0x24d));return;}_0x24718d(this,_0x48fdac,_0x517749)['call'](this,_0x389ac2),_0x2ae45e(this,_0x467b16)[_0x1b6a5f(0x2b4)](this),_0x24718d(this,_0x48fdac,_0xa43184)[_0x1b6a5f(0x2b4)](this,_0x389ac2[_0x1b6a5f(0x311)]);}[_0x18566b(0xf8)](_0x133827){const _0x333cb4=_0x18566b;return _0x133827===_0x333cb4(0x22f);}};_0xa40fae=new WeakMap(),_0x48fdac=new WeakSet(),_0x39a87c=function(){return _0x5ee3ca(this,null,function*(){});},_0xa43184=function(_0x28da95){const _0x32db44=_0x18566b;_0x187999(0x1,_0x32db44(0x171)+_0x28da95);let _0x6bcd24=_0x24718d(this,_0x48fdac,_0x3a4aa2)['call'](this);if(!_0x6bcd24){_0x187999(0x1,'No\x20popup\x20action\x20data\x20found\x20in\x20local\x20storage');return;}if(_0x187999(0x1,_0x32db44(0x1da)+JSON[_0x32db44(0x16e)](_0x6bcd24)),document[_0x32db44(0x262)](_0x32db44(0x16d)+_0x28da95)){_0x187999(0x1,'Popup\x20already\x20displayed'),_0x2ae45e(this,_0x2ce9ee)['call'](this,_0x28da95);return;}if(_0x6bcd24!=null&&_0x6bcd24[_0x28da95])switch(_0x187999(0x1,'Popup\x20data\x20for\x20campaign\x20ID\x20'+_0x28da95+':'),_0x187999(0x1,_0x6bcd24[_0x28da95]),_0x6bcd24[_0x28da95][_0x32db44(0x193)]){case _0x32db44(0x2ae):{_0x24718d(this,_0x48fdac,_0x522476)[_0x32db44(0x2b4)](this,_0x6bcd24[_0x28da95]);break;}case _0x32db44(0x15b):{_0x24718d(this,_0x48fdac,_0xb3959e)[_0x32db44(0x2b4)](this,_0x6bcd24[_0x28da95]);break;}case _0x32db44(0x102):{_0x24718d(this,_0x48fdac,_0x263b4a)[_0x32db44(0x2b4)](this,_0x6bcd24[_0x28da95]);break;}default:return;}},_0x3a4aa2=function(){const _0x53fd40=_0x18566b;let _0x4fe748=localStorage[_0x53fd40(0x296)](_0x53fd40(0x2c0));return _0x4fe748?JSON[_0x53fd40(0xdd)](_0x4fe748):null;},_0x522476=function(_0x1ad9fc){const _0x12e1dc=_0x18566b;_0x13a202[_0x12e1dc(0xbe)]({'clearActionMethod':_0x2ae45e(this,_0x2ce9ee)[_0x12e1dc(0x1f0)](this),'data':_0x1ad9fc,'displayMethod':_0x24718d(this,_0x48fdac,_0xb3959e)[_0x12e1dc(0x1f0)](this),'idKey':_0x12e1dc(0x311),'timeValueKey':_0x12e1dc(0x18e)});},_0x2ce9ee=new WeakMap(),_0x20f68c=new WeakMap(),_0xb3959e=function(_0x1caacd){const _0x1eac8d=_0x18566b;if(_0x187999(0x1,_0x1eac8d(0x129)+_0x1caacd['campaignId']),document[_0x1eac8d(0x262)]('popup_container_'+_0x1caacd[_0x1eac8d(0x311)]))_0x187999(0x1,'Popup\x20already\x20displayed');else{let _0x4ace33=_0x24718d(this,_0x48fdac,_0x12bb18)['call'](this,_0x1eac8d(0x25a),_0x1caacd);_0x187999(0x1,_0x1eac8d(0x1cd)),_0x2ae45e(this,_0x20f68c)[_0x1eac8d(0x2b4)](this,_0x4ace33,_0x1caacd[_0x1eac8d(0x236)][_0x1eac8d(0x309)]),document[_0x1eac8d(0x143)][_0x1eac8d(0x1b6)](_0x4ace33),_0x187999(0x1,'Popup\x20element\x20appended\x20to\x20the\x20body'),_0x14ec85['recordEvent']({'campaignCustomerInstanceId':_0x1caacd[_0x1eac8d(0x2fe)],'campaignId':_0x1caacd[_0x1eac8d(0x311)],'eventName':_0x533ce4,'eventProperties':[{'eventProperty':'Popup\x20View','value':JSON[_0x1eac8d(0x16e)]({'campaignId':_0x1caacd[_0x1eac8d(0x311)]})}],'name':_0x1eac8d(0xcd)});}_0x187999(0x1,_0x1eac8d(0xec)),_0x2ae45e(this,_0x2ce9ee)[_0x1eac8d(0x2b4)](this,_0x1caacd['campaignId']);},_0x3220c3=new WeakMap(),_0x40ce8a=function(_0x46bb36,_0x2138cf){const _0x116b32=_0x18566b;let _0xe536d0=_0x46bb36['parentElement'];for(;_0xe536d0;){if(_0xe536d0['id'][_0x116b32(0x118)](_0x2138cf))return _0xe536d0;_0xe536d0=_0xe536d0['parentElement'];}return null;},_0x12bb18=function(_0x53ed74,_0x341779){const _0x3f2465=_0x18566b;_0x187999(0x1,_0x3f2465(0x347)+_0x53ed74),_0x187999(0x1,_0x3f2465(0x25f)),_0x187999(0x1,_0x341779);let {campaignCustomerInstanceId:_0x1211d9,campaignId:_0xd7b23b,message:{design:_0x50b8c5}}=_0x341779,_0x356435=document[_0x3f2465(0x2a5)](_0x53ed74);_0x356435['id']='popup_container_'+_0xd7b23b,_0x356435[_0x3f2465(0x264)]=_0x50b8c5,_0x356435[_0x3f2465(0x252)][_0x3f2465(0x1b2)]='fixed',_0x356435[_0x3f2465(0x252)][_0x3f2465(0x1be)]='0',_0x356435[_0x3f2465(0x252)][_0x3f2465(0x234)]='0',_0x356435[_0x3f2465(0x252)]['width']='100%',_0x356435['style'][_0x3f2465(0x29f)]=_0x3f2465(0x1c6),_0x356435[_0x3f2465(0x252)][_0x3f2465(0x13c)]=_0x3f2465(0x2e5),_0x187999(0x1,_0x3f2465(0x2c3)),_0x187999(0x1,_0x356435['id']);let _0x1307e1=_0x356435[_0x3f2465(0x16f)]('.u-popup-container');_0x1307e1&&(_0x187999(0x1,_0x3f2465(0x30c)),_0x1307e1['style']['zIndex']='50');let _0xa14839=_0x1307e1[_0x3f2465(0x16f)](_0x3f2465(0x191));_0xa14839&&(_0x187999(0x1,'Popup\x20overlay\x20element\x20found'),_0xa14839[_0x3f2465(0x252)][_0x3f2465(0x240)](_0x3f2465(0xb9),'block','important')),_0x356435['querySelectorAll']('form')[_0x3f2465(0x1bc)](_0x584225=>{const _0x19631a=_0x3f2465;let _0x565cd9=_0x24718d(this,_0x48fdac,_0x40ce8a)[_0x19631a(0x2b4)](this,_0x584225,_0x19631a(0xe2));_0x565cd9?_0x2ae45e(this,_0x3220c3)['call'](this,{'campaignCustomerInstanceId':_0x1211d9,'campaignId':_0xd7b23b,'formDiv':_0x565cd9,'popupContainer':_0x356435}):_0x2ae45e(this,_0x3220c3)[_0x19631a(0x2b4)](this,{'campaignCustomerInstanceId':_0x1211d9,'campaignId':_0xd7b23b,'customForm':_0x584225,'popupContainer':_0x356435});});let _0x373577=_0x356435['querySelector'](_0x3f2465(0x237));return(_0x373577==null?void 0x0:_0x373577['getAttribute']('href'))==='#'&&_0x373577[_0x3f2465(0x314)](_0x3f2465(0xb2)),_0x373577==null||_0x373577[_0x3f2465(0x32d)](_0x3f2465(0x249),()=>_0x5ee3ca(this,null,function*(){const _0x4e99e1=_0x3f2465;_0x356435[_0x4e99e1(0x32f)](),yield _0x14ec85[_0x4e99e1(0x223)]({'campaignCustomerInstanceId':_0x1211d9,'campaignId':_0xd7b23b,'eventName':_0x533ce4,'eventProperties':[{'eventProperty':_0x4e99e1(0x187),'value':JSON[_0x4e99e1(0x16e)]({'campaignId':_0xd7b23b})}],'name':_0x4e99e1(0x332)});})),_0x356435[_0x3f2465(0x9f)](_0x3f2465(0x254))[_0x3f2465(0x1bc)](_0x4ce9d6=>{_0x4ce9d6['addEventListener']('click',()=>_0x5ee3ca(this,null,function*(){const _0x59d281=_0x3706;_0x356435[_0x59d281(0x32f)](),yield _0x14ec85[_0x59d281(0x223)]({'campaignCustomerInstanceId':_0x1211d9,'campaignId':_0xd7b23b,'eventName':_0x533ce4,'eventProperties':[{'eventProperty':_0x59d281(0x20e),'value':JSON['stringify']({'buttonId':_0x4ce9d6['id'],'campaignId':_0xd7b23b})}],'name':_0x59d281(0x249)});}));}),_0x356435[_0x3f2465(0x9f)](_0x3f2465(0x2a3))[_0x3f2465(0x1bc)](_0x2bb007=>{const _0x32b2fa=_0x3f2465;_0x2bb007[_0x32b2fa(0x32d)](_0x32b2fa(0x249),()=>_0x5ee3ca(this,null,function*(){const _0x4c44b4=_0x32b2fa;var _0xcc4b7e;((_0xcc4b7e=_0x2bb007[_0x4c44b4(0x2f6)])==null?void 0x0:_0xcc4b7e[_0x4c44b4(0x108)])==='A'&&_0x2bb007[_0x4c44b4(0x2f6)][_0x4c44b4(0x251)](_0x4c44b4(0xb2))&&_0x356435['remove'](),yield _0x14ec85[_0x4c44b4(0x223)]({'campaignCustomerInstanceId':_0x1211d9,'campaignId':_0xd7b23b,'eventName':_0x533ce4,'eventProperties':[{'eventProperty':'Image\x20Click','value':JSON[_0x4c44b4(0x16e)]({'campaignId':_0xd7b23b,'imageClassName':_0x2bb007[_0x4c44b4(0x1bd)],'imageId':_0x2bb007['id']})}],'name':_0x4c44b4(0x249)});}));}),_0x356435;},_0x263b4a=function(_0x24174a){const _0x1796c8=_0x18566b;_0x13a202[_0x1796c8(0x1b5)]({'data':_0x24174a,'displayMethod':_0x24718d(this,_0x48fdac,_0xb3959e)[_0x1796c8(0x1f0)](this),'timeValueKey':_0x1796c8(0x18e)});},_0x517749=function(_0x4ecc00){const _0x306b8d=_0x18566b;_0x187999(0x1,'Storing\x20popup\x20action\x20in\x20local\x20storage'),_0x187999(0x1,_0x4ecc00),_0x13a202[_0x306b8d(0x274)](_0x4ecc00,_0x306b8d(0x2c0),'campaignId');},_0x467b16=new WeakMap(),_0x120e23(_0x519a97,_0xa40fae);var _0x44df7e=_0x519a97,_0x4523cb=_0x44df7e[_0x18566b(0x10a)](),_0xfe8973,_0x2f4e19,_0x413799,_0xb0515c,_0x33c368,_0x161d00,_0x352654,_0x33cb25,_0x5990e2,_0x40bd8e=class _0x1e5d59{constructor(){const _0x5d461d=_0x18566b;_0x120e23(this,_0x2f4e19),this[_0x5d461d(0x295)]=Promise[_0x5d461d(0xbb)]();}static['getInstance'](){const _0x262112=_0x18566b;var _0x1b35a6;return _0x2ae45e(_0x1e5d59,_0xfe8973)||(_0x4183cd(_0x1e5d59,_0xfe8973,new _0x1e5d59()),_0x24718d(_0x1b35a6=_0x2ae45e(_0x1e5d59,_0xfe8973),_0x2f4e19,_0x413799)[_0x262112(0x2b4)](_0x1b35a6)),_0x2ae45e(_0x1e5d59,_0xfe8973);}[_0x18566b(0x29b)](_0x132ff8){const _0x26eebf=_0x18566b;let _0x32a756=JSON[_0x26eebf(0xdd)](localStorage[_0x26eebf(0x296)]('preInitializedEvents')||'[]');_0x32a756[_0x26eebf(0x158)](_0x132ff8),localStorage[_0x26eebf(0x261)](_0x26eebf(0x2d3),JSON[_0x26eebf(0x16e)](_0x32a756));}[_0x18566b(0x221)](){return _0x5ee3ca(this,null,function*(){const _0x287e03=_0x3706;let _0xe22665=JSON['parse'](localStorage['getItem'](_0x287e03(0x2d3))||'[]');if(Array[_0x287e03(0xfa)](_0xe22665)){for(let _0x241f65 of _0xe22665)yield this[_0x287e03(0x15a)](_0x241f65);}});}[_0x18566b(0x223)](_0x1ad3fc,_0x134996){return _0x5ee3ca(this,null,function*(){const _0xf95d96=_0x3706;_0x16ae1c[_0xf95d96(0x319)]&&!_0x16ae1c[_0xf95d96(0x21c)]?yield _0x24718d(this,_0x2f4e19,_0xb0515c)[_0xf95d96(0x2b4)](this,_0x1ad3fc,_0x134996):this[_0xf95d96(0x29b)](_0x1ad3fc);});}['recordEventPreInitialized'](_0x381182){return _0x5ee3ca(this,null,function*(){const _0x17c96b=_0x3706;try{yield _0x24718d(this,_0x2f4e19,_0xb0515c)[_0x17c96b(0x2b4)](this,_0x381182);}finally{_0x24718d(this,_0x2f4e19,_0x5990e2)[_0x17c96b(0x2b4)](this,_0x381182[_0x17c96b(0x10b)]);}});}[_0x18566b(0x23e)](_0x142228){return _0x5ee3ca(this,null,function*(){const _0xe951b1=_0x3706;_0x16ae1c[_0xe951b1(0x1a0)]===0x4&&(!_0x16ae1c['recordDebugEventsToggle']||_0x16ae1c[_0xe951b1(0x2df)][_0x142228['eventName']])&&(yield _0x24718d(this,_0x2f4e19,_0xb0515c)[_0xe951b1(0x2b4)](this,_0x142228));});}[_0x18566b(0x220)](){const _0x1f1943=_0x18566b;let _0x1cb79b=localStorage[_0x1f1943(0x296)]('events');return _0x1cb79b?JSON[_0x1f1943(0xdd)](_0x1cb79b):{};}['storeEventsAndPropertiesInLocalStorage'](){return _0x5ee3ca(this,null,function*(){const _0x45f14e=_0x3706;if(!localStorage['getItem'](_0x45f14e(0x297))){let _0x3654af=(yield this[_0x45f14e(0xc7)]())[_0x45f14e(0x2ee)];if(_0x3654af){localStorage['setItem']('events',JSON[_0x45f14e(0x16e)](_0x3654af));try{_0x5ef6e0[_0x45f14e(0xc9)]({'events':_0x3654af});}catch(_0x250166){}}}});}[_0x18566b(0xc7)](){return _0x5ee3ca(this,null,function*(){const _0x2aae48=_0x3706;try{return yield _0x543d58['get'](''+_0x1bf009);}catch(_0x2b66c1){throw new Error(_0x2aae48(0x225));}});}['postEventRecord'](_0x43870e,_0x49455e){return _0x5ee3ca(this,null,function*(){const _0x144b70=_0x3706;let _0x2775da=null,_0x3ceb9e=null,_0x24010d=new AbortController();return this[_0x144b70(0x295)]=this[_0x144b70(0x295)][_0x144b70(0x244)](()=>_0x5ee3ca(this,null,function*(){const _0xc577aa=_0x144b70;try{if(_0x43870e[_0xc577aa(0x297)][_0xc577aa(0x1ff)]===0x0)throw new Error(_0xc577aa(0x321));let _0x2e8b6d=yield _0x543d58[_0xc577aa(0x152)](_0xc577aa(0x27a)+_0x1bf009+_0x33b1ed,_0x43870e,_0x24010d['signal']);if(_0x2e8b6d[_0xc577aa(0x2e7)])return _0x3ceb9e=_0x2e8b6d,_0x2e8b6d;if(_0x2e8b6d['message']==='Customer\x20with\x20id\x20'+localStorage['getItem']('customer')+_0xc577aa(0x117))throw localStorage['removeItem'](_0xc577aa(0x19e)),new Error('Re\x20initializing\x20customer\x20Id');}catch(_0x25b4a4){throw _0x187999(0x2,_0xc577aa(0x1e4)),_0x187999(0x2,_0xc577aa(0x17c)+_0x25b4a4['name']),_0x187999(0x2,'message:\x20'+_0x25b4a4[_0xc577aa(0x236)]),(_0x25b4a4[_0xc577aa(0x109)]===_0xc577aa(0x20f)||_0x25b4a4[_0xc577aa(0x109)]==='TypeError'&&_0x25b4a4['message']==='Failed\x20to\x20fetch'||_0x25b4a4[_0xc577aa(0x236)]===_0xc577aa(0x33c))&&(_0x187999(0x2,_0xc577aa(0x1c8)),_0x49455e&&_0x24718d(this,_0x2f4e19,_0x33cb25)[_0xc577aa(0x2b4)](this,_0x49455e)),_0x2775da=new Error((_0x25b4a4==null?void 0x0:_0x25b4a4[_0xc577aa(0x236)])||'Error\x20posting\x20event\x20record'),_0x25b4a4;}return null;}))['catch'](()=>{}),this[_0x144b70(0x295)][_0x144b70(0x244)](()=>{if(_0x2775da)throw _0x2775da;return _0x3ceb9e;});});}};_0xfe8973=new WeakMap(),_0x2f4e19=new WeakSet(),_0x413799=function(){return _0x5ee3ca(this,null,function*(){});},_0xb0515c=function(_0x239761,_0xabe419){return _0x5ee3ca(this,null,function*(){const _0x7822f8=_0x3706;yield _0x5b4f5a(_0x7822f8(0x256),()=>_0x5ee3ca(this,null,function*(){const _0x19dd53=_0x7822f8;var _0x1e59f0,_0x449a20,_0x17053f,_0x4b4678;let {campaignCustomerInstanceId:_0x5c159a,campaignId:_0x26365c,eventName:_0x36ca27,eventProperties:_0x1dc112,name:_0x578cf5,web_optin_instance_id:_0x5dbea1}=_0x239761;_0x187999(0x1,_0x19dd53(0x210)),_0x17615e('Recording\x20event',!0x0),_0x4e5064(_0x19dd53(0xe7),!0x0),_0x187999(0x1,'Event\x20Payload'),_0x187999(0x1,{'campaignCustomerInstanceId':_0x5c159a,'eventName':_0x36ca27,'eventProperties':_0x1dc112,'name':_0x578cf5,'web_optin_instance_id':_0x5dbea1});let _0x1dbb58=_0x13a202[_0x19dd53(0x160)]();if(_0x1dbb58===_0x19dd53(0xcf)||_0x1dbb58===_0x19dd53(0x246))throw new Error('Invalid\x20platform');_0x36ca27!==_0x19dd53(0x2c1)&&(yield _0x13a202[_0x19dd53(0x23a)]());let _0x21ebeb=[];_0x1dc112&&_0x21ebeb[_0x19dd53(0x158)](..._0x1dc112),_0x21ebeb['push']({'eventProperty':_0x19dd53(0x2d4),'value':_0x1dbb58}),_0x21ebeb[_0x19dd53(0x158)]({'eventProperty':'operating-system','value':_0x13a202[_0x19dd53(0x2ac)]()}),_0x21ebeb['push']({'eventProperty':_0x19dd53(0x163),'value':_0x13a202['getOSVersion']()});let _0x521f43=this[_0x19dd53(0x220)](),_0x53f641=_0x24718d(this,_0x2f4e19,_0x161d00)[_0x19dd53(0x2b4)](this,_0x521f43,_0x36ca27,_0x21ebeb);if(typeof _0x53f641==_0x19dd53(0xc5)){_0x187999(0x2,_0x53f641);return;}_0x13a202[_0x19dd53(0x1a6)]();let {id:_0x1b0bbb}=_0x521f43[_0x36ca27],_0x5be3ed=_0x24718d(this,_0x2f4e19,_0x352654)[_0x19dd53(0x2b4)](this,_0x9bf69c(_0x4ff0ee(_0x9bf69c(_0x9bf69c(_0x9bf69c({},_0x5c159a?{'campaignCustomerInstanceId':_0x5c159a}:{}),_0x26365c?{'campaignId':_0x26365c}:{}),_0x5dbea1?{'web_optin_instance_id':_0x5dbea1}:{}),{'eventId':_0x1b0bbb,'eventProperties':_0x53f641,'sessionId':localStorage[_0x19dd53(0x296)](_0x19dd53(0x31a))||_0x19dd53(0x1e1)}),_0x578cf5?{'name':_0x578cf5}:{}));if(_0x187999(0x1,'Final\x20Event\x20Payload\x20to\x20be\x20sent:'),_0x187999(0x1,_0x5be3ed),_0x16ae1c[_0x19dd53(0x11a)]){let _0x3df1b1=JSON['parse'](localStorage[_0x19dd53(0x296)](_0x19dd53(0x2f9))||'[]');_0x3df1b1[_0x19dd53(0x1ff)]<=0x32&&(_0x3df1b1[_0x19dd53(0x158)](..._0x5be3ed[_0x19dd53(0x297)]),localStorage['setItem']('offlineEvents',JSON[_0x19dd53(0x16e)](_0x3df1b1)));return;}let _0x43d9ae=yield this[_0x19dd53(0x30b)](_0x5be3ed,_0x239761);(_0x1e59f0=_0x43d9ae==null?void 0x0:_0x43d9ae['data'])!=null&&_0x1e59f0['optIn']?(yield this[_0x19dd53(0x23e)]({'eventName':_0x19dd53(0x2ec)}),_0x5ef6e0['showNotification'](_0x43d9ae[_0x19dd53(0x2ee)][_0x19dd53(0x286)])):_0x36ca27==='Viewed\x20Webpage'&&(yield this['recordDebugEvents']({'eventName':_0x19dd53(0xe5),'eventProperties':[{'eventProperty':_0x19dd53(0x236),'value':''+(_0x19dd53(0x9c)in window&&typeof((_0x449a20=window==null?void 0x0:window[_0x19dd53(0x9c)])==null?void 0x0:_0x449a20[_0x19dd53(0x272)])!=_0x19dd53(0x2e0))}]})),(_0x4b4678=(_0x17053f=_0x43d9ae==null?void 0x0:_0x43d9ae[_0x19dd53(0x2ee)])==null?void 0x0:_0x17053f[_0x19dd53(0x196)])==null||_0x4b4678[_0x19dd53(0x1bc)](_0x3410ea=>{const _0x18e253=_0x19dd53;if(_0x4523cb[_0x18e253(0xf8)](_0x3410ea[_0x18e253(0x236)][_0x18e253(0x109)])){if(_0x24718d(this,_0x2f4e19,_0x33c368)[_0x18e253(0x2b4)](this,_0x3410ea[_0x18e253(0x311)])){_0x187999(0x1,_0x18e253(0xee)+_0x3410ea['campaignId']);return;}_0x4523cb[_0x18e253(0xef)](_0x3410ea);}else _0x54206b[_0x18e253(0x2ca)](_0x3410ea[_0x18e253(0x236)][_0x18e253(0x109)])&&_0x54206b[_0x18e253(0x278)](_0x3410ea);}),_0x4e5064(_0x19dd53(0xe7),!0x1),_0x17615e(_0x19dd53(0x21e),!0x1);}),_0x47fdcb=>{const _0x28b5b4=_0x7822f8;_0x543d58[_0x28b5b4(0x189)]()==='67'&&_0x47fdcb[_0x28b5b4(0x236)]!==_0x28b5b4(0x124)&&_0x47fdcb['message']!==_0x28b5b4(0x33c)&&_0x47fdcb[_0x28b5b4(0x236)][_0x28b5b4(0x20b)](_0x28b5b4(0x124));},_0xabe419);});},_0x33c368=function(_0x2012a6){const _0x4a87d5=_0x18566b;return _0x187999(0x1,_0x4a87d5(0x17b)+_0x2012a6),JSON['parse'](localStorage[_0x4a87d5(0x296)](_0x4a87d5(0x2d3))||'[]')['find'](_0xe456bb=>_0xe456bb[_0x4a87d5(0x311)]===_0x2012a6);},_0x161d00=function(_0x5c390b,_0x25d047,_0x4d71c2){const _0x35ab2e=_0x18566b;if(!Object[_0x35ab2e(0x1d2)]['hasOwnProperty'][_0x35ab2e(0x2b4)](_0x5c390b,_0x25d047))return'Event\x20'+_0x25d047+_0x35ab2e(0x345);if(!_0x4d71c2)return[];let _0xc0f754=_0x5c390b[_0x25d047];if(!(_0xc0f754!=null&&_0xc0f754[_0x35ab2e(0x1e5)]))return _0x187999(0x2,'Event\x20'+_0x25d047+'\x20does\x20not\x20have\x20a\x20valid\x20eventProperty.'),_0x35ab2e(0x10f)+_0x25d047+_0x35ab2e(0x15e);let _0x2fe813=_0x4d71c2[_0x35ab2e(0x147)](({eventProperty:_0x2394af})=>!Object[_0x35ab2e(0x1d2)][_0x35ab2e(0x1f5)][_0x35ab2e(0x2b4)](_0xc0f754['eventProperty'],_0x2394af))[_0x35ab2e(0x1b9)](({eventProperty:_0x4b95c8})=>_0x4b95c8);return _0x2fe813['length']>0x0&&(_0x187999(0x2,_0x35ab2e(0x239)+_0x25d047+_0x35ab2e(0x306)+_0x2fe813[_0x35ab2e(0xe0)](',\x20')+'.'),_0x4d71c2=_0x4d71c2[_0x35ab2e(0x147)](({eventProperty:_0x538f32})=>!_0x2fe813[_0x35ab2e(0x20b)](_0x538f32))),_0x4d71c2[_0x35ab2e(0x1b9)](({eventProperty:_0x29c68a,value:_0x251633})=>({'eventPropertyId':_0xc0f754[_0x35ab2e(0x1e5)][_0x29c68a]['id'],'value':_0x251633}));},_0x352654=function(_0x4490a3){const _0x17d1f1=_0x18566b;return{'customerId':localStorage['getItem'](_0x17d1f1(0x19e))||'','deviceId':localStorage[_0x17d1f1(0x296)](_0x17d1f1(0x2c8))||'','events':[_0x4490a3]};},_0x33cb25=function(_0x4eb011){const _0x5c6996=_0x18566b;_0x187999(0x1,'Adding\x20to\x20pre-initialized\x20event:'),_0x187999(0x1,_0x4eb011);let _0x1e3c28=localStorage['getItem']('preInitializedEvents');_0x1e3c28&&_0x1e3c28!==_0x5c6996(0x2e0)?(_0x1e3c28=JSON[_0x5c6996(0xdd)](_0x1e3c28),_0x1e3c28[_0x5c6996(0x158)](_0x4eb011)):_0x1e3c28=[_0x4eb011],localStorage[_0x5c6996(0x261)](_0x5c6996(0x2d3),JSON['stringify'](_0x1e3c28));},_0x5990e2=function(_0x2a341a){const _0x15384c=_0x18566b;let _0x15a04c=JSON[_0x15384c(0xdd)](localStorage[_0x15384c(0x296)](_0x15384c(0x2d3))||'[]'),_0x170f3c=_0x15a04c[_0x15384c(0x23c)](_0x219e75=>_0x219e75[_0x15384c(0x10b)]===_0x2a341a);_0x170f3c>=0x0&&_0x15a04c[_0x15384c(0xaa)](_0x170f3c,0x1),localStorage[_0x15384c(0x261)](_0x15384c(0x2d3),JSON[_0x15384c(0x16e)](_0x15a04c));},_0x120e23(_0x40bd8e,_0xfe8973);var _0x462f50=_0x40bd8e,_0x14ec85=_0x462f50[_0x18566b(0x10a)](),_0x44f935,_0x467b1d,_0x341250,_0x528b32,_0x56a5db,_0x6ebc36,_0x1011e8,_0x3e2b3d,_0x3f1a07,_0x3e60b8,_0x3dda22,_0x42534b,_0x230e18=class _0x12b9b8{constructor(){_0x120e23(this,_0x467b1d),_0x120e23(this,_0x1011e8,_0xd227ce=>{const _0x1da0e9=_0x3706;_0x13a202[_0x1da0e9(0x148)]({'id':_0xd227ce,'localStorageKey':_0x1da0e9(0x2c0)});}),this['loadContentCardEventActionInLocalStorage']=()=>{const _0x42b390=_0x3706;_0x13a202[_0x42b390(0x26c)]({'actionCondition':_0x35c874=>_0x35c874[_0x42b390(0x236)][_0x42b390(0x109)]==='ContentCard','actionMethod':_0xa4eec8=>_0x24718d(this,_0x467b1d,_0x528b32)[_0x42b390(0x2b4)](this,_0xa4eec8[_0x42b390(0x311)]),'localStorageKey':_0x42b390(0x2c0)});},_0x120e23(this,_0x42534b,()=>{const _0x64562=_0x3706;_0x13a202[_0x64562(0x33a)](_0x64562(0x2c0));});}static[_0x18566b(0x10a)](){const _0x24b937=_0x18566b;var _0x51437a;return _0x2ae45e(_0x12b9b8,_0x44f935)||(_0x4183cd(_0x12b9b8,_0x44f935,new _0x12b9b8()),_0x24718d(_0x51437a=_0x2ae45e(_0x12b9b8,_0x44f935),_0x467b1d,_0x341250)[_0x24b937(0x2b4)](_0x51437a)),_0x2ae45e(_0x12b9b8,_0x44f935);}['showContentCard'](_0x4f16be){const _0x7b2b59=_0x18566b;let _0xb723f3=JSON[_0x7b2b59(0xdd)](localStorage['getItem'](_0x7b2b59(0x2c0))||'{}');if(_0xb723f3&&_0xb723f3[_0x4f16be==null?void 0x0:_0x4f16be[_0x7b2b59(0x311)]]){_0x187999(0x1,'ContentCard\x20already\x20in\x20cache');return;}_0x24718d(this,_0x467b1d,_0x3dda22)[_0x7b2b59(0x2b4)](this,_0x4f16be),_0x2ae45e(this,_0x42534b)[_0x7b2b59(0x2b4)](this),_0x24718d(this,_0x467b1d,_0x528b32)[_0x7b2b59(0x2b4)](this,_0x4f16be['campaignId']);}['isContentCardAction'](_0x3fd249){const _0x566628=_0x18566b;return _0x3fd249===_0x566628(0x324);}};_0x44f935=new WeakMap(),_0x467b1d=new WeakSet(),_0x341250=function(){return _0x5ee3ca(this,null,function*(){});},_0x528b32=function(_0x277dfa){const _0x3992cc=_0x18566b;let _0x463eca=_0x24718d(this,_0x467b1d,_0x56a5db)['call'](this);if(document[_0x3992cc(0x262)](_0x3992cc(0x313)+_0x277dfa)){_0x187999(0x1,_0x3992cc(0x16a)),_0x2ae45e(this,_0x1011e8)[_0x3992cc(0x2b4)](this,_0x277dfa);return;}if(_0x463eca!=null&&_0x463eca[_0x277dfa])switch(_0x463eca[_0x277dfa][_0x3992cc(0x193)]){case _0x3992cc(0x2ae):{_0x24718d(this,_0x467b1d,_0x6ebc36)[_0x3992cc(0x2b4)](this,_0x463eca[_0x277dfa]);break;}case _0x3992cc(0x15b):{_0x24718d(this,_0x467b1d,_0x3e2b3d)[_0x3992cc(0x2b4)](this,_0x463eca[_0x277dfa]);break;}case _0x3992cc(0x102):{_0x24718d(this,_0x467b1d,_0x3e60b8)[_0x3992cc(0x2b4)](this,_0x463eca[_0x277dfa]);break;}default:return;}},_0x56a5db=function(){const _0x5b8276=_0x18566b;let _0x512d41=localStorage[_0x5b8276(0x296)]('action');return _0x512d41?JSON['parse'](_0x512d41):null;},_0x6ebc36=function(_0x56346c){const _0x3b2cb1=_0x18566b;_0x13a202['showDelayedAction']({'clearActionMethod':_0x2ae45e(this,_0x1011e8)['bind'](this),'data':_0x56346c,'displayMethod':_0x24718d(this,_0x467b1d,_0x3e2b3d)[_0x3b2cb1(0x1f0)](this),'idKey':_0x3b2cb1(0x311),'timeValueKey':_0x3b2cb1(0x18e)});},_0x1011e8=new WeakMap(),_0x3e2b3d=function(_0x3a4c02){const _0xd64ca6=_0x18566b;var _0x1eaa3b;if(_0x187999(0x1,'Displaying\x20ContentCard'),_0x187999(0x1,_0x3a4c02),document[_0xd64ca6(0x262)](_0xd64ca6(0x313)+_0x3a4c02[_0xd64ca6(0x311)]))_0x187999(0x1,_0xd64ca6(0x16a));else{let _0x250cfc=_0x24718d(this,_0x467b1d,_0x3f1a07)[_0xd64ca6(0x2b4)](this,_0xd64ca6(0x25a),_0x3a4c02);_0x187999(0x1,_0xd64ca6(0x343)+_0x3a4c02[_0xd64ca6(0x236)][_0xd64ca6(0x159)]);let _0x489a7c=document[_0xd64ca6(0x16f)](''+_0x3a4c02[_0xd64ca6(0x236)]['divId']);_0x187999(0x1,'Element\x20to\x20append\x20ContentCard:'),_0x187999(0x1,_0x489a7c),_0x489a7c?(_0x489a7c[_0xd64ca6(0x264)]=_0x250cfc[_0xd64ca6(0x2af)],_0x14ec85[_0xd64ca6(0x223)]({'campaignCustomerInstanceId':_0x3a4c02[_0xd64ca6(0x2fe)],'campaignId':_0x3a4c02[_0xd64ca6(0x311)],'eventName':_0x36cbe4,'eventProperties':[{'eventProperty':_0xd64ca6(0x135),'value':JSON['stringify']({'campaignId':_0x3a4c02['campaignId']})}],'name':_0xd64ca6(0xcd)}),(_0x1eaa3b=document[_0xd64ca6(0x262)](_0xd64ca6(0x313)+_0x3a4c02[_0xd64ca6(0x311)]))==null||_0x1eaa3b[_0xd64ca6(0x32d)]('click',()=>{const _0x3c7373=_0xd64ca6;_0x14ec85[_0x3c7373(0x223)]({'campaignCustomerInstanceId':_0x3a4c02[_0x3c7373(0x2fe)],'campaignId':_0x3a4c02[_0x3c7373(0x311)],'eventName':_0x36cbe4,'eventProperties':[{'eventProperty':_0x3c7373(0xf3),'value':JSON['stringify']({'campaignId':_0x3a4c02[_0x3c7373(0x311)]})}],'name':_0x3c7373(0x249)});})):_0x187999(0x2,_0xd64ca6(0x1ae)+_0x3a4c02[_0xd64ca6(0x236)]['divId']+_0xd64ca6(0xcb));}_0x2ae45e(this,_0x1011e8)[_0xd64ca6(0x2b4)](this,_0x3a4c02['campaignId']);},_0x3f1a07=function(_0x2e784b,_0x249bc0){const _0x4da7f6=_0x18566b;var _0x11c82e;let {campaignId:_0x55ef21,message:{design:_0x3cbd89}}=_0x249bc0,_0x199780=document[_0x4da7f6(0x2a5)](_0x2e784b);return _0x199780['id']='contentCard_container_'+_0x55ef21,_0x199780[_0x4da7f6(0x264)]=_0x3cbd89,(_0x11c82e=_0x199780[_0x4da7f6(0x16f)]('.u-close-button'))==null||_0x11c82e['remove'](),_0x199780;},_0x3e60b8=function(_0x1e2f74){const _0x178fad=_0x18566b;_0x13a202['showAfterScrollAction']({'data':_0x1e2f74,'displayMethod':_0x24718d(this,_0x467b1d,_0x3e2b3d)[_0x178fad(0x1f0)](this),'timeValueKey':'campaignEntryTimeValue'});},_0x3dda22=function(_0x5af39b){const _0x26de3a=_0x18566b;_0x13a202[_0x26de3a(0x274)](_0x5af39b,_0x26de3a(0x2c0),_0x26de3a(0x311));},_0x42534b=new WeakMap(),_0x120e23(_0x230e18,_0x44f935);var _0x444dd9=_0x230e18,_0x54206b=_0x444dd9['getInstance'](),_0x2be435=new Set(['adagiobot',_0x18566b(0x19a),_0x18566b(0x277),_0x18566b(0x316),_0x18566b(0x276),_0x18566b(0x23f),_0x18566b(0x107),_0x18566b(0x172),'ahrefssiteaudit',_0x18566b(0x288),'blexbot','dataforseobot','lumar',_0x18566b(0x1d3),_0x18566b(0x1a3),_0x18566b(0x222),_0x18566b(0x1eb),'baiduspider','bingbot','bytespider',_0x18566b(0x2f0),'duckduckbot',_0x18566b(0x20d),_0x18566b(0xa1),_0x18566b(0x346),'naverbot',_0x18566b(0x1b4),_0x18566b(0x2cd),_0x18566b(0x2be),'sogou-spider','yahoo-slurp',_0x18566b(0x165),_0x18566b(0x259),_0x18566b(0xa0),_0x18566b(0x24a),_0x18566b(0xb6),_0x18566b(0x15f),'imagesiftbot',_0x18566b(0x162),_0x18566b(0xa2),_0x18566b(0x27e),_0x18566b(0x250),_0x18566b(0x2f7),_0x18566b(0x227),_0x18566b(0x1ce),'claude-searchbot','duckassistbot','gemini-deep-research',_0x18566b(0x19b),_0x18566b(0xd1),'perplexitybot',_0x18566b(0x22c),_0x18566b(0xe3),_0x18566b(0x263),_0x18566b(0x1b7),_0x18566b(0x1ba),_0x18566b(0x123),_0x18566b(0x1a7),'detectify',_0x18566b(0xdf),'google-safety',_0x18566b(0x11c),_0x18566b(0x217),_0x18566b(0x300),_0x18566b(0x29e),'qatech',_0x18566b(0x175),_0x18566b(0x328),_0x18566b(0xca),_0x18566b(0xc1),_0x18566b(0x2a2),'verceltracing','buffer-link-preview-bot',_0x18566b(0x32c),_0x18566b(0x348),_0x18566b(0x310),_0x18566b(0x241),_0x18566b(0x1b0),_0x18566b(0x2f5),_0x18566b(0x265),_0x18566b(0x2cf),_0x18566b(0x211),_0x18566b(0x1e0),_0x18566b(0x113),'slacklinkexpandingbot',_0x18566b(0x29d),_0x18566b(0x289),_0x18566b(0x111),'vercel-screenshot-bot','adyen-webhook',_0x18566b(0x2e9),'falbot','github-hookshot',_0x18566b(0x1ec),_0x18566b(0x242),_0x18566b(0x178),'qstash',_0x18566b(0xd0),_0x18566b(0x1ac),_0x18566b(0x1c9),_0x18566b(0xbc),'apple-podcasts',_0x18566b(0x10c),'feedfetcher','google-publisher-center',_0x18566b(0x307),_0x18566b(0x144),_0x18566b(0x182),'google-read-aloud',_0x18566b(0xc0),_0x18566b(0xc6),_0x18566b(0xb5),'amazon-product-discovery',_0x18566b(0xf1),_0x18566b(0xb0),'google-storebot','chrome-privacy-preserving-prefetch-proxy','google-read-aloud',_0x18566b(0x10c),_0x18566b(0x103),'contentkingbot',_0x18566b(0x1e0),_0x18566b(0x346),_0x18566b(0xca),'uptime-robot']),_0x3536d8,_0x1683dd,_0x517e50,_0x4ff2b5,_0xd18181,_0x37f53f,_0x9baeff,_0x3369f4,_0x16ad72,_0x11c311,_0x35540d=class _0x1618e4{constructor(){const _0x229756=_0x18566b;_0x120e23(this,_0x37f53f),_0x120e23(this,_0x1683dd,_0x229756(0x329)),_0x120e23(this,_0x517e50,0x18*0x3c*0x3c*0x3e8),_0x120e23(this,_0x4ff2b5,navigator[_0x229756(0x166)][_0x229756(0xa8)]()),_0x120e23(this,_0xd18181,null);}static[_0x18566b(0x10a)](){const _0x2b5280=_0x18566b;return _0x2ae45e(this,_0x3536d8)||(_0x4183cd(this,_0x3536d8,new _0x1618e4()),_0x187999(0x4,_0x2b5280(0x21f))),_0x2ae45e(this,_0x3536d8);}[_0x18566b(0x2ac)](){const _0x46926e=_0x18566b;if(_0x13a202[_0x46926e(0x28d)])return _0x24718d(this,_0x37f53f,_0x11c311)[_0x46926e(0x2b4)](this);if(_0x2ae45e(this,_0xd18181)!==null)return _0x187999(0x4,'Cache\x20hit\x20from\x20memory:\x20'+_0x2ae45e(this,_0xd18181)),_0x2ae45e(this,_0xd18181);let _0x384c10=_0x24718d(this,_0x37f53f,_0x3369f4)[_0x46926e(0x2b4)](this);if(_0x384c10!==null)return _0x4183cd(this,_0xd18181,_0x384c10),_0x384c10;_0x187999(0x1,_0x46926e(0x153));let _0x1bc8ae=_0x24718d(this,_0x37f53f,_0x11c311)[_0x46926e(0x2b4)](this);return _0x4183cd(this,_0xd18181,_0x1bc8ae),_0x24718d(this,_0x37f53f,_0x16ad72)[_0x46926e(0x2b4)](this,_0x1bc8ae),_0x187999(0x1,'Device\x20detection\x20completed:\x20'+_0x1bc8ae),_0x1bc8ae;}['clearCache'](){const _0x5b467c=_0x18566b;try{let _0x2758ba=_0x24718d(this,_0x37f53f,_0x9baeff)['call'](this,_0x2ae45e(this,_0x4ff2b5));localStorage[_0x5b467c(0x14e)](_0x2758ba),_0x4183cd(this,_0xd18181,null),_0x187999(0x1,_0x5b467c(0x1ab));}catch(_0xe8cdfa){_0x187999(0x2,_0x5b467c(0x131)+_0xe8cdfa);}}[_0x18566b(0xda)](){const _0x3d07c7=_0x18566b;try{let _0x1d40d7=_0x24718d(this,_0x37f53f,_0x9baeff)[_0x3d07c7(0x2b4)](this,_0x2ae45e(this,_0x4ff2b5)),_0x580d7c=localStorage[_0x3d07c7(0x296)](_0x1d40d7);if(!_0x580d7c)return _0x187999(0x4,_0x3d07c7(0x285)),{'cached':!0x1};let {result:_0x367baf,timestamp:_0x4613a0}=JSON[_0x3d07c7(0xdd)](_0x580d7c),_0x142f1f={'age':Date[_0x3d07c7(0x11f)]()-_0x4613a0,'cached':!0x0,'expires':_0x2ae45e(this,_0x517e50)-(Date[_0x3d07c7(0x11f)]()-_0x4613a0),'result':_0x367baf};return _0x187999(0x4,_0x3d07c7(0xe9)+JSON['stringify'](_0x142f1f)),_0x142f1f;}catch(_0x4b029b){return _0x187999(0x2,'getCacheStats\x20error:\x20'+_0x4b029b),{'cached':!0x1,'error':_0x4b029b[_0x3d07c7(0x236)]};}}[_0x18566b(0x1dc)](){const _0x56177f=_0x18566b;return this['getOperatingSystem']()===_0x56177f(0xcf);}[_0x18566b(0x31c)](){const _0x47fb63=_0x18566b;return this[_0x47fb63(0x2ac)]()===_0x47fb63(0x24e);}[_0x18566b(0x2eb)](){const _0x25c97c=_0x18566b;return this[_0x25c97c(0x2ac)]()===_0x25c97c(0xa4);}};_0x3536d8=new WeakMap(),_0x1683dd=new WeakMap(),_0x517e50=new WeakMap(),_0x4ff2b5=new WeakMap(),_0xd18181=new WeakMap(),_0x37f53f=new WeakSet(),_0x9baeff=function(_0x40f828){const _0x432dbf=_0x18566b;let _0x418fb9=0x0;for(let _0x2042a5=0x0;_0x2042a5<_0x40f828['length'];_0x2042a5++)_0x418fb9=(_0x418fb9<<0x5)-_0x418fb9+_0x40f828[_0x432dbf(0x248)](_0x2042a5)&0xffffffff;return _0x2ae45e(this,_0x1683dd)+'_'+Math[_0x432dbf(0x115)](_0x418fb9);},_0x3369f4=function(){const _0x5be2df=_0x18566b;try{let _0x431d6a=_0x24718d(this,_0x37f53f,_0x9baeff)[_0x5be2df(0x2b4)](this,_0x2ae45e(this,_0x4ff2b5)),_0x12ddc9=localStorage[_0x5be2df(0x296)](_0x431d6a);if(!_0x12ddc9)return _0x187999(0x4,_0x5be2df(0x302)),null;let {result:_0x3fec1f,timestamp:_0x5f169c,ua:_0x52e6a3}=JSON['parse'](_0x12ddc9);return Date[_0x5be2df(0x11f)]()-_0x5f169c>_0x2ae45e(this,_0x517e50)||_0x52e6a3!==_0x2ae45e(this,_0x4ff2b5)?(localStorage[_0x5be2df(0x14e)](_0x431d6a),_0x187999(0x4,_0x5be2df(0x198)),null):(_0x187999(0x4,_0x5be2df(0x22e)+_0x3fec1f),_0x3fec1f);}catch(_0x12ba8f){return _0x187999(0x2,_0x5be2df(0x20a)+_0x12ba8f),null;}},_0x16ad72=function(_0x467829){const _0x546290=_0x18566b;try{let _0x2efd5b=_0x24718d(this,_0x37f53f,_0x9baeff)[_0x546290(0x2b4)](this,_0x2ae45e(this,_0x4ff2b5)),_0x41e115={'result':_0x467829,'timestamp':Date[_0x546290(0x11f)](),'ua':_0x2ae45e(this,_0x4ff2b5)};localStorage[_0x546290(0x261)](_0x2efd5b,JSON['stringify'](_0x41e115)),_0x187999(0x4,_0x546290(0x293)+_0x467829);}catch(_0x408fc0){_0x187999(0x2,'localStorage\x20save\x20error:\x20'+_0x408fc0);}},_0x11c311=function(){const _0x310587=_0x18566b;let _0x218045=_0x2ae45e(this,_0x4ff2b5);if(_0x187999(0x4,_0x310587(0xd2)+_0x218045[_0x310587(0xf2)](0x0,0x32)+'...'),_0x218045[_0x310587(0x20b)]('googlebot')||_0x218045[_0x310587(0x20b)](_0x310587(0x22d))||_0x218045[_0x310587(0x20b)](_0x310587(0x310)))return _0x187999(0x4,_0x310587(0x2d1)),_0x310587(0xcf);if(/android|iphone|ipad/i[_0x310587(0xbd)](_0x218045))return/wv|wkwebview|instagram|facebook|fbav|fban|twitter|snapchat|pinterest|linkedin|tiktok/i[_0x310587(0xbd)](_0x218045)?(_0x187999(0x4,_0x310587(0xfd)),_0x310587(0x24e)):(_0x187999(0x4,'Detected:\x20Mobile'),_0x310587(0x24e));if(/windows|macintosh|linux|x11/i[_0x310587(0xbd)](_0x218045)){_0x187999(0x4,_0x310587(0x2fb));let _0x5a4105=_0x218045[_0x310587(0x294)](/[^a-z0-9\-_.]+/);for(let _0x509b78 of _0x5a4105)if(_0x2be435[_0x310587(0xae)](_0x509b78))return _0x187999(0x4,'Bot\x20token\x20found:\x20'+_0x509b78),_0x310587(0xcf);return _0x187999(0x4,_0x310587(0xe1)),_0x310587(0xa4);}return _0x187999(0x4,_0x310587(0x203)),'Unknown';},_0x120e23(_0x35540d,_0x3536d8,null);var _0x31af2e=_0x35540d,_0x486c9e=_0x31af2e,_0x11c196,_0x339b8f,_0x1574ee,_0x5ae7c3,_0x517f3a,_0x5e62af,_0xfa257d,_0x2f1aa7,_0x27cee8,_0x2e4c87,_0x12d1df,_0x8ca27a,_0x514aec,_0x169b3d,_0x1b4264,_0x3f976d,_0x5aed14,_0x5ea313,_0x18de72,_0x26d683,_0x41c798,_0x204b48,_0x25aaae,_0x10babd,_0x49a79b,_0x21ad36,_0x432b73,_0x6e60f9,_0x54d49d,_0x901655=class _0x5f141f{constructor(){const _0x457149=_0x18566b;_0x120e23(this,_0x27cee8),_0x120e23(this,_0x339b8f),_0x120e23(this,_0x1574ee),_0x120e23(this,_0x5ae7c3),_0x120e23(this,_0x517f3a,null),_0x120e23(this,_0x5e62af,null),_0x120e23(this,_0xfa257d,!0x1),_0x120e23(this,_0x2f1aa7,()=>{setInterval(()=>{const _0x258f8f=_0x3706;_0x5b4f5a(_0x258f8f(0x1f3),()=>_0x5ee3ca(this,null,function*(){const _0x1acf20=_0x258f8f;let _0x5ce1a8=localStorage['getItem'](_0x1acf20(0x287));if(_0x5ce1a8!==_0x2ae45e(this,_0x5e62af)){_0x187999(0x1,_0x1acf20(0x24f)),_0x4183cd(this,_0x5e62af,_0x5ce1a8);let _0xf2c378=JSON[_0x1acf20(0xdd)](_0x5ce1a8||'{}');if(_0xf2c378!=null&&_0xf2c378[_0x1acf20(0xc9)]){_0x187999(0x1,_0x1acf20(0x130));let _0x47461f=_0xf2c378['pushMessageToSW'];delete _0xf2c378[_0x1acf20(0xc9)],localStorage['setItem'](_0x1acf20(0x287),JSON['stringify'](_0xf2c378)),_0x5ef6e0[_0x1acf20(0xc9)](_0x47461f);}if(_0xf2c378!=null&&_0xf2c378['optIn']){let _0x5971a4=_0xf2c378[_0x1acf20(0x286)];delete _0xf2c378['optIn'],localStorage[_0x1acf20(0x261)]('mergn_shopify',JSON[_0x1acf20(0x16e)](_0xf2c378)),_0x5ef6e0[_0x1acf20(0x31b)](_0x5971a4);}if(_0xf2c378!=null&&_0xf2c378[_0x1acf20(0x196)]){let _0x3ed1f6=_0xf2c378[_0x1acf20(0x196)];delete _0xf2c378[_0x1acf20(0x196)],localStorage[_0x1acf20(0x261)](_0x1acf20(0x287),JSON[_0x1acf20(0x16e)](_0xf2c378)),_0x3ed1f6['forEach'](_0x22f640=>{const _0x14f4af=_0x1acf20;_0x4523cb[_0x14f4af(0xf8)](_0x22f640['message'][_0x14f4af(0x109)])?(_0x187999(0x1,'Showing\x20popup\x20from\x20Shopify\x20data'),_0x187999(0x1,_0x22f640),_0x4523cb['showPopup'](_0x22f640)):_0x54206b[_0x14f4af(0x2ca)](_0x22f640[_0x14f4af(0x236)]['name'])&&_0x54206b['showContentCard'](_0x22f640);});}}}));},0x3e8);}),this[_0x457149(0x33a)]=_0x207b14=>{const _0x2db82f=_0x457149;let _0x4de715=()=>{const _0x2d0b24=_0x3706;let _0x3a1da8=JSON[_0x2d0b24(0xdd)](localStorage[_0x2d0b24(0x296)](_0x207b14)||'{}');Object['keys'](_0x3a1da8)[_0x2d0b24(0x1bc)](_0x375999=>{const _0x2ef79f=_0x2d0b24;_0x3a1da8[_0x375999]['initialTime']=new Date()[_0x2ef79f(0x28c)]();}),localStorage[_0x2d0b24(0x261)](_0x207b14,JSON[_0x2d0b24(0x16e)](_0x3a1da8));};_0x4de715(),window[_0x2db82f(0x32d)](_0x2db82f(0x9d),_0x4de715);},this[_0x457149(0x148)]=({id:_0x344661,localStorageKey:_0x3c35ce})=>{const _0x495583=_0x457149;let _0x254ef8=JSON[_0x495583(0xdd)](localStorage[_0x495583(0x296)](_0x3c35ce)||'{}');_0x254ef8[_0x344661]&&delete _0x254ef8[_0x344661],localStorage[_0x495583(0x261)](_0x3c35ce,JSON[_0x495583(0x16e)](_0x254ef8));},this[_0x457149(0x26c)]=({actionCondition:_0x6c0d40,actionMethod:_0x23c1ed,localStorageKey:_0x2fa5bb})=>{const _0x9ac29d=_0x457149;let _0x59abda=JSON[_0x9ac29d(0xdd)](localStorage[_0x9ac29d(0x296)](_0x2fa5bb)||'{}');Object[_0x9ac29d(0x2f1)](_0x59abda)[_0x9ac29d(0x1bc)](_0x2b459e=>{_0x6c0d40(_0x59abda[_0x2b459e])&&_0x23c1ed(_0x59abda[_0x2b459e]);});};}static[_0x18566b(0x10a)](){return _0x2ae45e(_0x5f141f,_0x11c196)||_0x4183cd(_0x5f141f,_0x11c196,new _0x5f141f()),_0x2ae45e(_0x5f141f,_0x11c196);}[_0x18566b(0xc2)](_0x13716c,_0xcc5e31){return _0x5ee3ca(this,null,function*(){const _0x12366d=_0x3706;_0x187999(0x1,'Initializing\x20base\x20service');let _0x5a6f59=_0x24718d(this,_0x27cee8,_0x514aec)[_0x12366d(0x2b4)](this);if(_0xcc5e31!=null&&_0xcc5e31[_0x12366d(0xfb)]&&_0x4183cd(this,_0xfa257d,!0x0),_0x24718d(this,_0x27cee8,_0x2e4c87)[_0x12366d(0x2b4)](this,_0x13716c),_0x543d58[_0x12366d(0x189)]()==='35'){_0x16ae1c[_0x12366d(0x273)]=!0x0;return;}let _0x2b23a1=this[_0x12366d(0x160)]();if(_0x2b23a1===_0x12366d(0xcf)||_0x2b23a1===_0x12366d(0x246)){_0x187999(0x2,'Not\x20initializing\x20base\x20service\x20for\x20crawlers\x20or\x20unknown\x20platforms');return;}if(yield _0x543d58[_0x12366d(0xf7)](),_0x187999(0x1,_0x12366d(0x200)),yield _0x24718d(this,_0x27cee8,_0x49a79b)['call'](this,0x3),_0xcc5e31!=null&&_0xcc5e31[_0x12366d(0xfb)]&&_0x2ae45e(this,_0x2f1aa7)['call'](this),_0xcc5e31!=null&&_0xcc5e31[_0x12366d(0x235)])try{_0x16ae1c[_0x12366d(0x21c)]=!0x0,yield this[_0x12366d(0x338)](_0xcc5e31[_0x12366d(0x235)]);}finally{_0x16ae1c[_0x12366d(0x21c)]=!0x1;}yield this[_0x12366d(0x23a)](),yield _0x14ec85[_0x12366d(0x221)](),yield _0x59b850[_0x12366d(0x28f)](),_0x14ec85[_0x12366d(0x23e)]({'eventName':_0x12366d(0x181)}),_0x187999(0x1,_0x12366d(0x13b)),yield _0x5b4f5a(_0x12366d(0x146),()=>_0x5ee3ca(this,null,function*(){const _0x851148=_0x12366d;yield _0x5ef6e0[_0x851148(0xc2)](_0x5a6f59,_0xcc5e31==null?void 0x0:_0xcc5e31[_0x851148(0xf4)],_0xcc5e31==null?void 0x0:_0xcc5e31[_0x851148(0xd3)]);})),yield _0x24718d(this,_0x27cee8,_0x54d49d)['call'](this,_0xcc5e31==null?void 0x0:_0xcc5e31[_0x12366d(0xfb)]);let _0x4801bd=history[_0x12366d(0x1cc)];history[_0x12366d(0x1cc)]=(..._0x5c7f95)=>{const _0x59dab1=_0x12366d;_0x4801bd[_0x59dab1(0x25b)](history,_0x5c7f95),_0x24718d(this,_0x27cee8,_0x6e60f9)[_0x59dab1(0x2b4)](this,_0xcc5e31==null?void 0x0:_0xcc5e31[_0x59dab1(0xfb)]);},_0x187999(0x1,_0x12366d(0x206));});}[_0x18566b(0x27c)](_0x354c8e){_0x4183cd(this,_0x339b8f,_0x354c8e);}[_0x18566b(0x230)](_0x4f44ed){_0x4183cd(this,_0x1574ee,_0x4f44ed);}[_0x18566b(0x100)](_0x555554){_0x4183cd(this,_0x5ae7c3,_0x555554);}[_0x18566b(0x2e3)](_0x2f1c2a){_0x4183cd(this,_0x517f3a,_0x2f1c2a);}[_0x18566b(0x33b)](){return _0x2ae45e(this,_0x517f3a);}[_0x18566b(0x160)](){return _0x2ae45e(this,_0x339b8f);}['getOSVersion'](){return _0x2ae45e(this,_0x1574ee);}[_0x18566b(0x2ac)](){return _0x2ae45e(this,_0x5ae7c3);}get[_0x18566b(0x28d)](){return _0x2ae45e(this,_0xfa257d);}[_0x18566b(0x1a6)](){}[_0x18566b(0x1b5)]({data:_0x13f355,displayMethod:_0x1af311,timeValueKey:_0x11fe91}){const _0x3d5807=_0x18566b;let _0x4cb61d=()=>{const _0x5c52b5=_0x3706;var _0x22aea7;let _0x295515=window['innerHeight'],_0xa5f4c0=document[_0x5c52b5(0xcc)][_0x5c52b5(0x1a5)];window[_0x5c52b5(0x26e)]/(_0xa5f4c0-_0x295515)*0x64>(((_0x22aea7=_0x13f355[_0x11fe91])==null?void 0x0:_0x22aea7['value'])||0x0)&&(window[_0x5c52b5(0x12e)](_0x5c52b5(0x284),_0x4cb61d),_0x1af311(_0x13f355));};window[_0x3d5807(0x32d)](_0x3d5807(0x284),_0x4cb61d);}[_0x18566b(0xbe)]({clearActionMethod:_0x15346d,data:_0x5d5c96,displayMethod:_0x1e569c,idKey:_0x1ec60b,timeValueKey:_0x2d0408}){const _0x32d8dc=_0x18566b;var _0x33310b,_0x532621,_0x5427d5;let _0x1b3f91=(_0x33310b=_0x5d5c96[_0x2d0408])==null?void 0x0:_0x33310b['value'];((_0x532621=_0x5d5c96[_0x2d0408])==null?void 0x0:_0x532621[_0x32d8dc(0x23d)])===_0x32d8dc(0x2fa)&&(_0x1b3f91=_0x1b3f91*0x3c);let _0x437364=_0x5d5c96[_0x32d8dc(0x29a)]-0x1f4+(_0x1b3f91||0x0)*0x3e8-new Date()[_0x32d8dc(0x28c)]();_0x187999(0x1,_0x32d8dc(0x179)+_0x5d5c96[_0x32d8dc(0x29a)]),_0x187999(0x1,_0x32d8dc(0x22a)+((_0x5427d5=_0x5d5c96[_0x2d0408])==null?void 0x0:_0x5427d5[_0x32d8dc(0x1aa)])),_0x187999(0x1,_0x32d8dc(0x10d)+new Date()[_0x32d8dc(0x28c)]()),_0x187999(0x1,_0x32d8dc(0x31d)+_0x437364),_0x437364>0x0?setTimeout(()=>{_0x15346d(_0x5d5c96[_0x1ec60b]),_0x1e569c(_0x5d5c96);},_0x437364):(_0x15346d(_0x5d5c96[_0x1ec60b]),_0x1e569c(_0x5d5c96));}['storeActionInLocalStorage'](_0x391671,_0xa0691f,_0x141947){const _0x23731c=_0x18566b;var _0xe88ecb;let _0x492631=JSON[_0x23731c(0xdd)](localStorage[_0x23731c(0x296)](_0xa0691f)||'{}'),_0x1d681f=(_0xe88ecb=_0x141947 in _0x391671&&_0x391671[_0x141947])!=null?_0xe88ecb:'';_0x1d681f&&(_0x492631[_0x1d681f]=_0x4ff0ee(_0x9bf69c({},_0x391671),{'initialTime':new Date()[_0x23731c(0x28c)]()}),localStorage[_0x23731c(0x261)](_0xa0691f,JSON[_0x23731c(0x16e)](_0x492631)));}[_0x18566b(0x23a)](){return _0x5ee3ca(this,null,function*(){const _0x159b63=_0x3706;yield _0x5b4f5a(_0x159b63(0xfe),()=>_0x5ee3ca(this,null,function*(){const _0x4d9c9d=_0x159b63;if(_0x2ae45e(this,_0xfa257d))return;_0x187999(0x1,_0x4d9c9d(0x1c7)),_0x17615e(_0x4d9c9d(0x1c7),!0x0),_0x4e5064('Checking\x20TTL\x20Time',!0x0);let _0x301def=localStorage[_0x4d9c9d(0x296)](_0x4d9c9d(0x25d)),_0x1ce9bc=!0x1;if(_0x1ce9bc=_0x24718d(this,_0x27cee8,_0x514aec)[_0x4d9c9d(0x2b4)](this,_0x301def),_0x301def!==null&&_0x1ce9bc){let _0x548bc2=localStorage[_0x4d9c9d(0x296)](_0x4d9c9d(0x31a)),_0x17cc13=localStorage['getItem'](_0x4d9c9d(0x25d));if(_0x548bc2&&_0x17cc13){let _0x296dbd=parseInt(_0x17cc13,0xa);yield _0x14ec85[_0x4d9c9d(0x223)]({'eventName':'Web\x20Session\x20Concluded','eventProperties':[{'eventProperty':_0x4d9c9d(0x303),'value':localStorage[_0x4d9c9d(0x296)](_0x4d9c9d(0x31a))},{'eventProperty':_0x4d9c9d(0xeb),'value':Number[_0x4d9c9d(0x168)](_0x296dbd)?new Date(_0x296dbd)[_0x4d9c9d(0x128)]():new Date()[_0x4d9c9d(0x128)]()}]});}localStorage[_0x4d9c9d(0x14e)](_0x4d9c9d(0x25d)),localStorage['removeItem']('session'),localStorage[_0x4d9c9d(0x261)](_0x4d9c9d(0x25d),''+new Date()[_0x4d9c9d(0x28c)]()),yield _0x24718d(this,_0x27cee8,_0x41c798)[_0x4d9c9d(0x2b4)](this),this[_0x4d9c9d(0x204)]();}(!_0x301def||_0x1ce9bc||_0x24718d(this,_0x27cee8,_0x18de72)['call'](this))&&(_0x24718d(this,_0x27cee8,_0x5aed14)[_0x4d9c9d(0x2b4)](this)&&_0x24718d(this,_0x27cee8,_0x26d683)['call'](this),_0x24718d(this,_0x27cee8,_0x3f976d)[_0x4d9c9d(0x2b4)](this)&&(yield this[_0x4d9c9d(0x338)]()),(_0x24718d(this,_0x27cee8,_0x514aec)[_0x4d9c9d(0x2b4)](this)||_0x24718d(this,_0x27cee8,_0x169b3d)[_0x4d9c9d(0x2b4)](this))&&(yield _0x24718d(this,_0x27cee8,_0x25aaae)[_0x4d9c9d(0x2b4)](this)),yield _0x24718d(this,_0x27cee8,_0x41c798)[_0x4d9c9d(0x2b4)](this),(_0x24718d(this,_0x27cee8,_0x514aec)[_0x4d9c9d(0x2b4)](this)||_0x24718d(this,_0x27cee8,_0x1b4264)[_0x4d9c9d(0x2b4)](this))&&(yield _0x24718d(this,_0x27cee8,_0x10babd)[_0x4d9c9d(0x2b4)](this))),_0x4e5064('Checking\x20TTL\x20Time',!0x1),_0x17615e('Checking\x20TTL',!0x1);}));});}[_0x18566b(0x204)](){const _0xbdb1fb=_0x18566b;localStorage[_0xbdb1fb(0x14e)](_0xbdb1fb(0x2c0)),localStorage['removeItem'](_0xbdb1fb(0x297)),localStorage[_0xbdb1fb(0x14e)]('attributes'),localStorage[_0xbdb1fb(0x14e)](_0xbdb1fb(0x2f9));}[_0x18566b(0x2bc)](_0x50d79e){return!0x1;}['storeIdentity'](_0x366ab4){const _0x2bddcf=_0x18566b;let _0x1d9699=this[_0x2bddcf(0x25c)](_0x366ab4);this[_0x2bddcf(0xa9)](_0x2bddcf(0xe4),_0x1d9699,0x16d);}[_0x18566b(0x1c3)](){document['cookie']='mergn_identity=;\x20expires=Thu,\x2001\x20Jan\x201970\x2000:00:00\x20UTC;\x20path=/;';}[_0x18566b(0x25c)](_0x2d8c80){const _0x26e5fc=_0x18566b;let _0x33f0a1=new TextEncoder()[_0x26e5fc(0x219)](_0x2d8c80),_0x3d3095='';for(let _0x4e1465=0x0;_0x4e1465<_0x33f0a1[_0x26e5fc(0x1ff)];_0x4e1465++)_0x3d3095+=String[_0x26e5fc(0x2b1)](_0x33f0a1[_0x4e1465]);return btoa(_0x3d3095);}[_0x18566b(0xde)](_0x1de88f){const _0x705589=_0x18566b;let _0xaec739=atob(_0x1de88f),_0x31ae52=new Uint8Array(_0xaec739[_0x705589(0x1ff)]);for(let _0xf5a73d=0x0;_0xf5a73d<_0xaec739[_0x705589(0x1ff)];_0xf5a73d++)_0x31ae52[_0xf5a73d]=_0xaec739[_0x705589(0x248)](_0xf5a73d);return new TextDecoder()[_0x705589(0x2ba)](_0x31ae52);}['getCookie'](_0x5bace7){const _0xcf78ff=_0x18566b;var _0x4bd374;let _0x106e50=(';\x20'+document[_0xcf78ff(0x15c)])[_0xcf78ff(0x294)](';\x20'+_0x5bace7+'=');return _0x106e50['length']===0x2&&((_0x4bd374=_0x106e50[_0xcf78ff(0x156)]())==null?void 0x0:_0x4bd374['split'](';')[_0xcf78ff(0x2e1)]())||null;}[_0x18566b(0xa9)](_0x21b6ae,_0x20edfa,_0xe4ef2c){const _0x9fc68f=_0x18566b;let _0x5044e3=new Date();_0x5044e3[_0x9fc68f(0x21b)](_0x5044e3[_0x9fc68f(0x28c)]()+_0xe4ef2c*0x18*0x3c*0x3c*0x3e8);let _0x33d40b=_0x9fc68f(0x1d6)+_0x5044e3[_0x9fc68f(0x154)]();document[_0x9fc68f(0x15c)]=_0x21b6ae+'='+_0x20edfa+';\x20'+_0x33d40b+_0x9fc68f(0xb3);}[_0x18566b(0x338)](_0x349997){return _0x5ee3ca(this,null,function*(){const _0x4c9b60=_0x3706;_0x187999(0x1,_0x4c9b60(0x139)),_0x187999(0x1,_0x349997);let _0xc92c7=this['checkIfIdentityExists'](_0x349997);if(_0x187999(0x1,'local\x20identity:\x20'+_0xc92c7),typeof _0xc92c7==_0x4c9b60(0x12b)&&_0xc92c7)return;let _0x5f564d=localStorage['getItem'](_0x4c9b60(0x2c8));(!_0x5f564d||_0x5f564d===_0x4c9b60(0x2e0))&&(_0x5f564d=_0x24718d(this,_0x27cee8,_0x26d683)[_0x4c9b60(0x2b4)](this));let _0x723c94={'deviceId':_0x5f564d,'os':this[_0x4c9b60(0x160)]()};if(_0x349997)_0x723c94[_0x4c9b60(0x235)]=_0x349997;else{if(typeof _0xc92c7==_0x4c9b60(0xc5))_0x723c94[_0x4c9b60(0x235)]=_0xc92c7;else{if(!_0x349997&&localStorage[_0x4c9b60(0x296)]('customer'))return;}}try{_0x187999(0x1,_0x4c9b60(0x2d8)),_0x187999(0x1,_0x723c94),this[_0x4c9b60(0x339)](_0x723c94[_0x4c9b60(0x235)]),_0x723c94['currentCustomer']=localStorage[_0x4c9b60(0x296)](_0x4c9b60(0x19e))||'';let _0x1dc486=yield _0x24718d(this,_0x27cee8,_0x204b48)[_0x4c9b60(0x2b4)](this,_0x723c94);if(_0x1dc486!==void 0x0){localStorage['setItem'](_0x4c9b60(0x19e),_0x1dc486);try{_0x5ef6e0[_0x4c9b60(0xc9)]({'customer':_0x1dc486});}catch(_0x9c785){}}}catch(_0x1823b6){throw this[_0x4c9b60(0x1c3)](),new Error('Error\x20setting\x20identity');}});}[_0x18566b(0xd4)](){return _0x1b9bc9;}};_0x11c196=new WeakMap(),_0x339b8f=new WeakMap(),_0x1574ee=new WeakMap(),_0x5ae7c3=new WeakMap(),_0x517f3a=new WeakMap(),_0x5e62af=new WeakMap(),_0xfa257d=new WeakMap(),_0x2f1aa7=new WeakMap(),_0x27cee8=new WeakSet(),_0x2e4c87=function(_0x38d332){const _0x1b2a41=_0x18566b;_0x543d58[_0x1b2a41(0x197)](_0x38d332),this[_0x1b2a41(0x27c)](_0x24718d(this,_0x27cee8,_0x12d1df)[_0x1b2a41(0x2b4)](this)),this[_0x1b2a41(0x230)](_0x24718d(this,_0x27cee8,_0x8ca27a)[_0x1b2a41(0x2b4)](this)),this[_0x1b2a41(0x100)](navigator['userAgent']);},_0x12d1df=function(){const _0x2a2d73=_0x18566b;return _0x486c9e['getInstance']()[_0x2a2d73(0x2ac)]();},_0x8ca27a=function(){const _0x481688=_0x18566b;let _0x5c3486=navigator[_0x481688(0x166)],_0x2a2f6d;return _0x5c3486[_0x481688(0x283)](_0x481688(0x255))>-0x1?_0x2a2f6d=_0x481688(0x255):_0x5c3486[_0x481688(0x283)](_0x481688(0x2aa))>-0x1||_0x5c3486[_0x481688(0x283)](_0x481688(0x245))>-0x1||_0x5c3486['indexOf'](_0x481688(0x2ab))>-0x1?_0x2a2f6d='Facebook':_0x5c3486[_0x481688(0x283)](_0x481688(0x214))>-0x1?_0x2a2f6d='Twitter':_0x5c3486['indexOf'](_0x481688(0x269))>-0x1?_0x2a2f6d=_0x481688(0x269):_0x5c3486['indexOf'](_0x481688(0x229))>-0x1?_0x2a2f6d=_0x481688(0x229):_0x5c3486['indexOf']('TikTok')>-0x1?_0x2a2f6d=_0x481688(0x2a4):_0x5c3486[_0x481688(0x283)](_0x481688(0x271))>-0x1&&_0x5c3486[_0x481688(0x283)](_0x481688(0x133))===-0x1?_0x2a2f6d=_0x481688(0x2cb):_0x5c3486['indexOf'](_0x481688(0x213))>-0x1&&_0x5c3486[_0x481688(0x283)](_0x481688(0x271))===-0x1?_0x2a2f6d=_0x481688(0x213):_0x5c3486['indexOf'](_0x481688(0x12d))>-0x1?_0x2a2f6d=_0x481688(0x184):_0x5c3486[_0x481688(0x283)](_0x481688(0x133))>-0x1?_0x2a2f6d=_0x481688(0x2d7):_0x5c3486['indexOf'](_0x481688(0x207))>-0x1||_0x5c3486[_0x481688(0x283)](_0x481688(0xdc))>-0x1?_0x2a2f6d=_0x481688(0xd9):_0x5c3486['indexOf'](_0x481688(0x110))>-0x1||_0x5c3486[_0x481688(0x283)](_0x481688(0x138))>-0x1?_0x2a2f6d=_0x481688(0x110):_0x5c3486['indexOf'](_0x481688(0x2fd))>-0x1?_0x2a2f6d=_0x481688(0x2fd):_0x5c3486[_0x481688(0x283)](_0x481688(0x116))>-0x1?_0x2a2f6d=_0x481688(0x116):_0x5c3486[_0x481688(0x283)](_0x481688(0x11d))>-0x1?_0x2a2f6d='Samsung\x20Internet':_0x5c3486[_0x481688(0x283)](_0x481688(0x18a))>-0x1?_0x2a2f6d='UC\x20Browser':_0x5c3486['indexOf'](_0x481688(0x17a))>-0x1?_0x2a2f6d=_0x481688(0x2a1):_0x5c3486[_0x481688(0x283)](_0x481688(0xb4))>-0x1?_0x2a2f6d=_0x481688(0x2a0):_0x5c3486[_0x481688(0x283)]('Sogou')>-0x1?_0x2a2f6d=_0x481688(0x142):_0x2a2f6d=_0x481688(0x246),_0x2a2f6d;},_0x514aec=function(_0x1d2530){const _0x3ccceb=_0x18566b;let _0x46b3d4=null;_0x1d2530||(_0x46b3d4=localStorage['getItem'](_0x3ccceb(0x25d)));let _0x4fce5b=_0x1d2530||_0x46b3d4;if(_0x4fce5b){let _0x136c34=parseInt(_0x4fce5b,0xa),_0x210c89=Date[_0x3ccceb(0x11f)](),_0x49277b=new Date(),_0x3b4460=Date[_0x3ccceb(0x2b8)](_0x49277b[_0x3ccceb(0x257)](),_0x49277b['getUTCMonth'](),_0x49277b[_0x3ccceb(0x344)](),0x0,0x0,0x0,0x0);return _0x136c34<_0x3b4460?!0x0:_0x210c89-_0x136c34>0x1b7740;}return!0x0;},_0x169b3d=function(){const _0x482ab6=_0x18566b;return!localStorage[_0x482ab6(0x296)]('events');},_0x1b4264=function(){const _0x164940=_0x18566b;return!localStorage[_0x164940(0x296)](_0x164940(0x342));},_0x3f976d=function(){const _0x3386b5=_0x18566b;return!localStorage['getItem'](_0x3386b5(0x19e));},_0x5aed14=function(){const _0x1a3e6c=_0x18566b;return!localStorage[_0x1a3e6c(0x296)](_0x1a3e6c(0x2c8));},_0x5ea313=function(){const _0x4f9bdc=_0x18566b;return!localStorage[_0x4f9bdc(0x296)](_0x4f9bdc(0x31a));},_0x18de72=function(){const _0x23c35b=_0x18566b;return _0x24718d(this,_0x27cee8,_0x169b3d)['call'](this)||_0x24718d(this,_0x27cee8,_0x1b4264)[_0x23c35b(0x2b4)](this)||_0x24718d(this,_0x27cee8,_0x3f976d)[_0x23c35b(0x2b4)](this)||_0x24718d(this,_0x27cee8,_0x5aed14)['call'](this)||_0x24718d(this,_0x27cee8,_0x5ea313)['call'](this);},_0x26d683=function(){const _0x5651cc=_0x18566b;let _0x40d83c=localStorage[_0x5651cc(0x296)](_0x5651cc(0x2c8));return _0x40d83c||(_0x40d83c=crypto[_0x5651cc(0xe6)](),localStorage['setItem']('uniqueIdentity',_0x40d83c)),_0x40d83c;},_0x41c798=function(){return _0x5ee3ca(this,null,function*(){const _0x4a2616=_0x3706;yield _0x5b4f5a(_0x4a2616(0x1ef),()=>_0x5ee3ca(this,null,function*(){const _0x4ca076=_0x4a2616;let _0x85c65b=localStorage['getItem'](_0x4ca076(0x31a));if(localStorage[_0x4ca076(0x296)]('ttl')||(localStorage[_0x4ca076(0x261)](_0x4ca076(0x25d),''+new Date()['getTime']()),localStorage[_0x4ca076(0x14e)](_0x4ca076(0x31a)),_0x85c65b=null),!_0x85c65b){_0x85c65b=crypto[_0x4ca076(0xe6)](),localStorage[_0x4ca076(0x261)]('session',_0x85c65b);let _0x3c4096=localStorage[_0x4ca076(0x296)](_0x4ca076(0x25d)),_0x53e33a=_0x3c4096?parseInt(_0x3c4096,0xa):'';yield _0x14ec85['recordEvent']({'eventName':_0x4ca076(0x1d0),'eventProperties':[{'eventProperty':'SESSION_ID','value':localStorage[_0x4ca076(0x296)](_0x4ca076(0x31a))},{'eventProperty':'SESSION_CREATED','value':_0x53e33a?new Date(_0x53e33a)['toISOString']():new Date()['toISOString']()}]});}}),_0x229a0b=>{const _0x2c7daf=_0x4a2616;_0x543d58[_0x2c7daf(0x189)]()==='67'&&_0x229a0b[_0x2c7daf(0x236)]!==_0x2c7daf(0x124)&&_0x229a0b['message'];});});},_0x204b48=function(_0x5c74e8){return _0x5ee3ca(this,null,function*(){const _0x3b0e9d=_0x3706;try{return(yield _0x543d58[_0x3b0e9d(0x1f4)](''+_0xf1df01+_0x1e649d,_0x5c74e8))[_0x3b0e9d(0x2ee)];}catch(_0x225663){throw new Error('Error\x20posting\x20identity\x20data');}});},_0x25aaae=function(){return _0x5ee3ca(this,null,function*(){const _0x2df520=_0x3706;yield _0x14ec85[_0x2df520(0x1a2)]();});},_0x10babd=function(){return _0x5ee3ca(this,null,function*(){const _0x3644ca=_0x3706;yield _0x59b850[_0x3644ca(0xba)]();});},_0x49a79b=function(_0x524b09){return _0x5ee3ca(this,null,function*(){const _0x37c598=_0x3706;yield _0x5b4f5a(_0x37c598(0x2ed),()=>_0x5ee3ca(this,null,function*(){const _0x39602d=_0x37c598;var _0x70e0a6;try{let _0x33feec=parseInt(localStorage[_0x39602d(0x296)](_0x39602d(0x2ef))||'0',0xa)||0x0;if(!_0x33feec||_0x33feec&&new Date()[_0x39602d(0x28c)]()>_0x33feec){let _0x265fbd=yield _0x543d58[_0x39602d(0x14d)](_0x39602d(0x164));if(!(_0x265fbd!=null&&_0x265fbd[_0x39602d(0x2e7)]))throw new Error(JSON['stringify'](_0x265fbd));localStorage['setItem'](_0x39602d(0x2ef),(new Date()[_0x39602d(0x28c)]()+0x493e0)[_0x39602d(0x26f)]());}_0x16ae1c['disableSDK']=!0x1,_0x16ae1c[_0x39602d(0x319)]=!0x0;}catch(_0x1d27f2){if(_0x543d58[_0x39602d(0x189)]()==='67'&&!((_0x70e0a6=_0x1d27f2==null?void 0x0:_0x1d27f2['message'])!=null&&_0x70e0a6['startsWith'](_0x39602d(0x14d)))&&(_0x1d27f2==null?void 0x0:_0x1d27f2[_0x39602d(0x236)])!=='Error\x20verifying\x20API\x20key'&&_0x1d27f2['message']!==_0x39602d(0x124)&&_0x1d27f2[_0x39602d(0x236)],_0x524b09&&_0x524b09>=0x1){yield new Promise(_0x35735f=>setTimeout(_0x35735f,0x5dc)),yield _0x24718d(this,_0x27cee8,_0x49a79b)[_0x39602d(0x2b4)](this,_0x524b09-0x1);return;}throw _0x16ae1c[_0x39602d(0x273)]=!0x0,new Error(_0x39602d(0x317));}}));});},_0x21ad36=function(_0x19a9ee){return _0x5ee3ca(this,null,function*(){const _0x5b48bb=_0x3706;let _0xf30cb2=new TextEncoder()[_0x5b48bb(0x219)](_0x19a9ee),_0x2af825=yield crypto['subtle'][_0x5b48bb(0x195)](_0x5b48bb(0x157),_0xf30cb2);return Array[_0x5b48bb(0x279)](new Uint8Array(_0x2af825))['map'](_0x283df5=>_0x283df5[_0x5b48bb(0x26f)](0x10)[_0x5b48bb(0x2b7)](0x2,'0'))[_0x5b48bb(0xe0)]('');});},_0x432b73=function(_0x619940){return _0x5ee3ca(this,null,function*(){const _0x1875a5=_0x3706;var _0x1474ac;_0x187999(0x1,'Performing\x20viewed\x20web\x20page\x20event');let _0x1a7e5c=(_0x1474ac=window==null?void 0x0:window[_0x1875a5(0x180)])==null?void 0x0:_0x1474ac['href'];if(this[_0x1875a5(0x2e3)](_0x1a7e5c),_0x619940){setTimeout(()=>{const _0x7a28cd=_0x1875a5;_0x5b4f5a(_0x7a28cd(0x2d0),()=>_0x5ee3ca(this,null,function*(){const _0x14650a=_0x7a28cd;if(_0x543d58[_0x14650a(0x189)]()===_0x14650a(0x119)){let _0x48e3e6=localStorage[_0x14650a(0x296)]('customer');if(window['fbq']&&_0x48e3e6){_0x187999(0x1,_0x14650a(0x290));let _0xe755f2={'external_id':yield _0x24718d(this,_0x27cee8,_0x21ad36)[_0x14650a(0x2b4)](this,_0x48e3e6)},_0x2ff29c=_0x59b850[_0x14650a(0x320)](_0x14650a(0xff)),_0x5c0d84=_0x59b850[_0x14650a(0x320)](_0x14650a(0x24e));_0x2ff29c&&(_0xe755f2['em']=yield _0x24718d(this,_0x27cee8,_0x21ad36)[_0x14650a(0x2b4)](this,_0x2ff29c[_0x14650a(0xa8)]())),_0x5c0d84&&(_0xe755f2['ph']=yield _0x24718d(this,_0x27cee8,_0x21ad36)[_0x14650a(0x2b4)](this,_0x5c0d84[_0x14650a(0xa8)]())),window[_0x14650a(0x2d0)](_0x14650a(0x2a6),[]),window[_0x14650a(0x2d0)](_0x14650a(0xc2),'2793393330816842',_0xe755f2),window[_0x14650a(0x2d0)]('trackCustom',_0x14650a(0x333)),_0x187999(0x1,_0x14650a(0x1f7));}}}));},0x5dc),_0x1a7e5c['includes']('thank_you')&&(yield _0x14ec85[_0x1875a5(0x223)]({'eventName':_0x1875a5(0x101)}));return;}_0x14ec85[_0x1875a5(0x23e)]({'eventName':_0x1875a5(0x334)});let _0x23ed00=[];new URLSearchParams(new URL(window[_0x1875a5(0x180)]['href'])[_0x1875a5(0x2d5)])[_0x1875a5(0x1bc)]((_0x45a2ab,_0x43538c)=>_0x5ee3ca(this,null,function*(){const _0x5bf184=_0x1875a5;_0x430a76[_0x5bf184(0xae)](_0x43538c)&&_0x23ed00[_0x5bf184(0x158)]({'eventProperty':_0x43538c,'value':_0x45a2ab});})),yield _0x14ec85[_0x1875a5(0x223)]({'eventName':_0x1875a5(0x253),'eventProperties':[{'eventProperty':'URL','value':window['location'][_0x1875a5(0x155)]},..._0x23ed00]});});},_0x6e60f9=function(_0x5044ce){return _0x5ee3ca(this,null,function*(){const _0x38a7a4=_0x3706;var _0x26f618;_0x187999(0x1,_0x38a7a4(0x28b));let _0x25f7af=(_0x26f618=window==null?void 0x0:window[_0x38a7a4(0x180)])==null?void 0x0:_0x26f618['href'];(this[_0x38a7a4(0x33b)]()===null||this[_0x38a7a4(0x33b)]()===void 0x0||_0x25f7af!==this['getPreviousUrl']())&&(yield _0x24718d(this,_0x27cee8,_0x432b73)[_0x38a7a4(0x2b4)](this,_0x5044ce));});},_0x54d49d=function(_0x42433d){return _0x5ee3ca(this,null,function*(){const _0x312df8=_0x3706;var _0x110c22,_0x37ac05;let _0x186cd3=(_0x110c22=window==null?void 0x0:window[_0x312df8(0x180)])==null?void 0x0:_0x110c22[_0x312df8(0xb2)];_0x14ec85[_0x312df8(0x23e)]({'eventName':'show_notification_error','eventProperties':[{'eventProperty':_0x312df8(0x236),'value':(_0x186cd3!==this[_0x312df8(0x33b)]())+':'+_0x186cd3+':'+this[_0x312df8(0x33b)]()}]});try{yield _0x24718d(this,_0x27cee8,_0x432b73)[_0x312df8(0x2b4)](this,_0x42433d);}catch(_0x1463b0){let _0x2ad61a=_0x1463b0&&_0x1463b0[_0x312df8(0x236)]?(_0x37ac05=_0x1463b0==null?void 0x0:_0x1463b0['message'])==null?void 0x0:_0x37ac05[_0x312df8(0xf2)](0x0,0x64):'undefined';yield _0x14ec85[_0x312df8(0x23e)]({'eventName':_0x312df8(0x2b2),'eventProperties':[{'eventProperty':'message','value':''+_0x2ad61a}]});}});},_0x120e23(_0x901655,_0x11c196);var _0x1c32ce=_0x901655,_0x13a202=_0x1c32ce['getInstance'](),_0x13fff4,_0x46c7d6,_0x4994ca,_0x2b40ff,_0xccd0b5,_0x56a96f,_0x268d64,_0x8d569c,_0x436beb,_0x4048ee,_0x400c7a,_0x30a174=class _0x36b8b5{constructor(){_0x120e23(this,_0x4994ca),_0x120e23(this,_0x46c7d6,!0x1);}static[_0x18566b(0x10a)](){const _0x557f02=_0x18566b;var _0x56787a;return _0x2ae45e(_0x36b8b5,_0x13fff4)||(_0x4183cd(_0x36b8b5,_0x13fff4,new _0x36b8b5()),_0x24718d(_0x56787a=_0x2ae45e(_0x36b8b5,_0x13fff4),_0x4994ca,_0x2b40ff)[_0x557f02(0x2b4)](_0x56787a)),_0x2ae45e(_0x36b8b5,_0x13fff4);}[_0x18566b(0x28f)](){return _0x5ee3ca(this,null,function*(){const _0x5bc097=_0x3706;yield _0x5b4f5a(_0x5bc097(0xa3),()=>_0x5ee3ca(this,null,function*(){const _0x240df5=_0x5bc097;let _0x370306=JSON[_0x240df5(0xdd)](localStorage[_0x240df5(0x296)](_0x240df5(0x14b))||'[]');if(Array[_0x240df5(0xfa)](_0x370306))for(let _0x33f769 of _0x370306){if(_0x187999(0x1,_0x240df5(0x1c5)),_0x187999(0x1,_0x33f769),yield this[_0x240df5(0x21d)](_0x33f769[_0x240df5(0x2a9)],_0x33f769[_0x240df5(0xf0)])){_0x187999(0x1,_0x240df5(0x275)+_0x33f769[_0x240df5(0x2a9)]+_0x240df5(0x327)+_0x33f769[_0x240df5(0xf0)]),_0x24718d(this,_0x4994ca,_0x268d64)[_0x240df5(0x2b4)](this,_0x33f769[_0x240df5(0x2a9)],_0x33f769['attributeValue']);return;}yield _0x24718d(this,_0x4994ca,_0x8d569c)[_0x240df5(0x2b4)](this,{'attributeName':_0x33f769['attributeName'],'attributeValue':_0x33f769[_0x240df5(0xf0)]});}}));});}[_0x18566b(0xf5)](_0x25409a,_0x2fc3d1,_0x16b4dc){return _0x5ee3ca(this,null,function*(){const _0x1532de=_0x3706;if(yield this[_0x1532de(0x21d)](_0x25409a,_0x2fc3d1)){_0x187999(0x1,_0x1532de(0x1cf)+_0x25409a+'\x20already\x20exists\x20with\x20value\x20'+_0x2fc3d1),_0x24718d(this,_0x4994ca,_0x268d64)['call'](this,_0x25409a,_0x2fc3d1);return;}_0x24718d(this,_0x4994ca,_0x56a96f)[_0x1532de(0x2b4)](this,_0x25409a),_0x24718d(this,_0x4994ca,_0xccd0b5)[_0x1532de(0x2b4)](this,_0x25409a,_0x2fc3d1),_0x16ae1c[_0x1532de(0x319)]&&!_0x16ae1c['loading']&&(yield _0x24718d(this,_0x4994ca,_0x8d569c)[_0x1532de(0x2b4)](this,{'attributeName':_0x25409a,'attributeProperties':_0x16b4dc,'attributeValue':_0x2fc3d1}));});}['storeAttributeInLocalStorage'](){return _0x5ee3ca(this,null,function*(){const _0x15986a=_0x3706;if(!localStorage['getItem'](_0x15986a(0x342))&&!_0x2ae45e(this,_0x46c7d6)){_0x4183cd(this,_0x46c7d6,!0x0);try{let _0x516ee3=(yield this[_0x15986a(0x121)]())[_0x15986a(0x2ee)];_0x516ee3&&localStorage[_0x15986a(0x261)]('attributes',JSON[_0x15986a(0x16e)](_0x516ee3));}catch(_0x57ee45){throw new Error(_0x15986a(0x298));}finally{_0x4183cd(this,_0x46c7d6,!0x1);}}});}[_0x18566b(0x121)](){return _0x5ee3ca(this,null,function*(){const _0x37beb0=_0x3706;try{return yield _0x543d58[_0x37beb0(0x14d)](''+_0x50c00a);}catch(_0x261dd1){throw new Error(_0x37beb0(0x238));}});}[_0x18566b(0x125)](_0x26d72d,_0xd16784){return _0x5ee3ca(this,null,function*(){const _0x3f911a=_0x3706;let _0x3ca2b4=_0x13a202[_0x3f911a(0x11e)](_0x3f911a(0x12c)),_0x2434e6;if(!_0x3ca2b4)_0x2434e6={};else{let _0x115f7c=_0x13a202[_0x3f911a(0xde)](_0x3ca2b4);_0x2434e6=JSON[_0x3f911a(0xdd)](_0x115f7c);}_0x2434e6[_0x26d72d]=_0xd16784;let _0x3ff05a=_0x13a202['encodeData'](JSON['stringify'](_0x2434e6));_0x13a202[_0x3f911a(0xa9)]('mergn_customer_attributes',_0x3ff05a,0x16d);});}['removeAttribute'](_0x494782){return _0x5ee3ca(this,null,function*(){const _0x242888=_0x3706;let _0x52b3d7=_0x13a202[_0x242888(0x11e)](_0x242888(0x12c)),_0x7b1887;if(!_0x52b3d7)_0x7b1887={};else{let _0x8215ec=_0x13a202[_0x242888(0xde)](_0x52b3d7);_0x7b1887=JSON[_0x242888(0xdd)](_0x8215ec);}delete _0x7b1887[_0x494782];let _0x3ec68d=_0x13a202[_0x242888(0x25c)](JSON[_0x242888(0x16e)](_0x7b1887));_0x13a202['setCookie'](_0x242888(0x12c),_0x3ec68d,0x16d);});}[_0x18566b(0x21d)](_0x111fb4,_0x21d9af){return _0x5ee3ca(this,null,function*(){const _0xce7d5=_0x3706;let _0x3d3db7=_0x13a202['getCookie'](_0xce7d5(0x12c));if(!_0x3d3db7)return!0x1;let _0x1e9680=_0x13a202['decodeData'](_0x3d3db7),_0x40d70e=JSON[_0xce7d5(0xdd)](_0x1e9680);return Object[_0xce7d5(0x1d2)]['hasOwnProperty'][_0xce7d5(0x2b4)](_0x40d70e,_0x111fb4)?_0x21d9af!==void 0x0?_0x40d70e[_0x111fb4]===_0x21d9af:!0x0:!0x1;});}[_0x18566b(0x320)](_0x333448){const _0x5d15de=_0x18566b;let _0xe771d7=_0x13a202[_0x5d15de(0x11e)](_0x5d15de(0x12c));if(!_0xe771d7)return'';let _0x15b4e8=_0x13a202['decodeData'](_0xe771d7);return JSON[_0x5d15de(0xdd)](_0x15b4e8)[_0x333448];}};_0x13fff4=new WeakMap(),_0x46c7d6=new WeakMap(),_0x4994ca=new WeakSet(),_0x2b40ff=function(){return _0x5ee3ca(this,null,function*(){});},_0xccd0b5=function(_0x587485,_0x416c15){const _0x20344a=_0x18566b;let _0x471ce8=JSON[_0x20344a(0xdd)](localStorage[_0x20344a(0x296)](_0x20344a(0x14b))||'[]');_0x471ce8['push']({'attributeName':_0x587485,'attributeValue':_0x416c15}),localStorage[_0x20344a(0x261)](_0x20344a(0x14b),JSON[_0x20344a(0x16e)](_0x471ce8));},_0x56a96f=function(_0x2a1330){return _0x5ee3ca(this,null,function*(){const _0x12394f=_0x3706;let _0x25b3c1=JSON[_0x12394f(0xdd)](localStorage[_0x12394f(0x296)](_0x12394f(0x14b))||'[]');for(let _0x54119c of _0x25b3c1)_0x54119c[_0x12394f(0x2a9)]===_0x2a1330&&(_0x25b3c1['splice'](_0x25b3c1[_0x12394f(0x283)](_0x54119c),0x1),localStorage[_0x12394f(0x261)](_0x12394f(0x14b),JSON['stringify'](_0x25b3c1)));});},_0x268d64=function(_0x3a1603,_0x18f59e){return _0x5ee3ca(this,null,function*(){const _0x3888ef=_0x3706;let _0x4667ad=JSON[_0x3888ef(0xdd)](localStorage[_0x3888ef(0x296)](_0x3888ef(0x14b))||'[]');for(let _0x1830f8 of _0x4667ad)JSON[_0x3888ef(0x16e)](_0x1830f8)===JSON['stringify']({'attributeName':_0x3a1603,'attributeValue':_0x18f59e})&&(_0x4667ad['splice'](_0x4667ad[_0x3888ef(0x283)](_0x1830f8),0x1),localStorage[_0x3888ef(0x261)]('preInitializedAttributes',JSON[_0x3888ef(0x16e)](_0x4667ad)));});},_0x8d569c=function(_0xf2bfb){return _0x5ee3ca(this,arguments,function*({attributeName:_0x1d96a3,attributeProperties:_0x446343,attributeValue:_0x5ae11d}){const _0x4a9034=_0x3706;yield _0x5b4f5a(_0x4a9034(0x267),()=>_0x5ee3ca(this,null,function*(){const _0x3537ff=_0x4a9034;if(_0x187999(0x1,_0x3537ff(0x174)),_0x17615e(_0x3537ff(0x174),!0x0),_0x4e5064(_0x3537ff(0x336),!0x0),_0x187999(0x1,'Attribute\x20Payload:'),_0x187999(0x1,'Attribute\x20Name:\x20'+_0x1d96a3+_0x3537ff(0x2c9)+_0x5ae11d),!_0x5ae11d||_0x5ae11d===''){_0x187999(0x2,'Attribute\x20value\x20is\x20required');return;}yield _0x13a202['checkTTL'](),yield _0x24718d(this,_0x4994ca,_0x4048ee)[_0x3537ff(0x2b4)](this);let _0xea1c88=JSON[_0x3537ff(0xdd)](localStorage[_0x3537ff(0x296)](_0x3537ff(0x342))||'{}'),_0x40c83e=_0x446343?_0x24718d(this,_0x4994ca,_0x436beb)[_0x3537ff(0x2b4)](this,_0xea1c88,_0x1d96a3,_0x446343):_0x24718d(this,_0x4994ca,_0x436beb)[_0x3537ff(0x2b4)](this,_0xea1c88,_0x1d96a3);if(typeof _0x40c83e==_0x3537ff(0xc5)){_0x187999(0x2,_0x40c83e);return;}_0xea1c88[_0x1d96a3]['should_set_identity']&&(yield _0x13a202[_0x3537ff(0x338)](typeof _0x5ae11d=='string'?_0x5ae11d:JSON[_0x3537ff(0x16e)](_0x5ae11d))),_0x13a202['updateSessionCreated']();let {id:_0x183f65}=_0xea1c88[_0x1d96a3],_0x22adae={'attributeId':_0x183f65,'attributeProperties':_0x40c83e,'customerId':localStorage[_0x3537ff(0x296)]('customer')||'','deviceId':localStorage[_0x3537ff(0x296)](_0x3537ff(0x2c8))||'','sdkVersion':_0x13a202[_0x3537ff(0xd4)](),'should_set_identity':_0xea1c88[_0x1d96a3]['should_set_identity'],'value':_0x5ae11d};yield _0x24718d(this,_0x4994ca,_0x400c7a)[_0x3537ff(0x2b4)](this,_0x22adae,_0x1d96a3,_0x5ae11d),_0x24718d(this,_0x4994ca,_0x268d64)[_0x3537ff(0x2b4)](this,_0x1d96a3,_0x5ae11d),_0x4e5064(_0x3537ff(0x336),!0x1),_0x17615e(_0x3537ff(0x174),!0x1);}));});},_0x436beb=function(_0xed34ef,_0x14563f,_0x15b0a9){const _0x2f760a=_0x18566b;if(!Object[_0x2f760a(0x1d2)][_0x2f760a(0x1f5)]['call'](_0xed34ef,_0x14563f))return _0x2f760a(0x1cf)+_0x14563f+'\x20is\x20not\x20valid.';if(!_0x15b0a9)return[];let _0x3abfcd=_0xed34ef[_0x14563f];if(!(_0x3abfcd!=null&&_0x3abfcd[_0x2f760a(0x301)]))return _0x2f760a(0x1cf)+_0x14563f+'\x20does\x20not\x20have\x20a\x20valid\x20attributeProperty.';let _0x1827a2=_0x15b0a9[_0x2f760a(0x147)](({attributeProperty:_0x37aebb})=>!Object['prototype'][_0x2f760a(0x1f5)]['call'](_0x3abfcd['attributeProperty'],_0x37aebb))[_0x2f760a(0x1b9)](({attributeProperty:_0x4c2ee7})=>_0x4c2ee7);return _0x1827a2[_0x2f760a(0x1ff)]>0x0?'Attribute\x20'+_0x14563f+_0x2f760a(0x208)+_0x1827a2['join'](',\x20')+'.':_0x15b0a9[_0x2f760a(0x1b9)](({attributeProperty:_0x5ac90d,value:_0x1c6282})=>({'attributePropertyId':_0x3abfcd['attributeProperty'][_0x5ac90d]['id'],'value':_0x1c6282}));},_0x4048ee=function(){return _0x5ee3ca(this,null,function*(){const _0xf95bc5=_0x3706;localStorage[_0xf95bc5(0x296)](_0xf95bc5(0x342))||(yield this[_0xf95bc5(0xba)]());});},_0x400c7a=function(_0x3e55a7,_0x233a7b,_0x4c985e){return _0x5ee3ca(this,null,function*(){const _0x14801f=_0x3706;try{return yield this['storeAttribute'](_0x233a7b,_0x4c985e),yield _0x543d58[_0x14801f(0x152)](''+_0x50c00a+_0x5b7537,_0x3e55a7);}catch(_0x270d67){throw yield this[_0x14801f(0x314)](_0x233a7b),new Error(_0x14801f(0x2c2));}});},_0x120e23(_0x30a174,_0x13fff4);var _0x39cf87=_0x30a174,_0x59b850=_0x39cf87[_0x18566b(0x10a)](),_0x3bee9d,_0x3b3929=class _0x29fe4c{constructor(){}static['getInstance'](){return _0x2ae45e(_0x29fe4c,_0x3bee9d)||_0x4183cd(_0x29fe4c,_0x3bee9d,new _0x29fe4c()),_0x2ae45e(_0x29fe4c,_0x3bee9d);}[_0x18566b(0xc2)](_0x2e78f4,_0xda91d3){const _0x43b740=_0x18566b;_0x2e78f4===_0x43b740(0x2fc)||_0x2e78f4==='6f4f288m471rgn87fe9b0386aab2926fa14668bb051d66753f4b2e0555486d290958095'||setTimeout(()=>{const _0x134cd5=_0x43b740;_0x5b4f5a(_0x134cd5(0xc2),()=>_0x5ee3ca(this,null,function*(){const _0x923a1f=_0x134cd5;yield _0x5b4f5a('log\x20level\x20check',()=>_0x5ee3ca(this,null,function*(){const _0x9a29b9=_0x3706;_0x187999(0x1,'Log\x20level\x20check');let _0x15da15=localStorage[_0x9a29b9(0x296)](_0x9a29b9(0x1fc));_0x15da15&&(_0x16ae1c[_0x9a29b9(0x1a0)]=parseInt(_0x15da15,0xa));})),_0x187999(0x1,_0x923a1f(0x11b)),yield _0x13a202[_0x923a1f(0xc2)](_0x2e78f4,_0xda91d3),!_0x16ae1c[_0x923a1f(0x273)]&&(_0x14ec85['recordDebugEvents']({'eventName':_0x923a1f(0x145)}),_0x187999(0x1,_0x923a1f(0xad)),window[_0x923a1f(0x32d)]('online',()=>_0x5ee3ca(this,null,function*(){const _0x42a013=_0x923a1f;_0x16ae1c[_0x42a013(0x11a)]=!0x1;let _0x34ee65=JSON[_0x42a013(0xdd)](localStorage[_0x42a013(0x296)](_0x42a013(0x2f9))||'[]');Array[_0x42a013(0xfa)](_0x34ee65)&&(yield _0x14ec85[_0x42a013(0x30b)]({'customerId':localStorage['getItem'](_0x42a013(0x19e))||'','deviceId':localStorage['getItem']('uniqueIdentity')||'','events':_0x34ee65}),localStorage[_0x42a013(0x14e)]('offlineEvents')),_0x13a202[_0x42a013(0x23a)](),_0x13a202[_0x42a013(0x1a6)]();})),window[_0x923a1f(0x32d)](_0x923a1f(0x11a),()=>{const _0x5e9e28=_0x923a1f;_0x16ae1c[_0x5e9e28(0x11a)]=!0x0;}),window[_0x923a1f(0x32d)](_0x923a1f(0x126),()=>{const _0x342704=_0x923a1f;_0x4523cb[_0x342704(0xc8)](),_0x5ef6e0[_0x342704(0x1ca)]();}));}));});}[_0x18566b(0x1c4)](_0x369ada,_0x3c60e9){const _0x14599e=_0x18566b;if(_0x16ae1c['disableSDK']||document['location'][_0x14599e(0xb2)]===_0x14599e(0x14f))return;let _0x35f36e=localStorage[_0x14599e(0x296)](_0x14599e(0x1fc));if(_0x35f36e){_0x16ae1c['debugLevel']=parseInt(_0x35f36e,0xa);try{_0x5ef6e0[_0x14599e(0xc9)]({'debugLevel':_0x369ada});}catch(_0x488169){}return;}if(!(_0x369ada in _0x5e5cfa)){console[_0x14599e(0x2b0)](_0x14599e(0x19d));return;}_0x16ae1c[_0x14599e(0x2df)]=_0x3c60e9||{},_0x16ae1c['debugLevel']=_0x369ada;try{_0x5ef6e0[_0x14599e(0xc9)]({'debugLevel':_0x369ada});}catch(_0x5cfb7e){}}[_0x18566b(0xf5)](_0x46e63b,_0x59dcef){return _0x5ee3ca(this,null,function*(){const _0xb0b985=_0x3706;return _0x187999(0x1,_0xb0b985(0x2a9)),_0x187999(0x1,_0x46e63b),_0x187999(0x1,_0xb0b985(0xf0)),_0x187999(0x1,_0x59dcef),new Promise((_0x41014c,_0x56d677)=>{setTimeout(()=>_0x5ee3ca(this,null,function*(){try{yield _0x5b4f5a('recordAttribute',()=>_0x5ee3ca(this,null,function*(){const _0x506844=_0x3706;let _0x355633='';return Array['isArray'](_0x59dcef)?_0x355633=JSON['stringify'](_0x59dcef):typeof _0x59dcef=='number'?_0x355633=''+_0x59dcef:_0x355633=_0x59dcef,_0x187999(0x1,'Recording\x20attribute'),_0x187999(0x1,_0x506844(0x1fd)+_0x46e63b+_0x506844(0xa5)+_0x355633),new Promise((_0x1ab48a,_0x407bed)=>{setTimeout(()=>_0x5ee3ca(this,null,function*(){try{yield _0x59b850['recordAttribute'](_0x46e63b,_0x355633),_0x1ab48a();}catch(_0x200e55){_0x407bed(_0x200e55);}}));});})),_0x41014c();}catch(_0x5872f5){_0x56d677(_0x5872f5);}}));});});}[_0x18566b(0x2d6)](_0x38a55f){return _0x5ee3ca(this,null,function*(){return new Promise((_0x409202,_0x55a906)=>{setTimeout(()=>_0x5ee3ca(this,null,function*(){const _0x1da0ce=_0x3706;try{yield _0x5b4f5a('login',()=>_0x5ee3ca(this,null,function*(){const _0x4f78a6=_0x3706;_0x187999(0x1,_0x4f78a6(0x1e3)),_0x187999(0x1,_0x4f78a6(0x134)+_0x38a55f),_0x16ae1c[_0x4f78a6(0x21c)]=!0x0,yield _0x13a202[_0x4f78a6(0x338)](_0x38a55f);})),_0x409202();}catch(_0x5194ed){_0x55a906(_0x5194ed);}finally{_0x16ae1c[_0x1da0ce(0x21c)]=!0x1,yield _0x14ec85['recordEventsFromQueue'](),yield _0x59b850['recordAttributeFromQueue']();}}));});});}[_0x18566b(0x32e)](){setTimeout(()=>{const _0x196fd5=_0x3706;_0x5b4f5a(_0x196fd5(0x32e),()=>_0x5ee3ca(this,null,function*(){const _0x22b660=_0x196fd5;_0x187999(0x1,_0x22b660(0x1bb)),_0x13a202[_0x22b660(0x204)]();}));});}[_0x18566b(0x223)](_0x1c0e17,_0x2f6f9a){return _0x5ee3ca(this,null,function*(){return new Promise((_0x8bcb4e,_0x3db1b7)=>{setTimeout(()=>_0x5ee3ca(this,null,function*(){const _0x1b44fd=_0x3706;try{yield _0x5b4f5a(_0x1b44fd(0x17d),()=>_0x5ee3ca(this,null,function*(){const _0x4ee532=_0x1b44fd;if(_0x187999(0x1,_0x4ee532(0x21e)),_0x187999(0x1,_0x4ee532(0x2f2)+{'eventName':_0x1c0e17,'eventProperties':_0x2f6f9a}),!_0x1c0e17||typeof _0x1c0e17!='string'){_0x187999(0x2,'Event\x20name\x20is\x20required\x20and\x20must\x20be\x20a\x20string');return;}return new Promise((_0x1bb099,_0x138c18)=>{setTimeout(()=>_0x5ee3ca(this,null,function*(){const _0x42fd70=_0x3706;try{yield _0x14ec85[_0x42fd70(0x223)]({'eventName':_0x1c0e17,'eventProperties':_0x2f6f9a}),_0x1bb099();}catch(_0x928ac5){_0x138c18(_0x928ac5);}}));});})),_0x8bcb4e();}catch(_0x4fe404){_0x3db1b7(_0x4fe404);}}));});});}['getVersion'](){return _0x1b9bc9;}};_0x3bee9d=new WeakMap(),_0x120e23(_0x3b3929,_0x3bee9d);var _0x262904=_0x3b3929,_0x14712e=_0x262904[_0x18566b(0x10a)]();typeof window!=_0x18566b(0x2e0)&&(window[_0x18566b(0x1c2)]=_0x14712e);var _0x5e5cee=_0x14712e;})());
|
|
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;})();
|