// source --> https://messpunkte.de/wp-content/plugins/borlabs-cookie/assets/javascript/borlabs-cookie-prioritize.min.js?ver=3.4.4 
var f=Object.defineProperty;var g=(r,c,a)=>c in r?f(r,c,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[c]=a;var l=(r,c,a)=>g(r,typeof c!="symbol"?c+"":c,a);(function(){const r="borlabs-cookie";class c{constructor(){l(this,"_pluginCookie",{consents:{essential:[]},domainPath:"",expires:"",uid:"",v3:!0,version:0});l(this,"_config",null);l(this,"fragments",document.createDocumentFragment())}init(t){let e=!1;this._config=t;const n=document.createEvent("Event");n.initEvent("borlabs-cookie-prioritized-code-unblocked",!0,!0);const i=this.getPluginCookie();i.version===this._config.settings.cookieVersion&&(e=!0),this._config.settings.cookiesForBots&&/bot|googlebot|crawler|spider|robot|crawling|lighthouse/i.test(navigator.userAgent.toLowerCase())===!0&&(e=!0),e&&(Object.entries(i.consents).forEach(([o,d])=>{for(const s of d)this._config.serviceGroups[o]===void 0||this._config.serviceGroups[o]!==void 0&&Object.values(this._config.serviceGroups[o].serviceIds).indexOf(s)===-1||this._config.services[s].settings!==void 0&&this._config.services[s].settings.prioritize!==void 0&&this._config.services[s].settings.prioritize==="1"&&(this.createNodes(this.b64DecodeToUnicode(this._config.services[s].optInCode)),this._config.services[s].optInCode="")}),document.getElementsByTagName("head")[0].appendChild(this.fragments),document.dispatchEvent(n))}b64DecodeToUnicode(t){return decodeURIComponent(Array.prototype.map.call(window.atob(t),function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}createNodes(t){const e=t.split("<script");e.forEach((n,i)=>{if(n.indexOf("script>")!==-1){e[i]="<script"+n;const o=document.createElement("div"),d=document.createRange();d.selectNodeContents(o);const s=d.createContextualFragment(e[i]);o.appendChild(s),this.fragments.appendChild(o.firstElementChild)}})}findCookies(t){const e=[];let n=[];return document.cookie.length&&(n=document.cookie.split(";"),n.forEach(function(i){try{i=decodeURIComponent(i);const o=i.split("="),d=o[0]!==void 0?o[0].trim():"",s=o[1]!==void 0?o[1].trim():"";t===d&&e.push({name:d,value:s})}catch(o){console.log(o)}})),e}getPluginCookie(){const t=this.findCookies(r);for(let e=0,n=t.length;e<n;++e){const i=t[e];try{const o=JSON.parse(i.value);o.domainPath!==void 0&&o.v3!==void 0&&o.domainPath===this._config.settings.cookieDomain+this._config.settings.cookiePath&&(typeof o.version=="string"&&(o.version=parseInt(o.version)),this._pluginCookie={consents:o.consents,domainPath:o.domainPath,expires:o.expires,uid:o.uid,v3:o.v3,version:o.version})}catch(o){console.log(o)}}return this._pluginCookie}}window.BorlabsCookie=window.BorlabsCookie||{},window.BorlabsCookie.Unblock=window.BorlabsCookie.Unblock||{},window.BorlabsCookie.Unblock.unblockScriptBlockerId=function(u){console.log(`%cThe method 'window.BorlabsCookie.Unblock.unblockScriptBlockerId('${u}')' cannot be called when the service has 'Prioritize' enabled.`,"color: #f00")};const a=new c;window.BorlabsCookiePrioritizeHandle=a,a.init(window.borlabsCookieConfig)})();