1 2!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("mitt")):"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ConsentManager=t(require("mitt")):e.ConsentManager=t(e.mitt)}(window,(e=>(()=>{"use strict";var t={957:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=o(i(11));class s extends n.default{isEnabled(){return!0}setEnabled(e){this.updateCheckboxState(),this.group.consentManagerApi.emitter.emit("optionEnabled",this)}decode(){}isChecked(){return!0}setChecked(e){this.checkbox.checked=!0}}s.type="alwaysEnabled",t.default=s},281:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=o(i(218)),s=i(221),a=o(i(596)),r=o(i(396)),d=o(i(651)),h=o(i(630)),c=o(i(191));t.default=class{constructor(){if(this.emitter=(0,n.default)(),this.groups=new Array,this.descriptionContainer=null,this.configurationContainer=null,this.editContainer=null,"undefined"==typeof ConsentManagerConfiguration||!ConsentManagerConfiguration)throw new s.ConfigurationMissingError;r.default.log("Starting to construct the consent manager API.","info",r.default.verbosity.highest);const e=document.querySelector('[data-extension="consent_manager"][data-action="popup"]');if(null===e)throw r.default.log("Popup container missing.","error"),new s.PopupContainerMissingError;if(this.popupContainer=e,this.descriptionContainer=this.popupContainer.querySelector("[data-consent-manager-description]"),this.configurationContainer=this.popupContainer.querySelector("[data-consent-manager-configuration]"),this.editContainer=document.querySelector('[data-extension="consent_manager"][data-action="edit"]'),this.settings=new d.default,this.pageUid=ConsentManagerConfiguration.pageUid,ConsentManagerConfiguration.groups.forEach((e=>{this.groups.push(new c.default(e,this))})),this.groupCheckboxes=this.popupContainer.querySelectorAll("[data-consent-manager-group]"),this.optionCheckboxes=this.popupContainer.querySelectorAll("[data-consent-manager-option]"),0===this.optionsCount()||0===this.groupCheckboxes.length||0===this.optionCheckboxes.length)throw r.default.log("Consent options missing.","warning"),new s.OptionsMissingError;r.default.log("Finished constructing consent manager.","info",r.default.verbosity.highest)}initialize(){r.default.log("Starting to initialize components.","info",r.default.verbosity.highest);let e=!1;!e&&this.settings.isResetRequiredDueToChanges()&&(r.default.log("Reset required to to change of important settings."),this.reset(),e=!0),e||this.settings.popupInteraction||(r.default.log("Popup was not interacted with before. Reset consent manager."),this.reset(),e=!0),this.decodeAll(),this.initializePopupContainer(),this.editContainer&&this.initializeEditContainer(),this.initializeEnableButtons(),this.isCurrentPageExcludedFromPopup()?r.default.log("Current page is excluded from showing the popup."):this.settings.popupInteraction?this.settings.changed.optionsHash.hasChanged&&(r.default.log("Options hash has changed. Showing popup."),this.showPopup()):(r.default.log("Showing popup."),this.showPopup()),r.default.log("Finished initializing components.","info",r.default.verbosity.highest),this.emitter.emit("ready",this)}reset(){this.deleteAllCookies(),this.settings=new d.default,this.emitter.emit("reset",this)}optionsCount(){let e=0;for(const t of this.groups)e+=t.optionsCount;return e}setOptionsEnabled(e){for(const t of this.groups)t.setOptionsEnabled(e)}updateCheckboxStates(){for(const e of this.groups)e.updateOptionCheckboxStates(),e.updateCheckboxState()}getOption(e){for(const t of this.groups)for(const i in t.options){const o=t.options[i];if(e===i)return o}return null}deleteAllCookies(){a.default.delete(d.default.cookieName,this.settings.cookieDomain),this.settings.changed.cookieDomain.hasChanged&&this.settings.changed.cookieDomain.old&&a.default.delete(d.default.cookieName,this.settings.changed.cookieDomain.old);for(const e of this.groups)for(const t in e.options)a.default.delete(t,this.settings.cookieDomain),this.settings.changed.cookieDomain.hasChanged&&this.settings.changed.cookieDomain.old&&a.default.delete(t,this.settings.changed.cookieDomain.old)}initializePopupContainer(){r.default.log("Starting to initialize popup container.","info",r.default.verbosity.highest);const e=this.popupContainer.querySelectorAll('[data-consent-manager-button="acceptAll"]'),t=this.popupContainer.querySelectorAll('[data-consent-manager-button="rejectAll"]'),i=this.popupContainer.querySelectorAll('[data-consent-manager-button="save"]'),o=this.popupContainer.querySelectorAll('[data-consent-manager-button="configure"]'),n=this.popupContainer.querySelectorAll('[data-consent-manager-button="close"]'),s=e=>{if("acceptAll"!==e&&"rejectAll"!==e&&"save"!==e)return;const t=document.querySelector(`div[data-consent-manager-script="${e}"]`);if(!t)return;const i=document.querySelector(`script[data-consent-manager-script="${e}"]`);i&&(r.default.log(`Script for "${e}" already present, deleting before re-injecting script.`,"info",r.default.verbosity.medium),i.remove());const o=document.createElement("script");o.dataset.consentManagerScript=e,o.innerHTML=t.innerHTML,document.body.insertAdjacentElement("beforeend",o),r.default.log(`Injected script for "${e}".`)};e.forEach((e=>{e.addEventListener("click",(()=>{this.setOptionsEnabled(!0),this.settings.popupInteraction=!0,this.settings.save(),this.hidePopup(),s("acceptAll"),this.emitter.emit("acceptAllButtonClicked",e),this.settings.reloadAfterSaving&&window.location.reload()}))})),t.forEach((e=>{e.addEventListener("click",(()=>{this.setOptionsEnabled(!1),this.settings.popupInteraction=!0,this.settings.save(),this.hidePopup(),s("rejectAll"),this.emitter.emit("rejectAllButtonClicked",e),this.settings.reloadAfterSaving&&window.location.reload()}))}
2)),i.forEach((e=>{e.addEventListener("click",(()=>{this.groups.forEach((e=>{e.enableCheckedOptions()})),this.settings.popupInteraction=!0,this.settings.save(),this.hidePopup(),s("save"),this.emitter.emit("saveButtonClicked",e),this.settings.reloadAfterSaving&&window.location.reload()}))})),o.forEach((e=>{e.addEventListener("click",(()=>{this.showConfiguration(),this.emitter.emit("configureButtonClicked",e)}))})),n.forEach((e=>{e.addEventListener("click",(()=>{this.hidePopup(),this.emitter.emit("closeButtonClicked",e)}))})),r.default.log("Finished initializing popup container.","info",r.default.verbosity.highest)}showConfiguration(){this.descriptionContainer&&this.configurationContainer&&(this.descriptionContainer.classList.remove("show"),this.descriptionContainer.classList.add("hide"),this.configurationContainer.classList.remove("hide"),this.configurationContainer.classList.add("show"),this.emitter.emit("configurationShown",this))}showDescription(){this.descriptionContainer&&this.configurationContainer&&(this.descriptionContainer.classList.remove("hide"),this.descriptionContainer.classList.add("show"),this.configurationContainer.classList.remove("show"),this.configurationContainer.classList.add("hide"),this.emitter.emit("descriptionShown",this))}initializeEditContainer(){r.default.log("Starting to initialize edit container.","info",r.default.verbosity.highest),document.querySelectorAll('[data-consent-manager-button="edit"]').forEach((e=>{e.addEventListener("click",(()=>{this.showPopup(),this.emitter.emit("editButtonClicked",e)}))})),r.default.log("Finished initializing edit container.","info",r.default.verbosity.highest)}initializeEnableButtons(){r.default.log("Starting to initialize enable buttons.","info",r.default.verbosity.highest),document.querySelectorAll("[data-consent-manager-enable]").forEach((e=>{const t=e.dataset.consentManagerEnable;if(!t)return r.default.log("Enable button is missing the identifier data attribute.","error"),void r.default.log(e,"error");const i=this.getOption(t);if(!i)return r.default.log(`No consent option exists for a identifier "${t}".`,"error"),void r.default.log(e,"error");e.addEventListener("click",(()=>{i.setEnabled(!0),this.emitter.emit("enableButtonClicked",{button:e,option:i})}))})),r.default.log("Finished initializing enable buttons.","info",r.default.verbosity.highest)}showPopup(){this.emitter.emit("showPopup",this),this.settings.update(),this.updateCheckboxStates(),this.showDescription(),this.popupContainer.classList.add("show")}hidePopup(){this.emitter.emit("hidePopup",this),this.popupContainer.classList.remove("show")}decodeAll(){this.emitter.emit("decodeAll",this),this.groups.forEach((e=>{e.decodeOptions(),this.emitter.emit("decodedAll",this)}))}isCurrentPageExcludedFromPopup(){return-1!==this.settings.pagesExcludedFromPopup.indexOf(this.pageUid)}encode(e,t){this.emitter.emit("encode",e);const i=new FormData;return i.append("string",e),""===t&&(t=h.default.getUrl()),fetch(`${t}/?consent-manager-api%5Bendpoint%5D%5B%5D=encode`,{method:"POST",body:i})}decode(e,t){this.emitter.emit("decode",e);const i=new FormData;return i.append("string",e),""===t&&(t=h.default.getUrl()),fetch(`${t}/?consent-manager-api%5Bendpoint%5D%5B%5D=decode`,{method:"POST",body:i})}}},221:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PopupContainerMissingError=t.OptionsMissingError=t.ConfigurationMissingError=void 0;class i extends Error{}t.ConfigurationMissingError=i;class o extends Error{}t.OptionsMissingError=o;class n extends Error{}t.PopupContainerMissingError=n},191:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=o(i(11)),s=o(i(396)),a=o(i(957));t.default=class{constructor(e,t){this.options={},this.uid=e.uid,s.default.log(`Starting to construct group #${this.uid}.`,"info",s.default.verbosity.highest),this.consentManagerApi=t,this.title=e.title,this.description=e.description,this.onlyHasAlwaysEnabledOptions=e.onlyHasAlwaysEnabledOptions;for(const t in e.options){const i=e.options[t];i.type===a.default.type?this.options[t]=new a.default(i,this):this.options[t]=new n.default(i,this)}this.optionsCount=Object.keys(this.options).length;const i=document.querySelector(`[data-consent-manager-group="${this.uid}"]`);if(null===i)throw new Error(`Checkbox missing for group ${this.uid}.`);this.checkbox=i,this.updateOptionCheckboxStates(),this.updateCheckboxState(),this.checkbox.addEventListener("change",(()=>{this.setOptionsChecked(this.isChecked()),this.consentManagerApi.emitter.emit("groupCheckboxChanged",this)})),this.consentManagerApi.emitter.on("optionCheckboxChanged",(()=>{this.updateCheckboxState()})),s.default.log(`Finished constructing group #${this.uid}.`,"info",s.default.verbosity.highest)}countEnabledOptions(){let e=0;for(const t in this.options)this.options[t].isEnabled()&&e++;return e}setOptionsEnabled(e){if(!this.onlyHasAlwaysEnabledOptions)for(const t in this.options)this.options[t].setEnabled(e)}enableCheckedOptions(){if(!this.onlyHasAlwaysEnabledOptions)for(const e in this.options){const t=this.options[e];t.checkbox.checked?t.setEnabled(!0):t.setEnabled(!1)}}countCheckedOptions(){let e=0;for(const t in this.options)this.options[t].isChecked()&&e++;return e}updateCheckboxState(){if(this.onlyHasAlwaysEnabledOptions)return s.default.log(`All groups of group #${this.uid}
2 are always enabled options.`,"info",s.default.verbosity.high),void this.setChecked(!0);const e=this.optionsCount===this.countCheckedOptions();e?s.default.log(`All options of group #${this.uid} are enabled.`,"info",s.default.verbosity.high):s.default.log(`Not all options of group #${this.uid} are enabled.`,"info",s.default.verbosity.high),this.setChecked(e)}updateOptionCheckboxStates(){if(!this.onlyHasAlwaysEnabledOptions)for(const e in this.options)this.options[e].updateCheckboxState()}isChecked(){return this.checkbox.checked}setChecked(e){e?s.default.log(`Marking group #${this.uid} as "checked".`,"info",s.default.verbosity.low):s.default.log(`Marking group #${this.uid} as "unchecked".`,"info",s.default.verbosity.low),this.checkbox.checked=e}setOptionsChecked(e){for(const t in this.options)this.options[t].setChecked(e)}decodeOptions(){for(const e in this.options)this.options[e].decode()}}},684:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=i(221),s=o(i(281));let a=null;try{a=new s.default,document.addEventListener("DOMContentLoaded",(()=>{void 0!==a&&a&&a.initialize()}))}catch(e){if(!(e instanceof n.ConfigurationMissingError||e instanceof n.OptionsMissingError||e instanceof n.PopupContainerMissingError))throw e}t.default=a},11:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=o(i(596)),s=o(i(396));class a{constructor(e,t){this.isDecoded=!1,this.identifier=e.identifier,s.default.log(`Starting to construct option #${this.identifier}.`,"info",s.default.verbosity.highest),this.uid=e.uid,this.group=t,this.type=e.type,this.title=e.title,this.description=e.description,this.isEnabledOnServerSide=e.isEnabledOnServerSide,this.injectScriptHeadStart=e.injectScriptHeadStart,this.injectScriptHeadEnd=e.injectScriptHeadEnd,this.injectScriptBodyStart=e.injectScriptBodyStart,this.injectScriptBodyEnd=e.injectScriptBodyEnd,this.injectHtmlHeadStart=e.injectHtmlHeadStart,this.injectHtmlHeadEnd=e.injectHtmlHeadEnd,this.injectHtmlBodyStart=e.injectHtmlBodyStart,this.injectHtmlBodyEnd=e.injectHtmlBodyEnd;const i=document.querySelector(`[data-consent-manager-option="${this.uid}"]`);if(null===i)throw new Error(`Checkbox missing for option ${this.uid}.`);this.checkbox=i,this.updateCheckboxState(),this.checkbox.addEventListener("change",(()=>{this.group.consentManagerApi.emitter.emit("optionCheckboxChanged",this)})),s.default.log(`Finished constructing option #${this.identifier}.`,"info",s.default.verbosity.highest)}isEnabled(){let e;return e=this.group.consentManagerApi.settings.cookieForEachOption?n.default.exists(this.identifier):-1!==this.group.consentManagerApi.settings.enabledOptions.indexOf(this.identifier),e?s.default.log(`Option #${this.identifier} is enabled.`,"info",s.default.verbosity.low):s.default.log(`Option #${this.identifier} is not enabled.`,"info",s.default.verbosity.low),e}setEnabled(e){if(e!=this.isEnabled()){if(this.group.consentManagerApi.settings.cookieForEachOption)e?n.default.set(this.identifier,"1",this.group.consentManagerApi.settings.cookieDomain):n.default.delete(this.identifier,this.group.consentManagerApi.settings.cookieDomain);else{const t=this.group.consentManagerApi.settings.enabledOptions;if(e)t.push(this.identifier);else{const e=t.indexOf(this.identifier);-1!==e&&t.splice(e,1)}t.sort(),this.group.consentManagerApi.settings.enabledOptions=t,this.group.consentManagerApi.settings.save()}e?(this.decode(),this.group.consentManagerApi.emitter.emit("optionEnabled",this),s.default.log(`Enabled Option #${this.identifier}.`)):(this.group.consentManagerApi.emitter.emit("optionDisabled",this),s.default.log(`Disabled Option #${this.identifier}.`)),this.updateCheckboxState()}}updateCheckboxState(){s.default.log(`Updating checkbox state of option #${this.identifier} to fit the current enabled state.`,"info",s.default.verbosity.medium),this.isEnabled()?this.setChecked(!0):this.setChecked(!1)}isChecked(){return this.checkbox.checked}setChecked(e){this.checkbox.checked=e,e?(this.group.consentManagerApi.emitter.emit("optionChecked",this),s.default.log(`Marked option #${this.identifier} as "checked".`,"info",s.default.verbosity.medium)):(this.group.consentManagerApi.emitter.emit("optionUnchecked",this),s.default.log(`Marked option #${this.identifier} as "unchecked".`,"info",s.default.verbosity.medium))}decode(){this.isEnabled()?this.isDecoded?s.default.log(`Option #${this.identifier} is already decoded, so nothing to decode again.`,"info",s.default.verbosity.low):(document.querySelectorAll(`[data-consent-manager-placeholder="${this.identifier}"]`).forEach((e=>{s.default.log(`Starting to decode placeholder for option #${this.identifier}.`,"info",s.default.verbosity.high),s.default.log(e,"info",s.default.verbosity.low),this.decodePlaceholder(e),s.default.log(`Finished decoding placeholder for option #${this.identifier}.`,"info",s.default.verbosity.high)})),document.querySelectorAll(`[data-consent-manager-encoded="${this.identifier}"]`).forEach((e=>{s.default.log(`Starting to decode standalone container for option #${this.identifier}.`,"info",s.default.verbosity.high),s.default.log(e,"info",s.default.verbosity.low),this.decodeStandalone(e),s.default.log(`Finished decoding standalone container for option #${this.identifier}.`,"info",s.default.verbosity.high)})),this.isDecoded=!0):s.default.log(`Option #${this.identifier} is not enabled, so nothing to decode.`,"info",s.default.verbosity.low)}decodePlaceholder(e){if(!this.isEnabled())return;const t=e.querySelector(`[data-consent-manager-encoded="${this.identifier}"]`),i=e.querySelector("[data-consent-manager-preview]");t?(delete t.dataset.consentManagerEncoded,this.group.consentManagerApi.emitter.emit("decodePlaceholder",e),this.group.consentManagerApi.emitter.emit("decode",e),this.group.consentManagerApi.decode(t.innerHTML,this.group.consentManagerApi.settings.baseUrl).then((e=>e.text())).then((o=>{i&&i.remove(),e.insertAdjacentElement("afterend",t),e.remove(),this.injectString(t,o),this.group.consentManagerApi.emitter.emit("decodedPlaceholder",this),this.group.consentManagerApi.emitter.emit("decoded",this)})).catch((e=>{throw new Error(`Decoding container of placeholder for option #${this.identifier} failed: ${e}`)}))):s.default.log(`No encode container found placeholder of option #${this.identifier}, nothing to decode.`)}decodeStandalone(e){this.isEnabled()&&(this.group.consentManagerApi.emitter.emit("decodeStandalone",e),this.group.consentManagerApi.emitter.emit("decode",e),this.group.consentManagerApi.decode(e.innerHTML,this.group.consentManagerApi.settings.baseUrl).then((e=>e.text())).then((t=>{this.injectString(e,t),this.group.consentManagerApi.emitter.emit("decodedStandalone",this),this.group.consentManagerApi.emitter.emit("decoded",this)})).catch((e=>{throw new Error(`Decoding standalone container for option #${this.identifier} failed: ${e}`)})))}injectString(e,t){if(e.dataset.consentManagerInject&&-1!==["html","script"].indexOf(e.dataset.consentManagerInject)&&e.dataset.consentManagerInjectPosition&&-1!==["headStart","headEnd","bodyStart","bodyEnd","inline"].indexOf(e.dataset.consentManagerInjectPosition))if("script"===e.dataset.consentManagerInject){s.default.log(`Injecting script for option #${this.identifier}.`);const i=document.createElement("script");i.innerHTML=t,this.moveElementToPosition(i,e.dataset.consentManagerInjectPosition)}else{s.default.log(`Injecting HTML for option #${this.identifier}.`),this.moveElementToPosition(e,e.dataset.consentManagerInjectPosition);const i=document.createElement("div");i.innerHTML=t,i.querySelectorAll("script").forEach((e=>{e.dataset.consentManagerEvaluateScript=this.identifier})),e.outerHTML=i.innerHTML,document.querySelectorAll(`[data-consent-manager-evaluate-script="${this.identifier}"]`).forEach((e=>{var t;const i=document.createElement("script");i.innerHTML=e.innerHTML;for(const o of e.getAttributeNames())i.setAttribute(o,null!==(t=e.getAttribute(o))&&void 0!==t?t:"");delete i.dataset.consentManagerEvaluateScript,e.replaceWith(i)}))}else{const i=document.createElement("div");i.innerHTML=t,e.replaceWith(...i.children)}e.remove()}moveElementToPosition(e,t){switch(t){case"headStart":document.head.insertAdjacentElement("afterbegin",e);break;case"headEnd":document.head.insertAdjacentElement("beforeend",e);break;case"bodyStart":document.body.insertAdjacentElement("afterbegin",e);break;case"bodyEnd":document.body.insertAdjacentElement("beforeend",e)}}}a.type="default",t.default=a},651:function(e,t,i){var o=this&&this.__importDefault||function(e){return e&&e.__esMo
2dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=o(i(679)),s=o(i(396)),a=o(i(218)),r=o(i(596));class d extends n.default{constructor(){super(),this.emitter=(0,a.default)(),this._version=1,this._popupInteraction=!1,this._enabledOptions=[],this._cookieDomain="",this._baseUrl="",this._reloadAfterSaving=!1,this._cookieForEachOption=!1,this._pagesExcludedFromPopup=[],this._optionsHash="",this.changed={version:{hasChanged:!1,old:null,new:null},popupInteraction:{hasChanged:!1,old:null,new:null},cookieDomain:{hasChanged:!1,old:null,new:null},baseUrl:{hasChanged:!1,old:null,new:null},reloadAfterSaving:{hasChanged:!1,old:null,new:null},cookieForEachOption:{hasChanged:!1,old:null,new:null},pagesExcludedFromPopup:{hasChanged:!1,old:null,new:null},optionsHash:{hasChanged:!1,old:null,new:null}},s.default.log("Starting to construct settings.","info",s.default.verbosity.highest),this.update(),this.save(),s.default.log("Finished constructing settings.","info",s.default.verbosity.highest)}serialize(){return{version:this._version,popupInteraction:this._popupInteraction,enabledOptions:this._enabledOptions,cookieDomain:this._cookieDomain,baseUrl:this._baseUrl,reloadAfterSaving:this._reloadAfterSaving,cookieForEachOption:this._cookieForEachOption,pagesExcludedFromPopup:this._pagesExcludedFromPopup,optionsHash:this._optionsHash}}get version(){return this._version}set version(e){this._version=e,this.emitter.emit("change",{version:e})}get popupInteraction(){return this._popupInteraction}set popupInteraction(e){this._popupInteraction=e,this.emitter.emit("change",{popupInteraction:e})}get enabledOptions(){return this._enabledOptions}set enabledOptions(e){this._enabledOptions=e,this.emitter.emit("change",{enabledOptions:e})}get cookieDomain(){return this._cookieDomain}set cookieDomain(e){this._cookieDomain=e,this.emitter.emit("change",{cookieDomain:e})}get baseUrl(){return this._baseUrl}set baseUrl(e){this._baseUrl=e,this.emitter.emit("change",{baseUrl:e})}get reloadAfterSaving(){return this._reloadAfterSaving}set reloadAfterSaving(e){this._reloadAfterSaving=e,this.emitter.emit("change",{reloadAfterSaving:e})}get cookieForEachOption(){return this._cookieForEachOption}set cookieForEachOption(e){this._cookieForEachOption=e,this.emitter.emit("change",{cookieForEachOption:e})}get pagesExcludedFromPopup(){return this._pagesExcludedFromPopup}set pagesExcludedFromPopup(e){this._pagesExcludedFromPopup=e,this.emitter.emit("change",{pagesExcludedFromPopup:e})}get optionsHash(){return this._optionsHash}set optionsHash(e){this._optionsHash=e,this.emitter.emit("change",{optionsHash:e})}save(){s.default.log("Saving settings.","info",s.default.verbosity.medium),r.default.set(d.cookieName,encodeURIComponent(this.serializeToString()),this.cookieDomain)}load(){const e=r.default.get(d.cookieName);if(null===e)return null;let t=null;try{t=JSON.parse(decodeURIComponent(e))}catch(e){return null}return t}update(){const e=ConsentManagerConfiguration.settings;this._cookieDomain=e.cookieDomain,this._baseUrl=e.baseUrl,this._reloadAfterSaving=e.reloadAfterSaving,this._cookieForEachOption=e.cookieForEachOption,this._pagesExcludedFromPopup=e.pagesExcludedFromPopup,this._optionsHash=e.optionsHash;const t=this.load();t&&(this._popupInteraction=t.popupInteraction,this._enabledOptions=t.enabledOptions,this._version!==t.version&&(this.changed.version={hasChanged:!0,old:this._version,new:t.version},this._version=t.version,s.default.log(`Version has changed. Was "${this.changed.version.old}", now is "${this.changed.version.new}".`)),e.cookieDomain!==t.cookieDomain&&(this.changed.cookieDomain={hasChanged:!0,old:t.cookieDomain,new:e.cookieDomain},this._cookieDomain=e.cookieDomain,s.default.log(`Cookie domain has changed. Was "${this.changed.cookieDomain.old}", now is "${this.changed.cookieDomain.new}".`)),e.baseUrl!==t.baseUrl&&(this.changed.baseUrl={hasChanged:!0,old:t.baseUrl,new:e.baseUrl},this._baseUrl=e.baseUrl,s.default.log(`Base URL has changed. Was "${this.changed.baseUrl.old}", now is "${this.changed.baseUrl.new}".`)),e.reloadAfterSaving!==t.reloadAfterSaving&&(this.changed.reloadAfterSaving={hasChanged:!0,old:t.reloadAfterSaving,new:e.reloadAfterSaving},this._reloadAfterSaving=e.reloadAfterSaving,s.default.log(`Reload after saving has changed. Was "${this.changed.reloadAfterSaving.old}", now is "${this.changed.reloadAfterSaving.new}".`)),e.cookieForEachOption!==t.cookieForEachOption&&(this.changed.cookieForEachOption={hasChanged:!0,old:t.cookieForEachOption,new:e.cookieForEachOption},this._cookieForEachOption=e.cookieForEachOption,s.default.log(`Cookie for each option has changed. Was "${this.changed.cookieForEachOption.old}", now is "${this.changed.cookieForEachOption.new}".`)),this.didPagesExcludedFromPopupChange(e,t)&&(this.changed.pagesExcludedFromPopup={hasChanged:!0,old:t.pagesExcludedFromPopup,new:e.pagesExcludedFromPopup},this._pagesExcludedFromPopup=e.pagesExcludedFromPopup,s.default.log(`Pages exclude from popup has changed. Was "${this.changed.pagesExcludedFromPopup.old}", now is "${this.changed.pagesExcludedFromPopup.new}".`)),e.optionsHash!==t.optionsHash&&(this.changed.optionsHash={hasChanged:!0,old:t.optionsHash,new:e.optionsHash},this._optionsHash=e.optionsHash,s.default.log(`Options hash has changed. Was "${this.changed.optionsHash.old}", now is "${this.changed.optionsHash.new}".`)))}didPagesExcludedFromPopupChange(e,t){if(e.pagesExcludedFromPopup.length!==t.pagesExcludedFromPopup.length)return!0;e.pagesExcludedFromPopup.sort(),t.pagesExcludedFromPopup.sort();for(const i of e.pagesExcludedFromPopup)if(!t.pagesExcludedFromPopup.includes(i))return!0;return!1}isResetRequiredDueToChanges(){return this.changed.version.hasChanged||this.changed.cookieDomain.hasChanged||this.changed.reloadAfterSaving.hasChanged||this.changed.cookieForEachOption.hasChanged||this.changed.optionsHash.hasChanged}}d.cookieName="consent-manager",t.default=d},679:(e,t)=>
2{Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{serializeToString(){return JSON.stringify(this.serialize())}}},596:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});class i{static set(e,t,i="",o=null,n="/",s="lax"){let a=e+"="+t+";";return null===o&&(a+="expires="+(o=new Date((new Date).setFullYear((new Date).getFullYear()+1))).toUTCString()+";"),i&&(a+=`domain=${i};`),a+=`path=${n};SameSite=${s}`,document.cookie=a,a}static get(e){if(!i.exists(e))return null;const t=document.cookie.split(";");for(const i of t){const t=i.split("=");let o=t.shift();if(o){o=o.trim();const i=t.join("=").trim();if(o===e)return i}}return null}static delete(e,t="",o="/",n="lax"){if(!i.exists(e))return!1;let s=e+`=;expires=Thu, 01 Jan 1970 00:00:01 GMT;path=${o};SameSite=${n}`;return t&&(s+=`;domain=${t}`),document.cookie=s,!0}static exists(e){return!!e&&document.cookie.indexOf(e+"=")>=0}}t.default=i},630:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{static getUrl(){let e=window.location.href;e=e.split("?")[0],e=e.split("#")[0];const t=e.length;return"/"===e.charAt(t-1)&&(e=e.substring(0,t-1)),e}}},396:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});class i{static log(e,t="info",i=0){if(!ConsentManagerConfiguration.debug)return;let o=ConsentManagerConfiguration.debugVerbosity;(isNaN(o)||o<0)&&(o=0),o>=i&&("info"===t?console.log("[ConsentManager]",e):"warning"===t?console.warn("[ConsentManager]",e):"error"===t&&console.error("[ConsentManager]",e))}static trace(e=""){ConsentManagerConfiguration.debug&&(e&&i.log(e),console.trace())}}i.verbosity={lowest:0,low:10,medium:20,high:30,highest:40},t.default=i},218:t=>{t.exports=e}},i={},o=function e(o){var n=i[o];if(void 0!==n)return n.exports;var s=i[o]={exports:{}};return t[o].call(s.exports,s,s.exports,e),s.exports}(684);return o.default})())); 3//# sourceMappingURL=consent-manager.min.js.map 4!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("mitt"),require("jQuery"),require("GLightbox"),require("L")):"function"==typeof define&&define.amd?define([,,,],e):"object"==typeof exports?exports.App=e(require("mitt"),require("jQuery"),require("GLightbox"),require("L")):t.App=e(t.mitt,t.jQuery,t.GLightbox,t.L)}(window,((t,e,i,n)=>(()=>{"use strict";var o={15:function(t,e,i){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=n(i(218));class r{static get emitter(){return this._emitter}constructor(t){var e,i;this._settings={},this._labels={},this._container=t;const n=null!==(e=this._container.dataset.settings)&&void 0!==e?e:"";n&&(this._settings=JSON.parse(n));const o=null!==(i=this._container.dataset.labels)&&void 0!==i?i:"";o&&(this._labels=JSON.parse(o))}get container(){return this._container}get settings(){return this._settings}get labels(){return this._labels}}r._emitter=(0,o.default)(),e.default=r},52:function(t,e,i){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=n(i(766));e.default=class{static get language(){return void 0===this._language&&(this._language=o.default.getGlobalProperty("language")),this._language}static get languageId(){return void 0===this._languageId&&(this._languageId=parseInt(o.default.getGlobalProperty("languageId"))),this._languageId}static get labels(){return void 0===this._labels&&(this._labels=o.default.getGlobalProperty("labels")),this._labels}static getLabel(t){return this.labels.hasOwnProperty(t)?this.labels[t]:""}}},74:function(t,e,i){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=n(i(15)),r=n(i(52));var s=TL.Timeline;class a extends o.default{constructor(t){super(t);const e=t.querySelector(".timeline-container");if(!e)throw new Error("Required elements missing.");this.timelineContainer=e,this.timelineContainerId=this.timelineContainer.id;let i=this.timelineContainer.dataset.timelineData;i&&(i=JSON.parse(i),this.setupTimeline(i)),a.emitter.emit("ready",this)}setupTimeline(t){const e={debug:!1,hash_bookmark:!0,language:r.default.languageId>0?Globals.assets.timelinejs.locale.en:Globals.assets.timelinejs.locale.de,duration:2e3,zoom_sequence:[.5,.5,1,2,3,5,8,13,21,34,55,89],initial_zoom:1,default_bg_color:"#535c46",timenav_position:"bottom",timenav_height_min:200,timenav_height:0,timenav_height_percentage:25,timenav_mobile_height_percentage:40,slide_padding_lr:0,optimal_tick_width:100,marker_padding:10,marker_width_min:100,marker_height_min:30};new s(this.timelineContainerId,t,e)}}e.default=a}
4,131:function(t,e,i){var n,o=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),r=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||(n=function(t){return n=Object.getOwnPropertyNames||function(t){var e=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[e.length]=i);return e},n(t)},function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i=n(t),s=0;s<i.length;s++)"default"!==i[s]&&o(e,t,i[s]);return r(e,t),e});Object.defineProperty(e,"__esModule",{value:!0}),e.Newsletter=e.Map=e.Timeline=void 0,e.Timeline=s(i(779)),e.Map=s(i(802)),e.Newsletter=s(i(396))},218:e=>{e.exports=t},282:t=>{t.exports=e},340:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0});class i{static set(t,e,i=null,n="/",o="lax"){let r=t+"="+e;return null!==i&&(r+=";expires="+i.toUTCString()),r+=`;path=${n};SameSite=${o}`,document.cookie=r,r}static get(t){if(!i.exists(t))return null;const e=document.cookie.split(";");for(const i of e){const e=i.split("=");let n=e.shift();if(n){n=n.trim();const i=e.join("=").trim();if(n===t)return i}}return null}static delete(t){return!!i.exists(t)&&(document.cookie=t+"=;expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/",!0)}static exists(t){return!!t&&document.cookie.indexOf(t+"=")>=0}}e.default=i},375:function(t,e,i){var n,o=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),r=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||(n=function(t){return n=Object.getOwnPropertyNames||function(t){var e=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[e.length]=i);return e},n(t)},function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i=n(t),s=0;s<i.length;s++)"default"!==i[s]&&o(e,t,i[s]);return r(e,t),e}),a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const l=a(i(675)),c=a(i(766)),u=a(i(402)),d=a(i(340)),h=a(i(282)),f=s(i(131));e.default=class{constructor(){this.contrastTogglers=document.querySelectorAll(".contrast-toggle"),this.initializeGlightbox(),this.initializeButtons(),this.initializeContrast(),this.initializeMainNavigation(),this.initializeOfficersTrainingFlyout(),this.initializeInlineNewsletterForm(),this.initializeBootstrap(),this.initializeExtensions(),this.initializePlugins(),this.initializeContent(),new l.default,c.default.isTouch()?document.body.classList.add("is-touch"):document.body.classList.add("no-touch"),this.fixViewHeight(),c.default.browserEmitter.on("scroll",(t=>{this.fixViewHeight()})),this.adjustDeviceOrientation(c.default.getDeviceOrientation()),c.default.browserEmitter.on("orientation",(t=>{this.fixViewHeight(),this.adjustDeviceOrientation(t)}))}fixViewHeight(){const t=.01*window.innerHeight;document.documentElement.style.setProperty("--vh",t+"px")}adjustDeviceOrientation(t){"landscape"===t?(document.body.classList.add("landscape"),document.body.classList.remove("portrait")):(document.body.classList.remove("landscape"),document.body.classList.add("portrait"))}initializeGlightbox(){(0,u.default)({selector:"*[data-lightbox]"})}initializeButtons(){const t=document.querySelector(".to-top");t&&(c.default.browserEmitter.on("scroll",(e=>{e.scrollY>100?t.classList.add("show"):t.classList.remove("show")})),t.addEventListener("click",(()=>{(window.document.scrollingElement||window.document.body||window.document.documentElement).scrollIntoView({block:"start",behavior:"smooth"})})));const e=document.querySelector("#printContent");e&&e.addEventListener("click",(()=>{window.print()}))}initializeContrast(){"1"===d.default.get("contrast")&&this.enableContrast();for(const t of this.contrastTogglers)t.addEventListener("click",(()=>{this.toggleContrast()}))}enableContrast(){if(document.querySelector(".contrast-toggle")){for(const t of this.contrastTogglers)t.classList.add("active");document.body.classList.add("contrast"),d.default.set("contrast","1")}
4}disableContrast(){if(document.querySelector(".contrast-toggle")){for(const t of this.contrastTogglers)t.classList.remove("active");document.body.classList.remove("contrast"),d.default.delete("contrast")}}toggleContrast(){"1"===d.default.get("contrast")?this.disableContrast():this.enableContrast()}initializeMainNavigation(){const t=document.querySelector(".navbar-toggler");t&&t.addEventListener("click",(()=>{document.body.classList.toggle("main-nav-open"),t.classList.toggle("toggled")}));const e=document.querySelector("#toggleContrast");if(e){e.addEventListener("keydown",(t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.toggleContrast())}));const t=document.querySelector("#searchToggle"),i=document.querySelector("#tx_solr");if(t&&i){let e=!1;t.addEventListener("click",(()=>{document.body.classList.toggle("wrapper-search-open"),e?(e=!1,i.blur()):(e=!0,i.focus())}))}}}initializeOfficersTrainingFlyout(){const t=document.querySelector(".officers-training-info");t&&t.addEventListener("click",(()=>{t.classList.toggle("open")}))}initializeInlineNewsletterForm(){const t=document.querySelector("#newsletter .fields");if(!t)return;const e=document.querySelector("#email");e&&(e.addEventListener("click",(()=>{t.classList.add("d-block")})),window.location.href.includes("tx_sitepackage_newsletterform%5Bcontroller%5D=Newsletter")&&t.classList.add("d-block"))}initializeBootstrap(){const t=(0,h.default)(".accordion-content");t.length>0&&t.on("show.bs.collapse",(()=>{t.collapse("hide")}))}initializeExtensions(){}initializePlugins(){document.querySelectorAll('[data-ctype="sitepackage_timeline"] [data-action="show"]').forEach((t=>{new f.Timeline.Show(t)})),document.querySelectorAll('[data-ctype="sitepackage_map"] [data-action="show"]').forEach((t=>{try{new f.Map.Show(t)}catch(t){}}))}initializeContent(){}}},396:function(t,e,i){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.RegisterForm=void 0;const o=n(i(869));e.RegisterForm=o.default},402:t=>{t.exports=i},493:function(t,e,i){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=n(i(15)),r=n(i(643));class s extends o.default{constructor(t){super(t);const e=t.querySelector(".leaflet");if(!e)throw new Error("Required elements missing.");if(this.mapContainer=e,!r.default.isLeafletLoaded())throw new Error("Leaflet library not loaded.");this.map=r.default.createMap(this.mapContainer.id),this.leafletUtility=new r.default(this.map),this.setupMarkers(),s.emitter.emit("ready",this)}setupMarkers(){var t,e;let i=null;const n=null!==(t=this.mapContainer.dataset.address)&&void 0!==t?t:"";n&&(i=n.trim());let o=null;const r=null!==(e=this.mapContainer.dataset.latitudeLongitude)&&void 0!==e?e:"";r&&(o=JSON.parse(r),o&&2===o.length||(o=[]));const s=this.container.querySelector(".popup-content");let a="";s&&(a=s.innerHTML),null!==o?this.createMarker(this.leafletUtility.createLatitudeLongitude(o[0],o[1]),a):null!==i&&this.leafletUtility.findAddressWithNominatim(i).then((t=>{this.createMarker(t,a)}))}createMarker(t,e){void 0===e&&(e="");const i=this.leafletUtility.addMarker(t);if(e){const t=this.leafletUtility.createPopup(e);this.leafletUtility.addPopupToMarker(t,i,!0)}this.leafletUtility.showMarker(i)}}e.default=s},643:function(t,e,i){var n,o=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),r=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||(n=function(t){return n=Object.getOwnPropertyNames||function(t){var e=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[e.length]=i);return e},n(t)},function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i=n(t),s=0;s<i.length;s++)"default"!==i[s]&&o(e,t,i[s]);return r(e,t),e});
4Object.defineProperty(e,"__esModule",{value:!0});const a=s(i(966));class l{static isLeafletLoaded(){return void 0!==a}static createMap(t){const e=a.map(t,{zoom:15});return a.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{}).addTo(e),e}constructor(t){if(!l.isLeafletLoaded())throw new Error("No L library found.");this._map=t,this.markerIcon=this.createMarkerIcon()}get map(){return this._map}createLatitudeLongitude(t,e){return a.latLng(t,e)}createMarkerIcon(){return a.icon({iconUrl:Globals.assets.leaflet.marker,iconSize:[37,39],iconAnchor:[18.5,39],shadowUrl:Globals.assets.leaflet.markerShadow,shadowSize:[57,52],shadowAnchor:[28.5,49],popupAnchor:[0,22]})}createMarker(t){return a.marker(t,{icon:this.markerIcon,riseOnHover:!0,riseOffset:500})}addMarker(t){const e=this.createMarker(t);return e.addTo(this.map),e}showMarker(t,e){void 0===e&&(e=!0),this.map.setView(t.getLatLng()),e&&t.openPopup()}createPopup(t){return a.popup({offset:a.point(0,-30)}).setContent(t)}addPopupToMarker(t,e,i){void 0===i&&(i=!1),e.bindPopup(t),i&&e.openPopup()}findAddressWithNominatim(t){return new Promise(((e,i)=>{fetch(`https://nominatim.openstreetmap.org/search/q=${t}&format=json`).then((t=>{if(200!==t.status)throw new Error(`Fetching address via Nominatim failed: ${t.status} ${t.statusText}`);return t.json()})).then((t=>{if(t&&t.length>0&&t[0]){const i=this.createLatitudeLongitude(t[0].lat,t[0].lon);e(i)}else i();e(t)})).catch((()=>{i()}))}))}}e.default=l},675:function(t,e,i){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=n(i(766)),r=n(i(52));class s{static initializeUnsavedFormsCheck(){const t=document.querySelectorAll('form[data-unsaved-check="1"]');for(const e of t){const t=e.getAttribute("name");if(!t)return;const i={},n=e.querySelectorAll("input:not([data-ignore]),select:not([data-ignore]),textarea:not([data-ignore])");for(const t of n){const e=t.getAttribute("name");if(!e)return;const n=t.value;i[e]=!1,t.addEventListener("input",(()=>{n!==t.value?i[e]=!0:i[e]&&n===t.value&&(i[e]=!1)}))}s.changedForms[t]=i,e.addEventListener("submit",(()=>{delete s.changedForms[t]}))}}static checkIfUnsavedFormsPresent(){for(const t in s.changedForms)for(const e in s.changedForms[t])if(s.changedForms[t][e])return!0;return!1}constructor(){this.initializeScrollToForms(),this.initializeTextareas(),this.initializeSanitization()}initializeScrollToForms(){const t=window.location.hash;if(!t||-1===t.indexOf("#form-"))return;const e=t.replace("#form-",""),i=document.querySelector("form#"+e);if(i){const t=o.default.getElementPosition(i);window.scrollTo({top:t.top>0?t.top-250:0,behavior:"smooth"})}}initializeTextareas(){const t=r.default.getLabel("characters"),e=document.querySelectorAll("textarea[maxlength]");for(const i of e){let e=0;const n=i.getAttribute("maxlength");if(n&&(e=parseInt(n)),e>0){const n=document.createElement("span");n.classList.add("form-text");const o=document.createElement("span");o.classList.add("remaining"),o.textContent=e.toString(),n.append(o),n.insertAdjacentText("beforeend"," / "+e+" "+t),i.insertAdjacentElement("afterend",n),i.addEventListener("keyup",(()=>{const t=e-i.value.length;o.textContent=t.toString()}))}}}initializeSanitization(){const t=function(t){return t.replace(",",".")},e=document.querySelectorAll("[data-sanitize]");for(const i of e){if(!i.dataset.sanitize)return;i.addEventListener("blur",(()=>{if(i.value){const e=i.value.trim();"float"===i.dataset.sanitize&&(i.value=t(e))}}))}}}s.changedForms={},e.default=s},684:function(t,e,i){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=n(i(218));class r{static getInstance(){return void 0===r._instance&&(r._instance=new r),r._instance}constructor(){this._storageKey="sitepackage",this._settings=null,this._changeEvent=(0,o.default)(),this.settings=this.get()}get storageKey(){return this._storageKey}get settings(){return this._settings}set settings(t){this._settings=t}get changeEvent(){return this._changeEvent}get(){let t=null;const e=localStorage.getItem(this.storageKey);if(e)try{e&&(t=JSON.parse(e)),null===t||t.hasOwnProperty("version")||(t=this.reset())}catch(e){t=this.reset()}else t=this.reset();if(null===t)throw new Error("Could not fetch settings.");return t.version!==r.VERSION&&(t=this.reset()),t}set(t){void 0!==localStorage.getItem(this.storageKey)&&localStorage.getItem(this.storageKey)||this.reset(),localStorage.setItem(this.storageKey,JSON.stringify(t)),this.settings=t,this.changeEvent.emit("change",this.settings)}getDefaultSettings(){return{version:r.VERSION,timestamp:(new Date).getTime(),settings:{}}}reset(){const t=this.getDefaultSettings();return localStorage.setItem(this.storageKey,JSON.stringify(t)),this.settings=t,this.changeEvent.emit("change",this.settings),t}delete(){const t=this.getDefaultSettings();return localStorage.removeItem(this.storageKey),this.settings=this.getDefaultSettings(),this.changeEvent.emit("change",this.settings),t}}r.VERSION=1,e.default=r}
4,766:function(t,e,i){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=n(i(218));class r{static getGlobalProperty(t){if(void 0===Globals||!Globals)throw new Error("Globals are missing.");if(void 0===Globals[t]||!Globals.hasOwnProperty(t))throw new Error("Property "+t+" not found in globals.");return Globals[t]}static get pageUid(){return void 0===this._pageUid&&(this._pageUid=parseInt(r.getGlobalProperty("pageUid"))),this._pageUid}static get settings(){return void 0===this._settings&&(this._settings=r.getGlobalProperty("settings")),this._settings}static get rootline(){return void 0===this._rootline&&(this._rootline=r.getGlobalProperty("rootline")),this._rootline}static get browserEmitter(){return this._browserEmitter}static getUrl(){let t=window.location.href;t=t.split("?")[0],t=t.split("#")[0];const e=t.length;return"/"===t.charAt(e-1)&&(t=t.substring(0,e-1)),t}static isTouch(){let t;if("maxTouchPoints"in navigator)t=navigator.maxTouchPoints>0;else if("msMaxTouchPoints"in navigator)t=navigator.msMaxTouchPoints>0;else{const e=void 0!==window.matchMedia&&window.matchMedia("(pointer:coarse)");if(e&&"(pointer:coarse)"===e.media)t=!!e.matches;else if("orientation"in window)t=!0;else{const e=navigator.userAgent;t=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(e)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(e)}}return t}static getDeviceOrientation(){return window.innerHeight>window.innerWidth?"portrait":"landscape"}static getWindowDimensions(){return{width:Math.max(document.documentElement.clientWidth,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}}static getScrollPosition(){return{top:document.documentElement.scrollTop||document.body.scrollTop,left:document.documentElement.scrollLeft||document.body.scrollLeft}}static getElementPosition(t){const e=t.getBoundingClientRect(),i=r.getScrollPosition();
4return{top:e.top+i.top,left:e.left+i.left}}static addTimedClass(t,e,i=1e3){t.classList.add(e),setTimeout((()=>{t.classList.remove(e)}),i)}static debouncedSearch(t,e,i=500,n=null){void 0===i&&(i=500);let o=!1,r=null;t.addEventListener("keyup",(s=>{var a;a=s.keyCode,(-1!==[8,13,16,17,32,46,106,109,173,110,188,59,192,222].indexOf(a)||a>=48&&a<=57||a>=96&&a<=105||a>=65&&a<=90)&&!o&&(null!==r&&clearTimeout(r),r=setTimeout((()=>{let i=t.value;i=n?n(i):i.toLowerCase().trim(),e(i),o=!1}),i),o=!0)}))}static copyToClipboard(t){if(navigator.clipboard)navigator.clipboard.writeText(t);else{const e=document.createElement("textarea");e.style.top="0",e.style.left="0",e.style.position="fixed",e.value=t,document.body.appendChild(e),e.focus(),e.select();try{if(!document.execCommand("copy"))throw new Error("Copying to clipboard failed.")}catch(t){throw new Error("Browser does not support clipboard interaction.")}e.remove()}}}r._browserEmitter=(0,o.default)(),e.default=r},779:function(t,e,i){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Show=void 0;const o=n(i(74));e.Show=o.default},802:function(t,e,i){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Show=void 0;const o=n(i(493));e.Show=o.default},869:function(t,e,i){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=n(i(15));class r extends o.default{constructor(t){super(t),document.querySelector(".newsletter-inline")}}e.default=r},940:function(t,e,i){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=n(i(375)),r=n(i(766)),s=n(i(684)),a=n(i(675)),l=n(i(52));document.addEventListener("DOMContentLoaded",(()=>{let t=r.default.getDeviceOrientation();document.body.classList.add(t);let e="";window.addEventListener("resize",(()=>{r.default.browserEmitter.emit("resize",r.default.getWindowDimensions()),t=r.default.getDeviceOrientation(),t!==e&&(e&&document.body.classList.remove(e),t&&(document.body.classList.add(t),r.default.browserEmitter.emit("orientation",t))),e=t}),{capture:!1,passive:!0});let i=0,n=0;window.addEventListener("scroll",(()=>{const t=window.scrollY,e=window.scrollX,o={previousScrollY:i,scrollY:t,previousScrollX:n,scrollX:e};r.default.browserEmitter.emit("scroll",o),i=t,n=e}),{capture:!1,passive:!0}),a.default.initializeUnsavedFormsCheck(),window.addEventListener("beforeunload",(t=>a.default.checkIfUnsavedFormsPresent()?l.default.getLabel("formsChanged"):void 0)),new o.default})),window.addEventListener("beforeunload",(()=>{const t=Math.floor((new Date).getTime()/1e3);Math.floor(s.default.getInstance().get().timestamp/1e3)<t-3600&&s.default.getInstance().reset()}))},966:t=>{t.exports=n}},r={};return function t(e){var i=r[e];if(void 0!==i)return i.exports;var n=r[e]={exports:{}};return o[e].call(n.exports,n,n.exports,t),n.exports}(940)})())); 5//# sourceMappingURL=app.min.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.