(function () {function pb(a){return a&&a.__esModule?{d:a.default}:{d:a}}var V=this;var k={};var E={};var a,c,b,d,la,qb,rb,e,W={},ma=[],sb=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function z(r,o){for(var e in o)r[e]=o[e];return r}function Aa(r){var o=r.parentNode;o&&o.removeChild(r)}function g(r,o,e){var t,$,n,a=arguments,_={};for(n in o)"key"==n?t=o[n]:"ref"==n?$=o[n]:_[n]=o[n];if(arguments.length>3)for(e=[e],n=3;n0?X(v.type,v.props,v.key,null,v.__v):v)){if(v.__=e,v.__b=e.__b+1,null===(s=d[p])||s&&v.key==s.key&&v.type===s.type)d[p]=void 0;else for(u=0;u=t.__.length&&t.__.push({}),t.__[$]}function Sa($){return Bb=1,Cb(Ua,$)}function Cb($,r,t){var e=ca(ba++,2);return e.t=$,e.__c||(e.__=[t?t(r):Ua(void 0,r),function($){var r=e.t(e.__[0],$);e.__[0]!==r&&(e.__=[r,e.__[1]],e.__c.setState({}))}],e.__c=A),e.__}function pa($,r){var t=ca(ba++,3);!b.__s&&sa(t.__H,r)&&(t.__=$,t.__H=r,A.__H.__h.push(t))}function Db($,r){var t=ca(ba++,4);!b.__s&&sa(t.__H,r)&&(t.__=$,t.__H=r,A.__h.push(t))}function Eb($){return Bb=5,qa(function(){return{current:$}},[])}function qa($,r){var t=ca(ba++,7);return sa(t.__H,r)&&(t.__=$(),t.__H=r,t.__h=$),t.__}function Fb($,r){return Bb=8,qa(function(){return $},r)}function Gb(){Ma.forEach(function($){if($.__P)try{$.__H.__h.forEach(da),$.__H.__h.forEach(ra),$.__H.__h=[]}catch(r){$.__H.__h=[],b.__e(r,$.__v)}}),Ma=[]}b.__b=function($){A=null,Na&&Na($)},b.__r=function($){Oa&&Oa($),ba=0;var r=(A=$.__c).__H;r&&(r.__h.forEach(da),r.__h.forEach(ra),r.__h=[])},b.diffed=function($){Pa&&Pa($);var r=$.__c;r&&r.__H&&r.__H.__h.length&&(1!==Ma.push(r)&&Ab===b.requestAnimationFrame||((Ab=b.requestAnimationFrame)||function($){var r,t=function(){clearTimeout(e),Ta&&cancelAnimationFrame(r),setTimeout($)},e=setTimeout(t,100);Ta&&(r=requestAnimationFrame(t))})(Gb)),A=void 0},b.__c=function($,r){r.some(function($){try{$.__h.forEach(da),$.__h=$.__h.filter(function($){return!$.__||ra($)})}catch(t){r.some(function($){$.__h&&($.__h=[])}),r=[],b.__e(t,$.__v)}}),Qa&&Qa($,r)},b.unmount=function($){Ra&&Ra($);var r=$.__c;if(r&&r.__H)try{r.__H.__.forEach(da)}catch($){b.__e($,r.__v)}};var Ta="function"==typeof requestAnimationFrame;function da($){var r=A;"function"==typeof $.__c&&$.__c(),A=r}function ra($){var r=A;$.__c=$.__(),A=r}function sa($,r){return!$||$.length!==r.length||r.some(function(r,t){return r!==$[t]})}function Ua($,r){return"function"==typeof r?r($):r}var P=function(s){return"essential"===s};var U=function(e){var t=document.querySelector(".cookie-though");if(e)return null==t||t.removeAttribute("tabindex"),null==t?void 0:t.classList.add("visible");null==t||t.setAttribute("tabindex","-1"),null==t||t.classList.remove("visible")};var Hb=function(e){var i=e.isOpen,o=e.option,t=e.essentialLabel,r=e.onToggle,$=P(o.category);return g("div",{className:"ct-option "+(o.isEnabled?"ct-enabled":"")+" "+($?"ct-essential":"")},g("input",{type:"checkbox",id:o.id,name:o.id,disabled:$,checked:o.isEnabled,onClick:r,onFocus:function(e){return e.currentTarget.parentElement.scrollIntoView()},tabIndex:i?0:-1,"aria-hidden":!i}),g("label",{htmlFor:o.id,className:"ct-option-info"},g("p",null,g("strong",null,o.label),o.description),g("span",{className:"ct-slider"},$&&t)))};var Ib=function(e){var n=e.isOpen,r=e.options,o=e.cookiePolicy,$=e.essentialLabel,t=e.onToggle,i=r.map(function(e,r){return g(Hb,{key:r,isOpen:n,option:e,essentialLabel:$,onToggle:function(){return t(r)}})});return g("div",{className:"ct-policies"},i,o&&g("div",{className:"ct-declaration"},g("a",{tabIndex:0,href:o.url,role:"link"},o.label)))};var Jb={},Va="Expected a function",Wa=NaN,Kb="[object Symbol]",Lb=/^\s+|\s+$/g,Mb=/^[-+]0x[0-9a-f]+$/i,Nb=/^0b[01]+$/i,Ob=/^0o[0-7]+$/i,Pb=parseInt,Qb="object"==typeof V&&V&&V.Object===Object&&V,Rb="object"==typeof self&&self&&self.Object===Object&&self,Sb=Qb||Rb||Function("return this")(),Tb=Object.prototype,Ub=Tb.toString,Vb=Math.max,Wb=Math.min,ta=function(){return Sb.Date.now()};function Xb($,r,e){var t,a,n,i,o,v,y=0,O=!1,N=!1,c=!0;if("function"!=typeof $)throw new TypeError(Va);function F(r){var e=t,n=a;return t=a=void 0,y=r,i=$.apply(n,e)}function f($){var e=$-v;return void 0===v||e>=r||e<0||N&&$-y>=n}function u(){var $=ta();if(f($))return l($);o=setTimeout(u,function($){var e=r-($-v);return N?Wb(e,n-($-y)):e}($))}function l($){return o=void 0,c&&t?F($):(t=a=void 0,i)}function s(){var $=ta(),e=f($);if(t=arguments,a=this,v=$,e){if(void 0===o)return function($){return y=$,o=setTimeout(u,r),O?F($):i}(v);if(N)return o=setTimeout(u,r),F(v)}return void 0===o&&(o=setTimeout(u,r)),i}return r=Xa(r)||0,ea(e)&&(O=!!e.leading,n=(N="maxWait"in e)?Vb(Xa(e.maxWait)||0,r):n,c="trailing"in e?!!e.trailing:c),s.cancel=function(){void 0!==o&&clearTimeout(o),y=0,t=v=a=o=void 0},s.flush=function(){return void 0===o?i:l(ta())},s}function Yb($,r,e){var t=!0,a=!0;if("function"!=typeof $)throw new TypeError(Va);return ea(e)&&(t="leading"in e?!!e.leading:t,a="trailing"in e?!!e.trailing:a),Xb($,r,{leading:t,maxWait:r,trailing:a})}function ea($){var r=typeof $;return!!$&&("object"==r||"function"==r)}function Zb($){return!!$&&"object"==typeof $}function $b($){return"symbol"==typeof $||Zb($)&&Ub.call($)==Kb}function Xa($){if("number"==typeof $)return $;if($b($))return Wa;if(ea($)){var r="function"==typeof $.valueOf?$.valueOf():$;$=ea(r)?r+"":r}if("string"!=typeof $)return 0===$?$:+$;$=$.replace(Lb,"");var e=Nb.test($);return e||Ob.test($)?Pb($.slice(2),e?2:8):Mb.test($)?Wa:+$}Jb=Yb;var _b=function(e){Db(function(){var $FNyO$$interop$default=pb(Jb);var r=$FNyO$$interop$default.d(e,100);return window.addEventListener("resize",r),function(){return window.removeEventListener("resize",r)}},[e])};var ac=function(){var e=document.querySelector(".cookie-though").shadowRoot,t=e.querySelector(".ct-banner"),o=e.querySelector(".ct-customization-button"),d=e.querySelector(".ct-acceptance"),c=[],p=window.getComputedStyle(t);c.push(p.height,p.paddingTop,p.paddingTop);var r=window.getComputedStyle(o);c.push(r.height);var u=window.getComputedStyle(d);return c.push(u.height,u.paddingTop,u.paddingTop),c.push(p.paddingTop),{collapsedHeight:c.reduce(function(e,t){return e+Number(t.slice(0,-2))},0),containerOffset:2*+p.paddingBottom.slice(0,-2)}};var bc=function(e){var r=e.isOpen,t=e.children,i=e.onWindowResize,o=Eb(null),n=Fb(function(e){void 0===e&&(e=!1);var r=ac(),t=r.collapsedHeight,i=r.containerOffset,n=window.innerHeight,s=o.current.querySelector(".ct-policies").scrollHeight;e&&(o.current.style.transition="height 0ms ease-out");var c=n-t-i;c22&&(s?e.style.bottom=ga[2]:(e.style.bottom=H[3],e.style.width=G[3]))},xa=function(e){var $,t,s=e.policies,o=e.cookiePreferenceKey,r=e.header,i=e.customizeLabel,p=e.cookiePolicy,a=e.permissionLabels,n=e.essentialLabel,O=e.ee,D=eb({cookieOptions:s.map(function(e){return{id:e.id,isEnabled:P(e.category)}}),ee:O,cookiePreferenceKey:o}),T=D.getCookiePreferences,K=D.setCookiePreferences,Q=($=T(),t=$.cookieOptions.map(function(e){var $=s.find(function($){return $.id===e.id});return fa(fa({},$),e)}),fa(fa({},$),{cookieOptions:t}));return pa(function(){fb(),Q.isCustomised||U(!0)},[Q]),g(J,null,g(yb,{header:r}),g(_a,{cookieOptions:Q.cookieOptions,cookiePolicy:p,customizeLabel:i,permissionLabels:a,essentialLabel:n,setCookiePreferences:K,onWindowResize:fb}))};E.default=xa;var fc,gc={},I="object"==typeof Reflect?Reflect:null,gb=I&&"function"==typeof I.apply?I.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};function hc(e){console&&console.warn&&console.warn(e)}fc=I&&"function"==typeof I.ownKeys?I.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var hb=Number.isNaN||function(e){return e!=e};function j(){j.init.call(this)}(gc=j).once=mc,j.EventEmitter=j,j.prototype._events=void 0,j.prototype._eventsCount=0,j.prototype._maxListeners=void 0;var ic=10;function ha(e){if("function"!=typeof e)throw new TypeError("The \"listener\" argument must be of type Function. Received type "+typeof e)}function ib(e){return void 0===e._maxListeners?j.defaultMaxListeners:e._maxListeners}function jb(e,t,r,n){var i,o,$;if(ha(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),$=o[t]),void 0===$)$=o[t]=r,++e._eventsCount;else if("function"==typeof $?$=o[t]=n?[r,$]:[$,r]:n?$.unshift(r):$.push(r),(i=ib(e))>0&&$.length>i&&!$.warned){$.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+$.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=$.length,hc(s)}return e}function jc(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function kb(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=jc.bind(n);return i.listener=r,n.wrapFn=i,i}function lb(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?lc(i):nb(i,i.length)}function mb(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function nb(e,t){for(var r=new Array(t),n=0;n0&&(o=t[0]),o instanceof Error)throw o;var $=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw $.context=o,$}var s=i[e];if(void 0===s)return!1;if("function"==typeof s)gb(s,this,t);else{var v=s.length,a=nb(s,v);for(r=0;r=0;o--)if(r[o]===t||r[o].listener===t){$=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():kc(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,$||t)}return this},j.prototype.off=j.prototype.removeListener,j.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n=0;n--)this.removeListener(e,t[n]);return this},j.prototype.listeners=function(e){return lb(this,e,!0)},j.prototype.rawListeners=function(e){return lb(this,e,!1)},j.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):mb.call(e,t)},j.prototype.listenerCount=mb,j.prototype.eventNames=function(){return this._eventsCount>0?fc(this._events):[]};var oc=[{id:"essential",label:"Strictly necessary cookies",description:"These cookies are required to run the site.",category:"essential"},{id:"functional",label:"Functional cookies",description:"We\u2019ll remember the basics such as language.",category:"functional"},{id:"statistics",label:"Statistics",description:"We\u2019ll know where we should improve your experience.",category:"statistics"},{id:"marketing",label:"Marketing",description:"We'll only show you ads you're interested in.",category:"marketing"},{id:"social",label:"Social",description:"This allows us to track your social activity",category:"social"},{id:"personalisation",label:"Personalisation",description:"We\u2019ll only show you content that interests you.",category:"personalisation"}];var ia={policies:oc,essentialLabel:"Always on",header:{subTitle:"You're probably fed up with these banners...",title:"cookie though?",description:"Everybody wants to show his best side - and so do we. That's why we use cookies to guarantee you a better experience."},permissionLabels:{accept:"Accept",acceptAll:"Accept all",decline:"Decline"},customizeLabel:"Customize"};var C,ja=k&&k.__assign||function(){return(ja=Object.assign||function($){for(var t,e=1,r=arguments.length;e