mergn-webapp-sdk 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -11,7 +11,7 @@ declare class MergnService {
11
11
  recordEvent(eventName: string, eventProperties?: {
12
12
  eventProperty: string;
13
13
  value: any;
14
- }[]): Promise<void>;
14
+ }[]): void;
15
15
  }
16
16
  declare const _default: MergnService;
17
17
 
package/dist/index.d.ts CHANGED
@@ -11,7 +11,7 @@ declare class MergnService {
11
11
  recordEvent(eventName: string, eventProperties?: {
12
12
  eventProperty: string;
13
13
  value: any;
14
- }[]): Promise<void>;
14
+ }[]): void;
15
15
  }
16
16
  declare const _default: MergnService;
17
17
 
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function _0x55ec(_0x16c685,_0x2b5834){const _0x3239fe=_0x3239();return _0x55ec=function(_0x55ec32,_0x58a0e4){_0x55ec32=_0x55ec32-0x103;let _0x13156c=_0x3239fe[_0x55ec32];return _0x13156c;},_0x55ec(_0x16c685,_0x2b5834);}const _0x4df8fc=_0x55ec;(function(_0x584f51,_0x48894f){const _0x3396c8=_0x55ec,_0x630832=_0x584f51();while(!![]){try{const _0x5d130f=-parseInt(_0x3396c8(0x14e))/0x1+-parseInt(_0x3396c8(0x15d))/0x2*(-parseInt(_0x3396c8(0x13f))/0x3)+-parseInt(_0x3396c8(0x15c))/0x4+-parseInt(_0x3396c8(0x140))/0x5*(parseInt(_0x3396c8(0x120))/0x6)+-parseInt(_0x3396c8(0x189))/0x7*(-parseInt(_0x3396c8(0x138))/0x8)+parseInt(_0x3396c8(0x15a))/0x9*(-parseInt(_0x3396c8(0x17e))/0xa)+-parseInt(_0x3396c8(0x15e))/0xb*(-parseInt(_0x3396c8(0x131))/0xc);if(_0x5d130f===_0x48894f)break;else _0x630832['push'](_0x630832['shift']());}catch(_0x4117fc){_0x630832['push'](_0x630832['shift']());}}}(_0x3239,0x76604));var de=Object[_0x4df8fc(0x115)],P=Object[_0x4df8fc(0x137)],pe=Object[_0x4df8fc(0x15f)],ge=Object[_0x4df8fc(0x19c)],Ee=Object['getOwnPropertyDescriptors'],me=Object['getOwnPropertyNames'],Lt=Object[_0x4df8fc(0x19b)],he=Object[_0x4df8fc(0x13d)],Dt=Object['prototype'][_0x4df8fc(0x122)],ye=Object[_0x4df8fc(0x107)][_0x4df8fc(0x16f)],xt=(_0x1fe49d,_0x3a3fda,_0x2ba9df)=>_0x3a3fda in _0x1fe49d?P(_0x1fe49d,_0x3a3fda,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2ba9df}):_0x1fe49d[_0x3a3fda]=_0x2ba9df,gt=(_0x2e4410,_0x718998)=>{for(var _0x528e7 in _0x718998||(_0x718998={}))Dt['call'](_0x718998,_0x528e7)&&xt(_0x2e4410,_0x528e7,_0x718998[_0x528e7]);if(Lt){for(var _0x528e7 of Lt(_0x718998))ye['call'](_0x718998,_0x528e7)&&xt(_0x2e4410,_0x528e7,_0x718998[_0x528e7]);}return _0x2e4410;},Et=(_0x3b40a8,_0x30a070)=>pe(_0x3b40a8,Ee(_0x30a070)),ve=(_0x51b479,_0x321e89)=>{for(var _0x6633c6 in _0x321e89)P(_0x51b479,_0x6633c6,{'get':_0x321e89[_0x6633c6],'enumerable':!0x0});},Ct=(_0x2d8146,_0x556993,_0x3bb896,_0x14f5b3)=>{const _0x56eda7=_0x4df8fc;if(_0x556993&&typeof _0x556993==_0x56eda7(0x130)||typeof _0x556993==_0x56eda7(0x165)){for(let _0x51d807 of me(_0x556993))!Dt['call'](_0x2d8146,_0x51d807)&&_0x51d807!==_0x3bb896&&P(_0x2d8146,_0x51d807,{'get':()=>_0x556993[_0x51d807],'enumerable':!(_0x14f5b3=ge(_0x556993,_0x51d807))||_0x14f5b3['enumerable']});}return _0x2d8146;},_t=(_0x5c6d6f,_0x357dd3,_0x22063a)=>(_0x22063a=_0x5c6d6f!=null?de(he(_0x5c6d6f)):{},Ct(_0x357dd3||!_0x5c6d6f||!_0x5c6d6f[_0x4df8fc(0x19d)]?P(_0x22063a,_0x4df8fc(0x18e),{'value':_0x5c6d6f,'enumerable':!0x0}):_0x22063a,_0x5c6d6f)),fe=_0x3679cd=>Ct(P({},_0x4df8fc(0x19d),{'value':!0x0}),_0x3679cd),mt=(_0x249f69,_0x33a34b,_0x411589)=>{const _0x231087=_0x4df8fc;if(!_0x33a34b[_0x231087(0x185)](_0x249f69))throw TypeError(_0x231087(0x13a)+_0x411589);},u=(_0x2645c1,_0x158347,_0x20808e)=>(mt(_0x2645c1,_0x158347,'read\x20from\x20private\x20field'),_0x20808e?_0x20808e[_0x4df8fc(0x19f)](_0x2645c1):_0x158347['get'](_0x2645c1)),i=(_0x114ff4,_0x1d53a2,_0x3ce04f)=>{const _0x30cd38=_0x4df8fc;if(_0x1d53a2[_0x30cd38(0x185)](_0x114ff4))throw TypeError(_0x30cd38(0x170));_0x1d53a2 instanceof WeakSet?_0x1d53a2[_0x30cd38(0x169)](_0x114ff4):_0x1d53a2[_0x30cd38(0x173)](_0x114ff4,_0x3ce04f);},m=(_0x31680b,_0x4008ea,_0x27d88f,_0x185e0b)=>(mt(_0x31680b,_0x4008ea,'write\x20to\x20private\x20field'),_0x185e0b?_0x185e0b[_0x4df8fc(0x19f)](_0x31680b,_0x27d88f):_0x4008ea[_0x4df8fc(0x173)](_0x31680b,_0x27d88f),_0x27d88f),$t=(_0x907f9b,_0x240e47,_0x310212,_0x19c019)=>({set '_'(_0x91b4f2){m(_0x907f9b,_0x240e47,_0x91b4f2,_0x310212);},get '_'(){return u(_0x907f9b,_0x240e47,_0x19c019);}}),s=(_0x4728ca,_0x25a58f,_0x1dff4c)=>(mt(_0x4728ca,_0x25a58f,_0x4df8fc(0x134)),_0x1dff4c),a=(_0xab7535,_0x330086,_0x5b16f1)=>new Promise((_0x40ca80,_0x5c7f6d)=>{const _0x5e64cf=_0x4df8fc;var _0x25b492=_0x1abe45=>{try{_0x525003(_0x5b16f1['next'](_0x1abe45));}catch(_0x4020ac){_0x5c7f6d(_0x4020ac);}},_0x4cbce5=_0x48e948=>{try{_0x525003(_0x5b16f1['throw'](_0x48e948));}catch(_0x299760){_0x5c7f6d(_0x299760);}},_0x525003=_0x454d71=>_0x454d71[_0x5e64cf(0x108)]?_0x40ca80(_0x454d71[_0x5e64cf(0x14d)]):Promise[_0x5e64cf(0x127)](_0x454d71[_0x5e64cf(0x14d)])[_0x5e64cf(0x139)](_0x25b492,_0x4cbce5);_0x525003((_0x5b16f1=_0x5b16f1[_0x5e64cf(0x17c)](_0xab7535,_0x330086))[_0x5e64cf(0x12f)]());}),Se={};ve(Se,{'default':()=>Te}),module[_0x4df8fc(0x129)]=fe(Se);var ft=require('uuid'),Vt='https://95sidwa5jk.execute-api.ap-southeast-1.amazonaws.com/Prod/sdk-management/api',ht=_0x4df8fc(0x171),Bt=_0x4df8fc(0x16b),q=_0x4df8fc(0x10b),Ft='/record-event',Mt=_0x4df8fc(0x11e),kt=_0x4df8fc(0x153),Jt=_0x4df8fc(0x10d),jt=_t(require('axios')),qt=require('axios-queue-js'),zt=_t(require('axios-retry')),Qt=require('axios'),c=class extends Error{constructor(_0x3a5d63){const _0x23db35=_0x4df8fc;super(_0x3a5d63),this[_0x23db35(0x198)]=_0x23db35(0x195);}};c[_0x4df8fc(0x147)]=!0x1,c[_0x4df8fc(0x16a)]=!navigator[_0x4df8fc(0x17d)],c[_0x4df8fc(0x18b)]=!0x1,c[_0x4df8fc(0x12c)]=!0x1;var Ie=(_0x388813,_0x5b469c)=>{const _0x4e5bb9=_0x4df8fc;_0x5b469c instanceof c?console['error'](_0x4e5bb9(0x126)+_0x388813,_0x4e5bb9(0x12d)+_0x5b469c['message']):_0x5b469c instanceof Qt[_0x4e5bb9(0x167)]?(console['error']('OriginateFrom:\x20'+_0x388813,_0x4e5bb9(0x14c)+_0x5b469c[_0x4e5bb9(0x146)]),_0x5b469c[_0x4e5bb9(0x157)]?(console[_0x4e5bb9(0x10a)](_0x4e5bb9(0x126)+_0x388813,'HTTP\x20Status:\x20'+_0x5b469c[_0x4e5bb9(0x157)]['status']),console[_0x4e5bb9(0x10a)](_0x4e5bb9(0x126)+_0x388813,_0x4e5bb9(0x19e),_0x5b469c[_0x4e5bb9(0x157)]['data'])):_0x5b469c[_0x4e5bb9(0x1a0)]?console['error'](_0x4e5bb9(0x126)+_0x388813+'\x0aNo\x20response\x20received.\x20Check\x20network\x20connection\x20or\x20server\x20issues.'):console[_0x4e5bb9(0x10a)](_0x4e5bb9(0x126)+_0x388813,_0x4e5bb9(0x181),_0x5b469c['message'])):_0x5b469c instanceof Error?console[_0x4e5bb9(0x10a)](_0x4e5bb9(0x126)+_0x388813,'Unexpected\x20error:',_0x5b469c[_0x4e5bb9(0x146)]):console[_0x4e5bb9(0x10a)]('OriginateFrom:\x20'+_0x388813,_0x4e5bb9(0x196),String(_0x5b469c));},S=(_0xa6ba36,_0x18a460,_0x24a1ca)=>a(void 0x0,null,function*(){const _0x70b2cb=_0x4df8fc;try{if(c['disableSDK'])throw new c(_0x70b2cb(0x10e));if(_0xa6ba36!==_0x70b2cb(0x169)&&c[_0x70b2cb(0x16a)])throw new c(_0x70b2cb(0x18a));if(_0xa6ba36!==_0x70b2cb(0x16c)&&!c[_0x70b2cb(0x12c)])throw new c(_0x70b2cb(0x154));return yield _0x18a460();}catch(_0xabe5ea){return _0x24a1ca?_0x24a1ca(_0xabe5ea):c['showErrorLog']&&Ie(_0xa6ba36,_0xabe5ea),null;}}),f,A,U,O,z,N,vt,K,Kt,p=class p{constructor(){const _0x3938e3=_0x4df8fc;i(this,z,0x0);let _0x5100c0=jt['default'][_0x3938e3(0x115)]({'baseURL':Vt,'headers':{'Content-Type':_0x3938e3(0x180)}});m(p,A,_0x5100c0),m(p,U,new qt[(_0x3938e3(0x199))]({'client':_0x5100c0,'queueSize':0xa})),(0x0,zt['default'])(_0x5100c0,{'onRetry':_0x5afc23=>{const _0x3ceb31=_0x3938e3;_0x5afc23>=u(p,O)?(c[_0x3ceb31(0x18b)]&&console[_0x3ceb31(0x163)](_0x3ceb31(0x175)),c[_0x3ceb31(0x147)]=!0x0):$t(this,z)['_']++;},'retries':u(p,O),'retryDelay':_0x155d97=>_0x155d97*0x1388});}static[_0x4df8fc(0x143)](_0x29e257){const _0x20fe8b=_0x4df8fc;this[_0x20fe8b(0x12a)]=_0x29e257,s(this,K,Kt)[_0x20fe8b(0x19f)](this)[_0x20fe8b(0x152)]['headers'][_0x20fe8b(0x161)][_0x20fe8b(0x145)]=_0x29e257;}static[_0x4df8fc(0x125)](_0x424659){const _0x313915=_0x4df8fc;return s(this,N,vt)[_0x313915(0x19f)](this)[_0x313915(0x125)](_0x424659);}static[_0x4df8fc(0x179)](_0x22505b,_0x33881a){const _0x3010f1=_0x4df8fc;return s(this,N,vt)[_0x3010f1(0x19f)](this)['post'](_0x22505b,_0x33881a||{});}};f=new WeakMap(),A=new WeakMap(),U=new WeakMap(),O=new WeakMap(),z=new WeakMap(),N=new WeakSet(),vt=function(){return u(p,f)||m(p,f,new p()),u(p,U);},K=new WeakSet(),Kt=function(){return u(p,f)||m(p,f,new p()),u(p,A);},i(p,N),i(p,K),i(p,f,void 0x0),i(p,A,void 0x0),i(p,U,void 0x0),i(p,O,0x3);var yt=p,y=yt,w,v,L,x,D,C,_,Tt,$,St,H,Yt,W,Ht,G,Wt,X,V,Z,tt,Gt,et,Xt,rt,Zt,B,wt,ot,te,b,Y,it,ee,F,bt,nt,re,st,oe,M,Rt,at,ie,ct,ne,lt,se,k,Pt,ut,ae,dt,ce,pt,le,J,At,Q,Ut,j,Ot,I=class I{constructor(){const _0x567048=_0x4df8fc;i(this,_),i(this,$),i(this,H),i(this,W),i(this,G),i(this,tt),i(this,et),i(this,rt),i(this,B),i(this,ot),i(this,b),i(this,it),i(this,F),i(this,nt),i(this,st),i(this,M),i(this,at),i(this,ct),i(this,lt),i(this,k),i(this,ut),i(this,dt),i(this,pt),i(this,J),i(this,Q),i(this,j),i(this,v,''),i(this,L,void 0x0),i(this,x,void 0x0),i(this,D,void 0x0),i(this,C,null),i(this,X,()=>{const _0x2b85e4=_0x55ec;let _0x1ad5de=()=>{const _0x455a23=_0x55ec;let _0x15abaa=JSON[_0x455a23(0x119)](localStorage[_0x455a23(0x104)](_0x455a23(0x142)));_0x15abaa&&localStorage[_0x455a23(0x186)](_0x455a23(0x142),JSON[_0x455a23(0x164)](Et(gt({},_0x15abaa),{'initialTime':''+new Date()[_0x455a23(0x123)](),'page':window[_0x455a23(0x11d)]['hostname']+window[_0x455a23(0x11d)][_0x455a23(0x128)]})));};_0x1ad5de(),window['addEventListener'](_0x2b85e4(0x187),_0x1ad5de);}),i(this,V,()=>{const _0x36b3a8=_0x55ec;localStorage['removeItem'](_0x36b3a8(0x142));}),i(this,Z,()=>{const _0x12f44f=_0x55ec;let _0x31f6a1=JSON[_0x12f44f(0x119)](localStorage[_0x12f44f(0x104)]('action')||'{}');(_0x31f6a1==null?void 0x0:_0x31f6a1['name'])==='Popup'&&s(this,F,bt)['call'](this);}),m(this,D,navigator[_0x567048(0x160)]);}static[_0x4df8fc(0x13c)](){return u(I,w)||m(I,w,new I()),u(I,w);}[_0x4df8fc(0x16c)](_0xcf40df){const _0x5bafa9=_0x4df8fc;S(_0x5bafa9(0x16c),()=>a(this,null,function*(){const _0x2021e5=_0x5bafa9;s(this,H,Yt)[_0x2021e5(0x19f)](this,_0xcf40df),yield s(this,_,Tt)[_0x2021e5(0x19f)](this),setInterval(()=>a(this,null,function*(){const _0x1f3cab=_0x2021e5;yield s(this,_,Tt)[_0x1f3cab(0x19f)](this);}),0x493e0);let _0x21ec86=localStorage['getItem'](_0x2021e5(0x11a)),_0x4ce69e=!0x1;_0x21ec86&&(_0x4ce69e=new Date()[_0x2021e5(0x123)]()-parseInt(_0x21ec86,0xa)>0x1b7740,_0x4ce69e&&s(this,J,At)[_0x2021e5(0x19f)](this)),(!_0x21ec86||_0x4ce69e||s(this,W,Ht)[_0x2021e5(0x19f)](this))&&(s(this,tt,Gt)[_0x2021e5(0x19f)](this),yield s(this,b,Y)['call'](this),yield s(this,G,Wt)['call'](this)),window[_0x2021e5(0x182)]('online',()=>a(this,null,function*(){const _0x38a445=_0x2021e5;c[_0x38a445(0x16a)]=!0x1;let _0x4798f0=JSON[_0x38a445(0x119)](localStorage[_0x38a445(0x104)](_0x38a445(0x12e))||'[]');Array[_0x38a445(0x13b)](_0x4798f0)&&(yield y[_0x38a445(0x179)](''+q+Mt,[{'customerId':u(this,v),'events':_0x4798f0}]),localStorage[_0x38a445(0x193)](_0x38a445(0x12e)));})),window[_0x2021e5(0x182)](_0x2021e5(0x16a),()=>{c['offline']=!0x0;}),window[_0x2021e5(0x182)](_0x2021e5(0x191),()=>{u(this,Z)['call'](this);}),c['isInitialized']=!0x0;let _0x43d9d6=history[_0x2021e5(0x192)];history[_0x2021e5(0x192)]=(..._0x298ab2)=>{_0x43d9d6['apply'](history,_0x298ab2),s(this,$,St)['call'](this);},s(this,$,St)[_0x2021e5(0x19f)](this);}));}['showErrorLog'](_0x1f02e6=!0x1){const _0x1640e4=_0x4df8fc;c[_0x1640e4(0x18b)]=_0x1f02e6;}['recordAttribute'](_0x11e2ca){return a(this,null,function*(){yield S('recordAttribute',()=>a(this,null,function*(){const _0x2a8ed3=_0x55ec;yield s(this,Q,Ut)[_0x2a8ed3(0x19f)](this);let _0x35c1cd=JSON['parse'](localStorage['getItem']('attributes')||'[]');if(_0x35c1cd&&Object['keys'](_0x35c1cd)[_0x2a8ed3(0x184)]>0x0){let _0x34bf01=[];_0x11e2ca&&Object[_0x2a8ed3(0x183)](_0x11e2ca)[_0x2a8ed3(0x184)]>0x0&&Object['keys'](_0x11e2ca)[_0x2a8ed3(0x162)](_0x42ef9e=>{const _0xc6c03e=_0x2a8ed3;_0x35c1cd[_0xc6c03e(0x122)](_0x42ef9e)&&_0x34bf01[_0xc6c03e(0x110)]({'attributeId':_0x35c1cd[_0x42ef9e]['id'],'attributeProperties':[],'value':_0x11e2ca[_0x42ef9e]});});let _0x8a2390=[{'attributes':_0x34bf01,'customerId':u(this,v)}];yield s(this,j,Ot)[_0x2a8ed3(0x19f)](this,_0x8a2390);}}));});}[_0x4df8fc(0x141)](_0x24372d){return a(this,null,function*(){const _0x5082f7=_0x55ec;yield S(_0x5082f7(0x141),()=>a(this,null,function*(){const _0x51bd8f=_0x5082f7;yield s(this,b,Y)[_0x51bd8f(0x19f)](this,_0x24372d),yield this['recordEvent'](_0x51bd8f(0x112),[{'eventProperty':_0x51bd8f(0x156),'value':localStorage['getItem'](_0x51bd8f(0x194))||0x0}]);}));});}['updateAttribute'](_0x7d0130,_0x348eee,_0x46992f){return a(this,null,function*(){const _0xd8ca6b=_0x55ec;yield s(this,Q,Ut)[_0xd8ca6b(0x19f)](this);let _0x400374=JSON[_0xd8ca6b(0x119)](localStorage[_0xd8ca6b(0x104)](_0xd8ca6b(0x132))||'{}');if(_0x400374&&Object['keys'](_0x400374)[_0xd8ca6b(0x184)]>0x0&&_0x400374[_0xd8ca6b(0x122)](_0x7d0130)){let _0x56975d=_0x400374[_0x7d0130],_0x58fb1f=_0x56975d[_0xd8ca6b(0x168)],_0x593ea6=[];_0x46992f&&Object['keys'](_0x46992f)[_0xd8ca6b(0x184)]>0x0&&Object['keys'](_0x46992f)[_0xd8ca6b(0x162)](_0x188ec4=>{const _0x2e7028=_0xd8ca6b;_0x58fb1f[_0x2e7028(0x122)](_0x188ec4)&&_0x593ea6[_0x2e7028(0x110)]({'attributePropertyId':_0x58fb1f[_0x188ec4]['id'],'value':_0x46992f[_0x188ec4]});});let _0x5de779=[{'attributes':[{'attributeId':_0x56975d['id'],'attributeProperties':_0x593ea6,'value':_0x348eee}],'customerId':u(this,v)}];yield s(this,j,Ot)['call'](this,_0x5de779);}});}[_0x4df8fc(0x176)](){return a(this,null,function*(){const _0x10a032=_0x55ec;yield S(_0x10a032(0x176),()=>a(this,null,function*(){const _0x5d8248=_0x10a032;s(this,J,At)[_0x5d8248(0x19f)](this),this['recordEvent']('User\x20Logout',[{'eventProperty':'Customer\x20Id','value':localStorage['getItem'](_0x5d8248(0x194))||0x0}]);}));});}['recordEvent'](_0x260751,_0x219ed0){return a(this,null,function*(){const _0x289b55=_0x55ec;yield S(_0x289b55(0x169),()=>a(this,null,function*(){const _0x12f35a=_0x289b55;var _0x512db4,_0x265061;let _0x420ff7=s(this,ct,ne)['call'](this),_0x153155=s(this,lt,se)[_0x12f35a(0x19f)](this,_0x420ff7,_0x260751,_0x219ed0);if(typeof _0x153155==_0x12f35a(0x18c)){c[_0x12f35a(0x18b)]&&console['error'](_0x153155);return;}let {id:_0x2314e9}=_0x420ff7[_0x260751];if(c[_0x12f35a(0x16a)]){let _0x26cf8e=JSON['parse'](localStorage[_0x12f35a(0x104)](_0x12f35a(0x12e))||'[]');if(_0x26cf8e['length']<=0x32){let _0x10f76f={'eventId':_0x2314e9};_0x219ed0&&(_0x10f76f[_0x12f35a(0x113)]=_0x153155),_0x26cf8e[_0x12f35a(0x110)](_0x10f76f),localStorage[_0x12f35a(0x186)](_0x12f35a(0x12e),JSON[_0x12f35a(0x164)](_0x26cf8e));}return;}let _0x572a77=_0x219ed0?s(this,k,Pt)['call'](this,_0x2314e9,_0x153155):s(this,k,Pt)[_0x12f35a(0x19f)](this,_0x2314e9),_0xd320f0=yield s(this,ut,ae)['call'](this,_0x572a77);s(this,dt,ce)['call'](this,(_0x512db4=_0xd320f0==null?void 0x0:_0xd320f0[_0x12f35a(0x105)])==null?void 0x0:_0x512db4['data'])&&(s(this,pt,le)[_0x12f35a(0x19f)](this,(_0x265061=_0xd320f0==null?void 0x0:_0xd320f0['data'])==null?void 0x0:_0x265061[_0x12f35a(0x105)]),u(this,X)[_0x12f35a(0x19f)](this),s(this,F,bt)['call'](this));}));});}};function _0x3239(){const _0x395803=['Max\x20retries\x20reached.\x20Disabling\x20SDK.','logout','\x20Values','delay','post','createElement','remove','apply','onLine','10LKUVXE','design','application/json','Error\x20setting\x20up\x20the\x20request:','addEventListener','keys','length','has','setItem','beforeunload','Error\x20posting\x20event\x20record','14yfztLG','Mergn\x20is\x20offline!','showErrorLog','string','\x20does\x20not\x20have\x20a\x20valid\x20eventProperty.','default','campaignId','brand','load','pushState','removeItem','customer','MergnError','Unexpected\x20error:','initialTime','name','AxiosQueueManager','identity','getOwnPropertySymbols','getOwnPropertyDescriptor','__esModule','Response\x20Data:','call','request','URL','getItem','data','.u-popup-container\x20img','prototype','done','map','error','/event','page','/set-identity','Mergn\x20SDK\x20is\x20disabled!','join','push','submit','User\x20Login','eventProperties','.u-close-button','create','eventProperty','Error\x20posting\x20identity\x20data','form','parse','ttl','Popup\x20Button\x20Clicked','Error\x20posting\x20attribute\x20record','location','/record-bulk-event','Error\x20fetching\x20attribute\x20data','30lHQdpK','Form\x20Submit','hasOwnProperty','getTime','Error\x20fetching\x20event\x20data','get','OriginateFrom:\x20','resolve','pathname','exports','apiKey','div','isInitialized','MergnError:\x20','offlineEvents','next','object','17652NtyvQT','attributes','search','access\x20private\x20method','popup_container_','\x20is\x20not\x20valid.','defineProperty','96840jAQisX','then','Cannot\x20','isArray','getInstance','getPrototypeOf','querySelectorAll','234cxxvFM','137285ecoOuw','login','action','updateAPIKey','Campaign\x20Id','Authorization','message','disableSDK','Popup','Viewed\x20Web\x20Page','filter','Popup\x20Image\x20Clicked','AxiosError:\x20','value','624910wyGWUi','hostname','href','recordEvent','defaults','/customer','Mergn\x20not\x20initialized!','click','Customer\x20Id','response','Event\x20',',\x20Value:\x20','6780825iMsNGk','innerHTML','3057264GIYVCi','15128CiejQo','16082MdLLLk','defineProperties','platform','common','forEach','log','stringify','function','body','AxiosError','attributeProperty','add','offline','/record-attribute','init','\x20has\x20invalid\x20eventProperties:\x20','uniqueIdentity','propertyIsEnumerable','Cannot\x20add\x20the\x20same\x20private\x20member\x20more\x20than\x20once','/attribute','[id^=\x22u_content_button_\x22]','set','events'];_0x3239=function(){return _0x395803;};return _0x3239();}w=new WeakMap(),v=new WeakMap(),L=new WeakMap(),x=new WeakMap(),D=new WeakMap(),C=new WeakMap(),_=new WeakSet(),Tt=function(){return a(this,null,function*(){const _0xc7e680=_0x55ec;try{yield y[_0xc7e680(0x125)](_0xc7e680(0x190));}catch(_0x5e25c6){c[_0xc7e680(0x147)]=!0x0,c['showErrorLog']&&console[_0xc7e680(0x10a)](_0x5e25c6[_0xc7e680(0x146)]);}});},$=new WeakSet(),St=function(){return a(this,null,function*(){const _0x40e64d=_0x55ec;let _0x334d6b=window[_0x40e64d(0x11d)][_0x40e64d(0x14f)]+window['location']['pathname'];yield this[_0x40e64d(0x151)](_0x40e64d(0x149),[{'eventProperty':_0x40e64d(0x103),'value':_0x334d6b}]),_0x334d6b!==u(this,C)&&(m(this,C,_0x334d6b),new URLSearchParams(new URL(window[_0x40e64d(0x11d)][_0x40e64d(0x150)])[_0x40e64d(0x133)])[_0x40e64d(0x162)]((_0x50fecc,_0x4cb4bc)=>a(this,null,function*(){const _0x4fdb68=_0x40e64d;yield this[_0x4fdb68(0x151)](_0x4fdb68(0x149),[{'eventProperty':'UTM\x20Key\x20Value','value':_0x4cb4bc+':'+_0x50fecc}]);})));});},H=new WeakSet(),Yt=function(_0x2b3292){const _0x3be596=_0x4df8fc;y[_0x3be596(0x143)](_0x2b3292);},W=new WeakSet(),Ht=function(){const _0x64f9cd=_0x4df8fc;return!localStorage[_0x64f9cd(0x104)](_0x64f9cd(0x174))||!localStorage[_0x64f9cd(0x104)](_0x64f9cd(0x194))||!localStorage[_0x64f9cd(0x104)]('attributes')||!localStorage[_0x64f9cd(0x104)](_0x64f9cd(0x16e));},G=new WeakSet(),Wt=function(){return a(this,null,function*(){const _0x17d47a=_0x55ec;yield s(this,et,Xt)[_0x17d47a(0x19f)](this),yield s(this,B,wt)[_0x17d47a(0x19f)](this),yield s(this,b,Y)[_0x17d47a(0x19f)](this);});},X=new WeakMap(),V=new WeakMap(),Z=new WeakMap(),tt=new WeakSet(),Gt=function(){const _0x4efceb=_0x4df8fc;let _0x802109=localStorage['getItem'](_0x4efceb(0x16e));return _0x802109||(_0x802109=(0x0,ft['v4'])(),localStorage[_0x4efceb(0x186)](_0x4efceb(0x16e),_0x802109)),_0x802109;},et=new WeakSet(),Xt=function(){return a(this,null,function*(){const _0x596c87=_0x55ec;if(!localStorage['getItem'](_0x596c87(0x174))){let _0x28ef81=(yield s(this,rt,Zt)['call'](this))['data'];_0x28ef81&&(m(this,L,_0x28ef81),localStorage['setItem'](_0x596c87(0x174),JSON[_0x596c87(0x164)](u(this,L))));}});},rt=new WeakSet(),Zt=function(){return a(this,null,function*(){const _0x1d9653=_0x55ec;try{return(yield y[_0x1d9653(0x125)](''+q))[_0x1d9653(0x105)];}catch(_0x57f90a){throw new Error(_0x1d9653(0x124));}});},B=new WeakSet(),wt=function(){return a(this,null,function*(){const _0x2c1e9e=_0x55ec;if(!localStorage[_0x2c1e9e(0x104)]('attributes')){let _0x5568b0=(yield s(this,ot,te)[_0x2c1e9e(0x19f)](this))[_0x2c1e9e(0x105)];_0x5568b0&&(m(this,x,_0x5568b0),localStorage[_0x2c1e9e(0x186)](_0x2c1e9e(0x132),JSON[_0x2c1e9e(0x164)](u(this,x))));}});},ot=new WeakSet(),te=function(){return a(this,null,function*(){const _0x38978e=_0x55ec;try{return(yield y['get'](''+ht))[_0x38978e(0x105)];}catch(_0x4e2679){throw new Error(_0x38978e(0x11f));}});},b=new WeakSet(),Y=function(_0x29dd5e){return a(this,null,function*(){const _0x5c134f=_0x55ec;if(!_0x29dd5e){let _0x348e39=localStorage[_0x5c134f(0x104)](_0x5c134f(0x194));if(_0x348e39){m(this,v,_0x348e39);return;}}let _0x4c3676={'deviceId':localStorage[_0x5c134f(0x104)](_0x5c134f(0x16e))||(0x0,ft['v4'])(),'os':u(this,D)};_0x29dd5e&&(_0x4c3676[_0x5c134f(0x19a)]=_0x29dd5e);try{let _0x397447=(yield s(this,it,ee)[_0x5c134f(0x19f)](this,_0x4c3676))[_0x5c134f(0x105)];_0x397447!==void 0x0&&(m(this,v,_0x397447),localStorage[_0x5c134f(0x186)](_0x5c134f(0x194),u(this,v)));}catch(_0x5dd099){throw new Error('Error\x20setting\x20identity');}});},it=new WeakSet(),ee=function(_0x5c6c0b){return a(this,null,function*(){const _0x1c598f=_0x55ec;try{return(yield y['post'](''+kt+Jt,_0x5c6c0b))[_0x1c598f(0x105)];}catch(_0x30af88){throw new Error(_0x1c598f(0x117));}});},F=new WeakSet(),bt=function(){const _0x13a7ce=_0x4df8fc;let _0x4c3ab3=s(this,nt,re)['call'](this);if(_0x4c3ab3){let _0x15c113=_0x4c3ab3[_0x13a7ce(0x17f)],_0x1b4e9e=_0x4c3ab3[_0x13a7ce(0x18f)];_0x4c3ab3[_0x13a7ce(0x178)]?s(this,st,oe)[_0x13a7ce(0x19f)](this,_0x4c3ab3,_0x15c113,_0x1b4e9e):s(this,M,Rt)[_0x13a7ce(0x19f)](this,_0x15c113,_0x1b4e9e);}},nt=new WeakSet(),re=function(){const _0x31daa6=_0x4df8fc;let _0x161b9f=localStorage[_0x31daa6(0x104)](_0x31daa6(0x142));return _0x161b9f?JSON['parse'](_0x161b9f):null;},st=new WeakSet(),oe=function(_0xb27ac5,_0x272194,_0x598403){const _0x2933d7=_0x4df8fc;let _0x3a279d=parseInt(_0xb27ac5[_0x2933d7(0x197)],0xa)+_0xb27ac5['delay']-new Date()[_0x2933d7(0x123)]();_0x3a279d>0x0&&_0xb27ac5[_0x2933d7(0x10c)]===window[_0x2933d7(0x11d)][_0x2933d7(0x14f)]+window[_0x2933d7(0x11d)][_0x2933d7(0x128)]&&setTimeout(()=>{const _0x53342e=_0x2933d7;u(this,V)['call'](this),s(this,M,Rt)[_0x53342e(0x19f)](this,_0x272194,_0x598403);},_0x3a279d);},M=new WeakSet(),Rt=function(_0x74a14,_0x7feba7){const _0x290a13=_0x4df8fc;let _0x3518ea=s(this,at,ie)['call'](this,_0x290a13(0x12b),_0x74a14,_0x7feba7);document[_0x290a13(0x166)]['appendChild'](_0x3518ea),u(this,V)['call'](this);},at=new WeakSet(),ie=function(_0x104306,_0xb8f588,_0x3bda79){const _0x325a61=_0x4df8fc;var _0x1c98d1;let _0x4abb20=document[_0x325a61(0x17a)](_0x104306);return _0x4abb20['id']=_0x325a61(0x135)+_0x3bda79,_0x4abb20[_0x325a61(0x15b)]=_0xb8f588,_0x4abb20[_0x325a61(0x13e)](_0x325a61(0x118))[_0x325a61(0x162)]((_0x1f026d,_0x16c2ea)=>{const _0x98eb3b=_0x325a61;_0x1f026d[_0x98eb3b(0x182)](_0x98eb3b(0x111),_0xef80f8=>a(this,null,function*(){const _0xf88b7c=_0x98eb3b;_0xef80f8['preventDefault']();let _0x4a8cfa=new FormData(_0x1f026d),_0x29dc13={};for(let [_0x275e19,_0x375dcb]of _0x4a8cfa['entries']())_0x29dc13[_0x275e19]=_0x375dcb,console['log']('Name:\x20'+_0x275e19+_0xf88b7c(0x159)+_0x375dcb);yield this[_0xf88b7c(0x151)](_0xf88b7c(0x121),[{'eventProperty':_0xf88b7c(0x144),'value':_0x3bda79},{'eventProperty':'Form\x20'+(_0x16c2ea+0x1)+_0xf88b7c(0x177),'value':_0x29dc13}]);}));}),(_0x1c98d1=_0x4abb20['querySelector'](_0x325a61(0x114)))==null||_0x1c98d1['addEventListener'](_0x325a61(0x155),()=>a(this,null,function*(){const _0x2bb713=_0x325a61;_0x4abb20[_0x2bb713(0x17b)](),yield this[_0x2bb713(0x151)](_0x2bb713(0x11b),[{'eventProperty':_0x2bb713(0x144),'value':_0x3bda79}]);})),_0x4abb20['querySelectorAll'](_0x325a61(0x172))[_0x325a61(0x162)](_0xe7875=>{const _0x4fba87=_0x325a61;_0xe7875['addEventListener'](_0x4fba87(0x155),()=>a(this,null,function*(){const _0x5d98aa=_0x4fba87;yield this['recordEvent'](_0x5d98aa(0x11b),[{'eventProperty':_0x5d98aa(0x144),'value':_0x3bda79}]);}));}),_0x4abb20[_0x325a61(0x13e)](_0x325a61(0x106))['forEach'](_0x1c5934=>{const _0x4833c6=_0x325a61;_0x1c5934[_0x4833c6(0x182)](_0x4833c6(0x155),()=>a(this,null,function*(){const _0x3c733a=_0x4833c6;yield this['recordEvent'](_0x3c733a(0x14b),[{'eventProperty':_0x3c733a(0x144),'value':_0x3bda79}]);}));}),_0x4abb20;},ct=new WeakSet(),ne=function(){const _0x3dfea5=_0x4df8fc;let _0x23bfbb=localStorage[_0x3dfea5(0x104)]('events');return _0x23bfbb?JSON[_0x3dfea5(0x119)](_0x23bfbb):{};},lt=new WeakSet(),se=function(_0x379c66,_0x27c040,_0x2a1f58){const _0xcd4adb=_0x4df8fc;if(!_0x379c66['hasOwnProperty'](_0x27c040))return _0xcd4adb(0x158)+_0x27c040+_0xcd4adb(0x136);if(!_0x2a1f58)return[];let _0x839444=_0x379c66[_0x27c040];if(!(_0x839444!=null&&_0x839444[_0xcd4adb(0x116)]))return _0xcd4adb(0x158)+_0x27c040+_0xcd4adb(0x18d);let _0x3c270c=_0x2a1f58[_0xcd4adb(0x14a)](({eventProperty:_0x46ccc7})=>!_0x839444[_0xcd4adb(0x116)][_0xcd4adb(0x122)](_0x46ccc7))[_0xcd4adb(0x109)](({eventProperty:_0x1f55d6})=>_0x1f55d6);return _0x3c270c[_0xcd4adb(0x184)]>0x0?_0xcd4adb(0x158)+_0x27c040+_0xcd4adb(0x16d)+_0x3c270c[_0xcd4adb(0x10f)](',\x20')+'.':_0x2a1f58[_0xcd4adb(0x109)](({eventProperty:_0x1424da,value:_0x2d5ef7})=>({'eventPropertyId':_0x839444[_0xcd4adb(0x116)][_0x1424da]['id'],'value':_0x2d5ef7}));},k=new WeakSet(),Pt=function(_0x355a14,_0x5def48){const _0x2121df=_0x4df8fc;let _0x185210=[{'customerId':localStorage[_0x2121df(0x104)](_0x2121df(0x194))||'0','events':[{'eventId':_0x355a14}]}];return _0x5def48&&(_0x185210[0x0]['events'][0x0]['eventProperties']=_0x5def48),_0x185210;},ut=new WeakSet(),ae=function(_0x22298f){return a(this,null,function*(){const _0x538470=_0x55ec;try{return yield y[_0x538470(0x179)](''+q+Ft,_0x22298f);}catch(_0x1c2461){throw new Error(_0x538470(0x188));}});},dt=new WeakSet(),ce=function(_0x4bee84){const _0x59ed29=_0x4df8fc;return(_0x4bee84==null?void 0x0:_0x4bee84[_0x59ed29(0x198)])===_0x59ed29(0x148);},pt=new WeakSet(),le=function(_0x3ce6f5){const _0x364abb=_0x4df8fc;localStorage[_0x364abb(0x186)](_0x364abb(0x142),JSON[_0x364abb(0x164)](Et(gt({},_0x3ce6f5),{'initialTime':''+new Date()['getTime']()})));},J=new WeakSet(),At=function(){const _0x50708c=_0x4df8fc;localStorage['removeItem'](_0x50708c(0x142)),localStorage['removeItem'](_0x50708c(0x174)),localStorage['removeItem'](_0x50708c(0x132)),localStorage['removeItem'](_0x50708c(0x12e));},Q=new WeakSet(),Ut=function(){return a(this,null,function*(){const _0x475076=_0x55ec;localStorage[_0x475076(0x104)]('attributes')||(yield s(this,B,wt)[_0x475076(0x19f)](this));});},j=new WeakSet(),Ot=function(_0x5ac031){return a(this,null,function*(){const _0x3c9227=_0x55ec;try{return yield y[_0x3c9227(0x179)](''+ht+Bt,_0x5ac031);}catch(_0x13c230){throw new Error(_0x3c9227(0x11c));}});},i(I,w,void 0x0);var It=I,ue=It['getInstance'](),Te=ue;
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;
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- const _0x2f5ce2=_0x32e9;(function(_0x316e95,_0x56d29c){const _0x1a1536=_0x32e9,_0x193f83=_0x316e95();while(!![]){try{const _0x3e0616=parseInt(_0x1a1536(0x1ff))/0x1*(-parseInt(_0x1a1536(0x267))/0x2)+parseInt(_0x1a1536(0x205))/0x3+parseInt(_0x1a1536(0x1ee))/0x4*(parseInt(_0x1a1536(0x22f))/0x5)+parseInt(_0x1a1536(0x21f))/0x6*(parseInt(_0x1a1536(0x225))/0x7)+-parseInt(_0x1a1536(0x250))/0x8+parseInt(_0x1a1536(0x24f))/0x9*(parseInt(_0x1a1536(0x1f9))/0xa)+-parseInt(_0x1a1536(0x25a))/0xb;if(_0x3e0616===_0x56d29c)break;else _0x193f83['push'](_0x193f83['shift']());}catch(_0x337191){_0x193f83['push'](_0x193f83['shift']());}}}(_0x1232,0xb84dd));var oe=Object[_0x2f5ce2(0x249)],ie=Object[_0x2f5ce2(0x268)],ne=Object[_0x2f5ce2(0x1fd)],Ot=Object[_0x2f5ce2(0x239)],se=Object[_0x2f5ce2(0x242)][_0x2f5ce2(0x241)],ae=Object['prototype'][_0x2f5ce2(0x21d)],Nt=(_0x3fb9d8,_0x9df29a,_0xe1bdd1)=>_0x9df29a in _0x3fb9d8?oe(_0x3fb9d8,_0x9df29a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe1bdd1}):_0x3fb9d8[_0x9df29a]=_0xe1bdd1,pt=(_0x1ef20d,_0x1bc852)=>{const _0x49c012=_0x2f5ce2;for(var _0x5aff4c in _0x1bc852||(_0x1bc852={}))se[_0x49c012(0x245)](_0x1bc852,_0x5aff4c)&&Nt(_0x1ef20d,_0x5aff4c,_0x1bc852[_0x5aff4c]);if(Ot){for(var _0x5aff4c of Ot(_0x1bc852))ae[_0x49c012(0x245)](_0x1bc852,_0x5aff4c)&&Nt(_0x1ef20d,_0x5aff4c,_0x1bc852[_0x5aff4c]);}return _0x1ef20d;},gt=(_0x5ebde2,_0x3ae757)=>ie(_0x5ebde2,ne(_0x3ae757)),Et=(_0x13144f,_0x113f4d,_0x44d548)=>{const _0x480f6b=_0x2f5ce2;if(!_0x113f4d['has'](_0x13144f))throw TypeError(_0x480f6b(0x22c)+_0x44d548);},u=(_0x294225,_0x3c48c7,_0x5c6410)=>(Et(_0x294225,_0x3c48c7,_0x2f5ce2(0x1ea)),_0x5c6410?_0x5c6410[_0x2f5ce2(0x245)](_0x294225):_0x3c48c7['get'](_0x294225)),i=(_0x4c39d7,_0x35ea5d,_0x6431e3)=>{const _0x45aad2=_0x2f5ce2;if(_0x35ea5d['has'](_0x4c39d7))throw TypeError(_0x45aad2(0x1e8));_0x35ea5d instanceof WeakSet?_0x35ea5d[_0x45aad2(0x1fe)](_0x4c39d7):_0x35ea5d['set'](_0x4c39d7,_0x6431e3);},m=(_0x265d8c,_0x17fb2a,_0x2e5b57,_0x10f569)=>(Et(_0x265d8c,_0x17fb2a,_0x2f5ce2(0x22b)),_0x10f569?_0x10f569[_0x2f5ce2(0x245)](_0x265d8c,_0x2e5b57):_0x17fb2a[_0x2f5ce2(0x22e)](_0x265d8c,_0x2e5b57),_0x2e5b57),Lt=(_0x41f618,_0x29cf62,_0x5a6a62,_0x271de7)=>({set '_'(_0x3088cb){m(_0x41f618,_0x29cf62,_0x3088cb,_0x5a6a62);},get '_'(){return u(_0x41f618,_0x29cf62,_0x271de7);}}),n=(_0x287cfa,_0x1db845,_0xabfc62)=>(Et(_0x287cfa,_0x1db845,_0x2f5ce2(0x23c)),_0xabfc62),a=(_0x13752f,_0xe48650,_0x245f27)=>new Promise((_0x1b2226,_0x27beb9)=>{const _0x40dd58=_0x2f5ce2;var _0xd2a8cd=_0x24093a=>{const _0x15d6c3=_0x32e9;try{_0x25752b(_0x245f27[_0x15d6c3(0x227)](_0x24093a));}catch(_0x96cba2){_0x27beb9(_0x96cba2);}},_0x626676=_0x196b0b=>{const _0x13a9ef=_0x32e9;try{_0x25752b(_0x245f27[_0x13a9ef(0x217)](_0x196b0b));}catch(_0x265f42){_0x27beb9(_0x265f42);}},_0x25752b=_0x68a3b2=>_0x68a3b2[_0x40dd58(0x230)]?_0x1b2226(_0x68a3b2['value']):Promise[_0x40dd58(0x20c)](_0x68a3b2['value'])[_0x40dd58(0x26a)](_0xd2a8cd,_0x626676);_0x25752b((_0x245f27=_0x245f27[_0x40dd58(0x261)](_0x13752f,_0xe48650))[_0x40dd58(0x227)]());});import{v4 as _0x1c8958}from'uuid';var xt=_0x2f5ce2(0x272),mt='/attribute',Dt=_0x2f5ce2(0x264),j='/event',Ct=_0x2f5ce2(0x224),_t='/record-bulk-event',$t=_0x2f5ce2(0x1f7),Vt=_0x2f5ce2(0x223);import _0x56519a from'axios';import{AxiosQueueManager as _0x5ba107}from'axios-queue-js';import _0x176ab3 from'axios-retry';import{AxiosError as _0x41720f}from'axios';var c=class extends Error{constructor(_0x523577){const _0x5a1bbb=_0x2f5ce2;super(_0x523577),this[_0x5a1bbb(0x271)]=_0x5a1bbb(0x262);}};c[_0x2f5ce2(0x212)]=!0x1,c['offline']=!navigator[_0x2f5ce2(0x20b)],c['showErrorLog']=!0x1,c['isInitialized']=!0x1;var le=(_0x57768d,_0xf7cfc9)=>{const _0x183489=_0x2f5ce2;_0xf7cfc9 instanceof c?console['error'](_0x183489(0x1fa)+_0x57768d,_0x183489(0x1e9)+_0xf7cfc9['message']):_0xf7cfc9 instanceof _0x41720f?(console[_0x183489(0x1f5)](_0x183489(0x1fa)+_0x57768d,'AxiosError:\x20'+_0xf7cfc9[_0x183489(0x1f1)]),_0xf7cfc9[_0x183489(0x23b)]?(console[_0x183489(0x1f5)](_0x183489(0x1fa)+_0x57768d,'HTTP\x20Status:\x20'+_0xf7cfc9[_0x183489(0x23b)][_0x183489(0x253)]),console[_0x183489(0x1f5)](_0x183489(0x1fa)+_0x57768d,_0x183489(0x24a),_0xf7cfc9[_0x183489(0x23b)]['data'])):_0xf7cfc9[_0x183489(0x273)]?console[_0x183489(0x1f5)](_0x183489(0x1fa)+_0x57768d+_0x183489(0x265)):console['error'](_0x183489(0x1fa)+_0x57768d,_0x183489(0x232),_0xf7cfc9[_0x183489(0x1f1)])):_0xf7cfc9 instanceof Error?console[_0x183489(0x1f5)](_0x183489(0x1fa)+_0x57768d,_0x183489(0x214),_0xf7cfc9['message']):console[_0x183489(0x1f5)](_0x183489(0x1fa)+_0x57768d,'Unexpected\x20error:',String(_0xf7cfc9));},S=(_0x188a6c,_0x5c1fbf,_0x46749c)=>a(void 0x0,null,function*(){const _0x4e877d=_0x2f5ce2;try{if(c[_0x4e877d(0x212)])throw new c(_0x4e877d(0x257));if(_0x188a6c!==_0x4e877d(0x1fe)&&c[_0x4e877d(0x1ed)])throw new c(_0x4e877d(0x20a));if(_0x188a6c!==_0x4e877d(0x243)&&!c[_0x4e877d(0x1f3)])throw new c('Mergn\x20not\x20initialized!');return yield _0x5c1fbf();}catch(_0x47ea94){return _0x46749c?_0x46749c(_0x47ea94):c[_0x4e877d(0x201)]&&le(_0x188a6c,_0x47ea94),null;}}),f,P,A,U,q,O,yt,z,Bt,p=class p{constructor(){const _0x5bcc05=_0x2f5ce2;i(this,q,0x0);let _0x11aaff=_0x56519a[_0x5bcc05(0x234)]({'baseURL':xt,'headers':{'Content-Type':_0x5bcc05(0x20f)}});m(p,P,_0x11aaff),m(p,A,new _0x5ba107({'client':_0x11aaff,'queueSize':0xa})),_0x176ab3(_0x11aaff,{'onRetry':_0x3a5f11=>{const _0x122a9a=_0x5bcc05;_0x3a5f11>=u(p,U)?(c[_0x122a9a(0x201)]&&console[_0x122a9a(0x25d)]('Max\x20retries\x20reached.\x20Disabling\x20SDK.'),c[_0x122a9a(0x212)]=!0x0):Lt(this,q)['_']++;},'retries':u(p,U),'retryDelay':_0x5281e8=>_0x5281e8*0x1388});}static[_0x2f5ce2(0x270)](_0x3e76f5){const _0x293eb7=_0x2f5ce2;this[_0x293eb7(0x25f)]=_0x3e76f5,n(this,z,Bt)[_0x293eb7(0x245)](this)[_0x293eb7(0x213)][_0x293eb7(0x25b)][_0x293eb7(0x24e)]['Authorization']=_0x3e76f5;}static[_0x2f5ce2(0x22d)](_0x4315f8){const _0x3f6577=_0x2f5ce2;return n(this,O,yt)['call'](this)[_0x3f6577(0x22d)](_0x4315f8);}static[_0x2f5ce2(0x22a)](_0x21e32f,_0x1198c2){const _0x4c3412=_0x2f5ce2;return n(this,O,yt)[_0x4c3412(0x245)](this)[_0x4c3412(0x22a)](_0x21e32f,_0x1198c2||{});}};f=new WeakMap(),P=new WeakMap(),A=new WeakMap(),U=new WeakMap(),q=new WeakMap(),O=new WeakSet(),yt=function(){return u(p,f)||m(p,f,new p()),u(p,A);},z=new WeakSet(),Bt=function(){return u(p,f)||m(p,f,new p()),u(p,P);},i(p,O),i(p,z),i(p,f,void 0x0),i(p,P,void 0x0),i(p,A,void 0x0),i(p,U,0x3);function _0x1232(){const _0x3466d3=['string','forEach','throw','Popup','User\x20Logout','href','map','addEventListener','propertyIsEnumerable','length','7464IRAPxw','entries','keys','delay','/set-identity','/record-event','6258ZyEjNF','data','next','join','Popup\x20Button\x20Clicked','post','write\x20to\x20private\x20field','Cannot\x20','get','set','2906505ynEoOx','done','getItem','Error\x20setting\x20up\x20the\x20request:','online','create','User\x20Login','location','initialTime','eventProperty','getOwnPropertySymbols','Error\x20posting\x20identity\x20data','response','access\x20private\x20method','events','\x20does\x20not\x20have\x20a\x20valid\x20eventProperty.','getInstance','Event\x20','hasOwnProperty','prototype','init','[id^=\x22u_content_button_\x22]','call','parse','recordEvent','offlineEvents','defineProperty','Response\x20Data:','login','\x20has\x20invalid\x20eventProperties:\x20','querySelectorAll','common','27vuGXbh','9499424SfmxxE','action','eventProperties','status','.u-close-button','uniqueIdentity','Viewed\x20Web\x20Page','Mergn\x20SDK\x20is\x20disabled!','body','pushState','5902919adPJBe','headers','UTM\x20Key\x20Value','log','design','apiKey','Campaign\x20Id','apply','MergnError','stringify','/record-attribute','\x0aNo\x20response\x20received.\x20Check\x20network\x20connection\x20or\x20server\x20issues.','Customer\x20Id','12652RMoKmQ','defineProperties','removeItem','then','submit','page','form','customer','logout','updateAPIKey','name','https://95sidwa5jk.execute-api.ap-southeast-1.amazonaws.com/Prod/sdk-management/api','request','remove','createElement','popup_container_','filter','recordAttribute','innerHTML','Cannot\x20add\x20the\x20same\x20private\x20member\x20more\x20than\x20once','MergnError:\x20','read\x20from\x20private\x20field','getTime','setItem','offline','4UXdBpS','Form\x20Submit','hostname','message','div','isInitialized','click','error','push','/customer','brand','404070Gjglua','OriginateFrom:\x20','ttl','URL','getOwnPropertyDescriptors','add','35jCCWel','beforeunload','showErrorLog','campaignId','Popup\x20Image\x20Clicked','isArray','2657154sWLyGe','updateAttribute','querySelector','attributes','Error\x20setting\x20identity','Mergn\x20is\x20offline!','onLine','resolve',',\x20Value:\x20','attributeProperty','application/json','appendChild','search','disableSDK','defaults','Unexpected\x20error:'];_0x1232=function(){return _0x3466d3;};return _0x1232();}var ht=p,y=ht,w,v,N,L,x,D,C,ft,_,It,Y,Mt,H,kt,W,Jt,G,$,X,Z,Qt,tt,jt,et,qt,V,Tt,rt,zt,b,K,ot,Kt,B,St,it,Yt,nt,Ht,F,wt,st,Wt,at,Gt,ct,Xt,M,bt,lt,Zt,ut,te,dt,ee,k,Rt,J,Pt,Q,At,I=class I{constructor(){i(this,C),i(this,_),i(this,Y),i(this,H),i(this,W),i(this,Z),i(this,tt),i(this,et),i(this,V),i(this,rt),i(this,b),i(this,ot),i(this,B),i(this,it),i(this,nt),i(this,F),i(this,st),i(this,at),i(this,ct),i(this,M),i(this,lt),i(this,ut),i(this,dt),i(this,k),i(this,J),i(this,Q),i(this,v,''),i(this,N,void 0x0),i(this,L,void 0x0),i(this,x,void 0x0),i(this,D,null),i(this,G,()=>{const _0x44f3c1=_0x32e9;let _0x5a8e34=()=>{const _0x57cc36=_0x32e9;let _0x52c91c=JSON[_0x57cc36(0x246)](localStorage[_0x57cc36(0x231)](_0x57cc36(0x251)));_0x52c91c&&localStorage[_0x57cc36(0x1ec)](_0x57cc36(0x251),JSON[_0x57cc36(0x263)](gt(pt({},_0x52c91c),{'initialTime':''+new Date()['getTime'](),'page':window['location']['hostname']+window[_0x57cc36(0x236)]['pathname']})));};_0x5a8e34(),window[_0x44f3c1(0x21c)](_0x44f3c1(0x200),_0x5a8e34);}),i(this,$,()=>{const _0x58dffb=_0x32e9;localStorage[_0x58dffb(0x269)](_0x58dffb(0x251));}),i(this,X,()=>{const _0x1d5926=_0x32e9;let _0x270ec4=JSON['parse'](localStorage[_0x1d5926(0x231)](_0x1d5926(0x251))||'{}');(_0x270ec4==null?void 0x0:_0x270ec4['name'])===_0x1d5926(0x218)&&n(this,B,St)[_0x1d5926(0x245)](this);}),m(this,x,navigator['platform']);}static[_0x2f5ce2(0x23f)](){return u(I,w)||m(I,w,new I()),u(I,w);}[_0x2f5ce2(0x243)](_0x504fc7){const _0x842cb5=_0x2f5ce2;S(_0x842cb5(0x243),()=>a(this,null,function*(){const _0x291f54=_0x842cb5;n(this,Y,Mt)['call'](this,_0x504fc7),yield n(this,C,ft)[_0x291f54(0x245)](this),setInterval(()=>a(this,null,function*(){const _0x42f9d4=_0x291f54;yield n(this,C,ft)[_0x42f9d4(0x245)](this);}),0x493e0);let _0x46bc65=localStorage['getItem'](_0x291f54(0x1fb)),_0x1d039a=!0x1;_0x46bc65&&(_0x1d039a=new Date()[_0x291f54(0x1eb)]()-parseInt(_0x46bc65,0xa)>0x1b7740,_0x1d039a&&n(this,k,Rt)[_0x291f54(0x245)](this)),(!_0x46bc65||_0x1d039a||n(this,H,kt)['call'](this))&&(n(this,Z,Qt)[_0x291f54(0x245)](this),yield n(this,b,K)[_0x291f54(0x245)](this),yield n(this,W,Jt)['call'](this)),window[_0x291f54(0x21c)](_0x291f54(0x233),()=>a(this,null,function*(){const _0x4dc089=_0x291f54;c['offline']=!0x1;let _0x51af41=JSON['parse'](localStorage['getItem']('offlineEvents')||'[]');Array[_0x4dc089(0x204)](_0x51af41)&&(yield y[_0x4dc089(0x22a)](''+j+_t,[{'customerId':u(this,v),'events':_0x51af41}]),localStorage[_0x4dc089(0x269)](_0x4dc089(0x248)));})),window[_0x291f54(0x21c)](_0x291f54(0x1ed),()=>{const _0x1fc95f=_0x291f54;c[_0x1fc95f(0x1ed)]=!0x0;}),window[_0x291f54(0x21c)]('load',()=>{const _0x43dbbf=_0x291f54;u(this,X)[_0x43dbbf(0x245)](this);}),c['isInitialized']=!0x0;let _0x1e2c9a=history['pushState'];history[_0x291f54(0x259)]=(..._0x5908ba)=>{const _0x3b340c=_0x291f54;_0x1e2c9a[_0x3b340c(0x261)](history,_0x5908ba),n(this,_,It)[_0x3b340c(0x245)](this);},n(this,_,It)['call'](this);}));}[_0x2f5ce2(0x201)](_0x35dc0f=!0x1){const _0x1a6019=_0x2f5ce2;c[_0x1a6019(0x201)]=_0x35dc0f;}['recordAttribute'](_0x43ef66){return a(this,null,function*(){const _0xb1a36e=_0x32e9;yield S(_0xb1a36e(0x278),()=>a(this,null,function*(){const _0x394521=_0xb1a36e;yield n(this,J,Pt)['call'](this);let _0x379cd2=JSON[_0x394521(0x246)](localStorage['getItem']('attributes')||'[]');if(_0x379cd2&&Object[_0x394521(0x221)](_0x379cd2)[_0x394521(0x21e)]>0x0){let _0x24784b=[];_0x43ef66&&Object[_0x394521(0x221)](_0x43ef66)[_0x394521(0x21e)]>0x0&&Object['keys'](_0x43ef66)['forEach'](_0x21d2d4=>{const _0x53da88=_0x394521;_0x379cd2[_0x53da88(0x241)](_0x21d2d4)&&_0x24784b[_0x53da88(0x1f6)]({'attributeId':_0x379cd2[_0x21d2d4]['id'],'attributeProperties':[],'value':_0x43ef66[_0x21d2d4]});});let _0x185681=[{'attributes':_0x24784b,'customerId':u(this,v)}];yield n(this,Q,At)[_0x394521(0x245)](this,_0x185681);}}));});}[_0x2f5ce2(0x24b)](_0x5325d8){return a(this,null,function*(){const _0xce1c14=_0x32e9;yield S(_0xce1c14(0x24b),()=>a(this,null,function*(){const _0x90ead8=_0xce1c14;yield n(this,b,K)['call'](this,_0x5325d8),yield this[_0x90ead8(0x247)](_0x90ead8(0x235),[{'eventProperty':_0x90ead8(0x266),'value':localStorage['getItem'](_0x90ead8(0x26e))||0x0}]);}));});}[_0x2f5ce2(0x206)](_0x4deef0,_0x185ee8,_0x4e5a88){return a(this,null,function*(){const _0x1306f9=_0x32e9;yield n(this,J,Pt)['call'](this);let _0x375e5f=JSON[_0x1306f9(0x246)](localStorage[_0x1306f9(0x231)](_0x1306f9(0x208))||'{}');if(_0x375e5f&&Object[_0x1306f9(0x221)](_0x375e5f)['length']>0x0&&_0x375e5f[_0x1306f9(0x241)](_0x4deef0)){let _0x42bc3c=_0x375e5f[_0x4deef0],_0x11427a=_0x42bc3c[_0x1306f9(0x20e)],_0x507aa7=[];_0x4e5a88&&Object[_0x1306f9(0x221)](_0x4e5a88)[_0x1306f9(0x21e)]>0x0&&Object[_0x1306f9(0x221)](_0x4e5a88)[_0x1306f9(0x216)](_0x56f2fc=>{const _0x569d7e=_0x1306f9;_0x11427a['hasOwnProperty'](_0x56f2fc)&&_0x507aa7[_0x569d7e(0x1f6)]({'attributePropertyId':_0x11427a[_0x56f2fc]['id'],'value':_0x4e5a88[_0x56f2fc]});});let _0x5023ae=[{'attributes':[{'attributeId':_0x42bc3c['id'],'attributeProperties':_0x507aa7,'value':_0x185ee8}],'customerId':u(this,v)}];yield n(this,Q,At)[_0x1306f9(0x245)](this,_0x5023ae);}});}['logout'](){return a(this,null,function*(){const _0x4afcfe=_0x32e9;yield S(_0x4afcfe(0x26f),()=>a(this,null,function*(){const _0x30d497=_0x4afcfe;n(this,k,Rt)[_0x30d497(0x245)](this),this[_0x30d497(0x247)](_0x30d497(0x219),[{'eventProperty':_0x30d497(0x266),'value':localStorage[_0x30d497(0x231)]('customer')||0x0}]);}));});}[_0x2f5ce2(0x247)](_0x2fa96b,_0x3a8469){return a(this,null,function*(){yield S('add',()=>a(this,null,function*(){const _0x20d1f3=_0x32e9;var _0x392205,_0x1c9c1c;let _0x181bb9=n(this,at,Gt)[_0x20d1f3(0x245)](this),_0x1a4a14=n(this,ct,Xt)['call'](this,_0x181bb9,_0x2fa96b,_0x3a8469);if(typeof _0x1a4a14==_0x20d1f3(0x215)){c['showErrorLog']&&console[_0x20d1f3(0x1f5)](_0x1a4a14);return;}let {id:_0x1c4a33}=_0x181bb9[_0x2fa96b];if(c[_0x20d1f3(0x1ed)]){let _0x4d13af=JSON[_0x20d1f3(0x246)](localStorage[_0x20d1f3(0x231)](_0x20d1f3(0x248))||'[]');if(_0x4d13af[_0x20d1f3(0x21e)]<=0x32){let _0x5140c={'eventId':_0x1c4a33};_0x3a8469&&(_0x5140c['eventProperties']=_0x1a4a14),_0x4d13af[_0x20d1f3(0x1f6)](_0x5140c),localStorage[_0x20d1f3(0x1ec)](_0x20d1f3(0x248),JSON[_0x20d1f3(0x263)](_0x4d13af));}return;}let _0x805c48=_0x3a8469?n(this,M,bt)['call'](this,_0x1c4a33,_0x1a4a14):n(this,M,bt)['call'](this,_0x1c4a33),_0x550fca=yield n(this,lt,Zt)[_0x20d1f3(0x245)](this,_0x805c48);n(this,ut,te)[_0x20d1f3(0x245)](this,(_0x392205=_0x550fca==null?void 0x0:_0x550fca['data'])==null?void 0x0:_0x392205[_0x20d1f3(0x226)])&&(n(this,dt,ee)[_0x20d1f3(0x245)](this,(_0x1c9c1c=_0x550fca==null?void 0x0:_0x550fca['data'])==null?void 0x0:_0x1c9c1c['data']),u(this,G)[_0x20d1f3(0x245)](this),n(this,B,St)[_0x20d1f3(0x245)](this));}));});}};w=new WeakMap(),v=new WeakMap(),N=new WeakMap(),L=new WeakMap(),x=new WeakMap(),D=new WeakMap(),C=new WeakSet(),ft=function(){return a(this,null,function*(){const _0x5269b6=_0x32e9;try{yield y[_0x5269b6(0x22d)](_0x5269b6(0x1f8));}catch(_0x19ac50){c[_0x5269b6(0x212)]=!0x0,c[_0x5269b6(0x201)]&&console['error'](_0x19ac50['message']);}});},_=new WeakSet(),It=function(){return a(this,null,function*(){const _0x650363=_0x32e9;let _0x7d15a9=window[_0x650363(0x236)]['hostname']+window['location']['pathname'];yield this[_0x650363(0x247)](_0x650363(0x256),[{'eventProperty':_0x650363(0x1fc),'value':_0x7d15a9}]),_0x7d15a9!==u(this,D)&&(m(this,D,_0x7d15a9),new URLSearchParams(new URL(window[_0x650363(0x236)][_0x650363(0x21a)])[_0x650363(0x211)])[_0x650363(0x216)]((_0x38362a,_0x3e366c)=>a(this,null,function*(){const _0x52c0d4=_0x650363;yield this[_0x52c0d4(0x247)](_0x52c0d4(0x256),[{'eventProperty':_0x52c0d4(0x25c),'value':_0x3e366c+':'+_0x38362a}]);})));});},Y=new WeakSet(),Mt=function(_0x4cb812){const _0x86999f=_0x2f5ce2;y[_0x86999f(0x270)](_0x4cb812);},H=new WeakSet(),kt=function(){const _0x4b51be=_0x2f5ce2;return!localStorage[_0x4b51be(0x231)]('events')||!localStorage[_0x4b51be(0x231)](_0x4b51be(0x26e))||!localStorage[_0x4b51be(0x231)](_0x4b51be(0x208))||!localStorage['getItem']('uniqueIdentity');},W=new WeakSet(),Jt=function(){return a(this,null,function*(){const _0x37c27e=_0x32e9;yield n(this,tt,jt)['call'](this),yield n(this,V,Tt)[_0x37c27e(0x245)](this),yield n(this,b,K)['call'](this);});},G=new WeakMap(),$=new WeakMap(),X=new WeakMap(),Z=new WeakSet(),Qt=function(){const _0x4ac6c6=_0x2f5ce2;let _0x3b3d4d=localStorage[_0x4ac6c6(0x231)]('uniqueIdentity');return _0x3b3d4d||(_0x3b3d4d=_0x1c8958(),localStorage['setItem'](_0x4ac6c6(0x255),_0x3b3d4d)),_0x3b3d4d;},tt=new WeakSet(),jt=function(){return a(this,null,function*(){const _0x3d50bd=_0x32e9;if(!localStorage[_0x3d50bd(0x231)]('events')){let _0x129324=(yield n(this,et,qt)[_0x3d50bd(0x245)](this))[_0x3d50bd(0x226)];_0x129324&&(m(this,N,_0x129324),localStorage[_0x3d50bd(0x1ec)](_0x3d50bd(0x23d),JSON['stringify'](u(this,N))));}});},et=new WeakSet(),qt=function(){return a(this,null,function*(){try{return(yield y['get'](''+j))['data'];}catch(_0x3d75b4){throw new Error('Error\x20fetching\x20event\x20data');}});},V=new WeakSet(),Tt=function(){return a(this,null,function*(){const _0x18b4ad=_0x32e9;if(!localStorage[_0x18b4ad(0x231)]('attributes')){let _0x2bb122=(yield n(this,rt,zt)[_0x18b4ad(0x245)](this))[_0x18b4ad(0x226)];_0x2bb122&&(m(this,L,_0x2bb122),localStorage['setItem'](_0x18b4ad(0x208),JSON[_0x18b4ad(0x263)](u(this,L))));}});},rt=new WeakSet(),zt=function(){return a(this,null,function*(){const _0x57284b=_0x32e9;try{return(yield y[_0x57284b(0x22d)](''+mt))[_0x57284b(0x226)];}catch(_0x560115){throw new Error('Error\x20fetching\x20attribute\x20data');}});},b=new WeakSet(),K=function(_0x41b6c3){return a(this,null,function*(){const _0x3f21d4=_0x32e9;if(!_0x41b6c3){let _0x3a3a8c=localStorage[_0x3f21d4(0x231)](_0x3f21d4(0x26e));if(_0x3a3a8c){m(this,v,_0x3a3a8c);return;}}let _0x5229de={'deviceId':localStorage[_0x3f21d4(0x231)](_0x3f21d4(0x255))||_0x1c8958(),'os':u(this,x)};_0x41b6c3&&(_0x5229de['identity']=_0x41b6c3);try{let _0x26a261=(yield n(this,ot,Kt)[_0x3f21d4(0x245)](this,_0x5229de))[_0x3f21d4(0x226)];_0x26a261!==void 0x0&&(m(this,v,_0x26a261),localStorage['setItem'](_0x3f21d4(0x26e),u(this,v)));}catch(_0x48ec6e){throw new Error(_0x3f21d4(0x209));}});},ot=new WeakSet(),Kt=function(_0x85d5c8){return a(this,null,function*(){const _0x181a4a=_0x32e9;try{return(yield y[_0x181a4a(0x22a)](''+$t+Vt,_0x85d5c8))[_0x181a4a(0x226)];}catch(_0x3327f0){throw new Error(_0x181a4a(0x23a));}});},B=new WeakSet(),St=function(){const _0x2a8222=_0x2f5ce2;let _0x2c2ed0=n(this,it,Yt)[_0x2a8222(0x245)](this);if(_0x2c2ed0){let _0x1ed3fd=_0x2c2ed0[_0x2a8222(0x25e)],_0x6663f1=_0x2c2ed0[_0x2a8222(0x202)];_0x2c2ed0[_0x2a8222(0x222)]?n(this,nt,Ht)[_0x2a8222(0x245)](this,_0x2c2ed0,_0x1ed3fd,_0x6663f1):n(this,F,wt)[_0x2a8222(0x245)](this,_0x1ed3fd,_0x6663f1);}},it=new WeakSet(),Yt=function(){const _0x5caad1=_0x2f5ce2;let _0x135b96=localStorage['getItem'](_0x5caad1(0x251));return _0x135b96?JSON[_0x5caad1(0x246)](_0x135b96):null;},nt=new WeakSet(),Ht=function(_0x3356f5,_0x40f0fb,_0x5339db){const _0x5ace7d=_0x2f5ce2;let _0x321f3b=parseInt(_0x3356f5[_0x5ace7d(0x237)],0xa)+_0x3356f5[_0x5ace7d(0x222)]-new Date()[_0x5ace7d(0x1eb)]();_0x321f3b>0x0&&_0x3356f5[_0x5ace7d(0x26c)]===window['location'][_0x5ace7d(0x1f0)]+window[_0x5ace7d(0x236)]['pathname']&&setTimeout(()=>{u(this,$)['call'](this),n(this,F,wt)['call'](this,_0x40f0fb,_0x5339db);},_0x321f3b);},F=new WeakSet(),wt=function(_0x144b20,_0x32c40c){const _0xe19872=_0x2f5ce2;let _0x501784=n(this,st,Wt)[_0xe19872(0x245)](this,_0xe19872(0x1f2),_0x144b20,_0x32c40c);document[_0xe19872(0x258)][_0xe19872(0x210)](_0x501784),u(this,$)['call'](this);},st=new WeakSet(),Wt=function(_0x580bec,_0x29c926,_0x495541){const _0x2b4f30=_0x2f5ce2;var _0x37c404;let _0x3cf70c=document[_0x2b4f30(0x275)](_0x580bec);return _0x3cf70c['id']=_0x2b4f30(0x276)+_0x495541,_0x3cf70c[_0x2b4f30(0x1e7)]=_0x29c926,_0x3cf70c[_0x2b4f30(0x24d)](_0x2b4f30(0x26d))[_0x2b4f30(0x216)]((_0x40714d,_0x382baf)=>{const _0x2bd16c=_0x2b4f30;_0x40714d['addEventListener'](_0x2bd16c(0x26b),_0x3b5e8f=>a(this,null,function*(){const _0x595647=_0x2bd16c;_0x3b5e8f['preventDefault']();let _0x1c8b8d=new FormData(_0x40714d),_0x16570e={};for(let [_0x50b1a9,_0x168923]of _0x1c8b8d[_0x595647(0x220)]())_0x16570e[_0x50b1a9]=_0x168923,console[_0x595647(0x25d)]('Name:\x20'+_0x50b1a9+_0x595647(0x20d)+_0x168923);yield this['recordEvent'](_0x595647(0x1ef),[{'eventProperty':_0x595647(0x260),'value':_0x495541},{'eventProperty':'Form\x20'+(_0x382baf+0x1)+'\x20Values','value':_0x16570e}]);}));}),(_0x37c404=_0x3cf70c[_0x2b4f30(0x207)](_0x2b4f30(0x254)))==null||_0x37c404[_0x2b4f30(0x21c)](_0x2b4f30(0x1f4),()=>a(this,null,function*(){const _0x16848f=_0x2b4f30;_0x3cf70c[_0x16848f(0x274)](),yield this['recordEvent']('Popup\x20Button\x20Clicked',[{'eventProperty':_0x16848f(0x260),'value':_0x495541}]);})),_0x3cf70c['querySelectorAll'](_0x2b4f30(0x244))[_0x2b4f30(0x216)](_0x29891c=>{const _0x46ba35=_0x2b4f30;_0x29891c['addEventListener'](_0x46ba35(0x1f4),()=>a(this,null,function*(){const _0x1e4e50=_0x46ba35;yield this['recordEvent'](_0x1e4e50(0x229),[{'eventProperty':_0x1e4e50(0x260),'value':_0x495541}]);}));}),_0x3cf70c['querySelectorAll']('.u-popup-container\x20img')[_0x2b4f30(0x216)](_0xfcfff5=>{const _0x374988=_0x2b4f30;_0xfcfff5['addEventListener'](_0x374988(0x1f4),()=>a(this,null,function*(){const _0x14304c=_0x374988;yield this[_0x14304c(0x247)](_0x14304c(0x203),[{'eventProperty':_0x14304c(0x260),'value':_0x495541}]);}));}),_0x3cf70c;},at=new WeakSet(),Gt=function(){const _0x1a8bb5=_0x2f5ce2;let _0x178962=localStorage[_0x1a8bb5(0x231)](_0x1a8bb5(0x23d));return _0x178962?JSON[_0x1a8bb5(0x246)](_0x178962):{};},ct=new WeakSet(),Xt=function(_0x243776,_0x58ec05,_0x55cb16){const _0xb7c9c6=_0x2f5ce2;if(!_0x243776[_0xb7c9c6(0x241)](_0x58ec05))return _0xb7c9c6(0x240)+_0x58ec05+'\x20is\x20not\x20valid.';if(!_0x55cb16)return[];let _0x4d9394=_0x243776[_0x58ec05];if(!(_0x4d9394!=null&&_0x4d9394[_0xb7c9c6(0x238)]))return _0xb7c9c6(0x240)+_0x58ec05+_0xb7c9c6(0x23e);let _0x3899ad=_0x55cb16[_0xb7c9c6(0x277)](({eventProperty:_0x1f5479})=>!_0x4d9394['eventProperty'][_0xb7c9c6(0x241)](_0x1f5479))[_0xb7c9c6(0x21b)](({eventProperty:_0x44a616})=>_0x44a616);return _0x3899ad[_0xb7c9c6(0x21e)]>0x0?_0xb7c9c6(0x240)+_0x58ec05+_0xb7c9c6(0x24c)+_0x3899ad[_0xb7c9c6(0x228)](',\x20')+'.':_0x55cb16[_0xb7c9c6(0x21b)](({eventProperty:_0xb4cad4,value:_0x59d00e})=>({'eventPropertyId':_0x4d9394['eventProperty'][_0xb4cad4]['id'],'value':_0x59d00e}));},M=new WeakSet(),bt=function(_0x1ed566,_0x406930){const _0x4f203f=_0x2f5ce2;let _0x32ca2a=[{'customerId':localStorage[_0x4f203f(0x231)](_0x4f203f(0x26e))||'0','events':[{'eventId':_0x1ed566}]}];return _0x406930&&(_0x32ca2a[0x0][_0x4f203f(0x23d)][0x0][_0x4f203f(0x252)]=_0x406930),_0x32ca2a;},lt=new WeakSet(),Zt=function(_0x1afa1b){return a(this,null,function*(){try{return yield y['post'](''+j+Ct,_0x1afa1b);}catch(_0x2f86d4){throw new Error('Error\x20posting\x20event\x20record');}});},ut=new WeakSet(),te=function(_0x2c4484){const _0x53ce2a=_0x2f5ce2;return(_0x2c4484==null?void 0x0:_0x2c4484[_0x53ce2a(0x271)])===_0x53ce2a(0x218);},dt=new WeakSet(),ee=function(_0x3e26b5){const _0x46a98c=_0x2f5ce2;localStorage['setItem'](_0x46a98c(0x251),JSON[_0x46a98c(0x263)](gt(pt({},_0x3e26b5),{'initialTime':''+new Date()['getTime']()})));},k=new WeakSet(),Rt=function(){const _0x33b66a=_0x2f5ce2;localStorage[_0x33b66a(0x269)](_0x33b66a(0x251)),localStorage[_0x33b66a(0x269)](_0x33b66a(0x23d)),localStorage[_0x33b66a(0x269)](_0x33b66a(0x208)),localStorage['removeItem'](_0x33b66a(0x248));},J=new WeakSet(),Pt=function(){return a(this,null,function*(){const _0x448aaa=_0x32e9;localStorage[_0x448aaa(0x231)]('attributes')||(yield n(this,V,Tt)[_0x448aaa(0x245)](this));});},Q=new WeakSet(),At=function(_0x2b1a44){return a(this,null,function*(){const _0x27b032=_0x32e9;try{return yield y[_0x27b032(0x22a)](''+mt+Dt,_0x2b1a44);}catch(_0x41fbcc){throw new Error('Error\x20posting\x20attribute\x20record');}});},i(I,w,void 0x0);function _0x32e9(_0x4fa784,_0x9f58db){const _0x123219=_0x1232();return _0x32e9=function(_0x32e998,_0x1035b4){_0x32e998=_0x32e998-0x1e7;let _0x4bedc5=_0x123219[_0x32e998];return _0x4bedc5;},_0x32e9(_0x4fa784,_0x9f58db);}var vt=I,re=vt['getInstance'](),Me=re;export{Me as default};
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};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mergn-webapp-sdk",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "",
5
5
  "author": "yaseenmergn123",
6
6
  "main": "./dist/index.js",