"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[807],{8866:(e,t,n)=>{var r=n(1380);function i(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},n=t.storageKey,r=t.daysToExpire,i=void 0===r?365:r,o=t.reset,a=void 0===o?{}:o;s(this,e),this.config={storageKey:n,daysToExpire:i,reset:a},this.storageObject=this.load(),this._clearExpiredStorage()}var t,n;return t=e,n=[{key:"setValue",value:function(e,t){this._updateBinaryFlag(e,{value:t,updateTime:!0})}},{key:"getValue",value:function(e){return!(!this._hasBinaryFlag(e)||!this._checkResetDate())}},{key:"setReferrer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.storageObject.ref=e}},{key:"load",value:function(){var e=this._getStoreContents(this.config.storageKey),t=null;try{if((t=JSON.parse(e))&&"object"===a(t))return t}catch(e){return{}}return{}}},{key:"save",value:function(){var e=this.config.storageKey,t="".concat(this.config.storageKey,"-expires");this._setStoreContents(e,JSON.stringify(this.storageObject)),this._setStoreContents(t,this._getExpirationTime())}},{key:"_checkResetDate",value:function(e){var t=this.storageObject[this._getCurrentVariation()];return t&&t.d&&this.config.reset[e]?t.d>this.config.reset[e]:!this.config.reset[e]}},{key:"_getExpirationTime",value:function(){var e=this.config.daysToExpire,t=new Date;return t.setTime(t.getTime()+864e5*e),t.toUTCString()}},{key:"_hasBinaryFlag",value:function(e){var t=this._getCurrentVariation();return(this.storageObject[t]||{}).b&e}},{key:"_updateBinaryFlag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.value,r=t.updateTime,i=t.variant,o=this.storageObject[i||this._getCurrentVariation()]||{};n?o.b|=e:o.b&=~e,o.d=r?Math.round(Date.now()/1e3):o.d,this.storageObject[i||this._getCurrentVariation()]=o}},{key:"_getCurrentVariation",value:function(){return r.E9.getPageData().variation}},{key:"_getStoreContents",value:function(e){try{return l(window.localStorage.getItem(l(e)))}catch(e){return{}}}},{key:"_setStoreContents",value:function(e,t){try{return l(window.localStorage.setItem(encodeURIComponent(e),encodeURIComponent(t)))}catch(e){return null}}},{key:"_clearExpiredStorage",value:function(){try{for(var e=[],t=new Date,n=0;n=o.getTime()&&e.push(r,r.replace("-expires",""))}}e.forEach((function(e){window.localStorage.removeItem(e)}))}catch(e){return null}}}],n&&c(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function d(e,t){for(var n=0;n=0&&n<5&&(e.a11yWidgetControls.setAttribute("data-current-level",n),e._activateIndicators(n),e._changeTextSize(n),e.a11yWidgetControls.setAttribute("aria-label","Current text size level is ".concat(n," out of 4")))}},{key:"_activateIndicators",value:function(e){var t=(0,r.R2)("#a11y-widget-indicators span");t.forEach((function(e){e.classList.remove("activated")}));for(var n=0;n<=e;n++)t[n].classList.add("activated")}},{key:"_changeTextSize",value:function(t){e.root.style.setProperty("--mobile-font-size","".concat(4+t,"vw")),e.root.style.setProperty("--default-font-size","".concat(16+4*t,"px")),t>0?(e.main.style.setProperty("width","24.75rem"),e.root.style.setProperty("--section-relative-margin","0"),e.main.style.setProperty("overflow","visible")):(e.root.style.setProperty("--section-relative-margin","0 auto"),e.main.style.setProperty("overflow","hidden"),e.main.style.setProperty("width","initial"))}}],null&&y(t.prototype,null),n&&y(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function p(e,t){for(var n=0;n16&&(s=16);var c=a/s,l=c.toFixed(2);s!==a&&l>1&&document.querySelectorAll([".btn",".contents p",".headline h1 > span",".headline h2 > span",".headline h3 > span",".headline h4 > span",".headline h5 > span",".headline h6 > span","form","ul","ol"].join()).forEach((function(e){var t=parseInt(window.getComputedStyle(e).fontSize,10),n=parseInt(window.getComputedStyle(e).lineHeight,10);e.style.fontSize="".concat((t/Math.pow(c,2)).toFixed(2),"px"),e.style.lineHeight="".concat((n/Math.pow(c,2)).toFixed(2),"px")}))}}}],null&&p(t.prototype,null),n&&p(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function m(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:300,n=window.pageYOffset,r="now"in window.performance?performance.now():(new Date).getTime(),i=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight),o=window.innerHeight||document.documentElement.clientHeight||document.getElementsByTagName("body")[0].clientHeight,a="number"==typeof e?e:e.offsetTop,s=Math.round(i-a0})),n=t?t.offsetWidth:0;(0,r.R2)('.widget:not([class*="hidden"])').forEach((function(t){var r=t.offsetLeft,i=r+t.offsetWidth;r<0&&e.left>r&&(e.left=r),i>n&&e.right{e(e.s=8866)}]);