@ordersune/crm-web-sdk 1.0.18 → 1.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/ordersune-crm-web-sdk-1.0.19.tgz +0 -0
- package/dist/ordersune-crm-web-sdk-1.0.20.tgz +0 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/types/index.d.ts +84 -0
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/src/web-sdk.d.ts +50 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a0_0x13db(_0x44b1bb,_0x399a02){const _0x43398d=a0_0x4339();return a0_0x13db=function(_0x13dba5,_0x43146d){_0x13dba5=_0x13dba5-0x126;let _0x188aca=_0x43398d[_0x13dba5];return _0x188aca;},a0_0x13db(_0x44b1bb,_0x399a02);}function a0_0x4339(){const _0x5250b9=['status','div','endpoint','alignItems','Identifying\x20user','100%','2px\x20solid\x20','random','logClick','fixed','nsecs','getGuestUserId','storeCustomAttributes','keys','__esModule','object','amd','left','modal','fontWeight','redirect_to_web_url','URL','campaignId','storeDeviceId','log','node','none','webOnClickValue','Sending\x20batch\x20to\x20server','Invalid\x20UUID','getStoredUserProfile','stringify','addEventListener','defineProperty','dismissed','Custom\x20attribute\x20queued','currentUser','now','appendChild','fill','Error\x20during\x20disposal','Batch\x20processing\x20failed','displayInAppMessage','Event\x20name\x20is\x20required\x20and\x20must\x20be\x20a\x20string','img','Event\x20queued','8px','debug','buildCampaignPayload','resolvedOptions','rng','412YjNOfk','getUserProfile','web','textContent','removeItem','MAX','fontSize','center','updateV1State','getRandomValues','target','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','string','position','unsafeStringify','mediaConfig','storeUserProfile','deviceDetails','catch','undefined','button1','400px','hexToColor','User\x20ID\x20must\x20be\x20a\x20string','dispose','POST','showInAppMessage','500','body','setItem','39288QYsIlH','charCodeAt','trackCustomAttribute','onclick','sdkVersion','Stringified\x20UUID\x20is\x20invalid','getStoredDeviceId','6ba7b811-9dad-11d1-80b4-00c04fd430c8','_blank','batchProcessingInterval','parse','attributeQueue','pointer','/analytics/data','randomUUID','guest_user_','5uPrOes','cursor','relative','maxWidth','Loaded\x20user\x20profile','WebSDK','application/json','.custom_attributes','color','0\x204px\x206px\x20rgba(0,\x200,\x200,\x200.1)','validate','webOnClickAction','API\x20key\x20and\x20endpoint\x20are\x20required','createElement','startBatchProcessing','pow','function','SDK\x20not\x20fully\x20initialized,\x20waiting\x20for\x20initialization','marginTop','contains','push','setToken','userAttributes','.current_user','purchaseBatch','trim','16px','User\x20data\x20cleared,\x20new\x20device\x20ID\x20generated','100px','removeChild','processCampaignClick','padding','white','00000000-0000-0000-0000-000000000000','UUID\x20byte\x20range\x20','margin','22px','batchInterval','borderColor','boxShadow','Random\x20bytes\x20length\x20must\x20be\x20>=\x2016','innerHTML','events','clockseq','set','messageColor','justifyContent','×','os.','toUpperCase','slice','9173454sgpZaK','test','996127QvgxKA','seq','6ba7b810-9dad-11d1-80b4-00c04fd430c8','dismissMessageAutomatically','zIndex','button','border','buildPurchasePayload','logInAppMessageClick','substring','12px','requestId','src','backgroundColor','queueEvent','140px','display','deeplink_into_app','button2','8px\x200','default','initialize','isProcessingQueue','length','Initialization\x20failed','NIL','inAppImage','textColor','updateV7State','_v6','getItem','guestUserId','background','type','apiKey','9qGyoXv','stringToBytes','headerColor','OrdersuneCRMWebSDK','90%','message','logProductPurchase','process\x20campaign\x20click\x20dispatched\x20successfully:\x20','unshift','Failed\x20to\x20detect\x20timezone','\x20events,\x20','processBatch','forceSend','style','replace','2425292zSwTkY','115144BAACuh','Purchase\x20event\x20queued','Batch\x20dispatched\x20successfully:\x20','.device_id','590729OpwuWi','8px\x200\x2024px\x200','gap','sendBatchToServer','timezone','Error\x20processing\x20campaign\x20click:','eventQueue','initializeDeviceDetails','v1ToV6','DateTimeFormat','msecs','version','rgba(0,\x200,\x200,\x200.5)','width','top','deviceId','600','openWebUrl','loadCustomAttributes','exports','toString','dismissMessageInSeconds','column','borderRadius','ffffffff-ffff-ffff-ffff-ffffffffffff','identify','4488575vhIOkr','Attribute\x20name\x20is\x20required\x20and\x20must\x20be\x20a\x20string','height','header','textAlign','500biqeYa','bind','flex','[OrderSune\x20CRM]','right','DNS'];a0_0x4339=function(){return _0x5250b9;};return a0_0x4339();}(function(_0x231d1f,_0x14ae73){const _0x485cb8=a0_0x13db,_0x27b772=_0x231d1f();while(!![]){try{const _0x242d4=parseInt(_0x485cb8(0x153))/0x1+parseInt(_0x485cb8(0x14e))/0x2+-parseInt(_0x485cb8(0x1c9))/0x3*(-parseInt(_0x485cb8(0x1ab))/0x4)+parseInt(_0x485cb8(0x1d9))/0x5*(parseInt(_0x485cb8(0x20c))/0x6)+parseInt(_0x485cb8(0x16d))/0x7+parseInt(_0x485cb8(0x14f))/0x8*(parseInt(_0x485cb8(0x13f))/0x9)+-parseInt(_0x485cb8(0x172))/0xa*(parseInt(_0x485cb8(0x20e))/0xb);if(_0x242d4===_0x14ae73)break;else _0x27b772['push'](_0x27b772['shift']());}catch(_0x354539){_0x27b772['push'](_0x27b772['shift']());}}}(a0_0x4339,0xc57ec),!function webpackUniversalModuleDefinition(_0x3de636,_0x51df5b){const _0x184542=a0_0x13db;_0x184542(0x187)==typeof exports&&_0x184542(0x187)==typeof module?module['exports']=_0x51df5b():_0x184542(0x1e9)==typeof define&&define[_0x184542(0x188)]?define('OrdersuneCRMWebSDK',[],_0x51df5b):_0x184542(0x187)==typeof exports?exports['OrdersuneCRMWebSDK']=_0x51df5b():_0x3de636[_0x184542(0x142)]=_0x51df5b();}(this,()=>((()=>{'use strict';var _0x52856d={0xb:(_0x29c65f,_0x1cbf40,_0x5e5e9d)=>{const _0x508cb7=a0_0x13db;Object[_0x508cb7(0x199)](_0x1cbf40,_0x508cb7(0x186),{'value':!0x0}),_0x1cbf40[_0x508cb7(0x1b9)]=void 0x0;const _0x3ddd80=_0x5e5e9d(0x2ea),_0x417d88=[];for(let _0x22443f=0x0;_0x22443f<0x100;++_0x22443f)_0x417d88[_0x508cb7(0x1ed)]((_0x22443f+0x100)[_0x508cb7(0x167)](0x10)[_0x508cb7(0x20b)](0x1));function _0x387585(_0x44b524,_0x5f29e9=0x0){return(_0x417d88[_0x44b524[_0x5f29e9+0x0]]+_0x417d88[_0x44b524[_0x5f29e9+0x1]]+_0x417d88[_0x44b524[_0x5f29e9+0x2]]+_0x417d88[_0x44b524[_0x5f29e9+0x3]]+'-'+_0x417d88[_0x44b524[_0x5f29e9+0x4]]+_0x417d88[_0x44b524[_0x5f29e9+0x5]]+'-'+_0x417d88[_0x44b524[_0x5f29e9+0x6]]+_0x417d88[_0x44b524[_0x5f29e9+0x7]]+'-'+_0x417d88[_0x44b524[_0x5f29e9+0x8]]+_0x417d88[_0x44b524[_0x5f29e9+0x9]]+'-'+_0x417d88[_0x44b524[_0x5f29e9+0xa]]+_0x417d88[_0x44b524[_0x5f29e9+0xb]]+_0x417d88[_0x44b524[_0x5f29e9+0xc]]+_0x417d88[_0x44b524[_0x5f29e9+0xd]]+_0x417d88[_0x44b524[_0x5f29e9+0xe]]+_0x417d88[_0x44b524[_0x5f29e9+0xf]])['toLowerCase']();}_0x1cbf40[_0x508cb7(0x1b9)]=_0x387585,_0x1cbf40[_0x508cb7(0x130)]=function _0x55a6d6(_0x4531cd,_0x146596=0x0){const _0x715bc=_0x508cb7,_0x385596=_0x387585(_0x4531cd,_0x146596);if(!(0x0,_0x3ddd80[_0x715bc(0x130)])(_0x385596))throw TypeError(_0x715bc(0x1ce));return _0x385596;};},0xb6:(_0xdad120,_0x13ccc3,_0x3450d4)=>{const _0x5648d5=a0_0x13db;Object[_0x5648d5(0x199)](_0x13ccc3,_0x5648d5(0x186),{'value':!0x0}),_0x13ccc3[_0x5648d5(0x15e)]=_0x13ccc3[_0x5648d5(0x1e3)]=_0x13ccc3['v7']=_0x13ccc3['v6ToV1']=_0x13ccc3['v6']=_0x13ccc3['v5']=_0x13ccc3['v4']=_0x13ccc3['v3']=_0x13ccc3[_0x5648d5(0x15b)]=_0x13ccc3['v1']=_0x13ccc3[_0x5648d5(0x197)]=_0x13ccc3[_0x5648d5(0x1d3)]=_0x13ccc3[_0x5648d5(0x135)]=_0x13ccc3['MAX']=void 0x0;var _0x5cb7c1=_0x3450d4(0xc4);Object[_0x5648d5(0x199)](_0x13ccc3,_0x5648d5(0x1b0),{'enumerable':!0x0,'get':function(){const _0x532ef8=_0x5648d5;return _0x5cb7c1[_0x532ef8(0x130)];}});var _0x236267=_0x3450d4(0x1d1);Object[_0x5648d5(0x199)](_0x13ccc3,_0x5648d5(0x135),{'enumerable':!0x0,'get':function(){const _0x15cd43=_0x5648d5;return _0x236267[_0x15cd43(0x130)];}});var _0xee9024=_0x3450d4(0x31d);Object['defineProperty'](_0x13ccc3,'parse',{'enumerable':!0x0,'get':function(){return _0xee9024['default'];}});var _0x201f7b=_0x3450d4(0xb);Object[_0x5648d5(0x199)](_0x13ccc3,_0x5648d5(0x197),{'enumerable':!0x0,'get':function(){const _0x5bdc9d=_0x5648d5;return _0x201f7b[_0x5bdc9d(0x130)];}});var _0x39ef37=_0x3450d4(0x1a9);Object['defineProperty'](_0x13ccc3,'v1',{'enumerable':!0x0,'get':function(){const _0x2de71a=_0x5648d5;return _0x39ef37[_0x2de71a(0x130)];}});var _0xf0ca69=_0x3450d4(0x238);Object['defineProperty'](_0x13ccc3,_0x5648d5(0x15b),{'enumerable':!0x0,'get':function(){const _0x4ec16f=_0x5648d5;return _0xf0ca69[_0x4ec16f(0x130)];}});var _0x5dac00=_0x3450d4(0x24f);Object['defineProperty'](_0x13ccc3,'v3',{'enumerable':!0x0,'get':function(){return _0x5dac00['default'];}});var _0x23d620=_0x3450d4(0x11e);Object[_0x5648d5(0x199)](_0x13ccc3,'v4',{'enumerable':!0x0,'get':function(){const _0x245cb6=_0x5648d5;return _0x23d620[_0x245cb6(0x130)];}});var _0x503bb1=_0x3450d4(0x22d);Object[_0x5648d5(0x199)](_0x13ccc3,'v5',{'enumerable':!0x0,'get':function(){return _0x503bb1['default'];}});var _0x428d59=_0x3450d4(0x164);Object[_0x5648d5(0x199)](_0x13ccc3,'v6',{'enumerable':!0x0,'get':function(){const _0x2a7436=_0x5648d5;return _0x428d59[_0x2a7436(0x130)];}});var _0x152d41=_0x3450d4(0x10c);Object[_0x5648d5(0x199)](_0x13ccc3,'v6ToV1',{'enumerable':!0x0,'get':function(){const _0x37da69=_0x5648d5;return _0x152d41[_0x37da69(0x130)];}});var _0x30a026=_0x3450d4(0x12b);Object[_0x5648d5(0x199)](_0x13ccc3,'v7',{'enumerable':!0x0,'get':function(){const _0x54ff00=_0x5648d5;return _0x30a026[_0x54ff00(0x130)];}});var _0x2f39fe=_0x3450d4(0x2ea);Object[_0x5648d5(0x199)](_0x13ccc3,_0x5648d5(0x1e3),{'enumerable':!0x0,'get':function(){const _0x3e9cf4=_0x5648d5;return _0x2f39fe[_0x3e9cf4(0x130)];}});var _0x1e70f6=_0x3450d4(0x302);Object[_0x5648d5(0x199)](_0x13ccc3,_0x5648d5(0x15e),{'enumerable':!0x0,'get':function(){const _0xaecb13=_0x5648d5;return _0x1e70f6[_0xaecb13(0x130)];}});},0xc4:(_0x369940,_0x2f24c8)=>{const _0x224dcc=a0_0x13db;Object['defineProperty'](_0x2f24c8,_0x224dcc(0x186),{'value':!0x0}),_0x2f24c8['default']=_0x224dcc(0x16b);},0x10a:(_0x5848a5,_0x34a818)=>{const _0xc10f65=a0_0x13db;Object['defineProperty'](_0x34a818,'__esModule',{'value':!0x0}),_0x34a818[_0xc10f65(0x190)]=void 0x0,_0x34a818['log']=(_0x37b074,_0x7cb78d,..._0x5b64fb)=>{const _0x1f4144=_0xc10f65;_0x37b074&&console['log'](_0x1f4144(0x175),_0x7cb78d,..._0x5b64fb);};},0x10c:(_0x266889,_0x12815f,_0x2838a6)=>{const _0x4d5ed5=a0_0x13db;Object[_0x4d5ed5(0x199)](_0x12815f,_0x4d5ed5(0x186),{'value':!0x0});const _0x119b92=_0x2838a6(0x31d),_0x55405b=_0x2838a6(0xb);_0x12815f[_0x4d5ed5(0x130)]=function _0x4a26f1(_0x5b6469){const _0x4afe65=_0x4d5ed5,_0x3b7a10=function _0x301c38(_0x1056a5){return Uint8Array['of']((0xf&_0x1056a5[0x3])<<0x4|_0x1056a5[0x4]>>0x4&0xf,(0xf&_0x1056a5[0x4])<<0x4|(0xf0&_0x1056a5[0x5])>>0x4,(0xf&_0x1056a5[0x5])<<0x4|0xf&_0x1056a5[0x6],_0x1056a5[0x7],(0xf&_0x1056a5[0x1])<<0x4|(0xf0&_0x1056a5[0x2])>>0x4,(0xf&_0x1056a5[0x2])<<0x4|(0xf0&_0x1056a5[0x3])>>0x4,0x10|(0xf0&_0x1056a5[0x0])>>0x4,(0xf&_0x1056a5[0x0])<<0x4|(0xf0&_0x1056a5[0x1])>>0x4,_0x1056a5[0x8],_0x1056a5[0x9],_0x1056a5[0xa],_0x1056a5[0xb],_0x1056a5[0xc],_0x1056a5[0xd],_0x1056a5[0xe],_0x1056a5[0xf]);}('string'==typeof _0x5b6469?(0x0,_0x119b92[_0x4afe65(0x130)])(_0x5b6469):_0x5b6469);return _0x4afe65(0x1b7)==typeof _0x5b6469?(0x0,_0x55405b[_0x4afe65(0x1b9)])(_0x3b7a10):_0x3b7a10;};},0x11e:(_0x29c8f5,_0x1dff51,_0xb1c459)=>{const _0xd4c599=a0_0x13db;Object['defineProperty'](_0x1dff51,_0xd4c599(0x186),{'value':!0x0});const _0x58b318=_0xb1c459(0x30b),_0x5e76ef=_0xb1c459(0x123),_0x3f0636=_0xb1c459(0xb);_0x1dff51[_0xd4c599(0x130)]=function _0x53a24c(_0x193a53,_0x8dda83,_0x551572){const _0x400cc7=_0xd4c599;if(_0x58b318['default'][_0x400cc7(0x1d7)]&&!_0x8dda83&&!_0x193a53)return _0x58b318[_0x400cc7(0x130)]['randomUUID']();const _0x448b8f=(_0x193a53=_0x193a53||{})[_0x400cc7(0x17f)]??_0x193a53[_0x400cc7(0x1aa)]?.()??(0x0,_0x5e76ef[_0x400cc7(0x130)])();if(_0x448b8f[_0x400cc7(0x133)]<0x10)throw new Error(_0x400cc7(0x201));if(_0x448b8f[0x6]=0xf&_0x448b8f[0x6]|0x40,_0x448b8f[0x8]=0x3f&_0x448b8f[0x8]|0x80,_0x8dda83){if((_0x551572=_0x551572||0x0)<0x0||_0x551572+0x10>_0x8dda83[_0x400cc7(0x133)])throw new RangeError(_0x400cc7(0x1fb)+_0x551572+':'+(_0x551572+0xf)+'\x20is\x20out\x20of\x20buffer\x20bounds');for(let _0x3288d5=0x0;_0x3288d5<0x10;++_0x3288d5)_0x8dda83[_0x551572+_0x3288d5]=_0x448b8f[_0x3288d5];return _0x8dda83;}return(0x0,_0x3f0636[_0x400cc7(0x1b9)])(_0x448b8f);};},0x123:(_0x5c58d0,_0x4d35f4)=>{const _0x1cc780=a0_0x13db;let _0x16fb3d;Object['defineProperty'](_0x4d35f4,_0x1cc780(0x186),{'value':!0x0});const _0x46f149=new Uint8Array(0x10);_0x4d35f4[_0x1cc780(0x130)]=function _0x48893b(){const _0x5e77e0=_0x1cc780;if(!_0x16fb3d){if(_0x5e77e0(0x1be)==typeof crypto||!crypto[_0x5e77e0(0x1b4)])throw new Error(_0x5e77e0(0x1b6));_0x16fb3d=crypto['getRandomValues'][_0x5e77e0(0x173)](crypto);}return _0x16fb3d(_0x46f149);};},0x12b:(_0x4d88ca,_0xf37e69,_0xcec477)=>{const _0x6a624e=a0_0x13db;Object[_0x6a624e(0x199)](_0xf37e69,_0x6a624e(0x186),{'value':!0x0}),_0xf37e69['updateV7State']=void 0x0;const _0x4fe10e=_0xcec477(0x123),_0x2d3859=_0xcec477(0xb),_0x3caa30={};function _0x138e8a(_0x453a77,_0x107812,_0x40d4d7){const _0x2ea531=_0x6a624e;return _0x453a77[_0x2ea531(0x15d)]??=-0x1/0x0,_0x453a77[_0x2ea531(0x20f)]??=0x0,_0x107812>_0x453a77['msecs']?(_0x453a77['seq']=_0x40d4d7[0x6]<<0x17|_0x40d4d7[0x7]<<0x10|_0x40d4d7[0x8]<<0x8|_0x40d4d7[0x9],_0x453a77[_0x2ea531(0x15d)]=_0x107812):(_0x453a77[_0x2ea531(0x20f)]=_0x453a77['seq']+0x1|0x0,0x0===_0x453a77[_0x2ea531(0x20f)]&&_0x453a77[_0x2ea531(0x15d)]++),_0x453a77;}function _0x3beb18(_0x42c369,_0x5045ef,_0x44f5da,_0x5ab78f,_0x15eb9c=0x0){const _0x42947f=_0x6a624e;if(_0x42c369['length']<0x10)throw new Error(_0x42947f(0x201));if(_0x5ab78f){if(_0x15eb9c<0x0||_0x15eb9c+0x10>_0x5ab78f[_0x42947f(0x133)])throw new RangeError(_0x42947f(0x1fb)+_0x15eb9c+':'+(_0x15eb9c+0xf)+'\x20is\x20out\x20of\x20buffer\x20bounds');}else _0x5ab78f=new Uint8Array(0x10),_0x15eb9c=0x0;return _0x5045ef??=Date[_0x42947f(0x19d)](),_0x44f5da??=0x7f*_0x42c369[0x6]<<0x18|_0x42c369[0x7]<<0x10|_0x42c369[0x8]<<0x8|_0x42c369[0x9],_0x5ab78f[_0x15eb9c++]=_0x5045ef/0x10000000000&0xff,_0x5ab78f[_0x15eb9c++]=_0x5045ef/0x100000000&0xff,_0x5ab78f[_0x15eb9c++]=_0x5045ef/0x1000000&0xff,_0x5ab78f[_0x15eb9c++]=_0x5045ef/0x10000&0xff,_0x5ab78f[_0x15eb9c++]=_0x5045ef/0x100&0xff,_0x5ab78f[_0x15eb9c++]=0xff&_0x5045ef,_0x5ab78f[_0x15eb9c++]=0x70|_0x44f5da>>>0x1c&0xf,_0x5ab78f[_0x15eb9c++]=_0x44f5da>>>0x14&0xff,_0x5ab78f[_0x15eb9c++]=0x80|_0x44f5da>>>0xe&0x3f,_0x5ab78f[_0x15eb9c++]=_0x44f5da>>>0x6&0xff,_0x5ab78f[_0x15eb9c++]=_0x44f5da<<0x2&0xff|0x3&_0x42c369[0xa],_0x5ab78f[_0x15eb9c++]=_0x42c369[0xb],_0x5ab78f[_0x15eb9c++]=_0x42c369[0xc],_0x5ab78f[_0x15eb9c++]=_0x42c369[0xd],_0x5ab78f[_0x15eb9c++]=_0x42c369[0xe],_0x5ab78f[_0x15eb9c++]=_0x42c369[0xf],_0x5ab78f;}_0xf37e69[_0x6a624e(0x138)]=_0x138e8a,_0xf37e69['default']=function _0x268520(_0x18868f,_0x54faf3,_0x35661a){const _0x1d51a5=_0x6a624e;let _0x584828;if(_0x18868f)_0x584828=_0x3beb18(_0x18868f[_0x1d51a5(0x17f)]??_0x18868f[_0x1d51a5(0x1aa)]?.()??(0x0,_0x4fe10e[_0x1d51a5(0x130)])(),_0x18868f['msecs'],_0x18868f[_0x1d51a5(0x20f)],_0x54faf3,_0x35661a);else{const _0x33995b=Date[_0x1d51a5(0x19d)](),_0x57821d=(0x0,_0x4fe10e[_0x1d51a5(0x130)])();_0x138e8a(_0x3caa30,_0x33995b,_0x57821d),_0x584828=_0x3beb18(_0x57821d,_0x3caa30[_0x1d51a5(0x15d)],_0x3caa30['seq'],_0x54faf3,_0x35661a);}return _0x54faf3??(0x0,_0x2d3859[_0x1d51a5(0x1b9)])(_0x584828);};},0x152:(_0x235efd,_0x29d376)=>{const _0x33e9f7=a0_0x13db;function _0xc71c60(_0x3b9b4e){return 0xe+(_0x3b9b4e+0x40>>>0x9<<0x4)+0x1;}function _0x3e2ed8(_0x14d2d7,_0x2cc6fa){const _0x230afd=(0xffff&_0x14d2d7)+(0xffff&_0x2cc6fa);return(_0x14d2d7>>0x10)+(_0x2cc6fa>>0x10)+(_0x230afd>>0x10)<<0x10|0xffff&_0x230afd;}function _0x11e0c6(_0x56113a,_0x58090d,_0x133c06,_0x3687ae,_0x4a002f,_0x59713a){return _0x3e2ed8(function _0x16c650(_0x262271,_0x42e7e3){return _0x262271<<_0x42e7e3|_0x262271>>>0x20-_0x42e7e3;}(_0x3e2ed8(_0x3e2ed8(_0x58090d,_0x56113a),_0x3e2ed8(_0x3687ae,_0x59713a)),_0x4a002f),_0x133c06);}function _0x25b690(_0x1ad87c,_0x12a2e1,_0x28d973,_0x2820e5,_0x29044f,_0x2c2c9f,_0x416b7e){return _0x11e0c6(_0x12a2e1&_0x28d973|~_0x12a2e1&_0x2820e5,_0x1ad87c,_0x12a2e1,_0x29044f,_0x2c2c9f,_0x416b7e);}function _0x2a3415(_0x2160e8,_0x17e667,_0x562f9c,_0x256644,_0x565dea,_0x996659,_0x29638e){return _0x11e0c6(_0x17e667&_0x256644|_0x562f9c&~_0x256644,_0x2160e8,_0x17e667,_0x565dea,_0x996659,_0x29638e);}function _0x10fc97(_0xe939ff,_0x3bad6,_0xc94dab,_0x5599e3,_0x24cd9f,_0x53ea07,_0x536f90){return _0x11e0c6(_0x3bad6^_0xc94dab^_0x5599e3,_0xe939ff,_0x3bad6,_0x24cd9f,_0x53ea07,_0x536f90);}function _0x57fd41(_0x24c2a1,_0x268eb5,_0x3aa451,_0x18200b,_0x317881,_0x62d3c2,_0x276808){return _0x11e0c6(_0x3aa451^(_0x268eb5|~_0x18200b),_0x24c2a1,_0x268eb5,_0x317881,_0x62d3c2,_0x276808);}Object[_0x33e9f7(0x199)](_0x29d376,_0x33e9f7(0x186),{'value':!0x0}),_0x29d376[_0x33e9f7(0x130)]=function _0x31bcca(_0x1cdb70){const _0x5b5b2c=_0x33e9f7;return function _0x46e16f(_0xf34378){const _0x185591=a0_0x13db,_0x22c862=new Uint8Array(0x4*_0xf34378[_0x185591(0x133)]);for(let _0x3821bd=0x0;_0x3821bd<0x4*_0xf34378[_0x185591(0x133)];_0x3821bd++)_0x22c862[_0x3821bd]=_0xf34378[_0x3821bd>>0x2]>>>_0x3821bd%0x4*0x8&0xff;return _0x22c862;}(function _0x491f80(_0x37ad43,_0x514605){const _0x532f30=a0_0x13db,_0x399afd=new Uint32Array(_0xc71c60(_0x514605))['fill'](0x0);_0x399afd[_0x532f30(0x205)](_0x37ad43),_0x399afd[_0x514605>>0x5]|=0x80<<_0x514605%0x20,_0x399afd[_0x399afd[_0x532f30(0x133)]-0x1]=_0x514605,_0x37ad43=_0x399afd;let _0x1790cf=0x67452301,_0x3c21e1=-0x10325477,_0x3076fe=-0x67452302,_0x13a971=0x10325476;for(let _0x40e66f=0x0;_0x40e66f<_0x37ad43['length'];_0x40e66f+=0x10){const _0x3ddf9a=_0x1790cf,_0x3c2afe=_0x3c21e1,_0x3b7d3d=_0x3076fe,_0x1a7ae2=_0x13a971;_0x1790cf=_0x25b690(_0x1790cf,_0x3c21e1,_0x3076fe,_0x13a971,_0x37ad43[_0x40e66f],0x7,-0x28955b88),_0x13a971=_0x25b690(_0x13a971,_0x1790cf,_0x3c21e1,_0x3076fe,_0x37ad43[_0x40e66f+0x1],0xc,-0x173848aa),_0x3076fe=_0x25b690(_0x3076fe,_0x13a971,_0x1790cf,_0x3c21e1,_0x37ad43[_0x40e66f+0x2],0x11,0x242070db),_0x3c21e1=_0x25b690(_0x3c21e1,_0x3076fe,_0x13a971,_0x1790cf,_0x37ad43[_0x40e66f+0x3],0x16,-0x3e423112),_0x1790cf=_0x25b690(_0x1790cf,_0x3c21e1,_0x3076fe,_0x13a971,_0x37ad43[_0x40e66f+0x4],0x7,-0xa83f051),_0x13a971=_0x25b690(_0x13a971,_0x1790cf,_0x3c21e1,_0x3076fe,_0x37ad43[_0x40e66f+0x5],0xc,0x4787c62a),_0x3076fe=_0x25b690(_0x3076fe,_0x13a971,_0x1790cf,_0x3c21e1,_0x37ad43[_0x40e66f+0x6],0x11,-0x57cfb9ed),_0x3c21e1=_0x25b690(_0x3c21e1,_0x3076fe,_0x13a971,_0x1790cf,_0x37ad43[_0x40e66f+0x7],0x16,-0x2b96aff),_0x1790cf=_0x25b690(_0x1790cf,_0x3c21e1,_0x3076fe,_0x13a971,_0x37ad43[_0x40e66f+0x8],0x7,0x698098d8),_0x13a971=_0x25b690(_0x13a971,_0x1790cf,_0x3c21e1,_0x3076fe,_0x37ad43[_0x40e66f+0x9],0xc,-0x74bb0851),_0x3076fe=_0x25b690(_0x3076fe,_0x13a971,_0x1790cf,_0x3c21e1,_0x37ad43[_0x40e66f+0xa],0x11,-0xa44f),_0x3c21e1=_0x25b690(_0x3c21e1,_0x3076fe,_0x13a971,_0x1790cf,_0x37ad43[_0x40e66f+0xb],0x16,-0x76a32842),_0x1790cf=_0x25b690(_0x1790cf,_0x3c21e1,_0x3076fe,_0x13a971,_0x37ad43[_0x40e66f+0xc],0x7,0x6b901122),_0x13a971=_0x25b690(_0x13a971,_0x1790cf,_0x3c21e1,_0x3076fe,_0x37ad43[_0x40e66f+0xd],0xc,-0x2678e6d),_0x3076fe=_0x25b690(_0x3076fe,_0x13a971,_0x1790cf,_0x3c21e1,_0x37ad43[_0x40e66f+0xe],0x11,-0x5986bc72),_0x3c21e1=_0x25b690(_0x3c21e1,_0x3076fe,_0x13a971,_0x1790cf,_0x37ad43[_0x40e66f+0xf],0x16,0x49b40821),_0x1790cf=_0x2a3415(_0x1790cf,_0x3c21e1,_0x3076fe,_0x13a971,_0x37ad43[_0x40e66f+0x1],0x5,-0x9e1da9e),_0x13a971=_0x2a3415(_0x13a971,_0x1790cf,_0x3c21e1,_0x3076fe,_0x37ad43[_0x40e66f+0x6],0x9,-0x3fbf4cc0),_0x3076fe=_0x2a3415(_0x3076fe,_0x13a971,_0x1790cf,_0x3c21e1,_0x37ad43[_0x40e66f+0xb],0xe,0x265e5a51),_0x3c21e1=_0x2a3415(_0x3c21e1,_0x3076fe,_0x13a971,_0x1790cf,_0x37ad43[_0x40e66f],0x14,-0x16493856),_0x1790cf=_0x2a3415(_0x1790cf,_0x3c21e1,_0x3076fe,_0x13a971,_0x37ad43[_0x40e66f+0x5],0x5,-0x29d0efa3),_0x13a971=_0x2a3415(_0x13a971,_0x1790cf,_0x3c21e1,_0x3076fe,_0x37ad43[_0x40e66f+0xa],0x9,0x2441453),_0x3076fe=_0x2a3415(_0x3076fe,_0x13a971,_0x1790cf,_0x3c21e1,_0x37ad43[_0x40e66f+0xf],0xe,-0x275e197f),_0x3c21e1=_0x2a3415(_0x3c21e1,_0x3076fe,_0x13a971,_0x1790cf,_0x37ad43[_0x40e66f+0x4],0x14,-0x182c0438),_0x1790cf=_0x2a3415(_0x1790cf,_0x3c21e1,_0x3076fe,_0x13a971,_0x37ad43[_0x40e66f+0x9],0x5,0x21e1cde6),_0x13a971=_0x2a3415(_0x13a971,_0x1790cf,_0x3c21e1,_0x3076fe,_0x37ad43[_0x40e66f+0xe],0x9,-0x3cc8f82a),_0x3076fe=_0x2a3415(_0x3076fe,_0x13a971,_0x1790cf,_0x3c21e1,_0x37ad43[_0x40e66f+0x3],0xe,-0xb2af279),_0x3c21e1=_0x2a3415(_0x3c21e1,_0x3076fe,_0x13a971,_0x1790cf,_0x37ad43[_0x40e66f+0x8],0x14,0x455a14ed),_0x1790cf=_0x2a3415(_0x1790cf,_0x3c21e1,_0x3076fe,_0x13a971,_0x37ad43[_0x40e66f+0xd],0x5,-0x561c16fb),_0x13a971=_0x2a3415(_0x13a971,_0x1790cf,_0x3c21e1,_0x3076fe,_0x37ad43[_0x40e66f+0x2],0x9,-0x3105c08),_0x3076fe=_0x2a3415(_0x3076fe,_0x13a971,_0x1790cf,_0x3c21e1,_0x37ad43[_0x40e66f+0x7],0xe,0x676f02d9),_0x3c21e1=_0x2a3415(_0x3c21e1,_0x3076fe,_0x13a971,_0x1790cf,_0x37ad43[_0x40e66f+0xc],0x14,-0x72d5b376),_0x1790cf=_0x10fc97(_0x1790cf,_0x3c21e1,_0x3076fe,_0x13a971,_0x37ad43[_0x40e66f+0x5],0x4,-0x5c6be),_0x13a971=_0x10fc97(_0x13a971,_0x1790cf,_0x3c21e1,_0x3076fe,_0x37ad43[_0x40e66f+0x8],0xb,-0x788e097f),_0x3076fe=_0x10fc97(_0x3076fe,_0x13a971,_0x1790cf,_0x3c21e1,_0x37ad43[_0x40e66f+0xb],0x10,0x6d9d6122),_0x3c21e1=_0x10fc97(_0x3c21e1,_0x3076fe,_0x13a971,_0x1790cf,_0x37ad43[_0x40e66f+0xe],0x17,-0x21ac7f4),_0x1790cf=_0x10fc97(_0x1790cf,_0x3c21e1,_0x3076fe,_0x13a971,_0x37ad43[_0x40e66f+0x1],0x4,-0x5b4115bc),_0x13a971=_0x10fc97(_0x13a971,_0x1790cf,_0x3c21e1,_0x3076fe,_0x37ad43[_0x40e66f+0x4],0xb,0x4bdecfa9),_0x3076fe=_0x10fc97(_0x3076fe,_0x13a971,_0x1790cf,_0x3c21e1,_0x37ad43[_0x40e66f+0x7],0x10,-0x944b4a0),_0x3c21e1=_0x10fc97(_0x3c21e1,_0x3076fe,_0x13a971,_0x1790cf,_0x37ad43[_0x40e66f+0xa],0x17,-0x41404390),_0x1790cf=_0x10fc97(_0x1790cf,_0x3c21e1,_0x3076fe,_0x13a971,_0x37ad43[_0x40e66f+0xd],0x4,0x289b7ec6),_0x13a971=_0x10fc97(_0x13a971,_0x1790cf,_0x3c21e1,_0x3076fe,_0x37ad43[_0x40e66f],0xb,-0x155ed806),_0x3076fe=_0x10fc97(_0x3076fe,_0x13a971,_0x1790cf,_0x3c21e1,_0x37ad43[_0x40e66f+0x3],0x10,-0x2b10cf7b),_0x3c21e1=_0x10fc97(_0x3c21e1,_0x3076fe,_0x13a971,_0x1790cf,_0x37ad43[_0x40e66f+0x6],0x17,0x4881d05),_0x1790cf=_0x10fc97(_0x1790cf,_0x3c21e1,_0x3076fe,_0x13a971,_0x37ad43[_0x40e66f+0x9],0x4,-0x262b2fc7),_0x13a971=_0x10fc97(_0x13a971,_0x1790cf,_0x3c21e1,_0x3076fe,_0x37ad43[_0x40e66f+0xc],0xb,-0x1924661b),_0x3076fe=_0x10fc97(_0x3076fe,_0x13a971,_0x1790cf,_0x3c21e1,_0x37ad43[_0x40e66f+0xf],0x10,0x1fa27cf8),_0x3c21e1=_0x10fc97(_0x3c21e1,_0x3076fe,_0x13a971,_0x1790cf,_0x37ad43[_0x40e66f+0x2],0x17,-0x3b53a99b),_0x1790cf=_0x57fd41(_0x1790cf,_0x3c21e1,_0x3076fe,_0x13a971,_0x37ad43[_0x40e66f],0x6,-0xbd6ddbc),_0x13a971=_0x57fd41(_0x13a971,_0x1790cf,_0x3c21e1,_0x3076fe,_0x37ad43[_0x40e66f+0x7],0xa,0x432aff97),_0x3076fe=_0x57fd41(_0x3076fe,_0x13a971,_0x1790cf,_0x3c21e1,_0x37ad43[_0x40e66f+0xe],0xf,-0x546bdc59),_0x3c21e1=_0x57fd41(_0x3c21e1,_0x3076fe,_0x13a971,_0x1790cf,_0x37ad43[_0x40e66f+0x5],0x15,-0x36c5fc7),_0x1790cf=_0x57fd41(_0x1790cf,_0x3c21e1,_0x3076fe,_0x13a971,_0x37ad43[_0x40e66f+0xc],0x6,0x655b59c3),_0x13a971=_0x57fd41(_0x13a971,_0x1790cf,_0x3c21e1,_0x3076fe,_0x37ad43[_0x40e66f+0x3],0xa,-0x70f3336e),_0x3076fe=_0x57fd41(_0x3076fe,_0x13a971,_0x1790cf,_0x3c21e1,_0x37ad43[_0x40e66f+0xa],0xf,-0x100b83),_0x3c21e1=_0x57fd41(_0x3c21e1,_0x3076fe,_0x13a971,_0x1790cf,_0x37ad43[_0x40e66f+0x1],0x15,-0x7a7ba22f),_0x1790cf=_0x57fd41(_0x1790cf,_0x3c21e1,_0x3076fe,_0x13a971,_0x37ad43[_0x40e66f+0x8],0x6,0x6fa87e4f),_0x13a971=_0x57fd41(_0x13a971,_0x1790cf,_0x3c21e1,_0x3076fe,_0x37ad43[_0x40e66f+0xf],0xa,-0x1d31920),_0x3076fe=_0x57fd41(_0x3076fe,_0x13a971,_0x1790cf,_0x3c21e1,_0x37ad43[_0x40e66f+0x6],0xf,-0x5cfebcec),_0x3c21e1=_0x57fd41(_0x3c21e1,_0x3076fe,_0x13a971,_0x1790cf,_0x37ad43[_0x40e66f+0xd],0x15,0x4e0811a1),_0x1790cf=_0x57fd41(_0x1790cf,_0x3c21e1,_0x3076fe,_0x13a971,_0x37ad43[_0x40e66f+0x4],0x6,-0x8ac817e),_0x13a971=_0x57fd41(_0x13a971,_0x1790cf,_0x3c21e1,_0x3076fe,_0x37ad43[_0x40e66f+0xb],0xa,-0x42c50dcb),_0x3076fe=_0x57fd41(_0x3076fe,_0x13a971,_0x1790cf,_0x3c21e1,_0x37ad43[_0x40e66f+0x2],0xf,0x2ad7d2bb),_0x3c21e1=_0x57fd41(_0x3c21e1,_0x3076fe,_0x13a971,_0x1790cf,_0x37ad43[_0x40e66f+0x9],0x15,-0x14792c6f),_0x1790cf=_0x3e2ed8(_0x1790cf,_0x3ddf9a),_0x3c21e1=_0x3e2ed8(_0x3c21e1,_0x3c2afe),_0x3076fe=_0x3e2ed8(_0x3076fe,_0x3b7d3d),_0x13a971=_0x3e2ed8(_0x13a971,_0x1a7ae2);}return Uint32Array['of'](_0x1790cf,_0x3c21e1,_0x3076fe,_0x13a971);}(function _0x29b548(_0x55e9a0){const _0x1678ef=a0_0x13db;if(0x0===_0x55e9a0[_0x1678ef(0x133)])return new Uint32Array();const _0x219df2=new Uint32Array(_0xc71c60(0x8*_0x55e9a0['length']))[_0x1678ef(0x19f)](0x0);for(let _0x3f9fd2=0x0;_0x3f9fd2<_0x55e9a0[_0x1678ef(0x133)];_0x3f9fd2++)_0x219df2[_0x3f9fd2>>0x2]|=(0xff&_0x55e9a0[_0x3f9fd2])<<_0x3f9fd2%0x4*0x8;return _0x219df2;}(_0x1cdb70),0x8*_0x1cdb70[_0x5b5b2c(0x133)]));};},0x164:(_0xb758ab,_0x2258d6,_0x283e3c)=>{const _0x1c80b4=a0_0x13db;Object[_0x1c80b4(0x199)](_0x2258d6,_0x1c80b4(0x186),{'value':!0x0});const _0xebbd14=_0x283e3c(0xb),_0x3bd1ad=_0x283e3c(0x1a9),_0x53b3af=_0x283e3c(0x238);_0x2258d6['default']=function _0x404440(_0x589e5d,_0x4aa9b5,_0x261e1d){const _0x236b4c=_0x1c80b4;_0x589e5d??={},_0x261e1d??=0x0;let _0x400172=(0x0,_0x3bd1ad[_0x236b4c(0x130)])({..._0x589e5d,'_v6':!0x0},new Uint8Array(0x10));if(_0x400172=(0x0,_0x53b3af[_0x236b4c(0x130)])(_0x400172),_0x4aa9b5){for(let _0x251c3e=0x0;_0x251c3e<0x10;_0x251c3e++)_0x4aa9b5[_0x261e1d+_0x251c3e]=_0x400172[_0x251c3e];return _0x4aa9b5;}return(0x0,_0xebbd14[_0x236b4c(0x1b9)])(_0x400172);};},0x1a7:(_0x47884b,_0x5c2311,_0x44b8bc)=>{const _0x9d9940=a0_0x13db;Object['defineProperty'](_0x5c2311,_0x9d9940(0x186),{'value':!0x0}),_0x5c2311[_0x9d9940(0x1de)]=void 0x0;const _0x3bcdc4=_0x44b8bc(0x10a),_0x4aa3ea=_0x44b8bc(0xb6),_0x32ab7c=_0x9d9940(0x209);_0x5c2311[_0x9d9940(0x1de)]=class WebSDK{constructor(_0x4292d5){const _0x369fe9=_0x9d9940;var _0x4d11d8,_0x3bb250,_0xdd8fb8;if(this['maxBatchSize']=0xa,this[_0x369fe9(0x1fe)]=0x2710,this[_0x369fe9(0x1cd)]='1.0.7',this['eventQueue']=[],this['purchaseBatch']=[],this['attributeQueue']={},this[_0x369fe9(0x132)]=!0x1,!_0x4292d5[_0x369fe9(0x13e)]||!_0x4292d5[_0x369fe9(0x17a)])throw new Error(_0x369fe9(0x1e5));this['apiKey']=_0x4292d5['apiKey'],this[_0x369fe9(0x17a)]=_0x4292d5[_0x369fe9(0x17a)],this[_0x369fe9(0x1a7)]=null!==(_0x4d11d8=_0x4292d5['debug'])&&void 0x0!==_0x4d11d8&&_0x4d11d8,this['maxBatchSize']=null!==(_0x3bb250=_0x4292d5['batchSize'])&&void 0x0!==_0x3bb250?_0x3bb250:0xa,this[_0x369fe9(0x1fe)]=null!==(_0xdd8fb8=_0x4292d5['batchInterval'])&&void 0x0!==_0xdd8fb8?_0xdd8fb8:0x2710,this[_0x369fe9(0x162)]=this[_0x369fe9(0x1cf)]()||(0x0,_0x4aa3ea['v4'])(),this[_0x369fe9(0x13b)]=this[_0x369fe9(0x183)](),this[_0x369fe9(0x131)]()['catch'](_0x307725=>{const _0xbfc56b=_0x369fe9;(0x0,_0x3bcdc4[_0xbfc56b(0x190)])(this[_0xbfc56b(0x1a7)],'Async\x20initialization\x20failed',_0x307725);});}async[_0x9d9940(0x131)](){const _0x26a2c3=_0x9d9940;try{(0x0,_0x3bcdc4[_0x26a2c3(0x190)])(this[_0x26a2c3(0x1a7)],'SDK\x20Initialized'),this['storeDeviceId'](),await this['initializeDeviceDetails'](),await this['loadCustomAttributes']();const _0x446c0f=this['getStoredUserProfile']();_0x446c0f?(this['currentUser']=_0x446c0f,(0x0,_0x3bcdc4[_0x26a2c3(0x190)])(this[_0x26a2c3(0x1a7)],_0x26a2c3(0x1dd),this[_0x26a2c3(0x19c)])):this[_0x26a2c3(0x16c)]('');try{const _0x50056f=Intl[_0x26a2c3(0x15c)]()[_0x26a2c3(0x1a9)]()['timeZone'];this[_0x26a2c3(0x1cb)](_0x26a2c3(0x157),_0x50056f);}catch(_0x5ab34c){(0x0,_0x3bcdc4['log'])(this['debug'],_0x26a2c3(0x148),_0x5ab34c);}this[_0x26a2c3(0x1e7)](),this['trackEvent']('app_started',{});}catch(_0x2ebbd8){throw(0x0,_0x3bcdc4[_0x26a2c3(0x190)])(this['debug'],_0x26a2c3(0x134),_0x2ebbd8),_0x2ebbd8;}}[_0x9d9940(0x16c)](_0x44e94d){const _0x5f5230=_0x9d9940;if('string'!=typeof _0x44e94d)throw new Error(_0x5f5230(0x1c2));const _0x191252=this['getStoredUserProfile']();(null==_0x191252?void 0x0:_0x191252['id'])!==_0x44e94d&&((0x0,_0x3bcdc4[_0x5f5230(0x190)])(this['debug'],_0x5f5230(0x17c),_0x44e94d),this[_0x5f5230(0x19c)]=_0x44e94d?{'id':_0x44e94d,'guestUserId':this['guestUserId']}:{'id':this[_0x5f5230(0x13b)],'guestUserId':this[_0x5f5230(0x13b)]},this[_0x5f5230(0x1bb)]());}['clearUserData'](){const _0x466625=_0x9d9940;this[_0x466625(0x162)]=(0x0,_0x4aa3ea['v4'])(),this[_0x466625(0x13b)]=this[_0x466625(0x183)](),this[_0x466625(0x15a)](),this[_0x466625(0x19c)]={'id':this['guestUserId'],'guestUserId':this[_0x466625(0x13b)]},this[_0x466625(0x1d4)]={},this[_0x466625(0x159)]=[],this[_0x466625(0x1f1)]=[],this[_0x466625(0x18f)](),sessionStorage[_0x466625(0x1c8)](''+_0x32ab7c+this['apiKey']+_0x466625(0x1f0),JSON['stringify'](this['currentUser'])),sessionStorage[_0x466625(0x1af)](''+_0x32ab7c+this[_0x466625(0x13e)]+_0x466625(0x1e0)),this['debug']&&(0x0,_0x3bcdc4['log'])(this[_0x466625(0x1a7)],_0x466625(0x1f4));}['trackEvent'](_0x21a392,_0x393fb1={},_0x1056e4={}){const _0x3371c9=_0x9d9940;if(!_0x21a392||_0x3371c9(0x1b7)!=typeof _0x21a392)throw new Error(_0x3371c9(0x1a3));const _0x2c6831={'deviceId':this['deviceId'],'eventName':_0x21a392,'timestamp':_0x1056e4['timestamp']||Date['now'](),'requestId':_0x1056e4[_0x3371c9(0x127)]||(0x0,_0x4aa3ea['v4'])(),'properties':_0x393fb1};this[_0x3371c9(0x12a)](_0x2c6831);}[_0x9d9940(0x1ee)](_0x5282d7){const _0x867b8b=_0x9d9940;this[_0x867b8b(0x1bc)]&&(this[_0x867b8b(0x1bc)]={...this[_0x867b8b(0x1bc)],'pushToken':_0x5282d7});}['trackCustomAttribute'](_0x47ecf3,_0x472028){const _0x1a64c0=_0x9d9940;if(!_0x47ecf3||'string'!=typeof _0x47ecf3)throw new Error(_0x1a64c0(0x16e));this['attributeQueue']={...this['attributeQueue'],[_0x47ecf3]:_0x472028},(0x0,_0x3bcdc4[_0x1a64c0(0x190)])(this[_0x1a64c0(0x1a7)],_0x1a64c0(0x19b),_0x47ecf3,_0x472028),this[_0x1a64c0(0x184)]();}[_0x9d9940(0x145)](_0x5a3ac4,_0x3144c0,_0x56639c,_0x445a67,_0x152d78,_0x65444,_0x1bc55d,_0x1acc24){const _0x4ebaf0=_0x9d9940,_0x1e17f9=this[_0x4ebaf0(0x215)]({'externalId':_0x5a3ac4,'itemId':_0x3144c0,'itemName':_0x56639c,'unitPrice':_0x445a67,'quantity':_0x152d78,'source':_0x65444,'channel':_0x1bc55d,'itemCategory':_0x1acc24});this[_0x4ebaf0(0x1f1)][_0x4ebaf0(0x1ed)](_0x1e17f9),this['debug']&&(0x0,_0x3bcdc4[_0x4ebaf0(0x190)])(this[_0x4ebaf0(0x1a7)],_0x4ebaf0(0x150),_0x1e17f9);}[_0x9d9940(0x1ac)](){const _0x4a078a=_0x9d9940;return this[_0x4a078a(0x19c)];}async[_0x9d9940(0x14b)](){const _0xf93eeb=_0x9d9940;(this[_0xf93eeb(0x159)][_0xf93eeb(0x133)]>0x0||this[_0xf93eeb(0x1f1)][_0xf93eeb(0x133)]>0x0||this[_0xf93eeb(0x1d4)][_0xf93eeb(0x133)]>0x0)&&await this[_0xf93eeb(0x14a)]();}[_0x9d9940(0x1c3)](){const _0x550d28=_0x9d9940;this[_0x550d28(0x1d2)]&&clearInterval(this[_0x550d28(0x1d2)]),(this[_0x550d28(0x159)][_0x550d28(0x133)]>0x0||this[_0x550d28(0x1f1)][_0x550d28(0x133)]>0x0||this[_0x550d28(0x1d4)][_0x550d28(0x133)]>0x0)&&this[_0x550d28(0x14a)]()[_0x550d28(0x1bd)](_0x16c8e2=>{const _0x3c54c7=_0x550d28;(0x0,_0x3bcdc4[_0x3c54c7(0x190)])(this['debug'],_0x3c54c7(0x1a0),_0x16c8e2);});}[_0x9d9940(0x1cf)](){const _0x19b524=_0x9d9940;return sessionStorage[_0x19b524(0x13a)](''+_0x32ab7c+this['apiKey']+_0x19b524(0x152));}[_0x9d9940(0x196)](){const _0x38340d=_0x9d9940,_0xe58ece=sessionStorage[_0x38340d(0x13a)](''+_0x32ab7c+this[_0x38340d(0x13e)]+_0x38340d(0x1f0));return _0xe58ece?JSON['parse'](_0xe58ece):null;}['storeDeviceId'](){const _0x1f1ce1=_0x9d9940;sessionStorage['setItem'](''+_0x32ab7c+this['apiKey']+_0x1f1ce1(0x152),this[_0x1f1ce1(0x162)]);}[_0x9d9940(0x1bb)](){const _0x2ea1a1=_0x9d9940;this['currentUser']&&sessionStorage[_0x2ea1a1(0x1c8)](''+_0x32ab7c+this['apiKey']+_0x2ea1a1(0x1f0),JSON['stringify'](this['currentUser']));}[_0x9d9940(0x184)](){const _0x44ef9a=_0x9d9940,_0x5e3499=sessionStorage[_0x44ef9a(0x13a)](''+_0x32ab7c+this[_0x44ef9a(0x13e)]+_0x44ef9a(0x1e0)),_0x471bfa={..._0x5e3499?JSON[_0x44ef9a(0x1d3)](_0x5e3499):{},...this[_0x44ef9a(0x1d4)]};sessionStorage[_0x44ef9a(0x1c8)](''+_0x32ab7c+this[_0x44ef9a(0x13e)]+_0x44ef9a(0x1e0),JSON[_0x44ef9a(0x197)](_0x471bfa));}async[_0x9d9940(0x165)](){const _0x1bb978=_0x9d9940,_0x381349=sessionStorage[_0x1bb978(0x13a)](''+_0x32ab7c+this['apiKey']+'.custom_attributes');_0x381349&&(this[_0x1bb978(0x1d4)]={...this[_0x1bb978(0x1d4)],...JSON[_0x1bb978(0x1d3)](_0x381349)});}[_0x9d9940(0x183)](){const _0x2fb852=_0x9d9940;return _0x2fb852(0x1d8)+this['deviceId'];}[_0x9d9940(0x215)]({externalId:_0x1d4476,itemId:_0x28caa0,itemName:_0x24d070,unitPrice:_0x32130e,quantity:_0x5ef656,source:_0x53c4fc,channel:_0x48cbfb,itemCategory:_0x38628e}){return{'external_id':_0x1d4476,'item_id':_0x28caa0,'item_name':_0x24d070,'item_category':_0x38628e,'quantity':_0x5ef656,'unit_price':_0x32130e,'total_price':_0x32130e*_0x5ef656,'source':_0x53c4fc,'channel':_0x48cbfb,'purchased_at':Date['now']()};}async[_0x9d9940(0x15a)](){const _0x48f48f=_0x9d9940;this[_0x48f48f(0x1bc)]={'deviceId':this['deviceId'],'platform':_0x48f48f(0x1ad)};}[_0x9d9940(0x1e7)](){this['batchProcessingInterval']=setInterval(()=>{const _0x40c402=a0_0x13db;(this[_0x40c402(0x159)]['length']>0x0||this[_0x40c402(0x1f1)]['length']>0x0||this[_0x40c402(0x1d4)][_0x40c402(0x133)]>0x0)&&this[_0x40c402(0x14a)]()[_0x40c402(0x1bd)](_0x1d97a2=>{const _0x1d2c18=_0x40c402;(0x0,_0x3bcdc4[_0x1d2c18(0x190)])(this['debug'],_0x1d2c18(0x1a1),_0x1d97a2);});},this['batchInterval']);}[_0x9d9940(0x12a)](_0x2ad032){const _0x90e844=_0x9d9940;this['eventQueue'][_0x90e844(0x1ed)](_0x2ad032),(0x0,_0x3bcdc4[_0x90e844(0x190)])(this[_0x90e844(0x1a7)],_0x90e844(0x1a5),_0x2ad032),this[_0x90e844(0x159)][_0x90e844(0x133)]>=this['maxBatchSize']&&this['processBatch']()[_0x90e844(0x1bd)](_0x56eeab=>{const _0x3d595e=_0x90e844;(0x0,_0x3bcdc4['log'])(this[_0x3d595e(0x1a7)],'Batch\x20processing\x20failed',_0x56eeab);});}async[_0x9d9940(0x14a)](){const _0x217bea=_0x9d9940;if(this['isProcessingQueue'])return;this[_0x217bea(0x132)]=!0x0;const _0x22e21f=[...this[_0x217bea(0x159)]],_0x28c886=[...this[_0x217bea(0x1f1)]],_0x190b87={...this[_0x217bea(0x1d4)]};this[_0x217bea(0x159)]=[],this[_0x217bea(0x1f1)]=[],this[_0x217bea(0x1d4)]={};try{await this[_0x217bea(0x156)](_0x22e21f,_0x28c886,_0x190b87);}catch(_0x131816){throw this[_0x217bea(0x159)][_0x217bea(0x147)](..._0x22e21f),this[_0x217bea(0x1f1)][_0x217bea(0x147)](..._0x28c886),this[_0x217bea(0x1d4)]={...this[_0x217bea(0x1d4)],..._0x190b87},(0x0,_0x3bcdc4[_0x217bea(0x190)])(this[_0x217bea(0x1a7)],_0x217bea(0x1a1),_0x131816),_0x131816;}finally{this[_0x217bea(0x132)]=!0x1;}}async[_0x9d9940(0x156)](_0x2529af,_0x4c01f0,_0x7fdc6b){const _0x296c47=_0x9d9940;var _0x50b4bb,_0x3a0245;this[_0x296c47(0x1bc)]||await this[_0x296c47(0x15a)]();const _0x262d63={'sdkVersion':this[_0x296c47(0x1cd)],'deviceInfo':this['deviceDetails'],'userId':null===(_0x50b4bb=this[_0x296c47(0x19c)])||void 0x0===_0x50b4bb?void 0x0:_0x50b4bb['id'],'guestUserId':null===(_0x3a0245=this['currentUser'])||void 0x0===_0x3a0245?void 0x0:_0x3a0245[_0x296c47(0x13b)],'time':Date[_0x296c47(0x19d)](),'events':_0x2529af,'purchases':_0x4c01f0,'userAttributes':_0x7fdc6b};(0x0,_0x3bcdc4[_0x296c47(0x190)])(this[_0x296c47(0x1a7)],_0x296c47(0x194),_0x262d63);try{const _0x36ffcc=await fetch(this['endpoint']+_0x296c47(0x1d6),{'method':_0x296c47(0x1c4),'headers':{'Content-Type':_0x296c47(0x1df),'x-api-key':this[_0x296c47(0x13e)]},'body':JSON['stringify'](_0x262d63)});if(!_0x36ffcc['ok'])throw new Error('HTTP\x20error!\x20status:\x20'+_0x36ffcc[_0x296c47(0x178)]);this[_0x296c47(0x1a7)]&&(0x0,_0x3bcdc4[_0x296c47(0x190)])(this[_0x296c47(0x1a7)],_0x296c47(0x151)+_0x262d63[_0x296c47(0x203)][_0x296c47(0x133)]+_0x296c47(0x149)+_0x262d63['purchases'][_0x296c47(0x133)]+'\x20purchases,\x20'+Object['keys'](_0x262d63[_0x296c47(0x1ef)])[_0x296c47(0x133)]+'\x20attributes'),await _0x36ffcc['json'](),Object[_0x296c47(0x185)](_0x7fdc6b)['length']>0x0&&(this[_0x296c47(0x1d4)]={},sessionStorage[_0x296c47(0x1af)](''+_0x32ab7c+this[_0x296c47(0x13e)]+_0x296c47(0x1e0)));}catch(_0x2be8ac){throw(0x0,_0x3bcdc4['log'])(this[_0x296c47(0x1a7)],'Failed\x20to\x20send\x20payload\x20to\x20server',_0x2be8ac),_0x2be8ac;}}[_0x9d9940(0x1a2)](_0x85a7ac,_0x53527d,_0x4a66f9){const _0x2ca84c=_0x9d9940,_0xae131d=JSON[_0x2ca84c(0x1d3)](_0x85a7ac),_0xcb0c65=_0xae131d[_0x2ca84c(0x170)],_0x3b52ca=_0xae131d[_0x2ca84c(0x144)],_0x24bd01=_0xae131d[_0x2ca84c(0x18a)][_0x2ca84c(0x1bf)],_0x599ea0=_0xae131d['modal'][_0x2ca84c(0x12e)],_0x41b3c6=_0x24bd01[_0x2ca84c(0x13d)]||'',_0x25ac0c=_0x599ea0[_0x2ca84c(0x13d)]||'',_0x2e0c0a=_0xae131d[_0x2ca84c(0x1ba)][_0x2ca84c(0x136)];this[_0x2ca84c(0x1c5)]({'context':_0x4a66f9,'title':_0xcb0c65,'body':_0x3b52ca,'primaryButtonText':_0x41b3c6,'secondaryButtonText':_0x25ac0c,'imageUrl':_0x2e0c0a,'buttonPropertiesPrimary':_0x24bd01,'buttonPropertiesSecondary':_0x599ea0,'dismissMessageAutomatically':_0xae131d[_0x2ca84c(0x18a)][_0x2ca84c(0x211)],'dismissMessageInSeconds':_0xae131d[_0x2ca84c(0x18a)][_0x2ca84c(0x168)],'headerColor':_0xae131d[_0x2ca84c(0x18a)][_0x2ca84c(0x141)],'messageColor':_0xae131d[_0x2ca84c(0x18a)][_0x2ca84c(0x206)],'closeColor':_0xae131d['modal']['closeColor'],'campaignId':_0x53527d});}[_0x9d9940(0x1c1)](_0x17c7b1){const _0x56c2eb=_0x9d9940;return 0x6===(_0x17c7b1=_0x17c7b1[_0x56c2eb(0x20a)]()[_0x56c2eb(0x14d)]('#',''))['length']?'#'+_0x17c7b1:'#'+_0x17c7b1[_0x56c2eb(0x217)](0x2);}[_0x9d9940(0x164)](_0x171738){const _0xd0644d=_0x9d9940;_0x171738&&window['open'](_0x171738,_0xd0644d(0x1d1));}[_0x9d9940(0x1c5)](_0x2d1aaf){const _0x1e21b8=_0x9d9940,{title:_0x40b518,body:_0x153c39,primaryButtonText:_0xfcc16c,secondaryButtonText:_0x11d6ed,imageUrl:_0x44e704,onClose:_0x4e0eed,buttonPropertiesPrimary:_0x49ea1a,buttonPropertiesSecondary:_0x4bcb9b,dismissMessageAutomatically:_0x409d7a,dismissMessageInSeconds:_0x44fa24,headerColor:_0x194b23,messageColor:_0x2d76be,closeColor:_0x4aa310,campaignId:_0xbe43b3}=_0x2d1aaf,_0x18c504=document['createElement'](_0x1e21b8(0x179));_0x18c504[_0x1e21b8(0x14c)]['position']=_0x1e21b8(0x181),_0x18c504[_0x1e21b8(0x14c)][_0x1e21b8(0x161)]='0',_0x18c504[_0x1e21b8(0x14c)][_0x1e21b8(0x189)]='0',_0x18c504[_0x1e21b8(0x14c)]['width']=_0x1e21b8(0x17d),_0x18c504[_0x1e21b8(0x14c)][_0x1e21b8(0x16f)]='100%',_0x18c504['style'][_0x1e21b8(0x129)]=_0x1e21b8(0x15f),_0x18c504[_0x1e21b8(0x14c)]['display']='flex',_0x18c504[_0x1e21b8(0x14c)][_0x1e21b8(0x207)]=_0x1e21b8(0x1b2),_0x18c504['style'][_0x1e21b8(0x17b)]=_0x1e21b8(0x1b2),_0x18c504['style'][_0x1e21b8(0x212)]='9999';const _0xfb02d7=document[_0x1e21b8(0x1e6)]('div');_0xfb02d7[_0x1e21b8(0x14c)][_0x1e21b8(0x129)]=_0x1e21b8(0x1f9),_0xfb02d7[_0x1e21b8(0x14c)][_0x1e21b8(0x16a)]=_0x1e21b8(0x126),_0xfb02d7[_0x1e21b8(0x14c)]['padding']=_0x1e21b8(0x1f3),_0xfb02d7[_0x1e21b8(0x14c)][_0x1e21b8(0x1dc)]=_0x1e21b8(0x1c0),_0xfb02d7[_0x1e21b8(0x14c)][_0x1e21b8(0x160)]=_0x1e21b8(0x143),_0xfb02d7[_0x1e21b8(0x14c)][_0x1e21b8(0x200)]=_0x1e21b8(0x1e2),_0xfb02d7['style']['position']=_0x1e21b8(0x1db);const _0x4e68e8=document[_0x1e21b8(0x1e6)](_0x1e21b8(0x213));_0x4e68e8[_0x1e21b8(0x202)]=_0x1e21b8(0x208),_0x4e68e8[_0x1e21b8(0x14c)][_0x1e21b8(0x1b8)]='absolute',_0x4e68e8[_0x1e21b8(0x14c)][_0x1e21b8(0x161)]=_0x1e21b8(0x1a6),_0x4e68e8[_0x1e21b8(0x14c)][_0x1e21b8(0x176)]='8px',_0x4e68e8['style'][_0x1e21b8(0x13c)]=_0x1e21b8(0x192),_0x4e68e8['style'][_0x1e21b8(0x214)]=_0x1e21b8(0x192),_0x4e68e8['style']['fontSize']='20px',_0x4e68e8[_0x1e21b8(0x14c)]['cursor']=_0x1e21b8(0x1d5),_0x4e68e8['style']['color']=this[_0x1e21b8(0x1c1)](_0x4aa310),_0x4e68e8[_0x1e21b8(0x1cc)]=()=>{const _0x106bbd=_0x1e21b8;_0x4e0eed&&_0x4e0eed(),this[_0x106bbd(0x216)](_0xbe43b3,!0x1,!0x0,!0x0),document['body']['removeChild'](_0x18c504);};const _0x3eeb37=document[_0x1e21b8(0x1e6)](_0x1e21b8(0x179));if(_0x3eeb37[_0x1e21b8(0x14c)]['display']='flex',_0x3eeb37[_0x1e21b8(0x14c)]['flexDirection']=_0x1e21b8(0x169),_0x3eeb37['style'][_0x1e21b8(0x17b)]=_0x1e21b8(0x1b2),_0x3eeb37['style'][_0x1e21b8(0x171)]=_0x1e21b8(0x1b2),_0x44e704&&''!==_0x44e704['trim']()){const _0x538f42=document[_0x1e21b8(0x1e6)](_0x1e21b8(0x1a4));_0x538f42[_0x1e21b8(0x128)]=_0x44e704,_0x538f42[_0x1e21b8(0x14c)][_0x1e21b8(0x160)]=_0x1e21b8(0x1f5),_0x538f42[_0x1e21b8(0x14c)][_0x1e21b8(0x16f)]='100px',_0x538f42['style']['marginBottom']=_0x1e21b8(0x1f3),_0x538f42[_0x1e21b8(0x14c)][_0x1e21b8(0x1eb)]=_0x1e21b8(0x1f3),_0x538f42['onerror']=()=>{const _0x50a1c4=_0x1e21b8;_0x538f42['style'][_0x50a1c4(0x12c)]=_0x50a1c4(0x192);},_0x3eeb37[_0x1e21b8(0x19e)](_0x538f42);}const _0xc33301=document[_0x1e21b8(0x1e6)]('h2');_0xc33301['textContent']=_0x40b518,_0xc33301[_0x1e21b8(0x14c)][_0x1e21b8(0x1b1)]=_0x1e21b8(0x1fd),_0xc33301[_0x1e21b8(0x14c)]['fontWeight']=_0x1e21b8(0x163),_0xc33301[_0x1e21b8(0x14c)]['color']=this[_0x1e21b8(0x1c1)](_0x194b23),_0xc33301[_0x1e21b8(0x14c)][_0x1e21b8(0x1fc)]=_0x1e21b8(0x12f),_0x3eeb37['appendChild'](_0xc33301);const _0x16e109=document['createElement']('p');_0x16e109[_0x1e21b8(0x1ae)]=_0x153c39,_0x16e109['style']['fontSize']='14px',_0x16e109[_0x1e21b8(0x14c)]['color']=this[_0x1e21b8(0x1c1)](_0x2d76be),_0x16e109[_0x1e21b8(0x14c)]['fontWeight']=_0x1e21b8(0x1c6),_0x16e109[_0x1e21b8(0x14c)][_0x1e21b8(0x1fc)]=_0x1e21b8(0x154),_0x3eeb37[_0x1e21b8(0x19e)](_0x16e109);const _0x1142f9=()=>{const _0x58abc3=_0x1e21b8;_0x58abc3(0x18c)!==_0x49ea1a['webOnClickValue']&&_0x58abc3(0x12d)!==_0x49ea1a[_0x58abc3(0x193)]||this[_0x58abc3(0x164)](_0x49ea1a[_0x58abc3(0x1e4)]||'');},_0x4bd23f=()=>{const _0x514f4b=_0x1e21b8;'redirect_to_web_url'!==_0x4bcb9b[_0x514f4b(0x193)]&&_0x514f4b(0x12d)!==_0x4bcb9b[_0x514f4b(0x193)]||this[_0x514f4b(0x164)](_0x4bcb9b['webOnClickAction']||'');},_0x2a611a=document[_0x1e21b8(0x1e6)]('div');if(_0x2a611a[_0x1e21b8(0x14c)][_0x1e21b8(0x12c)]=_0x1e21b8(0x174),_0x2a611a[_0x1e21b8(0x14c)]['justifyContent']=_0x1e21b8(0x1b2),_0x2a611a[_0x1e21b8(0x14c)]['width']=_0x1e21b8(0x17d),_0x2a611a['style'][_0x1e21b8(0x155)]='16px',_0x11d6ed&&''!==_0x11d6ed[_0x1e21b8(0x1f2)]()){const _0x1f9c1c=document[_0x1e21b8(0x1e6)]('button');_0x1f9c1c[_0x1e21b8(0x1ae)]=_0xfcc16c,_0x1f9c1c[_0x1e21b8(0x14c)][_0x1e21b8(0x174)]='1',_0x1f9c1c[_0x1e21b8(0x14c)][_0x1e21b8(0x1dc)]=_0x1e21b8(0x12b),_0x1f9c1c[_0x1e21b8(0x14c)]['padding']=_0x1e21b8(0x126),_0x1f9c1c[_0x1e21b8(0x14c)]['backgroundColor']=this[_0x1e21b8(0x1c1)](_0x49ea1a[_0x1e21b8(0x129)]),_0x1f9c1c[_0x1e21b8(0x14c)][_0x1e21b8(0x1e1)]=this[_0x1e21b8(0x1c1)](_0x49ea1a['textColor']),_0x1f9c1c[_0x1e21b8(0x14c)][_0x1e21b8(0x214)]=_0x1e21b8(0x17e)+this[_0x1e21b8(0x1c1)](_0x49ea1a[_0x1e21b8(0x1ff)]),_0x1f9c1c[_0x1e21b8(0x14c)][_0x1e21b8(0x16a)]=_0x1e21b8(0x1a6),_0x1f9c1c[_0x1e21b8(0x14c)]['fontSize']=_0x1e21b8(0x1f3),_0x1f9c1c[_0x1e21b8(0x14c)]['fontWeight']=_0x1e21b8(0x163),_0x1f9c1c[_0x1e21b8(0x14c)]['cursor']=_0x1e21b8(0x1d5),_0x1f9c1c['onclick']=()=>{const _0x2ea3ed=_0x1e21b8;document[_0x2ea3ed(0x1c7)][_0x2ea3ed(0x1f6)](_0x18c504),_0x1142f9();},_0x2a611a['appendChild'](_0x1f9c1c);const _0x244af2=document[_0x1e21b8(0x1e6)](_0x1e21b8(0x213));_0x244af2[_0x1e21b8(0x1ae)]=_0x11d6ed,_0x244af2[_0x1e21b8(0x14c)][_0x1e21b8(0x174)]='1',_0x244af2['style']['maxWidth']=_0x1e21b8(0x12b),_0x244af2[_0x1e21b8(0x14c)][_0x1e21b8(0x1f8)]=_0x1e21b8(0x126),_0x244af2[_0x1e21b8(0x14c)][_0x1e21b8(0x129)]=this[_0x1e21b8(0x1c1)](_0x4bcb9b[_0x1e21b8(0x129)]),_0x244af2[_0x1e21b8(0x14c)][_0x1e21b8(0x1e1)]=this[_0x1e21b8(0x1c1)](_0x4bcb9b[_0x1e21b8(0x137)]),_0x244af2['style'][_0x1e21b8(0x214)]=_0x1e21b8(0x17e)+this[_0x1e21b8(0x1c1)](_0x4bcb9b[_0x1e21b8(0x1ff)]),_0x244af2[_0x1e21b8(0x14c)][_0x1e21b8(0x16a)]=_0x1e21b8(0x1a6),_0x244af2['style'][_0x1e21b8(0x1b1)]='16px',_0x244af2[_0x1e21b8(0x14c)][_0x1e21b8(0x18b)]=_0x1e21b8(0x163),_0x244af2[_0x1e21b8(0x14c)]['cursor']=_0x1e21b8(0x1d5),_0x244af2['onclick']=()=>{const _0x56d714=_0x1e21b8;document['body'][_0x56d714(0x1f6)](_0x18c504),this[_0x56d714(0x216)](_0xbe43b3,!0x0,!0x0,!0x1),_0x4bd23f();},_0x2a611a['appendChild'](_0x244af2);}else{if(_0xfcc16c&&''!==_0xfcc16c[_0x1e21b8(0x1f2)]()){const _0x4d05a3=document[_0x1e21b8(0x1e6)](_0x1e21b8(0x213));_0x4d05a3[_0x1e21b8(0x1ae)]=_0xfcc16c,_0x4d05a3[_0x1e21b8(0x14c)][_0x1e21b8(0x160)]=_0x1e21b8(0x17d),_0x4d05a3[_0x1e21b8(0x14c)][_0x1e21b8(0x1f8)]=_0x1e21b8(0x126),_0x4d05a3[_0x1e21b8(0x14c)]['backgroundColor']=this[_0x1e21b8(0x1c1)](_0x49ea1a['backgroundColor']),_0x4d05a3['style']['color']=this['hexToColor'](_0x49ea1a['textColor']),_0x4d05a3[_0x1e21b8(0x14c)][_0x1e21b8(0x214)]=_0x1e21b8(0x17e)+this[_0x1e21b8(0x1c1)](_0x49ea1a[_0x1e21b8(0x1ff)]),_0x4d05a3[_0x1e21b8(0x14c)]['borderRadius']=_0x1e21b8(0x1a6),_0x4d05a3[_0x1e21b8(0x14c)][_0x1e21b8(0x1b1)]=_0x1e21b8(0x1f3),_0x4d05a3['style'][_0x1e21b8(0x18b)]=_0x1e21b8(0x163),_0x4d05a3['style'][_0x1e21b8(0x1da)]=_0x1e21b8(0x1d5),_0x4d05a3[_0x1e21b8(0x1cc)]=()=>{const _0x2c90d9=_0x1e21b8;document[_0x2c90d9(0x1c7)][_0x2c90d9(0x1f6)](_0x18c504),this[_0x2c90d9(0x216)](_0xbe43b3,!0x0,!0x0,!0x1),_0x1142f9();},_0x2a611a[_0x1e21b8(0x19e)](_0x4d05a3);}}_0xfb02d7[_0x1e21b8(0x19e)](_0x4e68e8),_0xfb02d7['appendChild'](_0x3eeb37),_0x3eeb37[_0x1e21b8(0x19e)](_0x2a611a),_0x18c504['appendChild'](_0xfb02d7),document[_0x1e21b8(0x1c7)][_0x1e21b8(0x19e)](_0x18c504),_0x409d7a&&setTimeout(()=>{const _0x5e027b=_0x1e21b8;document[_0x5e027b(0x1c7)][_0x5e027b(0x1ec)](_0x18c504)&&document['body'][_0x5e027b(0x1f6)](_0x18c504);},0x3e8*parseInt(_0x44fa24)),_0x18c504[_0x1e21b8(0x198)]('click',_0x31a074=>{const _0x2a160e=_0x1e21b8;_0x31a074[_0x2a160e(0x1b5)]===_0x18c504&&document['body'][_0x2a160e(0x1f6)](_0x18c504);});}async[_0x9d9940(0x216)](_0x4a2a8f,_0x3cddd7,_0x165af0,_0x889239){const _0x3f6de9=_0x9d9940,_0x22ea56=await this[_0x3f6de9(0x1a8)](_0x4a2a8f,_0x165af0,_0x3cddd7,_0x889239);await this[_0x3f6de9(0x1f7)](_0x22ea56);}async[_0x9d9940(0x180)](_0x13a9f7){const _0x2b35d8=_0x9d9940;this['currentUser']&&this[_0x2b35d8(0x1bc)]||((0x0,_0x3bcdc4[_0x2b35d8(0x190)])(this['debug'],_0x2b35d8(0x1ea)),await this[_0x2b35d8(0x131)]()),(this[_0x2b35d8(0x159)][_0x2b35d8(0x133)]>0x0||this[_0x2b35d8(0x1f1)][_0x2b35d8(0x133)]>0x0||Object['keys'](this[_0x2b35d8(0x1d4)])[_0x2b35d8(0x133)]>0x0)&&await this[_0x2b35d8(0x14b)]();const _0x11687a=await this['buildCampaignPayload'](_0x13a9f7,!0x0,!0x0);await this['processCampaignClick'](_0x11687a);}async[_0x9d9940(0x1f7)](_0x5b968f){const _0x1816ab=_0x9d9940;try{const _0x339b4d=await fetch(this[_0x1816ab(0x17a)]+'/analytics/clicks',{'method':_0x1816ab(0x1c4),'headers':{'Content-Type':_0x1816ab(0x1df),'x-api-key':this[_0x1816ab(0x13e)]},'body':JSON[_0x1816ab(0x197)](_0x5b968f)});if(!_0x339b4d['ok'])throw new Error('HTTP\x20error!\x20status:\x20'+_0x339b4d[_0x1816ab(0x178)]);this['debug']&&(0x0,_0x3bcdc4[_0x1816ab(0x190)])(this['debug'],_0x1816ab(0x146)+_0x5b968f[_0x1816ab(0x18e)]);}catch(_0x33170c){throw(0x0,_0x3bcdc4[_0x1816ab(0x190)])(this[_0x1816ab(0x1a7)],_0x1816ab(0x158),_0x33170c),_0x33170c;}}async['buildCampaignPayload'](_0xf5ab1e,_0x4da483,_0x4f8ade,_0x5d1a84){const _0x37bc75=_0x9d9940,_0x1c635b=Date['now'](),_0x1be221={'campaignId':_0xf5ab1e,'opened':_0x4da483,'clicked':_0x4f8ade,'deviceId':this['deviceId'],'timestamp':_0x1c635b};return void 0x0!==_0x5d1a84&&(_0x1be221[_0x37bc75(0x19a)]=_0x5d1a84),_0x1be221;}};},0x1a9:(_0x1f73b9,_0x19455a,_0x5358ca)=>{const _0x20e855=a0_0x13db;Object[_0x20e855(0x199)](_0x19455a,'__esModule',{'value':!0x0}),_0x19455a[_0x20e855(0x1b3)]=void 0x0;const _0x50021d=_0x5358ca(0x123),_0x145f8d=_0x5358ca(0xb),_0x518666={};function _0x19e2db(_0x5bb3d8,_0x138951,_0x27a0d6){const _0x4757ff=_0x20e855;return _0x5bb3d8[_0x4757ff(0x15d)]??=-0x1/0x0,_0x5bb3d8[_0x4757ff(0x182)]??=0x0,_0x138951===_0x5bb3d8[_0x4757ff(0x15d)]?(_0x5bb3d8[_0x4757ff(0x182)]++,_0x5bb3d8[_0x4757ff(0x182)]>=0x2710&&(_0x5bb3d8[_0x4757ff(0x191)]=void 0x0,_0x5bb3d8[_0x4757ff(0x182)]=0x0)):_0x138951>_0x5bb3d8[_0x4757ff(0x15d)]?_0x5bb3d8[_0x4757ff(0x182)]=0x0:_0x138951<_0x5bb3d8[_0x4757ff(0x15d)]&&(_0x5bb3d8['node']=void 0x0),_0x5bb3d8[_0x4757ff(0x191)]||(_0x5bb3d8[_0x4757ff(0x191)]=_0x27a0d6[_0x4757ff(0x20b)](0xa,0x10),_0x5bb3d8[_0x4757ff(0x191)][0x0]|=0x1,_0x5bb3d8[_0x4757ff(0x204)]=0x3fff&(_0x27a0d6[0x8]<<0x8|_0x27a0d6[0x9])),_0x5bb3d8[_0x4757ff(0x15d)]=_0x138951,_0x5bb3d8;}function _0x3f28b3(_0x5be52d,_0x2923c8,_0x535534,_0x3e29d8,_0x3abc58,_0x53d088,_0x56a502=0x0){const _0x4f9656=_0x20e855;if(_0x5be52d[_0x4f9656(0x133)]<0x10)throw new Error('Random\x20bytes\x20length\x20must\x20be\x20>=\x2016');if(_0x53d088){if(_0x56a502<0x0||_0x56a502+0x10>_0x53d088[_0x4f9656(0x133)])throw new RangeError(_0x4f9656(0x1fb)+_0x56a502+':'+(_0x56a502+0xf)+'\x20is\x20out\x20of\x20buffer\x20bounds');}else _0x53d088=new Uint8Array(0x10),_0x56a502=0x0;_0x2923c8??=Date['now'](),_0x535534??=0x0,_0x3e29d8??=0x3fff&(_0x5be52d[0x8]<<0x8|_0x5be52d[0x9]),_0x3abc58??=_0x5be52d[_0x4f9656(0x20b)](0xa,0x10);const _0x3bbba7=(0x2710*(0xfffffff&(_0x2923c8+=0xb1d069b5400))+_0x535534)%0x100000000;_0x53d088[_0x56a502++]=_0x3bbba7>>>0x18&0xff,_0x53d088[_0x56a502++]=_0x3bbba7>>>0x10&0xff,_0x53d088[_0x56a502++]=_0x3bbba7>>>0x8&0xff,_0x53d088[_0x56a502++]=0xff&_0x3bbba7;const _0x4debb3=_0x2923c8/0x100000000*0x2710&0xfffffff;_0x53d088[_0x56a502++]=_0x4debb3>>>0x8&0xff,_0x53d088[_0x56a502++]=0xff&_0x4debb3,_0x53d088[_0x56a502++]=_0x4debb3>>>0x18&0xf|0x10,_0x53d088[_0x56a502++]=_0x4debb3>>>0x10&0xff,_0x53d088[_0x56a502++]=_0x3e29d8>>>0x8|0x80,_0x53d088[_0x56a502++]=0xff&_0x3e29d8;for(let _0x599bd4=0x0;_0x599bd4<0x6;++_0x599bd4)_0x53d088[_0x56a502++]=_0x3abc58[_0x599bd4];return _0x53d088;}_0x19455a['updateV1State']=_0x19e2db,_0x19455a[_0x20e855(0x130)]=function _0x2e48f0(_0x3e77fe,_0x51bfd8,_0x4b4d08){const _0x49e1af=_0x20e855;let _0x2af893;const _0xafc6b9=_0x3e77fe?.[_0x49e1af(0x139)]??!0x1;if(_0x3e77fe){const _0x63b339=Object['keys'](_0x3e77fe);0x1===_0x63b339[_0x49e1af(0x133)]&&_0x49e1af(0x139)===_0x63b339[0x0]&&(_0x3e77fe=void 0x0);}if(_0x3e77fe)_0x2af893=_0x3f28b3(_0x3e77fe[_0x49e1af(0x17f)]??_0x3e77fe[_0x49e1af(0x1aa)]?.()??(0x0,_0x50021d[_0x49e1af(0x130)])(),_0x3e77fe[_0x49e1af(0x15d)],_0x3e77fe[_0x49e1af(0x182)],_0x3e77fe['clockseq'],_0x3e77fe[_0x49e1af(0x191)],_0x51bfd8,_0x4b4d08);else{const _0x1bb327=Date['now'](),_0x590baf=(0x0,_0x50021d['default'])();_0x19e2db(_0x518666,_0x1bb327,_0x590baf),_0x2af893=_0x3f28b3(_0x590baf,_0x518666[_0x49e1af(0x15d)],_0x518666[_0x49e1af(0x182)],_0xafc6b9?void 0x0:_0x518666[_0x49e1af(0x204)],_0xafc6b9?void 0x0:_0x518666[_0x49e1af(0x191)],_0x51bfd8,_0x4b4d08);}return _0x51bfd8??(0x0,_0x145f8d['unsafeStringify'])(_0x2af893);};},0x1d1:(_0x396313,_0x4f2c43)=>{const _0x1e8f39=a0_0x13db;Object[_0x1e8f39(0x199)](_0x4f2c43,'__esModule',{'value':!0x0}),_0x4f2c43[_0x1e8f39(0x130)]=_0x1e8f39(0x1fa);},0x22d:(_0x265e6d,_0x490754,_0x57dd7e)=>{const _0x1a530b=a0_0x13db;Object['defineProperty'](_0x490754,_0x1a530b(0x186),{'value':!0x0}),_0x490754[_0x1a530b(0x18d)]=_0x490754[_0x1a530b(0x177)]=void 0x0;const _0x254cf0=_0x57dd7e(0x33d),_0x5272b3=_0x57dd7e(0x3dc);var _0x178444=_0x57dd7e(0x3dc);function _0x3a79b6(_0x123a9c,_0x288175,_0x160385,_0x1ad8cc){const _0x11d1fa=_0x1a530b;return(0x0,_0x5272b3[_0x11d1fa(0x130)])(0x50,_0x254cf0[_0x11d1fa(0x130)],_0x123a9c,_0x288175,_0x160385,_0x1ad8cc);}Object[_0x1a530b(0x199)](_0x490754,'DNS',{'enumerable':!0x0,'get':function(){const _0x9db1=_0x1a530b;return _0x178444[_0x9db1(0x177)];}}),Object[_0x1a530b(0x199)](_0x490754,_0x1a530b(0x18d),{'enumerable':!0x0,'get':function(){const _0x267e26=_0x1a530b;return _0x178444[_0x267e26(0x18d)];}}),_0x3a79b6[_0x1a530b(0x177)]=_0x5272b3[_0x1a530b(0x177)],_0x3a79b6[_0x1a530b(0x18d)]=_0x5272b3[_0x1a530b(0x18d)],_0x490754['default']=_0x3a79b6;},0x238:(_0x5af795,_0x547327,_0x5c2c6e)=>{const _0x23201b=a0_0x13db;Object[_0x23201b(0x199)](_0x547327,'__esModule',{'value':!0x0});const _0x48b680=_0x5c2c6e(0x31d),_0x3c41a4=_0x5c2c6e(0xb);_0x547327[_0x23201b(0x130)]=function _0x10327a(_0x58b305){const _0x4dda83=_0x23201b,_0x54cc5e=function _0x4327ca(_0x1d4435){return Uint8Array['of']((0xf&_0x1d4435[0x6])<<0x4|_0x1d4435[0x7]>>0x4&0xf,(0xf&_0x1d4435[0x7])<<0x4|(0xf0&_0x1d4435[0x4])>>0x4,(0xf&_0x1d4435[0x4])<<0x4|(0xf0&_0x1d4435[0x5])>>0x4,(0xf&_0x1d4435[0x5])<<0x4|(0xf0&_0x1d4435[0x0])>>0x4,(0xf&_0x1d4435[0x0])<<0x4|(0xf0&_0x1d4435[0x1])>>0x4,(0xf&_0x1d4435[0x1])<<0x4|(0xf0&_0x1d4435[0x2])>>0x4,0x60|0xf&_0x1d4435[0x2],_0x1d4435[0x3],_0x1d4435[0x8],_0x1d4435[0x9],_0x1d4435[0xa],_0x1d4435[0xb],_0x1d4435[0xc],_0x1d4435[0xd],_0x1d4435[0xe],_0x1d4435[0xf]);}(_0x4dda83(0x1b7)==typeof _0x58b305?(0x0,_0x48b680[_0x4dda83(0x130)])(_0x58b305):_0x58b305);return _0x4dda83(0x1b7)==typeof _0x58b305?(0x0,_0x3c41a4['unsafeStringify'])(_0x54cc5e):_0x54cc5e;};},0x24f:(_0x2b3d35,_0x433e60,_0x46f0cf)=>{const _0x7ca4d8=a0_0x13db;Object[_0x7ca4d8(0x199)](_0x433e60,'__esModule',{'value':!0x0}),_0x433e60[_0x7ca4d8(0x18d)]=_0x433e60[_0x7ca4d8(0x177)]=void 0x0;const _0xc1b7b2=_0x46f0cf(0x152),_0x4277b0=_0x46f0cf(0x3dc);var _0x5370a6=_0x46f0cf(0x3dc);function _0x43aafe(_0x171c20,_0x5db269,_0x2cef27,_0x12b4d2){const _0x5676ea=_0x7ca4d8;return(0x0,_0x4277b0['default'])(0x30,_0xc1b7b2[_0x5676ea(0x130)],_0x171c20,_0x5db269,_0x2cef27,_0x12b4d2);}Object[_0x7ca4d8(0x199)](_0x433e60,_0x7ca4d8(0x177),{'enumerable':!0x0,'get':function(){return _0x5370a6['DNS'];}}),Object[_0x7ca4d8(0x199)](_0x433e60,_0x7ca4d8(0x18d),{'enumerable':!0x0,'get':function(){return _0x5370a6['URL'];}}),_0x43aafe[_0x7ca4d8(0x177)]=_0x4277b0['DNS'],_0x43aafe[_0x7ca4d8(0x18d)]=_0x4277b0['URL'],_0x433e60['default']=_0x43aafe;},0x2b9:(_0x38ca7e,_0x25c8e8)=>{const _0x6d5023=a0_0x13db;Object[_0x6d5023(0x199)](_0x25c8e8,_0x6d5023(0x186),{'value':!0x0}),_0x25c8e8['default']=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;},0x2ea:(_0x43a40a,_0x28ef3d,_0x4a3589)=>{const _0x1fcc92=a0_0x13db;Object['defineProperty'](_0x28ef3d,_0x1fcc92(0x186),{'value':!0x0});const _0x1998d4=_0x4a3589(0x2b9);_0x28ef3d[_0x1fcc92(0x130)]=function _0x3e2c(_0x2517b8){const _0x3b3abe=_0x1fcc92;return _0x3b3abe(0x1b7)==typeof _0x2517b8&&_0x1998d4[_0x3b3abe(0x130)][_0x3b3abe(0x20d)](_0x2517b8);};},0x302:(_0xa3c9d0,_0x24784f,_0x56c395)=>{const _0x1c45fb=a0_0x13db;Object[_0x1c45fb(0x199)](_0x24784f,_0x1c45fb(0x186),{'value':!0x0});const _0x280c1a=_0x56c395(0x2ea);_0x24784f[_0x1c45fb(0x130)]=function _0x181f57(_0x4847a7){const _0x389fae=_0x1c45fb;if(!(0x0,_0x280c1a['default'])(_0x4847a7))throw TypeError(_0x389fae(0x195));return parseInt(_0x4847a7[_0x389fae(0x20b)](0xe,0xf),0x10);};},0x30b:(_0x5a3efa,_0x31457a)=>{const _0x27719f=a0_0x13db;Object[_0x27719f(0x199)](_0x31457a,_0x27719f(0x186),{'value':!0x0});const _0x21938a=_0x27719f(0x1be)!=typeof crypto&&crypto[_0x27719f(0x1d7)]&&crypto['randomUUID'][_0x27719f(0x173)](crypto);_0x31457a[_0x27719f(0x130)]={'randomUUID':_0x21938a};},0x31d:(_0x2c0990,_0x184b17,_0x55ac2b)=>{const _0x4122f2=a0_0x13db;Object[_0x4122f2(0x199)](_0x184b17,'__esModule',{'value':!0x0});const _0x7685e5=_0x55ac2b(0x2ea);_0x184b17[_0x4122f2(0x130)]=function _0x41d4d0(_0x518c6a){const _0x9083df=_0x4122f2;if(!(0x0,_0x7685e5[_0x9083df(0x130)])(_0x518c6a))throw TypeError('Invalid\x20UUID');let _0x10dea7;return Uint8Array['of']((_0x10dea7=parseInt(_0x518c6a[_0x9083df(0x20b)](0x0,0x8),0x10))>>>0x18,_0x10dea7>>>0x10&0xff,_0x10dea7>>>0x8&0xff,0xff&_0x10dea7,(_0x10dea7=parseInt(_0x518c6a[_0x9083df(0x20b)](0x9,0xd),0x10))>>>0x8,0xff&_0x10dea7,(_0x10dea7=parseInt(_0x518c6a[_0x9083df(0x20b)](0xe,0x12),0x10))>>>0x8,0xff&_0x10dea7,(_0x10dea7=parseInt(_0x518c6a[_0x9083df(0x20b)](0x13,0x17),0x10))>>>0x8,0xff&_0x10dea7,(_0x10dea7=parseInt(_0x518c6a['slice'](0x18,0x24),0x10))/0x10000000000&0xff,_0x10dea7/0x100000000&0xff,_0x10dea7>>>0x18&0xff,_0x10dea7>>>0x10&0xff,_0x10dea7>>>0x8&0xff,0xff&_0x10dea7);};},0x33d:(_0x3c3d18,_0x236596)=>{const _0x299385=a0_0x13db;function _0x40a78c(_0x4dfa55,_0x5708ad,_0x9ced64,_0x1dd356){switch(_0x4dfa55){case 0x0:return _0x5708ad&_0x9ced64^~_0x5708ad&_0x1dd356;case 0x1:case 0x3:return _0x5708ad^_0x9ced64^_0x1dd356;case 0x2:return _0x5708ad&_0x9ced64^_0x5708ad&_0x1dd356^_0x9ced64&_0x1dd356;}}function _0xe83b59(_0x2a1ab9,_0x2883d0){return _0x2a1ab9<<_0x2883d0|_0x2a1ab9>>>0x20-_0x2883d0;}Object[_0x299385(0x199)](_0x236596,'__esModule',{'value':!0x0}),_0x236596[_0x299385(0x130)]=function _0x3b6596(_0x42b4e8){const _0x2735ff=_0x299385,_0x53e261=[0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xca62c1d6],_0x121489=[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0],_0x3fc48a=new Uint8Array(_0x42b4e8[_0x2735ff(0x133)]+0x1);_0x3fc48a[_0x2735ff(0x205)](_0x42b4e8),_0x3fc48a[_0x42b4e8['length']]=0x80;const _0x4dd225=(_0x42b4e8=_0x3fc48a)[_0x2735ff(0x133)]/0x4+0x2,_0x303e1b=Math['ceil'](_0x4dd225/0x10),_0x54fd52=new Array(_0x303e1b);for(let _0xb3de3d=0x0;_0xb3de3d<_0x303e1b;++_0xb3de3d){const _0x4a9d8d=new Uint32Array(0x10);for(let _0x56f400=0x0;_0x56f400<0x10;++_0x56f400)_0x4a9d8d[_0x56f400]=_0x42b4e8[0x40*_0xb3de3d+0x4*_0x56f400]<<0x18|_0x42b4e8[0x40*_0xb3de3d+0x4*_0x56f400+0x1]<<0x10|_0x42b4e8[0x40*_0xb3de3d+0x4*_0x56f400+0x2]<<0x8|_0x42b4e8[0x40*_0xb3de3d+0x4*_0x56f400+0x3];_0x54fd52[_0xb3de3d]=_0x4a9d8d;}_0x54fd52[_0x303e1b-0x1][0xe]=0x8*(_0x42b4e8[_0x2735ff(0x133)]-0x1)/Math[_0x2735ff(0x1e8)](0x2,0x20),_0x54fd52[_0x303e1b-0x1][0xe]=Math['floor'](_0x54fd52[_0x303e1b-0x1][0xe]),_0x54fd52[_0x303e1b-0x1][0xf]=0x8*(_0x42b4e8[_0x2735ff(0x133)]-0x1)&0xffffffff;for(let _0x17a855=0x0;_0x17a855<_0x303e1b;++_0x17a855){const _0xefb387=new Uint32Array(0x50);for(let _0x10167c=0x0;_0x10167c<0x10;++_0x10167c)_0xefb387[_0x10167c]=_0x54fd52[_0x17a855][_0x10167c];for(let _0x5d3576=0x10;_0x5d3576<0x50;++_0x5d3576)_0xefb387[_0x5d3576]=_0xe83b59(_0xefb387[_0x5d3576-0x3]^_0xefb387[_0x5d3576-0x8]^_0xefb387[_0x5d3576-0xe]^_0xefb387[_0x5d3576-0x10],0x1);let _0x1f9879=_0x121489[0x0],_0x4554b3=_0x121489[0x1],_0x1db1ec=_0x121489[0x2],_0x41cb91=_0x121489[0x3],_0x5cdf09=_0x121489[0x4];for(let _0x56eb5b=0x0;_0x56eb5b<0x50;++_0x56eb5b){const _0x224e40=Math['floor'](_0x56eb5b/0x14),_0x5046b5=_0xe83b59(_0x1f9879,0x5)+_0x40a78c(_0x224e40,_0x4554b3,_0x1db1ec,_0x41cb91)+_0x5cdf09+_0x53e261[_0x224e40]+_0xefb387[_0x56eb5b]>>>0x0;_0x5cdf09=_0x41cb91,_0x41cb91=_0x1db1ec,_0x1db1ec=_0xe83b59(_0x4554b3,0x1e)>>>0x0,_0x4554b3=_0x1f9879,_0x1f9879=_0x5046b5;}_0x121489[0x0]=_0x121489[0x0]+_0x1f9879>>>0x0,_0x121489[0x1]=_0x121489[0x1]+_0x4554b3>>>0x0,_0x121489[0x2]=_0x121489[0x2]+_0x1db1ec>>>0x0,_0x121489[0x3]=_0x121489[0x3]+_0x41cb91>>>0x0,_0x121489[0x4]=_0x121489[0x4]+_0x5cdf09>>>0x0;}return Uint8Array['of'](_0x121489[0x0]>>0x18,_0x121489[0x0]>>0x10,_0x121489[0x0]>>0x8,_0x121489[0x0],_0x121489[0x1]>>0x18,_0x121489[0x1]>>0x10,_0x121489[0x1]>>0x8,_0x121489[0x1],_0x121489[0x2]>>0x18,_0x121489[0x2]>>0x10,_0x121489[0x2]>>0x8,_0x121489[0x2],_0x121489[0x3]>>0x18,_0x121489[0x3]>>0x10,_0x121489[0x3]>>0x8,_0x121489[0x3],_0x121489[0x4]>>0x18,_0x121489[0x4]>>0x10,_0x121489[0x4]>>0x8,_0x121489[0x4]);};},0x3dc:(_0x1bb235,_0x24bdf9,_0x5d6b73)=>{const _0x3326b1=a0_0x13db;Object[_0x3326b1(0x199)](_0x24bdf9,_0x3326b1(0x186),{'value':!0x0}),_0x24bdf9['URL']=_0x24bdf9['DNS']=_0x24bdf9[_0x3326b1(0x140)]=void 0x0;const _0x55bd08=_0x5d6b73(0x31d),_0xe4645=_0x5d6b73(0xb);function _0x6e9db2(_0x3f3e2c){const _0x490fea=_0x3326b1;_0x3f3e2c=unescape(encodeURIComponent(_0x3f3e2c));const _0x50de5e=new Uint8Array(_0x3f3e2c[_0x490fea(0x133)]);for(let _0x3119cc=0x0;_0x3119cc<_0x3f3e2c[_0x490fea(0x133)];++_0x3119cc)_0x50de5e[_0x3119cc]=_0x3f3e2c[_0x490fea(0x1ca)](_0x3119cc);return _0x50de5e;}_0x24bdf9['stringToBytes']=_0x6e9db2,_0x24bdf9[_0x3326b1(0x177)]=_0x3326b1(0x210),_0x24bdf9['URL']=_0x3326b1(0x1d0),_0x24bdf9['default']=function _0x3fae37(_0x27e95f,_0x23aabc,_0xad054c,_0xf2e943,_0x4276d4,_0x35935c){const _0x47d816=_0x3326b1,_0x2d80f2=_0x47d816(0x1b7)==typeof _0xad054c?_0x6e9db2(_0xad054c):_0xad054c,_0x5c4f60='string'==typeof _0xf2e943?(0x0,_0x55bd08[_0x47d816(0x130)])(_0xf2e943):_0xf2e943;if(_0x47d816(0x1b7)==typeof _0xf2e943&&(_0xf2e943=(0x0,_0x55bd08['default'])(_0xf2e943)),0x10!==_0xf2e943?.[_0x47d816(0x133)])throw TypeError('Namespace\x20must\x20be\x20array-like\x20(16\x20iterable\x20integer\x20values,\x200-255)');let _0x5277dd=new Uint8Array(0x10+_0x2d80f2[_0x47d816(0x133)]);if(_0x5277dd['set'](_0x5c4f60),_0x5277dd[_0x47d816(0x205)](_0x2d80f2,_0x5c4f60[_0x47d816(0x133)]),_0x5277dd=_0x23aabc(_0x5277dd),_0x5277dd[0x6]=0xf&_0x5277dd[0x6]|_0x27e95f,_0x5277dd[0x8]=0x3f&_0x5277dd[0x8]|0x80,_0x4276d4){_0x35935c=_0x35935c||0x0;for(let _0x4a5d15=0x0;_0x4a5d15<0x10;++_0x4a5d15)_0x4276d4[_0x35935c+_0x4a5d15]=_0x5277dd[_0x4a5d15];return _0x4276d4;}return(0x0,_0xe4645[_0x47d816(0x1b9)])(_0x5277dd);};}},_0x5ccc6b={};function _0x267911(_0x332d26){const _0xe81bf7=a0_0x13db;var _0x4d348f=_0x5ccc6b[_0x332d26];if(void 0x0!==_0x4d348f)return _0x4d348f[_0xe81bf7(0x166)];var _0x5ac46e=_0x5ccc6b[_0x332d26]={'exports':{}};return _0x52856d[_0x332d26](_0x5ac46e,_0x5ac46e[_0xe81bf7(0x166)],_0x267911),_0x5ac46e['exports'];}var _0x315344={};return((()=>{const _0x40549d=a0_0x13db;var _0x309f26=_0x315344;Object['defineProperty'](_0x309f26,_0x40549d(0x186),{'value':!0x0}),_0x309f26[_0x40549d(0x1de)]=void 0x0;var _0x125deb=_0x267911(0x1a7);Object[_0x40549d(0x199)](_0x309f26,_0x40549d(0x1de),{'enumerable':!0x0,'get':function(){const _0xba98c3=_0x40549d;return _0x125deb[_0xba98c3(0x1de)];}});})()),_0x315344;})())));
|
|
1
|
+
function a0_0x3f24(){const _0x4d6961=['.device_id','relative','startBatchProcessing','500','Purchase\x20event\x20queued','trackEvent','textContent','URL','deviceDetails','.custom_attributes','width','ffffffff-ffff-ffff-ffff-ffffffffffff','[OrderSune\x20CRM]','getItem','Initialization\x20failed','processBatch','UUID\x20byte\x20range\x20','__esModule','28OegSdp','body','resolvedOptions','object','Error\x20processing\x20campaign\x20click:','campaignId','6ba7b810-9dad-11d1-80b4-00c04fd430c8','Loaded\x20user\x20profile','192604kkJmQa','appendChild','NIL','purchases','.current_user','Random\x20bytes\x20length\x20must\x20be\x20>=\x2016','×','User\x20data\x20cleared,\x20new\x20device\x20ID\x20generated','initialize','button2','onclick','endpoint','20px','process\x20campaign\x20click\x20dispatched\x20successfully:\x20','Stringified\x20UUID\x20is\x20invalid','contains','src','left','_blank','right','getStoredDeviceId','msecs','flex','/analytics/data','buildPurchasePayload','Invalid\x20UUID','User\x20ID\x20must\x20be\x20a\x20string','backgroundColor','getGuestUserId','userAttributes','alignItems','6pafIZt','8px','isProcessingQueue','undefined','gap','seq','forceSend','DateTimeFormat','default','setToken','WebSDK','createElement','randomUUID','white','00000000-0000-0000-0000-000000000000','140px','webOnClickAction','addEventListener','HTTP\x20error!\x20status:\x20','logClick','Attribute\x20name\x20is\x20required\x20and\x20must\x20be\x20a\x20string','stringify','flexDirection','processCampaignClick','justifyContent','apiKey','DNS','floor','guest_user_','guestUserId','removeItem','getRandomValues','open','replace','inAppImage','padding','borderColor','displayInAppMessage','pointer','0\x204px\x206px\x20rgba(0,\x200,\x200,\x200.1)','2px\x20solid\x20','trim','621QWdgDI','setItem','length','textColor','app_started','Event\x20name\x20is\x20required\x20and\x20must\x20be\x20a\x20string','slice','3029AcRrUw','deeplink_into_app','web','style','none','parse','dismissed','random','zIndex','column','button','100%','now','Batch\x20processing\x20failed','1647228zpGUYR','application/json','validate','display','clockseq','removeChild','getStoredUserProfile','getUserProfile','maxWidth','dismissMessageAutomatically','fontSize','\x20purchases,\x20','6ba7b811-9dad-11d1-80b4-00c04fd430c8','showInAppMessage','sdkVersion','sendBatchToServer','pow','269793kCupiK','closeColor','rgba(0,\x200,\x200,\x200.5)','webOnClickValue','attributeQueue','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','14px','set','toUpperCase','logInAppMessageClick','redirect_to_web_url','updateV1State','deviceId','initializeDeviceDetails','log','height','currentUser','charCodeAt','_v6','batchInterval','unsafeStringify','SDK\x20Initialized','test','\x20is\x20out\x20of\x20buffer\x20bounds','eventQueue','12px','events','boxShadow','1834231vboxaO','storeCustomAttributes','headerColor','clearUserData','9999','SDK\x20not\x20fully\x20initialized,\x20waiting\x20for\x20initialization','updateV7State','logProductPurchase','fixed','maxBatchSize','v1ToV6','color','400px','loadCustomAttributes','Sending\x20batch\x20to\x20server','Namespace\x20must\x20be\x20array-like\x20(16\x20iterable\x20integer\x20values,\x200-255)','string','requestId','debug','modal','bind','API\x20key\x20and\x20endpoint\x20are\x20required','buildCampaignPayload','trackCustomAttribute','queueEvent','center','keys','22px','POST','top','ceil','version','fill','29320vrzYct','button1','batchSize','defineProperty','exports','{\x22name\x22:\x22@ordersune/crm-web-sdk\x22,\x22version\x22:\x221.0.20\x22,\x22main\x22:\x22dist/index.js\x22,\x22types\x22:\x22dist/index.d.ts\x22,\x22publishConfig\x22:{\x22access\x22:\x22public\x22},\x22scripts\x22:{\x22build\x22:\x22npm\x20run\x20build:bundle\x20&&\x20npm\x20run\x20build:types\x22,\x22build:bundle\x22:\x22webpack\x20--config\x20webpack.config.js\x22,\x22build:types\x22:\x22tsc\x20--emitDeclarationOnly\x20--outDir\x20dist\x22,\x22prepare\x22:\x22npm\x20run\x20build\x20&&\x20husky\x22,\x22release\x22:\x22bash\x20-c\x20\x27read\x20-p\x20\x5c\x22Enter\x20OTP\x20from\x20authenticator:\x20\x5c\x22\x20OTP\x20&&\x20GIT_AUTHOR_NAME=\x5c\x22$(git\x20config\x20user.name)\x5c\x22\x20GIT_AUTHOR_EMAIL=\x5c\x22$(git\x20config\x20user.email)\x5c\x22\x20GIT_COMMITTER_NAME=\x5c\x22$(git\x20config\x20user.name)\x5c\x22\x20GIT_COMMITTER_EMAIL=\x5c\x22$(git\x20config\x20user.email)\x5c\x22\x20NPM_CONFIG_OTP=$OTP\x20semantic-release\x20--no-ci\x27\x22,\x22lint:commit\x22:\x22commitlint\x20--edit\x22},\x22files\x22:[\x22dist\x22,\x22README.md\x22],\x22dependencies\x22:{\x22uuid\x22:\x22^11.0.3\x22},\x22devDependencies\x22:{\x22@commitlint/cli\x22:\x22^20.1.0\x22,\x22@commitlint/config-conventional\x22:\x22^20.0.0\x22,\x22@semantic-release/changelog\x22:\x22^6.0.3\x22,\x22@semantic-release/git\x22:\x22^10.0.1\x22,\x22@semantic-release/npm\x22:\x22^13.1.2\x22,\x22@types/uuid\x22:\x22^9.0.0\x22,\x22husky\x22:\x22^9.1.7\x22,\x22javascript-obfuscator\x22:\x22^4.1.1\x22,\x22semantic-release\x22:\x22^25.0.2\x22,\x22terser-webpack-plugin\x22:\x22^5.3.14\x22,\x22ts-loader\x22:\x22^9.5.4\x22,\x22typescript\x22:\x22^5.0.0\x22,\x22webpack\x22:\x22^5.103.0\x22,\x22webpack-cli\x22:\x22^6.0.1\x22,\x22webpack-obfuscator\x22:\x22^3.5.1\x22}}','div','16px','stringToBytes','MAX','100px','margin','push','rng','unshift','storeDeviceId','fontWeight','type','storeUserProfile','batchProcessingInterval','hexToColor','600','OrdersuneCRMWebSDK','Failed\x20to\x20detect\x20timezone','border','target','150015aptAZB','textAlign','borderRadius','nsecs','openWebUrl','Error\x20during\x20disposal','toLowerCase','20hLPEcX','timeZone','Event\x20queued','marginTop','toString','purchaseBatch','background','absolute','status','node','catch','position','timestamp','8px\x200\x2024px\x200','cursor','message'];a0_0x3f24=function(){return _0x4d6961;};return a0_0x3f24();}function a0_0x40ae(_0x2e17f3,_0x4162ed){const _0x3f240c=a0_0x3f24();return a0_0x40ae=function(_0x40aec7,_0x1d75e1){_0x40aec7=_0x40aec7-0x147;let _0x17543d=_0x3f240c[_0x40aec7];return _0x17543d;},a0_0x40ae(_0x2e17f3,_0x4162ed);}(function(_0x5d76bd,_0x113fe7){const _0x451cf4=a0_0x40ae,_0x48e9a0=_0x5d76bd();while(!![]){try{const _0x510d41=-parseInt(_0x451cf4(0x1f4))/0x1+parseInt(_0x451cf4(0x1a4))/0x2+parseInt(_0x451cf4(0x213))/0x3+-parseInt(_0x451cf4(0x19c))/0x4*(-parseInt(_0x451cf4(0x173))/0x5)+parseInt(_0x451cf4(0x1c3))/0x6*(-parseInt(_0x451cf4(0x22f))/0x7)+parseInt(_0x451cf4(0x159))/0x8*(-parseInt(_0x451cf4(0x1ed))/0x9)+parseInt(_0x451cf4(0x17a))/0xa*(parseInt(_0x451cf4(0x202))/0xb);if(_0x510d41===_0x113fe7)break;else _0x48e9a0['push'](_0x48e9a0['shift']());}catch(_0x52c15b){_0x48e9a0['push'](_0x48e9a0['shift']());}}}(a0_0x3f24,0x2b68b),!function webpackUniversalModuleDefinition(_0x173efc,_0x113257){const _0x4f857c=a0_0x40ae;_0x4f857c(0x19f)==typeof exports&&_0x4f857c(0x19f)==typeof module?module[_0x4f857c(0x15d)]=_0x113257():'function'==typeof define&&define['amd']?define('OrdersuneCRMWebSDK',[],_0x113257):'object'==typeof exports?exports['OrdersuneCRMWebSDK']=_0x113257():_0x173efc[_0x4f857c(0x16f)]=_0x113257();}(this,()=>((()=>{'use strict';var _0x50732d={0xb:(_0x23a27c,_0x554fec,_0xf3bc67)=>{const _0x242a74=a0_0x40ae;Object[_0x242a74(0x15c)](_0x554fec,_0x242a74(0x19b),{'value':!0x0}),_0x554fec['unsafeStringify']=void 0x0;const _0x1841de=_0xf3bc67(0x2ea),_0x4714f9=[];for(let _0x4f1917=0x0;_0x4f1917<0x100;++_0x4f1917)_0x4714f9[_0x242a74(0x165)]((_0x4f1917+0x100)[_0x242a74(0x17e)](0x10)['slice'](0x1));function _0x466c82(_0x5b73fc,_0x33dd12=0x0){const _0x2bdee9=_0x242a74;return(_0x4714f9[_0x5b73fc[_0x33dd12+0x0]]+_0x4714f9[_0x5b73fc[_0x33dd12+0x1]]+_0x4714f9[_0x5b73fc[_0x33dd12+0x2]]+_0x4714f9[_0x5b73fc[_0x33dd12+0x3]]+'-'+_0x4714f9[_0x5b73fc[_0x33dd12+0x4]]+_0x4714f9[_0x5b73fc[_0x33dd12+0x5]]+'-'+_0x4714f9[_0x5b73fc[_0x33dd12+0x6]]+_0x4714f9[_0x5b73fc[_0x33dd12+0x7]]+'-'+_0x4714f9[_0x5b73fc[_0x33dd12+0x8]]+_0x4714f9[_0x5b73fc[_0x33dd12+0x9]]+'-'+_0x4714f9[_0x5b73fc[_0x33dd12+0xa]]+_0x4714f9[_0x5b73fc[_0x33dd12+0xb]]+_0x4714f9[_0x5b73fc[_0x33dd12+0xc]]+_0x4714f9[_0x5b73fc[_0x33dd12+0xd]]+_0x4714f9[_0x5b73fc[_0x33dd12+0xe]]+_0x4714f9[_0x5b73fc[_0x33dd12+0xf]])[_0x2bdee9(0x179)]();}_0x554fec[_0x242a74(0x227)]=_0x466c82,_0x554fec[_0x242a74(0x1cb)]=function _0x3c8aa6(_0x32ccd4,_0x1617b4=0x0){const _0x5a14e4=_0x242a74,_0x28cc01=_0x466c82(_0x32ccd4,_0x1617b4);if(!(0x0,_0x1841de['default'])(_0x28cc01))throw TypeError(_0x5a14e4(0x1b2));return _0x28cc01;};},0xb6:(_0x442dcc,_0x3435a4,_0x2d833f)=>{const _0x3ceb7a=a0_0x40ae;Object[_0x3ceb7a(0x15c)](_0x3435a4,_0x3ceb7a(0x19b),{'value':!0x0}),_0x3435a4['version']=_0x3435a4[_0x3ceb7a(0x204)]=_0x3435a4['v7']=_0x3435a4['v6ToV1']=_0x3435a4['v6']=_0x3435a4['v5']=_0x3435a4['v4']=_0x3435a4['v3']=_0x3435a4[_0x3ceb7a(0x239)]=_0x3435a4['v1']=_0x3435a4[_0x3ceb7a(0x1d8)]=_0x3435a4['parse']=_0x3435a4[_0x3ceb7a(0x1a6)]=_0x3435a4[_0x3ceb7a(0x162)]=void 0x0;var _0x3ed2fc=_0x2d833f(0xc4);Object['defineProperty'](_0x3435a4,_0x3ceb7a(0x162),{'enumerable':!0x0,'get':function(){const _0x559eb8=_0x3ceb7a;return _0x3ed2fc[_0x559eb8(0x1cb)];}});var _0x160fa0=_0x2d833f(0x1d1);Object['defineProperty'](_0x3435a4,'NIL',{'enumerable':!0x0,'get':function(){return _0x160fa0['default'];}});var _0x2e7fb9=_0x2d833f(0x31d);Object[_0x3ceb7a(0x15c)](_0x3435a4,_0x3ceb7a(0x1f9),{'enumerable':!0x0,'get':function(){return _0x2e7fb9['default'];}});var _0x2d8b1f=_0x2d833f(0xb);Object[_0x3ceb7a(0x15c)](_0x3435a4,_0x3ceb7a(0x1d8),{'enumerable':!0x0,'get':function(){const _0x5b8a6f=_0x3ceb7a;return _0x2d8b1f[_0x5b8a6f(0x1cb)];}});var _0x47db63=_0x2d833f(0x1a9);Object[_0x3ceb7a(0x15c)](_0x3435a4,'v1',{'enumerable':!0x0,'get':function(){const _0x1d8772=_0x3ceb7a;return _0x47db63[_0x1d8772(0x1cb)];}});var _0x303aed=_0x2d833f(0x238);Object[_0x3ceb7a(0x15c)](_0x3435a4,'v1ToV6',{'enumerable':!0x0,'get':function(){const _0x2893a2=_0x3ceb7a;return _0x303aed[_0x2893a2(0x1cb)];}});var _0x4a6d5c=_0x2d833f(0x24f);Object[_0x3ceb7a(0x15c)](_0x3435a4,'v3',{'enumerable':!0x0,'get':function(){const _0x2188ab=_0x3ceb7a;return _0x4a6d5c[_0x2188ab(0x1cb)];}});var _0x33f274=_0x2d833f(0x11e);Object[_0x3ceb7a(0x15c)](_0x3435a4,'v4',{'enumerable':!0x0,'get':function(){const _0x5b4223=_0x3ceb7a;return _0x33f274[_0x5b4223(0x1cb)];}});var _0x531452=_0x2d833f(0x22d);Object[_0x3ceb7a(0x15c)](_0x3435a4,'v5',{'enumerable':!0x0,'get':function(){return _0x531452['default'];}});var _0x57f96a=_0x2d833f(0x164);Object[_0x3ceb7a(0x15c)](_0x3435a4,'v6',{'enumerable':!0x0,'get':function(){const _0x4c788e=_0x3ceb7a;return _0x57f96a[_0x4c788e(0x1cb)];}});var _0x58a022=_0x2d833f(0x10c);Object[_0x3ceb7a(0x15c)](_0x3435a4,'v6ToV1',{'enumerable':!0x0,'get':function(){const _0x474e9a=_0x3ceb7a;return _0x58a022[_0x474e9a(0x1cb)];}});var _0x346a36=_0x2d833f(0x12b);Object[_0x3ceb7a(0x15c)](_0x3435a4,'v7',{'enumerable':!0x0,'get':function(){const _0x392b1d=_0x3ceb7a;return _0x346a36[_0x392b1d(0x1cb)];}});var _0x4ef031=_0x2d833f(0x2ea);Object[_0x3ceb7a(0x15c)](_0x3435a4,_0x3ceb7a(0x204),{'enumerable':!0x0,'get':function(){const _0x130d01=_0x3ceb7a;return _0x4ef031[_0x130d01(0x1cb)];}});var _0x12d299=_0x2d833f(0x302);Object['defineProperty'](_0x3435a4,_0x3ceb7a(0x157),{'enumerable':!0x0,'get':function(){return _0x12d299['default'];}});},0xc4:(_0x52c3b5,_0x3000f7)=>{const _0x42ea71=a0_0x40ae;Object[_0x42ea71(0x15c)](_0x3000f7,_0x42ea71(0x19b),{'value':!0x0}),_0x3000f7[_0x42ea71(0x1cb)]=_0x42ea71(0x195);},0x10a:(_0x88e4cb,_0x1f62af)=>{const _0x529d38=a0_0x40ae;Object[_0x529d38(0x15c)](_0x1f62af,_0x529d38(0x19b),{'value':!0x0}),_0x1f62af[_0x529d38(0x221)]=void 0x0,_0x1f62af[_0x529d38(0x221)]=(_0x24fbe2,_0x3389b2,..._0x2855ae)=>{const _0xf30dc3=_0x529d38;_0x24fbe2&&console['log'](_0xf30dc3(0x196),_0x3389b2,..._0x2855ae);};},0x10c:(_0x3a0614,_0x3661cf,_0x3216f1)=>{const _0x1f7adf=a0_0x40ae;Object['defineProperty'](_0x3661cf,'__esModule',{'value':!0x0});const _0x5e9581=_0x3216f1(0x31d),_0xc61643=_0x3216f1(0xb);_0x3661cf[_0x1f7adf(0x1cb)]=function _0x197665(_0x2b17c2){const _0x8db979=_0x1f7adf,_0x1e819f=function _0x4ae409(_0x49d62f){return Uint8Array['of']((0xf&_0x49d62f[0x3])<<0x4|_0x49d62f[0x4]>>0x4&0xf,(0xf&_0x49d62f[0x4])<<0x4|(0xf0&_0x49d62f[0x5])>>0x4,(0xf&_0x49d62f[0x5])<<0x4|0xf&_0x49d62f[0x6],_0x49d62f[0x7],(0xf&_0x49d62f[0x1])<<0x4|(0xf0&_0x49d62f[0x2])>>0x4,(0xf&_0x49d62f[0x2])<<0x4|(0xf0&_0x49d62f[0x3])>>0x4,0x10|(0xf0&_0x49d62f[0x0])>>0x4,(0xf&_0x49d62f[0x0])<<0x4|(0xf0&_0x49d62f[0x1])>>0x4,_0x49d62f[0x8],_0x49d62f[0x9],_0x49d62f[0xa],_0x49d62f[0xb],_0x49d62f[0xc],_0x49d62f[0xd],_0x49d62f[0xe],_0x49d62f[0xf]);}(_0x8db979(0x148)==typeof _0x2b17c2?(0x0,_0x5e9581[_0x8db979(0x1cb)])(_0x2b17c2):_0x2b17c2);return _0x8db979(0x148)==typeof _0x2b17c2?(0x0,_0xc61643['unsafeStringify'])(_0x1e819f):_0x1e819f;};},0x11e:(_0x237171,_0x4bcb14,_0x1b3a34)=>{const _0x258657=a0_0x40ae;Object[_0x258657(0x15c)](_0x4bcb14,_0x258657(0x19b),{'value':!0x0});const _0x43d3f4=_0x1b3a34(0x30b),_0x40e78d=_0x1b3a34(0x123),_0x4d8de3=_0x1b3a34(0xb);_0x4bcb14['default']=function _0x4b135d(_0x30c141,_0x6239ad,_0x5ae53f){const _0x205497=_0x258657;if(_0x43d3f4[_0x205497(0x1cb)][_0x205497(0x1cf)]&&!_0x6239ad&&!_0x30c141)return _0x43d3f4[_0x205497(0x1cb)]['randomUUID']();const _0x17a0a8=(_0x30c141=_0x30c141||{})[_0x205497(0x1fb)]??_0x30c141[_0x205497(0x166)]?.()??(0x0,_0x40e78d[_0x205497(0x1cb)])();if(_0x17a0a8[_0x205497(0x1ef)]<0x10)throw new Error(_0x205497(0x1a9));if(_0x17a0a8[0x6]=0xf&_0x17a0a8[0x6]|0x40,_0x17a0a8[0x8]=0x3f&_0x17a0a8[0x8]|0x80,_0x6239ad){if((_0x5ae53f=_0x5ae53f||0x0)<0x0||_0x5ae53f+0x10>_0x6239ad[_0x205497(0x1ef)])throw new RangeError('UUID\x20byte\x20range\x20'+_0x5ae53f+':'+(_0x5ae53f+0xf)+'\x20is\x20out\x20of\x20buffer\x20bounds');for(let _0x402a32=0x0;_0x402a32<0x10;++_0x402a32)_0x6239ad[_0x5ae53f+_0x402a32]=_0x17a0a8[_0x402a32];return _0x6239ad;}return(0x0,_0x4d8de3[_0x205497(0x227)])(_0x17a0a8);};},0x123:(_0x58a1c4,_0x5a982f)=>{const _0xbd4374=a0_0x40ae;let _0x5d24ef;Object['defineProperty'](_0x5a982f,'__esModule',{'value':!0x0});const _0x4aba34=new Uint8Array(0x10);_0x5a982f[_0xbd4374(0x1cb)]=function _0x1dcaca(){const _0x24a4a2=_0xbd4374;if(!_0x5d24ef){if('undefined'==typeof crypto||!crypto[_0x24a4a2(0x1e2)])throw new Error(_0x24a4a2(0x218));_0x5d24ef=crypto[_0x24a4a2(0x1e2)][_0x24a4a2(0x14c)](crypto);}return _0x5d24ef(_0x4aba34);};},0x12b:(_0x50aa93,_0x17d33e,_0x20ea1f)=>{const _0x4545cd=a0_0x40ae;Object[_0x4545cd(0x15c)](_0x17d33e,_0x4545cd(0x19b),{'value':!0x0}),_0x17d33e['updateV7State']=void 0x0;const _0x3b377a=_0x20ea1f(0x123),_0x2af5f2=_0x20ea1f(0xb),_0x1a0835={};function _0x53a86f(_0x14185e,_0x1e6676,_0x5af841){const _0x2d0d6e=_0x4545cd;return _0x14185e[_0x2d0d6e(0x1b9)]??=-0x1/0x0,_0x14185e[_0x2d0d6e(0x1c8)]??=0x0,_0x1e6676>_0x14185e[_0x2d0d6e(0x1b9)]?(_0x14185e['seq']=_0x5af841[0x6]<<0x17|_0x5af841[0x7]<<0x10|_0x5af841[0x8]<<0x8|_0x5af841[0x9],_0x14185e[_0x2d0d6e(0x1b9)]=_0x1e6676):(_0x14185e['seq']=_0x14185e[_0x2d0d6e(0x1c8)]+0x1|0x0,0x0===_0x14185e['seq']&&_0x14185e[_0x2d0d6e(0x1b9)]++),_0x14185e;}function _0x34b8dc(_0x29309d,_0xac04d2,_0x4eb73b,_0x154afe,_0x39c9fd=0x0){const _0x5b3c92=_0x4545cd;if(_0x29309d[_0x5b3c92(0x1ef)]<0x10)throw new Error(_0x5b3c92(0x1a9));if(_0x154afe){if(_0x39c9fd<0x0||_0x39c9fd+0x10>_0x154afe['length'])throw new RangeError(_0x5b3c92(0x19a)+_0x39c9fd+':'+(_0x39c9fd+0xf)+_0x5b3c92(0x22a));}else _0x154afe=new Uint8Array(0x10),_0x39c9fd=0x0;return _0xac04d2??=Date[_0x5b3c92(0x200)](),_0x4eb73b??=0x7f*_0x29309d[0x6]<<0x18|_0x29309d[0x7]<<0x10|_0x29309d[0x8]<<0x8|_0x29309d[0x9],_0x154afe[_0x39c9fd++]=_0xac04d2/0x10000000000&0xff,_0x154afe[_0x39c9fd++]=_0xac04d2/0x100000000&0xff,_0x154afe[_0x39c9fd++]=_0xac04d2/0x1000000&0xff,_0x154afe[_0x39c9fd++]=_0xac04d2/0x10000&0xff,_0x154afe[_0x39c9fd++]=_0xac04d2/0x100&0xff,_0x154afe[_0x39c9fd++]=0xff&_0xac04d2,_0x154afe[_0x39c9fd++]=0x70|_0x4eb73b>>>0x1c&0xf,_0x154afe[_0x39c9fd++]=_0x4eb73b>>>0x14&0xff,_0x154afe[_0x39c9fd++]=0x80|_0x4eb73b>>>0xe&0x3f,_0x154afe[_0x39c9fd++]=_0x4eb73b>>>0x6&0xff,_0x154afe[_0x39c9fd++]=_0x4eb73b<<0x2&0xff|0x3&_0x29309d[0xa],_0x154afe[_0x39c9fd++]=_0x29309d[0xb],_0x154afe[_0x39c9fd++]=_0x29309d[0xc],_0x154afe[_0x39c9fd++]=_0x29309d[0xd],_0x154afe[_0x39c9fd++]=_0x29309d[0xe],_0x154afe[_0x39c9fd++]=_0x29309d[0xf],_0x154afe;}_0x17d33e[_0x4545cd(0x235)]=_0x53a86f,_0x17d33e[_0x4545cd(0x1cb)]=function _0x2e53a8(_0xf73df8,_0x464e6d,_0x3a0fc2){const _0x163bf3=_0x4545cd;let _0x3ff076;if(_0xf73df8)_0x3ff076=_0x34b8dc(_0xf73df8[_0x163bf3(0x1fb)]??_0xf73df8[_0x163bf3(0x166)]?.()??(0x0,_0x3b377a[_0x163bf3(0x1cb)])(),_0xf73df8[_0x163bf3(0x1b9)],_0xf73df8[_0x163bf3(0x1c8)],_0x464e6d,_0x3a0fc2);else{const _0x2dbf77=Date[_0x163bf3(0x200)](),_0x1592c1=(0x0,_0x3b377a[_0x163bf3(0x1cb)])();_0x53a86f(_0x1a0835,_0x2dbf77,_0x1592c1),_0x3ff076=_0x34b8dc(_0x1592c1,_0x1a0835[_0x163bf3(0x1b9)],_0x1a0835['seq'],_0x464e6d,_0x3a0fc2);}return _0x464e6d??(0x0,_0x2af5f2['unsafeStringify'])(_0x3ff076);};},0x14a:_0x3a9243=>{const _0x2e6d63=a0_0x40ae;_0x3a9243[_0x2e6d63(0x15d)]=JSON['parse'](_0x2e6d63(0x15e));},0x152:(_0xfdb10c,_0x2924a3)=>{const _0x121419=a0_0x40ae;function _0x6cc48e(_0xb85ea1){return 0xe+(_0xb85ea1+0x40>>>0x9<<0x4)+0x1;}function _0x5360c0(_0x54342d,_0x1937eb){const _0x17fe91=(0xffff&_0x54342d)+(0xffff&_0x1937eb);return(_0x54342d>>0x10)+(_0x1937eb>>0x10)+(_0x17fe91>>0x10)<<0x10|0xffff&_0x17fe91;}function _0x463c6f(_0x469163,_0x3c8964,_0x16689d,_0x4d3879,_0x2cfe26,_0x878896){return _0x5360c0(function _0x3a83d2(_0x36d556,_0x1f8f9d){return _0x36d556<<_0x1f8f9d|_0x36d556>>>0x20-_0x1f8f9d;}(_0x5360c0(_0x5360c0(_0x3c8964,_0x469163),_0x5360c0(_0x4d3879,_0x878896)),_0x2cfe26),_0x16689d);}function _0x8af238(_0x4d6781,_0x968f1a,_0x2e53dc,_0x4510ca,_0x548f26,_0x413477,_0x4737f5){return _0x463c6f(_0x968f1a&_0x2e53dc|~_0x968f1a&_0x4510ca,_0x4d6781,_0x968f1a,_0x548f26,_0x413477,_0x4737f5);}function _0x102afb(_0x35962a,_0x24fab7,_0x378693,_0x5cd512,_0x3a08d4,_0x51d708,_0x4b6d23){return _0x463c6f(_0x24fab7&_0x5cd512|_0x378693&~_0x5cd512,_0x35962a,_0x24fab7,_0x3a08d4,_0x51d708,_0x4b6d23);}function _0x577ce7(_0xe1f829,_0x7bc285,_0x2bfeca,_0x426dd1,_0x59b3ae,_0x438b77,_0x35c837){return _0x463c6f(_0x7bc285^_0x2bfeca^_0x426dd1,_0xe1f829,_0x7bc285,_0x59b3ae,_0x438b77,_0x35c837);}function _0x231620(_0x5a76b4,_0x2eecf1,_0x547560,_0x15cad9,_0x2ef990,_0x34fcc1,_0x168c8e){return _0x463c6f(_0x547560^(_0x2eecf1|~_0x15cad9),_0x5a76b4,_0x2eecf1,_0x2ef990,_0x34fcc1,_0x168c8e);}Object['defineProperty'](_0x2924a3,_0x121419(0x19b),{'value':!0x0}),_0x2924a3['default']=function _0x121f79(_0x151ac6){return function _0x1c60bb(_0x3e8315){const _0x5de136=a0_0x40ae,_0x45b4be=new Uint8Array(0x4*_0x3e8315[_0x5de136(0x1ef)]);for(let _0x2e9c93=0x0;_0x2e9c93<0x4*_0x3e8315['length'];_0x2e9c93++)_0x45b4be[_0x2e9c93]=_0x3e8315[_0x2e9c93>>0x2]>>>_0x2e9c93%0x4*0x8&0xff;return _0x45b4be;}(function _0x1e5099(_0x50820e,_0x54ea5b){const _0xa0fd53=a0_0x40ae,_0x4a3970=new Uint32Array(_0x6cc48e(_0x54ea5b))[_0xa0fd53(0x158)](0x0);_0x4a3970['set'](_0x50820e),_0x4a3970[_0x54ea5b>>0x5]|=0x80<<_0x54ea5b%0x20,_0x4a3970[_0x4a3970['length']-0x1]=_0x54ea5b,_0x50820e=_0x4a3970;let _0x58fd25=0x67452301,_0xa2e035=-0x10325477,_0x360022=-0x67452302,_0x4fa134=0x10325476;for(let _0x57526a=0x0;_0x57526a<_0x50820e['length'];_0x57526a+=0x10){const _0x40073e=_0x58fd25,_0x489bc3=_0xa2e035,_0x1031c3=_0x360022,_0x1d6547=_0x4fa134;_0x58fd25=_0x8af238(_0x58fd25,_0xa2e035,_0x360022,_0x4fa134,_0x50820e[_0x57526a],0x7,-0x28955b88),_0x4fa134=_0x8af238(_0x4fa134,_0x58fd25,_0xa2e035,_0x360022,_0x50820e[_0x57526a+0x1],0xc,-0x173848aa),_0x360022=_0x8af238(_0x360022,_0x4fa134,_0x58fd25,_0xa2e035,_0x50820e[_0x57526a+0x2],0x11,0x242070db),_0xa2e035=_0x8af238(_0xa2e035,_0x360022,_0x4fa134,_0x58fd25,_0x50820e[_0x57526a+0x3],0x16,-0x3e423112),_0x58fd25=_0x8af238(_0x58fd25,_0xa2e035,_0x360022,_0x4fa134,_0x50820e[_0x57526a+0x4],0x7,-0xa83f051),_0x4fa134=_0x8af238(_0x4fa134,_0x58fd25,_0xa2e035,_0x360022,_0x50820e[_0x57526a+0x5],0xc,0x4787c62a),_0x360022=_0x8af238(_0x360022,_0x4fa134,_0x58fd25,_0xa2e035,_0x50820e[_0x57526a+0x6],0x11,-0x57cfb9ed),_0xa2e035=_0x8af238(_0xa2e035,_0x360022,_0x4fa134,_0x58fd25,_0x50820e[_0x57526a+0x7],0x16,-0x2b96aff),_0x58fd25=_0x8af238(_0x58fd25,_0xa2e035,_0x360022,_0x4fa134,_0x50820e[_0x57526a+0x8],0x7,0x698098d8),_0x4fa134=_0x8af238(_0x4fa134,_0x58fd25,_0xa2e035,_0x360022,_0x50820e[_0x57526a+0x9],0xc,-0x74bb0851),_0x360022=_0x8af238(_0x360022,_0x4fa134,_0x58fd25,_0xa2e035,_0x50820e[_0x57526a+0xa],0x11,-0xa44f),_0xa2e035=_0x8af238(_0xa2e035,_0x360022,_0x4fa134,_0x58fd25,_0x50820e[_0x57526a+0xb],0x16,-0x76a32842),_0x58fd25=_0x8af238(_0x58fd25,_0xa2e035,_0x360022,_0x4fa134,_0x50820e[_0x57526a+0xc],0x7,0x6b901122),_0x4fa134=_0x8af238(_0x4fa134,_0x58fd25,_0xa2e035,_0x360022,_0x50820e[_0x57526a+0xd],0xc,-0x2678e6d),_0x360022=_0x8af238(_0x360022,_0x4fa134,_0x58fd25,_0xa2e035,_0x50820e[_0x57526a+0xe],0x11,-0x5986bc72),_0xa2e035=_0x8af238(_0xa2e035,_0x360022,_0x4fa134,_0x58fd25,_0x50820e[_0x57526a+0xf],0x16,0x49b40821),_0x58fd25=_0x102afb(_0x58fd25,_0xa2e035,_0x360022,_0x4fa134,_0x50820e[_0x57526a+0x1],0x5,-0x9e1da9e),_0x4fa134=_0x102afb(_0x4fa134,_0x58fd25,_0xa2e035,_0x360022,_0x50820e[_0x57526a+0x6],0x9,-0x3fbf4cc0),_0x360022=_0x102afb(_0x360022,_0x4fa134,_0x58fd25,_0xa2e035,_0x50820e[_0x57526a+0xb],0xe,0x265e5a51),_0xa2e035=_0x102afb(_0xa2e035,_0x360022,_0x4fa134,_0x58fd25,_0x50820e[_0x57526a],0x14,-0x16493856),_0x58fd25=_0x102afb(_0x58fd25,_0xa2e035,_0x360022,_0x4fa134,_0x50820e[_0x57526a+0x5],0x5,-0x29d0efa3),_0x4fa134=_0x102afb(_0x4fa134,_0x58fd25,_0xa2e035,_0x360022,_0x50820e[_0x57526a+0xa],0x9,0x2441453),_0x360022=_0x102afb(_0x360022,_0x4fa134,_0x58fd25,_0xa2e035,_0x50820e[_0x57526a+0xf],0xe,-0x275e197f),_0xa2e035=_0x102afb(_0xa2e035,_0x360022,_0x4fa134,_0x58fd25,_0x50820e[_0x57526a+0x4],0x14,-0x182c0438),_0x58fd25=_0x102afb(_0x58fd25,_0xa2e035,_0x360022,_0x4fa134,_0x50820e[_0x57526a+0x9],0x5,0x21e1cde6),_0x4fa134=_0x102afb(_0x4fa134,_0x58fd25,_0xa2e035,_0x360022,_0x50820e[_0x57526a+0xe],0x9,-0x3cc8f82a),_0x360022=_0x102afb(_0x360022,_0x4fa134,_0x58fd25,_0xa2e035,_0x50820e[_0x57526a+0x3],0xe,-0xb2af279),_0xa2e035=_0x102afb(_0xa2e035,_0x360022,_0x4fa134,_0x58fd25,_0x50820e[_0x57526a+0x8],0x14,0x455a14ed),_0x58fd25=_0x102afb(_0x58fd25,_0xa2e035,_0x360022,_0x4fa134,_0x50820e[_0x57526a+0xd],0x5,-0x561c16fb),_0x4fa134=_0x102afb(_0x4fa134,_0x58fd25,_0xa2e035,_0x360022,_0x50820e[_0x57526a+0x2],0x9,-0x3105c08),_0x360022=_0x102afb(_0x360022,_0x4fa134,_0x58fd25,_0xa2e035,_0x50820e[_0x57526a+0x7],0xe,0x676f02d9),_0xa2e035=_0x102afb(_0xa2e035,_0x360022,_0x4fa134,_0x58fd25,_0x50820e[_0x57526a+0xc],0x14,-0x72d5b376),_0x58fd25=_0x577ce7(_0x58fd25,_0xa2e035,_0x360022,_0x4fa134,_0x50820e[_0x57526a+0x5],0x4,-0x5c6be),_0x4fa134=_0x577ce7(_0x4fa134,_0x58fd25,_0xa2e035,_0x360022,_0x50820e[_0x57526a+0x8],0xb,-0x788e097f),_0x360022=_0x577ce7(_0x360022,_0x4fa134,_0x58fd25,_0xa2e035,_0x50820e[_0x57526a+0xb],0x10,0x6d9d6122),_0xa2e035=_0x577ce7(_0xa2e035,_0x360022,_0x4fa134,_0x58fd25,_0x50820e[_0x57526a+0xe],0x17,-0x21ac7f4),_0x58fd25=_0x577ce7(_0x58fd25,_0xa2e035,_0x360022,_0x4fa134,_0x50820e[_0x57526a+0x1],0x4,-0x5b4115bc),_0x4fa134=_0x577ce7(_0x4fa134,_0x58fd25,_0xa2e035,_0x360022,_0x50820e[_0x57526a+0x4],0xb,0x4bdecfa9),_0x360022=_0x577ce7(_0x360022,_0x4fa134,_0x58fd25,_0xa2e035,_0x50820e[_0x57526a+0x7],0x10,-0x944b4a0),_0xa2e035=_0x577ce7(_0xa2e035,_0x360022,_0x4fa134,_0x58fd25,_0x50820e[_0x57526a+0xa],0x17,-0x41404390),_0x58fd25=_0x577ce7(_0x58fd25,_0xa2e035,_0x360022,_0x4fa134,_0x50820e[_0x57526a+0xd],0x4,0x289b7ec6),_0x4fa134=_0x577ce7(_0x4fa134,_0x58fd25,_0xa2e035,_0x360022,_0x50820e[_0x57526a],0xb,-0x155ed806),_0x360022=_0x577ce7(_0x360022,_0x4fa134,_0x58fd25,_0xa2e035,_0x50820e[_0x57526a+0x3],0x10,-0x2b10cf7b),_0xa2e035=_0x577ce7(_0xa2e035,_0x360022,_0x4fa134,_0x58fd25,_0x50820e[_0x57526a+0x6],0x17,0x4881d05),_0x58fd25=_0x577ce7(_0x58fd25,_0xa2e035,_0x360022,_0x4fa134,_0x50820e[_0x57526a+0x9],0x4,-0x262b2fc7),_0x4fa134=_0x577ce7(_0x4fa134,_0x58fd25,_0xa2e035,_0x360022,_0x50820e[_0x57526a+0xc],0xb,-0x1924661b),_0x360022=_0x577ce7(_0x360022,_0x4fa134,_0x58fd25,_0xa2e035,_0x50820e[_0x57526a+0xf],0x10,0x1fa27cf8),_0xa2e035=_0x577ce7(_0xa2e035,_0x360022,_0x4fa134,_0x58fd25,_0x50820e[_0x57526a+0x2],0x17,-0x3b53a99b),_0x58fd25=_0x231620(_0x58fd25,_0xa2e035,_0x360022,_0x4fa134,_0x50820e[_0x57526a],0x6,-0xbd6ddbc),_0x4fa134=_0x231620(_0x4fa134,_0x58fd25,_0xa2e035,_0x360022,_0x50820e[_0x57526a+0x7],0xa,0x432aff97),_0x360022=_0x231620(_0x360022,_0x4fa134,_0x58fd25,_0xa2e035,_0x50820e[_0x57526a+0xe],0xf,-0x546bdc59),_0xa2e035=_0x231620(_0xa2e035,_0x360022,_0x4fa134,_0x58fd25,_0x50820e[_0x57526a+0x5],0x15,-0x36c5fc7),_0x58fd25=_0x231620(_0x58fd25,_0xa2e035,_0x360022,_0x4fa134,_0x50820e[_0x57526a+0xc],0x6,0x655b59c3),_0x4fa134=_0x231620(_0x4fa134,_0x58fd25,_0xa2e035,_0x360022,_0x50820e[_0x57526a+0x3],0xa,-0x70f3336e),_0x360022=_0x231620(_0x360022,_0x4fa134,_0x58fd25,_0xa2e035,_0x50820e[_0x57526a+0xa],0xf,-0x100b83),_0xa2e035=_0x231620(_0xa2e035,_0x360022,_0x4fa134,_0x58fd25,_0x50820e[_0x57526a+0x1],0x15,-0x7a7ba22f),_0x58fd25=_0x231620(_0x58fd25,_0xa2e035,_0x360022,_0x4fa134,_0x50820e[_0x57526a+0x8],0x6,0x6fa87e4f),_0x4fa134=_0x231620(_0x4fa134,_0x58fd25,_0xa2e035,_0x360022,_0x50820e[_0x57526a+0xf],0xa,-0x1d31920),_0x360022=_0x231620(_0x360022,_0x4fa134,_0x58fd25,_0xa2e035,_0x50820e[_0x57526a+0x6],0xf,-0x5cfebcec),_0xa2e035=_0x231620(_0xa2e035,_0x360022,_0x4fa134,_0x58fd25,_0x50820e[_0x57526a+0xd],0x15,0x4e0811a1),_0x58fd25=_0x231620(_0x58fd25,_0xa2e035,_0x360022,_0x4fa134,_0x50820e[_0x57526a+0x4],0x6,-0x8ac817e),_0x4fa134=_0x231620(_0x4fa134,_0x58fd25,_0xa2e035,_0x360022,_0x50820e[_0x57526a+0xb],0xa,-0x42c50dcb),_0x360022=_0x231620(_0x360022,_0x4fa134,_0x58fd25,_0xa2e035,_0x50820e[_0x57526a+0x2],0xf,0x2ad7d2bb),_0xa2e035=_0x231620(_0xa2e035,_0x360022,_0x4fa134,_0x58fd25,_0x50820e[_0x57526a+0x9],0x15,-0x14792c6f),_0x58fd25=_0x5360c0(_0x58fd25,_0x40073e),_0xa2e035=_0x5360c0(_0xa2e035,_0x489bc3),_0x360022=_0x5360c0(_0x360022,_0x1031c3),_0x4fa134=_0x5360c0(_0x4fa134,_0x1d6547);}return Uint32Array['of'](_0x58fd25,_0xa2e035,_0x360022,_0x4fa134);}(function _0x5502a8(_0x251d75){const _0x534e78=a0_0x40ae;if(0x0===_0x251d75[_0x534e78(0x1ef)])return new Uint32Array();const _0x2393c1=new Uint32Array(_0x6cc48e(0x8*_0x251d75[_0x534e78(0x1ef)]))[_0x534e78(0x158)](0x0);for(let _0x4dcc9b=0x0;_0x4dcc9b<_0x251d75['length'];_0x4dcc9b++)_0x2393c1[_0x4dcc9b>>0x2]|=(0xff&_0x251d75[_0x4dcc9b])<<_0x4dcc9b%0x4*0x8;return _0x2393c1;}(_0x151ac6),0x8*_0x151ac6['length']));};},0x164:(_0x2fddf5,_0x39ed65,_0x5b977d)=>{const _0x7dc25d=a0_0x40ae;Object['defineProperty'](_0x39ed65,'__esModule',{'value':!0x0});const _0x1f37ec=_0x5b977d(0xb),_0x4962a3=_0x5b977d(0x1a9),_0x2e7583=_0x5b977d(0x238);_0x39ed65[_0x7dc25d(0x1cb)]=function _0x51b2ce(_0x44819b,_0x26edd7,_0x5e565a){const _0x5a703d=_0x7dc25d;_0x44819b??={},_0x5e565a??=0x0;let _0xa60ec0=(0x0,_0x4962a3[_0x5a703d(0x1cb)])({..._0x44819b,'_v6':!0x0},new Uint8Array(0x10));if(_0xa60ec0=(0x0,_0x2e7583[_0x5a703d(0x1cb)])(_0xa60ec0),_0x26edd7){for(let _0x217a4e=0x0;_0x217a4e<0x10;_0x217a4e++)_0x26edd7[_0x5e565a+_0x217a4e]=_0xa60ec0[_0x217a4e];return _0x26edd7;}return(0x0,_0x1f37ec['unsafeStringify'])(_0xa60ec0);};},0x1a7:(_0x426dd4,_0x4ec9aa,_0x48d1cc)=>{const _0x3ad494=a0_0x40ae;Object[_0x3ad494(0x15c)](_0x4ec9aa,_0x3ad494(0x19b),{'value':!0x0}),_0x4ec9aa[_0x3ad494(0x1cd)]=void 0x0;const _0x20a62a=_0x48d1cc(0x10a),_0x2d6623=_0x48d1cc(0xb6),_0x4aa90b=_0x48d1cc(0x14a),_0x2b7aaa='os.',_0x4f9ba6=_0x4aa90b[_0x3ad494(0x157)];_0x4ec9aa['WebSDK']=class WebSDK{constructor(_0x21e0cf){const _0x87ff28=_0x3ad494;var _0x46db04,_0xd55c6c,_0x1f2f6d;if(this[_0x87ff28(0x238)]=0xa,this[_0x87ff28(0x226)]=0x2710,this['sdkVersion']=_0x4f9ba6,this['eventQueue']=[],this[_0x87ff28(0x17f)]=[],this[_0x87ff28(0x217)]={},this[_0x87ff28(0x1c5)]=!0x1,!_0x21e0cf[_0x87ff28(0x1dc)]||!_0x21e0cf['endpoint'])throw new Error(_0x87ff28(0x14d));this['apiKey']=_0x21e0cf[_0x87ff28(0x1dc)],this[_0x87ff28(0x1af)]=_0x21e0cf['endpoint'],this[_0x87ff28(0x14a)]=null!==(_0x46db04=_0x21e0cf[_0x87ff28(0x14a)])&&void 0x0!==_0x46db04&&_0x46db04,this[_0x87ff28(0x238)]=null!==(_0xd55c6c=_0x21e0cf[_0x87ff28(0x15b)])&&void 0x0!==_0xd55c6c?_0xd55c6c:0xa,this[_0x87ff28(0x226)]=null!==(_0x1f2f6d=_0x21e0cf[_0x87ff28(0x226)])&&void 0x0!==_0x1f2f6d?_0x1f2f6d:0x2710,this[_0x87ff28(0x21f)]=this[_0x87ff28(0x1b8)]()||(0x0,_0x2d6623['v4'])(),this[_0x87ff28(0x1e0)]=this[_0x87ff28(0x1c0)](),this[_0x87ff28(0x1ac)]()[_0x87ff28(0x184)](_0x4839d7=>{const _0x5539a3=_0x87ff28;(0x0,_0x20a62a[_0x5539a3(0x221)])(this['debug'],'Async\x20initialization\x20failed',_0x4839d7);});}async[_0x3ad494(0x1ac)](){const _0x5f2304=_0x3ad494;try{(0x0,_0x20a62a[_0x5f2304(0x221)])(this[_0x5f2304(0x14a)],_0x5f2304(0x228)),this[_0x5f2304(0x168)](),await this[_0x5f2304(0x220)](),await this[_0x5f2304(0x23c)]();const _0x2d886a=this['getStoredUserProfile']();_0x2d886a?(this[_0x5f2304(0x223)]=_0x2d886a,(0x0,_0x20a62a['log'])(this['debug'],_0x5f2304(0x1a3),this[_0x5f2304(0x223)])):this['identify']('');try{const _0xe1fc41=Intl[_0x5f2304(0x1ca)]()[_0x5f2304(0x19e)]()[_0x5f2304(0x17b)];this['trackCustomAttribute']('timezone',_0xe1fc41);}catch(_0x79fa9e){(0x0,_0x20a62a[_0x5f2304(0x221)])(this['debug'],_0x5f2304(0x170),_0x79fa9e);}this[_0x5f2304(0x18c)](),this[_0x5f2304(0x18f)](_0x5f2304(0x1f1),{});}catch(_0x36a578){throw(0x0,_0x20a62a[_0x5f2304(0x221)])(this[_0x5f2304(0x14a)],_0x5f2304(0x198),_0x36a578),_0x36a578;}}['identify'](_0x5d2827){const _0x2fc395=_0x3ad494;if(_0x2fc395(0x148)!=typeof _0x5d2827)throw new Error(_0x2fc395(0x1be));const _0x4db4e2=this[_0x2fc395(0x208)]();(null==_0x4db4e2?void 0x0:_0x4db4e2['id'])!==_0x5d2827&&((0x0,_0x20a62a[_0x2fc395(0x221)])(this[_0x2fc395(0x14a)],'Identifying\x20user',_0x5d2827),this[_0x2fc395(0x223)]=_0x5d2827?{'id':_0x5d2827,'guestUserId':this['guestUserId']}:{'id':this[_0x2fc395(0x1e0)],'guestUserId':this[_0x2fc395(0x1e0)]},this[_0x2fc395(0x16b)]());}[_0x3ad494(0x232)](){const _0x5aa4e3=_0x3ad494;this[_0x5aa4e3(0x21f)]=(0x0,_0x2d6623['v4'])(),this[_0x5aa4e3(0x1e0)]=this[_0x5aa4e3(0x1c0)](),this[_0x5aa4e3(0x220)](),this['currentUser']={'id':this[_0x5aa4e3(0x1e0)],'guestUserId':this['guestUserId']},this[_0x5aa4e3(0x217)]={},this[_0x5aa4e3(0x22b)]=[],this['purchaseBatch']=[],this[_0x5aa4e3(0x168)](),sessionStorage['setItem'](''+_0x2b7aaa+this['apiKey']+_0x5aa4e3(0x1a8),JSON[_0x5aa4e3(0x1d8)](this[_0x5aa4e3(0x223)])),sessionStorage[_0x5aa4e3(0x1e1)](''+_0x2b7aaa+this[_0x5aa4e3(0x1dc)]+_0x5aa4e3(0x193)),this[_0x5aa4e3(0x14a)]&&(0x0,_0x20a62a[_0x5aa4e3(0x221)])(this[_0x5aa4e3(0x14a)],_0x5aa4e3(0x1ab));}['trackEvent'](_0x328681,_0x745f31={},_0x1c8f1c={}){const _0x364f8f=_0x3ad494;if(!_0x328681||_0x364f8f(0x148)!=typeof _0x328681)throw new Error(_0x364f8f(0x1f2));const _0x13cfd5={'deviceId':this[_0x364f8f(0x21f)],'eventName':_0x328681,'timestamp':_0x1c8f1c[_0x364f8f(0x186)]||Date[_0x364f8f(0x200)](),'requestId':_0x1c8f1c[_0x364f8f(0x149)]||(0x0,_0x2d6623['v4'])(),'properties':_0x745f31};this[_0x364f8f(0x150)](_0x13cfd5);}[_0x3ad494(0x1cc)](_0x548090){const _0x22d977=_0x3ad494;this['deviceDetails']&&(this[_0x22d977(0x192)]={...this['deviceDetails'],'pushToken':_0x548090});}[_0x3ad494(0x14f)](_0x3b9c29,_0x4bcd47){const _0x99b1c0=_0x3ad494;if(!_0x3b9c29||'string'!=typeof _0x3b9c29)throw new Error(_0x99b1c0(0x1d7));this[_0x99b1c0(0x217)]={...this['attributeQueue'],[_0x3b9c29]:_0x4bcd47},(0x0,_0x20a62a[_0x99b1c0(0x221)])(this[_0x99b1c0(0x14a)],'Custom\x20attribute\x20queued',_0x3b9c29,_0x4bcd47),this[_0x99b1c0(0x230)]();}[_0x3ad494(0x236)](_0x1419c7,_0x4e5472,_0x844638,_0x2c070f,_0x471df2,_0x238005,_0x2289a3,_0x5c6070){const _0x491906=_0x3ad494,_0x1f35ec=this[_0x491906(0x1bc)]({'externalId':_0x1419c7,'itemId':_0x4e5472,'itemName':_0x844638,'unitPrice':_0x2c070f,'quantity':_0x471df2,'source':_0x238005,'channel':_0x2289a3,'itemCategory':_0x5c6070});this[_0x491906(0x17f)]['push'](_0x1f35ec),this[_0x491906(0x14a)]&&(0x0,_0x20a62a['log'])(this[_0x491906(0x14a)],_0x491906(0x18e),_0x1f35ec);}[_0x3ad494(0x209)](){return this['currentUser'];}async[_0x3ad494(0x1c9)](){const _0x1fe216=_0x3ad494;(this[_0x1fe216(0x22b)]['length']>0x0||this['purchaseBatch'][_0x1fe216(0x1ef)]>0x0||this[_0x1fe216(0x217)][_0x1fe216(0x1ef)]>0x0)&&await this[_0x1fe216(0x199)]();}['dispose'](){const _0x37e8c3=_0x3ad494;this[_0x37e8c3(0x16c)]&&clearInterval(this[_0x37e8c3(0x16c)]),(this['eventQueue']['length']>0x0||this[_0x37e8c3(0x17f)][_0x37e8c3(0x1ef)]>0x0||this['attributeQueue']['length']>0x0)&&this['processBatch']()['catch'](_0xf13e40=>{const _0x440d09=_0x37e8c3;(0x0,_0x20a62a['log'])(this[_0x440d09(0x14a)],_0x440d09(0x178),_0xf13e40);});}[_0x3ad494(0x1b8)](){const _0x38a2bf=_0x3ad494;return sessionStorage[_0x38a2bf(0x197)](''+_0x2b7aaa+this['apiKey']+'.device_id');}[_0x3ad494(0x208)](){const _0x5bee87=_0x3ad494,_0x2efa19=sessionStorage[_0x5bee87(0x197)](''+_0x2b7aaa+this[_0x5bee87(0x1dc)]+_0x5bee87(0x1a8));return _0x2efa19?JSON[_0x5bee87(0x1f9)](_0x2efa19):null;}['storeDeviceId'](){const _0x23705d=_0x3ad494;sessionStorage[_0x23705d(0x1ee)](''+_0x2b7aaa+this[_0x23705d(0x1dc)]+_0x23705d(0x18a),this[_0x23705d(0x21f)]);}[_0x3ad494(0x16b)](){const _0x1c0014=_0x3ad494;this[_0x1c0014(0x223)]&&sessionStorage[_0x1c0014(0x1ee)](''+_0x2b7aaa+this[_0x1c0014(0x1dc)]+'.current_user',JSON[_0x1c0014(0x1d8)](this['currentUser']));}['storeCustomAttributes'](){const _0x45275e=_0x3ad494,_0x5a5ce2=sessionStorage[_0x45275e(0x197)](''+_0x2b7aaa+this[_0x45275e(0x1dc)]+_0x45275e(0x193)),_0x2946f0={..._0x5a5ce2?JSON[_0x45275e(0x1f9)](_0x5a5ce2):{},...this[_0x45275e(0x217)]};sessionStorage[_0x45275e(0x1ee)](''+_0x2b7aaa+this[_0x45275e(0x1dc)]+_0x45275e(0x193),JSON[_0x45275e(0x1d8)](_0x2946f0));}async[_0x3ad494(0x23c)](){const _0x33a5b1=_0x3ad494,_0x55e62d=sessionStorage[_0x33a5b1(0x197)](''+_0x2b7aaa+this['apiKey']+'.custom_attributes');_0x55e62d&&(this[_0x33a5b1(0x217)]={...this[_0x33a5b1(0x217)],...JSON[_0x33a5b1(0x1f9)](_0x55e62d)});}[_0x3ad494(0x1c0)](){const _0x1d08e9=_0x3ad494;return _0x1d08e9(0x1df)+this['deviceId'];}[_0x3ad494(0x1bc)]({externalId:_0x455589,itemId:_0x56fb62,itemName:_0x33a134,unitPrice:_0x367247,quantity:_0x4e8d5d,source:_0x42baff,channel:_0x343ed4,itemCategory:_0x5be333}){const _0x4c3a77=_0x3ad494;return{'external_id':_0x455589,'item_id':_0x56fb62,'item_name':_0x33a134,'item_category':_0x5be333,'quantity':_0x4e8d5d,'unit_price':_0x367247,'total_price':_0x367247*_0x4e8d5d,'source':_0x42baff,'channel':_0x343ed4,'purchased_at':Date[_0x4c3a77(0x200)]()};}async['initializeDeviceDetails'](){const _0x1b4801=_0x3ad494;this['deviceDetails']={'deviceId':this[_0x1b4801(0x21f)],'platform':_0x1b4801(0x1f6)};}[_0x3ad494(0x18c)](){const _0x18f124=_0x3ad494;this[_0x18f124(0x16c)]=setInterval(()=>{const _0x46f08e=_0x18f124;(this['eventQueue']['length']>0x0||this[_0x46f08e(0x17f)]['length']>0x0||this[_0x46f08e(0x217)][_0x46f08e(0x1ef)]>0x0)&&this[_0x46f08e(0x199)]()['catch'](_0x3182df=>{const _0x4c1112=_0x46f08e;(0x0,_0x20a62a[_0x4c1112(0x221)])(this[_0x4c1112(0x14a)],_0x4c1112(0x201),_0x3182df);});},this[_0x18f124(0x226)]);}[_0x3ad494(0x150)](_0x1a5f15){const _0x495722=_0x3ad494;this[_0x495722(0x22b)][_0x495722(0x165)](_0x1a5f15),(0x0,_0x20a62a[_0x495722(0x221)])(this[_0x495722(0x14a)],_0x495722(0x17c),_0x1a5f15),this[_0x495722(0x22b)][_0x495722(0x1ef)]>=this[_0x495722(0x238)]&&this[_0x495722(0x199)]()['catch'](_0x5772d4=>{const _0x2ada1e=_0x495722;(0x0,_0x20a62a[_0x2ada1e(0x221)])(this[_0x2ada1e(0x14a)],_0x2ada1e(0x201),_0x5772d4);});}async['processBatch'](){const _0x3e7e2d=_0x3ad494;if(this[_0x3e7e2d(0x1c5)])return;this[_0x3e7e2d(0x1c5)]=!0x0;const _0x611b56=[...this[_0x3e7e2d(0x22b)]],_0x133cdb=[...this['purchaseBatch']],_0x5e71a1={...this['attributeQueue']};this['eventQueue']=[],this['purchaseBatch']=[],this['attributeQueue']={};try{await this['sendBatchToServer'](_0x611b56,_0x133cdb,_0x5e71a1);}catch(_0x70e93c){throw this[_0x3e7e2d(0x22b)]['unshift'](..._0x611b56),this['purchaseBatch'][_0x3e7e2d(0x167)](..._0x133cdb),this[_0x3e7e2d(0x217)]={...this[_0x3e7e2d(0x217)],..._0x5e71a1},(0x0,_0x20a62a['log'])(this[_0x3e7e2d(0x14a)],'Batch\x20processing\x20failed',_0x70e93c),_0x70e93c;}finally{this['isProcessingQueue']=!0x1;}}async[_0x3ad494(0x211)](_0x130fc8,_0x13254e,_0x3c4c63){const _0x49ddbe=_0x3ad494;var _0x3be2ab,_0x56b4ac;this[_0x49ddbe(0x192)]||await this['initializeDeviceDetails']();const _0xc2ea15={'sdkVersion':this[_0x49ddbe(0x210)],'deviceInfo':this[_0x49ddbe(0x192)],'userId':null===(_0x3be2ab=this[_0x49ddbe(0x223)])||void 0x0===_0x3be2ab?void 0x0:_0x3be2ab['id'],'guestUserId':null===(_0x56b4ac=this['currentUser'])||void 0x0===_0x56b4ac?void 0x0:_0x56b4ac[_0x49ddbe(0x1e0)],'time':Date[_0x49ddbe(0x200)](),'events':_0x130fc8,'purchases':_0x13254e,'userAttributes':_0x3c4c63};(0x0,_0x20a62a[_0x49ddbe(0x221)])(this[_0x49ddbe(0x14a)],_0x49ddbe(0x23d),_0xc2ea15);try{const _0x48c31f=await fetch(this[_0x49ddbe(0x1af)]+_0x49ddbe(0x1bb),{'method':'POST','headers':{'Content-Type':_0x49ddbe(0x203),'x-api-key':this['apiKey']},'body':JSON['stringify'](_0xc2ea15)});if(!_0x48c31f['ok'])throw new Error(_0x49ddbe(0x1d5)+_0x48c31f[_0x49ddbe(0x182)]);this[_0x49ddbe(0x14a)]&&(0x0,_0x20a62a['log'])(this[_0x49ddbe(0x14a)],'Batch\x20dispatched\x20successfully:\x20'+_0xc2ea15[_0x49ddbe(0x22d)]['length']+'\x20events,\x20'+_0xc2ea15[_0x49ddbe(0x1a7)]['length']+_0x49ddbe(0x20d)+Object[_0x49ddbe(0x152)](_0xc2ea15[_0x49ddbe(0x1c1)])[_0x49ddbe(0x1ef)]+'\x20attributes'),await _0x48c31f['json'](),Object['keys'](_0x3c4c63)[_0x49ddbe(0x1ef)]>0x0&&(this[_0x49ddbe(0x217)]={},sessionStorage['removeItem'](''+_0x2b7aaa+this[_0x49ddbe(0x1dc)]+_0x49ddbe(0x193)));}catch(_0x2398b7){throw(0x0,_0x20a62a[_0x49ddbe(0x221)])(this[_0x49ddbe(0x14a)],'Failed\x20to\x20send\x20payload\x20to\x20server',_0x2398b7),_0x2398b7;}}[_0x3ad494(0x1e8)](_0x2895fe,_0x585f86,_0x1d0202){const _0x1da806=_0x3ad494,_0x4b7c76=JSON[_0x1da806(0x1f9)](_0x2895fe),_0x55e892=_0x4b7c76['header'],_0x540a00=_0x4b7c76[_0x1da806(0x189)],_0x172313=_0x4b7c76['modal'][_0x1da806(0x15a)],_0x5ad75c=_0x4b7c76['modal'][_0x1da806(0x1ad)],_0x2893eb=_0x172313[_0x1da806(0x16a)]||'',_0x1fee02=_0x5ad75c[_0x1da806(0x16a)]||'',_0x3849e7=_0x4b7c76['mediaConfig'][_0x1da806(0x1e5)];this[_0x1da806(0x20f)]({'context':_0x1d0202,'title':_0x55e892,'body':_0x540a00,'primaryButtonText':_0x2893eb,'secondaryButtonText':_0x1fee02,'imageUrl':_0x3849e7,'buttonPropertiesPrimary':_0x172313,'buttonPropertiesSecondary':_0x5ad75c,'dismissMessageAutomatically':_0x4b7c76[_0x1da806(0x14b)][_0x1da806(0x20b)],'dismissMessageInSeconds':_0x4b7c76[_0x1da806(0x14b)]['dismissMessageInSeconds'],'headerColor':_0x4b7c76[_0x1da806(0x14b)][_0x1da806(0x231)],'messageColor':_0x4b7c76[_0x1da806(0x14b)]['messageColor'],'closeColor':_0x4b7c76['modal'][_0x1da806(0x214)],'campaignId':_0x585f86});}['hexToColor'](_0x1692f7){const _0xc22eed=_0x3ad494;return 0x6===(_0x1692f7=_0x1692f7[_0xc22eed(0x21b)]()[_0xc22eed(0x1e4)]('#',''))[_0xc22eed(0x1ef)]?'#'+_0x1692f7:'#'+_0x1692f7['substring'](0x2);}[_0x3ad494(0x177)](_0x1de608){const _0x26d91c=_0x3ad494;_0x1de608&&window[_0x26d91c(0x1e3)](_0x1de608,_0x26d91c(0x1b6));}[_0x3ad494(0x20f)](_0xff6bd6){const _0x206b4a=_0x3ad494,{title:_0x1db3fa,body:_0x190c7b,primaryButtonText:_0x5a04f4,secondaryButtonText:_0x13362f,imageUrl:_0x32d70e,onClose:_0x1a3d55,buttonPropertiesPrimary:_0xfaf98e,buttonPropertiesSecondary:_0x123fbd,dismissMessageAutomatically:_0x48c2b3,dismissMessageInSeconds:_0x3a9b9f,headerColor:_0x590df0,messageColor:_0x33c132,closeColor:_0x163848,campaignId:_0x19fc5e}=_0xff6bd6,_0x37b900=document[_0x206b4a(0x1ce)](_0x206b4a(0x15f));_0x37b900[_0x206b4a(0x1f7)][_0x206b4a(0x185)]=_0x206b4a(0x237),_0x37b900[_0x206b4a(0x1f7)][_0x206b4a(0x155)]='0',_0x37b900['style'][_0x206b4a(0x1b5)]='0',_0x37b900[_0x206b4a(0x1f7)][_0x206b4a(0x194)]='100%',_0x37b900[_0x206b4a(0x1f7)][_0x206b4a(0x222)]='100%',_0x37b900[_0x206b4a(0x1f7)]['backgroundColor']=_0x206b4a(0x215),_0x37b900[_0x206b4a(0x1f7)][_0x206b4a(0x205)]=_0x206b4a(0x1ba),_0x37b900[_0x206b4a(0x1f7)][_0x206b4a(0x1db)]=_0x206b4a(0x151),_0x37b900['style'][_0x206b4a(0x1c2)]='center',_0x37b900['style'][_0x206b4a(0x1fc)]=_0x206b4a(0x233);const _0x3d179c=document[_0x206b4a(0x1ce)](_0x206b4a(0x15f));_0x3d179c[_0x206b4a(0x1f7)][_0x206b4a(0x1bf)]=_0x206b4a(0x1d0),_0x3d179c[_0x206b4a(0x1f7)][_0x206b4a(0x175)]=_0x206b4a(0x22c),_0x3d179c[_0x206b4a(0x1f7)]['padding']=_0x206b4a(0x160),_0x3d179c[_0x206b4a(0x1f7)][_0x206b4a(0x20a)]=_0x206b4a(0x23b),_0x3d179c['style'][_0x206b4a(0x194)]='90%',_0x3d179c[_0x206b4a(0x1f7)][_0x206b4a(0x22e)]=_0x206b4a(0x1ea),_0x3d179c[_0x206b4a(0x1f7)]['position']=_0x206b4a(0x18b);const _0x5c94ae=document['createElement'](_0x206b4a(0x1fe));_0x5c94ae['innerHTML']=_0x206b4a(0x1aa),_0x5c94ae[_0x206b4a(0x1f7)]['position']=_0x206b4a(0x181),_0x5c94ae[_0x206b4a(0x1f7)][_0x206b4a(0x155)]=_0x206b4a(0x1c4),_0x5c94ae[_0x206b4a(0x1f7)][_0x206b4a(0x1b7)]=_0x206b4a(0x1c4),_0x5c94ae['style'][_0x206b4a(0x180)]=_0x206b4a(0x1f8),_0x5c94ae['style']['border']=_0x206b4a(0x1f8),_0x5c94ae[_0x206b4a(0x1f7)][_0x206b4a(0x20c)]=_0x206b4a(0x1b0),_0x5c94ae[_0x206b4a(0x1f7)][_0x206b4a(0x188)]=_0x206b4a(0x1e9),_0x5c94ae['style'][_0x206b4a(0x23a)]=this[_0x206b4a(0x16d)](_0x163848),_0x5c94ae[_0x206b4a(0x1ae)]=()=>{const _0x29a191=_0x206b4a;_0x1a3d55&&_0x1a3d55(),this[_0x29a191(0x21c)](_0x19fc5e,!0x1,!0x0,!0x0),document[_0x29a191(0x19d)][_0x29a191(0x207)](_0x37b900);};const _0x58fa5a=document[_0x206b4a(0x1ce)](_0x206b4a(0x15f));if(_0x58fa5a[_0x206b4a(0x1f7)][_0x206b4a(0x205)]='flex',_0x58fa5a[_0x206b4a(0x1f7)][_0x206b4a(0x1d9)]=_0x206b4a(0x1fd),_0x58fa5a['style']['alignItems']=_0x206b4a(0x151),_0x58fa5a[_0x206b4a(0x1f7)][_0x206b4a(0x174)]=_0x206b4a(0x151),_0x32d70e&&''!==_0x32d70e['trim']()){const _0x1545b7=document['createElement']('img');_0x1545b7[_0x206b4a(0x1b4)]=_0x32d70e,_0x1545b7[_0x206b4a(0x1f7)][_0x206b4a(0x194)]=_0x206b4a(0x163),_0x1545b7[_0x206b4a(0x1f7)][_0x206b4a(0x222)]=_0x206b4a(0x163),_0x1545b7['style']['marginBottom']=_0x206b4a(0x160),_0x1545b7['style'][_0x206b4a(0x17d)]='16px',_0x1545b7['onerror']=()=>{const _0x486bab=_0x206b4a;_0x1545b7[_0x486bab(0x1f7)][_0x486bab(0x205)]='none';},_0x58fa5a['appendChild'](_0x1545b7);}const _0x52954f=document['createElement']('h2');_0x52954f['textContent']=_0x1db3fa,_0x52954f[_0x206b4a(0x1f7)][_0x206b4a(0x20c)]=_0x206b4a(0x153),_0x52954f['style']['fontWeight']=_0x206b4a(0x16e),_0x52954f[_0x206b4a(0x1f7)][_0x206b4a(0x23a)]=this[_0x206b4a(0x16d)](_0x590df0),_0x52954f[_0x206b4a(0x1f7)][_0x206b4a(0x164)]='8px\x200',_0x58fa5a[_0x206b4a(0x1a5)](_0x52954f);const _0xaf181d=document[_0x206b4a(0x1ce)]('p');_0xaf181d[_0x206b4a(0x190)]=_0x190c7b,_0xaf181d['style'][_0x206b4a(0x20c)]=_0x206b4a(0x219),_0xaf181d[_0x206b4a(0x1f7)]['color']=this[_0x206b4a(0x16d)](_0x33c132),_0xaf181d[_0x206b4a(0x1f7)][_0x206b4a(0x169)]=_0x206b4a(0x18d),_0xaf181d[_0x206b4a(0x1f7)][_0x206b4a(0x164)]=_0x206b4a(0x187),_0x58fa5a['appendChild'](_0xaf181d);const _0x270f6b=()=>{const _0x3c7f88=_0x206b4a;_0x3c7f88(0x21d)!==_0xfaf98e[_0x3c7f88(0x216)]&&_0x3c7f88(0x1f5)!==_0xfaf98e[_0x3c7f88(0x216)]||this[_0x3c7f88(0x177)](_0xfaf98e['webOnClickAction']||'');},_0x1c0dd8=()=>{const _0x13bb3d=_0x206b4a;_0x13bb3d(0x21d)!==_0x123fbd[_0x13bb3d(0x216)]&&_0x13bb3d(0x1f5)!==_0x123fbd['webOnClickValue']||this[_0x13bb3d(0x177)](_0x123fbd[_0x13bb3d(0x1d3)]||'');},_0x2b3224=document[_0x206b4a(0x1ce)](_0x206b4a(0x15f));if(_0x2b3224['style'][_0x206b4a(0x205)]=_0x206b4a(0x1ba),_0x2b3224[_0x206b4a(0x1f7)][_0x206b4a(0x1db)]=_0x206b4a(0x151),_0x2b3224[_0x206b4a(0x1f7)][_0x206b4a(0x194)]=_0x206b4a(0x1ff),_0x2b3224[_0x206b4a(0x1f7)][_0x206b4a(0x1c7)]=_0x206b4a(0x160),_0x13362f&&''!==_0x13362f['trim']()){const _0x24967e=document[_0x206b4a(0x1ce)](_0x206b4a(0x1fe));_0x24967e['textContent']=_0x5a04f4,_0x24967e[_0x206b4a(0x1f7)][_0x206b4a(0x1ba)]='1',_0x24967e[_0x206b4a(0x1f7)]['maxWidth']='140px',_0x24967e[_0x206b4a(0x1f7)][_0x206b4a(0x1e6)]='12px',_0x24967e[_0x206b4a(0x1f7)][_0x206b4a(0x1bf)]=this[_0x206b4a(0x16d)](_0xfaf98e[_0x206b4a(0x1bf)]),_0x24967e[_0x206b4a(0x1f7)][_0x206b4a(0x23a)]=this[_0x206b4a(0x16d)](_0xfaf98e[_0x206b4a(0x1f0)]),_0x24967e[_0x206b4a(0x1f7)][_0x206b4a(0x171)]=_0x206b4a(0x1eb)+this[_0x206b4a(0x16d)](_0xfaf98e[_0x206b4a(0x1e7)]),_0x24967e[_0x206b4a(0x1f7)]['borderRadius']=_0x206b4a(0x1c4),_0x24967e[_0x206b4a(0x1f7)]['fontSize']=_0x206b4a(0x160),_0x24967e[_0x206b4a(0x1f7)][_0x206b4a(0x169)]=_0x206b4a(0x16e),_0x24967e['style'][_0x206b4a(0x188)]=_0x206b4a(0x1e9),_0x24967e['onclick']=()=>{const _0x7902c=_0x206b4a;document['body'][_0x7902c(0x207)](_0x37b900),_0x270f6b();},_0x2b3224[_0x206b4a(0x1a5)](_0x24967e);const _0x53d1d0=document[_0x206b4a(0x1ce)]('button');_0x53d1d0[_0x206b4a(0x190)]=_0x13362f,_0x53d1d0['style']['flex']='1',_0x53d1d0[_0x206b4a(0x1f7)][_0x206b4a(0x20a)]=_0x206b4a(0x1d2),_0x53d1d0['style'][_0x206b4a(0x1e6)]='12px',_0x53d1d0[_0x206b4a(0x1f7)][_0x206b4a(0x1bf)]=this[_0x206b4a(0x16d)](_0x123fbd[_0x206b4a(0x1bf)]),_0x53d1d0[_0x206b4a(0x1f7)][_0x206b4a(0x23a)]=this[_0x206b4a(0x16d)](_0x123fbd[_0x206b4a(0x1f0)]),_0x53d1d0[_0x206b4a(0x1f7)][_0x206b4a(0x171)]=_0x206b4a(0x1eb)+this['hexToColor'](_0x123fbd[_0x206b4a(0x1e7)]),_0x53d1d0[_0x206b4a(0x1f7)]['borderRadius']=_0x206b4a(0x1c4),_0x53d1d0['style'][_0x206b4a(0x20c)]=_0x206b4a(0x160),_0x53d1d0[_0x206b4a(0x1f7)]['fontWeight']=_0x206b4a(0x16e),_0x53d1d0[_0x206b4a(0x1f7)][_0x206b4a(0x188)]=_0x206b4a(0x1e9),_0x53d1d0['onclick']=()=>{const _0x5bf841=_0x206b4a;document['body'][_0x5bf841(0x207)](_0x37b900),this[_0x5bf841(0x21c)](_0x19fc5e,!0x0,!0x0,!0x1),_0x1c0dd8();},_0x2b3224[_0x206b4a(0x1a5)](_0x53d1d0);}else{if(_0x5a04f4&&''!==_0x5a04f4[_0x206b4a(0x1ec)]()){const _0x432fd8=document['createElement']('button');_0x432fd8[_0x206b4a(0x190)]=_0x5a04f4,_0x432fd8['style'][_0x206b4a(0x194)]='100%',_0x432fd8[_0x206b4a(0x1f7)][_0x206b4a(0x1e6)]=_0x206b4a(0x22c),_0x432fd8[_0x206b4a(0x1f7)][_0x206b4a(0x1bf)]=this['hexToColor'](_0xfaf98e[_0x206b4a(0x1bf)]),_0x432fd8['style'][_0x206b4a(0x23a)]=this['hexToColor'](_0xfaf98e[_0x206b4a(0x1f0)]),_0x432fd8['style'][_0x206b4a(0x171)]=_0x206b4a(0x1eb)+this[_0x206b4a(0x16d)](_0xfaf98e[_0x206b4a(0x1e7)]),_0x432fd8['style'][_0x206b4a(0x175)]=_0x206b4a(0x1c4),_0x432fd8[_0x206b4a(0x1f7)][_0x206b4a(0x20c)]=_0x206b4a(0x160),_0x432fd8[_0x206b4a(0x1f7)][_0x206b4a(0x169)]=_0x206b4a(0x16e),_0x432fd8[_0x206b4a(0x1f7)][_0x206b4a(0x188)]=_0x206b4a(0x1e9),_0x432fd8['onclick']=()=>{const _0xf7b660=_0x206b4a;document['body'][_0xf7b660(0x207)](_0x37b900),this['logInAppMessageClick'](_0x19fc5e,!0x0,!0x0,!0x1),_0x270f6b();},_0x2b3224[_0x206b4a(0x1a5)](_0x432fd8);}}_0x3d179c['appendChild'](_0x5c94ae),_0x3d179c[_0x206b4a(0x1a5)](_0x58fa5a),_0x58fa5a[_0x206b4a(0x1a5)](_0x2b3224),_0x37b900[_0x206b4a(0x1a5)](_0x3d179c),document[_0x206b4a(0x19d)][_0x206b4a(0x1a5)](_0x37b900),_0x48c2b3&&setTimeout(()=>{const _0x38180b=_0x206b4a;document[_0x38180b(0x19d)][_0x38180b(0x1b3)](_0x37b900)&&document['body']['removeChild'](_0x37b900);},0x3e8*parseInt(_0x3a9b9f)),_0x37b900[_0x206b4a(0x1d4)]('click',_0x5c75fe=>{const _0x3099d1=_0x206b4a;_0x5c75fe[_0x3099d1(0x172)]===_0x37b900&&document[_0x3099d1(0x19d)][_0x3099d1(0x207)](_0x37b900);});}async[_0x3ad494(0x21c)](_0x4a55e8,_0x2c4ccd,_0x40efcc,_0x3856c2){const _0x3e667d=await this['buildCampaignPayload'](_0x4a55e8,_0x40efcc,_0x2c4ccd,_0x3856c2);await this['processCampaignClick'](_0x3e667d);}async[_0x3ad494(0x1d6)](_0x255a91){const _0x21301a=_0x3ad494;this[_0x21301a(0x223)]&&this[_0x21301a(0x192)]||((0x0,_0x20a62a[_0x21301a(0x221)])(this[_0x21301a(0x14a)],_0x21301a(0x234)),await this['initialize']()),(this['eventQueue'][_0x21301a(0x1ef)]>0x0||this[_0x21301a(0x17f)]['length']>0x0||Object[_0x21301a(0x152)](this['attributeQueue'])[_0x21301a(0x1ef)]>0x0)&&await this[_0x21301a(0x1c9)]();const _0x11db5a=await this[_0x21301a(0x14e)](_0x255a91,!0x0,!0x0);await this[_0x21301a(0x1da)](_0x11db5a);}async['processCampaignClick'](_0x232e04){const _0xf05200=_0x3ad494;try{const _0xeaa41e=await fetch(this['endpoint']+'/analytics/clicks',{'method':_0xf05200(0x154),'headers':{'Content-Type':_0xf05200(0x203),'x-api-key':this['apiKey']},'body':JSON[_0xf05200(0x1d8)](_0x232e04)});if(!_0xeaa41e['ok'])throw new Error(_0xf05200(0x1d5)+_0xeaa41e[_0xf05200(0x182)]);this[_0xf05200(0x14a)]&&(0x0,_0x20a62a[_0xf05200(0x221)])(this['debug'],_0xf05200(0x1b1)+_0x232e04[_0xf05200(0x1a1)]);}catch(_0x2b5d4){throw(0x0,_0x20a62a[_0xf05200(0x221)])(this['debug'],_0xf05200(0x1a0),_0x2b5d4),_0x2b5d4;}}async[_0x3ad494(0x14e)](_0x40df0d,_0x5f52cb,_0x1581da,_0xb0c9ff){const _0x2a387b=_0x3ad494,_0x57fdc9=Date[_0x2a387b(0x200)](),_0x49234b={'campaignId':_0x40df0d,'opened':_0x5f52cb,'clicked':_0x1581da,'deviceId':this[_0x2a387b(0x21f)],'timestamp':_0x57fdc9};return void 0x0!==_0xb0c9ff&&(_0x49234b[_0x2a387b(0x1fa)]=_0xb0c9ff),_0x49234b;}};},0x1a9:(_0x36b478,_0x40cd57,_0x710a5)=>{const _0x43001e=a0_0x40ae;Object[_0x43001e(0x15c)](_0x40cd57,_0x43001e(0x19b),{'value':!0x0}),_0x40cd57[_0x43001e(0x21e)]=void 0x0;const _0x2f9519=_0x710a5(0x123),_0x3a8611=_0x710a5(0xb),_0x1b260a={};function _0x3bb3ed(_0x3a6371,_0x3568fa,_0x238c86){const _0x13d132=_0x43001e;return _0x3a6371[_0x13d132(0x1b9)]??=-0x1/0x0,_0x3a6371[_0x13d132(0x176)]??=0x0,_0x3568fa===_0x3a6371[_0x13d132(0x1b9)]?(_0x3a6371[_0x13d132(0x176)]++,_0x3a6371[_0x13d132(0x176)]>=0x2710&&(_0x3a6371[_0x13d132(0x183)]=void 0x0,_0x3a6371[_0x13d132(0x176)]=0x0)):_0x3568fa>_0x3a6371[_0x13d132(0x1b9)]?_0x3a6371['nsecs']=0x0:_0x3568fa<_0x3a6371[_0x13d132(0x1b9)]&&(_0x3a6371[_0x13d132(0x183)]=void 0x0),_0x3a6371['node']||(_0x3a6371[_0x13d132(0x183)]=_0x238c86[_0x13d132(0x1f3)](0xa,0x10),_0x3a6371[_0x13d132(0x183)][0x0]|=0x1,_0x3a6371[_0x13d132(0x206)]=0x3fff&(_0x238c86[0x8]<<0x8|_0x238c86[0x9])),_0x3a6371[_0x13d132(0x1b9)]=_0x3568fa,_0x3a6371;}function _0x37c69c(_0x255b51,_0xeda9dd,_0x11a79d,_0x4d46e5,_0x1a7677,_0x42c347,_0x5d953c=0x0){const _0x1a83ce=_0x43001e;if(_0x255b51[_0x1a83ce(0x1ef)]<0x10)throw new Error('Random\x20bytes\x20length\x20must\x20be\x20>=\x2016');if(_0x42c347){if(_0x5d953c<0x0||_0x5d953c+0x10>_0x42c347[_0x1a83ce(0x1ef)])throw new RangeError('UUID\x20byte\x20range\x20'+_0x5d953c+':'+(_0x5d953c+0xf)+'\x20is\x20out\x20of\x20buffer\x20bounds');}else _0x42c347=new Uint8Array(0x10),_0x5d953c=0x0;_0xeda9dd??=Date[_0x1a83ce(0x200)](),_0x11a79d??=0x0,_0x4d46e5??=0x3fff&(_0x255b51[0x8]<<0x8|_0x255b51[0x9]),_0x1a7677??=_0x255b51[_0x1a83ce(0x1f3)](0xa,0x10);const _0x23126a=(0x2710*(0xfffffff&(_0xeda9dd+=0xb1d069b5400))+_0x11a79d)%0x100000000;_0x42c347[_0x5d953c++]=_0x23126a>>>0x18&0xff,_0x42c347[_0x5d953c++]=_0x23126a>>>0x10&0xff,_0x42c347[_0x5d953c++]=_0x23126a>>>0x8&0xff,_0x42c347[_0x5d953c++]=0xff&_0x23126a;const _0x1a0882=_0xeda9dd/0x100000000*0x2710&0xfffffff;_0x42c347[_0x5d953c++]=_0x1a0882>>>0x8&0xff,_0x42c347[_0x5d953c++]=0xff&_0x1a0882,_0x42c347[_0x5d953c++]=_0x1a0882>>>0x18&0xf|0x10,_0x42c347[_0x5d953c++]=_0x1a0882>>>0x10&0xff,_0x42c347[_0x5d953c++]=_0x4d46e5>>>0x8|0x80,_0x42c347[_0x5d953c++]=0xff&_0x4d46e5;for(let _0x59b6f9=0x0;_0x59b6f9<0x6;++_0x59b6f9)_0x42c347[_0x5d953c++]=_0x1a7677[_0x59b6f9];return _0x42c347;}_0x40cd57[_0x43001e(0x21e)]=_0x3bb3ed,_0x40cd57[_0x43001e(0x1cb)]=function _0x4ec991(_0x167a24,_0x5531ac,_0x311332){const _0x1371ab=_0x43001e;let _0x34f5bd;const _0x4ae6c4=_0x167a24?.[_0x1371ab(0x225)]??!0x1;if(_0x167a24){const _0x4f3859=Object[_0x1371ab(0x152)](_0x167a24);0x1===_0x4f3859[_0x1371ab(0x1ef)]&&_0x1371ab(0x225)===_0x4f3859[0x0]&&(_0x167a24=void 0x0);}if(_0x167a24)_0x34f5bd=_0x37c69c(_0x167a24[_0x1371ab(0x1fb)]??_0x167a24[_0x1371ab(0x166)]?.()??(0x0,_0x2f9519[_0x1371ab(0x1cb)])(),_0x167a24[_0x1371ab(0x1b9)],_0x167a24['nsecs'],_0x167a24[_0x1371ab(0x206)],_0x167a24[_0x1371ab(0x183)],_0x5531ac,_0x311332);else{const _0x540015=Date[_0x1371ab(0x200)](),_0x49a769=(0x0,_0x2f9519[_0x1371ab(0x1cb)])();_0x3bb3ed(_0x1b260a,_0x540015,_0x49a769),_0x34f5bd=_0x37c69c(_0x49a769,_0x1b260a[_0x1371ab(0x1b9)],_0x1b260a['nsecs'],_0x4ae6c4?void 0x0:_0x1b260a[_0x1371ab(0x206)],_0x4ae6c4?void 0x0:_0x1b260a['node'],_0x5531ac,_0x311332);}return _0x5531ac??(0x0,_0x3a8611[_0x1371ab(0x227)])(_0x34f5bd);};},0x1d1:(_0x25df34,_0x28b8b8)=>{const _0x3c2d13=a0_0x40ae;Object[_0x3c2d13(0x15c)](_0x28b8b8,_0x3c2d13(0x19b),{'value':!0x0}),_0x28b8b8[_0x3c2d13(0x1cb)]=_0x3c2d13(0x1d1);},0x22d:(_0x5044a9,_0x5c8202,_0x2d8c62)=>{const _0xc656fe=a0_0x40ae;Object[_0xc656fe(0x15c)](_0x5c8202,_0xc656fe(0x19b),{'value':!0x0}),_0x5c8202[_0xc656fe(0x191)]=_0x5c8202['DNS']=void 0x0;const _0x5ca6cc=_0x2d8c62(0x33d),_0xa69076=_0x2d8c62(0x3dc);var _0x257e20=_0x2d8c62(0x3dc);function _0x641ed5(_0x5b55d6,_0x3027a0,_0x2fdab8,_0xb84b43){const _0x1868ea=_0xc656fe;return(0x0,_0xa69076[_0x1868ea(0x1cb)])(0x50,_0x5ca6cc[_0x1868ea(0x1cb)],_0x5b55d6,_0x3027a0,_0x2fdab8,_0xb84b43);}Object[_0xc656fe(0x15c)](_0x5c8202,_0xc656fe(0x1dd),{'enumerable':!0x0,'get':function(){const _0x2db0c0=_0xc656fe;return _0x257e20[_0x2db0c0(0x1dd)];}}),Object[_0xc656fe(0x15c)](_0x5c8202,_0xc656fe(0x191),{'enumerable':!0x0,'get':function(){const _0x617ef5=_0xc656fe;return _0x257e20[_0x617ef5(0x191)];}}),_0x641ed5['DNS']=_0xa69076[_0xc656fe(0x1dd)],_0x641ed5[_0xc656fe(0x191)]=_0xa69076['URL'],_0x5c8202[_0xc656fe(0x1cb)]=_0x641ed5;},0x238:(_0x12ce71,_0x2e3708,_0xcd5bd6)=>{const _0x3009ef=a0_0x40ae;Object[_0x3009ef(0x15c)](_0x2e3708,_0x3009ef(0x19b),{'value':!0x0});const _0x6844d0=_0xcd5bd6(0x31d),_0x238d9b=_0xcd5bd6(0xb);_0x2e3708[_0x3009ef(0x1cb)]=function _0x369442(_0x49d56a){const _0x102c9f=_0x3009ef,_0x173d19=function _0x116ba2(_0x3f1cef){return Uint8Array['of']((0xf&_0x3f1cef[0x6])<<0x4|_0x3f1cef[0x7]>>0x4&0xf,(0xf&_0x3f1cef[0x7])<<0x4|(0xf0&_0x3f1cef[0x4])>>0x4,(0xf&_0x3f1cef[0x4])<<0x4|(0xf0&_0x3f1cef[0x5])>>0x4,(0xf&_0x3f1cef[0x5])<<0x4|(0xf0&_0x3f1cef[0x0])>>0x4,(0xf&_0x3f1cef[0x0])<<0x4|(0xf0&_0x3f1cef[0x1])>>0x4,(0xf&_0x3f1cef[0x1])<<0x4|(0xf0&_0x3f1cef[0x2])>>0x4,0x60|0xf&_0x3f1cef[0x2],_0x3f1cef[0x3],_0x3f1cef[0x8],_0x3f1cef[0x9],_0x3f1cef[0xa],_0x3f1cef[0xb],_0x3f1cef[0xc],_0x3f1cef[0xd],_0x3f1cef[0xe],_0x3f1cef[0xf]);}(_0x102c9f(0x148)==typeof _0x49d56a?(0x0,_0x6844d0['default'])(_0x49d56a):_0x49d56a);return _0x102c9f(0x148)==typeof _0x49d56a?(0x0,_0x238d9b[_0x102c9f(0x227)])(_0x173d19):_0x173d19;};},0x24f:(_0x1b5c93,_0x242aab,_0xd4170d)=>{const _0x152584=a0_0x40ae;Object['defineProperty'](_0x242aab,_0x152584(0x19b),{'value':!0x0}),_0x242aab[_0x152584(0x191)]=_0x242aab[_0x152584(0x1dd)]=void 0x0;const _0xa2dbf1=_0xd4170d(0x152),_0x2e9197=_0xd4170d(0x3dc);var _0x431985=_0xd4170d(0x3dc);function _0x4d5b85(_0x5eaeaf,_0x39dcbc,_0x58340c,_0x520144){const _0x4cae5c=_0x152584;return(0x0,_0x2e9197[_0x4cae5c(0x1cb)])(0x30,_0xa2dbf1[_0x4cae5c(0x1cb)],_0x5eaeaf,_0x39dcbc,_0x58340c,_0x520144);}Object[_0x152584(0x15c)](_0x242aab,_0x152584(0x1dd),{'enumerable':!0x0,'get':function(){const _0x429120=_0x152584;return _0x431985[_0x429120(0x1dd)];}}),Object['defineProperty'](_0x242aab,_0x152584(0x191),{'enumerable':!0x0,'get':function(){return _0x431985['URL'];}}),_0x4d5b85[_0x152584(0x1dd)]=_0x2e9197[_0x152584(0x1dd)],_0x4d5b85[_0x152584(0x191)]=_0x2e9197[_0x152584(0x191)],_0x242aab[_0x152584(0x1cb)]=_0x4d5b85;},0x2b9:(_0x16e1f4,_0xa97c66)=>{const _0x1f2434=a0_0x40ae;Object[_0x1f2434(0x15c)](_0xa97c66,'__esModule',{'value':!0x0}),_0xa97c66[_0x1f2434(0x1cb)]=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;},0x2ea:(_0x524259,_0x3c449d,_0x4fdd15)=>{const _0x3b7168=a0_0x40ae;Object[_0x3b7168(0x15c)](_0x3c449d,_0x3b7168(0x19b),{'value':!0x0});const _0x16736c=_0x4fdd15(0x2b9);_0x3c449d[_0x3b7168(0x1cb)]=function _0x293b17(_0x1a56cd){const _0x238f5c=_0x3b7168;return _0x238f5c(0x148)==typeof _0x1a56cd&&_0x16736c[_0x238f5c(0x1cb)][_0x238f5c(0x229)](_0x1a56cd);};},0x302:(_0x46c3b2,_0x218c43,_0x88a3e)=>{const _0x542b20=a0_0x40ae;Object[_0x542b20(0x15c)](_0x218c43,_0x542b20(0x19b),{'value':!0x0});const _0x5ab4d1=_0x88a3e(0x2ea);_0x218c43[_0x542b20(0x1cb)]=function _0xbb1efc(_0xc28c8a){const _0x379f05=_0x542b20;if(!(0x0,_0x5ab4d1[_0x379f05(0x1cb)])(_0xc28c8a))throw TypeError(_0x379f05(0x1bd));return parseInt(_0xc28c8a[_0x379f05(0x1f3)](0xe,0xf),0x10);};},0x30b:(_0xc796d9,_0x3888d6)=>{const _0x189166=a0_0x40ae;Object['defineProperty'](_0x3888d6,'__esModule',{'value':!0x0});const _0x46e9aa=_0x189166(0x1c6)!=typeof crypto&&crypto[_0x189166(0x1cf)]&&crypto[_0x189166(0x1cf)]['bind'](crypto);_0x3888d6['default']={'randomUUID':_0x46e9aa};},0x31d:(_0x4234fd,_0x268243,_0x31ffaf)=>{Object['defineProperty'](_0x268243,'__esModule',{'value':!0x0});const _0x6cb7f2=_0x31ffaf(0x2ea);_0x268243['default']=function _0x570447(_0x3ad946){const _0x378b2f=a0_0x40ae;if(!(0x0,_0x6cb7f2[_0x378b2f(0x1cb)])(_0x3ad946))throw TypeError(_0x378b2f(0x1bd));let _0x5f43c9;return Uint8Array['of']((_0x5f43c9=parseInt(_0x3ad946[_0x378b2f(0x1f3)](0x0,0x8),0x10))>>>0x18,_0x5f43c9>>>0x10&0xff,_0x5f43c9>>>0x8&0xff,0xff&_0x5f43c9,(_0x5f43c9=parseInt(_0x3ad946[_0x378b2f(0x1f3)](0x9,0xd),0x10))>>>0x8,0xff&_0x5f43c9,(_0x5f43c9=parseInt(_0x3ad946['slice'](0xe,0x12),0x10))>>>0x8,0xff&_0x5f43c9,(_0x5f43c9=parseInt(_0x3ad946[_0x378b2f(0x1f3)](0x13,0x17),0x10))>>>0x8,0xff&_0x5f43c9,(_0x5f43c9=parseInt(_0x3ad946[_0x378b2f(0x1f3)](0x18,0x24),0x10))/0x10000000000&0xff,_0x5f43c9/0x100000000&0xff,_0x5f43c9>>>0x18&0xff,_0x5f43c9>>>0x10&0xff,_0x5f43c9>>>0x8&0xff,0xff&_0x5f43c9);};},0x33d:(_0x111579,_0x48d2d4)=>{const _0x2203fa=a0_0x40ae;function _0x5bd433(_0x6ab4af,_0x45ec92,_0x119b0d,_0x37f243){switch(_0x6ab4af){case 0x0:return _0x45ec92&_0x119b0d^~_0x45ec92&_0x37f243;case 0x1:case 0x3:return _0x45ec92^_0x119b0d^_0x37f243;case 0x2:return _0x45ec92&_0x119b0d^_0x45ec92&_0x37f243^_0x119b0d&_0x37f243;}}function _0x402ba0(_0x162da3,_0x1b5036){return _0x162da3<<_0x1b5036|_0x162da3>>>0x20-_0x1b5036;}Object[_0x2203fa(0x15c)](_0x48d2d4,_0x2203fa(0x19b),{'value':!0x0}),_0x48d2d4[_0x2203fa(0x1cb)]=function _0x204641(_0x3908e4){const _0xede3a8=_0x2203fa,_0x1202bf=[0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xca62c1d6],_0x4198b8=[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0],_0x790efa=new Uint8Array(_0x3908e4[_0xede3a8(0x1ef)]+0x1);_0x790efa[_0xede3a8(0x21a)](_0x3908e4),_0x790efa[_0x3908e4[_0xede3a8(0x1ef)]]=0x80;const _0x14a295=(_0x3908e4=_0x790efa)['length']/0x4+0x2,_0x4dc6a1=Math[_0xede3a8(0x156)](_0x14a295/0x10),_0x2c253a=new Array(_0x4dc6a1);for(let _0x4c4ed5=0x0;_0x4c4ed5<_0x4dc6a1;++_0x4c4ed5){const _0x34657a=new Uint32Array(0x10);for(let _0x598fae=0x0;_0x598fae<0x10;++_0x598fae)_0x34657a[_0x598fae]=_0x3908e4[0x40*_0x4c4ed5+0x4*_0x598fae]<<0x18|_0x3908e4[0x40*_0x4c4ed5+0x4*_0x598fae+0x1]<<0x10|_0x3908e4[0x40*_0x4c4ed5+0x4*_0x598fae+0x2]<<0x8|_0x3908e4[0x40*_0x4c4ed5+0x4*_0x598fae+0x3];_0x2c253a[_0x4c4ed5]=_0x34657a;}_0x2c253a[_0x4dc6a1-0x1][0xe]=0x8*(_0x3908e4[_0xede3a8(0x1ef)]-0x1)/Math[_0xede3a8(0x212)](0x2,0x20),_0x2c253a[_0x4dc6a1-0x1][0xe]=Math[_0xede3a8(0x1de)](_0x2c253a[_0x4dc6a1-0x1][0xe]),_0x2c253a[_0x4dc6a1-0x1][0xf]=0x8*(_0x3908e4['length']-0x1)&0xffffffff;for(let _0x2291d0=0x0;_0x2291d0<_0x4dc6a1;++_0x2291d0){const _0x2f6b1c=new Uint32Array(0x50);for(let _0x1d60ca=0x0;_0x1d60ca<0x10;++_0x1d60ca)_0x2f6b1c[_0x1d60ca]=_0x2c253a[_0x2291d0][_0x1d60ca];for(let _0x4879cd=0x10;_0x4879cd<0x50;++_0x4879cd)_0x2f6b1c[_0x4879cd]=_0x402ba0(_0x2f6b1c[_0x4879cd-0x3]^_0x2f6b1c[_0x4879cd-0x8]^_0x2f6b1c[_0x4879cd-0xe]^_0x2f6b1c[_0x4879cd-0x10],0x1);let _0x12b043=_0x4198b8[0x0],_0x35214a=_0x4198b8[0x1],_0x513da0=_0x4198b8[0x2],_0x1eae5c=_0x4198b8[0x3],_0x2ed0cf=_0x4198b8[0x4];for(let _0xafac4a=0x0;_0xafac4a<0x50;++_0xafac4a){const _0x29d15b=Math[_0xede3a8(0x1de)](_0xafac4a/0x14),_0x4884a2=_0x402ba0(_0x12b043,0x5)+_0x5bd433(_0x29d15b,_0x35214a,_0x513da0,_0x1eae5c)+_0x2ed0cf+_0x1202bf[_0x29d15b]+_0x2f6b1c[_0xafac4a]>>>0x0;_0x2ed0cf=_0x1eae5c,_0x1eae5c=_0x513da0,_0x513da0=_0x402ba0(_0x35214a,0x1e)>>>0x0,_0x35214a=_0x12b043,_0x12b043=_0x4884a2;}_0x4198b8[0x0]=_0x4198b8[0x0]+_0x12b043>>>0x0,_0x4198b8[0x1]=_0x4198b8[0x1]+_0x35214a>>>0x0,_0x4198b8[0x2]=_0x4198b8[0x2]+_0x513da0>>>0x0,_0x4198b8[0x3]=_0x4198b8[0x3]+_0x1eae5c>>>0x0,_0x4198b8[0x4]=_0x4198b8[0x4]+_0x2ed0cf>>>0x0;}return Uint8Array['of'](_0x4198b8[0x0]>>0x18,_0x4198b8[0x0]>>0x10,_0x4198b8[0x0]>>0x8,_0x4198b8[0x0],_0x4198b8[0x1]>>0x18,_0x4198b8[0x1]>>0x10,_0x4198b8[0x1]>>0x8,_0x4198b8[0x1],_0x4198b8[0x2]>>0x18,_0x4198b8[0x2]>>0x10,_0x4198b8[0x2]>>0x8,_0x4198b8[0x2],_0x4198b8[0x3]>>0x18,_0x4198b8[0x3]>>0x10,_0x4198b8[0x3]>>0x8,_0x4198b8[0x3],_0x4198b8[0x4]>>0x18,_0x4198b8[0x4]>>0x10,_0x4198b8[0x4]>>0x8,_0x4198b8[0x4]);};},0x3dc:(_0x562226,_0x56be9b,_0x52ddb9)=>{const _0x37e8bb=a0_0x40ae;Object[_0x37e8bb(0x15c)](_0x56be9b,_0x37e8bb(0x19b),{'value':!0x0}),_0x56be9b['URL']=_0x56be9b[_0x37e8bb(0x1dd)]=_0x56be9b[_0x37e8bb(0x161)]=void 0x0;const _0x59c93a=_0x52ddb9(0x31d),_0x265afe=_0x52ddb9(0xb);function _0x399f71(_0x169cdc){const _0xbd656f=_0x37e8bb;_0x169cdc=unescape(encodeURIComponent(_0x169cdc));const _0x1f75b2=new Uint8Array(_0x169cdc[_0xbd656f(0x1ef)]);for(let _0x558548=0x0;_0x558548<_0x169cdc[_0xbd656f(0x1ef)];++_0x558548)_0x1f75b2[_0x558548]=_0x169cdc[_0xbd656f(0x224)](_0x558548);return _0x1f75b2;}_0x56be9b[_0x37e8bb(0x161)]=_0x399f71,_0x56be9b['DNS']=_0x37e8bb(0x1a2),_0x56be9b[_0x37e8bb(0x191)]=_0x37e8bb(0x20e),_0x56be9b['default']=function _0x34e28a(_0x3a6f90,_0x347bb0,_0xb3acfd,_0x7d3380,_0x51d0b5,_0x22211a){const _0x54c14b=_0x37e8bb,_0x4f1b4b=_0x54c14b(0x148)==typeof _0xb3acfd?_0x399f71(_0xb3acfd):_0xb3acfd,_0x3998b3=_0x54c14b(0x148)==typeof _0x7d3380?(0x0,_0x59c93a[_0x54c14b(0x1cb)])(_0x7d3380):_0x7d3380;if('string'==typeof _0x7d3380&&(_0x7d3380=(0x0,_0x59c93a['default'])(_0x7d3380)),0x10!==_0x7d3380?.[_0x54c14b(0x1ef)])throw TypeError(_0x54c14b(0x147));let _0x172e43=new Uint8Array(0x10+_0x4f1b4b[_0x54c14b(0x1ef)]);if(_0x172e43[_0x54c14b(0x21a)](_0x3998b3),_0x172e43[_0x54c14b(0x21a)](_0x4f1b4b,_0x3998b3[_0x54c14b(0x1ef)]),_0x172e43=_0x347bb0(_0x172e43),_0x172e43[0x6]=0xf&_0x172e43[0x6]|_0x3a6f90,_0x172e43[0x8]=0x3f&_0x172e43[0x8]|0x80,_0x51d0b5){_0x22211a=_0x22211a||0x0;for(let _0x478b26=0x0;_0x478b26<0x10;++_0x478b26)_0x51d0b5[_0x22211a+_0x478b26]=_0x172e43[_0x478b26];return _0x51d0b5;}return(0x0,_0x265afe[_0x54c14b(0x227)])(_0x172e43);};}},_0x3e1a42={};function _0x2d2be0(_0x3068fb){const _0x1fe400=a0_0x40ae;var _0x3ee208=_0x3e1a42[_0x3068fb];if(void 0x0!==_0x3ee208)return _0x3ee208[_0x1fe400(0x15d)];var _0x4de24a=_0x3e1a42[_0x3068fb]={'exports':{}};return _0x50732d[_0x3068fb](_0x4de24a,_0x4de24a[_0x1fe400(0x15d)],_0x2d2be0),_0x4de24a['exports'];}var _0x2647d2={};return((()=>{const _0xf92f65=a0_0x40ae;var _0xcff2f4=_0x2647d2;Object[_0xf92f65(0x15c)](_0xcff2f4,_0xf92f65(0x19b),{'value':!0x0}),_0xcff2f4[_0xf92f65(0x1cd)]=void 0x0;var _0x13a31b=_0x2d2be0(0x1a7);Object[_0xf92f65(0x15c)](_0xcff2f4,'WebSDK',{'enumerable':!0x0,'get':function(){const _0x3627ba=_0xf92f65;return _0x13a31b[_0x3627ba(0x1cd)];}});})()),_0x2647d2;})())));
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
export interface UserProfile {
|
|
2
|
+
id: string;
|
|
3
|
+
guestUserId?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface EventOptions {
|
|
6
|
+
timestamp?: string;
|
|
7
|
+
requestId?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface SDKConfig {
|
|
10
|
+
apiKey: string;
|
|
11
|
+
endpoint: string;
|
|
12
|
+
debug?: boolean;
|
|
13
|
+
batchSize?: number;
|
|
14
|
+
batchInterval?: number;
|
|
15
|
+
}
|
|
16
|
+
export interface PurchasePayload {
|
|
17
|
+
externalId: string;
|
|
18
|
+
itemId: string;
|
|
19
|
+
itemName: string;
|
|
20
|
+
unitPrice: number;
|
|
21
|
+
quantity: number;
|
|
22
|
+
source: string;
|
|
23
|
+
channel: string;
|
|
24
|
+
itemCategory?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface DeviceDetails {
|
|
27
|
+
deviceId: string;
|
|
28
|
+
platform: string;
|
|
29
|
+
pushToken?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface ButtonProperties {
|
|
32
|
+
backgroundColor: string;
|
|
33
|
+
borderColor: string;
|
|
34
|
+
textColor: string;
|
|
35
|
+
androidOnClickValue?: string;
|
|
36
|
+
androidOnClickAction?: string;
|
|
37
|
+
iOSOnClickValue?: string;
|
|
38
|
+
iOSOnClickAction?: string;
|
|
39
|
+
type?: string;
|
|
40
|
+
[key: string]: any;
|
|
41
|
+
}
|
|
42
|
+
export interface ModalConfig {
|
|
43
|
+
button1: ButtonProperties;
|
|
44
|
+
button2: ButtonProperties;
|
|
45
|
+
dismissMessageAutomatically: boolean;
|
|
46
|
+
dismissMessageInSeconds: string;
|
|
47
|
+
headerColor: string;
|
|
48
|
+
messageColor: string;
|
|
49
|
+
closeColor: string;
|
|
50
|
+
}
|
|
51
|
+
export interface MediaConfig {
|
|
52
|
+
inAppImage: string;
|
|
53
|
+
}
|
|
54
|
+
export interface InAppMessageData {
|
|
55
|
+
header: string;
|
|
56
|
+
message: string;
|
|
57
|
+
modal: ModalConfig;
|
|
58
|
+
mediaConfig: MediaConfig;
|
|
59
|
+
}
|
|
60
|
+
export interface ShowInAppMessageOptions {
|
|
61
|
+
context?: any;
|
|
62
|
+
title: string;
|
|
63
|
+
body: string;
|
|
64
|
+
primaryButtonText: string;
|
|
65
|
+
secondaryButtonText?: string;
|
|
66
|
+
imageUrl: string;
|
|
67
|
+
onClose?: () => void;
|
|
68
|
+
buttonPropertiesPrimary: ButtonProperties;
|
|
69
|
+
buttonPropertiesSecondary: ButtonProperties;
|
|
70
|
+
dismissMessageAutomatically: boolean;
|
|
71
|
+
dismissMessageInSeconds: string;
|
|
72
|
+
headerColor: string;
|
|
73
|
+
messageColor: string;
|
|
74
|
+
closeColor: string;
|
|
75
|
+
campaignId: string;
|
|
76
|
+
}
|
|
77
|
+
export interface CampaignPayload {
|
|
78
|
+
campaignId: string;
|
|
79
|
+
opened: boolean;
|
|
80
|
+
clicked: boolean;
|
|
81
|
+
deviceId: string;
|
|
82
|
+
timestamp: number;
|
|
83
|
+
dismissed?: boolean;
|
|
84
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const log: (debug: boolean, message: string, ...args: any[]) => void;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { SDKConfig, EventOptions, UserProfile } from "./types";
|
|
2
|
+
export declare class WebSDK {
|
|
3
|
+
private readonly apiKey;
|
|
4
|
+
private readonly endpoint;
|
|
5
|
+
private readonly debug;
|
|
6
|
+
private readonly maxBatchSize;
|
|
7
|
+
private readonly batchInterval;
|
|
8
|
+
private readonly sdkVersion;
|
|
9
|
+
private deviceId;
|
|
10
|
+
private guestUserId;
|
|
11
|
+
private deviceDetails?;
|
|
12
|
+
private currentUser?;
|
|
13
|
+
private eventQueue;
|
|
14
|
+
private purchaseBatch;
|
|
15
|
+
private attributeQueue;
|
|
16
|
+
private isProcessingQueue;
|
|
17
|
+
private batchProcessingInterval?;
|
|
18
|
+
constructor(config: SDKConfig);
|
|
19
|
+
private initialize;
|
|
20
|
+
identify(userId: string): void;
|
|
21
|
+
clearUserData(): void;
|
|
22
|
+
trackEvent(eventName: string, properties?: Record<string, any>, options?: EventOptions): void;
|
|
23
|
+
setToken(token: string): void;
|
|
24
|
+
trackCustomAttribute(attributeName: string, attributeValue: any): void;
|
|
25
|
+
logProductPurchase(orderId: string, itemId: string, itemName: string, unitPrice: number, quantity: number, source: string, channel: string, itemCategory?: string): void;
|
|
26
|
+
getUserProfile(): UserProfile | undefined;
|
|
27
|
+
forceSend(): Promise<void>;
|
|
28
|
+
dispose(): void;
|
|
29
|
+
private getStoredDeviceId;
|
|
30
|
+
private getStoredUserProfile;
|
|
31
|
+
private storeDeviceId;
|
|
32
|
+
private storeUserProfile;
|
|
33
|
+
private storeCustomAttributes;
|
|
34
|
+
private loadCustomAttributes;
|
|
35
|
+
private getGuestUserId;
|
|
36
|
+
private buildPurchasePayload;
|
|
37
|
+
private initializeDeviceDetails;
|
|
38
|
+
private startBatchProcessing;
|
|
39
|
+
private queueEvent;
|
|
40
|
+
private processBatch;
|
|
41
|
+
private sendBatchToServer;
|
|
42
|
+
displayInAppMessage(inAppMessageData: string, campaignId: string, context?: any): void;
|
|
43
|
+
private hexToColor;
|
|
44
|
+
private openWebUrl;
|
|
45
|
+
private showInAppMessage;
|
|
46
|
+
private logInAppMessageClick;
|
|
47
|
+
logClick(campaignId: string): Promise<void>;
|
|
48
|
+
private processCampaignClick;
|
|
49
|
+
private buildCampaignPayload;
|
|
50
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ordersune/crm-web-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.20",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"publishConfig": {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"build:bundle": "webpack --config webpack.config.js",
|
|
12
12
|
"build:types": "tsc --emitDeclarationOnly --outDir dist",
|
|
13
13
|
"prepare": "npm run build && husky",
|
|
14
|
-
"release": "GIT_AUTHOR_NAME=\"$(git config user.name)\" GIT_AUTHOR_EMAIL=\"$(git config user.email)\" GIT_COMMITTER_NAME=\"$(git config user.name)\" GIT_COMMITTER_EMAIL=\"$(git config user.email)\" semantic-release --no-ci",
|
|
14
|
+
"release": "bash -c 'read -p \"Enter OTP from authenticator: \" OTP && GIT_AUTHOR_NAME=\"$(git config user.name)\" GIT_AUTHOR_EMAIL=\"$(git config user.email)\" GIT_COMMITTER_NAME=\"$(git config user.name)\" GIT_COMMITTER_EMAIL=\"$(git config user.email)\" NPM_CONFIG_OTP=$OTP semantic-release --no-ci'",
|
|
15
15
|
"lint:commit": "commitlint --edit"
|
|
16
16
|
},
|
|
17
17
|
"files": [
|