mergn-webapp-sdk 1.0.19 → 1.0.21

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
@@ -18,7 +18,7 @@ import mergn from 'mergn-webapp-sdk';
18
18
  #### Using a CDN
19
19
 
20
20
  ```html
21
- <script src="https://cdn.jsdelivr.net/npm/mergn-webapp-sdk@1.0.15/dist/index.global.js"></script>
21
+ <script src="https://cdn.jsdelivr.net/npm/mergn-webapp-sdk@1.0.20/dist/index.global.js"></script>
22
22
  ```
23
23
 
24
24
  ## Initialization
@@ -1 +1 @@
1
- 'use strict';(function(_0x19d2bf,_0x2c6920){const _0x2223f0=_0x36d3,_0xa21436=_0x19d2bf();while(!![]){try{const _0x258792=-parseInt(_0x2223f0(0x241))/0x1*(-parseInt(_0x2223f0(0x19d))/0x2)+parseInt(_0x2223f0(0x1cf))/0x3+-parseInt(_0x2223f0(0x23b))/0x4*(parseInt(_0x2223f0(0x252))/0x5)+parseInt(_0x2223f0(0x23e))/0x6*(-parseInt(_0x2223f0(0x216))/0x7)+parseInt(_0x2223f0(0x221))/0x8+parseInt(_0x2223f0(0x1c4))/0x9+parseInt(_0x2223f0(0x1e9))/0xa*(parseInt(_0x2223f0(0x225))/0xb);if(_0x258792===_0x2c6920)break;else _0xa21436['push'](_0xa21436['shift']());}catch(_0x43e7f4){_0xa21436['push'](_0xa21436['shift']());}}}(_0x1f19,0xc71ae));function _0x36d3(_0xdcca20,_0x27deab){const _0x1f1956=_0x1f19();return _0x36d3=function(_0x36d3a5,_0x16d29d){_0x36d3a5=_0x36d3a5-0x18d;let _0x28e1d1=_0x1f1956[_0x36d3a5];return _0x28e1d1;},_0x36d3(_0xdcca20,_0x27deab);}((()=>{const _0x5cabe1=_0x36d3;var _0x2c80cc=Object[_0x5cabe1(0x1e8)],_0x3baaa1=Object['defineProperties'],_0x1fc3f1=Object[_0x5cabe1(0x20e)],_0x1a4888=Object[_0x5cabe1(0x195)],_0x35f724=Object[_0x5cabe1(0x1b7)][_0x5cabe1(0x22c)],_0x55313c=Object['prototype'][_0x5cabe1(0x1fa)],_0x46a145=(_0x43baef,_0x33adc5,_0x4d8e0e)=>_0x33adc5 in _0x43baef?_0x2c80cc(_0x43baef,_0x33adc5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4d8e0e}):_0x43baef[_0x33adc5]=_0x4d8e0e,_0x556afb=(_0x2a4f3f,_0x170632)=>{const _0x16acd8=_0x5cabe1;for(var _0x2768cd in _0x170632||(_0x170632={}))_0x35f724['call'](_0x170632,_0x2768cd)&&_0x46a145(_0x2a4f3f,_0x2768cd,_0x170632[_0x2768cd]);if(_0x1a4888){for(var _0x2768cd of _0x1a4888(_0x170632))_0x55313c[_0x16acd8(0x227)](_0x170632,_0x2768cd)&&_0x46a145(_0x2a4f3f,_0x2768cd,_0x170632[_0x2768cd]);}return _0x2a4f3f;},_0x48cc28=(_0x3f3986,_0xb633e3)=>_0x3baaa1(_0x3f3986,_0x1fc3f1(_0xb633e3)),_0x337a26=(_0x8a8e9b,_0x558226,_0x454f7c)=>{const _0x29943e=_0x5cabe1;if(!_0x558226[_0x29943e(0x24d)](_0x8a8e9b))throw TypeError(_0x29943e(0x25b)+_0x454f7c);},_0x4cd361=(_0x576112,_0x20469e,_0x2d6973)=>(_0x337a26(_0x576112,_0x20469e,_0x5cabe1(0x1d9)),_0x2d6973?_0x2d6973[_0x5cabe1(0x227)](_0x576112):_0x20469e[_0x5cabe1(0x25c)](_0x576112)),_0x3bf5ec=(_0x5bdcae,_0x10a175,_0x375610)=>{const _0x583109=_0x5cabe1;if(_0x10a175[_0x583109(0x24d)](_0x5bdcae))throw TypeError('Cannot\x20add\x20the\x20same\x20private\x20member\x20more\x20than\x20once');_0x10a175 instanceof WeakSet?_0x10a175[_0x583109(0x1b5)](_0x5bdcae):_0x10a175[_0x583109(0x1d5)](_0x5bdcae,_0x375610);},_0x5e7494=(_0x3e10cf,_0x2e8ba6,_0x25a711,_0x4f3162)=>(_0x337a26(_0x3e10cf,_0x2e8ba6,_0x5cabe1(0x1db)),_0x4f3162?_0x4f3162['call'](_0x3e10cf,_0x25a711):_0x2e8ba6[_0x5cabe1(0x1d5)](_0x3e10cf,_0x25a711),_0x25a711),_0x4d1e7a=(_0x20b3c0,_0x3178a6,_0xbdf63c)=>(_0x337a26(_0x20b3c0,_0x3178a6,_0x5cabe1(0x1df)),_0xbdf63c),_0x5b833=(_0x39f119,_0x23b978,_0x24fd9b)=>new Promise((_0x521712,_0xfa79ab)=>{const _0x8a43bb=_0x5cabe1;var _0x573220=_0x1d9892=>{const _0x17f744=_0x36d3;try{_0x46da0b(_0x24fd9b[_0x17f744(0x243)](_0x1d9892));}catch(_0x4b589f){_0xfa79ab(_0x4b589f);}},_0x53dfa8=_0x2bc883=>{const _0x375bd3=_0x36d3;try{_0x46da0b(_0x24fd9b[_0x375bd3(0x1b0)](_0x2bc883));}catch(_0x21a5d1){_0xfa79ab(_0x21a5d1);}},_0x46da0b=_0xf5ce91=>_0xf5ce91[_0x8a43bb(0x1a0)]?_0x521712(_0xf5ce91[_0x8a43bb(0x193)]):Promise['resolve'](_0xf5ce91[_0x8a43bb(0x193)])[_0x8a43bb(0x220)](_0x573220,_0x53dfa8);_0x46da0b((_0x24fd9b=_0x24fd9b[_0x8a43bb(0x25a)](_0x39f119,_0x23b978))['next']());}),_0x4eb8a2=(_0x3b61d1=>(_0x3b61d1[_0x5cabe1(0x223)]='utm_source',_0x3b61d1[_0x5cabe1(0x236)]='utm_medium',_0x3b61d1['UTM_CAMPAIGN']='utm_campaign',_0x3b61d1['UTM_TERM']=_0x5cabe1(0x200),_0x3b61d1[_0x5cabe1(0x1ca)]=_0x5cabe1(0x22f),_0x3b61d1[_0x5cabe1(0x1ac)]='gad_source',_0x3b61d1[_0x5cabe1(0x1ba)]=_0x5cabe1(0x222),_0x3b61d1))(_0x4eb8a2||{}),_0x279dda=new Set(Object[_0x5cabe1(0x1c8)](_0x4eb8a2)),_0x3c5bf8='Popup\x20Action',_0x17dc98='https://u23z4zsda8.execute-api.ap-southeast-1.amazonaws.com/Prod/sdk-management/api',_0xafd20d=_0x5cabe1(0x25f),_0x1a78ea=_0x5cabe1(0x1d2),_0x181cac=_0x5cabe1(0x1c1),_0x5410cb=_0x5cabe1(0x1e0),_0x41e257=_0x5cabe1(0x1a4),_0x5aa12b=_0x5cabe1(0x1e5),_0x4f439c,_0x2b5642=class _0x470e86{constructor(){}static[_0x5cabe1(0x23f)](){return _0x4cd361(_0x470e86,_0x4f439c)||_0x5e7494(_0x470e86,_0x4f439c,new _0x470e86()),_0x4cd361(_0x470e86,_0x4f439c);}[_0x5cabe1(0x1fc)](_0x43a193){const _0xe5f307=_0x5cabe1;_0x470e86[_0xe5f307(0x1bb)]=_0x43a193;}[_0x5cabe1(0x25c)](_0x4b72d5){return _0x5b833(this,null,function*(){const _0x4cd666=_0x36d3;return(yield fetch(_0x17dc98+_0x4b72d5,{'headers':{'Authorization':_0x470e86[_0x4cd666(0x1bb)],'Content-Type':_0x4cd666(0x199)}}))[_0x4cd666(0x233)]();});}[_0x5cabe1(0x245)](_0x4f4733,_0x155971){return _0x5b833(this,null,function*(){const _0x10f99c=_0x36d3;return(yield fetch(_0x17dc98+_0x4f4733,{'body':JSON['stringify'](_0x155971||{}),'headers':{'Authorization':_0x470e86[_0x10f99c(0x1bb)],'Content-Type':_0x10f99c(0x199)},'method':'POST'}))[_0x10f99c(0x233)]();});}};_0x4f439c=new WeakMap(),_0x3bf5ec(_0x2b5642,_0x4f439c,void 0x0);var _0x4e0993=_0x2b5642,_0x2f4f97=_0x4e0993['getInstance'](),_0x12a1e1=class extends Error{constructor(_0x5c2323){const _0x3d04da=_0x5cabe1;super(_0x5c2323),this[_0x3d04da(0x240)]=_0x3d04da(0x219);}};_0x12a1e1[_0x5cabe1(0x1d4)]=!0x1,_0x12a1e1[_0x5cabe1(0x253)]=!navigator[_0x5cabe1(0x211)],_0x12a1e1[_0x5cabe1(0x24b)]=0x0,_0x12a1e1['isInitialized']=!0x1,_0x12a1e1[_0x5cabe1(0x1e4)]=!0x1,_0x12a1e1[_0x5cabe1(0x21e)]=[];var _0x53e5a1=()=>{const _0x2e2896=_0x5cabe1;_0x12a1e1[_0x2e2896(0x191)]=!0x0;for(let _0x12512e of _0x12a1e1[_0x2e2896(0x21e)])_0x12512e();_0x12a1e1['funcQueue']=[];},_0x455ccb=(_0x3d8bc0,_0x261cf6)=>{const _0x436f41=_0x5cabe1;_0x261cf6 instanceof _0x12a1e1?_0x3ab3cc(0x2,_0x436f41(0x22a)+_0x3d8bc0+_0x436f41(0x1d1)+_0x261cf6[_0x436f41(0x251)]):_0x261cf6 instanceof Error?_0x3ab3cc(0x2,'OriginateFrom:\x20'+_0x3d8bc0+_0x436f41(0x208)+_0x261cf6[_0x436f41(0x251)]):_0x3ab3cc(0x2,_0x436f41(0x22a)+_0x3d8bc0+_0x436f41(0x208)+String(_0x261cf6));},_0x45fae1=(_0x183fe6,_0x207262,_0x1116cb)=>_0x5b833(void 0x0,null,function*(){const _0x45dee6=_0x5cabe1;try{if(_0x12a1e1[_0x45dee6(0x1d4)])throw new _0x12a1e1(_0x45dee6(0x1aa));if(_0x183fe6!==_0x45dee6(0x1d3)&&_0x12a1e1[_0x45dee6(0x253)])throw new _0x12a1e1('Mergn\x20is\x20offline!');if(_0x183fe6!==_0x45dee6(0x1d0)&&!_0x12a1e1[_0x45dee6(0x191)]){if(_0x183fe6===_0x45dee6(0x1d3)||_0x183fe6===_0x45dee6(0x24f)||_0x183fe6===_0x45dee6(0x21b))_0x12a1e1[_0x45dee6(0x21e)][_0x45dee6(0x1f3)](_0x207262);else throw new _0x12a1e1(_0x45dee6(0x1ce));return console[_0x45dee6(0x1f8)](_0x45dee6(0x18f)),null;}else{if(_0x183fe6!=='login'&&_0x12a1e1[_0x45dee6(0x1e4)])throw new _0x12a1e1('Mergn\x20is\x20loading!');}return yield _0x207262();}catch(_0x46f394){return _0x1116cb?_0x1116cb(_0x46f394):(_0x12a1e1[_0x45dee6(0x24b)]===0x2||_0x12a1e1[_0x45dee6(0x24b)]===0x3)&&_0x455ccb(_0x183fe6,_0x46f394),null;}}),_0x4a2bf3=(_0x4c61b8=>(_0x4c61b8[_0x4c61b8[_0x5cabe1(0x22d)]=0x0]=_0x5cabe1(0x22d),_0x4c61b8[_0x4c61b8[_0x5cabe1(0x1bc)]=0x1]=_0x5cabe1(0x1bc),_0x4c61b8[_0x4c61b8[_0x5cabe1(0x1f2)]=0x2]=_0x5cabe1(0x1f2),_0x4c61b8[_0x4c61b8[_0x5cabe1(0x247)]=0x3]=_0x5cabe1(0x247),_0x4c61b8))(_0x4a2bf3||{}),_0x3ab3cc=(_0x3e811b,_0x3df95c)=>{const _0x515647=_0x5cabe1;_0x12a1e1[_0x515647(0x24b)]!==0x0&&_0x12a1e1[_0x515647(0x24b)]<=0x3&&(_0x3e811b===0x1?console[_0x515647(0x217)]('INFO:\x20'+new Date()[_0x515647(0x1dc)](),_0x3df95c):_0x3e811b===0x2&&console[_0x515647(0x1f8)](_0x515647(0x24a)+new Date()['toISOString'](),_0x3df95c));},_0x1599c5=(_0x3aeadc,_0x3a89fd)=>{const _0x2fd5e4=_0x5cabe1;_0x12a1e1['debugLevel']!==0x0&&(_0x3a89fd?console[_0x2fd5e4(0x1f7)](_0x3aeadc):console[_0x2fd5e4(0x203)](_0x3aeadc));},_0x386220=(_0x54297f,_0x4206ab)=>{const _0x4029c=_0x5cabe1;_0x12a1e1['debugLevel']!==0x0&&(_0x4206ab?console['group'](_0x54297f):console[_0x4029c(0x1bf)]());},_0x3f5e37,_0xa58c6a,_0x2b69c5,_0x59e262,_0x3a1db7,_0x521c60,_0xc2aa2c,_0x3f1992,_0x457147,_0x1bf8fb,_0x2d06e8,_0x57b854,_0xcd8805,_0x307aa8,_0x443c64,_0x477ba7,_0x42330b,_0x534268,_0x19d1f0,_0xd4733c,_0x5b0b7b,_0x5126eb,_0x45472f,_0x1d232e,_0x510140,_0x3dfb29,_0x319616,_0x4be62f,_0x1ab9a5,_0x56902f,_0x33c6cc,_0x9f833f,_0x1e9389,_0x2b58ad,_0x4f8168,_0x132d74,_0x1abc87,_0x1ac48d,_0x35335f,_0x3dee8b,_0x4b6887,_0x80ac19,_0x39ac1c,_0x18ab87,_0xf37bc2,_0x443547,_0x2f8aae,_0xb9518e,_0x29277b,_0x4e270c,_0x54be92,_0x44a4a7,_0x132be8,_0x542cf3,_0x56d011,_0x48fd27,_0x52224c,_0x5f4dc6,_0xc5ae2d,_0xc9c6b9,_0x139fbc,_0x3fa963,_0x4c0a72,_0x196664,_0x50ea39,_0x4e15e5,_0x728f2a,_0x2306d3,_0x571d06,_0x2dd0ca,_0x3ca068,_0x1aa3ce,_0x2612fd,_0x418c32,_0x109252,_0x3b438c,_0x108150=class _0x57258b{constructor(){_0x3bf5ec(this,_0x521c60),_0x3bf5ec(this,_0x3f1992),_0x3bf5ec(this,_0x1bf8fb),_0x3bf5ec(this,_0x57b854),_0x3bf5ec(this,_0x307aa8),_0x3bf5ec(this,_0x477ba7),_0x3bf5ec(this,_0x534268),_0x3bf5ec(this,_0xd4733c),_0x3bf5ec(this,_0x5126eb),_0x3bf5ec(this,_0x1d232e),_0x3bf5ec(this,_0x1ab9a5),_0x3bf5ec(this,_0x33c6cc),_0x3bf5ec(this,_0x1e9389),_0x3bf5ec(this,_0x4f8168),_0x3bf5ec(this,_0x1abc87),_0x3bf5ec(this,_0x35335f),_0x3bf5ec(this,_0x4b6887),_0x3bf5ec(this,_0x39ac1c),_0x3bf5ec(this,_0xf37bc2),_0x3bf5ec(this,_0x2f8aae),_0x3bf5ec(this,_0x29277b),_0x3bf5ec(this,_0x54be92),_0x3bf5ec(this,_0x132be8),_0x3bf5ec(this,_0x56d011),_0x3bf5ec(this,_0x52224c),_0x3bf5ec(this,_0xc5ae2d),_0x3bf5ec(this,_0x139fbc),_0x3bf5ec(this,_0x4c0a72),_0x3bf5ec(this,_0x50ea39),_0x3bf5ec(this,_0x728f2a),_0x3bf5ec(this,_0x571d06),_0x3bf5ec(this,_0x3ca068),_0x3bf5ec(this,_0x2612fd),_0x3bf5ec(this,_0x109252),_0x3bf5ec(this,_0xa58c6a,void 0x0),_0x3bf5ec(this,_0x2b69c5,void 0x0),_0x3bf5ec(this,_0x59e262,void 0x0),_0x3bf5ec(this,_0x3a1db7,null),_0x3bf5ec(this,_0x3dfb29,()=>{const _0x4568e2=_0x36d3;let _0x5e2ab1=()=>{const _0x2f1ba7=_0x36d3;let _0xf0aea5=JSON[_0x2f1ba7(0x1b1)](localStorage[_0x2f1ba7(0x229)](_0x2f1ba7(0x18e))||'{}');Object[_0x2f1ba7(0x197)](_0xf0aea5)[_0x2f1ba7(0x258)](_0x4f7f6a=>{const _0x46226e=_0x2f1ba7;_0xf0aea5[_0x4f7f6a][_0x46226e(0x207)]=new Date()[_0x46226e(0x255)](),_0xf0aea5[_0x4f7f6a][_0x46226e(0x21a)]=window[_0x46226e(0x1eb)]['hostname']+window[_0x46226e(0x1eb)]['pathname'];}),localStorage[_0x2f1ba7(0x1a3)](_0x2f1ba7(0x18e),JSON[_0x2f1ba7(0x1da)](_0xf0aea5));};_0x5e2ab1(),window[_0x4568e2(0x1a5)](_0x4568e2(0x20b),_0x5e2ab1);}),_0x3bf5ec(this,_0x319616,_0x3ce9f3=>{const _0xd7486a=_0x36d3;let _0x11797f=JSON[_0xd7486a(0x1b1)](localStorage[_0xd7486a(0x229)]('action')||'{}');_0x11797f[_0x3ce9f3]&&delete _0x11797f[_0x3ce9f3],localStorage[_0xd7486a(0x1a3)](_0xd7486a(0x18e),JSON['stringify'](_0x11797f));}),_0x3bf5ec(this,_0x4be62f,()=>{const _0xde6d9=_0x36d3;let _0x36e873=JSON[_0xde6d9(0x1b1)](localStorage[_0xde6d9(0x229)](_0xde6d9(0x18e))||'{}');Object[_0xde6d9(0x197)](_0x36e873)[_0xde6d9(0x258)](_0x2711a2=>{const _0x3a22ba=_0xde6d9;_0x36e873[_0x2711a2][_0x3a22ba(0x251)][_0x3a22ba(0x240)]==='Popup'&&_0x4d1e7a(this,_0xf37bc2,_0x443547)[_0x3a22ba(0x227)](this,_0x36e873[_0x2711a2]['campaignId']);});});}static[_0x5cabe1(0x23f)](){return _0x4cd361(_0x57258b,_0x3f5e37)||_0x5e7494(_0x57258b,_0x3f5e37,new _0x57258b()),_0x4cd361(_0x57258b,_0x3f5e37);}[_0x5cabe1(0x1d0)](_0x1c8bd5){const _0x2d7ad4=_0x5cabe1;_0x45fae1(_0x2d7ad4(0x1d0),()=>_0x5b833(this,null,function*(){const _0x99146a=_0x2d7ad4;_0x3ab3cc(0x1,_0x99146a(0x1f5)),_0x386220('Initializing\x20Mergn\x20SDK',!0x0),_0x1599c5(_0x99146a(0x1a9),!0x0),_0x4d1e7a(this,_0xd4733c,_0x5b0b7b)[_0x99146a(0x227)](this,_0x1c8bd5),yield _0x4d1e7a(this,_0x477ba7,_0x42330b)[_0x99146a(0x227)](this),_0x53e5a1(),setInterval(()=>_0x5b833(this,null,function*(){const _0x405040=_0x99146a;yield _0x4d1e7a(this,_0x477ba7,_0x42330b)[_0x405040(0x227)](this);}),0x493e0),yield _0x4d1e7a(this,_0x3f1992,_0x457147)[_0x99146a(0x227)](this),window[_0x99146a(0x1a5)](_0x99146a(0x1ae),()=>_0x5b833(this,null,function*(){const _0x4755aa=_0x99146a;_0x12a1e1['offline']=!0x1;let _0x23cd99=JSON[_0x4755aa(0x1b1)](localStorage[_0x4755aa(0x229)](_0x4755aa(0x1f1))||'[]');Array[_0x4755aa(0x1e3)](_0x23cd99)&&(yield _0x4d1e7a(this,_0x50ea39,_0x4e15e5)[_0x4755aa(0x227)](this,{'customerId':localStorage[_0x4755aa(0x229)](_0x4755aa(0x201))||'','events':_0x23cd99}),localStorage['removeItem'](_0x4755aa(0x1f1))),_0x4d1e7a(this,_0x3f1992,_0x457147)[_0x4755aa(0x227)](this),_0x4d1e7a(this,_0x4b6887,_0x80ac19)['call'](this);})),window['addEventListener'](_0x99146a(0x253),()=>{const _0x3408a3=_0x99146a;_0x12a1e1[_0x3408a3(0x253)]=!0x0;}),window[_0x99146a(0x1a5)](_0x99146a(0x198),()=>{const _0x1d01e6=_0x99146a;_0x4cd361(this,_0x4be62f)[_0x1d01e6(0x227)](this);});let _0x32aabf=history['pushState'];history[_0x99146a(0x1b6)]=(..._0x4f90a0)=>{const _0xe99e29=_0x99146a;_0x32aabf[_0xe99e29(0x25a)](history,_0x4f90a0),_0x4d1e7a(this,_0x534268,_0x19d1f0)[_0xe99e29(0x227)](this);},_0x4d1e7a(this,_0x534268,_0x19d1f0)[_0x99146a(0x227)](this),_0x1599c5(_0x99146a(0x1a9),!0x1),_0x386220('Initializing\x20Mergn\x20SDK',!0x1);}));}['setDebugLevel'](_0x31383b){const _0x3ec357=_0x5cabe1;if(!(_0x31383b in _0x4a2bf3)){console[_0x3ec357(0x1f8)](_0x3ec357(0x23c));return;}_0x12a1e1[_0x3ec357(0x24b)]=_0x31383b;}['recordAttribute'](_0x1e5029,_0x382394){_0x45fae1('recordAttribute',()=>_0x5b833(this,null,function*(){const _0x3fe725=_0x36d3;yield _0x4d1e7a(this,_0x521c60,_0xc2aa2c)[_0x3fe725(0x227)](this,_0x1e5029,_0x382394,void 0x0);}));}[_0x5cabe1(0x1ec)](_0x3d065f){const _0x25feb4=_0x5cabe1;_0x45fae1(_0x25feb4(0x1ec),()=>_0x5b833(this,null,function*(){const _0x3ff2d3=_0x25feb4;_0x3ab3cc(0x1,'Logging\x20in'),_0x386220(_0x3ff2d3(0x1e1),!0x0),_0x1599c5(_0x3ff2d3(0x1b8),!0x0),_0x3ab3cc(0x1,'Identity:\x20'+_0x3d065f),_0x12a1e1[_0x3ff2d3(0x1e4)]=!0x0,yield _0x4d1e7a(this,_0x35335f,_0x3dee8b)[_0x3ff2d3(0x227)](this,_0x3d065f),_0x12a1e1['loading']=!0x1,_0x1599c5(_0x3ff2d3(0x1b8),!0x1),_0x386220(_0x3ff2d3(0x1e1),!0x1);}));}[_0x5cabe1(0x257)](){const _0x43fc64=_0x5cabe1;_0x45fae1(_0x43fc64(0x257),()=>_0x5b833(this,null,function*(){const _0x4c118d=_0x43fc64;_0x3ab3cc(0x1,_0x4c118d(0x1cd)),_0x386220('Logging\x20out',!0x0),_0x1599c5('Logging\x20out\x20Time',!0x0),_0x4d1e7a(this,_0x3ca068,_0x1aa3ce)[_0x4c118d(0x227)](this),_0x1599c5(_0x4c118d(0x259),!0x1),_0x386220(_0x4c118d(0x1cd),!0x1);}));}[_0x5cabe1(0x256)](_0x351aa3,_0x322890){setTimeout(()=>{const _0x20246c=_0x36d3;_0x45fae1(_0x20246c(0x1d3),()=>_0x5b833(this,null,function*(){const _0x69dd6b=_0x20246c;_0x3ab3cc(0x1,_0x69dd6b(0x1b9)),_0x386220(_0x69dd6b(0x1b9),!0x0),_0x1599c5('Recording\x20event\x20Time',!0x0),_0x3ab3cc(0x1,'Event\x20Payload:\x0a\x20'+{'eventName':_0x351aa3,'eventProperties':_0x322890}),_0x4d1e7a(this,_0x1bf8fb,_0x2d06e8)['call'](this,_0x351aa3,_0x322890),_0x1599c5(_0x69dd6b(0x212),!0x1),_0x386220('Recording\x20event',!0x1);}));});}};_0x3f5e37=new WeakMap(),_0xa58c6a=new WeakMap(),_0x2b69c5=new WeakMap(),_0x59e262=new WeakMap(),_0x3a1db7=new WeakMap(),_0x521c60=new WeakSet(),_0xc2aa2c=function(_0x33ebed,_0x5c6b1c,_0x4df17f){return _0x5b833(this,null,function*(){yield _0x45fae1('#\x20recordAttribute',()=>_0x5b833(this,null,function*(){const _0x12df5a=_0x36d3;_0x3ab3cc(0x1,'Recording\x20attribute'),_0x386220('Recording\x20attribute',!0x0),_0x1599c5(_0x12df5a(0x21f),!0x0),_0x3ab3cc(0x1,_0x12df5a(0x206)+{'attributeName':_0x33ebed,'attributeProperties':_0x4df17f,'attributeValue':_0x5c6b1c}+')}'),yield _0x4d1e7a(this,_0x3f1992,_0x457147)[_0x12df5a(0x227)](this),yield _0x4d1e7a(this,_0x2612fd,_0x418c32)['call'](this);let _0x321773=JSON['parse'](localStorage[_0x12df5a(0x229)](_0x12df5a(0x260))||'{}'),_0x4f9043=_0x4df17f?_0x4d1e7a(this,_0x139fbc,_0x3fa963)['call'](this,_0x321773,_0x33ebed,_0x4df17f):_0x4d1e7a(this,_0x139fbc,_0x3fa963)[_0x12df5a(0x227)](this,_0x321773,_0x33ebed);if(typeof _0x4f9043=='string'){_0x3ab3cc(0x2,_0x4f9043);return;}_0x4d1e7a(this,_0x4b6887,_0x80ac19)['call'](this);let {id:_0x506773}=_0x321773[_0x33ebed],_0x1672b7={'attributeId':_0x506773,'attributeProperties':_0x4f9043,'customerId':localStorage['getItem'](_0x12df5a(0x201))||'','value':_0x5c6b1c};yield _0x4d1e7a(this,_0x109252,_0x3b438c)[_0x12df5a(0x227)](this,_0x1672b7),_0x1599c5(_0x12df5a(0x21f),!0x1),_0x386220('Recording\x20attribute',!0x1);}));});},_0x3f1992=new WeakSet(),_0x457147=function(){return _0x5b833(this,null,function*(){const _0x2986d4=_0x36d3;_0x3ab3cc(0x1,_0x2986d4(0x1d8)),_0x386220(_0x2986d4(0x1d8),!0x0),_0x1599c5('Checking\x20TTL\x20Time',!0x0);let _0x768ded=localStorage['getItem'](_0x2986d4(0x194)),_0x73192a=!0x1;if(_0x768ded){if(_0x73192a=new Date()[_0x2986d4(0x255)]()-parseInt(_0x768ded,0xa)>0x124f80,_0x73192a){let _0xac13ef=localStorage['getItem'](_0x2986d4(0x1c5)),_0x50c591=localStorage['getItem']('ttl');_0xac13ef&&_0x50c591&&_0x4d1e7a(this,_0x1bf8fb,_0x2d06e8)[_0x2986d4(0x227)](this,_0x2986d4(0x1be),[{'eventProperty':'SESSION_ID','value':localStorage[_0x2986d4(0x229)](_0x2986d4(0x1c5))},{'eventProperty':'SESSION_CREATED','value':new Date(parseInt(_0x50c591,0xa))[_0x2986d4(0x1dc)]()}]),_0x4d1e7a(this,_0x3ca068,_0x1aa3ce)['call'](this),localStorage[_0x2986d4(0x1a3)](_0x2986d4(0x194),''+new Date()['getTime']());}}else localStorage[_0x2986d4(0x1a3)](_0x2986d4(0x194),''+new Date()[_0x2986d4(0x255)]());(!_0x768ded||_0x73192a||_0x4d1e7a(this,_0x5126eb,_0x45472f)['call'](this))&&(_0x4d1e7a(this,_0x1ab9a5,_0x56902f)[_0x2986d4(0x227)](this),yield _0x4d1e7a(this,_0x35335f,_0x3dee8b)[_0x2986d4(0x227)](this),yield _0x4d1e7a(this,_0x1d232e,_0x510140)[_0x2986d4(0x227)](this)),_0x1599c5(_0x2986d4(0x262),!0x1),_0x386220(_0x2986d4(0x1d8),!0x1);});},_0x1bf8fb=new WeakSet(),_0x2d06e8=function(_0x539e26,_0x10386d,_0x551d48,_0x4ae1b5,_0x6dc0a4){return _0x5b833(this,null,function*(){const _0x2458fb=_0x36d3;yield _0x45fae1(_0x2458fb(0x1f6),()=>_0x5b833(this,null,function*(){const _0x46fa1e=_0x2458fb;var _0x5ebff6;_0x3ab3cc(0x1,_0x46fa1e(0x1a7)),_0x386220(_0x46fa1e(0x1b9),!0x0),_0x1599c5('Recording\x20event\x20Time',!0x0),_0x3ab3cc(0x1,'Event\x20Payload'),_0x3ab3cc(0x1,{'campaignCustomerInstanceId':_0x4ae1b5,'eventName':_0x539e26,'eventProperties':_0x10386d,'name':_0x6dc0a4}),_0x539e26!=='Web\x20Session\x20Concluded'&&(yield _0x4d1e7a(this,_0x3f1992,_0x457147)[_0x46fa1e(0x227)](this));let _0x4d7b94=[];_0x10386d&&_0x4d7b94['push'](..._0x10386d),_0x4d7b94[_0x46fa1e(0x1f3)]({'eventProperty':_0x46fa1e(0x1ed),'value':_0x4cd361(this,_0xa58c6a)}),_0x4d7b94[_0x46fa1e(0x1f3)]({'eventProperty':_0x46fa1e(0x248),'value':_0x4cd361(this,_0x59e262)}),_0x4d7b94[_0x46fa1e(0x1f3)]({'eventProperty':'os-version','value':_0x4cd361(this,_0x2b69c5)});let _0x51c73c=_0x4d1e7a(this,_0x52224c,_0x5f4dc6)[_0x46fa1e(0x227)](this),_0x77732f=_0x4d1e7a(this,_0xc5ae2d,_0xc9c6b9)[_0x46fa1e(0x227)](this,_0x51c73c,_0x539e26,_0x4d7b94);if(typeof _0x77732f==_0x46fa1e(0x190)){_0x3ab3cc(0x2,_0x77732f);return;}_0x4d1e7a(this,_0x4b6887,_0x80ac19)[_0x46fa1e(0x227)](this);let {id:_0x7532af}=_0x51c73c[_0x539e26],_0x203d19=_0x4d1e7a(this,_0x4c0a72,_0x196664)[_0x46fa1e(0x227)](this,_0x556afb(_0x48cc28(_0x556afb(_0x556afb({},_0x4ae1b5?{'campaignCustomerInstanceId':_0x4ae1b5}:{}),_0x551d48?{'campaignId':_0x551d48}:{}),{'eventId':_0x7532af,'eventProperties':_0x77732f,'sessionId':localStorage[_0x46fa1e(0x229)](_0x46fa1e(0x1c5))||''}),_0x6dc0a4?{'name':_0x6dc0a4}:{}));if(_0x12a1e1['offline']){let _0x46903c=JSON['parse'](localStorage[_0x46fa1e(0x229)](_0x46fa1e(0x1f1))||'[]');_0x46903c[_0x46fa1e(0x19f)]<=0x32&&(_0x46903c[_0x46fa1e(0x1f3)](..._0x203d19[_0x46fa1e(0x234)]),localStorage[_0x46fa1e(0x1a3)](_0x46fa1e(0x1f1),JSON[_0x46fa1e(0x1da)](_0x46903c)));return;}let _0x28d5a7=yield _0x4d1e7a(this,_0x50ea39,_0x4e15e5)[_0x46fa1e(0x227)](this,_0x203d19);(_0x5ebff6=_0x28d5a7==null?void 0x0:_0x28d5a7['data'])==null||_0x5ebff6[_0x46fa1e(0x258)](_0x527aac=>{const _0x46b6cf=_0x46fa1e;_0x4d1e7a(this,_0x728f2a,_0x2306d3)[_0x46b6cf(0x227)](this,_0x527aac['message'][_0x46b6cf(0x240)])&&(_0x4d1e7a(this,_0x571d06,_0x2dd0ca)['call'](this,_0x527aac),_0x4cd361(this,_0x3dfb29)[_0x46b6cf(0x227)](this),_0x4d1e7a(this,_0xf37bc2,_0x443547)[_0x46b6cf(0x227)](this,_0x527aac[_0x46b6cf(0x237)]));}),_0x1599c5('Recording\x20event\x20Time',!0x1),_0x386220(_0x46fa1e(0x1b9),!0x1);}));});},_0x57b854=new WeakSet(),_0xcd8805=function(){const _0x259eb6=_0x5cabe1;let _0x2623fe=navigator['userAgent'][_0x259eb6(0x1e2)]();return/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i[_0x259eb6(0x1d7)](_0x2623fe)?_0x259eb6(0x242):/windows|macintosh|linux|x11/i[_0x259eb6(0x1d7)](_0x2623fe)?'Web':_0x259eb6(0x1f0);},_0x307aa8=new WeakSet(),_0x443c64=function(){const _0x5b72f3=_0x5cabe1;let _0x1ec6c3=navigator['userAgent'],_0x39e7ad;return _0x1ec6c3['indexOf'](_0x5b72f3(0x23d))>-0x1?_0x39e7ad=_0x5b72f3(0x1c6):_0x1ec6c3['indexOf'](_0x5b72f3(0x1fe))>-0x1?_0x39e7ad=_0x5b72f3(0x1fe):_0x1ec6c3[_0x5b72f3(0x1d6)](_0x5b72f3(0x210))>-0x1?_0x39e7ad=_0x5b72f3(0x19e):_0x1ec6c3[_0x5b72f3(0x1d6)](_0x5b72f3(0x24e))>-0x1?_0x39e7ad=_0x5b72f3(0x1ef):_0x1ec6c3['indexOf'](_0x5b72f3(0x1ee))>-0x1?_0x39e7ad=_0x5b72f3(0x232):_0x39e7ad='Unknown',_0x39e7ad;},_0x477ba7=new WeakSet(),_0x42330b=function(){return _0x5b833(this,null,function*(){const _0x125a04=_0x36d3;try{yield _0x2f4f97['get']('/brand');}catch(_0x403caf){throw _0x12a1e1['disableSDK']=!0x0,_0x403caf[_0x125a04(0x251)];}});},_0x534268=new WeakSet(),_0x19d1f0=function(){return _0x5b833(this,null,function*(){const _0x330afc=_0x36d3;var _0x4a5c7e;_0x3ab3cc(0x1,'Tracking\x20page\x20change'),_0x386220(_0x330afc(0x1cc),!0x0),_0x1599c5('Tracking\x20page\x20change\x20Time',!0x0);let _0x5ac66b=(_0x4a5c7e=window==null?void 0x0:window[_0x330afc(0x1eb)])==null?void 0x0:_0x4a5c7e[_0x330afc(0x226)];if(_0x5ac66b!==_0x4cd361(this,_0x3a1db7)){_0x5e7494(this,_0x3a1db7,_0x5ac66b);let _0x24f6d0=[];new URLSearchParams(new URL(window[_0x330afc(0x1eb)][_0x330afc(0x226)])['search'])[_0x330afc(0x258)]((_0x3336ba,_0x3902f5)=>_0x5b833(this,null,function*(){const _0x4177bb=_0x330afc;_0x279dda[_0x4177bb(0x24d)](_0x3902f5)&&_0x24f6d0[_0x4177bb(0x1f3)]({'eventProperty':_0x3902f5,'value':_0x3336ba});})),yield _0x4d1e7a(this,_0x1bf8fb,_0x2d06e8)[_0x330afc(0x227)](this,_0x330afc(0x1ea),[{'eventProperty':_0x330afc(0x230),'value':window[_0x330afc(0x1eb)][_0x330afc(0x19c)]},..._0x24f6d0]);}_0x1599c5(_0x330afc(0x261),!0x1),_0x386220(_0x330afc(0x1cc),!0x1);});},_0xd4733c=new WeakSet(),_0x5b0b7b=function(_0x5c7036){const _0x11bbc9=_0x5cabe1;_0x2f4f97['updateAPIKey'](_0x5c7036),_0x5e7494(this,_0xa58c6a,_0x4d1e7a(this,_0x57b854,_0xcd8805)['call'](this)),_0x5e7494(this,_0x2b69c5,_0x4d1e7a(this,_0x307aa8,_0x443c64)[_0x11bbc9(0x227)](this)),_0x5e7494(this,_0x59e262,navigator['userAgent']);},_0x5126eb=new WeakSet(),_0x45472f=function(){const _0x118da0=_0x5cabe1;return!localStorage[_0x118da0(0x229)](_0x118da0(0x234))||!localStorage[_0x118da0(0x229)](_0x118da0(0x201))||!localStorage[_0x118da0(0x229)](_0x118da0(0x260))||!localStorage[_0x118da0(0x229)]('uniqueIdentity')||!localStorage[_0x118da0(0x229)](_0x118da0(0x1c5))||!localStorage[_0x118da0(0x229)]('customer');},_0x1d232e=new WeakSet(),_0x510140=function(){return _0x5b833(this,null,function*(){const _0x2b5957=_0x36d3;yield _0x4d1e7a(this,_0x33c6cc,_0x9f833f)['call'](this),yield _0x4d1e7a(this,_0x4f8168,_0x132d74)[_0x2b5957(0x227)](this),yield _0x4d1e7a(this,_0x35335f,_0x3dee8b)[_0x2b5957(0x227)](this);});},_0x3dfb29=new WeakMap(),_0x319616=new WeakMap(),_0x4be62f=new WeakMap(),_0x1ab9a5=new WeakSet(),_0x56902f=function(){const _0x55eda7=_0x5cabe1;let _0x208684=localStorage[_0x55eda7(0x229)](_0x55eda7(0x20c));return _0x208684||(_0x208684=crypto[_0x55eda7(0x205)](),localStorage[_0x55eda7(0x1a3)](_0x55eda7(0x20c),_0x208684)),_0x208684;},_0x33c6cc=new WeakSet(),_0x9f833f=function(){return _0x5b833(this,null,function*(){const _0x5f41b1=_0x36d3;if(!localStorage['getItem']('events')){let _0x2fddd6=(yield _0x4d1e7a(this,_0x1e9389,_0x2b58ad)[_0x5f41b1(0x227)](this))[_0x5f41b1(0x1af)];_0x2fddd6&&localStorage[_0x5f41b1(0x1a3)](_0x5f41b1(0x234),JSON[_0x5f41b1(0x1da)](_0x2fddd6));}});},_0x1e9389=new WeakSet(),_0x2b58ad=function(){return _0x5b833(this,null,function*(){const _0x280459=_0x36d3;try{return yield _0x2f4f97[_0x280459(0x25c)](''+_0x181cac);}catch(_0x3fe546){throw new Error(_0x280459(0x249));}});},_0x4f8168=new WeakSet(),_0x132d74=function(){return _0x5b833(this,null,function*(){const _0x50b7e2=_0x36d3;if(!localStorage[_0x50b7e2(0x229)]('attributes')){let _0x5c619e=(yield _0x4d1e7a(this,_0x1abc87,_0x1ac48d)['call'](this))[_0x50b7e2(0x1af)];_0x5c619e&&localStorage[_0x50b7e2(0x1a3)](_0x50b7e2(0x260),JSON[_0x50b7e2(0x1da)](_0x5c619e));}});},_0x1abc87=new WeakSet(),_0x1ac48d=function(){return _0x5b833(this,null,function*(){const _0x51c0ef=_0x36d3;try{return yield _0x2f4f97[_0x51c0ef(0x25c)](''+_0xafd20d);}catch(_0x5a1e58){throw new Error(_0x51c0ef(0x1dd));}});},_0x35335f=new WeakSet(),_0x3dee8b=function(_0x196d93){return _0x5b833(this,null,function*(){const _0x2e9d0b=_0x36d3;localStorage['getItem'](_0x2e9d0b(0x1c5))||(localStorage[_0x2e9d0b(0x1a3)](_0x2e9d0b(0x1c5),crypto['randomUUID']()),yield _0x4d1e7a(this,_0x1bf8fb,_0x2d06e8)['call'](this,_0x2e9d0b(0x23a),[{'eventProperty':_0x2e9d0b(0x192),'value':localStorage['getItem'](_0x2e9d0b(0x1c5))},{'eventProperty':_0x2e9d0b(0x1c9),'value':new Date(parseInt(localStorage['getItem'](_0x2e9d0b(0x194))||'',0xa))['toISOString']()}]));let _0x486fe0={'deviceId':localStorage[_0x2e9d0b(0x229)]('uniqueIdentity')||crypto[_0x2e9d0b(0x205)](),'os':_0x4cd361(this,_0xa58c6a)};if(_0x196d93)_0x486fe0[_0x2e9d0b(0x1b2)]=_0x196d93;else{if(!_0x196d93&&localStorage[_0x2e9d0b(0x229)]('customer'))return;}try{let _0x4ba44e=yield _0x4d1e7a(this,_0x39ac1c,_0x18ab87)[_0x2e9d0b(0x227)](this,_0x486fe0);_0x4ba44e!==void 0x0&&localStorage['setItem'](_0x2e9d0b(0x201),_0x4ba44e);}catch(_0x1e6829){throw new Error(_0x2e9d0b(0x218));}});},_0x4b6887=new WeakSet(),_0x80ac19=function(){const _0x5bcc38=_0x5cabe1;localStorage[_0x5bcc38(0x1a3)](_0x5bcc38(0x194),''+new Date()[_0x5bcc38(0x255)]());},_0x39ac1c=new WeakSet(),_0x18ab87=function(_0x47cddf){return _0x5b833(this,null,function*(){const _0x451b94=_0x36d3;try{return(yield _0x2f4f97['post'](''+_0x41e257+_0x5aa12b,_0x47cddf))[_0x451b94(0x1af)];}catch(_0x597b0d){throw new Error(_0x451b94(0x1c7));}});},_0xf37bc2=new WeakSet(),_0x443547=function(_0x48b693){const _0xfdf275=_0x5cabe1;let _0x3958e=_0x4d1e7a(this,_0x2f8aae,_0xb9518e)[_0xfdf275(0x227)](this);if(_0x3958e!=null&&_0x3958e[_0x48b693])switch(_0x3958e[_0x48b693][_0xfdf275(0x213)]){case _0xfdf275(0x202):{_0x4d1e7a(this,_0x54be92,_0x44a4a7)[_0xfdf275(0x227)](this,_0x3958e[_0x48b693]);break;}case _0xfdf275(0x231):{_0x4d1e7a(this,_0x132be8,_0x542cf3)[_0xfdf275(0x227)](this,_0x3958e[_0x48b693]);break;}case _0xfdf275(0x244):{_0x4d1e7a(this,_0x29277b,_0x4e270c)['call'](this,_0x3958e[_0x48b693]);break;}default:return;}},_0x2f8aae=new WeakSet(),_0xb9518e=function(){const _0x59ea52=_0x5cabe1;let _0x465a53=localStorage[_0x59ea52(0x229)](_0x59ea52(0x18e));return _0x465a53?JSON[_0x59ea52(0x1b1)](_0x465a53):null;},_0x29277b=new WeakSet(),_0x4e270c=function(_0x393da6){const _0x156339=_0x5cabe1;let _0x205b22=()=>{const _0x10ee9a=_0x36d3;var _0x26b9ff;let _0x4134e6=window[_0x10ee9a(0x254)],_0x9c6329=document[_0x10ee9a(0x263)][_0x10ee9a(0x1fd)];window[_0x10ee9a(0x22e)]/(_0x9c6329-_0x4134e6)*0x64>(((_0x26b9ff=_0x393da6[_0x10ee9a(0x25d)])==null?void 0x0:_0x26b9ff[_0x10ee9a(0x193)])||0x0)&&(window[_0x10ee9a(0x1ab)](_0x10ee9a(0x20d),_0x205b22),_0x4d1e7a(this,_0x132be8,_0x542cf3)[_0x10ee9a(0x227)](this,_0x393da6));};window[_0x156339(0x1a5)](_0x156339(0x20d),_0x205b22);},_0x54be92=new WeakSet(),_0x44a4a7=function(_0x268ca2){const _0x4174fb=_0x5cabe1;var _0x192c99;let _0x12a6da=_0x268ca2[_0x4174fb(0x207)]-0x1f4+(((_0x192c99=_0x268ca2['campaignEntryTimeValue'])==null?void 0x0:_0x192c99[_0x4174fb(0x193)])||0x0)*0x3e8-new Date()[_0x4174fb(0x255)]();_0x12a6da>0x0&&_0x268ca2[_0x4174fb(0x21a)]===window[_0x4174fb(0x1eb)][_0x4174fb(0x1c3)]+window[_0x4174fb(0x1eb)][_0x4174fb(0x19c)]&&setTimeout(()=>{const _0x5c6e04=_0x4174fb;_0x4cd361(this,_0x319616)[_0x5c6e04(0x227)](this,_0x268ca2[_0x5c6e04(0x237)]),_0x4d1e7a(this,_0x132be8,_0x542cf3)['call'](this,_0x268ca2);},_0x12a6da);},_0x132be8=new WeakSet(),_0x542cf3=function(_0x374e67){const _0x40b02d=_0x5cabe1;let _0x2d40d7=_0x4d1e7a(this,_0x56d011,_0x48fd27)[_0x40b02d(0x227)](this,'div',_0x374e67);document[_0x40b02d(0x209)][_0x40b02d(0x1a6)](_0x2d40d7),_0x4d1e7a(this,_0x1bf8fb,_0x2d06e8)[_0x40b02d(0x227)](this,_0x3c5bf8,[{'eventProperty':_0x40b02d(0x235),'value':JSON['stringify']({'campaignId':_0x374e67[_0x40b02d(0x237)]})}],_0x374e67[_0x40b02d(0x237)],_0x374e67['campaignCustomerInstanceId'],_0x40b02d(0x22b)),_0x4cd361(this,_0x319616)[_0x40b02d(0x227)](this,_0x374e67[_0x40b02d(0x237)]);},_0x56d011=new WeakSet(),_0x48fd27=function(_0x2df391,_0x3be304){const _0x29a743=_0x5cabe1;var _0x15ce5c;let {campaignCustomerInstanceId:_0x24a2ed,campaignId:_0x5773f1,message:{design:_0x49cd6f}}=_0x3be304,_0x5262c0=document[_0x29a743(0x1a2)](_0x2df391);_0x5262c0['id']=_0x29a743(0x19b)+_0x5773f1,_0x5262c0['innerHTML']=_0x49cd6f,_0x5262c0['style'][_0x29a743(0x214)]=_0x29a743(0x1ff),_0x5262c0[_0x29a743(0x1a8)][_0x29a743(0x24c)]='0',_0x5262c0[_0x29a743(0x1a8)]['left']='0',_0x5262c0[_0x29a743(0x1a8)][_0x29a743(0x196)]=_0x29a743(0x20a),_0x5262c0['style'][_0x29a743(0x228)]='100%',_0x5262c0[_0x29a743(0x1a8)][_0x29a743(0x20f)]=_0x29a743(0x215);let _0x393d34=_0x5262c0[_0x29a743(0x238)](_0x29a743(0x1e7));return _0x393d34&&(_0x393d34['style']['zIndex']='50'),_0x5262c0[_0x29a743(0x1f9)]('[id^=\x22u_content_form_\x22]')['forEach'](_0x139543=>{const _0x5c8ec0=_0x29a743;let _0x28b6ae=_0x139543[_0x5c8ec0(0x238)]('form');_0x28b6ae&&_0x28b6ae[_0x5c8ec0(0x1a5)]('submit',()=>_0x5b833(this,null,function*(){const _0xb71713=_0x5c8ec0;_0x5262c0[_0xb71713(0x204)]();let _0x4b66d5=new FormData(_0x28b6ae),_0x307b31={};for(let [_0x21c700,_0x2c6f78]of _0x4b66d5['entries']())_0x307b31[_0x21c700]=_0x2c6f78;yield _0x4d1e7a(this,_0x1bf8fb,_0x2d06e8)[_0xb71713(0x227)](this,_0x3c5bf8,[{'eventProperty':_0xb71713(0x19a),'value':JSON[_0xb71713(0x1da)]({'campaignId':_0x5773f1,'formId':_0x139543['id'],'formValues':_0x307b31})}],_0x5773f1,_0x24a2ed,'form');}));}),(_0x15ce5c=_0x5262c0[_0x29a743(0x238)]('.u-close-button'))==null||_0x15ce5c['addEventListener'](_0x29a743(0x1de),()=>_0x5b833(this,null,function*(){const _0x5d3742=_0x29a743;_0x5262c0[_0x5d3742(0x204)](),yield _0x4d1e7a(this,_0x1bf8fb,_0x2d06e8)[_0x5d3742(0x227)](this,_0x3c5bf8,[{'eventProperty':'Close\x20Click','value':JSON[_0x5d3742(0x1da)]({'campaignId':_0x5773f1})}],_0x5773f1,_0x24a2ed,_0x5d3742(0x250));})),_0x5262c0[_0x29a743(0x1f9)](_0x29a743(0x1ad))['forEach'](_0x573a25=>{const _0x18705a=_0x29a743;_0x573a25[_0x18705a(0x1a5)](_0x18705a(0x1de),()=>_0x5b833(this,null,function*(){const _0x5da46f=_0x18705a;_0x5262c0[_0x5da46f(0x204)](),yield _0x4d1e7a(this,_0x1bf8fb,_0x2d06e8)['call'](this,_0x3c5bf8,[{'eventProperty':_0x5da46f(0x1c0),'value':JSON[_0x5da46f(0x1da)]({'buttonId':_0x573a25['id'],'campaignId':_0x5773f1})}],_0x5773f1,_0x24a2ed,_0x5da46f(0x1de));}));}),_0x5262c0[_0x29a743(0x1f9)]('.u-popup-container\x20img')[_0x29a743(0x258)](_0x526fbe=>{_0x526fbe['addEventListener']('click',()=>_0x5b833(this,null,function*(){const _0x387a84=_0x36d3;yield _0x4d1e7a(this,_0x1bf8fb,_0x2d06e8)[_0x387a84(0x227)](this,_0x3c5bf8,[{'eventProperty':'Image\x20Click','value':JSON[_0x387a84(0x1da)]({'campaignId':_0x5773f1,'imageClassName':_0x526fbe[_0x387a84(0x25e)],'imageId':_0x526fbe['id']})}],_0x5773f1,_0x24a2ed,_0x387a84(0x1de));}));}),_0x5262c0;},_0x52224c=new WeakSet(),_0x5f4dc6=function(){const _0x2731ef=_0x5cabe1;let _0x3f4739=localStorage[_0x2731ef(0x229)](_0x2731ef(0x234));return _0x3f4739?JSON[_0x2731ef(0x1b1)](_0x3f4739):{};},_0xc5ae2d=new WeakSet(),_0xc9c6b9=function(_0x7c8949,_0x5bddee,_0x579405){const _0x24f28b=_0x5cabe1;if(!Object[_0x24f28b(0x1b7)][_0x24f28b(0x22c)][_0x24f28b(0x227)](_0x7c8949,_0x5bddee))return'Event\x20'+_0x5bddee+_0x24f28b(0x246);if(!_0x579405)return[];let _0x294db0=_0x7c8949[_0x5bddee];if(!(_0x294db0!=null&&_0x294db0[_0x24f28b(0x21d)]))return _0x24f28b(0x1e6)+_0x5bddee+_0x24f28b(0x224);let _0x2fb1cd=_0x579405[_0x24f28b(0x18d)](({eventProperty:_0x48db59})=>!Object[_0x24f28b(0x1b7)][_0x24f28b(0x22c)][_0x24f28b(0x227)](_0x294db0[_0x24f28b(0x21d)],_0x48db59))[_0x24f28b(0x1fb)](({eventProperty:_0x293b67})=>_0x293b67);return _0x2fb1cd[_0x24f28b(0x19f)]>0x0?_0x24f28b(0x1e6)+_0x5bddee+_0x24f28b(0x1f4)+_0x2fb1cd[_0x24f28b(0x1bd)](',\x20')+'.':_0x579405[_0x24f28b(0x1fb)](({eventProperty:_0x344ac9,value:_0x14decc})=>({'eventPropertyId':_0x294db0[_0x24f28b(0x21d)][_0x344ac9]['id'],'value':_0x14decc}));},_0x139fbc=new WeakSet(),_0x3fa963=function(_0x534279,_0x38d40e,_0x273e82){const _0x389619=_0x5cabe1;if(!Object[_0x389619(0x1b7)][_0x389619(0x22c)][_0x389619(0x227)](_0x534279,_0x38d40e))return'Attribute\x20'+_0x38d40e+_0x389619(0x246);if(!_0x273e82)return[];let _0x38fd9e=_0x534279[_0x38d40e];if(!(_0x38fd9e!=null&&_0x38fd9e[_0x389619(0x239)]))return _0x389619(0x21c)+_0x38d40e+_0x389619(0x1cb);let _0x2b6dc3=_0x273e82['filter'](({attributeProperty:_0x3ffabc})=>!Object[_0x389619(0x1b7)][_0x389619(0x22c)][_0x389619(0x227)](_0x38fd9e[_0x389619(0x239)],_0x3ffabc))[_0x389619(0x1fb)](({attributeProperty:_0x572a11})=>_0x572a11);return _0x2b6dc3[_0x389619(0x19f)]>0x0?_0x389619(0x21c)+_0x38d40e+'\x20has\x20invalid\x20attributeProperties:\x20'+_0x2b6dc3['join'](',\x20')+'.':_0x273e82[_0x389619(0x1fb)](({attributeProperty:_0x38b509,value:_0x4da8c1})=>({'attributePropertyId':_0x38fd9e[_0x389619(0x239)][_0x38b509]['id'],'value':_0x4da8c1}));},_0x4c0a72=new WeakSet(),_0x196664=function(_0x25130e){const _0x4b8b49=_0x5cabe1;return{'customerId':localStorage[_0x4b8b49(0x229)](_0x4b8b49(0x201))||'','events':[_0x25130e]};},_0x50ea39=new WeakSet(),_0x4e15e5=function(_0x257aba){return _0x5b833(this,null,function*(){const _0x437ba4=_0x36d3;try{return yield _0x2f4f97['post'](''+_0x181cac+_0x5410cb,_0x257aba);}catch(_0x3b8f26){throw new Error(_0x437ba4(0x1a1));}});},_0x728f2a=new WeakSet(),_0x2306d3=function(_0x26fa56){return _0x26fa56==='Popup';},_0x571d06=new WeakSet(),_0x2dd0ca=function(_0x13d43a){const _0x161f05=_0x5cabe1;let _0x81f444=JSON[_0x161f05(0x1b1)](localStorage[_0x161f05(0x229)](_0x161f05(0x18e))||'{}');_0x81f444[_0x13d43a['campaignId']]=_0x48cc28(_0x556afb({},_0x13d43a),{'initialTime':new Date()[_0x161f05(0x255)](),'page':window[_0x161f05(0x1eb)][_0x161f05(0x1c3)]+window[_0x161f05(0x1eb)][_0x161f05(0x19c)]}),localStorage['setItem']('action',JSON['stringify'](_0x81f444));},_0x3ca068=new WeakSet(),_0x1aa3ce=function(){const _0x5536ef=_0x5cabe1;localStorage['removeItem'](_0x5536ef(0x18e)),localStorage[_0x5536ef(0x1b4)](_0x5536ef(0x234)),localStorage[_0x5536ef(0x1b4)]('attributes'),localStorage[_0x5536ef(0x1b4)](_0x5536ef(0x1f1)),localStorage[_0x5536ef(0x1b4)](_0x5536ef(0x194)),localStorage[_0x5536ef(0x1b4)](_0x5536ef(0x1c5));},_0x2612fd=new WeakSet(),_0x418c32=function(){return _0x5b833(this,null,function*(){const _0x75b1f7=_0x36d3;localStorage[_0x75b1f7(0x229)]('attributes')||(yield _0x4d1e7a(this,_0x4f8168,_0x132d74)['call'](this));});},_0x109252=new WeakSet(),_0x3b438c=function(_0x12fc81){return _0x5b833(this,null,function*(){const _0x53c935=_0x36d3;try{return yield _0x2f4f97[_0x53c935(0x245)](''+_0xafd20d+_0x1a78ea,_0x12fc81);}catch(_0x3178c2){throw new Error(_0x53c935(0x1b3));}});},_0x3bf5ec(_0x108150,_0x3f5e37,void 0x0);var _0xdb27ff=_0x108150,_0xee9d5=_0xdb27ff[_0x5cabe1(0x23f)]();typeof window!='undefined'&&(window[_0x5cabe1(0x1c2)]=_0xee9d5);var _0x54da68=_0xee9d5;})());function _0x1f19(){const _0x1e8355=['/event','mergn','hostname','372267szAnWH','session','Google\x20Chrome','Error\x20posting\x20identity\x20data','values','SESSION_CREATED','UTM_CONTENT','\x20does\x20not\x20have\x20a\x20valid\x20attributeProperty.','Tracking\x20page\x20change','Logging\x20out','Mergn\x20not\x20initialized!','941847thGNcI','init','\x0aMergnError:\x20','/set-attribute','record\x20event','disableSDK','set','indexOf','test','Checking\x20TTL','read\x20from\x20private\x20field','stringify','write\x20to\x20private\x20field','toISOString','Error\x20fetching\x20attribute\x20data','click','access\x20private\x20method','/record-event','Logging\x20in','toLowerCase','isArray','loading','/set-identity','Event\x20','.u-popup-container','defineProperty','40wsyGWM','Viewed\x20Webpage','location','login','Platform','MSIE','Microsoft\x20Edge','Unknown','offlineEvents','ERROR','push','\x20has\x20invalid\x20eventProperties:\x20','Initializing\x20Mergn\x20SDK','#\x20record\x20event','time','error','querySelectorAll','propertyIsEnumerable','map','updateAPIKey','scrollHeight','Safari','fixed','utm_term','customer','DELAY','timeEnd','remove','randomUUID','Attribute\x20Payload:\x0a\x20','initialTime','\x0aUnexpected\x20error:\x20','body','100%','beforeunload','uniqueIdentity','scroll','getOwnPropertyDescriptors','zIndex','Firefox','onLine','Recording\x20event\x20Time','campaignEntryTime','position','99999999','14RlBzoM','info','Error\x20setting\x20identity','MergnError','page','#\x20recordAttribute','Attribute\x20','eventProperty','funcQueue','Recording\x20attribute\x20Time','then','780456xGHosd','gclid','UTM_SOURCE','\x20does\x20not\x20have\x20a\x20valid\x20eventProperty.','5070043KiOxIy','href','call','height','getItem','OriginateFrom:\x20','view','hasOwnProperty','NONE','scrollY','utm_content','URL','IMMEDIATELY','Internet\x20Explorer','json','events','Popup\x20View','UTM_MEDIUM','campaignId','querySelector','attributeProperty','Web\x20Session\x20Started','12iODSkq','Debug\x20level\x20must\x20be\x20according\x20to:\x0a\x20NONE:\x200,\x20INFO:\x201,\x20ERROR:\x202,\x20ALL:\x203','Chrome','2187714uSRPZO','getInstance','name','186BqgGVS','Mobile','next','SCROLL','post','\x20is\x20not\x20valid.','ALL','operating-system','Error\x20fetching\x20event\x20data','ERROR:\x20','debugLevel','top','has','Edg','recordAttribute','close','message','1374745MQjxod','offline','innerHeight','getTime','recordEvent','logout','forEach','Logging\x20out\x20Time','apply','Cannot\x20','get','campaignEntryTimeValue','className','/attribute','attributes','Tracking\x20page\x20change\x20Time','Checking\x20TTL\x20Time','documentElement','filter','action','not\x20initialized','string','isInitialized','SESSION_ID','value','ttl','getOwnPropertySymbols','width','keys','load','application/json','Form\x20Submit','popup_container_','pathname','786JWaIsL','Mozilla\x20Firefox','length','done','Error\x20posting\x20event\x20record','createElement','setItem','/customer','addEventListener','appendChild','#\x20Recording\x20event','style','Mergn\x20SDK\x20Initialization\x20Time','Mergn\x20SDK\x20is\x20disabled!','removeEventListener','GAD_SOURCE','[id^=\x22u_content_button_\x22]','online','data','throw','parse','identity','Error\x20posting\x20attribute\x20record','removeItem','add','pushState','prototype','Logging\x20in\x20Time','Recording\x20event','GCLID','apiKey','INFO','join','Web\x20Session\x20Concluded','groupEnd','Button\x20Click'];_0x1f19=function(){return _0x1e8355;};return _0x1f19();}
1
+ 'use strict';(function(_0x3eebf1,_0x5c983c){const _0x46d32c=_0x5f15,_0x280225=_0x3eebf1();while(!![]){try{const _0x4d1407=parseInt(_0x46d32c(0x23e))/0x1+-parseInt(_0x46d32c(0x1fb))/0x2*(parseInt(_0x46d32c(0x1ff))/0x3)+-parseInt(_0x46d32c(0x1c2))/0x4+-parseInt(_0x46d32c(0x196))/0x5+parseInt(_0x46d32c(0x222))/0x6+parseInt(_0x46d32c(0x20a))/0x7*(-parseInt(_0x46d32c(0x19e))/0x8)+-parseInt(_0x46d32c(0x225))/0x9*(-parseInt(_0x46d32c(0x16e))/0xa);if(_0x4d1407===_0x5c983c)break;else _0x280225['push'](_0x280225['shift']());}catch(_0x47c510){_0x280225['push'](_0x280225['shift']());}}}(_0x1544,0xa93f5));function _0x1544(){const _0x40b3f3=['indexOf','setItem','data','getOwnPropertySymbols','campaignEntryTimeValue','1150LwRiRs','top','location','throw','5655keftPt','push','getInstance','has','Mergn\x20is\x20loading!','setDebugLevel','100%','Recording\x20attribute','Checking\x20TTL\x20Time','filter','name','9166101CXBMNN','events','Mergn\x20SDK\x20is\x20disabled!','application/json','Tracking\x20page\x20change\x20Time','style','body','string','\x20does\x20not\x20have\x20a\x20valid\x20attributeProperty.','campaignEntryTime','call','write\x20to\x20private\x20field','99999999','#\x20record\x20event','action','debugLevel','Popup','Platform','time','Web\x20Session\x20Concluded','login','hasOwnProperty','Error\x20fetching\x20event\x20data','parse','4001286KZHVLG','forEach','Error\x20fetching\x20attribute\x20data','36iqUckd','group','MergnError','Mergn\x20SDK\x20Initialization\x20Time','Recording\x20attribute\x20Time','splice','pushState','Error\x20posting\x20attribute\x20record','getItem','Attribute\x20','/event','Debug\x20level\x20must\x20be\x20according\x20to:\x0a\x20NONE:\x200,\x20INFO:\x201,\x20ERROR:\x202,\x20ALL:\x203','prototype','Logging\x20in','set','loading','innerHTML','SCROLL','serviceWorker','Unknown','randomUUID','campaignCustomerInstanceId','mergn','Safari','UTM_MEDIUM','819309VdLGPC','Logging\x20out\x20Time','add','#\x20recordAttribute','log','Mergn\x20is\x20offline!','#\x20Recording\x20event','customer','message','/set-attribute','attributes','Popup\x20View','Close\x20Click','Checking\x20TTL','timeEnd','6783740duCRpy','then','Web\x20Session\x20Started','done','.u-popup-container','Logging\x20in\x20Time','Error\x20posting\x20identity\x20data','height','hostname','Logging\x20out','map','createElement','form','width','Cannot\x20add\x20the\x20same\x20private\x20member\x20more\x20than\x20once','Recording\x20event\x20Time','ttl','ALL','utm_campaign','\x0aMergnError:\x20','[id^=\x22u_content_form_\x22]','utm_medium','appendChild','\x0aUnexpected\x20error:\x20','record\x20event','eventProperty','removeItem','scrollY','ERROR:\x20','isInitialized','json','IMMEDIATELY','INFO:\x20','close','addEventListener','URL','querySelectorAll','attributeValue','disableSDK','access\x20private\x20method','2333575tQaZIP','register','toISOString','POST','Initializing\x20Mergn\x20SDK','pathname','attributeProperty','undefined','8tXRdQk','Internet\x20Explorer','gad_source','Tracking\x20page\x20change','Error\x20setting\x20identity','values','next','UTM_CONTENT','getTime','innerHeight','userAgent','click','preInitializedEvents','Mobile','online','post','beforeunload','Error\x20posting\x20event\x20record','session','SESSION_ID','utm_source','gclid','div','removeEventListener','value','get','NONE','info','ERROR','Mergn\x20not\x20initialized!','/sw.js','stringify','\x20has\x20invalid\x20eventProperties:\x20','recordAttribute','initialTime','remove','2585664kjgaWN','[id^=\x22u_content_button_\x22]','test','error','apiKey','init','.u-close-button','toLowerCase','\x20has\x20invalid\x20attributeProperties:\x20','search','Web','zIndex','Event\x20','Mozilla\x20Firefox','Edg','Cannot\x20','Chrome','offlineEvents','load','SESSION_CREATED','querySelector','groupEnd','.u-popup-container\x20img','Microsoft\x20Edge','offline','Event\x20Payload','Form\x20Submit','keys','utm_content','campaignId','preInitializedAttributes','scrollHeight','Viewed\x20Webpage','submit','onLine','popup_container_','isArray','os-version','length','eventName','/brand','updateAPIKey','Identity:\x20','Recording\x20event','load\x20event\x20fired','uniqueIdentity','position','propertyIsEnumerable','eventProperties','scroll','page','apply'];_0x1544=function(){return _0x40b3f3;};return _0x1544();}function _0x5f15(_0x12f447,_0x1cbb33){const _0x154418=_0x1544();return _0x5f15=function(_0x5f1514,_0x3dba56){_0x5f1514=_0x5f1514-0x16d;let _0x3d6a6c=_0x154418[_0x5f1514];return _0x3d6a6c;},_0x5f15(_0x12f447,_0x1cbb33);}((()=>{const _0xf1e7a3=_0x5f15;var _0x9b5a76=Object['defineProperty'],_0x153014=Object['defineProperties'],_0x41a8a=Object['getOwnPropertyDescriptors'],_0x3c966b=Object[_0xf1e7a3(0x1f9)],_0x1007fa=Object[_0xf1e7a3(0x231)][_0xf1e7a3(0x21f)],_0x39884b=Object[_0xf1e7a3(0x231)][_0xf1e7a3(0x1f1)],_0x2b99f4=(_0x180509,_0x5777f8,_0x26592c)=>_0x5777f8 in _0x180509?_0x9b5a76(_0x180509,_0x5777f8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26592c}):_0x180509[_0x5777f8]=_0x26592c,_0x572019=(_0x287297,_0xd7f0a8)=>{const _0x44e098=_0xf1e7a3;for(var _0x4b2cbd in _0xd7f0a8||(_0xd7f0a8={}))_0x1007fa[_0x44e098(0x214)](_0xd7f0a8,_0x4b2cbd)&&_0x2b99f4(_0x287297,_0x4b2cbd,_0xd7f0a8[_0x4b2cbd]);if(_0x3c966b){for(var _0x4b2cbd of _0x3c966b(_0xd7f0a8))_0x39884b[_0x44e098(0x214)](_0xd7f0a8,_0x4b2cbd)&&_0x2b99f4(_0x287297,_0x4b2cbd,_0xd7f0a8[_0x4b2cbd]);}return _0x287297;},_0x4c8363=(_0x45f261,_0x53e75d)=>_0x153014(_0x45f261,_0x41a8a(_0x53e75d)),_0x4c5c82=(_0x3a06d9,_0x4a67a5,_0x2e9c0d)=>{const _0x22c0f7=_0xf1e7a3;if(!_0x4a67a5[_0x22c0f7(0x202)](_0x3a06d9))throw TypeError(_0x22c0f7(0x1d1)+_0x2e9c0d);},_0x35c961=(_0x1fa675,_0x100528,_0x3e830c)=>(_0x4c5c82(_0x1fa675,_0x100528,'read\x20from\x20private\x20field'),_0x3e830c?_0x3e830c[_0xf1e7a3(0x214)](_0x1fa675):_0x100528[_0xf1e7a3(0x1b7)](_0x1fa675)),_0x480f62=(_0x471b57,_0x1928c0,_0x3a86cf)=>{const _0x4c3353=_0xf1e7a3;if(_0x1928c0[_0x4c3353(0x202)](_0x471b57))throw TypeError(_0x4c3353(0x17c));_0x1928c0 instanceof WeakSet?_0x1928c0[_0x4c3353(0x240)](_0x471b57):_0x1928c0['set'](_0x471b57,_0x3a86cf);},_0x503919=(_0x37ec61,_0x48063e,_0x26ee6d,_0x4743f7)=>(_0x4c5c82(_0x37ec61,_0x48063e,_0xf1e7a3(0x215)),_0x4743f7?_0x4743f7[_0xf1e7a3(0x214)](_0x37ec61,_0x26ee6d):_0x48063e[_0xf1e7a3(0x233)](_0x37ec61,_0x26ee6d),_0x26ee6d),_0x53e8ee=(_0x43c52f,_0x2ae152,_0x5b143c)=>(_0x4c5c82(_0x43c52f,_0x2ae152,_0xf1e7a3(0x195)),_0x5b143c),_0x595da7=(_0x5d85fe,_0x216489,_0x2251ba)=>new Promise((_0xddaa7,_0x3845e2)=>{const _0x2fd6b2=_0xf1e7a3;var _0x255b56=_0x47fd14=>{const _0x3ca5a8=_0x5f15;try{_0x4e934b(_0x2251ba[_0x3ca5a8(0x1a4)](_0x47fd14));}catch(_0x4e3363){_0x3845e2(_0x4e3363);}},_0x50fc78=_0x1887b0=>{const _0x5c1890=_0x5f15;try{_0x4e934b(_0x2251ba[_0x5c1890(0x1fe)](_0x1887b0));}catch(_0x2c9e56){_0x3845e2(_0x2c9e56);}},_0x4e934b=_0x287c47=>_0x287c47[_0x2fd6b2(0x171)]?_0xddaa7(_0x287c47[_0x2fd6b2(0x1b6)]):Promise['resolve'](_0x287c47[_0x2fd6b2(0x1b6)])[_0x2fd6b2(0x16f)](_0x255b56,_0x50fc78);_0x4e934b((_0x2251ba=_0x2251ba[_0x2fd6b2(0x1f5)](_0x5d85fe,_0x216489))['next']());}),_0x24e5cb=(_0x415b2c=>(_0x415b2c['UTM_SOURCE']=_0xf1e7a3(0x1b2),_0x415b2c[_0xf1e7a3(0x23d)]=_0xf1e7a3(0x183),_0x415b2c['UTM_CAMPAIGN']=_0xf1e7a3(0x180),_0x415b2c['UTM_TERM']='utm_term',_0x415b2c[_0xf1e7a3(0x1a5)]=_0xf1e7a3(0x1de),_0x415b2c['GAD_SOURCE']=_0xf1e7a3(0x1a0),_0x415b2c['GCLID']=_0xf1e7a3(0x1b3),_0x415b2c))(_0x24e5cb||{}),_0x4b1a82=new Set(Object[_0xf1e7a3(0x1a3)](_0x24e5cb)),_0x5ddf00='Popup\x20Action',_0x356461='https://u23z4zsda8.execute-api.ap-southeast-1.amazonaws.com/Prod/sdk-management/api',_0x3aee37='/attribute',_0x422cbf=_0xf1e7a3(0x247),_0x45b92f=_0xf1e7a3(0x22f),_0x1e06a0='/record-event',_0x3f576e='/customer',_0x2cfc4f='/set-identity',_0x545a10,_0xd24f63=class _0x3f84f3{constructor(){}static[_0xf1e7a3(0x201)](){return _0x35c961(_0x3f84f3,_0x545a10)||_0x503919(_0x3f84f3,_0x545a10,new _0x3f84f3()),_0x35c961(_0x3f84f3,_0x545a10);}['updateAPIKey'](_0x3a1a13){const _0x403d28=_0xf1e7a3;_0x3f84f3[_0x403d28(0x1c6)]=_0x3a1a13;}[_0xf1e7a3(0x1b7)](_0x2e3988){return _0x595da7(this,null,function*(){const _0x29a222=_0x5f15;return(yield fetch(_0x356461+_0x2e3988,{'headers':{'Authorization':_0x3f84f3[_0x29a222(0x1c6)],'Content-Type':_0x29a222(0x20d)}}))[_0x29a222(0x18c)]();});}[_0xf1e7a3(0x1ad)](_0xe5536b,_0x30b31){return _0x595da7(this,null,function*(){const _0x133553=_0x5f15;return(yield fetch(_0x356461+_0xe5536b,{'body':JSON['stringify'](_0x30b31||{}),'headers':{'Authorization':_0x3f84f3['apiKey'],'Content-Type':'application/json'},'method':_0x133553(0x199)}))[_0x133553(0x18c)]();});}};_0x545a10=new WeakMap(),_0x480f62(_0xd24f63,_0x545a10,void 0x0);var _0x53ae52=_0xd24f63,_0x4a8423=_0x53ae52[_0xf1e7a3(0x201)](),_0x483c48=class extends Error{constructor(_0x51385e){const _0x3699ce=_0xf1e7a3;super(_0x51385e),this['name']=_0x3699ce(0x227);}};_0x483c48[_0xf1e7a3(0x194)]=!0x1,_0x483c48[_0xf1e7a3(0x1da)]=!navigator[_0xf1e7a3(0x1e4)],_0x483c48[_0xf1e7a3(0x219)]=0x0,_0x483c48[_0xf1e7a3(0x18b)]=!0x1,_0x483c48[_0xf1e7a3(0x234)]=!0x1;var _0x5be7e3=(_0x2d7f09,_0xb08b0d)=>{const _0x4f5af9=_0xf1e7a3;_0xb08b0d instanceof _0x483c48?_0x33e85c(0x2,'OriginateFrom:\x20'+_0x2d7f09+_0x4f5af9(0x181)+_0xb08b0d[_0x4f5af9(0x246)]):_0xb08b0d instanceof Error?_0x33e85c(0x2,'OriginateFrom:\x20'+_0x2d7f09+_0x4f5af9(0x185)+_0xb08b0d['message']):_0x33e85c(0x2,'OriginateFrom:\x20'+_0x2d7f09+_0x4f5af9(0x185)+String(_0xb08b0d));},_0x5afad7=(_0x3aa7ec,_0x321dad,_0x57e922)=>_0x595da7(void 0x0,null,function*(){const _0x1dd808=_0xf1e7a3;try{if(_0x483c48[_0x1dd808(0x194)])throw new _0x483c48(_0x1dd808(0x20c));if(_0x3aa7ec!==_0x1dd808(0x186)&&_0x483c48[_0x1dd808(0x1da)])throw new _0x483c48(_0x1dd808(0x243));if(_0x3aa7ec!==_0x1dd808(0x1c7)&&_0x3aa7ec!==_0x1dd808(0x186)&&_0x3aa7ec!==_0x1dd808(0x1bf)&&!_0x483c48['isInitialized'])throw new _0x483c48(_0x1dd808(0x1bb));if(_0x3aa7ec!=='login'&&_0x483c48['loading'])throw new _0x483c48(_0x1dd808(0x203));return yield _0x321dad();}catch(_0x3e265d){return _0x57e922?_0x57e922(_0x3e265d):(_0x483c48[_0x1dd808(0x219)]===0x2||_0x483c48[_0x1dd808(0x219)]===0x3)&&_0x5be7e3(_0x3aa7ec,_0x3e265d),null;}}),_0x2f9d37=(_0x5e48fc=>(_0x5e48fc[_0x5e48fc[_0xf1e7a3(0x1b8)]=0x0]=_0xf1e7a3(0x1b8),_0x5e48fc[_0x5e48fc['INFO']=0x1]='INFO',_0x5e48fc[_0x5e48fc[_0xf1e7a3(0x1ba)]=0x2]='ERROR',_0x5e48fc[_0x5e48fc[_0xf1e7a3(0x17f)]=0x3]=_0xf1e7a3(0x17f),_0x5e48fc))(_0x2f9d37||{}),_0x33e85c=(_0x23d6ab,_0x32f1a8)=>{const _0x2558b9=_0xf1e7a3;_0x483c48[_0x2558b9(0x219)]!==0x0&&_0x483c48[_0x2558b9(0x219)]<=0x3&&(_0x23d6ab===0x1?console[_0x2558b9(0x1b9)](_0x2558b9(0x18e)+new Date()[_0x2558b9(0x198)](),_0x32f1a8):_0x23d6ab===0x2&&console[_0x2558b9(0x1c5)](_0x2558b9(0x18a)+new Date()['toISOString'](),_0x32f1a8));},_0x51f009=(_0x537e93,_0xfd2064)=>{const _0x5c8467=_0xf1e7a3;_0x483c48[_0x5c8467(0x219)]!==0x0&&(_0xfd2064?console[_0x5c8467(0x21c)](_0x537e93):console[_0x5c8467(0x16d)](_0x537e93));},_0x47ba1b=(_0x3a0e4d,_0x5756a7)=>{const _0x2f952a=_0xf1e7a3;_0x483c48[_0x2f952a(0x219)]!==0x0&&(_0x5756a7?console[_0x2f952a(0x226)](_0x3a0e4d):console[_0x2f952a(0x1d7)]());},_0x59605c,_0x35351c,_0x3c4e0c,_0x557f15,_0x4d4cb8,_0x533ea3,_0x262e7c,_0x53fdd9,_0x5511d7,_0x52766c,_0x4e81e1,_0x1e383b,_0x36d982,_0x3e919b,_0x25ddea,_0x231e04,_0x3c8af6,_0x29619b,_0x1e5b3e,_0x45acff,_0x45ad7c,_0x552be8,_0x59216c,_0x1650a2,_0x38a84a,_0x215b33,_0x3555fb,_0x16dd09,_0x4ed4a5,_0x3abe1c,_0x4feaa3,_0x51b6aa,_0x37a5ab,_0x17b005,_0x2fb2a9,_0xb1e438,_0x5bdce5,_0x4e2834,_0x30e49b,_0xa1821b,_0x1e7dac,_0x30170c,_0x19427a,_0x467941,_0x19bd4d,_0xe7677f,_0x10b5e2,_0x573e85,_0x2706b1,_0x552fd7,_0x13491b,_0x201d55,_0x100374,_0x26037d,_0x6f0795,_0x45ebcd,_0x16e2ff,_0x24eaca,_0x2d333b,_0x4a109b,_0x4aa72,_0x10faa8,_0x5b4788,_0x2fbda5,_0x3b3517,_0x1640b0,_0x4cee61,_0x5a1152,_0x44378a,_0x4476a8,_0x137aad,_0x311362,_0x5d80fe,_0xb52ce2,_0x2a9b10,_0x315179,_0x3c171d=class _0x2ae43a{constructor(){_0x480f62(this,_0x533ea3),_0x480f62(this,_0x53fdd9),_0x480f62(this,_0x52766c),_0x480f62(this,_0x1e383b),_0x480f62(this,_0x3e919b),_0x480f62(this,_0x231e04),_0x480f62(this,_0x29619b),_0x480f62(this,_0x45acff),_0x480f62(this,_0x552be8),_0x480f62(this,_0x1650a2),_0x480f62(this,_0x4ed4a5),_0x480f62(this,_0x4feaa3),_0x480f62(this,_0x37a5ab),_0x480f62(this,_0x2fb2a9),_0x480f62(this,_0x5bdce5),_0x480f62(this,_0x30e49b),_0x480f62(this,_0x1e7dac),_0x480f62(this,_0x19427a),_0x480f62(this,_0x19bd4d),_0x480f62(this,_0x10b5e2),_0x480f62(this,_0x2706b1),_0x480f62(this,_0x13491b),_0x480f62(this,_0x100374),_0x480f62(this,_0x6f0795),_0x480f62(this,_0x16e2ff),_0x480f62(this,_0x2d333b),_0x480f62(this,_0x4aa72),_0x480f62(this,_0x5b4788),_0x480f62(this,_0x3b3517),_0x480f62(this,_0x4cee61),_0x480f62(this,_0x44378a),_0x480f62(this,_0x137aad),_0x480f62(this,_0x5d80fe),_0x480f62(this,_0x2a9b10),_0x480f62(this,_0x35351c,void 0x0),_0x480f62(this,_0x3c4e0c,void 0x0),_0x480f62(this,_0x557f15,void 0x0),_0x480f62(this,_0x4d4cb8,null),_0x480f62(this,_0x215b33,()=>{const _0x5b2718=_0x5f15;let _0x25fdeb=()=>{const _0x56605d=_0x5f15;let _0x1526b1=JSON[_0x56605d(0x221)](localStorage[_0x56605d(0x22d)](_0x56605d(0x218))||'{}');Object[_0x56605d(0x1dd)](_0x1526b1)['forEach'](_0x56804f=>{const _0x53ee66=_0x56605d;_0x1526b1[_0x56804f][_0x53ee66(0x1c0)]=new Date()['getTime'](),_0x1526b1[_0x56804f]['page']=window[_0x53ee66(0x1fd)][_0x53ee66(0x176)]+window[_0x53ee66(0x1fd)][_0x53ee66(0x19b)];}),localStorage['setItem']('action',JSON[_0x56605d(0x1bd)](_0x1526b1));};_0x25fdeb(),window[_0x5b2718(0x190)](_0x5b2718(0x1ae),_0x25fdeb);}),_0x480f62(this,_0x3555fb,_0x47b15a=>{const _0x2a63a9=_0x5f15;let _0x1d86cb=JSON[_0x2a63a9(0x221)](localStorage[_0x2a63a9(0x22d)](_0x2a63a9(0x218))||'{}');_0x1d86cb[_0x47b15a]&&delete _0x1d86cb[_0x47b15a],localStorage[_0x2a63a9(0x1f7)](_0x2a63a9(0x218),JSON[_0x2a63a9(0x1bd)](_0x1d86cb));}),_0x480f62(this,_0x16dd09,()=>{const _0x2a920f=_0x5f15;let _0x5b6dcb=JSON[_0x2a920f(0x221)](localStorage['getItem'](_0x2a920f(0x218))||'{}');Object[_0x2a920f(0x1dd)](_0x5b6dcb)[_0x2a920f(0x223)](_0x50b4a1=>{const _0x2ebe05=_0x2a920f;_0x5b6dcb[_0x50b4a1]['message'][_0x2ebe05(0x209)]===_0x2ebe05(0x21a)&&_0x53e8ee(this,_0x19bd4d,_0xe7677f)[_0x2ebe05(0x214)](this,_0x5b6dcb[_0x50b4a1]['campaignId']);});});}static['getInstance'](){return _0x35c961(_0x2ae43a,_0x59605c)||_0x503919(_0x2ae43a,_0x59605c,new _0x2ae43a()),_0x35c961(_0x2ae43a,_0x59605c);}[_0xf1e7a3(0x1c7)](_0x4708d7){const _0x4b9345=_0xf1e7a3;_0x5afad7(_0x4b9345(0x1c7),()=>_0x595da7(this,null,function*(){const _0x53f60d=_0x4b9345;_0x33e85c(0x1,_0x53f60d(0x19a)),_0x47ba1b(_0x53f60d(0x19a),!0x0),_0x51f009('Mergn\x20SDK\x20Initialization\x20Time',!0x0),_0x53e8ee(this,_0x45acff,_0x45ad7c)[_0x53f60d(0x214)](this,_0x4708d7),yield _0x53e8ee(this,_0x231e04,_0x3c8af6)[_0x53f60d(0x214)](this),_0x483c48[_0x53f60d(0x18b)]=!0x0;let _0x5a48fc=JSON[_0x53f60d(0x221)](localStorage[_0x53f60d(0x22d)](_0x53f60d(0x1aa))||'[]');Array[_0x53f60d(0x1e6)](_0x5a48fc)&&_0x5a48fc['forEach']((_0x17d119,_0x23aaac)=>_0x595da7(this,null,function*(){const _0xa67a67=_0x53f60d;yield _0x53e8ee(this,_0x52766c,_0x4e81e1)[_0xa67a67(0x214)](this,_0x17d119[_0xa67a67(0x1e9)],_0x17d119[_0xa67a67(0x1f2)]),_0x5a48fc[_0xa67a67(0x22a)](_0x23aaac,0x1),localStorage[_0xa67a67(0x1f7)](_0xa67a67(0x1aa),JSON[_0xa67a67(0x1bd)](_0x5a48fc));}));let _0x5ab662=JSON[_0x53f60d(0x221)](localStorage[_0x53f60d(0x22d)](_0x53f60d(0x1e0))||'[]');Array['isArray'](_0x5ab662)&&_0x5ab662['forEach']((_0x502855,_0x16f67c)=>_0x595da7(this,null,function*(){const _0x4abdba=_0x53f60d;yield _0x53e8ee(this,_0x533ea3,_0x262e7c)['call'](this,_0x502855['attributeName'],_0x502855[_0x4abdba(0x193)]),_0x5ab662[_0x4abdba(0x22a)](_0x16f67c,0x1),localStorage[_0x4abdba(0x1f7)]('preInitializedAttributes',JSON[_0x4abdba(0x1bd)](_0x5ab662));})),addEventListener(_0x53f60d(0x1d4),()=>_0x595da7(this,null,function*(){const _0x3d79fa=_0x53f60d;console[_0x3d79fa(0x242)](_0x3d79fa(0x1ee)),_0x3d79fa(0x237)in navigator&&(yield navigator[_0x3d79fa(0x237)][_0x3d79fa(0x197)](_0x3d79fa(0x1bc)));})),setInterval(()=>_0x595da7(this,null,function*(){yield _0x53e8ee(this,_0x231e04,_0x3c8af6)['call'](this);}),0x493e0),yield _0x53e8ee(this,_0x53fdd9,_0x5511d7)['call'](this),window[_0x53f60d(0x190)](_0x53f60d(0x1ac),()=>_0x595da7(this,null,function*(){const _0x48338a=_0x53f60d;_0x483c48['offline']=!0x1;let _0x1a7fd=JSON[_0x48338a(0x221)](localStorage[_0x48338a(0x22d)](_0x48338a(0x1d3))||'[]');Array[_0x48338a(0x1e6)](_0x1a7fd)&&(yield _0x53e8ee(this,_0x3b3517,_0x1640b0)['call'](this,{'customerId':localStorage['getItem'](_0x48338a(0x245))||'','events':_0x1a7fd}),localStorage[_0x48338a(0x188)](_0x48338a(0x1d3))),_0x53e8ee(this,_0x53fdd9,_0x5511d7)['call'](this),_0x53e8ee(this,_0x1e7dac,_0x30170c)['call'](this);})),window[_0x53f60d(0x190)](_0x53f60d(0x1da),()=>{_0x483c48['offline']=!0x0;}),window[_0x53f60d(0x190)]('load',()=>{const _0x4ef380=_0x53f60d;_0x35c961(this,_0x16dd09)[_0x4ef380(0x214)](this);});let _0x599332=history[_0x53f60d(0x22b)];history[_0x53f60d(0x22b)]=(..._0x3f1cd7)=>{_0x599332['apply'](history,_0x3f1cd7),_0x53e8ee(this,_0x29619b,_0x1e5b3e)['call'](this);},_0x53e8ee(this,_0x29619b,_0x1e5b3e)[_0x53f60d(0x214)](this),_0x51f009(_0x53f60d(0x228),!0x1),_0x47ba1b(_0x53f60d(0x19a),!0x1);}));}[_0xf1e7a3(0x204)](_0x5153c0){const _0x4485ae=_0xf1e7a3;if(!(_0x5153c0 in _0x2f9d37)){console[_0x4485ae(0x1c5)](_0x4485ae(0x230));return;}_0x483c48[_0x4485ae(0x219)]=_0x5153c0;}[_0xf1e7a3(0x1bf)](_0x405805,_0x523180){const _0x4c5a54=_0xf1e7a3;_0x5afad7(_0x4c5a54(0x1bf),()=>_0x595da7(this,null,function*(){const _0x5cc416=_0x4c5a54;if(_0x483c48[_0x5cc416(0x18b)])yield _0x53e8ee(this,_0x533ea3,_0x262e7c)[_0x5cc416(0x214)](this,_0x405805,_0x523180,void 0x0);else{let _0x164bcf=JSON[_0x5cc416(0x221)](localStorage[_0x5cc416(0x22d)](_0x5cc416(0x1e0))||'[]');_0x164bcf['push']({'attributeName':_0x405805,'attributeValue':_0x523180}),localStorage[_0x5cc416(0x1f7)](_0x5cc416(0x1e0),JSON[_0x5cc416(0x1bd)](_0x164bcf));}}));}[_0xf1e7a3(0x21e)](_0x17aea9){const _0x5f006a=_0xf1e7a3;_0x5afad7(_0x5f006a(0x21e),()=>_0x595da7(this,null,function*(){const _0x39806f=_0x5f006a;_0x33e85c(0x1,_0x39806f(0x232)),_0x47ba1b(_0x39806f(0x232),!0x0),_0x51f009(_0x39806f(0x173),!0x0),_0x33e85c(0x1,_0x39806f(0x1ec)+_0x17aea9),_0x483c48['loading']=!0x0,yield _0x53e8ee(this,_0x30e49b,_0xa1821b)[_0x39806f(0x214)](this,_0x17aea9),_0x483c48[_0x39806f(0x234)]=!0x1,_0x51f009('Logging\x20in\x20Time',!0x1),_0x47ba1b(_0x39806f(0x232),!0x1);}));}['logout'](){_0x5afad7('logout',()=>_0x595da7(this,null,function*(){const _0x224981=_0x5f15;_0x33e85c(0x1,'Logging\x20out'),_0x47ba1b(_0x224981(0x177),!0x0),_0x51f009(_0x224981(0x23f),!0x0),_0x53e8ee(this,_0x137aad,_0x311362)[_0x224981(0x214)](this),_0x51f009('Logging\x20out\x20Time',!0x1),_0x47ba1b(_0x224981(0x177),!0x1);}));}['recordEvent'](_0xdf1bbe,_0x141ebd){setTimeout(()=>{const _0xdee3bc=_0x5f15;_0x5afad7(_0xdee3bc(0x186),()=>_0x595da7(this,null,function*(){const _0x457107=_0xdee3bc;if(_0x33e85c(0x1,_0x457107(0x1ed)),_0x47ba1b(_0x457107(0x1ed),!0x0),_0x51f009(_0x457107(0x17d),!0x0),_0x33e85c(0x1,'Event\x20Payload:\x0a\x20'+{'eventName':_0xdf1bbe,'eventProperties':_0x141ebd}),_0x483c48[_0x457107(0x18b)])_0x53e8ee(this,_0x52766c,_0x4e81e1)[_0x457107(0x214)](this,_0xdf1bbe,_0x141ebd);else{let _0x7c3ee=JSON['parse'](localStorage[_0x457107(0x22d)](_0x457107(0x1aa))||'[]');_0x7c3ee[_0x457107(0x200)]({'eventName':_0xdf1bbe,'eventProperties':_0x141ebd}),localStorage['setItem'](_0x457107(0x1aa),JSON[_0x457107(0x1bd)](_0x7c3ee));}_0x51f009(_0x457107(0x17d),!0x1),_0x47ba1b(_0x457107(0x1ed),!0x1);}));});}};_0x59605c=new WeakMap(),_0x35351c=new WeakMap(),_0x3c4e0c=new WeakMap(),_0x557f15=new WeakMap(),_0x4d4cb8=new WeakMap(),_0x533ea3=new WeakSet(),_0x262e7c=function(_0x7c3deb,_0x500142,_0x5aee88){return _0x595da7(this,null,function*(){const _0x2a64d4=_0x5f15;yield _0x5afad7(_0x2a64d4(0x241),()=>_0x595da7(this,null,function*(){const _0x4b47e1=_0x2a64d4;_0x33e85c(0x1,_0x4b47e1(0x206)),_0x47ba1b(_0x4b47e1(0x206),!0x0),_0x51f009(_0x4b47e1(0x229),!0x0),_0x33e85c(0x1,'Attribute\x20Payload:\x0a\x20'+{'attributeName':_0x7c3deb,'attributeProperties':_0x5aee88,'attributeValue':_0x500142}+')}'),yield _0x53e8ee(this,_0x53fdd9,_0x5511d7)['call'](this),yield _0x53e8ee(this,_0x5d80fe,_0xb52ce2)[_0x4b47e1(0x214)](this);let _0x4f6260=JSON[_0x4b47e1(0x221)](localStorage[_0x4b47e1(0x22d)]('attributes')||'{}'),_0x24c2f4=_0x5aee88?_0x53e8ee(this,_0x4aa72,_0x10faa8)[_0x4b47e1(0x214)](this,_0x4f6260,_0x7c3deb,_0x5aee88):_0x53e8ee(this,_0x4aa72,_0x10faa8)[_0x4b47e1(0x214)](this,_0x4f6260,_0x7c3deb);if(typeof _0x24c2f4==_0x4b47e1(0x211)){_0x33e85c(0x2,_0x24c2f4);return;}_0x53e8ee(this,_0x1e7dac,_0x30170c)[_0x4b47e1(0x214)](this);let {id:_0x3e1e4c}=_0x4f6260[_0x7c3deb],_0x40b54f={'attributeId':_0x3e1e4c,'attributeProperties':_0x24c2f4,'customerId':localStorage[_0x4b47e1(0x22d)](_0x4b47e1(0x245))||'','value':_0x500142};yield _0x53e8ee(this,_0x2a9b10,_0x315179)[_0x4b47e1(0x214)](this,_0x40b54f),_0x51f009(_0x4b47e1(0x229),!0x1),_0x47ba1b('Recording\x20attribute',!0x1);}));});},_0x53fdd9=new WeakSet(),_0x5511d7=function(){return _0x595da7(this,null,function*(){const _0x4042e3=_0x5f15;_0x33e85c(0x1,_0x4042e3(0x24b)),_0x47ba1b(_0x4042e3(0x24b),!0x0),_0x51f009(_0x4042e3(0x207),!0x0);let _0x4060b7=localStorage[_0x4042e3(0x22d)]('ttl'),_0xa0d3b1=!0x1;if(_0x4060b7){if(_0xa0d3b1=new Date()['getTime']()-parseInt(_0x4060b7,0xa)>0x124f80,_0xa0d3b1){let _0x274918=localStorage['getItem'](_0x4042e3(0x1b0)),_0x17fc2d=localStorage[_0x4042e3(0x22d)](_0x4042e3(0x17e));_0x274918&&_0x17fc2d&&_0x53e8ee(this,_0x52766c,_0x4e81e1)[_0x4042e3(0x214)](this,_0x4042e3(0x21d),[{'eventProperty':_0x4042e3(0x1b1),'value':localStorage[_0x4042e3(0x22d)](_0x4042e3(0x1b0))},{'eventProperty':_0x4042e3(0x1d5),'value':new Date(parseInt(_0x17fc2d,0xa))['toISOString']()}]),_0x53e8ee(this,_0x137aad,_0x311362)[_0x4042e3(0x214)](this),localStorage[_0x4042e3(0x1f7)]('ttl',''+new Date()[_0x4042e3(0x1a6)]());}}else localStorage[_0x4042e3(0x1f7)]('ttl',''+new Date()[_0x4042e3(0x1a6)]());(!_0x4060b7||_0xa0d3b1||_0x53e8ee(this,_0x552be8,_0x59216c)['call'](this))&&(_0x53e8ee(this,_0x4ed4a5,_0x3abe1c)[_0x4042e3(0x214)](this),yield _0x53e8ee(this,_0x30e49b,_0xa1821b)[_0x4042e3(0x214)](this),yield _0x53e8ee(this,_0x1650a2,_0x38a84a)[_0x4042e3(0x214)](this)),_0x51f009(_0x4042e3(0x207),!0x1),_0x47ba1b(_0x4042e3(0x24b),!0x1);});},_0x52766c=new WeakSet(),_0x4e81e1=function(_0x54072a,_0x191da4,_0x1ad9fb,_0x199b1f,_0x505147){return _0x595da7(this,null,function*(){const _0x184fab=_0x5f15;yield _0x5afad7(_0x184fab(0x217),()=>_0x595da7(this,null,function*(){const _0x1b2d9f=_0x184fab;var _0x526b3c;_0x33e85c(0x1,_0x1b2d9f(0x244)),_0x47ba1b(_0x1b2d9f(0x1ed),!0x0),_0x51f009('Recording\x20event\x20Time',!0x0),_0x33e85c(0x1,_0x1b2d9f(0x1db)),_0x33e85c(0x1,{'campaignCustomerInstanceId':_0x199b1f,'eventName':_0x54072a,'eventProperties':_0x191da4,'name':_0x505147}),_0x54072a!==_0x1b2d9f(0x21d)&&(yield _0x53e8ee(this,_0x53fdd9,_0x5511d7)['call'](this));let _0x12dce9=[];_0x191da4&&_0x12dce9['push'](..._0x191da4),_0x12dce9[_0x1b2d9f(0x200)]({'eventProperty':_0x1b2d9f(0x21b),'value':_0x35c961(this,_0x35351c)}),_0x12dce9[_0x1b2d9f(0x200)]({'eventProperty':'operating-system','value':_0x35c961(this,_0x557f15)}),_0x12dce9[_0x1b2d9f(0x200)]({'eventProperty':_0x1b2d9f(0x1e7),'value':_0x35c961(this,_0x3c4e0c)});let _0x422f40=_0x53e8ee(this,_0x16e2ff,_0x24eaca)[_0x1b2d9f(0x214)](this),_0x40c253=_0x53e8ee(this,_0x2d333b,_0x4a109b)['call'](this,_0x422f40,_0x54072a,_0x12dce9);if(typeof _0x40c253==_0x1b2d9f(0x211)){_0x33e85c(0x2,_0x40c253);return;}_0x53e8ee(this,_0x1e7dac,_0x30170c)['call'](this);let {id:_0x12d145}=_0x422f40[_0x54072a],_0x284247=_0x53e8ee(this,_0x5b4788,_0x2fbda5)['call'](this,_0x572019(_0x4c8363(_0x572019(_0x572019({},_0x199b1f?{'campaignCustomerInstanceId':_0x199b1f}:{}),_0x1ad9fb?{'campaignId':_0x1ad9fb}:{}),{'eventId':_0x12d145,'eventProperties':_0x40c253,'sessionId':localStorage['getItem'](_0x1b2d9f(0x1b0))||''}),_0x505147?{'name':_0x505147}:{}));if(_0x483c48['offline']){let _0x10d2b1=JSON['parse'](localStorage[_0x1b2d9f(0x22d)](_0x1b2d9f(0x1d3))||'[]');_0x10d2b1['length']<=0x32&&(_0x10d2b1['push'](..._0x284247[_0x1b2d9f(0x20b)]),localStorage['setItem']('offlineEvents',JSON[_0x1b2d9f(0x1bd)](_0x10d2b1)));return;}let _0x257b4e=yield _0x53e8ee(this,_0x3b3517,_0x1640b0)['call'](this,_0x284247);(_0x526b3c=_0x257b4e==null?void 0x0:_0x257b4e[_0x1b2d9f(0x1f8)])==null||_0x526b3c[_0x1b2d9f(0x223)](_0x5d9457=>{const _0x5ee82e=_0x1b2d9f;_0x53e8ee(this,_0x4cee61,_0x5a1152)[_0x5ee82e(0x214)](this,_0x5d9457[_0x5ee82e(0x246)][_0x5ee82e(0x209)])&&(_0x53e8ee(this,_0x44378a,_0x4476a8)[_0x5ee82e(0x214)](this,_0x5d9457),_0x35c961(this,_0x215b33)[_0x5ee82e(0x214)](this),_0x53e8ee(this,_0x19bd4d,_0xe7677f)[_0x5ee82e(0x214)](this,_0x5d9457[_0x5ee82e(0x1df)]));}),_0x51f009('Recording\x20event\x20Time',!0x1),_0x47ba1b(_0x1b2d9f(0x1ed),!0x1);}));});},_0x1e383b=new WeakSet(),_0x36d982=function(){const _0x431cf9=_0xf1e7a3;let _0xa274a3=navigator['userAgent'][_0x431cf9(0x1c9)]();return/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i[_0x431cf9(0x1c4)](_0xa274a3)?_0x431cf9(0x1ab):/windows|macintosh|linux|x11/i[_0x431cf9(0x1c4)](_0xa274a3)?_0x431cf9(0x1cc):_0x431cf9(0x238);},_0x3e919b=new WeakSet(),_0x25ddea=function(){const _0x314db2=_0xf1e7a3;let _0x556c51=navigator[_0x314db2(0x1a8)],_0x2da95f;return _0x556c51[_0x314db2(0x1f6)](_0x314db2(0x1d2))>-0x1?_0x2da95f='Google\x20Chrome':_0x556c51[_0x314db2(0x1f6)](_0x314db2(0x23c))>-0x1?_0x2da95f=_0x314db2(0x23c):_0x556c51['indexOf']('Firefox')>-0x1?_0x2da95f=_0x314db2(0x1cf):_0x556c51[_0x314db2(0x1f6)](_0x314db2(0x1d0))>-0x1?_0x2da95f=_0x314db2(0x1d9):_0x556c51[_0x314db2(0x1f6)]('MSIE')>-0x1?_0x2da95f=_0x314db2(0x19f):_0x2da95f=_0x314db2(0x238),_0x2da95f;},_0x231e04=new WeakSet(),_0x3c8af6=function(){return _0x595da7(this,null,function*(){const _0x223336=_0x5f15;try{yield _0x4a8423[_0x223336(0x1b7)](_0x223336(0x1ea));}catch(_0x700c2b){throw _0x483c48['disableSDK']=!0x0,_0x700c2b['message'];}});},_0x29619b=new WeakSet(),_0x1e5b3e=function(){return _0x595da7(this,null,function*(){const _0x46434d=_0x5f15;var _0x5b22c4;_0x33e85c(0x1,'Tracking\x20page\x20change'),_0x47ba1b(_0x46434d(0x1a1),!0x0),_0x51f009(_0x46434d(0x20e),!0x0);let _0x1dd958=(_0x5b22c4=window==null?void 0x0:window[_0x46434d(0x1fd)])==null?void 0x0:_0x5b22c4['href'];if(_0x1dd958!==_0x35c961(this,_0x4d4cb8)){_0x503919(this,_0x4d4cb8,_0x1dd958);let _0x311d8f=[];new URLSearchParams(new URL(window['location']['href'])[_0x46434d(0x1cb)])[_0x46434d(0x223)]((_0x184238,_0x5bbabc)=>_0x595da7(this,null,function*(){const _0x5f140e=_0x46434d;_0x4b1a82[_0x5f140e(0x202)](_0x5bbabc)&&_0x311d8f[_0x5f140e(0x200)]({'eventProperty':_0x5bbabc,'value':_0x184238});})),yield _0x53e8ee(this,_0x52766c,_0x4e81e1)[_0x46434d(0x214)](this,_0x46434d(0x1e2),[{'eventProperty':_0x46434d(0x191),'value':window[_0x46434d(0x1fd)][_0x46434d(0x19b)]},..._0x311d8f]);}_0x51f009(_0x46434d(0x20e),!0x1),_0x47ba1b('Tracking\x20page\x20change',!0x1);});},_0x45acff=new WeakSet(),_0x45ad7c=function(_0xd64d74){const _0x1b6631=_0xf1e7a3;_0x4a8423[_0x1b6631(0x1eb)](_0xd64d74),_0x503919(this,_0x35351c,_0x53e8ee(this,_0x1e383b,_0x36d982)[_0x1b6631(0x214)](this)),_0x503919(this,_0x3c4e0c,_0x53e8ee(this,_0x3e919b,_0x25ddea)['call'](this)),_0x503919(this,_0x557f15,navigator[_0x1b6631(0x1a8)]);},_0x552be8=new WeakSet(),_0x59216c=function(){const _0x519e7f=_0xf1e7a3;return!localStorage[_0x519e7f(0x22d)](_0x519e7f(0x20b))||!localStorage['getItem'](_0x519e7f(0x245))||!localStorage[_0x519e7f(0x22d)](_0x519e7f(0x248))||!localStorage[_0x519e7f(0x22d)](_0x519e7f(0x1ef))||!localStorage[_0x519e7f(0x22d)](_0x519e7f(0x1b0))||!localStorage[_0x519e7f(0x22d)]('customer');},_0x1650a2=new WeakSet(),_0x38a84a=function(){return _0x595da7(this,null,function*(){const _0x369c16=_0x5f15;yield _0x53e8ee(this,_0x4feaa3,_0x51b6aa)['call'](this),yield _0x53e8ee(this,_0x2fb2a9,_0xb1e438)[_0x369c16(0x214)](this),yield _0x53e8ee(this,_0x30e49b,_0xa1821b)[_0x369c16(0x214)](this);});},_0x215b33=new WeakMap(),_0x3555fb=new WeakMap(),_0x16dd09=new WeakMap(),_0x4ed4a5=new WeakSet(),_0x3abe1c=function(){const _0x33f38e=_0xf1e7a3;let _0x40330a=localStorage[_0x33f38e(0x22d)]('uniqueIdentity');return _0x40330a||(_0x40330a=crypto[_0x33f38e(0x239)](),localStorage[_0x33f38e(0x1f7)](_0x33f38e(0x1ef),_0x40330a)),_0x40330a;},_0x4feaa3=new WeakSet(),_0x51b6aa=function(){return _0x595da7(this,null,function*(){const _0x50b340=_0x5f15;if(!localStorage['getItem'](_0x50b340(0x20b))){let _0x4386cb=(yield _0x53e8ee(this,_0x37a5ab,_0x17b005)['call'](this))[_0x50b340(0x1f8)];_0x4386cb&&localStorage[_0x50b340(0x1f7)](_0x50b340(0x20b),JSON['stringify'](_0x4386cb));}});},_0x37a5ab=new WeakSet(),_0x17b005=function(){return _0x595da7(this,null,function*(){const _0x1493f2=_0x5f15;try{return yield _0x4a8423[_0x1493f2(0x1b7)](''+_0x45b92f);}catch(_0x24f36d){throw new Error(_0x1493f2(0x220));}});},_0x2fb2a9=new WeakSet(),_0xb1e438=function(){return _0x595da7(this,null,function*(){const _0x565ab3=_0x5f15;if(!localStorage['getItem'](_0x565ab3(0x248))){let _0x5ceb71=(yield _0x53e8ee(this,_0x5bdce5,_0x4e2834)[_0x565ab3(0x214)](this))[_0x565ab3(0x1f8)];_0x5ceb71&&localStorage[_0x565ab3(0x1f7)](_0x565ab3(0x248),JSON[_0x565ab3(0x1bd)](_0x5ceb71));}});},_0x5bdce5=new WeakSet(),_0x4e2834=function(){return _0x595da7(this,null,function*(){const _0x5a1df2=_0x5f15;try{return yield _0x4a8423[_0x5a1df2(0x1b7)](''+_0x3aee37);}catch(_0x221638){throw new Error(_0x5a1df2(0x224));}});},_0x30e49b=new WeakSet(),_0xa1821b=function(_0x33bfc8){return _0x595da7(this,null,function*(){const _0x5e274a=_0x5f15;localStorage[_0x5e274a(0x22d)]('session')||(localStorage[_0x5e274a(0x1f7)](_0x5e274a(0x1b0),crypto['randomUUID']()),yield _0x53e8ee(this,_0x52766c,_0x4e81e1)[_0x5e274a(0x214)](this,_0x5e274a(0x170),[{'eventProperty':_0x5e274a(0x1b1),'value':localStorage[_0x5e274a(0x22d)]('session')},{'eventProperty':'SESSION_CREATED','value':new Date(parseInt(localStorage['getItem']('ttl')||'',0xa))[_0x5e274a(0x198)]()}]));let _0x20e5c2={'deviceId':localStorage[_0x5e274a(0x22d)](_0x5e274a(0x1ef))||crypto[_0x5e274a(0x239)](),'os':_0x35c961(this,_0x35351c)};if(_0x33bfc8)_0x20e5c2['identity']=_0x33bfc8;else{if(!_0x33bfc8&&localStorage[_0x5e274a(0x22d)]('customer'))return;}try{let _0x28e2a1=yield _0x53e8ee(this,_0x19427a,_0x467941)[_0x5e274a(0x214)](this,_0x20e5c2);_0x28e2a1!==void 0x0&&localStorage[_0x5e274a(0x1f7)](_0x5e274a(0x245),_0x28e2a1);}catch(_0x5cf824){throw new Error(_0x5e274a(0x1a2));}});},_0x1e7dac=new WeakSet(),_0x30170c=function(){const _0x494d4a=_0xf1e7a3;localStorage[_0x494d4a(0x1f7)]('ttl',''+new Date()['getTime']());},_0x19427a=new WeakSet(),_0x467941=function(_0x2900b2){return _0x595da7(this,null,function*(){const _0x2db709=_0x5f15;try{return(yield _0x4a8423[_0x2db709(0x1ad)](''+_0x3f576e+_0x2cfc4f,_0x2900b2))[_0x2db709(0x1f8)];}catch(_0x556220){throw new Error(_0x2db709(0x174));}});},_0x19bd4d=new WeakSet(),_0xe7677f=function(_0x1f210f){const _0x16bc8e=_0xf1e7a3;let _0x395a12=_0x53e8ee(this,_0x10b5e2,_0x573e85)['call'](this);if(_0x395a12!=null&&_0x395a12[_0x1f210f])switch(_0x395a12[_0x1f210f][_0x16bc8e(0x213)]){case'DELAY':{_0x53e8ee(this,_0x13491b,_0x201d55)[_0x16bc8e(0x214)](this,_0x395a12[_0x1f210f]);break;}case _0x16bc8e(0x18d):{_0x53e8ee(this,_0x100374,_0x26037d)[_0x16bc8e(0x214)](this,_0x395a12[_0x1f210f]);break;}case _0x16bc8e(0x236):{_0x53e8ee(this,_0x2706b1,_0x552fd7)['call'](this,_0x395a12[_0x1f210f]);break;}default:return;}},_0x10b5e2=new WeakSet(),_0x573e85=function(){const _0x2c9b22=_0xf1e7a3;let _0x202ec1=localStorage[_0x2c9b22(0x22d)]('action');return _0x202ec1?JSON[_0x2c9b22(0x221)](_0x202ec1):null;},_0x2706b1=new WeakSet(),_0x552fd7=function(_0x13ebfe){const _0x51f4aa=_0xf1e7a3;let _0x16a64b=()=>{const _0xb2efbc=_0x5f15;var _0xbb7c89;let _0x58907a=window[_0xb2efbc(0x1a7)],_0x154b89=document['documentElement'][_0xb2efbc(0x1e1)];window[_0xb2efbc(0x189)]/(_0x154b89-_0x58907a)*0x64>(((_0xbb7c89=_0x13ebfe[_0xb2efbc(0x1fa)])==null?void 0x0:_0xbb7c89[_0xb2efbc(0x1b6)])||0x0)&&(window[_0xb2efbc(0x1b5)](_0xb2efbc(0x1f3),_0x16a64b),_0x53e8ee(this,_0x100374,_0x26037d)['call'](this,_0x13ebfe));};window[_0x51f4aa(0x190)](_0x51f4aa(0x1f3),_0x16a64b);},_0x13491b=new WeakSet(),_0x201d55=function(_0x1a2667){const _0x3dabd0=_0xf1e7a3;var _0x33b245;let _0x488794=_0x1a2667['initialTime']-0x1f4+(((_0x33b245=_0x1a2667[_0x3dabd0(0x1fa)])==null?void 0x0:_0x33b245[_0x3dabd0(0x1b6)])||0x0)*0x3e8-new Date()['getTime']();_0x488794>0x0&&_0x1a2667[_0x3dabd0(0x1f4)]===window['location'][_0x3dabd0(0x176)]+window[_0x3dabd0(0x1fd)]['pathname']&&setTimeout(()=>{const _0x5e316e=_0x3dabd0;_0x35c961(this,_0x3555fb)[_0x5e316e(0x214)](this,_0x1a2667[_0x5e316e(0x1df)]),_0x53e8ee(this,_0x100374,_0x26037d)[_0x5e316e(0x214)](this,_0x1a2667);},_0x488794);},_0x100374=new WeakSet(),_0x26037d=function(_0x331ab2){const _0x3bed55=_0xf1e7a3;let _0x5d9988=_0x53e8ee(this,_0x6f0795,_0x45ebcd)[_0x3bed55(0x214)](this,_0x3bed55(0x1b4),_0x331ab2);document[_0x3bed55(0x210)][_0x3bed55(0x184)](_0x5d9988),_0x53e8ee(this,_0x52766c,_0x4e81e1)[_0x3bed55(0x214)](this,_0x5ddf00,[{'eventProperty':_0x3bed55(0x249),'value':JSON[_0x3bed55(0x1bd)]({'campaignId':_0x331ab2[_0x3bed55(0x1df)]})}],_0x331ab2[_0x3bed55(0x1df)],_0x331ab2[_0x3bed55(0x23a)],'view'),_0x35c961(this,_0x3555fb)['call'](this,_0x331ab2['campaignId']);},_0x6f0795=new WeakSet(),_0x45ebcd=function(_0x2b2d22,_0x103534){const _0x25c64e=_0xf1e7a3;var _0x1013c7;let {campaignCustomerInstanceId:_0x4d1587,campaignId:_0x26d71d,message:{design:_0x22be1a}}=_0x103534,_0x2c5cfe=document[_0x25c64e(0x179)](_0x2b2d22);_0x2c5cfe['id']=_0x25c64e(0x1e5)+_0x26d71d,_0x2c5cfe[_0x25c64e(0x235)]=_0x22be1a,_0x2c5cfe[_0x25c64e(0x20f)][_0x25c64e(0x1f0)]='fixed',_0x2c5cfe['style'][_0x25c64e(0x1fc)]='0',_0x2c5cfe['style']['left']='0',_0x2c5cfe[_0x25c64e(0x20f)][_0x25c64e(0x17b)]=_0x25c64e(0x205),_0x2c5cfe[_0x25c64e(0x20f)][_0x25c64e(0x175)]=_0x25c64e(0x205),_0x2c5cfe[_0x25c64e(0x20f)][_0x25c64e(0x1cd)]=_0x25c64e(0x216);let _0x4eb421=_0x2c5cfe[_0x25c64e(0x1d6)](_0x25c64e(0x172));return _0x4eb421&&(_0x4eb421[_0x25c64e(0x20f)]['zIndex']='50'),_0x2c5cfe['querySelectorAll'](_0x25c64e(0x182))[_0x25c64e(0x223)](_0x4386d9=>{const _0x42160f=_0x25c64e;let _0x1bfe1d=_0x4386d9[_0x42160f(0x1d6)](_0x42160f(0x17a));_0x1bfe1d&&_0x1bfe1d[_0x42160f(0x190)](_0x42160f(0x1e3),()=>_0x595da7(this,null,function*(){const _0x2c7f48=_0x42160f;_0x2c5cfe['remove']();let _0x4a722d=new FormData(_0x1bfe1d),_0x49b550={};for(let [_0x57fe68,_0x5939e3]of _0x4a722d['entries']())_0x49b550[_0x57fe68]=_0x5939e3;yield _0x53e8ee(this,_0x52766c,_0x4e81e1)[_0x2c7f48(0x214)](this,_0x5ddf00,[{'eventProperty':_0x2c7f48(0x1dc),'value':JSON[_0x2c7f48(0x1bd)]({'campaignId':_0x26d71d,'formId':_0x4386d9['id'],'formValues':_0x49b550})}],_0x26d71d,_0x4d1587,_0x2c7f48(0x17a));}));}),(_0x1013c7=_0x2c5cfe['querySelector'](_0x25c64e(0x1c8)))==null||_0x1013c7[_0x25c64e(0x190)](_0x25c64e(0x1a9),()=>_0x595da7(this,null,function*(){const _0x49909a=_0x25c64e;_0x2c5cfe[_0x49909a(0x1c1)](),yield _0x53e8ee(this,_0x52766c,_0x4e81e1)[_0x49909a(0x214)](this,_0x5ddf00,[{'eventProperty':_0x49909a(0x24a),'value':JSON[_0x49909a(0x1bd)]({'campaignId':_0x26d71d})}],_0x26d71d,_0x4d1587,_0x49909a(0x18f));})),_0x2c5cfe[_0x25c64e(0x192)](_0x25c64e(0x1c3))[_0x25c64e(0x223)](_0x3d8ae2=>{const _0x5cf1e1=_0x25c64e;_0x3d8ae2[_0x5cf1e1(0x190)]('click',()=>_0x595da7(this,null,function*(){const _0x544a51=_0x5cf1e1;_0x2c5cfe[_0x544a51(0x1c1)](),yield _0x53e8ee(this,_0x52766c,_0x4e81e1)['call'](this,_0x5ddf00,[{'eventProperty':'Button\x20Click','value':JSON[_0x544a51(0x1bd)]({'buttonId':_0x3d8ae2['id'],'campaignId':_0x26d71d})}],_0x26d71d,_0x4d1587,_0x544a51(0x1a9));}));}),_0x2c5cfe[_0x25c64e(0x192)](_0x25c64e(0x1d8))['forEach'](_0x350d71=>{const _0x3699e7=_0x25c64e;_0x350d71[_0x3699e7(0x190)](_0x3699e7(0x1a9),()=>_0x595da7(this,null,function*(){const _0x889534=_0x3699e7;yield _0x53e8ee(this,_0x52766c,_0x4e81e1)['call'](this,_0x5ddf00,[{'eventProperty':'Image\x20Click','value':JSON['stringify']({'campaignId':_0x26d71d,'imageClassName':_0x350d71['className'],'imageId':_0x350d71['id']})}],_0x26d71d,_0x4d1587,_0x889534(0x1a9));}));}),_0x2c5cfe;},_0x16e2ff=new WeakSet(),_0x24eaca=function(){const _0x1e5096=_0xf1e7a3;let _0x2a3e4e=localStorage['getItem'](_0x1e5096(0x20b));return _0x2a3e4e?JSON[_0x1e5096(0x221)](_0x2a3e4e):{};},_0x2d333b=new WeakSet(),_0x4a109b=function(_0x5dfb47,_0x23b82f,_0x10ab63){const _0x42a89c=_0xf1e7a3;if(!Object[_0x42a89c(0x231)][_0x42a89c(0x21f)][_0x42a89c(0x214)](_0x5dfb47,_0x23b82f))return'Event\x20'+_0x23b82f+'\x20is\x20not\x20valid.';if(!_0x10ab63)return[];let _0x234b6c=_0x5dfb47[_0x23b82f];if(!(_0x234b6c!=null&&_0x234b6c[_0x42a89c(0x187)]))return _0x42a89c(0x1ce)+_0x23b82f+'\x20does\x20not\x20have\x20a\x20valid\x20eventProperty.';let _0x1a6127=_0x10ab63[_0x42a89c(0x208)](({eventProperty:_0x15a5e4})=>!Object['prototype'][_0x42a89c(0x21f)]['call'](_0x234b6c[_0x42a89c(0x187)],_0x15a5e4))[_0x42a89c(0x178)](({eventProperty:_0x435bb6})=>_0x435bb6);return _0x1a6127[_0x42a89c(0x1e8)]>0x0?_0x42a89c(0x1ce)+_0x23b82f+_0x42a89c(0x1be)+_0x1a6127['join'](',\x20')+'.':_0x10ab63[_0x42a89c(0x178)](({eventProperty:_0x48acf7,value:_0x53b5a7})=>({'eventPropertyId':_0x234b6c[_0x42a89c(0x187)][_0x48acf7]['id'],'value':_0x53b5a7}));},_0x4aa72=new WeakSet(),_0x10faa8=function(_0x42790c,_0x280a67,_0x192f67){const _0x13d707=_0xf1e7a3;if(!Object[_0x13d707(0x231)]['hasOwnProperty'][_0x13d707(0x214)](_0x42790c,_0x280a67))return'Attribute\x20'+_0x280a67+'\x20is\x20not\x20valid.';if(!_0x192f67)return[];let _0x14a66d=_0x42790c[_0x280a67];if(!(_0x14a66d!=null&&_0x14a66d[_0x13d707(0x19c)]))return'Attribute\x20'+_0x280a67+_0x13d707(0x212);let _0x585a19=_0x192f67[_0x13d707(0x208)](({attributeProperty:_0x55702d})=>!Object['prototype'][_0x13d707(0x21f)][_0x13d707(0x214)](_0x14a66d['attributeProperty'],_0x55702d))[_0x13d707(0x178)](({attributeProperty:_0x59ae44})=>_0x59ae44);return _0x585a19[_0x13d707(0x1e8)]>0x0?_0x13d707(0x22e)+_0x280a67+_0x13d707(0x1ca)+_0x585a19['join'](',\x20')+'.':_0x192f67['map'](({attributeProperty:_0x189f6b,value:_0x5b5efd})=>({'attributePropertyId':_0x14a66d['attributeProperty'][_0x189f6b]['id'],'value':_0x5b5efd}));},_0x5b4788=new WeakSet(),_0x2fbda5=function(_0x3ba076){const _0x4e7572=_0xf1e7a3;return{'customerId':localStorage['getItem'](_0x4e7572(0x245))||'','events':[_0x3ba076]};},_0x3b3517=new WeakSet(),_0x1640b0=function(_0x40e73f){return _0x595da7(this,null,function*(){const _0x1acc9f=_0x5f15;try{return yield _0x4a8423['post'](''+_0x45b92f+_0x1e06a0,_0x40e73f);}catch(_0x6ac744){throw new Error(_0x1acc9f(0x1af));}});},_0x4cee61=new WeakSet(),_0x5a1152=function(_0x98f0f0){const _0x4a918e=_0xf1e7a3;return _0x98f0f0===_0x4a918e(0x21a);},_0x44378a=new WeakSet(),_0x4476a8=function(_0x33bb46){const _0x1c894c=_0xf1e7a3;let _0x496f3e=JSON['parse'](localStorage[_0x1c894c(0x22d)](_0x1c894c(0x218))||'{}');_0x496f3e[_0x33bb46[_0x1c894c(0x1df)]]=_0x4c8363(_0x572019({},_0x33bb46),{'initialTime':new Date()[_0x1c894c(0x1a6)](),'page':window[_0x1c894c(0x1fd)][_0x1c894c(0x176)]+window[_0x1c894c(0x1fd)][_0x1c894c(0x19b)]}),localStorage[_0x1c894c(0x1f7)](_0x1c894c(0x218),JSON[_0x1c894c(0x1bd)](_0x496f3e));},_0x137aad=new WeakSet(),_0x311362=function(){const _0x42a3b0=_0xf1e7a3;localStorage[_0x42a3b0(0x188)](_0x42a3b0(0x218)),localStorage[_0x42a3b0(0x188)]('events'),localStorage[_0x42a3b0(0x188)]('attributes'),localStorage[_0x42a3b0(0x188)](_0x42a3b0(0x1d3)),localStorage[_0x42a3b0(0x188)](_0x42a3b0(0x17e)),localStorage['removeItem'](_0x42a3b0(0x1b0));},_0x5d80fe=new WeakSet(),_0xb52ce2=function(){return _0x595da7(this,null,function*(){const _0x5c28d2=_0x5f15;localStorage[_0x5c28d2(0x22d)](_0x5c28d2(0x248))||(yield _0x53e8ee(this,_0x2fb2a9,_0xb1e438)[_0x5c28d2(0x214)](this));});},_0x2a9b10=new WeakSet(),_0x315179=function(_0x5adb53){return _0x595da7(this,null,function*(){const _0x304e00=_0x5f15;try{return yield _0x4a8423[_0x304e00(0x1ad)](''+_0x3aee37+_0x422cbf,_0x5adb53);}catch(_0xb0fd74){throw new Error(_0x304e00(0x22c));}});},_0x480f62(_0x3c171d,_0x59605c,void 0x0);var _0x2d24dd=_0x3c171d,_0x45cf83=_0x2d24dd[_0xf1e7a3(0x201)]();typeof window!=_0xf1e7a3(0x19d)&&(window[_0xf1e7a3(0x23b)]=_0x45cf83);var _0x181c19=_0x45cf83;})());
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function _0x192f(_0x139e6e,_0x2e3dce){const _0x2c3601=_0x2c36();return _0x192f=function(_0x192f28,_0x8abe74){_0x192f28=_0x192f28-0xd5;let _0x47d28e=_0x2c3601[_0x192f28];return _0x47d28e;},_0x192f(_0x139e6e,_0x2e3dce);}const _0x3cba7d=_0x192f;function _0x2c36(){const _0x1938ae=['updateAPIKey','SESSION_CREATED','remove','hasOwnProperty','set','name','9oLbvwW','attributes','submit','OriginateFrom:\x20','Tracking\x20page\x20change\x20Time','Safari','get','setItem','Error\x20fetching\x20attribute\x20data','utm_term','INFO:\x20','length','.u-close-button','Edg','scroll','Microsoft\x20Edge','12WZBLDu','Mergn\x20SDK\x20Initialization\x20Time','apiKey','Error\x20fetching\x20event\x20data','4086504TbySon','view','funcQueue','gad_source','access\x20private\x20method','indexOf','data','record\x20event','Mergn\x20is\x20offline!','online','value','hostname','push','addEventListener','documentElement','Popup\x20Action','100%','Platform','utm_source','Popup\x20View','isInitialized','Chrome','debugLevel','defineProperties','campaignCustomerInstanceId','entries','init','IMMEDIATELY','getInstance','exports','logout','Mergn\x20not\x20initialized!','zIndex','onLine','Event\x20Payload','form','parse','Close\x20Click','propertyIsEnumerable','campaignEntryTime','style','recordAttribute','99999999','customer','Recording\x20attribute','16192230TQrfWw','Event\x20','message','error','session','[id^=\x22u_content_form_\x22]','/record-event','UTM_MEDIUM','resolve','attributeProperty','Debug\x20level\x20must\x20be\x20according\x20to:\x0a\x20NONE:\x200,\x20INFO:\x201,\x20ERROR:\x202,\x20ALL:\x203','ERROR','add','login','time','scrollY','offline','popup_container_','offlineEvents','Internet\x20Explorer','div','Tracking\x20page\x20change','location','getTime','UTM_CONTENT','/customer','removeEventListener','search','enumerable','next','894801pfJpiM','values','Initializing\x20Mergn\x20SDK','UTM_SOURCE','defineProperty','campaignId','[id^=\x22u_content_button_\x22]','load','randomUUID','json','ttl','mergn','Checking\x20TTL\x20Time','groupEnd','info','\x20has\x20invalid\x20eventProperties:\x20','\x0aMergnError:\x20','/set-attribute','toISOString','object','4124253vbGoSb','DELAY','prototype','close','campaignEntryTimeValue','click','action','keys','/attribute','map','Error\x20posting\x20event\x20record','#\x20Recording\x20event','805565dDhXDH','removeItem','/event','loading','INFO','2435652iZRgfM','disableSDK','height','utm_medium','Recording\x20event\x20Time','events','call','group','isArray','uniqueIdentity','pathname','Attribute\x20Payload:\x0a\x20','GAD_SOURCE','innerHTML','getItem','join','SESSION_ID','Logging\x20in\x20Time','eventProperty','Recording\x20event','Logging\x20out\x20Time','555446DwQveT','Form\x20Submit','Mozilla\x20Firefox','/set-identity','getOwnPropertyNames','Checking\x20TTL','MergnError','Web\x20Session\x20Started','\x0aUnexpected\x20error:\x20','has','Cannot\x20','application/json','4YpbSQA','Recording\x20attribute\x20Time','.u-popup-container\x20img','done','pushState','initialTime','Button\x20Click','gclid','Logging\x20out','Web\x20Session\x20Concluded','then','Unknown','read\x20from\x20private\x20field','\x20is\x20not\x20valid.','undefined','test','Attribute\x20','position','left','querySelectorAll','utm_content','querySelector','https://u23z4zsda8.execute-api.ap-southeast-1.amazonaws.com/Prod/sdk-management/api','\x20has\x20invalid\x20attributeProperties:\x20','string','scrollHeight','href','Logging\x20in','#\x20recordAttribute','URL','Error\x20posting\x20attribute\x20record','page','\x20does\x20not\x20have\x20a\x20valid\x20eventProperty.','forEach','stringify','top','write\x20to\x20private\x20field','Web','userAgent','toLowerCase','apply','not\x20initialized','post','NONE','POST','Image\x20Click','className','filter','Popup'];_0x2c36=function(){return _0x1938ae;};return _0x2c36();}(function(_0x2621f3,_0x14546f){const _0x3d4ab9=_0x192f,_0x142d12=_0x2621f3();while(!![]){try{const _0x133089=-parseInt(_0x3d4ab9(0x156))/0x1+-parseInt(_0x3d4ab9(0x162))/0x2*(parseInt(_0x3d4ab9(0x11c))/0x3)+parseInt(_0x3d4ab9(0x1a9))/0x4*(-parseInt(_0x3d4ab9(0x13c))/0x5)+parseInt(_0x3d4ab9(0x141))/0x6+-parseInt(_0x3d4ab9(0x130))/0x7+parseInt(_0x3d4ab9(0x1ad))/0x8*(parseInt(_0x3d4ab9(0x199))/0x9)+parseInt(_0x3d4ab9(0xfe))/0xa;if(_0x133089===_0x14546f)break;else _0x142d12['push'](_0x142d12['shift']());}catch(_0x43d0e4){_0x142d12['push'](_0x142d12['shift']());}}}(_0x2c36,0x4c0b8));var q=Object[_0x3cba7d(0x120)],ft=Object[_0x3cba7d(0xe8)],yt=Object['getOwnPropertyDescriptor'],Tt=Object['getOwnPropertyDescriptors'],ht=Object[_0x3cba7d(0x15a)],Be=Object['getOwnPropertySymbols'],Ke=Object[_0x3cba7d(0x132)]['hasOwnProperty'],Ot=Object[_0x3cba7d(0x132)][_0x3cba7d(0xf7)],ke=(_0x18f300,_0x2aa0b9,_0x1f9f75)=>_0x2aa0b9 in _0x18f300?q(_0x18f300,_0x2aa0b9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1f9f75}):_0x18f300[_0x2aa0b9]=_0x1f9f75,M=(_0x4b15f9,_0x4ace81)=>{for(var _0x564441 in _0x4ace81||(_0x4ace81={}))Ke['call'](_0x4ace81,_0x564441)&&ke(_0x4b15f9,_0x564441,_0x4ace81[_0x564441]);if(Be){for(var _0x564441 of Be(_0x4ace81))Ot['call'](_0x4ace81,_0x564441)&&ke(_0x4b15f9,_0x564441,_0x4ace81[_0x564441]);}return _0x4b15f9;},Re=(_0x1b65f6,_0x38c3c6)=>ft(_0x1b65f6,Tt(_0x38c3c6)),wt=(_0x58dd32,_0x4b618d)=>{for(var _0x5d4d73 in _0x4b618d)q(_0x58dd32,_0x5d4d73,{'get':_0x4b618d[_0x5d4d73],'enumerable':!0x0});},Rt=(_0x3fd73f,_0x291e44,_0x23f4fb,_0x70c046)=>{const _0x15c658=_0x3cba7d;if(_0x291e44&&typeof _0x291e44==_0x15c658(0x12f)||typeof _0x291e44=='function'){for(let _0x48c329 of ht(_0x291e44))!Ke[_0x15c658(0x147)](_0x3fd73f,_0x48c329)&&_0x48c329!==_0x23f4fb&&q(_0x3fd73f,_0x48c329,{'get':()=>_0x291e44[_0x48c329],'enumerable':!(_0x70c046=yt(_0x291e44,_0x48c329))||_0x70c046[_0x15c658(0x11a)]});}return _0x3fd73f;},Lt=_0x2a20f9=>Rt(q({},'__esModule',{'value':!0x0}),_0x2a20f9),Le=(_0x160df5,_0x378b0f,_0x5d98c2)=>{const _0x3d2f2b=_0x3cba7d;if(!_0x378b0f[_0x3d2f2b(0x15f)](_0x160df5))throw TypeError(_0x3d2f2b(0x160)+_0x5d98c2);},S=(_0x4c8d14,_0x15df9b,_0x37f18d)=>(Le(_0x4c8d14,_0x15df9b,_0x3cba7d(0x16e)),_0x37f18d?_0x37f18d[_0x3cba7d(0x147)](_0x4c8d14):_0x15df9b['get'](_0x4c8d14)),a=(_0x5538a0,_0x56a140,_0x5400af)=>{const _0x49859d=_0x3cba7d;if(_0x56a140[_0x49859d(0x15f)](_0x5538a0))throw TypeError('Cannot\x20add\x20the\x20same\x20private\x20member\x20more\x20than\x20once');_0x56a140 instanceof WeakSet?_0x56a140[_0x49859d(0x10a)](_0x5538a0):_0x56a140['set'](_0x5538a0,_0x5400af);},O=(_0x426c82,_0x590e8f,_0x4ce6ae,_0x32b245)=>(Le(_0x426c82,_0x590e8f,_0x3cba7d(0x186)),_0x32b245?_0x32b245[_0x3cba7d(0x147)](_0x426c82,_0x4ce6ae):_0x590e8f[_0x3cba7d(0x197)](_0x426c82,_0x4ce6ae),_0x4ce6ae),n=(_0x2801ef,_0x52f33f,_0x54890b)=>(Le(_0x2801ef,_0x52f33f,_0x3cba7d(0xd5)),_0x54890b),l=(_0x3cc76b,_0x30f333,_0x5b359a)=>new Promise((_0x15b93d,_0x4562d2)=>{const _0x23feae=_0x3cba7d;var _0x4fcbc4=_0x4cb159=>{const _0x5a09d5=_0x192f;try{_0x41b7a9(_0x5b359a[_0x5a09d5(0x11b)](_0x4cb159));}catch(_0x55d697){_0x4562d2(_0x55d697);}},_0x2b0924=_0xf4d696=>{try{_0x41b7a9(_0x5b359a['throw'](_0xf4d696));}catch(_0x21f192){_0x4562d2(_0x21f192);}},_0x41b7a9=_0x2eeb96=>_0x2eeb96[_0x23feae(0x165)]?_0x15b93d(_0x2eeb96[_0x23feae(0xdb)]):Promise[_0x23feae(0x106)](_0x2eeb96[_0x23feae(0xdb)])[_0x23feae(0x16c)](_0x4fcbc4,_0x2b0924);_0x41b7a9((_0x5b359a=_0x5b359a[_0x23feae(0x18a)](_0x3cc76b,_0x30f333))[_0x23feae(0x11b)]());}),Nt={};wt(Nt,{'default':()=>At}),module[_0x3cba7d(0xee)]=Lt(Nt);var ze=(_0x1cb6ad=>(_0x1cb6ad[_0x3cba7d(0x11f)]=_0x3cba7d(0xe3),_0x1cb6ad[_0x3cba7d(0x105)]=_0x3cba7d(0x144),_0x1cb6ad['UTM_CAMPAIGN']='utm_campaign',_0x1cb6ad['UTM_TERM']=_0x3cba7d(0x1a2),_0x1cb6ad[_0x3cba7d(0x116)]=_0x3cba7d(0x176),_0x1cb6ad[_0x3cba7d(0x14d)]=_0x3cba7d(0x1b0),_0x1cb6ad['GCLID']=_0x3cba7d(0x169),_0x1cb6ad))(ze||{}),Je=new Set(Object[_0x3cba7d(0x11d)](ze)),A=_0x3cba7d(0xe0),be=_0x3cba7d(0x178),Ae=_0x3cba7d(0x138),We=_0x3cba7d(0x12d),Ne=_0x3cba7d(0x13e),Ge=_0x3cba7d(0x104),je=_0x3cba7d(0x117),Qe=_0x3cba7d(0x159),N,f=class f{constructor(){}static[_0x3cba7d(0xed)](){return S(f,N)||O(f,N,new f()),S(f,N);}['updateAPIKey'](_0x6193f4){const _0x17f5b8=_0x3cba7d;f[_0x17f5b8(0x1ab)]=_0x6193f4;}[_0x3cba7d(0x19f)](_0x1fc60f){return l(this,null,function*(){const _0x54a9f5=_0x192f;return(yield fetch(be+_0x1fc60f,{'headers':{'Authorization':f[_0x54a9f5(0x1ab)],'Content-Type':'application/json'}}))[_0x54a9f5(0x125)]();});}['post'](_0x606b72,_0x12d128){return l(this,null,function*(){const _0x106a07=_0x192f;return(yield fetch(be+_0x606b72,{'body':JSON[_0x106a07(0x184)](_0x12d128||{}),'headers':{'Authorization':f[_0x106a07(0x1ab)],'Content-Type':_0x106a07(0x161)},'method':_0x106a07(0x18e)}))['json']();});}};N=new WeakMap(),a(f,N,void 0x0);var Pe=f,h=Pe['getInstance'](),c=class extends Error{constructor(_0xaf6cba){const _0x128695=_0x3cba7d;super(_0xaf6cba),this['name']=_0x128695(0x15c);}};c[_0x3cba7d(0x142)]=!0x1,c[_0x3cba7d(0x10e)]=!navigator[_0x3cba7d(0xf2)],c['debugLevel']=0x0,c[_0x3cba7d(0xe5)]=!0x1,c[_0x3cba7d(0x13f)]=!0x1,c[_0x3cba7d(0x1af)]=[];var He=()=>{const _0x34d34b=_0x3cba7d;c[_0x34d34b(0xe5)]=!0x0;for(let _0x36d957 of c['funcQueue'])_0x36d957();c[_0x34d34b(0x1af)]=[];},bt=(_0x1a1373,_0x398c0e)=>{const _0x319888=_0x3cba7d;_0x398c0e instanceof c?p(0x2,_0x319888(0x19c)+_0x1a1373+_0x319888(0x12c)+_0x398c0e[_0x319888(0x100)]):_0x398c0e instanceof Error?p(0x2,_0x319888(0x19c)+_0x1a1373+_0x319888(0x15e)+_0x398c0e[_0x319888(0x100)]):p(0x2,'OriginateFrom:\x20'+_0x1a1373+_0x319888(0x15e)+String(_0x398c0e));},w=(_0x4682d6,_0x342dfc,_0x3b349e)=>l(void 0x0,null,function*(){const _0x5dd0c6=_0x3cba7d;try{if(c['disableSDK'])throw new c('Mergn\x20SDK\x20is\x20disabled!');if(_0x4682d6!==_0x5dd0c6(0xd8)&&c[_0x5dd0c6(0x10e)])throw new c(_0x5dd0c6(0xd9));if(_0x4682d6!==_0x5dd0c6(0xeb)&&!c['isInitialized']){if(_0x4682d6===_0x5dd0c6(0xd8)||_0x4682d6===_0x5dd0c6(0xfa)||_0x4682d6===_0x5dd0c6(0x17e))c[_0x5dd0c6(0x1af)][_0x5dd0c6(0xdd)](_0x342dfc);else throw new c(_0x5dd0c6(0xf0));return console[_0x5dd0c6(0x101)](_0x5dd0c6(0x18b)),null;}else{if(_0x4682d6!==_0x5dd0c6(0x10b)&&c['loading'])throw new c('Mergn\x20is\x20loading!');}return yield _0x342dfc();}catch(_0x4aa08e){return _0x3b349e?_0x3b349e(_0x4aa08e):(c[_0x5dd0c6(0xe7)]===0x2||c['debugLevel']===0x3)&&bt(_0x4682d6,_0x4aa08e),null;}}),Y=(_0x4185d9=>(_0x4185d9[_0x4185d9['NONE']=0x0]=_0x3cba7d(0x18d),_0x4185d9[_0x4185d9['INFO']=0x1]=_0x3cba7d(0x140),_0x4185d9[_0x4185d9[_0x3cba7d(0x109)]=0x2]='ERROR',_0x4185d9[_0x4185d9['ALL']=0x3]='ALL',_0x4185d9))(Y||{}),p=(_0x287ba7,_0x2fd456)=>{const _0x3fe258=_0x3cba7d;c[_0x3fe258(0xe7)]!==0x0&&c[_0x3fe258(0xe7)]<=0x3&&(_0x287ba7===0x1?console[_0x3fe258(0x12a)](_0x3fe258(0x1a3)+new Date()[_0x3fe258(0x12e)](),_0x2fd456):_0x287ba7===0x2&&console['error']('ERROR:\x20'+new Date()['toISOString'](),_0x2fd456));},d=(_0x386694,_0x549be2)=>{const _0x2af7a4=_0x3cba7d;c[_0x2af7a4(0xe7)]!==0x0&&(_0x549be2?console[_0x2af7a4(0x10c)](_0x386694):console['timeEnd'](_0x386694));},E=(_0x22bd17,_0x2327d4)=>{const _0x52b558=_0x3cba7d;c[_0x52b558(0xe7)]!==0x0&&(_0x2327d4?console[_0x52b558(0x148)](_0x22bd17):console[_0x52b558(0x129)]());},P,U,$,B,k,te,qe,L,V,v,y,ne,Ye,oe,Xe,K,Ce,z,De,re,Ze,ie,et,ae,tt,se,J,ce,le,nt,ge,ot,ue,rt,W,_e,pe,it,C,X,D,Z,de,at,G,xe,Ee,st,me,ct,Se,lt,_,ee,Ie,gt,ve,ut,fe,pt,j,Fe,ye,dt,Q,Me,Te,Et,he,mt,H,Ve,Oe,St,we,It,R=class R{constructor(){a(this,te),a(this,L),a(this,v),a(this,ne),a(this,oe),a(this,K),a(this,z),a(this,re),a(this,ie),a(this,ae),a(this,le),a(this,ge),a(this,ue),a(this,W),a(this,pe),a(this,C),a(this,D),a(this,de),a(this,G),a(this,Ee),a(this,me),a(this,Se),a(this,_),a(this,Ie),a(this,ve),a(this,fe),a(this,j),a(this,ye),a(this,Q),a(this,Te),a(this,he),a(this,H),a(this,Oe),a(this,we),a(this,U,void 0x0),a(this,$,void 0x0),a(this,B,void 0x0),a(this,k,null),a(this,se,()=>{let _0x284c5e=()=>{const _0x36a2d2=_0x192f;let _0x458e80=JSON['parse'](localStorage[_0x36a2d2(0x14f)]('action')||'{}');Object[_0x36a2d2(0x137)](_0x458e80)[_0x36a2d2(0x183)](_0x5bcb62=>{const _0x396217=_0x36a2d2;_0x458e80[_0x5bcb62]['initialTime']=new Date()[_0x396217(0x115)](),_0x458e80[_0x5bcb62][_0x396217(0x181)]=window[_0x396217(0x114)]['hostname']+window[_0x396217(0x114)][_0x396217(0x14b)];}),localStorage['setItem'](_0x36a2d2(0x136),JSON[_0x36a2d2(0x184)](_0x458e80));};_0x284c5e(),window['addEventListener']('beforeunload',_0x284c5e);}),a(this,J,_0x5cc42a=>{const _0x1b1cc1=_0x192f;let _0x10a120=JSON[_0x1b1cc1(0xf5)](localStorage[_0x1b1cc1(0x14f)](_0x1b1cc1(0x136))||'{}');_0x10a120[_0x5cc42a]&&delete _0x10a120[_0x5cc42a],localStorage[_0x1b1cc1(0x1a0)]('action',JSON[_0x1b1cc1(0x184)](_0x10a120));}),a(this,ce,()=>{const _0x1e250a=_0x192f;let _0x5dd556=JSON[_0x1e250a(0xf5)](localStorage[_0x1e250a(0x14f)]('action')||'{}');Object[_0x1e250a(0x137)](_0x5dd556)[_0x1e250a(0x183)](_0x2274ff=>{const _0x436e79=_0x1e250a;_0x5dd556[_0x2274ff][_0x436e79(0x100)][_0x436e79(0x198)]===_0x436e79(0x192)&&n(this,G,xe)[_0x436e79(0x147)](this,_0x5dd556[_0x2274ff][_0x436e79(0x121)]);});});}static[_0x3cba7d(0xed)](){return S(R,P)||O(R,P,new R()),S(R,P);}[_0x3cba7d(0xeb)](_0x5a833a){const _0x2e1159=_0x3cba7d;w(_0x2e1159(0xeb),()=>l(this,null,function*(){const _0x4e5943=_0x2e1159;p(0x1,'Initializing\x20Mergn\x20SDK'),E(_0x4e5943(0x11e),!0x0),d(_0x4e5943(0x1aa),!0x0),n(this,re,Ze)[_0x4e5943(0x147)](this,_0x5a833a),yield n(this,K,Ce)[_0x4e5943(0x147)](this),He(),setInterval(()=>l(this,null,function*(){yield n(this,K,Ce)['call'](this);}),0x493e0),yield n(this,L,V)[_0x4e5943(0x147)](this),window[_0x4e5943(0xde)](_0x4e5943(0xda),()=>l(this,null,function*(){const _0x37eabe=_0x4e5943;c[_0x37eabe(0x10e)]=!0x1;let _0x4be5ed=JSON[_0x37eabe(0xf5)](localStorage[_0x37eabe(0x14f)]('offlineEvents')||'[]');Array[_0x37eabe(0x149)](_0x4be5ed)&&(yield n(this,Q,Me)[_0x37eabe(0x147)](this,{'customerId':localStorage[_0x37eabe(0x14f)]('customer')||'','events':_0x4be5ed}),localStorage[_0x37eabe(0x13d)](_0x37eabe(0x110))),n(this,L,V)[_0x37eabe(0x147)](this),n(this,D,Z)[_0x37eabe(0x147)](this);})),window[_0x4e5943(0xde)](_0x4e5943(0x10e),()=>{const _0x245cff=_0x4e5943;c[_0x245cff(0x10e)]=!0x0;}),window['addEventListener'](_0x4e5943(0x123),()=>{const _0xf11aac=_0x4e5943;S(this,ce)[_0xf11aac(0x147)](this);});let _0x3aced8=history[_0x4e5943(0x166)];history[_0x4e5943(0x166)]=(..._0x171d76)=>{const _0x4f2b08=_0x4e5943;_0x3aced8[_0x4f2b08(0x18a)](history,_0x171d76),n(this,z,De)[_0x4f2b08(0x147)](this);},n(this,z,De)[_0x4e5943(0x147)](this),d('Mergn\x20SDK\x20Initialization\x20Time',!0x1),E(_0x4e5943(0x11e),!0x1);}));}['setDebugLevel'](_0x2189c4){const _0x21bd90=_0x3cba7d;if(!(_0x2189c4 in Y)){console[_0x21bd90(0x101)](_0x21bd90(0x108));return;}c[_0x21bd90(0xe7)]=_0x2189c4;}['recordAttribute'](_0x14a737,_0x4223e7){w('recordAttribute',()=>l(this,null,function*(){const _0x5f07de=_0x192f;yield n(this,te,qe)[_0x5f07de(0x147)](this,_0x14a737,_0x4223e7,void 0x0);}));}[_0x3cba7d(0x10b)](_0x18d427){const _0x4e863b=_0x3cba7d;w(_0x4e863b(0x10b),()=>l(this,null,function*(){const _0x1bf902=_0x4e863b;p(0x1,'Logging\x20in'),E(_0x1bf902(0x17d),!0x0),d(_0x1bf902(0x152),!0x0),p(0x1,'Identity:\x20'+_0x18d427),c['loading']=!0x0,yield n(this,C,X)['call'](this,_0x18d427),c['loading']=!0x1,d(_0x1bf902(0x152),!0x1),E(_0x1bf902(0x17d),!0x1);}));}[_0x3cba7d(0xef)](){w('logout',()=>l(this,null,function*(){const _0xb35179=_0x192f;p(0x1,_0xb35179(0x16a)),E('Logging\x20out',!0x0),d(_0xb35179(0x155),!0x0),n(this,H,Ve)[_0xb35179(0x147)](this),d(_0xb35179(0x155),!0x1),E(_0xb35179(0x16a),!0x1);}));}['recordEvent'](_0x13954b,_0x25e299){setTimeout(()=>{const _0x1c4c94=_0x192f;w(_0x1c4c94(0xd8),()=>l(this,null,function*(){const _0xd5e4cd=_0x1c4c94;p(0x1,'Recording\x20event'),E('Recording\x20event',!0x0),d(_0xd5e4cd(0x145),!0x0),p(0x1,'Event\x20Payload:\x0a\x20'+{'eventName':_0x13954b,'eventProperties':_0x25e299}),n(this,v,y)[_0xd5e4cd(0x147)](this,_0x13954b,_0x25e299),d(_0xd5e4cd(0x145),!0x1),E(_0xd5e4cd(0x154),!0x1);}));});}};P=new WeakMap(),U=new WeakMap(),$=new WeakMap(),B=new WeakMap(),k=new WeakMap(),te=new WeakSet(),qe=function(_0x1d3cb4,_0x497206,_0x2e09f4){return l(this,null,function*(){yield w('#\x20recordAttribute',()=>l(this,null,function*(){const _0x57f62c=_0x192f;p(0x1,_0x57f62c(0xfd)),E(_0x57f62c(0xfd),!0x0),d(_0x57f62c(0x163),!0x0),p(0x1,_0x57f62c(0x14c)+{'attributeName':_0x1d3cb4,'attributeProperties':_0x2e09f4,'attributeValue':_0x497206}+')}'),yield n(this,L,V)['call'](this),yield n(this,Oe,St)[_0x57f62c(0x147)](this);let _0x236fed=JSON[_0x57f62c(0xf5)](localStorage[_0x57f62c(0x14f)](_0x57f62c(0x19a))||'{}'),_0x3b9144=_0x2e09f4?n(this,j,Fe)['call'](this,_0x236fed,_0x1d3cb4,_0x2e09f4):n(this,j,Fe)[_0x57f62c(0x147)](this,_0x236fed,_0x1d3cb4);if(typeof _0x3b9144==_0x57f62c(0x17a)){p(0x2,_0x3b9144);return;}n(this,D,Z)['call'](this);let {id:_0x5adfb9}=_0x236fed[_0x1d3cb4],_0x15fa75={'attributeId':_0x5adfb9,'attributeProperties':_0x3b9144,'customerId':localStorage['getItem'](_0x57f62c(0xfc))||'','value':_0x497206};yield n(this,we,It)[_0x57f62c(0x147)](this,_0x15fa75),d(_0x57f62c(0x163),!0x1),E(_0x57f62c(0xfd),!0x1);}));});},L=new WeakSet(),V=function(){return l(this,null,function*(){const _0x1891fa=_0x192f;p(0x1,_0x1891fa(0x15b)),E(_0x1891fa(0x15b),!0x0),d(_0x1891fa(0x128),!0x0);let _0x37058a=localStorage[_0x1891fa(0x14f)](_0x1891fa(0x126)),_0x10348d=!0x1;if(_0x37058a){if(_0x10348d=new Date()[_0x1891fa(0x115)]()-parseInt(_0x37058a,0xa)>0x124f80,_0x10348d){let _0xde3df3=localStorage['getItem']('session'),_0x18f868=localStorage['getItem'](_0x1891fa(0x126));_0xde3df3&&_0x18f868&&n(this,v,y)[_0x1891fa(0x147)](this,_0x1891fa(0x16b),[{'eventProperty':'SESSION_ID','value':localStorage[_0x1891fa(0x14f)](_0x1891fa(0x102))},{'eventProperty':_0x1891fa(0x194),'value':new Date(parseInt(_0x18f868,0xa))[_0x1891fa(0x12e)]()}]),n(this,H,Ve)[_0x1891fa(0x147)](this),localStorage[_0x1891fa(0x1a0)](_0x1891fa(0x126),''+new Date()[_0x1891fa(0x115)]());}}else localStorage[_0x1891fa(0x1a0)](_0x1891fa(0x126),''+new Date()[_0x1891fa(0x115)]());(!_0x37058a||_0x10348d||n(this,ie,et)[_0x1891fa(0x147)](this))&&(n(this,le,nt)[_0x1891fa(0x147)](this),yield n(this,C,X)[_0x1891fa(0x147)](this),yield n(this,ae,tt)[_0x1891fa(0x147)](this)),d(_0x1891fa(0x128),!0x1),E('Checking\x20TTL',!0x1);});},v=new WeakSet(),y=function(_0xb119be,_0x2f14dd,_0x3296db,_0x53d536,_0x1dc571){return l(this,null,function*(){yield w('#\x20record\x20event',()=>l(this,null,function*(){const _0xcdf6a9=_0x192f;var _0x118aca;p(0x1,_0xcdf6a9(0x13b)),E(_0xcdf6a9(0x154),!0x0),d(_0xcdf6a9(0x145),!0x0),p(0x1,_0xcdf6a9(0xf3)),p(0x1,{'campaignCustomerInstanceId':_0x53d536,'eventName':_0xb119be,'eventProperties':_0x2f14dd,'name':_0x1dc571}),_0xb119be!==_0xcdf6a9(0x16b)&&(yield n(this,L,V)[_0xcdf6a9(0x147)](this));let _0x1e3844=[];_0x2f14dd&&_0x1e3844['push'](..._0x2f14dd),_0x1e3844[_0xcdf6a9(0xdd)]({'eventProperty':_0xcdf6a9(0xe2),'value':S(this,U)}),_0x1e3844[_0xcdf6a9(0xdd)]({'eventProperty':'operating-system','value':S(this,B)}),_0x1e3844[_0xcdf6a9(0xdd)]({'eventProperty':'os-version','value':S(this,$)});let _0xc93ecb=n(this,ve,ut)[_0xcdf6a9(0x147)](this),_0x49729c=n(this,fe,pt)[_0xcdf6a9(0x147)](this,_0xc93ecb,_0xb119be,_0x1e3844);if(typeof _0x49729c==_0xcdf6a9(0x17a)){p(0x2,_0x49729c);return;}n(this,D,Z)[_0xcdf6a9(0x147)](this);let {id:_0x4ce284}=_0xc93ecb[_0xb119be],_0x14b0bd=n(this,ye,dt)[_0xcdf6a9(0x147)](this,M(Re(M(M({},_0x53d536?{'campaignCustomerInstanceId':_0x53d536}:{}),_0x3296db?{'campaignId':_0x3296db}:{}),{'eventId':_0x4ce284,'eventProperties':_0x49729c,'sessionId':localStorage['getItem'](_0xcdf6a9(0x102))||''}),_0x1dc571?{'name':_0x1dc571}:{}));if(c[_0xcdf6a9(0x10e)]){let _0x158b00=JSON[_0xcdf6a9(0xf5)](localStorage[_0xcdf6a9(0x14f)](_0xcdf6a9(0x110))||'[]');_0x158b00[_0xcdf6a9(0x1a4)]<=0x32&&(_0x158b00['push'](..._0x14b0bd[_0xcdf6a9(0x146)]),localStorage[_0xcdf6a9(0x1a0)]('offlineEvents',JSON[_0xcdf6a9(0x184)](_0x158b00)));return;}let _0x50c71f=yield n(this,Q,Me)[_0xcdf6a9(0x147)](this,_0x14b0bd);(_0x118aca=_0x50c71f==null?void 0x0:_0x50c71f[_0xcdf6a9(0xd7)])==null||_0x118aca['forEach'](_0x147706=>{const _0x33764a=_0xcdf6a9;n(this,Te,Et)['call'](this,_0x147706[_0x33764a(0x100)]['name'])&&(n(this,he,mt)['call'](this,_0x147706),S(this,se)['call'](this),n(this,G,xe)[_0x33764a(0x147)](this,_0x147706[_0x33764a(0x121)]));}),d(_0xcdf6a9(0x145),!0x1),E(_0xcdf6a9(0x154),!0x1);}));});},ne=new WeakSet(),Ye=function(){const _0x30ccf8=_0x3cba7d;let _0x26e46b=navigator[_0x30ccf8(0x188)][_0x30ccf8(0x189)]();return/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i[_0x30ccf8(0x171)](_0x26e46b)?'Mobile':/windows|macintosh|linux|x11/i[_0x30ccf8(0x171)](_0x26e46b)?_0x30ccf8(0x187):_0x30ccf8(0x16d);},oe=new WeakSet(),Xe=function(){const _0x45a964=_0x3cba7d;let _0x2927b5=navigator[_0x45a964(0x188)],_0x4bc97b;return _0x2927b5[_0x45a964(0xd6)](_0x45a964(0xe6))>-0x1?_0x4bc97b='Google\x20Chrome':_0x2927b5[_0x45a964(0xd6)]('Safari')>-0x1?_0x4bc97b=_0x45a964(0x19e):_0x2927b5['indexOf']('Firefox')>-0x1?_0x4bc97b=_0x45a964(0x158):_0x2927b5[_0x45a964(0xd6)](_0x45a964(0x1a6))>-0x1?_0x4bc97b=_0x45a964(0x1a8):_0x2927b5['indexOf']('MSIE')>-0x1?_0x4bc97b=_0x45a964(0x111):_0x4bc97b=_0x45a964(0x16d),_0x4bc97b;},K=new WeakSet(),Ce=function(){return l(this,null,function*(){const _0x1616ea=_0x192f;try{yield h['get']('/brand');}catch(_0xb65aaf){throw c[_0x1616ea(0x142)]=!0x0,_0xb65aaf['message'];}});},z=new WeakSet(),De=function(){return l(this,null,function*(){const _0x10b6bb=_0x192f;var _0x4bbdc8;p(0x1,_0x10b6bb(0x113)),E(_0x10b6bb(0x113),!0x0),d(_0x10b6bb(0x19d),!0x0);let _0x2b7408=(_0x4bbdc8=window==null?void 0x0:window[_0x10b6bb(0x114)])==null?void 0x0:_0x4bbdc8[_0x10b6bb(0x17c)];if(_0x2b7408!==S(this,k)){O(this,k,_0x2b7408);let _0x59cb9e=[];new URLSearchParams(new URL(window[_0x10b6bb(0x114)][_0x10b6bb(0x17c)])[_0x10b6bb(0x119)])[_0x10b6bb(0x183)]((_0x441136,_0x2092b3)=>l(this,null,function*(){const _0x45391a=_0x10b6bb;Je['has'](_0x2092b3)&&_0x59cb9e[_0x45391a(0xdd)]({'eventProperty':_0x2092b3,'value':_0x441136});})),yield n(this,v,y)['call'](this,'Viewed\x20Webpage',[{'eventProperty':_0x10b6bb(0x17f),'value':window[_0x10b6bb(0x114)][_0x10b6bb(0x14b)]},..._0x59cb9e]);}d('Tracking\x20page\x20change\x20Time',!0x1),E(_0x10b6bb(0x113),!0x1);});},re=new WeakSet(),Ze=function(_0x33da42){const _0x440e58=_0x3cba7d;h[_0x440e58(0x193)](_0x33da42),O(this,U,n(this,ne,Ye)[_0x440e58(0x147)](this)),O(this,$,n(this,oe,Xe)['call'](this)),O(this,B,navigator['userAgent']);},ie=new WeakSet(),et=function(){const _0x2a0ee5=_0x3cba7d;return!localStorage[_0x2a0ee5(0x14f)](_0x2a0ee5(0x146))||!localStorage[_0x2a0ee5(0x14f)]('customer')||!localStorage['getItem']('attributes')||!localStorage['getItem'](_0x2a0ee5(0x14a))||!localStorage[_0x2a0ee5(0x14f)](_0x2a0ee5(0x102))||!localStorage[_0x2a0ee5(0x14f)]('customer');},ae=new WeakSet(),tt=function(){return l(this,null,function*(){const _0x277e54=_0x192f;yield n(this,ge,ot)[_0x277e54(0x147)](this),yield n(this,W,_e)[_0x277e54(0x147)](this),yield n(this,C,X)['call'](this);});},se=new WeakMap(),J=new WeakMap(),ce=new WeakMap(),le=new WeakSet(),nt=function(){const _0x308f4e=_0x3cba7d;let _0x4e1797=localStorage[_0x308f4e(0x14f)](_0x308f4e(0x14a));return _0x4e1797||(_0x4e1797=crypto[_0x308f4e(0x124)](),localStorage[_0x308f4e(0x1a0)](_0x308f4e(0x14a),_0x4e1797)),_0x4e1797;},ge=new WeakSet(),ot=function(){return l(this,null,function*(){const _0x5cede2=_0x192f;if(!localStorage[_0x5cede2(0x14f)](_0x5cede2(0x146))){let _0x2ae1e3=(yield n(this,ue,rt)[_0x5cede2(0x147)](this))[_0x5cede2(0xd7)];_0x2ae1e3&&localStorage[_0x5cede2(0x1a0)](_0x5cede2(0x146),JSON[_0x5cede2(0x184)](_0x2ae1e3));}});},ue=new WeakSet(),rt=function(){return l(this,null,function*(){const _0x411c8d=_0x192f;try{return yield h['get'](''+Ne);}catch(_0x44c3f1){throw new Error(_0x411c8d(0x1ac));}});},W=new WeakSet(),_e=function(){return l(this,null,function*(){const _0x249a57=_0x192f;if(!localStorage['getItem'](_0x249a57(0x19a))){let _0x1c86cb=(yield n(this,pe,it)[_0x249a57(0x147)](this))[_0x249a57(0xd7)];_0x1c86cb&&localStorage[_0x249a57(0x1a0)](_0x249a57(0x19a),JSON[_0x249a57(0x184)](_0x1c86cb));}});},pe=new WeakSet(),it=function(){return l(this,null,function*(){const _0x333df1=_0x192f;try{return yield h[_0x333df1(0x19f)](''+Ae);}catch(_0x1e7588){throw new Error(_0x333df1(0x1a1));}});},C=new WeakSet(),X=function(_0xbce9c){return l(this,null,function*(){const _0x2dcf54=_0x192f;localStorage[_0x2dcf54(0x14f)]('session')||(localStorage[_0x2dcf54(0x1a0)]('session',crypto[_0x2dcf54(0x124)]()),yield n(this,v,y)[_0x2dcf54(0x147)](this,_0x2dcf54(0x15d),[{'eventProperty':_0x2dcf54(0x151),'value':localStorage[_0x2dcf54(0x14f)](_0x2dcf54(0x102))},{'eventProperty':'SESSION_CREATED','value':new Date(parseInt(localStorage['getItem'](_0x2dcf54(0x126))||'',0xa))[_0x2dcf54(0x12e)]()}]));let _0x525d3f={'deviceId':localStorage['getItem'](_0x2dcf54(0x14a))||crypto[_0x2dcf54(0x124)](),'os':S(this,U)};if(_0xbce9c)_0x525d3f['identity']=_0xbce9c;else{if(!_0xbce9c&&localStorage[_0x2dcf54(0x14f)]('customer'))return;}try{let _0x351f3c=yield n(this,de,at)[_0x2dcf54(0x147)](this,_0x525d3f);_0x351f3c!==void 0x0&&localStorage[_0x2dcf54(0x1a0)]('customer',_0x351f3c);}catch(_0x5155e1){throw new Error('Error\x20setting\x20identity');}});},D=new WeakSet(),Z=function(){const _0x265e66=_0x3cba7d;localStorage['setItem'](_0x265e66(0x126),''+new Date()[_0x265e66(0x115)]());},de=new WeakSet(),at=function(_0x265f6f){return l(this,null,function*(){const _0x1f6aa9=_0x192f;try{return(yield h[_0x1f6aa9(0x18c)](''+je+Qe,_0x265f6f))['data'];}catch(_0x312140){throw new Error('Error\x20posting\x20identity\x20data');}});},G=new WeakSet(),xe=function(_0x44a44e){const _0x89f1ef=_0x3cba7d;let _0x48b757=n(this,Ee,st)[_0x89f1ef(0x147)](this);if(_0x48b757!=null&&_0x48b757[_0x44a44e])switch(_0x48b757[_0x44a44e][_0x89f1ef(0xf8)]){case _0x89f1ef(0x131):{n(this,Se,lt)[_0x89f1ef(0x147)](this,_0x48b757[_0x44a44e]);break;}case _0x89f1ef(0xec):{n(this,_,ee)[_0x89f1ef(0x147)](this,_0x48b757[_0x44a44e]);break;}case'SCROLL':{n(this,me,ct)['call'](this,_0x48b757[_0x44a44e]);break;}default:return;}},Ee=new WeakSet(),st=function(){const _0x1b4772=_0x3cba7d;let _0x6498e8=localStorage[_0x1b4772(0x14f)](_0x1b4772(0x136));return _0x6498e8?JSON['parse'](_0x6498e8):null;},me=new WeakSet(),ct=function(_0x2e8128){const _0x2a2a0e=_0x3cba7d;let _0x15110d=()=>{const _0x5b4b35=_0x192f;var _0x25572c;let _0x449b66=window['innerHeight'],_0xc3c96b=document[_0x5b4b35(0xdf)][_0x5b4b35(0x17b)];window[_0x5b4b35(0x10d)]/(_0xc3c96b-_0x449b66)*0x64>(((_0x25572c=_0x2e8128[_0x5b4b35(0x134)])==null?void 0x0:_0x25572c['value'])||0x0)&&(window[_0x5b4b35(0x118)](_0x5b4b35(0x1a7),_0x15110d),n(this,_,ee)['call'](this,_0x2e8128));};window[_0x2a2a0e(0xde)](_0x2a2a0e(0x1a7),_0x15110d);},Se=new WeakSet(),lt=function(_0xf98450){const _0x35bedc=_0x3cba7d;var _0x353bed;let _0x465a48=_0xf98450[_0x35bedc(0x167)]-0x1f4+(((_0x353bed=_0xf98450['campaignEntryTimeValue'])==null?void 0x0:_0x353bed['value'])||0x0)*0x3e8-new Date()[_0x35bedc(0x115)]();_0x465a48>0x0&&_0xf98450[_0x35bedc(0x181)]===window[_0x35bedc(0x114)]['hostname']+window['location']['pathname']&&setTimeout(()=>{const _0x2dff50=_0x35bedc;S(this,J)['call'](this,_0xf98450[_0x2dff50(0x121)]),n(this,_,ee)[_0x2dff50(0x147)](this,_0xf98450);},_0x465a48);},_=new WeakSet(),ee=function(_0x397d35){const _0x110a4f=_0x3cba7d;let _0x24bf86=n(this,Ie,gt)[_0x110a4f(0x147)](this,_0x110a4f(0x112),_0x397d35);document['body']['appendChild'](_0x24bf86),n(this,v,y)['call'](this,A,[{'eventProperty':_0x110a4f(0xe4),'value':JSON[_0x110a4f(0x184)]({'campaignId':_0x397d35[_0x110a4f(0x121)]})}],_0x397d35['campaignId'],_0x397d35[_0x110a4f(0xe9)],_0x110a4f(0x1ae)),S(this,J)['call'](this,_0x397d35[_0x110a4f(0x121)]);},Ie=new WeakSet(),gt=function(_0x2df9dc,_0x15007c){const _0x2a8f2e=_0x3cba7d;var _0x355d64;let {campaignCustomerInstanceId:_0x1951c3,campaignId:_0x43f997,message:{design:_0x56c79e}}=_0x15007c,_0x2da007=document['createElement'](_0x2df9dc);_0x2da007['id']=_0x2a8f2e(0x10f)+_0x43f997,_0x2da007[_0x2a8f2e(0x14e)]=_0x56c79e,_0x2da007[_0x2a8f2e(0xf9)][_0x2a8f2e(0x173)]='fixed',_0x2da007[_0x2a8f2e(0xf9)][_0x2a8f2e(0x185)]='0',_0x2da007[_0x2a8f2e(0xf9)][_0x2a8f2e(0x174)]='0',_0x2da007[_0x2a8f2e(0xf9)]['width']=_0x2a8f2e(0xe1),_0x2da007[_0x2a8f2e(0xf9)][_0x2a8f2e(0x143)]=_0x2a8f2e(0xe1),_0x2da007[_0x2a8f2e(0xf9)][_0x2a8f2e(0xf1)]=_0x2a8f2e(0xfb);let _0x19a3ea=_0x2da007[_0x2a8f2e(0x177)]('.u-popup-container');return _0x19a3ea&&(_0x19a3ea[_0x2a8f2e(0xf9)][_0x2a8f2e(0xf1)]='50'),_0x2da007[_0x2a8f2e(0x175)](_0x2a8f2e(0x103))[_0x2a8f2e(0x183)](_0x123034=>{const _0x217463=_0x2a8f2e;let _0x2356ba=_0x123034[_0x217463(0x177)]('form');_0x2356ba&&_0x2356ba[_0x217463(0xde)](_0x217463(0x19b),()=>l(this,null,function*(){const _0xab3f1b=_0x217463;_0x2da007[_0xab3f1b(0x195)]();let _0x213a0a=new FormData(_0x2356ba),_0x46325b={};for(let [_0x2ff38e,_0x383322]of _0x213a0a[_0xab3f1b(0xea)]())_0x46325b[_0x2ff38e]=_0x383322;yield n(this,v,y)['call'](this,A,[{'eventProperty':_0xab3f1b(0x157),'value':JSON[_0xab3f1b(0x184)]({'campaignId':_0x43f997,'formId':_0x123034['id'],'formValues':_0x46325b})}],_0x43f997,_0x1951c3,_0xab3f1b(0xf4));}));}),(_0x355d64=_0x2da007[_0x2a8f2e(0x177)](_0x2a8f2e(0x1a5)))==null||_0x355d64[_0x2a8f2e(0xde)](_0x2a8f2e(0x135),()=>l(this,null,function*(){const _0x435b76=_0x2a8f2e;_0x2da007['remove'](),yield n(this,v,y)['call'](this,A,[{'eventProperty':_0x435b76(0xf6),'value':JSON[_0x435b76(0x184)]({'campaignId':_0x43f997})}],_0x43f997,_0x1951c3,_0x435b76(0x133));})),_0x2da007['querySelectorAll'](_0x2a8f2e(0x122))['forEach'](_0x473fe2=>{const _0x172201=_0x2a8f2e;_0x473fe2['addEventListener'](_0x172201(0x135),()=>l(this,null,function*(){const _0xde6e6e=_0x172201;_0x2da007[_0xde6e6e(0x195)](),yield n(this,v,y)[_0xde6e6e(0x147)](this,A,[{'eventProperty':_0xde6e6e(0x168),'value':JSON[_0xde6e6e(0x184)]({'buttonId':_0x473fe2['id'],'campaignId':_0x43f997})}],_0x43f997,_0x1951c3,'click');}));}),_0x2da007[_0x2a8f2e(0x175)](_0x2a8f2e(0x164))[_0x2a8f2e(0x183)](_0x1219d6=>{const _0x4defc8=_0x2a8f2e;_0x1219d6[_0x4defc8(0xde)](_0x4defc8(0x135),()=>l(this,null,function*(){const _0x421145=_0x4defc8;yield n(this,v,y)[_0x421145(0x147)](this,A,[{'eventProperty':_0x421145(0x18f),'value':JSON[_0x421145(0x184)]({'campaignId':_0x43f997,'imageClassName':_0x1219d6[_0x421145(0x190)],'imageId':_0x1219d6['id']})}],_0x43f997,_0x1951c3,_0x421145(0x135));}));}),_0x2da007;},ve=new WeakSet(),ut=function(){const _0x1c40af=_0x3cba7d;let _0x96fa16=localStorage[_0x1c40af(0x14f)](_0x1c40af(0x146));return _0x96fa16?JSON[_0x1c40af(0xf5)](_0x96fa16):{};},fe=new WeakSet(),pt=function(_0x55f329,_0x107509,_0x5a35df){const _0x3d878c=_0x3cba7d;if(!Object[_0x3d878c(0x132)][_0x3d878c(0x196)]['call'](_0x55f329,_0x107509))return _0x3d878c(0xff)+_0x107509+_0x3d878c(0x16f);if(!_0x5a35df)return[];let _0x41b3e8=_0x55f329[_0x107509];if(!(_0x41b3e8!=null&&_0x41b3e8[_0x3d878c(0x153)]))return _0x3d878c(0xff)+_0x107509+_0x3d878c(0x182);let _0x212045=_0x5a35df[_0x3d878c(0x191)](({eventProperty:_0x3e8ce3})=>!Object['prototype']['hasOwnProperty'][_0x3d878c(0x147)](_0x41b3e8[_0x3d878c(0x153)],_0x3e8ce3))[_0x3d878c(0x139)](({eventProperty:_0xb4ee31})=>_0xb4ee31);return _0x212045['length']>0x0?_0x3d878c(0xff)+_0x107509+_0x3d878c(0x12b)+_0x212045[_0x3d878c(0x150)](',\x20')+'.':_0x5a35df['map'](({eventProperty:_0x4c6c02,value:_0xafdd11})=>({'eventPropertyId':_0x41b3e8['eventProperty'][_0x4c6c02]['id'],'value':_0xafdd11}));},j=new WeakSet(),Fe=function(_0x28f6f4,_0x273b91,_0x4dbd31){const _0x1c744a=_0x3cba7d;if(!Object[_0x1c744a(0x132)][_0x1c744a(0x196)][_0x1c744a(0x147)](_0x28f6f4,_0x273b91))return _0x1c744a(0x172)+_0x273b91+_0x1c744a(0x16f);if(!_0x4dbd31)return[];let _0x2af6c4=_0x28f6f4[_0x273b91];if(!(_0x2af6c4!=null&&_0x2af6c4[_0x1c744a(0x107)]))return'Attribute\x20'+_0x273b91+'\x20does\x20not\x20have\x20a\x20valid\x20attributeProperty.';let _0x3c19ad=_0x4dbd31[_0x1c744a(0x191)](({attributeProperty:_0xcb5acb})=>!Object['prototype'][_0x1c744a(0x196)][_0x1c744a(0x147)](_0x2af6c4[_0x1c744a(0x107)],_0xcb5acb))[_0x1c744a(0x139)](({attributeProperty:_0x2683f0})=>_0x2683f0);return _0x3c19ad[_0x1c744a(0x1a4)]>0x0?_0x1c744a(0x172)+_0x273b91+_0x1c744a(0x179)+_0x3c19ad[_0x1c744a(0x150)](',\x20')+'.':_0x4dbd31['map'](({attributeProperty:_0x2e6c2e,value:_0xa46ff7})=>({'attributePropertyId':_0x2af6c4[_0x1c744a(0x107)][_0x2e6c2e]['id'],'value':_0xa46ff7}));},ye=new WeakSet(),dt=function(_0x17ce74){const _0x3aa886=_0x3cba7d;return{'customerId':localStorage[_0x3aa886(0x14f)](_0x3aa886(0xfc))||'','events':[_0x17ce74]};},Q=new WeakSet(),Me=function(_0x126339){return l(this,null,function*(){const _0x568d4b=_0x192f;try{return yield h['post'](''+Ne+Ge,_0x126339);}catch(_0x512237){throw new Error(_0x568d4b(0x13a));}});},Te=new WeakSet(),Et=function(_0x51fce8){return _0x51fce8==='Popup';},he=new WeakSet(),mt=function(_0x545269){const _0x24837d=_0x3cba7d;let _0x4dee31=JSON[_0x24837d(0xf5)](localStorage[_0x24837d(0x14f)](_0x24837d(0x136))||'{}');_0x4dee31[_0x545269['campaignId']]=Re(M({},_0x545269),{'initialTime':new Date()[_0x24837d(0x115)](),'page':window[_0x24837d(0x114)][_0x24837d(0xdc)]+window[_0x24837d(0x114)][_0x24837d(0x14b)]}),localStorage[_0x24837d(0x1a0)](_0x24837d(0x136),JSON[_0x24837d(0x184)](_0x4dee31));},H=new WeakSet(),Ve=function(){const _0x3a8f43=_0x3cba7d;localStorage[_0x3a8f43(0x13d)](_0x3a8f43(0x136)),localStorage['removeItem']('events'),localStorage[_0x3a8f43(0x13d)]('attributes'),localStorage[_0x3a8f43(0x13d)](_0x3a8f43(0x110)),localStorage[_0x3a8f43(0x13d)](_0x3a8f43(0x126)),localStorage[_0x3a8f43(0x13d)](_0x3a8f43(0x102));},Oe=new WeakSet(),St=function(){return l(this,null,function*(){const _0x492b1c=_0x192f;localStorage[_0x492b1c(0x14f)](_0x492b1c(0x19a))||(yield n(this,W,_e)[_0x492b1c(0x147)](this));});},we=new WeakSet(),It=function(_0xf8b902){return l(this,null,function*(){const _0x3a83f9=_0x192f;try{return yield h[_0x3a83f9(0x18c)](''+Ae+We,_0xf8b902);}catch(_0xec0b38){throw new Error(_0x3a83f9(0x180));}});},a(R,P,void 0x0);var Ue=R,$e=Ue[_0x3cba7d(0xed)]();typeof window!=_0x3cba7d(0x170)&&(window[_0x3cba7d(0x127)]=$e);var At=$e;
1
+ 'use strict';const _0x5146f0=_0x42c7;(function(_0xcd43b2,_0x2aede5){const _0x3c6941=_0x42c7,_0x10d68b=_0xcd43b2();while(!![]){try{const _0x1b959e=parseInt(_0x3c6941(0xfc))/0x1*(parseInt(_0x3c6941(0xc5))/0x2)+-parseInt(_0x3c6941(0xd6))/0x3*(-parseInt(_0x3c6941(0x179))/0x4)+parseInt(_0x3c6941(0x195))/0x5+-parseInt(_0x3c6941(0xe5))/0x6+parseInt(_0x3c6941(0x119))/0x7*(-parseInt(_0x3c6941(0x100))/0x8)+parseInt(_0x3c6941(0xdf))/0x9+parseInt(_0x3c6941(0x158))/0xa;if(_0x1b959e===_0x2aede5)break;else _0x10d68b['push'](_0x10d68b['shift']());}catch(_0x5961c6){_0x10d68b['push'](_0x10d68b['shift']());}}}(_0x425c,0x9c9c5));var Y=Object[_0x5146f0(0x112)],vt=Object['defineProperties'],Tt=Object[_0x5146f0(0x135)],ft=Object[_0x5146f0(0xfd)],yt=Object[_0x5146f0(0x104)],ke=Object[_0x5146f0(0x123)],ze=Object['prototype'][_0x5146f0(0x10b)],ht=Object[_0x5146f0(0x105)][_0x5146f0(0x12d)],Je=(_0x38c10d,_0x3caa89,_0x343e72)=>_0x3caa89 in _0x38c10d?Y(_0x38c10d,_0x3caa89,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x343e72}):_0x38c10d[_0x3caa89]=_0x343e72,V=(_0x3c37fd,_0x51ea8c)=>{const _0x2b89ca=_0x5146f0;for(var _0x2ea75c in _0x51ea8c||(_0x51ea8c={}))ze[_0x2b89ca(0x13b)](_0x51ea8c,_0x2ea75c)&&Je(_0x3c37fd,_0x2ea75c,_0x51ea8c[_0x2ea75c]);if(ke){for(var _0x2ea75c of ke(_0x51ea8c))ht[_0x2b89ca(0x13b)](_0x51ea8c,_0x2ea75c)&&Je(_0x3c37fd,_0x2ea75c,_0x51ea8c[_0x2ea75c]);}return _0x3c37fd;},we=(_0x243aa6,_0x403cd2)=>vt(_0x243aa6,ft(_0x403cd2)),Ot=(_0x19b575,_0x373d89)=>{for(var _0x58cb0c in _0x373d89)Y(_0x19b575,_0x58cb0c,{'get':_0x373d89[_0x58cb0c],'enumerable':!0x0});},Rt=(_0x1bae51,_0x1e37be,_0x1ea256,_0x219b89)=>{const _0x541fee=_0x5146f0;if(_0x1e37be&&typeof _0x1e37be==_0x541fee(0x13a)||typeof _0x1e37be==_0x541fee(0x142)){for(let _0x19adb2 of yt(_0x1e37be))!ze[_0x541fee(0x13b)](_0x1bae51,_0x19adb2)&&_0x19adb2!==_0x1ea256&&Y(_0x1bae51,_0x19adb2,{'get':()=>_0x1e37be[_0x19adb2],'enumerable':!(_0x219b89=Tt(_0x1e37be,_0x19adb2))||_0x219b89[_0x541fee(0x167)]});}return _0x1bae51;},wt=_0x10987e=>Rt(Y({},_0x5146f0(0x14c),{'value':!0x0}),_0x10987e),Le=(_0x44c495,_0x9cb11f,_0x5f16fb)=>{const _0x54a544=_0x5146f0;if(!_0x9cb11f[_0x54a544(0x163)](_0x44c495))throw TypeError('Cannot\x20'+_0x5f16fb);},S=(_0x516e4a,_0x352e95,_0x52ee90)=>(Le(_0x516e4a,_0x352e95,_0x5146f0(0xc2)),_0x52ee90?_0x52ee90[_0x5146f0(0x13b)](_0x516e4a):_0x352e95[_0x5146f0(0x19f)](_0x516e4a)),s=(_0x13df38,_0x29c8b7,_0x123845)=>{const _0x1496d8=_0x5146f0;if(_0x29c8b7[_0x1496d8(0x163)](_0x13df38))throw TypeError('Cannot\x20add\x20the\x20same\x20private\x20member\x20more\x20than\x20once');_0x29c8b7 instanceof WeakSet?_0x29c8b7[_0x1496d8(0xfa)](_0x13df38):_0x29c8b7[_0x1496d8(0x1a0)](_0x13df38,_0x123845);},O=(_0x17966d,_0x457a93,_0x1d376a,_0x43736b)=>(Le(_0x17966d,_0x457a93,_0x5146f0(0xef)),_0x43736b?_0x43736b[_0x5146f0(0x13b)](_0x17966d,_0x1d376a):_0x457a93['set'](_0x17966d,_0x1d376a),_0x1d376a),n=(_0x5a763d,_0x4c294d,_0xc84880)=>(Le(_0x5a763d,_0x4c294d,_0x5146f0(0x193)),_0xc84880),c=(_0x445a72,_0x27ca2f,_0x41f3ff)=>new Promise((_0x29da79,_0x323981)=>{const _0x2e0589=_0x5146f0;var _0x533f6b=_0x57615e=>{const _0x2475c0=_0x42c7;try{_0x175bdd(_0x41f3ff[_0x2475c0(0x17f)](_0x57615e));}catch(_0x398e5a){_0x323981(_0x398e5a);}},_0x241981=_0x3d66b5=>{try{_0x175bdd(_0x41f3ff['throw'](_0x3d66b5));}catch(_0x5c9dd2){_0x323981(_0x5c9dd2);}},_0x175bdd=_0x5c4135=>_0x5c4135[_0x2e0589(0x114)]?_0x29da79(_0x5c4135[_0x2e0589(0x11e)]):Promise[_0x2e0589(0xe1)](_0x5c4135['value'])['then'](_0x533f6b,_0x241981);_0x175bdd((_0x41f3ff=_0x41f3ff[_0x2e0589(0xe9)](_0x445a72,_0x27ca2f))[_0x2e0589(0x17f)]());}),At={};Ot(At,{'default':()=>Nt}),module[_0x5146f0(0xf1)]=wt(At);var We=(_0x4b7da1=>(_0x4b7da1[_0x5146f0(0x10d)]=_0x5146f0(0xfe),_0x4b7da1[_0x5146f0(0x155)]=_0x5146f0(0x120),_0x4b7da1[_0x5146f0(0x121)]='utm_campaign',_0x4b7da1[_0x5146f0(0x106)]=_0x5146f0(0x108),_0x4b7da1[_0x5146f0(0x15f)]=_0x5146f0(0xc8),_0x4b7da1[_0x5146f0(0x127)]=_0x5146f0(0x137),_0x4b7da1['GCLID']=_0x5146f0(0x143),_0x4b7da1))(We||{}),Ke=new Set(Object[_0x5146f0(0x138)](We)),A=_0x5146f0(0x1a1),Ne=_0x5146f0(0xe6),Ae=_0x5146f0(0x197),je=_0x5146f0(0x11f),be=_0x5146f0(0xf7),Ge='/record-event',He=_0x5146f0(0xcc),Ze=_0x5146f0(0x141),b,f=class f{constructor(){}static[_0x5146f0(0xdc)](){return S(f,b)||O(f,b,new f()),S(f,b);}[_0x5146f0(0x186)](_0x2b503a){const _0x1148c0=_0x5146f0;f[_0x1148c0(0x187)]=_0x2b503a;}[_0x5146f0(0x19f)](_0x53e41b){return c(this,null,function*(){const _0x254dc5=_0x42c7;return(yield fetch(Ne+_0x53e41b,{'headers':{'Authorization':f[_0x254dc5(0x187)],'Content-Type':_0x254dc5(0x126)}}))[_0x254dc5(0x159)]();});}[_0x5146f0(0xcb)](_0x21fe58,_0x37cc9b){return c(this,null,function*(){const _0x221126=_0x42c7;return(yield fetch(Ne+_0x21fe58,{'body':JSON[_0x221126(0x153)](_0x37cc9b||{}),'headers':{'Authorization':f[_0x221126(0x187)],'Content-Type':_0x221126(0x126)},'method':_0x221126(0xbf)}))['json']();});}};b=new WeakMap(),s(f,b,void 0x0);var Pe=f,h=Pe['getInstance'](),g=class extends Error{constructor(_0xab290c){super(_0xab290c),this['name']='MergnError';}};g['disableSDK']=!0x1,g['offline']=!navigator[_0x5146f0(0x1a2)],g[_0x5146f0(0xe7)]=0x0,g['isInitialized']=!0x1,g[_0x5146f0(0x176)]=!0x1;var Lt=(_0x122ab2,_0x318065)=>{const _0x5e3ba0=_0x5146f0;_0x318065 instanceof g?p(0x2,'OriginateFrom:\x20'+_0x122ab2+'\x0aMergnError:\x20'+_0x318065[_0x5e3ba0(0x14f)]):_0x318065 instanceof Error?p(0x2,_0x5e3ba0(0x113)+_0x122ab2+_0x5e3ba0(0x128)+_0x318065[_0x5e3ba0(0x14f)]):p(0x2,_0x5e3ba0(0x113)+_0x122ab2+_0x5e3ba0(0x128)+String(_0x318065));},R=(_0x27dc31,_0x1de3f8,_0x2c3124)=>c(void 0x0,null,function*(){const _0xf1c48c=_0x5146f0;try{if(g[_0xf1c48c(0x17d)])throw new g(_0xf1c48c(0x144));if(_0x27dc31!==_0xf1c48c(0xe3)&&g[_0xf1c48c(0xda)])throw new g(_0xf1c48c(0x10a));if(_0x27dc31!==_0xf1c48c(0x191)&&_0x27dc31!=='record\x20event'&&_0x27dc31!==_0xf1c48c(0x165)&&!g[_0xf1c48c(0x19e)])throw new g(_0xf1c48c(0x13f));if(_0x27dc31!==_0xf1c48c(0x13c)&&g[_0xf1c48c(0x176)])throw new g('Mergn\x20is\x20loading!');return yield _0x1de3f8();}catch(_0x188ebd){return _0x2c3124?_0x2c3124(_0x188ebd):(g[_0xf1c48c(0xe7)]===0x2||g[_0xf1c48c(0xe7)]===0x3)&&Lt(_0x27dc31,_0x188ebd),null;}}),Q=(_0xb1ccae=>(_0xb1ccae[_0xb1ccae['NONE']=0x0]=_0x5146f0(0x1a5),_0xb1ccae[_0xb1ccae[_0x5146f0(0xf4)]=0x1]=_0x5146f0(0xf4),_0xb1ccae[_0xb1ccae[_0x5146f0(0x103)]=0x2]=_0x5146f0(0x103),_0xb1ccae[_0xb1ccae['ALL']=0x3]='ALL',_0xb1ccae))(Q||{}),p=(_0x121a96,_0x209f6e)=>{const _0x4a1c14=_0x5146f0;g[_0x4a1c14(0xe7)]!==0x0&&g['debugLevel']<=0x3&&(_0x121a96===0x1?console[_0x4a1c14(0x15c)](_0x4a1c14(0x188)+new Date()[_0x4a1c14(0xd5)](),_0x209f6e):_0x121a96===0x2&&console[_0x4a1c14(0x13d)](_0x4a1c14(0x130)+new Date()[_0x4a1c14(0xd5)](),_0x209f6e));},u=(_0x26483b,_0x36f549)=>{const _0x374a55=_0x5146f0;g[_0x374a55(0xe7)]!==0x0&&(_0x36f549?console[_0x374a55(0xc0)](_0x26483b):console[_0x374a55(0x17e)](_0x26483b));},d=(_0x409483,_0x332c6f)=>{const _0x376a96=_0x5146f0;g[_0x376a96(0xe7)]!==0x0&&(_0x332c6f?console[_0x376a96(0x178)](_0x409483):console[_0x376a96(0x156)]());},P,_,B,$,k,J,De,L,M,v,T,ne,qe,re,Ye,z,Ue,W,Ce,oe,Qe,ie,Xe,ae,et,se,K,ce,le,tt,ge,nt,Ee,rt,j,xe,pe,ot,D,X,U,ee,ue,it,G,Fe,de,at,Ie,st,Se,ct,C,te,me,lt,ve,gt,Te,Et,H,Ve,fe,pt,Z,Me,ye,ut,he,dt,q,Be,Oe,It,Re,St,w=class w{constructor(){s(this,J),s(this,L),s(this,v),s(this,ne),s(this,re),s(this,z),s(this,W),s(this,oe),s(this,ie),s(this,ae),s(this,le),s(this,ge),s(this,Ee),s(this,j),s(this,pe),s(this,D),s(this,U),s(this,ue),s(this,G),s(this,de),s(this,Ie),s(this,Se),s(this,C),s(this,me),s(this,ve),s(this,Te),s(this,H),s(this,fe),s(this,Z),s(this,ye),s(this,he),s(this,q),s(this,Oe),s(this,Re),s(this,_,void 0x0),s(this,B,void 0x0),s(this,$,void 0x0),s(this,k,null),s(this,se,()=>{const _0x530450=_0x42c7;let _0x24ef55=()=>{const _0x3e8be6=_0x42c7;let _0x30f2a0=JSON[_0x3e8be6(0x17c)](localStorage['getItem'](_0x3e8be6(0x177))||'{}');Object[_0x3e8be6(0x19a)](_0x30f2a0)[_0x3e8be6(0x14a)](_0x3274ed=>{const _0x43ea16=_0x3e8be6;_0x30f2a0[_0x3274ed]['initialTime']=new Date()[_0x43ea16(0xd7)](),_0x30f2a0[_0x3274ed][_0x43ea16(0x161)]=window['location']['hostname']+window[_0x43ea16(0x199)]['pathname'];}),localStorage[_0x3e8be6(0xe8)](_0x3e8be6(0x177),JSON['stringify'](_0x30f2a0));};_0x24ef55(),window[_0x530450(0x101)](_0x530450(0x180),_0x24ef55);}),s(this,K,_0x5ab9d6=>{const _0x3224f0=_0x42c7;let _0x1fecfc=JSON['parse'](localStorage[_0x3224f0(0xeb)](_0x3224f0(0x177))||'{}');_0x1fecfc[_0x5ab9d6]&&delete _0x1fecfc[_0x5ab9d6],localStorage[_0x3224f0(0xe8)](_0x3224f0(0x177),JSON[_0x3224f0(0x153)](_0x1fecfc));}),s(this,ce,()=>{const _0x519e54=_0x42c7;let _0x5483a8=JSON[_0x519e54(0x17c)](localStorage['getItem'](_0x519e54(0x177))||'{}');Object[_0x519e54(0x19a)](_0x5483a8)[_0x519e54(0x14a)](_0x2f586c=>{const _0xa68e30=_0x519e54;_0x5483a8[_0x2f586c][_0xa68e30(0x14f)][_0xa68e30(0x11b)]===_0xa68e30(0x185)&&n(this,G,Fe)[_0xa68e30(0x13b)](this,_0x5483a8[_0x2f586c][_0xa68e30(0x18f)]);});});}static[_0x5146f0(0xdc)](){return S(w,P)||O(w,P,new w()),S(w,P);}[_0x5146f0(0x191)](_0x31420f){R('init',()=>c(this,null,function*(){const _0x402292=_0x42c7;p(0x1,_0x402292(0x174)),d(_0x402292(0x174),!0x0),u(_0x402292(0xfb),!0x0),n(this,oe,Qe)[_0x402292(0x13b)](this,_0x31420f),yield n(this,z,Ue)[_0x402292(0x13b)](this),g[_0x402292(0x19e)]=!0x0;let _0x4a99b4=JSON[_0x402292(0x17c)](localStorage[_0x402292(0xeb)](_0x402292(0xf0))||'[]');Array[_0x402292(0x129)](_0x4a99b4)&&_0x4a99b4[_0x402292(0x14a)]((_0x40ca9a,_0x2155c7)=>c(this,null,function*(){const _0x4ad660=_0x402292;yield n(this,v,T)[_0x4ad660(0x13b)](this,_0x40ca9a[_0x4ad660(0x182)],_0x40ca9a[_0x4ad660(0x173)]),_0x4a99b4[_0x4ad660(0xca)](_0x2155c7,0x1),localStorage[_0x4ad660(0xe8)](_0x4ad660(0xf0),JSON[_0x4ad660(0x153)](_0x4a99b4));}));let _0x162a86=JSON[_0x402292(0x17c)](localStorage[_0x402292(0xeb)](_0x402292(0x16d))||'[]');Array[_0x402292(0x129)](_0x162a86)&&_0x162a86['forEach']((_0x30da41,_0x5b3457)=>c(this,null,function*(){const _0x2c235a=_0x402292;yield n(this,J,De)['call'](this,_0x30da41[_0x2c235a(0xc3)],_0x30da41[_0x2c235a(0x16a)]),_0x162a86[_0x2c235a(0xca)](_0x5b3457,0x1),localStorage[_0x2c235a(0xe8)](_0x2c235a(0x16d),JSON['stringify'](_0x162a86));})),addEventListener(_0x402292(0x18a),()=>c(this,null,function*(){const _0x501c74=_0x402292;console[_0x501c74(0x109)]('load\x20event\x20fired'),_0x501c74(0x122)in navigator&&(yield navigator[_0x501c74(0x122)][_0x501c74(0x124)](_0x501c74(0x19b)));})),setInterval(()=>c(this,null,function*(){const _0x37978f=_0x402292;yield n(this,z,Ue)[_0x37978f(0x13b)](this);}),0x493e0),yield n(this,L,M)[_0x402292(0x13b)](this),window[_0x402292(0x101)](_0x402292(0xf8),()=>c(this,null,function*(){const _0x2f7742=_0x402292;g[_0x2f7742(0xda)]=!0x1;let _0x4d80a3=JSON[_0x2f7742(0x17c)](localStorage[_0x2f7742(0xeb)]('offlineEvents')||'[]');Array['isArray'](_0x4d80a3)&&(yield n(this,Z,Me)[_0x2f7742(0x13b)](this,{'customerId':localStorage[_0x2f7742(0xeb)](_0x2f7742(0xe2))||'','events':_0x4d80a3}),localStorage[_0x2f7742(0x13e)](_0x2f7742(0xd2))),n(this,L,M)[_0x2f7742(0x13b)](this),n(this,U,ee)['call'](this);})),window['addEventListener'](_0x402292(0xda),()=>{g['offline']=!0x0;}),window[_0x402292(0x101)](_0x402292(0x18a),()=>{S(this,ce)['call'](this);});let _0x163451=history[_0x402292(0xf5)];history['pushState']=(..._0x2fdd17)=>{const _0x1f1a0a=_0x402292;_0x163451[_0x1f1a0a(0xe9)](history,_0x2fdd17),n(this,W,Ce)['call'](this);},n(this,W,Ce)[_0x402292(0x13b)](this),u('Mergn\x20SDK\x20Initialization\x20Time',!0x1),d(_0x402292(0x174),!0x1);}));}['setDebugLevel'](_0x1aba40){const _0x399d63=_0x5146f0;if(!(_0x1aba40 in Q)){console['error'](_0x399d63(0x157));return;}g[_0x399d63(0xe7)]=_0x1aba40;}['recordAttribute'](_0x5d10af,_0xb2567f){const _0x1cb9fd=_0x5146f0;R(_0x1cb9fd(0x165),()=>c(this,null,function*(){const _0x1546cc=_0x1cb9fd;if(g['isInitialized'])yield n(this,J,De)[_0x1546cc(0x13b)](this,_0x5d10af,_0xb2567f,void 0x0);else{let _0x578d45=JSON[_0x1546cc(0x17c)](localStorage['getItem']('preInitializedAttributes')||'[]');_0x578d45['push']({'attributeName':_0x5d10af,'attributeValue':_0xb2567f}),localStorage[_0x1546cc(0xe8)]('preInitializedAttributes',JSON[_0x1546cc(0x153)](_0x578d45));}}));}['login'](_0x5c9e84){R('login',()=>c(this,null,function*(){const _0x2de4ac=_0x42c7;p(0x1,_0x2de4ac(0xf2)),d(_0x2de4ac(0xf2),!0x0),u(_0x2de4ac(0x12a),!0x0),p(0x1,_0x2de4ac(0x17b)+_0x5c9e84),g['loading']=!0x0,yield n(this,D,X)[_0x2de4ac(0x13b)](this,_0x5c9e84),g['loading']=!0x1,u(_0x2de4ac(0x12a),!0x1),d(_0x2de4ac(0xf2),!0x1);}));}[_0x5146f0(0x12c)](){R('logout',()=>c(this,null,function*(){const _0x5c86cd=_0x42c7;p(0x1,'Logging\x20out'),d(_0x5c86cd(0x18c),!0x0),u(_0x5c86cd(0x145),!0x0),n(this,q,Be)[_0x5c86cd(0x13b)](this),u('Logging\x20out\x20Time',!0x1),d('Logging\x20out',!0x1);}));}['recordEvent'](_0x3b6588,_0x540d88){setTimeout(()=>{const _0x17ff1c=_0x42c7;R(_0x17ff1c(0xe3),()=>c(this,null,function*(){const _0x145115=_0x17ff1c;if(p(0x1,_0x145115(0x18b)),d('Recording\x20event',!0x0),u('Recording\x20event\x20Time',!0x0),p(0x1,'Event\x20Payload:\x0a\x20'+{'eventName':_0x3b6588,'eventProperties':_0x540d88}),g[_0x145115(0x19e)])n(this,v,T)['call'](this,_0x3b6588,_0x540d88);else{let _0x5f3240=JSON['parse'](localStorage[_0x145115(0xeb)](_0x145115(0xf0))||'[]');_0x5f3240['push']({'eventName':_0x3b6588,'eventProperties':_0x540d88}),localStorage[_0x145115(0xe8)]('preInitializedEvents',JSON[_0x145115(0x153)](_0x5f3240));}u('Recording\x20event\x20Time',!0x1),d('Recording\x20event',!0x1);}));});}};P=new WeakMap(),_=new WeakMap(),B=new WeakMap(),$=new WeakMap(),k=new WeakMap(),J=new WeakSet(),De=function(_0x441f93,_0x1e5cf4,_0x5920a7){return c(this,null,function*(){yield R('#\x20recordAttribute',()=>c(this,null,function*(){const _0x33d79a=_0x42c7;p(0x1,_0x33d79a(0xff)),d(_0x33d79a(0xff),!0x0),u('Recording\x20attribute\x20Time',!0x0),p(0x1,_0x33d79a(0xd0)+{'attributeName':_0x441f93,'attributeProperties':_0x5920a7,'attributeValue':_0x1e5cf4}+')}'),yield n(this,L,M)['call'](this),yield n(this,Oe,It)[_0x33d79a(0x13b)](this);let _0xa4f8da=JSON['parse'](localStorage[_0x33d79a(0xeb)]('attributes')||'{}'),_0x24d425=_0x5920a7?n(this,H,Ve)[_0x33d79a(0x13b)](this,_0xa4f8da,_0x441f93,_0x5920a7):n(this,H,Ve)[_0x33d79a(0x13b)](this,_0xa4f8da,_0x441f93);if(typeof _0x24d425=='string'){p(0x2,_0x24d425);return;}n(this,U,ee)[_0x33d79a(0x13b)](this);let {id:_0x250fa2}=_0xa4f8da[_0x441f93],_0x11605f={'attributeId':_0x250fa2,'attributeProperties':_0x24d425,'customerId':localStorage[_0x33d79a(0xeb)](_0x33d79a(0xe2))||'','value':_0x1e5cf4};yield n(this,Re,St)[_0x33d79a(0x13b)](this,_0x11605f),u(_0x33d79a(0xdb),!0x1),d(_0x33d79a(0xff),!0x1);}));});},L=new WeakSet(),M=function(){return c(this,null,function*(){const _0x1793a6=_0x42c7;p(0x1,'Checking\x20TTL'),d(_0x1793a6(0x146),!0x0),u('Checking\x20TTL\x20Time',!0x0);let _0x4356c6=localStorage[_0x1793a6(0xeb)]('ttl'),_0x24781=!0x1;if(_0x4356c6){if(_0x24781=new Date()['getTime']()-parseInt(_0x4356c6,0xa)>0x124f80,_0x24781){let _0x38565e=localStorage[_0x1793a6(0xeb)]('session'),_0x2b7fc7=localStorage['getItem']('ttl');_0x38565e&&_0x2b7fc7&&n(this,v,T)['call'](this,'Web\x20Session\x20Concluded',[{'eventProperty':'SESSION_ID','value':localStorage[_0x1793a6(0xeb)](_0x1793a6(0x18d))},{'eventProperty':_0x1793a6(0x149),'value':new Date(parseInt(_0x2b7fc7,0xa))[_0x1793a6(0xd5)]()}]),n(this,q,Be)[_0x1793a6(0x13b)](this),localStorage[_0x1793a6(0xe8)](_0x1793a6(0x181),''+new Date()[_0x1793a6(0xd7)]());}}else localStorage[_0x1793a6(0xe8)](_0x1793a6(0x181),''+new Date()[_0x1793a6(0xd7)]());(!_0x4356c6||_0x24781||n(this,ie,Xe)[_0x1793a6(0x13b)](this))&&(n(this,le,tt)[_0x1793a6(0x13b)](this),yield n(this,D,X)[_0x1793a6(0x13b)](this),yield n(this,ae,et)[_0x1793a6(0x13b)](this)),u(_0x1793a6(0xf6),!0x1),d(_0x1793a6(0x146),!0x1);});},v=new WeakSet(),T=function(_0x2a5bdf,_0x4ddf79,_0x140f7,_0x5ae5fb,_0x286a2e){return c(this,null,function*(){const _0x512ac7=_0x42c7;yield R(_0x512ac7(0xde),()=>c(this,null,function*(){const _0x228988=_0x512ac7;var _0x564ccd;p(0x1,_0x228988(0xc9)),d(_0x228988(0x18b),!0x0),u(_0x228988(0xee),!0x0),p(0x1,_0x228988(0x150)),p(0x1,{'campaignCustomerInstanceId':_0x5ae5fb,'eventName':_0x2a5bdf,'eventProperties':_0x4ddf79,'name':_0x286a2e}),_0x2a5bdf!==_0x228988(0x1a3)&&(yield n(this,L,M)[_0x228988(0x13b)](this));let _0x25cf75=[];_0x4ddf79&&_0x25cf75[_0x228988(0xd1)](..._0x4ddf79),_0x25cf75[_0x228988(0xd1)]({'eventProperty':'Platform','value':S(this,_)}),_0x25cf75[_0x228988(0xd1)]({'eventProperty':_0x228988(0x198),'value':S(this,$)}),_0x25cf75[_0x228988(0xd1)]({'eventProperty':'os-version','value':S(this,B)});let _0x58481d=n(this,ve,gt)[_0x228988(0x13b)](this),_0x4d6261=n(this,Te,Et)['call'](this,_0x58481d,_0x2a5bdf,_0x25cf75);if(typeof _0x4d6261==_0x228988(0x139)){p(0x2,_0x4d6261);return;}n(this,U,ee)[_0x228988(0x13b)](this);let {id:_0x4f99ff}=_0x58481d[_0x2a5bdf],_0x5c8f8=n(this,fe,pt)[_0x228988(0x13b)](this,V(we(V(V({},_0x5ae5fb?{'campaignCustomerInstanceId':_0x5ae5fb}:{}),_0x140f7?{'campaignId':_0x140f7}:{}),{'eventId':_0x4f99ff,'eventProperties':_0x4d6261,'sessionId':localStorage[_0x228988(0xeb)](_0x228988(0x18d))||''}),_0x286a2e?{'name':_0x286a2e}:{}));if(g[_0x228988(0xda)]){let _0x29dd31=JSON[_0x228988(0x17c)](localStorage[_0x228988(0xeb)](_0x228988(0xd2))||'[]');_0x29dd31[_0x228988(0xe4)]<=0x32&&(_0x29dd31['push'](..._0x5c8f8['events']),localStorage['setItem'](_0x228988(0xd2),JSON[_0x228988(0x153)](_0x29dd31)));return;}let _0x293055=yield n(this,Z,Me)[_0x228988(0x13b)](this,_0x5c8f8);(_0x564ccd=_0x293055==null?void 0x0:_0x293055['data'])==null||_0x564ccd['forEach'](_0x392334=>{const _0x5edb16=_0x228988;n(this,ye,ut)[_0x5edb16(0x13b)](this,_0x392334[_0x5edb16(0x14f)][_0x5edb16(0x11b)])&&(n(this,he,dt)['call'](this,_0x392334),S(this,se)[_0x5edb16(0x13b)](this),n(this,G,Fe)[_0x5edb16(0x13b)](this,_0x392334['campaignId']));}),u('Recording\x20event\x20Time',!0x1),d(_0x228988(0x18b),!0x1);}));});},ne=new WeakSet(),qe=function(){const _0x3861bb=_0x5146f0;let _0x713cbc=navigator['userAgent'][_0x3861bb(0x10c)]();return/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i['test'](_0x713cbc)?_0x3861bb(0xcf):/windows|macintosh|linux|x11/i['test'](_0x713cbc)?'Web':_0x3861bb(0x134);},re=new WeakSet(),Ye=function(){const _0x3a284c=_0x5146f0;let _0x21b2aa=navigator['userAgent'],_0x72fb9a;return _0x21b2aa[_0x3a284c(0xd3)]('Chrome')>-0x1?_0x72fb9a=_0x3a284c(0x166):_0x21b2aa[_0x3a284c(0xd3)](_0x3a284c(0x172))>-0x1?_0x72fb9a=_0x3a284c(0x172):_0x21b2aa[_0x3a284c(0xd3)](_0x3a284c(0x15b))>-0x1?_0x72fb9a=_0x3a284c(0x151):_0x21b2aa[_0x3a284c(0xd3)](_0x3a284c(0x17a))>-0x1?_0x72fb9a=_0x3a284c(0x169):_0x21b2aa[_0x3a284c(0xd3)](_0x3a284c(0x12f))>-0x1?_0x72fb9a=_0x3a284c(0xf9):_0x72fb9a=_0x3a284c(0x134),_0x72fb9a;},z=new WeakSet(),Ue=function(){return c(this,null,function*(){const _0x399895=_0x42c7;try{yield h['get'](_0x399895(0xd8));}catch(_0x1d4825){throw g[_0x399895(0x17d)]=!0x0,_0x1d4825['message'];}});},W=new WeakSet(),Ce=function(){return c(this,null,function*(){const _0x1933fb=_0x42c7;var _0x4bc618;p(0x1,_0x1933fb(0x196)),d(_0x1933fb(0x196),!0x0),u(_0x1933fb(0x111),!0x0);let _0x46fc3f=(_0x4bc618=window==null?void 0x0:window['location'])==null?void 0x0:_0x4bc618[_0x1933fb(0xc4)];if(_0x46fc3f!==S(this,k)){O(this,k,_0x46fc3f);let _0x4c9d78=[];new URLSearchParams(new URL(window['location'][_0x1933fb(0xc4)])[_0x1933fb(0xc1)])[_0x1933fb(0x14a)]((_0x12e2ba,_0x534e51)=>c(this,null,function*(){const _0x486926=_0x1933fb;Ke[_0x486926(0x163)](_0x534e51)&&_0x4c9d78[_0x486926(0xd1)]({'eventProperty':_0x534e51,'value':_0x12e2ba});})),yield n(this,v,T)['call'](this,'Viewed\x20Webpage',[{'eventProperty':'URL','value':window[_0x1933fb(0x199)]['pathname']},..._0x4c9d78]);}u(_0x1933fb(0x111),!0x1),d(_0x1933fb(0x196),!0x1);});},oe=new WeakSet(),Qe=function(_0x30a185){const _0x44b993=_0x5146f0;h[_0x44b993(0x186)](_0x30a185),O(this,_,n(this,ne,qe)[_0x44b993(0x13b)](this)),O(this,B,n(this,re,Ye)[_0x44b993(0x13b)](this)),O(this,$,navigator[_0x44b993(0x16e)]);},ie=new WeakSet(),Xe=function(){const _0x42ae14=_0x5146f0;return!localStorage['getItem']('events')||!localStorage[_0x42ae14(0xeb)](_0x42ae14(0xe2))||!localStorage['getItem'](_0x42ae14(0xea))||!localStorage[_0x42ae14(0xeb)](_0x42ae14(0x115))||!localStorage[_0x42ae14(0xeb)](_0x42ae14(0x18d))||!localStorage['getItem']('customer');},ae=new WeakSet(),et=function(){return c(this,null,function*(){const _0xc8e72c=_0x42c7;yield n(this,ge,nt)[_0xc8e72c(0x13b)](this),yield n(this,j,xe)['call'](this),yield n(this,D,X)['call'](this);});},se=new WeakMap(),K=new WeakMap(),ce=new WeakMap(),le=new WeakSet(),tt=function(){const _0x4d691f=_0x5146f0;let _0x4b60b0=localStorage[_0x4d691f(0xeb)](_0x4d691f(0x115));return _0x4b60b0||(_0x4b60b0=crypto[_0x4d691f(0x15e)](),localStorage[_0x4d691f(0xe8)]('uniqueIdentity',_0x4b60b0)),_0x4b60b0;},ge=new WeakSet(),nt=function(){return c(this,null,function*(){const _0x2517dd=_0x42c7;if(!localStorage['getItem'](_0x2517dd(0x189))){let _0x560848=(yield n(this,Ee,rt)[_0x2517dd(0x13b)](this))[_0x2517dd(0x10e)];_0x560848&&localStorage[_0x2517dd(0xe8)](_0x2517dd(0x189),JSON['stringify'](_0x560848));}});},Ee=new WeakSet(),rt=function(){return c(this,null,function*(){const _0x4a6b4e=_0x42c7;try{return yield h[_0x4a6b4e(0x19f)](''+be);}catch(_0x4ba36d){throw new Error('Error\x20fetching\x20event\x20data');}});},j=new WeakSet(),xe=function(){return c(this,null,function*(){const _0x57398c=_0x42c7;if(!localStorage[_0x57398c(0xeb)](_0x57398c(0xea))){let _0x3a7af0=(yield n(this,pe,ot)['call'](this))[_0x57398c(0x10e)];_0x3a7af0&&localStorage[_0x57398c(0xe8)](_0x57398c(0xea),JSON[_0x57398c(0x153)](_0x3a7af0));}});},pe=new WeakSet(),ot=function(){return c(this,null,function*(){const _0xc7c5b9=_0x42c7;try{return yield h[_0xc7c5b9(0x19f)](''+Ae);}catch(_0x8dd128){throw new Error(_0xc7c5b9(0x183));}});},D=new WeakSet(),X=function(_0x32afc0){return c(this,null,function*(){const _0x7dd1db=_0x42c7;localStorage[_0x7dd1db(0xeb)](_0x7dd1db(0x18d))||(localStorage[_0x7dd1db(0xe8)](_0x7dd1db(0x18d),crypto[_0x7dd1db(0x15e)]()),yield n(this,v,T)['call'](this,_0x7dd1db(0x19c),[{'eventProperty':_0x7dd1db(0x168),'value':localStorage[_0x7dd1db(0xeb)]('session')},{'eventProperty':_0x7dd1db(0x149),'value':new Date(parseInt(localStorage[_0x7dd1db(0xeb)](_0x7dd1db(0x181))||'',0xa))[_0x7dd1db(0xd5)]()}]));let _0x37e51e={'deviceId':localStorage[_0x7dd1db(0xeb)]('uniqueIdentity')||crypto[_0x7dd1db(0x15e)](),'os':S(this,_)};if(_0x32afc0)_0x37e51e[_0x7dd1db(0x15d)]=_0x32afc0;else{if(!_0x32afc0&&localStorage[_0x7dd1db(0xeb)](_0x7dd1db(0xe2)))return;}try{let _0x436735=yield n(this,ue,it)[_0x7dd1db(0x13b)](this,_0x37e51e);_0x436735!==void 0x0&&localStorage[_0x7dd1db(0xe8)](_0x7dd1db(0xe2),_0x436735);}catch(_0x155715){throw new Error(_0x7dd1db(0x194));}});},U=new WeakSet(),ee=function(){const _0x290dba=_0x5146f0;localStorage[_0x290dba(0xe8)](_0x290dba(0x181),''+new Date()[_0x290dba(0xd7)]());},ue=new WeakSet(),it=function(_0xc6319b){return c(this,null,function*(){const _0x4f36c6=_0x42c7;try{return(yield h[_0x4f36c6(0xcb)](''+He+Ze,_0xc6319b))[_0x4f36c6(0x10e)];}catch(_0x39ec6e){throw new Error(_0x4f36c6(0x16b));}});},G=new WeakSet(),Fe=function(_0x5428a5){const _0x3e24ec=_0x5146f0;let _0x5d5e50=n(this,de,at)['call'](this);if(_0x5d5e50!=null&&_0x5d5e50[_0x5428a5])switch(_0x5d5e50[_0x5428a5][_0x3e24ec(0x136)]){case _0x3e24ec(0x160):{n(this,Se,ct)[_0x3e24ec(0x13b)](this,_0x5d5e50[_0x5428a5]);break;}case _0x3e24ec(0xd9):{n(this,C,te)['call'](this,_0x5d5e50[_0x5428a5]);break;}case _0x3e24ec(0x118):{n(this,Ie,st)[_0x3e24ec(0x13b)](this,_0x5d5e50[_0x5428a5]);break;}default:return;}},de=new WeakSet(),at=function(){const _0x7ce570=_0x5146f0;let _0x21f9f9=localStorage['getItem']('action');return _0x21f9f9?JSON[_0x7ce570(0x17c)](_0x21f9f9):null;},Ie=new WeakSet(),st=function(_0x5978b8){let _0xde34d9=()=>{const _0x172d12=_0x42c7;var _0x3f4dcf;let _0x179bff=window[_0x172d12(0xd4)],_0x53d87b=document[_0x172d12(0x154)]['scrollHeight'];window[_0x172d12(0x171)]/(_0x53d87b-_0x179bff)*0x64>(((_0x3f4dcf=_0x5978b8['campaignEntryTimeValue'])==null?void 0x0:_0x3f4dcf[_0x172d12(0x11e)])||0x0)&&(window['removeEventListener']('scroll',_0xde34d9),n(this,C,te)[_0x172d12(0x13b)](this,_0x5978b8));};window['addEventListener']('scroll',_0xde34d9);},Se=new WeakSet(),ct=function(_0x31fa39){const _0x2e8f08=_0x5146f0;var _0xe39420;let _0x573efa=_0x31fa39[_0x2e8f08(0x18e)]-0x1f4+(((_0xe39420=_0x31fa39[_0x2e8f08(0xc7)])==null?void 0x0:_0xe39420[_0x2e8f08(0x11e)])||0x0)*0x3e8-new Date()[_0x2e8f08(0xd7)]();_0x573efa>0x0&&_0x31fa39['page']===window['location']['hostname']+window['location'][_0x2e8f08(0xcd)]&&setTimeout(()=>{const _0x402700=_0x2e8f08;S(this,K)[_0x402700(0x13b)](this,_0x31fa39['campaignId']),n(this,C,te)['call'](this,_0x31fa39);},_0x573efa);},C=new WeakSet(),te=function(_0xf32fa2){const _0x46ce1b=_0x5146f0;let _0x2fc321=n(this,me,lt)[_0x46ce1b(0x13b)](this,_0x46ce1b(0x152),_0xf32fa2);document['body'][_0x46ce1b(0x14d)](_0x2fc321),n(this,v,T)[_0x46ce1b(0x13b)](this,A,[{'eventProperty':_0x46ce1b(0xed),'value':JSON['stringify']({'campaignId':_0xf32fa2[_0x46ce1b(0x18f)]})}],_0xf32fa2[_0x46ce1b(0x18f)],_0xf32fa2[_0x46ce1b(0x14b)],'view'),S(this,K)[_0x46ce1b(0x13b)](this,_0xf32fa2[_0x46ce1b(0x18f)]);},me=new WeakSet(),lt=function(_0x16e2ae,_0x2b6518){const _0x3004be=_0x5146f0;var _0x51df47;let {campaignCustomerInstanceId:_0x4be68e,campaignId:_0x5c2e16,message:{design:_0xc22978}}=_0x2b6518,_0x190c38=document[_0x3004be(0x15a)](_0x16e2ae);_0x190c38['id']=_0x3004be(0x116)+_0x5c2e16,_0x190c38['innerHTML']=_0xc22978,_0x190c38['style']['position']=_0x3004be(0x16c),_0x190c38[_0x3004be(0x102)][_0x3004be(0xf3)]='0',_0x190c38['style'][_0x3004be(0x170)]='0',_0x190c38[_0x3004be(0x102)]['width']='100%',_0x190c38[_0x3004be(0x102)][_0x3004be(0x107)]=_0x3004be(0x19d),_0x190c38[_0x3004be(0x102)][_0x3004be(0x131)]=_0x3004be(0x110);let _0x1714e4=_0x190c38['querySelector'](_0x3004be(0x117));return _0x1714e4&&(_0x1714e4['style'][_0x3004be(0x131)]='50'),_0x190c38[_0x3004be(0x12e)]('[id^=\x22u_content_form_\x22]')[_0x3004be(0x14a)](_0x29bb75=>{const _0x2f0f10=_0x3004be;let _0x4b80a9=_0x29bb75['querySelector']('form');_0x4b80a9&&_0x4b80a9[_0x2f0f10(0x101)](_0x2f0f10(0x132),()=>c(this,null,function*(){const _0x35ca32=_0x2f0f10;_0x190c38[_0x35ca32(0x125)]();let _0x14a510=new FormData(_0x4b80a9),_0xab849f={};for(let [_0x148874,_0x770e3d]of _0x14a510[_0x35ca32(0xc6)]())_0xab849f[_0x148874]=_0x770e3d;yield n(this,v,T)[_0x35ca32(0x13b)](this,A,[{'eventProperty':'Form\x20Submit','value':JSON[_0x35ca32(0x153)]({'campaignId':_0x5c2e16,'formId':_0x29bb75['id'],'formValues':_0xab849f})}],_0x5c2e16,_0x4be68e,'form');}));}),(_0x51df47=_0x190c38[_0x3004be(0x192)](_0x3004be(0x162)))==null||_0x51df47[_0x3004be(0x101)](_0x3004be(0x1a4),()=>c(this,null,function*(){const _0x2b273d=_0x3004be;_0x190c38[_0x2b273d(0x125)](),yield n(this,v,T)[_0x2b273d(0x13b)](this,A,[{'eventProperty':'Close\x20Click','value':JSON[_0x2b273d(0x153)]({'campaignId':_0x5c2e16})}],_0x5c2e16,_0x4be68e,_0x2b273d(0x11a));})),_0x190c38[_0x3004be(0x12e)]('[id^=\x22u_content_button_\x22]')['forEach'](_0x543a51=>{const _0xe31523=_0x3004be;_0x543a51[_0xe31523(0x101)](_0xe31523(0x1a4),()=>c(this,null,function*(){const _0x4a7a97=_0xe31523;_0x190c38[_0x4a7a97(0x125)](),yield n(this,v,T)['call'](this,A,[{'eventProperty':_0x4a7a97(0x148),'value':JSON[_0x4a7a97(0x153)]({'buttonId':_0x543a51['id'],'campaignId':_0x5c2e16})}],_0x5c2e16,_0x4be68e,_0x4a7a97(0x1a4));}));}),_0x190c38[_0x3004be(0x12e)](_0x3004be(0x184))[_0x3004be(0x14a)](_0x5ee8e5=>{const _0xb3be68=_0x3004be;_0x5ee8e5[_0xb3be68(0x101)]('click',()=>c(this,null,function*(){const _0x2a0446=_0xb3be68;yield n(this,v,T)[_0x2a0446(0x13b)](this,A,[{'eventProperty':_0x2a0446(0x175),'value':JSON[_0x2a0446(0x153)]({'campaignId':_0x5c2e16,'imageClassName':_0x5ee8e5[_0x2a0446(0xce)],'imageId':_0x5ee8e5['id']})}],_0x5c2e16,_0x4be68e,_0x2a0446(0x1a4));}));}),_0x190c38;},ve=new WeakSet(),gt=function(){const _0x2e7a95=_0x5146f0;let _0x2d2627=localStorage[_0x2e7a95(0xeb)]('events');return _0x2d2627?JSON[_0x2e7a95(0x17c)](_0x2d2627):{};},Te=new WeakSet(),Et=function(_0x2fde96,_0x8743ad,_0x5bab15){const _0x42b9e2=_0x5146f0;if(!Object[_0x42b9e2(0x105)][_0x42b9e2(0x10b)][_0x42b9e2(0x13b)](_0x2fde96,_0x8743ad))return _0x42b9e2(0x147)+_0x8743ad+'\x20is\x20not\x20valid.';if(!_0x5bab15)return[];let _0x30c456=_0x2fde96[_0x8743ad];if(!(_0x30c456!=null&&_0x30c456[_0x42b9e2(0xe0)]))return _0x42b9e2(0x147)+_0x8743ad+_0x42b9e2(0xdd);let _0x302942=_0x5bab15[_0x42b9e2(0x12b)](({eventProperty:_0x1cfed2})=>!Object[_0x42b9e2(0x105)][_0x42b9e2(0x10b)][_0x42b9e2(0x13b)](_0x30c456[_0x42b9e2(0xe0)],_0x1cfed2))[_0x42b9e2(0xec)](({eventProperty:_0x17a399})=>_0x17a399);return _0x302942[_0x42b9e2(0xe4)]>0x0?_0x42b9e2(0x147)+_0x8743ad+_0x42b9e2(0x11c)+_0x302942['join'](',\x20')+'.':_0x5bab15[_0x42b9e2(0xec)](({eventProperty:_0x324f66,value:_0x1a4861})=>({'eventPropertyId':_0x30c456[_0x42b9e2(0xe0)][_0x324f66]['id'],'value':_0x1a4861}));},H=new WeakSet(),Ve=function(_0x2478c4,_0x4139f3,_0x1e4b42){const _0xd77033=_0x5146f0;if(!Object[_0xd77033(0x105)][_0xd77033(0x10b)][_0xd77033(0x13b)](_0x2478c4,_0x4139f3))return _0xd77033(0x14e)+_0x4139f3+_0xd77033(0x16f);if(!_0x1e4b42)return[];let _0x59ef14=_0x2478c4[_0x4139f3];if(!(_0x59ef14!=null&&_0x59ef14[_0xd77033(0x190)]))return'Attribute\x20'+_0x4139f3+'\x20does\x20not\x20have\x20a\x20valid\x20attributeProperty.';let _0x24119a=_0x1e4b42[_0xd77033(0x12b)](({attributeProperty:_0x1a40f7})=>!Object[_0xd77033(0x105)]['hasOwnProperty'][_0xd77033(0x13b)](_0x59ef14['attributeProperty'],_0x1a40f7))[_0xd77033(0xec)](({attributeProperty:_0x32f9be})=>_0x32f9be);return _0x24119a[_0xd77033(0xe4)]>0x0?_0xd77033(0x14e)+_0x4139f3+_0xd77033(0x11d)+_0x24119a[_0xd77033(0x164)](',\x20')+'.':_0x1e4b42[_0xd77033(0xec)](({attributeProperty:_0x1ad9ba,value:_0x1e37f9})=>({'attributePropertyId':_0x59ef14[_0xd77033(0x190)][_0x1ad9ba]['id'],'value':_0x1e37f9}));},fe=new WeakSet(),pt=function(_0x3446e3){const _0x47aa11=_0x5146f0;return{'customerId':localStorage[_0x47aa11(0xeb)]('customer')||'','events':[_0x3446e3]};},Z=new WeakSet(),Me=function(_0x15c443){return c(this,null,function*(){const _0x5ac0b8=_0x42c7;try{return yield h[_0x5ac0b8(0xcb)](''+be+Ge,_0x15c443);}catch(_0x376687){throw new Error(_0x5ac0b8(0xbe));}});},ye=new WeakSet(),ut=function(_0xc44730){const _0x2c5320=_0x5146f0;return _0xc44730===_0x2c5320(0x185);},he=new WeakSet(),dt=function(_0x411255){const _0x58f20f=_0x5146f0;let _0x4e7502=JSON[_0x58f20f(0x17c)](localStorage[_0x58f20f(0xeb)](_0x58f20f(0x177))||'{}');_0x4e7502[_0x411255[_0x58f20f(0x18f)]]=we(V({},_0x411255),{'initialTime':new Date()[_0x58f20f(0xd7)](),'page':window['location'][_0x58f20f(0x133)]+window[_0x58f20f(0x199)]['pathname']}),localStorage[_0x58f20f(0xe8)](_0x58f20f(0x177),JSON[_0x58f20f(0x153)](_0x4e7502));},q=new WeakSet(),Be=function(){const _0x9c8636=_0x5146f0;localStorage[_0x9c8636(0x13e)](_0x9c8636(0x177)),localStorage['removeItem'](_0x9c8636(0x189)),localStorage['removeItem']('attributes'),localStorage[_0x9c8636(0x13e)](_0x9c8636(0xd2)),localStorage[_0x9c8636(0x13e)]('ttl'),localStorage[_0x9c8636(0x13e)](_0x9c8636(0x18d));},Oe=new WeakSet(),It=function(){return c(this,null,function*(){localStorage['getItem']('attributes')||(yield n(this,j,xe)['call'](this));});},Re=new WeakSet(),St=function(_0x549aa1){return c(this,null,function*(){const _0x3e58df=_0x42c7;try{return yield h['post'](''+Ae+je,_0x549aa1);}catch(_0x56b65e){throw new Error(_0x3e58df(0x140));}});},s(w,P,void 0x0);function _0x425c(){const _0x4554b3=['className','Mobile','Attribute\x20Payload:\x0a\x20','push','offlineEvents','indexOf','innerHeight','toISOString','3fCqDlh','getTime','/brand','IMMEDIATELY','offline','Recording\x20attribute\x20Time','getInstance','\x20does\x20not\x20have\x20a\x20valid\x20eventProperty.','#\x20record\x20event','2371338tzSKAe','eventProperty','resolve','customer','record\x20event','length','6139986NvqMWs','https://u23z4zsda8.execute-api.ap-southeast-1.amazonaws.com/Prod/sdk-management/api','debugLevel','setItem','apply','attributes','getItem','map','Popup\x20View','Recording\x20event\x20Time','write\x20to\x20private\x20field','preInitializedEvents','exports','Logging\x20in','top','INFO','pushState','Checking\x20TTL\x20Time','/event','online','Internet\x20Explorer','add','Mergn\x20SDK\x20Initialization\x20Time','123751MAqQnD','getOwnPropertyDescriptors','utm_source','Recording\x20attribute','4935016bsRoCC','addEventListener','style','ERROR','getOwnPropertyNames','prototype','UTM_TERM','height','utm_term','log','Mergn\x20is\x20offline!','hasOwnProperty','toLowerCase','UTM_SOURCE','data','undefined','99999999','Tracking\x20page\x20change\x20Time','defineProperty','OriginateFrom:\x20','done','uniqueIdentity','popup_container_','.u-popup-container','SCROLL','14CFjnPW','close','name','\x20has\x20invalid\x20eventProperties:\x20','\x20has\x20invalid\x20attributeProperties:\x20','value','/set-attribute','utm_medium','UTM_CAMPAIGN','serviceWorker','getOwnPropertySymbols','register','remove','application/json','GAD_SOURCE','\x0aUnexpected\x20error:\x20','isArray','Logging\x20in\x20Time','filter','logout','propertyIsEnumerable','querySelectorAll','MSIE','ERROR:\x20','zIndex','submit','hostname','Unknown','getOwnPropertyDescriptor','campaignEntryTime','gad_source','values','string','object','call','login','error','removeItem','Mergn\x20not\x20initialized!','Error\x20posting\x20attribute\x20record','/set-identity','function','gclid','Mergn\x20SDK\x20is\x20disabled!','Logging\x20out\x20Time','Checking\x20TTL','Event\x20','Button\x20Click','SESSION_CREATED','forEach','campaignCustomerInstanceId','__esModule','appendChild','Attribute\x20','message','Event\x20Payload','Mozilla\x20Firefox','div','stringify','documentElement','UTM_MEDIUM','groupEnd','Debug\x20level\x20must\x20be\x20according\x20to:\x0a\x20NONE:\x200,\x20INFO:\x201,\x20ERROR:\x202,\x20ALL:\x203','5048490cAJjWi','json','createElement','Firefox','info','identity','randomUUID','UTM_CONTENT','DELAY','page','.u-close-button','has','join','recordAttribute','Google\x20Chrome','enumerable','SESSION_ID','Microsoft\x20Edge','attributeValue','Error\x20posting\x20identity\x20data','fixed','preInitializedAttributes','userAgent','\x20is\x20not\x20valid.','left','scrollY','Safari','eventProperties','Initializing\x20Mergn\x20SDK','Image\x20Click','loading','action','group','1725860nIZcIh','Edg','Identity:\x20','parse','disableSDK','timeEnd','next','beforeunload','ttl','eventName','Error\x20fetching\x20attribute\x20data','.u-popup-container\x20img','Popup','updateAPIKey','apiKey','INFO:\x20','events','load','Recording\x20event','Logging\x20out','session','initialTime','campaignId','attributeProperty','init','querySelector','access\x20private\x20method','Error\x20setting\x20identity','2925035UETNOV','Tracking\x20page\x20change','/attribute','operating-system','location','keys','/sw.js','Web\x20Session\x20Started','100%','isInitialized','get','set','Popup\x20Action','onLine','Web\x20Session\x20Concluded','click','NONE','Error\x20posting\x20event\x20record','POST','time','search','read\x20from\x20private\x20field','attributeName','href','18kETVca','entries','campaignEntryTimeValue','utm_content','#\x20Recording\x20event','splice','post','/customer','pathname'];_0x425c=function(){return _0x4554b3;};return _0x425c();}function _0x42c7(_0x394ec4,_0x4a3bcc){const _0x425ce8=_0x425c();return _0x42c7=function(_0x42c7a1,_0x2152c3){_0x42c7a1=_0x42c7a1-0xbe;let _0x27d1ef=_0x425ce8[_0x42c7a1];return _0x27d1ef;},_0x42c7(_0x394ec4,_0x4a3bcc);}var _e=w,$e=_e[_0x5146f0(0xdc)]();typeof window!=_0x5146f0(0x10f)&&(window['mergn']=$e);var Nt=$e;
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- const _0x1f2906=_0x27df;(function(_0x14f348,_0x425e3d){const _0x40165c=_0x27df,_0x391a3a=_0x14f348();while(!![]){try{const _0x4aedc7=parseInt(_0x40165c(0xbe))/0x1+parseInt(_0x40165c(0xb8))/0x2+parseInt(_0x40165c(0xa5))/0x3+parseInt(_0x40165c(0xc2))/0x4+parseInt(_0x40165c(0x84))/0x5+parseInt(_0x40165c(0x140))/0x6*(-parseInt(_0x40165c(0x142))/0x7)+-parseInt(_0x40165c(0x9f))/0x8;if(_0x4aedc7===_0x425e3d)break;else _0x391a3a['push'](_0x391a3a['shift']());}catch(_0x14a3be){_0x391a3a['push'](_0x391a3a['shift']());}}}(_0x5811,0x25ae2));var It=Object[_0x1f2906(0x87)],vt=Object[_0x1f2906(0x10e)],ft=Object[_0x1f2906(0x74)],$e=Object[_0x1f2906(0xff)],yt=Object['prototype'][_0x1f2906(0x13e)],Tt=Object[_0x1f2906(0x94)]['propertyIsEnumerable'],Be=(_0x49c121,_0x433693,_0x22db90)=>_0x433693 in _0x49c121?It(_0x49c121,_0x433693,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x22db90}):_0x49c121[_0x433693]=_0x22db90,M=(_0x5ba00c,_0x1d25d9)=>{const _0x5dbe6d=_0x1f2906;for(var _0x4e0fc4 in _0x1d25d9||(_0x1d25d9={}))yt[_0x5dbe6d(0x127)](_0x1d25d9,_0x4e0fc4)&&Be(_0x5ba00c,_0x4e0fc4,_0x1d25d9[_0x4e0fc4]);if($e){for(var _0x4e0fc4 of $e(_0x1d25d9))Tt[_0x5dbe6d(0x127)](_0x1d25d9,_0x4e0fc4)&&Be(_0x5ba00c,_0x4e0fc4,_0x1d25d9[_0x4e0fc4]);}return _0x5ba00c;},we=(_0x1038c8,_0x5397d8)=>vt(_0x1038c8,ft(_0x5397d8)),Re=(_0x92ff2a,_0x5ecbfa,_0x385315)=>{const _0x17d2d1=_0x1f2906;if(!_0x5ecbfa[_0x17d2d1(0x8f)](_0x92ff2a))throw TypeError(_0x17d2d1(0x13a)+_0x385315);},S=(_0x2f7c41,_0x1cae98,_0x33ffa2)=>(Re(_0x2f7c41,_0x1cae98,_0x1f2906(0x103)),_0x33ffa2?_0x33ffa2[_0x1f2906(0x127)](_0x2f7c41):_0x1cae98[_0x1f2906(0xd6)](_0x2f7c41)),a=(_0x21cd3b,_0x584ca8,_0x4dca3b)=>{const _0xdf6856=_0x1f2906;if(_0x584ca8[_0xdf6856(0x8f)](_0x21cd3b))throw TypeError('Cannot\x20add\x20the\x20same\x20private\x20member\x20more\x20than\x20once');_0x584ca8 instanceof WeakSet?_0x584ca8[_0xdf6856(0x101)](_0x21cd3b):_0x584ca8['set'](_0x21cd3b,_0x4dca3b);},O=(_0x1f2a99,_0x3d54b5,_0x249484,_0x181884)=>(Re(_0x1f2a99,_0x3d54b5,'write\x20to\x20private\x20field'),_0x181884?_0x181884[_0x1f2906(0x127)](_0x1f2a99,_0x249484):_0x3d54b5['set'](_0x1f2a99,_0x249484),_0x249484),n=(_0x11a27d,_0x3e2aac,_0x44db2d)=>(Re(_0x11a27d,_0x3e2aac,_0x1f2906(0x106)),_0x44db2d),l=(_0x143b98,_0x2be8f7,_0x13937c)=>new Promise((_0x9d9c3c,_0x571f76)=>{const _0x24bf59=_0x1f2906;var _0x2d5ce5=_0x5235c8=>{const _0x406a74=_0x27df;try{_0x57613c(_0x13937c[_0x406a74(0xbf)](_0x5235c8));}catch(_0x356c4d){_0x571f76(_0x356c4d);}},_0x3ca668=_0x35acbf=>{const _0x270475=_0x27df;try{_0x57613c(_0x13937c[_0x270475(0xb6)](_0x35acbf));}catch(_0x3d2b27){_0x571f76(_0x3d2b27);}},_0x57613c=_0x34c817=>_0x34c817[_0x24bf59(0xfc)]?_0x9d9c3c(_0x34c817[_0x24bf59(0x95)]):Promise[_0x24bf59(0xdb)](_0x34c817['value'])[_0x24bf59(0x6b)](_0x2d5ce5,_0x3ca668);_0x57613c((_0x13937c=_0x13937c['apply'](_0x143b98,_0x2be8f7))[_0x24bf59(0xbf)]());}),ke=(_0x5a5850=>(_0x5a5850[_0x1f2906(0x12a)]=_0x1f2906(0x77),_0x5a5850[_0x1f2906(0xf8)]=_0x1f2906(0x10f),_0x5a5850[_0x1f2906(0x90)]=_0x1f2906(0x97),_0x5a5850[_0x1f2906(0x10b)]='utm_term',_0x5a5850[_0x1f2906(0x76)]=_0x1f2906(0xb2),_0x5a5850[_0x1f2906(0x11d)]=_0x1f2906(0xf5),_0x5a5850[_0x1f2906(0xc9)]='gclid',_0x5a5850))(ke||{}),Ke=new Set(Object[_0x1f2906(0xae)](ke)),A='Popup\x20Action',Le=_0x1f2906(0x79),be=_0x1f2906(0x88),ze=_0x1f2906(0xf7),Ae=_0x1f2906(0xe6),Je=_0x1f2906(0x13d),We='/customer',Ge=_0x1f2906(0x13f),N,f=class f{constructor(){}static[_0x1f2906(0x8d)](){return S(f,N)||O(f,N,new f()),S(f,N);}[_0x1f2906(0xa6)](_0x4cb781){const _0x4e567f=_0x1f2906;f[_0x4e567f(0x108)]=_0x4cb781;}[_0x1f2906(0xd6)](_0x12c528){return l(this,null,function*(){const _0x24b5e5=_0x27df;return(yield fetch(Le+_0x12c528,{'headers':{'Authorization':f['apiKey'],'Content-Type':_0x24b5e5(0x125)}}))[_0x24b5e5(0x105)]();});}['post'](_0x1f6056,_0xe9714e){return l(this,null,function*(){const _0x1ccba3=_0x27df;return(yield fetch(Le+_0x1f6056,{'body':JSON[_0x1ccba3(0x119)](_0xe9714e||{}),'headers':{'Authorization':f['apiKey'],'Content-Type':_0x1ccba3(0x125)},'method':'POST'}))['json']();});}};N=new WeakMap(),a(f,N,void 0x0);var Ne=f,h=Ne[_0x1f2906(0x8d)](),c=class extends Error{constructor(_0x5620e9){const _0x5cabb1=_0x1f2906;super(_0x5620e9),this[_0x5cabb1(0x102)]='MergnError';}};c[_0x1f2906(0x66)]=!0x1,c[_0x1f2906(0x11e)]=!navigator[_0x1f2906(0x78)],c['debugLevel']=0x0,c['isInitialized']=!0x1,c[_0x1f2906(0x104)]=!0x1,c['funcQueue']=[];var je=()=>{const _0x513710=_0x1f2906;c['isInitialized']=!0x0;for(let _0x17b5c1 of c[_0x513710(0x132)])_0x17b5c1();c[_0x513710(0x132)]=[];},ht=(_0x108d1a,_0x32edaa)=>{const _0xf4ca4b=_0x1f2906;_0x32edaa instanceof c?p(0x2,_0xf4ca4b(0x134)+_0x108d1a+_0xf4ca4b(0x117)+_0x32edaa[_0xf4ca4b(0x69)]):_0x32edaa instanceof Error?p(0x2,_0xf4ca4b(0x134)+_0x108d1a+_0xf4ca4b(0xdd)+_0x32edaa['message']):p(0x2,_0xf4ca4b(0x134)+_0x108d1a+_0xf4ca4b(0xdd)+String(_0x32edaa));},w=(_0x339657,_0x56aefd,_0x3e7dc5)=>l(void 0x0,null,function*(){const _0x365be0=_0x1f2906;try{if(c['disableSDK'])throw new c(_0x365be0(0x11f));if(_0x339657!=='record\x20event'&&c[_0x365be0(0x11e)])throw new c('Mergn\x20is\x20offline!');if(_0x339657!==_0x365be0(0x6a)&&!c[_0x365be0(0x131)]){if(_0x339657===_0x365be0(0x112)||_0x339657===_0x365be0(0x124)||_0x339657===_0x365be0(0xc6))c[_0x365be0(0x132)]['push'](_0x56aefd);else throw new c('Mergn\x20not\x20initialized!');return console[_0x365be0(0xed)]('not\x20initialized'),null;}else{if(_0x339657!==_0x365be0(0xc8)&&c[_0x365be0(0x104)])throw new c(_0x365be0(0x122));}return yield _0x56aefd();}catch(_0x4e9a01){return _0x3e7dc5?_0x3e7dc5(_0x4e9a01):(c[_0x365be0(0xb7)]===0x2||c[_0x365be0(0xb7)]===0x3)&&ht(_0x339657,_0x4e9a01),null;}}),q=(_0xef5b07=>(_0xef5b07[_0xef5b07[_0x1f2906(0x9c)]=0x0]=_0x1f2906(0x9c),_0xef5b07[_0xef5b07[_0x1f2906(0xcc)]=0x1]='INFO',_0xef5b07[_0xef5b07[_0x1f2906(0x71)]=0x2]='ERROR',_0xef5b07[_0xef5b07[_0x1f2906(0x10c)]=0x3]=_0x1f2906(0x10c),_0xef5b07))(q||{}),p=(_0x4f0129,_0x43f690)=>{const _0xc09bde=_0x1f2906;c[_0xc09bde(0xb7)]!==0x0&&c['debugLevel']<=0x3&&(_0x4f0129===0x1?console[_0xc09bde(0x114)](_0xc09bde(0xdf)+new Date()[_0xc09bde(0x98)](),_0x43f690):_0x4f0129===0x2&&console['error']('ERROR:\x20'+new Date()[_0xc09bde(0x98)](),_0x43f690));},d=(_0x28fc3c,_0x32732a)=>{const _0x46f63c=_0x1f2906;c[_0x46f63c(0xb7)]!==0x0&&(_0x32732a?console[_0x46f63c(0x10a)](_0x28fc3c):console[_0x46f63c(0xa1)](_0x28fc3c));},E=(_0x5748c3,_0xe4fdd3)=>{const _0x1f6ab2=_0x1f2906;c['debugLevel']!==0x0&&(_0xe4fdd3?console[_0x1f6ab2(0xa4)](_0x5748c3):console[_0x1f6ab2(0xf4)]());},P,U,$,B,k,ee,Qe,L,V,v,y,te,He,ne,qe,K,Ue,z,Ce,oe,Ye,re,Xe,ie,Ze,ae,J,se,ce,et,le,tt,ge,nt,W,De,ue,ot,C,Y,D,X,pe,rt,G,_e,de,it,Ee,at,me,st,_,Z,Se,ct,Ie,lt,ve,gt,j,xe,fe,ut,Q,Fe,ye,pt,Te,dt,H,Me,he,Et,Oe,mt,R=class R{constructor(){a(this,ee),a(this,L),a(this,v),a(this,te),a(this,ne),a(this,K),a(this,z),a(this,oe),a(this,re),a(this,ie),a(this,ce),a(this,le),a(this,ge),a(this,W),a(this,ue),a(this,C),a(this,D),a(this,pe),a(this,G),a(this,de),a(this,Ee),a(this,me),a(this,_),a(this,Se),a(this,Ie),a(this,ve),a(this,j),a(this,fe),a(this,Q),a(this,ye),a(this,Te),a(this,H),a(this,he),a(this,Oe),a(this,U,void 0x0),a(this,$,void 0x0),a(this,B,void 0x0),a(this,k,null),a(this,ae,()=>{const _0x2ea9af=_0x27df;let _0x46add8=()=>{const _0x28f082=_0x27df;let _0x2337d4=JSON['parse'](localStorage[_0x28f082(0x130)](_0x28f082(0x7c))||'{}');Object[_0x28f082(0xb5)](_0x2337d4)[_0x28f082(0xd1)](_0x396a67=>{const _0x21e1ef=_0x28f082;_0x2337d4[_0x396a67][_0x21e1ef(0xd7)]=new Date()['getTime'](),_0x2337d4[_0x396a67][_0x21e1ef(0xcf)]=window[_0x21e1ef(0xc7)][_0x21e1ef(0xbb)]+window[_0x21e1ef(0xc7)]['pathname'];}),localStorage[_0x28f082(0x109)](_0x28f082(0x7c),JSON[_0x28f082(0x119)](_0x2337d4));};_0x46add8(),window[_0x2ea9af(0xf6)]('beforeunload',_0x46add8);}),a(this,J,_0x3068cb=>{const _0x425488=_0x27df;let _0x2aa1cf=JSON[_0x425488(0xf3)](localStorage[_0x425488(0x130)](_0x425488(0x7c))||'{}');_0x2aa1cf[_0x3068cb]&&delete _0x2aa1cf[_0x3068cb],localStorage['setItem'](_0x425488(0x7c),JSON[_0x425488(0x119)](_0x2aa1cf));}),a(this,se,()=>{const _0x56a848=_0x27df;let _0x1cc4ae=JSON[_0x56a848(0xf3)](localStorage[_0x56a848(0x130)]('action')||'{}');Object[_0x56a848(0xb5)](_0x1cc4ae)[_0x56a848(0xd1)](_0x4838c5=>{const _0x115b51=_0x56a848;_0x1cc4ae[_0x4838c5][_0x115b51(0x69)][_0x115b51(0x102)]===_0x115b51(0x7d)&&n(this,G,_e)[_0x115b51(0x127)](this,_0x1cc4ae[_0x4838c5][_0x115b51(0xf1)]);});});}static['getInstance'](){return S(R,P)||O(R,P,new R()),S(R,P);}[_0x1f2906(0x6a)](_0x346865){const _0x2e3718=_0x1f2906;w(_0x2e3718(0x6a),()=>l(this,null,function*(){const _0x2c214a=_0x2e3718;p(0x1,_0x2c214a(0xca)),E(_0x2c214a(0xca),!0x0),d(_0x2c214a(0x80),!0x0),n(this,oe,Ye)[_0x2c214a(0x127)](this,_0x346865),yield n(this,K,Ue)[_0x2c214a(0x127)](this),je(),setInterval(()=>l(this,null,function*(){const _0x43adc9=_0x2c214a;yield n(this,K,Ue)[_0x43adc9(0x127)](this);}),0x493e0),yield n(this,L,V)[_0x2c214a(0x127)](this),window[_0x2c214a(0xf6)](_0x2c214a(0x10d),()=>l(this,null,function*(){const _0x1cd0e1=_0x2c214a;c['offline']=!0x1;let _0x2fc4d2=JSON[_0x1cd0e1(0xf3)](localStorage['getItem'](_0x1cd0e1(0xeb))||'[]');Array[_0x1cd0e1(0x9d)](_0x2fc4d2)&&(yield n(this,Q,Fe)[_0x1cd0e1(0x127)](this,{'customerId':localStorage[_0x1cd0e1(0x130)]('customer')||'','events':_0x2fc4d2}),localStorage[_0x1cd0e1(0x73)](_0x1cd0e1(0xeb))),n(this,L,V)[_0x1cd0e1(0x127)](this),n(this,D,X)[_0x1cd0e1(0x127)](this);})),window['addEventListener'](_0x2c214a(0x11e),()=>{const _0x480b3f=_0x2c214a;c[_0x480b3f(0x11e)]=!0x0;}),window[_0x2c214a(0xf6)](_0x2c214a(0xe4),()=>{const _0x153305=_0x2c214a;S(this,se)[_0x153305(0x127)](this);});let _0x11fb8a=history[_0x2c214a(0xb3)];history[_0x2c214a(0xb3)]=(..._0x55db85)=>{const _0x4e7804=_0x2c214a;_0x11fb8a[_0x4e7804(0x70)](history,_0x55db85),n(this,z,Ce)['call'](this);},n(this,z,Ce)['call'](this),d('Mergn\x20SDK\x20Initialization\x20Time',!0x1),E(_0x2c214a(0xca),!0x1);}));}[_0x1f2906(0x8e)](_0x36fb57){const _0x46c4b7=_0x1f2906;if(!(_0x36fb57 in q)){console['error'](_0x46c4b7(0xad));return;}c[_0x46c4b7(0xb7)]=_0x36fb57;}[_0x1f2906(0x124)](_0x2376e8,_0x973136){const _0x1c8719=_0x1f2906;w(_0x1c8719(0x124),()=>l(this,null,function*(){const _0x431cbb=_0x1c8719;yield n(this,ee,Qe)[_0x431cbb(0x127)](this,_0x2376e8,_0x973136,void 0x0);}));}[_0x1f2906(0xc8)](_0x108663){const _0x4e1f36=_0x1f2906;w(_0x4e1f36(0xc8),()=>l(this,null,function*(){const _0x108012=_0x4e1f36;p(0x1,_0x108012(0x100)),E(_0x108012(0x100),!0x0),d(_0x108012(0xc1),!0x0),p(0x1,_0x108012(0xef)+_0x108663),c[_0x108012(0x104)]=!0x0,yield n(this,C,Y)['call'](this,_0x108663),c[_0x108012(0x104)]=!0x1,d(_0x108012(0xc1),!0x1),E(_0x108012(0x100),!0x1);}));}[_0x1f2906(0xec)](){const _0x9918f9=_0x1f2906;w(_0x9918f9(0xec),()=>l(this,null,function*(){const _0x12fa83=_0x9918f9;p(0x1,_0x12fa83(0xb0)),E(_0x12fa83(0xb0),!0x0),d('Logging\x20out\x20Time',!0x0),n(this,H,Me)['call'](this),d('Logging\x20out\x20Time',!0x1),E(_0x12fa83(0xb0),!0x1);}));}[_0x1f2906(0x86)](_0x54226e,_0x6adbc5){setTimeout(()=>{const _0x58e77e=_0x27df;w(_0x58e77e(0x112),()=>l(this,null,function*(){const _0x44c961=_0x58e77e;p(0x1,_0x44c961(0x7a)),E('Recording\x20event',!0x0),d(_0x44c961(0x85),!0x0),p(0x1,_0x44c961(0xe8)+{'eventName':_0x54226e,'eventProperties':_0x6adbc5}),n(this,v,y)[_0x44c961(0x127)](this,_0x54226e,_0x6adbc5),d(_0x44c961(0x85),!0x1),E(_0x44c961(0x7a),!0x1);}));});}};P=new WeakMap(),U=new WeakMap(),$=new WeakMap(),B=new WeakMap(),k=new WeakMap(),ee=new WeakSet(),Qe=function(_0x38d495,_0x1f0413,_0x2a0585){return l(this,null,function*(){const _0x22e664=_0x27df;yield w(_0x22e664(0xc6),()=>l(this,null,function*(){const _0x47f439=_0x22e664;p(0x1,_0x47f439(0x123)),E(_0x47f439(0x123),!0x0),d(_0x47f439(0x83),!0x0),p(0x1,'Attribute\x20Payload:\x0a\x20'+{'attributeName':_0x38d495,'attributeProperties':_0x2a0585,'attributeValue':_0x1f0413}+')}'),yield n(this,L,V)[_0x47f439(0x127)](this),yield n(this,he,Et)[_0x47f439(0x127)](this);let _0x11c725=JSON[_0x47f439(0xf3)](localStorage[_0x47f439(0x130)]('attributes')||'{}'),_0x1bf4a1=_0x2a0585?n(this,j,xe)[_0x47f439(0x127)](this,_0x11c725,_0x38d495,_0x2a0585):n(this,j,xe)[_0x47f439(0x127)](this,_0x11c725,_0x38d495);if(typeof _0x1bf4a1==_0x47f439(0xe5)){p(0x2,_0x1bf4a1);return;}n(this,D,X)[_0x47f439(0x127)](this);let {id:_0x5d6425}=_0x11c725[_0x38d495],_0x459316={'attributeId':_0x5d6425,'attributeProperties':_0x1bf4a1,'customerId':localStorage[_0x47f439(0x130)](_0x47f439(0xa9))||'','value':_0x1f0413};yield n(this,Oe,mt)[_0x47f439(0x127)](this,_0x459316),d(_0x47f439(0x83),!0x1),E(_0x47f439(0x123),!0x1);}));});},L=new WeakSet(),V=function(){return l(this,null,function*(){const _0x384174=_0x27df;p(0x1,_0x384174(0xc5)),E(_0x384174(0xc5),!0x0),d('Checking\x20TTL\x20Time',!0x0);let _0x333ce2=localStorage[_0x384174(0x130)](_0x384174(0xf0)),_0x3b3fd5=!0x1;if(_0x333ce2){if(_0x3b3fd5=new Date()[_0x384174(0x13c)]()-parseInt(_0x333ce2,0xa)>0x124f80,_0x3b3fd5){let _0x1f37d4=localStorage[_0x384174(0x130)](_0x384174(0x133)),_0x3e3b12=localStorage[_0x384174(0x130)]('ttl');_0x1f37d4&&_0x3e3b12&&n(this,v,y)['call'](this,_0x384174(0x8c),[{'eventProperty':_0x384174(0x115),'value':localStorage['getItem']('session')},{'eventProperty':_0x384174(0xce),'value':new Date(parseInt(_0x3e3b12,0xa))[_0x384174(0x98)]()}]),n(this,H,Me)[_0x384174(0x127)](this),localStorage[_0x384174(0x109)](_0x384174(0xf0),''+new Date()['getTime']());}}else localStorage[_0x384174(0x109)](_0x384174(0xf0),''+new Date()[_0x384174(0x13c)]());(!_0x333ce2||_0x3b3fd5||n(this,re,Xe)[_0x384174(0x127)](this))&&(n(this,ce,et)['call'](this),yield n(this,C,Y)['call'](this),yield n(this,ie,Ze)[_0x384174(0x127)](this)),d(_0x384174(0x12f),!0x1),E('Checking\x20TTL',!0x1);});},v=new WeakSet(),y=function(_0x4f32db,_0x509318,_0x52d9cc,_0x3698ba,_0x3e8e01){return l(this,null,function*(){const _0x3f0b71=_0x27df;yield w(_0x3f0b71(0xfb),()=>l(this,null,function*(){const _0x1b8b22=_0x3f0b71;var _0x38d15c;p(0x1,_0x1b8b22(0x138)),E(_0x1b8b22(0x7a),!0x0),d(_0x1b8b22(0x85),!0x0),p(0x1,'Event\x20Payload'),p(0x1,{'campaignCustomerInstanceId':_0x3698ba,'eventName':_0x4f32db,'eventProperties':_0x509318,'name':_0x3e8e01}),_0x4f32db!=='Web\x20Session\x20Concluded'&&(yield n(this,L,V)[_0x1b8b22(0x127)](this));let _0x253713=[];_0x509318&&_0x253713['push'](..._0x509318),_0x253713[_0x1b8b22(0x9e)]({'eventProperty':_0x1b8b22(0xe0),'value':S(this,U)}),_0x253713[_0x1b8b22(0x9e)]({'eventProperty':_0x1b8b22(0x65),'value':S(this,B)}),_0x253713[_0x1b8b22(0x9e)]({'eventProperty':_0x1b8b22(0xdc),'value':S(this,$)});let _0x116668=n(this,Ie,lt)[_0x1b8b22(0x127)](this),_0x411bba=n(this,ve,gt)[_0x1b8b22(0x127)](this,_0x116668,_0x4f32db,_0x253713);if(typeof _0x411bba==_0x1b8b22(0xe5)){p(0x2,_0x411bba);return;}n(this,D,X)['call'](this);let {id:_0x3349de}=_0x116668[_0x4f32db],_0x2f87a1=n(this,fe,ut)[_0x1b8b22(0x127)](this,M(we(M(M({},_0x3698ba?{'campaignCustomerInstanceId':_0x3698ba}:{}),_0x52d9cc?{'campaignId':_0x52d9cc}:{}),{'eventId':_0x3349de,'eventProperties':_0x411bba,'sessionId':localStorage[_0x1b8b22(0x130)](_0x1b8b22(0x133))||''}),_0x3e8e01?{'name':_0x3e8e01}:{}));if(c['offline']){let _0x135c33=JSON[_0x1b8b22(0xf3)](localStorage[_0x1b8b22(0x130)]('offlineEvents')||'[]');_0x135c33['length']<=0x32&&(_0x135c33[_0x1b8b22(0x9e)](..._0x2f87a1[_0x1b8b22(0xd3)]),localStorage[_0x1b8b22(0x109)](_0x1b8b22(0xeb),JSON['stringify'](_0x135c33)));return;}let _0x14c08f=yield n(this,Q,Fe)[_0x1b8b22(0x127)](this,_0x2f87a1);(_0x38d15c=_0x14c08f==null?void 0x0:_0x14c08f[_0x1b8b22(0xe1)])==null||_0x38d15c[_0x1b8b22(0xd1)](_0x43b2b6=>{const _0x16f728=_0x1b8b22;n(this,ye,pt)[_0x16f728(0x127)](this,_0x43b2b6[_0x16f728(0x69)][_0x16f728(0x102)])&&(n(this,Te,dt)[_0x16f728(0x127)](this,_0x43b2b6),S(this,ae)[_0x16f728(0x127)](this),n(this,G,_e)[_0x16f728(0x127)](this,_0x43b2b6[_0x16f728(0xf1)]));}),d(_0x1b8b22(0x85),!0x1),E(_0x1b8b22(0x7a),!0x1);}));});},te=new WeakSet(),He=function(){const _0x2baf9b=_0x1f2906;let _0x4dd698=navigator[_0x2baf9b(0x11a)][_0x2baf9b(0xfa)]();return/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i[_0x2baf9b(0x111)](_0x4dd698)?_0x2baf9b(0xee):/windows|macintosh|linux|x11/i[_0x2baf9b(0x111)](_0x4dd698)?'Web':_0x2baf9b(0xde);},ne=new WeakSet(),qe=function(){const _0x2979d7=_0x1f2906;let _0x3ca520=navigator[_0x2979d7(0x11a)],_0xc0d22c;return _0x3ca520['indexOf'](_0x2979d7(0xea))>-0x1?_0xc0d22c=_0x2979d7(0x6d):_0x3ca520['indexOf'](_0x2979d7(0x8a))>-0x1?_0xc0d22c='Safari':_0x3ca520['indexOf'](_0x2979d7(0x72))>-0x1?_0xc0d22c='Mozilla\x20Firefox':_0x3ca520[_0x2979d7(0x82)](_0x2979d7(0xa7))>-0x1?_0xc0d22c='Microsoft\x20Edge':_0x3ca520[_0x2979d7(0x82)](_0x2979d7(0x12e))>-0x1?_0xc0d22c=_0x2979d7(0xd2):_0xc0d22c='Unknown',_0xc0d22c;},K=new WeakSet(),Ue=function(){return l(this,null,function*(){const _0x340feb=_0x27df;try{yield h['get'](_0x340feb(0x9a));}catch(_0x210bc7){throw c[_0x340feb(0x66)]=!0x0,_0x210bc7[_0x340feb(0x69)];}});},z=new WeakSet(),Ce=function(){return l(this,null,function*(){const _0x4bec95=_0x27df;var _0xf320be;p(0x1,_0x4bec95(0x12c)),E(_0x4bec95(0x12c),!0x0),d(_0x4bec95(0xaf),!0x0);let _0x41f926=(_0xf320be=window==null?void 0x0:window[_0x4bec95(0xc7)])==null?void 0x0:_0xf320be['href'];if(_0x41f926!==S(this,k)){O(this,k,_0x41f926);let _0x13cfb1=[];new URLSearchParams(new URL(window['location'][_0x4bec95(0x118)])[_0x4bec95(0x91)])[_0x4bec95(0xd1)]((_0x47844e,_0x53fb7f)=>l(this,null,function*(){const _0xadfae6=_0x4bec95;Ke['has'](_0x53fb7f)&&_0x13cfb1[_0xadfae6(0x9e)]({'eventProperty':_0x53fb7f,'value':_0x47844e});})),yield n(this,v,y)['call'](this,_0x4bec95(0xe7),[{'eventProperty':_0x4bec95(0xf2),'value':window[_0x4bec95(0xc7)][_0x4bec95(0xbd)]},..._0x13cfb1]);}d(_0x4bec95(0xaf),!0x1),E(_0x4bec95(0x12c),!0x1);});},oe=new WeakSet(),Ye=function(_0x1e6a81){const _0x208c3e=_0x1f2906;h[_0x208c3e(0xa6)](_0x1e6a81),O(this,U,n(this,te,He)[_0x208c3e(0x127)](this)),O(this,$,n(this,ne,qe)[_0x208c3e(0x127)](this)),O(this,B,navigator[_0x208c3e(0x11a)]);},re=new WeakSet(),Xe=function(){const _0x1a1435=_0x1f2906;return!localStorage[_0x1a1435(0x130)](_0x1a1435(0xd3))||!localStorage[_0x1a1435(0x130)](_0x1a1435(0xa9))||!localStorage[_0x1a1435(0x130)](_0x1a1435(0x6c))||!localStorage['getItem'](_0x1a1435(0x126))||!localStorage[_0x1a1435(0x130)](_0x1a1435(0x133))||!localStorage[_0x1a1435(0x130)](_0x1a1435(0xa9));},ie=new WeakSet(),Ze=function(){return l(this,null,function*(){const _0x38a670=_0x27df;yield n(this,le,tt)['call'](this),yield n(this,W,De)[_0x38a670(0x127)](this),yield n(this,C,Y)[_0x38a670(0x127)](this);});},ae=new WeakMap(),J=new WeakMap(),se=new WeakMap(),ce=new WeakSet(),et=function(){const _0x416f0d=_0x1f2906;let _0x666dbe=localStorage[_0x416f0d(0x130)](_0x416f0d(0x126));return _0x666dbe||(_0x666dbe=crypto[_0x416f0d(0x107)](),localStorage['setItem'](_0x416f0d(0x126),_0x666dbe)),_0x666dbe;},le=new WeakSet(),tt=function(){return l(this,null,function*(){const _0x23b835=_0x27df;if(!localStorage['getItem']('events')){let _0x254334=(yield n(this,ge,nt)[_0x23b835(0x127)](this))[_0x23b835(0xe1)];_0x254334&&localStorage[_0x23b835(0x109)](_0x23b835(0xd3),JSON[_0x23b835(0x119)](_0x254334));}});},ge=new WeakSet(),nt=function(){return l(this,null,function*(){const _0x1a0a14=_0x27df;try{return yield h[_0x1a0a14(0xd6)](''+Ae);}catch(_0x31ed30){throw new Error(_0x1a0a14(0xc4));}});},W=new WeakSet(),De=function(){return l(this,null,function*(){const _0x7e5c88=_0x27df;if(!localStorage[_0x7e5c88(0x130)](_0x7e5c88(0x6c))){let _0x1a26a2=(yield n(this,ue,ot)[_0x7e5c88(0x127)](this))[_0x7e5c88(0xe1)];_0x1a26a2&&localStorage[_0x7e5c88(0x109)](_0x7e5c88(0x6c),JSON[_0x7e5c88(0x119)](_0x1a26a2));}});},ue=new WeakSet(),ot=function(){return l(this,null,function*(){const _0x33e539=_0x27df;try{return yield h[_0x33e539(0xd6)](''+be);}catch(_0x4a3cfd){throw new Error('Error\x20fetching\x20attribute\x20data');}});},C=new WeakSet(),Y=function(_0xe2cf4d){return l(this,null,function*(){const _0xa498a1=_0x27df;localStorage[_0xa498a1(0x130)]('session')||(localStorage[_0xa498a1(0x109)](_0xa498a1(0x133),crypto[_0xa498a1(0x107)]()),yield n(this,v,y)[_0xa498a1(0x127)](this,_0xa498a1(0xcb),[{'eventProperty':_0xa498a1(0x115),'value':localStorage['getItem'](_0xa498a1(0x133))},{'eventProperty':_0xa498a1(0xce),'value':new Date(parseInt(localStorage[_0xa498a1(0x130)]('ttl')||'',0xa))[_0xa498a1(0x98)]()}]));let _0x34e3be={'deviceId':localStorage[_0xa498a1(0x130)]('uniqueIdentity')||crypto['randomUUID'](),'os':S(this,U)};if(_0xe2cf4d)_0x34e3be[_0xa498a1(0xd4)]=_0xe2cf4d;else{if(!_0xe2cf4d&&localStorage[_0xa498a1(0x130)](_0xa498a1(0xa9)))return;}try{let _0x4e275c=yield n(this,pe,rt)['call'](this,_0x34e3be);_0x4e275c!==void 0x0&&localStorage[_0xa498a1(0x109)](_0xa498a1(0xa9),_0x4e275c);}catch(_0x53f5c6){throw new Error(_0xa498a1(0x13b));}});},D=new WeakSet(),X=function(){const _0x32d88d=_0x1f2906;localStorage['setItem'](_0x32d88d(0xf0),''+new Date()['getTime']());},pe=new WeakSet(),rt=function(_0x33a3cb){return l(this,null,function*(){const _0x4717bd=_0x27df;try{return(yield h[_0x4717bd(0xd8)](''+We+Ge,_0x33a3cb))[_0x4717bd(0xe1)];}catch(_0x2dbe3a){throw new Error(_0x4717bd(0x6f));}});},G=new WeakSet(),_e=function(_0x13237b){const _0x5e2280=_0x1f2906;let _0x12c541=n(this,de,it)['call'](this);if(_0x12c541!=null&&_0x12c541[_0x13237b])switch(_0x12c541[_0x13237b][_0x5e2280(0x67)]){case _0x5e2280(0xd0):{n(this,me,st)[_0x5e2280(0x127)](this,_0x12c541[_0x13237b]);break;}case _0x5e2280(0x141):{n(this,_,Z)[_0x5e2280(0x127)](this,_0x12c541[_0x13237b]);break;}case _0x5e2280(0x121):{n(this,Ee,at)['call'](this,_0x12c541[_0x13237b]);break;}default:return;}},de=new WeakSet(),it=function(){const _0x5488a7=_0x1f2906;let _0x41da89=localStorage[_0x5488a7(0x130)](_0x5488a7(0x7c));return _0x41da89?JSON[_0x5488a7(0xf3)](_0x41da89):null;},Ee=new WeakSet(),at=function(_0x47aab7){const _0x1d05dd=_0x1f2906;let _0x192df3=()=>{const _0x61acec=_0x27df;var _0x150a9e;let _0x21f305=window[_0x61acec(0x7b)],_0x2e3b43=document[_0x61acec(0xaa)][_0x61acec(0x11c)];window[_0x61acec(0xc0)]/(_0x2e3b43-_0x21f305)*0x64>(((_0x150a9e=_0x47aab7[_0x61acec(0xa0)])==null?void 0x0:_0x150a9e[_0x61acec(0x95)])||0x0)&&(window[_0x61acec(0x81)](_0x61acec(0xb1),_0x192df3),n(this,_,Z)[_0x61acec(0x127)](this,_0x47aab7));};window[_0x1d05dd(0xf6)](_0x1d05dd(0xb1),_0x192df3);},me=new WeakSet(),st=function(_0x67691f){const _0x13b881=_0x1f2906;var _0x3380df;let _0x581f33=_0x67691f[_0x13b881(0xd7)]-0x1f4+(((_0x3380df=_0x67691f[_0x13b881(0xa0)])==null?void 0x0:_0x3380df[_0x13b881(0x95)])||0x0)*0x3e8-new Date()['getTime']();_0x581f33>0x0&&_0x67691f['page']===window[_0x13b881(0xc7)]['hostname']+window['location']['pathname']&&setTimeout(()=>{const _0x316e8f=_0x13b881;S(this,J)[_0x316e8f(0x127)](this,_0x67691f[_0x316e8f(0xf1)]),n(this,_,Z)[_0x316e8f(0x127)](this,_0x67691f);},_0x581f33);},_=new WeakSet(),Z=function(_0x36b120){const _0x1ee111=_0x1f2906;let _0x5f3eed=n(this,Se,ct)[_0x1ee111(0x127)](this,_0x1ee111(0xa3),_0x36b120);document[_0x1ee111(0x12d)][_0x1ee111(0x96)](_0x5f3eed),n(this,v,y)[_0x1ee111(0x127)](this,A,[{'eventProperty':_0x1ee111(0x113),'value':JSON['stringify']({'campaignId':_0x36b120[_0x1ee111(0xf1)]})}],_0x36b120[_0x1ee111(0xf1)],_0x36b120[_0x1ee111(0xfe)],_0x1ee111(0x68)),S(this,J)['call'](this,_0x36b120[_0x1ee111(0xf1)]);},Se=new WeakSet(),ct=function(_0x589788,_0x52157a){const _0xc8af2a=_0x1f2906;var _0x1d3a4f;let {campaignCustomerInstanceId:_0x4e8047,campaignId:_0x4ca56e,message:{design:_0x456f81}}=_0x52157a,_0x403ef8=document[_0xc8af2a(0x89)](_0x589788);_0x403ef8['id']=_0xc8af2a(0x7e)+_0x4ca56e,_0x403ef8['innerHTML']=_0x456f81,_0x403ef8[_0xc8af2a(0xe9)][_0xc8af2a(0x9b)]=_0xc8af2a(0xe2),_0x403ef8[_0xc8af2a(0xe9)][_0xc8af2a(0x75)]='0',_0x403ef8[_0xc8af2a(0xe9)][_0xc8af2a(0xd5)]='0',_0x403ef8[_0xc8af2a(0xe9)][_0xc8af2a(0xb4)]='100%',_0x403ef8['style'][_0xc8af2a(0x129)]=_0xc8af2a(0xcd),_0x403ef8[_0xc8af2a(0xe9)][_0xc8af2a(0xa8)]=_0xc8af2a(0x6e);let _0x158769=_0x403ef8[_0xc8af2a(0x12b)](_0xc8af2a(0xba));return _0x158769&&(_0x158769[_0xc8af2a(0xe9)][_0xc8af2a(0xa8)]='50'),_0x403ef8[_0xc8af2a(0xda)](_0xc8af2a(0x137))['forEach'](_0x43f2e4=>{const _0x17627d=_0xc8af2a;let _0x48a0c8=_0x43f2e4[_0x17627d(0x12b)](_0x17627d(0x99));_0x48a0c8&&_0x48a0c8[_0x17627d(0xf6)](_0x17627d(0x93),()=>l(this,null,function*(){const _0x5b2ed2=_0x17627d;_0x403ef8[_0x5b2ed2(0xe3)]();let _0xbb4d90=new FormData(_0x48a0c8),_0x208eb4={};for(let [_0x38abfc,_0x45d842]of _0xbb4d90[_0x5b2ed2(0x11b)]())_0x208eb4[_0x38abfc]=_0x45d842;yield n(this,v,y)['call'](this,A,[{'eventProperty':_0x5b2ed2(0x110),'value':JSON[_0x5b2ed2(0x119)]({'campaignId':_0x4ca56e,'formId':_0x43f2e4['id'],'formValues':_0x208eb4})}],_0x4ca56e,_0x4e8047,_0x5b2ed2(0x99));}));}),(_0x1d3a4f=_0x403ef8['querySelector'](_0xc8af2a(0xf9)))==null||_0x1d3a4f[_0xc8af2a(0xf6)](_0xc8af2a(0x7f),()=>l(this,null,function*(){const _0x323bc0=_0xc8af2a;_0x403ef8[_0x323bc0(0xe3)](),yield n(this,v,y)['call'](this,A,[{'eventProperty':_0x323bc0(0xac),'value':JSON[_0x323bc0(0x119)]({'campaignId':_0x4ca56e})}],_0x4ca56e,_0x4e8047,_0x323bc0(0xbc));})),_0x403ef8[_0xc8af2a(0xda)](_0xc8af2a(0x120))[_0xc8af2a(0xd1)](_0x36d936=>{const _0x15f22f=_0xc8af2a;_0x36d936['addEventListener'](_0x15f22f(0x7f),()=>l(this,null,function*(){const _0x2f9b0b=_0x15f22f;_0x403ef8[_0x2f9b0b(0xe3)](),yield n(this,v,y)[_0x2f9b0b(0x127)](this,A,[{'eventProperty':_0x2f9b0b(0x136),'value':JSON[_0x2f9b0b(0x119)]({'buttonId':_0x36d936['id'],'campaignId':_0x4ca56e})}],_0x4ca56e,_0x4e8047,'click');}));}),_0x403ef8[_0xc8af2a(0xda)]('.u-popup-container\x20img')['forEach'](_0x105770=>{const _0x57032b=_0xc8af2a;_0x105770['addEventListener'](_0x57032b(0x7f),()=>l(this,null,function*(){const _0x2e489c=_0x57032b;yield n(this,v,y)[_0x2e489c(0x127)](this,A,[{'eventProperty':'Image\x20Click','value':JSON['stringify']({'campaignId':_0x4ca56e,'imageClassName':_0x105770[_0x2e489c(0x8b)],'imageId':_0x105770['id']})}],_0x4ca56e,_0x4e8047,_0x2e489c(0x7f));}));}),_0x403ef8;},Ie=new WeakSet(),lt=function(){const _0x4145c8=_0x1f2906;let _0x435c64=localStorage[_0x4145c8(0x130)](_0x4145c8(0xd3));return _0x435c64?JSON[_0x4145c8(0xf3)](_0x435c64):{};},ve=new WeakSet(),gt=function(_0x19bf86,_0x3ab2cb,_0x425dc3){const _0x269dc2=_0x1f2906;if(!Object[_0x269dc2(0x94)][_0x269dc2(0x13e)][_0x269dc2(0x127)](_0x19bf86,_0x3ab2cb))return _0x269dc2(0x92)+_0x3ab2cb+_0x269dc2(0xab);if(!_0x425dc3)return[];let _0x52ebfb=_0x19bf86[_0x3ab2cb];if(!(_0x52ebfb!=null&&_0x52ebfb[_0x269dc2(0x116)]))return _0x269dc2(0x92)+_0x3ab2cb+_0x269dc2(0x139);let _0x5d4121=_0x425dc3[_0x269dc2(0xa2)](({eventProperty:_0x5a5c7b})=>!Object[_0x269dc2(0x94)][_0x269dc2(0x13e)][_0x269dc2(0x127)](_0x52ebfb[_0x269dc2(0x116)],_0x5a5c7b))[_0x269dc2(0xfd)](({eventProperty:_0x32e81c})=>_0x32e81c);return _0x5d4121['length']>0x0?_0x269dc2(0x92)+_0x3ab2cb+'\x20has\x20invalid\x20eventProperties:\x20'+_0x5d4121[_0x269dc2(0xb9)](',\x20')+'.':_0x425dc3[_0x269dc2(0xfd)](({eventProperty:_0x5208ea,value:_0x245611})=>({'eventPropertyId':_0x52ebfb[_0x269dc2(0x116)][_0x5208ea]['id'],'value':_0x245611}));},j=new WeakSet(),xe=function(_0x583a28,_0x26c666,_0x48753e){const _0x58ad16=_0x1f2906;if(!Object['prototype'][_0x58ad16(0x13e)][_0x58ad16(0x127)](_0x583a28,_0x26c666))return _0x58ad16(0x128)+_0x26c666+_0x58ad16(0xab);if(!_0x48753e)return[];let _0x2b2632=_0x583a28[_0x26c666];if(!(_0x2b2632!=null&&_0x2b2632[_0x58ad16(0xc3)]))return _0x58ad16(0x128)+_0x26c666+_0x58ad16(0xd9);let _0x5bc970=_0x48753e[_0x58ad16(0xa2)](({attributeProperty:_0x158306})=>!Object[_0x58ad16(0x94)][_0x58ad16(0x13e)][_0x58ad16(0x127)](_0x2b2632[_0x58ad16(0xc3)],_0x158306))[_0x58ad16(0xfd)](({attributeProperty:_0x34d43c})=>_0x34d43c);return _0x5bc970['length']>0x0?_0x58ad16(0x128)+_0x26c666+'\x20has\x20invalid\x20attributeProperties:\x20'+_0x5bc970[_0x58ad16(0xb9)](',\x20')+'.':_0x48753e[_0x58ad16(0xfd)](({attributeProperty:_0x54b2c5,value:_0x3e0b80})=>({'attributePropertyId':_0x2b2632['attributeProperty'][_0x54b2c5]['id'],'value':_0x3e0b80}));},fe=new WeakSet(),ut=function(_0x2ca545){const _0x8ed7af=_0x1f2906;return{'customerId':localStorage[_0x8ed7af(0x130)](_0x8ed7af(0xa9))||'','events':[_0x2ca545]};},Q=new WeakSet(),Fe=function(_0x3c5973){return l(this,null,function*(){try{return yield h['post'](''+Ae+Je,_0x3c5973);}catch(_0x4a960d){throw new Error('Error\x20posting\x20event\x20record');}});},ye=new WeakSet(),pt=function(_0x974d87){const _0x6890da=_0x1f2906;return _0x974d87===_0x6890da(0x7d);},Te=new WeakSet(),dt=function(_0x30f9bf){const _0x395b82=_0x1f2906;let _0x4a5379=JSON[_0x395b82(0xf3)](localStorage['getItem'](_0x395b82(0x7c))||'{}');_0x4a5379[_0x30f9bf[_0x395b82(0xf1)]]=we(M({},_0x30f9bf),{'initialTime':new Date()[_0x395b82(0x13c)](),'page':window[_0x395b82(0xc7)][_0x395b82(0xbb)]+window[_0x395b82(0xc7)]['pathname']}),localStorage[_0x395b82(0x109)]('action',JSON[_0x395b82(0x119)](_0x4a5379));},H=new WeakSet(),Me=function(){const _0x3fad45=_0x1f2906;localStorage[_0x3fad45(0x73)](_0x3fad45(0x7c)),localStorage[_0x3fad45(0x73)](_0x3fad45(0xd3)),localStorage['removeItem']('attributes'),localStorage[_0x3fad45(0x73)]('offlineEvents'),localStorage['removeItem'](_0x3fad45(0xf0)),localStorage['removeItem'](_0x3fad45(0x133));},he=new WeakSet(),Et=function(){return l(this,null,function*(){const _0x4827d3=_0x27df;localStorage[_0x4827d3(0x130)]('attributes')||(yield n(this,W,De)['call'](this));});},Oe=new WeakSet(),mt=function(_0x17faf9){return l(this,null,function*(){const _0x456dd7=_0x27df;try{return yield h[_0x456dd7(0xd8)](''+be+ze,_0x17faf9);}catch(_0xbf19a7){throw new Error(_0x456dd7(0x135));}});},a(R,P,void 0x0);function _0x27df(_0x2fd069,_0x1ffa95){const _0x5811df=_0x5811();return _0x27df=function(_0x27dfc8,_0x2e050f){_0x27dfc8=_0x27dfc8-0x65;let _0x4f2b5e=_0x5811df[_0x27dfc8];return _0x4f2b5e;},_0x27df(_0x2fd069,_0x1ffa95);}function _0x5811(){const _0x1a96e9=['application/json','uniqueIdentity','call','Attribute\x20','height','UTM_SOURCE','querySelector','Tracking\x20page\x20change','body','MSIE','Checking\x20TTL\x20Time','getItem','isInitialized','funcQueue','session','OriginateFrom:\x20','Error\x20posting\x20attribute\x20record','Button\x20Click','[id^=\x22u_content_form_\x22]','#\x20Recording\x20event','\x20does\x20not\x20have\x20a\x20valid\x20eventProperty.','Cannot\x20','Error\x20setting\x20identity','getTime','/record-event','hasOwnProperty','/set-identity','6MGAiyO','IMMEDIATELY','1694189uatZCc','operating-system','disableSDK','campaignEntryTime','view','message','init','then','attributes','Google\x20Chrome','99999999','Error\x20posting\x20identity\x20data','apply','ERROR','Firefox','removeItem','getOwnPropertyDescriptors','top','UTM_CONTENT','utm_source','onLine','https://u23z4zsda8.execute-api.ap-southeast-1.amazonaws.com/Prod/sdk-management/api','Recording\x20event','innerHeight','action','Popup','popup_container_','click','Mergn\x20SDK\x20Initialization\x20Time','removeEventListener','indexOf','Recording\x20attribute\x20Time','784115BLWNgw','Recording\x20event\x20Time','recordEvent','defineProperty','/attribute','createElement','Safari','className','Web\x20Session\x20Concluded','getInstance','setDebugLevel','has','UTM_CAMPAIGN','search','Event\x20','submit','prototype','value','appendChild','utm_campaign','toISOString','form','/brand','position','NONE','isArray','push','1511608ChQsMP','campaignEntryTimeValue','timeEnd','filter','div','group','216249LieFCH','updateAPIKey','Edg','zIndex','customer','documentElement','\x20is\x20not\x20valid.','Close\x20Click','Debug\x20level\x20must\x20be\x20according\x20to:\x0a\x20NONE:\x200,\x20INFO:\x201,\x20ERROR:\x202,\x20ALL:\x203','values','Tracking\x20page\x20change\x20Time','Logging\x20out','scroll','utm_content','pushState','width','keys','throw','debugLevel','296260pxavst','join','.u-popup-container','hostname','close','pathname','92672WUJZsF','next','scrollY','Logging\x20in\x20Time','462432GsCAOW','attributeProperty','Error\x20fetching\x20event\x20data','Checking\x20TTL','#\x20recordAttribute','location','login','GCLID','Initializing\x20Mergn\x20SDK','Web\x20Session\x20Started','INFO','100%','SESSION_CREATED','page','DELAY','forEach','Internet\x20Explorer','events','identity','left','get','initialTime','post','\x20does\x20not\x20have\x20a\x20valid\x20attributeProperty.','querySelectorAll','resolve','os-version','\x0aUnexpected\x20error:\x20','Unknown','INFO:\x20','Platform','data','fixed','remove','load','string','/event','Viewed\x20Webpage','Event\x20Payload:\x0a\x20','style','Chrome','offlineEvents','logout','error','Mobile','Identity:\x20','ttl','campaignId','URL','parse','groupEnd','gad_source','addEventListener','/set-attribute','UTM_MEDIUM','.u-close-button','toLowerCase','#\x20record\x20event','done','map','campaignCustomerInstanceId','getOwnPropertySymbols','Logging\x20in','add','name','read\x20from\x20private\x20field','loading','json','access\x20private\x20method','randomUUID','apiKey','setItem','time','UTM_TERM','ALL','online','defineProperties','utm_medium','Form\x20Submit','test','record\x20event','Popup\x20View','info','SESSION_ID','eventProperty','\x0aMergnError:\x20','href','stringify','userAgent','entries','scrollHeight','GAD_SOURCE','offline','Mergn\x20SDK\x20is\x20disabled!','[id^=\x22u_content_button_\x22]','SCROLL','Mergn\x20is\x20loading!','Recording\x20attribute','recordAttribute'];_0x5811=function(){return _0x1a96e9;};return _0x5811();}var Pe=R,Ve=Pe['getInstance']();typeof window!='undefined'&&(window['mergn']=Ve);var En=Ve;export{En as default};
1
+ const _0xb34065=_0x4e1b;(function(_0x45da9e,_0x47e42a){const _0x4ff9e1=_0x4e1b,_0x53ec4c=_0x45da9e();while(!![]){try{const _0x4d81ad=-parseInt(_0x4ff9e1(0x16d))/0x1+-parseInt(_0x4ff9e1(0x104))/0x2*(parseInt(_0x4ff9e1(0xce))/0x3)+-parseInt(_0x4ff9e1(0x19f))/0x4*(parseInt(_0x4ff9e1(0x12c))/0x5)+-parseInt(_0x4ff9e1(0x134))/0x6+-parseInt(_0x4ff9e1(0x168))/0x7*(parseInt(_0x4ff9e1(0xe4))/0x8)+-parseInt(_0x4ff9e1(0x15e))/0x9*(parseInt(_0x4ff9e1(0xf8))/0xa)+parseInt(_0x4ff9e1(0x173))/0xb;if(_0x4d81ad===_0x47e42a)break;else _0x53ec4c['push'](_0x53ec4c['shift']());}catch(_0x5d058f){_0x53ec4c['push'](_0x53ec4c['shift']());}}}(_0x235d,0x733b5));var St=Object[_0xb34065(0x177)],mt=Object[_0xb34065(0xd2)],vt=Object['getOwnPropertyDescriptors'],$e=Object[_0xb34065(0x14f)],Tt=Object[_0xb34065(0x197)][_0xb34065(0x17a)],ft=Object[_0xb34065(0x197)][_0xb34065(0x125)],ke=(_0x2f47f7,_0x2f5b16,_0x342319)=>_0x2f5b16 in _0x2f47f7?St(_0x2f47f7,_0x2f5b16,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x342319}):_0x2f47f7[_0x2f5b16]=_0x342319,V=(_0x19cf9b,_0x4093e4)=>{const _0x3318ac=_0xb34065;for(var _0x189eb1 in _0x4093e4||(_0x4093e4={}))Tt['call'](_0x4093e4,_0x189eb1)&&ke(_0x19cf9b,_0x189eb1,_0x4093e4[_0x189eb1]);if($e){for(var _0x189eb1 of $e(_0x4093e4))ft[_0x3318ac(0x162)](_0x4093e4,_0x189eb1)&&ke(_0x19cf9b,_0x189eb1,_0x4093e4[_0x189eb1]);}return _0x19cf9b;},Re=(_0x6f8965,_0x470313)=>mt(_0x6f8965,vt(_0x470313)),we=(_0x3cdd7c,_0x4260c1,_0x1a4211)=>{const _0x407c28=_0xb34065;if(!_0x4260c1['has'](_0x3cdd7c))throw TypeError(_0x407c28(0x157)+_0x1a4211);},S=(_0x35ec31,_0x3a5236,_0x1b4151)=>(we(_0x35ec31,_0x3a5236,_0xb34065(0x106)),_0x1b4151?_0x1b4151['call'](_0x35ec31):_0x3a5236[_0xb34065(0x141)](_0x35ec31)),s=(_0x18d739,_0x1f1bf7,_0xc6dd0e)=>{const _0x593789=_0xb34065;if(_0x1f1bf7[_0x593789(0x167)](_0x18d739))throw TypeError('Cannot\x20add\x20the\x20same\x20private\x20member\x20more\x20than\x20once');_0x1f1bf7 instanceof WeakSet?_0x1f1bf7[_0x593789(0x180)](_0x18d739):_0x1f1bf7[_0x593789(0x19d)](_0x18d739,_0xc6dd0e);},O=(_0x3a7ccd,_0x27ed92,_0x52069d,_0x37df74)=>(we(_0x3a7ccd,_0x27ed92,'write\x20to\x20private\x20field'),_0x37df74?_0x37df74[_0xb34065(0x162)](_0x3a7ccd,_0x52069d):_0x27ed92['set'](_0x3a7ccd,_0x52069d),_0x52069d),n=(_0x3b5f46,_0x1d2f9e,_0x1320d5)=>(we(_0x3b5f46,_0x1d2f9e,_0xb34065(0x148)),_0x1320d5),c=(_0xb1d77d,_0x55f9a9,_0x3e54fb)=>new Promise((_0x3667e8,_0x253af7)=>{const _0x1a5d9f=_0xb34065;var _0xb8a309=_0x4884a3=>{try{_0x232023(_0x3e54fb['next'](_0x4884a3));}catch(_0x2a602f){_0x253af7(_0x2a602f);}},_0x14ea33=_0x50ca41=>{try{_0x232023(_0x3e54fb['throw'](_0x50ca41));}catch(_0x3dfd4b){_0x253af7(_0x3dfd4b);}},_0x232023=_0x232bf8=>_0x232bf8[_0x1a5d9f(0x143)]?_0x3667e8(_0x232bf8[_0x1a5d9f(0x144)]):Promise[_0x1a5d9f(0x123)](_0x232bf8[_0x1a5d9f(0x144)])['then'](_0xb8a309,_0x14ea33);_0x232023((_0x3e54fb=_0x3e54fb[_0x1a5d9f(0x152)](_0xb1d77d,_0x55f9a9))[_0x1a5d9f(0x119)]());}),Je=(_0x31c393=>(_0x31c393[_0xb34065(0x117)]=_0xb34065(0xd0),_0x31c393['UTM_MEDIUM']=_0xb34065(0x184),_0x31c393[_0xb34065(0xc8)]=_0xb34065(0xf4),_0x31c393[_0xb34065(0x149)]=_0xb34065(0x179),_0x31c393[_0xb34065(0xfc)]=_0xb34065(0x10b),_0x31c393[_0xb34065(0x18c)]=_0xb34065(0x16a),_0x31c393[_0xb34065(0xc7)]='gclid',_0x31c393))(Je||{}),ze=new Set(Object[_0xb34065(0x176)](Je)),A=_0xb34065(0x124),Le='https://u23z4zsda8.execute-api.ap-southeast-1.amazonaws.com/Prod/sdk-management/api',Ne=_0xb34065(0x161),We=_0xb34065(0x11b),Ae=_0xb34065(0x193),Ke=_0xb34065(0x139),je='/customer',Ge=_0xb34065(0x14b),b,f=class f{constructor(){}static[_0xb34065(0x101)](){return S(f,b)||O(f,b,new f()),S(f,b);}['updateAPIKey'](_0xcf996a){f['apiKey']=_0xcf996a;}[_0xb34065(0x141)](_0x3eb14e){return c(this,null,function*(){const _0x939ae7=_0x4e1b;return(yield fetch(Le+_0x3eb14e,{'headers':{'Authorization':f[_0x939ae7(0xf0)],'Content-Type':_0x939ae7(0x11c)}}))[_0x939ae7(0x150)]();});}[_0xb34065(0xd5)](_0x836d32,_0x17fe4c){return c(this,null,function*(){const _0x990b44=_0x4e1b;return(yield fetch(Le+_0x836d32,{'body':JSON[_0x990b44(0x175)](_0x17fe4c||{}),'headers':{'Authorization':f['apiKey'],'Content-Type':_0x990b44(0x11c)},'method':_0x990b44(0x16b)}))['json']();});}};b=new WeakMap(),s(f,b,void 0x0);var be=f,h=be['getInstance'](),g=class extends Error{constructor(_0xeea6e8){const _0x56ae17=_0xb34065;super(_0xeea6e8),this[_0x56ae17(0x199)]=_0x56ae17(0x188);}};g['disableSDK']=!0x1,g[_0xb34065(0x178)]=!navigator[_0xb34065(0x16e)],g[_0xb34065(0x108)]=0x0,g[_0xb34065(0x170)]=!0x1,g[_0xb34065(0x114)]=!0x1;var yt=(_0x111cb6,_0x106219)=>{const _0x14cdf5=_0xb34065;_0x106219 instanceof g?p(0x2,_0x14cdf5(0xd4)+_0x111cb6+'\x0aMergnError:\x20'+_0x106219[_0x14cdf5(0x185)]):_0x106219 instanceof Error?p(0x2,_0x14cdf5(0xd4)+_0x111cb6+_0x14cdf5(0x17f)+_0x106219[_0x14cdf5(0x185)]):p(0x2,'OriginateFrom:\x20'+_0x111cb6+_0x14cdf5(0x17f)+String(_0x106219));},R=(_0x43d3d4,_0x54b381,_0x405724)=>c(void 0x0,null,function*(){const _0x567bba=_0xb34065;try{if(g[_0x567bba(0x10c)])throw new g(_0x567bba(0x102));if(_0x43d3d4!==_0x567bba(0x19e)&&g[_0x567bba(0x178)])throw new g(_0x567bba(0x192));if(_0x43d3d4!==_0x567bba(0x145)&&_0x43d3d4!=='record\x20event'&&_0x43d3d4!==_0x567bba(0xe7)&&!g['isInitialized'])throw new g(_0x567bba(0x118));if(_0x43d3d4!=='login'&&g['loading'])throw new g(_0x567bba(0x191));return yield _0x54b381();}catch(_0x55f881){return _0x405724?_0x405724(_0x55f881):(g[_0x567bba(0x108)]===0x2||g[_0x567bba(0x108)]===0x3)&&yt(_0x43d3d4,_0x55f881),null;}}),Y=(_0x24037d=>(_0x24037d[_0x24037d[_0xb34065(0x163)]=0x0]=_0xb34065(0x163),_0x24037d[_0x24037d[_0xb34065(0xde)]=0x1]=_0xb34065(0xde),_0x24037d[_0x24037d['ERROR']=0x2]=_0xb34065(0xd1),_0x24037d[_0x24037d['ALL']=0x3]=_0xb34065(0xf2),_0x24037d))(Y||{}),p=(_0x372195,_0x1a8a9b)=>{const _0x5e869b=_0xb34065;g[_0x5e869b(0x108)]!==0x0&&g['debugLevel']<=0x3&&(_0x372195===0x1?console['info'](_0x5e869b(0xdb)+new Date()[_0x5e869b(0xeb)](),_0x1a8a9b):_0x372195===0x2&&console[_0x5e869b(0x182)](_0x5e869b(0x138)+new Date()[_0x5e869b(0xeb)](),_0x1a8a9b));},u=(_0x411eaf,_0x114275)=>{const _0x4bb676=_0xb34065;g['debugLevel']!==0x0&&(_0x114275?console['time'](_0x411eaf):console[_0x4bb676(0x1a1)](_0x411eaf));},d=(_0x85b3df,_0x2981d5)=>{const _0x3ee8f0=_0xb34065;g['debugLevel']!==0x0&&(_0x2981d5?console['group'](_0x85b3df):console[_0x3ee8f0(0xcd)]());},P,_,B,$,k,J,_e,L,M,v,T,te,He,ne,Ze,z,De,W,Ue,re,qe,oe,Ye,ie,Qe,ae,K,se,ce,Xe,le,et,ge,tt,j,Ce,Ee,nt,D,Q,U,X,pe,rt,G,xe,ue,ot,de,it,Ie,at,C,ee,Se,st,me,ct,ve,lt,H,Fe,Te,gt,Z,Ve,fe,Et,ye,pt,q,Me,he,ut,Oe,dt,w=class w{constructor(){s(this,J),s(this,L),s(this,v),s(this,te),s(this,ne),s(this,z),s(this,W),s(this,re),s(this,oe),s(this,ie),s(this,ce),s(this,le),s(this,ge),s(this,j),s(this,Ee),s(this,D),s(this,U),s(this,pe),s(this,G),s(this,ue),s(this,de),s(this,Ie),s(this,C),s(this,Se),s(this,me),s(this,ve),s(this,H),s(this,Te),s(this,Z),s(this,fe),s(this,ye),s(this,q),s(this,he),s(this,Oe),s(this,_,void 0x0),s(this,B,void 0x0),s(this,$,void 0x0),s(this,k,null),s(this,ae,()=>{const _0x298f8d=_0x4e1b;let _0x2cd2c0=()=>{const _0x24fc7c=_0x4e1b;let _0x26a5fa=JSON[_0x24fc7c(0x10f)](localStorage['getItem'](_0x24fc7c(0x15d))||'{}');Object[_0x24fc7c(0x146)](_0x26a5fa)[_0x24fc7c(0xd3)](_0x4c5d55=>{const _0x4f3e7e=_0x24fc7c;_0x26a5fa[_0x4c5d55][_0x4f3e7e(0x13f)]=new Date()[_0x4f3e7e(0x174)](),_0x26a5fa[_0x4c5d55]['page']=window[_0x4f3e7e(0x14a)][_0x4f3e7e(0x137)]+window['location']['pathname'];}),localStorage[_0x24fc7c(0x13a)](_0x24fc7c(0x15d),JSON[_0x24fc7c(0x175)](_0x26a5fa));};_0x2cd2c0(),window[_0x298f8d(0x14c)]('beforeunload',_0x2cd2c0);}),s(this,K,_0x225012=>{const _0x1e5c36=_0x4e1b;let _0x1f4775=JSON[_0x1e5c36(0x10f)](localStorage['getItem'](_0x1e5c36(0x15d))||'{}');_0x1f4775[_0x225012]&&delete _0x1f4775[_0x225012],localStorage['setItem'](_0x1e5c36(0x15d),JSON[_0x1e5c36(0x175)](_0x1f4775));}),s(this,se,()=>{const _0x5176fb=_0x4e1b;let _0x5b2e58=JSON[_0x5176fb(0x10f)](localStorage['getItem'](_0x5176fb(0x15d))||'{}');Object['keys'](_0x5b2e58)[_0x5176fb(0xd3)](_0x1b6883=>{const _0x1229f1=_0x5176fb;_0x5b2e58[_0x1b6883][_0x1229f1(0x185)][_0x1229f1(0x199)]==='Popup'&&n(this,G,xe)['call'](this,_0x5b2e58[_0x1b6883][_0x1229f1(0x10d)]);});});}static[_0xb34065(0x101)](){return S(w,P)||O(w,P,new w()),S(w,P);}[_0xb34065(0x145)](_0x47bef0){const _0x4f0ee4=_0xb34065;R(_0x4f0ee4(0x145),()=>c(this,null,function*(){const _0x28937c=_0x4f0ee4;p(0x1,_0x28937c(0xdf)),d('Initializing\x20Mergn\x20SDK',!0x0),u(_0x28937c(0x17e),!0x0),n(this,re,qe)['call'](this,_0x47bef0),yield n(this,z,De)[_0x28937c(0x162)](this),g[_0x28937c(0x170)]=!0x0;let _0x52c681=JSON['parse'](localStorage['getItem'](_0x28937c(0x100))||'[]');Array[_0x28937c(0x1a0)](_0x52c681)&&_0x52c681[_0x28937c(0xd3)]((_0x312016,_0x5c8aca)=>c(this,null,function*(){const _0xb252d1=_0x28937c;yield n(this,v,T)[_0xb252d1(0x162)](this,_0x312016['eventName'],_0x312016[_0xb252d1(0xdc)]),_0x52c681[_0xb252d1(0x12a)](_0x5c8aca,0x1),localStorage['setItem'](_0xb252d1(0x100),JSON[_0xb252d1(0x175)](_0x52c681));}));let _0x3e1366=JSON[_0x28937c(0x10f)](localStorage[_0x28937c(0x1a2)](_0x28937c(0xea))||'[]');Array[_0x28937c(0x1a0)](_0x3e1366)&&_0x3e1366['forEach']((_0x1a1972,_0x4cd2bb)=>c(this,null,function*(){const _0x22d685=_0x28937c;yield n(this,J,_e)[_0x22d685(0x162)](this,_0x1a1972['attributeName'],_0x1a1972[_0x22d685(0x15a)]),_0x3e1366[_0x22d685(0x12a)](_0x4cd2bb,0x1),localStorage[_0x22d685(0x13a)](_0x22d685(0xea),JSON[_0x22d685(0x175)](_0x3e1366));})),addEventListener(_0x28937c(0xcc),()=>c(this,null,function*(){const _0x2b3e04=_0x28937c;console[_0x2b3e04(0x172)](_0x2b3e04(0x196)),_0x2b3e04(0x190)in navigator&&(yield navigator[_0x2b3e04(0x190)][_0x2b3e04(0x14d)](_0x2b3e04(0xd7)));})),setInterval(()=>c(this,null,function*(){const _0x2ab958=_0x28937c;yield n(this,z,De)[_0x2ab958(0x162)](this);}),0x493e0),yield n(this,L,M)[_0x28937c(0x162)](this),window[_0x28937c(0x14c)](_0x28937c(0x136),()=>c(this,null,function*(){const _0xba48bd=_0x28937c;g[_0xba48bd(0x178)]=!0x1;let _0x22365f=JSON[_0xba48bd(0x10f)](localStorage[_0xba48bd(0x1a2)](_0xba48bd(0xda))||'[]');Array['isArray'](_0x22365f)&&(yield n(this,Z,Ve)[_0xba48bd(0x162)](this,{'customerId':localStorage['getItem'](_0xba48bd(0x195))||'','events':_0x22365f}),localStorage[_0xba48bd(0x16c)](_0xba48bd(0xda))),n(this,L,M)[_0xba48bd(0x162)](this),n(this,U,X)['call'](this);})),window['addEventListener'](_0x28937c(0x178),()=>{const _0x32005e=_0x28937c;g[_0x32005e(0x178)]=!0x0;}),window[_0x28937c(0x14c)](_0x28937c(0xcc),()=>{S(this,se)['call'](this);});let _0xbbd7ab=history[_0x28937c(0x198)];history[_0x28937c(0x198)]=(..._0x13e202)=>{const _0x3a17cb=_0x28937c;_0xbbd7ab['apply'](history,_0x13e202),n(this,W,Ue)[_0x3a17cb(0x162)](this);},n(this,W,Ue)[_0x28937c(0x162)](this),u(_0x28937c(0x17e),!0x1),d(_0x28937c(0xdf),!0x1);}));}[_0xb34065(0x158)](_0x33b5b0){const _0x3511f1=_0xb34065;if(!(_0x33b5b0 in Y)){console[_0x3511f1(0x182)](_0x3511f1(0x19b));return;}g[_0x3511f1(0x108)]=_0x33b5b0;}['recordAttribute'](_0x2a4715,_0x56e4bb){const _0x1cb8c7=_0xb34065;R(_0x1cb8c7(0xe7),()=>c(this,null,function*(){const _0x2b4754=_0x1cb8c7;if(g[_0x2b4754(0x170)])yield n(this,J,_e)[_0x2b4754(0x162)](this,_0x2a4715,_0x56e4bb,void 0x0);else{let _0x5671d2=JSON[_0x2b4754(0x10f)](localStorage[_0x2b4754(0x1a2)](_0x2b4754(0xea))||'[]');_0x5671d2[_0x2b4754(0x11e)]({'attributeName':_0x2a4715,'attributeValue':_0x56e4bb}),localStorage[_0x2b4754(0x13a)]('preInitializedAttributes',JSON['stringify'](_0x5671d2));}}));}['login'](_0x472dd8){const _0x508a61=_0xb34065;R(_0x508a61(0x142),()=>c(this,null,function*(){const _0x2c9367=_0x508a61;p(0x1,_0x2c9367(0x107)),d(_0x2c9367(0x107),!0x0),u(_0x2c9367(0x15f),!0x0),p(0x1,'Identity:\x20'+_0x472dd8),g[_0x2c9367(0x114)]=!0x0,yield n(this,D,Q)[_0x2c9367(0x162)](this,_0x472dd8),g['loading']=!0x1,u(_0x2c9367(0x15f),!0x1),d(_0x2c9367(0x107),!0x1);}));}['logout'](){R('logout',()=>c(this,null,function*(){const _0x195e6c=_0x4e1b;p(0x1,_0x195e6c(0x10a)),d(_0x195e6c(0x10a),!0x0),u(_0x195e6c(0x147),!0x0),n(this,q,Me)[_0x195e6c(0x162)](this),u(_0x195e6c(0x147),!0x1),d('Logging\x20out',!0x1);}));}[_0xb34065(0x183)](_0x15d115,_0x4e9a28){setTimeout(()=>{R('record\x20event',()=>c(this,null,function*(){const _0x20e2de=_0x4e1b;if(p(0x1,'Recording\x20event'),d(_0x20e2de(0xf3),!0x0),u(_0x20e2de(0x13e),!0x0),p(0x1,_0x20e2de(0x14e)+{'eventName':_0x15d115,'eventProperties':_0x4e9a28}),g['isInitialized'])n(this,v,T)[_0x20e2de(0x162)](this,_0x15d115,_0x4e9a28);else{let _0x4db14c=JSON[_0x20e2de(0x10f)](localStorage[_0x20e2de(0x1a2)](_0x20e2de(0x100))||'[]');_0x4db14c[_0x20e2de(0x11e)]({'eventName':_0x15d115,'eventProperties':_0x4e9a28}),localStorage[_0x20e2de(0x13a)]('preInitializedEvents',JSON[_0x20e2de(0x175)](_0x4db14c));}u(_0x20e2de(0x13e),!0x1),d('Recording\x20event',!0x1);}));});}};function _0x4e1b(_0x3b437b,_0x2bd1c6){const _0x235d3d=_0x235d();return _0x4e1b=function(_0x4e1b6e,_0x443f12){_0x4e1b6e=_0x4e1b6e-0xc6;let _0x182739=_0x235d3d[_0x4e1b6e];return _0x182739;},_0x4e1b(_0x3b437b,_0x2bd1c6);}P=new WeakMap(),_=new WeakMap(),B=new WeakMap(),$=new WeakMap(),k=new WeakMap(),J=new WeakSet(),_e=function(_0x35a4d0,_0x3f760c,_0x3eee40){return c(this,null,function*(){const _0x557b72=_0x4e1b;yield R(_0x557b72(0xd9),()=>c(this,null,function*(){const _0x240621=_0x557b72;p(0x1,_0x240621(0xec)),d(_0x240621(0xec),!0x0),u(_0x240621(0xf5),!0x0),p(0x1,_0x240621(0x10e)+{'attributeName':_0x35a4d0,'attributeProperties':_0x3eee40,'attributeValue':_0x3f760c}+')}'),yield n(this,L,M)[_0x240621(0x162)](this),yield n(this,he,ut)[_0x240621(0x162)](this);let _0xf984c6=JSON[_0x240621(0x10f)](localStorage[_0x240621(0x1a2)](_0x240621(0x171))||'{}'),_0x1fdc41=_0x3eee40?n(this,H,Fe)[_0x240621(0x162)](this,_0xf984c6,_0x35a4d0,_0x3eee40):n(this,H,Fe)[_0x240621(0x162)](this,_0xf984c6,_0x35a4d0);if(typeof _0x1fdc41=='string'){p(0x2,_0x1fdc41);return;}n(this,U,X)[_0x240621(0x162)](this);let {id:_0x4a36c3}=_0xf984c6[_0x35a4d0],_0x2e37d5={'attributeId':_0x4a36c3,'attributeProperties':_0x1fdc41,'customerId':localStorage['getItem'](_0x240621(0x195))||'','value':_0x3f760c};yield n(this,Oe,dt)['call'](this,_0x2e37d5),u('Recording\x20attribute\x20Time',!0x1),d('Recording\x20attribute',!0x1);}));});},L=new WeakSet(),M=function(){return c(this,null,function*(){const _0x459a25=_0x4e1b;p(0x1,_0x459a25(0x159)),d(_0x459a25(0x159),!0x0),u(_0x459a25(0xed),!0x0);let _0x5e5437=localStorage[_0x459a25(0x1a2)]('ttl'),_0x55fec2=!0x1;if(_0x5e5437){if(_0x55fec2=new Date()[_0x459a25(0x174)]()-parseInt(_0x5e5437,0xa)>0x124f80,_0x55fec2){let _0x138589=localStorage[_0x459a25(0x1a2)]('session'),_0x3568d2=localStorage[_0x459a25(0x1a2)](_0x459a25(0xe6));_0x138589&&_0x3568d2&&n(this,v,T)[_0x459a25(0x162)](this,_0x459a25(0x194),[{'eventProperty':_0x459a25(0xfd),'value':localStorage['getItem'](_0x459a25(0x122))},{'eventProperty':_0x459a25(0x121),'value':new Date(parseInt(_0x3568d2,0xa))['toISOString']()}]),n(this,q,Me)['call'](this),localStorage[_0x459a25(0x13a)](_0x459a25(0xe6),''+new Date()[_0x459a25(0x174)]());}}else localStorage['setItem']('ttl',''+new Date()[_0x459a25(0x174)]());(!_0x5e5437||_0x55fec2||n(this,oe,Ye)[_0x459a25(0x162)](this))&&(n(this,ce,Xe)[_0x459a25(0x162)](this),yield n(this,D,Q)[_0x459a25(0x162)](this),yield n(this,ie,Qe)[_0x459a25(0x162)](this)),u(_0x459a25(0xed),!0x1),d(_0x459a25(0x159),!0x1);});},v=new WeakSet(),T=function(_0x2d3f4e,_0x467e6e,_0x4740f5,_0x564939,_0x4321c7){return c(this,null,function*(){const _0x46acb3=_0x4e1b;yield R(_0x46acb3(0xfa),()=>c(this,null,function*(){const _0x5b9942=_0x46acb3;var _0x24aa88;p(0x1,_0x5b9942(0xfe)),d('Recording\x20event',!0x0),u(_0x5b9942(0x13e),!0x0),p(0x1,'Event\x20Payload'),p(0x1,{'campaignCustomerInstanceId':_0x564939,'eventName':_0x2d3f4e,'eventProperties':_0x467e6e,'name':_0x4321c7}),_0x2d3f4e!==_0x5b9942(0x194)&&(yield n(this,L,M)[_0x5b9942(0x162)](this));let _0x2ba161=[];_0x467e6e&&_0x2ba161['push'](..._0x467e6e),_0x2ba161['push']({'eventProperty':'Platform','value':S(this,_)}),_0x2ba161[_0x5b9942(0x11e)]({'eventProperty':_0x5b9942(0x131),'value':S(this,$)}),_0x2ba161[_0x5b9942(0x11e)]({'eventProperty':_0x5b9942(0xc9),'value':S(this,B)});let _0x3f3a8c=n(this,me,ct)[_0x5b9942(0x162)](this),_0x5db51c=n(this,ve,lt)[_0x5b9942(0x162)](this,_0x3f3a8c,_0x2d3f4e,_0x2ba161);if(typeof _0x5db51c==_0x5b9942(0xcb)){p(0x2,_0x5db51c);return;}n(this,U,X)[_0x5b9942(0x162)](this);let {id:_0x108098}=_0x3f3a8c[_0x2d3f4e],_0x15bb72=n(this,Te,gt)[_0x5b9942(0x162)](this,V(Re(V(V({},_0x564939?{'campaignCustomerInstanceId':_0x564939}:{}),_0x4740f5?{'campaignId':_0x4740f5}:{}),{'eventId':_0x108098,'eventProperties':_0x5db51c,'sessionId':localStorage[_0x5b9942(0x1a2)](_0x5b9942(0x122))||''}),_0x4321c7?{'name':_0x4321c7}:{}));if(g[_0x5b9942(0x178)]){let _0x42ae2b=JSON['parse'](localStorage['getItem'](_0x5b9942(0xda))||'[]');_0x42ae2b['length']<=0x32&&(_0x42ae2b[_0x5b9942(0x11e)](..._0x15bb72[_0x5b9942(0x17c)]),localStorage[_0x5b9942(0x13a)](_0x5b9942(0xda),JSON[_0x5b9942(0x175)](_0x42ae2b)));return;}let _0x2bf9a6=yield n(this,Z,Ve)[_0x5b9942(0x162)](this,_0x15bb72);(_0x24aa88=_0x2bf9a6==null?void 0x0:_0x2bf9a6['data'])==null||_0x24aa88['forEach'](_0x529446=>{const _0x11ea5a=_0x5b9942;n(this,fe,Et)[_0x11ea5a(0x162)](this,_0x529446[_0x11ea5a(0x185)]['name'])&&(n(this,ye,pt)['call'](this,_0x529446),S(this,ae)['call'](this),n(this,G,xe)[_0x11ea5a(0x162)](this,_0x529446[_0x11ea5a(0x10d)]));}),u('Recording\x20event\x20Time',!0x1),d(_0x5b9942(0xf3),!0x1);}));});},te=new WeakSet(),He=function(){const _0x24344b=_0xb34065;let _0x5225a8=navigator['userAgent']['toLowerCase']();return/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i[_0x24344b(0x11d)](_0x5225a8)?_0x24344b(0xca):/windows|macintosh|linux|x11/i[_0x24344b(0x11d)](_0x5225a8)?_0x24344b(0x151):_0x24344b(0x11a);},ne=new WeakSet(),Ze=function(){const _0x38aae0=_0xb34065;let _0x2cdebd=navigator[_0x38aae0(0xef)],_0x352cd3;return _0x2cdebd[_0x38aae0(0xe5)]('Chrome')>-0x1?_0x352cd3=_0x38aae0(0xe0):_0x2cdebd[_0x38aae0(0xe5)](_0x38aae0(0x132))>-0x1?_0x352cd3=_0x38aae0(0x132):_0x2cdebd[_0x38aae0(0xe5)]('Firefox')>-0x1?_0x352cd3=_0x38aae0(0xe1):_0x2cdebd[_0x38aae0(0xe5)]('Edg')>-0x1?_0x352cd3=_0x38aae0(0x111):_0x2cdebd['indexOf']('MSIE')>-0x1?_0x352cd3=_0x38aae0(0x165):_0x352cd3=_0x38aae0(0x11a),_0x352cd3;},z=new WeakSet(),De=function(){return c(this,null,function*(){const _0x25b02b=_0x4e1b;try{yield h[_0x25b02b(0x141)]('/brand');}catch(_0x321631){throw g[_0x25b02b(0x10c)]=!0x0,_0x321631[_0x25b02b(0x185)];}});},W=new WeakSet(),Ue=function(){return c(this,null,function*(){const _0x1e862f=_0x4e1b;var _0x58e486;p(0x1,_0x1e862f(0x11f)),d(_0x1e862f(0x11f),!0x0),u('Tracking\x20page\x20change\x20Time',!0x0);let _0x130da2=(_0x58e486=window==null?void 0x0:window[_0x1e862f(0x14a)])==null?void 0x0:_0x58e486[_0x1e862f(0x110)];if(_0x130da2!==S(this,k)){O(this,k,_0x130da2);let _0x3dcb98=[];new URLSearchParams(new URL(window[_0x1e862f(0x14a)][_0x1e862f(0x110)])[_0x1e862f(0x128)])[_0x1e862f(0xd3)]((_0xc0c6bd,_0xaaa96e)=>c(this,null,function*(){const _0x5cdf35=_0x1e862f;ze[_0x5cdf35(0x167)](_0xaaa96e)&&_0x3dcb98[_0x5cdf35(0x11e)]({'eventProperty':_0xaaa96e,'value':_0xc0c6bd});})),yield n(this,v,T)[_0x1e862f(0x162)](this,_0x1e862f(0x153),[{'eventProperty':'URL','value':window[_0x1e862f(0x14a)][_0x1e862f(0x105)]},..._0x3dcb98]);}u(_0x1e862f(0xfb),!0x1),d(_0x1e862f(0x11f),!0x1);});},re=new WeakSet(),qe=function(_0x2d5642){const _0x5e9722=_0xb34065;h[_0x5e9722(0x12d)](_0x2d5642),O(this,_,n(this,te,He)['call'](this)),O(this,B,n(this,ne,Ze)['call'](this)),O(this,$,navigator[_0x5e9722(0xef)]);},oe=new WeakSet(),Ye=function(){const _0x4a163f=_0xb34065;return!localStorage[_0x4a163f(0x1a2)]('events')||!localStorage['getItem'](_0x4a163f(0x195))||!localStorage[_0x4a163f(0x1a2)]('attributes')||!localStorage['getItem'](_0x4a163f(0xf6))||!localStorage[_0x4a163f(0x1a2)](_0x4a163f(0x122))||!localStorage['getItem'](_0x4a163f(0x195));},ie=new WeakSet(),Qe=function(){return c(this,null,function*(){const _0x510260=_0x4e1b;yield n(this,le,et)[_0x510260(0x162)](this),yield n(this,j,Ce)[_0x510260(0x162)](this),yield n(this,D,Q)[_0x510260(0x162)](this);});},ae=new WeakMap(),K=new WeakMap(),se=new WeakMap(),ce=new WeakSet(),Xe=function(){const _0x6f90ec=_0xb34065;let _0x53e7ba=localStorage[_0x6f90ec(0x1a2)]('uniqueIdentity');return _0x53e7ba||(_0x53e7ba=crypto[_0x6f90ec(0xf1)](),localStorage[_0x6f90ec(0x13a)](_0x6f90ec(0xf6),_0x53e7ba)),_0x53e7ba;},le=new WeakSet(),et=function(){return c(this,null,function*(){const _0x4fe19a=_0x4e1b;if(!localStorage[_0x4fe19a(0x1a2)](_0x4fe19a(0x17c))){let _0x59a2db=(yield n(this,ge,tt)[_0x4fe19a(0x162)](this))[_0x4fe19a(0x15b)];_0x59a2db&&localStorage[_0x4fe19a(0x13a)](_0x4fe19a(0x17c),JSON[_0x4fe19a(0x175)](_0x59a2db));}});},ge=new WeakSet(),tt=function(){return c(this,null,function*(){const _0x116366=_0x4e1b;try{return yield h[_0x116366(0x141)](''+Ae);}catch(_0x29b4d0){throw new Error('Error\x20fetching\x20event\x20data');}});},j=new WeakSet(),Ce=function(){return c(this,null,function*(){const _0xff9bde=_0x4e1b;if(!localStorage[_0xff9bde(0x1a2)](_0xff9bde(0x171))){let _0x3dc786=(yield n(this,Ee,nt)[_0xff9bde(0x162)](this))[_0xff9bde(0x15b)];_0x3dc786&&localStorage[_0xff9bde(0x13a)](_0xff9bde(0x171),JSON[_0xff9bde(0x175)](_0x3dc786));}});},Ee=new WeakSet(),nt=function(){return c(this,null,function*(){const _0x527039=_0x4e1b;try{return yield h[_0x527039(0x141)](''+Ne);}catch(_0x208d02){throw new Error(_0x527039(0xe3));}});},D=new WeakSet(),Q=function(_0x43a7fb){return c(this,null,function*(){const _0x125cc4=_0x4e1b;localStorage[_0x125cc4(0x1a2)](_0x125cc4(0x122))||(localStorage[_0x125cc4(0x13a)]('session',crypto[_0x125cc4(0xf1)]()),yield n(this,v,T)[_0x125cc4(0x162)](this,_0x125cc4(0xff),[{'eventProperty':_0x125cc4(0xfd),'value':localStorage[_0x125cc4(0x1a2)](_0x125cc4(0x122))},{'eventProperty':_0x125cc4(0x121),'value':new Date(parseInt(localStorage[_0x125cc4(0x1a2)]('ttl')||'',0xa))[_0x125cc4(0xeb)]()}]));let _0x4a84c6={'deviceId':localStorage[_0x125cc4(0x1a2)](_0x125cc4(0xf6))||crypto[_0x125cc4(0xf1)](),'os':S(this,_)};if(_0x43a7fb)_0x4a84c6[_0x125cc4(0x12e)]=_0x43a7fb;else{if(!_0x43a7fb&&localStorage[_0x125cc4(0x1a2)](_0x125cc4(0x195)))return;}try{let _0x1d266e=yield n(this,pe,rt)[_0x125cc4(0x162)](this,_0x4a84c6);_0x1d266e!==void 0x0&&localStorage[_0x125cc4(0x13a)]('customer',_0x1d266e);}catch(_0x550094){throw new Error(_0x125cc4(0x112));}});},U=new WeakSet(),X=function(){const _0x253599=_0xb34065;localStorage[_0x253599(0x13a)]('ttl',''+new Date()[_0x253599(0x174)]());},pe=new WeakSet(),rt=function(_0x3c5e86){return c(this,null,function*(){const _0x3fad01=_0x4e1b;try{return(yield h[_0x3fad01(0xd5)](''+je+Ge,_0x3c5e86))[_0x3fad01(0x15b)];}catch(_0x33c509){throw new Error(_0x3fad01(0x13d));}});},G=new WeakSet(),xe=function(_0xafab93){const _0x47c5db=_0xb34065;let _0x1b8280=n(this,ue,ot)[_0x47c5db(0x162)](this);if(_0x1b8280!=null&&_0x1b8280[_0xafab93])switch(_0x1b8280[_0xafab93]['campaignEntryTime']){case'DELAY':{n(this,Ie,at)['call'](this,_0x1b8280[_0xafab93]);break;}case _0x47c5db(0xc6):{n(this,C,ee)['call'](this,_0x1b8280[_0xafab93]);break;}case'SCROLL':{n(this,de,it)[_0x47c5db(0x162)](this,_0x1b8280[_0xafab93]);break;}default:return;}},ue=new WeakSet(),ot=function(){const _0x3e8547=_0xb34065;let _0x1be76f=localStorage[_0x3e8547(0x1a2)]('action');return _0x1be76f?JSON[_0x3e8547(0x10f)](_0x1be76f):null;},de=new WeakSet(),it=function(_0x19fd9c){const _0x21bee6=_0xb34065;let _0x3e308d=()=>{const _0x5a1b6e=_0x4e1b;var _0x5c4f37;let _0x4bd3d9=window[_0x5a1b6e(0xd6)],_0x4e9486=document[_0x5a1b6e(0x18a)]['scrollHeight'];window[_0x5a1b6e(0xd8)]/(_0x4e9486-_0x4bd3d9)*0x64>(((_0x5c4f37=_0x19fd9c[_0x5a1b6e(0xcf)])==null?void 0x0:_0x5c4f37[_0x5a1b6e(0x144)])||0x0)&&(window[_0x5a1b6e(0x186)](_0x5a1b6e(0x19a),_0x3e308d),n(this,C,ee)[_0x5a1b6e(0x162)](this,_0x19fd9c));};window[_0x21bee6(0x14c)](_0x21bee6(0x19a),_0x3e308d);},Ie=new WeakSet(),at=function(_0x20fea7){const _0x1417f8=_0xb34065;var _0x1f7f4b;let _0x145325=_0x20fea7[_0x1417f8(0x13f)]-0x1f4+(((_0x1f7f4b=_0x20fea7['campaignEntryTimeValue'])==null?void 0x0:_0x1f7f4b['value'])||0x0)*0x3e8-new Date()['getTime']();_0x145325>0x0&&_0x20fea7['page']===window[_0x1417f8(0x14a)]['hostname']+window[_0x1417f8(0x14a)][_0x1417f8(0x105)]&&setTimeout(()=>{const _0x1c41d9=_0x1417f8;S(this,K)[_0x1c41d9(0x162)](this,_0x20fea7[_0x1c41d9(0x10d)]),n(this,C,ee)['call'](this,_0x20fea7);},_0x145325);},C=new WeakSet(),ee=function(_0x55f664){const _0x94a0c=_0xb34065;let _0x9884d9=n(this,Se,st)['call'](this,'div',_0x55f664);document['body']['appendChild'](_0x9884d9),n(this,v,T)['call'](this,A,[{'eventProperty':'Popup\x20View','value':JSON[_0x94a0c(0x175)]({'campaignId':_0x55f664[_0x94a0c(0x10d)]})}],_0x55f664[_0x94a0c(0x10d)],_0x55f664[_0x94a0c(0x103)],'view'),S(this,K)['call'](this,_0x55f664[_0x94a0c(0x10d)]);},Se=new WeakSet(),st=function(_0x57a138,_0x39372e){const _0x38045f=_0xb34065;var _0x5bc6af;let {campaignCustomerInstanceId:_0x512899,campaignId:_0x1872aa,message:{design:_0x43dd50}}=_0x39372e,_0x25c40f=document[_0x38045f(0x18f)](_0x57a138);_0x25c40f['id']=_0x38045f(0x13c)+_0x1872aa,_0x25c40f['innerHTML']=_0x43dd50,_0x25c40f[_0x38045f(0x140)][_0x38045f(0x169)]=_0x38045f(0x155),_0x25c40f[_0x38045f(0x140)][_0x38045f(0x156)]='0',_0x25c40f[_0x38045f(0x140)][_0x38045f(0x19c)]='0',_0x25c40f[_0x38045f(0x140)][_0x38045f(0x181)]=_0x38045f(0x133),_0x25c40f['style'][_0x38045f(0x109)]=_0x38045f(0x133),_0x25c40f[_0x38045f(0x140)][_0x38045f(0x16f)]=_0x38045f(0x126);let _0x1e426f=_0x25c40f['querySelector'](_0x38045f(0x18b));return _0x1e426f&&(_0x1e426f[_0x38045f(0x140)][_0x38045f(0x16f)]='50'),_0x25c40f[_0x38045f(0x160)](_0x38045f(0xdd))['forEach'](_0x2f0e21=>{const _0x228d53=_0x38045f;let _0x957050=_0x2f0e21[_0x228d53(0x18d)]('form');_0x957050&&_0x957050['addEventListener'](_0x228d53(0x127),()=>c(this,null,function*(){const _0x4843fa=_0x228d53;_0x25c40f[_0x4843fa(0x135)]();let _0x231654=new FormData(_0x957050),_0x10fcfc={};for(let [_0x32bf71,_0x388ad1]of _0x231654[_0x4843fa(0x130)]())_0x10fcfc[_0x32bf71]=_0x388ad1;yield n(this,v,T)['call'](this,A,[{'eventProperty':_0x4843fa(0x115),'value':JSON['stringify']({'campaignId':_0x1872aa,'formId':_0x2f0e21['id'],'formValues':_0x10fcfc})}],_0x1872aa,_0x512899,_0x4843fa(0xee));}));}),(_0x5bc6af=_0x25c40f[_0x38045f(0x18d)](_0x38045f(0x13b)))==null||_0x5bc6af[_0x38045f(0x14c)](_0x38045f(0x154),()=>c(this,null,function*(){const _0x39c966=_0x38045f;_0x25c40f[_0x39c966(0x135)](),yield n(this,v,T)[_0x39c966(0x162)](this,A,[{'eventProperty':'Close\x20Click','value':JSON['stringify']({'campaignId':_0x1872aa})}],_0x1872aa,_0x512899,_0x39c966(0x18e));})),_0x25c40f[_0x38045f(0x160)](_0x38045f(0x116))[_0x38045f(0xd3)](_0x17c8d9=>{const _0x3b8bf6=_0x38045f;_0x17c8d9[_0x3b8bf6(0x14c)](_0x3b8bf6(0x154),()=>c(this,null,function*(){const _0x5527c0=_0x3b8bf6;_0x25c40f['remove'](),yield n(this,v,T)[_0x5527c0(0x162)](this,A,[{'eventProperty':'Button\x20Click','value':JSON[_0x5527c0(0x175)]({'buttonId':_0x17c8d9['id'],'campaignId':_0x1872aa})}],_0x1872aa,_0x512899,_0x5527c0(0x154));}));}),_0x25c40f[_0x38045f(0x160)](_0x38045f(0x17b))[_0x38045f(0xd3)](_0x4110ac=>{const _0x262ce4=_0x38045f;_0x4110ac[_0x262ce4(0x14c)]('click',()=>c(this,null,function*(){const _0x45972a=_0x262ce4;yield n(this,v,T)[_0x45972a(0x162)](this,A,[{'eventProperty':_0x45972a(0x164),'value':JSON['stringify']({'campaignId':_0x1872aa,'imageClassName':_0x4110ac[_0x45972a(0x12f)],'imageId':_0x4110ac['id']})}],_0x1872aa,_0x512899,'click');}));}),_0x25c40f;},me=new WeakSet(),ct=function(){const _0x185e81=_0xb34065;let _0x5c4328=localStorage[_0x185e81(0x1a2)]('events');return _0x5c4328?JSON[_0x185e81(0x10f)](_0x5c4328):{};},ve=new WeakSet(),lt=function(_0x247032,_0x3ceabf,_0x481baa){const _0x227cb7=_0xb34065;if(!Object[_0x227cb7(0x197)]['hasOwnProperty'][_0x227cb7(0x162)](_0x247032,_0x3ceabf))return'Event\x20'+_0x3ceabf+'\x20is\x20not\x20valid.';if(!_0x481baa)return[];let _0x5ea14f=_0x247032[_0x3ceabf];if(!(_0x5ea14f!=null&&_0x5ea14f['eventProperty']))return _0x227cb7(0xe2)+_0x3ceabf+_0x227cb7(0x113);let _0x40b17a=_0x481baa[_0x227cb7(0xf7)](({eventProperty:_0xc1fda0})=>!Object[_0x227cb7(0x197)][_0x227cb7(0x17a)][_0x227cb7(0x162)](_0x5ea14f[_0x227cb7(0xf9)],_0xc1fda0))[_0x227cb7(0x129)](({eventProperty:_0x2d4b12})=>_0x2d4b12);return _0x40b17a[_0x227cb7(0x12b)]>0x0?'Event\x20'+_0x3ceabf+_0x227cb7(0xe9)+_0x40b17a[_0x227cb7(0xe8)](',\x20')+'.':_0x481baa['map'](({eventProperty:_0x5793b6,value:_0x55583c})=>({'eventPropertyId':_0x5ea14f[_0x227cb7(0xf9)][_0x5793b6]['id'],'value':_0x55583c}));},H=new WeakSet(),Fe=function(_0x2b6ddf,_0x149c53,_0x442adf){const _0x2b4b2d=_0xb34065;if(!Object[_0x2b4b2d(0x197)][_0x2b4b2d(0x17a)][_0x2b4b2d(0x162)](_0x2b6ddf,_0x149c53))return _0x2b4b2d(0x187)+_0x149c53+_0x2b4b2d(0x120);if(!_0x442adf)return[];let _0x211651=_0x2b6ddf[_0x149c53];if(!(_0x211651!=null&&_0x211651['attributeProperty']))return'Attribute\x20'+_0x149c53+'\x20does\x20not\x20have\x20a\x20valid\x20attributeProperty.';let _0x1ec550=_0x442adf[_0x2b4b2d(0xf7)](({attributeProperty:_0x138bc6})=>!Object[_0x2b4b2d(0x197)][_0x2b4b2d(0x17a)]['call'](_0x211651['attributeProperty'],_0x138bc6))[_0x2b4b2d(0x129)](({attributeProperty:_0x46fd34})=>_0x46fd34);return _0x1ec550[_0x2b4b2d(0x12b)]>0x0?_0x2b4b2d(0x187)+_0x149c53+_0x2b4b2d(0x166)+_0x1ec550[_0x2b4b2d(0xe8)](',\x20')+'.':_0x442adf[_0x2b4b2d(0x129)](({attributeProperty:_0x2a5ab8,value:_0x1ecb29})=>({'attributePropertyId':_0x211651['attributeProperty'][_0x2a5ab8]['id'],'value':_0x1ecb29}));},Te=new WeakSet(),gt=function(_0x292713){const _0x3af735=_0xb34065;return{'customerId':localStorage[_0x3af735(0x1a2)]('customer')||'','events':[_0x292713]};},Z=new WeakSet(),Ve=function(_0x4f8b95){return c(this,null,function*(){const _0x4866ce=_0x4e1b;try{return yield h[_0x4866ce(0xd5)](''+Ae+Ke,_0x4f8b95);}catch(_0x5b4634){throw new Error('Error\x20posting\x20event\x20record');}});},fe=new WeakSet(),Et=function(_0x303adf){const _0x534ac3=_0xb34065;return _0x303adf===_0x534ac3(0x189);},ye=new WeakSet(),pt=function(_0x5ce03b){const _0x4c26a0=_0xb34065;let _0x350603=JSON[_0x4c26a0(0x10f)](localStorage[_0x4c26a0(0x1a2)](_0x4c26a0(0x15d))||'{}');_0x350603[_0x5ce03b[_0x4c26a0(0x10d)]]=Re(V({},_0x5ce03b),{'initialTime':new Date()[_0x4c26a0(0x174)](),'page':window[_0x4c26a0(0x14a)]['hostname']+window['location']['pathname']}),localStorage[_0x4c26a0(0x13a)]('action',JSON[_0x4c26a0(0x175)](_0x350603));},q=new WeakSet(),Me=function(){const _0x358d43=_0xb34065;localStorage[_0x358d43(0x16c)](_0x358d43(0x15d)),localStorage[_0x358d43(0x16c)]('events'),localStorage[_0x358d43(0x16c)](_0x358d43(0x171)),localStorage['removeItem'](_0x358d43(0xda)),localStorage[_0x358d43(0x16c)](_0x358d43(0xe6)),localStorage[_0x358d43(0x16c)](_0x358d43(0x122));},he=new WeakSet(),ut=function(){return c(this,null,function*(){const _0x2be930=_0x4e1b;localStorage[_0x2be930(0x1a2)]('attributes')||(yield n(this,j,Ce)['call'](this));});},Oe=new WeakSet(),dt=function(_0x385f03){return c(this,null,function*(){const _0x51bf77=_0x4e1b;try{return yield h[_0x51bf77(0xd5)](''+Ne+We,_0x385f03);}catch(_0x61bb75){throw new Error('Error\x20posting\x20attribute\x20record');}});},s(w,P,void 0x0);var Pe=w,Be=Pe[_0xb34065(0x101)]();function _0x235d(){const _0x367044=['get','login','done','value','init','keys','Logging\x20out\x20Time','access\x20private\x20method','UTM_TERM','location','/set-identity','addEventListener','register','Event\x20Payload:\x0a\x20','getOwnPropertySymbols','json','Web','apply','Viewed\x20Webpage','click','fixed','top','Cannot\x20','setDebugLevel','Checking\x20TTL','attributeValue','data','mergn','action','2016sJPfCM','Logging\x20in\x20Time','querySelectorAll','/attribute','call','NONE','Image\x20Click','Internet\x20Explorer','\x20has\x20invalid\x20attributeProperties:\x20','has','7kbsckI','position','gad_source','POST','removeItem','312964FiyyDt','onLine','zIndex','isInitialized','attributes','log','26696208zkHTMg','getTime','stringify','values','defineProperty','offline','utm_term','hasOwnProperty','.u-popup-container\x20img','events','undefined','Mergn\x20SDK\x20Initialization\x20Time','\x0aUnexpected\x20error:\x20','add','width','error','recordEvent','utm_medium','message','removeEventListener','Attribute\x20','MergnError','Popup','documentElement','.u-popup-container','GAD_SOURCE','querySelector','close','createElement','serviceWorker','Mergn\x20is\x20loading!','Mergn\x20is\x20offline!','/event','Web\x20Session\x20Concluded','customer','load\x20event\x20fired','prototype','pushState','name','scroll','Debug\x20level\x20must\x20be\x20according\x20to:\x0a\x20NONE:\x200,\x20INFO:\x201,\x20ERROR:\x202,\x20ALL:\x203','left','set','record\x20event','44vPoygZ','isArray','timeEnd','getItem','IMMEDIATELY','GCLID','UTM_CAMPAIGN','os-version','Mobile','string','load','groupEnd','9NanLPp','campaignEntryTimeValue','utm_source','ERROR','defineProperties','forEach','OriginateFrom:\x20','post','innerHeight','/sw.js','scrollY','#\x20recordAttribute','offlineEvents','INFO:\x20','eventProperties','[id^=\x22u_content_form_\x22]','INFO','Initializing\x20Mergn\x20SDK','Google\x20Chrome','Mozilla\x20Firefox','Event\x20','Error\x20fetching\x20attribute\x20data','2626512tRJgJG','indexOf','ttl','recordAttribute','join','\x20has\x20invalid\x20eventProperties:\x20','preInitializedAttributes','toISOString','Recording\x20attribute','Checking\x20TTL\x20Time','form','userAgent','apiKey','randomUUID','ALL','Recording\x20event','utm_campaign','Recording\x20attribute\x20Time','uniqueIdentity','filter','34580XvieVK','eventProperty','#\x20record\x20event','Tracking\x20page\x20change\x20Time','UTM_CONTENT','SESSION_ID','#\x20Recording\x20event','Web\x20Session\x20Started','preInitializedEvents','getInstance','Mergn\x20SDK\x20is\x20disabled!','campaignCustomerInstanceId','19180cOvlUA','pathname','read\x20from\x20private\x20field','Logging\x20in','debugLevel','height','Logging\x20out','utm_content','disableSDK','campaignId','Attribute\x20Payload:\x0a\x20','parse','href','Microsoft\x20Edge','Error\x20setting\x20identity','\x20does\x20not\x20have\x20a\x20valid\x20eventProperty.','loading','Form\x20Submit','[id^=\x22u_content_button_\x22]','UTM_SOURCE','Mergn\x20not\x20initialized!','next','Unknown','/set-attribute','application/json','test','push','Tracking\x20page\x20change','\x20is\x20not\x20valid.','SESSION_CREATED','session','resolve','Popup\x20Action','propertyIsEnumerable','99999999','submit','search','map','splice','length','90140WuyBXq','updateAPIKey','identity','className','entries','operating-system','Safari','100%','1871946OMFcAB','remove','online','hostname','ERROR:\x20','/record-event','setItem','.u-close-button','popup_container_','Error\x20posting\x20identity\x20data','Recording\x20event\x20Time','initialTime','style'];_0x235d=function(){return _0x367044;};return _0x235d();}typeof window!=_0xb34065(0x17d)&&(window[_0xb34065(0x15c)]=Be);var un=Be;export{un as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mergn-webapp-sdk",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
4
  "description": "",
5
5
  "author": "yaseenmergn123",
6
6
  "main": "./dist/index.js",