UNPKG

tarteaucitronjs

Version:

tarteaucitron.io - Get a compliant and accessible cookie banner

1 lines 83.6 kB
var scripts=document.getElementsByTagName("script"),tarteaucitronPath=(document.currentScript||scripts[scripts.length-1]).src.split("?")[0],tarteaucitronForceCDN=tarteaucitronForceCDN===undefined?"":tarteaucitronForceCDN,tarteaucitronUseMin=tarteaucitronUseMin===undefined?"":tarteaucitronUseMin,cdn=tarteaucitronForceCDN===""?tarteaucitronPath.split("/").slice(0,-1).join("/")+"/":tarteaucitronForceCDN,alreadyLaunch=alreadyLaunch===undefined?0:alreadyLaunch,tarteaucitronForceLanguage=tarteaucitronForceLanguage===undefined?"":tarteaucitronForceLanguage,tarteaucitronForceExpire=tarteaucitronForceExpire===undefined?"":tarteaucitronForceExpire,tarteaucitronCustomText=tarteaucitronCustomText===undefined?"":tarteaucitronCustomText,tarteaucitronExpireInDay=tarteaucitronExpireInDay===undefined||typeof tarteaucitronExpireInDay!=="boolean"?true:tarteaucitronExpireInDay,timeExpire=31536e6,tarteaucitronProLoadServices,tarteaucitronNoAdBlocker=false,tarteaucitronIsLoaded=false;var tarteaucitron={version:"1.21.0",cdn:cdn,user:{},lang:{},services:{},added:[],idprocessed:[],state:{},launch:[],parameters:{},isAjax:false,reloadThePage:false,events:{init:function(){},load:function(){}},init:function(params){"use strict";var origOpen;tarteaucitron.parameters=params;if(alreadyLaunch===0){alreadyLaunch=1;if(window.addEventListener){window.addEventListener("load",function(){tarteaucitron.initEvents.loadEvent(false)},false);window.addEventListener("scroll",function(){tarteaucitron.initEvents.scrollEvent()},false);window.addEventListener("keydown",function(evt){tarteaucitron.initEvents.keydownEvent(false,evt)},false);window.addEventListener("hashchange",function(){tarteaucitron.initEvents.hashchangeEvent()},false);window.addEventListener("resize",function(){tarteaucitron.initEvents.resizeEvent()},false)}else{window.attachEvent("onload",function(){tarteaucitron.initEvents.loadEvent(true)});window.attachEvent("onscroll",function(){tarteaucitron.initEvents.scrollEvent()});window.attachEvent("onkeydown",function(evt){tarteaucitron.initEvents.keydownEvent(true,evt)});window.attachEvent("onhashchange",function(){tarteaucitron.initEvents.hashchangeEvent()});window.attachEvent("onresize",function(){tarteaucitron.initEvents.resizeEvent()})}if(typeof XMLHttpRequest!=="undefined"){origOpen=XMLHttpRequest.prototype.open;XMLHttpRequest.prototype.open=function(){if(window.addEventListener){this.addEventListener("load",function(){if(typeof tarteaucitronProLoadServices==="function"){tarteaucitronProLoadServices()}},false)}else if(typeof this.attachEvent!=="undefined"){this.attachEvent("onload",function(){if(typeof tarteaucitronProLoadServices==="function"){tarteaucitronProLoadServices()}})}else{if(typeof tarteaucitronProLoadServices==="function"){setTimeout(tarteaucitronProLoadServices,1e3)}}try{origOpen.apply(this,arguments)}catch(err){}}}}if(tarteaucitron.events.init){tarteaucitron.events.init()}},initEvents:{loadEvent:function(isOldBrowser){tarteaucitron.load();tarteaucitron.fallback(["tarteaucitronOpenPanel"],function(elem){if(isOldBrowser){elem.attachEvent("onclick",function(event){tarteaucitron.userInterface.openPanel();event.preventDefault()})}else{elem.addEventListener("click",function(event){tarteaucitron.userInterface.openPanel();event.preventDefault()},false)}},true)},keydownEvent:function(isOldBrowser,evt){if(evt.keyCode===27){tarteaucitron.userInterface.closePanel()}if(isOldBrowser){if(evt.keyCode===9&&focusableEls.indexOf(evt.target)>=0){if(evt.shiftKey){if(document.activeElement===firstFocusableEl){lastFocusableEl.focus();evt.preventDefault()}}else{if(document.activeElement===lastFocusableEl){firstFocusableEl.focus();evt.preventDefault()}}}}},hashchangeEvent:function(){if(document.location.hash===tarteaucitron.hashtag&&tarteaucitron.hashtag!==""){tarteaucitron.userInterface.openPanel()}},resizeEvent:function(){var tacElem=document.getElementById("tarteaucitron");var tacCookieContainer=document.getElementById("tarteaucitronCookiesListContainer");if(tacElem&&tacElem.style.display==="block"){tarteaucitron.userInterface.jsSizing("main")}if(tacCookieContainer&&tacCookieContainer.style.display==="block"){tarteaucitron.userInterface.jsSizing("cookie")}},scrollEvent:function(){var scrollPos=window.pageYOffset||document.documentElement.scrollTop;var heightPosition;var tacPercentage=document.getElementById("tarteaucitronPercentage");var tacAlertBig=document.getElementById("tarteaucitronAlertBig");if(tacAlertBig&&!tarteaucitron.highPrivacy){if(tacAlertBig.style.display==="block"){heightPosition=tacAlertBig.offsetHeight+"px";if(scrollPos>screen.height*2){tarteaucitron.userInterface.respondAll(true)}else if(scrollPos>screen.height/2){document.getElementById("tarteaucitronDisclaimerAlert").innerHTML="<strong>"+tarteaucitron.lang.alertBigScroll+"</strong> "+tarteaucitron.lang.alertBig}if(tacPercentage){if(tarteaucitron.orientation==="top"){tacPercentage.style.top=heightPosition}else{tacPercentage.style.bottom=heightPosition}tacPercentage.style.width=100/(screen.height*2)*scrollPos+"%"}}}}},load:function(){"use strict";if(tarteaucitronIsLoaded===true){return}var cdn=tarteaucitron.cdn,language=tarteaucitron.getLanguage(),useMinifiedJS=new URL(cdn,tarteaucitronPath).host=="cdn.jsdelivr.net"||tarteaucitronPath.indexOf(".min.")>=0||tarteaucitronUseMin!=="",pathToLang=cdn+"lang/tarteaucitron."+language+(useMinifiedJS?".min":"")+".js",pathToServices=cdn+"tarteaucitron.services"+(useMinifiedJS?".min":"")+".js",linkElement=document.createElement("link"),defaults={adblocker:false,hashtag:"#tarteaucitron",cookieName:"tarteaucitron",highPrivacy:true,orientation:"middle",bodyPosition:"bottom",removeCredit:false,showAlertSmall:false,showDetailsOnClick:true,showIcon:true,iconPosition:"BottomRight",cookieslist:false,handleBrowserDNTRequest:false,DenyAllCta:true,AcceptAllCta:true,moreInfoLink:true,privacyUrl:"",useExternalCss:false,useExternalJs:false,mandatory:true,mandatoryCta:true,closePopup:false,groupServices:false,serviceDefaultState:"wait",googleConsentMode:true,bingConsentMode:true,softConsentMode:false,dataLayer:false,serverSide:false,partnersList:false,alwaysNeedConsent:false},params=tarteaucitron.parameters;tarteaucitronIsLoaded=true;if((tarteaucitron.parameters.readmoreLink!==undefined&&window.location.href==tarteaucitron.parameters.readmoreLink||window.location.href==tarteaucitron.parameters.privacyUrl)&&tarteaucitron.parameters.orientation=="middle"){tarteaucitron.parameters.orientation="bottom"}if(typeof tarteaucitronCustomPremium!=="undefined"){tarteaucitronCustomPremium()}if(params!==undefined){for(var k in defaults){if(!tarteaucitron.parameters.hasOwnProperty(k)){tarteaucitron.parameters[k]=defaults[k]}}}tarteaucitron.orientation=tarteaucitron.parameters.orientation;tarteaucitron.hashtag=tarteaucitron.parameters.hashtag;tarteaucitron.highPrivacy=tarteaucitron.parameters.highPrivacy;tarteaucitron.handleBrowserDNTRequest=tarteaucitron.parameters.handleBrowserDNTRequest;tarteaucitron.customCloserId=tarteaucitron.parameters.customCloserId;if(tarteaucitron.parameters.dataLayer===true){window.addEventListener("tac.root_available",function(){setTimeout(function(){window.dataLayer=window.dataLayer||[];window.dataLayer.push({event:"tac_consent_update",tacAuthorizedVendors:tarteaucitron.job.filter(job=>tarteaucitron.state[job]===true)})},200)});document.addEventListener("tac.consent_updated",function(){window.dataLayer=window.dataLayer||[];window.dataLayer.push({event:"tac_consent_update",tacAuthorizedVendors:tarteaucitron.job.filter(job=>tarteaucitron.state[job]===true)})})}if(tarteaucitron.parameters.bingConsentMode===true){window.uetq=window.uetq||[];window.uetq.push("consent","default",{ad_storage:"denied"});document.addEventListener("clarity_loaded",function(){window.uetq.push("consent","update",{ad_storage:"granted"})});document.addEventListener("clarity_allowed",function(){window.uetq.push("consent","update",{ad_storage:"granted"})});document.addEventListener("clarity_disallowed",function(){window.uetq.push("consent","update",{ad_storage:"denied"})});document.addEventListener("bingads_loaded",function(){window.uetq.push("consent","update",{ad_storage:"granted"})});document.addEventListener("bingads_allowed",function(){window.uetq.push("consent","update",{ad_storage:"granted"})});document.addEventListener("bingads_disallowed",function(){window.uetq.push("consent","update",{ad_storage:"denied"})});if(tarteaucitron.parameters.softConsentMode===false){window.addEventListener("tac.root_available",function(){if(typeof tarteaucitron_block!=="undefined"){tarteaucitron_block.unblock(/clarity\.ms/);tarteaucitron_block.unblock(/bat\.bing\.com/)}})}}if(tarteaucitron.parameters.googleConsentMode===true){window.dataLayer=window.dataLayer||[];window.tac_gtag=function tac_gtag(){dataLayer.push(arguments)};window.tac_gtag("consent","default",{ad_storage:"denied",analytics_storage:"denied",ad_user_data:"denied",ad_personalization:"denied",wait_for_update:800});document.addEventListener("googleads_added",function(){if(tarteaucitron.added["gcmads"]===true){return}tarteaucitron.services.gcmads={key:"gcmads",type:"ads",name:"Google Ads (personalized ads)",uri:"https://support.google.com/analytics/answer/9976101",needConsent:true,cookies:[],js:function(){},fallback:function(){}};tarteaucitron.job.push("gcmads");var i,allowBtns=document.getElementsByClassName("tarteaucitronAllow"),denyBtns=document.getElementsByClassName("tarteaucitronDeny");for(i=0;i<allowBtns.length;i++){tarteaucitron.addClickEventToElement(allowBtns[i],function(){tarteaucitron.userInterface.respond(this,true)})}for(i=0;i<denyBtns.length;i++){tarteaucitron.addClickEventToElement(denyBtns[i],function(){tarteaucitron.userInterface.respond(this,false)})}});document.addEventListener("gcmads_allowed",function(){tarteaucitron.setConsent("googleads",true)});document.addEventListener("gcmads_loaded",function(){window.tac_gtag("consent","update",{ad_user_data:"granted",ad_personalization:"granted"})});document.addEventListener("gcmads_allowed",function(){window.tac_gtag("consent","update",{ad_user_data:"granted",ad_personalization:"granted"})});document.addEventListener("gcmads_disallowed",function(){window.tac_gtag("consent","update",{ad_user_data:"denied",ad_personalization:"denied"})});document.addEventListener("googleads_loaded",function(){window.tac_gtag("consent","update",{ad_storage:"granted"})});document.addEventListener("googleads_allowed",function(){window.tac_gtag("consent","update",{ad_storage:"granted"})});document.addEventListener("googleads_disallowed",function(){tarteaucitron.setConsent("gcmads",false);window.tac_gtag("consent","update",{ad_storage:"denied"})});document.addEventListener("gtag_loaded",function(){window.tac_gtag("consent","update",{analytics_storage:"granted"})});document.addEventListener("gtag_allowed",function(){window.tac_gtag("consent","update",{analytics_storage:"granted"})});document.addEventListener("gtag_disallowed",function(){window.tac_gtag("consent","update",{analytics_storage:"denied"})});document.addEventListener("multiplegtag_loaded",function(){window.tac_gtag("consent","update",{analytics_storage:"granted"})});document.addEventListener("multiplegtag_allowed",function(){window.tac_gtag("consent","update",{analytics_storage:"granted"})});document.addEventListener("multiplegtag_disallowed",function(){window.tac_gtag("consent","update",{analytics_storage:"denied"})});if(tarteaucitron.parameters.softConsentMode===false){window.addEventListener("tac.root_available",function(){if(typeof tarteaucitron_block!=="undefined"){tarteaucitron_block.unblock(/www\.googletagmanager\.com\/gtag\/js/);tarteaucitron_block.unblock(/www\.googleadservices\.com\/pagead\/conversion/);tarteaucitron_block.unblock(/AW-/);tarteaucitron_block.unblock(/google-analytics\.com\/analytics\.js/);tarteaucitron_block.unblock(/google-analytics\.com\/ga\.js/)}})}}if(!tarteaucitron.parameters.useExternalCss){linkElement.rel="stylesheet";linkElement.type="text/css";linkElement.href=cdn+"css/tarteaucitron"+(useMinifiedJS?".min":"")+".css";document.getElementsByTagName("head")[0].appendChild(linkElement)}tarteaucitron.addInternalScript(pathToLang,"",function(){if(tarteaucitronCustomText!==""){tarteaucitron.lang=tarteaucitron.AddOrUpdate(tarteaucitron.lang,tarteaucitronCustomText)}tarteaucitron.addInternalScript(pathToServices,"",function(){if(tarteaucitron.orientation==="middle"){var customThemeMiddle=document.createElement("style"),cssRuleMiddle="div#tarteaucitronRoot.tarteaucitronBeforeVisible:before {content: '';position: fixed;width: 100%;height: 100%;background: white;top: 0;left: 0;z-index: 999;opacity: 0.5;}div#tarteaucitronAlertBig:before {content: '"+tarteaucitron.lang.middleBarHead+"';font-size: 35px;}body #tarteaucitronRoot div#tarteaucitronAlertBig {width: 60%;min-width: 285px;height: auto;margin: auto;left: 50%;top: 50%;transform: translate(-50%, -50%);box-shadow: 0 0 9000px #000;border-radius: 20px;padding: 35px 25px;}span#tarteaucitronDisclaimerAlert {padding: 0 30px;}#tarteaucitronRoot span#tarteaucitronDisclaimerAlert {margin: 10px 0 30px;display: block;text-align: center;font-size: 21px;}@media screen and (max-width: 900px) {div#tarteaucitronAlertBig button {margin: 0 auto 10px!important;display: block!important;}}";customThemeMiddle.type="text/css";if(customThemeMiddle.styleSheet){customThemeMiddle.styleSheet.cssText=cssRuleMiddle}else{customThemeMiddle.appendChild(document.createTextNode(cssRuleMiddle))}document.getElementsByTagName("head")[0].appendChild(customThemeMiddle)}if(tarteaucitron.parameters.groupServices==true){tarteaucitron.parameters.showDetailsOnClick=true}if(tarteaucitron.orientation==="popup"){var customThemePopup=document.createElement("style"),cssRulePopup="div#tarteaucitronAlertBig:before {content: '"+tarteaucitron.lang.middleBarHead+"';font-size: 22px;}body #tarteaucitronRoot div#tarteaucitronAlertBig {bottom: 0;top: auto!important;left: 8px!important;right: auto!important;transform: initial!important;border-radius: 5px 5px 0 0!important;max-width: 250px!important;width: calc(100% - 16px)!important;min-width: 0!important;padding: 25px 0;}span#tarteaucitronDisclaimerAlert {padding: 0 30px;font-size: 15px!important;}#tarteaucitronRoot span#tarteaucitronDisclaimerAlert {margin: 10px 0 30px;display: block;text-align: center;font-size: 21px;}div#tarteaucitronAlertBig button:not(#tarteaucitronCloseCross) {margin: 0 auto 10px!important;display: block!important;width: calc(100% - 60px);box-sizing: border-box;}";customThemePopup.type="text/css";if(customThemePopup.styleSheet){customThemePopup.styleSheet.cssText=cssRulePopup}else{customThemePopup.appendChild(document.createTextNode(cssRulePopup))}document.getElementsByTagName("head")[0].appendChild(customThemePopup)}var body=document.body,div=document.createElement("div"),html="",index,orientation="Top",modalAttrs="",cat=["ads","analytic","api","comment","social","support","video","other","google"],i;cat=cat.sort(function(a,b){if(tarteaucitron.lang[a].title>tarteaucitron.lang[b].title){return 1}if(tarteaucitron.lang[a].title<tarteaucitron.lang[b].title){return-1}return 0});html+='<div role="heading" aria-level="2" id="tac_title" class="tac_visually-hidden">'+tarteaucitron.lang.title+"</div>";html+='<div id="tarteaucitronPremium"></div>';if(tarteaucitron.reloadThePage){html+='<button type="button" id="tarteaucitronBack" aria-label="'+tarteaucitron.lang.close+" ("+tarteaucitron.lang.reload+')" title="'+tarteaucitron.lang.close+" ("+tarteaucitron.lang.reload+')"></button>'}else{html+='<button type="button" id="tarteaucitronBack" aria-label="'+tarteaucitron.lang.close+'" title="'+tarteaucitron.lang.close+'"></button>'}html+='<div id="tarteaucitron" role="dialog" aria-modal="true" aria-labelledby="dialogTitle" tabindex="-1">';if(tarteaucitron.reloadThePage){html+=' <button type="button" id="tarteaucitronClosePanel" aria-describedby="dialogTitle" aria-label="'+tarteaucitron.lang.close+" ("+tarteaucitron.lang.reload+')" title="'+tarteaucitron.lang.close+" ("+tarteaucitron.lang.reload+')">'}else{html+=' <button type="button" id="tarteaucitronClosePanel" aria-describedby="dialogTitle" >'}html+=" "+tarteaucitron.lang.close;html+=" </button>";html+=' <div id="tarteaucitronServices">';html+=' <div class="tarteaucitronLine tarteaucitronMainLine" id="tarteaucitronMainLineOffset">';html+=' <span class="tarteaucitronH1" role="heading" aria-level="2" id="dialogTitle">'+tarteaucitron.lang.title+"</span>";html+=' <div id="tarteaucitronInfo">';html+=" "+tarteaucitron.lang.disclaimer;if(tarteaucitron.parameters.privacyUrl!==""){html+=" <br/><br/>";html+=' <button type="button" id="tarteaucitronPrivacyUrlDialog" role="link">';html+=" "+tarteaucitron.lang.privacyUrl;html+=" </button>"}html+=" </div>";html+=' <div class="tarteaucitronName">';html+=' <span class="tarteaucitronH2" role="heading" aria-level="3">'+tarteaucitron.lang.all+"</span>";html+=" </div>";html+=' <div class="tarteaucitronAsk" id="tarteaucitronScrollbarAdjust">';html+=' <button aria-label="'+tarteaucitron.lang.icon+" : "+tarteaucitron.lang.allowAll+'" type="button" id="tarteaucitronAllAllowed" class="tarteaucitronAllow">';html+=' <span class="tarteaucitronCheck" aria-hidden="true"></span> '+tarteaucitron.lang.allowAll;html+=" </button> ";html+=' <button aria-label="'+tarteaucitron.lang.icon+" : "+tarteaucitron.lang.denyAll+'" type="button" id="tarteaucitronAllDenied" class="tarteaucitronDeny">';html+=' <span class="tarteaucitronCross" aria-hidden="true"></span> '+tarteaucitron.lang.denyAll;html+=" </button>";html+=" </div>";html+=" </div>";html+=' <div class="tarteaucitronBorder">';html+=' <div class="clear"></div><ul>';if(tarteaucitron.parameters.mandatory==true){html+='<li id="tarteaucitronServicesTitle_mandatory">';html+='<div class="tarteaucitronTitle">';if(tarteaucitron.parameters.showDetailsOnClick){html+=' <button type="button" tabindex="-1"><span class="tarteaucitronPlus" aria-hidden="true"></span> '+tarteaucitron.lang.mandatoryTitle+"</button>"}else{html+=' <span class="asCatToggleBtn">'+tarteaucitron.lang.mandatoryTitle+"</span>"}html+="</div>";html+='<ul id="tarteaucitronServices_mandatory">';html+='<li class="tarteaucitronLine">';html+=' <div class="tarteaucitronName">';html+=' <span class="tarteaucitronH3" role="heading" aria-level="4">'+tarteaucitron.lang.mandatoryText+"</span>";html+=' <span class="tarteaucitronListCookies" aria-hidden="true"></span><br/>';html+=" </div>";if(tarteaucitron.parameters.mandatoryCta==true){html+=' <div class="tarteaucitronAsk">';html+=' <button type="button" class="tarteaucitronAllow" tabindex="-1" disabled>';html+=' <span class="tarteaucitronCheck" aria-hidden="true"></span> '+tarteaucitron.lang.allow;html+=" </button> ";html+=' <button type="button" class="tarteaucitronDeny" tabindex="-1">';html+=' <span class="tarteaucitronCross" aria-hidden="true"></span> '+tarteaucitron.lang.deny;html+=" </button> ";html+=" </div>"}html+="</li>";html+="</ul></li>"}for(i=0;i<cat.length;i+=1){html+=' <li id="tarteaucitronServicesTitle_'+cat[i]+'" class="tarteaucitronHidden">';html+=' <div class="tarteaucitronTitle" role="heading" aria-level="3">';if(tarteaucitron.parameters.showDetailsOnClick){html+=' <button type="button" class="catToggleBtn" aria-expanded="false" data-cat="tarteaucitronDetails'+cat[i]+'"><span class="tarteaucitronPlus" aria-hidden="true"></span> '+tarteaucitron.lang[cat[i]].title+"</button>"}else{html+=' <span class="asCatToggleBtn" data-cat="tarteaucitronInlineDetails'+cat[i]+'">'+tarteaucitron.lang[cat[i]].title+"</span>"}html+=" </div>";html+=' <div id="tarteaucitronDetails'+cat[i]+'" class="tarteaucitronDetails '+(tarteaucitron.parameters.showDetailsOnClick?"tarteaucitronInfoBox":"tarteaucitronDetailsInline")+'">';html+=" "+tarteaucitron.lang[cat[i]].details;html+=" </div>";html+=' <ul id="tarteaucitronServices_'+cat[i]+'"></ul></li>'}html+=' <li id="tarteaucitronNoServicesTitle" class="tarteaucitronLine">'+tarteaucitron.lang.noServices+"</li>";html+=" </ul>";html+=' <div class="tarteaucitronHidden tarteaucitron-spacer-20" id="tarteaucitronScrollbarChild"></div>';if(tarteaucitron.parameters.removeCredit===false){html+=' <a class="tarteaucitronSelfLink" href="https://tarteaucitron.io/" rel="nofollow noreferrer noopener" target="_blank" title="tarteaucitron '+tarteaucitron.lang.newWindow+'"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHcAAAAeCAYAAAAWwoEYAAADl0lEQVRoge1Y0W3bQAx9CjKARlC+9GVUmqDJBHEmiDyB6wkcTxBngtgTxJ0gzgQW4C/9aYOmE6g4lTQo+k6y3Rb94QOERNQd+cjj8XiGwWAwGAwGg8FgMBgMBoPB8F8RNRXe+whEKe7c36ZCAeCRxC9Rig2PUd8kPgAsoxSfQ3YAzAA8D/HwYYCb05kBKKO0teFkmbC1jlKsAnq/Abjn+QBqAIsoRS30ttwG/HNz1wH/XIxWTicLdvtW7xTAGEAMtP685CNsBTe2d/BLydfXAG57SEnMAST0zgYZSUCPk02bCvkJduIzuJzDLfPolbY+tLKmar+/8+IRePy4qdpE03qHuH8fipFb4N2+XdA3AJ/0vaQxt7s9FvkIS2XvtqnwM0rxpOQfbnE5G2LhTCmUO2fHIngOmcv+KG3HafDchB6ntwjYqenR2PqC7sOZ3E7FXHB0vqxoFyUyLh7OEH7LOGouvhhN3eIBeKXv0n5MsufdHqXcwYR5U2EbpV35lSspVPJmQj4TcgRK7jTg5IzmPUhhwM5a2WHUFCx+NgiDucmgh7idikLovHFlL0pxQ9xzX+IIP9Y6FrJsqhjlQpZRAkFVDCjZfcCHt6bqJDmuh5ylCWx0RVnk3oumaknqTH5sqrY0fBWyULaHUIgAgxb46MxV3DbieAhxOxUxjSuljig9lMQ/Bcfoi9BTEv9aLORSndVxYOH525sUDC6u2gWxcNzBNRxPanyh3ktKinOgy3WoxPbtUM0t6RkbQnzBnFPgi9GCOEubY9UffIryz9iKRe8s/FUfEWosJJGxagp85bpUO3VywQ46lOtAWfNxKwa4JXQ+628+bpxYGXXMzp5rXH401VEyXwIdowXFaKWSMFHvMTVmGnc+P3oXV2QOiBCfgex8QtcQCbcQE/H+eoHzrkFo1KM7zVO4jVVj5s6lRiWF7zyXyfRMc97J3tzj87mYqZ7E2YjzUct9GUi4tjHLR8dVkBLjQcuHFleWvQfRNEhFR7uX7pkctOwvZXsft7sAtyldEUIN2UTeLxnEfxKYswzdi88BdbZ8hifUoSMftQvP+muRwN6+Q3DeqqRExP9QmTtcheiHh0Ot1x2i2km1bP9pbufw5zZdyWsOrh7vQae5OZWbsMv30pi7cd/CKj3coPEVaCP4Zhx4eQWhOZ1Y9MTXGyP8/iGjEyfa1T4fO/4Lea9vBoPBYDAYDAaDwWAwGAwGwz8GgF8siXCCbrSRhgAAAABJRU5ErkJggg==" alt="tarteaucitron.io" /></a>'}html+=" </div>";html+=" </div>";html+="</div>";if(tarteaucitron.parameters.orientation==="bottom"){orientation="Bottom"}if(tarteaucitron.parameters.orientation==="middle"||tarteaucitron.parameters.orientation==="popup"){modalAttrs=' role="dialog" aria-modal="true" aria-labelledby="tac_title"'}if(tarteaucitron.parameters.highPrivacy&&!tarteaucitron.parameters.AcceptAllCta){html+='<div tabindex="-1" id="tarteaucitronAlertBig" class="tarteaucitronAlertBig'+orientation+'"'+modalAttrs+">";html+=' <span id="tarteaucitronDisclaimerAlert" role="paragraph">';html+=" "+tarteaucitron.lang.alertBigPrivacy;html+=" </span>";html+=' <button type="button" id="tarteaucitronPersonalize" aria-label="'+tarteaucitron.lang.personalize+" "+tarteaucitron.lang.modalWindow+'" title="'+tarteaucitron.lang.personalize+" "+tarteaucitron.lang.modalWindow+'">';html+=" "+tarteaucitron.lang.personalize;html+=" </button>";if(tarteaucitron.parameters.privacyUrl!==""){html+=' <button role="link" type="button" id="tarteaucitronPrivacyUrl">';html+=" "+tarteaucitron.lang.privacyUrl;html+=" </button>"}html+="</div>"}else{html+='<div tabindex="-1" id="tarteaucitronAlertBig" class="tarteaucitronAlertBig'+orientation+'"'+modalAttrs+">";html+=' <span id="tarteaucitronDisclaimerAlert" role="paragraph">';if(tarteaucitron.parameters.highPrivacy){html+=" "+tarteaucitron.lang.alertBigPrivacy}else{html+=" "+tarteaucitron.lang.alertBigClick+" "+tarteaucitron.lang.alertBig}html+=" </span>";html+=' <button aria-label="'+tarteaucitron.lang.icon+" : "+tarteaucitron.lang.acceptAll+'" type="button" class="tarteaucitronCTAButton tarteaucitronAllow" id="tarteaucitronPersonalize2" aria-describedby="tarteaucitronDisclaimerAlert" >';html+=' <span class="tarteaucitronCheck" aria-hidden="true"></span> '+tarteaucitron.lang.acceptAll;html+=" </button>";if(tarteaucitron.parameters.DenyAllCta){if(tarteaucitron.reloadThePage){html+=' <button type="button" class="tarteaucitronCTAButton tarteaucitronDeny" id="tarteaucitronAllDenied2" aria-describedby="tarteaucitronDisclaimerAlert" aria-label="'+tarteaucitron.lang.icon+" : "+tarteaucitron.lang.denyAll+" ("+tarteaucitron.lang.reload+')" title="'+tarteaucitron.lang.denyAll+" ("+tarteaucitron.lang.reload+')">'}else{html+=' <button type="button" class="tarteaucitronCTAButton tarteaucitronDeny" id="tarteaucitronAllDenied2" aria-describedby="tarteaucitronDisclaimerAlert" aria-label="'+tarteaucitron.lang.icon+" : "+tarteaucitron.lang.denyAll+'">'}html+=' <span class="tarteaucitronCross" aria-hidden="true"></span> '+tarteaucitron.lang.denyAll;html+=" </button>"}html+=' <button type="button" id="tarteaucitronCloseAlert" aria-describedby="tarteaucitronDisclaimerAlert" aria-label="'+tarteaucitron.lang.personalize+" "+tarteaucitron.lang.modalWindow+'" title="'+tarteaucitron.lang.personalize+" "+tarteaucitron.lang.modalWindow+'">';html+=" "+tarteaucitron.lang.personalize;html+=" </button>";if(tarteaucitron.parameters.privacyUrl!==""){html+=' <button type="button" id="tarteaucitronPrivacyUrl" role="link">';html+=" "+tarteaucitron.lang.privacyUrl;html+=" </button>"}html+="</div>";html+='<div id="tarteaucitronPercentage"></div>'}if(tarteaucitron.parameters.showIcon===true){html+='<div id="tarteaucitronIcon" class="tarteaucitronIcon'+tarteaucitron.parameters.iconPosition+'">';html+=' <button type="button" id="tarteaucitronManager" aria-label="'+tarteaucitron.lang.icon+" "+tarteaucitron.lang.modalWindow+'" title="'+tarteaucitron.lang.icon+" "+tarteaucitron.lang.modalWindow+'">';html+=' <img src="'+(tarteaucitron.parameters.iconSrc?tarteaucitron.parameters.iconSrc:"data:image/png;base64,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")+'" alt="'+tarteaucitron.lang.icon+" "+tarteaucitron.lang.modalWindow+'" title="'+tarteaucitron.lang.icon+" "+tarteaucitron.lang.modalWindow+'">';html+=" </button>";html+="</div>"}if(tarteaucitron.parameters.showAlertSmall===true){html+='<div id="tarteaucitronAlertSmall" class="tarteaucitronAlertSmall'+orientation+'">';html+=' <button type="button" id="tarteaucitronManager" aria-label="'+tarteaucitron.lang.alertSmall+" "+tarteaucitron.lang.modalWindow+'" title="'+tarteaucitron.lang.alertSmall+" "+tarteaucitron.lang.modalWindow+'">';html+=" "+tarteaucitron.lang.alertSmall;html+=' <span id="tarteaucitronDot">';html+=' <span id="tarteaucitronDotGreen"></span>';html+=' <span id="tarteaucitronDotYellow"></span>';html+=' <span id="tarteaucitronDotRed"></span>';html+=" </span>";if(tarteaucitron.parameters.cookieslist===true){html+=" </button>\x3c!-- @whitespace";html+=' --\x3e<button type="button" id="tarteaucitronCookiesNumber" aria-expanded="false" aria-controls="tarteaucitronCookiesListContainer">0</button>';html+=' <div id="tarteaucitronCookiesListContainer">';if(tarteaucitron.reloadThePage){html+=' <button type="button" id="tarteaucitronClosePanelCookie" aria-label="'+tarteaucitron.lang.close+" ("+tarteaucitron.lang.reload+')" title="'+tarteaucitron.lang.close+" ("+tarteaucitron.lang.reload+')">'}else{html+=' <button type="button" id="tarteaucitronClosePanelCookie">'}html+=" "+tarteaucitron.lang.close;html+=" </button>";html+=' <div class="tarteaucitronCookiesListMain" id="tarteaucitronCookiesTitle">';html+=' <span class="tarteaucitronH2" role="heading" aria-level="3" id="tarteaucitronCookiesNumberBis">0 cookie</span>';html+=" </div>";html+=' <div id="tarteaucitronCookiesList"></div>';html+=" </div>"}else{html+=" </div>"}html+="</div>"}tarteaucitron.addInternalScript(tarteaucitron.cdn+"advertising"+(useMinifiedJS?".min":"")+".js","",function(){if(tarteaucitronNoAdBlocker===true||tarteaucitron.parameters.adblocker===false){div.id="tarteaucitronRoot";if(tarteaucitron.parameters.bodyPosition==="top"){var bodyFirstChild=body.firstChild;body.insertBefore(div,bodyFirstChild)}else{body.appendChild(div,body)}div.setAttribute("data-nosnippet","true");div.setAttribute("lang",language);div.setAttribute("role","region");div.setAttribute("aria-labelledby","tac_title");div.innerHTML=html;var tacRootAvailableEvent;if(typeof Event==="function"){tacRootAvailableEvent=new Event("tac.root_available")}else if(typeof document.createEvent==="function"){tacRootAvailableEvent=document.createEvent("Event");tacRootAvailableEvent.initEvent("tac.root_available",true,true)}if(typeof window.dispatchEvent==="function"){window.dispatchEvent(tacRootAvailableEvent)}if(tarteaucitron.job!==undefined){tarteaucitron.job=tarteaucitron.cleanArray(tarteaucitron.job);for(index=0;index<tarteaucitron.job.length;index+=1){tarteaucitron.addService(tarteaucitron.job[index])}}else{tarteaucitron.job=[]}if(tarteaucitron.job.length===0){tarteaucitron.userInterface.closeAlert()}tarteaucitron.isAjax=true;tarteaucitron.job.push=function(id){if(typeof tarteaucitron.job.indexOf==="undefined"){tarteaucitron.job.indexOf=function(obj,start){var i,j=this.length;for(i=start||0;i<j;i+=1){if(this[i]===obj){return i}}return-1}}if(tarteaucitron.job.indexOf(id)===-1){Array.prototype.push.call(this,id)}tarteaucitron.launch[id]=false;tarteaucitron.addService(id)};if(document.location.hash===tarteaucitron.hashtag&&tarteaucitron.hashtag!==""){tarteaucitron.userInterface.openPanel()}tarteaucitron.cookie.number();setInterval(tarteaucitron.cookie.number,6e4)}},tarteaucitron.parameters.adblocker);if(tarteaucitron.parameters.adblocker===true){setTimeout(function(){if(tarteaucitronNoAdBlocker===false){html='<div id="tarteaucitronAlertBig" class="tarteaucitronAlertBig'+orientation+' tarteaucitron-display-block" role="alert" aria-live="polite">';html+=' <p id="tarteaucitronDisclaimerAlert">';html+=" "+tarteaucitron.lang.adblock+"<br/>";html+=" <strong>"+tarteaucitron.lang.adblock_call+"</strong>";html+=" </p>";html+=' <button type="button" class="tarteaucitronCTAButton" id="tarteaucitronCTAButton">';html+=" "+tarteaucitron.lang.reload;html+=" </button>";html+="</div>";html+='<div role="heading" aria-level="2" id="tac_title" class="tac_visually-hidden">'+tarteaucitron.lang.title+"</div>";html+='<div id="tarteaucitronPremium"></div>';div.id="tarteaucitronRoot";if(tarteaucitron.parameters.bodyPosition==="top"){var bodyFirstChild=body.firstChild;body.insertBefore(div,bodyFirstChild)}else{body.appendChild(div,body)}div.setAttribute("data-nosnippet","true");div.setAttribute("lang",language);div.setAttribute("role","region");div.setAttribute("aria-labelledby","tac_title");div.innerHTML=html}},1500)}if(tarteaucitron.parameters.closePopup===true){setTimeout(function(){var closeElement=document.getElementById("tarteaucitronAlertBig"),closeButton=document.createElement("button");if(closeElement){closeButton.innerHTML='<span aria-hidden="true">X</span><span class="tac_visually-hidden">'+tarteaucitron.lang.closeBanner+"</span>";closeButton.setAttribute("id","tarteaucitronCloseCross");closeElement.insertAdjacentElement("beforeend",closeButton)}},100)}if(tarteaucitron.parameters.groupServices===true){var tac_group_style=document.createElement("style");tac_group_style.innerHTML=".tarteaucitronTitle{display:none}";document.head.appendChild(tac_group_style);var cats=document.querySelectorAll('[id^="tarteaucitronServicesTitle_"]');Array.prototype.forEach.call(cats,function(item){var cat=item.getAttribute("id").replace(/^(tarteaucitronServicesTitle_)/,"");if(cat!=="mandatory"){var html="";html+='<li class="tarteaucitronLine">';html+=' <div class="tarteaucitronName">';html+=' <span class="tarteaucitronH3" role="heading" aria-level="3">'+tarteaucitron.lang[cat].title+"</span>";html+=" <span>"+tarteaucitron.lang[cat].details+"</span>";html+=' <button type="button" aria-expanded="false" class="tarteaucitron-toggle-group" id="tarteaucitron-toggle-group-'+cat+'">'+tarteaucitron.lang.alertSmall+' <span id="tarteaucitronCounter-'+cat+'"></span></button>';html+=" </div>";html+=' <div class="tarteaucitronAsk" id="tarteaucitron-group-'+cat+'">';html+=' <button type="button" aria-label="'+tarteaucitron.lang.allow+" "+tarteaucitron.lang[cat].title+'" class="tarteaucitronAllow" id="tarteaucitron-accept-group-'+cat+'">';html+=' <span class="tarteaucitronCheck" aria-hidden="true"></span> '+tarteaucitron.lang.allow;html+=" </button> ";html+=' <button type="button" aria-label="'+tarteaucitron.lang.deny+" "+tarteaucitron.lang[cat].title+'" class="tarteaucitronDeny" id="tarteaucitron-reject-group-'+cat+'">';html+=' <span class="tarteaucitronCross" aria-hidden="true"></span> '+tarteaucitron.lang.deny;html+=" </button>";html+=" </div>";html+="</li>";var ul=document.createElement("ul");ul.innerHTML=html;item.insertBefore(ul,item.querySelector("#tarteaucitronServices_"+cat+""));document.querySelector("#tarteaucitronServices_"+cat).style.display="none";tarteaucitron.addClickEventToId("tarteaucitron-toggle-group-"+cat,function(){tarteaucitron.userInterface.toggle("tarteaucitronServices_"+cat);if(document.getElementById("tarteaucitronServices_"+cat).style.display=="block"){tarteaucitron.userInterface.addClass("tarteaucitronServicesTitle_"+cat,"tarteaucitronIsExpanded");document.getElementById("tarteaucitron-toggle-group-"+cat).setAttribute("aria-expanded","true")}else{tarteaucitron.userInterface.removeClass("tarteaucitronServicesTitle_"+cat,"tarteaucitronIsExpanded");document.getElementById("tarteaucitron-toggle-group-"+cat).setAttribute("aria-expanded","false")}});tarteaucitron.addClickEventToId("tarteaucitron-accept-group-"+cat,function(){tarteaucitron.userInterface.respondAll(true,cat)});tarteaucitron.addClickEventToId("tarteaucitron-reject-group-"+cat,function(){tarteaucitron.userInterface.respondAll(false,cat)})}})}if(tarteaucitron.parameters.partnersList===true&&(tarteaucitron.parameters.orientation==="middle"||tarteaucitron.parameters.orientation==="popup")){setTimeout(function(){var tacPartnersInfoParent=document.getElementById("tarteaucitronDisclaimerAlert");if(tacPartnersInfoParent!==null){tacPartnersInfoParent.insertAdjacentHTML("beforeend",'<div class="tarteaucitronPartnersList"><b>'+tarteaucitron.lang.ourpartners+' <span id="tarteaucitronCounter-all"></span></b> <ul id="tarteaucitronCounter-list"></ul></div>')}},100)}setTimeout(function(){var tacSaveButtonParent=document.getElementById("tarteaucitronServices");if(tacSaveButtonParent!==null){tacSaveButtonParent.insertAdjacentHTML("beforeend",'<div id="tarteaucitronSave"><button class="tarteaucitronAllow" id="tarteaucitronSaveButton">'+tarteaucitron.lang.save+"</button></div>")}},100);tarteaucitron.userInterface.color("",true);setTimeout(function(){tarteaucitron.addClickEventToId("tarteaucitronCloseCross",function(){tarteaucitron.userInterface.closeAlert()});tarteaucitron.addClickEventToId("tarteaucitronPersonalize",function(){tarteaucitron.userInterface.openPanel()});tarteaucitron.addClickEventToId("tarteaucitronPersonalize2",function(){tarteaucitron.userInterface.respondAll(true)});tarteaucitron.addClickEventToId("tarteaucitronManager",function(){tarteaucitron.userInterface.openPanel()});tarteaucitron.addClickEventToId("tarteaucitronBack",function(){tarteaucitron.userInterface.closePanel()});tarteaucitron.addClickEventToId("tarteaucitronClosePanel",function(){tarteaucitron.userInterface.closePanel()});tarteaucitron.addClickEventToId("tarteaucitronClosePanelCookie",function(){tarteaucitron.userInterface.closePanel()});tarteaucitron.addClickEventToId("tarteaucitronPrivacyUrl",function(){document.location=tarteaucitron.parameters.privacyUrl});tarteaucitron.addClickEventToId("tarteaucitronPrivacyUrlDialog",function(){document.location=tarteaucitron.parameters.privacyUrl});tarteaucitron.addClickEventToId("tarteaucitronCookiesNumber",function(){tarteaucitron.userInterface.toggleCookiesList()});tarteaucitron.addClickEventToId("tarteaucitronAllAllowed",function(){tarteaucitron.userInterface.respondAll(true)});tarteaucitron.addClickEventToId("tarteaucitronAllDenied",function(){tarteaucitron.userInterface.respondAll(false)});tarteaucitron.addClickEventToId("tarteaucitronAllDenied2",function(){tarteaucitron.userInterface.respondAll(false,"",true);if(tarteaucitron.reloadThePage===true){window.location.reload()}});tarteaucitron.addClickEventToId("tarteaucitronCloseAlert",function(){tarteaucitron.userInterface.openPanel()});tarteaucitron.addClickEventToId("tarteaucitronCTAButton",function(){location.reload()});tarteaucitron.addClickEventToId("tarteaucitronSaveButton",function(){var timeoutSaveButton=0;tarteaucitron.job.forEach(function(id){if(tarteaucitron.state[id]!==true&&tarteaucitron.state[id]!==false){timeoutSaveButton=500;tarteaucitron.setConsent(id,false)}});setTimeout(tarteaucitron.userInterface.closePanel,timeoutSaveButton)});var toggleBtns=document.getElementsByClassName("catToggleBtn"),i;for(i=0;i<toggleBtns.length;i++){toggleBtns[i].dataset.index=i;tarteaucitron.addClickEventToElement(toggleBtns[i],function(){if(!tarteaucitron.parameters.showDetailsOnClick)return false;tarteaucitron.userInterface.toggle("tarteaucitronDetails"+cat[this.dataset.index],"tarteaucitronInfoBox");if(document.getElementById("tarteaucitronDetails"+cat[this.dataset.index]).style.display==="block"){this.setAttribute("aria-expanded","true")}else{this.setAttribute("aria-expanded","false")}return false})}var allowBtnsInSite=document.querySelectorAll(".tac_activate .tarteaucitronAllow");for(i=0;i<allowBtnsInSite.length;i++){tarteaucitron.addClickEventToElement(allowBtnsInSite[i],function(){if(this.closest(".tac_activate")!==null&&this.closest(".tac_activate").parentNode!==null){this.closest(".tac_activate").parentNode.setAttribute("tabindex","-1");this.closest(".tac_activate").parentNode.focus()}})}var allowBtns=document.getElementsByClassName("tarteaucitronAllow");for(i=0;i<allowBtns.length;i++){tarteaucitron.addClickEventToElement(allowBtns[i],function(){tarteaucitron.userInterface.respond(this,true)})}var denyBtns=document.getElementsByClassName("tarteaucitronDeny");for(i=0;i<denyBtns.length;i++){tarteaucitron.addClickEventToElement(denyBtns[i],function(){tarteaucitron.userInterface.respond(this,false)})}if(tarteaucitron.events.load){tarteaucitron.events.load()}},500)})})},addService:function(serviceId){"use strict";var html="",s=tarteaucitron.services,service=s[serviceId];if(typeof service==="undefined"){var serviceToRemoveIndex=tarteaucitron.job.indexOf(serviceId);if(serviceToRemoveIndex!==-1){tarteaucitron.job.splice(serviceToRemoveIndex,1)}return}if(tarteaucitron.parameters.alwaysNeedConsent===true){service.needConsent=true}var cookie=tarteaucitron.cookie.read(),hostname=document.location.hostname,hostRef=document.referrer.split("/")[2],isNavigating=hostRef===hostname&&window.location.href!==tarteaucitron.parameters.privacyUrl,isAutostart=!service.needConsent,isWaiting=cookie.indexOf(service.key+"=wait")>=0,isDenied=cookie.indexOf(service.key+"=false")>=0,isAllowed=cookie.indexOf(service.key+"=true")>=0||!service.needConsent&&cookie.indexOf(service.key+"=false")<0,isResponded=cookie.indexOf(service.key+"=false")>=0||cookie.indexOf(service.key+"=true")>=0,isDNTRequested=navigator.doNotTrack==="1"||navigator.doNotTrack==="yes"||navigator.msDoNotTrack==="1"||window.doNotTrack==="1",currentStatus=isAllowed?tarteaucitron.lang.allowed:tarteaucitron.lang.disallowed,state=undefined!==service.defaultState?service.defaultState:undefined!==tarteaucitron.parameters.serviceDefaultState?tarteaucitron.parameters.serviceDefaultState:"wait";if(tarteaucitron.added[service.key]!==true){tarteaucitron.added[service.key]=true;html+='<li id="'+service.key+'Line" class="tarteaucitronLine">';html+=' <div class="tarteaucitronName">';html+=' <span class="tarteaucitronH3" role="heading" aria-level="4">'+service.name+"</span>";html+=' <div class="tarteaucitronStatusInfo">';html+=' <span class="tacCurrentStatus" id="tacCurrentStatus'+service.key+'">'+currentStatus+"</span>";html+=' <span class="tarteaucitronReadmoreSeparator"> - </span>';html+=' <span id="tacCL'+service.key+'" class="tarteaucitronListCookies"></span>';html+=" </div>";if(tarteaucitron.parameters.moreInfoLink==true){var link="https://tarteaucitron.io/service/"+service.key+"/";if(service.readmoreLink!==undefined&&service.readmoreLink!==""){link=service.readmoreLink}if(tarteaucitron.parameters.readmoreLink!==undefined&&tarteaucitron.parameters.readmoreLink!==""){link=tarteaucitron.parameters.readmoreLink}html+=' <a href="'+link+'" target="_blank" rel="noreferrer noopener nofollow" title="'+tarteaucitron.lang.more+" : "+tarteaucitron.lang.cookieDetail+" "+service.name+" "+tarteaucitron.lang.ourSite+" "+tarteaucitron.lang.newWindow+'" class="tarteaucitronReadmoreInfo">'+tarteaucitron.lang.more+"</a>";html+=' <span class="tarteaucitronReadmoreSeparator"> - </span>';html+=' <a href="'+service.uri+'" target="_blank" rel="noreferrer noopener" title="'+tarteaucitron.lang.source+" "+service.name+" "+tarteaucitron.lang.newWindow+'" class="tarteaucitronReadmoreOfficial">'+tarteaucitron.lang.source+"</a>"}html+=" </div>";html+=' <div class="tarteaucitronAsk">';html+=' <button type="button" aria-label="'+tarteaucitron.lang.allow+" "+service.name+'" id="'+service.key+'Allowed" class="tarteaucitronAllow">';html+=' <span class="tarteaucitronCheck" aria-hidden="true"></span> '+tarteaucitron.lang.allow;html+=" </button> ";html+=' <button type="button" aria-label="'+tarteaucitron.lang.deny+" "+service.name+'" id="'+service.key+'Denied" class="tarteaucitronDeny">';html+=' <span class="tarteaucitronCross" aria-hidden="true"></span> '+tarteaucitron.lang.deny;html+=" </button>";html+=" </div>";html+="</li>";tarteaucitron.userInterface.css("tarteaucitronServicesTitle_"+service.type,"display","block");if(document.getElementById("tarteaucitronServices_"+service.type)!==null){document.getElementById("tarteaucitronServices_"+service.type).innerHTML+=html}tarteaucitron.userInterface.css("tarteaucitronNoServicesTitle","display","none");tarteaucitron.userInterface.order(service.type);tarteaucitron.addClickEventToId(service.key+"Allowed",function(){tarteaucitron.userInterface.respond(this,true)});tarteaucitron.addClickEventToId(service.key+"Denied",function(){tarteaucitron.userInterface.respond(this,false)})}tarteaucitron.pro("!"+service.key+"="+isAllowed);if(isResponded===false&&tarteaucitron.user.bypass===true){isAllowed=true;tarteaucitron.cookie.create(service.key,true)}if(!isResponded&&(isAutostart||isNavigating&&isWaiting)&&!tarteaucitron.highPrivacy||isAllowed){if(!isAllowed||!service.needConsent&&cookie.indexOf(service.key+"=false")<0){tarteaucitron.cookie.create(service.key,true)}if(tarteaucitron.launch[service.key]!==true){tarteaucitron.launch[service.key]=true;if((typeof tarteaucitronMagic==="undefined"||tarteaucitronMagic.indexOf("_"+service.key+"_")<0)&&tarteaucitron.parameters.serverSide!==true){service.js()}tarteaucitron.sendEvent(service.key+"_loaded")}tarteaucitron.state[service.key]=true;tarteaucitron.userInterface.color(service.key,true)}else if(isDenied){if(typeof service.fallback==="function"){if((typeof tarteaucitronMagic==="undefined"||tarteaucitronMagic.indexOf("_"+service.key+"_")<0)&&tarteaucitron.parameters.serverSide!==true){service.fallback()}}tarteaucitron.state[service.key]=false;tarteaucitron.userInterface.color(service.key,false)}else if(!isResponded&&isDNTRequested&&tarteaucitron.handleBrowserDNTRequest){tarteaucitron.cookie.create(service.key,"false");if(typeof service.fallback==="function"){if((typeof tarteaucitronMagic==="undefined"||tarteaucitronMagic.indexOf("_"+service.key+"_")<0)&&tarteaucitron.parameters.serverSide!==true){service.fallback()}}tarteaucitron.state[service.key]=false;tarteaucitron.userInterface.color(service.key,false)}else if(!isResponded){tarteaucitron.cookie.create(service.key,state);if((typeof tarteaucitronMagic==="undefined"||tarteaucitronMagic.indexOf("_"+service.key+"_")<0)&&tarteaucitron.parameters.serverSide!==true){if(true===state&&typeof service.js==="function"){service.js()}else if(typeof service.fallback==="function"){service.fallback()}}if(true===state){tarteaucitron.sendEvent(service.key+"_loaded")}if(true===state||false===state){tarteaucitron.state[service.key]=state}tarteaucitron.userInterface.color(service.key,state);if("wait"===state){tarteaucitron.userInterface.openAlert()}}tarteaucitron.cookie.checkCount(service.key);tarteaucitron.sendEvent(service.key+"_added")},sendEvent:function(event_key){if(event_key!==undefined){var send_event_item;if(typeof Event==="function"){send_event_item=new Event(event_key)}else if(typeof document.createEvent==="function"){send_event_item=document.createEvent("Event");send_event_item.initEvent(event_key,true,true)}document.dispatchEvent(send_event_item)}},cleanArray:function cleanArray(arr){"use strict";var i,len=arr.length,out=[],obj={},s=tarteaucitron.services;for(i=0;i<len;i+=1){if(!obj[arr[i]]){obj[arr[i]]={};if(tarteaucitron.services[arr[i]]!==undefined){out.push(arr[i])}}}out=out.sort(function(a,b){if(s[a].type+s[a].key>s[b].type+s[b].key){return 1}if(s[a].type+s[a].key<s[b].type+s[b].key){return-1}return 0});return out},setConsent:function(id,status){if(status===true){tarteaucitron.userInterface.respond(document.getElementById(id+"Allowed"),true)}else if(status===false){tarteaucitron.userInterface.respond(document.getElementById(id+"Denied"),false)}},userInterface:{css:function(id,property,value){"use strict";if(document.getElementById(id)!==null){if(property=="display"&&value=="none"&&(id=="tarteaucitron"||id=="tarteaucitronBack"||id=="tarteaucitronAlertBig")){document.getElementById(id).style["opacity"]="0";document.getElementById(id).style[property]=value}else{document.getElementById(id).style[property]=value;if(property=="display"&&value=="block"&&(id=="tarteaucitron"||id=="tarteaucitronAlertBig")){document.getElementById(id).style["opacity"]="1"}if(property=="display"&&value=="block"&&id=="tarteaucitronBack"){document.getElementById(id).style["opacity"]="0.7"}if(property=="display"&&value=="block"&&id=="tarteaucitronAlertBig"&&(tarteaucitron.parameters.orientation=="middle"||tarteaucitron.parameters.orientation=="popup")){tarteaucitron.userInterface.focusTrap("tarteaucitronAlertBig")}}}},addClass:function(id,className){"use strict";if(document.getElementById(id)!==null&&document.getElementById(id).classList!==undefined){document.getElementById(id).classList.add(className)}},removeClass:function(id,className){"use strict";if(document.getElementById(id)!==null&&document.getElementById(id).classList!==undefined){document.getElementById(id).classList.remove(className)}},respondAll:function(status,type,allowSafeAnalytics){"use strict";var s=tarteaucitron.services,service,key,index=0;for(index=0;index<tarteaucitron.job.length;index+=1){if(typeof type!=="undefined"&&type!==""&&s[tarteaucitron.job[index]].type!==type){continue}if(allowSafeAnalytics&&typeof s[tarteaucitron.job[index]].safeanalytic!=="undefined"&&s[tarteaucitron.job[index]].safeanalytic===true){continue}service=s[tarteaucitron.job[index]];key=service.key;if(tarteaucitron.state[key]!==status){if(status===false&&tarteaucitron.launch[key]===true){tarteaucitron.reloadThePage=true;if(tarteaucitron.checkIfExist("tarteaucitronClosePanel")){var ariaCloseValue=document.getElementById("tarteaucitronClosePanel").textContent.trim()+" ("+tarteaucitron.lang.reload+")";document.getElementById("tarteaucitronClosePanel").setAttribute("aria-label",ariaCloseValue);document.getElementById("tarteaucitronClosePanel").setAttribute("title",ariaCloseValue)}}if(tarteaucitron.launch[key]!==true&&status===true){tarteaucitro