!function(){"use strict";function e(R,D,P){return(D=function(R){var D=function(R){if("object"!=typeof R||!R)return R;var D=R[Symbol.toPrimitive];if(void 0!==D){var P=D.call(R,"string");if("object"!=typeof P)return P;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(R)}(R);return"symbol"==typeof D?D:D+""}(D))in R?Object.defineProperty(R,D,{value:P,enumerable:!0,configurable:!0,writable:!0}):R[D]=P,R}function t(){return t=Object.assign?Object.assign.bind():function(R){for(var D=1;DR.length)&&(D=R.length);for(var P=0,x=Array(D);P=R.length?{done:!0}:{done:!1,value:R[x++]}},e:function(R){throw R},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var k,G=!0,H=!1;return{s:function(){P=P.call(R)},n:function(){var R=P.next();return G=R.done,R},e:function(R){H=!0,k=R},f:function(){try{G||null==P.return||P.return()}finally{if(H)throw k}}}}function h(R,D,P){return(D=_(D))in R?Object.defineProperty(R,D,{value:P,enumerable:!0,configurable:!0,writable:!0}):R[D]=P,R}function g(){return g="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(R,D,P){var x=function(R,D){for(;!{}.hasOwnProperty.call(R,D)&&null!==(R=f(R)););return R}(R,D);if(x){var k=Object.getOwnPropertyDescriptor(x,D);return k.get?k.get.call(arguments.length<3?R:P):k.value}},g.apply(null,arguments)}function f(R){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(R){return R.__proto__||Object.getPrototypeOf(R)},f(R)}function v(R,D){if("function"!=typeof D&&null!==D)throw new TypeError("Super expression must either be null or a function");R.prototype=Object.create(D&&D.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),Object.defineProperty(R,"prototype",{writable:!1}),D&&C(R,D)}function m(){try{var R=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(R){}return(m=function(){return!!R})()}function S(R,D){var P=Object.keys(R);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(R);D&&(x=x.filter(function(D){return Object.getOwnPropertyDescriptor(R,D).enumerable})),P.push.apply(P,x)}return P}function b(R){for(var D=1;D3?(k=ie===x)&&(z=H[($=H[4])?5:($=3,3)],H[4]=H[5]=R):H[0]<=ne&&((k=P<2&&nex||x>ie)&&(H[4]=P,H[5]=x,te.n=ie,$=0))}if(k||P>1)return G;throw ee=!0,x}return function(k,W,ne){if(Y>1)throw TypeError("Generator is already running");for(ee&&1===W&&h(W,ne),$=W,z=ne;(D=$<2?R:z)||!ee;){H||($?$<3?($>1&&(te.n=-1),h($,z)):te.n=z:te.v=z);try{if(Y=2,H){if($||(k="next"),D=H[k]){if(!(D=D.call(H,z)))throw TypeError("iterator result is not an object");if(!D.done)return D;z=D.value,$<2&&($=0)}else 1===$&&(D=H.return)&&D.call(H),$<2&&(z=TypeError("The iterator does not provide a '"+k+"' method"),$=1);H=R}else if((D=(ee=te.n<0)?z:P.call(x,te))!==G)break}catch(D){H=R,$=1,z=D}finally{Y=1}}return{value:D,done:ee}}}(P,k,H),!0),z}var G={};function a(){}function l(){}function c(){}D=Object.getPrototypeOf;var H=[][x]?D(D([][x]())):(E(D={},x,function(){return this}),D),$=c.prototype=a.prototype=Object.create(H);function p(R){return Object.setPrototypeOf?Object.setPrototypeOf(R,c):(R.__proto__=c,E(R,k,"GeneratorFunction")),R.prototype=Object.create($),R}return l.prototype=c,E($,"constructor",c),E(c,"constructor",l),l.displayName="GeneratorFunction",E(c,k,"GeneratorFunction"),E($),E($,k,"Generator"),E($,x,function(){return this}),E($,"toString",function(){return"[object Generator]"}),(y=function(){return{w:o,m:p}})()}function E(R,D,P,x){var k=Object.defineProperty;try{k({},"",{})}catch(R){k=0}E=function(R,D,P,x){function o(D,P){E(R,D,function(R){return this._invoke(D,P,R)})}D?k?k(R,D,{value:P,enumerable:!x,configurable:!x,writable:!x}):R[D]=P:(o("next",0),o("throw",1),o("return",2))},E(R,D,P,x)}function C(R,D){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(R,D){return R.__proto__=D,R},C(R,D)}function T(R,D,P,x){var k=g(f(1&x?R.prototype:R),D,P);return 2&x&&"function"==typeof k?function(R){return k.apply(P,R)}:k}function I(R){return function(R){if(Array.isArray(R))return o(R)}(R)||function(R){if("undefined"!=typeof Symbol&&null!=R[Symbol.iterator]||null!=R["@@iterator"])return Array.from(R)}(R)||w(R)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(R){var D=function(R){if("object"!=typeof R||!R)return R;var D=R[Symbol.toPrimitive];if(void 0!==D){var P=D.call(R,"string");if("object"!=typeof P)return P;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(R)}(R);return"symbol"==typeof D?D:D+""}function A(R){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},A(R)}function w(R,D){if(R){if("string"==typeof R)return o(R,D);var P={}.toString.call(R).slice(8,-1);return"Object"===P&&R.constructor&&(P=R.constructor.name),"Map"===P||"Set"===P?Array.from(R):"Arguments"===P||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P)?o(R,D):void 0}}function O(R){var D="function"==typeof Map?new Map:void 0;return O=function(R){if(null===R||!function(R){try{return-1!==Function.toString.call(R).indexOf("[native code]")}catch(D){return"function"==typeof R}}(R))return R;if("function"!=typeof R)throw new TypeError("Super expression must either be null or a function");if(void 0!==D){if(D.has(R))return D.get(R);D.set(R,n)}function n(){return function(R,D,P){if(m())return Reflect.construct.apply(null,arguments);var x=[null];x.push.apply(x,D);var k=new(R.bind.apply(R,x));return P&&C(k,P.prototype),k}(R,arguments,f(this).constructor)}return n.prototype=Object.create(R.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),C(n,R)},O(R)}var L=function(R,D){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,D){R.__proto__=D}||function(R,D){for(var P in D)Object.prototype.hasOwnProperty.call(D,P)&&(R[P]=D[P])},L(R,D)};function N(R,D){if("function"!=typeof D&&null!==D)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");function n(){this.constructor=R}L(R,D),R.prototype=null===D?Object.create(D):(n.prototype=D.prototype,new n)}var R,D,P,x,k,G,H,$,z,Y,W,ee,te,ne,ie,re,oe,K=function(){return K=Object.assign||function(R){for(var D,P=1,x=arguments.length;P0&&k[k.length-1])||6!==$[0]&&2!==$[0])){G=0;continue}if(3===$[0]&&(!k||$[1]>k[0]&&$[1]0)&&!(x=G.next()).done;)H.push(x.value)}catch(R){k={error:R}}finally{try{x&&!x.done&&(P=G.return)&&P.call(G)}finally{if(k)throw k.error}}return H}function Q(R,D,P){if(P||2===arguments.length)for(var x,k=0,G=D.length;k=R.length&&(R=void 0),{value:R&&R[x++],done:!R}}};throw new TypeError(D?"Object is not iterable.":"Symbol.iterator is not defined.")}(R),D={},i("next"),i("throw"),i("return"),D[Symbol.asyncIterator]=function(){return this},D);function i(P){D[P]=R[P]&&function(D){return new Promise(function(x,k){!function(R,D,P,x){Promise.resolve(x).then(function(D){R({value:D,done:P})},D)}(x,k,(D=R[P](D)).done,D.value)})}}}"function"==typeof SuppressedError&&SuppressedError,function(R){R.CONSENT_RESPONSE="consent-response",R.CONSENT_UI="consent-ui"}(R||(R={})),function(R){R.ACCEPT="accept",R.REJECT="reject",R.DISMISS="dismiss",R.FULLSCREEN="enter-fullscreen",R.READY="ready"}(D||(D={})),function(R){R[R.TCF_V2=2]="TCF_V2",R[R.CCPA=3]="CCPA"}(P||(P={})),function(R){R[R.FALSE=0]="FALSE",R[R.TRUE=1]="TRUE"}(x||(x={})),function(R){R[R.DATA_LAYER=0]="DATA_LAYER",R[R.WINDOW_EVENT=1]="WINDOW_EVENT"}(k||(k={})),function(R){R[R.MAJOR=0]="MAJOR",R[R.MINOR=1]="MINOR",R[R.PATCH=2]="PATCH"}(G||(G={})),function(R){R.CALL_INIT="Usercentrics: You have to call the init method before!",R.DATA_LOCAL="Usercentrics: disableServerConsents and controllerId should not be present at the same time in the InitOptions!",R.UNKNOWN_VARIANT="Usercentrics: Unknown variant",R.NOT_CCPA="Usercentrics: CCPA was not initialized",R.NOT_DEFAULT="Usercentrics: GDPR was not initialized",R.NOT_TCF="Usercentrics: TCF was not initialized"}(H||(H={})),function(R){R.BANNER="BANNER",R.WALL="WALL"}($||($={})),function(R){R.CENTER="CENTER",R.SIDE="SIDE"}(z||(z={})),function(R){R[R.DARK=0]="DARK",R[R.LIGHT=1]="LIGHT"}(Y||(Y={})),function(R){R.LINK="LINK",R.BUTTON="BUTTON",R.MORE_LINK_BUTTON="MORE_LINK_BUTTON"}(W||(W={})),function(R){R.LEFT="LEFT",R.RIGHT="RIGHT"}(ee||(ee={})),function(R){R.HORIZONTAL="HORIZONTAL",R.VERTICAL="VERTICAL"}(te||(te={})),function(R){R.ALL="ALL",R.SHORT="SHORT"}(ne||(ne={})),function(R){R.CROSS_DEVICE_DATA_NOT_AVAILABLE="Usercentrics: Cross Device Consents data is not available",R.CROSS_DEVICE_TCF_DATA_NOT_AVAILABLE="Usercentrics: Cross Device TCF data is not available",R.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"}(ie||(ie={})),function(R){R.CROSS_DOMAIN_DATA_NOT_AVAILABLE="Usercentrics: Cross Domain Consents data is not available",R.CROSS_DOMAIN_TCF_DATA_NOT_AVAILABLE="Usercentrics: Cross Domain TCF data is not available",R.CROSS_DOMAIN_FEATURE_NOT_AVAILABLE="Usercentrics: Cross Domain Consent Sharing is not available.",R.CROSS_DOMAIN_LANGUAGE_NOT_AVAILABLE="Usercentrics: Cross Domain Consent language is not available",R.CROSS_DOMAIN_SET_DATA_FAILURE="Usercentrics: Unable to set Cross Domain data",R.CROSS_DOMAIN_SET_TCF_DATA_FAILURE="Usercentrics: Unable to set Cross Domain TCF data",R.CROSS_DOMAIN_IFRAME_ERROR="Usercentrics: Iframe error",R.CROSS_DOMAIN_IFRAME_NOT_FOUND="Usercentrics: Cross Domain iFrame not found",R.CROSS_DOMAIN_IFRAME_LOAD_ERROR="Usercentrics: IFrame did not load"}(re||(re={})),function(R){R.CLEAR="clear",R.GET_CROSS_DOMAIN_LANGUAGE="getCrossDomainLanguage",R.GET_CROSS_DOMAIN_SESSION_DATA="getCrossDomainSessionData",R.GET_CROSS_DOMAIN_TCF_DATA="getCrossDomainTcfData",R.GET_CROSS_DOMAIN_CCPA_DATA="getCrossDomainCcpaData",R.GET_TC_STRING="getTCString",R.PING="ping",R.SET_CROSS_DOMAIN_DATA="setCrossDomainData",R.SET_CROSS_DOMAIN_TCF_DATA="setCrossDomainTcfData",R.SET_CROSS_DOMAIN_CCPA_DATA="setCrossDomainCcpaData",R.SET_TC_STRING="setTCString"}(oe||(oe={}));var ae,le,ce="ucMobileSdk",ue=["*.usercentrics-sandbox.eu","*.usercentrics.eu"],de="4.59.0",pe="1---",he="__uspapiLocator",ge=/^[1][nNyY-][nNyY-][nNyY-]$/,fe="__uspapi";!function(R){R.CCPA="uc_usprivacy",R.CCPA_DATA="uc_ccpa",R.CONSENTS_BUFFER="uc_consents_buffer",R.CONSENTS_V2_BUFFER="uc_consents_v2_buffer",R.GCM_DATA="uc_gcm",R.LEGACY_SETTINGS="ucSettings",R.SERVICES="uc_services",R.SETTINGS="uc_settings",R.TCF="uc_tcf",R.USER_INTERACTION="uc_user_interaction",R.AB_TEST_VARIANT="uc_ab_variant",R.INTERACTION_TYPE="uc_interaction_type"}(ae||(ae={})),function(R){R.USER_COUNTRY="uc_user_country"}(le||(le={}));var ve,me,ye,Ee,Re="uc-cross-domain-bridge",De="".concat("https://app.usercentrics.eu","/browser-sdk/").concat(de,"/cross-domain-bridge.html"),Pe="".concat("https://app.eu.usercentrics.eu","/browser-sdk/").concat(de,"/cross-domain-bridge.html"),xe=function(){function e(){}return e.setDomainBridgeUri=function(R){var D="";R&&(R.crossDomainConsentSharingIFrame?D=R.crossDomainConsentSharingIFrame:R.app&&(D="".concat(R.app,"/browser-sdk/").concat(de,"/cross-domain-bridge.html")));var P=""!==D?D:De,x=Pe;e.domainBridgeUri=e.useEuCdn?x:P},e.getDomainBridgeUri=function(){return e.domainBridgeUri},e.init=function(R,D){return J(this,void 0,void 0,function(){return X(this,function(P){return e.setDomainBridgeUri(D),e.setUseEuCdn((null==R?void 0:R.useEuCdn)||!1),e.setDomainBridgeUri(D),[2,this.initIFrame(e.getDomainBridgeUri(),Re)]})})},e.initIFrame=function(R,D){return J(this,void 0,void 0,function(){var P=this;return X(this,function(x){return[2,new Promise(function(x,k){var G=e.createIFrame(R,D);G.onload=function(){return J(P,void 0,void 0,function(){var P;return X(this,function(H){return P=setTimeout(function(){G={},k(new Error(re.CROSS_DOMAIN_IFRAME_LOAD_ERROR))},1e3),e.queryIFrame(R,D,oe.PING).then(function(){clearTimeout(P),x(!0)}).catch(function(R){clearTimeout(P),k(R)}),[2]})})},G.onerror=function(){return J(P,void 0,void 0,function(){return X(this,function(R){return k(new Error(re.CROSS_DOMAIN_IFRAME_ERROR)),[2]})})},e.appendIFrame(G)})]})})},e.setIsCrossDomainAvailable=function(R){e.crossDomainAvailable=R},e.isCookieBridgeAvailable=function(){return e.cookieBridgeAvailable},e.setIsCookieBridgeAvailable=function(R){e.cookieBridgeAvailable=R},e.isCrossDomainAvailable=function(){return e.crossDomainAvailable},e.getCrossDomainId=function(){return e.crossDomainId},e.setCrossDomainId=function(R){e.crossDomainId="".concat("uc_cross_domain_data","_").concat(R)},e.setCookieBridgeDomain=function(R,D){this.cookieBridgeDomain="".concat(R).concat(D)},e.setUseEuCdn=function(R){e.useEuCdn=R},e.createIFrame=function(R,D){e.removeIFrame(D);var P=document.createElement("iframe");return P.style.display="none",P.id=D,P.src=R,P},e.removeIFrame=function(R){var D=document.getElementById(R);D&&D.parentNode&&D.parentNode.removeChild(D)},e.queryIFrame=function(R,D,P,x,k){return J(this,void 0,void 0,function(){var G;return X(this,function(H){if(!(G=document.getElementById(D))||!G.id)throw new Error(re.CROSS_DOMAIN_IFRAME_NOT_FOUND);return[2,new Promise(function(D,H){var $=JSON.stringify({crossDomainId:k,method:P,payload:x}),z=new MessageChannel;z.port1.onmessage=function(R){var P=JSON.parse(R.data),x=P.success,k=P.data;x?D(k):H(R)},G&&G.contentWindow&&G.contentWindow.postMessage($,R,[z.port2])})]})})},e.appendIFrame=function(R){try{document.body?document.body.appendChild(R):document.addEventListener("DOMContentLoaded",function(){document.body.appendChild(R)})}catch(R){return new Error(re.CROSS_DOMAIN_IFRAME_ERROR)}return null},e.query=function(R,D){return J(this,void 0,void 0,function(){return X(this,function(P){return[2,e.queryIFrame(e.getDomainBridgeUri(),Re,R,D,e.crossDomainId)]})})},e.getCrossDomainLanguage=function(){return e.query(oe.GET_CROSS_DOMAIN_LANGUAGE)},e.setCrossDomainData=function(R){return J(this,void 0,void 0,function(){return X(this,function(D){return[2,e.query(oe.SET_CROSS_DOMAIN_DATA,(P=R,{consents:P.services.map(function(R){return R.history.map(function(D){return{action:D.action,consentId:"",settingsVersion:D.versions.settings,status:D.status,templateId:R.id,timestamp:"".concat(D.timestamp),updatedBy:D.type}})}).reduce(function(R,D){return R.concat(D)},[]).sort(function(R,D){return parseInt(R.timestamp,10)-parseInt(D.timestamp,10)}),controllerId:P.controllerId,language:P.language}))];var P})})},e.setCrossDomainCcpaData=function(R){return J(this,void 0,void 0,function(){return X(this,function(D){return[2,e.query(oe.SET_CROSS_DOMAIN_CCPA_DATA,R)]})})},e.getCrossDomainCcpaData=function(){return J(this,void 0,void 0,function(){return X(this,function(R){return[2,e.query(oe.GET_CROSS_DOMAIN_CCPA_DATA)]})})},e.getCrossDomainSessionData=function(){return J(this,void 0,void 0,function(){return X(this,function(R){return[2,e.query(oe.GET_CROSS_DOMAIN_SESSION_DATA)]})})},e.getCrossDomainTcfData=function(){return J(this,void 0,void 0,function(){return X(this,function(R){return[2,e.query(oe.GET_CROSS_DOMAIN_TCF_DATA)]})})},e.setCrossDomainTcfData=function(R){return J(this,void 0,void 0,function(){return X(this,function(D){return[2,e.query(oe.SET_CROSS_DOMAIN_TCF_DATA,R)]})})},e.clearCrossDomainStorage=function(){return J(this,void 0,void 0,function(){return X(this,function(R){return[2,e.query(oe.CLEAR)]})})},e.crossDomainId="",e.cookieBridgeDomain="",e.domainBridgeUri=De,e.useEuCdn=!1,e.cookieBridgeAvailable=!1,e.crossDomainAvailable=!1,e}(),ke=function(){function e(){this.length=0,this.data={}}return e.prototype.updateLength=function(){this.length=Object.keys(this.data).length},e.prototype.key=function(R){var D=Object.keys(this.data)[R];return void 0===A(D)?null:D},e.prototype.getItem=function(R){return void 0!==this.data[R]?this.data[R]:null},e.prototype.setItem=function(R,D){this.data[R]=String(D),this.updateLength()},e.prototype.removeItem=function(R){delete this.data[R],this.updateLength()},e.prototype.clear=function(){this.data={},this.updateLength()},e}();!function(R){R.COOKIE_BRIDGE_NOT_AVAILABLE="Usercentrics: Cookie bridge is not available.",R.COOKIE_BRIDGE_OPTIONS_NOT_SET="Usercentrics: Cookie bridge options are not set",R.GET_GLOBAL_TC_STRING_FAILURE="Usercentrics: Unable to get the Global TC string",R.INIT_TCF_ERROR="Usercentrics: Unable to init TCF",R.RESET_GVL_FAILURE="Usercentrics: Unable to reset Global Vendor List",R.SET_GLOBAL_TC_STRING_FAILURE="Usercentrics: Unable to set the Global TC string",R.VENDOR_REMOVED="Usercentrics: The following vendor is not part of the official vendors list anymore: ",R.TC_MODEL_UNDEFINED="Usercentrics: tcModel can not be null.",R.SELECTED_LANGUAGE_UNDEFINED="Usercentrics: Selected language can not be undefined"}(ve||(ve={})),function(R){R.LEGITIMATE_INTEREST="legIntPurposes",R.PURPOSES="purposes"}(me||(me={})),function(R){R[R.ID=0]="ID",R[R.LEGITIMATE_INTEREST=1]="LEGITIMATE_INTEREST",R[R.PURPOSES=2]="PURPOSES",R[R.SPECIAL_PURPOSES=3]="SPECIAL_PURPOSES"}(ye||(ye={})),function(R){R[R.FIRST_LAYER=1]="FIRST_LAYER",R[R.SECOND_LAYER=2]="SECOND_LAYER"}(Ee||(Ee={}));var Se=function(R){switch(R){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"}},be=function(R){switch(R){case"update":case"implicit":default:return"implicit";case"explicit":return"explicit"}},Ve="RAMDOM_KEY_LOCAL_STORAGE",Ue=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(R){this.storeServiceIdToNameMapping=R},e.prototype.getStoreServiceIdToNameMapping=function(){return this.storeServiceIdToNameMapping},e.prototype.init=function(){try{localStorage.setItem(Ve,Ve),localStorage.removeItem(Ve),this.localStorage=localStorage}catch(R){this.localStorage=new ke}try{sessionStorage.setItem(Ve,Ve),sessionStorage.removeItem(Ve),this.sessionStorage=sessionStorage}catch(R){this.sessionStorage=new ke}},e.appendToConsentsBuffer=function(R){var D,P=e.fetchConsentsBuffer(),x=(new Date).valueOf();P.push({consents:R,timestamp:x}),null===(D=e.getInstance().localStorage)||void 0===D||D.setItem(ae.CONSENTS_BUFFER,JSON.stringify(P))},e.appendToConsentsV2Buffer=function(R){var D,P=e.fetchConsentsV2Buffer(),x=(new Date).valueOf();P.push({consents:R,timestamp:x}),null===(D=e.getInstance().localStorage)||void 0===D||D.setItem(ae.CONSENTS_V2_BUFFER,JSON.stringify(P))},e.clearOnNewSettingsId=function(R){R!==e.fetchSettingsId()&&e.clear()},e.findBufferItem=function(R){return e.fetchConsentsBuffer().slice().find(function(D){return JSON.stringify(D.consents)===JSON.stringify(R)})},e.findV2BufferItem=function(R){return e.fetchConsentsV2Buffer().slice().find(function(D){return JSON.stringify(D.consents)===JSON.stringify(R)})},e.removeConsentsBufferItem=function(R){var D,P,x=e.fetchConsentsBuffer(),k=x.length+0;(x=x.filter(function(D){return JSON.stringify(D)!==JSON.stringify(R)})).length&&x.length!==k?null===(D=e.getInstance().localStorage)||void 0===D||D.setItem(ae.CONSENTS_BUFFER,JSON.stringify(x)):null===(P=e.getInstance().localStorage)||void 0===P||P.removeItem(ae.CONSENTS_BUFFER)},e.removeConsentsV2BufferItem=function(R){var D,P,x=e.fetchConsentsV2Buffer(),k=x.length+0;(x=x.filter(function(D){return JSON.stringify(D)!==JSON.stringify(R)})).length&&x.length!==k?null===(D=e.getInstance().localStorage)||void 0===D||D.setItem(ae.CONSENTS_V2_BUFFER,JSON.stringify(x)):null===(P=e.getInstance().localStorage)||void 0===P||P.removeItem(ae.CONSENTS_V2_BUFFER)},e.getCcpaString=function(){var R,D=null===(R=e.getInstance().localStorage)||void 0===R?void 0:R.getItem(ae.CCPA);return D&&ge.test(D)?D:pe},e.getCcpaData=function(){var R,D=null===(R=e.getInstance().localStorage)||void 0===R?void 0:R.getItem(ae.CCPA_DATA);return D?JSON.parse(D):null},e.fetchConsentsBuffer=function(){var R,D=null===(R=e.getInstance().localStorage)||void 0===R?void 0:R.getItem(ae.CONSENTS_BUFFER);return D?JSON.parse(D):[]},e.fetchConsentsV2Buffer=function(){var R,D=null===(R=e.getInstance().localStorage)||void 0===R?void 0:R.getItem(ae.CONSENTS_V2_BUFFER);return D?JSON.parse(D):[]},e.fetchControllerId=function(){var R=e.fetchSettings();return R?R.controllerId:""},e.fetchLanguage=function(){var R=e.fetchSettings();return R?R.language:""},e.fetchServices=function(){var R=e.fetchSettings();return R?R.services:[]},e.fetchLegacySettings=function(){var R,D=null===(R=e.getInstance().localStorage)||void 0===R?void 0:R.getItem(ae.LEGACY_SETTINGS);return D?JSON.parse(D):null},e.fetchSettings=function(){var R,D=null===(R=e.getInstance().localStorage)||void 0===R?void 0:R.getItem(ae.SETTINGS);return D?JSON.parse(D):{}},e.fetchSettingsId=function(){var R=e.fetchSettings();return R?R.id:""},e.fetchSettingsVersion=function(){var R=e.fetchSettings();return R?R.version:""},e.fetchTCFData=function(){var R,D=null===(R=e.getInstance().localStorage)||void 0===R?void 0:R.getItem(ae.TCF),P=D?JSON.parse(D):{acString:"",tcString:"",timestamp:Date.now(),vendors:[]};return P.vendors||(P.vendors=[]),P},e.fetchTCFVendorsDisclosedObject=function(R){var D,P=e.fetchTCFData(),x=P.acString,k=P.tcString,G=P.vendors,H=P.vendorsDisclosed;if(!G&&!H)return{};if((H||!H&&!G.length&&k)&&R){var $=Object.keys(R).map(Number);D=(H||$).filter(function(D){return R[D]}).map(function(D){var P=R[D];return[P.id,P.legIntPurposes,P.purposes,P.specialPurposes]}),e.saveTCFData({acString:x,tcString:k,timestamp:Date.now(),vendors:D})}else D=G;return D.reduce(function(R,D){var P;return K(K({},R),((P={})[D[ye.ID]]=!0,P))},{})},e.fetchTCString=function(){return e.fetchTCFData().tcString||""},e.fetchACString=function(){return e.fetchTCFData().acString||""},e.fetchUserActionPerformed=function(){var R;return"true"===(null===(R=e.getInstance().localStorage)||void 0===R?void 0:R.getItem(ae.USER_INTERACTION))},e.fetchActionTypePerformed=function(){var R;return(null===(R=e.getInstance().localStorage)||void 0===R?void 0:R.getItem(ae.INTERACTION_TYPE))||""},e.fetchUserCountryResponse=function(){var R;try{return JSON.parse((null===(R=e.getInstance().sessionStorage)||void 0===R?void 0:R.getItem(le.USER_COUNTRY))||"null")}catch(R){return null}},e.setUserCountryResponse=function(R){var D;null===(D=e.getInstance().sessionStorage)||void 0===D||D.setItem(le.USER_COUNTRY,JSON.stringify(R))},e.setActionTypePerformed=function(R){var D;null===(D=e.getInstance().localStorage)||void 0===D||D.setItem(ae.INTERACTION_TYPE,R)},e.mapServices=function(R){return R.map(function(R){return{history:R.consent.history,id:R.id,processorId:R.processorId,status:R.consent.status}})},e.mapSettings=function(R,D){return{controllerId:R.controllerId,id:R.id,language:R.selectedLanguage,services:e.mapServices(D),version:R.version}},e.migrateLegacySettings=function(R){if(!e.settingsExist()){var D,P,x=e.fetchLegacySettings();if(e.clearLegacySettings(),null==x?void 0:x[R]){var k=(D=x[R])&&Ie(D.ucConsents.consents)?((P={})[ae.SETTINGS]={controllerId:D.ucConsents.consents[0].controllerId,id:D.usercentrics.settings.settingsId,language:D.usercentrics.settings.language,services:D.ucConsents.consents.map(function(R){return{history:R.history.map(function(R){return{action:Se(R.action),language:R.language,status:R.consentStatus,timestamp:R.updatedAt,type:be(R.updatedBy),versions:{application:R.appVersion,service:R.consentTemplateVersion,settings:R.settingsVersion}}}),id:R.templateId,processorId:R.processorId,status:R.consentStatus}}),version:D.usercentrics.settings.version},P[ae.USER_INTERACTION]=D.usercentrics.firstUserInteraction.stateSaved,P):null;k&&(e.saveSettings(k[ae.SETTINGS]),k[ae.USER_INTERACTION]&&(e.setUserActionPerformed(!0),e.setActionTypePerformed("user")))}}},e.saveSettings=function(R,D){var P,x;if(null===(P=e.getInstance().localStorage)||void 0===P||P.setItem(ae.SETTINGS,JSON.stringify(R)),e.getInstance().getStoreServiceIdToNameMapping()&&D&&D.length){var k=D.reduce(function(R,D){return R[D.id]=D.name,R},{});null===(x=e.getInstance().localStorage)||void 0===x||x.setItem(ae.SERVICES,JSON.stringify(k))}xe.isCrossDomainAvailable()&&xe.setCrossDomainData(R).catch(function(){re.CROSS_DOMAIN_SET_DATA_FAILURE})},e.saveTCFData=function(R){var D;null===(D=e.getInstance().localStorage)||void 0===D||D.setItem(ae.TCF,JSON.stringify(R)),xe.isCrossDomainAvailable()&&xe.setCrossDomainTcfData(R).catch(function(){re.CROSS_DOMAIN_SET_TCF_DATA_FAILURE})},e.fetchGcmData=function(){var R,D=null===(R=e.getInstance().localStorage)||void 0===R?void 0:R.getItem(ae.GCM_DATA);return D?JSON.parse(D):null},e.saveGcmData=function(R){var D;null===(D=e.getInstance().localStorage)||void 0===D||D.setItem(ae.GCM_DATA,JSON.stringify(R))},e.saveTCString=function(R){var D=e.fetchTCFData();this.saveTCFData(K(K({},D),{tcString:R}))},e.setCcpaTimeStamp=function(R){var D,P=R||{ccpaString:this.getCcpaString()||"",timestamp:(new Date).getTime()};null===(D=e.getInstance().localStorage)||void 0===D||D.setItem(ae.CCPA_DATA,JSON.stringify(P))},e.getCcpaTimeStamp=function(){var R=this.getCcpaData();return R&&R.timestamp?R.timestamp:(new Date).getTime()},e.setCcpaString=function(R){var D;null===(D=e.getInstance().localStorage)||void 0===D||D.setItem(ae.CCPA,R),this.setCcpaTimeStamp()},e.settingsExist=function(){return _e(e.fetchSettings())},e.setUserActionPerformed=function(R){var D,P;null===(D=e.getInstance().localStorage)||void 0===D||D.setItem(ae.USER_INTERACTION,JSON.stringify(R)),R&&(null===(P=e.getInstance().localStorage)||void 0===P||P.setItem(ae.INTERACTION_TYPE,"user"))},e.clearCcpa=function(){var R;this.clearCcpaData(),null===(R=e.getInstance().localStorage)||void 0===R||R.removeItem(ae.CCPA)},e.clearCcpaData=function(){var R;null===(R=e.getInstance().localStorage)||void 0===R||R.removeItem(ae.CCPA_DATA)},e.clearTcf=function(){var R;null===(R=e.getInstance().localStorage)||void 0===R||R.removeItem(ae.TCF)},e.clearGcm=function(){var R;null===(R=e.getInstance().localStorage)||void 0===R||R.removeItem(ae.GCM_DATA)},e.clear=function(){var R,D,P;e.clearCcpa(),e.clearTcf(),e.clearGcm(),null===(R=e.getInstance().localStorage)||void 0===R||R.removeItem(ae.SETTINGS),null===(D=e.getInstance().localStorage)||void 0===D||D.removeItem(ae.USER_INTERACTION),null===(P=e.getInstance().localStorage)||void 0===P||P.removeItem(ae.INTERACTION_TYPE)},e.clearAll=function(){return J(this,void 0,void 0,function(){return X(this,function(R){switch(R.label){case 0:return this.clear(),xe.isCrossDomainAvailable()?[4,xe.clearCrossDomainStorage()]:[3,2];case 1:R.sent(),R.label=2;case 2:return[2]}})})},e.fetchAbTestVariant=function(R){var D,P,x=(null===(D=e.getInstance().localStorage)||void 0===D?void 0:D.getItem(ae.AB_TEST_VARIANT))||"";if(R.includes(x))return x;var k=R[Math.floor(Math.random()*R.length)];return null===(P=e.getInstance().localStorage)||void 0===P||P.setItem(ae.AB_TEST_VARIANT,k),k},e.clearLegacySettings=function(){var R;null===(R=e.getInstance().localStorage)||void 0===R||R.removeItem(ae.LEGACY_SETTINGS)},e}(),Ce=function(R,D){return-1!==R.indexOf(D)},Te=function(){return"SDK-".concat(de)},Ie=function(R){return Array.isArray(R)&&R.length>0},_e=function(R){return"object"===A(R)&&null!==R&&Object.keys(R).length>0},Ae=function(R,D){if(void 0===D)throw new Error("altElement of nullishOperation can not be undefined");return null!=R?R:D},we=function(R,D,P,x,k,G){return{applicationVersion:Te(),consent:{action:P,status:D.consent.status,type:x},service:{categorySlug:k||"",id:D.id,name:D.name,processorId:D.processorId,version:D.version},settings:{controllerId:R.controllerId,id:R.id,language:R.selectedLanguage,referrerControllerId:Ae(null==G?void 0:G.referrerControllerId,""),version:R.version},timestamp:Ae(null==G?void 0:G.timestamp,(new Date).valueOf())}},Oe=function(R){var D=R.dataTransferSettings,P=R.services,x=void 0===P?[]:P,k=R.consentAction,G=R.consentString,H=R.isCcpa,$=R.isTcf,z=R.isAnalyticsEnabled,Y=R.isConsentXDeviceEnabled,W=x.map(function(R){return{consentStatus:R.consent.status,consentTemplateId:R.id,consentTemplateVersion:R.version}}),ee="",te="",ne="";if($){var ie=Ue.fetchTCFData(),re=ie.acString,oe=ie.tcString,ae=ie.timestamp,le=ie.vendors,ce=ie.vendorsDisclosed;te=Ae(te?null==G?void 0:G.TCF2:oe,""),ne=JSON.stringify({timestamp:ae,vendors:le,vendorsDisclosed:ce}),re&&(ee=re)}else H&&(te=Ae(null==G?void 0:G.CCPA,""));return K(K(K(K(K({action:k,analytics:Ae(z,!1),appVersion:Te().replace("SDK-","")},ne&&{consentMeta:ne}),{consents:W}),te&&{consentString:te}),ee&&{acString:ee}),{controllerId:D.controllerId,language:D.selectedLanguage,settingsId:D.id,settingsVersion:D.version,xdevice:Ae(Y,!1)})},Le=function(R,D){return R.reduce(function(R,P){var x=D[P];if(!(null==x?void 0:x.name))return R;var k=x.name;return Q(Q([],q(R),!1),[{id:P,name:k}],!1)},[])};function Ne(R){return Q([],q(new Set(R)),!1)}var Me,Fe,Be,Ye,We,tt,ft,vt,mt,St,Ge=function(R){return R.filter(function(R){return["onAcceptAllServices","onDenyAllServices","onUpdateServices"].indexOf(R.action)>-1}).sort(function(R,D){return D.timestamp-R.timestamp})},He=function(R){return R&&"object"===A(R)},$e=function(R,D,P){void 0===P&&(P=!1);var x=K({},D);if(!He(x))throw new Error("Source param should be an object");return He(R)?(Object.keys(R).forEach(function(D){var k,G,H,$,z,Y=R[D],W=x[D];void 0!==W&&(x=Array.isArray(Y)&&Array.isArray(W)?K(K({},x),P?((k={})[D]=(z=Y.concat(W)).filter(function(R,D){return z.indexOf(R)===D}),k):((G={})[D]=Y,G)):He(Y)&&He(W)?K(K({},x),((H={})[D]=$e(K({},Y),W),H)):K(K({},x),(($={})[D]=Y,$)))}),x):x},ze=function(R,D,P,x){return void 0===P&&(P=2e4),void 0===x&&(x=5),new Promise(function(k,G){var H=setInterval(function(){R()&&(clearTimeout($),clearInterval(H),k())},x),$=setTimeout(function(){clearTimeout($),clearInterval(H),G(new Error(D))},P)})},je=function(R,D){for(var P=R.split("."),x=D.split("."),k=Math.min(P.length,x.length),G=0;G$?1:-1}return x.length-P.length};!function(R){R[R.COOKIE=0]="COOKIE",R[R.WEB=1]="WEB",R[R.APP=2]="APP"}(Me||(Me={})),function(R){R.LEFT="LEFT",R.CENTER="CENTER",R.RIGHT="RIGHT"}(Fe||(Fe={})),function(R){R.CAT="CAT",R.SRV="SRV"}(Be||(Be={})),function(R){R.AVAILABLE_LANGUAGES_NOT_FOUND="Unable to find available languages using given settingsId and version.",R.FETCH_ACM_VENDORS="Something went wrong while fetching the atp vendors.",R.FETCH_AVAILABLE_LANGUAGES="Something went wrong while fetching the available languages.",R.FETCH_DATA_PROCESSING_SERVICES="Something went wrong while fetching the data processing services.",R.FETCH_LEGAL_BASIS="Something went wrong while fetching the legal data translations.",R.FETCH_SETTINGS="Something went wrong while fetching the settings.",R.FETCH_USER_CONSENTS="Something went wrong while fetching the user's consents.",R.FETCH_USER_COUNTRY="Something went wrong while fetching the user's country.",R.FETCH_USER_TCF_DATA="Something went wrong while fetching the user's tcf data.",R.GENERATE_DATA_PROCESSING_SERVICES="Something went wrong while generating the data processing services.",R.RULESET_NOT_FOUND="Config Map not found!",R.TAGLOGGER="Tag logger API is being called just before browser unload, some browsers like firefox cancel the api call and throw the error.",R.SAVE_CONSENTS="Something went wrong while saving user consents.",R.SAVE_CONSENTS_RETRY="Number of retries exceeded for saving user consents.",R.SETTINGS_NOT_FOUND="Unable to find settings using given settingsId and version.",R.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."}(Ye||(Ye={})),function(R){R.US_CA_ONLY="US_CA_ONLY",R.US="US"}(We||(We={})),function(R){R[R.FIRST_LAYER=1]="FIRST_LAYER",R[R.SECOND_LAYER=3]="SECOND_LAYER"}(tt||(tt={})),function(R){R[R.DATA_LAYER=1]="DATA_LAYER",R[R.WINDOW_EVENT=4]="WINDOW_EVENT"}(ft||(ft={})),function(R){R.DATA_COLLECTED_LIST="dataCollectedList",R.DATA_PURPOSES_LIST="dataPurposesList",R.DATA_RECIPIENTS_LIST="dataRecipientsList",R.TECHNOLOGY_USED="technologyUsed"}(vt||(vt={})),function(R){R.MAJOR="major",R.MINOR="minor",R.PATCH="patch"}(mt||(mt={})),function(R){R.ICON="ICON",R.LINK="LINK"}(St||(St={}));var bt,yt={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",usercentricsCMPContent:"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"},Ke=function(R,D){return"boolean"==typeof R?R:D},Je=function(R){if(!R)return null;var D=R.startsWith("#")?R:"#".concat(R);return Xe(D)?D:"#0045A5"},Xe=function(R){return!(""===R||!R)&&/^#(?:[0-9a-fA-F]{3}){1,2}$/.test(R)},qe=function(R){if(null!=R.firstLayer.isOverlayEnabled)return R.firstLayer.isOverlayEnabled;var D=R.backgroundOverlay.find(function(R){var D;return(null===(D=R.target)||void 0===D?void 0:D[0])===tt.FIRST_LAYER});return!!D&&(null==D?void 0:D.darken)>0},Qe=function(R){if(null!=R.secondLayer.isOverlayEnabled)return R.secondLayer.isOverlayEnabled;var D=R.backgroundOverlay.find(function(R){var D;return(null===(D=R.target)||void 0===D?void 0:D[0])===tt.SECOND_LAYER});return!!D&&(null==D?void 0:D.darken)>0},Ze=function(R){return"number"==typeof R||"string"==typeof R&&!R.includes("px")?"".concat(R,"px"):R},et=function(R){switch(R){case Fe.CENTER:return"center";case Fe.RIGHT:return"right";case Fe.LEFT:default:return"left"}},wt={description:"",id:"",legalBasis:[],name:""},nt=function(R,D){return R.reduce(function(R,P){var x=D.find(function(R){return R.id===P.id});return x?Q(Q([],q(R),!1),[{categorySlug:P.categorySlug,consent:P.consent,id:P.id,language:P.language,name:x.name,processorId:P.processorId,version:P.version}],!1):Q([],q(R),!1)},[])},it=function(R,D){return R.map(function(R){var P=D.find(function(D){return D.id===R.id});return K(K(K({},R),P||wt),{description:R.description||(null==P?void 0:P.description)||wt.description,id:R.id,subServices:it(R.subServices,D)})})},rt=function(R){return null!=R&&null!=R.region},ot=function(R){return null!=R&&null!=R.changedPurposes},st=function(R){var D;return null!=R&&null!=(null===(D=R.buttons)||void 0===D?void 0:D.optOutNotice)},at=function(R){return null!=R&&null!=R.vendor},lt=function(R){var D;return null!=R&&null!=(null===(D=R.buttons)||void 0===D?void 0:D.showSecondLayer)},ct=function(R){return null!=R&&null!=R.privacyButton},ut=function(R){return null!=R&&(st(R)||lt(R)||at(R))},dt=function(R){var D,P;return null!=R&&null!=(null===(D=R.firstLayer)||void 0===D?void 0:D.showShortDescriptionOnMobile)&&null==(null===(P=R.firstLayer)||void 0===P?void 0:P.isCategoryTogglesEnabled)},pt=function(R){var D;return null!=R&&null!=(null===(D=R.firstLayer)||void 0===D?void 0:D.hideNonIabPurposes)},ht=function(R){var D;return null!=R&&null!=(null===(D=R.firstLayer)||void 0===D?void 0:D.isCategoryTogglesEnabled)},gt=function(R){return null!=R&&!dt(R)&&!ht(R)&&!pt(R)},Ot=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(R){this.ampEnabled=R},e}(),Lt="latest",Nt={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"}},Rt={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-dot-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"}},Dt=["onEssentialChange","onInitialPageLoad","onNonEURegion"],Pt=["onSessionRestored","onMobileSessionRestore"],Et=function(R,D,P){return J(void 0,void 0,void 0,function(){return X(this,function(x){return[2,Tt(R,D,null,P)]})})},Ct=function(R,D,P,x){return J(void 0,void 0,void 0,function(){return X(this,function(k){return[2,Tt(R,P,D,x)]})})},Tt=function(R,D,P,x){return J(void 0,void 0,void 0,function(){var k,G;return X(this,function(H){return k={"Content-Type":"application/json"},G=K(K({},x),{headers:k,method:P?"POST":"GET"}),P&&(G.body=JSON.stringify(P)),(null==x?void 0:x.headers)&&(G.headers=K(K({},k),x.headers)),[2,fetch(R,G).then(function(R){return J(void 0,void 0,void 0,function(){return X(this,function(P){if(R.ok)return[2,_t(R)];throw It(D,R.status)})})})]})})},It=function(R,D){return{errorMessage:R,statusCode:D}},_t=function(R){return J(void 0,void 0,void 0,function(){return X(this,function(D){switch(D.label){case 0:return[4,At(R)];case 1:return[2,{data:D.sent(),location:R.headers.get("x-client-geo-location"),statusCode:R.status}]}})})},At=function(R){return J(void 0,void 0,void 0,function(){var D,P;return X(this,function(x){switch(x.label){case 0:return[4,R.text()];case 1:return D=x.sent(),[2,(P=""===D?{}:JSON.parse(D)).data||P]}})})};!function(R){R[R.RESOURCE_NOT_FOUND=403]="RESOURCE_NOT_FOUND"}(bt||(bt={}));var kt,Vt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Ut={exports:{}},Ft={exports:{}};Ft.exports=(kt=kt||function(R){var D;if("undefined"!=typeof window&&window.crypto&&(D=window.crypto),"undefined"!=typeof self&&self.crypto&&(D=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(D=globalThis.crypto),!D&&"undefined"!=typeof window&&window.msCrypto&&(D=window.msCrypto),!D&&void 0!==Vt&&Vt.crypto&&(D=Vt.crypto),!D)try{D=require("crypto")}catch(R){}var n=function(){if(D){if("function"==typeof D.getRandomValues)try{return D.getRandomValues(new Uint32Array(1))[0]}catch(R){}if("function"==typeof D.randomBytes)try{return D.randomBytes(4).readInt32LE()}catch(R){}}throw new Error("Native crypto module could not be used to get secure random number.")},P=Object.create||function(){function e(){}return function(R){var D;return e.prototype=R,D=new e,e.prototype=null,D}}(),x={},k=x.lib={},G=k.Base={extend:function(R){var D=P(this);return R&&D.mixIn(R),D.hasOwnProperty("init")&&this.init!==D.init||(D.init=function(){D.$super.init.apply(this,arguments)}),D.init.prototype=D,D.$super=this,D},create:function(){var R=this.extend();return R.init.apply(R,arguments),R},init:function(){},mixIn:function(R){for(var D in R)R.hasOwnProperty(D)&&(this[D]=R[D]);R.hasOwnProperty("toString")&&(this.toString=R.toString)},clone:function(){return this.init.prototype.extend(this)}},H=k.WordArray=G.extend({init:function(R,D){R=this.words=R||[],this.sigBytes=null!=D?D:4*R.length},toString:function(R){return(R||z).stringify(this)},concat:function(R){var D=this.words,P=R.words,x=this.sigBytes,k=R.sigBytes;if(this.clamp(),x%4)for(var G=0;G>>2]>>>24-G%4*8&255;D[x+G>>>2]|=H<<24-(x+G)%4*8}else for(var $=0;$>>2]=P[$>>>2];return this.sigBytes+=k,this},clamp:function(){var D=this.words,P=this.sigBytes;D[P>>>2]&=4294967295<<32-P%4*8,D.length=R.ceil(P/4)},clone:function(){var R=G.clone.call(this);return R.words=this.words.slice(0),R},random:function(R){for(var D=[],P=0;P>>2]>>>24-k%4*8&255;x.push((G>>>4).toString(16)),x.push((15&G).toString(16))}return x.join("")},parse:function(R){for(var D=R.length,P=[],x=0;x>>3]|=parseInt(R.substr(x,2),16)<<24-x%8*4;return new H.init(P,D/2)}},Y=$.Latin1={stringify:function(R){for(var D=R.words,P=R.sigBytes,x=[],k=0;k>>2]>>>24-k%4*8&255;x.push(String.fromCharCode(G))}return x.join("")},parse:function(R){for(var D=R.length,P=[],x=0;x>>2]|=(255&R.charCodeAt(x))<<24-x%4*8;return new H.init(P,D)}},W=$.Utf8={stringify:function(R){try{return decodeURIComponent(escape(Y.stringify(R)))}catch(R){throw new Error("Malformed UTF-8 data")}},parse:function(R){return Y.parse(unescape(encodeURIComponent(R)))}},ee=k.BufferedBlockAlgorithm=G.extend({reset:function(){this._data=new H.init,this._nDataBytes=0},_append:function(R){"string"==typeof R&&(R=W.parse(R)),this._data.concat(R),this._nDataBytes+=R.sigBytes},_process:function(D){var P,x=this._data,k=x.words,G=x.sigBytes,$=this.blockSize,z=G/(4*$),Y=(z=D?R.ceil(z):R.max((0|z)-this._minBufferSize,0))*$,W=R.min(4*Y,G);if(Y){for(var ee=0;ee>>7)^(ie<<14|ie>>>18)^ie>>>3,oe=Y[ne-2],ae=(oe<<15|oe>>>17)^(oe<<13|oe>>>19)^oe>>>10;Y[ne]=re+Y[ne-7]+ae+Y[ne-16]}var le=x&k^x&G^k&G,ce=(x<<30|x>>>2)^(x<<19|x>>>13)^(x<<10|x>>>22),ue=te+(($<<26|$>>>6)^($<<21|$>>>11)^($<<7|$>>>25))+($&W^~$&ee)+z[ne]+Y[ne];te=ee,ee=W,W=$,$=H+ue|0,H=G,G=k,k=x,x=ue+(ce+le)|0}P[0]=P[0]+x|0,P[1]=P[1]+k|0,P[2]=P[2]+G|0,P[3]=P[3]+H|0,P[4]=P[4]+$|0,P[5]=P[5]+W|0,P[6]=P[6]+ee|0,P[7]=P[7]+te|0},_doFinalize:function(){var R=this._data,P=R.words,x=8*this._nDataBytes,k=8*R.sigBytes;return P[k>>>5]|=128<<24-k%32,P[14+(k+64>>>9<<4)]=D.floor(x/4294967296),P[15+(k+64>>>9<<4)]=x,R.sigBytes=4*P.length,this._process(),this._hash},clone:function(){var R=G.clone.call(this);return R._hash=this._hash.clone(),R}});P.SHA256=G._createHelper(W),P.HmacSHA256=G._createHmacHelper(W)}(Math),R.SHA256}(Ft.exports);var Bt,Gt=Ut.exports,Ht=new Uint8Array(16);function xt(){if(!Bt&&!(Bt="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Bt(Ht)}for(var zt=[],jt=0;jt<256;++jt)zt.push((jt+256).toString(16).slice(1));var Kt={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Mt(R,D,P){if(Kt.randomUUID&&!D&&!R)return Kt.randomUUID();var x=(R=R||{}).random||(R.rng||xt)();if(x[6]=15&x[6]|64,x[8]=63&x[8]|128,D){P=P||0;for(var k=0;k<16;++k)D[P+k]=x[k];return D}return function(R){var D=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return zt[R[D+0]]+zt[R[D+1]]+zt[R[D+2]]+zt[R[D+3]]+"-"+zt[R[D+4]]+zt[R[D+5]]+"-"+zt[R[D+6]]+zt[R[D+7]]+"-"+zt[R[D+8]]+zt[R[D+9]]+"-"+zt[R[D+10]]+zt[R[D+11]]+zt[R[D+12]]+zt[R[D+13]]+zt[R[D+14]]+zt[R[D+15]]}(x)}var Zt=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(R){this.controllerId=R},enumerable:!1,configurable:!0}),e.prototype.setControllerIdByResolvedSettingsId=function(R,D){var P=D.find(function(D){var P=D.settingsId;return R===P});P&&(this.value=P.controllerId)},e.prototype.setNeedSessionRestore=function(){this.needsSessionRestore=""!==this.controllerId},e.prototype.init=function(){if(""===this.controllerId){var R=this.getStorageControllerId();this.controllerId=R||this.generateControllerId()}},e.prototype.generateControllerId=function(){return"".concat(Gt(Mt()))},e.prototype.getStorageControllerId=function(){return Ue.fetchControllerId()},e}(),en=["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"],tn=function(){function e(){this.userCountryData={},this.convertUserCountryString=function(R){var D=null==R?void 0:R.split(","),P=D&&D[0]?D[0]:"DE";return{countryCode:P,countryName:P||"Germany (default)",regionCode:D&&D[1]&&D[1].length>=3?D[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(R){this.userCountryData=R},e.prototype.getUserCountryData=function(){return J(this,void 0,void 0,function(){return X(this,function(R){return[2,this.userCountryData]})})},e.prototype.getIsUserInCalifornia=function(){return J(this,void 0,void 0,function(){return X(this,function(R){return[2,this.getIsUserInUS("CA")]})})},e.prototype.getIsUserInEU=function(){return J(this,void 0,void 0,function(){var R;return X(this,function(D){switch(D.label){case 0:return[4,this.getUserCountryData()];case 1:return R=D.sent(),[2,Ce(en,R.code.toUpperCase())]}})})},e.prototype.getIsUserInUS=function(R){return J(this,void 0,void 0,function(){var D,P;return X(this,function(x){switch(x.label){case 0:return[4,this.getUserCountryData()];case 1:return D=x.sent(),(P=D.regionCode).length>2&&(P=P.slice(2)),[2,"US"===D.code&&(!R||P===R)]}})})},e.prototype.resolveLocation=function(R){return J(this,void 0,void 0,function(){var D,P;return X(this,function(x){switch(x.label){case 0:return D=this.convertUserCountryString(R),[4,e.getInstance().getUserCountryData()];case 1:return P=x.sent(),_e(P)||(Ue.setUserCountryResponse(D),this.setUserCountryData({code:D.countryCode,name:D.countryName,regionCode:D.regionCode})),[2]}})})},e.mapUserCountryData=function(R){return{countryCode:R.code,countryName:R.name,regionCode:R.regionCode}},e}(),nn={numOfAttempts:7,onFirstFail:function(){},onFirstRetriedSuccess:function(){},startingDelay:100,timeMultiple:2};function $t(R,D){return void 0===D&&(D={}),J(this,void 0,void 0,function(){var P;return X(this,function(x){switch(x.label){case 0:return P=function(R){var D=K(K({},nn),R);return D.numOfAttempts<1&&(D.numOfAttempts=1),D}(D),[4,new on(R,P).execute()];case 1:return[2,x.sent()]}})})}var rn,on=function(){function e(R,D){this.request=R,this.options=D,this.attemptNumber=0}return e.prototype.execute=function(){return J(this,void 0,void 0,function(){var R,D;return X(this,function(P){switch(P.label){case 0:if(this.attemptLimitReached)return[3,7];P.label=1;case 1:return P.trys.push([1,5,,6]),this.attemptNumber?[4,this.wait(this.delay)]:[3,3];case 2:P.sent(),P.label=3;case 3:return[4,this.request()];case 4:return R=P.sent(),this.attemptNumber&&this.options.onFirstRetriedSuccess(),[2,R];case 5:if(D=P.sent(),this.attemptNumber||this.options.onFirstFail(),this.attemptNumber+=1,this.attemptLimitReached)throw D;return[3,6];case 6:return[3,0];case 7:throw new 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(R){return new Promise(function(D){return setTimeout(D,R)})},Object.defineProperty(e.prototype,"delay",{get:function(){var R=this.options.startingDelay,D=this.options.timeMultiple,P=this.attemptNumber;return R*Math.pow(D,P)},enumerable:!1,configurable:!0}),e}(),Yt=function(R,D){return{id:R,version:D}},Wt=function(R){if(!R)return[];var D,P,x=R.reduce(function(R,D){return Q(Q([],q(R),!1),[Yt(D.templateId,D.version)],!1)},[]);return function(R){return R.sort(function(R,D){return R.id>D.id?1:-1})}((D=function(R,D){return R.id===D.id&&R.version===D.version},P=[],x.forEach(function(R){-1===P.findIndex(function(P){return D(R,P)})&&P.push(R)}),P))},sn=function(){function e(){this.API=Nt,this.abTestVariant="",this.controllerIdInstance=Zt.getInstance(),this.jsonCacheBustingString="",this.jsonFileLanguage="",this.jsonFileVersion=Lt,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=Lt,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(R){this.jsonCacheBustingString=R},e.prototype.setJsonFileLanguage=function(R){this.jsonFileLanguage=R},e.prototype.setJsonFileVersion=function(R){this.jsonFileVersion=R},e.prototype.setDisableServerConsents=function(R){this.disableServerConsents=R},e.prototype.setDomains=function(R,D){this.API=R?Rt:D?{EU_URI:{AGGREGATOR:Nt.EU_URI.AGGREGATOR,CDN:Nt.EU_URI.CDN,FETCH_CONSENTS:Nt.EU_URI.FETCH_CONSENTS,FETCH_CONSENTS_V2:Nt.EU_URI.FETCH_CONSENTS_V2,FETCH_TCF_DATA:Nt.EU_URI.FETCH_TCF_DATA,FETCH_TCF_DATA_V2:Nt.EU_URI.FETCH_TCF_DATA_V2,GRAPHQL:Nt.EU_URI.GRAPHQL,SAVE_CONSENTS_V2:Nt.EU_URI.SAVE_CONSENTS_V2,TRACK_EVENT:Nt.EU_URI.TRACK_EVENT,TRACK_SESSION:Nt.EU_URI.TRACK_SESSION},FOLDER:{RULESET:"ruleSet",SETTINGS:"settings",TEMPLATES:"consent-templates",TRANSLATIONS:"translations"},URI:K(K({AGGREGATOR:""!==D.aggregator?"".concat(D.aggregator,"/aggregate/"):Nt.URI.AGGREGATOR,CDN:""!==D.cdn?D.cdn:Nt.URI.CDN,RULESET:Nt.URI.RULESET},""!==D.consents?{FETCH_CONSENTS:"".concat(D.consents,"/consentsHistory"),FETCH_CONSENTS_V2:"".concat(D.consents),FETCH_TCF_DATA:"".concat(D.consents,"/consentsHistoryTCF"),FETCH_TCF_DATA_V2:"".concat(D.consents,"/consentState")}:{FETCH_CONSENTS:Nt.URI.FETCH_CONSENTS,FETCH_CONSENTS_V2:Nt.URI.FETCH_CONSENTS_V2,FETCH_TCF_DATA:Nt.URI.FETCH_TCF_DATA,FETCH_TCF_DATA_V2:Nt.URI.FETCH_TCF_DATA_V2}),{GRAPHQL:""!==D.graphql?"".concat(D.graphql,"/graphql"):Nt.URI.GRAPHQL,SAVE_CONSENTS_V2:""!==D.consentsV2?"".concat(D.consentsV2,"/consent"):Nt.URI.SAVE_CONSENTS_V2,TRACK_EVENT:""!==D.trackingEvent?"".concat(D.trackingEvent,"/uct"):Nt.URI.TRACK_EVENT,TRACK_SESSION:""!==D.app?"".concat(D.app,"/session/1px.png"):Nt.URI.TRACK_SESSION})}:Nt},e.prototype.setSettingsId=function(R){this.settingsId=R},e.prototype.setRulesetId=function(R){this.rulesetId=R},e.prototype.setEuMode=function(R){this.useEuCdn=R},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(R,D){return void 0===D&&(D=!0),J(this,void 0,void 0,function(){var P,x;return X(this,function(k){switch(k.label){case 0:return this.aggregatedServicesCache&&D?[2,this.aggregatedServicesCache]:(P="".concat(this.getAggregatorUri()).concat(this.jsonFileLanguage,"?templates=").concat(R.map(function(R){return"".concat(R.id,"@").concat(R.version)}).join(",")),[4,Et(P,Ye.GENERATE_DATA_PROCESSING_SERVICES)]);case 1:return x=k.sent(),D&&(this.aggregatedServicesCache=x.data.templates),[2,x.data.templates]}})})},e.prototype.fetchRuleset=function(){var R;return J(this,void 0,void 0,function(){var D,P,x,k;return X(this,function(G){switch(G.label){case 0:return G.trys.push([0,2,,3]),D=this.createRulesetUrl(),[4,Et(D,Ye.RULESET_NOT_FOUND)];case 1:return P=G.sent(),x=null===(R=P.location)||void 0===R?void 0:R.split(","),[2,{defaultRule:P.data.defaultRule,description:P.data.description,location:{code:x?x[0]:"",name:P.location||"",regionCode:x&&x[1]?x[1]:""},rules:P.data.rules}];case 2:throw(k=G.sent()).statusCode&&k.statusCode===bt.RESOURCE_NOT_FOUND&&(k.errorMessage=Ye.RULESET_NOT_FOUND),k;case 3:return[2]}})})},e.prototype.fetchAvailableLanguages=function(){return J(this,void 0,void 0,function(){var R,D,P;return X(this,function(x){switch(x.label){case 0:return x.trys.push([0,3,,4]),R=this.createAvailableLanguagesUrl(),[4,Et(R,Ye.FETCH_AVAILABLE_LANGUAGES)];case 1:return D=x.sent(),[4,tn.getInstance().resolveLocation(D.location)];case 2:return x.sent(),[2,D.data.languagesAvailable];case 3:throw(P=x.sent()).statusCode&&P.statusCode===bt.RESOURCE_NOT_FOUND&&(P.errorMessage=Ye.AVAILABLE_LANGUAGES_NOT_FOUND),P;case 4:return[2]}})})},e.prototype.fetchTranslations=function(){return J(this,void 0,void 0,function(){var R,D,P;return X(this,function(x){switch(x.label){case 0:if(this.translationsCache)return[2,this.translationsCache];x.label=1;case 1:return x.trys.push([1,3,,4]),R=this.createLanguagesUrl(),[4,Et(R,Ye.FETCH_LEGAL_BASIS)];case 2:return D=x.sent(),this.translationsCache=D.data,[2,D.data];case 3:return(P=x.sent()).statusCode&&P.statusCode===bt.RESOURCE_NOT_FOUND&&(P.errorMessage=Ye.FETCH_LEGAL_BASIS),[2,null];case 4:return[2]}})})},e.prototype.mergeAbVariant=function(R){return J(this,void 0,void 0,function(){var D,P;return X(this,function(x){switch(x.label){case 0:if(D=JSON.parse(R.data.variants.experiments),"UC"===R.data.variants.activateWith)return P=Object.keys(D),this.abTestVariant=Ue.fetchAbTestVariant(P),[2,$e(D[this.abTestVariant],R.data)];x.label=1;case 1:return x.trys.push([1,3,,4]),[4,ze(function(){return!!window.UC_AB_VARIANT},"window.UC_AB_VARIANT is not defined",2e3)];case 2:return x.sent(),[3,4];case 3:return x.sent(),[3,4];case 4:return window.UC_AB_VARIANT&&D&&D[window.UC_AB_VARIANT]?(this.abTestVariant=window.UC_AB_VARIANT,[2,$e(D[window.UC_AB_VARIANT],R.data)]):[2,R.data]}})})},e.prototype.fetchAcmVendors=function(){return J(this,void 0,void 0,function(){var R;return X(this,function(D){switch(D.label){case 0:return R=this.createAcmVendorsJsonUrl(),[4,Et(R,Ye.FETCH_ACM_VENDORS)];case 1:return[2,D.sent().data]}})})},e.prototype.fetchSettingsJson=function(){return J(this,void 0,void 0,function(){var R,D,P;return X(this,function(x){switch(x.label){case 0:return x.trys.push([0,4,,5]),R=this.createSettingsJsonUrl(),[4,Et(R,Ye.FETCH_SETTINGS)];case 1:return D=x.sent(),["ccpa","firstLayer","secondLayer"].forEach(function(R){D.data[R]||(D.data[R]={})}),D.data.tcf2&&(D.data.tcf2.selectedVendorIds=(D.data.tcf2.selectedVendorIds||[]).sort(function(R,D){return R-D})),D.data.consentTemplates&&(D.data.consentTemplates=D.data.consentTemplates.reduce(function(R,D){return D.isDeactivated||R.push(D),R},[])),D.data.variants&&D.data.variants.enabled&&function(R){try{JSON.parse(R)}catch(D){return"Invalid JSON string from ".concat("A/B Testing",': "').concat(R,'"'),!1}return!0}(D.data.variants.experiments)?[4,this.mergeAbVariant(D)]:[3,3];case 2:return[2,x.sent()];case 3:return[2,D.data];case 4:throw(P=x.sent()).statusCode&&P.statusCode===bt.RESOURCE_NOT_FOUND&&(P.errorMessage=Ye.SETTINGS_NOT_FOUND),P;case 5:return[2]}})})},e.prototype.fetchUserConsents=function(){return J(this,void 0,void 0,function(){var R;return X(this,function(D){switch(D.label){case 0:return this.getDisableServerConsents()?[3,2]:(R=this.createFetchUserConsentsUrl(),[4,Et(R,Ye.FETCH_USER_CONSENTS)]);case 1:return[2,D.sent().data.reverse()];case 2:return[2,[]]}})})},e.prototype.fetchUserConsentsV2=function(R,D){return J(this,void 0,void 0,function(){var P,x,k,G,H,$,z,Y;return X(this,function(W){switch(W.label){case 0:return P=function(R){return Q(Q([],q(Dt),!1),q(Pt),!1).includes(R)?"implicit":"explicit"},this.getDisableServerConsents()?[3,2]:(x=this.createFetchUserConsentsV2Url(),[4,Et(x,Ye.FETCH_USER_CONSENTS)]);case 1:return k=W.sent(),G=k.data,H=null,$=null,R&&(z=JSON.parse(G.consentMeta),H={acString:G.acString||"",tcString:G.consentString,timestamp:z.timestamp,vendors:z.vendors,vendorsDisclosed:z.vendorsDisclosed}),D&&($={ccpaString:G.consentString,timestamp:G.timestamp||Date.now()}),Y=G.consents.reduce(function(R,D){return Q(Q([],q(R),!1),[{action:G.action,consentId:"",settingsVersion:G.settingsVersion,status:D.consentStatus,templateId:D.consentTemplateId,timestamp:G.timestamp||Date.now(),updatedBy:P(G.action)}],!1)},[]),[2,K(K({consents:Y},$&&{ccpa:$}),H&&{tcf:H})];case 2:return[2,null]}})})},e.prototype.fetchUserTcfData=function(){return J(this,void 0,void 0,function(){var R,D,P,x,k;return X(this,function(G){switch(G.label){case 0:return this.getDisableServerConsents()?[3,2]:(R=this.createFetchUserTcfDataUrl(),[4,Et(R,Ye.FETCH_USER_TCF_DATA)]);case 1:return D=G.sent(),P=D.data,x=P.tcString,k=P.meta,[2,K({tcString:x},JSON.parse(k)||{})];case 2:return[2,null]}})})},e.prototype.fetchUserTcfDataV2=function(){return J(this,void 0,void 0,function(){var R,D,P,x,k;return X(this,function(G){switch(G.label){case 0:return R=this.createFetchUserTcfDataV2Url(),[4,Et(R,Ye.FETCH_USER_TCF_DATA)];case 1:if((D=G.sent()).data&&D.data.tcf2)return P=D.data.tcf2,x=P.tcString,k=P.meta,[2,K({tcString:x},JSON.parse(k)||{})];throw new Error(Ye.FETCH_USER_TCF_DATA)}})})},e.prototype.fetchVendorsList=function(R,D){return J(this,void 0,void 0,function(){return X(this,function(P){return[2,fetch(R).then(function(R){return R.json()}).then(function(R){return(null==D?void 0:D.length)&&(R.purposes=Object.entries(R.purposes).reduce(function(R,P){var x,k=q(P,2),G=k[0],H=k[1];return K(K({},R),-1===D.indexOf(parseInt(G,10))&&((x={})[G]=H,x))},{}),R.vendors=Object.entries(R.vendors).reduce(function(R,P){var x,k=q(P,2),G=k[0],H=k[1];return K(K({},R),((x={})[G]=K(K({},H),{flexiblePurposes:H.flexiblePurposes.filter(function(R){return-1===D.indexOf(R)}),legIntPurposes:H.legIntPurposes.filter(function(R){return-1===D.indexOf(R)}),purposes:H.purposes.filter(function(R){return-1===D.indexOf(R)})}),x))},{})),R})]})})},e.prototype.saveTCFConsents=function(R,D,P,x,k,G){return J(this,void 0,void 0,function(){var H,$,z,Y,W,ee,te;return X(this,function(ne){switch(ne.label){case 0:return H={consent:{status:!0},id:"tcf2",name:"tcf2",processorId:"abcd",version:"1.0.0"},$=D.tcString,z=function(R,D){var P={};for(var x in R)Object.prototype.hasOwnProperty.call(R,x)&&D.indexOf(x)<0&&(P[x]=R[x]);if(null!=R&&"function"==typeof Object.getOwnPropertySymbols){var k=0;for(x=Object.getOwnPropertySymbols(R);k0,k=P.every(function(R){return R.consent.status}),{adStorageStatus:x&&k?"granted":"denied",shouldUpdate:x});G.shouldUpdate&&function(R){var D={adStorage:R};(window.uetq||[]).push("consent","update",{ad_storage:R}),window.dispatchEvent(new CustomEvent("UC_UET_UPDATE",{detail:D}))}(G.adStorageStatus)}}(k.isUniversalEventTrackingDisabled,R),function(R,D){if(R){var P,x,k=(P=D.filter(function(R){var D=R.consent,P=D.type,x=D.action;return"jzMEq56vW"===R.service.id&&("explicit"===P||"implicit"===P&&"onNonEURegion"===x)}),{adStorageStatus:x=P.length>0&&P.every(function(R){return!0===R.consent.status})?"granted":"denied",analyticsStorageStatus:x});!function(R,D){var P;window.clarity=window.clarity||function(){for(var R,D=[],P=0;P0?D:function(R,D){return Ie(R)?R:[D]}(P,x)}(k,G):[],this.name=(null===(x=R._meta)||void 0===x?void 0:x.name)||(null==k?void 0:k.dataProcessor)||(null==k?void 0:k.dataProcessors[0])||""},Mn=function(R){function t(D,P,x,k){var G,H,$,z,Y,W,ee,te,ne,ie=this;ie=R.call(this)||this;var re=D.labels;if(ie.ariaLabels=K(K({},(null==x?void 0:x.labelsAria)||yt),{closeButton:re.btnClose}),ie.categories=P.categories.map(function(R){return{description:R.description,label:R.label,slug:R.categorySlug}}),ie.cookieInformation=new hn(re,null,x),ie.general={back:(null===(G=null==x?void 0:x.labels)||void 0===G?void 0:G.BACK)||"Back",consentGiven:re.accepted,consentNotGiven:re.denied,consentType:re.consentType,controllerId:(null===(H=null==x?void 0:x.labels)||void 0===H?void 0:H.CID_TITLE)||"Controller ID",copied:re.copied,copy:re.copy,date:re.date,decision:re.decision,details:(null===($=null==x?void 0:x.labels)||void 0===$?void 0:$.DETAILS)||"Details",explicit:re.explicit,gpcSignalHonored:(null===(z=null==x?void 0:x.labels)||void 0===z?void 0:z.GPC_SIGNAL_HONORED)||re.gpcSignalHonored||"The GPC signal is honored",implicit:re.implicit,implicitNo:re.noImplicit,implicitYes:re.yesImplicit,languageChange:(null===(Y=null==x?void 0:x.labels)||void 0===Y?void 0:Y.LANGUAGE_CHANGE)||"Selecting an option will immediately change the language",privacyButton:re.btnChipName,showLess:re.readLess,showMore:re.btnBannerReadMore||re.showMore,subservice:(null===(W=null==x?void 0:x.labels)||void 0===W?void 0:W.SUB_SERVICE)||"Subservice",subservices:(null===(ee=null==x?void 0:x.labels)||void 0===ee?void 0:ee.SUB_SERVICES)||"Subservices",subservicesDescription:(null===(te=null==x?void 0:x.labels)||void 0===te?void 0:te.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===(ne=null==x?void 0:x.labels)||void 0===ne?void 0:ne.WEB_DUTCH_AUTH_TEXT},ie.links={cookiePolicy:{ariaLabel:yt.cookiePolicyButton,label:Ae(re.cookiePolicyLinkText,""),url:D.cookiePolicyUrl},imprint:{ariaLabel:yt.imprintButton,label:re.imprintLinkText||null,url:D.imprintUrl},privacyPolicy:{ariaLabel:yt.privacyPolicyButton,label:re.privacyPolicyLinkText,url:D.privacyPolicyUrl}},D.integrations&&D.integrations.mine){var oe={mine:{ariaLabel:"",label:D.integrations.mine[0].privacyCenterLabel,url:D.integrations.mine[0].privacyCenterUrl}};ie.integrationLinks=K(K({},ie.integrationLinks),oe)}return ie.poweredBy={label:"Powered by",partnerUrlLabel:Ae(re.partnerPoweredByLinkText,null),urlLabel:"Usercentrics Consent Management"},ie.service={dataCollected:{description:re.dataCollectedInfo,title:re.dataCollectedList},dataDistribution:{processingLocationDescription:re.locationofProcessingInfo,processingLocationTitle:re.locationOfProcessing,thirdPartyCountriesDescription:re.transferToThirdCountriesInfo,thirdPartyCountriesTitle:re.transferToThirdCountries},dataProtectionOfficer:{description:re.dataProtectionOfficerInfo,title:re.dataProtectionOfficer},dataPurposes:{description:re.dataPurposesInfo,title:re.dataPurposes},dataRecipients:{description:re.dataRecipientsListInfo,title:re.dataRecipientsList},descriptionTitle:re.descriptionOfService,history:{description:null,title:re.history},legalBasis:{description:re.legalBasisInfo,title:re.legalBasisList},processingCompanyTitle:re.processingCompany,retentionPeriod:{description:re.retentionPeriodInfo,title:re.retentionPeriod},technologiesUsed:{description:re.technologiesUsedInfo,title:re.technologiesUsed},urls:{cookiePolicyTitle:re.cookiePolicyInfo,optOutTitle:re.optOut,privacyPolicyTitle:re.policyOf}},ie.services=P.consentTemplates.reduce(function(R,D){var P=new vn(D,x,k);return Q(Q([],q(R),!1),[P],!1)},[]),ie}return N(t,R),t}(function(){this.ariaLabels=yt}),Fn=function(R){function t(D,P,x,k){var G=R.call(this,D,P,x,k)||this;return G.buttons={optOutNotice:D.ccpa.optOutNoticeLabel||"Do not sell my personal information",save:D.ccpa.btnSave||"okay",showSecondLayer:D.ccpa.btnMoreInfo||D.labels.btnMore},G.firstLayer={description:{default:D.ccpa.firstLayerDescription||"",short:D.ccpa.firstLayerMobileDescription||"",shortDesktop:D.ccpa.firstLayerShortMessage||"",shortMobile:D.ccpa.firstLayerMobileDescription||""},title:D.ccpa.firstLayerTitle||""},G.secondLayer={categoryTab:D.secondLayer.tabsCategoriesLabel,description:D.ccpa.secondLayerDescription||"",serviceTab:D.secondLayer.tabsServicesLabel,title:D.ccpa.secondLayerTitle||""},G}return N(t,R),t}(Mn),bn=function(R,D){var P,x,H;this.acceptAllImplicitlyOutsideEU=R.displayOnlyForEU,this.consentAnalytics=Ae(R.consentAnalytics,!1),this.consentAPIv2=Ae(R.consentAPIv2,!1),this.consentXDevice=Ae(R.consentXDevice,!1),this.consentSharingIFrameIsActive=R.consentSharingIFrameIsActive,this.dataExchangeSettings=R.dataExchangeOnPage.reduce(function(R,D){return D.type===ft.DATA_LAYER?R.push({names:D.names,type:k.DATA_LAYER}):D.type===ft.WINDOW_EVENT&&R.push({names:D.names,type:k.WINDOW_EVENT}),R},[]),this.googleConsentMode=R.googleConsentMode,this.id=R.settingsId,this.isCcpaEnabled=R.framework?["CCPA","UCPA","CTDPA","VCDPA","CPRA","CPA","MSPL"].includes(R.framework):null!==(x=null===(P=R.ccpa)||void 0===P?void 0:P.isActive)&&void 0!==x&&x,this.isEmbeddingsEnabled=!0,this.isTagLoggerActive=R.tagLoggerIsActive,this.isTcfEnabled=R.framework?["TCF2","UK_TCF2"].includes(R.framework):null!==(H=R.tcf2Enabled)&&void 0!==H&&H,this.language={available:R.languagesAvailable,selected:D},this.reshowBanner=Ae(R.reshowBanner,-1),this.renewConsentsTimestamp=Ae(R.renewConsentsTimestamp,null),this.showFirstLayerOnVersionChange=R.showInitialViewForVersionChange.map(function(R){switch(R){case mt.MAJOR:return G.MAJOR;case mt.MINOR:return G.MINOR;case mt.PATCH:default:return G.PATCH}}),this.version=R.version},Bn=function(R){function t(D,P,x,k){var G,H,$,z,Y,W,ee,te,ne,ie,re=this;(re=R.call(this,D,P,x,k)||this).buttons={acceptAll:D.labels.btnAcceptAll,cnilDeny:(null===(G=null==x?void 0:x.labels)||void 0===G?void 0:G.CNIL_DENY_LINK_TEXT)||"Continuer sans accepter",denyAll:D.labels.btnDeny,save:D.labels.btnSave,showSecondLayer:D.labels.btnMore};var oe=(null===(H=null==x?void 0:x.labels)||void 0===H?void 0:H.WEB_DUTCH_AUTH_TEXT)||"",ae=(null===($=D.gdpr)||void 0===$?void 0:$.addVendorCount)||!1,le=oe&&ae?"
".concat(oe):"";return re.firstLayer={description:{default:"".concat(null!==(z=D.bannerMessage)&&void 0!==z?z:"").concat(le)||"",short:"".concat(null!==(Y=D.bannerMobileDescription)&&void 0!==Y?Y:"").concat(le)||"",shortDesktop:"".concat(null!==(W=D.firstLayer.shortMessage)&&void 0!==W?W:"").concat(le)||"",shortMobile:"".concat(null!==(ee=D.bannerMobileDescription)&&void 0!==ee?ee:"").concat(le)||""},title:Ae(D.labels.firstLayerTitle,"Privacy Settings")},re.secondLayer={acceptButtonLabel:D.secondLayer.acceptButtonText,categoryTab:D.secondLayer.tabsCategoriesLabel,dataTransferFilter:{all:(null===(te=null==x?void 0:x.labels)||void 0===te?void 0:te.ALL)||"All",thirdCountry:(null===(ne=null==x?void 0:x.labels)||void 0===ne?void 0:ne.THIRD_COUNTRY_TRANSFER)||"Data Transfer to Third Countries"},denyButtonLabel:D.secondLayer.denyButtonText,description:(null===(ie=D.gdpr)||void 0===ie?void 0:ie.secondLayerDescription)||D.labels.titleCorner,serviceTab:D.secondLayer.tabsServicesLabel,title:D.labels.headerCorner},re}return N(t,R),t}(Mn),En=function(R,D,P){var x;this.privacyButton=Ae(null==P?void 0:P.labelsAria.privacyButton,""),this.services=R.consentTemplates.reduce(function(R,x){var k=new vn(x,P,D);return Q(Q([],q(R),!1),[k],!1)},[]),this.gpcSignalHonored=(null===(x=null==P?void 0:P.labels)||void 0===x?void 0:x.GPC_SIGNAL_HONORED)||"The GPC signal is honored"},Gn=function(){function e(){this.needsSessionRestore=!1,this.apiInstance=sn.getInstance(),this.locationInstance=tn.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(R){this.noShow=R},e.prototype.resolveSettingsId=function(){return J(this,void 0,void 0,function(){var R,D,P,x,k,G,H,$;return X(this,function(z){switch(z.label){case 0:return[4,this.apiInstance.fetchRuleset()];case 1:return R=z.sent(),P="",x=R.location,k=R.rules,G=R.defaultRule,H=G.settingsId,$=G.noShow,x&&x.code&&(D=x.regionCode&&k.find(function(R){var D;return null===(D=R.locations)||void 0===D?void 0:D.includes(x.regionCode)})||k.find(function(R){var D;return null===(D=R.locations)||void 0===D?void 0:D.includes(x.code)}),this.locationInstance.setUserCountryData(x),Ue.setUserCountryResponse(tn.mapUserCountryData(x))),this.unsetNoShow(),D?(P=D.settingsId,void 0!==D.noShow&&this.setNoShow(!0===D.noShow)):(P=H,this.setNoShow(!0===$)),[2,{name:"Resolved Settings Id",noShow:this.getNoShow(),settingsId:P}]}})})},e}(),Tn=function(R){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=Ae(null==R?void 0:R.cookieMaxAgeSeconds,null),this.cookieRefresh=Ae(null==R?void 0:R.cookieRefresh,null),this.dataCollected=R?In(R,vt.DATA_COLLECTED_LIST):[],this.dataDistribution=R?An(R):null,this.dataProtectionOfficer=Ae(null==R?void 0:R.dataProtectionOfficer,null),this.dataPurposes=R?_n(R):[],this.dataRecipients=R?In(R,vt.DATA_RECIPIENTS_LIST):[],this.description=fn(null,R),this.deviceStorage=Ae(null==R?void 0:R.deviceStorage,null),this.deviceStorageDisclosureUrl=Ae(null==R?void 0:R.deviceStorageDisclosureUrl,null),this.language=R?wn(R):null,this.processingCompany=R?On(R):null,this.retentionPeriodDescription=R?Ln(R):null,this.technologiesUsed=R?In(R,vt.TECHNOLOGY_USED):[],this.usesCookies=Ae(null==R?void 0:R.usesCookies,null),this.usesNonCookieAccess=Ae(null==R?void 0:R.usesNonCookieAccess,null),this.urls=R?Nn(R):null},In=function(R,D){var P;return Ie(R[D])?R[D]:(null===(P=R[D])||void 0===P?void 0:P.length)>0?[R[D]]:[]},_n=function(R){var D=In(R,vt.DATA_PURPOSES_LIST);return Ie(D)?D:R.dataPurposes},An=function(R){return{processingLocation:R.locationOfProcessing,thirdPartyCountries:R.thirdCountryTransfer?R.thirdCountryTransfer.split(","):[]}},wn=function(R){return{available:R.languagesAvailable,selected:R.language}},On=function(R){return{address:R.addressOfProcessingCompany,dataProtectionOfficer:R.dataProtectionOfficer,name:R.nameOfProcessingCompany||R.processingCompany}},Ln=function(R){var D;return R.retentionPeriodDescription||(null===(D=R.retentionPeriodList)||void 0===D?void 0:D[0])||""},Nn=function(R){return{cookiePolicy:R.cookiePolicyURL,dataProcessingAgreement:R.linkToDpa,optOut:R.optOutUrl,privacyPolicy:R.privacyPolicyURL||R.policyOfProcessorUrl}},Hn=function(R){function t(D,P,x,k,G){var H,$,z,Y,W,ee=this;ee=R.call(this,D,P,k,G)||this;var te=D.labels,ne=D.tcf2;return ee.cookieInformation.purposes=ne.labelsPurposes,ee.buttons={acceptAll:ne.buttonsAcceptAllLabel,denyAll:ne.buttonsDenyAllLabel,manageSettings:ne.linksManageSettingsLabel,save:ne.buttonsSaveLabel,showVendorTab:ne.linksVendorListLinkLabel},ee.firstLayer={description:{additionalInfo:ne.firstLayerAdditionalInfo||null,dataSharedOutsideEUText:ne.showDataSharedOutsideEUText&&ne.dataSharedOutsideEUText?ne.dataSharedOutsideEUText:null,default:ne.firstLayerDescription.replace("%VENDOR_COUNT%",x.toString()),resurfaceNote:ne.firstLayerNoteResurface||null},disclaimer:{serviceScope:ne.firstLayerNoteService},title:ne.firstLayerTitle},ee.secondLayer={dataSharedOutsideEU:{text:(null===(H=null==k?void 0:k.labels)||void 0===H?void 0:H.VENDORS_OUTSIDE_EU)||null,title:te.transferToThirdCountries},dataTransferFilter:{all:(null===($=null==k?void 0:k.labels)||void 0===$?void 0:$.ALL)||"All",thirdCountry:(null===(z=null==k?void 0:k.labels)||void 0===z?void 0:z.THIRD_COUNTRY_TRANSFER)||"Data Transfer to Third Countries"},description:ne.secondLayerDescription,maxStorageDurationText:((null===(Y=null==k?void 0:k.labels)||void 0===Y?void 0:Y.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_STRING_LOCATION%","uc_tcf"),maxStorageDurationTitle:(null===(W=null==k?void 0:k.labels)||void 0===W?void 0:W.WEB_TCF_MAX_STORAGE_DURATION_TITLE)||"CMP Storage and Access",purposesTab:ne.tabsPurposeLabel,title:ne.secondLayerTitle,vendorsTab:ne.tabsVendorsLabel},ee.titles={acmVendors:ne.atpListTitle,examples:ne.examplesLabel||"Examples",features:ne.labelsFeatures,iabVendors:ne.labelsIabVendors,nonIabPurposes:ne.labelsNonIabPurposes,nonIabVendors:ne.labelsNonIabVendors,purposes:ne.labelsPurposes},ee.toggles={consent:D.tcf2.togglesConsentToggleLabel,legitimateInterest:D.tcf2.togglesLegIntToggleLabel,specialFeaturesToggle:{offLabel:D.tcf2.togglesSpecialFeaturesToggleOff,onLabel:D.tcf2.togglesSpecialFeaturesToggleOn}},ee.vendor={dataCategories:ne.categoriesOfDataLabel,dataRetention:ne.dataRetentionPeriodLabel,dataRetentionUnit:te.days,features:ne.vendorFeatures,legitimateInterest:ne.vendorLegitimateInterestPurposes,legitimateInterestClaim:ne.legitimateInterestLabel,privacyPolicy:te.privacyPolicyLinkText,purposes:ne.vendorPurpose,specialFeatures:ne.vendorSpecialFeatures,specialPurposes:ne.vendorSpecialPurposes,toggleAll:ne.labelsActivateAllVendors},ee.acmVendor={privacyPolicy:ne.atpAdditionalInfo},ee}return N(t,R),t}(Mn),$n=function(){function e(){this.aggregatedServices=[],this.allLegacyServicesHaveName=!1,this.isVariantLoaded=!1,this.isAggregatorLoaded=!1,this.language="",this.translations=null,this.botInstance=un.getInstance(),this.locationInstance=tn.getInstance(),this.rulesetInstance=Gn.getInstance(),this.apiInstance=sn.getInstance(),this._core=null,this._coreJson=null,this._data=null,this._dpsJson=null,this._labels=null,this._legacySettings=null,this._ui=null,this.controllerIdInstance=Zt.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(R){this._core=R},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"coreJson",{get:function(){return this._coreJson},set:function(R){this._coreJson=R},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this._data},set:function(R){this._data=R},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dpsJson",{get:function(){return this._dpsJson},set:function(R){this._dpsJson=R},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labels",{get:function(){return this._labels},set:function(R){this._labels=R},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"legacySettings",{get:function(){return this._legacySettings},set:function(R){this._legacySettings=R},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ui",{get:function(){return this._ui},set:function(R){this._ui=R},enumerable:!1,configurable:!0}),e.prototype.init=function(R,D,P){return J(this,void 0,void 0,function(){return X(this,function(x){return this.language=P,this.core=new bn(R,P),this.coreJson=R,this.dpsJson=D,this.isAggregatorLoaded=!1,this.allLegacyServicesHaveName=this.checkIfServiceNameExists(D.consentTemplates),this.isAggregatorLoaded=!1,[2]})})},e.prototype.initData=function(R,D,P,x,k,G,H){return void 0===D&&(D=[]),void 0===P&&(P=!0),void 0===x&&(x=!1),void 0===k&&(k=[]),void 0===G&&(G=!1),void 0===H&&(H=!1),J(this,void 0,void 0,function(){var $,z,Y,W,ee,te,ne=this;return X(this,function(ie){switch(ie.label){case 0:if(z=($=this).coreJson,Y=$.dpsJson,W=$.legacySettings,!z||!Y)return[2];switch(ee=this.controllerIdInstance.value,te=(null==D?void 0:D.length)?D:this.aggregatedServices,R){case 0:return[3,1];case 2:return[3,3];case 1:return[3,5]}return[3,7];case 1:return[4,Promise.resolve().then(function(){return dv}).then(function(R){var D=new R.default(z,Y,ee,G);ne.data=D})];case 2:return ie.sent(),[3,8];case 3:return W?[4,Promise.resolve().then(function(){return Lm}).then(function(R){var D=R.default;return J(ne,void 0,void 0,function(){var R,G;return X(this,function($){switch($.label){case 0:return(R=this.getDataTransferSettings())&&z.tcf2?(G=new D(W,z.tcf2,Y,R,ee,this.language,k,H),this.data=G,P?[4,G.init(x)]:[3,2]):[3,2];case 1:$.sent(),$.label=2;case 2:return[2]}})})})]:[2];case 4:return ie.sent(),[3,8];case 5:return[4,Promise.resolve().then(function(){return cv}).then(function(R){var D=new R.default(Y,ee,te);ne.data=D})];case 6:return ie.sent(),[3,8];case 7:ie.label=8;case 8:return this.isVariantLoaded=!0,[2]}})})},e.prototype.checkIfServiceNameExists=function(R){return R.every(function(R){var D;return null!=(null===(D=R._meta)||void 0===D?void 0:D.name)})},e.prototype.initLabels=function(R,D,P){var x=this,k=x.coreJson,G=x.dpsJson,H=x.legacySettings,$=(null==P?void 0:P.length)?P:this.aggregatedServices;if(G&&this.core)if(H)switch(R){case 0:var z=new Fn(H,G,D,$);this.labels=z;break;case 1:var Y=new Bn(H,G,D,$);this.labels=Y;break;case 2:var W=new Hn(H,G,this.getThirdPartyCount(),D,$);this.labels=W}else{var ee=new En(G,$,D),te=k?{label:"Powered by",partnerUrlLabel:Ae(k.labels.partnerPoweredByLinkText,null),urlLabel:"Usercentrics Consent Management"}:void 0;this.labels=K(K({},ee),{poweredBy:te})}},e.prototype.initUI=function(R,D){return J(this,void 0,void 0,function(){var P,x,k,G=this;return X(this,function(H){switch(H.label){case 0:return x=(P=this).coreJson,k=P.legacySettings,x?2!==R?[3,2]:[4,Promise.resolve().then(function(){return Nm}).then(function(R){var D,P=R.default,H=Be.CAT,$=!1;k&&(H=k.secondLayer.defaultView,$=k.secondLayer.hideDataProcessingServices);var z=new P(x,{defaultView:H,hideDataProcessingServices:$}),Y=x.enablePoweredBy?{partnerUrl:x.partnerPoweredByUrl||null,url:"https://www.usercentrics.com/consent-management-platform-powered-by-usercentrics/"}:null;G.ui=K(K({},z),{customCss:(null===(D=null==k?void 0:k.features)||void 0===D?void 0:D.customCss)&&k.useUnsafeCustomCss&&null!=k.stylesCss?k.stylesCss:null,poweredBy:Y})})]:[2];case 1:return H.sent(),[2];case 2:if(!k)return[2];switch(D){case 0:return[3,3];case 1:return[3,5];case 2:return[3,7]}return[3,9];case 3:return[4,Promise.resolve().then(function(){return Hm}).then(function(R){var D=new R.default(x,k);G.ui=D})];case 4:return H.sent(),[3,10];case 5:return[4,Promise.resolve().then(function(){return zm}).then(function(R){var D=new R.default(x,k);G.ui=D})];case 6:return H.sent(),[3,10];case 7:return[4,Promise.resolve().then(function(){return qm}).then(function(R){var D=new R.default(x,k);G.ui=D})];case 8:return H.sent(),[3,10];case 9:H.label=10;case 10:return[2]}})})},e.prototype.getCcpaData=function(){return rt(this.data)?this.data:null},e.prototype.getDefaultData=function(){return function(R){return null!=R&&!rt(R)&&!ot(R)}(this.data)?this.data:null},e.prototype.getTcfData=function(){return ot(this.data)?this.data:null},e.prototype.getCcpaLabels=function(){return st(this.labels)?this.labels:null},e.prototype.getDefaultLabels=function(){return lt(this.labels)?this.labels:null},e.prototype.getTcfLabels=function(){return at(this.labels)?this.labels:null},e.prototype.getCcpaUI=function(){return dt(this.ui)?this.ui:null},e.prototype.getDefaultUI=function(){return ht(this.ui)?this.ui:null},e.prototype.getTcfUI=function(){return pt(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 R=this;return this.data?this.data.categories.map(function(D){return{isEssential:D.isEssential,isHidden:D.isHidden,services:R.getServicesBaseInfo().filter(function(R){return R.categorySlug===D.slug}),slug:D.slug}}):[]},e.prototype.getCategoriesLabels=function(){return this.labels&&ut(this.labels)?this.labels.categories:[]},e.prototype.getCategoriesDataAndLabels=function(){return function(R,D,P){return R.reduce(function(R,x){var k=D.find(function(R){return R.slug===x.slug}),G=it(x.services,P);return k&&R.push(K(K(K({},k),x),{services:G})),R},[])}(this.getCategoriesData(),this.getCategoriesLabels(),this.getServicesLabels())},e.prototype.getCategoriesBasic=function(){var R=this.getCategoriesData(),D=this.getServicesLabels();return R.reduce(function(R,P){return Q(Q([],q(R),!1),[K(K({},P),{services:nt(P.services,D)})],!1)},[])},e.prototype.getCategoriesBaseInfo=function(){return this.getCategoriesDataAndLabels()},e.prototype.getCategoriesFullInfo=function(R,D){return J(this,void 0,void 0,function(){return X(this,function(P){switch(P.label){case 0:return this.isAggregatorLoaded?[3,2]:[4,this.extendServices(R,D)];case 1:P.sent(),P.label=2;case 2:return[2,this.getCategoriesDataAndLabels()]}})})},e.prototype.getDataTransferSettings=function(R){return this.core?{controllerId:this.controllerIdInstance.value,id:this.core.id,selectedLanguage:this.core.language.selected,version:R||this.core.version}:null},e.prototype.getEssentialCategories=function(){return this.getCategoriesLabels().length?this.getCategoriesDataAndLabels().reduce(function(R,D){return D.isEssential?Q(Q([],q(R),!1),[D],!1):R},[]):this.getCategoriesBasic().filter(function(R){return R.isEssential})},e.prototype.getEssentialCategoriesData=function(){return this.getCategoriesData().reduce(function(R,D){return D.isEssential?Q(Q([],q(R),!1),[D],!1):R},[])},e.prototype.getNonEssentialCategories=function(){return this.getCategoriesLabels().length?this.getCategoriesDataAndLabels().reduce(function(R,D){return D.isEssential?R:Q(Q([],q(R),!1),[D],!1)},[]):this.getCategoriesBasic().filter(function(R){return!R.isEssential})},e.prototype.getNonEssentialCategoriesData=function(){return this.getCategoriesData().reduce(function(R,D){return D.isEssential?R:Q(Q([],q(R),!1),[D],!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(R,D){return Q(Q([],q(R),!1),q(D.services),!1)},[])},e.prototype.getServicesDataAndLabels=function(){var R=this.getServicesData();return it(R,this.getServicesLabels())},e.prototype.getServicesBaseInfo=function(){var R,D;return R=this.mapBaseServices(this.getServicesData()),D=this.getServicesLabels(),R.reduce(function(R,P){var x=D.find(function(R){return R.id===P.id});return Q(Q([],q(R),!1),[K(K(K({},P),x||wt),{id:P.id})],!1)},[])},e.prototype.getServicesFullInfo=function(R,D){return J(this,void 0,void 0,function(){return X(this,function(P){switch(P.label){case 0:return this.isAggregatorLoaded?[3,2]:[4,this.extendServices(R,D)];case 1:P.sent(),P.label=2;case 2:return[2,this.getServicesDataAndLabels()]}})})},e.prototype.getServicesFromCategories=function(R){return R.reduce(function(R,D){return R.concat(D.services)},[])},e.prototype.getServicesWithConsent=function(){return this.getServicesDataAndLabels().reduce(function(R,D){return D.consent.status?Q(Q([],q(R),!1),[D],!1):R},[])},e.prototype.areAllServicesAccepted=function(){return this.getServicesData().every(function(R){return R.consent.status})},e.prototype.areAllVendorsAndPurposesAccepted=function(){var R=this.getTcfData();return!!R&&R.areAllPurposesAccepted()&&R.areAllVendorsAccepted()},e.prototype.extendServices=function(R,D){return J(this,void 0,void 0,function(){var P,x;return X(this,function(k){switch(k.label){case 0:return(P=this.dpsJson)?(this.isAggregatorLoaded=!0,[4,this.fetchServices(P)]):[2];case 1:return(x=k.sent())&&0!==x.length?(this.aggregatedServices=x,this.initLabels(R,D,x),this.data&&(this.data.categories=this.data.categories.map(function(R){var D=P.categories.find(function(D){return D.categorySlug===R.slug});return K(K({},R),{services:R.services.map(function(R){if(P.consentTemplates.find(function(D){return D.templateId===R.id})&&D){var k=null==x?void 0:x.find(function(D){return R.id===D.templateId&&R.version===D.version}),G=new Tn(k);return K(K({},R),G)}return R})})})),[2]):[2]}})})},e.prototype.isCcpaEnabled=function(){var R;return(null===(R=this.core)||void 0===R?void 0:R.isCcpaEnabled)||!1},e.prototype.isCcpaAvailable=function(){var R;if(this.isCcpaEnabled()&&null!=(null===(R=this.coreJson)||void 0===R?void 0:R.ccpa))switch(this.coreJson.ccpa.region){case We.US:return this.locationInstance.getIsUserInUS();case We.US_CA_ONLY:return this.locationInstance.getIsUserInCalifornia();default:return Promise.resolve(!0)}return Promise.resolve(!1)},e.prototype.isCrossDomainEnabled=function(){var R;return(null===(R=this.core)||void 0===R?void 0:R.consentSharingIFrameIsActive)||!1},e.prototype.isTcfEnabled=function(){var R;return(null===(R=this.core)||void 0===R?void 0:R.isTcfEnabled)||!1},e.prototype.isTcfAvailable=function(){var R;return this.isTcfEnabled()&&null!=(null===(R=this.coreJson)||void 0===R?void 0:R.tcf2)},e.prototype.isTagLoggerActive=function(){var R;return(null===(R=this.core)||void 0===R?void 0:R.isTagLoggerActive)||!1},e.prototype.mergeServicesIntoExistingCategories=function(R){return this.getCategoriesDataAndLabels().map(function(D){return K(K({},D),{services:D.services.map(function(D){return R.find(function(R){return R.id===D.id})||D})})})},e.prototype.mergeServicesDataIntoExistingCategories=function(R){return this.getCategoriesData().map(function(D){return K(K({},D),{services:D.services.map(function(D){return R.find(function(R){return R.id===D.id})||D})})})},e.prototype.setCategories=function(R){this.data&&(this.data.categories=R)},e.prototype.setControllerId=function(R){this.data&&(this.data.controllerId=R),ot(this.data)&&this.data.updateControllerId(R)},e.prototype.updateServicesLanguage=function(R){this.data&&this.data.categories.map(function(D){return K(K({},D),{services:D.services.map(function(D){return K(K({},D),{language:K(K({},D.language),{selected:R})})})})})},e.prototype.shouldDenyAllOnInitFromGpc=function(){var R,D;return J(this,void 0,void 0,function(){var P,x,k,G;return X(this,function(H){switch(H.label){case 0:return P=Ue.fetchUserActionPerformed(),x=Ue.fetchActionTypePerformed(),P&&"gpc"===x?[2,!1]:[4,this.isCcpaAvailable()];case 1:return(k=H.sent()&&!(null===(R=this.getCcpaData())||void 0===R?void 0:R.isExplicitConsented)&&!0===navigator.globalPrivacyControl)?[3,4]:(G=!0===navigator.globalPrivacyControl&&!0===(null===(D=this._legacySettings)||void 0===D?void 0:D.gpcSignalHonoured))?[4,this.locationInstance.getIsUserInEU()]:[3,3];case 2:G=!H.sent(),H.label=3;case 3:k=G,H.label=4;case 4:return[2,k||!1]}})})},e.prototype.shouldDenyAllExplicitlyOnInit=function(){return J(this,void 0,void 0,function(){var R;return X(this,function(D){switch(D.label){case 0:return null!==this.denyAllExplicitlyOnInit?[2,this.denyAllExplicitlyOnInit]:(R=this,[4,this.shouldDenyAllOnInitFromGpc()]);case 1:return R.denyAllExplicitlyOnInit=D.sent(),[2,this.denyAllExplicitlyOnInit]}})})},e.prototype.shouldAcceptAllImplicitlyOnInit=function(){var R,D;return J(this,void 0,void 0,function(){var P,x,k,G,H,$;return X(this,function(z){switch(z.label){case 0:return null!==this.acceptAllImplicitlyOnInit?[2,this.acceptAllImplicitlyOnInit]:(P=this,(G=this.botInstance.isRobot())?[3,2]:[4,this.isCcpaAvailable()]);case 1:G=z.sent()&&!navigator.globalPrivacyControl,z.label=2;case 2:return(k=G)?[3,5]:(H=null===(R=this.core)||void 0===R?void 0:R.acceptAllImplicitlyOutsideEU)?[4,this.locationInstance.getIsUserInEU()]:[3,4];case 3:H=!z.sent(),z.label=4;case 4:k=H,z.label=5;case 5:return(x=k)?[3,8]:($=this.isTcfAvailable())?[4,null===(D=this.getTcfData())||void 0===D?void 0:D.getGdprApplies()]:[3,7];case 6:$=!z.sent(),z.label=7;case 7:x=$,z.label=8;case 8:return P.acceptAllImplicitlyOnInit=x||""!==this.apiInstance.getRulesetId()&&this.rulesetInstance.getIsUsingNoShow()&&this.rulesetInstance.getNoShow(),[2,this.acceptAllImplicitlyOnInit]}})})},e.prototype.shouldAcceptAllImplicitlyOnVendorAdded=function(){var R,D,P;return J(this,void 0,void 0,function(){var x,k,G,H,$;return X(this,function(z){switch(z.label){case 0:return(G=this.botInstance.isRobot())?[3,2]:[4,this.isCcpaAvailable()];case 1:G=z.sent()&&!(null===(R=this.getCcpaData())||void 0===R?void 0:R.isOptedOut),z.label=2;case 2:return(k=G)?[3,5]:(H=null===(D=this.core)||void 0===D?void 0:D.acceptAllImplicitlyOutsideEU)?[4,this.locationInstance.getIsUserInEU()]:[3,4];case 3:H=!z.sent(),z.label=4;case 4:k=H,z.label=5;case 5:return(x=k)?[3,8]:($=this.isTcfAvailable())?[4,null===(P=this.getTcfData())||void 0===P?void 0:P.getGdprApplies()]:[3,7];case 6:$=!z.sent(),z.label=7;case 7:x=$,z.label=8;case 8:return[2,x||""!==this.apiInstance.getRulesetId()&&this.rulesetInstance.getIsUsingNoShow()&&this.rulesetInstance.getNoShow()]}})})},e.prototype.shouldShowFirstLayerOnVersionChange=function(){var R=Ue.fetchSettingsVersion();if(this.core&&R&&Ie(this.core.showFirstLayerOnVersionChange)){var D=this.core.version.split("."),P=R.split(".");return Ce(this.core.showFirstLayerOnVersionChange,G.MAJOR)&&D[0]!==P[0]||Ce(this.core.showFirstLayerOnVersionChange,G.MINOR)&&D[1]!==P[1]||Ce(this.core.showFirstLayerOnVersionChange,G.PATCH)&&D[2]!==P[2]}return!1},e.prototype.getUpdatedServicesWithConsent=function(R){return this.getServicesDataAndLabels().map(function(D){if(!D.isEssential){var P=D;return P.consent.status=R===x.TRUE,P}return D})},e.prototype.getUpdatedServicesDataWithConsent=function(R){return this.getServicesData().map(function(D){if(!D.isEssential){var P=D;return P.consent.status=R===x.TRUE,P}return D})},e.prototype.getUpdatedServicesWithDecisions=function(R){return this.getServicesDataAndLabels().map(function(D){var P=R.find(function(R){return R.serviceId===D.id}),x=D;return x.consent.status=D.isEssential||(P?P.status:D.consent.status),x})},e.prototype.getUpdatedServicesDataWithDecisions=function(R){return this.getServicesData().map(function(D){var P=R.find(function(R){return R.serviceId===D.id}),x=D;return x.consent.status=D.isEssential||(P?P.status:D.consent.status),x})},e.prototype.updateDataTransferSettings=function(R){var D=R.controllerId,P=R.id,x=R.selectedLanguage,k=R.version;this.core&&this.data&&(this.data.controllerId=D,this.core.id=P,this.core.language.selected=x,this.core.version=k)},e.prototype.isTcfHistoryV2Disabled=function(){return!!ot(this.data)&&!0===this.data.tcfv2HistoryDisabled},e.prototype.getTCFPurposeOneTreatment=function(){return ot(this.data)&&this.data.purposeOneTreatment||!1},e.prototype.getTCFStackIds=function(){return ot(this.data)?this.data.stackIds:[]},e.prototype.getTCFVendorIds=function(){return ot(this.data)?this.data.vendorIds:[]},e.prototype.getTCFDisclosedVendorsSegmentString=function(){var R;return null===(R=this.getTcfData())||void 0===R?void 0:R.getTCFDisclosedVendorsSegmentString()},e.prototype.injectTCString=function(R){return J(this,void 0,void 0,function(){var D;return X(this,function(P){return(D=this.getTcfData())?[2,D.injectTCString(R)]:[2,!1]})})},e.prototype.fetchServices=function(R){return J(this,void 0,void 0,function(){var D,P,x,k;return X(this,function(G){switch(G.label){case 0:return(D=Wt(R.consentTemplates)).length?(P=sn.getInstance(),x=un.getInstance(),k=[],x.isRobot()?[3,2]:[4,P.fetchAggregatedServices(D)]):[2,null];case 1:k=G.sent(),G.label=2;case 2:return[2,k]}})})},e.prototype.mapBaseServices=function(R){return R.map(function(R){return{categorySlug:R.categorySlug,consent:R.consent,fetchSubServices:R.fetchSubServices,id:R.id,isEssential:R.isEssential,isHidden:R.isHidden,processorId:R.processorId,subServices:R.subServices,subServicesLength:R.subServicesLength,usesThirdCountry:R.usesThirdCountry,version:R.version}})},e.prototype.getThirdPartyCount=function(){var R=ot(this.data)?this.data.getVendorsCount():0;return this.getServicesData().length+R},e}(),zn=function(){function e(){this.restoreAction=null,this.apiInstance=sn.getInstance(),this.controllerIdInstance=Zt.getInstance(),this.eventDispatcherInstance=yn.getInstance(),this.settingsV2=$n.getInstance(),this.botInstance=un.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(R,D,P,x,k,G){var H,$,z,Y=this.settingsV2.getDataTransferSettings();if(Y){var W=R.map(function(R){return we(Y,R,P,x,R.categorySlug)}),ee=xn(D,W);if(!this.botInstance.isRobot()&&(G&&this.apiInstance.saveConsentsV1_DEPRECATED({consentString:k,dataTransferObjects:W}),null===(H=this.settingsV2.core)||void 0===H?void 0:H.consentAPIv2)){var te=Oe({consentAction:P,consentString:k,dataTransferSettings:Y,isAnalyticsEnabled:null===($=this.settingsV2.core)||void 0===$?void 0:$.consentAnalytics,isCcpa:this.settingsV2.isCcpaEnabled(),isConsentXDeviceEnabled:null===(z=this.settingsV2.core)||void 0===z?void 0:z.consentXDevice,isTcf:!1,services:R});this.apiInstance.saveConsents(te)}this.settingsV2.setCategories(this.settingsV2.mergeServicesDataIntoExistingCategories(ee));var ne,ie=this.settingsV2.getServicesDataAndLabels(),re=Ue.mapSettings(Y,ie);Ue.saveSettings(re,ie),Pn.enableScriptsForServicesWithConsent(this.settingsV2.getServicesWithConsent());var oe=this.settingsV2.getTcfData();oe&&oe.advertiserConsentModeEnabled&&(ne=oe.getTCFData().vendors.find(function(R){return 755===R.id})),this.eventDispatcherInstance.dispatch(W,ne,this.settingsV2.getGoogleConsentMode())}},e.prototype.getMergedServicesAndSettingsFromStorage=function(R){var D=R,P=Ue.fetchSettings();if(P&&D){var x=this.settingsV2.getServicesFromCategories(this.settingsV2.getEssentialCategories()),k=this.settingsV2.getServicesFromCategories(this.settingsV2.getEssentialCategoriesData()),G=this.settingsV2.getServicesFromCategories(this.settingsV2.getNonEssentialCategories()),H=this.settingsV2.getServicesFromCategories(this.settingsV2.getNonEssentialCategoriesData()),$=this.getMergedAndUpdatedEssentialServices(x,P),z=this.getMergedAndUpdatedEssentialServices(k,P),Y=this.getMergedNonEssentialServices(G,P),W=this.getMergedNonEssentialServices(H,P);return P.controllerId!==this.controllerIdInstance.value&&""===this.controllerIdInstance.value&&(this.controllerIdInstance.value=P.controllerId,D.controllerId=P.controllerId,ot(D)&&D.updateControllerId(P.controllerId)),{dataTransferSettings:this.settingsV2.getDataTransferSettings(),mergedServices:$.mergedEssentialServices.concat(Y),mergedServicesData:z.mergedEssentialServices.concat(W),mergedSettingsData:D,updatedEssentialServices:$.updatedEssentialServices}}return{dataTransferSettings:null,mergedServices:[],mergedServicesData:[],mergedSettingsData:D,updatedEssentialServices:[]}},e.prototype.getLatestConsentType=function(R){return R.length>0?R[R.length-1].type:"implicit"},e.prototype.getLatestConsentAction=function(R){return R.length>0?R[R.length-1].action:"onInitialPageLoad"},e.prototype.setUserSessionData=function(R){this.userSessionData=R},e.prototype.mergeServicesAndSettings=function(R,D,P,x,k,G){var H,$,z,Y=this;if(!P)return[];if(Ie(x)){var W=x.map(function(R){return we(P,R,"onEssentialChange",Y.getLatestConsentType(R.consent.history),null==R?void 0:R.categorySlug)}),ee=xn(D,W),te=kn(D,ee,k);if(G&&this.apiInstance.saveConsentsV1_DEPRECATED({dataTransferObjects:W}),null===(H=this.settingsV2.core)||void 0===H?void 0:H.consentAPIv2){var ne=Oe({consentAction:"onEssentialChange",dataTransferSettings:P,isAnalyticsEnabled:null===($=this.settingsV2.core)||void 0===$?void 0:$.consentAnalytics,isCcpa:this.settingsV2.isCcpaEnabled(),isConsentXDeviceEnabled:null===(z=this.settingsV2.core)||void 0===z?void 0:z.consentXDevice,isTcf:this.settingsV2.isTcfAvailable(),services:x});this.apiInstance.saveConsents(ne)}this.settingsV2.setCategories(this.settingsV2.mergeServicesDataIntoExistingCategories(ee)),Ue.saveSettings(Ue.mapSettings(P,te),te)}else this.settingsV2.setCategories(this.settingsV2.mergeServicesDataIntoExistingCategories(D)),Ue.saveSettings(Ue.mapSettings(P,R),R);return R.map(function(R){return we(P,R,Y.getLatestConsentAction(R.consent.history),Y.getLatestConsentType(R.consent.history),null==R?void 0:R.categorySlug)})},e.prototype.restoreUserSession=function(R){var D,P,x;return J(this,void 0,void 0,function(){var k;return X(this,function(G){switch(G.label){case 0:return this.controllerIdInstance.value&&this.controllerIdInstance.needsSessionRestore&&(!(null===(D=this.settingsV2.core)||void 0===D?void 0:D.consentAPIv2)||(null===(P=this.settingsV2.core)||void 0===P?void 0:P.consentAPIv2)&&(null===(x=this.settingsV2.core)||void 0===x?void 0:x.consentXDevice))?[4,this.getCrossDeviceSessionData(this.controllerIdInstance.value)]:[3,2];case 1:k=G.sent(),G.label=2;case 2:if(!k&&this.userSessionData&&(k=K({},this.userSessionData)),!k&&window[ce]&&"function"==typeof window[ce].getUserSessionData)try{(null==(k=JSON.parse(window[ce].getUserSessionData(),function(R,D){if("timestamp"===R){var P=D.toString();return-1!==P.indexOf(".")?1e3*Number(P):Number(P)}return D}))?void 0:k.consents)&&(null==k?void 0:k.consents.length)&&!k.consents.every(function(R){return R.action})&&(k.consents=k.consents.map(function(R){return K(K({},R),{action:"onMobileSessionRestore"})}),this.restoreAction="onMobileSessionRestore")}catch(R){}return k||!xe.isCrossDomainAvailable()?[3,4]:[4,this.getCrossDomainSessionData()];case 3:k=G.sent(),G.label=4;case 4:return k&&k.controllerId?[2,this.restoreData(k,R)]:(this.controllerIdInstance.needsSessionRestore=!1,[2,!1])}})})},e.prototype.getCrossDomainSessionData=function(){return J(this,void 0,void 0,function(){return X(this,function(R){switch(R.label){case 0:return[4,xe.getCrossDomainSessionData().catch(function(){return re.CROSS_DOMAIN_DATA_NOT_AVAILABLE,{}})];case 1:return[2,R.sent()]}})})},e.prototype.getCrossDeviceSessionData=function(R){var D,P;return J(this,void 0,void 0,function(){var x,k,G,H,$,z,Y,W,ee,te,ne;return X(this,function(re){switch(re.label){case 0:return x=["dWLDa0s-m","VkvM9IcSA","Zdgjo9gQh","r2tAWzO7","GVl-ixMH"],k=this.apiInstance.getSettingsId(),G=this.settingsV2.isTcfAvailable(),[4,this.settingsV2.isCcpaAvailable()];case 1:return H=re.sent(),$=null===(D=this.settingsV2.core)||void 0===D?void 0:D.consentAPIv2,z=[],Y=null,W=null,$?[4,this.apiInstance.fetchUserConsentsV2(G,H).catch(function(){return ie.CROSS_DEVICE_DATA_NOT_AVAILABLE,null})]:[3,3];case 2:return ee=re.sent(),z=null!==(P=null==ee?void 0:ee.consents)&&void 0!==P?P:[],G&&(-1===x.indexOf(k)&&this.settingsV2.isTcfHistoryV2Disabled()||(Y=null==ee?void 0:ee.tcf)),H&&(W=null==ee?void 0:ee.ccpa),[3,8];case 3:return[4,this.apiInstance.fetchUserConsents().catch(function(){return ie.CROSS_DEVICE_DATA_NOT_AVAILABLE,[]})];case 4:return te=re.sent(),z=te,G?-1===x.indexOf(k)?[3,6]:[4,this.apiInstance.fetchUserTcfData().catch(function(){return ie.CROSS_DEVICE_TCF_DATA_NOT_AVAILABLE,null})]:[3,8];case 5:return Y=re.sent(),[3,8];case 6:return this.settingsV2.isTcfHistoryV2Disabled()?[3,8]:[4,this.apiInstance.fetchUserTcfDataV2().catch(function(){return ie.CROSS_DEVICE_TCF_DATA_NOT_AVAILABLE,null})];case 7:Y=re.sent(),re.label=8;case 8:return G&&!Y&&xe.isCrossDomainAvailable()?[4,this.getCrossDomainSessionData()]:[3,10];case 9:(ne=re.sent())&&ne.tcf&&ne.controllerId===R&&(Y=ne.tcf),re.label=10;case 10:return[2,K(K({consents:z,controllerId:R,language:this.apiInstance.getJsonFileLanguage()},null!==Y&&{tcf:Y}),null!==W&&{ccpa:W})]}})})},e.prototype.restoreData=function(R,D){return J(this,void 0,void 0,function(){var P,x,k,G,H,$,z,Y,W,ee,te,ne,ie,re,oe,ae,le,ce,ue=this;return X(this,function(de){switch(de.label){case 0:return P=R.controllerId,x=R.consents,k=R.tcf,G=R.ccpa,H=this.settingsV2.core,$=this.getDataFacadeServices(D),z=Ue.fetchControllerId(),this.controllerIdInstance.value=P,Y=Ue.fetchTCFData(),W=!1,!P||!Ie(x)&&$.length?[3,5]:(ee=Un(x),te=Ue.fetchServices(),"onSessionRestored"===R.consents[0].action&&P===z&&te.length===ee.length&&te[0].history.length>0&&te[0].history[0].action&&"onSessionRestored"===te[0].history[0].action?[3,5]:[3,1]);case 1:return!Ie(ee)&&$.length?[3,5]:(ne=[],ie=[],ee.forEach(function(R){var D=$.findIndex(function(D){return D.id===R.templateId});if(D>-1){var P=$[D],x=P;x.consent.status=R.status;var k=ie.findIndex(function(R){return R.id===P.id});-1===k?ie.push(x):ie[k]=x,$[D]=x;var G=ue.settingsV2.getDataTransferSettings(R.settingsVersion);G&&ne.push(we(G,x,R.action,R.updatedBy,P.categorySlug,{timestamp:"string"==typeof R.timestamp?ue.resolveTimestamp(R.timestamp):R.timestamp}))}}),this.settingsV2.data&&this.settingsV2.setControllerId(P),re=void 0,oe=void 0,H&&ee.length&&(oe=Ne(ee.map(function(R){return R.settingsVersion})).sort(je)).length&&(re=oe[oe.length-1]),ae=xn($,ne),(le=this.settingsV2.getDataTransferSettings(re))?z&&P&&P!==z?[4,Ue.clearAll()]:[3,3]:[3,4]);case 2:de.sent(),de.label=3;case 3:Ue.saveSettings(Ue.mapSettings(le,ae),ae),de.label=4;case 4:Ie(ee)&&Ue.setUserActionPerformed(!0),W=!0,de.label=5;case 5:return k&&k.tcString&&(k.tcString!==Y.tcString||k.acString!==Y.acString)&&(Ue.saveTCFData(k),$.length||Ue.setUserActionPerformed(!0)),ce=this.settingsV2.getCcpaData(),G&&G.ccpaString&&ce&&(ce.setIsOptedOut(G.ccpaString),Ue.setCcpaString(G.ccpaString),G.timestamp?Ue.setCcpaTimeStamp(G):Ue.clearCcpaData(),Ue.setUserActionPerformed(!0)),[2,W]}})})},e.prototype.getDataFacadeServices=function(R){var D=this.settingsV2.checkIfServiceNameExists,P=R.categories,x=R.consentTemplates;if(x.length>0&&D(x))return x.map(function(R){var D,x=P.find(function(D){return D.categorySlug===R.categorySlug});return{categorySlug:R.categorySlug,consent:gn(R,x),id:R.templateId,name:(null===(D=R._meta)||void 0===D?void 0:D.name)||"",processorId:"".concat(Gt(Mt())),version:R.version}});var k=this.settingsV2.getServicesDataAndLabels();return k.length>0?k.map(function(R){return{categorySlug:R.categorySlug,consent:R.consent,id:R.id,name:R.name,processorId:R.processorId,version:R.version}}):[]},e.prototype.getMergedAndUpdatedEssentialServices=function(R,D){var P=this,x=[],k=R.map(function(R){var k,G,H=null===(k=D.services)||void 0===k?void 0:k.find(function(D){return D.id===R.id});if(H){var $=R;return $.consent.history=H.history,$.consent.status=!0,$.processorId=H.processorId,$.categorySlug=(null===(G=P.settingsV2.getCategoriesBaseData().find(function(R){return R.services.some(function(R){return R.id===$.id})}))||void 0===G?void 0:G.slug)||"",H.status||x.push($),$}return R});return{mergedEssentialServices:k,updatedEssentialServices:x}},e.prototype.getMergedNonEssentialServices=function(R,D){return R.map(function(R){var P,x,k=null===(P=D.services)||void 0===P?void 0:P.find(function(D){return D.id===R.id});if(k)return(G=R).consent.history=k.history,G.consent.status=k.status,G.processorId=k.processorId,G;if(0===R.consent.history.length){var G=R,H=null===(x=D.services)||void 0===x?void 0:x.find(function(R){return R.history.length>0});return G.consent.history=[{action:"onInitialPageLoad",language:R.language?R.language.selected:Cn,status:R.consent.status,timestamp:(new Date).getTime(),type:"implicit",versions:H&&H.history.length>0?H.history[0].versions:{application:"",service:R.version,settings:""}}],G}return R})},e.prototype.resolveTimestamp=function(R){return 10===R.length?1e3*parseInt(R,10):parseInt(R,10)},e}(),xn=function(R,D){return R.map(function(R){var P=D.filter(function(D){return D.service.id===R.id});if(Ie(P)){var x=R.consent.history,k=x.length+P.length,G=k<=3?x:x.slice(k-3),H=R;return H.consent.history=Q(Q([],q(G),!1),q(P.map(function(R){return Vn(R)})),!1),H}return R})},kn=function(R,D,P){return R.reduce(function(R,x){var k=D.find(function(R){return R.id===x.id}),G=P.find(function(R){return R.id===x.id});return k&&G?Q(Q([],q(R),!1),[{categorySlug:x.categorySlug,consent:k.consent,id:x.id,language:x.language,name:G.name,processorId:x.processorId,version:x.version}],!1):Q([],q(R),!1)},[])},Vn=function(R){return{action:R.consent.action,language:R.settings.language,status:R.consent.status,timestamp:R.timestamp,type:R.consent.type,versions:{application:R.applicationVersion,service:R.service.version,settings:R.settings.version}}},Un=function(R){return R.filter(function(R){return!Dt.includes(R.action)})},jn=d(function e(R,D,P,x){c(this,e),h(this,"eventName",void 0),h(this,"listenerId",void 0),h(this,"data",void 0),h(this,"pingData",void 0),this.eventName=R,this.listenerId=D,this.data=P,this.pingData=x}),Yn=d(function e(R){c(this,e),h(this,"gppVersion",void 0),h(this,"cmpStatus",void 0),h(this,"cmpDisplayStatus",void 0),h(this,"signalStatus",void 0),h(this,"supportedAPIs",void 0),h(this,"cmpId",void 0),h(this,"sectionList",void 0),h(this,"applicableSections",void 0),h(this,"gppString",void 0),h(this,"parsedSections",void 0),this.gppVersion=R.gppVersion,this.cmpStatus=R.cmpStatus,this.cmpDisplayStatus=R.cmpDisplayStatus,this.signalStatus=R.signalStatus,this.supportedAPIs=R.supportedAPIs,this.cmpId=R.cmpId,this.sectionList=R.gppModel.getSectionIds(),this.applicableSections=R.applicableSections,this.gppString=R.gppModel.encode(),this.parsedSections=R.gppModel.toObject()}),Wn=d(function e(R,D,P){c(this,e),h(this,"callback",void 0),h(this,"parameter",void 0),h(this,"success",!0),h(this,"cmpApiContext",void 0),this.cmpApiContext=R,Object.assign(this,{callback:D,parameter:P})},[{key:"execute",value:function(){try{return this.respond()}catch(R){return this.invokeCallback(null),null}}},{key:"invokeCallback",value:function(R){var D=null!==R;this.callback&&this.callback(R,D)}}]),Jn=function(){function e(){return c(this,e),l(this,e,arguments)}return v(e,Wn),d(e,[{key:"respond",value:function(){var R=this.cmpApiContext.eventQueue.add({callback:this.callback,parameter:this.parameter}),D=new jn("listenerRegistered",R,!0,new Yn(this.cmpApiContext));this.invokeCallback(D)}}])}(),Xn=function(){function e(){return c(this,e),l(this,e,arguments)}return v(e,Wn),d(e,[{key:"respond",value:function(){var R=new Yn(this.cmpApiContext);this.invokeCallback(R)}}])}(),Kn=function(){function e(){return c(this,e),l(this,e,arguments)}return v(e,Wn),d(e,[{key:"respond",value:function(){if(!this.parameter||0===this.parameter.length)throw new Error("
. parameter required");var R=this.parameter.split(".");if(2!=R.length)throw new Error("Field name must be in the format
.");var D=R[0],P=R[1],x=this.cmpApiContext.gppModel.getFieldValue(D,P);this.invokeCallback(x)}}])}(),qn=function(){function e(){return c(this,e),l(this,e,arguments)}return v(e,Wn),d(e,[{key:"respond",value:function(){if(!this.parameter||0===this.parameter.length)throw new Error("
parameter required");var R=null;this.cmpApiContext.gppModel.hasSection(this.parameter)&&(R=this.cmpApiContext.gppModel.getSection(this.parameter)),this.invokeCallback(R)}}])}(),Qn=function(){function e(){return c(this,e),l(this,e,arguments)}return v(e,Wn),d(e,[{key:"respond",value:function(){if(!this.parameter||0===this.parameter.length)throw new Error("
[.version] parameter required");var R=this.cmpApiContext.gppModel.hasSection(this.parameter);this.invokeCallback(R)}}])}();!function(R){R.ADD_EVENT_LISTENER="addEventListener",R.GET_FIELD="getField",R.GET_SECTION="getSection",R.HAS_SECTION="hasSection",R.PING="ping",R.REMOVE_EVENT_LISTENER="removeEventListener"}(Rn||(Rn={}));var Zn,ei,ti,ni,ii,ri,oi=function(){function e(){return c(this,e),l(this,e,arguments)}return v(e,Wn),d(e,[{key:"respond",value:function(){var R=this.parameter,D=this.cmpApiContext.eventQueue.remove(R),P=new jn("listenerRemoved",R,D,new Yn(this.cmpApiContext));this.invokeCallback(P)}}])}();Zn=Rn.ADD_EVENT_LISTENER,ei=Rn.GET_FIELD,ti=Rn.GET_SECTION,ni=Rn.HAS_SECTION,ii=Rn.PING,ri=Rn.REMOVE_EVENT_LISTENER;var si,ai,li,ci,ui=d(function e(){c(this,e)});h(ui,Zn,Jn),h(ui,ei,Kn),h(ui,ti,qn),h(ui,ni,Qn),h(ui,ii,Xn),h(ui,ri,oi),function(R){R.STUB="stub",R.LOADING="loading",R.LOADED="loaded",R.ERROR="error"}(si||(si={})),function(R){R.VISIBLE="visible",R.HIDDEN="hidden",R.DISABLED="disabled"}(ai||(ai={})),function(R){R.GPP_LOADED="gpploaded",R.CMP_UI_SHOWN="cmpuishown",R.USER_ACTION_COMPLETE="useractioncomplete"}(li||(li={})),function(R){R.NOT_READY="not ready",R.READY="ready"}(ci||(ci={}));var di=d(function e(R,D){if(c(this,e),h(this,"callQueue",void 0),h(this,"customCommands",void 0),h(this,"cmpApiContext",void 0),this.cmpApiContext=R,D){var P=Rn.ADD_EVENT_LISTENER;if(null!=D&&D[P])throw new Error("Built-In Custom Commmand for ".concat(P," not allowed"));if(P=Rn.REMOVE_EVENT_LISTENER,null!=D&&D[P])throw new Error("Built-In Custom Commmand for ".concat(P," not allowed"));this.customCommands=D}try{this.callQueue=window.__gpp()||[]}catch(e){this.callQueue=[]}finally{window.__gpp=this.apiCall.bind(this),this.purgeQueuedCalls()}},[{key:"apiCall",value:function(R,D,P,x){if("string"!=typeof R)D(null,!1);else{if(D&&"function"!=typeof D)throw new Error("invalid callback function");this.isCustomCommand(R)?this.customCommands[R](D,P):this.isBuiltInCommand(R)?new ui[R](this.cmpApiContext,D,P).execute():D&&D(null,!1)}}},{key:"purgeQueuedCalls",value:function(){var R=this.callQueue;this.callQueue=[],R.forEach(function(R){var D;(D=window).__gpp.apply(D,I(R))})}},{key:"isCustomCommand",value:function(R){return this.customCommands&&"function"==typeof this.customCommands[R]}},{key:"isBuiltInCommand",value:function(R){return void 0!==ui[R]}}]),pi=d(function e(R){c(this,e),h(this,"eventQueue",new Map),h(this,"queueNumber",1e3),h(this,"cmpApiContext",void 0),this.cmpApiContext=R;try{for(var D=window.__gpp("events")||[],P=0;P=1)for(P.push(1);R>=2*P[0];)P.unshift(2*P[0]);for(var x="",k=0;k=G?(x+="1",R-=G):x+="0"}for(;x.length0;)R+="0";for(;R.length%6>0;)R+="0";return R}}])}(),bi=d(function e(){c(this,e)},null,[{key:"encode",value:function(R){var D=[];if(R>=1&&(D.push(1),R>=2)){D.push(2);for(var P=2;R>=D[P-1]+D[P-2];)D.push(D[P-1]+D[P-2]),P++}for(var x="1",k=D.length-1;k>=0;k--){var G=D[k];R>=G?(x="1"+x,R-=G):x="0"+x}return x}},{key:"decode",value:function(R){if(!/^[0-1]*$/.test(R)||R.length<2||R.indexOf("11")!==R.length-2)throw new hi("Undecodable FibonacciInteger '"+R+"'");for(var D=0,P=[],x=0;x0&&D.decode(R),D}return v(e,Ii),d(e,[{key:"encode",value:function(){var R=this.encodeToBitString();return this.base64UrlEncoder.encode(R)}},{key:"decode",value:function(R){var D=this.base64UrlEncoder.decode(R);this.decodeFromBitString(D)}},{key:"getId",value:function(){return e.ID}},{key:"getName",value:function(){return e.NAME}}])}();h(Ai,"ID",3),h(Ai,"VERSION",1),h(Ai,"NAME","header");var wi,Oi=function(){function e(R){var D;return c(this,e),(D=l(this,e,[R])).name="InvalidFieldError",D}return v(e,O(Error)),d(e)}(),Li=function(){function e(R){var D;return c(this,e),(D=l(this,e,[R])).name="LazyDecodingError",D}return v(e,hi),d(e)}(),Ni=function(){function e(R){var D;return c(this,e),(D=l(this,e)).setValue(R),D}return v(e,Ci),d(e,[{key:"encode",value:function(){return yi.encode(this.value)}},{key:"decode",value:function(R){this.value=yi.decode(R)}},{key:"substring",value:function(R,D){return R.substring(D,D+1)}}])}(),Ri=d(function e(){c(this,e)},null,[{key:"encode",value:function(R){return R?gi.encode(Math.round(R.getTime()/100),36):gi.encode(0,36)}},{key:"decode",value:function(R){if(!/^[0-1]*$/.test(R)||36!==R.length)throw new hi("Undecodable Datetime '"+R+"'");return new Date(100*gi.decode(R))}}]),Di=function(){function e(R){var D;return c(this,e),(D=l(this,e)).setValue(R),D}return v(e,Ci),d(e,[{key:"encode",value:function(){return Ri.encode(this.value)}},{key:"decode",value:function(R){this.value=Ri.decode(R)}},{key:"substring",value:function(R,D){return R.substring(D,D+36)}}])}(),Pi=d(function e(){c(this,e)},null,[{key:"encode",value:function(R,D){for(var P="",x=0;xD&&(P=P.slice(0,D)),T(e,"setValue",this,3)([I(P)])}}])}(),ki=function(){function e(R){var D;return c(this,e),h(D=l(this,e),"numElements",void 0),D.numElements=R.length,D.setValue(R),D}return v(e,Ci),d(e,[{key:"encode",value:function(){return Pi.encode(this.value,this.numElements)}},{key:"decode",value:function(R){this.value=Pi.decode(R)}},{key:"substring",value:function(R,D){return R.substring(D,D+this.numElements)}},{key:"getValue",value:function(){return I(T(e,"getValue",this,3)([]))}},{key:"setValue",value:function(R){for(var D=I(R),P=D.length;Pthis.numElements&&(D=D.slice(0,this.numElements)),T(e,"setValue",this,3)([D])}}])}(),Vi=d(function e(){c(this,e)},null,[{key:"encode",value:function(R,D){for(;R.length=65))throw new fi("Unencodable FixedString '"+R+"'");P+=gi.encode(R.charCodeAt(x)-65,6)}}return P}},{key:"decode",value:function(R){if(!/^[0-1]*$/.test(R)||R.length%6!=0)throw new hi("Undecodable FixedString '"+R+"'");for(var D="",P=0;P0)for(var x=0,k=0;k0?this.value[this.value.length-1]:0,D=Fi.encode(this.value),P=R;if(D.length<=P)return gi.encode(R,16)+"1"+D;for(var x=[],k=0,G=0;G0;)R+="0";return R}}])}(),zi=function(){function e(R){var D;c(this,e);var P=new Map,x=new Date;P.set(wi.VERSION.toString(),new _i(6,e.VERSION)),P.set(wi.CREATED.toString(),new Di(x)),P.set(wi.LAST_UPDATED.toString(),new Di(x)),P.set(wi.CMP_ID.toString(),new _i(12,0)),P.set(wi.CMP_VERSION.toString(),new _i(12,0)),P.set(wi.CONSENT_SCREEN.toString(),new _i(6,0)),P.set(wi.CONSENT_LANGUAGE.toString(),new Ui(2,"EN")),P.set(wi.VENDOR_LIST_VERSION.toString(),new _i(12,0)),P.set(wi.POLICY_VERSION.toString(),new _i(6,2)),P.set(wi.IS_SERVICE_SPECIFIC.toString(),new Ni(!1)),P.set(wi.USE_NON_STANDARD_STACKS.toString(),new Ni(!1)),P.set(wi.SPECIAL_FEATURE_OPTINS.toString(),new ki([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),P.set(wi.PURPOSE_CONSENTS.toString(),new ki([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),P.set(wi.PURPOSE_LEGITIMATE_INTERESTS.toString(),new ki([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),P.set(wi.PURPOSE_ONE_TREATMENT.toString(),new Ni(!1)),P.set(wi.PUBLISHER_COUNTRY_CODE.toString(),new Ui(2,"AA")),P.set(wi.VENDOR_CONSENTS.toString(),new Gi([])),P.set(wi.VENDOR_LEGITIMATE_INTERESTS.toString(),new Gi([])),P.set(wi.PUBLISHER_RESTRICTIONS.toString(),new Bi([])),P.set(wi.PUBLISHER_PURPOSES_SEGMENT_TYPE.toString(),new _i(3,3)),P.set(wi.PUBLISHER_CONSENTS.toString(),new ki([!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1])),P.set(wi.PUBLISHER_LEGITIMATE_INTERESTS.toString(),new ki([!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 k=new _i(6,0);return P.set(wi.NUM_CUSTOM_PURPOSES.toString(),k),P.set(wi.PUBLISHER_CUSTOM_CONSENTS.toString(),new xi(function(){return k.getValue()},[])),P.set(wi.PUBLISHER_CUSTOM_LEGITIMATE_INTERESTS.toString(),new xi(function(){return k.getValue()},[])),P.set(wi.VENDORS_ALLOWED_SEGMENT_TYPE.toString(),new _i(3,2)),P.set(wi.VENDORS_ALLOWED.toString(),new Gi([])),P.set(wi.VENDORS_DISCLOSED_SEGMENT_TYPE.toString(),new _i(3,1)),P.set(wi.VENDORS_DISCLOSED.toString(),new Gi([])),h(D=l(this,e,[P,[[wi.VERSION.toString(),wi.CREATED.toString(),wi.LAST_UPDATED.toString(),wi.CMP_ID.toString(),wi.CMP_VERSION.toString(),wi.CONSENT_SCREEN.toString(),wi.CONSENT_LANGUAGE.toString(),wi.VENDOR_LIST_VERSION.toString(),wi.POLICY_VERSION.toString(),wi.IS_SERVICE_SPECIFIC.toString(),wi.USE_NON_STANDARD_STACKS.toString(),wi.SPECIAL_FEATURE_OPTINS.toString(),wi.PURPOSE_CONSENTS.toString(),wi.PURPOSE_LEGITIMATE_INTERESTS.toString(),wi.PURPOSE_ONE_TREATMENT.toString(),wi.PUBLISHER_COUNTRY_CODE.toString(),wi.VENDOR_CONSENTS.toString(),wi.VENDOR_LEGITIMATE_INTERESTS.toString(),wi.PUBLISHER_RESTRICTIONS.toString()],[wi.PUBLISHER_PURPOSES_SEGMENT_TYPE.toString(),wi.PUBLISHER_CONSENTS.toString(),wi.PUBLISHER_LEGITIMATE_INTERESTS.toString(),wi.NUM_CUSTOM_PURPOSES.toString(),wi.PUBLISHER_CUSTOM_CONSENTS.toString(),wi.PUBLISHER_CUSTOM_LEGITIMATE_INTERESTS.toString()],[wi.VENDORS_ALLOWED_SEGMENT_TYPE.toString(),wi.VENDORS_ALLOWED.toString()],[wi.VENDORS_DISCLOSED_SEGMENT_TYPE.toString(),wi.VENDORS_DISCLOSED.toString()]]]),"base64UrlEncoder",new $i),R&&R.length>0&&D.decode(R),D}return v(e,Mi),d(e,[{key:"encode",value:function(){var R=this.encodeSegmentsToBitStrings(),D=[];return D.push(this.base64UrlEncoder.encode(R[0])),this.getFieldValue(wi.IS_SERVICE_SPECIFIC.toString())?R[1]&&R[1].length>0&&D.push(this.base64UrlEncoder.encode(R[1])):(R[2]&&R[2].length>0&&D.push(this.base64UrlEncoder.encode(R[2])),R[3]&&R[3].length>0&&D.push(this.base64UrlEncoder.encode(R[3]))),D.join(".")}},{key:"decode",value:function(R){for(var D=R.split("."),P=[],x=0;x0&&D.decode(R),D}return v(e,Mi),d(e,[{key:"encode",value:function(){var R=this.encodeSegmentsToBitStrings(),D=[];return D.push(this.base64UrlEncoder.encode(R[0])),R[1]&&R[1].length>0&&D.push(this.base64UrlEncoder.encode(R[1])),D.join(".")}},{key:"decode",value:function(R){for(var D=R.split("."),P=[],x=0;x0&&this.decode(R)}return d(e,[{key:"hasField",value:function(R){return this.fields.has(R)}},{key:"getFieldValue",value:function(R){return this.fields.has(R)?this.fields.get(R):null}},{key:"setFieldValue",value:function(R,D){if(!this.fields.has(R))throw new Oi(R+" not found");this.fields.set(R,D)}},{key:"toObj",value:function(){var R,D={},P=p(this.fields.keys());try{for(P.s();!(R=P.n()).done;){var x=R.value,k=this.fields.get(x);D[x.toString()]=k}}catch(R){P.e(R)}finally{P.f()}return D}},{key:"encode",value:function(){var R="";return R+=this.getFieldValue(ji.VERSION.toString()),R+=this.getFieldValue(ji.NOTICE.toString()),(R+=this.getFieldValue(ji.OPT_OUT_SALE.toString()))+this.getFieldValue(ji.LSPA_COVERED.toString())}},{key:"decode",value:function(R){this.setFieldValue(ji.VERSION.toString(),parseInt(R.charAt(0))),this.setFieldValue(ji.NOTICE.toString(),R.charAt(1)),this.setFieldValue(ji.OPT_OUT_SALE.toString(),R.charAt(2)),this.setFieldValue(ji.LSPA_COVERED.toString(),R.charAt(3))}},{key:"getId",value:function(){return e.ID}},{key:"getName",value:function(){return e.NAME}}])}();h(Wi,"ID",6),h(Wi,"VERSION",1),h(Wi,"NAME","uspv1");var Ji,Xi=d(function e(){c(this,e)},null,[{key:"encode",value:function(R,D,P){for(var x="",k=0;kD*P)throw new hi("Undecodable FixedIntegerList '"+R+"'");if(R.length%D!=0)throw new hi("Undecodable FixedIntegerList '"+R+"'");for(;R.lengthD*P&&(R=R.substring(0,D*P));for(var x=[],k=0;kthis.numElements&&(D=D.slice(0,this.numElements)),T(e,"setValue",this,3)([D])}}])}();!function(R){R.VERSION="Version",R.SHARING_NOTICE="SharingNotice",R.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",R.SHARING_OPT_OUT_NOTICE="SharingOptOutNotice",R.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",R.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE="SensitiveDataProcessingOptOutNotice",R.SENSITIVE_DATA_LIMIT_USE_NOTICE="SensitiveDataLimitUseNotice",R.SALE_OPT_OUT="SaleOptOut",R.SHARING_OPT_OUT="SharingOptOut",R.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",R.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",R.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",R.PERSONAL_DATA_CONSENTS="PersonalDataConsents",R.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",R.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",R.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",R.GPC_SEGMENT_TYPE="GpcSegmentType",R.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",R.GPC="Gpc"}(Ji||(Ji={}));var qi,Qi=function(){function e(R){var D;c(this,e);var P=new Map;return P.set(Ji.VERSION.toString(),new _i(6,e.VERSION)),P.set(Ji.SHARING_NOTICE.toString(),new _i(2,0)),P.set(Ji.SALE_OPT_OUT_NOTICE.toString(),new _i(2,0)),P.set(Ji.SHARING_OPT_OUT_NOTICE.toString(),new _i(2,0)),P.set(Ji.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new _i(2,0)),P.set(Ji.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE.toString(),new _i(2,0)),P.set(Ji.SENSITIVE_DATA_LIMIT_USE_NOTICE.toString(),new _i(2,0)),P.set(Ji.SALE_OPT_OUT.toString(),new _i(2,0)),P.set(Ji.SHARING_OPT_OUT.toString(),new _i(2,0)),P.set(Ji.TARGETED_ADVERTISING_OPT_OUT.toString(),new _i(2,0)),P.set(Ji.SENSITIVE_DATA_PROCESSING.toString(),new Ki(2,[0,0,0,0,0,0,0,0,0,0,0,0])),P.set(Ji.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new Ki(2,[0,0])),P.set(Ji.PERSONAL_DATA_CONSENTS.toString(),new _i(2,0)),P.set(Ji.MSPA_COVERED_TRANSACTION.toString(),new _i(2,0)),P.set(Ji.MSPA_OPT_OUT_OPTION_MODE.toString(),new _i(2,0)),P.set(Ji.MSPA_SERVICE_PROVIDER_MODE.toString(),new _i(2,0)),P.set(Ji.GPC_SEGMENT_TYPE.toString(),new _i(2,1)),P.set(Ji.GPC_SEGMENT_INCLUDED.toString(),new Ni(!0)),P.set(Ji.GPC.toString(),new Ni(!1)),h(D=l(this,e,[P,[[Ji.VERSION.toString(),Ji.SHARING_NOTICE.toString(),Ji.SALE_OPT_OUT_NOTICE.toString(),Ji.SHARING_OPT_OUT_NOTICE.toString(),Ji.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),Ji.SENSITIVE_DATA_PROCESSING_OPT_OUT_NOTICE.toString(),Ji.SENSITIVE_DATA_LIMIT_USE_NOTICE.toString(),Ji.SALE_OPT_OUT.toString(),Ji.SHARING_OPT_OUT.toString(),Ji.TARGETED_ADVERTISING_OPT_OUT.toString(),Ji.SENSITIVE_DATA_PROCESSING.toString(),Ji.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),Ji.PERSONAL_DATA_CONSENTS.toString(),Ji.MSPA_COVERED_TRANSACTION.toString(),Ji.MSPA_OPT_OUT_OPTION_MODE.toString(),Ji.MSPA_SERVICE_PROVIDER_MODE.toString()],[Ji.GPC_SEGMENT_TYPE.toString(),Ji.GPC.toString()]]]),"base64UrlEncoder",new Si),R&&R.length>0&&D.decode(R),D}return v(e,Mi),d(e,[{key:"encode",value:function(){var R=this.encodeSegmentsToBitStrings(),D=[];return D.push(this.base64UrlEncoder.encode(R[0])),R[1]&&R[1].length>0&&!0===this.fields.get(Ji.GPC_SEGMENT_INCLUDED).getValue()&&D.push(this.base64UrlEncoder.encode(R[1])),D.join(".")}},{key:"decode",value:function(R){for(var D=R.split("."),P=[],x=!1,k=0;k0&&D.decode(R),D}return v(e,Mi),d(e,[{key:"encode",value:function(){var R=this.encodeSegmentsToBitStrings(),D=[];return D.push(this.base64UrlEncoder.encode(R[0])),R[1]&&R[1].length>0&&!0===this.fields.get(qi.GPC_SEGMENT_INCLUDED).getValue()&&D.push(this.base64UrlEncoder.encode(R[1])),D.join(".")}},{key:"decode",value:function(R){for(var D=R.split("."),P=[],x=!1,k=0;k0&&D.decode(R),D}return v(e,Ii),d(e,[{key:"encode",value:function(){return this.base64UrlEncoder.encode(this.encodeToBitString())}},{key:"decode",value:function(R){this.decodeFromBitString(this.base64UrlEncoder.decode(R))}},{key:"getId",value:function(){return e.ID}},{key:"getName",value:function(){return e.NAME}}])}();h(nr,"ID",9),h(nr,"VERSION",1),h(nr,"NAME","usvav1"),function(R){R.VERSION="Version",R.SHARING_NOTICE="SharingNotice",R.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",R.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",R.SALE_OPT_OUT="SaleOptOut",R.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",R.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",R.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",R.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",R.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",R.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",R.GPC_SEGMENT_TYPE="GpcSegmentType",R.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",R.GPC="Gpc"}(tr||(tr={}));var ir,rr=function(){function e(R){var D;c(this,e);var P=new Map;return P.set(tr.VERSION.toString(),new _i(6,e.VERSION)),P.set(tr.SHARING_NOTICE.toString(),new _i(2,0)),P.set(tr.SALE_OPT_OUT_NOTICE.toString(),new _i(2,0)),P.set(tr.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new _i(2,0)),P.set(tr.SALE_OPT_OUT.toString(),new _i(2,0)),P.set(tr.TARGETED_ADVERTISING_OPT_OUT.toString(),new _i(2,0)),P.set(tr.SENSITIVE_DATA_PROCESSING.toString(),new Ki(2,[0,0,0,0,0,0,0])),P.set(tr.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new _i(2,0)),P.set(tr.MSPA_COVERED_TRANSACTION.toString(),new _i(2,0)),P.set(tr.MSPA_OPT_OUT_OPTION_MODE.toString(),new _i(2,0)),P.set(tr.MSPA_SERVICE_PROVIDER_MODE.toString(),new _i(2,0)),P.set(tr.GPC_SEGMENT_TYPE.toString(),new _i(2,1)),P.set(tr.GPC_SEGMENT_INCLUDED.toString(),new Ni(!0)),P.set(tr.GPC.toString(),new Ni(!1)),h(D=l(this,e,[P,[[tr.VERSION.toString(),tr.SHARING_NOTICE.toString(),tr.SALE_OPT_OUT_NOTICE.toString(),tr.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),tr.SALE_OPT_OUT.toString(),tr.TARGETED_ADVERTISING_OPT_OUT.toString(),tr.SENSITIVE_DATA_PROCESSING.toString(),tr.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),tr.MSPA_COVERED_TRANSACTION.toString(),tr.MSPA_OPT_OUT_OPTION_MODE.toString(),tr.MSPA_SERVICE_PROVIDER_MODE.toString()],[tr.GPC_SEGMENT_TYPE.toString(),tr.GPC.toString()]]]),"base64UrlEncoder",new Si),R&&R.length>0&&D.decode(R),D}return v(e,Mi),d(e,[{key:"encode",value:function(){var R=this.encodeSegmentsToBitStrings(),D=[];return D.push(this.base64UrlEncoder.encode(R[0])),R[1]&&R[1].length>0&&!0===this.fields.get(tr.GPC_SEGMENT_INCLUDED).getValue()&&D.push(this.base64UrlEncoder.encode(R[1])),D.join(".")}},{key:"decode",value:function(R){for(var D=R.split("."),P=[],x=!1,k=0;k0&&D.decode(R),D}return v(e,Ii),d(e,[{key:"encode",value:function(){return this.base64UrlEncoder.encode(this.encodeToBitString())}},{key:"decode",value:function(R){this.decodeFromBitString(this.base64UrlEncoder.decode(R))}},{key:"getId",value:function(){return e.ID}},{key:"getName",value:function(){return e.NAME}}])}();h(sr,"ID",11),h(sr,"VERSION",1),h(sr,"NAME","usutv1"),function(R){R.VERSION="Version",R.SHARING_NOTICE="SharingNotice",R.SALE_OPT_OUT_NOTICE="SaleOptOutNotice",R.TARGETED_ADVERTISING_OPT_OUT_NOTICE="TargetedAdvertisingOptOutNotice",R.SALE_OPT_OUT="SaleOptOut",R.TARGETED_ADVERTISING_OPT_OUT="TargetedAdvertisingOptOut",R.SENSITIVE_DATA_PROCESSING="SensitiveDataProcessing",R.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS="KnownChildSensitiveDataConsents",R.MSPA_COVERED_TRANSACTION="MspaCoveredTransaction",R.MSPA_OPT_OUT_OPTION_MODE="MspaOptOutOptionMode",R.MSPA_SERVICE_PROVIDER_MODE="MspaServiceProviderMode",R.GPC_SEGMENT_TYPE="GpcSegmentType",R.GPC_SEGMENT_INCLUDED="GpcSegmentIncluded",R.GPC="Gpc"}(or||(or={}));var ar=function(){function e(R){var D;c(this,e);var P=new Map;return P.set(or.VERSION.toString(),new _i(6,e.VERSION)),P.set(or.SHARING_NOTICE.toString(),new _i(2,0)),P.set(or.SALE_OPT_OUT_NOTICE.toString(),new _i(2,0)),P.set(or.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),new _i(2,0)),P.set(or.SALE_OPT_OUT.toString(),new _i(2,0)),P.set(or.TARGETED_ADVERTISING_OPT_OUT.toString(),new _i(2,0)),P.set(or.SENSITIVE_DATA_PROCESSING.toString(),new Ki(2,[0,0,0,0,0,0,0,0])),P.set(or.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),new Ki(2,[0,0,0])),P.set(or.MSPA_COVERED_TRANSACTION.toString(),new _i(2,0)),P.set(or.MSPA_OPT_OUT_OPTION_MODE.toString(),new _i(2,0)),P.set(or.MSPA_SERVICE_PROVIDER_MODE.toString(),new _i(2,0)),P.set(or.GPC_SEGMENT_TYPE.toString(),new _i(2,1)),P.set(or.GPC_SEGMENT_INCLUDED.toString(),new Ni(!0)),P.set(or.GPC.toString(),new Ni(!1)),h(D=l(this,e,[P,[[or.VERSION.toString(),or.SHARING_NOTICE.toString(),or.SALE_OPT_OUT_NOTICE.toString(),or.TARGETED_ADVERTISING_OPT_OUT_NOTICE.toString(),or.SALE_OPT_OUT.toString(),or.TARGETED_ADVERTISING_OPT_OUT.toString(),or.SENSITIVE_DATA_PROCESSING.toString(),or.KNOWN_CHILD_SENSITIVE_DATA_CONSENTS.toString(),or.MSPA_COVERED_TRANSACTION.toString(),or.MSPA_OPT_OUT_OPTION_MODE.toString(),or.MSPA_SERVICE_PROVIDER_MODE.toString()],[or.GPC_SEGMENT_TYPE.toString(),or.GPC.toString()]]]),"base64UrlEncoder",new Si),R&&R.length>0&&D.decode(R),D}return v(e,Mi),d(e,[{key:"encode",value:function(){var R=this.encodeSegmentsToBitStrings(),D=[];return D.push(this.base64UrlEncoder.encode(R[0])),R[1]&&R[1].length>0&&!0===this.fields.get(or.GPC_SEGMENT_INCLUDED).getValue()&&D.push(this.base64UrlEncoder.encode(R[1])),D.join(".")}},{key:"decode",value:function(R){for(var D=R.split("."),P=[],x=!1,k=0;k0)try{this.decode(this.encodedString)}catch(R){throw new Li(R.message)}var x=null;if(this.sections.has(R)?x=this.sections.get(R):R===Yi.NAME?(x=new Yi,this.sections.set(Yi.NAME,x)):R===zi.NAME?(x=new zi,this.sections.set(zi.NAME,x)):R===Wi.NAME?(x=new Wi,this.sections.set(Wi.NAME,x)):R===Qi.NAME?(x=new Qi,this.sections.set(Qi.NAME,x)):R===er.NAME?(x=new er,this.sections.set(er.NAME,x)):R===nr.NAME?(x=new nr,this.sections.set(nr.NAME,x)):R===rr.NAME?(x=new rr,this.sections.set(rr.NAME,x)):R===sr.NAME?(x=new sr,this.sections.set(sr.NAME,x)):R===ar.NAME&&(x=new ar,this.sections.set(ar.NAME,x)),!x)throw new Oi(R+"."+D+" not found");x.setFieldValue(D,P),this.dirty=!0}},{key:"setFieldValueBySectionId",value:function(R,D,P){this.setFieldValue(lr.SECTION_ID_NAME_MAP.get(R),D,P)}},{key:"getFieldValue",value:function(R,D){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(R){throw new Li(R.message)}return this.sections.has(R)?this.sections.get(R).getFieldValue(D):null}},{key:"getFieldValueBySectionId",value:function(R,D){return this.getFieldValue(lr.SECTION_ID_NAME_MAP.get(R),D)}},{key:"hasField",value:function(R,D){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(R){throw new Li(R.message)}return!!this.sections.has(R)&&this.sections.get(R).hasField(D)}},{key:"hasFieldBySectionId",value:function(R,D){return this.hasField(lr.SECTION_ID_NAME_MAP.get(R),D)}},{key:"hasSection",value:function(R){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(R){throw new Li(R.message)}return this.sections.has(R)}},{key:"hasSectionId",value:function(R){return this.hasSection(lr.SECTION_ID_NAME_MAP.get(R))}},{key:"deleteSection",value:function(R){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(R){throw new Li(R.message)}this.sections.delete(R),this.dirty=!0}},{key:"deleteSectionById",value:function(R){this.deleteSection(lr.SECTION_ID_NAME_MAP.get(R))}},{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(R){throw new Li(R.message)}var R=new Ai;return R.setFieldValue("SectionIds",this.getSectionIds()),R.toObj()}},{key:"getSection",value:function(R){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(R){throw new Li(R.message)}return this.sections.has(R)?this.sections.get(R).toObj():null}},{key:"getSectionIds",value:function(){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(R){throw new Li(R.message)}for(var R=[],D=0;D0)try{this.decode(this.encodedString)}catch(R){throw new Li(R.message)}for(var R=[],D=[],P=0;P0)try{this.decode(this.encodedString)}catch(R){throw new Li(R.message)}return this.sections.has(R)?this.sections.get(R).encode():null}},{key:"encodeSectionById",value:function(R){return this.encodeSection(lr.SECTION_ID_NAME_MAP.get(R))}},{key:"decodeSection",value:function(R,D){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(R){throw new Li(R.message)}var P=null;this.sections.has(R)?P=this.sections.get(R):R===Yi.NAME?(P=new Yi,this.sections.set(Yi.NAME,P)):R===zi.NAME?(P=new zi,this.sections.set(zi.NAME,P)):R===Wi.NAME?(P=new Wi,this.sections.set(Wi.NAME,P)):R===Qi.NAME?(P=new Qi,this.sections.set(Qi.NAME,P)):R===er.NAME?(P=new er,this.sections.set(er.NAME,P)):R===nr.NAME?(P=new nr,this.sections.set(nr.NAME,P)):R===rr.NAME?(P=new rr,this.sections.set(rr.NAME,P)):R===sr.NAME?(P=new sr,this.sections.set(sr.NAME,P)):R===ar.NAME&&(P=new ar,this.sections.set(ar.NAME,P)),P&&(P.decode(D),this.dirty=!0)}},{key:"decodeSectionById",value:function(R,D){this.decodeSection(lr.SECTION_ID_NAME_MAP.get(R),D)}},{key:"toObject",value:function(){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(R){throw new Li(R.message)}for(var R={},D=0;D=200&&H.status<300){var R=H.response;if("string"==typeof R)try{R=JSON.parse(R)}catch(R){}k(R)}else G(new Error("HTTP Status: ".concat(H.status," response type: ").concat(H.responseType)))}),H.addEventListener("error",function(){G(new Error("error"))}),H.addEventListener("abort",function(){G(new Error("aborted"))}),null===D?H.open("GET",R,!0):H.open("POST",R,!0),H.responseType="json",H.timeout=x,H.ontimeout=function(){G(new Error("Timeout "+x+"ms "+R))},H.send(D)})}},{key:"post",value:function(R,D){var P=arguments.length>2&&void 0!==arguments[2]&&arguments[2],x=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return this.absCall(R,JSON.stringify(D),P,x)}},{key:"fetch",value:function(R){var D=arguments.length>1&&void 0!==arguments[1]&&arguments[1],P=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.absCall(R,null,D,P)}}]),pr=function(){function e(R){var D;return c(this,e),(D=l(this,e,[R])).name="GVLError",D}return v(e,O(Error)),d(e)}(),hr=function(){function e(){c(this,e)}return d(e,[{key:"has",value:function(R){return e.langSet.has(R)}},{key:"forEach",value:function(R){e.langSet.forEach(R)}},{key:"size",get:function(){return e.langSet.size}}])}();h(hr,"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 mr=function(){function e(){c(this,e),h(this,"vendors",void 0),h(this,"consentLanguages",new hr),h(this,"gvlSpecificationVersion",void 0),h(this,"vendorListVersion",void 0),h(this,"tcfPolicyVersion",void 0),h(this,"lastUpdated",void 0),h(this,"purposes",void 0),h(this,"specialPurposes",void 0),h(this,"features",void 0),h(this,"specialFeatures",void 0),h(this,"stacks",void 0),h(this,"dataCategories",void 0),h(this,"language",e.DEFAULT_LANGUAGE),h(this,"vendorIds",void 0),h(this,"ready",!1),h(this,"fullVendorList",void 0),h(this,"byPurposeVendorMap",void 0),h(this,"bySpecialPurposeVendorMap",void 0),h(this,"byFeatureVendorMap",void 0),h(this,"bySpecialFeatureVendorMap",void 0),h(this,"baseUrl",void 0),h(this,"languageFilename","purposes-[LANG].json")}return d(e,[{key:"changeLanguage",value:(D=a(y().m(function e(R){var D,P,x,k;return y().w(function(G){for(;;)switch(G.p=G.n){case 0:if(D=R.toUpperCase(),!this.consentLanguages.has(D)){G.n=5;break}if(D===this.language){G.n=4;break}return this.language=D,P=this.baseUrl+this.languageFilename.replace("[LANG]",R),G.p=1,x=this,G.n=2,dr.fetch(P);case 2:x.populate.call(x,G.v),G.n=4;break;case 3:throw G.p=3,k=G.v,new pr("unable to load language: "+k.message);case 4:G.n=6;break;case 5:throw new pr("unsupported language ".concat(R));case 6:return G.a(2)}},e,this,[[1,3]])})),function(R){return D.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(R){return void 0!==R&&void 0!==R.vendors}},{key:"populate",value:function(R){this.purposes=R.purposes,this.specialPurposes=R.specialPurposes,this.features=R.features,this.specialFeatures=R.specialFeatures,this.stacks=R.stacks,this.dataCategories=R.dataCategories,this.isVendorList(R)&&(this.gvlSpecificationVersion=R.gvlSpecificationVersion,this.tcfPolicyVersion=R.tcfPolicyVersion,this.vendorListVersion=R.vendorListVersion,this.lastUpdated=R.lastUpdated,"string"==typeof this.lastUpdated&&(this.lastUpdated=new Date(this.lastUpdated)),this.vendors=R.vendors,this.fullVendorList=R.vendors,this.mapVendors(),this.ready=!0)}},{key:"mapVendors",value:function(R){var D=this;this.byPurposeVendorMap={},this.bySpecialPurposeVendorMap={},this.byFeatureVendorMap={},this.bySpecialFeatureVendorMap={},Object.keys(this.purposes).forEach(function(R){D.byPurposeVendorMap[R]={legInt:new Set,impCons:new Set,consent:new Set,flexible:new Set}}),Object.keys(this.specialPurposes).forEach(function(R){D.bySpecialPurposeVendorMap[R]=new Set}),Object.keys(this.features).forEach(function(R){D.byFeatureVendorMap[R]=new Set}),Object.keys(this.specialFeatures).forEach(function(R){D.bySpecialFeatureVendorMap[R]=new Set}),Array.isArray(R)||(R=Object.keys(this.fullVendorList).map(function(R){return+R})),this.vendorIds=new Set(R),this.vendors=R.reduce(function(R,P){var x=D.vendors[String(P)];return x&&void 0===x.deletedDate&&(x.purposes.forEach(function(R){D.byPurposeVendorMap[String(R)].consent.add(P)}),x.specialPurposes.forEach(function(R){D.bySpecialPurposeVendorMap[String(R)].add(P)}),x.legIntPurposes&&x.legIntPurposes.forEach(function(R){D.byPurposeVendorMap[String(R)].legInt.add(P)}),x.impConsPurposes&&x.impConsPurposes.forEach(function(R){D.byPurposeVendorMap[String(R)].impCons.add(P)}),x.flexiblePurposes&&x.flexiblePurposes.forEach(function(R){D.byPurposeVendorMap[String(R)].flexible.add(P)}),x.features.forEach(function(R){D.byFeatureVendorMap[String(R)].add(P)}),x.specialFeatures.forEach(function(R){D.bySpecialFeatureVendorMap[String(R)].add(P)}),R[P]=x),R},{})}},{key:"getFilteredVendors",value:function(R,D,P,x){var k=this,G=R.charAt(0).toUpperCase()+R.slice(1),H={};return("purpose"===R&&P?this["by"+G+"VendorMap"][String(D)][P]:this["by"+(x?"Special":"")+G+"VendorMap"][String(D)]).forEach(function(R){H[String(R)]=k.vendors[String(R)]}),H}},{key:"getVendorsWithConsentPurpose",value:function(R){return this.getFilteredVendors("purpose",R,"consent")}},{key:"getVendorsWithLegIntPurpose",value:function(R){return this.getFilteredVendors("purpose",R,"legInt")}},{key:"getVendorsWithFlexiblePurpose",value:function(R){return this.getFilteredVendors("purpose",R,"flexible")}},{key:"getVendorsWithSpecialPurpose",value:function(R){return this.getFilteredVendors("purpose",R,void 0,!0)}},{key:"getVendorsWithFeature",value:function(R){return this.getFilteredVendors("feature",R)}},{key:"getVendorsWithSpecialFeature",value:function(R){return this.getFilteredVendors("feature",R,void 0,!0)}},{key:"narrowVendorsTo",value:function(R){this.mapVendors(R)}},{key:"isReady",get:function(){return this.ready}}],[{key:"fromVendorList",value:function(R){var D=new e;return D.populate(R),D}},{key:"fromUrl",value:(R=a(y().m(function t(R){var D,P,x,k,G,H,$,z;return y().w(function(Y){for(;;)switch(Y.n){case 0:if((D=R.baseUrl)&&0!==D.length){Y.n=1;break}throw new pr("Invalid baseUrl: '"+D+"'");case 1:if(!/^https?:\/\/vendorlist\.consensu\.org\//.test(D)){Y.n=2;break}throw new pr("Invalid baseUrl! You may not pull directly from vendorlist.consensu.org and must provide your own cache");case 2:if(D.length>0&&"/"!==D[D.length-1]&&(D+="/"),(P=new e).baseUrl=D,R.languageFilename?P.languageFilename=R.languageFilename:P.languageFilename="purposes-[LANG].json",!(R.version>0)){Y.n=4;break}return(x=R.versionedFilename)||(x="archives/vendor-list-v[VERSION].json"),k=D+x.replace("[VERSION]",String(R.version)),$=P,Y.n=3,dr.fetch(k);case 3:$.populate.call($,Y.v),Y.n=6;break;case 4:return(G=R.latestFilename)||(G="vendor-list.json"),H=D+G,z=P,Y.n=5,dr.fetch(H);case 5:z.populate.call(z,Y.v);case 6:return Y.a(2,P)}},t)})),function(D){return R.apply(this,arguments)})},{key:"isInstanceOf",value:function(R){return"object"===A(R)&&"function"==typeof R.narrowVendorsTo}}]);var R,D}();h(mr,"DEFAULT_LANGUAGE","EN");var Sr,br,yr=function(){return d(function e(R,D,P){c(this,e),h(this,"callResponder",void 0),h(this,"cmpApiContext",void 0),this.cmpApiContext=new ur,this.cmpApiContext.cmpId=R,this.cmpApiContext.cmpVersion=D,this.callResponder=new di(this.cmpApiContext,P)},[{key:"fireEvent",value:function(R,D){this.cmpApiContext.eventQueue.exec(R,D)}},{key:"fireErrorEvent",value:function(R){this.cmpApiContext.eventQueue.exec("error",R)}},{key:"fireSectionChange",value:function(R){this.cmpApiContext.eventQueue.exec("sectionChange",R)}},{key:"getEventStatus",value:function(){return this.cmpApiContext.eventStatus}},{key:"setEventStatus",value:function(R){this.cmpApiContext.eventStatus=R}},{key:"getCmpStatus",value:function(){return this.cmpApiContext.cmpStatus}},{key:"setCmpStatus",value:function(R){this.cmpApiContext.cmpStatus=R,this.cmpApiContext.eventQueue.exec("cmpStatus",R)}},{key:"getCmpDisplayStatus",value:function(){return this.cmpApiContext.cmpDisplayStatus}},{key:"setCmpDisplayStatus",value:function(R){this.cmpApiContext.cmpDisplayStatus=R,this.cmpApiContext.eventQueue.exec("cmpDisplayStatus",R)}},{key:"getSignalStatus",value:function(){return this.cmpApiContext.signalStatus}},{key:"setSignalStatus",value:function(R){this.cmpApiContext.signalStatus=R,this.cmpApiContext.eventQueue.exec("signalStatus",R)}},{key:"getApplicableSections",value:function(){return this.cmpApiContext.applicableSections}},{key:"setApplicableSections",value:function(R){this.cmpApiContext.applicableSections=R}},{key:"getSupportedAPIs",value:function(){return this.cmpApiContext.supportedAPIs}},{key:"setSupportedAPIs",value:function(R){this.cmpApiContext.supportedAPIs=R}},{key:"setGppString",value:function(R){this.cmpApiContext.gppModel.decode(R)}},{key:"getGppString",value:function(){return this.cmpApiContext.gppModel.encode()}},{key:"setSectionString",value:function(R,D){this.cmpApiContext.gppModel.decodeSection(R,D)}},{key:"setSectionStringById",value:function(R,D){this.setSectionString(lr.SECTION_ID_NAME_MAP.get(R),D)}},{key:"getSectionString",value:function(R){return this.cmpApiContext.gppModel.encodeSection(R)}},{key:"getSectionStringById",value:function(R){return this.getSectionString(lr.SECTION_ID_NAME_MAP.get(R))}},{key:"setFieldValue",value:function(R,D,P){this.cmpApiContext.gppModel.setFieldValue(R,D,P)}},{key:"setFieldValueBySectionId",value:function(R,D,P){this.setFieldValue(lr.SECTION_ID_NAME_MAP.get(R),D,P)}},{key:"getFieldValue",value:function(R,D){return this.cmpApiContext.gppModel.getFieldValue(R,D)}},{key:"getFieldValueBySectionId",value:function(R,D){return this.getFieldValue(lr.SECTION_ID_NAME_MAP.get(R),D)}},{key:"getSection",value:function(R){return this.cmpApiContext.gppModel.getSection(R)}},{key:"getSectionById",value:function(R){return this.getSection(lr.SECTION_ID_NAME_MAP.get(R))}},{key:"hasSection",value:function(R){return this.cmpApiContext.gppModel.hasSection(R)}},{key:"hasSectionId",value:function(R){return this.hasSection(lr.SECTION_ID_NAME_MAP.get(R))}},{key:"deleteSection",value:function(R){this.cmpApiContext.gppModel.deleteSection(R)}},{key:"deleteSectionById",value:function(R){this.deleteSection(lr.SECTION_ID_NAME_MAP.get(R))}},{key:"clear",value:function(){this.cmpApiContext.gppModel.clear()}},{key:"getObject",value:function(){return this.cmpApiContext.gppModel.toObject()}},{key:"getGvlFromVendorList",value:function(R){return mr.fromVendorList(R)}},{key:"getGvlFromUrl",value:(R=a(y().m(function e(R){return y().w(function(D){for(;;)if(0===D.n)return D.a(2,mr.fromUrl(R))},e)})),function(D){return R.apply(this,arguments)})}]);var R}(),Er={tcfeuv2:2,tcfcav1:5,uspv1:6,usnat:7,usca:8,usva:9,usco:10,usut:11,usct:12},Cr=function(){function e(R,D){var P=this;this.setApplicableSections=function(R){if(P.gppEnabled)try{P.gppApi.setApplicableSections([Er[R]])}catch(D){throw new Error('GppData - setApplicableSections - unrecognized legalframework "'.concat(R,'"'))}},this.setCmpSignalReady=function(){return J(P,void 0,void 0,function(){return X(this,function(R){return this.gppEnabled&&this.gppApi.setSignalStatus(ci.READY),[2]})})},this.setCmpStatusLoaded=function(){return J(P,void 0,void 0,function(){return X(this,function(R){return this.gppEnabled&&this.gppApi.setCmpStatus(si.LOADED),[2]})})},this.setCmpDisplayHidden=function(){return J(P,void 0,void 0,function(){return X(this,function(R){return this.gppEnabled&&this.gppApi.setCmpDisplayStatus(ai.HIDDEN),[2]})})},this.setCmpDisplayVisible=function(){return J(P,void 0,void 0,function(){return X(this,function(R){return this.gppEnabled&&this.gppApi.setCmpDisplayStatus(ai.VISIBLE),[2]})})},this.setSectionString=function(R,D){return J(P,void 0,void 0,function(){return X(this,function(P){return""!==R&&this.gppEnabled&&(this.gppApi.setSectionString(D,R),this.gppApi.fireSectionChange(D)),[2]})})},this.gppEnabled=D||!1,this.cmpId=(null==R?void 0:R.tcf2.cmpId)||5,this.cmpVersion=(null==R?void 0:R.tcf2.cmpVersion)||parseInt("3",10),this.gppApi=new yr(this.cmpId,this.cmpVersion),this.gppApi.setCmpStatus(si.LOADING),this.gppApi.setSignalStatus(ci.NOT_READY)}return e.getInstance=function(R,D){var P,x=(null===(P=e.instance)||void 0===P?void 0:P.gppEnabled)||!1;return D||x?(e.instance||(e.instance=new e(R,D)),e.instance):null},e.prototype.resetGpp=function(){this.gppApi={}},e}(),Tr=function(){function e(){this.primaryLanguage="",this.apiInstance=sn.getInstance()}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.prototype.setPrimaryLanguage=function(R){this.primaryLanguage=R},e.prototype.getPrimaryLanguage=function(){return this.primaryLanguage},e.prototype.resolveLanguage=function(R){return void 0===R&&(R=!1),J(this,void 0,void 0,function(){var D,P,x,k,G;return X(this,function(H){switch(H.label){case 0:return D=Ue.fetchUserCountryResponse(),P=[],D?(tn.getInstance().setUserCountryData({code:D.countryCode,name:D.countryName,regionCode:D.regionCode}),[3,3]):[3,1];case 1:return[4,this.apiInstance.fetchAvailableLanguages()];case 2:P=H.sent(),H.label=3;case 3:if(!R){if(this.primaryLanguage)return this.apiInstance.setJsonFileLanguage(this.primaryLanguage),[2];if(x=Ue.fetchLanguage())return this.apiInstance.setJsonFileLanguage(x),[2]}return P.length?[3,5]:[4,this.apiInstance.fetchAvailableLanguages()];case 4:P=H.sent(),H.label=5;case 5:return(k=fr(P))?(this.apiInstance.setJsonFileLanguage(k),[2]):(G=gr(P))?(this.apiInstance.setJsonFileLanguage(G),[2]):P.length>0?(this.apiInstance.setJsonFileLanguage(P[0]),[2]):(this.apiInstance.setJsonFileLanguage(Cn),[2])}})})},e}(),gr=function(R){var D=window.navigator;if(Ie(D.languages))for(var P=0;P-1?(D="".concat(P[2]),P[3]&&(D+="/".concat(P[3]))):(D="".concat(P[0]),P[1]&&(D+="/".concat(P[1]))),"".concat(D.split("?")[0])},e.prototype.updateLog=function(){if(Object.prototype.hasOwnProperty.call(window,"performance")&&"function"==typeof performance.getEntries){var R=window.performance.getEntries();this.apiInstance.updateTagLoggerData(this.getTargets(R))}},e}(),Dr=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=Ot.getInstance(),this.settingsV2=$n.getInstance(),this.rulesetInstance=Gn.getInstance(),this.apiInstance=sn.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(R){return J(this,void 0,void 0,function(){var D,P;return X(this,function(x){switch(x.label){case 0:return this.initOptions=R,this.isFirstTimePageVisit=this.isFirstTimeVisit(),null!==this.shouldAcceptAllImplicitly?[3,2]:(D=this,[4,this.settingsV2.shouldAcceptAllImplicitlyOnInit()]);case 1:D.shouldAcceptAllImplicitly=x.sent(),x.label=2;case 2:return null!==this.shouldDenyAllExplicitly?[3,4]:(P=this,[4,this.settingsV2.shouldDenyAllExplicitlyOnInit()]);case 3:P.shouldDenyAllExplicitly=x.sent(),x.label=4;case 4:return this.shouldShowFirstLayerOnVersionChange=this.settingsV2.shouldShowFirstLayerOnVersionChange(),[2]}})})},e.prototype.isFirstTimeVisit=function(){return!Ue.settingsExist()},e.prototype.shouldShowNone=function(){return J(this,void 0,void 0,function(){var R,D;return X(this,function(P){switch(P.label){case 0:return R=0===this.variant,this.apiInstance.getRulesetId()&&this.rulesetInstance.getIsUsingNoShow()?[2,this.rulesetInstance.getNoShow()]:null!==this.shouldAcceptAllImplicitly?[3,2]:(D=this,[4,this.settingsV2.shouldAcceptAllImplicitlyOnInit()]);case 1:D.shouldAcceptAllImplicitly=P.sent(),P.label=2;case 2:return[2,this.shouldAcceptAllImplicitly&&!R]}})})},e.prototype.shouldManuallyResurface=function(){var R=this.settingsV2.core,D=Ue.fetchServices(),P=0===this.variant,x=null;if(D&&D.length>0){if(P)x=Ue.getCcpaTimeStamp();else{var k=Ge(D.reduce(function(R,D){return Q(Q([],q(R),!1),q(D.history),!1)},[]));R&&k.length>0&&(x=k[0].timestamp)}if(R&&x){var G=R.renewConsentsTimestamp;if(G&&Date.now()/1e3>G&&x/1e30&&k.length>0){var G=new Date(k[0].timestamp);return G.setMonth(G.getMonth()+P),D=G,(new Date).getTime()-D.getTime()>=0}return!1},e.prototype.shouldShowPrivacyButton=function(R){var D=window.location.href,P=!R.privacyButtonUrls||0===R.privacyButtonUrls.contains.length;return R.privacyButtonUrls&&R.privacyButtonUrls.contains.length>0&&R.privacyButtonUrls.contains.some(function(R){return D.includes(R)})&&(P=!0),R.privacyButtonIsVisible&&P},e.prototype.resolveUiVariant=function(R){return J(this,void 0,void 0,function(){return X(this,function(D){switch(D.label){case 0:return null!==this.variant?[2,this.variant]:[4,this.settingsV2.isCcpaAvailable()];case 1:return D.sent()?this.variant=0:this.variant=R?2:1,[2,this.variant]}})})},e.prototype.resolveUiInitialLayer=function(R){return J(this,void 0,void 0,function(){return X(this,function(D){switch(D.label){case 0:return[4,this.shouldShowNone()];case 1:return D.sent()?[2,1]:this.shouldShowFirstLayer(R)?[2,0]:this.shouldShowPrivacyButton(R)?[2,2]:[2,1]}})})},e.prototype.resolveUIOptions=function(R){var D;return J(this,void 0,void 0,function(){var P,x,k,G;return X(this,function(H){switch(H.label){case 0:return P=this.ampInstance.isAmpEnabled(),null!==this.variant?[3,2]:(x=this,[4,this.resolveUiVariant(R.tcf2Enabled)]);case 1:x.variant=H.sent(),H.label=2;case 2:return 0!==this.variant&&Ue.clearCcpa(),2!==this.variant&&Ue.clearTcf(),k=this,(null===(D=this.initOptions)||void 0===D?void 0:D.suppressCmpDisplay)?(G=1,[3,5]):[3,3];case 3:return[4,this.resolveUiInitialLayer(R)];case 4:G=H.sent(),H.label=5;case 5:return k.selectedLayer=G,[2,{ampEnabled:P,initialLayer:this.selectedLayer,variant:this.variant}]}})})},e.prototype.shouldShowFirstLayerForCcpa=function(R,D){var P;void 0===D&&(D=365);var x,k=this.settingsV2.legacySettings,G=(x=Ue.getCcpaData())?((new Date).getTime()-x.timestamp)/864e5:0;return k||void 0!==R?null!==(P=null!=R?R:null==k?void 0:k.ccpa.reshowCMP)&&void 0!==P&&P&&G>D:G>D},e}(),Pr=Object.freeze({initialize:function({modulePath:R=".",importFunctionName:D="__import__"}={}){try{self[D]=new Function("u","return import(u)")}catch(P){const x=new URL(R,location),r=R=>{URL.revokeObjectURL(R.src),R.remove()};self[D]=R=>new Promise((P,k)=>{const G=new URL(R,x);if(self[D].moduleMap[G])return P(self[D].moduleMap[G]);const H=new Blob([`import * as m from '${G}';`,`${D}.moduleMap['${G}']=m;`],{type:"text/javascript"}),$=Object.assign(document.createElement("script"),{type:"module",src:URL.createObjectURL(H),onerror(){k(new Error(`Failed to import: ${R}`)),r($)},onload(){P(self[D].moduleMap[G]),r($)}});document.head.appendChild($)}),self[D].moduleMap={}}}});function _r(R,D){return Object.keys(D).forEach(function(P){"default"===P||"__esModule"===P||Object.prototype.hasOwnProperty.call(R,P)||Object.defineProperty(R,P,{enumerable:!0,get:function(){return D[P]}})}),R}function Ar(R,D,P,x){Object.defineProperty(R,D,{get:P,set:x,enumerable:!0,configurable:!0})}var xr={},kr={};Ar(kr,"Base64Url",function(){return jr});var Vr={},Ur={};Ar(Ur,"DecodingError",function(){return Mr});var Mr=function(){function e(R){var D;return c(this,e),(D=l(this,e,[R])).name="DecodingError",D}return v(e,O(Error)),d(e)}(),Fr={};Ar(Fr,"EncodingError",function(){return Br});var Br=function(){function e(R){var D;return c(this,e),(D=l(this,e,[R])).name="EncodingError",D}return v(e,O(Error)),d(e)}(),Gr={};Ar(Gr,"GVLError",function(){return Hr});var Hr=function(){function e(R){var D;return c(this,e),(D=l(this,e,[R])).name="GVLError",D}return v(e,O(Error)),d(e)}(),$r={};Ar($r,"TCModelError",function(){return zr});var zr=function(){function e(R,D){var P,x=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return c(this,e),(P=l(this,e,["invalid value ".concat(D," passed for ").concat(R," ").concat(x)])).name="TCModelError",P}return v(e,O(Error)),d(e)}();_r(Vr,Ur),_r(Vr,Fr),_r(Vr,Gr),_r(Vr,$r);var jr=d(function e(){c(this,e)},null,[{key:"encode",value:function(R){if(!/^[0-1]+$/.test(R))throw new Br("Invalid bitField");var D=R.length%this.LCM;R+=D?"0".repeat(this.LCM-D):"";for(var P="",x=0;x=2&&2==D.length){if(e.langSet.has(R))return R;if(e.langSet.has(D))return D;var P=D+"-"+D;if(e.langSet.has(P))return P;var x,k=p(e.langSet);try{for(k.s();!(x=k.n()).done;){var G=x.value;if(-1!==G.indexOf(R)||-1!==G.indexOf(D))return G}}catch(R){k.e(R)}finally{k.f()}}throw new Error("unsupported language ".concat(R))}},{key:"forEach",value:function(R){e.langSet.forEach(R)}},{key:"size",get:function(){return e.langSet.size}}])}();Xr.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 Kr={};Ar(Kr,"Fields",function(){return qr});var qr=d(function e(){c(this,e)});(wr=qr).cmpId="cmpId",wr.cmpVersion="cmpVersion",wr.consentLanguage="consentLanguage",wr.consentScreen="consentScreen",wr.created="created",wr.supportOOB="supportOOB",wr.isServiceSpecific="isServiceSpecific",wr.lastUpdated="lastUpdated",wr.numCustomPurposes="numCustomPurposes",wr.policyVersion="policyVersion",wr.publisherCountryCode="publisherCountryCode",wr.publisherCustomConsents="publisherCustomConsents",wr.publisherCustomLegitimateInterests="publisherCustomLegitimateInterests",wr.publisherLegitimateInterests="publisherLegitimateInterests",wr.publisherConsents="publisherConsents",wr.publisherRestrictions="publisherRestrictions",wr.purposeConsents="purposeConsents",wr.purposeLegitimateInterests="purposeLegitimateInterests",wr.purposeOneTreatment="purposeOneTreatment",wr.specialFeatureOptins="specialFeatureOptins",wr.useNonStandardTexts="useNonStandardTexts",wr.vendorConsents="vendorConsents",wr.vendorLegitimateInterests="vendorLegitimateInterests",wr.vendorListVersion="vendorListVersion",wr.vendorsAllowed="vendorsAllowed",wr.vendorsDisclosed="vendorsDisclosed",wr.version="version";var Qr={};Ar(Qr,"PurposeRestriction",function(){return no}),Ar({},"Cloneable",function(){return Zr});var Zr=d(function e(){c(this,e)},[{key:"clone",value:function(){var R=this,D=new this.constructor;return Object.keys(this).forEach(function(P){var x=R.deepClone(R[P]);void 0!==x&&(D[P]=x)}),D}},{key:"deepClone",value:function(R){var D=A(R);if("number"===D||"string"===D||"boolean"===D)return R;if(null!==R&&"object"===D){if("function"==typeof R.clone)return R.clone();if(R instanceof Date)return new Date(R.getTime());if(void 0!==R[Symbol.iterator]){var P,x=[],k=p(R);try{for(k.s();!(P=k.n()).done;){var G=P.value;x.push(this.deepClone(G))}}catch(R){k.e(R)}finally{k.f()}return R instanceof Array?x:new R.constructor(x)}var H={};for(var $ in R)R.hasOwnProperty($)&&(H[$]=this.deepClone(R[$]));return H}}}]),eo={};Ar(eo,"RestrictionType",function(){return to});var to=function(R){return R[R.NOT_ALLOWED=0]="NOT_ALLOWED",R[R.REQUIRE_CONSENT=1]="REQUIRE_CONSENT",R[R.REQUIRE_LI=2]="REQUIRE_LI",R}({}),no=function(){function e(R,D){var P;return c(this,e),P=l(this,e),void 0!==R&&(P.purposeId=R),void 0!==D&&(P.restrictionType=D),P}return v(e,Zr),d(e,[{key:"hash",get:function(){if(!this.isValid())throw new Error("cannot hash invalid PurposeRestriction");return"".concat(this.purposeId).concat(e.hashSeparator).concat(this.restrictionType)}},{key:"purposeId",get:function(){return this.purposeId_},set:function(R){this.purposeId_=R}},{key:"isValid",value:function(){return Number.isInteger(this.purposeId)&&this.purposeId>0&&(this.restrictionType===to.NOT_ALLOWED||this.restrictionType===to.REQUIRE_CONSENT||this.restrictionType===to.REQUIRE_LI)}},{key:"isSameAs",value:function(R){return this.purposeId===R.purposeId&&this.restrictionType===R.restrictionType}}],[{key:"unHash",value:function(R){var D=R.split(this.hashSeparator),P=new e;if(2!==D.length)throw new zr("hash",R);return P.purposeId=parseInt(D[0],10),P.restrictionType=parseInt(D[1],10),P}}])}();no.hashSeparator="-";var io={};Ar(io,"PurposeRestrictionVector",function(){return ro});var ro=function(){function e(){var R;c(this,e);for(var D=arguments.length,P=new Array(D),x=0;xR.restrictionType)&&(P=R.restrictionType)}),P}},{key:"vendorHasRestriction",value:function(R,D){for(var P=!1,x=this.getRestrictions(R),k=0;k0}},{key:"isSet",value:function(R){var D=!1;return R instanceof Set&&(D=Array.from(R).every(this.isValidNumber)),D}},{key:"set",value:function(R){var D=this;if(Array.isArray(R))R.forEach(function(R){return D.set(R)});else if(this.isSet(R))this.set(Array.from(R));else if(this.isIntMap(R))this.set(Object.keys(R).map(function(R){return Number(R)}));else{if(!this.isValidNumber(R))throw new zr("set()",R,"must be positive integer array, positive integer, Set, or IntMap");this.set_.add(R),this.maxId_=Math.max(this.maxId,R),this.bitLength=0}}},{key:"empty",value:function(){this.set_=new Set}},{key:"forEach",value:function(R){for(var D=1;D<=this.maxId;D++)R(this.has(D),D)}},{key:"size",get:function(){return this.set_.size}},{key:"setAll",value:function(R){this.set(R)}}])}(),Do={};_r(Do,{}),_r(Do,{}),_r(Do,{}),_r(Do,{}),_r(Do,{}),_r(Do,{}),_r(Do,{}),_r(Do,{}),_r(Do,{}),_r(Do,{}),_r(Do,{}),_r(Wr,Jr),_r(Wr,Kr),_r(Wr,{}),_r(Wr,{}),_r(Wr,Qr),_r(Wr,io),_r(Wr,oo),_r(Wr,{}),_r(Wr,eo),_r(Wr,ao),_r(Wr,co),_r(Wr,po),_r(Wr,Do);var Po=d(function e(){c(this,e)});Lr=Po,ho=qr.cmpId,go=qr.cmpVersion,fo=qr.consentLanguage,vo=qr.consentScreen,mo=qr.created,So=qr.isServiceSpecific,bo=qr.lastUpdated,yo=qr.policyVersion,Eo=qr.publisherCountryCode,Co=qr.publisherLegitimateInterests,To=qr.publisherConsents,_o=qr.purposeConsents,Io=qr.purposeLegitimateInterests,Ao=qr.purposeOneTreatment,wo=qr.specialFeatureOptins,Oo=qr.useNonStandardTexts,Lo=qr.vendorListVersion,No=qr.version,Lr[ho]=12,Lr[go]=12,Lr[fo]=12,Lr[vo]=6,Lr[mo]=36,Lr[So]=1,Lr[bo]=36,Lr[yo]=6,Lr[Eo]=12,Lr[Co]=24,Lr[To]=24,Lr[_o]=24,Lr[Io]=24,Lr[Ao]=1,Lr[wo]=12,Lr[Oo]=1,Lr[Lo]=12,Lr[No]=6,Lr.anyBoolean=1,Lr.encodingType=1,Lr.maxId=16,Lr.numCustomPurposes=6,Lr.numEntries=12,Lr.numRestrictions=12,Lr.purposeId=6,Lr.restrictionType=2,Lr.segmentType=3,Lr.singleOrRange=1,Lr.vendorId=16;var xo={};Ar(xo,"SegmentEncoder",function(){return os});var ko={},Vo={};Ar(Vo,"BooleanEncoder",function(){return Uo});var Uo=d(function e(){c(this,e)},null,[{key:"encode",value:function(R){return String(Number(R))}},{key:"decode",value:function(R){return"1"===R}}]),Mo={};Ar(Mo,"DateEncoder",function(){return Go});var Fo={};Ar(Fo,"IntEncoder",function(){return Bo});var Bo=d(function e(){c(this,e)},null,[{key:"encode",value:function(R,D){var P;if("string"==typeof R&&(R=parseInt(R,10)),(P=R.toString(2)).length>D||R<0)throw new Br("".concat(R," too large to encode into ").concat(D));return P.length25||x<0||x>25)throw new Br("invalid language code: ".concat(R));if(D%2==1)throw new Br("numBits must be even, ".concat(D," is not valid"));return D/=2,Bo.encode(P,D)+Bo.encode(x,D)}},{key:"decode",value:function(R,D){if(D!==R.length||R.length%2)throw new Mr("invalid bit length for language");var P=R.length/2,x=Bo.decode(R.slice(0,P),P)+65,k=Bo.decode(R.slice(P),P)+65;return String.fromCharCode(x)+String.fromCharCode(k)}}]),Jo={};Ar(Jo,"PurposeRestrictionVectorEncoder",function(){return Xo});var Xo=d(function e(){c(this,e)},null,[{key:"encode",value:function(R){var D=Bo.encode(R.numRestrictions,Po.numRestrictions);if(!R.isEmpty()){var n=function(D,P){for(var x=D+1;x<=P;x++)if(R.gvl.vendorIds.has(x))return x;return D};R.getRestrictions().forEach(function(P){D+=Bo.encode(P.purposeId,Po.purposeId),D+=Bo.encode(P.restrictionType,Po.restrictionType);for(var x=R.getVendors(P),k=x.length,G=0,H=0,$="",z=0;zn(Y,x[k-1])){var W=!(Y===H);$+=Uo.encode(W),$+=Bo.encode(H,Po.vendorId),W&&($+=Bo.encode(Y,Po.vendorId)),H=0}}D+=Bo.encode(G,Po.numEntries),D+=$})}return D}},{key:"decode",value:function(R){var D=0,P=new ro,x=Bo.decode(R.substr(D,Po.numRestrictions),Po.numRestrictions);D+=Po.numRestrictions;for(var k=0;kz&&Y<$)&&k&&(R.has(H+1)?0===x.length&&(x.push(H),Y+=Po.singleOrRange,Y+=Po.vendorId):(x.push(H),Y+=Po.vendorId,P.push(x),x=[]))}),D?(k+=String(Qo.RANGE),k+=this.buildRangeEncoding(P)):(k+=String(Qo.FIELD),k+=G),k}},{key:"decode",value:function(R,D){var P,x=0,k=Bo.decode(R.substr(x,Po.maxId),Po.maxId);x+=Po.maxId;var G=Bo.decode(R.charAt(x),Po.encodingType);if(x+=Po.encodingType,G===Qo.RANGE){if(P=new Ro,1===D){if("1"===R.substr(x,1))throw new Mr("Unable to decode default consent=1");x++}var H=Bo.decode(R.substr(x,Po.numEntries),Po.numEntries);x+=Po.numEntries;for(var $=0;$0&&this[2].push(lo.VENDORS_ALLOWED),this[2].push(lo.PUBLISHER_TC))}});_r(es,ts),_r(es,is),_r(es,{});var os=d(function e(){c(this,e)},null,[{key:"encode",value:function(R,D){var P,x=this;try{P=this.fieldSequence[String(R.version)][D]}catch(P){throw new Br("Unable to encode version: ".concat(R.version,", segment: ").concat(D))}var k="";D!==lo.CORE&&(k=Bo.encode(uo.KEY_TO_ID[D],Po.segmentType));var G=Yo();return P.forEach(function(P){var H=R[P],$=G[P],z=Po[P];void 0===z&&x.isPublisherCustom(P)&&(z=Number(R[qr.numCustomPurposes]));try{k+=$.encode(H,z)}catch(R){throw new Br("Error encoding ".concat(D,"->").concat(P,": ").concat(R.message))}}),jr.encode(k)}},{key:"decode",value:function(R,D,P){var x=this,k=jr.decode(R),G=0;P===lo.CORE&&(D.version=Bo.decode(k.substr(G,Po[qr.version]),Po[qr.version])),P!==lo.CORE&&(G+=Po.segmentType);var H=this.fieldSequence[String(D.version)][P],$=Yo();return H.forEach(function(R){var P=$[R],H=Po[R];if(void 0===H&&x.isPublisherCustom(R)&&(H=Number(D[qr.numCustomPurposes])),0!==H){var z=k.substr(G,H);if(D[R]=P===Zo?P.decode(z,D.version):P.decode(z,H),Number.isInteger(H))G+=H;else{if(!Number.isInteger(D[R].bitLength))throw new Mr(R);G+=D[R].bitLength}}}),D}},{key:"isPublisherCustom",value:function(R){return 0===R.indexOf("publisherCustom")}}]);os.fieldSequence=new ns;var ss={};Ar(ss,"SemanticPreEncoder",function(){return as});var as=d(function e(){c(this,e)},null,[{key:"process",value:function(R,D){var P=R.gvl;if(!P)throw new Br("Unable to encode TCModel without a GVL");if(!P.isReady)throw new Br("Unable to encode TCModel tcModel.gvl.readyPromise is not resolved");(R=R.clone()).consentLanguage=P.language.slice(0,2).toUpperCase(),(null==D?void 0:D.version)>0&&(null==D?void 0:D.version)<=this.processor.length?R.version=D.version:R.version=this.processor.length;var x=R.version-1;if(!this.processor[x])throw new Br("Invalid version: ".concat(R.version));return this.processor[x](R,P)}}]);as.processor=[function(R){return R},function(R,D){R.publisherRestrictions.gvl=D,R.purposeLegitimateInterests.unset([1,3,4,5,6]);var P=new Map;return P.set("legIntPurposes",R.vendorLegitimateInterests),P.set("purposes",R.vendorConsents),P.forEach(function(P,x){P.forEach(function(k,G){if(k){var H=D.vendors[G];if(!H||H.deletedDate)P.unset(G);else if(0===H[x].length)if("legIntPurposes"===x&&0===H.purposes.length&&0===H.legIntPurposes.length&&H.specialPurposes.length>0)P.set(G);else if("legIntPurposes"===x&&H.purposes.length>0&&0===H.legIntPurposes.length&&H.specialPurposes.length>0)P.set(G);else if(R.isServiceSpecific)if(0===H.flexiblePurposes.length)P.unset(G);else{for(var $=R.publisherRestrictions.getRestrictions(G),z=!1,Y=0,W=$.length;Y=200&&H.status<300){var R=H.response;if("string"==typeof R)try{R=JSON.parse(R)}catch(R){}k(R)}else G(new Error("HTTP Status: ".concat(H.status," response type: ").concat(H.responseType)))}),H.addEventListener("error",function(){G(new Error("error"))}),H.addEventListener("abort",function(){G(new Error("aborted"))}),null===D?H.open("GET",R,!0):H.open("POST",R,!0),H.responseType="json",H.timeout=x,H.ontimeout=function(){G(new Error("Timeout "+x+"ms "+R))},H.send(D)})}},{key:"post",value:function(R,D){var P=arguments.length>2&&void 0!==arguments[2]&&arguments[2],x=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return this.absCall(R,JSON.stringify(D),P,x)}},{key:"fetch",value:function(R){var D=arguments.length>1&&void 0!==arguments[1]&&arguments[1],P=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.absCall(R,null,D,P)}}]),cs=function(){function e(R,D){var P;c(this,e),(P=l(this,e)).isReady_=!1,P.isLatest=!1;var x=e.baseUrl,k=null==D?void 0:D.language;if(k)try{k=e.consentLanguages.parseLanguage(k)}catch(R){throw new Hr("Error during parsing the language: "+R.message)}if(P.lang_=k||e.DEFAULT_LANGUAGE,P.cacheLang_=k||e.DEFAULT_LANGUAGE,P.isVendorList(R))P.populate(R),P.readyPromise=Promise.resolve();else{if(!x)throw new Hr("must specify GVL.baseUrl before loading GVL json");if(R>0){var G=R;e.CACHE.has(G)?(P.populate(e.CACHE.get(G)),P.readyPromise=Promise.resolve()):(x+=e.versionedFilename.replace("[VERSION]",String(G)),P.readyPromise=P.fetchJson(x))}else e.CACHE.has(e.LATEST_CACHE_KEY)?(P.populate(e.CACHE.get(e.LATEST_CACHE_KEY)),P.readyPromise=Promise.resolve()):(P.isLatest=!0,P.readyPromise=P.fetchJson(x+e.latestFilename))}return P}return v(e,Zr),d(e,[{key:"cacheLanguage",value:function(){e.LANGUAGE_CACHE.has(this.cacheLang_)||e.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:(D=a(y().m(function e(R){var D,P;return y().w(function(x){for(;;)switch(x.p=x.n){case 0:return x.p=0,D=this,x.n=1,ls.fetch(R);case 1:D.populate.call(D,x.v),x.n=3;break;case 2:throw x.p=2,P=x.v,new Hr(P.message);case 3:return x.a(2)}},e,this,[[0,2]])})),function(R){return D.apply(this,arguments)})},{key:"getJson",value:function(){return b(b({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 R={},D=0,P=Object.keys(this.specialFeatures);D0&&"/"!==R[R.length-1]&&(R+="/"),this.baseUrl_=R}},{key:"emptyLanguageCache",value:function(R){var D=!1;return null==R&&e.LANGUAGE_CACHE.size>0?(e.LANGUAGE_CACHE=new Map,D=!0):"string"==typeof R&&this.consentLanguages.has(R.toUpperCase())&&(e.LANGUAGE_CACHE.delete(R.toUpperCase()),D=!0),D}},{key:"emptyCache",value:function(R){var D=!1;return Number.isInteger(R)&&R>=0?(e.CACHE.delete(R),D=!0):void 0===R&&(e.CACHE=new Map,D=!0),D}},{key:"clonePurpose",value:function(R){return b(b({id:R.id,name:R.name,description:R.description},R.descriptionLegal?{descriptionLegal:R.descriptionLegal}:{}),R.illustrations?{illustrations:Array.from(R.illustrations)}:{})}},{key:"cloneFeature",value:function(R){return b(b({id:R.id,name:R.name,description:R.description},R.descriptionLegal?{descriptionLegal:R.descriptionLegal}:{}),R.illustrations?{illustrations:Array.from(R.illustrations)}:{})}},{key:"cloneDataCategory",value:function(R){return{id:R.id,name:R.name,description:R.description}}},{key:"cloneStack",value:function(R){return{id:R.id,name:R.name,description:R.description,purposes:Array.from(R.purposes),specialFeatures:Array.from(R.specialFeatures)}}},{key:"cloneDataRetention",value:function(R){return b(b({},"number"==typeof R.stdRetention?{stdRetention:R.stdRetention}:{}),{},{purposes:b({},R.purposes),specialPurposes:b({},R.specialPurposes)})}},{key:"cloneVendorUrls",value:function(R){return R.map(function(R){return b({langId:R.langId,privacy:R.privacy},R.legIntClaim?{legIntClaim:R.legIntClaim}:{})})}},{key:"cloneVendor",value:function(R){return b(b(b(b(b(b(b(b(b(b(b({id:R.id,name:R.name,purposes:Array.from(R.purposes),legIntPurposes:Array.from(R.legIntPurposes),flexiblePurposes:Array.from(R.flexiblePurposes),specialPurposes:Array.from(R.specialPurposes),features:Array.from(R.features),specialFeatures:Array.from(R.specialFeatures)},R.overflow?{overflow:{httpGetLimit:R.overflow.httpGetLimit}}:{}),"number"==typeof R.cookieMaxAgeSeconds||null===R.cookieMaxAgeSeconds?{cookieMaxAgeSeconds:R.cookieMaxAgeSeconds}:{}),void 0!==R.usesCookies?{usesCookies:R.usesCookies}:{}),R.policyUrl?{policyUrl:R.policyUrl}:{}),void 0!==R.cookieRefresh?{cookieRefresh:R.cookieRefresh}:{}),void 0!==R.usesNonCookieAccess?{usesNonCookieAccess:R.usesNonCookieAccess}:{}),R.dataRetention?{dataRetention:this.cloneDataRetention(R.dataRetention)}:{}),R.urls?{urls:this.cloneVendorUrls(R.urls)}:{}),R.dataDeclaration?{dataDeclaration:Array.from(R.dataDeclaration)}:{}),R.deviceStorageDisclosureUrl?{deviceStorageDisclosureUrl:R.deviceStorageDisclosureUrl}:{}),R.deletedDate?{deletedDate:R.deletedDate}:{})}},{key:"isInstanceOf",value:function(R){return"object"===A(R)&&"function"==typeof R.narrowVendorsTo}}]);var R,D}();(Nr=cs).LANGUAGE_CACHE=new Map,Nr.CACHE=new Map,Nr.LATEST_CACHE_KEY=0,Nr.DEFAULT_LANGUAGE="EN",Nr.consentLanguages=new Xr,Nr.latestFilename="vendor-list.json",Nr.versionedFilename="archives/vendor-list-v[VERSION].json",Nr.languageFilename="purposes-[LANG].json",Ar({},"TCModel",function(){return us});var us=function(){function e(R){var D;return c(this,e),(D=l(this,e)).isServiceSpecific_=!0,D.supportOOB_=!1,D.useNonStandardTexts_=!1,D.purposeOneTreatment_=!1,D.publisherCountryCode_="AA",D.version_=2,D.consentScreen_=0,D.policyVersion_=4,D.consentLanguage_="EN",D.cmpId_=0,D.cmpVersion_=0,D.vendorListVersion_=0,D.numCustomPurposes_=0,D.addtlConsent_="",D.enableAdvertiserConsentMode_=!1,D.specialFeatureOptins=new Ro,D.purposeConsents=new Ro,D.purposeLegitimateInterests=new Ro,D.publisherConsents=new Ro,D.publisherLegitimateInterests=new Ro,D.publisherCustomConsents=new Ro,D.publisherCustomLegitimateInterests=new Ro,D.vendorConsents=new Ro,D.vendorLegitimateInterests=new Ro,D.vendorsDisclosed=new Ro,D.vendorsAllowed=new Ro,D.publisherRestrictions=new ro,R&&(D.gvl=R),D.updated(),D}return v(e,Zr),d(e,[{key:"gvl",get:function(){return this.gvl_},set:function(R){cs.isInstanceOf(R)||(R=new cs(R)),this.gvl_=R,this.publisherRestrictions.gvl=R}},{key:"cmpId",get:function(){return this.cmpId_},set:function(R){if(R=Number(R),!(Number.isInteger(R)&&R>1))throw new zr("cmpId",R);this.cmpId_=R}},{key:"cmpVersion",get:function(){return this.cmpVersion_},set:function(R){if(R=Number(R),!(Number.isInteger(R)&&R>-1))throw new zr("cmpVersion",R);this.cmpVersion_=R}},{key:"consentScreen",get:function(){return this.consentScreen_},set:function(R){if(R=Number(R),!(Number.isInteger(R)&&R>-1))throw new zr("consentScreen",R);this.consentScreen_=R}},{key:"consentLanguage",get:function(){return this.consentLanguage_},set:function(R){this.consentLanguage_=R}},{key:"publisherCountryCode",get:function(){return this.publisherCountryCode_},set:function(R){if(!/^([A-z]){2}$/.test(R))throw new zr("publisherCountryCode",R);this.publisherCountryCode_=R.toUpperCase()}},{key:"vendorListVersion",get:function(){return this.gvl?this.gvl.vendorListVersion:this.vendorListVersion_},set:function(R){if((R=0|Number(R))<0)throw new zr("vendorListVersion",R);this.vendorListVersion_=R}},{key:"policyVersion",get:function(){return this.gvl?this.gvl.tcfPolicyVersion:this.policyVersion_},set:function(R){if(this.policyVersion_=parseInt(R,10),this.policyVersion_<0)throw new zr("policyVersion",R)}},{key:"version",get:function(){return this.version_},set:function(R){this.version_=parseInt(R,10)}},{key:"isServiceSpecific",get:function(){return this.isServiceSpecific_},set:function(R){this.isServiceSpecific_=R}},{key:"useNonStandardTexts",get:function(){return this.useNonStandardTexts_},set:function(R){this.useNonStandardTexts_=R}},{key:"supportOOB",get:function(){return this.supportOOB_},set:function(R){this.supportOOB_=R}},{key:"addtlConsent",get:function(){return this.addtlConsent_},set:function(R){this.addtlConsent_=R||""}},{key:"enableAdvertiserConsentMode",get:function(){return this.enableAdvertiserConsentMode_},set:function(R){this.enableAdvertiserConsentMode_=!0===R}},{key:"purposeOneTreatment",get:function(){return this.purposeOneTreatment_},set:function(R){this.purposeOneTreatment_=R}},{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 R=this.numCustomPurposes_;if("object"===A(this.customPurposes)){var D=Object.keys(this.customPurposes).sort(function(R,D){return Number(R)-Number(D)});R=parseInt(D.pop(),10)}return R},set:function(R){if(this.numCustomPurposes_=parseInt(R,10),this.numCustomPurposes_<0)throw new zr("numCustomPurposes",R)}},{key:"updated",value:function(){var R=new Date,D=new Date(Date.UTC(R.getUTCFullYear(),R.getUTCMonth(),R.getUTCDate()));this.created=D,this.lastUpdated=D}}])}();us.consentLanguages=cs.consentLanguages,Ar({},"TCString",function(){return Ps});var Es,_s,Is,ws,Ls,Rs,Ps=d(function e(){c(this,e)},null,[{key:"encode",value:function(R,D){var P,x="";return R=as.process(R,D),(P=Array.isArray(null==D?void 0:D.segments)?D.segments:new rs(R,D)[""+R.version]).forEach(function(D,k){var G="";k0&&fe&&!(null==fe?void 0:fe.isDeactivated)&&((ve=document.createElement("script")).src="https://bt.fraud0.com/api/v2/fz.js?cid=".concat(le.integrations.fraud0[0].accountId),ve.async=!0,ve.setAttribute(Dn,"Fraud0"),ve.type=cn.TEXT_PLAIN,document.body.appendChild(ve)),me=this.apiInstance.getJsonFileLanguage(),[4,this.settingsV2.init(le,ce,me)];case 12:return We.sent(),[4,this.uiInstance.resolveUiVariant(le.tcf2Enabled)];case 13:return ye=We.sent(),[4,this.settingsV2.initData(ye,[],!1,!0===this.initOptions.euMode,this.initOptions.excludeAcceptAllVendors,ae,this.initOptions.enableDeprecatedV1ConsentSaving)];case 14:return We.sent(),[4,this.apiInstance.fetchTranslations()];case 15:return Ee=We.sent(),!this.initOptions.prefetchServices&&this.settingsV2.allLegacyServicesHaveName?[3,17]:[4,this.settingsV2.extendServices(ye,Ee)];case 16:We.sent(),this.apiInstance.resetAggregatedServicesCache(),We.label=17;case 17:return this.controllerIdInstance.setNeedSessionRestore(),[4,this.dataFacadeInstance.restoreUserSession(ce)];case 18:return(De=We.sent())||(this.controllerIdInstance.init(),this.settingsV2.data&&this.settingsV2.setControllerId(this.controllerIdInstance.value)),[4,this.uiInstance.init(this.initOptions)];case 19:return We.sent(),Pe=this.settingsV2.getTcfData(),ot(this.settingsV2.data)&&Pe?[4,this.settingsV2.data.init(!0===this.initOptions.euMode)]:[3,21];case 20:We.sent(),We.label=21;case 21:return this.settingsV2.initLabels(ye,Ee),ke=[],Ue.settingsExist()&&(ke=this.processStorageServicesAndSettings(this.settingsV2.data)),this.botInstance.isRobot()||(this.apiInstance.saveConsentsFromBuffer(),this.apiInstance.saveConsentsV2FromBuffer()),[4,this.uiInstance.resolveUIOptions(le)];case 22:return Ve=We.sent(),Me=Ve.initialLayer,Fe=Ue.fetchTCFData(),De&&Pe&&(null===(P=this.gppData)||void 0===P||P.setSectionString(Fe.tcString,"tcfeuv2"),Ue.saveTCFData(K(K({},Fe),{vendors:Cs(Pe.getTCFData().vendors)}))),this.setIsConsentRequired(this.uiInstance.shouldShowFirstLayer(le)),this.isConsentRequired&&Ue.setUserActionPerformed(!1),this.settingsV2.initLabels(ye,Ee),[4,this.settingsV2.initUI(Me,ye)];case 23:return We.sent(),Pe?!(0===Me||(null===(x=this.initOptions)||void 0===x?void 0:x.suppressCmpDisplay)&&this.getIsConsentRequired())||this.botInstance.isRobot()?[3,25]:[4,Pe.setUIAsOpen()]:[3,27];case 24:return We.sent(),[3,27];case 25:return[4,Pe.setUIAsClosed()];case 26:We.sent(),We.label=27;case 27:return this.initOptions.createGppStub&&(ot(this.settingsV2.data)||rt(this.settingsV2.data))&&(Be=this.settingsV2.data,ot(Be)?null===(k=this.gppData)||void 0===k||k.setApplicableSections("tcfeuv2"):rt(Be)?null===(G=this.gppData)||void 0===G||G.setApplicableSections(Be.legalFramework):null===(H=this.gppData)||void 0===H||H.setApplicableSections("tcfeuv2"),(0===Me||3===Me||(null===($=this.initOptions)||void 0===$?void 0:$.suppressCmpDisplay)&&this.getIsConsentRequired())&&!this.botInstance.isRobot()&&(null===(z=this.gppData)||void 0===z||z.setCmpDisplayVisible()),2!==Me&&1!==Me||null===(Y=this.gppData)||void 0===Y||Y.setCmpDisplayHidden(),null===(W=this.gppData)||void 0===W||W.setCmpSignalReady(),null===(ee=this.gppData)||void 0===ee||ee.setCmpStatusLoaded()),this.settingsV2.isTagLoggerActive()&&!this.botInstance.isRobot()&&(new Rr).initTagLogger(),this.eventDispatcherInstance.enableClarity(!0===(null===(te=this.settingsV2.legacySettings)||void 0===te?void 0:te.microsoftClarityConsentSignalEnabled)),this.eventDispatcherInstance.init(this.settingsV2.getDataExchangeSettings()),[4,this.updateStorage(ie,ke,De)];case 28:return We.sent(),[2,Ve]}})})},e.prototype.acceptAllForTCF=function(R){return J(this,void 0,void 0,function(){var D;return X(this,function(P){switch(P.label){case 0:return(D=this.settingsV2.getTcfData())?[4,D.acceptAllDisclosed(R)]:[3,2];case 1:P.sent(),P.label=2;case 2:return[2]}})})},e.prototype.acceptAllServices=function(R){return void 0===R&&(R="explicit"),J(this,void 0,void 0,function(){return X(this,function(D){switch(D.label){case 0:return this.dataFacadeInstance.execute(this.settingsV2.getUpdatedServicesWithConsent(x.TRUE),this.settingsV2.getUpdatedServicesDataWithConsent(x.TRUE),"onAcceptAllServices",R,{},this.initOptions.enableDeprecatedV1ConsentSaving),[4,this.saveUserActionPerformed()];case 1:return D.sent(),[2]}})})},e.prototype.changeLanguage=function(R){var D,P;return J(this,void 0,void 0,function(){var x,k,G,H,$,z,Y,W,ee,te,ne,ie,re,oe,ae,le;return X(this,function(ce){switch(ce.label){case 0:return x=null===(D=this.settingsV2.core)||void 0===D?void 0:D.language.available,k=x&&x.some(function(D){return D===R}),G=R!==this.apiInstance.getJsonFileLanguage()&&k,H=this.settingsV2,$=H.core,z=H.data,G&&z&&$?(this.apiInstance.setJsonFileLanguage(R),this.apiInstance.resetTranslationsCache(),this.settingsV2.language=R,[4,this.fetchCoreAndDps()]):[3,8];case 1:return Y=ce.sent().dps,this.settingsV2.dpsJson=Y,W=this.uiInstance,ee=W.selectedLayer,te=W.variant,[4,this.apiInstance.fetchTranslations()];case 2:return ne=ce.sent(),null===te||null===ee||null==Y?[3,6]:!this.settingsV2.isAggregatorLoaded&&this.settingsV2.checkIfServiceNameExists(Y.consentTemplates)?[3,4]:[4,this.settingsV2.extendServices(te,ne)];case 3:return ce.sent(),[3,5];case 4:this.settingsV2.initLabels(te,ne),ce.label=5;case 5:this.apiInstance.resetAggregatedServicesCache(),ce.label=6;case 6:return this.settingsV2.updateServicesLanguage(R),ie=this.dataFacadeInstance.getMergedServicesAndSettingsFromStorage(z),re=ie.mergedServices,oe=ie.mergedServicesData,ae=ie.mergedSettingsData,$.language.selected=R,ae.categories=this.settingsV2.mergeServicesDataIntoExistingCategories(oe),this.settingsV2.data=ae,(le=this.settingsV2.getDataTransferSettings())&&Ue.saveSettings(Ue.mapSettings(le,re),re),ot(ae)?[4,ae.changeLanguage(R,null===(P=this.settingsV2.legacySettings)||void 0===P?void 0:P.tcf2)]:[3,8];case 7:ce.sent(),ce.label=8;case 8:return[2]}})})},e.prototype.denyAllForTCF=function(R){return J(this,void 0,void 0,function(){var D;return X(this,function(P){switch(P.label){case 0:return(D=this.settingsV2.getTcfData())?[4,D.denyAllDisclosed(R)]:[3,2];case 1:P.sent(),P.label=2;case 2:return[2]}})})},e.prototype.denyAllServices=function(R){return void 0===R&&(R="explicit"),J(this,void 0,void 0,function(){return X(this,function(D){switch(D.label){case 0:return this.dataFacadeInstance.execute(this.settingsV2.getUpdatedServicesWithConsent(x.FALSE),this.settingsV2.getUpdatedServicesDataWithConsent(x.FALSE),"onDenyAllServices",R,{},this.initOptions.enableDeprecatedV1ConsentSaving),[4,this.saveUserActionPerformed()];case 1:return D.sent(),[2]}})})},e.prototype.fetchIsUserInEU=function(){return J(this,void 0,void 0,function(){return X(this,function(R){return[2,this.locationInstance.getIsUserInEU()]})})},e.prototype.fetchUserCountry=function(){return J(this,void 0,void 0,function(){return X(this,function(R){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 J(this,void 0,void 0,function(){var R;return X(this,function(D){switch(D.label){case 0:return[4,this.apiInstance.fetchTranslations()];case 1:return R=D.sent(),[2,this.settingsV2.getCategoriesFullInfo(this.uiInstance.variant,R)]}})})},e.prototype.getCcpaOptOutStatus=function(){var R;return(null===(R=this.settingsV2.getCcpaData())||void 0===R?void 0:R.getIsOptedOut())||!1},e.prototype.getCcpaExplicitNoticeStatus=function(){var R;return(null===(R=this.settingsV2.getCcpaData())||void 0===R?void 0:R.getExplicitNotice())||!1},e.prototype.saveOptOutForCcpa=function(R,D){return void 0===D&&(D="explicit"),J(this,void 0,void 0,function(){var P,k;return X(this,function(G){switch(G.label){case 0:return(P=this.settingsV2.getCcpaData())&&P.getIsOptedOut()!==R?(P.setCcpaStorage(R),k={consentAction:R?"onDenyAllServices":"onAcceptAllServices",consentStatus:R?x.FALSE:x.TRUE,consentString:{CCPA:Ue.getCcpaString()}},this.dataFacadeInstance.execute(this.settingsV2.getUpdatedServicesWithConsent(k.consentStatus),this.settingsV2.getUpdatedServicesDataWithConsent(k.consentStatus),k.consentAction,D,k.consentString,this.initOptions.enableDeprecatedV1ConsentSaving),[4,this.saveUserActionPerformed()]):[2];case 1:return G.sent(),[2]}})})},e.prototype.saveDefaultForCcpa=function(){return J(this,void 0,void 0,function(){var R,D,P;return X(this,function(x){switch(x.label){case 0:return R=this.settingsV2.getCcpaData(),D=Ue.getCcpaString(),R?[3,2]:(Ue.setCcpaTimeStamp(),[4,this.saveUserActionPerformed()]);case 1:case 3:return x.sent(),[2];case 2:return"-"===D[1]?(P=R.getIsOptedOut(),null==R||R.setCcpaStorage(P,br.ACCEPT),window.dispatchEvent(new Event(dn))):Ue.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 J(this,void 0,void 0,function(){var R;return X(this,function(D){switch(D.label){case 0:return[4,this.apiInstance.fetchTranslations()];case 1:return R=D.sent(),[2,this.settingsV2.getServicesFullInfo(this.uiInstance.variant,R)]}})})},e.prototype.getSettingsCore=function(){var R=this.settingsV2.core;if(!R)throw new Error("Usercentrics: You have to call the init method before!");return R},e.prototype.getSettingsLabels=function(){var R=this.settingsV2.labels;if(!R)throw new Error("Usercentrics: You have to call the init method before!");return R},e.prototype.getSettingsData=function(){var R=this.settingsV2.data;if(!R)throw new Error("Usercentrics: You have to call the init method before!");return R},e.prototype.getSettingsUI=function(){return this.settingsV2.ui},e.prototype.getAriaLabels=function(){var R,D;return ut(this.settingsV2.labels)&&null!=(null===(R=this.settingsV2.labels)||void 0===R?void 0:R.ariaLabels)?null===(D=this.settingsV2.labels)||void 0===D?void 0:D.ariaLabels:yt},e.prototype.getTCFData=function(){var R=this.settingsV2.getTcfData();return R?R.getTCFData():null},e.prototype.getGpcSignalHonoured=function(){var R;return null===(R=this.settingsV2.legacySettings)||void 0===R?void 0:R.gpcSignalHonoured},e.prototype.getActionTypePerformed=function(){return Ue.fetchActionTypePerformed()},e.prototype.getTCFDisclosedVendorsSegmentString=function(){return this.settingsV2.getTCFDisclosedVendorsSegmentString()},e.prototype.injectTCString=function(R){return this.settingsV2.injectTCString(R)},e.prototype.setTCFUIAsClosed=function(){return J(this,void 0,void 0,function(){var R;return X(this,function(D){switch(D.label){case 0:return(R=this.settingsV2.getTcfData())?[4,R.setUIAsClosed()]:[3,2];case 1:D.sent(),D.label=2;case 2:return[2]}})})},e.prototype.setGppDisplayHidden=function(){var R;return J(this,void 0,void 0,function(){return X(this,function(D){switch(D.label){case 0:return[4,null===(R=Cr.getInstance())||void 0===R?void 0:R.setCmpDisplayHidden()];case 1:return D.sent(),[2]}})})},e.prototype.setGppDisplayVisible=function(){var R;return J(this,void 0,void 0,function(){return X(this,function(D){switch(D.label){case 0:return[4,null===(R=Cr.getInstance())||void 0===R?void 0:R.setCmpDisplayVisible()];case 1:return D.sent(),[2]}})})},e.prototype.setTCFUIAsOpen=function(){return J(this,void 0,void 0,function(){var R;return X(this,function(D){switch(D.label){case 0:return(R=this.settingsV2.getTcfData())?[4,R.setUIAsOpen()]:[3,2];case 1:D.sent(),D.label=2;case 2:return[2]}})})},e.prototype.updateChoicesForTCF=function(R,D){return J(this,void 0,void 0,function(){var P;return X(this,function(x){switch(x.label){case 0:return(P=this.settingsV2.getTcfData())?[4,P.updateChoices(R,D)]:[3,2];case 1:x.sent(),x.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(R){var D,P;return J(this,void 0,void 0,function(){var x;return X(this,function(k){switch(k.label){case 0:return(null===(D=this.settingsV2.core)||void 0===D?void 0:D.consentAPIv2)&&!(null===(P=this.settingsV2.core)||void 0===P?void 0:P.consentXDevice)?(ie.CROSS_DEVICE_FEATURE_DISABLED,this.controllerIdInstance.needsSessionRestore=!1,[2]):(this.controllerIdInstance.value=R,this.controllerIdInstance.needsSessionRestore=!0,this.settingsV2.setControllerId(R),(x=this.settingsV2.dpsJson)?[4,this.dataFacadeInstance.restoreUserSession(x)]:[3,2]);case 1:k.sent()&&this.enableServicesScripts(this.processStorageServicesAndSettings(this.settingsV2.data),this.settingsV2.getGoogleConsentMode(),"onSessionRestored"),k.label=2;case 2:return[2]}})})},e.prototype.clearStorage=function(){return J(this,void 0,void 0,function(){return X(this,function(R){switch(R.label){case 0:return[4,Ue.clearAll()];case 1:return R.sent(),[2]}})})},e.prototype.postMessageAmp=function(x,k,G){return J(this,void 0,void 0,function(){var H,$,z,Y,W,ee,te,ne,ie=this;return X(this,function(re){switch(re.label){case 0:return H=this.settingsV2.isTcfAvailable(),[4,this.settingsV2.isCcpaAvailable()];case 1:return $=re.sent(),z=function(){var R=ie.settingsV2.getTcfData();return H&&(null==R?void 0:R.getTCString)?R.getTCString():$?Ue.getCcpaString():""},Y=function(){return J(ie,void 0,void 0,function(){var R,D,x,k;return X(this,function(G){switch(G.label){case 0:return k=this.settingsV2.getTcfData(),H&&k?(R=P.TCF_V2,[4,k.getGdprApplies()]):[3,2];case 1:return D=G.sent(),x=this.settingsV2.getTCFPurposeOneTreatment(),[3,3];case 2:$&&(R=P.CCPA),G.label=3;case 3:return[2,K({consentStringType:R},H&&{gdprApplies:D,purposeOne:x})]}})})},ee=[{action:k,type:x}],(te=x===R.CONSENT_RESPONSE&&k!==D.DISMISS&&($||H))?(ne={},[4,Y()]):[3,3];case 2:ne.consentMetadata=re.sent(),ne.info=z(),te=ne,re.label=3;case 3:return W=K.apply(void 0,[K.apply(void 0,ee.concat([te])),G&&{initialHeight:G}]),[2,new Promise(function(R,D){try{window.parent.postMessage(K({},W),"*"),R()}catch(R){D(R)}})]}})})},e.prototype.acceptAllAmp=function(){return J(this,void 0,void 0,function(){return X(this,function(P){switch(P.label){case 0:return[4,this.postMessageAmp(R.CONSENT_RESPONSE,D.ACCEPT)];case 1:return P.sent(),[2]}})})},e.prototype.denyAllAmp=function(){return J(this,void 0,void 0,function(){return X(this,function(P){switch(P.label){case 0:return[4,this.postMessageAmp(R.CONSENT_RESPONSE,D.REJECT)];case 1:return P.sent(),[2]}})})},e.prototype.saveTCFDataAmp=function(P){return J(this,void 0,void 0,function(){var x;return X(this,function(k){switch(k.label){case 0:return x=P.every(function(R){return R.status}),0===P.length||x?[4,this.postMessageAmp(R.CONSENT_RESPONSE,D.ACCEPT)]:[3,2];case 1:return k.sent(),[3,4];case 2:return[4,this.postMessageAmp(R.CONSENT_RESPONSE,D.REJECT)];case 3:k.sent(),k.label=4;case 4:return[2]}})})},e.prototype.dismissAmp=function(){return J(this,void 0,void 0,function(){return X(this,function(P){switch(P.label){case 0:return[4,this.postMessageAmp(R.CONSENT_RESPONSE,D.DISMISS)];case 1:return P.sent(),[2]}})})},e.prototype.enterFullscreenAmp=function(){return J(this,void 0,void 0,function(){return X(this,function(P){return[2,this.postMessageAmp(R.CONSENT_UI,D.FULLSCREEN)]})})},e.prototype.uiReadyAmp=function(){return J(this,void 0,void 0,function(){var P,x,k;return X(this,function(G){return P=this.settingsV2.labels,x="60vh",P&&ut(P)&&(k=P.firstLayer.description.default.length,window.screen.height>700&&k<=250&&(x="50vh")),[2,this.postMessageAmp(R.CONSENT_UI,D.READY,x)]})})},e.prototype.saveUserActionPerformed=function(){return J(this,void 0,void 0,function(){return X(this,function(R){switch(R.label){case 0:return Ue.setUserActionPerformed(!0),this.setIsConsentRequired(!1),this.uiInstance.selectedLayer?[4,this.settingsV2.initUI(this.uiInstance.selectedLayer,this.uiInstance.variant)]:[3,2];case 1:R.sent(),R.label=2;case 2:return[2]}})})},e.prototype.updateServices=function(R,D){return void 0===D&&(D="explicit"),J(this,void 0,void 0,function(){var P,x;return X(this,function(k){switch(k.label){case 0:return P=this.settingsV2.getUpdatedServicesWithDecisions(R),x=this.settingsV2.getUpdatedServicesDataWithDecisions(R),Ie(P)&&this.dataFacadeInstance.execute(P,x,"onUpdateServices",D,{},this.initOptions.enableDeprecatedV1ConsentSaving),[4,this.saveUserActionPerformed()];case 1:return k.sent(),[2]}})})},e.prototype.updateLayer=function(R){return J(this,void 0,void 0,function(){var D;return X(this,function(P){switch(P.label){case 0:return D=this.uiInstance.selectedLayer,this.uiInstance.selectedLayer=R,R===D?[2]:[4,this.settingsV2.initUI(R,this.uiInstance.variant)];case 1:return P.sent(),3!==R?[3,3]:[4,this.loadServices()];case 2:P.sent(),P.label=3;case 3:return[2]}})})},e.prototype.loadServices=function(){return J(this,void 0,void 0,function(){var R;return X(this,function(D){switch(D.label){case 0:return this.settingsV2.isAggregatorLoaded||!this.uiInstance.selectedLayer?[2]:[4,this.apiInstance.fetchTranslations()];case 1:return R=D.sent(),[4,this.settingsV2.extendServices(this.uiInstance.variant,R)];case 2:return D.sent(),this.apiInstance.resetAggregatedServicesCache(),[2]}})})},e.prototype.loadSettings=function(){return J(this,void 0,void 0,function(){var R;return X(this,function(D){switch(D.label){case 0:return[4,this.apiInstance.fetchSettingsJson()];case 1:return R=D.sent(),this.settingsV2.legacySettings=R,[2,R]}})})},e.prototype.updateStorage=function(R,D,P){return J(this,void 0,void 0,function(){var k,G,H;return X(this,function($){switch($.label){case 0:return[4,this.settingsV2.shouldDenyAllExplicitlyOnInit()];case 1:return $.sent()?(this.dataFacadeInstance.execute(this.settingsV2.getUpdatedServicesWithConsent(x.FALSE),this.settingsV2.getUpdatedServicesDataWithConsent(x.FALSE),"onDenyAllServices","explicit",{},this.initOptions.enableDeprecatedV1ConsentSaving),[4,this.settingsV2.shouldDenyAllOnInitFromGpc()]):[3,5];case 2:return $.sent()?[4,this.saveUserActionPerformed()]:[3,4];case 3:$.sent(),Ue.setActionTypePerformed("gpc"),$.label=4;case 4:return[3,10];case 5:return this.uiInstance.isFirstTimeVisit()?[4,this.settingsV2.shouldAcceptAllImplicitlyOnInit()]:[3,7];case 6:return $.sent()?this.dataFacadeInstance.execute(this.settingsV2.getUpdatedServicesWithConsent(x.TRUE),this.settingsV2.getUpdatedServicesDataWithConsent(x.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 k=null!=D?D:this.processStorageServicesAndSettings(this.settingsV2.data),z=this.settingsV2.getServicesData(),(G=(Y=R)&&!z.every(function(R){return Y.find(function(D){return D.id===R.id})})||!1)?[4,this.settingsV2.shouldAcceptAllImplicitlyOnVendorAdded()]:[3,9];case 8:G=$.sent(),$.label=9;case 9:G?this.dataFacadeInstance.execute(this.settingsV2.getUpdatedServicesWithConsent(x.TRUE),this.settingsV2.getUpdatedServicesDataWithConsent(x.TRUE),"onNonEURegion",this.botInstance.isRobot()?"explicit":"implicit",{},this.initOptions.enableDeprecatedV1ConsentSaving):(H=P&&this.dataFacadeInstance.restoreAction?this.dataFacadeInstance.restoreAction:"onInitialPageLoad",this.enableServicesScripts(k,this.settingsV2.getGoogleConsentMode(),H),this.dataFacadeInstance.restoreAction=null),$.label=10;case 10:return[2]}var z,Y})})},e.prototype.enableScriptsForServicesWithConsent=function(){Pn.enableScriptsForServicesWithConsent(this.settingsV2.getServicesWithConsent())},e.prototype.setTrackingPixel=function(R){var D;!this.initOptions.disableTracking&&(null===(D=this.settingsV2.coreJson)||void 0===D?void 0:D.interactionAnalytics)&&this.apiInstance.setTrackingPixel(R)},e.prototype.addSessionTrackingPixel=function(){(new Image).src=this.apiInstance.createSessionTrackingUrl()},e.prototype.processStorageServicesAndSettings=function(R){if(!R||!this.settingsV2.labels)return[];var D=this.dataFacadeInstance.getMergedServicesAndSettingsFromStorage(R),P=D.dataTransferSettings,x=D.mergedServicesData,k=D.mergedServices,G=D.updatedEssentialServices;return this.dataFacadeInstance.mergeServicesAndSettings(k,x,P,G,this.settingsV2.labels.services,this.initOptions.enableDeprecatedV1ConsentSaving)},e.prototype.enableServicesScripts=function(R,D,P){var x,k=this.settingsV2.getTcfData();k&&k.advertiserConsentModeEnabled&&(x=k.getTCFData().vendors.find(function(R){return 755===R.id})),Pn.enableScriptsForServicesWithConsent(this.settingsV2.getServicesWithConsent()),this.eventDispatcherInstance.dispatch(R,x,D,P)},e.prototype.setIsConsentRequired=function(R){this.isConsentRequired=!0===R},e.prototype.getIsConsentRequired=function(){return this.isConsentRequired},e.prototype.getThirdPartyCount=function(){return this.settingsV2.getThirdPartyCount()},e.prototype.getAddVendorCount=function(){var R,D;return(null===(D=null===(R=this.settingsV2.legacySettings)||void 0===R?void 0:R.gdpr)||void 0===D?void 0:D.addVendorCount)||!1},e}(),Aa={},wa=[],Oa=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,La=Array.isArray;function Zs(R,D){for(var P in D)R[P]=D[P];return R}function ea(R){R&&R.parentNode&&R.parentNode.removeChild(R)}function ta(R,D,P){var x,k,G,H={};for(G in D)"key"==G?x=D[G]:"ref"==G?k=D[G]:H[G]=D[G];if(arguments.length>2&&(H.children=arguments.length>3?Fs.call(arguments,2):P),"function"==typeof R&&null!=R.defaultProps)for(G in R.defaultProps)void 0===H[G]&&(H[G]=R.defaultProps[G]);return na(R,H,x,k,null)}function na(R,D,P,x,k){var G={type:R,props:D,key:P,ref:x,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==k?++Gs:k,__i:-1,__u:0};return null==k&&null!=Bs.vnode&&Bs.vnode(G),G}function ia(R){return R.children}function ra(R,D){this.props=R,this.context=D}function oa(R,D){if(null==D)return R.__?oa(R.__,R.__i+1):null;for(var P;D$&&$s.sort(Ys),R=$s.shift(),$=$s.length,R.__d&&(P=void 0,x=void 0,k=(x=(D=R).__v).__e,G=[],H=[],D.__P&&((P=Zs({},x)).__v=x.__v+1,Bs.vnode&&Bs.vnode(P),va(D.__P,P,x,D.__n,D.__P.namespaceURI,32&x.__u?[k]:null,G,null==k?oa(x):k,!!(32&x.__u),H),P.__v=x.__v,P.__.__k[P.__i]=P,Sa(G,P,H),x.__e=x.__=null,P.__e!=k&&sa(P)));la.__r=0}function ca(R,D,P,x,k,G,H,$,z,Y,W){var ee,te,ne,ie,re,oe,ae,le=x&&x.__k||wa,ce=D.length;for(z=function(R,D,P,x,k){var G,H,$,z,Y,W=P.length,ee=W,te=0;for(R.__k=new Array(k),G=0;G0?H=R.__k[G]=na(H.type,H.props,H.key,H.ref?H.ref:null,H.__v):R.__k[G]=H,z=G+te,H.__=R,H.__b=R.__b+1,-1!=(Y=H.__i=pa(H,P,z,ee))&&(ee--,($=P[Y])&&($.__u|=2)),null==$||null==$.__v?(-1==Y&&(k>W?te--:kz?te--:te++,H.__u|=4))):R.__k[G]=null;if(ee)for(G=0;G(W?1:0))for(k=P-1,G=P+1;k>=0||G=0?k--:G++])&&!(2&Y.__u)&&$==Y.key&&z==Y.type)return H;return-1}function ha(R,D,P){"-"==D[0]?R.setProperty(D,null==P?"":P):R[D]=null==P?"":"number"!=typeof P||Oa.test(D)?P:P+"px"}function ga(R,D,P,x,k){var G,H;e:if("style"==D)if("string"==typeof P)R.style.cssText=P;else{if("string"==typeof x&&(R.style.cssText=x=""),x)for(D in x)P&&D in P||ha(R.style,D,"");if(P)for(D in P)x&&P[D]==x[D]||ha(R.style,D,P[D])}else if("o"==D[0]&&"n"==D[1])G=D!=(D=D.replace(Ws,"$1")),H=D.toLowerCase(),D=H in R||"onFocusOut"==D||"onFocusIn"==D?H.slice(2):D.slice(2),R.l||(R.l={}),R.l[D+G]=P,P?x?P.u=x.u:(P.u=Js,R.addEventListener(D,G?Ks:Xs,G)):R.removeEventListener(D,G?Ks:Xs,G);else{if("http://www.w3.org/2000/svg"==k)D=D.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=D&&"height"!=D&&"href"!=D&&"list"!=D&&"form"!=D&&"tabIndex"!=D&&"download"!=D&&"rowSpan"!=D&&"colSpan"!=D&&"role"!=D&&"popover"!=D&&D in R)try{R[D]=null==P?"":P;break e}catch(R){}"function"==typeof P||(null==P||!1===P&&"-"!=D[4]?R.removeAttribute(D):R.setAttribute(D,"popover"==D&&1==P?"":P))}}function fa(R){return function(D){if(this.l){var P=this.l[D.type+R];if(null==D.t)D.t=Js++;else if(D.t0?R:La(R)?R.map(ba):Zs({},R)}function ya(R,D,P){try{if("function"==typeof R){var x="function"==typeof R.__u;x&&R.__u(),x&&null==D||(R.__u=R(D))}else R.current=D}catch(R){Bs.__e(R,P)}}function Ea(R,D,P){var x,k;if(Bs.unmount&&Bs.unmount(R),(x=R.ref)&&(x.current&&x.current!=R.__e||ya(x,null,D)),null!=(x=R.__c)){if(x.componentWillUnmount)try{x.componentWillUnmount()}catch(R){Bs.__e(R,D)}x.base=x.__P=null}if(x=R.__k)for(k=0;k2&&($.children=arguments.length>3?Fs.call(arguments,2):P),na(R.type,$,x||R.key,k||R.ref,null)}function _a(R){function t(R){var D,P;return this.getChildContext||(D=new Set,(P={})[t.__c]=this,this.getChildContext=function(){return P},this.componentWillUnmount=function(){D=null},this.shouldComponentUpdate=function(R){this.props.value!=R.value&&D.forEach(function(R){R.__e=!0,aa(R)})},this.sub=function(R){D.add(R);var P=R.componentWillUnmount;R.componentWillUnmount=function(){D&&D.delete(R),P&&P.call(R)}}),R.children}return t.__c="__cC"+qs++,t.__=R,t.Provider=t.__l=(t.Consumer=function(R,D){return R.children(D)}).contextType=t,t}Fs=wa.slice,Bs={__e:function(R,D,P,x){for(var k,G,H;D=D.__;)if((k=D.__c)&&!k.__)try{if((G=k.constructor)&&null!=G.getDerivedStateFromError&&(k.setState(G.getDerivedStateFromError(R)),H=k.__d),null!=k.componentDidCatch&&(k.componentDidCatch(R,x||{}),H=k.__d),H)return k.__E=k}catch(D){R=D}throw R}},Gs=0,Hs=function(R){return null!=R&&null==R.constructor},ra.prototype.setState=function(R,D){var P;P=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=Zs({},this.state),"function"==typeof R&&(R=R(Zs({},P),this.props)),R&&Zs(P,R),null!=R&&this.__v&&(D&&this._sb.push(D),aa(this))},ra.prototype.forceUpdate=function(R){this.__v&&(this.__e=!0,R&&this.__h.push(R),aa(this))},ra.prototype.render=ia,$s=[],js="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ys=function(R,D){return R.__v.__b-D.__v.__b},la.__r=0,Ws=/(PointerCapture)$|Capture$/i,Js=0,Xs=fa(!1),Ks=fa(!0),qs=0;var Na,Ra,Da,Pa,xa=0,ka=[],Va=Bs,Ua=Va.__b,Ma=Va.__r,Ja=Va.diffed,ol=Va.__c,sl=Va.unmount,ll=Va.__;function Fa(R,D){Va.__h&&Va.__h(Ra,R,xa||D),xa=0;var P=Ra.__H||(Ra.__H={__:[],__h:[]});return R>=P.__.length&&P.__.push({}),P.__[R]}function Ba(R){return xa=1,function Ga(R,D,P){var x=Fa(Na++,2);if(x.t=R,!x.__c&&(x.__=[P?P(D):el(void 0,D),function(R){var D=x.__N?x.__N[0]:x.__[0],P=x.t(D,R);D!==P&&(x.__N=[P,x.__[1]],x.__c.setState({}))}],x.__c=Ra,!Ra.__f)){var r=function(R,D,P){if(!x.__c.__H)return!0;var G=x.__c.__H.__.filter(function(R){return!!R.__c});if(G.every(function(R){return!R.__N}))return!k||k.call(this,R,D,P);var H=x.__c.props!==R;return G.forEach(function(R){if(R.__N){var D=R.__[0];R.__=R.__N,R.__N=void 0,D!==R.__[0]&&(H=!0)}}),k&&k.call(this,R,D,P)||H};Ra.__f=!0;var k=Ra.shouldComponentUpdate,G=Ra.componentWillUpdate;Ra.componentWillUpdate=function(R,D,P){if(this.__e){var x=k;k=void 0,r(R,D,P),k=x}G&&G.call(this,R,D,P)},Ra.shouldComponentUpdate=r}return x.__N||x.__}(el,R)}function Ha(R,D){var P=Fa(Na++,3);!Va.__s&&Za(P.__H,D)&&(P.__=R,P.u=D,Ra.__H.__h.push(P))}function $a(R,D){var P=Fa(Na++,4);!Va.__s&&Za(P.__H,D)&&(P.__=R,P.u=D,Ra.__h.push(P))}function za(R){return xa=5,ja(function(){return{current:R}},[])}function ja(R,D){var P=Fa(Na++,7);return Za(P.__H,D)&&(P.__=R(),P.__H=D,P.__h=R),P.__}function Ya(R,D){return xa=8,ja(function(){return R},D)}function Wa(R){var D=Ra.context[R.__c],P=Fa(Na++,9);return P.c=R,D?(null==P.__&&(P.__=!0,D.sub(Ra)),D.props.value):R.__}function Ka(){for(var R;R=ka.shift();)if(R.__P&&R.__H)try{R.__H.__h.forEach(qa),R.__H.__h.forEach(Qa),R.__H.__h=[]}catch(D){R.__H.__h=[],Va.__e(D,R.__v)}}Va.__b=function(R){Ra=null,Ua&&Ua(R)},Va.__=function(R,D){R&&D.__k&&D.__k.__m&&(R.__m=D.__k.__m),ll&&ll(R,D)},Va.__r=function(R){Ma&&Ma(R),Na=0;var D=(Ra=R.__c).__H;D&&(Da===Ra?(D.__h=[],Ra.__h=[],D.__.forEach(function(R){R.__N&&(R.__=R.__N),R.u=R.__N=void 0})):(D.__h.forEach(qa),D.__h.forEach(Qa),D.__h=[],Na=0)),Da=Ra},Va.diffed=function(R){Ja&&Ja(R);var D=R.__c;D&&D.__H&&(D.__H.__h.length&&(1!==ka.push(D)&&Pa===Va.requestAnimationFrame||((Pa=Va.requestAnimationFrame)||Xa)(Ka)),D.__H.__.forEach(function(R){R.u&&(R.__H=R.u),R.u=void 0})),Da=Ra=null},Va.__c=function(R,D){D.some(function(R){try{R.__h.forEach(qa),R.__h=R.__h.filter(function(R){return!R.__||Qa(R)})}catch(P){D.some(function(R){R.__h&&(R.__h=[])}),D=[],Va.__e(P,R.__v)}}),ol&&ol(R,D)},Va.unmount=function(R){sl&&sl(R);var D,P=R.__c;P&&P.__H&&(P.__H.__.forEach(function(R){try{qa(R)}catch(R){D=R}}),P.__H=void 0,D&&Va.__e(D,P.__v))};var cl="function"==typeof requestAnimationFrame;function Xa(R){var D,n=function(){clearTimeout(P),cl&&cancelAnimationFrame(D),setTimeout(R)},P=setTimeout(n,35);cl&&(D=requestAnimationFrame(n))}function qa(R){var D=Ra,P=R.__c;"function"==typeof P&&(R.__c=void 0,P()),Ra=D}function Qa(R){var D=Ra;R.__c=R.__(),Ra=D}function Za(R,D){return!R||R.length!==D.length||D.some(function(D,P){return D!==R[P]})}function el(R,D){return"function"==typeof D?D(R):D}function tl(R,D){for(var P in D)R[P]=D[P];return R}function nl(R,D){for(var P in R)if("__source"!==P&&!(P in D))return!0;for(var x in D)if("__source"!==x&&R[x]!==D[x])return!0;return!1}function il(R,D){this.props=R,this.context=D}function rl(R,D){function n(R){var P=this.props.ref,x=P==R.ref;return!x&&P&&(P.call?P(null):P.current=null),D?!D(this.props,R)||!x:nl(this.props,R)}function i(D){return this.shouldComponentUpdate=n,ta(R,D)}return i.displayName="Memo("+(R.displayName||R.name)+")",i.prototype.isReactComponent=!0,i.__f=!0,i.type=R,i}(il.prototype=new ra).isPureReactComponent=!0,il.prototype.shouldComponentUpdate=function(R,D){return nl(this.props,R)||nl(this.state,D)};var yl=Bs.__b;Bs.__b=function(R){R.type&&R.type.__f&&R.ref&&(R.props.ref=R.ref,R.ref=null),yl&&yl(R)};var El="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function al(R){function t(D){var P=tl({},D);return delete P.ref,R(P,D.ref||null)}return t.$$typeof=El,t.render=R,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(R.displayName||R.name)+")",t}var Cl=Bs.__e;Bs.__e=function(R,D,P,x){if(R.then)for(var k,G=D;G=G.__;)if((k=G.__c)&&k.__c)return null==D.__e&&(D.__e=P.__e,D.__k=P.__k),k.__c(R,D);Cl(R,D,P,x)};var Tl=Bs.unmount;function ul(R,D,P){return R&&(R.__c&&R.__c.__H&&(R.__c.__H.__.forEach(function(R){"function"==typeof R.__c&&R.__c()}),R.__c.__H=null),null!=(R=tl({},R)).__c&&(R.__c.__P===P&&(R.__c.__P=D),R.__c.__e=!0,R.__c=null),R.__k=R.__k&&R.__k.map(function(R){return ul(R,D,P)})),R}function dl(R,D,P){return R&&P&&(R.__v=null,R.__k=R.__k&&R.__k.map(function(R){return dl(R,D,P)}),R.__c&&R.__c.__P===D&&(R.__e&&P.appendChild(R.__e),R.__c.__e=!0,R.__c.__P=P)),R}function pl(){this.__u=0,this.o=null,this.__b=null}function hl(R){var D=R.__.__c;return D&&D.__a&&D.__a(R)}function gl(R){var D,P,x,k=null;function o(G){if(D||(D=R()).then(function(R){R&&(k=R.default||R),x=!0},function(R){P=R,x=!0}),P)throw P;if(!x)throw D;return k?ta(k,G):null}return o.displayName="Lazy",o.__f=!0,o}function fl(){this.i=null,this.l=null}Bs.unmount=function(R){var D=R.__c;D&&D.__R&&D.__R(),D&&32&R.__u&&(R.type=null),Tl&&Tl(R)},(pl.prototype=new ra).__c=function(R,D){var P=D.__c,x=this;null==x.o&&(x.o=[]),x.o.push(P);var k=hl(x.__v),G=!1,s=function(){G||(G=!0,P.__R=null,k?k(a):a())};P.__R=s;var a=function(){if(! --x.__u){if(x.state.__a){var R=x.state.__a;x.__v.__k[0]=dl(R,R.__c.__P,R.__c.__O)}var D;for(x.setState({__a:x.__b=null});D=x.o.pop();)D.forceUpdate()}};x.__u++||32&D.__u||x.setState({__a:x.__b=x.__v.__k[0]}),R.then(s,s)},pl.prototype.componentWillUnmount=function(){this.o=[]},pl.prototype.render=function(R,D){if(this.__b){if(this.__v.__k){var P=document.createElement("div"),x=this.__v.__k[0].__c;this.__v.__k[0]=ul(this.__b,P,x.__O=x.__P)}this.__b=null}var k=D.__a&&ta(ia,null,R.fallback);return k&&(k.__u&=-33),[ta(ia,null,D.__a?null:R.children),k]};var vl=function(R,D,P){if(++P[1]===P[0]&&R.l.delete(D),R.props.revealOrder&&("t"!==R.props.revealOrder[0]||!R.l.size))for(P=R.i;P;){for(;P.length>3;)P.pop()();if(P[1]>>1,1),D.h.removeChild(R)}}}Ta(ta(ml,{context:D.context},R.__v),D.v)}(fl.prototype=new ra).__a=function(R){var D=this,P=hl(D.__v),x=D.l.get(R);return x[0]++,function(k){var o=function(){D.props.revealOrder?(x.push(k),vl(D,R,x)):k()};P?P(o):o()}},fl.prototype.render=function(R){this.i=null,this.l=new Map;var D=da(R.children);R.revealOrder&&"b"===R.revealOrder[0]&&D.reverse();for(var P=D.length;P--;)this.l.set(D[P],this.i=[1,0,this.i]);return R.children},fl.prototype.componentDidUpdate=fl.prototype.componentDidMount=function(){var R=this;this.l.forEach(function(D,P){vl(R,P,D)})};var Il="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Al=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Nl=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Rl=/[A-Z0-9]/g,Dl="undefined"!=typeof document,_l=function(R){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(R)};ra.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(R){Object.defineProperty(ra.prototype,R,{configurable:!0,get:function(){return this["UNSAFE_"+R]},set:function(D){Object.defineProperty(this,R,{configurable:!0,writable:!0,value:D})}})});var Pl=Bs.event;function wl(){}function Ol(){return this.cancelBubble}function Ll(){return this.defaultPrevented}Bs.event=function(R){return Pl&&(R=Pl(R)),R.persist=wl,R.isPropagationStopped=Ol,R.isDefaultPrevented=Ll,R.nativeEvent=R};var xl={enumerable:!1,configurable:!0,get:function(){return this.class}},kl=Bs.vnode;Bs.vnode=function(R){"string"==typeof R.type&&function(R){var D=R.props,P=R.type,x={},k=-1===P.indexOf("-");for(var G in D){var H=D[G];if(!("value"===G&&"defaultValue"in D&&null==H||Dl&&"children"===G&&"noscript"===P||"class"===G||"className"===G)){var $=G.toLowerCase();"defaultValue"===G&&"value"in D&&null==D.value?G="value":"download"===G&&!0===H?H="":"translate"===$&&"no"===H?H=!1:"o"===$[0]&&"n"===$[1]?"ondoubleclick"===$?G="ondblclick":"onchange"!==$||"input"!==P&&"textarea"!==P||_l(D.type)?"onfocus"===$?G="onfocusin":"onblur"===$?G="onfocusout":Nl.test(G)&&(G=$):$=G="oninput":k&&Al.test(G)?G=G.replace(Rl,"-$&").toLowerCase():null===H&&(H=void 0),"oninput"===$&&x[G=$]&&(G="oninputCapture"),x[G]=H}}"select"==P&&x.multiple&&Array.isArray(x.value)&&(x.value=da(D.children).forEach(function(R){R.props.selected=-1!=x.value.indexOf(R.props.value)})),"select"==P&&null!=x.defaultValue&&(x.value=da(D.children).forEach(function(R){R.props.selected=x.multiple?-1!=x.defaultValue.indexOf(R.props.value):x.defaultValue==R.props.value})),D.class&&!D.className?(x.class=D.class,Object.defineProperty(x,"className",xl)):(D.className&&!D.class||D.class&&D.className)&&(x.class=x.className=D.className),R.props=x}(R),R.$$typeof=Il,kl&&kl(R)};var Vl=Bs.__r;Bs.__r=function(R){Vl&&Vl(R),R.__c};var Ul=Bs.diffed;Bs.diffed=function(R){Ul&&Ul(R);var D=R.props,P=R.__e;null!=P&&"textarea"===R.type&&"value"in D&&D.value!==P.value&&(P.value=null==D.value?"":D.value)};var Ml=ta,Fl=_a,Bl=ra,Gl=al,Hl={exports:{}},$l={},zl=60103,jl=60106,Yl=60107,Wl=60108,Jl=60114,Xl=60109,Kl=60110,ql=60112,Ql=60113,Zl=60120,ec=60115,tc=60116,nc=60121,ic=60122,oc=60117,sc=60129,ac=60131;if("function"==typeof Symbol&&Symbol.for){var lc=Symbol.for;zl=lc("react.element"),jl=lc("react.portal"),Yl=lc("react.fragment"),Wl=lc("react.strict_mode"),Jl=lc("react.profiler"),Xl=lc("react.provider"),Kl=lc("react.context"),ql=lc("react.forward_ref"),Ql=lc("react.suspense"),Zl=lc("react.suspense_list"),ec=lc("react.memo"),tc=lc("react.lazy"),nc=lc("react.block"),ic=lc("react.server.block"),oc=lc("react.fundamental"),sc=lc("react.debug_trace_mode"),ac=lc("react.legacy_hidden")}function rc(R){if("object"==typeof R&&null!==R){var D=R.$$typeof;switch(D){case zl:switch(R=R.type){case Yl:case Jl:case Wl:case Ql:case Zl:return R;default:switch(R=R&&R.$$typeof){case Kl:case ql:case tc:case ec:case Xl:return R;default:return D}}case jl:return D}}}var cc=Xl,uc=zl,dc=ql,pc=Yl,hc=tc,gc=ec,vc=jl,Sc=Jl,bc=Wl,yc=Ql;function fc(R){function t(R,x,k,G,H){for(var $,ee,ne,ie,re,oe=0,ae=0,he=0,fe=0,me=0,ye=0,Ee=ne=$=0,Re=0,De=0,Pe=0,xe=0,ke=k.length,Ve=ke-1,Ue="",Me="",Fe="",Be="";Re$)&&(xe=(Ue=Ue.replace(" ",":")).length),0x&&(x=(D=D.trim()).charCodeAt(0)),x){case 38:return D.replace($,"$1"+R.trim());case 58:return R.trim()+D.replace($,"$1"+R.trim());default:if(0<1*P&&0Y.charCodeAt(8))break;case 115:$=$.replace(Y,"-webkit-"+Y)+";"+$;break;case 207:case 102:$=$.replace(Y,"-webkit-"+(102P.charCodeAt(0)&&(P=P.trim()),P=[P],01?D-1:0),x=1;x0?" Args: "+P.join(", "):""))}var Eu=function(){function e(R){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=R}var R=e.prototype;return R.indexOfGroup=function(R){for(var D=0,P=0;P=this.groupSizes.length){for(var P=this.groupSizes,x=P.length,k=x;R>=k;)(k<<=1)<0&&hu(16,""+R);this.groupSizes=new Uint32Array(k),this.groupSizes.set(P),this.length=k;for(var G=x;G=this.length||0===this.groupSizes[R])return D;for(var P=this.groupSizes[R],x=this.indexOfGroup(R),k=x+P,G=x;G=wu&&(wu=D+1),Cu.set(R,D),Au.set(D,R)},Ou="style["+fu+'][data-styled-version="5.3.11"]',Lu=new RegExp("^"+fu+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Tu=function(R,D,P){for(var x,k=P.split(","),G=0,H=k.length;G=0;P--){var x=D[P];if(x&&1===x.nodeType&&x.hasAttribute(fu))return x}}(P),G=void 0!==k?k.nextSibling:null;x.setAttribute(fu,"active"),x.setAttribute("data-styled-version","5.3.11");var H="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return H&&x.setAttribute("nonce",H),P.insertBefore(x,G),x},Nu=function(){function e(R){var D=this.element=_u(R);D.appendChild(document.createTextNode("")),this.sheet=function(R){if(R.sheet)return R.sheet;for(var D=document.styleSheets,P=0,x=D.length;P=0){var P=document.createTextNode(D),x=this.nodes[R];return this.element.insertBefore(P,x||null),this.length++,!0}return!1},R.deleteRule=function(R){this.element.removeChild(this.nodes[R]),this.length--},R.getRule=function(R){return R0&&(Y+=R+",")}),x+=""+$+z+'{content:"'+Y+'"}/*!sc*/\n'}}}return x}(this)},e}(),Bu=/(a)(d)/gi,Pu=function(R){return String.fromCharCode(R+(R>25?39:97))};function xu(R){var D,P="";for(D=Math.abs(R);D>52;D=D/52|0)P=Pu(D%52)+P;return(Pu(D%52)+P).replace(Bu,"$1-$2")}var ku=function(R,D){for(var P=D.length;P;)R=33*R^D.charCodeAt(--P);return R},Vu=function(R){return ku(5381,R)},Hu=Vu("5.3.11"),$u=function(){function e(R,D,P){this.rules=R,this.staticRulesId="",this.isStatic=(void 0===P||P.isStatic)&&function(R){for(var D=0;D>>0);if(!D.hasNameForId(x,H)){var $=P(G,"."+H,void 0,x);D.insertRules(x,H,$)}k.push(H),this.staticRulesId=H}else{for(var z=this.rules.length,Y=ku(this.baseHash,P.hash),W="",ee=0;ee>>0);if(!D.hasNameForId(x,re)){var oe=P(W,"."+re,void 0,x);D.insertRules(x,re,oe)}k.push(re)}}return k.join(" ")},e}(),zu=/^\s*\/\/.*$/gm,ju=[":","[",".","#"];function Gu(R){var D,P,x,k,G=void 0===R?gu:R,H=G.options,$=void 0===H?gu:H,z=G.plugins,Y=void 0===z?pu:z,W=new fc($),ee=[],te=function(R){function t(D){if(D)try{R(D+"}")}catch(R){}}return function(D,P,x,k,G,H,$,z,Y,W){switch(D){case 1:if(0===Y&&64===P.charCodeAt(0))return R(P+";"),"";break;case 2:if(0===z)return P+"/*|*/";break;case 3:switch(z){case 102:case 112:return R(x[0]+P),"";default:return P+(0===W?"/*|*/":"")}case-2:P.split("/*|*/}").forEach(t)}}}(function(R){ee.push(R)}),h=function(R,x,G){return 0===x&&-1!==ju.indexOf(G[P.length])||G.match(k)?R:"."+D};function g(R,G,H,$){void 0===$&&($="&");var z=R.replace(zu,""),Y=G&&H?H+" "+G+" { "+z+" }":z;return D=$,P=G,x=new RegExp("\\"+P+"\\b","g"),k=new RegExp("(\\"+P+"\\b){2,}"),W(H||!G?"":G,Y)}return W.use([].concat(Y,[function(R,D,k){2===R&&k.length&&k[0].lastIndexOf(P)>0&&(k[0]=k[0].replace(x,h))},te,function(R){if(-2===R){var D=ee;return ee=[],D}}])),g.hash=Y.length?Y.reduce(function(R,D){return D.name||hu(15),ku(R,D.name)},5381).toString():"",g}var Ju=Fl();Ju.Consumer;var Xu=Fl(),Ku=(Xu.Consumer,new Fu),qu=Gu();function Yu(){return Wa(Ju)||Ku}function Wu(R){var D=Ba(R.stylisPlugins),P=D[0],x=D[1],k=Yu(),G=ja(function(){var D=k;return R.sheet?D=R.sheet:R.target&&(D=D.reconstructWithOptions({target:R.target},!1)),R.disableCSSOMInjection&&(D=D.reconstructWithOptions({useCSSOMInjection:!1})),D},[R.disableCSSOMInjection,R.sheet,R.target]),H=ja(function(){return Gu({options:{prefix:!R.disableVendorPrefixes},plugins:P})},[R.disableVendorPrefixes,P]);return Ha(function(){(function(R,D){var P=void 0;if(void 0!==P)return!!P;if(R===D)return!0;if("object"!=typeof R||!R||"object"!=typeof D||!D)return!1;var x=Object.keys(R),k=Object.keys(D);if(x.length!==k.length)return!1;for(var G=Object.prototype.hasOwnProperty.bind(D),H=0;H1?D-1:0),x=1;x?@[\\\]^`{|}~-]+/g,Ed=/(^-|-$)/g;function sd(R){return R.replace(yd,"-").replace(Ed,"")}var ad=function(R){return xu(Vu(R)>>>0)};function ld(R){return"string"==typeof R&&!0}var cd=function(R){return"function"==typeof R||"object"==typeof R&&null!==R&&!Array.isArray(R)},ud=function(R){return"__proto__"!==R&&"constructor"!==R&&"prototype"!==R};function dd(R,D,P){var x=R[P];cd(D)&&cd(x)?pd(x,D):R[P]=D}function pd(R){for(var D=arguments.length,P=new Array(D>1?D-1:0),x=1;x=0||(k[P]=R[P]);return k}(D,["componentId"]),G=x&&x+"-"+(ld(R)?R:sd(lu(R)));return vd(R,nu({},k,{attrs:te,componentId:G}),P)},Object.defineProperty(ie,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(D){this._foldedDefaultProps=x?pd({},R.defaultProps,D):D}}),Object.defineProperty(ie,"toString",{value:function(){return"."+ie.styledComponentId}}),k&&du(ie,R,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),ie}var md=function(R){return function e(R,D,P){if(void 0===P&&(P=gu),!Hl.exports.isValidElementType(D))return hu(1,String(D));var r=function(){return R(D,P,id.apply(void 0,arguments))};return r.withConfig=function(x){return e(R,D,nu({},P,{},x))},r.attrs=function(x){return e(R,D,nu({},P,{attrs:Array.prototype.concat(P.attrs,x).filter(Boolean)}))},r}(vd,R)};function Sd(R){for(var D=arguments.length,P=new Array(D>1?D-1:0),x=1;x{try{const{clientConfig:R}=JSON.parse(window.name);return R}catch(R){Md.CLIENT_CONFIG_NOT_AVAILABLE}return null},jd=R=>{const D=R.replace(/\s+/g,""),P=R.match(/[^\r\n]+/g);if(P?.reduce((R,D)=>R+D.replace(/\s+/g,"").length,0)!==D.length)return R;const x=[{bulletPoints:[],title:""}];let k=0;return P&&(P.forEach((R,D)=>{R.startsWith("*")?x[k].bulletPoints.push(" "===R.substr(1,1)?R.substr(2):R.substr(1)):(D>0&&(k+=1),x[k]={bulletPoints:[],title:R})}),x.reduce((R,D)=>R+D.title.replace(/\s|\u002a+/g,"").length+D.bulletPoints.reduce((R,D)=>R+D.replace(/\s|\u002a+/g,"").length,0),0)===D.replace(/\u002a+/g,"").length)?x:R},Yd=R=>/\S+@\S+\.\S+/.test(R),Wd=(R,D)=>{switch(R){case $.BANNER:return{layerPlacement:"in-app-browser"===$d().type?Zd.CENTER:Zd.BOTTOM,testId:D.firstLayerBanner};case $.WALL:return{layerPlacement:Zd.CENTER,testId:D.firstLayerWall};case z.CENTER:return{layerPlacement:Zd.CENTER,testId:D.secondLayer};case z.SIDE:return{layerPlacement:Zd.SIDE,testId:D.secondLayer};default:return{layerPlacement:null,testId:""}}},Kd=R=>null!=R&&"object"==typeof R,Jd=(R,D)=>{const P=Object.keys(R),x=Object.keys(D);if(P.length!==x.length)return!1;for(const x of P){const P=R[x],k=D[x],G=Kd(P)&&Kd(k);if(G&&!Jd(P,k)||!G&&P!==k)return!1}return!0},Xd=(R,D,P,x)=>{const k={source:R===Vd.NONE||R===Vd.PRIVACY_BUTTON&&D!==kd.CMP_SHOWN?xd.API:R,type:D};P&&P.length&&(k.abTestVariant=P);const G=new window.CustomEvent(Ud.ANALYTICS,{detail:k});window.dispatchEvent(G);let H=(R=>{switch(R){case kd.CMP_SHOWN:return Is.CMP_SHOWN;case kd.ACCEPT_ALL:return Is.ACCEPT_ALL;case kd.DENY_ALL:return Is.DENY_ALL;case kd.SAVE:return Is.SAVE;case kd.COOKIE_POLICY_LINK:return Is.COOKIE_POLICY_LINK;case kd.IMPRINT_LINK:return Is.IMPRINT_LINK;case kd.MORE_INFORMATION_LINK:return Is.MORE_INFORMATION_LINK;case kd.PRIVACY_POLICY_LINK:return Is.PRIVACY_POLICY_LINK;case kd.INTEGRATIONS_LINK:return Is.SAY_MINE_LINK;case kd.CCPA_TOGGLES_ON:return Is.CCPA_TOGGLES_ON;case kd.CCPA_TOGGLES_OFF:return Is.CCPA_TOGGLES_OFF;default:return Is.UNDEFINED}})(D),$=0;H>1&&H<5&&(R===Vd.FIRST_LAYER?$=3:R===Vd.SECOND_LAYER&&($=6)),H+=$,x({abTestVariant:P,eventType:H})},tp="BlinkMacSystemFont, -apple-system, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, Helvetica, Arial, sans-serif",np="hsl(0.0, 0%, 19%)",ip="#ffffff",cp="#0045A5",hp=ip,gp=ip,fp={lg:992,md:768,sm:600,xl:1200,xs:400,xxl:1472,xxxl:1e4};function rp(){return rp=Object.assign?Object.assign.bind():function(R){for(var D=1;D=0&&k<1?($=G,z=H):k>=1&&k<2?($=H,z=G):k>=2&&k<3?(z=G,Y=H):k>=3&&k<4?(z=H,Y=G):k>=4&&k<5?($=H,Y=G):k>=5&&k<6&&($=G,Y=H);var W=P-G/2;return x($+W,z+W,Y+W)}var mp={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"2fe6de",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"2fe6de",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Sp=/^#[a-fA-F0-9]{6}$/,bp=/^#[a-fA-F0-9]{8}$/,yp=/^#[a-fA-F0-9]{3}$/,Ep=/^#[a-fA-F0-9]{4}$/,kp=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,Up=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,Fp=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,Bp=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function Cp(R){if("string"!=typeof R)throw new vp(3);var D=function(R){if("string"!=typeof R)return R;var D=R.toLowerCase();return mp[D]?"#"+mp[D]:R}(R);if(D.match(Sp))return{red:parseInt(""+D[1]+D[2],16),green:parseInt(""+D[3]+D[4],16),blue:parseInt(""+D[5]+D[6],16)};if(D.match(bp)){var P=parseFloat((parseInt(""+D[7]+D[8],16)/255).toFixed(2));return{red:parseInt(""+D[1]+D[2],16),green:parseInt(""+D[3]+D[4],16),blue:parseInt(""+D[5]+D[6],16),alpha:P}}if(D.match(yp))return{red:parseInt(""+D[1]+D[1],16),green:parseInt(""+D[2]+D[2],16),blue:parseInt(""+D[3]+D[3],16)};if(D.match(Ep)){var x=parseFloat((parseInt(""+D[4]+D[4],16)/255).toFixed(2));return{red:parseInt(""+D[1]+D[1],16),green:parseInt(""+D[2]+D[2],16),blue:parseInt(""+D[3]+D[3],16),alpha:x}}var k=kp.exec(D);if(k)return{red:parseInt(""+k[1],10),green:parseInt(""+k[2],10),blue:parseInt(""+k[3],10)};var G=Up.exec(D.substring(0,50));if(G)return{red:parseInt(""+G[1],10),green:parseInt(""+G[2],10),blue:parseInt(""+G[3],10),alpha:parseFloat(""+G[4])>1?parseFloat(""+G[4])/100:parseFloat(""+G[4])};var H=Fp.exec(D);if(H){var $="rgb("+pp(parseInt(""+H[1],10),parseInt(""+H[2],10)/100,parseInt(""+H[3],10)/100)+")",z=kp.exec($);if(!z)throw new vp(4,D,$);return{red:parseInt(""+z[1],10),green:parseInt(""+z[2],10),blue:parseInt(""+z[3],10)}}var Y=Bp.exec(D.substring(0,50));if(Y){var W="rgb("+pp(parseInt(""+Y[1],10),parseInt(""+Y[2],10)/100,parseInt(""+Y[3],10)/100)+")",ee=kp.exec(W);if(!ee)throw new vp(4,D,W);return{red:parseInt(""+ee[1],10),green:parseInt(""+ee[2],10),blue:parseInt(""+ee[3],10),alpha:parseFloat(""+Y[4])>1?parseFloat(""+Y[4])/100:parseFloat(""+Y[4])}}throw new vp(5)}function Tp(R){return function(R){var D,P=R.red/255,x=R.green/255,k=R.blue/255,G=Math.max(P,x,k),H=Math.min(P,x,k),$=(G+H)/2;if(G===H)return void 0!==R.alpha?{hue:0,saturation:0,lightness:$,alpha:R.alpha}:{hue:0,saturation:0,lightness:$};var z=G-H,Y=$>.5?z/(2-G-H):z/(G+H);switch(G){case P:D=(x-k)/z+(x=1?Lp(R,D,P):"rgba("+R+","+D+","+P+","+x+")";if("object"==typeof R&&void 0===D&&void 0===P&&void 0===x)return R.alpha>=1?Lp(R.red,R.green,R.blue):"rgba("+R.red+","+R.green+","+R.blue+","+R.alpha+")";throw new vp(7)}function Rp(R){if("object"!=typeof R)throw new vp(8);if(function(R){return"number"==typeof R.red&&"number"==typeof R.green&&"number"==typeof R.blue&&"number"==typeof R.alpha}(R))return Np(R);if(function(R){return"number"==typeof R.red&&"number"==typeof R.green&&"number"==typeof R.blue&&("number"!=typeof R.alpha||void 0===R.alpha)}(R))return Lp(R);if(function(R){return"number"==typeof R.hue&&"number"==typeof R.saturation&&"number"==typeof R.lightness&&"number"==typeof R.alpha}(R))return function(R){if("object"==typeof R)return R.alpha>=1?Op(R.hue,R.saturation,R.lightness):"rgba("+pp(R.hue,R.saturation,R.lightness)+","+R.alpha+")";throw new vp(2)}(R);if(function(R){return"number"==typeof R.hue&&"number"==typeof R.saturation&&"number"==typeof R.lightness&&("number"!=typeof R.alpha||void 0===R.alpha)}(R))return function(R){if("object"==typeof R)return Op(R.hue,R.saturation,R.lightness);throw new vp(1)}(R);throw new vp(8)}function Dp(R,D,P){return function(){var x=P.concat(Array.prototype.slice.call(arguments));return x.length>=D?R.apply(this,x):Dp(R,D,x)}}function Pp(R){return Dp(R,R.length,[])}function xp(R,D,P){return Math.max(R,Math.min(D,P))}Pp(function(R,D){if("transparent"===D)return D;var P=Tp(D);return Rp(rp({},P,{hue:P.hue+parseFloat(R)}))});var Gp=Pp(function(R,D){if("transparent"===D)return D;var P=Tp(D);return Rp(rp({},P,{lightness:xp(0,1,P.lightness-parseFloat(R))}))});function Vp(R){if("transparent"===R)return 0;var D=Cp(R),P=Object.keys(D).map(function(R){var P=D[R]/255;return P<=.03928?P/12.92:Math.pow((P+.055)/1.055,2.4)}),x=P[0],k=P[1],G=P[2];return parseFloat((.2126*x+.7152*k+.0722*G).toFixed(3))}Pp(function(R,D){if("transparent"===D)return D;var P=Tp(D);return Rp(rp({},P,{saturation:xp(0,1,P.saturation-parseFloat(R))}))});var Hp=Pp(function(R,D){if("transparent"===D)return D;var P=Tp(D);return Rp(rp({},P,{lightness:xp(0,1,P.lightness+parseFloat(R))}))});var zp=Pp(function(R,D,P){if("transparent"===D)return P;if("transparent"===P)return D;if(0===R)return P;var x=Cp(D),k=rp({},x,{alpha:"number"==typeof x.alpha?x.alpha:1}),G=Cp(P),H=rp({},G,{alpha:"number"==typeof G.alpha?G.alpha:1}),$=k.alpha-H.alpha,z=2*parseFloat(R)-1,Y=((z*$===-1?z:z+$)/(1+z*$)+1)/2,W=1-Y;return Np({red:Math.floor(k.red*Y+H.red*W),green:Math.floor(k.green*Y+H.green*W),blue:Math.floor(k.blue*Y+H.blue*W),alpha:k.alpha*parseFloat(R)+H.alpha*(1-parseFloat(R))})}),jp=zp;Pp(function(R,D){if("transparent"===D)return D;var P=Cp(D);return Np(rp({},P,{alpha:xp(0,1,(100*("number"==typeof P.alpha?P.alpha:1)+100*parseFloat(R))/100)}))}),Pp(function(R,D){if("transparent"===D)return D;var P=Tp(D);return Rp(rp({},P,{saturation:xp(0,1,P.saturation+parseFloat(R))}))}),Pp(function(R,D){return"transparent"===D?D:Rp(rp({},Tp(D),{hue:parseFloat(R)}))}),Pp(function(R,D){return"transparent"===D?D:Rp(rp({},Tp(D),{lightness:parseFloat(R)}))}),Pp(function(R,D){return"transparent"===D?D:Rp(rp({},Tp(D),{saturation:parseFloat(R)}))}),Pp(function(R,D){return"transparent"===D?D:jp(parseFloat(R),"rgb(0, 0, 0)",D)});var Yp=Pp(function(R,D){return"transparent"===D?D:jp(parseFloat(R),"rgb(255, 255, 255)",D)});Pp(function(R,D){if("transparent"===D)return D;var P=Cp(D);return Np(rp({},P,{alpha:xp(0,1,+(100*("number"==typeof P.alpha?P.alpha:1)-100*parseFloat(R)).toFixed(2)/100)}))});const oh={base:{xxs:"4px",xs:"8px",sm:"12px",md:"16px",lg:"20px",xl:"24px",xxl:"28px",xxxl:"32px",xxxxl:"36px"},mobile:{xxs:"2px",xs:"4px",sm:"6px",md:"8px",lg:"10px",xl:"12px",xxl:"14px",xxxl:"16px",xxxxl:"18px"}},$p=(R,D=Qd.MIN_WIDTH)=>`(${D} ${R}px)`,{sm:sh,md:ah}=fp,ph={ie11:" @media screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none)",mobileLandscape:`@media ${$p(ah,Qd.MAX_HEIGHT)} and (orientation: landscape)`,mobileLandscapeXS:`@media ${$p(sh,Qd.MAX_HEIGHT)} and (orientation: landscape)`,mobilePortrait:`@media ${$p(ah,Qd.MAX_WIDTH)} and (orientation: portrait)`,mobilePortraitXS:`@media ${$p(sh,Qd.MAX_WIDTH)}`};function Wp(R,D){return function Mp(R,D){var P=function(R,D){var P=Vp(R),x=Vp(D);return parseFloat((P>x?(P+.05)/(x+.05):(x+.05)/(P+.05)).toFixed(2))}(R,D);return{AA:P>=4.5,AALarge:P>=3,AAA:P>=7,AAALarge:P>=4.5}}(R,D.primary).AA?D.primary:D.quaternary}const Kp=R=>({dark:Gp(.1,R),default:R});function Jp(R){const D=Yp(.2,R),P=Yp(.84,R),x=Yp(.98,R);return{[Gd.PRIMARY]:Kp(R),[Gd.SECONDARY]:Kp(D),[Gd.TERTIARY]:Kp(P),[Gd.QUATERNARY]:Kp(x),[Gd.NEUTRAL]:Kp("hsl(0.0, 0%, 96.0%)")}}function Xp(R){return R&&R!==tp?`${R},${tp}`:tp}function qp(R,D=16){const P=getComputedStyle(document.documentElement).getPropertyValue("--uc-typography-scale");return(parseFloat(P.trim())||1)*R/D+"rem"}function Qp(R=tp,D=14,P=np,x=!1){return{color:{[Hd.PRIMARY]:P,[Hd.SECONDARY]:Yp(.2,P),[Hd.TERTIARY]:Yp(.84,P),[Hd.QUATERNARY]:Yp(.98,P)},font:Xp(R),rtlEnabled:x,scaleFactor:D/14,size:{[qd.LARGE]:"1.125em",[qd.MEDIUM]:"1em",[qd.SMALL]:"0.875em",[qd.XSMALL]:"0.75em",root:qp(D)},weight:{bold:700,light:250,regular:400,semiBold:550}}}const Zp=(R,D,P,x,k)=>{const G=(R=>"auto"===R?R:"number"==typeof R&&0!==R||"string"==typeof R&&!R.includes("px")?`${R}px`:"string"==typeof R?R:"0")(P),H=k||"";let $="";x&&($=x!==Bd.NONE?`${G} ${x} ${H}`:`${Bd.NONE}`);const z=R.typography.rtlEnabled;switch(D){case Fd.FLEX_ALIGNMENT_LEFT:return z?`${Fd.FLEX_ALIGNMENT_RIGHT}`:`${Fd.FLEX_ALIGNMENT_LEFT}`;case Fd.FLEX_ALIGNMENT_RIGHT:return z?`${Fd.FLEX_ALIGNMENT_LEFT}`:`${Fd.FLEX_ALIGNMENT_RIGHT}`;case Fd.TEXT_ALIGNMENT_LEFT:return z?`${Fd.TEXT_ALIGNMENT_RIGHT}`:`${Fd.TEXT_ALIGNMENT_LEFT}`;case Fd.TEXT_ALIGNMENT_RIGHT:return z?`${Fd.TEXT_ALIGNMENT_LEFT}`:`${Fd.TEXT_ALIGNMENT_RIGHT}`;case Fd.FLOAT_LEFT:return z?`${Fd.FLOAT_RIGHT}`:`${Fd.FLOAT_LEFT}`;case Fd.FLOAT_RIGHT:return z?`${Fd.FLOAT_LEFT}`:`${Fd.FLOAT_RIGHT}`;case Fd.PADDING_LEFT:return z?`${Fd.PADDING_RIGHT} ${G}`:`${Fd.PADDING_LEFT} ${G}`;case Fd.PADDING_RIGHT:return z?`${Fd.PADDING_LEFT} ${G}`:`${Fd.PADDING_RIGHT} ${G}`;case Fd.MARGIN_LEFT:return z?`${Fd.MARGIN_RIGHT} ${G}`:`${Fd.MARGIN_LEFT} ${G}`;case Fd.MARGIN_RIGHT:return z?`${Fd.MARGIN_LEFT} ${G}`:`${Fd.MARGIN_RIGHT} ${G}`;case Fd.BORDER_LEFT:return z?`${Fd.BORDER_RIGHT} ${$};`:`${Fd.BORDER_LEFT} ${$}`;case Fd.BORDER_RIGHT:return z?`${Fd.BORDER_LEFT} ${$};`:`${Fd.BORDER_RIGHT} ${$}`;case Fd.BORDER_RADIUS_BOTTOM_LEFT:return z?`${Fd.BORDER_RADIUS_BOTTOM_RIGHT} ${G}`:`${Fd.BORDER_RADIUS_BOTTOM_LEFT} ${G}`;case Fd.BORDER_RADIUS_BOTTOM_RIGHT:return z?`${Fd.BORDER_RADIUS_BOTTOM_LEFT} ${G}`:`${Fd.BORDER_RADIUS_BOTTOM_RIGHT} ${G}`;case Fd.BORDER_RADIUS_TOP_LEFT:return z?`${Fd.BORDER_RADIUS_TOP_RIGHT} ${G}`:`${Fd.BORDER_RADIUS_TOP_LEFT} ${G}`;case Fd.BORDER_RADIUS_TOP_RIGHT:return z?`${Fd.BORDER_RADIUS_TOP_LEFT} ${G}`:`${Fd.BORDER_RADIUS_TOP_RIGHT} ${G}`;case Fd.OBJECT_POSITION_LEFT:return z?`${Fd.OBJECT_POSITION_RIGHT} ${G}`:`${Fd.OBJECT_POSITION_LEFT} ${G}`;case Fd.OBJECT_POSITION_RIGHT:return z?`${Fd.OBJECT_POSITION_LEFT} ${G}`:`${Fd.OBJECT_POSITION_RIGHT} ${G}`;case Fd.POSITION_RIGHT:return z?`${Fd.POSITION_LEFT} ${G}`:`${Fd.POSITION_RIGHT} ${G}`;case Fd.POSITION_LEFT:return z?`${Fd.POSITION_RIGHT} ${G}`:`${Fd.POSITION_LEFT} ${G}`;default:return""}},eh=(R,D,P)=>Kp(P||Wp(R,D)),th=R=>`${R}px`,nh=(R,D)=>D&&!gt(D)?{color:Jp(D.primaryColor),typography:Qp(D.font.family,D.font.size,np,R)}:{color:Jp("hsl(214.9, 100%, 32.4%)"),typography:Qp(tp,14,np)},ih=(R,D)=>{const{color:P,typography:x}=nh(R,D),k=(({neutral:R,primary:D},{color:P},x)=>({accept:{bg:Kp(x&&!gt(x)&&!dt(x)&&x.buttons.accept.backgroundColor?x?.buttons.accept.backgroundColor:D.default),text:eh(D.default,P,!x||gt(x)||dt(x)?null:x.buttons.accept.textColor)},alignment:!x||gt(x)||dt(x)?te.HORIZONTAL:x.buttons.alignment,borderRadius:x&&!gt(x)?x.buttons.borderRadius:"4px",ccpa:{bg:Kp(x&&!gt(x)&&dt(x)&&x.buttons.ok?.backgroundColor?x.buttons.ok.backgroundColor:R.default),text:eh(R.default,P,x&&!gt(x)&&dt(x)&&x.buttons.ok?.textColor?x.buttons.ok.textColor:null)},deny:{bg:Kp(x&&!gt(x)&&!dt(x)&&x.buttons.deny?.backgroundColor?x.buttons.deny.backgroundColor:R.default),text:eh(R.default,P,x&&!gt(x)&&!dt(x)&&x.buttons.deny?.textColor?x?.buttons.deny.textColor:null)},more:{bg:Kp(ht(x)&&x.buttons.more?.backgroundColor?x?.buttons.more.backgroundColor:cp),text:eh(R.default,P,ht(x)&&x.buttons.more?.textColor?x.buttons.more.textColor:null)},privacy:{bg:(()=>{if(x){if(gt(x)&&x.backgroundColor)return Kp(x.backgroundColor);if(!gt(x)&&x.layer.backgroundColor)return x.layer.backgroundColor.toLowerCase()!==ip?Kp(x.layer.backgroundColor):x.primaryColor&&x.primaryColor.toLowerCase()!==ip?Kp(x.primaryColor):D.default&&D.default.toLowerCase()!==ip?Kp(D.default):Kp(cp);if(!gt(x)&&x.primaryColor&&x.primaryColor.toLowerCase()!==ip)return Kp(x.primaryColor)}return D.default&&D.default.toLowerCase()!==ip?Kp(D.default):Kp(cp)})(),desktopSize:th(gt(x)&&x.desktopSize?x.desktopSize:64),icon:gt(x)&&x.iconColor?x.iconColor:ip,mobileSize:th(gt(x)&&x.mobileSize?x.mobileSize:44),text:Kp(ip)},save:{bg:Kp(x&&!gt(x)&&!dt(x)&&x.buttons.save?.backgroundColor?x.buttons.save.backgroundColor:R.default),text:eh(R.default,P,x&&!gt(x)&&!dt(x)&&x.buttons.save?.textColor?x.buttons.save.textColor:null)}}))(P,x,D);return{a11yFocus:{color:"#767676"},accentColor:!gt(D)&&D?.accentColor||"#DDDDDD",buttons:k,expandableLink:{color:!gt(D)&&D?.links.fontColor||np},firstLayer:{secondLayerTrigger:!gt(D)&&D?.firstLayer.secondLayerTrigger||W.LINK},layer:{backgroundColor:!gt(D)&&D?.layer.backgroundColor||hp,borderRadius:!gt(D)&&D?.layer.borderRadius||"8px",darkerBackgroundColor:Gp(.1,!gt(D)&&D?.layer.backgroundColor||hp)},links:{fontColor:!gt(D)&&D?.links.fontColor||np,iconColor:!gt(D)&&D?.links.iconColor||np},overlay:{color:!gt(D)&&D?.overlay.backgroundColor||"#333",opacity:!gt(D)&&D?.overlay.opacity||.7},scroll:{background:"rgba(0,0,0,0)",color:!gt(D)&&D?.textColor?Yp(.6,D.textColor):P.secondary.default},secondLayer:{backgroundColor:Hp(.05,!gt(D)&&D?.layer.backgroundColor||hp),content:{backgroundColor:Yp(.98,!gt(D)&&D?.layer.backgroundColor||hp)},dividers:Yp(.84,!gt(D)&&D?.textColor||P.primary.default)},tabs:{color:!gt(D)&&D?.secondLayer.tabColor||P.primary.default},text:{color:!gt(D)&&D?.textColor||P.primary.default},toggle:{active:{backgroundColor:!gt(D)&&D?.toggle.active.backgroundColor||"#336AB7",iconColor:!gt(D)&&D?.toggle.active.iconColor||gp},disabled:{backgroundColor:!gt(D)&&D?.toggle.disabled.backgroundColor||"#dedede",iconColor:!gt(D)&&D?.toggle.disabled.iconColor||gp},inactive:{backgroundColor:!gt(D)&&D?.toggle.inactive.backgroundColor||"#595959",iconColor:!gt(D)&&D?.toggle.inactive.iconColor||gp}},useBackgroundShadow:!(!gt(D)&&null!=D?.useBackgroundShadow)||D?.useBackgroundShadow}};function rh(R,D,P,x){const{color:k,typography:G}=nh(D,R),H=x||{maxBannerWidth:5e3,maxSideAndCenterContainerWidth:625};return{color:k,spacing:oh,typography:G,ui:ih(D,R),uiSizes:H,uiVariant:P}}const{color:hh,typography:vh}=nh(!1),Sh={color:hh,spacing:oh,typography:vh,ui:ih(!1),uiSizes:{maxBannerWidth:5e3,maxSideAndCenterContainerWidth:625},uiVariant:Rs.DEFAULT},lh=()=>{const R=window.navigator.userAgent.indexOf("MSIE ")>0||window.navigator.userAgent.indexOf("Trident/")>0,D=window.matchMedia("all and (orientation:landscape)").matches,P=window.matchMedia("all and (orientation:portrait)").matches,x=P?window.innerWidth:window.innerHeight;let k=!1,G=!1,H=!1,$=!1;const z=window.innerWidth>fp.md&&!("ontouchstart"in document.documentElement||window.ontouchstart);return z||(k=x<=fp.md,G=x<=fp.md&&x>fp.sm,H=x<=fp.sm&&x>fp.xs,$=x<=fp.xs),{isDesktop:z,isIE:R,isLandscape:D,isMobile:k,isMobileExtraSmall:$,isMobileMd:G,isMobileSmall:H,isPortrait:P}},ch=()=>{const[R,D]=Ba(lh());return Ha(()=>{const e=()=>{D(lh())};return window.addEventListener("resize",e,!0),()=>{window.removeEventListener("resize",e,!0)}},[]),R},uh=R=>R.some(R=>null!=R.dataDistribution),dh=R=>R.reduce((R,D)=>D.isHidden?R:[...R,D],[]),bh={allCategories:[],allServices:[],categories:[],getUpdatedCategories:()=>Promise.resolve([]),selectedSubService:null,services:[],setCategories:()=>null,setSelectedSubService:()=>null},yh=_a(bh);yh.displayName="CategoryContext";const gh=(R,D)=>R.isEssential&&D.isEssential?R.name.toLowerCase()>D.name.toLowerCase()?1:-1:R.isEssential&&!D.isEssential?-1:!R.isEssential&&D.isEssential||R.name.toLowerCase()>D.name.toLowerCase()?1:-1,fh=(R,D)=>D.services?[...R,...D.services]:R,Eh=rl(({children:R,UC:D})=>{const P=D.getCategoriesBaseInfo(),[x,k]=Ba({all:P,visible:dh(P)}),[G,H]=Ba(bh.selectedSubService),$=ja(()=>({all:x.all.reduce(fh,[]).sort(gh),visible:x.visible.reduce(fh,[]).sort(gh)}),[x]),z=Ya(async R=>R===Vd.SECOND_LAYER||(R=>R.some(R=>uh(R.services)))(x.visible)?dh(await D.getCategoriesFullInfo()):dh(D.getCategoriesBaseInfo()),[D,x]);return ta(yh.Provider,{value:{allCategories:x.all,allServices:$.all,categories:x.visible,getUpdatedCategories:z,selectedSubService:G,services:$.visible,setCategories:R=>{k({all:x.all.length&&x.all.length!==R.length?x.all.map(D=>R.find(R=>R.slug===D.slug)||D):R,visible:dh(R)})},setSelectedSubService:H}},R)}),mh=()=>Wa(yh),Ch="uc-embed",Th="#ffffff",_h="uc-furtherInformation",Ih="uc-optInCheckboxWithLabel",Ah="uc-embed-toggle-button",wh={toggleButton:{style:"display: flex; justify-content: center; align-items: center; background: none; border: none; height: 20px; width: 40px; min-height: 20px; min-width: 40px; outline: none; padding: 0"},toggleButtonMargin:{style:"display: flex; justify-content: center; align-items: center; background: none; border: none; height: 20px; width: 40px; min-height: 20px; min-width: 40px; outline: none; padding: 0; margin-right: 15px"}},Oh="uc-embed-tcf",Lh="uc-embed-subelement-headline",Nh="uc-embed-subelement-item-list",Rh={subElementBlockList:{style:"margin: 0px 0px 0px; padding: 0px 15px"},subElementBlockListElement:{style:"font-size: 12px; list-style: none; border: 1px solid #e2e2e2; border-radius: 5px; padding: 10px; margin-top: 5px"},viewMoreButton:{style:"border: none; background-color: #fff; text-align: left; padding: 15px; color: #0000ff"}};let Dh=function(R){return R.CAT="CAT",R.SRV="SRV",R}({});const fg=R=>R.reduce((R,D)=>R.concat(D.services),[]).reduce((R,D)=>(R.push({serviceId:D.id,status:D.consent.status}),R),[]),vg=(R,D)=>{if(void 0===D)throw new Error("altElement of nullishOperation can not be undefined");return null!=R?R:D},mg=(R,D)=>R.map(R=>{const P=D.find(D=>R.slug===D.slug),x=R.services.map(R=>{const{consent:D}=P?.services.find(D=>R.id===D.id)||R,x=R;return x.consent=D,x});return i(i({},R),{},{services:x})}),Sg=(R,D)=>{let P=ep.CATEGORIES_PURPOSES;if(R&&ht(R)){const{defaultView:D,hideDataProcessingServices:x}=R.secondLayer;P=D===Dh.CAT?ep.CATEGORIES_PURPOSES:ep.SERVICES_VENDORS,D===Dh.SRV&&x&&(P=ep.CATEGORIES_PURPOSES)}if(R&>(R)&&D===Rs.DEFAULT){const{defaultView:D,hideDataProcessingServices:x}=R;P=D===Dh.CAT?ep.CATEGORIES_PURPOSES:ep.SERVICES_VENDORS,D===Dh.SRV&&x&&(P=ep.CATEGORIES_PURPOSES)}return P},Ph=_a({core:null,data:null,labels:null,setSettingsCore:()=>{},setSettingsData:()=>{},setSettingsLabels:()=>{},setSettingsUI:()=>{},UC:null,ui:null});Ph.displayName="SettingsContext";const xh=rl(({children:R,UC:D})=>{const[P,x]=Ba(D.getSettingsCore()),[k,G]=Ba(D.getSettingsData()),[H,$]=Ba(D.getSettingsLabels()),[z,Y]=Ba(D.getSettingsUI());return ta(Ph.Provider,{value:{core:P,data:k,labels:H,setSettingsCore:x,setSettingsData:G,setSettingsLabels:$,setSettingsUI:Y,UC:D,ui:z}},R)}),Eg=()=>Wa(Ph),Cg=(R,D)=>{if(null===R)return" - ";if(R<=0)return D.session;const P=R;let x="",k=P/86400;if(k<1){const R=Math.round(P/60);x=x.concat(`${R} ${1===R?D.minute:D.minutes}`)}else k=Math.round(k),x=x.concat(`${k} ${1===k?D.day:D.days}`);return x};async function Tg(R){let D;try{D=await window.fetch(R)}catch(R){}return D&&D.status,D}function Ig(R,D,P){return"*"===R?`${R} (${D})`:R.includes("*")?`${R} (${P})`:R}const kh=function(){const R=(void 0!==window.safari&&window.safari.pushNotification||!!navigator.userAgent.match(/Version\/[\d.]+.*Safari/)&&!navigator.userAgent.match(/Version\/[\d.]+.*Chrome/)).toString();return"[object SafariRemoteNotification]"===R||"true"===R}(),Vh="#0000ff",Uh="#848484",Mh="#595959",Fh="#e2e2e2",Bh="uc-embed-collapsed-arrow",Gh="uc-embed-collapsed-button",Hh="uc-embed-collapsed-button-content",$h="uc-embed-collapsed-content",zh="uc-embed-collapsed-link",jh="uc-embed-collapsed-link-content",Yh="uc-embed-headline",Wh="uc-embed-list",Jh="uc-embed-list-headline",Xh="uc-embed-list-headline-description",Kh="uc-embed-list-item",qh="uc-embed-list-item-content",Qh="uc-embed-list-item-headline",Zh="uc-embed-container",eg="uc-embed-stored-info-action-item",tg="uc-embed-stored-info-item",ng="uc-embed-stored-info-item-data-element",ig="uc-embed-stored-info-item-headline",rg="uc-embed-subelement",og="uc-embed-subelement-item-list-element",sg="uc-embed-subelement-stored-info",ag="uc-subservice-link-button",lg="uc-subservice-link-text",cg="uc-subservices",ug={backArrow:{style:`border: solid ${Vh}; border-width: 1px 0 0 1px; display: inline-block; padding: 3px; height: 0px; margin-top: 4px; ransform: rotate(-45deg); -webkit-transform: rotate(-45deg);`},backButton:{style:"flex: 1; display: flex; justify-content: flex-start; border: none; background-color: white; text-align: left; margin: 0px; padding: 0px 15px 15px 15px; width:100%; cursor: pointer"},backText:{style:`display: inline-block; font-weight: normal; font-size: 0.90em; margin: 0; margin-left: 4px; color: ${Vh}`},categoryOnlyDiv:{style:`display: flex; border-bottom: 1px solid ${Fh}; justify-content: space-between; align-items: center`},collapsableButton:{style:"border: none; display: inline-flex; background-color: white; text-align: left; padding: 15px; justify-content: space-between; width:100%"},collapsableDiv:{style:`border-bottom: 1px solid ${Fh}`},collapsableDivContentHidden:{style:"display: none"},collapsableDivContentShown:{style:"display: inline-block; padding-bottom: 15px; width: 100%"},collapsableLink:{style:"border: none; display: inline-flex; background-color: white; text-align: left; padding: 7px 15px; margin: 0px; width:100%; justify-content: flex-start"},collapsedArrow:{style:`border: solid ${Uh}; border-width: 0 1px 1px 0; display: inline-block; padding: 3px; height: 0px; margin-top: 4px; margin-left:10px; transform: rotate(45deg); -webkit-transform: rotate(45deg);`},collapsedButtonContent:{style:"display: inline-block; font-weight: normal; font-size: 1.17em; margin: 0;"},collapsedLinkArrow:{style:`border: solid ${Vh}; border-width: 0 1px 1px 0; display: inline-block; padding: 3px; height: 0px; margin-top: 4px; margin-left:10px; transform: rotate(45deg); -webkit-transform: rotate(45deg);`},collapsedLinkContent:{style:`display: inline-block; font-weight: bold; font-size: 1.0em; color: ${Vh}; margin-top: 1px`},detailsArrow:{style:`border: solid ${Vh}; border-width: 0 1px 1px 0; display: inline-block; padding: 3px; height: 0px; margin-top: 4px; ransform: rotate(-45deg); -webkit-transform: rotate(-45deg);`},detailsButton:{style:"width: 100%; display: flex; justify-content: space-between; padding: 12px; margin-top: 12px; border: 1px solid #dedede; border-radius: 4px; cursor: pointer; background: none"},detailsText:{style:`display: inline-block; font-weight: normal; font-size: 0.90em; margin: 0; margin-right: 4px; color: ${Vh}`},flexContainer:{style:"display: flex"},headlines:{style:"padding: 7px 15px; margin: 0px"},headlinesBorderBottom:{style:`padding: 30px 15px 24px; margin: 0px; border-bottom: 1px solid ${Fh}`},link:{style:"font-size: 12px; padding: 0px 15px; text-decoration: none"},list:{style:"display: inline-grid"},openedArrow:{style:`border: solid ${Uh}; border-width: 0 1px 1px 0; display: inline-block; padding: 3px; height: 0px; margin-top: 7px; margin-left:10px; transform: rotate(-135deg); -webkit-transform: rotate(-135deg);`},openedButtonContent:{style:"display: inline-block; font-weight: bold; font-size: 1.17em; margin: 0;"},openedLinkArrow:{style:`border: solid ${Vh}; border-width: 0 1px 1px 0; display: inline-block; padding: 3px; height: 0px; margin-top: 7px; margin-left:10px; transform: rotate(-135deg); -webkit-transform: rotate(-135deg);`},outerBox:{style:'display: grid; padding: 24px 0px; background-color: white; border-radius: 10px; font-family: "Arial"'},outerBoxNoTopPadding:{style:'display: grid; padding-bottom: 24px; background-color: white; border-radius: 10px; font-family: "Arial"'},storedInfoAction:{style:"display: flex; flex-direction: row; justify-content: center; width: 100%;"},storedInfoActionLink:{style:`font-size: 14px; margin: 0; cursor: pointer; color: ${Vh}`},storedInfoActionText:{style:"font-size: 14px; margin: 0"},storedInfoItem:{style:`display: flex; flex-direction: column; padding: 12px; border: 1px solid ${Fh};`},storedInfoItemDescription:{style:`font-size: 12px; color: ${Mh}; margin: 0px 0px 4px 0px;`},storedInfoItemHeader:{style:"font-size: 12px; font-weight: bold; margin: 0; margin-bottom: 4px;"},storedInfoItemSubElement:{style:"font-size: 12px; margin: 0;"},storedInfoItemSubElementRow:{style:"display: flex; font-size: 12px; margin: 0; margin-top: 4px;"},storedInfoItemSubElementTitle:{style:"min-width: 30%; margin: 0"},subElement:{style:"margin: 5px 0px 15px"},subElementDescription:{style:"font-size: 12px; padding: 0px 15px; margin: 5px 0px 0px"},subElementExpandableLink:{style:"margin: 5px 15px 15px; width: calc(100% - 30px)"},subElementItemList:{style:"margin: 5px 0px 10px; padding-right: 15px"},subElementItemListElement:{style:"font-size: 12px; padding: 7px 0px 5px 0px"},subserviceInfo:{style:`font-size: 12px; padding: 0px 15px; margin: 0px 0px 24px; color: ${Mh}`},subserviceList:{style:"padding: 0 15px;"},subserviceListItem:{style:`display: flex; flex-direction: row; justify-content: space-between; padding: 12px; margin-top: 12px; border: 1px solid ${Fh}; border-radius: 4px;`},subserviceListItemName:{style:"font-weight: normal; font-size: 0.90em; margin: 0;"},verticalSpacer:{style:"display: block; min-height: 16px"}};let dg=function(R){return R.DATA_COLLECTED="dataCollected",R.DATA_PROTECTION_OFFICER="dataProtectionOfficer",R.DATA_PURPOSES="dataPurposes",R.DATA_RECIPIENTS="dataRecipients",R.DESCRIPTION="description",R.FURTHER_INFORMATION="furtherInformation",R.LEGAL_BASIS="legalBasis",R.OPT_IN_CHECKBOX_WITH_LABEL="optInCheckboxWithLabel",R.PROCESSING_LOCATION="processingLocation",R.PROCESSOR_NAMES="processorNames",R.RETENTION_PERIOD="retentionPeriod",R.TECHNOLOGIES_USED="technologiesUsed",R.THIRD_COUNTRY_TRANSFER="thirdCountryTransfer",R.WEB_DUTCH_AUTH_TEXT="webDutchAuthText",R}({}),pg=function(R){return R.ALL="all",R.CATEGORY="category",R.CATEGORY_ONLY="category-only",R}({}),hg=function(R){return R.VENDOR="vendor",R.PURPOSE="purpose",R}({});const vf=R=>R&&R.some(R=>R.processingCompany);var gg,bg=new Uint8Array(16);function bf(){if(!gg&&!(gg="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return gg(bg)}for(var yg=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,_g=[],Ag=0;Ag<256;++Ag)_g.push((Ag+256).toString(16).substr(1));function If(R,D,P){var x=(R=R||{}).random||(R.rng||bf)();if(x[6]=15&x[6]|64,x[8]=63&x[8]|128,D){P=P||0;for(var k=0;k<16;++k)D[P+k]=x[k];return D}return function Tf(R){var D=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,P=(_g[R[D+0]]+_g[R[D+1]]+_g[R[D+2]]+_g[R[D+3]]+"-"+_g[R[D+4]]+_g[R[D+5]]+"-"+_g[R[D+6]]+_g[R[D+7]]+"-"+_g[R[D+8]]+_g[R[D+9]]+"-"+_g[R[D+10]]+_g[R[D+11]]+_g[R[D+12]]+_g[R[D+13]]+_g[R[D+14]]+_g[R[D+15]]).toLowerCase();if(!function(R){return"string"==typeof R&&yg.test(R)}(P))throw TypeError("Stringified UUID is invalid");return P}(x)}const _f=(R,D)=>{const P=vg(R.getAttribute("uc-consent-name"),"all"),x=(R=>{const D=R.getAttribute("uc-data");if(!D||D.includes("all"))return Object.values(dg);const P=D.replace(" ","").split(",");return Object.values(dg).filter(R=>P.includes(R))})(R),k=vg(R.getAttribute("uc-embedding-title"),D),G=R.getAttribute("uc-embedding-type")??"all",H=vg(R.getAttribute("uc-show-toggle"),"false"),$=vg(R.getAttribute("uc-styling"),"false");return{embedService:P,embedTitle:k,embedType:G,sections:x,showHiddenCategories:"true"===R.getAttribute("uc-embedding-show-hidden-categories"),showToggle:"true"===H,useUcStyling:"true"===$}},Af=(R,...D)=>{D.forEach(D=>{Object.entries(D).forEach(([D,P])=>{R.setAttribute(D,P)})})},wf=(R,D,P,x=[],k=!1)=>{const G=document.createElement(R);if(D&&"string"==typeof D&&""!==D?G.className=D:D&&Array.isArray(D)&&G.classList.add(...D),P&&P.length>0&&P.forEach(R=>{(!R.style||R.style&&k)&&Af(G,R)}),x)if("string"==typeof x)G.innerText=x;else if(Array.isArray(x)){const R=document.createDocumentFragment();x.forEach(D=>R.appendChild(D)),G.appendChild(R)}else G.appendChild(x);return G},Of=(R,D)=>{const{isTCF:P,useUcStyling:x,isSubservice:k,nonTcfClassName:G}=D;let H="h5";return x||P||k||(H="h4"),wf(H,P?Lh:`uc uc-heading ${G}`,[ug.headlines],R,x)},Lf=(R,D)=>{const{isTCF:P,useUcStyling:x,nonTcfClassName:k}=D;return wf("p",P?"uc-embed-subelement-description":`uc uc-p ${k}`,[ug.subElementDescription],R,x)},Nf=(R,D,P,x,k)=>{let G,H=Ah,$=[Ah];R?(G=(()=>{const R=`\n \n \n \n \n \n \n \n \n \n`;return(new DOMParser).parseFromString(R,"image/svg+xml").documentElement})(),H+="-disabled",$=[...$,"toggle-disabled"]):(G=D?(()=>{const R=`\n \n \n \n \n \n \n `;return(new DOMParser).parseFromString(R,"image/svg+xml").documentElement})():(()=>{const R=`\n \n \n \n \n \n `;return(new DOMParser).parseFromString(R,"image/svg+xml").documentElement})(),D?(H+="-on",$=[...$,"toggle-on"]):(H+="-off",$=[...$,"toggle-off"]));const z=wf("button",$,[P?wh.toggleButtonMargin:wh.toggleButton],[G],x);return z.setAttribute("data-testid",H),z.setAttribute("type","button"),z.setAttribute("role","switch"),z.setAttribute("aria-disabled",R?"true":"false"),z.setAttribute("aria-checked",D?"true":"false"),z.setAttribute("aria-readonly",R?"true":"false"),R||(z.onclick=k),z},Rf=(R,D,P)=>wf("p",(P.isTCF?"uc uc-p ":"")+"uc-subservices-info",[ug.subserviceInfo],`${R} ${R>1?D.subservices:D.subservice}`,P.useUcStyling),Df=(R,D)=>wf("h4",D.isTCF?Lh:"uc uc-title",[],R,D.useUcStyling),Pf=(R,D,P)=>{const{isTCF:x,useUcStyling:k}=P,{name:G,parentName:H,scrollToId:$}=R,z=!!R.parentName;let Y;const W=wf("div",`${x?"":"uc "}${lg}`,z?[ug.backText]:[ug.detailsText],z?`${D.back} ${H}`:D.details,k),ee=wf("i",(x?"":"uc ")+"uc-subservice-link-arrow",z?[ug.backArrow]:[ug.detailsArrow],[],k);if(z)Y=wf("button",`${x?"":"uc "}${ag}`,[ug.backButton],[ee,W],k);else{const R=wf("p",(x?"":"uc ")+"uc-subservice-name",[ug.subserviceListItemName],G,k),D=wf("div",`${x?"":"uc "}${lg}`,[],[W,ee],k);Y=wf("button",`${x?"":"uc "}${ag}`,[ug.detailsButton],[R,D],k)}return Y.setAttribute("type","button"),Y.addEventListener("click",()=>{const R=document.getElementById(z?`uc-service-${$}`:`uc-subservice-${$}`);"uc-embed-collapsed-button"===R?.className&&R.click(),R?.scrollIntoView({behavior:"smooth"})}),Y},xf=(R,D,P,x,k)=>{R.appendChild(wf("div",rg,[ug.subElement],[...P?[Of(P,D)]:[],...x?[Lf(x,D)]:[],...k?[k]:[]],D.useUcStyling))},kf=(R,D,P,x)=>{P.length>0&&R.appendChild(wf("div",rg,[ug.subElement],[...x?[Of(x,D)]:[],...P.map(R=>Lf(R,D))],D.useUcStyling))},Vf=(R,D,P,x,k,G)=>{const{isTCF:H,useUcStyling:$,nonTcfClassName:z}=D,Y=wf("a",H?"uc-embed-link":`uc uc-a ${z}`,[{href:P},ug.link],x,$);xf(R,D,k,G,Y)},Uf=(R,D,P,x,k)=>{const{isTCF:G,useUcStyling:H,nonTcfClassName:$}=D,z=wf("ul",G?Nh:`uc uc-list ${$}`,[ug.subElementItemList],P.map(R=>wf("li",og,[ug.subElementItemListElement],R,H)),H);xf(R,D,x,k,z)},Mf=(R,D,P,x,k)=>{const G=document.getElementById(x);if(G){const{collapsed:x,collapsedContent:H,collapsedStyles:$,opened:z,openedContent:Y,openedStyles:W}="button"===k?{collapsed:Gh,collapsedContent:Hh,collapsedStyles:ug.collapsedButtonContent,opened:"uc-embed-opened-button",openedContent:"uc-embed-opened-button-content",openedStyles:ug.openedButtonContent}:{collapsed:zh,collapsedContent:jh,collapsedStyles:ug.collapsedLinkContent,opened:"uc-embed-opened-link",openedContent:"uc-embed-opened-link-content",openedStyles:ug.openedLinkArrow};"inline-block"===G.style.display?(Af(G,ug.collapsableDivContentHidden),G.setAttribute("class",$h),Af(D,$),Af(P,"button"===k?ug.collapsedArrow:ug.collapsedLinkArrow),P.setAttribute("class",Bh),D.setAttribute("class",H),R.setAttribute("class",x)):(Af(G,ug.collapsableDivContentShown),G.setAttribute("class","uc-embed-opened-content"),"button"===k?(Af(D,W),Af(P,ug.openedArrow)):Af(P,ug.openedLinkArrow),P.setAttribute("class","uc-embed-opened-arrow"),D.setAttribute("class",Y),R.setAttribute("class",z))}},Ff=(R,D,P,x,k)=>{let G;if(x){let R=null,H=null;const $=wf("h4",Hh,[ug.collapsedButtonContent],D,x),z=wf("i",Bh,[ug.collapsedArrow],[],x);if(k&&k.showToggle){const{service:D}=k;$.id=`${D.id}-title`,R=Nf(D.isEssential,D.consent.status,!1,x,R=>{const P=window[Od];return R.stopPropagation(),P?D.consent.status?P.rejectService(D.id):P.acceptService(D.id):Promise.reject()}),R.setAttribute("aria-labelledby",`${D.id}-title`),H=wf("div","",[ug.flexContainer],[R,z],x)}const Y=wf("button",Gh,[ug.collapsableButton],k?.showToggle&&R&&H?[$,H]:[$,z],x);Y.setAttribute("data-testid","uc-embed-collapsable-button"),Y.setAttribute("type","button"),k&&Y.setAttribute("id",k.isSubservice?`uc-subservice-${k.service.id}`:`uc-service-${k.service.id}`);const W=wf("div",$h,[ug.collapsableDivContentHidden,{id:`uc-embed-collapsable-${If()}`}],P,x);W.setAttribute("data-testid","uc-embed-collapsable-content"),Y.addEventListener("click",()=>Mf(Y,$,z,W.id,"button")),G=wf("div",Kh,[ug.collapsableDiv],[Y,W],x)}else G=wf("div",Kh,[],[wf("h4",Qh,[],D,x),wf("div",qh,[],P,x)],x);R.appendChild(G)},Bf=(R,D,P,x)=>{const{cookieMaxAgeSeconds:k,usesNonCookieAccess:G,cookieRefresh:H,usesCookies:$}=D;if(k||G||H||$){const D=((R,D,P,x,k)=>{const{maximumAge:G,nonCookieStorage:H,yes:$,no:z,cookieRefresh:Y,cookieStorage:W}=R,ee=[];return null!==k&&ee.push(`${W}: ${k?`${$}`:`${z}`}`),null!==D&&ee.push(`${G}: ${Cg(D,R)}`),null!==x&&ee.push(`${Y}: ${x?`${$}`:`${z}`}`),null!==P&&ee.push(`${H}: ${P?`${$}`:`${z}`}`),ee})(P,k,G,H,$);Uf(R,x,D,P.title,null)}},Gf=(R,D,P,x,k,G)=>{const H=[],{useUcStyling:$}=k;switch(x){case"loading":H.push(wf("p",eg,[ug.storedInfoActionText],P.loading,$));break;case"retry":{H.push(wf("p",eg,[ug.storedInfoActionText],P.error,$));const x=wf("p",eg,[ug.storedInfoActionLink],P.tryAgain,$);x.addEventListener("click",()=>{$f(R,null,D,P,k,G)}),H.push(x);break}}const z=wf("div","uc-embed-stored-info-action",[ug.storedInfoAction],H,$),Y=wf("div",tg,[ug.storedInfoItem],z,$);R.appendChild(wf("div",sg,[ug.subElementExpandableLink],Y,$))},Hf=(R,D,P,x)=>{const k=wf("p",ng,[ug.storedInfoItemSubElementTitle],`${D}: `,x),G=wf("p",ng,[ug.storedInfoItemSubElement],`${P}`,x);R.push(wf("div","uc-embed-stored-info-item-data",[ug.storedInfoItemSubElementRow],[k,G],x))},$f=async(R,D,P,x,k,G)=>{const s=()=>{for(;R.firstChild;)R.removeChild(R.firstChild)},a=D=>{s(),Gf(R,D,x,"retry",k)},l=D=>{s(),((R,D,P,x,k)=>{const{useUcStyling:G,isTCF:H}=x,$=D.disclosures.map(R=>{const D=[],{cookieRefresh:x,description:H,domain:$,identifier:z,maxAgeSeconds:Y,name:W,purposes:ee,type:te}=R,ne=z?`${z}`:`${W}`;if(D.push(wf("p",ig,[ug.storedInfoItemHeader],ne,G)),H&&D.push(wf("p",ig,[ug.storedInfoItemDescription],H,G)),Hf(D,P.type,`${te}`,G),"cookie"===te.toString()&&(Hf(D,P.duration,Cg(Y,P),G),null!=x&&Hf(D,P.cookieRefresh,x?P.yes:P.no,G)),$&&Hf(D,P.domain,Ig($,P.anyDomain,P.multipleDomains),G),ee&&ee.length>0){const R=[];ee.forEach(D=>{R.push(k?.find(R=>R.id===D)?.name||"")}),Hf(D,P.purposes,R.join("; "),G)}return wf("div",tg,[ug.storedInfoItem],D,G)});if(H&&D.domains&&D.domains.length>0){const R=D.domains.map(R=>{const D=[],{domain:x,use:k}=R;return D.push(wf("p",ig,[ug.storedInfoItemHeader],x,G)),k&&Hf(D,P.purposes,k,G),wf("div",tg,[ug.storedInfoItem],D,G)});$.push(wf("div","",[ug.verticalSpacer],"",G)),$.push(...R)}R.appendChild(wf("div",sg,[ug.subElementExpandableLink],$,G))})(R,D,x,k,G)};if(s(),Gf(R,"",x,"loading",k),P&&""!==P)try{const R=await Tg(P),D=R?await R.json():null;if(D?.disclosures){const{disclosures:R,domains:P}=D,x={disclosures:R,domains:P};x?.disclosures&&l(x)}else a(P)}catch(R){a(P)}else D&&D.disclosures.length>0&&l(D)},jf=(R,D,P,x,k)=>{const{deviceStorage:G,deviceStorageDisclosureUrl:H}=D;if(G?.disclosures&&G.disclosures.length>0||H&&""!==H){const D=document.createDocumentFragment();((R,D,P,x,k,G,H,$)=>{const{isTCF:z,useUcStyling:Y,nonTcfClassName:W}=H;let ee;if(Y){const R=wf("div",jh,[ug.collapsedLinkContent],D,Y),z=wf("i",Bh,[ug.collapsedLinkArrow],[],Y),W=wf("button",zh,[ug.collapsableLink],[R,z],Y),te=wf("div",$h,[ug.collapsableDivContentHidden,{id:`uc-embed-collapsable-${If()}`}],P,Y);W.setAttribute("type","button"),W.addEventListener("click",()=>{$f(te,x,k,G,H,$),Mf(W,R,z,te.id,"link")}),ee=wf("div",rg,[],[W,te],Y)}else{const R=wf("div",qh,[],P,Y);ee=wf("div",rg,[],[wf(Y||z?"h5":"h4",z?Qh:`uc uc-heading ${W}`,[],D,Y),R],Y),(async(R,D,P,x,k)=>{let G=null;const H={disclosures:[]};if(P&&""!==P)try{const R=await Tg(P),D=R?await R.json():null;if(D?.disclosures){const{disclosures:R,domains:P}=D;G={disclosures:R,domains:P}}return H}catch(R){return H}else{if(!(D&&D.disclosures.length>0))return H;G=D}return G.disclosures&&(H.disclosures=G.disclosures.map(D=>{const{cookieRefresh:P,description:x,domain:G,identifier:H,maxAgeSeconds:$,name:z,purposes:Y,type:W}=D,ee=H?`${R.name}: ${H};`:`${R.name}: ${z};`,te=x?`${x};`:"",ne=`${R.type}: ${W};`,ie=`${R.duration}: ${Cg($,R)}`,re=G?`${R.domain}: ${Ig(G,R.anyDomain,R.multipleDomains)};`:"",oe=null!=P?`${R.cookieRefresh}: ${P?R.yes:R.no}`:"";let ae="";if(Y&&Y.length>0){const D=[];Y.forEach(R=>{D.push(k?.find(D=>D.id===R)?.name||"")}),ae=`${R.purposes}: ${D.join("; ")}`}let le="";return"cookie"===W.toString()&&(le=`${ie};`,""!==oe&&(le+=` ${oe};`)),`${ee} ${te} ${ne} ${le} ${re} ${ae}`})),x.isTCF&&G.domains&&(H.domains=G.domains.map(R=>{const{domain:D,use:P}=R;return`${D}: ${P}`})),H})(G,x,k,H,$).then(D=>{D.disclosures.length>0?(Uf(R,H,D.disclosures,"",null),D.domains&&D.domains.length>0&&(R.appendChild(wf("div","",[ug.verticalSpacer],"",Y)),Uf(R,H,D.domains,"",null))):Uf(R,i(i({},H),{},{nonTcfClassName:z?null:`${W}Error`}),[G.error],"",null)})}R.appendChild(ee)})(R,P.storedInformation,D,G,H,P,x,k)}},Yf=(R,D,P,x)=>{const k=document.createDocumentFragment();D.forEach(R=>{k.appendChild(Pf({name:R.name,scrollToId:R.id},P,x))}),R.appendChild(k)},wg={tcfData:null,setTcfData:()=>{}},Og=_a(wg);Og.displayName="TcfContext";const Lg=rl(({children:R})=>{const[D,P]=Ba(wg.tcfData);return ta(Og.Provider,{value:{setTcfData:P,tcfData:D}},R)}),Xf=()=>Wa(Og),Ng={abTestVariant:"",baseHref:"",clearCategoryPurposeScrollToId:()=>{},clearServiceVendorScrollToId:()=>{},closeView:()=>{},currentLanguage:"",firstLayerVariant:null,isAmpEnabled:!1,isInFullScreen:!1,previousLanguage:"",previousView:Vd.NONE,scrollToIdTabViewCategoryPurpose:"",scrollToIdTabViewServiceVendors:"",scrollToSubServices:!1,secondLayerVariant:null,setBaseHref:()=>{},setIsInFullScreen:()=>{},setKeyPressed:()=>{},setLanguage:()=>{},setScrollToIdTabViewCategoryPurpose:()=>{},setScrollToIdTabViewServiceVendor:()=>{},setScrollToSubServices:()=>{},setTabView:()=>{},settingsCloseView:Vd.NONE,setView:()=>Promise.resolve(),tabView:ep.CATEGORIES_PURPOSES,uiVariant:Rs.DEFAULT,view:Vd.NONE},Rg=_a(Ng);Rg.displayName="UiContext";const Dg=rl(({children:R,initialUIValues:D,UC:P})=>{const{ui:x,setSettingsLabels:k,setSettingsUI:G}=Eg(),[H]=Ba(P.getAbTestVariant()),[$,z]=Ba(Ng.baseHref),[Y]=Ba(D.ampEnabled),[W]=Ba(D.variant),[ee,te]=Ba(null),[ne,ie]=Ba(null),[re,oe]=Ba(null),ae=za(!1),le=za(null);Ha(()=>{(ht(x)||dt(x))&&(ee!==x.firstLayer.variant&&te(x.firstLayer.variant),ne!==x.secondLayer.variant&&ie(x.secondLayer.variant))},[x]);const[ce,ue]=Ba(Ng.scrollToIdTabViewCategoryPurpose),[de,pe]=Ba(Ng.scrollToIdTabViewServiceVendors),[he,ge]=Ba(Ng.scrollToSubServices),[fe,ve]=Ba(Ng.tabView),[me,ye]=Ba(()=>{switch(D.initialLayer){case Ls.FIRST_LAYER:return{current:Vd.FIRST_LAYER,previous:Ng.previousView};case Ls.PRIVACY_BUTTON:return{current:Vd.PRIVACY_BUTTON,previous:Ng.previousView};case Ls.SECOND_LAYER:return{current:Vd.SECOND_LAYER,previous:Ng.previousView};default:return{current:Vd.NONE,previous:Ng.previousView}}}),[Ee,Re]=Ba(Ng.settingsCloseView),[De,Pe]=Ba(Ng.isInFullScreen),[xe,ke]=Ba({currentLanguage:Ng.currentLanguage,previousLanguage:Ng.previousLanguage}),{getUpdatedCategories:Ve,setCategories:Ue,categories:Me}=mh(),{setTcfData:Fe}=Xf(),F=R=>{ae.current=R},B=async R=>{(R=>{if(!(me.current!==Vd.NONE&&me.current!==Vd.PRIVACY_BUTTON||R!==Vd.FIRST_LAYER&&R!==Vd.SECOND_LAYER)){const R=document?.activeElement?.querySelector(":focus")||document?.activeElement?.shadowRoot?.querySelector(":focus")||document?.activeElement;R&&oe(R)}me.current!==Vd.FIRST_LAYER&&me.current!==Vd.SECOND_LAYER||R!==Vd.NONE&&R!==Vd.PRIVACY_BUTTON||(re&&ae.current&&re.focus(),oe(null),F(!1))})(R),await P.updateLayer((R=>{switch(R){case Vd.FIRST_LAYER:return Ls.FIRST_LAYER;case Vd.SECOND_LAYER:return Ls.SECOND_LAYER;case Vd.PRIVACY_BUTTON:return Ls.PRIVACY_BUTTON;case Vd.NONE:default:return Ls.NONE}})(R)).then(async()=>{if(R!==Vd.NONE){if(R!==Vd.FIRST_LAYER&&R!==Vd.SECOND_LAYER){const D=await Ve(R);Ue(D)}else Ue(mg(await Ve(R),Me));k(P.getSettingsLabels()),G(P.getSettingsUI()),W===Rs.TCF&&Fe(P.getTCFData())}else if((()=>{const R=Array.from(document.getElementsByClassName(Oh));return Array.from(document.getElementsByClassName(Ch)).length>0||R.length>0})()){const D=await Ve(R);Ue(D)}}),R!==Vd.SECOND_LAYER?Re(R):Re(me.current),ye(D=>({current:R,previous:D.current}))};return ta(Rg.Provider,{value:{abTestVariant:H,baseHref:$,clearCategoryPurposeScrollToId:()=>{ue("")},clearServiceVendorScrollToId:()=>{pe("")},closeView:async()=>{if(x&&!gt(x)){const R=window.location.href;let D=!x.privacyButtonUrls||0===x.privacyButtonUrls.contains.length;x.privacyButtonUrls&&x.privacyButtonUrls.contains.length>0&&x.privacyButtonUrls.contains.some(D=>R.includes(D))&&(D=!0),x.enablePrivacyButton&&D?await B(Vd.PRIVACY_BUTTON):await B(Vd.NONE)}else await B(Vd.NONE)},currentLanguage:xe.currentLanguage,firstLayerVariant:ee,isAmpEnabled:Y,isInFullScreen:De,languageModalRef:le,previousLanguage:xe.previousLanguage,previousView:me.previous,scrollToIdTabViewCategoryPurpose:ce,scrollToIdTabViewServiceVendors:de,scrollToSubServices:he,secondLayerVariant:ne,setBaseHref:z,setIsInFullScreen:Pe,setKeyPressed:F,setLanguage:R=>{ke(D=>({currentLanguage:R,previousLanguage:D.currentLanguage}))},setScrollToIdTabViewCategoryPurpose:ue,setScrollToIdTabViewServiceVendor:pe,setScrollToSubServices:ge,setTabView:ve,settingsCloseView:Ee,setView:B,tabView:fe,uiVariant:W,view:me.current}},ta("div",{ref:le}),R)}),ev=()=>Wa(Rg),tv=()=>({service:Array.from(document.getElementsByClassName(Ch)),tcf:Array.from(document.getElementsByClassName(Oh))});class iv{constructor({scope:R,method:D,result:P,setResult:x}){e(this,"scope",void 0),e(this,"isMounted",!1),e(this,"method",void 0),e(this,"mostRecentMutationId",void 0),e(this,"previousResult",void 0),e(this,"result",void 0),e(this,"setResult",void 0),this.scope=R,this.method=D,this.mostRecentMutationId=If(),this.result=P,this.setResult=x,this.runMutation=this.runMutation.bind(this)}execute(R){return this.isMounted=!0,[this.runMutation,R]}async runMutation(...R){this.onMutationStart();const D=this.generateNewMutationId();return this.mutate(...R).then(R=>(this.onMutationCompleted(R,D),R||{data:null})).catch(R=>{throw this.onMutationError(R,D),R})}mutate(...R){return this.method.call(this.scope,...R)}onMutationStart(){this.result.loading||this.updateResult({called:!0,data:null,error:null,loading:!0})}onMutationCompleted(R,D){this.isMostRecentMutation(D)&&this.updateResult({called:!0,data:R?R.data:null,error:null,loading:!1})}onMutationError(R,D){this.isMostRecentMutation(D)&&this.updateResult({called:!0,data:null,error:R,loading:!1})}generateNewMutationId(){const R=If();return this.mostRecentMutationId=R,R}isMostRecentMutation(R){return this.mostRecentMutationId===R}updateResult(R){!this.isMounted||this.previousResult&&Jd(this.previousResult,R)||(this.setResult(R),this.previousResult=R)}}const rv=(R,D)=>{const[P,x]=Ba({called:!1,loading:!1}),k=za();return(k.current||(k.current=new iv({method:R,result:P,scope:D,setResult:x})),k.current).execute(P)};let Pg=function(R){return R.AUTO="auto",R.START="start",R.CENTER="center",R.END="end",R}({}),xg=function(R){return R.HORIZONTAL="horizontal",R.VERTICAL="vertical",R}({}),kg=function(R){return R.OBSERVED="observed",R.REQUESTED="requested",R}({});xg.VERTICAL,xg.HORIZONTAL;const Vg={[xg.VERTICAL]:"height",[xg.HORIZONTAL]:"width"},Ug={[xg.VERTICAL]:"top",[xg.HORIZONTAL]:"left"},Mg={[xg.VERTICAL]:"marginTop",[xg.HORIZONTAL]:"marginLeft"},Fg={[xg.VERTICAL]:"marginBottom",[xg.HORIZONTAL]:"marginRight"},pv=(R,D)=>{const[P,x]=Ba(new Array(R).fill(D)),k=Ya((R,D)=>{P[R]!==D&&x(P=>{const x=P.slice();return x[R]=D,x})},[P]),G=Ya(R=>P[R],[P]);return{getItemSize:G,itemSize:P,setItemSize:k}},hv=({itemRef:R,index:D,getItemSize:P,setItemSize:x})=>{const[k,G]=Ba(50),{previousLanguage:H,currentLanguage:$}=ev();Ha(()=>{R.current&&setTimeout(()=>{const P=R.current?.getBoundingClientRect().height;P&&50===k&&(G(P),x(D,P))},200)},[]),$a(()=>{let z;50===k||""!==$&&$!==H?(z=R.current?.getBoundingClientRect().height,z&&(G(z),x(D,z))):z=P(D)},[$,R.current?.offsetHeight]);const l=()=>{const P=R?.current?.offsetHeight;P&&x(D,P)};return Ha(()=>{const e=()=>{l()};return window.addEventListener("resize",e,!0),()=>{window.removeEventListener("resize",e,!0)}},[]),{updateComponentSize:l}};function gv({targetKey:R}){const[D,P]=Ba(!1),x=Ya(({key:D})=>{D===R&&P(!0)},[R]),k=Ya(({key:D})=>{D===R&&P(!1)},[R]);return Ha(()=>(window.addEventListener("keydown",x),window.addEventListener("keyup",k),()=>{window.removeEventListener("keydown",x),window.removeEventListener("keyup",k)}),[x,k]),D}const vv=R=>{switch(R){case Rs.CCPA:return"CCPA";case Rs.DEFAULT:return"GDPR";case Rs.TCF:return"TCF";default:return""}},mv=({UC:R,children:D})=>{const{core:P,data:x}=Eg(),{uiVariant:k,view:G}=ev(),s=async D=>{try{const{code:$,regionCode:z}=await R.fetchUserCountry(),Y=(H={cmpLayer:G,controllerId:x?.controllerId??"",msg:`EUD ERROR[V2]: ${D.message}`,origin:window.location.origin,settingsId:P?.id??"",settingsVersion:P?.version??"",stackTrace:D.stack??"",timestamp:Date.now().toString(),uiVariant:vv(k),uiVersion:"3.90.0",userAgent:window.navigator.userAgent,userCountry:$,userRegion:z},JSON.stringify(H));throw new Error(Y)}catch(R){throw new Error(`Error: ${R}`)}var H},[H]=function(){var R=Fa(Na++,10),D=Ba();return R.__=R=>s(R),Ra.componentDidCatch||(Ra.componentDidCatch=function(P,x){R.__&&R.__(P,x),D[1](P)}),[D[0],function(){D[1](void 0)}]}();return H?null:ta(ia,null,D)},Bg=["children","id"],bv=R=>{let{children:D,id:P="focus-lock-id"}=R,x=r(R,Bg);const k=za(null),G=za([]),H=['a[href]:not([tabindex="-1"])','button:not([disabled]):not([tabindex="-1"])','input:not([disabled]):not([type="hidden"]):not([tabindex="-1"])','select:not([disabled]):not([tabindex="-1"])','textarea:not([disabled]):not([tabindex="-1"])','[contenteditable]:not([tabindex="-1"])','[tabindex]:not([tabindex="-1"])'].join(", "),c=R=>!(null===R.offsetParent||"hidden"===getComputedStyle(R).visibility);return Ha(()=>{const e=()=>{null!=k?.current&&(G.current=Array.from(k.current.querySelectorAll(H)).filter(R=>c(R)))},R=new MutationObserver(()=>{e()});return e(),null!=k?.current&&R.observe(k.current,{childList:!0}),()=>{R.disconnect()}},[k.current]),Ha(()=>{const e=R=>{const{code:D,shiftKey:P}=R;if("Tab"===D){if(null!=k?.current&&(G.current=Array.from(k.current.querySelectorAll(H)).filter(R=>c(R))),!G.current)return;const{length:D,0:x,[D-1]:$}=G.current;if(1===D)return void R.preventDefault();const z=document.activeElement?.shadowRoot?.querySelector(":focus-visible");if(void 0===z&&x&&(R.preventDefault(),x.focus()),!P&&z===$&&x)return R.preventDefault(),void x.focus();P&&z===x&&$&&(R.preventDefault(),$.focus())}};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[G]),ta(pl,{fallback:ta(ia,null)},ta("div",t({id:P},x,{ref:k}),D))},yv=({children:R})=>{const{setKeyPressed:D}=ev(),P=Ya(R=>{const{code:P}=R;D("Enter"===P||"Escape"===P)},[D]);return Ha(()=>(window.addEventListener("keydown",P),()=>{window.removeEventListener("keydown",P)}),[P]),ta(pl,{fallback:ta(ia,null)},ta(ia,null,R))},Gg=gl(()=>Promise.resolve().then(function(){return sS})),Hg=gl(()=>Promise.resolve().then(function(){return cS})),Tv=({initialUIValues:R,restartCMP:D,onThemeChange:P,UC:x,isHtmlDialog:k})=>{const{view:G,clearCategoryPurposeScrollToId:H,clearServiceVendorScrollToId:$,setTabView:z,setView:Y,uiVariant:W}=ev(),{isDesktop:ee}=ch(),{ui:te}=Eg();((R,D,P)=>{const[x,k]=Ba(null),{core:G,ui:H}=Eg(),{abTestVariant:$,setBaseHref:z,view:Y,previousView:W}=ev(),{setBodyScrolling:ee}=(()=>{const[R,D]=Ba(!0);return Ha(()=>{if(document.body){if(!R){if(!document.getElementById("uc-overflow-style")){const R=document.createElement("style");R.id="uc-overflow-style",R.innerHTML=".overflowHidden {overflow: hidden !important;}",document.body.appendChild(R)}document.body.classList.add("overflowHidden")}R&&document.body&&document.body.classList.contains("overflowHidden")&&document.body.classList.remove("overflowHidden")}},[R,D]),{setBodyScrolling:D}})(),te=bd();Ha(()=>{if(D.ampEnabled){const R=zd();z(R?.baseHref||"")}switch(D.initialLayer){case Ls.FIRST_LAYER:ee(!1);break;case Ls.PRIVACY_BUTTON:ee(!0);break;case Ls.SECOND_LAYER:ee(!1);break;default:ee(!0)}},[]),Ha(()=>{if(G){const R=rh(H,Id.includes(G.language.selected),D.variant);Jd(R,te)||P(R)}},[H]),Ha(()=>{if(Y!==W){const R=new window.CustomEvent(Ud.VIEW_CHANGED,{detail:{previousView:W,view:Y}});window.dispatchEvent(R)}},[W,Y]),Ha(()=>{if(H&&G&&Y!==W&&Y!==x){switch(Y){case Vd.FIRST_LAYER:if(!gt(H)){const{isOverlayEnabled:D}=H.firstLayer;ee(!D),W!==Vd.SECOND_LAYER&&Xd(Y,kd.CMP_SHOWN,$,R.setTrackingPixel)}break;case Vd.SECOND_LAYER:if(!gt(H)){const{isOverlayEnabled:D}=H.secondLayer;ee(!D),W!==Vd.FIRST_LAYER&&Xd(Y,kd.CMP_SHOWN,$,R.setTrackingPixel)}break;case Vd.PRIVACY_BUTTON:case Vd.NONE:default:ee(!0)}k(Y)}},[R.setTrackingPixel,W,ee,Y,$,H,x])})(x,R,P);const[ne]=(R=>{const[D,P]=Ba(!1),[x,k]=Ba(tv()),{categories:G,allCategories:H,services:$,allServices:z,setCategories:Y}=mh(),{core:W,labels:ee,ui:te}=Eg(),{uiVariant:ne}=ev(),ie=R.getTCFData(),{setSettingsUI:re,setSettingsLabels:oe}=Eg();return Ha(()=>{(x.service.length>0||x.tcf.length>0)&&Array.isArray(H)&&!D&&(P(!0),R.loadServices().then(async()=>{const D=await R.getCategoriesFullInfo();Y(mg(D,H)),re(R.getSettingsUI()),oe(R.getSettingsLabels())}))},[H,D,x]),Ha(()=>{if(W?.isEmbeddingsEnabled&&null!=ne&&uh(z)){P(!0);const R={categories:{all:H,visible:G},services:{all:z,visible:$}};if(x.tcf.length>0&&W.isTcfEnabled&&ie&&at(ee)&&Promise.resolve().then(function(){return Qm}).then(D=>{D.embedTCF(ie,R,x.tcf,ee)}),ee&&x.service.length>0&&Array.isArray(H)&&H.length>0){const D=lt(ee)?ee.secondLayer.serviceTab:"Services";Promise.resolve().then(function(){return tS}).then(P=>{P.embedGDPR(R,ee,D,x.service)})}}},[W,ne,$,G,H,z,te,x]),[async()=>{k(tv())}]})(x),{acceptAllDefault:ie,acceptAllTCF:re,closeCMP:oe,denyAllDefault:ae,denyAllTCF:le,updateLanguage:ce,showSecondLayer:ue}=(({initialUIValues:R,onThemeChange:D,restartCMP:P,restartEmbeddings:x,UC:k})=>{const[G,H]=Ba(!0),[,$]=Ba(!1),{abTestVariant:z,clearServiceVendorScrollToId:Y,closeView:W,isAmpEnabled:ee,setIsInFullScreen:te,setLanguage:ne,setScrollToIdTabViewServiceVendor:ie,setTabView:re,setView:oe,settingsCloseView:ae,uiVariant:le,view:ce}=ev(),{categories:ue,getUpdatedCategories:de,services:pe,setCategories:he}=mh(),{setTcfData:ge}=Xf(),{core:fe,ui:ve,setSettingsLabels:me,setSettingsUI:ye}=Eg(),[Re,{loading:De}]=rv(k.dismissAmp,k),[Pe,{loading:xe}]=rv(k.changeLanguage,k),[ke,{loading:Ve}]=rv(k.saveOptOutForCcpa,k),[Ue,{loading:Me}]=rv(k.updateServices,k),[Fe,{loading:Be}]=rv(k.acceptAllServices,k),[Ye,{loading:We}]=rv(k.acceptAllForTCF,k),[tt,{loading:ft}]=rv(k.acceptAllAmp,k),[vt,{loading:mt}]=rv(k.denyAllServices,k),[St,{loading:bt}]=rv(k.denyAllForTCF,k),[yt,{loading:wt}]=rv(k.denyAllAmp,k),[Ot]=rv(k.updateChoicesForTCF,k),Lt=Ya(async()=>{!Be&&fe&&Fe().then(async()=>{ee&&await tt(),Xd(ce,kd.ACCEPT_ALL,z,k.setTrackingPixel),he(await de(ce)),me(k.getSettingsLabels()),ye(k.getSettingsUI())})},[k,tt,Fe,Be,fe,ee,de,he,ce]),Nt=Ya(async()=>{if(Be||We||ft||!fe)return;const R=ce===Vd.FIRST_LAYER?Ee.FIRST_LAYER:Ee.SECOND_LAYER;await Ye(R),await Fe(),ee&&await tt(),Xd(ce,kd.ACCEPT_ALL,z,k.setTrackingPixel),he(await de(ce)),ge(k.getTCFData()),me(k.getSettingsLabels()),ye(k.getSettingsUI())},[k,tt,ft,Ye,We,Fe,Be,fe,ee,de,he,ge,ce]),Rt=Ya(async(R,D)=>{We||bt||!fe||Ot(R,D).then(()=>{Xd(ce,kd.SAVE,z,k.setTrackingPixel),ge(k.getTCFData())})},[k,tt,ft,Ye,We,Fe,Be,fe,ee,de,he,ge,ce]),Dt=Ya(async R=>{if(Ve)return;const D=!R;Xd(ce,D?kd.CCPA_TOGGLES_ON:kd.CCPA_TOGGLES_OFF,z,k.setTrackingPixel),$(D),ke(D),he(await de(ce)),me(k.getSettingsLabels()),ye(k.getSettingsUI())},[ke,Ve]),Pt=Ya(async(R,D,P=_s.EXPLICIT)=>{if(0===R.length)throw new Error(Md.SERVICE_MISSING_ID);if(Me||!fe)return;const x=R.reduce((R,P)=>pe.some(R=>R.id===P)?[...R,{serviceId:P,status:D}]:R,[]);Ue(x,P).then(async()=>{Xd(ce,kd.SAVE,z,k.setTrackingPixel),he(await de(ce)),me(k.getSettingsLabels()),ye(k.getSettingsUI())})},[k,fe,de,he,Ue,Me,ce]),kt=Ya(()=>{switch(R.variant){case Rs.CCPA:return Dt(!0);case Rs.DEFAULT:return Lt();case Rs.TCF:return Nt();default:return null}},[Lt,Nt,Dt,R.variant]),Vt=Ya(()=>k.areAllConsentsAccepted(),[k]),Ut=Ya(()=>k.getIsConsentRequired(),[k]),Ft=Ya(()=>k.clearStorage(),[k]),Bt=Ya(async()=>{De||(!ee||ce===Vd.SECOND_LAYER&&ae===Vd.FIRST_LAYER||(await Re(),te(!1)),ce===Vd.SECOND_LAYER?await oe(ae):W())},[W,Re,De,ee,te,ae,oe,ce]),Gt=Ya(async()=>{mt||wt||!fe||vt().then(async()=>{ee&&await yt(),Xd(ce,kd.DENY_ALL,z,k.setTrackingPixel),he(await de(ce)),me(k.getSettingsLabels()),ye(k.getSettingsUI())})},[k,fe,de,yt,wt,vt,mt,ee,he,ce]),Ht=Ya(async()=>{if(mt||bt||!fe)return;const R=ce===Vd.FIRST_LAYER?Ee.FIRST_LAYER:Ee.SECOND_LAYER;await St(R),await vt(),ee&&await k.denyAllAmp(),Xd(ce,kd.DENY_ALL,z,k.setTrackingPixel),he(await de(ce)),ge(k.getTCFData()),me(k.getSettingsLabels()),ye(k.getSettingsUI())},[k,St,bt,vt,mt,de,ee,fe,he,ge,ce]),zt=Ya(()=>{switch(R.variant){case Rs.CCPA:return Dt(!1);case Rs.DEFAULT:return Gt();case Rs.TCF:return Ht();default:return null}},[Dt,Gt,Ht,R.variant]),jt=Ya(()=>k.enableScriptsForServicesWithConsent(),[k]),Kt=Ya(()=>k.getSettingsCore().language.selected,[k]),Zt=Ya(()=>k.getServicesBaseInfo(),[k]),en=Ya(()=>k.getServicesFullInfo(),[k]),tn=Ya(()=>k.getSettingsCore(),[k]),nn=Ya(()=>k.getSettingsLabels(),[k]),rn=Ya(()=>k.getSettingsUI(),[k]),on=Ya(()=>k.getControllerId(),[k]),sn=Ya(()=>k.getTCFData()?.vendors,[k]),cn=Ya(()=>k.getTCFDisclosedVendorsSegmentString(),[k]),un=Ya(()=>k.getThirdPartyCount(),[k]),dn=Ya(async R=>!!await k.injectTCString(R)&&(await P(),!0),[k]),pn=Ya(async()=>oe(Vd.FIRST_LAYER),[oe]),mn=Ya(async R=>{let D=!1;return"string"==typeof R&&(D=["purposes","vendors","services","categories"].includes(R),D&&("purposes"!==R&&"categories"!==R||re(ep.CATEGORIES_PURPOSES),"vendors"!==R&&"services"!==R||re(ep.SERVICES_VENDORS))),R&&!D?(re(ep.SERVICES_VENDORS),setTimeout(()=>{ie(R)})):(D||re(Sg(ve,le)),Y()),ce!==Vd.SECOND_LAYER?oe(Vd.SECOND_LAYER):new Promise(R=>R())},[oe,re,ie,Y]),Sn=Ya(async P=>{fe&&Id.includes(fe.language.selected)!==Id.includes(P.toLowerCase())&&D(rh(ve,Id.includes(P.toLowerCase()),R.variant)),xe||(await Pe(P.toLowerCase()),he(mg(await de(ce),ue)),me(k.getSettingsLabels()),ne(P.toLowerCase()),le===Rs.TCF&&ge(k.getTCFData()))},[k,ue,Pe,xe,R.variant,de,D,he,ne,ge,le,ce]),yn=Ya(async R=>{await k.restoreUserSession(R),P()},[k]);return Ha(()=>{window[Od]={acceptAllConsents:kt,acceptService:(R,D=_s.EXPLICIT)=>Pt([R],!0,D),acceptServices:(R,D=_s.EXPLICIT)=>Pt(R,!0,D),areAllConsentsAccepted:Vt,clearStorage:Ft,closeCMP:Bt,denyAllConsents:zt,denyAndCloseCcpa:async()=>{await Dt(!1),Bt()},enableScriptsForServicesWithConsent:jt,getActiveLanguage:Kt,getControllerId:on,getServicesBaseInfo:Zt,getServicesFullInfo:en,getSettingsCore:tn,getSettingsLabels:nn,getSettingsUI:rn,getTCFDisclosedVendorsSegmentString:cn,getTCFVendors:sn,getThirdPartyCount:un,injectTCString:dn,isConsentRequired:Ut,isInitialized:()=>!0,rejectService:(R,D=_s.EXPLICIT)=>Pt([R],!1,D),rejectServices:(R,D=_s.EXPLICIT)=>Pt(R,!1,D),restartCMP:P,restartEmbeddings:x,restoreUserSession:yn,showFirstLayer:pn,showSecondLayer:R=>mn(R),updateChoicesForTcf:Rt,updateLanguage:Sn}},[ce]),Ha(()=>{window[Od]&&window[Od]?.isInitialized()&&G&&(H(!1),window.dispatchEvent(new window.CustomEvent(Ud.INITIALIZED)))},[window[Od],G]),{acceptAllDefault:Lt,acceptAllTCF:Nt,closeCMP:Bt,denyAllDefault:Gt,denyAllTCF:Ht,restoreUserSession:yn,showSecondLayer:R=>mn(R),updateLanguage:Sn}})({initialUIValues:R,onThemeChange:P,restartCMP:D,restartEmbeddings:ne,UC:x});if(G===Vd.NONE)return null;const de=ta(Gg,{acceptAllDefault:ie,acceptAllTCF:re,denyAllDefault:ae,denyAllTCF:le,onClose:oe,onLanguageChange:ce,showSecondLayer:ue,UC:x,isHtmlDialog:k});return ta(pl,{fallback:ta(ia,null)},ta(mv,{UC:x},ta(yv,null,ta(Hg,{show:G===Vd.PRIVACY_BUTTON,iconUrl:gt(te)?te.iconUrl:"",onClick:async()=>{z(Sg(te,W)),$(),H(),await Y(Vd.SECOND_LAYER)},position:gt(te)?te.position:"",isMobile:!ee}),G===Vd.FIRST_LAYER||G===Vd.SECOND_LAYER?ta(bv,{id:"app-focus-lock"},de):de)))},$g=_d.div(["color:",";direction:",";font-family:",";font-size:",";font-weight:",";line-height:1.15;-webkit-text-size-adjust:100%;-webkit-overflow-scrolling:touch;*,*:after,*:before{box-sizing:border-box;}[hidden]{display:none;}a{font-weight:normal;}button,[type='button'],[type='reset'],[type='submit']{cursor:pointer;font-family:inherit;line-height:inherit;transition:background-color 0.2s ease-in-out;}img{border-style:none;}"],({theme:R})=>R.typography.color.primary,({theme:R})=>R.typography.rtlEnabled?"rtl":"unset",({theme:R})=>R.typography.font,({theme:R})=>R.typography.size.root,({theme:R})=>R.typography.weight.regular);var zg=rl(({children:R})=>ta($g,null,R));let jg=function(R){return R.BANNER_CONTENT=".uc-banner-content",R.BUTTON_ACCEPT=".uc-accept-all-button",R.BUTTON_CUSTOMIZE=".uc-customize-button",R.BUTTON_DENY=".uc-deny-all-button",R.BUTTON_MORE=".uc-more-button",R.BUTTON_SAVE=".uc-save-button",R.BUTTONS=".uc-action-button",R.BUTTONS_CONTAINER=".uc-buttons-container",R.BUTTONS_CONTAINER_WRAPPER=".uc-buttons-container-wrapper",R.CARD_TITLE=".uc-card-title",R.CARD_DESCRIPTION=".uc-card-description",R.LANGUAGE_SWITCH=".uc-language-switch",R.LAYER=".uc-layer",R.LINKS=".uc-links",R.LOGO=".uc-logo",R.MESSAGE=".uc-message",R.PRIVACY_BUTTON=".uc-privacy-button",R.TAB_BUTTON=".uc-tab-button",R.TAB_BUTTON_ACTIVE=".uc-tab-button-active",R.TAB_CONTENT=".uc-tab-content",R.THIRD_COUNTRY_FILTER=".uc-third-country-data-transfer-filter",R.TITLE=".uc-title",R.TITLE_CONTAINER=".uc-title-container",R.CONTROLLER_ID_CARD=".uc-controller-id",R.MAX_CMP_STORAGE_DURATION=".uc-cmp-mac-storage-duration-id",R.TAB_BUTTONS_CONTAINER=".uc-tab-buttons-container",R.SECOND_LAYER=".uc-second-layer",R.POWERED_BY=".uc-powered-by",R.FOOTER_WRAPPER=".uc-footer-wrapper",R.BANNER_FOOTER_CONTENT=".uc-footer-content",R}({}),Yg=function(R){return R.DEFAULT="default",R.DESKTOP="desktop",R.IE="ie",R.LANDSCAPE="landscape",R.PORTRAIT="portrait",R.MOBILE="mobile",R.MOBILE_S="mobileSmall",R.MOBILE_XS="mobileExtraSmall",R.HOVER="hover",R}({});const Wg={directives:["border","height","margin","max-width","padding","width","max-height"],selector:jg.BANNER_CONTENT},Jg={directives:["border","font","height","margin","padding","width","flex","display","background","color","border"],selector:jg.BUTTONS},Xg={directives:["flex","width","justify-content","align-items","padding","column-gap","row-gap","margin"],selector:jg.BUTTONS_CONTAINER},Kg={directives:["order","flex","height","margin","padding","width","border","display","background","color","border",":hover"],selector:jg.BUTTON_ACCEPT},qg={directives:["order"],selector:jg.BUTTON_CUSTOMIZE},Qg={directives:["order","flex","height","margin","padding","width","border","display","background","color","border"],selector:jg.BUTTON_DENY},Zg={directives:["order","flex","height","margin","padding","width","border","display","background","color","border"],selector:jg.BUTTON_MORE},ef={directives:["order","flex","height","margin","padding","width","border","display","background","color","border"],selector:jg.BUTTON_SAVE},tf={directives:["font-size","font-weight","line-height"],selector:jg.CARD_DESCRIPTION},nf={directives:["font-size","font-weight","line-height"],selector:jg.CARD_TITLE},rf={directives:["background","color","font-size"],selector:jg.LANGUAGE_SWITCH},of={directives:["display","border","height","margin","max-width","padding","width","min-height","flex-direction","box-shadow"],selector:jg.LAYER},sf={directives:["display","border","height","margin","max-width","padding","width","min-height","flex-direction","box-shadow"],selector:jg.SECOND_LAYER},af={directives:["display","border","height","margin","max-width","padding","width","min-height","flex-direction","text-decoration"],selector:jg.POWERED_BY},lf={directives:["font","line-height","text"],selector:jg.LINKS},cf={directives:["height","width","max-width","max-height"],selector:jg.LOGO},uf={directives:["color","font","text"],selector:jg.MESSAGE},df={directives:["background","font","height","line-height","margin","padding","text","width"],selector:jg.TAB_BUTTON},pf={directives:["background","font","height","line-height","margin","padding","text","width","border-bottom"],selector:jg.TAB_BUTTON_ACTIVE},hf={directives:["display","width","justify-content","align-items","margin","padding"],selector:jg.TAB_BUTTONS_CONTAINER},gf={directives:["background","color","margin","padding"],selector:jg.TAB_CONTENT},ff={directives:["color","font","line-height","text"],selector:jg.TITLE},mf={directives:["width"],selector:jg.TITLE_CONTAINER},Sf=[Wg,Jg,Xg,Kg,qg,Qg,Zg,ef,tf,nf,rf,of,lf,cf,uf,{directives:["bottom","left","right","width","height"],selector:jg.PRIVACY_BUTTON},df,pf,gf,ff,mf,{directives:["color","background-color","border-color"],selector:jg.CONTROLLER_ID_CARD},{directives:["color","border-color","border-radius","background-color"],selector:jg.THIRD_COUNTRY_FILTER},hf,sf,af,{directives:["flex","width","justify-content","align-items","padding","column-gap","row-gap","margin"],selector:jg.BUTTONS_CONTAINER_WRAPPER},{directives:["border","padding","flex"],selector:jg.FOOTER_WRAPPER},{directives:["flex","padding","margin","border","justify-content","align-items","width","height","display"],selector:jg.BANNER_FOOTER_CONTENT}],Qv=(R,{directives:D},P=!1)=>{const x=/\s*([a-z-]+)\s*:\s*((?:[^;]*url\(.*?\)[^;]*|[^;]*)*)\s*(?:;|$)/gi;let k,G;for(;null!==(k=x.exec(R));){const R=k[1];if("string"!=typeof R)break;D.some(D=>0===R.indexOf(D))&&(G=i(i({},G),{},{[R.toLowerCase()]:`${k[2]} ${P?"!important":""}`}))}return G},Zv=R=>{const D=Sf.find(D=>R.split("__")[0]===D.selector);return D?-1!==R.indexOf(Yg.DESKTOP)?{allowedCss:D,media:Yg.DESKTOP}:-1!==R.indexOf(Yg.IE)?{allowedCss:D,media:Yg.IE}:-1!==R.indexOf(Yg.LANDSCAPE)?{allowedCss:D,media:Yg.LANDSCAPE}:-1!==R.indexOf(Yg.MOBILE_S)?{allowedCss:D,media:Yg.MOBILE_S}:-1!==R.indexOf(Yg.MOBILE_XS)?{allowedCss:D,media:Yg.MOBILE_XS}:-1!==R.indexOf(Yg.MOBILE)?{allowedCss:D,media:Yg.MOBILE}:-1!==R.indexOf(Yg.PORTRAIT)?{allowedCss:D,media:Yg.PORTRAIT}:-1!==R.indexOf(Yg.HOVER)?{allowedCss:D,media:Yg.HOVER}:{allowedCss:D,media:Yg.DEFAULT}:null},em=R=>R.trim().replace(/\s*,\s*/,", "),tm=R=>{const D=/([\s\S]+?)\{([\s\S]*?)\}/gm,P=R.replace(/\/\*[\s\S]*?\*\/|([^\\:]|^)\/\/.*$/gm,"").replace(/\/\*[\s\S]*?\*\//g,"");let x,k=[];for(;null!==(x=D.exec(P));){const R=em(x[1]),D=Zv(R),P=D&&Qv(x[2].trim(),D.allowedCss,D.media===Yg.HOVER);if(P&&D?.allowedCss){const R=k.find(R=>R.selector===D.allowedCss.selector);k=R?k.map(R=>R.selector===D.allowedCss.selector?i(i({},R),{},{[D.media]:P}):R):[...k,{[D.media]:P,selector:D.allowedCss.selector}]}}return k},yf=_a({css:[]});yf.displayName="CustomCssContext";const Ef=rl(({children:R,UC:D})=>{const P=D.getSettingsUI(),[x,k]=Ba(P&&P.customCss?tm(P.customCss):[]);return Ha(()=>{k(P&&P.customCss?tm(P.customCss):[])},[P]),ta(yf.Provider,{value:{css:x}},R)}),rm=(R,D=!1)=>{const{css:P}=Wa(yf),x=ch(),k=R?((R,D,{isDesktop:P,isIE:x,isLandscape:k,isPortrait:G,isMobileMd:H,isMobileExtraSmall:$,isMobileSmall:z},Y)=>{const W=R.find(R=>R.selector===D);let ee=null;const h=R=>{R&&(ee=i(ee?i({},ee):{},R))};return W&&Y?h(W.hover):W&&(h(W.default),P&&h(W.desktop),z&&h(W.mobileSmall),$&&h(W.mobileExtraSmall),H&&h(W.mobile),k&&!P&&h(W.landscape),G&&!P&&h(W.portrait),x&&h(W.ie)),ee})(P,R,x,D):null;return{rules:k}},om=R=>R.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\s+/g,"-").toLowerCase(),Cf={blockConsumeFocus:!1,blockFocus:!1,consumeNextFocus:()=>null,langSelectorOpen:!1,nextFocus:null,setBlockConsumeFocus:()=>null,setBlockFocus:()=>null,setLangSelectorStatus:()=>null,setNextFocus:()=>null},zf=_a(Cf);zf.displayName="GlobalStateContext";const Wf=rl(({children:R})=>{const{view:D}=ev(),[P,x]=Ba(Cf.blockFocus),[k,G]=Ba(Cf.blockConsumeFocus),[H,$]=Ba(Cf.nextFocus),[z,Y]=Ba(Cf.langSelectorOpen),[W,ee]=Ba(Cf.nextFocus),p=R=>{x(R)};return Ha(()=>{null===H&&p(!1)},[H]),ta(zf.Provider,{value:{blockConsumeFocus:k,blockFocus:P,consumeNextFocus:()=>{if("string"==typeof H)try{const R=document.getElementById(Ad),D=R?.shadowRoot?.querySelector(`[data-testid=${om(H)}]`)||null;null!==D&&D.focus()}catch(R){}else H?.current?.focus(),$(null!==W?W:null);G(!1)},langSelectorOpen:z,nextFocus:H,setBlockConsumeFocus:R=>{G(R)},setBlockFocus:p,setLangSelectorStatus:R=>{Y(R)},setNextFocus:R=>{null!==H&&D===Vd.SECOND_LAYER?ee(H):ee(null),$(R)}}},R)}),cm=()=>Wa(zf),Jf=_d.div(["display:flex;align-items:center;border-radius:10px;padding:12px 20px;background-color:",";box-shadow:0 3px 6px -1px rgba(0,0,0,0.12),0 10px 36px -4px rgba(77,96,232,0.3);gap:15px;z-index:2147483647;max-width:fit-content;position:fixed;left:0;right:0;bottom:40px;margin-left:auto;margin-right:auto;"],({theme:R})=>R.ui.layer.backgroundColor),Kf=_d.div(["font-size:1em;font-weight:normal;color:",";"],({theme:R})=>R.ui.text.color),qf=["fill"],gm=()=>ta("svg",{"aria-hidden":!0,width:"16px",height:"16px",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},ta("title",null,"arrow_back_black_24dp"),ta("g",{id:"[AI]-TCF",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},ta("g",{id:"arrow_back_black_24dp"},ta("polygon",{id:"Path",points:"0 0 16 0 16 16 0 16"}),ta("path",{d:"M12.6666667,7.33333333 L5.22,7.33333333 L8.47333333,4.08 C8.73333333,3.82 8.73333333,3.39333333 8.47333333,3.13333333 C8.21333333,2.87333333 7.79333333,2.87333333 7.53333333,3.13333333 L3.14,7.52666667 C2.88,7.78666667 2.88,8.20666667 3.14,8.46666667 L7.53333333,12.86 C7.79333333,13.12 8.21333333,13.12 8.47333333,12.86 C8.73333333,12.6 8.73333333,12.18 8.47333333,11.92 L5.22,8.66666667 L12.6666667,8.66666667 C13.0333333,8.66666667 13.3333333,8.36666667 13.3333333,8 C13.3333333,7.63333333 13.0333333,7.33333333 12.6666667,7.33333333 Z",id:"Path",fillRule:"nonzero"})))),fm=()=>ta("svg",{"aria-hidden":!0,width:"16px",height:"16px",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},ta("title",null,"arrow_forward_black_24dp"),ta("g",{id:"[AI]-TCF",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},ta("g",{id:"arrow_forward_black_24dp"},ta("polygon",{id:"Path",points:"0 0 16 0 16 16 0 16"}),ta("path",{d:"M3.33333333,8.66666667 L10.78,8.66666667 L7.52666667,11.92 C7.26666667,12.18 7.26666667,12.6066667 7.52666667,12.8666667 C7.78666667,13.1266667 8.20666667,13.1266667 8.46666667,12.8666667 L12.86,8.47333333 C13.12,8.21333333 13.12,7.79333333 12.86,7.53333333 L8.47333333,3.13333333 C8.21333333,2.87333333 7.79333333,2.87333333 7.53333333,3.13333333 C7.27333333,3.39333333 7.27333333,3.81333333 7.53333333,4.07333333 L10.78,7.33333333 L3.33333333,7.33333333 C2.96666667,7.33333333 2.66666667,7.63333333 2.66666667,8 C2.66666667,8.36666667 2.96666667,8.66666667 3.33333333,8.66666667 Z",id:"Path",fillRule:"nonzero"})))),vm=()=>ta("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"24px",height:"24px",viewBox:"0 0 24 24",version:"1.1","aria-hidden":!0},ta("title",null,"Group 3"),ta("defs",null,ta("path",{d:"M3.53623364,7.75586854 L0.266400843,4.75952008 C0.0958479367,4.60358349 0,4.39187701 0,4.17110068 C0,3.95032435 0.0958479367,3.73861786 0.266400843,3.58268127 C0.621619447,3.25717267 1.19543412,3.25717267 1.55065272,3.58268127 L4.18291366,5.98643714 L10.4493342,0.244131455 C10.8045528,-0.0813771518 11.3783674,-0.0813771518 11.733586,0.244131455 C12.0888047,0.569640063 12.0888047,1.09546166 11.733586,1.42097027 L4.82048551,7.75586854 C4.47437508,8.08137715 3.89145224,8.08137715 3.53623364,7.75586854 Z",id:"path-1"})),ta("g",{id:"[EUD-935]-Language-Selector",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},ta("g",{id:"Language-Switch---open",transform:"translate(-975.000000, -145.000000)"},ta("g",{id:"atom/language-switch-new-copy-4",transform:"translate(864.000000, 132.000000)"},ta("g",{id:"Language",transform:"translate(0.000000, 4.000000)"},ta("g",{id:"Group-3",transform:"translate(111.000000, 9.000000)"},ta("rect",{id:"Rectangle",fill:"transparent",x:"0",y:"0",width:"24",height:"24"}),ta("g",{id:"↳-Color",transform:"translate(6.000000, 8.000000)"},ta("mask",{id:"mask-2",fill:"white"},ta("use",{xlinkHref:"#path-1"})),ta("g",{id:"icon/action/check_circle_24px",fillRule:"nonzero"}),ta("rect",{id:"Rectangle",fill:"#303030",mask:"url(#mask-2)",x:"-4.44444444",y:"-5.55555556",width:"20",height:"20"})))))))),mm=()=>ta("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 492 492",height:"16px",width:"16px"},ta("path",{d:"M300.188 246L484.14 62.04c5.06-5.064 7.852-11.82 7.86-19.024 0-7.208-2.792-13.972-7.86-19.028L468.02 7.872C462.952 2.796 456.196.016 448.984.016c-7.2 0-13.956 2.78-19.024 7.856L246.008 191.82 62.048 7.872C56.988 2.796 50.228.016 43.02.016c-7.2 0-13.96 2.78-19.02 7.856L7.872 23.988c-10.496 10.496-10.496 27.568 0 38.052L191.828 246 7.872 429.952C2.808 435.024.02 441.78.02 448.984c0 7.204 2.788 13.96 7.852 19.028l16.124 16.116c5.06 5.072 11.824 7.856 19.02 7.856 7.208 0 13.968-2.784 19.028-7.856l183.96-183.952 183.952 183.952c5.068 5.072 11.824 7.856 19.024 7.856h.008c7.204 0 13.96-2.784 19.028-7.856l16.12-16.116c5.06-5.064 7.852-11.824 7.852-19.028 0-7.204-2.792-13.96-7.852-19.028L300.188 246z",fill:bd().ui.text.color})),Sm=({fill:R})=>{const D=bd();return ta("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"20px",height:"22px",viewBox:"0 0 24 24",version:"1.1"},ta("defs",null,ta("path",{d:"M15.5,1 L4.5,1 C3.4,1 2.5,1.9 2.5,3 L2.5,16 C2.5,16.55 2.95,17 3.5,17 C4.05,17 4.5,16.55 4.5,16 L4.5,4 C4.5,3.45 4.95,3 5.5,3 L15.5,3 C16.05,3 16.5,2.55 16.5,2 C16.5,1.45 16.05,1 15.5,1 Z M19.5,5 L8.5,5 C7.4,5 6.5,5.9 6.5,7 L6.5,21 C6.5,22.1 7.4,23 8.5,23 L19.5,23 C20.6,23 21.5,22.1 21.5,21 L21.5,7 C21.5,5.9 20.6,5 19.5,5 Z M18.5,21 L9.5,21 C8.95,21 8.5,20.55 8.5,20 L8.5,8 C8.5,7.45 8.95,7 9.5,7 L18.5,7 C19.05,7 19.5,7.45 19.5,8 L19.5,20 C19.5,20.55 19.05,21 18.5,21 Z",id:"copy-icon-path"})),ta("g",{id:"[EUD-1160]-Copy-Controller-ID",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},ta("g",{id:"Group",transform:"translate(-2.000000, -1.000000)"},ta("mask",{id:"copy-icon-mask",fill:"white"},ta("use",{xlinkHref:"#copy-icon-path"})),ta("g",{fillRule:"nonzero"}),ta("g",{mask:"url(#copy-icon-mask)",fill:R||D.ui.text.color},ta("rect",{x:"0",y:"0",width:"24",height:"24"})))))},bm=()=>{const R=bd();return ta("svg",{"aria-hidden":!0,width:"42px",height:"21px",viewBox:"0 0 42 23",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},ta("g",{fill:"none",fillRule:"evenodd"},ta("g",{transform:"translate(-86.000000, -31.000000)"},ta("g",{transform:"translate(87.000000, 32.949632)"},ta("path",{d:"M30.0094932,-0.5 C32.8534346,-0.5 35.4330697,0.632406246 37.3226603,2.47154687 C39.2173227,4.31562389 40.4181217,6.87029149 40.4959736,9.70631513 C40.4981622,12.7440885 39.3375699,15.4233885 37.4620437,17.3539966 C35.5609243,19.3109495 32.9241909,20.5 30.0094932,20.5 L30.0094932,20.5 L9.99050677,20.5 C7.14626154,20.5 4.56639324,19.3679366 2.67675543,17.5287725 C0.782448937,15.6850644 -0.418130086,13.1306858 -0.49597372,10.2937978 C-0.498162151,7.25597731 0.662425032,4.576654 2.53794226,2.64603293 C4.43906304,0.689056047 7.07580212,-0.5 9.99050677,-0.5 L9.99050677,-0.5 Z",stroke:"#ffffff",fill:R.ui.toggle.disabled.backgroundColor}),ta("path",{d:"M30,18 C34.418278,18 38,14.418278 38,10 C38,5.581722 34.418278,2 30,2 C25.581722,2 22,5.581722 22,10 C22,14.418278 25.581722,18 30,18 Z",fill:R.ui.toggle.disabled.iconColor}),ta("path",{d:"M15.8228065,6.13470278 C16.038065,6.32450074 16.0587048,6.65286384 15.8689068,6.8681223 C15.8665182,6.87083131 15.8641014,6.87351535 15.8616569,6.87617398 L9.47642761,13.8205455 C9.39995063,13.9037194 9.30336409,13.9576046 9.20086748,13.9814572 C9.01166585,14.0332136 8.80114396,13.9796182 8.65955286,13.8256282 L8.65955286,13.8256282 L6.13834311,11.083641 L6.13834311,11.083641 L6.13109318,11.0755893 C5.94129522,10.8603308 5.96193502,10.5319677 6.17719348,10.3421698 C6.39831738,10.1472001 6.73475108,10.164828 6.93428873,10.3818388 L6.93428873,10.3818388 L9.06521734,12.6992981 L15.0657113,6.17437179 C15.2652489,5.95736102 15.6016826,5.93973313 15.8228065,6.13470278 Z",fill:R.ui.toggle.disabled.iconColor})))))},ym=()=>{const R=bd();return ta("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24"},ta("path",{d:"M0 0h24v24H0V0z",fill:"none"}),ta("path",{fill:R.ui.links.iconColor,d:"M6 14c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h3c.55 0 1-.45 1-1s-.45-1-1-1H7v-2c0-.55-.45-1-1-1zm0-4c.55 0 1-.45 1-1V7h2c.55 0 1-.45 1-1s-.45-1-1-1H6c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1zm11 7h-2c-.55 0-1 .45-1 1s.45 1 1 1h3c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1s-1 .45-1 1v2zM14 6c0 .55.45 1 1 1h2v2c0 .55.45 1 1 1s1-.45 1-1V6c0-.55-.45-1-1-1h-3c-.55 0-1 .45-1 1z"}))},Em=({label:R})=>{const D=bd();return ta("svg",t({},R&&""!==R&&{alt:R},{width:"100%",height:"100%",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0}),ta("defs",null,ta("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95a15.65 15.65 0 00-1.38-3.56A8.03 8.03 0 0118.92 8zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56A7.987 7.987 0 015.08 16zm2.95-8H5.08a7.987 7.987 0 014.33-3.56A15.65 15.65 0 008.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95a8.03 8.03 0 01-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z",id:"a"})),ta("g",{fill:"none",fillRule:"evenodd"},ta("mask",{id:"b",fill:"white"},ta("use",{xlinkHref:"#a"})),ta("g",{mask:"url(#b)",fill:D.ui.text.color},ta("path",{d:"M0 0h24v24H0z"}))))},Cm=()=>{const R=bd();return ta("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",height:"20",viewBox:"0 0 24 24",width:"20"},ta("path",{d:"M0 0h24v24H0V0z",fill:"none"}),ta("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z",fill:R.ui.text.color}))},Tm=()=>{const R=bd();return ta("svg",{width:"16px",height:"16px",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0},ta("title",null,"icon/no"),ta("g",{id:"icon/no",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},ta("g",{id:"Group"},ta("polygon",{id:"Path",points:"0 0 24 0 24 24 0 24"}),ta("path",{d:"M18.7,4.51 L12.7,2.26 C12.25,2.09 11.75,2.09 11.3,2.26 L5.3,4.51 C4.52,4.81 4,5.55 4,6.39 L4,11.09 C4,16.03 7.27,20.66 11.71,21.92 C11.9,21.97 12.1,21.97 12.28,21.92 C16.73,20.66 20,16.03 20,11.09 L20,6.39 C20,5.55 19.48,4.81 18.7,4.51 Z M14.8,14.79 L14.8,14.79 C14.41,15.18 13.78,15.18 13.39,14.8 L12,13.42 L10.61,14.8 C10.22,15.19 9.59,15.19 9.2,14.8 L9.2,14.8 C8.81,14.41 8.81,13.78 9.2,13.39 L10.59,12 L9.2,10.61 C8.81,10.22 8.81,9.59 9.2,9.2 C9.59,8.81 10.22,8.81 10.61,9.2 L12,10.59 L13.39,9.2 C13.78,8.81 14.41,8.81 14.8,9.2 L14.8,9.2 C15.19,9.59 15.19,10.22 14.8,10.61 L13.42,12 L14.8,13.38 C15.19,13.77 15.19,14.4 14.8,14.79 Z",id:"Shape",fill:R.ui.text.color,fillRule:"nonzero"}))))},Im=()=>{const R=bd();return ta("svg",{"aria-hidden":!0,width:"42px",height:"21px",viewBox:"0 0 42 23",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},ta("g",{fill:"none",fillRule:"evenodd"},ta("g",{transform:"translate(-86.000000, -31.000000)"},ta("g",{transform:"translate(87.000000, 32.949632)"},ta("path",{d:"M30.0094932,-0.5 C32.8534346,-0.5 35.4330697,0.632406246 37.3226603,2.47154687 C39.2173227,4.31562389 40.4181217,6.87029149 40.4959736,9.70631513 C40.4981622,12.7440885 39.3375699,15.4233885 37.4620437,17.3539966 C35.5609243,19.3109495 32.9241909,20.5 30.0094932,20.5 L30.0094932,20.5 L9.99050677,20.5 C7.14626154,20.5 4.56639324,19.3679366 2.67675543,17.5287725 C0.782448937,15.6850644 -0.418130086,13.1306858 -0.49597372,10.2937978 C-0.498162151,7.25597731 0.662425032,4.576654 2.53794226,2.64603293 C4.43906304,0.689056047 7.07580212,-0.5 9.99050677,-0.5 L9.99050677,-0.5 Z",stroke:"#ffffff",fill:R.ui.toggle.inactive.backgroundColor}),ta("path",{d:"M 10 18 C 14.4183 18 18 14.4183 18 10 C 18 5.5817 14.4183 2 10 2 C 5.5817 2 2 5.5817 2 10 C 2 14.4183 5.5817 18 10 18 Z",fill:R.ui.toggle.inactive.iconColor}),ta("path",{d:"M 29.725 10.204 l 3.318 -3.315 a 0.51 0.51 0 1 0 -0.724 -0.724 L 29 9.48 l -3.319 -3.315 a 0.51 0.51 0 1 0 -0.724 0.724 l 3.318 3.315 l -3.318 3.317 a 0.51 0.51 0 1 0 0.724 0.723 L 29 10.928 l 3.319 3.317 a 0.509 0.509 0 0 0 0.724 0 c 0.2 -0.2 0.2 -0.525 0 -0.724 l -3.318 -3.317 z",fill:R.ui.toggle.inactive.iconColor,fillRule:"nonzero"})))))},_m=()=>{const R=bd();return ta("svg",{"aria-hidden":!0,width:"42px",height:"21px",viewBox:"0 0 42 23",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},ta("g",{fill:"none",fillRule:"evenodd"},ta("g",{transform:"translate(-86.000000, -31.000000)"},ta("g",{transform:"translate(87.000000, 32.949632)"},ta("path",{d:"M30.0094932,-0.5 C32.8534346,-0.5 35.4330697,0.632406246 37.3226603,2.47154687 C39.2173227,4.31562389 40.4181217,6.87029149 40.4959736,9.70631513 C40.4981622,12.7440885 39.3375699,15.4233885 37.4620437,17.3539966 C35.5609243,19.3109495 32.9241909,20.5 30.0094932,20.5 L30.0094932,20.5 L9.99050677,20.5 C7.14626154,20.5 4.56639324,19.3679366 2.67675543,17.5287725 C0.782448937,15.6850644 -0.418130086,13.1306858 -0.49597372,10.2937978 C-0.498162151,7.25597731 0.662425032,4.576654 2.53794226,2.64603293 C4.43906304,0.689056047 7.07580212,-0.5 9.99050677,-0.5 L9.99050677,-0.5 Z",stroke:"#ffffff",fill:R.ui.toggle.active.backgroundColor}),ta("path",{d:"M30,18 C34.418278,18 38,14.418278 38,10 C38,5.581722 34.418278,2 30,2 C25.581722,2 22,5.581722 22,10 C22,14.418278 25.581722,18 30,18 Z",fill:R.ui.toggle.active.iconColor}),ta("path",{d:"M15.8228065,6.13470278 C16.038065,6.32450074 16.0587048,6.65286384 15.8689068,6.8681223 C15.8665182,6.87083131 15.8641014,6.87351535 15.8616569,6.87617398 L9.47642761,13.8205455 C9.39995063,13.9037194 9.30336409,13.9576046 9.20086748,13.9814572 C9.01166585,14.0332136 8.80114396,13.9796182 8.65955286,13.8256282 L8.65955286,13.8256282 L6.13834311,11.083641 L6.13834311,11.083641 L6.13109318,11.0755893 C5.94129522,10.8603308 5.96193502,10.5319677 6.17719348,10.3421698 C6.39831738,10.1472001 6.73475108,10.164828 6.93428873,10.3818388 L6.93428873,10.3818388 L9.06521734,12.6992981 L15.0657113,6.17437179 C15.2652489,5.95736102 15.6016826,5.93973313 15.8228065,6.13470278 Z",fill:R.ui.toggle.active.iconColor})))))},Am=()=>ta("svg",{xmlns:"http://www.w3.org/2000/svg",height:"100%",viewBox:"0 0 24 24",width:"100%",fill:"currentColor","aria-hidden":!0},ta("path",{d:"M0 0h24v24H0V0z",fill:"none"}),ta("path",{d:"M17.81 4.47c-.08 0-.16-.02-.23-.06C15.66 3.42 14 3 12.01 3c-1.98 0-3.86.47-5.57 1.41-.24.13-.54.04-.68-.2-.13-.24-.04-.55.2-.68C7.82 2.52 9.86 2 12.01 2c2.13 0 3.99.47 6.03 1.52.25.13.34.43.21.67-.09.18-.26.28-.44.28zM3.5 9.72c-.1 0-.2-.03-.29-.09-.23-.16-.28-.47-.12-.7.99-1.4 2.25-2.5 3.75-3.27C9.98 4.04 14 4.03 17.15 5.65c1.5.77 2.76 1.86 3.75 3.25.16.22.11.54-.12.7-.23.16-.54.11-.7-.12-.9-1.26-2.04-2.25-3.39-2.94-2.87-1.47-6.54-1.47-9.4.01-1.36.7-2.5 1.7-3.4 2.96-.08.14-.23.21-.39.21zm6.25 12.07c-.13 0-.26-.05-.35-.15-.87-.87-1.34-1.43-2.01-2.64-.69-1.23-1.05-2.73-1.05-4.34 0-2.97 2.54-5.39 5.66-5.39s5.66 2.42 5.66 5.39c0 .28-.22.5-.5.5s-.5-.22-.5-.5c0-2.42-2.09-4.39-4.66-4.39s-4.66 1.97-4.66 4.39c0 1.44.32 2.77.93 3.85.64 1.15 1.08 1.64 1.85 2.42.19.2.19.51 0 .71-.11.1-.24.15-.37.15zm7.17-1.85c-1.19 0-2.24-.3-3.1-.89-1.49-1.01-2.38-2.65-2.38-4.39 0-.28.22-.5.5-.5s.5.22.5.5c0 1.41.72 2.74 1.94 3.56.71.48 1.54.71 2.54.71.24 0 .64-.03 1.04-.1.27-.05.53.13.58.41.05.27-.13.53-.41.58-.57.11-1.07.12-1.21.12zM14.91 22c-.04 0-.09-.01-.13-.02-1.59-.44-2.63-1.03-3.72-2.1-1.4-1.39-2.17-3.24-2.17-5.22 0-1.62 1.38-2.94 3.08-2.94s3.08 1.32 3.08 2.94c0 1.07.93 1.94 2.08 1.94s2.08-.87 2.08-1.94c0-3.77-3.25-6.83-7.25-6.83-2.84 0-5.44 1.58-6.61 4.03-.39.81-.59 1.76-.59 2.8 0 .78.07 2.01.67 3.61.1.26-.03.55-.29.64-.26.1-.55-.04-.64-.29-.49-1.31-.73-2.61-.73-3.96 0-1.2.23-2.29.68-3.24 1.33-2.79 4.28-4.6 7.51-4.6 4.55 0 8.25 3.51 8.25 7.83 0 1.62-1.38 2.94-3.08 2.94s-3.08-1.32-3.08-2.94c0-1.07-.93-1.94-2.08-1.94s-2.08.87-2.08 1.94c0 1.71.66 3.31 1.87 4.51.95.94 1.86 1.46 3.27 1.85.27.07.42.35.35.61-.05.23-.26.38-.47.38z"})),wm=()=>ta("svg",{xmlns:"http://www.w3.org/2000/svg",height:"100%",viewBox:"0 0 24 24",width:"100%",fill:"currentColor","aria-hidden":!0},ta("path",{d:"M0 0h24v24H0V0z",fill:"none"}),ta("path",{d:"M11.19 1.36l-7 3.11C3.47 4.79 3 5.51 3 6.3V11c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V6.3c0-.79-.47-1.51-1.19-1.83l-7-3.11c-.51-.23-1.11-.23-1.62 0zm-1.9 14.93L6.7 13.7c-.39-.39-.39-1.02 0-1.41.39-.39 1.02-.39 1.41 0L10 14.17l5.88-5.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-6.59 6.59c-.38.39-1.02.39-1.41 0z"})),Om=()=>ta("svg",{xmlns:"http://www.w3.org/2000/svg",height:"100%",viewBox:"0 0 24 24",width:"100%",fill:"currentColor","aria-hidden":!0},ta("rect",{fill:"none",height:"24",width:"24"}),ta("path",{d:"M19.5,12c0-0.23-0.01-0.45-0.03-0.68l1.86-1.41c0.4-0.3,0.51-0.86,0.26-1.3l-1.87-3.23c-0.25-0.44-0.79-0.62-1.25-0.42 l-2.15,0.91c-0.37-0.26-0.76-0.49-1.17-0.68l-0.29-2.31C14.8,2.38,14.37,2,13.87,2h-3.73C9.63,2,9.2,2.38,9.14,2.88L8.85,5.19 c-0.41,0.19-0.8,0.42-1.17,0.68L5.53,4.96c-0.46-0.2-1-0.02-1.25,0.42L2.41,8.62c-0.25,0.44-0.14,0.99,0.26,1.3l1.86,1.41 C4.51,11.55,4.5,11.77,4.5,12s0.01,0.45,0.03,0.68l-1.86,1.41c-0.4,0.3-0.51,0.86-0.26,1.3l1.87,3.23c0.25,0.44,0.79,0.62,1.25,0.42 l2.15-0.91c0.37,0.26,0.76,0.49,1.17,0.68l0.29,2.31C9.2,21.62,9.63,22,10.13,22h3.73c0.5,0,0.93-0.38,0.99-0.88l0.29-2.31 c0.41-0.19,0.8-0.42,1.17-0.68l2.15,0.91c0.46,0.2,1,0.02,1.25-0.42l1.87-3.23c0.25-0.44,0.14-0.99-0.26-1.3l-1.86-1.41 C19.49,12.45,19.5,12.23,19.5,12z M12.04,15.5c-1.93,0-3.5-1.57-3.5-3.5s1.57-3.5,3.5-3.5s3.5,1.57,3.5,3.5S13.97,15.5,12.04,15.5z"})),Qf=_d.div(["color:",";height:inherit;padding:12px;width:inherit;svg{fill:currentColor;}"],({iconColor:R})=>R),Zf=_d.div(["background-image:",";background-repeat:no-repeat;background-position:center;background-size:100%;display:block;height:100%;width:100%;"],({iconUrl:R})=>`url(${R})`),Rm=({iconUrl:R})=>-1!==R?.indexOf("icon-fingerprint")?ta(Am,null):-1!==R?.indexOf("icon-security")?ta(wm,null):-1!==R?.indexOf("icon-settings")?ta(Om,null):R?ta(Zf,{iconUrl:R}):ta(Am,null),Dm=({iconUrl:R})=>{const D=bd();return ta(Qf,{iconColor:D.ui.buttons.privacy.icon,"data-testid":"uc-privacy-icon","aria-hidden":!0},ta(Rm,{iconUrl:R}))},Pm=()=>{const R=bd();return ta("svg",{width:"16px",height:"16px",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0},ta("title",null,"icon/yes"),ta("g",{id:"icon/yes",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},ta("g",{id:"Group"},ta("polygon",{id:"Path",points:"0 0 24 0 24 24 0 24"}),ta("path",{d:"M11.3,2.26 L5.3,4.51 C4.52,4.81 4,5.55 4,6.39 L4,11.1 C4,16.15 7.41,20.86 12,22.01 C16.59,20.86 20,16.15 20,11.1 L20,6.39 C20,5.56 19.48,4.81 18.7,4.52 L12.7,2.27 C12.25,2.09 11.75,2.09 11.3,2.26 Z M10.23,14.83 L8.11,12.71 C7.72,12.32 7.72,11.69 8.11,11.3 L8.11,11.3 C8.5,10.91 9.13,10.91 9.52,11.3 L10.93,12.71 L14.47,9.17 C14.86,8.78 15.49,8.78 15.88,9.17 L15.88,9.17 C16.27,9.56 16.27,10.19 15.88,10.58 L11.64,14.82 C11.26,15.22 10.62,15.22 10.23,14.83 Z",id:"Shape",fill:R.ui.text.color,fillRule:"nonzero"}))))},xm=()=>ta("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:"32",height:"32"},ta("g",{"data-name":"Design"},ta("path",{d:"M0 0v16c0 8.823 7.177 16 16 16s16 -7.178 16 -16V0zm27.312 15.999c0 6.237 -5.074 11.311 -11.312 11.311s-11.311 -5.074 -11.311 -11.311V4.688h22.624z"}),ta("path",{d:"M12.731 21.763h5.441l-0.012 -0.021 6.229 -13.136h-5.42l-3.763 7.937 -1.794 -3.157H7.993l4.748 8.356z"}))),km=({label:R})=>{const{labels:D}=Eg(),P=R||D?.general.gpcSignalHonored||D?.gpcSignalHonored;return ta(Jf,null,ta(xm,null),ta(Kf,null,P))};if(Bs.debounceRendering=setTimeout,window.UC_UI_IS_RENDERED)throw new Error(Md.DUPLICATED_SCRIPT);window.UC_UI_IS_RENDERED=!0;let nv=!1,ov=!1;async function Mm(R){let D;return ov=R.options.dialogMode||!1,D=R.options.rulesetId?new Qs(R.options.rulesetId,i(i({},R.options),{},{useRulesetId:!0})):new Qs(R.settingsId,i({},R.options)),{initialUIValues:await D.init(),usercentrics:D}}function Fm(){let R=document.getElementById(Ad);R&&R.parentNode?.removeChild(R),R=document.createElement("div"),R.style.display="none",R.id=Ad,R.setAttribute("data-created-at",Date.now().toString());const D=document.createElement("div");return D.setAttribute("data-nosnippet","1"),D.setAttribute("data-testid","uc-app-container"),"function"==typeof R.attachShadow||document.head.attachShadow||HTMLElement.prototype.attachShadow?R.attachShadow({mode:"open"}).appendChild(D):R.appendChild(D),document.body.appendChild(R),nv=!0,{appContainer:D,rootContainer:R}}async function Bm(){return new Promise(R=>{"loading"!==document.readyState?((()=>{let R=null;try{R=localStorage.getItem("uc_ui_version"),R||Md.USE_LOADER}catch(R){Md.INACCESSIBLE_LOCAL_STORAGE}})(),R(Fm())):document.addEventListener("readystatechange",()=>{nv||R(Fm())})})}const Gm=({initialUIValues:R,restartCMP:D,target:P,usercentrics:x})=>{const k=x.getSettingsCore(),G=x.getSettingsUI(),[H,$]=Ba(!1),[z,Y]=Ba(G&&k?rh(G,Id.includes(k.language.selected),R.variant):Sh);return Ha(()=>{x.getGpcSignalHonoured()&&"gpc"===x.getActionTypePerformed()&&navigator.globalPrivacyControl&&[Ls.PRIVACY_BUTTON,Ls.NONE].includes(R.initialLayer)&&($(!0),setTimeout(()=>{$(!1)},3e3))},[]),Ha(()=>{setTimeout(()=>{const{rootContainer:R}=P;R&&"none"===R.style.display&&R.style.removeProperty("display")},200)},[P]),gd.displayName="ThemeProvider",ta(Wu,{target:P.appContainer,disableCSSOMInjection:!0},ta(gd,{theme:z},ta(zg,null,ta(Ef,{UC:x},ta(xh,{UC:x},ta(Eh,{UC:x},ta(Lg,null,ta(Dg,{UC:x,initialUIValues:R},ta(Wf,null,H&&ta(km,null),ta(Tv,{onThemeChange:Y,initialUIValues:R,restartCMP:D,UC:x,isHtmlDialog:ov}))))))))))};!async function e(){const R=(()=>{const R=document.getElementById("usercentrics-cmp"),D=R&&R.dataset,P=D?wd.AMP_ENABLED in R.dataset:window[wd.AMP_ENABLED];let x=D?R.dataset[wd.SETTINGS_ID]:window[wd.SETTINGS_ID];const k=D?R.dataset[wd.RULESET_ID]:window[wd.RULESET_ID];if(!window.__webpack_nonce__&&R&&R.nonce&&(window.__webpack_nonce__=R.nonce),P){const R=zd();x=R?.id||x}let G=null;try{G=D&&R.dataset[wd.CONTROLLER_IDS]&&JSON.parse(R.dataset[wd.CONTROLLER_IDS]||"[]")}catch{}const H=window.UC_UI_EXCLUDE_ACCEPT_ALL_VENDORS||[],$=H.length>0&&Array.isArray(H)&&H.every(R=>"number"==typeof R);return{options:i(i({ampEnabled:P,blockDataLayerPush:D&&wd.BLOCK_DATA_LAYER_PUSH in R.dataset,controllerId:D&&R.dataset[wd.CONTROLLER_ID]},G&&{controllerIds:G}),{},{createGppStub:D?wd.GPP_ENABLED in R.dataset:window[wd.GPP_ENABLED],createTcfApiStub:D?wd.TCF_ENABLED in R.dataset:window[wd.TCF_ENABLED],dialogMode:!(!D||!(wd.DIALOG_MODE in R.dataset)),disableServerConsents:D&&wd.DISABLE_SERVER_CONSENTS in R.dataset,disableTracking:D&&wd.DISABLE_TRACKING in R.dataset,disableUet:D&&wd.DISABLE_UET in R.dataset,enableDeprecatedV1ConsentSaving:D&&wd.DEPRECATED_V1_CONSENT_SAVING_ENABLED in R.dataset,euMode:D&&wd.EU_MODE in R.dataset&&"false"!==R.dataset[wd.EU_MODE],excludeAcceptAllVendors:$?H:[],language:D?R.dataset[wd.LANGUAGE]:window[wd.LANGUAGE],prefetchServices:!D||!(wd.AVOID_PREFETCH_SERVICES in R.dataset),rulesetId:k,sandboxEnv:D&&wd.SANDBOX_ENV in R.dataset,settingsCache:D&&R.dataset[wd.SETTINGS_CACHE],storeServiceIdToNameMapping:D&&wd.STORE_SERVICE_ID_TO_NAME_MAPPING in R.dataset,suppressCmpDisplay:D&&wd.SUPPRESS_CMP_DISPLAY in R.dataset||!0===window.UC_UI_SUPPRESS_CMP_DISPLAY,userCountryData:window.UC_UI_USER_COUNTRY_DATA||null,userSessionData:window.UC_UI_USER_SESSION_DATA||null,useRulesetId:!!k,version:D&&R.dataset[wd.VERSION]}),settingsId:x}})();let D,P;try{[D,P]=await Promise.all([Mm(R),Bm()])}catch(e){if(e.showErrorCmp){const{appContainer:R,rootContainer:D}=Fm();D.style.removeProperty("display"),Ta(ta(pl,{fallback:null},ta(gl(()=>Promise.resolve().then(function(){return dS})),null)),R)}return}let x="";document.body&&document.body.classList.contains("overflowHidden")&&(x="overflowHidden"),D.initialUIValues.ampEnabled&&await D.usercentrics.uiReadyAmp().catch(R=>console.warn(`AMP is not initialized: ${R}`)),Ta(ta(Gm,{initialUIValues:D.initialUIValues,restartCMP:async()=>{delete window[Od],""!==x&&document.body.classList.add(x),await e()},target:P,usercentrics:D.usercentrics}),P.appContainer)}();var sv,av,lv=function(R){function t(D,P,x){var k=R.call(this,x)||this;return k.categorySlug=D.categorySlug,k.consent=gn(D,P),k.id=D.templateId,k.isEssential=P.isEssential,k.isHidden=!!P.isHidden||D.isHidden,k.processorId="".concat(Gt(Mt())),k.subServices=[],k.subServicesLength=D.subConsents?D.subConsents.length:0,k.usesThirdCountry=D.usesThirdCountry,k.version=D.version,k.fetchSubServices=function(){return J(k,void 0,void 0,function(){var R,x,k,G,H,$,z,Y,W=this;return X(this,function(ee){switch(ee.label){case 0:if(R=sn.getInstance(),x=$n.getInstance(),k=D.subConsents,!(G=Wt(k)).length)return[2,[]];$=null,ee.label=1;case 1:return ee.trys.push([1,4,,5]),[4,R.fetchAggregatedServices(G,!1)];case 2:return H=ee.sent(),[4,R.fetchTranslations()];case 3:return $=ee.sent(),[3,5];case 4:throw ee.sent(),new Error(Ye.FETCH_DATA_PROCESSING_SERVICES);case 5:return H&&k?(z=x.getServicesBaseInfo(),Y=z.filter(function(R){return R.id===W.id}),this.subServices=k.reduce(function(R,D){var x=null==H?void 0:H.find(function(R){return D.templateId===R.templateId&&D.version===R.version});if(!x)return Q([],q(R),!1);var k=new t(D,P,x);return Q(Q([],q(R),!1),[k],!1)},[]),[2,this.subServices.reduce(function(R,D){var P=k.find(function(R){return D.id===R.templateId&&D.version===R.version});if(!P)return Q([],q(R),!1);var x=new vn(P,$,H),G=1===Y.length?{legalBasis:Y[0].legalBasis}:{},z=K(K(K(K({},x),D),{subServices:[]}),G);return Q(Q([],q(R),!1),[z],!1)},[])]):[2,[]]}})})},k}return N(t,R),t}(Tn),jm=function(R,D,P){this.isEssential=R.isEssential,this.isHidden=R.isHidden,this.services=Ym(R,D,P),this.slug=R.categorySlug},Ym=function(R,D,P){return D.reduce(function(D,x){if(x.categorySlug===R.categorySlug){var k=null==P?void 0:P.find(function(R){return x.templateId===R.templateId&&x.version===R.version}),G=new lv(x,R,k);return Q(Q([],q(D),!1),[G],!1)}return Q([],q(D),!1)},[])},Wm=function(R,D,P){this.categories=R.categories.reduce(function(D,x){var k=new jm(x,R.consentTemplates,P);return Ie(k.services)?Q(Q([],q(D),!1),[k],!1):Q([],q(D),!1)},[]),this.controllerId=D},cv=Object.freeze({__proto__:null,default:Wm}),Jm=function(R){return!(!R||!R.length||R[2]!==br.ACCEPT)},Xm=function(R){var D=R&&R.data&&R.data.__uspapiCall;D&&window[fe](D.command,D.version,function(P,x){!R.source||R.source instanceof MessagePort||R.source instanceof ServiceWorker||R.source.postMessage({__uspapiReturn:{callId:D.callId,returnValue:P,success:x}},"*")})},uv=function(R){function t(D,P,x,k){var G,H,$,z,Y,W,ee,te,ne=this;return(ne=R.call(this,P,x)||this).explicitDeny=!1,ne.iabAgreementExists=(null===(G=D.ccpa)||void 0===G?void 0:G.iabAgreementExists)||!1,ne.isActive=D.framework?["CCPA","UCPA","CTDPA","VCDPA","CPRA","CPA","MSPL"].includes(D.framework):null!==($=null===(H=D.ccpa)||void 0===H?void 0:H.isActive)&&void 0!==$&&$,ne.region=(null===(z=D.ccpa)||void 0===z?void 0:z.region)||We.US_CA_ONLY,ne.reshowAfterDays=(null===(Y=D.ccpa)||void 0===Y?void 0:Y.reshowAfterDays)||365,ne.showOnPageLoad=(null===(W=D.ccpa)||void 0===W?void 0:W.showOnPageLoad)||!1,ne.isOptedOut=!!navigator.globalPrivacyControl,ne.isExplicitConsented=k,ne.framework=D.framework||"ccpa",ne.legalFramework=ne.getLegalFramework(ne.framework),Ue.getCcpaString()!==pe?(ne.explicitNotice=!(!(te=Ue.getCcpaString())||!te.length||te[1]!==br.ACCEPT),!k&&ne.isOptedOut?(ne.explicitDeny=!0,ne.setCcpaStorage(ne.isOptedOut,ne.explicitNotice?br.ACCEPT:br.UNKNOWN)):(ne.isOptedOut=Jm(Ue.getCcpaString()),null===(ee=Cr.getInstance())||void 0===ee||ee.setSectionString(Ue.getCcpaString(),ne.legalFramework))):(ne.setCcpaStorage(ne.isOptedOut,br.UNKNOWN),ne.explicitNotice=!1),function(){if(!Object.prototype.hasOwnProperty.call(window.frames,he)){var R=document.createElement("iframe");R.style.display="none",R.name=he,document.body.appendChild(R)}}(),window[fe]=function(R,D,P){switch("function"!=typeof P&&Sr.API_INVALID_CALLBACK,1!==D&&P({uspString:null,version:null},!1),R){case ws.GET_USP_DATA:P({uspString:Ue.getCcpaString(),version:1},!0);break;case fe:P(null,!0);break;default:Sr.API_INVALID_COMMAND,P(null,!1)}},window.addEventListener("message",Xm,!1),ne}return N(t,R),t.prototype.getIsOptedOut=function(){return this.isOptedOut},t.prototype.getLegalFramework=function(R){switch(R){case"UCPA":return"usut";case"CTDPA":return"usct";case"VCDPA":return"usva";case"CPRA":return"usca";case"CPA":return"usco";default:return"uspv1"}},t.prototype.getExplicitNotice=function(){return this.explicitNotice},t.prototype.setCcpaStorage=function(R,D){var P;void 0===D&&(D=br.ACCEPT),this.setIsOptedOut(R),R?Ue.setCcpaTimeStamp():Ue.clearCcpaData(),D===br.ACCEPT?this.explicitNotice=!0:this.explicitNotice=!1;var x=function(R,D,P){var x="".concat(1).concat(D).concat(R?br.ACCEPT:br.DENY).concat(P?br.ACCEPT:br.UNKNOWN);return ge.test(x)||(x=pe),x}(R,D,this.iabAgreementExists);null===(P=Cr.getInstance())||void 0===P||P.setSectionString(x,this.legalFramework),xe.isCrossDomainAvailable()&&xe.setCrossDomainCcpaData({ccpaString:x,timestamp:Ue.getCcpaTimeStamp()}).catch(function(){re.CROSS_DOMAIN_SET_DATA_FAILURE}),Ue.setCcpaString(x)},t.prototype.setIsOptedOut=function(R){var D="boolean"==typeof R?R:Jm(R);this.isOptedOut=D},t}(Wm),dv=Object.freeze({__proto__:null,default:uv});function Zm(R,D){return Object.keys(D).forEach(function(P){"default"===P||"__esModule"===P||Object.prototype.hasOwnProperty.call(R,P)||Object.defineProperty(R,P,{enumerable:!0,get:function(){return D[P]}})}),R}function eS(R,D,P,x){Object.defineProperty(R,D,{get:P,set:x,enumerable:!0,configurable:!0})}var fv={},Sv={};eS(Sv,"TCFCommand",function(){return Ev});var Ev=function(R){return R.PING="ping",R.GET_TC_DATA="getTCData",R.GET_IN_APP_TC_DATA="getInAppTCData",R.GET_VENDOR_LIST="getVendorList",R.ADD_EVENT_LISTENER="addEventListener",R.REMOVE_EVENT_LISTENER="removeEventListener",R}({});Zm(fv,Sv),Zm(fv,{});var Cv={},_v={};eS(_v,"InAppTCData",function(){return Bv});var Iv={};eS(Iv,"TCData",function(){return Fv}),eS({},"CmpApiModel",function(){return Vv});var Av={},wv={};eS(wv,"CmpStatus",function(){return Ov});var Ov=function(R){return R.STUB="stub",R.LOADING="loading",R.LOADED="loaded",R.ERROR="error",R}({}),Lv={};eS(Lv,"DisplayStatus",function(){return Nv});var Nv=function(R){return R.VISIBLE="visible",R.HIDDEN="hidden",R.DISABLED="disabled",R}({}),Rv={};eS(Rv,"EventStatus",function(){return Dv});var Dv=function(R){return R.TC_LOADED="tcloaded",R.CMP_UI_SHOWN="cmpuishown",R.USER_ACTION_COMPLETE="useractioncomplete",R}({});Zm(Av,wv),Zm(Av,Lv),Zm(Av,Rv);var Pv=d(function e(R,D,P,x){c(this,e),this.success=!0,Object.assign(this,{callback:R,listenerId:P,param:D,next:x});try{this.respond()}catch(e){this.invokeCallback(null)}},[{key:"invokeCallback",value:function(R){var D=null!==R;"function"==typeof this.next?this.callback(this.next,R,D):this.callback(R,D)}}]),xv=function(){function e(){return c(this,e),l(this,e,arguments)}return v(e,Pv),d(e,[{key:"respond",value:function(){this.throwIfParamInvalid(),this.invokeCallback(new Fv(this.param,this.listenerId))}},{key:"throwIfParamInvalid",value:function(){if(!(void 0===this.param||Array.isArray(this.param)&&this.param.every(Number.isInteger)))throw new Error("Invalid Parameter")}}])}(),kv=d(function e(){c(this,e),this.eventQueue=new Map,this.queueNumber=0},[{key:"add",value:function(R){return this.eventQueue.set(this.queueNumber,R),this.queueNumber++}},{key:"remove",value:function(R){return this.eventQueue.delete(R)}},{key:"exec",value:function(){this.eventQueue.forEach(function(R,D){new xv(R.callback,R.param,D,R.next)})}},{key:"clear",value:function(){this.queueNumber=0,this.eventQueue.clear()}},{key:"size",get:function(){return this.eventQueue.size}}]),Vv=d(function e(){c(this,e)},null,[{key:"reset",value:function(){delete this.cmpId,delete this.cmpVersion,delete this.eventStatus,delete this.gdprApplies,delete this.tcModel,delete this.tcString,delete this.tcfPolicyVersion,this.enableAdvertiserConsentMode=!1,this.addtlConsent="",this.cmpStatus=Ov.LOADING,this.disabled=!1,this.displayStatus=Nv.HIDDEN,this.eventQueue.clear()}}]);(sv=Vv).apiVersion="2",sv.eventQueue=new kv,sv.cmpStatus=Ov.LOADING,sv.disabled=!1,sv.displayStatus=Nv.HIDDEN,sv.enableAdvertiserConsentMode=!1,sv.addtlConsent="";var Uv={};eS(Uv,"Response",function(){return Mv});var Mv=d(function e(){c(this,e),this.cmpId=Vv.cmpId,this.cmpVersion=Vv.cmpVersion,this.gdprApplies=Vv.gdprApplies,this.tcfPolicyVersion=Vv.tcfPolicyVersion}),Fv=function(){function e(R,D){var P;if(c(this,e),(P=l(this,e)).eventStatus=Vv.eventStatus,P.cmpStatus=Vv.cmpStatus,P.listenerId=D,Vv.gdprApplies){var x=Vv.tcModel;P.tcString=Vv.tcString,P.addtlConsent=x.addtlConsent,P.enableAdvertiserConsentMode=x.enableAdvertiserConsentMode,P.isServiceSpecific=x.isServiceSpecific,P.useNonStandardTexts=x.useNonStandardTexts,P.purposeOneTreatment=x.purposeOneTreatment,P.publisherCC=x.publisherCountryCode,!1===P.isServiceSpecific&&(P.outOfBand={allowedVendors:P.createVectorField(x.vendorsAllowed,R),disclosedVendors:P.createVectorField(x.vendorsDisclosed,R)}),P.purpose={consents:P.createVectorField(x.purposeConsents),legitimateInterests:P.createVectorField(x.purposeLegitimateInterests)},P.vendor={consents:P.createVectorField(x.vendorConsents,R),legitimateInterests:P.createVectorField(x.vendorLegitimateInterests,R),disclosedVendors:P.createVectorField(x.vendorsDisclosed,R)},P.specialFeatureOptins=P.createVectorField(x.specialFeatureOptins),P.publisher={consents:P.createVectorField(x.publisherConsents),legitimateInterests:P.createVectorField(x.publisherLegitimateInterests),customPurpose:{consents:P.createVectorField(x.publisherCustomConsents),legitimateInterests:P.createVectorField(x.publisherCustomLegitimateInterests)},restrictions:P.createRestrictions(x.publisherRestrictions)}}return P}return v(e,Mv),d(e,[{key:"createRestrictions",value:function(R){var D={};if(R.numRestrictions>0)for(var P=R.getMaxVendorId(),i=function(){var P=x.toString();R.getRestrictions(x).forEach(function(R){var x=R.purposeId.toString();D[x]||(D[x]={}),D[x][P]=R.restrictionType})},x=1;x<=P;x++)i();return D}},{key:"createVectorField",value:function(R,D){return D?D.reduce(function(D,P){return D[String(P)]=R.has(Number(P)),D},{}):I(R).reduce(function(R,D){return R[D[0].toString(10)]=D[1],R},{})}}])}(),Bv=function(){function e(R){var D;return c(this,e),delete(D=l(this,e,[R])).outOfBand,D}return v(e,Fv),d(e,[{key:"createVectorField",value:function(R){return I(R).reduce(function(R,D){return R+(D[1]?"1":"0")},"")}},{key:"createRestrictions",value:function(R){var D={};if(R.numRestrictions>0){var P=R.getMaxVendorId();R.getRestrictions().forEach(function(R){D[R.purposeId.toString()]="_".repeat(P)});for(var i=function(P){var x=P+1;R.getRestrictions(x).forEach(function(R){var x=R.restrictionType.toString(),k=R.purposeId.toString(),G=D[k].substr(0,P),H=D[k].substr(P+1);D[k]=G+x+H})},x=0;x3?k-3:0),H=3;H2&&void 0!==arguments[2])||arguments[2],x=arguments.length>3?arguments[3]:void 0;c(this,e),this.numUpdates=0,this.throwIfInvalidInt(R,"cmpId",2),this.throwIfInvalidInt(D,"cmpVersion",0),Vv.cmpId=R,Vv.cmpVersion=D,Vv.tcfPolicyVersion=4,this.isServiceSpecific=!!P,this.callResponder=new dm(x)},[{key:"throwIfInvalidInt",value:function(R,D,P){if(!("number"==typeof R&&Number.isInteger(R)&&R>=P))throw new Error("Invalid ".concat(D,": ").concat(R))}},{key:"update",value:function(R){var D=arguments.length>1&&void 0!==arguments[1]&&arguments[1],P=arguments.length>2?arguments[2]:void 0;if(Vv.disabled)throw new Error("CmpApi Disabled");Vv.cmpStatus=Ov.LOADED,D?(Vv.displayStatus=Nv.VISIBLE,Vv.eventStatus=Dv.CMP_UI_SHOWN):void 0===Vv.tcModel?(Vv.displayStatus=Nv.DISABLED,Vv.eventStatus=Dv.TC_LOADED):(Vv.displayStatus=Nv.HIDDEN,Vv.eventStatus=Dv.USER_ACTION_COMPLETE),Vv.gdprApplies=null!==R,Vv.gdprApplies?(""===R?(Vv.tcModel=new us,Vv.tcModel.cmpId=Vv.cmpId,Vv.tcModel.cmpVersion=Vv.cmpVersion):Vv.tcModel=Ps.decode(R),Vv.tcModel.addtlConsent=P||"",Vv.tcModel.enableAdvertiserConsentMode=Vv.enableAdvertiserConsentMode,Vv.tcModel.isServiceSpecific=this.isServiceSpecific,Vv.tcfPolicyVersion=Number(Vv.tcModel.policyVersion),Vv.tcString=R):Vv.tcModel=null,0===this.numUpdates?this.callResponder.purgeQueuedCalls():Vv.eventQueue.exec(),this.numUpdates++}},{key:"disable",value:function(){Vv.disabled=!0,Vv.cmpStatus=Ov.ERROR}}]),hm=function(R){function t(D,P,x,k,G,H,$,z){var Y=R.call(this,x,G)||this;Y.gcmEnabled=!1,Y.policyVersion=5,Y.locationInstance=tn.getInstance(),Y.botInstance=un.getInstance(),Y.previousStorage=null,Y.selectedVendorsIncludeNonDisclosed=!1,Y.cmpApi={},Y.tcModel=null,Y.tcfData=null,Y.vendors=[];var W=D.tcf2,ee=W.acmV2Enabled,te=W.advertiserConsentModeEnabled,ne=W.atpPurposes,ie=W.changedPurposes,re=W.cmpId,oe=W.cmpVersion,ae=W.consensuDomain,le=W.consensuScriptPath,ce=W.dataRetentionPeriodLabel,ue=W.disabledSpecialFeatures,pe=W.firstLayerHideToggles,he=W.gdprApplies,ge=W.hideLegitimateInterestToggles,fe=W.publisherCountryCode,ve=W.purposeOneTreatment,me=W.secondLayerHideToggles,ye=W.selectedStacks,Ee=W.selectedVendorIds,Re=W.selectedATPIds,De=W.tcfv2HistoryDisabled,Pe=W.vendorIdsOutsideEUList,xe=W.version,ke=D.googleConsentMode;return Y.acmData={isEnabled:!0===ee,vendorIds:ee&&Re||[],vendorsPurposes:ee&&ne?ps(ne):[]},Y.advertiserConsentModeEnabled=te,Y.gcmEnabled=!0===ke,Y.changedPurposes=function(R){return{legitimateInterestPurposes:(null==R?void 0:R.legIntPurposes)||[],notAllowedPurposes:(null==R?void 0:R.notAllowedPurposes)||[],purposes:(null==R?void 0:R.purposes)||[]}}(ie),Y.cmpId=re||5,Y.cmpVersion=oe||parseInt("3",10),Y.policyVersion="2.0"===xe||"2.1"===xe?2:5,Y.consensuScriptPath=function(R){return R||"/browser-sdk/".concat(de,"/cookie-bridge.html")}(le),Y.consensuSubdomain=function(R){return R||"https://usercentrics.mgr.consensu.org:443"}(ae),Y.dataRetentionLabel=ce,Y.disabledSpecialFeatures=ue||[],Y.gdprApplies=Ae(he,!1),Y.hideLegitimateInterestToggles=ge,Y.isAnalyticsEnabled=!0===D.consentAnalytics,Y.isApiV2Enabled=!0===D.consentAPIv2,Y.isConsentXDeviceEnabled=!0===D.consentXDevice,Y.publisherCountryCode=fe||"DE",Y.purposeOneTreatment=Ae(ve,!1),Y.resurfaceOptions=function(R){return{onATPListChanged:R.resurfaceATPListChanged,onIABLegalBasisChanged:R.resurfaceIABLegalBasisChanged,onPeriodEnded:R.resurfacePeriodEnded,onPurposeChanged:R.resurfacePurposeChanged,onVendorAdded:R.resurfaceVendorAdded}}(P),Y.stackIds=ye||[],Y.tcfv2HistoryDisabled=De,Y.useGranularChoice=function(R,D){return!R||!D}(pe,me),Y.vendorIds=Ee||[],Y.vendorIdsOutsideEUList=Pe||[],Y.selectedLanguage=Ts(H),Y.enableDeprecatedV1ConsentSaving=z,Y.cmpApi=new pm(Y.cmpId,Y.cmpVersion,!0),Y.dataTransferSettings=k,Y.excludeAcceptAllVendors=$,Y}return N(t,R),t.prototype.updateControllerId=function(R){this.dataTransferSettings.controllerId=R},t.prototype.applySpecialCasesForVendors=function(){var R=this;this.tcModel&&Object.values(this.vendors).forEach(function(D){var P=D.id;if(R.tcModel){var x=R.tcModel.gvl.vendors[P];(x&&0===x.purposes.length&&0===x.legIntPurposes.length&&x.specialPurposes.length>0||x&&x.purposes.length>0&&0===x.legIntPurposes.length&&x.specialPurposes.length>0)&&R.tcModel.vendorLegitimateInterests.set(P)}})},t.prototype.acceptAllDisclosed=function(R){var D,P;return J(this,void 0,void 0,function(){var x,k,G,H=this;return X(this,function($){switch($.label){case 0:return(x=this.tcModel)?(this.acmData.isEnabled&&this.acmData.vendors&&(this.acmData.vendors=this.acmData.vendors.map(function(R){return K(K({},R),{consent:{status:!0}})})),k=[],G=[],this.getVendors().forEach(function(R){var D=R.id,P=R.legitimateInterestPurposes,$=R.purposes,z=R.specialPurposes,Y=-1===H.excludeAcceptAllVendors.indexOf(D);$.length?(Y&&x.vendorConsents.set(D),k=k.concat($.map(function(R){return R.id}))):Y&&x.vendorConsents.unset(D),P.length||z.length&&0===P.length&&0===$.length?(Y&&x.vendorLegitimateInterests.set(D),G=G.concat(P.map(function(R){return R.id}))):Y&&x.vendorLegitimateInterests.unset(D)}),x.purposeConsents.set(Ne(k)),x.publisherConsents.set(Ne(k)),x.purposeLegitimateInterests.set(Ne(G)),x.publisherLegitimateInterests.set(Ne(G)),this.hideLegitimateInterestToggles&&(x.unsetAllVendorLegitimateInterests(),x.unsetAllPurposeLegitimateInterests()),this.applySpecialCasesForVendors(),x.specialFeatureOptins.set(ms(null===(P=null===(D=this.tcModel)||void 0===D?void 0:D.gvl)||void 0===P?void 0:P.stacks,this.getVendors(),this.disabledSpecialFeatures,this.stackIds)),this.tcModel=x,[4,this.updateTCString(R)]):[2];case 1:return $.sent(),[2]}})})},t.prototype.areAllPurposesAccepted=function(){var R,D;return vs(this.tcModel,null===(R=this.tcModel)||void 0===R?void 0:R.gvl.stacks,null===(D=this.tcModel)||void 0===D?void 0:D.gvl.purposes,this.vendors,this.disabledSpecialFeatures,this.stackIds,this.purposeOneTreatment,this.useGranularChoice,this.hideLegitimateInterestToggles).every(function(R){var D=!0,P=!0;return R.showConsentToggle&&null!==R.consent&&(D=R.consent),R.showLegitimateInterestToggle&&null!==R.legitimateInterestConsent&&(P=R.legitimateInterestConsent),D&&P})},t.prototype.areAllVendorsAccepted=function(){return this.getVendors().every(function(R){var D=!0,P=!0;return R.showConsentToggle&&null!==R.consent&&(D=R.consent),R.showLegitimateInterestConsentToggle&&null!==R.legitimateInterestConsent&&(P=R.legitimateInterestConsent),D&&P})},t.prototype.changeLanguage=function(R,D){var P;return J(this,void 0,void 0,function(){var x,k,G=this;return X(this,function(H){switch(H.label){case 0:return x=Ts(R),[4,this.resetGVLWithLanguage("en"===x?"".concat(x,"-v2"):x)];case 1:return H.sent(),D&&(this.dataRetentionLabel=D.dataRetentionPeriodLabel,D.acmV2Enabled&&D.atpPurposes&&(this.acmData.vendorsPurposes=ps(D.atpPurposes),k=null===(P=this.acmData.vendors)||void 0===P?void 0:P.map(function(R){return K(K({},R),{purposes:G.acmData.vendorsPurposes})}),this.acmData.vendors=k)),this.tcModel&&this.tcModel.gvl.narrowVendorsTo(this.vendorIds),this.resetTcfData(),[2]}})})},t.prototype.denyAllDisclosed=function(R){return J(this,void 0,void 0,function(){var D;return X(this,function(P){switch(P.label){case 0:return this.tcModel?(this.acmData.isEnabled&&this.acmData.vendors&&(this.acmData.vendors=this.acmData.vendors.map(function(R){return K(K({},R),{consent:{status:!1}})})),this.tcModel.unsetAllVendorConsents(),this.tcModel.unsetAllVendorLegitimateInterests(),this.applySpecialCasesForVendors(),D=fs(this.tcModel.gvl.stacks,this.getVendors(),this.disabledSpecialFeatures,this.stackIds,this.purposeOneTreatment),this.tcModel.purposeConsents.unset(D),this.tcModel.purposeLegitimateInterests.unset(D),this.tcModel.specialFeatureOptins.unset(ms(this.tcModel.gvl.stacks,this.getVendors(),this.disabledSpecialFeatures,this.stackIds)),this.tcModel.publisherConsents.unset(D),this.tcModel.publisherLegitimateInterests.unset(D),[4,this.updateTCString(R)]):[2];case 1:return P.sent(),[2]}})})},t.prototype.getSelectedVendorsIncludeNonDisclosed=function(){return this.selectedVendorsIncludeNonDisclosed},t.prototype.getTcModel=function(){return this.tcModel},t.prototype.getTCFData=function(){var R,D,P,x,k,G,H,$,z;return this.tcfData||(this.tcfData={acmVendors:this.getAcmVendors(),features:hs(this.getVendors(),null===(D=null===(R=this.tcModel)||void 0===R?void 0:R.gvl)||void 0===D?void 0:D.features),purposes:vs(this.tcModel,null===(P=this.tcModel)||void 0===P?void 0:P.gvl.stacks,null===(x=this.tcModel)||void 0===x?void 0:x.gvl.purposes,this.getVendors(),this.disabledSpecialFeatures,this.stackIds,this.purposeOneTreatment,this.useGranularChoice,this.hideLegitimateInterestToggles),specialFeatures:Ss(this.tcModel,null===(k=this.tcModel)||void 0===k?void 0:k.gvl,this.getVendors(),this.disabledSpecialFeatures,this.stackIds,this.useGranularChoice),specialPurposes:bs(null===(H=null===(G=this.tcModel)||void 0===G?void 0:G.gvl)||void 0===H?void 0:H.specialPurposes,this.getVendors()),stacks:ys(null===(z=null===($=this.tcModel)||void 0===$?void 0:$.gvl)||void 0===z?void 0:z.stacks,this.disabledSpecialFeatures,this.stackIds),vendors:this.getVendors()}),this.tcfData},t.prototype.getGdprApplies=function(){return J(this,void 0,void 0,function(){return X(this,function(R){switch(R.label){case 0:return this.gdprApplies?[4,this.locationInstance.getIsUserInEU()]:[2,!0];case 1:return[2,R.sent()]}})})},t.prototype.getACString=function(){var R;if(this.acmData.isEnabled&&(null===(R=this.acmData.vendors)||void 0===R?void 0:R.length)){var D=this.acmData.vendors.reduce(function(R,D){var P=R.consentedAcmVendorIds,x=R.disclosedAcmVendorIds;return D.consent.status?P.push(D.id):x.push(D.id),{consentedAcmVendorIds:P,disclosedAcmVendorIds:x}},{consentedAcmVendorIds:[],disclosedAcmVendorIds:[]}),P=D.consentedAcmVendorIds,x=D.disclosedAcmVendorIds;return"2~".concat(P.join("."),"~dv.").concat(x.join("."))}return""},t.prototype.getTCString=function(R){return this.tcModel?Ps.encode(this.tcModel,R):""},t.prototype.getTCFDisclosedVendorsSegmentString=function(){return this.getTCString({segments:[lo.VENDORS_DISCLOSED]})},t.prototype.init=function(R){return J(this,void 0,void 0,function(){var D,P;return X(this,function(x){switch(x.label){case 0:return this.previousStorage=Ue.fetchTCFData(),D=Ue.fetchTCString()||"",P=Ue.fetchACString()||"",[4,this.initTCModel({acString:P,tcString:D},R)];case 1:return x.sent(),this.botInstance.isRobot()&&this.acceptAllDisclosed(1),[2]}})})},t.prototype.setUIAsClosed=function(){return J(this,void 0,void 0,function(){return X(this,function(R){return[2,this.cmpApiUpdate(Ue.fetchTCString(),!1,Ue.fetchACString())]})})},t.prototype.setUIAsOpen=function(){return J(this,void 0,void 0,function(){return X(this,function(R){return[2,this.cmpApiUpdate(Ue.fetchTCString(),!0,Ue.fetchACString())]})})},t.prototype.shouldResurfaceUI=function(){var R=this.resurfaceOptions;return this.policyVersion>=4&&R.onATPListChanged&&function(R,D){if(!(null==R?void 0:R.acString)||!(null==R?void 0:R.acString.length))return!1;var P=null==R?void 0:R.acString.split("~")[1].split(".").filter(function(R){return""!==R}).map(function(R){return parseInt(R,10)}),x=null==R?void 0:R.acString.split("dv.")[1].split(".").filter(function(R){return""!==R}).map(function(R){return parseInt(R,10)}),k=Q(Q([],q(P),!1),q(x),!1).sort(function(R,D){return R-D}),G=D.map(function(R){return R.id}).sort(function(R,D){return R-D});return!(k.length===G.length&&k.every(function(R,D){return R===G[D]}))}(this.previousStorage,this.getAcmVendors())||R.onVendorAdded&&function(R,D){return!(!(null==R?void 0:R.vendors)||!(null==R?void 0:R.vendors.length)||D.every(function(D){return null==R?void 0:R.vendors.find(function(R){return R[ye.ID]===D.id})}))}(this.previousStorage,this.getVendors())||R.onPurposeChanged&&function(R,D){return!(!(null==R?void 0:R.vendors)||!R.vendors.length||R.vendors.length&&!R.vendors[0][ye.SPECIAL_PURPOSES]||R.vendors.every(function(R){var P=D.find(function(D){return D.id===R[ye.ID]});return!P||R[ye.PURPOSES].sort().toString()===P.purposes.map(function(R){return R.id}).sort().toString()&&R[ye.LEGITIMATE_INTEREST].sort().toString()===P.legitimateInterestPurposes.map(function(R){return R.id}).sort().toString()&&R[ye.SPECIAL_PURPOSES].sort().toString()===P.specialPurposes.map(function(R){return R.id}).sort().toString()}))}(this.previousStorage,this.getVendors())||R.onPeriodEnded&&function(R){return!!(null==R?void 0:R.timestamp)&&(Date.now()-R.timestamp)/864e5>390}(this.previousStorage)},t.prototype.updateChoices=function(R,D){return J(this,void 0,void 0,function(){var P=this;return X(this,function(x){switch(x.label){case 0:return R.purposes?[4,this.savePurposes(R.purposes)]:[3,2];case 1:x.sent(),x.label=2;case 2:return R.specialFeatures?[4,this.saveSpecialFeatures(R.specialFeatures)]:[3,4];case 3:x.sent(),x.label=4;case 4:return R.vendors?[4,this.saveVendors(R.vendors)]:[3,6];case 5:x.sent(),x.label=6;case 6:return this.tcModel&&this.hideLegitimateInterestToggles&&(this.tcModel.unsetAllVendorLegitimateInterests(),this.tcModel.unsetAllPurposeLegitimateInterests()),this.applySpecialCasesForVendors(),R.acmVendors&&this.acmData.isEnabled&&this.acmData.vendors&&R.acmVendors.forEach(function(R){var D,x=null===(D=P.acmData.vendors)||void 0===D?void 0:D.find(function(D){return D.id===R.id});x&&(x.consent.status=R.consent)}),R.purposes||R.specialFeatures||R.vendors||R.acmVendors?[4,this.updateTCString(D)]:[3,8];case 7:x.sent(),x.label=8;case 8:return[2]}})})},t.prototype.resetTcf=function(){this.cmpApi={},this.selectedVendorsIncludeNonDisclosed=!1,this.tcModel={},this.tcfData=null,this.vendors=[]},t.prototype.applyPurposeRestrictions=function(R,D){var P=this;R.forEach(function(R){var x,k=new no(R,D);null===(x=P.tcModel)||void 0===x||x.publisherRestrictions.restrictPurposeToLegalBasis(k)})},t.prototype.cmpApiUpdate=function(R,D,P){return void 0===P&&(P=""),J(this,void 0,void 0,function(){var x;return X(this,function(k){switch(k.label){case 0:return null==(x=Cr.getInstance())||x.setSectionString(R,"tcfeuv2"),[4,this.getGdprApplies()];case 1:return k.sent()?this.cmpApi.update(R,D,P):this.cmpApi.update(null),[2]}})})},t.prototype.getVendors=function(){return Ie(this.vendors)||this.setVendors(),this.vendors},t.prototype.initTCModel=function(R,D){var P,x,k=R.tcString,G=R.acString;return J(this,void 0,void 0,function(){var R,H,$,z,Y,W,ee,te,ne,ie,re,oe,ae,le,ce,ue,de,pe,he,ge,fe,me=this;return X(this,function(ye){switch(ye.label){case 0:if(!this.acmData.isEnabled||!this.acmData.vendorIds.length||this.acmData.vendors)return[3,2];if(R=[],G)try{R=G.split("~")[1].split(".").map(function(R){return parseInt(R,10)})}catch(R){}return[4,sn.getInstance().fetchAcmVendors().then(function(D){var P=[];me.acmData.vendorIds.forEach(function(x){if(D.providers[x]){var k=q(D.providers[x],2),G=k[0],H=k[1];P.push({consent:{status:R.some(function(R){return R===x})},id:x,name:G,privacyPolicyUrl:H,purposes:me.acmData.vendorsPurposes})}}),me.acmData.vendors=P})];case 1:ye.sent(),ye.label=2;case 2:return this.isPolicyVersion2()?(cs.baseUrl=D?"https://config.eu.usercentrics.eu/tcf2/":"https://api.usercentrics.eu/tcf2/",cs.languageFilename="[LANG].json",cs.latestFilename="en-v2.json"):(cs.baseUrl=D?"https://config.eu.usercentrics.eu/gvl/v3/":"https://api.usercentrics.eu/gvl/v3/",cs.languageFilename="[LANG].json",cs.latestFilename="en.json"),[4,sn.getInstance().fetchVendorsList("".concat(cs.baseUrl).concat(cs.latestFilename),this.changedPurposes.notAllowedPurposes)];case 3:if(H=ye.sent(),$=new cs(H),this.tcModel=new us($),this.tcModel.cmpId=this.cmpId,this.tcModel.cmpVersion=this.cmpVersion,this.tcModel.isServiceSpecific=!0,this.tcModel.publisherCountryCode=this.publisherCountryCode,this.tcModel.purposeOneTreatment=this.purposeOneTreatment,this.gcmEnabled&&(z=void 0===this.advertiserConsentModeEnabled||this.advertiserConsentModeEnabled,Y=void 0!==window.advertiserConsentMode?window.advertiserConsentMode:z,this.setEnableAdvertiserConsentMode(Y)),this.acmData.isEnabled&&this.setAddtlConsent(G||""),k)try{if(W=this.tcModel.gvl,ee=this.tcModel.publisherRestrictions,te=Ps.decode(k,this.tcModel),parseInt(te.policyVersion.toString(),10)>2){for(this.tcModel=te,this.isPolicyVersion2()||this.tcModel.purposeLegitimateInterests.unset([1,3,4,5,6]),ne=this.tcModel.purposeConsents.values(),ie=this.tcModel.purposeConsents.size,ae=0;ae<=ie-1;ae+=1)le=ne.next().value,W.purposes[le]||null===(P=this.tcModel)||void 0===P||P.purposeConsents.unset(le);for(re=this.tcModel.purposeLegitimateInterests.values(),oe=this.tcModel.purposeLegitimateInterests.size,ae=0;ae<=oe-1;ae+=1)le=re.next().value,W.purposes[le]||null===(x=this.tcModel)||void 0===x||x.purposeLegitimateInterests.unset(le);this.tcModel=Object.assign(this.tcModel,{gvl:W,publisherRestrictions:ee}),null==(ce=Cr.getInstance())||ce.setSectionString(k,"tcfeuv2")}}catch(R){ve.INIT_TCF_ERROR}if(null===this.tcModel)throw new Error(ve.TC_MODEL_UNDEFINED);if(!this.selectedLanguage)throw new Error(ve.SELECTED_LANGUAGE_UNDEFINED);return[4,this.tcModel.gvl.readyPromise.catch(function(R){ve.RESET_GVL_FAILURE})];case 4:return ye.sent(),this.tcModel.gvl.narrowVendorsTo(this.vendorIds),ue=Q([],q(this.tcModel.gvl.vendorIds),!1),de=Ts(this.selectedLanguage),[4,this.resetGVLWithLanguage("en"===de?"".concat(de,"-v2"):de)];case 5:return ye.sent(),pe=this.changedPurposes,he=pe.purposes,ge=pe.legitimateInterestPurposes,fe=pe.notAllowedPurposes,this.applyPurposeRestrictions(he,to.REQUIRE_CONSENT),this.applyPurposeRestrictions(ge,to.REQUIRE_LI),this.applyPurposeRestrictions(fe,to.NOT_ALLOWED),this.setSelectedVendorsIncludeNonDisclosed(ue),[2]}})})},t.prototype.setEnableAdvertiserConsentMode=function(R){this.tcModel&&(this.tcModel.enableAdvertiserConsentMode=R),Vv.enableAdvertiserConsentMode=R},t.prototype.setAddtlConsent=function(R){this.tcModel&&(this.tcModel.addtlConsent=R),Vv.addtlConsent=R},t.prototype.resetGVLWithLanguage=function(R){var D,P;return J(this,void 0,void 0,function(){var x;return X(this,function(k){return x=Ts(R),[2,null===(P=null===(D=this.tcModel)||void 0===D?void 0:D.gvl)||void 0===P?void 0:P.changeLanguage(x).catch(function(R){ve.RESET_GVL_FAILURE})]})})},t.prototype.resetTcfData=function(){this.setVendors(),this.tcfData=null},t.prototype.setSelectedVendorsIncludeNonDisclosed=function(R){var D=Ue.fetchTCFVendorsDisclosedObject();R.some(function(R){return!gs(R,D)})&&(this.selectedVendorsIncludeNonDisclosed=!0)},t.prototype.savePurposes=function(R){return J(this,void 0,void 0,function(){var D;return X(this,function(P){return(D=this.tcModel)?(R.forEach(function(R){R.consent?(D.purposeConsents.set(R.id),D.publisherConsents.set(R.id)):(D.purposeConsents.unset(R.id),D.publisherConsents.unset(R.id)),R.legitimateInterestConsent?(D.purposeLegitimateInterests.set(R.id),D.publisherLegitimateInterests.set(R.id)):(D.purposeLegitimateInterests.unset(R.id),D.publisherLegitimateInterests.unset(R.id))}),[2]):[2]})})},t.prototype.saveSpecialFeatures=function(R){return J(this,void 0,void 0,function(){var D;return X(this,function(P){return(D=this.tcModel)?(R.forEach(function(R){R.consent?D.specialFeatureOptins.set(R.id):D.specialFeatureOptins.unset(R.id)}),[2]):[2]})})},t.prototype.saveVendors=function(R){return J(this,void 0,void 0,function(){var D;return X(this,function(P){return(D=this.tcModel)?(R.forEach(function(R){R.consent?D.vendorConsents.set(R.id):D.vendorConsents.unset(R.id),R.legitimateInterestConsent?D.vendorLegitimateInterests.set(R.id):D.vendorLegitimateInterests.unset(R.id)}),[2]):[2]})})},t.prototype.setVendors=function(){this.vendors=function(R,D,P,x,k,G,H){if(!R)return[];var $=R.gvl,z=R.publisherRestrictions,Y=R.vendorConsents,W=R.vendorLegitimateInterests;if(!$)return[];var ee=Ue.fetchTCFVendorsDisclosedObject($.vendors),te=function(R){return(null==R?void 0:R.getRestrictions().map(function(R){return{purposeId:R.purposeId,restrictionType:R.restrictionType}}))||[]}(z);return Object.values($.vendors).map(function(R){var z,ne,ie,re=Le(R.purposes,$.purposes),oe=Le(R.legIntPurposes,$.purposes);k&&(re=re.filter(function(R){return 1!==R.id}));var ae=gs(R.id,ee),le=re.map(function(R){return R}),ce=oe.map(function(R){return R});te.forEach(function(D){var P=D.purposeId,x=D.restrictionType,k=R.flexiblePurposes.indexOf(P)>-1;switch(x){case to.NOT_ALLOWED:le=le.filter(function(R){return R.id!==P}),ce=ce.filter(function(R){return R.id!==P});break;case to.REQUIRE_CONSENT:ce=ce.filter(function(R){return R.id!==P||(k&&le.push(R),!1)});break;case to.REQUIRE_LI:le=le.filter(function(R){return R.id!==P||(k&&ce.push(R),!1)})}});var ue="",de="";R.urls&&R.urls.forEach(function(R){var D=R.langId,P=R.legIntClaim,x=R.privacy,k=D&&$.language&&D.toLowerCase()===$.language.toLowerCase();x&&(ue&&!k||(ue=x)),P&&(de&&!k||(de=P))});var pe,he=G.includes(R.id),ge=null===(z=R.dataDeclaration)||void 0===z?void 0:z.reduce(function(R,D){var P=$.dataCategories&&$.dataCategories[D];if(P){var x=K(K({},P),{id:P.id.toString()});return R?Q(Q([],q(R),!1),[x],!1):[x]}return R},[]);R.dataRetention&&R.dataRetention.stdRetention&&(pe=[{id:R.dataRetention.stdRetention.toString(),name:R.dataRetention.stdRetention.toString()}]);var fe=Le(R.specialFeatures.filter(function(R){return!D.includes(R)}),$.specialFeatures);return K(K(K({consent:ae?Y.has(R.id):null,cookieMaxAgeSeconds:R.cookieMaxAgeSeconds&&R.cookieMaxAgeSeconds>=0?R.cookieMaxAgeSeconds:null,cookieRefresh:Ae(R.cookieRefresh,null)},ge&&{dataCategories:ge}),pe&&{dataRetention:pe}),{deviceStorage:null,deviceStorageDisclosureUrl:R.deviceStorageDisclosureUrl||null,features:R.features.map(function(R){return{id:R,name:$.features[R].name}}),flexiblePurposes:Le(R.flexiblePurposes,$.purposes),id:R.id,legitimateInterestClaimUrl:de,legitimateInterestConsent:ae?W.has(R.id):null,legitimateInterestPurposes:ce,name:R.name,policyUrl:R.policyUrl,privacyUrl:ue,purposes:ds(le,null===(ne=R.dataRetention)||void 0===ne?void 0:ne.purposes,H),showConsentToggle:le.length>0&&P,showLegitimateInterestConsentToggle:ce.length>0&&P&&!x,showVendorOutsideEU:he,specialFeatures:fe,specialPurposes:ds(Le(R.specialPurposes,$.specialPurposes),null===(ie=R.dataRetention)||void 0===ie?void 0:ie.specialPurposes,H),usesCookies:Ae(R.usesCookies,!1),usesNonCookieAccess:Ae(R.usesNonCookieAccess,null)})})}(this.tcModel,this.disabledSpecialFeatures,this.useGranularChoice,this.hideLegitimateInterestToggles,this.purposeOneTreatment,this.vendorIdsOutsideEUList,this.dataRetentionLabel)},t.prototype.getTcfData=function(){return{acString:this.getACString(),tcString:this.getTCString(),timestamp:Date.now(),vendors:Cs(this.getVendors())}},t.prototype.injectTCString=function(R){return J(this,void 0,void 0,function(){var D,P;return X(this,function(x){switch(x.label){case 0:return D=Ps.decode(R),this.isPolicyVersion2()||D.purposeLegitimateInterests.unset([1,3,4,5,6]),this.tcModel&&D.lastUpdated>=this.tcModel.lastUpdated?(P=this.getTcfData(),Ue.saveTCFData(K(K({},P),{tcString:R})),[4,this.saveTCFData(P)]):[3,2];case 1:return x.sent(),[2,!0];case 2:return[2,!1]}})})},t.prototype.isPolicyVersion2=function(){return 2===this.policyVersion},t.prototype.saveTCFData=function(R){return J(this,void 0,void 0,function(){return X(this,function(D){return[2,sn.getInstance().saveTCFConsents(this.dataTransferSettings,R,"onTcfStringChange","explicit",this.isApiV2Enabled?{isAnalyticsEnabled:this.isAnalyticsEnabled,isConsentAPIv2Enabled:this.isConsentXDeviceEnabled}:null,this.enableDeprecatedV1ConsentSaving)]})})},t.prototype.updateTCString=function(R){return J(this,void 0,void 0,function(){var D;return X(this,function(P){switch(P.label){case 0:return this.tcModel&&(this.isPolicyVersion2()||this.tcModel.purposeLegitimateInterests.unset([1,3,4,5,6]),this.tcModel.consentScreen=R,this.tcModel.updated()),D=this.getTcfData(),Ue.saveTCFData(D),[4,this.cmpApiUpdate(D.tcString,!1,D.acString)];case 1:return P.sent(),this.resetTcfData(),this.botInstance.isRobot()?[3,3]:[4,this.saveTCFData(D)];case 2:P.sent(),P.label=3;case 3:return[2]}})})},t.prototype.getVendorsCount=function(){return(this.getVendors().length||0)+this.getAcmVendorsCount()},t.prototype.getAcmVendors=function(){return this.acmData.vendors||[]},t.prototype.getAcmVendorsCount=function(){return this.getAcmVendors().length||0},t}(Wm),Lm=Object.freeze({__proto__:null,default:hm}),Nm=Object.freeze({__proto__:null,default:function(R,D){var P,x,k,G,H,$,z,Y;this.customCss=null,this.hideDataProcessingServices=Ae(D.hideDataProcessingServices,!1),this.defaultView=Ae(D.defaultView,Be.CAT),this.backgroundColor=Ae(Je((null===(x=null===(P=R.customization)||void 0===P?void 0:P.color)||void 0===x?void 0:x.privacyButtonBackground)||(null===(G=null===(k=R.customization)||void 0===k?void 0:k.color)||void 0===G?void 0:G.primary)),null),this.desktopSize=Ae(null===(H=R.customization)||void 0===H?void 0:H.privacyButtonSizeDesktop,null),this.iconColor=Ae(Je(null===(z=null===($=R.customization)||void 0===$?void 0:$.color)||void 0===z?void 0:z.privacyButtonIcon),null),this.mobileSize=Ae(null===(Y=R.customization)||void 0===Y?void 0:Y.privacyButtonSizeMobile,null),this.iconUrl=Ae(R.buttonPrivacyOpenIconUrl,null),this.position=function(R){switch(R){case"tl":case"tr":case"bl":case"br":return R;default:return"bl"}}(R.buttonDisplayLocation)}}),zS=function(R){var D=R.customization;this.alignment=(null==D?void 0:D.buttonAlignment)||te.HORIZONTAL,this.borderRadius=Ze(Ae(null==D?void 0:D.borderRadiusButton,"4px")),this.secondLayer=R.moreInfoButtonUrl.length>0?R.moreInfoButtonUrl:null},Vm="#ffffff",YS=function(R,D){var P,x,k,G,H,$,z,Y,W,ee,te,ne,ie,re,oe,ae,le,ce=D.customization;this.customCss=(null===(P=D.features)||void 0===P?void 0:P.customCss)&&D.useUnsafeCustomCss&&null!=D.stylesCss?D.stylesCss:null,this.enablePrivacyButton=R.privacyButtonIsVisible,this.font={family:Ae(null===(x=null==ce?void 0:ce.font)||void 0===x?void 0:x.family,"BlinkMacSystemFont, -apple-system, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, Helvetica, Arial, sans-serif"),size:Ae(null===(k=null==ce?void 0:ce.font)||void 0===k?void 0:k.size,14)},this.layer={backgroundColor:Ae(Je(null===(G=null==ce?void 0:ce.color)||void 0===G?void 0:G.layerBackground),"#ffffff"),borderRadius:Ze(Ae(null==ce?void 0:ce.borderRadiusLayer,"8px"))},this.links={fontColor:Ae(Je(null===(H=null==ce?void 0:ce.color)||void 0===H?void 0:H.linkFont),"#303030"),iconColor:Ae(Je(null===($=null==ce?void 0:ce.color)||void 0===$?void 0:$.linkIcon),"#595959")},this.logo={altTag:Ae(null==ce?void 0:ce.logoAltTag,null),position:et(D.firstLayer.logoPosition),url:Ae(null==ce?void 0:ce.logoUrl,null)},this.overlay={backgroundColor:Ae(Je(null===(z=null==ce?void 0:ce.color)||void 0===z?void 0:z.overlay),"#333"),opacity:Ae(null==ce?void 0:ce.overlayOpacity,.7)},this.poweredBy=D.enablePoweredBy?{partnerUrl:D.partnerPoweredByUrl||null,url:"https://www.usercentrics.com/consent-management-platform-powered-by-usercentrics/"}:null,this.privacyButtonUrls=R.privacyButtonUrls,this.primaryColor=Ae(Je(null===(Y=null==ce?void 0:ce.color)||void 0===Y?void 0:Y.primary),"#0045A5"),this.accentColor=Ae(Je(null===(W=null==ce?void 0:ce.color)||void 0===W?void 0:W.tabsBorderColor),"#DDDDDD"),this.showCookieInformation=D.showCookieInformation,this.textColor=Ae(Je(null===(ee=null==ce?void 0:ce.color)||void 0===ee?void 0:ee.text),"#303030"),this.theme=1,this.toggle={active:{backgroundColor:Ae(Je(null===(te=null==ce?void 0:ce.color)||void 0===te?void 0:te.toggleActiveBackground)||Je(null===(ne=null==ce?void 0:ce.color)||void 0===ne?void 0:ne.primary),"#336AB7"),iconColor:Ae(Je(null===(ie=null==ce?void 0:ce.color)||void 0===ie?void 0:ie.toggleActiveIcon),Vm)},disabled:{backgroundColor:Ae(Je(null===(re=null==ce?void 0:ce.color)||void 0===re?void 0:re.toggleDisabledBackground),"#dedede"),iconColor:Ae(Je(null===(oe=null==ce?void 0:ce.color)||void 0===oe?void 0:oe.toggleDisabledIcon),Vm)},inactive:{backgroundColor:Ae(Je(null===(ae=null==ce?void 0:ce.color)||void 0===ae?void 0:ae.toggleInactiveBackground),"#595959"),iconColor:Ae(Je(null===(le=null==ce?void 0:ce.color)||void 0===le?void 0:le.toggleInactiveIcon),Vm)}},this.useBackgroundShadow=Ae(null==ce?void 0:ce.useBackgroundShadow,!0)},WS=function(R){this.secondLayerTrigger=Ae(R.firstLayer.secondLayerTrigger,W.LINK)},KS=function(R){this.isOverlayEnabled=qe(R)},JS=function(R){var D,P;this.defaultView=Ae(R.secondLayer.defaultView,Be.CAT),this.hideDataProcessingServices=Ae(R.secondLayer.hideDataProcessingServices,!1),this.isOverlayEnabled=Qe(R),this.showCategoriesTab=Ae(R.secondLayer.tabsCategoriesIsEnabled,!0),this.showServicesTab=Ae(R.secondLayer.tabsServicesIsEnabled,!0),this.tabColor=Ae(Je(null===(P=null===(D=R.customization)||void 0===D?void 0:D.color)||void 0===P?void 0:P.secondLayerTab),null)},Um=function(R){function t(D,P){var x,k,G=this;G=R.call(this,D,P)||this;var H=P.customization;return G.buttons=K(K({},new zS(P)),{ok:{backgroundColor:Je(null===(x=null==H?void 0:H.color)||void 0===x?void 0:x.ccpaButtonColor),textColor:Je(null===(k=null==H?void 0:H.color)||void 0===k?void 0:k.ccpaButtonTextColor)},optOutNotice:{isHidden:P.ccpa.removeDoNotSellToggle,label:P.ccpa.optOutNoticeLabel||"Do not sell my personal information"}}),G.firstLayer=K(K(K({},new WS(P)),new KS(P)),{hideToggles:!0,isLanguageSelectorEnabled:!Ke(P.ccpa.firstLayerHideLanguageSwitch,!P.showLanguageDropdown),showShortDescriptionOnDesktop:!0===P.ccpa.firstLayerUseShortMessage,showShortDescriptionOnMobile:P.ccpa.firstLayerMobileDescriptionIsActive,variant:P.ccpa.firstLayerVariant||"BANNER"}),G.secondLayer=K(K({},new JS(K(K({},P),{secondLayer:K(K({},P.secondLayer),{hideDataProcessingServices:!1})}))),{dpsDisplayFormat:P.dpsDisplayFormat||ne.ALL,hideToggles:!0,isLanguageSelectorEnabled:!Ke(P.ccpa.secondLayerHideLanguageSwitch,!P.showLanguageDropdown),side:P.ccpa.secondLayerSide||"LEFT",variant:P.ccpa.secondLayerVariant||"CENTER"}),G}return N(t,R),t}(YS),Hm=Object.freeze({__proto__:null,default:Um}),QS=function(R){var D,P,x,k,G=R.customization;this.accept={backgroundColor:Je(null===(D=null==G?void 0:G.color)||void 0===D?void 0:D.acceptBtnBackground),textColor:Je(null===(P=null==G?void 0:G.color)||void 0===P?void 0:P.acceptBtnText)},this.deny={backgroundColor:Je(null===(x=null==G?void 0:G.color)||void 0===x?void 0:x.denyBtnBackground),textColor:Je(null===(k=null==G?void 0:G.color)||void 0===k?void 0:k.denyBtnText)}},$m=function(R){function t(D,P){var x,k,G,H,$=this;$=R.call(this,D,P)||this;var z=P.customization;return $.buttons=K(K(K({},new QS(P)),new zS(P)),{more:{backgroundColor:Ae(Je(null===(x=null==z?void 0:z.color)||void 0===x?void 0:x.moreBtnBackground),"#0045A5"),textColor:Ae(Je(null===(k=null==z?void 0:z.color)||void 0===k?void 0:k.moreBtnText),"#FAFAFA")},save:{backgroundColor:Je(null===(G=null==z?void 0:z.color)||void 0===G?void 0:G.saveBtnBackground),textColor:Je(null===(H=null==z?void 0:z.color)||void 0===H?void 0:H.saveBtnText)}}),$.firstLayer=K(K(K({},new KS(P)),new WS(P)),{closeOption:P.firstLayer.closeOption||null,hideButtonDeny:Ke(P.firstLayer.hideButtonDeny,!P.btnDenyIsVisible),hideToggles:!1,isCategoryTogglesEnabled:P.firstLayer.isCategoryTogglesEnabled,isLanguageSelectorEnabled:!Ke(P.firstLayer.hideLanguageSwitch,!P.showLanguageDropdown),showShortDescriptionOnDesktop:!0===P.firstLayer.useShortMessage,showShortDescriptionOnMobile:P.bannerMobileDescriptionIsActive,variant:Ae(P.firstLayer.variant,"BANNER")}),$.secondLayer=K(K({},new JS(P)),{dpsDisplayFormat:P.dpsDisplayFormat||ne.ALL,hideButtonDeny:Ke(P.secondLayer.hideButtonDeny,!P.btnDenyIsVisible),hideToggles:!1,hideTogglesForServices:Ae(P.secondLayer.hideTogglesForServices,!1),isLanguageSelectorEnabled:!Ke(P.secondLayer.hideLanguageSwitch,!P.showLanguageDropdown),side:P.secondLayer.side||"LEFT",variant:P.secondLayer.variant||"CENTER"}),$}return N(t,R),t}(YS),zm=Object.freeze({__proto__:null,default:$m}),Km=function(R){function t(D,P){var x,k,G,H,$,z=this;z=R.call(this,D,P)||this;var Y=P.customization;return z.buttons=K(K(K({},new QS(P)),new zS(P)),{save:{backgroundColor:Je(null===(x=null==Y?void 0:Y.color)||void 0===x?void 0:x.saveBtnBackground),textColor:Je(null===(k=null==Y?void 0:Y.color)||void 0===k?void 0:k.saveBtnText)}}),z.firstLayer=K(K({},new WS(P)),{hideButtonDeny:Ke(P.tcf2.firstLayerHideButtonDeny,!P.tcf2.buttonsDenyAllIsEnabled),hideCustomizationButton:!0===(null===(G=P.tcf2)||void 0===G?void 0:G.enforceAcceptAll),hideNonIabPurposes:P.tcf2.hideNonIabOnFirstLayer,hideToggles:P.tcf2.firstLayerHideToggles||!0===P.tcf2.enforceAcceptAll,isOverlayEnabled:qe(P),showDescriptions:P.tcf2.firstLayerShowDescriptions}),z.secondLayer={dpsDisplayFormat:P.dpsDisplayFormat||ne.ALL,hideButtonDeny:Ke(P.tcf2.secondLayerHideButtonDeny,!P.tcf2.buttonsDenyAllIsEnabled),hideLegitimateInterestToggles:P.tcf2.hideLegitimateInterestToggles,hideToggles:P.tcf2.secondLayerHideToggles||!0===P.tcf2.enforceAcceptAll,isOverlayEnabled:Qe(P),showToggleAllVendors:P.tcf2.vendorToggleAll,tabColor:Ae(Je(null===($=null===(H=P.customization)||void 0===H?void 0:H.color)||void 0===$?void 0:$.secondLayerTab),null)},z}return N(t,R),t}(YS),qm=Object.freeze({__proto__:null,default:Km});function ib(R){return R.sort((R,D)=>R.id>D.id?1:-1)}function rb(R,D){return R.sort((R,P)=>R[D]>P[D]?1:-1)}function ob(R){return R.reduce((R,D)=>D.services?[...R,...D.services]:R,[]).sort((R,D)=>R.isEssential&&D.isEssential?R.name.toLowerCase()>D.name.toLowerCase()?1:-1:R.isEssential&&!D.isEssential?-1:!R.isEssential&&D.isEssential||R.name.toLowerCase()>D.name.toLowerCase()?1:-1)}const sb=(R,D,P,x,k,G)=>{const H=wf("ul",P?"uc-embed-subelement-block-list":Nh,[Rh.subElementBlockList],D.map(R=>wf("li",P?"uc-embed-subelement-block-list-element":og,[Rh.subElementBlockListElement],R,P)),P),$=wf("button","uc-embed-block-list-view-more-button",[Rh.viewMoreButton],k,P);$.addEventListener("click",()=>x()),$.setAttribute("type","button"),R.appendChild(wf("div",rg,[ug.subElement],[...G?[Of(G,{isTCF:!0,useUcStyling:P})]:[],H,$],P))},lb=(R,D,P,x,k)=>{const G=document.createDocumentFragment();D.forEach(R=>{const D=document.createDocumentFragment();((R,D,P,x,k)=>{D.description&&kf(R,{isTCF:!0,useUcStyling:k},[D.description]);const G=jd(D.descriptionLegal||"");"string"==typeof G?kf(R,{isTCF:!0,useUcStyling:k},[G]):G.forEach(D=>{Uf(R,{isTCF:!0,useUcStyling:k},D.bulletPoints,D.title)}),P.length>0&&sb(R,P,k,()=>window[Od]?.showSecondLayer(),x.general.showMore,x.secondLayer.vendorsTab)})(D,R,P.filter(D=>D.purposes.filter(D=>D.id===R.id).length>0).slice(0,5).map(R=>R.name),x,k),Ff(G,R.name,D,k)}),R.appendChild(G)},cb=(R,D,P,x,k)=>{const{useUcStyling:G,isSubservice:H}=x;if(!G&&H&&R.appendChild(Df(D.name,x)),G&&!k?.scrollToId&&D.subServicesLength>0&&R.appendChild(Rf(D.subServicesLength,P.general,x)),G&&k&&R.appendChild(Pf(k,P.general,x)),D.description&&""!==D.description&&kf(R,x,[D.description],P.service.descriptionTitle),D.processingCompany){const{name:k,address:G}=D.processingCompany,H=[k,G].filter(R=>""!==R);H.length>0&&kf(R,x,H,P.service.processingCompanyTitle)}if(D.dataProtectionOfficer&&""!==D.dataProtectionOfficer&&Vf(R,x,Yd(D.dataProtectionOfficer)?`mailto:${D.dataProtectionOfficer}`:D.dataProtectionOfficer,D.dataProtectionOfficer,P.service.dataProtectionOfficer.title,P.service.dataProtectionOfficer.description),D.dataPurposes&&D.dataPurposes.length>0&&Uf(R,x,D.dataPurposes,P.service.dataPurposes.title,P.service.dataPurposes.description),D.technologiesUsed&&D.technologiesUsed.length>0&&Uf(R,x,D.technologiesUsed,P.service.technologiesUsed.title,P.service.technologiesUsed.description),D.dataCollected&&D.dataCollected.length>0&&Uf(R,x,D.dataCollected,P.service.dataCollected.title,P.service.dataCollected.description),D.legalBasis&&D.legalBasis.length>0){const k=D.legalBasis.filter(R=>""!==R);k.length>0&&Uf(R,x,k,P.service.legalBasis.title,P.service.legalBasis.description)}if(D.dataDistribution?.processingLocation&&""!==D.dataDistribution.processingLocation&&kf(R,x,[P.service.dataDistribution.processingLocationDescription,D.dataDistribution.processingLocation],P.service.dataDistribution.processingLocationTitle),D.retentionPeriodDescription&&""!==D.retentionPeriodDescription&&kf(R,x,[P.service.retentionPeriod.description,D.retentionPeriodDescription],P.service.retentionPeriod.title),D.dataDistribution?.thirdPartyCountries&&D.dataDistribution.thirdPartyCountries.length>0&&Uf(R,x,D.dataDistribution.thirdPartyCountries,P.service.dataDistribution.thirdPartyCountriesTitle,P.service.dataDistribution.thirdPartyCountriesDescription),D.dataRecipients&&D.dataRecipients.length>0){const k=D.dataRecipients.filter(R=>""!==R);k.length>0&&Uf(R,x,k,P.service.dataRecipients.title,P.service.dataRecipients.description)}if(D.urls?.privacyPolicy&&Vf(R,x,D.urls.privacyPolicy,D.urls.privacyPolicy,P.service.urls.privacyPolicyTitle),D.urls?.cookiePolicy&&Vf(R,x,D.urls.cookiePolicy,D.urls.cookiePolicy,P.service.urls.cookiePolicyTitle),D.urls?.optOut&&Vf(R,x,D.urls.optOut,D.urls.optOut,P.service.urls.optOutTitle),Bf(R,D,P.cookieInformation,x),jf(R,D,P.cookieInformation,x),D.subServicesLength>0){const k=wf("div",cg,[ug.subserviceList],[],G);G?Yf(k,D.subServices,P.general,{isTCF:!0,useUcStyling:G}):(k.setAttribute("style","padding: 10px 20px 0"),D.subServices.forEach(R=>{const D=wf("div","uc-subservice",[],[],G);cb(D,R,P,{isSubservice:!0,isTCF:!0,useUcStyling:G}),k.appendChild(D)})),xf(R,x,P.general.subservices,P.general.subservicesDescription,k)}},pb=async(R,D,P,x,k)=>{const G=document.createDocumentFragment(),H=wf("h3",Jh,[ug.headlinesBorderBottom],D.iabVendorsTitle,D.useUcStyling),$=wf("div",Wh,[ug.list],H,D.useUcStyling);$.setAttribute("data-testid","uc-embed-tcf-iab-vendors"),((R,D,P,x)=>{const k=document.createDocumentFragment();rb(D.vendors,"name").forEach(R=>{const G=document.createDocumentFragment();((R,D,P,x,k)=>{const G={isTCF:!0,useUcStyling:k};D.purposes&&D.purposes.length>0&&Uf(R,G,D.purposes.map(R=>R.name),x.vendor.purposes),D.legitimateInterestPurposes&&D.legitimateInterestPurposes.length>0&&Uf(R,G,D.legitimateInterestPurposes.map(R=>R.name),x.vendor.legitimateInterest),D.specialPurposes&&D.specialPurposes.length>0&&Uf(R,G,D.specialPurposes.map(R=>R.name),x.vendor.specialPurposes),D.features&&D.features.length>0&&Uf(R,G,D.features.map(R=>R.name),x.vendor.features),D.specialFeatures&&D.specialFeatures.length>0&&Uf(R,G,D.specialFeatures.map(R=>R.name),x.vendor.specialFeatures),D.policyUrl&&Vf(R,G,D.policyUrl,D.name,x.vendor.privacyPolicy),Bf(R,D,x.cookieInformation,G),jf(R,D,x.cookieInformation,G,P)})(G,R,D.purposes,x,P),Ff(k,R.name,G,P)}),R.appendChild(k)})($,P,D.useUcStyling,k),G.appendChild($);const z=await Promise.all(x.map(async R=>{if(R.subServicesLength>0){const D=await R.fetchSubServices();return i(i({},R),{},{subServices:D})}return R})),Y=wf("h3",Jh,[ug.headlinesBorderBottom],D.nonIabVendorsTitle,D.useUcStyling),W=wf("div",Wh,[ug.list],Y,D.useUcStyling);if(W.setAttribute("data-testid","uc-embed-tcf-noniab-vendors"),((R,D,P,x)=>{const k=document.createDocumentFragment();D.forEach(R=>{const D=document.createDocumentFragment();cb(D,R,P,{isSubservice:!1,isTCF:!0,useUcStyling:x}),Ff(k,R.name,D,x,{isSubservice:!1,service:R})}),R.appendChild(k)})(W,z,k,D.useUcStyling),G.appendChild(W),P.acmVendors.length){const R=wf("h3",Jh,[ug.headlinesBorderBottom],D.googleAtpVendorsTitle,D.useUcStyling),x=wf("div",Wh,[ug.list],R,D.useUcStyling);x.setAttribute("data-testid","uc-embed-tcf-acm-vendors"),((R,D,P,x)=>{const k=document.createDocumentFragment();rb(D.acmVendors,"name").forEach(R=>{const D=document.createDocumentFragment();((R,D,P,x)=>{const k={isTCF:!0,useUcStyling:x};D.privacyPolicyUrl&&Vf(R,k,D.privacyPolicyUrl,D.name,P.acmVendor.privacyPolicy),Uf(R,k,D.purposes.map(R=>R.name),P.titles.purposes)})(D,R,P,x),Ff(k,R.name,D,x)}),R.appendChild(k)})(x,P,k,D.useUcStyling),G.appendChild(x)}const ee=new Map;if(z.forEach(R=>{if(R.subServicesLength>0){const D=ee.get(R);D?ee.set({id:R.id,name:R.name},D.concat(R.subServices)):ee.set({id:R.id,name:R.name},R.subServices)}}),ee.size>0&&D.useUcStyling){const R=wf("h3",Jh,[ug.headlinesBorderBottom],k.general.subservices,D.useUcStyling),P=wf("div",Wh,[ug.list],R,D.useUcStyling);P.setAttribute("data-testid","uc-embed-tcf-noniab-subservices"),((R,D,P,x)=>{const k=wf("div",cg,[],[],x);R.appendChild(k),D.forEach((R,D)=>{R.forEach(R=>{const G=document.createDocumentFragment();cb(G,R,P,{isSubservice:!0,isTCF:!0,useUcStyling:x},i(i({},!x&&{name:R.name}),{},{parentName:D.name,scrollToId:D.id})),Ff(k,R.name,G,x,{isSubservice:!0,service:R})})})})(P,ee,k,D.useUcStyling),G.appendChild(P)}R.appendChild(G)},hb=(R,D,P,x,k,G)=>{const H=wf("h2",Yh,[ug.headlines],D.embedTitle,D.useUcStyling),$=wf("div",Zh,[ug.outerBox],H,D.useUcStyling);switch($.setAttribute("data-testid","uc-embed-tcf"),D.embedType){case hg.PURPOSE:((R,D,P,x,k)=>{const G=document.createDocumentFragment(),H=wf("h3",Jh,[ug.headlinesBorderBottom],D.iabPurposeTitle,D.useUcStyling),$=wf("div",Wh,[ug.list],H,D.useUcStyling);$.setAttribute("data-testid","uc-embed-tcf-iab-purposes"),lb($,[...P.purposes,...P.specialPurposes],P.vendors,k,D.useUcStyling);const z=wf("h3",Jh,[ug.headlinesBorderBottom],k.titles.features,D.useUcStyling),Y=wf("div",Wh,[ug.list],z,D.useUcStyling);Y.setAttribute("data-testid","uc-embed-tcf-iab-features"),lb(Y,[...P.features,...P.specialFeatures],P.vendors,k,D.useUcStyling);const W=wf("h3",Jh,[ug.headlinesBorderBottom],D.nonIabPurposeTitle,D.useUcStyling),ee=wf("div",Wh,[ug.list],W,D.useUcStyling);W.setAttribute("data-testid","uc-embed-tcf-noniab-purpose"),((R,D,P,x)=>{const k=document.createDocumentFragment();D.forEach(R=>{const D=document.createDocumentFragment();((R,D,P,x)=>{D.description&&kf(R,{isTCF:!0,useUcStyling:x},[D.description]),D.services.length>0&&sb(R,D.services.map(R=>R.name),x,()=>window[Od]?.showSecondLayer(),P.general.showMore)})(D,R,P,x),Ff(k,R.label,D,x)}),R.appendChild(k)})(ee,x,k,D.useUcStyling),G.appendChild($),G.appendChild(Y),G.appendChild(ee),R.appendChild(G)})($,D,P,k,G);break;case hg.VENDOR:default:pb($,D,P,x,G)}R.appendChild($)};var Qm=Object.freeze({__proto__:null,embedTCF:(R,D,P,x)=>{P.forEach(P=>{const k=((R,D)=>{const P=R.getAttribute("uc-embedding-type")===hg.PURPOSE?hg.PURPOSE:hg.VENDOR,x=R.getAttribute("uc-embedding-title")||(P===hg.PURPOSE?D.titles.purposes:D.secondLayer.vendorsTab),k=R.getAttribute("uc-embedding-vendors")||D.titles.iabVendors,G=R.getAttribute("uc-embedding-non-iab-vendors")||D.titles.nonIabVendors,H=R.getAttribute("uc-embedding-purpose")||D.titles.purposes,$=R.getAttribute("uc-embedding-non-iab-purpose")||D.titles.nonIabPurposes,z=R.getAttribute("uc-embedding-atp-vendors")||D.titles.acmVendors,Y=R.getAttribute("uc-styling");return{embedTitle:x,embedType:P,googleAtpVendorsTitle:z,iabPurposeTitle:H,iabVendorsTitle:k,nonIabPurposeTitle:$,nonIabVendorsTitle:G,showHiddenCategories:"true"===R.getAttribute("uc-embedding-show-hidden-categories"),useUcStyling:"false"!==Y}})(P,x),G=k.showHiddenCategories?D.services.all:D.services.visible,H=k.showHiddenCategories?D.categories.all:D.categories.visible;vf(G)&&((R=>{for(;R.lastElementChild;)R.removeChild(R.lastElementChild)})(P),hb(P,k,R,G,H,x))})}});const fb=(R,D,P,x,k,G)=>{const{useUcStyling:H}=k;if(H||(x.includes(dg.OPT_IN_CHECKBOX_WITH_LABEL)?((R,D)=>{const P=document.createElement("input");P.type="checkbox",P.id=D.name,P.title=D.name,P.checked=D.consent.status,P.disabled=D.isEssential,P.setAttribute("role","checkbox"),P.setAttribute("aria-disabled",D.isEssential?"true":"false"),P.setAttribute("aria-checked",D.consent.status?"true":"false"),P.setAttribute("aria-readonly",D.isEssential?"true":"false"),P.onclick=()=>{const R=window[Od];return R?D.consent.status?R.rejectService(D.id):R.acceptService(D.id):Promise.reject()};const x=wf("label",`uc uc-title ${Ih}`,[{style:"display: inline-block"}],[],!0);x.htmlFor=D.name,x.innerHTML=`

${D.name}

`;const k=wf("div",`uc uc-checkbox ${Ih}`,[{style:"display: inline-block"}],[P,x],!0);R.appendChild(k)})(R,D):R.appendChild(Df(D.name,k))),H&&!G?.scrollToId&&D.subServicesLength>0&&R.appendChild(Rf(D.subServicesLength,P.general,k)),H&&G&&R.appendChild(Pf(G,P.general,k)),x.includes(dg.DESCRIPTION)&&D.description&&""!==D.description&&kf(R,i(i({},k),{},{nonTcfClassName:"uc-description"}),[D.description],P.service.descriptionTitle),x.includes(dg.PROCESSOR_NAMES)&&D.processingCompany){const{name:x,address:G}=D.processingCompany,H=[x,G].filter(R=>""!==R);H.length>0&&kf(R,i(i({},k),{},{nonTcfClassName:"uc-processorNames"}),H,P.service.processingCompanyTitle)}if(x.includes(dg.DATA_PROTECTION_OFFICER)&&D.dataProtectionOfficer&&""!==D.dataProtectionOfficer&&Vf(R,i(i({},k),{},{nonTcfClassName:"uc-dataProtectionOfficer"}),Yd(D.dataProtectionOfficer)?`mailto:${D.dataProtectionOfficer}`:D.dataProtectionOfficer,D.dataProtectionOfficer,P.service.dataProtectionOfficer.title,P.service.dataProtectionOfficer.description),x.includes(dg.DATA_PURPOSES)&&D.dataPurposes&&D.dataPurposes.length>0&&Uf(R,i(i({},k),{},{nonTcfClassName:"uc-dataPurposes"}),D.dataPurposes,P.service.dataPurposes.title,P.service.dataPurposes.description),x.includes(dg.TECHNOLOGIES_USED)&&D.technologiesUsed&&D.technologiesUsed.length>0&&Uf(R,i(i({},k),{},{nonTcfClassName:"uc-technologiesUsed"}),D.technologiesUsed,P.service.technologiesUsed.title,P.service.technologiesUsed.description),x.includes(dg.DATA_COLLECTED)&&D.dataCollected&&D.dataCollected.length>0&&Uf(R,i(i({},k),{},{nonTcfClassName:"uc-dataCollected"}),D.dataCollected,P.service.dataCollected.title,P.service.dataCollected.description),x.includes(dg.LEGAL_BASIS)&&D.legalBasis&&D.legalBasis.length>0){const x=D.legalBasis.filter(R=>""!==R);x.length>0&&Uf(R,i(i({},k),{},{nonTcfClassName:"uc-legalBasis"}),x,P.service.legalBasis.title,P.service.legalBasis.description)}if(x.includes(dg.PROCESSING_LOCATION)&&D.dataDistribution?.processingLocation&&""!==D.dataDistribution.processingLocation){const{processingLocationTitle:x,processingLocationDescription:G}=P.service.dataDistribution,{processingLocation:H}=D.dataDistribution;kf(R,i(i({},k),{},{nonTcfClassName:"uc-processingLocation"}),[G,H],x)}if(x.includes(dg.RETENTION_PERIOD)&&D.retentionPeriodDescription&&""!==D.retentionPeriodDescription&&kf(R,i(i({},k),{},{nonTcfClassName:"uc-retentionPeriod"}),[P.service.retentionPeriod.description,D.retentionPeriodDescription],P.service.retentionPeriod.title),x.includes(dg.THIRD_COUNTRY_TRANSFER)&&D.dataDistribution?.thirdPartyCountries&&D.dataDistribution.thirdPartyCountries.length>0){const{thirdPartyCountriesDescription:x,thirdPartyCountriesTitle:G}=P.service.dataDistribution,{thirdPartyCountries:H}=D.dataDistribution;Uf(R,i(i({},k),{},{nonTcfClassName:"uc-thirdCountryTransfer"}),H,G,x)}if(x.includes(dg.DATA_RECIPIENTS)&&D.dataRecipients&&D.dataRecipients.length>0){const x=D.dataRecipients.filter(R=>""!==R);x.length>0&&Uf(R,i(i({},k),{},{nonTcfClassName:"uc-dataRecipients"}),x,P.service.dataRecipients.title,P.service.dataRecipients.description)}if(D.urls&&x.includes(dg.FURTHER_INFORMATION)){const{cookiePolicyTitle:G,optOutTitle:$,privacyPolicyTitle:z}=P.service.urls,{cookiePolicy:Y,optOut:W,privacyPolicy:ee}=D.urls;if(ee&&Vf(R,i(i({},k),{},{nonTcfClassName:`${_h} uc-privacyPolicy`}),ee,ee,z,null),Y&&Vf(R,i(i({},k),{},{nonTcfClassName:`${_h} uc-cookiePolicy`}),Y,Y,G,null),W&&Vf(R,i(i({},k),{},{nonTcfClassName:`${_h} uc-optOut`}),W,W,$,null),Bf(R,D,P.cookieInformation,i(i({},k),{},{nonTcfClassName:`${_h} uc-storageInfo`})),jf(R,D,P.cookieInformation,i(i({},k),{},{nonTcfClassName:`${_h} uc-storedInfo`})),D.subServicesLength>0){const k=wf("div",`uc ${_h} uc-subservices`,[ug.subserviceList],[],H);H?Yf(k,D.subServices,P.general,{isTCF:!1,useUcStyling:H}):(k.setAttribute("style","padding: 10px 20px 0"),D.subServices.forEach(R=>{const D=wf("div","uc uc-subservice",[],[],H);fb(D,R,P,x.filter(R=>R!==dg.OPT_IN_CHECKBOX_WITH_LABEL),{isSubservice:!0,isTCF:!1,useUcStyling:!1}),k.appendChild(D)})),xf(R,{isTCF:!1,nonTcfClassName:"uc-subservices",useUcStyling:H},P.general.subservices,P.general.subservicesDescription,k)}}},vb=(R,D,P,x,k,G)=>{const{sections:H,showToggle:$,useUcStyling:z}=P,Y=wf("div");Y.setAttribute("data-testid","uc-embed-service"),x||Y.setAttribute("class","uc uc-subservice"),fb(Y,R,D,H,{isTCF:!1,useUcStyling:z},!x&&G?i(i({},!z&&{name:R.name}),{},{parentName:G.name,scrollToId:G.id}):void 0),z?Ff(k,R.name,Y,z,{isSubservice:!x,service:R,showToggle:!!x&&$}):k.appendChild(Y)},mb=(R,D,P,x)=>{const{services:k,subservicesList:G}=D,H=document.createDocumentFragment();if(k&&k.forEach(R=>{vb(R,P,x,!0,H)}),G){const R=[];G.forEach((D,P)=>{D.forEach(D=>{R.push({key:P,service:D})})}),R.sort((R,D)=>R.service.name>D.service.name?1:-1).forEach(({key:R,service:D})=>{vb(D,P,x,!1,H,R)})}R.appendChild(H)},bb=(R,D,P,x,k)=>{const{useUcStyling:G}=k,H=document.createDocumentFragment();if(G){const R=wf(P.subservicesList?"h3":"h2",Jh,[ug.headlinesBorderBottom],D,G),$=wf("div",Wh,[ug.list],""!==D?R:"",G);$.setAttribute("data-testid",P.subservicesList?"uc-embed-subservices-list":"uc-embed-services-list"),mb($,P,x,k),H.appendChild($)}else mb(H,P,x,k);R.appendChild(H)},yb=(R,D,P,x)=>{const k=new Map;D.forEach(R=>{if(R.subServicesLength>0){const D=(k.get(R)||[]).concat(R.subServices);k.set({id:R.id,name:R.name},D)}}),k.size>0&&x.useUcStyling&&bb(R,P.general.subservices,{subservicesList:k},P,x)};var tS=Object.freeze({__proto__:null,embedGDPR:async(R,D,P,x)=>{const k=x.some(R=>!0===_f(R,P).showHiddenCategories),G=k?R.services.all:R.services.visible,H=k?R.categories.all:R.categories.visible;if(!vf(G))return;const $=await Promise.all(G.map(async R=>{if(R.subServicesLength>0){const D=await R.fetchSubServices();return i(i({},R),{},{subServices:D})}return R}));x.forEach(R=>{(R=>{for(;R.lastElementChild;)R.removeChild(R.lastElementChild)})(R);const x=_f(R,P),k=x.embedType===pg.CATEGORY||pg.CATEGORY_ONLY;let z;if(x.useUcStyling){R.classList.add("uc-embed-styled");const D=wf("h2",Jh,k?[ug.headlines]:[ug.headlinesBorderBottom],x.embedTitle,x.useUcStyling);z=wf("div",Zh,k?[ug.outerBox]:[ug.outerBoxNoTopPadding],D,x.useUcStyling),z.setAttribute("data-testid","uc-embed-services")}else z=document.createDocumentFragment();if("all"===x.embedService){switch(x.embedType){case pg.CATEGORY_ONLY:((R,D,P)=>{const{useUcStyling:x,showToggle:k}=P,G=wf("div",Wh,[],[],x);D.forEach(R=>{const D=[];let P=null;const H=wf("h3",Jh,[ug.headlinesBorderBottom],R.label,x);if(H.id=`${R.slug}-title`,D.push(H),R.description){H.style.removeProperty("border-bottom"),H.style.paddingBottom="10px";const P=ug.headlinesBorderBottom;P.style=P.style.replace(" border-bottom: 1px solid #e2e2e2","");const k=wf("h4",Xh,[P],R.description,x);k.style.paddingTop="0px",k.id=`${R.slug}-description`,x?k.style.fontSize="0.83em":(H.style.marginBottom="0px",k.style.marginTop="0px"),D.push(k)}if(k&&x){const D=R.services.some(R=>R.consent.status);P=Nf(R.isEssential,D,!0,x,D=>{const P=window[Od];if(D.stopPropagation(),P){const D=R.services.some(R=>R.consent.status),x=R.services.map(R=>R.id);return D?P.rejectServices(x):P.acceptServices(x)}return Promise.reject()})}let $=null;const z=wf("div",Yh,[],D,x);$=x?wf("div",Kh,[ug.categoryOnlyDiv],null!==P?[z,P]:z,x):((R,D)=>{const P=document.createElement("input");return P.type="checkbox",P.id=R.slug,P.checked=R.services.some(R=>R.consent.status),P.disabled=R.isEssential,P.setAttribute("role","checkbox"),P.setAttribute("aria-disabled",R.isEssential?"true":"false"),P.setAttribute("aria-checked",R.services.some(R=>R.consent.status)?"true":"false"),P.setAttribute("aria-readonly",R.isEssential?"true":"false"),P.setAttribute("aria-labelledby",`${R.slug}-title`),P.setAttribute("aria-describedby",`${R.slug}-description`),P.onclick=D=>{const P=window[Od];if(D.stopPropagation(),P){const D=R.services.some(R=>R.consent.status),x=R.services.map(R=>R.id);return D?P.rejectServices(x):P.acceptServices(x)}return Promise.reject()},wf("div",`uc uc-embed-category ${Ih}`,[{style:"display: flex; align-items: baseline;"}],[P,D],!0)})(R,z),$.setAttribute("data-testid",`uc-embed-${R.slug}`),G.appendChild($)}),R.appendChild(G)})(z,H,x);break;case pg.CATEGORY:{const R=H.map(R=>i(i({},R),{},{services:R.services.map(R=>$.find(D=>D.id===R.id)??R).sort((R,D)=>R.name>D.name?1:-1)}));((R,D,P,x)=>{const{useUcStyling:k}=x,G=document.createDocumentFragment();D.forEach(R=>{const D=[],H=wf("h3",Jh,[ug.headlinesBorderBottom],R.label,k);if(D.push(H),R.description){H.style.removeProperty("border-bottom"),H.style.paddingBottom="10px";const P=wf("h4",Xh,[ug.headlinesBorderBottom],R.description,k);P.style.paddingTop="0px",k?P.style.fontSize="0.83em":(H.style.marginBottom="0px",P.style.marginTop="0px"),D.push(P)}const $=wf("div",Wh,[ug.list],D,k);$.setAttribute("data-testid",`uc-embed-${R.slug}`),mb($,{services:R.services},P,x),G.appendChild($)}),R.appendChild(G)})(z,R,D,x),yb(z,$,D,x);break}case pg.ALL:default:bb(z,"",{services:$},D,x),yb(z,$,D,x)}R.appendChild(z)}else{const P=G.find(R=>R.name===x.embedService);if(P){const k=$.find(R=>R.id===P.id);if(x.useUcStyling?bb(z,"",{services:[P]},D,x):fb(z,P,D,x.sections,{isSubservice:!1,isTCF:!1,useUcStyling:x.useUcStyling}),k)if(x.useUcStyling)yb(z,[k],D,x);else{const R=wf("div",`uc ${_h} uc-subservices service-specific`,[ug.subserviceList],[],x.useUcStyling);R.setAttribute("style","padding: 10px 20px 0"),k.subServices.forEach(P=>{vb(P,D,i(i({},x),{},{sections:x.sections.filter(R=>R!==dg.OPT_IN_CHECKBOX_WITH_LABEL)}),!1,R,k)}),z.appendChild(R)}R.appendChild(z)}}})}});const nS=gl(()=>Promise.resolve().then(function(){return kN})),iS=gl(()=>Promise.resolve().then(function(){return zN})),rS=gl(()=>Promise.resolve().then(function(){return WN}));var oS=rl(({acceptAllDefault:R,acceptAllTCF:D,denyAllDefault:P,denyAllTCF:x,showSecondLayer:k,onClose:G,onLanguageChange:H,UC:$,isHtmlDialog:z})=>{const[Y,W]=Ba(!1),{ui:ee}=Eg(),{abTestVariant:te,isAmpEnabled:ne,setIsInFullScreen:ie,setTabView:re,setView:oe,uiVariant:ae,view:le}=ev(),[ce,{loading:ue}]=rv($.enterFullscreenAmp,$),[,{loading:de}]=rv($.acceptAllServices,$),[,{loading:pe}]=rv($.acceptAllForTCF,$),[,{loading:he}]=rv($.acceptAllAmp,$),[,{loading:ge}]=rv($.denyAllServices,$),[,{loading:fe}]=rv($.denyAllForTCF,$),[,{loading:ve}]=rv($.denyAllAmp,$),w=()=>{ue||ce().then(async()=>{await oe(Vd.SECOND_LAYER),ie(!0)})},O=async()=>{ue||(Xd(le,kd.MORE_INFORMATION_LINK,te,$.setTrackingPixel),ne&&(await ce(),ie(!0)),re(Sg(ee,ae)),k())},L=async()=>{ue||(ne&&(await ce(),ie(!0)),Xd(le,kd.MORE_INFORMATION_LINK,te,$.setTrackingPixel),re(ep.SERVICES_VENDORS),await oe(Vd.SECOND_LAYER))};switch(ae){case Rs.CCPA:return ta(pl,{fallback:null},ta(iS,{onClose:G,onCustomize:O,onLanguageChange:H,setToggleCcpaChecked:W,toggleCcpaChecked:Y,UC:$,isHtmlDialog:z}));case Rs.DEFAULT:return ta(pl,{fallback:null},ta(rS,{onClose:G,onCustomize:O,onFullScreenAmp:w,onLanguageChange:H,onAcceptAll:R,onDenyAll:P,isAcceptDenyAllLoading:de||ge||ve,UC:$,isHtmlDialog:z}));case Rs.TCF:return ta(pl,{fallback:null},ta(nS,{onCustomize:O,onFullScreenAmp:w,onLanguageChange:H,onShowVendorsHandler:L,onAcceptAll:D,onDenyAll:x,isAcceptDenyAllLoading:ge||fe||de||pe||he,UC:$,isHtmlDialog:z}));default:return null}}),sS=Object.freeze({__proto__:null,default:oS});const aS=_d.button(["align-items:center;background:",";border:none;border-radius:50%;bottom:40px;box-shadow:0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px rgba(0,0,0,0.14),0px 1px 18px rgba(0,0,0,0.12);color:white;display:flex;justify-content:center;height:",";left:",";padding:0;position:fixed;right:",";width:",";z-index:2147483640;opacity:",";&:hover,&:focus{background:",";}&:focus-visible{outline-style:auto;outline-width:5px;}","{bottom:24px;left:",";right:",";}"],({theme:R})=>R.ui.buttons.privacy.bg.default,({isMobile:R,theme:D})=>R?D.ui.buttons.privacy.mobileSize:D.ui.buttons.privacy.desktopSize,({position:R})=>"bl"===R?"40px":"initial",({position:R})=>"br"===R?"40px":"initial",({isMobile:R,theme:D})=>R?D.ui.buttons.privacy.mobileSize:D.ui.buttons.privacy.desktopSize,({show:R})=>R?1:0,({theme:R})=>R.ui.buttons.privacy.bg.dark,ph.mobilePortrait,({position:R})=>"bl"===R?"24px":"initial",({position:R})=>"br"===R?"24px":"initial"),lS=rl(({show:R,iconUrl:D,isMobile:P,onClick:x,position:k})=>{const{labels:G}=Eg(),{rules:H}=rm(jg.PRIVACY_BUTTON);if(!G)return null;const $=ct(G)?G.privacyButton:`${G.ariaLabels.privacyButton} ${G.general.privacyButton}`;return ta(aS,{show:R,onClick:x,isMobile:P,position:k,"aria-label":$,"data-testid":"uc-privacy-button",style:i({},H)},ta(Dm,{iconUrl:D}))});var cS=Object.freeze({__proto__:null,default:lS});const uS="usercentrics-error";var dS=Object.freeze({__proto__:null,default:()=>{const[R,D]=Ba(!1),n=()=>{D(!0)};return Ha(()=>{if(!R){const R=document.getElementById(Ad),D=R?.shadowRoot?.getElementById(uS);D&&D.focus()}},[]),R?null:ta("div",{id:uS,className:uS,role:"dialog","aria-modal":"true","aria-labelledby":"uc-error-title","aria-describedby":"uc-error-description",tabIndex:"0"},ta("div",{className:"error-inner"},ta("div",{className:"close-error"},ta("svg",{className:"close-error-icon",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 96 960 960",width:"48",tabindex:"0",onClick:()=>n(),onKeyUp:({key:R})=>{"Enter"===R&&n()},"aria-label":"Close dialog"},ta("path",{d:"m249 849-42-42 231-231-231-231 42-42 231 231 231-231 42 42-231 231 231 231-42 42-231-231-231 231Z"}))),ta("svg",{className:"error-illustration",width:"299",height:"210",viewBox:"0 0 299 210",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ta("rect",{width:"299",height:"198",rx:"8",fill:"#F2F6FD"}),ta("rect",{x:"32",y:"32",width:"145",height:"18",rx:"9",fill:"white"}),ta("rect",{x:"32",y:"62",width:"235",height:"14",rx:"7",fill:"white"}),ta("rect",{x:"32",y:"88",width:"235",height:"14",rx:"7",fill:"white"}),ta("rect",{x:"32",y:"134",width:"107.5",height:"32",rx:"4",fill:"#CCDAED"}),ta("rect",{x:"159.5",y:"134",width:"107.5",height:"32",rx:"4",fill:"#CCDAED"}),ta("path",{d:"M44.7998 209.533L44.5893 209.513C37.4482 208.776 30.9927 204.935 26.9377 199.011C25.827 197.36 24.9286 195.576 24.2636 193.701L24.1997 193.522L24.389 193.507C26.648 193.325 28.9688 192.942 29.9997 192.76L23.3518 190.507L23.3107 190.31C22.9166 188.458 23.6887 186.553 25.2608 185.498C26.8372 184.393 28.9275 184.357 30.5404 185.409C31.2642 185.871 32.0212 186.329 32.7533 186.772C35.2691 188.294 37.8705 189.867 39.8209 192.02C42.7785 195.35 44.0748 199.838 43.3489 204.232L44.7998 209.533Z",fill:"#C1C7D0"}),ta("path",{d:"M68.9648 206.227L72.241 206.227L73.7999 193.588L68.9639 193.589L68.9648 206.227Z",fill:"#A0616A"}),ta("path",{d:"M68.8488 209.645L78.9245 209.645V209.518C78.9243 207.352 77.1686 205.596 75.0027 205.596L73.162 204.2L69.7282 205.596L68.8486 205.596L68.8488 209.645Z",fill:"#2F2E41"}),ta("path",{d:"M42.7061 197.152L45.3267 199.118L54.1582 189.944L50.2899 187.042L42.7061 197.152Z",fill:"#A0616A"}),ta("path",{d:"M40.5625 199.817L48.6223 205.864L48.6988 205.762C49.9984 204.029 49.6476 201.571 47.9153 200.271L47.2808 198.05L43.696 197.106L42.9924 196.578L40.5625 199.817Z",fill:"#2F2E41"}),ta("path",{d:"M53.5979 146.919C53.5979 146.919 53.7788 151.853 54.0069 155.81C54.0443 156.459 52.524 157.164 52.5634 157.87C52.5895 158.338 52.8753 158.793 52.9018 159.282C52.9299 159.797 52.5353 160.253 52.5634 160.786C52.5909 161.307 53.041 161.904 53.0681 162.437C53.3603 168.173 54.4194 175.04 53.3588 176.96C52.8362 177.906 46.1738 191.013 46.1738 191.013C46.1738 191.013 49.8859 196.581 50.9464 194.725C52.3472 192.273 63.1431 180.805 63.1431 178.615C63.1431 176.427 65.6407 160.033 65.6407 160.033L67.3823 169.735L68.1808 171.657L67.9299 172.786L68.446 174.309L68.4739 175.816L68.9763 178.615C68.9763 178.615 67.465 200.42 68.3161 201.027C69.1698 201.637 73.3035 202.732 73.7913 201.637C74.2765 200.542 77.4348 178.88 77.4348 178.88C77.4348 178.88 77.9439 168.953 78.4954 159.726C78.5272 159.19 78.9037 158.543 78.9329 158.015C78.9674 157.403 78.7288 156.608 78.7605 156.014C78.795 155.332 79.0973 154.852 79.1264 154.2C79.3518 149.16 78.0867 143.022 77.6837 142.417C76.4666 140.593 75.3716 139.135 75.3716 139.135C75.3716 139.135 58.9797 133.749 54.5995 139.222L53.5979 146.919Z",fill:"#2F2E41"}),ta("path",{d:"M69.9468 96.1839L63.4487 94.8843L60.4163 98.9997C54.758 104.563 54.6727 109.474 55.6828 117.345V128.391L54.9517 135.797C54.9517 135.797 52.3637 141.21 55.033 142.471C57.7023 143.731 75.2359 143.624 76.9099 143.12C78.584 142.617 77.1329 142 76.6933 139.655C75.8676 135.25 76.4199 137.375 76.4767 135.973C77.2915 115.856 75.3937 107.598 75.201 105.427L71.8963 99.4329L69.9468 96.1839Z",fill:"#3F3D56"}),ta("path",{d:"M104.196 112.403C103.518 113.686 101.929 114.178 100.646 113.5C100.509 113.428 100.379 113.344 100.257 113.249L86.2236 122.159L86.2641 117.308L99.8963 109.397C100.867 108.308 102.537 108.213 103.626 109.184C104.537 109.996 104.772 111.327 104.196 112.403Z",fill:"#A0616A"}),ta("path",{d:"M64.8159 101.802L63.2182 101.632C61.742 101.479 60.2936 102.112 59.4022 103.298C59.0608 103.748 58.8155 104.264 58.6817 104.812L58.6808 104.817C58.28 106.469 58.9086 108.2 60.2758 109.21L65.7939 113.278C69.6663 118.51 76.9441 121.982 85.481 124.802L98.7505 116.561L94.057 110.877L84.9554 115.755L71.4264 105.282L71.4186 105.276L66.2694 101.958L64.8159 101.802Z",fill:"#3F3D56"}),ta("path",{d:"M67.7505 92.9928C71.9356 92.9928 75.3282 89.6001 75.3282 85.4151C75.3282 81.2301 71.9356 77.8374 67.7505 77.8374C63.5655 77.8374 60.1729 81.2301 60.1729 85.4151C60.1729 89.6001 63.5655 92.9928 67.7505 92.9928Z",fill:"#A0616A"}),ta("path",{d:"M67.9257 92.9946C67.8647 92.9966 67.8034 92.998 67.7423 92.9997C67.7161 93.0676 67.6879 93.1349 67.6553 93.201L67.9257 92.9946Z",fill:"#2F2E41"}),ta("path",{d:"M70.0059 85.6255C70.0177 85.7001 70.0359 85.7737 70.0602 85.8453C70.0502 85.7702 70.032 85.6965 70.0059 85.6255Z",fill:"#2F2E41"}),ta("path",{d:"M75.425 78.1617C75.1131 79.1302 74.8347 77.9017 73.8087 78.1226C72.5744 78.3885 71.138 78.2972 70.1272 77.5406C68.6211 76.4355 66.6694 76.1381 64.9025 76.7442C63.1729 77.3561 60.2753 77.7876 59.8246 79.566C59.668 80.1841 59.6058 80.855 59.226 81.3673C58.8941 81.8153 58.3701 82.0707 57.9319 82.4154C56.4524 83.5795 57.5832 86.8868 58.2834 88.6343C58.9837 90.3818 60.59 91.6548 62.356 92.3069C64.0648 92.9378 65.9194 93.0492 67.7423 92.9997C68.0593 92.1774 67.9222 91.2275 67.6606 90.3751C67.3774 89.4523 66.9581 88.5617 66.8398 87.6037C66.7215 86.6457 66.9813 85.5575 67.7846 85.0222C68.5229 84.5302 69.725 84.83 70.0059 85.6255C69.842 84.631 70.8488 83.6685 71.8876 83.4993C73.0029 83.3175 74.1182 83.7202 75.2302 83.9206C76.3423 84.121 75.9476 79.4392 75.425 78.1617Z",fill:"#2F2E41"}),ta("path",{d:"M117.805 97.9502C118.512 89.4149 112.165 81.923 103.63 81.2166C95.0946 80.5102 87.6027 86.8568 86.8962 95.3921C86.1898 103.927 92.5364 111.419 101.072 112.126C109.607 112.832 117.099 106.486 117.805 97.9502Z",fill:"#F50057"}),ta("path",{d:"M106.424 90.2099L102.351 94.2834L98.277 90.2099C97.6176 89.5505 96.5485 89.5505 95.8891 90.2099C95.2297 90.8693 95.2297 91.9384 95.8891 92.5978L99.9626 96.6713L95.8891 100.745C95.2303 101.405 95.2313 102.474 95.8913 103.133C96.5505 103.791 97.6179 103.791 98.277 103.133L102.351 99.0592L106.424 103.133C107.084 103.792 108.153 103.791 108.812 103.131C109.47 102.471 109.47 101.404 108.812 100.745L104.738 96.6713L108.812 92.5978C109.471 91.9384 109.471 90.8693 108.812 90.2099C108.153 89.5505 107.083 89.5505 106.424 90.2099Z",fill:"white"}),ta("path",{d:"M96.2399 83.6371C96.697 85.0141 95.9513 86.501 94.5742 86.9581C94.4274 87.0069 94.2766 87.0425 94.1235 87.0647L90.838 103.36L87.3652 99.9721L91.0943 84.6582C90.9809 83.2038 92.068 81.9329 93.5225 81.8196C94.7394 81.7247 95.8629 82.4761 96.2399 83.6371Z",fill:"#A0616A"}),ta("path",{d:"M61.3279 104.714L60.0997 105.75C58.9672 106.709 58.4207 108.192 58.6598 109.657C58.7482 110.215 58.9503 110.749 59.2537 111.225L59.2562 111.229C60.1708 112.662 61.8551 113.407 63.5304 113.119L70.2863 111.954C76.743 112.782 84.2865 109.933 92.2318 105.726L95.4715 90.445L88.1203 89.8965L85.3391 99.8412L68.4156 102.353L68.4057 102.355L62.4469 103.774L61.3279 104.714Z",fill:"#3F3D56"}),ta("path",{d:"M99.7962 209.906L17.36 210C17.1605 209.999 16.9994 209.837 17 209.637C17.0006 209.439 17.1615 209.278 17.36 209.277L99.7962 209.184C99.9957 209.185 100.157 209.347 100.156 209.546C100.156 209.745 99.9948 209.906 99.7962 209.906Z",fill:"#97A0AF"})),ta("h2",{id:"uc-error-title"},"🍪 Oops, you should be able to set your cookie preferences here."),ta("p",{id:"uc-error-description"},"Unfortunately, this website does not have a permission to display this cookie banner. For more information please contact the administrator of the site.")),ta("style",null,".usercentrics-error {\n position: fixed;\n left: 30px;\n z-index: 999999;\n bottom: 30px;\n max-width: 330px;\n width: 100%;\n background: white;\n border-radius: 8px;\n text-align: center;\n border: 1px solid #DEDEDE;\n font-family: sans-serif;\n\n &:focus-visible {\n outline: 0;\n }\n }\n .error-inner {\n padding: 20px;\n }\n .close-error {\n text-align: right;\n padding-bottom: 10px;\n }\n .close-error-icon {\n width: 24px;\n height: 24px;\n cursor: pointer;\n\n &:focus-visible {\n outline: 2px solid black;\n }\n }\n .error-illustration {\n max-width: 100%;\n margin: auto;\n display: block;\n }\n h2 {\n font-size: 16px;\n }\n p {\n font-size: 14px;\n font-weight: 100;\n }\n @media (max-width: 900px) {\n .usercentrics-error {\n bottom: 0;\n left:0;\n max-width: unset;\n max-height: 100vh;\n }\n .error-illustration {\n max-height: 30vh;\n }\n }"))}}),pS=_d.button(["align-items:center;content:none;background:",";border:none;border-radius:",";color:",";display:flex;justify-content:center;flex:1 1 auto;font-size:",";font-weight:",";padding:",";width:",";&:focus{background:",";}&:focus-visible{outline-style:auto;outline-width:5px;outline-offset:4px;}&:hover{background:",";",";}","{padding:",";}","{padding:",";}"],({backgroundColor:R})=>R.default,({theme:R})=>R.ui.buttons.borderRadius,({textColor:R})=>R,({theme:R})=>R.typography.size.medium,({theme:R})=>R.typography.weight.bold,({theme:R})=>`${R.spacing.base.sm} ${R.spacing.base.md}`,({fullWidth:R})=>R?"100%":"auto",({backgroundColor:R})=>R.dark,({backgroundColor:R})=>R.dark,({buttonHoverRules:R})=>R,ph.mobilePortrait,({theme:R})=>`${R.spacing.mobile.md} ${R.spacing.mobile.md}`,ph.mobileLandscape,({theme:R})=>`${R.spacing.mobile.md} ${R.spacing.mobile.md}`);const hS=rl(({ariaLabel:R="",backgroundColor:D,buttonRef:P,buttonTypeRules:x=null,buttonHoverRules:k=null,disabled:G=!1,fullWidth:H=!0,label:$,marginStyle:z,onClick:Y,testid:W,textColor:ee})=>{const te=bd(),{rules:ne}=rm(jg.BUTTONS),{rules:ie}=rm(jg.BUTTONS,!0);return ta(pS,t({},R&&""!==R&&{"aria-label":R},{role:"button",backgroundColor:D,disabled:G,"data-testid":W,fullWidth:H,onClick:R=>{Y&&setTimeout(()=>Y(R),0)},ref:P,textColor:ee?.default||Wp(D.default,te.typography.color),style:i(i(i({},ne),x),!ne?.margin&&!!z&&{margin:z}),buttonHoverRules:i(i({},ie),k)}),$)}),xb=({disabled:R,onClick:D,isSecondLayerView:P,marginStyle:x})=>{const{labels:k,ui:G}=Eg(),{rules:H}=rm(jg.BUTTON_ACCEPT),{rules:$}=rm(jg.BUTTON_ACCEPT,!0),z=bd();let Y="";return at(k)&&pt(G)||lt(k)&&ht(G)?(Y=lt(k)&&P&&k.secondLayer.acceptButtonLabel?k.secondLayer.acceptButtonLabel:k?.buttons.acceptAll,ta(hS,{backgroundColor:z.ui.buttons.accept.bg,disabled:R,label:Y,onClick:D,testid:"uc-accept-all-button",textColor:z.ui.buttons.accept.text,buttonTypeRules:H,buttonHoverRules:$,marginStyle:x})):null},kb=({disabled:R,onClick:D,marginStyle:P})=>{const{labels:x}=Eg(),k=bd();return st(x)?ta(hS,{ariaLabel:`${x.buttons.save}, ${x.ariaLabels.ccpaButton}`,backgroundColor:k.ui.buttons.ccpa.bg,disabled:R,fullWidth:!1,label:x.buttons.save,onClick:D,testid:"uc-ccpa-button",textColor:k.ui.buttons.ccpa.text,marginStyle:P}):null},gS=_d.div(["align-items:center;display:inline-flex;margin-top:",";margin-bottom:",";",";"],({theme:R})=>R.spacing.base.xxs,({theme:R})=>R.spacing.base.md,({theme:R})=>Zp(R,Fd.MARGIN_RIGHT,R.spacing.base.md)),fS=_d.div(["color:",";font-size:",";display:flex;flex:1 0 auto;"],({theme:R})=>R.ui.text.color,({theme:R})=>R.typography.size.small),vS=_d.button(["align-items:center;border:none;display:flex;background:none;justify-content:center;height:",";min-height:",";min-width:",";outline:none;padding:0;width:",";","{height:",";width:",";}&:focus-visible{outline-style:auto;outline-width:5px;}"],({size:R})=>"small"===R?"16px":"20px",({size:R})=>"small"===R?"16px":"20px",({size:R})=>"small"===R?"32px":"40px",({size:R})=>"small"===R?"32px":"40px",ph.mobilePortrait,({size:R})=>"small"===R?"16px":"24px",({size:R})=>"small"===R?"32px":"48px"),mS=_d.label(["color:",";cursor:pointer;display:inline-flex;flex:1 1 auto;flex-wrap:wrap;font-weight:",";",";white-space:nowrap;","{align-items:center;",";+ div{",";}}"],({theme:R})=>R.ui.text.color,({theme:R})=>R.typography.weight.regular,({hideToggle:R,theme:D})=>Zp(D,Fd.MARGIN_RIGHT,R?0:D.spacing.base.xxs),ph.mobilePortrait,({theme:R})=>Zp(R,Fd.MARGIN_RIGHT,R.spacing.mobile.xl),({theme:R})=>Zp(R,Fd.MARGIN_LEFT,R.spacing.mobile.xl)),SS=_d.div(["align-items:center;display:flex;width:100%;&:not(:last-child){",";}","{&:not(:last-child){",";}}"],({theme:R})=>Zp(R,Fd.MARGIN_RIGHT,R.spacing.base.xs),ph.mobilePortrait,({theme:R})=>Zp(R,Fd.MARGIN_RIGHT,0)),bS=_d.div(["display:flex;flex-direction:column;flex:1;"]),Hb=({checked:R=!1,disableFocus:D=!1,hideToggle:P=!1,id:x=If(),isDisabled:k=!1,label:G,labelExtraInfo:H=null,labelActionComponent:$=null,labelledBy:z="",describedBy:Y="",onToggle:W,size:ee="regular",dpsCount:te})=>{const[ne,ie]=Ba(null);Ha(()=>{ne&&ne.focus({preventScroll:!0})},[R]);const re=om(`${x}`),oe=ta(ia,null,H?ta(bS,null,G&&ta(mS,{id:`toggle-label-${re}`,key:x,hideToggle:P},G," ",te&&`(${te})`),H):G&&ta(mS,{id:`toggle-label-${re}`,key:x,hideToggle:P},G," ",te&&`(${te})`),$);return ta(SS,null,oe,!P&&(k?ta(vS,t({id:`toggle-${re}`,tabIndex:0,size:ee,role:"switch","aria-disabled":k?"true":"false","aria-checked":R?"true":"false","aria-readonly":k?"true":"false"},(!G||""===G)&&z&&""!==z&&{"aria-labelledby":om(z)},Y&&""!==Y&&{"aria-describedby":om(Y)},G&&{"aria-labelledby":`toggle-label-${re}`},G&&z&&{"aria-describedby":`toggle-label-${re}`,"aria-labelledby":om(z)}),ta(bm,null)):ta(vS,t({id:`toggle-${re}`,"data-testid":`uc-toggle-${re}`,onClick:()=>{if(!k){let D=null;try{D=document.activeElement?.shadowRoot?.querySelector(":focus-visible")}catch(R){D=null}D&&ie(D),W(!R)}},size:ee,role:"switch","aria-disabled":k?"true":"false","aria-checked":R?"true":"false","aria-readonly":k?"true":"false"},(!G||""===G)&&z&&""!==z&&{"aria-labelledby":om(z)},Y&&""!==Y&&{"aria-describedby":om(Y)},G&&{"aria-labelledby":`toggle-label-${re}`},D&&{tabIndex:-1},G&&z&&{"aria-describedby":`toggle-label-${re}`,"aria-labelledby":om(z)}),ta(R?_m:Im,null))))},$b=({category:R,checked:D,onCategoryToggle:P,showVendorCount:x})=>{const k=x?R.services.length:null;return ta(gS,{"data-testid":"uc-category-toggle"},ta(fS,null,ta(Hb,{checked:D,id:R.slug,isDisabled:R.isEssential,label:R.label,onToggle:P,dpsCount:k})))},yS=_d.button(["align-items:center;border:none;display:flex;background:none;justify-content:center;outline:none;height:",";min-height:",";min-width:",";padding:0;width:",";","{height:",";width:",";}&:focus-visible{outline-style:auto;outline-width:5px;}"],({size:R})=>"small"===R?"16px":"20px",({size:R})=>"small"===R?"16px":"20px",({size:R})=>"small"===R?"32px":"40px",({size:R})=>"small"===R?"32px":"40px",ph.mobilePortrait,({size:R})=>"small"===R?"16px":"24px",({size:R})=>"small"===R?"32px":"48px"),ES=_d.label(["cursor:pointer;display:inline-flex;flex:1 1 auto;color:",";font-weight:",";font-size:",";",";&:not(:last-child){",";}","{align-items:center;",";+ div{",";}}"],({theme:R})=>R.ui.text.color,({theme:R})=>R.typography.weight.bold,({theme:R})=>R.typography.size.medium,({theme:R})=>Zp(R,Fd.MARGIN_LEFT,R.spacing.base.xs),({theme:R})=>Zp(R,Fd.MARGIN_RIGHT,R.spacing.base.xs),ph.mobilePortrait,({theme:R})=>Zp(R,Fd.MARGIN_RIGHT,R.spacing.base.sm),({theme:R})=>Zp(R,Fd.MARGIN_LEFT,R.spacing.base.sm)),CS=_d.div(["align-items:center;display:flex;flex-direction:row;"]),Wb=({checked:R=!1,disabled:D=!1,focusOnMount:P=!1,id:x=If(),label:k,onToggle:G,testid:H,size:$="regular"})=>{const z=za(null);Ha(()=>{P&&z.current&&z.current.focus({preventScroll:!0})},[]);const Y=om(`${x}`);return ta(CS,null,ta(yS,{"aria-labelledby":`toggle-label-${Y}`,"data-testid":H,disabled:D,id:`toggle-${x}`,onClick:()=>{G(!R)},size:$,role:"switch","aria-checked":R?"true":"false","aria-readonly":D?"true":"false",tabIndex:0,ref:z},ta(R?_m:Im,null)),k&&ta(ES,{key:x,id:`toggle-label-${Y}`},k))},TS=_d.div(["height:20px;width:40px;","{height:24px;width:48px;}"],ph.mobilePortrait),Jb=({checked:R,id:D,isDisabled:P=!1,label:x,labelledBy:k,onToggle:G})=>ta(TS,null,ta(Hb,{checked:R,id:D,isDisabled:P,label:x,onToggle:G,labelledBy:k})),Xb=({checked:R,disabled:D,onToggle:P,focusOnMount:x})=>{const{labels:k}=Eg(),{firstLayerVariant:G,view:H}=ev();return st(k)?ta(Wb,{checked:R,disabled:D,focusOnMount:x,id:H===Vd.FIRST_LAYER&&G===$.BANNER?"toggle-ccpa-banner":"toggle-ccpa-wall",label:k.buttons.optOutNotice,onToggle:P,testid:H===Vd.FIRST_LAYER&&G===$.BANNER?"uc-ccpa-toggle":"uc-ccpa-wall-toggle"}):null},qb=({disabled:R,onClick:D,marginStyle:P})=>{const{labels:x}=Eg(),{rules:k}=rm(jg.BUTTON_CUSTOMIZE),G=bd();return at(x)?ta(hS,{backgroundColor:G.ui.buttons.save.bg,disabled:R,label:x.buttons.manageSettings,onClick:D,testid:"uc-customize-button",textColor:G.ui.buttons.save.text,buttonTypeRules:k,marginStyle:P}):null},Qb=({disabled:R,onClick:D,isSecondLayerView:P,marginStyle:x})=>{const{labels:k}=Eg(),{rules:G}=rm(jg.BUTTON_DENY),{rules:H}=rm(jg.BUTTON_DENY,!0),$=bd();let z="";return at(k)||lt(k)?(z=lt(k)&&P&&k.secondLayer.denyButtonLabel?k.secondLayer.denyButtonLabel:k?.buttons.denyAll,ta(hS,{backgroundColor:$.ui.buttons.deny.bg,disabled:R,label:z,onClick:D,testid:"uc-deny-all-button",textColor:$.ui.buttons.deny.text,buttonTypeRules:G,buttonHoverRules:H,marginStyle:x})):null},Zb=R=>R.charAt(0).toUpperCase()+R.slice(1),ey=({disabled:R,onClick:D,buttonRef:P,marginStyle:x})=>{const{labels:k}=Eg(),{rules:G}=rm(jg.BUTTON_MORE),{rules:H}=rm(jg.BUTTON_MORE,!0),$=bd();return st(k)||lt(k)?ta(hS,{backgroundColor:$.ui.buttons.more.bg,disabled:R,label:Zb(k.buttons.showSecondLayer),onClick:D,testid:"uc-more-button",textColor:$.ui.buttons.more.text,buttonRef:P,buttonTypeRules:G,buttonHoverRules:H,marginStyle:x}):null},ty=({disabled:R,onClick:D,marginStyle:P})=>{const{labels:x}=Eg(),{rules:k}=rm(jg.BUTTON_SAVE),{rules:G}=rm(jg.BUTTON_SAVE,!0),H=bd();return!x||ct(x)?null:ta(hS,{backgroundColor:H.ui.buttons.save.bg,disabled:R,label:x.buttons.save,onClick:D,testid:"uc-save-button",textColor:H.ui.buttons.save.text,buttonTypeRules:k,buttonHoverRules:G,marginStyle:P})},ny=(R,D)=>`\n background-color: white;\n border-bottom-color: ${R.color.primary.default};\n border-bottom-style: solid;\n border-bottom-width: ${D?"4px":"0"};\n display: flex;\n flex-direction: column;\n position: fixed;\n z-index: 2147483640;\n `,_S=["isHtmlDialog"],IS=["isHtmlDialog"],AS=["isHtmlDialog"],wS=_d.div(["left:0;"," "," ",";align-self:center;max-width:",";max-height:100%;width:100%;display:flex;flex-direction:column;height:",";pointer-events:auto;border-top-left-radius:",";border-top-right-radius:",";box-shadow:",";","{border-bottom:0;}","{border-bottom:0;}"],({isIE:R})=>R&&"position: relative;",({isIE:R})=>R&&"flex: 0 0 auto;",({layerPlacement:R})=>R===Zd.BOTTOM?"bottom: 0":"top: 0",({theme:R})=>`${R.uiSizes.maxBannerWidth}px`,({isAmpEnabled:R})=>R?"100%":"auto",({theme:R})=>R.ui.layer.borderRadius,({theme:R})=>R.ui.layer.borderRadius,({theme:R})=>R.ui.useBackgroundShadow?"0 3px 7px rgba(0, 0, 0, 0.8)":"none",ph.mobilePortrait,ph.mobileLandscape),OS=id` ${({showBorderBottom:R,theme:D})=>ny(D,R)} ${({layerPlacement:R})=>R===Zd.BOTTOM?"bottom: 0":"top: 0"}; pointer-events: ${({clickThrough:R})=>R?"none":"auto"}; flex-direction: column-reverse; align-items: center; background-color: transparent; box-shadow: ${({theme:R})=>R.ui.useBackgroundShadow?"0 3px 7px rgba(0, 0, 0, 0.8)":"none"}; left: 0px; margin: auto; outline: none; right: 0; width: 100%; overflow-y: auto; max-height: 100%; height: ${({isAmpEnabled:R})=>R?"100%":"auto"}; ${({isHtmlDialog:R})=>R?"\n padding: 0;\n border: none;\n ":""} ${({layerPlacement:R,isHtmlDialog:D})=>R===Zd.BOTTOM&&D?"\n margin: 0;\n bottom: 0;\n max-width: inherit;\n ":""} ${({isIE:R})=>R&&"height: 100%;"} min-height: 100%; ${ph.mobilePortrait} { border-bottom: 0; } ${ph.mobileLandscape} { border-bottom: 0; } ${ph.ie11} { width: 100%; } &:focus-visible { outline-width: 0px; outline-color: transparent; } `,LS=al((R,D)=>{let{isHtmlDialog:P}=R;return ta(P?"dialog":"div",t({ref:D},r(R,_S)))}),NS=_d(LS)(["",""],OS),RS=_d.div(["pointer-events:",";position:fixed;width:100%;height:100%;top:0;right:0;display:flex;z-index:2147483640;"],({clickThrough:R})=>R?"none":"auto"),DS=id` ${({showBorderBottom:R,theme:D})=>ny(D,R)} background-color: ${({theme:R})=>R.ui.layer.backgroundColor}; align-self: center; border-radius: ${({theme:R})=>R.ui.layer.borderRadius}; box-shadow: ${({theme:R})=>R.ui.useBackgroundShadow?"0 5px 26px 0px rgba(0, 0, 0, 0.22), 0 20px 28px 0px rgba(0, 0, 0, 0.3)":"none"}; height: ${({isAmpEnabled:R,withInitialHeight:D})=>((R,D)=>D?"100%":R?"initial":"auto")(D,R)}; margin-left: ${({isAmpEnabled:R})=>R?"initial":"auto"}; margin-right: ${({isAmpEnabled:R})=>R?"initial":"auto"}; max-height: ${({isAmpEnabled:R})=>R?"initial":"80vh"}; max-width: ${({isAmpEnabled:R,theme:D})=>R?"initial":`${D.uiSizes.maxSideAndCenterContainerWidth}px`}; outline: none; overflow: hidden; width: 100%; pointer-events: auto; position: relative; ${({isHtmlDialog:R})=>R?"\n padding: 0;\n border: none;\n ":""} ${ph.mobilePortrait} { bottom: 0; border-radius: ${({theme:R})=>R.ui.layer.borderRadius} ${({theme:R})=>R.ui.layer.borderRadius} 0 0; max-width: auto; // IE11 fix max-width: initial; top: auto; transform: initial; width: 100%; align-self: flex-end; ${({isInAppIos:R,theme:D})=>R?`align-self: center; width: 95%; border-radius: ${D.ui.layer.borderRadius};`:""} } ${ph.mobileLandscape} { border-bottom: 0; max-height: ${({isAmpEnabled:R})=>R?"initial":"100vh"}; max-width: ${({isAmpEnabled:R,theme:D})=>R?"initial":`${D.uiSizes.maxSideAndCenterContainerWidth}px`}; } ${ph.ie11} { min-height: 200px; } &:focus-visible { outline-style: auto; outline-width: 0px; outline-color: transparent; } `,PS=al((R,D)=>{let{isHtmlDialog:P}=R;return ta(P?"dialog":"div",t({ref:D},r(R,IS)))}),xS=_d(PS)(["",""],DS),kS=_d.div(["display:flex;flex-direction:row;flex-wrap:wrap;","{display:block;}"],ph.mobilePortrait),VS=_d.div(["display:flex;flex-direction:column;flex:1 1 auto;","{display:block;}"],ph.mobilePortrait),US=_d.div(["display:flex;flex-direction:column;align-items:stretch;width:100%;height:100%;",";"],({useBackgroundColor:R,theme:D})=>R&&`color: ${D.ui.text.color}`),MS=_d.div(["display:flex;flex-direction:column;background-color:",";padding:",";","{padding:",";}"],({theme:R})=>R.ui.layer.backgroundColor,({theme:R})=>`0 ${R.spacing.base.xl}`,ph.mobilePortrait,({theme:R})=>`0 ${R.spacing.mobile.xxxl}`),FS=_d.div(["display:flex;flex-direction:row;flex-wrap:wrap;"]),BS=_d.div(["border-top-left-radius:",";border-top-right-radius:",";display:flex;flex-direction:column;overflow:hidden;z-index:101;",""],({theme:R})=>R.ui.layer.borderRadius,({theme:R})=>R.ui.layer.borderRadius,({isHtmlDialog:R})=>R?"height: unset;":"height: 100%;"),GS=_d.div(["display:flex;flex-direction:column;flex:1 1 auto;padding-top:1px;position:relative;overflow:hidden;","{padding-top:0;padding-bottom:0;}"],ph.mobilePortrait||ph.mobileLandscape||ph.mobilePortraitXS),HS=id` ${({showBorderBottom:R,theme:D})=>ny(D,R)} background-color: ${({theme:R})=>R.ui.layer.backgroundColor}; border-radius: ${({privacyButtonPosition:R})=>"br"===R?"8px 0 0 0":"0 8px 0 0"}; bottom: 0; box-shadow: 0 3px 7px rgba(0, 0, 0, 0.8); height: 100%; left: ${({side:R})=>R&&R===ee.LEFT?"0":"initial"}; max-width: ${({theme:R})=>`${R.uiSizes.maxSideAndCenterContainerWidth}px`}; outline: none; padding-bottom: 10px; pointer-events: auto; right: ${({side:R})=>R&&R===ee.RIGHT?"0":"initial"}; width: 50%; ${({isHtmlDialog:R})=>R?"\n padding: 0;\n border: none;\n ":""} ${ph.mobilePortrait} { border-bottom: 0; transform: initial; width: 100%; padding-bottom: 0px; } ${ph.mobileLandscape} { border-bottom: 0; transform: initial; width: 95%; padding-bottom: 0px; } `,$S=_d.div(["display:flex;align-items:center;margin-top:10px;"]),jS=_d.div(["width:18px;height:18px;margin-right:4px;"]),XS=_d.div(["color:",";"],({theme:R})=>R.ui.text.color),qS=al((R,D)=>{let{isHtmlDialog:P}=R;return ta(P?"dialog":"div",t({ref:D},r(R,AS)))}),ZS=_d(qS)(["",""],HS),wy=({fill:R})=>{const D=bd();return ta("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24","aria-hidden":!0},ta("defs",null,ta("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2ZM9.55 15.753l-2.906-2.996a.844.844 0 0 1-.236-.588c0-.221.085-.433.236-.589a.79.79 0 0 1 1.142 0l2.34 2.404 5.57-5.742a.79.79 0 0 1 1.141 0 .85.85 0 0 1 0 1.176l-6.145 6.335a.79.79 0 0 1-1.141 0Z",id:"checkmark-rounded-icon-path-a"})),ta("g",{fill:"none",fillRule:"evenodd"},ta("mask",{id:"checkmark-rounded-icon-path-b",fill:"#fff"},ta("use",{xlinkHref:"#checkmark-rounded-icon-path-a"})),ta("g",{mask:"url(#checkmark-rounded-icon-path-b)",fill:R||D.ui.text.color},ta("path",{d:"M0 0h24v24H0z"}))))},Oy=R=>{const D=R.split(/()/i),P=[];return D.forEach(R=>{/^$/i.test(R)?P.push(ta("br",null)):R&&P.push(R)}),P},Ly=(R,D)=>Object.keys(R).filter(R=>D.includes(R)).reduce((D,P)=>(D[P]=R[P],D),{}),Ny=()=>{const{selectedSubService:R,setSelectedSubService:D}=mh();return{onCloseSubServiceDetail:()=>{R&&D(null)},onOpenSubServiceDetail:R=>{D(R)}}},eb=_d.div(["display:flex;flex-direction:row;margin-bottom:",";","{flex-wrap:wrap;padding-top:0;}","{padding-top:",";}"],({theme:R,withoutMargin:D})=>D?"0":R.spacing.base.sm,ph.mobilePortrait,ph.mobileLandscape,({theme:R})=>R.spacing.base.sm),tb=_d.div(["display:flex;flex-direction:row;"]),nb=_d.a(["align-items:center;color:",";cursor:pointer;display:flex;flex-direction:row;font-size:",";font-weight:",";",";outline:none;text-decoration:none;word-break:break-word;position:relative;padding-top:calc((44px - ("," * 1.15)) / 2);padding-bottom:calc((44px - ("," * 1.15)) / 2);&:hover{text-decoration:underline;}&:focus-visible{outline-style:auto;outline-width:5px;}","{",";}"],({theme:R})=>R.ui.links.fontColor,({theme:R})=>R.typography.size.small,({theme:R})=>R.typography.weight.regular,({theme:R})=>Zp(R,Fd.MARGIN_RIGHT,R.spacing.base.sm),({theme:R})=>R.typography.size.small,({theme:R})=>R.typography.size.small,ph.mobilePortrait,({theme:R})=>Zp(R,Fd.MARGIN_RIGHT,R.spacing.mobile.lg)),ab=_d.i(["display:flex;height:16px;",";width:16px;"],({theme:R})=>Zp(R,Fd.MARGIN_RIGHT,R.spacing.base.xxs)),ub=_d.div(["display:flex;"]);function Vy(R,D=""){return D?D.endsWith("/")||R.startsWith("/")?D.endsWith("/")&&R.startsWith("/")?`${D.slice(0,-1)}${R}`:`${D}${R}`:`${D}/${R}`:R.includes("//")||R.startsWith("/")||R.startsWith("#")?R:`//${R}`}const db=rl(({buttons:R=[],children:D,links:P,withoutMargin:x=!1,setTrackingPixel:k})=>{const{abTestVariant:G,baseHref:H,view:$}=ev(),{rules:z}=rm(jg.LINKS),Y=P.filter(R=>R.url&&R.label),W=R.filter(R=>R.onClick&&R.label);return 0!==Y.length||0!==W.length||D?ta(eb,{withoutMargin:x},ta(tb,{"data-testid":"uc-anchors"},Y.map(R=>ta(nb,t({},R.ariaLabel&&{"aria-label":R.ariaLabel},{"data-testid":"uc-anchor-link",href:Vy(R.url||"",H),onClick:D=>((R,D,P)=>{const x=D&&D.match(/^#onUc(.*)Click$/);if(Xd($,P,G,k),x&&x.length){R.preventDefault();const D=new window.CustomEvent(x[0].substr(1));window.dispatchEvent(D)}})(D,R.url,R.type),target:"_blank",rel:"noopener",style:i({},z)}),R.label)),W.map(R=>ta(nb,{"data-testid":"uc-anchor-button",onClick:R.onClick,target:"_blank",rel:"noopener",style:i({},z)},ta(ab,null,R.icon),R.label))),ta(ub,null,D)):null}),gb=_d.div(["display:flex;flex:2 1 auto;flex-direction:row;padding:",";","{flex-direction:column;}"],({theme:R,alignment:D})=>`${R.spacing.base.xs} 0 ${"vertical"===D?R.spacing.base.xs:R.spacing.base.sm} 0`,ph.mobilePortrait),Sb=_d.div(["display:flex;flex-direction:",";flex:auto;flex:2 1 auto;"],({alignment:R})=>"horizontal"===R?"row":"column"),Eb=_d.div(["display:flex;flex:1 1 auto;flex-direction:",";"],({direction:R})=>R),Gy=R=>R.reduce((R,D)=>!D||D.props.disabled?R:[...R,D],[]),Hy=R=>null!=R.CcpaButton,$y=R=>null!=R.AcceptAllButton,zy=R=>null!=R.AcceptAllButton,jy=({isDesktop:R,isMobile:D,isPortrait:P,uiVariant:x,firstLayerVariant:k})=>D&&P||R&&x===Rs.DEFAULT&&k===$.WALL,Yy=(R,D,P,x)=>P&&(R&&D||!R&&x===te.VERTICAL)?"vertical":"horizontal",Cb=rl(({buttons:R=[],testid:D=""})=>{const P=bd(),{rules:x}=rm(jg.BUTTONS_CONTAINER),{isDesktop:k,isMobile:G,isPortrait:H}=ch(),{uiVariant:$,firstLayerVariant:z}=ev(),{alignment:Y}=P.ui.buttons,W=R.reduce((R,D)=>R||null!=D.props.label&&D.props.label.length>17,!1),ee=jy({firstLayerVariant:z,isDesktop:k,isMobile:G,isPortrait:H,uiVariant:$}),ne=Yy(G,H,ee,Y);return ta(({children:R,id:D})=>W?ta("div",{style:i({},x)},R):ta(Sb,{"data-testid":D,alignment:ne,style:i(i(i({},x),"horizontal"===ne&&$!==Rs.CCPA&&{margin:`0 -${P.spacing.mobile.sm}`}),!k&&$===Rs.CCPA&&{marginTop:P.spacing.base.md})},R),{id:D},("horizontal"===ne?R:R.reverse()).map(D=>W&&G&&H||ee&&(Y===te.VERTICAL||G)?Ia(D,{marginStyle:`${P.spacing.base.xxs} 0`}):$===Rs.CCPA?k&&R.length>1?Ia(D,{marginStyle:`0 0 0 ${P.spacing.base.xl}`}):D:Ia(D,{marginStyle:`0 ${P.spacing.mobile.sm}`})))}),Tb=rl(R=>{const{uiVariant:D}=ev();let P=[];switch(D){case Rs.CCPA:if(Hy(R)){const{CcpaToggle:D,CcpaButton:x}=R;P=Gy([D,x])}break;case Rs.TCF:if($y(R)){const{AcceptAllButton:D,DenyAllButton:x,SaveButton:k}=R;P=Gy([k,x,D])}break;case Rs.DEFAULT:default:if(zy(R)){const{AcceptAllButton:D,DenyAllButton:x,SaveButton:k,MoreButton:G}=R;P=Gy([G,k,x,D])}}return 0===P.length?null:ta(Cb,{buttons:P,testid:"uc-buttons-container"})}),_b=rl(R=>{const{rules:D}=rm(jg.BUTTONS_CONTAINER),{uiVariant:P}=ev();let x=[],k=[],G=!1;switch(P){case Rs.CCPA:if(Hy(R)){const{CcpaToggle:D,CcpaButton:P}=R;G=!0,D?(x=Gy([D]),k=Gy([P])):x=Gy([P])}break;case Rs.TCF:if($y(R)){const{AcceptAllButton:D,DenyAllButton:P,SaveButton:k}=R;x=Gy([k,P,D]),G=!0}break;case Rs.DEFAULT:default:if(zy(R)){const{AcceptAllButton:D,DenyAllButton:P,MoreButton:k,SaveButton:H}=R;x=Gy([k,H,P,D]),G=!0}}return 0===x.length?null:ta(Eb,{direction:G?"column":"row",style:i({},D)},x.length>0&&ta(Cb,{testid:"first-line-buttons",buttons:x}),k.length>0&&ta(Cb,{testid:"second-line-buttons",buttons:k}))}),Ib=rl(R=>{const D=bd(),{isDesktop:P,isMobile:x,isPortrait:k}=ch(),{uiVariant:G,firstLayerVariant:H}=ev(),$=jy({firstLayerVariant:H,isDesktop:P,isMobile:x,isPortrait:k,uiVariant:G}),z=Yy(x,k,$,D.ui.buttons.alignment),{rules:Y}=rm(jg.BUTTONS_CONTAINER_WRAPPER);return ta(gb,{alignment:z,style:i({},Y)},ta(P?Tb:_b,R))}),Ab=_d.button(["align-items:center;background-color:transparent;border:none;display:flex;display:inline-flex;flex-direction:row;font-size:",";font-weight:",";margin:0;outline:none;padding:0;text-decoration:none;vertical-align:baseline;",";&:focus-visible{outline-style:auto;outline-width:5px;}"],({theme:R})=>R.typography.size.small,({theme:R})=>R.typography.weight.regular,({theme:R})=>Zp(R,Fd.MARGIN_RIGHT,R.spacing.base.sm)),wb=_d.span(["color:",";&:hover{text-decoration:underline;}"],({theme:R})=>R.ui.links.fontColor),Zy=({ariaLabel:R,label:D,onClick:P,elRef:x,style:k})=>{const{rules:G}=rm(jg.LINKS);return ta(Ab,{"data-testid":"uc-customize-anchor",onClick:P,"aria-label":R,ref:x,style:i(i({},k),G)},ta(wb,null,D))},Ob=_d.div(["font-size:",";font-weight:500;margin-right:",";margin-left:",";display:flex;align-items:center;"],({theme:R})=>R.typography.size.small,({theme:R})=>R.spacing.base.xxs,({theme:R})=>R.spacing.base.xxs),Lb=_d.div(["color:",";cursor:pointer;display:inline-flex;padding:",";svg path{fill:",";}&:focus-visible{outline-style:auto;outline-width:5px;}"],({theme:R})=>R.ui.links.fontColor,({theme:R})=>`${R.spacing.base.sm} ${R.spacing.base.xl}`,({theme:R})=>R.ui.links.fontColor),Nb=_d.div(["background-color:",";border-bottom:",";display:flex;",";"],({theme:R})=>R.ui.layer.backgroundColor,"1px solid #dedede",({theme:R})=>Zp(R,Fd.FLEX_ALIGNMENT_RIGHT,0)),Rb=_d.div(["display:",";height:16px;"],({theme:R})=>R.typography.rtlEnabled?"none":"inline-flex"),Db=_d.div(["display:",";height:16px;order:",";"],({theme:R})=>R.typography.rtlEnabled?"inline-flex":"none",({theme:R})=>R.typography.rtlEnabled?1:0),Pb=rl(({denyLinkText:R,onDenyAllHandler:D})=>{const{rules:P}=rm(jg.LINKS);return ta(Nb,null,ta(Lb,{tabIndex:0,"aria-labelledby":"uc-cnil-deny-all",role:"button",style:i({},P),onClick:D,onKeyPress:R=>{"Enter"===R.code&&D()},"data-testid":"uc-cnil-deny-all"},ta(Db,null,ta(gm,null)),ta(Ob,{id:"uc-cnil-deny-all"},R),ta(Rb,null,ta(fm,null))))}),Vb=_d.div(["border-top:",";background-color:",";display:block;bottom:0;left:0;width:100%;z-index:100;padding:",";","{padding:",";flex:0 0 auto;}"],({theme:R,showBorder:D})=>D?`1px solid ${R.ui.accentColor}`:"none",({theme:R})=>R.ui.layer.backgroundColor,({theme:R})=>`0 ${R.spacing.base.xl} ${R.spacing.base.sm}`,ph.mobilePortrait,({theme:R})=>`0 ${R.spacing.mobile.xxxl} ${R.spacing.mobile.xxxl}`),Ub=_d.div(["display:block;font-weight:",";justify-content:center;min-height:0px;text-align:center;width:100%;"],({theme:R})=>R.typography.weight.regular),Mb=rl(({children:R,showBorder:D=!1})=>{const{isLandscape:P}=ch(),[x,k]=Ba(0),G=za(null),{rules:H}=rm(jg.FOOTER_WRAPPER),{rules:$}=rm(jg.BANNER_CONTENT),z=$?Ly($,["border-bottom-left-radius","border-bottom-right-radius"]):{};return Ha(()=>{G&&G.current&&G.current.offsetHeight!==x&&k(G.current.offsetHeight)},[P,x,k]),ta(Vb,{showBorder:D,ref:G,style:i(i({},H),z)},ta(Ub,{"data-testid":"uc-footer"},R))}),Fb=_d.div(["width:85%;display:flex;flex-direction:column;align-self:",";"],({alignment:R})=>R),Bb=_d.div(["background-color:",";display:block;flex:initial;flex-shrink:0;padding:",";","{padding:",";}","{max-width:",";}"],({theme:R})=>R.ui.layer.backgroundColor,({noPadding:R,theme:D})=>R?"0":`${D.spacing.base.xl} ${D.spacing.base.xl} 0`,ph.mobilePortrait,({noPadding:R,theme:D})=>R?"0":D.spacing.mobile.xxxl,ph.ie11,({view:R,firstLayerVariant:D})=>R===Vd.FIRST_LAYER&&D===$.WALL||R===Vd.SECOND_LAYER?"625px":"initial"),Gb=_d.div(["color:",";display:flex;flex:1;flex-shrink:0;flex-direction:column;"],({theme:R})=>R.typography.color.primary),zb=_d.div(["align-items:flex-start;display:flex;flex-direction:",";justify-content:space-between;position:relative;"],({reverseItems:R})=>R?"row-reverse":"row"),jb=_d.div(["position:relative;min-height:24px;display:flex;"," ",""],({position:R,theme:D})=>((R,D)=>{switch(R){case"center":case"left":return`${Zp(D,Fd.POSITION_RIGHT,0)};\n ${Zp(D,Fd.FLEX_ALIGNMENT_RIGHT,0)};`;default:return`${Zp(D,Fd.POSITION_LEFT,0)};\n ${Zp(D,Fd.FLEX_ALIGNMENT_LEFT,0)};`}})(R,D),({maxWidth:R})=>R&&`max-width: ${R}px`),Yb=_d.button(["align-items:center;background-color:transparent;border:none;display:flex;height:",";outline:none;",";","{",";padding:0;}","{padding:0;}&:focus-visible{outline-style:auto;outline-width:5px;}"],({height:R})=>R,({theme:R})=>Zp(R,Fd.MARGIN_LEFT,R.spacing.base.md),ph.mobilePortraitXS,({theme:R})=>Zp(R,Fd.MARGIN_LEFT,R.spacing.mobile.md),ph.mobileLandscapeXS),Kb=_d.div(["height:48px;max-height:48px;max-width:300px;width:300px;",";","{max-width:180px;width:180px;}"],({position:R,theme:D})=>((R,D)=>{switch(R){case"center":return"margin: 0 auto";case"right":return Zp(D,Fd.MARGIN_LEFT,"auto");default:return Zp(D,Fd.MARGIN_RIGHT,"auto")}})(R,D),ph.mobilePortraitXS),iy=_d.img(["height:100%;object-fit:contain;",";width:100%;","{height:auto;width:auto;max-height:48px;max-width:300px;}"],({position:R,theme:D})=>((R,D)=>{switch(R){case"center":return Fd.OBJECT_POSITION_CENTER;case"right":return Zp(D,Fd.OBJECT_POSITION_RIGHT);default:return Zp(D,Fd.OBJECT_POSITION_LEFT)}})(R,D),ph.ie11),ry=_d.h1(["border:0;color:",";font-size:",";font-weight:",";margin:0;"],({theme:R})=>R.ui.text.color,({theme:R})=>R.typography.size.large,({theme:R})=>R.typography.weight.bold),SE=({children:R})=>{const{rules:D}=rm(jg.TITLE);return ta(ry,{"data-testid":Rd,id:Rd,style:i({},D)},R)},oy=_d.button(["display:",";background:none;border:none;height:24px;min-width:24px;padding:0;width:24px;&:focus-visible{border:",";}"],({display:R})=>R?"none":"flex",({theme:R})=>`1px solid ${R.ui.accentColor}`),sy=_d.div(["align-items:center;border-radius:4px;"," display:flex;line-height:18px;overflow:hidden;position:",";z-index:2147483643;"," top:",";"],({dropdownExpanded:R,visibility:D})=>R&&D&&"box-shadow: 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 2px 4px -1px rgba(0, 0, 0, 0.2);",({dropdownExpanded:R})=>R?"fixed":"relative",({dropdownExpanded:R,left:D,right:P,isGlobeOnRight:x})=>-1!==P&&R&&(P&&D?`left: ${x?P-160:D}px;`:"right: 0px;"),({dropdownExpanded:R,top:D})=>R?`${D}px`:"auto"),ay=_d.div(["display:",";flex-direction:column;max-height:","px;min-width:160px;overflow-y:auto;"," width:100%;"],({display:R})=>R?"flex":"none",({maxHeight:R})=>R||100,({visibility:R})=>!R&&"visibility: hidden;"),ly=_d.button(["align-items:center;background-color:white;border:0;display:flex;font-size:",";margin:0;outline:none;padding:",";text-align:left;justify-content:space-between;&:hover{background-color:",";}","{min-height:35px;}","{min-height:35px;}&:focus-visible{background-color:",";border:",";border-radius:4px;}"],({theme:R})=>R.typography.size.medium,({theme:R})=>`${R.spacing.base.sm} ${R.spacing.base.md}`,({theme:R})=>R.color.neutral.default,ph.mobilePortrait,ph.mobileLandscape,({theme:R})=>R.color.neutral.default,({theme:R})=>`1px solid ${R.ui.a11yFocus.color}`),cy=_d(ly)(["border-bottom:1px solid #f4f4f4;"]),uy=_d.div(["font-weight:600;"]);var dy={exports:{}};function AE(){}function wE(){}wE.resetWarningCache=AE,dy.exports=function(){function e(R,D,P,x,k,G){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==G){var H=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw H.name="Invariant Violation",H}}function t(){return e}e.isRequired=e;var R={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:wE,resetWarningCache:AE};return R.PropTypes=R,R}();var py=dy.exports,hy="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),gy=new Uint8Array(16);function RE(){if(!hy)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return hy(gy)}for(var fy=[],vy=0;vy<256;++vy)fy[vy]=(vy+256).toString(16).substr(1);function xE(R,D,P){var x=D&&P||0;"string"==typeof R&&(D="binary"===R?new Array(16):null,R=null);var k=(R=R||{}).random||(R.rng||RE)();if(k[6]=15&k[6]|64,k[8]=63&k[8]|128,D)for(var G=0;G<16;++G)D[x+G]=k[G];return D||function(R){var D=0,P=fy;return[P[R[D++]],P[R[D++]],P[R[D++]],P[R[D++]],"-",P[R[D++]],P[R[D++]],"-",P[R[D++]],P[R[D++]],"-",P[R[D++]],P[R[D++]],"-",P[R[D++]],P[R[D++]],P[R[D++]],P[R[D++]],P[R[D++]],P[R[D++]]].join("")}(k)}function kE(R,D){var P=Object.keys(R);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(R);D&&(x=x.filter(function(D){return Object.getOwnPropertyDescriptor(R,D).enumerable})),P.push.apply(P,x)}return P}function VE(R){for(var D=1;DR.length)&&(D=R.length);for(var P=0,x=new Array(D);P0&&Py[0]<4?1:+(Py[0]+Py[1])),!xy&&bE&&(!(Py=bE.match(/Edge\/(\d+)/))||Py[1]>=74)&&(Py=bE.match(/Chrome\/(\d+)/))&&(xy=+Py[1]);var _E=xy,IE=XE,OE=!!Object.getOwnPropertySymbols&&!IE(function(){var R=Symbol();return!String(R)||!(Object(R)instanceof Symbol)||!Symbol.sham&&_E&&_E<41}),LE=OE&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,NE=HC,DE=uE,PE=vE,YE=Object,JE=LE?function(R){return"symbol"==typeof R}:function(R){var D=NE("Symbol");return DE(D)&&PE(D.prototype,YE(R))},KE=String,qE=uE,QE=TypeError,cT=function(R){if(qE(R))return R;throw QE(function(R){try{return KE(R)}catch(R){return"Object"}}(R)+" is not a function")},ZE=cT,eC=AC,tC=_y,nC=uE,iC=hE,rC=TypeError,oC={exports:{}},sC=Sy,aC=Object.defineProperty,bT=function(R,D){try{aC(sC,R,{value:D,configurable:!0,writable:!0})}catch(P){sC[R]=D}return D},cC=bT,uC="__core-js_shared__",dC=Sy[uC]||cC(uC,{}),pC=dC;(oC.exports=function(R,D){return pC[R]||(pC[R]=void 0!==D?D:{})})("versions",[]).push({version:"3.25.5",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.5/LICENSE",source:"https://github.com/zloirock/core-js"});var gC=LC,fC=Object,AT=function(R){return fC(gC(R))},vC=AT,SC=yC({}.hasOwnProperty),bC=Object.hasOwn||function(R,D){return SC(vC(R),D)},EC=yC,CC=0,TC=Math.random(),_C=EC(1..toString),xT=function(R){return"Symbol("+(void 0===R?"":R)+")_"+_C(++CC+TC,36)},IC=Sy,wC=oC.exports,OC=bC,NC=xT,RC=OE,PC=LE,xC=wC("wks"),kC=IC.Symbol,VC=kC&&kC.for,UC=PC?kC:kC&&kC.withoutSetter||NC,jT=function(R){if(!OC(xC,R)||!RC&&"string"!=typeof xC[R]){var D="Symbol."+R;RC&&OC(kC,R)?xC[R]=kC[R]:xC[R]=PC&&VC?VC(D):UC(D)}return xC[R]},MC=_y,FC=hE,BC=JE,GC=TypeError,$C=jT("toPrimitive"),ZT=function(R,D){if(!FC(R)||BC(R))return R;var P,x=function(R,D){var P=R[D];return eC(P)?void 0:ZE(P)}(R,$C);if(x){if(void 0===D&&(D="default"),P=MC(x,R,D),!FC(P)||BC(P))return P;throw GC("Can't convert object to primitive value")}return void 0===D&&(D="number"),function(R,D){var P,x;if("string"===D&&nC(P=R.toString)&&!iC(x=tC(P,R)))return x;if(nC(P=R.valueOf)&&!iC(x=tC(P,R)))return x;if("string"!==D&&nC(P=R.toString)&&!iC(x=tC(P,R)))return x;throw rC("Can't convert object to primitive value")}(R,D)},zC=JE,tI=function(R){var D=ZT(R,"string");return zC(D)?D:D+""},jC=hE,YC=Sy.document,WC=jC(YC)&&jC(YC.createElement),oI=function(R){return WC?YC.createElement(R):{}},JC=oI,XC=!yy&&!XE(function(){return 7!=Object.defineProperty(JC("div"),"a",{get:function(){return 7}}).a}),KC=yy,qC=_y,QC=Iy,ZC=lC,eT=DC,tT=tI,nT=bC,iT=XC,rT=Object.getOwnPropertyDescriptor;by.f=KC?rT:function(R,D){if(R=eT(R),D=tT(D),iT)try{return rT(R,D)}catch(R){}if(nT(R,D))return ZC(!qC(QC.f,R,D),R[D])};var oT={},sT=yy&&XE(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),aT=hE,lT=String,uT=TypeError,CI=function(R){if(aT(R))return R;throw uT(lT(R)+" is not an object")},dT=yy,pT=XC,hT=sT,gT=CI,fT=tI,vT=TypeError,mT=Object.defineProperty,ST=Object.getOwnPropertyDescriptor,yT="enumerable",ET="configurable",CT="writable";oT.f=dT?hT?function(R,D,P){if(gT(R),D=fT(D),gT(P),"function"==typeof R&&"prototype"===D&&"value"in P&&CT in P&&!P[CT]){var x=ST(R,D);x&&x[CT]&&(R[D]=P.value,P={configurable:ET in P?P[ET]:x[ET],enumerable:yT in P?P[yT]:x[yT],writable:!1})}return mT(R,D,P)}:mT:function(R,D,P){if(gT(R),D=fT(D),gT(P),pT)try{return mT(R,D,P)}catch(R){}if("get"in P||"set"in P)throw vT("Accessors not supported");return"value"in P&&(R[D]=P.value),R};var TT=oT,_T=lC,IT=yy?function(R,D,P){return TT.f(R,D,_T(1,P))}:function(R,D,P){return R[D]=P,R},wT={exports:{}},OT=yy,LT=bC,NT=Function.prototype,RT=OT&&Object.getOwnPropertyDescriptor,DT=LT(NT,"name"),PT={EXISTS:DT,PROPER:DT&&"something"===function(){}.name,CONFIGURABLE:DT&&(!OT||OT&&RT(NT,"name").configurable)},kT=uE,VT=dC,UT=yC(Function.toString);kT(VT.inspectSource)||(VT.inspectSource=function(R){return UT(R)});var MT,FT,BT,GT=VT.inspectSource,HT=uE,$T=Sy.WeakMap,zT=HT($T)&&/native code/.test(String($T)),YT=oC.exports,WT=xT,JT=YT("keys"),i_=function(R){return JT[R]||(JT[R]=WT(R))},XT={},KT=zT,qT=Sy,QT=hE,e_=IT,t_=bC,n_=dC,r_=i_,o_=XT,s_="Object already initialized",a_=qT.TypeError,l_=qT.WeakMap;if(KT||n_.state){var c_=n_.state||(n_.state=new l_);c_.get=c_.get,c_.has=c_.has,c_.set=c_.set,MT=function(R,D){if(c_.has(R))throw a_(s_);return D.facade=R,c_.set(R,D),D},FT=function(R){return c_.get(R)||{}},BT=function(R){return c_.has(R)}}else{var u_=r_("state");o_[u_]=!0,MT=function(R,D){if(t_(R,u_))throw a_(s_);return D.facade=R,e_(R,u_,D),D},FT=function(R){return t_(R,u_)?R[u_]:{}},BT=function(R){return t_(R,u_)}}var d_={set:MT,get:FT,has:BT,enforce:function(R){return BT(R)?FT(R):MT(R,{})},getterFor:function(R){return function(D){var P;if(!QT(D)||(P=FT(D)).type!==R)throw a_("Incompatible receiver, "+R+" required");return P}}},p_=XE,h_=uE,g_=bC,f_=yy,v_=PT.CONFIGURABLE,m_=GT,S_=d_.enforce,b_=d_.get,y_=Object.defineProperty,E_=f_&&!p_(function(){return 8!==y_(function(){},"length",{value:8}).length}),C_=String(String).split("String"),T_=wT.exports=function(R,D,P){"Symbol("===String(D).slice(0,7)&&(D="["+String(D).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),P&&P.getter&&(D="get "+D),P&&P.setter&&(D="set "+D),(!g_(R,"name")||v_&&R.name!==D)&&(f_?y_(R,"name",{value:D,configurable:!0}):R.name=D),E_&&P&&g_(P,"arity")&&R.length!==P.arity&&y_(R,"length",{value:P.arity});try{P&&g_(P,"constructor")&&P.constructor?f_&&y_(R,"prototype",{writable:!1}):R.prototype&&(R.prototype=void 0)}catch(R){}var x=S_(R);return g_(x,"source")||(x.source=C_.join("string"==typeof D?D:"")),R};Function.prototype.toString=T_(function(){return h_(this)&&b_(this).source||m_(this)},"toString");var __=uE,I_=oT,A_=wT.exports,w_=bT,O_={},L_=Math.ceil,N_=Math.floor,R_=Math.trunc||function(R){var D=+R;return(D>0?N_:L_)(D)},D_=R_,B_=function(R){var D=+R;return D!=D||0===D?0:D_(D)},P_=B_,x_=Math.max,k_=Math.min,V_=B_,U_=Math.min,W_=function(R){return function(R){return R>0?U_(V_(R),9007199254740991):0}(R.length)},M_=DC,F_=W_,q_=function(R){return function(D,P,x){var k,G=M_(D),H=F_(G),$=function(R,D){var P=P_(R);return P<0?x_(P+D,0):k_(P,D)}(x,H);if(R&&P!=P){for(;H>$;)if((k=G[$++])!=k)return!0}else for(;H>$;$++)if((R||$ in G)&&G[$]===P)return R||$||0;return!R&&-1}},G_={includes:q_(!0),indexOf:q_(!1)},H_=bC,$_=DC,z_=G_.indexOf,j_=XT,Y_=yC([].push),rA=function(R,D){var P,x=$_(R),k=0,G=[];for(P in x)!H_(j_,P)&&H_(x,P)&&Y_(G,P);for(;D.length>k;)H_(x,P=D[k++])&&(~z_(G,P)||Y_(G,P));return G},J_=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],X_=rA,K_=J_.concat("length","prototype");O_.f=Object.getOwnPropertyNames||function(R){return X_(R,K_)};var Q_={};Q_.f=Object.getOwnPropertySymbols;var Z_=HC,eI=O_,nI=Q_,iI=CI,rI=yC([].concat),sI=Z_("Reflect","ownKeys")||function(R){var D=eI.f(iI(R)),P=nI.f;return P?rI(D,P(R)):D},aI=bC,lI=sI,cI=by,uI=oT,dI=XE,pI=uE,hI=/#|\.prototype\./,CA=function(R,D){var P=fI[gI(R)];return P==mI||P!=vI&&(pI(D)?dI(D):!!D)},gI=CA.normalize=function(R){return String(R).replace(hI,".").toLowerCase()},fI=CA.data={},vI=CA.NATIVE="N",mI=CA.POLYFILL="P",SI=CA,bI=Sy,yI=by.f,EI=IT,RA=function(R,D,P,x){x||(x={});var k=x.enumerable,G=void 0!==x.name?x.name:D;if(__(P)&&A_(P,G,x),x.global)k?R[D]=P:w_(D,P);else{try{x.unsafe?R[D]&&(k=!0):delete R[D]}catch(R){}k?R[D]=P:I_.f(R,D,{value:P,enumerable:!1,configurable:!x.nonConfigurable,writable:!x.nonWritable})}return R},TI=bT,PA=function(R,D,P){for(var x=lI(D),k=uI.f,G=cI.f,H=0;Hle;le++)if(($||le in re)&&(ne=oe(te=re[le],le,ie),R))if(D)ue[le]=ne;else if(ne)switch(R){case 3:return!0;case 5:return te;case 6:return le;case 2:iA(ue,te)}else switch(R){case 4:return!1;case 7:iA(ue,te)}return G?-1:x||k?k:ue}},oA={forEach:yw(0),map:yw(1),filter:yw(2),some:yw(3),every:yw(4),find:yw(5),findIndex:yw(6),filterReject:yw(7)},sA={},aA=rA,lA=J_,cA=Object.keys||function(R){return aA(R,lA)},uA=yy,dA=sT,pA=oT,hA=CI,gA=DC,fA=cA;sA.f=uA&&!dA?Object.defineProperties:function(R,D){hA(R);for(var P,x=gA(D),k=fA(D),G=k.length,H=0;G>H;)pA.f(R,P=k[H++],x[P]);return R};var vA,mA=HC("document","documentElement"),SA=CI,bA=sA,yA=J_,EA=XT,TA=mA,_A=oI,IA="prototype",AA="script",wA=i_("IE_PROTO"),$w=function(){},zw=function(R){return"<"+AA+">"+R+""},jw=function(R){R.write(zw("")),R.close();var D=R.parentWindow.Object;return R=null,D},Yw=function(){try{vA=new ActiveXObject("htmlfile")}catch(R){}var R,D,P;Yw="undefined"!=typeof document?document.domain&&vA?jw(vA):(D=_A("iframe"),P="java"+AA+":",D.style.display="none",TA.appendChild(D),D.src=String(P),(R=D.contentWindow.document).open(),R.write(zw("document.F=Object")),R.close(),R.F):jw(vA);for(var x=yA.length;x--;)delete Yw[IA][yA[x]];return Yw()};EA[wA]=!0;var OA=Object.create||function(R,D){var P;return null!==R?($w[IA]=SA(R),P=new $w,$w[IA]=null,P[wA]=R):P=Yw(),void 0===D?P:bA.f(P,D)},LA=jT,NA=OA,DA=oT.f,xA=LA("unscopables"),kA=Array.prototype;null==kA[xA]&&DA(kA,xA,{configurable:!0,value:NA(null)});var VA=oA.find,UA="find",MA=!0;UA in[]&&Array(1)[UA](function(){MA=!1}),function(R,D){var P,x,k,G,H,$=R.target,z=R.global,Y=R.stat;if(P=z?bI:Y?bI[$]||TI($,{}):(bI[$]||{}).prototype)for(x in D){if(G=D[x],k=R.dontCallGetSet?(H=yI(P,x))&&H.value:P[x],!_I(z?x:$+(Y?".":"#")+x,R.forced)&&void 0!==k){if(typeof G==typeof k)continue;PA(G,k)}(R.sham||k&&k.sham)&&EI(G,"sham",!0),RA(P,x,G,R)}}({target:"Array",proto:!0,forced:MA},{find:function(R){return VA(this,R,arguments.length>1?arguments[1]:void 0)}}),function(R){kA[xA][R]=!0}(UA);var FA="__react_tooltip_hide_event",BA="__react_tooltip_rebuild_event",GA="__react_tooltip_show_event",oO=function(R,D){var P;"function"==typeof window.CustomEvent?P=new window.CustomEvent(R,{detail:D}):(P=document.createEvent("Event")).initEvent(R,!1,!0,D),window.dispatchEvent(P)},sO=function(R,D){var P=this.state.show,x=this.props.id,k=this.isCapture(D.currentTarget),G=D.currentTarget.getAttribute("currentItem");k||D.stopPropagation(),P&&"true"===G?R||this.hideTooltip(D):(D.currentTarget.setAttribute("currentItem","true"),aO(D.currentTarget,this.getTargetArray(x)),this.showTooltip(D))},aO=function(R,D){for(var P=0;Pde}(R)||function(R){return A(R)<0}(R)||function(R){return function(R){var D=ae[R].b;return oe+D+ue}(R)>pe}(R)},N=function(R){return!L(R)},ve={top:N("top"),bottom:N("bottom"),left:N("left"),right:N("right")},me=function(){var R,D=function jE(R,D){var P="undefined"!=typeof Symbol&&R[Symbol.iterator]||R["@@iterator"];if(!P){if(Array.isArray(R)||(P=function(R,D){if(R){if("string"==typeof R)return zE(R,D);var P=Object.prototype.toString.call(R).slice(8,-1);return"Object"===P&&R.constructor&&(P=R.constructor.name),"Map"===P||"Set"===P?Array.from(R):"Arguments"===P||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P)?zE(R,D):void 0}}(R))||D&&R&&"number"==typeof R.length){P&&(R=P);var x=0,r=function(){};return{s:r,n:function(){return x>=R.length?{done:!0}:{done:!1,value:R[x++]}},e:function(R){throw R},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var k,G=!0,H=!1;return{s:function(){P=P.call(R)},n:function(){var R=P.next();return G=R.done,R},e:function(R){H=!0,k=R},f:function(){try{G||null==P.return||P.return()}finally{if(H)throw k}}}}(k.split(",").concat(x,["top","bottom","left","right"]));try{for(D.s();!(R=D.n()).done;){var P=R.value;if(ve[P])return P}}catch(R){D.e(R)}finally{D.f()}return x}(),ye=!1;return me&&me!==x&&(ye=!0,$=me),ye?{isNewState:!0,newState:{place:$}}:{isNewState:!1,position:{left:parseInt(_(x)-fe,10),top:parseInt(A(x)-ge,10)}}}var hO=function(R){var D=R.getBoundingClientRect(),P=D.height,x=D.width;return{height:parseInt(P,10),width:parseInt(x,10)}},gO=function(R,D,P){var x=D.getBoundingClientRect(),k=x.top,G=x.left,H=hO(D),$=H.width,z=H.height;return"float"===P?{mouseX:R.clientX,mouseY:R.clientY}:{mouseX:G+$/2,mouseY:k+z/2}},fO=function(R,D,P,x,k){var G,H,$,z;return"float"===R?(G={l:-x/2,r:x/2,t:-(k+3+2),b:-3},$={l:-x/2,r:x/2,t:15,b:k+3+2+12},z={l:-(x+3+2),r:-3,t:-k/2,b:k/2},H={l:3,r:x+3+2,t:-k/2,b:k/2}):"solid"===R&&(G={l:-x/2,r:x/2,t:-(P/2+k+2),b:-P/2},$={l:-x/2,r:x/2,t:P/2,b:P/2+k+2},z={l:-(x+D/2+2),r:-D/2,t:-k/2,b:k/2},H={l:D/2,r:x+D/2+2,t:-k/2,b:k/2}),{top:G,bottom:$,left:z,right:H}},vO=function(R){var D=0,P=0;for(var x in"[object String]"===Object.prototype.toString.apply(R)&&(R=JSON.parse(R.toString().replace(/'/g,'"'))),R)"top"===x?P-=parseInt(R[x],10):"bottom"===x?P+=parseInt(R[x],10):"left"===x?D-=parseInt(R[x],10):"right"===x&&(D+=parseInt(R[x],10));return{extraOffsetX:D,extraOffsetY:P}},mO=function(R){for(var D=R;D;){var P=window.getComputedStyle(D);if("none"!==P.getPropertyValue("transform")||"transform"===P.getPropertyValue("will-change"))break;D=D.parentElement}return{parentTop:D&&D.getBoundingClientRect().top||0,parentLeft:D&&D.getBoundingClientRect().left||0}};function SO(R,D,P,x){if(D)return D;if(null!=P)return P;if(null===P)return null;var k=//;return x&&"false"!==x&&k.test(R)?R.split(k).map(function(R,D){return Ml("span",{key:D,className:"multi-line"},R)}):R}function bO(R){var D={};return Object.keys(R).filter(function(R){return/(^aria-\w+$|^role$)/.test(R)}).forEach(function(P){D[P]=R[P]}),D}function yO(R){var D=R.length;return R.hasOwnProperty?Array.prototype.slice.call(R):new Array(D).fill().map(function(D){return R[D]})}var $A,zA,jA={dark:{text:"#fff",background:"#222",border:"transparent",arrow:"#222"},success:{text:"#fff",background:"#8DC572",border:"transparent",arrow:"#8DC572"},warning:{text:"#fff",background:"#F0AD4E",border:"transparent",arrow:"#F0AD4E"},error:{text:"#fff",background:"#BE6464",border:"transparent",arrow:"#BE6464"},info:{text:"#fff",background:"#337AB7",border:"transparent",arrow:"#337AB7"},light:{text:"#222",background:"#fff",border:"transparent",arrow:"#fff"}},YA={tooltip:3,arrow:0};var WA,JA=function(R){R.hide=function(R){oO(FA,{target:R})},R.rebuild=function(){oO(BA)},R.show=function(R){oO(GA,{target:R})},R.prototype.globalRebuild=function(){this.mount&&(this.unbindListener(),this.bindListener())},R.prototype.globalShow=function(R){if(this.mount){var D=!!(R&&R.detail&&R.detail.target);this.showTooltip({currentTarget:D&&R.detail.target},!0)}},R.prototype.globalHide=function(R){if(this.mount){var D=!!(R&&R.detail&&R.detail.target);this.hideTooltip({currentTarget:D&&R.detail.target},D)}}}($A=function(R){R.prototype.bindWindowEvents=function(R){window.removeEventListener(FA,this.globalHide),window.addEventListener(FA,this.globalHide,!1),window.removeEventListener(BA,this.globalRebuild),window.addEventListener(BA,this.globalRebuild,!1),window.removeEventListener(GA,this.globalShow),window.addEventListener(GA,this.globalShow,!1),R&&(window.removeEventListener("resize",this.onWindowResize),window.addEventListener("resize",this.onWindowResize,!1))},R.prototype.unbindWindowEvents=function(){window.removeEventListener(FA,this.globalHide),window.removeEventListener(BA,this.globalRebuild),window.removeEventListener(GA,this.globalShow),window.removeEventListener("resize",this.onWindowResize)},R.prototype.onWindowResize=function(){this.mount&&this.hideTooltip()}}($A=function(R){R.prototype.isCustomEvent=function(R){return this.state.event||!!R.getAttribute("data-event")},R.prototype.customBindListener=function(R){var D=this,P=this.state,x=P.event,k=P.eventOff,G=R.getAttribute("data-event")||x,H=R.getAttribute("data-event-off")||k;G.split(" ").forEach(function(P){R.removeEventListener(P,HA.get(R,P));var x=sO.bind(D,H);HA.set(R,P,x),R.addEventListener(P,x,!1)}),H&&H.split(" ").forEach(function(P){R.removeEventListener(P,D.hideTooltip),R.addEventListener(P,D.hideTooltip,!1)})},R.prototype.customUnbindListener=function(R){var D=this.state,P=D.event,x=D.eventOff,k=P||R.getAttribute("data-event"),G=x||R.getAttribute("data-event-off");R.removeEventListener(k,HA.get(R,P)),G&&R.removeEventListener(G,this.hideTooltip)}}($A=function(R){R.prototype.isCapture=function(R){return R&&"true"===R.getAttribute("data-iscapture")||this.props.isCapture||!1}}($A=function(R){R.prototype.getEffect=function(R){return R.getAttribute("data-effect")||this.props.effect||"float"}}($A=function(R){R.prototype.isBodyMode=function(){return!!this.props.bodyMode},R.prototype.bindBodyListener=function(R){var D=this,P=this.state,x=P.event,k=P.eventOff,G=P.possibleCustomEvents,H=P.possibleCustomEventsOff,$=dO(),z=uO(R,"data-event"),Y=uO(R,"data-event-off");null!=x&&(z[x]=!0),null!=k&&(Y[k]=!0),G.split(" ").forEach(function(R){return z[R]=!0}),H.split(" ").forEach(function(R){return Y[R]=!0}),this.unbindBodyListener($);var W=this.bodyModeListeners={};for(var ee in null==x&&(W.mouseover=cO.bind(this,this.showTooltip,{}),W.mousemove=cO.bind(this,this.updateTooltip,{respectEffect:!0}),W.mouseout=cO.bind(this,this.hideTooltip,{})),z)W[ee]=cO.bind(this,function(R){var P=R.currentTarget.getAttribute("data-event-off")||k;sO.call(D,P,R)},{customEvent:!0});for(var te in Y)W[te]=cO.bind(this,this.hideTooltip,{customEvent:!0});for(var ne in W)$.addEventListener(ne,W[ne])},R.prototype.unbindBodyListener=function(R){R=R||dO();var D=this.bodyModeListeners;for(var P in D)R.removeEventListener(P,D[P])}}((zA=function(R){!function(R,D){if("function"!=typeof D&&null!==D)throw new TypeError("Super expression must either be null or a function");R.prototype=Object.create(D&&D.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),Object.defineProperty(R,"prototype",{writable:!1}),D&&GE(R,D)}(o,R);var D,P,x,k=$E(o);function o(R){var D;return function(R,D){if(!(R instanceof D))throw new TypeError("Cannot call a class as a function")}(this,o),(D=k.call(this,R)).state={uuid:R.uuid||"t"+xE(),place:R.place||"top",desiredPlace:R.place||"top",type:R.type||"dark",effect:R.effect||"float",show:!1,border:!1,borderClass:"border",customColors:{},customRadius:{},offset:{},padding:R.padding,extraClass:"",html:!1,delayHide:0,delayShow:0,event:R.event||null,eventOff:R.eventOff||null,currentEvent:null,currentTarget:null,ariaProps:bO(R),isEmptyTip:!1,disable:!1,possibleCustomEvents:R.possibleCustomEvents||"",possibleCustomEventsOff:R.possibleCustomEventsOff||"",originTooltip:null,isMultiline:!1},D.bind(["showTooltip","updateTooltip","hideTooltip","hideTooltipOnScroll","getTooltipContent","globalRebuild","globalShow","globalHide","onWindowResize","mouseOnToolTip"]),D.mount=!0,D.delayShowLoop=null,D.delayHideLoop=null,D.delayReshow=null,D.intervalUpdateContent=null,D}return D=o,P=[{key:"bind",value:function(R){var D=this;R.forEach(function(R){D[R]=D[R].bind(D)})}},{key:"componentDidMount",value:function(){var R=this.props;R.insecure;var D=R.resizeHide,P=R.disableInternalStyle;this.mount=!0,this.bindListener(),this.bindWindowEvents(D),P||this.injectStyles()}},{key:"componentWillUnmount",value:function(){this.mount=!1,this.clearTimer(),this.unbindListener(),this.removeScrollListener(this.state.currentTarget),this.unbindWindowEvents()}},{key:"injectStyles",value:function(){var R=this.tooltipRef;if(R){for(var D,P=R.parentNode;P.parentNode;)P=P.parentNode;switch(P.constructor.name){case"Document":case"HTMLDocument":case void 0:D=P.head;break;default:D=P}if(!D.querySelector("style[data-react-tooltip]")){var x=document.createElement("style");x.textContent='.__react_component_tooltip {\n border-radius: 3px;\n display: inline-block;\n font-size: 13px;\n left: -999em;\n opacity: 0;\n position: fixed;\n pointer-events: none;\n transition: opacity 0.3s ease-out;\n top: -999em;\n visibility: hidden;\n z-index: 999;\n}\n.__react_component_tooltip.allow_hover, .__react_component_tooltip.allow_click {\n pointer-events: auto;\n}\n.__react_component_tooltip::before, .__react_component_tooltip::after {\n content: "";\n width: 0;\n height: 0;\n position: absolute;\n}\n.__react_component_tooltip.show {\n opacity: 0.9;\n margin-top: 0;\n margin-left: 0;\n visibility: visible;\n}\n.__react_component_tooltip.place-top::before {\n bottom: 0;\n left: 50%;\n margin-left: -11px;\n}\n.__react_component_tooltip.place-bottom::before {\n top: 0;\n left: 50%;\n margin-left: -11px;\n}\n.__react_component_tooltip.place-left::before {\n right: 0;\n top: 50%;\n margin-top: -9px;\n}\n.__react_component_tooltip.place-right::before {\n left: 0;\n top: 50%;\n margin-top: -9px;\n}\n.__react_component_tooltip .multi-line {\n display: block;\n padding: 2px 0;\n text-align: center;\n}',x.setAttribute("data-react-tooltip","true"),D.appendChild(x)}}}},{key:"mouseOnToolTip",value:function(){return!(!this.state.show||!this.tooltipRef)&&(this.tooltipRef.matches||(this.tooltipRef.msMatchesSelector?this.tooltipRef.matches=this.tooltipRef.msMatchesSelector:this.tooltipRef.matches=this.tooltipRef.mozMatchesSelector),this.tooltipRef.matches(":hover"))}},{key:"getTargetArray",value:function(R){var D,P=[];if(R){var x=R.replace(/\\/g,"\\\\").replace(/"/g,'\\"');D='[data-tip][data-for="'.concat(x,'"]')}else D="[data-tip]:not([data-for])";return yO(document.getElementsByTagName("*")).filter(function(R){return R.shadowRoot}).forEach(function(R){P=P.concat(yO(R.shadowRoot.querySelectorAll(D)))}),P.concat(yO(document.querySelectorAll(D)))}},{key:"bindListener",value:function(){var R=this,D=this.props,P=D.id,x=D.globalEventOff,k=D.isCapture,G=this.getTargetArray(P);G.forEach(function(D){null===D.getAttribute("currentItem")&&D.setAttribute("currentItem","false"),R.unbindBasicListener(D),R.isCustomEvent(D)&&R.customUnbindListener(D)}),this.isBodyMode()?this.bindBodyListener(G):G.forEach(function(D){var P=R.isCapture(D),x=R.getEffect(D);R.isCustomEvent(D)?R.customBindListener(D):(D.addEventListener("mouseenter",R.showTooltip,P),D.addEventListener("focus",R.showTooltip,P),"float"===x&&D.addEventListener("mousemove",R.updateTooltip,P),D.addEventListener("mouseleave",R.hideTooltip,P),D.addEventListener("blur",R.hideTooltip,P))}),x&&(window.removeEventListener(x,this.hideTooltip),window.addEventListener(x,this.hideTooltip,k)),this.bindRemovalTracker()}},{key:"unbindListener",value:function(){var R=this,D=this.props,P=D.id,x=D.globalEventOff;this.isBodyMode()?this.unbindBodyListener():this.getTargetArray(P).forEach(function(D){R.unbindBasicListener(D),R.isCustomEvent(D)&&R.customUnbindListener(D)}),x&&window.removeEventListener(x,this.hideTooltip),this.unbindRemovalTracker()}},{key:"unbindBasicListener",value:function(R){var D=this.isCapture(R);R.removeEventListener("mouseenter",this.showTooltip,D),R.removeEventListener("mousemove",this.updateTooltip,D),R.removeEventListener("mouseleave",this.hideTooltip,D)}},{key:"getTooltipContent",value:function(){var R,D=this.props,P=D.getContent,x=D.children;return P&&(R=Array.isArray(P)?P[0]&&P[0](this.state.originTooltip):P(this.state.originTooltip)),SO(this.state.originTooltip,x,R,this.state.isMultiline)}},{key:"isEmptyTip",value:function(R){return"string"==typeof R&&""===R||null===R}},{key:"showTooltip",value:function(R,D){if(this.tooltipRef){if(D&&!this.getTargetArray(this.props.id).some(function(D){return D===R.currentTarget}))return;var P=this.props,x=P.multiline,k=P.getContent,G=R.currentTarget.getAttribute("data-tip"),H=R.currentTarget.getAttribute("data-multiline")||x||!1,$=R instanceof window.FocusEvent||D,z=!0;R.currentTarget.getAttribute("data-scroll-hide")?z="true"===R.currentTarget.getAttribute("data-scroll-hide"):null!=this.props.scrollHide&&(z=this.props.scrollHide),R&&R.currentTarget&&R.currentTarget.setAttribute&&R.currentTarget.setAttribute("aria-describedby",this.props.id||this.state.uuid);var Y=R.currentTarget.getAttribute("data-place")||this.props.place||"top",W=$?"solid":this.getEffect(R.currentTarget),ee=R.currentTarget.getAttribute("data-offset")||this.props.offset||{},te=pO(R,R.currentTarget,this.tooltipRef,Y.split(",")[0],Y,W,ee);te.position&&this.props.overridePosition&&(te.position=this.props.overridePosition(te.position,R,R.currentTarget,this.tooltipRef,Y,Y,W,ee));var ne=te.isNewState?te.newState.place:Y.split(",")[0];this.clearTimer();var ie=R.currentTarget,re=this.state.show?ie.getAttribute("data-delay-update")||this.props.delayUpdate:0,oe=this,m=function(){oe.setState({originTooltip:G,isMultiline:H,desiredPlace:Y,place:ne,type:ie.getAttribute("data-type")||oe.props.type||"dark",customColors:{text:ie.getAttribute("data-text-color")||oe.props.textColor||null,background:ie.getAttribute("data-background-color")||oe.props.backgroundColor||null,border:ie.getAttribute("data-border-color")||oe.props.borderColor||null,arrow:ie.getAttribute("data-arrow-color")||oe.props.arrowColor||null},customRadius:{tooltip:ie.getAttribute("data-tooltip-radius")||oe.props.tooltipRadius||"3",arrow:ie.getAttribute("data-arrow-radius")||oe.props.arrowRadius||"0"},effect:W,offset:ee,padding:ie.getAttribute("data-padding")||oe.props.padding,html:(ie.getAttribute("data-html")?"true"===ie.getAttribute("data-html"):oe.props.html)||!1,delayShow:ie.getAttribute("data-delay-show")||oe.props.delayShow||0,delayHide:ie.getAttribute("data-delay-hide")||oe.props.delayHide||0,delayUpdate:ie.getAttribute("data-delay-update")||oe.props.delayUpdate||0,border:(ie.getAttribute("data-border")?"true"===ie.getAttribute("data-border"):oe.props.border)||!1,borderClass:ie.getAttribute("data-border-class")||oe.props.borderClass||"border",extraClass:ie.getAttribute("data-class")||oe.props.class||oe.props.className||"",disable:(ie.getAttribute("data-tip-disable")?"true"===ie.getAttribute("data-tip-disable"):oe.props.disable)||!1,currentTarget:ie},function(){z&&oe.addScrollListener(oe.state.currentTarget),oe.updateTooltip(R),k&&Array.isArray(k)&&(oe.intervalUpdateContent=setInterval(function(){if(oe.mount){var R=oe.props.getContent,D=SO(G,"",R[0](),H),P=oe.isEmptyTip(D);oe.setState({isEmptyTip:P}),oe.updatePosition()}},k[1]))})};re?this.delayReshow=setTimeout(m,re):m()}}},{key:"updateTooltip",value:function(R){var D=this,P=this.state,x=P.delayShow,k=P.disable,G=this.props,H=G.afterShow,$=G.disable,z=this.getTooltipContent(),Y=R.currentTarget||R.target;if(!this.mouseOnToolTip()&&!(this.isEmptyTip(z)||k||$)){var W=this.state.show?0:parseInt(x,10),d=function(){if(Array.isArray(z)&&z.length>0||z){var P=!D.state.show;D.setState({currentEvent:R,currentTarget:Y,show:!0},function(){D.updatePosition(function(){P&&H&&H(R)})})}};this.delayShowLoop&&clearTimeout(this.delayShowLoop),W?this.delayShowLoop=setTimeout(d,W):(this.delayShowLoop=null,d())}}},{key:"listenForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.addEventListener("mouseleave",this.hideTooltip)}},{key:"removeListenerForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.removeEventListener("mouseleave",this.hideTooltip)}},{key:"hideTooltip",value:function(R,D){var P=this,x=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{isScroll:!1},k=this.state.disable,G=x.isScroll?0:this.state.delayHide,H=this.props,$=H.afterHide,z=H.disable,Y=this.getTooltipContent();if(this.mount&&!(this.isEmptyTip(Y)||k||z)){if(D&&(!this.getTargetArray(this.props.id).some(function(D){return D===R.currentTarget})||!this.state.show))return;R&&R.currentTarget&&R.currentTarget.removeAttribute&&R.currentTarget.removeAttribute("aria-describedby");var u=function(){var D=P.state.show;P.mouseOnToolTip()?P.listenForTooltipExit():(P.removeListenerForTooltipExit(),P.setState({show:!1},function(){P.removeScrollListener(P.state.currentTarget),D&&$&&$(R)}))};this.clearTimer(),G?this.delayHideLoop=setTimeout(u,parseInt(G,10)):u()}}},{key:"hideTooltipOnScroll",value:function(R,D){this.hideTooltip(R,D,{isScroll:!0})}},{key:"addScrollListener",value:function(R){var D=this.isCapture(R);window.addEventListener("scroll",this.hideTooltipOnScroll,D)}},{key:"removeScrollListener",value:function(R){var D=this.isCapture(R);window.removeEventListener("scroll",this.hideTooltipOnScroll,D)}},{key:"updatePosition",value:function(R){var D=this,P=this.state,x=P.currentEvent,k=P.currentTarget,G=P.place,H=P.desiredPlace,$=P.effect,z=P.offset,Y=this.tooltipRef,W=pO(x,k,Y,G,H,$,z);if(W.position&&this.props.overridePosition&&(W.position=this.props.overridePosition(W.position,x,k,Y,G,H,$,z)),W.isNewState)return this.setState(W.newState,function(){D.updatePosition(R)});R&&"function"==typeof R&&R(),Y.style.left=W.position.left+"px",Y.style.top=W.position.top+"px"}},{key:"clearTimer",value:function(){this.delayShowLoop&&(clearTimeout(this.delayShowLoop),this.delayShowLoop=null),this.delayHideLoop&&(clearTimeout(this.delayHideLoop),this.delayHideLoop=null),this.delayReshow&&(clearTimeout(this.delayReshow),this.delayReshow=null),this.intervalUpdateContent&&(clearInterval(this.intervalUpdateContent),this.intervalUpdateContent=null)}},{key:"hasCustomColors",value:function(){var R=this;return Boolean(Object.keys(this.state.customColors).find(function(D){return"border"!==D&&R.state.customColors[D]})||this.state.border&&this.state.customColors.border)}},{key:"render",value:function(){var R=this,D=this.state,P=D.extraClass,x=D.html,k=D.ariaProps,G=D.disable,H=D.uuid,$=this.getTooltipContent(),z=this.isEmptyTip($),Y=this.props.disableInternalStyle?"":function AO(R,D,P,x,k,G){return function(R,D){var P=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"8px 21px",x=arguments.length>3&&void 0!==arguments[3]?arguments[3]:YA,k=D.text,G=D.background,H=D.border,$=D.arrow,z=x.arrow,Y=x.tooltip;return"\n \t.".concat(R," {\n\t color: ").concat(k,";\n\t background: ").concat(G,";\n\t border: 1px solid ").concat(H,";\n\t border-radius: ").concat(Y,"px;\n\t padding: ").concat(P,";\n \t}\n\n \t.").concat(R,".place-top {\n margin-top: -10px;\n }\n .").concat(R,'.place-top::before {\n content: "";\n background-color: inherit;\n position: absolute;\n z-index: 2;\n width: 20px;\n height: 12px;\n }\n .').concat(R,'.place-top::after {\n content: "";\n position: absolute;\n width: 10px;\n height: 10px;\n border-top-right-radius: ').concat(z,"px;\n border: 1px solid ").concat(H,";\n background-color: ").concat($,";\n z-index: -2;\n bottom: -6px;\n left: 50%;\n margin-left: -6px;\n transform: rotate(135deg);\n }\n\n .").concat(R,".place-bottom {\n margin-top: 10px;\n }\n .").concat(R,'.place-bottom::before {\n content: "";\n background-color: inherit;\n position: absolute;\n z-index: -1;\n width: 18px;\n height: 10px;\n }\n .').concat(R,'.place-bottom::after {\n content: "";\n position: absolute;\n width: 10px;\n height: 10px;\n border-top-right-radius: ').concat(z,"px;\n border: 1px solid ").concat(H,";\n background-color: ").concat($,";\n z-index: -2;\n top: -6px;\n left: 50%;\n margin-left: -6px;\n transform: rotate(45deg);\n }\n\n .").concat(R,".place-left {\n margin-left: -10px;\n }\n .").concat(R,'.place-left::before {\n content: "";\n background-color: inherit;\n position: absolute;\n z-index: -1;\n width: 10px;\n height: 18px;\n }\n .').concat(R,'.place-left::after {\n content: "";\n position: absolute;\n width: 10px;\n height: 10px;\n border-top-right-radius: ').concat(z,"px;\n border: 1px solid ").concat(H,";\n background-color: ").concat($,";\n z-index: -2;\n right: -6px;\n top: 50%;\n margin-top: -6px;\n transform: rotate(45deg);\n }\n\n .").concat(R,".place-right {\n margin-left: 10px;\n }\n .").concat(R,'.place-right::before {\n content: "";\n background-color: inherit;\n position: absolute;\n z-index: -1;\n width: 10px;\n height: 18px;\n }\n .').concat(R,'.place-right::after {\n content: "";\n position: absolute;\n width: 10px;\n height: 10px;\n border-top-right-radius: ').concat(z,"px;\n border: 1px solid ").concat(H,";\n background-color: ").concat($,";\n z-index: -2;\n left: -6px;\n top: 50%;\n margin-top: -6px;\n transform: rotate(-135deg);\n }\n ")}(R,function(R,D,P){var x=R.text,k=R.background,G=R.border,H=R.arrow?R.arrow:R.background,$=function(R){return jA[R]?VE({},jA[R]):void 0}(D);return x&&($.text=x),k&&($.background=k),P&&($.border=G||("light"===D?"black":"white")),H&&($.arrow=H),$}(D,P,x),k,G)}(this.state.uuid,this.state.customColors,this.state.type,this.state.border,this.state.padding,this.state.customRadius),W="__react_component_tooltip"+" ".concat(this.state.uuid)+(!this.state.show||G||z?"":" show")+(this.state.border?" "+this.state.borderClass:"")+" place-".concat(this.state.place)+" type-".concat(this.hasCustomColors()?"custom":this.state.type)+(this.props.delayUpdate?" allow_hover":"")+(this.props.clickable?" allow_click":""),ee=this.props.wrapper;o.supportedWrappers.indexOf(ee)<0&&(ee=o.defaultProps.wrapper);var te=[W,P].filter(Boolean).join(" ");if(x){var ne="".concat($).concat(Y?'\n"):"");return Ml(ee,FE({className:"".concat(te),id:this.props.id||H,ref:function(D){return R.tooltipRef=D}},k,{"data-id":"tooltip",dangerouslySetInnerHTML:{__html:ne}}))}return Ml(ee,FE({className:"".concat(te),id:this.props.id||H},k,{ref:function(D){return R.tooltipRef=D},"data-id":"tooltip"}),Y&&Ml("style",{dangerouslySetInnerHTML:{__html:Y},"aria-hidden":"true"}),$)}}],x=[{key:"propTypes",get:function(){return{uuid:py.string,children:py.any,place:py.string,type:py.string,effect:py.string,offset:py.object,padding:py.string,multiline:py.bool,border:py.bool,borderClass:py.string,textColor:py.string,backgroundColor:py.string,borderColor:py.string,arrowColor:py.string,arrowRadius:py.string,tooltipRadius:py.string,insecure:py.bool,class:py.string,className:py.string,id:py.string,html:py.bool,delayHide:py.number,delayUpdate:py.number,delayShow:py.number,event:py.string,eventOff:py.string,isCapture:py.bool,globalEventOff:py.string,getContent:py.any,afterShow:py.func,afterHide:py.func,overridePosition:py.func,disable:py.bool,scrollHide:py.bool,resizeHide:py.bool,wrapper:py.string,bodyMode:py.bool,possibleCustomEvents:py.string,possibleCustomEventsOff:py.string,clickable:py.bool,disableInternalStyle:py.bool}}},{key:"getDerivedStateFromProps",value:function(R,D){var P=D.ariaProps,x=bO(R);return Object.keys(x).some(function(R){return x[R]!==P[R]})?VE(VE({},D),{},{ariaProps:x}):null}}],P&&UE(D.prototype,P),x&&UE(D,x),Object.defineProperty(D,"prototype",{writable:!1}),o}(Bl),ME(zA,"defaultProps",{insecure:!0,resizeHide:!0,wrapper:"div",clickable:!1}),ME(zA,"supportedWrappers",["div","span"]),ME(zA,"displayName","ReactTooltip"),(WA=$A=zA).prototype.bindRemovalTracker=function(){var R=this,D=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(null!=D){var P=new D(function(D){for(var P=0;P{const D=R.path||R.composedPath&&R.composedPath();D&&(D.some(R=>R.id===H)||re(!1))},[H]),Ut=Ya(()=>{if(Ve&&Ve.current){Ve.current.setAttribute("aria-describedby",Pd);const R=Ve.current.getBoundingClientRect();if(0===R.left&&0===R.right)return void setTimeout(()=>{Ut()},2e3);Ue||Me(R.top),Fe||Be(R.left),Ye||We(R.right),De(R.right>window.innerWidth/2)}},[Ve]);Ha(()=>{Ut()}),Ha(()=>{ue>=300&&ke&&ke.current?ke.current.base&&(ke.current.base.style.maxWidth="60%"):ke&&ke.current&&ke.current.base&&ke.current.base.style.removeProperty("max-width")},[le,ue]),Ha(()=>{window.addEventListener("resize",()=>{const R=Math.round(100*window.devicePixelRatio);de(R)})},[]),Ha(()=>{ge&&ie&&(re(!ie),Nt(Ve)),ge&&!ie&&le&&(JA.hide(),Nt(Ve))},[ge]),Ha(()=>{if(ie&&he)if(document.activeElement){const R=document.activeElement?.shadowRoot?.querySelector(":focus-visible");"option"===R?.getAttribute("role")&&R.nextSibling&&R.nextSibling.focus(),null===R?.nextElementSibling&&(R.parentElement?.firstChild).focus()}else xe.current?.focus()},[he]),Ha(()=>{if(ie&&pe)if(document.activeElement){const R=document.activeElement?.shadowRoot?.querySelector(":focus-visible");"option"===R?.getAttribute("role")&&R.previousSibling&&R.previousSibling.focus(),null===R?.previousSibling&&(R.parentElement?.lastChild).focus()}else xe.current?.focus()},[pe]),Ha(()=>(document.addEventListener("click",Vt),()=>{document.removeEventListener("click",Vt)}),[Vt]);const se=()=>{ie&&xe&&setTimeout(()=>{Lt(!0),xe.current?.focus()},0),Rt(ie||!1)};Ha(()=>{ae(G||P[0])},[G,P]);const Ft=Ya(async(R,P)=>{ae(R),await D(R.value),P&&Nt(Ve)},[D]);Ha(()=>{ke&&ke.current&&ke.current.base.addEventListener("mouseenter",()=>{Ut()})},[]);const Bt=Ya(()=>{null!=ke?.current&&JA.show(ke.current)},[ke]),Gt=Ya(()=>{null!=ke?.current&&JA.hide(ke.current)},[ke]),Ht=Ya(R=>{Rt(R),ce(R)},[Rt]);return Ha(()=>{ft(!1),re(!1),Me(0),mt(!1)},[St,yt,wt,Ot]),Ha(()=>{if(kt)return mt(!0),ft(!0),void se();if(ie){const R=document.getElementById(Ad),D=bt?R:R?.shadowRoot,P=D?.querySelector(`[data-testid=${Y}]`)||null,x=D?.querySelector('[data-testid="uc-container"]')||null;if(P&&x){let D=0,k=0;const G=P.offsetHeight,H=x?.offsetHeight,$=R?.shadowRoot?.querySelector('[data-testid="uc-header-wrapper"]')||null;if($){const R=window.getComputedStyle($,null).getPropertyValue("padding-top");k=parseInt(R,10)||0,D=H-k}mt(G>D),ft(!0)}se()}else mt(!1)},[ie]),ie?ta(ia,null,Pt&&function bl(R,D){var P=ta(Sl,{__v:R,h:D});return P.containerInfo=D,P}(ta(sy,{visibility:tt,"data-testid":Y,dropdownExpanded:ie,id:H,top:Ue,left:Fe,right:Ye,isGlobeOnRight:Re},ta(ia,null,ta(bv,{id:"selector-focus-lock"},ta(ay,{display:ie,role:"listbox","data-testid":W,maxHeight:vt?z:260,visibility:tt},ta(cy,{"aria-label":oe.displayName,"aria-posinset":1,"aria-selected":!0,"aria-setsize":P&&P.length,"data-testid":`uc-menu-item-${oe.value}`,lang:`${oe.value}`,onClick:()=>{re(!ie),Ee&&Nt(Ve)},role:"option",ref:xe,style:i({},Pe)},ta(uy,null,oe.displayName),ta(vm,null)),P.filter(R=>R.value!==oe.value).map((R,D)=>ta(ly,{"aria-label":R.displayName,"aria-posinset":D+2,"aria-setsize":P&&P.length,"data-testid":`uc-menu-item-${R.value}`,lang:`${R.value}`,onClick:()=>{re(!ie),Ft(R,!0)},role:"option",style:i({},Pe)},R.displayName)))))),te?ne.current:Pt.current)):ta(sy,{visibility:tt,"data-testid":Y,dropdownExpanded:ie,id:H,top:0,left:0,right:-1},ta(ia,null,ta(oy,{display:ie,"aria-label":x,"data-tip":!0,title:x,"data-for":Pd,"aria-haspopup":"listbox","aria-describedby":Pd,"data-testid":ee,onFocus:Bt,onBlur:Gt,onMouseEnter:Bt,onMouseLeave:Gt,onClick:()=>{R(),Gt(),re(!0)},ref:Ve},ta(Em,{label:x}))),!ie&&ta(JA,{arrowColor:"transparent",ref:ke,clickable:!0,disable:!0,id:Pd,effect:"solid",place:"left",role:"tooltip",uuid:Pd,delayShow:100,overridePosition:({left:R,top:D})=>(0===fe&&0===me&&(ve(R),ye(D)),{left:fe,top:me}),afterShow:()=>Ht(!0),afterHide:()=>Ht(!1)},ta("div",{onMouseEnter:Ut,onFocus:Ut,lang:"en"},k)))}LO.defaultProps={ariaLabel:null,defaultItem:null,id:"",isExpandedOnInit:!1,maxHeight:100,testIdContainer:"",testIdMenu:"",testIdMenuButton:""};const XA={AF:{displayName:"Afrikaans",language:"Afrikaans"},AR:{displayName:"العربية",language:"Arabic"},AZ_LATN:{displayName:"Azərbaycanca",language:"Azerbaijani"},BE:{displayName:"Беларуская",language:"Belarusian"},BG:{displayName:"български",language:"Bulgarian"},BS:{displayName:"Bosanski",language:"Bosnian"},CA:{displayName:"Català",language:"Catalan"},CS:{displayName:"Čeština",language:"Czech"},CY:{displayName:"Cymraeg",language:"Welsh"},DA:{displayName:"Dansk",language:"Danish"},DE:{displayName:"Deutsch",language:"German"},EL:{displayName:"Ελληνικά",language:"Greek"},EN:{displayName:"English",language:"English"},ES:{displayName:"Español",language:"Spanish"},ET:{displayName:"Eesti",language:"Estonian"},FA:{displayName:"فارسی",language:"Persian (Farsi)"},FI:{displayName:"Suomi",language:"Finnish"},FR:{displayName:"Français",language:"French"},GL:{displayName:"Galego",language:"Galician"},HE:{displayName:"עברית",language:"Hebrew"},HI:{displayName:"हिन्दी",language:"Hindi"},HR:{displayName:"Hrvatski",language:"Croatian"},HU:{displayName:"Magyar",language:"Hungarian"},HY:{displayName:"Հայերեն",language:"Armenian"},ID:{displayName:"Bahasa Indonesia",language:"Indonesian"},IS:{displayName:"Íslenska",language:"Icelandic"},IT:{displayName:"Italiano",language:"Italian"},JA:{displayName:"日本語",language:"Japanese"},KA:{displayName:"ქართული",language:"Georgian"},KK:{displayName:"Қазақ Тілі",language:"Kazakh"},KO:{displayName:"한국어",language:"Korean"},LT:{displayName:"Lietuvių",language:"Lithuanian"},LV:{displayName:"Latviešu",language:"Latvian"},MK:{displayName:"Македонски",language:"Macedonian"},MN:{displayName:"монгол",language:"Mongolian"},MS:{displayName:"Bahasa Melayu",language:"Malay"},NB:{displayName:"Norsk (Bokmål)",language:"Norwegian (Bokmal)"},NL:{displayName:"Nederlands",language:"Dutch"},NN:{displayName:"Norsk (Nynorsk)",language:"Norwegian Nynorsk"},NO:{displayName:"Norsk",language:"Norwegian"},PL:{displayName:"Polski ",language:"Polish"},PT:{displayName:"Português (Portugal)",language:"Portuguese"},PT_BR:{displayName:"Português (Brasil)",language:"Brazilian Portuguese"},RO:{displayName:"Română",language:"Romanian"},RU:{displayName:"Русский",language:"Russian"},SK:{displayName:"Slovenčina",language:"Slovak"},SL:{displayName:"Slovenščina",language:"Slovenian"},SQ:{displayName:"Shqip",language:"Albanian"},SR:{displayName:"Српски",language:"Serbian (cyrillic)"},SR_LATN:{displayName:"Srpski",language:"Serbian (latin)"},SV:{displayName:"Svenska",language:"Swedish"},TH:{displayName:"ไทย",language:"Thai"},TR:{displayName:"Türkçe",language:"Turkish"},UK:{displayName:"Українська",language:"Ukrainian"},UR:{displayName:"اردو",language:"Urdu"},UZ_LATN:{displayName:"Oʻzbek",language:"Uzbek"},VI:{displayName:"Tiếng Việt",language:"Vietnamese"},ZH:{displayName:"简体中文",language:"Chinese Simplified"},ZH_HK:{displayName:"繁體中文 (香港)",language:"Chinese Traditional (Hong Kong)"},ZH_TW:{displayName:"繁體中文",language:"Chinese Traditional"}},KA=rl(({onChange:R,isHtmlDialog:D,mainElementRef:P})=>{const{core:x,labels:k}=Eg(),[G,H]=Ba(260),$=x?.language.available.sort().map(R=>({ariaLabel:XA[R.toUpperCase()]?.language,displayName:XA[R.toUpperCase()]?.displayName,value:R.toUpperCase()}))||[],{view:z}=ev(),Y=z===Vd.SECOND_LAYER,u=()=>{if(Y)H(260);else{const R=document.getElementById(Ad),D=R?.shadowRoot?.querySelector('[data-testid="uc-header-wrapper"]')||null;if(D&&D.clientHeight&&G){const R=D.clientHeight;H(R>260?260:R)}}};return Ha(()=>{u()},[]),!x||!k||x.language.available.length<=1||ct(k)?null:ta(LO,{onShowList:u,onChange:R,items:$,ariaLabel:k.ariaLabels.languageSelector,languageChangeLabel:k.general.languageChange,defaultItem:{ariaLabel:XA[x.language.selected.toUpperCase()]?.language,displayName:XA[x.language.selected.toUpperCase()]?.displayName,value:x.language.selected.toUpperCase()},maxHeight:G,isHtmlDialog:D,mainElementRef:P,id:"usercentrics-language-selector",testIdContainer:"uc-language-container",testIdMenuButton:"uc-language-button",testIdMenu:"uc-language-menu"})}),qA=_d.div(["display:block;min-height:",";"],({custom:R,large:D,medium:P,small:x,theme:k})=>R?`${R}px`:D?k.spacing.base.xl:P?k.spacing.base.md:k.spacing.base.xs),QA=rl(({closeAriaLabel:R,children:D,fullScreenAriaLabel:P,logo:x,onClose:k,onFullScreen:G,onLanguageChange:H,showCloseButton:$=!1,showFullScreenButton:z,showLanguage:Y=!1,title:W,isHtmlDialog:ee,mainElementRef:te})=>{const ne=gv({targetKey:"Escape"}),{langSelectorOpen:ie}=cm(),{isMobileExtraSmall:re,isLandscape:oe}=ch(),{rules:ae}=rm(jg.LOGO),{rules:le}=rm(jg.TITLE_CONTAINER);Ha(()=>{ne&&$&&k&&!ie&&k()},[ne]);const ce=W&&""!==W&&ta(Fb,{alignment:x.url?"flex-start":"center",style:i({},le)},ta(SE,null,W));let ue=0;const de=bd();return kh&&(Y&&(ue+=24),$&&(ue+=44,Y&&(ue+=Number(re&&!oe?de.spacing.mobile.md.replace("px",""):de.spacing.base.md.replace("px","")))),z&&(ue+=24+Number(de.spacing.mobile.md.replace("px","")))),ta(Gb,{"data-testid":"uc-header"},(x.url||Y||$||z||W&&""!==W)&&ta(zb,{reverseItems:"right"===x.position},x.url?ta(Kb,{position:x.position,style:i({},ae)},x.altTag?ta(iy,{position:x.position,src:x.url,alt:x.altTag}):ta(iy,{position:x.position,src:x.url,"aria-hidden":"true",alt:""})):ce,(Y||$||z)&&ta(jb,{position:x.url?x.position:"left",maxWidth:ue>0?ue:null},Y&&ta(KA,{onChange:H,isHtmlDialog:ee,mainElementRef:te}),$&&ta(Yb,{title:R,"aria-label":R,height:"28px","data-testid":"uc-close-button",onClick:k},ta(mm,null)),z&&ta(Yb,{"aria-label":P,height:"24px","data-testid":"uc-fullscreen-button",onClick:G},ta(ym,null)))),!x.url&&ta(qA,{small:!0}),x.url&&ta(ia,null,ta(qA,{large:!0}),ce,ta(qA,{small:!0})),D)}),ew=_d.div(["align-items:center;background-color:",";opacity:",";height:100%;justify-content:center;left:0;position:fixed;top:0;width:100%;z-index:2147483639;overflow:hidden !important;"],({theme:R})=>R.ui.overlay.color,({theme:R})=>R.ui.overlay.opacity),kO=()=>ta(ew,{"data-testid":"uc-overlay"}),tw=_d.a(["color:",";font-weight:normal;text-decoration:none;word-break:break-word;&:hover{text-decoration:underline;}&:focus-visible{outline-style:auto;outline-width:5px;}"],({theme:R})=>R.ui.text.color),UO=R=>`\n align-items: flex-end;\n color: ${R.ui.text.color};\n display: flex;\n flex: 1 1 auto;\n font-size: ${R.typography.size.xsmall};\n font-weight: ${R.typography.weight.regular};\n direction: ltr;\n`,nw=_d.div([""," ",";justify-content:left;padding:"," 0;",";","{justify-content:center;padding:0 0;}"],({theme:R})=>UO(R),({theme:R})=>Zp(R,Fd.TEXT_ALIGNMENT_LEFT),({theme:R})=>R.spacing.base.sm,({theme:R})=>Zp(R,Fd.PADDING_RIGHT,R.spacing.base.sm),ph.mobilePortrait),iw=_d.div([""," justify-content:center;padding:0;"],({theme:R})=>UO(R)),BO=({sidePosition:R=!1})=>{const{labels:D,ui:P,core:x}=Eg(),{rules:k}=rm(jg.POWERED_BY);if(!D||!P||gt(P)||!P.poweredBy||ct(D))return null;const{url:G,partnerUrl:H}=P.poweredBy,{label:$,partnerUrlLabel:z,urlLabel:Y}=D.poweredBy,W=x?.language.selected.replace(/_/g,"-")||"en",ee=G?.split("/");ee?.splice(3,0,W);const te=ee?.join("/"),ne=G?ta(tw,{href:te,tabIndex:0,target:"_blank",rel:"noopener nofollow"},$," ",Y):[$,Y],ie=H?ta(tw,{href:H,tabIndex:0,target:"_blank",rel:"noopener nofollow"},Y&&z&&[String.fromCharCode(160),"&",String.fromCharCode(160)],z):[Y&&z&&[String.fromCharCode(160),"&",String.fromCharCode(160)],z],re=[Y&&ne,z&&ie];return ta(R?nw:iw,{style:i({},k)},re)},rw=_d.button(["background:transparent;border:none;padding:0;",";",";text-decoration:underline;"],({theme:R})=>Zp(R,Fd.TEXT_ALIGNMENT_LEFT),({theme:R})=>""!==R.ui.links.fontColor&&`color: ${R.ui.links.fontColor};`),aw=_d(rw)([""]),lw=_d.div(["color:",";font-size:",";line-height:1.25;overflow:auto;",";padding:"," 0;list-style-position:inside;","{",";}",""],({theme:R})=>R.ui.text.color,({theme:R})=>R.typography.size.medium,({maxHeight:R})=>R?`max-height: ${R}px`:"",({theme:R})=>R.spacing.base.xxs,ph.ie11,({shouldLimitHeight:R})=>R?"max-height: 60px":"",({theme:R})=>""!==R.ui.links.fontColor&&`a {\n color: ${R.ui.links.fontColor};\n }`),cw=rl(({enableHTMLTextFormatting:R=!1,labelShowLess:D,labelShowMore:P,longDescription:x,maxDescriptionHeight:k,shortDescriptionDesktop:G,shortDescriptionMobile:H})=>{const{rules:$}=rm(jg.MESSAGE),{rules:z}=rm(jg.LINKS),{isDesktop:Y}=ch(),{uiVariant:W,view:ee}=ev(),[te,ne]=Ba(),[ie,re]=Ba(!0),oe=za(null);Ha(()=>{ne(!Y&&H||G)},[Y,H,G]);const ae=W===Rs.TCF&&ee===Vd.FIRST_LAYER,b=D=>D?"string"==typeof D?R?ta("div",{dangerouslySetInnerHTML:{__html:D}}):D:Array.isArray(D)?ta(ia,null,D.map((D,P)=>"string"==typeof D&&/<[^>]+>/.test(D)&&R?ta("span",{key:`html-${D.substring(0,30).replace(/[^a-zA-Z0-9]/g,"")}-${P}`,dangerouslySetInnerHTML:{__html:D}}):D)):D:null;return te&&ie?ta(ia,null,ta(lw,{"data-testid":"uc-message-container",id:Dd,maxHeight:k,shouldLimitHeight:ae,style:i({},$)},b(te)),ta(rw,{onClick:()=>re(!ie),"data-testid":"uc-show-more",style:i({},z)},`${P}...`)):x&&""!==x&&ta(ia,null,ta(lw,{id:Dd,"data-testid":"uc-message-container",maxHeight:k,ref:oe,shouldLimitHeight:ae,style:i({},$)},b(x)),te&&ta(aw,{id:Dd,onClick:()=>re(!ie),"data-testid":"uc-show-less",style:i({},z)},`${D}...`))}),uw=_d.i(["align-self:center;border:",";border-width:",";display:inline-block;height:",";margin:",";width:",";transform:rotate(-45deg);"],({color:R="rgb(0, 69, 165)"})=>`solid ${R}`,R=>(R=>{const{direction:D}=R,P=R.weight||"1";switch(D){case"left":return`${P}px 0 0 ${P}px`;case"right":return`0 ${P}px ${P}px 0`;case"top":return`${P}px ${P}px 0 0`;case"down":return`0 0 ${P}px ${P}px`;default:return""}})(R),({size:R=5})=>`${R}px`,({theme:R})=>`0 ${R.spacing.base.xs}`,({size:R=5})=>`${R}px`),dw=_d.li(["font-size:",";list-style:",";margin:",";max-width:100%;"],({theme:R})=>R.typography.size.medium,({showBulletPoints:R})=>R?"initial":"none",({addMargin:R,theme:D})=>R?`0 ${D.spacing.base.md}`:"0"),pw=_d.ul(["max-width:100%;padding:",";margin:0;"],({noPadding:R,theme:D})=>R?"0":`0 ${D.spacing.base.md}`),hw=_d.div(["display:flex;flex-direction:column;height:100%;justify-content:space-between;width:100%;"]),gw=_d.div(["border-bottom:1px solid ",";margin-bottom:",";width:100%;"],({theme:R})=>R.ui.accentColor,({theme:R})=>R.spacing.base.sm),fw=_d.a(["color:",";display:flex;font-size:",";word-break:break-word;&:focus-visible{outline-style:auto;outline-width:5px;}"],({theme:R})=>R.ui.links.fontColor,({theme:R})=>R.typography.size.small),vw=_d.div(["color:",";font-size:",";margin-bottom:",";width:100%;"],({theme:R})=>R.ui.text.color,({theme:R})=>R.typography.size.medium,({theme:R})=>R.spacing.base.md),mw=_d.div(["color:",";font-size:",";font-weight:",";padding-bottom:",";"],({theme:R})=>R.ui.text.color,({theme:R})=>R.typography.size.small,({theme:R})=>R.typography.weight.regular,({theme:R})=>R.spacing.base.xxs);mw.defaultProps={"aria-level":3,role:"heading"};const bw=_d.div(["color:",";font-size:",";padding-bottom:",";text-overflow:ellipsis;white-space:",";"],({theme:R})=>R.ui.text.color,({theme:R})=>R.typography.size.medium,({noPadding:R,theme:D})=>R?"0px":D.spacing.base.xs,({keepLineBreaks:R})=>R?"pre-wrap":"normal"),Ew=_d.ul(["display:flex;flex-direction:row;flex-wrap:wrap;width:100%;padding:0;margin:0;"]),Cw=_d.li(["align-items:center;border:solid "," 1px;border-radius:4px;color:",";display:flex;font-size:",";min-height:32px;",";margin-bottom:",";max-width:100%;padding:",";","{",";margin-bottom:",";}"],({theme:R})=>R.ui.accentColor,({theme:R})=>R.ui.text.color,({theme:R})=>R.typography.size.medium,({theme:R})=>Zp(R,Fd.MARGIN_RIGHT,R.spacing.base.xs),({theme:R})=>R.spacing.base.xs,({theme:R})=>R.spacing.base.xs,ph.mobilePortrait,({theme:R})=>Zp(R,Fd.MARGIN_RIGHT,R.spacing.mobile.xl),({theme:R})=>R.spacing.base.sm),Tw=_d.div(["border:solid "," 1px;border-radius:3px;display:flex;flex-wrap:wrap;font-size:",";"],({theme:R})=>R.ui.accentColor,({theme:R})=>R.typography.size.medium),_w=_d.div(["display:flex;flex-direction:row;padding-top:",";padding-bottom:",";",";",";width:100%;"],({theme:R})=>R.spacing.base.xs,({theme:R})=>R.spacing.base.xs,({theme:R})=>Zp(R,Fd.PADDING_RIGHT,0),({theme:R})=>Zp(R,Fd.PADDING_LEFT,R.spacing.base.sm)),Iw=_d.div(["width:50%;"]),Aw=_d.div(["border-top:solid "," 1px;display:flex;padding-top:",";padding-bottom:",";",";width:100%;"],({theme:R})=>R.ui.accentColor,({theme:R})=>R.spacing.base.xs,({theme:R})=>R.spacing.base.xs,({theme:R})=>Zp(R,Fd.PADDING_LEFT,R.spacing.base.sm)),ww=_d.div(["align-items:center;display:flex;width:50%;"]),Ow=_d.div(["height:16px;margin-right:",";width:16px;"],({theme:R})=>R.spacing.base.sm),Lw=_d.div(["position:relative;"]),Nw=_d.div(["position:relative;z-index:1;"]),Rw=_d.div(["bottom:-1px;overflow:auto;position:absolute;top:-1px;z-index:2465274534753;width:100%;"]),Dw=id` background-color: #ccc; display: inline-block; overflow: hidden; position: relative; width: 100%; z-index: 1; &::after { animation: shimmer 3s infinite; background: linear-gradient( 90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.2) 20%, rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0) ); bottom: 0; content: ''; left: 0; position: absolute; right: 0; transform: translateX(-100%); top: 0; z-index: 2; } @keyframes shimmer { 100% { transform: translateX(100%); } } `,Pw=_d.div(["display:block;width:100%;"]),xw=_d(Cw)(["background:transparent;font-size:",";margin-right:0;padding:",";width:100%;margin-bottom:",";"],({theme:R})=>R.typography.size.medium,({theme:R})=>`${R.spacing.base.sm} ${R.spacing.base.xs}`,({showMarginBottom:R})=>`${R} ? 0 : initial`),kw=_d.span(["font-size:",";"],({theme:R})=>R.typography.size.small),Vw=_d.span([""," height:18px;width:150px;"],Dw),Uw=_d.button(["background:transparent;border:0;cursor:pointer;font-size:",";margin-left:auto;padding:0;outline:none;&:focus-visible{outline-style:auto;outline-width:5px;}"],({theme:R})=>R.typography.size.medium),Mw=_d.span(["color:",";font-size:",";"],({theme:R})=>R.ui.links.fontColor,({theme:R})=>R.typography.size.small),Fw=_d.span([""," background-color:",";content:'';display:flex;height:16px;margin-left:auto;opacity:0.5;width:60px;"],Dw,({theme:R})=>R.color.primary.default),Bw=_d(uw)(["border-color:",";margin-bottom:2px;"],({theme:R})=>R.ui.links.fontColor),Gw=_d.div(["background-color:",";display:flex;flex-direction:column;position:relative;width:100%;"],({theme:R})=>R.ui.layer.backgroundColor),Hw=_d.header(["border-bottom:solid 1px ",";padding:",";"],({theme:R})=>R.ui.accentColor,({theme:R})=>`${R.spacing.base.xxs} ${R.spacing.base.md}`),Ww=_d.div(["border:solid 1px ",";border-radius:4px;box-shadow:0 1px 1px 0 rgba(0,0,0,0.14),0 2px 1px -1px rgba(0,0,0,0.12),0 1px 3px 0 rgba(0,0,0,0.2);margin:",";z-index:9;"],({theme:R})=>R.ui.accentColor,({theme:R})=>`0 ${R.spacing.base.xl} ${R.spacing.base.md}`),Jw=_d.div(["border-top:0;padding:",";"],({theme:R})=>R.spacing.base.md),Xw=_d.nav(["background-color:",";margin:0;padding:",";position:sticky;top:0;width:100%;z-index:10;"],({theme:R})=>R.ui.layer.backgroundColor,({theme:R})=>`${R.spacing.base.lg} ${R.spacing.base.xl} 0`),Kw=_d.button(["background:transparent;color:",";border:0;margin-bottom:",";outline:none;&:focus-visible{outline-style:auto;outline-width:5px;}"],({theme:R})=>R.ui.links.fontColor,({theme:R})=>R.spacing.base.md),qw=_d(uw)(["border-color:",";margin:",";"],({theme:R})=>R.ui.links.fontColor,({theme:R})=>`0 ${R.spacing.base.xs} 2px 0`),Qw=_d.div(["color:",";font-weight:",";font-size:",";"],({theme:R})=>R.ui.text.color,({theme:R})=>R.ui.text.color,({theme:R})=>R.typography.size.medium),Zw=_d.div(["color:",";font-size:",";display:block;margin-top:",";min-width:fit-content;",""],({useLinkColor:R,theme:D})=>R?D.ui.links.fontColor:D.ui.text.color,({theme:R})=>R.typography.size.small,({theme:R})=>R.spacing.base.xxs,({showBullet:R})=>R?id` &::before { background-color: ${({theme:R})=>R.ui.text.color}; content: ''; display: inline-block; height: 4px; margin-bottom: 2px; margin-right: ${({theme:R})=>R.spacing.base.xs}; width: 4px; } `:""),eO=_d.span(["margin-left:",";"],({theme:R})=>R.spacing.base.xxs),tO=_d(uw)(["border:",";margin:",";opacity:",";"],({theme:R})=>R.ui.links.fontColor,({theme:R})=>`0 0 ${R.spacing.mobile.xxs} ${R.spacing.base.sm}`,.7),nO=_d.div(["font-size:",";"],({theme:R})=>R.typography.size.medium),iO=_d.button(["align-items:center;background:none !important;border:none;color:",";cursor:pointer;display:inline-flex;font-size:",";margin-top:1px;outline:none;padding:0 !important;text-decoration:none;&:focus-visible{outline-style:auto;outline-width:5px;}"],({theme:R})=>R.ui.expandableLink.color,({theme:R})=>R.typography.size.medium),rO=_d.label(["color:",";cursor:pointer;font-size:",";margin-right:",";text-decoration:none;"],({theme:R})=>R.ui.expandableLink.color,({theme:R})=>R.typography.size.medium,({theme:R})=>R.spacing.base.xxs),lO=_d(rO)(["font-size:",";"],({theme:R})=>R.typography.size.small),EO=_d.div(["display:flex;flex-direction:column;flex-wrap:wrap;flex:auto;max-height:100%;max-width:100%;padding-top:",";"],({theme:R})=>R.spacing.base.sm),CO=_d.div(["align-items:center;display:flex;height:13px;justify-content:center;width:24px;margin:0 -5px;"]),TO=_d.div(["align-content:center;border:1px solid ",";display:inline-flex;flex-direction:row;height:58px;justify-content:center;padding:",";"],({theme:R})=>R.color.neutral.default,({theme:R})=>R.spacing.base.sm),_O=_d.div(["align-items:center;display:flex;flex:",";"],({size:R})=>R||"initial"),IO=_d(_O)(["font-size:",";justify-content:center;"],({theme:R})=>R.typography.size.medium),wO=_d(R=>{let{fill:D}=R,P=r(R,qf);const x=bd();return ta("svg",t({width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0},P),ta("defs",null,ta("path",{d:"m15.875 9-3.88 3.88L8.115 9a.996.996 0 1 0-1.41 1.41l4.59 4.59c.39.39 1.02.39 1.41 0l4.59-4.59a.996.996 0 0 0 0-1.41c-.39-.38-1.03-.39-1.42 0Z",id:"arrow-path"})),ta("g",{id:"Arrow-Icon",fill:"none",fillRule:"evenodd"},ta("mask",{id:"arrow-mask",fill:"#fff"},ta("use",{xlinkHref:"#arrow-path"})),ta("g",{mask:"url(#arrow-mask)",fill:D||x.ui.text.color},ta("path",{d:"M0 0h24v24H0z"}))))}).attrs(R=>({fill:R.fill}))(["transform:",";transition:transform 0.2s linear;"],({upDirection:R})=>R?"rotate(180deg)":"rotate(0deg)");let OO=function(R){return R[R.ERROR=0]="ERROR",R[R.LOADED=1]="LOADED",R[R.LOADING=2]="LOADING",R[R.NOT_CALLED=3]="NOT_CALLED",R}({});const NO=_d.div(["border:",";border-bottom:",";display:flex;flex-direction:column;font-size:",";padding:",";","{flex-wrap:wrap;}"],({theme:R})=>`1px solid ${R.ui.accentColor}`,({theme:R,showBorderBottom:D})=>D?`1px solid ${R.ui.accentColor}`:"none",({theme:R})=>R.typography.size.medium,({theme:R})=>`${R.spacing.base.xs} ${R.spacing.base.sm}`,ph.mobilePortrait),RO=_d.div(["display:flex;flex-direction:row;flex:1 1 auto;margin-bottom:",";"],({theme:R})=>R.spacing.base.xxs),DO=_d.div(["width:",";min-width:",";"],({isMobile:R})=>R?"40%":"25%",({isMobile:R})=>R?"40%":"25%"),PO=_d(_O)(["font-size:",";font-weight:bold;margin-bottom:",";"],({theme:R})=>R.typography.size.small,({hasDescription:R,theme:D})=>R?D.spacing.base.xxs:D.spacing.base.xs),xO=_d(_O)(["color:",";font-size:",";line-height:normal;margin-bottom:",";"],({theme:R})=>R.ui.text.color,({theme:R})=>R.typography.size.small,({isDescription:R,theme:D})=>R?D.spacing.base.xs:D.spacing.base.xxs),VO=rl(({labels:R,identifier:D="",name:P="",nameId:x,description:k=null,type:G,maxAgeSeconds:H,cookieRefresh:$=null,domain:z=null,purposes:Y=null,isLast:W})=>{const{isMobile:ee}=ch(),{tcfData:te}=Xf(),ne=[];Y&&Y.length>0&&Y.forEach(R=>{ne.push(te?.purposes.find(D=>D.id===R)?.name||"")});const ie=`cookie-information-${om(`${x} ${P&&P.length?`${P}`:`${D}`}-title-id`)}`,re=`cookie-information-${om(`${x} ${P&&P.length?`${P}`:`${D}`}-description-id`)}`;return ta(NO,{showBorderBottom:W},(D||P)&&ta(PO,{id:ie,hasDescription:!!k},P&&P.length?`${P}`:`${D}`),k&&ta(xO,{id:re,isDescription:!0},k),ta(VS,t({role:"table"},(D||P)&&{"aria-labelledby":ie},k&&{"aria-describedby":re}),ta(RO,{role:"row"},ta(DO,{isMobile:ee},ta(xO,{role:"rowheader"},`${R.type}:`)),ta(xO,{role:"cell"},G)),"cookie"===G.toString()&&ta(ia,null,ta(RO,{role:"row"},ta(DO,{isMobile:ee},ta(xO,{role:"rowheader"},`${R.duration}:`)),ta(xO,{role:"cell"},Cg(H,R))),null!=$&&ta(RO,{role:"row"},ta(DO,{isMobile:ee},ta(xO,{role:"rowheader"},`${R.cookieRefresh}:`)),ta(xO,{role:"cell"},$?R.yes:R.no))),z&&ta(RO,{role:"row"},ta(DO,{isMobile:ee},ta(xO,{role:"rowheader"},`${R.domain}:`)),ta(xO,{role:"cell"},Ig(z,R.anyDomain,R.multipleDomains))),!!Y&&Y.length>0&&ta(RO,{role:"row"},ta(DO,{isMobile:ee},ta(xO,{role:"rowheader"},`${R.purposes}:`)),ta(xO,{role:"cell"},ne.join("; ")))))}),MO=rl(({domain:R,labels:D,isLast:P,nameId:x,use:k})=>{const{isMobile:G}=ch(),H=`cookie-information-domain-${om(`${x} ${R}`)}-title-id`;return ta(NO,{showBorderBottom:P},ta(PO,{id:H},R),ta(VS,{role:"table","aria-labelledby":R},!!k&&ta(RO,{role:"row"},ta(DO,{isMobile:G},ta(xO,{role:"rowheader"},`${D.purposes}:`)),ta(xO,{role:"cell"},k))))}),JL=R=>Sd` 0% { background-color: ${R.default}; } 50%, 100% { background-color: ${R.dark}; } `,FO=_d.div(["align-items:center;animation-delay:0.5s;animation:"," 1s infinite alternate;background-color:",";border-radius:1.75px;color:",";display:flex;height:3.5px;justify-content:center;left:-200px;position:relative;top:4px;width:3.5px;&:before,&:after{content:'';display:inline-block;position:absolute;top:0;}&:before{animation-delay:0s;animation:"," 1s infinite alternate;background-color:",";border-radius:1.75px;color:",";left:-10px;height:3.5px;width:3.5px;}&:after{animation-delay:1s;animation:"," 1s infinite alternate;background-color:",";border-radius:1.75px;color:",";left:10px;height:3.5px;width:3.5px;}"],({theme:R})=>JL(R.color.neutral),({theme:R})=>R.typography.color.tertiary,({theme:R})=>R.typography.color.tertiary,({theme:R})=>JL(R.color.neutral),({theme:R})=>R.color.neutral.default,({theme:R})=>R.color.neutral.default,({theme:R})=>JL(R.color.neutral),({theme:R})=>R.color.neutral.default,({theme:R})=>R.color.neutral.default),GO=_d.div(["display:flex;flex-direction:row;justify-content:center;align-content:center;height:58px;border:1px solid ",";"],({theme:R})=>R.color.neutral.default),HO=_d.label(["display:flex;align-items:center;color:",";font-size:",";"],({theme:R})=>R.typography.color.tertiary,({theme:R})=>R.typography.size.medium),$O=_d.div(["display:flex;align-items:center;"]),eN=({text:R=""})=>ta(GO,null,R&&ta(HO,null,R),ta($O,null,ta(FO,null))),tN=({deviceStorage:R,disclosureUrl:D,name:P,labels:x,isNonIabVendor:k,onToggleExpandable:G})=>{const H=bd(),[$,z]=Ba(!1),[Y,W]=Ba({state:OO.NOT_CALLED}),[ee,te]=Ba(!1),{core:ne}=Eg(),[ie,re]=Ba(ne?.language?.selected),oe=ne?.language.selected,{state:ae}=Y;return Ha(()=>{ie!==oe&&ae===OO.LOADED&&(re(oe),W({state:OO.LOADING}))},[ae,ie,oe]),Ha(()=>{ae!==OO.NOT_CALLED&&G&&G()},[G,ae,$]),Ha(()=>{(ae===OO.LOADING||ee)&&(D&&""!==D?Tg(D).then(R=>R&&R.json()).then(R=>{if(te(!1),R?.disclosures){const{disclosures:D,domains:P}=R;W({response:{disclosures:D,domains:P},state:OO.LOADED})}else W({state:OO.ERROR})}).catch(()=>{te(!1),W({state:OO.ERROR})}):R&&R.disclosures.length>0&&W({response:{disclosures:R.disclosures,domains:R.domains},state:OO.LOADED}))},[ae,R,ee,D]),ta(nO,null,ta(iO,{"data-testid":"uc-expandable-link",onClick:()=>{z(!$),ae===OO.NOT_CALLED&&W({state:OO.LOADING})},role:"button","aria-expanded":$?"true":"false"},ta(lO,null,x.storedInformation),ta(CO,null,ta(wO,{fill:H.ui.expandableLink.color,upDirection:$}))),ae!==OO.NOT_CALLED&&$&&ta(EO,{"data-testid":"uc-expandable-content"},k&&ta(bw,null,x.storedInformationDescription),ae===OO.LOADING&&ta(eN,{text:x.loading}),ae===OO.LOADED&&(R=>{const{response:{disclosures:D,domains:G}}=R;return ta(ia,null,D&&D.map((R,k)=>ta(VO,{labels:x,identifier:R.identifier,nameId:P,name:R.name,description:R.description,type:R.type,maxAgeSeconds:R.maxAgeSeconds,cookieRefresh:R.cookieRefresh,domain:R.domain,purposes:R.purposes,isLast:k===D.length-1})),G&&!k&&ta(ia,null,ta(qA,{medium:!0}),G.map((R,D)=>ta(MO,{labels:x,domain:R.domain,use:R.use,nameId:P,isLast:D===G.length-1}))))})(Y),ae===OO.ERROR&&ta(TO,null,ta(IO,null,x.error),ta(iO,{onClick:()=>te(!0),role:"button","aria-label":x.tryAgain},ta(rO,null,x.tryAgain)))))},zO=_d(mw)(["font-size:",";padding-top:",";"],({theme:R})=>R.typography.size.small,({theme:R})=>R.spacing.base.xs),jO=rl(({ariaLevel:R=3,cookieInformationLabels:D,cookieMaxAgeSeconds:P,cookieRefresh:x,deviceStorage:k,deviceStorageDisclosureUrl:G,name:H,onToggleExpandable:$,usesCookies:z,usesNonCookieAccess:Y,isNonIabVendor:W})=>{const ee=null!==P,te=null!==Y,ne=k?.disclosures&&k.disclosures.length>0,ie=G&&""!==G;return z||W||ee||te||ne||ie?ta(vw,null,(ee||te)&&ta(ia,null,ta(zO,{role:"heading","aria-level":R},D.title),W&&ta(bw,null,D.description),ta(pw,null,null!==z&&ta(dw,{showBulletPoints:!0},`${D.cookieStorage}: ${z?`${D.yes}`:`${D.no}`}`," "),ee&&ta(dw,{showBulletPoints:!0},`${D.maximumAge}: ${Cg(P,D)}`),null!==x&&ta(dw,{showBulletPoints:!0},`${D.cookieRefresh}: ${x?`${D.yes}`:`${D.no}`}`),null!==te&&ta(dw,{showBulletPoints:!0},`${D.nonCookieStorage}: ${Y?`${D.yes}`:`${D.no}`}`))),(ne||ie)&&ta(ia,null,ta(qA,{custom:12}),ta(tN,{name:H,onToggleExpandable:$,deviceStorage:k,disclosureUrl:G,labels:D,isNonIabVendor:W}))):null}),rN=({size:R})=>ta(Pw,null,Array(R).fill(Math.random()).map((D,P)=>ta(xw,{key:`sub-placeholder-${D}-${Math.random()}-${P}`,showMarginBottom:R-1===P},ta(Vw,null),ta(Fw,null),ta(uw,{color:"rgba(0, 69, 165, 0.5)",direction:"right"})))),YO=gl(()=>Promise.resolve().then(function(){return JN})),aN=({fetchSubServices:R,onOpenSubServiceDetail:D,onToggleExpandable:P,size:x})=>{const k=za(null),[G]=Ba(()=>(R=>(R=>{let D,P=OO.LOADING;const x=R.then(R=>{P=OO.LOADED,D=R},R=>{P=OO.ERROR,D=R});return{read(){if(P===OO.LOADING)throw x;if(P===OO.ERROR)throw D;return D}}})(R()))(R)),{scrollToSubServices:H,setScrollToSubServices:$}=ev(),{labels:z}=Eg();return Ha(()=>{const R=k.current;H&&R&&(R.scrollIntoView(!0),$(!1))},[H,k]),!z||ct(z)?null:ta(vw,{ref:k},ta(mw,null,z.general.subservices),ta(bw,null,z.general.subservicesDescription),ta(Ew,null,ta(pl,{fallback:ta(rN,{size:x})},ta(YO,{fetchSubServices:R,subServicesReader:G,onOpenSubServiceDetail:D,onToggleExpandable:P}))))},lN=R=>{let D=R;return 1===D.length&&(D="0".concat(R)),D};var WO=rl(({ariaLevel:R=3,onOpenSubServiceDetail:D,onToggleExpandable:P,service:x})=>{const{uiVariant:k}=ev(),{labels:G,ui:H}=Eg(),{consent:$,cookieMaxAgeSeconds:z,cookieRefresh:Y,dataCollected:W,dataDistribution:ee,dataProtectionOfficer:te,dataPurposes:ie,dataRecipients:re,description:oe,deviceStorage:ae,deviceStorageDisclosureUrl:le,fetchSubServices:ce,legalBasis:ue,name:de,retentionPeriodDescription:pe,technologiesUsed:he,usesCookies:ge,usesNonCookieAccess:fe}=x,ve=x.subServicesLength,[me,ye]=Ba(null),Ee=(dt(H)||ht(H)||pt(H)?H.secondLayer.dpsDisplayFormat:ne.ALL)===ne.ALL;if(Ha(()=>{me&&me.focus()},[me]),!G||ct(G))return null;const N=R=>{R.preventDefault(),R.stopImmediatePropagation(),R.currentTarget&&ye(R.currentTarget)},{cookieInformationLabels:Re,general:De,serviceLabels:Pe}=(k===Rs.TCF&&at(G),{cookieInformationLabels:G.cookieInformation,general:G.general,serviceLabels:G.service});return ta(hw,null,oe&&ta(vw,null,ta(mw,{"aria-level":R},Pe.descriptionTitle),ta(bw,{keepLineBreaks:!0,noPadding:!0},oe)),(x.processingCompany?.name||x.processingCompany?.address)&&ta(vw,null,ta(mw,{"aria-level":R},Pe.processingCompanyTitle),ta(bw,{noPadding:!0},x.processingCompany.name,x.processingCompany.name&&ta("br",null),x.processingCompany.address)),Ee&&te&&ta(vw,null,ta(mw,{"aria-level":R},Pe.dataProtectionOfficer.title),ta(bw,null,Pe.dataProtectionOfficer.description),ta(fw,{target:"_blank",rel:"noopener",onFocus:N,href:Yd(te)?`mailto:${te}`:te,tabIndex:0},te)),ie.length>0&&""!==ie[0]&&ta(vw,null,ta(mw,{"aria-level":R},Pe.dataPurposes.title),ta(bw,null,Pe.dataPurposes.description),ta(Ew,null,ie.map(R=>ta(Cw,null,R)))),Ee&&he.length>0&&""!==he[0]&&ta(vw,null,ta(mw,{"aria-level":R},Pe.technologiesUsed.title),ta(bw,null,Pe.technologiesUsed.description),ta(Ew,null,he.map(R=>ta(Cw,null,R)))),W.length>0&&""!==W[0]&&ta(vw,null,ta(mw,{"aria-level":R},Pe.dataCollected.title),ta(bw,null,Pe.dataCollected.description),ta(Ew,null,W.map(R=>ta(Cw,null,R)))),Ee&&ue.length>0&&""!==ue[0]&&ta(vw,null,ta(mw,{"aria-level":R},Pe.legalBasis.title),ta(bw,null,Pe.legalBasis.description),ta(Ew,null,ue.map(R=>ta(Cw,null,R)))),Ee&&ee?.processingLocation&&ta(vw,null,ta(mw,{"aria-level":R},Pe.dataDistribution.processingLocationTitle),ta(bw,null,Pe.dataDistribution.processingLocationDescription),ta(pw,null,ta(dw,{showBulletPoints:!0},ta(bw,null,ee.processingLocation)))),Ee&&pe&&ta(vw,null,ta(mw,{"aria-level":R},Pe.retentionPeriod.title),ta(bw,null,Pe.retentionPeriod.description),ta(pw,null,ta(dw,{showBulletPoints:!0},ta(bw,null,pe)))),Ee&&ee?.thirdPartyCountries&&ee?.thirdPartyCountries?.length>0&&ta(vw,null,ta(mw,{"aria-level":R},Pe.dataDistribution.thirdPartyCountriesTitle),ta(bw,null,Pe.dataDistribution.thirdPartyCountriesDescription),ta(Ew,null,ee.thirdPartyCountries.map(R=>ta(Cw,null,R)))),re.length>0&&""!==re[0]&&ta(vw,null,ta(mw,{"aria-level":R},Pe.dataRecipients.title),ta(bw,null,Pe.dataRecipients.description),ta(Ew,null,re.map(R=>ta(Cw,null,R)))),Ee&&x.urls?.privacyPolicy&&ta(vw,null,ta(mw,{"aria-level":R},Pe.urls.privacyPolicyTitle),ta(fw,{onFocus:N,target:"_blank",rel:"noopener",href:x.urls.privacyPolicy},x.urls.privacyPolicy)),Ee&&x.urls?.cookiePolicy&&ta(vw,null,ta(mw,{"aria-level":R},Pe.urls.cookiePolicyTitle),ta(fw,{onFocus:N,target:"_blank",rel:"noopener","data-testid":"uc-settings-cookie-link",href:x.urls.cookiePolicy,tabIndex:0},x.urls.cookiePolicy)),Ee&&x.urls?.optOut&&ta(vw,null,ta(mw,{"aria-level":R},Pe.urls.optOutTitle),ta(fw,{onFocus:N,target:"_blank",rel:"noopener","data-testid":"uc-settings-output-link",href:x.urls.optOut,tabIndex:0},x.urls.optOut)),Ee&&ta(jO,{name:de,ariaLevel:R,cookieInformationLabels:Re,cookieMaxAgeSeconds:z,cookieRefresh:Y,deviceStorage:ae,deviceStorageDisclosureUrl:le,onToggleExpandable:P,isNonIabVendor:!0,usesCookies:ge,usesNonCookieAccess:fe}),Ee&&ve>0&&D?ta(aN,{fetchSubServices:ce,onOpenSubServiceDetail:D,onToggleExpandable:P,size:ve}):ta(gw,null),$.history.length>0&&ta(vw,null,ta(mw,{"aria-level":R,id:`${om(de)}-history-title-id`},Pe.history.title),Pe.history.description&&ta(bw,{id:`${om(de)}-history-description-id`},Pe.history.description),ta(Tw,t({role:"table","aria-labelledby":`${om(de)}-history-title-id`},Pe.history.description&&""!==Pe.history.description&&{"aria-describedby":`${om(de)}-history-description-id`}),ta(_w,{role:"row"},ta(Iw,{role:"columnheader"},De.decision),ta(Iw,{role:"columnheader"},De.date)),$.history.map(R=>{let D="";switch(R.type){case _s.EXPLICIT:D=R.status?De.consentGiven:De.consentNotGiven;break;case _s.IMPLICIT:D=R.status?De.implicitYes:De.implicitNo}return ta(Aw,{role:"row"},ta(ww,{role:"cell"},ta(Ow,null,R.status?ta(Pm,null):ta(Tm,null)),D),ta(ww,{role:"cell"},(R=>{let D=`${R.getDate()}`,P=`${R.getMonth()+1}`,x=`${R.getFullYear()}`,k=`${R.getHours()}`,G=`${R.getMinutes()}`;return D=lN(D),P=lN(P),x=lN(x),k=lN(k),G=lN(G),`${D}.${P}.${x}, ${k}:${G}`})(new Date(R.timestamp))))}))))});const uN=({subService:R,onCloseDetail:D})=>{const{uiVariant:P}=ev(),{labels:x}=Eg();if(!x||ct(x))return null;const k=(P===Rs.TCF&&at(x),x.general.back);return ta(Gw,null,ta(Xw,null,ta(Kw,{type:"button",onClick:D},ta(qw,{direction:"left"}),k)),ta(Ww,null,ta(Hw,null,ta(Qw,{role:"heading","aria-level":3},R.name)),ta(Jw,null,ta(WO,{ariaLevel:3,service:R}))))},JO=_d.div(["display:block;height:100%;position:relative;overflow-y:auto;",";scrollbar-width:thin;z-index:1;max-height:",";",";","{overflow:auto;min-height:",";}","{",";}::-webkit-scrollbar{width:8px;",";}::-webkit-scrollbar-thumb{",";-webkit-border-radius:1ex;}"],({theme:R})=>`scrollbar-color: ${R.ui.scroll.color} ${R.ui.scroll.background}`,({layerPlacement:R,isMobile:D,isHtmlDialog:P})=>P?"fit-content":R===Zd.SIDE||D?"initial":"65vh",({theme:R,useBackgroundColor:D})=>D?`background-color: ${R.ui.layer.backgroundColor}`:`background-color: ${R.ui.secondLayer.backgroundColor}`,ph.ie11,({minHeight:R})=>R?`${R}px`:"80px",ph.mobileLandscape||ph.mobilePortrait||ph.mobilePortraitXS,({useColor:R,theme:D})=>R&&`color: ${D.ui.text.color}`,({theme:R})=>`background: ${R.ui.scroll.background}`,({theme:R})=>`background: ${R.ui.scroll.color}`),pN=({children:R,layerPlacement:D,minHeight:P,useBackgroundColor:x=!1,useColor:k=!1,isHtmlDialog:G})=>{const H={current:null},{isDesktop:$}=ch(),z=da(R).map(R=>Hs(R)?Ia(R,{scrollerRef:H}):R);return ta(JO,{ref:H,"data-testid":Nd,layerPlacement:D,minHeight:P,useBackgroundColor:x,useColor:k,isMobile:!$,tabIndex:-1,isHtmlDialog:G},ta(US,{tabIndex:-1,useBackgroundColor:x},z))},XO=rl(({children:R,customActions:D,footer:P,header:x,layerSettings:k,useBackgroundColor:G=!1,setTrackingPixel:H,isHtmlDialog:$,thirdPartyVendors:z})=>{const{core:Y,labels:W,ui:ee,UC:te}=Eg(),{abTestVariant:ne,isAmpEnabled:ie,setIsInFullScreen:re,view:oe,firstLayerVariant:ae,uiVariant:le,setTabView:ce,setView:ue}=ev(),{isDesktop:de,isIE:pe,isMobile:he,isPortrait:ge,isLandscape:fe}=ch(),ve=za(null),{rules:me}=rm(jg.LAYER),{rules:ye}=rm(jg.SECOND_LAYER),{rules:Ee}=rm(jg.BANNER_CONTENT),{rules:Re}=rm(jg.BANNER_FOOTER_CONTENT),De=Ee?Ly(Ee,["border-top-left-radius","border-top-right-radius"]):{},Pe=Ee?Ly(Ee,["border-bottom-left-radius","border-bottom-right-radius"]):{},{rules:xe}=rm(jg.MESSAGE),ke=gv({targetKey:"Enter"}),{blockConsumeFocus:Ve,blockFocus:Ue,consumeNextFocus:Me,nextFocus:Fe,setNextFocus:Be}=cm(),{onCloseSubServiceDetail:Ye}=Ny(),{selectedSubService:We}=mh(),tt=za(null),ft="in-app-browser"===$d().type;let vt=me;const mt=za(null),[bt,{loading:yt}]=rv(te?.enterFullscreenAmp,te),wt=z?.thirdPartyVendorCount?.toString()||"0",Ot={ariaLabel:W.buttons.showSecondLayer,elRef:mt,label:wt,onClick:async()=>{yt||(ie&&(await bt(),re(!0)),Xd(oe,kd.MORE_INFORMATION_LINK,ne,te?.setTrackingPixel),ce(ep.CATEGORIES_PURPOSES??ep.SERVICES_VENDORS),await ue(Vd.SECOND_LAYER))}},Lt=le&&le===Rs.DEFAULT&&z?.showThirdPartyVendorCount,Q=R=>{if(!R)return R;const D=Lt?(R=>{if(!R)return R;const D="%THIRD_PARTY_COUNT%";if("string"!=typeof R||!R.includes(D))return R;const P=ta(Zy,{ariaLabel:Ot.ariaLabel,label:Ot.label,onClick:Ot.onClick,elRef:Ot.elRef,style:{margin:0}}),x=R.split(D),k=[];return x.forEach((R,D)=>{R&&k.push(R),D/i.test(D))return Oy(D);if(Array.isArray(D)){const R=[];return D.forEach(D=>{"string"==typeof D&&//i.test(D)?R.push(...Oy(D)):R.push(D)}),R}return D},Nt=Q(x.description),Rt=Q(x.shortDescriptionDesktop),Dt=Q(x.shortDescriptionMobile);if(oe===Vd.SECOND_LAYER&&(vt=ye),Ha(()=>{if(ke&&oe===Vd.FIRST_LAYER){let R=null;try{R=document.activeElement?.shadowRoot?.querySelector(":focus-visible")}catch(D){R=null}if(R){const D=R.getAttribute("data-testid");null!==D&&Be(D)}}},[ke]),Ha(()=>{const R=document.documentElement.clientHeight<=document.body.clientHeight?document.documentElement.clientHeight:document.body.clientHeight;(()=>{if(kh&&R>window.innerHeight&&!document.hidden&&he){const D=document.getElementById(Ad),P=D?.shadowRoot?.querySelector(`#${Ld}`)||null;null!==P&&(P.style.bottom=R-window.innerHeight+"px")}})()},[]),Ha(()=>{"string"!=typeof Fe?null===Fe?Ue||Fe||setTimeout(()=>{ve.current&&ve.current.focus({preventScroll:!0})},300):Me():Ve||Me()},[D,P.showSecondLayerButtonRef,Fe,oe]),Ha(()=>{if($&&ve.current&&"function"==typeof ve.current.showModal){const R=ve.current;R?.open||R?.showModal(),R?.addEventListener("keydown",R=>{"Escape"===R.key&&R.preventDefault()})}},[$]),!Y||!ee||!W||ct(W))return null;const Pt=ta(Ib,P.buttons),kt=ta(BO,{sidePosition:k.placeLinksInFooter}),Vt=[{ariaLabel:W.links.privacyPolicy.label?`${W.links.privacyPolicy.label}`:W.ariaLabels.privacyPolicyButton,label:W.links.privacyPolicy.label,type:kd.PRIVACY_POLICY_LINK,url:W.links.privacyPolicy.url},{ariaLabel:W.links.cookiePolicy.label?`${W.links.cookiePolicy.label}`:W.ariaLabels.cookiePolicyButton,label:W.links.cookiePolicy.label,type:kd.COOKIE_POLICY_LINK,url:W.links.cookiePolicy.url},{ariaLabel:W.links.imprint.label?`${W.links.imprint.label}`:W.ariaLabels.imprintButton,label:W.links.imprint.label,type:kd.IMPRINT_LINK,url:W.links.imprint.url}];oe===Vd.FIRST_LAYER&&W.integrationLinks&&Object.entries(W.integrationLinks).forEach(([,R])=>{Vt.push({label:R.label,type:kd.INTEGRATIONS_LINK,url:R.url})});const Ut=gt(ee)?null:ta(db,{links:[...Vt],withoutMargin:!0,setTrackingPixel:H},D&&D.map(R=>ta(Zy,{ariaLabel:R.ariaLabel,label:R.label,onClick:R.onClick,elRef:R.elRef}))),Ft=oe!==Vd.FIRST_LAYER||gt(ee)?"left":ee.logo.position,Bt=gt(ee)?null:ta(Bb,{view:oe,tabIndex:-1,firstLayerVariant:ae,"data-testid":"uc-header-wrapper"},ta(QA,{closeAriaLabel:W.ariaLabels.closeButton,fullScreenAriaLabel:W.ariaLabels.fullscreenButton,onClose:()=>{Ye(),x.closeOption?.onClose()},logo:i(i({},ee.logo),{},{position:Ft}),onFullScreen:x.functions.onFullScreenAmp,onLanguageChange:x.functions.onLanguageChange,showCloseButton:x.closeOption?.type===St.ICON||x.showCloseButton&&!We,showFullScreenButton:x.showFullScreenButton,showLanguage:x.showLanguageSelector&&Y.language.available.length>1,title:x.title,isHtmlDialog:$,mainElementRef:ve},ta(cw,{enableHTMLTextFormatting:x.enableHTMLTextFormatting,longDescription:Nt,maxDescriptionHeight:x.maxDescriptionHeight,shortDescriptionDesktop:Rt,shortDescriptionMobile:Dt,labelShowLess:x.labelShowLess,labelShowMore:x.labelShowMore,withFading:!0,setTrackingPixel:H}),x.showGlobalPrivacyControl&&ta($S,{"data-testid":"uc-global-privacy-control-message"},ta(jS,{style:i({},xe)},ta(wy,{fill:xe&&xe.color?xe.color:""})),ta(XS,{style:i({},xe)},W.general.gpcSignalHonored)),!k.placeLinksInFooter&&ta(ia,null,Ut))),Gt=ta(Mb,{showBorder:P.showBorderBeforeFooter},k.placeLinksInFooter?ta(kS,{style:i({},Re)},ta(VS,null,Ut,(de||fe)&&kt),Pt,he&&ge&&kt):ta(ia,null,Pt,kt)),Ht=ta(ia,null,ta(BS,{tabIndex:-1,"data-testid":"uc-container",style:i({},De),isHtmlDialog:$},ta(GS,{id:"uc-fading-wrapper",tabIndex:-1,isMobile:he,withFadingBottom:k.withFadingBottom,withFadingTop:k.withFadingTop,useBackgroundColor:G},lt(W)&&x.closeOption?.type===St.LINK&&x.closeOption?.onClose&&ta(Pb,{denyLinkText:W.buttons.cnilDeny,onDenyAllHandler:x.closeOption.onClose}),ta(pN,{minHeight:k.minVerticalScrollerHeight,useBackgroundColor:G,layerPlacement:k.layerPlacement,isHtmlDialog:$},Bt,R),We&&ta(Rw,{ref:tt,tabIndex:0},Bt,ta(uN,{subService:We,onCloseDetail:()=>{Ye()}})))),Gt),zt=k.isOverlayEnabled&&!ie,jt=Id.includes(Y.language.selected);switch(k.layerPlacement){case Zd.CENTER:return ta(bv,{id:"center-layer-focus-lock"},zt&&ta(kO,null),ta(RS,{clickThrough:!zt},ta(xS,{lang:Y.language.selected,role:"dialog","aria-modal":!0,"aria-labelledby":Rd,"aria-describedby":Dd,tabIndex:0,ref:ve,id:Ld,"data-testid":k.testId,isAmpEnabled:ie,showBorderBottom:k.showBorderBottom||!1,withInitialHeight:k.withInitialHeight||!1,style:i({},vt),dir:jt?"rtl":"ltr",isHtmlDialog:$,isInAppIos:ft},Ht)));case Zd.SIDE:return ta(bv,{id:"side-layer-focus-lock"},zt&&ta(kO,null),ta(ZS,{clickThrough:!zt,lang:Y.language.selected,role:"dialog","aria-modal":!0,"aria-labelledby":Rd,tabIndex:0,ref:ve,id:"uc-side-container","data-testid":k.testId,privacyButtonPosition:gt(ee)?ee.position:"",showBorderBottom:k.showBorderBottom||!1,side:k.side,style:i({},vt),dir:jt?"rtl":"ltr",isHtmlDialog:$},Ht));case Zd.TOP:case Zd.BOTTOM:return ta(bv,{id:"bottom-layer-focus-lock"},zt&&ta(kO,null),ta(NS,{isIE:pe,tabIndex:0,role:"dialog","aria-modal":!0,"aria-labelledby":Rd,clickThrough:!zt,ref:ve,showBorderBottom:k.showBorderBottom||!1,layerPlacement:k.layerPlacement,isAmpEnabled:ie,"data-testid":k.testId,style:i(i({},vt),Pe),dir:jt?"rtl":"ltr",isHtmlDialog:$},ta(wS,{isIE:pe,isSafari:kh,lang:Y.language.selected,"data-testid":"uc-banner-content",tabIndex:-1,showBorderBottom:k.showBorderBottom||!1,layerPlacement:k.layerPlacement,isAmpEnabled:ie,style:i({},Ee)},Ht)));default:return null}}),KO=_d.div(["background-color:",";border-bottom:1px solid ",";padding:",";top:-2px;z-index:2147483641;position:sticky;position:-webkit-sticky;width:100%;"],({theme:R})=>R.ui.layer.backgroundColor,({theme:R})=>R.ui.accentColor,({theme:R})=>`${R.spacing.base.xxs} ${R.spacing.base.xl} 0`),qO=_d.button(["background-color:",";border:none;border-bottom:",";color:",";cursor:pointer;font:inherit;font-size:",";font-weight:",";outline:none;padding:",";width:50%;","{padding-bottom:",";}&:focus-visible{outline-style:auto;outline-width:5px;}"],({theme:R})=>R.ui.layer.backgroundColor,({active:R,theme:D})=>R?` 2px solid ${D.ui.tabs.color}`:" none",({theme:R,active:D})=>D?R.ui.tabs.color:R.ui.text.color,({theme:R})=>R.typography.size.medium,({active:R})=>R?700:400,({theme:R})=>`${R.spacing.base.xs} 0`,ph.mobilePortrait,({theme:R})=>R.spacing.base.md),QO=_d.div(["display:",";flex:1 1 auto;outline:none;","{flex:1 1 auto;}"],({active:R})=>R?"flex":"none",ph.mobilePortrait),ZO=_d.div(["background-color:",";flex:1;"],({theme:R})=>R.ui.secondLayer.backgroundColor),eL=_d.div(["display:flex;flex:1 1 auto;flex-direction:column;min-height:100%;height:inherit;overflow:hidden;width:100%;padding-top:0px;"]),tL=_d.div(["color:",";font-size:",";font-weight:",";margin:",";"],({theme:R})=>R.ui.text.color,({theme:R})=>R.typography.size.medium,({theme:R})=>R.typography.weight.bold,({theme:R})=>`${R.spacing.base.sm} 0`),nL=_d.div(["color:",";margin-left:8px;display:inline;font-weight:500;"],({theme:R})=>R.ui.text.color),iL=_a({panelRefs:[],panels:null,registerPanel:()=>null,registerRef:()=>null,select:()=>null,selected:null});iL.displayName="TabsContext";const rL=rl(({children:R})=>{const{tabView:D,setTabView:P}=ev(),[x,k]=Ba(D),[G,H]=Ba([]),[$,z]=Ba(),[Y,W]=Ba([]),ee=Ya(()=>{z(document.activeElement?.shadowRoot?.querySelector(`[data-testid=${Nd}]`)),$&&($.scrollTop=0)},[$]);return Ha(()=>{x&&x===D||k(D)},[x,D]),ta(iL.Provider,{value:{panelRefs:Y,panels:G,registerPanel:R=>{H(D=>[...D,R])},registerRef:R=>{W(D=>[...D,R])},select:R=>{k(R),P(R),ee()},selected:x}},R)}),TN=()=>Wa(iL),IN=({ariaControls:R,ariaLabel:D,children:P,forPanel:x,testid:k,id:G})=>{const{panelRefs:H,panels:$,select:z,selected:Y,registerRef:W}=TN(),ee=Y===x,{rules:te}=rm(jg.TAB_BUTTON),{rules:ne}=rm(jg.TAB_BUTTON_ACTIVE),{blockConsumeFocus:ie}=cm(),{core:re}=Eg(),oe=za(null);Ha(()=>{if(H&&H.length>0&&ee&&$){const R=$.indexOf(x);ie||H[R].current?.focus()}},[Y]),Ha(()=>{null!==oe&&W(oe)},[]);const ae=Ya(R=>{if($&&H){const D=$.indexOf(x),P=D===$.length-1,k=0===D;"ArrowLeft"===R&&(P&&z($[D-1]),k&&z($[$.length-1])),"ArrowRight"===R&&(P&&z($[0]),k&&z($[D+1]))}},[x,H,$,z]);return ta(qO,{"aria-controls":R,tabIndex:ee?0:-1,ref:oe,onKeyDown:R=>ae(R.key),id:G,active:ee,"aria-selected":ee,"aria-label":D,"data-testid":k,type:"button",role:"tab",onClick:()=>{z(x)},style:i({},ee?ne:te),lang:re?.language.selected},P)},oL=al(({children:R,ariaLabel:D},P)=>{const{isDesktop:x}=ch(),{rules:k}=rm(jg.TAB_BUTTONS_CONTAINER);return ta(KO,{id:"uc-tab-list",isMobile:!x,ref:P,"data-aria-label":D,role:"tablist","aria-labelledby":Rd,style:i({},k)},R)}),AN=({children:R,id:D,testid:P,ariaLabelledBy:x})=>{const{registerPanel:k,selected:G}=TN(),{isMobile:H}=ch();return Ha(()=>{k(D)},[]),ta(QO,{id:P,active:G===D,"data-testid":P,role:"tabpanel",tabIndex:-1,"aria-labelledby":x},ta(eL,{withFadingTop:!H},R))},wN=({setTcfData:R,tcfData:D})=>{const P=Ya((P,x,k)=>{D?.purposes&&R(i(i({},D),{},{purposes:D.purposes.map(R=>R.id===k?i(i({},R),{},{consent:P,legitimateInterestConsent:x}):R)}))},[R,D]);return ja(()=>D?ib(D.purposes):[],[D]).map(R=>{const D=R.consent||!1,x=null==R.legitimateInterestConsent||R.legitimateInterestConsent;return{checked:D,legitimateInterestChecked:x,onPurposeConsentToggle:()=>{P(!D,x,R.id)},onPurposeLegitimateInterestToggle:()=>{P(D,!x,R.id)},purpose:R}})},ON=({setTcfData:R,tcfData:D})=>{const P=Ya((P,x)=>{D&&R(i(i({},D),{},{specialFeatures:D.specialFeatures.map(R=>R.id===x?i(i({},R),{},{consent:P}):R)}))},[R,D]);return ja(()=>D?.specialFeatures?ib(D.specialFeatures):[],[D]).map(R=>{const D=R.consent||!1;return{checked:D,onSpecialFeatureToggle:()=>{P(!D,R.id)},specialFeature:R}})},LN=({setTcfData:R,tcfData:D})=>{const P=Ya((P,x)=>{if(!D)return;const k=D.stacks.find(R=>R.id===x);k&&R(i(i({},D),{},{purposes:D.purposes.map(R=>k.purposeIds.includes(R.id)?i(i({},R),{},{consent:P}):R),specialFeatures:D.specialFeatures.map(R=>k.specialFeatureIds.includes(R.id)?i(i({},R),{},{consent:P}):R)}))},[R,D]),x=ja(()=>D?.stacks?ib(D.stacks):[],[D]);return D?x.map(R=>{const x=D.purposes.filter(D=>R.purposeIds.includes(D.id)),k=D.specialFeatures.filter(D=>R.specialFeatureIds.includes(D.id)),G=x.some(R=>R.consent)||k.some(R=>R.consent);return{checked:G,onStackConsentToggle:()=>{P(!G,R.id)},stack:R}}):[]},NN=(...R)=>R.reduce((R,D,P)=>{if(0===P)return[...R,{end:D,start:0}];const x=R[P-1];return[...R,{end:x.end+D,start:x.end}]},[]),RN=(R,D,P,x)=>{const k=D.length>0?D.length+R:0,G=P?P.length:0,H=x?x.length:0,$=0===k&&G>0?G+R:G;return[k,$,0===k&&0===$&&H>0?H+R:H]},DN=R=>i(i(i(i({},R.height?{height:R.height}:{}),R.width?{width:R.width}:{}),R.position?{position:R.position}:{}),R.top?{top:R.top}:{}),PN=({categories:R,setCategories:D})=>{const P=Ya(R=>!!R.isEssential||R.services.some(R=>R.consent.status),[]),x=Ya((P,x)=>{D(R.map(R=>R.slug===x?i(i({},R),{},{services:R.services.map(R=>{const D=R;return D.consent=i(i({},R.consent),{},{status:P}),D})}):R))},[R,D]),k=Ya(P=>{D(R.map(R=>R.services.find(R=>P.id===R.id)?i(i({},R),{},{services:R.services.map(R=>{if(R===P){const D=R;return D.consent=i(i({},R.consent),{},{status:!R.consent.status}),D}return R})}):R))},[R,D]);return R.map(R=>{const D=P(R),{slug:G}=R;return{category:R,checked:D,onCategoryToggle:()=>{x(!D,G)},onServiceToggle:k}})},sL=_d.div(["display:flex;justify-content:space-between;"]),aL=_d.div(["padding:",";","{padding:",";}"],({theme:R})=>`0 ${R.spacing.base.xl}`,ph.mobilePortrait,({theme:R})=>`0 ${R.spacing.mobile.xxxl}`),lL=_d.div(["font-size:",";padding-top:",";",";width:100%;","{",";padding-top:0;}"],({theme:R})=>R.typography.size.medium,({theme:R})=>R.spacing.base.xxs,({theme:R})=>Zp(R,Fd.PADDING_RIGHT,R.spacing.base.xxxxl),ph.mobilePortrait,({theme:R})=>Zp(R,Fd.PADDING_RIGHT,R.spacing.mobile.xxxl)),cL=_d.div(["align-items:center;border-bottom:1px solid ",";display:inline-flex;margin-bottom:",";padding-bottom:",";width:100%;","{margin-bottom:",";padding-bottom:",";}"],({theme:R})=>R.ui.accentColor,({theme:R})=>R.spacing.base.sm,({theme:R})=>R.spacing.base.sm,ph.mobilePortrait,({theme:R})=>R.spacing.mobile.xl,({theme:R})=>R.spacing.mobile.xl),uL=_d.div(["display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;+ div{margin-top:",";}"],({theme:R})=>R.spacing.base.sm),dL=_d.button(["align-self:center;background-color:",";border:none;display:flex;flex-direction:row;margin-left:auto;margin-right:",";outline:none;padding:0;text-decoration:none;&:hover{text-decoration:underline;}&:focus-visible{outline-style:auto;outline-width:5px;}"],({theme:R})=>R.ui.layer.backgroundColor,({theme:R})=>R.spacing.base.xs),pL=_d.div(["color:",";display:block;font-size:",";width:100%;white-space:normal;"],({theme:R})=>R.ui.text.color,({theme:R})=>R.typography.size.medium),hL=_d.div([""]),gL=_d.button(["background:transparent;border:0;display:inline-block;padding:0;&:hover{cursor:pointer;}"]),$N=({useLinkColor:R=!1,divider:D="arrow",size:P})=>{const{labels:x}=Eg();if(!x||ct(x))return null;const k=1===P?x.general.subservice:x.general.subservices;return ta(Zw,{useLinkColor:R,showBullet:"bullet"===D},P,ta(eO,null,k),"arrow"===D&&ta(tO,{color:"rgb(48, 48, 48)",direction:"right"}))};var fL=rl(({category:R,detailedCategoryToggleAriaLabel:D,onToggle:P,showServicesToggles:x,service:k})=>{const{uiVariant:G,isAmpEnabled:H,setScrollToIdTabViewCategoryPurpose:$,setScrollToSubServices:z}=ev(),{ui:Y}=Eg(),W=gv({targetKey:"Enter"}),{setNextFocus:ee,setBlockConsumeFocus:te}=cm(),ie=G===Rs.CCPA,re=G===Rs.TCF,oe=(dt(Y)||ht(Y)||pt(Y)?Y.secondLayer.dpsDisplayFormat:ne.ALL)===ne.ALL;Ha(()=>{if(W){let R=null;try{R=document.activeElement?.shadowRoot?.querySelector(":focus-visible")}catch(D){R=null}if(R){const D=`uc-info-icon-${om(k.name)}`;(R.getAttribute("data-testid")||"")===D&&(te(!0),ee(om(k.name)))}}},[W]);const m=async()=>{const D=window[Od];D&&await D.showSecondLayer(k.id),$(R.slug)};return ta(uL,null,ta(Hb,t({checked:k.consent.status,id:`${k.id}`,isDisabled:k.isEssential,hideToggle:!x||ie||H&&!re,label:ta(pL,null,k.name)},oe&&{labelExtraInfo:(()=>{const{subServicesLength:R}=k;return R>0?ta(hL,null,ta(gL,{onClick:R=>{R.stopPropagation(),(async()=>{await m(),setTimeout(()=>{z(!0)})})()}},ta($N,{useLinkColor:!0,size:k.subServicesLength}))):null})()},{labelActionComponent:ta(dL,{"data-testid":`uc-info-icon-${om(k.name)}`,onClick:m,title:D,"aria-label":D},ta(Cm,null)),onToggle:()=>{k.isEssential||P(k)},size:"small"})))});const vL=_d.div(["border-bottom:1px solid ",";margin:0;",""],({theme:R})=>R.ui.accentColor,({theme:R})=>R.uiVariant!==Rs.CCPA&&id` ${ph.mobilePortrait} { margin: 0; } `),mL=_d.div(["background-color:",";border:1px solid ",";border-radius:4px;display:flex;padding:2px;flex:initial;-ms-flex:1 0 auto;flex-direction:column;margin-bottom:",";max-width:100%;width:100%;",""],({theme:R})=>R.ui.layer.backgroundColor,({theme:R})=>R.ui.accentColor,({theme:R})=>R.spacing.base.sm,({theme:R})=>R.uiVariant!==Rs.CCPA&&id` ${ph.mobilePortrait} { padding: 0; } `),SL=_d.div(["display:flex;flex-direction:row;"," ",""],({hasToggle:R,hideToggles:D,theme:P})=>P.uiVariant!==Rs.CCPA&&id` ${ph.mobilePortrait} { align-items: center; display: ${((R,D)=>D?"inline-flex":R?"block":"flex")(R,D)}; } `,({disableExpanding:R})=>R&&id` button { cursor: default; } `),bL=_d.button(["",";background-color:transparent;border:none;color:",";display:flex;font-size:",";flex:1 1 40%;flex-direction:column;",";outline:none;padding:",";word-break:break-word;vertical-align:middle;&:focus-visible{outline-style:auto;outline-width:5px;}",""],({theme:R})=>Zp(R,Fd.TEXT_ALIGNMENT_LEFT),({theme:R})=>R.ui.text.color,({theme:R})=>R.typography.size.medium,({theme:R})=>Zp(R,Fd.MARGIN_RIGHT,R.spacing.base.xs),({theme:R})=>R.spacing.base.sm,({hasToggle:R,hideToggles:D,theme:P})=>P.uiVariant!==Rs.CCPA&&id` ${ph.mobilePortrait} { border-bottom: ${((R,D,P)=>D||!R?"none":`1px solid ${P}`)(R,D,P.ui.accentColor)}; border-top-left-radius: 4px; border-top-right-radius: 4px; margin: 0; padding: ${P.spacing.mobile.xl}; width: 100%; } `),yL=_d.div(["color:",";font-size:",";font-weight:",";margin-top:2px;",""],({theme:R})=>R.ui.text.color,({theme:R})=>R.typography.size.medium,({theme:R,useBoldTitle:D})=>D?R.typography.weight.bold:R.typography.weight.regular,({theme:R})=>R.uiVariant!==Rs.CCPA&&id` ${ph.mobilePortrait} { margin: 0; } `),EL=_d.div(["font-size:",";margin-top:",";"],({theme:R})=>R.typography.size.medium,({theme:R})=>R.spacing.base.xxs),CL=_d.div(["color:",";display:flex;margin-top:",";width:100%;"],({theme:R})=>R.ui.text.color,({theme:R})=>R.spacing.base.xxs),TL=_d.div(["align-items:center;display:flex;",";",""],({theme:R})=>Zp(R,Fd.PADDING_RIGHT,R.spacing.base.sm),({hideToggles:R,theme:D})=>D.uiVariant!==Rs.CCPA&&id` ${ph.mobilePortrait} { justify-content: space-between; height: ${R?"100%":"initial"}; ${Zp(D,Fd.MARGIN_LEFT,D.spacing.base.sm)}; } `),_L=_d.button(["align-items:center;background-color:transparent;border:none;display:flex;height:100%;justify-content:center;",";",";outline:none;padding:",";width:20px;&:focus-visible{outline-style:auto;outline-width:5px;}",""],({theme:R})=>Zp(R,Fd.MARGIN_LEFT,R.spacing.base.xs),({theme:R})=>Zp(R,Fd.MARGIN_RIGHT,R.spacing.base.xs),({theme:R})=>R.spacing.base.sm,({hasToggle:R,hideToggles:D,theme:P})=>P.uiVariant!==Rs.CCPA&&id` ${ph.mobilePortrait} { ${Zp(P,Fd.BORDER_RADIUS_BOTTOM_RIGHT,4)}; ${R?Zp(P,Fd.BORDER_LEFT,1,Bd.NONE,P.typography.color.tertiary):Zp(P,Fd.BORDER_LEFT,0,Bd.NONE)}; height: auto; // IE11 fix height: ${D?"100%":"initial"}; margin: 0; padding: 10px; width: auto; // IE11 fix width: initial; } ${ph.mobilePortraitXS} { ${Zp(P,Fd.BORDER_LEFT,0,Bd.NONE)}; } `),IL=_d.div(["align-items:center;display:flex;height:15px;justify-content:center;width:15px;margin-bottom:6px;",";"],({theme:R})=>R.uiVariant!==Rs.CCPA&&id` ${ph.mobilePortrait} { height: 24px; width: 24px; } `),tR=(R,D)=>`\n border: solid ${D||R.ui.text.color};\n padding: ${R.spacing.base.xxs};\n border-width: 0 1.5px 1.5px 0;\n height: 8px;\n width: 8px;\n`,AL=_d.i(["transform:translate(0,3.3px) rotate(-135deg);",""],({theme:R,ctrlIconColor:D})=>tR(R,D)),wL=_d.i(["transform:rotate(45deg);",""],({theme:R,ctrlIconColor:D})=>tR(R,D)),OL=_d.div(["display:flex;flex-direction:column;font-size:",";padding:",";flex:auto;flex-wrap:wrap;max-width:100%;max-height:100%;",""],({theme:R})=>R.typography.size.medium,({theme:R})=>R.spacing.base.sm,({theme:R})=>R.uiVariant!==Rs.CCPA&&id` ${ph.mobilePortrait} { padding: ${R.spacing.mobile.xl}; } `),LL=_d.div(["align-items:center;display:flex;flex-direction:row;font-size:",";","{",";flex:2;flex-wrap:wrap;> div{margin-top:",";}div:last-child{margin-bottom:",";}}"],({theme:R})=>R.typography.size.small,ph.mobilePortraitXS,({theme:R})=>Zp(R,Fd.BORDER_RIGHT,1,Bd.SOLID,R.ui.accentColor),({theme:R})=>R.spacing.mobile.lg,({theme:R})=>R.spacing.mobile.lg),sR=({children:R,reverseDirection:D=!1})=>ta(LL,null,D?R.reverse():R),NL=rl(({ariaLevel:R,children:D,description:P,disableExpanding:x=!1,label:k,onToggleExpandable:G,title:H,testid:$="uc-expandable-card",hideToggle:z=!1,toggles:Y,useBoldTitle:W=!0,isExpandedOnInit:ee=!1,toggleDescribedBy:te,ctrlCardStyles:ne,ctrlTitleStyles:ie,ctrlIconColor:re,dpsCount:oe})=>{const[ae,le]=Ba(ee),[ce,ue]=Ba(null),[de,pe]=Ba(!1),he=gv({targetKey:"Tab"}),ge=za(null),{isMobile:fe}=ch(),{uiVariant:ve,isAmpEnabled:me}=ev(),ye=za(null),{labels:Ee,UC:Re}=Eg(),{blockConsumeFocus:De,setBlockConsumeFocus:Pe}=cm(),{rules:xe}=rm(jg.CARD_TITLE),{rules:ke}=rm(jg.CARD_DESCRIPTION),Ve=ve===Rs.CCPA,Ue=ve===Rs.TCF,Me=Y&&Y.length>0,Fe=om(H),Be=Re?.getAddVendorCount()&&oe,Ye=Ya(()=>{const R=ye.current?.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"]), video');0===R?.length&&pe(!1)},[ye]),We=Ya(()=>{le(!ae),ue(!ae)},[ae]);return Ha(()=>{if(ee&&De){const R=ye.current?.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"]), video');R&&R?.length>0&&(R[0].focus(),Pe(!1),pe(!1)),R&&0===R?.length&&ge.current&&(ge.current.focus(),Pe(!1),pe(!1))}},[]),Ha(()=>{null!=ce&&G&&G()},[ce,ae,G]),Ha(()=>{De||(pe(ae),Ye())},[ae]),Ha(()=>{ae&&he&&pe(!1)},[he]),Ee?ta(mL,{"data-testid":$,style:i({},ne)},ta(SL,{hasToggle:Me,hideToggles:me&&!Ue,disableExpanding:x},ta(bL,t({ref:ge,"data-testid":Fe,"aria-labelledby":`${Fe}-id`,hasToggle:Me,hideToggles:me&&!Ue,onClick:()=>{x||We()},"aria-expanded":ae?"true":"false"},(P||te)&&{"aria-describedby":`${Fe}-description-id`}),ta(yL,{id:`${Fe}-id`,"data-testid":`${Fe}-id`,role:"heading","aria-level":R,useBoldTitle:W,style:i(i({},xe),ie)},H," ",Be&&`(${oe})`),P&&ta(EL,{id:`${Fe}-description-id`,style:i({},ke)},P),k&&ta(CL,null,k)),ta(TL,{hideToggles:me&&!Ue},Y&&ta(sR,{reverseDirection:fe},Y.map(R=>ta(Hb,{disableFocus:de,labelledBy:`${Fe}-id`,checked:null===R.checked?R.defaultChecked:R.checked,hideToggle:z||Ve||me&&!Ue,id:`toggle-${R.id}`,isDisabled:R.isDisabled,label:R.label,onToggle:R.onToggle}))),!x&&ta(_L,t({},de&&{tabIndex:-1},{"data-testid":`uc-expandable-button-${om(H.toLowerCase())}`,hasToggle:Me,hideToggles:me&&!Ue,onClick:()=>{We()},role:"button","aria-labelledby":`${Fe}-id`,"aria-expanded":ae?"true":"false"}),ta(IL,null,ta(ae?AL:wL,{ctrlIconColor:re}))))),ae&&ta(ia,null,ta(vL,{style:i({},ne)}),ta(OL,{ref:ye,"data-testid":"uc-expandable-content"},D))):null}),RL=rl(({categories:R,hasTopSpace:D=!1,id:P,hideDataProcessingServices:x=!1,index:k,scrollToId:G,getItemSize:H,setItemSize:$,showToggles:z,title:Y,showOnlyConsentToggle:W=!1,showServicesToggles:ee,titleAriaLevel:te})=>{const ne=za(null),{updateComponentSize:ie}=hv({getItemSize:H,index:k,itemRef:ne,setItemSize:$}),{labels:re,ui:oe}=Eg();if(!re||!oe||gt(oe)||ct(re))return null;if(D&&0===k)return ta(sL,{ref:ne},ta(qA,{custom:16}));if(null!=Y&&(!D&&0===P||D&&1===P))return ta(sL,{ref:ne},ta(tL,{role:"heading","aria-level":te},Y));let ae=P;D&&(ae-=1),null!=Y&&(ae-=1);const{category:le,checked:ce,onCategoryToggle:ue,onServiceToggle:de}=R[ae],pe=[];return z&&pe.push({checked:ce,id:le.slug,isDisabled:le.isEssential,onToggle:ue}),ta(sL,{ref:ne},W?ta(cL,{"data-testid":"uc-tcf-categories"},ta(lL,{role:"heading","aria-level":null!=Y?te+1:te,id:`uc-tcf-category-${om(le.label)}-id`},le.label),!le.isEssential&&!oe.firstLayer.hideToggles&&ta(Jb,{checked:ce,id:le.slug,onToggle:ue,labelledBy:`uc-tcf-category-${om(le.label)}-id`})):ta(NL,{ariaLevel:null!=Y?te+1:te,description:le.description,disableExpanding:x,onToggleExpandable:ie,isExpandedOnInit:G===le.slug,title:le.label,hideToggle:!1,toggles:pe,dpsCount:le.services.length},le.services.sort((R,D)=>R.name>D.name?1:-1).map(R=>ta(fL,{category:le,detailedCategoryToggleAriaLabel:`${re.ariaLabels.serviceInCategoryDetails}: ${R.name}`,onToggle:de,service:R,showServicesToggles:ee}))))}),DL=_d(mw)(["max-width:100%;padding-top:",";"],({theme:R})=>R.spacing.base.md),PL=_d.div(["max-width:100%;white-space:pre-line;"]),xL=rl(({ariaLevel:R=3,description:D,descriptionTitle:P,legalDescription:x="",illustrations:k=[],illustrationsTitle:G})=>{const H=jd(x);return ta(vw,null,P&&ta(DL,{role:"heading","aria-level":R},P),ta("div",null,D),x&&ta(ia,null,ta(qA,{custom:4}),ta(pw,{noPadding:!0},H&&"string"!=typeof H&&H.map(D=>ta(ia,null,ta(DL,{role:"heading","aria-level":R},D.title),D.bulletPoints.map(R=>ta(dw,{showBulletPoints:!0,addMargin:!0},R))))||ta(PL,null,x))),k.length>0&&ta(ia,null,ta(DL,{role:"heading","aria-level":R},G),ta(pw,{noPadding:!0},k.map(R=>ta(dw,{showBulletPoints:!0,addMargin:!0},R)))))}),kL=_d(mw)(["max-width:100%;"]),VL=_d.div(["color:",";font-size:",";width:100%;"],({theme:R})=>R.ui.text.color,({theme:R})=>R.typography.size.medium),UL=rl(({ariaLevel:R=3,numberOfVendors:D,vendorLabel:P="Vendors"})=>ta(VL,null,D>0&&ta(kL,{role:"heading","aria-level":R},P,": ",D))),ML=rl(({data:R,id:D,index:P,getItemSize:x,hideToggles:k,setItemSize:G,testid:H,view:$,title:z,useInlineToggle:Y=!1,useFromStackOnly:W=!1,titleAriaLevel:ee})=>{const te=za(null),{updateComponentSize:ne}=hv({getItemSize:x,index:P,itemRef:te,setItemSize:G}),{labels:ie,ui:re}=Eg();if(!(ie&&at(ie)&&re&&pt(re)))return null;const oe=null!=z?D-1:D;if(null!=z&&0===D)return ta(sL,{ref:te,tabIndex:-1},ta(tL,{tabIndex:-1,role:"heading","aria-level":ee},z));const ae=R[oe];if(!ae)return null;const S=(R,D,P,x,k)=>[{ariaLabel:R,checked:D,id:P,label:x,onToggle:k}];return ta(sL,{ref:te},(()=>{if(ae.stack&&pt(re)){const R=ae;return Y?ta(cL,{"data-testid":"uc-tcf-stacks"},ta(lL,{id:`${R.stack.name}-description-id`},R.stack.name),!k&&ta(Jb,{labelledBy:`${R.stack.name}-description-id`,checked:R.checked,id:R.stack.id,onToggle:R.onStackConsentToggle})):(k||S(`${R.stack.name} ${vg(z,"stack")} ${ie.ariaLabels.vendorConsentToggle}`,R.checked,`stackConsent${R.stack.id}`,"",R.onStackConsentToggle),ta(NL,{ariaLevel:ee+1,hideToggle:k,onToggleExpandable:ne,testid:H,title:R.stack.name,toggles:[],useBoldTitle:!W},ta(xL,{ariaLevel:ee+2,description:R.stack.description})))}if(ae.name){const R=ae;return Y?ta(cL,{"data-testid":"uc-tcf-special-purposes"},ta(lL,null,R.name)):ta(NL,{ariaLevel:ee+1,testid:H,hideToggle:k,title:R.name,onToggleExpandable:ne,useBoldTitle:!W},ta(xL,{ariaLevel:ee+2,description:R.description,legalDescription:W?"":R.descriptionLegal,illustrations:W?[]:R.illustrations,illustrationsTitle:ie.titles.examples}))}if(ae.purpose&&pt(re)){const R=ae;if(Y)return ta(cL,{"data-testid":"uc-tcf-purposes"},ta(lL,{id:om(`${R.purpose.name}-description-id`)},R.purpose.name),!k&&R.purpose.showConsentToggle&&ta(Jb,{labelledBy:`${R.purpose.name}-description-id`,checked:R.checked,id:R.purpose.id,onToggle:R.onPurposeConsentToggle}));let D=[];return!k&&R.purpose.showConsentToggle&&at(ie)&&(D=S(`${R.purpose.name} ${vg(z,"purposes")} ${ie.ariaLabels.vendorConsentToggle}`,R.checked,`purposeConsent${R.purpose.id}`,W?"":ie.toggles.consent,R.onPurposeConsentToggle)),!k&&R.purpose.showLegitimateInterestToggle&&!W&&at(ie)&&D.unshift({ariaLabel:`${R.purpose.name} ${vg(z,"purposes")} ${ie.ariaLabels.vendorLegIntToggle}`,checked:R.legitimateInterestChecked,id:`purposeLegitimateInterestConsent${R.purpose.id}`,label:ie.toggles.legitimateInterest,onToggle:R.onPurposeLegitimateInterestToggle}),ta(NL,{ariaLevel:ee+1,hideToggle:k,onToggleExpandable:ne,testid:H,title:R.purpose.name,toggles:D,useBoldTitle:!W},ta(xL,{ariaLevel:ee+2,description:R.purpose.description,legalDescription:W?"":R.purpose.descriptionLegal,illustrations:W?[]:R.purpose.illustrations,illustrationsTitle:ie.titles.examples}),$===Vd.SECOND_LAYER&&ta(UL,{ariaLevel:ee+2,numberOfVendors:R.purpose.numberOfVendors,vendorLabel:ie.secondLayer.vendorsTab}))}if(ae.specialFeature){const R=ae;if(Y)return ta(cL,{"data-testid":"uc-tcf-special-features"},ta(lL,{id:`${R.specialFeature.name}-description-id`},R.specialFeature.name),!k&&ta(Jb,{labelledBy:`${R.specialFeature.name}-description-id`,checked:R.checked,id:R.specialFeature.id,onToggle:R.onSpecialFeatureToggle}));let D=[];return k||(D=S(`${R.specialFeature.name} ${vg(z,"features")} ${ie.ariaLabels.vendorConsentToggle}`,R.checked,`specialFeature${R.specialFeature.id}`,R.checked?ie.toggles.specialFeaturesToggle.onLabel:ie.toggles.specialFeaturesToggle.offLabel,R.onSpecialFeatureToggle)),ta(NL,{ariaLevel:ee+1,hideToggle:k,onToggleExpandable:ne,testid:H,title:R.specialFeature.name,toggles:D,useBoldTitle:!W},ta(xL,{ariaLevel:ee+2,description:R.specialFeature.description,legalDescription:R.specialFeature.descriptionLegal,illustrations:R.specialFeature.illustrations,illustrationsTitle:ie.titles.examples}))}return null})())});class vR{constructor({itemCount:R,itemSizeGetter:D,estimatedItemSize:P}){e(this,"itemSizeGetter",void 0),e(this,"itemCount",void 0),e(this,"estimatedItemSize",void 0),e(this,"lastMeasuredIndex",void 0),e(this,"itemSizeAndPositionData",void 0),this.itemSizeGetter=D,this.itemCount=R,this.estimatedItemSize=P,this.itemSizeAndPositionData={},this.lastMeasuredIndex=-1}updateConfig({itemCount:R,itemSizeGetter:D,estimatedItemSize:P}){null!=R&&(this.itemCount=R),null!=P&&(this.estimatedItemSize=P),null!=D&&(this.itemSizeGetter=D)}getLastMeasuredIndex(){return this.lastMeasuredIndex}getSizeAndPositionForIndex(R){if(R<0||R>=this.itemCount)throw Error(`Requested index ${R} is outside of range 0..${this.itemCount}`);if(R>this.lastMeasuredIndex){const D=this.getSizeAndPositionOfLastMeasuredItem();let P=D.offset+D.size;for(let D=this.lastMeasuredIndex+1;D<=R;D++){const R=this.itemSizeGetter(D);if(null==R||isNaN(R))throw Error(`Invalid size returned for index ${D} of value ${R}`);this.itemSizeAndPositionData[D]={offset:P,size:R},P+=R}this.lastMeasuredIndex=R}return this.itemSizeAndPositionData[R]}getSizeAndPositionOfLastMeasuredItem(){return this.lastMeasuredIndex>=0?this.itemSizeAndPositionData[this.lastMeasuredIndex]:{offset:0,size:0}}getTotalSize(){const R=this.getSizeAndPositionOfLastMeasuredItem();return R.offset+R.size+(this.itemCount-this.lastMeasuredIndex-1)*this.estimatedItemSize}getUpdatedOffsetForIndex({align:R=Pg.START,containerSize:D,currentOffset:P,targetIndex:x,extraOffset:k=0}){if(D<=0)return 0;const G=this.getSizeAndPositionForIndex(x);let H=0;for(let R=x-1;R>=0;R--)H+=this.getSizeAndPositionForIndex(R).size;const $=k,z=$-D+G.size;let Y;switch(R){case Pg.END:Y=z;break;case Pg.CENTER:Y=$-(D-G.size)/2;break;case Pg.START:Y=$+H;break;default:Y=Math.max(z,Math.min($,P))}return Math.max(0,Y)}getVisibleRange({containerSize:R,offset:D,overscanCount:P}){if(0===this.getTotalSize())return{};const x=D+R;let k=this.findNearestItem(D);if(void 0===k)throw Error(`Invalid offset ${D} specified`);const G=this.getSizeAndPositionForIndex(k);D=G.offset+G.size;let H=k;for(;D=R?this.binarySearch({high:P,low:0,offset:R}):this.exponentialSearch({index:P,offset:R})}binarySearch({low:R,high:D,offset:P}){let x=0,k=0;for(;R<=D;){if(x=R+Math.floor((D-R)/2),k=this.getSizeAndPositionForIndex(x).offset,k===P)return x;kP&&(D=x-1)}return R>0?R-1:0}exponentialSearch({index:R,offset:D}){let P=1;for(;RD=>this.getSize(D,R)),e(this,"sizeAndPositionManager",new vR({estimatedItemSize:this.getEstimatedItemSize(),itemCount:this.props.itemCount,itemSizeGetter:this.itemSizeGetter(this.props.itemSize)})),e(this,"state",{offset:this.props.scrollOffset||null!=this.props.scrollToElement?.index&&this.getOffsetForIndex(this.props.scrollToElement.index)||0,scrollChangeReason:kg.REQUESTED}),e(this,"rootNode",null),e(this,"styleCache",{}),e(this,"handleScroll",R=>{const{onScroll:D}=this.props,P=this.getNodeOffset();!P||P<0||this.state.offset===P||R.target!==this.rootNode||(this.setState({offset:P,scrollChangeReason:kg.OBSERVED}),"function"==typeof D&&D(P,R))})}componentWillReceiveProps(R){const{estimatedItemSize:D,itemCount:P,itemSize:x,scrollOffset:k,scrollToAlignment:G,scrollToElement:H}=this.props,$=R.scrollToElement?.index!==H?.index||R.scrollToAlignment!==G,z=R.itemCount!==P||R.itemSize!==x||R.estimatedItemSize!==D;R.itemSize!==x&&this.sizeAndPositionManager.updateConfig({itemSizeGetter:this.itemSizeGetter(R.itemSize)}),R.itemCount===P&&R.estimatedItemSize===D||this.sizeAndPositionManager.updateConfig({estimatedItemSize:this.getEstimatedItemSize(R),itemCount:R.itemCount}),z&&this.recomputeSizes(),R.scrollOffset!==k?this.setState({offset:R.scrollOffset||0,scrollChangeReason:kg.REQUESTED}):"number"==typeof R.scrollToElement?.index&&($||z)&&this.setState({offset:this.getOffsetForIndex(R.scrollToElement.index,R.scrollToAlignment,R.itemCount),scrollChangeReason:kg.REQUESTED})}componentDidMount(){const{scrollOffset:R,scrollToElement:D,scrollerRef:P}=this.props;P&&P.current&&null==this.rootNode&&(this.rootNode=P.current,this.rootNode?.addEventListener("scroll",this.handleScroll,{passive:!0}),null!=R?this.scrollTo(R):null!=D?.index&&this.scrollTo(this.getOffsetForIndex(D.index)),(async()=>{await this.focusButtonInShadowRoot(D?.name)})())}componentDidUpdate(R,D){const{offset:P,scrollChangeReason:x}=this.state,{scrollOffset:k,scrollToElement:G,scrollerRef:H}=this.props;H&&H.current&&null==this.rootNode&&(this.rootNode=H.current,this.rootNode?.addEventListener("scroll",this.handleScroll,{passive:!0}),null!=k?this.scrollTo(k):null!=G?.index&&this.scrollTo(this.getOffsetForIndex(G.index))),D.offset!==P&&x===kg.REQUESTED&&this.scrollTo(P)}componentWillUnmount(){this.rootNode?.removeEventListener("scroll",this.handleScroll)}waitForShadowRoot(){return new Promise(R=>{const t=()=>{const D=document.activeElement?.shadowRoot;D?R(D):requestAnimationFrame(t)};t()})}async focusButtonInShadowRoot(R){if(!R)return;const D=`button[aria-labelledby="${om(R.trim())}-id"]`,P=await this.waitForShadowRoot(),i=()=>{const R=P.querySelector(D);return!!R&&(R.focus(),!0)};if(!i()){const R=new MutationObserver(()=>{i()&&R.disconnect()});R.observe(P,{childList:!0,subtree:!0})}}scrollTo(R){const{scrollDirection:D=xg.VERTICAL}=this.props;this.rootNode&&(D===xg.VERTICAL?setTimeout(()=>{this.rootNode&&(this.rootNode.scrollTop=R)}):this.rootNode.scrollLeft=R)}getOffsetForIndex(R,D=this.props.scrollToAlignment,P=this.props.itemCount){const x=document.getElementById(Ad),k=x?.shadowRoot?.querySelector(`[id="${Ld}"]`)||null,G=x?.shadowRoot?.querySelector('[data-testid="uc-header-wrapper"]')||null,H=this.sizeAndPositionManager.getUpdatedOffsetForIndex({align:D||Pg.START,containerSize:k?.clientHeight?k.clientHeight:Math.max(document.documentElement.clientHeight||0,window.innerHeight||0),currentOffset:this.state&&this.state.offset||0,extraOffset:G?.clientHeight||0,targetIndex:R});return(R<0||R>=P)&&(R=0),H}recomputeSizes(R=0){this.styleCache={},this.sizeAndPositionManager.resetItem(R)}render(){const R=this.props,{estimatedItemSize:D,height:P,itemCount:x,itemSize:k,onItemsRendered:G,onScroll:H,overscanCount:$=50,renderItem:z,scrollDirection:Y=xg.VERTICAL,scrollOffset:W,scrollToAlignment:ee,scrollToElement:te,stickyIndices:ne,style:ie,width:re,marginBottom:oe,scrollerRef:ae}=R,le=r(R,FL),{offset:ce}=this.state,ue=Y===xg.HORIZONTAL?re:P,{start:de,stop:pe}=this.sizeAndPositionManager.getVisibleRange({containerSize:ue?Number(ue):0,offset:ce,overscanCount:$}),he=[],ge=i(i({},GL),{},{[Vg[Y]]:this.sizeAndPositionManager.getTotalSize()});if(null!=ne&&0!==ne.length&&(ne.forEach(R=>he.push(z({index:R,style:this.getStyle(R,!0)}))),Y===xg.HORIZONTAL&&(ge.display="flex")),void 0!==de&&void 0!==pe){for(let R=de;R<=pe;R++)null!=ne&&ne.includes(R)||he.push(z({index:R,style:this.getStyle(R,!1)}));"function"==typeof G&&G({startIndex:de,stopIndex:pe})}return ta("div",t({ref:ae},le,{style:i(i(i({},BL),{},{marginBottom:oe},ie),{},{[Vg[Y]]:this.sizeAndPositionManager.getTotalSize(),width:re})}),ta("div",{style:ge},he))}getNodeOffset(){const{scrollDirection:R=xg.VERTICAL}=this.props;return this.rootNode?R===xg.VERTICAL?this.rootNode.scrollTop:this.rootNode.scrollLeft:null}getEstimatedItemSize(R=this.props){return R.estimatedItemSize||"number"==typeof R.itemSize&&R.itemSize||50}getSize(R,D){return"function"==typeof D?D(R):Array.isArray(D)?D[R]:D}getStyle(R,D){const P=this.styleCache[R];if(P)return P;const{scrollDirection:x=xg.VERTICAL}=this.props,{size:k,offset:G}=this.sizeAndPositionManager.getSizeAndPositionForIndex(R);return this.styleCache[R]=D?i(i({},$L),{},{[Vg[x]]:k,[Mg[x]]:G,[Fg[x]]:-(G+k),zIndex:1}):i(i({},HL),{},{[Vg[x]]:k,[Ug[x]]:G})}}e(CR,"defaultProps",{overscanCount:50,scrollDirection:xg.VERTICAL,width:"100%"});const zL=["estimatedItemSize","isVisible","overscanCount","scrollDirection","scrollToElement","stickyRef"];var jL=rl(al((R,D)=>{let{estimatedItemSize:P=50,isVisible:x,overscanCount:k=50,scrollDirection:G=xg.VERTICAL,scrollToElement:H,stickyRef:$}=R,z=r(R,zL);const[Y,W]=Ba(300),{isDesktop:ee}=ch(),te={current:null};return $a(()=>{if(x&&te.current){const{offsetHeight:R}=te.current;if(R<50)return;R!==Y&&W(R)}},[x,Y,te]),ta(sL,{ref:te},x&&ta(CR,t({scrollerRef:D,stickyRef:$,virtualListRef:te,estimatedItemSize:P,height:Y,overscanCount:k,scrollDirection:G,scrollToElement:H,isDesktop:ee},z)))}));const YL=al(({categoriesTitle:R,featuresTitle:D,hideNonIabPurposes:P=!1,hideToggles:x,isVisible:k,purposesTitle:G,specialFeaturesTitle:H,specialPurposesTitle:$,useInlineToggle:z=!1,useFromStackOnly:Y=!1,stickyRef:W,titleAriaLevel:ee},te)=>{const{tcfData:ne,setTcfData:ie}=Xf(),{clearCategoryPurposeScrollToId:re,scrollToIdTabViewCategoryPurpose:oe,view:ae}=ev();let le,ce,ue=[],de=[],pe=[],he=[];const ge=bd();Ha(()=>{k&&re()},[k]),Y?(le=wN({setTcfData:ie,tcfData:ne}).filter(R=>!R.purpose.isPartOfASelectedStack),ce=ON({setTcfData:ie,tcfData:ne}).filter(R=>!R.specialFeature.isPartOfASelectedStack),ue=LN({setTcfData:ie,tcfData:ne}).filter(R=>R.stack.purposeIds.length>0),de=LN({setTcfData:ie,tcfData:ne}).filter(R=>0===R.stack.purposeIds.length&&R.stack.specialFeatureIds.length>0)):(le=wN({setTcfData:ie,tcfData:ne}),he=ne?.specialPurposes||[],pe=ne?.features||[],ce=ON({setTcfData:ie,tcfData:ne}));const fe=PN(mh()),{ui:ve}=Eg(),[me,ye]=RN(1,le,ue),[Ee]=RN(1,he),[Re]=RN(1,pe),[De,Pe]=RN(1,ce,de),xe=fe.length>0?fe.length+1:0,ke=me+Ee+ye,Ve=Re+De+Pe,Ue=P?0:xe,Me=ke+Ve+Ue,{setItemSize:Fe,getItemSize:Be}=pv(Me,50);if(!pt(ve))return null;const Ye=ae!==Vd.FIRST_LAYER&&oe;return 0!==ke||0!==Ve||!P&&0!==Ue?ta(jL,t({"data-testid":"uc-virtual-list",ref:te,stickyRef:W,estimatedItemSize:50,isVisible:k,itemCount:Me,itemSize:Be,marginBottom:ge.spacing.base.lg},Ye&&{scrollToElement:(()=>{const R=oe;if(Number(R)){const D=Number(R);let P=le.findIndex(R=>R.purpose.id===D);if(P>=0)return{index:P+1,name:le[P].purpose.name};if(P=he.findIndex(R=>R.id===D),P>=0)return{index:P+me,name:he[P].name};if(P=pe.findIndex(R=>R.id===D),P>=0)return{index:P+1+ke,name:pe[P].name};if(P=ce.findIndex(R=>R.specialFeature.id===D),P>=0)return{index:P+Re+ke,name:ce[P].specialFeature.name}}else if(R){const D=fe.findIndex(D=>D.category.slug===R);if(D>=0)return{index:D+ke+Ve+1,name:fe[D].category.label}}return{index:-1}})()},{renderItem:({index:k,style:W})=>ta(aL,{"data-testid":`uc-virtual-list-item-${k}`,key:k,style:DN(W)},(k=>{const[W,te,ne,ie,re,ge,ve]=NN(me,ye,Ee,Re,De,Pe,P?0:xe),ke=Re>0||De>0||Pe>0;if(me>0||Ee>0||ye>0){if(me>0&&k0&&k>=ne.start&&k0&&k>=te.start&&k0?{}:{title:G}))}if(ke){if(Re>0&&k>=ie.start&&k0&&k>=re.start&&k0&&k>=ge.start&&k0?{}:{title:H}))}return!P&&xe>0&&k>=ve.start&&kta(WL,{titleAriaLevel:2,ref:{current:null},categoriesTitle:R,featuresTitle:D,hideNonIabPurposes:P,hideToggles:x,isVisible:k,purposesTitle:G,specialFeaturesTitle:H,specialPurposesTitle:$,useInlineToggle:z,useFromStackOnly:Y}),XL=_d.div(["display:flex;flex-direction:row;flex-wrap:wrap;width:100%;padding:0;margin:0;"]),KL=_d.button(["align-items:center;border:solid "," 1px;border-radius:4px;color:",";display:flex;font-size:",";min-height:32px;",";margin-bottom:",";max-width:100%;padding:",";","{",";margin-bottom:",";}"],({theme:R})=>R.ui.accentColor,({theme:R})=>R.ui.text.color,({theme:R})=>R.typography.size.medium,({theme:R})=>Zp(R,Fd.MARGIN_RIGHT,R.spacing.base.xs),({theme:R})=>R.spacing.base.xs,({theme:R})=>R.spacing.base.xs,ph.mobilePortrait,({theme:R})=>Zp(R,Fd.MARGIN_RIGHT,R.spacing.mobile.xl),({theme:R})=>R.spacing.base.sm),qL=_d(XL)(["padding:",";","{font-size:",";padding:",";}"],({theme:R})=>`${R.spacing.base.xl} ${R.spacing.base.xl} 0`,ph.mobilePortraitXS,({theme:R})=>R.typography.size.small,({theme:R})=>`${R.spacing.base.md} ${R.spacing.base.md} 0`),QL=_d(KL)(["border:solid 1px ",";border-radius:16px;padding:6px 12px;",";",";",";font-weight:",";","{flex-wrap:nowrap;max-width:calc(60vw);overflow-y:auto;white-space:nowrap;}"],({theme:R})=>R.ui.text.color,({theme:R})=>Zp(R,Fd.MARGIN_RIGHT,R.spacing.base.sm),({active:R})=>!R&&"cursor: pointer;opacity: 0.7;",({theme:R,active:D})=>D&&`outline: 1px solid ${R.ui.text.color};`,({active:R})=>R?700:400,ph.mobilePortraitXS),ZL=rl(({ariaControls:R,labels:D,filterByThirdCountry:P,setFilterByThirdCountry:x})=>{const{rules:k}=rm(jg.THIRD_COUNTRY_FILTER),G=k?Ly(k,["border-color"]):{},[H]=Object.values(G);return ta(qL,{role:"radiogroup","aria-label":"Filters","aria-controls":R},ta(QL,{style:i(i({},k),G&&{outlineColor:H}),active:!P,role:"radio",name:D.all,"aria-checked":!P,onClick:()=>x(!1),"data-testid":"service-filter-all"},D.all),ta(QL,{active:!!P,role:"radio",name:"labels.thirdCountry","aria-checked":!!P,onClick:()=>x(!0),"data-testid":"service-filter-thirdcountry",style:i(i({},k),G&&{outlineColor:H})},D.thirdCountry))}),PR=({categories:R,services:D,setCategories:P})=>{const x=ja(()=>D.sort((R,D)=>R.isEssential&&D.isEssential?R.name.toLowerCase()>D.name.toLowerCase()?1:-1:R.isEssential&&!D.isEssential?-1:!R.isEssential&&D.isEssential||R.name.toLowerCase()>D.name.toLowerCase()?1:-1),[D]),k=Ya((D,x)=>{P(R.reduce((R,P)=>[...R,i(i({},P),{},{services:P.services.map(R=>{if(R.id===x){const P=R;return P.consent=i(i({},P.consent),{},{status:D}),P}return R})})],[]))},[R,P]);return{categories:R,onServiceToggle:k,services:x,setCategories:P}},nN=rl(({getItemSize:R,setItemSize:D,title:P,titleAriaLevel:x,id:k,index:G,vendors:H,hideToggle:$,onToggleConsent:z,totalVendorCount:Y})=>{const W=za(null),{labels:ee}=Eg(),{updateComponentSize:te}=hv({getItemSize:R,index:G,itemRef:W,setItemSize:D});if(!ee||!at(ee))return null;if(P&&0===k)return ta(sL,{ref:W},ta(tL,{role:"heading","aria-level":x},P,Y&&ta(nL,null,"(",Y,")")));const ne=H&&H[k-1];if(!ne)return null;const ie=[{ariaLabel:`${ne.name}`,checked:ne.consent.status,id:"acm"+(k-1),onToggle:R=>{z(R,k-1)}}];return ta(sL,{ref:W},ta(NL,{ariaLevel:x+1,title:ne.name,hideToggle:$,toggles:!$&&ie,toggleDescribedBy:`${om(ne.name)}-description-id`,onToggleExpandable:te},ta(hw,null,ta(vw,null,ta(mw,null,ee.acmVendor.privacyPolicy),ta(fw,{target:"_blank",rel:"noopener",href:ne.privacyPolicyUrl,tabIndex:0},ne.privacyPolicyUrl)),ta(vw,null,ta(mw,null,ee.titles.purposes),ta(pw,null,ne.purposes.map(R=>ta(dw,{key:`${R.id}`,showBulletPoints:!0},R.name)))))))}),iN=rl(({itemCount:R,getItemSize:D,setItemSize:P,title:x,titleAriaLevel:k})=>{const G=za(null),{rules:H}=rm(jg.MAX_CMP_STORAGE_DURATION),{labels:$}=Eg(),{updateComponentSize:z}=hv({getItemSize:D,index:R-2,itemRef:G,setItemSize:P}),Y=H?Ly(H,["color"]):{},W=H?Ly(H,["background-color","border-color"]):{},[ee]=Object.values(Y);if(!$||!at($))return null;const te=ta(NL,{ariaLevel:k+1,title:x,hideToggle:!0,onToggleExpandable:z,ctrlCardStyles:W,ctrlTitleStyles:Y,ctrlIconColor:ee},ta("div",null,$.secondLayer.maxStorageDurationText));return ta(sL,{ref:G},te)}),oN=_d.button(["background:none;border:none;height:20px;padding:0;width:20px;display:flex;align-items:center;justify-content:end;"]),sN=_d.div(["border-radius:4px;display:flex;flex:initial;-ms-flex:1 0 auto;flex-direction:column;max-width:100%;width:100%;"]),cN=_d.div(["color:",";text-overflow:ellipsis;overflow:hidden;width:75%;"],({theme:R})=>R.ui.text.color),dN=_d.div(["display:flex;flex-direction:row;font-size:",";justify-content:space-between;align-items:center;"],({theme:R})=>R.typography.size.medium),hN=_d.label(["display:flex;color:",";font-size:",";justify-content:flex-end;margin-right:8px;flex:1;"],({theme:R})=>R.ui.text.color,({theme:R})=>R.typography.size.medium),gN=rl(({customIconColor:R,customColor:D})=>{const{data:P,labels:x,core:k}=Eg(),[G,H]=Ba(!1),{isIE:$}=ch();return Ha(()=>{let R;return G&&(R=setTimeout(()=>H(!1),3e3)),()=>{clearTimeout(R)}},[G,P?.controllerId]),P&&x&&!ct(x)?ta(sN,null,ta(dN,null,ta(cN,{"data-testid":"uc-controller-id",style:D},P.controllerId),G&&ta(hN,{htmlFor:"uc-controller-item-button","data-testid":"uc-controller-item-copy-text",style:D},x.general.copied),ta(oN,{"aria-label":x.ariaLabels.copyControllerId,"data-testid":"uc-controller-item-button",title:"Copy",onClick:()=>(()=>{const R=P?.controllerId?`${P.controllerId}:${k?.id}`:"";if($){const t=D=>{const P=D;P.clipboardData?.setData("text/plain",R),P.preventDefault(),document.removeEventListener("copy",t,!0)};document.addEventListener("copy",t,!0),document.execCommand("copy")}else navigator.clipboard.writeText(R);H(!0)})()},!G&&ta(Sm,{fill:R,"data-testid":"uc-controller-item-copy-icon"}),G&&ta(wy,{fill:R,"data-testid":"uc-controller-item-checkmark-icon"})))):null}),fN=rl(({itemCount:R,getItemSize:D,setItemSize:P,title:x,titleAriaLevel:k})=>{const G=za(null),{rules:H}=rm(jg.CONTROLLER_ID_CARD),{updateComponentSize:$}=hv({getItemSize:D,index:R-1,itemRef:G,setItemSize:P}),z=H?Ly(H,["color"]):{},Y=H?Ly(H,["background-color","border-color"]):{},[W]=Object.values(z);return ta(sL,{ref:G},ta(NL,{ariaLevel:k+1,title:x,hideToggle:!0,onToggleExpandable:$,ctrlCardStyles:Y,ctrlTitleStyles:z,ctrlIconColor:W},ta(gN,{customIconColor:W,customColor:z,"data-testid":"controller-id"})))}),vN=_d.div(["font-size:",";margin-right:",";margin-top:",";white-space:pre-wrap;"],({theme:R})=>R.typography.size.small,({theme:R})=>R.spacing.base.sm,({theme:R})=>R.spacing.base.xxs),mN=rl(({categories:R,hasTopSpace:D=!1,hideToggle:P=!1,id:x,index:k,onOpenSubServiceDetail:G,onToggleService:H,onToggleAllServices:$=()=>{},services:z,getItemSize:Y,setItemSize:W,title:ee,titleAriaLevel:te=2,showToggles:ie=!0,scrollToId:re,totalVendorCount:oe})=>{const ae=za(null),{updateComponentSize:le}=hv({getItemSize:Y,index:k,itemRef:ae,setItemSize:W}),{labels:ce,ui:ue}=Eg(),de=(dt(ue)||ht(ue)||pt(ue)?ue.secondLayer.dpsDisplayFormat:ne.ALL)===ne.ALL;if(!ce||!ue||gt(ue)||ct(ce))return null;const pe=at(ce)?ce.secondLayer.vendorsTab:ce.secondLayer.serviceTab;if(D&&0===k)return ta(sL,{ref:ae},ta(qA,{custom:16}));if(null!=ee&&""!==ee&&(!D&&0===x||D&&1===x)&&at(ce)&&pt(ue))return ta(sL,{ref:ae},ta(tL,{role:"heading","aria-level":te},ee,oe&&ta(nL,null,"(",oe,")")),ue.secondLayer.showToggleAllVendors&&ta(iO,{"data-testid":"uc-toggle-all-non-iab-vendors",onClick:$},ta(rO,null,ce.vendor.toggleAll)));let he=x;D&&(he-=1),null!=ee&&(he-=1);const ge=z[he],fe=[];return ie&&fe.push({ariaLabel:`${ge.name} ${pe} ${ce.ariaLabels.vendorConsentToggle}`,checked:ge.consent.status,id:ge.id,isDisabled:ge.isEssential,onToggle:R=>{H(R,ge.id)}}),ta(sL,{ref:ae},ta(NL,{ariaLevel:null!=ee?te+1:te,hideToggle:P,label:(D=>{const P=R.find(R=>R.slug===D);return ta(ia,null,P&&ta(vN,{id:`${om(ge.name)}-description-id`},P.label),de&&ge.subServicesLength>0&&ta($N,{divider:"bullet",size:ge.subServicesLength}))||""})(ge.categorySlug),onToggleExpandable:le,isExpandedOnInit:re===ge.id,title:ge.name,toggles:fe,toggleDescribedBy:`${om(ge.name)}-description-id`},ta(WO,{ariaLevel:null!=ee?te+2:te+1,service:ge,onOpenSubServiceDetail:G,onToggleExpandable:le})))}),SN=_d(mw)(["font-size:",";padding-top:",";"],({theme:R})=>R.typography.size.small,({theme:R})=>R.spacing.base.xs),bN=rl(({ariaLevel:R=3,vendor:D,labels:P,onToggleExpandable:x})=>{const{cookieInformation:k,secondLayer:G,vendor:H}=P,l=(D,P)=>P&&P.length?ta(vw,null,ta(SN,{role:"heading","aria-level":R},D),ta(pw,null,P.map(R=>ta(dw,{key:`${R.id}`,showBulletPoints:!0},R.name)))):null;let $=[];return D.dataRetention&&($=D.dataRetention.map(R=>i(i({},R),{},{name:`${R.name} ${H.dataRetentionUnit}`}))),ta(ia,null,l(H.purposes,D.purposes),l(H.legitimateInterest,D.legitimateInterestPurposes),l(H.specialPurposes,D.specialPurposes),l(H.features,D.features),l(H.specialFeatures,D.specialFeatures),l(H.dataCategories,D.dataCategories||[]),l(H.dataRetention,$||[]),D.showVendorOutsideEU&&G.dataSharedOutsideEU.text&&l(G.dataSharedOutsideEU.title,[{id:"dataSharedOutsideEU",name:G.dataSharedOutsideEU.text}]),D.policyUrl&&ta(vw,null,ta(SN,{role:"heading","aria-level":R},H.privacyPolicy),ta(fw,{href:D.policyUrl},D.policyUrl)),D.privacyUrl&&ta(vw,null,ta(SN,{role:"heading","aria-level":R},H.privacyPolicy),ta(fw,{href:D.privacyUrl},D.privacyUrl)),D.legitimateInterestClaimUrl&&ta(vw,null,ta(SN,{role:"heading","aria-level":R},H.legitimateInterestClaim),ta(fw,{href:D.legitimateInterestClaimUrl},D.legitimateInterestClaimUrl)),ta(jO,{ariaLevel:R,cookieInformationLabels:k,cookieMaxAgeSeconds:D.cookieMaxAgeSeconds,cookieRefresh:D.cookieRefresh,deviceStorage:D.deviceStorage,deviceStorageDisclosureUrl:D.deviceStorageDisclosureUrl,onToggleExpandable:x,usesCookies:D.usesCookies,usesNonCookieAccess:D.usesNonCookieAccess,isNonIabVendor:!1,name:D.name}))}),yN=rl(({id:R,index:D,scrollToId:P,getItemSize:x,hideToggles:k,setItemSize:G,title:H,titleAriaLevel:$=3,vendors:z,onToggleAll:Y,onToggleConsent:W,onToggleLegInterestConsent:ee,totalVendorCount:te})=>{const ne=za(null),{updateComponentSize:ie}=hv({getItemSize:x,index:D,itemRef:ne,setItemSize:G}),{labels:re,ui:oe}=Eg();if(!(re&&at(re)&&oe&&pt(oe)))return null;if(0===D)return ta(sL,{ref:ne},ta(tL,{role:"heading","aria-level":$},H,ta(nL,null,"(",te,")")),oe.secondLayer.showToggleAllVendors&&ta(iO,{"data-testid":"uc-toggle-all-iab-vendors",onClick:Y},ta(rO,null,re.vendor.toggleAll)));const ae=[],le=z[R-1];return!k&&le.showLegitimateInterestConsentToggle&&ae.push({ariaLabel:`${le.name} ${re.secondLayer.vendorsTab} ${re.ariaLabels.vendorLegIntToggle}`,checked:le.legitimateInterestConsent,defaultChecked:true,id:`legitimateInterestConsent${le.id}`,label:re.toggles.legitimateInterest,onToggle:()=>ee(le.id,null!==le.legitimateInterestConsent&&!le.legitimateInterestConsent)}),!k&&le.showConsentToggle&&ae.push({ariaLabel:`${le.name} ${re.secondLayer.vendorsTab} ${re.ariaLabels.vendorConsentToggle}`,checked:le.consent,defaultChecked:!1,id:`vendorConsent${le.id}`,label:re.toggles.consent,onToggle:()=>W(le.id,!le.consent)}),ta(sL,{ref:ne},ta(NL,{ariaLevel:$+1,hideToggle:k,isExpandedOnInit:le.id===P,onToggleExpandable:ie,testid:"uc-tcf-vendors-expandable",title:le.name,toggles:ae},ta(bN,{ariaLevel:$+2,vendor:le,labels:re,onToggleExpandable:ie})))}),EN=al(({controllerIdLabel:R,filterByThirdCountry:D,hideToggles:P,isVisible:x,serviceTitle:k,vendorTitle:G,acmTitle:H,stickyRef:$,titleAriaLevel:z,maxStorageDurationTitle:Y},W)=>{const{onCloseSubServiceDetail:ee,onOpenSubServiceDetail:te}=Ny(),{tcfData:ne,setTcfData:ie}=Xf(),re=bd(),{categories:oe,setCategories:ae,onServiceToggle:le}=PR(mh()),ce=ne?.vendors.length,ue=ob(oe).length,de=ne?.acmVendors.length,pe=ja(()=>{if(ne?.vendors){const R=rb(ne.vendors,"name");return D?R.filter(R=>R.showVendorOutsideEU):R}return[]},[D,ne]),he=ja(()=>{const R=ob(oe);return D?R.filter(R=>R.usesThirdCountry):R},[oe,D]),{clearServiceVendorScrollToId:ge,scrollToIdTabViewServiceVendors:fe}=ev(),ve=ja(()=>ne?.acmVendors&&!D?rb(ne.acmVendors,"name"):[],[D,ne]);Ha(()=>{x&&(ee(),ge())},[x]);const me=ja(()=>pe.some(R=>R.consent||R.legitimateInterestConsent||null===R.consent||null===R.legitimateInterestConsent),[pe]),ye=ja(()=>pe.every(R=>!R.consent&&!R.legitimateInterestConsent),[pe]),Ee=ja(()=>he.filter(R=>!R.isEssential).some(R=>R.consent.status),[he]),Re=ja(()=>he.filter(R=>!R.isEssential).every(R=>!R.consent.status),[he]),[De]=RN(1,pe),[Pe]=RN(1,he),[xe]=RN(1,ve),ke=De+Pe+xe+1+1,{getItemSize:Ve,setItemSize:Ue}=pv(ke,50),{ui:Me}=Eg(),[Fe,Be]=Ba(!1),[Ye,We]=Ba(!1),tt=Ya((R,D,P)=>{const x=pe.findIndex(D=>D.id===R);-1!==x&&ne&&ie(i(i({},ne),{},{vendors:[...pe.slice(0,x),i(i({},pe[x]),{},{consent:null===D?pe[x].consent:D,legitimateInterestConsent:null===P?pe[x].legitimateInterestConsent:P}),...pe.slice(x+1)]}))},[ne,ie,pe]),j=(R,D)=>{ne&&(ve[D].consent.status=R,ie(i(i({},ne),{},{acmVendors:ve})))},ft=Ya((R,D)=>{tt(R,D,null)},[tt]),vt=Ya((R,D)=>{tt(R,null,D)},[tt]),mt=Ya((R,D,P)=>!(R||!D&&P),[]),St=Ya(()=>{ne&&(ie(i(i({},ne),{},{vendors:pe.map(R=>i(i({},R),{},{consent:mt(me,ye,Fe),legitimateInterestConsent:mt(me,ye,Fe)}))})),Be(mt(me,ye,Fe)))},[ie,ne,pe,mt,me,ye,Fe]),bt=Ya(()=>{ae(oe.map(R=>i(i({},R),{},{services:R.services.map(R=>i(i({},R),{},{consent:i(i({},R.consent),{},{status:mt(Ee,Re,Ye)})}))}))),We(mt(Ee,Re,Ye))},[ae,oe,mt,Ee,Re,Ye]);return Me&&pt(Me)?ta(Lw,null,ta(Nw,null,ta(jL,t({"data-testid":"uc-virtual-list",ref:W,estimatedItemSize:50,isVisible:x,itemCount:ke,itemSize:Ve,stickyRef:$,marginBottom:re.spacing.base.lg},fe&&{scrollToElement:(()=>{const R=fe;if(Number(R)){const D=pe.findIndex(D=>D.id===Number(R));if(D>=0)return{index:D+1,name:pe[D].name}}if(R){const D=he.findIndex(D=>D.id===R);if(D>=0){const R=he[D];return{index:pe.length?D+pe.length+1+1:D+1,name:R.name}}}return{index:-1}})()},{renderItem:({index:D,style:x})=>ta(aL,{"data-testid":`uc-virtual-list-item-${D}`,key:D,style:DN(x)},(D=>{const[x,$,W]=NN(De,Pe,xe);return De>0&&D0&&D>=$.start&&D<$.end&&uh(he)?ta(mN,{titleAriaLevel:z,categories:oe,getItemSize:Ve,index:D,id:D-$.start,onOpenSubServiceDetail:te,onToggleService:le,onToggleAllServices:bt,setItemSize:Ue,services:he,showToggles:!P,hideToggle:P,title:k,scrollToId:fe,totalVendorCount:ue}):xe>0&&D>=W.start&&D{const{labels:P}=Eg(),{services:x}=PR(mh()),{tcfData:k}=Xf(),{selected:G,select:H}=TN(),[$,z]=Ba(!1),Y=ep.CATEGORIES_PURPOSES,W={current:null},{view:ee}=ev(),te=ee===Vd.SECOND_LAYER,{rules:ne}=rm(jg.TAB_CONTENT);return Ha(()=>{G||H(Y)},[]),at(P)?ta(ia,null,ta(oL,{ariaLabel:"SettingsTabs",ref:W},ta(IN,{ariaControls:"uc-panel-purposes",id:`${P.secondLayer.purposesTab}-id`,ariaLabel:P.secondLayer.purposesTab,forPanel:ep.CATEGORIES_PURPOSES,testid:"uc-tab-purposes"},P.secondLayer.purposesTab),ta(IN,{ariaControls:"uc-panel-vendors",id:`${P.secondLayer.vendorsTab}-id`,ariaLabel:P.secondLayer.vendorsTab,forPanel:ep.SERVICES_VENDORS,testid:"uc-tab-vendors"},P.secondLayer.vendorsTab)),ta(ZO,{style:te?i({},ne):{},"data-testid":"uc-tab-content-container"},ta(AN,{id:ep.CATEGORIES_PURPOSES,testid:"uc-panel-purposes",ariaLabelledBy:`${P.secondLayer.purposesTab}-id`},ta(WL,{titleAriaLevel:2,ref:D,stickyRef:W,categoriesTitle:P.titles.nonIabPurposes,featuresTitle:P.vendor.features,hideToggles:R,isVisible:G===ep.CATEGORIES_PURPOSES,purposesTitle:P.titles.purposes,specialFeaturesTitle:P.vendor.specialFeatures,specialPurposesTitle:P.vendor.specialPurposes,useInlineToggle:!1,useFromStackOnly:!1})),ta(AN,{id:ep.SERVICES_VENDORS,testid:"uc-panel-vendors",ariaLabelledBy:`${P.secondLayer.vendorsTab}-id`},(k?.vendors.some(R=>R.showVendorOutsideEU)||x.some(R=>R.usesThirdCountry))&&ta(ZL,{ariaControls:"uc-panel-vendors",labels:P.secondLayer.dataTransferFilter,filterByThirdCountry:$,setFilterByThirdCountry:z}),ta(CN,{titleAriaLevel:2,ref:D,stickyRef:W,hideToggles:R,controllerIdLabel:P.general.controllerId,filterByThirdCountry:$,isVisible:G===ep.SERVICES_VENDORS,vendorTitle:P.titles.iabVendors,serviceTitle:P.titles.nonIabVendors,acmTitle:P.titles.acmVendors,maxStorageDurationTitle:P.secondLayer.maxStorageDurationTitle})))):null});var xN=rl(({onCustomize:R,onFullScreenAmp:D,onLanguageChange:P,onShowVendorsHandler:x,onAcceptAll:k,onDenyAll:G,isAcceptDenyAllLoading:H,UC:$,isHtmlDialog:z})=>{const{core:Y,labels:W,ui:ee}=Eg(),{isIE:te}=ch(),{abTestVariant:ne,closeView:ie,isAmpEnabled:re,isInFullScreen:oe,previousView:ae,setIsInFullScreen:le,settingsCloseView:ce,setView:ue,view:de}=ev(),{categories:pe,getUpdatedCategories:he,setCategories:ge}=mh(),{tcfData:fe,setTcfData:ve}=Xf(),[me,{loading:ye}]=rv($.dismissAmp,$),[Re,{loading:De}]=rv($.saveTCFDataAmp,$),[Pe,{loading:xe}]=rv($.updateServices,$),[ke,{loading:Ve}]=rv($.updateChoicesForTCF,$),Ue=za(null);Ha(()=>{fe&&window.dispatchEvent(new Event("UC_UI_RENDER_DONE"))},[fe]),Ha(()=>{ve($.getTCFData())},[]),Ha(()=>{de!==Vd.FIRST_LAYER&&de!==Vd.SECOND_LAYER||ae!==Vd.PRIVACY_BUTTON&&ae!==Vd.NONE||($.setGppDisplayVisible(),$.setTCFUIAsOpen())},[$,ae,de]);const U=()=>{ye||me().then(()=>{le(!1),ie()})},M=async()=>{!re||ce!==Vd.NONE&&ce!==Vd.PRIVACY_BUTTON||me(),de!==Vd.FIRST_LAYER&&de!==Vd.SECOND_LAYER||ce!==Vd.NONE&&ce!==Vd.PRIVACY_BUTTON||($.setGppDisplayHidden(),$.setTCFUIAsClosed()),await ue(ce)};if(!at(W)||!pt(ee))return null;const Me=xe||Ve||ye||H,Fe=ta(xb,{disabled:Me,onClick:()=>{k().then(()=>{ie()})}}),Be=ta(Qb,{disabled:Me,onClick:()=>{G().then(()=>{ie()})}}),Ye=ta(qb,{disabled:Me,onClick:R}),We=ta(ty,{disabled:Me,onClick:async()=>{if(!Y||!fe||xe||Ve||ye||De)return;const R=fg(pe),D=(R=>({purposes:R.purposes.map(R=>({consent:R.consent||!1,id:R.id,legitimateInterestConsent:!!R.showLegitimateInterestToggle&&vg(R.legitimateInterestConsent,!0)})),specialFeatures:R.specialFeatures.map(R=>({consent:R.consent||!1,id:R.id})),vendors:R.vendors.map(R=>({consent:R.consent||!1,id:R.id,legitimateInterestConsent:R.specialPurposes.length&&0===R.legitimateInterestPurposes.length&&0===R.purposes.length||!!R.legitimateInterestPurposes.length&&vg(R.legitimateInterestConsent,!0)}))}))(fe),P=de===Vd.FIRST_LAYER?Ee.FIRST_LAYER:Ee.SECOND_LAYER;await ke(D,P),await Pe(R),re&&(await Re(R),await me()),Xd(de,kd.SAVE,ne,$.setTrackingPixel),ge(await he(de)),ve($.getTCFData()),ie()}}),tt=`${W.firstLayer.description.default}\n ${W.firstLayer.description.additionalInfo?W.firstLayer.description.additionalInfo:""}\n ${W.firstLayer.description.resurfaceNote?W.firstLayer.description.resurfaceNote:""}\n ${W.firstLayer.description.dataSharedOutsideEUText?`

${W.firstLayer.description.dataSharedOutsideEUText}

`:""}\n `,ft=i(i({AcceptAllButton:Fe},!ee.firstLayer.hideButtonDeny&&{DenyAllButton:Be}),!ee.firstLayer.hideCustomizationButton&&{SaveButton:ee.firstLayer.hideToggles?Ye:We}),vt=i(i({AcceptAllButton:Fe},!ee.secondLayer.hideButtonDeny&&{DenyAllButton:Be}),!ee.secondLayer.hideToggles&&{SaveButton:We});if(!fe)return null;switch(de){case Vd.FIRST_LAYER:return ta(XO,{customActions:[{ariaLabel:W.buttons.showVendorTab,elRef:Ue,label:W.buttons.showVendorTab,onClick:x},...ee.firstLayer.hideToggles?[]:[{ariaLabel:W.buttons.manageSettings,label:W.buttons.manageSettings,onClick:R}]],footer:{buttons:ft,showBorderBeforeFooter:!0},header:{closeOption:{onClose:U,type:null},description:tt,enableHTMLTextFormatting:!0,functions:{onFullScreenAmp:D,onLanguageChange:P},showCloseButton:!1,showFullScreenButton:re&&!oe,showLanguageSelector:!0,title:W.firstLayer.title},layerSettings:i(i({isOverlayEnabled:ee.firstLayer.isOverlayEnabled,layerPlacement:Zd.CENTER},te&&{minVerticalScrollerHeight:100}),{},{testId:"uc-tcf-first-layer",withFadingBottom:!1,withFadingTop:!1}),useBackgroundColor:!0,setTrackingPixel:$.setTrackingPixel,isHtmlDialog:z},ta(wR,{categoriesTitle:W.titles.nonIabPurposes,featuresTitle:W.vendor.features,hideNonIabPurposes:ee.firstLayer.hideNonIabPurposes,hideToggles:ee.firstLayer.hideToggles,isVisible:!0,purposesTitle:W.titles.purposes,specialFeaturesTitle:W.vendor.specialFeatures,specialPurposesTitle:W.vendor.specialPurposes,useInlineToggle:!ee.firstLayer.showDescriptions,useFromStackOnly:!0}));case Vd.SECOND_LAYER:return ta(rL,null,ta(XO,{footer:{buttons:vt,showBorderBeforeFooter:!0},header:{closeOption:{onClose:M,type:St.ICON},description:W.secondLayer.description,enableHTMLTextFormatting:!0,functions:{onLanguageChange:P},showCloseButton:!0,showLanguageSelector:!0,title:W.secondLayer.title},layerSettings:i(i({isOverlayEnabled:ee.secondLayer.isOverlayEnabled,layerPlacement:Zd.CENTER},te&&{minVerticalScrollerHeight:350}),{},{testId:"uc-tcf-second-layer",withFadingBottom:!0}),useBackgroundColor:!1,setTrackingPixel:$.setTrackingPixel,isHtmlDialog:z},ta(_N,{hideToggles:ee.secondLayer.hideToggles})));default:return null}}),kN=Object.freeze({__proto__:null,default:xN});const VN=al(({controllerIdLabel:R="",hideDataProcessingServices:D=!1,isVisible:P,showServicesToggles:x=!0,stickyRef:k},G)=>{const H=PN(mh()),$=D?1:0,z=H.length+1+$,{getItemSize:Y,setItemSize:W}=pv(z,50),{clearCategoryPurposeScrollToId:ee,scrollToIdTabViewCategoryPurpose:te,previousView:ne}=ev(),{ui:ie}=Eg(),re=bd();if(Ha(()=>{P&&ee()},[P]),!ie||gt(ie))return null;const oe=ne!==Vd.FIRST_LAYER&&te;return ta(jL,t({"data-testid":"uc-virtual-list",ref:G,estimatedItemSize:50,marginBottom:re.spacing.base.lg,isVisible:P,itemCount:z,itemSize:Y,stickyRef:k},oe&&{scrollToElement:(()=>{const R=te;if(R&&"string"==typeof R){const D=H.findIndex(D=>D.category.slug===R);if(D>=0)return{index:D+1,name:H[D].category.label}}return{index:-1}})()},{renderItem:({index:P,style:k})=>ta(aL,{key:P,style:DN(k)},$&&P===z-1?ta(fN,{titleAriaLevel:2,getItemSize:Y,itemCount:z,setItemSize:W,title:R}):ta(RL,t({titleAriaLevel:2,"data-testid":`uc-virtual-list-item-${P}`,categories:H,getItemSize:Y,hasTopSpace:!0,hideDataProcessingServices:D,index:P,id:P},oe&&{scrollToId:te},{setItemSize:W,showToggles:!pt(ie)||!ie.secondLayer.hideToggles,showServicesToggles:x}))),width:"100%"}))});var UN=rl(VN);const MN=al(({controllerIdLabel:R,filterByThirdCountry:D,isVisible:P,showServicesToggles:x=!0,title:k,stickyRef:G},H)=>{const{categories:$,onServiceToggle:z,services:Y}=PR(mh()),W=D?Y.filter(R=>R.usesThirdCountry):Y,ee=W.length+1+1,te=null==k?ee:ee+1,{getItemSize:ne,setItemSize:ie}=pv(te,50),{clearServiceVendorScrollToId:re,scrollToIdTabViewServiceVendors:oe}=ev(),{onCloseSubServiceDetail:ae,onOpenSubServiceDetail:le}=Ny(),ce=bd();return Ha(()=>{P&&(ae(),re())},[P]),ta(Lw,null,ta(Nw,null,ta(jL,t({"data-testid":"uc-virtual-list",ref:H,estimatedItemSize:50,isVisible:P,itemCount:te,itemSize:ne,marginBottom:ce.spacing.base.lg,stickyRef:G},oe&&{scrollToElement:(()=>{if(oe&&"string"==typeof oe){const R=W.findIndex(R=>R.id===oe);if(R>=0)return{index:R+1,name:W[R].name}}return{index:-1}})()},{renderItem:({index:D,style:P})=>ta(aL,{"data-testid":`uc-virtual-list-item-${D}`,key:D,style:DN(P)},(D=>D===te-1?ta(fN,{titleAriaLevel:2,getItemSize:ne,itemCount:te,setItemSize:ie,title:R}):uh(W)?ta(mN,t({titleAriaLevel:2,categories:$,hideToggle:!x,hasTopSpace:!0,index:D,id:D,onOpenSubServiceDetail:le,onToggleService:z,getItemSize:ne,setItemSize:ie,services:W,title:k},oe&&{scrollToId:oe})):null)(D)),width:"100%"}))))});var FN=rl(MN);const BN=rl(({scrollerRef:R})=>{const{services:D}=PR(mh()),{labels:P,ui:x}=Eg(),{selected:k,select:G}=TN(),[H,$]=Ba(!1),z=ep.CATEGORIES_PURPOSES,Y={current:null},{view:W}=ev(),ee=W===Vd.SECOND_LAYER,{rules:te}=rm(jg.TAB_CONTENT);Ha(()=>{k||G(z)},[]);const g=()=>!ht(x)||!x.secondLayer.hideTogglesForServices;if(P&&x&&ut(P)&&!at(P)&&!pt(x)&&!gt(x)){const{hideDataProcessingServices:G}=x.secondLayer;return G?ta(ZO,{style:ee?i({},te):{},"data-testid":"uc-tab-content-container"},ta(UN,{controllerIdLabel:P.general.controllerId,hideDataProcessingServices:G,ref:R,stickyRef:Y,isVisible:k===ep.CATEGORIES_PURPOSES,showServicesToggles:g()})):ta(ia,null,ta(oL,{ariaLabel:"SettingsTabs",ref:Y},ta(IN,{ariaControls:"uc-panel-categories",testid:"uc-tab-categories",forPanel:ep.CATEGORIES_PURPOSES,id:`${P.secondLayer.categoryTab}-id`,ariaLabel:`${P.secondLayer.categoryTab}`},P.secondLayer.categoryTab),ta(IN,{ariaControls:"uc-panel-services",testid:"uc-tab-services",forPanel:ep.SERVICES_VENDORS,ariaLabel:`${P.secondLayer.serviceTab}`,id:`${P.secondLayer.serviceTab}-id`},P.secondLayer.serviceTab)),ta(ZO,{style:ee?i({},te):{},"data-testid":"uc-tab-content-container"},ta(AN,{id:ep.CATEGORIES_PURPOSES,testid:"uc-panel-categories",ariaLabelledBy:`${P.secondLayer.categoryTab}-id`},ta(UN,{ref:R,stickyRef:Y,isVisible:k===ep.CATEGORIES_PURPOSES,showServicesToggles:g()})),ta(AN,{id:ep.SERVICES_VENDORS,testid:"uc-panel-services",ariaLabelledBy:`${P.secondLayer.serviceTab}-id`},P.secondLayer.dataTransferFilter&&D.some(R=>R.usesThirdCountry)&&ta(ZL,{ariaControls:"uc-panel-services",labels:P.secondLayer.dataTransferFilter,filterByThirdCountry:H,setFilterByThirdCountry:$}),ta(FN,{ref:R,stickyRef:Y,controllerIdLabel:P.general.controllerId,filterByThirdCountry:H,isVisible:k===ep.SERVICES_VENDORS,showServicesToggles:g()}))))}return null}),GN={firstLayerBanner:"uc-ccpa-banner",firstLayerWall:"uc-ccpa-wall",secondLayer:"uc-ccpa-settings"};var HN=rl(({onClose:R,onCustomize:D,onLanguageChange:P,setToggleCcpaChecked:x,toggleCcpaChecked:k,UC:G,isHtmlDialog:H})=>{const{abTestVariant:$,firstLayerVariant:z,secondLayerVariant:Y,view:W,previousView:ee}=ev(),{labels:te,ui:ne}=Eg(),{isIE:ie,isMobile:re}=ch(),[oe,{loading:ae}]=rv(G.saveOptOutForCcpa,G),{closeView:le}=ev(),[ce,ue]=Ba(!1),[de,pe]=Ba(!1);Ha(()=>{W!==Vd.FIRST_LAYER&&W!==Vd.SECOND_LAYER||ee!==Vd.PRIVACY_BUTTON&&ee!==Vd.NONE||G.setGppDisplayVisible(),window.dispatchEvent(new Event("UC_UI_RENDER_DONE"))},[G,ee,W]),Ha(()=>{dt(ne)&&x(G.getCcpaOptOutStatus())},[]);const he=Wd(W===Vd.SECOND_LAYER?Y:z,GN);if(!dt(ne))return null;const ge=ae,fe=ta(kb,{disabled:ge,onClick:()=>{de&&(oe(k),pe(!1)),le(),G.setGppDisplayHidden(),G.saveDefaultForCcpa()}}),ve=ta(Xb,{checked:k,disabled:ge,onToggle:async()=>{if(ae)return;Xd(W,k?kd.CCPA_TOGGLES_OFF:kd.CCPA_TOGGLES_ON,$,G.setTrackingPixel),x(!k),pe(!0),k||(oe(!k),pe(!1));let R=null;try{R=document.activeElement?.shadowRoot?.querySelector(":focus-visible")}catch(D){R=null}null!==R&&ue(!0)},focusOnMount:ce}),me=i({CcpaButton:fe},ne.buttons.optOutNotice.isHidden?{}:{CcpaToggle:ve}),ye=he.layerPlacement===Zd.BOTTOM||he.layerPlacement===Zd.TOP;if(!dt(ne)||!st(te))return null;const Ee=!!navigator.globalPrivacyControl&&G.getCcpaOptOutStatus()&&!G.getCcpaExplicitNoticeStatus();switch(W){case Vd.FIRST_LAYER:return ta(XO,{customActions:[{ariaLabel:te.ariaLabels.ccpaMoreInformation,label:te.buttons.showSecondLayer,onClick:D}],footer:{buttons:me},header:{description:te.firstLayer.description.default,enableHTMLTextFormatting:!0,functions:{onLanguageChange:P},labelShowLess:te.general.showLess,labelShowMore:te.general.showMore,shortDescriptionDesktop:ne.firstLayer.showShortDescriptionOnDesktop?te.firstLayer.description.shortDesktop:"",shortDescriptionMobile:ne.firstLayer.showShortDescriptionOnMobile?te.firstLayer.description.shortMobile:"",showGlobalPrivacyControl:Ee,showLanguageSelector:ne.firstLayer.isLanguageSelectorEnabled,title:te.firstLayer.title},layerSettings:i(i(i({isOverlayEnabled:ne.firstLayer.isOverlayEnabled},(ie||re)&&{minVerticalScrollerHeight:100}),he),{},{placeLinksInFooter:ye,showBorderBottom:!1,withInitialHeight:!0}),useBackgroundColor:!0,setTrackingPixel:G.setTrackingPixel,isHtmlDialog:H});case Vd.SECOND_LAYER:return ta(rL,null,ta(XO,{footer:{buttons:me,showBorderBeforeFooter:!0},header:{closeOption:{onClose:R,type:St.ICON},description:te.secondLayer.description,enableHTMLTextFormatting:!0,functions:{onLanguageChange:P},showCloseButton:!0,showGlobalPrivacyControl:Ee,showLanguageSelector:ne.secondLayer.isLanguageSelectorEnabled,title:te.secondLayer.title},layerSettings:i(i(i({isOverlayEnabled:ne.secondLayer.isOverlayEnabled},ie&&{minVerticalScrollerHeight:350}),he),{},{minVerticalScrollerHeight:320,placeLinksInFooter:ye,showBorderBottom:!1,side:ne.secondLayer.side,withFadingBottom:!0,withInitialHeight:!0}),useBackgroundColor:!1,setTrackingPixel:G.setTrackingPixel,isHtmlDialog:H},ta(BN,null)));default:return null}}),zN=Object.freeze({__proto__:null,default:HN});const jN={firstLayerBanner:"uc-default-banner",firstLayerWall:"uc-default-wall",secondLayer:"uc-default-settings"};var YN=rl(({onClose:R,onCustomize:D,onFullScreenAmp:P,onLanguageChange:x,onAcceptAll:k,onDenyAll:G,isAcceptDenyAllLoading:H,UC:$,isHtmlDialog:z})=>{const{core:Y,labels:ee,ui:te}=Eg(),{isIE:ne,isMobile:ie}=ch(),{categories:re,getUpdatedCategories:oe,setCategories:ae}=mh(),{abTestVariant:le,closeView:ce,firstLayerVariant:ue,isAmpEnabled:de,isInFullScreen:pe,secondLayerVariant:he,view:ge}=ev(),fe=Wd(ge===Vd.FIRST_LAYER?ue:he,jN),ve=bd(),[me,{loading:ye}]=rv($.dismissAmp,$),[Ee,{loading:Re}]=rv($.updateServices,$),De=za(null),Pe=za(null),[xe,ke]=Ba();if(Ha(()=>{window.dispatchEvent(new Event("UC_UI_RENDER_DONE"))}),Ha(()=>{!async function(){const R=await $.fetchIsUserInEU();ke(R)}()},[]),!ht(te)||!lt(ee))return null;const V=()=>{G().then(()=>{ce()})},Ve=Re||ye||H,Ue=$?.getAddVendorCount(),Me=$?.getThirdPartyCount(),Fe=ta(xb,{disabled:Ve,onClick:()=>{k().then(()=>{ce()})},isSecondLayerView:ge===Vd.SECOND_LAYER}),Be=ta(Qb,{disabled:Ve,onClick:V,isSecondLayerView:ge===Vd.SECOND_LAYER}),Ye=ta(ty,{disabled:Ve,onClick:()=>{Re||ye||!Y||Ee(fg(re)).then(async()=>{de&&await me(),Xd(ge,kd.SAVE,le,$.setTrackingPixel),ae(await oe(ge)),ce()})}}),We=ta(ey,{disabled:Ve,onClick:D,buttonRef:De}),tt=i(i(i({AcceptAllButton:Fe},!te.firstLayer.hideButtonDeny&&{DenyAllButton:Be}),te.firstLayer.isCategoryTogglesEnabled&&{SaveButton:Ye}),ve.ui.firstLayer.secondLayerTrigger===W.BUTTON&&{MoreButton:We});let ft={AcceptAllButton:Fe};ft=de?i(i({},ft),{},{DenyAllButton:Be}):te.secondLayer.hideButtonDeny?i(i({},ft),{},{SaveButton:Ye}):i(i({},ft),{},{DenyAllButton:Be,SaveButton:Ye});const vt=fe.layerPlacement===Zd.BOTTOM||fe.layerPlacement===Zd.TOP,mt=ve.ui.firstLayer.secondLayerTrigger===W.LINK?[{ariaLabel:ee.buttons.showSecondLayer,elRef:Pe,label:ee.buttons.showSecondLayer,onClick:D}]:[],J=()=>{switch(te.firstLayer.closeOption){case St.ICON:case St.LINK:return V();default:return null}},bt=!!navigator.globalPrivacyControl&&$.getGpcSignalHonoured()&&!xe&&"gpc"===$.getActionTypePerformed();switch(ge){case Vd.FIRST_LAYER:return ta(XO,{customActions:mt,footer:{buttons:tt,showSecondLayerButtonRef:De},header:i(i({},te.firstLayer.closeOption&&{closeOption:{onClose:J,type:te.firstLayer.closeOption||null}}),{},{description:ee.firstLayer.description.default,enableHTMLTextFormatting:!0,functions:{onFullScreenAmp:P,onLanguageChange:x},labelShowLess:ee.general.showLess,labelShowMore:ee.general.showMore,shortDescriptionDesktop:te.firstLayer.showShortDescriptionOnDesktop?ee.firstLayer.description.shortDesktop:"",shortDescriptionMobile:te.firstLayer.showShortDescriptionOnMobile?ee.firstLayer.description.shortMobile:"",showCloseButton:!(!te.firstLayer.closeOption||te.firstLayer.closeOption!==St.ICON),showFullScreenButton:de&&!pe,showGlobalPrivacyControl:bt,showLanguageSelector:te.firstLayer.isLanguageSelectorEnabled,title:ee.firstLayer.title}),layerSettings:i(i(i({isOverlayEnabled:te.firstLayer.isOverlayEnabled},(ne||ie)&&{minVerticalScrollerHeight:100}),fe),{},{placeLinksInFooter:vt,showBorderBottom:!1,withFadingBottom:!1,withInitialHeight:!0}),useBackgroundColor:!0,setTrackingPixel:$.setTrackingPixel,isHtmlDialog:z,thirdPartyVendors:{showThirdPartyVendorCount:Ue,thirdPartyVendorCount:Me}},te.firstLayer.isCategoryTogglesEnabled&&ta(MS,null,ta(FS,null,PN({categories:re,setCategories:ae}).map(R=>ta($b,t({},R,{showVendorCount:Ue}))))));case Vd.SECOND_LAYER:return ta(rL,null,ta(XO,{footer:{buttons:ft,showBorderBeforeFooter:!0},header:{closeOption:{onClose:R,type:St.ICON},description:ee.secondLayer.description,enableHTMLTextFormatting:!0,functions:{onFullScreenAmp:P,onLanguageChange:x},showCloseButton:de&&pe||!de,showFullScreenButton:de&&!pe,showLanguageSelector:te.secondLayer.isLanguageSelectorEnabled,title:ee.secondLayer.title},layerSettings:i(i(i({isOverlayEnabled:te.secondLayer.isOverlayEnabled},ne&&{minVerticalScrollerHeight:350}),fe),{},{placeLinksInFooter:vt,showBorderBottom:!1,side:te.secondLayer.side,withFadingBottom:!0}),useBackgroundColor:!1,setTrackingPixel:$.setTrackingPixel,isHtmlDialog:z},ta(BN,null)));default:return null}}),WN=Object.freeze({__proto__:null,default:YN}),JN=Object.freeze({__proto__:null,default:({subServicesReader:R,fetchSubServices:D,onOpenSubServiceDetail:P,onToggleExpandable:x})=>{const[k,G]=Ba(R.read()),{selectedSubService:H,setSelectedSubService:$}=mh(),{labels:z}=Eg(),{currentLanguage:Y}=ev();return Ha(()=>{k&&x&&x()},[k,x]),Ha(()=>{""!==Y&&D().then(R=>{G(R),H&&$(R.find(R=>R.id===H.id)||H)})},[Y]),!z||ct(z)?null:ta(ia,null,k.map((R,D)=>ta(xw,{showMarginBottom:k.length-1===D,key:R.id+(R.language?.selected||D)},ta(kw,null,R.name),ta(Uw,{onClick:D=>{D.stopPropagation(),P(R)}},ta(Mw,null,z.general.details),ta(Bw,{direction:"right"})))))}})}();