PageSourceSearch

https://supercell.com/_next/static/chunks/e014b761.3c81f1d124c3e9ac.js

js supercell.com collected 2026-09-24 08:27:37 UTC 294,649 bytes, 1 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="363dc8cf-3015-4369-b7b7-68590caf5110",e._sentryDebugIdIdentifier="sentry-dbid-363dc8cf-3015-4369-b7b7-68590caf5110")}catch(e){}{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=Object.assign({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:supercellcom":!0})}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4857],{23905:(e,t,n)=>{function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function s(e,t,n,i,s,r,o){try{var a=e[r](o),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(i,s)}function r(e){return function(){var t=this,n=arguments;return new Promise(function(i,r){var o=e.apply(t,n);function a(e){s(o,i,r,a,c,"next",e)}function c(e){s(o,i,r,a,c,"throw",e)}a(void 0)})}}function o(e,t,n){return t=p(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e,f()?Reflect.construct(t,n||[],p(e).constructor):t.apply(e,n))}function a(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,y(i.key),i)}}function u(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=m(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,s=function(){};return{s:s,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:s}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){a=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw r}}}}function d(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(){return(h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=function(e,t){for(;!({}).hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(i){var s=Object.getOwnPropertyDescriptor(i,t);return s.get?s.get.call(arguments.length<3?e:n):s.value}}).apply(null,arguments)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&T(e,t)}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function E(){var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",s=n.toStringTag||"@@toStringTag";function r(n,i,s,r){var c=Object.create((i&&i.prototype instanceof a?i:a).prototype);return I(c,"_invoke",function(n,i,s){var r,a,c,u=0,l=s||[],d=!1,h={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return r=t,a=0,c=e,h.n=n,o}};function p(n,i){for(a=n,c=i,t=0;!d&&u&&!s&&t<l.length;t++){var s,r=l[t],p=h.p,g=r[2];n>3?(s=g===i)&&(c=r[(a=r[4])?5:(a=3,3)],r[4]=r[5]=e):r[0]<=p&&((s=n<2&&p<r[1])?(a=0,h.v=i,h.n=r[1]):p<g&&(s=n<3||r[0]>i||i>g)&&(r[4]=n,r[5]=i,h.n=g,a=0))}if(s||n>1)return o;throw d=!0,i}return function(s,l,g){if(u>1)throw TypeError("Generator is already running");for(d&&1===l&&p(l,g),a=l,c=g;(t=a<2?e:c)||!d;){r||(a?a<3?(a>1&&(h.n=-1),p(a,c)):h.n=c:h.v=c);try{if(u=2,r){if(a||(s="next"),t=r[s]){if(!(t=t.call(r,c)))throw TypeError("iterator result is not an object");
1if(!t.done)return t;c=t.value,a<2&&(a=0)}else 1===a&&(t=r.return)&&t.call(r),a<2&&(c=TypeError("The iterator does not provide a '"+s+"' method"),a=1);r=e}else if((t=(d=h.n<0)?c:n.call(i,h))!==o)break}catch(t){r=e,a=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,s,r),!0),c}var o={};function a(){}function c(){}function u(){}t=Object.getPrototypeOf;var l=u.prototype=a.prototype=Object.create([][i]?t(t([][i]())):(I(t={},i,function(){return this}),t));function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,I(e,s,"GeneratorFunction")),e.prototype=Object.create(l),e}return c.prototype=u,I(l,"constructor",u),I(u,"constructor",c),c.displayName="GeneratorFunction",I(u,s,"GeneratorFunction"),I(l),I(l,s,"Generator"),I(l,i,function(){return this}),I(l,"toString",function(){return"[object Generator]"}),(E=function(){return{w:r,m:d}})()}function I(e,t,n,i){var s=Object.defineProperty;try{s({},"",{})}catch(e){s=0}(I=function(e,t,n,i){function r(t,n){I(e,t,function(e){return this._invoke(t,n,e)})}t?s?s(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(r("next",0),r("throw",1),r("return",2))})(e,t,n,i)}function T(e,t){return(T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function C(e,t,n,i){var s=h(p(1&i?e.prototype:e),t,n);return 2&i&&"function"==typeof s?function(e){return s.apply(n,e)}:s}function _(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||m(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function A(e){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){if(e){if("string"==typeof e)return i(e,t);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}function O(e){var t="function"==typeof Map?new Map:void 0;return(O=function(e){if(null===e||!function(e){try{return -1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(f())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,t);var s=new(e.bind.apply(e,i));return n&&T(s,n.prototype),s}(e,arguments,p(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),T(n,e)})(e)}n.d(t,{$:()=>rc,A:()=>rp,B:()=>o,C:()=>ei,D:()=>es,E:()=>eV,F:()=>er,G:()=>iY,H:()=>tw,I:()=>tj,J:()=>rT,K:()=>rI,L:()=>eU,M:()=>ey,N:()=>rC,O:()=>r_,P:()=>eO,Q:()=>rb,R:()=>rA,S:()=>ix,T:()=>rG,U:()=>eR,V:()=>rD,W:()=>ea,X:()=>rN,Y:()=>rO,Z:()=>ry,_:()=>b,a:()=>eo,a0:()=>rR,a1:()=>rw,a2:()=>rL,a3:()=>sE,a4:()=>rU,a5:()=>rM,a6:()=>rk,a7:()=>rV,a8:()=>sh,a9:()=>sd,aA:()=>rg,aB:()=>rf,aC:()=>e4,aD:()=>e7,aE:()=>tn,aF:()=>e5,aG:()=>e9,aH:()=>ts,aI:()=>tr,aJ:()=>te,aK:()=>tt,aL:()=>e6,aM:()=>e8,aN:()=>ti,aO:()=>rl,aP:()=>rd,aQ:()=>rh,aR:()=>H,aS:()=>j,aT:()=>Y,aU:()=>W,aV:()=>ed,aa:()=>ec,ab:()=>tZ,ac:()=>tX,ad:()=>t1,ae:()=>t3,af:()=>t0,ag:()=>t$,ah:()=>t2,ai:()=>t4,aj:()=>rm,ak:()=>rE,al:()=>rF,am:()=>eP,an:()=>eQ,ao:()=>eq,ap:()=>q,aq:()=>K,ar:()=>eZ,as:()=>e0,at:()=>e3,au:()=>J,av:()=>eX,aw:()=>e$,ax:()=>rX,ay:()=>eB,az:()=>nr,b:()=>eT,c:()=>iB,d:()=>ef,e:()=>z,f:()=>P,g:()=>t9,h:()=>V,i:()=>tk,j:()=>nE,k:()=>nu,l:()=>M,m:()=>tM,n:()=>U,o:()=>nn,p:()=>L,q:()=>eA,r:()=>g,s:()=>ty,t:()=>u,u:()=>a,v:()=>tb,w:()=>_,x:()=>C,y:()=>ru,z:()=>rS});
1var N=function(e,t){return(N=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function b(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}N(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var D,R,w,L=function(){return(L=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var s in t=arguments[n])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)};function P(e,t,n,i){return new(n||(n=Promise))(function(s,r){function o(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?s(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,a)}c((i=i.apply(e,t||[])).next())})}function V(e,t){var n,i,s,r={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(c){var u=[a,c];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(r=0)),r;)try{if(n=1,i&&(s=2&u[0]?i.return:u[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,u[1])).done)return s;switch(i=0,s&&(u=[2&u[0],s.value]),u[0]){case 0:case 1:s=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(!(s=(s=r.trys).length>0&&s[s.length-1])&&(6===u[0]||2===u[0])){r=0;continue}if(3===u[0]&&(!s||u[1]>s[0]&&u[1]<s[3])){r.label=u[1];break}if(6===u[0]&&r.label<s[1]){r.label=s[1],s=u;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(u);break}s[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(e){u=[6,e],i=0}finally{n=s=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function U(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,s,r=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(e){s={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function M(e,t,n){if(n||2==arguments.length)for(var i,s=0,r=t.length;s<r;s++)!i&&s in t||(i||(i=Array.prototype.slice.call(t,0,s)),i[s]=t[s]);return e.concat(i||Array.prototype.slice.call(t))}function k(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(n){t[n]=e[n]&&function(t){return new Promise(function(i,s){var r;r=(t=e[n](t)).done,Promise.resolve(t.value).then(function(e){i({value:e,done:r})},s)})}}}"function"==typeof SuppressedError&&SuppressedError,function(e){e.CONSENT_RESPONSE="consent-response",e.CONSENT_UI="consent-ui"}(D||(D={})),function(e){e.ACCEPT="accept",e.REJECT="reject",e.DISMISS="dismiss",e.FULLSCREEN="enter-fullscreen",e.READY="ready"}(R||(R={})),function(e){e[e.TCF_V2=2]="TCF_V2",e[e.CCPA=3]="CCPA"}(w||(w={})),function(e){e[e.FALSE=0]="FALSE",e[e.TRUE=1]="TRUE"}(F||(F={})),function(e){e[e.DATA_LAYER=0]="DATA_LAYER",e[e.WINDOW_EVENT=1]="WINDOW_EVENT"}(G||(G={})),function(e){e[e.MAJOR=0]="MAJOR",e[e.MINOR=1]="MINOR",e[e.PATCH=2]="PATCH"}(B||(B={})),function(e){e.CALL_INIT="Usercentrics: You have to call the init method before!",e.DATA_LOCAL="Usercentrics: disableServerConsents and controllerId should not be present at the same time in the InitOptions!",e.UNKNOWN_VARIANT="Usercentrics: Unknown variant",e.NOT_CCPA="Usercentrics: CCPA was not initialized",e.NOT_DEFAULT="Usercentrics: GDPR was not initialized",e.NOT_TCF="Usercentrics: TCF was not initialized"}(x||(x={})),function(e){e.BANNER="BANNER",e.WALL="WALL"}(H||(H={})),function(e){e.CENTER="CENTER",e.SIDE="SIDE"}(j||(j={})),function(e){e[e.DARK=0]="DARK",e[e.LIGHT=1]="LIGHT"}(Y||(Y={})),function(e){e.LINK="LINK",e.BUTTON="BUTTON",e.MORE_LINK_BUTTON="MORE_LINK_BUTTON"}(J||(J={})),function(e){e.LEFT="LEFT",e.RIGHT="RIGHT"}(W||(W={})),function(e){e.HORIZONTAL="HORIZONTAL",e.VERTICAL="VERTICAL"}(K||(K={})),function(e){e.ALL="ALL",e.SHORT="SHORT"}(q||(q={})),function(e){e.CROSS_DEVICE_DATA_NOT_AVAILABLE="Usercentrics: Cross Device Consents data is not available",e.CROSS_DEVICE_TCF_DATA_NOT_AVAILABLE="Usercentrics: Cross Device TCF data is not available",e.CROSS_DEVICE_FEATURE_DISABLED="Usercentrics: The `Cross-Device Consent Sharing` feature is not enabled. Please contact the support team in order to enable this feature for your configuration"}(Q||(Q={})),function(e){e.CROSS_DOMAIN_DATA_NOT_AVAILABLE="Usercentrics: Cross Domain Consents data is not available",e.CROSS_DOMAIN_TCF_DATA_NOT_AVAILABLE="Usercentrics: Cross Domain TCF data is not available",e.CROSS_DOMAIN_FEATURE_NOT_AVAILABLE="Usercentrics: Cross Domain Consent Sharing is not available.",e.CROSS_DOMAIN_LANGUAGE_NOT_AVAILABLE="Usercentrics: Cross Domain Consent language is not available",e.CROSS_DOMAIN_SET_DATA_FAILURE="Usercentrics: Unable to set Cross Domain data",e.CROSS_DOMAIN_SET_TCF_DATA_FAILURE="Usercentrics: Unable to set Cross Domain TCF data",e.CROSS_DOMAIN_IFRAME_ERROR="Usercentrics: Iframe error",e.CROSS_DOMAIN_IFRAME_NOT_FOUND="Usercentrics: Cross Domain iFrame not found",e.CROSS_DOMAIN_IFRAME_LOAD_ERROR="Usercentrics: IFrame did not load"}(z||(z={})),function(e){e.CLEAR="clear",e.GET_CROSS_DOMAIN_LANGUAGE="getCrossDomainLanguage",e.GET_CROSS_DOMAIN_SESSION_DATA="getCrossDomainSessionData",e.GET_CROSS_DOMAIN_TCF_DATA="getCrossDomainTcfData",e.GET_CROSS_DOMAIN_CCPA_DATA="getCrossDomainCcpaData",e.GET_TC_STRING="getTCString",e.PING="ping",e.SET_CROSS_DOMAIN_DATA="setCrossDomainData",e.SET_CROSS_DOMAIN_TCF_DATA="setCrossDomainTcfData",e.SET_CROSS_DOMAIN_CCPA_DATA="setCrossDomainCcpaData",e.SET_TC_STRING="setTCString"}(X||(X={}));
1var F,G,B,x,H,j,Y,J,W,K,q,Q,z,X,$,Z,ee="ucMobileSdk",et=["*.usercentrics-sandbox.eu","*.usercentrics.eu"],en="4.60.0",ei=1,es="1---",er="__uspapiLocator",eo=/^[1][nNyY-][nNyY-][nNyY-]$/,ea="__uspapi";!function(e){e.CCPA="uc_usprivacy",e.CCPA_DATA="uc_ccpa",e.CONSENTS_BUFFER="uc_consents_buffer",e.CONSENTS_V2_BUFFER="uc_consents_v2_buffer",e.GCM_DATA="uc_gcm",e.LEGACY_SETTINGS="ucSettings",e.SERVICES="uc_services",e.SETTINGS="uc_settings",e.TCF="uc_tcf",e.USER_INTERACTION="uc_user_interaction",e.AB_TEST_VARIANT="uc_ab_variant",e.INTERACTION_TYPE="uc_interaction_type"}($||($={})),(Z||(Z={})).USER_COUNTRY="uc_user_country";var ec,eu,el,ed,eh="uc-cross-domain-bridge",ep="".concat("https://app.usercentrics.eu","/browser-sdk/").concat(en,"/cross-domain-bridge.html"),eg="".concat("https://app.eu.usercentrics.eu","/browser-sdk/").concat(en,"/cross-domain-bridge.html"),ef=function(){function e(){}return e.setDomainBridgeUri=function(t){var n="";t&&(t.crossDomainConsentSharingIFrame?n=t.crossDomainConsentSharingIFrame:t.app&&(n="".concat(t.app,"/browser-sdk/").concat(en,"/cross-domain-bridge.html")));var i=""!==n?n:ep;e.domainBridgeUri=e.useEuCdn?eg:i},e.getDomainBridgeUri=function(){return e.domainBridgeUri},e.init=function(t,n){return P(this,void 0,void 0,function(){return V(this,function(i){return e.setDomainBridgeUri(n),e.setUseEuCdn((null==t?void 0:t.useEuCdn)||!1),e.setDomainBridgeUri(n),[2,this.initIFrame(e.getDomainBridgeUri(),eh)]})})},e.initIFrame=function(t,n){return P(this,void 0,void 0,function(){var i=this;return V(this,function(s){return[2,new Promise(function(s,r){var o=e.createIFrame(t,n);o.onload=function(){return P(i,void 0,void 0,function(){var i;return V(this,function(a){return i=setTimeout(function(){o={},r(Error(z.CROSS_DOMAIN_IFRAME_LOAD_ERROR))},1e3),e.queryIFrame(t,n,X.PING).then(function(){clearTimeout(i),s(!0)}).catch(function(e){clearTimeout(i),r(e)}),[2]})})},o.onerror=function(){return P(i,void 0,void 0,function(){return V(this,function(e){return r(Error(z.CROSS_DOMAIN_IFRAME_ERROR)),[2]})})},e.appendIFrame(o)})]})})},e.setIsCrossDomainAvailable=function(t){e.crossDomainAvailable=t},e.isCookieBridgeAvailable=function(){return e.cookieBridgeAvailable},e.setIsCookieBridgeAvailable=function(t){e.cookieBridgeAvailable=t},e.isCrossDomainAvailable=function(){return e.crossDomainAvailable},e.getCrossDomainId=function(){return e.crossDomainId},e.setCrossDomainId=function(t){e.crossDomainId="".concat("uc_cross_domain_data","_").concat(t)},e.setCookieBridgeDomain=function(e,t){this.cookieBridgeDomain="".concat(e).concat(t)},e.setUseEuCdn=function(t){e.useEuCdn=t},e.createIFrame=function(t,n){e.removeIFrame(n);var i=document.createElement("iframe");return i.style.display="none",i.id=n,i.src=t,i},e.removeIFrame=function(e){var t=document.getElementById(e);t&&t.parentNode&&t.parentNode.removeChild(t)},e.queryIFrame=function(e,t,n,i,s){return P(this,void 0,void 0,function(){var r;return V(this,function(o){if(!(r=document.getElementById(t))||!r.id)throw Error(z.CROSS_DOMAIN_IFRAME_NOT_FOUND);return[2,new Promise(function(t,o){var a=JSON.stringify({crossDomainId:s,method:n,payload:i}),c=new MessageChannel;c.port1.onmessage=function(e){var n=JSON.parse(e.data),i=n.success,s=n.data;i?t(s):o(e)},r&&r.contentWindow&&r.contentWindow.postMessage(a,e,[c.port2])})]})})},e.appendIFrame=function(e){try{document.body?document.body.appendChild(e):document.addEventListener("DOMContentLoaded",function(){document.body.appendChild(e)})}catch(e){return Error(z.CROSS_DOMAIN_IFRAME_ERROR)}return null},e.query=function(t,n){return P(this,void 0,void 0,function(){return V(this,function(i){return[2,e.queryIFrame(e.getDomainBridgeUri(),eh,t,n,e.crossDomainId)]})})},e.getCrossDomainLanguage=function(){return e.query(X.GET_CROSS_DOMAIN_LANGUAGE)},e.setCrossDomainData=function(t){return P(this,void 0,void 0,function(){return V(this,function(n){return[2,e.query(X.SET_CROSS_DOMAIN_DATA,{consents:t.services.map(function(e){return e.history.map(function(t){return{action:t.action,consentId:"",settingsVersion:t.versions.settings,status:t.status,templateId:e.id,timestamp:"".concat(t.timestamp),updatedBy:t.type}})}).reduce(function(e,t){return e.concat(t)},[]).sort(function(e,t){return parseInt(e.timestamp,10)-parseInt(t.timestamp,10)}),controllerId:t.controllerId,language:t.language})]})})},e.setCrossDomainCcpaData=function(t){return P(this,void 0,void 0,function(){return V(this,function(n){return[2,e.query(X.SET_CROSS_DOMAIN_CCPA_DATA,t)]})})},e.getCrossDomainCcpaData=function(){return P(this,void 0,void 0,function(){return V(this,function(t){return[2,e.query(X.GET_CROSS_DOMAIN_CCPA_DATA)]})})},e.getCrossDomainSessionData=function(){return P(this,void 0,void 0,function(){return V(this,function(t){return[2,e.query(X.GET_CROSS_DOMAIN_SESSION_DATA)]})})},e.getCrossDomainTcfData=function(){return P(this,void 0,void 0,function(){return V(this,function(t){return[2,e.query(X.GET_CROSS_DOMAIN_TCF_DATA)]})})},e.setCrossDomainTcfData=function(t){return P(this,void 0,void 0,function(){return V(this,function(n){return[2,e.query(X.SET_CROSS_DOMAIN_TCF_DATA,t)]})})},e.clearCrossDomainStorage=function(){return P(this,void 0,void 0,function(){return V(this,function(t){return[2,e.query(X.CLEAR)]})})},e.crossDomainId="",e.cookieBridgeDomain="",e.domainBridgeUri=ep,e.useEuCdn=!1,e.cookieBridgeAvailable=!1,e.crossDomainAvailable=!1,e}(),eS=function(){function e(){this.length=0,this.data={}}return e.prototype.updateLength=function(){this.length=Object.keys(this.data).length},e.prototype.key=function(e){var t=Object.keys(this.data)[e];return void 0===A(t)?null:t},e.prototype.getItem=function(e){return void 0!==this.data[e]?this.data[e]:null},e.prototype.setItem=function(e,t){this.data[e]=String(t),this.updateLength()},e.prototype.removeItem=function(e){delete this.data[e],this.updateLength()},e.prototype.clear=function(){this.data={},this.updateLength()},e}();!function(e){e.COOKIE_BRIDGE_NOT_AVAILABLE="Usercentrics: Cookie bridge is not available.",e.COOKIE_BRIDGE_OPTIONS_NOT_SET="Usercentrics: Cookie bridge options are not set",e.GET_GLOBAL_TC_STRING_FAILURE="Usercentrics: Unable to get the Global TC string",e.INIT_TCF_ERROR="Usercentrics: Unable to init TCF",e.RESET_GVL_FAILURE="Usercentrics: Unable to reset Global Vendor List",e.SET_GLOBAL_TC_STRING_FAILURE="Usercentrics: Unable to set the Global TC string",e.VENDOR_REMOVED="Usercentrics: The following vendor is not part of the official vendors list anymore: ",e.TC_MODEL_UNDEFINED="Usercentrics: tcModel can not be null.",e.SELECTED_LANGUAGE_UNDEFINED="Usercentrics: Selected language can not be undefined"}(ec||(ec={})),function(e){e.LEGITIMATE_INTEREST="legIntPurposes",e.PURPOSES="purposes"}(eu||(eu={})),function(e){e[e.ID=0]="ID",e[e.LEGITIMATE_INTEREST=1]="LEGITIMATE_INTEREST",e[e.PURPOSES=2]="PURPOSES",e[e.SPECIAL_PURPOSES=3]="SPECIAL_PURPOSES"}(el||(el={})),function(e){e[e.FIRST_LAYER=1]="FIRST_LAYER",e[e.SECOND_LAYER=2]="SECOND_LAYER"}(ed||(ed={}));var ev=function(e){switch(e){case"onAcceptAllBtnClick":case"onSpecialFunctionAcceptAllConsentTrigger":return"onAcceptAllServices";case"onDenyAllAnchorClick":case"onDenyAllBtnClick":return"onDenyAllServices";case"onNonEURegion":return"onNonEURegion";case"onInitialPageLoad":case"onCountdownFinished":default:return"onInitialPageLoad";case"onToggleCategory":case"onToggleConsent":case"onToggleSelectAll":return"onEssentialChange";case"onWindowFunctionUpdateConsent":case"bySettingsUpdate":case"onSaveBtnClick":return"onUpdateServices"}},eE=function(e){switch(e){case"update":case"implicit":default:return"implicit";case"explicit":return"explicit"}},eI="RAMDOM_KEY_LOCAL_STORAGE",eT=function(){function e(){this.localStorage=null,this.sessionStorage=null,this.storeServiceIdToNameMapping=!1}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.resetInstance=function(){e.instance.localStorage=null,e.instance.sessionStorage=null},e.prototype.setStoreServiceIdToNameMapping=function(e){this.storeServiceIdToNameMapping=e},e.prototype.getStoreServiceIdToNameMapping=function(){return this.storeServiceIdToNameMapping},e.prototype.init=function(){try{localStorage.setItem(eI,eI),localStorage.removeItem(eI),this.localStorage=localStorage}catch(e){this.localStorage=new eS}try{sessionStorage.setItem(eI,eI),sessionStorage.removeItem(eI),this.sessionStorage=sessionStorage}catch(e){this.sessionStorage=new eS}},e.appendToConsentsBuffer=function(t){var n,i=e.fetchConsentsBuffer(),s=(new Date).valueOf();i.push({consents:t,timestamp:s}),null==(n=e.getInstance().localStorage)||n.setItem($.CONSENTS_BUFFER,JSON.stringify(i))},e.appendToConsentsV2Buffer=function(t){var n,i=e.fetchConsentsV2Buffer(),s=(new Date).valueOf();i.push({consents:t,timestamp:s}),null==(n=e.getInstance().localStorage)||n.setItem($.CONSENTS_V2_BUFFER,JSON.stringify(i))},e.clearOnNewSettingsId=function(t){t!==e.fetchSettingsId()&&e.clear()},e.findBufferItem=function(t){return e.fetchConsentsBuffer().slice().find(function(e){return JSON.stringify(e.consents)===JSON.stringify(t)})},e.findV2BufferItem=function(t){return e.fetchConsentsV2Buffer().slice().find(function(e){return JSON.stringify(e.consents)===JSON.stringify(t)})},e.removeConsentsBufferItem=function(t){var n,i,s=e.fetchConsentsBuffer(),r=s.length+0;(s=s.filter(function(e){return JSON.stringify(e)!==JSON.stringify(t)})).length&&s.length!==r?null==(n=e.getInstance().localStorage)||n.setItem($.CONSENTS_BUFFER,JSON.stringify(s)):null==(i=e.getInstance().localStorage)||i.removeItem($.CONSENTS_BUFFER)},e.removeConsentsV2BufferItem=function(t){var n,i,s=e.fetchConsentsV2Buffer(),r=s.length+0;(s=s.filter(function(e){return JSON.stringify(e)!==JSON.stringify(t)})).length&&s.length!==r?null==(n=e.getInstance().localStorage)||n.setItem($.CONSENTS_V2_BUFFER,JSON.stringify(s)):null==(i=e.getInstance().localStorage)||i.removeItem($.CONSENTS_V2_BUFFER)},e.getCcpaString=function(){var t,n=null==(t=e.getInstance().localStorage)?void 0:t.getItem($.CCPA);return n&&eo.test(n)?n:es},e.getCcpaData=function(){var t,n=null==(t=e.getInstance().localStorage)?void 0:t.getItem($.CCPA_DATA);return n?JSON.parse(n):null},e.fetchConsentsBuffer=function(){var t,n=null==(t=e.getInstance().localStorage)?void 0:t.getItem($.CONSENTS_BUFFER);return n?JSON.parse(n):[]},e.fetchConsentsV2Buffer=function(){var t,n=null==(t=e.getInstance().localStorage)?void 0:t.getItem($.CONSENTS_V2_BUFFER);return n?JSON.parse(n):[]},e.fetchControllerId=function(){var t=e.fetchSettings();return t?t.controllerId:""},e.fetchLanguage=function(){var t=e.fetchSettings();return t?t.language:""},e.fetchServices=function(){var t=e.fetchSettings();return t?t.services:[]},e.fetchLegacySettings=function(){var t,n=null==(t=e.getInstance().localStorage)?void 0:t.getItem($.LEGACY_SETTINGS);return n?JSON.parse(n):null},e.fetchSettings=function(){var t,n=null==(t=e.getInstance().localStorage)?void 0:t.getItem($.SETTINGS);return n?JSON.parse(n):{}},e.fetchSettingsId=function(){var t=e.fetchSettings();return t?t.id:""},e.fetchSettingsVersion=function(){var t=e.fetchSettings();return t?t.version:""},e.fetchTCFData=function(){var t,n=null==(t=e.getInstance().localStorage)?void 0:t.getItem($.TCF),i=n?JSON.parse(n):{acString:"",tcString:"",timestamp:Date.now(),vendors:[]};return i.vendors||(i.vendors=[]),i},e.fetchTCFVendorsDisclosedObject=function(t){var n,i=e.fetchTCFData(),s=i.acString,r=i.tcString,o=i.vendors,a=i.vendorsDisclosed;if(!o&&!a)return{};if((a||!a&&!o.length&&r)&&t){var c=Object.keys(t).map(Number);n=(a||c).filter(function(e){return t[e]}).map(function(e){var n=t[e];return[n.id,n.legIntPurposes,n.purposes,n.specialPurposes]}),e.saveTCFData({acString:s,tcString:r,timestamp:Date.now(),vendors:n})}else n=o;return n.reduce(function(e,t){var n;return L(L({},e),((n={})[t[el.ID]]=!0,n))},{})},e.fetchTCString=function(){return e.fetchTCFData().tcString||""},e.fetchACString=function(){return e.fetchTCFData().acString||""},e.fetchUserActionPerformed=function(){var t;return"true"===(null==(t=e.getInstance().localStorage)?void 0:t.getItem($.USER_INTERACTION))},e.fetchActionTypePerformed=function(){var t;return(null==(t=e.getInstance().localStorage)?void 0:t.getItem($.INTERACTION_TYPE))||""},e.fetchUserCountryResponse=function(){var t;try{return JSON.parse((null==(t=e.getInstance().sessionStorage)?void 0:t.getItem(Z.USER_COUNTRY))||"null")}catch(e){return null}},e.setUserCountryResponse=function(t){var n;null==(n=e.getInstance().sessionStorage)||n.setItem(Z.USER_COUNTRY,JSON.stringify(t))},e.setActionTypePerformed=function(t){var n;null==(n=e.getInstance().localStorage)||n.setItem($.INTERACTION_TYPE,t)},e.mapServices=function(e){return e.map(function(e){return{history:e.consent.history,id:e.id,processorId:e.processorId,status:e.consent.status}})},e.mapSettings=function(t,n){return{controllerId:t.controllerId,id:t.id,language:t.selectedLanguage,services:e.mapServices(n),version:t.version}}
1,e.migrateLegacySettings=function(t){if(!e.settingsExist()){var n,i,s=e.fetchLegacySettings();if(e.clearLegacySettings(),null==s?void 0:s[t]){var r=(n=s[t])&&eA(n.ucConsents.consents)?((i={})[$.SETTINGS]={controllerId:n.ucConsents.consents[0].controllerId,id:n.usercentrics.settings.settingsId,language:n.usercentrics.settings.language,services:n.ucConsents.consents.map(function(e){return{history:e.history.map(function(e){return{action:ev(e.action),language:e.language,status:e.consentStatus,timestamp:e.updatedAt,type:eE(e.updatedBy),versions:{application:e.appVersion,service:e.consentTemplateVersion,settings:e.settingsVersion}}}),id:e.templateId,processorId:e.processorId,status:e.consentStatus}}),version:n.usercentrics.settings.version},i[$.USER_INTERACTION]=n.usercentrics.firstUserInteraction.stateSaved,i):null;r&&(e.saveSettings(r[$.SETTINGS]),r[$.USER_INTERACTION]&&(e.setUserActionPerformed(!0),e.setActionTypePerformed("user")))}}},e.saveSettings=function(t,n){var i,s;if(null==(i=e.getInstance().localStorage)||i.setItem($.SETTINGS,JSON.stringify(t)),e.getInstance().getStoreServiceIdToNameMapping()&&n&&n.length){var r=n.reduce(function(e,t){return e[t.id]=t.name,e},{});null==(s=e.getInstance().localStorage)||s.setItem($.SERVICES,JSON.stringify(r))}ef.isCrossDomainAvailable()&&ef.setCrossDomainData(t).catch(function(){console.warn(z.CROSS_DOMAIN_SET_DATA_FAILURE)})},e.saveTCFData=function(t){var n;null==(n=e.getInstance().localStorage)||n.setItem($.TCF,JSON.stringify(t)),ef.isCrossDomainAvailable()&&ef.setCrossDomainTcfData(t).catch(function(){console.warn(z.CROSS_DOMAIN_SET_TCF_DATA_FAILURE)})},e.fetchGcmData=function(){var t,n=null==(t=e.getInstance().localStorage)?void 0:t.getItem($.GCM_DATA);return n?JSON.parse(n):null},e.saveGcmData=function(t){var n;null==(n=e.getInstance().localStorage)||n.setItem($.GCM_DATA,JSON.stringify(t))},e.saveTCString=function(t){var n=e.fetchTCFData();this.saveTCFData(L(L({},n),{tcString:t}))},e.setCcpaTimeStamp=function(t){var n,i=t||{ccpaString:this.getCcpaString()||"",timestamp:(new Date).getTime()};null==(n=e.getInstance().localStorage)||n.setItem($.CCPA_DATA,JSON.stringify(i))},e.getCcpaTimeStamp=function(){var e=this.getCcpaData();return e&&e.timestamp?e.timestamp:(new Date).getTime()},e.setCcpaString=function(t){var n;null==(n=e.getInstance().localStorage)||n.setItem($.CCPA,t),this.setCcpaTimeStamp()},e.settingsExist=function(){return em(e.fetchSettings())},e.setUserActionPerformed=function(t){var n,i;null==(n=e.getInstance().localStorage)||n.setItem($.USER_INTERACTION,JSON.stringify(t)),t&&(null==(i=e.getInstance().localStorage)||i.setItem($.INTERACTION_TYPE,"user"))},e.clearCcpa=function(){var t;this.clearCcpaData(),null==(t=e.getInstance().localStorage)||t.removeItem($.CCPA)},e.clearCcpaData=function(){var t;null==(t=e.getInstance().localStorage)||t.removeItem($.CCPA_DATA)},e.clearTcf=function(){var t;null==(t=e.getInstance().localStorage)||t.removeItem($.TCF)},e.clearGcm=function(){var t;null==(t=e.getInstance().localStorage)||t.removeItem($.GCM_DATA)},e.clear=function(){var t,n,i;e.clearCcpa(),e.clearTcf(),e.clearGcm(),null==(t=e.getInstance().localStorage)||t.removeItem($.SETTINGS),null==(n=e.getInstance().localStorage)||n.removeItem($.USER_INTERACTION),null==(i=e.getInstance().localStorage)||i.removeItem($.INTERACTION_TYPE)},e.clearAll=function(){return P(this,void 0,void 0,function(){return V(this,function(e){switch(e.label){case 0:return this.clear(),ef.isCrossDomainAvailable()?[4,ef.clearCrossDomainStorage()]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})})},e.fetchAbTestVariant=function(t){var n,i,s=(null==(n=e.getInstance().localStorage)?void 0:n.getItem($.AB_TEST_VARIANT))||"";if(t.includes(s))return s;var r=t[Math.floor(Math.random()*t.length)];return null==(i=e.getInstance().localStorage)||i.setItem($.AB_TEST_VARIANT,r),r},e.clearLegacySettings=function(){var t;null==(t=e.getInstance().localStorage)||t.removeItem($.LEGACY_SETTINGS)},e}(),eC=function(e,t){return -1!==e.indexOf(t)},e_=function(){return"SDK-".concat(en)},ey=function(){return parseInt("3",10)},eA=function(e){return Array.isArray(e)&&e.length>0},em=function(e){return"object"===A(e)&&null!==e&&Object.keys(e).length>0},eO=function(e,t){if(void 0===t)throw Error("altElement of nullishOperation can not be undefined");return null!=e?e:t},eN=function(e,t,n,i,s,r){return{applicationVersion:e_(),consent:{action:n,status:t.consent.status,type:i},service:{categorySlug:s||"",id:t.id,name:t.name,processorId:t.processorId,version:t.version},settings:{controllerId:e.controllerId,id:e.id,language:e.selectedLanguage,referrerControllerId:eO(null==r?void 0:r.referrerControllerId,""),version:e.version},timestamp:eO(null==r?void 0:r.timestamp,(new Date).valueOf())}},eb=function(e){var t=e.dataTransferSettings,n=e.services,i=e.consentAction,s=e.consentString,r=e.isCcpa,o=e.isTcf,a=e.isAnalyticsEnabled,c=e.isConsentXDeviceEnabled,u=(void 0===n?[]:n).map(function(e){return{consentStatus:e.consent.status,consentTemplateId:e.id,consentTemplateVersion:e.version}}),l="",d="",h="";if(o){var p=eT.fetchTCFData(),g=p.acString,f=p.tcString,S=p.timestamp,v=p.vendors,E=p.vendorsDisclosed;d=eO(d?null==s?void 0:s.TCF2:f,""),h=JSON.stringify({timestamp:S,vendors:v,vendorsDisclosed:E}),g&&(l=g)}else r&&(d=eO(null==s?void 0:s.CCPA,""));return L(L(L(L(L({action:i,analytics:eO(a,!1),appVersion:e_().replace("SDK-","")},h&&{consentMeta:h}),{consents:u}),d&&{consentString:d}),l&&{acString:l}),{controllerId:t.controllerId,language:t.selectedLanguage,settingsId:t.
1id,settingsVersion:t.version,xdevice:eO(c,!1)})},eD=function(e,t){return e.reduce(function(e,n){var i=t[n];if(!(null==i?void 0:i.name))return e;var s=i.name;return M(M([],U(e),!1),[{id:n,name:s}],!1)},[])};function eR(e){return M([],U(new Set(e)),!1)}var ew,eL,eP,eV,eU,eM,ek,eF,eG,eB,ex=function(e){return e.filter(function(e){return["onAcceptAllServices","onDenyAllServices","onUpdateServices"].indexOf(e.action)>-1}).sort(function(e,t){return t.timestamp-e.timestamp})},eH=function(e){return e&&"object"===A(e)},ej=function(e,t,n){void 0===n&&(n=!1);var i=L({},t);if(!eH(i))throw Error("Source param should be an object");return eH(e)&&Object.keys(e).forEach(function(t){var s,r,o,a,c,u=e[t],l=i[t];void 0!==l&&(i=Array.isArray(u)&&Array.isArray(l)?L(L({},i),n?((s={})[t]=(c=u.concat(l)).filter(function(e,t){return c.indexOf(e)===t}),s):((r={})[t]=u,r)):eH(u)&&eH(l)?L(L({},i),((o={})[t]=ej(L({},u),l),o)):L(L({},i),((a={})[t]=u,a)))}),i},eY=function(e,t,n,i){return void 0===n&&(n=2e4),void 0===i&&(i=5),new Promise(function(s,r){var o=setInterval(function(){e()&&(clearTimeout(a),clearInterval(o),s())},i),a=setTimeout(function(){clearTimeout(a),clearInterval(o),r(Error(t))},n)})},eJ=function(e,t){for(var n=e.split("."),i=t.split("."),s=Math.min(n.length,i.length),r=0;r<s;r+=1){var o=Number(n[r])||0,a=Number(i[r])||0;if(o!==a)return o>a?1:-1}return i.length-n.length};!function(e){e[e.COOKIE=0]="COOKIE",e[e.WEB=1]="WEB",e[e.APP=2]="APP"}(ew||(ew={})),function(e){e.LEFT="LEFT",e.CENTER="CENTER",e.RIGHT="RIGHT"}(eL||(eL={})),function(e){e.CAT="CAT",e.SRV="SRV"}(eP||(eP={})),function(e){e.AVAILABLE_LANGUAGES_NOT_FOUND="Unable to find available languages using given settingsId and version.",e.FETCH_ACM_VENDORS="Something went wrong while fetching the atp vendors.",e.FETCH_AVAILABLE_LANGUAGES="Something went wrong while fetching the available languages.",e.FETCH_DATA_PROCESSING_SERVICES="Something went wrong while fetching the data processing services.",e.FETCH_LEGAL_BASIS="Something went wrong while fetching the legal data translations.",e.FETCH_SETTINGS="Something went wrong while fetching the settings.",e.FETCH_USER_CONSENTS="Something went wrong while fetching the user's consents.",e.FETCH_USER_COUNTRY="Something went wrong while fetching the user's country.",e.FETCH_USER_TCF_DATA="Something went wrong while fetching the user's tcf data.",e.GENERATE_DATA_PROCESSING_SERVICES="Something went wrong while generating the data processing services.",e.RULESET_NOT_FOUND="Config Map not found!",e.TAGLOGGER="Tag logger API is being called just before browser unload, some browsers like firefox cancel the api call and throw the error.",e.SAVE_CONSENTS="Something went wrong while saving user consents.",e.SAVE_CONSENTS_RETRY="Number of retries exceeded for saving user consents.",e.SETTINGS_NOT_FOUND="Unable to find settings using given settingsId and version.",e.CUSTOM_REFERRER_NOT_VALID="A custom referrer was passed to setTrackingPixel but it is not a valid URL. Origin and pathname will be passed instead."}(eV||(eV={})),function(e){e.US_CA_ONLY="US_CA_ONLY",e.US="US"}(eU||(eU={})),function(e){e[e.FIRST_LAYER=1]="FIRST_LAYER",e[e.SECOND_LAYER=3]="SECOND_LAYER"}(eM||(eM={})),function(e){e[e.DATA_LAYER=1]="DATA_LAYER",e[e.WINDOW_EVENT=4]="WINDOW_EVENT"}(ek||(ek={})),function(e){e.DATA_COLLECTED_LIST="dataCollectedList",e.DATA_PURPOSES_LIST="dataPurposesList",e.DATA_RECIPIENTS_LIST="dataRecipientsList",e.TECHNOLOGY_USED="technologyUsed"}(eF||(eF={})),function(e){e.MAJOR="major",e.MINOR="minor",e.PATCH="patch"}(eG||(eG={})),function(e){e.ICON="ICON",e.LINK="LINK"}(eB||(eB={}));var eW,eK={acceptAllButton:"Accept All",ccpaButton:"Agree to CCPA",ccpaMoreInformation:"More Information",closeButton:"Close",collapse:"Collapse",cookiePolicyButton:"Open Cookie Policy",copyControllerId:"Copy Controller ID",denyAllButton:"Deny all",expand:"Expand",fullscreenButton:"Enter full screen",imprintButton:"Open Imprint",languageSelector:"Select language",privacyButton:"Open",privacyPolicyButton:"Open Privacy Policy",saveButton:"Save",serviceInCategoryDetails:"View Service details",servicesInCategory:"List of Services in this category",tabButton:"Tab",usercentricsCard:"Card",usercentricsCMPButtons:"Footer including buttons",usercentricsCMPC
1ontent:"Content",usercentricsCMPHeader:"Header including language selection and external links",usercentricsCMPUI:"Consent Management Platform Interface",usercentricsList:"List",vendorConsentToggle:"Consent",vendorDetailedStorageInformation:"Detailed Storage Information",vendorLegIntToggle:"Legitimate Interest"},eq=function(e,t){return"boolean"==typeof e?e:t},eQ=function(e){if(!e)return null;var t=e.startsWith("#")?e:"#".concat(e);return ez(t)?t:"#0045A5"},ez=function(e){return""!==e&&!!e&&/^#(?:[0-9a-fA-F]{3}){1,2}$/.test(e)},eX=function(e){if(null!=e.firstLayer.isOverlayEnabled)return e.firstLayer.isOverlayEnabled;var t=e.backgroundOverlay.find(function(e){var t;return(null==(t=e.target)?void 0:t[0])===eM.FIRST_LAYER});return!!t&&(null==t?void 0:t.darken)>0},e$=function(e){if(null!=e.secondLayer.isOverlayEnabled)return e.secondLayer.isOverlayEnabled;var t=e.backgroundOverlay.find(function(e){var t;return(null==(t=e.target)?void 0:t[0])===eM.SECOND_LAYER});return!!t&&(null==t?void 0:t.darken)>0},eZ=function(e){return"number"!=typeof e&&("string"!=typeof e||e.includes("px"))?e:"".concat(e,"px")},e0=function(e){switch(e){case eL.CENTER:return"center";case eL.RIGHT:return"right";case eL.LEFT:default:return"left"}},e1={description:"",id:"",legalBasis:[],name:""},e2=function(e,t){return e.map(function(e){var n=t.find(function(t){return t.id===e.id});return L(L(L({},e),n||e1),{description:e.description||(null==n?void 0:n.description)||e1.description,id:e.id,subServices:e2(e.subServices,t)})})},e3=function(){return"https://www.usercentrics.com/consent-management-platform-powered-by-usercentrics/"},e4=function(e){return null!=e&&null!=e.region},e6=function(e){return null!=e&&null!=e.changedPurposes},e5=function(e){return null!=e&&!e4(e)&&!e6(e)},e7=function(e){var t;return null!=e&&null!=(null==(t=e.buttons)?void 0:t.optOutNotice)},e8=function(e){return null!=e&&null!=e.vendor},e9=function(e){var t;return null!=e&&null!=(null==(t=e.buttons)?void 0:t.showSecondLayer)},te=function(e){return null!=e&&null!=e.privacyButton},tt=function(e){return null!=e&&(e7(e)||e9(e)||e8(e))},tn=function(e){var t,n;return null!=e&&null!=(null==(t=e.firstLayer)?void 0:t.showShortDescriptionOnMobile)&&null==(null==(n=e.firstLayer)?void 0:n.isCategoryTogglesEnabled)},ti=function(e){var t;return null!=e&&null!=(null==(t=e.firstLayer)?void 0:t.hideNonIabPurposes)},ts=function(e){var t;return null!=e&&null!=(null==(t=e.firstLayer)?void 0:t.isCategoryTogglesEnabled)},tr=function(e){return null!=e&&!tn(e)&&!ts(e)&&!ti(e)},to=function(){function e(){this.ampEnabled=!1}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.resetInstance=function(){e.instance.ampEnabled=!1},e.prototype.isAmpEnabled=function(){return this.ampEnabled},e.prototype.setIsAmpEnabled=function(e){this.ampEnabled=e},e}(),ta="latest",tc={EU_URI:{AGGREGATOR:"https://aggregator.eu.usercentrics.eu/aggregate/",CDN:"https://config.eu.usercentrics.eu",FETCH_CONSENTS:"https://consents.eu.usercentrics.eu/consentsHistory",FETCH_CONSENTS_V2:"https://consent-rt-ret.service.consent.eu1.usercentrics.eu",FETCH_TCF_DATA:"https://consents.eu.usercentrics.eu/consentsHistoryTCF",FETCH_TCF_DATA_V2:"https://consents.eu.usercentrics.eu/consentState",GRAPHQL:"https://api.eu.usercentrics.eu/graphql",SAVE_CONSENTS_V2:"https://consent-api.service.consent.eu1.usercentrics.eu/consent",TRACK_EVENT:"https://uct.eu.usercentrics.eu/uct",TRACK_SESSION:"https://app.eu.usercentrics.eu/session/1px.png"},FOLDER:{RULESET:"ruleSet",SETTINGS:"settings",TEMPLATES:"consent-templates",TRANSLATIONS:"translations"},URI:{AGGREGATOR:"https://aggregator.service.usercentrics.eu/aggregate/",CDN:"https://api.usercentrics.eu",FETCH_CONSENTS:"https://consents.usercentrics.eu/consentsHistory",FETCH_CONSENTS_V2:"https://consent-rt-ret.service.consent.usercentrics.eu",FETCH_TCF_DATA:"https://consents.usercentrics.eu/consentsHistoryTCF",FETCH_TCF_DATA_V2:"https://consents.usercentrics.eu/consentState",GRAPHQL:"https://graphql.usercentrics.eu/graphql",RULESET:"https://api.usercentrics.eu",SAVE_CONSENTS_V2:"https://consent-api.service.consent.usercentrics.eu/consent",TRACK_EVENT:"https://uct.service.usercentrics.eu/uct",TRACK_SESSION:"https://app.usercentrics.eu/session/1px.png"}},tu={EU_URI:{AGGREGATOR:"https://aggregator.service.usercentrics-sandbox.eu/aggregate/",CDN:"https://api.usercentrics-sandbox.eu",FETCH_CONSENTS:"https://api-consent-sandbox-dot-usercentrics-playground.nw.r.appspot.com/consentsHistory",FETCH_CONSENTS_V2:"https://consent-rt-ret.service.consent.eu1.usercentrics-staging.eu",FETCH_TCF_DATA:"https://api-consent-sandbox-dot-usercentrics-playground.nw.r.appspot.com/consentsHistoryTCF",FETCH_TCF_DATA_V2:"https://api-consent-sandbox-dot-usercentrics-playground.nw.r.appspot.com/consentState",GRAPHQL:"https://api-v2-sandbox-consent-d
1ot-usercentrics-playground.nw.r.appspot.com/",SAVE_CONSENTS_V2:"https://consent-api.service.consent.eu1.usercentrics-staging.eu/consent",TRACK_EVENT:"https://uct.eu.usercentrics.eu/uct",TRACK_SESSION:"https://app.usercentrics-sandbox.eu/session/1px.png"},FOLDER:{RULESET:"ruleSet",SETTINGS:"settings",TEMPLATES:"consent-templates",TRANSLATIONS:"translations"},URI:{AGGREGATOR:"https://aggregator.service.usercentrics-sandbox.eu/aggregate/",CDN:"https://api.usercentrics-sandbox.eu",FETCH_CONSENTS:"https://api-consent-sandbox-dot-usercentrics-playground.nw.r.appspot.com/consentsHistory",FETCH_CONSENTS_V2:"https://consent-rt-ret.service.consent.usercentrics-staging.eu",FETCH_TCF_DATA:"https://api-consent-sandbox-dot-usercentrics-playground.nw.r.appspot.com/consentsHistoryTCF",FETCH_TCF_DATA_V2:"https://api-consent-sandbox-dot-usercentrics-playground.nw.r.appspot.com/consentState",GRAPHQL:"https://api-v2-sandbox-consent-dot-usercentrics-playground.nw.r.appspot.com/",RULESET:"https://api.usercentrics-sandbox.eu",SAVE_CONSENTS_V2:"https://consent-api.service.consent.usercentrics-staging.eu/consent",TRACK_EVENT:"https://uct.service.usercentrics.eu/uct",TRACK_SESSION:"https://app.usercentrics-sandbox.eu/session/1px.png"}},tl=["onEssentialChange","onInitialPageLoad","onNonEURegion"],td=["onSessionRestored","onMobileSessionRestore"],th=function(e,t,n){return P(void 0,void 0,void 0,function(){return V(this,function(i){return[2,tg(e,t,null,n)]})})},tp=function(e,t,n,i){return P(void 0,void 0,void 0,function(){return V(this,function(s){return[2,tg(e,n,t,i)]})})},tg=function(e,t,n,i){return P(void 0,void 0,void 0,function(){var s,r;return V(this,function(o){return s={"Content-Type":"application/json"},r=L(L({},i),{headers:s,method:n?"POST":"GET"}),n&&(r.body=JSON.stringify(n)),(null==i?void 0:i.headers)&&(r.headers=L(L({},s),i.headers)),[2,fetch(e,r).then(function(e){return P(void 0,void 0,void 0,function(){return V(this,function(n){if(e.ok)return[2,tS(e)];throw tf(t,e.status)})})})]})})},tf=function(e,t){return{errorMessage:e,statusCode:t}},tS=function(e){return P(void 0,void 0,void 0,function(){return V(this,function(t){switch(t.label){case 0:return[4,tv(e)];case 1:return[2,{data:t.sent(),location:e.headers.get("x-client-geo-location"),statusCode:e.status}]}})})},tv=function(e){return P(void 0,void 0,void 0,function(){var t,n;return V(this,function(i){switch(i.label){case 0:return[4,e.text()];case 1:return[2,(n=""===(t=i.sent())?{}:JSON.parse(t)).data||n]}})})};!function(e){e[e.RESOURCE_NOT_FOUND=403]="RESOURCE_NOT_FOUND"}(eW||(eW={}));var tE,tI="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},tT={exports:{}},tC={exports:{}};tC.exports=tE=tE||function(e,t){if("undefined"!=typeof window&&window.crypto&&(i=window.crypto),"undefined"!=typeof self&&self.crypto&&(i=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(i=globalThis.crypto),!i&&"undefined"!=typeof window&&window.msCrypto&&(i=window.msCrypto),!i&&void 0!==tI&&tI.crypto&&(i=tI.crypto),!i)try{i=n(86730)}catch(e){}var i,s=function(){if(i){if("function"==typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(e){}}throw Error("Native crypto module could not be used to get secure random number.")},r=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),o={},a=o.lib={},c=a.Base={extend:function(e){var t=r(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},u=a.WordArray=c.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,n=e.words,i=this.sigBytes,s=e.sigBytes;if(this.clamp(),i%4)for(var r=0;r<s;r++){var o=n[r>>>2]>>>24-r%4*8&255;t[i+r>>>2]|=o<<24-(i+r)%4*8}else for(var a=0;a<s;a+=4)t[i+a>>>2]=n[a>>>2];return this.sigBytes+=s,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=0xffffffff<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(s());return new u.init(t,e)}}),l=o.enc={},d=l.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],s=0;s<n;s++){var r=t[s>>>2]>>>24-s%4*8&255;i.push((r>>>4).toString(16)),i.push((15&r).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i+=2)n[i>>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new u.init(n,t/2)}},h=l.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],s=0;s<n;s++){var r=t[s>>>2]>>>24-s%4*8&255;i.push(String.fromCharCode(r))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i++)n[i>>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new u.init(n,t)}},p=l.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(e){return h.parse(unescape(encodeURIComponent(e)))}},g=a.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,i=this._data,s=i.words,r=i.sigBytes,o=this.blockSize,a=r/(4*o),c=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*o,l=e.min(4*c,r);if(c){for(var d=0;d<c;d+=o)this._doProcessBlock(s,d);n=s.splice(0,c),i.sigBytes-=l}return new u.init(n,l)},clone:function(){var e=c.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});a.Hasher=g.extend({cfg:c.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){g.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new f.HMAC.init(e,n).finalize(t)}}});var f=o.algo={};return o}(Math),tT.exports=function(e){return function(t){var n=e.lib,i=n.WordArray,s=n.Hasher,r=e.algo,o=[],a=[];function c(e){return 0x100000000*(e-(0|e))|0}for(var u=2,l=0;l<64;)(function(e){for(var n=t.sqrt(e),i=2;i<=n;i++)if(!(e%i))return!1;return!0})(u)&&(l<8&&(o[l]=c(t.pow(u,.5))),a[l]=c(t.pow(u,1/3)),l++),u++;var d=[],h=r.SHA256=s.extend({_doReset:function(){this._hash=new i.init(o.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,i=n[0],s=n[1],r=n[2],o=n[3],c=n[4],u=n[5],l=n[6],h=n[7],p=0;p<64;p++){if(p<16)d[p]=0|e[t+p];else{var g=d[p-15],f=(g<<25|g>>>7)^(g<<14|g>>>18)^g>>>3,S=d[p-2],v=(S<<15|S>>>17)^(S<<13|S>>>19)^S>>>10;d[p]=f+d[p-7]+v+d[p-16]}var E=i&s^i&r^s&r,I=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),T=h+((c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25))+(c&u^~c&l)+a[p]+d[p];h=l,l=u,u=c,c=o+T|0,o=r,r=s,s=i,i=T+(I+E)|0}n[0]=n[0]+i|0,n[1]=n[1]+s|0,n[2]=n[2]+r|0,n[3]=n[3]+o|0,n[4]=n[4]+c|0,n[5]=n[5]+u|0,n[6]=n[6]+l|0,n[7]=n[7]+h|0},_doFinalize:function(){var e=this._data,n=e.words,i=8*this._nDataBytes,s=8*e.sigBytes;return n[s>>>5]|=128<<24-s%32,n[14+(s+64>>>9<<4)]=t.floor(i/0x100000000),n[15+(s+64>>>9<<4)]=i,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}});e.SHA256=s._createHelper(h),e.HmacSHA256=s._createHmacHelper(h)}(Math),e.SHA256}
1(tC.exports);for(var t_,ty=tT.exports,tA=new Uint8Array(16),tm=[],tO=0;tO<256;++tO)tm.push((tO+256).toString(16).slice(1));var tN={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function tb(e,t,n){if(tN.randomUUID&&!t&&!e)return tN.randomUUID();var i=(e=e||{}).random||(e.rng||function(){if(!t_&&!(t_="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return t_(tA)})();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(var s=0;s<16;++s)t[n+s]=i[s];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return tm[e[t+0]]+tm[e[t+1]]+tm[e[t+2]]+tm[e[t+3]]+"-"+tm[e[t+4]]+tm[e[t+5]]+"-"+tm[e[t+6]]+tm[e[t+7]]+"-"+tm[e[t+8]]+tm[e[t+9]]+"-"+tm[e[t+10]]+tm[e[t+11]]+tm[e[t+12]]+tm[e[t+13]]+tm[e[t+14]]+tm[e[t+15]]}(i)}var tD=function(){function e(){this.needsSessionRestore=!1,this.controllerId=""}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.resetInstance=function(){e.instance.controllerId=""},Object.defineProperty(e.prototype,"value",{get:function(){return this.controllerId},set:function(e){this.controllerId=e},enumerable:!1,configurable:!0}),e.prototype.setControllerIdByResolvedSettingsId=function(e,t){var n=t.find(function(t){return e===t.settingsId});n&&(this.value=n.controllerId)},e.prototype.setNeedSessionRestore=function(){this.needsSessionRestore=""!==this.controllerId},e.prototype.init=function(){if(""===this.controllerId){var e=this.getStorageControllerId();this.controllerId=e||this.generateControllerId()}},e.prototype.generateControllerId=function(){return"".concat(ty(tb()))},e.prototype.getStorageControllerId=function(){return eT.fetchControllerId()},e}(),tR=["AT","BE","BG","CY","CZ","DE","DK","EE","ES","FI","FR","GR","HR","HU","IE","IT","IS","LI","LT","LU","LV","MT","NL","NO","PL","PT","RO","SE","SI","SK"],tw=function(){function e(){this.userCountryData={},this.convertUserCountryString=function(e){var t=null==e?void 0:e.split(","),n=t&&t[0]?t[0]:"DE";return{countryCode:n,countryName:n||"Germany (default)",regionCode:t&&t[1]&&t[1].length>=3?t[1].substring(2):""}}}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.resetInstance=function(){e.instance.userCountryData={}},e.prototype.setUserCountryData=function(e){this.userCountryData=e},e.prototype.getUserCountryData=function(){return P(this,void 0,void 0,function(){return V(this,function(e){return[2,this.userCountryData]})})},e.prototype.getIsUserInCalifornia=function(){return P(this,void 0,void 0,function(){return V(this,function(e){return[2,this.getIsUserInUS("CA")]})})},e.prototype.getIsUserInEU=function(){return P(this,void 0,void 0,function(){return V(this,function(e){switch(e.label){case 0:return[4,this.getUserCountryData()];case 1:return[2,eC(tR,e.sent().code.toUpperCase())]}})})},e.prototype.getIsUserInUS=function(e){return P(this,void 0,void 0,function(){var t,n;return V(this,function(i){switch(i.label){case 0:return[4,this.getUserCountryData()];case 1:return(n=(t=i.sent()).regionCode).length>2&&(n=n.slice(2)),[2,"US"===t.code&&(!e||n===e)]}})})},e.prototype.resolveLocation=function(t){return P(this,void 0,void 0,function(){var n;return V(this,function(i){switch(i.label){case 0:return n=this.convertUserCountryString(t),[4,e.getInstance().getUserCountryData()];
1case 1:return em(i.sent())||(eT.setUserCountryResponse(n),this.setUserCountryData({code:n.countryCode,name:n.countryName,regionCode:n.regionCode})),[2]}})})},e.mapUserCountryData=function(e){return{countryCode:e.code,countryName:e.name,regionCode:e.regionCode}},e}(),tL={numOfAttempts:7,onFirstFail:function(){},onFirstRetriedSuccess:function(){},startingDelay:100,timeMultiple:2};function tP(e,t){return void 0===t&&(t={}),P(this,void 0,void 0,function(){return V(this,function(n){switch(n.label){case 0:var i,s;return i=t,(s=L(L({},tL),i)).numOfAttempts<1&&(s.numOfAttempts=1),[4,new tU(e,s).execute()];case 1:return[2,n.sent()]}})})}var tV,tU=function(){function e(e,t){this.request=e,this.options=t,this.attemptNumber=0}return e.prototype.execute=function(){return P(this,void 0,void 0,function(){var e,t;return V(this,function(n){switch(n.label){case 0:if(this.attemptLimitReached)return[3,7];n.label=1;case 1:return n.trys.push([1,5,,6]),this.attemptNumber?[4,this.wait(this.delay)]:[3,3];case 2:n.sent(),n.label=3;case 3:return[4,this.request()];case 4:return e=n.sent(),this.attemptNumber&&this.options.onFirstRetriedSuccess(),[2,e];case 5:if(t=n.sent(),this.attemptNumber||this.options.onFirstFail(),this.attemptNumber+=1,this.attemptLimitReached)throw t;return[3,6];case 6:return[3,0];case 7:throw Error("Something went wrong.")}})})},Object.defineProperty(e.prototype,"attemptLimitReached",{get:function(){return this.attemptNumber>=this.options.numOfAttempts},enumerable:!1,configurable:!0}),e.prototype.wait=function(e){return new Promise(function(t){return setTimeout(t,e)})},Object.defineProperty(e.prototype,"delay",{get:function(){return this.options.startingDelay*Math.pow(this.options.timeMultiple,this.attemptNumber)},enumerable:!1,configurable:!0}),e}(),tM=function(e){if(!e)return[];var t,n,i=e.reduce(function(e,t){return M(M([],U(e),!1),[{id:t.templateId,version:t.version}],!1)},[]);return t=function(e,t){return e.id===t.id&&e.version===t.version},n=[],i.forEach(function(e){-1===n.findIndex(function(n){return t(e,n)})&&n.push(e)}),n.sort(function(e,t){return e.id>t.id?1:-1})},tk=function(){function e(){this.API=tc,this.abTestVariant="",this.controllerIdInstance=tD.getInstance(),this.jsonCacheBustingString="",this.jsonFileLanguage="",this.jsonFileVersion=ta,this.settingsId="",this.rulesetId="",this.useEuCdn=!1,this.disableServerConsents=!1,this.aggregatedServicesCache=null,this.translationsCache=null}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.resetInstance=function(){e.instance.jsonCacheBustingString="",e.instance.jsonFileLanguage="",e.instance.jsonFileVersion=ta,e.instance.settingsId="",e.instance.disableServerConsents=!1},e.prototype.resetAggregatedServicesCache=function(){this.aggregatedServicesCache=null},e.prototype.resetTranslationsCache=function(){this.translationsCache=null},e.prototype.getAbTestVariant=function(){return this.abTestVariant},e.prototype.getJsonFileLanguage=function(){return this.jsonFileLanguage},e.prototype.getJsonFileVersion=function(){return this.jsonFileVersion},e.prototype.getSettingsId=function(){return this.settingsId},e.prototype.getRulesetId=function(){return this.rulesetId},e.prototype.getDisableServerConsents=function(){return this.disableServerConsents},e.prototype.setJsonCacheBustingString=function(e){this.jsonCacheBustingString=e},e.prototype.setJsonFileLanguage=function(e){this.jsonFileLanguage=e},e.prototype.setJsonFileVersion=function(e){this.jsonFileVersion=e},e.prototype.setDisableServerConsents=function(e){this.disableServerConsents=e},e.prototype.setDomains=function(e,t){this.API=e?tu:t?{EU_URI:{AGGREGATOR:tc.EU_URI.AGGREGATOR,CDN:tc.EU_URI.CDN,FETCH_CONSENTS:tc.EU_URI.FETCH_CONSENTS,FETCH_CONSENTS_V2:tc.EU_URI.FETCH_CONSENTS_V2,FETCH_TCF_DATA:tc.EU_URI.FETCH_TCF_DATA,FETCH_TCF_DATA_V2:tc.EU_URI.FETCH_TCF_DATA_V2,GRAPHQL:tc.EU_URI.GRAPHQL,SAVE_CONSENTS_V2:tc.EU_URI.SAVE_CONSENTS_V2,TRACK_EVENT:tc.EU_URI.TRACK_EVENT,TRACK_SESSION:tc.EU_URI.TRACK_SESSION},FOLDER:{RULESET:"ruleSet",SETTINGS:"settings",TEMPLATES:"consent-templates",TRANSLATIONS:"translations"},URI:L(L({AGGREGATOR:""!==t.aggregator?"".concat(t.aggregator,"/aggregate/"):tc.URI.AGGREGATOR,CDN:""!==t.cdn?t.cdn:tc.URI.CDN,RULESET:tc.URI.RULESET},""!==t.consents?{FETCH_CONSENTS:"".concat(t.consents,"/consentsHistory"),FETCH_CONSENTS_V2:"".concat(t.consents),FETCH_TCF_DATA:"".concat(t.consents,"/consentsHistoryTCF"),FETCH_TCF_DATA_V2:"".concat(t.consents,"/consentState")}:{FETCH_CONSENTS:tc.URI.FETCH_CONSENTS,FETCH_CONSENTS_V2:tc.URI.FETCH_CONSENTS_V2,FETCH_TCF_DATA:tc.URI.FETCH_TCF_DATA,FETCH_TCF_DATA_V2:tc.URI.FETCH_TCF_DATA_V2}),{GRAPHQL:""!==t.graphql?"".concat(t.graphql,"/graphql"):tc.URI.GRAPHQL,SAVE_CONSENTS_V2:""!==t.consentsV2?"".concat(t.consentsV2,"/consent"):tc.URI.SAVE_CONSENTS_V2,TRACK_EVENT:""!==t.trackingEvent?"".concat(t.trackingEvent,"/uct"):tc.URI.TRACK_EVENT,TRACK_SESSION:""!==t.app?"".concat(t.app,"/session/1px.png"):tc.URI.TRACK_SESSION})}:tc},e.prototype.setSettingsId=function(e){this.settingsId=e},e.prototype.setRulesetId=function(e){this.rulesetId=e},e.prototype.setEuMode=function(e){this.useEuCdn=e},e.prototype.isEuMode=function(){return this.useEuCdn},e.prototype.getAggregatorUri=function(){return this.isEuMode()?this.API.EU_URI.AGGREGATOR:this.API.URI.AGGREGATOR},e.prototype.getCdnUri=function(){return this.isEuMode()?this.API.EU_URI.CDN:this.API.URI.CDN},e.prototype.getGraphQLUri=function(){return this.isEuMode()?this.API.EU_URI.GRAPHQL:this.API.URI.GRAPHQL},e.prototype.getTcfDataV2Uri=function(){return this.isEuMode()?this.API.EU_URI.FETCH_TCF_DATA_V2:this.API.URI.FETCH_TCF_DATA_V2},e.prototype.fetchAggregatedServices=function(e,t){return void 0===t&&(t=!0),P(this,void 0,void 0,function(){var n;return V(this,function(i){switch(i.label){case 0:return this.aggregatedServicesCache&&t?[2,this.aggregatedServicesCache]:[4,th("".concat(this.getAggregatorUri()).concat(this.jsonFileLanguage,"?templates=").concat(e.map(function(e){return"".concat(e.id,"@").concat(e.version)}).join(",")),eV.GENERATE_DATA_PROCESSING_SERVICES)];case 1:return n=i.sent(),t&&(this.aggregatedServicesCache=n.data.templates),[2,n.data.templates]}})})},e.prototype.fetchRuleset=function(){var e;return P(this,void 0,void 0,function(){var t,n,i;return V(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,th(this.createRulesetUrl(),eV.RULESET_NOT_FOUND)];case 1:return n=null==(e=(t=s.sent()).location)?void 0:e.split(","),[2,{defaultRule:t.data.defaultRule,description:t.data.description,location:{code:n?n[0]:"",name:t.location||"",regionCode:n&&n[1]?n[1]:""},rules:t.data.rules}];case 2:throw(i=s.sent()).statusCode&&i.statusCode===eW.RESOURCE_NOT_FOUND&&(i.errorMessage=eV.RULESET_NOT_FOUND),i;case 3:return[2]}})})},e.prototype.fetchAvailableLanguages=function(){return P(this,void 0,void 0,function(){var e,t;return V(this,function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),[4,th(this.createAvailableLanguagesUrl(),eV.FETCH_AVAILABLE_LANGUAGES)];case 1:return e=n.sent(),[4,tw.getInstance().resolveLocation(e.location)];case 2:return n.sent(),[2,e.data.languagesAvailable];case 3:throw(t=n.sent()).statusCode&&t.statusCode===eW.RESOURCE_NOT_FOUND&&(t.errorMessage=eV.AVAILABLE_LANGUAGES_NOT_FOUND),t;case 4:return[2]}})})},e.prototype.fetchTranslations=function(){return P(this,void 0,void 0,function(){var e,t;return V(this,function(n){switch(n.label){case 0:if(this.translationsCache)return[2,this.translationsCache];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,th(this.createLanguagesUrl(),eV.FETCH_LEGAL_BASIS)];case 2:return e=n.sent(),this.translationsCache=e.data,[2,e.data];case 3:return(t=n.sent()).statusCode&&t.statusCode===eW.RESOURCE_NOT_FOUND&&(t.errorMessage=eV.FETCH_LEGAL_BASIS),[2,null];case 4:return[2]}})})},e.prototype.mergeAbVariant=function(e){return P(this,void 0,void 0,function(){var t,n;return V(this,function(i){switch(i.label){case 0:if(t=JSON.parse(e.data.variants.experiments),"UC"===e.data.variants.activateWith)return n=Object.keys(t),this.abTestVariant=eT.fetchAbTestVariant(n),[2,ej(t[this.abTestVariant],e.data)];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,eY(function(){return!!window.UC_AB_VARIANT},"window.UC_AB_VARIANT is not defined",2e3)];case 2:return i.sent(),[3,4];case 3:return console.warn(i.sent()),[3,4];case 4:return window.UC_AB_VARIANT&&t&&t[window.UC_AB_VARIANT]?(this.abTestVariant=window.UC_AB_VARIANT,[2,ej(t[window.UC_AB_VARIANT],e.data)]):[2,e.data]}})})},e.prototype.fetchAcmVendors=function(){return P(this,void 0,void 0,function(){return V(this,function(e){switch(e.label){case 0:return[4,th(this.createAcmVendorsJsonUrl(),eV.FETCH_ACM_VENDORS)];case 1:return[2,e.sent().data]}})})},e.prototype.fetchSettingsJson=function(){return P(this,void 0,void 0,function(){var e,t;return V(this,function(n){switch(n.label){case 0:return n.trys.push([0,4,,5]),[4,th(this.createSettingsJsonUrl(),eV.FETCH_SETTINGS)];case 1:return e=n.sent(),["ccpa","firstLayer","secondLayer"].forEach(function(t){e.data[t]||(e.data[t]={})}),e.data.tcf2&&(e.data.tcf2.selectedVendorIds=(e.data.tcf2.selectedVendorIds||[]).sort(function(e,t){return e-t})),e.data.consentTemplates&&(e.data.consentTemplates=e.data.consentTemplates.reduce(function(e,t){return t.isDeactivated||e.push(t),e},[])),e.data.variants&&e.data.variants.enabled&&function(e,t){try{JSON.parse(e)}catch(n){return console.warn("Invalid JSON string from ".concat(t,': "').concat(e,'"')),!1}return!0}(e.data.variants.experiments,"A/B Testing")?[4,this.mergeAbVariant(e)]:[3,3];case 2:return[2,n.sent()];case 3:return[2,e.data];case 4:throw(t=n.sent()).statusCode&&t.statusCode===eW.RESOURCE_NOT_FOUND&&(t.errorMessage=eV.SETTINGS_NOT_FOUND),t;case 5:return[2]}})})},e.prototype.fetchUserConsents=function(){return P(this,void 0,void 0,function(){return V(this,function(e){switch(e.label){case 0:return this.getDisableServerConsents()?[3,2]:[4,th(this.createFetchUserConsentsUrl(),eV.FETCH_USER_CONSENTS)];case 1:return[2,e.sent().data.reverse()];case 2:return[2,[]]}})})},e.prototype.fetchUserConsentsV2=function(e,t){return P(this,void 0,void 0,function(){var n,i,s,r,o,a;return V(this,function(c){switch(c.label){case 0:return n=function(e){return M(M([],U(tl),!1),U(td),!1).includes(e)?"implicit":"explicit"},this.getDisableServerConsents()?[3,2]:[4,th(this.createFetchUserConsentsV2Url(),eV.FETCH_USER_CONSENTS)];case 1:return i=c.sent().data,s=null,r=null,e&&(o=JSON.parse(i.consentMeta),s={acString:i.acString||"",tcString:i.consentString,timestamp:o.timestamp,vendors:o.vendors,vendorsDisclosed:o.vendorsDisclosed}),t&&(r={ccpaString:i.consentString,timestamp:i.timestamp||Date.now()}),a=i.consents.reduce(function(e,t){return M(M([],U(e),!1),[{action:i.action,consentId:"",settingsVersion:i.settingsVersion,status:t.consentStatus,templateId:t.consentTemplateId,timestamp:i.timestamp||Date.now(),updatedBy:n(i.action)}],!1)},[]),[2,L(L({consents:a},r&&{ccpa:r}),s&&{tcf:s})];case 2:return[2,null]}})})},e.prototype.fetchUserTcfData=function(){return P(this,void 0,void 0,function(){var e,t,n;return V(this,function(i){switch(i.label){case 0:return this.getDisableServerConsents()?[3,2]:[4,th(this.createFetchUserTcfDataUrl(),eV.FETCH_USER_TCF_DATA)];case 1:return t=(e=i.sent().data).tcString,n=e.meta,[2,L({tcString:t},JSON.parse(n)||{})];case 2:return[2,null]}})})},e.prototype.fetchUserTcfDataV2=function(){return P(this,void 0,void 0,function(){var e,t,n,i;return V(this,function(s){switch(s.label){case 0:return[4,th(this.createFetchUserTcfDataV2Url(),eV.FETCH_USER_TCF_DATA)];case 1:if((e=s.sent()).data&&e.data.tcf2)return n=(t=e.data.tcf2).tcString,i=t.meta,[2,L({tcString:n},JSON.parse(i)||{})];throw Error(eV.FETCH_USER_TCF_DATA)}})})},e.prototype.fetchVendorsList=function(e,t){return P(this,void 0,void 0,function(){return V(this,function(n){return[2,fetch(e).then(function(e){return e.json()}).then(function(e){return(null==t?void 0:t.length)&&(e.purposes=Object.entries(e.purposes).reduce(function(e,n){var i,s=U(n,2),r=s[0],o=s[1];return L(L({},e),-1===t.indexOf(parseInt(r,10))&&((i={})[r]=o,i))},{}),e.vendors=Object.entries(e.vendors).reduce(function(e,n){var i,s=U(n,2),r=s[0],o=s[1];return L(L({},e),((i={})[r]=L(L({},o),{flexiblePurposes:o.flexiblePurposes.filter(function(e){return -1===t.indexOf(e)}),legIntPurposes:o.legIntPurposes.filter(function(e){return -1===t.indexOf(e)}),purposes:o.purposes.filter(function(e){return -1===t.indexOf(e)})}),i))},{})),e})]})})},e.prototype.saveTCFConsents=function(e,t,n,i,s,r){return P(this,void 0,void 0,function(){var o,a,c,u,l,d,h;return V(this,function(p){switch(p.label){case 0:return o={consent:{status:!0},id:"tcf2",name:"tcf2",processorId:"abcd",version:"1.0.0"},a=t.tcString,c=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(i=Object.getOwnPropertySymbols(e);s<i.length;s++)0>t.indexOf(i[s])&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(n[i[s]]=e[i[s]])}return n}(t,["tcString"]),u=[],r&&(l=eN(e,o,n,i),d={consentMeta:{TCF2:JSON.stringify(c)},consentString:{TCF2:a},dataTransferObjects:[l]}
1,u.push(this.saveConsentsV1_DEPRECATED(d))),s&&(h=eb({consentAction:n,consentString:{TCF2:a},dataTransferSettings:e,isAnalyticsEnabled:!0===s.isAnalyticsEnabled,isCcpa:!1,isConsentXDeviceEnabled:!0===s.isConsentAPIv2Enabled,isTcf:!0}),u.push(this.saveConsents(h))),[4,Promise.all(u)];case 1:return p.sent(),[2]}})})},e.prototype.saveConsentsV1_DEPRECATED=function(e){return P(this,void 0,void 0,function(){var t,n,i,s=this;return V(this,function(r){switch(r.label){case 0:if(this.getDisableServerConsents())return[3,4];t=tF(),n=tG(e),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,tP(function(){return tp(s.getGraphQLUri(),n,eV.SAVE_CONSENTS,t)},{onFirstFail:function(){return eT.appendToConsentsBuffer(e)},onFirstRetriedSuccess:function(){var t=eT.findBufferItem(e);t&&eT.removeConsentsBufferItem(t)}})];case 2:return r.sent(),[3,4];case 3:return(i=r.sent())instanceof Error&&console.error("".concat(eV.SAVE_CONSENTS_RETRY,": ").concat(i.message)),console.error(eV.SAVE_CONSENTS_RETRY),[3,4];case 4:return[2]}})})},e.prototype.saveConsents=function(e){return P(this,void 0,void 0,function(){var t,n,i,s;return V(this,function(r){switch(r.label){case 0:if(this.getDisableServerConsents())return[3,4];t=this.createSaveConsentsV2Url(),n=e,i=tF(),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,tP(function(){return tp(t,n,eV.SAVE_CONSENTS,i)},{onFirstFail:function(){return eT.appendToConsentsV2Buffer(e)},onFirstRetriedSuccess:function(){var t=eT.findV2BufferItem(e);t&&eT.removeConsentsV2BufferItem(t)}})];case 2:return r.sent(),[3,4];case 3:return(s=r.sent())instanceof Error&&console.error("".concat(eV.SAVE_CONSENTS_RETRY,": ").concat(s.message)),console.error(eV.SAVE_CONSENTS_RETRY),[3,4];case 4:return[2]}})})},e.prototype.sendConsents=function(e,t){return tp(this.getGraphQLUri(),e,eV.SAVE_CONSENTS,t)},e.prototype.sendConsentsV2=function(e,t){return tp(this.createSaveConsentsV2Url(),e,eV.SAVE_CONSENTS,t)},e.prototype.saveConsentsFromBuffer=function(){var e,t,n,i;return P(this,void 0,void 0,function(){var s,r,o,a,c,u=this;return V(this,function(l){switch(l.label){case 0:if(this.getDisableServerConsents()||!Array.isArray(s=eT.fetchConsentsBuffer())||!s.length)return[3,13];l.label=1;case 1:l.trys.push([1,7,8,13]),r=function(){var e,t,n,s;return V(this,function(r){switch(r.label){case 0:i=c.value,o=!1,r.label=1;case 1:r.trys.push([1,,6,7]),e=i,t=tF(),n=tG(e.consents),r.label=2;case 2:return r.trys.push([2,4,,5]),[4,tP(function(){return u.sendConsents(n,t)})];case 3:return r.sent(),eT.removeConsentsBufferItem(e),[3,5];case 4:return(s=r.sent())instanceof Error&&console.error("".concat(eV.SAVE_CONSENTS_RETRY,": ").concat(s.message)),console.error(eV.SAVE_CONSENTS_RETRY),[3,5];case 5:return[3,7];case 6:return o=!0,[7];case 7:return[2]}})},o=!0,a=k(s),l.label=2;case 2:return[4,a.next()];case 3:return(e=(c=l.sent()).done)?[3,6]:[5,r()];case 4:l.sent(),l.label=5;case 5:return[3,2];case 6:return[3,13];case 7:return t={error:l.sent()},[3,13];case 8:return l.trys.push([8,,11,12]),!o&&!e&&(n=a.return)?[4,n.call(a)]:[3,10];case 9:l.sent(),l.label=10;case 10:return[3,12];case 11:if(t)throw t.error;return[7];case 12:return[7];case 13:return[2]}})})},e.prototype.saveConsentsV2FromBuffer=function(){var e,t,n,i;return P(this,void 0,void 0,function(){var s,r,o,a,c,u=this;return V(this,function(l){switch(l.label){case 0:if(this.getDisableServerConsents()||!Array.isArray(s=eT.fetchConsentsV2Buffer())||!s.length)return[3,13];l.label=1;case 1:l.trys.push([1,7,8,13]),r=function(){var e,t,n,s;return V(this,function(r){switch(r.label){case 0:i=c.value,o=!1,r.label=1;case 1:r.trys.push([1,,6,7]),e=i,t=tF(),n=e.consents,r.label=2;case 2:return r.trys.push([2,4,,5]),[4,tP(function(){return u.sendConsentsV2(n,t)})];case 3:return r.sent(),eT.removeConsentsV2BufferItem(e),[3,5];case 4:return(s=r.sent())instanceof Error&&console.error("".concat(eV.SAVE_CONSENTS_RETRY,": ").concat(s.message)),console.error(eV.SAVE_CONSENTS_RETRY),[3,5];case 5:return[3,7];case 6:return o=!0,[7];case 7:return[2]}})},o=!0,a=k(s),l.label=2;case 2:return[4,a.next()];case 3:return(e=(c=l.sent()).done)?[3,6]:[5,r()];case 4:l.sent(),l.label=5;case 5:return[3,2];case 6:return[3,13];case 7:return t={error:l.sent()},[3,13];
1case 8:return l.trys.push([8,,11,12]),!o&&!e&&(n=a.return)?[4,n.call(a)]:[3,10];case 9:l.sent(),l.label=10;case 10:return[3,12];case 11:if(t)throw t.error;return[7];case 12:return[7];case 13:return[2]}})})},e.prototype.setTrackingPixel=function(e){var t,n="".concat(document.location.origin).concat(document.location.pathname);e.referrer?function(e){try{return new URL(e),!0}catch(e){return!1}}(e.referrer)?t=e.referrer:(console.warn(eV.CUSTOM_REFERRER_NOT_VALID),t=n):t=n;var i=(new Date).getTime(),s=encodeURIComponent(t),r="".concat(this.isEuMode()?this.API.EU_URI.TRACK_EVENT:this.API.URI.TRACK_EVENT,"?v=").concat(1,"&sid=").concat(this.settingsId,"&t=").concat(e.eventType,"&abv=").concat(e.abTestVariant,"&r=").concat(s,"&cb=").concat(i);(new Image).src=r},e.prototype.updateTagLoggerData=function(e){var t=tB({settingsId:this.settingsId,source:window.location.href,targets:e});this.saveTagLoggerData(t)},e.prototype.addJsonCacheBustingString=function(e){return this.jsonCacheBustingString?"".concat(e,"?c=").concat(this.jsonCacheBustingString):e},e.prototype.createAvailableLanguagesUrl=function(){return this.addJsonCacheBustingString("".concat(this.getCdnUri(),"/").concat(this.API.FOLDER.SETTINGS,"/").concat(this.settingsId,"/").concat(this.jsonFileVersion,"/languages.json"))},e.prototype.createLanguagesUrl=function(){return this.addJsonCacheBustingString("".concat(this.getCdnUri(),"/").concat(this.API.FOLDER.TRANSLATIONS,"/translations-").concat(this.jsonFileLanguage,".json"))},e.prototype.getSettingsUrl=function(){return"".concat(this.getCdnUri(),"/").concat(this.API.FOLDER.SETTINGS,"/").concat(this.settingsId,"/").concat(this.jsonFileVersion)},e.prototype.createSettingsJsonUrl=function(){return this.addJsonCacheBustingString("".concat(this.getSettingsUrl(),"/").concat(this.jsonFileLanguage,".json"))},e.prototype.createAcmVendorsJsonUrl=function(){return this.addJsonCacheBustingString("".concat(this.getCdnUri(),"/tcfac/acp.json"))},e.prototype.createSessionTrackingUrl=function(){return"".concat(this.isEuMode()?this.API.EU_URI.TRACK_SESSION:this.API.URI.TRACK_SESSION,"?settingsId=").concat(this.settingsId)},e.prototype.createFetchUserConsentsUrl=function(){return"".concat(this.isEuMode()?this.API.EU_URI.FETCH_CONSENTS:this.API.URI.FETCH_CONSENTS,"?controllerId=").concat(this.controllerIdInstance.value)},e.prototype.createFetchUserConsentsV2Url=function(){return"".concat(this.isEuMode()?this.API.EU_URI.FETCH_CONSENTS_V2:this.API.URI.FETCH_CONSENTS_V2,"?settingsId=").concat(this.getSettingsId(),"&controllerId=").concat(this.controllerIdInstance.value)},e.prototype.createFetchUserTcfDataUrl=function(){return"".concat(this.API.URI.FETCH_TCF_DATA,"?controllerId=").concat(this.controllerIdInstance.value)},e.prototype.createFetchUserTcfDataV2Url=function(){return"".concat(this.getTcfDataV2Uri(),"?controllerId=").concat(this.controllerIdInstance.value,"&tcf2=true&settingsId=").concat(this.settingsId)},e.prototype.createRulesetUrl=function(){return"".concat(this.API.URI.RULESET,"/").concat(this.API.FOLDER.RULESET,"/").concat(this.rulesetId,".json")},e.prototype.createSaveConsentsV2Url=function(){return"".concat(this.isEuMode()?this.API.EU_URI.SAVE_CONSENTS_V2:this.API.URI.SAVE_CONSENTS_V2,"/uw/").concat(3)},e.prototype.saveTagLoggerData=function(e){try{tp(this.getGraphQLUri(),e,"",L(L({},tF()),{keepalive:!0}))}catch(e){console.warn(eV.TAGLOGGER,e)}},e}(),tF=function(){return{credentials:"omit",headers:{Accept:"application/json","Access-Control-Allow-Origin":"*","X-Request-ID":tb()},mode:"cors"}},tG=function(e){var t=e.dataTransferObjects,n=e.consentMeta,i=e.consentString;return{query:"mutation saveConsents($consents: [NewCreateConsentInput], $consentMeta: ConsentMeta, $consentString: ConsentString)\n      {\n        saveConsents(consents: $consents, consentMeta: $consentMeta, consentString: $consentString) { data { consentId } }\n      }",variables:{consentMeta:n,consents:tx(t),consentString:i}}},tB=function(e){return{operationName:"saveTagLoggerData",query:"mutation saveTagLoggerData($settingsId: String, $source: String, $targets: [String])\n        {\n          saveTagLoggerData(settingsId: $settingsId, source: $source, targets: $targets)\n        }",variables:{settingsId:e.settingsId,source:e.source,targets:e.targets}}},tx=function(e){return e.map(function(e){return{action:e.consent.action,appVersion:e.applicationVersion,consentStatus:e.consent.status?"1":"0",consentTemplateId:e.service.id,consentTemplateVersion:e.service.version,controllerId:e.settings.controllerId,language:e.settings.language,processorId:e.service.processorId,referrerControllerId:e.settings.referrerControllerId,settingsId:e.settings.id,settingsVersion:e.settings.version,updatedBy:e.consent.type}})};!function(e){e[e.NO=0]="NO",e[e.YES=1]="YES",e[e.NOT_SET=2]="NOT_SET"}
1(tV||(tV={}));var tH,tj=function(){function e(){this.isBotEnabled=!1,this.isBot=tV.NOT_SET}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.resetInstance=function(){e.instance.isBot=tV.NOT_SET},e.prototype.isRobot=function(){if(this.isBot===tV.NOT_SET)if(this.isBotEnabled){var e=window.navigator.userAgent,t=RegExp("AdsBot-Google|AdsBot-Google-Mobile|bingbot/|BingPreview/|Chrome-Lighthouse|DuckDuckBot/|Feedfetcher-Google|Googlebot/|Google Favicon|Googlebot-Image/|Google-InspectionTool|Googlebot-Mobile/|Googlebot-News|Googlebot-Video/|Google Page Speed Insights|Google PageSpeed Insights|Google PP|Google-Read-Aloud|Google Search Console|Google-SearchByImage|Google-Speakr|Google-Structured-Data-Testing-Tool|Google Web Preview|HeadlessChrome|Lighthouse|Optimizer|Pagespeed|SISTRIX|Slurp/|Storebot-Google|YahooSeeker|YahooCacheSystem|Yahoo! Site Explorer Feed Validator|Yahoo! Slurp","i");this.isBot=t.test(e)?tV.YES:tV.NO}else this.isBot=tV.NO;return this.isBot===tV.YES},e}(),tY="UC_SDK_EVENT",tJ=["BkeKqEjuoZQ","dUzxiHb6Q","dsS7z9Hv4","l5j0HxFqd","2AMblLg3I","00xb_vkGq"],tW=["LykAT-gy","UekC8ye4S","9V8bg4D63","ByzZ5EsOsZX","S1_9Vsuj-Q","dqFgQeZH","twMyStLkn","B1Hk_zoTX","pxiRY9112","dyHOCwp5Y","DHS2sEi4b"],tK=["HkocEodjb7","87JYasXPF"],tq=function(){function e(){this.dataLayerNames=[],this.windowEventNames=[],this.dataLayer=new Map,this.blockDataLayerPush=!1,this.isUniversalEventTrackingDisabled=!1,this.isClarityEnabled=!1}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.prototype.setBlockDataLayerPush=function(e){this.blockDataLayerPush=e},e.prototype.setUetDisabled=function(e){this.isUniversalEventTrackingDisabled=e},e.prototype.enableClarity=function(e){this.isClarityEnabled=e},e.prototype.shouldBlockDataLayerPush=function(){return this.blockDataLayerPush},e.resetInstance=function(){e.instance.dataLayerNames=[],e.instance.windowEventNames=[],e.instance.dataLayer=new Map},e.prototype.init=function(e){var t=this;e.forEach(function(e){e.type===G.DATA_LAYER?t.dataLayerNames=eO(e.names,[]):e.type===G.WINDOW_EVENT&&(t.windowEventNames=eO(e.names,[]))}),this.windowEventNames.includes(tY)||this.windowEventNames.push(tY)},e.prototype.setDataLayer=function(e,t){this.dataLayer.set(t,e)},e.prototype.getDataLayer=function(){return this.dataLayer},e.prototype.dispatch=function(e,t,n,i){eA(e)&&(this.pushEventsToDataLayer(e,t,n,i),this.dispatchWindowEvents(e,i))},e.prototype.isValidDataLayer=function(e){return window[e]&&(Array.isArray(window[e])||Object.prototype.hasOwnProperty.call(window[e],"push"))},e.prototype.pushEventsToDataLayer=function(e,t,n,i){var s=this;eA(this.dataLayerNames)&&this.dataLayerNames.forEach(function(r){if(window[r]=eO(window[r],[]),!s.isValidDataLayer(r))throw Error("DataLayer: ".concat(r," is not of a valid type!"));if(function(e,t){if(!e){var n,i,s,r,o=(s=(i=t.filter(function(e){var t=e.consent,n=t.type,i=t.action;return tJ.includes(e.service.id)&&("explicit"===n||"implicit"===n&&"onNonEURegion"===i)})).length>0,r=i.every(function(e){return e.consent.status}),{adStorageStatus:s&&r?"granted":"denied",shouldUpdate:s});o.shouldUpdate&&(n=o.adStorageStatus,(window.uetq||[]).push("consent","update",{ad_storage:n}),window.dispatchEvent(new CustomEvent("UC_UET_UPDATE",{detail:{adStorage:n}})))}}(s.isUniversalEventTrackingDisabled,e),function(e,t){if(e){var n,i,s,r,o,a={adStorageStatus:o=(r=t.filter(function(e){var t=e.consent,n=t.type,i=t.action;return"jzMEq56vW"===e.service.id&&("explicit"===n||"implicit"===n&&"onNonEURegion"===i)})).length>0&&r.every(function(e){return!0===e.consent.status})?"granted":"denied",analyticsStorageStatus:o};n=a.adStorageStatus,i=a.analyticsStorageStatus,window.clarity=window.clarity||function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=window.clarity;i.q=null!=(e=i.q)?e:[],i.q.push(t)},null==(s=window.clarity)||s.call(window,"consentv2",{source:151,ad_Storage:n,analytics_Storage:i}),window.dispatchEvent(new CustomEvent("UC_CLARITY_UPDATE",{detail:{adStorage:n,analyticsStorage:i}}))}}(s.isClarityEnabled,e),n&&"dataLayer"===r){var o=!1,a=!1,c=!1,u=!1,l=!1;tz("set","developer_id.dOThhZD",!0),e.forEach(function(e){var t=e.service.id,n=e.consent,i=n.status,s=n.type,r=n.action;tK.includes(t)&&("explicit"===s||"implicit"===s&&"onNonEURegion"===r)&&(o=o||i,l=!0),tW.includes(t)&&("explicit"===s||"implicit"===s&&"onNonEURegion"===r)&&(u=!0,l=!0,i||(c=!0))}),t?a=!!t.consent:u&&!c&&(a=!0);var d={adsDataRedaction:!a};if(l){tz("consent","update",{ad_personalization:(d=L(L({},d),{adPersonalization:a?"granted":"denied",adStorage:a?"granted":"denied",adUserData:a?"granted":"denied",analyticsStorage:o?"granted":"denied"})).adPersonalization,ad_storage:d.adStorage,ad_user_data:d.adUserData,analytics_storage:d.analyticsStorage}),eT.saveGcmData(d);var h=new window.CustomEvent("UC_GCM_UPDATE",{detail:d});window.dispatchEvent(h)}tz("set","ads_data_redaction",d.adsDataRedaction)}window[r].push(tQ(e,i)),s.setDataLayer(window[r],r),s.shouldBlockDataLayerPush()||"explicit"===e[0].consent.type&&e.forEach(function(e){e.consent.status||window[r].push({event:"".concat(e.service.name," EXPLICIT_DENY")})})})},e.prototype.dispatchWindowEvents=function(e,t){if(eA(this.windowEventNames)){var n=tQ(e,t);
1this.windowEventNames.forEach(function(e){var t=new window.CustomEvent(e,{detail:n});window.dispatchEvent(t)})}},e}(),tQ=function(e,t){var n={action:null!=t?t:e[0].consent.action,event:"consent_status",type:e[0].consent.type,ucCategory:{}};return e.forEach(function(e){var t,i,s,r=(null==(i=e.service.categorySlug)?void 0:i.length)&&Object.prototype.hasOwnProperty.call(n.ucCategory,e.service.categorySlug);n=L(L({},n),((t={})[e.service.name]=e.consent.status,t)),(null==(s=e.service.categorySlug)?void 0:s.length)&&(n.ucCategory[e.service.categorySlug]=r&&n.ucCategory[e.service.categorySlug]!==e.consent.status?null:e.consent.status)}),n},tz=function(){window.dataLayer.push(arguments)},tX="https://api.usercentrics.eu/tcf2/",t$="https://api.usercentrics.eu/gvl/v3/",tZ="https://config.eu.usercentrics.eu/tcf2/",t0="https://config.eu.usercentrics.eu/gvl/v3/",t1="[LANG].json",t2="[LANG].json",t3="en-v2.json",t4="en.json";!function(e){e.TEXT_JAVASCRIPT="text/javascript",e.TEXT_PLAIN="text/plain"}(tH||(tH={}));var t6,t5="data-usercentrics",t7=function(){function e(){}return e.enableScriptsForServicesWithConsent=function(t){var n=e.getDisabledScripts();Array.prototype.forEach.call(n,function(n){e.disabledScriptHasConsent(t,n)&&e.enableScript(n)})},e.getDisabledScripts=function(){return document.querySelectorAll("script[".concat(t5,'][type="').concat(tH.TEXT_PLAIN,'"]'))},e.disabledScriptHasConsent=function(e,t){return e.some(function(e){return e.name===t.getAttribute(t5)})},e.enableScript=function(t){var n,i=t.src?e.createSrcScriptTag(t):e.createInlineScriptTag(t);(n=t.parentNode)&&n.replaceChild(i,t)},e.createSrcScriptTag=function(t){var n=e.cloneScriptTag(t);return n.removeAttribute(t5),n.type=tH.TEXT_JAVASCRIPT,n},e.createInlineScriptTag=function(t){var n=e.cloneScriptTag(t);n.removeAttribute(t5);var i=document.createTextNode(t.text);return n.appendChild(i),n.type=tH.TEXT_JAVASCRIPT,n},e.cloneScriptTag=function(e){var t=document.createElement("script");return Array.from(e.attributes).forEach(function(e){t.setAttribute(e.name,e.value)}),t},e}(),t8=function(e,t,n){var i,s;this.anyDomain=e.anyDomain||"any domain (ex. first party cookie)",this.cookieRefresh=(null==t?void 0:t.COOKIE_REFRESH)||(null==(i=null==n?void 0:n.labels)?void 0:i.COOKIE_REFRESH)||"Cookie Refresh",this.cookieStorage=(null==t?void 0:t.COOKIE_STORAGE)||(null==(s=null==n?void 0:n.labels)?void 0:s.COOKIE_STORAGE)||"Cookie Storage",this.day=e.day,this.days=e.days,this.description=e.storageInformationDescription||"Below you can see the longest potential duration for storage on a device, as set when using the cookie method of storage and if there are any other methods used.",this.domain=e.domain||"Domain",this.duration=e.duration||"Duration",this.error=e.informationLoadingNotPossible||"Sorry; we could not load the required information.",this.hour=e.hour,this.hours=e.hours,this.identifier=e.identifier||"Identifier",this.loading=e.loadingStorageInformation||"Loading storage information",this.maximumAge=e.maximumAgeCookieStorage||"Maximum age of cookie storage",this.minute=e.minute,this.minutes=e.minutes,this.month=e.month,this.months=e.months,this.multipleDomains=e.multipleDomains||"multiple subdomains may exist",this.name=e.name||"Name",this.no=e.no||"no",this.nonCookieStorage=e.nonCookieStorage||"Non-cookie storage",this.purposes=e.purposes||"Purposes",this.second=e.second||"second",this.seconds=e.seconds||"seconds",this.session=e.session||"Session",this.storedInformation=e.storedInformation||"Stored Information",this.storedInformationDescription=e.storedInformationDescription||"This service uses different means of storing information on a user’s device as listed below.",this.title=e.storageInformation||"Storage Information",this.titleDetailed=e.detailedStorageInformation||"Detailed Storage Information",this.tryAgain=e.tryAgain||"Try again?",this.type=e.type||"Type",this.year=e.year,this.years=e.years,this.yes=e.yes||"yes"},t9=function(e,t){var n=e.defaultConsentStatus;return{history:[],status:!!(null==t?void 0:t.isEssential)||n}},ne=function(e,t){var n=e.legalBasisList,i=e.legalGround;return t.length>0?t:eA(n)?n:[i]},nt=function(e,t){return(null==e?void 0:e.description)||(null==t?void 0:t.descriptionOfService)||(null==t?void 0:t.description)||""},nn=function(e,t,n){var i,s=null==n?void 0:n.find(function(t){return e.templateId===t.templateId&&e.version===t.version}),r=(null==t?void 0:t.legalBasis)&&e.legalBasisList?e.legalBasisList.reduce(function(e,n){return(null==t?void 0:t.legalBasis[n])?M(M([],U(e),!1),[null==t?void 0:t.legalBasis[n]],!1):e},[]):[];this.description=nt(e,s),this.id=e.templateId,this.legalBasis=s&&!e.disableLegalBasis?ne(s,r):[],this.name=(null==(i=e._meta)?void 0:i.name)||(null==s?void 0:s.dataProcessor)||(null==s?void 0:s.dataProcessors[0])||""},ni=function(e){function t(t,n,i,s){var r,o,a,c,u,l,d,h,p,g=this;
1g=e.call(this)||this;var f=t.labels;if(g.ariaLabels=L(L({},(null==i?void 0:i.labelsAria)||eK),{closeButton:f.btnClose}),g.categories=n.categories.map(function(e){return{description:e.description,label:e.label,slug:e.categorySlug}}),g.cookieInformation=new t8(f,null,i),g.general={back:(null==(r=null==i?void 0:i.labels)?void 0:r.BACK)||"Back",consentGiven:f.accepted,consentNotGiven:f.denied,consentType:f.consentType,controllerId:(null==(o=null==i?void 0:i.labels)?void 0:o.CID_TITLE)||"Controller ID",copied:f.copied,copy:f.copy,date:f.date,decision:f.decision,details:(null==(a=null==i?void 0:i.labels)?void 0:a.DETAILS)||"Details",explicit:f.explicit,gpcSignalHonored:(null==(c=null==i?void 0:i.labels)?void 0:c.GPC_SIGNAL_HONORED)||f.gpcSignalHonored||"The GPC signal is honored",implicit:f.implicit,implicitNo:f.noImplicit,implicitYes:f.yesImplicit,languageChange:(null==(u=null==i?void 0:i.labels)?void 0:u.LANGUAGE_CHANGE)||"Selecting an option will immediately change the language",privacyButton:f.btnChipName,showLess:f.readLess,showMore:f.btnBannerReadMore||f.showMore,subservice:(null==(l=null==i?void 0:i.labels)?void 0:l.SUB_SERVICE)||"Subservice",subservices:(null==(d=null==i?void 0:i.labels)?void 0:d.SUB_SERVICES)||"Subservices",subservicesDescription:(null==(h=null==i?void 0:i.labels)?void 0:h.SUB_SERVICES_DESCRIPTION)||"Below you can find all the services that are subordinate to this service. The current consent status of this service applies to all subservices.",webDutchAuthText:null==(p=null==i?void 0:i.labels)?void 0:p.WEB_DUTCH_AUTH_TEXT},g.links={cookiePolicy:{ariaLabel:eK.cookiePolicyButton,label:eO(f.cookiePolicyLinkText,""),url:t.cookiePolicyUrl},imprint:{ariaLabel:eK.imprintButton,label:f.imprintLinkText||null,url:t.imprintUrl},privacyPolicy:{ariaLabel:eK.privacyPolicyButton,label:f.privacyPolicyLinkText,url:t.privacyPolicyUrl}},t.integrations&&t.integrations.mine){var S={mine:{ariaLabel:"",label:t.integrations.mine[0].privacyCenterLabel,url:t.integrations.mine[0].privacyCenterUrl}};g.integrationLinks=L(L({},g.integrationLinks),S)}return g.poweredBy={label:"Powered by",partnerUrlLabel:eO(f.partnerPoweredByLinkText,null),urlLabel:"Usercentrics Consent Management"},g.service={dataCollected:{description:f.dataCollectedInfo,title:f.dataCollectedList},dataDistribution:{processingLocationDescription:f.locationofProcessingInfo,processingLocationTitle:f.locationOfProcessing,thirdPartyCountriesDescription:f.transferToThirdCountriesInfo,thirdPartyCountriesTitle:f.transferToThirdCountries},dataProtectionOfficer:{description:f.dataProtectionOfficerInfo,title:f.dataProtectionOfficer},dataPurposes:{description:f.dataPurposesInfo,title:f.dataPurposes},dataRecipients:{description:f.dataRecipientsListInfo,title:f.dataRecipientsList},descriptionTitle:f.descriptionOfService,history:{description:null,title:f.history},legalBasis:{description:f.legalBasisInfo,title:f.legalBasisList},processingCompanyTitle:f.processingCompany,retentionPeriod:{description:f.retentionPeriodInfo,title:f.retentionPeriod},technologiesUsed:{description:f.technologiesUsedInfo,title:f.technologiesUsed},urls:{cookiePolicyTitle:f.cookiePolicyInfo,optOutTitle:f.optOut,privacyPolicyTitle:f.policyOf}},g.services=n.consentTemplates.reduce(function(e,t){var n=new nn(t,i,s);return M(M([],U(e),!1),[n],!1)},[]),g}return b(t,e),t}(function(){this.ariaLabels=eK}),ns=function(e){function t(t,n,i,s){var r=e.call(this,t,n,i,s)||this;return r.buttons={optOutNotice:t.ccpa.optOutNoticeLabel||"Do not sell my personal information",save:t.ccpa.btnSave||"okay",showSecondLayer:t.ccpa.btnMoreInfo||t.labels.btnMore},r.firstLayer={description:{default:t.ccpa.firstLayerDescription||"",short:t.ccpa.firstLayerMobileDescription||"",shortDesktop:t.ccpa.firstLayerShortMessage||"",shortMobile:t.ccpa.firstLayerMobileDescription||""},title:t.ccpa.firstLayerTitle||""},r.secondLayer={categoryTab:t.secondLayer.tabsCategoriesLabel,description:t.ccpa.secondLayerDescription||"",serviceTab:t.secondLayer.tabsServicesLabel,title:t.ccpa.secondLayerTitle||""},r}return b(t,e),t}(ni),nr=function(e,t){var n,i,s;this.acceptAllImplicitlyOutsideEU=e.displayOnlyForEU,this.consentAnalytics=eO(e.consentAnalytics,!1),this.consentAPIv2=eO(e.consentAPIv2,!1),this.consentXDevice=eO(e.consentXDevice,!1),this.consentSharingIFrameIsActive=e.consentSharingIFrameIsActive,this.dataExchangeSettings=e.dataExchangeOnPage.reduce(function(e,t){return t.type===ek.DATA_LAYER?e.push({names:t.names,type:G.DATA_LAYER}):t.type===ek.WINDOW_EVENT&&e.push({names:t.names,type:G.WINDOW_EVENT}),e},[]),this.googleConsentMode=e.googleConsentMode,this.id=e.settingsId,this.isCcpaEnabled=e.framework?["CCPA","UCPA","CTDPA","VCDPA","CPRA","CPA","MSPL"].includes(e.framework):null!=(i=null==(n=e.ccpa)?void 0:n.isActive)&&i,this.isEmbeddingsEnabled=!0,this.isTagLoggerActive=e.tagLoggerIsActive,this.isTcfEnabled=e.framework?["TCF2","UK_TCF2"].includes(e.framework):null!=(s=e.tcf2Enabled)&&s,this.language={available:e.languagesAvailable,selected:t},this.reshowBanner=eO(e.reshowBanner,-1),this.renewConsentsTimestamp=eO(e.renewConsentsTimestamp,null),this.show
1FirstLayerOnVersionChange=e.showInitialViewForVersionChange.map(function(e){switch(e){case eG.MAJOR:return B.MAJOR;case eG.MINOR:return B.MINOR;case eG.PATCH:default:return B.PATCH}}),this.version=e.version},no=function(e){function t(t,n,i,s){var r,o,a,c,u,l,d,h,p,g,f=this;(f=e.call(this,t,n,i,s)||this).buttons={acceptAll:t.labels.btnAcceptAll,cnilDeny:(null==(r=null==i?void 0:i.labels)?void 0:r.CNIL_DENY_LINK_TEXT)||"Continuer sans accepter",denyAll:t.labels.btnDeny,save:t.labels.btnSave,showSecondLayer:t.labels.btnMore};var S=(null==(o=null==i?void 0:i.labels)?void 0:o.WEB_DUTCH_AUTH_TEXT)||"",v=(null==(a=t.gdpr)?void 0:a.addVendorCount)||!1,E=S&&v?"<br />".concat(S):"";return f.firstLayer={description:{default:"".concat(null!=(c=t.bannerMessage)?c:"").concat(E)||"",short:"".concat(null!=(u=t.bannerMobileDescription)?u:"").concat(E)||"",shortDesktop:"".concat(null!=(l=t.firstLayer.shortMessage)?l:"").concat(E)||"",shortMobile:"".concat(null!=(d=t.bannerMobileDescription)?d:"").concat(E)||""},title:eO(t.labels.firstLayerTitle,"Privacy Settings")},f.secondLayer={acceptButtonLabel:t.secondLayer.acceptButtonText,categoryTab:t.secondLayer.tabsCategoriesLabel,dataTransferFilter:{all:(null==(h=null==i?void 0:i.labels)?void 0:h.ALL)||"All",thirdCountry:(null==(p=null==i?void 0:i.labels)?void 0:p.THIRD_COUNTRY_TRANSFER)||"Data Transfer to Third Countries"},denyButtonLabel:t.secondLayer.denyButtonText,description:(null==(g=t.gdpr)?void 0:g.secondLayerDescription)||t.labels.titleCorner,serviceTab:t.secondLayer.tabsServicesLabel,title:t.labels.headerCorner},f}return b(t,e),t}(ni),na=function(e,t,n){var i;this.privacyButton=eO(null==n?void 0:n.labelsAria.privacyButton,""),this.services=e.consentTemplates.reduce(function(e,i){var s=new nn(i,n,t);return M(M([],U(e),!1),[s],!1)},[]),this.gpcSignalHonored=(null==(i=null==n?void 0:n.labels)?void 0:i.GPC_SIGNAL_HONORED)||"The GPC signal is honored"},nc=function(){function e(){this.needsSessionRestore=!1,this.apiInstance=tk.getInstance(),this.locationInstance=tw.getInstance()}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.resetInstance=function(){delete e.instance.noShow},e.prototype.unsetNoShow=function(){delete this.noShow},e.prototype.getIsUsingNoShow=function(){return void 0!==this.noShow},e.prototype.getNoShow=function(){return!0===this.noShow},e.prototype.setNoShow=function(e){this.noShow=e},e.prototype.resolveSettingsId=function(){return P(this,void 0,void 0,function(){var e,t,n,i,s,r,o,a;return V(this,function(c){switch(c.label){case 0:return[4,this.apiInstance.fetchRuleset()];case 1:return e=c.sent(),n="",i=e.location,s=e.rules,o=(r=e.defaultRule).settingsId,a=r.noShow,i&&i.code&&(t=i.regionCode&&s.find(function(e){var t;return null==(t=e.locations)?void 0:t.includes(i.regionCode)})||s.find(function(e){var t;return null==(t=e.locations)?void 0:t.includes(i.code)}),this.locationInstance.setUserCountryData(i),eT.setUserCountryResponse(tw.mapUserCountryData(i))),this.unsetNoShow(),t?(n=t.settingsId,void 0!==t.noShow&&this.setNoShow(!0===t.noShow)):(n=o,this.setNoShow(!0===a)),[2,{name:"Resolved Settings Id",noShow:this.getNoShow(),settingsId:n}]}})})},e}(),nu=function(e){this.cookieMaxAgeSeconds=null,this.cookieRefresh=null,this.dataCollected=[],this.dataDistribution=null,this.dataProtectionOfficer=null,this.dataPurposes=[],this.dataRecipients=[],this.deviceStorage=null,this.deviceStorageDisclosureUrl=null,this.language=null,this.processingCompany=null,this.retentionPeriodDescription=null,this.technologiesUsed=[],this.urls=null,this.usesCookies=null,this.usesNonCookieAccess=null,this.cookieMaxAgeSeconds=eO(null==e?void 0:e.cookieMaxAgeSeconds,null),this.cookieRefresh=eO(null==e?void 0:e.cookieRefresh,null),this.dataCollected=e?nl(e,eF.DATA_COLLECTED_LIST):[],this.dataDistribution=e?nh(e):null,this.dataProtectionOfficer=eO(null==e?void 0:e.dataProtectionOfficer,null),this.dataPurposes=e?nd(e):[],this.dataRecipients=e?nl(e,eF.DATA_RECIPIENTS_LIST):[],this.description=nt(null,e),this.deviceStorage=eO(null==e?void 0:e.deviceStorage,null),this.deviceStorageDisclosureUrl=eO(null==e?void 0:e.deviceStorageDisclosureUrl,null),this.language=e?np(e):null,this.processingCompany=e?ng(e):null,this.retentionPeriodDescription=e?nf(e):null,this.technologiesUsed=e?nl(e,eF.TECHNOLOGY_USED):[],this.usesCookies=eO(null==e?void 0:e.usesCookies,null),this.usesNonCookieAccess=eO(null==e?void 0:e.usesNonCookieAccess,null),this.urls=e?nS(e):null},nl=function(e,t){var n;return eA(e[t])?e[t]:(null==(n=e[t])?void 0:n.length)>0?[e[t]]:[]},nd=function(e){var t=nl(e,eF.DATA_PURPOSES_LIST);return eA(t)?t:e.dataPurposes},nh=function(e){return{processingLocation:e.locationOfProcessing,thirdPartyCountries:e.thirdCountryTransfer?e.thirdCountryTransfer.split(","):[]}},np=function(e){return{available:e.languagesAvailable,selected:e.language}},ng=function(e){return{address:e.addressOfProcessingCompany,dataProtectionOfficer:e.dataProtectionOfficer,name:e.nameOfProcessingCompany||e.processingCompany}},nf=function(e){var t;return e.retentionPeriodDescription||(null==(t=e.retentionPeriodList)?void 0:t[0])||""},nS=function(e){return{cookiePolicy:e.cookiePolicyURL,dataProcessingAgreement:e.linkToDpa,optOut:e.optOutUrl,privacyPolicy:e.privacyPolicyURL||e.policyOfProcessorUrl}},nv=function(e){function t(t,n,i,s,r){var o,a,c,u,l,d=this;d=e.call(this,t,n,s,r)||this;var h=t.labels,p=t.tcf2;return d.cookieInformation.purposes=p.labelsPurposes,d.buttons={acceptAll:p.buttonsAcceptAllLabel,denyAll:p.buttonsDenyAllLabel,manageSettings:p.linksManageSettingsLabel,save:p.buttonsSaveLabel,showVendorTab:p.linksVendorListLinkLabel},d.firstLayer={description:{additionalInfo:p.firstLayerAdditionalInfo||null,dataSharedOutsideEUText:p.showDataSharedOutsideEUText&&p.dataSharedOutsideEUText?p.dataSharedOutsideEUText:null,default:p.firstLayerDescription.replace("%VENDOR_COUNT%",i.toString()),resurfaceNote:p.firstLayerNoteResurface||null},disclaimer:{serviceScope:p.firstLayerNoteService},title:p.firstLayerTitle},d.secondLayer={dataSharedOutsideEU:{text:(null==(o=null==s?void 0:s.labels)?void 0:o.VENDORS_OUTSIDE_EU)||null,title:h.transferToThirdCountries},dataTransferFilter:{all:(null==(a=null==s?void 0:s.labels)?void 0:a.ALL)||"All",thirdCountry:(null==(c=null==s?void 0:s.labels)?void 0:c.THIRD_COUNTRY_TRANSFER)||"Data Transfer to Third Countries"},description:p.secondLayerDescription,maxStorageDurationText:((null==(u=null==s?void 0:s.labels)?void 0:u.WEB_TCF_MAX_STORAGE_DURATION_TEXT)||"The choices you make regarding the purposes and entities listed are saved in the local storage %TC_STRING_LOCATION%, for a maximum of 13 months. After 13 months, the CMP will prompt again.").replace("%TC_
1STRING_LOCATION%","uc_tcf"),maxStorageDurationTitle:(null==(l=null==s?void 0:s.labels)?void 0:l.WEB_TCF_MAX_STORAGE_DURATION_TITLE)||"CMP Storage and Access",purposesTab:p.tabsPurposeLabel,title:p.secondLayerTitle,vendorsTab:p.tabsVendorsLabel},d.titles={acmVendors:p.atpListTitle,examples:p.examplesLabel||"Examples",features:p.labelsFeatures,iabVendors:p.labelsIabVendors,nonIabPurposes:p.labelsNonIabPurposes,nonIabVendors:p.labelsNonIabVendors,purposes:p.labelsPurposes},d.toggles={consent:t.tcf2.togglesConsentToggleLabel,legitimateInterest:t.tcf2.togglesLegIntToggleLabel,specialFeaturesToggle:{offLabel:t.tcf2.togglesSpecialFeaturesToggleOff,onLabel:t.tcf2.togglesSpecialFeaturesToggleOn}},d.vendor={dataCategories:p.categoriesOfDataLabel,dataRetention:p.dataRetentionPeriodLabel,dataRetentionUnit:h.days,features:p.vendorFeatures,legitimateInterest:p.vendorLegitimateInterestPurposes,legitimateInterestClaim:p.legitimateInterestLabel,privacyPolicy:h.privacyPolicyLinkText,purposes:p.vendorPurpose,specialFeatures:p.vendorSpecialFeatures,specialPurposes:p.vendorSpecialPurposes,toggleAll:p.labelsActivateAllVendors},d.acmVendor={privacyPolicy:p.atpAdditionalInfo},d}return b(t,e),t}(ni),nE=function(){function e(){this.aggregatedServices=[],this.allLegacyServicesHaveName=!1,this.isVariantLoaded=!1,this.isAggregatorLoaded=!1,this.language="",this.translations=null,this.botInstance=tj.getInstance(),this.locationInstance=tw.getInstance(),this.rulesetInstance=nc.getInstance(),this.apiInstance=tk.getInstance(),this._core=null,this._coreJson=null,this._data=null,this._dpsJson=null,this._labels=null,this._legacySettings=null,this._ui=null,this.controllerIdInstance=tD.getInstance(),this.acceptAllImplicitlyOnInit=null,this.denyAllExplicitlyOnInit=null}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.resetInstance=function(){e.instance.allLegacyServicesHaveName=!1,e.instance.core=null,e.instance.data=null,e.instance.labels=null,e.instance.legacySettings=null,e.instance.ui=null,e.instance.dpsJson=null,e.instance.coreJson=null},Object.defineProperty(e.prototype,"core",{get:function(){return this._core},set:function(e){this._core=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"coreJson",{get:function(){return this._coreJson},set:function(e){this._coreJson=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dpsJson",{get:function(){return this._dpsJson},set:function(e){this._dpsJson=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labels",{get:function(){return this._labels},set:function(e){this._labels=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"legacySettings",{get:function(){return this._legacySettings},set:function(e){this._legacySettings=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ui",{get:function(){return this._ui},set:function(e){this._ui=e},enumerable:!1,configurable:!0}),e.prototype.init=function(e,t,n){return P(this,void 0,void 0,function(){return V(this,function(i){return this.language=n,this.core=new nr(e,n),this.coreJson=e,this.dpsJson=t,this.isAggregatorLoaded=!1,this.allLegacyServicesHaveName=this.checkIfServiceNameExists(t.consentTemplates),this.isAggregatorLoaded=!1,[2]})})},e.prototype.initData=function(e,t,i,s,r,o,a){return void 0===t&&(t=[]),void 0===i&&(i=!0),void 0===s&&(s=!1),void 0===r&&(r=[]),void 0===o&&(o=!1),void 0===a&&(a=!1),P(this,void 0,void 0,function(){var c,u,l,d,h,p,g=this;return V(this,function(f){switch(f.label){case 0:if(u=(c=this).coreJson,l=c.dpsJson,d=c.legacySettings,!u||!l)return[2];switch(h=this.controllerIdInstance.value,p=(null==t?void 0:t.length)?t:this.aggregatedServices,e){case 0:return[3,1];case 2:return[3,3];case 1:return[3,5]}return[3,7];case 1:return[4,n.e(2914).then(n.bind(n,32914)).then(function(e){g.data=new(0,e.default)(u,l,h,o)})];case 2:case 4:case 6:return f.sent(),[3,8];case 3:return d?[4,n.e(6699).then(n.bind(n,26699)).then(function(e){var t=e.default;return P(g,void 0,void 0,function(){var e,n;return V(this,function(o){switch(o.label){case 0:return(e=this.getDataTransferSettings())&&u.tcf2?(n=new t(d,u.tcf2,l,e,h,this.language,r,a),this.data=n,i?[4,n.init(s)]:[3,2]):[3,2];case 1:o.sent(),o.label=2;case 2:return[2]}})})})]:[2];case 5:return[4,n.e(5973).then(n.bind(n,45973)).then(function(e){g.data=new(0,e.default)(l,h,p)})];case 7:console.error("Usercentrics: Unknown variant"),f.label=8;case 8:return this.isVariantLoaded=!0,[2]}})})},e.prototype.checkIfServiceNameExists=function(e){return e.every(function(e){var t;return null!=(null==(t=e._meta)?void 0:t.name)})},e.prototype.initLabels=function(e,t,n){var i=this.coreJson,s=this.dpsJson,r=this.legacySettings,o=(null==n?void 0:n.length)?n:this.aggregatedServices;if(s&&this.core)if(r)switch(e){case 0:var a=new ns(r,s,t,o);this.labels=a;break;case 1:var c=new no(r,s,t,o);this.labels=c;break;case 2:var u=new nv(r,s,this.getThirdPartyCount(),t,o);this.labels=u;break;default:console.error("Usercentrics: Unknown variant")}else{var l=new na(s,o,t),d=i?{label:"Powered by",partnerUrlLabel:eO(i.labels.partnerPoweredByLinkText,null),urlLabel:"Usercentrics Consent Management"}:void 0;this.labels=L(L({},l),{poweredBy:d})}else console.error("Usercentrics: You have to call the init method before!")},e.prototype.initUI=function(e,t){return P(this,void 0,void 0,function(){var i,s,r,o=this;return V(this,function(a){switch(a.label){case 0:return s=(i=this).coreJson,r=i.legacySettings,s?2!==e?[3,2]:[4,n.e(6286).then(n.bind(n,36286)).then(function(e){var t,n=e.default,i=eP.CAT,a=!1;r&&(i=r.secondLayer.defaultView,a=r.secondLayer.hideDataProcessingServices);var c=new n(s,{defaultView:i,hideDataProcessingServices:a}),u=s.enablePoweredBy?{partnerUrl:s.partnerPoweredByUrl||null,url:"https://www.usercentrics.com/consent-management-platform-powered-by-usercentrics/"}:null;o.ui=L(L({},c),{customCss:(null==(t=null==r?void 0:r.features)?void 0:t.customCss)&&r.useUnsafeCustomCss&&null!=r.stylesCss?r.stylesCss:null,poweredBy:u})})]:[2];case 1:return a.sent(),[2];case 2:if(!r)return[2];switch(t){case 0:return[3,3];case 1:return[3,5];case 2:return[3,7]}return[3,9];case 3:return[4,n.e(5546).then(n.bind(n,5546)).then(function(e){o.ui=new(0,e.default)(s,r)})];case 4:case 6:case 8:return a.sent(),[3,10];case 5:return[4,n.e(8121).then(n.bind(n,68121)).then(function(e){o.ui=new(0,e.default)(s,r)})];case 7:return[4,n.e(3418).then(n.bind(n,23418)).then(function(e){o.ui=new(0,e.default)(s,r)})];case 9:console.error("Usercentrics: Unknown variant"),a.label=10;case 10:return[2]}})})},e.prototype.getCcpaData=function(){return e4(this.data)?this.data:null},e.prototype.getDefaultData=function(){return e5(this.data)?this.data:null},e.prototype.getTcfData=function(){return e6(this.data)?this.data:null},e.prototype.getCcpaLabels=function(){return e7(this.labels)?this.labels:null},e.prototype.getDefaultLabels=function(){return e9(this.labels)?this.labels:null},e.prototype.getTcfLabels=function(){return e8(this.labels)?this.labels:null},e.prototype.getCcpaUI=function(){return tn(this.ui)?this.ui:null},e.prototype.getDefaultUI=function(){return ts(this.ui)?this.ui:null},e.prototype.getTcfUI=function(){return ti(this.ui)?this.ui:null},e.prototype.getDataExchangeSettings=function(){return this.core?this.core.dataExchangeSettings:[]},e.prototype.getCategoriesData=function(){return this.data?this.data.categories:[]},e.prototype.getCategoriesBaseData=function(){var e=this;return this.data?this.data.categories.map(function(t){return{isEssential:t.isEssential,isHidden:t.isHidden,services:e.getServicesBaseInfo().filter(function(e){return e.categorySlug===t.slug}),slug:t.slug}}):[]},e.prototype.getCategoriesLabels=function(){return this.labels&&tt(this.labels)?this.labels.categories:[]},e.prototype.getCategoriesDataAndLabels=function(){var e,t,n;return e=this.getCategoriesData(),t=this.getCategoriesLabels(),n=this.getServicesLabels(),e.reduce(function(e,i){var s=t.find(function(e){return e.slug===i.slug}),r=e2(i.services,n);return s&&e.push(L(L(L({},s),i),{services:r})),e},[])},e.prototype.getCategoriesBasic=function(){var e=this.getCategoriesData(),t=this.getServicesLabels();return e.reduce(function(e,n){var i;return M(M([],U(e),!1),[L(L({},n),{services:(i=n.services,i.reduce(function(e,n){var i=t.find(function(e){return e.id===n.id});return i?M(M([],U(e),!1),[{categorySlug:n.categorySlug,consent:n.consent,id:n.id,language:n.language,name:i.name,processorId:n.processorId,version:n.version}],!1):M([],U(e),!1)},[]))})],!1)},[])},e.prototype.getCategoriesBaseInfo=function(){return this.getCategoriesDataAndLabels()},e.prototype.getCategoriesFullInfo=function(e,t){return P(this,void 0,void 0,function(){return V(this,function(n){switch(n.label){case 0:return this.isAggregatorLoaded?[3,2]:[4,this.extendServices(e,t)];case 1:n.sent(),n.label=2;case 2:return[2,this.getCategoriesDataAndLabels()]}})})},e.prototype.getDataTransferSettings=function(e){return this.core?{controllerId:this.controllerIdInstance.value,id:this.core.id,selectedLanguage:this.core.language.selected,version:e||this.core.version}:null},e.prototype.getEssentialCategories=function(){return this.getCategoriesLabels().length?this.getCategoriesDataAndLabels().reduce(function(e,t){return t.isEssential?M(M([],U(e),!1),[t],!1):e},[]):this.getCategoriesBasic().filter(function(e){return e.isEssential})},e.prototype.getEssentialCategoriesData=function(){return this.getCategoriesData().reduce(function(e,t){return t.isEssential?M(M([],U(e),!1),[t],!1):e},[])},e.prototype.getNonEssentialCategories=function(){return this.getCategoriesLabels().length?this.getCategoriesDataAndLabels().reduce(function(e,t){return t.isEssential?e:M(M([],U(e),!1),[t],!1)},[]):this.getCategoriesBasic().filter(function(e){return!e.isEssential})},e.prototype.getNonEssentialCategoriesData=function(){return this.getCategoriesData().reduce(function(e,t){return t.isEssential?e:M(M([],U(e),!1),[t],!1)},[])},e.prototype.getGoogleConsentMode=function(){return!!this.core&&this.core.googleConsentMode},e.prototype.getServicesLabels=function(){return this.labels?this.labels.services:[]},e.prototype.getServicesData=function(){return this.getCategoriesData().reduce(function(e,t){return M(M([],U(e),!1),U(t.services),!1)},[])},e.prototype.getServicesDataAndLabels=function(){return e2(this.getServicesData(),this.get
1ServicesLabels())},e.prototype.getServicesBaseInfo=function(){var e,t=this.mapBaseServices(this.getServicesData());return e=this.getServicesLabels(),t.reduce(function(t,n){var i=e.find(function(e){return e.id===n.id});return M(M([],U(t),!1),[L(L(L({},n),i||e1),{id:n.id})],!1)},[])},e.prototype.getServicesFullInfo=function(e,t){return P(this,void 0,void 0,function(){return V(this,function(n){switch(n.label){case 0:return this.isAggregatorLoaded?[3,2]:[4,this.extendServices(e,t)];case 1:n.sent(),n.label=2;case 2:return[2,this.getServicesDataAndLabels()]}})})},e.prototype.getServicesFromCategories=function(e){return e.reduce(function(e,t){return e.concat(t.services)},[])},e.prototype.getServicesWithConsent=function(){return this.getServicesDataAndLabels().reduce(function(e,t){return t.consent.status?M(M([],U(e),!1),[t],!1):e},[])},e.prototype.areAllServicesAccepted=function(){return this.getServicesData().every(function(e){return e.consent.status})},e.prototype.areAllVendorsAndPurposesAccepted=function(){var e=this.getTcfData();return!!e&&e.areAllPurposesAccepted()&&e.areAllVendorsAccepted()},e.prototype.extendServices=function(e,t){return P(this,void 0,void 0,function(){var n,i;return V(this,function(s){switch(s.label){case 0:return(n=this.dpsJson)?(this.isAggregatorLoaded=!0,[4,this.fetchServices(n)]):[2];case 1:return(i=s.sent())&&0!==i.length&&(this.aggregatedServices=i,this.initLabels(e,t,i),this.data&&(this.data.categories=this.data.categories.map(function(e){var t=n.categories.find(function(t){return t.categorySlug===e.slug});return L(L({},e),{services:e.services.map(function(e){if(n.consentTemplates.find(function(t){return t.templateId===e.id})&&t){var s=new nu(null==i?void 0:i.find(function(t){return e.id===t.templateId&&e.version===t.version}));return L(L({},e),s)}return e})})}))),[2]}})})},e.prototype.isCcpaEnabled=function(){var e;return(null==(e=this.core)?void 0:e.isCcpaEnabled)||!1},e.prototype.isCcpaAvailable=function(){var e;if(this.isCcpaEnabled()&&null!=(null==(e=this.coreJson)?void 0:e.ccpa))switch(this.coreJson.ccpa.region){case eU.US:return this.locationInstance.getIsUserInUS();case eU.US_CA_ONLY:return this.locationInstance.getIsUserInCalifornia();default:return Promise.resolve(!0)}return Promise.resolve(!1)},e.prototype.isCrossDomainEnabled=function(){var e;return(null==(e=this.core)?void 0:e.consentSharingIFrameIsActive)||!1},e.prototype.isTcfEnabled=function(){var e;return(null==(e=this.core)?void 0:e.isTcfEnabled)||!1},e.prototype.isTcfAvailable=function(){var e;return this.isTcfEnabled()&&null!=(null==(e=this.coreJson)?void 0:e.tcf2)},e.prototype.isTagLoggerActive=function(){var e;return(null==(e=this.core)?void 0:e.isTagLoggerActive)||!1},e.prototype.mergeServicesIntoExistingCategories=function(e){return this.getCategoriesDataAndLabels().map(function(t){return L(L({},t),{services:t.services.map(function(t){return e.find(function(e){return e.id===t.id})||t})})})},e.prototype.mergeServicesDataIntoExistingCategories=function(e){return this.getCategoriesData().map(function(t){return L(L({},t),{services:t.services.map(function(t){return e.find(function(e){return e.id===t.id})||t})})})},e.prototype.setCategories=function(e){this.data&&(this.data.categories=e)},e.prototype.setControllerId=function(e){this.data&&(this.data.controllerId=e),e6(this.data)&&this.data.updateControllerId(e)},e.prototype.updateServicesLanguage=function(e){this.data&&this.data.categories.map(function(t){return L(L({},t),{services:t.services.map(function(t){return L(L({},t),{language:L(L({},t.language),{selected:e})})})})})},e.prototype.shouldDenyAllOnInitFromGpc=function(){var e,t;return P(this,void 0,void 0,function(){var n,i,s,r;return V(this,function(o){switch(o.label){case 0:return n=eT.fetchUserActionPerformed(),i=eT.fetchActionTypePerformed(),n&&"gpc"===i?[2,!1]:[4,this.isCcpaAvailable()];case 1:return(s=o.sent()&&!(null==(e=this.getCcpaData())?void 0:e.isExplicitConsented)&&!0===navigator.globalPrivacyControl)?[3,4]:(r=!0===navigator.globalPrivacyControl&&!0===(null==(t=this._legacySettings)?void 0:t.gpcSignalHonoured))?[4,this.locationInstance.getIsUserInEU()]:[3,3];case 2:r=!o.sent(),o.label=3;case 3:s=r,o.label=4;case 4:return[2,s||!1]}})})},e.prototype.shouldDenyAllExplicitlyOnInit=function(){return P(this,void 0,void 0,function(){var e;return V(this,function(t){switch(t.label){case 0:return null!==this.denyAllExplicitlyOnInit?[2,this.denyAllExplicitlyOnInit]:(e=this,[4,this.shouldDenyAllOnInitFromGpc()]);case 1:return e.denyAllExplicitlyOnInit=t.sent(),[2,this.denyAllExplicitlyOnInit]}})})},e.prototype.shouldAcceptAllImplicitlyOnInit=function(){var e,t;return P(this,void 0,void 0,function(){var n,i,s,r,o,a;return V(this,function(c){switch(c.label){case 0:return null!==this.acceptAllImplicitlyOnInit?[2,this.acceptAllImplicitlyOnInit]:(n=this,(r=this.botInstance.isRobot())?[3,2]:[4,this.isCcpaAvailable()]);case 1:r=c.sent()&&!navigator.globalPrivacyControl,c.label=2;case 2:return(s=r)?[3,5]:(o=null==(e=this.core)?void 0:e.acceptAllImplicitlyOutsideEU)?[4,this.locationInstance.getIsUserInEU()]:[3,4];case 3:o=!c.sent(),c.label=4;case 4:s=o,c.label=5;case 5:return(i=s)?[3,8]:(a=this.isTcfAvailable())?[4,null==(t=this.getTcfData())?void 0:t.getGdprApplies()]:[3,7];case 6:a=!c.sent(),c.label=7;case 7:i=a,c.label=8;case 8:return n.acceptAllImplicitlyOnInit=i||""!==this.apiInstance.getRulesetId()&&this.rulesetInstance.getIsUsingNoShow()&&this.rulesetInstance.getNoShow(),[2,this.acceptAllImplicitlyOnInit]}})})},e.prototype.shouldAcceptAllImplicitlyOnVendorAdded=function(){var e,t,n;return P(this,void 0,void 0,function(){var i,s,r,o,a;return V(this,function(c){switch(c.label){case 0:return(r=this.botInstance.isRobot())?[3,2]:[4,this.isCcpaAvailable()];case 1:r=c.sent()&&!(null==(e=this.getCcpaData())?void 0:e.isOptedOut),c.label=2;case 2:return(s=r)?[3,5]:(o=null==(t=this.core)?void 0:t.acceptAllImplicitlyOutsideEU)?[4,this.locationInstance.getIsUserInEU()]:[3,4];case 3:o=!c.sent(),c.label=4;case 4:s=o,c.label=5;case 5:return(i=s)?[3,8]:(a=this.isTcfAvailable())?[4,null==(n=this.getTcfData())?void 0:n.getGdprApplies()]:[3,7];case 6:a=!c.sent(),c.label=7;case 7:i=a,c.label=8;case 8:return[2,i||""!==this.apiInstance.getRulesetId()&&this.rulesetInstance.getIsUsingNoShow()&&this.rulesetInstance.getNoShow()]}})})},e.prototype.shouldShowFirstLayerOnVersionChange=function(){var e=eT.fetchSettingsVersion();if(this.core&&e&&eA(this.core.showFirstLayerOnVersionChange)){var t=this.core.version.split("."),n=e.split(".");return eC(this.core.showFirstLayerOnVersionChange,B.MAJOR)&&t[0]!==n[0]||eC(this.core.showFirstLayerOnVersionChange,B.MINOR)&&t[1]!==n[1]||eC(this.core.showFirstLayerOnVersionChange,B.PATCH)&&t[2]!==n[2]}return!1},e.prototype.getUpdatedServicesWithConsent=function(e){return this.get
1ServicesDataAndLabels().map(function(t){return t.isEssential||(t.consent.status=e===F.TRUE),t})},e.prototype.getUpdatedServicesDataWithConsent=function(e){return this.getServicesData().map(function(t){return t.isEssential||(t.consent.status=e===F.TRUE),t})},e.prototype.getUpdatedServicesWithDecisions=function(e){return this.getServicesDataAndLabels().map(function(t){var n=e.find(function(e){return e.serviceId===t.id});return t.consent.status=t.isEssential||(n?n.status:t.consent.status),t})},e.prototype.getUpdatedServicesDataWithDecisions=function(e){return this.getServicesData().map(function(t){var n=e.find(function(e){return e.serviceId===t.id});return t.consent.status=t.isEssential||(n?n.status:t.consent.status),t})},e.prototype.updateDataTransferSettings=function(e){var t=e.controllerId,n=e.id,i=e.selectedLanguage,s=e.version;this.core&&this.data&&(this.data.controllerId=t,this.core.id=n,this.core.language.selected=i,this.core.version=s)},e.prototype.isTcfHistoryV2Disabled=function(){return!!e6(this.data)&&!0===this.data.tcfv2HistoryDisabled},e.prototype.getTCFPurposeOneTreatment=function(){return e6(this.data)&&this.data.purposeOneTreatment||!1},e.prototype.getTCFStackIds=function(){return e6(this.data)?this.data.stackIds:[]},e.prototype.getTCFVendorIds=function(){return e6(this.data)?this.data.vendorIds:[]},e.prototype.getTCFDisclosedVendorsSegmentString=function(){var e;return null==(e=this.getTcfData())?void 0:e.getTCFDisclosedVendorsSegmentString()},e.prototype.injectTCString=function(e){return P(this,void 0,void 0,function(){var t;return V(this,function(n){return(t=this.getTcfData())?[2,t.injectTCString(e)]:[2,!1]})})},e.prototype.fetchServices=function(e){return P(this,void 0,void 0,function(){var t,n,i,s;return V(this,function(r){switch(r.label){case 0:return(t=tM(e.consentTemplates)).length?(n=tk.getInstance(),i=tj.getInstance(),s=[],i.isRobot()?[3,2]:[4,n.fetchAggregatedServices(t)]):[2,null];case 1:s=r.sent(),r.label=2;case 2:return[2,s]}})})},e.prototype.mapBaseServices=function(e){return e.map(function(e){return{categorySlug:e.categorySlug,consent:e.consent,fetchSubServices:e.fetchSubServices,id:e.id,isEssential:e.isEssential,isHidden:e.isHidden,processorId:e.processorId,subServices:e.subServices,subServicesLength:e.subServicesLength,usesThirdCountry:e.usesThirdCountry,version:e.version}})},e.prototype.getThirdPartyCount=function(){var e=e6(this.data)?this.data.getVendorsCount():0;return this.getServicesData().length+e},e}(),nI=function(){function e(){this.restoreAction=null,this.apiInstance=tk.getInstance(),this.controllerIdInstance=tD.getInstance(),this.eventDispatcherInstance=tq.getInstance(),this.settingsV2=nE.getInstance(),this.botInstance=tj.getInstance()}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.resetInstance=function(){delete e.instance.userSessionData},e.prototype.execute=function(e,t,n,i,s,r){var o,a,c,u=this.settingsV2.getDataTransferSettings();if(u){var l=e.map(function(e){return eN(u,e,n,i,e.categorySlug)}),d=nT(t,l);if(!this.botInstance.isRobot()&&(r&&this.apiInstance.saveConsentsV1_DEPRECATED({consentString:s,dataTransferObjects:l}),null==(o=this.settingsV2.core)?void 0:o.consentAPIv2)){var h=eb({consentAction:n,consentString:s,dataTransferSettings:u,isAnalyticsEnabled:null==(a=this.settingsV2.core)?void 0:a.consentAnalytics,isCcpa:this.settingsV2.isCcpaEnabled(),isConsentXDeviceEnabled:null==(c=this.settingsV2.core)?void 0:c.consentXDevice,isTcf:!1,services:e});this.apiInstance.saveConsents(h)}this.settingsV2.setCategories(this.settingsV2.mergeServicesDataIntoExistingCategories(d));var p,g=this.settingsV2.getServicesDataAndLabels(),f=eT.mapSettings(u,g);eT.saveSettings(f,g),t7.enableScriptsForServicesWithConsent(this.settingsV2.getServicesWithConsent());var S=this.settingsV2.getTcfData();S&&S.advertiserConsentModeEnabled&&(p=S.getTCFData().vendors.find(function(e){return 755===e.id})),this.eventDispatcherInstance.dispatch(l,p,this.settingsV2.getGoogleConsentMode())}},e.prototype.getMergedServicesAndSettingsFromStorage=function(e){var t=eT.fetchSettings();if(t&&e){var n=this.settingsV2.getServicesFromCategories(this.settingsV2.getEssentialCategories()),i=this.settingsV2.getServicesFromCategories(this.settingsV2.getEssentialCategoriesData()),s=this.settingsV2.getServicesFromCategories(this.settingsV2.getNonEssentialCategories()),r=this.settingsV2.getServicesFromCategories(this.settingsV2.getNonEssentialCategoriesData()),o=this.getMergedAndUpdatedEssentialServices(n,t),a=this.getMergedAndUpdatedEssentialServices(i,t),c=this.getMergedNonEssentialServices(s,t),u=this.getMergedNonEssentialServices(r,t);return t.controllerId!==this.controllerIdInstance.value&&""===this.controllerIdInstance.value&&(this.controllerIdInstance.value=t.controllerId,e.controllerId=t.controllerId,e6(e)&&e.updateControllerId(t.controllerId)),{dataTransferSettings:this.settingsV2.getDataTransferSettings(),mergedServices:o.mergedEssentialServices.concat(c),mergedServicesData:a.mergedEssentialServices.concat(u),mergedSettingsData:e,updatedEssentialServices:o.updatedEssentialServices}}return{dataTransferSettings:null,mergedServices:[],mergedServicesData:[],mergedSettingsData:e,updatedEssentialServices:[]}},e.prototype.getLatestConsentType=function(e){return e.length>0?e[e.length-1].type:"implicit"},e.prototype.getLatestConsentAction=function(e){return e.length>0?e[e.length-1].action:"onInitialPageLoad"},e.prototype.setUserSessionData=function(e){this.userSessionData=e},e.prototype.mergeServicesAndSettings=function(e,t,n,i,s,r){var o,a,c,u=this;if(!n)return[];if(eA(i)){var l=i.map(function(e){return eN(n,e,"onEssentialChange",u.getLatestConsentType(e.consent.history),null==e?void 0:e.categorySlug)}
1),d=nT(t,l),h=nC(t,d,s);if(r&&this.apiInstance.saveConsentsV1_DEPRECATED({dataTransferObjects:l}),null==(o=this.settingsV2.core)?void 0:o.consentAPIv2){var p=eb({consentAction:"onEssentialChange",dataTransferSettings:n,isAnalyticsEnabled:null==(a=this.settingsV2.core)?void 0:a.consentAnalytics,isCcpa:this.settingsV2.isCcpaEnabled(),isConsentXDeviceEnabled:null==(c=this.settingsV2.core)?void 0:c.consentXDevice,isTcf:this.settingsV2.isTcfAvailable(),services:i});this.apiInstance.saveConsents(p)}this.settingsV2.setCategories(this.settingsV2.mergeServicesDataIntoExistingCategories(d)),eT.saveSettings(eT.mapSettings(n,h),h)}else this.settingsV2.setCategories(this.settingsV2.mergeServicesDataIntoExistingCategories(t)),eT.saveSettings(eT.mapSettings(n,e),e);return e.map(function(e){return eN(n,e,u.getLatestConsentAction(e.consent.history),u.getLatestConsentType(e.consent.history),null==e?void 0:e.categorySlug)})},e.prototype.restoreUserSession=function(e){var t,n,i;return P(this,void 0,void 0,function(){var s;return V(this,function(r){switch(r.label){case 0:return this.controllerIdInstance.value&&this.controllerIdInstance.needsSessionRestore&&(!(null==(t=this.settingsV2.core)?void 0:t.consentAPIv2)||(null==(n=this.settingsV2.core)?void 0:n.consentAPIv2)&&(null==(i=this.settingsV2.core)?void 0:i.consentXDevice))?[4,this.getCrossDeviceSessionData(this.controllerIdInstance.value)]:[3,2];case 1:s=r.sent(),r.label=2;case 2:if(!s&&this.userSessionData&&(s=L({},this.userSessionData)),!s&&window[ee]&&"function"==typeof window[ee].getUserSessionData)try{(null==(s=JSON.parse(window[ee].getUserSessionData(),function(e,t){if("timestamp"===e){var n=t.toString();return -1!==n.indexOf(".")?1e3*Number(n):Number(n)}return t}))?void 0:s.consents)&&(null==s?void 0:s.consents.length)&&!s.consents.every(function(e){return e.action})&&(s.consents=s.consents.map(function(e){return L(L({},e),{action:"onMobileSessionRestore"})}),this.restoreAction="onMobileSessionRestore")}catch(e){}return s||!ef.isCrossDomainAvailable()?[3,4]:[4,this.getCrossDomainSessionData()];case 3:s=r.sent(),r.label=4;case 4:return s&&s.controllerId?[2,this.restoreData(s,e)]:(this.controllerIdInstance.needsSessionRestore=!1,[2,!1])}})})},e.prototype.getCrossDomainSessionData=function(){return P(this,void 0,void 0,function(){return V(this,function(e){switch(e.label){case 0:return[4,ef.getCrossDomainSessionData().catch(function(){return console.warn(z.CROSS_DOMAIN_DATA_NOT_AVAILABLE),{}})];case 1:return[2,e.sent()]}})})},e.prototype.getCrossDeviceSessionData=function(e){var t,n;return P(this,void 0,void 0,function(){var i,s,r,o,a,c,u,l,d,h;return V(this,function(p){switch(p.label){case 0:return i=["dWLDa0s-m","VkvM9IcSA","Zdgjo9gQh","r2tAWzO7","GVl-ixMH"],s=this.apiInstance.getSettingsId(),r=this.settingsV2.isTcfAvailable(),[4,this.settingsV2.isCcpaAvailable()];case 1:return o=p.sent(),a=null==(t=this.settingsV2.core)?void 0:t.consentAPIv2,c=[],u=null,l=null,a?[4,this.apiInstance.fetchUserConsentsV2(r,o).catch(function(){return console.warn(Q.CROSS_DEVICE_DATA_NOT_AVAILABLE),null})]:[3,3];case 2:return c=null!=(n=null==(d=p.sent())?void 0:d.consents)?n:[],r&&(-1===i.indexOf(s)&&this.settingsV2.isTcfHistoryV2Disabled()||(u=null==d?void 0:d.tcf)),o&&(l=null==d?void 0:d.ccpa),[3,8];case 3:return[4,this.apiInstance.fetchUserConsents().catch(function(){return console.warn(Q.CROSS_DEVICE_DATA_NOT_AVAILABLE),[]})];case 4:return c=p.sent(),r?-1===i.indexOf(s)?[3,6]:[4,this.apiInstance.fetchUserTcfData().catch(function(){return console.warn(Q.CROSS_DEVICE_TCF_DATA_NOT_AVAILABLE),null})]:[3,8];case 5:return u=p.sent(),[3,8];case 6:return this.settingsV2.isTcfHistoryV2Disabled()?[3,8]:[4,this.apiInstance.fetchUserTcfDataV2().catch(function(){return console.warn(Q.CROSS_DEVICE_TCF_DATA_NOT_AVAILABLE),null})];case 7:u=p.sent(),p.label=8;case 8:return r&&!u&&ef.isCrossDomainAvailable()?[4,this.getCrossDomainSessionData()]:[3,10];case 9:(h=p.sent())&&h.tcf&&h.controllerId===e&&(u=h.tcf),p.label=10;case 10:return[2,L(L({consents:c,controllerId:e,language:this.apiInstance.getJsonFileLanguage()},null!==u&&{tcf:u}),null!==l&&{ccpa:l})]}})})},e.prototype.restoreData=function(e,t){return P(this,void 0,void 0,function(){var n,i,s,r,o,a,c,u,l,d,h,p,g,f,S,v,E,I,T=this;return V(this,function(C){switch(C.label){case 0:return n=e.controllerId,i=e.consents,s=e.tcf,r=e.ccpa,o=this.settingsV2.core,a=this.getDataFacadeServices(t),c=eT.fetchControllerId(),this.controllerIdInstance.value=n,u=eT.fetchTCFData(),l=!1,n&&(eA(i)||!a.length)?(d=ny(i),h=eT.fetchServices(),"onSessionRestored"===e.consents[0].action&&n===c&&h.length===d.length&&h[0].history.length>0&&h[0].history[0].action&&"onSessionRestored"===h[0].history[0].action?[3,5]:[3,1]):[3,5];
1case 1:return!eA(d)&&a.length?[3,5]:(p=[],g=[],d.forEach(function(e){var t=a.findIndex(function(t){return t.id===e.templateId});if(t>-1){var n=a[t];n.consent.status=e.status;var i=g.findIndex(function(e){return e.id===n.id});-1===i?g.push(n):g[i]=n,a[t]=n;var s=T.settingsV2.getDataTransferSettings(e.settingsVersion);s&&p.push(eN(s,n,e.action,e.updatedBy,n.categorySlug,{timestamp:"string"==typeof e.timestamp?T.resolveTimestamp(e.timestamp):e.timestamp}))}}),this.settingsV2.data&&this.settingsV2.setControllerId(n),f=void 0,S=void 0,o&&d.length&&(S=eR(d.map(function(e){return e.settingsVersion})).sort(eJ)).length&&(f=S[S.length-1]),v=nT(a,p),(E=this.settingsV2.getDataTransferSettings(f))?c&&n&&n!==c?[4,eT.clearAll()]:[3,3]:[3,4]);case 2:C.sent(),C.label=3;case 3:eT.saveSettings(eT.mapSettings(E,v),v),C.label=4;case 4:eA(d)&&eT.setUserActionPerformed(!0),l=!0,C.label=5;case 5:return s&&s.tcString&&(s.tcString!==u.tcString||s.acString!==u.acString)&&(eT.saveTCFData(s),a.length||eT.setUserActionPerformed(!0)),I=this.settingsV2.getCcpaData(),r&&r.ccpaString&&I&&(I.setIsOptedOut(r.ccpaString),eT.setCcpaString(r.ccpaString),r.timestamp?eT.setCcpaTimeStamp(r):eT.clearCcpaData(),eT.setUserActionPerformed(!0)),[2,l]}})})},e.prototype.getDataFacadeServices=function(e){var t=this.settingsV2.checkIfServiceNameExists,n=e.categories,i=e.consentTemplates;if(i.length>0&&t(i))return i.map(function(e){var t,i=n.find(function(t){return t.categorySlug===e.categorySlug});return{categorySlug:e.categorySlug,consent:t9(e,i),id:e.templateId,name:(null==(t=e._meta)?void 0:t.name)||"",processorId:"".concat(ty(tb())),version:e.version}});var s=this.settingsV2.getServicesDataAndLabels();return s.length>0?s.map(function(e){return{categorySlug:e.categorySlug,consent:e.consent,id:e.id,name:e.name,processorId:e.processorId,version:e.version}}):[]},e.prototype.getMergedAndUpdatedEssentialServices=function(e,t){var n=this,i=[];return{mergedEssentialServices:e.map(function(e){var s,r,o=null==(s=t.services)?void 0:s.find(function(t){return t.id===e.id});return o&&(e.consent.history=o.history,e.consent.status=!0,e.processorId=o.processorId,e.categorySlug=(null==(r=n.settingsV2.getCategoriesBaseData().find(function(t){return t.services.some(function(t){return t.id===e.id})}))?void 0:r.slug)||"",o.status||i.push(e)),e}),updatedEssentialServices:i}},e.prototype.getMergedNonEssentialServices=function(e,t){return e.map(function(e){var n,i,s=null==(n=t.services)?void 0:n.find(function(t){return t.id===e.id});if(s)return(r=e).consent.history=s.history,r.consent.status=s.status,r.processorId=s.processorId,r;if(0===e.consent.history.length){var r=e,o=null==(i=t.services)?void 0:i.find(function(e){return e.history.length>0});return r.consent.history=[{action:"onInitialPageLoad",language:e.language?e.language.selected:"en",status:e.consent.status,timestamp:(new Date).getTime(),type:"implicit",versions:o&&o.history.length>0?o.history[0].versions:{application:"",service:e.version,settings:""}}],r}return e})},e.prototype.resolveTimestamp=function(e){return 10===e.length?1e3*parseInt(e,10):parseInt(e,10)},e}(),nT=function(e,t){return e.map(function(e){var n=t.filter(function(t){return t.service.id===e.id});if(eA(n)){var i=e.consent.history,s=i.length+n.length,r=s<=3?i:i.slice(s-3);return e.consent.history=M(M([],U(r),!1),U(n.map(function(e){return n_(e)})),!1),e}return e})},nC=function(e,t,n){return e.reduce(function(e,i){var s=t.find(function(e){return e.id===i.id}),r=n.find(function(e){return e.id===i.id});return s&&r?M(M([],U(e),!1),[{categorySlug:i.categorySlug,consent:s.consent,id:i.id,language:i.language,name:r.name,processorId:i.processorId,version:i.version}],!1):M([],U(e),!1)},[])},n_=function(e){return{action:e.consent.action,language:e.settings.language,status:e.consent.status,timestamp:e.timestamp,type:e.consent.type,versions:{application:e.applicationVersion,service:e.service.version,settings:e.settings.version}}},ny=function(e){return e.filter(function(e){return!tl.includes(e.action)})},nA=u(function e(t,n,i,s){a(this,e),d(this,"eventName",void 0),d(this,"listenerId",void 0),d(this,"data",void 0),d(this,"pingData",void 0),this.eventName=t,this.listenerId=n,this.data=i,this.pingData=s}),nm=u(function e(t){a(this,e),d(this,"gppVersion",void 0),d(this,"cmpStatus",void 0),d(this,"cmpDisplayStatus",void 0),d(this,"signalStatus",void 0),d(this,"supportedAPIs",void 0),d(this,"cmpId",void 0),d(this,"sectionList",void 0),d(this,"applicableSections",void 0),d(this,"gppString",void 0),d(this,"parsedSections",void 0),this.gppVersion=t.gppVersion,this.cmpStatus=t.cmpStatus,this.cmpDisplayStatus=t.cmpDisplayStatus,this.signalStatus=t.signalStatus,this.supportedAPIs=t.supportedAPIs,this.cmpId=t.cmpId,this.sectionList=t.gppModel.getSectionIds(),this.applicableSections=t.applicableSections,this.gppString=t.gppModel.encode(),this.parsedSections=t.gppModel.toObject()}),nO=u(function e(t,n,i){a(this,e),d(this,"callback",void 0),d(this,"parameter",void 0),d(this,"success",!0),d(this,"cmpApiContext",void 0),this.cmpApiContext=t,Object.assign(this,{callback:n,parameter:i})},[{key:"execute",value:function(){try{return this.respond()}catch(e){return this.invokeCallback(null),null}}},{key:"invokeCallback",value:function(e){this.callback&&this.callback(e,null!==e)}}]),nN=function(){function e(){return a(this,e),o(this,e,arguments)}return g(e,nO),u(e,[{key:"respond",value:function(){var e=new nA("listenerRegistered",this.cmpApiContext.eventQueue.add({callback:this.callback,parameter:this.parameter}),!0,new nm(this.cmpApiContext));this.invokeCallback(e)}}])}(),nb=function(){function e(){return a(this,e),o(this,e,arguments)}return g(e,nO),u(e,[{key:"respond",value:function(){var e=new nm(this.cmpApiContext);this.invokeCallback(e)}}])}(),nD=function(){function e(){return a(this,e),o(this,e,arguments)}return g(e,nO),u(e,[{key:"respond",value:function(){if(!this.parameter||0===this.parameter.length)throw Error("<section>.<field> parameter required");var e=this.parameter.split(".");if(2!=e.length)throw Error("Field name must be in the format <section>.<fieldName>");var t=e[0],n=e[1],i=this.cmpApiContext.gppModel.getFieldValue(t,n);this.invokeCallback(i)}}])}(),nR=function(){function e(){return a(this,e),o(this,e,arguments)}return g(e,nO),u(e,[{key:"respond",value:function(){if(!this.parameter||0===this.parameter.length)throw Error("<section> parameter required");var e=null;this.cmpApiContext.gppModel.hasSection(this.parameter)&&(e=this.cmpApiContext.gppModel.getSection(this.parameter)),this.invokeCallback(e)}}])}(),nw=function(){function e(){return a(this,e),o(this,e,arguments)}return g(e,nO),u(e,[{key:"respond",value:function(){if(!this.parameter||0===this.parameter.length)throw Error("<section>[.version] parameter required");var e=this.cmpApiContext.gppModel.hasSection(this.parameter);this.invokeCallback(e)}}])}();!function(e){e.ADD_EVENT_LISTENER="addEventListener",e.GET_FIELD="getField",e.GET_SECTION="getSection",e.HAS_SECTION="hasSection",e.PING="ping",e.REMOVE_
1EVENT_LISTENER="removeEventListener"}(t6||(t6={}));var nL,nP,nV,nU,nM,nk,nF=function(){function e(){return a(this,e),o(this,e,arguments)}return g(e,nO),u(e,[{key:"respond",value:function(){var e=this.parameter,t=this.cmpApiContext.eventQueue.remove(e),n=new nA("listenerRemoved",e,t,new nm(this.cmpApiContext));this.invokeCallback(n)}}])}();nL=t6.ADD_EVENT_LISTENER,nP=t6.GET_FIELD,nV=t6.GET_SECTION,nU=t6.HAS_SECTION,nM=t6.PING,nk=t6.REMOVE_EVENT_LISTENER;var nG,nB,nx,nH,nj=u(function e(){a(this,e)});d(nj,nL,nN),d(nj,nP,nD),d(nj,nV,nR),d(nj,nU,nw),d(nj,nM,nb),d(nj,nk,nF),function(e){e.STUB="stub",e.LOADING="loading",e.LOADED="loaded",e.ERROR="error"}(nG||(nG={})),function(e){e.VISIBLE="visible",e.HIDDEN="hidden",e.DISABLED="disabled"}(nB||(nB={})),function(e){e.GPP_LOADED="gpploaded",e.CMP_UI_SHOWN="cmpuishown",e.USER_ACTION_COMPLETE="useractioncomplete"}(nx||(nx={})),function(e){e.NOT_READY="not ready",e.READY="ready"}(nH||(nH={}));var nY=u(function e(t,n){if(a(this,e),d(this,"callQueue",void 0),d(this,"customCommands",void 0),d(this,"cmpApiContext",void 0),this.cmpApiContext=t,n){var i=t6.ADD_EVENT_LISTENER;if(null!=n&&n[i]||(i=t6.REMOVE_EVENT_LISTENER,null!=n&&n[i]))throw Error("Built-In Custom Commmand for ".concat(i," not allowed"));this.customCommands=n}try{this.callQueue=window.__gpp()||[]}catch(e){this.callQueue=[]}finally{window.__gpp=this.apiCall.bind(this),this.purgeQueuedCalls()}},[{key:"apiCall",value:function(e,t,n,i){if("string"!=typeof e)t(null,!1);else{if(t&&"function"!=typeof t)throw Error("invalid callback function");this.isCustomCommand(e)?this.customCommands[e](t,n):this.isBuiltInCommand(e)?new nj[e](this.cmpApiContext,t,n).execute():t&&t(null,!1)}}},{key:"purgeQueuedCalls",value:function(){var e=this.callQueue;this.callQueue=[],e.forEach(function(e){var t;(t=window).__gpp.apply(t,_(e))})}},{key:"isCustomCommand",value:function(e){return this.customCommands&&"function"==typeof this.customCommands[e]}},{key:"isBuiltInCommand",value:function(e){return void 0!==nj[e]}}]),nJ=u(function e(t){a(this,e),d(this,"eventQueue",new Map),d(this,"queueNumber",1e3),d(this,"cmpApiContext",void 0),this.cmpApiContext=t;try{for(var n=window.__gpp("events")||[],i=0;i<n.length;i++){var s=n[i];this.eventQueue.set(s.id,{callback:s.callback,parameter:s.parameter})}}catch(e){console.log(e)}},[{key:"add",value:function(e){return this.eventQueue.set(this.queueNumber,e),this.queueNumber++}},{key:"get",value:function(e){return this.eventQueue.get(e)}},{key:"remove",value:function(e){return this.eventQueue.delete(e)}},{key:"exec",value:function(e,t){var n=this;this.eventQueue.forEach(function(i,s){var r=new nA(e,s,t,new nm(n.cmpApiContext));i.callback(r,!0)})}},{key:"clear",value:function(){this.queueNumber=1e3,this.eventQueue.clear()}},{key:"size",get:function(){return this.eventQueue.size}}]),nW=function(){function e(t){var n;return a(this,e),(n=o(this,e,[t])).name="DecodingError",n}return g(e,O(Error)),u(e)}(),nK=u(function e(){a(this,e)},null,[{key:"encode",value:function(e,t){var n=[];if(e>=1)for(n.push(1);e>=2*n[0];)n.unshift(2*n[0]);for(var i="",s=0;s<n.length;s++){var r=n[s];e>=r?(i+="1",e-=r):i+="0"}for(;i.length<t;)i="0"+i;return i}},{key:"decode",value:function(e){if(!/^[0-1]*$/.test(e))throw new nW("Undecodable FixedInteger '"+e+"'");for(var t=0,n=[],i=0;i<e.length;i++)n[e.length-(i+1)]=0===i?1:2*n[e.length-i];for(var s=0;s<e.length;s++)"1"===e.charAt(s)&&(t+=n[s]);return t}}]),nq=function(){function e(t){var n;return a(this,e),(n=o(this,e,[t])).name="EncodingError",n}return g(e,O(Error)),u(e)}(),nQ=function(){function e(){a(this,e)}return u(e,[{key:"encode",value:function(t){if(!/^[0-1]*$/.test(t))throw new nq("Unencodable Base64Url '"+t+"'");t=this.pad(t);for(var n="",i=0;i<=t.length-6;){var s=t.substring(i,i+6);try{var r=nK.decode(s);n+=e.DICT.charAt(r),i+=6}catch(e){throw new nq("Unencodable Base64Url '"+t+"'")}}return n}},{key:"decode",value:function(t){if(!/^[A-Za-z0-9\-_]*$/.test(t))throw new nW("Undecodable Base64URL string");for(var n="",i=0;i<t.length;i++){var s=t.charAt(i),r=e.REVERSE_DICT.get(s);n+=nK.encode(r,6)}return n}}])}();d(nQ,"DICT","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),d(nQ,"REVERSE_DICT",new Map([["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]]));var nz,nX=function(){function e(){return a(this,e),o(this,e,arguments)}return g(e,nQ),u(e,[{key:"pad",value:function(e){for(;e.length%8>0;)e+="0";for(;e.length%6>0;)e+="0";return e}}])}(),n$=u(function e(){a(this,e)},null,[{key:"encode",value:function(e){var t=[];if(e>=1&&(t.push(1),e>=2)){t.push(2);for(var n=2;e>=t[n-1]+t[n-2];)t.push(t[n-1]+t[n-2]),n++}for(var i="1",s=t.length-1;s>=0;s--){var r=t[s];e>=r?(i="1"+i,e-=r):i="0"+i}return i}},{key:"decode",value:function(e){if(!/^[0-1]*$/.test(e)||e.length<2||e.indexOf("11")!==e.length-2)throw new nW("Undecodable FibonacciInteger '"+e+"'");for(var t=0,n=[],i=0;i<e.length-1;i++)0===i?n.push(1):1===i?n.push(2):n.push(n[i-1]+n[i-2]);for(var s=0;s<e.length-1;s++)"1"===e.charAt(s)&&(t+=n[s]);return t}}]),nZ=u(function e(){a(this,e)},null,[{key:"encode",value:function(e){if(!0===e)return"1";if(!1===e)return"0";throw new nq("Unencodable Boolean '"+e+"'")}},{key:"decode",value:function(e){if("1"===e)return!0;
1if("0"===e)return!1;throw new nW("Undecodable Boolean '"+e+"'")}}]),n0=u(function e(){a(this,e)},null,[{key:"encode",value:function(e){e=e.sort(function(e,t){return e-t});for(var t=[],n=0,i=0;i<e.length;){for(var s=i;s<e.length-1&&e[s]+1===e[s+1];)s++;t.push(e.slice(i,s+1)),i=s+1}for(var r=nK.encode(t.length,12),o=0;o<t.length;o++)if(1==t[o].length){var a=t[o][0]-n;n=t[o][0],r+="0"+n$.encode(a)}else{var c=t[o][0]-n;n=t[o][0];var u=t[o][t[o].length-1]-n;n=t[o][t[o].length-1],r+="1"+n$.encode(c)+n$.encode(u)}return r}},{key:"decode",value:function(e){if(!/^[0-1]*$/.test(e)||e.length<12)throw new nW("Undecodable FibonacciIntegerRange '"+e+"'");for(var t=[],n=nK.decode(e.substring(0,12)),i=0,s=12,r=0;r<n;r++){var o=nZ.decode(e.substring(s,s+1));if(s++,!0===o){var a=e.indexOf("11",s),c=n$.decode(e.substring(s,a+2))+i;i=c,s=a+2,a=e.indexOf("11",s);var u=n$.decode(e.substring(s,a+2))+i;i=u,s=a+2;for(var l=c;l<=u;l++)t.push(l)}else{var d=e.indexOf("11",s),h=n$.decode(e.substring(s,d+2))+i;i=h,t.push(h),s=d+2}}return t}}]),n1=u(function e(){a(this,e),d(this,"value",void 0)},[{key:"hasValue",value:function(){return void 0!==this.value&&null!==this.value}},{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}}]),n2=function(){function e(t){var n;return a(this,e),(n=o(this,e)).setValue(t),n}return g(e,n1),u(e,[{key:"encode",value:function(){return n0.encode(this.value)}},{key:"decode",value:function(e){this.value=n0.decode(e)}},{key:"substring",value:function(e,t){for(var n=nK.decode(e.substring(t,t+12)),i=t+12,s=0;s<n;s++)i="1"===e.charAt(i)?e.indexOf("11",e.indexOf("11",i+1)+2)+2:e.indexOf("11",i+1)+2;return e.substring(t,i)}},{key:"getValue",value:function(){return _(C(e,"getValue",this,3)([]))}},{key:"setValue",value:function(t){C(e,"setValue",this,3)([Array.from(new Set(t)).sort(function(e,t){return e-t})])}}])}(),n3=function(){function e(t,n){var i;return a(this,e),d(i=o(this,e),"bitStringLength",void 0),i.bitStringLength=t,i.setValue(n),i}return g(e,n1),u(e,[{key:"encode",value:function(){return nK.encode(this.value,this.bitStringLength)}},{key:"decode",value:function(e){this.value=nK.decode(e)}},{key:"substring",value:function(e,t){return e.substring(t,t+this.bitStringLength)}}])}();!function(e){e.ID="Id",e.VERSION="Version",e.SECTION_IDS="SectionIds"}(nz||(nz={}));var n4=u(function e(t,n){a(this,e),d(this,"fields",void 0),d(this,"fieldOrder",void 0),this.fields=t,this.fieldOrder=n},[{key:"hasField",value:function(e){return this.fields.has(e)}},{key:"getFieldValue",value:function(e){return this.fields.has(e)?this.fields.get(e).getValue():null}},{key:"setFieldValue",value:function(e,t){if(!this.fields.has(e))throw Error(e+" not found");this.fields.get(e).setValue(t)}},{key:"getFieldOrder",value:function(){return this.fieldOrder}},{key:"encodeToBitString",value:function(){for(var e="",t=0;t<this.fieldOrder.length;t++){var n=this.fieldOrder[t];if(!this.fields.has(n))throw Error("Field not found: '"+n+"'");e+=this.fields.get(n).encode()}return e}},{key:"decodeFromBitString",value:function(e){for(var t=0,n=0;n<this.fieldOrder.length;n++){var i=this.fieldOrder[n];if(!this.fields.has(i))throw Error("Field not found: '"+i+"'");var s=this.fields.get(i),r=s.substring(e,t);s.decode(r),t+=r.length}}},{key:"toObj",value:function(){for(var e={},t=0;t<this.fieldOrder.length;t++){var n=this.fieldOrder[t];if(this.fields.has(n)){var i=this.fields.get(n).getValue();e[n]=i}}return e}}]),n6=function(){function e(t){a(this,e);var n,i=new Map;return i.set(nz.ID.toString(),new n3(6,e.ID)),i.set(nz.VERSION.toString(),new n3(6,e.VERSION)),i.set(nz.SECTION_IDS.toString(),new n2([])),d(n=o(this,e,[i,[nz.ID.toString(),nz.VERSION.toString(),nz.SECTION_IDS.toString()]]),"base64UrlEncoder",new nX),t&&t.length>0&&n.decode(t),n}return g(e,n4),u(e,[{key:"encode",value:function(){var e=this.encodeToBitString();return this.base64UrlEncoder.encode(e)}},{key:"decode",value:function(e){var t=this.base64UrlEncoder.decode(e);this.decodeFromBitString(t)}},{key:"getId",value:function(){return e.ID}},{key:"getName",value:function(){return e.NAME}}])}();d(n6,"ID",3),d(n6,"VERSION",1),d(n6,"NAME","header");var n5,n7=function(){function e(t){var n;return a(this,e),(n=o(this,e,[t])).name="InvalidFieldError",n}return g(e,O(Error)),u(e)}(),n8=function(){function e(t){var n;return a(this,e),(n=o(this,e,[t])).name="LazyDecodingError",n}return g(e,nW),u(e)}(),n9=function(){function e(t){var n;return a(this,e),(n=o(this,e)).setValue(t),n}return g(e,n1),u(e,[{key:"encode",value:function(){return nZ.encode(this.value)}},{key:"decode",value:function(e){this.value=nZ.decode(e)}},{key:"substring",value:function(e,t){return e.substring(t,t+1)}}])}(),ie=u(function e(){a(this,e)},null,[{key:"encode",value:function(e){return e?nK.encode(Math.round(e.getTime()/100),36):nK.encode(0,36
1)}},{key:"decode",value:function(e){if(!/^[0-1]*$/.test(e)||36!==e.length)throw new nW("Undecodable Datetime '"+e+"'");return new Date(100*nK.decode(e))}}]),it=function(){function e(t){var n;return a(this,e),(n=o(this,e)).setValue(t),n}return g(e,n1),u(e,[{key:"encode",value:function(){return ie.encode(this.value)}},{key:"decode",value:function(e){this.value=ie.decode(e)}},{key:"substring",value:function(e,t){return e.substring(t,t+36)}}])}(),ii=u(function e(){a(this,e)},null,[{key:"encode",value:function(e,t){for(var n="",i=0;i<e.length;i++)n+=nZ.encode(e[i]);for(;n.length<t;)n+="0";return n}},{key:"decode",value:function(e){if(!/^[0-1]*$/.test(e))throw new nW("Undecodable FixedBitfield '"+e+"'");for(var t=[],n=0;n<e.length;n++)t.push(nZ.decode(e.substring(n,n+1)));return t}}]),is=function(){function e(t,n){var i;return a(this,e),d(i=o(this,e),"getLength",void 0),i.getLength=t,i.setValue(n),i}return g(e,n1),u(e,[{key:"encode",value:function(){return ii.encode(this.value,this.getLength())}},{key:"decode",value:function(e){this.value=ii.decode(e)}},{key:"substring",value:function(e,t){return e.substring(t,t+this.getLength())}},{key:"getValue",value:function(){return _(C(e,"getValue",this,3)([]))}},{key:"setValue",value:function(t){for(var n=this.getLength(),i=_(t),s=i.length;s<n;s++)i.push(!1);i.length>n&&(i=i.slice(0,n)),C(e,"setValue",this,3)([_(i)])}}])}(),ir=function(){function e(t){var n;return a(this,e),d(n=o(this,e),"numElements",void 0),n.numElements=t.length,n.setValue(t),n}return g(e,n1),u(e,[{key:"encode",value:function(){return ii.encode(this.value,this.numElements)}},{key:"decode",value:function(e){this.value=ii.decode(e)}},{key:"substring",value:function(e,t){return e.substring(t,t+this.numElements)}},{key:"getValue",value:function(){return _(C(e,"getValue",this,3)([]))}},{key:"setValue",value:function(t){for(var n=_(t),i=n.length;i<this.numElements;i++)n.push(!1);n.length>this.numElements&&(n=n.slice(0,this.numElements)),C(e,"setValue",this,3)([n])}}])}(),io=u(function e(){a(this,e)},null,[{key:"encode",value:function(e,t){for(;e.length<t;)e+=" ";for(var n="",i=0;i<e.length;i++){var s=e.charCodeAt(i);if(32===s)n+=nK.encode(63,6);else{if(!(s>=65))throw new nq("Unencodable FixedString '"+e+"'");n+=nK.encode(e.charCodeAt(i)-65,6)}}return n}},{key:"decode",value:function(e){if(!/^[0-1]*$/.test(e)||e.length%6!=0)throw new nW("Undecodable FixedString '"+e+"'");for(var t="",n=0;n<e.length;n+=6){var i=nK.decode(e.substring(n,n+6));t+=63===i?" ":String.fromCharCode(i+65)}return t.trim()}}]),ia=function(){function e(t,n){var i;return a(this,e),d(i=o(this,e),"stringLength",void 0),i.stringLength=t,i.setValue(n),i}return g(e,n1),u(e,[{key:"encode",value:function(){return io.encode(this.value,this.stringLength)}},{key:"decode",value:function(e){this.value=io.decode(e)}},{key:"substring",value:function(e,t){return e.substring(t,t+6*this.stringLength)}}])}(),ic=u(function e(t,n){a(this,e),d(this,"fields",void 0),d(this,"segments",void 0),this.fields=t,this.segments=n},[{key:"hasField",value:function(e){return this.fields.has(e)}},{key:"getFieldValue",value:function(e){return this.fields.has(e)?this.fields.get(e).getValue():null}},{key:"setFieldValue",value:function(e,t){if(!this.fields.has(e))throw Error(e+" not found");this.fields.get(e).setValue(t)}},{key:"getSegments",value:function(){return this.segments}},{key:"encodeSegmentsToBitStrings",value:function(){for(var e=[],t=0;t<this.segments.length;t++){for(var n="",i=0;i<this.segments[t].length;i++){var s=this.segments[t][i];if(!this.fields.has(s))throw Error("Field not found: '"+s+"'");try{n+=this.fields.get(s).encode()}catch(e){throw Error("Unable to encode "+s)}}e.push(n)}return e}},{key:"decodeSegmentsFromBitStrings",value:function(e){for(var t=0;t<this.segments.length&&t<e.length;t++){var n=e[t];if(n&&n.length>0)for(var i=0,s=0;s<this.segments[t].length;s++){var r=this.segments[t][s];if(!this.fields.has(r))throw Error("Field not found: '"+r+"'");try{var o=this.fields.get(r),a=o.substring(n,i);o.decode(a),i+=a.length}catch(e){throw Error("Unable to decode "+r)}}}}},{key:"toObj",value:function(){for(var e={},t=0;t<this.segments.length;t++)for(var n=0;n<this.segments[t].length;n++){var i=this.segments[t][n];if(this.fields.has(i)){var s=this.fields.get(i).getValue();e[i]=s}}return e}}]),iu=u(function e(){a(this,e)},null,[{key:"encode",value:function(e){e.sort(function(e,t){return e-t});for(var t=[],n=0;n<e.length;){for(var i=n;i<e.length-1&&e[i]+1===e[i+1];)i++;t.push(e.slice(n,i+1)),n=i+1}for(var s=nK.encode(t.length,12),r=0;r<t.length;r++)1===t[r].length?s+="0"+nK.encode(t[r][0],16):s+="1"+nK.encode(t[r][0],16)+nK.encode(t[r][t[r].length-1],16);return s}},{key:"decode",value:function(e){if(!/^[0-1]*$/.test(e)||e.length<12)throw new nW("Undecodable FixedIntegerRange '"+e+"'");for(var t=[],n=nK.decode(e.substring(0,12)),i=12,s=0;s<n;s++){var r=nZ.decode(e.substring(i,i+1));if(i++,!0===r){var o=nK.decode(e.substring(i,i+16));i+=16;var a=nK.decode(e.substring(i,i+16));i+=16;for(var c=o;c<=a;c++)t.push(c)}else{var u=nK.decode(e.substring(i,i+16));t.push(u),i+=16}}return t}}]),il=function(){function e(t){var n;return a(this,e),(n=o(this,e)).setValue(t),n}return g(e,n1),u(e,[{key:"encode",value:function(){return iu.encode(this.value)}},{key:"decode",value:function(e){this.value=iu.decode(e)}},{key:"substring",value:function(e,t){for(var n=nK.decode(e.substring(t,t+12)),i=t+12,s=0;s<n;s++)"1"===e.charAt(i)?i+=33:i+=17;return e.substring(t,i)}},{key:"getValue",value:function(){return _(C(e,"getValue",this,3)([]))}},{key:"setValue",value:function(t){C(e,"setValue",this,3)([Array.from(new Set(t)).sort(function(e,t){return e-t})])}}])}(),id=function(){function e(t){var n;return a(this,e),(n=o(this,e)).setValue(t),n}return g(e,n1),u(e,[{key:"encode",value:function(){var e=this.value.length>0?this.value[this.value.length-1]:0,t=iu.encode(this.value);if(t.length<=e)return nK.encode(e,16)+"1"+t;for(var n=[],i=0,s=0;s<e;s++)s===this.value[i]-1?(n[s]=!0,i++):n[s]=!1;return nK.encode(e,16)+"0"+ii.encode(n,e)}},{key:"decode",value:function(e){if("1"===e.charAt(16))this.value=iu.decode(e.substring(17));else{for(var t=[],n=ii.decode(e.substring(17)),i=0;i<n.length;i++)!0===n[i]&&t.push(i+1);this.value=t}}},{key:"substring",value:function(e,t){var n=nK.decode(e.substring(t,t+16));return"1"===e.charAt(t+16)?e.substring(t,t+17)+new il([]).substring(e,t+17):e.substring(t,t+17+n)}},{key:"getValue",value:function(){return _(C(e,"getValue",this,3)([]))}},{key:"setValue",value:function(t){C(e,"setValue",this,3)([Array.from(new Set(t)).sort(function(e,t){return e-t})])}}])}();!function(e){e.VERSION="Version",e.CREATED="Created",e.LAST_UPDATED="LastUpdated",e.CMP_ID="CmpId",e.CMP_VERSION="CmpVersion",e.CONSENT_SCREEN="ConsentScreen",e.CONSENT_LANGUAGE="ConsentLanguage",e.VENDOR_LIST_VERSION="VendorListVersion",e.POLICY_VERSION="PolicyVersion",e.IS_SERVICE_SPECIFIC="IsServiceSpecific",e.USE_NON_STANDARD_STACKS="UseNonStandardStacks",e.SPECIAL_FEATURE_OPTINS="SpecialFeatureOptins",e.PURPOSE_CONSENTS="PurposeConsents",e.PURPOSE_LEGITIMATE_INTERESTS="PurposeLegitimateInterests",e.PURPOSE_ONE_TREATMENT="PurposeOneTreatment",e.PUBLISHER_COUNTRY_CODE="PublisherCountryCode",e.VENDOR_CONSENTS="VendorConsents",e.VENDOR_LEGITIMATE_INTERESTS="VendorLegitimateInterests",e.PUBLISHER_RESTRICTIONS="PublisherRestrictions",e.PUBLISHER_PURPOSES_SEGMENT_TYPE="PublisherPurposesSegmentType",e.PUBLISHER_CONSENTS="PublisherConsents",e.PUBLISHER_LEGITIMATE_INTERESTS="PublisherLegitimateInterests",e.NUM_CUSTOM_PURPOSES="NumCustomPurposes",e.PUBLISHER_CUSTOM_CONSENTS="PublisherCustomConsents",e.PUBLISHER_CUSTOM_LEGITIMATE_INTERESTS="PublisherCustomLegitimateInterests",e.VENDORS_ALLOWED_SEGMENT_TYPE="VendorsAllowedSegmentType",e.VENDORS_ALLOWED="VendorsAllowed",e.VENDORS_DISCLOSED_SEGMENT_TYPE="VendorsDisclosedSegmentType",e.VENDORS_DISCLOSED="VendorsDisclosed"}(n5||(n5={}));var ih,ip=function(){function e(){return a(this,e),o(this,e,arguments)}return g(e,nQ),u(e,[{key:"pad",value:function(e){for(;e.length%24>0;)e+="0";return e}}])}(),ig=function(){function e(t){a(this,e);var n,i=new Map,s=new Date;i.set(n5.VERSION.toString(),new n3(6,e.VERSION)),i.set(n5.CREATED.toString(),new it(s)),i.set(n5.LAST_UPDATED.toString(),new it(s)),i.set(n5.CMP_ID.toString(),new n3(12,0)),i.set(n5.CMP_VERSION.toString(),new n3(12,0)),i.set(n5.CONSENT_SCREEN.toString(),new n3(6,0)),i.set(n5.CONSENT_LANGUAGE.toString(),new ia(2,"EN")),i.set(n5.VENDOR_LIST_VERSION.toString(),new n3(12,0)),i.set(n5.POLICY_VERSION.toString(),new n3(6,2)),i.set(n5.IS_SERVICE_SPECIFIC.toString(),new n9(!1)),i.set(n5.USE_NON_STANDARD_STACKS.toString(),new n9(!1)),i.set(n5.SPECIAL_FEATURE_OPTINS.toString(),new ir([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),i.set(n5.PURPOSE_CONSENTS.toString(),new ir([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),i.set(n5.PURPOSE_LEGITIMATE_INTERESTS.toString(),new ir([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),i.set(n5.PURPOSE_ONE_TREATMENT.toString(),new n9(!1)),i.set(n5.PUBLISHER_COUNTRY_CODE.toString(),new ia(2,"AA")),i.set(n5.VENDOR_CONSENTS.toString(),new id([])),i.set(n5.VENDOR_LEGITIMATE_INTERESTS.toString(),new id([])),i.set(n5.PUBLISHER_RESTRICTIONS.toString(),new il([])),i.set(n5.PUBLISHER_PURPOSES_SEGMENT_TYPE.toString(),new n3(3,3)),i.set(n5.PUBLISHER_CONSENTS.toString(),new ir([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),i.set(n5.PUBLISHER_LEGITIMATE_INTERESTS.toString(),new ir([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1]));var r=new n3(6,0);return i.set(n5.NUM_CUSTOM_PURPOSES.toString(),r),i.set(n5.PUBLISHER_CUSTOM_CONSENTS.toString(),new is(function(){return r.getValue()},[])),i.set(n5.PUBLISHER_CUSTOM_LEGITIMATE_INTERESTS.toString(),new is(function(){return r.getValue()},[])),i.set(n5.VENDORS_ALLOWED_SEGMENT_TYPE.toString(),new n3(3,2)),i.set(n5.VENDORS_ALLOWED.toString(),new id([])),i.set(n5.VENDORS_DISCLOSED_SEGMENT_TYPE.toString(),new n3(3,1)),i.set(n5.VENDORS_DISCLOSED.toString(),new id([])),d(n=o(this,e,[i,[[n5.VERSION.toString(),n5.CREATED.toString(),n5.LAST_UPDATED.toString(),n5.CMP_ID.toString(),n5.CMP_VERSION.toString(),n5.CONSENT_SCREEN.toString(),n5.CONSENT_LANGUAGE.toString(),n5.VENDOR_LIST_VERSION.toString(),n5.POLICY_VERSION.toString(),n5.IS_SERVICE_SPECIFIC.toString(),n5.USE_NON_STANDARD_STACKS.toString(),n5.SPECIAL_FEATURE_OPTINS.toString(),n5.PURPOSE_CONSENTS.toString(),n5.PURPOSE_LEGITIMATE_INTERESTS.toString(),n5.PURPOSE_ONE_TREATMENT.toString(),n5.PUBLISHER_COUNTRY_CODE.toString(),n5.VENDOR_CONSENTS.toString(),n5.VENDOR_LEGITIMATE_INTERESTS.toString(),n5.PUBLISHER_RESTRICTIONS.toString()],[n5.PUBLISHER_PURPOSES_SEGMENT_TYPE.toString(),n5.PUBLISHER_CONSENTS.toString(),n5.PUBLISHER_LEGITIMATE_INTERESTS.toString(),n5.NUM_CUSTOM_PURPOSES.toString(),n5.PUBLISHER_CUSTOM_CONSENTS.toString(),n5.PUBLISHER_CUSTOM_LEGITIMATE_INTERESTS.toString()],[n5.VENDORS_ALLOWED_SEGMENT_TYPE.toString(),n5.VENDORS_ALLOWED.toString()],[n5.VENDORS_DISCLOSED_SEGMENT_TYPE.toString(),n5.VENDORS_DISCLOSED.toString()]]]),"base64UrlEncoder",new ip),t&&t.length>0&&n.decode(t),n}return g(e,ic),u(e,[{key:"encode",value:function(){var e=this.encodeSegmentsToBitStrings(),t=[];return t.push(this.base64UrlEncoder.encode(e[0])),this.getFieldValue(n5.IS_SERVICE_SPECIFIC.toString())?e[1]&&e[1].length>0&&t.push(this.base64UrlEncoder.encode(e[1])):(e[2]&&e[2].length>0&&t.push(this.base64UrlEncoder.encode(e[2])),e[3]&&e[3].length>
10&&t.push(this.base64UrlEncoder.encode(e[3]))),t.join(".")}},{key:"decode",value:function(e){for(var t=e.split("."),n=[],i=0;i<t.length;i++){var s=this.base64UrlEncoder.decode(t[i]);switch(s.substring(0,3)){case"000":n[0]=s;break;case"001":n[3]=s;break;case"010":n[2]=s;break;case"011":n[1]=s;break;default:throw new nW("Unable to decode segment '"+t[i]+"'")}}this.decodeSegmentsFromBitStrings(n)}},{key:"setFieldValue",value:function(t,n){if(C(e,"setFieldValue",this,3)([t,n]),t!==n5.CREATED.toString()&&t!==n5.LAST_UPDATED.toString()){var i=new Date,s=new Date(Date.UTC(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()));this.setFieldValue(n5.CREATED.toString(),s),this.setFieldValue(n5.LAST_UPDATED.toString(),s)}}},{key:"getId",value:function(){return e.ID}},{key:"getName",value:function(){return e.NAME}}])}();d(ig,"ID",2),d(ig,"VERSION",2),d(ig,"NAME","tcfeuv2"),function(e){e.VERSION="Version",e.CREATED="Created",e.LAST_UPDATED="LastUpdated",e.CMP_ID="CmpId",e.CMP_VERSION="CmpVersion",e.CONSENT_SCREEN="ConsentScreen",e.CONSENT_LANGUAGE="ConsentLanguage",e.VENDOR_LIST_VERSION="VendorListVersion",e.TCF_POLICY_VERSION="TcfPolicyVersion",e.USE_NON_STANDARD_STACKS="UseNonStandardStacks",e.SPECIAL_FEATURE_EXPRESS_CONSENT="SpecialFeatureExpressConsent",e.PURPOSES_EXPRESS_CONSENT="PurposesExpressConsent",e.PURPOSES_IMPLIED_CONSENT="PurposesImpliedConsent",e.VENDOR_EXPRESS_CONSENT="VendorExpressConsent",e.VENDOR_IMPLIED_CONSENT="VendorImpliedConsent",e.SEGMENT_TYPE="SegmentType",e.PUB_PURPOSES_EXPRESS_CONSENT="PubPurposesExpressConsent",e.PUB_PURPOSES_IMPLIED_CONSENT="PubPurposesImpliedConsent",e.NUM_CUSTOM_PURPOSES="NumCustomPurposes",e.CUSTOM_PURPOSES_EXPRESS_CONSENT="CustomPurposesExpressConsent",e.CUSTOM_PURPOSES_IMPLIED_CONSENT="CustomPurposesImpliedConsent"}(ih||(ih={}));var iS,iv=function(){function e(t){a(this,e);var n,i=new Map,s=new Date;i.set(ih.VERSION.toString(),new n3(6,e.VERSION)),i.set(ih.CREATED.toString(),new it(s)),i.set(ih.LAST_UPDATED.toString(),new it(s)),i.set(ih.CMP_ID.toString(),new n3(12,0)),i.set(ih.CMP_VERSION.toString(),new n3(12,0)),i.set(ih.CONSENT_SCREEN.toString(),new n3(6,0)),i.set(ih.CONSENT_LANGUAGE.toString(),new ia(2,"EN")),i.set(ih.VENDOR_LIST_VERSION.toString(),new n3(12,0)),i.set(ih.TCF_POLICY_VERSION.toString(),new n3(6,2)),i.set(ih.USE_NON_STANDARD_STACKS.toString(),new n9(!1)),i.set(ih.SPECIAL_FEATURE_EXPRESS_CONSENT.toString(),new ir([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),i.set(ih.PURPOSES_EXPRESS_CONSENT.toString(),new ir([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),i.set(ih.PURPOSES_IMPLIED_CONSENT.toString(),new ir([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),i.set(ih.VENDOR_EXPRESS_CONSENT.toString(),new id([])),i.set(ih.VENDOR_IMPLIED_CONSENT.toString(),new id([])),i.set(ih.SEGMENT_TYPE.toString(),new n3(3,3)),i.set(ih.PUB_PURPOSES_EXPRESS_CONSENT.toString(),new ir([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),i.set(ih.PUB_PURPOSES_IMPLIED_CONSENT.toString(),new ir([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1]));var r=new n3(6,0);return i.set(ih.NUM_CUSTOM_PURPOSES.toString(),r),i.set(ih.CUSTOM_PURPOSES_EXPRESS_CONSENT.toString(),new is(function(){return r.getValue()},[])),i.set(ih.CUSTOM_PURPOSES_IMPLIED_CONSENT.toString(),new is(function(){return r.getValue()},[])),d(n=o(this,e,[i,[[ih.VERSION.toString(),ih.CREATED.toString(),ih.LAST_UPDATED.toString(),ih.CMP_ID.toString(),ih.CMP_VERSION.toString(),ih.CONSENT_SCREEN.toString(),ih.CONSENT_LANGUAGE.toString(),ih.VENDOR_LIST_VERSION.toString(),ih.TCF_POLICY_VERSION.toString(),ih.USE_NON_STANDARD_STACKS.toString(),ih.SPECIAL_FEATURE_EXPRESS_CONSENT.toString(),ih.PURPOSES_EXPRESS_CONSENT.toString(),ih.PURPOSES_IMPLIED_CONSENT.toString(),ih.VENDOR_EXPRESS_CONSENT.toString(),ih.VENDOR_IMPLIED_CONSENT.toString()],[ih.SEGMENT_TYPE.toString(),ih.PUB_PURPOSES_EXPRESS_CONSENT.toString(),ih.PUB_PURPOSES_IMPLIED_CONSENT.toString(),ih.NUM_CUSTOM_PURPOSES.toString(),ih.CUSTOM_PURPOSES_EXPRESS_CONSENT.toString(),ih.CUSTOM_PURPOSES_IMPLIED_CONSENT.toString()]]]),"base64UrlEncoder",new nX),t&&t.length>0&&n.decode(t),n}return g(e,ic),u(e,[{key:"encode",value:function(){var e=this.encodeSegmentsToBitStrings(),t=[];return t.push(this.base64UrlEncoder.encode(e[0])),e[1]&&e[1].length>0&&t.push(this.base64UrlEncoder.encode(e[1])),t.join(".")}},{key:"decode",value:function(e){for(var t=e.split("."),n=[],i=0;i<t.length;i++){var s=this.base64UrlEncoder.decode(t[i]);switch(s.substring(0,3)){case"000":n[0]=s;break;case"011":n[1]=s;break;default:throw new nW("Unable to decode segment '"+t[i]+"'")}}this.decodeSegmentsFromBitStrings(n)}},{key:"setFieldValue",value:function(t,n){if(C(e,"setFieldValue",this,3)([t,n]),t!==ih.C
1REATED.toString()&&t!==ih.LAST_UPDATED.toString()){var i=new Date,s=new Date(Date.UTC(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()));this.setFieldValue(ih.CREATED.toString(),s),this.setFieldValue(ih.LAST_UPDATED.toString(),s)}}},{key:"getId",value:function(){return e.ID}},{key:"getName",value:function(){return e.NAME}}])}();d(iv,"ID",5),d(iv,"VERSION",1),d(iv,"NAME","tcfcav1"),function(e){e.VERSION="Version",e.NOTICE="Notice",e.OPT_OUT_SALE="OptOutSale",e.LSPA_COVERED="LspaCovered"}(iS||(iS={}));var iE=function(){function e(t){a(this,e),d(this,"fields",void 0),this.fields=new Map,this.fields.set(iS.VERSION.toString(),e.VERSION),this.fields.set(iS.NOTICE.toString(),"-"),this.fields.set(iS.OPT_OUT_SALE.toString(),"-"),this.fields.set(iS.LSPA_COVERED.toString(),"-"),t&&t.length>0&&this.decode(t)}return u(e,[{key:"hasField",value:function(e){return this.fields.has(e)}},{key:"getFieldValue",value:function(e){return this.fields.has(e)?this.fields.get(e):null}},{key:"setFieldValue",value:function(e,t){if(!this.fields.has(e))throw new n7(e+" not found");this.fields.set(e,t)}},{key:"toObj",value:function(){var e,t={},n=l(this.fields.keys());try{for(n.s();!(e=n.n()).done;){var i=e.value,s=this.fields.get(i);t[i.toString()]=s}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"encode",value:function(){var e="";return e+=this.getFieldValue(iS.VERSION.toString()),e+=this.getFieldValue(iS.NOTICE.toString()),e+=this.getFieldValue(iS.OPT_OUT_SALE.toString()),e+=this.getFieldValue(iS.LSPA_COVERED.toString())}},{key:"decode",value:function(e){this.setFieldValue(iS.VERSION.toString(),parseInt(e.charAt(0))),this.setFieldValue(iS.NOTICE.toString(),e.charAt(1)),this.setFieldValue(iS.OPT_OUT_SALE.toString(),e.charAt(2)),this.setFieldValue(iS.LSPA_COVERED.toString(),e.charAt(3))}},{key:"getId",value:function(){return e.ID}},{key:"getName",value:function(){return e.NAME}}])}();d(iE,"ID",6),d(iE,"VERSION",1),d(iE,"NAME","uspv1");var iI,iT=u(function e(){a(this,e)},null,[{key:"encode",value:function(e,t,n){for(var i="",s=0;s<e.length;s++)i+=nK.encode(e[s],t);for(;i.length<t*n;)i+="0";return i}},{key:"decode",value:function(e,t,n){if(!/^[0-1]*$/.test(e))throw new nW("Undecodable FixedInteger '"+e+"'");if(e.length>t*n||e.length%t!=0)throw new nW("Undecodable FixedIntegerList '"+e+"'");for(;e.length<t*n;)e+="0";e.length>t*n&&(e=e.substring(0,t*n));for(var i=[],s=0;s<e.length;s+=t)i.push(nK.decode(e.substring(s,s+t)));for(;i.length<n;)i.push(0);return i}}]),iC=function(){function e(t,n){var i;return a(this,e),d(i=o(this,e),"elementBitStringLength",void 0),d(i,"numElements",void 0),i.elementBitStringLength=t,i.numElements=n.length,i.setValue(n),i}return g(e,n1),u(e,[{key:"encode",value:function(){return iT.encode(this.value,this.elementBitStringLength,this.numElements)}},{key:"decode",value:function(e){this.value=iT.decode(e,this.elementBitStringLength,this.numElements)}},{key:"substring",value:function(e,t){return e.substring(t,t+this.elementBitStringLength*this.numElements)}},{key:"getValue",value:function(){return _(C(e,"getValue",this,3)([]))}},{key:"setValue",value:function(t){for(var n=_(t),i=n.length;i<this.numElements;i++)n.push(0);n.length>this.numElements&&(n=n.slice(0,this.numElements)),C(e,"setValue",this,3)([n])}}])}();!function(e){e.VERSION="Version",e.SHARING_NOTICE="SharingNotice",e.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",e.SHARING_OPT_OUT_NOTICE="SharingOptOutNotice",e.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",e.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE="SensitiveDataProcessingOptOutNotice",e.SENSITIVE_DATA_LIMIT_USE_NOTICE="SensitiveDataLimitUseNotice",e.SALE_OPT_OUT="SaleOptOut",e.SHARING_OPT_OUT="SharingOptOut",e.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",e.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",e.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",e.PERSONAL_DATA_CONSENTS="PersonalDataConsents",e.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",e.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",e.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",e.GPC_SEGMENT_TYPE="GpcSegmentType",e.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",e.GPC="Gpc"}(iI||(iI={}));var i_,iy=function(){function e(t){a(this,e);var n,i=new Map;return i.set(iI.VERSION.toString(),new n3(6,e.VERSION)),i.set(iI.SHARING_NOTICE.toString(),new n3(2,0)),i.set(iI.SALE_OPT_OUT_NOTICE.toString(),new n3(2,0)),i.set(iI.SHARING_OPT_OUT_NOTICE.toString(),new n3(2,0)),i.set(iI.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new n3(2,0)),i.set(iI.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE.toString(),new n3(2,0)),i.set(iI.SENSITIVE_DATA_LIMIT_USE_NOTICE.toString(),new n3(2,0)),i.set(iI.SALE_OPT_OUT.toString(),new n3(2,0)),i.set(iI.SHARING_OPT_OUT.toString(),new n3(2,0)),i.set(iI.TARGETED_ADVERTISING_OPT_OUT.toString(),new n3(2,0)),i.set(iI.SENSITIVE_DATA_PROCESSING.toString(),new iC(2,[0,0,0,0,0,0,0,0,0,0,0,0])),i.set(iI.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new iC(2,[0,0])),i.set(iI.PERSONAL_DATA_CONSENTS.toString(),new n3(2,0)),i.set(iI.MSPA_COVERED_TRANSACTION.toString(),new n3(2,0)),i.set(iI.MSPA_OPT_OUT_OPTION_MODE.toString(),new n3(2,0)),i.set(iI.MSPA_SERVICE_PROVIDER_MODE.toString(),new n3(2,0)),i.set(iI.GPC_SEGMENT_TYPE.toString(),new n3(2,1)),i.set(iI.GPC_SEGMENT_INCLUDED.toString(),new n9(!0)),i.set(iI.GPC.toString(),new n9(!1)),d(n=o(this,e,[i,[[iI.VERSION.toString(),iI.SHARING_NOTICE.toString(),iI.SALE_OPT_OUT_NOTICE.toString(),iI.SHARING_OPT_OUT_NOTICE.toString(),iI.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),iI.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE.toString(),iI.SENSITIVE_DATA_LIMIT_USE_NOTICE.toString(),iI.SALE_OPT_OUT.toString(),iI.SHARING_OPT_OUT.toString(),iI.TARGETED_ADVERTISING_OPT_OUT.toString(),iI.SENSITIVE_DATA_PROCESSING.toString(),iI.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),iI.PERSONAL_DATA_CONSENTS.toString(),iI.MSPA_COVERED_TRANSACTION.toString(),iI.MSPA_OPT_OUT_OPTION_MODE.toString(),iI.MSPA_SERVICE_PROVIDER_MODE.toString()],[iI.GPC_SEGMENT_TYPE.toString(),iI.GPC.toString()]]]),"base64UrlEncoder",new nX),t&&t.length>0&&n.decode(t),n}return g(e,ic),u(e,[{key:"encode",value:function(){var e=this.encodeSegmentsToBitStrings(),t=[];return t.push(this.base64UrlEncoder.encode(e[0])),e[1]&&e[1].length>0&&!0===this.fields.get(iI.GPC_SEGMENT_INCLUDED).getValue()&&t.pu
1sh(this.base64UrlEncoder.encode(e[1])),t.join(".")}},{key:"decode",value:function(e){for(var t=e.split("."),n=[],i=!1,s=0;s<t.length;s++){var r=this.base64UrlEncoder.decode(t[s]);switch(r.substring(0,2)){case"00":n[0]=r;break;case"01":i=!0,n[1]=r;break;default:throw new nW("Unable to decode segment '"+t[s]+"'")}}this.decodeSegmentsFromBitStrings(n),this.fields.get(iI.GPC_SEGMENT_INCLUDED).setValue(i)}},{key:"getId",value:function(){return e.ID}},{key:"getName",value:function(){return e.NAME}}])}();d(iy,"ID",7),d(iy,"VERSION",1),d(iy,"NAME","usnatv1"),function(e){e.VERSION="Version",e.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",e.SHARING_OPT_OUT_NOTICE="SharingOptOutNotice",e.SENSITIVE_DATA_LIMIT_USE_NOTICE="SensitiveDataLimitUseNotice",e.SALE_OPT_OUT="SaleOptOut",e.SHARING_OPT_OUT="SharingOptOut",e.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",e.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",e.PERSONAL_DATA_CONSENTS="PersonalDataConsents",e.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",e.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",e.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",e.GPC_SEGMENT_TYPE="GpcSegmentType",e.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",e.GPC="Gpc"}(i_||(i_={}));var iA,im=function(){function e(t){a(this,e);var n,i=new Map;return i.set(i_.VERSION.toString(),new n3(6,e.VERSION)),i.set(i_.SALE_OPT_OUT_NOTICE.toString(),new n3(2,0)),i.set(i_.SHARING_OPT_OUT_NOTICE.toString(),new n3(2,0)),i.set(i_.SENSITIVE_DATA_LIMIT_USE_NOTICE.toString(),new n3(2,0)),i.set(i_.SALE_OPT_OUT.toString(),new n3(2,0)),i.set(i_.SHARING_OPT_OUT.toString(),new n3(2,0)),i.set(i_.SENSITIVE_DATA_PROCESSING.toString(),new iC(2,[0,0,0,0,0,0,0,0,0])),i.set(i_.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new iC(2,[0,0])),i.set(i_.PERSONAL_DATA_CONSENTS.toString(),new n3(2,0)),i.set(i_.MSPA_COVERED_TRANSACTION.toString(),new n3(2,0)),i.set(i_.MSPA_OPT_OUT_OPTION_MODE.toString(),new n3(2,0)),i.set(i_.MSPA_SERVICE_PROVIDER_MODE.toString(),new n3(2,0)),i.set(i_.GPC_SEGMENT_TYPE.toString(),new n3(2,1)),i.set(i_.GPC_SEGMENT_INCLUDED.toString(),new n9(!0)),i.set(i_.GPC.toString(),new n9(!1)),d(n=o(this,e,[i,[[i_.VERSION.toString(),i_.SALE_OPT_OUT_NOTICE.toString(),i_.SHARING_OPT_OUT_NOTICE.toString(),i_.SENSITIVE_DATA_LIMIT_USE_NOTICE.toString(),i_.SALE_OPT_OUT.toString(),i_.SHARING_OPT_OUT.toString(),i_.SENSITIVE_DATA_PROCESSING.toString(),i_.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),i_.PERSONAL_DATA_CONSENTS.toString(),i_.MSPA_COVERED_TRANSACTION.toString(),i_.MSPA_OPT_OUT_OPTION_MODE.toString(),i_.MSPA_SERVICE_PROVIDER_MODE.toString()],[i_.GPC_SEGMENT_TYPE.toString(),i_.GPC.toString()]]]),"base64UrlEncoder",new nX),t&&t.length>0&&n.decode(t),n}return g(e,ic),u(e,[{key:"encode",value:function(){var e=this.encodeSegmentsToBitStrings(),t=[];return t.push(this.base64UrlEncoder.encode(e[0])),e[1]&&e[1].length>0&&!0===this.fields.get(i_.GPC_SEGMENT_INCLUDED).getValue()&&t.push(this.base64UrlEncoder.encode(e[1])),t.join(".")}},{key:"decode",value:function(e){for(var t=e.split("."),n=[],i=!1,s=0;s<t.length;s++){var r=this.base64UrlEncoder.decode(t[s]);switch(r.substring(0,2)){case"00":n[0]=r;break;case"01":i=!0,n[1]=r;break;default:throw new nW("Unable to decode segment '"+t[s]+"'")}}this.decodeSegmentsFromBitStrings(n),this.fields.get(i_.GPC_SEGMENT_INCLUDED).setValue(i)}},{key:"getId",value:function(){return e.ID}},{key:"getName",value:function(){return e.NAME}}])}();d(im,"ID",8),d(im,"VERSION",1),d(im,"NAME","uscav1"),function(e){e.VERSION="Version",e.SHARING_NOTICE="SharingNotice",e.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",e.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",e.SALE_OPT_OUT="SaleOptOut",e.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",e.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",e.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",e.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",e.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",e.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode"}(iA||(iA={}));var iO,iN=function(){function e(t){a(this,e);var n,i=new Map;return i.set(iA.VERSION.toString(),new n3(6,e.VERSION)),i.set(iA.SHARING_NOTICE.toString(),new n3(2,0)),i.set(iA.SALE_OPT_OUT_NOTICE.toString(),new n3(2,0)),i.set(iA.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new n3(2,0)),i.set(iA.SALE_OPT_OUT.toString(),new n3(2,0)),i.set(iA.TARGETED_ADVERTISING_OPT_OUT.toString(),new n3(2,0)),i.set(iA.SENSITIVE_DATA_PROCESSING.toString(),new iC(2,[0,0,0,0,0,0,0,0])),i.set(iA.KNOW
1N_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new n3(2,0)),i.set(iA.MSPA_COVERED_TRANSACTION.toString(),new n3(2,0)),i.set(iA.MSPA_OPT_OUT_OPTION_MODE.toString(),new n3(2,0)),i.set(iA.MSPA_SERVICE_PROVIDER_MODE.toString(),new n3(2,0)),d(n=o(this,e,[i,[iA.VERSION.toString(),iA.SHARING_NOTICE.toString(),iA.SALE_OPT_OUT_NOTICE.toString(),iA.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),iA.SALE_OPT_OUT.toString(),iA.TARGETED_ADVERTISING_OPT_OUT.toString(),iA.SENSITIVE_DATA_PROCESSING.toString(),iA.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),iA.MSPA_COVERED_TRANSACTION.toString(),iA.MSPA_OPT_OUT_OPTION_MODE.toString(),iA.MSPA_SERVICE_PROVIDER_MODE.toString()]]),"base64UrlEncoder",new nX),t&&t.length>0&&n.decode(t),n}return g(e,n4),u(e,[{key:"encode",value:function(){return this.base64UrlEncoder.encode(this.encodeToBitString())}},{key:"decode",value:function(e){this.decodeFromBitString(this.base64UrlEncoder.decode(e))}},{key:"getId",value:function(){return e.ID}},{key:"getName",value:function(){return e.NAME}}])}();d(iN,"ID",9),d(iN,"VERSION",1),d(iN,"NAME","usvav1"),function(e){e.VERSION="Version",e.SHARING_NOTICE="SharingNotice",e.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",e.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",e.SALE_OPT_OUT="SaleOptOut",e.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",e.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",e.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",e.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",e.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",e.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",e.GPC_SEGMENT_TYPE="GpcSegmentType",e.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",e.GPC="Gpc"}(iO||(iO={}));var ib,iD=function(){function e(t){a(this,e);var n,i=new Map;return i.set(iO.VERSION.toString(),new n3(6,e.VERSION)),i.set(iO.SHARING_NOTICE.toString(),new n3(2,0)),i.set(iO.SALE_OPT_OUT_NOTICE.toString(),new n3(2,0)),i.set(iO.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new n3(2,0)),i.set(iO.SALE_OPT_OUT.toString(),new n3(2,0)),i.set(iO.TARGETED_ADVERTISING_OPT_OUT.toString(),new n3(2,0)),i.set(iO.SENSITIVE_DATA_PROCESSING.toString(),new iC(2,[0,0,0,0,0,0,0])),i.set(iO.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new n3(2,0)),i.set(iO.MSPA_COVERED_TRANSACTION.toString(),new n3(2,0)),i.set(iO.MSPA_OPT_OUT_OPTION_MODE.toString(),new n3(2,0)),i.set(iO.MSPA_SERVICE_PROVIDER_MODE.toString(),new n3(2,0)),i.set(iO.GPC_SEGMENT_TYPE.toString(),new n3(2,1)),i.set(iO.GPC_SEGMENT_INCLUDED.toString(),new n9(!0)),i.set(iO.GPC.toString(),new n9(!1)),d(n=o(this,e,[i,[[iO.VERSION.toString(),iO.SHARING_NOTICE.toString(),iO.SALE_OPT_OUT_NOTICE.toString(),iO.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),iO.SALE_OPT_OUT.toString(),iO.TARGETED_ADVERTISING_OPT_OUT.toString(),iO.SENSITIVE_DATA_PROCESSING.toString(),iO.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),iO.MSPA_COVERED_TRANSACTION.toString(),iO.MSPA_OPT_OUT_OPTION_MODE.toString(),iO.MSPA_SERVICE_PROVIDER_MODE.toString()],[iO.GPC_SEGMENT_TYPE.toString(),iO.GPC.toString()]]]),"base64UrlEncoder",new nX),t&&t.length>0&&n.decode(t),n}return g(e,ic),u(e,[{key:"encode",value:function(){var e=this.encodeSegmentsToBitStrings(),t=[];return t.push(this.base64UrlEncoder.encode(e[0])),e[1]&&e[1].length>0&&!0===this.fields.get(iO.GPC_SEGMENT_INCLUDED).getValue()&&t.push(this.base64UrlEncoder.encode(e[1])),t.join(".")}},{key:"decode",value:function(e){for(var t=e.split("."),n=[],i=!1,s=0;s<t.length;s++){var r=this.base64UrlEncoder.decode(t[s]);switch(r.substring(0,2)){case"00":n[0]=r;break;case"01":i=!0,n[1]=r;break;default:throw new nW("Unable to decode segment '"+t[s]+"'")}}this.decodeSegmentsFromBitStrings(n),this.fields.get(iO.GPC_SEGMENT_INCLUDED).setValue(i)}},{key:"getId",value:function(){return e.ID}},{key:"getName",value:function(){return e.NAME}}])}();d(iD,"ID",10),d(iD,"VERSION",1),d(iD,"NAME","uscov1"),function(e){e.VERSION="Version",e.SHARING_NOTICE="SharingNotice",e.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",e.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",e.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE="SensitiveDataProcessingOptOutNotice",e.SALE_OPT_OUT="SaleOptOut",e.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",e.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",e.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",e.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",e.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",e.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode"}(ib||(ib={}));var iR,iw=function(){function e(t){a(this,e);var n,i=new Map;return i.set(ib.VERSION.toString(),new n3(6,e.VERSION)),i.set(ib.SHARING_NOTICE.toString(),new n3(2,0)),i.set(ib.SALE_OPT_OUT_NOTICE.toString(),new n3(2,0)),i.set(ib.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new n3(2,0)),i.set(ib.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE.toString(),new n3(2,0)),i.set(ib.SALE_OPT_OUT.toString(),new n3(2,0)),i.set(ib.TARGETED_ADVERTISING_OPT_OUT.toString(),new n3(2,0)),i.set(ib.SENSITIVE_DATA_PROCESSING.toString(),new iC(2,[0,0,0,0,0,0,0,0])),i.set(ib.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new n3(2,0)),i.set(ib.MSPA_COVERED_TRANSACTION.toString(),new n3(2,0)),i.set(ib.MSPA_OPT_OUT_OPTION_MODE.toString(),new n3(2,0)),i.set(ib.MSPA_SERVICE_PROVIDER_MODE.toString(),new n3(2,0)),d(n=o(this,e,[i,[ib.VERSION.toString(),ib.SHARING_NOTICE.toString(),ib.SALE_OPT_OUT_NOTICE.toString(),ib.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),ib.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE.toString(),ib.SALE_OPT_OUT.toString(),ib.TARGETED_ADVERTISING_OPT_OUT.toString(),ib.SENSITIVE_DATA_PROCESSING.toString(),ib.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),ib.MSPA_COVERED_TRANSACTION.toString(),ib.MSPA_OPT_OUT_OPTION_MODE.toString(),ib.MSPA_SERVICE_PROVIDER_MODE.toString()]]),"base64UrlEncoder",new nX),t&&t.length>0&&n.decode(t),n}return g(e,n4),u(e,[{key:"encode",value:function(){return this.base64UrlEncoder.encode(this.encodeToBitString())}},{key:"decode",value:function(e){this.decodeFromBitString(this.base64UrlEncoder.decode(e))}},{key:"getId",value:function(){return e.ID}},{key:"getName",value:function(){return e.NAME}}])}();d(iw,"ID",11),d(iw,"VERSION",1),d(iw,"NAME","usutv1"),function(e){e.VERSION="Version",e.SHARING_NOTICE="SharingNotice",e.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",e.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",e.SALE_OPT_OUT="SaleOptOut",e.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",e.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",e.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",e.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",e.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",e.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",e.GPC_SEGMENT_TYPE="GpcSegmentType",e.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",e.GPC="Gpc"}(iR||(iR={}));var iL=function(){function e(t){a(this,e);var n,i=new Map;return i.set(iR.VERSION.toString(),new n3(6,e.VERSION)),i.set(iR.SHARING_NOTICE.toString(),new n3(2,0)),i.set(iR.SALE_OPT_OUT_NOTICE.toString(),new n3(2,0)),i.set(iR.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new n3(2,0)),i.set(iR.SALE_OPT_OUT.toString(),new n3(2,0)),i.set(iR.TARGETED_ADVERTISING_OPT_OUT.toString(),new n3(2,0)),i.set(iR.SENSITIVE_DATA_PROCESSING.toString(),new iC(2,[0,0,0,0,0,0,0,0])),i.set(iR.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new iC(2,[0,0,0])),i.set(iR.MSPA_COVERED_TRANSACTION.toString(),new n3(2,0)),i.set(iR.MSPA_OPT_OUT_OPTION_MODE.toString(),new n3(2,0)),i.set(iR.MSPA_SERVICE_PROVIDER_MODE.toString(),new n3(2,0)),i.set(iR.GPC_SEGMENT_TYPE.toString(),new n3(2,1)),i.set(iR.GPC_SEGMENT_INCLUDED.toString(),new n9(!0)),i.set(iR.GPC.toString(),new n9(!1)),d(n=o(this,e,[i,[[iR.VERSION.toString(),iR.SHARING_NOTICE.toString(),iR.SALE_OPT_OUT_NOTICE.toString(),iR.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),iR.SALE_OPT_OUT.toString(),iR.TARGETED_ADVERTISING_OPT_OUT.toString(),iR.SENSITIVE_DATA_PROCESSING.toString(),iR.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),iR.MSPA_COVERED_TRANSACTION.toString(),iR.MSPA_OPT_OUT_OPTION_MODE.toString(),iR.MSPA_SERVICE_PROVIDER_MODE.toString()],[iR.GPC_SEGMENT_TYPE.toString(),iR.GPC.toString()]]]),"base64UrlEncoder",new nX),t&&t.length>0&&n.decode(t),n}return g(e,ic),u(e,[{key:"encode",value:function(){var e=this.encodeSegmentsToBitStrings(),t=[];return t.push(this.base64UrlEncoder.encode(e[0])),e[1]&&e[1].length>0&&!0===this.fields.get(iR.GPC_SEGMENT_INCLUDED).getValue()&&t.pu
1sh(this.base64UrlEncoder.encode(e[1])),t.join(".")}},{key:"decode",value:function(e){for(var t=e.split("."),n=[],i=!1,s=0;s<t.length;s++){var r=this.base64UrlEncoder.decode(t[s]);switch(r.substring(0,2)){case"00":n[0]=r;break;case"01":i=!0,n[1]=r;break;default:throw new nW("Unable to decode segment '"+t[s]+"'")}}this.decodeSegmentsFromBitStrings(n),this.fields.get(iR.GPC_SEGMENT_INCLUDED).setValue(i)}},{key:"getId",value:function(){return e.ID}},{key:"getName",value:function(){return e.NAME}}])}();d(iL,"ID",12),d(iL,"VERSION",1),d(iL,"NAME","usctv1");var iP=u(function e(){a(this,e)});d(iP,"SECTION_ID_NAME_MAP",new Map([[ig.ID,ig.NAME],[iv.ID,iv.NAME],[iE.ID,iE.NAME],[iy.ID,iy.NAME],[im.ID,im.NAME],[iN.ID,iN.NAME],[iD.ID,iD.NAME],[iw.ID,iw.NAME],[iL.ID,iL.NAME]])),d(iP,"SECTION_ORDER",[ig.NAME,iv.NAME,iE.NAME,iy.NAME,im.NAME,iN.NAME,iD.NAME,iw.NAME,iL.NAME]);var iV=u(function e(t){a(this,e),d(this,"sections",new Map),d(this,"encodedString",void 0),d(this,"decoded",void 0),d(this,"dirty",void 0),t?this.encodedString=t:this.encodedString="DBAA",this.decoded=!1,this.dirty=!1},[{key:"setFieldValue",value:function(e,t,n){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new n8(e.message)}var i=null;if(this.sections.has(e)?i=this.sections.get(e):e===iv.NAME?(i=new iv,this.sections.set(iv.NAME,i)):e===ig.NAME?(i=new ig,this.sections.set(ig.NAME,i)):e===iE.NAME?(i=new iE,this.sections.set(iE.NAME,i)):e===iy.NAME?(i=new iy,this.sections.set(iy.NAME,i)):e===im.NAME?(i=new im,this.sections.set(im.NAME,i)):e===iN.NAME?(i=new iN,this.sections.set(iN.NAME,i)):e===iD.NAME?(i=new iD,this.sections.set(iD.NAME,i)):e===iw.NAME?(i=new iw,this.sections.set(iw.NAME,i)):e===iL.NAME&&(i=new iL,this.sections.set(iL.NAME,i)),!i)throw new n7(e+"."+t+" not found");i.setFieldValue(t,n),this.dirty=!0}},{key:"setFieldValueBySectionId",value:function(e,t,n){this.setFieldValue(iP.SECTION_ID_NAME_MAP.get(e),t,n)}},{key:"getFieldValue",value:function(e,t){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new n8(e.message)}return this.sections.has(e)?this.sections.get(e).getFieldValue(t):null}},{key:"getFieldValueBySectionId",value:function(e,t){return this.getFieldValue(iP.SECTION_ID_NAME_MAP.get(e),t)}},{key:"hasField",value:function(e,t){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new n8(e.message)}return!!this.sections.has(e)&&this.sections.get(e).hasField(t)}},{key:"hasFieldBySectionId",value:function(e,t){return this.hasField(iP.SECTION_ID_NAME_MAP.get(e),t)}},{key:"hasSection",value:function(e){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new n8(e.message)}return this.sections.has(e)}},{key:"hasSectionId",value:function(e){return this.hasSection(iP.SECTION_ID_NAME_MAP.get(e))}},{key:"deleteSection",value:function(e){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new n8(e.message)}this.sections.delete(e),this.dirty=!0}},{key:"deleteSectionById",value:function(e){this.deleteSection(iP.SECTION_ID_NAME_MAP.get(e))}},{key:"clear",value:function(){this.sections.clear(),this.encodedString="DBAA",this.decoded=!1,this.dirty=!1}},{key:"getHeader",value:function(){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new n8(e.message)}var e=new n6;return e.setFieldValue("SectionIds",this.getSectionIds()),e.toObj()}},{key:"getSection",value:function(e){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new n8(e.message)}return this.sections.has(e)?this.sections.get(e).toObj():null}},{key:"getSectionIds",value:function(){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new n8(e.message)}for(var e=[],t=0;t<iP.SECTION_ORDER.length;t++){var n=iP.SECTION_ORDER[t];if(this.sections.has(n)){var i=this.sections.get(n);e.push(i.getId())}}return e}},{key:"encode",value:function(){if(!this.dirty)return this.encodedString;if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new n8(e.message)}for(var e=[],t=[],n=0;n<iP.SECTION_ORDER.length;n++){var i=iP.SECTION_ORDER[n];if(this.sections.has(i)){var s=this.sections.get(i);e.push(s.encode()),t.push(s.getId())}}
1var r=new n6;return r.setFieldValue("SectionIds",this.getSectionIds()),e.unshift(r.encode()),this.encodedString=e.join("~"),this.dirty=!1,this.encodedString}},{key:"decode",value:function(e){this.encodedString=e,this.decoded=!1,this.dirty=!0,this.sections.clear();var t=e.split("~"),n=new n6(t[0]);this.sections.set(n6.NAME,n);for(var i=n.getFieldValue("SectionIds"),s=0;s<i.length;s++)if(i[s]===iv.ID){var r=new iv(t[s+1]);this.sections.set(iv.NAME,r)}else if(i[s]===ig.ID){var o=new ig(t[s+1]);this.sections.set(ig.NAME,o)}else if(i[s]===iE.ID){var a=new iE(t[s+1]);this.sections.set(iE.NAME,a)}else if(i[s]===iy.ID){var c=new iy(t[s+1]);this.sections.set(iy.NAME,c)}else if(i[s]===im.ID){var u=new im(t[s+1]);this.sections.set(im.NAME,u)}else if(i[s]===iN.ID){var l=new iN(t[s+1]);this.sections.set(iN.NAME,l)}else if(i[s]===iD.ID){var d=new iD(t[s+1]);this.sections.set(iD.NAME,d)}else if(i[s]===iw.ID){var h=new iw(t[s+1]);this.sections.set(iw.NAME,h)}else if(i[s]===iL.ID){var p=new iL(t[s+1]);this.sections.set(iL.NAME,p)}this.decoded=!0,this.dirty=!1}},{key:"encodeSection",value:function(e){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new n8(e.message)}return this.sections.has(e)?this.sections.get(e).encode():null}},{key:"encodeSectionById",value:function(e){return this.encodeSection(iP.SECTION_ID_NAME_MAP.get(e))}},{key:"decodeSection",value:function(e,t){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new n8(e.message)}var n=null;this.sections.has(e)?n=this.sections.get(e):e===iv.NAME?(n=new iv,this.sections.set(iv.NAME,n)):e===ig.NAME?(n=new ig,this.sections.set(ig.NAME,n)):e===iE.NAME?(n=new iE,this.sections.set(iE.NAME,n)):e===iy.NAME?(n=new iy,this.sections.set(iy.NAME,n)):e===im.NAME?(n=new im,this.sections.set(im.NAME,n)):e===iN.NAME?(n=new iN,this.sections.set(iN.NAME,n)):e===iD.NAME?(n=new iD,this.sections.set(iD.NAME,n)):e===iw.NAME?(n=new iw,this.sections.set(iw.NAME,n)):e===iL.NAME&&(n=new iL,this.sections.set(iL.NAME,n)),n&&(n.decode(t),this.dirty=!0)}},{key:"decodeSectionById",value:function(e,t){this.decodeSection(iP.SECTION_ID_NAME_MAP.get(e),t)}},{key:"toObject",value:function(){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(e){throw new n8(e.message)}for(var e={},t=0;t<iP.SECTION_ORDER.length;t++){var n=iP.SECTION_ORDER[t];this.sections.has(n)&&(e[n]=this.sections.get(n).toObj())}return e}}]),iU=u(function e(){a(this,e),d(this,"gppVersion","1.1"),d(this,"supportedAPIs",[]),d(this,"eventQueue",new nJ(this)),d(this,"cmpStatus",nG.LOADING),d(this,"cmpDisplayStatus",nB.HIDDEN),d(this,"signalStatus",nH.NOT_READY),d(this,"applicableSections",[]),d(this,"gppModel",new iV),d(this,"cmpId",void 0),d(this,"cmpVersion",void 0),d(this,"eventStatus",void 0)},[{key:"reset",value:function(){this.eventQueue.clear(),this.cmpStatus=nG.LOADING,this.cmpDisplayStatus=nB.HIDDEN,this.signalStatus=nH.NOT_READY,this.applicableSections=[],this.supportedAPIs=[],this.gppModel=new iV,delete this.cmpId,delete this.cmpVersion,delete this.eventStatus}}]),iM=u(function e(){a(this,e)},null,[{key:"absCall",value:function(e,t,n,i){return new Promise(function(s,r){var o=new XMLHttpRequest;o.withCredentials=n,o.addEventListener("load",function(){if(o.readyState==XMLHttpRequest.DONE)if(o.status>=200&&o.status<300){var e=o.response;if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}s(e)}else r(Error("HTTP Status: ".concat(o.status," response type: ").concat(o.responseType)))}),o.addEventListener("error",function(){r(Error("error"))}),o.addEventListener("abort",function(){r(Error("aborted"))}),null===t?o.open("GET",e,!0):o.open("POST",e,!0),o.responseType="json",o.timeout=i,o.ontimeout=function(){r(Error("Timeout "+i+"ms "+e))},o.send(t)})}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return this.absCall(e,JSON.stringify(t),n,i)}},{key:"fetch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.absCall(e,null,t,n)}}]),ik=function(){function e(t){var n;return a(this,e),(n=o(this,e,[t])).name="GVLError",n}return g(e,O(Error)),u(e)}(),iF=function(){function e(){a(this,e)}return u(e,[{key:"has",value:function(t){return e.langSet.has(t)}}
1,{key:"forEach",value:function(t){e.langSet.forEach(t)}},{key:"size",get:function(){return e.langSet.size}}])}();d(iF,"langSet",new Set(["BG","CA","CS","DA","DE","EL","EN","ES","ET","FI","FR","HR","HU","IT","JA","LT","LV","MT","NL","NO","PL","PT","RO","RU","SK","SL","SV","TR","ZH"]));var iG=function(){var e,t;function n(){a(this,n),d(this,"vendors",void 0),d(this,"consentLanguages",new iF),d(this,"gvlSpecificationVersion",void 0),d(this,"vendorListVersion",void 0),d(this,"tcfPolicyVersion",void 0),d(this,"lastUpdated",void 0),d(this,"purposes",void 0),d(this,"specialPurposes",void 0),d(this,"features",void 0),d(this,"specialFeatures",void 0),d(this,"stacks",void 0),d(this,"dataCategories",void 0),d(this,"language",n.DEFAULT_LANGUAGE),d(this,"vendorIds",void 0),d(this,"ready",!1),d(this,"fullVendorList",void 0),d(this,"byPurposeVendorMap",void 0),d(this,"bySpecialPurposeVendorMap",void 0),d(this,"byFeatureVendorMap",void 0),d(this,"bySpecialFeatureVendorMap",void 0),d(this,"baseUrl",void 0),d(this,"languageFilename","purposes-[LANG].json")}return u(n,[{key:"changeLanguage",value:(t=r(E().m(function e(t){var n,i,s;return E().w(function(e){for(;;)switch(e.p=e.n){case 0:if(n=t.toUpperCase(),!this.consentLanguages.has(n)){e.n=5;break}if(n===this.language){e.n=4;break}return this.language=n,i=this.baseUrl+this.languageFilename.replace("[LANG]",t),e.p=1,s=this,e.n=2,iM.fetch(i);case 2:s.populate.call(s,e.v),e.n=4;break;case 3:throw e.p=3,new ik("unable to load language: "+e.v.message);case 4:e.n=6;break;case 5:throw new ik("unsupported language ".concat(t));case 6:return e.a(2)}},e,this,[[1,3]])})),function(e){return t.apply(this,arguments)})},{key:"getJson",value:function(){return JSON.parse(JSON.stringify({gvlSpecificationVersion:this.gvlSpecificationVersion,vendorListVersion:this.vendorListVersion,tcfPolicyVersion:this.tcfPolicyVersion,lastUpdated:this.lastUpdated,purposes:this.purposes,specialPurposes:this.specialPurposes,features:this.features,specialFeatures:this.specialFeatures,stacks:this.stacks,dataCategories:this.dataCategories,vendors:this.fullVendorList}))}},{key:"isVendorList",value:function(e){return void 0!==e&&void 0!==e.vendors}},{key:"populate",value:function(e){this.purposes=e.purposes,this.specialPurposes=e.specialPurposes,this.features=e.features,this.specialFeatures=e.specialFeatures,this.stacks=e.stacks,this.dataCategories=e.dataCategories,this.isVendorList(e)&&(this.gvlSpecificationVersion=e.gvlSpecificationVersion,this.tcfPolicyVersion=e.tcfPolicyVersion,this.vendorListVersion=e.vendorListVersion,this.lastUpdated=e.lastUpdated,"string"==typeof this.lastUpdated&&(this.lastUpdated=new Date(this.lastUpdated)),this.vendors=e.vendors,this.fullVendorList=e.vendors,this.mapVendors(),this.ready=!0)}},{key:"mapVendors",value:function(e){var t=this;this.byPurposeVendorMap={},this.bySpecialPurposeVendorMap={},this.byFeatureVendorMap={},this.bySpecialFeatureVendorMap={},Object.keys(this.purposes).forEach(function(e){t.byPurposeVendorMap[e]={legInt:new Set,impCons:new Set,consent:new Set,flexible:new Set}}),Object.keys(this.specialPurposes).forEach(function(e){t.bySpecialPurposeVendorMap[e]=new Set}),Object.keys(this.features).forEach(function(e){t.byFeatureVendorMap[e]=new Set}),Object.keys(this.specialFeatures).forEach(function(e){t.bySpecialFeatureVendorMap[e]=new Set}),Array.isArray(e)||(e=Object.keys(this.fullVendorList).map(function(e){return+e})),this.vendorIds=new Set(e),this.vendors=e.reduce(function(e,n){var i=t.vendors[String(n)];return i&&void 0===i.deletedDate&&(i.purposes.forEach(function(e){t.byPurposeVendorMap[String(e)].consent.add(n)}),i.specialPurposes.forEach(function(e){t.bySpecialPurposeVendorMap[String(e)].add(n)}),i.legIntPurposes&&i.legIntPurposes.forEach(function(e){t.byPurposeVendorMap[String(e)].legInt.add(n)}),i.impConsPurposes&&i.impConsPurposes.forEach(function(e){t.byPurposeVendorMap[String(e)].impCons.add(n)}),i.flexiblePurposes&&i.flexiblePurposes.forEach(function(e){t.byPurposeVendorMap[String(e)].flexible.add(n)}),i.features.forEach(function(e){t.byFeatureVendorMap[String(e)].add(n)}
1),i.specialFeatures.forEach(function(e){t.bySpecialFeatureVendorMap[String(e)].add(n)}),e[n]=i),e},{})}},{key:"getFilteredVendors",value:function(e,t,n,i){var s=this,r=e.charAt(0).toUpperCase()+e.slice(1),o={};return("purpose"===e&&n?this["by"+r+"VendorMap"][String(t)][n]:this["by"+(i?"Special":"")+r+"VendorMap"][String(t)]).forEach(function(e){o[String(e)]=s.vendors[String(e)]}),o}},{key:"getVendorsWithConsentPurpose",value:function(e){return this.getFilteredVendors("purpose",e,"consent")}},{key:"getVendorsWithLegIntPurpose",value:function(e){return this.getFilteredVendors("purpose",e,"legInt")}},{key:"getVendorsWithFlexiblePurpose",value:function(e){return this.getFilteredVendors("purpose",e,"flexible")}},{key:"getVendorsWithSpecialPurpose",value:function(e){return this.getFilteredVendors("purpose",e,void 0,!0)}},{key:"getVendorsWithFeature",value:function(e){return this.getFilteredVendors("feature",e)}},{key:"getVendorsWithSpecialFeature",value:function(e){return this.getFilteredVendors("feature",e,void 0,!0)}},{key:"narrowVendorsTo",value:function(e){this.mapVendors(e)}},{key:"isReady",get:function(){return this.ready}}],[{key:"fromVendorList",value:function(e){var t=new n;return t.populate(e),t}},{key:"fromUrl",value:(e=r(E().m(function e(t){var i,s,r,o,a,c,u,l;return E().w(function(e){for(;;)switch(e.n){case 0:if((i=t.baseUrl)&&0!==i.length){e.n=1;break}throw new ik("Invalid baseUrl: '"+i+"'");case 1:if(!/^https?:\/\/vendorlist\.consensu\.org\//.test(i)){e.n=2;break}throw new ik("Invalid baseUrl!  You may not pull directly from vendorlist.consensu.org and must provide your own cache");case 2:if(i.length>0&&"/"!==i[i.length-1]&&(i+="/"),(s=new n).baseUrl=i,t.languageFilename?s.languageFilename=t.languageFilename:s.languageFilename="purposes-[LANG].json",!(t.version>0)){e.n=4;break}return(r=t.versionedFilename)||(r="archives/vendor-list-v[VERSION].json"),o=i+r.replace("[VERSION]",String(t.version)),u=s,e.n=3,iM.fetch(o);case 3:u.populate.call(u,e.v),e.n=6;break;case 4:return(a=t.latestFilename)||(a="vendor-list.json"),c=i+a,l=s,e.n=5,iM.fetch(c);case 5:l.populate.call(l,e.v);case 6:return e.a(2,s)}},e)})),function(t){return e.apply(this,arguments)})},{key:"isInstanceOf",value:function(e){return"object"===A(e)&&"function"==typeof e.narrowVendorsTo}}])}();d(iG,"DEFAULT_LANGUAGE","EN");var iB,ix,iH=function(){var e;return u(function e(t,n,i){a(this,e),d(this,"callResponder",void 0),d(this,"cmpApiContext",void 0),this.cmpApiContext=new iU,this.cmpApiContext.cmpId=t,this.cmpApiContext.cmpVersion=n,this.callResponder=new nY(this.cmpApiContext,i)},[{key:"fireEvent",value:function(e,t){this.cmpApiContext.eventQueue.exec(e,t)}},{key:"fireErrorEvent",value:function(e){this.cmpApiContext.eventQueue.exec("error",e)}},{key:"fireSectionChange",value:function(e){this.cmpApiContext.eventQueue.exec("sectionChange",e)}},{key:"getEventStatus",value:function(){return this.cmpApiContext.eventStatus}},{key:"setEventStatus",value:function(e){this.cmpApiContext.eventStatus=e}},{key:"getCmpStatus",value:function(){return this.cmpApiContext.cmpStatus}},{key:"setCmpStatus",value:function(e){this.cmpApiContext.cmpStatus=e,this.cmpApiContext.eventQueue.exec("cmpStatus",e)}},{key:"getCmpDisplayStatus",value:function(){return this.cmpApiContext.cmpDisplayStatus}},{key:"setCmpDisplayStatus",value:function(e){this.cmpApiContext.cmpDisplayStatus=e,this.cmpApiContext.eventQueue.exec("cmpDisplayStatus",e)}},{key:"getSignalStatus",value:function(){return this.cmpApiContext.signalStatus}},{key:"setSignalStatus",value:function(e){this.cmpApiContext.signalStatus=e,this.cmpApiContext.eventQueue.exec("signalStatus",e)}},{key:"getApplicableSections",value:function(){return this.cmpApiContext.applicableSections}},{key:"setApplicableSections",value:function(e){this.cmpApiContext.applicableSections=e}},{key:"getSupportedAPIs",value:function(){return this.cmpApiContext.supportedAPIs}},{key:"setSupportedAPIs",value:function(e){this.cmpApiContext.supportedAPIs=e}},{key:"setGppString",value:function(e){this.cmpApiContext.gppModel.decode(e)}},{key:"getGppString",value:function(){return this.cmpApiContext.gppModel.encode()}},{key:"setSectionString",value:function(e,t){this.cmpApiContext.gppModel.decodeSection(e,t)}},{key:"setSectionStringById",value:function(e,t){this.setSectionString(iP.SECTION_ID_NAME_MAP.get(e),t)}},{key:"getSectionString",value:function(e){return this.cmpApiContext.gppModel.encodeSection(e)}}
1,{key:"getSectionStringById",value:function(e){return this.getSectionString(iP.SECTION_ID_NAME_MAP.get(e))}},{key:"setFieldValue",value:function(e,t,n){this.cmpApiContext.gppModel.setFieldValue(e,t,n)}},{key:"setFieldValueBySectionId",value:function(e,t,n){this.setFieldValue(iP.SECTION_ID_NAME_MAP.get(e),t,n)}},{key:"getFieldValue",value:function(e,t){return this.cmpApiContext.gppModel.getFieldValue(e,t)}},{key:"getFieldValueBySectionId",value:function(e,t){return this.getFieldValue(iP.SECTION_ID_NAME_MAP.get(e),t)}},{key:"getSection",value:function(e){return this.cmpApiContext.gppModel.getSection(e)}},{key:"getSectionById",value:function(e){return this.getSection(iP.SECTION_ID_NAME_MAP.get(e))}},{key:"hasSection",value:function(e){return this.cmpApiContext.gppModel.hasSection(e)}},{key:"hasSectionId",value:function(e){return this.hasSection(iP.SECTION_ID_NAME_MAP.get(e))}},{key:"deleteSection",value:function(e){this.cmpApiContext.gppModel.deleteSection(e)}},{key:"deleteSectionById",value:function(e){this.deleteSection(iP.SECTION_ID_NAME_MAP.get(e))}},{key:"clear",value:function(){this.cmpApiContext.gppModel.clear()}},{key:"getObject",value:function(){return this.cmpApiContext.gppModel.toObject()}},{key:"getGvlFromVendorList",value:function(e){return iG.fromVendorList(e)}},{key:"getGvlFromUrl",value:(e=r(E().m(function e(t){return E().w(function(e){for(;;)if(0===e.n)return e.a(2,iG.fromUrl(t))},e)})),function(t){return e.apply(this,arguments)})}])}(),ij={tcfeuv2:2,tcfcav1:5,uspv1:6,usnat:7,usca:8,usva:9,usco:10,usut:11,usct:12},iY=function(){function e(e,t){var n=this;this.setApplicableSections=function(e){if(n.gppEnabled)try{n.gppApi.setApplicableSections([ij[e]])}catch(t){throw Error('GppData - setApplicableSections - unrecognized legalframework "'.concat(e,'"'))}},this.setCmpSignalReady=function(){return P(n,void 0,void 0,function(){return V(this,function(e){return this.gppEnabled&&this.gppApi.setSignalStatus(nH.READY),[2]})})},this.setCmpStatusLoaded=function(){return P(n,void 0,void 0,function(){return V(this,function(e){return this.gppEnabled&&this.gppApi.setCmpStatus(nG.LOADED),[2]})})},this.setCmpDisplayHidden=function(){return P(n,void 0,void 0,function(){return V(this,function(e){return this.gppEnabled&&this.gppApi.setCmpDisplayStatus(nB.HIDDEN),[2]})})},this.setCmpDisplayVisible=function(){return P(n,void 0,void 0,function(){return V(this,function(e){return this.gppEnabled&&this.gppApi.setCmpDisplayStatus(nB.VISIBLE),[2]})})},this.setSectionString=function(e,t){return P(n,void 0,void 0,function(){return V(this,function(n){return""!==e&&this.gppEnabled&&(this.gppApi.setSectionString(t,e),this.gppApi.fireSectionChange(t)),[2]})})},this.gppEnabled=t||!1,this.cmpId=(null==e?void 0:e.tcf2.cmpId)||5,this.cmpVersion=(null==e?void 0:e.tcf2.cmpVersion)||parseInt("3",10),this.gppApi=new iH(this.cmpId,this.cmpVersion),this.gppApi.setCmpStatus(nG.LOADING),this.gppApi.setSignalStatus(nH.NOT_READY)}return e.getInstance=function(t,n){var i,s=(null==(i=e.instance)?void 0:i.gppEnabled)||!1;return n||s?(e.instance||(e.instance=new e(t,n)),e.instance):null},e.prototype.resetGpp=function(){this.gppApi={}},e}(),iJ=function(){function e(){this.primaryLanguage="",this.apiInstance=tk.getInstance()}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.prototype.setPrimaryLanguage=function(e){this.primaryLanguage=e},e.prototype.getPrimaryLanguage=function(){return this.primaryLanguage},e.prototype.resolveLanguage=function(e){return void 0===e&&(e=!1),P(this,void 0,void 0,function(){var t,n,i,s,r;return V(this,function(o){switch(o.label){case 0:return t=eT.fetchUserCountryResponse(),n=[],t?(tw.getInstance().setUserCountryData({code:t.countryCode,name:t.countryName,regionCode:t.regionCode}),[3,3]):[3,1];case 1:return[4,this.apiInstance.fetchAvailableLanguages()];case 2:n=o.sent(),o.label=3;case 3:if(!e){if(this.primaryLanguage)return this.apiInstance.setJsonFileLanguage(this.primaryLanguage),[2];if(i=eT.fetchLanguage())return this.apiInstance.setJsonFileLanguage(i),[2]}return n.length?[3,5]:[4,this.apiInstance.fetchAvailableLanguages()];case 4:n=o.sent(),o.label=5;case 5:return(s=iK(n))?this.apiInstance.setJsonFileLanguage(s):(r=iW(n))?this.apiInstance.setJsonFileLanguage(r):n.length>0?this.apiInstance.setJsonFileLanguage(n[0]):this.apiInstance.setJsonFileLanguage("en"),[2]}})})},e}(),iW=function(e){var t=window.navigator;
1if(eA(t.languages))for(var n=0;n<t.languages.length;n+=1){var i=iq(e,t.languages[n]);if(i)return i}return iq(e,null!=t.language?t.language:t.userLanguage)},iK=function(e){var t=document.documentElement.lang;return t?iq(e,t):null},iq=function(e,t){if(t){var n=t.toLowerCase().replace("-","_");if(eC(e,n))return n;var i=t.slice(0,2);if(eC(e,i))return i}return null};!function(e){e.API_INVALID_COMMAND="Usercentrics: (__uspapi) Invalid command: ",e.API_INVALID_CALLBACK="Usercentrics: (__uspapi) callback parameter not a function",e.INVALID_STRING="Usercentrics: ccpa string is invalid",e.RESHOW_AFTER_DAYS_INVALID="Usercentrics: reshow after days must be greater than 364.",e.SETTINGS_UNDEFINED="Usercentrics: ccpa is missing in setting"}(iB||(iB={})),function(e){e.ACCEPT="Y",e.DENY="N",e.UNKNOWN="-"}(ix||(ix={}));var iQ=function(){function e(){this.apiInstance=tk.getInstance()}return e.prototype.getTargets=function(e){var t=this;return e.reduce(function(e,n){if("mark"!==n.entryType&&"measure"!==n.entryType&&"paint"!==n.entryType&&!n.name.startsWith("data:")&&!["visible"].includes(n.name)&&!/^https:\/\/([a-z0-9.]+).usercentrics\.eu/.test(n.name)){var i=n.name,s=t.extractSubdomain(i);if(-1===e.indexOf(s))return M(M([],U(e),!1),[s],!1)}return e},[])},e.prototype.initTagLogger=function(){var e=this;window.addEventListener("beforeunload",function(){document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&e.updateLog()})})},e.prototype.extractSubdomain=function(e){var t,n=e.split("/");return e.indexOf("://")>-1?(t="".concat(n[2]),n[3]&&(t+="/".concat(n[3]))):(t="".concat(n[0]),n[1]&&(t+="/".concat(n[1]))),t="".concat(t.split("?")[0])},e.prototype.updateLog=function(){if(Object.prototype.hasOwnProperty.call(window,"performance")&&"function"==typeof performance.getEntries){var e=window.performance.getEntries();this.apiInstance.updateTagLoggerData(this.getTargets(e))}else console.log("UC Warning: tag logger functionality is not supported by your browser.")},e}(),iz=function(){function e(){this.initOptions=null,this.isFirstTimePageVisit=!0,this.selectedLayer=null,this.shouldAcceptAllImplicitly=null,this.shouldDenyAllExplicitly=null,this.shouldShowFirstLayerOnVersionChange=!1,this.variant=null,this.ampInstance=to.getInstance(),this.settingsV2=nE.getInstance(),this.rulesetInstance=nc.getInstance(),this.apiInstance=tk.getInstance()}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.resetInstance=function(){e.instance.selectedLayer=null,e.instance.variant=null,e.instance.shouldAcceptAllImplicitly=null,e.instance.initOptions=null},e.prototype.init=function(e){return P(this,void 0,void 0,function(){var t,n;return V(this,function(i){switch(i.label){case 0:return this.initOptions=e,this.isFirstTimePageVisit=this.isFirstTimeVisit(),null!==this.shouldAcceptAllImplicitly?[3,2]:(t=this,[4,this.settingsV2.shouldAcceptAllImplicitlyOnInit()]);case 1:t.shouldAcceptAllImplicitly=i.sent(),i.label=2;case 2:return null!==this.shouldDenyAllExplicitly?[3,4]:(n=this,[4,this.settingsV2.shouldDenyAllExplicitlyOnInit()]);case 3:n.shouldDenyAllExplicitly=i.sent(),i.label=4;case 4:return this.shouldShowFirstLayerOnVersionChange=this.settingsV2.shouldShowFirstLayerOnVersionChange(),[2]}})})},e.prototype.isFirstTimeVisit=function(){return!eT.settingsExist()},e.prototype.shouldShowNone=function(){return P(this,void 0,void 0,function(){var e,t;return V(this,function(n){switch(n.label){case 0:return e=0===this.variant,this.apiInstance.getRulesetId()&&this.rulesetInstance.getIsUsingNoShow()?[2,this.rulesetInstance.getNoShow()]:null!==this.shouldAcceptAllImplicitly?[3,2]:(t=this,[4,this.settingsV2.shouldAcceptAllImplicitlyOnInit()]);case 1:t.shouldAcceptAllImplicitly=n.sent(),n.label=2;case 2:return[2,this.shouldAcceptAllImplicitly&&!e]}})})},e.prototype.shouldManuallyResurface=function(){var e=this.settingsV2.core,t=eT.fetchServices(),n=0===this.variant,i=null;if(t&&t.length>0){if(n)i=eT.getCcpaTimeStamp();else{var s=ex(t.reduce(function(e,t){return M(M([],U(e),!1),U(t.history),!1)},[]));e&&s.length>0&&(i=s[0].timestamp)}if(e&&i){var r=e.renewConsentsTimestamp;if(r&&Date.now()/1e3>r&&i/1e3<r)return!0}}return!1},e.prototype.shouldShowFirstLayer=function(e){var t,n,i,s=this.ampInstance.isAmpEnabled(),r=0===this.variant,o=(null==(t=e.ccpa)?void 0:t.showOnPageLoad)||!1,a=r?o:!this.shouldAcceptAllImplicitly;if(this.shouldManuallyResurface())return!0;
1if(this.shouldAcceptAllImplicitly&&!r||this.shouldDenyAllExplicitly)return!1;if(a&&this.isFirstTimePageVisit||this.shouldShowFirstLayerOnVersionChange||!eT.fetchUserActionPerformed()&&(!r||o)||s)return!0;switch(this.variant){case 0:if(this.shouldShowFirstLayerForCcpa(null==(n=e.ccpa)?void 0:n.reshowCMP,null==(i=e.ccpa)?void 0:i.reshowAfterDays))return!0;break;case 2:var c=this.settingsV2.getTcfData();if(null==c?void 0:c.shouldResurfaceUI())return!0;break;default:if(this.shouldForceReshowGDPRBanner())return!0}return!1},e.prototype.shouldForceReshowGDPRBanner=function(){var e=this.settingsV2.core;if(!e)return!1;var t=e.reshowBanner,n=ex(this.settingsV2.getServicesData().reduce(function(e,t){return M(M([],U(e),!1),U(t.consent.history),!1)},[]));if(t>0&&n.length>0){var i=new Date(n[0].timestamp);return i.setMonth(i.getMonth()+t),(new Date).getTime()-i.getTime()>=0}return!1},e.prototype.shouldShowPrivacyButton=function(e){var t=window.location.href,n=!e.privacyButtonUrls||0===e.privacyButtonUrls.contains.length;return e.privacyButtonUrls&&e.privacyButtonUrls.contains.length>0&&e.privacyButtonUrls.contains.some(function(e){return t.includes(e)})&&(n=!0),e.privacyButtonIsVisible&&n},e.prototype.resolveUiVariant=function(e){return P(this,void 0,void 0,function(){return V(this,function(t){switch(t.label){case 0:return null!==this.variant?[2,this.variant]:[4,this.settingsV2.isCcpaAvailable()];case 1:return t.sent()?this.variant=0:this.variant=e?2:1,[2,this.variant]}})})},e.prototype.resolveUiInitialLayer=function(e){return P(this,void 0,void 0,function(){return V(this,function(t){switch(t.label){case 0:return[4,this.shouldShowNone()];case 1:return t.sent()?[2,1]:this.shouldShowFirstLayer(e)?[2,0]:this.shouldShowPrivacyButton(e)?[2,2]:[2,1]}})})},e.prototype.resolveUIOptions=function(e){var t;return P(this,void 0,void 0,function(){var n,i,s,r;return V(this,function(o){switch(o.label){case 0:return n=this.ampInstance.isAmpEnabled(),null!==this.variant?[3,2]:(i=this,[4,this.resolveUiVariant(e.tcf2Enabled)]);case 1:i.variant=o.sent(),o.label=2;case 2:return 0!==this.variant&&eT.clearCcpa(),2!==this.variant&&eT.clearTcf(),s=this,(null==(t=this.initOptions)?void 0:t.suppressCmpDisplay)?(r=1,[3,5]):[3,3];case 3:return[4,this.resolveUiInitialLayer(e)];case 4:r=o.sent(),o.label=5;case 5:return s.selectedLayer=r,[2,{ampEnabled:n,initialLayer:this.selectedLayer,variant:this.variant}]}})})},e.prototype.shouldShowFirstLayerForCcpa=function(e,t){void 0===t&&(t=365);var n,i,s=this.settingsV2.legacySettings,r=(i=eT.getCcpaData())?((new Date).getTime()-i.timestamp)/864e5:0;return s||void 0!==e?null!=(n=null!=e?e:null==s?void 0:s.ccpa.reshowCMP)&&n&&r>t:r>t},e}(),iX=Object.freeze({initialize:function({modulePath:e=".",importFunctionName:t="__import__"}={}){try{self[t]=Function("u","return import(u)")}catch(s){let n=new URL(e,location),i=e=>{URL.revokeObjectURL(e.src),e.remove()};self[t]=e=>new Promise((s,r)=>{let o=new URL(e,n);if(self[t].moduleMap[o])return s(self[t].moduleMap[o]);let a=new Blob([`import * as m from '${o}';`,`${t}.moduleMap['${o}']=m;`],{type:"text/javascript"}),c=Object.assign(document.createElement("script"),{type:"module",src:URL.createObjectURL(a),onerror(){r(Error(`Failed to import: ${e}`)),i(c)},onload(){s(self[t].moduleMap[o]),i(c)}});document.head.appendChild(c)}),self[t].moduleMap={}}}});function i$(e,t){return Object.keys(t).forEach(function(n){"default"===n||"__esModule"===n||Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})}),e}function iZ(e,t,n,i){Object.defineProperty(e,t,{get:n,set:i,enumerable:!0,configurable:!0})}var i0={},i1={};iZ(i1,"Base64Url",function(){return st});var i2={},i3={};iZ(i3,"DecodingError",function(){return i4});var i4=function(){function e(t){var n;return a(this,e),(n=o(this,e,[t])).name="DecodingError",n}return g(e,O(Error)),u(e)}(),i6={};iZ(i6,"EncodingError",function(){return i5});var i5=function(){function e(t){var n;return a(this,e),(n=o(this,e,[t])).name="EncodingError",n}return g(e,O(Error)),u(e)}(),i7={};iZ(i7,"GVLError",function(){return i8});var i8=function(){function e(t){var n;return a(this,e),(n=o(this,e,[t])).name="GVLError",n}return g(e,O(Error)),u(e)}(),i9={};iZ(i9,"TCModelError",function(){return se});var se=function(){function e(t,n){var i,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";
1return a(this,e),(i=o(this,e,["invalid value ".concat(n," passed for ").concat(t," ").concat(s)])).name="TCModelError",i}return g(e,O(Error)),u(e)}();i$(i2,i3),i$(i2,i6),i$(i2,i7),i$(i2,i9);var st=u(function e(){a(this,e)},null,[{key:"encode",value:function(e){if(!/^[0-1]+$/.test(e))throw new i5("Invalid bitField");var t=e.length%this.LCM;e+=t?"0".repeat(this.LCM-t):"";for(var n="",i=0;i<e.length;i+=this.BASIS)n+=this.DICT[parseInt(e.substr(i,this.BASIS),2)];return n}},{key:"decode",value:function(e){if(!/^[A-Za-z0-9\-_]+$/.test(e))throw new i4("Invalidly encoded Base64URL string");for(var t="",n=0;n<e.length;n++){var i=this.REVERSE_DICT.get(e[n]).toString(2);t+="0".repeat(this.BASIS-i.length)+i}return t}}]);st.DICT="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",st.REVERSE_DICT=new Map([["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]]),st.BASIS=6,st.LCM=24;var sn={};iZ(sn,"BitLength",function(){return sH});var si={},ss={};iZ(ss,"ConsentLanguages",function(){return sr});var sr=function(){function e(){a(this,e)}return u(e,[{key:"has",value:function(t){return e.langSet.has(t)}},{key:"parseLanguage",value:function(t){var n=(t=t.toUpperCase()).split("-")[0];if(t.length>=2&&2==n.length){if(e.langSet.has(t))return t;if(e.langSet.has(n))return n;var i=n+"-"+n;if(e.langSet.has(i))return i;var s,r=l(e.langSet);try{for(r.s();!(s=r.n()).done;){var o=s.value;if(-1!==o.indexOf(t)||-1!==o.indexOf(n))return o}}catch(e){r.e(e)}finally{r.f()}}throw Error("unsupported language ".concat(t))}},{key:"forEach",value:function(t){e.langSet.forEach(t)}},{key:"size",get:function(){return e.langSet.size}}])}();sr.langSet=new Set(["AR","BG","BS","CA","CS","CY","DA","DE","EL","EN","ES","ET","EU","FI","FR","GL","HE","HI","HR","HU","ID","IT","JA","KA","KO","LT","LV","MK","MS","MT","NL","NO","PL","PT-BR","PT-PT","RO","RU","SK","SL","SQ","SR-LATN","SR-CYRL","SV","SW","TH","TL","TR","UK","VI","ZH","ZH-HANT"]);var so={};iZ(so,"Fields",function(){return sa});var sa=u(function e(){a(this,e)});sa.cmpId="cmpId",sa.cmpVersion="cmpVersion",sa.consentLanguage="consentLanguage",sa.consentScreen="consentScreen",sa.created="created",sa.supportOOB="supportOOB",sa.isServiceSpecific="isServiceSpecific",sa.lastUpdated="lastUpdated",sa.numCustomPurposes="numCustomPurposes",sa.policyVersion="policyVersion",sa.publisherCountryCode="publisherCountryCode",sa.publisherCustomConsents="publisherCustomConsents",sa.publisherCustomLegitimateInterests="publisherCustomLegitimateInterests",sa.publisherLegitimateInterests="publisherLegitimateInterests",sa.publisherConsents="publisherConsents",sa.publisherRestrictions="publisherRestrictions",sa.purposeConsents="purposeConsents",sa.purposeLegitimateInterests="purposeLegitimateInterests",sa.purposeOneTreatment="purposeOneTreatment",sa.specialFeatureOptins="specialFeatureOptins",sa.useNonStandardTexts="useNonStandardTexts",sa.vendorConsents="vendorConsents",sa.vendorLegitimateInterests="vendorLegitimateInterests",sa.vendorListVersion="vendorListVersion",sa.vendorsAllowed="vendorsAllowed",sa.vendorsDisclosed="vendorsDisclosed",sa.version="version";var sc={};iZ(sc,"PurposeRestriction",function(){return sh}),iZ({},"Cloneable",function(){return su});var su=u(function e(){a(this,e)},[{key:"clone",value:function(){var e=this,t=new this.constructor;return Object.keys(this).forEach(function(n){var i=e.deepClone(e[n]);void 0!==i&&(t[n]=i)}),t}},{key:"deepClone",value:function(e){var t=A(e);if("number"===t||"string"===t||"boolean"===t)return e;if(null!==e&&"object"===t){if("function"==typeof e.clone)return e.clone();if(e instanceof Date)return new Date(e.getTime());if(void 0!==e[Symbol.iterator]){var n,i=[],s=l(e);try{for(s.s();!(n=s.n()).done;){var r=n.value;i.push(this.deepClone(r))}}catch(e){s.e(e)}finally{s.f()}return e instanceof Array?i:new e.constructor(i)}var o={};for(var a in e)e.hasOwnProperty(a)&&(o[a]=this.deepClone(e[a]));return o}}}]),sl={};iZ(sl,"RestrictionType",function(){return sd});var sd=function(e){return e[e.NOT_ALLOWED=0]="NOT_ALLOWED",e[e.REQUIRE_CONSENT=1]="REQUIRE_CONSENT",e[e.REQUIRE_LI=2]="REQUIRE_LI",e}({}),sh=function(){function e(t,n){var i;return a(this,e),i=o(this,e),void 0!==t&&(i.purposeId=t),void 0!==n&&(i.restrictionType=n),i}return g(e,su),u(e,[{key:"hash",get:function(){if(!this.isValid())throw Error("cannot hash invalid PurposeRestriction");return"".concat(this.purposeId).concat(e.hashSeparator).concat(this.restrictionType)}},{key:"purposeId",get:function(){return this.purposeId_},set:function(e){this.purposeId_=e}},{key:"isValid",value:function(){return Number.isInteger(this.purposeId)&&this.purposeId>0&&(this.restrictionType===sd.NOT_ALLOWED||this.restrictionType===sd.REQUIRE_CONSENT||this.restrictionType===sd.REQUIRE_LI)}},{key:"isSameAs",value:function(e){return this.purposeId===e.purposeId&&this.restrictionType===e.restrictionType}}],[{key:"unHash",value:function(t){var n=t.split(this.hashSeparator),i=new e;if(2!==n.length)throw new se("hash",t);return i.purposeId=parseInt(n[0],10),i.restrictionType=parseInt(n[1],10),i}}])}();sh.hashSeparator="-";var sp={};iZ(sp,"PurposeRestrictionVector",function(){return sg});var sg=function(){function e(){var t;a(this,e);for(var n=arguments.length,i=Array(n),s=0;s<n;s++)i[s]=arguments[s];return(t=o(this,e,[].concat(i))).bitLength=0,t.map=new Map,t}return g(e,su),u(e,[{key:"has",value:function(e){return this.map.has(e)}},{key:"isOkToHave",value:function(e,t,n){var i,s=!0;if(null!=(i=this.gvl)&&i.vendors){var r=this.gvl.vendors[n];if(r)if(e===sd.NOT_ALLOWED)s=r.legIntPurposes.includes(t)||r.purposes.includes(t);else if(r.flexiblePurposes.length)switch(e){case sd.REQUIRE_CONSENT:s=r.flexiblePurposes.includes(t)&&r.legIntPurposes.includes(t);break;case sd.REQUIRE_LI:s=r.flexiblePurposes.includes(t)&&r.purposes.includes(t)}else s=!1;else s=!1}return s}},{key:"add",value:function(e,t){if(this.isOkToHave(t.restrictionType,t.purposeId,e)){var n=t.hash;this.has(n)||(this.map.set(n,new Set),this.bitLength=0),this.map.get(n).add(e)}}},{key:"restrictPurposeToLegalBasis",value:function(e){var t=Array.from(this.gvl.vendorIds),n=e.hash,i=t[t.length-1],s=_(Array(i).keys()).map(function(e){return e+1});if(this.has(n))for(var r=1;r<=i;r++)this.map.get(n).add(r);else this.map.set(n,new Set(s)),this.bitLength=0}},{key:"getVendors",value:function(e){var t=[];if(e){var n=e.hash;this.has(n)&&(t=Array.from(this.map.get(n)))}else{var i=new Set;
1this.map.forEach(function(e){e.forEach(function(e){i.add(e)})}),t=Array.from(i)}return t.sort(function(e,t){return e-t})}},{key:"getRestrictionType",value:function(e,t){var n;return this.getRestrictions(e).forEach(function(e){e.purposeId===t&&(void 0===n||n>e.restrictionType)&&(n=e.restrictionType)}),n}},{key:"vendorHasRestriction",value:function(e,t){for(var n=!1,i=this.getRestrictions(e),s=0;s<i.length&&!n;s++)n=t.isSameAs(i[s]);return n}},{key:"getMaxVendorId",value:function(){var e=0;return this.map.forEach(function(t){e=Math.max(Array.from(t)[t.size-1],e)}),e}},{key:"getRestrictions",value:function(e){var t=[];return this.map.forEach(function(n,i){e?n.has(e)&&t.push(sh.unHash(i)):t.push(sh.unHash(i))}),t}},{key:"getPurposes",value:function(){var e=new Set;return this.map.forEach(function(t,n){e.add(sh.unHash(n).purposeId)}),Array.from(e)}},{key:"remove",value:function(e,t){var n=t.hash,i=this.map.get(n);i&&(i.delete(e),0==i.size&&(this.map.delete(n),this.bitLength=0))}},{key:"gvl",get:function(){return this.gvl_},set:function(e){var t=this;this.gvl_||(this.gvl_=e,this.map.forEach(function(e,n){var i=sh.unHash(n);Array.from(e).forEach(function(n){t.isOkToHave(i.restrictionType,i.purposeId,n)||e.delete(n)})}))}},{key:"isEmpty",value:function(){return 0===this.map.size}},{key:"numRestrictions",get:function(){return this.map.size}}])}(),sf={};iZ(sf,"DeviceDisclosureStorageAccessType",function(){return sS});var sS=function(e){return e.COOKIE="cookie",e.WEB="web",e.APP="app",e}({}),sv={};iZ(sv,"Segment",function(){return sE});var sE=function(e){return e.CORE="core",e.VENDORS_DISCLOSED="vendorsDisclosed",e.VENDORS_ALLOWED="vendorsAllowed",e.PUBLISHER_TC="publisherTC",e}({}),sI={};iZ(sI,"SegmentIDs",function(){return sT});var sT=u(function e(){a(this,e)});sT.ID_TO_KEY=[sE.CORE,sE.VENDORS_DISCLOSED,sE.VENDORS_ALLOWED,sE.PUBLISHER_TC],sT.KEY_TO_ID=d(d(d(d({},sE.CORE,0),sE.VENDORS_DISCLOSED,1),sE.VENDORS_ALLOWED,2),sE.PUBLISHER_TC,3);var sC={};iZ(sC,"Vector",function(){return sB});var s_,sy,sA,sm,sO,sN,sb,sD,sR,sw,sL,sP,sV,sU,sM,sk,sF,sG,sB=function(){function e(){var t;a(this,e);for(var n=arguments.length,i=Array(n),s=0;s<n;s++)i[s]=arguments[s];return(t=o(this,e,[].concat(i))).bitLength=0,t.maxId_=0,t.set_=new Set,t}return g(e,su),u(e,[{key:Symbol.iterator,value:E().m(function e(){var t;return E().w(function(e){for(;;)switch(e.n){case 0:t=1;case 1:if(!(t<=this.maxId)){e.n=3;break}return e.n=2,[t,this.has(t)];case 2:t++,e.n=1;break;case 3:return e.a(2)}},e,this)})},{key:"values",value:function(){return this.set_.values()}},{key:"maxId",get:function(){return this.maxId_}},{key:"has",value:function(e){return this.set_.has(e)}},{key:"unset",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){return t.unset(e)}):"object"===A(e)?this.unset(Object.keys(e).map(function(e){return Number(e)})):(this.set_.delete(Number(e)),this.bitLength=0,e===this.maxId&&(this.maxId_=0,this.set_.forEach(function(e){t.maxId_=Math.max(t.maxId,e)})))}},{key:"isIntMap",value:function(e){var t=this;return"object"===A(e)&&Object.keys(e).every(function(n){var i=Number.isInteger(parseInt(n,10));return(i=i&&t.isValidNumber(e[n].id))&&void 0!==e[n].name})}},{key:"isValidNumber",value:function(e){return parseInt(e,10)>0}},{key:"isSet",value:function(e){var t=!1;return e instanceof Set&&(t=Array.from(e).every(this.isValidNumber)),t}},{key:"set",value:function(e){var t=this;if(Array.isArray(e))e.forEach(function(e){return t.set(e)});else if(this.isSet(e))this.set(Array.from(e));else if(this.isIntMap(e))this.set(Object.keys(e).map(function(e){return Number(e)}));else{if(!this.isValidNumber(e))throw new se("set()",e,"must be positive integer array, positive integer, Set<number>, or IntMap");this.set_.add(e),this.maxId_=Math.max(this.maxId,e),this.bitLength=0}}},{key:"empty",value:function(){this.set_=new Set}},{key:"forEach",value:function(e){for(var t=1;t<=this.maxId;t++)e(this.has(t),t)}},{key:"size",get:function(){return this.set_.size}},{key:"setAll",value:function(e){this.set(e)}}])}(),sx={};i$(sx,{}),i$(sx,{}),i$(sx,{}),i$(sx,{}),i$(sx,{}),i$(sx,{}),i$(sx,{}),i$(sx,{}),i$(sx,{}),i$(sx,{}),i$(sx,{}),i$(si,ss),i$(si,so),i$(si,{}),i$(si,{}),i$(si,sc),i$(si,sp),i$(si,sf),i$(si,{}),i$(si,sl),i$(si,sv),i$(si,sI),i$(si,sC),i$(si,sx);var sH=u(function e(){a(this,e)});
1s_=sa.cmpId,sy=sa.cmpVersion,sA=sa.consentLanguage,sm=sa.consentScreen,sO=sa.created,sN=sa.isServiceSpecific,sb=sa.lastUpdated,sD=sa.policyVersion,sR=sa.publisherCountryCode,sw=sa.publisherLegitimateInterests,sL=sa.publisherConsents,sP=sa.purposeConsents,sV=sa.purposeLegitimateInterests,sU=sa.purposeOneTreatment,sM=sa.specialFeatureOptins,sk=sa.useNonStandardTexts,sF=sa.vendorListVersion,sG=sa.version,sH[s_]=12,sH[sy]=12,sH[sA]=12,sH[sm]=6,sH[sO]=36,sH[sN]=1,sH[sb]=36,sH[sD]=6,sH[sR]=12,sH[sw]=24,sH[sL]=24,sH[sP]=24,sH[sV]=24,sH[sU]=1,sH[sM]=12,sH[sk]=1,sH[sF]=12,sH[sG]=6,sH.anyBoolean=1,sH.encodingType=1,sH.maxId=16,sH.numCustomPurposes=6,sH.numEntries=12,sH.numRestrictions=12,sH.purposeId=6,sH.restrictionType=2,sH.segmentType=3,sH.singleOrRange=1,sH.vendorId=16;var sj={};iZ(sj,"SegmentEncoder",function(){return rs});var sY={},sJ={};iZ(sJ,"BooleanEncoder",function(){return sW});var sW=u(function e(){a(this,e)},null,[{key:"encode",value:function(e){return String(Number(e))}},{key:"decode",value:function(e){return"1"===e}}]),sK={};iZ(sK,"DateEncoder",function(){return sz});var sq={};iZ(sq,"IntEncoder",function(){return sQ});var sQ=u(function e(){a(this,e)},null,[{key:"encode",value:function(e,t){var n;if("string"==typeof e&&(e=parseInt(e,10)),(n=e.toString(2)).length>t||e<0)throw new i5("".concat(e," too large to encode into ").concat(t));return n.length<t&&(n="0".repeat(t-n.length)+n),n}},{key:"decode",value:function(e,t){if(t!==e.length)throw new i4("invalid bit length");return parseInt(e,2)}}]),sz=u(function e(){a(this,e)},null,[{key:"encode",value:function(e,t){return sQ.encode(Math.round(e.getTime()/100),t)}},{key:"decode",value:function(e,t){if(t!==e.length)throw new i4("invalid bit length");var n=new Date;return n.setTime(100*sQ.decode(e,t)),n}}]),sX={};iZ(sX,"FieldEncoderMap",function(){return s8});var s$={};iZ(s$,"FixedVectorEncoder",function(){return sZ});var sZ=u(function e(){a(this,e)},null,[{key:"encode",value:function(e,t){for(var n="",i=1;i<=t;i++)n+=sW.encode(e.has(i));return n}},{key:"decode",value:function(e,t){if(e.length!==t)throw new i4("bitfield encoding length mismatch");for(var n=new sB,i=1;i<=t;i++)sW.decode(e[i-1])&&n.set(i);return n.bitLength=e.length,n}}]),s0={};iZ(s0,"LangEncoder",function(){return s1});var s1=u(function e(){a(this,e)},null,[{key:"encode",value:function(e,t){var n=(e=e.toUpperCase()).charCodeAt(0)-65,i=e.charCodeAt(1)-65;if(n<0||n>25||i<0||i>25)throw new i5("invalid language code: ".concat(e));if(t%2==1)throw new i5("numBits must be even, ".concat(t," is not valid"));return t/=2,sQ.encode(n,t)+sQ.encode(i,t)}},{key:"decode",value:function(e,t){if(t!==e.length||e.length%2)throw new i4("invalid bit length for language");var n=e.length/2,i=sQ.decode(e.slice(0,n),n)+65,s=sQ.decode(e.slice(n),n)+65;return String.fromCharCode(i)+String.fromCharCode(s)}}]),s2={};iZ(s2,"PurposeRestrictionVectorEncoder",function(){return s3});var s3=u(function e(){a(this,e)},null,[{key:"encode",value:function(e){var t=sQ.encode(e.numRestrictions,sH.numRestrictions);if(!e.isEmpty()){var n=function(t,n){for(var i=t+1;i<=n;i++)if(e.gvl.vendorIds.has(i))return i;return t};e.getRestrictions().forEach(function(i){t+=sQ.encode(i.purposeId,sH.purposeId),t+=sQ.encode(i.restrictionType,sH.restrictionType);for(var s=e.getVendors(i),r=s.length,o=0,a=0,c="",u=0;u<r;u++){var l=s[u];if(0===a&&(o++,a=l),u===r-1||s[u+1]>n(l,s[r-1])){var d=l!==a;c+=sW.encode(d),c+=sQ.encode(a,sH.vendorId),d&&(c+=sQ.encode(l,sH.vendorId)),a=0}}t+=sQ.encode(o,sH.numEntries),t+=c})}return t}},{key:"decode",value:function(e){var t=0,n=new sg,i=sQ.decode(e.substr(t,sH.numRestrictions),sH.numRestrictions);t+=sH.numRestrictions;for(var s=0;s<i;s++){var r=sQ.decode(e.substr(t,sH.purposeId),sH.purposeId);t+=sH.purposeId;var o=sQ.decode(e.substr(t,sH.restrictionType),sH.restrictionType);t+=sH.restrictionType;var a=new sh(r,o),c=sQ.decode(e.substr(t,sH.numEntries),sH.numEntries);t+=sH.numEntries;for(var u=0;u<c;u++){var l=sW.decode(e.substr(t,sH.anyBoolean));t+=sH.anyBoolean;var d=sQ.decode(e.substr(t,sH.vendorId),sH.vendorId);if(t+=sH.vendorId,l){var h=sQ.decode(e.substr(t,sH.vendorId),sH.vendorId);
1if(t+=sH.vendorId,h<d)throw new i4("Invalid RangeEntry: endVendorId ".concat(h," is less than ").concat(d));for(var p=d;p<=h;p++)n.add(p,a)}else n.add(d,a)}}return n.bitLength=t,n}}]),s4={};iZ(s4,"VendorVectorEncoder",function(){return s7});var s6={};iZ(s6,"VectorEncodingType",function(){return s5});var s5=function(e){return e[e.FIELD=0]="FIELD",e[e.RANGE=1]="RANGE",e}({}),s7=u(function e(){a(this,e)},null,[{key:"encode",value:function(e){var t,n=[],i=[],s=sQ.encode(e.maxId,sH.maxId),r="",o=sH.maxId+sH.encodingType,a=o+e.maxId,c=2*sH.vendorId+sH.singleOrRange+sH.numEntries,u=o+sH.numEntries;return e.forEach(function(s,o){r+=sW.encode(s),(t=e.maxId>c&&u<a)&&s&&(e.has(o+1)?0===i.length&&(i.push(o),u+=sH.singleOrRange,u+=sH.vendorId):(i.push(o),u+=sH.vendorId,n.push(i),i=[]))}),t?(s+=String(s5.RANGE),s+=this.buildRangeEncoding(n)):(s+=String(s5.FIELD),s+=r),s}},{key:"decode",value:function(e,t){var n,i=0,s=sQ.decode(e.substr(i,sH.maxId),sH.maxId);i+=sH.maxId;var r=sQ.decode(e.charAt(i),sH.encodingType);if(i+=sH.encodingType,r===s5.RANGE){if(n=new sB,1===t){if("1"===e.substr(i,1))throw new i4("Unable to decode default consent=1");i++}var o=sQ.decode(e.substr(i,sH.numEntries),sH.numEntries);i+=sH.numEntries;for(var a=0;a<o;a++){var c=sW.decode(e.charAt(i));i+=sH.singleOrRange;var u=sQ.decode(e.substr(i,sH.vendorId),sH.vendorId);if(i+=sH.vendorId,c){var l=sQ.decode(e.substr(i,sH.vendorId),sH.vendorId);i+=sH.vendorId;for(var d=u;d<=l;d++)n.set(d)}else n.set(u)}}else{var h=e.substr(i,s);i+=s,n=sZ.decode(h,s)}return n.bitLength=i,n}},{key:"buildRangeEncoding",value:function(e){var t=e.length,n=sQ.encode(t,sH.numEntries);return e.forEach(function(e){var t=1===e.length;n+=sW.encode(!t),n+=sQ.encode(e[0],sH.vendorId),t||(n+=sQ.encode(e[1],sH.vendorId))}),n}}]);function s8(){var e;return d(d(d(d(d(d(d(d(d(d(e={},sa.version,sQ),sa.created,sz),sa.lastUpdated,sz),sa.cmpId,sQ),sa.cmpVersion,sQ),sa.consentScreen,sQ),sa.consentLanguage,s1),sa.vendorListVersion,sQ),sa.policyVersion,sQ),sa.isServiceSpecific,sW),d(d(d(d(d(d(d(d(d(d(e,sa.useNonStandardTexts,sW),sa.specialFeatureOptins,sZ),sa.purposeConsents,sZ),sa.purposeLegitimateInterests,sZ),sa.purposeOneTreatment,sW),sa.publisherCountryCode,s1),sa.vendorConsents,s7),sa.vendorLegitimateInterests,s7),sa.publisherRestrictions,s3),"segmentType",sQ),d(d(d(d(d(d(d(e,sa.vendorsDisclosed,s7),sa.vendorsAllowed,s7),sa.publisherConsents,sZ),sa.publisherLegitimateInterests,sZ),sa.numCustomPurposes,sQ),sa.publisherCustomConsents,sZ),sa.publisherCustomLegitimateInterests,sZ)}i$(sY,sJ),i$(sY,sK),i$(sY,sX),i$(sY,s$),i$(sY,sq),i$(sY,s0),i$(sY,s2),i$(sY,s6),i$(sY,s4);var s9={},re={};iZ(re,"FieldSequence",function(){return rt});var rt=u(function e(){a(this,e),this[1]=d({},sE.CORE,[sa.version,sa.created,sa.lastUpdated,sa.cmpId,sa.cmpVersion,sa.consentScreen,sa.consentLanguage,sa.vendorListVersion,sa.purposeConsents,sa.vendorConsents]),this[2]=d(d(d(d({},sE.CORE,[sa.version,sa.created,sa.lastUpdated,sa.cmpId,sa.cmpVersion,sa.consentScreen,sa.consentLanguage,sa.vendorListVersion,sa.policyVersion,sa.isServiceSpecific,sa.useNonStandardTexts,sa.specialFeatureOptins,sa.purposeConsents,sa.purposeLegitimateInterests,sa.purposeOneTreatment,sa.publisherCountryCode,sa.vendorConsents,sa.vendorLegitimateInterests,sa.publisherRestrictions]),sE.PUBLISHER_TC,[sa.publisherConsents,sa.publisherLegitimateInterests,sa.numCustomPurposes,sa.publisherCustomConsents,sa.publisherCustomLegitimateInterests]),sE.VENDORS_ALLOWED,[sa.vendorsAllowed]),sE.VENDORS_DISCLOSED,[sa.vendorsDisclosed])}),rn={};iZ(rn,"SegmentSequence",function(){return ri});var ri=u(function e(t,n){if(a(this,e),this[1]=[sE.CORE],this[2]=[sE.CORE],2===t.version)if(t.isServiceSpecific)this[2].push(sE.VENDORS_DISCLOSED),this[2].push(sE.PUBLISHER_TC);else{var i=!(!n||!n.isForVendors);i&&!0!==t[sa.supportOOB]||this[2].push(sE.VENDORS_DISCLOSED),i&&(t[sa.supportOOB]&&t[sa.vendorsAllowed].size>0&&this[2].push(sE.VENDORS_ALLOWED),this[2].push(sE.PUBLISHER_TC))}});i$(s9,re),i$(s9,rn),i$(s9,{});var rs=u(function e(){a(this,e)},null,[{key:"encode",value:function(e,t){var n,i=this;try{n=this.fieldSequence[String(e.version)][t]}catch(n){throw new i5("Unable to encode version: ".concat(e.version,", segment: ").concat(t))}var s="";t!==sE.CORE&&(s=sQ.encode(sT.KEY_TO_ID[t],sH.segmentType));var r=s8();
1return n.forEach(function(n){var o=e[n],a=r[n],c=sH[n];void 0===c&&i.isPublisherCustom(n)&&(c=Number(e[sa.numCustomPurposes]));try{s+=a.encode(o,c)}catch(e){throw new i5("Error encoding ".concat(t,"->").concat(n,": ").concat(e.message))}}),st.encode(s)}},{key:"decode",value:function(e,t,n){var i=this,s=st.decode(e),r=0;n===sE.CORE&&(t.version=sQ.decode(s.substr(r,sH[sa.version]),sH[sa.version])),n!==sE.CORE&&(r+=sH.segmentType);var o=this.fieldSequence[String(t.version)][n],a=s8();return o.forEach(function(e){var n=a[e],o=sH[e];if(void 0===o&&i.isPublisherCustom(e)&&(o=Number(t[sa.numCustomPurposes])),0!==o){var c=s.substr(r,o);if(t[e]=n===s7?n.decode(c,t.version):n.decode(c,o),Number.isInteger(o))r+=o;else{if(!Number.isInteger(t[e].bitLength))throw new i4(e);r+=t[e].bitLength}}}),t}},{key:"isPublisherCustom",value:function(e){return 0===e.indexOf("publisherCustom")}}]);rs.fieldSequence=new rt;var rr={};iZ(rr,"SemanticPreEncoder",function(){return ro});var ro=u(function e(){a(this,e)},null,[{key:"process",value:function(e,t){var n=e.gvl;if(!n)throw new i5("Unable to encode TCModel without a GVL");if(!n.isReady)throw new i5("Unable to encode TCModel tcModel.gvl.readyPromise is not resolved");(e=e.clone()).consentLanguage=n.language.slice(0,2).toUpperCase(),(null==t?void 0:t.version)>0&&(null==t?void 0:t.version)<=this.processor.length?e.version=t.version:e.version=this.processor.length;var i=e.version-1;if(!this.processor[i])throw new i5("Invalid version: ".concat(e.version));return this.processor[i](e,n)}}]);ro.processor=[function(e){return e},function(e,t){e.publisherRestrictions.gvl=t,e.purposeLegitimateInterests.unset([1,3,4,5,6]);var n=new Map;return n.set("legIntPurposes",e.vendorLegitimateInterests),n.set("purposes",e.vendorConsents),n.forEach(function(n,i){n.forEach(function(s,r){if(s){var o=t.vendors[r];if(!o||o.deletedDate)n.unset(r);else if(0===o[i].length)if("legIntPurposes"===i&&0===o.purposes.length&&0===o.legIntPurposes.length&&o.specialPurposes.length>0)n.set(r);else if("legIntPurposes"===i&&o.purposes.length>0&&0===o.legIntPurposes.length&&o.specialPurposes.length>0)n.set(r);else if(e.isServiceSpecific)if(0===o.flexiblePurposes.length)n.unset(r);else{for(var a=e.publisherRestrictions.getRestrictions(r),c=!1,u=0,l=a.length;u<l&&!c;u++)c=a[u].restrictionType===sd.REQUIRE_CONSENT&&"purposes"===i||a[u].restrictionType===sd.REQUIRE_LI&&"legIntPurposes"===i;c||n.unset(r)}else n.unset(r)}})}),e.vendorsDisclosed.set(t.vendors),e}],i$(i0,i1),i$(i0,sn),i$(i0,{}),i$(i0,sj),i$(i0,rr),i$(i0,sY),i$(i0,s9),iZ({},"GVL",function(){return rc}),iZ({},"Json",function(){return ra});var ra=u(function e(){a(this,e)},null,[{key:"absCall",value:function(e,t,n,i){return new Promise(function(s,r){var o=new XMLHttpRequest;o.withCredentials=n,o.addEventListener("load",function(){if(o.readyState==XMLHttpRequest.DONE)if(o.status>=200&&o.status<300){var e=o.response;if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}s(e)}else r(Error("HTTP Status: ".concat(o.status," response type: ").concat(o.responseType)))}),o.addEventListener("error",function(){r(Error("error"))}),o.addEventListener("abort",function(){r(Error("aborted"))}),null===t?o.open("GET",e,!0):o.open("POST",e,!0),o.responseType="json",o.timeout=i,o.ontimeout=function(){r(Error("Timeout "+i+"ms "+e))},o.send(t)})}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return this.absCall(e,JSON.stringify(t),n,i)}},{key:"fetch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.absCall(e,null,t,n)}}]),rc=function(){var e,t;function n(e,t){a(this,n),(i=o(this,n)).isReady_=!1,i.isLatest=!1;var i,s=n.baseUrl,r=null==t?void 0:t.language;if(r)try{r=n.consentLanguages.parseLanguage(r)}catch(e){throw new i8("Error during parsing the language: "+e.message)}if(i.lang_=r||n.DEFAULT_LANGUAGE,i.cacheLang_=r||n.DEFAULT_LANGUAGE,i.isVendorList(e))i.populate(e),i.readyPromise=Promise.resolve();else{if(!s)throw new i8("must specify GVL.baseUrl before loading GVL json");e>0?n.CACHE.has(e)?(i.populate(n.CACHE.get(e)),i.readyPromise=Promise.resolve()):(s+=n.versionedFilename.replace("[VERSION]",String(e)),i.readyPromise=i.fetchJson(s)):n.CACHE.has(n.LATEST_CACHE_KEY)?(i.populate(n.CACHE.get(n.LATEST_CACHE_KEY)),i.readyPromise=Promise.resolve()):(i.isLatest=!0,i.readyPromise=i.fetchJson(s+n.latestFilename))}return i}return g(n,su),u(n,[{key:"cacheLanguage",value:function(){n.LANGUAGE_CACHE.has(this.cacheLang_)||n.LANGUAGE_CACHE.set(this.cacheLang_,{purposes:this.purposes,specialPurposes:this.specialPurposes,features:this.features,specialFeatures:this.specialFeatures,stacks:this.stacks,dataCategories:this.dataCategories})}},{key:"fetchJson",value:(t=r(E().m(function e(t){var n;return E().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,n=this,e.n=1,ra.fetch(t);case 1:n.populate.call(n,e.v),e.n=3;break;case 2:throw e.p=2,new i8(e.v.message);case 3:return e.a(2)}},e,this,[[0,2]])})),function(e){return t.apply(this,arguments)})},{key:"getJson",value:function(){return v(v({gvlSpecificationVersion:this.gvlSpecificationVersion,vendorListVersion:this.vendorListVersion,tcfPolicyVersion:this.tcfPolicyVersion,lastUpdated:this.lastUpdated,purposes:this.clonePurposes(),specialPurposes:this.cloneSpecialPurposes(),features:this.cloneFeatures(),specialFeatures:this.cloneSpecialFeatures(),stacks:this.cloneStacks()},this.dataCategories?{dataCategories:this.cloneDataCategories()}:{}),{},{vendors:this.cloneVendors()})}},{key:"cloneSpecialFeatures",value:function(){for(var e={},t=0,i=Object.keys(this.specialFeatures);t<i.length;t++){var s=i[t];e[s]=n.cloneFeature(this.specialFeatures[s])}return e}},{key:"cloneFeatures",value:function(){for(var e={},t=0,i=Object.keys(this.features);t<i.length;t++){var s=i[t];e[s]=n.cloneFeature(this.features[s])}return e}},{key:"cloneStacks",value:function(){for(var e={},t=0,i=Object.keys(this.stacks);t<i.length;t++){var s=i[t];e[s]=n.cloneStack(this.stacks[s])}return e}},{key:"cloneDataCategories",value:function(){for(var e={},t=0,i=Object.keys(this.dataCategories);t<i.length;t++){var s=i[t];e[s]=n.cloneDataCategory(this.dataCategories[s])}return e}},{key:"cloneSpecialPurposes",value:function(){for(var e={},t=0,i=Object.keys(this.specialPurposes);t<i.length;t++){var s=i[t];e[s]=n.clonePurpose(this.specialPurposes[s])}return e}},{key:"clonePurposes",value:function(){for(var e={},t=0,i=Object.keys(this.purposes);t<i.length;t++){var s=i[t];e[s]=n.clonePurpose(this.purposes[s])}return e}},{key:"cloneVendors",value:function(){for(var e={},t=0,i=Object.keys(this.fullVendorList);t<i.length;t++){var s=i[t];e[s]=n.cloneVendor(this.fullVendorList[s])}return e}},{key:"changeLanguage",value:(e=r(E().m(function e(t){var i,s,r,o,a;return E().w(function(e){for(;;)switch(e.p=e.n){case 0:i=t,e.p=1,i=n.consentLanguages.parseLanguage(t),e.n=3;break;case 2:throw e.p=2,new i8("Error during parsing the language: "+e.v.message);case 3:if(s=t.toUpperCase(),i.toLowerCase()!==n.DEFAULT_LANGUAGE.toLowerCase()||n.LANGUAGE_CACHE.has(s)){e.n=4;break}return e.a(2);case 4:if(i===this.lang_){e.n=9;break}if(this.lang_=i,!n.LANGUAGE_CACHE.has(s)){e.n=5;break}for(o in r=n.LANGUAGE_CACHE.get(s))r.hasOwnProperty(o)&&(this[o]=r[o]);e.n=9;break;case 5:return a=n.baseUrl+n.languageFilename.replace("[LANG]",this.lang_.toLowerCase()),e.p=6,e.n=7,this.fetchJson(a);case 7:this.cacheLang_=s,this.cacheLanguage(),e.n=9;break;case 8:throw e.p=8,new i8("unable to load language: "+e.v.message);case 9:return e.a(2)}},e,this,[[6,8],[1,2]])})),function(t){return e.apply(this,arguments)})},{key:"language",get:function(){return this.lang_}},{key:"isVendorList",value:function(e){return void 0!==e&&void 0!==e.vendors}},{key:"populate",value:function(e){this.purposes=e.purposes,this.specialPurposes=e.specialPurposes,this.features=e.features,this.specialFeatures=e.specialFeatures,this.stacks=e.stacks,this.dataCategories=e.dataCategories,this.isVendorList(e)&&(this.gvlSpecificationVersion=e.gvlSpecificationVersion,this.tcfPolicyVersion=e.tcfPolicyVersion,this.vendorListVersion=e.vendorListVersion,this.lastUpdated=e.lastUpdated,"string"==typeof this.lastUpdated&&(this.lastUpdated=new Date(this.lastUpdated)),this.vendors_=e.vendors,this.fullVendorList=e.vend
1ors,this.mapVendors(),this.isReady_=!0,this.isLatest&&n.CACHE.set(n.LATEST_CACHE_KEY,this.getJson()),n.CACHE.has(this.vendorListVersion)||n.CACHE.set(this.vendorListVersion,this.getJson())),this.cacheLanguage()}},{key:"mapVendors",value:function(e){var t=this;this.byPurposeVendorMap={},this.bySpecialPurposeVendorMap={},this.byFeatureVendorMap={},this.bySpecialFeatureVendorMap={},Object.keys(this.purposes).forEach(function(e){t.byPurposeVendorMap[e]={legInt:new Set,consent:new Set,flexible:new Set}}),Object.keys(this.specialPurposes).forEach(function(e){t.bySpecialPurposeVendorMap[e]=new Set}),Object.keys(this.features).forEach(function(e){t.byFeatureVendorMap[e]=new Set}),Object.keys(this.specialFeatures).forEach(function(e){t.bySpecialFeatureVendorMap[e]=new Set}),Array.isArray(e)||(e=Object.keys(this.fullVendorList).map(function(e){return+e})),this.vendorIds=new Set(e),this.vendors_=e.reduce(function(e,n){var i=t.vendors_[String(n)];return i&&void 0===i.deletedDate&&(i.purposes.forEach(function(e){t.byPurposeVendorMap[String(e)].consent.add(n)}),i.specialPurposes.forEach(function(e){t.bySpecialPurposeVendorMap[String(e)].add(n)}),i.legIntPurposes.forEach(function(e){t.byPurposeVendorMap[String(e)].legInt.add(n)}),i.flexiblePurposes&&i.flexiblePurposes.forEach(function(e){t.byPurposeVendorMap[String(e)].flexible.add(n)}),i.features.forEach(function(e){t.byFeatureVendorMap[String(e)].add(n)}),i.specialFeatures.forEach(function(e){t.bySpecialFeatureVendorMap[String(e)].add(n)}),e[n]=i),e},{})}},{key:"getFilteredVendors",value:function(e,t,n,i){var s=this,r=e.charAt(0).toUpperCase()+e.slice(1),o={};return("purpose"===e&&n?this["by"+r+"VendorMap"][String(t)][n]:this["by"+(i?"Special":"")+r+"VendorMap"][String(t)]).forEach(function(e){o[String(e)]=s.vendors[String(e)]}),o}},{key:"getVendorsWithConsentPurpose",value:function(e){return this.getFilteredVendors("purpose",e,"consent")}},{key:"getVendorsWithLegIntPurpose",value:function(e){return this.getFilteredVendors("purpose",e,"legInt")}},{key:"getVendorsWithFlexiblePurpose",value:function(e){return this.getFilteredVendors("purpose",e,"flexible")}},{key:"getVendorsWithSpecialPurpose",value:function(e){return this.getFilteredVendors("purpose",e,void 0,!0)}},{key:"getVendorsWithFeature",value:function(e){return this.getFilteredVendors("feature",e)}},{key:"getVendorsWithSpecialFeature",value:function(e){return this.getFilteredVendors("feature",e,void 0,!0)}},{key:"vendors",get:function(){return this.vendors_}},{key:"narrowVendorsTo",value:function(e){this.mapVendors(e)}},{key:"isReady",get:function(){return this.isReady_}},{key:"clone",value:function(){var e=new n(this.getJson());return this.lang_!==n.DEFAULT_LANGUAGE&&e.changeLanguage(this.lang_),e}}],[{key:"baseUrl",get:function(){return this.baseUrl_},set:function(e){if(/^https?:\/\/vendorlist\.consensu\.org\//.test(e))throw new i8("Invalid baseUrl!  You may not pull directly from vendorlist.consensu.org and must provide your own cache");e.length>0&&"/"!==e[e.length-1]&&(e+="/"),this.baseUrl_=e}},{key:"emptyLanguageCache",value:function(e){var t=!1;return null==e&&n.LANGUAGE_CACHE.size>0?(n.LANGUAGE_CACHE=new Map,t=!0):"string"==typeof e&&this.consentLanguages.has(e.toUpperCase())&&(n.LANGUAGE_CACHE.delete(e.toUpperCase()),t=!0),t}},{key:"emptyCache",value:function(e){var t=!1;return Number.isInteger(e)&&e>=0?(n.CACHE.delete(e),t=!0):void 0===e&&(n.CACHE=new Map,t=!0),t}},{key:"clonePurpose",value:function(e){return v(v({id:e.id,name:e.name,description:e.description},e.descriptionLegal?{descriptionLegal:e.descriptionLegal}:{}),e.illustrations?{illustrations:Array.from(e.illustrations)}:{})}},{key:"cloneFeature",value:function(e){return v(v({id:e.id,name:e.name,description:e.description},e.descriptionLegal?{descriptionLegal:e.descriptionLegal}:{}),e.illustrations?{illustrations:Array.from(e.illustrations)}:{})}},{key:"cloneDataCategory",value:function(e){return{id:e.id,name:e.name,description:e.description}}},{key:"cloneStack",value:function(e){return{id:e.id,name:e.name,description:e.description,purposes:Array.from(e.purposes),specialFeatures:Array.from(e.specialFeatures)}}},{key:"cloneDataRetention",value:function(e){return v(v({},"number"==typeof e.stdRetention?{stdRetention:e.stdRetention}:{}),{},{purposes:v({},e.purposes),specialPurposes:v({},e.specialPurposes)})}},{key:"cloneVendorUrls",value:function(e){return e.map(function(e){return v({langId:e.langId,privacy:e.privacy},e.legIntClaim?{legIntClaim:e.legIntClaim}:{})})}},{key:"cloneVendor",value:function(e){return v(v(v(v(v(v(v(v(v(v(v({id:e.id,name:e.name,purposes:Array.from(e.purposes),legIntPurposes:Array.from(e.legIntPurposes),flexiblePurposes:Array.from(e.flexiblePurposes),specialPurposes:Array.from(e.specialPurposes),features:Array.from(e.features),specialFeatures:Array.from(e.specialFeatures)},e.overflow?{overflow:{httpGetLimit:e.overflow.httpGetLimit}}:{}),"number"==typeof e.cookieMaxAgeSeconds||null===e.cookieMaxAgeSeconds?{cookieMaxAgeSeconds:e.cookieMaxAgeSeconds}:{}),void 0!==e.usesCookies?{usesCookies:e.usesCookies}:{}),e.policyUrl?{policyUrl:e.policyUrl}:{}),void 0!==e.cookieRefresh?{cookieRefresh:e.cookieRefresh}:{}),void 0!==e.usesNonCookieAccess?{usesNonCookieAccess:e.usesNonCookieAccess}:{}),e.dataRetention?{dataRetention:this.cloneDataRetention(e.dataRetention)}:{}),e.urls?{urls:this.cloneVendorUrls(e.urls)}:{}),e.dataDeclaration?{dataDeclaration:Array.from(e.dataDeclaration)}:{}),e.deviceStorageDisclosureUrl?{deviceStorageDisclosureUrl:e.deviceStorageDisclosureUrl}:{}),e.deletedDate?{deletedDate:e.deletedDate}:{})}},{key:"isInstanceOf",value:function(e){return"object"===A(e)&&"function"==typeof e.narrowVendorsTo}}])}();rc.LANGUAGE_CACHE=new Map,rc.CACHE=new Map,rc.LATEST_CACHE_KEY=0,rc.DEFAULT_LANGUAGE="EN",rc.consentLanguages=new sr,rc.latestFilename="vendor-list.json",rc.versionedFilename="archives/vendor-list-v[VERSION].json",rc.languageFilename="purposes-[LANG].json",iZ({},"TCModel",function(){return ru});var ru=function(){function e(t){var n;return a(this,e),(n=o(this,e)).isServiceSpecific_=!0,n.supportOOB_=!1,n.useNonStandardTexts_=!1,n.purposeOneTreatment_=!1,n.publisherCountryCode_="AA",n.version_=2,n.consentScreen_=0,n.policyVersion_=4,n.consentLanguage_="EN",n.cmpId_=0,n.cmpVersion_=0,n.vendorListVersion_=0,n.numCustomPurposes_=0,n.addtlConsent_="",n.enableAdvertiserConsentMode_=!1,n.specialFeatureOptins=new sB,n.purposeConsents=new sB,n.purposeLegitimateInterests=new sB,n.publisherConsents=new sB,n.publisherLegitimateInterests=new sB,n.publisherCustomConsents=new sB,n.publisherCustomLegitimateInterests=new sB,n.vendorConsents=new sB,n.vendorLegitimateInterests=new sB,n.vendorsDisclosed=new sB,n.vendorsAllowed=new sB,n.publisherRestrictions=new sg,t&&(n.gvl=t),n.updated(),n}return g(e,su),u(e,[{key:"gvl",get:function(){return this.gvl_},set:function(e){rc.isInstanceOf(e)||(e=new rc(e)),this.gvl_=e,this.publisherRestrictions.gvl=e}},{key:"cmpId",get:function(){return this.cmpId_},set:function(e){if(!(Number.isInteger(e=Number(e))&&e>1))throw new se("cmpId",e);this.cmpId_=e}},{key:"cmpVersion",get:function(){return this.cmpVersion_},set:function(e){if(!(Number.isInteger(e=Number(e))&&e>-1))throw new se("cmpVersion",e);this.cmpVersion_=e}},{key:"consentScreen",get:function(){return this.consentScreen_},set:function(e){if(!(Number.isInteger(e=Number(e))&&e>-1))throw new se("consentScreen",e);this.consentScreen_=e}}
1,{key:"consentLanguage",get:function(){return this.consentLanguage_},set:function(e){this.consentLanguage_=e}},{key:"publisherCountryCode",get:function(){return this.publisherCountryCode_},set:function(e){if(!/^([A-z]){2}$/.test(e))throw new se("publisherCountryCode",e);this.publisherCountryCode_=e.toUpperCase()}},{key:"vendorListVersion",get:function(){return this.gvl?this.gvl.vendorListVersion:this.vendorListVersion_},set:function(e){if((e=0|Number(e))<0)throw new se("vendorListVersion",e);this.vendorListVersion_=e}},{key:"policyVersion",get:function(){return this.gvl?this.gvl.tcfPolicyVersion:this.policyVersion_},set:function(e){if(this.policyVersion_=parseInt(e,10),this.policyVersion_<0)throw new se("policyVersion",e)}},{key:"version",get:function(){return this.version_},set:function(e){this.version_=parseInt(e,10)}},{key:"isServiceSpecific",get:function(){return this.isServiceSpecific_},set:function(e){this.isServiceSpecific_=e}},{key:"useNonStandardTexts",get:function(){return this.useNonStandardTexts_},set:function(e){this.useNonStandardTexts_=e}},{key:"supportOOB",get:function(){return this.supportOOB_},set:function(e){this.supportOOB_=e}},{key:"addtlConsent",get:function(){return this.addtlConsent_},set:function(e){this.addtlConsent_=e||""}},{key:"enableAdvertiserConsentMode",get:function(){return this.enableAdvertiserConsentMode_},set:function(e){this.enableAdvertiserConsentMode_=!0===e}},{key:"purposeOneTreatment",get:function(){return this.purposeOneTreatment_},set:function(e){this.purposeOneTreatment_=e}},{key:"setAllVendorConsents",value:function(){this.vendorConsents.set(this.gvl.vendors)}},{key:"unsetAllVendorConsents",value:function(){this.vendorConsents.empty()}},{key:"setAllVendorsDisclosed",value:function(){this.vendorsDisclosed.set(this.gvl.vendors)}},{key:"unsetAllVendorsDisclosed",value:function(){this.vendorsDisclosed.empty()}},{key:"setAllVendorsAllowed",value:function(){this.vendorsAllowed.set(this.gvl.vendors)}},{key:"unsetAllVendorsAllowed",value:function(){this.vendorsAllowed.empty()}},{key:"setAllVendorLegitimateInterests",value:function(){this.vendorLegitimateInterests.set(this.gvl.vendors)}},{key:"unsetAllVendorLegitimateInterests",value:function(){this.vendorLegitimateInterests.empty()}},{key:"setAllPurposeConsents",value:function(){this.purposeConsents.set(this.gvl.purposes)}},{key:"unsetAllPurposeConsents",value:function(){this.purposeConsents.empty()}},{key:"setAllPurposeLegitimateInterests",value:function(){this.purposeLegitimateInterests.set(this.gvl.purposes)}},{key:"unsetAllPurposeLegitimateInterests",value:function(){this.purposeLegitimateInterests.empty()}},{key:"setAllPublisherConsents",value:function(){this.publisherConsents.set(this.gvl.purposes)}},{key:"unsetAllPublisherConsents",value:function(){this.publisherConsents.empty()}},{key:"setAllPublisherLegitimateInterests",value:function(){this.publisherLegitimateInterests.set(this.gvl.purposes)}},{key:"unsetAllPublisherLegitimateInterests",value:function(){this.publisherLegitimateInterests.empty()}},{key:"setAllSpecialFeatureOptins",value:function(){this.specialFeatureOptins.set(this.gvl.specialFeatures)}},{key:"unsetAllSpecialFeatureOptins",value:function(){this.specialFeatureOptins.empty()}},{key:"setAll",value:function(){this.setAllVendorConsents(),this.setAllPurposeLegitimateInterests(),this.setAllSpecialFeatureOptins(),this.setAllPurposeConsents(),this.setAllPublisherConsents(),this.setAllPublisherLegitimateInterests(),this.setAllVendorLegitimateInterests()}},{key:"unsetAll",value:function(){this.unsetAllVendorConsents(),this.unsetAllPurposeLegitimateInterests(),this.unsetAllSpecialFeatureOptins(),this.unsetAllPurposeConsents(),this.unsetAllPublisherConsents(),this.unsetAllPublisherLegitimateInterests(),this.unsetAllVendorLegitimateInterests()}},{key:"numCustomPurposes",get:function(){var e=this.numCustomPurposes_;return"object"===A(this.customPurposes)&&(e=parseInt(Object.keys(this.customPurposes).sort(function(e,t){return Number(e)-Number(t)}).pop(),10)),e},set:function(e){if(this.numCustomPurposes_=parseInt(e,10),this.numCustomPurposes_<0)throw new se("numCustomPurposes",e)}},{key:"updated",value:function(){var e=new Date,t=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()));this.created=t,this.lastUpdated=t}}])}();ru.consentLanguages=rc.consentLanguages,iZ({},"TCString",function(){return rS});var rl,rd,rh,rp,rg,rf,rS=u(function e(){a(this,e)},null,[{key:"encode",value:function(e,t){var n,i="";return e=ro.process(e,t),(n=Array.isArray(null==t?void 0:t.segments)?t.segments:new ri(e,t)[""+e.version]
1).forEach(function(t,s){var r="";s<n.length-1&&(r="."),i+=rs.encode(e,t)+r}),i}},{key:"decode",value:function(e,t){var n=e.split("."),i=n.length;t||(t=new ru);for(var s=0;s<i;s++){var r=n[s],o=st.decode(r.charAt(0)).substr(0,sH.segmentType),a=sT.ID_TO_KEY[sQ.decode(o,sH.segmentType).toString()];rs.decode(r,t,a)}return t}}]),rv=function(e,t,n){return t?e.map(function(e){return t&&t[e.id]?L(L({},e),{name:"".concat(e.name," (").concat(n,": ").concat(t[e.id],")")}):e}):e},rE=function(e,t,n,i,s,r,o){if(!e)return[];var a=e.gvl,c=e.publisherRestrictions,u=e.vendorConsents,l=e.vendorLegitimateInterests;if(!a)return[];var d=eT.fetchTCFVendorsDisclosedObject(a.vendors),h=rP(c);return Object.values(a.vendors).map(function(e){var c,p,g,f=eD(e.purposes,a.purposes),S=eD(e.legIntPurposes,a.purposes);s&&(f=f.filter(function(e){return 1!==e.id}));var v=rm(e.id,d),E=f.map(function(e){return e}),I=S.map(function(e){return e});h.forEach(function(t){var n=t.purposeId,i=t.restrictionType,s=e.flexiblePurposes.indexOf(n)>-1;switch(i){case sd.NOT_ALLOWED:E=E.filter(function(e){return e.id!==n}),I=I.filter(function(e){return e.id!==n});break;case sd.REQUIRE_CONSENT:I=I.filter(function(e){return e.id!==n||(s&&E.push(e),!1)});break;case sd.REQUIRE_LI:E=E.filter(function(e){return e.id!==n||(s&&I.push(e),!1)})}});var T="",C="";e.urls&&e.urls.forEach(function(e){var t=e.langId,n=e.legIntClaim,i=e.privacy,s=t&&a.language&&t.toLowerCase()===a.language.toLowerCase();i&&(T&&!s||(T=i)),n&&(C&&!s||(C=n))});var _,y=r.includes(e.id),A=null==(c=e.dataDeclaration)?void 0:c.reduce(function(e,t){var n=a.dataCategories&&a.dataCategories[t];if(n){var i=L(L({},n),{id:n.id.toString()});return e?M(M([],U(e),!1),[i],!1):[i]}return e},[]);e.dataRetention&&e.dataRetention.stdRetention&&(_=[{id:e.dataRetention.stdRetention.toString(),name:e.dataRetention.stdRetention.toString()}]);var m=eD(e.specialFeatures.filter(function(e){return!t.includes(e)}),a.specialFeatures);return L(L(L({consent:v?u.has(e.id):null,cookieMaxAgeSeconds:e.cookieMaxAgeSeconds&&e.cookieMaxAgeSeconds>=0?e.cookieMaxAgeSeconds:null,cookieRefresh:eO(e.cookieRefresh,null)},A&&{dataCategories:A}),_&&{dataRetention:_}),{deviceStorage:null,deviceStorageDisclosureUrl:e.deviceStorageDisclosureUrl||null,features:e.features.map(function(e){return{id:e,name:a.features[e].name}}),flexiblePurposes:eD(e.flexiblePurposes,a.purposes),id:e.id,legitimateInterestClaimUrl:C,legitimateInterestConsent:v?l.has(e.id):null,legitimateInterestPurposes:I,name:e.name,policyUrl:e.policyUrl,privacyUrl:T,purposes:rv(E,null==(p=e.dataRetention)?void 0:p.purposes,o),showConsentToggle:E.length>0&&n,showLegitimateInterestConsentToggle:I.length>0&&n&&!i,showVendorOutsideEU:y,specialFeatures:m,specialPurposes:rv(eD(e.specialPurposes,a.specialPurposes),null==(g=e.dataRetention)?void 0:g.specialPurposes,o),usesCookies:eO(e.usesCookies,!1),usesNonCookieAccess:eO(e.usesNonCookieAccess,null)})})},rI=function(e){return{legitimateInterestPurposes:(null==e?void 0:e.legIntPurposes)||[],notAllowedPurposes:(null==e?void 0:e.notAllowedPurposes)||[],purposes:(null==e?void 0:e.purposes)||[]}},rT=function(e){return Object.entries(e).map(function(e){var t=U(e,2),n=t[0],i=t[1];return{id:parseInt(n.replace("p",""),10),name:i}})},rC=function(e){return e||"/browser-sdk/".concat(en,"/cookie-bridge.html")},r_=function(e){return e||"https://usercentrics.mgr.consensu.org:443"},ry=function(e,t){return t&&0!==e.length?eR(e.reduce(function(e,t){return e.concat(t.features.map(function(e){return e.id}))},[])).reduce(function(e,n){var i=t[n];return i?M(M([],U(e),!1),[i],!1):e},[]):[]},rA=function(e,t){return!e||!t},rm=function(e,t){return void 0===t&&(t=eT.fetchTCFVendorsDisclosedObject()),!0===t[e]},rO=function(e,t,n,i,s){var r=t.reduce(function(e,t){return e.concat(t.purposes.map(function(e){return e.id})).concat(t.legitimateInterestPurposes.map(function(e){return e.id}))},[]),o=rL(e,n,i).reduce(function(e,t){return e.concat(t.purposeIds)},[]),a=eR(r.concat(o));return s?a.filter(function(e){return 1!==e}):a},rN=function(e,t,n,i,s,r,o,a,c){if(!e||!t||!n)return[];var u=rO(t,i,s,r,o),l=rL(t,s,r),d=eT.fetchTCFData().vendors,h=e.purposeConsents,p=e.purposeLegitimateInterests,g=eR(i.map(function(e){return e.legitimateInterestPurposes.map(function(e){return e.id})}).reduce(function(e,t){return e.concat(t)},[])),f=eR(i.map(function(e){return e.purposes.map(function(e){return e.id})}).reduce(function(e,t){return e.concat(t)},[])),S=u.reduce(function(e,t){var n,s=i.filter(function(e){return e.purposes.find(function(e){return e.id===t})}),r=i.filter(function(e){return e.legitimateInterestPurposes.find(function(e){return e.id===t})});return L(L({},e),((n={})[t]=s.length+r.length,n))},{});return u.reduce(function(e,t){var i=n[t];if(!i)return e;var s=l.find(function(e){return e.purposeIds.includes(t)});return M(M([],U(e),!1),[{consent:d.length?h.has(t):null,description:i.description,descriptionLegal:i.descriptionLegal,id:i.id,illustrations:i.illustrations,isPartOfASelectedStack:!!s,legitimateInterestConsent:d.length?p.has(t):null,name:i.name,numberOfVendors:S[i.id]||0,showConsentToggle:f.includes(t)&&a,showLegitimateInterestToggle:1!==i.id&&g.includes(t)&&a&&!c,stackId:(null==s?void 0:s.id)||null}],!1)},[])}
1,rb=function(e){return{onATPListChanged:e.resurfaceATPListChanged,onIABLegalBasisChanged:e.resurfaceIABLegalBasisChanged,onPeriodEnded:e.resurfacePeriodEnded,onPurposeChanged:e.resurfacePurposeChanged,onVendorAdded:e.resurfaceVendorAdded}},rD=function(e,t,n,i){var s=t.reduce(function(e,t){return e.concat(t.specialFeatures.filter(function(e){return!n.includes(e.id)}).map(function(e){return e.id}))},[]),r=rL(e,n,i).reduce(function(e,t){return e.concat(t.specialFeatureIds.filter(function(e){return!n.includes(e)}))},[]);return eR(s.concat(r))},rR=function(e,t,n,i,s,r){if(!e||!t)return[];var o=rD(t.stacks,n,i,s),a=rL(t.stacks,i,s);return o.map(function(n){var i=t.specialFeatures[n],s=a.find(function(e){return e.specialFeatureIds.includes(n)});return{consent:e.specialFeatureOptins.has(n),description:i.description,descriptionLegal:i.descriptionLegal,id:i.id,illustrations:i.illustrations,isPartOfASelectedStack:!!s,name:i.name,showConsentToggle:r,stackId:(null==s?void 0:s.id)||null}})},rw=function(e,t){return e?eR(t.reduce(function(e,t){return e.concat(t.specialPurposes.map(function(e){return e.id}))},[])).reduce(function(t,n){var i=e[n];return i?M(M([],U(t),!1),[{description:i.description,descriptionLegal:i.descriptionLegal,id:i.id,illustrations:i.illustrations,name:i.name}],!1):t},[]):[]},rL=function(e,t,n){return e?n.reduce(function(n,i){var s=e[i];return s?M(M([],U(n),!1),[{description:s.description,id:s.id,name:s.name,purposeIds:s.purposes,specialFeatureIds:s.specialFeatures.filter(function(e){return!t.includes(e)})}],!1):n},[]):[]},rP=function(e){return(null==e?void 0:e.getRestrictions().map(function(e){return{purposeId:e.purposeId,restrictionType:e.restrictionType}}))||[]},rV=function(e){return!!(null==e?void 0:e.timestamp)&&(Date.now()-e.timestamp)/864e5>390},rU=function(e,t){if(!(null==e?void 0:e.acString)||!(null==e?void 0:e.acString.length))return!1;var n=null==e?void 0:e.acString.split("~")[1].split(".").filter(function(e){return""!==e}).map(function(e){return parseInt(e,10)}),i=null==e?void 0:e.acString.split("dv.")[1].split(".").filter(function(e){return""!==e}).map(function(e){return parseInt(e,10)}),s=M(M([],U(n),!1),U(i),!1).sort(function(e,t){return e-t}),r=t.map(function(e){return e.id}).sort(function(e,t){return e-t});return!(s.length===r.length&&s.every(function(e,t){return e===r[t]}))},rM=function(e,t){return!(!(null==e?void 0:e.vendors)||!(null==e?void 0:e.vendors.length))&&!t.every(function(t){return null==e?void 0:e.vendors.find(function(e){return e[el.ID]===t.id})})},rk=function(e,t){return!(!(null==e?void 0:e.vendors)||!e.vendors.length||e.vendors.length&&!e.vendors[0][el.SPECIAL_PURPOSES])&&!e.vendors.every(function(e){var n=t.find(function(t){return t.id===e[el.ID]});return!n||e[el.PURPOSES].sort().toString()===n.purposes.map(function(e){return e.id}).sort().toString()&&e[el.LEGITIMATE_INTEREST].sort().toString()===n.legitimateInterestPurposes.map(function(e){return e.id}).sort().toString()&&e[el.SPECIAL_PURPOSES].sort().toString()===n.specialPurposes.map(function(e){return e.id}).sort().toString()})},rF=function(e){return e.map(function(e){var t=e.id,n=e.legitimateInterestPurposes,i=e.purposes,s=e.specialPurposes;return[t,n.map(function(e){return e.id}),i.map(function(e){return e.id}),s.map(function(e){return e.id})]})},rG=function(e){var t=e.replace("_","-");if(rc.consentLanguages.has(t.toLocaleLowerCase())||rc.consentLanguages.has(t.toUpperCase()))return t;var n=t.slice(0,2);if(rc.consentLanguages.has(n.toLocaleLowerCase())||rc.consentLanguages.has(n.toUpperCase()))return n;switch(e){case"pt":return"pt-pt";case"sr":return"sr-cyrl";default:return"en"}},rB=[],rx=[],rH=function(e,t,n){switch(e){case"queue":return rB;case"ping":"function"==typeof t&&t({applicableSections:[-1],cmpDisplayStatus:"hidden",cmpId:31,cmpStatus:"stub",gppString:"",gppVersion:"1.1",sectionList:[],supportedAPIs:["2:tcfeuv2","5:tcfcav1","6:uspv1"]},!0);break;case"addEventListener":"lastId"in window.__gpp||(window.__gpp.lastId=0),window.__gpp.lastId+=1;var i=window.__gpp.lastId;rx.push({callback:t,id:i,parameter:n}),t({data:!0,eventName:"listenerRegistered",listenerId:i,pingData:{applicableSections:[-1],cmpDisplayStatus:"hidden",cmpId:31,cmpStatus:"stub",gppString:"",gppVersion:"1.1",sectionList:[],supportedAPIs:["2:tcfeuv2","5:tcfcav1","9:usva","7:usnat"]}},!0);break;case"removeEventListener":for(var s=!1,r=0;r<rx.length;r++)if(rx[r].id===n){rx.splice(r,1),s=!0;break}t({data:s,eventName:"listenerRemoved",listenerId:n,pingData:{applicableSections:[-1],cmpDisplayStatus:"hidden",cmpId:31,cmpStatus:"stub",gppString:"",gppVersion:"1.1",sectionList:[],supportedAPIs:["2:tcfeuv2","5:tcfcav1","9:usva","7:usnat"]}},!0);break;case"hasSection":t(!1,!0);break;case"getSection":case"getField":t(null,!0);break;default:rB.push([e,t,n])}},rj="__gppLocator",rY=function(e){if(e&&e.source&&e.source.postMessage){var t="string"==typeof e.data,n=e.data;if(t)try{n=JSON.parse(e.data)}catch(e){return}if("object"===A(n)&&n.__gppCall){var i=n.__gppCall;window.__gpp(i.command,i.version,function(n,s){var r={__gppReturn:{returnValue:n,success:s,callId:i.callId}},o=t?JSON.stringify(r):r;try{e.source.postMessage(o,"*")}catch(e){}},i.parameter)}}},rJ=function(){"undefined"!=typeof window&&(window.__gpp||!function(){for(var e=window,t=!1;e;){try{if(e.frames[rj]){t=!0;break}}catch(e){}if(e===window.top){t=!1;break}e=e.parent}return t}()&&(eY(function(){return!!window.document.body},"").then(function(){var e=window.document.createElement("iframe");e.style.cssText="display:none",e.name=rj,window.document.body.appendChild(e)}),1)&&(window.addEventListener("message",rY,!1),window.__gpp=rH))},rW=function(e){if(e&&e.source&&e.source.postMessage){var t="string"==typeof e.data,n=e.data;if(t)try{n=JSON.parse(e.data)}catch(e){return}if("object"===A(n)&&n.__tcfapiCall){var i=n.__tcfapiCall;window.__tcfapi(i.command,i.version,function(n,s){var r={__tcfapiReturn:{returnValue:n,success:s,callId:i.callId}},o=t?JSON.stringify(r):r;try{e.source.postMessage(o,"*")}catch(e){}},i.parameter)}}},rK=[],rq=function(e,t,n,i){if(!e)return rK;switch(e){case"ping":"function"==typeof n&&n({cmpLoaded:!1,cmpStatus:"stub",gdprApplies:!0});break;
1case"pending":return rK;default:rK.push([e,t,n,i])}},rQ="__tcfapiLocator",rz=function(){"undefined"!=typeof window&&(window.__tcfapi||!function(){for(var e=window,t=!1;e;){try{if(e.frames[rQ]){t=!0;break}}catch(e){}if(e===window.top){t=!1;break}e=e.parent}return t}()&&(eY(function(){return!!window.document.body},"").then(function(){var e=window.document.createElement("iframe");e.style.cssText="display:none",e.name=rQ,window.document.body.appendChild(e)}),1)&&(window.addEventListener("message",rW,!1),window.__tcfapi=rq))};!function(e){e.ACCEPT_ALL_SERVICES="onAcceptAllServices",e.DENY_ALL_SERVICES="onDenyAllServices",e.ESSENTIAL_CHANGE="onEssentialChange",e.INITIAL_PAGE_LOAD="onInitialPageLoad",e.NON_EU_REGION="onNonEURegion",e.SESSION_RESTORED="onSessionRestored",e.TCF_STRING_CHANGE="onTcfStringChange",e.UPDATE_SERVICES="onUpdateServices",e.MOBILE_SESSION_RESTORED="onMobileSessionRestore"}(rl||(rl={})),function(e){e.EXPLICIT="explicit",e.IMPLICIT="implicit"}(rd||(rd={})),function(e){e[e.UNDEFINED=0]="UNDEFINED",e[e.CMP_SHOWN=1]="CMP_SHOWN",e[e.ACCEPT_ALL=2]="ACCEPT_ALL",e[e.DENY_ALL=3]="DENY_ALL",e[e.SAVE=4]="SAVE",e[e.ACCEPT_ALL_L1=5]="ACCEPT_ALL_L1",e[e.DENY_ALL_L1=6]="DENY_ALL_L1",e[e.SAVE_L1=7]="SAVE_L1",e[e.ACCEPT_ALL_L2=8]="ACCEPT_ALL_L2",e[e.DENY_ALL_L2=9]="DENY_ALL_L2",e[e.SAVE_L2=10]="SAVE_L2",e[e.COOKIE_POLICY_LINK=11]="COOKIE_POLICY_LINK",e[e.IMPRINT_LINK=12]="IMPRINT_LINK",e[e.MORE_INFORMATION_LINK=13]="MORE_INFORMATION_LINK",e[e.PRIVACY_POLICY_LINK=14]="PRIVACY_POLICY_LINK",e[e.CCPA_TOGGLES_ON=15]="CCPA_TOGGLES_ON",e[e.CCPA_TOGGLES_OFF=16]="CCPA_TOGGLES_OFF",e[e.SAY_MINE_LINK=17]="SAY_MINE_LINK"}(rh||(rh={})),function(e){e.API_NAME="__uspapi",e.GET_USP_DATA="getUSPData"}(rp||(rp={})),function(e){e[e.FIRST_LAYER=0]="FIRST_LAYER",e[e.NONE=1]="NONE",e[e.PRIVACY_BUTTON=2]="PRIVACY_BUTTON",e[e.SECOND_LAYER=3]="SECOND_LAYER"}(rg||(rg={})),function(e){e[e.CCPA=0]="CCPA",e[e.DEFAULT=1]="DEFAULT",e[e.TCF=2]="TCF"}(rf||(rf={})),void 0!==iX&&iX.initialize({modulePath:"/dir"});var rX=function(){function e(e,t){var n;if(this.ampInstance=to.getInstance(),this.apiInstance=tk.getInstance(),this.botInstance=tj.getInstance(),this.controllerIdInstance=tD.getInstance(),this.dataFacadeInstance=nI.getInstance(),this.eventDispatcherInstance=tq.getInstance(),this.initOptions={},this.isConsentRequired=null,this.languageInstance=iJ.getInstance(),this.storageServiceInstance=eT.getInstance(),this.locationInstance=tw.getInstance(),this.settingsV2=nE.getInstance(),this.uiInstance=iz.getInstance(),this.domains=null,this.rulesetRule={name:"",noShow:!0,settingsId:""},this.gppData=null,this.isCurrentDomainAllowed=function(e){var t,n=window.location.hostname.replace("www.",""),i=window.location.pathname,s=null==(t=e.allowedDomainOptions)?void 0:t.list;if((null==s?void 0:s.length)&&(s=s.filter(function(e){return"string"==typeof e&&""!==e.trim()}).map(function(e){return e.trim()})),!(null==s?void 0:s.length))return!0;var r=s.concat(et),o=!1;return r.forEach(function(e){if(e.includes("*")){if("*."===e.slice(0,2))n.includes(e.slice(2))&&(o=!0);else if("/*"===e.slice(-2)){var t=e.slice(0,-2);t.split("/")[0]===n&&(n+i).includes(t)&&(o=!0)}}else e.includes("/")?n+i===e&&(o=!0):n===e&&(o=!0)}),o},t&&(this.initOptions=t),this.apiInstance.setEuMode(!0===(null==t?void 0:t.euMode)),this.domains=(n=window.UC_UI_DOMAINS)?Object.entries(n).reduce(function(e,t){var n,i,s=t[0],r=t[1];return"/"===r.slice(-1)?L(L({},e),((n={})[s]=r.slice(0,-1),n)):L(L({},e),((i={})[s]=r,i))},{aggregator:"",app:"",cdn:"",consents:"",consentsV2:"",consentsV2Fetch:"",crossDomainConsentSharingIFrame:"",graphql:"",trackingEvent:""}):null,this.apiInstance.setDomains(!0===(null==t?void 0:t.sandboxEnv),this.domains),(null==t?void 0:t.createTcfApiStub)&&rz(),(null==t?void 0:t.createGppStub)&&rJ(),(null==t?void 0:t.useRulesetId)?this.apiInstance.setRulesetId(e):this.apiInstance.setSettingsId(e),this.controllerIdInstance.value="",(null==t?void 0:t.controllerId)&&!(null==t?void 0:t.useRulesetId)&&(this.controllerIdInstance.value=t.controllerId),(null==t?void 0:t.language)&&this.languageInstance.setPrimaryLanguage(t.language),(null==t?void 0:t.settingsCache)&&this.apiInstance.setJsonCacheBustingString(t.settingsCache),(null==t?void 0:t.ver
1sion)&&this.apiInstance.setJsonFileVersion(t.version),(null==t?void 0:t.userCountryData)&&"object"===A(t.userCountryData)&&Object.keys(t.userCountryData).every(function(e){return"string"==typeof e})&&this.locationInstance.setUserCountryData(t.userCountryData),(null==t?void 0:t.userSessionData)&&this.dataFacadeInstance.setUserSessionData(t.userSessionData),(null==t?void 0:t.ampEnabled)&&this.ampInstance.setIsAmpEnabled(!0),(null==t?void 0:t.blockDataLayerPush)&&this.eventDispatcherInstance.setBlockDataLayerPush(!0),(null==t?void 0:t.disableUet)?this.eventDispatcherInstance.setUetDisabled(!0):window.uetq=window.uetq||[],(null==t?void 0:t.storeServiceIdToNameMapping)&&this.storageServiceInstance.setStoreServiceIdToNameMapping(null==t?void 0:t.storeServiceIdToNameMapping),(null==t?void 0:t.disableTracking)&&(this.initOptions.disableTracking=!0),(null==t?void 0:t.disableServerConsents)&&this.apiInstance.setDisableServerConsents(!0),(null==t?void 0:t.disableServerConsents)&&(null==t?void 0:t.controllerId))throw Error("Usercentrics: disableServerConsents and controllerId should not be present at the same time in the InitOptions!");(null==t?void 0:t.enableDeprecatedV1ConsentSaving)&&(this.initOptions.enableDeprecatedV1ConsentSaving=t.enableDeprecatedV1ConsentSaving),this.initOptions.prefetchServices=eO(null==t?void 0:t.prefetchServices,!0),this.setTrackingPixel=this.setTrackingPixel.bind(this)}return e.prototype.fetchCoreAndDps=function(){return P(this,void 0,void 0,function(){var e;return V(this,function(t){var n,i,s,r;switch(t.label){case 0:return[4,this.loadSettings()];case 1:return[2,{core:{allowedDomainOptions:{list:(e=t.sent()).allowedDomains,showErrorCmp:e.showErrorOnUnallowedDomain},buttonDisplayLocation:e.buttonDisplayLocation,buttonPrivacyCloseIcon:e.buttonPrivacyCloseIcon,buttonPrivacyOpenIconUrl:e.buttonPrivacyOpenIconUrl,ccpa:(s=e.framework,{iabAgreementExists:(r=e.ccpa).iabAgreementExists,isActive:s?["CCPA","UCPA","CTDPA","VCDPA","CPRA","CPA","MSPL"].includes(s):r.isActive,region:r.region,reshowAfterDays:r.reshowAfterDays,showOnPageLoad:r.showOnPageLoad}),consentAnalytics:e.consentAnalytics,consentAPIv2:e.consentAPIv2,consentSharingIFrameIsActive:e.consentSharingIFrameIsActive,consentXDevice:e.consentXDevice,customization:(i=e.customization)?L(L({color:i.color?{primary:i.color.primary,privacyButtonBackground:i.color.privacyButtonBackground,privacyButtonIcon:i.color.privacyButtonIcon}:null},i.privacyButtonSizeMobile&&{privacyButtonSizeMobile:i.privacyButtonSizeMobile}),i.privacyButtonSizeDesktop&&{privacyButtonSizeDesktop:i.privacyButtonSizeDesktop}):i,dataExchangeOnPage:e.dataExchangeOnPage,displayOnlyForEU:e.displayOnlyForEU,enableBotDetection:e.enableBotDetection,enablePoweredBy:e.enablePoweredBy,framework:e.framework,googleConsentMode:e.googleConsentMode,integrations:e.integrations,interactionAnalytics:e.interactionAnalytics,labels:{partnerPoweredByLinkText:e.labels.partnerPoweredByLinkText,poweredBy:e.labels.poweredBy},languagesAvailable:e.languagesAvailable,partnerPoweredByUrl:e.partnerPoweredByUrl,privacyButtonIsVisible:e.privacyButtonIsVisible,privacyButtonUrls:e.privacyButtonUrls,renewConsentsTimestamp:e.renewConsentsTimestamp,reshowBanner:e.reshowBanner,settingsId:e.settingsId,showInitialViewForVersionChange:e.showInitialViewForVersionChange,tagLoggerIsActive:e.tagLoggerIsActive,tcf2:{resurfaceATPListChanged:(n=e.tcf2).resurfaceATPListChanged,resurfaceIABLegalBasisChanged:n.resurfaceIABLegalBasisChanged,resurfacePeriodEnded:n.resurfacePeriodEnded,resurfacePurposeChanged:n.resurfacePurposeChanged,resurfaceVendorAdded:n.resurfaceVendorAdded},tcf2Enabled:e.framework?["TCF2","UK_TCF2"].includes(e.framework):e.tcf2Enabled,variants:e.variants,version:e.version},dps:{categories:e.categories,consentTemplates:e.consentTemplates}}]}})})},e.prototype.init=function(){var e,t,n,i,s,r,o,a,c,u,l,d,h;return P(this,void 0,void 0,function(){var p,g,f,S,v,E,I,T,C,_,y,A,m,O,N,b,D,R,w,U,M,k,F,G=this;return V(this,function(B){switch(B.label){case 0:return eT.getInstance().init(),this.initOptions.createGppStub&&(this.gppData=iY.getInstance(this.settingsV2.legacySettings,this.initOptions.createGppStub)),this.apiInstance.getRulesetId()?(p=this,[4,nc.getInstance().resolveSettingsId()]):[3,2];case 1:p.rulesetRule=B.sent(),this.apiInstance.setSettingsId(this.rulesetRule.settingsId),this.initOptions.controllerIds&&this.controllerIdInstance.setControllerIdByResolvedSettingsId(this.rulesetRule.settingsId,this.initOptions.controllerIds),B.label=2;case 2:return eT.clearOnNewSettingsId(this.apiInstance.getSettingsId()),eT.migrateLegacySettings(this.apiInstance.getSettingsId()),S="explicit"===(null==(f=null==(g=eT.fetchServices())?void 0:g.map(function(e){return e.history}).flat().reduce(function(e,t){return(null==e?void 0:e.timestamp)<t.timestamp?t:e}))?void 0:f.type),[4,this.languageInstance.resolveLanguage()];case 3:B.sent(),B.label=4;case 4:return B.trys.push([4,6,,9]),[4,this.fetchCoreAndDps()];case 5:if(C=(I=B.sent()).core,_=I.dps,!C.languagesAvailable.includes(this.apiInstance.getJsonFileLanguage()))throw Error("Using non allowed language");return v=C,E=_,[3,9];case 6:return B.sent(),this.languageInstance.setPrimaryLanguage(""),[4,this.languageInstance.resolveLanguage(!0)];case 7:return B.sent(),[4,this.fetchCoreAndDps()];case 8:return C=(T=B.sent()).core,_=T.dps,v=C,E=_,[3,9];case 9:if(!this.isCurrentDomainAllowed(v))throw(y=Error()).showErrorCmp=null==(e=v.allowedDomainOptions)?void 0:e.showErrorCmp,
1console.error('Usercentrics: The domain "'.concat(window.location.hostname,'" has not been added to the allowlist for this Usercentrics account.')),y;if(!v||!E)throw Error();return this.botInstance.isBotEnabled=v.enableBotDetection,!v.consentSharingIFrameIsActive||this.botInstance.isRobot()?[3,11]:[4,ef.init({useEuCdn:this.initOptions.euMode||!1},this.domains).then(function(){return P(G,void 0,void 0,function(){var e;return V(this,function(t){switch(t.label){case 0:return ef.setCrossDomainId(this.apiInstance.getSettingsId()),ef.setIsCrossDomainAvailable(!0),ef.setUseEuCdn(this.initOptions.euMode||!1),this.languageInstance.getPrimaryLanguage()?[3,3]:[4,ef.getCrossDomainLanguage().catch(function(){return console.warn(z.CROSS_DOMAIN_LANGUAGE_NOT_AVAILABLE),""})];case 1:return e=t.sent(),[4,this.changeLanguage(e)];case 2:t.sent(),t.label=3;case 3:return[2]}})})}).catch(function(e){ef.setIsCrossDomainAvailable(!1),ef.removeIFrame(eh),console.warn(z.CROSS_DOMAIN_FEATURE_NOT_AVAILABLE,e)})];case 10:B.sent(),B.label=11;case 11:return this.botInstance.isRobot()?this.initOptions.suppressCmpDisplay=!0:window.location.origin.includes("app.usercentrics.eu")&&window.location.pathname.includes("/browser-ui/preview/")||this.addSessionTrackingPixel(),A=E.consentTemplates.find(function(e){var t;return"Fraud0"===(null==(t=e._meta)?void 0:t.name)||"q-_eu2X2d"===e.templateId}),(null==(t=v.integrations)?void 0:t.fraud0)&&v.integrations.fraud0.length>0&&A&&!(null==A?void 0:A.isDeactivated)&&((m=document.createElement("script")).src="https://bt.fraud0.com/api/v2/fz.js?cid=".concat(v.integrations.fraud0[0].accountId),m.async=!0,m.setAttribute(t5,"Fraud0"),m.type=tH.TEXT_PLAIN,document.body.appendChild(m)),O=this.apiInstance.getJsonFileLanguage(),[4,this.settingsV2.init(v,E,O)];case 12:return B.sent(),[4,this.uiInstance.resolveUiVariant(v.tcf2Enabled)];case 13:return N=B.sent(),[4,this.settingsV2.initData(N,[],!1,!0===this.initOptions.euMode,this.initOptions.excludeAcceptAllVendors,S,this.initOptions.enableDeprecatedV1ConsentSaving)];case 14:return B.sent(),[4,this.apiInstance.fetchTranslations()];case 15:return b=B.sent(),!this.initOptions.prefetchServices&&this.settingsV2.allLegacyServicesHaveName?[3,17]:[4,this.settingsV2.extendServices(N,b)];case 16:B.sent(),this.apiInstance.resetAggregatedServicesCache(),B.label=17;case 17:return this.controllerIdInstance.setNeedSessionRestore(),[4,this.dataFacadeInstance.restoreUserSession(E)];case 18:return(D=B.sent())||(this.controllerIdInstance.init(),this.settingsV2.data&&this.settingsV2.setControllerId(this.controllerIdInstance.value)),[4,this.uiInstance.init(this.initOptions)];case 19:return B.sent(),R=this.settingsV2.getTcfData(),e6(this.settingsV2.data)&&R?[4,this.settingsV2.data.init(!0===this.initOptions.euMode)]:[3,21];case 20:B.sent(),B.label=21;case 21:return this.settingsV2.initLabels(N,b),w=[],eT.settingsExist()&&(w=this.processStorageServicesAndSettings(this.settingsV2.data)),this.botInstance.isRobot()||(this.apiInstance.saveConsentsFromBuffer(),this.apiInstance.saveConsentsV2FromBuffer()),[4,this.uiInstance.resolveUIOptions(v)];case 22:return M=(U=B.sent()).initialLayer,k=eT.fetchTCFData(),D&&R&&(null==(n=this.gppData)||n.setSectionString(k.tcString,"tcfeuv2"),eT.saveTCFData(L(L({},k),{vendors:rF(R.getTCFData().vendors)}))),this.setIsConsentRequired(this.uiInstance.shouldShowFirstLayer(v)),this.isConsentRequired&&eT.setUserActionPerformed(!1),this.settingsV2.initLabels(N,b),[4,this.settingsV2.initUI(M,N)];case 23:return B.sent(),R?!(0===M||(null==(i=this.initOptions)?void 0:i.suppressCmpDisplay)&&this.getIsConsentRequired())||this.botInstance.isRobot()?[3,25]:[4,R.setUIAsOpen()]:[3,27];case 24:return B.sent(),[3,27];case 25:return[4,R.setUIAsClosed()];case 26:B.sent(),B.label=27;case 27:return this.initOptions.createGppStub&&(e6(this.settingsV2.data)||e4(this.settingsV2.data))&&(e6(F=this.settingsV2.data)?null==(s=this.gppData)||s.setApplicableSections("tcfeuv2"):e4(F)?null==(r=this.gppData)||r.setApplicableSections(F.legalFramework):null==(o=this.gppData)||o.setApplicableSections("tcfeuv2"),(0===M||3===M||(null==(a=this.initOptions)?void 0:a.suppressCmpDisplay)&&this.getIsConsentRequired())&&!this.botInstance.isRobot()&&(null==(c=this.gppData)||c.setCmpDisplayVisible()),2!==M&&1!==M||null==(u=this.gppData)||u.setCmpDisplayHidden(),null==(l=this.gppData)||l.setCmpSignalReady(),null==(d=this.gppData)||d.setCmpStatusLoaded()),this.settingsV2.isTagLoggerActive()&&!this.botInstance.isRobot()&&(new iQ).initTagLogger(),this.eventDispatcherInstance.enableClarity(!0===(null==(h=this.settingsV2.legacySettings)?void 0:h.microsoftClarityConsentSignalEnabled)),this.eventDispatcherInstance.init(this.settingsV2.getDataExchangeSettings()),[4,this.updateStorage(g,w,D)];case 28:return B.sent(),[2,U]}})})},e.prototype.acceptAllForTCF=function(e){return P(this,void 0,void 0,function(){var t;return V(this,function(n){switch(n.label){case 0:return(t=this.settingsV2.getTcfData())?[4,t.acceptAllDisclosed(e)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},e.prototype.acceptAllServices=function(e){return void 0===e&&(e="explicit"),P(this,void 0,void 0,function(){return V(this,function(t){switch(t.label){case 0:return this.dataFacadeInstance.execute(this.settingsV2.getUpdatedServicesWithConsent(F.TRUE),this.settingsV2.getUpdatedServicesDataWithConsent(F.TRUE),"onAcceptAllServices",e,{},this.initOptions.enableDeprecatedV1ConsentSaving),[4,this.saveUserActionPerformed()];case 1:return t.sent(),[2]}})})},e.prototype.changeLanguage=function(e){var t,n;return P(this,void 0,void 0,function(){var i,s,r,o,a,c,u,l,d,h,p,g,f,S,v,E;return V(this,function(I){switch(I.label){case 0:return s=(i=null==(t=this.settingsV2.core)?void 0:t.language.available)&&i.some(function(t){return t===e}),r=e!==this.apiInstance.getJsonFileLanguage()&&s,a=(o=this.settingsV2).core,c=o.data,r&&c&&a?(this.apiInstance.setJsonFileLanguage(e),this.apiInstance.resetTranslationsCache(),this.settingsV2.language=e,[4,this.fetchCoreAndDps()]):[3,8];case 1:return u=I.sent().dps,this.settingsV2.dpsJson=u,d=(l=this.uiInstance).selectedLayer,h=l.variant,[4,this.apiInstance.fetchTranslations()];case 2:return p=I.sent(),null===h||null===d||null==u?[3,6]:!this.settingsV2.isAggregatorLoaded&&this.settingsV2.checkIfServiceNameExists(u.consentTemplates)?[3,4]:[4,this.settingsV2.extendServices(h,p)];case 3:return I.sent(),[3,5];case 4:this.settingsV2.initLabels(h,p),I.label=5;case 5:this.apiInstance.resetAggregatedServicesCache(),I.label=6;case 6:return this.settingsV2.updateServicesLanguage(e),f=(g=this.dataFacadeInstance.getMergedServicesAndSettingsFromStorage(c)).mergedServices,S=g.mergedServicesData,v=g.mergedSettingsData,a.language.selected=e,v.categories=this.settingsV2.mergeServicesDataIntoExistingCategories(S),this.settingsV2.data=v,(E=this.settingsV2.getDataTransferSettings())&&eT.saveSettings(eT.mapSettings(E,f),f),e6(v)?[4,v.changeLanguage(e,null==(n=this.settingsV2.legacySettings)?void 0:n.tcf2)]:[3,8];case 7:I.sent(),I.label=8;case 8:return[2]}})})},e.prototype.denyAllForTCF=function(e){return P(this,void 0,void 0,function(){var t;return V(this,function(n){switch(n.label){case 0:return(t=this.settingsV2.getTcfData())?[4,t.denyAllDisclosed(e)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},e.prototype.denyAllServices=function(e){return void 0===e&&(e="explicit"),P(this,void 0,void 0,function(){return V(this,function(t){switch(t.label){case 0:return this.dataFacadeInstance.execute(this.settingsV2.getUpdatedServicesWithConsent(F.FALSE),this.settingsV2.getUpdatedServicesDataWithConsent(F.FALSE),"onDenyAllServices",e,{},this.initOptions.enableDeprecatedV1ConsentSaving),[4,this.saveUserActionPerformed()];case 1:return t.sent(),[2]}})})},e.prototype.fetchIsUserInEU=function(){return P(this,void 0,void 0,function(){return V(this,function(e){return[2,this.locationInstance.getIsUserInEU()]})})},e.prototype.fetchUserCountry=function(){return P(this,void 0,void 0,function(){return V(this,function(e){return[2,this.locationInstance.getUserCountryData()]})})},e.prototype.getAbTestVariant=function(){return this.apiInstance.getAbTestVariant()},e.prototype.getCategoriesBaseInfo=function(){return this.settingsV2.getCategoriesBaseInfo()},e.prototype.getCategoriesFullInfo=function(){return P(this,void 0,void 0,function(){var e;return V(this,function(t){switch(t.label){case 0:return[4,this.apiInstance.fetchTranslations()];case 1:return e=t.sent(),[2,this.settingsV2.getCategoriesFullInfo(this.uiInstance.variant,e)]}})})},e.prototype.getCcpaOptOutStatus=function(){var e;return(null==(e=this.settingsV2.getCcpaData())?void 0:e.getIsOptedOut())||!1},e.prototype.getCcpaExplicitNoticeStatus=function(){var e;return(null==(e=this.settingsV2.getCcpaData())?void 0:e.getExplicitNotice())||!1},e.prototype.saveOptOutForCcpa=function(e,t){return void 0===t&&(t="explicit"),P(this,void 0,void 0,function(){var n,i;return V(this,function(s){switch(s.label){case 0:return(n=this.settingsV2.getCcpaData())&&n.getIsOptedOut()!==e?
1(n.setCcpaStorage(e),i={consentAction:e?"onDenyAllServices":"onAcceptAllServices",consentStatus:e?F.FALSE:F.TRUE,consentString:{CCPA:eT.getCcpaString()}},this.dataFacadeInstance.execute(this.settingsV2.getUpdatedServicesWithConsent(i.consentStatus),this.settingsV2.getUpdatedServicesDataWithConsent(i.consentStatus),i.consentAction,t,i.consentString,this.initOptions.enableDeprecatedV1ConsentSaving),[4,this.saveUserActionPerformed()]):[2];case 1:return s.sent(),[2]}})})},e.prototype.saveDefaultForCcpa=function(){return P(this,void 0,void 0,function(){var e,t,n;return V(this,function(i){switch(i.label){case 0:return e=this.settingsV2.getCcpaData(),t=eT.getCcpaString(),e?[3,2]:(eT.setCcpaTimeStamp(),[4,this.saveUserActionPerformed()]);case 1:case 3:return i.sent(),[2];case 2:return"-"===t[1]?(n=e.getIsOptedOut(),null==e||e.setCcpaStorage(n,ix.ACCEPT),window.dispatchEvent(new Event(tY))):eT.setCcpaTimeStamp(),[4,this.saveUserActionPerformed()]}})})},e.prototype.getControllerId=function(){return this.controllerIdInstance.value},e.prototype.getServicesBaseInfo=function(){return this.settingsV2.getServicesBaseInfo()},e.prototype.getServicesFullInfo=function(){return P(this,void 0,void 0,function(){var e;return V(this,function(t){switch(t.label){case 0:return[4,this.apiInstance.fetchTranslations()];case 1:return e=t.sent(),[2,this.settingsV2.getServicesFullInfo(this.uiInstance.variant,e)]}})})},e.prototype.getSettingsCore=function(){var e=this.settingsV2.core;if(!e)throw Error("Usercentrics: You have to call the init method before!");return e},e.prototype.getSettingsLabels=function(){var e=this.settingsV2.labels;if(!e)throw Error("Usercentrics: You have to call the init method before!");return e},e.prototype.getSettingsData=function(){var e=this.settingsV2.data;if(!e)throw Error("Usercentrics: You have to call the init method before!");return e},e.prototype.getSettingsUI=function(){return this.settingsV2.ui},e.prototype.getAriaLabels=function(){var e,t;return tt(this.settingsV2.labels)&&null!=(null==(e=this.settingsV2.labels)?void 0:e.ariaLabels)?null==(t=this.settingsV2.labels)?void 0:t.ariaLabels:eK},e.prototype.getTCFData=function(){var e=this.settingsV2.getTcfData();return e?e.getTCFData():null},e.prototype.getGpcSignalHonoured=function(){var e;return null==(e=this.settingsV2.legacySettings)?void 0:e.gpcSignalHonoured},e.prototype.getActionTypePerformed=function(){return eT.fetchActionTypePerformed()},e.prototype.getTCFDisclosedVendorsSegmentString=function(){return this.settingsV2.getTCFDisclosedVendorsSegmentString()},e.prototype.injectTCString=function(e){return this.settingsV2.injectTCString(e)},e.prototype.setTCFUIAsClosed=function(){return P(this,void 0,void 0,function(){var e;return V(this,function(t){switch(t.label){case 0:return(e=this.settingsV2.getTcfData())?[4,e.setUIAsClosed()]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},e.prototype.setGppDisplayHidden=function(){var e;return P(this,void 0,void 0,function(){return V(this,function(t){switch(t.label){case 0:return[4,null==(e=iY.getInstance())?void 0:e.setCmpDisplayHidden()];case 1:return t.sent(),[2]}})})},e.prototype.setGppDisplayVisible=function(){var e;return P(this,void 0,void 0,function(){return V(this,function(t){switch(t.label){case 0:return[4,null==(e=iY.getInstance())?void 0:e.setCmpDisplayVisible()];case 1:return t.sent(),[2]}})})},e.prototype.setTCFUIAsOpen=function(){return P(this,void 0,void 0,function(){var e;return V(this,function(t){switch(t.label){case 0:return(e=this.settingsV2.getTcfData())?[4,e.setUIAsOpen()]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},e.prototype.updateChoicesForTCF=function(e,t){return P(this,void 0,void 0,function(){var n;return V(this,function(i){switch(i.label){case 0:return(n=this.settingsV2.getTcfData())?[4,n.updateChoices(e,t)]:[3,2];case 1:i.sent(),i.label=2;case 2:return[2]}})})},e.prototype.areAllConsentsAccepted=function(){return this.settingsV2.isTcfAvailable()?this.settingsV2.areAllVendorsAndPurposesAccepted()&&this.settingsV2.areAllServicesAccepted():this.settingsV2.areAllServicesAccepted()},e.prototype.restoreUserSession=function(e){var t,n;return P(this,void 0,void 0,function(){var i;return V(this,function(s){switch(s.label){case 0:return(null==(t=this.settingsV2.core)?void 0:t.consentAPIv2)&&!(null==(n=this.settingsV2.core)?void 0:n.consentXDevice)?(console.warn(Q.CROSS_DEVICE_FEATURE_DISABLED),this.controllerIdInstance.needsSessionRestore=!1,[2]):(this.controllerIdInstance.value=e,this.controllerIdInstance.needsSessionRestore=!0,this.settingsV2.setControllerId(e),(i=this.settingsV2.dpsJson)?[4,this.dataFacadeInstance.restoreUserSession(i)]:[3,2]);case 1:s.sent()&&this.enableServicesScripts(this.processStorageServicesAndSettings(this.settingsV2.data),this.settingsV2.getGoogleConsentMode(),"onSessionRestored"),s.label=2;case 2:return[2]}})})},e.prototype.clearStorage=function(){return P(this,void 0,void 0,function(){return V(this,function(e){switch(e.label){case 0:return[4,eT.clearAll()];case 1:return e.sent(),[2]}})})},e.prototype.postMessageAmp=function(e,t,n){return P(this,void 0,void 0,function(){var i,s,r,o,a,c,u,l,d=this;return V(this,function(h){switch(h.label){case 0:return i=this.settingsV2.isTcfAvailable(),[4,this.settingsV2.isCcpaAvailable()];case 1:return s=h.sent(),r=function(){var e=d.settingsV2.getTcfData();return i&&(null==e?void 0:e.getTCString)?e.getTCString():s?eT.getCcpaString():""},o=function(){return P(d,void 0,void 0,function(){var e,t,n,r;return V(this,function(o){switch(o.label){case 0:return r=this.settingsV2.getTcfData(),i&&r?(e=w.TCF_V2,[4,r.getGdprApplies()]):[3,2];case 1:return t=o.sent(),n=this.settingsV2.getTCFPurposeOneTreatment(),[3,3];case 2:s&&(e=w.CCPA),o.label=3;case 3:return[2,L({consentStringType:e},i&&{gdprApplies:t,purposeOne:n})]}})})},c=[{action:t,type:e}],(u=e===D.CONSENT_RESPONSE&&t!==R.DISMISS&&(s||i))?(l={},[4,o()]):[3,3];case 2:l.consentMetadata=h.sent(),l.info=r(),u=l,h.label=3;case 3:return a=L.apply(void 0,[L.apply(void 0,c.concat([u])),n&&{initialHeight:n}]),[2,new Promise(function(e,t){try{window.parent.postMessage(L({},a),"*"),e()}catch(e){t(e)}})]}})})},e.prototype.acceptAllAmp=function(){return P(this,void 0,void 0,function(){return V(this,function(e){switch(e.label){case 0:return[4,this.postMessageAmp(D.CONSENT_RESPONSE,R.ACCEPT)];case 1:return e.sent(),[2]}})})},e.prototype.denyAllAmp=function(){return P(this,void 0,void 0,function(){return V(this,function(e){switch(e.label){case 0:return[4,this.postMessageAmp(D.CONSENT_RESPONSE,R.REJECT)];case 1:return e.sent(),[2]}})})},e.prototype.saveTCFDataAmp=function(e){return P(this,void 0,void 0,function(){var t;return V(this,function(n){switch(n.label){case 0:return t=e.every(function(e){return e.status}),0===e.length||t?[4,this.postMessageAmp(D.CONSENT_RESPONSE,R.ACCEPT)]:[3,2];case 1:return n.sent(),[3,4];case 2:return[4,this.postMessageAmp(D.CONSENT_RESPONSE,R.REJECT)];case 3:n.sent(),n.label=4;case 4:return[2]}})})},e.prototype.dismissAmp=function(){return P(this,void 0,void 0,function(){return V(this,function(e){switch(e.label){case 0:return[4,this.postMessageAmp(D.CONSENT_RESPONSE,R.DISMISS)];case 1:return e.sent(),[2]}})})},e.prototype.enterFullscreenAmp=function(){return P(this,void 0,void 0,function(){return V(this,function(e){return[2,this.postMessageAmp(D.CONSENT_UI,R.FULLSCREEN)]})})},e.prototype.uiReadyAmp=function(){return P(this,void 0,void 0,function(){var e,t,n;return V(this,function(i){return e=this.settingsV2.labels,t="60vh",e&&tt(e)&&(n=e.firstLayer.description.default.length,window.screen.height>700&&n<=250&&(t="50vh")),[2,this.postMessageAmp(D.CONSENT_UI,R.READY,t)]})})},e.prototype.saveUserActionPerformed=function(){return P(this,void 0,void 0,function(){return V(this,function(e){switch(e.label){case 0:return eT.setUserActionPerformed(!0),this.setIsConsentRequired(!1),this.uiInstance.selectedLayer?[4,this.settingsV2.initUI(this.uiInstance.selectedLayer,this.uiInstance.variant)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})})},e.prototype.updateServices=function(e,t){return void 0===t&&(t="explicit"),P(this,void 0,void 0,function(){var n,i;return V(this,function(s){switch(s.label){case 0:return n=this.settingsV2.getUpdatedServicesWithDecisions(e),i=this.settingsV2.getUpdatedServicesDataWithDecisions(e),eA(n)&&this.dataFacadeInstance.execute(n,i,"onUpdateServices",t,{},this.initOptions.enableDeprecatedV1ConsentSaving),[4,this.saveUserActionPerformed()];case 1:return s.sent(),[2]}})})},e.prototype.updateLayer=function(e){return P(this,void 0,void 0,function(){var t;return V(this,function(n){switch(n.label){case 0:return t=this.uiInstance.selectedLayer,this.uiInstance.selectedLayer=e,e===t?[2]:[4,this.settingsV2.initUI(e,this.uiInstance.variant)];case 1:return n.sent(),3!==e?[3,3]:[4,this.loadServices()];case 2:n.sent(),n.label=3;case 3:return[2]}})})},e.prototype.loadServices=function(){return P(this,void 0,void 0,function(){var e;return V(this,function(t){switch(t.label){case 0:return this.settingsV2.isAggregatorLoaded||!this.uiInstance.selectedLayer?[2]:[4,this.apiInstance.fetchTranslations()];case 1:return e=t.sent(),[4,this.settingsV2.extendServices(this.uiInstance.variant,e)];case 2:return t.sent(),this.apiInstance.resetAggregatedServicesCache(),[2]}})})},e.prototype.loadSettings=function(){return P(this,void 0,void 0,function(){var e;return V(this,function(t){switch(t.label){case 0:return[4,this.apiInstance.fetchSettingsJson()];case 1:return e=t.sent(),this.settingsV2.legacySettings=e,[2,e]}})})},e.prototype.updateStorage=function(e,t,n){return P(this,void 0,void 0,function(){var i,s,r;return V(this,function(o){var a;switch(o.label){case 0:return[4,this.settingsV2.shouldDenyAllExplicitlyOnInit(
1)];case 1:return o.sent()?(this.dataFacadeInstance.execute(this.settingsV2.getUpdatedServicesWithConsent(F.FALSE),this.settingsV2.getUpdatedServicesDataWithConsent(F.FALSE),"onDenyAllServices","explicit",{},this.initOptions.enableDeprecatedV1ConsentSaving),[4,this.settingsV2.shouldDenyAllOnInitFromGpc()]):[3,5];case 2:return o.sent()?[4,this.saveUserActionPerformed()]:[3,4];case 3:o.sent(),eT.setActionTypePerformed("gpc"),o.label=4;case 4:return[3,10];case 5:return this.uiInstance.isFirstTimeVisit()?[4,this.settingsV2.shouldAcceptAllImplicitlyOnInit()]:[3,7];case 6:return o.sent()?this.dataFacadeInstance.execute(this.settingsV2.getUpdatedServicesWithConsent(F.TRUE),this.settingsV2.getUpdatedServicesDataWithConsent(F.TRUE),"onNonEURegion",this.botInstance.isRobot()?"explicit":"implicit",{},this.initOptions.enableDeprecatedV1ConsentSaving):this.dataFacadeInstance.execute(this.settingsV2.getServicesDataAndLabels(),this.settingsV2.getServicesData(),"onInitialPageLoad","implicit",{},this.initOptions.enableDeprecatedV1ConsentSaving),[3,10];case 7:return i=null!=t?t:this.processStorageServicesAndSettings(this.settingsV2.data),a=this.settingsV2.getServicesData(),(s=e&&!a.every(function(t){return e.find(function(e){return e.id===t.id})})||!1)?[4,this.settingsV2.shouldAcceptAllImplicitlyOnVendorAdded()]:[3,9];case 8:s=o.sent(),o.label=9;case 9:s?this.dataFacadeInstance.execute(this.settingsV2.getUpdatedServicesWithConsent(F.TRUE),this.settingsV2.getUpdatedServicesDataWithConsent(F.TRUE),"onNonEURegion",this.botInstance.isRobot()?"explicit":"implicit",{},this.initOptions.enableDeprecatedV1ConsentSaving):(r=n&&this.dataFacadeInstance.restoreAction?this.dataFacadeInstance.restoreAction:"onInitialPageLoad",this.enableServicesScripts(i,this.settingsV2.getGoogleConsentMode(),r),this.dataFacadeInstance.restoreAction=null),o.label=10;case 10:return[2]}})})},e.prototype.enableScriptsForServicesWithConsent=function(){t7.enableScriptsForServicesWithConsent(this.settingsV2.getServicesWithConsent())},e.prototype.setTrackingPixel=function(e){var t;!this.initOptions.disableTracking&&(null==(t=this.settingsV2.coreJson)?void 0:t.interactionAnalytics)&&this.apiInstance.setTrackingPixel(e)},e.prototype.addSessionTrackingPixel=function(){(new Image).src=this.apiInstance.createSessionTrackingUrl()},e.prototype.processStorageServicesAndSettings=function(e){if(!e||!this.settingsV2.labels)return[];var t=this.dataFacadeInstance.getMergedServicesAndSettingsFromStorage(e),n=t.dataTransferSettings,i=t.mergedServicesData,s=t.mergedServices,r=t.updatedEssentialServices;return this.dataFacadeInstance.mergeServicesAndSettings(s,i,n,r,this.settingsV2.labels.services,this.initOptions.enableDeprecatedV1ConsentSaving)},e.prototype.enableServicesScripts=function(e,t,n){var i,s=this.settingsV2.getTcfData();s&&s.advertiserConsentModeEnabled&&(i=s.getTCFData().vendors.find(function(e){return 755===e.id})),t7.enableScriptsForServicesWithConsent(this.settingsV2.getServicesWithConsent()),this.eventDispatcherInstance.dispatch(e,i,t,n)},e.prototype.setIsConsentRequired=function(e){this.isConsentRequired=!0===e},e.prototype.getIsConsentRequired=function(){return this.isConsentRequired},e.prototype.getThirdPartyCount=function(){return this.settingsV2.getThirdPartyCount()},e.prototype.getAddVendorCount=function(){var e,t;return(null==(t=null==(e=this.settingsV2.legacySettings)?void 0:e.gdpr)?void 0:t.addVendorCount)||!1},e}()}}]);

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