mergn-webapp-sdk 1.0.3 → 1.0.5

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.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x19d8fe=_0x47b9;(function(_0x4d332d,_0x4e0307){const _0x216d95=_0x47b9,_0x3ad2f6=_0x4d332d();while(!![]){try{const _0x5420e8=parseInt(_0x216d95(0xfc))/0x1*(-parseInt(_0x216d95(0xec))/0x2)+-parseInt(_0x216d95(0xb2))/0x3*(parseInt(_0x216d95(0x12b))/0x4)+parseInt(_0x216d95(0x11c))/0x5+parseInt(_0x216d95(0xf4))/0x6+-parseInt(_0x216d95(0xa7))/0x7*(parseInt(_0x216d95(0x133))/0x8)+parseInt(_0x216d95(0xe0))/0x9+-parseInt(_0x216d95(0x96))/0xa;if(_0x5420e8===_0x4e0307)break;else _0x3ad2f6['push'](_0x3ad2f6['shift']());}catch(_0xaccfa6){_0x3ad2f6['push'](_0x3ad2f6['shift']());}}}(_0x4ed9,0xbe831));var St=Object[_0x19d8fe(0x11d)],O=Object[_0x19d8fe(0xf3)],yt=Object[_0x19d8fe(0x123)],ft=Object[_0x19d8fe(0xa8)],Tt=Object[_0x19d8fe(0xfb)],wt=Object['getOwnPropertyNames'],_e=Object[_0x19d8fe(0xee)],bt=Object[_0x19d8fe(0x120)],Me=Object[_0x19d8fe(0x9b)][_0x19d8fe(0x106)],Rt=Object['prototype']['propertyIsEnumerable'],Ve=(_0x93be69,_0x5cb9c8,_0x2d4845)=>_0x5cb9c8 in _0x93be69?O(_0x93be69,_0x5cb9c8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2d4845}):_0x93be69[_0x5cb9c8]=_0x2d4845,Y=(_0x5c59be,_0x1a8320)=>{const _0x279a32=_0x19d8fe;for(var _0x23af58 in _0x1a8320||(_0x1a8320={}))Me['call'](_0x1a8320,_0x23af58)&&Ve(_0x5c59be,_0x23af58,_0x1a8320[_0x23af58]);if(_e){for(var _0x23af58 of _e(_0x1a8320))Rt[_0x279a32(0xff)](_0x1a8320,_0x23af58)&&Ve(_0x5c59be,_0x23af58,_0x1a8320[_0x23af58]);}return _0x5c59be;},Se=(_0x311bfa,_0x400731)=>yt(_0x311bfa,Tt(_0x400731)),Pt=(_0x5e436c,_0x452f4e)=>{for(var _0x4307ff in _0x452f4e)O(_0x5e436c,_0x4307ff,{'get':_0x452f4e[_0x4307ff],'enumerable':!0x0});},Be=(_0x3574c2,_0x514b22,_0x1e5315,_0x833709)=>{const _0x466da7=_0x19d8fe;if(_0x514b22&&typeof _0x514b22==_0x466da7(0x94)||typeof _0x514b22==_0x466da7(0x9e)){for(let _0x23173f of wt(_0x514b22))!Me['call'](_0x3574c2,_0x23173f)&&_0x23173f!==_0x1e5315&&O(_0x3574c2,_0x23173f,{'get':()=>_0x514b22[_0x23173f],'enumerable':!(_0x833709=ft(_0x514b22,_0x23173f))||_0x833709[_0x466da7(0xd7)]});}return _0x3574c2;},Fe=(_0x5a0408,_0x497cfc,_0x2c6763)=>(_0x2c6763=_0x5a0408!=null?St(bt(_0x5a0408)):{},Be(_0x497cfc||!_0x5a0408||!_0x5a0408[_0x19d8fe(0xc4)]?O(_0x2c6763,_0x19d8fe(0xcd),{'value':_0x5a0408,'enumerable':!0x0}):_0x2c6763,_0x5a0408)),At=_0xff9a01=>Be(O({},'__esModule',{'value':!0x0}),_0xff9a01),ye=(_0xc64ae4,_0x489e38,_0x1a03fa)=>{const _0xc3601c=_0x19d8fe;if(!_0x489e38['has'](_0xc64ae4))throw TypeError(_0xc3601c(0xcc)+_0x1a03fa);},u=(_0x1a1a3b,_0x28c2b6,_0x11621f)=>(ye(_0x1a1a3b,_0x28c2b6,_0x19d8fe(0xfd)),_0x11621f?_0x11621f[_0x19d8fe(0xff)](_0x1a1a3b):_0x28c2b6[_0x19d8fe(0xa9)](_0x1a1a3b)),i=(_0x171188,_0x173158,_0x3e2859)=>{const _0x16a76b=_0x19d8fe;if(_0x173158[_0x16a76b(0x128)](_0x171188))throw TypeError(_0x16a76b(0xd6));_0x173158 instanceof WeakSet?_0x173158['add'](_0x171188):_0x173158[_0x16a76b(0x108)](_0x171188,_0x3e2859);},E=(_0x3b26ae,_0x1b0ddf,_0x20b690,_0x4a437f)=>(ye(_0x3b26ae,_0x1b0ddf,_0x19d8fe(0x104)),_0x4a437f?_0x4a437f[_0x19d8fe(0xff)](_0x3b26ae,_0x20b690):_0x1b0ddf[_0x19d8fe(0x108)](_0x3b26ae,_0x20b690),_0x20b690),$e=(_0x592b6f,_0x4d0019,_0x1d3df3,_0x51dc11)=>({set '_'(_0x45c54f){E(_0x592b6f,_0x4d0019,_0x45c54f,_0x1d3df3);},get '_'(){return u(_0x592b6f,_0x4d0019,_0x51dc11);}}),o=(_0x19419d,_0x4b4e97,_0x5254f4)=>(ye(_0x19419d,_0x4b4e97,_0x19d8fe(0x114)),_0x5254f4),a=(_0x451ad4,_0x55802c,_0x55ccf8)=>new Promise((_0x4c3933,_0x187e9f)=>{const _0x190533=_0x19d8fe;var _0x10f27a=_0x2a82bd=>{const _0x3823d0=_0x47b9;try{_0xc1b41a(_0x55ccf8[_0x3823d0(0xb5)](_0x2a82bd));}catch(_0x4b5fcb){_0x187e9f(_0x4b5fcb);}},_0x582b8b=_0x156b1b=>{try{_0xc1b41a(_0x55ccf8['throw'](_0x156b1b));}catch(_0x29f7aa){_0x187e9f(_0x29f7aa);}},_0xc1b41a=_0x335b40=>_0x335b40[_0x190533(0x12f)]?_0x4c3933(_0x335b40[_0x190533(0xe1)]):Promise[_0x190533(0x100)](_0x335b40[_0x190533(0xe1)])['then'](_0x10f27a,_0x582b8b);_0xc1b41a((_0x55ccf8=_0x55ccf8[_0x190533(0xa6)](_0x451ad4,_0x55802c))['next']());}),Ut={};Pt(Ut,{'default':()=>Ot}),module[_0x19d8fe(0x127)]=At(Ut);function _0x4ed9(){const _0x36c0af=['object','response','5704670ntXUbc','name','keys','getTime','log','prototype','stringify','popup_container_','function','getItem','recordEvent','Popup\x20Action','error','querySelector','Error\x20setting\x20identity','status','apply','2164106HIlnhF','getOwnPropertyDescriptor','get','push','entries','innerHeight','ttl','isInitialized','application/json','join','load','6rLxGIQ','div','eventProperty','next','Error\x20posting\x20attribute\x20record','parse','disableSDK','brand','OriginateFrom:\x20','DELAY','post','/record-event','customer','record\x20event','/event','removeItem','User\x20Login','close','__esModule','Error\x20posting\x20identity\x20data','search','forEach','Unexpected\x20error:','offlineEvents','Close\x20Click','identity','Cannot\x20','default','location','https://u23z4zsda8.execute-api.ap-southeast-1.amazonaws.com/Prod','AxiosError:\x20','Authorization','createElement','Button\x20Click','setItem','AxiosError','Cannot\x20add\x20the\x20same\x20private\x20member\x20more\x20than\x20once','enumerable','Mergn\x20SDK\x20is\x20disabled!','initialTime','remove','string','pathname','/customer','logout','updateAPIKey','6369210tLBNtl','value','platform','IMMEDIATELY','page','events','.u-close-button','MergnError','\x20is\x20not\x20valid.','Max\x20retries\x20reached.\x20Disabling\x20SDK.','Error\x20fetching\x20event\x20data','filter','1846copUJB','attributeProperty','getOwnPropertySymbols','querySelectorAll','click','Viewed\x20Web\x20Page','hostname','defineProperty','4805052jFnaDD','common','preventDefault','campaignEntryTimeValue','AxiosQueueManager','\x0aNo\x20response\x20received.\x20Check\x20network\x20connection\x20or\x20server\x20issues.','Customer\x20Id','getOwnPropertyDescriptors','1066wFtcIy','read\x20from\x20private\x20field','message','call','resolve','uniqueIdentity','[id^=\x22u_content_button_\x22]','campaignId','write\x20to\x20private\x20field','appendChild','hasOwnProperty','Response\x20Data:','set','href','Event\x20','headers','offline','[id^=\x22u_content_form_\x22]','data','.u-popup-container\x20img','form','className','attributes','onLine','access\x20private\x20method','Campaign\x20Id','UTM\x20Key\x20Value','login','showErrorLog','submit','Popup\x20Viewed','/attribute','7296640MsWtKX','create','\x20does\x20not\x20have\x20a\x20valid\x20eventProperty.','recordAttribute','getPrototypeOf','pushState','length','defineProperties','scroll','init','scrollY','exports','has','campaignEntryTime','Mergn\x20not\x20initialized!','647960VFejID','getInstance','Popup','beforeunload','done','session','action','addEventListener','8PlZAjj','HTTP\x20Status:\x20','view'];_0x4ed9=function(){return _0x36c0af;};return _0x4ed9();}var W=require('uuid'),U=_0x19d8fe(0xa1),Je=_0x19d8fe(0x11a),ke=_0x19d8fe(0xcf),fe=_0x19d8fe(0x11b),Ke='/record-attribute',Te=_0x19d8fe(0xc0),Qe=_0x19d8fe(0xbd),je=_0x19d8fe(0xdd),qe='/set-identity',Ye=Fe(require('axios')),He=require('axios-queue-js'),Ge=Fe(require('axios-retry')),ze=require('axios'),l=class extends Error{constructor(_0x111ecf){const _0x3d7000=_0x19d8fe;super(_0x111ecf),this[_0x3d7000(0x97)]=_0x3d7000(0xe7);}};l[_0x19d8fe(0xb8)]=!0x1,l['offline']=!navigator[_0x19d8fe(0x113)],l[_0x19d8fe(0x118)]=!0x1,l[_0x19d8fe(0xae)]=!0x1;var Lt=(_0x4b10d0,_0x3388cc)=>{const _0x339c80=_0x19d8fe;_0x3388cc instanceof l?console['error'](_0x339c80(0xba)+_0x4b10d0,'MergnError:\x20'+_0x3388cc[_0x339c80(0xfe)]):_0x3388cc instanceof ze[_0x339c80(0xd5)]?(console['error']('OriginateFrom:\x20'+_0x4b10d0,_0x339c80(0xd0)+_0x3388cc[_0x339c80(0xfe)]),_0x3388cc[_0x339c80(0x95)]?(console[_0x339c80(0xa2)](_0x339c80(0xba)+_0x4b10d0,_0x339c80(0x92)+_0x3388cc['response'][_0x339c80(0xa5)]),console['error'](_0x339c80(0xba)+_0x4b10d0,_0x339c80(0x107),_0x3388cc[_0x339c80(0x95)]['data'])):_0x3388cc['request']?console[_0x339c80(0xa2)](_0x339c80(0xba)+_0x4b10d0+_0x339c80(0xf9)):console[_0x339c80(0xa2)](_0x339c80(0xba)+_0x4b10d0,'Error\x20setting\x20up\x20the\x20request:',_0x3388cc['message'])):_0x3388cc instanceof Error?console[_0x339c80(0xa2)](_0x339c80(0xba)+_0x4b10d0,_0x339c80(0xc8),_0x3388cc['message']):console[_0x339c80(0xa2)]('OriginateFrom:\x20'+_0x4b10d0,_0x339c80(0xc8),String(_0x3388cc));},f=(_0x3e5984,_0xa7c85,_0x5f5129)=>a(void 0x0,null,function*(){const _0x84f0f3=_0x19d8fe;try{if(l[_0x84f0f3(0xb8)])throw new l(_0x84f0f3(0xd8));if(_0x3e5984!=='record\x20event'&&l['offline'])throw new l('Mergn\x20is\x20offline!');if(_0x3e5984!=='init'&&!l['isInitialized'])throw new l(_0x84f0f3(0x12a));return yield _0xa7c85();}catch(_0x1d703d){return _0x5f5129?_0x5f5129(_0x1d703d):l[_0x84f0f3(0x118)]&&Lt(_0x3e5984,_0x1d703d),null;}}),T,N,x,C,H,D,be,G,We,d=class d{constructor(){const _0x19c16f=_0x19d8fe;i(this,H,0x0);let _0x304903=Ye[_0x19c16f(0xcd)][_0x19c16f(0x11d)]({'baseURL':ke,'headers':{'Content-Type':_0x19c16f(0xaf)}});E(d,N,_0x304903),E(d,x,new He[(_0x19c16f(0xf8))]({'client':_0x304903,'queueSize':0xa})),(0x0,Ge['default'])(_0x304903,{'onRetry':_0x745599=>{const _0x8eedd8=_0x19c16f;_0x745599>=u(d,C)?(l[_0x8eedd8(0x118)]&&console[_0x8eedd8(0x9a)](_0x8eedd8(0xe9)),l[_0x8eedd8(0xb8)]=!0x0):$e(this,H)['_']++;},'retries':u(d,C),'retryDelay':_0x19b1d6=>_0x19b1d6*0x1388});}static[_0x19d8fe(0xdf)](_0x22178e){const _0x17f881=_0x19d8fe;this['apiKey']=_0x22178e,o(this,G,We)[_0x17f881(0xff)](this)['defaults'][_0x17f881(0x10b)][_0x17f881(0xf5)][_0x17f881(0xd1)]=_0x22178e;}static[_0x19d8fe(0xa9)](_0x45d29f){const _0xb8603f=_0x19d8fe;return o(this,D,be)[_0xb8603f(0xff)](this)[_0xb8603f(0xa9)](_0x45d29f);}static['post'](_0x44e2a5,_0x5eefdc){return o(this,D,be)['call'](this)['post'](_0x44e2a5,_0x5eefdc||{});}};T=new WeakMap(),N=new WeakMap(),x=new WeakMap(),C=new WeakMap(),H=new WeakMap(),D=new WeakSet(),be=function(){return u(d,T)||E(d,T,new d()),u(d,x);},G=new WeakSet(),We=function(){return u(d,T)||E(d,T,new d()),u(d,N);},i(d,D),i(d,G),i(d,T,void 0x0),i(d,N,void 0x0),i(d,x,void 0x0),i(d,C,0x2);function _0x47b9(_0x4b6574,_0x28c5c6){const _0x4ed95d=_0x4ed9();return _0x47b9=function(_0x47b9a9,_0x1d5220){_0x47b9a9=_0x47b9a9-0x92;let _0x154a39=_0x4ed95d[_0x47b9a9];return _0x154a39;},_0x47b9(_0x4b6574,_0x28c5c6);}var we=d,S=we,P,I,_,V,M,B,y,w,F,Pe,$,Ae,ee,Xe,te,Ze,re,et,oe,J,ne,ie,tt,se,rt,ae,ot,k,Le,ce,nt,A,X,le,it,K,Oe,ue,st,pe,at,ge,ct,L,Z,de,lt,Ee,ut,me,pt,ve,gt,Q,Ue,Ie,dt,he,Et,j,Ne,q,xe,z,Ce,b=class b{constructor(){const _0x1c97b1=_0x19d8fe;i(this,y),i(this,F),i(this,$),i(this,ee),i(this,te),i(this,re),i(this,ie),i(this,se),i(this,ae),i(this,k),i(this,ce),i(this,A),i(this,le),i(this,K),i(this,ue),i(this,pe),i(this,ge),i(this,L),i(this,de),i(this,Ee),i(this,me),i(this,ve),i(this,Q),i(this,Ie),i(this,he),i(this,j),i(this,q),i(this,z),i(this,I,''),i(this,_,void 0x0),i(this,V,void 0x0),i(this,M,void 0x0),i(this,B,null),i(this,oe,()=>{const _0x2cfb59=_0x47b9;let _0x14d42b=()=>{const _0x528577=_0x47b9;let _0x5e75d2=JSON[_0x528577(0xb7)](localStorage[_0x528577(0x9f)]('action')||'{}');Object[_0x528577(0x98)](_0x5e75d2)[_0x528577(0xc7)](_0x3b07b7=>{const _0x293113=_0x528577;_0x5e75d2[_0x3b07b7][_0x293113(0xd9)]=new Date()[_0x293113(0x99)](),_0x5e75d2[_0x3b07b7][_0x293113(0xe4)]=window[_0x293113(0xce)][_0x293113(0xf2)]+window[_0x293113(0xce)][_0x293113(0xdc)];}),localStorage['setItem'](_0x528577(0x131),JSON['stringify'](_0x5e75d2));};_0x14d42b(),window['addEventListener'](_0x2cfb59(0x12e),_0x14d42b);}),i(this,J,_0x147dca=>{const _0x43243c=_0x47b9;let _0xb7f728=JSON[_0x43243c(0xb7)](localStorage[_0x43243c(0x9f)](_0x43243c(0x131))||'{}');_0xb7f728[_0x147dca]&&delete _0xb7f728[_0x147dca],localStorage[_0x43243c(0xd4)]('action',JSON[_0x43243c(0x9c)](_0xb7f728));}),i(this,ne,()=>{const _0x4cc27d=_0x47b9;let _0x3d804d=JSON['parse'](localStorage[_0x4cc27d(0x9f)]('action')||'{}');Object[_0x4cc27d(0x98)](_0x3d804d)[_0x4cc27d(0xc7)](_0x4ff0bd=>{const _0xafee6b=_0x4cc27d;_0x3d804d[_0x4ff0bd][_0xafee6b(0xfe)][_0xafee6b(0x97)]==='Popup'&&o(this,K,Oe)[_0xafee6b(0xff)](this,_0x3d804d[_0x4ff0bd][_0xafee6b(0x103)]);});}),E(this,M,navigator[_0x1c97b1(0xe2)]);}static[_0x19d8fe(0x12c)](){return u(b,P)||E(b,P,new b()),u(b,P);}[_0x19d8fe(0x125)](_0x2cbf83){f('init',()=>a(this,null,function*(){const _0x120e0a=_0x47b9;o(this,ee,Xe)[_0x120e0a(0xff)](this,_0x2cbf83),yield o(this,F,Pe)[_0x120e0a(0xff)](this),setInterval(()=>a(this,null,function*(){const _0x14e117=_0x120e0a;yield o(this,F,Pe)[_0x14e117(0xff)](this);}),0x493e0);let _0xf702d9=localStorage['getItem'](_0x120e0a(0xad)),_0x7ae630=!0x1;_0xf702d9?(_0x7ae630=new Date()[_0x120e0a(0x99)]()-parseInt(_0xf702d9,0xa)>0x1b7740,_0x7ae630&&o(this,j,Ne)['call'](this)):localStorage[_0x120e0a(0xd4)](_0x120e0a(0xad),''+new Date()['getTime']()),(!_0xf702d9||_0x7ae630||o(this,te,Ze)['call'](this))&&(o(this,ie,tt)[_0x120e0a(0xff)](this),yield o(this,A,X)[_0x120e0a(0xff)](this),yield o(this,re,et)[_0x120e0a(0xff)](this)),window[_0x120e0a(0x132)]('online',()=>a(this,null,function*(){const _0x516dcf=_0x120e0a;l[_0x516dcf(0x10c)]=!0x1;let _0x112ee5=JSON[_0x516dcf(0xb7)](localStorage[_0x516dcf(0x9f)](_0x516dcf(0xc9))||'[]');Array['isArray'](_0x112ee5)&&(yield o(this,Q,Ue)[_0x516dcf(0xff)](this,{'customerId':u(this,I),'events':_0x112ee5}),localStorage['removeItem'](_0x516dcf(0xc9)));})),window['addEventListener'](_0x120e0a(0x10c),()=>{const _0x1a5440=_0x120e0a;l[_0x1a5440(0x10c)]=!0x0;}),window[_0x120e0a(0x132)](_0x120e0a(0xb1),()=>{const _0x35edd3=_0x120e0a;u(this,ne)[_0x35edd3(0xff)](this);}),l['isInitialized']=!0x0;let _0x46b6ab=history[_0x120e0a(0x121)];history[_0x120e0a(0x121)]=(..._0x5005ff)=>{const _0x39d0eb=_0x120e0a;_0x46b6ab['apply'](history,_0x5005ff),o(this,$,Ae)[_0x39d0eb(0xff)](this);},o(this,$,Ae)['call'](this);}));}['showErrorLog'](_0x56a45e=!0x1){l['showErrorLog']=_0x56a45e;}[_0x19d8fe(0x11f)](_0x1e62b7){return a(this,null,function*(){const _0xf5df3c=_0x47b9;yield f(_0xf5df3c(0x11f),()=>a(this,null,function*(){const _0x440b15=_0xf5df3c;yield o(this,q,xe)[_0x440b15(0xff)](this);let _0x5b087e=JSON['parse'](localStorage['getItem'](_0x440b15(0x112))||'[]');if(_0x5b087e&&Object[_0x440b15(0x98)](_0x5b087e)[_0x440b15(0x122)]>0x0){let _0xed5878=[];_0x1e62b7&&Object[_0x440b15(0x98)](_0x1e62b7)[_0x440b15(0x122)]>0x0&&Object['keys'](_0x1e62b7)[_0x440b15(0xc7)](_0x152ada=>{const _0x11fefe=_0x440b15;_0x5b087e['hasOwnProperty'](_0x152ada)&&_0xed5878[_0x11fefe(0xaa)]({'attributeId':_0x5b087e[_0x152ada]['id'],'attributeProperties':[],'value':_0x1e62b7[_0x152ada]});});let _0x5cb3dd=[{'attributes':_0xed5878,'customerId':u(this,I)}];yield o(this,z,Ce)[_0x440b15(0xff)](this,_0x5cb3dd);}}));});}['login'](_0x2f3d97){return a(this,null,function*(){const _0x22845b=_0x47b9;yield f(_0x22845b(0x117),()=>a(this,null,function*(){const _0x145bfc=_0x22845b;yield o(this,A,X)['call'](this,_0x2f3d97),yield this[_0x145bfc(0xa0)](_0x145bfc(0xc2),[{'eventProperty':_0x145bfc(0xfa),'value':localStorage['getItem'](_0x145bfc(0xbe))||0x0}]);}));});}['updateAttribute'](_0xdef4c6,_0x3be7ed,_0x25e2fe){return a(this,null,function*(){const _0x173c71=_0x47b9;yield o(this,q,xe)['call'](this);let _0x5830bb=JSON[_0x173c71(0xb7)](localStorage[_0x173c71(0x9f)](_0x173c71(0x112))||'{}');if(_0x5830bb&&Object[_0x173c71(0x98)](_0x5830bb)[_0x173c71(0x122)]>0x0&&_0x5830bb['hasOwnProperty'](_0xdef4c6)){let _0x5a46c0=_0x5830bb[_0xdef4c6],_0x5e4c16=_0x5a46c0[_0x173c71(0xed)],_0x2598e4=[];_0x25e2fe&&Object[_0x173c71(0x98)](_0x25e2fe)['length']>0x0&&Object[_0x173c71(0x98)](_0x25e2fe)[_0x173c71(0xc7)](_0x2907fa=>{const _0x78540c=_0x173c71;_0x5e4c16[_0x78540c(0x106)](_0x2907fa)&&_0x2598e4[_0x78540c(0xaa)]({'attributePropertyId':_0x5e4c16[_0x2907fa]['id'],'value':_0x25e2fe[_0x2907fa]});});let _0x291cb1=[{'attributes':[{'attributeId':_0x5a46c0['id'],'attributeProperties':_0x2598e4,'value':_0x3be7ed}],'customerId':u(this,I)}];yield o(this,z,Ce)['call'](this,_0x291cb1);}});}[_0x19d8fe(0xde)](){return a(this,null,function*(){const _0x44d3f2=_0x47b9;yield f(_0x44d3f2(0xde),()=>a(this,null,function*(){const _0x35e0e7=_0x44d3f2;o(this,j,Ne)[_0x35e0e7(0xff)](this),this[_0x35e0e7(0xa0)]('User\x20Logout',[{'eventProperty':_0x35e0e7(0xfa),'value':localStorage[_0x35e0e7(0x9f)](_0x35e0e7(0xbe))||0x0}]);}));});}[_0x19d8fe(0xa0)](_0x1b71e2,_0x52eadc){const _0x223124=_0x19d8fe;f(_0x223124(0xbf),()=>a(this,null,function*(){const _0x14f42f=_0x223124;yield o(this,y,w)[_0x14f42f(0xff)](this,_0x1b71e2,_0x52eadc);}));}};P=new WeakMap(),I=new WeakMap(),_=new WeakMap(),V=new WeakMap(),M=new WeakMap(),B=new WeakMap(),y=new WeakSet(),w=function(_0x534516,_0x2f46f3,_0xb4863b,_0x45853c){return a(this,null,function*(){const _0x5bc6aa=_0x47b9;yield f(_0x5bc6aa(0xbf),()=>a(this,null,function*(){const _0x2d6812=_0x5bc6aa;var _0x5d4bb8;let _0x24cc33=o(this,Ee,ut)[_0x2d6812(0xff)](this),_0x2f2f43=o(this,me,pt)['call'](this,_0x24cc33,_0x534516,_0x2f46f3);if(typeof _0x2f2f43==_0x2d6812(0xdb)){l[_0x2d6812(0x118)]&&console[_0x2d6812(0xa2)](_0x2f2f43);return;}let {id:_0x54c9e7}=_0x24cc33[_0x534516],_0x37c9f5=o(this,ve,gt)[_0x2d6812(0xff)](this,Y(Se(Y({},_0xb4863b?{'campaignCustomerInstanceId':_0xb4863b}:{}),{'eventId':_0x54c9e7,'eventProperties':_0x2f2f43,'sessionId':localStorage[_0x2d6812(0x9f)]('session')||''}),_0x45853c?{'name':_0x45853c}:{}));if(l[_0x2d6812(0x10c)]){let _0x36868c=JSON[_0x2d6812(0xb7)](localStorage[_0x2d6812(0x9f)]('offlineEvents')||'[]');_0x36868c[_0x2d6812(0x122)]<=0x32&&(_0x36868c['push'](..._0x37c9f5[_0x2d6812(0xe5)]),localStorage['setItem'](_0x2d6812(0xc9),JSON[_0x2d6812(0x9c)](_0x36868c)));return;}let _0x20323a=yield o(this,Q,Ue)['call'](this,_0x37c9f5);(_0x5d4bb8=_0x20323a==null?void 0x0:_0x20323a[_0x2d6812(0x10e)])==null||_0x5d4bb8[_0x2d6812(0xc7)](_0x55f371=>{const _0x4b189f=_0x2d6812;o(this,Ie,dt)[_0x4b189f(0xff)](this,_0x55f371[_0x4b189f(0xfe)][_0x4b189f(0x97)])&&(o(this,he,Et)[_0x4b189f(0xff)](this,_0x55f371),u(this,oe)[_0x4b189f(0xff)](this),o(this,K,Oe)['call'](this,_0x55f371[_0x4b189f(0x103)]));});}));});},F=new WeakSet(),Pe=function(){return a(this,null,function*(){const _0x329d51=_0x47b9;try{yield S[_0x329d51(0xa9)](_0x329d51(0xb9));}catch(_0x39cf27){l[_0x329d51(0xb8)]=!0x0,l[_0x329d51(0x118)]&&console['error'](_0x39cf27['message']);}});},$=new WeakSet(),Ae=function(){return a(this,null,function*(){const _0x521ecc=_0x47b9;let _0x31e3cc=window[_0x521ecc(0xce)][_0x521ecc(0xf2)]+window[_0x521ecc(0xce)][_0x521ecc(0xdc)];yield this[_0x521ecc(0xa0)]('Viewed\x20Web\x20Page',[{'eventProperty':'URL','value':_0x31e3cc}]),_0x31e3cc!==u(this,B)&&(E(this,B,_0x31e3cc),new URLSearchParams(new URL(window[_0x521ecc(0xce)][_0x521ecc(0x109)])[_0x521ecc(0xc6)])[_0x521ecc(0xc7)]((_0x2aa753,_0x5f53c1)=>a(this,null,function*(){const _0x3793d3=_0x521ecc;yield this['recordEvent'](_0x3793d3(0xf1),[{'eventProperty':_0x3793d3(0x116),'value':_0x5f53c1+':'+_0x2aa753}]);})));});},ee=new WeakSet(),Xe=function(_0x8045da){const _0x48c393=_0x19d8fe;S[_0x48c393(0xdf)](_0x8045da);},te=new WeakSet(),Ze=function(){const _0x31ca83=_0x19d8fe;return!localStorage[_0x31ca83(0x9f)]('events')||!localStorage[_0x31ca83(0x9f)](_0x31ca83(0xbe))||!localStorage[_0x31ca83(0x9f)](_0x31ca83(0x112))||!localStorage[_0x31ca83(0x9f)](_0x31ca83(0x101))||!localStorage[_0x31ca83(0x9f)](_0x31ca83(0x130))||!u(this,I);},re=new WeakSet(),et=function(){return a(this,null,function*(){const _0x33d0a8=_0x47b9;yield o(this,se,rt)[_0x33d0a8(0xff)](this),yield o(this,k,Le)[_0x33d0a8(0xff)](this),yield o(this,A,X)[_0x33d0a8(0xff)](this);});},oe=new WeakMap(),J=new WeakMap(),ne=new WeakMap(),ie=new WeakSet(),tt=function(){const _0xa9f650=_0x19d8fe;let _0x51899a=localStorage[_0xa9f650(0x9f)]('uniqueIdentity');return _0x51899a||(_0x51899a=(0x0,W['v4'])(),localStorage['setItem'](_0xa9f650(0x101),_0x51899a)),_0x51899a;},se=new WeakSet(),rt=function(){return a(this,null,function*(){const _0x128a26=_0x47b9;if(!localStorage[_0x128a26(0x9f)](_0x128a26(0xe5))){let _0x2044a3=(yield o(this,ae,ot)['call'](this))[_0x128a26(0x10e)];_0x2044a3&&(E(this,_,_0x2044a3),localStorage[_0x128a26(0xd4)](_0x128a26(0xe5),JSON[_0x128a26(0x9c)](u(this,_))));}});},ae=new WeakSet(),ot=function(){return a(this,null,function*(){const _0x2aea3=_0x47b9;try{return(yield S['get'](''+Te))[_0x2aea3(0x10e)];}catch(_0x237ba8){throw new Error(_0x2aea3(0xea));}});},k=new WeakSet(),Le=function(){return a(this,null,function*(){const _0x2003e3=_0x47b9;if(!localStorage[_0x2003e3(0x9f)](_0x2003e3(0x112))){let _0x32dc59=(yield o(this,ce,nt)[_0x2003e3(0xff)](this))[_0x2003e3(0x10e)];_0x32dc59&&(E(this,V,_0x32dc59),localStorage['setItem'](_0x2003e3(0x112),JSON[_0x2003e3(0x9c)](u(this,V))));}});},ce=new WeakSet(),nt=function(){return a(this,null,function*(){const _0x26a565=_0x47b9;try{return(yield S[_0x26a565(0xa9)](''+fe))[_0x26a565(0x10e)];}catch(_0x570319){throw new Error('Error\x20fetching\x20attribute\x20data');}});},A=new WeakSet(),X=function(_0x4e0c73){return a(this,null,function*(){const _0x37b4c7=_0x47b9;localStorage[_0x37b4c7(0x9f)](_0x37b4c7(0x130))||localStorage[_0x37b4c7(0xd4)](_0x37b4c7(0x130),(0x0,W['v4'])());let _0x5a60a7=localStorage[_0x37b4c7(0x9f)]('customer');if(!_0x4e0c73&&_0x5a60a7){E(this,I,_0x5a60a7);return;}let _0x49a1b7={'deviceId':localStorage[_0x37b4c7(0x9f)](_0x37b4c7(0x101))||(0x0,W['v4'])(),'os':u(this,M)};_0x4e0c73&&(_0x49a1b7[_0x37b4c7(0xcb)]=_0x4e0c73);try{let _0x409b69=(yield o(this,le,it)[_0x37b4c7(0xff)](this,_0x49a1b7))[_0x37b4c7(0x10e)];_0x409b69!==void 0x0&&(E(this,I,_0x409b69),localStorage[_0x37b4c7(0xd4)]('customer',u(this,I)));}catch(_0xe3f87){throw new Error(_0x37b4c7(0xa4));}});},le=new WeakSet(),it=function(_0x1f02ed){return a(this,null,function*(){const _0x1bd731=_0x47b9;try{return(yield S[_0x1bd731(0xbc)](''+je+qe,_0x1f02ed))[_0x1bd731(0x10e)];}catch(_0x2b7502){throw new Error(_0x1bd731(0xc5));}});},K=new WeakSet(),Oe=function(_0x5b721c){const _0x45879b=_0x19d8fe;let _0x99c814=o(this,ue,st)[_0x45879b(0xff)](this);if(_0x99c814!=null&&_0x99c814[_0x5b721c])switch(_0x99c814[_0x5b721c][_0x45879b(0x129)]){case _0x45879b(0xbb):{o(this,ge,ct)[_0x45879b(0xff)](this,_0x99c814[_0x5b721c]);break;}case _0x45879b(0xe3):{o(this,L,Z)[_0x45879b(0xff)](this,_0x99c814[_0x5b721c]);break;}case'SCROLL':{o(this,pe,at)[_0x45879b(0xff)](this,_0x99c814[_0x5b721c]);break;}default:return;}},ue=new WeakSet(),st=function(){const _0x1f48e9=_0x19d8fe;let _0x4c284c=localStorage[_0x1f48e9(0x9f)](_0x1f48e9(0x131));return _0x4c284c?JSON[_0x1f48e9(0xb7)](_0x4c284c):null;},pe=new WeakSet(),at=function(_0x2b7abd){const _0x2db24d=_0x19d8fe;window[_0x2db24d(0x132)](_0x2db24d(0x124),()=>{const _0x5af92c=_0x2db24d;var _0xb2ab0e;let _0x2689e6=window[_0x5af92c(0xac)],_0x2805f9=document['documentElement']['scrollHeight'];window[_0x5af92c(0x126)]/(_0x2805f9-_0x2689e6)*0x64>(((_0xb2ab0e=_0x2b7abd[_0x5af92c(0xf7)])==null?void 0x0:_0xb2ab0e['value'])||0x0)&&o(this,L,Z)[_0x5af92c(0xff)](this,_0x2b7abd);});},ge=new WeakSet(),ct=function(_0xb9b57d){const _0x29ba70=_0x19d8fe;var _0x510dab;let _0x2dc1fe=_0xb9b57d[_0x29ba70(0xd9)]-0x1f4+(((_0x510dab=_0xb9b57d[_0x29ba70(0xf7)])==null?void 0x0:_0x510dab['value'])||0x0)*0x3e8-new Date()[_0x29ba70(0x99)]();_0x2dc1fe>0x0&&_0xb9b57d[_0x29ba70(0xe4)]===window[_0x29ba70(0xce)][_0x29ba70(0xf2)]+window[_0x29ba70(0xce)][_0x29ba70(0xdc)]&&setTimeout(()=>{const _0x2f2125=_0x29ba70;u(this,J)['call'](this,_0xb9b57d[_0x2f2125(0x103)]),o(this,L,Z)[_0x2f2125(0xff)](this,_0xb9b57d);},_0x2dc1fe);},L=new WeakSet(),Z=function(_0x36fabd){const _0x21b659=_0x19d8fe;let _0xa17d53=o(this,de,lt)[_0x21b659(0xff)](this,_0x21b659(0xb3),_0x36fabd);document['body'][_0x21b659(0x105)](_0xa17d53),o(this,y,w)['call'](this,Je,[{'eventProperty':_0x21b659(0x115),'value':_0x36fabd[_0x21b659(0x103)]}],_0x36fabd['campaignCustomerInstanceId'],_0x21b659(0x93)),u(this,J)[_0x21b659(0xff)](this,_0x36fabd[_0x21b659(0x103)]);},de=new WeakSet(),lt=function(_0x12ad75,_0x3c7057){const _0xf33568=_0x19d8fe;var _0x99af87;let {campaignCustomerInstanceId:_0x11cccf,campaignId:_0x52fbee,message:{design:_0x5ef774}}=_0x3c7057,_0x42c3d0=document[_0xf33568(0xd2)](_0x12ad75);return _0x42c3d0['id']=_0xf33568(0x9d)+_0x52fbee,_0x42c3d0['innerHTML']=_0x5ef774,_0x42c3d0[_0xf33568(0xef)](_0xf33568(0x10d))[_0xf33568(0xc7)]((_0x39516f,_0x37c2a2)=>{const _0x3c2b4e=_0xf33568;let _0x1b5d12=_0x39516f[_0x3c2b4e(0xa3)]('form');_0x1b5d12&&_0x1b5d12[_0x3c2b4e(0x132)](_0x3c2b4e(0x119),_0x2bbb6a=>a(this,null,function*(){const _0x2dd967=_0x3c2b4e;_0x2bbb6a[_0x2dd967(0xf6)]();let _0x2d72d0=new FormData(_0x1b5d12),_0x224275={};for(let [_0x5754ff,_0x5c587f]of _0x2d72d0[_0x2dd967(0xab)]())_0x224275[_0x5754ff]=_0x5c587f;yield o(this,y,w)[_0x2dd967(0xff)](this,U,[{'eventProperty':'Form\x20Submit','value':JSON[_0x2dd967(0x9c)]({'campaignId':_0x52fbee,'formId':_0x39516f['id'],'formValues':_0x224275})}],_0x11cccf,_0x2dd967(0x110));}));}),(_0x99af87=_0x42c3d0['querySelector'](_0xf33568(0xe6)))==null||_0x99af87[_0xf33568(0x132)](_0xf33568(0xf0),()=>a(this,null,function*(){const _0x45c566=_0xf33568;_0x42c3d0[_0x45c566(0xda)](),yield o(this,y,w)[_0x45c566(0xff)](this,U,[{'eventProperty':_0x45c566(0xca),'value':JSON[_0x45c566(0x9c)]({'campaignId':_0x52fbee})}],_0x11cccf,_0x45c566(0xc3));})),_0x42c3d0['querySelectorAll'](_0xf33568(0x102))[_0xf33568(0xc7)](_0x357a31=>{const _0x10a6d7=_0xf33568;_0x357a31[_0x10a6d7(0x132)](_0x10a6d7(0xf0),()=>a(this,null,function*(){const _0x58b583=_0x10a6d7;yield o(this,y,w)['call'](this,U,[{'eventProperty':_0x58b583(0xd3),'value':JSON[_0x58b583(0x9c)]({'buttonId':_0x357a31['id'],'campaignId':_0x52fbee})}],_0x11cccf,_0x58b583(0xf0));}));}),_0x42c3d0[_0xf33568(0xef)](_0xf33568(0x10f))[_0xf33568(0xc7)](_0xe4ccde=>{const _0x560fa3=_0xf33568;_0xe4ccde[_0x560fa3(0x132)](_0x560fa3(0xf0),()=>a(this,null,function*(){const _0x1c7e7d=_0x560fa3;yield o(this,y,w)[_0x1c7e7d(0xff)](this,U,[{'eventProperty':'Image\x20Click','value':JSON[_0x1c7e7d(0x9c)]({'campaignId':_0x52fbee,'imageClassName':_0xe4ccde[_0x1c7e7d(0x111)],'imageId':_0xe4ccde['id']})}],_0x11cccf,'click');}));}),_0x42c3d0;},Ee=new WeakSet(),ut=function(){const _0x1409cf=_0x19d8fe;let _0x54d69d=localStorage[_0x1409cf(0x9f)](_0x1409cf(0xe5));return _0x54d69d?JSON[_0x1409cf(0xb7)](_0x54d69d):{};},me=new WeakSet(),pt=function(_0x4ca91b,_0x927d90,_0x4239fd){const _0x20c3c7=_0x19d8fe;if(!_0x4ca91b['hasOwnProperty'](_0x927d90))return _0x20c3c7(0x10a)+_0x927d90+_0x20c3c7(0xe8);if(!_0x4239fd)return[];let _0x33a383=_0x4ca91b[_0x927d90];if(!(_0x33a383!=null&&_0x33a383[_0x20c3c7(0xb4)]))return _0x20c3c7(0x10a)+_0x927d90+_0x20c3c7(0x11e);let _0x16cf67=_0x4239fd[_0x20c3c7(0xeb)](({eventProperty:_0xf5b168})=>!_0x33a383[_0x20c3c7(0xb4)][_0x20c3c7(0x106)](_0xf5b168))['map'](({eventProperty:_0x4c89a0})=>_0x4c89a0);return _0x16cf67[_0x20c3c7(0x122)]>0x0?_0x20c3c7(0x10a)+_0x927d90+'\x20has\x20invalid\x20eventProperties:\x20'+_0x16cf67[_0x20c3c7(0xb0)](',\x20')+'.':_0x4239fd['map'](({eventProperty:_0x5e5c78,value:_0x3e18d2})=>({'eventPropertyId':_0x33a383[_0x20c3c7(0xb4)][_0x5e5c78]['id'],'value':_0x3e18d2}));},ve=new WeakSet(),gt=function(_0x430f29){return{'customerId':u(this,I),'events':[_0x430f29]};},Q=new WeakSet(),Ue=function(_0x11400b){return a(this,null,function*(){const _0x4b363b=_0x47b9;try{return(yield S[_0x4b363b(0xbc)](''+Te+Qe,_0x11400b))[_0x4b363b(0x10e)];}catch(_0x1358f3){throw new Error('Error\x20posting\x20event\x20record');}});},Ie=new WeakSet(),dt=function(_0x1b847d){const _0x402e81=_0x19d8fe;return _0x1b847d===_0x402e81(0x12d);},he=new WeakSet(),Et=function(_0x35ccd1){const _0x288c3a=_0x19d8fe;let _0x30d1eb=JSON[_0x288c3a(0xb7)](localStorage[_0x288c3a(0x9f)](_0x288c3a(0x131))||'{}');_0x30d1eb[_0x35ccd1[_0x288c3a(0x103)]]=Se(Y({},_0x35ccd1),{'initialTime':new Date()[_0x288c3a(0x99)](),'page':window[_0x288c3a(0xce)]['hostname']+window[_0x288c3a(0xce)][_0x288c3a(0xdc)]}),localStorage[_0x288c3a(0xd4)](_0x288c3a(0x131),JSON['stringify'](_0x30d1eb));},j=new WeakSet(),Ne=function(){const _0x264cf9=_0x19d8fe;localStorage['removeItem']('action'),localStorage[_0x264cf9(0xc1)](_0x264cf9(0xe5)),localStorage[_0x264cf9(0xc1)](_0x264cf9(0x112)),localStorage[_0x264cf9(0xc1)]('offlineEvents'),localStorage[_0x264cf9(0xc1)](_0x264cf9(0xad)),localStorage[_0x264cf9(0xc1)]('session');},q=new WeakSet(),xe=function(){return a(this,null,function*(){const _0x3b429e=_0x47b9;localStorage[_0x3b429e(0x9f)](_0x3b429e(0x112))||(yield o(this,k,Le)[_0x3b429e(0xff)](this));});},z=new WeakSet(),Ce=function(_0x10b994){return a(this,null,function*(){const _0xc17935=_0x47b9;try{return yield S[_0xc17935(0xbc)](''+fe+Ke,_0x10b994);}catch(_0x497399){throw new Error(_0xc17935(0xb6));}});},i(b,P,void 0x0);var Re=b,mt=Re[_0x19d8fe(0x12c)](),Ot=mt;
1
+ 'use strict';const _0x2eb2c8=_0x2bf9;(function(_0xa77842,_0x26d6cf){const _0x2b62da=_0x2bf9,_0x425d42=_0xa77842();while(!![]){try{const _0xe68351=parseInt(_0x2b62da(0xbe))/0x1*(parseInt(_0x2b62da(0xd8))/0x2)+parseInt(_0x2b62da(0x123))/0x3+-parseInt(_0x2b62da(0x114))/0x4*(-parseInt(_0x2b62da(0xd1))/0x5)+parseInt(_0x2b62da(0xf3))/0x6*(parseInt(_0x2b62da(0xad))/0x7)+-parseInt(_0x2b62da(0x10f))/0x8+-parseInt(_0x2b62da(0xe2))/0x9*(-parseInt(_0x2b62da(0xb3))/0xa)+-parseInt(_0x2b62da(0x113))/0xb;if(_0xe68351===_0x26d6cf)break;else _0x425d42['push'](_0x425d42['shift']());}catch(_0x3c6ba2){_0x425d42['push'](_0x425d42['shift']());}}}(_0xedda,0x807a6));var Ut=Object[_0x2eb2c8(0xa0)],N=Object[_0x2eb2c8(0x10a)],Nt=Object[_0x2eb2c8(0x10e)],Ct=Object[_0x2eb2c8(0xd6)],xt=Object['getOwnPropertyDescriptors'],Dt=Object['getOwnPropertyNames'],We=Object['getOwnPropertySymbols'],_t=Object[_0x2eb2c8(0xa9)],je=Object[_0x2eb2c8(0xb7)]['hasOwnProperty'],Mt=Object[_0x2eb2c8(0xb7)][_0x2eb2c8(0xdd)],Ke=(_0x2a7816,_0x568b10,_0x200f1f)=>_0x568b10 in _0x2a7816?N(_0x2a7816,_0x568b10,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x200f1f}):_0x2a7816[_0x568b10]=_0x200f1f,Z=(_0x1a05a2,_0x4a5eea)=>{const _0x2c04dc=_0x2eb2c8;for(var _0x1d60d0 in _0x4a5eea||(_0x4a5eea={}))je['call'](_0x4a5eea,_0x1d60d0)&&Ke(_0x1a05a2,_0x1d60d0,_0x4a5eea[_0x1d60d0]);if(We){for(var _0x1d60d0 of We(_0x4a5eea))Mt[_0x2c04dc(0xb6)](_0x4a5eea,_0x1d60d0)&&Ke(_0x1a05a2,_0x1d60d0,_0x4a5eea[_0x1d60d0]);}return _0x1a05a2;},Re=(_0x30d88b,_0x52f383)=>Nt(_0x30d88b,xt(_0x52f383)),Bt=(_0x399f9d,_0x1f2a44)=>{for(var _0xcbf623 in _0x1f2a44)N(_0x399f9d,_0xcbf623,{'get':_0x1f2a44[_0xcbf623],'enumerable':!0x0});},Qe=(_0xf89e47,_0x40a9cd,_0x592faa,_0x393bed)=>{const _0x571fb1=_0x2eb2c8;if(_0x40a9cd&&typeof _0x40a9cd==_0x571fb1(0x6c)||typeof _0x40a9cd==_0x571fb1(0xeb)){for(let _0x547ec8 of Dt(_0x40a9cd))!je[_0x571fb1(0xb6)](_0xf89e47,_0x547ec8)&&_0x547ec8!==_0x592faa&&N(_0xf89e47,_0x547ec8,{'get':()=>_0x40a9cd[_0x547ec8],'enumerable':!(_0x393bed=Ct(_0x40a9cd,_0x547ec8))||_0x393bed['enumerable']});}return _0xf89e47;},qe=(_0x253029,_0x515742,_0x424388)=>(_0x424388=_0x253029!=null?Ut(_t(_0x253029)):{},Qe(_0x515742||!_0x253029||!_0x253029[_0x2eb2c8(0x8f)]?N(_0x424388,'default',{'value':_0x253029,'enumerable':!0x0}):_0x424388,_0x253029)),Vt=_0x36f00d=>Qe(N({},_0x2eb2c8(0x8f),{'value':!0x0}),_0x36f00d),Ae=(_0x2da4e7,_0x48a504,_0x3a30dd)=>{const _0x55ecd7=_0x2eb2c8;if(!_0x48a504[_0x55ecd7(0xe8)](_0x2da4e7))throw TypeError('Cannot\x20'+_0x3a30dd);},u=(_0x52ad22,_0x19d707,_0x5a4240)=>(Ae(_0x52ad22,_0x19d707,'read\x20from\x20private\x20field'),_0x5a4240?_0x5a4240[_0x2eb2c8(0xb6)](_0x52ad22):_0x19d707[_0x2eb2c8(0x10c)](_0x52ad22)),i=(_0x49db27,_0x42cbea,_0x3706bc)=>{const _0x17a875=_0x2eb2c8;if(_0x42cbea[_0x17a875(0xe8)](_0x49db27))throw TypeError(_0x17a875(0x6d));_0x42cbea instanceof WeakSet?_0x42cbea[_0x17a875(0x122)](_0x49db27):_0x42cbea['set'](_0x49db27,_0x3706bc);},d=(_0x54d427,_0x524cff,_0x175078,_0x3d5e35)=>(Ae(_0x54d427,_0x524cff,_0x2eb2c8(0xce)),_0x3d5e35?_0x3d5e35[_0x2eb2c8(0xb6)](_0x54d427,_0x175078):_0x524cff[_0x2eb2c8(0x116)](_0x54d427,_0x175078),_0x175078),ze=(_0x1abaae,_0x4bc618,_0x20908c,_0x251b07)=>({set '_'(_0xe6ad99){d(_0x1abaae,_0x4bc618,_0xe6ad99,_0x20908c);},get '_'(){return u(_0x1abaae,_0x4bc618,_0x251b07);}}),r=(_0x1c4720,_0x1ffdf9,_0x3f05ce)=>(Ae(_0x1c4720,_0x1ffdf9,_0x2eb2c8(0x10d)),_0x3f05ce),a=(_0x5f5dee,_0x121bde,_0x4af718)=>new Promise((_0x26ecd0,_0x2bbb33)=>{const _0x41551a=_0x2eb2c8;var _0x579822=_0x64a54=>{try{_0x8a11a7(_0x4af718['next'](_0x64a54));}catch(_0x26b586){_0x2bbb33(_0x26b586);}},_0x29bdef=_0x42e909=>{const _0x187f60=_0x2bf9;try{_0x8a11a7(_0x4af718[_0x187f60(0xa6)](_0x42e909));}catch(_0x21b993){_0x2bbb33(_0x21b993);}},_0x8a11a7=_0x2f70dd=>_0x2f70dd['done']?_0x26ecd0(_0x2f70dd[_0x41551a(0x8c)]):Promise[_0x41551a(0xb2)](_0x2f70dd[_0x41551a(0x8c)])[_0x41551a(0xaa)](_0x579822,_0x29bdef);_0x8a11a7((_0x4af718=_0x4af718[_0x41551a(0xbd)](_0x5f5dee,_0x121bde))[_0x41551a(0x118)]());}),kt={};Bt(kt,{'default':()=>$t}),module[_0x2eb2c8(0xe1)]=Vt(kt);function _0xedda(){const _0x5ef3d8=['submit','AxiosError:\x20','identity','create','Popup\x20Viewed','action','removeItem','test','userAgent','throw','join','addEventListener','getPrototypeOf','then','post','string','310128gNViYA','/set-identity','Mobile','filter','offlineEvents','resolve','10XNeQXj','events','User\x20Logout','call','prototype','/customer','campaignEntryTimeValue','hasOwnProperty','utm_source','updateAPIKey','apply','66571zvxffJ','defaults','logout','location','utm_medium','/record-attribute','\x20has\x20invalid\x20eventProperties:\x20','isArray','IMMEDIATELY','HTTP\x20Status:\x20','campaignCustomerInstanceId','Button\x20Click','Mergn\x20is\x20offline!','parse','SESSION_CREATED','log','write\x20to\x20private\x20field','utm_campaign','Error\x20posting\x20attribute\x20record','88845qCkehL','Event\x20','User\x20Login','request','Web\x20Session\x20Started','getOwnPropertyDescriptor','Error\x20setting\x20up\x20the\x20request:','8uLkvbE','createElement','\x0aNo\x20response\x20received.\x20Check\x20network\x20connection\x20or\x20server\x20issues.','session','popup_container_','propertyIsEnumerable','operating-system','beforeunload','message','exports','3447999nzzdEX','record\x20event','application/json','common','https://u23z4zsda8.execute-api.ap-southeast-1.amazonaws.com/Prod/sdk-management/api','UTM_MEDIUM','has','map','search','function','disableSDK','UTM_SOURCE','Internet\x20Explorer','indexOf','isInitialized','Close\x20Click','Mergn\x20SDK\x20is\x20disabled!','6OJvvVd','SESSION_ID','push','data','Max\x20retries\x20reached.\x20Disabling\x20SDK.','Customer\x20Id','getTime','name','/event','pushState','Error\x20posting\x20event\x20record','pathname','\x20does\x20not\x20have\x20a\x20valid\x20eventProperty.','page','forEach','login','recordAttribute','apiKey','online','os-version','Authorization','uniqueIdentity','href','defineProperty','MergnError','get','access\x20private\x20method','defineProperties','6772912fzUbZs','brand','Chrome','stringify','3223077gOrAGT','92LRtlyh','entries','set','attributes','next','values','OriginateFrom:\x20','toISOString','URL','campaignId','Error\x20fetching\x20event\x20data','eventProperty','click','Unexpected\x20error:','add','1690443iSohNP','onLine','keys','Mergn\x20not\x20initialized!','ttl','customer','object','Cannot\x20add\x20the\x20same\x20private\x20member\x20more\x20than\x20once','scrollY','offline','UTM_TERM','headers','getItem','.u-popup-container\x20img','querySelectorAll','error','initialTime','Unknown','SCROLL','MSIE','utm_term','innerHeight','showErrorLog','Error\x20setting\x20identity','default','response','\x20is\x20not\x20valid.','utm_content','Firefox','campaignEntryTime','/record-event','Response\x20Data:','remove','load','[id^=\x22u_content_button_\x22]','length','Web\x20Session\x20Concluded','Form\x20Submit','value','AxiosQueueManager','scrollHeight','__esModule','Error\x20fetching\x20attribute\x20data','body','setItem','Popup','hostname','MergnError:\x20','className','querySelector','updateAttribute','/attribute','preventDefault','Campaign\x20Id','init'];_0xedda=function(){return _0x5ef3d8;};return _0xedda();}var re=require('uuid'),Ge=(_0x2d000b=>(_0x2d000b[_0x2eb2c8(0xed)]=_0x2eb2c8(0xbb),_0x2d000b[_0x2eb2c8(0xe7)]=_0x2eb2c8(0xc2),_0x2d000b['UTM_CAMPAIGN']=_0x2eb2c8(0xcf),_0x2d000b[_0x2eb2c8(0x70)]=_0x2eb2c8(0x7a),_0x2d000b['UTM_CONTENT']=_0x2eb2c8(0x81),_0x2d000b))(Ge||{}),Ye=new Set(Object[_0x2eb2c8(0x119)](Ge)),C='Popup\x20Action',He=_0x2eb2c8(0xa1),Xe=_0x2eb2c8(0xe6),Le=_0x2eb2c8(0x99),Ze=_0x2eb2c8(0xc3),Ue=_0x2eb2c8(0xfb),et=_0x2eb2c8(0x84),tt=_0x2eb2c8(0xb8),rt=_0x2eb2c8(0xae),nt=qe(require('axios')),it=require('axios-queue-js'),st=qe(require('axios-retry')),ot=require('axios'),p=class extends Error{constructor(_0x1fce25){const _0x56f1a0=_0x2eb2c8;super(_0x1fce25),this['name']=_0x56f1a0(0x10b);}};function _0x2bf9(_0x520722,_0x10d659){const _0xeddaa3=_0xedda();return _0x2bf9=function(_0x2bf97a,_0x55f8bb){_0x2bf97a=_0x2bf97a-0x67;let _0x49b56b=_0xeddaa3[_0x2bf97a];return _0x49b56b;},_0x2bf9(_0x520722,_0x10d659);}p[_0x2eb2c8(0xec)]=!0x1,p[_0x2eb2c8(0x6f)]=!navigator[_0x2eb2c8(0x67)],p[_0x2eb2c8(0x7c)]=!0x1,p[_0x2eb2c8(0xf0)]=!0x1;var Ft=(_0x4b28f8,_0x3ba631)=>{const _0xd6aec4=_0x2eb2c8;_0x3ba631 instanceof p?console[_0xd6aec4(0x75)]('OriginateFrom:\x20'+_0x4b28f8,_0xd6aec4(0x95)+_0x3ba631[_0xd6aec4(0xe0)]):_0x3ba631 instanceof ot['AxiosError']?(console[_0xd6aec4(0x75)](_0xd6aec4(0x11a)+_0x4b28f8,_0xd6aec4(0x9e)+_0x3ba631[_0xd6aec4(0xe0)]),_0x3ba631[_0xd6aec4(0x7f)]?(console[_0xd6aec4(0x75)]('OriginateFrom:\x20'+_0x4b28f8,_0xd6aec4(0xc7)+_0x3ba631[_0xd6aec4(0x7f)]['status']),console[_0xd6aec4(0x75)]('OriginateFrom:\x20'+_0x4b28f8,_0xd6aec4(0x85),_0x3ba631[_0xd6aec4(0x7f)]['data'])):_0x3ba631[_0xd6aec4(0xd4)]?console[_0xd6aec4(0x75)](_0xd6aec4(0x11a)+_0x4b28f8+_0xd6aec4(0xda)):console['error']('OriginateFrom:\x20'+_0x4b28f8,_0xd6aec4(0xd7),_0x3ba631[_0xd6aec4(0xe0)])):_0x3ba631 instanceof Error?console['error'](_0xd6aec4(0x11a)+_0x4b28f8,_0xd6aec4(0x121),_0x3ba631[_0xd6aec4(0xe0)]):console[_0xd6aec4(0x75)]('OriginateFrom:\x20'+_0x4b28f8,_0xd6aec4(0x121),String(_0x3ba631));},T=(_0x164646,_0x2d40e8,_0x3b5c9d)=>a(void 0x0,null,function*(){const _0x1b5add=_0x2eb2c8;try{if(p[_0x1b5add(0xec)])throw new p(_0x1b5add(0xf2));if(_0x164646!==_0x1b5add(0xe3)&&p[_0x1b5add(0x6f)])throw new p(_0x1b5add(0xca));if(_0x164646!==_0x1b5add(0x9c)&&!p[_0x1b5add(0xf0)])throw new p(_0x1b5add(0x69));return yield _0x2d40e8();}catch(_0xa6930b){return _0x3b5c9d?_0x3b5c9d(_0xa6930b):p['showErrorLog']&&Ft(_0x164646,_0xa6930b),null;}}),w,x,D,_,ee,M,Ce,te,at,E=class E{constructor(){const _0x391242=_0x2eb2c8;i(this,ee,0x0);let _0xe0d595=nt[_0x391242(0x7e)]['create']({'baseURL':Xe,'headers':{'Content-Type':_0x391242(0xe4)}});d(E,x,_0xe0d595),d(E,D,new it[(_0x391242(0x8d))]({'client':_0xe0d595,'queueSize':0xa})),(0x0,st[_0x391242(0x7e)])(_0xe0d595,{'onRetry':_0x54d370=>{const _0x5453a1=_0x391242;_0x54d370>=u(E,_)?(p['showErrorLog']&&console[_0x5453a1(0xcd)](_0x5453a1(0xf7)),p[_0x5453a1(0xec)]=!0x0):ze(this,ee)['_']++;},'retries':u(E,_),'retryDelay':_0x29c2e6=>_0x29c2e6*0x1388});}static[_0x2eb2c8(0xbc)](_0x2e989f){const _0x4a840e=_0x2eb2c8;this[_0x4a840e(0x104)]=_0x2e989f,r(this,te,at)[_0x4a840e(0xb6)](this)[_0x4a840e(0xbf)][_0x4a840e(0x71)][_0x4a840e(0xe5)][_0x4a840e(0x107)]=_0x2e989f;}static[_0x2eb2c8(0x10c)](_0x11f511){const _0x26eab1=_0x2eb2c8;return r(this,M,Ce)[_0x26eab1(0xb6)](this)[_0x26eab1(0x10c)](_0x11f511);}static[_0x2eb2c8(0xab)](_0x49c9a8,_0x9245b9){const _0x2d4130=_0x2eb2c8;return r(this,M,Ce)['call'](this)[_0x2d4130(0xab)](_0x49c9a8,_0x9245b9||{});}};w=new WeakMap(),x=new WeakMap(),D=new WeakMap(),_=new WeakMap(),ee=new WeakMap(),M=new WeakSet(),Ce=function(){return u(E,w)||d(E,w,new E()),u(E,D);},te=new WeakSet(),at=function(){return u(E,w)||d(E,w,new E()),u(E,x);},i(E,M),i(E,te),i(E,w,void 0x0),i(E,x,void 0x0),i(E,D,void 0x0),i(E,_,0x2);var Ne=E,f=Ne,b,h,B,V,P,F,$,k,R,oe,v,I,se,ct,ae,lt,J,De,W,_e,ce,ut,le,pt,ue,gt,pe,K,ge,Ee,Et,de,dt,me,mt,j,Me,Se,St,A,ne,Q,Be,ve,vt,q,Ve,Ie,It,he,ht,ye,yt,L,ie,fe,ft,Te,Tt,we,wt,Oe,Ot,z,Fe,be,bt,Pe,Pt,G,$e,Y,ke,H,Je,O=class O{constructor(){i(this,R),i(this,v),i(this,se),i(this,ae),i(this,J),i(this,W),i(this,ce),i(this,le),i(this,ue),i(this,Ee),i(this,de),i(this,me),i(this,j),i(this,Se),i(this,A),i(this,Q),i(this,ve),i(this,q),i(this,Ie),i(this,he),i(this,ye),i(this,L),i(this,fe),i(this,Te),i(this,we),i(this,Oe),i(this,z),i(this,be),i(this,Pe),i(this,G),i(this,Y),i(this,H),i(this,h,''),i(this,B,void 0x0),i(this,V,void 0x0),i(this,P,void 0x0),i(this,F,void 0x0),i(this,$,void 0x0),i(this,k,null),i(this,pe,()=>{const _0x526b4a=_0x2bf9;let _0x2deca7=()=>{const _0xc039e3=_0x2bf9;let _0xc691b2=JSON[_0xc039e3(0xcb)](localStorage[_0xc039e3(0x72)]('action')||'{}');Object['keys'](_0xc691b2)['forEach'](_0x2b029e=>{const _0xd53fc6=_0xc039e3;_0xc691b2[_0x2b029e][_0xd53fc6(0x76)]=new Date()[_0xd53fc6(0xf9)](),_0xc691b2[_0x2b029e][_0xd53fc6(0x100)]=window['location']['hostname']+window[_0xd53fc6(0xc1)]['pathname'];}),localStorage['setItem'](_0xc039e3(0xa2),JSON[_0xc039e3(0x112)](_0xc691b2));};_0x2deca7(),window['addEventListener'](_0x526b4a(0xdf),_0x2deca7);}),i(this,K,_0x5f0ac4=>{const _0x108620=_0x2bf9;let _0x2dc4a0=JSON['parse'](localStorage[_0x108620(0x72)]('action')||'{}');_0x2dc4a0[_0x5f0ac4]&&delete _0x2dc4a0[_0x5f0ac4],localStorage['setItem'](_0x108620(0xa2),JSON[_0x108620(0x112)](_0x2dc4a0));}),i(this,ge,()=>{const _0x526af6=_0x2bf9;let _0x1c6881=JSON['parse'](localStorage[_0x526af6(0x72)](_0x526af6(0xa2))||'{}');Object[_0x526af6(0x68)](_0x1c6881)[_0x526af6(0x101)](_0x80318c=>{const _0x3964ba=_0x526af6;_0x1c6881[_0x80318c][_0x3964ba(0xe0)][_0x3964ba(0xfa)]===_0x3964ba(0x93)&&r(this,q,Ve)['call'](this,_0x1c6881[_0x80318c][_0x3964ba(0x11d)]);});});}static['getInstance'](){return u(O,b)||d(O,b,new O()),u(O,b);}[_0x2eb2c8(0x9c)](_0x9fd61a){const _0x2fab8=_0x2eb2c8;T(_0x2fab8(0x9c),()=>a(this,null,function*(){const _0x2cfd1b=_0x2fab8;r(this,ce,ut)[_0x2cfd1b(0xb6)](this,_0x9fd61a),yield r(this,J,De)[_0x2cfd1b(0xb6)](this),p[_0x2cfd1b(0xf0)]=!0x0,setInterval(()=>a(this,null,function*(){const _0xb479cb=_0x2cfd1b;yield r(this,J,De)[_0xb479cb(0xb6)](this);}),0x493e0),yield r(this,R,oe)[_0x2cfd1b(0xb6)](this),window[_0x2cfd1b(0xa8)](_0x2cfd1b(0x105),()=>a(this,null,function*(){const _0x53725a=_0x2cfd1b;p['offline']=!0x1;let _0x437cd2=JSON[_0x53725a(0xcb)](localStorage['getItem'](_0x53725a(0xb1))||'[]');Array[_0x53725a(0xc5)](_0x437cd2)&&(yield r(this,z,Fe)[_0x53725a(0xb6)](this,{'customerId':u(this,h),'events':_0x437cd2}),localStorage[_0x53725a(0xa3)](_0x53725a(0xb1))),r(this,R,oe)['call'](this),r(this,Q,Be)['call'](this);})),window[_0x2cfd1b(0xa8)]('offline',()=>{const _0x1f6cde=_0x2cfd1b;p[_0x1f6cde(0x6f)]=!0x0;}),window[_0x2cfd1b(0xa8)](_0x2cfd1b(0x87),()=>{const _0x3cef0b=_0x2cfd1b;u(this,ge)[_0x3cef0b(0xb6)](this);});let _0x18ac9a=history[_0x2cfd1b(0xfc)];history['pushState']=(..._0x417811)=>{const _0x51d696=_0x2cfd1b;_0x18ac9a[_0x51d696(0xbd)](history,_0x417811),r(this,W,_e)[_0x51d696(0xb6)](this);},r(this,W,_e)[_0x2cfd1b(0xb6)](this);}));}[_0x2eb2c8(0x7c)](_0x46dbd5=!0x1){const _0x1120ef=_0x2eb2c8;p[_0x1120ef(0x7c)]=_0x46dbd5;}['recordAttribute'](_0x47dc2){return a(this,null,function*(){const _0x10b67f=_0x2bf9;yield T(_0x10b67f(0x103),()=>a(this,null,function*(){const _0x59f7b1=_0x10b67f;yield r(this,Y,ke)[_0x59f7b1(0xb6)](this);let _0x473b95=JSON['parse'](localStorage[_0x59f7b1(0x72)](_0x59f7b1(0x117))||'[]');if(_0x473b95&&Object['keys'](_0x473b95)[_0x59f7b1(0x89)]>0x0){let _0x44004f=[];_0x47dc2&&Object[_0x59f7b1(0x68)](_0x47dc2)[_0x59f7b1(0x89)]>0x0&&Object[_0x59f7b1(0x68)](_0x47dc2)[_0x59f7b1(0x101)](_0x1bf6d2=>{const _0x2bc6f4=_0x59f7b1;_0x473b95[_0x2bc6f4(0xba)](_0x1bf6d2)&&_0x44004f[_0x2bc6f4(0xf5)]({'attributeId':_0x473b95[_0x1bf6d2]['id'],'attributeProperties':[],'value':_0x47dc2[_0x1bf6d2]});});let _0x38cf1b=[{'attributes':_0x44004f,'customerId':u(this,h)}];yield r(this,H,Je)[_0x59f7b1(0xb6)](this,_0x38cf1b);}}));});}['login'](_0x34c07c){return a(this,null,function*(){const _0x23798a=_0x2bf9;yield T(_0x23798a(0x102),()=>a(this,null,function*(){const _0x28ae99=_0x23798a;yield r(this,A,ne)['call'](this,_0x34c07c),yield r(this,v,I)[_0x28ae99(0xb6)](this,_0x28ae99(0xd3),[{'eventProperty':_0x28ae99(0xf8),'value':localStorage['getItem']('customer')||0x0}]);}));});}[_0x2eb2c8(0x98)](_0xaa0cf7,_0x58adb6,_0xf2fc8d){return a(this,null,function*(){const _0x33fca8=_0x2bf9;yield r(this,Y,ke)[_0x33fca8(0xb6)](this);let _0x531992=JSON[_0x33fca8(0xcb)](localStorage[_0x33fca8(0x72)](_0x33fca8(0x117))||'{}');if(_0x531992&&Object[_0x33fca8(0x68)](_0x531992)[_0x33fca8(0x89)]>0x0&&_0x531992[_0x33fca8(0xba)](_0xaa0cf7)){let _0x21eab5=_0x531992[_0xaa0cf7],_0x2556b1=_0x21eab5['attributeProperty'],_0x3c5199=[];_0xf2fc8d&&Object[_0x33fca8(0x68)](_0xf2fc8d)[_0x33fca8(0x89)]>0x0&&Object[_0x33fca8(0x68)](_0xf2fc8d)[_0x33fca8(0x101)](_0x26cf62=>{const _0x105caf=_0x33fca8;_0x2556b1['hasOwnProperty'](_0x26cf62)&&_0x3c5199[_0x105caf(0xf5)]({'attributePropertyId':_0x2556b1[_0x26cf62]['id'],'value':_0xf2fc8d[_0x26cf62]});});let _0x47bc6a=[{'attributes':[{'attributeId':_0x21eab5['id'],'attributeProperties':_0x3c5199,'value':_0x58adb6}],'customerId':u(this,h)}];yield r(this,H,Je)[_0x33fca8(0xb6)](this,_0x47bc6a);}});}['logout'](){return a(this,null,function*(){const _0x3065c5=_0x2bf9;yield T(_0x3065c5(0xc0),()=>a(this,null,function*(){const _0x3ddcb6=_0x3065c5;r(this,G,$e)['call'](this),r(this,v,I)[_0x3ddcb6(0xb6)](this,_0x3ddcb6(0xb5),[{'eventProperty':'Customer\x20Id','value':localStorage['getItem'](_0x3ddcb6(0x6b))||0x0}]);}));});}['recordEvent'](_0x139405,_0x7b7bde){T('record\x20event',()=>a(this,null,function*(){const _0x45bb63=_0x2bf9;yield r(this,v,I)[_0x45bb63(0xb6)](this,_0x139405,_0x7b7bde);}));}};b=new WeakMap(),h=new WeakMap(),B=new WeakMap(),V=new WeakMap(),P=new WeakMap(),F=new WeakMap(),$=new WeakMap(),k=new WeakMap(),R=new WeakSet(),oe=function(){return a(this,null,function*(){const _0x150e16=_0x2bf9;let _0x1c76cc=localStorage[_0x150e16(0x72)](_0x150e16(0x6a)),_0x3a012e=!0x1;if(_0x1c76cc){if(_0x3a012e=new Date()[_0x150e16(0xf9)]()-parseInt(_0x1c76cc,0xa)>0x124f80,_0x3a012e){let _0x173f5f=localStorage[_0x150e16(0x72)](_0x150e16(0xdb)),_0x39211d=localStorage[_0x150e16(0x72)](_0x150e16(0x6a));_0x173f5f&&_0x39211d&&r(this,v,I)[_0x150e16(0xb6)](this,_0x150e16(0x8a),[{'eventProperty':_0x150e16(0xf4),'value':localStorage[_0x150e16(0x72)](_0x150e16(0xdb))},{'eventProperty':'SESSION_CREATED','value':new Date(parseInt(_0x39211d,0xa))[_0x150e16(0x11b)]()}]),r(this,G,$e)[_0x150e16(0xb6)](this),localStorage[_0x150e16(0x92)](_0x150e16(0x6a),''+new Date()[_0x150e16(0xf9)]());}}else localStorage['setItem'](_0x150e16(0x6a),''+new Date()[_0x150e16(0xf9)]());(!_0x1c76cc||_0x3a012e||r(this,le,pt)['call'](this))&&(r(this,Ee,Et)[_0x150e16(0xb6)](this),yield r(this,A,ne)['call'](this),yield r(this,ue,gt)[_0x150e16(0xb6)](this));});},v=new WeakSet(),I=function(_0x47a343,_0x1a836d,_0x205310,_0x138ca6){return a(this,null,function*(){yield T('record\x20event',()=>a(this,null,function*(){const _0x51dda4=_0x2bf9;var _0x29f52e;_0x47a343!=='Web\x20Session\x20Concluded'&&(yield r(this,R,oe)['call'](this));let _0xf3bb50=[];_0x1a836d&&_0xf3bb50['push'](..._0x1a836d),_0xf3bb50[_0x51dda4(0xf5)]({'eventProperty':'Platform','value':u(this,P)}),_0xf3bb50[_0x51dda4(0xf5)]({'eventProperty':_0x51dda4(0xde),'value':u(this,$)}),_0xf3bb50[_0x51dda4(0xf5)]({'eventProperty':_0x51dda4(0x106),'value':u(this,F)});let _0x3d8a05=r(this,Te,Tt)['call'](this),_0x6d2694=r(this,we,wt)[_0x51dda4(0xb6)](this,_0x3d8a05,_0x47a343,_0xf3bb50);if(typeof _0x6d2694==_0x51dda4(0xac)){p[_0x51dda4(0x7c)]&&console['error'](_0x6d2694);return;}r(this,Q,Be)[_0x51dda4(0xb6)](this);let {id:_0x109263}=_0x3d8a05[_0x47a343],_0x381fab=r(this,Oe,Ot)[_0x51dda4(0xb6)](this,Z(Re(Z({},_0x205310?{'campaignCustomerInstanceId':_0x205310}:{}),{'eventId':_0x109263,'eventProperties':_0x6d2694,'sessionId':localStorage['getItem'](_0x51dda4(0xdb))||''}),_0x138ca6?{'name':_0x138ca6}:{}));if(p[_0x51dda4(0x6f)]){let _0x170c6c=JSON[_0x51dda4(0xcb)](localStorage[_0x51dda4(0x72)](_0x51dda4(0xb1))||'[]');_0x170c6c['length']<=0x32&&(_0x170c6c[_0x51dda4(0xf5)](..._0x381fab[_0x51dda4(0xb4)]),localStorage[_0x51dda4(0x92)](_0x51dda4(0xb1),JSON[_0x51dda4(0x112)](_0x170c6c)));return;}let _0x4a8b92=yield r(this,z,Fe)[_0x51dda4(0xb6)](this,_0x381fab);(_0x29f52e=_0x4a8b92==null?void 0x0:_0x4a8b92[_0x51dda4(0xf6)])==null||_0x29f52e[_0x51dda4(0x101)](_0x3fe536=>{const _0xd9e74b=_0x51dda4;r(this,be,bt)[_0xd9e74b(0xb6)](this,_0x3fe536[_0xd9e74b(0xe0)][_0xd9e74b(0xfa)])&&(r(this,Pe,Pt)[_0xd9e74b(0xb6)](this,_0x3fe536),u(this,pe)[_0xd9e74b(0xb6)](this),r(this,q,Ve)[_0xd9e74b(0xb6)](this,_0x3fe536[_0xd9e74b(0x11d)]));});}));});},se=new WeakSet(),ct=function(){const _0xf643d0=_0x2eb2c8;let _0x4d492e=navigator[_0xf643d0(0xa5)]['toLowerCase']();return/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i['test'](_0x4d492e)?_0xf643d0(0xaf):/windows|macintosh|linux|x11/i[_0xf643d0(0xa4)](_0x4d492e)?'Web':_0xf643d0(0x77);},ae=new WeakSet(),lt=function(){const _0x1422c0=_0x2eb2c8;let _0x394937=navigator[_0x1422c0(0xa5)],_0x4fb719;return _0x394937['indexOf'](_0x1422c0(0x111))>-0x1?_0x4fb719='Google\x20Chrome':_0x394937['indexOf']('Safari')>-0x1?_0x4fb719='Safari':_0x394937[_0x1422c0(0xef)](_0x1422c0(0x82))>-0x1?_0x4fb719='Mozilla\x20Firefox':_0x394937[_0x1422c0(0xef)]('Edg')>-0x1?_0x4fb719='Microsoft\x20Edge':_0x394937[_0x1422c0(0xef)](_0x1422c0(0x79))>-0x1?_0x4fb719=_0x1422c0(0xee):_0x4fb719=_0x1422c0(0x77),_0x4fb719;},J=new WeakSet(),De=function(){return a(this,null,function*(){const _0x775a12=_0x2bf9;try{yield f[_0x775a12(0x10c)](_0x775a12(0x110));}catch(_0x38c577){throw p['disableSDK']=!0x0,_0x38c577[_0x775a12(0xe0)];}});},W=new WeakSet(),_e=function(){return a(this,null,function*(){const _0x379053=_0x2bf9;var _0x124364;let _0x25fe11=(_0x124364=window==null?void 0x0:window[_0x379053(0xc1)])==null?void 0x0:_0x124364[_0x379053(0x109)];if(_0x25fe11!==u(this,k)){d(this,k,_0x25fe11);let _0x57bdb8=[];new URLSearchParams(new URL(window[_0x379053(0xc1)][_0x379053(0x109)])[_0x379053(0xea)])[_0x379053(0x101)]((_0x36c17a,_0x252173)=>a(this,null,function*(){Ye['has'](_0x252173)&&_0x57bdb8['push']({'eventProperty':_0x252173,'value':_0x36c17a});})),yield r(this,v,I)[_0x379053(0xb6)](this,'Viewed\x20Webpage',[{'eventProperty':_0x379053(0x11c),'value':window['location'][_0x379053(0xfe)]},..._0x57bdb8]);}});},ce=new WeakSet(),ut=function(_0x55ceb3){const _0x346646=_0x2eb2c8;f['updateAPIKey'](_0x55ceb3),d(this,P,navigator[_0x346646(0xa5)]),d(this,F,r(this,ae,lt)['call'](this)),d(this,$,r(this,se,ct)[_0x346646(0xb6)](this));},le=new WeakSet(),pt=function(){const _0x452ee4=_0x2eb2c8;return!localStorage[_0x452ee4(0x72)](_0x452ee4(0xb4))||!localStorage[_0x452ee4(0x72)](_0x452ee4(0x6b))||!localStorage['getItem'](_0x452ee4(0x117))||!localStorage[_0x452ee4(0x72)](_0x452ee4(0x108))||!localStorage['getItem']('session')||!u(this,h);},ue=new WeakSet(),gt=function(){return a(this,null,function*(){const _0x5c4bc0=_0x2bf9;yield r(this,de,dt)[_0x5c4bc0(0xb6)](this),yield r(this,j,Me)[_0x5c4bc0(0xb6)](this),yield r(this,A,ne)['call'](this);});},pe=new WeakMap(),K=new WeakMap(),ge=new WeakMap(),Ee=new WeakSet(),Et=function(){const _0x11f354=_0x2eb2c8;let _0x437f3c=localStorage['getItem'](_0x11f354(0x108));return _0x437f3c||(_0x437f3c=(0x0,re['v4'])(),localStorage[_0x11f354(0x92)](_0x11f354(0x108),_0x437f3c)),_0x437f3c;},de=new WeakSet(),dt=function(){return a(this,null,function*(){const _0x315007=_0x2bf9;if(!localStorage['getItem'](_0x315007(0xb4))){let _0x226b67=(yield r(this,me,mt)[_0x315007(0xb6)](this))[_0x315007(0xf6)];_0x226b67&&(d(this,B,_0x226b67),localStorage[_0x315007(0x92)](_0x315007(0xb4),JSON[_0x315007(0x112)](u(this,B))));}});},me=new WeakSet(),mt=function(){return a(this,null,function*(){const _0x436ac6=_0x2bf9;try{return(yield f[_0x436ac6(0x10c)](''+Ue))[_0x436ac6(0xf6)];}catch(_0x457b89){throw new Error(_0x436ac6(0x11e));}});},j=new WeakSet(),Me=function(){return a(this,null,function*(){const _0x47f1a1=_0x2bf9;if(!localStorage['getItem']('attributes')){let _0x4ce708=(yield r(this,Se,St)['call'](this))[_0x47f1a1(0xf6)];_0x4ce708&&(d(this,V,_0x4ce708),localStorage[_0x47f1a1(0x92)](_0x47f1a1(0x117),JSON[_0x47f1a1(0x112)](u(this,V))));}});},Se=new WeakSet(),St=function(){return a(this,null,function*(){const _0x13c365=_0x2bf9;try{return(yield f['get'](''+Le))[_0x13c365(0xf6)];}catch(_0x3df953){throw new Error(_0x13c365(0x90));}});},A=new WeakSet(),ne=function(_0x589f55){return a(this,null,function*(){const _0x38babe=_0x2bf9;localStorage['getItem'](_0x38babe(0xdb))||(localStorage['setItem']('session',(0x0,re['v4'])()),yield r(this,v,I)['call'](this,_0x38babe(0xd5),[{'eventProperty':'SESSION_ID','value':localStorage['getItem'](_0x38babe(0xdb))},{'eventProperty':_0x38babe(0xcc),'value':new Date(parseInt(localStorage[_0x38babe(0x72)](_0x38babe(0x6a))||'',0xa))[_0x38babe(0x11b)]()}]));let _0xe62185=localStorage[_0x38babe(0x72)](_0x38babe(0x6b));if(!_0x589f55&&_0xe62185){d(this,h,_0xe62185);return;}let _0x19e3e3={'deviceId':localStorage[_0x38babe(0x72)]('uniqueIdentity')||(0x0,re['v4'])(),'os':u(this,P)};_0x589f55&&(_0x19e3e3[_0x38babe(0x9f)]=_0x589f55);try{let _0x1116fb=(yield r(this,ve,vt)[_0x38babe(0xb6)](this,_0x19e3e3))['data'];_0x1116fb!==void 0x0&&(d(this,h,_0x1116fb),localStorage['setItem'](_0x38babe(0x6b),u(this,h)));}catch(_0x21fd13){throw new Error(_0x38babe(0x7d));}});},Q=new WeakSet(),Be=function(){const _0x57d4bf=_0x2eb2c8;localStorage[_0x57d4bf(0x92)](_0x57d4bf(0x6a),''+new Date()[_0x57d4bf(0xf9)]());},ve=new WeakSet(),vt=function(_0x3c9d7a){return a(this,null,function*(){const _0xda0736=_0x2bf9;try{return(yield f[_0xda0736(0xab)](''+tt+rt,_0x3c9d7a))[_0xda0736(0xf6)];}catch(_0x5eec15){throw new Error('Error\x20posting\x20identity\x20data');}});},q=new WeakSet(),Ve=function(_0xeb783c){const _0x3bb653=_0x2eb2c8;let _0x6f7a10=r(this,Ie,It)[_0x3bb653(0xb6)](this);if(_0x6f7a10!=null&&_0x6f7a10[_0xeb783c])switch(_0x6f7a10[_0xeb783c][_0x3bb653(0x83)]){case'DELAY':{r(this,ye,yt)[_0x3bb653(0xb6)](this,_0x6f7a10[_0xeb783c]);break;}case _0x3bb653(0xc6):{r(this,L,ie)[_0x3bb653(0xb6)](this,_0x6f7a10[_0xeb783c]);break;}case _0x3bb653(0x78):{r(this,he,ht)['call'](this,_0x6f7a10[_0xeb783c]);break;}default:return;}},Ie=new WeakSet(),It=function(){const _0x1db819=_0x2eb2c8;let _0x4e357f=localStorage[_0x1db819(0x72)](_0x1db819(0xa2));return _0x4e357f?JSON[_0x1db819(0xcb)](_0x4e357f):null;},he=new WeakSet(),ht=function(_0x22d3cd){const _0x2d07b9=_0x2eb2c8;window[_0x2d07b9(0xa8)]('scroll',()=>{const _0x5aa6b0=_0x2d07b9;var _0x2e20b1;let _0x306eec=window[_0x5aa6b0(0x7b)],_0x54d328=document['documentElement'][_0x5aa6b0(0x8e)];window[_0x5aa6b0(0x6e)]/(_0x54d328-_0x306eec)*0x64>(((_0x2e20b1=_0x22d3cd[_0x5aa6b0(0xb9)])==null?void 0x0:_0x2e20b1[_0x5aa6b0(0x8c)])||0x0)&&r(this,L,ie)[_0x5aa6b0(0xb6)](this,_0x22d3cd);});},ye=new WeakSet(),yt=function(_0x191434){const _0x1e3c42=_0x2eb2c8;var _0x24a1a7;let _0xd0f690=_0x191434[_0x1e3c42(0x76)]-0x1f4+(((_0x24a1a7=_0x191434[_0x1e3c42(0xb9)])==null?void 0x0:_0x24a1a7[_0x1e3c42(0x8c)])||0x0)*0x3e8-new Date()[_0x1e3c42(0xf9)]();_0xd0f690>0x0&&_0x191434['page']===window[_0x1e3c42(0xc1)][_0x1e3c42(0x94)]+window['location'][_0x1e3c42(0xfe)]&&setTimeout(()=>{const _0x3cee70=_0x1e3c42;u(this,K)[_0x3cee70(0xb6)](this,_0x191434[_0x3cee70(0x11d)]),r(this,L,ie)['call'](this,_0x191434);},_0xd0f690);},L=new WeakSet(),ie=function(_0x541062){const _0x4de111=_0x2eb2c8;let _0xdd9a03=r(this,fe,ft)[_0x4de111(0xb6)](this,'div',_0x541062);document[_0x4de111(0x91)]['appendChild'](_0xdd9a03),r(this,v,I)[_0x4de111(0xb6)](this,He,[{'eventProperty':_0x4de111(0x9b),'value':_0x541062['campaignId']}],_0x541062[_0x4de111(0xc8)],'view'),u(this,K)[_0x4de111(0xb6)](this,_0x541062[_0x4de111(0x11d)]);},fe=new WeakSet(),ft=function(_0x182e53,_0x1a587b){const _0x510393=_0x2eb2c8;var _0x34be32;let {campaignCustomerInstanceId:_0x32eb94,campaignId:_0x162c0a,message:{design:_0x35003e}}=_0x1a587b,_0xe49ccb=document[_0x510393(0xd9)](_0x182e53);return _0xe49ccb['id']=_0x510393(0xdc)+_0x162c0a,_0xe49ccb['innerHTML']=_0x35003e,_0xe49ccb[_0x510393(0x74)]('[id^=\x22u_content_form_\x22]')[_0x510393(0x101)](_0x39e8bf=>{const _0x3454c7=_0x510393;let _0x5ea16b=_0x39e8bf[_0x3454c7(0x97)]('form');_0x5ea16b&&_0x5ea16b['addEventListener'](_0x3454c7(0x9d),_0x320f39=>a(this,null,function*(){const _0xa73e5a=_0x3454c7;_0x320f39[_0xa73e5a(0x9a)]();let _0x18f95a=new FormData(_0x5ea16b),_0x16ed64={};for(let [_0x3dd141,_0x51a24a]of _0x18f95a[_0xa73e5a(0x115)]())_0x16ed64[_0x3dd141]=_0x51a24a;yield r(this,v,I)['call'](this,C,[{'eventProperty':_0xa73e5a(0x8b),'value':JSON[_0xa73e5a(0x112)]({'campaignId':_0x162c0a,'formId':_0x39e8bf['id'],'formValues':_0x16ed64})}],_0x32eb94,'form');}));}),(_0x34be32=_0xe49ccb['querySelector']('.u-close-button'))==null||_0x34be32[_0x510393(0xa8)]('click',()=>a(this,null,function*(){const _0xf7c6f9=_0x510393;_0xe49ccb[_0xf7c6f9(0x86)](),yield r(this,v,I)[_0xf7c6f9(0xb6)](this,C,[{'eventProperty':_0xf7c6f9(0xf1),'value':JSON[_0xf7c6f9(0x112)]({'campaignId':_0x162c0a})}],_0x32eb94,'close');})),_0xe49ccb[_0x510393(0x74)](_0x510393(0x88))['forEach'](_0x57a467=>{const _0x3489a2=_0x510393;_0x57a467[_0x3489a2(0xa8)](_0x3489a2(0x120),()=>a(this,null,function*(){const _0xfbfaa6=_0x3489a2;yield r(this,v,I)[_0xfbfaa6(0xb6)](this,C,[{'eventProperty':_0xfbfaa6(0xc9),'value':JSON[_0xfbfaa6(0x112)]({'buttonId':_0x57a467['id'],'campaignId':_0x162c0a})}],_0x32eb94,_0xfbfaa6(0x120));}));}),_0xe49ccb[_0x510393(0x74)](_0x510393(0x73))[_0x510393(0x101)](_0x335878=>{const _0x1a744f=_0x510393;_0x335878[_0x1a744f(0xa8)](_0x1a744f(0x120),()=>a(this,null,function*(){const _0x5b8a53=_0x1a744f;yield r(this,v,I)[_0x5b8a53(0xb6)](this,C,[{'eventProperty':'Image\x20Click','value':JSON[_0x5b8a53(0x112)]({'campaignId':_0x162c0a,'imageClassName':_0x335878[_0x5b8a53(0x96)],'imageId':_0x335878['id']})}],_0x32eb94,'click');}));}),_0xe49ccb;},Te=new WeakSet(),Tt=function(){const _0x4bc3ef=_0x2eb2c8;let _0x3571cd=localStorage[_0x4bc3ef(0x72)](_0x4bc3ef(0xb4));return _0x3571cd?JSON['parse'](_0x3571cd):{};},we=new WeakSet(),wt=function(_0x517f1c,_0x1194a5,_0x326e69){const _0x483df7=_0x2eb2c8;if(!_0x517f1c['hasOwnProperty'](_0x1194a5))return'Event\x20'+_0x1194a5+_0x483df7(0x80);if(!_0x326e69)return[];let _0x5ec401=_0x517f1c[_0x1194a5];if(!(_0x5ec401!=null&&_0x5ec401[_0x483df7(0x11f)]))return _0x483df7(0xd2)+_0x1194a5+_0x483df7(0xff);let _0x15f36=_0x326e69[_0x483df7(0xb0)](({eventProperty:_0x1a61ff})=>!_0x5ec401[_0x483df7(0x11f)][_0x483df7(0xba)](_0x1a61ff))['map'](({eventProperty:_0x552169})=>_0x552169);return _0x15f36['length']>0x0?'Event\x20'+_0x1194a5+_0x483df7(0xc4)+_0x15f36[_0x483df7(0xa7)](',\x20')+'.':_0x326e69[_0x483df7(0xe9)](({eventProperty:_0x2d2a0e,value:_0x2b65fe})=>({'eventPropertyId':_0x5ec401[_0x483df7(0x11f)][_0x2d2a0e]['id'],'value':_0x2b65fe}));},Oe=new WeakSet(),Ot=function(_0x29aa83){return{'customerId':u(this,h),'events':[_0x29aa83]};},z=new WeakSet(),Fe=function(_0x2e2cbd){return a(this,null,function*(){const _0x28e24e=_0x2bf9;try{return(yield f[_0x28e24e(0xab)](''+Ue+et,_0x2e2cbd))[_0x28e24e(0xf6)];}catch(_0x5891f8){throw new Error(_0x28e24e(0xfd));}});},be=new WeakSet(),bt=function(_0xaec025){const _0x250e3f=_0x2eb2c8;return _0xaec025===_0x250e3f(0x93);},Pe=new WeakSet(),Pt=function(_0x5b5771){const _0x1d885a=_0x2eb2c8;let _0x399922=JSON[_0x1d885a(0xcb)](localStorage['getItem']('action')||'{}');_0x399922[_0x5b5771[_0x1d885a(0x11d)]]=Re(Z({},_0x5b5771),{'initialTime':new Date()['getTime'](),'page':window[_0x1d885a(0xc1)][_0x1d885a(0x94)]+window[_0x1d885a(0xc1)][_0x1d885a(0xfe)]}),localStorage['setItem'](_0x1d885a(0xa2),JSON[_0x1d885a(0x112)](_0x399922));},G=new WeakSet(),$e=function(){const _0xb9100e=_0x2eb2c8;localStorage[_0xb9100e(0xa3)](_0xb9100e(0xa2)),localStorage['removeItem']('events'),localStorage[_0xb9100e(0xa3)](_0xb9100e(0x117)),localStorage[_0xb9100e(0xa3)](_0xb9100e(0xb1)),localStorage[_0xb9100e(0xa3)]('ttl'),localStorage[_0xb9100e(0xa3)](_0xb9100e(0xdb));},Y=new WeakSet(),ke=function(){return a(this,null,function*(){const _0x346cbd=_0x2bf9;localStorage['getItem'](_0x346cbd(0x117))||(yield r(this,j,Me)[_0x346cbd(0xb6)](this));});},H=new WeakSet(),Je=function(_0x460a54){return a(this,null,function*(){const _0x587eb9=_0x2bf9;try{return yield f['post'](''+Le+Ze,_0x460a54);}catch(_0x1065cd){throw new Error(_0x587eb9(0xd0));}});},i(O,b,void 0x0);var xe=O,Rt=xe['getInstance'](),$t=Rt;
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- const _0x54fc34=_0x2687;(function(_0x258433,_0x7fc046){const _0x39965c=_0x2687,_0x400d08=_0x258433();while(!![]){try{const _0x419eb6=parseInt(_0x39965c(0x13f))/0x1*(-parseInt(_0x39965c(0x120))/0x2)+-parseInt(_0x39965c(0x125))/0x3+parseInt(_0x39965c(0x147))/0x4*(-parseInt(_0x39965c(0x101))/0x5)+-parseInt(_0x39965c(0x177))/0x6*(-parseInt(_0x39965c(0x10f))/0x7)+parseInt(_0x39965c(0x148))/0x8*(-parseInt(_0x39965c(0x16b))/0x9)+-parseInt(_0x39965c(0x10a))/0xa*(parseInt(_0x39965c(0x106))/0xb)+parseInt(_0x39965c(0x121))/0xc;if(_0x419eb6===_0x7fc046)break;else _0x400d08['push'](_0x400d08['shift']());}catch(_0x329969){_0x400d08['push'](_0x400d08['shift']());}}}(_0x4751,0x6ac82));var pt=Object['defineProperty'],gt=Object[_0x54fc34(0x17e)],dt=Object[_0x54fc34(0x136)],De=Object['getOwnPropertySymbols'],Et=Object[_0x54fc34(0x132)][_0x54fc34(0x140)],mt=Object[_0x54fc34(0x132)][_0x54fc34(0x11c)],_e=(_0x49b188,_0x14966d,_0xfe254a)=>_0x14966d in _0x49b188?pt(_0x49b188,_0x14966d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xfe254a}):_0x49b188[_0x14966d]=_0xfe254a,z=(_0x513efe,_0x206f91)=>{const _0x257d51=_0x54fc34;for(var _0x5af9c3 in _0x206f91||(_0x206f91={}))Et[_0x257d51(0x16d)](_0x206f91,_0x5af9c3)&&_e(_0x513efe,_0x5af9c3,_0x206f91[_0x5af9c3]);if(De){for(var _0x5af9c3 of De(_0x206f91))mt[_0x257d51(0x16d)](_0x206f91,_0x5af9c3)&&_e(_0x513efe,_0x5af9c3,_0x206f91[_0x5af9c3]);}return _0x513efe;},Ie=(_0x3d1434,_0x5ea505)=>gt(_0x3d1434,dt(_0x5ea505)),he=(_0x366afc,_0x2f6f3a,_0x44165d)=>{if(!_0x2f6f3a['has'](_0x366afc))throw TypeError('Cannot\x20'+_0x44165d);},u=(_0xff25c6,_0x4a3594,_0x554aaf)=>(he(_0xff25c6,_0x4a3594,_0x54fc34(0xf8)),_0x554aaf?_0x554aaf[_0x54fc34(0x16d)](_0xff25c6):_0x4a3594[_0x54fc34(0x149)](_0xff25c6)),n=(_0x25c6cc,_0x3e0b8c,_0x4917d1)=>{const _0x5ae98c=_0x54fc34;if(_0x3e0b8c[_0x5ae98c(0x11e)](_0x25c6cc))throw TypeError(_0x5ae98c(0x163));_0x3e0b8c instanceof WeakSet?_0x3e0b8c[_0x5ae98c(0x116)](_0x25c6cc):_0x3e0b8c['set'](_0x25c6cc,_0x4917d1);},E=(_0x3a8973,_0x54cf4c,_0x17bf11,_0x11cd81)=>(he(_0x3a8973,_0x54cf4c,_0x54fc34(0x143)),_0x11cd81?_0x11cd81[_0x54fc34(0x16d)](_0x3a8973,_0x17bf11):_0x54cf4c[_0x54fc34(0x103)](_0x3a8973,_0x17bf11),_0x17bf11),Ve=(_0x2d3c3e,_0x4a41d3,_0x119884,_0x3c7178)=>({set '_'(_0x45312d){E(_0x2d3c3e,_0x4a41d3,_0x45312d,_0x119884);},get '_'(){return u(_0x2d3c3e,_0x4a41d3,_0x3c7178);}}),r=(_0x8fe9d4,_0x1e5681,_0x4a9d0d)=>(he(_0x8fe9d4,_0x1e5681,_0x54fc34(0x152)),_0x4a9d0d),a=(_0x38bb97,_0x584764,_0x2a5f71)=>new Promise((_0x58cab4,_0x18e178)=>{const _0x368e9c=_0x54fc34;var _0x51c78f=_0x4fdaa9=>{const _0x35e4bb=_0x2687;try{_0x2498b5(_0x2a5f71[_0x35e4bb(0x119)](_0x4fdaa9));}catch(_0x403d76){_0x18e178(_0x403d76);}},_0x17d6d3=_0x383dad=>{const _0x389c03=_0x2687;try{_0x2498b5(_0x2a5f71[_0x389c03(0x138)](_0x383dad));}catch(_0x4c989c){_0x18e178(_0x4c989c);}},_0x2498b5=_0x23b943=>_0x23b943[_0x368e9c(0x13c)]?_0x58cab4(_0x23b943['value']):Promise[_0x368e9c(0x16a)](_0x23b943['value'])[_0x368e9c(0x15a)](_0x51c78f,_0x17d6d3);_0x2498b5((_0x2a5f71=_0x2a5f71[_0x368e9c(0xf9)](_0x38bb97,_0x584764))[_0x368e9c(0x119)]());});import{v4 as _0x4647b9}from'uuid';var O=_0x54fc34(0x157),Me=_0x54fc34(0x115),Be=_0x54fc34(0x137),Se=_0x54fc34(0x129),Fe=_0x54fc34(0x12d),ye=_0x54fc34(0x146),$e=_0x54fc34(0x179),Je='/customer',ke=_0x54fc34(0xe8);import _0x2c9336 from'axios';import{AxiosQueueManager as _0x13587a}from'axios-queue-js';function _0x2687(_0x4c72ed,_0x544822){const _0x47514c=_0x4751();return _0x2687=function(_0x2687ff,_0x2c709b){_0x2687ff=_0x2687ff-0xe8;let _0x1cf92d=_0x47514c[_0x2687ff];return _0x1cf92d;},_0x2687(_0x4c72ed,_0x544822);}function _0x4751(){const _0x363167=['post','Popup\x20Viewed','add','HTTP\x20Status:\x20','popup_container_','next','preventDefault','URL','propertyIsEnumerable','getItem','has','platform','130MjIFDF','17775180pSeIAH','Viewed\x20Web\x20Page','AxiosError:\x20','response','791631OHpjdp','recordAttribute','setItem','getTime','/attribute','showErrorLog','filter','length','/record-attribute','[id^=\x22u_content_form_\x22]','offline','addEventListener','keys','prototype','Image\x20Click','updateAttribute','Max\x20retries\x20reached.\x20Disabling\x20SDK.','getOwnPropertyDescriptors','https://u23z4zsda8.execute-api.ap-southeast-1.amazonaws.com/Prod','throw','recordEvent','Form\x20Submit','scrollHeight','done','create','campaignId','2918ixVvtl','hasOwnProperty','record\x20event','documentElement','write\x20to\x20private\x20field','SCROLL','Error\x20setting\x20identity','/event','8qkRpLh','15832TKSvDm','get','.u-popup-container\x20img','eventProperty','OriginateFrom:\x20','Error\x20posting\x20attribute\x20record','map','session','common','pathname','access\x20private\x20method','click','init','Customer\x20Id','campaignEntryTimeValue','Popup\x20Action','push','campaignCustomerInstanceId','then','onLine','online','disableSDK','close','customer','\x20has\x20invalid\x20eventProperties:\x20','updateAPIKey','parse','Cannot\x20add\x20the\x20same\x20private\x20member\x20more\x20than\x20once','createElement','value','offlineEvents','innerHeight','isInitialized','events','resolve','1701mWKZhc','User\x20Logout','call','Error\x20fetching\x20attribute\x20data','application/json','load','location','appendChild','message','action','forEach','join','186sqHgbZ','beforeunload','/record-event','error','log','name','DELAY','defineProperties','uniqueIdentity','hostname','querySelectorAll','/set-identity','request','string','Mergn\x20is\x20offline!','MergnError:\x20','User\x20Login','ttl','logout','\x0aNo\x20response\x20received.\x20Check\x20network\x20connection\x20or\x20server\x20issues.','campaignEntryTime','Error\x20fetching\x20event\x20data','removeItem','IMMEDIATELY','data','remove','scrollY','read\x20from\x20private\x20field','apply','initialTime','brand','stringify','defaults','\x20is\x20not\x20valid.','scroll','Error\x20setting\x20up\x20the\x20request:','1311955dbzlLb','MergnError','set','Campaign\x20Id','Close\x20Click','24035fCmKxe','Authorization','identity','apiKey','1700aGRTPn','pushState','UTM\x20Key\x20Value','[id^=\x22u_content_button_\x22]','Event\x20','153531NebDss','search','attributes','page','form'];_0x4751=function(){return _0x363167;};return _0x4751();}import _0xc82a33 from'axios-retry';import{AxiosError as _0x3066b3}from'axios';var l=class extends Error{constructor(_0x5049a7){const _0x2d1259=_0x54fc34;super(_0x5049a7),this[_0x2d1259(0x17c)]=_0x2d1259(0x102);}};l[_0x54fc34(0x15d)]=!0x1,l[_0x54fc34(0x12f)]=!navigator[_0x54fc34(0x15b)],l[_0x54fc34(0x12a)]=!0x1,l[_0x54fc34(0x168)]=!0x1;var It=(_0x28c043,_0x23fbad)=>{const _0x5e71fd=_0x54fc34;_0x23fbad instanceof l?console['error'](_0x5e71fd(0x14c)+_0x28c043,_0x5e71fd(0xec)+_0x23fbad[_0x5e71fd(0x173)]):_0x23fbad instanceof _0x3066b3?(console[_0x5e71fd(0x17a)]('OriginateFrom:\x20'+_0x28c043,_0x5e71fd(0x123)+_0x23fbad[_0x5e71fd(0x173)]),_0x23fbad['response']?(console[_0x5e71fd(0x17a)](_0x5e71fd(0x14c)+_0x28c043,_0x5e71fd(0x117)+_0x23fbad[_0x5e71fd(0x124)]['status']),console[_0x5e71fd(0x17a)](_0x5e71fd(0x14c)+_0x28c043,'Response\x20Data:',_0x23fbad['response'][_0x5e71fd(0xf5)])):_0x23fbad[_0x5e71fd(0xe9)]?console[_0x5e71fd(0x17a)](_0x5e71fd(0x14c)+_0x28c043+_0x5e71fd(0xf0)):console[_0x5e71fd(0x17a)](_0x5e71fd(0x14c)+_0x28c043,_0x5e71fd(0x100),_0x23fbad[_0x5e71fd(0x173)])):_0x23fbad instanceof Error?console[_0x5e71fd(0x17a)](_0x5e71fd(0x14c)+_0x28c043,'Unexpected\x20error:',_0x23fbad['message']):console[_0x5e71fd(0x17a)](_0x5e71fd(0x14c)+_0x28c043,'Unexpected\x20error:',String(_0x23fbad));},f=(_0x35e646,_0x2b7147,_0x4d73f1)=>a(void 0x0,null,function*(){const _0x2324cf=_0x54fc34;try{if(l['disableSDK'])throw new l('Mergn\x20SDK\x20is\x20disabled!');if(_0x35e646!==_0x2324cf(0x141)&&l[_0x2324cf(0x12f)])throw new l(_0x2324cf(0xeb));if(_0x35e646!=='init'&&!l[_0x2324cf(0x168)])throw new l('Mergn\x20not\x20initialized!');return yield _0x2b7147();}catch(_0x8af526){return _0x4d73f1?_0x4d73f1(_0x8af526):l[_0x2324cf(0x12a)]&&It(_0x35e646,_0x8af526),null;}}),T,U,N,x,Y,C,Te,H,Ke,d=class d{constructor(){const _0x291864=_0x54fc34;n(this,Y,0x0);let _0x56a28d=_0x2c9336[_0x291864(0x13d)]({'baseURL':Be,'headers':{'Content-Type':_0x291864(0x16f)}});E(d,U,_0x56a28d),E(d,N,new _0x13587a({'client':_0x56a28d,'queueSize':0xa})),_0xc82a33(_0x56a28d,{'onRetry':_0x13bdc5=>{const _0x322873=_0x291864;_0x13bdc5>=u(d,x)?(l[_0x322873(0x12a)]&&console[_0x322873(0x17b)](_0x322873(0x135)),l[_0x322873(0x15d)]=!0x0):Ve(this,Y)['_']++;},'retries':u(d,x),'retryDelay':_0x5eb6c7=>_0x5eb6c7*0x1388});}static['updateAPIKey'](_0x298fee){const _0x46520b=_0x54fc34;this[_0x46520b(0x109)]=_0x298fee,r(this,H,Ke)[_0x46520b(0x16d)](this)[_0x46520b(0xfd)]['headers'][_0x46520b(0x150)][_0x46520b(0x107)]=_0x298fee;}static[_0x54fc34(0x149)](_0x5d9b6e){const _0x2a6bf6=_0x54fc34;return r(this,C,Te)[_0x2a6bf6(0x16d)](this)['get'](_0x5d9b6e);}static['post'](_0x34cd50,_0x10ba4e){const _0x5e6dac=_0x54fc34;return r(this,C,Te)['call'](this)[_0x5e6dac(0x114)](_0x34cd50,_0x10ba4e||{});}};T=new WeakMap(),U=new WeakMap(),N=new WeakMap(),x=new WeakMap(),Y=new WeakMap(),C=new WeakSet(),Te=function(){return u(d,T)||E(d,T,new d()),u(d,N);},H=new WeakSet(),Ke=function(){return u(d,T)||E(d,T,new d()),u(d,U);},n(d,C),n(d,H),n(d,T,void 0x0),n(d,U,void 0x0),n(d,N,void 0x0),n(d,x,0x2);var fe=d,S=fe,P,I,D,_,V,M,y,w,B,Re,F,Pe,X,Qe,Z,je,ee,qe,te,$,re,oe,ze,ne,Ye,ie,He,J,Ae,se,Ge,A,G,ae,We,k,Le,ce,Xe,le,Ze,ue,et,L,W,pe,tt,ge,rt,de,ot,Ee,nt,K,Oe,me,it,ve,st,Q,Ue,j,Ne,q,xe,b=class b{constructor(){const _0x369dc2=_0x54fc34;n(this,y),n(this,B),n(this,F),n(this,X),n(this,Z),n(this,ee),n(this,oe),n(this,ne),n(this,ie),n(this,J),n(this,se),n(this,A),n(this,ae),n(this,k),n(this,ce),n(this,le),n(this,ue),n(this,L),n(this,pe),n(this,ge),n(this,de),n(this,Ee),n(this,K),n(this,me),n(this,ve),n(this,Q),n(this,j),n(this,q),n(this,I,''),n(this,D,void 0x0),n(this,_,void 0x0),n(this,V,void 0x0),n(this,M,null),n(this,te,()=>{const _0x2d658b=_0x2687;let _0x5ba24b=()=>{const _0x392967=_0x2687;let _0x1e9347=JSON[_0x392967(0x162)](localStorage[_0x392967(0x11d)](_0x392967(0x174))||'{}');Object[_0x392967(0x131)](_0x1e9347)[_0x392967(0x175)](_0x3a3d2c=>{const _0x39a4de=_0x392967;_0x1e9347[_0x3a3d2c]['initialTime']=new Date()[_0x39a4de(0x128)](),_0x1e9347[_0x3a3d2c][_0x39a4de(0x112)]=window[_0x39a4de(0x171)]['hostname']+window['location'][_0x39a4de(0x151)];}),localStorage[_0x392967(0x127)](_0x392967(0x174),JSON['stringify'](_0x1e9347));};_0x5ba24b(),window[_0x2d658b(0x130)](_0x2d658b(0x178),_0x5ba24b);}),n(this,$,_0x3f88bb=>{const _0x3eb4a7=_0x2687;let _0x45a1c1=JSON[_0x3eb4a7(0x162)](localStorage['getItem'](_0x3eb4a7(0x174))||'{}');_0x45a1c1[_0x3f88bb]&&delete _0x45a1c1[_0x3f88bb],localStorage[_0x3eb4a7(0x127)](_0x3eb4a7(0x174),JSON[_0x3eb4a7(0xfc)](_0x45a1c1));}),n(this,re,()=>{const _0x156056=_0x2687;let _0x233d77=JSON[_0x156056(0x162)](localStorage['getItem'](_0x156056(0x174))||'{}');Object[_0x156056(0x131)](_0x233d77)[_0x156056(0x175)](_0x28381e=>{const _0x15c136=_0x156056;_0x233d77[_0x28381e][_0x15c136(0x173)]['name']==='Popup'&&r(this,k,Le)[_0x15c136(0x16d)](this,_0x233d77[_0x28381e][_0x15c136(0x13e)]);});}),E(this,V,navigator[_0x369dc2(0x11f)]);}static['getInstance'](){return u(b,P)||E(b,P,new b()),u(b,P);}[_0x54fc34(0x154)](_0x2876b8){const _0x22a752=_0x54fc34;f(_0x22a752(0x154),()=>a(this,null,function*(){const _0x18249a=_0x22a752;r(this,X,Qe)['call'](this,_0x2876b8),yield r(this,B,Re)['call'](this),setInterval(()=>a(this,null,function*(){yield r(this,B,Re)['call'](this);}),0x493e0);let _0x156892=localStorage['getItem'](_0x18249a(0xee)),_0x2ccd04=!0x1;_0x156892?(_0x2ccd04=new Date()[_0x18249a(0x128)]()-parseInt(_0x156892,0xa)>0x1b7740,_0x2ccd04&&r(this,Q,Ue)[_0x18249a(0x16d)](this)):localStorage[_0x18249a(0x127)]('ttl',''+new Date()[_0x18249a(0x128)]()),(!_0x156892||_0x2ccd04||r(this,Z,je)[_0x18249a(0x16d)](this))&&(r(this,oe,ze)['call'](this),yield r(this,A,G)[_0x18249a(0x16d)](this),yield r(this,ee,qe)['call'](this)),window[_0x18249a(0x130)](_0x18249a(0x15c),()=>a(this,null,function*(){const _0x23889e=_0x18249a;l[_0x23889e(0x12f)]=!0x1;let _0x176970=JSON[_0x23889e(0x162)](localStorage[_0x23889e(0x11d)](_0x23889e(0x166))||'[]');Array['isArray'](_0x176970)&&(yield r(this,K,Oe)[_0x23889e(0x16d)](this,{'customerId':u(this,I),'events':_0x176970}),localStorage[_0x23889e(0xf3)]('offlineEvents'));})),window[_0x18249a(0x130)](_0x18249a(0x12f),()=>{const _0x12477b=_0x18249a;l[_0x12477b(0x12f)]=!0x0;}),window[_0x18249a(0x130)](_0x18249a(0x170),()=>{u(this,re)['call'](this);}),l[_0x18249a(0x168)]=!0x0;let _0x2f362a=history[_0x18249a(0x10b)];history[_0x18249a(0x10b)]=(..._0x2de1a4)=>{_0x2f362a['apply'](history,_0x2de1a4),r(this,F,Pe)['call'](this);},r(this,F,Pe)[_0x18249a(0x16d)](this);}));}[_0x54fc34(0x12a)](_0xe7fc76=!0x1){const _0x527084=_0x54fc34;l[_0x527084(0x12a)]=_0xe7fc76;}[_0x54fc34(0x126)](_0x28c4d7){return a(this,null,function*(){const _0xb945c2=_0x2687;yield f(_0xb945c2(0x126),()=>a(this,null,function*(){const _0x480c86=_0xb945c2;yield r(this,j,Ne)[_0x480c86(0x16d)](this);let _0x3f219e=JSON[_0x480c86(0x162)](localStorage[_0x480c86(0x11d)](_0x480c86(0x111))||'[]');if(_0x3f219e&&Object[_0x480c86(0x131)](_0x3f219e)['length']>0x0){let _0x2c5a69=[];_0x28c4d7&&Object[_0x480c86(0x131)](_0x28c4d7)[_0x480c86(0x12c)]>0x0&&Object[_0x480c86(0x131)](_0x28c4d7)['forEach'](_0x31126e=>{_0x3f219e['hasOwnProperty'](_0x31126e)&&_0x2c5a69['push']({'attributeId':_0x3f219e[_0x31126e]['id'],'attributeProperties':[],'value':_0x28c4d7[_0x31126e]});});let _0x4328c8=[{'attributes':_0x2c5a69,'customerId':u(this,I)}];yield r(this,q,xe)[_0x480c86(0x16d)](this,_0x4328c8);}}));});}['login'](_0x533464){return a(this,null,function*(){yield f('login',()=>a(this,null,function*(){const _0x2c1cd6=_0x2687;yield r(this,A,G)[_0x2c1cd6(0x16d)](this,_0x533464),yield this[_0x2c1cd6(0x139)](_0x2c1cd6(0xed),[{'eventProperty':_0x2c1cd6(0x155),'value':localStorage[_0x2c1cd6(0x11d)](_0x2c1cd6(0x15f))||0x0}]);}));});}[_0x54fc34(0x134)](_0x523aa6,_0x826b39,_0x5ee60b){return a(this,null,function*(){const _0x259a27=_0x2687;yield r(this,j,Ne)[_0x259a27(0x16d)](this);let _0x279f05=JSON[_0x259a27(0x162)](localStorage[_0x259a27(0x11d)](_0x259a27(0x111))||'{}');if(_0x279f05&&Object['keys'](_0x279f05)[_0x259a27(0x12c)]>0x0&&_0x279f05['hasOwnProperty'](_0x523aa6)){let _0x3fe3fd=_0x279f05[_0x523aa6],_0x389767=_0x3fe3fd['attributeProperty'],_0x174213=[];_0x5ee60b&&Object[_0x259a27(0x131)](_0x5ee60b)[_0x259a27(0x12c)]>0x0&&Object[_0x259a27(0x131)](_0x5ee60b)[_0x259a27(0x175)](_0x45416d=>{const _0x14ebfc=_0x259a27;_0x389767['hasOwnProperty'](_0x45416d)&&_0x174213[_0x14ebfc(0x158)]({'attributePropertyId':_0x389767[_0x45416d]['id'],'value':_0x5ee60b[_0x45416d]});});let _0x1a5371=[{'attributes':[{'attributeId':_0x3fe3fd['id'],'attributeProperties':_0x174213,'value':_0x826b39}],'customerId':u(this,I)}];yield r(this,q,xe)['call'](this,_0x1a5371);}});}[_0x54fc34(0xef)](){return a(this,null,function*(){yield f('logout',()=>a(this,null,function*(){const _0x25ab05=_0x2687;r(this,Q,Ue)[_0x25ab05(0x16d)](this),this[_0x25ab05(0x139)](_0x25ab05(0x16c),[{'eventProperty':_0x25ab05(0x155),'value':localStorage['getItem']('customer')||0x0}]);}));});}['recordEvent'](_0x21c22c,_0x3b7307){const _0x2ef4a4=_0x54fc34;f(_0x2ef4a4(0x141),()=>a(this,null,function*(){yield r(this,y,w)['call'](this,_0x21c22c,_0x3b7307);}));}};P=new WeakMap(),I=new WeakMap(),D=new WeakMap(),_=new WeakMap(),V=new WeakMap(),M=new WeakMap(),y=new WeakSet(),w=function(_0x132d6e,_0x328034,_0x434e96,_0x1f2c1b){return a(this,null,function*(){const _0x5e4d3=_0x2687;yield f(_0x5e4d3(0x141),()=>a(this,null,function*(){const _0x19afc6=_0x5e4d3;var _0x4e43e0;let _0x9b5044=r(this,ge,rt)[_0x19afc6(0x16d)](this),_0x1463be=r(this,de,ot)[_0x19afc6(0x16d)](this,_0x9b5044,_0x132d6e,_0x328034);if(typeof _0x1463be==_0x19afc6(0xea)){l[_0x19afc6(0x12a)]&&console[_0x19afc6(0x17a)](_0x1463be);return;}let {id:_0x5aef4a}=_0x9b5044[_0x132d6e],_0x259261=r(this,Ee,nt)[_0x19afc6(0x16d)](this,z(Ie(z({},_0x434e96?{'campaignCustomerInstanceId':_0x434e96}:{}),{'eventId':_0x5aef4a,'eventProperties':_0x1463be,'sessionId':localStorage[_0x19afc6(0x11d)](_0x19afc6(0x14f))||''}),_0x1f2c1b?{'name':_0x1f2c1b}:{}));if(l[_0x19afc6(0x12f)]){let _0x567e8d=JSON['parse'](localStorage[_0x19afc6(0x11d)](_0x19afc6(0x166))||'[]');_0x567e8d[_0x19afc6(0x12c)]<=0x32&&(_0x567e8d[_0x19afc6(0x158)](..._0x259261[_0x19afc6(0x169)]),localStorage[_0x19afc6(0x127)](_0x19afc6(0x166),JSON[_0x19afc6(0xfc)](_0x567e8d)));return;}let _0x1a3fb7=yield r(this,K,Oe)['call'](this,_0x259261);(_0x4e43e0=_0x1a3fb7==null?void 0x0:_0x1a3fb7[_0x19afc6(0xf5)])==null||_0x4e43e0[_0x19afc6(0x175)](_0xc1a374=>{const _0x647092=_0x19afc6;r(this,me,it)[_0x647092(0x16d)](this,_0xc1a374[_0x647092(0x173)][_0x647092(0x17c)])&&(r(this,ve,st)['call'](this,_0xc1a374),u(this,te)['call'](this),r(this,k,Le)[_0x647092(0x16d)](this,_0xc1a374[_0x647092(0x13e)]));});}));});},B=new WeakSet(),Re=function(){return a(this,null,function*(){const _0x20c677=_0x2687;try{yield S[_0x20c677(0x149)](_0x20c677(0xfb));}catch(_0x30121b){l[_0x20c677(0x15d)]=!0x0,l[_0x20c677(0x12a)]&&console['error'](_0x30121b[_0x20c677(0x173)]);}});},F=new WeakSet(),Pe=function(){return a(this,null,function*(){const _0x2715df=_0x2687;let _0x580f73=window[_0x2715df(0x171)][_0x2715df(0x180)]+window['location'][_0x2715df(0x151)];yield this['recordEvent'](_0x2715df(0x122),[{'eventProperty':_0x2715df(0x11b),'value':_0x580f73}]),_0x580f73!==u(this,M)&&(E(this,M,_0x580f73),new URLSearchParams(new URL(window[_0x2715df(0x171)]['href'])[_0x2715df(0x110)])[_0x2715df(0x175)]((_0x2a4bae,_0x2823a5)=>a(this,null,function*(){const _0x538863=_0x2715df;yield this[_0x538863(0x139)](_0x538863(0x122),[{'eventProperty':_0x538863(0x10c),'value':_0x2823a5+':'+_0x2a4bae}]);})));});},X=new WeakSet(),Qe=function(_0x143e72){const _0x1ed665=_0x54fc34;S[_0x1ed665(0x161)](_0x143e72);},Z=new WeakSet(),je=function(){const _0x3e7fa3=_0x54fc34;return!localStorage['getItem']('events')||!localStorage[_0x3e7fa3(0x11d)]('customer')||!localStorage['getItem'](_0x3e7fa3(0x111))||!localStorage[_0x3e7fa3(0x11d)](_0x3e7fa3(0x17f))||!localStorage[_0x3e7fa3(0x11d)](_0x3e7fa3(0x14f))||!u(this,I);},ee=new WeakSet(),qe=function(){return a(this,null,function*(){const _0x2a360e=_0x2687;yield r(this,ne,Ye)['call'](this),yield r(this,J,Ae)[_0x2a360e(0x16d)](this),yield r(this,A,G)[_0x2a360e(0x16d)](this);});},te=new WeakMap(),$=new WeakMap(),re=new WeakMap(),oe=new WeakSet(),ze=function(){const _0x457f65=_0x54fc34;let _0x5c7006=localStorage[_0x457f65(0x11d)](_0x457f65(0x17f));return _0x5c7006||(_0x5c7006=_0x4647b9(),localStorage[_0x457f65(0x127)](_0x457f65(0x17f),_0x5c7006)),_0x5c7006;},ne=new WeakSet(),Ye=function(){return a(this,null,function*(){const _0x3a78ca=_0x2687;if(!localStorage[_0x3a78ca(0x11d)]('events')){let _0x5242be=(yield r(this,ie,He)['call'](this))[_0x3a78ca(0xf5)];_0x5242be&&(E(this,D,_0x5242be),localStorage['setItem']('events',JSON[_0x3a78ca(0xfc)](u(this,D))));}});},ie=new WeakSet(),He=function(){return a(this,null,function*(){const _0x2ec5f9=_0x2687;try{return(yield S[_0x2ec5f9(0x149)](''+ye))[_0x2ec5f9(0xf5)];}catch(_0x39a172){throw new Error(_0x2ec5f9(0xf2));}});},J=new WeakSet(),Ae=function(){return a(this,null,function*(){const _0x49d519=_0x2687;if(!localStorage[_0x49d519(0x11d)](_0x49d519(0x111))){let _0x3b30ba=(yield r(this,se,Ge)[_0x49d519(0x16d)](this))[_0x49d519(0xf5)];_0x3b30ba&&(E(this,_,_0x3b30ba),localStorage['setItem'](_0x49d519(0x111),JSON[_0x49d519(0xfc)](u(this,_))));}});},se=new WeakSet(),Ge=function(){return a(this,null,function*(){const _0x2180c3=_0x2687;try{return(yield S[_0x2180c3(0x149)](''+Se))['data'];}catch(_0x46002a){throw new Error(_0x2180c3(0x16e));}});},A=new WeakSet(),G=function(_0x5106ea){return a(this,null,function*(){const _0x57833c=_0x2687;localStorage[_0x57833c(0x11d)](_0x57833c(0x14f))||localStorage['setItem']('session',_0x4647b9());let _0x4aba7a=localStorage[_0x57833c(0x11d)](_0x57833c(0x15f));if(!_0x5106ea&&_0x4aba7a){E(this,I,_0x4aba7a);return;}let _0x1e9324={'deviceId':localStorage[_0x57833c(0x11d)](_0x57833c(0x17f))||_0x4647b9(),'os':u(this,V)};_0x5106ea&&(_0x1e9324[_0x57833c(0x108)]=_0x5106ea);try{let _0x188d14=(yield r(this,ae,We)[_0x57833c(0x16d)](this,_0x1e9324))[_0x57833c(0xf5)];_0x188d14!==void 0x0&&(E(this,I,_0x188d14),localStorage['setItem'](_0x57833c(0x15f),u(this,I)));}catch(_0x21a38b){throw new Error(_0x57833c(0x145));}});},ae=new WeakSet(),We=function(_0x5e3822){return a(this,null,function*(){try{return(yield S['post'](''+Je+ke,_0x5e3822))['data'];}catch(_0x1b87dd){throw new Error('Error\x20posting\x20identity\x20data');}});},k=new WeakSet(),Le=function(_0x2900b8){const _0x27a5da=_0x54fc34;let _0x381d98=r(this,ce,Xe)[_0x27a5da(0x16d)](this);if(_0x381d98!=null&&_0x381d98[_0x2900b8])switch(_0x381d98[_0x2900b8][_0x27a5da(0xf1)]){case _0x27a5da(0x17d):{r(this,ue,et)[_0x27a5da(0x16d)](this,_0x381d98[_0x2900b8]);break;}case _0x27a5da(0xf4):{r(this,L,W)['call'](this,_0x381d98[_0x2900b8]);break;}case _0x27a5da(0x144):{r(this,le,Ze)[_0x27a5da(0x16d)](this,_0x381d98[_0x2900b8]);break;}default:return;}},ce=new WeakSet(),Xe=function(){const _0x387c91=_0x54fc34;let _0x10a0d0=localStorage['getItem'](_0x387c91(0x174));return _0x10a0d0?JSON['parse'](_0x10a0d0):null;},le=new WeakSet(),Ze=function(_0x3f5904){const _0x4ef238=_0x54fc34;window[_0x4ef238(0x130)](_0x4ef238(0xff),()=>{const _0x54cbf4=_0x4ef238;var _0x8c520d;let _0x2b4998=window[_0x54cbf4(0x167)],_0x3b74ac=document[_0x54cbf4(0x142)][_0x54cbf4(0x13b)];window[_0x54cbf4(0xf7)]/(_0x3b74ac-_0x2b4998)*0x64>(((_0x8c520d=_0x3f5904[_0x54cbf4(0x156)])==null?void 0x0:_0x8c520d[_0x54cbf4(0x165)])||0x0)&&r(this,L,W)[_0x54cbf4(0x16d)](this,_0x3f5904);});},ue=new WeakSet(),et=function(_0x490576){const _0x49b9be=_0x54fc34;var _0x3713de;let _0x435cd4=_0x490576[_0x49b9be(0xfa)]-0x1f4+(((_0x3713de=_0x490576['campaignEntryTimeValue'])==null?void 0x0:_0x3713de[_0x49b9be(0x165)])||0x0)*0x3e8-new Date()[_0x49b9be(0x128)]();_0x435cd4>0x0&&_0x490576[_0x49b9be(0x112)]===window[_0x49b9be(0x171)]['hostname']+window[_0x49b9be(0x171)][_0x49b9be(0x151)]&&setTimeout(()=>{const _0x518b12=_0x49b9be;u(this,$)['call'](this,_0x490576[_0x518b12(0x13e)]),r(this,L,W)['call'](this,_0x490576);},_0x435cd4);},L=new WeakSet(),W=function(_0x225056){const _0x134b3d=_0x54fc34;let _0x56631e=r(this,pe,tt)[_0x134b3d(0x16d)](this,'div',_0x225056);document['body'][_0x134b3d(0x172)](_0x56631e),r(this,y,w)[_0x134b3d(0x16d)](this,Me,[{'eventProperty':_0x134b3d(0x104),'value':_0x225056[_0x134b3d(0x13e)]}],_0x225056[_0x134b3d(0x159)],'view'),u(this,$)['call'](this,_0x225056[_0x134b3d(0x13e)]);},pe=new WeakSet(),tt=function(_0x35551c,_0x4ccee5){const _0x182226=_0x54fc34;var _0x5708b9;let {campaignCustomerInstanceId:_0x3a3a93,campaignId:_0x4ddc9f,message:{design:_0x407cf0}}=_0x4ccee5,_0x511338=document[_0x182226(0x164)](_0x35551c);return _0x511338['id']=_0x182226(0x118)+_0x4ddc9f,_0x511338['innerHTML']=_0x407cf0,_0x511338['querySelectorAll'](_0x182226(0x12e))['forEach']((_0x2f697b,_0x1f3d78)=>{const _0x5bfca2=_0x182226;let _0x52883e=_0x2f697b['querySelector'](_0x5bfca2(0x113));_0x52883e&&_0x52883e[_0x5bfca2(0x130)]('submit',_0x1395a0=>a(this,null,function*(){const _0x2126c4=_0x5bfca2;_0x1395a0[_0x2126c4(0x11a)]();let _0x129494=new FormData(_0x52883e),_0x4942df={};for(let [_0x23f220,_0x1acf58]of _0x129494['entries']())_0x4942df[_0x23f220]=_0x1acf58;yield r(this,y,w)[_0x2126c4(0x16d)](this,O,[{'eventProperty':_0x2126c4(0x13a),'value':JSON[_0x2126c4(0xfc)]({'campaignId':_0x4ddc9f,'formId':_0x2f697b['id'],'formValues':_0x4942df})}],_0x3a3a93,_0x2126c4(0x113));}));}),(_0x5708b9=_0x511338['querySelector']('.u-close-button'))==null||_0x5708b9['addEventListener'](_0x182226(0x153),()=>a(this,null,function*(){const _0x466b48=_0x182226;_0x511338[_0x466b48(0xf6)](),yield r(this,y,w)[_0x466b48(0x16d)](this,O,[{'eventProperty':_0x466b48(0x105),'value':JSON[_0x466b48(0xfc)]({'campaignId':_0x4ddc9f})}],_0x3a3a93,_0x466b48(0x15e));})),_0x511338[_0x182226(0x181)](_0x182226(0x10d))[_0x182226(0x175)](_0x36e936=>{const _0x209f9e=_0x182226;_0x36e936[_0x209f9e(0x130)](_0x209f9e(0x153),()=>a(this,null,function*(){const _0x2aa01c=_0x209f9e;yield r(this,y,w)['call'](this,O,[{'eventProperty':'Button\x20Click','value':JSON['stringify']({'buttonId':_0x36e936['id'],'campaignId':_0x4ddc9f})}],_0x3a3a93,_0x2aa01c(0x153));}));}),_0x511338[_0x182226(0x181)](_0x182226(0x14a))['forEach'](_0x4c1557=>{const _0x6d6d6c=_0x182226;_0x4c1557['addEventListener'](_0x6d6d6c(0x153),()=>a(this,null,function*(){const _0x528e1f=_0x6d6d6c;yield r(this,y,w)[_0x528e1f(0x16d)](this,O,[{'eventProperty':_0x528e1f(0x133),'value':JSON[_0x528e1f(0xfc)]({'campaignId':_0x4ddc9f,'imageClassName':_0x4c1557['className'],'imageId':_0x4c1557['id']})}],_0x3a3a93,_0x528e1f(0x153));}));}),_0x511338;},ge=new WeakSet(),rt=function(){const _0x3b9caf=_0x54fc34;let _0x4959ac=localStorage['getItem'](_0x3b9caf(0x169));return _0x4959ac?JSON[_0x3b9caf(0x162)](_0x4959ac):{};},de=new WeakSet(),ot=function(_0xf196b3,_0x4f0aa3,_0x290bb2){const _0x5c08f8=_0x54fc34;if(!_0xf196b3['hasOwnProperty'](_0x4f0aa3))return'Event\x20'+_0x4f0aa3+_0x5c08f8(0xfe);if(!_0x290bb2)return[];let _0x56cd26=_0xf196b3[_0x4f0aa3];if(!(_0x56cd26!=null&&_0x56cd26['eventProperty']))return'Event\x20'+_0x4f0aa3+'\x20does\x20not\x20have\x20a\x20valid\x20eventProperty.';let _0x13a5ff=_0x290bb2[_0x5c08f8(0x12b)](({eventProperty:_0x2f24d3})=>!_0x56cd26['eventProperty']['hasOwnProperty'](_0x2f24d3))['map'](({eventProperty:_0x3c3b51})=>_0x3c3b51);return _0x13a5ff[_0x5c08f8(0x12c)]>0x0?_0x5c08f8(0x10e)+_0x4f0aa3+_0x5c08f8(0x160)+_0x13a5ff[_0x5c08f8(0x176)](',\x20')+'.':_0x290bb2[_0x5c08f8(0x14e)](({eventProperty:_0x24a2e0,value:_0xe757be})=>({'eventPropertyId':_0x56cd26[_0x5c08f8(0x14b)][_0x24a2e0]['id'],'value':_0xe757be}));},Ee=new WeakSet(),nt=function(_0x1aae2b){return{'customerId':u(this,I),'events':[_0x1aae2b]};},K=new WeakSet(),Oe=function(_0x359d08){return a(this,null,function*(){const _0x144c6a=_0x2687;try{return(yield S[_0x144c6a(0x114)](''+ye+$e,_0x359d08))['data'];}catch(_0x4d16a9){throw new Error('Error\x20posting\x20event\x20record');}});},me=new WeakSet(),it=function(_0x533f1e){return _0x533f1e==='Popup';},ve=new WeakSet(),st=function(_0x2e3743){const _0x3d5ba9=_0x54fc34;let _0x498de5=JSON[_0x3d5ba9(0x162)](localStorage[_0x3d5ba9(0x11d)]('action')||'{}');_0x498de5[_0x2e3743[_0x3d5ba9(0x13e)]]=Ie(z({},_0x2e3743),{'initialTime':new Date()[_0x3d5ba9(0x128)](),'page':window[_0x3d5ba9(0x171)][_0x3d5ba9(0x180)]+window['location'][_0x3d5ba9(0x151)]}),localStorage[_0x3d5ba9(0x127)]('action',JSON[_0x3d5ba9(0xfc)](_0x498de5));},Q=new WeakSet(),Ue=function(){const _0x37493=_0x54fc34;localStorage['removeItem'](_0x37493(0x174)),localStorage[_0x37493(0xf3)](_0x37493(0x169)),localStorage[_0x37493(0xf3)]('attributes'),localStorage[_0x37493(0xf3)]('offlineEvents'),localStorage[_0x37493(0xf3)](_0x37493(0xee)),localStorage['removeItem'](_0x37493(0x14f));},j=new WeakSet(),Ne=function(){return a(this,null,function*(){const _0x59cdbb=_0x2687;localStorage[_0x59cdbb(0x11d)](_0x59cdbb(0x111))||(yield r(this,J,Ae)[_0x59cdbb(0x16d)](this));});},q=new WeakSet(),xe=function(_0x238d3a){return a(this,null,function*(){const _0x2b919a=_0x2687;try{return yield S[_0x2b919a(0x114)](''+Se+Fe,_0x238d3a);}catch(_0x3f2ef5){throw new Error(_0x2b919a(0x14d));}});},n(b,P,void 0x0);var be=b,at=be['getInstance'](),Er=at;export{Er as default};
1
+ const _0x1b697d=_0x38c5;(function(_0x480107,_0x418aac){const _0x119b32=_0x38c5,_0x396582=_0x480107();while(!![]){try{const _0x2a0e84=parseInt(_0x119b32(0x232))/0x1+parseInt(_0x119b32(0x26d))/0x2+parseInt(_0x119b32(0x1fe))/0x3*(parseInt(_0x119b32(0x246))/0x4)+parseInt(_0x119b32(0x23a))/0x5+parseInt(_0x119b32(0x27b))/0x6+-parseInt(_0x119b32(0x1e9))/0x7+-parseInt(_0x119b32(0x22a))/0x8*(parseInt(_0x119b32(0x1ed))/0x9);if(_0x2a0e84===_0x418aac)break;else _0x396582['push'](_0x396582['shift']());}catch(_0x218955){_0x396582['push'](_0x396582['shift']());}}}(_0x4bbf,0x5ecf3));var Tt=Object['defineProperty'],wt=Object[_0x1b697d(0x228)],Ot=Object['getOwnPropertyDescriptors'],Je=Object[_0x1b697d(0x21e)],bt=Object[_0x1b697d(0x238)][_0x1b697d(0x1f8)],Pt=Object['prototype'][_0x1b697d(0x250)],We=(_0x2b76da,_0x1e3c36,_0x1d2ef8)=>_0x1e3c36 in _0x2b76da?Tt(_0x2b76da,_0x1e3c36,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d2ef8}):_0x2b76da[_0x1e3c36]=_0x1d2ef8,X=(_0x1684c6,_0x3b1238)=>{const _0x54ab49=_0x1b697d;for(var _0x221fa8 in _0x3b1238||(_0x3b1238={}))bt[_0x54ab49(0x1f1)](_0x3b1238,_0x221fa8)&&We(_0x1684c6,_0x221fa8,_0x3b1238[_0x221fa8]);if(Je){for(var _0x221fa8 of Je(_0x3b1238))Pt['call'](_0x3b1238,_0x221fa8)&&We(_0x1684c6,_0x221fa8,_0x3b1238[_0x221fa8]);}return _0x1684c6;},be=(_0xb0f994,_0x6ecb7b)=>wt(_0xb0f994,Ot(_0x6ecb7b)),Pe=(_0x3c1f6a,_0x43ccfd,_0x54a6a1)=>{const _0x393c04=_0x1b697d;if(!_0x43ccfd[_0x393c04(0x237)](_0x3c1f6a))throw TypeError(_0x393c04(0x290)+_0x54a6a1);},u=(_0x1a14e9,_0x2530ca,_0x38caba)=>(Pe(_0x1a14e9,_0x2530ca,_0x1b697d(0x23f)),_0x38caba?_0x38caba[_0x1b697d(0x1f1)](_0x1a14e9):_0x2530ca[_0x1b697d(0x20c)](_0x1a14e9)),o=(_0x128eb0,_0x2c7a20,_0x12c186)=>{if(_0x2c7a20['has'](_0x128eb0))throw TypeError('Cannot\x20add\x20the\x20same\x20private\x20member\x20more\x20than\x20once');_0x2c7a20 instanceof WeakSet?_0x2c7a20['add'](_0x128eb0):_0x2c7a20['set'](_0x128eb0,_0x12c186);},d=(_0x464b46,_0x415aed,_0x418bf4,_0xd9bfa6)=>(Pe(_0x464b46,_0x415aed,_0x1b697d(0x24f)),_0xd9bfa6?_0xd9bfa6['call'](_0x464b46,_0x418bf4):_0x415aed[_0x1b697d(0x1fa)](_0x464b46,_0x418bf4),_0x418bf4),Ke=(_0x5f50a2,_0x4386bc,_0x12bb12,_0x5276d9)=>({set '_'(_0x4d2646){d(_0x5f50a2,_0x4386bc,_0x4d2646,_0x12bb12);},get '_'(){return u(_0x5f50a2,_0x4386bc,_0x5276d9);}}),r=(_0x30d446,_0x4b3294,_0x4a258e)=>(Pe(_0x30d446,_0x4b3294,_0x1b697d(0x280)),_0x4a258e),a=(_0x5a2b21,_0x1adbc4,_0xf10790)=>new Promise((_0x3b7fd8,_0x55535d)=>{const _0x7e8ce6=_0x1b697d;var _0x36748f=_0x318e3d=>{const _0x5c4f55=_0x38c5;try{_0x529627(_0xf10790[_0x5c4f55(0x233)](_0x318e3d));}catch(_0x1568f4){_0x55535d(_0x1568f4);}},_0x2f25b6=_0x5f4afe=>{try{_0x529627(_0xf10790['throw'](_0x5f4afe));}catch(_0x28c956){_0x55535d(_0x28c956);}},_0x529627=_0x1912c8=>_0x1912c8['done']?_0x3b7fd8(_0x1912c8[_0x7e8ce6(0x255)]):Promise[_0x7e8ce6(0x1f7)](_0x1912c8[_0x7e8ce6(0x255)])[_0x7e8ce6(0x206)](_0x36748f,_0x2f25b6);_0x529627((_0xf10790=_0xf10790[_0x7e8ce6(0x262)](_0x5a2b21,_0x1adbc4))[_0x7e8ce6(0x233)]());});function _0x38c5(_0x46217b,_0x367f6f){const _0x4bbf99=_0x4bbf();return _0x38c5=function(_0x38c5ab,_0x6a8a53){_0x38c5ab=_0x38c5ab-0x1e7;let _0x496832=_0x4bbf99[_0x38c5ab];return _0x496832;},_0x38c5(_0x46217b,_0x367f6f);}import{v4 as _0x4bc83f}from'uuid';var je=(_0x44243a=>(_0x44243a['UTM_SOURCE']=_0x1b697d(0x273),_0x44243a[_0x1b697d(0x231)]=_0x1b697d(0x239),_0x44243a[_0x1b697d(0x28c)]=_0x1b697d(0x261),_0x44243a[_0x1b697d(0x236)]=_0x1b697d(0x1f9),_0x44243a['UTM_CONTENT']=_0x1b697d(0x1ea),_0x44243a))(je||{}),Qe=new Set(Object[_0x1b697d(0x212)](je)),N=_0x1b697d(0x274),qe=_0x1b697d(0x22f),ze=_0x1b697d(0x264),Re='/attribute',Ge=_0x1b697d(0x202),Ae=_0x1b697d(0x22b),Ye=_0x1b697d(0x279),He=_0x1b697d(0x230),Xe='/set-identity';import _0x47dca6 from'axios';import{AxiosQueueManager as _0x1637b9}from'axios-queue-js';import _0x4fae96 from'axios-retry';import{AxiosError as _0x627d18}from'axios';var p=class extends Error{constructor(_0x42c921){const _0x3a8359=_0x1b697d;super(_0x42c921),this[_0x3a8359(0x265)]='MergnError';}};p[_0x1b697d(0x267)]=!0x1,p[_0x1b697d(0x211)]=!navigator['onLine'],p[_0x1b697d(0x201)]=!0x1,p['isInitialized']=!0x1;var At=(_0x4898db,_0x4a24d7)=>{const _0x286487=_0x1b697d;_0x4a24d7 instanceof p?console[_0x286487(0x26c)](_0x286487(0x21d)+_0x4898db,'MergnError:\x20'+_0x4a24d7[_0x286487(0x20d)]):_0x4a24d7 instanceof _0x627d18?(console['error']('OriginateFrom:\x20'+_0x4898db,'AxiosError:\x20'+_0x4a24d7[_0x286487(0x20d)]),_0x4a24d7[_0x286487(0x27f)]?(console[_0x286487(0x26c)](_0x286487(0x21d)+_0x4898db,'HTTP\x20Status:\x20'+_0x4a24d7[_0x286487(0x27f)][_0x286487(0x269)]),console['error'](_0x286487(0x21d)+_0x4898db,'Response\x20Data:',_0x4a24d7[_0x286487(0x27f)][_0x286487(0x22d)])):_0x4a24d7[_0x286487(0x258)]?console[_0x286487(0x26c)](_0x286487(0x21d)+_0x4898db+'\x0aNo\x20response\x20received.\x20Check\x20network\x20connection\x20or\x20server\x20issues.'):console[_0x286487(0x26c)](_0x286487(0x21d)+_0x4898db,_0x286487(0x218),_0x4a24d7['message'])):_0x4a24d7 instanceof Error?console[_0x286487(0x26c)](_0x286487(0x21d)+_0x4898db,_0x286487(0x28b),_0x4a24d7[_0x286487(0x20d)]):console[_0x286487(0x26c)](_0x286487(0x21d)+_0x4898db,'Unexpected\x20error:',String(_0x4a24d7));},T=(_0x10279c,_0x4b08c4,_0x474280)=>a(void 0x0,null,function*(){const _0xc2748a=_0x1b697d;try{if(p[_0xc2748a(0x267)])throw new p('Mergn\x20SDK\x20is\x20disabled!');if(_0x10279c!=='record\x20event'&&p[_0xc2748a(0x211)])throw new p(_0xc2748a(0x219));if(_0x10279c!=='init'&&!p[_0xc2748a(0x28d)])throw new p(_0xc2748a(0x20a));return yield _0x4b08c4();}catch(_0x5c3680){return _0x474280?_0x474280(_0x5c3680):p['showErrorLog']&&At(_0x10279c,_0x5c3680),null;}}),w,C,x,D,Z,_,Ue,ee,Ze,E=class E{constructor(){const _0x46c04f=_0x1b697d;o(this,Z,0x0);let _0x12ee04=_0x47dca6['create']({'baseURL':ze,'headers':{'Content-Type':_0x46c04f(0x254)}});d(E,C,_0x12ee04),d(E,x,new _0x1637b9({'client':_0x12ee04,'queueSize':0xa})),_0x4fae96(_0x12ee04,{'onRetry':_0x276d2c=>{const _0x12aba3=_0x46c04f;_0x276d2c>=u(E,D)?(p[_0x12aba3(0x201)]&&console[_0x12aba3(0x27e)](_0x12aba3(0x22e)),p[_0x12aba3(0x267)]=!0x0):Ke(this,Z)['_']++;},'retries':u(E,D),'retryDelay':_0x4e0d9e=>_0x4e0d9e*0x1388});}static[_0x1b697d(0x210)](_0x4463df){const _0x4ef0fc=_0x1b697d;this[_0x4ef0fc(0x263)]=_0x4463df,r(this,ee,Ze)['call'](this)[_0x4ef0fc(0x21f)][_0x4ef0fc(0x27d)][_0x4ef0fc(0x22c)][_0x4ef0fc(0x25d)]=_0x4463df;}static[_0x1b697d(0x20c)](_0x2fe389){const _0x26fbdd=_0x1b697d;return r(this,_,Ue)[_0x26fbdd(0x1f1)](this)[_0x26fbdd(0x20c)](_0x2fe389);}static[_0x1b697d(0x222)](_0x4c728f,_0x567696){return r(this,_,Ue)['call'](this)['post'](_0x4c728f,_0x567696||{});}};w=new WeakMap(),C=new WeakMap(),x=new WeakMap(),D=new WeakMap(),Z=new WeakMap(),_=new WeakSet(),Ue=function(){return u(E,w)||d(E,w,new E()),u(E,x);},ee=new WeakSet(),Ze=function(){return u(E,w)||d(E,w,new E()),u(E,C);},o(E,_),o(E,ee),o(E,w,void 0x0),o(E,C,void 0x0),o(E,x,void 0x0),o(E,D,0x2);function _0x4bbf(){const _0x4ba1de=['querySelectorAll','Button\x20Click','post','documentElement','SESSION_ID','DELAY','action','join','defineProperties','Web\x20Session\x20Concluded','8egkcgF','/event','common','data','Max\x20retries\x20reached.\x20Disabling\x20SDK.','Popup\x20Viewed','/customer','UTM_MEDIUM','304912dtPQQs','next','campaignCustomerInstanceId','offlineEvents','UTM_TERM','has','prototype','utm_medium','3558980eEYrAV','form','parse','customer','.u-close-button','read\x20from\x20private\x20field','userAgent','operating-system','events','Image\x20Click','Error\x20setting\x20identity','ttl','8cFcfdi','logout','record\x20event','campaignEntryTimeValue','string','page','href','click','Popup','write\x20to\x20private\x20field','propertyIsEnumerable','removeItem','\x20does\x20not\x20have\x20a\x20valid\x20eventProperty.','beforeunload','application/json','value','session','forEach','request','attributes','os-version','toLowerCase','Form\x20Submit','Authorization','[id^=\x22u_content_button_\x22]','className','eventProperty','utm_campaign','apply','apiKey','https://u23z4zsda8.execute-api.ap-southeast-1.amazonaws.com/Prod/sdk-management/api','name','campaignId','disableSDK','submit','status','entries','innerHeight','error','1020936lNfHoA','updateAttribute','Close\x20Click','indexOf','Platform','push','utm_source','Popup\x20Action','querySelector','toISOString','recordEvent','addEventListener','/record-event','uniqueIdentity','3520746pKnAGy','stringify','headers','log','response','access\x20private\x20method','SESSION_CREATED','div','\x20has\x20invalid\x20eventProperties:\x20','Microsoft\x20Edge','Event\x20','scrollY','IMMEDIATELY','SCROLL','location','load','Unexpected\x20error:','UTM_CAMPAIGN','isInitialized','setItem','Chrome','Cannot\x20','remove','Mobile','length','Firefox','initialTime','3899189btcQHJ','utm_content','Mozilla\x20Firefox','isArray','12993525TsbkSd','Error\x20posting\x20identity\x20data','test','attributeProperty','call','innerHTML','hostname','init','pathname','keys','resolve','hasOwnProperty','utm_term','set','map','getItem','preventDefault','412686lmaEhA','popup_container_','login','showErrorLog','/record-attribute','Error\x20fetching\x20event\x20data','close','brand','then','Error\x20posting\x20attribute\x20record','Customer\x20Id','getInstance','Mergn\x20not\x20initialized!','getTime','get','message','identity','Google\x20Chrome','updateAPIKey','offline','values','MSIE','scroll','Edg','User\x20Login','createElement','Error\x20setting\x20up\x20the\x20request:','Mergn\x20is\x20offline!','Error\x20posting\x20event\x20record','Viewed\x20Webpage','appendChild','OriginateFrom:\x20','getOwnPropertySymbols','defaults'];_0x4bbf=function(){return _0x4ba1de;};return _0x4bbf();}var Le=E,f=Le,b,h,M,B,P,V,F,$,R,te,v,I,ne,et,ie,tt,k,xe,J,De,se,rt,ae,ot,ce,nt,le,W,ue,pe,it,ge,st,Ee,at,K,_e,de,ct,A,re,j,Me,me,lt,Q,Be,Se,ut,ve,pt,Ie,gt,L,oe,he,Et,ye,dt,fe,mt,Te,St,q,Ve,we,vt,Oe,It,z,Fe,G,$e,Y,ke,O=class O{constructor(){o(this,R),o(this,v),o(this,ne),o(this,ie),o(this,k),o(this,J),o(this,se),o(this,ae),o(this,ce),o(this,pe),o(this,ge),o(this,Ee),o(this,K),o(this,de),o(this,A),o(this,j),o(this,me),o(this,Q),o(this,Se),o(this,ve),o(this,Ie),o(this,L),o(this,he),o(this,ye),o(this,fe),o(this,Te),o(this,q),o(this,we),o(this,Oe),o(this,z),o(this,G),o(this,Y),o(this,h,''),o(this,M,void 0x0),o(this,B,void 0x0),o(this,P,void 0x0),o(this,V,void 0x0),o(this,F,void 0x0),o(this,$,null),o(this,le,()=>{const _0x14b14c=_0x38c5;let _0x4d3a30=()=>{const _0x34ae40=_0x38c5;let _0x1a3e03=JSON['parse'](localStorage[_0x34ae40(0x1fc)]('action')||'{}');Object['keys'](_0x1a3e03)[_0x34ae40(0x257)](_0x17874f=>{const _0x28ed11=_0x34ae40;_0x1a3e03[_0x17874f][_0x28ed11(0x1e8)]=new Date()[_0x28ed11(0x20b)](),_0x1a3e03[_0x17874f][_0x28ed11(0x24b)]=window['location']['hostname']+window['location'][_0x28ed11(0x1f5)];}),localStorage[_0x34ae40(0x28e)](_0x34ae40(0x226),JSON['stringify'](_0x1a3e03));};_0x4d3a30(),window[_0x14b14c(0x278)](_0x14b14c(0x253),_0x4d3a30);}),o(this,W,_0x2914aa=>{const _0x12a5b7=_0x38c5;let _0x50deb7=JSON[_0x12a5b7(0x23c)](localStorage[_0x12a5b7(0x1fc)](_0x12a5b7(0x226))||'{}');_0x50deb7[_0x2914aa]&&delete _0x50deb7[_0x2914aa],localStorage['setItem'](_0x12a5b7(0x226),JSON['stringify'](_0x50deb7));}),o(this,ue,()=>{const _0x3d9f0c=_0x38c5;let _0x1e77c5=JSON['parse'](localStorage[_0x3d9f0c(0x1fc)](_0x3d9f0c(0x226))||'{}');Object[_0x3d9f0c(0x1f6)](_0x1e77c5)['forEach'](_0x58e280=>{const _0x553112=_0x3d9f0c;_0x1e77c5[_0x58e280][_0x553112(0x20d)][_0x553112(0x265)]==='Popup'&&r(this,Q,Be)[_0x553112(0x1f1)](this,_0x1e77c5[_0x58e280][_0x553112(0x266)]);});});}static['getInstance'](){return u(O,b)||d(O,b,new O()),u(O,b);}['init'](_0x113952){const _0x1c1499=_0x1b697d;T(_0x1c1499(0x1f4),()=>a(this,null,function*(){const _0x4ed499=_0x1c1499;r(this,se,rt)[_0x4ed499(0x1f1)](this,_0x113952),yield r(this,k,xe)[_0x4ed499(0x1f1)](this),p[_0x4ed499(0x28d)]=!0x0,setInterval(()=>a(this,null,function*(){const _0x36c224=_0x4ed499;yield r(this,k,xe)[_0x36c224(0x1f1)](this);}),0x493e0),yield r(this,R,te)[_0x4ed499(0x1f1)](this),window[_0x4ed499(0x278)]('online',()=>a(this,null,function*(){const _0x3d397a=_0x4ed499;p[_0x3d397a(0x211)]=!0x1;let _0x16790e=JSON['parse'](localStorage[_0x3d397a(0x1fc)]('offlineEvents')||'[]');Array[_0x3d397a(0x1ec)](_0x16790e)&&(yield r(this,q,Ve)[_0x3d397a(0x1f1)](this,{'customerId':u(this,h),'events':_0x16790e}),localStorage[_0x3d397a(0x251)]('offlineEvents')),r(this,R,te)[_0x3d397a(0x1f1)](this),r(this,j,Me)['call'](this);})),window[_0x4ed499(0x278)](_0x4ed499(0x211),()=>{p['offline']=!0x0;}),window[_0x4ed499(0x278)](_0x4ed499(0x28a),()=>{const _0x2c758a=_0x4ed499;u(this,ue)[_0x2c758a(0x1f1)](this);});let _0x2720c4=history['pushState'];history['pushState']=(..._0x6866c3)=>{const _0x14b910=_0x4ed499;_0x2720c4['apply'](history,_0x6866c3),r(this,J,De)[_0x14b910(0x1f1)](this);},r(this,J,De)[_0x4ed499(0x1f1)](this);}));}[_0x1b697d(0x201)](_0x54ce52=!0x1){p['showErrorLog']=_0x54ce52;}['recordAttribute'](_0x2c53b2){return a(this,null,function*(){yield T('recordAttribute',()=>a(this,null,function*(){const _0x502808=_0x38c5;yield r(this,G,$e)['call'](this);let _0x181726=JSON[_0x502808(0x23c)](localStorage[_0x502808(0x1fc)]('attributes')||'[]');if(_0x181726&&Object[_0x502808(0x1f6)](_0x181726)[_0x502808(0x293)]>0x0){let _0x34c9e8=[];_0x2c53b2&&Object[_0x502808(0x1f6)](_0x2c53b2)[_0x502808(0x293)]>0x0&&Object[_0x502808(0x1f6)](_0x2c53b2)['forEach'](_0x4ab6a2=>{_0x181726['hasOwnProperty'](_0x4ab6a2)&&_0x34c9e8['push']({'attributeId':_0x181726[_0x4ab6a2]['id'],'attributeProperties':[],'value':_0x2c53b2[_0x4ab6a2]});});let _0x23d2c1=[{'attributes':_0x34c9e8,'customerId':u(this,h)}];yield r(this,Y,ke)[_0x502808(0x1f1)](this,_0x23d2c1);}}));});}[_0x1b697d(0x200)](_0x319e64){return a(this,null,function*(){yield T('login',()=>a(this,null,function*(){const _0x2306d7=_0x38c5;yield r(this,A,re)[_0x2306d7(0x1f1)](this,_0x319e64),yield r(this,v,I)[_0x2306d7(0x1f1)](this,_0x2306d7(0x216),[{'eventProperty':_0x2306d7(0x208),'value':localStorage[_0x2306d7(0x1fc)]('customer')||0x0}]);}));});}[_0x1b697d(0x26e)](_0x5aa1c8,_0x303918,_0x36dcaa){return a(this,null,function*(){const _0x26ab15=_0x38c5;yield r(this,G,$e)['call'](this);let _0x5a8695=JSON[_0x26ab15(0x23c)](localStorage[_0x26ab15(0x1fc)](_0x26ab15(0x259))||'{}');if(_0x5a8695&&Object['keys'](_0x5a8695)['length']>0x0&&_0x5a8695[_0x26ab15(0x1f8)](_0x5aa1c8)){let _0x29e16f=_0x5a8695[_0x5aa1c8],_0x59c765=_0x29e16f[_0x26ab15(0x1f0)],_0x46a613=[];_0x36dcaa&&Object['keys'](_0x36dcaa)[_0x26ab15(0x293)]>0x0&&Object['keys'](_0x36dcaa)['forEach'](_0x38299b=>{const _0x54727b=_0x26ab15;_0x59c765[_0x54727b(0x1f8)](_0x38299b)&&_0x46a613['push']({'attributePropertyId':_0x59c765[_0x38299b]['id'],'value':_0x36dcaa[_0x38299b]});});let _0x21e99e=[{'attributes':[{'attributeId':_0x29e16f['id'],'attributeProperties':_0x46a613,'value':_0x303918}],'customerId':u(this,h)}];yield r(this,Y,ke)[_0x26ab15(0x1f1)](this,_0x21e99e);}});}['logout'](){return a(this,null,function*(){const _0x42fdee=_0x38c5;yield T(_0x42fdee(0x247),()=>a(this,null,function*(){const _0x26674d=_0x42fdee;r(this,z,Fe)[_0x26674d(0x1f1)](this),r(this,v,I)[_0x26674d(0x1f1)](this,'User\x20Logout',[{'eventProperty':_0x26674d(0x208),'value':localStorage[_0x26674d(0x1fc)]('customer')||0x0}]);}));});}[_0x1b697d(0x277)](_0x56cc80,_0x28042f){const _0x41d286=_0x1b697d;T(_0x41d286(0x248),()=>a(this,null,function*(){const _0x230ab2=_0x41d286;yield r(this,v,I)[_0x230ab2(0x1f1)](this,_0x56cc80,_0x28042f);}));}};b=new WeakMap(),h=new WeakMap(),M=new WeakMap(),B=new WeakMap(),P=new WeakMap(),V=new WeakMap(),F=new WeakMap(),$=new WeakMap(),R=new WeakSet(),te=function(){return a(this,null,function*(){const _0x190de3=_0x38c5;let _0xa5b33d=localStorage['getItem'](_0x190de3(0x245)),_0x38b4cd=!0x1;if(_0xa5b33d){if(_0x38b4cd=new Date()['getTime']()-parseInt(_0xa5b33d,0xa)>0x124f80,_0x38b4cd){let _0x4e762c=localStorage[_0x190de3(0x1fc)](_0x190de3(0x256)),_0x53b1de=localStorage[_0x190de3(0x1fc)](_0x190de3(0x245));_0x4e762c&&_0x53b1de&&r(this,v,I)[_0x190de3(0x1f1)](this,_0x190de3(0x229),[{'eventProperty':'SESSION_ID','value':localStorage[_0x190de3(0x1fc)](_0x190de3(0x256))},{'eventProperty':_0x190de3(0x281),'value':new Date(parseInt(_0x53b1de,0xa))[_0x190de3(0x276)]()}]),r(this,z,Fe)[_0x190de3(0x1f1)](this),localStorage[_0x190de3(0x28e)](_0x190de3(0x245),''+new Date()[_0x190de3(0x20b)]());}}else localStorage[_0x190de3(0x28e)](_0x190de3(0x245),''+new Date()[_0x190de3(0x20b)]());(!_0xa5b33d||_0x38b4cd||r(this,ae,ot)[_0x190de3(0x1f1)](this))&&(r(this,pe,it)[_0x190de3(0x1f1)](this),yield r(this,A,re)[_0x190de3(0x1f1)](this),yield r(this,ce,nt)[_0x190de3(0x1f1)](this));});},v=new WeakSet(),I=function(_0x10d71e,_0x339a50,_0x18a9cb,_0x58ab34){return a(this,null,function*(){const _0x23340b=_0x38c5;yield T(_0x23340b(0x248),()=>a(this,null,function*(){const _0x100b6b=_0x23340b;var _0x1d58d0;_0x10d71e!==_0x100b6b(0x229)&&(yield r(this,R,te)[_0x100b6b(0x1f1)](this));let _0x8f0543=[];_0x339a50&&_0x8f0543[_0x100b6b(0x272)](..._0x339a50),_0x8f0543[_0x100b6b(0x272)]({'eventProperty':_0x100b6b(0x271),'value':u(this,P)}),_0x8f0543['push']({'eventProperty':_0x100b6b(0x241),'value':u(this,F)}),_0x8f0543['push']({'eventProperty':_0x100b6b(0x25a),'value':u(this,V)});let _0x2ad3cc=r(this,ye,dt)[_0x100b6b(0x1f1)](this),_0x4e9773=r(this,fe,mt)[_0x100b6b(0x1f1)](this,_0x2ad3cc,_0x10d71e,_0x8f0543);if(typeof _0x4e9773==_0x100b6b(0x24a)){p[_0x100b6b(0x201)]&&console[_0x100b6b(0x26c)](_0x4e9773);return;}r(this,j,Me)['call'](this);let {id:_0x43ced1}=_0x2ad3cc[_0x10d71e],_0x377129=r(this,Te,St)['call'](this,X(be(X({},_0x18a9cb?{'campaignCustomerInstanceId':_0x18a9cb}:{}),{'eventId':_0x43ced1,'eventProperties':_0x4e9773,'sessionId':localStorage[_0x100b6b(0x1fc)](_0x100b6b(0x256))||''}),_0x58ab34?{'name':_0x58ab34}:{}));if(p[_0x100b6b(0x211)]){let _0x5d8ccf=JSON[_0x100b6b(0x23c)](localStorage[_0x100b6b(0x1fc)]('offlineEvents')||'[]');_0x5d8ccf[_0x100b6b(0x293)]<=0x32&&(_0x5d8ccf[_0x100b6b(0x272)](..._0x377129[_0x100b6b(0x242)]),localStorage[_0x100b6b(0x28e)](_0x100b6b(0x235),JSON[_0x100b6b(0x27c)](_0x5d8ccf)));return;}let _0x201230=yield r(this,q,Ve)[_0x100b6b(0x1f1)](this,_0x377129);(_0x1d58d0=_0x201230==null?void 0x0:_0x201230[_0x100b6b(0x22d)])==null||_0x1d58d0[_0x100b6b(0x257)](_0x3a3110=>{const _0x2e3703=_0x100b6b;r(this,we,vt)[_0x2e3703(0x1f1)](this,_0x3a3110[_0x2e3703(0x20d)][_0x2e3703(0x265)])&&(r(this,Oe,It)[_0x2e3703(0x1f1)](this,_0x3a3110),u(this,le)[_0x2e3703(0x1f1)](this),r(this,Q,Be)[_0x2e3703(0x1f1)](this,_0x3a3110[_0x2e3703(0x266)]));});}));});},ne=new WeakSet(),et=function(){const _0x992df=_0x1b697d;let _0x7d7dcc=navigator[_0x992df(0x240)][_0x992df(0x25b)]();return/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i[_0x992df(0x1ef)](_0x7d7dcc)?_0x992df(0x292):/windows|macintosh|linux|x11/i[_0x992df(0x1ef)](_0x7d7dcc)?'Web':'Unknown';},ie=new WeakSet(),tt=function(){const _0x58bbf4=_0x1b697d;let _0x3c9fb3=navigator[_0x58bbf4(0x240)],_0x493f3d;return _0x3c9fb3[_0x58bbf4(0x270)](_0x58bbf4(0x28f))>-0x1?_0x493f3d=_0x58bbf4(0x20f):_0x3c9fb3['indexOf']('Safari')>-0x1?_0x493f3d='Safari':_0x3c9fb3[_0x58bbf4(0x270)](_0x58bbf4(0x1e7))>-0x1?_0x493f3d=_0x58bbf4(0x1eb):_0x3c9fb3['indexOf'](_0x58bbf4(0x215))>-0x1?_0x493f3d=_0x58bbf4(0x284):_0x3c9fb3[_0x58bbf4(0x270)](_0x58bbf4(0x213))>-0x1?_0x493f3d='Internet\x20Explorer':_0x493f3d='Unknown',_0x493f3d;},k=new WeakSet(),xe=function(){return a(this,null,function*(){const _0x5a75c5=_0x38c5;try{yield f['get'](_0x5a75c5(0x205));}catch(_0xa6c647){throw p[_0x5a75c5(0x267)]=!0x0,_0xa6c647[_0x5a75c5(0x20d)];}});},J=new WeakSet(),De=function(){return a(this,null,function*(){const _0x5ad4ae=_0x38c5;var _0x5c0587;let _0xd8e232=(_0x5c0587=window==null?void 0x0:window[_0x5ad4ae(0x289)])==null?void 0x0:_0x5c0587['href'];if(_0xd8e232!==u(this,$)){d(this,$,_0xd8e232);let _0x471659=[];new URLSearchParams(new URL(window['location'][_0x5ad4ae(0x24c)])['search'])[_0x5ad4ae(0x257)]((_0x40c8c9,_0x80007f)=>a(this,null,function*(){const _0x50d242=_0x5ad4ae;Qe[_0x50d242(0x237)](_0x80007f)&&_0x471659['push']({'eventProperty':_0x80007f,'value':_0x40c8c9});})),yield r(this,v,I)['call'](this,_0x5ad4ae(0x21b),[{'eventProperty':'URL','value':window[_0x5ad4ae(0x289)][_0x5ad4ae(0x1f5)]},..._0x471659]);}});},se=new WeakSet(),rt=function(_0x24e397){const _0x3f9f58=_0x1b697d;f[_0x3f9f58(0x210)](_0x24e397),d(this,P,navigator[_0x3f9f58(0x240)]),d(this,V,r(this,ie,tt)[_0x3f9f58(0x1f1)](this)),d(this,F,r(this,ne,et)[_0x3f9f58(0x1f1)](this));},ae=new WeakSet(),ot=function(){const _0x133be8=_0x1b697d;return!localStorage[_0x133be8(0x1fc)](_0x133be8(0x242))||!localStorage[_0x133be8(0x1fc)](_0x133be8(0x23d))||!localStorage['getItem'](_0x133be8(0x259))||!localStorage['getItem'](_0x133be8(0x27a))||!localStorage[_0x133be8(0x1fc)](_0x133be8(0x256))||!u(this,h);},ce=new WeakSet(),nt=function(){return a(this,null,function*(){const _0x3ece38=_0x38c5;yield r(this,ge,st)[_0x3ece38(0x1f1)](this),yield r(this,K,_e)['call'](this),yield r(this,A,re)[_0x3ece38(0x1f1)](this);});},le=new WeakMap(),W=new WeakMap(),ue=new WeakMap(),pe=new WeakSet(),it=function(){const _0x12204d=_0x1b697d;let _0x2942a0=localStorage['getItem']('uniqueIdentity');return _0x2942a0||(_0x2942a0=_0x4bc83f(),localStorage[_0x12204d(0x28e)](_0x12204d(0x27a),_0x2942a0)),_0x2942a0;},ge=new WeakSet(),st=function(){return a(this,null,function*(){const _0x45c657=_0x38c5;if(!localStorage[_0x45c657(0x1fc)]('events')){let _0xad7385=(yield r(this,Ee,at)[_0x45c657(0x1f1)](this))[_0x45c657(0x22d)];_0xad7385&&(d(this,M,_0xad7385),localStorage[_0x45c657(0x28e)]('events',JSON[_0x45c657(0x27c)](u(this,M))));}});},Ee=new WeakSet(),at=function(){return a(this,null,function*(){const _0x3c8050=_0x38c5;try{return(yield f[_0x3c8050(0x20c)](''+Ae))['data'];}catch(_0x1889ca){throw new Error(_0x3c8050(0x203));}});},K=new WeakSet(),_e=function(){return a(this,null,function*(){const _0x3bb4d9=_0x38c5;if(!localStorage[_0x3bb4d9(0x1fc)](_0x3bb4d9(0x259))){let _0x593a6e=(yield r(this,de,ct)[_0x3bb4d9(0x1f1)](this))['data'];_0x593a6e&&(d(this,B,_0x593a6e),localStorage[_0x3bb4d9(0x28e)]('attributes',JSON[_0x3bb4d9(0x27c)](u(this,B))));}});},de=new WeakSet(),ct=function(){return a(this,null,function*(){const _0x48702c=_0x38c5;try{return(yield f[_0x48702c(0x20c)](''+Re))[_0x48702c(0x22d)];}catch(_0x2545cb){throw new Error('Error\x20fetching\x20attribute\x20data');}});},A=new WeakSet(),re=function(_0x38f937){return a(this,null,function*(){const _0x350a32=_0x38c5;localStorage[_0x350a32(0x1fc)](_0x350a32(0x256))||(localStorage['setItem'](_0x350a32(0x256),_0x4bc83f()),yield r(this,v,I)[_0x350a32(0x1f1)](this,'Web\x20Session\x20Started',[{'eventProperty':_0x350a32(0x224),'value':localStorage[_0x350a32(0x1fc)]('session')},{'eventProperty':'SESSION_CREATED','value':new Date(parseInt(localStorage['getItem'](_0x350a32(0x245))||'',0xa))['toISOString']()}]));let _0x1f0e34=localStorage['getItem'](_0x350a32(0x23d));if(!_0x38f937&&_0x1f0e34){d(this,h,_0x1f0e34);return;}let _0x2e6c88={'deviceId':localStorage[_0x350a32(0x1fc)]('uniqueIdentity')||_0x4bc83f(),'os':u(this,P)};_0x38f937&&(_0x2e6c88[_0x350a32(0x20e)]=_0x38f937);try{let _0x3b9cdc=(yield r(this,me,lt)[_0x350a32(0x1f1)](this,_0x2e6c88))[_0x350a32(0x22d)];_0x3b9cdc!==void 0x0&&(d(this,h,_0x3b9cdc),localStorage['setItem'](_0x350a32(0x23d),u(this,h)));}catch(_0x222598){throw new Error(_0x350a32(0x244));}});},j=new WeakSet(),Me=function(){const _0xbcc86d=_0x1b697d;localStorage['setItem'](_0xbcc86d(0x245),''+new Date()[_0xbcc86d(0x20b)]());},me=new WeakSet(),lt=function(_0x272343){return a(this,null,function*(){const _0xa44e61=_0x38c5;try{return(yield f['post'](''+He+Xe,_0x272343))['data'];}catch(_0x746865){throw new Error(_0xa44e61(0x1ee));}});},Q=new WeakSet(),Be=function(_0x10795f){const _0x216aa0=_0x1b697d;let _0x2e2e2e=r(this,Se,ut)['call'](this);if(_0x2e2e2e!=null&&_0x2e2e2e[_0x10795f])switch(_0x2e2e2e[_0x10795f]['campaignEntryTime']){case _0x216aa0(0x225):{r(this,Ie,gt)[_0x216aa0(0x1f1)](this,_0x2e2e2e[_0x10795f]);break;}case _0x216aa0(0x287):{r(this,L,oe)[_0x216aa0(0x1f1)](this,_0x2e2e2e[_0x10795f]);break;}case _0x216aa0(0x288):{r(this,ve,pt)[_0x216aa0(0x1f1)](this,_0x2e2e2e[_0x10795f]);break;}default:return;}},Se=new WeakSet(),ut=function(){const _0x58cdfe=_0x1b697d;let _0xe79583=localStorage['getItem'](_0x58cdfe(0x226));return _0xe79583?JSON['parse'](_0xe79583):null;},ve=new WeakSet(),pt=function(_0x2b1a4e){const _0x2222e9=_0x1b697d;window[_0x2222e9(0x278)](_0x2222e9(0x214),()=>{const _0x3f586b=_0x2222e9;var _0x2bd47b;let _0x5ac545=window[_0x3f586b(0x26b)],_0xc1c26f=document[_0x3f586b(0x223)]['scrollHeight'];window[_0x3f586b(0x286)]/(_0xc1c26f-_0x5ac545)*0x64>(((_0x2bd47b=_0x2b1a4e['campaignEntryTimeValue'])==null?void 0x0:_0x2bd47b[_0x3f586b(0x255)])||0x0)&&r(this,L,oe)['call'](this,_0x2b1a4e);});},Ie=new WeakSet(),gt=function(_0x55a62b){const _0x244a3e=_0x1b697d;var _0x28bf35;let _0x7f11e4=_0x55a62b[_0x244a3e(0x1e8)]-0x1f4+(((_0x28bf35=_0x55a62b[_0x244a3e(0x249)])==null?void 0x0:_0x28bf35[_0x244a3e(0x255)])||0x0)*0x3e8-new Date()['getTime']();_0x7f11e4>0x0&&_0x55a62b['page']===window[_0x244a3e(0x289)][_0x244a3e(0x1f3)]+window['location'][_0x244a3e(0x1f5)]&&setTimeout(()=>{const _0x12189d=_0x244a3e;u(this,W)[_0x12189d(0x1f1)](this,_0x55a62b[_0x12189d(0x266)]),r(this,L,oe)[_0x12189d(0x1f1)](this,_0x55a62b);},_0x7f11e4);},L=new WeakSet(),oe=function(_0x11e137){const _0x6b9a91=_0x1b697d;let _0x5a8623=r(this,he,Et)[_0x6b9a91(0x1f1)](this,_0x6b9a91(0x282),_0x11e137);document['body'][_0x6b9a91(0x21c)](_0x5a8623),r(this,v,I)[_0x6b9a91(0x1f1)](this,qe,[{'eventProperty':'Campaign\x20Id','value':_0x11e137['campaignId']}],_0x11e137[_0x6b9a91(0x234)],'view'),u(this,W)[_0x6b9a91(0x1f1)](this,_0x11e137[_0x6b9a91(0x266)]);},he=new WeakSet(),Et=function(_0x438ae0,_0xdf4fb){const _0x424c74=_0x1b697d;var _0xfb1114;let {campaignCustomerInstanceId:_0x257324,campaignId:_0x4d7c0e,message:{design:_0x286ef9}}=_0xdf4fb,_0x54e2e9=document[_0x424c74(0x217)](_0x438ae0);return _0x54e2e9['id']=_0x424c74(0x1ff)+_0x4d7c0e,_0x54e2e9[_0x424c74(0x1f2)]=_0x286ef9,_0x54e2e9[_0x424c74(0x220)]('[id^=\x22u_content_form_\x22]')['forEach'](_0x5608b1=>{const _0x5dcb65=_0x424c74;let _0x5025eb=_0x5608b1[_0x5dcb65(0x275)](_0x5dcb65(0x23b));_0x5025eb&&_0x5025eb[_0x5dcb65(0x278)](_0x5dcb65(0x268),_0x3cdf3e=>a(this,null,function*(){const _0x1cf453=_0x5dcb65;_0x3cdf3e[_0x1cf453(0x1fd)]();let _0x1f3dad=new FormData(_0x5025eb),_0x110277={};for(let [_0x18c2b5,_0x239c65]of _0x1f3dad[_0x1cf453(0x26a)]())_0x110277[_0x18c2b5]=_0x239c65;yield r(this,v,I)[_0x1cf453(0x1f1)](this,N,[{'eventProperty':_0x1cf453(0x25c),'value':JSON[_0x1cf453(0x27c)]({'campaignId':_0x4d7c0e,'formId':_0x5608b1['id'],'formValues':_0x110277})}],_0x257324,_0x1cf453(0x23b));}));}),(_0xfb1114=_0x54e2e9['querySelector'](_0x424c74(0x23e)))==null||_0xfb1114['addEventListener']('click',()=>a(this,null,function*(){const _0x5bd245=_0x424c74;_0x54e2e9[_0x5bd245(0x291)](),yield r(this,v,I)[_0x5bd245(0x1f1)](this,N,[{'eventProperty':_0x5bd245(0x26f),'value':JSON['stringify']({'campaignId':_0x4d7c0e})}],_0x257324,_0x5bd245(0x204));})),_0x54e2e9[_0x424c74(0x220)](_0x424c74(0x25e))[_0x424c74(0x257)](_0x1ddc77=>{const _0x6207df=_0x424c74;_0x1ddc77[_0x6207df(0x278)](_0x6207df(0x24d),()=>a(this,null,function*(){const _0x4c9703=_0x6207df;yield r(this,v,I)['call'](this,N,[{'eventProperty':_0x4c9703(0x221),'value':JSON[_0x4c9703(0x27c)]({'buttonId':_0x1ddc77['id'],'campaignId':_0x4d7c0e})}],_0x257324,_0x4c9703(0x24d));}));}),_0x54e2e9[_0x424c74(0x220)]('.u-popup-container\x20img')[_0x424c74(0x257)](_0x55bf51=>{const _0x4d0bba=_0x424c74;_0x55bf51[_0x4d0bba(0x278)](_0x4d0bba(0x24d),()=>a(this,null,function*(){const _0x32e9e0=_0x4d0bba;yield r(this,v,I)[_0x32e9e0(0x1f1)](this,N,[{'eventProperty':_0x32e9e0(0x243),'value':JSON[_0x32e9e0(0x27c)]({'campaignId':_0x4d7c0e,'imageClassName':_0x55bf51[_0x32e9e0(0x25f)],'imageId':_0x55bf51['id']})}],_0x257324,'click');}));}),_0x54e2e9;},ye=new WeakSet(),dt=function(){const _0x471680=_0x1b697d;let _0x668728=localStorage['getItem'](_0x471680(0x242));return _0x668728?JSON[_0x471680(0x23c)](_0x668728):{};},fe=new WeakSet(),mt=function(_0x99c3d,_0x353ee3,_0x147283){const _0x173280=_0x1b697d;if(!_0x99c3d[_0x173280(0x1f8)](_0x353ee3))return _0x173280(0x285)+_0x353ee3+'\x20is\x20not\x20valid.';if(!_0x147283)return[];let _0x8fe2f7=_0x99c3d[_0x353ee3];if(!(_0x8fe2f7!=null&&_0x8fe2f7[_0x173280(0x260)]))return _0x173280(0x285)+_0x353ee3+_0x173280(0x252);let _0x3fcada=_0x147283['filter'](({eventProperty:_0x239785})=>!_0x8fe2f7[_0x173280(0x260)][_0x173280(0x1f8)](_0x239785))[_0x173280(0x1fb)](({eventProperty:_0xe5717b})=>_0xe5717b);return _0x3fcada[_0x173280(0x293)]>0x0?_0x173280(0x285)+_0x353ee3+_0x173280(0x283)+_0x3fcada[_0x173280(0x227)](',\x20')+'.':_0x147283['map'](({eventProperty:_0x1e39d7,value:_0x5c3452})=>({'eventPropertyId':_0x8fe2f7[_0x173280(0x260)][_0x1e39d7]['id'],'value':_0x5c3452}));},Te=new WeakSet(),St=function(_0x48b9e8){return{'customerId':u(this,h),'events':[_0x48b9e8]};},q=new WeakSet(),Ve=function(_0xc6071){return a(this,null,function*(){const _0x3485d3=_0x38c5;try{return(yield f[_0x3485d3(0x222)](''+Ae+Ye,_0xc6071))['data'];}catch(_0x42794c){throw new Error(_0x3485d3(0x21a));}});},we=new WeakSet(),vt=function(_0x30a5c3){const _0x2cc329=_0x1b697d;return _0x30a5c3===_0x2cc329(0x24e);},Oe=new WeakSet(),It=function(_0x3e84d9){const _0x52c8fa=_0x1b697d;let _0x5f94a=JSON[_0x52c8fa(0x23c)](localStorage[_0x52c8fa(0x1fc)](_0x52c8fa(0x226))||'{}');_0x5f94a[_0x3e84d9[_0x52c8fa(0x266)]]=be(X({},_0x3e84d9),{'initialTime':new Date()[_0x52c8fa(0x20b)](),'page':window['location']['hostname']+window[_0x52c8fa(0x289)][_0x52c8fa(0x1f5)]}),localStorage[_0x52c8fa(0x28e)](_0x52c8fa(0x226),JSON['stringify'](_0x5f94a));},z=new WeakSet(),Fe=function(){const _0x108050=_0x1b697d;localStorage[_0x108050(0x251)](_0x108050(0x226)),localStorage[_0x108050(0x251)]('events'),localStorage[_0x108050(0x251)]('attributes'),localStorage[_0x108050(0x251)]('offlineEvents'),localStorage['removeItem'](_0x108050(0x245)),localStorage[_0x108050(0x251)](_0x108050(0x256));},G=new WeakSet(),$e=function(){return a(this,null,function*(){const _0x42847c=_0x38c5;localStorage[_0x42847c(0x1fc)](_0x42847c(0x259))||(yield r(this,K,_e)['call'](this));});},Y=new WeakSet(),ke=function(_0x36f609){return a(this,null,function*(){const _0xd50eff=_0x38c5;try{return yield f[_0xd50eff(0x222)](''+Re+Ge,_0x36f609);}catch(_0x5e3fcc){throw new Error(_0xd50eff(0x207));}});},o(O,b,void 0x0);var Ce=O,ht=Ce[_0x1b697d(0x209)](),Rr=ht;export{Rr as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mergn-webapp-sdk",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "",
5
5
  "author": "yaseenmergn123",
6
6
  "main": "./dist/index.js",