!function(e){window.BorlabsCookie=function(){"use strict";var o,t,n="data-cookie-accordion",i="data-cookie-accordion-parent",a="data-cookie-accordion-status",c="data-cookie-accordion-target",s="#BorlabsCookieBox input[type='checkbox']",r="#BorlabsCookieBox",d="#BorlabsCookieBoxWrap",l="data-borlabs-cookie-group",u="#BorlabsCookieBox input[type='checkbox'][name='cookieGroup[]']",b="data-cookie-accept",h="data-cookie-accept-all",k="data-cookie-back",p="data-cookie-individual",f="data-cookie-refuse",v="data-borlabs-cookie-preference",g=".borlabs-cookie-preference",m="data-borlabs-cookie-switch",x="._brlbs-btn-switch-status",y="data-borlabs-cookie-unblock",C="data-borlabs-cookie-type",w="data-borlabs-cookie-id",L="data-borlabs-script-blocker-id",_="data-borlabs-script-blocker-js-handle",B="input[type='checkbox'][name='unblockAll']",S="data-borlabs-cookie-uid",O="data-borlabs-cookie-consent-history",j=".BorlabsCookie",I={},T={},D={},A={},U={scriptBlockerId:{},jsHandle:{}},E=!1,P={consents:{},expires:null,uid:null,version:null},H={consentSaved:null,codeUnblocked:null,codeUnblockedAfterConsent:null};function N(e,o){if(o){var t=o.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])'),n=Array.from(t).filter((function(e){return 0!==e.offsetHeight})),i=n[0],a=n[n.length-1];("Tab"===e.key||9===e.keyCode)&&(e.shiftKey?document.activeElement===i&&(e.preventDefault(),a.focus()):document.activeElement===a&&(e.preventDefault(),i.focus()))}}function R(e){e.addEventListener("keydown",(function(o){return N(o,e)}),!0)}function G(e){e.removeEventListener("keydown",(function(o){return N(o,e)}),!0)}function J(){e(r).attr("aria-modal",!1)}var M=function(){e(d).length&&"SCRIPT"===e(d)[0].tagName&&e(d).after(e(d).html()),e(document).on("click","["+b+"]",(function(e){e.preventDefault(),Y(),q()})),e(document).on("click","["+h+"]",(function(e){e.preventDefault(),K()})),e(document).on("click","["+k+"]",(function(e){e.preventDefault(),W()})),e(document).on("click","["+p+"]",(function(e){e.preventDefault(),$()})),e(document).on("click","["+f+"]",(function(o){o.preventDefault();var t=[];e(u+":checked").each((function(){-1===t.indexOf(this.value)&&(e(this).trigger("click"),t.push(this.value))})),Y(),q()})),F(),Q(),Z(),!0===ee()?(re(),de(),le(),document.dispatchEvent(H.codeUnblocked),J()):o.showCookieBox?0===o.hideCookieBoxOnPages.length||-1===o.hideCookieBoxOnPages.indexOf(window.location.protocol+"//"+window.location.hostname+window.location.pathname)?o.cookiesForBots&&/bot|googlebot|crawler|spider|robot|crawling|lighthouse/i.test(navigator.userAgent.toLowerCase())?(te(o.cookies,!1),re(),de(),le(),J(),document.dispatchEvent(H.codeUnblocked)):o.respectDoNotTrack&&void 0!==navigator.doNotTrack&&"1"===navigator.doNotTrack?(te({essential:o.cookies.essential},!1),re(),de(),le(),J(),document.dispatchEvent(H.codeUnblocked)):z(!0):(re(),de(),le(),J(),document.dispatchEvent(H.codeUnblocked)):J()},z=function(t){e(r).attr("aria-modal",!0),e("body").addClass("borlabs-position-fix"),R(document.querySelector(".cookie-box")),void 0===t&&(t=!1);var n=e(u),i=null;return Object.keys(P.consents).length?(e("["+l+"]").each((function(){-1===Object.keys(P.consents).indexOf(this.dataset.borlabsCookieGroup)&&e(this).addClass("borlabs-hide")})),n.length&&"1"===o.boxLayoutAdvanced&&n.each((function(){i=this.value,"string"==typeof this.dataset.borlabsCookieCheckbox&&("object"==typeof P.consents[i]?e(this).prop("checked",!0):e(this).prop("checked",!1))}))):n.length&&n.each((function(){i=this.value,"1"===o.boxLayoutAdvanced&&"1"===o.ignorePreSelectStatus&&!1===E&&"essential"!==i&&(e(this).prop("checked",!1),e(s+"[name='cookies["+i+"][]']").prop("checked",!1).trigger("change"))})),o.blockContent?(e(r+" > div").addClass("_brlbs-block-content"),o.animation?(e(r+" > div").addClass("_brlbs-bg-animation"),setTimeout((function(){e(r+" > div").addClass("_brlbs-bg-dark")}),25)):e(r+" > div").addClass("_brlbs-bg-dark")):e("._brlbs-"+o.boxLayout+"-wrap").addClass("_brlbs-position-fixed"),e(r+" > div").css("display",""),e(r+" > div").addClass("show-cookie-box"),o.animation&&e(r+" ._brlbs-"+o.boxLayout).addClass("animated "+o.animationIn+(t&&o.animationDelay?" delay-1s":"")),e("#CookieBoxSaveButton")[0].focus(),!0},q=function(){return J(),G(document.querySelector(".cookie-box")),o.animation&&(e(r+" ._brlbs-"+o.boxLayout).removeClass("delay-1s "),e(r+" ._brlbs-"+o.boxLayout).removeClass(o.animationIn),e(r+" ._brlbs-"+o.boxLayout).addClass(o.animationOut)),e(r+" > div").addClass("borlabs-hide"),o.blockContent?e(r+" > div").removeClass("_brlbs-bg-dark"):e("._brlbs-"+o.boxLayout+"-wrap").addClass("_brlbs-position-fixed"),setTimeout((function(){e("._brlbs-"+o.boxLayout+"-wrap").removeAttr("style"),e("._brlbs-"+o.boxLayout+" .cookie-box .container").removeAttr("style"),e("._brlbs-"+o.boxLayout+" .cookie-preference .container").removeAttr("style"),o.animation&&(e("._brlbs-"+o.boxLayout).removeClass("animated"),e("._brlbs-"+o.boxLayout).removeClass("delay-1s"),e("._brlbs-"+o.boxLayout).removeClass(o.animationIn),e("._brlbs-"+o.boxLayout).removeClass(o.animationOut)),e(r+" > div").removeClass("show-cookie-box"),o.blockContent&&e(r+" > div").removeClass("_brlbs-block-content")}),o.animation?1e3:0),e("body").removeClass("borlabs-position-fix"),!0},$=function(){G(document.querySelector(".cookie-box")),R(document.querySelector(".cookie-preference"));var t=e(u),n=null;t.length&&t.each((function(){n=this.value,Object.keys(P.consents).length?!1===E&&(void 0!==P.consents[n]?(e(this).prop("checked",!0),e(this).trigger("change"),e(s+"[name='cookies["+n+"][]']").each((function(){-1!==P.consents[n].indexOf(this.value)?e(this).prop("checked",!0):e(this).prop("checked",!1),e(this).trigger("change")}))):(e(this).prop("checked",!1),e(this).trigger("change"),e(s+"[name='cookies["+n+"][]']").prop("checked",!1).trigger("change"))):("1"===o.ignorePreSelectStatus&&!1===E&&(e(this).prop("checked",!1),e(r+" ["+l+"='"+this.value+"']").addClass("borlabs-hide")),e(this).trigger("change"),e(s+"[name='cookies["+n+"][]']").each((function(){"1"===o.ignorePreSelectStatus&&!1===E&&e(this).prop("checked",!1),e(this).trigger("change")})))})),e("._brlbs-"+o.boxLayout+" .cookie-box .container").animate({height:0,opacity:0},(function(){e("._brlbs-"+o.boxLayout+" .cookie-box").attr("aria-hidden",!0),e("._brlbs-"+o.boxLayout+" .cookie-preference").attr("aria-hidden",!1),e("#CookiePrefSave")[0].focus(),e("._brlbs-"+o.boxLayout+"-wrap").animate({width:"100vw",maxWidth:"box"===o.boxLayout?"768px":"100%"},"box"===o.boxLayout?400:0,(function(){var t=e("._brlbs-"+o.boxLayout+" .cookie-preference .container")[0].scrollHeight;e("._brlbs-"+o.boxLayout+" .cookie-preference .container").animate({height:"80vh",maxHeight:t,opacity:1})}))}))},W=function(){G(document.querySelector(".cookie-preference")),e("._brlbs-"+o.boxLayout+" .cookie-preference .container").animate({height:0,opacity:0},(function(){e("._brlbs-"+o.boxLayout+" .cookie-box").attr("aria-hidden",!1),e("._brlbs-"+o.boxLayout+" .cookie-preference").attr("aria-hidden",!0),e("._brlbs-"+o.boxLayout+"-wrap").animate({maxWidth:"box"===o.boxLayout?"375px":"100%"},"box"===o.boxLayout?400:0,(function(){var t=e("._brlbs-"+o.boxLayout+" .cookie-box .container")[0].scrollHeight+"px";e("._brlbs-"+o.boxLayout+" .cookie-box .container").animate({height:t,opacity:1})})),e("#CookieBoxSaveButton")[0].focus()}))},V=function(t){return void 0!==t&&t.preventDefault(),e("._brlbs-"+o.boxLayout+" .cookie-preference .container a["+k+"]").css("display","none"),e("._brlbs-"+o.boxLayout+" .cookie-preference .container a["+k+"] + span._brlbs-separator").css("display","none"),e("._brlbs-"+o.boxLayout+" .cookie-box .container").css("height",0),e("._brlbs-"+o.boxLayout+" .cookie-box .container").css("opacity",0),e("._brlbs-"+o.boxLayout+"-wrap").css({width:"100vw",maxWidth:"box"===o.boxLayout?"768px":"100%"}),z(!1),setTimeout((function(){$()}),500),!0},F=function(){e("["+n+"]").on("click","["+c+"]",(function(){var o=e(this).closest("["+n+"]");o.find("["+i+"]:visible").length&&(o.find("["+a+"='hide']").addClass("borlabs-hide"),o.find("["+a+"='show']").removeClass("borlabs-hide"),o.find("["+i+"]:visible").slideUp()),o.find("["+i+"='"+this.dataset.cookieAccordionTarget+"']:hidden").length&&(e(this).children("["+a+"='show']").addClass("borlabs-hide"),e(this).children("["+a+"='hide']").removeClass("borlabs-hide"),o.find("["+i+"='"+this.dataset.cookieAccordionTarget+"']").slideDown())}))},K=function(){var o=e(u),t=null;o.length&&o.each((function(){t=this.value,e(this).prop("checked",!0),e(this).trigger("change"),e(s+"[name='cookies["+t+"][]']").each((function(){e(this).prop("checked",!0),e(this).trigger("change")}))})),Y(),q()},Q=function(){e(document).on("click",u,(function(){E=!0,this.checked?(e(s+"[name='cookies["+this.value+"][]']").prop("checked",!0).trigger("change"),e(u+"[value='"+this.value+"']").prop("checked",!0),e(r+" ["+l+"='"+this.value+"']").length&&e(r+" ["+l+"='"+this.value+"']").removeClass("borlabs-hide")):(e(s+"[name='cookies["+this.value+"][]']").prop("checked",!1).trigger("change"),e(u+"[value='"+this.value+"']").prop("checked",!1),e(r+" ["+l+"='"+this.value+"']").length&&e(r+" ["+l+"='"+this.value+"']").addClass("borlabs-hide"))}))},Z=function(){e(document).on("click",s+"[name^='cookies']",(function(){E=!0,this.checked&&(e(u+"[value='"+this.dataset.cookieGroup+"']").prop("checked",!0).trigger("change"),e(r+" ["+l+"='"+this.dataset.cookieGroup+"']").length&&e(r+" ["+l+"='"+this.dataset.cookieGroup+"']").removeClass("borlabs-hide"))}))},X=function(){!0===this.checked?(e(this).parent().parent().children(x).children().last().css("display","none"),e(this).parent().parent().children(x).children().first().css("display","inline-block")):(e(this).parent().parent().children(x).children().first().css("display","none"),e(this).parent().parent().children(x).children().last().css("display","inline-block"))},Y=function(){var t={essential:o.cookies.essential},n=e(u+":checked"),i=e(s+"[name^='cookies']:checked");if(n.length&&(n.each((function(){this.value.length&&new RegExp(/^[a-z-_]{3,}$/).test(this.value)&&"essential"!==this.value&&(t[this.value]=[])})),i.length&&i.each((function(){this.value.length&&"string"==typeof this.dataset.cookieGroup&&new RegExp(/^[a-z-_]{3,}$/).test(this.value)&&new RegExp(/^[a-z-_]{3,}$/).test(this.dataset.cookieGroup)&&t[this.dataset.cookieGroup].push(this.value)}))),Object.keys(P.consents).length)for(var a in P.consents)if(void 0!==t[a])for(var c in P.consents[a])-1===t[a].indexOf(P.consents[a][c])&&ue(a,P.consents[a][c]);else if(void 0!==I[a])for(var r in I[a])ue(a,r);te(t,!1),"1"!==o.reloadAfterConsent&&(re(),de(),le(),document.dispatchEvent(H.codeUnblockedAfterConsent),document.dispatchEvent(H.codeUnblocked))},ee=function(){var e=!1;return"string"==typeof P.version&&(P.version===o.cookieVersion?e=!0:P.consents={}),e},oe=function(){if(document.cookie.length)for(var e=document.cookie.split(";"),t=0;t0&&location.reload(!0)}))},ge=function(){e.ajax(o.ajaxURL,{type:"POST",data:{action:"borlabs_cookie_handler",type:"consent_history",language:o.language,uid:P.uid}}).done((function(o){(o=e.parseJSON(o)).length&&e.each(o,(function(o,t){e("["+O+"] table").append(""+t.stamp+""+t.version+""+t.consent+"")}))}))},me=function(){if(o.crossDomainCookie.length)for(var t in o.crossDomainCookie){var n=o.crossDomainCookie[t];e("body").append('')}},xe=function(){e(j+" [name^='borlabsCookie']").each((function(){ce(this.value)?this.checked=!0:this.checked=!1,e(this).trigger("change")})),e(document).on("change",j+" [name^='borlabsCookie']",(function(){this.checked?ie(this.dataset.cookieGroup,this.value):ae(this.dataset.cookieGroup,this.value)}))},ye=function(){if(Object.keys(I).length)for(var e in I)if(Object.keys(I[e]).length)for(var o in I[e])if(void 0!==I[e][o].settings&&void 0!==I[e][o].settings.blockCookiesBeforeConsent&&"1"===I[e][o].settings.blockCookiesBeforeConsent&&void 0!==I[e][o].cookieNameList&&!1===ce(o))for(var t in I[e][o].cookieNameList)ne(t,null,-1!==t.indexOf("*"))};return{addConsent:ie,allocateScriptBlockerToContentBlocker:function(e,o,t){"scriptBlockerId"!==t&&"jsHandle"!==t||(void 0===A[e]&&(A[e]={scriptBlockerId:[],jsHandle:[]}),-1===A[e][t].indexOf(o)&&A[e][t].push(o))},callWhenLoaded:function(e,o){var t=function(){!0===window.hasOwnProperty(e)?o(o):window.setTimeout(t,1e3)};t()},checkCookieConsent:ce,checkCookieGroupConsent:function(e){var o=!1;return void 0!==P.consents[e]&&(o=!0),o},deleteCookie:ne,getCookie:oe,hideCookieBox:q,init:function(n,i,a,c){return"about:blank"!==window.location.href&&(o=e.extend({ajaxURL:"",language:"en",animation:"1",animationDelay:"",animationIn:"fadeIn",animationOut:"fadeOut",blockContent:"",boxLayout:"box",boxLayoutAdvanced:"0",automaticCookieDomainAndPath:"",cookieDomain:"",cookiePath:"",cookieLifetime:"365",crossDomainCookie:[],cookieBeforeConsent:"",cookiesForBots:"1",cookieVersion:"1",hideCookieBoxOnPages:[],respectDoNotTrack:"",reloadAfterConsent:"",showCookieBox:"1",cookieBoxIntegration:"javascript",ignorePreSelectStatus:"1",cookies:[]},n),t=c,I=i,T=a,H.consentSaved=document.createEvent("Event"),H.consentSaved.initEvent("borlabs-cookie-consent-saved",!0,!0),H.codeUnblocked=document.createEvent("Event"),H.codeUnblocked.initEvent("borlabs-cookie-code-unblocked",!0,!0),H.codeUnblockedAfterConsent=document.createEvent("Event"),H.codeUnblockedAfterConsent.initEvent("borlabs-cookie-code-unblocked-after-consent",!0,!0),oe(),ye(),null===P.uid&&(P.uid=se()),o.cookieBeforeConsent&&"function"==typeof Object&&(void 0===Object.entries&&(Object.entries=function(e){for(var o=Object.keys(e),t=o.length,n=new Array(t);t--;)n[t]=[o[t],e[o[t]]];return n}),0===Object.entries(P.consents).length&&ve()),M(),e(document).on("click","["+y+"]",be),e(document).on("click","["+v+"]",V),e(document).on("click",g,V),e(document).on("change","["+m+"]",X),e(document).on("keydown",(function(o){9===o.keyCode&&e(j).addClass("_brlbs-keyboard")})),e(document).on("mousedown",(function(o){e(j).is(":visible")&&e(j).removeClass("_brlbs-keyboard")})),e("body").on("focus",j+"._brlbs-keyboard input[type='checkbox']",(function(o){var t=e(o.currentTarget).closest("label");t&&e(t).addClass("_brlbs-focused")})),e(j).on("blur","input[type='checkbox']",(function(o){var t=e(o.currentTarget).closest("label");t&&e(t).removeClass("_brlbs-focused")})),e("["+O+"]").length&&ge(),xe(),e("["+S+"]").length&&e("["+S+"]").each((function(){e(this).html(P.uid)})),!0)},initConsentHistoryTable:ge,initSwitchConsentButtonStatus:xe,openCookiePreference:V,removeConsent:ae,showCookieBox:z,unblockContentId:function(o){e("["+C+"='content-blocker']["+w+"='"+o+"']").each((function(){he(e(this).parents(".BorlabsCookie"))}))},unblockScriptBlockerId:function(o){var t="["+L+"='"+o+"']";return e(t).length&&(U.scriptBlockerId[o]=e(t).length,ke(t,o,"scriptBlockerId")),!0},unblockScriptBlockerJSHandle:function(o){var t="["+_+"='"+o+"']";return e(t).length&&(U.jsHandle[o]=e(t).length,ke(t,o,"jsHandle")),!0}}}()}(jQuery);