PageSourceSearch

https://capsicum-files.socios.com/assets/production/socios-web/_ne…/static/chunks/334568e0-ef0abccfb9235023.js

js socios.com collected 2026-09-24 09:28:11 UTC 88,917 bytes, 1 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="fc6af2d4-c44e-4634-b113-97081f8650ed",e._sentryDebugIdIdentifier="sentry-dbid-fc6af2d4-c44e-4634-b113-97081f8650ed")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4377],{37352:(e,t,n)=>{var r=n(37811);self,e.exports=(()=>{var e={841:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(81),o=n.n(r),i=n(645),a=n.n(i),s=n(667),u=n.n(s),c=new URL(n(529),n.b),l=a()(o()),d=u()(c);l.push([e.id,".adjust-smart-banner__AEqYlWgPonspKfseFq2N{height:76px}@media(min-width: 428px){.adjust-smart-banner__AEqYlWgPonspKfseFq2N{height:0}}.adjust-smart-banner__NVk5vwju_4kdaKzGWJPq{position:fixed;left:0;right:0;z-index:10000000}.adjust-smart-banner__NVk5vwju_4kdaKzGWJPq.adjust-smart-banner__jOV7BvlxDT7ATfbLPh3j{top:0}.adjust-smart-banner__NVk5vwju_4kdaKzGWJPq.adjust-smart-banner__XmomYv1VVQYz0lEtn9Q2{bottom:0}.adjust-smart-banner__NVk5vwju_4kdaKzGWJPq .adjust-smart-banner__eXKzWnRDn4RWUiSSeVYK{margin:0 auto;max-width:428px;background:#fff}.adjust-smart-banner__NVk5vwju_4kdaKzGWJPq .adjust-smart-banner__eXKzWnRDn4RWUiSSeVYK .adjust-smart-banner__r3JnN_RNhpzArrmKQ8jI{display:flex;align-items:center;padding:10px 8px 10px 4px}.adjust-smart-banner__NVk5vwju_4kdaKzGWJPq .adjust-smart-banner__eXKzWnRDn4RWUiSSeVYK .adjust-smart-banner__r3JnN_RNhpzArrmKQ8jI .adjust-smart-banner__VFuxsD_KzqNSxQecFmao{width:32px;height:32px;border:none;background:url("+d+");background-repeat:no-repeat;background-position:center center;background-size:8px 8px,auto;cursor:pointer}.adjust-smart-banner__NVk5vwju_4kdaKzGWJPq .adjust-smart-banner__eXKzWnRDn4RWUiSSeVYK .adjust-smart-banner__r3JnN_RNhpzArrmKQ8jI .adjust-smart-banner__hqvH8Y5fwbegVLKnoYv_{width:56px;height:56px;overflow:hidden;background-color:#6e7492;border-radius:8px}.adjust-smart-banner__NVk5vwju_4kdaKzGWJPq .adjust-smart-banner__eXKzWnRDn4RWUiSSeVYK .adjust-smart-banner__r3JnN_RNhpzArrmKQ8jI .adjust-smart-banner__hqvH8Y5fwbegVLKnoYv_ .adjust-smart-banner__Ll9XMTDiX4Drgeydp0Oc{display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:#353a52;font-weight:bold;font-size:23px;font-family:ArialMt,Arial,sans-serif;line-height:32px;background-color:#e0e2ec}.adjust-smart-banner__NVk5vwju_4kdaKzGWJPq .adjust-smart-banner__eXKzWnRDn4RWUiSSeVYK .adjust-smart-banner__r3JnN_RNhpzArrmKQ8jI .adjust-smart-banner__hqvH8Y5fwbegVLKnoYv_ .adjust-smart-banner__VYRfEif2Ph2_984rXQy8{width:100%}.adjust-smart-banner__NVk5vwju_4kdaKzGWJPq .adjust-smart-banner__eXKzWnRDn4RWUiSSeVYK .adjust-smart-banner__r3JnN_RNhpzArrmKQ8jI .adjust-smart-banner__I8xX0C5dUcR53pY0aEys{flex:1 1 0%;min-height:0;min-width:0;margin:0 12px}.adjust-smart-banner__NVk5vwju_4kdaKzGWJPq .adjust-smart-banner__eXKzWnRDn4RWUiSSeVYK .adjust-smart-banner__r3JnN_RNhpzArrmKQ8jI .adjust-smart-banner__JJLdp2l7YvnsUXudojWA{overflow:hidden;text-overflow:ellipsis}.adjust-smart-banner__NVk5vwju_4kdaKzGWJPq .adjust-smart-banner__eXKzWnRDn4RWUiSSeVYK .adjust-smart-banner__r3JnN_RNhpzArrmKQ8jI h4{margin:5px 0 8px;color:#353a52;font-family:Arial-BoldMT,ArialMt,Arial,sans-serif;font-size:12px;font-weight:bold;line-height:16px;white-space:nowrap}.adjust-smart-banner__NVk5vwju_4kdaKzGWJPq .adjust-smart-banner__eXKzWnRDn4RWUiSSeVYK .adjust-smart-banner__r3JnN_RNhpzArrmKQ8jI p{margin:8px 0 7px;color:#353a52;font-family:ArialMt,Arial,sans-serif;font-size:9px;line-height:11px;max-height:22px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.adjust-smart-banner__NVk5vwju_4kdaKzGWJPq .adjust-smart-banner__eXKzWnRDn4RWUiSSeVYK .adjust-smart-banner__r3JnN_RNhpzArrmKQ8jI .adjust-smart-banner__risKVvV3T0vjKiSTR9l0{color:#6e7492;background:#f9fafc;border:1px solid #cdd0e0;border-radius:4px;border-color:#6e7492;box-shadow:inset 0px -1px 0px 0px #e0e2ec;padding:4px 6.5px;display:inline-block;vertical-align:middle;text-align:center;font-family:ArialMt,Arial,sans-serif;font-size:12px;font-weight:500;line-height:16px;cursor:pointer;text-decoration:none}",""]),l.locals={bannerContainer:"adjust-smart-banner__AEqYlWgPonspKfseFq2N",banner:"adjust-smart-banner__NVk5vwju_4kdaKzGWJPq",stickyToTop:"adju
1st-smart-banner__jOV7BvlxDT7ATfbLPh3j",stickyToBottom:"adjust-smart-banner__XmomYv1VVQYz0lEtn9Q2",bannerBody:"adjust-smart-banner__eXKzWnRDn4RWUiSSeVYK",content:"adjust-smart-banner__r3JnN_RNhpzArrmKQ8jI",dismiss:"adjust-smart-banner__VFuxsD_KzqNSxQecFmao",appIcon:"adjust-smart-banner__hqvH8Y5fwbegVLKnoYv_",placeholder:"adjust-smart-banner__Ll9XMTDiX4Drgeydp0Oc",image:"adjust-smart-banner__VYRfEif2Ph2_984rXQy8",textContainer:"adjust-smart-banner__I8xX0C5dUcR53pY0aEys",bannerText:"adjust-smart-banner__JJLdp2l7YvnsUXudojWA",action:"adjust-smart-banner__risKVvV3T0vjKiSTR9l0"};let f=l},645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var u=this[s][0];null!=u&&(a[u]=!0)}for(var c=0;c<e.length;c++){var l=[].concat(e[c]);r&&a[l[0]]||(void 0!==i&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=i),n&&(l[2]&&(l[1]="@media ".concat(l[2]," {").concat(l[1],"}")),l[2]=n),o&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=o):l[4]="".concat(o)),t.push(l))}},t}},667:e=>{"use strict";e.exports=function(e,t){return(t||(t={}),e&&(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes))?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e}},81:e=>{"use strict";e.exports=function(e){return e[1]}},702:function(e,t,n){e.exports=function(){"use strict";function e(e){return"function"==typeof e}var t,o,i,a,s=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},u=0,c=void 0,l=void 0,d=function(e,t){y[u]=e,y[u+1]=t,2===(u+=2)&&(l?l(b):k())},f="u">typeof window?window:void 0,p=f||{},h=p.MutationObserver||p.WebKitMutationObserver,m="u"<typeof self&&void 0!==r&&"[object process]"===({}).toString.call(r),v="u">typeof Uint8ClampedArray&&"u">typeof importScripts&&"u">typeof MessageChannel;function g(){var e=setTimeout;return function(){return e(b,1)}}var y=Array(1e3);function b(){for(var e=0;e<u;e+=2)(0,y[e])(y[e+1]),y[e]=void 0,y[e+1]=void 0;u=0}var k=void 0;function w(e,t){var n=this,r=new this.constructor(j);void 0===r[S]&&O(r);var o=n._state;if(o){var i=arguments[o-1];d(function(){return E(o,r,i,n._result)})}else R(n,r,e,t);return r}function _(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(j);return D(t,e),t}m?k=function(){return r.nextTick(b)}:h?(t=0,o=new h(b),i=document.createTextNode(""),o.observe(i,{characterData:!0}),k=function(){i.data=t=++t%2}):v?((a=new MessageChannel).port1.onmessage=b,k=function(){return a.port2.postMessage(0)}):k=void 0===f?function(){try{var e=Function("return this")().require("vertx");return c=e.runOnLoop||e.runOnContext,void 0!==c?function(){c(b)}:g()}catch(e){return g()}}():g();var S=Math.random().toString(36).substring(2);function j(){}var P=void 0;function x(t,n,r){n.constructor===t.constructor&&r===w&&n.constructor.resolve===_?1===n._state?I(t,n._result):2===n._state?T(t,n._result):R(n,void 0,function(e){return D(t,e)},function(e){return T(t,e)}):void 0===r?I(t,n):e(r)?d(function(e){var t=!1,o=function(e,t,n,r){try{e.call(t,n,r)}catch(e){return e}}(r,n,function(r){t||(t=!0,n!==r?D(e,r):I(e,r))},function(n){t||(t=!0,T(e,n))},e._label);!t&&o&&(t=!0,T(e,o))},t):I(t,n)}function D(e,t){if(e===t)T(e,TypeError("You cannot resolve a promise with itself"));else if(n=typeof t,null!==t&&("object"===n||"function"===n)){var n,r=void 0;try{r=t.then}catch(t){T(e,t);return}x(e,t,r)}else I(e,t)}function N(e){e._onerror&&e._onerror(e._result),A(e)}function I(e,t){e._state===P&&(e._result=t,e._state=1,0!==e._subscribers.length&&d(A,e))}function T(e,t){e._state===P&&(e._state=2,e._result=t,d(N,e))}function R(e,t,n,r){var o=e._subscribers,i=o.length;e._onerror=null,o[i]=t,o[i+1]=n,o[i+2]=r,0===i&&e._state&&d(A,e)}function A(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r=void 0,o=void 0,i=e._result,a=0;a<t.length;a+=3)r=t[a],o=t[a+n],r?E(n,r,o,i):o(i);e._subscribers.length=0}}function E(t,n,r,o){var i=e(r),a=void 0,s=void 0,u=!0;if(i){try{a=r(o)}catch(e){u=!1,s=e}if(n===a)return void T(n,TypeError("A promises callback cannot return that same promise."))}else a=o;n._state!==P||(i&&u?D(n,a):!1===u?T(n,s):1===t?I(n,a):2===t&&T(n,a))}var C=0;function O(e){e[S]=C++,e._state=void 0,e._result=void 0,e._subscribers=[]}var K=function(){function e(e,t){this._instanceConstructor=e,this.promise=new e(j),this.promise[S]||O(this.promise),s(t)?(this.length=t.length,this._remaining=t.length,this._result=Array(this.length),0===this.length?I(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&I(this.promise,this._result))):T(this.promise,Error("Array Methods must be provided an Array"))}return e.prototype._enumerate=function(e){for(var t=0;this._state===P&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===_){var o=void 0,i=void 0,a=!1;try{o=e.then}catch(e){a=!0,i=e}if(o===w&&e._state!==P)this._settledAt(e._state,t,e._result);else if("function"!=typeof o)this._remaining--,this._result[t]=e;else if(n===B){var s=new n(j);a?T(s,i):x(s,e,o),this._willSettleAt(s,t)}
1else this._willSettleAt(new n(function(t){return t(e)}),t)}else this._willSettleAt(r(e),t)},e.prototype._settledAt=function(e,t,n){var r=this.promise;r._state===P&&(this._remaining--,2===e?T(r,n):this._result[t]=n),0===this._remaining&&I(r,this._result)},e.prototype._willSettleAt=function(e,t){var n=this;R(e,void 0,function(e){return n._settledAt(1,t,e)},function(e){return n._settledAt(2,t,e)})},e}(),B=function(){function t(e){this[S]=C++,this._result=this._state=void 0,this._subscribers=[],j!==e&&("function"!=typeof e&&function(){throw TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof t?function(e,t){try{t(function(t){D(e,t)},function(t){T(e,t)})}catch(t){T(e,t)}}(this,e):function(){throw TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return t.prototype.catch=function(e){return this.then(null,e)},t.prototype.finally=function(t){var n=this.constructor;return e(t)?this.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){throw e})}):this.then(t,t)},t}();return B.prototype.then=w,B.all=function(e){return new K(this,e).promise},B.race=function(e){var t=this;return new t(s(e)?function(n,r){for(var o=e.length,i=0;i<o;i++)t.resolve(e[i]).then(n,r)}:function(e,t){return t(TypeError("You must pass an array to race."))})},B.resolve=_,B.reject=function(e){var t=new this(j);return T(t,e),t},B._setScheduler=function(e){l=e},B._setAsap=function(e){d=e},B._asap=d,B.polyfill=function(){var e=void 0;if(void 0!==n.g)e=n.g;else if("u">typeof self)e=self;else try{e=Function("return this")()}catch(e){throw Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===r&&!t.cast)return}e.Promise=B},B.Promise=B,B}()},379:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var o={},i=[],a=0;a<e.length;a++){var s=e[a],u=r.base?s[0]+r.base:s[0],c=o[u]||0,l="".concat(u," ").concat(c);o[u]=c+1;var d=n(l),f={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==d)t[d].references++,t[d].updater(f);else{var p=function(e,t){var n=t.domAPI(t);return n.update(e),function(t){t?(t.css!==e.css||t.media!==e.media||t.sourceMap!==e.sourceMap||t.supports!==e.supports||t.layer!==e.layer)&&n.update(e=t):n.remove()}}(f,r);r.byIndex=a,t.splice(a,0,{identifier:l,updater:p,references:1})}i.push(l)}return i}e.exports=function(e,o){var i=r(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var s=n(i[a]);t[s].references--}for(var u=r(e,o),c=0;c<i.length;c++){var l=n(i[c]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}i=u}}},569:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},565:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){var r,o,i;r="",n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {")),(o=void 0!==n.layer)&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}"),(i=n.sourceMap)&&"u">typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleTagTransform(r,t,e.options)},remove:function(){var e;null===(e=t).parentNode||e.parentNode.removeChild(e)}}}},589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},529:e=>{"use strict";e.exports="data:image/svg+xml;utf8,    <svg xmlns=%27http://www.w3.org/2000/svg%27 version=%271.1%27 preserveAspectRatio=%27none%27 viewBox=%270 0 16 16%27>      <path d=%27M1 0 L0 1 L15 16 L16 15 L1 0%27 fill=%27%236e7492%27/>      <path d=%27M16 1 L16 1 L1 16 L0 15 L15 0%27 fill=%27%236e7492%27/>    </svg>"}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.m=e,n.n=e=>
1{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.b=document.baseURI||self.location.href,n.nc=void 0;var o={};return(()=>{"use strict";function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function r(n){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?t(Object(o),!0).forEach(function(t){e(n,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))})}return n}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,s=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(s)throw r}}return i}}(e,t)||a(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||a(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.d(o,{default:()=>rI});var c,l,d,f,p,h,m,v,g,y,b,k,w,_,S,j,P,x,D,N,I,T,R,A,E,C,O,K,B,U,q,L,M,W,V,F,z,G,Y,J,X,Q="general",H="gdpr",Z={TRANSACTION_ERROR:"XHR transaction failed due to an error",SERVER_MALFORMED_RESPONSE:"Response from server is malformed",SERVER_INTERNAL_ERROR:"Internal error occurred on the server",SERVER_CANNOT_PROCESS:"Server was not able to process the request, probably due to error coming from the client",NO_CONNECTION:"No internet connectivity",SKIP:"Skipping slower attempt",MISSING_URL:"Url is not provided"},$="noStorage",ee={endpointName:"Default",app:"https://app.adjust.com",gdpr:"https://gdpr.adjust.com"},et={endpointName:"Indian",app:"https://app.adjust.net.in",gdpr:"https://gdpr.adjust.net.in"},en={endpointName:"Chinese",app:"https://app.adjust.world",gdpr:"https://gdpr.adjust.world"},er={endpointName:"EU",app:"https://app.eu.adjust.com",gdpr:"https://gdpr.eu.adjust.com"},eo={endpointName:"TR",app:"https://app.tr.adjust.com",gdpr:"https://gdpr.tr.adjust.com"},ei={endpointName:"US",app:"https://app.us.adjust.com",gdpr:"https://gdpr.us.adjust.com"};function ea(e){return(ea="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function es(e){return!Object.keys(e).length&&e.constructor===Object}function eu(e){return"object"===ea(e)&&null!==e&&!(e instanceof Array)}function ec(e){try{var t=JSON.parse(e);return eu(t)}catch(e){return!1}}function el(e,t,n){for(var r=0;r<e.length;r+=1)if(function(e){return Array.isArray(t)?t.every(function(t){return e[t]===n[t]}):e[t]===n}(e[r]))return r;return -1}function ed(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.reduce(function(t,n){return r(r({},t),{},e({},n.key,n.value))},{})}function ef(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.filter(function(e){return -1!==t.indexOf(e)})}function ep(e,t){return new RegExp("\\/".concat(t,"(\\/.*|\\?.*){0,1}$")).test(e)}function eh(t,n){var o=s(n,2),i=o[0],a=o[1];return r(r({},t),{},e({},i,a))}function em(e){return Object.keys(e).map(function(t){return[t,e[t]]})}function ev(e){return Object.keys(e).map(function(t){return e[t]})}function eg(e){return eu(e)?!es(e):!!e||0===e}function ey(){try{var e=new Date().toString(),t=window.localStorage;t.setItem(e,e);var n=t.getItem(e)===e;return t.removeItem(e),!!(n&&t)}catch(e){return!1}}let eb="adjust-sdk",ek="5.6.0",ew="production";var e_="error",eS="warning",ej="info",eP="verbose",ex=(e(c={},"none",-1),e(c,e_,0),e(c,eS,1),e(c,ej,2),e(c,eP,3),c),eD={log:"  ",info:" ",warn:" ",error:""},eN={development:eP,production:e_,test:eP},eI=eN[ew]||e_,eT="";function eR(e,t){if(!(ex[eI]<ex[t])){for(var n,r=new Date().toISOString(),o=eD[e],i=["[".concat(eb,"]"),r,"".concat(e.toUpperCase(),":").concat(o)],a=eT?document.querySelector(eT):null,s=arguments.length,u=Array(s>2?s-2:0),c=2;c<s;c++)u[c-2]=arguments[c];(n=console)[e].apply(n,i.concat(u)),a&&(a.textContent+="".concat(i.join(" ")," ").concat(u.map(function(e){return eu(e)?JSON.stringify(e):e}).join(" "),"\n"),a.scrollTop=a.scrollHeight)}}function eA(e,t){return function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];eR.apply(void 0,[e,t].concat(r))}}var eE={setLogLevel:function(e,t){e&&-1===Object.keys(ex).indexOf(e)?eR("error","error","You must set one of the available log levels: verbose, info, warning, error or none"):(eI=e||eN[ew]||e_,eT=t||eT,eR("info",e,"Log level set to ".concat(eI)))},log:eA("log",eP),info:eA("info",ej),warn:eA("warn",eS),error:eA("error",e_)},eC={},eO={},eK=["appToken","environment"],eB=[].concat(eK,["defaultTracker","externalDeviceId"]),eU=["customUrl","dataResidency","urlStrategy","eventDeduplicationListLimit","namespace"];function eq(e){var t=eK.filter(function(t){return!e[t]});return!!t.length&&(eE.error("You must define ".concat(function(e){if(!e.length)return"";if(1===e.length)return"".concat(e[0]);var t=e.length-1,n=e.slice(0,t).join(", ");return"".concat(n," and ").concat(e[t])}(t))),!0)}var eL=r(r({},{sessionWindow:18e5,sessionTimerWindow:6e4,requestValidityWindow:24192e5}),{},{set:function(e){if(!eq(e)){var t=[].concat(u(eB),eU).filter(function(t){return!!e[t]}).map(function(t){return[t,e[t]]});eC=t.filter(function(e){var t=s(e,1)[0];return -1!==eB.indexOf(t)}).reduce(eh,{}
1),eO=t.filter(function(e){var t=s(e,1)[0];return -1!==eU.indexOf(t)}).reduce(eh,{})}},getBaseParams:function(){return r({},eC)},getCustomConfig:function(){return r({},eO)},isInitialised:function(){return eK.reduce(function(e,t){return e&&!!eC[t]},!0)},hasMissing:eq,destroy:function(){eC={},eO={}}});(E=d||(d={})).Queue="queue",E.ActivityState="activityState",E.GlobalParams="globalParams",E.EventDeduplication="eventDeduplication",(f||(f={})).Preferences="preferences",(C=p||(p={})).Queue="q",C.ActivityState="as",C.GlobalParams="gp",C.EventDeduplication="ed",(h||(h={})).Preferences="p";var eM={keyPath:"uuid",autoIncrement:!1,fields:{uuid:{key:"u",values:{unknown:"-"}},timeSpent:"ts",sessionLength:"sl",sessionCount:"sc",eventCount:"ec",lastActive:"la",lastInterval:"li",installed:{key:"in",values:{false:0,true:1}},attribution:{key:"at",keys:{adid:"a",tracker_token:"tt",tracker_name:"tn",network:"nt",campaign:"cm",adgroup:"ag",creative:"cr",click_label:"cl",state:{key:"st",values:{installed:1,reattributed:2}}}}}},eW={fields:{thirdPartySharingDisabled:{key:"td",keys:{reason:{key:"r",values:e({},Q,1)},pending:{key:"p",values:{false:0,true:1}}}},sdkDisabled:{key:"sd",keys:{reason:{key:"r",values:(e(l={},Q,1),e(l,H,2),l)},pending:{key:"p",values:{false:0,true:1}}}}}},eV={queue:{name:p.Queue,scheme:{keyPath:"timestamp",autoIncrement:!1,fields:{url:{key:"u",values:{"/session":1,"/event":2,"/gdpr_forget_device":3,"/sdk_click":4,"/disable_third_party_sharing":5}},method:{key:"m",values:{GET:1,POST:2,PUT:3,DELETE:4}},timestamp:"t",createdAt:"ca",params:{key:"p",keys:{timeSpent:"ts",sessionLength:"sl",sessionCount:"sc",eventCount:"ec",lastInterval:"li",eventToken:"et",revenue:"re",currency:"cu",callbackParams:"cp",partnerParams:"pp"}}}}},activityState:{name:p.ActivityState,scheme:eM},globalParams:{name:p.GlobalParams,scheme:{keyPath:"keyType",autoIncrement:!1,index:"type",fields:{keyType:{key:"kt",composite:["key","type"]},key:"k",value:"v",type:{key:"t",values:{callback:1,partner:2}}}}},eventDeduplication:{name:p.EventDeduplication,scheme:{keyPath:"internalId",autoIncrement:!0,fields:{internalId:"ii",id:"i"}}},preferences:{name:h.Preferences,scheme:eW,permanent:!0}};function eF(e){return!!e&&Object.prototype.hasOwnProperty.call(e,"values")}function ez(e){return!!e&&Object.prototype.hasOwnProperty.call(e,"keys")}function eG(e){return!!e&&Object.prototype.hasOwnProperty.call(e,"composite")}function eY(e){return!!e&&"string"!=typeof e}function eJ(e,t){if(t){var n=eV[e].scheme.fields[t];return eY(n)?n.key:n||t}}var eX=em(eV).map(function(e){var t=s(e,2),n=t[0],r=t[1];return[n,{keyPath:r.scheme.keyPath,autoIncrement:r.scheme.autoIncrement,index:r.scheme.index,fields:r.scheme.fields}]}).reduce(eh,{}),eQ=em(eX).map(function(e){var t=s(e,2),n=t[0],o=t[1],i={keyPath:eJ(n,o.keyPath),autoIncrement:o.autoIncrement,index:eJ(n,o.index),fields:function e(t,n){return em(n).map(function(n){var o,i,a,u,c,l,d=s(n,2),f=d[0],p=d[1];return eY(p)?[p.key,(o=t,i=f,u=eF(a=p)?{values:em(a.values).map(function(e){var t=s(e,2),n=t[0];return[t[1],function(e){try{return JSON.parse(e)}catch(t){return e}}(n)]}).reduce(eh,{})}:{},c=ez(a)?{keys:e(o,a.keys)}:{},l=eG(a)?{composite:a.composite.map(function(e){return eJ(o,e)})}:{},r(r(r({key:i},u),c),l))]:[p,f]}).reduce(eh,{})}(n,o.fields)};return[n,i]}).reduce(eh,{}),eH=em(eV).reduce(function(e,t){var n=s(t,2)[1];return e.concat(n.scheme.fields)},[]).map(function(e){return ev(e).filter(eF).map(function(e){return em(e.values)}).reduce(function(e,t){return e.concat(t)},[])}).reduce(function(e,t){return e.concat(t)},[]).reduce(eh,{}),eZ=em(eV).map(function(e){var t=s(e,2),n=t[0],r=t[1];return[n,{name:r.name,permanent:r.permanent}]}).reduce(eh,{});let e$={left:eX,right:eQ,values:eH,storeNames:{left:eZ,right:em(eZ).map(function(e){var t=s(e,2),n=t[0],r=t[1],o={name:n,permanent:r.permanent};return[r.name,o]}).reduce(eh,{})}};function e0(e,t){return e&&void 0!==e[t]?e[t]:t}function e1(t,n,o,i){if(o){var a=i||e$[n][e7(t,v.right)].fields;return em(o).map(function(e){var r=s(e,2),o=r[0],i=r[1],u=a[o];if(!u)return[o,i];var c=eY(u)?u.key:u;return eu(i)?[c,e1(t,n,i,ez(u)?u.keys:null)]:[c,e0(eF(u)?u.values:null,i)]}).reduce(function(t,n){var o=s(n,2),i=o[0],a=o[1];return r(r({},t),{},e({},i,a))},{})}}function e2(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return n.map(function(n){return e1(e,t,n)})}
1function e4(e,t,n){var r=e$[t][e7(e,v.right)],o=r.fields[r.keyPath],i=n instanceof Array?n.slice():[n],a=(eG(o)?o.composite:[r.keyPath]).map(function(e,t){var n=r.fields[e];return e0(eF(n)?n.values:null,i[t])});return 1===a.length?a[0]:a}function e5(e){return e$.values[e]||e}function e7(e,t){return(e$.storeNames[t][e]||{}).name||e}function e6(e,t){return{name:t.name,message:t.message.replace('"'.concat(e,'"'),e7(e,v.right))}}function e3(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function e8(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function e9(e,t,n){return t&&e8(e.prototype,t),n&&e8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function te(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e+"",r=1;r<=t;r+=1)e<Math.pow(10,r)&&(n="0".concat(n));return n}function tt(e){var t,n,r,o,i,a,s,u,c,l=e?new Date(e):new Date,d=(t=te(l.getDate()),n=te(l.getMonth()+1),[l.getFullYear(),n,t].join("-")),f=(r=te(l.getHours(),1),o=te(l.getMinutes()),i=te(l.getSeconds()),a=te(l.getMilliseconds(),2),[r,o,i].join(":")+"."+a),p=(u=te(Math.floor(Math.abs(s=l.getTimezoneOffset())/60)),c=te(Math.abs(s)%60),(s>0?"-":"+")+u+c);return"".concat(d,"T").concat(f,"Z").concat(p)}function tn(e,t){return isNaN(e)||isNaN(t)?0:Math.abs(t-e)}"u"<typeof Promise&&n(702).Promise,(O=m||(m={})).LowerBound="lowerBound",O.UpperBound="upperBound",(K=v||(v={})).right="right",K.left="left";var tr={},to=!1,ti=!1;function ta(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};tr=to?r({},e):{}}function ts(){var e;to&&(tr.lastInterval=(e=tr.lastActive)?Math.round(tn(e,Date.now())/1e3):-1,tr.lastActive=Date.now())}function tu(e){tr=r(r({},tr),e)}function tc(){ti=!0}function tl(){return Math.round(tn(tr.lastActive,Date.now())/1e3)}function td(){return(tr.timeSpent||0)+(ti?tl():0)}function tf(){var e=tn(tr.lastActive,Date.now())<eL.sessionWindow,t=ti||!ti&&e;return(tr.sessionLength||0)+(t?tl():0)}function tp(){to&&(tu({timeSpent:td(),sessionLength:tf()}),ts())}let th={get current(){return to?r({},tr):{}},set current(value){ta(value)},init:function(e){to=!0,ta(e)},isStarted:function(){return to},toForeground:tc,toBackground:function(){ti=!1},initParams:function(){tp(),tc()},getParams:function(e){if(!to)return null;var t=tr.lastInterval>=0?tr.lastInterval:0,n={timeSpent:tr.timeSpent||0,sessionLength:tr.sessionLength||0,sessionCount:tr.sessionCount||1,lastInterval:t||0};return e&&ep(e,"event")&&(n.eventCount=tr.eventCount),n},updateParams:function(e,t){if(to){var n={};n.timeSpent=td(),n.sessionLength=tf(),ep(e,"session")&&(n.sessionCount=(tr.sessionCount||0)+1),ep(e,"event")&&(n.eventCount=(tr.eventCount||0)+1),tu(n),t||ts()}},updateInstalled:function(){!to||tr.installed||tu({installed:!0})},updateSessionOffset:tp,updateSessionLength:function(){to&&(tu({sessionLength:tf()}),ts())},resetSessionOffset:function(){to&&tu({timeSpent:0,sessionLength:0})},updateLastActive:ts,destroy:function(){tr={},to=!1,ti=!1},getAttribution:function(){return to?tr.attribution?tr.attribution:(eE.log("No attribution data yet"),null):null},getWebUUID:function(){return to?tr.uuid:null}};var tm={},tv=[];function tg(e,t){var n="id"+Math.random().toString(36).substr(2,16);return tm[e]||(tm[e]=[]),tm[e].push({id:n,cb:t}),n}function ty(e,t){tm[e]&&tm[e].forEach(function(n){"function"==typeof n.cb&&tv.push(setTimeout(function(){return n.cb(e,t)}))})}var tb=function(){function t(){e3(this,t),e(this,"items",{})}return e9(t,[{key:"getItem",value:function(e){return Object.prototype.hasOwnProperty.call(this.items,e)?this.items[e]:null}},{key:"removeItem",value:function(e){delete this.items[e]}},{key:"setItem",value:function(e,t){this.items[e]=t}}]),t}();let tk=new(function(){function t(){var n=this;e3(this,t),e(this,"defaultName",eb),e(this,"storageName",this.defaultName),e(this,"storeNames",e$.storeNames.left),e(this,"storesMap",void 0),e(this,"storage",void 0),this.storesMap={},ey()?this.storage=window.localStorage:this.storage=new tb;var r=this.read.bind(this),o=this.write.bind(this);
1ev(this.storeNames).forEach(function(e){var t=e.name;Object.defineProperty(n.storesMap,t,{get:function(){return r(t)},set:function(e){o(t,e)}})}),Object.freeze(this.storesMap)}return e9(t,[{key:"read",value:function(e){var t=this.storage.getItem("".concat(this.storageName,".").concat(e)),n=t?JSON.parse(t):null;return e===h.Preferences&&n?e1(h.Preferences,v.right,n):n}},{key:"write",value:function(e,t){t?this.storage.setItem("".concat(this.storageName,".").concat(e),JSON.stringify(t instanceof Array?t:e1(h.Preferences,v.left,t))):this.storage.removeItem("".concat(this.storageName,".").concat(e))}},{key:"clear",value:function(){this.deleteData()}},{key:"deleteData",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];ev(this.storeNames).forEach(function(n){(t||!n.permanent)&&e.storage.removeItem("".concat(e.storageName,".").concat(n.name))})}},{key:"setCustomName",value:function(e){var t=this;if(e&&e.length){var n="".concat(eb,"-").concat(e);ev(this.storeNames).forEach(function(e){var r=e.name,o=t.storage.getItem("".concat(t.storageName,".").concat(r));o&&t.storage.setItem("".concat(n,".").concat(r),o)}),this.deleteData(!0),this.storageName=n}}},{key:"stores",get:function(){return this.storesMap}}]),t}());var tw=eV.preferences.name,t_=tS();function tS(){return t_||tj(),t_?r({},t_):null}function tj(){t_=tk.stores[tw]}function tP(){var e=tS();return e?e.sdkDisabled:null}function tx(e){var t=e?r({},e):null;tk.stores[tw]=r(r({},tS()),{},{sdkDisabled:t}),tj()}function tD(){var e=tS();return e?e.thirdPartySharingDisabled:null}function tN(){var e=tk.stores[tw]||{},t=(t_||{}).sdkDisabled||null;e.sdkDisabled&&!t&&ty("sdk:shutdown"),tj()}function tI(){tk.stores[tw]||(tk.stores[tw]=r({},t_))}var tT="u"<typeof Promise?n(702).Promise:Promise;(B=g||(g={})).add="add",B.put="put",B.get="get",B.list="list",B.clear="clear",B.delete="delete",(U=y||(y={})).readonly="readonly",U.readwrite="readwrite";var tR=function(){function t(){e3(this,t),e(this,"dbDefaultName",eb),e(this,"dbName",this.dbDefaultName),e(this,"dbVersion",1),e(this,"idbFactory",void 0),e(this,"indexedDbConnection",null),e(this,"notSupportedError",{name:"IDBNotSupported",message:"IndexedDB is not supported"}),e(this,"databaseOpenError",{name:"CannotOpenDatabaseError",message:"Cannot open a database"}),e(this,"noConnectionError",{name:"NoDatabaseConnection",message:"Cannot open a transaction"});var n=t.getIndexedDB();if(!n)throw this.notSupportedError;this.idbFactory=n}return e9(t,[{key:"setCustomName",value:function(e){return e&&e.length>0?(this.dbName="".concat(eb,"-").concat(e),this.migrateDb(this.dbDefaultName,this.dbName)):tT.resolve()}},{key:"openDatabase",value:function(e,n,r){var o=this;return t.isSupported().then(function(t){return t?new tT(function(t,i){var a=o.idbFactory.open(e,r);n&&(a.onupgradeneeded=function(e){return n(e,i)}),a.onsuccess=function(e){var n=e.target.result;n?t(n):i(o.databaseOpenError)},a.onerror=i}):tT.reject(o.notSupportedError)})}},{key:"databaseExists",value:function(e){var t=this;return new tT(function(n){var r=!0;t.openDatabase(e,function(){r=!1}).then(function(n){if(n.close(),!r)return t.deleteDatabaseByName(e)}).then(function(){return n(r)})})}},{key:"cloneData",value:function(e,t){var n=this,r=function(r){var o=n.indexedDbConnection;return n.indexedDbConnection=e,n.getAll(r).then(function(e){if(n.indexedDbConnection=t,!(e.length<1))return n.addBulk(r,e,!0)}).then(function(){n.indexedDbConnection=o})};return ev(e$.storeNames.left).map(function(e){return e.name}).filter(function(e){return"p"!==e}).map(function(e){return function(){return r(e)}}).reduce(function(e,t){return e.then(t)},tT.resolve())}},{key:"migrateDb",value:function(e,t){var n=this;return this.databaseExists(e).then(function(r){return r?tT.all([n.openDatabase(e,n.handleUpgradeNeeded,n.dbVersion),n.openDatabase(t,n.handleUpgradeNeeded,n.dbVersion)]).then(function(t){var r=s(t,2),o=r[0],i=r[1];return n.cloneData(o,i).then(function(){return n.indexedDbConnection=i,o.close(),n.deleteDatabaseByName(e)})}).then(function(){return eE.info("Database migration finished")}):n.openDatabase(t,n.handleUpgradeNeeded,n.dbVersion).then(function(e){n.indexedDbConnection=e})})}},{key:"handleUpgradeNeeded",value:function(e,t){var n=e.target.result;e.target.transaction.onerror=t,e.target.transaction.onabort=t;var r=e$.storeNames.left,o=th.current||{},i=o&&!es(o);em(r).filter(function(e){return!s(e,2)[1].permanent}
1).forEach(function(e){var t=s(e,2),r=t[0],a=t[1].name,u=e$.right[r],c=n.createObjectStore(a,{keyPath:u.keyPath,autoIncrement:u.autoIncrement||!1});if(u.index&&c.createIndex("".concat(u.index,"Index"),u.index),a===p.ActivityState&&i){c.add(e1(r,v.left,o)),eE.info("Activity state has been recovered");return}var l=tk.stores[a];l&&(l.forEach(function(e){return c.add(e)}),eE.info("Migration from localStorage done for ".concat(r," store")))}),tI(),tk.clear()}},{key:"open",value:function(){var e=this;return this.indexedDbConnection?tT.resolve({success:!0}):this.openDatabase(this.dbName,this.handleUpgradeNeeded,this.dbVersion).then(function(t){return e.indexedDbConnection=t,e.indexedDbConnection.onclose=function(){return e.destroy},{success:!0}})}},{key:"getTransactionStore",value:function(e,t,n){var r,o=e.storeName,i=e.mode,a=n.transaction([o],i),s=a.objectStore(o),u=e$.right[e7(o,v.right)];return u.index&&(r=s.index("".concat(u.index,"Index"))),a.onerror=t,a.onabort=t,{transaction:a,store:s,index:r,options:u}}},{key:"overrideError",value:function(e,t){var n=t.target.error;return e({name:n.name,message:n.message})}},{key:"getCompositeKeys",value:function(e){var t=e.fields[e.keyPath];return eG(t)?t.composite:null}},{key:"targetIsObject",value:function(e){return eu(e)}},{key:"prepareTarget",value:function(t,n,o){if(o===g.clear||!n)return null;var i=this.getCompositeKeys(t);return -1!==[g.add,g.put].indexOf(o)?this.targetIsObject(n)?i?r(e({},t.keyPath,i.map(function(e){return n[e]}).join("")),n):n:null:n instanceof Array?n.join(""):n}},{key:"prepareResult",value:function(e,t){var n=this.getCompositeKeys(e);return n&&this.targetIsObject(t)?n.map(function(e){return t[e]}):null}},{key:"initRequest",value:function(e){var t=this,n=e.storeName,r=e.target,o=void 0===r?null:r,i=e.action,a=e.mode,s=void 0===a?y.readonly:a;return this.open().then(function(){return new tT(function(e,r){if(t.indexedDbConnection){var a=t.getTransactionStore({storeName:n,mode:s},r,t.indexedDbConnection),u=a.store,c=a.options,l=u[i](t.prepareTarget(c,o,i)),d=t.prepareResult(c,o);l.onsuccess=function(){i!==g.get||l.result?e(d||l.result||o):r({name:"NotRecordFoundError",message:'Requested record not found in "'.concat(n,'" store')})},l.onerror=function(e){return t.overrideError(r,e)}}else r(t.noConnectionError)})})}},{key:"initBulkRequest",value:function(e){var t=this,n=e.storeName,r=e.target,o=e.action,i=e.mode,a=void 0===i?y.readwrite:i;return r&&(!r||r.length)?this.open().then(function(){return new tT(function(e,i){if(t.indexedDbConnection){var s=t.getTransactionStore({storeName:n,mode:a},i,t.indexedDbConnection),u=s.transaction,c=s.store,l=s.options,d=[],f=r[0];u.oncomplete=function(){return e(d)},function e(n){n.onerror=function(e){return t.overrideError(i,e)},n.onsuccess=function(){d.push(t.prepareResult(l,f)||n.result),f=r[d.length],d.length<r.length&&e(c[o](t.prepareTarget(l,f,o)))}}(c[o](t.prepareTarget(l,f,o)))}else i(t.noConnectionError)})}):tT.reject({name:"NoTargetDefined",message:"No array provided to perform ".concat(o,' bulk operation into "').concat(n,'" store')})}},{key:"openCursor",value:function(e){var t=this,n=e.storeName,r=e.action,o=e.range,i=void 0===o?null:o,a=e.firstOnly,s=void 0!==a&&a,u=e.mode,c=void 0===u?y.readonly:u;return this.open().then(function(){return new tT(function(e,o){if(t.indexedDbConnection){var a=t.getTransactionStore({storeName:n,mode:c},o,t.indexedDbConnection),u=a.transaction,l=a.store,d=a.index,f=a.options,p=(d||l).openCursor(i),h=[];u.oncomplete=function(){return e(h)},p.onsuccess=function(e){var n=e.target.result;n&&(r===g.delete?(n.delete(),h.push(t.prepareResult(f,n.value)||n.value[f.keyPath])):h.push(n.value),s||n.continue())},p.onerror=function(e){return t.overrideError(o,e)}}else o(t.noConnectionError)})})}},{key:"deleteDatabaseByName",value:function(e){var t=this;return new tT(function(n,r){var o=t.idbFactory.deleteDatabase(e);o.onerror=function(e){return t.overrideError(r,e)},o.onsuccess=function(){return n()},o.onblocked=function(e){return r(e.target)}})}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.openCursor({storeName:e,action:g.list,firstOnly:t})}},{key:"getFirst",value:function(e){return this.getAll(e,!0).then(function(e){return e.length?e[0]:void 0})}},{key:"getItem",value:function(e,t){return this.initRequest({storeName:e,target:t,action:g.get})}},{key:"filterBy",value:function(e,t){var n=IDBKeyRange.only(t);return this.openCursor({storeName:e,action:g.list,range:n})}},{key:"addItem",value:function(e,t){return this.initRequest({storeName:e,target:t,action:g.add,mode:y.readwrite})}},{key:"addBulk",value:function(e,t,n){return this.initBulkRequest({storeName:e,target:t,action:n?g.put:g.add,mode:y.readwrite})}},{key:"updateItem",value:function(e,t){return this.initRequest({storeName:e,target:t,action:g.put,mode:y.readwrite})}},{key:"deleteItem",value:function(e,t){return this.initRequest({storeName:e,target:t,action:g.delete,mode:y.readwrite})}},{key:"deleteBulk",value:function(e,t,n){var r=n?IDBKeyRange[n](t):IDBKeyRange.only(t);return this.openCursor({storeName:e,action:g.delete,range:r,mode:y.readwrite})}},{key:"trimItems",value:function(e,t){var n=this,r=e$.right[e7(e,v.right)];return this.getAll(e).then(function(e){return e.length?e[t-1]:null}).then(function(t){return t?n.deleteBulk(e,t[r.keyPath],m.UpperBound):[]})}},{key:"count",value:function(e){var t=this;return this.open().then(function(){return new tT(function(n,r){if(t.indexedDbConnection){var o=t.getTransactionStore({storeName:e,mode:y.readonly},r,t.indexedDbConnection).store.count();o.onsuccess=function(){return n(o.result)},o.onerror=function(e){return t.overrideError(r,e)}}else r(t.noConnectionError)})})}},{key:"clear",value:function(e){return this.initRequest({storeName:e,action:g.clear,mode:y.readwrite})}},{key:"destroy",value:function(){this.indexedDbConnection&&this.indexedDbConnection.close(),this.indexedDbConnection=null}},{key:"deleteDatabase",value:function(){return this.destroy(),this.deleteDatabaseByName(this.dbName)}}],[{key:"tryOpen",value:function(e){return new tT(function(n){try{var r=e.open(t.dbValidationName);r.onsuccess=function(){r.result.close(),e.deleteDatabase(t.dbValidationName),n(!0)},r.onerror=function(){return n(!1)}}catch(e){n(!1)}})}},{key:"isSupported",value:function(){if(t.isSupportedPromise);else{var e="IndexedDB is not supported in this browser";t.isSupportedPromise=new tT(function(n){var r=t.getIndexedDB(),o=!!navigator.platform&&/iPad|iPhone|iPod/.test(navigator.platform);!r||o?(eE.warn(e),n(!1)):n(t.tryOpen(r).then(function(t){return t||eE.warn(e),t}))})}return t.isSupportedPromise}},{key:"getIndexedDB",value:function(){return window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB}}]),t}();e(tR,"dbValidationName","validate-db-openable"),e(tR,"isSupportedPromise",null);var tA="u"<typeof Promise?n(702).Promise:Promise,tE=function(){function t(){e3(this,t)}return e9(t,[{key:"open",value:function(){return t.isSupported().then(function(e){if(!e)return{status:"error",error:{name:"LSNotSupported",message:"LocalStorage is not supported"}};var t=e$.storeNames.left,n=th.current||{},r=n&&!es(n);return em(t).filter(function(e){return!s(e,2)[1].permanent}
1).forEach(function(e){var t=s(e,2),o=t[0],i=t[1].name;i!==p.ActivityState||tk.stores[i]?tk.stores[i]||(tk.stores[i]=[]):tk.stores[i]=r?[e1(o,v.left,n)]:[]}),tI(),{status:"success"}})}},{key:"getCompositeKeys",value:function(e){var t=e.fields[e.keyPath];return eG(t)?t.composite:null}},{key:"getKeys",value:function(e){var t=e7(e,v.right),n=e$.right[t];return this.getCompositeKeys(n)||[n.keyPath]}},{key:"nextIndex",value:function(e){return"number"==typeof e?e+1:void 0}},{key:"initRequest",value:function(e,t){var n=this,o=e.storeName,i=e.id,a=e.item,s=e$.right[e7(o,v.right)];return this.open().then(function(e){return"error"===e.status?tA.reject(e.error):new tA(function(e,u){var c,l=tk.stores[o],d=n.getKeys(o),f=(l[l.length-1]||{})[s.keyPath]||0;if(i){var p=Array.isArray(i)?i.slice():[i];c=d.map(function(e,t){return[e,p[t]]}).reduce(eh,{})}else c=r({},a);var h=c?el(l,d,c):0;return t(e,u,{keys:d,items:l,index:h,options:s,lastId:f})})})}},{key:"sort",value:function(e,t,n){var r=u(e),o=t.slice().reverse();return r.sort(function(e,t){return o.reduce(function(r,o){var i,a;return r||(i=n?n===e[o]:e[o]<t[o],a=n?n>e[o]:e[o]>t[o],i?-1:+!!a)},0)})}},{key:"prepareTarget",value:function(t,n,o){var i=this.getCompositeKeys(t);return i?r(e({},t.keyPath,i.map(function(e){return n[e]}).join("")),n):t.autoIncrement&&o?r(e({},t.keyPath,o),n):r({},n)}},{key:"prepareResult",value:function(e,t){var n=this.getCompositeKeys(e);return n?n.map(function(e){return t[e]}).filter(function(e){return!eu(e)}):t[e.keyPath]}},{key:"getAll",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.open().then(function(r){return"error"===r.status?tA.reject(r.error):new tA(function(r,o){var i=tk.stores[e];i instanceof Array?r(n?[i[0]]:t.sort(i,t.getKeys(e))):o({name:"NotFoundError",message:"No objectStore named ".concat(e," in this database")})})})}},{key:"getFirst",value:function(e){return this.getAll(e,!0).then(function(e){return e.length?e[0]:void 0})}},{key:"getItem",value:function(e,t){var n=this;return this.initRequest({storeName:e,id:t},function(t,r,o){var i=o.items,a=o.index,s=o.options;-1===a?r({name:"NotRecordFoundError",message:'Requested record not found in "'.concat(e,'" store')}):t(n.prepareTarget(s,i[a]))})}},{key:"filterBy",value:function(e,t){return this.getAll(e).then(function(n){return n.filter(function(n){var r=e$.right[e7(e,v.right)];return(r.index&&n[r.index])===t})})}},{key:"addItem",value:function(e,t){var n=this;return this.initRequest({storeName:e,item:t},function(r,o,i){var a=i.items,s=i.index,u=i.options,c=i.lastId;-1!==s?o({name:"ConstraintError",message:'Constraint was not satisfied, trying to add existing item into "'.concat(e,'" store')}):(a.push(n.prepareTarget(u,t,n.nextIndex(c))),tk.stores[e]=a,r(n.prepareResult(u,t)))})}},{key:"addBulk",value:function(e,t,n){var r=this;return this.initRequest({storeName:e},function(o,i,a){var s=a.keys,c=a.items,l=a.options,d=a.lastId;if(!t||t&&!t.length)return void i({name:"NoTargetDefined",message:'No array provided to perform add bulk operation into "'.concat(e,'" store')});var f=d,p=t.map(function(e){return r.prepareTarget(l,e,f=r.nextIndex(f))}),h=p.filter(function(e){return -1!==el(c,s,e)}).map(function(e){return e[l.keyPath]}),m=n?c.filter(function(e){return -1===h.indexOf(e[l.keyPath])}):u(c);h.length&&!n?i({name:"ConstraintError",message:'Constraint was not satisfied, trying to add existing items into "'.concat(e,'" store')}):(tk.stores[e]=r.sort([].concat(u(m),u(p)),s),o(t.map(function(e){return r.prepareResult(l,e)})))})}},{key:"updateItem",value:function(e,t){var n=this;return this.initRequest({storeName:e,item:t},function(r,o,i){var a=i.items,s=i.index,u=i.options,c=i.lastId,l=-1===s?n.nextIndex(c):void 0,d=n.prepareTarget(u,t,l);-1===s?a.push(d):a.splice(s,1,d),tk.stores[e]=a,r(n.prepareResult(u,t))})}},{key:"deleteItem",value:function(e,t){return this.initRequest({storeName:e,id:t},function(n,r,o){var i=o.items,a=o.index;-1!==a&&(i.splice(a,1),tk.stores[e]=i),n(t)})}},{key:"findMax",value:function(e,t,n){if(!e.length)return -1;for(var r={index:-1,value:"string"==typeof n?"":0},o=0;o<e.length;o+=1)if(e[o][t]<=n)e[o][t]>=r.value&&(r={value:e[o][t],index:o});else break;return r.index}},{key:"deleteBulk",value:function(e,t,n){var r=this;return this.getAll(e).then(function(o){var i=r.getKeys(e),a=e$.right[e7(e,v.right)].index||i[0],s=r.sort(o,i,n?null:t),u=r.findMax(s,a,t);if(-1===u)return[];var c=n===m.LowerBound?u:0,l=n&&n!==m.UpperBound?s.length:u+1,d=s.splice(c,l).map(function(e){return 1===i.length?e[a]:i.map(function(t){return e[t]})});return tk.stores[e]=s,d})}},{key:"trimItems",value:function(e,t){var n=this,r=e7(e,v.right),o=e$.right[r];return this.getAll(e).then(function(e){return e.length?e[t-1]:null}).then(function(t){return t?n.deleteBulk(e,t[o.keyPath],m.UpperBound):[]})}},{key:"count",value:function(e){return this.open().then(function(t){if("error"===t.status)return tA.reject(t.error);var n=tk.stores[e];return tA.resolve(n instanceof Array?n.length:1)})}},{key:"clear",value:function(e){return this.open().then(function(t){return"error"===t.status?tA.reject(t.error):new tA(function(t){tk.stores[e]=[],t()})})}},{key:"destroy",value:function(){}},{key:"deleteDatabase",value:function(){}}],[{key:"isSupported",value:function(){return t.isSupportedPromise||(t.isSupportedPromise=new tA(function(e){var t=ey();t||eE.warn("LocalStorage is not supported in this browser"),e(t)})),t.isSupportedPromise}}]),t}();e(tE,"isSupportedPromise",null);var tC="u"<typeof Promise?n(702).Promise:Promise;(q=b||(b={}))[q.noStorage=$]="noStorage",q[q.indexedDB="indexedDB"]="indexedDB",q[q.localStorage="localStorage"]="localStorage";var tO=null;function tK(e){var t=null;return null!==tO||(tO=tC.all([tR.isSupported(),tE.isSupported()]).then(function(n){var r=s(n,2),o=r[0],i=r[1];if(tk.setCustomName(e),o){k=b.indexedDB;var a=new tR;return a.setCustomName(e).then(function(){return t=a})}return i?(k=b.localStorage,t=new tE):(eE.error("There is no storage available, app will run with minimum set of features"),k=b.noStorage,t=null),tC.resolve(t)}).then(function(){return{type:k,storage:t}})),tO}let tB=r({init:tK,getType:function(){return k}},em({getAll:function(e,t,n){return e.getAll(t,n).then(function(e){return e2(t,v.right,e)})},getFirst:function(e,t){return e.getFirst(t).then(function(e){return e1(t,v.right,e)})},getItem:function(e,t,n){return e.getItem(t,e4(t,v.left,n)).then(function(e){return e1(t,v.right,e)}).catch(function(e){return tC.reject(e6(t,e))})},filterBy:function(e,t,n){return e.filterBy(t,e5(n)).then(function(e){return e2(t,v.right,e)})},addItem:function(e,t,n){var r=e1(t,v.left,n);return e.addItem(t,r).then(function(e){return e4(t,v.right,e)}).catch(function(e){return tC.reject(e6(t,e))})},addBulk:function(e,t,n,r){var o=e2(t,v.left,n);return e.addBulk(t,o,r).then(function(e){return e.map(function(e){return e4(t,v.right,e)})}).catch(function(e){return tC.reject(e6(t,e))})},updateItem:function(e,t,n){var r=e1(t,v.left,n);return e.updateItem(t,r).then(function(e){return e4(t,v.right,e)})},deleteItem:function(e,t,n){return e.deleteItem(t,e4(t,v.left,n)).then(function(e){return e4(t,v.right,e)})},deleteBulk:function(e,t,n,r){return e.deleteBulk(t,e5(n),r).then(function(e){return e.map(function(e){return e4(t,v.right,e)})})}
1,trimItems:function(e,t,n){return e.trimItems(t,n)},count:function(e,t){return e.count(t)},clear:function(e,t){return e.clear(t)},destroy:function(e){return e.destroy()},deleteDatabase:function(e){return e.deleteDatabase()}}).map(function(e){var t=s(e,2),n=t[0],r=t[1];return[n,function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return tK().then(function(t){var o=t.storage;if(o)return r.call.apply(r,[null,o,e7(e,v.left)].concat(n))})}]}).reduce(eh,{}));"u"<typeof Promise&&n(702).Promise;var tU="u"<typeof Promise?n(702).Promise:Promise;function tq(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{status:"error",action:n?"CONTINUE":"RETRY",response:ec(e.responseText)?JSON.parse(e.responseText):e.responseText,message:Z[t],code:t}}function tL(e,t){var n=e.slice(0,e.length-t.length-1).split("").reduce(function(e){return e.concat(" ")},"");return"".concat(t).concat(n,":")}var tM={long:{delay:12e4,maxDelay:864e5,minRange:.5,maxRange:1},short:{delay:200,maxDelay:36e5,minRange:.5,maxRange:1},test:{delay:100,maxDelay:300}},tW=navigator.onLine;function tV(){tW=!0}function tF(){tW=!1}function tz(e,t,n){e.addEventListener&&e.addEventListener(t,n,!1)}function tG(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}function tY(e,t){eE.warn("Both ".concat(e," and ").concat(t," are set in config, ").concat(t," will be ignored"))}(L=_||(_={}
1)).Default="default",L.India="india",L.China="china",(M=S||(S={})).EU="EU",M.TR="TR",M.US="US";var tJ=(e(w={},_.Default,ee),e(w,_.India,et),e(w,_.China,en),e(w,S.EU,er),e(w,S.TR,eo),e(w,S.US,ei),w),tX="u"<typeof Promise?n(702).Promise:Promise;let tQ=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=n.url,i=n.method,a=void 0===i?"GET":i,u=n.params,c=void 0===u?{}:u,l=n.continueCb,d=n.strategy,f=n.wait,p=o,h=a,m=r({},c),v=l,g=function(){e.reset(),t=e.next()},y=null,b={request:0,connection:0},k=S(f),w=null;function S(e){return(e=e||150)>0x7fffffff?0x7fffffff:e}function j(n){var o=n.wait,i=n.retrying;return(e||(t=(e=function(){var e,t,n,r,o,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tJ,a=Array.isArray((t=(e=eL.getCustomConfig()).customUrl,n=e.urlStrategy,r=e.dataResidency,o=t?((r||n)&&tY("customUrl",r?"dataResidency":"urlStrategy"),{app:t,gdpr:t}):(r&&n&&tY("dataResidency","urlStrategy"),r)?[r]:n===_.India?[_.India,_.Default]:n===_.China?[_.China,_.Default]:[_.Default,_.India,_.China]))?o.map(function(e){return i[e]||null}).filter(function(e){return!!e}):[o],s=0;return{next:function(){return s<a.length?{value:a[s++],done:!1}:{value:void 0,done:!0}},reset:function(){s=0}}}()).next()),k=o?S(o):k,function(e){if(!w)return!1;if(y){var t=k-(Date.now()-w);if(e&&t<e)return!0;I()}return!1}(o))?tX.resolve({status:"error",action:"CONTINUE",response:"",message:Z.SKIP,code:"SKIP"}):p?(eE.log("".concat(i?"Re-trying":"Trying"," request ").concat(p," in ").concat(k,"ms")),w=Date.now(),function n(o){var i;return(N(),tW)?(i=o,new tX(function(n,o){y=setTimeout(function(){w=null;var a,u=em(i.params).filter(function(e){return eg(s(e,2)[1])}).reduce(eh,{});return(a={endpoint:i.endpoint,url:i.url,method:i.method,params:r(r({},u),{},{attempts:(b.request?b.request+1:1)+b.connection})},tB.getAll("queue").then(function(e){return{queueSize:e.length}}).then(function(e){var t,n,o,i,a,u,c,l,d;return r(r(r(r(r(r(r(r({},{createdAt:tt()}),{sentAt:tt()}),{webUuid:th.current.uuid}),(n=void 0!==(t=navigator).doNotTrack,o=void 0!==window.doNotTrack,i=void 0!==t.msDoNotTrack,0===parseInt(a=n?t.doNotTrack:o?window.doNotTrack:i?t.msDoNotTrack:null,10)||"no"===a?{trackingEnabled:!0}:1===parseInt(a,10)||"yes"===a?{trackingEnabled:!1}:null)),{platform:"web"}),{language:(c=s(((u=navigator).language||u.userLanguage||"en").split("-"),2))[0],country:(l=c[1])?""+l.toLowerCase():void 0}),(d=navigator.userAgent||navigator.vendor,{machineType:"Win32"===navigator.platform&&(-1!==d.indexOf("WOW64")||-1!==d.indexOf("Win64"))?"Win64":navigator.platform})),e)}).then(function(e){var t,n,o,i,u,c,l,d,f,p,h,m,v,g,y,b;return t=a.endpoint,y=(c={endpoint:t,url:n=a.url,method:i=void 0===(o=a.method)?"GET":o,params:void 0===(u=a.params)?{}:u},l=c.endpoint,d=c.url,f=c.method,p=c.params,h="REQUEST PARAMETERS:",m=em(r(r(r({},eL.getBaseParams()),e),p)).map(function(e){var t=s(e,2),n=t[0],r=t[1];return[n.replace(/([A-Z])/g,function(e){return"_".concat(e.toLowerCase())}),r]}),eE.log(h),v=m.filter(function(e){return eg(s(e,2)[1])}).map(function(e){var t,n,r,o,i,a=s(e,2),u=a[0],c=a[1];return eE.log(tL(h,u),c),n=(t=s([u,c],2))[0],r=t[1],o=encodeURIComponent(n),i=r,"string"==typeof r&&(i=encodeURIComponent(r)),eu(r)&&(i=encodeURIComponent(JSON.stringify(r)||"")),[o,i].join("=")}).join("&"),g={fullUrl:l+d+("GET"===f?"?".concat(v):""),encodedParams:v}).fullUrl,b=g.encodedParams,new tU(function(e,t){var r=new XMLHttpRequest;r.open(i,y,!0),eE.log("REQUEST HEADERS:"),[["Client-SDK","js".concat(ek)],["Content-Type","POST"===i?"application/x-www-form-urlencoded":"application/json"]].forEach(function(e){var t=s(e,2),n=t[0],o=t[1];r.setRequestHeader(n,o),eE.log(tL("REQUEST HEADERS:",n),o)}),r.onreadystatechange=function(){return function(e,t,n){var r=n.xhr,o=n.url;if(4===r.readyState){var i,a,u=r.status>=200&&r.status<300,c=ec(r.responseText);if(0!==r.status)return c?t(u?(a={status:"success",adid:(i=JSON.parse(r.responseText)).adid,timestamp:i.timestamp,ask_in:i.ask_in,retry_in:i.retry_in,continue_in:i.continue_in,tracking_state:i.tracking_state,attribution:void 0,message:void 0},ep(o,"attribution")&&(a.attribution=i.attribution,a.message=i.message),em(a).filter(function(e){return!!s(e,2)[1]}).reduce(eh,{})):tq(r,"SERVER_CANNOT_PROCESS",!0)):e(u?tq(r,"SERVER_MALFORMED_RESPONSE"):tq(r,"SERVER_INTERNAL_ERROR"));e(tq(r,"NO_CONNECTION"))}}(t,e,{xhr:r,url:n})},r.onerror=function(){return t(tq(r,"TRANSACTION_ERROR"))},r.send("GET"===i?void 0:b)})}).then(function(e){var t,n,r,o,i,s,u,c;return t=a.url,"success"===e.status?(n=e,o=ep(r=t,"gdpr_forget_device"),i=ep(r,"attribution"),s=ep(r,"session"),u=ep(r,"disable_third_party_sharing"),c="opted_out"===n.tracking_state,!o&&c?ty("sdk:gdpr-forget-me"):(i||o||c||!n.ask_in||ty("attribution:check",n),s&&ty("session:finished",n),u&&ty("sdk:third-party-sharing-opt-out")),n):e})).then(function(e){var t,r;return t=e,r=n,void(t&&t.retry_in?r(D(t.retry_in)):(g(),"function"==typeof v?v(t,x,D):x(),r(t)))}).catch(function(r){var i=r,a=n,s=o;if(i&&"RETRY"===i.action){if("NO_CONNECTION"===i.code){var u=e.next();u.done?(g(),a(D(6e4))):(t=u,a(D(150)))}else a(D());return}x(!0),s(i||{})})},k)})):(b.connection+=1,eE.log("No internet connectivity, trying request ".concat(o.url," in ").concat(6e4,"ms")),new tX(function(e){y=setTimeout(function(){e(n(o))},6e4)}))}({endpoint:t.value["/gdpr_forget_device"===p?"gdpr":"app"],url:p,method:h,params:r({attempts:1},m)})):(eE.error("You must define url for the request to be sent"),tX.reject({status:"error",action:"CONTINUE",response:"",message:Z.MISSING_URL,code:"MISSING_URL"}))}function P(){p=o,h=a,m=r({},c),v=l}function x(e){eE.log("Request ".concat(p||"unknown"," ").concat(e?"failed":"has been finished")),b.request=0,b.connection=0,k=150,P(),I()}function D(e){var t,n,r,o;return b.request+=1,I(),j({wait:e||(t=b.request,r=Math.min(r=(n=tM[d||"long"]).delay*Math.pow(2,t-1),n.maxDelay),n.minRange&&n.maxRange&&(r*=(o=n.minRange,Math.random()*(n.maxRange-o)+o)),Math.round(r)),retrying:!0})}function N(){y&&clearTimeout(y),y=null}function I(){var e=!!w;N(),w=null,e&&(k=150,b.request=0,b.connection=0,eE.log("Previous ".concat(p||"unknown"," request attempt canceled")),P())}return{send:function(){var e,t,n,o,i,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=a.url,u=a.method,c=a.params,l=a.continueCb,d=a.wait;return t=(e={url:s,method:u,params:void 0===c?{}:c,continueCb:l}).url,n=e.method,o=e.params,i=e.continueCb,t&&(p=t),n&&(h=n),es(o)||(m=r({},o)),m=r({createdAt:tt()},m),"function"==typeof i&&(v=i),j({wait:d})},isRunning:function(){return!!y},clear:I}};var tH=function(e){return e===H?"GDPR disable":"disable"},tZ=function(e){return{start:{inProgress:"Adjust SDK ".concat(tH(e)," process has already started"),done:"Adjust SDK ".concat(tH(e)," process is now started")},finish:{inProgress:"Adjust SDK ".concat(tH(e)," process has already finished"),done:"Adjust SDK ".concat(tH(e)," process is now finished")}}};function t$(e,t){var n=e.reason,r=e.pending,o=tP()||{},i="start"===t&&o.pending?"start":"finish",a="start"===t&&o.reason,s="finish"===t&&o.reason&&!o.pending;return a||s?(eE.log(tZ(o.reason)[i].inProgress),!1):(eE.log(tZ(n)[i].done),tx({reason:n||Q,pending:r}),!0)}function t0(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t$({reason:e,pending:t||!1},"start")}function t1(){var e=tP()||{};return e.reason!==Q&&(e.reason!==H||e.pending)?e.reason===H&&e.pending?"paused":"on":"off"}
1var t2="u"<typeof Promise?n(702).Promise:Promise,t4="activityState",t5=!1;function t7(e){return e?"unknown"===e.uuid?(t0({reason:H}),th.destroy(),{exists:!0,stored:null}):(th.init(e),{exists:!0,stored:e}):{exists:!1}}function t6(){return"off"!==t1()&&th.isStarted()}function t3(){if(!t6())return t2.resolve(null);var e=r(r({},th.current),{},{lastActive:Date.now()});return tB.updateItem(t4,e).then(function(){return th.current=e})}var t8="u"<typeof Promise?n(702).Promise:Promise,t9=tQ({strategy:"long",continueCb:function(e,t){var n=e&&e.continue_in||null;return nn.pause=n?{timestamp:Date.now(),wait:n}:null,tB.getFirst(nt).then(function(e){return e?tB.deleteItem(nt,e.timestamp):null}).then(function(){return t(),nn.running=!1,no({wait:n})})}}),ne=!1,nt="queue",nn={running:!1,timestamp:null,pause:null};function nr(e){var t,n=e.url,o=e.method,i=e.params,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=a.auto,c=a.timestamp;th.updateParams(n,u);var l=em(i||{}).filter(function(e){return eg(s(e,2)[1])}).reduce(eh,{}),d={timestamp:(t=Date.now(),nn.timestamp&&t<=nn.timestamp&&(t=nn.timestamp+1),nn.timestamp=t,t),url:n,method:o,params:r(r({},th.getParams(n)),l)};return c&&(d.createdAt=c),tB.addItem(nt,d).then(function(){return ep(n,"session")&&th.resetSessionOffset(),th.updateLastActive(),t3()}).then(function(){return nn.running?{}:no()})}function no(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.cleanUp,n=e.wait;if(nn.running)return t8.resolve({});nn.running=!0;var o=t8.resolve({});return t&&(o=o.then(na)),o.then(function(){return tB.getFirst(nt)}).then(function(e){return function(){var e,t,n,o,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=i.timestamp,s=i.createdAt,u=i.url,c=i.method,l=i.params,d=arguments.length>1?arguments[1]:void 0,f=th.current||{},p="/session"===u&&!f.installed,h=!u&&!c&&!l;return ne&&!p||h?(nn.running=!1,t8.resolve({})):t9.send({url:u,method:c,params:r(r({},l),{},{createdAt:tt(s||a)}),wait:d||(t=(e=nn.pause||{}).timestamp,n=e.wait,(o=Date.now()-(t||0))<n?n-o:null)})}(e,n)})}function ni(e){if(void 0===e)return void eE.error("State not provided, true or false has to be defined");if(e===ne)return void eE.error("The app is already in ".concat(e?"offline":"online"," mode"));var t=ne;ne=e,!e&&t&&no(),eE.info("The app is now in ".concat(e?"offline":"online"," mode"))}function na(){var e=Date.now()-eL.requestValidityWindow;return tB.deleteBulk(nt,e,"upperBound")}var ns="u"<typeof Promise?n(702).Promise:Promise,nu="globalParams",nc="No type provided",nl="Global parameter type not provided, `callback` or `partner` types are available";function nd(e){return(e||[]).map(function(e){return{key:e.key,value:e.value}})}function nf(){return ns.all([tB.filterBy(nu,"callback"),tB.filterBy(nu,"partner")]).then(function(e){var t=s(e,2),n=t[0],r=t[1];return{callbackParams:nd(n),partnerParams:nd(r)}})}function np(e,t){if(void 0===t)return eE.error(nl),ns.reject({message:nc});var n=ed(e),r=Object.keys(n).map(function(e){return{key:e,value:n[e],type:t}});return ns.all([tB.filterBy(nu,t),tB.addBulk(nu,r,!0)]).then(function(e){var n=s(e,2),o=n[0],i=n[1],a=ef(o.map(function(e){return e.key}),i.map(function(e){return e[0]}));return eE.log("Following ".concat(t," parameters have been saved: ").concat(r.map(function(e){return"".concat(e.key,":").concat(e.value)}).join(", "))),a.length&&eE.log("Keys: ".concat(a.join(", ")," already existed so their values have been updated")),i})}function nh(e,t){return void 0===t?(eE.error(nl),ns.reject({message:nc})):tB.deleteItem(nu,[e,t]).then(function(n){return eE.log("".concat(e," ").concat(t," parameter has been deleted")),n})}function nm(e){return void 0===e?(eE.error(nl),ns.reject({message:nc})):tB.deleteBulk(nu,e).then(function(t){return eE.log("All ".concat(e," parameters have been deleted")),t})}var nv="u"<typeof Promise?n(702).Promise:Promise,ng=!1,ny=document;function nb(){return nj(),th.updateSessionOffset(),th.toBackground(),t3()}function nk(){return tB.getFirst(t4).then(function(e){var t=th.current,n=t.lastActive||0;if(t6()&&n<e.lastActive){var r=!t.installed&&e.installed,o=(t.sessionCount||0)<(e.sessionCount||0);(r||o)&&ty("sdk:installed"),th.current=e,tN()}return e}).then(function(){th.updateSessionLength(),th.toForeground()}).then(nP)}function nw(){clearTimeout(P),P=setTimeout(x&&ny[x.hidden]?nb:nk,0)}function n_(){x&&!ny[x.hidden]&&(tN(),ng||"on"!==t1()||(tG(ny,x.visibilityChange,n_),rI.__internal__.restartAfterAsyncEnable()))}function nS(e,t){return t&&"error"===t.status?void eE.error("Session was not successful, error was returned from the server:",t.response):(th.updateInstalled(),ty("sdk:installed"),t3())}function nj(){clearInterval(j)}function nP(){nj(),j=setInterval(function(){return th.updateSessionOffset(),t3()},eL.sessionTimerWindow);var e=th.current,t=e.lastInterval,n=e.sessionCount>0;return!n||n&&1e3*t>=eL.sessionWindow?nf().then(function(e){var t,n;nr({url:"/session",method:"POST",params:(t=e.callbackParams,n=e.partnerParams,{callbackParams:t.length?ed(t):null,partnerParams:n.length?ed(n):null})},{auto:!0})}):(ty("attribution:check"),t3())}var nx="u"<typeof Promise?n(702).Promise:Promise,nD=tQ({url:"/attribution",strategy:"short",continueCb:function(e,t,n){return!e||e&&"error"===e.status?(t(),nx.resolve({state:"unknown"})):e.ask_in?n(e.ask_in):(t(),function(e){if(es(e)||(t=e.adid,n=e.attribution,void 0===t||!t||!ef(nN,Object.keys(void 0===n?{}:n)).length)||(o=e.adid,i=e.attribution,a=th.current.attribution||{},!(i&&nN.some(function(e){return a[e]!==i[e]}))&&o===a.adid))return nx.resolve({state:"same"});var t,n,o,i,a,u=em(e.attribution).filter(function(e){var t=s(e,1)[0];return -1!==nN.indexOf(t)}).reduce(eh,{adid:e.adid});return th.current=r(r({},th.current),{},{attribution:u}),t3().then(function(){return ty("attribution:change",u),eE.info("Attribution has been updated"),{state:"changed"}})}(e))}}),nN=["tracker_token","tracker_name","network","campaign","adgroup","creative","click_label","state"],nI=tQ({url:"/gdpr_forget_device",method:"POST",strategy:"short"}),nT={running:"Adjust SDK is running pending GDPR Forget Me request",pending:"Adjust SDK will run GDPR Forget Me request after initialisation",paused:"Adjust SDK is already prepared to send GDPR Forget Me request",off:"Adjust SDK is already disabled"};function nR(e){var t=t1();return e||"on"===t?(eL.isInitialised()?nI.send({params:r({},th.getParams())}).then(function(){ty("sdk:gdpr-forget-me")}):eE.log(nT.pending),!0):(eE.log(nT[t]),!1)}var nA={running:"Adjust SDK is running pending third-party sharing opt-out request",delayed:"Adjust SDK will run third-party sharing opt-out request after initialisation",pending:"Adjust SDK already queued third-party sharing opt-out request",off:"Third-party sharing opt-out is already done",start:{inProgress:"Third-party sharing opt-out has already started",done:"Third-party sharing opt-out is now started"},finish:{inProgress:"Third-party sharing opt-out has already finished",done:"Third-party sharing opt-out is now finished"}};function nE(){var e=tD()||{};return e.reason?e.pending?"pending":"off":"on"}function nC(e){var t=nE();return e||"on"===t?(eL.isInitialised()?nr({url:"/disable_third_party_sharing",method:"POST"}):eE.log(nA.delayed),!0):(eE.log(nA[t]),!1)}function nO(e,t){var n,o=tD()||{},i="start"===t&&e?"start":"finish",a="start"===t&&o.reason,s="finish"===t&&o.reason&&!o.pending;return a||s?(eE.log(nA[i].inProgress),!1):(eE.log(nA[i].done),n=r({},{reason:Q,pending:e}),tk.stores[tw]=r(r({},tS()),{},{thirdPartySharingDisabled:n}),tj(),!0)}function nK(){return nO(!1,"finish")}function nB(){"pending"===nE()&&(eE.log(nA.running),nC(!0))}var nU=[];function nq(e,t){nU.push({method:e,description:t,timestamp:Date.now()})}var nL="u"<typeof Promise?n(702).Promise:Promise,nM="eventDeduplication";function nW(e,t){var n;(n=e||window.location.search.substring(1).split("&").map(function(e){return e.split("=")}).reduce(eh,{}).adjust_referrer)&&nr({url:"/sdk_click",method:"POST",params:{clickTime:tt(),source:"web_referrer",referrer:decodeURIComponent(n)}},{timestamp:t})}function nV(e){if(!e)return null;try{return JSON.parse(e)}catch(e){return null}}(W=D||(D={})).Android="android",W.iOS="ios",W.WindowsPC="windows",W.WindowsPhone="windows-phone";var nF=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"adjust-smart-banner";e3(this,e),this.storageName=t}return e9(e,[{key:"setItem",value:function(e,t){localStorage.setItem("".concat(this.storageName,".").concat(e),JSON.stringify(t))}},{key:"getItem",value:function(e){return nV(localStorage.getItem("".concat(this.storageName,".").concat(e)))}},{key:"removeItem",value:function(e){localStorage.removeItem("".concat(this.storageName,".").concat(e))}}]),e}(),nz=function(){function t(){e3(this,t),e(this,"items",{})}return e9(t,[{key:"setItem",value:function(e,t){this.items[e]=t}},{key:"getItem",value:function(e){return Object.prototype.hasOwnProperty.call(this.items,e)?this.items[e]:null}},{key:"removeItem",value:function(e){delete this.items[e]}}]),t}(),nG=function(){function e(){e3(this,e)}return e9(e,null,[{key:"isLocalStorageSupported",value:function(){try{var e=new Date().toString(),t=window.localStorage;t.setItem(e,e);var n=t.getItem(e)===e;return t.removeItem(e),!!(n&&t)}catch(e){return!1}}},{key:"createStorage",value:function(){return this.isLocalStorageSupported()?new nF:new nz}}]),e}();"u"<typeof Promise&&n(702).Promise,(V=N||(N={})).Top="top",V.Bottom="bottom";var nY=n(379),nJ=n.n(nY),nX=n(795),nQ=n.n(nX),nH=n(569),nZ=n.n(nH),n$=n(565),n0=n.n(n$),n1=n(216),n2=n.n(n1),n4=n(589),n5=n.n(n4),n7=n(841),n6={};n6.styleTagTransform=n5(),n6.setAttributes=n0(),n6.insert=nZ().bind(null,"head"),n6.domAPI=nQ(),n6.insertStyleElement=n2(),nJ()(n7.Z,n6);let n3=n7.Z&&n7.Z.locals?n7.Z.locals:void 0;var n8="u"<typeof Promise?n(702).Promise:Promise,n9=function(){function t(n,r,o){e3(this,t),e(this,"appTraceUrl",function(e){return"https://www.apptrace.com/api/app/".concat(e,"/artwork_url_small")}),e(this,"appName",void 0),e(this,"image",void 0),e(this,"placeholder",void 0),this.image=r,this.placeholder=o,this.appName=n.appName;var i=this.getSources(n);this.showImage(i)}return e9(t,[{key:"getSources",value:function(e){var t=[];return e.imageUrl&&t.push(e.imageUrl),t.push(this.appTraceUrl(e.appId)),t}},{key:"showImage",value:function(e){var t=this;return e.reduce(function(e,n){return e.catch(function(){return t.loadImage(n,t.image)})},n8.reject()).then(function(){t.placeholder.remove()}).catch(function(){t.image.remove(),t.placeholder.innerText=t.appName.length?t.appName[0].toUpperCase():""})}},{key:"loadImage",value:function(e,t){return new n8(function(n,r){t.onload=n,t.onerror=r,t.src=e})}}]),t}(),re=function(){function t(n,r,o){e3(this,t),e(this,"parent",document.body),e(this,"banner",void 0),e(this,"dismissButton",null),e(this,"onDismiss",void 0),this.onDismiss=r,this.render(n,o)}return e9(t,[{key:"render",value:function(e,t){this.banner=document.createElement("div"),this.banner.setAttribute("class",n3.bannerContainer);var n,r,o,i=e.position===N.Top?n3.stickyToTop:n3.stickyToBottom,a=e.deeplinkPath?"?deeplink=".concat(encodeURIComponent(e.deeplinkPath)):"",s="".concat(t,"/").concat(e.trackerToken).concat(a);this.banner.innerHTML=(n=e.header,r=e.description,o=e.buttonText,'\n  <div class="'.concat(n3.banner," ").concat(i,'">\n    <div class="').concat(n3.bannerBody,'">\n      <div class="').concat(n3.content,'">\n        <button class="').concat(n3.dismiss,'"></button>\n        <div class="').concat(n3.appIcon,'">\n          <div class="').concat(n3.placeholder,'"></div>\n          <img class="').concat(n3.image,'" alt="').concat(n,'">\n        </div>\n        <div class="').concat(n3.textContainer,'">\n          <h4 class="').concat(n3.bannerText,'">').concat(n,'</h4>\n          <p class="').concat(n3.bannerText,'">').concat(r,'</p>\n        </div>\n        <a class="').concat(n3.action,'" href=').concat(s,">").concat(o,"</a>\n      </div>\n    </div>\n  </div>")),e.position===N.Top?this.parent.insertBefore(this.banner,this.parent.firstChild):this.parent.appendChild(this.banner),this.dismissButton=this.getElemByClass(n3.dismiss),this.dismissButton&&this.dismissButton.addEventListener("click",this.onDismiss);var u=this.getElemByClass(n3.placeholder),c=this.getElemByClass(n3.image);c&&u&&new n9(e,c,u)}},{key:"show",value:function(){this.banner.hidden=!1}},{key:"hide",value:function(){this.banner.hidden=!0}},{key:"destroy",value:function(){this.removeDismissButtonHandler(),this.banner.remove()}},{key:"removeDismissButtonHandler",value:function(){this.dismissButton&&this.onDismiss&&(this.dismissButton.removeEventListener("click",this.onDismiss),this.dismissButton=null)}},{key:"getElemByClass",value:function(e){if(this.banner){var t=this.banner.getElementsByClassName(e);return t.length>0?t[0]:null}return null}}]),t}(),rt={status:0,message:"No internet connectivity"},rn="u"<typeof Promise?n(702).Promise:Promise,rr=function(){function e(t){e3(this,e),this.origin=t}return e9(e,[{key:"endpoint",get:function(){if(!this.origin)throw Error("XhrNetwork: Origin not defined");return this.origin},set:function(e){this.origin=e}},{key:"xhr",value:function(e){return new rn(function(t,n){var r=new XMLHttpRequest;r.open("GET",e),[["Client-SDK","js".concat(ek)],["Content-Type","application/json"]].forEac
1h(function(e){var t=s(e,2),n=t[0],o=t[1];r.setRequestHeader(n,o)}),r.onerror=function(){return n(rt)},r.onreadystatechange=function(){if(4===r.readyState){var e=r.status>=200&&r.status<300,o=nV(r.responseText);0===r.status?n(rt):e?t(o):n({status:r.status,message:o||r.responseText||""})}},r.send()})}},{key:"encodeParams",value:function(e){return Object.keys(e).map(function(t){return[encodeURIComponent(t),encodeURIComponent(e[t])].join("=")}).join("&")}},{key:"request",value:function(e,t){var n=t?"?".concat(this.encodeParams(t)):"";return this.xhr("".concat(this.endpoint).concat(e).concat(n))}}]),e}();function ro(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ri(e,t){return(ri=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ra(e){return(ra=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}"u"<typeof Promise&&n(702).Promise;var rs=function(){function e(t){e3(this,e),this.network=t}return e9(e,[{key:"endpoint",get:function(){return this.network.endpoint},set:function(e){this.network.endpoint=e}},{key:"request",value:function(e,t){return this.network.request(e,t)}}]),e}();"u"<typeof Promise&&n(702).Promise;var ru=function(){function e(t){e3(this,e),this.preferredUrls=t}return e9(e,[{key:"retries",value:function(t){var n=this,r=0;return function o(){var i=n.preferredUrls();if(!i||0===i.length)throw eE.error(e.NoPreferredUrlsDefinedError.message),e.NoPreferredUrlsDefinedError;var a=i[r++];return t(a).catch(function(e){if(e===rt&&(eE.log("Failed to connect ".concat(a.endpointName," endpoint")),r<i.length))return eE.log("Trying ".concat(i[r].endpointName," one")),o();throw e})}()}}]),e}();e(ru,"NoPreferredUrlsDefinedError",ReferenceError("UrlStrategy: No preferred URL defined")),(F=I||(I={})).Default="default",F.India="india",F.China="china",e(z={},I.Default,ee),e(z,I.India,et),e(z,I.China,en),F.preferredUrlsGetter=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z;return function(){return e===I.India?[t[I.India],t[I.Default]]:e===I.China?[t[I.China],t[I.Default]]:[t[I.Default],t[I.India],t[I.China]]}},(T||(T={})).preferredUrlsGetter=function(e){return function(){return[{endpointName:"Custom (".concat(e,")"),app:e,gdpr:e}]}},(G=R||(R={})).EU="EU",G.TR="TR",G.US="US",e(Y={},R.EU,er),e(Y,R.TR,eo),e(Y,R.US,ei),G.preferredUrlsGetter=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Y;return function(){return[t[e]]}},J=A||(A={}),X=function(e,t){eE.warn("Both ".concat(e," and ").concat(t," are set in config, ").concat(t," will be ignored"))},J.create=function(e){var t=e.customUrl,n=e.dataResidency,r=e.urlStrategy;return t?((n||r)&&X("customUrl",n?"dataResidency":"urlStrategy"),new ru(T.preferredUrlsGetter(t))):n?(r&&X("dataResidency","urlStrategy"),new ru(R.preferredUrlsGetter(n))):new ru(I.preferredUrlsGetter(r))},"u"<typeof Promise&&n(702).Promise;var rc=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");o.prototype=Object.create(t&&t.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),t&&ri(o,t);var n,r=(n=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=ra(o);if(e=n?Reflect.construct(t,arguments,ra(this).constructor):t.apply(this,arguments),e&&("object"===ea(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return ro(this)});function o(t,n){var i,a=n.urlStrategy,s=n.urlStrategyConfig;return e3(this,o),e(ro(i=r.call(this,t)),"lastSuccessfulEndpoint",void 0),e(ro(i),"urlStrategy",void 0),i.urlStrategy=a||A.create(s),i}return e9(o,[{key:"endpoint",get:function(){return this.lastSuccessfulEndpoint||o.DEFAULT_ENDPOINT}},{key:"request",value:function(e,t){var n=this;return this.urlStrategy.retries(function(r){return n.network.endpoint=r.app,n.network.request(e,t).then(function(e){return n.lastSuccessfulEndpoint=r.app,e}).catch(function(e){throw n.lastSuccessfulEndpoint=void 0,e})})}}]),o}(rs);e(rc,"DEFAULT_ENDPOINT",ee.app),rc||(rc={}),"u"<typeof Promise&&n(702).Promise;var rl=function(){function t(n,r){var o=n.webToken,i=n.logLevel,a=n.dataResidency,s=n.onCreated,u=n.onDismissed;
1e3(this,t),e(this,"STORAGE_KEY_DISMISSED","closed"),e(this,"network",void 0),e(this,"storage",void 0),e(this,"timer",null),e(this,"dataFetchPromise",void 0),e(this,"banner",void 0),e(this,"onCreated",void 0),e(this,"onDismissed",void 0),this.onCreated=s,this.onDismissed=u,eE.setLogLevel(void 0===i?"error":i),this.network=r||new rc(new rr,{urlStrategyConfig:a?{dataResidency:a}:{}}),this.storage=nG.createStorage(),this.init(o)}return e9(t,[{key:"init",value:function(e){var t=this;if(this.banner)return void eE.error("Smart Banner already exists");if(this.dataFetchPromise)return void eE.error("Smart Banner is initialising already");var n=function(){var e,t,n=null==(e=navigator)||null==(t=e.userAgent)?void 0:t.toLowerCase();if(n&&!(n.length<1)){if(/ipad|iphone|ipod/.test(n))return D.iOS;if(n.includes("windows"))return/phone|mobile/.test(n)?D.WindowsPhone:D.WindowsPC;if(n.includes("android"))return D.Android}}();n?(this.dataFetchPromise=this.network.request("/smart_banner",{app_web_token:e}).then(function(e){var t,r,o,i,a,s,u=e.find(function(e){return e.platform===n});return u?(o=u.title,i=u.description,a=u.button_label,s=u.tracker_token,o&&i&&a&&s?{appId:(null==(t=u.app)?void 0:t.default_store_app_id)||"",appName:(null==(r=u.app)?void 0:r.name)||"",position:u.position||N.Bottom,imageUrl:u.image_url,header:o,description:i,buttonText:a,trackerToken:s,deeplinkPath:u.deeplink_path,dismissInterval:864e5}:null):null}).catch(function(e){return eE.error("Network error occurred during loading Smart Banner: "+JSON.stringify(e)),null}),this.dataFetchPromise.then(function(r){if(t.dataFetchPromise=null,!r)return void eE.log("No Smart Banners for ".concat(n," platform found"));var o=t.getDateToShowAgain(r.dismissInterval);if(Date.now()<o){eE.log("Smart Banner was dismissed"),t.scheduleCreation(e,o);return}eE.log("Creating Smart Banner"),t.banner=new re(r,function(){return t.dismiss(e,r.dismissInterval)},t.network.endpoint),eE.log("Smart Banner created"),t.onCreated&&t.onCreated()})):eE.log("This platform is not one of the targeting ones, Smart Banner will not be shown")}},{key:"show",value:function(){var e=this;if(this.banner)return void this.banner.show();if(this.dataFetchPromise){eE.log("Smart Banner will be shown after initialisation finished"),this.dataFetchPromise.then(function(){eE.log("Initialisation finished, showing Smart Banner"),e.show()});return}eE.error("There is no Smart Banner to show, have you called initialisation?")}},{key:"hide",value:function(){var e=this;if(this.banner)return void this.banner.hide();if(this.dataFetchPromise){eE.log("Smart Banner will be hidden after initialisation finished"),this.dataFetchPromise.then(function(){eE.log("Initialisation finished, hiding Smart Banner"),e.hide()});return}eE.error("There is no Smart Banner to hide, have you called initialisation?")}},{key:"destroy",value:function(){this.banner?(this.banner.destroy(),this.banner=null,eE.log("Smart Banner removed")):eE.error("There is no Smart Banner to remove")}},{key:"dismiss",value:function(e,t){eE.log("Smart Banner dismissed"),this.storage.setItem(this.STORAGE_KEY_DISMISSED,Date.now());var n=this.getDateToShowAgain(t);this.scheduleCreation(e,n),this.destroy(),this.onDismissed&&this.onDismissed()}},{key:"scheduleCreation",value:function(e,t){var n=this;this.timer&&(eE.log("Clearing previously scheduled creation of Smart Banner"),clearTimeout(this.timer),this.timer=null);var r=t-Date.now();this.timer=setTimeout(function(){n.timer=null,n.init(e)},r),eE.log("Smart Banner creation scheduled on "+new Date(t))}},{key:"getDateToShowAgain",value:function(e){var t=this.storage.getItem(this.STORAGE_KEY_DISMISSED);return t&&"number"==typeof t?t+e:Date.now()}}]),t}(),rd=["logLevel","logOutput"],rf="u"<typeof Promise?n(702).Promise:Promise,rp=null,rh=!1,rm=!1,rv=!1,rg=null;function ry(){nC()&&nO(!0,"start")}function rb(){if("paused"===t1()){var e;t$({reason:H,pending:!1},"finish"),rf.all([(th.current=e={uuid:"unknown"},tB.clear(t4).then(function(){return tB.addItem(t4,e)})),tB.clear(nu),tB.clear(nt)]).then(rS)}}function rk(){return rh||eL.isInitialised()}function rw(){rh=!1,rm=!1,nU=[],t9.clear(),nn.running=!1,nn.timestamp=null,nn.pause=null,ng=!1,th.toBackgroun
1d(),nj(),x&&(clearTimeout(P),tG(ny,x.visibilityChange,nw),tz(ny,x.visibilityChange,n_)),nD.clear()}function r_(e){e&&eE.log("Adjust SDK has been shutdown due to asynchronous disable"),rw(),tv.forEach(clearTimeout),tv=[],tm={},th.destroy(),tG(window,"online",tV),tG(window,"offline",tF),tB.destroy(),eL.destroy()}function rS(){rv=!1,r_(),nI.clear(),rp=null,eE.log("Adjust SDK instance has been destroyed")}function rj(e){eE.log("Adjust SDK is starting with web_uuid set to ".concat(e.uuid));var t=th.current.installed;"paused"===t1()&&(eE.log(nT.running),nR(!0)),t||nB();var n=t1(),r=function(e){return"Adjust SDK start has been interrupted ".concat(e)};return"off"===n?(r_(),rf.reject({interrupted:!0,message:r("due to complete async disable")})):"paused"===n?(rw(),rf.reject({interrupted:!0,message:r("due to partial async disable")})):rm?rf.reject({interrupted:!0,message:r("due to multiple synchronous start attempt")}):(no({cleanUp:!0}),((x=function(){var e=document;if(void 0!==e.hidden)return{hidden:"hidden",visibilityChange:"visibilitychange"};
1for(var t=em({mozHidden:"mozvisibilitychange",msHidden:"msvisibilitychange",oHidden:"ovisibilitychange",webkitHidden:"webkitvisibilitychange"}),n=0;n<t.length;n+=1){var r=s(t[n],2),o=r[0],i=r[1];if(void 0!==e[o])return{hidden:o,visibilityChange:i}}return null}(),ng)?nv.reject({interrupted:!0,message:"Session watch already initiated"}):(ng=!0,tg("session:finished",nS),x&&tz(ny,x.visibilityChange,nw),x&&ny[x.hidden])?(eE.log("Session request attempt canceled because the tab is still hidden"),nv.resolve({})):(th.initParams(),nP())).then(function(){rh=!1,rm=!0,t&&(rP(),nB())}))}function rP(){rv=!0,nU.forEach(function(e){"function"==typeof e.method&&(eE.log("Delayed ".concat(e.description," task is running now")),e.method(e.timestamp))}),nU=[],em(tm).some(function(e){var t=s(e,2)[1];return t.some(function(e,n){if("sdk:installed"===e.id)return t.splice(n,1),!0})})}function rx(e){if(e.interrupted)return void eE.log(e.message);if(r_(),eE.error("Adjust SDK start has been canceled due to an error",e),e.stack)throw e}function rD(e){"off"===t1()?eE.log("Adjust SDK is disabled, can not start the sdk"):(eL.set(e),tz(window,"online",tV),tz(window,"offline",tF),tg("sdk:installed",rP),tg("sdk:shutdown",function(){return r_(!0)}),tg("sdk:gdpr-forget-me",rb),tg("sdk:third-party-sharing-opt-out",nK),tg("attribution:check",function(e,t){var n,o;return n=th.current,(o=(t||{}).ask_in)||!n.attribution&&n.installed?(nD.send({params:r({initiatedBy:t?"backend":"sdk"},th.getParams()),wait:o}),th.updateSessionOffset(),t3()):nx.resolve(n)}),"function"==typeof e.attributionCallback&&tg("attribution:change",e.attributionCallback),(t5?t2.reject({interrupted:!0,message:"Adjust SDK start already in progress"}):(t5=!0,tB.getFirst(t4).then(t7).then(function(e){if(e.exists)return t5=!1,e.stored;var t,n=es(th.current)?{uuid:(t=Date.now(),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"===e?n:11&n).toString(16)}))}:th.current;return tB.addItem(t4,n).then(function(){return th.init(n),tN(),t5=!1,n})}))).then(rj).then(nW).catch(rx))}function rN(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.schedule,o=n.waitForInitFinished,i=n.optionalInit;if(tB.getType()===$)return void eE.log("Adjust SDK can not ".concat(e,", no storage available"));if("on"!==t1())return void eE.log("Adjust SDK is disabled, can not ".concat(e));if(!(i||rk())&&o)return void eE.error("Adjust SDK can not ".concat(e,", sdk instance is not initialized"));if("function"==typeof t)if(!(r&&!(rv&&rm)&&(i||rk())))return t();else nq(t,e),eE.log("Running ".concat(e," is delayed until Adjust SDK is up"))}let rI={initSdk:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.logLevel,n=e.logOutput,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,rd);(eE.setLogLevel(t,n),rk())?eE.error("You already initiated your instance"):eL.hasMissing(o)||(rh=!0,tB.init(o.namespace).then(function(e){e.type===$?eE.error("Adjust SDK can not start, there is no storage available"):(eE.info("Available storage is ".concat(e.type)),rp=r({},o),rD(o))}))},getAttribution:function(){return rN("get attribution",function(){return th.getAttribution()})},getWebUUID:function(){return rN("get web_uuid",function(){return th.getWebUUID()})},setReferrer:function(e){e&&"string"==typeof e?rN("setting reftag",function(t){return nW(e,t)},{schedule:!0,waitForInitFinished:!0,optionalInit:!0}):eE.error("You must provide a string referrer")},trackEvent:function(e){var t=e;if(tB.getType()===$){var n="Adjust SDK can not track event, no storage available";return eE.log(n),rf.reject(n)}if("on"!==t1()){var o="Adjust SDK is disabled, can not track event";return eE.log(o),rf.reject(o)}if(!rk()){var i="Adjust SDK can not track event, sdk instance is not initialized";return eE.error(i),rf.reject(i)}return new rf(function(e){var n=function(n){return e(function(e,t){if(!e||e&&(es(e)||!e.eventToken)){var n,o="You must provide event token in order to track event";return eE.error(o),nL.reject(o)}return(!(n=e.deduplicationId)?nL.resolve():tB.getAll(nM).then(function(e){return e.map(function(e){return e.id})}).then(function(e){var t,r;return -1===e.indexOf(n)?(r=(t=eL.getCustomConfig().eventDeduplicationListLimit)>0?t:10,tB.count(nM).then(function(e){var t=nL.resolve();if(e>=r){var n=e-r+1;eE.log("Event deduplication list limit has been reached. Oldest ids are about to be removed (".concat(n," of them)")),t=tB.trimItems(nM,n)}return t}).then(function(){return eE.info("New event deduplication id is added to the list: ".concat(n)),tB.addItem(nM,{id:n})})):nL.reject({message:"Event won't be tracked, since it was previously tracked with the same deduplication id ".concat(n)})})).then(nf).then(function(n){var o,i,a,s,u,c,l,d;return nr({url:"/event",method:"POST",params:(o=n.callbackParams,i=n.partnerParams,a={},c=r({eventToken:e.eventToken,deduplicationId:e.deduplicationId},(s=e.revenue,u=e.currency,isNaN(s)||(s=parseFloat(s))<0||!u?{}:{revenue:s.toFixed(5),currency:u})),l=r(r({},ed(o)),ed(e.callbackParams)),d=r(r({}
1,ed(i)),ed(e.partnerParams)),es(l)||(a.callbackParams=l),es(d)||(a.partnerParams=d),r(r({},c),a))},{timestamp:t})}).catch(function(e){return e&&e.message&&eE.error(e.message),nL.reject(e)})}(t,n))};!rv||!rm&&rk()?(nq(n,"track event"),eE.log("Running track event is delayed until Adjust SDK is up")):n()})},addGlobalCallbackParameters:function(e){rN("add global callback parameters",function(){return np(e,"callback")})},addGlobalPartnerParameters:function(e){rN("add global partner parameters",function(){return np(e,"partner")})},removeGlobalCallbackParameter:function(e){rN("remove global callback parameter",function(){return nh(e,"callback")})},removeGlobalPartnerParameter:function(e){rN("remove global partner parameter",function(){return nh(e,"partner")})},clearGlobalCallbackParameters:function(){rN("remove all global callback parameters",function(){return nm("callback")})},clearGlobalPartnerParameters:function(){rN("remove all global partner parameters",function(){return nm("partner")})},switchToOfflineMode:function(){rN("set offline mode",function(){return ni(!0)})},switchBackToOnlineMode:function(){rN("set online mode",function(){return ni(!1)})},stop:function(){t0()&&eL.isInitialised()&&r_()},restart:function(){var e;((e=tP()||{}).reason===H?(eE.log("Adjust SDK is disabled due to GDPR-Forget-Me request and it can not be re-enabled"),1):e.reason?(eE.log("Adjust SDK has been enabled"),tx(null),0):(eE.log("Adjust SDK is already enabled"),1))||!rp||rD(rp)},gdprForgetMe:function(){var e=nR();e&&(e=t0(H,!0))&&eL.isInitialised()&&rw()},disableThirdPartySharing:function(){rN("disable third-party sharing",ry,{schedule:!0})},initSmartBanner:function(e){rg?eE.error("Smart Banner already initialised"):rg=new rl(e)},showSmartBanner:function(){rg?rg.show():eE.error("Smart Banner is not initialised yet")},hideSmartBanner:function(){rg?rg.hide():eE.error("Smart Banner is not initialised yet")},__testonly__:{destroy:rS,clearDatabase:function(){return tB.deleteDatabase()}},__internal__:{restartAfterAsyncEnable:function(){eE.log("Adjust SDK has been restarted due to asynchronous enable"),rp&&rD(rp)}}}})(),o=o.default})()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.