mergn-webapp-sdk 1.0.1 → 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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Mergn Web SDK
2
2
 
3
- ![npm version](https://img.shields.io/npm/v/mergn-webapp-sdk)
3
+ [![npm version](https://img.shields.io/npm/v/mergn-webapp-sdk)](https://www.npmjs.com/package/mergn-webapp-sdk)
4
4
  [![npm downloads](https://img.shields.io/npm/dm/mergn-webapp-sdk.svg)](https://www.npmjs.com/package/mergn-webapp-sdk)
5
5
 
6
6
  ## Installation
@@ -35,6 +35,17 @@ mergn.recordEvent('Product viewed');
35
35
  mergn.recordEvent('Product viewed', [{ eventProperty: 'Mens Accessories', value: 59.99 }]);
36
36
  ```
37
37
 
38
+ ### Attribute Record
39
+
40
+ Records or updates the attributes of user such as name, age or address.
41
+
42
+ ```javascript
43
+ mergn.recordAttribute({
44
+ name: 'John Smith',
45
+ age: 5,
46
+ });
47
+ ```
48
+
38
49
  ### User Login
39
50
 
40
51
  Use this method where user is logged in successfully to record login event.
package/dist/index.d.mts CHANGED
@@ -8,10 +8,10 @@ declare class MergnService {
8
8
  login(identity: string): Promise<void>;
9
9
  updateAttribute(attributeName: string, attributeValue: string, data?: Record<string, any>): Promise<void>;
10
10
  logout(): Promise<void>;
11
- recordEvent(eventName: string, eventProperties?: [{
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
@@ -8,10 +8,10 @@ declare class MergnService {
8
8
  login(identity: string): Promise<void>;
9
9
  updateAttribute(attributeName: string, attributeValue: string, data?: Record<string, any>): Promise<void>;
10
10
  logout(): Promise<void>;
11
- recordEvent(eventName: string, eventProperties?: [{
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';const _0x4dcc7d=_0x5bf7;(function(_0x43bbf0,_0x4d7119){const _0x5bf9c4=_0x5bf7,_0x493755=_0x43bbf0();while(!![]){try{const _0x1cd02a=-parseInt(_0x5bf9c4(0x12e))/0x1*(-parseInt(_0x5bf9c4(0x18e))/0x2)+parseInt(_0x5bf9c4(0x171))/0x3+-parseInt(_0x5bf9c4(0x161))/0x4*(-parseInt(_0x5bf9c4(0x132))/0x5)+parseInt(_0x5bf9c4(0x150))/0x6+-parseInt(_0x5bf9c4(0x19a))/0x7*(parseInt(_0x5bf9c4(0x14b))/0x8)+-parseInt(_0x5bf9c4(0x147))/0x9+-parseInt(_0x5bf9c4(0x155))/0xa*(-parseInt(_0x5bf9c4(0x190))/0xb);if(_0x1cd02a===_0x4d7119)break;else _0x493755['push'](_0x493755['shift']());}catch(_0x571606){_0x493755['push'](_0x493755['shift']());}}}(_0x37c3,0xaf077));function _0x37c3(){const _0x57f274=['events','enumerable','Event\x20','offline','MergnError:\x20','uniqueIdentity','[id^=\x22u_content_button_\x22]','getOwnPropertyDescriptors','create','call','Error\x20posting\x20attribute\x20record','popup_container_','status','join','querySelectorAll','map','object','getTime','pushState','querySelector','onLine','getOwnPropertyDescriptor','init','hostname','value','set','12626oQrYDq','offlineEvents','4007047tRfJwO','application/json','recordAttribute','add','.u-popup-container\x20img','\x20has\x20invalid\x20eventProperties:\x20','Mergn\x20is\x20offline!','https://95sidwa5jk.execute-api.ap-southeast-1.amazonaws.com/Prod/sdk-management/api','propertyIsEnumerable','click','84868xjkqSw','updateAttribute','AxiosError','AxiosError:\x20','name','showErrorLog','getOwnPropertyNames','stringify','MergnError','response','forEach','Campaign\x20Id','addEventListener','Error\x20setting\x20up\x20the\x20request:','HTTP\x20Status:\x20','beforeunload','isInitialized','common','Error\x20fetching\x20event\x20data','search','get','online','Error\x20posting\x20identity\x20data','/record-event','logout','Cannot\x20add\x20the\x20same\x20private\x20member\x20more\x20than\x20once','remove','write\x20to\x20private\x20field','updateAPIKey','href','next','done','defaults','post','/record-bulk-event','attributes','setItem','37nKbTLc','/attribute','Customer\x20Id','data','30hCUNpB','\x0aNo\x20response\x20received.\x20Check\x20network\x20connection\x20or\x20server\x20issues.','action','attributeProperty','/record-attribute','Cannot\x20','Error\x20posting\x20event\x20record','message','brand','Popup','Error\x20fetching\x20attribute\x20data','page','getItem','eventProperty','parse','getPrototypeOf','User\x20Login','Max\x20retries\x20reached.\x20Disabling\x20SDK.','isArray','getInstance','push','11743839cTiFco','has','createElement','prototype','832hTgfxz','location','defineProperty','error','/set-identity','5570064eXKKea','apiKey','hasOwnProperty','__esModule','headers','10bIvnFb','recordEvent','removeItem','resolve','OriginateFrom:\x20','div','/event','access\x20private\x20method','URL','exports','disableSDK','appendChild','604628GZOaQF','apply','Viewed\x20Web\x20Page','customer','load','default','.u-close-button','campaignId','pathname','identity','Unexpected\x20error:','login','length','AxiosQueueManager','keys','UTM\x20Key\x20Value','2548626iwjYwf','eventProperties','Popup\x20Image\x20Clicked'];_0x37c3=function(){return _0x57f274;};return _0x37c3();}var ue=Object[_0x4dcc7d(0x17c)],b=Object[_0x4dcc7d(0x14d)],de=Object['defineProperties'],pe=Object[_0x4dcc7d(0x189)],ge=Object[_0x4dcc7d(0x17b)],Ee=Object[_0x4dcc7d(0x1a0)],Nt=Object['getOwnPropertySymbols'],he=Object[_0x4dcc7d(0x141)],xt=Object['prototype']['hasOwnProperty'],me=Object[_0x4dcc7d(0x14a)][_0x4dcc7d(0x198)],Lt=(_0x1fd9b2,_0xf453c3,_0x2ef897)=>_0xf453c3 in _0x1fd9b2?b(_0x1fd9b2,_0xf453c3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2ef897}):_0x1fd9b2[_0xf453c3]=_0x2ef897,pt=(_0x3db4ec,_0x3abe4c)=>{const _0x325b7c=_0x4dcc7d;for(var _0x35a9a1 in _0x3abe4c||(_0x3abe4c={}))xt[_0x325b7c(0x17d)](_0x3abe4c,_0x35a9a1)&&Lt(_0x3db4ec,_0x35a9a1,_0x3abe4c[_0x35a9a1]);if(Nt){for(var _0x35a9a1 of Nt(_0x3abe4c))me[_0x325b7c(0x17d)](_0x3abe4c,_0x35a9a1)&&Lt(_0x3db4ec,_0x35a9a1,_0x3abe4c[_0x35a9a1]);}return _0x3db4ec;},gt=(_0x38b140,_0x4c9688)=>de(_0x38b140,ge(_0x4c9688)),ye=(_0x5cb89b,_0x283a3e)=>{for(var _0x41f466 in _0x283a3e)b(_0x5cb89b,_0x41f466,{'get':_0x283a3e[_0x41f466],'enumerable':!0x0});},Dt=(_0x3c2919,_0x31a317,_0x3e4834,_0x2087e2)=>{const _0xc987ef=_0x4dcc7d;if(_0x31a317&&typeof _0x31a317==_0xc987ef(0x184)||typeof _0x31a317=='function'){for(let _0x4afd1d of Ee(_0x31a317))!xt[_0xc987ef(0x17d)](_0x3c2919,_0x4afd1d)&&_0x4afd1d!==_0x3e4834&&b(_0x3c2919,_0x4afd1d,{'get':()=>_0x31a317[_0x4afd1d],'enumerable':!(_0x2087e2=pe(_0x31a317,_0x4afd1d))||_0x2087e2[_0xc987ef(0x175)]});}return _0x3c2919;},_t=(_0x37acc5,_0xb5da7b,_0x1c84b6)=>(_0x1c84b6=_0x37acc5!=null?ue(he(_0x37acc5)):{},Dt(_0xb5da7b||!_0x37acc5||!_0x37acc5['__esModule']?b(_0x1c84b6,_0x4dcc7d(0x166),{'value':_0x37acc5,'enumerable':!0x0}):_0x1c84b6,_0x37acc5)),ve=_0x4735f3=>Dt(b({},_0x4dcc7d(0x153),{'value':!0x0}),_0x4735f3),Et=(_0x3316e1,_0x50b39a,_0x45fc2c)=>{const _0x3b0afe=_0x4dcc7d;if(!_0x50b39a[_0x3b0afe(0x148)](_0x3316e1))throw TypeError(_0x3b0afe(0x137)+_0x45fc2c);},u=(_0x3c7737,_0x15b7e6,_0xbefca6)=>(Et(_0x3c7737,_0x15b7e6,'read\x20from\x20private\x20field'),_0xbefca6?_0xbefca6[_0x4dcc7d(0x17d)](_0x3c7737):_0x15b7e6[_0x4dcc7d(0x11d)](_0x3c7737)),i=(_0x4cdb3c,_0x53194e,_0x543bf4)=>{const _0x30c397=_0x4dcc7d;if(_0x53194e[_0x30c397(0x148)](_0x4cdb3c))throw TypeError(_0x30c397(0x122));_0x53194e instanceof WeakSet?_0x53194e[_0x30c397(0x193)](_0x4cdb3c):_0x53194e['set'](_0x4cdb3c,_0x543bf4);},E=(_0xa22eae,_0xfc7747,_0x275220,_0x24f60b)=>(Et(_0xa22eae,_0xfc7747,_0x4dcc7d(0x124)),_0x24f60b?_0x24f60b['call'](_0xa22eae,_0x275220):_0xfc7747[_0x4dcc7d(0x18d)](_0xa22eae,_0x275220),_0x275220),Ct=(_0x1e8d88,_0x11eaa3,_0x4daf0d,_0x541acf)=>({set '_'(_0x1c22ac){E(_0x1e8d88,_0x11eaa3,_0x1c22ac,_0x4daf0d);},get '_'(){return u(_0x1e8d88,_0x11eaa3,_0x541acf);}}),n=(_0xdf3320,_0x381829,_0x445878)=>(Et(_0xdf3320,_0x381829,_0x4dcc7d(0x15c)),_0x445878),a=(_0x27be3c,_0x28dcbd,_0x3d6365)=>new Promise((_0x67998a,_0x4f8500)=>{const _0x487c52=_0x4dcc7d;var _0x221dcf=_0x10e17f=>{const _0x5e88e5=_0x5bf7;try{_0x55f154(_0x3d6365[_0x5e88e5(0x127)](_0x10e17f));}catch(_0x41ed22){_0x4f8500(_0x41ed22);}},_0x2ddafb=_0x545219=>{try{_0x55f154(_0x3d6365['throw'](_0x545219));}catch(_0x3f41ed){_0x4f8500(_0x3f41ed);}},_0x55f154=_0x35ec90=>_0x35ec90[_0x487c52(0x128)]?_0x67998a(_0x35ec90['value']):Promise[_0x487c52(0x158)](_0x35ec90[_0x487c52(0x18c)])['then'](_0x221dcf,_0x2ddafb);_0x55f154((_0x3d6365=_0x3d6365['apply'](_0x27be3c,_0x28dcbd))['next']());}),fe={};ye(fe,{'default':()=>Te}),module[_0x4dcc7d(0x15e)]=ve(fe);var vt=require('uuid'),$t=_0x4dcc7d(0x197),ht=_0x4dcc7d(0x12f),Vt=_0x4dcc7d(0x136),Q=_0x4dcc7d(0x15b),Bt=_0x4dcc7d(0x120),Ft=_0x4dcc7d(0x12b),Mt='/customer',kt=_0x4dcc7d(0x14f),Qt=_t(require('axios')),jt=require('axios-queue-js'),qt=_t(require('axios-retry')),Jt=require('axios'),c=class extends Error{constructor(_0x120e61){const _0xb1cebe=_0x4dcc7d;super(_0x120e61),this['name']=_0xb1cebe(0x1a2);}};c['disableSDK']=!0x1,c[_0x4dcc7d(0x177)]=!navigator[_0x4dcc7d(0x188)],c[_0x4dcc7d(0x19f)]=!0x1,c[_0x4dcc7d(0x119)]=!0x1;var Ie=(_0x2ad227,_0x3db410)=>{const _0x86f1f8=_0x4dcc7d;_0x3db410 instanceof c?console['error'](_0x86f1f8(0x159)+_0x2ad227,_0x86f1f8(0x178)+_0x3db410[_0x86f1f8(0x139)]):_0x3db410 instanceof Jt[_0x86f1f8(0x19c)]?(console[_0x86f1f8(0x14e)]('OriginateFrom:\x20'+_0x2ad227,_0x86f1f8(0x19d)+_0x3db410[_0x86f1f8(0x139)]),_0x3db410[_0x86f1f8(0x1a3)]?(console['error'](_0x86f1f8(0x159)+_0x2ad227,_0x86f1f8(0x117)+_0x3db410['response'][_0x86f1f8(0x180)]),console['error'](_0x86f1f8(0x159)+_0x2ad227,'Response\x20Data:',_0x3db410[_0x86f1f8(0x1a3)][_0x86f1f8(0x131)])):_0x3db410['request']?console['error'](_0x86f1f8(0x159)+_0x2ad227+_0x86f1f8(0x133)):console['error']('OriginateFrom:\x20'+_0x2ad227,_0x86f1f8(0x116),_0x3db410[_0x86f1f8(0x139)])):_0x3db410 instanceof Error?console[_0x86f1f8(0x14e)](_0x86f1f8(0x159)+_0x2ad227,_0x86f1f8(0x16b),_0x3db410[_0x86f1f8(0x139)]):console[_0x86f1f8(0x14e)](_0x86f1f8(0x159)+_0x2ad227,_0x86f1f8(0x16b),String(_0x3db410));},f=(_0x10712a,_0x17db37,_0x39d89e)=>a(void 0x0,null,function*(){const _0x3850b1=_0x4dcc7d;try{if(c[_0x3850b1(0x15f)])throw new c('Mergn\x20SDK\x20is\x20disabled!');if(_0x10712a!==_0x3850b1(0x193)&&c[_0x3850b1(0x177)])throw new c(_0x3850b1(0x196));if(_0x10712a!=='init'&&!c[_0x3850b1(0x119)])throw new c('Mergn\x20not\x20initialized!');return yield _0x17db37();}catch(_0x34fea1){return _0x39d89e?_0x39d89e(_0x34fea1):c['showErrorLog']&&Ie(_0x10712a,_0x34fea1),null;}}),I,R,P,A,j,U,yt,q,zt,d=class d{constructor(){const _0x3f7aa4=_0x4dcc7d;i(this,j,0x0);let _0x74dfed=Qt[_0x3f7aa4(0x166)]['create']({'baseURL':$t,'headers':{'Content-Type':_0x3f7aa4(0x191)}});E(d,R,_0x74dfed),E(d,P,new jt[(_0x3f7aa4(0x16e))]({'client':_0x74dfed,'queueSize':0xa})),(0x0,qt[_0x3f7aa4(0x166)])(_0x74dfed,{'onRetry':_0x54aa53=>{const _0x181583=_0x3f7aa4;_0x54aa53>=u(d,A)?(c[_0x181583(0x19f)]&&console['log'](_0x181583(0x143)),c[_0x181583(0x15f)]=!0x0):Ct(this,j)['_']++;},'retries':u(d,A),'retryDelay':_0x39ae5c=>_0x39ae5c*0x1388});}static[_0x4dcc7d(0x125)](_0x18a165){const _0x243b0a=_0x4dcc7d;this[_0x243b0a(0x151)]=_0x18a165,n(this,q,zt)['call'](this)[_0x243b0a(0x129)][_0x243b0a(0x154)][_0x243b0a(0x11a)]['Authorization']=_0x18a165;}static[_0x4dcc7d(0x11d)](_0x537f60){const _0x4991d1=_0x4dcc7d;return n(this,U,yt)[_0x4991d1(0x17d)](this)[_0x4991d1(0x11d)](_0x537f60);}static[_0x4dcc7d(0x12a)](_0x4e270d,_0x2a8a45){const _0x35e82a=_0x4dcc7d;return n(this,U,yt)[_0x35e82a(0x17d)](this)[_0x35e82a(0x12a)](_0x4e270d,_0x2a8a45||{});}};function _0x5bf7(_0xf925df,_0xb161cf){const _0x37c3bd=_0x37c3();return _0x5bf7=function(_0x5bf74a,_0x2821c7){_0x5bf74a=_0x5bf74a-0x116;let _0x3cef13=_0x37c3bd[_0x5bf74a];return _0x3cef13;},_0x5bf7(_0xf925df,_0xb161cf);}I=new WeakMap(),R=new WeakMap(),P=new WeakMap(),A=new WeakMap(),j=new WeakMap(),U=new WeakSet(),yt=function(){return u(d,I)||E(d,I,new d()),u(d,P);},q=new WeakSet(),zt=function(){return u(d,I)||E(d,I,new d()),u(d,R);},i(d,U),i(d,q),i(d,I,void 0x0),i(d,R,void 0x0),i(d,P,void 0x0),i(d,A,0x3);var mt=d,y=mt,S,v,O,N,L,x,D,Tt,_,ft,K,Kt,Y,Yt,H,Ht,W,C,G,X,Wt,Z,Gt,tt,Xt,$,St,et,Zt,w,z,rt,te,V,wt,ot,ee,it,re,B,bt,nt,oe,st,ie,at,ne,F,Rt,ct,se,lt,ae,ut,ce,M,Pt,k,At,J,Ut,T=class T{constructor(){i(this,D),i(this,_),i(this,K),i(this,Y),i(this,H),i(this,X),i(this,Z),i(this,tt),i(this,$),i(this,et),i(this,w),i(this,rt),i(this,V),i(this,ot),i(this,it),i(this,B),i(this,nt),i(this,st),i(this,at),i(this,F),i(this,ct),i(this,lt),i(this,ut),i(this,M),i(this,k),i(this,J),i(this,v,''),i(this,O,void 0x0),i(this,N,void 0x0),i(this,L,void 0x0),i(this,x,null),i(this,W,()=>{const _0x15410e=_0x5bf7;let _0x49dfbf=()=>{const _0x32f68a=_0x5bf7;let _0x24dd49=JSON[_0x32f68a(0x140)](localStorage[_0x32f68a(0x13e)](_0x32f68a(0x134)));_0x24dd49&&localStorage[_0x32f68a(0x12d)](_0x32f68a(0x134),JSON[_0x32f68a(0x1a1)](gt(pt({},_0x24dd49),{'initialTime':''+new Date()['getTime'](),'page':window[_0x32f68a(0x14c)]['hostname']+window[_0x32f68a(0x14c)][_0x32f68a(0x169)]})));};_0x49dfbf(),window[_0x15410e(0x1a6)](_0x15410e(0x118),_0x49dfbf);}),i(this,C,()=>{const _0x19822a=_0x5bf7;localStorage['removeItem'](_0x19822a(0x134));}),i(this,G,()=>{const _0x2d8699=_0x5bf7;let _0x41c957=JSON[_0x2d8699(0x140)](localStorage[_0x2d8699(0x13e)]('action')||'{}');(_0x41c957==null?void 0x0:_0x41c957[_0x2d8699(0x19e)])===_0x2d8699(0x13b)&&n(this,V,wt)[_0x2d8699(0x17d)](this);}),E(this,L,navigator['platform']);}static['getInstance'](){return u(T,S)||E(T,S,new T()),u(T,S);}[_0x4dcc7d(0x18a)](_0x318944){const _0x2e61a0=_0x4dcc7d;f(_0x2e61a0(0x18a),()=>a(this,null,function*(){const _0x482615=_0x2e61a0;n(this,K,Kt)['call'](this,_0x318944),yield n(this,D,Tt)[_0x482615(0x17d)](this),setInterval(()=>a(this,null,function*(){const _0x220fae=_0x482615;yield n(this,D,Tt)[_0x220fae(0x17d)](this);}),0x493e0);let _0x5c4c40=localStorage[_0x482615(0x13e)]('ttl'),_0x26579a=!0x1;_0x5c4c40&&(_0x26579a=new Date()[_0x482615(0x185)]()-parseInt(_0x5c4c40,0xa)>0x1b7740,_0x26579a&&n(this,M,Pt)[_0x482615(0x17d)](this)),(!_0x5c4c40||_0x26579a||n(this,Y,Yt)[_0x482615(0x17d)](this))&&(n(this,X,Wt)[_0x482615(0x17d)](this),yield n(this,w,z)[_0x482615(0x17d)](this),yield n(this,H,Ht)[_0x482615(0x17d)](this)),window[_0x482615(0x1a6)](_0x482615(0x11e),()=>a(this,null,function*(){const _0x383d4e=_0x482615;c[_0x383d4e(0x177)]=!0x1;let _0x3c57b9=JSON[_0x383d4e(0x140)](localStorage[_0x383d4e(0x13e)](_0x383d4e(0x18f))||'[]');Array[_0x383d4e(0x144)](_0x3c57b9)&&(yield y['post'](''+Q+Ft,[{'customerId':u(this,v),'events':_0x3c57b9}]),localStorage['removeItem'](_0x383d4e(0x18f)));})),window[_0x482615(0x1a6)](_0x482615(0x177),()=>{const _0x385630=_0x482615;c[_0x385630(0x177)]=!0x0;}),window['addEventListener'](_0x482615(0x165),()=>{const _0x17e484=_0x482615;u(this,G)[_0x17e484(0x17d)](this);}),c[_0x482615(0x119)]=!0x0;let _0x191770=history[_0x482615(0x186)];history[_0x482615(0x186)]=(..._0x2c00d5)=>{const _0x36a61d=_0x482615;_0x191770[_0x36a61d(0x162)](history,_0x2c00d5),n(this,_,ft)[_0x36a61d(0x17d)](this);},n(this,_,ft)[_0x482615(0x17d)](this);}));}['showErrorLog'](_0x2fa05d=!0x1){const _0x1abf4c=_0x4dcc7d;c[_0x1abf4c(0x19f)]=_0x2fa05d;}[_0x4dcc7d(0x192)](_0x1866a8){return a(this,null,function*(){const _0x242cbd=_0x5bf7;yield f(_0x242cbd(0x192),()=>a(this,null,function*(){const _0x3c64bc=_0x242cbd;yield n(this,k,At)['call'](this);let _0x91e896=JSON['parse'](localStorage[_0x3c64bc(0x13e)](_0x3c64bc(0x12c))||'{}');if(_0x91e896&&Object[_0x3c64bc(0x16f)](_0x91e896)[_0x3c64bc(0x16d)]>0x0){let _0x34427=[];_0x1866a8&&Object[_0x3c64bc(0x16f)](_0x1866a8)[_0x3c64bc(0x16d)]>0x0&&Object[_0x3c64bc(0x16f)](_0x1866a8)[_0x3c64bc(0x1a4)](_0x31581a=>{const _0x58a76e=_0x3c64bc;_0x91e896[_0x58a76e(0x152)](_0x31581a)&&_0x34427[_0x58a76e(0x146)]({'attributeId':_0x91e896[_0x31581a]['id'],'attributeProperties':[],'value':_0x1866a8[_0x31581a]});});let _0x32b76d=[{'attributes':_0x34427,'customerId':u(this,v)}];yield n(this,J,Ut)[_0x3c64bc(0x17d)](this,_0x32b76d);}}));});}[_0x4dcc7d(0x16c)](_0x36c829){return a(this,null,function*(){const _0x588cff=_0x5bf7;yield f(_0x588cff(0x16c),()=>a(this,null,function*(){const _0x24d60a=_0x588cff;yield n(this,w,z)[_0x24d60a(0x17d)](this,_0x36c829),yield this[_0x24d60a(0x156)](_0x24d60a(0x142),[{'eventProperty':_0x24d60a(0x130),'value':localStorage[_0x24d60a(0x13e)](_0x24d60a(0x164))||0x0}]);}));});}[_0x4dcc7d(0x19b)](_0x5688e9,_0x267190,_0x12a91c){return a(this,null,function*(){const _0x4e4d3c=_0x5bf7;yield n(this,k,At)[_0x4e4d3c(0x17d)](this);let _0x963986=JSON['parse'](localStorage[_0x4e4d3c(0x13e)](_0x4e4d3c(0x12c))||'{}');if(_0x963986&&Object[_0x4e4d3c(0x16f)](_0x963986)[_0x4e4d3c(0x16d)]>0x0&&_0x963986[_0x4e4d3c(0x152)](_0x5688e9)){let _0x1c8a48=_0x963986[_0x5688e9],_0x18ae2a=_0x1c8a48[_0x4e4d3c(0x135)],_0x423916=[];_0x12a91c&&Object['keys'](_0x12a91c)['length']>0x0&&Object[_0x4e4d3c(0x16f)](_0x12a91c)[_0x4e4d3c(0x1a4)](_0x2dcaa5=>{const _0x52644a=_0x4e4d3c;_0x18ae2a['hasOwnProperty'](_0x2dcaa5)&&_0x423916[_0x52644a(0x146)]({'attributePropertyId':_0x18ae2a[_0x2dcaa5]['id'],'value':_0x12a91c[_0x2dcaa5]});});let _0x4e685d=[{'attributes':[{'attributeId':_0x1c8a48['id'],'attributeProperties':_0x423916,'value':_0x267190}],'customerId':u(this,v)}];yield n(this,J,Ut)[_0x4e4d3c(0x17d)](this,_0x4e685d);}});}[_0x4dcc7d(0x121)](){return a(this,null,function*(){yield f('logout',()=>a(this,null,function*(){const _0x2e0996=_0x5bf7;n(this,M,Pt)[_0x2e0996(0x17d)](this),this['recordEvent']('User\x20Logout',[{'eventProperty':_0x2e0996(0x130),'value':localStorage[_0x2e0996(0x13e)](_0x2e0996(0x164))||0x0}]);}));});}[_0x4dcc7d(0x156)](_0xb66f7,_0x1f6bf4){return a(this,null,function*(){const _0x30dfd5=_0x5bf7;yield f(_0x30dfd5(0x193),()=>a(this,null,function*(){const _0x443fac=_0x30dfd5;var _0x526509,_0x28ea03;let _0x11e53e=n(this,st,ie)[_0x443fac(0x17d)](this),_0x440149=n(this,at,ne)[_0x443fac(0x17d)](this,_0x11e53e,_0xb66f7,_0x1f6bf4);if(typeof _0x440149=='string'){c[_0x443fac(0x19f)]&&console[_0x443fac(0x14e)](_0x440149);return;}let {id:_0x25345d}=_0x11e53e[_0xb66f7];if(c[_0x443fac(0x177)]){let _0xe6883a=JSON[_0x443fac(0x140)](localStorage[_0x443fac(0x13e)]('offlineEvents')||'[]');if(_0xe6883a['length']<=0x32){let _0x5e6211={'eventId':_0x25345d};_0x1f6bf4&&(_0x5e6211[_0x443fac(0x172)]=_0x440149),_0xe6883a['push'](_0x5e6211),localStorage[_0x443fac(0x12d)](_0x443fac(0x18f),JSON[_0x443fac(0x1a1)](_0xe6883a));}return;}let _0x647dd7=_0x1f6bf4?n(this,F,Rt)[_0x443fac(0x17d)](this,_0x25345d,_0x440149):n(this,F,Rt)[_0x443fac(0x17d)](this,_0x25345d),_0x13ad0f=yield n(this,ct,se)[_0x443fac(0x17d)](this,_0x647dd7);n(this,lt,ae)['call'](this,(_0x526509=_0x13ad0f==null?void 0x0:_0x13ad0f['data'])==null?void 0x0:_0x526509[_0x443fac(0x131)])&&(n(this,ut,ce)[_0x443fac(0x17d)](this,(_0x28ea03=_0x13ad0f==null?void 0x0:_0x13ad0f['data'])==null?void 0x0:_0x28ea03[_0x443fac(0x131)]),u(this,W)[_0x443fac(0x17d)](this),n(this,V,wt)[_0x443fac(0x17d)](this));}));});}};S=new WeakMap(),v=new WeakMap(),O=new WeakMap(),N=new WeakMap(),L=new WeakMap(),x=new WeakMap(),D=new WeakSet(),Tt=function(){return a(this,null,function*(){const _0x55a1f4=_0x5bf7;try{yield y[_0x55a1f4(0x11d)](_0x55a1f4(0x13a));}catch(_0xc7592){c[_0x55a1f4(0x15f)]=!0x0,c['showErrorLog']&&console[_0x55a1f4(0x14e)](_0xc7592['message']);}});},_=new WeakSet(),ft=function(){return a(this,null,function*(){const _0x1be2c6=_0x5bf7;let _0x486e2e=window[_0x1be2c6(0x14c)][_0x1be2c6(0x18b)]+window[_0x1be2c6(0x14c)]['pathname'];yield this[_0x1be2c6(0x156)](_0x1be2c6(0x163),[{'eventProperty':_0x1be2c6(0x15d),'value':_0x486e2e}]),_0x486e2e!==u(this,x)&&(E(this,x,_0x486e2e),new URLSearchParams(new URL(window[_0x1be2c6(0x14c)][_0x1be2c6(0x126)])[_0x1be2c6(0x11c)])[_0x1be2c6(0x1a4)]((_0x2511cb,_0x277691)=>a(this,null,function*(){const _0x43d7ed=_0x1be2c6;yield this[_0x43d7ed(0x156)]('Viewed\x20Web\x20Page',[{'eventProperty':_0x43d7ed(0x170),'value':_0x277691+':'+_0x2511cb}]);})));});},K=new WeakSet(),Kt=function(_0xd795a5){const _0x1cea50=_0x4dcc7d;y[_0x1cea50(0x125)](_0xd795a5);},Y=new WeakSet(),Yt=function(){const _0x58ca53=_0x4dcc7d;return!localStorage['getItem'](_0x58ca53(0x174))||!localStorage[_0x58ca53(0x13e)](_0x58ca53(0x164))||!localStorage[_0x58ca53(0x13e)]('attributes')||!localStorage[_0x58ca53(0x13e)](_0x58ca53(0x179));},H=new WeakSet(),Ht=function(){return a(this,null,function*(){const _0x566c69=_0x5bf7;yield n(this,Z,Gt)[_0x566c69(0x17d)](this),yield n(this,$,St)[_0x566c69(0x17d)](this),yield n(this,w,z)[_0x566c69(0x17d)](this);});},W=new WeakMap(),C=new WeakMap(),G=new WeakMap(),X=new WeakSet(),Wt=function(){const _0x4ce3f3=_0x4dcc7d;let _0x1f5d38=localStorage['getItem'](_0x4ce3f3(0x179));return _0x1f5d38||(_0x1f5d38=(0x0,vt['v4'])(),localStorage[_0x4ce3f3(0x12d)]('uniqueIdentity',_0x1f5d38)),_0x1f5d38;},Z=new WeakSet(),Gt=function(){return a(this,null,function*(){const _0x500f9b=_0x5bf7;if(!localStorage[_0x500f9b(0x13e)](_0x500f9b(0x174))){let _0x27b9e1=(yield n(this,tt,Xt)['call'](this))[_0x500f9b(0x131)];_0x27b9e1&&(E(this,O,_0x27b9e1),localStorage[_0x500f9b(0x12d)](_0x500f9b(0x174),JSON[_0x500f9b(0x1a1)](u(this,O))));}});},tt=new WeakSet(),Xt=function(){return a(this,null,function*(){const _0x4fad10=_0x5bf7;try{return(yield y[_0x4fad10(0x11d)](''+Q))[_0x4fad10(0x131)];}catch(_0x2e2ded){throw new Error(_0x4fad10(0x11b));}});},$=new WeakSet(),St=function(){return a(this,null,function*(){const _0x1ad01c=_0x5bf7;if(!localStorage[_0x1ad01c(0x13e)](_0x1ad01c(0x12c))){let _0x2ad737=(yield n(this,et,Zt)['call'](this))[_0x1ad01c(0x131)];_0x2ad737&&(E(this,N,_0x2ad737),localStorage[_0x1ad01c(0x12d)](_0x1ad01c(0x12c),JSON[_0x1ad01c(0x1a1)](u(this,N))));}});},et=new WeakSet(),Zt=function(){return a(this,null,function*(){const _0x1240c1=_0x5bf7;try{return(yield y[_0x1240c1(0x11d)](''+ht))[_0x1240c1(0x131)];}catch(_0x4569ac){throw new Error(_0x1240c1(0x13c));}});},w=new WeakSet(),z=function(_0x2a08a6){return a(this,null,function*(){const _0x2de40c=_0x5bf7;if(!_0x2a08a6){let _0x520d73=localStorage[_0x2de40c(0x13e)](_0x2de40c(0x164));if(_0x520d73){E(this,v,_0x520d73);return;}}let _0x2a95f8={'deviceId':localStorage[_0x2de40c(0x13e)](_0x2de40c(0x179))||(0x0,vt['v4'])(),'os':u(this,L)};_0x2a08a6&&(_0x2a95f8[_0x2de40c(0x16a)]=_0x2a08a6);try{let _0x365d75=(yield n(this,rt,te)[_0x2de40c(0x17d)](this,_0x2a95f8))[_0x2de40c(0x131)];_0x365d75!==void 0x0&&(E(this,v,_0x365d75),localStorage[_0x2de40c(0x12d)]('customer',u(this,v)));}catch(_0x2e0918){throw new Error('Error\x20setting\x20identity');}});},rt=new WeakSet(),te=function(_0x593866){return a(this,null,function*(){const _0x5cfc7f=_0x5bf7;try{return(yield y[_0x5cfc7f(0x12a)](''+Mt+kt,_0x593866))[_0x5cfc7f(0x131)];}catch(_0x2cea43){throw new Error(_0x5cfc7f(0x11f));}});},V=new WeakSet(),wt=function(){const _0x5875f0=_0x4dcc7d;let _0x4f3a6f=n(this,ot,ee)[_0x5875f0(0x17d)](this);if(_0x4f3a6f){let _0x3d3af3=_0x4f3a6f['design'],_0x5119c8=_0x4f3a6f[_0x5875f0(0x168)];_0x4f3a6f['delay']?n(this,it,re)[_0x5875f0(0x17d)](this,_0x4f3a6f,_0x3d3af3,_0x5119c8):n(this,B,bt)[_0x5875f0(0x17d)](this,_0x3d3af3,_0x5119c8);}},ot=new WeakSet(),ee=function(){const _0x288eea=_0x4dcc7d;let _0x56cee8=localStorage['getItem'](_0x288eea(0x134));return _0x56cee8?JSON[_0x288eea(0x140)](_0x56cee8):null;},it=new WeakSet(),re=function(_0xae8036,_0x497262,_0x297e8c){const _0x20b88a=_0x4dcc7d;let _0xb844ec=parseInt(_0xae8036['initialTime'],0xa)+_0xae8036['delay']-new Date()['getTime']();_0xb844ec>0x0&&_0xae8036[_0x20b88a(0x13d)]===window[_0x20b88a(0x14c)][_0x20b88a(0x18b)]+window['location']['pathname']&&setTimeout(()=>{const _0x4969a5=_0x20b88a;u(this,C)[_0x4969a5(0x17d)](this),n(this,B,bt)[_0x4969a5(0x17d)](this,_0x497262,_0x297e8c);},_0xb844ec);},B=new WeakSet(),bt=function(_0x3b5669,_0x3bcb96){const _0xe91f14=_0x4dcc7d;let _0x54f814=n(this,nt,oe)[_0xe91f14(0x17d)](this,_0xe91f14(0x15a),_0x3b5669,_0x3bcb96);document['body'][_0xe91f14(0x160)](_0x54f814),u(this,C)[_0xe91f14(0x17d)](this);},nt=new WeakSet(),oe=function(_0x497d5c,_0x59c86b,_0x5bfb26){const _0x5a33d9=_0x4dcc7d;var _0x6c9826;let _0x366656=document[_0x5a33d9(0x149)](_0x497d5c);return _0x366656['id']=_0x5a33d9(0x17f)+_0x5bfb26,_0x366656['innerHTML']=_0x59c86b,(_0x6c9826=_0x366656[_0x5a33d9(0x187)](_0x5a33d9(0x167)))==null||_0x6c9826[_0x5a33d9(0x1a6)]('click',()=>a(this,null,function*(){const _0x3adbc5=_0x5a33d9;_0x366656[_0x3adbc5(0x123)](),yield this[_0x3adbc5(0x156)]('Popup\x20Button\x20Clicked',[{'eventProperty':_0x3adbc5(0x1a5),'value':_0x5bfb26}]);})),_0x366656[_0x5a33d9(0x182)](_0x5a33d9(0x17a))[_0x5a33d9(0x1a4)](_0x3c87cd=>{const _0xe8498d=_0x5a33d9;_0x3c87cd[_0xe8498d(0x1a6)](_0xe8498d(0x199),()=>a(this,null,function*(){yield this['recordEvent']('Popup\x20Button\x20Clicked',[{'eventProperty':'Campaign\x20Id','value':_0x5bfb26}]);}));}),_0x366656[_0x5a33d9(0x182)](_0x5a33d9(0x194))[_0x5a33d9(0x1a4)](_0x544fc0=>{const _0x182013=_0x5a33d9;_0x544fc0[_0x182013(0x1a6)](_0x182013(0x199),()=>a(this,null,function*(){const _0x394770=_0x182013;yield this[_0x394770(0x156)](_0x394770(0x173),[{'eventProperty':_0x394770(0x1a5),'value':_0x5bfb26}]);}));}),_0x366656;},st=new WeakSet(),ie=function(){const _0xc03322=_0x4dcc7d;let _0xe5aa11=localStorage[_0xc03322(0x13e)](_0xc03322(0x174));return _0xe5aa11?JSON[_0xc03322(0x140)](_0xe5aa11):{};},at=new WeakSet(),ne=function(_0x2a91df,_0x126a3a,_0x5d978f){const _0x5eb3b2=_0x4dcc7d;if(!_0x2a91df[_0x5eb3b2(0x152)](_0x126a3a))return _0x5eb3b2(0x176)+_0x126a3a+'\x20is\x20not\x20valid.';if(!_0x5d978f)return[];let _0x12c760=_0x2a91df[_0x126a3a];if(!(_0x12c760!=null&&_0x12c760['eventProperty']))return _0x5eb3b2(0x176)+_0x126a3a+'\x20does\x20not\x20have\x20a\x20valid\x20eventProperty.';let _0x462cd9=_0x5d978f['filter'](({eventProperty:_0x2b6434})=>!_0x12c760[_0x5eb3b2(0x13f)][_0x5eb3b2(0x152)](_0x2b6434))['map'](({eventProperty:_0x48943a})=>_0x48943a);return _0x462cd9[_0x5eb3b2(0x16d)]>0x0?_0x5eb3b2(0x176)+_0x126a3a+_0x5eb3b2(0x195)+_0x462cd9[_0x5eb3b2(0x181)](',\x20')+'.':_0x5d978f[_0x5eb3b2(0x183)](({eventProperty:_0x10a130,value:_0x3ddb03})=>({'eventPropertyId':_0x12c760[_0x5eb3b2(0x13f)][_0x10a130]['id'],'value':_0x3ddb03}));},F=new WeakSet(),Rt=function(_0x395f1a,_0x3754d8){const _0x12e5ee=_0x4dcc7d;let _0xc6a82e=[{'customerId':localStorage[_0x12e5ee(0x13e)](_0x12e5ee(0x164))||'0','events':[{'eventId':_0x395f1a}]}];return _0x3754d8&&(_0xc6a82e[0x0][_0x12e5ee(0x174)][0x0][_0x12e5ee(0x172)]=_0x3754d8),_0xc6a82e;},ct=new WeakSet(),se=function(_0xe9023c){return a(this,null,function*(){const _0x350062=_0x5bf7;try{return yield y[_0x350062(0x12a)](''+Q+Bt,_0xe9023c);}catch(_0x2612a6){throw new Error(_0x350062(0x138));}});},lt=new WeakSet(),ae=function(_0x1f3a6d){const _0x194864=_0x4dcc7d;return(_0x1f3a6d==null?void 0x0:_0x1f3a6d[_0x194864(0x19e)])===_0x194864(0x13b);},ut=new WeakSet(),ce=function(_0x8839bd){const _0x50ac44=_0x4dcc7d;localStorage[_0x50ac44(0x12d)](_0x50ac44(0x134),JSON[_0x50ac44(0x1a1)](gt(pt({},_0x8839bd),{'initialTime':''+new Date()[_0x50ac44(0x185)]()})));},M=new WeakSet(),Pt=function(){const _0x434c3b=_0x4dcc7d;localStorage[_0x434c3b(0x157)](_0x434c3b(0x134)),localStorage[_0x434c3b(0x157)](_0x434c3b(0x174)),localStorage['removeItem']('attributes'),localStorage[_0x434c3b(0x157)](_0x434c3b(0x18f));},k=new WeakSet(),At=function(){return a(this,null,function*(){const _0xa2c954=_0x5bf7;localStorage[_0xa2c954(0x13e)](_0xa2c954(0x12c))||(yield n(this,$,St)['call'](this));});},J=new WeakSet(),Ut=function(_0x54beac){return a(this,null,function*(){const _0xbe3fd6=_0x5bf7;try{return yield y[_0xbe3fd6(0x12a)](''+ht+Vt,_0x54beac);}catch(_0x2c2ef0){throw new Error(_0xbe3fd6(0x17e));}});},i(T,S,void 0x0);var It=T,le=It[_0x4dcc7d(0x145)](),Te=le;
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 _0x472ce2=_0x2dd1;(function(_0x17cd64,_0x2a40f4){const _0x587edb=_0x2dd1,_0x21add1=_0x17cd64();while(!![]){try{const _0xbb7c7a=parseInt(_0x587edb(0x88))/0x1+-parseInt(_0x587edb(0xae))/0x2+-parseInt(_0x587edb(0xc5))/0x3+-parseInt(_0x587edb(0x10e))/0x4*(-parseInt(_0x587edb(0x10a))/0x5)+-parseInt(_0x587edb(0x109))/0x6+parseInt(_0x587edb(0x9c))/0x7+parseInt(_0x587edb(0xfc))/0x8*(parseInt(_0x587edb(0x108))/0x9);if(_0xbb7c7a===_0x2a40f4)break;else _0x21add1['push'](_0x21add1['shift']());}catch(_0x148352){_0x21add1['push'](_0x21add1['shift']());}}}(_0x1b63,0x97403));var re=Object[_0x472ce2(0xd2)],oe=Object['defineProperties'],ie=Object[_0x472ce2(0x8b)],Ut=Object[_0x472ce2(0xfe)],ne=Object[_0x472ce2(0xc2)]['hasOwnProperty'],se=Object['prototype'][_0x472ce2(0x100)],Ot=(_0x1d87d2,_0x47ec65,_0x208b70)=>_0x47ec65 in _0x1d87d2?re(_0x1d87d2,_0x47ec65,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x208b70}):_0x1d87d2[_0x47ec65]=_0x208b70,dt=(_0x1dd562,_0x3bbcff)=>{const _0x163c19=_0x472ce2;for(var _0x584833 in _0x3bbcff||(_0x3bbcff={}))ne[_0x163c19(0x10f)](_0x3bbcff,_0x584833)&&Ot(_0x1dd562,_0x584833,_0x3bbcff[_0x584833]);if(Ut){for(var _0x584833 of Ut(_0x3bbcff))se[_0x163c19(0x10f)](_0x3bbcff,_0x584833)&&Ot(_0x1dd562,_0x584833,_0x3bbcff[_0x584833]);}return _0x1dd562;},pt=(_0x1cf860,_0x2db831)=>oe(_0x1cf860,ie(_0x2db831)),gt=(_0x2136ff,_0x7784c5,_0x42f4b9)=>{const _0x5807c6=_0x472ce2;if(!_0x7784c5[_0x5807c6(0xa9)](_0x2136ff))throw TypeError(_0x5807c6(0xa6)+_0x42f4b9);},u=(_0x1076b9,_0x3b9f64,_0x4964c3)=>(gt(_0x1076b9,_0x3b9f64,_0x472ce2(0xc9)),_0x4964c3?_0x4964c3[_0x472ce2(0x10f)](_0x1076b9):_0x3b9f64[_0x472ce2(0xd0)](_0x1076b9)),i=(_0x5ef3e,_0x5653e1,_0x35da2d)=>{const _0xb8dbd8=_0x472ce2;if(_0x5653e1[_0xb8dbd8(0xa9)](_0x5ef3e))throw TypeError(_0xb8dbd8(0xb9));_0x5653e1 instanceof WeakSet?_0x5653e1['add'](_0x5ef3e):_0x5653e1['set'](_0x5ef3e,_0x35da2d);},E=(_0x11b219,_0xa150f8,_0x412963,_0x3b754a)=>(gt(_0x11b219,_0xa150f8,_0x472ce2(0xf0)),_0x3b754a?_0x3b754a[_0x472ce2(0x10f)](_0x11b219,_0x412963):_0xa150f8[_0x472ce2(0xef)](_0x11b219,_0x412963),_0x412963),Nt=(_0x440185,_0x166119,_0x48cc8b,_0x2245e7)=>({set '_'(_0x34c824){E(_0x440185,_0x166119,_0x34c824,_0x48cc8b);},get '_'(){return u(_0x440185,_0x166119,_0x2245e7);}}),n=(_0x489732,_0x4990f3,_0x36610c)=>(gt(_0x489732,_0x4990f3,_0x472ce2(0x113)),_0x36610c),a=(_0x3c1794,_0x151bc6,_0x2f4127)=>new Promise((_0x107ac9,_0x63c5f8)=>{const _0x399190=_0x472ce2;var _0x5800eb=_0x1b8c52=>{const _0x435976=_0x2dd1;try{_0x591617(_0x2f4127[_0x435976(0xa7)](_0x1b8c52));}catch(_0x1d4e4e){_0x63c5f8(_0x1d4e4e);}},_0x10a45c=_0x243543=>{const _0x45fed5=_0x2dd1;try{_0x591617(_0x2f4127[_0x45fed5(0x8d)](_0x243543));}catch(_0x4c1cee){_0x63c5f8(_0x4c1cee);}},_0x591617=_0x369c2c=>_0x369c2c[_0x399190(0xe0)]?_0x107ac9(_0x369c2c['value']):Promise[_0x399190(0xf1)](_0x369c2c[_0x399190(0xf8)])[_0x399190(0xd7)](_0x5800eb,_0x10a45c);_0x591617((_0x2f4127=_0x2f4127[_0x399190(0xf4)](_0x3c1794,_0x151bc6))['next']());});import{v4 as _0xaee0aa}from'uuid';var Lt=_0x472ce2(0xea),Et=_0x472ce2(0xc6),xt=_0x472ce2(0xc0),J=_0x472ce2(0x9f),Dt=_0x472ce2(0x101),_t='/record-bulk-event',Ct=_0x472ce2(0x90),$t='/set-identity';import _0x53d2d2 from'axios';import{AxiosQueueManager as _0x58cf58}from'axios-queue-js';import _0x55142e from'axios-retry';import{AxiosError as _0x45f5ff}from'axios';var c=class extends Error{constructor(_0x4cd9fa){const _0x1e7d2e=_0x472ce2;super(_0x4cd9fa),this[_0x1e7d2e(0xeb)]=_0x1e7d2e(0xc4);}};c[_0x472ce2(0xa0)]=!0x1,c['offline']=!navigator[_0x472ce2(0x112)],c[_0x472ce2(0xdd)]=!0x1,c['isInitialized']=!0x1;var ce=(_0x384ec2,_0x3c825b)=>{const _0x4edcd4=_0x472ce2;_0x3c825b instanceof c?console[_0x4edcd4(0xb5)](_0x4edcd4(0xe5)+_0x384ec2,_0x4edcd4(0xb3)+_0x3c825b[_0x4edcd4(0xb1)]):_0x3c825b instanceof _0x45f5ff?(console['error'](_0x4edcd4(0xe5)+_0x384ec2,_0x4edcd4(0x93)+_0x3c825b[_0x4edcd4(0xb1)]),_0x3c825b[_0x4edcd4(0xc7)]?(console[_0x4edcd4(0xb5)](_0x4edcd4(0xe5)+_0x384ec2,_0x4edcd4(0xad)+_0x3c825b[_0x4edcd4(0xc7)][_0x4edcd4(0xbd)]),console['error']('OriginateFrom:\x20'+_0x384ec2,_0x4edcd4(0xaa),_0x3c825b[_0x4edcd4(0xc7)][_0x4edcd4(0x106)])):_0x3c825b[_0x4edcd4(0x9a)]?console[_0x4edcd4(0xb5)](_0x4edcd4(0xe5)+_0x384ec2+_0x4edcd4(0xe9)):console['error']('OriginateFrom:\x20'+_0x384ec2,_0x4edcd4(0xa4),_0x3c825b[_0x4edcd4(0xb1)])):_0x3c825b instanceof Error?console['error'](_0x4edcd4(0xe5)+_0x384ec2,_0x4edcd4(0xee),_0x3c825b['message']):console[_0x4edcd4(0xb5)](_0x4edcd4(0xe5)+_0x384ec2,_0x4edcd4(0xee),String(_0x3c825b));},f=(_0x2b58d0,_0x22c3a3,_0x360c42)=>a(void 0x0,null,function*(){const _0x2e7604=_0x472ce2;try{if(c[_0x2e7604(0xa0)])throw new c(_0x2e7604(0xf6));if(_0x2b58d0!==_0x2e7604(0x103)&&c[_0x2e7604(0xb4)])throw new c(_0x2e7604(0xd8));if(_0x2b58d0!==_0x2e7604(0xc8)&&!c['isInitialized'])throw new c(_0x2e7604(0xc1));return yield _0x22c3a3();}catch(_0x42bed3){return _0x360c42?_0x360c42(_0x42bed3):c['showErrorLog']&&ce(_0x2b58d0,_0x42bed3),null;}}),I,b,R,P,Q,A,mt,j,Vt,d=class d{constructor(){const _0x3d60db=_0x472ce2;i(this,Q,0x0);let _0x56e086=_0x53d2d2[_0x3d60db(0xdc)]({'baseURL':Lt,'headers':{'Content-Type':_0x3d60db(0xff)}});E(d,b,_0x56e086),E(d,R,new _0x58cf58({'client':_0x56e086,'queueSize':0xa})),_0x55142e(_0x56e086,{'onRetry':_0x139cbe=>{const _0x4da273=_0x3d60db;_0x139cbe>=u(d,P)?(c[_0x4da273(0xdd)]&&console['log'](_0x4da273(0xfd)),c[_0x4da273(0xa0)]=!0x0):Nt(this,Q)['_']++;},'retries':u(d,P),'retryDelay':_0x531328=>_0x531328*0x1388});}static['updateAPIKey'](_0x1ba692){const _0xcb009f=_0x472ce2;this[_0xcb009f(0x10b)]=_0x1ba692,n(this,j,Vt)[_0xcb009f(0x10f)](this)[_0xcb009f(0xe1)][_0xcb009f(0xd3)][_0xcb009f(0x111)][_0xcb009f(0x9b)]=_0x1ba692;}static['get'](_0x43bde2){const _0x4f42e6=_0x472ce2;return n(this,A,mt)[_0x4f42e6(0x10f)](this)[_0x4f42e6(0xd0)](_0x43bde2);}static[_0x472ce2(0x9e)](_0x4aa89b,_0xa80ce4){const _0x5d1f99=_0x472ce2;return n(this,A,mt)[_0x5d1f99(0x10f)](this)[_0x5d1f99(0x9e)](_0x4aa89b,_0xa80ce4||{});}};I=new WeakMap(),b=new WeakMap(),R=new WeakMap(),P=new WeakMap(),Q=new WeakMap(),A=new WeakSet(),mt=function(){return u(d,I)||E(d,I,new d()),u(d,R);},j=new WeakSet(),Vt=function(){return u(d,I)||E(d,I,new d()),u(d,b);},i(d,A),i(d,j),i(d,I,void 0x0),i(d,b,void 0x0),i(d,R,void 0x0),i(d,P,0x3);var ht=d,y=ht,S,v,U,O,N,L,x,vt,D,It,z,Ft,K,Mt,Y,kt,H,_,W,G,Jt,X,Qt,Z,jt,C,Tt,tt,qt,w,q,et,zt,$,ft,rt,Kt,ot,Yt,V,St,it,Ht,nt,Wt,st,Gt,B,wt,at,Xt,ct,Zt,lt,te,F,bt,M,Rt,k,Pt,T=class T{constructor(){const _0x19f2f9=_0x472ce2;i(this,x),i(this,D),i(this,z),i(this,K),i(this,Y),i(this,G),i(this,X),i(this,Z),i(this,C),i(this,tt),i(this,w),i(this,et),i(this,$),i(this,rt),i(this,ot),i(this,V),i(this,it),i(this,nt),i(this,st),i(this,B),i(this,at),i(this,ct),i(this,lt),i(this,F),i(this,M),i(this,k),i(this,v,''),i(this,U,void 0x0),i(this,O,void 0x0),i(this,N,void 0x0),i(this,L,null),i(this,H,()=>{let _0x4202b9=()=>{const _0x553a3a=_0x2dd1;let _0x40300b=JSON[_0x553a3a(0x92)](localStorage[_0x553a3a(0x94)]('action'));_0x40300b&&localStorage[_0x553a3a(0x10c)](_0x553a3a(0xf9),JSON['stringify'](pt(dt({},_0x40300b),{'initialTime':''+new Date()['getTime'](),'page':window[_0x553a3a(0x104)][_0x553a3a(0xac)]+window['location'][_0x553a3a(0xd4)]})));};_0x4202b9(),window['addEventListener']('beforeunload',_0x4202b9);}),i(this,_,()=>{const _0x182921=_0x2dd1;localStorage[_0x182921(0x102)](_0x182921(0xf9));}),i(this,W,()=>{const _0x18c285=_0x2dd1;let _0x529fe8=JSON['parse'](localStorage[_0x18c285(0x94)]('action')||'{}');(_0x529fe8==null?void 0x0:_0x529fe8[_0x18c285(0xeb)])===_0x18c285(0xda)&&n(this,$,ft)[_0x18c285(0x10f)](this);}),E(this,N,navigator[_0x19f2f9(0x89)]);}static['getInstance'](){return u(T,S)||E(T,S,new T()),u(T,S);}[_0x472ce2(0xc8)](_0x511ab2){const _0x1233eb=_0x472ce2;f(_0x1233eb(0xc8),()=>a(this,null,function*(){const _0x370076=_0x1233eb;n(this,z,Ft)[_0x370076(0x10f)](this,_0x511ab2),yield n(this,x,vt)['call'](this),setInterval(()=>a(this,null,function*(){const _0x4cc1e1=_0x370076;yield n(this,x,vt)[_0x4cc1e1(0x10f)](this);}),0x493e0);let _0xec730b=localStorage[_0x370076(0x94)]('ttl'),_0x49fb3b=!0x1;_0xec730b&&(_0x49fb3b=new Date()[_0x370076(0x10d)]()-parseInt(_0xec730b,0xa)>0x1b7740,_0x49fb3b&&n(this,F,bt)[_0x370076(0x10f)](this)),(!_0xec730b||_0x49fb3b||n(this,K,Mt)[_0x370076(0x10f)](this))&&(n(this,G,Jt)[_0x370076(0x10f)](this),yield n(this,w,q)[_0x370076(0x10f)](this),yield n(this,Y,kt)['call'](this)),window['addEventListener'](_0x370076(0xf5),()=>a(this,null,function*(){const _0x504356=_0x370076;c['offline']=!0x1;let _0x13c3f7=JSON[_0x504356(0x92)](localStorage[_0x504356(0x94)](_0x504356(0xcb))||'[]');Array[_0x504356(0x98)](_0x13c3f7)&&(yield y['post'](''+J+_t,[{'customerId':u(this,v),'events':_0x13c3f7}]),localStorage[_0x504356(0x102)]('offlineEvents'));})),window['addEventListener']('offline',()=>{const _0x55fbd3=_0x370076;c[_0x55fbd3(0xb4)]=!0x0;}),window[_0x370076(0xb2)](_0x370076(0x105),()=>{const _0x190cf6=_0x370076;u(this,W)[_0x190cf6(0x10f)](this);}),c[_0x370076(0xb6)]=!0x0;let _0x17f138=history[_0x370076(0xbc)];history[_0x370076(0xbc)]=(..._0x2319b5)=>{const _0x28a2ed=_0x370076;_0x17f138[_0x28a2ed(0xf4)](history,_0x2319b5),n(this,D,It)['call'](this);},n(this,D,It)['call'](this);}));}[_0x472ce2(0xdd)](_0x4b7fc2=!0x1){const _0x15247a=_0x472ce2;c[_0x15247a(0xdd)]=_0x4b7fc2;}[_0x472ce2(0xa2)](_0x2043e6){return a(this,null,function*(){const _0x56c007=_0x2dd1;yield f(_0x56c007(0xa2),()=>a(this,null,function*(){const _0x541b0b=_0x56c007;yield n(this,M,Rt)[_0x541b0b(0x10f)](this);let _0x18555a=JSON[_0x541b0b(0x92)](localStorage[_0x541b0b(0x94)](_0x541b0b(0xba))||'{}');if(_0x18555a&&Object['keys'](_0x18555a)['length']>0x0){let _0xf48906=[];_0x2043e6&&Object[_0x541b0b(0xbb)](_0x2043e6)[_0x541b0b(0xaf)]>0x0&&Object[_0x541b0b(0xbb)](_0x2043e6)[_0x541b0b(0xde)](_0x84fa78=>{_0x18555a['hasOwnProperty'](_0x84fa78)&&_0xf48906['push']({'attributeId':_0x18555a[_0x84fa78]['id'],'attributeProperties':[],'value':_0x2043e6[_0x84fa78]});});let _0x199a53=[{'attributes':_0xf48906,'customerId':u(this,v)}];yield n(this,k,Pt)[_0x541b0b(0x10f)](this,_0x199a53);}}));});}[_0x472ce2(0x8e)](_0x47b8b3){return a(this,null,function*(){const _0x20eb1e=_0x2dd1;yield f(_0x20eb1e(0x8e),()=>a(this,null,function*(){const _0x431350=_0x20eb1e;yield n(this,w,q)[_0x431350(0x10f)](this,_0x47b8b3),yield this[_0x431350(0xfa)](_0x431350(0xe7),[{'eventProperty':'Customer\x20Id','value':localStorage[_0x431350(0x94)](_0x431350(0xe8))||0x0}]);}));});}[_0x472ce2(0xcd)](_0x30ce74,_0x17baea,_0x1ff0dd){return a(this,null,function*(){const _0x14cf8e=_0x2dd1;yield n(this,M,Rt)[_0x14cf8e(0x10f)](this);let _0x3f4ade=JSON[_0x14cf8e(0x92)](localStorage[_0x14cf8e(0x94)](_0x14cf8e(0xba))||'{}');if(_0x3f4ade&&Object[_0x14cf8e(0xbb)](_0x3f4ade)[_0x14cf8e(0xaf)]>0x0&&_0x3f4ade[_0x14cf8e(0xa8)](_0x30ce74)){let _0x2444ea=_0x3f4ade[_0x30ce74],_0x18b9c8=_0x2444ea[_0x14cf8e(0xa5)],_0x3215c6=[];_0x1ff0dd&&Object[_0x14cf8e(0xbb)](_0x1ff0dd)[_0x14cf8e(0xaf)]>0x0&&Object['keys'](_0x1ff0dd)[_0x14cf8e(0xde)](_0x413acc=>{const _0x1bd906=_0x14cf8e;_0x18b9c8[_0x1bd906(0xa8)](_0x413acc)&&_0x3215c6['push']({'attributePropertyId':_0x18b9c8[_0x413acc]['id'],'value':_0x1ff0dd[_0x413acc]});});let _0x587d16=[{'attributes':[{'attributeId':_0x2444ea['id'],'attributeProperties':_0x3215c6,'value':_0x17baea}],'customerId':u(this,v)}];yield n(this,k,Pt)[_0x14cf8e(0x10f)](this,_0x587d16);}});}[_0x472ce2(0x110)](){return a(this,null,function*(){const _0x3fef94=_0x2dd1;yield f(_0x3fef94(0x110),()=>a(this,null,function*(){const _0xa6ca53=_0x3fef94;n(this,F,bt)['call'](this),this[_0xa6ca53(0xfa)](_0xa6ca53(0xe4),[{'eventProperty':_0xa6ca53(0xab),'value':localStorage[_0xa6ca53(0x94)](_0xa6ca53(0xe8))||0x0}]);}));});}[_0x472ce2(0xfa)](_0x71954c,_0x16460d){return a(this,null,function*(){const _0x7f1203=_0x2dd1;yield f(_0x7f1203(0x103),()=>a(this,null,function*(){const _0x14b705=_0x7f1203;var _0x752e1c,_0x296f6f;let _0x29f147=n(this,nt,Wt)[_0x14b705(0x10f)](this),_0x5c2862=n(this,st,Gt)['call'](this,_0x29f147,_0x71954c,_0x16460d);if(typeof _0x5c2862=='string'){c['showErrorLog']&&console['error'](_0x5c2862);return;}let {id:_0x4510af}=_0x29f147[_0x71954c];if(c['offline']){let _0x2dc161=JSON[_0x14b705(0x92)](localStorage[_0x14b705(0x94)]('offlineEvents')||'[]');if(_0x2dc161[_0x14b705(0xaf)]<=0x32){let _0x230dcc={'eventId':_0x4510af};_0x16460d&&(_0x230dcc['eventProperties']=_0x5c2862),_0x2dc161[_0x14b705(0xcf)](_0x230dcc),localStorage['setItem'](_0x14b705(0xcb),JSON[_0x14b705(0x96)](_0x2dc161));}return;}let _0x42f4c2=_0x16460d?n(this,B,wt)['call'](this,_0x4510af,_0x5c2862):n(this,B,wt)[_0x14b705(0x10f)](this,_0x4510af),_0x218ce5=yield n(this,at,Xt)[_0x14b705(0x10f)](this,_0x42f4c2);n(this,ct,Zt)[_0x14b705(0x10f)](this,(_0x752e1c=_0x218ce5==null?void 0x0:_0x218ce5[_0x14b705(0x106)])==null?void 0x0:_0x752e1c[_0x14b705(0x106)])&&(n(this,lt,te)[_0x14b705(0x10f)](this,(_0x296f6f=_0x218ce5==null?void 0x0:_0x218ce5[_0x14b705(0x106)])==null?void 0x0:_0x296f6f['data']),u(this,H)[_0x14b705(0x10f)](this),n(this,$,ft)[_0x14b705(0x10f)](this));}));});}};S=new WeakMap(),v=new WeakMap(),U=new WeakMap(),O=new WeakMap(),N=new WeakMap(),L=new WeakMap(),x=new WeakSet(),vt=function(){return a(this,null,function*(){const _0x4cbfa8=_0x2dd1;try{yield y[_0x4cbfa8(0xd0)](_0x4cbfa8(0xd1));}catch(_0x3d8358){c['disableSDK']=!0x0,c[_0x4cbfa8(0xdd)]&&console[_0x4cbfa8(0xb5)](_0x3d8358[_0x4cbfa8(0xb1)]);}});},D=new WeakSet(),It=function(){return a(this,null,function*(){const _0x22e9ee=_0x2dd1;let _0x5c23c4=window[_0x22e9ee(0x104)][_0x22e9ee(0xac)]+window[_0x22e9ee(0x104)][_0x22e9ee(0xd4)];yield this['recordEvent'](_0x22e9ee(0xd5),[{'eventProperty':_0x22e9ee(0xf3),'value':_0x5c23c4}]),_0x5c23c4!==u(this,L)&&(E(this,L,_0x5c23c4),new URLSearchParams(new URL(window[_0x22e9ee(0x104)][_0x22e9ee(0xdf)])[_0x22e9ee(0xf2)])['forEach']((_0x32b270,_0xa0b4e0)=>a(this,null,function*(){const _0x163de3=_0x22e9ee;yield this[_0x163de3(0xfa)](_0x163de3(0xd5),[{'eventProperty':_0x163de3(0xe3),'value':_0xa0b4e0+':'+_0x32b270}]);})));});},z=new WeakSet(),Ft=function(_0x55c68c){const _0x35acb8=_0x472ce2;y[_0x35acb8(0xe6)](_0x55c68c);},K=new WeakSet(),Mt=function(){const _0x4b619b=_0x472ce2;return!localStorage[_0x4b619b(0x94)](_0x4b619b(0xdb))||!localStorage[_0x4b619b(0x94)](_0x4b619b(0xe8))||!localStorage[_0x4b619b(0x94)](_0x4b619b(0xba))||!localStorage[_0x4b619b(0x94)](_0x4b619b(0xd6));},Y=new WeakSet(),kt=function(){return a(this,null,function*(){const _0x2ece98=_0x2dd1;yield n(this,X,Qt)[_0x2ece98(0x10f)](this),yield n(this,C,Tt)[_0x2ece98(0x10f)](this),yield n(this,w,q)[_0x2ece98(0x10f)](this);});},H=new WeakMap(),_=new WeakMap(),W=new WeakMap(),G=new WeakSet(),Jt=function(){const _0x326dd1=_0x472ce2;let _0x451866=localStorage[_0x326dd1(0x94)](_0x326dd1(0xd6));return _0x451866||(_0x451866=_0xaee0aa(),localStorage[_0x326dd1(0x10c)](_0x326dd1(0xd6),_0x451866)),_0x451866;},X=new WeakSet(),Qt=function(){return a(this,null,function*(){const _0x51a582=_0x2dd1;if(!localStorage['getItem'](_0x51a582(0xdb))){let _0x5d7ac3=(yield n(this,Z,jt)['call'](this))[_0x51a582(0x106)];_0x5d7ac3&&(E(this,U,_0x5d7ac3),localStorage[_0x51a582(0x10c)](_0x51a582(0xdb),JSON[_0x51a582(0x96)](u(this,U))));}});},Z=new WeakSet(),jt=function(){return a(this,null,function*(){const _0x3db209=_0x2dd1;try{return(yield y[_0x3db209(0xd0)](''+J))['data'];}catch(_0x34ed66){throw new Error(_0x3db209(0xa3));}});},C=new WeakSet(),Tt=function(){return a(this,null,function*(){const _0x3fb0a7=_0x2dd1;if(!localStorage[_0x3fb0a7(0x94)](_0x3fb0a7(0xba))){let _0x1283ba=(yield n(this,tt,qt)[_0x3fb0a7(0x10f)](this))[_0x3fb0a7(0x106)];_0x1283ba&&(E(this,O,_0x1283ba),localStorage['setItem'](_0x3fb0a7(0xba),JSON[_0x3fb0a7(0x96)](u(this,O))));}});},tt=new WeakSet(),qt=function(){return a(this,null,function*(){const _0x392d11=_0x2dd1;try{return(yield y[_0x392d11(0xd0)](''+Et))[_0x392d11(0x106)];}catch(_0x4eab3c){throw new Error(_0x392d11(0xed));}});},w=new WeakSet(),q=function(_0x21e938){return a(this,null,function*(){const _0xd34597=_0x2dd1;if(!_0x21e938){let _0x54c991=localStorage['getItem'](_0xd34597(0xe8));if(_0x54c991){E(this,v,_0x54c991);return;}}let _0x409dd0={'deviceId':localStorage[_0xd34597(0x94)](_0xd34597(0xd6))||_0xaee0aa(),'os':u(this,N)};_0x21e938&&(_0x409dd0[_0xd34597(0x9d)]=_0x21e938);try{let _0x3e1b95=(yield n(this,et,zt)[_0xd34597(0x10f)](this,_0x409dd0))[_0xd34597(0x106)];_0x3e1b95!==void 0x0&&(E(this,v,_0x3e1b95),localStorage['setItem'](_0xd34597(0xe8),u(this,v)));}catch(_0x10e254){throw new Error(_0xd34597(0xc3));}});},et=new WeakSet(),zt=function(_0x363cb5){return a(this,null,function*(){const _0x368ece=_0x2dd1;try{return(yield y[_0x368ece(0x9e)](''+Ct+$t,_0x363cb5))[_0x368ece(0x106)];}catch(_0x546c07){throw new Error(_0x368ece(0x91));}});},$=new WeakSet(),ft=function(){const _0x5a47f4=_0x472ce2;let _0xe3941a=n(this,rt,Kt)[_0x5a47f4(0x10f)](this);if(_0xe3941a){let _0x264873=_0xe3941a['design'],_0x191643=_0xe3941a[_0x5a47f4(0xe2)];_0xe3941a['delay']?n(this,ot,Yt)[_0x5a47f4(0x10f)](this,_0xe3941a,_0x264873,_0x191643):n(this,V,St)[_0x5a47f4(0x10f)](this,_0x264873,_0x191643);}},rt=new WeakSet(),Kt=function(){const _0x2cd21f=_0x472ce2;let _0x530f26=localStorage[_0x2cd21f(0x94)](_0x2cd21f(0xf9));return _0x530f26?JSON['parse'](_0x530f26):null;},ot=new WeakSet(),Yt=function(_0x142c99,_0x18ce96,_0x3bb185){const _0xc51f4f=_0x472ce2;let _0x50a1d3=parseInt(_0x142c99[_0xc51f4f(0x8c)],0xa)+_0x142c99[_0xc51f4f(0xa1)]-new Date()['getTime']();_0x50a1d3>0x0&&_0x142c99[_0xc51f4f(0x115)]===window['location'][_0xc51f4f(0xac)]+window[_0xc51f4f(0x104)][_0xc51f4f(0xd4)]&&setTimeout(()=>{const _0x12fd14=_0xc51f4f;u(this,_)[_0x12fd14(0x10f)](this),n(this,V,St)[_0x12fd14(0x10f)](this,_0x18ce96,_0x3bb185);},_0x50a1d3);},V=new WeakSet(),St=function(_0x56fd55,_0x18e5dd){const _0x4ca4ca=_0x472ce2;let _0x243376=n(this,it,Ht)[_0x4ca4ca(0x10f)](this,_0x4ca4ca(0xd9),_0x56fd55,_0x18e5dd);document[_0x4ca4ca(0x114)]['appendChild'](_0x243376),u(this,_)[_0x4ca4ca(0x10f)](this);},it=new WeakSet(),Ht=function(_0x945cbf,_0x37409e,_0xc0e55d){const _0x50f505=_0x472ce2;var _0x1da17b;let _0x5a7dfb=document['createElement'](_0x945cbf);return _0x5a7dfb['id']=_0x50f505(0x87)+_0xc0e55d,_0x5a7dfb[_0x50f505(0xfb)]=_0x37409e,(_0x1da17b=_0x5a7dfb[_0x50f505(0xcc)](_0x50f505(0xbf)))==null||_0x1da17b['addEventListener'](_0x50f505(0xb8),()=>a(this,null,function*(){const _0x3fa3ec=_0x50f505;_0x5a7dfb[_0x3fa3ec(0x97)](),yield this[_0x3fa3ec(0xfa)]('Popup\x20Button\x20Clicked',[{'eventProperty':_0x3fa3ec(0xec),'value':_0xc0e55d}]);})),_0x5a7dfb['querySelectorAll']('[id^=\x22u_content_button_\x22]')[_0x50f505(0xde)](_0x57f84b=>{const _0x61078c=_0x50f505;_0x57f84b[_0x61078c(0xb2)](_0x61078c(0xb8),()=>a(this,null,function*(){const _0x259151=_0x61078c;yield this[_0x259151(0xfa)](_0x259151(0x95),[{'eventProperty':_0x259151(0xec),'value':_0xc0e55d}]);}));}),_0x5a7dfb[_0x50f505(0xce)]('.u-popup-container\x20img')['forEach'](_0x12b568=>{const _0x169c99=_0x50f505;_0x12b568[_0x169c99(0xb2)](_0x169c99(0xb8),()=>a(this,null,function*(){const _0x1f24c6=_0x169c99;yield this['recordEvent'](_0x1f24c6(0xf7),[{'eventProperty':_0x1f24c6(0xec),'value':_0xc0e55d}]);}));}),_0x5a7dfb;},nt=new WeakSet(),Wt=function(){const _0x2d8c7d=_0x472ce2;let _0x2cce2e=localStorage[_0x2d8c7d(0x94)](_0x2d8c7d(0xdb));return _0x2cce2e?JSON[_0x2d8c7d(0x92)](_0x2cce2e):{};},st=new WeakSet(),Gt=function(_0x4fc40c,_0x254758,_0x385690){const _0x421924=_0x472ce2;if(!_0x4fc40c['hasOwnProperty'](_0x254758))return _0x421924(0x8a)+_0x254758+_0x421924(0x107);if(!_0x385690)return[];let _0x43a4a0=_0x4fc40c[_0x254758];if(!(_0x43a4a0!=null&&_0x43a4a0[_0x421924(0xb7)]))return _0x421924(0x8a)+_0x254758+_0x421924(0x8f);let _0x399dfb=_0x385690[_0x421924(0xb0)](({eventProperty:_0x31777d})=>!_0x43a4a0[_0x421924(0xb7)]['hasOwnProperty'](_0x31777d))['map'](({eventProperty:_0x3d426b})=>_0x3d426b);return _0x399dfb[_0x421924(0xaf)]>0x0?_0x421924(0x8a)+_0x254758+_0x421924(0x99)+_0x399dfb['join'](',\x20')+'.':_0x385690[_0x421924(0xbe)](({eventProperty:_0x5182ba,value:_0x561760})=>({'eventPropertyId':_0x43a4a0[_0x421924(0xb7)][_0x5182ba]['id'],'value':_0x561760}));},B=new WeakSet(),wt=function(_0x28bfa3,_0x3a4df5){const _0x38689e=_0x472ce2;let _0x25578a=[{'customerId':localStorage[_0x38689e(0x94)](_0x38689e(0xe8))||'0','events':[{'eventId':_0x28bfa3}]}];return _0x3a4df5&&(_0x25578a[0x0][_0x38689e(0xdb)][0x0]['eventProperties']=_0x3a4df5),_0x25578a;},at=new WeakSet(),Xt=function(_0x291740){return a(this,null,function*(){const _0x339f6e=_0x2dd1;try{return yield y[_0x339f6e(0x9e)](''+J+Dt,_0x291740);}catch(_0x3bc931){throw new Error('Error\x20posting\x20event\x20record');}});},ct=new WeakSet(),Zt=function(_0x58d1f9){const _0x5241e0=_0x472ce2;return(_0x58d1f9==null?void 0x0:_0x58d1f9[_0x5241e0(0xeb)])===_0x5241e0(0xda);},lt=new WeakSet(),te=function(_0x2cd0a2){const _0x4ecbcb=_0x472ce2;localStorage[_0x4ecbcb(0x10c)](_0x4ecbcb(0xf9),JSON[_0x4ecbcb(0x96)](pt(dt({},_0x2cd0a2),{'initialTime':''+new Date()[_0x4ecbcb(0x10d)]()})));},F=new WeakSet(),bt=function(){const _0x3207be=_0x472ce2;localStorage[_0x3207be(0x102)](_0x3207be(0xf9)),localStorage[_0x3207be(0x102)]('events'),localStorage[_0x3207be(0x102)](_0x3207be(0xba)),localStorage['removeItem']('offlineEvents');},M=new WeakSet(),Rt=function(){return a(this,null,function*(){const _0xb8c4fc=_0x2dd1;localStorage[_0xb8c4fc(0x94)](_0xb8c4fc(0xba))||(yield n(this,C,Tt)[_0xb8c4fc(0x10f)](this));});},k=new WeakSet(),Pt=function(_0x17b01d){return a(this,null,function*(){const _0x2e1985=_0x2dd1;try{return yield y[_0x2e1985(0x9e)](''+Et+xt,_0x17b01d);}catch(_0x2f54b2){throw new Error('Error\x20posting\x20attribute\x20record');}});},i(T,S,void 0x0);var yt=T,ee=yt[_0x472ce2(0xca)](),Fe=ee;export{Fe as default};function _0x2dd1(_0xacbe97,_0x142c65){const _0x1b63e4=_0x1b63();return _0x2dd1=function(_0x2dd100,_0x5eeed4){_0x2dd100=_0x2dd100-0x87;let _0x3efbdd=_0x1b63e4[_0x2dd100];return _0x3efbdd;},_0x2dd1(_0xacbe97,_0x142c65);}function _0x1b63(){const _0x3152c1=['Error\x20fetching\x20attribute\x20data','Unexpected\x20error:','set','write\x20to\x20private\x20field','resolve','search','URL','apply','online','Mergn\x20SDK\x20is\x20disabled!','Popup\x20Image\x20Clicked','value','action','recordEvent','innerHTML','1171384CoATrE','Max\x20retries\x20reached.\x20Disabling\x20SDK.','getOwnPropertySymbols','application/json','propertyIsEnumerable','/record-event','removeItem','add','location','load','data','\x20is\x20not\x20valid.','135qrLKho','4687956LNdfpj','214315CaaomA','apiKey','setItem','getTime','12XMKCme','call','logout','common','onLine','access\x20private\x20method','body','page','popup_container_','329872iFKgzC','platform','Event\x20','getOwnPropertyDescriptors','initialTime','throw','login','\x20does\x20not\x20have\x20a\x20valid\x20eventProperty.','/customer','Error\x20posting\x20identity\x20data','parse','AxiosError:\x20','getItem','Popup\x20Button\x20Clicked','stringify','remove','isArray','\x20has\x20invalid\x20eventProperties:\x20','request','Authorization','4716250gMLqtk','identity','post','/event','disableSDK','delay','recordAttribute','Error\x20fetching\x20event\x20data','Error\x20setting\x20up\x20the\x20request:','attributeProperty','Cannot\x20','next','hasOwnProperty','has','Response\x20Data:','Customer\x20Id','hostname','HTTP\x20Status:\x20','1521990YVXjXb','length','filter','message','addEventListener','MergnError:\x20','offline','error','isInitialized','eventProperty','click','Cannot\x20add\x20the\x20same\x20private\x20member\x20more\x20than\x20once','attributes','keys','pushState','status','map','.u-close-button','/record-attribute','Mergn\x20not\x20initialized!','prototype','Error\x20setting\x20identity','MergnError','3500136LNVSoL','/attribute','response','init','read\x20from\x20private\x20field','getInstance','offlineEvents','querySelector','updateAttribute','querySelectorAll','push','get','brand','defineProperty','headers','pathname','Viewed\x20Web\x20Page','uniqueIdentity','then','Mergn\x20is\x20offline!','div','Popup','events','create','showErrorLog','forEach','href','done','defaults','campaignId','UTM\x20Key\x20Value','User\x20Logout','OriginateFrom:\x20','updateAPIKey','User\x20Login','customer','\x0aNo\x20response\x20received.\x20Check\x20network\x20connection\x20or\x20server\x20issues.','https://95sidwa5jk.execute-api.ap-southeast-1.amazonaws.com/Prod/sdk-management/api','name','Campaign\x20Id'];_0x1b63=function(){return _0x3152c1;};return _0x1b63();}
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.1",
3
+ "version": "1.0.3",
4
4
  "description": "",
5
5
  "author": "yaseenmergn123",
6
6
  "main": "./dist/index.js",