wisetrack 2.0.0
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/LICENSE +5 -0
- package/README.md +128 -0
- package/dist/cdn/constants/constants.d.ts +20 -0
- package/dist/cdn/constants/endpoints.d.ts +11 -0
- package/dist/cdn/constants/environments.d.ts +25 -0
- package/dist/cdn/core/caching/queue-data.d.ts +25 -0
- package/dist/cdn/core/caching/request-queue-manager.d.ts +54 -0
- package/dist/cdn/core/fields/event-fields-builder.d.ts +8 -0
- package/dist/cdn/core/fields/fields-builder.d.ts +9 -0
- package/dist/cdn/core/network/api-client.d.ts +9 -0
- package/dist/cdn/core/network/network-error.d.ts +17 -0
- package/dist/cdn/core/network/network-manager.d.ts +22 -0
- package/dist/cdn/core/network/retry-policy.d.ts +8 -0
- package/dist/cdn/core/storage/storage-manager.d.ts +52 -0
- package/dist/cdn/core/wisetrack.d.ts +125 -0
- package/dist/cdn/core/wt-tracker.d.ts +25 -0
- package/dist/cdn/index.d.ts +4 -0
- package/dist/cdn/sdk.bundle.js +3604 -0
- package/dist/cdn/sdk.bundle.js.map +1 -0
- package/dist/cdn/sdk.bundle.min.js +1 -0
- package/dist/cdn/types/config/initial-config.d.ts +43 -0
- package/dist/cdn/types/config/wt-app-settings.d.ts +15 -0
- package/dist/cdn/types/config/wt-config.d.ts +18 -0
- package/dist/cdn/types/event/revenue-currency.d.ts +39 -0
- package/dist/cdn/types/event/wt-event.d.ts +94 -0
- package/dist/cdn/utils/activity-ticker.d.ts +12 -0
- package/dist/cdn/utils/country-finder.d.ts +9 -0
- package/dist/cdn/utils/crypto-helper.d.ts +4 -0
- package/dist/cdn/utils/device-detector.d.ts +41 -0
- package/dist/cdn/utils/logger.d.ts +36 -0
- package/dist/cdn/utils/storage-support.d.ts +16 -0
- package/dist/cdn/utils/utils.d.ts +5 -0
- package/dist/cdn/utils/webgl-fingerprint.d.ts +7 -0
- package/dist/cjs/constants/constants.d.ts +20 -0
- package/dist/cjs/constants/endpoints.d.ts +11 -0
- package/dist/cjs/constants/environments.d.ts +25 -0
- package/dist/cjs/core/caching/queue-data.d.ts +25 -0
- package/dist/cjs/core/caching/request-queue-manager.d.ts +54 -0
- package/dist/cjs/core/fields/event-fields-builder.d.ts +8 -0
- package/dist/cjs/core/fields/fields-builder.d.ts +9 -0
- package/dist/cjs/core/network/api-client.d.ts +9 -0
- package/dist/cjs/core/network/network-error.d.ts +17 -0
- package/dist/cjs/core/network/network-manager.d.ts +22 -0
- package/dist/cjs/core/network/retry-policy.d.ts +8 -0
- package/dist/cjs/core/storage/storage-manager.d.ts +52 -0
- package/dist/cjs/core/wisetrack.d.ts +125 -0
- package/dist/cjs/core/wt-tracker.d.ts +25 -0
- package/dist/cjs/index.d.ts +4 -0
- package/dist/cjs/index.js +3599 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/types/config/initial-config.d.ts +43 -0
- package/dist/cjs/types/config/wt-app-settings.d.ts +15 -0
- package/dist/cjs/types/config/wt-config.d.ts +18 -0
- package/dist/cjs/types/event/revenue-currency.d.ts +39 -0
- package/dist/cjs/types/event/wt-event.d.ts +94 -0
- package/dist/cjs/utils/activity-ticker.d.ts +12 -0
- package/dist/cjs/utils/country-finder.d.ts +9 -0
- package/dist/cjs/utils/crypto-helper.d.ts +4 -0
- package/dist/cjs/utils/device-detector.d.ts +41 -0
- package/dist/cjs/utils/logger.d.ts +36 -0
- package/dist/cjs/utils/storage-support.d.ts +16 -0
- package/dist/cjs/utils/utils.d.ts +5 -0
- package/dist/cjs/utils/webgl-fingerprint.d.ts +7 -0
- package/dist/constants/constants.d.ts +20 -0
- package/dist/constants/constants.js +19 -0
- package/dist/constants/constants.js.map +1 -0
- package/dist/constants/endpoints.d.ts +11 -0
- package/dist/constants/endpoints.js +10 -0
- package/dist/constants/endpoints.js.map +1 -0
- package/dist/constants/environments.d.ts +25 -0
- package/dist/constants/environments.js +37 -0
- package/dist/constants/environments.js.map +1 -0
- package/dist/core/caching/queue-data.d.ts +25 -0
- package/dist/core/caching/queue-data.js +50 -0
- package/dist/core/caching/queue-data.js.map +1 -0
- package/dist/core/caching/request-queue-manager.d.ts +54 -0
- package/dist/core/caching/request-queue-manager.js +333 -0
- package/dist/core/caching/request-queue-manager.js.map +1 -0
- package/dist/core/fields/event-fields-builder.d.ts +8 -0
- package/dist/core/fields/event-fields-builder.js +29 -0
- package/dist/core/fields/event-fields-builder.js.map +1 -0
- package/dist/core/fields/fields-builder.d.ts +9 -0
- package/dist/core/fields/fields-builder.js +120 -0
- package/dist/core/fields/fields-builder.js.map +1 -0
- package/dist/core/network/api-client.d.ts +9 -0
- package/dist/core/network/api-client.js +88 -0
- package/dist/core/network/api-client.js.map +1 -0
- package/dist/core/network/network-error.d.ts +17 -0
- package/dist/core/network/network-error.js +35 -0
- package/dist/core/network/network-error.js.map +1 -0
- package/dist/core/network/network-manager.d.ts +22 -0
- package/dist/core/network/network-manager.js +72 -0
- package/dist/core/network/network-manager.js.map +1 -0
- package/dist/core/network/retry-policy.d.ts +8 -0
- package/dist/core/network/retry-policy.js +26 -0
- package/dist/core/network/retry-policy.js.map +1 -0
- package/dist/core/storage/storage-manager.d.ts +52 -0
- package/dist/core/storage/storage-manager.js +221 -0
- package/dist/core/storage/storage-manager.js.map +1 -0
- package/dist/core/wisetrack.d.ts +125 -0
- package/dist/core/wisetrack.js +277 -0
- package/dist/core/wisetrack.js.map +1 -0
- package/dist/core/wt-tracker.d.ts +25 -0
- package/dist/core/wt-tracker.js +239 -0
- package/dist/core/wt-tracker.js.map +1 -0
- package/dist/esm/constants/constants.d.ts +20 -0
- package/dist/esm/constants/endpoints.d.ts +11 -0
- package/dist/esm/constants/environments.d.ts +25 -0
- package/dist/esm/core/caching/queue-data.d.ts +25 -0
- package/dist/esm/core/caching/request-queue-manager.d.ts +54 -0
- package/dist/esm/core/fields/event-fields-builder.d.ts +8 -0
- package/dist/esm/core/fields/fields-builder.d.ts +9 -0
- package/dist/esm/core/network/api-client.d.ts +9 -0
- package/dist/esm/core/network/network-error.d.ts +17 -0
- package/dist/esm/core/network/network-manager.d.ts +22 -0
- package/dist/esm/core/network/retry-policy.d.ts +8 -0
- package/dist/esm/core/storage/storage-manager.d.ts +52 -0
- package/dist/esm/core/wisetrack.d.ts +125 -0
- package/dist/esm/core/wt-tracker.d.ts +25 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.js +3594 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/types/config/initial-config.d.ts +43 -0
- package/dist/esm/types/config/wt-app-settings.d.ts +15 -0
- package/dist/esm/types/config/wt-config.d.ts +18 -0
- package/dist/esm/types/event/revenue-currency.d.ts +39 -0
- package/dist/esm/types/event/wt-event.d.ts +94 -0
- package/dist/esm/utils/activity-ticker.d.ts +12 -0
- package/dist/esm/utils/country-finder.d.ts +9 -0
- package/dist/esm/utils/crypto-helper.d.ts +4 -0
- package/dist/esm/utils/device-detector.d.ts +41 -0
- package/dist/esm/utils/logger.d.ts +36 -0
- package/dist/esm/utils/storage-support.d.ts +16 -0
- package/dist/esm/utils/utils.d.ts +5 -0
- package/dist/esm/utils/webgl-fingerprint.d.ts +7 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -0
- package/dist/types/config/initial-config.d.ts +43 -0
- package/dist/types/config/initial-config.js +2 -0
- package/dist/types/config/initial-config.js.map +1 -0
- package/dist/types/config/wt-app-settings.d.ts +15 -0
- package/dist/types/config/wt-app-settings.js +25 -0
- package/dist/types/config/wt-app-settings.js.map +1 -0
- package/dist/types/config/wt-config.d.ts +18 -0
- package/dist/types/config/wt-config.js +28 -0
- package/dist/types/config/wt-config.js.map +1 -0
- package/dist/types/event/revenue-currency.d.ts +39 -0
- package/dist/types/event/revenue-currency.js +39 -0
- package/dist/types/event/revenue-currency.js.map +1 -0
- package/dist/types/event/wt-event.d.ts +94 -0
- package/dist/types/event/wt-event.js +93 -0
- package/dist/types/event/wt-event.js.map +1 -0
- package/dist/utils/activity-ticker.d.ts +12 -0
- package/dist/utils/activity-ticker.js +37 -0
- package/dist/utils/activity-ticker.js.map +1 -0
- package/dist/utils/country-finder.d.ts +9 -0
- package/dist/utils/country-finder.js +71 -0
- package/dist/utils/country-finder.js.map +1 -0
- package/dist/utils/crypto-helper.d.ts +4 -0
- package/dist/utils/crypto-helper.js +7 -0
- package/dist/utils/crypto-helper.js.map +1 -0
- package/dist/utils/device-detector.d.ts +41 -0
- package/dist/utils/device-detector.js +101 -0
- package/dist/utils/device-detector.js.map +1 -0
- package/dist/utils/logger.d.ts +36 -0
- package/dist/utils/logger.js +84 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/utils/storage-support.d.ts +16 -0
- package/dist/utils/storage-support.js +86 -0
- package/dist/utils/storage-support.js.map +1 -0
- package/dist/utils/utils.d.ts +5 -0
- package/dist/utils/utils.js +95 -0
- package/dist/utils/utils.js.map +1 -0
- package/dist/utils/webgl-fingerprint.d.ts +7 -0
- package/dist/utils/webgl-fingerprint.js +100 -0
- package/dist/utils/webgl-fingerprint.js.map +1 -0
- package/package.json +71 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t=function(t){"use strict";function e(t,e,i,n){return new(i||(i=Promise))(function(r,s){function o(t){try{c(n.next(t))}catch(t){s(t)}}function a(t){try{c(n.throw(t))}catch(t){s(t)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(o,a)}c((n=n.apply(t,e||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;const i=r;function n(){const t=["1800000","9vurLQr","15167536bXFdrE","251646xCchSE","debug","2713075sKYTFs","2.0.0","300000","3696040nMoDAr","5628931UcJrkG","997bfbb583c1245a426a53dc1899ec779ff354f9","https://config.wisetrack.io","5777034pnlHFY","2314611xWjhoU"];return(n=function(){return t})()}function r(t,e){const i=n();return(r=function(t,e){return i[t-=133]})(t,e)}!function(t){const e=r,i=t();for(;;)try{if(631481===parseInt(e(143))/1*(parseInt(e(145))/2)+-parseInt(e(141))/3+-parseInt(e(136))/4+-parseInt(e(133))/5+-parseInt(e(140))/6+parseInt(e(137))/7+parseInt(e(144))/8)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(n);const s={SDK:{HASH:i(138),PLATFORM:"web",VERSION:i(134)},CONFIG:{BASE_URL:i(139),DEFAULT_ENVIRONMENT:i(146)},DEFAULTS:{LOG_LEVEL:i(146),SESSION_INTERVAL:i(142),SUBSESSION_INTERVAL:i(135),PARAMETERS_VALUE:void 0}},o=a;function a(t,e){const i=c();return(a=function(t,e){return i[t-=472]})(t,e)}function c(){const t=["Unknown environment: ","240AvfVGC","151109VhbgkZ","PRODUCTION","188890nWaFOz","68HdPWQL","STAGE","3167958FHXeev","5JsuvyP","CONFIG","157828LbVzKR","1176EHiqlr","https://core.debug.wisetrackdev.ir","debug","11949372JNqbwO","38OPRJzA","sandbox","87501LygrMy","264243dXNEfH","sdkEnvironment","https://core.wisetrack.io","88CzcExQ"];return(c=function(){return t})()}!function(t){const e=a,i=t();for(;;)try{if(848428===parseInt(e(493))/1*(-parseInt(e(491))/2)+-parseInt(e(472))/3*(-parseInt(e(481))/4)+-parseInt(e(484))/5*(-parseInt(e(483))/6)+parseInt(e(478))/7*(parseInt(e(475))/8)+parseInt(e(490))/9+parseInt(e(477))/10*(parseInt(e(486))/11)+-parseInt(e(487))/12*(parseInt(e(480))/13))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(c),o(492);const u={DEBUG:o(489),STAGE:"stage",PRODUCTION:"production"},d={sdkEnvironment:s[o(485)].DEFAULT_ENVIRONMENT,needAppSettings(){return this[o(473)]!==u.PRODUCTION},baseUrl(){const t=o;switch(this[t(473)]){case u.DEBUG:return t(488);case u[t(482)]:return"https://core.stage.wisetrackdev.ir";case u[t(479)]:return t(474);default:throw new Error(t(476)+this[t(473)])}}},l=p;function p(t,e){const i=f();return(p=function(t,e){return i[t-=295]})(t,e)}!function(t){const e=p,i=t();for(;;)try{if(142898===-parseInt(e(307))/1*(-parseInt(e(303))/2)+-parseInt(e(301))/3+parseInt(e(306))/4*(-parseInt(e(300))/5)+parseInt(e(297))/6+-parseInt(e(304))/7*(parseInt(e(308))/8)+parseInt(e(299))/9*(parseInt(e(296))/10)+parseInt(e(302))/11)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(f);const h={EVENTS:"/api/v1/events",SESSIONS:l(295),SDK_CLICKS:l(298),SDK_INFOS:"/api/v1/sdk_infos",ATTRIBUTIONS:l(305),APP_SETTINGS:"/api/v1/app_settings"};function f(){const t=["/api/v1/attributions","4djOmAY","14kwnStj","32MWumnF","/api/v1/sessions","12890flnPtO","839508YqfzUo","/api/v1/sdk_clicks","1269ARpuGW","719935CtCSyT","494307PMvNMH","91465yshcZe","25196HZLEAv","95725ZGAuaa"];return(f=function(){return t})()}var v=g;function w(){var t=["497232FSowdA","40177HGYpkb","29716PpCzKp","sdk_clicks","377AzILWE","SDK_CLICKS","subsessionInterval","614248JpqODA","sdkClicks","sdk_infos","6941FAhNxJ","sessions","attributions","sessionInterval","SUBSESSION_INTERVAL","105204QwVfsi","session_interval","SESSIONS","events","defaultValue","3NUjATj","sdkInfos","29634GnGWcX","9BqyYMO","119KAjrac","subsession_interval","550HCnPKQ","EVENTS","270UCdbjd","DEFAULTS"];return(w=function(){return t})()}function g(t,e){var i=w();return(g=function(t,e){return i[t-=286]})(t,e)}!function(t){for(var e=g,i=t();;)try{if(231436===-parseInt(e(286))/1+parseInt(e(292))/2*(parseInt(e(305))/3)+-parseInt(e(287))/4*(parseInt(e(313))/5)+-parseInt(e(307))/6*(-parseInt(e(309))/7)+-parseInt(e(315))/8*(-parseInt(e(308))/9)+parseInt(e(311))/10*(-parseInt(e(295))/11)+-parseInt(e(300))/12*(-parseInt(e(289))/13))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(w);class b{constructor(t,e,i,n,r,o=s[v(314)].SESSION_INTERVAL,a=s[v(314)].SUBSESSION_INTERVAL){var c=v;this[c(303)]=t,this[c(296)]=e,this.sdkClicks=i,this[c(306)]=n,this[c(297)]=r,this[c(298)]=o,this[c(291)]=a}static fromConfig(t){var e=v;return new b(t[e(303)],t.sessions,t[e(293)],t[e(306)],t[e(297)],t.sessionInterval,t[e(291)])}static fromJson(t){var e,i,n=v;return new b(t.events,t[n(296)],t[n(288)],t[n(294)],t.attributions,null!==(e=t[n(301)])&&void 0!==e?e:s.DEFAULTS.SESSION_INTERVAL,null!==(i=t[n(310)])&&void 0!==i?i:s[n(314)][n(299)])}static get[v(304)](){var t=v;return new b(h[t(312)],h[t(302)],h[t(290)],h.SDK_INFOS,h.ATTRIBUTIONS,s[t(314)].SESSION_INTERVAL,s[t(314)].SUBSESSION_INTERVAL)}}function I(t,e){var i=S();return(I=function(t,e){return i[t-=398]})(t,e)}var m=I;function S(){var t=["1814758qhqkWU","323815GkyveM","846200nhIBNd","force_update","forceUpdate","subsession_interval","defaultValue","SUBSESSION_INTERVAL","SDK_INFOS","1377828ArSbvf","981tvlsss","sdk_update","session_interval","fromJson","events","app_settings","ATTRIBUTIONS","4890319rbNvzM","baseUrl","sdkClicks","sdk_infos","sdkInfos","8548HcohST","sdkUpdate","attributions","sessions","23122557qPoSqj","sdk_enabled","DEFAULTS","EVENTS","1deYhII","sdkEnabled"];return(S=function(){return t})()}!function(t){for(var e=I,i=t();;)try{if(535028===parseInt(e(399))/1*(-parseInt(e(401))/2)+parseInt(e(411))/3*(-parseInt(e(423))/4)+-parseInt(e(402))/5+parseInt(e(410))/6+-parseInt(e(418))/7+parseInt(e(403))/8+parseInt(e(427))/9)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(S);class y{constructor(t,e,i,n,r,o,a,c=!0,u=!1,d=!1,l=s[m(429)].SESSION_INTERVAL,p=s[m(429)].SUBSESSION_INTERVAL){var h=m;this[h(419)]=t,this[h(415)]=e,this[h(426)]=i,this[h(420)]=n,this[h(422)]=r,this[h(425)]=o,this.appSettings=a,this[h(400)]=c,this[h(405)]=u,this[h(424)]=d,this.sessionInterval=l,this.subsessionInterval=p}static[m(414)](t){var e,i,n,r,o,a=m;return new y(t.base_url,t[a(415)],t.sessions,t.sdk_clicks,t[a(421)],t[a(425)],t[a(416)],null===(e=t[a(428)])||void 0===e||e,null!==(i=t[a(404)])&&void 0!==i&&i,null!==(n=t[a(412)])&&void 0!==n&&n,null!==(r=t[a(413)])&&void 0!==r?r:s.DEFAULTS.SESSION_INTERVAL,null!==(o=t[a(406)])&&void 0!==o?o:s[a(429)][a(408)])}static get[m(407)](){var t=m;return new y(d.baseUrl(),h[t(398)],h.SESSIONS,h.SDK_CLICKS,h[t(409)],h[t(417)],h.APP_SETTINGS)}}const k=E;function E(t,e){const i=_();return(E=function(t,e){return i[t-=307]})(t,e)}function _(){const t=["error","level","outputEngines","DEFAULTS","setPrefix","857710xBhuTP","LOG_LEVEL","shouldLog","none","1600290SoaXEW","4025lxGrcp","addOutputEngine","85ruCPYZ","58YtEzuY","debug","11634SsfkGA","warn","info","132saEgmn","58797SBsWBu","707897IuMttR","prefix","indexOf","12866248ZouldR","log","256552FIHdJL","setLevel","push"];return(_=function(){return t})()}!function(t){const e=E,i=t();for(;;)try{if(850470===parseInt(e(315))/1+parseInt(e(308))/2*(parseInt(e(314))/3)+parseInt(e(320))/4*(parseInt(e(307))/5)+parseInt(e(310))/6*(-parseInt(e(333))/7)+-parseInt(e(318))/8+parseInt(e(332))/9+-parseInt(e(328))/10*(-parseInt(e(313))/11))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(_);class T{}const x={DEBUG:k(309),INFO:k(312),WARN:"warn",ERROR:k(323),NONE:k(331)};class C{static[k(321)](t){this.level=t}static[k(327)](t){this.prefix=t}static[k(334)](t){const e=k;this[e(325)][e(322)](t)}static[k(330)](t){const e=k,i=[e(309),e(312),e(311),e(323)],n=i[e(317)](this[e(324)]);return i[e(317)](t)>=n}static[k(319)](t,...e){const i=k;if(!this[i(330)](t))return;const n="["+this[i(316)]+"-"+t.toUpperCase()+"]";for(const r of this.outputEngines)r[i(319)](t,n,...e)}static[k(309)](...t){const e=k;this[e(319)](e(309),...t)}static info(...t){const e=k;this.log(e(312),...t)}static[k(311)](...t){this.log("warn",...t)}static[k(323)](...t){const e=k;this[e(319)](e(323),...t)}}C[k(324)]=s[k(326)][k(329)],C[k(316)]="WT",C.outputEngines=[new class extends T{log(t,e,...i){const n=E;switch(t){case n(309):case n(312):case"warn":case n(323):}}}];var N=D;function D(t,e){var i=L();return(D=function(t,e){return i[t-=197]})(t,e)}!function(t){for(var e=D,i=t();;)try{if(634009===parseInt(e(210))/1*(-parseInt(e(205))/2)+-parseInt(e(250))/3*(-parseInt(e(231))/4)+-parseInt(e(253))/5*(parseInt(e(252))/6)+parseInt(e(198))/7*(parseInt(e(222))/8)+parseInt(e(220))/9*(-parseInt(e(261))/10)+-parseInt(e(263))/11+-parseInt(e(223))/12*(-parseInt(e(215))/13))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(L);const A={DEVICE_ID:N(271),INITIAL_DATE:N(249),INITIAL_CONFIG:"WT.InitialConfigs",CONFIG:N(241),APP_SETTINGS:N(243),SDK_CLICK_SUBMIT:N(219),FIRST_SESSION_SUBMIT:N(207),SDK_ENABLED:N(209),FCM_TOKEN:N(256),PUSH_TOKEN:N(203),EVENT_COUNT:N(258),SESSION_COUNT:N(274),SESSION_LENGTH:N(277),SUBSESSION_COUNT:N(255),ACTIVE_TIME:N(257),INACTIVE_TIME:"WT.InactiveTime",INACTIVE_DURATION:"WT.InactiveDuration",REQUEST_QUEUE:N(259),PENDING_REQUEST_QUEUE:N(275)};class R{[N(246)](){localStorage[N(246)]()}setJson(t,e){var i=N;if(e)try{const n=JSON[i(276)](e);localStorage[i(197)](t,n)}catch(e){C[i(228)](i(229)+t+"'",e)}else localStorage[i(226)](t)}getJson(t){var e=N;const i=localStorage[e(254)](t);if(!i)return null;try{return JSON[e(238)](i)}catch(i){return C.error(e(265)+t+"': "+i,i),null}}optionalNumber(t){const e=localStorage[N(254)](t);if(null===e)return null;const i=Number(e);return isNaN(i)?null:i}[N(217)](t){var e=N;const i=localStorage[e(254)](t);return null===i?null:i===e(272)||i!==e(267)&&null}get[N(199)](){var t=N;return localStorage[t(254)](A[t(268)])}set deviceId(t){var e=N;t?localStorage[e(197)](A[e(268)],t):localStorage[e(226)](A[e(268)])}get[N(266)](){var t=N;return this[t(251)](A[t(213)])}set[N(266)](t){var e=N;this.setJson(A[e(213)],t)}get[N(273)](){return this[N(251)](A.INITIAL_CONFIG)}set[N(273)](t){var e=N;this[e(234)](A[e(230)],t)}get[N(204)](){var t=N;return this[t(251)](A[t(212)])}set[N(204)](t){var e=N;this[e(234)](A[e(212)],t)}get[N(200)](){var t=N;return this[t(251)](A[t(224)])}set appSettings(t){var e=N;this[e(234)](A[e(224)],t)}get[N(244)](){var t,e=N;return null!==(t=this[e(217)](A[e(221)]))&&void 0!==t&&t}set[N(244)](t){var e=N;localStorage[e(197)](A[e(221)],t.toString())}get[N(218)](){var t,e=N;return null!==(t=this[e(217)](A[e(247)]))&&void 0!==t&&t}set sdkClickSubmit(t){var e=N;localStorage[e(197)](A[e(247)],t.toString())}get[N(237)](){var t,e=N;return null!==(t=this[e(217)](A[e(269)]))&&void 0!==t&&t}set firstSessionSubmit(t){localStorage[N(197)](A.FIRST_SESSION_SUBMIT,t.toString())}get[N(245)](){return localStorage.getItem(A.FCM_TOKEN)}set[N(245)](t){var e=N;t?localStorage[e(197)](A[e(211)],t):localStorage[e(226)](A[e(211)])}get[N(239)](){return localStorage[N(254)](A.PUSH_TOKEN)}set[N(239)](t){var e=N;t?localStorage.setItem(A[e(236)],t):localStorage.removeItem(A.PUSH_TOKEN)}get[N(225)](){var t,e=N;return null!==(t=this[e(248)](A[e(242)]))&&void 0!==t?t:1}set[N(225)](t){var e=N;localStorage[e(197)](A[e(242)],t.toString())}get subSessionCount(){var t,e=N;return null!==(t=this[e(248)](A[e(264)]))&&void 0!==t?t:1}set subSessionCount(t){var e=N;localStorage[e(197)](A[e(264)],t[e(202)]())}get[N(278)](){var t,e=N;return null!==(t=this.optionalNumber(A[e(214)]))&&void 0!==t?t:0}set[N(278)](t){var e=N;localStorage[e(197)](A.SESSION_LENGTH,t[e(202)]())}get[N(208)](){var t,e=N;return null!==(t=this[e(248)](A[e(232)]))&&void 0!==t?t:0}set inactiveDuration(t){var e=N;localStorage[e(197)](A[e(232)],t[e(202)]())}get[N(270)](){var t=N;return this.optionalNumber(A[t(227)])}set[N(270)](t){var e=N;null!==t?localStorage[e(197)](A[e(227)],t[e(202)]()):localStorage[e(226)](A.ACTIVE_TIME)}get[N(260)](){var t=N;return this[t(248)](A[t(201)])}set[N(260)](t){var e=N;null!==t?localStorage[e(197)](A[e(201)],t[e(202)]()):localStorage[e(226)](A.INACTIVE_TIME)}get[N(235)](){var t,e=N;return null!==(t=this[e(251)](A[e(240)]))&&void 0!==t?t:[]}set[N(235)](t){var e=N;this[e(234)](A[e(240)],t)}get[N(206)](){var t,e=N;return null!==(t=this[e(251)](A[e(216)]))&&void 0!==t?t:[]}set[N(206)](t){this[N(234)](A.PENDING_REQUEST_QUEUE,t)}get[N(262)](){var t,e=N;return null!==(t=this[e(248)](A[e(233)]))&&void 0!==t?t:0}set[N(262)](t){var e=N;localStorage[e(197)](A[e(233)],t[e(202)]())}}const O=new R;function L(){var t=["110404ZaaSdl","INACTIVE_DURATION","EVENT_COUNT","setJson","requestRecords","PUSH_TOKEN","firstSessionSubmit","parse","pushToken","REQUEST_QUEUE","WT.Configs","SESSION_COUNT","WT.AppSettings","sdkEnabled","fcmToken","clear","SDK_CLICK_SUBMIT","optionalNumber","WT.InitialDate","93oLtrXC","getJson","12yWjBeS","1588735wuSSJW","getItem","WT.SubSessionCount","WT.FcmToken","WT.ActiveTime","WT.EventCount","WT.RequestQueue","activeTime","3284980qHtSQf","eventCount","8954011iWyUoI","SUBSESSION_COUNT","Error in JSON decoding for key '","initialDate","false","DEVICE_ID","FIRST_SESSION_SUBMIT","inactiveTime","WT.DeviceId","true","initialConfig","WT.SessionCount","WT.PendingRequestQueue","stringify","WT.SessionLenght","activeDuration","setItem","14czUncP","deviceId","appSettings","INACTIVE_TIME","toString","WT.PushToken","config","2234018FpzFrw","pendingRequestRecords","WT.FirstSessionSubmit","inactiveDuration","WT.SdkEnabled","1MqBOiu","FCM_TOKEN","CONFIG","INITIAL_DATE","SESSION_LENGTH","6319794BFTpVj","PENDING_REQUEST_QUEUE","optionalBool","sdkClickSubmit","WT.SdkClickSubmit","27srYYLY","SDK_ENABLED","3598744XhUMkw","60IjHqYH","APP_SETTINGS","sessionCount","removeItem","ACTIVE_TIME","error","Error in encoding object for key '","INITIAL_CONFIG"];return(L=function(){return t})()}var U;function F(){var t=["message","InvalidUrl","1595152RqlSbk","189220kKrftY","Invalid URL: ","DecodingError: ","7GNOzHa","72PTAyHq","224415BrYFww","NetworkError","name","695860wrcFBs","301482AcSyFd","2030697NAonep","DecodingError","statusCode","ServerError","42BRdwas","40746NikmVq","NetworkError: "];return(F=function(){return t})()}function P(t,e){var i=F();return(P=function(t,e){return i[t-=251]})(t,e)}!function(t){for(var e=P,i=t();;)try{if(341054===-parseInt(e(266))/1+-parseInt(e(251))/2*(-parseInt(e(252))/3)+-parseInt(e(265))/4+parseInt(e(262))/5*(parseInt(e(261))/6)+parseInt(e(260))/7*(parseInt(e(256))/8)+-parseInt(e(267))/9+parseInt(e(257))/10)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(F),function(t){var e=P;class i extends Error{constructor(t){var e=P;super(e(258)+t),this[e(264)]="InvalidUrl"}}t[e(255)]=i;class n extends Error{constructor(t,i){var n=e;super("ServerError "+t+": "+i),this[n(269)]=t,this[n(254)]=i,this[n(264)]=n(270)}}t.ServerError=n;class r extends Error{constructor(t){var i=e;super(i(253)+t),this[i(264)]="NetworkFailure"}}t[e(263)]=r;class s extends Error{constructor(t){var i=e;super(i(259)+t),this[i(264)]="DecodingError"}}t[e(268)]=s}(U||(U={}));var q=M;function M(t,e){var i=B();return(M=function(t,e){return i[t-=491]})(t,e)}function B(){var t=["50cOFORa","17021jqxqgt","retryInterval","88nVusor","343685FPuXga","8978868KtRScv","9UxFqMN","canRetry","12072520pyTJIL","8750510QnhKif","4751202MvNTQd","waitBeforeRetry","9179828twAadO"];return(B=function(){return t})()}!function(t){for(var e=M,i=t();;)try{if(945985===-parseInt(e(500))/1*(-parseInt(e(499))/2)+parseInt(e(496))/3+parseInt(e(502))/4*(-parseInt(e(503))/5)+-parseInt(e(491))/6+parseInt(e(498))/7+parseInt(e(494))/8+-parseInt(e(492))/9*(parseInt(e(495))/10))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(B);class W{constructor(t=3,e=2e3){var i=M;this.maxRetries=t,this[i(501)]=e}[q(493)](t){return t<this.maxRetries}[q(497)](){return e(this,void 0,void 0,function*(){var t=M;return new Promise(e=>setTimeout(e,this[t(501)]))})}}function V(){const t=[") => ","retryAttempt","362298hFQcTH","✅ API SUCCESS (",") =>","ServerError","message","formData","append","NetworkError","Error executing request","error","DecodingError","canRetry","retryPolicy","stringify","7048TRFZxH","1467130YOfwEE","111WpctoX","-- PARAMETERS =>","❌ API ERROR (","warn","Request successful","application/json","263197UdxMBW","Content-Type","json","headers","Server error","assign","844218gLDTYP","params","debug","4722464AwnAuh","status","text","Unknown error","1668955icEYMe","method"];return(V=function(){return t})()}function j(t,e){const i=V();return(j=function(t,e){return i[t-=344]})(t,e)}!function(t){const e=j,i=t();for(;;)try{if(191522===parseInt(e(382))/1+parseInt(e(360))/2+parseInt(e(376))/3*(-parseInt(e(374))/4)+parseInt(e(356))/5+-parseInt(e(349))/6+parseInt(e(375))/7+-parseInt(e(352))/8)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(V);const G={retryPolicy:()=>new W,sendRequest(t){return e(this,arguments,void 0,function*(t,e={}){const i=j,n=e[i(359)]||1;let r;C.debug("🚀 REQUEST ("+n+i(358)+e[i(357)]+" "+t),C[i(351)](i(377),e[i(350)]||e.formData||{});const s=Object[i(348)]({Accept:"application/json"},e[i(346)]);if(e[i(365)]){const t=new FormData;for(const n in e[i(365)])t[i(366)](n,e.formData[n]);r=t}else e.params&&(s[i(344)]=i(381),r=JSON[i(373)](e[i(350)]));try{const n=yield fetch(t,{method:e[i(357)],headers:s,body:r});if(!n.ok){let t=yield n[i(345)](),e=t[i(364)]||(yield n[i(354)]());throw C[i(379)](i(378)+n.status+") =>",e),new(U[i(363)])(n[i(353)],t.message||i(347))}try{const t=yield n[i(345)]();return C[i(351)](i(361)+n[i(353)]+i(362),t.message||i(380)),t}catch(t){throw new(U[i(370)])(t.message||String(t))}}catch(r){if(r instanceof U[i(363)]||r instanceof U.DecodingError)throw r;if(C[i(369)](i(368),r),this[i(372)]()[i(371)](n))return yield this[i(372)]().waitBeforeRetry(),this.sendRequest(t,Object[i(348)](Object[i(348)]({},e),{retryAttempt:n+1}));throw new(U[i(367)])(r[i(364)]||i(355))}})}};function K(t,e){const i=z();return(K=function(t,e){return i[t-=112]})(t,e)}function z(){const t=["AppSettings Url is not set","388729XZKPiV","30mmCWWp","other","hostname","340372ChOYbv","5378rrzxTY","sdkEnvironment","appSettings","BASE_URL","fromJson","248588qNNGMI","699128JCvcMH","HASH","result","30MckqLl","appToken","updated_at","Initial Config is not set","2987226kIuFJP","appVersion","success","initialConfig","CONFIG","PLATFORM","444lBriJz","POST","SDK Config is not set","location","config","sendRequest","498feEJzS","appFrameWork","1564020FCJAXR","14qMLteU","SDK","baseUrl"];return(z=function(){return t})()}!function(t){const e=K,i=t();for(;;)try{if(278710===-parseInt(e(124))/1+-parseInt(e(119))/2*(parseInt(e(144))/3)+-parseInt(e(118))/4*(-parseInt(e(115))/5)+-parseInt(e(132))/6+-parseInt(e(147))/7*(-parseInt(e(125))/8)+-parseInt(e(146))/9*(parseInt(e(128))/10)+-parseInt(e(114))/11*(-parseInt(e(138))/12))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(z);const H={doGetConfig(){return e(this,void 0,void 0,function*(){const t=K,e=O[t(135)];if(!e)throw t(131);const i={app_token:e[t(129)],app_version:e.appVersion,framework:e[t(145)],env:d[t(120)],sdk_hash:s[t(148)].HASH,package_name:window[t(141)][t(117)],platform:s[t(148)][t(137)],store_name:t(116)},n=yield G[t(143)](s[t(136)][t(122)],{method:t(139),formData:i});return y.fromJson(n[t(127)])})},doGetAppSettings(){return e(this,void 0,void 0,function*(){const t=K,e=O.initialConfig,i=O[t(142)];if(!e)throw"Initial Config is not set";if(!i)throw"SDK Config is not set";if(!i[t(121)])throw t(113);const n={app_token:e[t(129)],app_version:e[t(133)],framework:e.appFrameWork,env:d[t(120)],sdk_hash:s[t(148)][t(126)],package_name:window.location[t(117)],platform:s[t(148)][t(137)],store_name:t(116)},r=yield G[t(143)](i.baseUrl+i[t(121)],{method:t(139),formData:n});return b[t(123)](r.result)})},doCallRequest(t,i){return e(this,void 0,void 0,function*(){const e=K,n=O[e(135)],r=O[e(142)];if(!n)throw e(131);if(!r)throw e(140);i[e(130)]=(new Date).toISOString();return(yield G[e(143)](r[e(112)]+t,{method:e(139),params:{needs_response_details:d[e(120)]!=u.PRODUCTION,parameters:i}}))[e(134)]})}},Q=Y;function J(){const t=["4117820KaDPCs","hidden","hasFocus","tickerJob","tickerDelay","802757kfjUrM","stop","inactiveDuration","s, inactive duration= ","2743516VuAXKd","2121QdJGBi","5536950FJEFYg","1541725QqYEgD","activeTime","2564oVsDxt","resume","isPaused","start","712629AjcsFZ","activeDuration","pause","8kJSsLj"];return(J=function(){return t})()}function Y(t,e){const i=J();return(Y=function(t,e){return i[t-=438]})(t,e)}!function(t){const e=Y,i=t();for(;;)try{if(476861===parseInt(e(439))/1+parseInt(e(448))/2*(-parseInt(e(444))/3)+parseInt(e(443))/4+parseInt(e(446))/5+-parseInt(e(445))/6+parseInt(e(456))/7+parseInt(e(455))/8*(-parseInt(e(452))/9))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(J);class X{constructor(){this[Y(438)]=1e3,this.isPaused=!1}[Q(451)](){const t=Q;this[t(459)]&&clearInterval(this[t(459)]),this[t(459)]=setInterval(()=>{const e=t;this[e(450)]||document[e(457)]||document[e(458)]()&&(O[e(447)]=Date.now(),O[e(453)]+=this[e(438)])},this[t(438)])}[Q(440)](){const t=Q;clearInterval(this[t(459)]),this[t(459)]=void 0}[Q(454)](){this[Q(450)]=!0}[Q(449)](){this[Q(450)]=!1}}const Z=new X;function $(t,e){const i=et();return($=function(t,e){return i[t-=166]})(t,e)}const tt=$;function et(){const t=["getCountryCode","json","760734RfFOGh","https://api.country.is","tryAllEndpoints","abort","2384eUNIET","4019655StGAQV","3212kKPJUL","383732ADKjci","3dEGZcw","https://free.freeipapi.com/api/json","fetchWithTimeout","1644422FrQkXx","_country","55570zOUtvL","country.is failed","countryCode","https://ipwho.is/","14foVIhV","2115NqGSsD","1010301qskFRo","finally"];return(et=function(){return t})()}!function(t){const e=$,i=t();for(;;)try{if(587262===parseInt(e(185))/1+-parseInt(e(177))/2*(parseInt(e(174))/3)+-parseInt(e(173))/4+-parseInt(e(171))/5+parseInt(e(166))/6*(-parseInt(e(183))/7)+-parseInt(e(170))/8*(parseInt(e(184))/9)+parseInt(e(179))/10*(parseInt(e(172))/11))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(et);class it{constructor(){this._country=null}[tt(187)](){return e(this,void 0,void 0,function*(){const t=$;return!this._country&&(this[t(178)]=yield this[t(168)]()),this[t(178)]})}[tt(168)](){return e(this,void 0,void 0,function*(){const t=[()=>e(this,void 0,void 0,function*(){const t=$,e=yield this[t(176)](t(167));if(!e.ok)throw new Error(t(180));return(yield e[t(188)]()).country||null}),()=>e(this,void 0,void 0,function*(){const t=$,e=yield this[t(176)](t(175));if(!e.ok)throw new Error("country.is failed");return(yield e.json())[t(181)]||null}),()=>e(this,void 0,void 0,function*(){const t=$,e=yield this[t(176)](t(182));if(!e.ok)throw new Error("ipwho.is failed");return(yield e[t(188)]()).country_code||null})];for(const e of t)try{const t=yield e();if(t)return t}catch(t){}return null})}[tt(176)](t){return e(this,arguments,void 0,function*(t,e=2e3){const i=$,n=new AbortController,r=setTimeout(()=>n[i(169)](),e);return fetch(t,{signal:n.signal})[i(186)](()=>clearTimeout(r))})}}const nt=new it;function rt(t,e){const i=ot();return(rt=function(t,e){return i[t-=411]})(t,e)}!function(t){const e=rt,i=t();for(;;)try{if(401994===-parseInt(e(420))/1*(parseInt(e(421))/2)+-parseInt(e(415))/3+parseInt(e(413))/4*(parseInt(e(416))/5)+-parseInt(e(419))/6*(parseInt(e(411))/7)+-parseInt(e(417))/8+-parseInt(e(418))/9+parseInt(e(412))/10)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(ot);const st={generateDeviceUUID:()=>crypto[rt(414)]()};function ot(){const t=["22085180AYLwwK","3604cIDeyM","randomUUID","11238dGfeZX","145Jkzwli","4306560igDPhs","3381615lrbWdy","188826RFAIhr","694555kFXLob","2LZOOjy","49xelJBt"];return(ot=function(){return t})()}function at(t,e){const i=lt();return(at=function(t,e){return i[t-=192]})(t,e)}const ct=at;!function(t){const e=at,i=t();for(;;)try{if(796296===parseInt(e(199))/1*(parseInt(e(200))/2)+-parseInt(e(203))/3*(-parseInt(e(212))/4)+-parseInt(e(215))/5*(-parseInt(e(214))/6)+-parseInt(e(208))/7+parseInt(e(192))/8*(-parseInt(e(205))/9)+parseInt(e(207))/10+-parseInt(e(197))/11)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(lt);class ut{constructor(t,e){const i=at;this[i(213)]=0,this[i(210)]=3,this.id=crypto[i(194)](),this[i(211)]=t,this[i(202)]=e,this[i(193)]=Date[i(201)]()}}class dt{constructor(){const t=at;this[t(196)]=!1,this[t(195)]=[]}[ct(198)](){return e(this,void 0,void 0,function*(){return new Promise(t=>{const e=at;this[e(196)]?this[e(195)][e(206)](t):(this.locked=!0,t())})})}[ct(204)](){const t=ct;if(this[t(195)].length>0){this.waitingQueue[t(209)]()()}else this[t(196)]=!1}}function lt(){const t=["shift","maxRetries","endpoint","28jyGwpy","retryCount","547434bdTekz","50dviuha","16RyvkPy","createdAt","randomUUID","waitingQueue","locked","12476409zAfSyH","acquire","319427DLulHI","2bOfzsL","now","parameters","312387BGVqIp","release","1724301BWQFsj","push","12047800IhOurF","5962649lPtzSg"];return(lt=function(){return t})()}const pt=ht;function ht(t,e){const i=ft();return(ht=function(t,e){return i[t-=400]})(t,e)}function ft(){const t=["pow","maxRetries","retryCount","Queue Manager is not initialized. Call initialize() first.","release","SDK_INFOS","length"," failed. Retry ","processPendingQueue","push_token","80WNImsn"," failed","BACKOFF_MULTIPLIER","processMainQueue","366ogPIJa"," failed with error after "," processed successfully","parameters","requestRecords","): id=","13533530vSMRQE","💥 Sending request (","46077FkjPKK","⏰ Backoff delay ended, resuming queue processing","shutdown","3199721QFIfVS","addPendingRequest","resetBackoffDelay","warn","getMainRequestsSentFlag","pendingRequestRecords","🔄 Backoff delay manually reset","isProcessing","mutex","isCurrentlyProcessing","push","startProcessing","stopProcessing","savePendingQueue","⏳ Request ","getPendingQueue","Applying backoff delay of ","136NibRXg","doCallRequest","endpoint","inactiveDuration","⚠️ Request ","saveMainQueue"," failed after ","79655HdYOrj","fcmToken","activeDuration","718372JvNCZa","now","MAX_DELAY_MS","postRequestCheck","BASE_DELAY_MS","processingInterval","error","❌ Request ","sdkClickSubmit","getQueueStatus","getMainQueue","min","processQueues","subSessionCount","3020176kqghde","PROCESSING_INTERVAL_MS","getBackoffConfig","failedRequestDelay"," attempts. ","sendRequest","log","firstSessionSubmit","503019WlOpLL","11dqRNIc","debug","isInitialized","initialize","SESSIONS","shift","acquire"];return(ft=function(){return t})()}!function(t){const e=ht,i=t();for(;;)try{if(597715===-parseInt(e(438))/1+parseInt(e(428))/2*(parseInt(e(408))/3)+parseInt(e(452))/4+parseInt(e(435))/5*(parseInt(e(400))/6)+parseInt(e(411))/7+parseInt(e(478))/8*(-parseInt(e(460))/9)+parseInt(e(406))/10*(-parseInt(e(461))/11))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(ft);class vt{constructor(){const t=ht;this[t(463)]=!1,this[t(418)]=!1,this[t(420)]=!1,this[t(419)]=new dt,this[t(443)]=null,this[t(453)]=100,this[t(455)]=0,this[t(440)]=3e4,this[t(480)]=2,this[t(442)]=1e3}[pt(464)](){return e(this,void 0,void 0,function*(){const t=ht;this.isInitialized=!0,!this[t(418)]&&(yield this[t(422)]())})}[pt(410)](){return e(this,void 0,void 0,function*(){const t=ht;this.isInitialized&&(yield this[t(423)](),this[t(463)]=!1)})}startProcessing(){return e(this,void 0,void 0,function*(){const t=ht;if(this[t(463)]){yield this[t(419)][t(467)]();try{if(this[t(418)])return;this.isProcessing=!0,this.processingInterval=setInterval(()=>e(this,void 0,void 0,function*(){const e=t;try{yield this[e(450)]()}catch(t){C[e(444)]("Error in processing loop:",t)}}),this[t(453)])}finally{this.mutex.release()}yield this[t(450)]()}else C.warn(t(471))})}[pt(423)](){return e(this,void 0,void 0,function*(){const t=ht;yield this[t(419)][t(467)]();try{this[t(418)]=!1,this[t(443)]&&(clearInterval(this[t(443)]),this.processingInterval=null)}finally{this[t(419)][t(472)]()}})}addRequest(t){return e(this,void 0,void 0,function*(){const e=ht;yield this[e(419)][e(467)]();try{const i=this[e(448)]();if(i.push(t),this.saveMainQueue(i),this[e(455)]=0,!this[e(418)])return this[e(419)][e(472)](),void(yield this[e(422)]())}finally{this.isProcessing&&this.mutex[e(472)]()}})}[pt(412)](t){return e(this,void 0,void 0,function*(){const e=ht;yield this[e(419)][e(467)]();try{if(this.getMainRequestsSentFlag()){const i=this[e(448)]();i[e(421)](t),this[e(433)](i)}else{const i=this[e(426)]();i.push(t),this[e(424)](i)}if(this[e(455)]=0,!this[e(418)])return this.mutex[e(472)](),void(yield this[e(422)]())}finally{this[e(418)]&&this.mutex[e(472)]()}})}[pt(450)](){return e(this,void 0,void 0,function*(){const t=ht;if(this[t(418)]&&!this[t(420)]){if(this[t(455)]>0){if(Date[t(439)]()<this[t(455)])return;this[t(455)]=0,C.debug(t(409))}this[t(420)]=!0,yield this.mutex[t(467)]();try{yield this.processMainQueue(),yield this[t(476)]()}finally{this[t(419)].release(),this[t(420)]=!1}}})}[pt(481)](){return e(this,void 0,void 0,function*(){const t=ht,e=this[t(448)]();if(0===e.length)return;const i=e[0];try{if(yield this[t(457)](i))e[t(466)](),this[t(433)](e),this[t(441)](i),C[t(462)]("✅ Request "+i.id+t(402));else{if(e[0].retryCount++,e[0][t(470)]>=e[0][t(469)]){const n=this.calculateBackoffDelay(e[0].retryCount);this[t(455)]=Date[t(439)]()+n,C[t(414)](t(425)+i.id+t(434)+i[t(469)]+t(456)+"Applying backoff delay of "+n+"ms")}else C.warn(t(432)+i.id+t(475)+e[0][t(470)]+"/"+e[0][t(469)]);this[t(433)](e)}}catch(n){if(C[t(444)]("Error sending request "+i[t(430)]+":",n),e[0][t(470)]++,e[0].retryCount>=e[0].maxRetries){const n=this.calculateBackoffDelay(e[0].retryCount);this[t(455)]=Date[t(439)]()+n,C[t(414)](t(425)+i.id+t(401)+e[0].maxRetries+t(456)+(t(427)+n+"ms"))}this[t(433)](e)}})}calculateBackoffDelay(t){const e=pt,i=this[e(442)]*Math[e(468)](this[e(480)],t-1);return Math[e(449)](i,this[e(440)])}[pt(476)](){return e(this,void 0,void 0,function*(){const t=ht;if(!this[t(415)]())return;const e=this[t(426)]();if(0===e.length)return;const i=this[t(448)]();i[t(421)](...e),this.saveMainQueue(i),this[t(424)]([])})}sendRequest(t){return e(this,arguments,void 0,function*(t,e=1){const i=ht;C.debug(i(407)+t[i(430)]+i(405)+t.id);let n=!1;try{n=yield H[i(429)](t[i(430)],t.parameters)}catch(e){C[i(444)](i(445)+t[i(430)]+i(479),e)}return n})}[pt(448)](){return O[pt(404)]}[pt(433)](t){O[pt(404)]=t}[pt(426)](){return O[pt(416)]}savePendingQueue(t){O[pt(416)]=t}[pt(415)](){return O[pt(446)]}[pt(441)](t){const e=pt;switch(t[e(430)]){case h.SDK_CLICKS:O[e(446)]=!0;break;case h[e(465)]:O[e(459)]?(O[e(437)]=0,O[e(431)]=0,O[e(451)]=1):O[e(459)]=!0;break;case h[e(473)]:O[e(436)]=t[e(403)][e(477)]}}[pt(447)](){const t=pt;return{mainQueueLength:this[t(448)]()[t(474)],pendingQueueLength:this.getPendingQueue().length,isProcessing:this[t(418)],mainRequestsSent:this.getMainRequestsSentFlag(),isInBackoffDelay:this[t(455)]>0&&Date[t(439)]()<this[t(455)],backoffEndsAt:this[t(455)]>0?this[t(455)]:null}}[pt(413)](){const t=pt;this[t(455)]=0,C[t(462)](t(417))}[pt(454)](){return{baseDelayMs:this[pt(442)],multiplier:this.BACKOFF_MULTIPLIER,maxDelayMs:this.MAX_DELAY_MS}}}const wt=new vt;var gt,bt="user-agent",It="",mt="function",St="undefined",yt="object",kt="string",Et="browser",_t="cpu",Tt="device",xt="engine",Ct="os",Nt="result",Dt="name",At="type",Rt="vendor",Ot="version",Lt="architecture",Ut="major",Ft="model",Pt="console",qt="mobile",Mt="tablet",Bt="smarttv",Wt="wearable",Vt="xr",jt="embedded",Gt="inapp",Kt="brands",zt="formFactors",Ht="fullVersionList",Qt="platform",Jt="platformVersion",Yt="bitness",Xt="sec-ch-ua",Zt=Xt+"-full-version-list",$t=Xt+"-arch",te=Xt+"-"+Yt,ee=Xt+"-form-factors",ie=Xt+"-"+qt,ne=Xt+"-"+Ft,re=Xt+"-"+Qt,se=re+"-version",oe=[Kt,Ht,qt,Ft,Qt,Jt,Lt,zt,Yt],ae="Amazon",ce="Apple",ue="ASUS",de="BlackBerry",le="Google",pe="Huawei",he="Lenovo",fe="Honor",ve="LG",we="Microsoft",ge="Motorola",be="Nvidia",Ie="OnePlus",me="OPPO",Se="Samsung",ye="Sharp",ke="Sony",Ee="Xiaomi",_e="Zebra",Te="Chrome",xe="Chromium",Ce="Chromecast",Ne="Edge",De="Firefox",Ae="Opera",Re="Facebook",Oe="Sogou",Le="Mobile ",Ue=" Browser",Fe="Windows",Pe=typeof window!==St&&window.navigator?window.navigator:void 0,qe=Pe&&Pe.userAgentData?Pe.userAgentData:void 0,Me=function(t){for(var e={},i=0;i<t.length;i++)e[t[i].toUpperCase()]=t[i];return e},Be=function(t,e){if(typeof t===yt&&t.length>0){for(var i in t)if(Ge(e)==Ge(t[i]))return!0;return!1}return!!Ve(t)&&Ge(e)==Ge(t)},We=function(t,e){for(var i in t)return/^(browser|cpu|device|engine|os)$/.test(i)||!!e&&We(t[i])},Ve=function(t){return typeof t===kt},je=function(t){if(t){for(var e=[],i=He(/\\?\"/g,t).split(","),n=0;n<i.length;n++)if(i[n].indexOf(";")>-1){var r=Je(i[n]).split(";v=");e[n]={brand:r[0],version:r[1]}}else e[n]=Je(i[n]);return e}},Ge=function(t){return Ve(t)?t.toLowerCase():t},Ke=function(t){return Ve(t)?He(/[^\d\.]/g,t).split(".")[0]:void 0},ze=function(t){for(var e in t){var i=t[e];typeof i==yt&&2==i.length?this[i[0]]=i[1]:this[i]=void 0}return this},He=function(t,e){return Ve(e)?e.replace(t,It):e},Qe=function(t){return He(/\\?\"/g,t)},Je=function(t,e){if(Ve(t))return t=He(/^\s\s*/,t),typeof e===St?t:t.substring(0,500)},Ye=function(t,e){if(t&&e)for(var i,n,r,s,o,a,c=0;c<e.length&&!o;){var u=e[c],d=e[c+1];for(i=n=0;i<u.length&&!o&&u[i];)if(o=u[i++].exec(t))for(r=0;r<d.length;r++)a=o[++n],typeof(s=d[r])===yt&&s.length>0?2===s.length?typeof s[1]==mt?this[s[0]]=s[1].call(this,a):this[s[0]]=s[1]:s.length>=3&&(typeof s[1]!==mt||s[1].exec&&s[1].test?3==s.length?this[s[0]]=a?a.replace(s[1],s[2]):void 0:4==s.length?this[s[0]]=a?s[3].call(this,a.replace(s[1],s[2])):void 0:s.length>4&&(this[s[0]]=a?s[3].apply(this,[a.replace(s[1],s[2])].concat(s.slice(4))):void 0):s.length>3?this[s[0]]=a?s[1].apply(this,s.slice(2)):void 0:this[s[0]]=a?s[1].call(this,a,s[2]):void 0):this[s]=a||void 0;c+=2}},Xe=function(t,e){for(var i in e)if(typeof e[i]===yt&&e[i].length>0){for(var n=0;n<e[i].length;n++)if(Be(e[i][n],t))return"?"===i?void 0:i}else if(Be(e[i],t))return"?"===i?void 0:i;return e.hasOwnProperty("*")?e["*"]:t},Ze={ME:"4.90","NT 3.51":"3.51","NT 4.0":"4.0",2e3:["5.0","5.01"],XP:["5.1","5.2"],Vista:"6.0",7:"6.1",8:"6.2",8.1:"6.3",10:["6.4","10.0"],NT:""},$e={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},ti={Chrome:"Google Chrome",Edge:"Microsoft Edge","Edge WebView2":"Microsoft Edge WebView2","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome","Huawei Browser":"HuaweiBrowser","MIUI Browser":"Miui Browser","Opera Mobi":"OperaMobile",Yandex:"YaBrowser"},ei={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[Ot,[Dt,Le+"Chrome"]],[/webview.+edge\/([\w\.]+)/i],[Ot,[Dt,Ne+" WebView"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[Ot,[Dt,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[Dt,Ot],[/opios[\/ ]+([\w\.]+)/i],[Ot,[Dt,Ae+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[Ot,[Dt,Ae+" GX"]],[/\bopr\/([\w\.]+)/i],[Ot,[Dt,Ae]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[Ot,[Dt,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[Ot,[Dt,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:lg |qute)browser)\/([-\w\.]+)/i,/(heytap|ovi|115|surf)browser\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[Dt,Ot],[/quark(?:pc)?\/([-\w\.]+)/i],[Ot,[Dt,"Quark"]],[/\bddg\/([\w\.]+)/i],[Ot,[Dt,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[Ot,[Dt,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[Ot,[Dt,"WeChat"]],[/konqueror\/([\w\.]+)/i],[Ot,[Dt,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[Ot,[Dt,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[Ot,[Dt,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[Ot,[Dt,"Smart "+he+Ue]],[/(avast|avg)\/([\w\.]+)/i],[[Dt,/(.+)/,"$1 Secure"+Ue],Ot],[/\bfocus\/([\w\.]+)/i],[Ot,[Dt,De+" Focus"]],[/\bopt\/([\w\.]+)/i],[Ot,[Dt,Ae+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[Ot,[Dt,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[Ot,[Dt,"Dolphin"]],[/coast\/([\w\.]+)/i],[Ot,[Dt,Ae+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[Ot,[Dt,"MIUI"+Ue]],[/fxios\/([\w\.-]+)/i],[Ot,[Dt,Le+De]],[/\bqihoobrowser\/?([\w\.]*)/i],[Ot,[Dt,"360"]],[/\b(qq)\/([\w\.]+)/i],[[Dt,/(.+)/,"$1Browser"],Ot],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[Dt,/(.+)/,"$1"+Ue],Ot],[/samsungbrowser\/([\w\.]+)/i],[Ot,[Dt,Se+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[Ot,[Dt,Oe+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[Dt,Oe+" Mobile"],Ot],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[Dt,Ot],[/(lbbrowser|rekonq)/i],[Dt],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[Ot,Dt],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[Dt,Re],Ot,[At,Gt]],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(instagram|snapchat|klarna)[\/ ]([-\w\.]+)/i],[Dt,Ot,[At,Gt]],[/\bgsa\/([\w\.]+) .*safari\//i],[Ot,[Dt,"GSA"],[At,Gt]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[Ot,[Dt,"TikTok"],[At,Gt]],[/\[(linkedin)app\]/i],[Dt,[At,Gt]],[/(chromium)[\/ ]([-\w\.]+)/i],[Dt,Ot],[/headlesschrome(?:\/([\w\.]+)| )/i],[Ot,[Dt,Te+" Headless"]],[/wv\).+chrome\/([\w\.]+).+edgw\//i],[Ot,[Dt,Ne+" WebView2"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[Dt,Te+" WebView"],Ot],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[Ot,[Dt,"Android"+Ue]],[/chrome\/([\w\.]+) mobile/i],[Ot,[Dt,Le+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[Dt,Ot],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[Ot,[Dt,Le+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[Dt,Le+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[Ot,Dt],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[Dt,[Ot,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[Dt,Ot],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[Dt,Le+De],Ot],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[Dt,"Netscape"],Ot],[/(wolvic|librewolf)\/([\w\.]+)/i],[Dt,Ot],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[Ot,[Dt,De+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[Dt,[Ot,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[Dt,[Ot,/[^\d\.]+./,It]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[Lt,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[Lt,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[Lt,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[Lt,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[Lt,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[Lt,/ower/,It,Ge]],[/ sun4\w[;\)]/i],[[Lt,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[Lt,Ge]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[Ft,[Rt,Se],[At,Mt]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr]|browser)[-\w]+)/i,/sec-(sgh\w+)/i],[Ft,[Rt,Se],[At,qt]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[Ft,[Rt,ce],[At,qt]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[Ft,[Rt,ce],[At,Mt]],[/(macintosh);/i],[Ft,[Rt,ce]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[Ft,[Rt,ye],[At,qt]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[Ft,[Rt,fe],[At,Mt]],[/honor([-\w ]+)[;\)]/i],[Ft,[Rt,fe],[At,qt]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[Ft,[Rt,pe],[At,Mt]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[Ft,[Rt,pe],[At,qt]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[Ft,/_/g," "],[Rt,Ee],[At,Mt]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[Ft,/_/g," "],[Rt,Ee],[At,qt]],[/droid.+; (cph2[3-6]\d[13579]|((gm|hd)19|(ac|be|in|kb)20|(d[en]|eb|le|mt)21|ne22)[0-2]\d|p[g-k]\w[1m]10)\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[Ft,[Rt,Ie],[At,qt]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[Ft,[Rt,me],[At,qt]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[Ft,[Rt,Xe,{OnePlus:["203","304","403","404","413","415"],"*":me}],[At,Mt]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[Ft,[Rt,"BLU"],[At,qt]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[Ft,[Rt,"Vivo"],[At,qt]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[Ft,[Rt,"Realme"],[At,qt]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[Ft,[Rt,he],[At,Mt]],[/lenovo[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i],[Ft,[Rt,he],[At,qt]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ]([\w\s]+)(\)| bui)/i,/((?:moto(?! 360)[-\w\(\) ]+|xt\d{3,4}[cgkosw\+]?[-\d]*|nexus 6)(?= bui|\)))/i],[Ft,[Rt,ge],[At,qt]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[Ft,[Rt,ge],[At,Mt]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[Ft,[Rt,ve],[At,Mt]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch|webos))(\w+)/i,/\blg-?([\d\w]+) bui/i],[Ft,[Rt,ve],[At,qt]],[/(nokia) (t[12][01])/i],[Rt,Ft,[At,Mt]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[Ft,/_/g," "],[At,qt],[Rt,"Nokia"]],[/(pixel (c|tablet))\b/i],[Ft,[Rt,le],[At,Mt]],[/droid.+;(?: google)? (g(01[13]a|020[aem]|025[jn]|1b60|1f8f|2ybb|4s1m|576d|5nz6|8hhn|8vou|a02099|c15s|d1yq|e2ae|ec77|gh2x|kv4x|p4bc|pj41|r83y|tt9q|ur25|wvk6)|pixel[\d ]*a?( pro)?( xl)?( fold)?( \(5g\))?)( bui|\))/i],[Ft,[Rt,le],[At,qt]],[/(google) (pixelbook( go)?)/i],[Rt,Ft],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-\w\w\d\d)(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[Ft,[Rt,ke],[At,qt]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[Ft,"Xperia Tablet"],[Rt,ke],[At,Mt]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[Ft,[Rt,ae],[At,Mt]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[Ft,/(.+)/g,"Fire Phone $1"],[Rt,ae],[At,qt]],[/(playbook);[-\w\),; ]+(rim)/i],[Ft,Rt,[At,Mt]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[Ft,[Rt,de],[At,qt]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[Ft,[Rt,ue],[At,Mt]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[Ft,[Rt,ue],[At,qt]],[/(nexus 9)/i],[Ft,[Rt,"HTC"],[At,Mt]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[Rt,[Ft,/_/g," "],[At,qt]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[Ft,[Rt,"TCL"],[At,Mt]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[Ft,[Rt,"TCL"],[At,qt]],[/(itel) ((\w+))/i],[[Rt,Ge],Ft,[At,Xe,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[Ft,[Rt,"Acer"],[At,Mt]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[Ft,[Rt,"Meizu"],[At,qt]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[Ft,[Rt,"Ulefone"],[At,qt]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[Ft,[Rt,"Energizer"],[At,qt]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[Ft,[Rt,"Cat"],[At,qt]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[Ft,[Rt,"Smartfren"],[At,qt]],[/droid.+; (a(in)?(0(15|59|6[35])|142)p?)/i],[Ft,[Rt,"Nothing"],[At,qt]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[Ft,[Rt,"Archos"],[At,Mt]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[Ft,[Rt,"Archos"],[At,qt]],[/; (n159v)/i],[Ft,[Rt,"HMD"],[At,qt]],[/(imo) (tab \w+)/i,/(infinix|tecno) (x1101b?|p904|dp(7c|8d|10a)( pro)?|p70[1-3]a?|p904|t1101)/i],[Rt,Ft,[At,Mt]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (blu|hmd|imo|infinix|lava|oneplus|tcl)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(oppo) ?([\w ]+) bui/i],[Rt,Ft,[At,qt]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[Rt,Ft,[At,Mt]],[/(surface duo)/i],[Ft,[Rt,we],[At,Mt]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[Ft,[Rt,"Fairphone"],[At,qt]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[Ft,[Rt,be],[At,Mt]],[/(sprint) (\w+)/i],[Rt,Ft,[At,qt]],[/(kin\.[onetw]{3})/i],[[Ft,/\./g," "],[Rt,we],[At,qt]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[Ft,[Rt,_e],[At,Mt]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[Ft,[Rt,_e],[At,qt]],[/smart-tv.+(samsung)/i],[Rt,[At,Bt]],[/hbbtv.+maple;(\d+)/i],[[Ft,/^/,"SmartTV"],[Rt,Se],[At,Bt]],[/(vizio)(?: |.+model\/)(\w+-\w+)/i,/tcast.+(lg)e?. ([-\w]+)/i],[Rt,Ft,[At,Bt]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[Rt,ve],[At,Bt]],[/(apple) ?tv/i],[Rt,[Ft,ce+" TV"],[At,Bt]],[/crkey.*devicetype\/chromecast/i],[[Ft,Ce+" Third Generation"],[Rt,le],[At,Bt]],[/crkey.*devicetype\/([^/]*)/i],[[Ft,/^/,"Chromecast "],[Rt,le],[At,Bt]],[/fuchsia.*crkey/i],[[Ft,Ce+" Nest Hub"],[Rt,le],[At,Bt]],[/crkey/i],[[Ft,Ce],[Rt,le],[At,Bt]],[/(portaltv)/i],[Ft,[Rt,Re],[At,Bt]],[/droid.+aft(\w+)( bui|\))/i],[Ft,[Rt,ae],[At,Bt]],[/(shield \w+ tv)/i],[Ft,[Rt,be],[At,Bt]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[Ft,[Rt,ye],[At,Bt]],[/(bravia[\w ]+)( bui|\))/i],[Ft,[Rt,ke],[At,Bt]],[/(mi(tv|box)-?\w+) bui/i],[Ft,[Rt,Ee],[At,Bt]],[/Hbbtv.*(technisat) (.*);/i],[Rt,Ft,[At,Bt]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[Rt,/.+\/(\w+)/,"$1",Xe,{LG:"lge"}],[Ft,Je],[At,Bt]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[Ft,[At,Bt]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:|large screen[\w ]+safari)\b/i],[[At,Bt]],[/(playstation \w+)/i],[Ft,[Rt,ke],[At,Pt]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[Ft,[Rt,we],[At,Pt]],[/(ouya)/i,/(nintendo) (\w+)/i,/(retroid) (pocket ([^\)]+))/i],[Rt,Ft,[At,Pt]],[/droid.+; (shield)( bui|\))/i],[Ft,[Rt,be],[At,Pt]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[Ft,[Rt,Se],[At,Wt]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[Rt,Ft,[At,Wt]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[Ft,[Rt,me],[At,Wt]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[Ft,[Rt,ce],[At,Wt]],[/(opwwe\d{3})/i],[Ft,[Rt,Ie],[At,Wt]],[/(moto 360)/i],[Ft,[Rt,ge],[At,Wt]],[/(smartwatch 3)/i],[Ft,[Rt,ke],[At,Wt]],[/(g watch r)/i],[Ft,[Rt,ve],[At,Wt]],[/droid.+; (wt63?0{2,3})\)/i],[Ft,[Rt,_e],[At,Wt]],[/droid.+; (glass) \d/i],[Ft,[Rt,le],[At,Vt]],[/(pico) (4|neo3(?: link|pro)?)/i],[Rt,Ft,[At,Vt]],[/(quest( \d| pro)?s?).+vr/i],[Ft,[Rt,Re],[At,Vt]],[/mobile vr; rv.+firefox/i],[[At,Vt]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[Rt,[At,jt]],[/(aeobc)\b/i],[Ft,[Rt,ae],[At,jt]],[/(homepod).+mac os/i],[Ft,[Rt,ce],[At,jt]],[/windows iot/i],[[At,jt]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+?(mobile|vr|\d) safari/i],[Ft,[At,Xe,{mobile:"Mobile",xr:"VR","*":Mt}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[At,Mt]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[At,qt]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[Ft,[Rt,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[Ot,[Dt,Ne+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[Dt,Ot],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[Ot,[Dt,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[Dt,Ot],[/ladybird\//i],[[Dt,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[Ot,Dt]],os:[[/(windows nt) (6\.[23]); arm/i],[[Dt,/N/,"R"],[Ot,Xe,Ze]],[/(windows (?:phone|mobile|iot))(?: os)?[\/ ]?([\d\.]*( se)?)/i,/(windows)[\/ ](1[01]|2000|3\.1|7|8(\.1)?|9[58]|me|server 20\d\d( r2)?|vista|xp)/i],[Dt,Ot],[/windows nt ?([\d\.\)]*)(?!.+xbox)/i,/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d\.;]*)/i],[[Ot,/(;|\))/g,"",Xe,Ze],[Dt,Fe]],[/(windows ce)\/?([\d\.]*)/i],[Dt,Ot],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[Ot,/_/g,"."],[Dt,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i],[[Dt,"macOS"],[Ot,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[Ot,[Dt,Ce+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[Ot,[Dt,Ce+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[Ot,[Dt,Ce+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[Ot,[Dt,Ce+" Linux"]],[/crkey\/([\d\.]+)/i],[Ot,[Dt,Ce]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[Ot,Dt],[/(ubuntu) ([\w\.]+) like android/i],[[Dt,/(.+)/,"$1 Touch"],Ot],[/(harmonyos)[\/ ]?([\d\.]*)/i,/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen)\w*[-\/\.; ]?([\d\.]*)/i],[Dt,Ot],[/\(bb(10);/i],[Ot,[Dt,de]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[Ot,[Dt,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[Ot,[Dt,De+" OS"]],[/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i,/webos(?:[ \/]?|\.tv-20(?=2[2-9]))(\d[\d\.]*)/i],[Ot,[Dt,"webOS"]],[/web0s;.+?(?:chr[o0]me|safari)\/(\d+)/i],[[Ot,Xe,{25:"120",24:"108",23:"94",22:"87",6:"79",5:"68",4:"53",3:"38",2:"538",1:"537","*":"TV"}],[Dt,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[Ot,[Dt,"watchOS"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[Dt,"Chrome OS"],Ot],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/linux.+(mint)[\/\(\) ]?([\w\.]*)/i,/(mageia|vectorlinux|fuchsia|arcaos|arch(?= ?linux))[;l ]([\d\.]*)/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire|knoppix)(?: gnu[\/ ]linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/\b(aix)[; ]([1-9\.]{0,4})/i,/(hurd|linux|morphos)(?: (?:arm|x86|ppc)\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) ?(r\d)?/i],[Dt,Ot],[/(sunos) ?([\d\.]*)/i],[[Dt,"Solaris"],Ot],[/\b(beos|os\/2|amigaos|openvms|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[Dt,Ot]]},ii=(ze.call((gt={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}}).init,[[Et,[Dt,Ot,Ut,At]],[_t,[Lt]],[Tt,[At,Ft,Rt]],[xt,[Dt,Ot]],[Ct,[Dt,Ot]]]),ze.call(gt.isIgnore,[[Et,[Ot,Ut]],[xt,[Ot]],[Ct,[Ot]]]),ze.call(gt.isIgnoreRgx,[[Et,/ ?browser$/i],[Ct,/ ?os$/i]]),ze.call(gt.toString,[[Et,[Dt,Ot]],[_t,[Lt]],[Tt,[Rt,Ft]],[xt,[Dt,Ot]],[Ct,[Dt,Ot]]]),gt),ni=function(t,e){var i=ii.init[e],n=ii.isIgnore[e]||0,r=ii.isIgnoreRgx[e]||0,s=ii.toString[e]||0;function o(){ze.call(this,i)}return o.prototype.getItem=function(){return t},o.prototype.withClientHints=function(){return qe?qe.getHighEntropyValues(oe).then(function(e){return t.setCH(new ri(e,!1)).parseCH().get()}):t.parseCH().get()},o.prototype.withFeatureCheck=function(){return t.detectFeature().get()},e!=Nt&&(o.prototype.is=function(t){var e=!1;for(var i in this)if(this.hasOwnProperty(i)&&!Be(n,i)&&Ge(r?He(r,this[i]):this[i])==Ge(r?He(r,t):t)){if(e=!0,t!=St)break}else if(t==St&&e){e=!e;break}return e},o.prototype.toString=function(){var t=It;for(var e in s)typeof this[s[e]]!==St&&(t+=(t?" ":It)+this[s[e]]);return t||St}),qe||(o.prototype.then=function(t){var e=this,i=function(){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])};i.prototype={is:o.prototype.is,toString:o.prototype.toString};var n=new i;return t(n),n}),new o};function ri(t,e){if(t=t||{},ze.call(this,oe),e)ze.call(this,[[Kt,je(t[Xt])],[Ht,je(t[Zt])],[qt,/\?1/.test(t[ie])],[Ft,Qe(t[ne])],[Qt,Qe(t[re])],[Jt,Qe(t[se])],[Lt,Qe(t[$t])],[zt,je(t[ee])],[Yt,Qe(t[te])]]);else for(var i in t)this.hasOwnProperty(i)&&typeof t[i]!==St&&(this[i]=t[i])}function si(t,e,i,n){return this.get=function(t){return t?this.data.hasOwnProperty(t)?this.data[t]:void 0:this.data},this.set=function(t,e){return this.data[t]=e,this},this.setCH=function(t){return this.uaCH=t,this},this.detectFeature=function(){if(Pe&&Pe.userAgent==this.ua)switch(this.itemType){case Et:Pe.brave&&typeof Pe.brave.isBrave==mt&&this.set(Dt,"Brave");break;case Tt:!this.get(At)&&qe&&qe[qt]&&this.set(At,qt),"Macintosh"==this.get(Ft)&&Pe&&typeof Pe.standalone!==St&&Pe.maxTouchPoints&&Pe.maxTouchPoints>2&&this.set(Ft,"iPad").set(At,Mt);break;case Ct:!this.get(Dt)&&qe&&qe[Qt]&&this.set(Dt,qe[Qt]);break;case Nt:var t=this.data,e=function(e){return t[e].getItem().detectFeature().get()};this.set(Et,e(Et)).set(_t,e(_t)).set(Tt,e(Tt)).set(xt,e(xt)).set(Ct,e(Ct))}return this},this.parseUA=function(){return this.itemType!=Nt&&Ye.call(this.data,this.ua,this.rgxMap),this.itemType==Et&&this.set(Ut,Ke(this.get(Ot))),this},this.parseCH=function(){var t=this.uaCH,e=this.rgxMap;switch(this.itemType){case Et:case xt:var i,n=t[Ht]||t[Kt];if(n)for(var r in n){var s=n[r].brand||n[r],o=n[r].version;this.itemType==Et&&!/not.a.brand/i.test(s)&&(!i||/Chrom/.test(i)&&s!=xe||i==Ne&&/WebView2/.test(s))&&(s=Xe(s,ti),(i=this.get(Dt))&&!/Chrom/.test(i)&&/Chrom/.test(s)||this.set(Dt,s).set(Ot,o).set(Ut,Ke(o)),i=s),this.itemType==xt&&s==xe&&this.set(Ot,o)}break;case _t:var a=t[Lt];a&&(a&&"64"==t[Yt]&&(a+="64"),Ye.call(this.data,a+";",e));break;case Tt:if(t[qt]&&this.set(At,qt),t[Ft]&&(this.set(Ft,t[Ft]),!this.get(At)||!this.get(Rt))){var c={};Ye.call(c,"droid 9; "+t[Ft]+")",e),!this.get(At)&&c.type&&this.set(At,c.type),!this.get(Rt)&&c.vendor&&this.set(Rt,c.vendor)}if(t[zt]){var u;if("string"!=typeof t[zt])for(var d=0;!u&&d<t[zt].length;)u=Xe(t[zt][d++],$e);else u=Xe(t[zt],$e);this.set(At,u)}break;case Ct:var l=t[Qt];if(l){var p=t[Jt];l==Fe&&(p=parseInt(Ke(p),10)>=13?"11":"10"),this.set(Dt,l).set(Ot,p)}this.get(Dt)==Fe&&"Xbox"==t[Ft]&&this.set(Dt,"Xbox").set(Ot,void 0);break;case Nt:var h=this.data,f=function(e){return h[e].getItem().setCH(t).parseCH().get()};this.set(Et,f(Et)).set(_t,f(_t)).set(Tt,f(Tt)).set(xt,f(xt)).set(Ct,f(Ct))}return this},ze.call(this,[["itemType",t],["ua",e],["uaCH",n],["rgxMap",i],["data",ni(this,t)]]),this}function oi(t,e,i){if(typeof t===yt?(We(t,!0)?(typeof e===yt&&(i=e),e=t):(i=t,e=void 0),t=void 0):typeof t!==kt||We(e,!0)||(i=e,e=void 0),i&&typeof i.append===mt){var n={};i.forEach(function(t,e){n[e]=t}),i=n}if(!(this instanceof oi))return new oi(t,e,i).getResult();var r=typeof t===kt?t:i&&i[bt]?i[bt]:Pe&&Pe.userAgent?Pe.userAgent:It,s=new ri(i,!0),o=e?function(t,e){var i={},n=e;if(!We(e))for(var r in n={},e)for(var s in e[r])n[s]=e[r][s].concat(n[s]?n[s]:[]);for(var o in t)i[o]=n[o]&&n[o].length%2==0?n[o].concat(t[o]):t[o];return i}(ei,e):ei,a=function(t){return t==Nt?function(){return new si(t,r,o,s).set("ua",r).set(Et,this.getBrowser()).set(_t,this.getCPU()).set(Tt,this.getDevice()).set(xt,this.getEngine()).set(Ct,this.getOS()).get()}:function(){return new si(t,r,o[t],s).parseUA().get()}};return ze.call(this,[["getBrowser",a(Et)],["getCPU",a(_t)],["getDevice",a(Tt)],["getEngine",a(xt)],["getOS",a(Ct)],["getResult",a(Nt)],["getUA",function(){return r}],["setUA",function(t){return Ve(t)&&(r=t.length>500?Je(t,500):t),this}]]).setUA(r),this}function ai(t,e){const i=ui();return(ai=function(t,e){return i[t-=193]})(t,e)}oi.VERSION="2.0.4",oi.BROWSER=Me([Dt,Ot,Ut,At]),oi.CPU=Me([Lt]),oi.DEVICE=Me([Ft,Rt,At,Pt,qt,Bt,Mt,Wt,jt]),oi.ENGINE=oi.OS=Me([Dt,Ot]);const ci=ai;function ui(){const t=["pow","touch","sqrt","watch","browser","matchMedia","(prefers-color-scheme: dark)","netcast","2762510FxrKqV","screenFormat","oculus","devicePixelRatio","456zTlAia","toFixed","device","googletv","low","engine","33SvyDdq","532451dzksoc","5078736mEVELH","type","246taKaYD","carplay","normal","long","innerWidth","ontouchstart","5ZSixLR","124971sHmRIC","console","256AydEeu","getResult","appletv","3895416BfdZgK","pointer","width","smart-tv","screenType","vive","getDeviceInfo","hbbtv","cpu","10912zxvzxR","includes","car","uiMode","playstation","medium"];return(ui=function(){return t})()}!function(t){const e=ai,i=t();for(;;)try{if(432542===-parseInt(e(207))/1+-parseInt(e(210))/2*(parseInt(e(200))/3)+-parseInt(e(231))/4*(parseInt(e(216))/5)+-parseInt(e(208))/6+parseInt(e(217))/7*(parseInt(e(219))/8)+parseInt(e(222))/9+parseInt(e(196))/10*(parseInt(e(206))/11))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(ui);class di{[ci(228)](){const t=ci,e=(new oi)[t(220)]();return{browser:e[t(241)],os:e.os,device:e[t(202)],engine:e[t(205)],cpu:e[t(230)],ua:e.ua}}get screenDensity(){const t=ci;return window[t(199)]>=3?"high":window.devicePixelRatio>=2?t(236):t(204)}get[ci(197)](){const t=ci;return window.innerHeight>window[t(214)]?t(213):t(212)}get screenSize(){const t=ci,e=window[t(214)];return e<480?"small":e<768?t(212):e<1440?"large":"xlarge"}get[ci(234)](){const t=ci;var e,i,n;const r=this[t(228)](),s=(null===(e=r.device)||void 0===e?void 0:e[t(209)])||"",o=(null===(n=null===(i=r[t(202)])||void 0===i?void 0:i.model)||void 0===n?void 0:n.toLowerCase())||"",a=r.ua.toLowerCase();return"wearable"===s||o[t(232)](t(240))?6:"smarttv"===s||a[t(232)](t(225))||a[t(232)](t(229))||a[t(232)](t(195))||a[t(232)](t(203))||a.includes(t(221))?4:s===t(218)||a[t(232)](t(235))||a[t(232)]("xbox")||a.includes("nintendo")?5:a.includes(t(233))||a[t(232)]("android auto")||a[t(232)](t(211))?3:a[t(232)](t(198))||a[t(232)](t(227))||a[t(232)]("vr")||"embedded"===s?7:"mobile"===s||"tablet"===s?1:""===s||"desktop"===s?2:0}get uiStyle(){const t=ci;return window[t(193)]&&window[t(193)](t(194)).matches?"1":"0"}get displaySize(){const t=ci,e=window[t(199)]||1,i=screen[t(224)]*e/160,n=screen.height*e/160;return Math[t(239)](Math[t(237)](i,2)+Math.pow(n,2))[t(201)](2)}get[ci(226)](){const t=ci;return t(215)in window||navigator.maxTouchPoints>0?t(238):t(223)}}const li=new di;function pi(){const t=["getSupportResult","3466776IGsjqZ","indexedDB","isIndexedDBSupported","1111134NpCbMg","onerror","supportResults","getItem","deleteDatabase","removeItem","1636369yTgNRY","24YtBvMU","onsuccess","5yzowmi","result","40kJyreA","setItem","3155805GvswWW","347133KdCwKd","open","__test__check__","close","28029EdwMDH","resolve","isSessionStorageSupported","38205013pOuHtC","302LOgRMU","key","getStorageSizeBytes","isLocalStorageSupported","length"];return(pi=function(){return t})()}const hi=fi;function fi(t,e){const i=pi();return(fi=function(t,e){return i[t-=339]})(t,e)}!function(t){const e=fi,i=t();for(;;)try{if(746241===-parseInt(e(344))/1+parseInt(e(352))/2*(parseInt(e(348))/3)+parseInt(e(358))/4+parseInt(e(339))/5*(parseInt(e(361))/6)+parseInt(e(367))/7*(parseInt(e(368))/8)+parseInt(e(343))/9*(parseInt(e(341))/10)+-parseInt(e(351))/11)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(pi);class vi{constructor(){this[fi(363)]=null}[hi(357)](){return e(this,void 0,void 0,function*(){const t=fi;if(this[t(363)])return this.supportResults;const e=this[t(355)](),i=this[t(350)](),n=yield this.isIndexedDBSupported();return this[t(363)]={localStorage:e,sessionStorage:i,indexedDB:n},this[t(363)]})}[hi(354)](t){const e=hi;let i=0;for(let n=0;n<t.length;n++){const r=t[e(353)](n);if(!r)continue;const s=t[e(364)](r);null!=s&&(i+=2*r[e(356)],i+=2*s.length)}return i}[hi(355)](){const t=hi;try{const e="__test__";return localStorage.setItem(e,"1"),localStorage[t(366)](e),!0}catch(t){return!1}}[hi(350)](){const t=hi;try{const e="__test__";return sessionStorage[t(342)](e,"1"),sessionStorage[t(366)](e),!0}catch(t){return!1}}[hi(360)](){const t=hi;return t(359)in window?new Promise(e=>{const i=t;try{const t=indexedDB[i(345)](i(346));t[i(362)]=()=>e(!1),t[i(369)]=()=>{const n=i;t[n(340)][n(347)](),indexedDB[n(365)](n(346)),e(!0)}}catch(t){e(!1)}}):Promise[t(349)](!1)}}const wi=new vi,gi=bi;function bi(t,e){const i=Ii();return(bi=function(t,e){return i[t-=294]})(t,e)}function Ii(){const t=["svelte","__reactContainer","2885814KosDbP","cdn.shopify.com","organic","innerHTML","8284518DsNJAF","__VUE__","Zepto","/_nuxt/","224372XEGEto","Meteor","130lSueUS","script[id=__NEXT_DATA__]","querySelector","1723455vBGLuq","keys",'script[src*="angular.js"], script[src*="angular.min.js"]',"5jGiueI","drupal-settings-json","WordPress","static.squarespace.com","832419qZpmAL","11655648gvhgnM","detectWebFramework","[data-v-app], [data-v-]","Wix","includes","Gatsby.js","textContent","utm_","getUTMParamsString","__REACT_DEVTOOLS_GLOBAL_HOOK__","Vue.js","[data-reactroot], [data-reactid]","Alpine.js","querySelectorAll","3463936wTNfbC","Squarespace","Angular","/js/app.js","Backbone.js","map","[ng-version]","wp-includes","Backbone","utm_medium","search","mix-manifest.json","startsWith","_reactRootContainer","Meteor.js","8NDjAfF","React","Nuxt.js","src","scripts","Next.js","documentElement","join","wix.com","Zepto.js","some"];return(Ii=function(){return t})()}!function(t){const e=bi,i=t();for(;;)try{if(764085===parseInt(e(317))/1*(parseInt(e(296))/2)+parseInt(e(309))/3+-parseInt(e(344))/4+parseInt(e(325))/5*(-parseInt(e(313))/6)+parseInt(e(329))/7+-parseInt(e(330))/8+parseInt(e(322))/9*(parseInt(e(319))/10))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Ii);class mi{static[gi(338)](){const t=gi,e=new URLSearchParams(window.location[t(354)]),i={};for(const[n,r]of e.entries())n.startsWith(t(337))&&r&&(i[n]=r);if(!i.utm_source){const t=document.referrer;i.utm_source=t?new URL(t).hostname:"other"}return!i[t(353)]&&(i.utm_medium=t(311)),Object.entries(i)[t(349)](([t,e])=>t+"="+encodeURIComponent(e))[t(303)]("&")}}function Si(t,e){const i=Ei();return(Si=function(t,e){return i[t-=216]})(t,e)}mi[gi(331)]=()=>{const t=gi;return document[t(321)](t(320))||[...document.scripts][t(306)](e=>e[t(299)][t(334)]("/_next/"))?t(301):window[t(297)]||document[t(321)](t(341))||Array.from(document[t(343)]("*"))[t(306)](e=>void 0!==e[t(294)]||Object[t(323)](e)[t(306)](e=>e[t(356)](t(308))))||window[t(339)]?t(297):[...document[t(300)]].some(e=>e[t(299)][t(334)](t(316)))?t(298):window[t(314)]||window.Vue||document[t(321)](t(332))?t(340):document[t(321)]("[id=___gatsby]")?t(335):window||document[t(321)](".ng-binding, [ng-app], [data-ng-app], [ng-controller], [data-ng-controller], [ng-repeat], [data-ng-repeat]")||document[t(321)](t(324))||window.ng||document[t(321)](t(350))?t(346):[...document[t(300)]].some(e=>{const i=t;var n;return e[i(299)][i(334)](i(307))||(null===(n=e[i(336)])||void 0===n?void 0:n.includes(i(307)))})?"Svelte":document.querySelector("[x-data], [x-init], [x-bind]")?t(342):window.jQuery?"jQuery":window[t(352)]?t(348):window[t(318)]?t(295):window[t(315)]?t(305):document[t(321)]('meta[name="generator"][content*="WordPress"]')||[...document[t(300)]][t(306)](e=>e.src.includes("wp-content")||e.src[t(334)](t(351)))?t(327):[...document[t(300)]][t(306)](e=>e[t(299)][t(334)](t(347))||e[t(299)].includes(t(355)))?"Laravel":document.querySelector('meta[name="generator"][content*="Drupal"]')||document.documentElement[t(312)][t(334)](t(326))?"Drupal":document[t(302)].innerHTML[t(334)](t(310))?"Shopify":[...document[t(300)]][t(306)](e=>e[t(299)][t(334)](t(328)))?t(345):[...document[t(300)]][t(306)](e=>e.src.includes(t(304)))?t(333):document[t(321)]('meta[name="generator"][content*="Ghost"]')?"Ghost CMS":void 0};const yi=Si;!function(t){const e=Si,i=t();for(;;)try{if(659103===parseInt(e(257))/1*(parseInt(e(250))/2)+parseInt(e(239))/3*(parseInt(e(240))/4)+-parseInt(e(249))/5*(-parseInt(e(217))/6)+-parseInt(e(251))/7+parseInt(e(232))/8*(parseInt(e(259))/9)+-parseInt(e(238))/10*(parseInt(e(255))/11)+-parseInt(e(242))/12)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Ei);class ki{static[yi(234)](){const t=yi;try{const e=document[t(253)](t(247));return!(!e[t(258)](t(235))&&!e[t(258)](t(227)))}catch(t){return!1}}static[yi(241)](){return e(this,void 0,void 0,function*(){const t=Si,e=document[t(253)]("canvas"),i=e[t(258)](t(235))||e[t(258)]("experimental-webgl");if(!i)return;const n={version:i[t(218)](i[t(237)]),shadingLangVersion:i[t(218)](i.SHADING_LANGUAGE_VERSION),maxTextureSize:i[t(218)](i.MAX_TEXTURE_SIZE),maxRenderBufferSize:i[t(218)](i[t(228)]),supportedExtensions:i.getSupportedExtensions()};try{const e=i.getExtension("WEBGL_debug_renderer_info");n[t(244)]=e?i[t(218)](e.UNMASKED_VENDOR_WEBGL):i.getParameter(i.VENDOR)}catch(e){n[t(244)]=i.getParameter(i[t(225)])}try{const e=i.getExtension("WEBGL_debug_renderer_info");n[t(245)]=e?i[t(218)](e[t(248)]):i.getParameter(i[t(216)])}catch(e){n[t(245)]=i[t(218)](i[t(216)])}return yield this.hashData(JSON[t(224)](n))})}static[yi(262)](){return e(this,void 0,void 0,function*(){const t=Si,e=document[t(253)]("canvas");e[t(231)]=200,e[t(223)]=50;const i=e[t(258)]("2d");if(i)return i[t(260)]=t(230),i[t(246)]=t(243),i[t(219)]=t(221),i[t(233)](0,0,200,50),i.fillStyle="#069",i[t(254)](t(263),2,2),yield this.hashData(e[t(252)]())})}static[yi(220)](t){return e(this,void 0,void 0,function*(){const e=Si,i="string"==typeof t?t:JSON[e(224)](t),n=(new TextEncoder)[e(261)](i),r=yield crypto[e(256)][e(229)](e(222),n);return Array[e(226)](new Uint8Array(r))[e(236)](t=>t.toString(16).padStart(2,"0")).join("")})}}function Ei(){const t=["toDataURL","createElement","fillText","44YlQXWR","subtle","20YWXxcE","getContext","9ZvPTiL","textBaseline","encode","getCanvasFingerprint","WiseTrack WebGL Fingerprint!","RENDERER","6378eSvAYf","getParameter","fillStyle","hashData","#f60","SHA-256","height","stringify","VENDOR","from","experimental-webgl","MAX_RENDERBUFFER_SIZE","digest","top","width","6642136enBaVx","fillRect","isWebGLSupported","webgl","map","VERSION","2300020tXDUbL","153rHaXhI","61700PpSNAs","getWebGLFingerprint","8932800pqlVNT","14px 'Arial'","vendor","renderer","font","canvas","UNMASKED_RENDERER_WEBGL","1245hnPHXh","85340LbENWe","2880626sqiEFQ"];return(Ei=function(){return t})()}const _i=Ti;function Ti(t,e){const i=Ci();return(Ti=function(t,e){return i[t-=154]})(t,e)}!function(t){const e=Ti,i=t();for(;;)try{if(689562===-parseInt(e(219))/1+-parseInt(e(168))/2*(-parseInt(e(215))/3)+parseInt(e(217))/4*(-parseInt(e(176))/5)+parseInt(e(192))/6+parseInt(e(224))/7+parseInt(e(162))/8+-parseInt(e(216))/9)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Ci);class xi{[_i(175)](){return e(this,void 0,void 0,function*(){const t=Ti,e=window[t(190)][t(199)]();let i={};return i[t(159)]=(new Date)[t(189)](),Object[t(167)](i,this.getLocalFields()),Object[t(167)](i,yield this[t(211)]()),Object.assign(i,this[t(171)]()),i[t(220)]=(window[t(190)][t(199)]()-e)[t(188)](1),s[t(213)][t(223)]&&(i=Object.fromEntries(Object[t(170)](i)[t(160)](([e,i])=>[e,null==i?s[t(213)][t(223)]:i]))),!s[t(213)].PARAMETERS_VALUE&&(i=Object[t(193)](Object.entries(i)[t(204)](([t,e])=>null!=e))),i})}getApplicationFields(){return e(this,void 0,void 0,function*(){const t=Ti,e=yield wi[t(165)]();return{connectivity_type:navigator[t(218)]?"1":"-1",country:yield nt[t(184)](),package_name:window.location.hostname,session_storage_enabled:e[t(177)],indexed_db_enabled:e[t(161)],local_storage_enabled:e[t(221)],session_storage:wi[t(169)](sessionStorage)[t(188)](0),local_storage:wi[t(169)](localStorage).toFixed(0),web_gl_support:ki[t(209)](),web_gl_fingerprint:yield ki[t(173)](),web_gl_canvas_fingerprint:yield ki[t(178)]()}})}getLocalFields(){const t=_i,e=O.initialConfig;return e?{uuid:O[t(180)],app_token:e[t(182)],environment:e[t(210)],store_name:"other",app_version:e[t(201)],push_token:O[t(203)],custom_device_id:e[t(185)],default_tracker:e[t(222)],platform:s.SDK[t(187)],framework:e[t(179)][t(164)](),initiated_by:s[t(181)][t(187)]+"_"+e[t(179)][t(164)](),initiated_version:s[t(181)][t(183)],referrer:mi.getUTMParamsString(),installed_at:O[t(166)],session_count:O[t(191)].toString(),session_length:parseInt((O[t(157)]/1e3).toString())[t(202)](),subsession_count:parseInt((O.subSessionCount/1e3)[t(202)]())[t(202)](),last_interval:parseInt((O.inactiveDuration/1e3).toString())[t(202)]()}:{}}[_i(171)](){const t=_i,e=li[t(172)]();return{browser_version:e[t(206)][t(163)],device_manufacturer:e.device.vendor,device_name:e[t(156)][t(200)],device_type:e[t(156)][t(214)],os_name:e.os.name,os_version:e.os[t(163)],cpu_type:e[t(198)].architecture,web_user_agent:e.ua,display_height:window[t(154)][t(188)](0),display_width:window[t(155)][t(188)](0),language:navigator[t(197)][t(195)]("-")[0],screen_density:li[t(208)],screen_format:li[t(194)],screen_size:li.screenSize,ui_mode:li.uiMode[t(202)](),cpu_lpc:navigator[t(174)][t(202)](),ui_style:li[t(158)],wout_width:window.outerWidth[t(202)](),wout_height:window[t(207)][t(202)](),web_engine:e.engine[t(186)],web_engine_version:e[t(196)][t(163)],display_size:li[t(205)],screen_type:li[t(212)]}}}function Ci(){const t=["appFrameWork","deviceId","SDK","appToken","VERSION","getCountryCode","customDeviceId","name","PLATFORM","toFixed","toISOString","performance","sessionCount","2631948yGSwoM","fromEntries","screenFormat","split","engine","language","cpu","now","model","appVersion","toString","pushToken","filter","displaySize","browser","outerHeight","screenDensity","isWebGLSupported","userEnvironment","getApplicationFields","screenType","DEFAULTS","type","3090xyznXs","1915218nQKAfh","5016568YLorkS","onLine","1371345ORRTRr","time_spent","localStorage","defaultTracker","PARAMETERS_VALUE","5881554qfCShj","innerHeight","innerWidth","device","activeDuration","uiStyle","created_at","map","indexedDB","9216168NuFJSv","version","toLowerCase","getSupportResult","initialDate","assign","2130xRCyXb","getStorageSizeBytes","entries","getDeviceFields","getDeviceInfo","getWebGLFingerprint","hardwareConcurrency","build","5EFweEN","sessionStorage","getCanvasFingerprint"];return(Ci=function(){return t})()}const Ni=new xi,Di=Ri;function Ai(){const t=["create","10675iuanEv","call","59tKPOba","event","36310570zogeQu","188hnWdfE","32905Aextwc","24812WtdpLg","424854xlosed","5048SRIeWy","assign","9727416khRWMP","build","1130508EGlvTg"];return(Ai=function(){return t})()}function Ri(t,e){const i=Ai();return(Ri=function(t,e){return i[t-=426]})(t,e)}!function(t){const e=Ri,i=t();for(;;)try{if(593497===-parseInt(e(440))/1*(parseInt(e(430))/2)+-parseInt(e(431))/3+parseInt(e(428))/4*(-parseInt(e(429))/5)+parseInt(e(436))/6+parseInt(e(438))/7*(-parseInt(e(432))/8)+-parseInt(e(434))/9+parseInt(e(427))/10)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Ai);class Oi extends xi{constructor(t){const e=Ri;super(),this[e(426)]=t}[Di(435)](){const t=Di,i=Object[t(437)](null,{build:{get:()=>super[t(435)]}});return e(this,void 0,void 0,function*(){const e=t,n=yield i[e(435)][e(439)](this);return new Promise(t=>{const i=e;t(Object[i(433)](Object[i(433)]({},n),this[i(426)].toJSON()))})})}}const Li=Fi;function Ui(){const t=[" request to pending queue","isEnabled","5996620QmaoWv","567425IbIJxE","info","Creating Install: SDK-Clicks has already submitted","sessionInterval","addObservers","subSessionCount","s Totaly)","Creating Session: First-Session has already submitted","4vOEjdL","trackEvent: SDK is not initialized yet","2BgFkmY","log","SDK_CLICKS","addEventListener","deviceId","stop","shutdown"," request to main queue","initialize","createDeviceID","getCountryCode","createRequest","pending","EVENTS","fcmToken","isRunning","Creating Session: SDK is not enabled!","appSettings","warn","Creating First Session: SDK is not enabled!","visibilitychange","initialized","hasFocus","addRequest","createAttribution","trackEvent: SDK is not enabled","2422849pCNWWI","12yotndo","ATTRIBUTIONS","8KkTmWm","inactiveDuration","sessionCount","getQueueStatus","inactiveTime","CheckPushToken: SDK is not enabled","initialDate","sdkClickSubmit","build","debug","now","This Notification token has sent to server previously","sdkEnabled","isVisibleFocused","WT Tracker stopped","checkSessionIntervals","stopTracking","addPendingRequest","SDK is not enabled to start tracking!","checkPushToken","Creating Install: SDK is not enabled!","main","firstSessionSubmit","activeTime","checkFirstSession","WT Tracker started","36MLZTbc","setActivityTimes","Creating Attribution: SDK is not enabled!","blur","Add ","1778145ygMwgg","beforeunload","936801EvOjnO","463555WLYOkH","toISOString","s | (","checkSdkClicks","focus","559727PiCyJx","visibilityState"];return(Ui=function(){return t})()}function Fi(t,e){const i=Ui();return(Fi=function(t,e){return i[t-=337]})(t,e)}!function(t){const e=Fi,i=t();for(;;)try{if(303487===parseInt(e(362))/1+parseInt(e(372))/2*(-parseInt(e(349))/3)+-parseInt(e(370))/4*(-parseInt(e(352))/5)+parseInt(e(344))/6*(-parseInt(e(357))/7)+-parseInt(e(401))/8*(parseInt(e(351))/9)+parseInt(e(361))/10+parseInt(e(398))/11*(parseInt(e(399))/12))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Ui);class Pi{constructor(){this.isRunning=!1,this.initialized=!1}get[Li(360)](){return O[Li(413)]}[Li(380)](){return e(this,void 0,void 0,function*(){const t=Fi;this[t(382)](),yield this[t(345)](),this.createDeviceID(),this[t(366)](),this[t(393)]=!0})}startTracking(){return e(this,void 0,void 0,function*(){const t=Fi;this[t(360)]?(C[t(410)](t(343)),yield wt[t(380)](),yield this[t(355)](),yield this[t(342)](),yield this[t(396)](),this.isRunning=!0):C[t(390)](t(419))})}[Li(417)](){return e(this,void 0,void 0,function*(){const t=Fi;this[t(387)]=!1,Z.stop(),yield wt[t(378)](),C[t(410)](t(415))})}[Li(337)](t){return e(this,void 0,void 0,function*(){const e=Fi;O.pushToken=t,this[e(360)]?O[e(386)]!==t?yield this[e(383)]({endpoint:h.SDK_INFOS,queueType:e(384)}):C[e(363)](e(412)):C[e(390)](e(406))})}trackEvent(t){return e(this,void 0,void 0,function*(){const e=Fi;this[e(360)]?this[e(393)]?(O.eventCount+=1,yield this.createRequest({endpoint:h[e(385)],fBuilder:new Oi(t),queueType:"pending"})):C[e(390)](e(371)):C[e(390)](e(397))})}getCountryCode(){nt[Li(382)]()}createAttribution(){return e(this,void 0,void 0,function*(){const t=Fi;this.isEnabled?yield this.createRequest({endpoint:h[t(400)],queueType:t(384)}):C[t(390)](t(346))})}checkFirstSession(){return e(this,void 0,void 0,function*(){const t=Fi;this[t(360)]?O[t(340)]?C[t(410)](t(369)):yield this.createRequest({endpoint:h.SESSIONS,queueType:O[t(408)]?t(339):t(384)}):C[t(390)](t(391))})}[Li(355)](){return e(this,void 0,void 0,function*(){const t=Fi;this[t(360)]?O[t(408)]?C.debug(t(364)):yield this[t(383)]({endpoint:h[t(374)]}):C[t(390)](t(338))})}[Li(383)](t){const i=Li;return e(this,arguments,void 0,function*({endpoint:t,fBuilder:e=Ni,queueType:n=i(339)}){const r=i,s=yield e[r(409)](),o=new ut(t,s);n===r(384)?(C.info(r(348)+t+r(359)),yield wt[r(418)](o)):(C.info(r(348)+t+r(379)),yield wt[r(395)](o));wt[r(404)]()})}[Li(381)](){const t=Li;!O[t(376)]&&(O.deviceId=st.generateDeviceUUID()),!O[t(407)]&&(O.initialDate=(new Date)[t(353)]())}[Li(345)](){return e(this,void 0,void 0,function*(){const t=Fi;if(O[t(341)]){O[t(405)]=O[t(341)];const e=Date[t(411)]()-O[t(405)];O[t(402)]+=e,yield this[t(416)]()}O[t(341)]=Date[t(411)](),Z.start()})}checkSessionIntervals(){return e(this,void 0,void 0,function*(){const t=Fi;var e,i;const n=O[t(405)],r=null===(e=O[t(389)])||void 0===e?void 0:e[t(365)],s=null===(i=O.appSettings)||void 0===i?void 0:i.subsessionInterval;if(!this[t(360)])return void C[t(390)](t(388));if(!n||!r||!s)return;const o=Date.now()-n;o>parseInt(r)?(O[t(403)]+=1,yield this[t(383)]({endpoint:h.SESSIONS,queueType:O[t(408)]?t(339):t(384)})):o>parseInt(s)&&(O[t(367)]+=1)})}[Li(414)](){const t=Li;return"visible"===document[t(358)]&&document[t(394)]()}[Li(366)](){const t=Li;window[t(375)](t(350),()=>{Z[t(377)]()}),document[t(375)](t(392),()=>{const e=t;this.isVisibleFocused()?(this[e(396)](),this[e(345)]()):Z[e(377)]()}),window.addEventListener(t(356),()=>{const e=t;this[e(414)]()&&(this[e(396)](),this[e(345)]())}),window[t(375)](t(347),()=>{Z[t(377)]()})}}const qi=new Pi,Mi=Bi;function Bi(t,e){const i=Wi();return(Bi=function(t,e){return i[t-=194]})(t,e)}function Wi(){const t=["init","needAppSettings","info","initialize","forceUpdate","‼️ Track Event: SDK is not initialized yet","Start Tracking: SDK is not enabled!","defaultValue","Track Event: SDK is not enabled!","Need to get app-settings for ","updateAppSettings","sdkEnvironment","config","_instance","trackEvent","setFCMToken","appSettings","378336dJzjoL","NetworkError","sdkEnabled","‼️ Set Fcm Token: SDK is not initialized yet","setEnabled","setLevel","Config is not set!","trackingWaitingTime","844041wncziQ","2MSQQWT","startTrackerAutomatically","‼️ Start Tracking: SDK is not initialized yet","setLogLevel","1064620GWgjjn","clear","initialConfig","sdkUpdate","warn","SDK is disabled form server, contact your adminstrator!","‼️ SDK Config NOT set!, check errors.","Set Fcm Token: SDK is not enabled!","Clearing Data and stop tracker!","3953509OMBKtP","isEnabled","The version you are currently using has expired and is no longer supported. Please update to the latest version to continue using the SDK","error"," environment","getConfig","A new version of the SDK is available. It is recommended to update to the latest version to enjoy improved features and better performance.","744956SruQgS","doGetConfig","checkSdkUpdate","stopTracking","checkSdkEnabled","6ZCypVl","startTracking","instance","1866726uZpBMb","fromConfig","sdkInitialized","488928JwQHHg","debug"];return(Wi=function(){return t})()}!function(t){const e=Bi,i=t();for(;;)try{if(533118===parseInt(e(247))/1+parseInt(e(227))/2*(-parseInt(e(226))/3)+-parseInt(e(199))/4+parseInt(e(231))/5*(-parseInt(e(252))/6)+parseInt(e(240))/7+parseInt(e(218))/8+-parseInt(e(196))/9)break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Wi);class Vi{static get[Mi(195)](){const t=Mi;return!Vi[t(214)]&&(Vi[t(214)]=new Vi),Vi[t(214)]}constructor(){this[Mi(198)]=!1}[Mi(201)](t){return e(this,void 0,void 0,function*(){const e=Bi;var i,n;const r=yield this[e(245)](t);this[e(251)](r),this[e(249)](r),this[e(222)](!0),yield this[e(211)](r),this[e(198)]=!0,yield qi[e(204)]();(null===(i=t[e(228)])||void 0===i||i)&&setTimeout(()=>this[e(194)](),1e3*(null!==(n=t[e(225)])&&void 0!==n?n:0))})}[Mi(230)](t){C[Mi(223)](t)}flush(){const t=Mi;C.info(t(239)),O[t(232)](),this.stopTracking()}isEnabled(){return O[Mi(220)]}[Mi(222)](t){const e=Mi,i=O[e(213)];if(!i)throw new Error(e(224));if(!i.sdkEnabled)throw new Error(e(236));if(i[e(205)])throw new Error(e(242));O.sdkEnabled=t}[Mi(194)](){return e(this,void 0,void 0,function*(){const t=Bi;this[t(198)]?this[t(241)]()?yield qi.startTracking():C[t(235)](t(207)):C[t(235)](t(229))})}[Mi(250)](){return e(this,void 0,void 0,function*(){const t=Bi;yield qi[t(250)]()})}[Mi(216)](t){return e(this,void 0,void 0,function*(){const e=Bi;this[e(198)]?this[e(241)]()?yield qi.checkPushToken(t):C[e(235)](e(238)):C[e(235)](e(221))})}[Mi(215)](t){return e(this,void 0,void 0,function*(){const e=Bi;this[e(198)]?this[e(241)]()?yield qi[e(215)](t):C[e(235)](e(209)):C[e(235)](e(206))})}getConfig(t){return e(this,void 0,void 0,function*(){const e=Bi;let i;O[e(233)]=t;try{i=yield H[e(248)]()}catch(t){if(!(t instanceof U.NetworkError))throw C.info(e(237)),t;i=O[e(213)]||y.defaultValue}return O[e(213)]=i,C[e(203)]("SDK Config set"),i})}updateAppSettings(t){return e(this,void 0,void 0,function*(){const e=Bi;let i;if(d[e(202)]()){C[e(200)](e(210)+d[e(212)]+e(244));try{i=yield H.doGetAppSettings()}catch(t){if(!(t instanceof U[e(219)]))throw C[e(203)]("‼️ App Settings NOT set!, check errors."),t;i=b[e(208)]}}else i=b[e(197)](t);return O[e(217)]=i,C[e(203)]("App Settings set"),i})}checkSdkEnabled(t){const e=Mi;if(!t.sdkEnabled){const t=e(236);throw C[e(243)](t),new Error(t)}}[Mi(249)](t){const e=Mi;if(t[e(205)]){const t="The version you are currently using has expired and is no longer supported. Please update to the latest version to continue using the SDK";throw C[e(243)](t),new Error(t)}t[e(234)]&&C.warn(e(246))}}function ji(t,e){var i=Gi();return(ji=function(t,e){return i[t-=153]})(t,e)}function Gi(){var t=["88Qyfrvv","name","1509900RRMSAv","73510QeMRGh","params","amount","default","1530851MyNAcT","15702qJdLXV","Revenue","30726kFeGAZ","currency","68VvUiNu","1013136OuUiEo","330IikINA","type","166462qYfSaw","toJSON"];return(Gi=function(){return t})()}function Ki(t,e){var i=zi();return(Ki=function(t,e){return i[t-=450]})(t,e)}function zi(){var t=["326364QzvBjx","144174IaYoUN","3nxgfmr","305704FPBrcr","5414816zbjLVE","1261656FDMGEk","20BRqanS","20aHvTHe","2708783ofBkgk","2774853iYcULq"];return(zi=function(){return t})()}return function(t){for(var e=ji,i=t();;)try{if(142595===parseInt(e(157))/1+parseInt(e(159))/2*(-parseInt(e(167))/3)+-parseInt(e(153))/4*(parseInt(e(162))/5)+parseInt(e(161))/6+parseInt(e(166))/7+-parseInt(e(154))/8+parseInt(e(169))/9*(parseInt(e(155))/10))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(Gi),t.WTEvent=void 0,function(t){var e=ji;class i{constructor(t){var e=ji;this[e(156)]=e(165),this[e(160)]=t}addParam(t,e){var i,n=ji;let r=null!==(i=this[n(163)])&&void 0!==i?i:{};r[t]=e,this[n(163)]=r}[e(158)](){var t=e;return{event_type:this[t(156)],event_name:this[t(160)],partner_params:this[t(163)]}}}t.Default=i;class n extends i{constructor(t,i,n){var r=e;super(t),this[r(156)]="revenue",this[r(164)]=i,this[r(170)]=n}[e(158)](){var t=e;return{event_type:this.type,event_name:this[t(160)],revenue:this[t(164)],currency:this.currency,partner_params:this[t(163)]}}}t[e(168)]=n}(t.WTEvent||(t.WTEvent={})),function(t){for(var e=Ki,i=t();;)try{if(358027===-parseInt(e(450))/1+-parseInt(e(452))/2*(-parseInt(e(451))/3)+-parseInt(e(454))/4+-parseInt(e(456))/5*(-parseInt(e(459))/6)+parseInt(e(457))/7+parseInt(e(453))/8+parseInt(e(458))/9*(-parseInt(e(455))/10))break;i.push(i.shift())}catch(t){i.push(i.shift())}}(zi),t.WTLogEngine=T,t.WTLogLevel=x,t.WTLogger=C,t.WiseTrack=Vi,t}({});
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { WTUserEnvironment } from "../../constants/environments";
|
|
2
|
+
import { WTLogLevel } from "../../utils/logger";
|
|
3
|
+
/**
|
|
4
|
+
* The initial configuration required to initialize the WiseTrack SDK.
|
|
5
|
+
*/
|
|
6
|
+
export interface WTInitialConfig {
|
|
7
|
+
/**
|
|
8
|
+
* The unique application token provided by WiseTrack Panel.
|
|
9
|
+
*/
|
|
10
|
+
appToken: string;
|
|
11
|
+
/**
|
|
12
|
+
* The version of your application.
|
|
13
|
+
*/
|
|
14
|
+
appVersion: String;
|
|
15
|
+
/**
|
|
16
|
+
* The framework or platform name (e.g., `native`, `react`, `next.js`).
|
|
17
|
+
*/
|
|
18
|
+
appFrameWork: String;
|
|
19
|
+
/**
|
|
20
|
+
* The user environment (sandbox or production). Defaults to `PRODUCTION`.
|
|
21
|
+
*/
|
|
22
|
+
userEnvironment?: WTUserEnvironment;
|
|
23
|
+
/**
|
|
24
|
+
* The waiting time in seconds before the tracker starts automatically.
|
|
25
|
+
*/
|
|
26
|
+
trackingWaitingTime?: number;
|
|
27
|
+
/**
|
|
28
|
+
* If `true` (default), the tracker will start automatically after initialization.
|
|
29
|
+
*/
|
|
30
|
+
startTrackerAutomatically?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* A custom device identifier.
|
|
33
|
+
*/
|
|
34
|
+
customDeviceId?: string;
|
|
35
|
+
/**
|
|
36
|
+
* An optional default tracker name.
|
|
37
|
+
*/
|
|
38
|
+
defaultTracker?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Sets the log level for SDK logging.
|
|
41
|
+
*/
|
|
42
|
+
logLevel?: WTLogLevel;
|
|
43
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { WTConfig } from "./wt-config";
|
|
2
|
+
/** @internal */
|
|
3
|
+
export declare class WTAppSettings {
|
|
4
|
+
events: string;
|
|
5
|
+
sessions: string;
|
|
6
|
+
sdkClicks: string;
|
|
7
|
+
sdkInfos: string;
|
|
8
|
+
attributions: string;
|
|
9
|
+
sessionInterval: string;
|
|
10
|
+
subsessionInterval: string;
|
|
11
|
+
constructor(events: string, sessions: string, sdkClicks: string, sdkInfos: string, attributions: string, sessionInterval?: string, subsessionInterval?: string);
|
|
12
|
+
static fromConfig(config: WTConfig): WTAppSettings;
|
|
13
|
+
static fromJson(json: any): WTAppSettings;
|
|
14
|
+
static get defaultValue(): WTAppSettings;
|
|
15
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** @internal */
|
|
2
|
+
export declare class WTConfig {
|
|
3
|
+
baseUrl: string;
|
|
4
|
+
events?: string;
|
|
5
|
+
sessions?: string;
|
|
6
|
+
sdkClicks?: string;
|
|
7
|
+
sdkInfos?: string;
|
|
8
|
+
attributions?: string;
|
|
9
|
+
appSettings?: string;
|
|
10
|
+
sdkEnabled: boolean;
|
|
11
|
+
forceUpdate: boolean;
|
|
12
|
+
sdkUpdate: boolean;
|
|
13
|
+
sessionInterval: string;
|
|
14
|
+
subsessionInterval: string;
|
|
15
|
+
constructor(baseUrl: string, events?: string, sessions?: string, sdkClicks?: string, sdkInfos?: string, attributions?: string, appSettings?: string, sdkEnabled?: boolean, forceUpdate?: boolean, sdkUpdate?: boolean, sessionInterval?: string, subsessionInterval?: string);
|
|
16
|
+
static fromJson(json: any): WTConfig;
|
|
17
|
+
static get defaultValue(): WTConfig;
|
|
18
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Supported currencies for revenue events.
|
|
3
|
+
*
|
|
4
|
+
* Use one of these standard ISO currency codes when tracking revenue.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* RevenueCurrency.USD // "USD"
|
|
8
|
+
*/
|
|
9
|
+
export declare const RevenueCurrency: {
|
|
10
|
+
readonly USD: "USD";
|
|
11
|
+
readonly EUR: "EUR";
|
|
12
|
+
readonly JPY: "JPY";
|
|
13
|
+
readonly GBP: "GBP";
|
|
14
|
+
readonly AUD: "AUD";
|
|
15
|
+
readonly CAD: "CAD";
|
|
16
|
+
readonly CHF: "CHF";
|
|
17
|
+
readonly CNY: "CNY";
|
|
18
|
+
readonly SEK: "SEK";
|
|
19
|
+
readonly NZD: "NZD";
|
|
20
|
+
readonly MXN: "MXN";
|
|
21
|
+
readonly SGD: "SGD";
|
|
22
|
+
readonly HKD: "HKD";
|
|
23
|
+
readonly NOK: "NOK";
|
|
24
|
+
readonly KRW: "KRW";
|
|
25
|
+
readonly TRY: "TRY";
|
|
26
|
+
readonly RUB: "RUB";
|
|
27
|
+
readonly INR: "INR";
|
|
28
|
+
readonly BRL: "BRL";
|
|
29
|
+
readonly ZAR: "ZAR";
|
|
30
|
+
readonly IRR: "IRR";
|
|
31
|
+
readonly AED: "AED";
|
|
32
|
+
readonly IQD: "IQD";
|
|
33
|
+
readonly SAR: "SAR";
|
|
34
|
+
readonly OMR: "OMR";
|
|
35
|
+
readonly BTC: "BTC";
|
|
36
|
+
readonly EHT: "EHT";
|
|
37
|
+
readonly LTC: "LTC";
|
|
38
|
+
};
|
|
39
|
+
export type RevenueCurrency = (typeof RevenueCurrency)[keyof typeof RevenueCurrency];
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { RevenueCurrency } from "./revenue-currency";
|
|
2
|
+
type WTEventType = "default" | "revenue";
|
|
3
|
+
type EventParam = string | number | boolean;
|
|
4
|
+
export declare namespace WTEvent {
|
|
5
|
+
/**
|
|
6
|
+
* Represents a generic custom event.
|
|
7
|
+
*
|
|
8
|
+
* Use this class to log custom actions performed by the user.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const event = new WTEvent.Default("signup");
|
|
13
|
+
* event.addParam("method", "Google");
|
|
14
|
+
* WiseTrack.instance.trackEvent(event);
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
class Default {
|
|
18
|
+
/**
|
|
19
|
+
* The type of event.
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
readonly type: WTEventType;
|
|
23
|
+
/**
|
|
24
|
+
* Optional custom key-value parameters for the event.
|
|
25
|
+
*/
|
|
26
|
+
params?: Record<string, EventParam>;
|
|
27
|
+
/**
|
|
28
|
+
* The name of the event.
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
* Creates a new custom event.
|
|
33
|
+
* @param name - The name of the event.
|
|
34
|
+
*/
|
|
35
|
+
constructor(name: string);
|
|
36
|
+
/**
|
|
37
|
+
* Adds a parameter to the event.
|
|
38
|
+
*
|
|
39
|
+
* @param key - The parameter key.
|
|
40
|
+
* @param value - The parameter value.
|
|
41
|
+
*/
|
|
42
|
+
addParam(key: string, value: EventParam): void;
|
|
43
|
+
/** @internal */
|
|
44
|
+
toJSON(): {
|
|
45
|
+
event_type: WTEventType;
|
|
46
|
+
event_name: string;
|
|
47
|
+
partner_params: Record<string, EventParam> | undefined;
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Represents a revenue event with an amount and currency.
|
|
52
|
+
*
|
|
53
|
+
* Use this class to log purchases or monetary transactions.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* const purchase = new WTEvent.Revenue("order_complete", 49.99, RevenueCurrency.USD);
|
|
58
|
+
* purchase.addParam("item_count", "3");
|
|
59
|
+
* WiseTrack.instance.trackEvent(purchase);
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
class Revenue extends Default {
|
|
63
|
+
/**
|
|
64
|
+
* The type of event.
|
|
65
|
+
* @internal
|
|
66
|
+
*/
|
|
67
|
+
readonly type: WTEventType;
|
|
68
|
+
/**
|
|
69
|
+
* The revenue amount.
|
|
70
|
+
*/
|
|
71
|
+
amount: number;
|
|
72
|
+
/**
|
|
73
|
+
* The currency of the revenue.
|
|
74
|
+
*/
|
|
75
|
+
currency: RevenueCurrency;
|
|
76
|
+
/**
|
|
77
|
+
* Creates a new revenue event.
|
|
78
|
+
*
|
|
79
|
+
* @param name - The name of the revenue event.
|
|
80
|
+
* @param amount - The amount of revenue.
|
|
81
|
+
* @param currency - The currency of the revenue.
|
|
82
|
+
*/
|
|
83
|
+
constructor(name: string, amount: number, currency: RevenueCurrency);
|
|
84
|
+
/** @internal */
|
|
85
|
+
toJSON(): {
|
|
86
|
+
event_type: WTEventType;
|
|
87
|
+
event_name: string;
|
|
88
|
+
revenue: number;
|
|
89
|
+
currency: RevenueCurrency;
|
|
90
|
+
partner_params: Record<string, EventParam> | undefined;
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare class ActivityTicker {
|
|
2
|
+
private tickerDelay;
|
|
3
|
+
private isPaused;
|
|
4
|
+
private tickerJob?;
|
|
5
|
+
start(): void;
|
|
6
|
+
stop(): void;
|
|
7
|
+
pause(): void;
|
|
8
|
+
resume(): void;
|
|
9
|
+
}
|
|
10
|
+
/** @internal */
|
|
11
|
+
export declare const activityTicker: ActivityTicker;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/** @internal */
|
|
2
|
+
export interface DeviceInfo {
|
|
3
|
+
browser: {
|
|
4
|
+
name?: string;
|
|
5
|
+
version?: string;
|
|
6
|
+
};
|
|
7
|
+
os: {
|
|
8
|
+
name?: string;
|
|
9
|
+
version?: string;
|
|
10
|
+
};
|
|
11
|
+
device: {
|
|
12
|
+
type?: string;
|
|
13
|
+
model?: string;
|
|
14
|
+
vendor?: string;
|
|
15
|
+
};
|
|
16
|
+
cpu: {
|
|
17
|
+
architecture?: string;
|
|
18
|
+
};
|
|
19
|
+
engine: {
|
|
20
|
+
name?: string;
|
|
21
|
+
version?: string;
|
|
22
|
+
};
|
|
23
|
+
ua: string;
|
|
24
|
+
}
|
|
25
|
+
type ScreenType = "touch" | "pointer";
|
|
26
|
+
type ScreenDensity = "high" | "low" | "medium";
|
|
27
|
+
type ScreenFormat = "long" | "normal" | "undefined";
|
|
28
|
+
type ScreenSize = "small" | "normal" | "large" | "xlarge";
|
|
29
|
+
declare class DeviceDetector {
|
|
30
|
+
getDeviceInfo(): DeviceInfo;
|
|
31
|
+
get screenDensity(): ScreenDensity;
|
|
32
|
+
get screenFormat(): ScreenFormat;
|
|
33
|
+
get screenSize(): ScreenSize;
|
|
34
|
+
get uiMode(): number;
|
|
35
|
+
get uiStyle(): string;
|
|
36
|
+
get displaySize(): string;
|
|
37
|
+
get screenType(): ScreenType;
|
|
38
|
+
}
|
|
39
|
+
/** @internal */
|
|
40
|
+
export declare const deviceDetector: DeviceDetector;
|
|
41
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/** @internal */
|
|
2
|
+
export declare abstract class WTLogEngine {
|
|
3
|
+
abstract log(level: string, prefix: string, ...args: any[]): void;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Defines the available log levels for the SDK.
|
|
7
|
+
*
|
|
8
|
+
* - `DEBUG`: Logs everything, including debug info.
|
|
9
|
+
* - `INFO`: Logs general information.
|
|
10
|
+
* - `WARN`: Logs warnings.
|
|
11
|
+
* - `ERROR`: Logs errors only.
|
|
12
|
+
* - `NONE`: Disables logging.
|
|
13
|
+
*/
|
|
14
|
+
export declare const WTLogLevel: {
|
|
15
|
+
readonly DEBUG: "debug";
|
|
16
|
+
readonly INFO: "info";
|
|
17
|
+
readonly WARN: "warn";
|
|
18
|
+
readonly ERROR: "error";
|
|
19
|
+
readonly NONE: "none";
|
|
20
|
+
};
|
|
21
|
+
export type WTLogLevel = (typeof WTLogLevel)[keyof typeof WTLogLevel];
|
|
22
|
+
/** @internal */
|
|
23
|
+
export declare class WTLogger {
|
|
24
|
+
private static level;
|
|
25
|
+
private static prefix;
|
|
26
|
+
private static outputEngines;
|
|
27
|
+
static setLevel(level: WTLogLevel): void;
|
|
28
|
+
static setPrefix(prefix: string): void;
|
|
29
|
+
static addOutputEngine(engine: WTLogEngine): void;
|
|
30
|
+
private static shouldLog;
|
|
31
|
+
private static log;
|
|
32
|
+
static debug(...args: any[]): void;
|
|
33
|
+
static info(...args: any[]): void;
|
|
34
|
+
static warn(...args: any[]): void;
|
|
35
|
+
static error(...args: any[]): void;
|
|
36
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type StorageSupportResult = {
|
|
2
|
+
localStorage: boolean;
|
|
3
|
+
sessionStorage: boolean;
|
|
4
|
+
indexedDB: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare class StorageSupport {
|
|
7
|
+
private supportResults;
|
|
8
|
+
getSupportResult(): Promise<StorageSupportResult>;
|
|
9
|
+
getStorageSizeBytes(storage: Storage): number;
|
|
10
|
+
private isLocalStorageSupported;
|
|
11
|
+
private isSessionStorageSupported;
|
|
12
|
+
private isIndexedDBSupported;
|
|
13
|
+
}
|
|
14
|
+
/** @internal */
|
|
15
|
+
export declare const storageSupport: StorageSupport;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { WTLogLevel } from "../utils/logger";
|
|
2
|
+
import { WTSDKEnvironment } from "./environments";
|
|
3
|
+
/** @internal */
|
|
4
|
+
export declare const WTConstants: {
|
|
5
|
+
readonly SDK: {
|
|
6
|
+
readonly HASH: "997bfbb583c1245a426a53dc1899ec779ff354f9";
|
|
7
|
+
readonly PLATFORM: "web";
|
|
8
|
+
readonly VERSION: "2.0.0";
|
|
9
|
+
};
|
|
10
|
+
readonly CONFIG: {
|
|
11
|
+
readonly BASE_URL: "https://config.wisetrack.io";
|
|
12
|
+
readonly DEFAULT_ENVIRONMENT: WTSDKEnvironment;
|
|
13
|
+
};
|
|
14
|
+
readonly DEFAULTS: {
|
|
15
|
+
readonly LOG_LEVEL: WTLogLevel;
|
|
16
|
+
readonly SESSION_INTERVAL: "1800000";
|
|
17
|
+
readonly SUBSESSION_INTERVAL: "300000";
|
|
18
|
+
readonly PARAMETERS_VALUE: string | undefined;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** @internal */
|
|
2
|
+
export declare const WTEndpoints: {
|
|
3
|
+
readonly EVENTS: "/api/v1/events";
|
|
4
|
+
readonly SESSIONS: "/api/v1/sessions";
|
|
5
|
+
readonly SDK_CLICKS: "/api/v1/sdk_clicks";
|
|
6
|
+
readonly SDK_INFOS: "/api/v1/sdk_infos";
|
|
7
|
+
readonly ATTRIBUTIONS: "/api/v1/attributions";
|
|
8
|
+
readonly APP_SETTINGS: "/api/v1/app_settings";
|
|
9
|
+
};
|
|
10
|
+
/** @internal */
|
|
11
|
+
export type WTEndpoints = (typeof WTEndpoints)[keyof typeof WTEndpoints];
|