var razorSeo={"gaCode":"UA-XXXXXXXX-Y","awCode":"","gtmCode":"","matomoUrl":"","matomoId":"","matomoCookies":"1","facebookPixelId":"","googleSiteVerification":"","tidioId":""}
"use strict";const razorSeoScripts=()=>{const e=document,o=window;let a=razorSeo.matomoUrl;const t="1"===razorSeo.matomoCookies,r="ga-disable-"+razorSeo.gaCode;o.analyticsLoaded=!1,o.matomoLoaded=!1,o.facebookPixelLoaded=!1,o.tidioLoaded=!1;const i=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(""!==a&&""!==razorSeo.matomoId){a=razorSeo.matomoUrl.replace(/\/$/,"")+"/";var o=window._paq=window._paq||[];!1===e&&o.push(["disableCookies"]),o.push(["trackPageView"]),o.push(["enableLinkTracking"]),function(){var e=a;o.push(["setTrackerUrl",e+"matomo.php"]),o.push(["setSiteId",razorSeo.matomoId]);var t=document,r=t.createElement("script"),i=t.getElementsByTagName("script")[0];r.type="text/javascript",r.async=!0,r.src=e+"matomo.js",i.parentNode.insertBefore(r,i)}()}};function n(){dataLayer.push(arguments)}i(!1),o.addEventListener("cookieConsent",(function(a){if(a.detail.hasOption("google_analytics")){if(!1===o.analyticsLoaded)if(s(),o.analyticsLoaded=!0,""!==razorSeo.gtmCode)!function(e,o,a,t,r){e[t]=e[t]||[],e[t].push({"gtm.start":(new Date).getTime(),event:"gtm.js"});var i=o.getElementsByTagName(a)[0],n=o.createElement(a);n.async=!0,n.src="https://www.googletagmanager.com/gtm.js?id="+r,i.parentNode.insertBefore(n,i)}(o,e,"script","dataLayer",razorSeo.gtmCode);else if(""!==razorSeo.gaCode){const a=e.createElement("script");a.src="https://www.googletagmanager.com/gtag/js?id="+razorSeo.gaCode,a.async="async",e.getElementsByTagName("head")[0].appendChild(a),o.dataLayer=o.dataLayer||[],n("js",new Date),n("config",razorSeo.gaCode,{anonymize_ip:!0}),razorSeo.awCode&&n("config",razorSeo.awCode)}}else d();var r,c,m,l,p,g;if(!0===t&&a.detail.hasOption("matomo")&&!1===o.matomoLoaded&&(o.matomoLoaded=!0,i(!0)),a.detail.hasOption("facebook_pixel")&&!1===o.facebookPixelLoaded&&(o.facebookPixelLoaded=!0,""!==razorSeo.facebookPixelId&&(c=e,m="script",(r=o).fbq||(l=r.fbq=function(){l.callMethod?l.callMethod.apply(l,arguments):l.queue.push(arguments)},r._fbq||(r._fbq=l),l.push=l,l.loaded=!0,l.version="2.0",l.queue=[],(p=c.createElement(m)).async=!0,p.src="https://connect.facebook.net/en_US/fbevents.js",(g=c.getElementsByTagName(m)[0]).parentNode.insertBefore(p,g)),fbq("init",razorSeo.facebookPixelId),fbq("track","PageView"))),a.detail.hasOption("tidio")&&!1===o.tidioLoaded){o.tidioLoaded=!0;const a=e.createElement("script");a.src="//code.tidio.co/"+razorSeo.tidioId+".js",e.getElementsByTagName("head")[0].appendChild(a)}}));const s=()=>{e.cookie.indexOf(r+"=true")>-1&&(o[r]=!1,e.cookie=r+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/")},d=()=>{c("_ga")&&c("_gid")&&""===razorSeo.gtmCode&&(o[r]=!0,e.cookie=r+"=true; expires=Thu, 31 Dec 2099 23:59:59 UTC; path=/")},c=o=>{const a="; ".concat(e.cookie).split("; ".concat(o,"="));if(2===a.length)return a.pop().split(";").shift()}};razorSeoScripts();const razorCookieConsentConfiguration=JSON.parse('{"cookieName":"razor_cookie_consent","expiryDays":365,"hideOnInit":false,"pushConsentToTagManager":false,"lazyloading":false,"lazyloadingTimeout":120,"containerId":"razor-cookie-consent"}')
"use strict";!function(){if("function"==typeof window.CustomEvent)return!1;window.CustomEvent=function(t,e){let n=document.createEvent("CustomEvent");return e=e||{bubbles:!1,cancelable:!1,detail:null},n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n},void 0===NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(t){let e=this;do{if(Element.prototype.matches.call(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null})}(),function(t){const e={cookieName:"razor_cookie_consent",settingsClass:"",openButtonClass:"cookie-consent-open",detailsOpenContainerSelector:".detail, .show-details, .consent-modal",consentVariableName:"cookieConsent",containerDisplayStyle:"block",expiryDays:365,modalContainer:null,modalForm:null,saveButton:null,denyButton:null,selectAllButton:null,isSelectAll:!1,isDeny:!1,hideOnInit:!1,pushConsentToTagManager:!1,lazyloading:!1,lazyloadingTimeout:12e4,lazyloadingEvents:["mousedown","mousemove","keydown","scroll","touchstart"],consentButtons:[],consentScripts:[],init:function(t){const e=this;if(this.cookieName="cookieName"in t?t.cookieName:this.cookieName,this.openButtonClass="openButtonClass"in t?t.openButtonClass:this.openButtonClass,this.expiryDays="expiryDays"in t?parseInt(t.expiryDays):this.expiryDays,this.hideOnInit="hideOnInit"in t?Boolean(t.hideOnInit):this.hideOnInit,this.pushConsentToTagManager="pushConsentToTagManager"in t&&Boolean(t.pushConsentToTagManager),this.lazyloading="lazyloading"in t?Boolean(t.lazyloading):this.lazyloading,this.lazyloadingTimeout="lazyloadingTimeout"in t?1e3*parseInt(t.lazyloadingTimeout):this.lazyloadingTimeout,this.updateConsentButtons(),window[this.consentVariableName]={consent:!1,options:[]},window.cookieConsentModalToggle=function(){e.modalContainer.style.display="none"===e.modalContainer.style.display?e.containerDisplayStyle:"none"},"containerId"in t)try{this.modalContainer=document.querySelector("#"+t.containerId)}catch(t){throw new Error("invalid container selector")}null!==this.modalContainer&&(this.saveButton=this.modalContainer.querySelector("button.save, input.save"),this.denyButton=this.modalContainer.querySelector("button.deny, input.deny"),this.selectAllButton=this.modalContainer.querySelector("button.select-all, input.select-all"),this.registerButtonEvents(this.modalContainer),this.modalForm=this.modalContainer.querySelector("form")),!0===this.hasCookie()?this.consentEventDispatch():!1===this.hideOnInit&&!1===this.lazyloading?this.openModal(this.modalContainer):!0===this.lazyloading&&this.lazyOpenModal(this.modalContainer),document.querySelectorAll("."+this.openButtonClass).forEach((function(t){t.addEventListener("click",(function(t){t.preventDefault(),e.modalContainer.style.display=e.containerDisplayStyle}))})),this.consentButtons.forEach((function(t){t.addEventListener("click",(function(){let t=e.getCookie(),n=null!==t?t.options:[];n.push(this.getAttribute("data-identifier")),e.setConsentCookie(n),e.replaceConsentButtons(this.getAttribute("data-identifier"))}))})),this.modalForm.querySelectorAll(".option").forEach((function(t){t.addEventListener("change",(function(){const t=this,n=e.modalForm.querySelector('.cookieoptions[data-parent="#'+this.id+'"]');n.querySelectorAll('input[type="checkbox"]').forEach((function(e){e.checked=t.checked})),e.updateParentOptionState(n)}))})),this.modalForm.querySelectorAll('.cookieoptions input[type="checkbox"]').forEach((function(t){t.addEventListener("change",(function(){const t=this.closest(".cookieoptions");t instanceof Element&&e.updateParentOptionState(t)}))}))},lazyOpenModal:function(t){const e=this;let n=null;0<this.lazyloadingTimeout&&(n=setTimeout((function(){e.openModal(t)}),this.lazyloadingTimeout));const o=function(){e.openModal(t),clearTimeout(n),e.lazyloadingEvents.forEach((function(t){document.removeEventListener(t,o)}))};this.lazyloadingEvents.forEach((function(t){document.addEventListener(t,o)}))},updateConsentButtons:function(){this.consentButtons=document.querySelectorAll(".cookie-consent-replacement .accept")},replaceConsentButtons:function(t){const e=this;this.consentButtons.forEach((function(n){const o=n.closest(".cookie-consent-replacement"),i=document.createElement("textarea"),a=document.createElement("div");if(t===n.getAttribute("data-identifier")&&(i.innerHTML=o.getAttribute("data-replacement"),a.innerHTML=i.innerText,o.parentNode.replaceChild(a,o),e.updateConsentButtons()),!0===o.hasAttribute("data-scripts")){const t=JSON.parse(o.getAttribute("data-scripts"));for(let n in t){let o,i,a=!1,s=!1;"string"==typeof n&&(i=n),"string"==typeof t[n]?o=t[n]:(o=t[n].src,a=t[n].async,s=t[n].defer),-1===e.consentScripts.indexOf(o)&&(e.consentScripts.push(o),e.addScript(o,a,s,i))}}}))},addScript:function(t,e,n,o){const i=document.createElement("script");i.async=e,i.defer=n,"string"==typeof o&&(i.onload=i.onreadystatechange=function(t,e){(e||!this.readyState||/loaded|complete/.test(this.readyState))&&(this.onload=null,this.onreadystatechange=null,e||window.dispatchEvent(new CustomEvent(o)))}),i.src=t,document.body.appendChild(i)},registerButtonEvents:function(t){const e=this,n=t.querySelector(".show-details");null!==this.selectAllButton&&this.selectAllButton.addEventListener("click",(function(t){e.isSelectAll=!0,e.isDeny=!1,e.toggleFormDisabledState(!0),e.modalForm.querySelectorAll('input[type="checkbox"]').forEach((function(t){t.checked=!0})),"undefined"!=typeof URLSearchParams?(t.preventDefault(),e.submitForm()):e.fallbackSubmitForm()})),null!==this.saveButton&&this.saveButton.addEventListener("click",(function(t){e.isSelectAll=!1,e.isDeny=!1,"undefined"!=typeof URLSearchParams?(t.preventDefault(),e.toggleFormDisabledState(!0),e.submitForm()):e.fallbackSubmitForm()})),null!==this.denyButton&&this.denyButton.addEventListener("click",(function(t){e.isSelectAll=!1,e.isDeny=!0,e.toggleFormDisabledState(!0),e.modalForm.querySelectorAll('input[type="checkbox"]:not(.option-necessary)').forEach((function(t){console.debug(t),t.checked=!1})),"undefined"!=typeof URLSearchParams?(t.preventDefault(),e.toggleFormDisabledState(!0),e.submitForm()):e.fallbackSubmitForm()})),null!==n&&n.addEventListener("click",(function(n){n.preventDefault(),e.toggleModalDetails(t)}))},toggleModalDetails:function(t){t.querySelectorAll(this.detailsOpenContainerSelector).forEach((function(t){t.classList.toggle("open")}))},openModalDetails:function(t){t.querySelectorAll(this.detailsOpenContainerSelector).forEach((function(t){t.classList.add("open")}))},closeModalDetails:function(t){t.querySelectorAll(this.detailsOpenContainerSelector).forEach((function(t){t.classList.remove("open")}))},hasCookie:function(){return null!==this.getCookie()&&this.getCookie()instanceof Object&&!0===this.getCookie().consent},getCookie:function(){const t=document.cookie.match("(^|[^;]+)\\s*"+this.cookieName+"\\s*=\\s*([^;]+)"),e=null!==t?JSON.parse(decodeURIComponent(t.pop())):null;return null!==e&&(e.hasOption=function(t){return 0<=this.options.indexOf(t)}),e},submitForm:function(){const t=this;this.setXhrSubmit(this.modalForm,!0),setTimeout((function(){t.closeModal(t.modalContainer)}),200);try{const e=new FormData;this.modalForm.querySelectorAll("input").forEach((function(t){!1!==t.disabled||"checkbox"===t.type&&!0!==t.checked||e.append(t.name,t.value)}));const n=new URLSearchParams,o=e.entries();let i=o.next();for(;!1===i.done;)n.append(i.value[0],i.value[1]),i=o.next();!0===this.isDeny?n.append(this.modalForm.querySelector(".deny").getAttribute("name"),"1"):!0===this.isSelectAll&&n.append(this.modalForm.querySelector(".select-all").getAttribute("name"),"1"),fetch(this.modalForm.getAttribute("action"),{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:n}).then((function(e){if(200!==e.status)throw new Error("xhr request failed: "+e.status+' - reason: "'+e.statusText+'"');t.isSelectAll=!1,t.toggleFormDisabledState(!1)})).catch((function(e){t.toggleFormDisabledState(!1),console.error(e)}))}catch(e){t.toggleFormDisabledState(!1),console.error(e)}this.setConsentCookie()},fallbackSubmitForm:function(){if(this.setXhrSubmit(this.modalForm,!1),!0===this.isSelectAll){const t=document.createElement("input");t.type="hidden",t.name=this.modalForm.querySelector(".select-all").getAttribute("name"),t.value="1",this.modalForm.appendChild(t)}this.setConsentCookie()},setConsentCookie:function(t){const e=new Date;e.setDate(e.getDate()+this.expiryDays),!1===Array.isArray(t)&&(t=[],this.modalForm.querySelectorAll('input[type="checkbox"]').forEach((function(e){!0===e.checked&&null!==e.getAttribute("data-identifier")&&t.push(e.getAttribute("data-identifier"))}))),!0===this.pushConsentToTagManager&&window.dataLayer instanceof Object&&window.dataLayer.push instanceof Function&&window.dataLayer.push({event:"cookieConsent",options:t}),document.cookie=this.cookieName+"="+encodeURI(JSON.stringify({consent:!0,options:t}))+";expires="+e.toUTCString()+";samesite=strict;path=/",this.consentEventDispatch()},setXhrSubmit:function(t,e){null!==t&&(t.querySelector(".is-ajax").value=!0===e?1:0)},toggleFormDisabledState:function(t){null!==this.selectAllButton&&(this.selectAllButton.disabled=t),this.saveButton.disabled=t,this.modalForm.querySelectorAll('input[type="checkbox"]:not(.option-necessary)').forEach((function(e){e.disabled=t}))},isModalOpen:function(t){return t.style.display===this.containerDisplayStyle},openModal:function(t){t.style.display=this.containerDisplayStyle,this.closeModalDetails(t)},closeModal:function(t){t.style.display="none",this.closeModalDetails(t)},consentEventDispatch:function(){const t=this;if(!1===this.hasCookie())throw new Error("Can't do event dispatch if the necessary cookie hasn't been set");window[this.consentVariableName]=this.getCookie(),window.dispatchEvent(new CustomEvent("cookieConsent",{detail:this.getCookie()})),this.modalForm.querySelectorAll('input[type="checkbox"]').forEach((function(e){!0===t.getCookie().hasOption(e.getAttribute("data-identifier"))&&(e.checked=!0)})),this.modalForm.querySelectorAll(".cookieoptions").forEach((function(e){t.updateParentOptionState(e)})),this.getCookie().options.forEach((function(e){t.replaceConsentButtons(e)}))},updateParentOptionState:function(t){const e=this.modalForm.querySelector(t.getAttribute("data-parent")),n=e.closest(".label"),o=t.querySelectorAll('input[type="checkbox"]'),i=t.querySelectorAll('input[type="checkbox"]:checked');0===i.length?(n.classList.remove("partially-checked"),e.checked=!1):o.length===i.length?(n.classList.remove("partially-checked"),e.checked=!0):(n.classList.add("partially-checked"),e.checked=!1)}};document.addEventListener("DOMContentLoaded",(function(){try{e.init(t)}catch(t){console.error("Cookie Consent: "+t)}}))}("object"==typeof razorCookieConsentConfiguration?razorCookieConsentConfiguration:{})