(()=>{var e={470:()=>{!function(){"use strict";var e="initCookieConsent";"undefined"!=typeof window&&"function"!=typeof window[e]&&(window[e]=function(e){var t,n,i,o,a,s,r,c,l,d,u,p,h,f,g,m,b,_,v,y,C,k,w,A,S,x,L,N,E,T,O,z,M,j,I,q={mode:"opt-in",current_lang:"en",auto_language:null,autorun:!0,page_scripts:!0,hide_from_bots:!0,cookie_name:"cc_cookie",cookie_expiration:182,cookie_domain:location.hostname,cookie_path:"/",cookie_same_site:"Lax",use_rfc_cookie:!1,autoclear_cookies:!0,revision:0,script_selector:"data-cookiecategory"},H={},D={},Z=null,J=!0,P=!1,R=!1,G=!1,U=!1,F=!0,X=[],Y=!1,B=[],K=[],$=[],V=!1,Q=[],W=[],ee=[],te=[],ne=[],ie=document.documentElement,oe=function(e){ue("CookieConsent [CONFIG]: received_config_settings ",t=e),"number"==typeof t.cookie_expiration&&(q.cookie_expiration=t.cookie_expiration),"number"==typeof t.cookie_necessary_only_expiration&&(q.cookie_necessary_only_expiration=t.cookie_necessary_only_expiration),"boolean"==typeof t.autorun&&(q.autorun=t.autorun),"string"==typeof t.cookie_domain&&(q.cookie_domain=t.cookie_domain),"string"==typeof t.cookie_same_site&&(q.cookie_same_site=t.cookie_same_site),"string"==typeof t.cookie_path&&(q.cookie_path=t.cookie_path),"string"==typeof t.cookie_name&&(q.cookie_name=t.cookie_name),"function"==typeof t.onAccept&&(u=t.onAccept),"function"==typeof t.onFirstAction&&(h=t.onFirstAction),"function"==typeof t.onChange&&(p=t.onChange),"opt-out"===t.mode&&(q.mode="opt-out"),"number"==typeof t.revision&&(t.revision>-1&&(q.revision=t.revision),U=!0),"boolean"==typeof t.autoclear_cookies&&(q.autoclear_cookies=t.autoclear_cookies),!0===t.use_rfc_cookie&&(q.use_rfc_cookie=!0),"boolean"==typeof t.hide_from_bots&&(q.hide_from_bots=t.hide_from_bots),q.hide_from_bots&&(V=navigator&&(navigator.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(navigator.userAgent)||navigator.webdriver)),q.page_scripts=!0===t.page_scripts,"browser"===t.auto_language||!0===t.auto_language?q.auto_language="browser":"document"===t.auto_language&&(q.auto_language="document"),ue("CookieConsent [LANG]: auto_language strategy is '"+q.auto_language+"'"),q.current_lang=he(t.languages,t.current_lang)},ae=function(e){for(var t="accept-",n=r("c-settings"),i=r(t+"all"),o=r(t+"necessary"),a=r(t+"custom"),s=0;s0?Object.prototype.hasOwnProperty.call(t,q.current_lang)?q.current_lang:ke(t)[0]:void 0},re=function(e){if(!0===t.force_consent&&we(ie,"force--consent"),!v){v=pe("div");var n=pe("div"),i=pe("div");v.id="cm",n.id="c-inr-i",i.id="cm-ov",v.tabIndex=-1,v.setAttribute("role","dialog"),v.setAttribute("aria-modal","true"),v.setAttribute("aria-hidden","false"),v.setAttribute("aria-labelledby","c-ttl"),v.setAttribute("aria-describedby","c-txt"),_.appendChild(v),_.appendChild(i),v.style.visibility=i.style.visibility="hidden",i.style.opacity=0}var o=t.languages[e].consent_modal.title;o&&(y||((y=pe("div")).id="c-ttl",y.setAttribute("role","heading"),y.setAttribute("aria-level","2"),n.appendChild(y)),y.innerHTML=o);var a=t.languages[e].consent_modal.description;U&&(a=F?a.replace("{{revision_message}}",""):a.replace("{{revision_message}}",t.languages[e].consent_modal.revision_message||"")),C||((C=pe("div")).id="c-txt",n.appendChild(C)),C.innerHTML=a;var s,r=t.languages[e].consent_modal.primary_btn,c=t.languages[e].consent_modal.secondary_btn;r&&(k||((k=pe("button")).id="c-p-bn",k.className="c-bn",k.appendChild(xe(1)),"accept_all"===r.role&&(s="all"),Ce(k,"click",(function(){H.hide(),ue("CookieConsent [ACCEPT]: cookie_consent was accepted!"),H.accept(s)}))),k.firstElementChild.innerHTML=t.languages[e].consent_modal.primary_btn.text),c&&(w||((w=pe("button")).id="c-s-bn",w.className="c-bn c_link",w.appendChild(xe(1)),"accept_necessary"===c.role?Ce(w,"click",(function(){H.hide(),H.accept([])})):Ce(w,"click",(function(){H.showSettings(0)}))),w.firstElementChild.innerHTML=t.languages[e].consent_modal.secondary_btn.text);var l=t.gui_options;S||((S=pe("div")).id="c-inr",S.appendChild(n)),A||((A=pe("div")).id="c-bns",l&&l.consent_modal&&!0===l.consent_modal.swap_buttons?(c&&A.appendChild(w),r&&A.appendChild(k),A.className="swap"):(r&&A.appendChild(k),c&&A.appendChild(w)),(r||c)&&S.appendChild(A),v.appendChild(S)),P=!0,ae(S)},ce=function(e){if(x)(O=pe("div")).id="s-bl";else{(x=pe("div")).tabIndex=-1;var n=pe("div"),i=pe("div"),o=pe("div");L=pe("div"),N=pe("div");var a=pe("div");(E=pe("button")).appendChild(xe(2));var s=pe("div");T=pe("div");var r=pe("div");x.id="s-cnt",n.id="c-vln",o.id="c-s-in",i.id="cs",N.id="s-ttl",L.id="s-inr",a.id="s-hdr",T.id="s-bl",E.id="s-c-bn",r.id="cs-ov",s.id="s-c-bnc",E.className="c-bn",x.setAttribute("role","dialog"),x.setAttribute("aria-modal","true"),x.setAttribute("aria-hidden","true"),x.setAttribute("aria-labelledby","s-ttl"),N.setAttribute("role","heading"),x.style.visibility=r.style.visibility="hidden",r.style.opacity=0,s.appendChild(E),Ce(document,"keydown",(function(e){27===e.keyCode&&G&&H.hideSettings()}),!0),Ce(E,"click",(function(){H.hideSettings()}))}var c=t.languages[e].settings_modal;E.setAttribute("aria-label",c.close_btn_label||"Close"),d=c.blocks,l=c.cookie_table_headers;var u=c.cookie_table_caption,p=d.length;N.innerHTML=c.title;for(var h=0;h-1?(P.checked=!0,!O&&ee.push(!0)):!O&&ee.push(!1),!O&&te.push(Y),m.readonly?(P.disabled=!0,we(R,"c-ro"),!O&&ne.push(!0)):!O&&ne.push(!1),we(k,"b-acc"),we(A,"b-bn"),we(C,"b-ex"),k.id=S,k.setAttribute("aria-hidden","true"),Z.appendChild(P),Z.appendChild(R),Z.appendChild(U),A.appendChild(Z),y&&function(e,t,n){Ce(q,"click",(function(){Se(t,"act")?(Ae(t,"act"),n.setAttribute("aria-expanded","false"),e.setAttribute("aria-hidden","true")):(we(t,"act"),n.setAttribute("aria-expanded","true"),e.setAttribute("aria-hidden","false"))}),!1)}(k,C,q)}else if(f){var B=pe("div");B.className="b-tl",B.setAttribute("role","heading"),B.setAttribute("aria-level","3"),B.insertAdjacentHTML("beforeend",f),A.appendChild(B)}if(f&&C.appendChild(A),g&&k.appendChild(w),!v&&void 0!==b){for(var K=document.createDocumentFragment(),V=0;V-1;if(!ee[++n]&&Object.prototype.hasOwnProperty.call(r,"cookie_table")&&(e||c)){var u=r.cookie_table,p=ke(l[0])[0],h=u.length;"on_disable"===r.toggle.reload&&c&&(Y=!0);for(var f=0;f-1&&b.push(i[w])}ue("CookieConsent [AUTOCLEAR]: search cookie: '"+_+"', found:",b),b.length>0&&(ye(b,C,g),"on_clear"===r.toggle.reload&&(Y=!0))}}}}},de=function(e,t){return e.indexOf(t)},ue=function(e,t,n){},pe=function(e){var t=document.createElement(e);return"button"===e&&t.setAttribute("type",e),t},he=function(e,t){return"browser"===q.auto_language?se(fe(),e):"document"===q.auto_language?se(document.documentElement.lang,e):"string"==typeof t?q.current_lang=se(t,e):(ue("CookieConsent [LANG]: setting current_lang = '"+q.current_lang+"'"),q.current_lang)},fe=function(){var e=navigator.language||navigator.browserLanguage;return e.length>2&&(e=e[0]+e[1]),ue("CookieConsent [LANG]: detected_browser_lang = '"+e+"'"),e.toLowerCase()};H.allowedCategory=function(e){if(J&&"opt-in"!==q.mode)t=$;else var t=JSON.parse(ve(q.cookie_name,"one",!0)||"{}").categories||[];return de(t,e)>-1},H.run=function(t){if(document.getElementById("cc_div"))ue("CookieConsent [NOTICE]: cookie consent already attached to body!");else{if(oe(t),V)return;D=JSON.parse(ve(q.cookie_name,"one",!0)||"{}");var r=void 0!==(o=D.consent_uuid);if((n=D.consent_date)&&(n=new Date(n)),(i=D.last_consent_update)&&(i=new Date(i)),Z=void 0!==D.data?D.data:null,U&&D.revision!==q.revision&&(F=!1),P=J=!(r&&F&&n&&i&&o),function(){(b=pe("div")).id="cc--main",b.style.position="fixed",b.innerHTML='
',_=b.children[0];var t=q.current_lang;P&&re(t),ce(t),(e||document.body).appendChild(b)}(),function(){var e=["[href]","button","input","details",'[tabindex="0"]'];function t(t,n){var i=!1,o=!1;try{for(var a,s=t.querySelectorAll(e.join(':not([tabindex="-1"]), ')),r=s.length,c=0;c-1&&(we(e,o),("bar"!==o||"middle"!==a[0])&&de(n,a[0])>-1))for(var r=0;r-1&&we(e,s)}}(t.gui_options),ae(),q.autorun&&P&&H.show(t.delay||0),setTimeout((function(){we(b,"c--anim")}),30),setTimeout((function(){Ce(document,"keydown",(function(e){if("Tab"===e.key&&(R||G)&&a){var t=document.activeElement;e.shiftKey?t!==a[0]&&s.contains(t)||(e.preventDefault(),Le(a[1])):document.activeElement!==a[1]&&s.contains(t)||(e.preventDefault(),Le(a[0]))}})),document.contains&&Ce(x,"click",(function(e){G&&(L.contains(e.target)||H.hideSettings())}),!0)}),100),J)"opt-out"===q.mode&&(ue("CookieConsent [CONFIG] mode='"+q.mode+"', default enabled categories:",$),ge($)),ue("CookieConsent [NOTICE]: ask for consent!");else{var c="boolean"==typeof D.rfc_cookie;(!c||c&&D.rfc_cookie!==q.use_rfc_cookie)&&(D.rfc_cookie=q.use_rfc_cookie,_e(q.cookie_name,JSON.stringify(D))),f=be(me()),ge(),"function"==typeof u&&u(D),ue("CookieConsent [NOTICE]: consent already given!",D)}}};var ge=function(e){if(q.page_scripts){var t=document.querySelectorAll("script["+q.script_selector+"]"),n=e||D.categories||[],i=function(e,t){if(t-1){o.type=o.getAttribute("data-type")||"text/javascript",o.removeAttribute(q.script_selector);var s=o.getAttribute("data-src");s&&o.removeAttribute("data-src");var r=pe("script");if(r.textContent=o.innerHTML,function(e,t){for(var n=t.attributes,i=n.length,o=0;o0)for(var a=0;a0?e:t?30:0))},H.hide=function(){P&&(R=!1,Le(r),v.setAttribute("aria-hidden","true"),Ae(ie,"show--consent"),g&&(Le(g),g=null),ue("CookieConsent [MODAL]: hide"))},H.showSettings=function(e){G=!0,x.removeAttribute("aria-hidden"),R?m=document.activeElement:g=document.activeElement,s=x,a=W,setTimeout((function(){we(ie,"show--settings"),ue("CookieConsent [SETTINGS]: show settings_modal")}),e>0?e:0)},H.hideSettings=function(){G=!1,Ne(),Le(c),x.setAttribute("aria-hidden","true"),Ae(ie,"show--settings"),R?(m&&(Le(m),m=null),s=v,a=Q):g&&(Le(g),g=null),ue("CookieConsent [SETTINGS]: hide settings_modal")},H.accept=function(e,t){var a=e||void 0,s=t||[],r=[];if(a)if("object"==typeof a&&"number"==typeof a.length)for(var c=0;c=1)for(c=0;c0)for(var a=0;a0&&le(),n||(n=new Date),o||(o=([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(e){try{return(e^(window.crypto||window.msCrypto).getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)}catch(e){return""}}))),D={categories:e,level:e,revision:q.revision,data:Z,rfc_cookie:q.use_rfc_cookie,consent_date:n.toISOString(),consent_uuid:o},(J||X.length>0)&&(F=!0,i=i?new Date:n,D.last_consent_update=i.toISOString(),f=be(me()),_e(q.cookie_name,JSON.stringify(D)),ge()),J&&(q.autoclear_cookies&&le(!0),"function"==typeof h&&h(H.getUserPreferences(),D),"function"==typeof u&&u(D),J=!1,"opt-in"===q.mode)||("function"==typeof p&&X.length>0&&p(D,X),Y&&location.reload())}(r)},H.eraseCookies=function(e,t,n){var i=[],o=n?[n,"."+n]:[q.cookie_domain,"."+q.cookie_domain];if("object"==typeof e&&e.length>0)for(var a=0;a-1&&q.cookie_domain&&(o+=" Domain="+q.cookie_domain+";"),"https:"===location.protocol&&(o+=" Secure;"),document.cookie=o,ue("CookieConsent [SET_COOKIE]: '"+e+"' expires after "+n+" day(s)")},ve=function(e,t,n){var i;if("one"===t){if((i=(i=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)"))?n?i.pop():e:"")&&e===q.cookie_name){try{i=JSON.parse(i)}catch(e){try{i=JSON.parse(decodeURIComponent(i))}catch(e){i={}}}i=JSON.stringify(i)}}else if("all"===t){var o=document.cookie.split(/;\s*/);i=[];for(var a=0;a-1;e[t].checked=i||H.allowedCategory(n)}};return H})}()}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var a=t[i]={exports:{}};return e[i](a,a.exports,n),a.exports}(()=>{"use strict";n(470);const e=document.createElement("template");e.innerHTML='\n \n \n';class t extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(e.content.cloneNode(!0)),this._size=this.getAttribute("size")||"sm",this._position=this.getAttribute("position")||"left",this._status=this.getAttribute("status")||"hidden",this._label=this.getAttribute("label")||"Cookie settings",this._transition=this.getAttribute("transition")||"fade-in-up",this._initIconSlot()}get observedAttributes(){return["size","position","label","status","transition"]}get size(){return this._size||""}set size(e){this._size=e,this._update(),this.setAttribute("size",this._size)}get position(){return this._position||""}set position(e){this._position=e,this._update(),this.setAttribute("position",this._position)}get label(){return this._label||""}set label(e){this._label=e,this._update(),this.setAttribute("label",this._label)}get status(){return this._status||""}set status(e){this._status=e,this._update(),this.setAttribute("status",this._status)}get transition(){return this._transition||""}set transition(e){this._transition=e,this._update(),this.setAttribute("transition",this._transition)}connectedCallback(){this.shadowRoot.querySelector(".button").addEventListener("click",(()=>{window.pressidiumCookieConsent.showSettings(0)})),this._update()}attributeChangedCallback(e,t,n){switch(e){case"size":this._size=n;break;case"position":this._position=n;break;case"label":this._label=n;break;case"status":this._status=n;break;case"transition":this._transition=n}}_updateSize(){const e=this.shadowRoot.querySelector(".button");if(!e)return;const t=["sm","lg"];t.forEach((t=>e.classList.remove(t))),e.classList.add(t.includes(this._size)?this._size:"sm")}_updatePosition(){const e=["left","right"];e.forEach((e=>this.classList.remove(e))),this.classList.add(e.includes(this._position)?this._position:"left")}_updateTransition(){const e=this.shadowRoot.querySelector(".button");if(!e)return;const t=["fade-in","fade-in-up","fade-in-zoom","zoom-in","slide-in-horizontal","slide-in-vertical"];t.forEach((t=>e.classList.remove(t))),t.includes(this._transition)&&e.classList.add(this._transition)}_updateLabel(){this.setAttribute("aria-label",this._label),this.setAttribute("role","button")}_updateStatus(){const e=this.shadowRoot.querySelector(".button");if(!e)return;const t=["visible","hidden"];t.forEach((t=>e.classList.remove(t))),e.classList.add(t.includes(this._status)?this._status:"hidden")}_initIconSlot(){const e=this.shadowRoot.querySelector('slot[name="icon"]');e.addEventListener("slotchange",(()=>{const[t]=e.assignedNodes();t.setAttribute("aria-hidden","true"),t.setAttribute("focusable","false")}))}_update(){this._updateSize(),this._updatePosition(),this._updateTransition(),this._updateLabel(),this._updateStatus()}}const i=t;customElements.define("pressidium-floating-button",i),((e,t)=>{if("function"!=typeof initCookieConsent)return;if(void 0===e)return;if(!("settings"in e))return;const n={ad_storage:"denied",ad_user_data:"denied",ad_personalization:"denied",analytics_storage:"denied",functionality_storage:"denied",personalization_storage:"denied",security_storage:"denied"},{settings:i,additional_options:o}=e,{record_consents:a,hide_empty_categories:s,floating_button:r,gcm:c}=o,l=()=>{r.enabled&&(document.querySelector("pressidium-floating-button").status="visible")},d=()=>{r.enabled&&(document.querySelector("pressidium-floating-button").status="hidden")},u=(e={})=>{const{enabled:t=!1,size:n="sm",position:o="left",icon:a="pressidium",transition:s=""}=e;if(!t)return;const r=((e=null)=>{if(!window.pressidiumCookieConsent)return{};const t=e||window.pressidiumCookieConsent.getConfig("current_lang");return i.languages[t]})(),c=document.querySelector("pressidium-floating-button");c&&c.remove();const l=document.createElement("pressidium-floating-button");l.size=n,l.label=r.settings_modal.title,l.position=o,l.status="hidden",l.transition=s,l.innerHTML="pressidium"===a?'\n \n \n \n \n \n \n \n \n \n ':'\n \n \n \n \n \n \n ',document.body.appendChild(l);const u=new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting&&d()}))})),p=()=>{const e=document.querySelector("#cm");e&&u.observe(e)};new MutationObserver((()=>{document.querySelector("#cm")&&p()})).observe(document,{childList:!0,subtree:!0}),p()},p=async t=>{if(!a)return;const{rest_url:n,consent_route:i}=e.api;try{await fetch(`${n}${i}`,{method:"POST",credentials:"same-origin",headers:new Headers({"Content-Type":"application/json;charset=UTF-8"}),body:JSON.stringify({consent_date:t.consent_date,uuid:t.consent_uuid,url:window.location.href,user_agent:window.navigator.userAgent,necessary_consent:t.level.includes("necessary"),analytics_consent:t.level.includes("analytics"),targeting_consent:t.level.includes("targeting"),preferences_consent:t.level.includes("preferences")})})}catch(e){console.error(e)}},h=(e=[])=>{const t={...n},i={necessary:["functionality_storage","security_storage"],preferences:["personalization_storage"],analytics:["analytics_storage"],targeting:["ad_storage","ad_user_data","ad_personalization"]};return e.forEach((e=>{i[e].forEach((e=>{t[e]="granted"}))})),t},f=(e=[])=>{if(!c.enabled||"gtag"!==c.implementation||!("gtag"in window)||"function"!=typeof window.gtag)return;if(!Array.isArray(e)||0===e.length)return;const n=h(e);t("consent","update",n)},g=(e=[])=>{Array.isArray(e)&&0!==e.length&&(window.pressidiumConsentListeners=window.pressidiumConsentListeners||[],window.pressidiumConsentListeners.forEach((t=>{t(h(e))})))};s&&Object.entries(i.languages).forEach((([e,t])=>{i.languages[e].settings_modal.blocks=t.settings_modal.blocks.filter((e=>!(e=>"toggle"in e&&(!("cookie_table"in e)||0===e.cookie_table.length))(e)))})),window.pressidiumCookieConsent=initCookieConsent(),window.pressidiumCookieConsent.run({...i,onAccept:async e=>{await p(e),"categories"in e&&c.enabled&&(f(e.categories),g(e.categories)),l();const t=new CustomEvent("pressidium-cookie-consent-accepted",{detail:{cookie:e}});window.dispatchEvent(t)},onChange:async(e,t)=>{await p(e),"categories"in e&&c.enabled&&(f(e.categories),g(e.categories)),l();const n=new CustomEvent("pressidium-cookie-consent-changed",{detail:{cookie:e,changedCategories:t}});window.dispatchEvent(n)}}),u(r),window.pressidiumFloatingButton={init:u,show:l,hide:d};const m=window.pressidiumCookieConsent.get("categories");f(m),document.querySelectorAll("#cc--main button").forEach((e=>{e.classList.add("has-background","has-text-color")}))})(pressidiumCCClientDetails,window.gtag)})()})();