"use strict";function cmplz_create_element(el,content){let obj=document.createElement(el);obj.innerHtml=content;return obj}function cmplz_add_event(event,selector,callback){document.addEventListener(event,e=>{if(e.target.closest(selector)){callback(e)}})}function cmplz_is_hidden(el){return el.offsetParent===null}function cmplz_html_decode(input){var doc=(new DOMParser).parseFromString(input,"text/html");return doc.documentElement.textContent}document.addEventListener("cmplz_manage_consent_container_loaded",function(e){let url=window.location.href;if(url.indexOf("#")!=-1){let end_pos=url.lastIndexOf("?")!=-1?url.lastIndexOf("?"):undefined;var anchor=url.substring(url.indexOf("#")+1,end_pos);const element=document.getElementById(anchor);if(element){const y=element.getBoundingClientRect().top+window.pageYOffset-200;window.scrollTo({top:y,behavior:"smooth"})}}});complianz.locale=complianz.locale+"&token="+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5);(function(){if(typeof window.CustomEvent==="function")return false;function CustomEvent(event,params){params=params||{bubbles:false,cancelable:false,detail:undefined};var evt=document.createEvent("CustomEvent");evt.initCustomEvent(event,params.bubbles,params.cancelable,params.detail);return evt}CustomEvent.prototype=window.Event.prototype;window.CustomEvent=CustomEvent})();let cmplz_banner;let cmplz_banner_container=document.getElementById("cmplz-cookiebanner-container");let cmplz_manage_consent_button;let cmplz_waiting_inline_scripts=[];let cmplz_waiting_scripts=[];let cmplz_fired_scripts=[];let cmplz_placeholder_class_index=0;let cmplz_all_scripts_hook_fired=false;let cmplz_consent_stored_once=false;let cmplz_categories=["functional","preferences","statistics","marketing"];window.cmplz_get_cookie=function(name){if(typeof document==="undefined"){return""}name=complianz.prefix+name+"=";let cArr=document.cookie.split(";");for(let i=0;i0){domain=";domain="+domain}let prefix="";if(use_prefix){prefix=complianz.prefix}document.cookie=prefix+name+"="+value+";SameSite=Lax"+secure+expires+domain+";path="+cmplz_get_cookie_path()};window.cmplz_in_array=function(needle,haystack){let length=haystack.length;for(let i=0;i{if(obj.classList.contains("cmplz-processed")){return}obj.classList.add("cmplz-processed");let service=obj.getAttribute("data-service");let category=obj.getAttribute("data-category");let blocked_image_container=obj.parentElement;blocked_image_container.classList.add("cmplz-blocked-content-container");let curIndex=blocked_image_container.getAttribute("data-placeholder_class_index");if(obj.getAttribute("loading")==="lazy"){obj.removeAttribute("loading");obj.setAttribute("data-deferlazy",1)}if(curIndex==null){cmplz_placeholder_class_index++;blocked_image_container.classList.add("cmplz-placeholder-"+cmplz_placeholder_class_index);blocked_image_container.classList.add("cmplz-blocked-content-container");blocked_image_container.setAttribute("data-placeholder_class_index",cmplz_placeholder_class_index);cmplz_insert_placeholder_text(blocked_image_container,category,service)}});document.querySelectorAll(".cmplz-placeholder-element").forEach(obj=>{if(obj.classList.contains("cmplz-processed")){return}obj.classList.add("cmplz-processed");let service=obj.getAttribute("data-service");let category=obj.getAttribute("data-category");let blocked_content_container;if(obj.classList.contains("cmplz-iframe")){if(obj.getAttribute("loading")==="lazy"){obj.removeAttribute("loading");obj.setAttribute("data-deferlazy",1)}blocked_content_container=obj.parentElement}else{blocked_content_container=obj}let curIndex=blocked_content_container.getAttribute("data-placeholder_class_index");if(curIndex==null){cmplz_placeholder_class_index++;blocked_content_container.classList.add("cmplz-placeholder-"+cmplz_placeholder_class_index);blocked_content_container.classList.add("cmplz-blocked-content-container");blocked_content_container.setAttribute("data-placeholder_class_index",cmplz_placeholder_class_index);cmplz_insert_placeholder_text(blocked_content_container,category,service);let src=obj.getAttribute("data-placeholder-image");if(src&&typeof src!=="undefined"&&src.length){src=src.replace("url(","").replace(")","").replace(/\"/gi,"");cmplz_append_css(".cmplz-placeholder-"+cmplz_placeholder_class_index+" {background-image: url("+src+") !important;}");cmplz_set_blocked_content_container_aspect_ratio(obj,src,cmplz_placeholder_class_index)}}});if(cmplz_has_consent("statistics")){cmplz_enable_category("statistics")}if(cmplz_has_consent("marketing")){cmplz_enable_category("marketing")}}function cmplz_insert_placeholder_text(container,category,service){if(!container.querySelector(".cmplz-blocked-content-notice")){let placeholder_text=complianz.placeholdertext;category=category?category:"marketing";let body;if(typeof placeholder_text!=="undefined"){if(complianz.clean_cookies==1){let service_nicename=service?service.replace("-"," "):"";service_nicename=service_nicename.charAt(0).toUpperCase()+service_nicename.slice(1);placeholder_text=placeholder_text.replace("{service}",service_nicename);body=cmplz_create_element("div",placeholder_text);body.innerHTML=placeholder_text;body.classList.add("cmplz-blocked-content-notice");let btn=body.querySelector("button");btn.setAttribute("data-service",service);btn.setAttribute("data-category",category);btn.setAttribute("aria-label",service);let pageLinks=complianz.page_links[complianz.region];let link=body.querySelector(".cmplz-links a");if(pageLinks&&pageLinks.hasOwnProperty("cookie-statement")){link.setAttribute("href",pageLinks["cookie-statement"]["url"]);if(link.innerText==="{title}"){link.innerText=pageLinks["cookie-statement"]["title"]}}}else{let btn=cmplz_create_element("button","");let category_nicename="marketing";if(complianz.categories.hasOwnProperty(category)){category_nicename=complianz.categories[category]}placeholder_text=placeholder_text.replace("{category}",category_nicename);btn.innerText=placeholder_text;btn.classList.add("cmplz-blocked-content-notice");btn.classList.add("cmplz-accept-category");btn.classList.add("cmplz-accept-"+category);btn.setAttribute("data-service",service);btn.setAttribute("data-category",category);btn.setAttribute("aria-label",service);body=btn}if(container.tagName!=="VIDEO"){container.appendChild(body)}else{container.parentElement.appendChild(body)}}}}function cmplz_set_blocked_content_container_aspect_ratio(container,src,placeholder_class_index){if(container==null)return;let blocked_content_container=container.parentElement;let img=new Image;img.addEventListener("load",function(){let imgWidth=this.naturalWidth;let imgHeight=this.naturalHeight;if(imgWidth===0)imgWidth=1;let w=blocked_content_container.clientWidth;let h=imgHeight*(w/imgWidth);let heightCSS="";if(src.indexOf("placeholder.jpg")===-1){heightCSS="height:"+h+"px;"}cmplz_append_css(".cmplz-placeholder-"+placeholder_class_index+" {"+heightCSS+"}")});img.src=src}var cmplzResizeTimer;window.addEventListener("resize",function(event){clearTimeout(cmplzResizeTimer);cmplzResizeTimer=setTimeout(cmplz_set_blocked_content_container,500)},true);if(complianz.block_ajax_content==1){setInterval(function(){cmplz_set_blocked_content_container()},2e3)}function cmplz_has_blocked_scripts(){let scriptElements=document.querySelectorAll("script[data-category], script[data-service]");return scriptElements.length>0}function cmplz_enable_category(category,service){if(complianz.tm_categories==1&&category!==""){cmplz_run_tm_event(category)}service=typeof service!=="undefined"?service:"do_not_match";if(category==="")category="do_not_match";if(category==="functional"){return}if(category==="marketing"){cmplz_set_integrations_cookies()}let selector;if(service!=="do_not_match"){selector=".cmplz-blocked-content-notice [data-service="+service+"]"}else{selector=complianz.clean_cookies!=1?".cmplz-blocked-content-notice.cmplz-accept-"+category:".cmplz-blocked-content-notice [data-category="+category+"]"}document.querySelectorAll(selector).forEach(obj=>{let blockedElementService=obj.getAttribute("data-service");if(obj.parentNode.classList.contains("cmplz-blocked-content-notice")){obj=obj.parentNode}if(!cmplz_is_service_denied(blockedElementService)){obj.parentNode.removeChild(obj)}});document.querySelectorAll("[data-category="+category+"], [data-service="+service+"]").forEach(obj=>{let elementService=obj.getAttribute("data-service");if(cmplz_is_service_denied(elementService)){return}if(obj.getAttribute("data-category")==="functional"){return}if(obj.classList.contains("cmplz-activated")){return}let tagName=obj.tagName;if(tagName==="STYLE"){obj.classList.add("cmplz-activated");let src=obj.getAttribute("data-href");cmplz_load_css(src,category)}else if(tagName==="IMG"){obj.classList.add("cmplz-activated");let src=obj.getAttribute("data-src-cmplz");obj.setAttribute("src",src);if(obj.getAttribute("data-deferlazy")){obj.setAttribute("loading","lazy")}cmplz_remove_placeholder(obj)}else if(tagName==="IFRAME"){obj.classList.add("cmplz-activated");let src=obj.getAttribute("data-src-cmplz");let srcAttribute=obj.getAttribute("data-cmplz-target")?obj.getAttribute("data-cmplz-target"):"src";let autoplay=cmplz_get_url_parameter(obj.getAttribute(srcAttribute),"autoplay");if(autoplay==="1")src=src+"&autoplay=1";if(obj.getAttribute("data-deferlazy")){obj.setAttribute("loading","lazy")}obj.addEventListener("load",()=>{cmplz_remove_placeholder(obj)});obj.setAttribute(srcAttribute,src)}else if(obj.classList.contains("cmplz-placeholder-element")){obj.classList.add("cmplz-activated");let cssIndex=obj.getAttribute("data-placeholder_class_index");obj.classList.remove("cmplz-blocked-content-container");obj.classList.remove("cmplz-placeholder-"+cssIndex)}let details={};details.category=category;details.service=service;let event=new CustomEvent("cmplz_category_enabled",{detail:details});document.dispatchEvent(event)});let scriptElements=document.querySelectorAll("script[data-category="+category+"], script[data-service="+service+"]");scriptElements.forEach(obj=>{let waitfor=obj.getAttribute("data-waitfor");let src=obj.getAttribute("src");if(waitfor){if(src){cmplz_waiting_scripts[waitfor]=src}else if(obj.innerText.length>0){cmplz_waiting_inline_scripts[waitfor]=obj}}if(obj.parentElement){obj.parentElement.removeChild(obj)}});scriptElements.forEach(obj=>{if(obj.classList.contains("cmplz-activated")||obj.getAttribute("type")==="text/javascript"){return}obj.classList.add("cmplz-activated");let src=obj.getAttribute("src");if(src){obj.setAttribute("type","text/javascript");if(cmplz_is_waiting_script(cmplz_waiting_scripts,src)){return}if(obj.getAttribute("data-post_scribe_id")){let psID="#"+obj.getAttribute("data-post_scribe_id");let postScribeObj=document.querySelector(psID);if(postScribeObj){postScribeObj.innerHtml("");postscribe(psID,"