try { Object.defineProperty(window, '__pubtech_cmp_geoData', { value: Object.freeze({ regionCode: "DC" }), writable: false, configurable: false, enumerable: true }); } catch (error) { console.debug('Already defined __pubtech_cmp_geoData'); } window.__pub_tech_cmp_config = {"acStringRequired":false,"adaptiveFont":true,"advancedClose":true,"buttonBorderStyle":0,"buttonShadow":false,"buttonThickness":0,"closeButtonBorder":false,"closeButtonBorderColor":"#FFFFFF","closeButtonColor":"#D97706","closeButtonType":1,"closeText":"","contentAlign":0,"cookieWallMode":null,"cookieWallModeLoginLink":null,"cookieWallModeNoConsentRoutes":null,"cookieWallModeOptOutCookieName":null,"cookieWallModeSubscriptionLink":null,"customMessage":"","debug":false,"differentiateButtons":true,"disableLegitimateMirror":false,"disableProofOfConsent":false,"disableTracking":false,"expirationDaysForPartialConsents":null,"flatUIPosition":"top","footerAlign":2,"forceLimitedAdsAtLeast":false,"googleConsentModeDebug":false,"googleConsentModeMobileTcfFlag":false,"googleConsentModeWebTcfFlag":"true","isFlatUI":false,"isLegitimateInterestEnabled":false,"lockBodyScroll":true,"logoAlign":1,"logoUrl":"https://ilsoftware.it/app/themes/ilsoftware/assets/logo/sw_icon.svg","openButton":true,"openButtonCTAColor":"#000000","openButtonPosition":"bottom","openButtonSide":"left","permitLegitimateInterestOnlyForCriticalVendors":false,"policyUrl":"https://www.ilsoftware.it/privacy-policy-2/","popupWallModeEnabled":null,"popupWallModeMessage":"","popupWallModeRequireAcceptOfMandatoryCookies":null,"primaryColor":"#D97706","publisherCookieSubFolder":"fallback","publisherCookieVersion":null,"publisherCountryCode":"IT","purposesIdsThatMustBeEnabled":[],"skipBot":true,"slugMapping":null,"switchCloseBtnToRight":true,"titleAlign":1,"trackPageViews":false,"uiBorderStyle":0,"useCompactACStringAsCookie":false,"variantId":"681871d9aee92a9c78760ce3","websiteId":309,"websiteIdBySlug":{"ilsoftwareit":309},"websiteSlug":"ilsoftwareit"};try{var elementStyle = document.createElement('style');elementStyle.appendChild(document.createTextNode(":root{--pt-primary-color:\"#4663da\";--pt-secondary-color:\"#fff\";--pt-secondary-text-color:\"#4663da\";--pt-close-color:\"#4663da\";--pt-close-border-color:\"#4663da\";--pt-font:unset}.pt-huU,.pt-usW{text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;border:0;margin:0;padding:0}.pt-huU *,.pt-huU :before,.pt-huU :after,.pt-usW *,.pt-usW :before,.pt-usW :after{box-sizing:border-box}.pt-huU b,.pt-huU strong,.pt-usW b,.pt-usW strong{font-weight:bolder}.pt-huU button,.pt-huU input,.pt-huU optgroup,.pt-huU select,.pt-huU textarea,.pt-usW button,.pt-usW input,.pt-usW optgroup,.pt-usW select,.pt-usW textarea{font-family:inherit;font-size:100%;line-height:1.15}.pt-huU button,.pt-huU select,.pt-usW button,.pt-usW select{text-transform:none}.pt-huU button,.pt-huU [type=button],.pt-huU [type=reset],.pt-huU [type=submit],.pt-usW button,.pt-usW [type=button],.pt-usW [type=reset],.pt-usW [type=submit]{-webkit-appearance:button}.pt-huU ::-moz-focus-inner{border-style:none;padding:0}.pt-usW ::-moz-focus-inner{border-style:none;padding:0}.pt-huU :-moz-focusring{outline:1px dotted buttontext}.pt-usW :-moz-focusring{outline:1px dotted buttontext}.pt-huU :-moz-ui-invalid{box-shadow:none}.pt-usW :-moz-ui-invalid{box-shadow:none}.pt-huU ::-webkit-inner-spin-button{height:auto}.pt-huU ::-webkit-outer-spin-button{height:auto}.pt-usW ::-webkit-inner-spin-button{height:auto}.pt-usW ::-webkit-outer-spin-button{height:auto}.pt-huU [type=search],.pt-usW [type=search]{-webkit-appearance:textfield;outline-offset:-2px}.pt-huU ::-webkit-search-decoration{-webkit-appearance:none}.pt-usW ::-webkit-search-decoration{-webkit-appearance:none}.pt-huU ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.pt-usW ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.pt-huU blockquote,.pt-huU dl,.pt-huU dd,.pt-huU h1,.pt-huU h2,.pt-huU h3,.pt-huU h4,.pt-huU h5,.pt-huU h6,.pt-huU hr,.pt-huU figure,.pt-huU p,.pt-huU pre,.pt-usW blockquote,.pt-usW dl,.pt-usW dd,.pt-usW h1,.pt-usW h2,.pt-usW h3,.pt-usW h4,.pt-usW h5,.pt-usW h6,.pt-usW hr,.pt-usW figure,.pt-usW p,.pt-usW pre{max-width:100%;margin:0}.pt-huU button,.pt-usW button{background-color:transparent;background-image:none}.pt-huU fieldset,.pt-usW fieldset{margin:0;padding:0}.pt-huU html,.pt-usW html{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}.pt-huU body,.pt-usW body{font-family:inherit;line-height:inherit}.pt-huU *,.pt-huU :before,.pt-huU :after,.pt-usW *,.pt-usW :before,.pt-usW :after{box-sizing:border-box;border:0 solid}.pt-huU img,.pt-usW img{border-style:solid}.pt-huU button,.pt-huU [role=button],.pt-usW button,.pt-usW [role=button]{cursor:pointer}.pt-huU table,.pt-usW table{border-collapse:collapse}.pt-huU h1,.pt-huU h2,.pt-huU h3,.pt-huU h4,.pt-huU h5,.pt-huU h6,.pt-usW h1,.pt-usW h2,.pt-usW h3,.pt-usW h4,.pt-usW h5,.pt-usW h6{font-size:inherit;font-weight:inherit}.pt-huU a,.pt-usW a{color:inherit;text-decoration:inherit}.pt-huU img,.pt-huU svg,.pt-huU video,.pt-huU canvas,.pt-huU audio,.pt-huU iframe,.pt-huU embed,.pt-huU object,.pt-usW img,.pt-usW svg,.pt-usW video,.pt-usW canvas,.pt-usW audio,.pt-usW iframe,.pt-usW embed,.pt-usW object{vertical-align:middle;display:block}.pt-huU img,.pt-huU video,.pt-usW img,.pt-usW video{max-width:100%;height:auto}.pt-huU [hidden],.pt-usW [hidden]{display:none}.pt-huU *,.pt-huU :before,.pt-huU :after,.pt-usW *,.pt-usW :before,.pt-usW :after{--tw-border-opacity:1;border-color:rgba(229, 231, 235, var(--tw-border-opacity))}.pt-huU .pt-i8r,.pt-usW .pt-i8r{cursor:pointer;justify-content:flex-end;align-items:center;min-width:45px;display:flex;position:relative}.pt-huU .pt-i8r[aria-checked=true] .pt-hlk,.pt-usW .pt-i8r[aria-checked=true] .pt-hlk{transform:translate(85%)}.pt-huU .pt-i8r[aria-checked=true] .pt-MWk,.pt-usW .pt-i8r[aria-checked=true] .pt-MWk{background-color:#4663da;background-color:var(--pt-primary-color)}.pt-huU ::-webkit-scrollbar{width:5px}.pt-usW ::-webkit-scrollbar{width:5px}.pt-huU ::-webkit-scrollbar-track{background:#fff}.pt-usW ::-webkit-scrollbar-track{background:#fff}.pt-huU ::-webkit-scrollbar-thumb{background:var(--pt-primary-color)}.pt-usW ::-webkit-scrollbar-thumb{background:var(--pt-primary-color)}.pt-huU ::-webkit-scrollbar-thumb:hover{background:var(--pt-primary-color)}.pt-usW ::-webkit-scrollbar-thumb:hover{background:var(--pt-primary-color)}.pt-huU a,.pt-usW a{text-decoration:underline}.pt-huU .pt-7AM,.pt-usW .pt-7AM{position:relative}.pt-huU .pt-A5s,.pt-usW .pt-A5s{-webkit-text-size-adjust:100%}.pt-huU .pt-A5s.pt-IOy .pt-7AM,.pt-usW .pt-A5s.pt-IOy .pt-7AM{text-transform:uppercase!important}.pt-huU .pt-A5s:focus,.pt-usW .pt-A5s:focus{outline:2px solid #4663da;outline:2px solid var(--pt-primary-color)}@supports (container-type:scroll-state){.pt-huU .pt-A5s .pt-7dn .pt-xXb,.pt-usW .pt-A5s .pt-7dn .pt-xXb{container-type:scroll-state size;margin-bottom:2px}}.pt-huU .pt-A5s .pt-7dn .pt-xXb:after,.pt-huU .pt-A5s .pt-7dn .pt-xXb:before,.pt-usW .pt-A5s .pt-7dn .pt-xXb:after,.pt-usW .pt-A5s .pt-7dn .pt-xXb:before{content:\" \";width:100%;height:1px;display:block;position:sticky}.pt-huU .pt-A5s .pt-7dn .pt-xXb:after,.pt-usW .pt-A5s .pt-7dn .pt-xXb:after{box-shadow:0 -2px 7px #4663da;box-shadow:0px -2px 7px var(--pt-primary-color);bottom:-2px}@container scroll-state(not (scrollable:bottom)){.pt-huU .pt-A5s .pt-7dn .pt-xXb:after,.pt-usW .pt-A5s .pt-7dn .pt-xXb:after{box-shadow:unset}}@container scroll-state(scrollable:top){.pt-huU .pt-A5s .pt-7dn .pt-xXb:before,.pt-usW .pt-A5s .pt-7dn .pt-xXb:before{box-shadow:0 2px 7px #4663da;box-shadow:0px 2px 7px var(--pt-primary-color);top:0}}@supports not (container-type:scroll-state){.pt-huU .pt-A5s .pt-7dn .pt-xXb:after,.pt-usW .pt-A5s .pt-7dn .pt-xXb:after{box-shadow:unset}}.pt-huU .pt-A5s .pt-7dn,.pt-usW .pt-A5s .pt-7dn{height:100%;max-height:100%}.pt-huU .pt-A5s .pt-7dn .pt-xXb a,.pt-usW .pt-A5s .pt-7dn .pt-xXb a{color:var(--pt-primary-color)}.pt-huU .pt-A5s,.pt-usW .pt-A5s{height:100%;max-height:95%}@media (min-height:500px){.pt-huU .pt-A5s,.pt-usW .pt-A5s{max-height:500px}}.pt-huU .pt-A5s.pt-0ls:not(.pt-wdZ),.pt-usW .pt-A5s.pt-0ls:not(.pt-wdZ){height:100%;max-height:100%}@media (min-width:380px){.pt-huU .pt-A5s.pt-0ls:not(.pt-wdZ),.pt-usW .pt-A5s.pt-0ls:not(.pt-wdZ){max-height:100%}}@media (min-width:768px){.pt-huU .pt-A5s.pt-0ls:not(.pt-wdZ),.pt-usW .pt-A5s.pt-0ls:not(.pt-wdZ){height:90%;max-height:90%}}.pt-huU .pt-A5s.pt-0ls:not(.pt-wdZ) .pt-7dn .pt-xXb,.pt-huU .pt-A5s.pt-0ls:not(.pt-wdZ) .pt-7dn.pt-Xye>.pt-xXb,.pt-usW .pt-A5s.pt-0ls:not(.pt-wdZ) .pt-7dn .pt-xXb,.pt-usW .pt-A5s.pt-0ls:not(.pt-wdZ) .pt-7dn.pt-Xye>.pt-xXb{max-height:100%}.pt-huU .pt-5eI,.pt-usW .pt-5eI{background:#fff;width:16px;height:2px;display:none;position:absolute;top:calc(50% - 1px);right:10%}@media (min-width:380px){.pt-huU .pt-5eI,.pt-usW .pt-5eI{display:block}}.pt-huU .pt-5eI:after,.pt-usW .pt-5eI:after{content:\"\";border-top:2px solid #fff;border-right:2px solid #fff;width:8px;height:8px;position:absolute;top:-3px;right:0;transform:rotate(45deg)}.pt-huU .pt-0so,.pt-usW .pt-0so{display:none}@media (min-width:380px){.pt-huU .pt-0so,.pt-usW .pt-0so{display:inline-block}}.pt-huU .pt-0so,.pt-usW .pt-0so{background:#fff;border-radius:30px;width:22px;height:22px;position:absolute;top:calc(50% - 11px);right:6%;transform:rotate(45deg)}.pt-huU .pt-0so .pt-bbW,.pt-usW .pt-0so .pt-bbW{background-color:#4663da;background-color:var(--pt-primary-color);width:3px;height:9px;position:absolute;top:6px;left:11px}.pt-huU .pt-0so .pt-XHn,.pt-usW .pt-0so .pt-XHn{background-color:#4663da;background-color:var(--pt-primary-color);width:6px;height:3px;position:absolute;top:12px;left:7px}.pt-huU .pt-ARL,.pt-usW .pt-ARL{border-top:1px solid #ddd;margin-top:14px;padding-top:8px}.pt-huU .pt-fRz,.pt-usW .pt-fRz{margin-top:10px;font-style:italic}.pt-huU .pt-TSb,.pt-usW .pt-TSb{border:inherit}.pt-huU .pt-uXh,.pt-usW .pt-uXh{color:var(--pt-secondary-color);background-color:#4663da;background-color:var(--pt-primary-color)}.pt-huU .pt-uXh.pt-GfL:hover,.pt-usW .pt-uXh.pt-GfL:hover{opacity:.8}.pt-huU .pt-l9D,.pt-usW .pt-l9D,.pt-huU .pt-q62:hover,.pt-usW .pt-q62:hover{color:var(--pt-primary-color)}.pt-huU .pt-mmN,.pt-usW .pt-mmN{border-color:#4663da;border-color:var(--pt-primary-color)}.pt-huU .pt--vw,.pt-usW .pt--vw{fill:var(--pt-primary-color)}.pt-huU .pt-hZ3,.pt-usW .pt-hZ3{background-color:#fff;justify-content:center;width:16px;height:16px;display:flex}.pt-huU .pt-hZ3 .pt-8n-,.pt-usW .pt-hZ3 .pt-8n-{background-color:#4663da;background-color:var(--pt-close-color);z-index:1;width:2px;height:16px;transform:rotate(45deg)}.pt-huU .pt-hZ3 .pt-8n- .pt-o-D,.pt-usW .pt-hZ3 .pt-8n- .pt-o-D{background-color:#4663da;background-color:var(--pt-close-color);z-index:2;width:2px;height:16px;transform:rotate(90deg)}.pt-huU .pt-Nnw,.pt-usW .pt-Nnw{padding:10px;font-size:12px;font-weight:600}@media (min-width:768px){.pt-huU .pt-Nnw,.pt-usW .pt-Nnw{font-size:14px}}.pt-huU .pt-DzD,.pt-usW .pt-DzD{color:var(--pt-close-color);border-color:#4663da;border-color:var(--pt-close-border-color)}.pt-huU .pt-ocR,.pt-usW .pt-ocR{background-color:var(--pt-secondary-color);color:var(--pt-secondary-text-color)}.pt-huU .pt-ocR.pt-GfL:hover,.pt-usW .pt-ocR.pt-GfL:hover{color:#fff;background-color:var(--pt-primary-color)}.pt-huU .pt-gWP,.pt-usW .pt-gWP{background-color:#fff}.pt-huU .pt-6mC,.pt-usW .pt-6mC{background-color:#cfcfcf}.pt-huU .pt-ky2,.pt-usW .pt-ky2{color:#fff}.pt-huU .pt-ufy,.pt-usW .pt-ufy{color:rgba(0,0,0,.76)}.pt-huU .pt-rIC:hover,.pt-usW .pt-rIC:hover{color:#fff}.pt-huU{font-family:var(--pt-font);backdrop-filter:blur(5px);background-color:rgba(33,41,52,.65);justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:fixed;top:0;bottom:0;left:0;right:0;overflow:hidden}.pt-huU .pt-A5s{background:#fff;width:100%;overflow:hidden}.pt-huU .pt-A5s .pt-7dn{flex-direction:column;width:100%;display:flex;overflow-y:auto}.pt-huU .pt-A5s .pt-7dn .pt-VzQ .pt-GHI{color:rgba(0,0,0,.76);border-width:0;margin:0 auto;font-size:16px;font-weight:600}@media (min-height:500px){.pt-huU .pt-A5s .pt-7dn .pt-VzQ .pt-GHI{font-size:18px}}.pt-huU .pt-A5s .pt-7dn .pt-VzQ.pt-ioc .pt-nGg{justify-content:flex-end}.pt-huU .pt-A5s .pt-7dn .pt-VzQ.pt-ioc .pt-nGg .pt-6JV{flex-direction:row-reverse}.pt-huU .pt-A5s .pt-7dn .pt-CGI{--tw-text-opacity:1;width:auto;height:auto;color:rgba(75,85,99,var(--tw-text-opacity,1));margin:0;padding:8px 12px;display:block}.pt-huU .pt-A5s .pt-7dn .pt-CGI:hover{--tw-shadow:0 0 transparent;--tw-shadow-colored:0 0 transparent;box-shadow:var(--tw-ring-offset-shadow,0 0 transparent), var(--tw-ring-shadow,0 0 transparent), var(--tw-shadow)}.pt-huU .pt-A5s .pt-7dn .pt-Ol8{border-bottom-width:2px;font-weight:500}.pt-huU .pt-A5s.pt-Xye ul,.pt-huU .pt-A5s.pt-Xye ol{margin:0;padding:0;list-style:none}.pt-huU .pt-A5s .pt-xXb{flex:auto;font-size:14px;overflow-x:hidden;overflow-y:scroll}@media (min-height:500px){.pt-huU .pt-A5s .pt-xXb{font-size:15px}}@media (min-width:768px){.pt-huU .pt-A5s .pt-xXb{overflow-y:auto}}.pt-huU .pt-A5s .pt-xXb{color:#000;width:100%;margin:0 auto;padding-right:5px;line-height:1.3}.pt-huU .pt-A5s .pt-xXb .pt-eqF div[role=tablist]{flex-flow:wrap;justify-content:flex-start;display:flex}.pt-huU .pt-A5s .pt-xXb .pt-ozd{justify-content:flex-start;padding-top:16px;text-decoration-line:underline;display:flex}.pt-huU .pt-A5s .pt-xXb .pt-ozd button{cursor:pointer;--tw-text-opacity:1;color:rgba(107,114,128,var(--tw-text-opacity,1))}.pt-huU .pt-A5s .pt-xXb .pt-ozd button:last-child{padding-left:16px}.pt-huU .pt-A5s .pt-xXb .pt-Jb7{color:rgba(0,0,0,.76);justify-content:space-between;display:flex}.pt-huU .pt-A5s .pt-xXb .pt--oe{--tw-border-opacity:1;border-bottom-width:1px;border-color:rgba(229,231,235,var(--tw-border-opacity,1));padding-top:12px;padding-bottom:12px}.pt-huU .pt-A5s .pt-xXb .pt--oe .pt-fS4{cursor:pointer;justify-content:flex-end;width:100%;display:flex}.pt-huU .pt-A5s .pt-xXb .pt--oe .pt-fS4 span{flex:auto}.pt-huU .pt-A5s .pt-xXb .pt--oe .pt-fS4 .pt-wee{text-align:right;--tw-text-opacity:1;min-width:fit-content;color:rgba(31,41,55,var(--tw-text-opacity,1));padding-right:12px;text-decoration-line:underline}.pt-huU .pt-A5s .pt-xXb .pt--oe .pt-ma2{width:100%;padding-top:12px}.pt-huU .pt-A5s.pt-NjD{min-height:100%;max-height:100%;display:flex}.pt-huU .pt-A5s.pt-NjD .pt-7dn .pt-xXb,.pt-huU .pt-A5s.pt-NjD .pt-7dn.pt-Xye .pt-xXb{min-height:unset;max-height:unset}.pt-huU .pt-A5s.pt-NjD .pt-7dn .pt-mH- .pt--0j{min-height:unset}.pt-huU .pt-wdZ{bottom:0;box-shadow:0 2px 22px #000}.pt-usW{bottom:0;top:unset;position:fixed}.pt-usW.pt-eq1{bottom:unset;top:calc(50% - 25px)}.pt-usW .pt-eVH{background-color:#4663da;background-color:var(--pt-primary-color);color:var(--pt-secondary-color);padding:5px 5px 0}.pt-usW .pt-eVH.pt-GfL:hover{opacity:.8}.pt-usW .pt-eVH button{width:auto;height:auto;margin:0;padding:0!important}.pt-aZy{overflow:hidden}.pt-OAa{padding-bottom:300px;overflow:visible!important}.pt-OAa .pt-huU{background-color:unset!important;backdrop-filter:unset!important;top:unset!important;max-height:300px!important}.pt-OAa .pt-huU .pt-A5s{max-height:300px!important}.pt-OAa .pt-huU .pt-A5s .pt-7dn .pt-VzQ.pt-DJt .pt-QqA img{display:none}@media (min-height:500px){.pt-OAa .pt-huU .pt-A5s .pt-7dn .pt-VzQ.pt-DJt .pt-QqA img{display:none}}@media (min-width:768px){.pt-OAa .pt-huU .pt-A5s .pt-7dn .pt-VzQ.pt-DJt .pt-QqA img{display:block}}.pt-00A{z-index:2147483647}.pt-huU .pt-A5s .pt-7dn .pt-VzQ{padding-left:15px;padding-right:15px}@media (min-width:768px){.pt-huU .pt-A5s .pt-7dn .pt-VzQ{padding-left:20px;padding-right:20px}}.pt-huU .pt-A5s .pt-7dn .pt-VzQ{padding-top:10px}@media (min-height:500px){.pt-huU .pt-A5s .pt-7dn .pt-VzQ{padding-top:20px}}.pt-huU .pt-A5s .pt-7dn .pt-VzQ{flex:0 auto;margin-bottom:10px}@media (min-height:500px){.pt-huU .pt-A5s .pt-7dn .pt-VzQ{margin-bottom:20px}}.pt-huU .pt-A5s .pt-7dn .pt-VzQ .pt-nGg{padding-bottom:35px;display:flex}@media (min-width:768px){.pt-huU .pt-A5s .pt-7dn .pt-VzQ .pt-nGg{padding-bottom:40px}}.pt-huU .pt-A5s .pt-7dn .pt-VzQ .pt-nGg .pt-wYs{cursor:pointer;padding:0;display:flex}.pt-huU .pt-A5s .pt-7dn .pt-VzQ .pt-nGg .pt-wYs div{text-transform:none;margin:0;font-weight:300}.pt-huU .pt-A5s .pt-7dn .pt-VzQ .pt-nGg .pt-wYs .pt-ZwU,.pt-huU .pt-A5s .pt-7dn .pt-VzQ .pt-nGg .pt-wYs .pt-Op9{font-size:12px!important}@media (min-width:768px){.pt-huU .pt-A5s .pt-7dn .pt-VzQ .pt-nGg .pt-wYs .pt-ZwU,.pt-huU .pt-A5s .pt-7dn .pt-VzQ .pt-nGg .pt-wYs .pt-Op9{font-size:15px!important}}.pt-huU .pt-A5s .pt-7dn .pt-VzQ .pt-nGg .pt-6JV{flex-flow:wrap;justify-content:space-between;width:100%;display:flex}.pt-huU .pt-A5s .pt-7dn .pt-VzQ .pt-nGg .pt-6JV .pt-NDe{padding:12px 0 0}@media (min-width:640px){.pt-huU .pt-A5s .pt-7dn .pt-VzQ .pt-nGg .pt-6JV .pt-NDe{padding-top:0}}.pt-huU .pt-A5s .pt-7dn .pt-VzQ.pt-DJt .pt-nGg{padding-bottom:10px}@media (min-height:500px){.pt-huU .pt-A5s .pt-7dn .pt-VzQ.pt-DJt .pt-nGg{padding-bottom:20px}}.pt-huU .pt-A5s .pt-7dn .pt-VzQ.pt-DJt .pt-QqA img{object-fit:contain;height:40px;margin-bottom:15px;display:none}@media (min-height:500px){.pt-huU .pt-A5s .pt-7dn .pt-VzQ.pt-DJt .pt-QqA img{height:60px;display:block}}.pt-huU .pt-A5s .pt-7dn .pt-xXb{max-width:calc(100% - 30px)}@media (min-width:768px){.pt-huU .pt-A5s .pt-7dn .pt-xXb{max-width:calc(100% - 40px)}}.pt-huU .pt-A5s .pt-7dn .pt-mH- .pt--0j{padding-left:15px;padding-right:15px}@media (min-width:768px){.pt-huU .pt-A5s .pt-7dn .pt-mH- .pt--0j{padding-left:20px;padding-right:20px}}.pt-huU .pt-A5s .pt-7dn .pt-mH- .pt--0j{flex-wrap:wrap-reverse;flex:0 auto;justify-content:space-between;align-items:flex-end;padding-top:20px;padding-bottom:20px;display:flex}@media (min-height:500px){.pt-huU .pt-A5s .pt-7dn .pt-mH- .pt--0j{padding-top:30px;padding-bottom:30px}}.pt-huU .pt-A5s .pt-7dn .pt-mH- .pt--0j .pt-Q86 button{min-height:35px}@media (min-height:500px){.pt-huU .pt-A5s .pt-7dn .pt-mH- .pt--0j .pt-Q86 button{min-height:45px}}@media (min-width:768px){.pt-huU .pt-A5s .pt-7dn .pt-mH- .pt--0j .pt-Q86 button{min-width:190px}}.pt-huU .pt-A5s .pt-7dn .pt-mH- .pt--0j .pt-Q86 button:first-child{margin-left:0}.pt-huU .pt-A5s .pt-7dn .pt-mH- .pt--0j .pt-Q86 .pt--mf{box-shadow:-3px 3px 22px #4663da;box-shadow:-3px 3px 22px var(--pt-primary-color)}.pt-huU .pt-A5s .pt-7dn .pt-mH- .pt--0j .pt-Q86 .pt-oke{border:1px solid #4663da;border-color:var(--pt-primary-color)}.pt-huU .pt-A5s .pt-7dn .pt-mH- .pt--0j .pt-Q86 .pt-Tnt{border-width:0;box-shadow:-3px 3px 22px rgba(196,196,196,.3)}.pt-huU .pt-A5s .pt-7dn .pt-mH- .pt--0j .pt-Q86 .pt-Tnt:hover{box-shadow:-3px 3px 22px var(--pt-primary-color)}.pt-huU .pt-A5s .pt-7dn .pt-mH- .pt--0j .pt-Q86{flex:0 100%;justify-content:flex-end;display:flex}.pt-huU .pt-A5s .pt-7dn .pt-mH- .pt--0j.pt-jRG .pt-Q86{justify-content:flex-start}.pt-huU .pt-A5s .pt-7dn .pt-mH- .pt--0j.pt-s2t .pt-Q86{justify-content:center}.pt-huU .pt-A5s .pt-7dn .pt-7AM{text-transform:capitalize;border-radius:6px;flex:1;width:auto;max-width:250px;height:auto;margin:0 0 0 10px;font-size:14px;font-weight:600}@media (min-height:500px){.pt-huU .pt-A5s .pt-7dn .pt-7AM{font-size:15px}}@media (min-width:380px){.pt-huU .pt-A5s .pt-7dn .pt-7AM{margin-left:20px}}@media (min-width:768px){.pt-huU .pt-A5s .pt-7dn .pt-7AM{flex:none}}.pt-huU .pt-A5s .pt-7dn .pt-7AM{padding:14px 10px!important}@media (min-width:768px) and (min-height:500px){.pt-huU .pt-A5s .pt-7dn .pt-7AM{padding-top:18px!important;padding-bottom:18px!important}}@media (min-width:380px){.pt-huU .pt-A5s .pt-7dn .pt-7AM{padding-left:20px!important;padding-right:20px!important}}@media (min-width:768px){.pt-huU .pt-A5s .pt-7dn .pt-7AM{padding-left:40px!important;padding-right:40px!important}}.pt-huU .pt-A5s .pt-7dn .pt-qI8{border-style:solid!important;border-width:1px!important}.pt-huU .pt-A5s .pt-7dn .pt-qI8.pt-ZwU{text-transform:none!important;padding-left:10px!important;padding-right:10px!important}@media (min-width:380px){.pt-huU .pt-A5s .pt-7dn .pt-qI8.pt-ZwU{padding-left:20px!important;padding-right:20px!important}}.pt-huU .pt-A5s .pt-7dn .pt-qI8.pt-Op9{padding:5px 15px!important}.pt-huU .pt-A5s .pt-7dn .pt-Sye{padding:10px!important}.pt-huU .pt-A5s .pt-7dn .pt-aeJ{background:#b5b5b5;background:var(--pt-close-background-color)}.pt-huU .pt-A5s .pt-7dn .pt-87A{padding-top:16px!important;padding-bottom:16px!important}@media (min-width:768px) and (min-height:500px){.pt-huU .pt-A5s .pt-7dn .pt-87A{padding-top:20px!important;padding-bottom:20px!important}}.pt-huU .pt-A5s .pt-7dn .pt--qe{padding-top:16px!important;padding-bottom:16px!important}@media (min-width:768px) and (min-height:500px){.pt-huU .pt-A5s .pt-7dn .pt--qe{padding-top:22px!important;padding-bottom:22px!important}}.pt-huU .pt-A5s.pt-iLP .pt-7AM{border-radius:30px}.pt-huU:not(.pt-gnI) .pt-A5s:not(.pt-wdZ) .pt-7dn .pt-VzQ.pt-yER{flex-direction:column;display:flex}.pt-huU:not(.pt-gnI) .pt-A5s:not(.pt-wdZ) .pt-7dn .pt-VzQ.pt-yER .pt-nGg{order:3;padding:12px 0 8px}.pt-huU:not(.pt-gnI) .pt-A5s:not(.pt-wdZ) .pt-7dn .pt-VzQ.pt-yER{margin-bottom:4px}.pt-huU:not(.pt-gnI) .pt-A5s:not(.pt-wdZ).pt-aND .pt-7dn .pt-VzQ.pt-yER.pt-fBv .pt-6JV,.pt-huU:not(.pt-gnI) .pt-A5s:not(.pt-wdZ).pt-aND .pt-7dn .pt-VzQ.pt-yER.pt-fBv .pt-6JV .pt-wYs{justify-content:center;width:100%}.pt-huU:not(.pt-gnI) .pt-A5s:not(.pt-wdZ).pt-aND .pt-7dn .pt-VzQ.pt-yER.pt-fBv .pt-6JV .pt-wYs .pt-7AM{width:100%!important;max-width:100%!important;padding-top:8px!important;padding-bottom:8px!important;font-size:13px!important}@media (min-width:768px) and (min-height:500px){.pt-huU:not(.pt-gnI) .pt-A5s:not(:-webkit-any(.pt-0ls,.pt-wdZ)){max-height:480px}.pt-huU:not(.pt-gnI) .pt-A5s:not(:is(.pt-0ls,.pt-wdZ)){max-height:480px}}.pt-huU:not(.pt-gnI) .pt-A5s:not(.pt-wdZ){border-radius:6px;max-width:768px}.pt-huU:not(.pt-gnI) .pt-A5s:not(.pt-wdZ).pt-WEw{border-radius:30px;max-width:95%}@media (min-width:768px){.pt-huU:not(.pt-gnI) .pt-A5s:not(.pt-wdZ).pt-WEw{max-width:768px}}.pt-huU:not(.pt-gnI) .pt-A5s.pt-NjD{max-width:100%}.pt-huU:not(.pt-gnI) .pt-A5s.pt-NjD.pt-WEw{border-radius:0;max-width:100%}.pt-huU:not(.pt-gnI) .pt-A5s.pt-aND:not(.pt-wdZ) .pt--0j,.pt-huU:not(.pt-gnI) .pt-A5s.pt-9vC:not(.pt-wdZ) .pt--0j{padding:15px}.pt-huU:not(.pt-gnI) .pt-A5s.pt-aND:not(.pt-wdZ) .pt--0j .pt-Q86,.pt-huU:not(.pt-gnI) .pt-A5s.pt-9vC:not(.pt-wdZ) .pt--0j .pt-Q86{flex-direction:column-reverse;justify-content:center;align-items:center;display:flex}.pt-huU:not(.pt-gnI) .pt-A5s.pt-aND:not(.pt-wdZ) .pt--0j .pt-Q86 .pt-7AM,.pt-huU:not(.pt-gnI) .pt-A5s.pt-9vC:not(.pt-wdZ) .pt--0j .pt-Q86 .pt-7AM{width:100%;max-width:100%;margin:0}.pt-huU:not(.pt-gnI) .pt-A5s.pt-aND:not(.pt-wdZ) .pt--0j .pt-Q86 .pt-7AM:last-child,.pt-huU:not(.pt-gnI) .pt-A5s.pt-9vC:not(.pt-wdZ) .pt--0j .pt-Q86 .pt-7AM:last-child{margin-bottom:12px}.pt-huU:not(.pt-gnI) .pt-A5s.pt-aND:not(.pt-wdZ){max-width:340px}@media (min-width:380px){.pt-huU:not(.pt-gnI) .pt-A5s.pt-aND:not(.pt-wdZ){max-width:360px}}@media (min-width:640px){.pt-huU:not(.pt-gnI) .pt-A5s.pt-aND:not(.pt-wdZ){max-width:420px}}.pt-huU.pt-gnI>.pt-A5s,.pt-huU:not(.pt-gnI)>.pt-A5s.pt-wdZ{max-width:initial;position:fixed;left:0;right:0}@media (min-height:500px){.pt-huU.pt-gnI>.pt-A5s,.pt-huU:not(.pt-gnI)>.pt-A5s.pt-wdZ{max-height:450px}}@media (min-width:1280px){.pt-huU.pt-gnI>.pt-A5s,.pt-huU:not(.pt-gnI)>.pt-A5s.pt-wdZ,.pt-huU.pt-gnI>.pt-A5s.pt-ywg,.pt-huU:not(.pt-gnI)>.pt-A5s.pt-wdZ.pt-ywg{max-height:350px}.pt-huU.pt-gnI>.pt-A5s .pt-7dn,.pt-huU:not(.pt-gnI)>.pt-A5s.pt-wdZ .pt-7dn{max-width:1280px;margin:0 auto}.pt-huU.pt-gnI>.pt-A5s .pt-7dn .pt-VzQ,.pt-huU:not(.pt-gnI)>.pt-A5s.pt-wdZ .pt-7dn .pt-VzQ{justify-content:space-between;padding-left:40px;padding-right:40px;display:flex}.pt-huU.pt-gnI>.pt-A5s .pt-7dn .pt-VzQ .pt-GHI,.pt-huU:not(.pt-gnI)>.pt-A5s.pt-wdZ .pt-7dn .pt-VzQ .pt-GHI{order:2;justify-content:center;align-items:center;width:33%;padding-top:0;font-size:20px;display:flex}.pt-huU.pt-gnI>.pt-A5s .pt-7dn .pt-VzQ .pt-nGg,.pt-huU:not(.pt-gnI)>.pt-A5s.pt-wdZ .pt-7dn .pt-VzQ .pt-nGg{order:1;justify-content:flex-start;width:33%;margin-bottom:30px;padding-bottom:0}.pt-huU.pt-gnI>.pt-A5s .pt-7dn .pt-VzQ .pt-QqA,.pt-huU:not(.pt-gnI)>.pt-A5s.pt-wdZ .pt-7dn .pt-VzQ .pt-QqA{order:3;width:33%}.pt-huU.pt-gnI>.pt-A5s .pt-7dn .pt-VzQ .pt-QqA img,.pt-huU:not(.pt-gnI)>.pt-A5s.pt-wdZ .pt-7dn .pt-VzQ .pt-QqA img{margin:unset;height:60px}.pt-huU.pt-gnI>.pt-A5s .pt-7dn .pt-VzQ.pt-ioc .pt-nGg,.pt-huU:not(.pt-gnI)>.pt-A5s.pt-wdZ .pt-7dn .pt-VzQ.pt-ioc .pt-nGg{order:3;justify-content:flex-end}.pt-huU.pt-gnI>.pt-A5s .pt-7dn .pt-VzQ.pt-ioc .pt-QqA,.pt-huU:not(.pt-gnI)>.pt-A5s.pt-wdZ .pt-7dn .pt-VzQ.pt-ioc .pt-QqA{order:1}.pt-huU.pt-gnI>.pt-A5s .pt-7dn .pt-VzQ:not(.pt-ioc) .pt-QqA,.pt-huU:not(.pt-gnI)>.pt-A5s.pt-wdZ .pt-7dn .pt-VzQ:not(.pt-ioc) .pt-QqA{justify-content:flex-end;display:flex}.pt-huU.pt-gnI>.pt-A5s .pt-7dn .pt-xXb,.pt-huU:not(.pt-gnI)>.pt-A5s.pt-wdZ .pt-7dn .pt-xXb{max-width:initial;padding-left:40px;padding-right:40px}.pt-huU.pt-gnI>.pt-A5s .pt-7dn .pt-mH- .pt--0j,.pt-huU:not(.pt-gnI)>.pt-A5s.pt-wdZ .pt-7dn .pt-mH- .pt--0j{padding-left:40px;padding-right:40px}}.pt-huU.pt-gnI.pt--JV .pt-A5s:not(.pt-wdZ){top:0}.pt-huU.pt-gnI.pt--JV .pt-A5s:not(.pt-wdZ).pt-WEw{border-bottom-right-radius:30px;border-bottom-left-radius:30px}.pt-huU.pt-gnI.pt-EI2 .pt-A5s{bottom:0}.pt-huU.pt-gnI.pt-EI2 .pt-A5s:not(.pt-wdZ).pt-WEw{border-top-left-radius:30px;border-top-right-radius:30px}.pt-wb-{position:absolute}.pt-hBQ{position:relative}.pt-KlP{left:0}.pt-QoX{left:8px}.pt-Kly{right:0}.pt-5XD{top:0}.pt-BIU{display:block}.pt-eQ2{display:inline}.pt-xTH{display:flex}.pt-OS1{display:none}.pt-Qqa{height:16px}.pt-gaC{height:24px}.pt--TF{max-height:100%}.pt-1U3{width:44px}.pt-kwC{width:16px}.pt-rfT{width:100%}.pt-eup{transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.pt--Bh{cursor:pointer}.pt-Ugx{align-items:flex-start}.pt-rSJ{align-items:center}.pt-LmH{justify-content:flex-start}.pt-tBs{justify-content:flex-end}.pt-TTn{justify-content:center}.pt-tF9{border-radius:9999px}.pt-2Ld{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.pt-CvF{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.pt-qUI{border-top-left-radius:.5rem}.pt-Kjo{border-top-right-radius:.5rem}.pt-DSs{border-width:1px}.pt-ZKJ{border-top-width:1px}.pt-Cuk{--tw-border-opacity:1;border-color:rgba(229,231,235,var(--tw-border-opacity,1))}.pt-TSb{border-color:inherit}.pt-Is1{padding-left:4px;padding-right:4px}.pt-BuC{padding-top:12px;padding-bottom:12px}.pt-LaH{padding-bottom:12px}.pt-x3G{padding-right:12px}.pt-dbo{padding-top:8px}.pt-Fa-{padding-top:12px}.pt-msh{padding-top:20px}.pt-lK7{text-align:left}.pt-lZs{text-align:center}.pt-YS1{text-align:right}.pt-Xm4{text-align:end}.pt-lJi{font-weight:600}.pt-Wqa{text-transform:uppercase}.pt-emY{text-decoration-line:underline}.pt-teV{opacity:.2}.pt-d1v{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.pt-93Y{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}\n/*$vite$:1*/"));document.head.appendChild(elementStyle);}catch(e){console.error(e,'Pubtech CMP: can\'t add the style.');}var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;li[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,o)=>(o=n==null?{}:e(i(n)),s(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var l=c(o((e,t)=>{function n(e){return(n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e})(e)}(function(){var e=function(){for(var e,t,r=[],i=window,a=i,o=!1;a;){try{if(a.frames.__tcfapiLocator){e=a;break}}catch(e){}if(a===i.top)break;a=a.parent}e||(function e(){var t=i.document,n=!!i.frames.__tcfapiLocator;if(!n){if(t.body){var r=t.createElement(`iframe`);r.style.cssText=`display:none`,r.name=`__tcfapiLocator`,o?t.body.appendChild(r):setTimeout(function(){t.body.appendChild(r)},0)}else o=!0,setTimeout(e,5)}return!n}(),i.__tcfapi=function(){var e=[...arguments];if(!e.length)return r;e[0]===`setGdprApplies`?e.length>3&&parseInt(e[1],10)===2&&typeof e[3]==`boolean`&&(t=e[3],typeof e[2]==`function`&&e[2](`set`,!0)):e[0]===`ping`?typeof e[2]==`function`&&e[2]({gdprApplies:t,cmpLoaded:!1,cmpStatus:`stub`}):r.push(e)},i.addEventListener(`message`,function(e){var t=typeof e.data==`string`,r={};if(t)try{r=JSON.parse(e.data)}catch(e){}else r=e.data;var i=n(r)===`object`&&r!==null?r.__tcfapiCall:null;if(i){var a=e==null?void 0:e.source;window.__tcfapi(i.command,i.version,function(e,n){var r={__tcfapiReturn:{returnValue:e,success:n,callId:i.callId}};a&&a.postMessage&&a.postMessage(t?JSON.stringify(r):r,`*`)},i.parameter),a=null}},!1))};t===void 0?e():t.exports=e})()})(),1),u,d,f,p,m,h,g,_,v,y,b,x,S,C,w={},ee=[],te=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,ne=Array.isArray;function re(e,t){for(var n in t)e[n]=t[n];return e}function ie(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function ae(e,t,n){var r,i,a,o={};for(a in t)a==`key`?r=t[a]:a==`ref`?i=t[a]:o[a]=t[a];if(arguments.length>2&&(o.children=arguments.length>3?u.call(arguments,2):n),typeof e==`function`&&e.defaultProps!=null)for(a in e.defaultProps)o[a]===void 0&&(o[a]=e.defaultProps[a]);return T(e,o,r,i,null)}function T(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i==null?++f:i,__i:-1,__u:0};return i==null&&d.vnode!=null&&d.vnode(a),a}function E(e){return e.children}function oe(e,t){this.props=e,this.context=t}function se(e,t){if(t==null)return e.__?se(e.__,e.__i+1):null;for(var n;tt&&p.sort(g),e=p.shift(),t=p.length,ce(e)}finally{p.length=de.__r=0}}function fe(e,t,n,r,i,a,o,s,c,l,u){var d,f,p,m,h,g,_=r&&r.__k||ee,v=t.length;for(c=pe(n,t,_,c,v),d=0;d0?o=e.__k[a]=T(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):e.__k[a]=o,c=a+f,o.__=e,o.__b=e.__b+1,s=null,(l=o.__i=he(o,n,c,d))!=-1&&(d--,(s=n[l])&&(s.__u|=2)),s==null||s.__v==null?(l==-1&&(i>u?f--:ic?f--:f++,o.__u|=4))):e.__k[a]=null;if(d)for(a=0;a+!!u){for(i=n-1,a=n+1;i>=0||a=0?i--:a++])!=null&&!(2&l.__u)&&s==l.key&&c==l.type)return o}return-1}function ge(e,t,n){t[0]==`-`?e.setProperty(t,n==null?``:n):e[t]=n==null?``:typeof n!=`number`||te.test(t)?n:n+`px`}function _e(e,t,n,r,i){var a,o;n:if(t==`style`){if(typeof n==`string`)e.style.cssText=n;else{if(typeof r==`string`&&(e.style.cssText=r=``),r)for(t in r)n&&t in n||ge(e.style,t,``);if(n)for(t in n)r&&n[t]==r[t]||ge(e.style,t,n[t])}}else if(t[0]==`o`&&t[1]==`n`)a=t!=(t=t.replace(b,`$1`)),o=t.toLowerCase(),t=o in e||t==`onFocusOut`||t==`onFocusIn`?o.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=n,n?r?n[y]=r[y]:(n[y]=x,e.addEventListener(t,a?C:S,a)):e.removeEventListener(t,a?C:S,a);else{if(i==`http://www.w3.org/2000/svg`)t=t.replace(/xlink(H|:h)/,`h`).replace(/sName$/,`s`);else if(t!=`width`&&t!=`height`&&t!=`href`&&t!=`list`&&t!=`form`&&t!=`tabIndex`&&t!=`download`&&t!=`rowSpan`&&t!=`colSpan`&&t!=`role`&&t!=`popover`&&t in e)try{e[t]=n==null?``:n;break n}catch(e){}typeof n==`function`||(n==null||!1===n&&t[4]!=`-`?e.removeAttribute(t):e.setAttribute(t,t==`popover`&&n==1?``:n))}}function ve(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t[v]==null)t[v]=x++;else if(t[v]0?e:ne(e)?e.map(Se):e.constructor===void 0?re({},e):null}function Ce(e,t,n,r,i,a,o,s,c){var l,f,p,m,h,g,_,v=n.props||w,y=t.props,b=t.type;if(b==`svg`?i=`http://www.w3.org/2000/svg`:b==`math`?i=`http://www.w3.org/1998/Math/MathML`:i||(i=`http://www.w3.org/1999/xhtml`),a!=null){for(l=0;l=n.__.length&&n.__.push({}),n.__[e]}function k(e){return Me=1,Ve($e,e)}function Ve(e,t,n){var r=Be(ke++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):$e(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=D,!D.__f)){var i=function(e,t,n){if(!r.__c.__H)return!0;var i=!1,o=r.__c.props!==e;if(r.__c.__H.__.some(function(e){if(e.__N){i=!0;var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}}),a){var s=a.call(this,e,t,n);return i?s||o:s}return!i||o};D.__f=!0;var a=D.shouldComponentUpdate,o=D.componentWillUpdate;D.componentWillUpdate=function(e,t,n){if(this.__e){var r=a;a=void 0,i(e,t,n),a=r}o&&o.call(this,e,t,n)},D.shouldComponentUpdate=i}return r.__N||r.__}function He(e,t){var n=Be(ke++,3);!O.__s&&Qe(n.__H,t)&&(n.__=e,n.u=t,D.__H.__h.push(n))}function Ue(e){return Me=5,We(function(){return{current:e}},[])}function We(e,t){var n=Be(ke++,7);return Qe(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Ge(e,t){return Me=8,We(function(){return e},t)}function Ke(){var e=Be(ke++,11);if(!e.__){for(var t=D.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__=`P`+n[0]+`-`+n[1]++}return e.__}function qe(){for(var e;e=Ne.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(Xe),t.__h.some(Ze),t.__h=[]}catch(n){t.__h=[],O.__e(n,e.__v)}}}O.__b=function(e){D=null,Pe&&Pe(e)},O.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ze&&ze(e,t)},O.__r=function(e){Fe&&Fe(e),ke=0;var t=(D=e.__c).__H;t&&(Ae===D?(t.__h=[],D.__h=[],t.__.some(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.some(Xe),t.__h.some(Ze),t.__h=[],ke=0)),Ae=D},O.diffed=function(e){Ie&&Ie(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Ne.push(t)!==1&&je===O.requestAnimationFrame||((je=O.requestAnimationFrame)||Ye)(qe)),t.__H.__.some(function(e){e.u&&(e.__H=e.u,e.u=void 0)})),Ae=D=null},O.__c=function(e,t){t.some(function(e){try{e.__h.some(Xe),e.__h=e.__h.filter(function(e){return!e.__||Ze(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],O.__e(n,e.__v)}}),Le&&Le(e,t)},O.unmount=function(e){Re&&Re(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.some(function(e){try{Xe(e)}catch(e){t=e}}),n.__H=void 0,t&&O.__e(t,n.__v))};var Je=typeof requestAnimationFrame==`function`;function Ye(e){var t,n=function(){clearTimeout(r),Je&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);Je&&(t=requestAnimationFrame(n))}function Xe(e){var t=D,n=e.__c;typeof n==`function`&&(e.__c=void 0,n()),D=t}function Ze(e){var t=D;e.__c=e.__(),D=t}function Qe(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function $e(e,t){return typeof t==`function`?t(e):t}var et={cmpContainer:`pt-huU`,cmpButtonContainer:`pt-usW`,"toggle-container":`pt-i8r`,dot:`pt-hlk`,"container-dot":`pt-MWk`,"cmp-base-action-button":`pt-7AM`,"cmp-popup-container":`pt-A5s`,"uppercase-actions":`pt-IOy`,"cmp-popup-body":`pt-7dn`,"cmp-content-container":`pt-xXb`,"expand-to-viewport":`pt-0ls`,"cmp-popup-wall-container":`pt-wdZ`,"more-options-displayed":`pt-Xye`,"arrow-icon-container":`pt-5eI`,checkmark:`pt-0so`,checkmark_stem:`pt-bbW`,checkmark_kick:`pt-XHn`,"illustration-box":`pt-ARL`,"standard-text-box":`pt-fRz`,"border-inherit":`pt-TSb`,"primary-background-color":`pt-uXh`,"darker-background-color":`pt-GfL`,"base-text-color":`pt-l9D`,"hover-text-color":`pt-q62`,"primary-border-color":`pt-mmN`,"svg-fill-primary-color":`pt--vw`,"close-container":`pt-hZ3`,"close-x-container":`pt-8n-`,"close-x":`pt-o-D`,"clear-action-text":`pt-Nnw`,"close-colors":`pt-DzD`,"secondary-background-color":`pt-ocR`,"c-bg-white":`pt-gWP`,"c-bg-gray":`pt-6mC`,"c-text-white":`pt-ky2`,"c-text-black":`pt-ufy`,"hover-text-white":`pt-rIC`,"cmp-head-container":`pt-VzQ`,"cmp-title":`pt-GHI`,"switch-close-back":`pt-ioc`,"top-actions-container":`pt-nGg`,"inner-top-actions":`pt-6JV`,"base-tab":`pt-CGI`,"active-tab":`pt-Ol8`,"choices-panels":`pt-eqF`,"change-shortcuts-container":`pt-ozd`,"publisher-cookie-config":`pt-Jb7`,"advertising-choice-container":`pt--oe`,"advertising-choice-compress":`pt-fS4`,"show-hide-description":`pt-wee`,"advertising-data-container":`pt-ma2`,"amp-environment":`pt-NjD`,"cmp-wrap-footer-container":`pt-mH-`,"cmp-footer-container":`pt--0j`,"position-middle":`pt-eq1`,"cmp-open-button-container":`pt-eVH`,"pubtech-body-no-scroll":`pt-aZy`,"pubtech-popup-wall":`pt-OAa`,"head-with-logo":`pt-DJt`,"publisher-logo":`pt-QqA`,zIndexPowered:`pt-00A`,"close-action":`pt-wYs`,"close-gdpr":`pt-ZwU`,"close-text":`pt-Op9`,"login-action-container":`pt-NDe`,"footer-actions":`pt-Q86`,"primary-button-shadow":`pt--mf`,"secondary-button":`pt-oke`,"secondary-button-shadow":`pt-Tnt`,"footer-align-left":`pt-jRG`,"footer-align-center":`pt-s2t`,"close-button-border":`pt-qI8`,"close-button-without-border":`pt-Sye`,"close-button-background-color":`pt-aeJ`,"mid-button":`pt-87A`,"fat-button":`pt--qe`,"rounded-buttons":`pt-iLP`,"compact-panel":`pt-aND`,"move-h-actions-to-bottom":`pt-yER`,"make-close-action-larger":`pt-fBv`,"stack-footer-actions":`pt-9vC`,"flat-ui":`pt-gnI`,"rounded-container":`pt-WEw`,"logo-displayed":`pt-ywg`,"flat-ui-top":`pt--JV`,"flat-ui-bottom":`pt-EI2`,absolute:`pt-wb-`,relative:`pt-hBQ`,"left-0":`pt-KlP`,"left-2":`pt-QoX`,"right-0":`pt-Kly`,"top-0":`pt-5XD`,block:`pt-BIU`,inline:`pt-eQ2`,flex:`pt-xTH`,hidden:`pt-OS1`,"h-4":`pt-Qqa`,"h-6":`pt-gaC`,"max-h-full":`pt--TF`,"w-11":`pt-1U3`,"w-4":`pt-kwC`,"w-full":`pt-rfT`,transform:`pt-eup`,"cursor-pointer":`pt--Bh`,"items-start":`pt-Ugx`,"items-center":`pt-rSJ`,"justify-start":`pt-LmH`,"justify-end":`pt-tBs`,"justify-center":`pt-TTn`,"rounded-full":`pt-tF9`,"rounded-l-lg":`pt-2Ld`,"rounded-r-lg":`pt-CvF`,"rounded-tl-lg":`pt-qUI`,"rounded-tr-lg":`pt-Kjo`,border:`pt-DSs`,"border-t":`pt-ZKJ`,"border-gray-200":`pt-Cuk`,"px-1":`pt-Is1`,"py-3":`pt-BuC`,"pb-3":`pt-LaH`,"pr-3":`pt-x3G`,"pt-2":`pt-dbo`,"pt-3":`pt-Fa-`,"pt-5":`pt-msh`,"text-left":`pt-lK7`,"text-center":`pt-lZs`,"text-right":`pt-YS1`,"text-end":`pt-Xm4`,"font-semibold":`pt-lJi`,uppercase:`pt-Wqa`,underline:`pt-emY`,"opacity-20":`pt-teV`,filter:`pt-d1v`,transition:`pt-93Y`};function A(e){let t=[];return e.split(` `).forEach(e=>{typeof et[e]==`string`&&t.push(et[e])}),t.join(` `)}var tt=0;Array.isArray;function j(e,t,n,r,i,a){t||(t={});var o,s,c=t;if(`ref`in c)for(s in c={},t)s==`ref`?o=t[s]:c[s]=t[s];var l={type:e,props:c,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--tt,__i:-1,__u:0,__source:i,__self:a};if(typeof e==`function`&&(o=e.defaultProps))for(s in o)c[s]===void 0&&(c[s]=o[s]);return d.vnode&&d.vnode(l),l}function nt({props:e}){return j(`div`,{className:A(`toggle-container h-4`),tabIndex:0,role:`switch`,"aria-checked":e.enabled,"aria-readonly":!e.isConfigurable,"aria-labelledby":e.labelId,onClick:t=>{t.stopPropagation(),e.isConfigurable&&e.onClick()},onKeyDown:t=>{(t.key===` `||t.key===`Enter`)&&(t.preventDefault(),e.isConfigurable&&e.onClick())},children:[j(`div`,{className:A(`container-dot block c-bg-gray w-11 h-6 rounded-full ${e.isConfigurable?``:`opacity-20`}`)}),j(`div`,{className:A(`dot absolute left-2 top-0 c-bg-white w-4 h-4 rounded-full transition`)})]})}function M(){return new Promise(e=>{if(`scheduler`in window&&typeof window.scheduler==`object`&&window.scheduler!=null){if(`yield`in window.scheduler&&typeof window.scheduler.yield==`function`)return window.scheduler.yield().then(()=>e(!0));if(`postTask`in window.scheduler&&typeof window.scheduler.postTask==`function`)return window.scheduler.postTask(()=>e(!0),{priority:`user-visible`})}window.requestAnimationFrame(()=>{setTimeout(()=>{e(!0)},0)})})}function N(){return new Promise(e=>{if(`scheduler`in window&&typeof window.scheduler==`object`&&window.scheduler!=null){if(`yield`in window.scheduler&&typeof window.scheduler.yield==`function`)return window.scheduler.yield().then(()=>e(!0));if(`postTask`in window.scheduler&&typeof window.scheduler.postTask==`function`)return window.scheduler.postTask(()=>e(!0),{priority:`user-blocking`})}e(!1)})}function rt(e){let t=e||[];if(t.length){for(let e=0;e0}async function ot(e,t,n,r){await ct(`__pubtech_queue_on_consent__pre`,{yieldBetweenCalls:!1},e,{consentBaseApi:t,consentBundle:n,integrations:r}),await ct(`__pubtech_queue_on_consent`,{yieldBetweenCalls:!0},e,{consentBaseApi:t,consentBundle:n,integrations:r})}async function st(e){await ct(`__pubtech_queue_on_banner_shown`,{yieldBetweenCalls:!0},e,{})}async function ct(e,{yieldBetweenCalls:t=!0}={},...n){let r=window;if(!Array.isArray(r[e]))r[e]=[];else for(let i of r[e]){t&&(await M());try{i(...n)}catch(t){console.error(`Error during callback execution in `+e,t)}}r[e].latestArgs=n,r[e].proxyEnabled||(r[e].push=async function(n){t&&(await M());try{n(...r[e].latestArgs)}catch(t){console.error(`Error during callback execution in `+e,t)}Array.prototype.push.call(r[e],n)},r[e].proxyEnabled=!0)}var lt=4e3,ut=!1;async function dt(e){let t=t=>new Promise((n,r)=>{let i=setTimeout(()=>r(Error(`Load timeout`)),lt);e(t).then(n,r).then(()=>clearTimeout(i))});try{return await t(ut?`?_=${Date.now()}`:``)}catch(e){return ut=!0,t(`?_=${Date.now()}`)}}function ft(e){pt()?window.document.addEventListener(`DOMContentLoaded`,()=>{e()}):e()}function pt(){return window.document!==void 0&&window.document.readyState!==void 0&&window.document.readyState==`loading`}function mt(e){return new Promise(t=>{document.prerendering?document.addEventListener(`prerenderingchange`,function(){typeof e==`function`&&e(),t()},{once:!0}):t()})}function ht({descriptionUI:e=null,hasLegIntState:t=!1,hasState:n,isConfigurable:r,isEnabled:i,isLegIntConfigurable:a=!1,isLegIntEnabled:o=!1,onToggleClick:s=null,onToggleLegIntClick:c=null,title:l,translate:u,hasCustomAction:d=!1,customActionText:f=null,customActionEventId:p=null}){let[m,h]=k(!1),g=Ke();return j(`div`,{className:A(`advertising-choice-container`),"aria-labelledby":g,tabIndex:0,children:[j(`div`,{className:A(`advertising-choice-compress`),children:[j(`span`,{id:g,"aria-hidden":!0,children:l}),d&&P(p)&&j(`button`,{className:A(`show-hide-description`),onClick:async()=>{await N(),document.dispatchEvent(new CustomEvent(`cmp:${p}`))},children:P(f)?f:u(`settings`)}),e!=null&&j(`button`,{className:A(`show-hide-description`),onClick:async e=>{e.stopPropagation(),await N(),h(!m)},children:u(m?`hideDetails`:`seeDetails`)}),n&&j(nt,{props:{isConfigurable:r,enabled:i,onClick:s,labelId:g}})]}),a&&t&&j(`div`,{className:A(`advertising-choice-compress pt-3`),children:[j(`span`,{className:A(`text-end pr-3`),children:u(`legitimateInterest`)}),j(nt,{props:{isConfigurable:a,enabled:o,onClick:c,labelId:g}})]}),j(`div`,{"aria-live":`polite`,role:`presentation`,children:m&&e})]})}function gt({choice:e,partnerCount:t,isConfigurable:n,switchTabCallback:r,translate:i,enableVendorCallback:a,hasState:o=!0}){let[s,c]=k(e.state),[l,u]=k(!!e.legIntState);return j(ht,{title:e.name+` (${t} ${i(`partners`)})`,isConfigurable:n,isEnabled:s,hasState:o,onToggleClick:()=>{c(!s),e.state=!s,a(e.id)},hasLegIntState:e.legIntAvailable,isLegIntConfigurable:e.legIntAvailable,isLegIntEnabled:l,onToggleLegIntClick:()=>{u(!l),e.legIntState=!l,a(e.id)},translate:i,descriptionUI:j(`div`,{className:A(`advertising-data-container`),children:[e.description,j(`br`,{}),Array.isArray(e.illustrations)&&e.illustrations.map((e,t)=>j(`div`,{className:A(`illustration-box`),children:[j(`span`,{children:i(`illustrationTitle`)+` `+(t+1)}),j(`p`,{children:e})]})),j(`button`,{className:A(`pt-2 underline base-text-color font-semibold cursor-pointer`),onClick:async e=>{e.stopPropagation(),await N(),r(Oe.VENDORS);let t=document.getElementById(`pt-msg`);t&&t.scrollTo(0,0)},children:i(`showListPartners`)})]})})}function _t({isConfigurable:e=!0,choices:t,purposesIdsThatMustBeEnabled:n,switchTabCallback:r,translate:i,isCookieWallModeEnabled:a,enableVendorCallback:o,disableVendorCallback:s}){let[c,l]=k({});return j(`div`,{class:A(`w-full`),children:[!a&&e&&j(`div`,{className:A(`change-shortcuts-container`),children:[j(`button`,{onClick:async e=>{e.stopPropagation(),await N(),t.forEach(e=>{e.state=!1,l(t=>({...t,[e.id]:e.state})),s(e.id)})},children:i(`rejectAllChoices`)}),j(`button`,{onClick:async e=>{e.stopPropagation(),await N(),t.forEach(e=>{e.state=!0,l(t=>({...t,[e.id]:e.state})),o(e.id)})},children:i(`acceptAllChoices`)})]}),t.map(e=>{let t=!0;return n.includes(e.id)&&(e.state=!0,t=!1),j(gt,{hasState:e.hasState,choice:e,partnerCount:Object.keys(e.vendors).length,isConfigurable:t,switchTabCallback:r,enableVendorCallback:o,translate:i},e.id+String(e.state))})]})}function vt(e){"@babel/helpers - typeof";return vt=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},vt(e)}function yt(e,t){if(vt(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(vt(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function bt(e){var t=yt(e,`string`);return vt(t)==`symbol`?t:t+``}function F(e,t,n){return(t=bt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xt=class extends oe{constructor(e){super(e),this.scrollListener=this.scrollListener.bind(this),this.eventListenerOptions=this.eventListenerOptions.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this)}componentDidMount(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),setTimeout(this.attachListeners.bind(this),0)}componentDidUpdate(){if(this.props.isReverse&&this.loadMore){let e=this.getParentElement(this.scrollComponent);e.scrollTop=e.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}setTimeout(this.attachListeners.bind(this),0)}componentWillUnmount(){this.detachListeners(),this.options=null,this.props=null}isPassiveSupported(){let e=!1,t={get passive(){e=!0}};try{document.addEventListener(`test`,null,t),document.removeEventListener(`test`,null,t)}catch(e){}return e}eventListenerOptions(){let e;return e=this.isPassiveSupported()?{useCapture:this.props.useCapture,passive:!0}:{passive:!1},e}setDefaultLoader(e){this.defaultLoader=e}detachListeners(){let e=window;this.props.useWindow===!1&&(e=this.getParentElement(this.scrollComponent));let t=this.options?this.options:this.props.useCapture;e.removeEventListener(`scroll`,this.scrollListener,t),e.removeEventListener(`resize`,this.scrollListener,t),e.removeEventListener(`mousewheel`,this.mousewheelListener,t)}getParentElement(e){let t=this.props.getScrollParent&&this.props.getScrollParent();return t==null?e&&e.parentNode:t}filterProps(e){return e}attachListeners(){let e=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!e)return;let t=window;this.props.useWindow===!1&&(t=e);let n=this.options?this.options:this.props.useCapture;t.addEventListener(`mousewheel`,this.mousewheelListener,n),t.addEventListener(`scroll`,this.scrollListener,n),t.addEventListener(`resize`,this.scrollListener,n),this.props.initialLoad&&this.scrollListener()}mousewheelListener(e){e.deltaY===1&&!this.isPassiveSupported()&&e.preventDefault()}scrollListener(){let e=this.scrollComponent,t=window,n=this.getParentElement(e),r;if(this.props.useWindow){let n=document.documentElement||document.body.parentNode||document.body,i=t.pageYOffset===void 0?n.scrollTop:t.pageYOffset;r=this.props.isReverse?i:this.calculateOffset(e,i)}else r=this.props.isReverse?n.scrollTop:e.scrollHeight-n.scrollTop-n.clientHeight;this.props.offsetDifference!=null&&(r<0&&(r*=-1),r=this.props.offsetDifference-r),r{this.scrollComponent=e,c&&c(e)};let m=[e];return n&&(a?i?m.unshift(a):m.push(a):this.defaultLoader&&(i?m.unshift(this.defaultLoader):m.push(this.defaultLoader))),ae(t,p,m)}};F(xt,`defaultProps`,{element:`div`,hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null,offsetDifference:null});function St({vendorUI:e,translate:t,isCookieWallModeEnabled:n}){let[r,i]=k(e.state);return j(ht,{title:e.name,isConfigurable:!n,isEnabled:e.state,hasState:!0,onToggleClick:()=>{i(!r),e.state=!r},isLegIntEnabled:!1,hasLegIntState:!1,isLegIntConfigurable:!1,onToggleLegIntClick:null,translate:t,descriptionUI:j(`div`,{className:A(`advertising-data-container`),children:[j(`b`,{children:t(`privacyPolicyUrl`)}),j(`a`,{className:A(`base-text-color`),href:e.policyUrl,target:`_blank`,rel:`noreferrer`,children:e.policyUrl})]})})}function Ct({choice:e,translate:t,retentionLabel:n}){let r=[];return`illustrations`in e&&Array.isArray(e.illustrations)&&(r=e.illustrations),j(ht,{title:e.name,isConfigurable:!1,hasState:!1,isEnabled:!1,onToggleClick:null,isLegIntEnabled:!1,hasLegIntState:!1,isLegIntConfigurable:!1,onToggleLegIntClick:null,translate:t,descriptionUI:j(`div`,{className:A(`advertising-data-container`),children:[n.length>0&&j(E,{children:[j(`b`,{children:n}),` `,j(`br`,{}),j(`br`,{})]}),e.description,j(`br`,{}),r.map((e,n)=>j(`div`,{className:A(`illustration-box`),children:[j(`span`,{children:t(`illustrationTitle`)+` `+(n+1)}),j(`p`,{children:e})]}))]})})}var wt={purposes:`pcc`,specialPurposes:`spcc`,features:`fcc`,specialFeatures:`sfcc`,dataDeclaration:`ddcc`};function Tt(e){return!e||!Array.isArray(e.disclosures)?!1:e.disclosures.every(e=>{let t=e.type,n=P(e.domain),r=Array.isArray(e.domains)&&e.domains.length>0&&e.domains.every(e=>P(e));return!(!P(e==null?void 0:e.identifier)||!P(t)||![`cookie`,`web`,`app`].includes(t)||!Array.isArray(e==null?void 0:e.purposes)||!e.purposes.every(e=>Number.isInteger(e))||e.specialPurposes!=null&&(!Array.isArray(e.specialPurposes)||!e.specialPurposes.every(e=>Number.isInteger(e)))||n&&r||(t===`cookie`||t===`web`)&&!n&&!r||t===`cookie`&&(typeof e.cookieRefresh!=`boolean`||typeof e.maxAgeSeconds!=`number`||Number.isNaN(e.maxAgeSeconds))||t!==`cookie`&&e.maxAgeSeconds!=null||e.purposes.length===0&&!P(e.description))})}function Et(e){return[...new Set(e)].sort((e,t)=>e-t)}function Dt(e,t){let n=Et(e),r=Et(t);return n.length===r.length&&n.every((e,t)=>e===r[t])}function Ot({vendorUI:e,uiChoicesBridgeDto:t,translate:n,lang:r}){var i,a;let o=``,s=``,[c,l]=k(null),[u,d]=k(!1),[f,p]=k(!1),m=P(e.deviceStorageDisclosureUrl)?e.deviceStorageDisclosureUrl:null;He(()=>{let e=!0;return m?(d(!1),l(null),p(!0),fetch(m,{credentials:`omit`}).then(e=>{if(!e.ok)throw Error(`Failed to fetch vendor disclosure JSON`);return e.json()}).then(t=>{if(e){if(!Tt(t))throw Error(`Invalid vendor disclosure JSON`);l(t),p(!1)}}).catch(()=>{e&&(d(!0),l(null),p(!1))}),()=>{e=!1}):(l(null),d(!1),p(!1),()=>{e=!1})},[m]);let h=e.urls.reduce((e,t)=>Object.assign(e,{[t.langId]:{privacy:t.privacy,legIntClaim:t.legIntClaim}}),{});return e.urls.length>0&&(h[r]==null?(o=e.urls[0].privacy,s=e.urls[0].legIntClaim):(o=h[r].privacy,s=h[r].legIntClaim)),j(`div`,{className:A(`advertising-data-container`),children:[j(`b`,{children:n(`privacyPolicyUrl`)}),j(`a`,{className:A(`base-text-color`),href:o,target:`_blank`,rel:`noreferrer`,children:o}),j(`br`,{}),P(s)&&j(E,{children:[n(`legIntInfo`),`:`,` `,j(`a`,{className:A(`base-text-color`),href:s,target:`_blank`,rel:`noreferrer`,children:s})]}),P(s)&&j(`br`,{}),j(`b`,{children:[n(`cookiePre`),`: `]}),Number.isNaN(e.cookieMaxAgeSeconds)?n(`cookieNotUsed`):At(e.cookieMaxAgeSeconds,n),m&&j(E,{children:[j(`br`,{}),j(`div`,{className:A(`pt-5`),children:j(`b`,{children:n(`vendorDeviceStorageOperationalDisclosures`)})}),j(`a`,{className:A(`base-text-color`),href:m,target:`_blank`,rel:`noreferrer`,children:m}),f&&j(`div`,{className:`loader`,style:{marginTop:10},children:[n(`loading`),`...`]})]}),c&&c.disclosures&&c.disclosures.length>0&&j(E,{children:[c.disclosures.map(t=>{let r=Array.isArray(t.purposes)?t.purposes:[],i=Array.isArray(t.specialPurposes)?t.specialPurposes:[],a=r.length>0&&!Dt(r,e.purposes),o=i.length>0&&!Dt(i,e.specialPurposes),s=r.length===0&&i.length===0,c=t.type===`cookie`&&typeof t.maxAgeSeconds==`number`&&!Number.isNaN(t.maxAgeSeconds)&&(Number.isNaN(e.cookieMaxAgeSeconds)||t.maxAgeSeconds!==e.cookieMaxAgeSeconds),l=Array.isArray(t.domains)?t.domains.join(`, `):P(t.domain)?t.domain:``,u=t.maxAgeSeconds===0?n(`sessionRetention`):At(t.maxAgeSeconds,n);return j(`div`,{className:A(`pt-5`),children:[j(`b`,{children:[n(`vendorStorageIdentifier`),`:`]}),` `,t.identifier,j(`br`,{}),j(`b`,{children:[n(`vendorStorageType`),`:`]}),` `,t.type,s&&j(E,{children:[j(`br`,{}),j(`b`,{children:n(`vendorStorageNonTcf`)})]}),a&&j(E,{children:[j(`br`,{}),j(`b`,{children:[n(`vendorStoragePurposesIds`),`:`]}),` `,r.join(`, `)]}),o&&j(E,{children:[j(`br`,{}),j(`b`,{children:[n(`vendorStorageSpecialPurposesIds`),`:`]}),` `,i.join(`, `)]}),c&&j(E,{children:[j(`br`,{}),j(`b`,{children:[n(`vendorStorageMaxAge`),`:`]}),` `,u]}),t.type===`cookie`&&typeof t.cookieRefresh==`boolean`&&j(E,{children:[j(`br`,{}),j(`b`,{children:[n(`vendorStorageCookieRefresh`),`:`]}),` `,t.cookieRefresh?n(`vendorStorageYes`):n(`vendorStorageNo`)]}),P(t.description)&&j(E,{children:[j(`br`,{}),n(`vendorStorageDescription`),`: `,t.description]}),P(l)&&j(E,{children:[j(`br`,{}),n(`domains`),`: `,l]}),t.optOut===!0&&j(E,{children:[j(`br`,{}),n(`vendorStorageOptOut`)]})]},`${t.identifier}-${t.type}`)}),Array.isArray(c.domains)&&c.domains.length>0&&j(`div`,{className:A(`pt-5`),children:[j(`b`,{children:n(`vendorDisclosedDomains`)}),`:`,` `,c.domains.map(e=>P(e.domain)?P(e.use)?`${e.domain} (${e.use})`:e.domain:null).filter(Boolean).join(`, `)]}),Array.isArray(c.sdks)&&c.sdks.length>0&&j(`div`,{className:A(`pt-5`),children:[j(`b`,{children:n(`vendorDisclosedSdks`)}),`:`,` `,c.sdks.map(e=>P(e.name)?P(e.use)?`${e.name} (${e.use})`:e.name:null).filter(Boolean).join(`, `)]})]}),u&&j(E,{children:[j(`br`,{}),j(`div`,{className:A(`pt-5`),children:n(`vendorDeviceStorageDisclosureFetchFailed`,{vendorName:e.name})})]}),j(`br`,{}),e.purposes.length>0&&j(`div`,{class:A(`pt-5`),children:j(`b`,{children:n(`purposes`)})}),e.purposes.map(r=>j(Ct,{choice:t.UIPurposeChoices[r-1],translate:n,retentionLabel:kt(e.purposesDataRetentionMap.get(r),n)},r+wt.purposes)),e.specialPurposes.length>0&&j(`div`,{className:A(`pt-5`),children:j(`b`,{children:n(`specialPurposes`)})}),e.specialPurposes.map(r=>j(Ct,{choice:t.UISpecialPurposes[r-1],translate:n,retentionLabel:kt(e.specialPurposesDataRetentionMap.get(r),n)},r+wt.specialPurposes)),e.features.length>0&&j(`div`,{className:A(`pt-5`),children:j(`b`,{children:n(`features`)})}),e.features.length>0&&P((i=t.UIStandardTexts)==null?void 0:i.features)&&j(`div`,{className:A(`standard-text-box`),children:(a=t.UIStandardTexts)==null?void 0:a.features}),e.features.map(e=>j(Ct,{choice:t.UIFeatures[e-1],translate:n,retentionLabel:``},e+wt.features)),e.specialFeatures.length>0&&j(`div`,{className:A(`pt-5`),children:j(`b`,{children:n(`specialFeatures`)})}),e.specialFeatures.map(e=>j(Ct,{choice:t.UISpecialFeatureChoices[e-1],translate:n,retentionLabel:``},e+wt.specialFeatures)),e.dataDeclaration.length>0&&j(`div`,{className:A(`pt-5`),children:j(`b`,{children:n(`dataDeclaration`)})}),e.dataDeclaration.map(e=>{if(t.UIDataCategories.get(e))return j(Ct,{choice:t.UIDataCategories.get(e),translate:n,retentionLabel:``},e+wt.dataDeclaration)})]})}function kt(e,t){let n=``;return!isNaN(e)&&e>0?n=t(`retentionDays`,{retentionsDays:jt(e,t)}):isNaN(e)||(n=t(`sessionRetention`)),n.length>0?n:``}function At(e,t){for(let n of[{label:`year`,seconds:31536e3},{label:`month`,seconds:2592e3},{label:`day`,seconds:86400},{label:`hour`,seconds:3600},{label:`minute`,seconds:60},{label:`second`,seconds:1}])if(e>=n.seconds){let r=Math.floor(e/n.seconds);return`${r} ${t(n.label+(r===1?``:`s`))}`}return``}function jt(e,t){for(let n of[{label:`year`,divisor:365},{label:`month`,divisor:30},{label:`week`,divisor:7},{label:`day`,divisor:1}])if(e>=n.divisor){let r=Math.floor(e/n.divisor);return`${r} ${t(n.label+(r===1?``:`s`))}`}return``}function Mt({vendorUI:e,uiChoicesBridgeDto:t,lang:n,translate:r,isCookieWallModeEnabled:i}){let[a,o]=k(e.state),[s,c]=k(!!e.legIntState);return j(ht,{title:e.name,isConfigurable:!i,isEnabled:a,hasState:!e.onlyLegIntAvailable&&!e.onlySpecialPurposesDeclared,onToggleClick:()=>{o(!a),e.state=!a},hasLegIntState:e.legIntAvailable,isLegIntConfigurable:e.legIntAvailable,isLegIntEnabled:s,onToggleLegIntClick:()=>{c(!s),e.legIntState=!s},translate:r,descriptionUI:j(Ot,{vendorUI:e,uiChoicesBridgeDto:t,translate:r,lang:n})})}var Nt=function(e){return e[e.TCF=0]=`TCF`,e[e.GOOGLE=1]=`GOOGLE`,e}({});function Pt({activeTab:e,content:t,switchTab:n,tabs:r}){let i=Ue([]),a=``,o=`content-tab-${e}`;return j(`div`,{className:A(`choices-panels`),children:[j(`div`,{role:`tablist`,onKeyDown:function(t){if(t.key!==`ArrowRight`&&t.key!==`ArrowLeft`)return;let a=(r.findIndex(t=>t.id===e)+(t.key===`ArrowRight`?1:-1)+r.length)%r.length;n(r[a].id),i.current[a].focus()},children:r.map((t,r)=>{let s=`tab-${Ke()}`;return t.id===e&&(a=s),j(`button`,{id:s,tabIndex:e===t.id?0:-1,"aria-selected":e===t.id,"aria-controls":o,role:`tab`,className:A(`base-tab hover-text-color ${e===t.id?`active-tab base-text-color primary-border-color border-inherit`:``}`),onClick:e=>{e.stopPropagation(),n(t.id)},ref:e=>{i.current[r]=e},children:t.text})})}),j(`div`,{className:A(`py-3`),"aria-labelledby":a,id:o,tabIndex:0,role:`tabpanel`,children:t})]})}function Ft({coreCmpDataBundle:e,translate:t,isCookieWallModeEnabled:n}){let[r,i]=k(10),[a,o]=k(10),[s,c]=k(0),[l,u]=k(Nt.TCF),d=l==Nt.TCF,f=l==Nt.GOOGLE;async function p(e){await N(),u(e),d?o(10):i(10)}let m=e.uiChoicesBridgeDto.UIVendorChoices.length,h=e.uiChoicesBridgeDto.UIGoogleVendorOptions.length;return j(Pt,{tabs:[{id:Nt.TCF,text:t(`partnersTCF`)},{id:Nt.GOOGLE,text:t(`partnersGoogle`)}],activeTab:l,switchTab:p,content:j(E,{children:[d&&j(`div`,{id:`show-iab-vendors`,children:[j(`span`,{children:t(`iabVendorMessage`,{partnersCount:m})}),j(xt,{className:A(`w-full`),"aria-live":`polite`,pageStart:0,initialLoad:!1,loadMore:()=>{i(r+10)},hasMore:rdocument.getElementById(`pt-msg`),children:[!n&&j(`div`,{className:A(`change-shortcuts-container`),children:[j(`button`,{onClick:async t=>{t.stopPropagation(),await N(),e.uiChoicesBridgeDto.UIVendorChoices.forEach(e=>e.state=!1),c(s+1)},children:t(`rejectAllChoices`)}),j(`button`,{onClick:async t=>{t.stopPropagation(),await N(),e.uiChoicesBridgeDto.UIVendorChoices.forEach(e=>e.state=!0),c(s+1)},children:t(`acceptAllChoices`)})]}),e.uiChoicesBridgeDto.UIVendorChoices.map((i,a)=>{if(n&&(i.state=!0),a{o(a+10)},hasMore:adocument.getElementById(`pt-msg`),children:[!n&&j(`div`,{className:A(`change-shortcuts-container`),children:[j(`button`,{onClick:async t=>{t.stopPropagation(),await N(),e.uiChoicesBridgeDto.UIGoogleVendorOptions.forEach(e=>e.state=!1),c(s+1)},children:t(`rejectAllChoices`)}),j(`button`,{onClick:async t=>{t.stopPropagation(),await N(),e.uiChoicesBridgeDto.UIGoogleVendorOptions.forEach(e=>e.state=!0),c(s+1)},children:t(`acceptAllChoices`)})]}),e.uiChoicesBridgeDto.UIGoogleVendorOptions.map((e,r)=>{if(n&&(e.state=!0),r{e.purposes.includes(t)&&(e.state=r)}),i.uiChoicesBridgeDto.UIGoogleVendorOptions.forEach(e=>e.state=!0))}async function p(e){f(e,!0)}async function m(e){f(e,!1)}let[h,g]=k(0),[_,v]=k(null);return He(()=>{n.then(e=>{g(e.uiChoicesBridgeDto.UIVendorChoices.length+e.uiChoicesBridgeDto.UIGoogleVendorOptions.length),v(e)})},[n]),_!=null&&j(E,{children:[j(`div`,{className:A(`pb-3`),children:j(`i`,{children:t(`consentStorageInfo`,{months:6,cookieName:e.cookieName||`euconsent-v2`})})}),j(Pt,{tabs:[{id:Oe.CONSENTS,text:t(`purposes`)},{id:Oe.VENDORS,text:t(`partners`)}],activeTab:o,switchTab:u,content:j(E,{children:[c&&j(`div`,{className:A(`advertising-choices-panel`),children:[t(`advertisingChoicesMessage`),j(`div`,{className:A(`pt-3`),children:j(`span`,{children:t(`purposesMessage`,{partnersCount:h})})}),j(_t,{isConfigurable:!0,choices:_.uiChoicesBridgeDto.UIPurposeChoices,purposesIdsThatMustBeEnabled:d,enableVendorCallback:p,disableVendorCallback:m,switchTabCallback:u,translate:t,isCookieWallModeEnabled:r.isCookieWallModeEnabled}),j(`div`,{className:A(`pt-3`),children:j(`span`,{children:t(`specialFeaturesMessage`,{partnersCount:h})})}),j(_t,{isConfigurable:!0,choices:_.uiChoicesBridgeDto.UISpecialFeatureChoices,purposesIdsThatMustBeEnabled:[],enableVendorCallback:()=>{},disableVendorCallback:()=>{},switchTabCallback:u,translate:t,isCookieWallModeEnabled:r.isCookieWallModeEnabled}),j(`div`,{className:A(`pt-3`),children:j(`i`,{children:t(`specialPurposesMessage`,{partnersCount:h})})}),j(_t,{isConfigurable:!1,choices:_.uiChoicesBridgeDto.UISpecialPurposes,purposesIdsThatMustBeEnabled:d,enableVendorCallback:p,disableVendorCallback:m,switchTabCallback:u,translate:t,isCookieWallModeEnabled:r.isCookieWallModeEnabled}),j(`div`,{className:A(`pt-3`),children:j(`i`,{children:t(`featuresMessage`,{partnersCount:h})})}),P((i=_.uiChoicesBridgeDto.UIStandardTexts)==null?void 0:i.features)&&j(`div`,{className:A(`standard-text-box`),children:(a=_.uiChoicesBridgeDto.UIStandardTexts)==null?void 0:a.features}),j(_t,{isConfigurable:!1,choices:_.uiChoicesBridgeDto.UIFeatures,purposesIdsThatMustBeEnabled:[],enableVendorCallback:()=>{},disableVendorCallback:()=>{},switchTabCallback:u,translate:t,isCookieWallModeEnabled:r.isCookieWallModeEnabled})]}),l&&j(Ft,{coreCmpDataBundle:_,translate:t,isCookieWallModeEnabled:r.isCookieWallModeEnabled})]})})]})}var Lt=function(e){return e[e.NONE=0]=`NONE`,e[e.ARROW=1]=`ARROW`,e[e.CHECKMARK=2]=`CHECKMARK`,e}({}),Rt=function(e){return e[e.X=0]=`X`,e[e.DEFAULT=1]=`DEFAULT`,e[e.CUSTOMIZED_TEXT=2]=`CUSTOMIZED_TEXT`,e}({}),zt=function(e){return e[e.BASE=0]=`BASE`,e[e.FAT=1]=`FAT`,e[e.MEDIUM=2]=`MEDIUM`,e}({}),Bt=function(e){return e[e.RECT=0]=`RECT`,e[e.ROUNDED=1]=`ROUNDED`,e}({}),Vt=function(e){return e[e.LEFT=0]=`LEFT`,e[e.CENTER=1]=`CENTER`,e[e.RIGHT=2]=`RIGHT`,e}({});function Ht({content:e,contentAlign:t,customMessage:n,defaultMessage:r,showMessage:i}){let a=``;switch(t){case Vt.CENTER:a=`text-center`;break;case Vt.RIGHT:a=`text-right`;}return j(`div`,{id:`pt-msg`,className:A(`cmp-content-container c-bg-white ${i&&a}`),role:`none presentation`,tabIndex:-1,children:[i&&j(`div`,{className:A(`c-text-black`),children:j(`div`,{role:`presentation`,dangerouslySetInnerHTML:{__html:typeof n==`string`&&n.length>0?n:r}})}),e]})}function Ut(){setTimeout(()=>{let e=document.getElementById(`pt-msg`);e&&(e.scrollTop=0)},0)}function Wt(){let e=document.getElementById(`pt-msg`);e&&e.focus()}var I=function(e){return e[e.MANDATORY_COOKIE=0]=`MANDATORY_COOKIE`,e[e.FEATURES_COOKIE=1]=`FEATURES_COOKIE`,e[e.USER_EXPERIENCE_COOKIE=2]=`USER_EXPERIENCE_COOKIE`,e[e.MEASUREMENT_COOKIE=3]=`MEASUREMENT_COOKIE`,e[e.ADVERTISING_COOKIE=4]=`ADVERTISING_COOKIE`,e[e.ADVERTISING_COOKIE_PURPOSES=5]=`ADVERTISING_COOKIE_PURPOSES`,e[e.ADVERTISING_COOKIE_VENDORS=6]=`ADVERTISING_COOKIE_VENDORS`,e}({});function Gt({cookiesChoice:e,configurable:t,messageKey:n,translate:r}){let[i,a]=k(e.state),o=()=>{a(!i),e.state=!i},s=Ke();return j(`div`,{children:[j(`div`,{className:A(`publisher-cookie-config`),children:[j(`span`,{id:s,children:n}),t&&j(nt,{props:{isConfigurable:!0,enabled:i,onClick:o,labelId:s}})]}),j(`div`,{className:A(`w-full`),children:e.data.map((e,t)=>j(ht,{title:e.vendor,hasState:!1,onToggleClick:null,isConfigurable:!1,isEnabled:!1,isLegIntEnabled:!1,hasLegIntState:!1,isLegIntConfigurable:!1,onToggleLegIntClick:null,translate:r,descriptionUI:j(`div`,{className:A(`advertising-data-container`),children:j(`ul`,{children:[e.name!=null&&j(`li`,{children:[j(`b`,{children:[r(`cookieName`),`:`]}),` ${e.name}`]}),j(`li`,{children:[j(`b`,{children:[r(`partner`),`:`]}),` ${e.vendor}`]}),e.link!=null&&j(`li`,{children:[j(`b`,{children:`Link: `}),j(`a`,{rel:`nofollow noopener noreferrer`,target:`_blank`,href:e.link,className:A(`base-text-color font-semibold`),children:e.link})]}),e.expirationInDays!=null&&e.expirationInDays>0&&j(`li`,{children:[j(`b`,{children:[r(`cookieExpireDays`),`:`]}),` ${e.expirationInDays}`]}),j(`li`,{children:[j(`b`,{children:[r(`purposes`),`:`]}),` ${e.purpose}`]})]})}),hasCustomAction:e.showCustomAction,customActionText:e.customActionText,customActionEventId:e.customActionEventId},t))})]})}Object.defineProperty(window,"__pub_tech_cmp_config",{value:Object.freeze(window.__pub_tech_cmp_config),writable:!1,configurable:!1}),Object.defineProperty(window,"__pub_tech_override_cmp_config",{value:Object.freeze(window.__pub_tech_override_cmp_config),writable:!1,configurable:!1});function Kt(e){return e.isAmp?`amp`:e.isAndroid?`android`:e.isIos?`iOS`:`web`}function qt(){return{...window.__pub_tech_cmp_config,...window.__pub_tech_override_cmp_config}}function Jt(e){let t=Yt(e);return e.websiteIdBySlug&&typeof e.websiteIdBySlug[t]==`number`?e.websiteIdBySlug[t]:e.websiteId}function Yt(e){let t=e.isAmp===!0&&typeof e.ampWebsiteHostName==`string`&&e.ampWebsiteHostName.length>0,n=e.isAmp===!0?t?e.ampWebsiteHostName:Xt():window.location.hostname,r=e.websiteSlug,i=e.slugMapping;if(Array.isArray(i)&&i.length>0){let e=i.find(function(e){return n.includes(e.key)});e&&(r=e.value)}return r}function Xt(){let e=document.referrer;try{e=window.location.ancestorOrigins[0]}catch(e){}return e}function Zt(e){let t=!1;return function(...n){if(!t)return t=!0,e.apply(this,n)}}function Qt(e){let t=``;switch(e.buttonThickness){case zt.FAT:t=`fat-button`;break;case zt.MEDIUM:t=`mid-button`;break;default:t=``;}let n=`cmp-base-action-button ${t}`,r=`primary-background-color darker-background-color c-text-white primary-button ${e.buttonShadow?`primary-button-shadow`:``} ${n}`,i=r;return e.differentiateButtons&&(i=`secondary-background-color darker-background-color secondary-button ${e.buttonShadow?`secondary-button-shadow`:``} ${n} hover-text-white`),{primaryButtonClass:r,secondaryButtonClass:i}}function $t({options:e}){let{primaryButtonClass:t,secondaryButtonClass:n}=Qt(e);return j(`button`,{className:A(e.isPrimary?t:n),onClick:Ge(Zt(t=>{t.stopPropagation(),e.onClick(t)}),[]),id:e.id,children:[e.content,e.isAffirmative?j(E,{children:[e.affirmativeButtonIcon===Lt.ARROW&&j(`span`,{className:A(`arrow-icon-container`)}),e.affirmativeButtonIcon===Lt.CHECKMARK&&j(`span`,{className:A(`checkmark`),children:[j(`div`,{className:A(`checkmark_stem`)}),j(`div`,{className:A(`checkmark_kick`)})]})]}):``]})}var en=5e3;function tn({coreCmpDataBundle:e,options:t,cmpConfiguration:n,translate:r}){var i,a;let[o,s]=k(!0),[c,l]=k(!1),[u,d]=k([]),[f,p]=k(void 0),[m,h]=k(void 0),[g,_]=k(void 0);He(()=>{let t=!1;async function n(){s(!0),l(!1);try{var n;let r=(await e).uiChoicesBridgeDto.UIPublisherCookieOptions;if(t)return;d((r==null||(n=r.technicalCookies)==null?void 0:n.data)||[]),p(r==null?void 0:r.featureCookiesChoice),h(r==null?void 0:r.userExperienceCookiesChoice),_(r==null?void 0:r.measurementCookiesChoice),s(!1),l(!1)}catch(e){t||(s(!1),l(!0))}}return n(),()=>{t=!0}},[e]),He(()=>{if(!t.showOptions||!o)return;let e=setTimeout(()=>l(!0),en);return()=>clearTimeout(e)},[t.showOptions,o,e]),t.showOptions||He(function(){requestAnimationFrame(function(){setTimeout(function(){function e(e,t){let n=document.getElementsByClassName(e);for(let e=0;e`${e} ${t}`,ee=w(C,v),te=w(x,v),ne=w(S,v),re=`${r(`legitimateInterest`)}`,ie=`${y}`,ae=P(n.consentScopeGroupUrl)?` (${r(`consentScopeGroupLinkLabel`)})`:``,T={group:`consentScopeGroup`,multiDevice:`consentScopeMultiDevice`,service:n.isAndroid===!0||n.isIos===!0?`consentScopeServiceApp`:`consentScopeService`},oe=r(T[n.consentScope]||T.service,{groupInfo:ae}),se=[{id:I.MANDATORY_COOKIE,text:r(`mandatoryCookie`)},{id:I.FEATURES_COOKIE,text:r(`featureCookies`)},{id:I.USER_EXPERIENCE_COOKIE,text:r(`userExperienceCookies`)},{id:I.MEASUREMENT_COOKIE,text:r(`measurementCookies`)},{id:I.ADVERTISING_COOKIE,text:r(`advertisingCookie`)}],ce=`{{consentScopeInfo}}`,le=P(n==null?void 0:n.customMessage)?n.customMessage.includes(ce)?n.customMessage:`${n.customMessage} ${ce}`:``;return j(Ht,{showMessage:!t.showPopupWall&&!t.showOptions,customMessage:le==``?``:`${r(le,{partners:ee,tcfPartners:te,googlePartners:ne,privacyPolicyUrl:ie,consentScopeInfo:oe},!0)}`,defaultMessage:r(`cmpMessage`,{partners:ee,privacyPolicyUrl:ie,beforeEndingPhrase:n.isLegitimateInterestEnabled?`${r(`legIntUsage`,{legitimateInterestLink:re})} `:``,consentScopeInfo:oe}),contentAlign:n.contentAlign,content:j(E,{children:[t.showPopupWall&&!t.showOptions&&j(`div`,{className:A(`c-text-black`),children:typeof n.popupWallModeMessage==`string`&&n.popupWallModeMessage.length>0?j(`div`,{dangerouslySetInnerHTML:{__html:n.popupWallModeMessage}}):j(`div`,{dangerouslySetInnerHTML:{__html:r(`popupWallMessage`,{consents:`${b}`})}})}),t.showOptions&&c&&j(`div`,{className:A(`c-text-black`),children:[j(`p`,{children:r(`dataUnavailableMessage`)}),j($t,{options:{onClick:t.retryDataLoading,content:r(`retry`),buttonShadow:n.buttonShadow,buttonThickness:n.buttonThickness,differentiateButtons:n.differentiateButtons}})]}),t.showOptions&&!o&&!c&&j(Pt,{tabs:se,activeTab:t.activeTab,switchTab:t.switchTab,content:j(E,{children:[t.activeTab===I.MANDATORY_COOKIE&&j(Gt,{configurable:!1,cookiesChoice:{state:!0,data:u},messageKey:r(`mandatoryCookieMessage`),translate:r}),t.activeTab===I.FEATURES_COOKIE&&j(Gt,{configurable:!n.isAmp,cookiesChoice:f,messageKey:r(`featureCookieMessage`),translate:r}),t.activeTab===I.USER_EXPERIENCE_COOKIE&&j(Gt,{configurable:!n.isAmp,cookiesChoice:m,messageKey:r(`userExperienceCookieMessage`),translate:r}),t.activeTab===I.MEASUREMENT_COOKIE&&j(Gt,{configurable:!n.isAmp,cookiesChoice:g,messageKey:r(`measurementCookieMessage`),translate:r}),t.activeTab===I.ADVERTISING_COOKIE&&j(It,{coreCmpDataBundle:e,cmpConfiguration:n,options:{openSubTab:t.openSubTab,purposesIdsThatMustBeEnabled:t.purposesIdsThatMustBeEnabled,isCookieWallModeEnabled:t.isCookieWallModeEnabled},translate:r})]})})||t.showOptions&&o&&!c&&j(`div`,{className:`loader-container`,style:{display:`flex`,justifyContent:`center`,alignItems:`center`,minHeight:120},children:[j(`div`,{className:`loader`,style:{width:32,height:32,border:`4px solid #eee`,borderTop:`4px solid #333`,borderRadius:`50%`,animation:`spin 1s linear infinite`}}),j(`style`,{children:` @keyframes spin { 0% { transform: rotate(0deg);} 100% { transform: rotate(360deg);} } `})]})]})})}var L=class e{constructor(){F(this,`subscriptions`,{}),F(this,`subscriptionsInfo`,{}),F(this,`getNextUniqueId`,e.getIdGenerator())}static getInstance(){return e.instance||(e.instance=new e),e.instance}subscribe(e,t,n){let r=this.getNextUniqueId();return this.subscriptions[t]||(this.subscriptions[t]={}),this.subscriptionsInfo[t]||(this.subscriptionsInfo[t]={}),this.subscriptions[t][r]=n,this.subscriptionsInfo[t][r]=e,{unsubscribe:()=>{delete this.subscriptions[t][r],Object.keys(this.subscriptions[t]).length===0&&delete this.subscriptions[t]}}}dispatch(e){let t=e.EVENT_NAME;this.subscriptions[t]&&Object.keys(this.subscriptions[t]).forEach(n=>{try{this.subscriptions[t][n](e)}catch(t){console.error(`Something went wrong in `+this.subscriptionsInfo[e.EVENT_NAME][n]+`, subscribed to the event: '`+e.EVENT_NAME+`'`,`CORE-CMP`,[t])}})}static getIdGenerator(){let e=0;return function(){return e+=1,e}}static getClassName(){return`EventDispatcher`}};F(L,`instance`,void 0);var nn=class{constructor(){F(this,`factories`,{}),F(this,`container`,{})}getDIContainer(){return this.factories}inject(e,t,n){if(n){let n={};n[e]={get:()=>{if(this.container[e])return this.container[e];let n=new t(this.factories);return this.container[e]=n,n},enumerable:!1},Object.defineProperties(this.factories,n)}else{let n=this.container[e];n==null&&(n=new t(this.factories),this.container[e]=n)}}factory(e,t,n=!0){this.inject.call(this,e,function(e){return t(e)},n)}},rn=new class{constructor(){F(this,`diContainer`,void 0),this.diContainer=new nn}addServiceProvider(e,t){return this.diContainer.factory(e,t.bind(this)),this}addEventSubscriberProvider(e,t){this.diContainer.factory(e,t);let n=this.diContainer.getDIContainer()[e],r=L.getInstance();for(let[t,i]of Object.entries(n.getSubscribedEvents())){let a=i;typeof a==`string`&&r.subscribe(e,t,e=>n[a](e)),typeof a==`object`&&typeof a.method==`string`&&r.subscribe(e,t,function(e){(a.waitFor||function(){return Promise.resolve()})().then(()=>{n[a.method](e)})})}return this}getService(e){return this.diContainer.getDIContainer()[e]}},an=class{constructor(e,t,n,r,i,a){if(F(this,`renderCmpCallback`,void 0),F(this,`renderOpenCmpButtonCallback`,void 0),F(this,`preDetachCmpCallback`,void 0),F(this,`domElementId`,void 0),F(this,`hideClass`,void 0),F(this,`document`,void 0),this.document=e,t.length===0||!/^[a-z0-9]\D\S+$/i.test(t))throw Error(`UIConstructor, domElementId string must contains only letters and numbers.`);this.domElementId=t,this.hideClass=n,this.renderCmpCallback=r,this.renderOpenCmpButtonCallback=i,this.preDetachCmpCallback=a}buildUIAndRender(e,t,n){ft(()=>{setTimeout(()=>{this.renderCmpUI(e,t,n)},0)})}preDetachCmp(){this.prepareRootDOMElement().classList.add(this.hideClass),this.preDetachCmpCallback()}buildOpenCmpButtonAndRender(e){let t=()=>{setTimeout(()=>{ft(()=>{let t=this.prepareRootDOMElement();this.renderOpenCmpButtonUI(t,e),t.classList.remove(this.hideClass)})},0)};window.requestIdleCallback?requestIdleCallback(t):t()}renderCmpUI(e,t,n){try{this.renderCmpCallback(this.prepareRootDOMElement(),e,t,n)}catch(e){throw Error(`UIConstructor, renderCmpCallback error: `+e)}}renderOpenCmpButtonUI(e,t){try{this.renderOpenCmpButtonCallback(e,t)}catch(e){throw Error(`UIConstructor, renderOpenCmpButtonCallback error: `+e)}}prepareRootDOMElement(){let e=this.document.getElementById(this.domElementId);if(e==null){let t=this.document.createElement(`div`);t.id=this.domElementId,e=t,this.document.getElementsByTagName(`body`)[0].appendChild(t)}return e}},on,R=class e{static decode(t){let n={googleVendorOptions:[]},r=e.getEnabledVendorIds(t),i=e.getDisabledVendorIds(t);return r.forEach(e=>{n.googleVendorOptions.push({id:Number(e),state:!0})}),i.forEach(e=>{n.googleVendorOptions.push({id:Number(e),state:!1})}),n}static encode(t){let n=[],r=[];return t.googleVendorOptions.forEach(e=>{e.state?n.push(e.id):r.push(e.id)}),e.composeACString(n,r)}static getEnabledVendorIds(t){if(typeof t==`string`&&t.length>0){let n=t.split(e.acStringDisclosedVendorSeparator)[0],r=n==null?void 0:n.split(e.acStringEnabledVendorSeparator).pop();if(r&&!e.supportedVersions.includes(n))return r.split(`.`)}return[]}static getDisabledVendorIds(t){if(typeof t==`string`&&t.length>0){let n=t.split(e.acStringDisclosedVendorSeparator),r=``;if(n.length>1&&(r=n[1]),r.length>0)return r.split(`.`)}return[]}static composeACString(t=[],n=[]){let r=e.acStringEnabledVendorSeparator+t.join(`.`),i=e.acStringDisclosedVendorSeparator+n.join(`.`);return e.acStringVersion+r+i}};on=R,F(R,`acStringEnabledVendorSeparator`,`~`),F(R,`acStringDisclosedVendorSeparator`,`~dv.`),F(R,`acStringVersion`,`2`),F(R,`supportedVersions`,[`1`,on.acStringVersion]);var z=class e{static decode(t){let n=``;if(t){var r;n=(r=t.split(e.separator)[1])==null?``:r}return{featureCookiesChoice:{state:n.charAt(0)==e.ENABLED},userExperienceCookiesChoice:{state:n.charAt(1)==e.ENABLED},measurementCookiesChoice:{state:n.charAt(2)==e.ENABLED}}}static encode(t,n){let r=e.getCodeOfCookiesChoice(n.featureCookiesChoice),i=e.getCodeOfCookiesChoice(n.userExperienceCookiesChoice),a=e.getCodeOfCookiesChoice(n.measurementCookiesChoice);return`${t}${e.separator}${r+i+a}`}static convertPCModelToMap(e){var t,n,r,i,a,o;return{featureCookiesChoice:(t=(n=e.featureCookiesChoice)==null?void 0:n.state)!=null&&t,userExperienceCookiesChoice:(r=(i=e.userExperienceCookiesChoice)==null?void 0:i.state)!=null&&r,measurementCookiesChoice:(a=(o=e.measurementCookiesChoice)==null?void 0:o.state)!=null&&a}}static getCodeOfCookiesChoice(t){return t.state?e.ENABLED:e.DISABLED}};F(z,`separator`,`-`),F(z,`ENABLED`,`1`),F(z,`DISABLED`,`0`);var sn=class e{constructor(e,t,n,r,i=!1){F(this,`logger`,void 0),F(this,`hostName`,void 0),F(this,`protocol`,void 0),F(this,`document`,void 0),F(this,`skipPersist`,void 0),this.logger=e,this.hostName=t,this.protocol=n,this.document=r,this.skipPersist=i}setCookie(t,n,r,{enableEncodeURIComponent:i}={enableEncodeURIComponent:!1}){if(this.skipPersist){this.logger.debug(`Cookie persistence is disabled. Skipping setCookie for `+t+` with value `+n);return}let a=new Date;a.setTime(a.getTime()+r*e.milliSecondsInADay);let o=`expires=`+a.toUTCString(),s=e.getCleanedDomain(this.hostName),c=n;i&&(c=encodeURIComponent(c)),this.document.cookie=`${t}=${c};${o};path=/;domain=${s};SameSite=Lax;`,this.getCookie(t)!==n&&(this.document.cookie=`${t}=${n};${o};path=/;SameSite=Lax;`)}getCookie(e){let t=e+`=`,n=this.document.cookie;try{n=decodeURIComponent(this.document.cookie)}catch(e){this.logger.debug(`decodeURIComponent error, fallback to document.cookie.`,e)}let r=n.split(`;`);for(let e=0;e{this.document.cookie=`${t}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=${e}`,this.logger.debug(`Deleted cookie: `+t+` for domain: `+e)})}static getCleanedDomain(e){let t=``,n=2,r=e===`localhost`;r||e.indexOf(`www.`)!==0&&(e=`www.`+e);let i=e.split(`.`),a=/^[0-9]+$/.test(e.split(`:`)[0].split(`.`).join(``)),o=i[i.length-2];return r||a||(3{let t=En();t==null?new URLSearchParams(window.location.search).get(Sn)==`1`?window.addEventListener(`PubConsentSharingAPIReady`,function(){e(En())},{once:!0}):e(null):e(t)})}function En(){let e=null;try{e=window.PubConsentSharingAPI.getConsent(),kn()}catch(e){console.log(`None defined.`)}if(e==null){let t=new URLSearchParams(window.location.search);e=decodeURIComponent(`${t.get(Cn)}`)}try{return window.PubConsentSharingAPI.getStrings()}catch(e){}return JSON.parse(`${e}`)}var Dn=`pubconsent_was_consent_shared_from_app_webview`,On=`true`;function kn(){try{window.localStorage.setItem(Dn,On)}catch(e){console.error(`Please enable the localStorage.`)}}function An(){try{return window.localStorage.getItem(Dn)===On}catch(e){return console.error(`Please enable the localStorage.`),!1}}var jn=`__pubtech-gcm-debug-script`,Mn=`pubtech:gcm-debug`,Nn=`https://cdn.pubtech.ai/prod-gcm-debugger/index.js`,Pn=`pubtechGoogleTagsDebug`;function Fn(e=window.location.search){try{return new URLSearchParams(e).get(Pn)===`true`}catch(e){return!1}}function In(e){return new Promise((t,n)=>{if(document.getElementById(jn)){window.dispatchEvent(new CustomEvent(Mn,{detail:e})),t();return}let r=document.createElement(`script`);r.id=jn,r.src=Nn,r.onload=()=>{window.dispatchEvent(new CustomEvent(Mn,{detail:e})),t()},r.onerror=()=>{n(Error(`Failed to load the PubConsent GCM debugger script from ${Nn}.`))},document.head.appendChild(r)})}var Ln;function Rn(){return Ln===void 0?Promise.reject(Error(`The PubConsent CMP has not initialized its Google Consent Mode debug options yet.`)):In(Ln)}async function zn(e){Ln=e,typeof window.__pubtech_google_tags_debug!=`function`&&(window.__pubtech_google_tags_debug=t=>In(e).then(()=>window.__pubtech_google_tags_debug(t))),(e.enableConsoleLogs||Fn(e.queryString))&&(await In(e).catch(()=>{}))}function Bn(){let e=`color: #b1c800; font-size: 12px; padding: 10px;`;window.dataLayer=window.dataLayer||[];let t=window.dataLayer;if(typeof t!=`object`||!t)console.debug(`%c GOOGLE-CONSENT-MODE DEBUG: Error dataLayer not defined trying to set the developer_id.`,e,``);else try{t.push([`set`,`developer_id.dYWU3OD`,!0])}catch(t){console.debug(`%c GOOGLE-CONSENT-MODE DEBUG: Trying to set the developer_id.`,e,``),console.error(t)}}function Vn(){if(window.dataLayer=window.dataLayer||[],typeof window.dataLayer.push==`function`){function e(){window.dataLayer.push(arguments)}e(`consent`,`default`,{analytics_storage:`denied`,ad_storage:`denied`,ad_user_data:`denied`,ad_personalization:`denied`})}}function Hn(e){if(window.dataLayer=window.dataLayer||[],typeof window.dataLayer.push==`function`){function t(){window.dataLayer.push(arguments)}t(`consent`,`update`,{analytics_storage:e.analyticsConsentGranted?`granted`:`denied`})}}var Un=`__pubtech-dev-tools-script`,Wn=`pubtech:dev-tools`,Gn=`https://cdn.pubtech.ai/prod-dev-tools/index.js`;function Kn(e){return new Promise((t,n)=>{if(document.getElementById(Un)){window.dispatchEvent(new CustomEvent(Wn,{detail:{cmpType:e}})),t();return}let r=document.createElement(`script`);r.id=Un,r.src=Gn,r.onload=()=>{window.dispatchEvent(new CustomEvent(Wn,{detail:{cmpType:e}})),t()},r.onerror=()=>{n(Error(`Failed to load the PubConsent devtools script from ${Gn}.`))},document.head.appendChild(r)})}var qn=class extends Error{constructor(e){super(e),this.name=`DecodingError`}},Jn=class extends Error{constructor(e){super(e),this.name=`EncodingError`}},Yn=class extends Error{constructor(e){super(e),this.name=`GVLError`}},Xn=class extends Error{constructor(e,t,n=``){super(`invalid value ${t} passed for ${e} ${n}`),this.name=`TCModelError`}},Zn=class{static encode(e){if(!/^[0-1]+$/.test(e))throw new Jn(`Invalid bitField`);let t=e.length%this.LCM;e+=t?`0`.repeat(this.LCM-t):``;let n=``;for(let t=0;t=2&&n.length==2){if(e.langSet.has(t))return t;if(e.langSet.has(n))return n;let r=n+`-`+n;if(e.langSet.has(r))return r;for(let r of e.langSet)if(r.indexOf(t)!==-1||r.indexOf(n)!==-1)return r}throw Error(`unsupported language ${t}`)}forEach(t){e.langSet.forEach(t)}get size(){return e.langSet.size}};F(Qn,`langSet`,new Set(`AR.BG.BS.CA.CS.CY.DA.DE.EL.EN.ES.ET.EU.FI.FR.GL.HE.HI.HR.HU.ID.IS.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`.split(`.`)));var V=class{};F(V,`cmpId`,`cmpId`),F(V,`cmpVersion`,`cmpVersion`),F(V,`consentLanguage`,`consentLanguage`),F(V,`consentScreen`,`consentScreen`),F(V,`created`,`created`),F(V,`supportOOB`,`supportOOB`),F(V,`isServiceSpecific`,`isServiceSpecific`),F(V,`lastUpdated`,`lastUpdated`),F(V,`numCustomPurposes`,`numCustomPurposes`),F(V,`policyVersion`,`policyVersion`),F(V,`publisherCountryCode`,`publisherCountryCode`),F(V,`publisherCustomConsents`,`publisherCustomConsents`),F(V,`publisherCustomLegitimateInterests`,`publisherCustomLegitimateInterests`),F(V,`publisherLegitimateInterests`,`publisherLegitimateInterests`),F(V,`publisherConsents`,`publisherConsents`),F(V,`publisherRestrictions`,`publisherRestrictions`),F(V,`purposeConsents`,`purposeConsents`),F(V,`purposeLegitimateInterests`,`purposeLegitimateInterests`),F(V,`purposeOneTreatment`,`purposeOneTreatment`),F(V,`specialFeatureOptins`,`specialFeatureOptins`),F(V,`useNonStandardTexts`,`useNonStandardTexts`),F(V,`vendorConsents`,`vendorConsents`),F(V,`vendorLegitimateInterests`,`vendorLegitimateInterests`),F(V,`vendorListVersion`,`vendorListVersion`),F(V,`vendorsAllowed`,`vendorsAllowed`),F(V,`vendorsDisclosed`,`vendorsDisclosed`),F(V,`version`,`version`);var $n=class{clone(){let e=new this.constructor;return Object.keys(this).forEach(t=>{let n=this.deepClone(this[t]);n!==void 0&&(e[t]=n)}),e}deepClone(e){let t=typeof e;if(t===`number`||t===`string`||t===`boolean`)return e;if(e!==null&&t===`object`){if(typeof e.clone==`function`)return e.clone();if(e instanceof Date)return new Date(e.getTime());if(e[Symbol.iterator]!==void 0){let t=[];for(let n of e)t.push(this.deepClone(n));return e instanceof Array?t:new e.constructor(t)}{let t={};for(let n in e)e.hasOwnProperty(n)&&(t[n]=this.deepClone(e[n]));return t}}}},H;(function(e){e[e.NOT_ALLOWED=0]=`NOT_ALLOWED`,e[e.REQUIRE_CONSENT=1]=`REQUIRE_CONSENT`,e[e.REQUIRE_LI=2]=`REQUIRE_LI`})(H||(H={}));var er={},tr=class e extends $n{constructor(e,t){super(),F(this,`purposeId_`,void 0),F(this,`restrictionType`,void 0),e!==void 0&&(this.purposeId=e),t!==void 0&&(this.restrictionType=t)}static unHash(t){if(er[t])return er[t];let n=t.split(this.hashSeparator),r=new e;if(n.length!==2)throw new Xn(`hash`,t);return r.purposeId=parseInt(n[0],10),r.restrictionType=parseInt(n[1],10),er[t]=r,r}get hash(){if(!this.isValid())throw Error(`cannot hash invalid PurposeRestriction`);return`${this.purposeId}${e.hashSeparator}${this.restrictionType}`}get purposeId(){return this.purposeId_}set purposeId(e){this.purposeId_=e}isValid(){return Number.isInteger(this.purposeId)&&this.purposeId>0&&(this.restrictionType===H.NOT_ALLOWED||this.restrictionType===H.REQUIRE_CONSENT||this.restrictionType===H.REQUIRE_LI)}isSameAs(e){return this.purposeId===e.purposeId&&this.restrictionType===e.restrictionType}};F(tr,`hashSeparator`,`-`);var nr=class extends $n{constructor(...e){super(...e),F(this,`bitLength`,0),F(this,`map`,new Map),F(this,`gvl_`,void 0),F(this,`cachedVendorMap`,void 0)}has(e){return this.map.has(e)}isOkToHave(e,t,n){var r;let i=!0;if((r=this.gvl)!=null&&r.vendors){let r=this.gvl.vendors[n];if(r){if(e===H.NOT_ALLOWED)i=r.legIntPurposes.includes(t)||r.purposes.includes(t);else if(r.flexiblePurposes.length)switch(e){case H.REQUIRE_CONSENT:i=r.flexiblePurposes.includes(t)&&r.legIntPurposes.includes(t);break;case H.REQUIRE_LI:i=r.flexiblePurposes.includes(t)&&r.purposes.includes(t);}else i=!1}else i=!1}return i}add(e,t){if(this.isOkToHave(t.restrictionType,t.purposeId,e)){let n=t.hash;this.has(n)||(this.map.set(n,new Set),this.bitLength=0),this.map.get(n).add(e)}}createOrderedSetOfVendorIdsFromOne(e){if(this.cachedVendorMap||(this.cachedVendorMap=new Map),!this.cachedVendorMap.has(e)){let t=new Set([...Array(e).keys()].map(e=>e+1));this.cachedVendorMap.set(e,t)}return this.cachedVendorMap.get(e)}restrictPurposeToLegalBasis(e){let t=Array.from(this.gvl.vendorIds),n=e.hash,r=t[t.length-1];if(!this.has(n))this.map.set(n,this.createOrderedSetOfVendorIdsFromOne(r)),this.bitLength=0;else for(let e=1;e<=r;e++)this.map.get(n).add(e)}getVendors(e){return Array.from(this.getVendorsSet(e)).sort((e,t)=>e-t)}getVendorsSet(e){let t=new Set;if(e){let n=e.hash;this.has(n)&&(t=this.map.get(n))}else this.map.forEach(e=>{e.forEach(e=>{t.add(e)})});return t}getRestrictionType(e,t){let n;return this.getRestrictions(e).forEach(e=>{e.purposeId===t&&(n===void 0||n>e.restrictionType)&&(n=e.restrictionType)}),n}vendorHasRestriction(e,t){let n=!1,r=this.getRestrictions(e);for(let e=0;e{e=Math.max(Array.from(t)[t.size-1],e)}),e}getRestrictions(e){let t=[];return this.map.forEach((n,r)=>{e?n.has(e)&&t.push(tr.unHash(r)):t.push(tr.unHash(r))}),t}getPurposes(){let e=new Set;return this.map.forEach((t,n)=>{e.add(tr.unHash(n).purposeId)}),Array.from(e)}remove(e,t){let n=t.hash,r=this.map.get(n);r&&(r.delete(e),r.size==0&&(this.map.delete(n),this.bitLength=0))}set gvl(e){this.gvl_||(this.gvl_=e,this.map.forEach((e,t)=>{let n=tr.unHash(t);Array.from(e).forEach(t=>{this.isOkToHave(n.restrictionType,n.purposeId,t)||e.delete(t)})}))}get gvl(){return this.gvl_}isEmpty(){return this.map.size===0}get numRestrictions(){return this.map.size}},rr;(function(e){e.COOKIE=`cookie`,e.WEB=`web`,e.APP=`app`})(rr||(rr={}));var U;(function(e){e.CORE=`core`,e.VENDORS_DISCLOSED=`vendorsDisclosed`,e.VENDORS_ALLOWED=`vendorsAllowed`,e.PUBLISHER_TC=`publisherTC`})(U||(U={}));var ir=class{};F(ir,`ID_TO_KEY`,[U.CORE,U.VENDORS_DISCLOSED,U.VENDORS_ALLOWED,U.PUBLISHER_TC]),F(ir,`KEY_TO_ID`,{[U.CORE]:0,[U.VENDORS_DISCLOSED]:1,[U.VENDORS_ALLOWED]:2,[U.PUBLISHER_TC]:3});var ar=Symbol.iterator,W=class extends $n{constructor(...e){super(...e),F(this,`bitLength`,0),F(this,`maxId_`,0),F(this,`set_`,new Set)}*[ar](){for(let e=1;e<=this.maxId;e++)yield[e,this.has(e)]}values(){return this.set_.values()}get maxId(){return this.maxId_}has(e){return this.set_.has(e)}unset(e){Array.isArray(e)?e.forEach(e=>this.unset(e)):typeof e==`object`?this.unset(Object.keys(e).map(e=>Number(e))):(this.set_.delete(Number(e)),this.bitLength=0,e===this.maxId&&(this.maxId_=0,this.set_.forEach(e=>{this.maxId_=Math.max(this.maxId,e)})))}isIntMap(e){let t=typeof e==`object`;return t=t&&Object.keys(e).every(t=>{let n=Number.isInteger(parseInt(t,10));return n=n&&this.isValidNumber(e[t].id),n=n&&e[t].name!==void 0,n}),t}isValidNumber(e){return parseInt(e,10)>0}isSet(e){let t=!1;return e instanceof Set&&(t=Array.from(e).every(this.isValidNumber)),t}set(e){if(Array.isArray(e))e.forEach(e=>this.set(e));else if(this.isSet(e))this.set(Array.from(e));else if(this.isIntMap(e))this.set(Object.keys(e).map(e=>Number(e)));else if(this.isValidNumber(e))this.set_.add(e),this.maxId_=Math.max(this.maxId,e),this.bitLength=0;else throw new Xn(`set()`,e,`must be positive integer array, positive integer, Set, or IntMap`)}empty(){this.set_=new Set,this.maxId_=0}forEach(e){for(let t=1;t<=this.maxId;t++)e(this.has(t),t)}get size(){return this.set_.size}setAll(e){this.set(e)}unsetAll(e){this.unset(e)}},or=V.cmpId,sr=V.cmpVersion,cr=V.consentLanguage,lr=V.consentScreen,ur=V.created,dr=V.isServiceSpecific,fr=V.lastUpdated,pr=V.policyVersion,mr=V.publisherCountryCode,hr=V.publisherLegitimateInterests,gr=V.publisherConsents,_r=V.purposeConsents,vr=V.purposeLegitimateInterests,yr=V.purposeOneTreatment,br=V.specialFeatureOptins,xr=V.useNonStandardTexts,Sr=V.vendorListVersion,Cr=V.version,G=class{};F(G,or,12),F(G,sr,12),F(G,cr,12),F(G,lr,6),F(G,ur,36),F(G,dr,1),F(G,fr,36),F(G,pr,6),F(G,mr,12),F(G,hr,24),F(G,gr,24),F(G,_r,24),F(G,vr,24),F(G,yr,1),F(G,br,12),F(G,xr,1),F(G,Sr,12),F(G,Cr,6),F(G,`anyBoolean`,1),F(G,`encodingType`,1),F(G,`maxId`,16),F(G,`numCustomPurposes`,6),F(G,`numEntries`,12),F(G,`numRestrictions`,12),F(G,`purposeId`,6),F(G,`restrictionType`,2),F(G,`segmentType`,3),F(G,`singleOrRange`,1),F(G,`vendorId`,16);var wr=class{static encode(e){return String(Number(e))}static decode(e){return e===`1`}},K=class{static encode(e,t){let n;if(typeof e==`string`&&(e=parseInt(e,10)),n=e.toString(2),n.length>t||e<0)throw new Jn(`${e} too large to encode into ${t}`);return n.length25||r<0||r>25)throw new Jn(`invalid language code: ${e}`);if(t%2==1)throw new Jn(`numBits must be even, ${t} is not valid`);return t/=2,K.encode(n,t)+K.encode(r,t)}static decode(e,t){let n;if(t===e.length&&!(e.length%2)){let t=e.length/2,r=K.decode(e.slice(0,t),t)+65,i=K.decode(e.slice(t),t)+65;n=String.fromCharCode(r)+String.fromCharCode(i)}else throw new qn(`invalid bit length for language`);return n}},Or=class{static encode(e){let t=K.encode(e.numRestrictions,G.numRestrictions);if(!e.isEmpty()){let n=Array.from(e.gvl.vendorIds),r=(e,t)=>{let r=n.indexOf(e);if(n.indexOf(t)-r>0){let t=n.indexOf(e+1);return{nextVendorId:n[t],index:n[r+1]}}return{nextVendorId:e,index:e}},i=new Map;e.getRestrictions().forEach(n=>{t+=K.encode(n.purposeId,G.purposeId),t+=K.encode(n.restrictionType,G.restrictionType);let a=e.getVendorsSet(n),o=0,s=``;if(i.has(a)){let e=i.get(a);o=e.numEntries,s=e.rangeField}else{let e=Array.from(a).sort((e,t)=>e-t),t=e.length,n=0;for(let i=0;in?c=!0:o>i&&o{i+=wr.encode(r),a=e.maxId>c&&l{let t=e.length===1;n+=wr.encode(!t),n+=K.encode(e[0],G.vendorId),t||(n+=K.encode(e[1],G.vendorId))}),n}};function jr(){return{[V.version]:K,[V.created]:Tr,[V.lastUpdated]:Tr,[V.cmpId]:K,[V.cmpVersion]:K,[V.consentScreen]:K,[V.consentLanguage]:Dr,[V.vendorListVersion]:K,[V.policyVersion]:K,[V.isServiceSpecific]:wr,[V.useNonStandardTexts]:wr,[V.specialFeatureOptins]:Er,[V.purposeConsents]:Er,[V.purposeLegitimateInterests]:Er,[V.purposeOneTreatment]:wr,[V.publisherCountryCode]:Dr,[V.vendorConsents]:Ar,[V.vendorLegitimateInterests]:Ar,[V.publisherRestrictions]:Or,segmentType:K,[V.vendorsDisclosed]:Ar,[V.vendorsAllowed]:Ar,[V.publisherConsents]:Er,[V.publisherLegitimateInterests]:Er,[V.numCustomPurposes]:K,[V.publisherCustomConsents]:Er,[V.publisherCustomLegitimateInterests]:Er}}var Mr=class{constructor(){F(this,`1`,{[U.CORE]:[V.version,V.created,V.lastUpdated,V.cmpId,V.cmpVersion,V.consentScreen,V.consentLanguage,V.vendorListVersion,V.purposeConsents,V.vendorConsents]}),F(this,`2`,{[U.CORE]:[V.version,V.created,V.lastUpdated,V.cmpId,V.cmpVersion,V.consentScreen,V.consentLanguage,V.vendorListVersion,V.policyVersion,V.isServiceSpecific,V.useNonStandardTexts,V.specialFeatureOptins,V.purposeConsents,V.purposeLegitimateInterests,V.purposeOneTreatment,V.publisherCountryCode,V.vendorConsents,V.vendorLegitimateInterests,V.publisherRestrictions],[U.VENDORS_DISCLOSED]:[V.vendorsDisclosed],[U.PUBLISHER_TC]:[V.publisherConsents,V.publisherLegitimateInterests,V.numCustomPurposes,V.publisherCustomConsents,V.publisherCustomLegitimateInterests],[U.VENDORS_ALLOWED]:[V.vendorsAllowed]})}},Nr=class{constructor(e,t){if(F(this,`1`,[U.CORE]),F(this,`2`,[U.CORE]),e.version===2){if(e.isServiceSpecific)this[2].push(U.VENDORS_DISCLOSED),this[2].push(U.PUBLISHER_TC);else{let n=!!(t&&t.isForVendors);n&&e[V.supportOOB]!==!0||this[2].push(U.VENDORS_DISCLOSED),n&&(e[V.supportOOB]&&e[V.vendorsAllowed].size>0&&this[2].push(U.VENDORS_ALLOWED),this[2].push(U.PUBLISHER_TC))}}}},Pr=class{static encode(e,t){let n;try{n=this.fieldSequence[String(e.version)][t]}catch(n){throw new Jn(`Unable to encode version: ${e.version}, segment: ${t}`)}let r=``;t!==U.CORE&&(r=K.encode(ir.KEY_TO_ID[t],G.segmentType));let i=jr();return n.forEach(n=>{let a=e[n],o=i[n],s=G[n];s===void 0&&this.isPublisherCustom(n)&&(s=Number(e[V.numCustomPurposes]));try{r+=o.encode(a,s)}catch(e){throw new Jn(`Error encoding ${t}->${n}: ${e.message}`)}}),Zn.encode(r)}static decode(e,t,n){let r=Zn.decode(e),i=0;n===U.CORE&&(t.version=K.decode(r.substr(i,G[V.version]),G[V.version])),n!==U.CORE&&(i+=G.segmentType);let a=this.fieldSequence[String(t.version)][n],o=jr();return a.forEach(e=>{let n=o[e],a=G[e];if(a===void 0&&this.isPublisherCustom(e)&&(a=Number(t[V.numCustomPurposes])),a!==0){let o=r.substr(i,a);if(t[e]=n===Ar?n.decode(o,t.version):n.decode(o,a),Number.isInteger(a))i+=a;else if(Number.isInteger(t[e].bitLength))i+=t[e].bitLength;else throw new qn(e)}}),t}static isPublisherCustom(e){return e.indexOf(`publisherCustom`)===0}};F(Pr,`fieldSequence`,new Mr);var Fr=class{static process(e,t){let n=e.gvl;if(!n)throw new Jn(`Unable to encode TCModel without a GVL`);if(!n.isReady)throw new Jn(`Unable to encode TCModel tcModel.gvl.readyPromise is not resolved`);e.consentLanguage=n.language.slice(0,2).toUpperCase(),e.version=(t==null?void 0:t.version)>0&&(t==null?void 0:t.version)<=this.processor.length?t.version:this.processor.length;let r=e.version-1;if(!this.processor[r])throw new Jn(`Invalid version: ${e.version}`);return this.processor[r](e,n)}};F(Fr,`processor`,[e=>e,(e,t)=>{e.publisherRestrictions.gvl=t,e.purposeLegitimateInterests.unset([1,3,4,5,6]);let n=new Map;return n.set(`legIntPurposes`,e.vendorLegitimateInterests),n.set(`purposes`,e.vendorConsents),n.forEach((n,r)=>{n.forEach((i,a)=>{if(i){let i=t.vendors[a];if(!i||i.deletedDate)n.unset(a);else if(i[r].length===0){if(e.isServiceSpecific){if(i.flexiblePurposes.length===0)n.unset(a);else{let t=e.publisherRestrictions.getRestrictions(a),i=!1;for(let e=0,n=t.length;e{let o=new XMLHttpRequest;o.withCredentials=n,o.addEventListener(`load`,()=>{if(o.readyState==XMLHttpRequest.DONE){if(o.status>=200&&o.status<300){let e=o.response;if(typeof e==`string`)try{e=JSON.parse(e)}catch(e){}i(e)}else a(Error(`HTTP Status: ${o.status} response type: ${o.responseType}`))}}),o.addEventListener(`error`,()=>{a(Error(`error`))}),o.addEventListener(`abort`,()=>{a(Error(`aborted`))}),t===null?o.open(`GET`,e,!0):o.open(`POST`,e,!0),o.responseType=`json`,o.timeout=r,o.ontimeout=()=>{a(Error(`Timeout `+r+`ms `+e))},o.send(t)})}static post(e,t,n=!1,r=0){return this.absCall(e,JSON.stringify(t),n,r)}static fetch(e,t=!1,n=0){return this.absCall(e,null,t,n)}},q=class e extends $n{static set baseUrl(e){if(/^https?:\/\/vendorlist\.consensu\.org\//.test(e))throw new Yn(`Invalid baseUrl! You may not pull directly from vendorlist.consensu.org and must provide your own cache`);e.length>0&&e[e.length-1]!==`/`&&(e+=`/`),this.baseUrl_=e}static get baseUrl(){return this.baseUrl_}constructor(t,n){super(),F(this,`readyPromise`,void 0),F(this,`gvlSpecificationVersion`,void 0),F(this,`vendorListVersion`,void 0),F(this,`tcfPolicyVersion`,void 0),F(this,`lastUpdated`,void 0),F(this,`purposes`,void 0),F(this,`specialPurposes`,void 0),F(this,`features`,void 0),F(this,`specialFeatures`,void 0),F(this,`isReady_`,!1),F(this,`vendors_`,void 0),F(this,`vendorIds`,void 0),F(this,`fullVendorList`,void 0),F(this,`byPurposeVendorMap`,void 0),F(this,`bySpecialPurposeVendorMap`,void 0),F(this,`byFeatureVendorMap`,void 0),F(this,`bySpecialFeatureVendorMap`,void 0),F(this,`stacks`,void 0),F(this,`dataCategories`,void 0),F(this,`standardTexts`,void 0),F(this,`lang_`,void 0),F(this,`cacheLang_`,void 0),F(this,`isLatest`,!1);let r=e.baseUrl,i=n==null?void 0:n.language;if(i)try{i=e.consentLanguages.parseLanguage(i)}catch(e){throw new Yn(`Error during parsing the language: `+e.message)}if(this.lang_=i||e.DEFAULT_LANGUAGE,this.cacheLang_=i||e.DEFAULT_LANGUAGE,this.isVendorList(t))this.populate(t),this.readyPromise=Promise.resolve();else{if(!r)throw new Yn(`must specify GVL.baseUrl before loading GVL json`);if(t>0){let n=t;e.CACHE.has(n)?(this.populate(e.CACHE.get(n)),this.readyPromise=Promise.resolve()):(r+=e.versionedFilename.replace(`[VERSION]`,String(n)),this.readyPromise=this.fetchJson(r))}else e.CACHE.has(e.LATEST_CACHE_KEY)?(this.populate(e.CACHE.get(e.LATEST_CACHE_KEY)),this.readyPromise=Promise.resolve()):(this.isLatest=!0,this.readyPromise=this.fetchJson(r+e.latestFilename))}}static emptyLanguageCache(t){let n=!1;return t==null&&e.LANGUAGE_CACHE.size>0?(e.LANGUAGE_CACHE=new Map,n=!0):typeof t==`string`&&this.consentLanguages.has(t.toUpperCase())&&(e.LANGUAGE_CACHE.delete(t.toUpperCase()),n=!0),n}static emptyCache(t){let n=!1;return Number.isInteger(t)&&t>=0?(e.CACHE.delete(t),n=!0):t===void 0&&(e.CACHE=new Map,n=!0),n}cacheLanguage(){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,standardTexts:this.standardTexts})}async fetchJson(e){try{this.populate(await Ir.fetch(e))}catch(e){throw new Yn(e.message)}}getJson(){return{gvlSpecificationVersion:this.gvlSpecificationVersion,vendorListVersion:this.vendorListVersion,tcfPolicyVersion:this.tcfPolicyVersion,lastUpdated:this.lastUpdated,purposes:this.purposes,specialPurposes:this.specialPurposes,features:this.features,specialFeatures:this.specialFeatures,...(this.standardTexts?{standardTexts:this.standardTexts}:{}),stacks:this.stacks,dataCategories:this.dataCategories,vendors:this.fullVendorList}}cloneSpecialFeatures(){let t={};for(let n of Object.keys(this.specialFeatures))t[n]=e.cloneFeature(this.specialFeatures[n]);return t}cloneFeatures(){let t={};for(let n of Object.keys(this.features))t[n]=e.cloneFeature(this.features[n]);return t}cloneStacks(){let t={};for(let n of Object.keys(this.stacks))t[n]=e.cloneStack(this.stacks[n]);return t}cloneDataCategories(){let t={};for(let n of Object.keys(this.dataCategories))t[n]=e.cloneDataCategory(this.dataCategories[n]);return t}cloneSpecialPurposes(){let t={};for(let n of Object.keys(this.specialPurposes))t[n]=e.clonePurpose(this.specialPurposes[n]);return t}clonePurposes(){let t={};for(let n of Object.keys(this.purposes))t[n]=e.clonePurpose(this.purposes[n]);return t}static clonePurpose(e){return{id:e.id,name:e.name,description:e.description,...(e.descriptionLegal?{descriptionLegal:e.descriptionLegal}:{}),...(e.illustrations?{illustrations:Array.from(e.illustrations)}:{})}}static cloneFeature(e){return{id:e.id,name:e.name,description:e.description,...(e.descriptionLegal?{descriptionLegal:e.descriptionLegal}:{}),...(e.illustrations?{illustrations:Array.from(e.illustrations)}:{})}}static cloneDataCategory(e){return{id:e.id,name:e.name,description:e.description}}static cloneStack(e){return{id:e.id,name:e.name,description:e.description,purposes:Array.from(e.purposes),specialFeatures:Array.from(e.specialFeatures)}}static cloneDataRetention(e){return{...(typeof e.stdRetention==`number`?{stdRetention:e.stdRetention}:{}),purposes:{...e.purposes},specialPurposes:{...e.specialPurposes}}}static cloneVendorUrls(e){return e.map(e=>({langId:e.langId,privacy:e.privacy,...(e.legIntClaim?{legIntClaim:e.legIntClaim}:{})}))}static cloneVendor(e){return{id:e.id,name:e.name,purposes:Array.from(e.purposes),legIntPurposes:Array.from(e.legIntPurposes),flexiblePurposes:Array.from(e.flexiblePurposes),specialPurposes:Array.from(e.specialPurposes),features:Array.from(e.features),specialFeatures:Array.from(e.specialFeatures),...(e.overflow?{overflow:{httpGetLimit:e.overflow.httpGetLimit}}:{}),...(typeof e.cookieMaxAgeSeconds==`number`||e.cookieMaxAgeSeconds===null?{cookieMaxAgeSeconds:e.cookieMaxAgeSeconds}:{}),...(e.usesCookies===void 0?{}:{usesCookies:e.usesCookies}),...(e.policyUrl?{policyUrl:e.policyUrl}:{}),...(e.cookieRefresh===void 0?{}:{cookieRefresh:e.cookieRefresh}),...(e.usesNonCookieAccess===void 0?{}:{usesNonCookieAccess:e.usesNonCookieAccess}),...(e.dataRetention?{dataRetention:this.cloneDataRetention(e.dataRetention)}:{}),...(e.urls?{urls:this.cloneVendorUrls(e.urls)}:{}),...(e.dataDeclaration?{dataDeclaration:Array.from(e.dataDeclaration)}:{}),...(e.deviceStorageDisclosureUrl?{deviceStorageDisclosureUrl:e.deviceStorageDisclosureUrl}:{}),...(e.deletedDate?{deletedDate:e.deletedDate}:{})}}cloneVendors(){let t={};for(let n of Object.keys(this.fullVendorList))t[n]=e.cloneVendor(this.fullVendorList[n]);return t}async changeLanguage(t){let n=t;try{n=e.consentLanguages.parseLanguage(t)}catch(e){throw new Yn(`Error during parsing the language: `+e.message)}let r=t.toUpperCase();if((n.toLowerCase()!==e.DEFAULT_LANGUAGE.toLowerCase()||e.LANGUAGE_CACHE.has(r))&&n!==this.lang_){if(this.lang_=n,e.LANGUAGE_CACHE.has(r)){let t=e.LANGUAGE_CACHE.get(r);for(let e in t)t.hasOwnProperty(e)&&(this[e]=t[e])}else{let t=e.baseUrl+e.languageFilename.replace(`[LANG]`,this.lang_.toLowerCase());try{await this.fetchJson(t),this.cacheLang_=r,this.cacheLanguage()}catch(e){throw new Yn(`unable to load language: `+e.message)}}}}get language(){return this.lang_}isVendorList(e){return e!==void 0&&e.vendors!==void 0}populate(t){this.purposes=t.purposes,this.specialPurposes=t.specialPurposes,this.features=t.features,this.specialFeatures=t.specialFeatures,this.standardTexts=t.standardTexts,this.stacks=t.stacks,this.dataCategories=t.dataCategories,this.isVendorList(t)&&(this.gvlSpecificationVersion=t.gvlSpecificationVersion,this.tcfPolicyVersion=t.tcfPolicyVersion,this.vendorListVersion=t.vendorListVersion,this.lastUpdated=t.lastUpdated,typeof this.lastUpdated==`string`&&(this.lastUpdated=new Date(this.lastUpdated)),this.vendors_=t.vendors,this.fullVendorList=t.vendors,this.mapVendors(),this.isReady_=!0,this.isLatest&&e.CACHE.set(e.LATEST_CACHE_KEY,this.getJson()),e.CACHE.has(this.vendorListVersion)||e.CACHE.set(this.vendorListVersion,this.getJson())),this.cacheLanguage()}mapVendors(e){this.byPurposeVendorMap={},this.bySpecialPurposeVendorMap={},this.byFeatureVendorMap={},this.bySpecialFeatureVendorMap={},Object.keys(this.purposes).forEach(e=>{this.byPurposeVendorMap[e]={legInt:new Set,consent:new Set,flexible:new Set}}),Object.keys(this.specialPurposes).forEach(e=>{this.bySpecialPurposeVendorMap[e]=new Set}),Object.keys(this.features).forEach(e=>{this.byFeatureVendorMap[e]=new Set}),Object.keys(this.specialFeatures).forEach(e=>{this.bySpecialFeatureVendorMap[e]=new Set}),Array.isArray(e)||(e=Object.keys(this.fullVendorList).map(e=>+e)),this.vendorIds=new Set(e),this.vendors_=e.reduce((e,t)=>{let n=this.vendors_[String(t)];return n&&n.deletedDate===void 0&&(n.purposes.forEach(e=>{this.byPurposeVendorMap[String(e)].consent.add(t)}),n.specialPurposes.forEach(e=>{this.bySpecialPurposeVendorMap[String(e)].add(t)}),n.legIntPurposes.forEach(e=>{this.byPurposeVendorMap[String(e)].legInt.add(t)}),n.flexiblePurposes&&n.flexiblePurposes.forEach(e=>{this.byPurposeVendorMap[String(e)].flexible.add(t)}),n.features.forEach(e=>{this.byFeatureVendorMap[String(e)].add(t)}),n.specialFeatures.forEach(e=>{this.bySpecialFeatureVendorMap[String(e)].add(t)}),e[t]=n),e},{})}getFilteredVendors(e,t,n,r){let i=e.charAt(0).toUpperCase()+e.slice(1),a,o={};return a=e===`purpose`&&n?this[`by`+i+`VendorMap`][String(t)][n]:this[`by`+(r?`Special`:``)+i+`VendorMap`][String(t)],a.forEach(e=>{o[String(e)]=this.vendors[String(e)]}),o}getVendorsWithConsentPurpose(e){return this.getFilteredVendors(`purpose`,e,`consent`)}getVendorsWithLegIntPurpose(e){return this.getFilteredVendors(`purpose`,e,`legInt`)}getVendorsWithFlexiblePurpose(e){return this.getFilteredVendors(`purpose`,e,`flexible`)}getVendorsWithSpecialPurpose(e){return this.getFilteredVendors(`purpose`,e,void 0,!0)}getVendorsWithFeature(e){return this.getFilteredVendors(`feature`,e)}getVendorsWithSpecialFeature(e){return this.getFilteredVendors(`feature`,e,void 0,!0)}get vendors(){return this.vendors_}narrowVendorsTo(e){this.mapVendors(e)}get isReady(){return this.isReady_}clone(){let t=new e(JSON.parse(JSON.stringify(this.getJson())));return this.lang_!==e.DEFAULT_LANGUAGE&&t.changeLanguage(this.lang_),t}static isInstanceOf(e){return typeof e==`object`&&typeof e.narrowVendorsTo==`function`}};F(q,`LANGUAGE_CACHE`,new Map),F(q,`CACHE`,new Map),F(q,`LATEST_CACHE_KEY`,0),F(q,`DEFAULT_LANGUAGE`,`EN`),F(q,`consentLanguages`,new Qn),F(q,`baseUrl_`,void 0),F(q,`latestFilename`,`vendor-list.json`),F(q,`versionedFilename`,`archives/vendor-list-v[VERSION].json`),F(q,`languageFilename`,`purposes-[LANG].json`);var Lr=class extends $n{constructor(e){super(),F(this,`isServiceSpecific_`,!0),F(this,`supportOOB_`,!1),F(this,`useNonStandardTexts_`,!1),F(this,`purposeOneTreatment_`,!1),F(this,`publisherCountryCode_`,`AA`),F(this,`version_`,2),F(this,`consentScreen_`,0),F(this,`policyVersion_`,5),F(this,`consentLanguage_`,`EN`),F(this,`cmpId_`,0),F(this,`cmpVersion_`,0),F(this,`vendorListVersion_`,0),F(this,`numCustomPurposes_`,0),F(this,`gvl_`,void 0),F(this,`created`,void 0),F(this,`lastUpdated`,void 0),F(this,`specialFeatureOptins`,new W),F(this,`purposeConsents`,new W),F(this,`purposeLegitimateInterests`,new W),F(this,`publisherConsents`,new W),F(this,`publisherLegitimateInterests`,new W),F(this,`publisherCustomConsents`,new W),F(this,`publisherCustomLegitimateInterests`,new W),F(this,`customPurposes`,void 0),F(this,`vendorConsents`,new W),F(this,`vendorLegitimateInterests`,new W),F(this,`vendorsDisclosed`,new W),F(this,`vendorsAllowed`,new W),F(this,`publisherRestrictions`,new nr),e&&(this.gvl=e),this.updated()}set gvl(e){q.isInstanceOf(e)||(e=new q(e)),this.gvl_=e,this.publisherRestrictions.gvl=e}get gvl(){return this.gvl_}set cmpId(e){if(e=Number(e),Number.isInteger(e)&&e>1)this.cmpId_=e;else throw new Xn(`cmpId`,e)}get cmpId(){return this.cmpId_}set cmpVersion(e){if(e=Number(e),Number.isInteger(e)&&e>-1)this.cmpVersion_=e;else throw new Xn(`cmpVersion`,e)}get cmpVersion(){return this.cmpVersion_}set consentScreen(e){if(e=Number(e),Number.isInteger(e)&&e>-1)this.consentScreen_=e;else throw new Xn(`consentScreen`,e)}get consentScreen(){return this.consentScreen_}set consentLanguage(e){this.consentLanguage_=e}get consentLanguage(){return this.consentLanguage_}set publisherCountryCode(e){if(/^([A-z]){2}$/.test(e))this.publisherCountryCode_=e.toUpperCase();else throw new Xn(`publisherCountryCode`,e)}get publisherCountryCode(){return this.publisherCountryCode_}set vendorListVersion(e){if(e=Number(e)|0,e<0)throw new Xn(`vendorListVersion`,e);this.vendorListVersion_=e}get vendorListVersion(){return this.gvl?this.gvl.vendorListVersion:this.vendorListVersion_}set policyVersion(e){if(this.policyVersion_=parseInt(e,10),this.policyVersion_<0)throw new Xn(`policyVersion`,e)}get policyVersion(){return this.gvl?this.gvl.tcfPolicyVersion:this.policyVersion_}set version(e){this.version_=parseInt(e,10)}get version(){return this.version_}set isServiceSpecific(e){this.isServiceSpecific_=e}get isServiceSpecific(){return this.isServiceSpecific_}set useNonStandardTexts(e){this.useNonStandardTexts_=e}get useNonStandardTexts(){return this.useNonStandardTexts_}set supportOOB(e){this.supportOOB_=e}get supportOOB(){return this.supportOOB_}set purposeOneTreatment(e){this.purposeOneTreatment_=e}get purposeOneTreatment(){return this.purposeOneTreatment_}setAllVendorConsents(){this.vendorConsents.set(this.gvl.vendors)}unsetAllVendorConsents(){this.vendorConsents.empty()}setAllVendorsDisclosed(){this.vendorsDisclosed.set(this.gvl.vendors)}unsetAllVendorsDisclosed(){this.vendorsDisclosed.empty()}setAllVendorsAllowed(){this.vendorsAllowed.set(this.gvl.vendors)}unsetAllVendorsAllowed(){this.vendorsAllowed.empty()}setAllVendorLegitimateInterests(){this.vendorLegitimateInterests.set(this.gvl.vendors)}unsetAllVendorLegitimateInterests(){this.vendorLegitimateInterests.empty()}setAllPurposeConsents(){this.purposeConsents.set(this.gvl.purposes)}unsetAllPurposeConsents(){this.purposeConsents.empty()}setAllPurposeLegitimateInterests(){this.purposeLegitimateInterests.set(this.gvl.purposes)}unsetAllPurposeLegitimateInterests(){this.purposeLegitimateInterests.empty()}setAllSpecialFeatureOptins(){this.specialFeatureOptins.set(this.gvl.specialFeatures)}unsetAllSpecialFeatureOptins(){this.specialFeatureOptins.empty()}setAll(){this.setAllVendorConsents(),this.setAllPurposeLegitimateInterests(),this.setAllSpecialFeatureOptins(),this.setAllPurposeConsents(),this.setAllVendorLegitimateInterests()}unsetAll(){this.unsetAllVendorConsents(),this.unsetAllPurposeLegitimateInterests(),this.unsetAllSpecialFeatureOptins(),this.unsetAllPurposeConsents(),this.unsetAllVendorLegitimateInterests()}get numCustomPurposes(){let e=this.numCustomPurposes_;if(typeof this.customPurposes==`object`){let t=Object.keys(this.customPurposes).sort((e,t)=>Number(e)-Number(t));e=parseInt(t.pop(),10)}return e}set numCustomPurposes(e){if(this.numCustomPurposes_=parseInt(e,10),this.numCustomPurposes_<0)throw new Xn(`numCustomPurposes`,e)}updated(){let e=new Date,t=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()));this.created=t,this.lastUpdated=t}};F(Lr,`consentLanguages`,q.consentLanguages);var Rr={},zr=class{static encode(e,t){let n=``,r;return e=Fr.process(e,t),r=Array.isArray(t==null?void 0:t.segments)?t.segments:new Nr(e,t)[``+e.version],r.forEach((t,i)=>{let a=``;i{Gr=e},qr=class{constructor(){F(this,`eventQueue`,new Map),F(this,`queueNumber`,0)}add(e){return this.eventQueue.set(this.queueNumber,e),this.queueNumber++}remove(e){return this.eventQueue.delete(e)}exec(){this.eventQueue.forEach((e,t)=>{new Gr(e.callback,e.param,t,e.next)})}clear(){this.queueNumber=0,this.eventQueue.clear()}get size(){return this.eventQueue.size}},Y=class{static reset(){delete this.cmpId,delete this.cmpVersion,delete this.eventStatus,delete this.gdprApplies,delete this.tcModel,delete this.tcString,delete this.tcfPolicyVersion,this.cmpStatus=Hr.LOADING,this.disabled=!1,this.displayStatus=Ur.HIDDEN,this.eventQueue.clear()}};F(Y,`apiVersion`,`2`),F(Y,`tcfPolicyVersion`,void 0),F(Y,`eventQueue`,new qr),F(Y,`cmpStatus`,Hr.LOADING),F(Y,`disabled`,!1),F(Y,`displayStatus`,Ur.HIDDEN),F(Y,`cmpId`,void 0),F(Y,`cmpVersion`,void 0),F(Y,`eventStatus`,void 0),F(Y,`gdprApplies`,void 0),F(Y,`tcModel`,void 0),F(Y,`tcString`,void 0);var Jr=class{constructor(){F(this,`cmpId`,Y.cmpId),F(this,`cmpVersion`,Y.cmpVersion),F(this,`gdprApplies`,Y.gdprApplies),F(this,`tcfPolicyVersion`,Y.tcfPolicyVersion)}},Yr=class extends Jr{constructor(...e){super(...e),F(this,`cmpStatus`,Hr.ERROR)}},Xr={},Zr=class extends Jr{constructor(e,t){if(super(),F(this,`tcString`,void 0),F(this,`listenerId`,void 0),F(this,`eventStatus`,void 0),F(this,`cmpStatus`,void 0),F(this,`isServiceSpecific`,void 0),F(this,`useNonStandardTexts`,void 0),F(this,`publisherCC`,void 0),F(this,`purposeOneTreatment`,void 0),F(this,`outOfBand`,void 0),F(this,`purpose`,void 0),F(this,`vendor`,void 0),F(this,`specialFeatureOptins`,void 0),F(this,`publisher`,void 0),this.eventStatus=Y.eventStatus,this.cmpStatus=Y.cmpStatus,this.listenerId=t,Y.gdprApplies){let t=Y.tcModel;this.tcString=Y.tcString,this.isServiceSpecific=t.isServiceSpecific,this.useNonStandardTexts=t.useNonStandardTexts,this.purposeOneTreatment=t.purposeOneTreatment,this.publisherCC=t.publisherCountryCode,this.isServiceSpecific===!1?this.outOfBand={allowedVendors:this.createVectorField(t.vendorsAllowed,e),disclosedVendors:this.createVectorField(t.vendorsDisclosed,e)}:delete this.outOfBand,this.purpose={consents:this.createVectorField(t.purposeConsents),legitimateInterests:this.createVectorField(t.purposeLegitimateInterests)},this.vendor={consents:this.createVectorField(t.vendorConsents,e),legitimateInterests:this.createVectorField(t.vendorLegitimateInterests,e),disclosedVendors:this.createVectorField(t.vendorsDisclosed,e)},this.specialFeatureOptins=this.createVectorField(t.specialFeatureOptins),this.publisher={consents:this.createVectorField(t.publisherConsents),legitimateInterests:this.createVectorField(t.publisherLegitimateInterests),customPurpose:{consents:this.createVectorField(t.publisherCustomConsents),legitimateInterests:this.createVectorField(t.publisherCustomLegitimateInterests)},restrictions:this.createRestrictions(t.publisherRestrictions)}}}createRestrictions(e){if(Xr[Y.tcString])return Xr[Y.tcString];Xr={};let t={};if(e.numRestrictions>0){let n=e.getMaxVendorId();for(let r=1;r<=n;r++){let n=r.toString();e.getRestrictions(r).forEach(e=>{let r=e.purposeId.toString();t[r]||(t[r]={}),t[r][n]=e.restrictionType})}}return Xr[Y.tcString]=t,t}createVectorField(e,t){return t?t.reduce((t,n)=>(t[String(n)]=e.has(Number(n)),t),{}):[...e].reduce((e,t)=>(e[t[0].toString(10)]=t[1],e),{})}},Qr=class extends Zr{constructor(e){super(e),delete this.outOfBand}createVectorField(e){return[...e].reduce((e,t)=>(e+=t[1]?`1`:`0`,e),``)}createRestrictions(e){let t={};if(e.numRestrictions>0){let n=e.getMaxVendorId();e.getRestrictions().forEach(e=>{t[e.purposeId.toString()]=`_`.repeat(n)});for(let r=0;r{let n=e.restrictionType.toString(),i=e.purposeId.toString(),a=t[i].substr(0,r),o=t[i].substr(r+1);t[i]=a+n+o})}}return t}},$r=class extends Jr{constructor(){super(),F(this,`cmpLoaded`,!0),F(this,`cmpStatus`,Y.cmpStatus),F(this,`displayStatus`,Y.displayStatus),F(this,`apiVersion`,String(Y.apiVersion)),F(this,`gvlVersion`,void 0),Y.tcModel&&Y.tcModel.vendorListVersion&&(this.gvlVersion=+Y.tcModel.vendorListVersion)}},ei=class{constructor(e,t,n,r){F(this,`listenerId`,void 0),F(this,`callback`,void 0),F(this,`next`,void 0),F(this,`param`,void 0),F(this,`success`,!0),Object.assign(this,{callback:e,listenerId:n,param:t,next:r});try{this.respond()}catch(e){this.invokeCallback(null)}}invokeCallback(e){let t=e!==null;typeof this.next==`function`?this.callback(this.next,e,t):this.callback(e,t)}},ti=class extends ei{respond(){this.invokeCallback(new $r)}},ni=class extends ei{respond(){this.throwIfParamInvalid(),this.invokeCallback(new Zr(this.param,this.listenerId))}throwIfParamInvalid(){if(this.param!==void 0&&(!Array.isArray(this.param)||!this.param.every(Number.isInteger)))throw Error(`Invalid Parameter`)}};Kr(ni);var ri=class extends ni{respond(){this.throwIfParamInvalid(),this.invokeCallback(new Qr(this.param))}},ii=class extends ei{respond(){let e=Y.tcModel,t=e.vendorListVersion,n;this.param===void 0&&(this.param=t),n=this.param===t&&e.gvl?e.gvl:new q(this.param),n.readyPromise.then(()=>{this.invokeCallback(n.getJson())})}},ai=class extends ni{respond(){this.listenerId=Y.eventQueue.add({callback:this.callback,param:this.param,next:this.next}),super.respond()}},oi=class extends ei{respond(){this.invokeCallback(Y.eventQueue.remove(this.param))}},si=J.PING,ci=J.GET_TC_DATA,li=J.GET_IN_APP_TC_DATA,ui=J.GET_VENDOR_LIST,di=J.ADD_EVENT_LISTENER,fi=J.REMOVE_EVENT_LISTENER,X=class{};F(X,si,ti),F(X,ci,ni),F(X,li,ri),F(X,ui,ii),F(X,di,ai),F(X,fi,oi);var pi=class{static has(e){return typeof e==`string`&&(e=Number(e)),this.set_.has(e)}};F(pi,`set_`,new Set([0,2,void 0,null]));var mi=`__tcfapi`,hi=class{constructor(e){if(F(this,`callQueue`,void 0),F(this,`customCommands`,void 0),e){let t=J.ADD_EVENT_LISTENER;if(e!=null&&e[t])throw Error(`Built-In Custom Commmand for ${t} not allowed: Use ${J.GET_TC_DATA} instead`);if(t=J.REMOVE_EVENT_LISTENER,e!=null&&e[t])throw Error(`Built-In Custom Commmand for ${t} not allowed`);e!=null&&e[J.GET_TC_DATA]&&(e[J.ADD_EVENT_LISTENER]=e[J.GET_TC_DATA],e[J.REMOVE_EVENT_LISTENER]=e[J.GET_TC_DATA]),this.customCommands=e}try{this.callQueue=window.__tcfapi()||[]}catch(e){this.callQueue=[]}finally{window[mi]=this.apiCall.bind(this),this.purgeQueuedCalls()}}apiCall(e,t,n,...r){if(typeof e!=`string`&&typeof n==`function`)n(null,!1);else if(!pi.has(t))n(null,!1);else if(typeof n!=`function`)throw Error(`invalid callback function`);else Y.disabled?n(new Yr,!1):!this.isCustomCommand(e)&&!this.isBuiltInCommand(e)?n(null,!1):this.isCustomCommand(e)&&!this.isBuiltInCommand(e)?this.customCommands[e](n,...r):e===J.PING?this.isCustomCommand(e)?new X[e](this.customCommands[e],r[0],null,n):new X[e](n,r[0]):Y.tcModel===void 0?this.callQueue.push([e,t,n,...r]):this.isCustomCommand(e)&&this.isBuiltInCommand(e)?new X[e](this.customCommands[e],r[0],null,n):new X[e](n,r[0])}purgeQueuedCalls(){let e=this.callQueue;this.callQueue=[],e.forEach(e=>{window[mi](...e)})}isCustomCommand(e){return this.customCommands&&typeof this.customCommands[e]==`function`}isBuiltInCommand(e){return X[e]!==void 0}},gi=class{constructor(e,t,n=!0,r){F(this,`callResponder`,void 0),F(this,`isServiceSpecific`,void 0),F(this,`numUpdates`,0),this.throwIfInvalidInt(e,`cmpId`,2),this.throwIfInvalidInt(t,`cmpVersion`,0),Y.cmpId=e,Y.cmpVersion=t,Y.tcfPolicyVersion=5,this.isServiceSpecific=!!n,this.callResponder=new hi(r)}throwIfInvalidInt(e,t,n){if(!(typeof e==`number`&&Number.isInteger(e)&&e>=n))throw Error(`Invalid ${t}: ${e}`)}update(e,t=!1,{preDecodedTCModel:n=null,decodeWithCache:r=!1}={}){if(Y.disabled)throw Error(`CmpApi Disabled`);Y.cmpStatus=Hr.LOADED,t?(Y.displayStatus=Ur.VISIBLE,Y.eventStatus=Wr.CMP_UI_SHOWN):Y.tcModel===void 0?(Y.displayStatus=Ur.DISABLED,Y.eventStatus=Wr.TC_LOADED):(Y.displayStatus=Ur.HIDDEN,Y.eventStatus=Wr.USER_ACTION_COMPLETE),Y.gdprApplies=e!==null,Y.gdprApplies?(e===``?(Y.tcModel=new Lr,Y.tcModel.cmpId=Y.cmpId,Y.tcModel.cmpVersion=Y.cmpVersion):Y.tcModel=n||zr.decode(e,null,r),Y.tcModel.isServiceSpecific=this.isServiceSpecific,Y.tcfPolicyVersion=Number(Y.tcModel.policyVersion),Y.tcString=e):Y.tcModel=null,this.numUpdates===0?this.callResponder.purgeQueuedCalls():Y.eventQueue.exec(),this.numUpdates++}disable(){Y.disabled=!0,Y.cmpStatus=Hr.ERROR}},_i=class e{constructor(e,t,n,r,i=null){F(this,`acString`,void 0),F(this,`googleVendorList`,[]),F(this,`googleVendorOptions`,[]),F(this,`httpGet`,void 0),F(this,`loggerService`,void 0),F(this,`acStringService`,void 0),F(this,`baseUrlVendorList`,void 0),F(this,`narrowGoogleVendorIds`,void 0),this.acStringService=t,this.baseUrlVendorList=e,this.httpGet=n,this.loggerService=r,this.narrowGoogleVendorIds=i}async fetchDataAndBuild(t){this.googleVendorOptions=[],this.acString=t;let n=`${this.baseUrlVendorList}/${e.googleVendorListFileName}`;return await dt(e=>this.httpGet(n+e)).then(e=>{this.googleVendorList=e;let t={googleVendorOptions:[]};try{t=this.createModel()}catch(e){this.loggerService.error(`ACModelService, check if the json respect the GVS used.`,e)}return t}).catch(e=>(this.loggerService.debug(`ACModelService, fetchAndBuildACModel unable to build the ACModel, fallback to empty ACModel.`,e),{googleVendorOptions:[]}))}createModel(){let e=Array.isArray(this.narrowGoogleVendorIds)&&this.narrowGoogleVendorIds.length>0;if(this.acStringService.isValid(this.acString)){let t=R.getEnabledVendorIds(this.acString);this.googleVendorList.forEach(n=>{if(!e||this.narrowGoogleVendorIds.includes(Number(n.provider_id))){let e=t.includes(String(n.provider_id));this.addGoogleVendorOptionToList(n,e)}})}else this.googleVendorList.forEach(t=>{(!e||this.narrowGoogleVendorIds.includes(Number(t.provider_id)))&&this.addGoogleVendorOptionToList(t,!0)});return{googleVendorOptions:this.googleVendorOptions}}addGoogleVendorOptionToList(e,t){let n={id:Number(e.provider_id),name:e.provider_name,state:t,policyUrl:e.policy_url};this.googleVendorOptions.push(n)}getGoogleVendorList(){return this.googleVendorList}static getClassName(){return`ACModelService`}};F(_i,`googleVendorListFileName`,`google-vendor-list.json`);var vi=class e{constructor(e,t,n,r,i,a){F(this,`acStringStorageKey`,void 0),F(this,`loggerService`,void 0),F(this,`localStorage`,void 0),F(this,`skipACStringCheck`,void 0),F(this,`useCompactACStringAsCookie`,void 0),F(this,`cookieService`,void 0),this.acStringStorageKey=e,this.loggerService=t,this.localStorage=n,this.skipACStringCheck=r,this.useCompactACStringAsCookie=i,this.cookieService=a}getEncoded(e){let t=R.encode(e);return this.loggerService.debug(`ACString built: `+t),t}persist(t){try{this.useCompactACStringAsCookie&&this.cookieService.setCookie(this.acStringStorageKey,e.encodeACString(t),365,{enableEncodeURIComponent:!0}),this.localStorage.setItem(this.acStringStorageKey,t)}catch(e){this.loggerService.debug(`Error saving ACString:`,e)}}retrieve(){try{if(this.useCompactACStringAsCookie){let t=``;try{t=e.decodeACString(this.cookieService.getCookie(this.acStringStorageKey))}catch(e){this.loggerService.error(e)}return t}var t;return(t=this.localStorage.getItem(this.acStringStorageKey))==null?``:t}catch(e){return this.loggerService.debug(`Error getting ACString:`,e),this.useCompactACStringAsCookie?``:R.composeACString([])}}clearStorage(){try{this.useCompactACStringAsCookie&&this.cookieService.removeCookiesByName(this.acStringStorageKey),this.localStorage.removeItem(this.acStringStorageKey)}catch(e){this.loggerService.debug(`Error deleting ACString:`,e)}}isValid(e){return this.skipACStringCheck&&!this.useCompactACStringAsCookie?(this.loggerService.debug(`Skip ACString validation check`),!0):(this.loggerService.debug(`Validity check ACString: `+e),typeof e!=`string`||e.length<2?!1:e[0]==R.acStringVersion?/^2\~((\d+)+(\.\d+)*)?\~dv\.((\d+)+(\.\d+)*)?$/.test(e):/^1\~((\d+)+(\.\d+)*)?$/.test(e))}static encodeACString(t){t=t.substring(2,t.length);let n=t.split(R.acStringDisclosedVendorSeparator),r=n[0],i=[];r&&(i=r.split(`.`).map(e=>Number(e)));let a=[],o=n[1];o&&(a=o.split(`.`).map(e=>Number(e)));let s=e.buildStringMapFromAsciiCode(i),c=e.buildStringMapFromAsciiCode(a),l=c.length>0?R.acStringDisclosedVendorSeparator+e.compressPopularStrings(c):``;return e.compressPopularStrings(s)+l}static buildStringMapFromAsciiCode(t){if(t.length==0)return``;let n=[t[0]];for(let e=0;e{let n=64+e;r+=String.fromCharCode(n)}),e.compressPopularStrings(r)}static decodeACString(t){let n=t.split(R.acStringDisclosedVendorSeparator),r=e.decompressPopularStrings(n[0]),i=e.decompressPopularStrings(n[1]);return R.composeACString(e.buildNumbersFromStringInAsciiCode(r),e.buildNumbersFromStringInAsciiCode(i))}static buildNumbersFromStringInAsciiCode(e){let t=[],n=0;return[...e].forEach((e,r)=>{let i=e.charCodeAt(0);if(i!==0){let e=i-64;n+=e,t.push(n)}}),t}static compressPopularStrings(t){return e.compressPopularStringsMap.forEach((e,n)=>{for(;t.includes(e);)t=t.replace(e,String(n))}),t}static decompressPopularStrings(t){return typeof t!=`string`||t===R.acStringEnabledVendorSeparator?``:(e.compressPopularStringsMap.forEach((e,n)=>{for(;t!=null&&t.includes(String(n));)t=t==null?void 0:t.replace(String(n),e)}),t)}static getClassName(){return`ACStringService`}};F(vi,`compressPopularStringsMap`,[`CC`,`BBBB`,`BBB`,`BB`,`AAAAAA`,`AAAAA`,`AAAA`,`AAA`,`AA`]);var yi=class e{constructor(e,t,n,r=!1){F(this,`cookieService`,void 0),F(this,`_pcVersion`,void 0),F(this,`_isAmp`,void 0),F(this,`_validateVersion`,void 0),this.cookieService=e,this._pcVersion=t,this._isAmp=n,this._validateVersion=r}getEncoded(e){return z.encode(this._pcVersion?this._pcVersion:0,e)}static getDecoded(e){return z.convertPCModelToMap(z.decode(e))}isValid(e){if(this._isAmp)return!0;if(typeof e==`string`&&e.includes(z.separator)){let t=e.split(z.separator),n=!this._validateVersion||String(this._pcVersion)===t[0],r=[z.ENABLED,z.DISABLED];return n&&r.includes(t[1].charAt(0))&&r.includes(t[1].charAt(1))&&r.includes(t[1].charAt(2))}return!1}persist(t){this.cookieService.setCookie(e.cookieName,t,e.cookieDuration)}retrieve(){return this.cookieService.getCookie(e.cookieName)}clearStorage(){this.cookieService.removeCookiesByName(e.cookieName)}static getClassName(){return`PCStringService`}};F(yi,`cookieName`,`pubtech-cmp-pcstring`),F(yi,`cookieDuration`,365);var bi=class e{constructor(e,t,n,r,i,a,o){F(this,`pcVersion`,void 0),F(this,`lang`,void 0),F(this,`pcStringService`,void 0),F(this,`baseAssetsUrl`,void 0),F(this,`httpGet`,void 0),F(this,`loggerService`,void 0),F(this,`internal_publisherCookiesConfig`,void 0),this.baseAssetsUrl=e,this.pcVersion=r,this.lang=i,this.pcStringService=t,this.httpGet=n,this.loggerService=a,this.internal_publisherCookiesConfig=o}async fetchDataAndBuild(t){var n,r,i,a;let o=this.createModel(t,((n=this.internal_publisherCookiesConfig)==null?void 0:n[this.lang][e.technicalCookiesKey])||[],((r=this.internal_publisherCookiesConfig)==null?void 0:r[this.lang][e.featureCookiesKey])||[],((i=this.internal_publisherCookiesConfig)==null?void 0:i[this.lang][e.userExperienceCookiesKey])||[],((a=this.internal_publisherCookiesConfig)==null?void 0:a[this.lang][e.measurementCookiesKey])||[]);if(this.pcVersion==null)return o;let s=`${this.baseAssetsUrl}/${this.lang.split(`-`)[0]}/cookie/${this.pcVersion}/${e.publisherCookieFileName}`;return await dt(e=>this.httpGet(s+e)).then(n=>this.createModel(t,n[e.technicalCookiesKey]||[],n[e.featureCookiesKey]||[],n[e.userExperienceCookiesKey]||[],n[e.measurementCookiesKey]||[])).catch(e=>(this.loggerService.debug(`PCModelService, fetchAndBuildPCModel unable to build the PCModel, fallback to empty PCModel.`,e),o))}createModel(e,t,n,r,i,a=!1){let o=``;this.pcStringService.isValid(e==null?null:e)&&(o=e);let s=o.length>0?o.split(`-`)[1]:null;return{technicalCookies:{data:t},featureCookiesChoice:{state:(s==null?void 0:s.charAt(0))===z.ENABLED||a,data:n},userExperienceCookiesChoice:{state:(s==null?void 0:s.charAt(1))===z.ENABLED||a,data:r},measurementCookiesChoice:{state:(s==null?void 0:s.charAt(2))===z.ENABLED||a,data:i}}}static getClassName(){return`PCModelService`}};F(bi,`publisherCookieFileName`,`publisher-cookie.json`),F(bi,`technicalCookiesKey`,`technicalCookies`),F(bi,`featureCookiesKey`,`featureCookies`),F(bi,`userExperienceCookiesKey`,`userExperienceCookies`),F(bi,`measurementCookiesKey`,`measurementCookies`);var xi=class{constructor(e,t,n,r){F(this,`_cmpApi`,void 0),F(this,`_additionalConsent`,``),this._cmpApi=new gi(e,t,n,{getTCData:async(e,t,n)=>{typeof t!=`boolean`&&t!=null&&(t.reallyImportantExtraProperty=!0,t.addtlConsent=this._additionalConsent,r&&(t.enableAdvertiserConsentMode=!0)),e(t,n)}})}setAdditionalConsent(e){return this._additionalConsent=e,this}signalLoadingError(){Y.tcModel===void 0&&(Y.cmpStatus=Hr.ERROR)}get cmpApi(){return this._cmpApi}static getClassName(){return`CmpApiProvider`}},Si=class{constructor(e,t,n,r,i,a){F(this,`_tcModel`,void 0),F(this,`_acModel`,void 0),F(this,`_pcModel`,void 0),F(this,`_uiChoicesBridgeDto`,void 0),F(this,`_isConsentRequest`,void 0),F(this,`_lang`,void 0),this._uiChoicesBridgeDto=e,this._tcModel=t,this._acModel=n,this._pcModel=r,this._isConsentRequest=i,this._lang=a}get uiChoicesBridgeDto(){return this._uiChoicesBridgeDto}get tcModel(){return this._tcModel}get acModel(){return this._acModel}get pcModel(){return this._pcModel}get isConsentRequest(){return this._isConsentRequest}get lang(){return this._lang}},Ci=class{constructor(e,t,n,r,i,a,o,s,c){F(this,`_UIPurposeChoices`,[]),F(this,`_UISpecialPurposes`,[]),F(this,`_UIFeatures`,[]),F(this,`_UISpecialFeatureChoices`,[]),F(this,`_UIVendorChoices`,[]),F(this,`_UIGoogleVendorOptions`,[]),F(this,`_UIPublisherCookieOptions`,void 0),F(this,`_UIDataCategories`,void 0),F(this,`_UIStandardTexts`,void 0),this._UIPurposeChoices=e,this._UISpecialPurposes=t,this._UIFeatures=n,this._UISpecialFeatureChoices=r,this._UIVendorChoices=i,this._UIGoogleVendorOptions=a,this._UIPublisherCookieOptions=o,this._UIDataCategories=s,this._UIStandardTexts=c}get UIPurposeChoices(){return this._UIPurposeChoices}get UISpecialPurposes(){return this._UISpecialPurposes}get UIFeatures(){return this._UIFeatures}get UISpecialFeatureChoices(){return this._UISpecialFeatureChoices}get UIVendorChoices(){return this._UIVendorChoices}get UIGoogleVendorOptions(){return this._UIGoogleVendorOptions}get UIPublisherCookieOptions(){return this._UIPublisherCookieOptions}get UIDataCategories(){return this._UIDataCategories}get UIStandardTexts(){return this._UIStandardTexts}},wi=class e{constructor(e,t,n,r,i){F(this,`_tcModel`,void 0),F(this,`_acModel`,void 0),F(this,`_pcModel`,void 0),F(this,`isLegitimateInterestEnabled`,void 0),F(this,`forceLimitedAdsAtLeast`,void 0),this._tcModel=e,this._tcModel.unsetAll(),this._tcModel.publisherConsents.unset([...this._tcModel.publisherConsents.values()]),this._acModel=t,this._pcModel=n,this.isLegitimateInterestEnabled=r,this.forceLimitedAdsAtLeast=i}parseTCModel(e){let t=this.filterEnabledChoicesId(e.UIPurposeChoices),n=this.filterEnabledChoicesId(e.UIPurposeChoices,`legIntState`),r=this.filterEnabledChoicesId(e.UIVendorChoices),i=this.filterEnabledChoicesId(e.UIVendorChoices,`legIntState`);return this._tcModel.purposeConsents.set(t),this._tcModel.purposeLegitimateInterests.set(n),this._tcModel.publisherConsents.set(t),this._tcModel.vendorConsents.set(r),this._tcModel.vendorLegitimateInterests.set(i),this._tcModel.specialFeatureOptins.set(this.filterEnabledChoicesId(e.UISpecialFeatureChoices)),this.applyTCModelTransformations(e),this._tcModel}applyTCModelTransformations(t=null){if(this._tcModel.publisherRestrictions.map=new Map,this.isLegitimateInterestEnabled){let t=[...this._tcModel.purposeLegitimateInterests.values()].filter(e.isAllowedAsLegitimatePurpose),n=t,r=t,i=[...this._tcModel.vendorLegitimateInterests.values()];this.forceLimitedAdsAtLeast&&e.PURPOSES_IDS_LIMITED_ADS.forEach(e=>{n.includes(e)||(n.push(e),r.push(e)),Object.keys(this._tcModel.gvl.getVendorsWithLegIntPurpose(e)).forEach(e=>{i.push(Number(e))})}),this._tcModel.purposeLegitimateInterests.set(n),this._tcModel.vendorLegitimateInterests.set(i),this._tcModel.publisherLegitimateInterests.set(r)}else{this._tcModel.unsetAllVendorLegitimateInterests(),this._tcModel.unsetAllPurposeLegitimateInterests();for(let e=2;e<=Object.keys(this._tcModel.gvl.purposes).length;e++){let t=new tr(e,H.REQUIRE_CONSENT);this._tcModel.publisherRestrictions.restrictPurposeToLegalBasis(t)}if(this.forceLimitedAdsAtLeast){let t=[],n=[...this._tcModel.vendorConsents.values()];e.PURPOSES_IDS_LIMITED_ADS.forEach(e=>{t.includes(e)||t.push(e),Object.keys(this._tcModel.gvl.getVendorsWithConsentPurpose(e)).forEach(e=>{n.push(Number(e))}),Object.keys(this._tcModel.gvl.getVendorsWithLegIntPurpose(e)).forEach(e=>{n.push(Number(e))})}),this._tcModel.purposeConsents.set(t),this._tcModel.publisherConsents.set(t),this._tcModel.vendorConsents.set(n)}}this.unsetVendorLegitimateInterestsNotDeclared(),this._tcModel.setAllVendorsDisclosed()}unsetVendorLegitimateInterestsNotDeclared(){let e=this._tcModel.gvl.vendors,t=[...this._tcModel.vendorLegitimateInterests.values()].filter(t=>!Oi.canVendorHaveLegitimateInterest(e[t]));this._tcModel.vendorLegitimateInterests.unset(t)}static isAllowedAsLegitimatePurpose(t){return!e.PURPOSES_IDS_NON_LEGITIMATE.includes(Number(t))}buildTCModelAllEnabled(){return this._tcModel.setAll(),this._tcModel.publisherConsents.set([...this._tcModel.purposeConsents.values()]),this.applyTCModelTransformations(),this._tcModel}buildACModelAllEnabled(){return this._acModel.googleVendorOptions.forEach(e=>e.state=!0),this._acModel}parseACModel(e){return this._acModel.googleVendorOptions=e.UIGoogleVendorOptions,this._acModel}parsePCModel(e){return this._pcModel=e.UIPublisherCookieOptions,this._pcModel}buildPCModelAllEnabled(){return this._pcModel.userExperienceCookiesChoice.state=!0,this._pcModel.featureCookiesChoice.state=!0,this._pcModel.measurementCookiesChoice.state=!0,this._pcModel}filterEnabledChoicesId(e,t=`state`){return[...e].filter(e=>e[t]&&!isNaN(e.id)).map(e=>Number(e.id))}get tcModel(){return this._tcModel}get acModel(){return this._acModel}};F(wi,`PURPOSES_IDS_NON_LEGITIMATE`,[1,3,4,5,6]),F(wi,`PURPOSES_IDS_LIMITED_ADS`,[2,7,9,10]);var Ti=class e{constructor(e,t,n,r,i=!1,a=!1){F(this,`_UIPurposeChoices`,[]),F(this,`_UISpecialPurposes`,[]),F(this,`_UIFeatures`,[]),F(this,`_UISpecialFeatureOptInsChoices`,[]),F(this,`_UIVendorChoices`,[]),F(this,`_UIGoogleVendorOptions`,[]),F(this,`_UIPublisherCookieOptions`,void 0),F(this,`_UIDataCategories`,void 0),F(this,`_UIStandardTexts`,void 0),F(this,`firstTimeConsentRequest`,void 0),F(this,`forceChoicesStatusToEnabled`,void 0),F(this,`isLegitimateInterestEnabled`,void 0),this.firstTimeConsentRequest=r,this.forceChoicesStatusToEnabled=i,this.isLegitimateInterestEnabled=a,this.buildUIPurposeChoices(e),this.buildUISpecialPurposes(e),this.buildUIFeatures(e),this.buildUISpecialFeatureOptInsChoices(e),this.buildUIVendorChoices(e),this.buildUIGoogleVendorOptions(t),this.buildUIPublisherCookieOptions(n),this.buildUIDataCategories(e),this._UIStandardTexts=e.gvl.standardTexts}createUIChoicesBridgeDto(){return new Ci(this._UIPurposeChoices,this._UISpecialPurposes,this._UIFeatures,this._UISpecialFeatureOptInsChoices,this._UIVendorChoices,this._UIGoogleVendorOptions,this._UIPublisherCookieOptions,this._UIDataCategories,this._UIStandardTexts)}buildUIPurposeChoices(e){this._UIPurposeChoices=this.buildUIConsentChoices(e,e.gvl.purposes,`purposeConsents`,`getVendorsWithConsentPurpose`,this.isLegitimateInterestEnabled?`purposeLegitimateInterests`:null,this.isLegitimateInterestEnabled?`getVendorsWithLegIntPurpose`:null)}buildUISpecialPurposes(e){this._UISpecialPurposes=this.buildUIConsentInfo(e,e.gvl.specialPurposes,`getVendorsWithSpecialPurpose`)}buildUIFeatures(e){this._UIFeatures=this.buildUIConsentInfo(e,e.gvl.features,`getVendorsWithFeature`)}buildUISpecialFeatureOptInsChoices(e){this._UISpecialFeatureOptInsChoices=this.buildUIConsentChoices(e,e.gvl.specialFeatures,`specialFeatureOptins`,`getVendorsWithSpecialFeature`)}buildUIConsentInfo(e,t,n){let r=Object.keys(t),i=[];return r.forEach(r=>{let a=t[r];i.push({id:Number(a.id),name:a.name,description:a.description,illustrations:a.illustrations,vendors:e.gvl[n](a.id),hasState:!1})}),i}buildUIConsentChoices(e,t,n,r,i,a){let o=Object.keys(t),s=[];return o.forEach(o=>{let c=t[o];s.push({state:this.forceChoicesStatusToEnabled?!0:e[n].has(c.id),legIntAvailable:i!=null&&!wi.PURPOSES_IDS_NON_LEGITIMATE.includes(Number(c.id)),legIntState:i==null?!1:this.forceChoicesStatusToEnabled?!0:e[i].has(c.id),id:Number(c.id),name:c.name,description:c.description,illustrations:c.illustrations,vendors:e.gvl[r](c.id),legIntVendors:a==null?[]:e.gvl[a](c.id)})}),s}buildUIVendorChoices(e){let t=e.gvl.vendors,n=Object.keys(t);this._UIVendorChoices=this.buildUIConsentVendorChoices(e,n,t,`vendorConsents`,this.isLegitimateInterestEnabled?`vendorLegitimateInterests`:null)}buildUIConsentVendorChoices(t,n,r,i,a){let o=[];return n.forEach(n=>{let s=r[n],c=NaN;typeof s.cookieMaxAgeSeconds==`number`&&!isNaN(s.cookieMaxAgeSeconds)&&(c=Number(s.cookieMaxAgeSeconds));let l=Oi.isMandatoryLegitimateInterestForVendor(s,this.isLegitimateInterestEnabled),u=t[i].has(s.id);o.push({state:this.forceChoicesStatusToEnabled?!0:u,onlyLegIntAvailable:l,legIntAvailable:a==null?!1:s.legIntPurposes.length>0||l,legIntState:a!=null&&t[a].has(s.id),flexiblePurposes:s.flexiblePurposes,id:Number(s.id),legIntPurposes:s.legIntPurposes,name:s.name,urls:s.urls,cookieMaxAgeSeconds:c,purposes:s.purposes,purposesDataRetentionMap:e.getRetentionMap(s,`purposes`),specialPurposes:s.specialPurposes||[],specialPurposesDataRetentionMap:e.getRetentionMap(s,`specialPurposes`),features:s.features||[],specialFeatures:s.specialFeatures,dataDeclaration:s.dataDeclaration||[],deviceStorageDisclosureUrl:s.deviceStorageDisclosureUrl,onlySpecialPurposesDeclared:Oi.isSpecialPurposesOnlyVendor(s)})}),o}static getRetentionMap(t,n){let r=new Map;return t[n].forEach(i=>{let a=e.getPurposeRetentionDays(i,t.dataRetention,n);r.set(i,a)}),r}static getPurposeRetentionDays(e,t,n){let r=NaN;return t&&(e!=1||n==`specialPurposes`)&&(r=t.stdRetention||0,typeof t[n][e]==`number`&&(r=t[n][e])),r}buildUIGoogleVendorOptions(e){this._UIGoogleVendorOptions=[...e.googleVendorOptions],this.forceChoicesStatusToEnabled&&this._UIGoogleVendorOptions.forEach(e=>{e.state=!0})}buildUIPublisherCookieOptions(e){this._UIPublisherCookieOptions=e}buildUIDataCategories(e){this._UIDataCategories=this.buildUIInfoMap(e.gvl.dataCategories)}buildUIInfoMap(e){let t=new Map;return e!=null&&Object.keys(e).forEach(n=>{t.set(Number(n),e[n])}),t}},Ei=class{constructor(e,t,n,r,i,a,o,s,c,l=null){F(this,`tcModelService`,void 0),F(this,`acModelService`,void 0),F(this,`pcModelService`,void 0),F(this,`uiConstructor`,void 0),F(this,`eventDispatcher`,void 0),F(this,`loggerService`,void 0),F(this,`cmpSupportedLanguageProvider`,void 0),F(this,`forceInitialChoicesStatusToEnabled`,void 0),F(this,`isLegitimateInterestEnabled`,void 0),F(this,`cmpApiProvider`,void 0),this.tcModelService=e,this.acModelService=t,this.pcModelService=n,this.uiConstructor=r,this.eventDispatcher=i,this.loggerService=a,this.cmpSupportedLanguageProvider=o,this.forceInitialChoicesStatusToEnabled=s,this.isLegitimateInterestEnabled=c,this.cmpApiProvider=l}prepareAndRender(e){this.uiConstructor.buildUIAndRender(this.prepareData(e),{...e.options,retryDataLoading:()=>this.prepareData(e)},this.loggerService)}prepareData(e){var t,n,r,i,a,o;let s=(t=(n=e.data)==null?void 0:n.acString)==null?``:t,c=(r=(i=e.data)==null?void 0:i.pcString)==null?``:r,l=(a=(o=e.data)==null?void 0:o.tcString)==null?``:a,u=Promise.all([this.acModelService.fetchDataAndBuild(s),this.tcModelService.fetchDataAndBuild(l),this.pcModelService.fetchDataAndBuild(c)]).then(async t=>{var n;let r=t[0],i=typeof r==`object`&&!!r,a=t[1],o=typeof a==`object`&&!!a,s=t[2];if(!i||!o||!(typeof s==`object`&&s))throw Error(`Something went wrong when checking ACModel, TCModel and PCModel`);let c=l==``||l==null,u=new Si(new Ti(a,r,s,c,this.forceInitialChoicesStatusToEnabled,this.isLegitimateInterestEnabled).createUIChoicesBridgeDto(),a,r,s,c,this.cmpSupportedLanguageProvider.getCurrentLanguageForCmp());if(((n=e.options)==null?void 0:n.isRenderOnRejectedConsent)!==!0){var d,f,p;this.eventDispatcher.dispatch(new pn({tcString:(d=e.data)==null?void 0:d.tcString,acString:(f=e.data)==null?void 0:f.acString,pcString:(p=e.data)==null?void 0:p.pcString}))}return u}).catch(e=>{var t;throw this.loggerService.error(`CmpPreparatoryService, something went wrong in preparing the data!`,e),(t=this.cmpApiProvider)==null||t.signalLoadingError(),e});return u.catch(()=>{}),u}static getClassName(){return`CmpPreparatoryService`}},Di=class{constructor(e,t,n,r,i,a){F(this,`tcStringService`,void 0),F(this,`acStringService`,void 0),F(this,`pcStringService`,void 0),F(this,`eventDispatcher`,void 0),F(this,`isLegitimateInterestEnabled`,void 0),F(this,`forceLimitedAdsAtLeast`,void 0),this.tcStringService=e,this.acStringService=t,this.pcStringService=n,this.eventDispatcher=r,this.isLegitimateInterestEnabled=i,this.forceLimitedAdsAtLeast=a}generateAndPersistConsent(e){let t=new wi(e.tcModel,e.acModel,e.pcModel,this.isLegitimateInterestEnabled,this.forceLimitedAdsAtLeast),n=t.parseTCModel(e.uiChoicesBridgeDto),r=t.parseACModel(e.uiChoicesBridgeDto),i=t.parsePCModel(e.uiChoicesBridgeDto);this.dispatchReadyAndPersist(n,r,i)}generateAndPersistConsentWithAllEnabled(e){let t=new wi(e.tcModel,e.acModel,e.pcModel,this.isLegitimateInterestEnabled,this.forceLimitedAdsAtLeast),n=t.buildTCModelAllEnabled(),r=t.buildACModelAllEnabled(),i=t.buildPCModelAllEnabled();this.dispatchReadyAndPersist(n,r,i)}async dispatchReadyAndPersist(e,t,n){await M();let r=this.tcStringService.getEncoded(e),i=this.acStringService.getEncoded(t),a=this.pcStringService.getEncoded(n);this.eventDispatcher.dispatch(new fn({tcString:r,acString:i,pcString:a,tcModel:e,pcModel:n,acModel:t},gn.TCF_V2_GDPR,!0)),this.tcStringService.persist(r),this.acStringService.persist(i),this.pcStringService.persist(a),this.eventDispatcher.dispatch(new dn({tcString:r,acString:i,pcString:a}))}static getClassName(){return`ConsentGeneratorService`}},Oi=class{constructor(e,t,n,r,i,a,o,s=null){F(this,`cmpSupportedLanguageProvider`,void 0),F(this,`narrowTcfVendorIds`,void 0),F(this,`cmpId`,void 0),F(this,`cmpVersion`,void 0),F(this,`globalVendorListCreatorFunction`,void 0),F(this,`isServiceSpecific`,void 0),F(this,`publisherCountryCode`,void 0),F(this,`tcStringService`,void 0),this.tcStringService=e,this.cmpSupportedLanguageProvider=t,this.cmpId=n,this.cmpVersion=r,this.isServiceSpecific=i,this.globalVendorListCreatorFunction=a,this.publisherCountryCode=o,this.narrowTcfVendorIds=s}fetchDataAndBuild(e){return dt(t=>(q.latestFilename=`vendor-list.json`+t,q.languageFilename=`purposes-[LANG].json`+t,this.build(e)))}async build(e){let t=e,n=new Lr(this.globalVendorListCreatorFunction());return await Promise.all([n.gvl.readyPromise,n.gvl.changeLanguage(this.cmpSupportedLanguageProvider.getCurrentLanguageForCmp())]).then(()=>{if(this.tcStringService.isValid(t)){let e=zr.decode(t,void 0,!0);e.gvl=n.gvl,n=e}n.cmpId=this.cmpId,n.cmpVersion=this.cmpVersion,n.isServiceSpecific=this.isServiceSpecific}).then(()=>{var e;return n.publisherCountryCode=(e=this.publisherCountryCode)==null?`IT`:e,n.gvl.lang_=`en`,Array.isArray(this.narrowTcfVendorIds)&&this.narrowTcfVendorIds.length>0&&n.gvl.narrowVendorsTo(this.narrowTcfVendorIds),n.gvl.changeLanguage(this.cmpSupportedLanguageProvider.getCurrentLanguageForCmp())}).then(()=>n)}static isMandatoryLegitimateInterestForVendor(e,t=!0){return e.legIntPurposes.length==0||e.purposes.length>0?!1:t||e.flexiblePurposes.length==0}static isSpecialPurposesOnlyVendor(e){return e.purposes.length==0&&e.legIntPurposes.length==0}static canVendorHaveLegitimateInterest(e){return!!e&&!e.deletedDate&&e.legIntPurposes.length>0}static getClassName(){return`TCModelService`}},ki=class{constructor(e,t,n,r,i,a=180,o=[],s=!1,c=!1){F(this,`cookieService`,void 0),F(this,`loggerService`,void 0),F(this,`cmpVersion`,void 0),F(this,`cmpSupportedLanguageProvider`,void 0),F(this,`tcStringCookieName`,void 0),F(this,`expireTCStringInDays`,void 0),F(this,`requiredAcceptedPurposeIds`,void 0),F(this,`isLegitimateInterestEnabled`,void 0),F(this,`forceLimitedAdsAtLeast`,void 0),this.cookieService=e,this.loggerService=t,this.cmpSupportedLanguageProvider=n,this.cmpVersion=Number(r),this.tcStringCookieName=i,this.expireTCStringInDays=Number(a),this.requiredAcceptedPurposeIds=o,this.isLegitimateInterestEnabled=s,this.forceLimitedAdsAtLeast=c}persist(e){this.cookieService.setCookie(this.tcStringCookieName,e,this.expireTCStringInDays)}retrieve(){return this.cookieService.getCookie(this.tcStringCookieName)}clearStorage(){this.cookieService.removeCookiesByName(this.tcStringCookieName)}getEncoded(e){let t=``;try{e.updated(),t=zr.encode(e)}catch(e){this.loggerService.error(e)}return t.length>0&&this.loggerService.debug(`TCString.buildTCString: `+t),t}isValid(e){let t;try{t=zr.decode(e,void 0,!0)}catch(t){return this.loggerService.debug(`TCStringService.isValidTCString: not decodable: ${e}`,t),!1}let n=this.cmpSupportedLanguageProvider.getUserLanguage(),r=!0;this.cmpSupportedLanguageProvider.getCmpSupportedLanguages().includes(n)&&(r=n===t.consentLanguage.toLowerCase());let i=this.cmpVersion==t.cmpVersion,a=this.isLegitimateInterestEnabled?!t.publisherRestrictions.isEmpty():t.publisherRestrictions.isEmpty(),o=!1;if(this.forceLimitedAdsAtLeast&&!t.purposeConsents.has(1))for(let e of wi.PURPOSES_IDS_LIMITED_ADS){if(o)break;o=this.isLegitimateInterestEnabled?!t.purposeLegitimateInterests.has(e):!t.purposeConsents.has(e)}let s=this.requiredAcceptedPurposeIds.filter(e=>!t.purposeConsents.has(Number(e))).length===0;return this.loggerService.debug(`TCStringService.isValidTCString: locale:`+r+` | cmpVersionCheck: `+i+` | mustUpdateToUseRestrictions: `+a+` | mustUpdateForGLA: `+o+` | areRequiredPurposesAccepted: `+s),r&&!a&&!o&&s}isRejectedConsent(e){let t=zr.decode(e,void 0,!0),n=[...t.purposeConsents.values()],r=[...t.specialFeatureOptins.values()],i=[...t.vendorConsents.values()];return n.length<10||r.length<2||i.length==0}static getClassName(){return`TCStringService`}},Ai=class{constructor({onConsent:e,discloseConsentAfterPrerender:t}){F(this,`onConsent`,void 0),F(this,`discloseConsentAfterPrerender`,void 0),this.onConsent=e,this.discloseConsentAfterPrerender=t}getSubscribedEvents(){return{[fn.EVENT_NAME]:{method:`onConsentReady`,waitFor:this.discloseConsentAfterPrerender?mt:null}}}async onConsentReady(e){await M(),this.onConsent(e,Y.tcModel,yi.getDecoded(e.data.pcString))}static getClassName(){return`CmpCallbackSubscriber`}},ji=class{constructor(e,t,n,r){F(this,`consentGeneratorService`,void 0),F(this,`uiConstructor`,void 0),F(this,`isWebStandard`,void 0),F(this,`loggerService`,void 0),this.consentGeneratorService=e,this.uiConstructor=t,this.isWebStandard=n,this.loggerService=r}getSubscribedEvents(){return{[un.EVENT_NAME]:`onApplyConsent`,[ln.EVENT_NAME]:`onAcceptAll`}}async onApplyConsent(e){let t=!e.options.keepSameUI&&this.isWebStandard;if(t&&this.uiConstructor.preDetachCmp(),e.options.persistConsent){await M();try{this.consentGeneratorService.generateAndPersistConsent(await e.data)}catch(e){this.logUnavailableData(e)}}t&&this.uiConstructor.buildOpenCmpButtonAndRender(this.loggerService)}async onAcceptAll(e){this.isWebStandard&&this.uiConstructor.preDetachCmp(),await M();try{this.consentGeneratorService.generateAndPersistConsentWithAllEnabled(await e.data)}catch(e){this.logUnavailableData(e)}this.isWebStandard&&this.uiConstructor.buildOpenCmpButtonAndRender(this.loggerService)}logUnavailableData(e){this.loggerService.error(`UserConsentsSubscriber, data unavailable, the choice is not persisted.`,e)}static getClassName(){return`ConsentsGeneratorSubscriber`}},Mi=class{constructor(e){F(this,`cmpPreparatoryService`,void 0),this.cmpPreparatoryService=e}getSubscribedEvents(){return{[hn.EVENT_NAME]:`onOpenCmpUI`}}async onOpenCmpUI(e){this.cmpPreparatoryService.prepareAndRender(e)}static getClassName(){return`OpenCmpUISubscriber`}};function Ni({tcModel:e,pcModelMap:t}){return{adConsentGranted:e.purposeConsents.has(1),adUserDataGranted:e.purposeConsents.has(1)&&e.purposeConsents.has(7),adPersonalizationGranted:e.purposeConsents.has(3)&&e.purposeConsents.has(4),analyticsConsentGranted:t.measurementCookiesChoice,functionalityConsentGranted:t.featureCookiesChoice,personalizationConsentGranted:t.userExperienceCookiesChoice,securityConsentGranted:t.featureCookiesChoice}}var Pi=class{constructor(e,t,n){F(this,`googleConsentModeFlag`,void 0),F(this,`isWebViewSDK`,void 0),F(this,`window`,void 0),this.isWebViewSDK=e,this.window=t,this.googleConsentModeFlag=n}getSubscribedEvents(){return this.isWebViewSDK?{[pn.EVENT_NAME]:`onConsentRequired`,[fn.EVENT_NAME]:`onConsentReady`}:{}}onConsentRequired(e){this.window.WebViewConnectorAPI.onConsentRequired(JSON.stringify(e.data))}async onConsentReady(e){let t=await new Promise((e,t)=>{this.window.__tcfapi(`addEventListener`,2,t=>{t.eventStatus!==`cmpuishown`&&this.window.__tcfapi(`getInAppTCData`,2,t=>{e(t)})})}),n={pcString:e.data.pcString,tcString:e.data.tcString,acString:e.data.acString,gdprApplies:t.gdprApplies,googleConsentMode:this.googleConsentModeFlag},r=yi.getDecoded(e.data.pcString),i=Ni({tcModel:zr.decode(e.data.tcString),pcModelMap:r}),a={reason:t.eventStatus==`tcloaded`?_n.NEW:_n.UPDATE,IABTCF_FIELDS:t,consentDTO:n,cookiesChoices:{featureCookiesChoice:r.featureCookiesChoice,userExperienceCookiesChoice:r.userExperienceCookiesChoice,measurementCookiesChoice:r.measurementCookiesChoice},googleConsentMode:yn(i)};this.window.WebViewConnectorAPI.onConsentReady(e.cmpType,JSON.stringify(a))}static getClassName(){return`WebViewSDKSubscriber`}},Fi=class{constructor(e){F(this,`isInitialized`,!1),F(this,`_ServicesManager`,rn),F(this,`config`,void 0),this.config=e,this.config.permitLegitimateInterestOnlyForCriticalVendors===!0&&console.warn(`CORE-CMP DEPRECATION: permitLegitimateInterestOnlyForCriticalVendors has no effect since TCF v2.4, use isLegitimateInterestEnabled instead.`),this.registerServices(),this.registerSubscribers()}registerServices(){this._ServicesManager.addServiceProvider(B.getClassName(),()=>new B(this.config.isDebugEnabled)).addServiceProvider(sn.getClassName(),e=>new sn(e[B.getClassName()],window.location.hostname,window.location.protocol,document,this.config.delegateConsentPersist===!0)).addServiceProvider(cn.getClassName(),()=>new cn(this.config.supportedLanguages,this.config.userLanguage)).addServiceProvider(ki.getClassName(),e=>new ki(e[sn.getClassName()],e[B.getClassName()],e[cn.getClassName()],this.config.cmpVersion,this.config.tcStringCookieName,this.config.expireTCStringInDays,this.config.requiredAcceptedPurposeIds,this.config.isLegitimateInterestEnabled,this.config.forceLimitedAdsAtLeast)).addServiceProvider(Oi.getClassName(),e=>new Oi(e[ki.getClassName()],e[cn.getClassName()],this.config.cmpId,this.config.cmpVersion,this.config.isServiceSpecific,(()=>(q.baseUrl=this.config.baseUrlVendorList,new q)).bind(this),this.config.publisherCountryCode,this.config.narrowTcfVendorIds)).addServiceProvider(vi.getClassName(),e=>{let t={},n=e[B.getClassName()];try{t=localStorage}catch(e){n.debug(`localStorage disabled for the current environment.`,e)}return new vi(this.config.acStringStorageKey,n,t,this.config.skipACStringCheck,this.config.useCompactACStringAsCookie,e[sn.getClassName()])}).addServiceProvider(_i.getClassName(),e=>new _i(this.config.baseUrlVendorList,e[vi.getClassName()],Ir.fetch.bind(Ir),e[B.getClassName()],this.config.narrowGoogleVendorIds)).addServiceProvider(xi.getClassName(),()=>new xi(this.config.cmpId,this.config.cmpVersion,this.config.isServiceSpecific,this.config.googleConsentModeWebTcfFlag)).addServiceProvider(L.getClassName(),()=>L.getInstance()).addServiceProvider(yi.getClassName(),e=>new yi(e[sn.getClassName()],this.config.publisherCookieVersion,this.config.isAmp,this.config.additionalRefreshConsentOnPCUpdates)).addServiceProvider(bi.getClassName(),e=>{let t=e[cn.getClassName()];return new bi(this.config.publisherCookieJsonBaseUrl,e[yi.getClassName()],Ir.fetch.bind(Ir),this.config.publisherCookieVersion,t.getCurrentLanguageForCmp(),e[B.getClassName()],this.config.internal_publisherCookiesConfig)}).addServiceProvider(Ei.getClassName(),e=>new Ei(e[Oi.getClassName()],e[_i.getClassName()],e[bi.getClassName()],this.config.uiConstructor,e[L.getClassName()],e[B.getClassName()],e[cn.getClassName()],this.config.forceInitialChoicesStatusToEnabled,this.config.isLegitimateInterestEnabled,e[xi.getClassName()])).addServiceProvider(Di.getClassName(),e=>new Di(e[ki.getClassName()],e[vi.getClassName()],e[yi.getClassName()],e[L.getClassName()],this.config.isLegitimateInterestEnabled,this.config.forceLimitedAdsAtLeast))}registerSubscribers(){this._ServicesManager.addEventSubscriberProvider(ji.getClassName(),e=>new ji(e[Di.getClassName()],this.config.uiConstructor,this.config.isWebStandard,e[B.getClassName()])).addEventSubscriberProvider(Vr.getClassName(),e=>new Vr({cmpApiProvider:e[xi.getClassName()],discloseConsentAfterPrerender:this.config.discloseConsentAfterPrerender})).addEventSubscriberProvider(Pi.getClassName(),()=>new Pi(this.config.isWebViewSDK,window,this.config.googleConsentModeMobileTcfFlag)).addEventSubscriberProvider(Ai.getClassName(),()=>new Ai({onConsent:this.config.onConsent,discloseConsentAfterPrerender:this.config.discloseConsentAfterPrerender})).addEventSubscriberProvider(Br.getClassName(),()=>new Br(this.config.isAmp,window,this.config.initialHeightAmpCmpUi,this.config.enableBorderAmpCmpUi)).addEventSubscriberProvider(Mi.getClassName(),e=>new Mi(e[Ei.getClassName()]))}getServicesManager(){return this._ServicesManager}async init({externalTcString:e=null,externalAcString:t=null,externalPcString:n=null,isAmpRefresh:r,useExternalStringsAsPrimary:i=!1,externalOpenRequired:a=!1,isConsentSharingExecution:o=!1}){if(this.isInitialized)return;this.isInitialized=!0,await M();let s=this._ServicesManager.getService(ki.getClassName()),c=this._ServicesManager.getService(vi.getClassName()),l=this._ServicesManager.getService(yi.getClassName()),u=s.retrieve(),d=c.retrieve(),f=l.retrieve(),p=this._ServicesManager.getService(L.getClassName());if(this.config.isAmp&&!r&&typeof e!=`string`&&typeof t!=`string`&&typeof n!=`string`&&s.isValid(u)&&c.isValid(d)&&l.isValid(f)){let e=this._ServicesManager.getService(Br.getClassName()),t=new pn({tcString:``,acString:``,pcString:``}),n=new dn({tcString:u,acString:d,pcString:f});e.onConsentRequired(t),e.onConsentPersisted(n)}else if(this.config.isAmp)s.isValid(e)&&c.isValid(t)&&l.isValid(n)?p.dispatch(new hn({tcString:e,pcString:n,acString:t},null)):(u&&u.length>0&&(s.clearStorage(),c.clearStorage(),l.clearStorage()),p.dispatch(new hn));else{let r=u,m=d,h=f;if(i&&(r=e==null?``:e,m=t==null?``:t,h=n==null?``:n),s.isValid(r)&&c.isValid(m)&&l.isValid(h)){if(a){p.dispatch(new hn({tcString:r,acString:m,pcString:h}));return}this.config.isRenderOnRejectedConsent&&s.isRejectedConsent(u)?(p.dispatch(new hn({tcString:u,acString:d,pcString:f},{isRenderOnRejectedConsent:!0})),p.dispatch(new fn({tcString:u,acString:d,pcString:f,tcModel:zr.decode(u),acModel:R.decode(d),pcModel:z.decode(f)},gn.TCF_V2_GDPR))):(function({tcString:e,acString:t,pcString:n,tcModel:r,acModel:i,pcModel:a}){let o=new fn({tcString:e,acString:t,pcString:n,tcModel:r,acModel:i,pcModel:a},gn.TCF_V2_GDPR);p.dispatch(o)}({tcString:r,acString:m,pcString:h,tcModel:zr.decode(r),acModel:R.decode(m),pcModel:z.decode(h)}),o&&(s.persist(r),c.persist(m),l.persist(h),p.dispatch(new dn({tcString:r,acString:m,pcString:h}))),this.config.uiConstructor.buildOpenCmpButtonAndRender(this._ServicesManager.getService(B.getClassName())))}else u&&u.length>0&&(s.clearStorage(),c.clearStorage(),l.clearStorage()),p.dispatch(new hn)}}};function Ii({acceptAllFunction:e,acceptAllText:t,affirmativeButtonIcon:n,buttonShadow:r,buttonThickness:i,differentiateButtons:a,footerAlign:o,otherActions:s}){let c=``;switch(o){case Vt.LEFT:c=`footer-align-left`;break;case Vt.CENTER:c=`footer-align-center`;}return j(`div`,{className:A(`cmp-wrap-footer-container`),children:j(`div`,{className:A(`cmp-footer-container ${c}`),children:j(`div`,{id:`pt-actions`,className:A(`footer-actions`),children:[s,typeof e==`function`&&j($t,{options:{isPrimary:!0,id:`pt-accept-all`,content:t,isAffirmative:!0,affirmativeButtonIcon:n,onClick:e,buttonShadow:r,differentiateButtons:a,buttonThickness:i}})]})})})}function Li({additionalInPrimaryAction:e,backText:t,canShowCloseActions:n,closeCompliantButtonText:r,cmpConfiguration:i,headerContainerClasses:a,isWithdrawAllRequired:o,logoAlign:s,logoUrl:c,onCloseClick:l,primaryButtonClassAsAcceptAll:u,resetShowMoreOptions:d,secondaryAction:f,showBackButton:p,title:m,titleAlign:h,logoHeight:g}){let _=`text-center`;switch(h){case Vt.LEFT:_=`text-left`;break;case Vt.RIGHT:_=`text-right`;}let v=`justify-center`;switch(s){case Vt.LEFT:v=`justify-start`;break;case Vt.RIGHT:v=`justify-end`;}let y;y=i.closeButtonType===Rt.CUSTOMIZED_TEXT&&P(i.closeText)||typeof i.closeText==`string`?i.closeText:``;let b=y.length>0,x=i.closeButtonType===Rt.X,S=i.closeButtonType===Rt.DEFAULT,C=i.closeButtonType===Rt.CUSTOMIZED_TEXT,w=i.closeButtonBorder?`close-button-border`:`close-button-without-border`,ee=P(i.closeButtonBackgroundColor)?`close-button-background-color`:``;return j(`div`,{className:A(`cmp-head-container ${P(c)&&!p?`head-with-logo`:``} ${a}`),children:[j(`div`,{className:A(`top-actions-container`),children:j(`div`,{className:A(`inner-top-actions`),children:[j(E,{children:[p&&j(`button`,{id:`pt-back`,className:A(`flex items-start cursor-pointer clear-action-text base-text-color`),onClick:d,children:t}),(i.advancedClose||o&&navigator.language.includes(`en`))&&!p&&j(`button`,{id:`pt-close`,onClick:function(e){e.stopPropagation(),l()},className:A(`close-action`),"aria-label":r,children:[n&&!o&&(x||C&&!b)&&j(`div`,{"aria-hidden":!0,className:A(`close-container`),children:j(`div`,{className:A(`close-x-container`),children:j(`div`,{className:A(`close-x`)})})}),n&&o&&j(`div`,{className:A(u),"aria-hidden":!0,children:r}),n&&!o&&S&&j(`div`,{className:A(`cmp-base-action-button close-colors close-gdpr ${w} ${ee} `),"aria-hidden":!0,children:r}),n&&!o&&C&&b&&j(`div`,{className:A(`cmp-base-action-button close-colors close-text ${w} ${ee}`),"aria-hidden":!0,children:y})]}),e]}),j(`div`,{className:A(`flex items-center justify-center`),children:f})]})}),j(`div`,{className:A(`publisher-logo flex ${v}`),children:c&&!p&&j(`img`,{alt:``,height:60,width:240,src:c,style:typeof g==`number`?{height:`${g}px`}:{}})}),j(`div`,{className:A(`cmp-title`),children:m.length>1&&j(`div`,{className:A(_),role:`heading`,"aria-level":1,children:m})})]})}function Ri({cmpConfiguration:e,options:t,translate:n}){let r=t.isResurfacing,i=r&&!t.isCookieWallModeEnabled?n(`withdrawAll`):t.isCookieWallModeEnabled?n(`rejectAndSubscribe`):n(`closeGDPR`),a=!t.showPopupWall,o=t.headerActionsPosition==`bottom`,s=o?` move-h-actions-to-bottom`:``;s+=o&&!t.isCookieWallModeEnabled?` make-close-action-larger`:``;let c=P(e==null?void 0:e.title)?e.title:n(`title`),l=P(e==null?void 0:e.popupWallTitle)?e.popupWallTitle:n(`popupWallTitle`);return j(Li,{logoHeight:e.logoHeight,cmpConfiguration:e,headerContainerClasses:(e.switchCloseBtnToRight?`switch-close-back`:``)+s,logoUrl:e.logoUrl,logoAlign:t.showBackButton?void 0:e.logoAlign,title:t.showPopupWall&&!t.showBackButton?l:t.showBackButton?n(`options`):c,titleAlign:t.showBackButton?void 0:e.titleAlign,showBackButton:t.showBackButton,resetShowMoreOptions:async function(){await N(),t.resetShowMoreOptions()},backText:n(`back`),canShowCloseActions:a,isWithdrawAllRequired:r,closeCompliantButtonText:i,primaryButtonClassAsAcceptAll:t.primaryButtonClassAsAcceptAll,onCloseClick:t.onRejectClick,secondaryAction:j(E,{children:!e.hideLoginCta&&t.isCookieWallModeEnabled&&!t.showBackButton&&j(`div`,{className:A(`flex justify-center items-center login-action-container`),children:[j(`span`,{children:n(`alreadySubscribed`)}),` `,j(`button`,{id:`pt-login`,onClick:e=>{e.stopPropagation(),t.onLoginClick()},className:A(`base-text-color underline px-1`),children:j(`span`,{className:A(`uppercase`),children:[` `,n(`login`),` `]})})]})})})}var Z={GDPR:`GDPR`,GCM:`GCM`,GPP_TCF:`GPP-TCF`,GPP_USA:`GPP-USA`},zi=!1,Bi=null;function Vi(e,t,n=null){let r=qt();mt().then(()=>{if((r==null?void 0:r.disableTracking)!==!0){var i,a,o,s,c;if(zi&&t==Q.CONSENT_ASKED||![Q.MANAGE_OPTIONS,Q.PRIVACY_POLICY].includes(t)&&Bi===t)return;Bi=t;let l=Yt(r),u=Jt(r),d=typeof n==`function`?n:()=>{};zi=!0;let f={eventId:Hi(),privacyLaw:e,cmpType:e,eventType:t,website:l,websiteId:u,userAgent:window.navigator.userAgent,innerWidth:window.innerWidth,env:Kt(r),metadata:{appName:r.appName},scr:{wd:window.screen.width,ht:window.screen.height},win:{wd:window.innerWidth,ht:window.innerHeight},tz:Intl.DateTimeFormat().resolvedOptions().timeZone,nav:{uAgt:window.navigator.userAgent,wd:((i=window.navigator)==null?void 0:i.webdriver)||!1,hc:((a=window.navigator)==null?void 0:a.hardwareConcurrency)||0,dm:((o=window.navigator)==null?void 0:o.deviceMemory)||0,uAct:{isActive:((s=window.navigator.userActivation)==null?void 0:s.isActive)||!1,hasBeenActive:((c=window.navigator.userActivation)==null?void 0:c.hasBeenActive)||!1}}};Ir.post(`https://producer-ovh-node01.intelligence.pubtech.ai:8443/log-data-raw`,f,!1,typeof n==`function`?300:void 0).then(()=>{d()}).catch(e=>{console.error(e),d()});try{let n=new CustomEvent(`__pubtech_cmp_event`,{detail:{cmpType:e,eventType:t}});setTimeout(()=>{window.dispatchEvent(n)},0)}catch(e){}}else typeof n==`function`&&n()})}var Q={REJECT:`PUBCONSENT_CLICK_CLOSE`,REJECT_AND_SUBSCRIBE:`PUBCONSENT_CLICK_CLOSE_AND_SUBSCRIBE`,MANAGE_OPTIONS:`PUBCONSENT_MANAGE_OPTIONS`,APPLY_CONSENTS:{REJECT:`PUBCONSENT_CLICK_APPLY_CONSENTS__REJECT`,PARTIAL:`PUBCONSENT_CLICK_APPLY_CONSENTS__PARTIAL`,FULL:`PUBCONSENT_CLICK_APPLY_CONSENTS__FULL`},APPLY_CONSENT_POPUP_WALL_DISPLAYED:{REJECT:`PUBCONSENT_CLICK_APPLY_CONSENTS__POPUP_WALL_REJECT`,PARTIAL:`PUBCONSENT_CLICK_APPLY_CONSENTS__POPUP_WALL_PARTIAL`,FULL:`PUBCONSENT_CLICK_APPLY_CONSENTS__POPUP_WALL_FULL`},ACCEPT_ALL_CONSENTS:`PUBCONSENT_CLICK_ACCEPT_ALL_CONSENTS`,ACCEPT_ALL_CONSENTS_FROM_CUSTOM_LAYER:`PUBCONSENT_CLICK_ACCEPT_ALL_CONSENTS_FROM_CUSTOM_LAYER`,ACCEPT_ONLY_MANDATORY_CONSENTS:`PUBCONSENT_CLICK_ACCEPT_ONLY_MANDATORY_CONSENTS`,OPEN_CMP:`PUBCONSENT_CLICK_OPEN_CMP`,CONSENT_ASKED:`PUBCONSENT_CONSENT_ASKED`,REJECT_POPUP_WALL_DISPLAY:`PUBCONSENT_CLICK_REJECT__POPUP_WALL_DISPLAY`,ACCEPT_ALL_WHILE_POPUP_WALL_DISPLAYED:`PUBCONSENT_CLICK_ACCEPT_ALL__WHILE_POPUP_WALL_DISPLAYED`,PRIVACY_POLICY:`PUBCONSENT_CLICK_PRIVACY_POLICY`,COOKIE_WALL_MODE__CALLED_ON_WAS_REJECTED:`PUBCONSENT_COOKIE_WALL_MODE__CALLED_ON_WAS_REJECTED`,COOKIE_WALL_MODE__CALLED_ON_REJECT_AND_SUBSCRIBE:`PUBCONSENT_COOKIE_WALL_MODE__CALLED_ON_REJECT_AND_SUBSCRIBE`,COOKIE_WALL_MODE__CALLED_ON_LOGIN:`PUBCONSENT_COOKIE_WALL_MODE__CALLED_ON_LOGIN`};function Hi(e=void 0){return e?(e^Ui()>>e/4).toString(16):`10000000-1000-4000-8000-100000000000`.replace(/[018]/g,Hi)}function Ui(){return window&&window.crypto&&typeof window.crypto.getRandomValues==`function`?crypto.getRandomValues(new Uint8Array(1))[0]%16:Math.random()*16}var Wi={USER_ACTION_TIME:`uat`,OPEN_BANNER_TIME:`obt`,FIRST_CONSENT_BANNER_PAINT:`fcbp`,PAGE_VIEW:`pv`},Gi=`pubtech-banner-render-trigger`,Ki=class{constructor({cmpType:e,websiteId:t,trackPageViews:n,env:r,appName:i,globalConsentDefaults:a}){F(this,`userActionData`,void 0),F(this,`openBannerData`,void 0),F(this,`firstConsentBannerPaintData`,void 0),F(this,`pageViewData`,void 0),F(this,`disable`,!1),F(this,`cmpType`,void 0),F(this,`websiteId`,void 0),F(this,`trackPageViews`,void 0),F(this,`env`,void 0),F(this,`appName`,void 0),F(this,`globalConsentDefaults`,void 0),this.cmpType=e,this.websiteId=t,this.trackPageViews=n,this.env=r,this.appName=i,this.globalConsentDefaults=!!a}recordUserAction(e){this.userActionData||(this.userActionData={type:e,timestamp:performance.now()})}supportsElementTiming(){return typeof PerformanceObserver==`function`&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(`element`)}async bannerRenderingTriggered(){if(document.visibilityState===`hidden`||!this.supportsElementTiming())return;let e=await new Promise(e=>{new PerformanceObserver(t=>{t.getEntries().forEach(t=>{if(t.identifier==`pubtech-banner-render-trigger`){let n=t.renderTime||t.startTime;e(Math.max(n-Yi(),0))}})}).observe({type:`element`,buffered:!0})}),t=new PerformanceObserver(n=>{for(let r of n.getEntries())if(r.name==`first-contentful-paint`){t.disconnect();let n=Math.max(r.startTime-Yi(),0);e>n&&(this.firstConsentBannerPaintData={value:Math.max(e-n,0)})}});t.observe({type:`paint`,buffered:!0}),this.openBannerData={timestamp:e,viewedTimestamp:e}}sendConsentContextMetrics(e){this.trackPageViews&&(this.pageViewData={monetizable:e}),this.sendMetrics()}async sendMetrics(){if(this.disable)return;this.disableMetrics();let e=await this.calculateMetrics();if(Object.keys(e).length===0)return;let t={w_id:this.websiteId,ct:this.cmpType,pn:document.location.pathname,wd:window.innerWidth,metrics:e,metadata:{beacon:`true`,appName:this.appName,...(this.globalConsentDefaults?{globalConsentDefaults:`true`}:{})},env:this.env};this.trackPageViews&&(t.sc=qi());let n=`https://producer-ovh-node01.intelligence.pubtech.ai:8443/website-metrics`,r=!1;navigator.sendBeacon&&(r=navigator.sendBeacon(n,JSON.stringify(t))),r||Ir.post(n,{...t,metadata:{...t.metadata,beacon:`false`}})}disableMetrics(){this.disable=!0}async calculateMetrics(){let e={};if(this.pageViewData&&(e[Wi.PAGE_VIEW]={v:1,metadata:{consent:String(this.pageViewData.monetizable)}}),this.openBannerData){var t;Ji(this.openBannerData.timestamp)&&(e[Wi.OPEN_BANNER_TIME]={v:this.openBannerData.timestamp}),Ji((t=this.firstConsentBannerPaintData)==null?void 0:t.value)&&(e[Wi.FIRST_CONSENT_BANNER_PAINT]={v:this.firstConsentBannerPaintData.value})}if(this.userActionData&&this.openBannerData){let t=this.userActionData.timestamp-this.openBannerData.viewedTimestamp;Ji(t)&&(e[Wi.USER_ACTION_TIME]={v:t,metadata:{event:this.userActionData.type}})}return e}};function qi(){let e=`direct`,t=document.referrer;if(!t)return e;try{let n=new URL(t).hostname.toLowerCase().replace(/^www\./,``),r=[`facebook.com`,`instagram.com`,`twitter.com`,`linkedin.com`,`reddit.com`,`tiktok.com`,`pinterest.com`,`tumblr.com`,`snapchat.com`,`weibo.com`,`wechat.com`,`t.co`],i=[`google.com`,`google.co.uk`,`google.de`,`google.fr`,`google.es`,`google.it`,`bing.com`,`yahoo.com`,`duckduckgo.com`,`baidu.com`,`yandex.com`,`yandex.ru`,`ecosia.org`,`startpage.com`],a=e=>n===e||n.endsWith(`.`+e);r.some(a)?e=`social`:i.some(a)&&(e=`organic`)}catch(e){}return e}function Ji(e){return typeof e==`number`&&!isNaN(e)}function Yi(){let e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType(`navigation`)[0];return e&&e.responseStart>0&&e.responseStart{let e=f.current,t=e.querySelectorAll(`button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])`),n=t[0],r=t[t.length-1],i=t=>{t.key===`Tab`&&(t.shiftKey&&(document.activeElement===n||document.activeElement===e)?(t.preventDefault(),r.focus()):!t.shiftKey&&document.activeElement===r&&(t.preventDefault(),n.focus()))};return e.addEventListener(`keydown`,i),document.activeElement!=null&&[...t].includes(document.activeElement)||o||e.focus(),()=>{e.removeEventListener(`keydown`,i)}}),j(`div`,{role:`dialog`,tabIndex:-1,ref:f,"aria-label":`Consent Management Platform`,className:A(`${d} ${t}`),children:j(`div`,{className:A(`cmp-popup-body ${e}`),children:[i,n,j(`p`,{elementTiming:Gi,style:{height:0},"aria-hidden":!0,tabIndex:-1,children:`\xA0`}),r]})})}var Zi=null;function Qi({coreCmpDataBundle:e,cmpConfiguration:t,options:n,translate:r}){let[i,a]=k(!1),[o,s]=k(e);He(()=>{s(e)},[e]);let[c,l]=k(null),[u,d]=k(Zi);He(()=>{Zi=I.MANDATORY_COOKIE,d(I.MANDATORY_COOKIE)},[e]);let[f,p]=k(n.showPopupWallModeDefaultState);async function m(e){await N(),d(e),Ut()}async function h(e=null,t=null){e&&m(e),await N(),l(t),a(!0),Ut(),Wt()}function g(){return a(!1),m(Zi)}function _(e){m(e)}let v=t.hideMoreOptionsButton||f;typeof n.openVendorTabCallback==`function`&&n.openVendorTabCallback(function(){h(I.ADVERTISING_COOKIE,Oe.VENDORS)});async function y(){let{uiChoicesBridgeDto:e}=await o;if(t.popupWallModeEnabled){let t=e.UIPurposeChoices.every(e=>e.state),r=e.UISpecialFeatureChoices.every(e=>e.state),i=e.UIVendorChoices.every(e=>e.state);if(t&&r&&i){n.applyConsent({keepSameUI:!1});return}g(),p(!0)}n.applyConsent()}if(f){let e=document.getElementsByTagName(`body`)[0];e&&e.classList.add(A(`pubtech-popup-wall`))}let b=`${t.buttonBorderStyle==Bt.ROUNDED?`rounded-buttons `:``}${t.uiBorderStyle==Bt.ROUNDED?`rounded-container`:``}`;b+=f?` cmp-popup-wall-container `:``;let x=``,S=`top`;i?x=`more-options-displayed`:(n.isWebStandard&&t.compactFirstLayer&&(b+=` compact-panel`),t.headerActionsToBottom&&(S=`bottom`));let{primaryButtonClass:C}=Qt({buttonThickness:t.buttonThickness,buttonShadow:t.buttonShadow});return j(Xi,{additionalUILayoutClasses:b,additionalPopupBodyClasses:x,isInIframeOrWebView:!n.isWebStandard,isSecondLayer:i,expandToViewport:!!t.expandToViewport||i,stackFooterActions:!!t.stackFooterActions,uppercaseForActions:!!t.uppercaseForActions,logoDisplayed:typeof t.logoUrl==`string`&&t.logoUrl.trim()!==``,header:j(Ri,{cmpConfiguration:t,options:{onRejectClick:()=>{n.rejectAll().then(function(e){p(!!(e!=null&&e.showPopupWall))})},showBackButton:i,resetShowMoreOptions:()=>{g().then(()=>{var e;(e=document.getElementById(`pt-more-options`))==null||e.focus()})},showPopupWall:f,isResurfacing:n.isResurfacing,headerActionsPosition:S,primaryButtonClassAsAcceptAll:C,isCookieWallModeEnabled:n.isCookieWallModeEnabled,onLoginClick:n.login,isAmpExecution:n.isAmpExecution},translate:r}),content:j(tn,{coreCmpDataBundle:o,cmpConfiguration:t,options:{showPopupWall:f,showOptions:i,openSubTab:c,showOptionsCallback:function(e,t){h(e,t)},switchTab:function(e){_(e)},activeTab:u,retryDataLoading:()=>s(n.retryDataLoading()),purposesIdsThatMustBeEnabled:n.purposesIdsThatMustBeEnabled,isCookieWallModeEnabled:n.isCookieWallModeEnabled},translate:r}),footer:j(Ii,{footerAlign:t.footerAlign,otherActions:j(E,{children:[!i&&!v&&j($t,{options:{id:`pt-more-options`,onClick:async function(){await N(),h(),L.getInstance().dispatch(new mn),Vi(Z.GDPR,Q.MANAGE_OPTIONS)},content:P(t.manageOptionsText)?t.manageOptionsText:r(`moreOption`),buttonShadow:t.buttonShadow,buttonThickness:t.buttonThickness,differentiateButtons:t.differentiateButtons}}),i&&j($t,{options:{onClick:y,content:P(t.acceptSelected)?t.acceptSelected:r(`acceptSelected`),buttonShadow:t.buttonShadow,buttonThickness:t.buttonThickness,differentiateButtons:t.differentiateButtons}}),t.popupWallModeRequireAcceptOfMandatoryCookies&&f&&j($t,{options:{onClick:n.acceptMandatory,content:r(`acceptMandatory`),buttonShadow:t.buttonShadow,buttonThickness:t.buttonThickness,differentiateButtons:t.differentiateButtons}})]}),acceptAllFunction:n.acceptAll,acceptAllText:i?P(t.acceptAllSecondLayerText)?t.acceptAllSecondLayerText:r(`acceptAllChoices`):P(t.acceptAllText)?t.acceptAllText:r(`acceptAllChoices`),affirmativeButtonIcon:t.affirmativeButtonIcon,buttonShadow:t.buttonShadow,buttonThickness:t.buttonThickness,differentiateButtons:t.differentiateButtons})})}function $i(e){return P(e)?e:`#4663da`}function ea(e,t){let n=$i(e.primaryColor);document.documentElement.style.setProperty(`--pt-primary-color`,n),document.documentElement.style.setProperty(`--pt-secondary-color`,e.secondaryColor&&e.secondaryColor.length>0?e.secondaryColor:`#fff`),document.documentElement.style.setProperty(`--pt-secondary-text-color`,e.secondaryTextColor&&e.secondaryTextColor.length>0?e.secondaryTextColor:n);let r=e.closeButtonColor&&e.closeButtonColor.length>0?e.closeButtonColor:n;document.documentElement.style.setProperty(`--pt-close-color`,r),document.documentElement.style.setProperty(`--pt-close-border-color`,e.closeButtonBorderColor&&e.closeButtonBorderColor.length>0?e.closeButtonBorderColor:r),document.documentElement.style.setProperty(`--pt-close-background-color`,e.closeButtonBackgroundColor&&e.closeButtonBackgroundColor.length>0?e.closeButtonBackgroundColor:`#fff`),(!e.adaptiveFont||t)&&document.documentElement.style.setProperty(`--pt-font`,`Helvetica, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"`)}var ta=({settings:"Settings",consentStorageInfo:"The choices you make regarding the purposes and entities listed in this notice are stored in a cookie named {{cookieName}} for a maximum of {{months}} months.",legitimateInterest:"Legitimate Interest",legIntInfo:"Information Legitimate Interest",loading:"Loading",partnersCountMsg:"The total number of Partners is {{partnersCount}}.",sessionRetention:"Storage per session",retentionDays:"Retention period {{retentionsDays}}",dataDeclaration:"Data categories used",illustrationTitle:"Text illustration",closeGDPR:"Continue without accepting",rejectAndSubscribe:"Decline and subscribe",alreadySubscribed:"Already subscribed?",login:"Log in",seeList:"See list",hideList:"Hide list",featureCookieMessage:"Functionality cookies are optional and their purpose concerns one of the following or similar: contact the user, registration and authentication, user database management, use of live chat, communication via web channels, management and interaction requests for support and contact and tag management.",userExperienceCookieMessage:"User experience cookies are optional and their purpose concerns one of the following or similar: RSS feeds, social networks, external platforms, surveys, interaction with data collection platforms and other third parties and social features.",measurementCookieMessage:"Measurement cookies are optional and their purpose concerns one of the following or similar: statistics, data collection and online surveys, A / B testing, Heat Mapping, session recording and performance measurements.",specialFeaturesMessage:"Please note that special features can be used, regardless of the preferences you have indicated, if they are necessary to ensure security, prevent fraud and debug.",cookieName:"Cookie name",googleVendorMessage:"List of {{partnersCount}} advertising partners that are not part of the IAB framework but are used by Google.",iabVendorMessage:"List of {{partnersCount}} advertising partners that are part of the IAB framework.",domains:"Domains",acceptAllChoices:"Accept all",withdrawAll:"Withdraw all",acceptMandatory:"Accept only technical cookies",rejectAllChoices:"Reject all",purposesMessage:"You can choose how to use your personal data. {{partnersCount}} Advertising partners ask for your consent to do the following.",specialPurposesMessage:"According to the TCF, the partners can use the following special purposes.",featuresMessage:"According to the TCF, the partners can use the following features.",purposeTab:"Consents",emptyGooglePartners:"There are no vendors to show.",mandatoryCookie:"Technical",featureCookies:"Features",userExperienceCookies:"User Experience",measurementCookies:"Measurement",advertisingCookie:"Advertising",cmpConfigMessage:"In this panel you can choose to accept or decline the consents related to each section below.",seeDetails:"Show details",hideDetails:"Hide detail",type:"Type",accept:"Agree",readHere:"privacy policy",acceptSelected:"Agree to selected",moreOption:"Manage options",partners:"Partners",partnersTCF:"TCF Partners",partnersGoogle:"Google Partners",partner:"Partner",showListPartners:"Show Partners List",hideListPartners:"Hide Partners List",legalDescription:"Legal description",object:"Object",objected:"Objected",removeObjection:"Remove objection",cookiePre:"Cookie duration",purposes:"Purposes",specialPurposes:"Special purposes",features:"Features",specialFeatures:"Special features",back:"Back",cookieExpireDays:"Expiration cookie (days)",cookieNotUsed:"Cookie not used",title:"We value your privacy",options:"Manage your consents",privacyPolicy:"privacy policy",cookieSettings:"Manage consent",legIntUsage:"Some Vendors may process your personal data on the basis of legitimate interest without requesting your consent. You have the right to object to this processing. See the {{legitimateInterestLink}} section for more information.",consentScopeService:"Your preferences will apply to this website only.",consentScopeServiceApp:"Your preferences will apply to this app only.",consentScopeGroup:"Your preferences will apply to all the websites and apps of our group{{groupInfo}}.",consentScopeMultiDevice:"Your preferences will apply to this service on all the devices and browsers you use to access it, for example when you are logged in to your account{{groupInfo}}.",consentScopeGroupLinkLabel:"information about the group",cmpMessage:"We and our {{partners}} store and/or access information on a device, such as cookies and process personal data, such as unique identifiers and standard information sent by a device for personalised advertising and content, advertising and content measurement, audience research and services development. With your permission we and our {{partners}} may use precise geolocation data and identify devices based on information actively requested. You may click to consent to our and our {{partners}}\u2019 processing as described above. Alternatively you may access more detailed information and change your preferences before consenting or to refuse consenting. {{beforeEndingPhrase}}{{consentScopeInfo}} You can change your preferences or withdraw your consent at any time by returning to this site and clicking the {{privacyPolicyUrl}} button at the bottom of the webpage.",mandatoryCookieMessage:"The necessary cookies help to make a website usable by enabling basic functions such as page navigation and access to protected areas of the site. The website cannot function properly without these cookies.",advertisingChoicesMessage:"You can choose how to use your personal data for advertising, through optional cookies and the configuration available below.",popupWallTitle:"You have chosen not to accept cookies",popupWallMessage:"Personalized advertising is a way to support the work of our editorial team, which is committed to providing you with quality information every day. By accepting cookies, you will help us to provide updated and authoritative information. You can change your \"{{consents}}\" at any time using the buttons on the page.",cookiePreferences:"cookie preferences",seeDeviceStorageDisclosureDetails:"See Device Storage Disclosure Details",vendorDeviceStorageOperationalDisclosures:"Vendor Device Storage & Operational Disclosures",vendorDisclosedDomains:"Disclosed domains",vendorStorageIdentifier:"Identifier",vendorStorageType:"Storage type",vendorStorageDescription:"Description",vendorStoragePurposesIds:"Additional purposes IDs",vendorStorageSpecialPurposesIds:"Additional special purposes IDs",vendorStorageMaxAge:"Storage max age",vendorStorageCookieRefresh:"Cookie refresh",vendorStorageYes:"Yes",vendorStorageNo:"No",vendorStorageNonTcf:"Non-TCF storage / operational use",vendorStorageOptOut:"Opt-out enabled",vendorDisclosedSdks:"Disclosed SDKs",vendorDeviceStorageDisclosureFetchFailed:"We tried to fetch specific informations from the Vendor using the deviceStorageDisclosureUrl but it failed please retry later or contact {{vendorName}}.",year:"Year",month:"Month",week:"Week",day:"Day",hour:"Hour",minute:"Minute",second:"Second",years:"Years",months:"Months",days:"Days",hours:"Hours",minutes:"Minutes",seconds:"Seconds",weeks:"Weeks",dataUnavailableMessage:"The list of partners could not be loaded. A VPN, an ad blocker or the privacy settings of your browser could be blocking it. You can still accept or reject.",retry:"Retry"});;function na(){return function(e,t={},n=!1){let r=n?e:ta[e];for(let e in t)for(;typeof r==`string`&&r.includes(`{{${e}}}`);)r=r.replace(`{{${e}}}`,t[e]);return r}}function ra({bottomPosition:e,ctaColor:t,leftSide:n,onClick:r,translate:i}){return j(`div`,{title:i(`cookieSettings`),className:A(`cmp-open-button-container primary-background-color ${e?n?`rounded-tr-lg`:`rounded-tl-lg`:n?`rounded-r-lg`:`rounded-l-lg`}`),children:j(`button`,{id:`pt-open`,className:A(`c-text-white`),"aria-label":i(`cookieSettings`),"aria-haspopup":`dialog`,onClick:function(e){e.stopPropagation(),r()},children:j(`svg`,{width:20,viewBox:`15 15 230 230`,"aria-hidden":`true`,children:[j(`rect`,{fill:`none`,height:`256`,width:`256`}),j(`path`,{d:`M224,127.4a95.6,95.6,0,0,1-28.2,68.5c-36.9,36.9-97.3,37.3-134.7.9A96,96,0,0,1,128.6,32a8.1,8.1,0,0,1,7.8,9.8,32,32,0,0,0,30.8,39,8,8,0,0,1,8,8,32,32,0,0,0,39,30.8A8.1,8.1,0,0,1,224,127.4Z`,fill:`none`,stroke:t,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`12`}),j(`circle`,{cx:`156`,cy:`172`,r:`10`,fill:t}),j(`circle`,{cx:`92`,cy:`164`,r:`10`,fill:t}),j(`circle`,{cx:`84`,cy:`108`,r:`10`,fill:t}),j(`circle`,{cx:`115`,cy:`124`,r:`10`,fill:t}),j(`circle`,{cx:`135`,cy:`144`,r:`10`,fill:t})]})})})}function ia(e,t,n){let r=qt(),i=`right-0`,a=r.openButtonSide===`left`;a&&(i=`left-0`);let o=r.openButtonPosition!==`middle`;o||(i+=` position-middle`);let s=`#000`;r.openButtonCTAColor&&r.openButtonCTAColor.length>0&&(s=r.openButtonCTAColor);let c=!An();r.openButton&&c&&n?(e.className=A(`${i} cmpButtonContainer zIndexPowered`),De(j(ra,{translate:na(),leftSide:a,bottomPosition:o,ctaColor:s,onClick:t}),e)):(e.className=``,De(null,e))}var aa=class{constructor(e,t){F(this,`isAmp`,void 0),F(this,`endpointUrl`,void 0),this.isAmp=e,this.endpointUrl=t}getSubscribedEvents(){return{[dn.EVENT_NAME]:`onConsentPersisted`}}onConsentPersisted(e){let t=window.location.href;this.isAmp&&(t=document.referrer);let n=qt();Ir.post(this.endpointUrl,{tcString:e.data.tcString,acString:e.data.acString,pcString:e.data.pcString,url:t,env:Kt(n),metadata:{appName:n.appName}})}static getClassName(){return`CollectProofOfConsentSubscriber`}};function oa(e){if(e.cookieWallMode==0)return!1;if(rn.getService(sn.getClassName()).getCookie(e.cookieWallModeOptOutCookieName).length>0)return!0;let t=e.cookieWallModeNoConsentRoutes||[];return e.cookieWallModeLoginLink&&t.push(e.cookieWallModeLoginLink),e.cookieWallModeSubscriptionLink&&t.push(e.cookieWallModeSubscriptionLink),rt(t)}var sa=`__pubtech_queue_on_consent`,ca=`__pubtech_gcm_last_decision`;function la(e){return e.__pubtech_devtools_probe=!0,e}function ua(){let e=window;Array.isArray(e[sa])||(e[sa]=[]);let t=0;e[sa].push(la((n,r)=>{try{var i,a;t+=1,e[ca]={sequence:t,cmpType:n,googleConsentMode:(i=r==null||(a=r.integrations)==null?void 0:a.googleConsentMode)==null?null:i,dataLayerLengthAtEmit:Array.isArray(e.dataLayer)?e.dataLayer.length:-1,timestamp:Date.now()}}catch(e){}}))}async function da(e){ua(),await zn(e)}async function fa(){await Rn()}var pa=`pubtech:consent-persisted`,ma=`You MUST call list_3p_developer_tools again afterwards to see the tools with their full descriptions and schemas — they cannot appear in the listing that led you here, because tool discovery is synchronous and these definitions are fetched over the network. Safe to call more than once.`;function ha(e){window.addEventListener(`devtoolstooldiscovery`,t=>{t.respondWith(e())})}var ga=!1;function _a(){ga||(ga=!0,L.getInstance().subscribe(`devToolsConsentActions:consentPersistedRelay`,dn.EVENT_NAME,()=>window.dispatchEvent(new CustomEvent(pa))))}var va={type:`object`,properties:{},additionalProperties:!1};function ya(e){ha(()=>({name:`PubConsent CMP - DevTools loaders (${e})`,description:`Loaders for the PubConsent CMP devtools. This CMP can apply and inspect consent decisions (accept all, reject all, custom/partial choices, read the current state) and debug this page's Google Consent Mode integration, but those tools are hosted separately so they cost nothing for real visitors. Call the loader you need below, then list the page tools again.`,tools:[{name:`load_consent_actions_tools`,description:`Loads this CMP's consent-action tools: accept all, reject all, custom/partial choices, and reading the current consent state. ${ma}`,inputSchema:va,execute:async()=>(_a(),await Kn(e),{loaded:!0,cmpType:e,nextStep:`Call list_3p_developer_tools again — the "PubConsent CMP - Consent Actions" group is now registered and will appear in the next listing.`})},{name:`load_gcm_debugger_tools`,description:`Loads the Google Consent Mode debugging tools for this page: a runtime report on how the CMP and Google tags are installed, the dataLayer command order, the contents of each gtag consent command, and whether what was sent to Google matches the decision the CMP made. ${ma}`,inputSchema:va,execute:async()=>(await fa(),{loaded:!0,cmpType:e,nextStep:`Call list_3p_developer_tools again — the "PubConsent CMP - Google Consent Mode DevTools" group is now registered and will appear in the next listing.`})}]}))}var ba=`data-js-pt-label`,xa=`data-js-pt-wait-for`,Sa=`data-js-pt-purposes`,Ca=`data-js-pt-categories`,wa=`_js_pt_activate__inline`,Ta=`_js_pt_activated__inline`,Ea=`_js_pt_activated`,Da=`_js_pt_activate`;function Oa(e){let t=/^\s*\s*$/g,n={},r=[],i=Array.from(document.querySelectorAll(`.${Da}, .${wa}`));function a(e,...t){e&&(r.push(e),Array.isArray(n[e])&&n[e].forEach(function(e){typeof e==`function`&&e(t)}))}function o(e,t=null){typeof t==`string`&&t.trim().length>0&&!r.includes(t)?Array.isArray(n[t])?n[t].push(e):n[t]=[e]:e()}for(let n=0;ne.includes(String(t))).length!==e.length)return!1}return!0}function Ma(e,t,n,r,i){let a=Na(e,i);return a.setAttribute(`src`,t),typeof r==`string`&&a.setAttribute(`type`,r),typeof n==`string`&&(a.text=n),a.classList.add(Ea),a.classList.remove(Da),a.onload=i.onload,a.onerror=i.onerror,a}function Na(e,t){let n=document.createElement(e);return Array.from(t.attributes).forEach(e=>{e.nodeName!==`src`&&n.setAttribute(e.nodeName,e.nodeValue)}),n}function Pa({isWebStandard:e,pcModelMap:t,tcModel:n}){if(e){let e=[1];t&&(t.featureCookiesChoice&&e.push(2),t.userExperienceCookiesChoice&&e.push(3),t.measurementCookiesChoice&&e.push(4)),n.purposeConsents.has(2)&&e.push(5);try{window.dataLayer=window.dataLayer||[],typeof window.dataLayer.push==`function`&&(window.dataLayer.push({event:`__pub_tech_cmp_on_consent_queue`}),window.dataLayer.push({event:`__pubtech_queue_on_consent`}))}catch(e){console.error(`Error during dispatch GTM event`,e)}ft(()=>{setTimeout(()=>{try{Oa(e)}catch(e){console.error(`Error running cookie providers un-locker`,e)}},0)})}}var Fa,Ia,$=qt();$.googleConsentModeWebTcfFlag&&Vn(),Bn();var La=$.isAmp===!0,Ra=$.isAndroid===!0,za=$.isIos===!0,Ba=Ra||za,Va=!1,Ha=!1;if(!La)(0,l.default)();else{var Ua;let e;try{e=JSON.parse(window.name)}catch(t){e={}}$.externalTCString=P(e.consentString)?e.consentString:void 0,$.externalACString=P(e==null||(Ua=e.consentMetadata)==null?void 0:Ua.additionalConsent)?e.consentMetadata.additionalConsent:void 0,Ha=e.isDirty===!0}if(Ba){var Wa,Ga,Ka;let e=window.WebViewConnectorAPI.getCmpConfig(),t=JSON.parse(e);$.externalTCString=(Wa=t.tcString)==null?null:Wa,$.externalACString=(Ga=t.acString)==null?null:Ga,$.externalPCString=(Ka=t.pcString)==null?null:Ka,$.appName=t.appName,t.reason==vn.ASK&&(Va=!0)}var qa=P($.externalTCString),Ja=!La&&!Ba,Ya=`pubtech-cmp`,Xa=$.cookieWallMode===!0&&Ja,Za=$.popupWallModeEnabled===!0&&Ja&&!Xa,Qa=Za&&$.popupWallModeRequireAcceptOfMandatoryCookies===!0,$a=!1,eo=new Ki({cmpType:gn.TCF_V2_GDPR,websiteId:Jt($),trackPageViews:$.trackPageViews,env:Kt($),appName:$.appName,globalConsentDefaults:!1}),to=Xa&&$.cookieWallModeHooksUsage===!0&&typeof((Fa=window.__pubtech_cookie_wall_mode__hooks)==null?void 0:Fa.onWasRejected)==`function`,no=Xa&&$.cookieWallModeHooksUsage&&typeof((Ia=window.__pubtech_cookie_wall_mode__hooks)==null?void 0:Ia.onRejectAndSubscribe)==`function`,ro=Za&&!Qa||Xa,io=!1,ao=new an(document,Ya,A(`hidden`),(e,t,n,r)=>{let i=Za&&(n==null?void 0:n.isRenderOnRejectedConsent)===!0,a=i;if(at($.skipBot)&&it()&&!$a){l(),$a=!0;return}if(window.___pubtech_action_reject_all=_,window.___pubtech_action_accept_all=l,window.___pubtech_action_apply_custom_consent=f,window.___pubtech_action_get_available_options=p,oa($)){r.debug(`Skip the rendering phase`);return}if(n!=null&&n.isRenderOnRejectedConsent&&to){try{window.__pubtech_cookie_wall_mode__hooks.onWasRejected(),Vi(Z.GDPR,Q.COOKIE_WALL_MODE__CALLED_ON_WAS_REJECTED)}catch(e){r.error(`Trying to call onWasRejected CookieWallMode Hook but an error occurred`,e),g()}return}ea($,!Ja);let o=``;if(Ja&&$.isFlatUI&&!$.expandToViewport)switch(o+=` flat-ui`,$.flatUIPosition){case`top`:o+=` flat-ui-top`;break;case`bottom`:o+=` flat-ui-bottom`;break;default:o+=` flat-ui-bottom`;}let s=document.getElementsByTagName(`body`)[0];s&&$.lockBodyScroll&&s.classList.add(A(`pubtech-body-no-scroll`)),e.className=A(`zIndexPowered cmpContainer${o}${La?` amp-execution`:``}`);let c=na();De(j(Qi,{coreCmpDataBundle:t,cmpConfiguration:$,options:{isWebStandard:Ja,purposesIdsThatMustBeEnabled:Array.isArray($==null?void 0:$.purposesIdsThatMustBeEnabled)?$==null?void 0:$.purposesIdsThatMustBeEnabled:[],acceptAll:function(){l({userClick:!0})},rejectAll:function(){let e={userClick:!0};return Za?m(e):Xa?h(e):_({userClick:!0,popupWallModeEnabled:!1})},applyConsent:d,retryDataLoading:function(){return t=n.retryDataLoading(),t},acceptMandatory:v,isCookieWallModeEnabled:Xa,isAmpExecution:La,login:u,popupWallModeEnabled:Za,popupWallModeMessage:$.popupWallModeMessage,popupWallModeRequireAcceptOfMandatoryCookies:Qa,showPopupWallModeDefaultState:i,isResurfacing:(n==null?void 0:n.isResurfacing)===!0||Va&&qa,openVendorTabCallback:function(){let e=!1;return function(t){e||(e=!0,n!=null&&n.openAdvertisingVendorTab&&typeof t==`function`&&t())}}()},translate:c}),e),i||Vi(Z.GDPR,Q.CONSENT_ASKED),eo.bannerRenderingTriggered(),st(gn.TCF_V2_GDPR);function l({userClick:e,isFromCustomLayer:n}={userClick:!1,isFromCustomLayer:!1}){let r=a&&Za?Q.ACCEPT_ALL_WHILE_POPUP_WALL_DISPLAYED:Q.ACCEPT_ALL_CONSENTS;n&&(r=Q.ACCEPT_ALL_CONSENTS_FROM_CUSTOM_LAYER,e=!0),L.getInstance().dispatch(new ln(t)),e&&eo.recordUserAction(r),Vi(Z.GDPR,r)}async function u(){var e;if(await M(),$.cookieWallModeHooksUsage===!0&&typeof((e=window.__pubtech_cookie_wall_mode__hooks)==null?void 0:e.onLogin)==`function`)try{window.__pubtech_cookie_wall_mode__hooks.onLogin(),Vi(Z.GDPR,Q.COOKIE_WALL_MODE__CALLED_ON_LOGIN);return}catch(e){r.error(`Trying to call onLogin CookieWallMode Hook but an error occurred`,e),t();return}t();function t(){P($.cookieWallModeLoginLink)?setTimeout(()=>{window.location.href=$.cookieWallModeLoginLink},0):r.error(`Login link unavailable.`)}}async function d({keepSameUI:e}={keepSameUI:!0}){await M();let n=(await t).uiChoicesBridgeDto.UIPurposeChoices.filter(e=>e.state).length,r=a&&Za?Q.APPLY_CONSENT_POPUP_WALL_DISPLAYED:Q.APPLY_CONSENTS,i=r.PARTIAL;n===11&&(i=r.FULL),n===0&&(i=r.REJECT);let o=e&&Za&&!Qa;L.getInstance().dispatch(new un(t,{keepSameUI:o,persistConsent:!Xa||!o})),eo.recordUserAction(i),Vi(Z.GDPR,i),a=!0}async function f(e){var n,r,i,a,o;let s=(await t).uiChoicesBridgeDto,c=new Set((n=e.purposeIds)==null?[]:n),l=new Set((r=e.legitimateInterestPurposeIds)==null?[]:r);s.UIPurposeChoices.forEach(e=>{e.state=c.has(e.id),e.legIntAvailable&&(e.legIntState=l.has(e.id))});let u=new Set((i=e.vendorIds)==null?[]:i),f=new Set((a=e.legitimateInterestVendorIds)==null?[]:a);s.UIVendorChoices.forEach(e=>{e.state=u.has(e.id),e.legIntAvailable&&(e.legIntState=f.has(e.id))});let p=new Set((o=e.specialFeatureIds)==null?[]:o);s.UISpecialFeatureChoices.forEach(e=>{e.state=p.has(e.id)});let m=e.publisherCookieChoices,h=s.UIPublisherCookieOptions;m&&h&&[`featureCookiesChoice`,`userExperienceCookiesChoice`,`measurementCookiesChoice`].forEach(e=>{let t=m[e];t!==void 0&&h[e]&&(h[e].state=t)}),await d({keepSameUI:!1})}async function p(){let e=(await t).uiChoicesBridgeDto;return{purposes:e.UIPurposeChoices.map(e=>({id:e.id,name:e.name,description:e.description,legIntAvailable:e.legIntAvailable===!0})),specialFeatures:e.UISpecialFeatureChoices.map(e=>({id:e.id,name:e.name,description:e.description})),vendorListUrl:`https://cmp-assets.pubtech.ai/vendorList/v2.2/${oo}/vendor-list.json`,vendorListNote:`Vendor names aren't enumerated here — fetch this URL directly for the full IAB Global Vendor List (standard v2.2 JSON: purposes/specialFeatures/vendors) to resolve vendorIds to names.`}}async function m({userClick:e}={userClick:!1}){return $.popupWallModeRequireAcceptOfMandatoryCookies||_({userClick:e,popupWallModeEnabled:!0}),{showPopupWall:!0}}async function h({userClick:e}={userClick:!1}){await N();let t=Q.REJECT_AND_SUBSCRIBE;e&&eo.recordUserAction(t);let n=navigator.userAgent.toLowerCase();eo.sendConsentContextMetrics(!1);let i=n.includes(`firefox`),a,o=new Promise(e=>{a=e});Vi(Z.GDPR,t,()=>{if(no)try{window.__pubtech_cookie_wall_mode__hooks.onRejectAndSubscribe(),Vi(Z.GDPR,Q.COOKIE_WALL_MODE__CALLED_ON_REJECT_AND_SUBSCRIBE)}catch(e){r.error(`Trying to redirect to subscription page.`),a(!0)}else a(!0)}),$.cookieWallModeDenyPersistence===!0?(L.getInstance().subscribe(`cookieWallModeDenyPersistence`,dn.EVENT_NAME,()=>{o.then(()=>{setTimeout(g,0)})}),io=!0,y(!no)):o.then(()=>{i?g():setTimeout(g,0)})}function g(){P($.cookieWallModeSubscriptionLink)?window.location.href=$.cookieWallModeSubscriptionLink:r.error(`Subscription link unavailable.`)}async function _({userClick:e,popupWallModeEnabled:t}={userClick:!1,popupWallModeEnabled:!1}){await M();let n=t?Q.REJECT_POPUP_WALL_DISPLAY:Q.REJECT;y(t),e&&eo.recordUserAction(n),Vi(Z.GDPR,n),a=!0}async function v(){await M(),y(!1),eo.recordUserAction(Q.ACCEPT_ONLY_MANDATORY_CONSENTS),Vi(Z.GDPR,Q.ACCEPT_ONLY_MANDATORY_CONSENTS)}function y(e){L.getInstance().dispatch(new un(Promise.resolve(t).then(b),{keepSameUI:e}))}function b(e){let t=e.uiChoicesBridgeDto;for(let e in t)if(e===`_UIPublisherCookieOptions`){var n,r,i;(n=t.UIPublisherCookieOptions)!=null&&n.featureCookiesChoice&&(t.UIPublisherCookieOptions.featureCookiesChoice.state=!1),(r=t.UIPublisherCookieOptions)!=null&&r.userExperienceCookiesChoice&&(t.UIPublisherCookieOptions.userExperienceCookiesChoice.state=!1),(i=t.UIPublisherCookieOptions)!=null&&i.measurementCookiesChoice&&(t.UIPublisherCookieOptions.measurementCookiesChoice.state=!1)}else Array.isArray(t[e])&&t[e].forEach(e=>{e.state=!1});return e}},e=>{ea($,!Ja),ia(e,()=>{mo({isResurfacing:!0})},!io)},()=>{let e=document.getElementsByTagName(`body`)[0];e&&(e.classList.remove(A(`pubtech-body-no-scroll`)),e.classList.remove(A(`pubtech-popup-wall`)))}),oo=`183`,so=P($.cookieName)?$.cookieName:`euconsent-v2`,co=`ac_euconsent-v2`,lo=typeof $.forceUserLangTo==`string`&&$.forceUserLangTo.length>=2?$.forceUserLangTo:navigator.language,uo=new Fi({internal_publisherCookiesConfig:window.__pub_tech_cmp_is_configurator_preview_client?window.__pub_tech_cmp_publisher_cookies:null,publisherCookieJsonBaseUrl:`https://cmp-assets.pubtech.ai/${$.websiteId}/${$.publisherCookieSubFolder}`,publisherCookieVersion:$.publisherCookieVersion,additionalRefreshConsentOnPCUpdates:!!$.additionalRefreshConsentOnPCUpdates,publisherCountryCode:$.publisherCountryCode,baseUrlVendorList:`https://cmp-assets.pubtech.ai/vendorList/v2.2/${oo}`,isAmp:La,isWebViewSDK:Ba,isWebStandard:Ja,onConsent:async(e,t,n)=>{let r=t.purposeConsents.has(2)&&t.purposeConsents.has(7)&&t.purposeConsents.has(9)&&t.purposeConsents.has(10);eo.sendConsentContextMetrics(r);let i=Ni({tcModel:t,pcModelMap:n}),a={consentUpdate:e.consentUpdate};$.delegateConsentPersist===!0&&(a.consentStrings=[{key:so,type:`cookie`,value:e.data.tcString},{key:co,type:$.useCompactACStringAsCookie?`cookie`:`localStorage`,value:$.useCompactACStringAsCookie?vi.encodeACString(e.data.acString):e.data.acString},{key:`pubtech-cmp-pcstring`,type:`cookie`,value:e.data.pcString}]),await ot(e.cmpType,t,e.data,{cookieConsents:n,googleConsentMode:i,metadata:a});let o=[{...e,...e.data},t,n,{googleConsents:i}];await ct(`__pub_tech_cmp_on_consent_queue__pre`,{yieldBetweenCalls:!1},...o),await ct(`__pub_tech_cmp_on_consent_queue`,{yieldBetweenCalls:!0},...o),$.isConsentStored=!0,$.googleConsentModeWebTcfFlag&&Hn(i),Pa({isWebStandard:Ja,pcModelMap:n,tcModel:t})},cmpId:352,cmpVendorListVersion:oo,cmpVersion:6,enableBorderAmpCmpUi:!1,initialHeightAmpCmpUi:`80vh`,isDebugEnabled:$.debug,isServiceSpecific:!0,supportedLanguages:[`it`,`en`,`fr`,`pt`,`pt-br`,`pt-pt`,`de`,`es`],userLanguage:lo,tcStringCookieName:P($.cookieName)?$.cookieName:`euconsent-v2`,acStringStorageKey:`ac_euconsent-v2`,uiConstructor:ao,useCompactACStringAsCookie:$.useCompactACStringAsCookie===!0,skipACStringCheck:$.acStringRequired!==!0,isLegitimateInterestEnabled:$.isLegitimateInterestEnabled===!0,permitLegitimateInterestOnlyForCriticalVendors:$.permitLegitimateInterestOnlyForCriticalVendors,forceLimitedAdsAtLeast:!1,expireTCStringInDays:180,requiredAcceptedPurposeIds:!$.cookieWallModeDenyPersistence||to?[]:[1,2,3,4,7,9,10],isRenderOnRejectedConsent:ro,forceInitialChoicesStatusToEnabled:Xa,googleConsentModeWebTcfFlag:$.googleConsentModeWebTcfFlag,googleConsentModeMobileTcfFlag:$.googleConsentModeMobileTcfFlag,narrowTcfVendorIds:$.narrowTcfVendorIds,narrowGoogleVendorIds:$.narrowGoogleVendorIds,discloseConsentAfterPrerender:!!$.discloseConsentAfterPrerender,delegateConsentPersist:$.delegateConsentPersist===!0});($==null?void 0:$.disableProofOfConsent)!==!0&&uo.getServicesManager().addEventSubscriberProvider(`CollectProofOfConsentSubscriber`,()=>new aa(La,`https://producer-ovh-node01.intelligence.pubtech.ai:8443/pubconsent-proof-of-consent-data`));async function fo(){let e=await wn(e=>{var t,n,r;$.externalTCString=(t=e.tcString)==null?null:t,$.externalACString=(n=e.acString)==null?null:n,$.externalPCString=(r=e.pcString)==null?null:r,$.appName=e.appName});return uo.init({externalTcString:$.externalTCString,externalAcString:$.externalACString,externalPcString:$.externalPCString,isAmpRefresh:Ha,useExternalStringsAsPrimary:Ba||e,externalOpenRequired:Va,isConsentSharingExecution:e})}var po=rt($.skipRoutesConsentRequest);po||fo();async function mo(e=null){eo.disableMetrics(),po?await fo():await M();let t=rn.getService(ki.getClassName()),n=rn.getService(vi.getClassName()),r=rn.getService(yi.getClassName());rn.getService(L.getClassName()).dispatch(new hn({tcString:t.retrieve(),acString:n.retrieve(),pcString:r.retrieve()},e)),Vi(Z.GDPR,Q.OPEN_CMP)}window.___pubtech_open_cmp=()=>{mo({isResurfacing:!0})},window.___pubtech_open_cmp_vendor=()=>{mo({openAdvertisingVendorTab:!0,isResurfacing:!0})};try{da({enableConsoleLogs:$.googleConsentModeDebug===!0,consentFramework:`tcf`,usingGTG:$.usingGTG,consentModeType:$.consentModeType,usingTCFFlag:$.googleConsentModeWebTcfFlag==1||$.googleConsentModeWebTcfFlag===`true`})}catch(e){}try{ya(gn.TCF_V2_GDPR)}catch(e){}