"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 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("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);if(blocked_image_container.querySelector(".cmplz-blocked-content-notice")==null){let placeholderText=complianz.placeholdertext;if(typeof placeholderText!=="undefined"){let btn=cmplz_create_element("button","");btn.innerText=placeholderText;btn.classList.add("cmplz-blocked-content-notice");btn.classList.add("cmplz-accept-marketing");btn.setAttribute("data-service",service);btn.setAttribute("aria-label",service);blocked_image_container.appendChild(btn)}}}});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 blocked_content_container;if(obj.classList.contains("cmplz-iframe")){if(obj.getAttribute("loading")==="lazy"){obj.removeAttribute("loading");obj.setAttribute("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);if(blocked_content_container.querySelector(".cmplz-blocked-content-notice")==null){let placeholderText=complianz.placeholdertext;if(typeof placeholderText!=="undefined"){let btn=cmplz_create_element("button","");btn.innerText=placeholderText;btn.classList.add("cmplz-blocked-content-notice");btn.classList.add("cmplz-accept-marketing");btn.setAttribute("data-service",service);btn.setAttribute("aria-label",service);blocked_content_container.appendChild(btn)}}let src=obj.getAttribute("data-placeholder-image");if(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("marketing")){cmplz_enable_category("marketing")}}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_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()}document.querySelectorAll(".cmplz-blocked-content-notice.cmplz-accept-"+category+", .cmplz-blocked-content-notice[data-service="+service+"]").forEach(obj=>{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")}let blocked_content_container=obj.closest(".cmplz-blocked-content-container");let cssIndex=blocked_content_container.getAttribute("data-placeholder_class_index");blocked_content_container.classList.remove("cmplz-blocked-content-container");blocked_content_container.classList.remove("cmplz-placeholder-"+cssIndex)}else if(tagName==="IFRAME"){obj.classList.add("cmplz-activated");let src=obj.getAttribute("data-src-cmplz");let autoplay=cmplz_get_url_parameter(obj.getAttribute("src"),"autoplay");if(autoplay==="1")src=src+"&autoplay=1";obj.addEventListener("load",event=>{if(obj.getAttribute("data-deferlazy")){obj.setAttribute("loading","lazy")}let blocked_content_container=obj.closest(".cmplz-blocked-content-container");let cssIndex=blocked_content_container.getAttribute("data-placeholder_class_index");blocked_content_container.classList.remove("cmplz-blocked-content-container");blocked_content_container.classList.remove("cmplz-placeholder-"+cssIndex);obj.classList.remove("cmplz-iframe-styles");obj.classList.remove("cmplz-iframe");obj.classList.remove("video-wrap")});obj.setAttribute("src",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=new Object;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}}});scriptElements.forEach(obj=>{if(obj.classList.contains("cmplz-activated")){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,"