(()=>{var o;o=jQuery,window.BorlabsCookie=function(){"use strict";var e,t,n="#BorlabsCookieBox input[type='checkbox']",i="#BorlabsCookieBox",a="#BorlabsCookieBoxWrap",s="#BorlabsCookieBox input[type='checkbox'][name='cookieGroup[]']",c="._brlbs-btn-switch-status",r="data-borlabs-cookie-uid",l="data-borlabs-cookie-consent-history",d=".BorlabsCookie",u={},b={},h={},k={},p={scriptBlockerId:{},jsHandle:{}},f=!1,v={consents:{},expires:null,uid:"anonymous",version:null},g="borlabs-cookie",m={consentSaved:null,codeUnblocked:null,codeUnblockedAfterConsent:null},x=null,C=!1,y=null;function B(o,e){if(e){var t=e.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(o){return 0!==o.offsetHeight})),i=n[0],a=n[n.length-1];("Tab"===o.key||9===o.keyCode)&&(o.shiftKey?document.activeElement===i&&(o.preventDefault(),a.focus()):document.activeElement===a&&(o.preventDefault(),i.focus()))}}function w(o){o.addEventListener("keydown",(function(e){return B(e,o)}),!0)}function O(o){o.removeEventListener("keydown",(function(e){return B(e,o)}),!0)}function L(){o(i).attr("aria-modal",!1)}var S,_=function(t){o(i).attr("aria-modal",!0),o("body").addClass("borlabs-position-fix"),w(document.querySelector(".cookie-box")),void 0===t&&(t=!1);var a=o(s),c=null;Object.keys(v.consents).length?(o("[data-borlabs-cookie-group]").each((function(){-1===Object.keys(v.consents).indexOf(this.dataset.borlabsCookieGroup)&&o(this).addClass("borlabs-hide")})),a.length&&"1"===e.boxLayoutAdvanced&&a.each((function(){c=this.value,"string"==typeof this.dataset.borlabsCookieCheckbox&&("object"==typeof v.consents[c]?o(this).prop("checked",!0):o(this).prop("checked",!1))}))):a.length&&a.each((function(){c=this.value,"1"===e.boxLayoutAdvanced&&"1"===e.ignorePreSelectStatus&&!1===f&&"essential"!==c&&(o(this).prop("checked",!1),o(n+"[name='cookies["+c+"][]']").prop("checked",!1).trigger("change"))})),e.blockContent?(o("#BorlabsCookieBox > div").addClass("_brlbs-block-content"),e.animation?(o("#BorlabsCookieBox > div").addClass("_brlbs-bg-animation"),setTimeout((function(){o("#BorlabsCookieBox > div").addClass("_brlbs-bg-dark")}),25)):o("#BorlabsCookieBox > div").addClass("_brlbs-bg-dark")):o("._brlbs-"+e.boxLayout+"-wrap").addClass("_brlbs-position-fixed"),o("#BorlabsCookieBox > div").css("display",""),o("#BorlabsCookieBox > div").addClass("show-cookie-box"),e.animation&&o("#BorlabsCookieBox ._brlbs-"+e.boxLayout).addClass("_brlbs-animated "+e.animationIn+(t&&e.animationDelay?" delay-1s":""));const r=o("#BorlabsCookieBox > div")[0];return r.offsetWidth,r.offsetHeight,o("#CookieBoxSaveButton")[0].focus({preventScroll:!0}),y=o("._brlbs-"+e.boxLayout+"-wrap")[0].offsetWidth+"px",!0},j=function(){return L(),O(document.querySelector(".cookie-box")),e.animation&&(o("#BorlabsCookieBox ._brlbs-"+e.boxLayout).removeClass("delay-1s "),o("#BorlabsCookieBox ._brlbs-"+e.boxLayout).removeClass(e.animationIn),o("#BorlabsCookieBox ._brlbs-"+e.boxLayout).addClass(e.animationOut)),o("#BorlabsCookieBox > div").addClass("borlabs-hide"),e.blockContent?o("#BorlabsCookieBox > div").removeClass("_brlbs-bg-dark"):o("._brlbs-"+e.boxLayout+"-wrap").addClass("_brlbs-position-fixed"),setTimeout((function(){o("._brlbs-"+e.boxLayout+"-wrap").removeAttr("style"),o("._brlbs-"+e.boxLayout+" .cookie-box .container").removeAttr("style"),o("._brlbs-"+e.boxLayout+" .cookie-preference .container").removeAttr("style"),e.animation&&(o("._brlbs-"+e.boxLayout).removeClass("_brlbs-animated"),o("._brlbs-"+e.boxLayout).removeClass("delay-1s"),o("._brlbs-"+e.boxLayout).removeClass(e.animationIn),o("._brlbs-"+e.boxLayout).removeClass(e.animationOut)),o("#BorlabsCookieBox > div").removeClass("show-cookie-box"),e.blockContent&&o("#BorlabsCookieBox > div").removeClass("_brlbs-block-content")}),e.animation?1e3:0),o("body").removeClass("borlabs-position-fix"),!0},D=function(){O(document.querySelector(".cookie-box")),w(document.querySelector(".cookie-preference"));var t=o(s),i=null;t.length&&t.each((function(){i=this.value,Object.keys(v.consents).length?!1===f&&(void 0!==v.consents[i]?(o(this).prop("checked",!0),o(this).trigger("change"),o(n+"[name='cookies["+i+"][]']").each((function(){-1!==v.consents[i].indexOf(this.value)?o(this).prop("checked",!0):o(this).prop("checked",!1),o(this).trigger("change")}))):(o(this).prop("checked",!1),o(this).trigger("change"),o(n+"[name='cookies["+i+"][]']").prop("checked",!1).trigger("change"))):("1"===e.ignorePreSelectStatus&&!1===f&&(o(this).prop("checked",!1),o("#BorlabsCookieBox [data-borlabs-cookie-group='"+this.value+"']").addClass("borlabs-hide")),o(this).trigger("change"),o(n+"[name='cookies["+i+"][]']").each((function(){"1"===e.ignorePreSelectStatus&&!1===f&&o(this).prop("checked",!1),o(this).trigger("change")})))})),o("._brlbs-"+e.boxLayout+" .cookie-box .container").animate({height:0,opacity:0},(function(){o("._brlbs-"+e.boxLayout+" .cookie-box").attr("aria-hidden",!0),o("._brlbs-"+e.boxLayout+" .cookie-preference").attr("aria-hidden",!1),o("#CookiePrefSave")[0].focus({preventScroll:!0}),o("._brlbs-"+e.boxLayout+"-wrap").animate({width:"100vw",maxWidth:"box"===e.boxLayout?"768px":"100%"},"box"===e.boxLayout?400:0,(function(){var t=o("._brlbs-"+e.boxLayout+" .cookie-preference .container")[0].scrollHeight;o("._brlbs-"+e.boxLayout+" .cookie-preference .container").animate({height:"80vh",maxHeight:t,opacity:1})}))}))},I=function(){O(document.querySelector(".cookie-preference")),o("._brlbs-"+e.boxLayout+" .cookie-preference .container").animate({height:0,opacity:0},(function(){o("._brlbs-"+e.boxLayout+" .cookie-box").attr("aria-hidden",!1),o("._brlbs-"+e.boxLayout+" .cookie-preference").attr("aria-hidden",!0),o("._brlbs-"+e.boxLayout+"-wrap").animate({maxWidth:"box"===e.boxLayout?y:"100%"},"box"===e.boxLayout?400:0,(function(){var t=o("._brlbs-"+e.boxLayout+" .cookie-box .container")[0].scrollHeight+"px";o("._brlbs-"+e.boxLayout+" .cookie-box .container").animate({height:t,opacity:1})})),o("#CookieBoxSaveButton")[0].focus()}))},T=function(t){return void 0!==t&&t.preventDefault(),o("._brlbs-"+e.boxLayout+" .cookie-preference .container a["+"data-cookie-back]").css("display","none"),o("._brlbs-"+e.boxLayout+" .cookie-preference .container a["+"data-cookie-back] + span._brlbs-separator").css("display","none"),o("._brlbs-"+e.boxLayout+" .cookie-box .container").css("height",0),o("._brlbs-"+e.boxLayout+" .cookie-box .container").css("opacity",0),o("._brlbs-"+e.boxLayout+"-wrap").css({width:"100vw",maxWidth:"box"===e.boxLayout?"768px":"100%"}),_(!1),setTimeout((function(){D()}),500),!0},E=function(){o("[data-cookie-accordion]").on("click","[data-cookie-accordion-target]",(function(e){e.preventDefault();var t=o(this).closest("[data-cookie-accordion]");t.find("[data-cookie-accordion-parent]:visible").length&&(t.find("[data-cookie-accordion-status='hide']").addClass("borlabs-hide"),t.find("[data-cookie-accordion-status='show']").removeClass("borlabs-hide"),t.find("[data-cookie-accordion-parent]:visible").slideUp()),t.find("[data-cookie-accordion-parent='"+this.dataset.cookieAccordionTarget+"']:hidden").length&&(o(this).children("[data-cookie-accordion-status='show']").addClass("borlabs-hide"),o(this).children("[data-cookie-accordion-status='hide']").removeClass("borlabs-hide"),t.find("[data-cookie-accordion-parent='"+this.dataset.cookieAccordionTarget+"']").slideDown())}))},A=function(){var e=o(s),t=null;e.length&&e.each((function(){t=this.value,o(this).prop("checked",!0),o(this).trigger("change"),o(n+"[name='cookies["+t+"][]']").each((function(){o(this).prop("checked",!0),o(this).trigger("change")}))})),N(),j()},U=function(){o(document).on("click",s,(function(){f=!0,this.checked?(o(n+"[name='cookies["+this.value+"][]']").prop("checked",!0).trigger("change"),o(s+"[value='"+this.value+"']").prop("checked",!0),o("#BorlabsCookieBox [data-borlabs-cookie-group='"+this.value+"']").length&&o("#BorlabsCookieBox [data-borlabs-cookie-group='"+this.value+"']").removeClass("borlabs-hide")):(o(n+"[name='cookies["+this.value+"][]']").prop("checked",!1).trigger("change"),o(s+"[value='"+this.value+"']").prop("checked",!1),o("#BorlabsCookieBox [data-borlabs-cookie-group='"+this.value+"']").length&&o("#BorlabsCookieBox [data-borlabs-cookie-group='"+this.value+"']").addClass("borlabs-hide"))}))},P=function(){o(document).on("click",n+"[name^='cookies']",(function(){f=!0,this.checked&&(o(s+"[value='"+this.dataset.cookieGroup+"']").prop("checked",!0).trigger("change"),o("#BorlabsCookieBox [data-borlabs-cookie-group='"+this.dataset.cookieGroup+"']").length&&o("#BorlabsCookieBox [data-borlabs-cookie-group='"+this.dataset.cookieGroup+"']").removeClass("borlabs-hide"))}))},H=function(){!0===this.checked?(o(this).parent().parent().children(c).children().last().css("display","none"),o(this).parent().parent().children(c).children().first().css("display","inline-block")):(o(this).parent().parent().children(c).children().first().css("display","none"),o(this).parent().parent().children(c).children().last().css("display","inline-block"))},N=function(){var t={essential:e.cookies.essential},i=o(s+":checked"),a=o(n+"[name^='cookies']:checked");if(i.length&&(i.each((function(){this.value.length&&new RegExp(/^[a-z-_]{3,}$/).test(this.value)&&"essential"!==this.value&&(t[this.value]=[])})),a.length&&a.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(v.consents).length)for(var c in v.consents)if(void 0!==t[c])for(var r in v.consents[c])-1===t[c].indexOf(v.consents[c][r])&&K(v.consents[c][r]);else if(void 0!==u[c])for(var l in u[c])K(l);if(Object.keys(v.consents).length)for(var c in v.consents)if(void 0!==t[c])for(var r in v.consents[c])-1===t[c].indexOf(v.consents[c][r])&&Q(c,v.consents[c][r]);else if(void 0!==u[c])for(var l in u[c])Q(c,l);J(t,!1),"1"!==e.reloadAfterConsent&&(V(),F(),Y(),document.dispatchEvent(m.codeUnblockedAfterConsent),document.dispatchEvent(m.codeUnblocked))},R=function(){var o=!1;return"string"==typeof v.version&&(v.version===e.cookieVersion?o=!0:v.consents={}),o},G=function(){if(document.cookie.length)for(var o=document.cookie.split(";"),t=0;twindow.BorlabsCookie.optOutDone('"+t+"')<\/script>"),o("body").append(n),u[e][t].optOutJS=""}},X=function(t){t.preventDefault();var n,i,a=o(this).parents(".BorlabsCookie"),s=!1;if(n=a.find("[data-borlabs-cookie-type='content-blocker']")[0].dataset.borlabsCookieId,void 0!==b[n]&&void 0!==b[n].settings.unblockAll&&"1"===b[n].settings.unblockAll&&(s=!0),(i=a.find("input[type='checkbox'][name='unblockAll']")).length&&(s=!!i[0].checked),s)for(var c in o("[data-borlabs-cookie-type='content-blocker'][data-borlabs-cookie-id='"+n+"']").each((function(){Z(o(this).parents(".BorlabsCookie"))})),e.cookies)-1!==e.cookies[c].indexOf(n)&&z(c,n);else Z(a)},Z=function(o){var t=o.find("[data-borlabs-cookie-type='content-blocker']"),n="";if(t.length){var i;n=t[0].dataset.borlabsCookieId,void 0!==b[n].settings.executeGlobalCodeBeforeUnblocking&&"1"===b[n].settings.executeGlobalCodeBeforeUnblocking&&void 0===h[n]&&(b[n].global(b[n]),h[n]=!0),i="javascript"===e.cookieBoxIntegration?to(t[0].firstChild.innerHTML):to(t[0].innerHTML);var a=setInterval((function(){var e=!0;void 0!==k[n]&&(void 0!==k[n].scriptBlockerId&&Object.entries(k[n].scriptBlockerId).forEach((o=>{var t=o[0];!0!==eo(k[n].scriptBlockerId[t],"scriptBlockerId")&&(e=!1)})),void 0!==k[n].jsHandle&&Object.entries(k[n].jsHandle).forEach((o=>{var t=o[0];!0!==eo(k[n].jsHandle[t],"jsHandle")&&(e=!1)}))),!0===e&&(clearInterval(a),o.prev().length?o.prev().after(i):o.parent().prepend(i),void 0!==b[n].settings.executeGlobalCodeBeforeUnblocking&&"0"!==b[n].settings.executeGlobalCodeBeforeUnblocking||void 0===h[n]&&(b[n].global(b[n]),h[n]=!0),b[n].init(o.prev()[0],b[n]),o[0].parentNode.removeChild(o[0]))}),50)}},oo=function(e,t,n){var i=o(e)[0];if(void 0!==i){var a=document.createElement("script");for(var s of i.attributes)-1===s.name.indexOf("borlabs")&&-1===s.name.indexOf("type")&&a.setAttribute(s.name,s.value);"string"==typeof i.dataset.borlabsScriptBlockerSrc?(a.src=i.dataset.borlabsScriptBlockerSrc,a.onload=function(){p[n][t]--,oo(e,t,n)},i.parentNode.insertBefore(a,i),i.parentNode.removeChild(i)):(a.type="text/javascript",a.innerHTML=i.innerHTML,i.parentNode.insertBefore(a,i),i.parentNode.removeChild(i),p[n][t]--,oo(e,t,n))}return!0},eo=function(o,e){var t=!1;return void 0!==p[e][o]&&0===p[e][o]&&(t=!0),t},to=function(o){return decodeURIComponent(Array.prototype.map.call(window.atob(o),(function(o){return"%"+("00"+o.charCodeAt(0).toString(16)).slice(-2)})).join(""))},no=function(t){!1===/bot|googlebot|crawler|spider|robot|crawling|lighthouse/i.test(navigator.userAgent.toLowerCase())&&o.ajax(e.ajaxURL,{type:"POST",data:{action:"borlabs_cookie_handler",type:"log",language:e.language,cookieData:v,essentialStatistic:t}}).done((function(){e.reloadAfterConsent&&Object.keys(v.consents).length>0&&location.reload(!0),C&&bo()}))},io=function(){o.ajax(e.ajaxURL,{type:"POST",data:{action:"borlabs_cookie_handler",type:"consent_history",language:e.language,uid:v.uid}}).done((function(e){(e=o.parseJSON(e)).length&&o.each(e,(function(e,t){o("["+l+"] table").append(""+t.stamp+""+t.version+""+t.consent+"")}))}))},ao=function(t){e.crossDomainCookie.length&&Object.entries(e.crossDomainCookie).forEach((n=>{var i=e.crossDomainCookie[n[0]];o("body").append('')}))},so=function(){o(".BorlabsCookie [name^='borlabsCookie']").each((function(){q(this.value)?this.checked=!0:this.checked=!1,o(this).trigger("change")})),o(document).on("change",".BorlabsCookie [name^='borlabsCookie']",(function(){this.checked?z(this.dataset.cookieGroup,this.value):W(this.dataset.cookieGroup,this.value)}))},co=window.scrollY||document.documentElement.scrollTop,ro=null,lo=null,uo=document.getElementById("BorlabsCookieBoxWidget");uo&&window.addEventListener("scroll",(function(){(S=window.scrollY||document.documentElement.scrollTop)>co?ro="up":S