let ConsentApp=new function ConsentController(){window.dataLayer=window.dataLayer||[];this.consentChanged=function(state,service){if(state===!0){if(service.name.indexOf('google-tagmanager-service')!==-1){let tempObj={event:service.gtm.trigger};tempObj[service.gtm.variable]=!0;window.dataLayer.push(tempObj)}}else if(state===!1){if(service.name.indexOf('google-tagmanager-service')!==-1){let tempObj={event:service.gtm.trigger};tempObj[service.gtm.variable]=!1;window.dataLayer.push(tempObj)}}
if(typeof window[service.ownCallback]==="function"){window[service.ownCallback](state,service)}else if(service.ownCallback!==''){console.error('The Callback function '+service.ownCallback+' is not yet defined. Please create it first.')}};(function contruct(){$(document).ready(function(){$(document).on('click','.js-showConsentModal',function(event){event.preventDefault();klaro.show()})})})();const isSafari=navigator.vendor&&navigator.vendor.indexOf('Apple')>-1&&navigator.userAgent&&navigator.userAgent.indexOf('CriOS')==-1&&navigator.userAgent.indexOf('FxiOS')==-1;$(function(){setTimeout(function(){if(isSafari!=!0){$('#klaro').removeClass('safari')}else{$('#klaro').addClass('safari')}})})};$(function(){if($('iframe').length>0){var counterOfIframe=0;var attrDataSrc;$('iframe').each(function(){attrDataSrc=$(this).attr('src');if(!attrDataSrc){attrDataSrc=$(this).attr('data-src')}
if(attrDataSrc&&(attrDataSrc.indexOf("youtu")>-1||attrDataSrc.indexOf("vimeo")>-1)){$(this).parent().find('.klaro.cm-as-context-notice').css({'width':$(this).width()});if($(this).height()<$(this).parent().find('.klaro.cm-as-context-notice').height()){$(this).parent().find('.klaro.cm-as-context-notice .cm-buttons').css('margin-top','1em')}}
counterOfIframe++})}
$('.klaro.we_cookie_consent.cm-as-context-notice').each(function(){if($(this).width()<=300){$(this).addClass('notice--minified')}});$('.klaro.we_cookie_consent .cn-body').each(function(){$(this).attr('data-nosnippet','data-nosnippet')})});document.addEventListener('DOMContentLoaded',function(event){var filetypes=/\.(zip|exe|dmg|pdf|doc.*|xls.*|ppt.*|mp3|txt|rar|wma|mov|avi|wmv|flv|wav)$/i;document.querySelector('a').addEventListener('click',function(event){var track=!0,href=this.href,isThisDomain=href.match(document.domain.split('.').reverse()[1]+'.'+document.domain.split('.').reverse()[0]);if(!href.match(/^javascript:/i)){var elEv=[];elEv.value=0,elEv.non_i=!1;if(href.match(/^mailto\:/i)){elEv.category="email";elEv.action="click";elEv.label=href.replace(/^mailto\:/i,'');elEv.loc=href}else if(href.match(filetypes)){var extension=(/[.]/.exec(href))?/[^.]+$/.exec(href):undefined;elEv.category="download";elEv.action="click-"+extension[0];elEv.label=href.replace(/ /g,"-");elEv.loc=href}else if(href.match(/^https?\:/i)&&!isThisDomain){elEv.category="external";elEv.action="click";elEv.label=href.replace(/^https?\:\/\//i,'');elEv.non_i=!0;elEv.loc=href}else if(href.match(/^tel\:/i)){elEv.category="telephone";elEv.action="click";elEv.label=href.replace(/^tel\:/i,'');elEv.loc=href}else track=!1;if(track){ga('send','event',elEv.category.toLowerCase(),elEv.action.toLowerCase(),elEv.label.toLowerCase(),elEv.value,{'nonInteraction':elEv.non_i})}}})});document.onreadystatechange=function(){if(document.readyState==='complete'){let m2cCookieHosts=m2cGetCookieHosts();let m2cElementList=document.querySelectorAll('.media2click-wrap');m2cElementList.forEach(function(m2cElement){let placeholder=m2cElement.querySelector('.media2click-placeholder');let frameData=m2cElement.querySelector('.media2click-iframedata');let oldPlaceholder=m2cElement.querySelector('.media2click-old');let activateOnce=null;let activatePermanent=null;if(oldPlaceholder!==null){activateOnce=oldPlaceholder}else{activateOnce=m2cElement.querySelector('.media2click-once');activatePermanent=m2cElement.querySelector('.media2click-permanent')}
if(activateOnce!==null){activateOnce.addEventListener('click',function(event){event.preventDefault();m2cActivateFrame(frameData,placeholder)},!1)}
if(activatePermanent!==null){activatePermanent.addEventListener('click',function(event){event.preventDefault();let host=this.getAttribute('data-host');let lifetime=this.getAttribute('data-cookielifetime');if(host!==null&&host!==''){m2cCookieHosts.push(host);m2cSetCookieHosts(m2cCookieHosts,lifetime)}
m2cActivateFrame(frameData,placeholder)},!1)}
if(m2cCookieHosts.find(element=>element===placeholder.getAttribute('data-host'))){m2cActivateFrame(frameData,placeholder)}})
let m2cToggleList=document.querySelectorAll('.media2click-toggle');m2cToggleList.forEach(function(toggle){let host=toggle.getAttribute('data-host');let lifetime=toggle.getAttribute('data-cookielifetime');if(m2cCookieHosts.find(element=>element===host)){toggle.classList.add('activated');toggle.setAttribute('checked','checked')}
toggle.addEventListener('click',function(event){toggle.classList.toggle('activated');if(toggle.className==='media2click-toggle activated'){m2cCookieHosts.push(host);m2cSetCookieHosts(m2cCookieHosts,lifetime)}else{let index=m2cCookieHosts.indexOf(host);if(index>-1){m2cCookieHosts.splice(index,1);if(m2cCookieHosts.length>0){m2cSetCookieHosts(m2cCookieHosts,lifetime)}else{m2cDeleteCookie()}}}})})}};function m2cActivateFrame(dataNode,placeholderNode){let newNode=document.createElement('iframe');let frameData=JSON.parse(dataNode.getAttribute('data-attributes'));Object.entries(frameData).forEach(([key,value])=>newNode.setAttribute(key,value));dataNode.parentElement.insertBefore(newNode,dataNode);dataNode.parentElement.removeChild(dataNode);placeholderNode.parentElement.removeChild(placeholderNode)}
function m2cSetCookieHosts(hosts,lifetime=-1){lifetime=Number.parseInt(lifetime,10);if(Number.isNaN(lifetime)||lifetime<0){lifetime=7}
let expires='';if(lifetime>0){let d=new Date();d.setTime(d.getTime()+(lifetime*24*60*60*1000));expires="expires="+d.toUTCString()+";"}
document.cookie="m2c_accepted_hosts="+hosts.join()+";"+expires+"path=/;SameSite=Strict"}
function m2cGetCookieHosts(){let decodedCookie=decodeURIComponent(document.cookie);let ca=decodedCookie.split(';');for(let i=0;i<ca.length;i++){let c=ca[i];while(c.charAt(0)===' '){c=c.substring(1)}
if(c.indexOf("m2c_accepted_hosts=")===0){return c.substring(19,c.length).split(',')}}
return[]}
function m2cDeleteCookie(){document.cookie="m2c_accepted_hosts=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;"}