/*! sklik-ap-static v1.50.0 */!function(){var t={2350:function(){!function(){if("function"==typeof window.CustomEvent)return!1;function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}t.prototype=window.Event.prototype,window.CustomEvent=t}()},8257:function(t,e,n){var r=n(9212),o=n(5637),i=TypeError;t.exports=function(t){if(r(t))return t;throw i(o(t)+" is not a function")}},9882:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}var o=n(9212),i=String,a=TypeError;t.exports=function(t){if("object"==r(t)||o(t))return t;throw a("Can't set "+i(t)+" as a prototype")}},6288:function(t,e,n){var r=n(3649),o=n(3590),i=n(4615).f,a=r("unscopables"),c=Array.prototype;null==c[a]&&i(c,a,{configurable:!0,value:o(null)}),t.exports=function(t){c[a][t]=!0}},4761:function(t,e,n){var r=n(2447),o=TypeError;t.exports=function(t,e){if(r(e,t))return t;throw o("Incorrect invocation")}},2569:function(t,e,n){var r=n(794),o=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw i(o(t)+" is not an object")}},1537:function(t,e,n){var r=n(6544);t.exports=r((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},5766:function(t,e,n){var r=n(2977),o=n(6782),i=n(1825),a=function(t){return function(e,n,a){var c,u=r(e),s=i(u),l=o(a,s);if(t&&n!=n){for(;s>l;)if((c=u[l++])!=c)return!0}else for(;s>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},4805:function(t,e,n){var r=n(2938),o=n(7386),i=n(5044),a=n(1324),c=n(1825),u=n(4822),s=o([].push),l=function(t){var e=1==t,n=2==t,o=3==t,l=4==t,f=6==t,d=7==t,v=5==t||f;return function(p,h,y,g){for(var b,m,w=a(p),S=i(w),O=r(h,y),_=c(S),I=0,j=g||u,C=e?j(p,_):n||d?j(p,0):void 0;_>I;I++)if((v||I in S)&&(m=O(b=S[I],I,w),t))if(e)C[I]=m;else if(m)switch(t){case 3:return!0;case 5:return b;case 6:return I;case 2:s(C,b)}else switch(t){case 4:return!1;case 7:s(C,b)}return f?-1:o||l?l:C}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},9269:function(t,e,n){var r=n(6544),o=n(3649),i=n(4061),a=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},4546:function(t,e,n){var r=n(6782),o=n(1825),i=n(5999),a=Array,c=Math.max;t.exports=function(t,e,n){for(var u=o(t),s=r(e,u),l=r(void 0===n?u:n,u),f=a(c(l-s,0)),d=0;s0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},5690:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},7263:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}var o=n(7583),i=n(6683).f,a=n(57),c=n(3746),u=n(2296),s=n(3478),l=n(4451);t.exports=function(t,e){var n,f,d,v,p,h=t.target,y=t.global,g=t.stat;if(n=y?o:g?o[h]||u(h,{}):(o[h]||{}).prototype)for(f in e){if(v=e[f],d=t.dontCallGetSet?(p=i(n,f))&&p.value:n[f],!l(y?f:h+(g?".":"#")+f,t.forced)&&void 0!==d){if(r(v)==r(d))continue;s(v,d)}(t.sham||d&&d.sham)&&a(v,"sham",!0),c(n,f,v,t)}}},6544:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},9974:function(t,e,n){var r=n(6544);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},2938:function(t,e,n){var r=n(7386),o=n(8257),i=n(8987),a=r(r.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?a(t,e):function(){return t.apply(e,arguments)}}},8987:function(t,e,n){var r=n(6544);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},8262:function(t,e,n){var r=n(8987),o=Function.prototype.call;t.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},4340:function(t,e,n){var r=n(8494),o=n(2870),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,c=o(i,"name"),u=c&&"something"===function(){}.name,s=c&&(!r||r&&a(i,"name").configurable);t.exports={EXISTS:c,PROPER:u,CONFIGURABLE:s}},7386:function(t,e,n){var r=n(8987),o=Function.prototype,i=o.bind,a=o.call,c=r&&i.bind(a,a);t.exports=r?function(t){return t&&c(t)}:function(t){return t&&function(){return a.apply(t,arguments)}}},5897:function(t,e,n){var r=n(7583),o=n(9212);t.exports=function(t,e){return arguments.length<2?(n=r[t],o(n)?n:void 0):r[t]&&r[t][e];var n}},8272:function(t,e,n){var r=n(3058),o=n(911),i=n(339),a=n(3649)("iterator");t.exports=function(t){if(null!=t)return o(t,a)||o(t,"@@iterator")||i[r(t)]}},6307:function(t,e,n){var r=n(8262),o=n(8257),i=n(2569),a=n(5637),c=n(8272),u=TypeError;t.exports=function(t,e){var n=arguments.length<2?c(t):e;if(o(n))return i(r(n,t));throw u(a(t)+" is not iterable")}},911:function(t,e,n){var r=n(8257);t.exports=function(t,e){var n=t[e];return null==n?void 0:r(n)}},7583:function(t){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==("undefined"==typeof globalThis?"undefined":e(globalThis))&&globalThis)||n("object"==("undefined"==typeof window?"undefined":e(window))&&window)||n("object"==("undefined"==typeof self?"undefined":e(self))&&self)||n("object"==("undefined"==typeof window?"undefined":e(window))&&window)||function(){return this}()||Function("return this")()},2870:function(t,e,n){var r=n(7386),o=n(1324),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},4639:function(t){t.exports={}},482:function(t,e,n){var r=n(5897);t.exports=r("document","documentElement")},275:function(t,e,n){var r=n(8494),o=n(6544),i=n(6668);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},5044:function(t,e,n){var r=n(7386),o=n(6544),i=n(9624),a=Object,c=r("".split);t.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?c(t,""):a(t)}:a},434:function(t,e,n){var r=n(9212),o=n(794),i=n(7496);t.exports=function(t,e,n){var a,c;return i&&r(a=e.constructor)&&a!==n&&o(c=a.prototype)&&c!==n.prototype&&i(t,c),t}},9734:function(t,e,n){var r=n(7386),o=n(9212),i=n(1314),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return a(t)}),t.exports=i.inspectSource},1909:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}var o=n(7263),i=n(7386),a=n(4639),c=n(794),u=n(2870),s=n(4615).f,l=n(9275),f=n(3130),d=n(4766),v=n(8284),p=n(9974),h=!1,y=v("meta"),g=0,b=function(t){s(t,y,{value:{objectID:"O"+g++,weakData:{}}})},m=t.exports={enable:function(){m.enable=function(){},h=!0;var t=l.f,e=i([].splice),n={};n[y]=1,t(n).length&&(l.f=function(n){for(var r=t(n),o=0,i=r.length;om;m++)if((S=x(t[m]))&&l(y,S))return S;return new h(!1)}g=f(t,b)}for(O=C?t.next:g.next;!(_=i(O,g)).done;){try{S=x(_.value)}catch(t){v(g,"throw",t)}if("object"==r(S)&&S&&l(y,S))return S}return new h(!1)}},7093:function(t,e,n){var r=n(8262),o=n(2569),i=n(911);t.exports=function(t,e,n){var a,c;o(t);try{if(!(a=i(t,"return"))){if("throw"===e)throw n;return n}a=r(a,t)}catch(t){c=!0,a=t}if("throw"===e)throw n;if(c)throw a;return o(a),n}},2365:function(t,e,n){"use strict";var r,o,i,a=n(6544),c=n(9212),u=n(3590),s=n(729),l=n(3746),f=n(3649),d=n(6268),v=f("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(o=s(s(i)))!==Object.prototype&&(r=o):p=!0),null==r||a((function(){var t={};return r[v].call(t)!==t}))?r={}:d&&(r=u(r)),c(r[v])||l(r,v,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},339:function(t){t.exports={}},1825:function(t,e,n){var r=n(97);t.exports=function(t){return r(t.length)}},9594:function(t,e,n){var r=n(6544),o=n(9212),i=n(2870),a=n(8494),c=n(4340).CONFIGURABLE,u=n(9734),s=n(2743),l=s.enforce,f=s.get,d=Object.defineProperty,v=a&&!r((function(){return 8!==d((function(){}),"length",{value:8}).length})),p=String(String).split("String"),h=t.exports=function(t,e,n){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!i(t,"name")||c&&t.name!==e)&&(a?d(t,"name",{value:e,configurable:!0}):t.name=e),v&&n&&i(n,"arity")&&t.length!==n.arity&&d(t,"length",{value:n.arity});try{n&&i(n,"constructor")&&n.constructor?a&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=l(t);return i(r,"source")||(r.source=p.join("string"==typeof e?e:"")),t};Function.prototype.toString=h((function(){return o(this)&&f(this).source||u(this)}),"toString")},9021:function(t){var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},8640:function(t,e,n){var r=n(4061),o=n(6544);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},9491:function(t,e,n){var r=n(7583),o=n(9212),i=n(9734),a=r.WeakMap;t.exports=o(a)&&/native code/.test(i(a))},9041:function(t,e,n){var r=n(7574),o=TypeError;t.exports=function(t){if(r(t))throw o("The method doesn't accept regular expressions");return t}},9304:function(t,e,n){"use strict";var r=n(8494),o=n(7386),i=n(8262),a=n(6544),c=n(5432),u=n(4012),s=n(112),l=n(1324),f=n(5044),d=Object.assign,v=Object.defineProperty,p=o([].concat);t.exports=!d||a((function(){if(r&&1!==d({b:1},d(v({},"a",{enumerable:!0,get:function(){v(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),o="abcdefghijklmnopqrst";return t[n]=7,o.split("").forEach((function(t){e[t]=t})),7!=d({},t)[n]||c(d({},e)).join("")!=o}))?function(t,e){for(var n=l(t),o=arguments.length,a=1,d=u.f,v=s.f;o>a;)for(var h,y=f(arguments[a++]),g=d?p(c(y),d(y)):c(y),b=g.length,m=0;b>m;)h=g[m++],r&&!i(v,y,h)||(n[h]=y[h]);return n}:d},3590:function(t,e,n){var r,o=n(2569),i=n(8728),a=n(5690),c=n(4639),u=n(482),s=n(6668),l=n(9137),f="prototype",d="script",v=l("IE_PROTO"),p=function(){},h=function(t){return"<"+d+">"+t+""},y=function(t){t.write(h("")),t.close();var e=t.parentWindow.Object;return t=null,e},g=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;g="undefined"!=typeof document?document.domain&&r?y(r):(e=s("iframe"),n="java"+d+":",e.style.display="none",u.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(h("document.F=Object")),t.close(),t.F):y(r);for(var o=a.length;o--;)delete g[f][a[o]];return g()};c[v]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(p[f]=o(t),n=new p,p[f]=null,n[v]=t):n=g(),void 0===e?n:i.f(n,e)}},8728:function(t,e,n){var r=n(8494),o=n(7670),i=n(4615),a=n(2569),c=n(2977),u=n(5432);e.f=r&&!o?Object.defineProperties:function(t,e){a(t);for(var n,r=c(e),o=u(e),s=o.length,l=0;s>l;)i.f(t,n=o[l++],r[n]);return t}},4615:function(t,e,n){var r=n(8494),o=n(275),i=n(7670),a=n(2569),c=n(8734),u=TypeError,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",d="configurable",v="writable";e.f=r?i?function(t,e,n){if(a(t),e=c(e),a(n),"function"==typeof t&&"prototype"===e&&"value"in n&&v in n&&!n[v]){var r=l(t,e);r&&r[v]&&(t[e]=n.value,n={configurable:d in n?n[d]:r[d],enumerable:f in n?n[f]:r[f],writable:!1})}return s(t,e,n)}:s:function(t,e,n){if(a(t),e=c(e),a(n),o)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw u("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},6683:function(t,e,n){var r=n(8494),o=n(8262),i=n(112),a=n(4677),c=n(2977),u=n(8734),s=n(2870),l=n(275),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=c(t),e=u(e),l)try{return f(t,e)}catch(t){}if(s(t,e))return a(!o(i.f,t,e),t[e])}},3130:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}var o=n(9624),i=n(2977),a=n(9275).f,c=n(4546),u="object"==("undefined"==typeof window?"undefined":r(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"Window"==o(t)?function(t){try{return a(t)}catch(t){return c(u)}}(t):a(i(t))}},9275:function(t,e,n){var r=n(8356),o=n(5690).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},4012:function(t,e){e.f=Object.getOwnPropertySymbols},729:function(t,e,n){var r=n(2870),o=n(9212),i=n(1324),a=n(9137),c=n(926),u=a("IE_PROTO"),s=Object,l=s.prototype;t.exports=c?s.getPrototypeOf:function(t){var e=i(t);if(r(e,u))return e[u];var n=e.constructor;return o(n)&&e instanceof n?n.prototype:e instanceof s?l:null}},4766:function(t,e,n){var r=n(6544),o=n(794),i=n(9624),a=n(1537),c=Object.isExtensible,u=r((function(){c(1)}));t.exports=u||a?function(t){return!!o(t)&&((!a||"ArrayBuffer"!=i(t))&&(!c||c(t)))}:c},2447:function(t,e,n){var r=n(7386);t.exports=r({}.isPrototypeOf)},8356:function(t,e,n){var r=n(7386),o=n(2870),i=n(2977),a=n(5766).indexOf,c=n(4639),u=r([].push);t.exports=function(t,e){var n,r=i(t),s=0,l=[];for(n in r)!o(c,n)&&o(r,n)&&u(l,n);for(;e.length>s;)o(r,n=e[s++])&&(~a(l,n)||u(l,n));return l}},5432:function(t,e,n){var r=n(8356),o=n(5690);t.exports=Object.keys||function(t){return r(t,o)}},112:function(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},7496:function(t,e,n){var r=n(7386),o=n(2569),i=n(9882);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return o(n),i(r),e?t(n,r):n.__proto__=r,n}}():void 0)},3060:function(t,e,n){"use strict";var r=n(8191),o=n(3058);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},6252:function(t,e,n){var r=n(8262),o=n(9212),i=n(794),a=TypeError;t.exports=function(t,e){var n,c;if("string"===e&&o(n=t.toString)&&!i(c=r(n,t)))return c;if(o(n=t.valueOf)&&!i(c=r(n,t)))return c;if("string"!==e&&o(n=t.toString)&&!i(c=r(n,t)))return c;throw a("Can't convert object to primitive value")}},929:function(t,e,n){var r=n(5897),o=n(7386),i=n(9275),a=n(4012),c=n(2569),u=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(c(t)),n=a.f;return n?u(e,n(t)):e}},3955:function(t){var e=TypeError;t.exports=function(t){if(null==t)throw e("Can't call method on "+t);return t}},8821:function(t,e,n){var r=n(4615).f,o=n(2870),i=n(3649)("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!o(t,i)&&r(t,i,{configurable:!0,value:e})}},9137:function(t,e,n){var r=n(7836),o=n(8284),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},1314:function(t,e,n){var r=n(7583),o=n(2296),i="__core-js_shared__",a=r[i]||o(i,{});t.exports=a},7836:function(t,e,n){var r=n(6268),o=n(1314);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.24.1",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"})},8040:function(t,e,n){var r=n(6918);t.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(r)},578:function(t,e,n){var r=n(7386),o=n(97),i=n(8320),a=n(3812),c=n(3955),u=r(a),s=r("".slice),l=Math.ceil,f=function(t){return function(e,n,r){var a,f,d=i(c(e)),v=o(n),p=d.length,h=void 0===r?" ":i(r);return v<=p||""==h?d:((f=u(h,l((a=v-p)/h.length))).length>a&&(f=s(f,0,a)),t?d+f:f+d)}};t.exports={start:f(!1),end:f(!0)}},3812:function(t,e,n){"use strict";var r=n(7486),o=n(8320),i=n(3955),a=RangeError;t.exports=function(t){var e=o(i(this)),n="",c=r(t);if(c<0||c==1/0)throw a("Wrong number of repetitions");for(;c>0;(c>>>=1)&&(e+=e))1&c&&(n+=e);return n}},6782:function(t,e,n){var r=n(7486),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},2977:function(t,e,n){var r=n(5044),o=n(3955);t.exports=function(t){return r(o(t))}},7486:function(t,e,n){var r=n(9021);t.exports=function(t){var e=+t;return e!=e||0===e?0:r(e)}},97:function(t,e,n){var r=n(7486),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},1324:function(t,e,n){var r=n(3955),o=Object;t.exports=function(t){return o(r(t))}},2670:function(t,e,n){var r=n(8262),o=n(794),i=n(5871),a=n(911),c=n(6252),u=n(3649),s=TypeError,l=u("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var n,u=a(t,l);if(u){if(void 0===e&&(e="default"),n=r(u,t,e),!o(n)||i(n))return n;throw s("Can't convert object to primitive value")}return void 0===e&&(e="number"),c(t,e)}},8734:function(t,e,n){var r=n(2670),o=n(5871);t.exports=function(t){var e=r(t,"string");return o(e)?e:e+""}},8191:function(t,e,n){var r={};r[n(3649)("toStringTag")]="z",t.exports="[object z]"===String(r)},8320:function(t,e,n){var r=n(3058),o=String;t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return o(t)}},5637:function(t){var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},8284:function(t,e,n){var r=n(7386),o=0,i=Math.random(),a=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++o+i,36)}},7786:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}var o=n(8640);t.exports=o&&!Symbol.sham&&"symbol"==r(Symbol.iterator)},7670:function(t,e,n){var r=n(8494),o=n(6544);t.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},3649:function(t,e,n){var r=n(7583),o=n(7836),i=n(2870),a=n(8284),c=n(8640),u=n(7786),s=o("wks"),l=r.Symbol,f=l&&l.for,d=u?l:l&&l.withoutSetter||a;t.exports=function(t){if(!i(s,t)||!c&&"string"!=typeof s[t]){var e="Symbol."+t;c&&i(l,t)?s[t]=l[t]:s[t]=u&&f?f(e):d(e)}return s[t]}},8833:function(t,e,n){"use strict";var r=n(7263),o=n(4805).filter;r({target:"Array",proto:!0,forced:!n(9269)("filter")},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},7715:function(t,e,n){"use strict";var r=n(7263),o=n(4805).find,i=n(6288),a="find",c=!0;a in[]&&Array(1)[a]((function(){c=!1})),r({target:"Array",proto:!0,forced:c},{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i(a)},5677:function(t,e,n){"use strict";var r=n(2977),o=n(6288),i=n(339),a=n(2743),c=n(4615).f,u=n(9012),s=n(6268),l=n(8494),f="Array Iterator",d=a.set,v=a.getterFor(f);t.exports=u(Array,"Array",(function(t,e){d(this,{type:f,target:r(t),index:0,kind:e})}),(function(){var t=v(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values");var p=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!s&&l&&"values"!==p.name)try{c(p,"name",{value:"values"})}catch(t){}},4517:function(t,e,n){var r=n(7263),o=n(9304);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},6394:function(t,e,n){var r=n(8191),o=n(3746),i=n(3060);r||o(Object.prototype,"toString",i,{unsafe:!0})},7723:function(t,e,n){"use strict";var r=n(7263),o=n(7386),i=n(9041),a=n(3955),c=n(8320),u=n(3989),s=o("".indexOf);r({target:"String",proto:!0,forced:!u("includes")},{includes:function(t){return!!~s(c(a(this)),c(i(t)),arguments.length>1?arguments[1]:void 0)}})},3710:function(t,e,n){"use strict";var r=n(7263),o=n(578).end;r({target:"String",proto:!0,forced:n(8040)},{padEnd:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},7754:function(t,e,n){"use strict";var r,o=n(7263),i=n(7386),a=n(6683).f,c=n(97),u=n(8320),s=n(9041),l=n(3955),f=n(3989),d=n(6268),v=i("".startsWith),p=i("".slice),h=Math.min,y=f("startsWith");o({target:"String",proto:!0,forced:!!(d||y||(r=a(String.prototype,"startsWith"),!r||r.writable))&&!y},{startsWith:function(t){var e=u(l(this));s(t);var n=c(h(arguments.length>1?arguments[1]:void 0,e.length)),r=u(t);return v?v(e,r,n):p(e,n,n+r.length)===r}})},3896:function(t,e,n){"use strict";n(4802)("WeakSet",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(7012))},435:function(t,e,n){n(3896)},7464:function(){!function(){if("undefined"!=typeof window)try{var t=new window.CustomEvent("test",{cancelable:!0});if(t.preventDefault(),!0!==t.defaultPrevented)throw new Error("Could not prevent default")}catch(t){var e=function(t,e){var n,r;return(e=e||{}).bubbles=!!e.bubbles,e.cancelable=!!e.cancelable,(n=document.createEvent("CustomEvent")).initCustomEvent(t,e.bubbles,e.cancelable,e.detail),r=n.preventDefault,n.preventDefault=function(){r.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(t){this.defaultPrevented=!0}},n};e.prototype=window.Event.prototype,window.CustomEvent=e}}()},5332:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}t=n.nmd(t);var o="__lodash_hash_undefined__",i=1,a=2,c=9007199254740991,u="[object Arguments]",s="[object Array]",l="[object AsyncFunction]",f="[object Boolean]",d="[object Date]",v="[object Error]",p="[object Function]",h="[object GeneratorFunction]",y="[object Map]",g="[object Number]",b="[object Null]",m="[object Object]",w="[object Promise]",S="[object Proxy]",O="[object RegExp]",_="[object Set]",I="[object String]",j="[object Symbol]",C="[object Undefined]",k="[object WeakMap]",E="[object ArrayBuffer]",P="[object DataView]",A=/^\[object .+?Constructor\]$/,x=/^(?:0|[1-9]\d*)$/,T={};T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T[u]=T[s]=T[E]=T[f]=T[P]=T[d]=T[v]=T[p]=T[y]=T[g]=T[m]=T[O]=T[_]=T[I]=T[k]=!1;var D="object"==("undefined"==typeof window?"undefined":r(window))&&window&&window.Object===Object&&window,L="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,R=D||L||Function("return this")(),N="object"==r(e)&&e&&!e.nodeType&&e,z=N&&"object"==r(t)&&t&&!t.nodeType&&t,U=z&&z.exports===N,F=U&&D.process,V=function(){try{return F&&F.binding&&F.binding("util")}catch(t){}}(),M=V&&V.isTypedArray;function B(t,e){for(var n=-1,r=null==t?0:t.length;++ns))return!1;var f=c.get(t);if(f&&c.get(e))return f==e;var d=-1,v=!0,p=n&a?new Et:void 0;for(c.set(t,e),c.set(e,t);++d-1},Ct.prototype.set=function(t,e){var n=this.__data__,r=xt(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},kt.prototype.clear=function(){this.size=0,this.__data__={hash:new jt,map:new(vt||Ct),string:new jt}},kt.prototype.delete=function(t){var e=Ft(this,t).delete(t);return this.size-=e?1:0,e},kt.prototype.get=function(t){return Ft(this,t).get(t)},kt.prototype.has=function(t){return Ft(this,t).has(t)},kt.prototype.set=function(t,e){var n=Ft(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Et.prototype.add=Et.prototype.push=function(t){return this.__data__.set(t,o),this},Et.prototype.has=function(t){return this.__data__.has(t)},Pt.prototype.clear=function(){this.__data__=new Ct,this.size=0},Pt.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Pt.prototype.get=function(t){return this.__data__.get(t)},Pt.prototype.has=function(t){return this.__data__.has(t)},Pt.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Ct){var r=n.__data__;if(!vt||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new kt(r)}return n.set(t,e),this.size=n.size,this};var Mt=st?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n-1&&t%1==0&&t-1&&t%1==0&&t<=c}function Zt(t){var e=r(t);return null!=t&&("object"==e||"function"==e)}function Xt(t){return null!=t&&"object"==r(t)}var Qt=M?function(t){return function(e){return t(e)}}(M):function(t){return Xt(t)&&Kt(t.length)&&!!T[Tt(t)]};function te(t){return null!=(e=t)&&Kt(e.length)&&!Yt(e)?At(t):Nt(t);var e}t.exports=function(t,e){return Lt(t,e)}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={id:r,loaded:!1,exports:{}};return t[r](i,i.exports,n),i.loaded=!0,i.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},function(){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}!function(){window._1gif&&(new Image(1,1).src=window._1gif);delete window._1gif}();var e={d:function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}},r={};e.d(r,{H:function(){return h}});var o=["message","state","type"];function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:"log",r=arguments.length>3?arguments[3]:void 0,o=t.name,i=t.fColor,a=t.bColor,c="display: inline-block; color: ".concat(i,"; background: ").concat(a,"; padding: 1px 4px; border-radius: 3px;"),u="%c".concat(o);console[n](u,c,e),r&&Object.keys(r).length>0&&console[n](u,c,r)},d=function(t){if(!(t&&t.name&&t.fColor&&t.bColor))return function(){};var e=function(t){var e=t.name,n=t.fColor,r=void 0===n?"white":n,o=t.bColor,i=void 0===o?"black":o,a=window.location.search,c=new RegExp("sznivadbg=([^&]*)"),u=a.match(c)||[];return{name:e,fColor:r,bColor:i,shouldLog:function(t,e){return!(!t||"1"!==t&&(~t.indexOf("!")?~t.indexOf("!".concat(e)):!~t.indexOf(e)))}(u.length>1?u[1]:"",e)}}(t);return function(){var t=arguments.length;if(0!==t&&(e.shouldLog&&1===t&&"string"==typeof(arguments.length<=0?void 0:arguments[0])&&f(e,arguments.length<=0?void 0:arguments[0]),e.shouldLog&&2===t&&~["log","warn","error"].indexOf(arguments.length<=0?void 0:arguments[0])&&"string"==typeof(arguments.length<=1?void 0:arguments[1])&&f(e,arguments.length<=1?void 0:arguments[1],arguments.length<=0?void 0:arguments[0]),1===t&&"object"==u(arguments.length<=0?void 0:arguments[0]))){var n=arguments.length<=0?void 0:arguments[0],r=n.message,i=n.state,c=n.type,s=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(n,o);e.shouldLog&&r&&f(e,r,c,s),i&&function(t,e,n){var r=t.name,o="iva_dbg_event_".concat(r),i=a({state:e},n);window.sznIVA=window.sznIVA||{},window.sznIVA[r]=window.sznIVA[r]||{},Object.assign(window.sznIVA[r],i);var c=new CustomEvent(o,{detail:i});window.dispatchEvent(c)}(e,i,s)}}},v=(0,l.E)({name:"SbrwsrSid",fColor:"#399e5a",bColor:"#6ef9f5"}),p=/AppDataConsent:\s*false/,h=function(t){if(~navigator.userAgent.indexOf("SznProhlizec")){var e=function(t){return function(e){if(!e)return v("Sid not available"),-1;if(p.test(e))return v('"AppDataConset" is set to false, ignoring the sid'),1;if(-1===e.indexOf("te="))return v("Sid not valid"),-1;try{return function(t,e,n){var r=new Date;r.setTime(r.getTime()+2592e5);var o=location.hostname.split(".").slice(-2).join("."),i="".concat("sid","=").concat(e,"; domain=").concat(o,"; path=/; expires=").concat(r.toUTCString()).concat("https:"===location.protocol?"; secure":"");document.cookie=i}(0,e),window.localStorage&&localStorage.setItem("sid",e),v({message:"Sid cookie synchronised",sid:e}),t&&t(e),0}catch(t){return console.log(t),v({type:"error",message:"Failed to set cookie/localStorage",sid:e,error:t}),1}}}(t);window.sznIVA=window.sznIVA||{},window.sznIVA.sBrowser=window.sznIVA.sBrowser||{},window.sznIVA.sBrowser.handleSid=e,v({message:'"handleSid" deployed to IVA namesapce',namespace:window.sznIVA});var n=window.sbrowser;if("function"==typeof(null==n?void 0:n.getSid))return 0===e(n.getSid());try{window.webkit.messageHandlers.sidHandler.postMessage("getSid"),v("postMessage sent to Sbrowser")}catch(t){return v({type:"error",message:"Failed to send postMessage to Sbrowser",error:t}),!1}return!0}return!1},y=r.H,g="sznIVA",b="errorStorage";function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function w(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"log",n=arguments.length>2?arguments[2]:void 0,r=t.name,o=t.fColor,i=t.bColor,a="display: inline-block; color: ".concat(o,"; background: ").concat(i,"; padding: 1px 4px; border-radius: 3px;"),c="%c".concat(r).concat(n?" "+n:""),u=arguments.length,s=new Array(u>3?u-3:0),l=3;l0&&void 0!==arguments[0]?arguments[0]:window;return!(t.top!==t.self&&!t.Cypress||t.frameElement)},W=function(){var t;return null===(t=window.sznIVA)||void 0===t?void 0:t.debugger},G=function(t){window.sznIVA=window.sznIVA||{},window.sznIVA.debugger=Object.assign(Object.assign({},window.sznIVA.debugger),t)},q=function(t){var e=window.location.search||"",n=new RegExp("".concat(t,"=([^&]*)")),r=e.match(n)||[];return r.length>1?r[1]:null},J=function(){var t,e=q(F);if(e)return e;var n=function(){var t;return null===(t=W())||void 0===t?void 0:t.topFrameRule}();if(n)return n;try{var r=(null===(t=window.localStorage)||void 0===t?void 0:t.getItem(F))||"";if(r)return r}catch(t){U(X(),"warn",void 0,JSON.stringify(t))}return""};function $(t){return function(t){if(Array.isArray(t))return Y(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Y(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&!~e.indexOf(r[0])?(U.apply(void 0,[t,"log",void 0].concat(r)),a):a&&i>2&&~e.indexOf(r[0])?(U.apply(void 0,[t,r[0],void 0].concat($(r.slice(1)))),a):(U(X(),"warn",void 0,"Debugger received unknown argument combination. args:",r),a)}},tt=Q(L),et=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"log",r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,i=t.name,a=t.fColor,c=t.bColor,u="display: inline-block; color: ".concat(a,"; background: ").concat(c,"; padding: 1px 4px; border-radius: 3px;"),s="%c".concat(i).concat(r?" "+r:"");console[n](s,u,e),o&&(Object.keys(o).length>0||o instanceof Error)&&console[n](s,u,o)},nt="white",rt="black";function ot(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ot(t)}var it=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o1?u[1]:"",e);return{name:e,fColor:r,bColor:i,shouldLog:s}}(t)}({name:"utils",fColor:"white",bColor:"#cc0044"});var at=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.hostname,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e<=0)return 0===e?".":null;var r=0,o=(t=(t=t.replace(/https?:\/\//,"")).split(/[\?#:\/]/)[0]).match(/\./g);return o&&(r=o.length+1),!r||e>r?t:(n&&e2&&void 0!==arguments[2]?arguments[2]:{},r=Object.assign({path:"/"},n);r.expires instanceof Date&&(r.expires=r.expires.toUTCString());var o="".concat(t,"=").concat(e).replace(/[\s\,\;]/gi,"");for(var i in r){var a=r[i];a&&(o+="; "+i+(!0===a?"":"="+a))}document.cookie=o},ut=function(t){var e=document.cookie.match(new RegExp("(?:^|; )"+t.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},st=function(t){return"string"==typeof t&&!!t.match(/^id=(\d+)\|t=(\d+\.\d{3})\|te=(\d+\.\d{3})\|c=([A-Z0-9]{32})$/)},lt=function(){function t(){}return t.repeatStr=function(t,e){for(var n="",r=0;r2&&void 0!==arguments[2]?arguments[2]:"log",r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,i=t.name,a=t.fColor,c=t.bColor,u="display: inline-block; color: ".concat(a,"; background: ").concat(c,"; padding: 1px 4px; border-radius: 3px;"),s="%c".concat(i).concat(r?" "+r:"");console[n](s,u,e),o&&(Object.keys(o).length>0||o instanceof Error)&&console[n](s,u,o)},dt="white",vt="black";function pt(t){return pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pt(t)}var ht=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o1?u[1]:"",e);return{name:e,fColor:r,bColor:i,shouldLog:s}}(t);return function(){var t=["log","warn","error"],n=arguments.length;if(0!==n&&(e.shouldLog&&1===n&&"string"==typeof(arguments.length<=0?void 0:arguments[0])&&ft(e,arguments.length<=0?void 0:arguments[0]),e.shouldLog&&2===n&&~t.indexOf(arguments.length<=0?void 0:arguments[0])&&"string"==typeof(arguments.length<=1?void 0:arguments[1])&&ft(e,arguments.length<=1?void 0:arguments[1],arguments.length<=0?void 0:arguments[0]),!e.shouldLog||2!==n||~t.indexOf(arguments.length<=0?void 0:arguments[0])||"string"!=typeof(arguments.length<=1?void 0:arguments[1])||"string"!=typeof(arguments.length<=0?void 0:arguments[0])&&"number"!=typeof(arguments.length<=0?void 0:arguments[0])||ft(e,arguments.length<=1?void 0:arguments[1],void 0,arguments.length<=0?void 0:arguments[0]),e.shouldLog&&3===n&&~t.indexOf(arguments.length<=0?void 0:arguments[0])&&("string"==typeof(arguments.length<=1?void 0:arguments[1])||"number"==typeof(arguments.length<=1?void 0:arguments[1]))&&"string"==typeof(arguments.length<=2?void 0:arguments[2])&&ft(e,arguments.length<=2?void 0:arguments[2],arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1]),1===n&&"object"===pt(arguments.length<=0?void 0:arguments[0]))){var r=arguments.length<=0?void 0:arguments[0],o=r.message,i=r.state,a=r.type,c=r.subName,u=ht(r,["message","state","type","subName"]);e.shouldLog&&o&&ft(e,o,a,c,u),i&&function(t,e,n){var r=t.name,o="".concat("iva_dbg_event_").concat(r),i=Object.assign({state:e},n);window.sznIVA=window.sznIVA||{},window.sznIVA[r]=window.sznIVA[r]||{},Object.assign(window.sznIVA[r],i);var a=new CustomEvent(o,{detail:i});window.dispatchEvent(a)}(e,i,u)}}}({bColor:"#8086ff",fColor:"#fff",name:"CONSENT"}),gt="euconsent-v2",bt=[gt,"eupubconsent-v2","ibb_euconsent","gdpr_consent","sas_cmp_cookie_consentData","csent"],mt=function(t){return"string"==typeof t&&(e=t.split(".")[0],"1"===lt.decode(e)[152]);var e},wt=function(t,e){return{version:"v2",consentString:t,name:e,purposeOne:mt(t)}},St="",Ot=!1,_t=[],It=function(t,e){if(e&&"useractioncomplete"===t.eventStatus){St=t.tcString;for(var n=wt(St),r=0,o=_t;r0?i[1]:null};function Dt(t){return Dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dt(t)}function Lt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Rt(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:null,r=new Image(1,1),o=e?"&dsid="+e:"",i=function(){if(window.sznIVA&&window.sznIVA.IS){var t=window.sznIVA.IS.getIdentities({cacheEnough:!0,justSettled:!1},null,!0);return window.sznIVA.IS.prepareIdsForBe(t)}return null}(),a=i?"&ids="+encodeURIComponent(JSON.stringify(i)):"",c={action:t};null!==n&&(c.hasConsent=n.toString());var u="https://h.seznam.cz/hit/?d="+encodeURIComponent(JSON.stringify(c))+"&a=event&s=idt&ptitle="+encodeURIComponent(document.title)+"&u="+encodeURIComponent(document.location.href)+o+a;r.src=u};function Bt(t){return Bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bt(t)}var Ht=function(t){return ct(gt,t,Rt(Rt({},Ft),{},{"max-age":zt()}))},Wt=function(t){return!(!t||"object"!==Bt(t))&&!(!t.startDate||!t.showDialog)},Gt=(n(4517),n(7464),Q({name:"rc",bColor:"gold",fColor:"black"}));Q({name:"retargeting",bColor:"yellow",fColor:"grey"});function qt(t){return qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qt(t)}function Jt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function $t(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:Kt.fresh,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return{value:e,created:(null==t?void 0:t.created)||Date.now(),updated:r&&(null==t?void 0:t.state)===Kt.fresh||!(null==t?void 0:t.updated)?Date.now():t.updated,state:n,settled:r}},Me=function(t){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?t:t.value},Be=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t&&(!(!(arguments.length>2&&void 0!==arguments[2])||arguments[2])||(null==t?void 0:t.settled))&&function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(null==t?void 0:t.state)===Kt.fresh||e}(t,e)};function He(t){return function(t){if(Array.isArray(t))return We(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return We(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return We(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function We(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=i)&&(rn.hasLoginBadge=t,a&&window.clearInterval(a),on({topLevelData:{hasLoginBadge:t}}))}),r);else{var n="top";try{n=window.Cypress||window.parent.Cypress?"parent":"top"}catch(t){}window[n].postMessage({type:he},"*"),window.addEventListener("message",(function(e){return function(t,e){var n,r,o,i,a;(null===(n=t.data)||void 0===n?void 0:n.type)===pe&&((null===(r=t.data)||void 0===r?void 0:r.identities)&&Te(null===(o=t.data)||void 0===o?void 0:o.identities)&&(me({message:"Data from top IS",identities:t.data.identities}),e(t.data.identities)),(null===(i=t.data)||void 0===i?void 0:i.topLevelData)&&Te(null===(a=t.data)||void 0===a?void 0:a.topLevelData)&&(rn=Object.assign(Object.assign({},rn),t.data.topLevelData)))}(e,t)}))}var r,o,i,a};function cn(t){return cn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cn(t)}function un(t,e){return un=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},un(t,e)}function sn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ln(t);if(e){var o=ln(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===cn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function ln(t){return ln=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ln(t)}function fn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dn(t,e){for(var n=0;n6&&void 0!==arguments[6]?arguments[6]:void 0;wn(this,t),Sn(this,"_isId5Message",!0),Sn(this,"id",void 0),Sn(this,"timestamp",void 0),Sn(this,"type",void 0),Sn(this,"src",void 0),Sn(this,"dst",void 0),Sn(this,"request",void 0),Sn(this,"payload",void 0),this.id=o,this.timestamp=e,this.src=n,this.dst=r,this.type=a,this.request=c,this.payload=i})),jn=function(){function t(e){wn(this,t),Sn(this,"_senderId",void 0),Sn(this,"_messageSeqNb",0),this._senderId=e,this._messageSeqNb=0}return mn(t,[{key:"createBroadcastMessage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.constructor.name;return new In(performance.now(),this._senderId,_n,++this._messageSeqNb,t,e||t.constructor.name)}},{key:"createResponse",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.constructor.name;return new In(performance.now(),this._senderId,t.src,++this._messageSeqNb,e,n||e.constructor.name,t)}},{key:"createUnicastMessage",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.constructor.name;return new In(performance.now(),this._senderId,t,++this._messageSeqNb,e,n||e.constructor.name)}}]),t}(),Cn=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:hn;wn(this,t),Sn(this,"_id",void 0),Sn(this,"_messageFactory",void 0),Sn(this,"_log",void 0),Sn(this,"_onMessageCallBackFunction",void 0),this._id=e,this._messageFactory=new jn(this._id),this._log=r,this._window=n,this._register()}return mn(t,[{key:"_register",value:function(){var t,e=this;e._abortController="undefined"!=typeof AbortController?new AbortController:void 0;var n=null===(t=e._abortController)||void 0===t?void 0:t.signal;e._window.addEventListener("message",(function(t){var n=t.data;if(void 0!==n&&n._isId5Message){if(t.data.src===e._id)return void e._log.debug("Ignore loopback msg");if(void 0!==t.data.dst&&t.data.dst!==e._id)return void e._log.debug("Ignore msg not to me");e._onMessageCallBackFunction&&"function"==typeof e._onMessageCallBackFunction&&e._onMessageCallBackFunction(n)}}),{capture:!1,signal:n})}},{key:"deregister",value:function(){this._abortController&&this._abortController.abort()}},{key:"onMessageReceived",value:function(t){this._onMessageCallBackFunction=t}},{key:"broadcastMessage",value:function(t,e){this._log.debug("Broadcasting message",e,t),this._postMessage(this._messageFactory.createBroadcastMessage(t,e))}},{key:"sendResponseMessage",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.constructor.name;this._log.debug("Sending response message",t,n,e),this._postMessage(this._messageFactory.createResponse(t,e,n))}},{key:"unicastMessage",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.constructor.name;this._log.debug("Sending response to",t,n,e),this._postMessage(this._messageFactory.createUnicastMessage(t,e,n))}},{key:"_postMessage",value:function(t){var e=this;!function n(r){try{!function(n){try{n.postMessage(t,"*")}catch(t){e._log.error("Could not post message to window",t)}}(r);var o=r.frames;if(o)for(var i=0;i5&&void 0!==arguments[5]?arguments[5]:hn;Tn(this,t),Dn(this,"properties",void 0),Dn(this,"_messenger",void 0),Dn(this,"_knownInstances",new Map),Dn(this,"role",void 0),Dn(this,"_leader",void 0),Dn(this,"_metrics",void 0),Dn(this,"_logger",void 0),Dn(this,"_callbacks",new Map),Dn(this,"_instanceCounters",void 0);var c=kn();this.properties=new Un(c,"1.0.1",n,r,o,e.location),this.role=Rn.UNKNOWN,this._metrics=i,this._instanceCounters=new Vn(i,this.properties),this._loadTime=performance.now(),this._logger=void 0!==a?new yn("Instance(id=".concat(c,")"),a):hn,this._logger.debug("Instance created"),this._window=e}return xn(t,[{key:"register",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e3,e=this,n=e._window;this._messenger=new Cn(e.properties.id,n,e._logger),this._messenger.onMessageReceived((function(t){var n=performance.now()-t.timestamp|0;if(e._metrics.instanceMsgDeliveryTimer().record(n),e._logger.debug("Message received",t),t.type===Bn.TYPE){var r=t.payload;e._addInstance(r.instance),t.dst===_n&&e._messenger.sendResponseMessage(t,new Bn(e.properties),Bn.TYPE)}e._doFireEvent(Nn.ID5_MESSAGE_RECEIVED,t)})),setTimeout((function(){var t=Array.from(e._knownInstances.values());t.push(e.properties);var n=function(t){if(!t||0===t.length)return;var e=t.sort((function(t,e){var n=-En(t.version,e.version);return 0===n&&(0===(n=t.source.localeCompare(e.source))&&(n=-En(t.sourceVersion,e.sourceVersion)),0===n&&(n=t.id.localeCompare(e.id))),n}));return e[0]}(t);e._leader=n,e.role=n.id===e.properties.id?Rn.LEADER:Rn.FOLLOWER,e._doFireEvent(Nn.ID5_LEADER_ELECTED,e.role,e._leader),e._logger.debug("Leader elected",n.id,"my role",e.role)}),t),e._messenger.broadcastMessage(new Bn(e.properties),Bn.TYPE),void 0===n.__id5_instances&&(n.__id5_instances=[]),n.__id5_instances.push(this)}},{key:"deregister",value:function(){var t=this._window.__id5_instances;void 0!==t&&t.splice(t.indexOf(this),1),this._messenger&&this._messenger.deregister()}},{key:"getRole",value:function(){return this.role}},{key:"on",value:function(t,e){if(void 0!==t&&zn.includes(t)){var n=this._callbacks.get(t);n?n.push(e):this._callbacks.set(t,[e])}return this}},{key:"_addInstance",value:function(t){this._knownInstances.get(t.id)||(this._knownInstances.set(t.id,t),this._instanceCounters.addInstance(t),this._metrics.instanceJoinDelayTimer().record(performance.now()-this._loadTime|0),void 0!==this._leader&&this._metrics.instanceLateJoinCounter(this.properties.id).inc(),this._logger.debug("Instance joined",t.id),this._doFireEvent(Nn.ID5_INSTANCE_JOINED,t))}},{key:"_doFireEvent",value:function(t){for(var e=this,n=arguments.length,r=new Array(n>1?n-1:0),o=1;ot.length)&&(e=t.length);for(var n=0,r=new Array(e);n1?e-1:0),r=1;r1?e-1:0),r=1;r1?e-1:0),r=1;r0);for(var e in t)if(hasOwnProperty.call(t,e))return!1;return!0}function _r(t,e){if(!Or(t)){if(hr(t.forEach))return t.forEach(e,this);var n=0,r=t.length;if(r>0)for(;n3&&void 0!==arguments[3]?arguments[3]:{};try{var o,i=r.method||(n?"POST":"GET");document.createElement("a").href=t;var a="object"===Hn(e)&&null!==e?e:{success:function(){ar("ajax","xhr success")},error:function(t){ur("ajax","xhr error",null,t)}};if("function"==typeof e&&(a.success=e),(o=new window.XMLHttpRequest).onreadystatechange=function(){if(4===o.readyState){var t=o.status;t>=200&&t<300||304===t?a.success(o.responseText,o):a.error(o.statusText,o)}},o.ontimeout=function(){ur("ajax","xhr timeout after ",o.timeout,"ms")},"GET"===i&&n){var c=function(t,e){var n=document.createElement("a");e&&"noDecodeWholeURL"in e&&e.noDecodeWholeURL?n.href=t:n.href=decodeURIComponent(t);var r,o=e&&"decodeSearchAsString"in e&&e.decodeSearchAsString;return{href:n.href,protocol:(n.protocol||"").replace(/:$/,""),hostname:n.hostname,port:+n.port,pathname:n.pathname.replace(/^(?!\/)/,"/"),search:o?n.search:(r=n.search||"",r?r.replace(/^\?/,"").split("&").reduce((function(t,e){var n=Wn(e.split("="),2),r=n[0],o=n[1];return/\[\]$/.test(r)?(t[r=r.replace("[]","")]=t[r]||[],t[r].push(o)):t[r]=o||"",t}),{}):{}),hash:(n.hash||"").replace(/^#/,""),host:n.host||window.location.host}}(t,r);Object.assign(c.search,n),t=Cr(c)}o.open(i,t,!0),r.withCredentials&&(o.withCredentials=!0),_r(r.customHeaders,(function(t,e){o.setRequestHeader(e,t)})),r.preflight&&o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.setRequestHeader("Content-Type",r.contentType||"text/plain"),"POST"===i&&n?o.send(n):o.send()}catch(t){ur("ajax","xhr construction",t)}}function Er(t,e,n){var r=new Image;r.src=t,hr(e)&&e(),hr(n)&&(r.complete?n():r.addEventListener("load",n))}function Pr(t){for(var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=function(t,e){if(hr(Math.imul))return Math.imul(t,e);var n=(4194303&t)*(e|=0);return 4290772992&t&&(n+=(4290772992&t)*e|0),0|n},o=3735928559^n,i=1103547991^n,a=0;a>>16,2246822507)^r(i^i>>>13,3266489909),(4294967296*(2097151&(i=r(i^i>>>16,2246822507)^r(o^o>>>13,3266489909)))+(o>>>0)).toString()}function Ar(t,e){var n=[];return _r(t,(function(t){e(t)&&n.push(t)})),n}function xr(t,e,n,r,o){for(e=e.split?e.split("."):e,r=0;r0&&null!==o[i-1].referrer,c=function(t){var e,n=[],r=null,o=null,i=null,a=null,c=null;for(e=t.length-1;e>=0;e--){try{r=t[e].location}catch(t){}if(r)n.push(r),c||(c=r);else if(0!==e){o=t[e-1];try{i=o.referrer,a=o.ancestor}catch(t){}i?(n.push(i),c||(c=i)):a?(n.push(a),c||(c=a)):n.push(null)}else n.push(null)}return{stack:n,detectedRefererUrl:c}}(o);o[o.length-1].canonicalUrl&&(n=o[o.length-1].canonicalUrl);try{r=t.top.document.referrer}catch(t){}return{topmostLocation:c.detectedRefererUrl,ref:r||null,reachedTop:a,numIframes:i,stack:c.stack,canonicalUrl:n}}catch(t){}}}(window),Rr=JSON.parse('{"TS":{"ID5":{"name":"id5id","expiresDays":90},"LAST":{"name":"id5id_last","expiresDays":90},"CONSENT_DATA":{"name":"id5id_cached_consent_data","expiresDays":30},"PD":{"name":"id5id_cached_pd","expiresDays":30},"SEGMENTS":{"name":"id5id_cached_segments","expiresDays":30},"PRIVACY":{"name":"id5id_privacy","expiresDays":30},"LIVE_INTENT":{"name":"id5li","expiresDays":90}},"iR":["id5.1st","id5id.1st"],"Lm":{"h":{"gdpr":true,"ccpa":false,"lgpd":true,"other":false}},"zZ":"id5-sync.com","NA":500}'),Nr={A:0,B:1,C:2,D:3,E:4,F:5,G:6,H:7,I:8,J:9,K:10,L:11,M:12,N:13,O:14,P:15,Q:16,R:17,S:18,T:19,U:20,V:21,W:22,X:23,Y:24,Z:25,a:26,b:27,c:28,d:29,e:30,f:31,g:32,h:33,i:34,j:35,k:36,l:37,m:38,n:39,o:40,p:41,q:42,r:43,s:44,t:45,u:46,v:47,w:48,x:49,y:50,z:51,0:52,1:53,2:54,3:55,4:56,5:57,6:58,7:59,8:60,9:61,"-":62,_:63,"+":62,"/":63};var zr=["localStoragePurposeConsent","ccpaString"];function Ur(t){return Ur="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ur(t)}function Fr(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function Vr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Mr(t,e){for(var n=0;n1)}},{key:"isValidV2ConsentObject",value:function(t){var e=t&&t.gdprApplies,n=t&&t.tcString;return!1===e||yr(n)}},{key:"normalizeV1Data",value:function(t){return{consentString:t.getConsentData.consentData,localStoragePurposeConsent:xr(t,"getVendorConsents.purposeConsents.1"),gdprApplies:t.getConsentData.gdprApplies,api:qr.TCF_V1}}},{key:"normalizeV2Data",value:function(t){var e=xr(t,"purpose.consents.1");return wr(e)||(e=function(t,e){var n=152+e-1,r=~~(n/6);if(t&&"C"===t.charAt(0)&&!(t.length<=r)){var o=t.charAt(r),i=Nr[o];if(void 0!==i)return 0!=(i&1<<6-n%6-1)}}(t.tcString,1)),{consentString:t.tcString,localStoragePurposeConsent:e,gdprApplies:t.gdprApplies,api:qr.TCF_V2}}},{key:"findTCF",value:function(){for(var t,e,n=0,r=window;!t;){try{if("function"==typeof r.__tcfapi||"function"==typeof r.__cmp){"function"==typeof r.__tcfapi?(n=2,e=r.__tcfapi):(n=1,e=r.__cmp),t=r;break}}catch(t){}try{if(r.frames.__tcfapiLocator){n=2,t=r;break}}catch(t){}try{if(r.frames.__cmpLocator){n=1,t=r;break}}catch(t){}if(r===window.top)break;r=r.parent}return{cmpVersion:n,cmpFrame:t,cmpFunction:e}}},{key:"findUsp",value:function(){for(var t,e,n=window;!t;){try{if("function"==typeof n.__uspapi){e=n.__uspapi,t=n;break}}catch(t){}try{if(n.frames.__uspapiLocator){t=n;break}}catch(t){}if(n===window.top)break;n=n.parent}return{uspapiFrame:t,uspapiFunction:e}}}]),t}();function Zr(t){return Zr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zr(t)}function Xr(t,e){for(var n=0;n= 0 and <= 1");break;case"control":this._isExposed=!1,this.info("User is in control group!")}var i=this._userId!==o||!1===Dr(this._ext,e.ext);this._userIdAvailable=!0,this._userId=o,this._ext=e.ext,this._fromCache=n,this.info("User id updated, hasChanged: ".concat(i,", fromCache: ").concat(n)),hr(this._availableCallback)&&!1===this._availableCallbackFired&&(this._availableCallbackTimerId&&(this.info("Cancelling pending onAvailableCallback watchdog"),clearTimeout(this._availableCallbackTimerId),this._availableCallbackTimerId=void 0),this._availableCallbackTimerId=setTimeout((function(){return t.doFireOnAvailableCallBack(r)}),0)),this._isRefreshing&&hr(this._refreshCallback)&&!1===this._refreshCallbackFired&&(!1!==n&&!1!==this._isRefreshingWithFetch||(this._refreshCallbackTimerId&&(this.info("Cancelling pending onRefreshCallback watchdog"),clearTimeout(this._refreshCallbackTimerId),this._refreshCallbackTimerId=void 0),this._refreshCallbackTimerId=setTimeout((function(){return t.doFireOnRefreshCallBack(r)}),0))),i&&hr(this._updateCallback)&&setTimeout((function(){return t.doFireOnUpdateCallBack(r)}),0)}},{key:"getUserId",value:function(){return!1===this._isExposed?"0":this._userId}},{key:"getLinkType",value:function(){return!1===this._isExposed?0:this.getExt().linkType}},{key:"getExt",value:function(){var t=!1===this._isExposed?{}:this._ext;return Object.assign({abTestingControlGroup:!this.exposeUserId()},t)}},{key:"isFromCache",value:function(){return this._fromCache}},{key:"exposeUserId",value:function(){return this._isExposed}},{key:"getUserIdAsEid",value:function(){return{source:Rr.zZ,uids:[{atype:1,id:this.getUserId(),ext:this.getExt()}]}}},{key:"onAvailable",value:function(e,n){if(!hr(e))throw new Error("onAvailable expect a function");if(hr(this._availableCallback))this.info("onAvailable was already called, ignoring");else{this._availableCallback=e;var r=this;this._userIdAvailable?(this.info("User id already available firing callback immediately"),this._availableCallbackTimerId=setTimeout((function(){return t.doFireOnAvailableCallBack(r)}),0)):n>0&&(this._availableCallbackTimerId=setTimeout((function(){return t.doFireOnAvailableCallBack(r)}),n))}return this}},{key:"onUpdate",value:function(e){if(!hr(e))throw new Error("onUpdate expect a function");this._updateCallback=e;var n=this;return this._userIdAvailable&&setTimeout((function(){return t.doFireOnUpdateCallBack(n)}),0),this}},{key:"onRefresh",value:function(e,n){if(!hr(e))throw new Error("onRefresh expect a function");this._refreshCallbackTimerId&&(clearTimeout(this._refreshCallbackTimerId),this._refreshCallbackTimerId=void 0),this._refreshCallback=e;var r=this;return!0===this._isRefreshing&&!1===this._isRefreshingWithFetch&&this._userIdAvailable?this._refreshCallbackTimerId=setTimeout((function(){return t.doFireOnRefreshCallBack(r)}),0):n>0&&(this._refreshCallbackTimerId=setTimeout((function(){return t.doFireOnRefreshCallBack(r)}),n)),this}},{key:"localStorageGrant",value:function(){return this.clientStore.localStorageGrant()}},{key:"info",value:function(t){ar(this.invocationId,"Id5Status: "+t)}}],[{key:"doFireOnAvailableCallBack",value:function(t){ar(t.invocationId,"Id5Status.doFireOnAvailableCallBack"),t._availableCallbackFired=!0,t._availableCallbackTimerId=void 0,t._availableCallback(t)}},{key:"doFireOnUpdateCallBack",value:function(t){ar(t.invocationId,"Id5Status.doFireOnUpdateCallBack"),t._updateCallback(t)}},{key:"doFireOnRefreshCallBack",value:function(t){ar(t.invocationId,"Id5Status.doFireOnRefreshCallBack"),t._refreshCallbackFired=!0,t._refreshCallbackTimerId=void 0,t._isRefreshing=!1,t._isRefreshingWithFetch=!1,t._refreshCallback(t)}}]),t}(),ho="1.0.36";function yo(t){return yo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yo(t)}function go(t,e){for(var n=0;n1&&void 0!==arguments[1])||arguments[1];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),bo(this,"available",!1),bo(this,"win",void 0),bo(this,"writingEnabled",void 0),this.win=e,this.writingEnabled=n;var r="__id5test";try{this.writingEnabled&&this.win.localStorage.setItem(r,r),this.win.localStorage.removeItem(r),this.available=!0}catch(t){}}var e,n,r;return e=t,(n=[{key:"isAvailable",value:function(){return this.available}},{key:"getItem",value:function(t){if(this.available)return this.win.localStorage.getItem(t)}},{key:"setItem",value:function(t,e){this.available&&this.writingEnabled&&this.win.localStorage.setItem(t,e)}},{key:"removeItem",value:function(t){this.available&&this.win.localStorage.removeItem(t)}},{key:"getItemWithExpiration",value:function(t){var e=t.name,n=this.getItem(e+wo);return!n||new Date(n).getTime()-Date.now()<=0?(this.removeItemWithExpiration({name:e}),null):this.getItem(e)}},{key:"setItemWithExpiration",value:function(t,e){var n=t.name,r=t.expiresDays,o=Date.now()+864e5*r,i=new Date(o).toUTCString();this.setItem(n+wo,i),this.setItem(n,e)}},{key:"removeItemWithExpiration",value:function(t){var e=t.name;this.removeItem(e),this.removeItem(e+wo)}}])&&go(e.prototype,n),r&&go(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Oo(t){return Oo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oo(t)}function _o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Io(t,e,n){return(e=Eo(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function jo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Co(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:void 0;jo(this,t);var n=Rr.TS,r=function(t){var n=void 0!==e?Math.max(1,e):t.expiresDays;return new Po(t.name,n)};this.ID5=r(n.ID5),this.LAST=r(n.LAST),this.CONSENT_DATA=r(n.CONSENT_DATA),this.PD=r(n.PD),this.PRIVACY=r(n.PRIVACY),this.SEGMENTS=r(n.SEGMENTS),this.LIVE_INTENT=r(n.LIVE_INTENT)})),xo=function(){function t(e,n){if(jo(this,t),Io(this,"invocationId",void 0),Io(this,"options",void 0),Io(this,"providedOptions",void 0),Io(this,"invalidSegments",void 0),this.invocationId=e,this.options={debugBypassConsent:!1,allowLocalStorageWithoutConsentApi:!1,cmpApi:"iab",consentData:{getConsentData:{consentData:void 0,gdprApplies:void 0},getVendorConsents:{}},refreshInSeconds:7200,partnerId:void 0,partnerUserId:void 0,callbackOnAvailable:void 0,callbackOnUpdates:void 0,callbackTimeoutInMs:void 0,pd:void 0,abTesting:{enabled:!1,controlGroupPct:0},provider:void 0,maxCascades:8,applyCreativeRestrictions:!1,segments:void 0,disableUaHints:!1,disableLiveIntentIntegration:!1,storageExpirationDays:void 0,att:void 0,diagnostics:{publishingDisabled:!1,publishAfterLoadInMsec:3e4,publishBeforeWindowUnload:!0,publishingSampleRatio:.01}},this.providedOptions={},!br(n.partnerId)&&!yr(n.partnerId))throw new Error("partnerId is required and must be a number or a string");this.invalidSegments=0,this.updOptions(n),this.storageConfig=new Ao(n.storageExpirationDays)}return ko(t,[{key:"getOptions",value:function(){return this.options}},{key:"getProvidedOptions",value:function(){return this.providedOptions}},{key:"getInvalidSegments",value:function(){return this.invalidSegments}},{key:"updOptions",value:function(e){var n=this,r=this;if(mr(e)){this.setPartnerId(e.partnerId);var o=function(t,e){n.options[t]=e,n.providedOptions[t]=e};Object.keys(e).forEach((function(i){if("segments"===i){var a=e[i],c=[];if(!gr(a))return void To(r.invocationId,i,"Array",a);a.forEach((function(t,e){var n,o,i,a="segments[".concat(e,"]");return gr(t.ids)&&(n=t.ids,o=yr,i=!0,_r(n,(function(t){return i=i&&o(t)})),i)?t.ids.length<1?(ur(r.invocationId,"Config option ".concat(a,".ids should contain at least one segment ID")),void(r.invalidSegments+=1)):yr(t.destination)?void c.push(t):(To(r.invocationId,"".concat(a,".destination"),"String",t.destination),void(r.invalidSegments+=1)):(To(r.invocationId,"".concat(a,".ids"),"Array of String",t.ids),void(r.invalidSegments+=1))})),o(i,c)}else if("diagnostics"===i){var u=n.options.diagnostics,s=e.diagnostics;if(pr(s,t.configTypes.diagnostics)){var l=function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:void 0;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.url=e||"https://diagnostics.id5-sync.com/measurements",this._metadata=n}var e,n,r;return e=t,n=[{key:"publish",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return t&&t.length>0?(t.forEach((function(t){return e=t.tags,void Object.keys(e).forEach((function(t){var n=e[t];n&&(e[t]=n instanceof Object?JSON.stringify(n):"".concat(n))}));var e})),fetch(this.url,{method:"POST",headers:{"Content-Type":"text/plain"},mode:"no-cors",body:JSON.stringify({metadata:ui(ui({},this._metadata),e),measurements:t})})):Promise.resolve()}}],n&&li(e.prototype,n),r&&li(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function pi(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return hi(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hi(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hi(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:void 0;return _i(this,n),e.call(this,t,r,Ei.TIMER)}return ji(n,[{key:"startMeasurement",value:function(){try{return new xi(this)}catch(t){return}}},{key:"record",value:function(t){try{this.values.push({value:t,timestamp:Date.now()})}catch(t){}}},{key:"recordNow",value:function(){try{var t;this.record(0|(null===(t=performance)||void 0===t?void 0:t.now()))}catch(t){}}}]),n}(Pi),xi=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;_i(this,t),this.timer=e,this.startTime=performance.now()}return ji(t,[{key:"record",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;try{var e=performance.now()-this.startTime|0,n=t||this.timer;return n&&n.record(e),e}catch(t){return}}}]),t}(),Ti=function(t){mi(n,t);var e=Si(n);function n(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return _i(this,n),e.call(this,t,r,Ei.COUNTER)}return ji(n,[{key:"inc",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;try{0===this.values.length?this.values.push({value:t,timestamp:Date.now()}):(this.values[0].value+=t,this.values[0].timestamp=Date.now())}catch(t){}}}]),n}(Pi),Di=function(t){mi(n,t);var e=Si(n);function n(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return _i(this,n),e.call(this,t,r,Ei.SUMMARY)}return ji(n,[{key:"record",value:function(t){try{this.values.push({value:t,timestamp:Date.now()})}catch(t){}}}]),n}(Pi);function Li(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ri(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:void 0;Vi(this,t),Ni(this,"_registry",void 0),Ni(this,"commonTags",void 0),Ni(this,"_scheduled",void 0),this._registry=new Wi,this.commonTags=gi.from(e)}return Bi(t,[{key:"getOrCreate",value:function(t,e,n){var r=Ri(Ri({},e),this.commonTags),o="".concat(t,"[").concat(gi.toString(r),"]");return this._registry.has(o)||this._registry.set(o,n(t,r)),this._registry.get(o)}},{key:"getAllMeasurements",value:function(){return this._registry.values().map((function(t){return{name:t.name,type:t.type,tags:t.tags,values:t.values}})).filter((function(t){return t.values&&t.values.length>0}))}},{key:"reset",value:function(){Array.from(this._registry.values()).forEach((function(t){return t.reset()}))}},{key:"addCommonTags",value:function(t){this.commonTags=Ri(Ri({},this.commonTags),gi.from(t))}},{key:"timer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.getOrCreate(t,e,(function(t,e){return new Ai(t,e)}))}},{key:"counter",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.getOrCreate(t,e,(function(t,e){return new Ti(t,e)}))}},{key:"summary",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.getOrCreate(t,e,(function(t,e){return new Di(t,e)}))}},{key:"publish",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(t){return t},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return Promise.resolve(this.getAllMeasurements()).then((function(t){return e(t,n)})).then((function(e){return t.reset()}))}},{key:"schedulePublishAfterMsec",value:function(t,e){if(!this._scheduled){var n=this;setTimeout((function(){return n._scheduled=!1,n.publish(e,{trigger:"fixed-time",fixed_time_msec:t})}),t),this._scheduled=!0}return this}},{key:"schedulePublishBeforeUnload",value:function(t){var e=this;return addEventListener("beforeunload",(function(){return e.publish(t,{trigger:"beforeunload"})})),this}}]),t}();function qi(t){return qi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qi(t)}function Ji(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function $i(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,$i($i({source:t,version:e},ea(n)),r))}return e=i,n=[{key:"loadDelayTimer",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.timer("id5.api.instance.load.delay",t)}},{key:"fetchCallTimer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.timer("id5.api.fetch.call.time",$i({status:t},e))}},{key:"fetchFailureCallTimer",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.fetchCallTimer("fail",t)}},{key:"fetchSuccessfulCallTimer",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.fetchCallTimer("success",t)}},{key:"extensionsCallTimer",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.timer("id5.api.extensions.call.time",t)}},{key:"consentRequestTimer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.timer("id5.api.consent.request.time",$i({requestType:t},e))}},{key:"invocationCountSummary",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.summary("id5.api.invocation.count",t)}},{key:"instanceCounter",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.counter("id5.api.instance.count",$i({instanceId:t},e))}},{key:"instanceUniqueDomainsCounter",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.counter("id5.api.instance.domains.count",$i({instanceId:t},e))}},{key:"instanceUniqWindowsCounter",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.counter("id5.api.instance.windows.count",$i({instanceId:t},e))}},{key:"instanceUniqPartnersCounter",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.counter("id5.api.instance.partners.count",$i({instanceId:t},e))}},{key:"instanceJoinDelayTimer",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.timer("id5.api.instance.join.delay.time",t)}},{key:"instanceLateJoinCounter",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.counter("id5.api.instance.lateJoin.count",$i({instanceId:t},e))}},{key:"instanceMsgDeliveryTimer",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.timer("id5.api.instance.message.delivery.time",t)}}],n&&Ki(e.prototype,n),r&&Ki(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(Gi);function ra(t){return ra="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ra(t)}function oa(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ia(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!wr(e))throw new Error("Invalid signature for refreshId(): second parameter must be a boolean");try{ar(t.invocationId,"Invoking refreshId()",arguments),t.startRefresh(e),t.updateOptions(n),t.consentManagement.resetConsentData(),this.getId(t,e)}catch(e){ur(t.invocationId,"Exception caught from refreshId()",e)}return t}},{key:"getId",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Sr(window.navigator.userAgentData)&&!t.getOptions().disableUaHints?this.gatherUaHints().then((function(r){return e.getIdWithUaHints(t,(i=/[()-.:;=?_/]/g,gr((o=r).brands)&&(o.brands=Ar(o.brands,(function(t){return yr(t.brand)&&t.brand.search(i)<0}))),gr(o.fullVersionList)&&(o.fullVersionList=Ar(o.fullVersionList,(function(t){return yr(t.brand)&&t.brand.search(i)<0}))),o),n);var o,i})).catch((function(r){ur("Error while calling navigator.userAgentData.getHighEntropyValues()",r),e.getIdWithUaHints(t,void 0,n)})):this.getIdWithUaHints(t,void 0,n)}},{key:"getIdWithUaHints",value:function(t,e,n){var r,o,i,a,c,u=this,s=t.getOptions(),l=0,f=!1,d=!1,v=!1,p=!1,h=s.refreshInSeconds,y=t.localStorageGrant();y.isDefinitivelyAllowed()&&(ar(t.invocationId,"Using local storage for cached ID",y),o=t.clientStore.getResponse(),i=t.clientStore.getDateTime(),br(null===(a=o)||void 0===a||null===(c=a.cache_control)||void 0===c?void 0:c.max_age_sec)&&(h=o.cache_control.max_age_sec),f=i<=0||Date.now()-i>1e3*h,l=t.clientStore.getNb(s.partnerId),d=!t.clientStore.isStoredPdUpToDate(s.partnerId,s.pd),v=!t.clientStore.storedSegmentsMatchesSegments(s.partnerId,s.segments)),o||(ar(t.invocationId,"No cached ID found"),o=t.clientStore.getResponseFromLegacyCookie(),f=!0),o&&o.universal_uid&&!d&&!v?(ar(t.invocationId,"ID5 User ID available from cache:",{storedResponse:o,storedDateTime:i,refreshNeeded:f}),i<=0||Date.now()-i>12096e5||(t.setUserId(o,!0),l=t.clientStore.incNb(s.partnerId,l),p=!0)):o&&o.universal_uid&&d?ar(t.invocationId,"PD value has changed, so ignoring User ID from cache"):o&&o.universal_uid&&v?ar(t.invocationId,"Segments have changed, so ignoring User ID from cache"):o&&!o.universal_uid?ur(t.invocationId,"Invalid stored response: ",o):ar(t.invocationId,"No ID5 User ID available from cache");var g=null===(r=t._metrics)||void 0===r?void 0:r.consentRequestTimer(s.debugBypassConsent?"bypass":s.cmpApi).startMeasurement();t.consentManagement.requestConsent(s.debugBypassConsent,s.cmpApi,s.consentData,(function(r){g&&g.record();var i=t.localStorageGrant();if(ar(t.invocationId,"Local storage grant",i),i.allowed){o=t.clientStore.getResponse()||t.clientStore.getResponseFromLegacyCookie();var a=!t.clientStore.storedConsentDataMatchesConsentData(r);t.clientStore.putHashedConsentData(r),!t.clientStore.isStoredPdUpToDate(s.partnerId,s.pd)&&t.clientStore.putHashedPd(s.partnerId,s.pd),t.clientStore.putHashedSegments(s.partnerId,s.segments);var c=!o||!o.universal_uid||!o.signature;if(c||f||a||d||v||n){var y;ar(t.invocationId,"Decided to fetch a fresh ID5 ID",{missingStoredData:c,refreshInSecondsHasElapsed:f,consentHasChanged:a,pdHasChanged:d,segmentsHaveChanged:v,forceFetch:n});var b=null===(y=t._metrics)||void 0===y?void 0:y.extensionsCallTimer().startMeasurement(),m=u.gatherData(s,t,l,r,o,e,h,t.getProvidedOptions());ii.gather(t.invocationId).then((function(e){b&&b.record(),m.extensions=e,u.fetchFreshID5ID(m,s,r,t,n,p)}))}}else ar(t.invocationId,"No legal basis to use ID5",r)}))}},{key:"gatherData",value:function(t,e,n,r,o,i,a,c){var u={partner:t.partnerId,v:this._version,o:da,tml:this._referer.topmostLocation,ref:this._referer.ref,cu:this._referer.canonicalUrl,u:this._referer.stack[0]||window.location.href,top:this._referer.reachedTop?1:0,localStorage:e.clientStore.isLocalStorageAvailable()?1:0,nbPage:n,id5cdn:this._isUsingCdn,ua:window.navigator.userAgent,att:t.att},s=r.gdprApplies;Sr(s)&&(u.gdpr=s?1:0);var l=r.consentString;Sr(l)&&(u.gdpr_consent=l),Sr(r.allowedVendors)&&(u.allowed_vendors=r.allowedVendors);var f=o&&o.signature?o.signature:void 0;return Sr(f)&&(u.s=f),Sr(i)&&(u.ua_hints=i),r.hasCcpaString&&(u.us_privacy=r.ccpaString),e.liveIntentApi.hasLiveIntentId()&&(u.li=e.liveIntentApi.getLiveIntentId()),function(t){for(var e=Object.keys(t),n=e.length,r=new Array(n);n--;)r[n]=[e[n],t[e[n]]];return r}({pd:"pd",partnerUserId:"puid",provider:"provider",segments:"segments"}).forEach((function(e){var n=aa(e,2),r=n[0],o=n[1];Sr(t[r])&&(u[o]=t[r])})),!0===t.abTesting.enabled&&(u.ab_testing={enabled:!0,control_group_pct:e.getOptions().abTesting.controlGroupPct}),e.getInvalidSegments()>0&&(u._invalid_segments=e.getInvalidSegments()),rr&&(u._trace=!0),u.provided_options={refresh_in_seconds:c.refreshInSeconds},u.used_refresh_in_seconds=a,u}},{key:"fetchFreshID5ID",value:function(t,e,n,r,o,i){var a="".concat(fa,"/g/v2/").concat(e.partnerId,".json"),c=new xi;ar(r.invocationId,"Fetching ID5 ID (forceFetch:".concat(o,") from:"),a,t),kr(a,{success:this.handleSuccessfulFetchResponse(r,e,i,n,c),error:function(t){var e;ur(r.invocationId,"Error during AJAX request to ID5 server",t),c&&c.record(null===(e=r._metrics)||void 0===e?void 0:e.fetchFailureCallTimer())}},JSON.stringify(t),{method:"POST",withCredentials:!0})}},{key:"handleSuccessfulFetchResponse",value:function(t,e,n,r,o){var i=this;return function(a){var c;o&&o.record(null===(c=t._metrics)||void 0===c?void 0:c.fetchSuccessfulCallTimer());var u=i.validateResponseIsCorrectJson(a,t,"fetch");if(u)if(yr(u.universal_uid)){ar(t.invocationId,"Valid json response from ID5 received",u);try{t.setUserId(u,!1),t.consentManagement.setStoredPrivacy(u.privacy);var s=t.localStorageGrant();if(s.isDefinitivelyAllowed()?(ar(t.invocationId,"Storing ID in cache"),t.clientStore.putResponse(a),t.clientStore.setDateTime((new Date).toUTCString()),t.clientStore.setNb(e.partnerId,n?0:1)):(ar(t.invocationId,"Cannot use local storage to cache ID",s),t.clientStore.clearAll(e.partnerId)),t.clientStore.removeLegacyCookies(e.partnerId),!0===u.cascade_needed&&s.isDefinitivelyAllowed()&&e.maxCascades>=0&&!e.applyCreativeRestrictions){var l=e.partnerUserId&&e.partnerUserId.length>0,f="".concat(fa,"/").concat(l?"s":"i","/").concat(e.partnerId,"/").concat(e.maxCascades,".gif?id5id=").concat(t._userId,"&o=api&").concat(l?"puid="+e.partnerUserId+"&":"","gdpr_consent=").concat(r.consentString,"&gdpr=").concat(r.gdprApplies);ar(t.invocationId,"Opportunities to cascade available",f),function(t,e,n){"loading"!==document.readyState?Er(t,e,n):document.addEventListener("DOMContentLoaded",(function(){Er(t,e,n)}))}(f)}}catch(e){ur(t.invocationId,"Error during processing of valid ID5 server response",u,e)}}else ur(t.invocationId,"Server response failed to validate",u)}}},{key:"validateResponseIsCorrectJson",value:function(t,e,n){if(!t||!yr(t)||t.length<1)ur(e.invocationId,"Empty ".concat(n,' response from ID5 servers: "').concat(t,'"'));else try{return JSON.parse(t)}catch(r){ur(e.invocationId,"Cannot parse the JSON server ".concat(n," response"),t)}return null}},{key:"gatherUaHints",value:function(){return window.navigator.userAgentData.getHighEntropyValues(["architecture","fullVersionList","model","platformVersion"])}},{key:"_configureDiagnostics",value:function(t){try{var e,n=new na(da,ho);if(n.addCommonTags(ia(ia({},ea(t.partnerId)),{},{tml:this._referer.topmostLocation})),null===(e=t.diagnostics)||void 0===e||!e.publishingDisabled){var r,o,i=(a=t.diagnostics.publishingSampleRatio,Math.random()0&&n.schedulePublishAfterMsec(t.diagnostics.publishAfterLoadInMsec,i),null!==(o=t.diagnostics)&&void 0!==o&&o.publishBeforeWindowUnload&&n.schedulePublishBeforeUnload(i)}return n}catch(t){return void ur(this.invocationId,"Failed to configure diagnostics",t)}var a,c}},{key:"_registerIntegration",value:function(t,e,n){try{var r=new Mn(window,da,ho,t,e,n);return r.register(),r}catch(t){ur("Failed to register integration instance",t)}}}],n&&ua(e.prototype,n),r&&ua(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}(),pa=new va;function ha(t){return ha="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ha(t)}function ya(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ya=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function s(t,e,n,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),c=new j(o||[]);return r(a,"_invoke",{value:S(t,n,c)}),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function d(){}function v(){}function p(){}var h={};u(h,i,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(C([])));g&&g!==e&&n.call(g,i)&&(h=g);var b=p.prototype=d.prototype=Object.create(h);function m(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(r,i,a,c){var u=l(t[r],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==ha(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return o("throw",t,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return i=i?i.then(r,r):r()}})}function S(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return k()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=O(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=l(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function O(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,O(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=l(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function C(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),I(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;I(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:C(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}var ga=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((r=r.apply(t,e||[])).next())}))},ba=null,ma=function(){return new Promise((function(t){var e,n,r,o;(null===(n=null===(e=window.location)||void 0===e?void 0:e.href)||void 0===n?void 0:n.includes("allow_hostname_for_id5=1"))||["horoskopy.cz"].includes(null===(o=null===(r=window.location)||void 0===r?void 0:r.hostname)||void 0===o?void 0:o.replace(/^www\./,""))?t(!0):t(!1)}))},wa=function(t){ba||((ba=pa.init({partnerId:265,cmpApi:"iab"})).onAvailable(t,ye),ba.onUpdate(t,ye))},Sa=function(t,e){return ga(void 0,void 0,void 0,ya().mark((function n(){var r,o,i;return ya().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e(Xt.login);case 2:return o=n.sent,i=t(Xt.consent),n.abrupt("return",(!(null==o?void 0:o.value)||!Je()||"forget"===o.value.state)&&(null===(r=null==i?void 0:i.value)||void 0===r?void 0:r.purposeOne));case 5:case"end":return n.stop()}}),n)})))};function Oa(t){return Oa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oa(t)}var _a,Ia,ja,Ca,ka=function(t){Ne(Xt.consent)&&function(t){var e=Xe();e&&(t[Xt.consent]=Ve(t[Xt.consent],e,Kt.fresh,!0))}(t),Ne(Xt.login)&&function(t){var e=$e();e&&(t[Xt.login]=Ve(t[Xt.login],e,Kt.fresh,!0))}(t),Ne(Xt.udid)&&function(t){var e=Qe();e&&(t[Xt.udid]=Ve(t[Xt.udid],e,Kt.fresh,!0))}(t),Ne(Xt.sid)&&function(t){var e=tn();e&&(t[Xt.sid]=Ve(t[Xt.sid],e,Kt.fresh,!0))}(t),Ne(Xt.secid)&&function(t){var e=en();e&&(t[Xt.secid]=Ve(t[Xt.secid],e,Kt.fresh,!0))}(t)},Ea=function(t,e,n,r){var o=function(e){return n()[e]||t[e]};Ne(Xt.consent)&&function(t,e){var n,r,o,i=function(n){var r,o,i=e(Xt.consent),a=n||Xe();if(a||i){var c=a||i.value,u=a?Kt.fresh:i.state,s=Ye(null===(r=e(Xt.login))||void 0===r?void 0:r.value),l=!(null==s?void 0:s.v2)||(null==s?void 0:s.v2.encodedCookie)===(null==c?void 0:c.consentString),f={consent:{value:l?c:null,state:u}};qe(location.hostname)&&Ze&&(null==s?void 0:s.v2)&&(l=!0,f.consent.value=Ke("v2",s.v2.encodedCookie)),Ze=!1,(null===(o=f.consent.value)||void 0===o?void 0:o.purposeOne)||(f.id5={value:null,state:Kt.fresh}),t(f)}},a=!1,c=null;o=window.setTimeout((function(){window.clearInterval(c),Ze=!0,i()}),(null===(r=null===(n=Re())||void 0===n?void 0:n.timeouts)||void 0===r?void 0:r[Xt.consent])||ye);var u=function(){if("function"==typeof window.__tcfapi){a=!0,window.clearInterval(c);var t=function(t){t&&(window.clearTimeout(o),i(t))},e=Xe((function(e){t(e)}));t(e)}};u(),a||(c=window.setInterval((function(){u()}),500));var s=function(){window.clearTimeout(o),window.clearInterval(c),i()};window.addEventListener("scmp_redirect_done",s),window.addEventListener("scmp_ready",s),window.addEventListener("scmp_agreed",s),window.addEventListener("scmp_consent_set",s)}(e,o),Ne(Xt.login)&&function(t,e){var n,r,o=function(){var n,r,o=e(Xt.login),i=$e();if(i||o){var a={login:{value:i||o.value,state:i?Kt.fresh:o.state}},c=null==i?void 0:i.advert_uid,u=null===(n=null==o?void 0:o.value)||void 0===n?void 0:n.advert_uid;if((c||u)&&c!==u&&(a.consent={value:null,state:Kt.fresh},c&&(a.id5={value:null,state:Kt.fresh})),qe(location.hostname)){var s=Ye(i);if(null===(r=null==s?void 0:s.v2)||void 0===r?void 0:r.encodedCookie){var l=Ke("v2",s.v2.encodedCookie);a.consent={value:l,state:Kt.fresh}}}t(a)}},i=window.setTimeout((function(){o()}),(null===(r=null===(n=Re())||void 0===n?void 0:n.timeouts)||void 0===r?void 0:r[Xt.login])||ye),a=function(){window.clearTimeout(i),o()};window.addEventListener("badge",a),window.addEventListener("login",a),window.addEventListener("logout",a),window.addEventListener("forget",a)}(e,o),Ne(Xt.udid)&&function(t,e){var n,r,o=function(){var n=e(Xt.udid),r=Qe();if(r||n){var o=r||n.value,i=r?Kt.fresh:n.state;t({udid:{value:o,state:i}})}},i=window.setTimeout((function(){o()}),(null===(r=null===(n=Re())||void 0===n?void 0:n.timeouts)||void 0===r?void 0:r[Xt.udid])||ye);window.addEventListener("szn:marker:cookie",(function(){window.clearTimeout(i),o()}))}(e,o),Ne(Xt.sid)&&function(t,e){var n,r,o=function(){var n=e(Xt.sid),r=tn();if(r||n){var o=r||n.value,i=r?Kt.fresh:n.state;t({sid:{value:o,state:i}})}},i=window.setTimeout((function(){o()}),(null===(r=null===(n=Re())||void 0===n?void 0:n.timeouts)||void 0===r?void 0:r[Xt.sid])||ye),a=function(){window.clearTimeout(i),o()};window.addEventListener("szn:dot:cookie",a),window.addEventListener("szn:linkdecoration:sid",a)}(e,o),Ne(Xt.secid)&&function(t,e){var n,r,o=function(){var n=e(Xt.secid),r=en();if(r||n){var o=r||n.value,i=r?Kt.fresh:n.state;t({secid:{value:o,state:i}})}},i=window.setTimeout((function(){o()}),(null===(r=null===(n=Re())||void 0===n?void 0:n.timeouts)||void 0===r?void 0:r[Xt.secid])||ye);window.addEventListener("szn:czechid:secid",(function(){window.clearTimeout(i),o()}))}(e,o),Ne(Xt.id5)&&function(t,e,n){ga(void 0,void 0,void 0,ya().mark((function r(){var o;return ya().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,ga(void 0,void 0,void 0,ya().mark((function t(){var e,n;return ya().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ma();case 2:if(e=t.sent,n=De()||Le(),nn&&n&&e){t.next=6;break}return t.abrupt("return",!1);case 6:return t.abrupt("return",!0);case 7:case"end":return t.stop()}}),t)})));case 2:if(r.sent){r.next=4;break}return r.abrupt("return");case 4:(o=function(){return ga(void 0,void 0,void 0,ya().mark((function r(){return ya().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Sa(e,n);case 2:if(r.sent){r.next=4;break}return r.abrupt("return");case 4:wa((function(r){return ga(void 0,void 0,void 0,ya().mark((function o(){var i;return ya().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,Sa(e,n);case 2:if(o.sent){o.next=4;break}return o.abrupt("return");case 4:(i=r.getUserId())&&t({id5:{value:i}});case 6:case"end":return o.stop()}}),o)})))}));case 6:case"end":return r.stop()}}),r)})))})(),window.addEventListener(ve,(function(t){var e=t.detail.changes;(e.includes(Xt.login)||e.includes(Xt.consent))&&o()}));case 7:case"end":return r.stop()}}),r)})))}(e,o,r)},Pa=(_a={},Ia=Xt.login,ja=function(t){return window.setTimeout((function(){if(!(null===(e=window.DOT)||void 0===e?void 0:e.getCfgValue(ee.badge))&&!rn.hasLoginBadge)return t(null);var e}),ge)},(Ia=function(t){var e=function(t,e){if("object"!==Oa(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Oa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Oa(e)?e:String(e)}(Ia))in _a?Object.defineProperty(_a,Ia,{value:ja,enumerable:!0,configurable:!0,writable:!0}):_a[Ia]=ja,_a),Aa=function(t,e){var n=new CustomEvent(t,{detail:e||null});window.dispatchEvent(n)},xa=[],Ta=function(t){if(xa.length){var e=null;xa.forEach((function(n){var r;n.rich||e||(r=t.identities,e=Object.keys(r).reduce((function(t,e){return t[e]=r[e].value,t}),{})),n.callback(Object.assign(Object.assign({},t),{identities:n.rich?t.identities:e}))}))}},Da=function(t,e,n){t&&Ie(t),Ta({identities:e,changes:n}),Aa(ve,{identities:e,changes:n}),on({identities:e}),me("Cached and notified")},La=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign(Object.assign({},be),t)},Ra=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={};for(var r in Xt)n[r]=La(Object.assign(Object.assign({},t),e[r]||{}));return n},Na=function(t){var e,n,r;if(t&&"function"==typeof(null===(e=null===window||void 0===window?void 0:window.scmp)||void 0===e?void 0:e.initCmpApi)&&"function"==typeof(null===(n=null===window||void 0===window?void 0:window.scmp)||void 0===n?void 0:n.getTcStringFromCmpApi)&&"function"==typeof(null===(r=null===window||void 0===window?void 0:window.scmp)||void 0===r?void 0:r.updateCmpApi)){var o=window.scmp.getTcStringFromCmpApi();null===o&&(window.scmp.initCmpApi(),window.scmp.updateCmpApi(t)),""===o&&window.scmp.updateCmpApi(t)}},za=function(){var t,e,n,r=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")||(null===(n=null===(e=null===(t=null===window||void 0===window?void 0:window.sznIVA)||void 0===t?void 0:t.IS)||void 0===e?void 0:e._storage)||void 0===n?void 0:n.identities);if(!r)return{};var o=Ce(r);try{return o?JSON.parse(o):{}}catch(t){return me({type:"warn",message:"Storage could not be decoded, setting empty object",err:t}),{}}},Ua=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=je(JSON.stringify(t));return e?n:ke()._storage.identities=n},Fa=function(){var t,e,n,r;if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||!(null===(e=null===(t=ke())||void 0===t?void 0:t._storage)||void 0===e?void 0:e.inited)){me("Storage initializing");var o=_e(de),i={},a={};try{a=za(o);var c=Object.keys(a).filter((function(t){return t in Xt}));c.length&&(i=c.reduce((function(t,e){var n=a[e];return Ue(e)&&Ne(e)&&n.updated>=Date.now()-36e5&&(t[e]=Object.assign(Object.assign({},n),{state:Kt.cache,settled:!1})),t}),{}))}catch(t){me({type:"error",message:"Storage cache could not be decoded / inited",err:t})}var u=function(){return Va(Ra({rich:!0}))};ka(i),me({message:"Storage initialized",initObject:i}),window.sznIVA=Object.assign(Object.assign({},window.sznIVA||{}),{IS:Object.assign(Object.assign({},ke()||{}),{_childFramesToFeed:[],_storage:{identities:Object.keys(i).length&&Ua(i,!0)||null,inited:!0}})}),nn||Na(null===(r=null===(n=null==i?void 0:i.consent)||void 0===n?void 0:n.value)||void 0===r?void 0:r.consentString),Ea(i,Ha,u,(function(t){return Ba(t,{rich:!0})})),Da(ke()._storage.identities,i,Object.keys(i)),an(Ha,u)}},Va=function(t){try{var e=za(),n=Object.keys(e).reduce((function(n,r){var o=r,i=t[o],a=i.rich,c=i.justSettled,u=i.cacheEnough,s=e[o];return Ue(o)&&Ne(o)&&Be(s,u,c)&&(n[o]=Me(s,a)),n}),{});return n}catch(t){return me({type:"warn",message:"Can not read storage, returning {}",err:t}),{}}},Ma=function(t,e){var n=t.split(".")[0];if(!Ne(n))return null;var r=La(e),o=r.rich,i=r.justSettled,a=r.cacheEnough;if(!Ue(t))return me({type:"warn",message:"Identity identificator (".concat(t,") not valid, returning NULL")}),null;try{var c=za()[n];return c&&Be(c,a,i)?function(t,e){var n,r,o=t.split(".").slice(1),i=(null==e?void 0:e.value)||e,a=Te(i),c=!!(null==e?void 0:e.value),u=null;return u=o.length?a&&null!==(r=i,n=o.reduce((function(t,e){return(t||{})[e]}),r))&&void 0!==n?n:null:i,c?null!==u?Object.assign(Object.assign({},e),{value:u}):null:u}(t,Me(c,o)):null}catch(t){return me({type:"warn",message:"Identity could not be retrived, returning NULL",err:t}),null}},Ba=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;if(!Ne(t))return Promise.resolve(null);var i=function(e){return o&&Se({data:{action:"IS-awaitStorageItem-timeout",identificator:t,type:e}})},a=La(e),c=a.rich,u=a.cacheEnough;return new Promise((function(e){var o,a,s=Ma(t,{rich:!0,cacheEnough:u});if(s&&Be(s,u)&&(!r||r(s)))e(Me(s,c));else{var l=null,f=null,d=function(){f&&window.clearTimeout(f),l&&window.clearTimeout(l)};n||(l=window.setTimeout((function(){var n=Ma(t,{rich:!0,cacheEnough:u});d(),i("normal"),e(n?Me(n,c):null)}),(null===(a=null===(o=Re())||void 0===o?void 0:o.timeouts)||void 0===a?void 0:a[t])||ye)),!n&&Pa[t]&&(f=Pa[t]((function(t){d(),i("premature"),e(t)})));window.addEventListener(ve,(function n(o){var i,a,s,l=o.detail;~(null===(i=null==l?void 0:l.changes)||void 0===i?void 0:i.indexOf(t))&&Be(null===(a=null==l?void 0:l.identities)||void 0===a?void 0:a[t],u)&&(!r||r(null===(s=null==l?void 0:l.identities)||void 0===s?void 0:s[t]))&&(window.removeEventListener(ve,n),d(),e(Me(o.detail.identities[t],c)))}))}}))},Ha=function(t){var e,n;if(me({message:"Updating storage",identities:t}),t){var r=za(),o=function(t,e){var n={};return Te(e)?(Object.keys(e).forEach((function(r){if(Ue(r)){var o=r,i=e[o],a=Fe(o,i.value);if(!Ne(o)||!a.ok)return;i.value=a.value;var c=Object.assign({state:Kt.fresh,settled:!0},i);n[o]=Ve(t[o],c.value,c.state,!0)}})),n):(me({type:"warn",message:"Submited identities data are invalid",newIdentities:e}),{})}(r,t),i=Object.keys(o);if(nn||Na(null===(n=null===(e=null==o?void 0:o.consent)||void 0===e?void 0:e.value)||void 0===n?void 0:n.consentString),i.length){var a=i.filter((function(t){var e,n,i=o[t]||{},a=r[t]||{};return(void 0!==a.value||null!==i.value)&&(e=i.value,n=a.value,!Ae()(e,n)||i.state!==a.state||i.settled!==a.settled)}));if(a.length){var c=Object.assign(Object.assign({},r||{}),o),u=Object.keys(c).reduce((function(t,e){return null!==c[e].value?t[e]=c[e]:me({message:"Removing identity with NULL value",key:e}),t}),{});me({message:"Updating storage - after cleanup",newStorageCleaned:u}),Aa("szn:identities:beforeupdate",{oldIdentities:r,newIdentities:u,changes:a}),Da(Ua(u),u,a)}}else me({type:"error",message:"Storage could not be updated",identities:t})}else me({type:"error",message:"Invalid identities object",identities:t})},Wa=function(t,e,n){var r=Fe(t,e);if(!r.ok)return null;if(~[Qt.rusId,Qt.said,Qt.premium,Qt.state,Qt.login].indexOf(t)){if(Te(n.login)||(n.login=Ma("login",{rich:!1,cacheEnough:!0,justSettled:!1})||{}),t===Qt.rusId&&!$e())return n.login.uid=r.value,"login";if(t===Qt.said&&!$e())return n.login.advert_uid=r.value,n.login.said=r.value,"login";if(t===Qt.premium&&!$e())return n.login.premium=r.value,"login";if(t===Qt.state&&!$e())return n.login.state=r.value,"login";if(t===Qt.login)return n.login=r.value,n.login.rusId&&!n.login.uid&&(n.login.uid=r.value.rusId,delete n.login.rusId),n.login.said&&!n.login.advert_uid&&(n.login.advert_uid=r.value.said),"login"}return null};function Ga(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==qa(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==qa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===qa(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function qa(t){return qa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qa(t)}var Ja=(Ga(Ca={},Xt.sid,(function(t){return qa(t)===Zt.string})),Ga(Ca,Xt.udid,(function(t){return qa(t)===Zt.string})),Ga(Ca,Xt.secid,(function(t){return qa(t)===Zt.string})),Ga(Ca,Xt.eid,(function(t){return qa(t)===Zt.string})),Ga(Ca,Xt.login,["state","uid","premium","advert_uid","said","others"]),Ga(Ca,Xt.consent,["consentString","name","version","purposeOne"]),Ga(Ca,Xt.id5,(function(t){return qa(t)===Zt.string})),Ca);Fa();var $a={_init:Fa,getIdentity:function(t){var e;return null!==(e=Ma(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{rich:!1,justSettled:!0}))&&void 0!==e?e:null},getIdentitySettled:function(t){return Ba(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{rich:!1},arguments.length>2&&void 0!==arguments[2]&&arguments[2])},getIdentities:function(){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],e=Ra((arguments.length>0&&void 0!==arguments[0]?arguments[0]:be)||be,(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})||{});return function(t){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&Te(t)&&!Object.keys(t).length?null:t}(Va(e),t)},updateIdentities:function(t){return Ha(function(t,e){var n={};return Object.keys(t).reduce((function(r,o){var i=o,a=t[o];return o in Qt&&(i=e(o,a,n))&&(a=n[i]),i&&a&&(r[i]={value:a}),r}),{})}(t,Wa))},clearIdentities:function(){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Object.values(Xt),e=za();if(Object.keys(e).length){var n=t.reduce((function(t,e){return void 0!==t.storage[e]&&(delete t.storage[e],t.changes.push(e)),t}),{storage:Object.assign({},e),changes:[]});if(!n.changes.length)return;Da(Ua(n.storage),n.storage,n.changes)}}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:Object.values(Xt))},subscribeIdentities:function(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return xa.push({callback:t,rich:e}),function(){xa=xa.map((function(e){return e.callback===t?null:e})).filter(Boolean)}}(t,arguments.length>1&&void 0!==arguments[1]&&arguments[1])},prepareIdsForBe:function(t){if(Te(t)&&Object.keys(t).length){var e=function(t,e){var n={identities:{},version:1};return n.identities=t,n}(t);return Object.assign(Object.assign({},function(t){return Object.keys(t).reduce((function(e,n){var r=n,o=t[r],i=Ja[r];return void 0!==i&&(Array.isArray(i)&&Te(o)?e[r]=function(t,e){return e.reduce((function(e,n){var r=t[n];return void 0!==r&&(e[n]=r),e}),{})}(o,i):"function"==typeof i&&i(o)&&(e[r]=o)),e}),{})}(e.identities)),{_version:e.version})}return null},getViableLoginIdentity:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{rich:!1},e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Ba(Xt.login,t,e,(function(t){var e=(null==t?void 0:t.value)||{};return!(!e.state||!(e.advert_uid||e.said||e.uid)||!0!==e.premium&&!1!==e.premium)}),!0)}};window.sznIVA.IS=Object.assign(Object.assign(Object.assign({},ke()||{}),$a),{_metadata:{v:"1.40.0"}}),Aa("szn:identities:ready");var Ya=$a,Ka=function(){var t=Ya.getIdentities({cacheEnough:!0,justSettled:!1},{login:{justSettled:!0,cacheEnough:!1}},!0);return Ya.prepareIdsForBe(t)};function Za(t){return Za="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Za(t)}function Xa(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:function(){};if(t&&t.rtgId){var n=t.rtgId,r=t.category,o=t.itemId,i=t.pageType,a=t.rtgUrl,c=t.productIds,u=t.consent,s=t.said,l=t.eid;ie(u);var f=(window.rc||{}).internal,d=f&&ae(fe),v=ae(le),p=(u||f)&&st(v)?v:"";l?Ya.updateIdentities({eid:l}):Ya.clearIdentities(["eid"]);var h=Ka();e({message:"got following retargeting data:",rtgId:n,category:r,itemId:o,pageType:i,rtgUrl:a,productIds:c,euconsentV2:d,sid:p,consent:u,said:s,ids:h});var y=f?null:re(u);return new hc("https://c.seznam.cz/retargeting",e).appendValue("id",n).appendValue("category",r).appendValue("itemId",o).appendValue("url",function(){e({message:"Generating retargeting URL",internal:f,category:r,rtgUrl:a});var t=ce(a,r,f);return e({message:"Final retargeting URL",finalRetURL:t}),t}()).appendValue("pageType",i).appendValue("euconsent",d).appendValue("dsid",p).appendArray("productIds",c).appendValue("consent",y).appendValue("said",s).appendObject("ids",h).send(),!0}e("error",'RetargetingHit has not been sent. No required fields "conf" or "conf.rtgId".')};function Sc(t){return Sc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sc(t)}function Oc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _c(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==Sc(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Sc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Sc(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ic=function(t){window.ZboziConversionObject="zbozi",window.zbozi=function(){Gt(function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:50)).map((function(){return(~~(36*Math.random())).toString(36)})).join("")},xc=function(t,e){if(null!=t&&t.id&&null!=t&&t.conversionHitId){var n=t.id,r=t.value,o=t.orderId,i=t.consent,a=t.conversionHitId,c=(window.rc||{}).internal,u=c?null:re(i),s=ae(le),l=(i||c)&&st(s)?s:"",f=c&&ae(fe),d=Ka();e({message:"got following conversion data:",id:n,value:r,orderId:o,sid:l,euconsentV2:f}),new hc("https://c.seznam.cz/conv",e).appendValue("id",n).appendValue("value",r).appendValue("orderId",o).appendValue("url",window.location.href).appendValue("dsid",l).appendValue("euconsent",f).appendValue("consent",u).appendValue("conversionHitId",a).appendObject("ids",d).send()}else e("error",'ConversionHit has not been sent to sklik server. No required fields "conf.id" or "conf.conversionHitId".')};function Tc(t){return Tc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tc(t)}function Dc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Lc(t){for(var e=1;e-1&&(new S(e,n).appendValue("msg",i).appendValue("script",r).appendValue("href",window.location.href).appendValue("referrer",document.referrer).appendValue("stack",a).send(),I(c))}}))}}({endpoint:"sklik-ap-static",scriptName:"rc.js"}),Gt({message:"rc.js started",state:ue}),window.rc=window.rc||{},window.rc.retargetingHit=wc,window.rc.conversionHit=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};t&&ie(t.consent),t.conversionHitId=Ac(75),xc(t,e),kc(t)},function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},e=null,n=!1;window.rc&&window.rc.hasOwnProperty("consent")&&!Object.getOwnPropertyDescriptor(window.rc,"consent").get&&(n=!0,e=window.rc.consent),window.rc=$t($t({},window.rc),{},{set consent(e){if(!window.rc.internal&&ne(e))return this._consent=e,t("Set window.rc.consent: ".concat(e)),void function(t){window.dispatchEvent(new CustomEvent("szn:rc:setconsentvalue",{detail:{consent:t}}))}(e);t("error","Invalid consent value. Аllowed values: 0 or 1."),this._consent=null},get consent(){return ne(this._consent)?this._consent:null}}),n&&(window.rc.consent=e,n=!1)}(Gt),y()||function(t){if(window.sznIVA&&window.sznIVA[L.name])tt("duplicate execution - terminating");else{var e=function(){tt({message:"getting SID",state:"start"});var t=Tt(window.location.href,C),e=at(void 0,void 0,!1);if(z.includes(e))return tt('SID handler stoped, domain "'.concat(e,'" is blacklisted.')),null;if(!t)return tt({state:"done",message:"did not find sznclid, returning null",sznclid:t,error:"no sznclid in URL"}),null;tt('found parameter "'.concat(C,'", decoding...'));var n=At(t);return n?(tt({state:"done",message:'successfully retrieved "sid"',sid:n}),n):(tt({state:"error",sid:n,sznclid:t,error:"failed to decode sznclid"}),null)}();!function(t){var e=Tt(t,"consent"),n=at(void 0,void 0,!1);if(N.includes(n))tt('consent handler stoped, domain "'.concat(n,'" is blacklisted.'));else if(e){if(tt({message:"got consent, waiting for approval to store",consent:e}),Wt(window.scmp_sspServerData))return tt("Received approval to store synchronously, storing consent"),void Ht(e);var r=function t(n){n.detail?(Wt(n.detail)?(tt("Received approval from event, storing consent"),Ht(e)):tt("This website does not want our consent, NOT storing"),window.removeEventListener(R,t)):tt("warn",'Received "'.concat(R,'" event without any data'))};window.addEventListener(R,r),setTimeout((function(){return window.removeEventListener(R,r)}),5e3)}else tt({message:"did not get consent, or invalid consent",consent:e})}(window.location.href),e?function(t){var e=Pt();if(3===e.result){var n=null,r=0,o=function(e){clearInterval(n),n=null,t(e)};n=setInterval((function(){if(3===(e=Pt()).result){if(++r>=Et)return o({result:2}),void tt("giving up");tt("unsure whether to run, I'll keep trying")}else o(e)}),500),window.addEventListener("szn:rc:setconsentvalue",(function t(e){e.detail&&e.detail.consent&&o({result:1,reason:T}),window.removeEventListener("szn:rc:setconsentvalue",t)}))}else t(e)}((function(n){var r=null;r=1===n.result?function(t,e){var n=ut("sid");return n?n===t?(tt('"handleSid" found SID cookie with the same SID value'),Mt(E),E):(tt("warn",'"handleSid" found SID cookie with different value from linkdec SID'),Mt(P,n),P):(Mt(k),Mt(e,t,!0),Vt(t),k)}(e,n.reason):A,"function"==typeof t&&t(r)})):tt("no SID or invalid SID, nothing to do")}}();var Vc,Mc=!(Vc=window.seznam_retargetingId||window.seznam_retargeting_id||null)||window.seznam_dispatchedRetargetingIds&&~window.seznam_dispatchedRetargetingIds.indexOf(Vc)?null:{rtgId:Vc,category:window.seznam_category,itemId:window.seznam_itemId,pageType:window.seznam_pagetype,rtgUrl:window.seznam_rtgUrl,productIds:window.seznam_productIds,consent:oe()};Gt(Uc({message:"retargeting got this data:"},Mc)),wc(Mc,Gt)&&(window.seznam_dispatchedRetargetingIds=window.seznam_dispatchedRetargetingIds||[],window.seznam_dispatchedRetargetingIds.push(Mc.rtgId));var Bc=Ac(75),Hc=function(){var t=window.seznam_cId,e=window.seznam_zboziId;if(!t&&!e)return null;var n={value:window.seznam_value,orderId:window.seznam_orderId,zboziId:e,zboziType:window.seznam_zboziType,consent:oe()};if(Array.isArray(t)){var r=[];return t.forEach((function(t,o){var i=o?null:e;r.push(Lc(Lc({id:t},n),{},{zboziId:i}))})),r.length>0?r:null}return Lc({id:t},n)}();Hc&&(Gt(Uc({message:"conversion got this data (sklik-conversion):"},Hc)),Array.isArray(Hc)?Hc.forEach((function(t){xc(Uc(Uc({},t),{},{conversionHitId:Bc}),Gt)})):xc(Uc(Uc({},Hc),{},{conversionHitId:Bc}),Gt));var Wc,Gc,qc=(Wc=window.seznam_zboziId,Gc=window.seznam_orderId,Wc&&Gc?{zboziId:Wc,value:window.seznam_value,orderId:Gc,zboziType:window.seznam_zboziType,consent:oe()}:null);Gt(Uc({message:"conversion got this data (zbozi-conversion):"},qc)),kc(Uc(Uc({},qc),{},{conversionHitId:Bc})),Gt({message:"rc.js finished",state:se})}()}(); //# sourceMappingURL=rc.js.map