
try {
    var omCookieGroups = JSON.parse(document.getElementById('om-cookie-consent').innerHTML);
    var omGtmEvents = [];
    var omGtmConsentModeGrantedGrps = [];
}
catch(err) {
    console.log('OM Cookie Manager: No Cookie Groups found! Maybe you have forgot to set the page id inside the constants of the extension')
}


document.addEventListener('DOMContentLoaded', function(){
    var panelButtons = document.querySelectorAll('[data-omcookie-panel-save]');
    var openButtons = document.querySelectorAll('[data-omcookie-panel-show]');
    var i;
    var omCookiePanel = document.querySelectorAll('[data-omcookie-panel]')[0];
    if(omCookiePanel === undefined) return;
    var openCookiePanel = true;

    //Enable stuff by Cookie
    var cookieConsentData = omCookieUtility.getCookie('omCookieConsent');
    if(cookieConsentData !== null && cookieConsentData.length > 0){
        //dont open the panel if we have the cookie
        openCookiePanel = false;
        var checkboxes = document.querySelectorAll('[data-omcookie-panel-grp]');
        var cookieConsentGrps = cookieConsentData.split(',');
        var cookieConsentActiveGrps = '';

        for(i = 0; i < cookieConsentGrps.length; i++){
            if(cookieConsentGrps[i] !== 'dismiss'){
                var grpSettings = cookieConsentGrps[i].split('.');
                if(parseInt(grpSettings[1]) === 1){
                    omCookieEnableCookieGrp(grpSettings[0]);
                    cookieConsentActiveGrps += grpSettings[0] + ',';
                }
            }
        }
        for(i = 0; i < checkboxes.length; i++){
            if(cookieConsentActiveGrps.indexOf(checkboxes[i].value)  !== -1){
                checkboxes[i].checked = true;
            }
            //check if we have a new group
            if(cookieConsentData.indexOf(checkboxes[i].value) === -1){
                openCookiePanel = true;
            }
        }
        //push stored events(sored by omCookieEnableCookieGrp) to gtm. We push this last so we are sure that gtm is loaded
        omPushGtmConsentModeGrpsEvents(omGtmConsentModeGrantedGrps);
        pushGtmEvents(omGtmEvents);
        omTriggerPanelEvent(['cookieconsentscriptsloaded']);
    }
    if(openCookiePanel === true){
        //timeout, so the user can see the page before he get the nice cookie panel
        setTimeout(function () {
            omCookiePanel.classList.toggle('active');
        },1000);
    }

    //check for button click
    for (i = 0; i < panelButtons.length; i++) {
        panelButtons[i].addEventListener('click', omCookieSaveAction, false);
    }
    for (i = 0; i < openButtons.length; i++) {
        openButtons[i].addEventListener('click', function () {
            omCookiePanel.classList.toggle('active');
        }, false);
    }

});

//activates the groups
var omCookieSaveAction = function() {
    action = this.getAttribute('data-omcookie-panel-save');
    var checkboxes = document.querySelectorAll('[data-omcookie-panel-grp]');
    var i;
    //check if we have a cookie
    var cookie = omCookieUtility.getCookie('omCookieConsent');
    if(cookie === null || cookie.length <= 0){
        //set cookie to empty string when no cookie data was found
        cookie = '';
    }else{
        //reset all values inside the cookie which are present in the actual panel
        for (i = 0; i < checkboxes.length; i++) {
            cookie = cookie.replace(new RegExp(checkboxes[i].value + '\\S{3}'),'');
        }
    }
    //save the group id (group-x) and the made choice (.0 for group denied and .1 for group accepted)
    switch (action) {
        case 'all':
            for (i = 0; i < checkboxes.length; i++) {
                omCookieEnableCookieGrp(checkboxes[i].value);
                cookie += checkboxes[i].value + '.1,';
                checkboxes[i].checked = true;
            }
        break;
        case 'save':
            for (i = 0; i < checkboxes.length; i++) {
                if(checkboxes[i].checked === true){
                    omCookieEnableCookieGrp(checkboxes[i].value);
                    cookie += checkboxes[i].value + '.1,';
                }else{
                    cookie += checkboxes[i].value + '.0,';
                }
            }
        break;
        case 'min':
            for (i = 0; i < checkboxes.length; i++) {
                if(checkboxes[i].getAttribute('data-omcookie-panel-essential') !== null){
                    omCookieEnableCookieGrp(checkboxes[i].value);
                    cookie += checkboxes[i].value + '.1,';
                }else{
                    cookie += checkboxes[i].value + '.0,';
                    checkboxes[i].checked = false;
                }
            }
        break;
    }
    //replace dismiss to the end of the cookie
    cookie = cookie.replace('dismiss','');
    cookie += 'dismiss';
    //cookie = cookie.slice(0, -1);
    omCookieUtility.setCookie('omCookieConsent',cookie,364);
    omPushGtmConsentModeGrpsEvents(omGtmConsentModeGrantedGrps);
    //push stored events to gtm. We push this last so we are sure that gtm is loaded
    pushGtmEvents(omGtmEvents);
    omTriggerPanelEvent(['cookieconsentsave','cookieconsentscriptsloaded']);

    setTimeout(function () {
        document.querySelectorAll('[data-omcookie-panel]')[0].classList.toggle('active');
    },350)

};

var omTriggerPanelEvent = function(events){
  events.forEach(function (event) {
      var eventObj = new CustomEvent(event, {bubbles: true});
      document.querySelectorAll('[data-omcookie-panel]')[0].dispatchEvent(eventObj);
  })
};

var pushGtmEvents = function (events) {
    window.dataLayer = window.dataLayer || [];
    events.forEach(function (event) {
        window.dataLayer.push({
            'event': event,
        });
    });
};

var omPushGtmConsentModeGrpsEvents = function (groups) {
    groupsObject = {};
    groups.forEach((value) => {
        groupsObject[value] = 'granted';
    });
    if(Object.keys(groupsObject).length > 0){
        window.dataLayer = window.dataLayer || [];
        function gtag(){dataLayer.push(arguments);}
        gtag('consent', 'update', groupsObject);
    }

};
var omCookieEnableCookieGrp = function (groupKey){
    if(omCookieGroups[groupKey] !== undefined){
        for (var key in omCookieGroups[groupKey]) {
            // skip loop if the property is from prototype
            if (!omCookieGroups[groupKey].hasOwnProperty(key)) continue;
            var obj = omCookieGroups[groupKey][key];
            //save gtm event for pushing
            if(key === 'gtm'){
                if(omCookieGroups[groupKey][key]){
                    omGtmEvents.push(omCookieGroups[groupKey][key]);
                }
                continue;
            }
            if(key === 'gtmConsentMode'){
                if(omCookieGroups[groupKey][key]){
                    omCookieGroups[groupKey][key].split(',').forEach((value) => {
                        omGtmConsentModeGrantedGrps.indexOf(value) === -1 ? omGtmConsentModeGrantedGrps.push(value) : false;
                    });
                    omGtmConsentModeGrantedGrps.push();
                }
                continue;
            }
            //set the cookie html
            for (var prop in obj) {
                // skip loop if the property is from prototype
                if (!obj.hasOwnProperty(prop)) continue;

                if(Array.isArray(obj[prop])){
                    var content = '';
                    //get the html content
                    obj[prop].forEach(function (htmlContent) {
                        content += htmlContent
                    });
                    var range = document.createRange();
                    if(prop === 'header'){
                        // add the html to header
                        range.selectNode(document.getElementsByTagName('head')[0]);
                        var documentFragHead = range.createContextualFragment(content);
                        document.getElementsByTagName('head')[0].appendChild(documentFragHead);
                    }else{
                        //add the html to body
                        range.selectNode(document.getElementsByTagName('body')[0]);
                        var documentFragBody = range.createContextualFragment(content);
                        document.getElementsByTagName('body')[0].appendChild(documentFragBody);
                    }
                }
            }
        }
        //remove the group so we don't set it again
        delete omCookieGroups[groupKey];
    }
};
var omCookieUtility = {
    getCookie: function(name) {
            var v = document.cookie.match('(^|;) ?' + name + '=([^;]*)(;|$)');
            return v ? v[2] : null;
        },
    setCookie: function(name, value, days) {
            var d = new Date;
            d.setTime(d.getTime() + 24*60*60*1000*days);
            document.cookie = name + "=" + value + ";path=/;expires=" + d.toGMTString() + ";SameSite=Lax";
        },
    deleteCookie: function(name){ setCookie(name, '', -1); }
};

(function () {

    if ( typeof window.CustomEvent === "function" ) return false;

    function CustomEvent ( event, params ) {
        params = params || { bubbles: false, cancelable: false, detail: null };
        var evt = document.createEvent( 'CustomEvent' );
        evt.initCustomEvent( event, params.bubbles, params.cancelable, params.detail );
        return evt;
    }

    window.CustomEvent = CustomEvent;
})();


!function(){"use strict";var e=function(e){if(e){var t=function(e){return[].slice.call(e)},n=3,s=[],i=null,r="requestAnimationFrame"in e?function(){e.cancelAnimationFrame(i),i=e.requestAnimationFrame((function(){return o(s.filter((function(e){return e.dirty&&e.active})))}))}:function(){},a=function(e){return function(){s.forEach((function(t){return t.dirty=e})),r()}},o=function(e){e.filter((function(e){return!e.styleComputed})).forEach((function(e){e.styleComputed=u(e)})),e.filter(p).forEach(m);var t=e.filter(d);t.forEach(c),t.forEach((function(e){m(e),l(e)})),t.forEach(h)},l=function(e){return e.dirty=0},c=function(e){e.availableWidth=e.element.parentNode.clientWidth,e.currentWidth=e.element.scrollWidth,e.previousFontSize=e.currentFontSize,e.currentFontSize=Math.min(Math.max(e.minSize,e.availableWidth/e.currentWidth*e.previousFontSize),e.maxSize),e.whiteSpace=e.multiLine&&e.currentFontSize===e.minSize?"normal":"nowrap"},d=function(e){return 2!==e.dirty||2===e.dirty&&e.element.parentNode.clientWidth!==e.availableWidth},u=function(t){var n=e.getComputedStyle(t.element,null);return t.currentFontSize=parseFloat(n.getPropertyValue("font-size")),t.display=n.getPropertyValue("display"),t.whiteSpace=n.getPropertyValue("white-space"),!0},p=function(e){var t=!1;return!e.preStyleTestCompleted&&(/inline-/.test(e.display)||(t=!0,e.display="inline-block"),"nowrap"!==e.whiteSpace&&(t=!0,e.whiteSpace="nowrap"),e.preStyleTestCompleted=!0,t)},m=function(e){e.element.style.whiteSpace=e.whiteSpace,e.element.style.display=e.display,e.element.style.fontSize=e.currentFontSize+"px"},h=function(e){e.element.dispatchEvent(new CustomEvent("fit",{detail:{oldValue:e.previousFontSize,newValue:e.currentFontSize,scaleFactor:e.currentFontSize/e.previousFontSize}}))},f=function(e,t){return function(){e.dirty=t,e.active&&r()}},g=function(e){return function(){s=s.filter((function(t){return t.element!==e.element})),e.observeMutations&&e.observer.disconnect(),e.element.style.whiteSpace=e.originalStyle.whiteSpace,e.element.style.display=e.originalStyle.display,e.element.style.fontSize=e.originalStyle.fontSize}},v=function(e){return function(){e.active||(e.active=!0,r())}},y=function(e){return function(){return e.active=!1}},b=function(e){e.observeMutations&&(e.observer=new MutationObserver(f(e,1)),e.observer.observe(e.element,e.observeMutations))},w={minSize:16,maxSize:512,multiLine:!0,observeMutations:"MutationObserver"in e&&{subtree:!0,childList:!0,characterData:!0}},S=null,E=function(){e.clearTimeout(S),S=e.setTimeout(a(2),L.observeWindowDelay)},T=["resize","orientationchange"];return Object.defineProperty(L,"observeWindow",{set:function(t){var n="".concat(t?"add":"remove","EventListener");T.forEach((function(t){e[n](t,E)}))}}),L.observeWindow=!0,L.observeWindowDelay=100,L.fitAll=a(n),L}function x(e,t){var i=Object.assign({},w,t),a=e.map((function(e){var t=Object.assign({},i,{element:e,active:!0});return function(e){e.originalStyle={whiteSpace:e.element.style.whiteSpace,display:e.element.style.display,fontSize:e.element.style.fontSize},b(e),e.newbie=!0,e.dirty=!0,s.push(e)}(t),{element:e,fit:f(t,n),unfreeze:v(t),freeze:y(t),unsubscribe:g(t)}}));return r(),a}function L(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e?x(t(document.querySelectorAll(e)),n):x([e],n)[0]}}("undefined"==typeof window?null:window);function t(e,t){return void 0===e?t:e}function n(e){const t=Array(e);for(let n=0;n<e;n++)t[n]=s();return t}function s(){return Object.create(null)}function i(e,t){return t.length-e.length}function r(e){return"string"==typeof e}function a(e){return"object"==typeof e}function o(e,t,n,s){if(e&&(t&&(e=d(e,t)),this.matcher&&(e=d(e,this.matcher)),this.stemmer&&1<e.length&&(e=d(e,this.stemmer)),s&&1<e.length&&(e=function(e){let t="",n="";for(let s,i=0,r=e.length;i<r;i++)(s=e[i])!==n&&(t+=n=s);return t}(e)),n||""===n)){const t=e.split(n);return this.filter?function(e,t){const n=e.length,s=[];for(let i=0,r=0;i<n;i++){const n=e[i];n&&!t[n]&&(s[r++]=n)}return s}(t,this.filter):t}return e}const l=/[\p{Z}\p{S}\p{P}\p{C}]+/u;function c(e,t){const n=function(e){return Object.keys(e)}(e),s=n.length,i=[];let r="",a=0;for(let o,l,c=0;c<s;c++)o=n[c],l=e[o],l?(i[a++]=u(t?"(?!\\b)"+o+"(\\b|_)":o),i[a++]=l):r+=(r?"|":"")+o;return r&&(i[a++]=u(t?"(?!\\b)("+r+")(\\b|_)":"("+r+")"),i[a]=""),i}function d(e,t){for(let n=0,s=t.length;n<s&&(e=e.replace(t[n],t[n+1]));n+=2);return e}function u(e){return new RegExp(e,"g")}function p(e){return o.call(this,(""+e).toLowerCase(),!1,l,!1)}const m={};const h={};function f(e,t){e[t+"Async"]=function(){const e=this,n=arguments,s=n[n.length-1];let i;(function(e){return"function"==typeof e})(s)&&(i=s,delete n[n.length-1]);const r=new Promise((function(s){setTimeout((function(){e.async=!0;const i=e[t].apply(e,n);e.async=!1,s(i)}))}));return i?(r.then(i),this):r}}function g(e){this.limit=!0!==e&&e,this.cache=s(),this.queue=[]}g.prototype.set=function(e,t){if(!this.cache[e]){let t=this.queue.length;t===this.limit?delete this.cache[this.queue[t-1]]:t++;for(let e=t-1;0<e;e--)this.queue[e]=this.queue[e-1];this.queue[0]=e}this.cache[e]=t},g.prototype.get=function(e){const t=this.cache[e];if(this.limit&&t){const t=this.queue.indexOf(e);if(t){const e=this.queue[t-1];this.queue[t-1]=this.queue[t],this.queue[t]=e}}return t},g.prototype.del=function(e){for(let t,n,s=0;s<this.queue.length;s++)n=this.queue[s],t=this.cache[n],t.includes(e)&&(this.queue.splice(s--,1),delete this.cache[n])};const v={memory:{charset:"latin:extra",resolution:3,minlength:4,fastupdate:!1},performance:{resolution:3,minlength:3,optimize:!1,context:{depth:2,resolution:1}},match:{charset:"latin:extra",tokenize:"reverse"},score:{charset:"latin:advanced",resolution:20,minlength:3,context:{depth:3,resolution:9}},default:{}};function y(e,i){if(!(this instanceof y))return new y(e);let a,o,l;e?(e=function(e){if(r(e))e=v[e];else{const t=e.preset;t&&(e=Object.assign({},t[t],e))}return e}(e),a=e.charset,o=e.lang,r(a)&&(-1===a.indexOf(":")&&(a+=":default"),a=h[a]),r(o)&&(o=m[o])):e={};let d,u,f=e.context||{};this.encode=e.encode||a&&a.encode||p,this.register=i||s(),this.resolution=d=e.resolution||9,this.tokenize=l=a&&a.tokenize||e.tokenize||"strict",this.depth="strict"===l&&f.depth,this.bidirectional=t(f.bidirectional,!0),this.optimize=u=t(e.optimize,!0),this.fastupdate=t(e.fastupdate,!0),this.minlength=e.minlength||1,this.boost=e.boost,this.map=u?n(d):s(),this.resolution_ctx=d=f.resolution||1,this.ctx=u?n(d):s(),this.rtl=a&&a.rtl||e.rtl,this.matcher=(l=e.matcher||o&&o.matcher)&&c(l,!1),this.stemmer=(l=e.stemmer||o&&o.stemmer)&&c(l,!0),this.filter=(l=e.filter||o&&o.filter)&&function(e){const t=s();for(let n=0,s=e.length;n<s;n++)t[e[n]]=1;return t}(l),this.cache=(l=e.cache)&&new g(l)}function b(e,t,n,s,i){return n&&1<e?t+(s||0)<=e?n+(i||0):0|(e-1)/(t+(s||0))*(n+(i||0))+1:0}function w(e,t,n){return e=1===e.length?e[0]:function(e){return[].concat.apply([],e)}(e),n||e.length>t?e.slice(n,n+t):e}function S(e,t,n,s){if(n){const i=s&&t>n;e=(e=e[i?t:n])&&e[i?n:t]}else e=e[t];return e}function E(e,t,n,s,i){let r=0;if(function(e){return e.constructor===Array}(e))if(i){const n=e.indexOf(t);-1===n?r++:1<e.length&&(e.splice(n,1),r++)}else{i=Math.min(e.length,n);for(let a,o=0;o<i;o++)a=e[o],a&&(r=E(a,t,n,s,i),!s&&!r&&delete e[o])}else for(let a in e)r=E(e[a],t,n,s,i),r||delete e[a];return r}var T;y.prototype.append=function(e,t){return this.add(e,t,!0)},y.prototype.add=function(e,t,n,i){if(t&&(e||0===e)){if(!i&&!n&&this.register[e])return this.update(e,t);const r=(t=this.encode(""+t)).length;if(r){const i=s(),a=s(),o=this.depth,l=this.resolution;for(let c=0;c<r;c++){let d=t[this.rtl?r-1-c:c],u=d.length;if(d&&u>=this.minlength&&(o||!a[d])){let p=b(l,r,c),m="";switch(this.tokenize){case"full":if(2<u){for(let t=0;t<u;t++)for(let s=u;s>t;s--)if(s-t>=this.minlength){const i=b(l,r,c,u,t);m=d.substring(t,s),this.push_index(a,m,i,e,n)}break}case"reverse":if(1<u){for(let t=u-1;0<t;t--)if(m=d[t]+m,m.length>=this.minlength){const s=b(l,r,c,u,t);this.push_index(a,m,s,e,n)}m=""}case"forward":if(1<u){for(let t=0;t<u;t++)m+=d[t],m.length>=this.minlength&&this.push_index(a,m,p,e,n);break}default:if(this.boost&&(p=Math.min(0|p/this.boost(t,d,c),l-1)),this.push_index(a,d,p,e,n),o&&1<r&&c<r-1){const a=s(),l=this.resolution_ctx,u=d,p=Math.min(o+1,r-c);a[u]=1;for(let s=1;s<p;s++)if(d=t[this.rtl?r-1-c-s:c+s],d&&d.length>=this.minlength&&!a[d]){a[d]=1;const t=b(l+(r/2>l?0:1),r,c,p-1,s-1),o=this.bidirectional&&d>u;this.push_index(i,o?u:d,t,e,n,o?d:u)}}}}}this.fastupdate||(this.register[e]=1)}}return this},y.prototype.push_index=function(e,t,n,i,r,a){let o=a?this.ctx:this.map;if((!e[t]||a&&!e[t][a])&&(this.optimize&&(o=o[n]),a?((e=e[t]||(e[t]=s()))[a]=1,o=o[a]||(o[a]=s())):e[t]=1,o=o[t]||(o[t]=[]),this.optimize||(o=o[n]||(o[n]=[])),(!r||!o.includes(i))&&(o[o.length]=i,this.fastupdate))){const e=this.register[i]||(this.register[i]=[]);e[e.length]=o}},y.prototype.search=function(e,t,n){n||(!t&&a(e)?e=(n=e).query:a(t)&&(n=t));let r,o,l,c=[],d=0;if(n&&(e=n.query||e,t=n.limit,d=n.offset||0,o=n.context,l=n.suggest),e&&(r=(e=this.encode(""+e)).length,1<r)){const t=s(),n=[];for(let s,i=0,a=0;i<r;i++)if(s=e[i],s&&s.length>=this.minlength&&!t[s]){if(!this.optimize&&!l&&!this.map[s])return c;n[a++]=s,t[s]=1}r=(e=n).length}if(!r)return c;t||(t=100);let u,p=this.depth&&1<r&&!1!==o,m=0;p?(u=e[0],m=1):1<r&&e.sort(i);for(let n,s;m<r;m++){if(s=e[m],p?(n=this.add_result(c,l,t,d,2===r,s,u),(!l||!1!==n||!c.length)&&(u=s)):n=this.add_result(c,l,t,d,1===r,s),n)return n;if(l&&m==r-1){let e=c.length;if(!e){if(p){p=0,m=-1;continue}return c}if(1===e)return w(c[0],t,d)}}return function(e,t,n,i){const r=e.length;let a,o,l=[],c=0;i&&(i=[]);for(let d=r-1;0<=d;d--){const u=e[d],p=u.length,m=s();let h=!a;for(let e=0;e<p;e++){const s=u[e],p=s.length;if(p)for(let e,u,f=0;f<p;f++)if(u=s[f],a){if(a[u]){if(!d)if(n)n--;else if(l[c++]=u,c===t)return l;(d||i)&&(m[u]=1),h=!0}if(i&&(e=(o[u]||0)+1,o[u]=e,e<r)){const t=i[e-2]||(i[e-2]=[]);t[t.length]=u}}else m[u]=1}if(i)a||(o=m);else if(!h)return[];a=m}if(i)for(let e,s,r=i.length-1;0<=r;r--){e=i[r],s=e.length;for(let i,r=0;r<s;r++)if(i=e[r],!a[i]){if(n)n--;else if(l[c++]=i,c===t)return l;a[i]=1}}return l}(c,t,d,l)},y.prototype.add_result=function(e,t,n,s,i,r,a){let o=[],l=a?this.ctx:this.map;if(this.optimize||(l=S(l,r,a,this.bidirectional)),l){let t=0;const c=Math.min(l.length,a?this.resolution_ctx:this.resolution);for(let e,d,u=0,p=0;u<c&&(e=l[u],!(e&&(this.optimize&&(e=S(e,r,a,this.bidirectional)),s&&e&&i&&(d=e.length,d<=s?(s-=d,e=null):(e=e.slice(s),s=0)),e&&(o[t++]=e,i&&(p+=e.length,p>=n)))));u++);if(t)return i?w(o,n,0):void(e[e.length]=o)}return!t&&o},y.prototype.contain=function(e){return!!this.register[e]},y.prototype.update=function(e,t){return this.remove(e).add(e,t)},y.prototype.remove=function(e,t){const n=this.register[e];if(n){if(this.fastupdate)for(let t,s=0;s<n.length;s++)t=n[s],t.splice(t.indexOf(e),1);else E(this.map,e,this.resolution,this.optimize),this.depth&&E(this.ctx,e,this.resolution_ctx,this.optimize);t||delete this.register[e],this.cache&&this.cache.del(e)}return this},y.prototype.searchCache=function(e,t,n){a(e)&&(e=e.query);let s=this.cache.get(e);return s||(s=this.search(e,t,n),this.cache.set(e,s)),s},y.prototype.export=function(e,t,n,i,r){let a,o;switch(r||(r=0)){case 0:if(a="reg",this.fastupdate)for(let e in o=s(),this.register)o[e]=1;else o=this.register;break;case 1:a="cfg",o={doc:0,opt:this.optimize?1:0};break;case 2:a="map",o=this.map;break;case 3:a="ctx",o=this.ctx;break;default:return}return function(e,t,n,s,i,r,a){setTimeout((function(){const o=e(n?n+"."+s:s,JSON.stringify(a));o&&o.then?o.then((function(){t.export(e,t,n,i,r+1)})):t.export(e,t,n,i,r+1)}))}(e,t||this,n,a,i,r,o),!0},y.prototype.import=function(e,t){t&&(r(t)&&(t=JSON.parse(t)),"cfg"===e?this.optimize=!!t.opt:"reg"===e?(this.fastupdate=!1,this.register=t):"map"===e?this.map=t:"ctx"===e&&(this.ctx=t))},f(T=y.prototype,"add"),f(T,"append"),f(T,"search"),f(T,"update"),f(T,"remove");const x=new y({tokenize:"forward"});const L=[];const C=(e,t,n,s)=>{x.add(e,t),L.push({id:e,title:t,href:n,breadcrumb:s})};const M=(e,t)=>{const n=document.getElementById("mainnav");const s=document.querySelector(".mainnav__menu");const i=document.querySelectorAll(".submenu");const r=document.getElementById("searchresults");const a=r.querySelectorAll("li");const o=document.querySelector("#result-announcements");const l=document.getElementById("fullsearch-btn");if(!e)return s.style.overflowY="hidden",r.style.transitionProperty="opacity",r.style.transitionDuration="250ms",r.style.opacity=0,i[0].style.opacity=0,s.style.height=`${s.scrollHeight+4}px`,setTimeout((()=>{n.classList.remove("mainnav--is-search"),r.classList.remove("submenu--is-open"),i[0].classList.add("submenu--is-open");for(const e of a)e.classList.remove("searchresults__item--is-open");s.style.height=`calc(${i[0].scrollHeight}px + 1.5rem + 4px)`}),250),void setTimeout((()=>{i[0].style.opacity=1,s.style.overflowY="auto",r.style.removeProperty("transition-duration"),r.style.removeProperty("transition-property")}),500);r.classList.add("submenu--is-open"),n.classList.add("mainnav--is-search"),r.style.opacity=1,s.style.height=null;for(const e of i)e.classList.remove("submenu--is-open");if(t.length>0){r.querySelectorAll("li:not(.searchresults__item--fullsearch)").forEach((e=>{e.remove()}));for(const e of t)k(e,r,l);o.textContent=o.dataset.announcementResultsfound}else{for(const e of a)e.classList.remove("searchresults__item--is-open");o.textContent=o.dataset.announcementNoresults}};const k=(e,t,n)=>{const s=L.find((t=>t.id===e));const i=document.createElement("li");i.classList.add("searchresults__item","searchresults__item--is-open"),i.dataset.id=s.id,i.innerHTML=`\n    <a href="${s.href}">\n      <small><span class="visually-hidden">${t.dataset.voicecueContext}:</span> ${s.breadcrumb}</small>\n      <span class="visually-hidden">${t.dataset.voicecuePage}:</span>\n      <span>${s.title}</span>\n    </a>`,n.before(i)};const A=(()=>{let e;return e="undefined"==typeof rootlineArray?[]:rootlineArray,e})();const P=[[]];const _=(e,t,n="TH Rosenheim",s="",i=1)=>{for(const r of e){let e="";3===i&&(e=" · "),i>3&&(e=" ... ");const a=n+e+s;C(r.id,r.title,r.href,a);const o=A.includes(r.id);if(r.submenu){P[r.id]=[],z(r.id,"","",t,r.id,!1,!0);const e=r.id===A[A.length-1];z(r.id,r.title,r.href,"","",!0,!1,e),z(t,r.title,"",r.id,t,!1,!1,o);let s=n;1===i&&(s=r.title);let a="";i>1&&(a=r.title),_(r.submenu,r.id,s,a,i+1)}else z(t,r.title,r.href,null,null,!1,!1,o)}};const z=(e,t,n,s,i,r=!1,a=!1,o=!1)=>{P[e].push({title:t,href:n,nextMenuId:s,prevMenuId:i,isOverview:r,isBackButton:a,isCurrent:o})};const I=(e=0)=>{const t=document.getElementById("mainnavMenu");const n=document.createElement("ul");n.classList.add("submenu"),n.id=`submenu-${e}`;for(const{title:s,href:i,nextMenuId:r,prevMenuId:a,isOverview:o,isBackButton:l,isCurrent:c}of P[e]){const e=document.createElement("li");let d="";if(c&&(e.classList.add("submenu__item--current"),d='aria-current="page"'),i){const n=o?`${t.dataset.translationOverview}: `:"";e.innerHTML=`\n      <a href="${i}" ${d}>\n        ${n}\n        ${s}\n      </a>`}else{const n=document.createElement("button");l?(n.innerHTML=`${t.dataset.translationBack}\n          <span class="visually-hidden">${t.dataset.translationBackTarget}</span>`,n.classList.add("submenu__back-button")):(n.innerHTML=`<span class="visually-hidden">${t.dataset.translationOpenSubmenu}</span>\n           ${s}`,n.classList.add("submenu__switch-menu-button"));const i=r;const o=a;n.addEventListener("click",(e=>{e.preventDefault(),O(i,o,l)})),e.appendChild(n)}n.appendChild(e)}return t.appendChild(n),n};const O=(e,t,n)=>{let s=document.getElementById(`submenu-${e}`);s||(s=I(e));const i=document.getElementById(`submenu-${t}`);const r=n?"submenu--slide-out-right":"submenu--slide-out-left";i.classList.add(r),i.style.opacity=0,setTimeout((()=>{i.classList.remove("submenu--is-open",r),i.style.opacity=null}),250);const a=document.getElementById("mainnavMenu");a.style.overflowY="hidden",s.style.opacity=0,s.classList.add("submenu--is-open"),a.style.height=`calc(${s.scrollHeight}px + 1.5rem + 4px)`,setTimeout((()=>{a.style.overflowY="auto",s.style.opacity=1}),250);s.querySelector("li > *").focus()};const q=(e,t=500,n="block")=>"none"===window.getComputedStyle(e).display?$(e,t,n):B(e,t);const B=(e,t=500)=>{e.style.transitionProperty="height, margin, padding, border-width",e.style.transitionDuration=t+"ms",e.style.boxSizing="border-box",e.style.height=e.offsetHeight+"px",e.offsetHeight,e.style.overflow="hidden",e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0,e.style.marginTop=0,e.style.marginBottom=0,e.style.borderTopWidth=0,e.style.borderBottomWidth=0,window.setTimeout((()=>{e.style.display="none",e.style.removeProperty("height"),e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("margin-top"),e.style.removeProperty("margin-bottom"),e.style.removeProperty("border-top-width"),e.style.removeProperty("border-bottom-width"),e.style.removeProperty("overflow"),e.style.removeProperty("transition-duration"),e.style.removeProperty("transition-property")}),t)};const $=(e,t=500,n="block")=>{e.style.removeProperty("display"),e.style.display=n;const s=e.offsetHeight;e.style.overflow="hidden",e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0,e.style.marginTop=0,e.style.marginBottom=0,e.style.borderTopWidth=0,e.style.borderBottomWidth=0,e.offsetHeight,e.style.boxSizing="border-box",e.style.transitionProperty="height, margin, padding, border-width",e.style.transitionDuration=t+"ms",e.style.height=s+"px",e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("margin-top"),e.style.removeProperty("margin-bottom"),e.style.removeProperty("border-top-width"),e.style.removeProperty("border-bottom-width"),window.setTimeout((()=>{e.style.removeProperty("height"),e.style.removeProperty("overflow"),e.style.removeProperty("transition-duration"),e.style.removeProperty("transition-property")}),t)};const G=(e,t)=>{const n=document.querySelector(".mainnav__input");const s=!!document.querySelector("#searchresults.submenu--is-open");let i=document.querySelectorAll(".submenu--is-open > li > *");s&&(i=document.querySelectorAll(".searchresults__item--is-open > *, .searchresults__item--fullsearch > *"));const r=n;const a=i[i.length-1];switch(e.key){case"Escape":case"ArrowUp":case"ArrowDown":e.preventDefault()}"Escape"===e.key&&t(),"Tab"===e.key&&(e.shiftKey&&e.target===r?(e.preventDefault(),a.focus()):e.target!==a||e.shiftKey||(e.preventDefault(),r.focus())),"ArrowUp"===e.key&&e.target instanceof HTMLInputElement&&a.focus(),"ArrowDown"===e.key&&e.target instanceof HTMLInputElement&&i[0].focus(),"ArrowRight"===e.key&&e.target.classList.contains("submenu__switch-menu-button")&&(e.preventDefault(),e.target.click()),"ArrowLeft"===e.key&&e.target.classList.contains("submenu__back-button")&&(e.preventDefault(),e.target.click());const o=(e.target instanceof HTMLAnchorElement||e.target instanceof HTMLButtonElement)&&e.target.closest(".mainnav__menu");const l=t=>{if(o){let n;if(n="down"===t?e.target.parentElement.nextElementSibling:e.target.parentElement.previousElementSibling,s){let e=n;for(n=null;e;){if(e.classList.contains("searchresults__item--is-open")||e.classList.contains("searchresults__item--fullsearch")){n=e;break}e="down"===t?e.nextElementSibling:e.previousElementSibling}}null==n?r.focus():n.firstElementChild.focus()}};"ArrowDown"===e.key?l("down"):"ArrowUp"===e.key&&l("up")};const D=new IntersectionObserver((e=>{e.forEach((e=>{const t=e.target.getAttribute("id");e.isIntersecting?document.querySelector(`.backend-layout-nav li a[href="#${t}"]`).parentElement.classList.add("backend-layout-nav__link--active"):document.querySelector(`.backend-layout-nav li a[href="#${t}"]`).parentElement.classList.remove("backend-layout-nav__link--active")}))}),{rootMargin:"-50% 0px"});function F(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function H(e={},t={}){Object.keys(t).forEach((n=>{void 0===e[n]?e[n]=t[n]:F(t[n])&&F(e[n])&&Object.keys(t[n]).length>0&&H(e[n],t[n])}))}document.querySelectorAll(".backend-layout-section").forEach((e=>{D.observe(e)}));const N={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function V(){const e="undefined"!=typeof document?document:{};return H(e,N),e}const R={document:N,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function W(){const e="undefined"!=typeof window?window:{};return H(e,R),e}function j(e,t=0){return setTimeout(e,t)}function Y(){return Date.now()}function X(e,t="x"){const n=W();let s;let i;let r;const a=function(e){const t=W();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}(e);return n.WebKitCSSMatrix?(i=a.transform||a.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map((e=>e.replace(",","."))).join(", ")),r=new n.WebKitCSSMatrix("none"===i?"":i)):(r=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=r.toString().split(",")),"x"===t&&(i=n.WebKitCSSMatrix?r.m41:16===s.length?parseFloat(s[12]):parseFloat(s[4])),"y"===t&&(i=n.WebKitCSSMatrix?r.m42:16===s.length?parseFloat(s[13]):parseFloat(s[5])),i||0}function U(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function K(...e){const t=Object(e[0]);const n=["__proto__","constructor","prototype"];for(let i=1;i<e.length;i+=1){const r=e[i];if(null!=r&&(s=r,!("undefined"!=typeof window&&void 0!==window.HTMLElement?s instanceof HTMLElement:s&&(1===s.nodeType||11===s.nodeType)))){const e=Object.keys(Object(r)).filter((e=>n.indexOf(e)<0));for(let n=0,s=e.length;n<s;n+=1){const s=e[n];const i=Object.getOwnPropertyDescriptor(r,s);void 0!==i&&i.enumerable&&(U(t[s])&&U(r[s])?r[s].__swiper__?t[s]=r[s]:K(t[s],r[s]):!U(t[s])&&U(r[s])?(t[s]={},r[s].__swiper__?t[s]=r[s]:K(t[s],r[s])):t[s]=r[s])}}}var s;return t}function J(e,t,n){e.style.setProperty(t,n)}function Z({swiper:e,targetPosition:t,side:n}){const s=W();const i=-e.translate;let r=null;let a;const o=e.params.speed;e.wrapperEl.style.scrollSnapType="none",s.cancelAnimationFrame(e.cssModeFrameID);const l=t>i?"next":"prev";const c=(e,t)=>"next"===l&&e>=t||"prev"===l&&e<=t;const d=()=>{a=(new Date).getTime(),null===r&&(r=a);const l=Math.max(Math.min((a-r)/o,1),0);const u=.5-Math.cos(l*Math.PI)/2;let p=i+u*(t-i);if(c(p,t)&&(p=t),e.wrapperEl.scrollTo({[n]:p}),c(p,t))return e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout((()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:p})})),void s.cancelAnimationFrame(e.cssModeFrameID);e.cssModeFrameID=s.requestAnimationFrame(d)};d()}function Q(e,t=""){return[...e.children].filter((e=>e.matches(t)))}function ee(e,t=[]){const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:[t]),n}function te(e,t){return W().getComputedStyle(e,null).getPropertyValue(t)}function ne(e){let t=e;let n;if(t){for(n=0;null!==(t=t.previousSibling);)1===t.nodeType&&(n+=1);return n}}function se(e,t){const n=[];let s=e.parentElement;for(;s;)t?s.matches(t)&&n.push(s):n.push(s),s=s.parentElement;return n}function ie(e,t,n){const s=W();return n?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(s.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(s.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}let re;function ae(){return re||(re=function(){const e=W();const t=V();return{smoothScroll:t.documentElement&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),re}let oe;function le(e={}){return oe||(oe=function({userAgent:e}={}){const t=ae();const n=W();const s=n.navigator.platform;const i=e||n.navigator.userAgent;const r={ios:!1,android:!1};const a=n.screen.width;const o=n.screen.height;const l=i.match(/(Android);?[\s\/]+([\d.]+)?/);let c=i.match(/(iPad).*OS\s([\d_]+)/);const d=i.match(/(iPod)(.*OS\s([\d_]+))?/);const u=!c&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/);const p="Win32"===s;let m="MacIntel"===s;return!c&&m&&t.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${a}x${o}`)>=0&&(c=i.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),m=!1),l&&!p&&(r.os="android",r.android=!0),(c||u||d)&&(r.os="ios",r.ios=!0),r}(e)),oe}let ce;function de(){return ce||(ce=function(){const e=W();let t=!1;function n(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(n()){const n=String(e.navigator.userAgent);if(n.includes("Version/")){const[e,s]=n.split("Version/")[1].split(" ")[0].split(".").map((e=>Number(e)));t=e<16||16===e&&s<2}}return{isSafari:t||n(),needPerspectiveFix:t,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}()),ce}var ue={on(e,t,n){const s=this;if(!s.eventsListeners||s.destroyed)return s;if("function"!=typeof t)return s;const i=n?"unshift":"push";return e.split(" ").forEach((e=>{s.eventsListeners[e]||(s.eventsListeners[e]=[]),s.eventsListeners[e][i](t)})),s},once(e,t,n){const s=this;if(!s.eventsListeners||s.destroyed)return s;if("function"!=typeof t)return s;function i(...n){s.off(e,i),i.__emitterProxy&&delete i.__emitterProxy,t.apply(s,n)}return i.__emitterProxy=t,s.on(e,i,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof e)return n;const s=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[s](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed?n:n.eventsListeners?(e.split(" ").forEach((e=>{void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach(((s,i)=>{(s===t||s.__emitterProxy&&s.__emitterProxy===t)&&n.eventsListeners[e].splice(i,1)}))})),n):n},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsListeners)return t;let n;let s;let i;"string"==typeof e[0]||Array.isArray(e[0])?(n=e[0],s=e.slice(1,e.length),i=t):(n=e[0].events,s=e[0].data,i=e[0].context||t),s.unshift(i);return(Array.isArray(n)?n:n.split(" ")).forEach((e=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach((t=>{t.apply(i,[e,...s])})),t.eventsListeners&&t.eventsListeners[e]&&t.eventsListeners[e].forEach((e=>{e.apply(i,s)}))})),t}};var pe={updateSize:function(){const e=this;let t;let n;const s=e.el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:s.clientWidth,n=void 0!==e.params.height&&null!==e.params.height?e.params.height:s.clientHeight,0===t&&e.isHorizontal()||0===n&&e.isVertical()||(t=t-parseInt(te(s,"padding-left")||0,10)-parseInt(te(s,"padding-right")||0,10),n=n-parseInt(te(s,"padding-top")||0,10)-parseInt(te(s,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))},updateSlides:function(){const e=this;function t(t){return e.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}function n(e,n){return parseFloat(e.getPropertyValue(t(n))||0)}const s=e.params;const{wrapperEl:i,slidesEl:r,size:a,rtlTranslate:o,wrongRTL:l}=e;const c=e.virtual&&s.virtual.enabled;const d=c?e.virtual.slides.length:e.slides.length;const u=Q(r,`.${e.params.slideClass}, swiper-slide`);const p=c?e.virtual.slides.length:u.length;let m=[];const h=[];const f=[];let g=s.slidesOffsetBefore;"function"==typeof g&&(g=s.slidesOffsetBefore.call(e));let v=s.slidesOffsetAfter;"function"==typeof v&&(v=s.slidesOffsetAfter.call(e));const y=e.snapGrid.length;const b=e.slidesGrid.length;let w=s.spaceBetween;let S=-g;let E=0;let T=0;if(void 0===a)return;"string"==typeof w&&w.indexOf("%")>=0&&(w=parseFloat(w.replace("%",""))/100*a),e.virtualSize=-w,u.forEach((e=>{o?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""})),s.centeredSlides&&s.cssMode&&(J(i,"--swiper-centered-offset-before",""),J(i,"--swiper-centered-offset-after",""));const x=s.grid&&s.grid.rows>1&&e.grid;let L;x&&e.grid.initSlides(p);const C="auto"===s.slidesPerView&&s.breakpoints&&Object.keys(s.breakpoints).filter((e=>void 0!==s.breakpoints[e].slidesPerView)).length>0;for(let i=0;i<p;i+=1){let r;if(L=0,u[i]&&(r=u[i]),x&&e.grid.updateSlide(i,r,p,t),!u[i]||"none"!==te(r,"display")){if("auto"===s.slidesPerView){C&&(u[i].style[t("width")]="");const a=getComputedStyle(r);const o=r.style.transform;const l=r.style.webkitTransform;if(o&&(r.style.transform="none"),l&&(r.style.webkitTransform="none"),s.roundLengths)L=e.isHorizontal()?ie(r,"width",!0):ie(r,"height",!0);else{const e=n(a,"width");const t=n(a,"padding-left");const s=n(a,"padding-right");const i=n(a,"margin-left");const o=n(a,"margin-right");const l=a.getPropertyValue("box-sizing");if(l&&"border-box"===l)L=e+i+o;else{const{clientWidth:n,offsetWidth:a}=r;L=e+t+s+i+o+(a-n)}}o&&(r.style.transform=o),l&&(r.style.webkitTransform=l),s.roundLengths&&(L=Math.floor(L))}else L=(a-(s.slidesPerView-1)*w)/s.slidesPerView,s.roundLengths&&(L=Math.floor(L)),u[i]&&(u[i].style[t("width")]=`${L}px`);u[i]&&(u[i].swiperSlideSize=L),f.push(L),s.centeredSlides?(S=S+L/2+E/2+w,0===E&&0!==i&&(S=S-a/2-w),0===i&&(S=S-a/2-w),Math.abs(S)<.001&&(S=0),s.roundLengths&&(S=Math.floor(S)),T%s.slidesPerGroup==0&&m.push(S),h.push(S)):(s.roundLengths&&(S=Math.floor(S)),(T-Math.min(e.params.slidesPerGroupSkip,T))%e.params.slidesPerGroup==0&&m.push(S),h.push(S),S=S+L+w),e.virtualSize+=L+w,E=L,T+=1}}if(e.virtualSize=Math.max(e.virtualSize,a)+v,o&&l&&("slide"===s.effect||"coverflow"===s.effect)&&(i.style.width=`${e.virtualSize+s.spaceBetween}px`),s.setWrapperSize&&(i.style[t("width")]=`${e.virtualSize+s.spaceBetween}px`),x&&e.grid.updateWrapperSize(L,m,t),!s.centeredSlides){const t=[];for(let n=0;n<m.length;n+=1){let i=m[n];s.roundLengths&&(i=Math.floor(i)),m[n]<=e.virtualSize-a&&t.push(i)}m=t,Math.floor(e.virtualSize-a)-Math.floor(m[m.length-1])>1&&m.push(e.virtualSize-a)}if(c&&s.loop){const t=f[0]+w;if(s.slidesPerGroup>1){const n=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/s.slidesPerGroup);const i=t*s.slidesPerGroup;for(let e=0;e<n;e+=1)m.push(m[m.length-1]+i)}for(let n=0;n<e.virtual.slidesBefore+e.virtual.slidesAfter;n+=1)1===s.slidesPerGroup&&m.push(m[m.length-1]+t),h.push(h[h.length-1]+t),e.virtualSize+=t}if(0===m.length&&(m=[0]),0!==s.spaceBetween){const n=e.isHorizontal()&&o?"marginLeft":t("marginRight");u.filter(((e,t)=>!(s.cssMode&&!s.loop)||t!==u.length-1)).forEach((e=>{e.style[n]=`${w}px`}))}if(s.centeredSlides&&s.centeredSlidesBounds){let e=0;f.forEach((t=>{e+=t+(s.spaceBetween?s.spaceBetween:0)})),e-=s.spaceBetween;const t=e-a;m=m.map((e=>e<0?-g:e>t?t+v:e))}if(s.centerInsufficientSlides){let e=0;if(f.forEach((t=>{e+=t+(s.spaceBetween?s.spaceBetween:0)})),e-=s.spaceBetween,e<a){const t=(a-e)/2;m.forEach(((e,n)=>{m[n]=e-t})),h.forEach(((e,n)=>{h[n]=e+t}))}}if(Object.assign(e,{slides:u,snapGrid:m,slidesGrid:h,slidesSizesGrid:f}),s.centeredSlides&&s.cssMode&&!s.centeredSlidesBounds){J(i,"--swiper-centered-offset-before",-m[0]+"px"),J(i,"--swiper-centered-offset-after",e.size/2-f[f.length-1]/2+"px");const t=-e.snapGrid[0];const n=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((e=>e+t)),e.slidesGrid=e.slidesGrid.map((e=>e+n))}if(p!==d&&e.emit("slidesLengthChange"),m.length!==y&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==b&&e.emit("slidesGridLengthChange"),s.watchSlidesProgress&&e.updateSlidesOffset(),!(c||s.cssMode||"slide"!==s.effect&&"fade"!==s.effect)){const t=`${s.containerModifierClass}backface-hidden`;const n=e.el.classList.contains(t);p<=s.maxBackfaceHiddenSlides?n||e.el.classList.add(t):n&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this;const n=[];const s=t.virtual&&t.params.virtual.enabled;let i=0;let r;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const a=e=>s?t.slides.filter((t=>parseInt(t.getAttribute("data-swiper-slide-index"),10)===e))[0]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach((e=>{n.push(e)}));else for(r=0;r<Math.ceil(t.params.slidesPerView);r+=1){const e=t.activeIndex+r;if(e>t.slides.length&&!s)break;n.push(a(e))}else n.push(a(t.activeIndex));for(r=0;r<n.length;r+=1)if(void 0!==n[r]){const e=n[r].offsetHeight;i=e>i?e:i}(i||0===i)&&(t.wrapperEl.style.height=`${i}px`)},updateSlidesOffset:function(){const e=this;const t=e.slides;const n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let s=0;s<t.length;s+=1)t[s].swiperSlideOffset=(e.isHorizontal()?t[s].offsetLeft:t[s].offsetTop)-n},updateSlidesProgress:function(e=this&&this.translate||0){const t=this;const n=t.params;const{slides:s,rtlTranslate:i,snapGrid:r}=t;if(0===s.length)return;void 0===s[0].swiperSlideOffset&&t.updateSlidesOffset();let a=-e;i&&(a=e),s.forEach((e=>{e.classList.remove(n.slideVisibleClass)})),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(let e=0;e<s.length;e+=1){const o=s[e];let l=o.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(l-=s[0].swiperSlideOffset);const c=(a+(n.centeredSlides?t.minTranslate():0)-l)/(o.swiperSlideSize+n.spaceBetween);const d=(a-r[0]+(n.centeredSlides?t.minTranslate():0)-l)/(o.swiperSlideSize+n.spaceBetween);const u=-(a-l);const p=u+t.slidesSizesGrid[e];(u>=0&&u<t.size-1||p>1&&p<=t.size||u<=0&&p>=t.size)&&(t.visibleSlides.push(o),t.visibleSlidesIndexes.push(e),s[e].classList.add(n.slideVisibleClass)),o.progress=i?-c:c,o.originalProgress=i?-d:d}},updateProgress:function(e){const t=this;if(void 0===e){const n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}const n=t.params;const s=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:r,isEnd:a,progressLoop:o}=t;const l=r;const c=a;if(0===s)i=0,r=!0,a=!0;else{i=(e-t.minTranslate())/s;const n=Math.abs(e-t.minTranslate())<1;const o=Math.abs(e-t.maxTranslate())<1;r=n||i<=0,a=o||i>=1,n&&(i=0),o&&(i=1)}if(n.loop){const n=ne(t.slides.filter((e=>"0"===e.getAttribute("data-swiper-slide-index")))[0]);const s=ne(t.slides.filter((e=>1*e.getAttribute("data-swiper-slide-index")==t.slides.length-1))[0]);const i=t.slidesGrid[n];const r=t.slidesGrid[s];const a=t.slidesGrid[t.slidesGrid.length-1];const l=Math.abs(e);o=l>=i?(l-i)/a:(l+a-r)/a,o>1&&(o-=1)}Object.assign(t,{progress:i,progressLoop:o,isBeginning:r,isEnd:a}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),r&&!l&&t.emit("reachBeginning toEdge"),a&&!c&&t.emit("reachEnd toEdge"),(l&&!r||c&&!a)&&t.emit("fromEdge"),t.emit("progress",i)},updateSlidesClasses:function(){const e=this;const{slides:t,params:n,slidesEl:s,activeIndex:i}=e;const r=e.virtual&&n.virtual.enabled;const a=e=>Q(s,`.${n.slideClass}${e}, swiper-slide${e}`)[0];let o;if(t.forEach((e=>{e.classList.remove(n.slideActiveClass,n.slideNextClass,n.slidePrevClass)})),r)if(n.loop){let t=i-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),o=a(`[data-swiper-slide-index="${t}"]`)}else o=a(`[data-swiper-slide-index="${i}"]`);else o=t[i];if(o){o.classList.add(n.slideActiveClass);let e=function(e,t){const n=[];for(;e.nextElementSibling;){const s=e.nextElementSibling;t?s.matches(t)&&n.push(s):n.push(s),e=s}return n}(o,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!e&&(e=t[0]),e&&e.classList.add(n.slideNextClass);let s=function(e,t){const n=[];for(;e.previousElementSibling;){const s=e.previousElementSibling;t?s.matches(t)&&n.push(s):n.push(s),e=s}return n}(o,`.${n.slideClass}, swiper-slide`)[0];n.loop&&0===!s&&(s=t[t.length-1]),s&&s.classList.add(n.slidePrevClass)}e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this;const n=t.rtlTranslate?t.translate:-t.translate;const{snapGrid:s,params:i,activeIndex:r,realIndex:a,snapIndex:o}=t;let l=e;let c;const d=e=>{let n=e-t.virtual.slidesBefore;return n<0&&(n=t.virtual.slides.length+n),n>=t.virtual.slides.length&&(n-=t.virtual.slides.length),n};if(void 0===l&&(l=function(e){const{slidesGrid:t,params:n}=e;const s=e.rtlTranslate?e.translate:-e.translate;let i;for(let e=0;e<t.length;e+=1)void 0!==t[e+1]?s>=t[e]&&s<t[e+1]-(t[e+1]-t[e])/2?i=e:s>=t[e]&&s<t[e+1]&&(i=e+1):s>=t[e]&&(i=e);return n.normalizeSlideIndex&&(i<0||void 0===i)&&(i=0),i}(t)),s.indexOf(n)>=0)c=s.indexOf(n);else{const e=Math.min(i.slidesPerGroupSkip,l);c=e+Math.floor((l-e)/i.slidesPerGroup)}if(c>=s.length&&(c=s.length-1),l===r)return c!==o&&(t.snapIndex=c,t.emit("snapIndexChange")),void(t.params.loop&&t.virtual&&t.params.virtual.enabled&&(t.realIndex=d(l)));let u;u=t.virtual&&i.virtual.enabled&&i.loop?d(l):t.slides[l]?parseInt(t.slides[l].getAttribute("data-swiper-slide-index")||l,10):l,Object.assign(t,{snapIndex:c,realIndex:u,previousIndex:r,activeIndex:l}),t.emit("activeIndexChange"),t.emit("snapIndexChange"),a!==u&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")},updateClickedSlide:function(e){const t=this;const n=t.params;const s=e.closest(`.${n.slideClass}, swiper-slide`);let i=!1;let r;if(s)for(let e=0;e<t.slides.length;e+=1)if(t.slides[e]===s){i=!0,r=e;break}if(!s||!i)return t.clickedSlide=void 0,void(t.clickedIndex=void 0);t.clickedSlide=s,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(s.getAttribute("data-swiper-slide-index"),10):t.clickedIndex=r,n.slideToClickedSlide&&void 0!==t.clickedIndex&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}};var me={getTranslate:function(e=(this.isHorizontal()?"x":"y")){const{params:t,rtlTranslate:n,translate:s,wrapperEl:i}=this;if(t.virtualTranslate)return n?-s:s;if(t.cssMode)return s;let r=X(i,e);return n&&(r=-r),r||0},setTranslate:function(e,t){const n=this;const{rtlTranslate:s,params:i,wrapperEl:r,progress:a}=n;let o=0;let l=0;let c;n.isHorizontal()?o=s?-e:e:l=e,i.roundLengths&&(o=Math.floor(o),l=Math.floor(l)),i.cssMode?r[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-o:-l:i.virtualTranslate||(r.style.transform=`translate3d(${o}px, ${l}px, 0px)`),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?o:l;const d=n.maxTranslate()-n.minTranslate();c=0===d?0:(e-n.minTranslate())/d,c!==a&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e=0,t=this.params.speed,n=!0,s=!0,i){const r=this;const{params:a,wrapperEl:o}=r;if(r.animating&&a.preventInteractionOnTransition)return!1;const l=r.minTranslate();const c=r.maxTranslate();let d;if(d=s&&e>l?l:s&&e<c?c:e,r.updateProgress(d),a.cssMode){const e=r.isHorizontal();if(0===t)o[e?"scrollLeft":"scrollTop"]=-d;else{if(!r.support.smoothScroll)return Z({swiper:r,targetPosition:-d,side:e?"left":"top"}),!0;o.scrollTo({[e?"left":"top"]:-d,behavior:"smooth"})}return!0}return 0===t?(r.setTransition(0),r.setTranslate(d),n&&(r.emit("beforeTransitionStart",t,i),r.emit("transitionEnd"))):(r.setTransition(t),r.setTranslate(d),n&&(r.emit("beforeTransitionStart",t,i),r.emit("transitionStart")),r.animating||(r.animating=!0,r.onTranslateToWrapperTransitionEnd||(r.onTranslateToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.onTranslateToWrapperTransitionEnd=null,delete r.onTranslateToWrapperTransitionEnd,n&&r.emit("transitionEnd"))}),r.wrapperEl.addEventListener("transitionend",r.onTranslateToWrapperTransitionEnd))),!0}};function he({swiper:e,runCallbacks:t,direction:n,step:s}){const{activeIndex:i,previousIndex:r}=e;let a=n;if(a||(a=i>r?"next":i<r?"prev":"reset"),e.emit(`transition${s}`),t&&i!==r){if("reset"===a)return void e.emit(`slideResetTransition${s}`);e.emit(`slideChangeTransition${s}`),"next"===a?e.emit(`slideNextTransition${s}`):e.emit(`slidePrevTransition${s}`)}}var fe={slideTo:function(e=0,t=this.params.speed,n=!0,s,i){"string"==typeof e&&(e=parseInt(e,10));const r=this;let a=e;a<0&&(a=0);const{params:o,snapGrid:l,slidesGrid:c,previousIndex:d,activeIndex:u,rtlTranslate:p,wrapperEl:m,enabled:h}=r;if(r.animating&&o.preventInteractionOnTransition||!h&&!s&&!i)return!1;const f=Math.min(r.params.slidesPerGroupSkip,a);let g=f+Math.floor((a-f)/r.params.slidesPerGroup);g>=l.length&&(g=l.length-1);const v=-l[g];if(o.normalizeSlideIndex)for(let e=0;e<c.length;e+=1){const t=-Math.floor(100*v);const n=Math.floor(100*c[e]);const s=Math.floor(100*c[e+1]);void 0!==c[e+1]?t>=n&&t<s-(s-n)/2?a=e:t>=n&&t<s&&(a=e+1):t>=n&&(a=e)}if(r.initialized&&a!==u){if(!r.allowSlideNext&&v<r.translate&&v<r.minTranslate())return!1;if(!r.allowSlidePrev&&v>r.translate&&v>r.maxTranslate()&&(u||0)!==a)return!1}let y;if(a!==(d||0)&&n&&r.emit("beforeSlideChangeStart"),r.updateProgress(v),y=a>u?"next":a<u?"prev":"reset",p&&-v===r.translate||!p&&v===r.translate)return r.updateActiveIndex(a),o.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),"slide"!==o.effect&&r.setTranslate(v),"reset"!==y&&(r.transitionStart(n,y),r.transitionEnd(n,y)),!1;if(o.cssMode){const e=r.isHorizontal();const n=p?v:-v;if(0===t){const t=r.virtual&&r.params.virtual.enabled;t&&(r.wrapperEl.style.scrollSnapType="none",r._immediateVirtual=!0),t&&!r._cssModeVirtualInitialSet&&r.params.initialSlide>0?(r._cssModeVirtualInitialSet=!0,requestAnimationFrame((()=>{m[e?"scrollLeft":"scrollTop"]=n}))):m[e?"scrollLeft":"scrollTop"]=n,t&&requestAnimationFrame((()=>{r.wrapperEl.style.scrollSnapType="",r._immediateVirtual=!1}))}else{if(!r.support.smoothScroll)return Z({swiper:r,targetPosition:n,side:e?"left":"top"}),!0;m.scrollTo({[e?"left":"top"]:n,behavior:"smooth"})}return!0}return r.setTransition(t),r.setTranslate(v),r.updateActiveIndex(a),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,s),r.transitionStart(n,y),0===t?r.transitionEnd(n,y):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(n,y))}),r.wrapperEl.addEventListener("transitionend",r.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e=0,t=this.params.speed,n=!0,s){if("string"==typeof e){e=parseInt(e,10)}const i=this;let r=e;return i.params.loop&&(i.virtual&&i.params.virtual.enabled?r+=i.virtual.slidesBefore:r=ne(i.slides.filter((e=>1*e.getAttribute("data-swiper-slide-index")===r))[0])),i.slideTo(r,t,n,s)},slideNext:function(e=this.params.speed,t=!0,n){const s=this;const{enabled:i,params:r,animating:a}=s;if(!i)return s;let o=r.slidesPerGroup;"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(o=Math.max(s.slidesPerViewDynamic("current",!0),1));const l=s.activeIndex<r.slidesPerGroupSkip?1:o;const c=s.virtual&&r.virtual.enabled;if(r.loop){if(a&&!c&&r.loopPreventsSliding)return!1;s.loopFix({direction:"next"}),s._clientLeft=s.wrapperEl.clientLeft}return r.rewind&&s.isEnd?s.slideTo(0,e,t,n):s.slideTo(s.activeIndex+l,e,t,n)},slidePrev:function(e=this.params.speed,t=!0,n){const s=this;const{params:i,snapGrid:r,slidesGrid:a,rtlTranslate:o,enabled:l,animating:c}=s;if(!l)return s;const d=s.virtual&&i.virtual.enabled;if(i.loop){if(c&&!d&&i.loopPreventsSliding)return!1;s.loopFix({direction:"prev"}),s._clientLeft=s.wrapperEl.clientLeft}function u(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const p=u(o?s.translate:-s.translate);const m=r.map((e=>u(e)));let h=r[m.indexOf(p)-1];if(void 0===h&&i.cssMode){let e;r.forEach(((t,n)=>{p>=t&&(e=n)})),void 0!==e&&(h=r[e>0?e-1:e])}let f=0;if(void 0!==h&&(f=a.indexOf(h),f<0&&(f=s.activeIndex-1),"auto"===i.slidesPerView&&1===i.slidesPerGroup&&i.slidesPerGroupAuto&&(f=f-s.slidesPerViewDynamic("previous",!0)+1,f=Math.max(f,0))),i.rewind&&s.isBeginning){const i=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(i,e,t,n)}return s.slideTo(f,e,t,n)},slideReset:function(e=this.params.speed,t=!0,n){return this.slideTo(this.activeIndex,e,t,n)},slideToClosest:function(e=this.params.speed,t=!0,n,s=.5){const i=this;let r=i.activeIndex;const a=Math.min(i.params.slidesPerGroupSkip,r);const o=a+Math.floor((r-a)/i.params.slidesPerGroup);const l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[o]){const e=i.snapGrid[o];l-e>(i.snapGrid[o+1]-e)*s&&(r+=i.params.slidesPerGroup)}else{const e=i.snapGrid[o-1];l-e<=(i.snapGrid[o]-e)*s&&(r-=i.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,i.slidesGrid.length-1),i.slideTo(r,e,t,n)},slideToClickedSlide:function(){const e=this;const{params:t,slidesEl:n}=e;const s="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let i=e.clickedIndex;let r;const a=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;r=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?i<e.loopedSlides-s/2||i>e.slides.length-e.loopedSlides+s/2?(e.loopFix(),i=ne(Q(n,`${a}[data-swiper-slide-index="${r}"]`)[0]),j((()=>{e.slideTo(i)}))):e.slideTo(i):i>e.slides.length-s?(e.loopFix(),i=ne(Q(n,`${a}[data-swiper-slide-index="${r}"]`)[0]),j((()=>{e.slideTo(i)}))):e.slideTo(i)}else e.slideTo(i)}};var ge={loopCreate:function(e){const t=this;const{params:n,slidesEl:s}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;Q(s,`.${n.slideClass}, swiper-slide`).forEach(((e,t)=>{e.setAttribute("data-swiper-slide-index",t)})),t.loopFix({slideRealIndex:e,direction:n.centeredSlides?void 0:"next"})},loopFix:function({slideRealIndex:e,slideTo:t=!0,direction:n,setTranslate:s,activeSlideIndex:i,byController:r,byMousewheel:a}={}){const o=this;if(!o.params.loop)return;o.emit("beforeLoopFix");const{slides:l,allowSlidePrev:c,allowSlideNext:d,slidesEl:u,params:p}=o;if(o.allowSlidePrev=!0,o.allowSlideNext=!0,o.virtual&&p.virtual.enabled)return t&&(p.centeredSlides||0!==o.snapIndex?p.centeredSlides&&o.snapIndex<p.slidesPerView?o.slideTo(o.virtual.slides.length+o.snapIndex,0,!1,!0):o.snapIndex===o.snapGrid.length-1&&o.slideTo(o.virtual.slidesBefore,0,!1,!0):o.slideTo(o.virtual.slides.length,0,!1,!0)),o.allowSlidePrev=c,o.allowSlideNext=d,void o.emit("loopFix");const m="auto"===p.slidesPerView?o.slidesPerViewDynamic():Math.ceil(parseFloat(p.slidesPerView,10));let h=p.loopedSlides||m;h%p.slidesPerGroup!=0&&(h+=p.slidesPerGroup-h%p.slidesPerGroup),o.loopedSlides=h;const f=[];const g=[];let v=o.activeIndex;void 0===i?i=ne(o.slides.filter((e=>e.classList.contains("swiper-slide-active")))[0]):v=i;const y="next"===n||!n;const b="prev"===n||!n;let w=0;let S=0;if(i<h){w=h-i;for(let e=0;e<h-i;e+=1){const t=e-Math.floor(e/l.length)*l.length;f.push(l.length-t-1)}}else if(i>o.slides.length-2*h){S=i-(o.slides.length-2*h);for(let e=0;e<S;e+=1){const t=e-Math.floor(e/l.length)*l.length;g.push(t)}}if(b&&f.forEach((e=>{u.prepend(o.slides[e])})),y&&g.forEach((e=>{u.append(o.slides[e])})),o.recalcSlides(),p.watchSlidesProgress&&o.updateSlidesOffset(),t)if(f.length>0&&b)if(void 0===e){const e=o.slidesGrid[v];const t=o.slidesGrid[v+w]-e;a?o.setTranslate(o.translate-t):(o.slideTo(v+w,0,!1,!0),s&&(o.touches[o.isHorizontal()?"startX":"startY"]+=t))}else s&&o.slideToLoop(e,0,!1,!0);else if(g.length>0&&y)if(void 0===e){const e=o.slidesGrid[v];const t=o.slidesGrid[v-S]-e;a?o.setTranslate(o.translate-t):(o.slideTo(v-S,0,!1,!0),s&&(o.touches[o.isHorizontal()?"startX":"startY"]+=t))}else o.slideToLoop(e,0,!1,!0);if(o.allowSlidePrev=c,o.allowSlideNext=d,o.controller&&o.controller.control&&!r){const t={slideRealIndex:e,slideTo:!1,direction:n,setTranslate:s,activeSlideIndex:i,byController:!0};Array.isArray(o.controller.control)?o.controller.control.forEach((e=>{e.params.loop&&e.loopFix(t)})):o.controller.control instanceof o.constructor&&o.controller.control.params.loop&&o.controller.control.loopFix(t)}o.emit("loopFix")},loopDestroy:function(){const e=this;const{slides:t,params:n,slidesEl:s}=e;if(!n.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const i=[];t.forEach((e=>{const t=void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;i[t]=e})),t.forEach((e=>{e.removeAttribute("data-swiper-slide-index")})),i.forEach((e=>{s.append(e)})),e.recalcSlides(),e.slideTo(e.realIndex,0)}};function ve(e){const t=this;const n=V();const s=W();const i=t.touchEventsData;i.evCache.push(e);const{params:r,touches:a,enabled:o}=t;if(!o)return;if(!r.simulateTouch&&"mouse"===e.pointerType)return;if(t.animating&&r.preventInteractionOnTransition)return;!t.animating&&r.cssMode&&r.loop&&t.loopFix();let l=e;l.originalEvent&&(l=l.originalEvent);let c=l.target;if("wrapper"===r.touchEventsTarget&&!t.wrapperEl.contains(c))return;if("which"in l&&3===l.which)return;if("button"in l&&l.button>0)return;if(i.isTouched&&i.isMoved)return;const d=!!r.noSwipingClass&&""!==r.noSwipingClass;const u=e.composedPath?e.composedPath():e.path;d&&l.target&&l.target.shadowRoot&&u&&(c=u[0]);const p=r.noSwipingSelector?r.noSwipingSelector:`.${r.noSwipingClass}`;const m=!(!l.target||!l.target.shadowRoot);if(r.noSwiping&&(m?function(e,t=this){return function t(n){if(!n||n===V()||n===W())return null;n.assignedSlot&&(n=n.assignedSlot);const s=n.closest(e);return s||n.getRootNode?s||t(n.getRootNode().host):null}(t)}(p,c):c.closest(p)))return void(t.allowClick=!0);if(r.swipeHandler&&!c.closest(r.swipeHandler))return;a.currentX=l.pageX,a.currentY=l.pageY;const h=a.currentX;const f=a.currentY;const g=r.edgeSwipeDetection||r.iOSEdgeSwipeDetection;const v=r.edgeSwipeThreshold||r.iOSEdgeSwipeThreshold;if(g&&(h<=v||h>=s.innerWidth-v)){if("prevent"!==g)return;e.preventDefault()}Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=h,a.startY=f,i.touchStartTime=Y(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,r.threshold>0&&(i.allowThresholdMove=!1);let y=!0;c.matches(i.focusableElements)&&(y=!1,"SELECT"===c.nodeName&&(i.isTouched=!1)),n.activeElement&&n.activeElement.matches(i.focusableElements)&&n.activeElement!==c&&n.activeElement.blur();const b=y&&t.allowTouchMove&&r.touchStartPreventDefault;!r.touchStartForcePreventDefault&&!b||c.isContentEditable||l.preventDefault(),t.params.freeMode&&t.params.freeMode.enabled&&t.freeMode&&t.animating&&!r.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",l)}function ye(e){const t=V();const n=this;const s=n.touchEventsData;const{params:i,touches:r,rtlTranslate:a,enabled:o}=n;if(!o)return;if(!i.simulateTouch&&"mouse"===e.pointerType)return;let l=e;if(l.originalEvent&&(l=l.originalEvent),!s.isTouched)return void(s.startMoving&&s.isScrolling&&n.emit("touchMoveOpposite",l));const c=s.evCache.findIndex((e=>e.pointerId===l.pointerId));c>=0&&(s.evCache[c]=l);const d=s.evCache.length>1?s.evCache[0]:l;const u=d.pageX;const p=d.pageY;if(l.preventedByNestedSwiper)return r.startX=u,void(r.startY=p);if(!n.allowTouchMove)return l.target.matches(s.focusableElements)||(n.allowClick=!1),void(s.isTouched&&(Object.assign(r,{startX:u,startY:p,prevX:n.touches.currentX,prevY:n.touches.currentY,currentX:u,currentY:p}),s.touchStartTime=Y()));if(i.touchReleaseOnEdges&&!i.loop)if(n.isVertical()){if(p<r.startY&&n.translate<=n.maxTranslate()||p>r.startY&&n.translate>=n.minTranslate())return s.isTouched=!1,void(s.isMoved=!1)}else if(u<r.startX&&n.translate<=n.maxTranslate()||u>r.startX&&n.translate>=n.minTranslate())return;if(t.activeElement&&l.target===t.activeElement&&l.target.matches(s.focusableElements))return s.isMoved=!0,void(n.allowClick=!1);if(s.allowTouchCallbacks&&n.emit("touchMove",l),l.targetTouches&&l.targetTouches.length>1)return;r.currentX=u,r.currentY=p;const m=r.currentX-r.startX;const h=r.currentY-r.startY;if(n.params.threshold&&Math.sqrt(m**2+h**2)<n.params.threshold)return;if(void 0===s.isScrolling){let e;n.isHorizontal()&&r.currentY===r.startY||n.isVertical()&&r.currentX===r.startX?s.isScrolling=!1:m*m+h*h>=25&&(e=180*Math.atan2(Math.abs(h),Math.abs(m))/Math.PI,s.isScrolling=n.isHorizontal()?e>i.touchAngle:90-e>i.touchAngle)}if(s.isScrolling&&n.emit("touchMoveOpposite",l),void 0===s.startMoving&&(r.currentX===r.startX&&r.currentY===r.startY||(s.startMoving=!0)),s.isScrolling||n.zoom&&n.params.zoom&&n.params.zoom.enabled&&s.evCache.length>1)return void(s.isTouched=!1);if(!s.startMoving)return;n.allowClick=!1,!i.cssMode&&l.cancelable&&l.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&l.stopPropagation();let f=n.isHorizontal()?m:h;let g=n.isHorizontal()?r.currentX-r.previousX:r.currentY-r.previousY;i.oneWayMovement&&(f=Math.abs(f)*(a?1:-1),g=Math.abs(g)*(a?1:-1)),r.diff=f,f*=i.touchRatio,a&&(f=-f,g=-g);const v=n.touchesDirection;n.swipeDirection=f>0?"prev":"next",n.touchesDirection=g>0?"prev":"next";const y=n.params.loop&&!(n.virtual&&n.params.virtual.enabled)&&!i.cssMode;if(!s.isMoved){if(y&&n.loopFix({direction:n.swipeDirection}),s.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});n.wrapperEl.dispatchEvent(e)}s.allowMomentumBounce=!1,!i.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",l)}let b;s.isMoved&&v!==n.touchesDirection&&y&&Math.abs(f)>=1&&(n.loopFix({direction:n.swipeDirection,setTranslate:!0}),b=!0),n.emit("sliderMove",l),s.isMoved=!0,s.currentTranslate=f+s.startTranslate;let w=!0;let S=i.resistanceRatio;if(i.touchReleaseOnEdges&&(S=0),f>0?(y&&!b&&s.currentTranslate>(i.centeredSlides?n.minTranslate()-n.size/2:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),s.currentTranslate>n.minTranslate()&&(w=!1,i.resistance&&(s.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+s.startTranslate+f)**S))):f<0&&(y&&!b&&s.currentTranslate<(i.centeredSlides?n.maxTranslate()+n.size/2:n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-("auto"===i.slidesPerView?n.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),s.currentTranslate<n.maxTranslate()&&(w=!1,i.resistance&&(s.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-s.startTranslate-f)**S))),w&&(l.preventedByNestedSwiper=!0),!n.allowSlideNext&&"next"===n.swipeDirection&&s.currentTranslate<s.startTranslate&&(s.currentTranslate=s.startTranslate),!n.allowSlidePrev&&"prev"===n.swipeDirection&&s.currentTranslate>s.startTranslate&&(s.currentTranslate=s.startTranslate),n.allowSlidePrev||n.allowSlideNext||(s.currentTranslate=s.startTranslate),i.threshold>0){if(!(Math.abs(f)>i.threshold||s.allowThresholdMove))return void(s.currentTranslate=s.startTranslate);if(!s.allowThresholdMove)return s.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,s.currentTranslate=s.startTranslate,void(r.diff=n.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY)}i.followFinger&&!i.cssMode&&((i.freeMode&&i.freeMode.enabled&&n.freeMode||i.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),n.params.freeMode&&i.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(s.currentTranslate),n.setTranslate(s.currentTranslate))}function be(e){const t=this;const n=t.touchEventsData;const s=n.evCache.findIndex((t=>t.pointerId===e.pointerId));if(s>=0&&n.evCache.splice(s,1),["pointercancel","pointerout","pointerleave"].includes(e.type))return;const{params:i,touches:r,rtlTranslate:a,slidesGrid:o,enabled:l}=t;if(!l)return;if(!i.simulateTouch&&"mouse"===e.pointerType)return;let c=e;if(c.originalEvent&&(c=c.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",c),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&i.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);i.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const d=Y();const u=d-n.touchStartTime;if(t.allowClick){const e=c.path||c.composedPath&&c.composedPath();t.updateClickedSlide(e&&e[0]||c.target),t.emit("tap click",c),u<300&&d-n.lastClickTime<300&&t.emit("doubleTap doubleClick",c)}if(n.lastClickTime=Y(),j((()=>{t.destroyed||(t.allowClick=!0)})),!n.isTouched||!n.isMoved||!t.swipeDirection||0===r.diff||n.currentTranslate===n.startTranslate)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);let p;if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,p=i.followFinger?a?t.translate:-t.translate:-n.currentTranslate,i.cssMode)return;if(t.params.freeMode&&i.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:p});let m=0;let h=t.slidesSizesGrid[0];for(let e=0;e<o.length;e+=e<i.slidesPerGroupSkip?1:i.slidesPerGroup){const t=e<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;void 0!==o[e+t]?p>=o[e]&&p<o[e+t]&&(m=e,h=o[e+t]-o[e]):p>=o[e]&&(m=e,h=o[o.length-1]-o[o.length-2])}let f=null;let g=null;i.rewind&&(t.isBeginning?g=t.params.virtual&&t.params.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(f=0));const v=(p-o[m])/h;const y=m<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;if(u>i.longSwipesMs){if(!i.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(v>=i.longSwipesRatio?t.slideTo(i.rewind&&t.isEnd?f:m+y):t.slideTo(m)),"prev"===t.swipeDirection&&(v>1-i.longSwipesRatio?t.slideTo(m+y):null!==g&&v<0&&Math.abs(v)>i.longSwipesRatio?t.slideTo(g):t.slideTo(m))}else{if(!i.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(c.target===t.navigation.nextEl||c.target===t.navigation.prevEl)?c.target===t.navigation.nextEl?t.slideTo(m+y):t.slideTo(m):("next"===t.swipeDirection&&t.slideTo(null!==f?f:m+y),"prev"===t.swipeDirection&&t.slideTo(null!==g?g:m))}}let we;function Se(){const e=this;const{params:t,el:n}=e;if(n&&0===n.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:s,allowSlidePrev:i,snapGrid:r}=e;const a=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const o=a&&t.loop;!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||o?e.params.loop&&!a?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(we),we=setTimeout((()=>{e.autoplay.resume()}),500)),e.allowSlidePrev=i,e.allowSlideNext=s,e.params.watchOverflow&&r!==e.snapGrid&&e.checkOverflow()}function Ee(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function Te(){const e=this;const{wrapperEl:t,rtlTranslate:n,enabled:s}=e;if(!s)return;let i;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const r=e.maxTranslate()-e.minTranslate();i=0===r?0:(e.translate-e.minTranslate())/r,i!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}const xe=(e,t)=>{const n=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(n){const t=n.querySelector(`.${e.params.lazyPreloaderClass}`);t&&t.remove()}};function Le(e){xe(this,e.target),this.update()}let Ce=!1;function Me(){}const ke=(e,t)=>{const n=V();const{params:s,el:i,wrapperEl:r,device:a}=e;const o=!!s.nested;const l="on"===t?"addEventListener":"removeEventListener";const c=t;i[l]("pointerdown",e.onTouchStart,{passive:!1}),n[l]("pointermove",e.onTouchMove,{passive:!1,capture:o}),n[l]("pointerup",e.onTouchEnd,{passive:!0}),n[l]("pointercancel",e.onTouchEnd,{passive:!0}),n[l]("pointerout",e.onTouchEnd,{passive:!0}),n[l]("pointerleave",e.onTouchEnd,{passive:!0}),(s.preventClicks||s.preventClicksPropagation)&&i[l]("click",e.onClick,!0),s.cssMode&&r[l]("scroll",e.onScroll),s.updateOnWindowResize?e[c](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",Se,!0):e[c]("observerUpdate",Se,!0),i[l]("load",e.onLoad,{capture:!0})};const Ae=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var Pe={setBreakpoint:function(){const e=this;const{realIndex:t,initialized:n,params:s,el:i}=e;const r=s.breakpoints;if(!r||r&&0===Object.keys(r).length)return;const a=e.getBreakpoint(r,e.params.breakpointsBase,e.el);if(!a||e.currentBreakpoint===a)return;const o=(a in r?r[a]:void 0)||e.originalParams;const l=Ae(e,s);const c=Ae(e,o);const d=s.enabled;l&&!c?(i.classList.remove(`${s.containerModifierClass}grid`,`${s.containerModifierClass}grid-column`),e.emitContainerClasses()):!l&&c&&(i.classList.add(`${s.containerModifierClass}grid`),(o.grid.fill&&"column"===o.grid.fill||!o.grid.fill&&"column"===s.grid.fill)&&i.classList.add(`${s.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach((t=>{const n=s[t]&&s[t].enabled;const i=o[t]&&o[t].enabled;n&&!i&&e[t].disable(),!n&&i&&e[t].enable()}));const u=o.direction&&o.direction!==s.direction;const p=s.loop&&(o.slidesPerView!==s.slidesPerView||u);u&&n&&e.changeDirection(),K(e.params,o);const m=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),d&&!m?e.disable():!d&&m&&e.enable(),e.currentBreakpoint=a,e.emit("_beforeBreakpoint",o),p&&n&&(e.loopDestroy(),e.loopCreate(t),e.updateSlides()),e.emit("breakpoint",o)},getBreakpoint:function(e,t="window",n){if(!e||"container"===t&&!n)return;let s=!1;const i=W();const r="window"===t?i.innerHeight:n.clientHeight;const a=Object.keys(e).map((e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:r*t,point:e}}return{value:e,point:e}}));a.sort(((e,t)=>parseInt(e.value,10)-parseInt(t.value,10)));for(let e=0;e<a.length;e+=1){const{point:r,value:o}=a[e];"window"===t?i.matchMedia(`(min-width: ${o}px)`).matches&&(s=r):o<=n.clientWidth&&(s=r)}return s||"max"}};var _e={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",runCallbacksOnInit:!0,_emitClasses:!1};function ze(e,t){return function(n={}){const s=Object.keys(n)[0];const i=n[s];"object"==typeof i&&null!==i?(["navigation","pagination","scrollbar"].indexOf(s)>=0&&!0===e[s]&&(e[s]={auto:!0}),s in e&&"enabled"in i?(!0===e[s]&&(e[s]={enabled:!0}),"object"!=typeof e[s]||"enabled"in e[s]||(e[s].enabled=!0),e[s]||(e[s]={enabled:!1}),K(t,n)):K(t,n)):K(t,n)}}const Ie={eventsEmitter:ue,update:pe,translate:me,transition:{setTransition:function(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`),n.emit("setTransition",e,t)},transitionStart:function(e=!0,t){const n=this;const{params:s}=n;s.cssMode||(s.autoHeight&&n.updateAutoHeight(),he({swiper:n,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e=!0,t){const n=this;const{params:s}=n;n.animating=!1,s.cssMode||(n.setTransition(0),he({swiper:n,runCallbacks:e,direction:t,step:"End"}))}},slide:fe,loop:ge,grabCursor:{setGrabCursor:function(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;n.style.cursor="move",n.style.cursor=e?"grabbing":"grab"},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="")}},events:{attachEvents:function(){const e=this;const t=V();const{params:n}=e;e.onTouchStart=ve.bind(e),e.onTouchMove=ye.bind(e),e.onTouchEnd=be.bind(e),n.cssMode&&(e.onScroll=Te.bind(e)),e.onClick=Ee.bind(e),e.onLoad=Le.bind(e),Ce||(t.addEventListener("touchstart",Me),Ce=!0),ke(e,"on")},detachEvents:function(){ke(this,"off")}},breakpoints:Pe,checkOverflow:{checkOverflow:function(){const e=this;const{isLocked:t,params:n}=e;const{slidesOffsetBefore:s}=n;if(s){const t=e.slides.length-1;const n=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*s;e.isLocked=e.size>n}else e.isLocked=1===e.snapGrid.length;!0===n.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===n.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){const e=this;const{classNames:t,params:n,rtl:s,el:i,device:r}=e;const a=function(e,t){const n=[];return e.forEach((e=>{"object"==typeof e?Object.keys(e).forEach((s=>{e[s]&&n.push(t+s)})):"string"==typeof e&&n.push(t+e)})),n}(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:s},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&"column"===n.grid.fill},{android:r.android},{ios:r.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...a),i.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e.classList.remove(...t),this.emitContainerClasses()}}};const Oe={};class qe{constructor(...e){let t;let n;1===e.length&&e[0].constructor&&"Object"===Object.prototype.toString.call(e[0]).slice(8,-1)?n=e[0]:[t,n]=e,n||(n={}),n=K({},n),t&&!n.el&&(n.el=t);const s=V();if(n.el&&"string"==typeof n.el&&s.querySelectorAll(n.el).length>1){const e=[];return s.querySelectorAll(n.el).forEach((t=>{const s=K({},n,{el:t});e.push(new qe(s))})),e}const i=this;i.__swiper__=!0,i.support=ae(),i.device=le({userAgent:n.userAgent}),i.browser=de(),i.eventsListeners={},i.eventsAnyListeners=[],i.modules=[...i.__modules__],n.modules&&Array.isArray(n.modules)&&i.modules.push(...n.modules);const r={};i.modules.forEach((e=>{e({params:n,swiper:i,extendParams:ze(n,r),on:i.on.bind(i),once:i.once.bind(i),off:i.off.bind(i),emit:i.emit.bind(i)})}));const a=K({},_e,r);return i.params=K({},a,Oe,n),i.originalParams=K({},i.params),i.passedParams=K({},n),i.params&&i.params.on&&Object.keys(i.params.on).forEach((e=>{i.on(e,i.params.on[e])})),i.params&&i.params.onAny&&i.onAny(i.params.onAny),Object.assign(i,{enabled:i.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===i.params.direction,isVertical:()=>"vertical"===i.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:i.params.focusableElements,lastClickTime:Y(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:i.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),i.emit("_swiper"),i.params.init&&i.init(),i}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=Q(e,`.${t.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const n=this;e=Math.min(Math.max(e,0),1);const s=n.minTranslate();const i=(n.maxTranslate()-s)*e+s;n.translateTo(i,void 0===t?0:t),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter((t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass)));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter((e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass))).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach((n=>{const s=e.getSlideClasses(n);t.push({slideEl:n,classNames:s}),e.emit("_slideClass",n,s)})),e.emit("_slideClasses",t)}slidesPerViewDynamic(e="current",t=!1){const{params:n,slides:s,slidesGrid:i,slidesSizesGrid:r,size:a,activeIndex:o}=this;let l=1;if(n.centeredSlides){let e=s[o].swiperSlideSize;let t;for(let n=o+1;n<s.length;n+=1)s[n]&&!t&&(e+=s[n].swiperSlideSize,l+=1,e>a&&(t=!0));for(let n=o-1;n>=0;n-=1)s[n]&&!t&&(e+=s[n].swiperSlideSize,l+=1,e>a&&(t=!0))}else if("current"===e)for(let e=o+1;e<s.length;e+=1){(t?i[e]+r[e]-i[o]<a:i[e]-i[o]<a)&&(l+=1)}else for(let e=o-1;e>=0;e-=1){i[o]-i[e]<a&&(l+=1)}return l}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:n}=e;function s(){const t=e.rtlTranslate?-1*e.translate:e.translate;const n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}let i;n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach((t=>{t.complete&&xe(e,t)})),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode&&e.params.freeMode.enabled?(s(),e.params.autoHeight&&e.updateAutoHeight()):(i=("auto"===e.params.slidesPerView||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),i||s()),n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t=!0){const n=this;const s=n.params.direction;return e||(e="horizontal"===s?"vertical":"horizontal"),e===s||"horizontal"!==e&&"vertical"!==e||(n.el.classList.remove(`${n.params.containerModifierClass}${s}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach((t=>{"vertical"===e?t.style.width="":t.style.height=""})),n.emit("changeDirection"),t&&n.update()),n}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let n=e||t.params.el;if("string"==typeof n&&(n=document.querySelector(n)),!n)return!1;n.swiper=t,n.shadowEl&&(t.isElement=!0);const s=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let i=(()=>{if(n&&n.shadowRoot&&n.shadowRoot.querySelector){return n.shadowRoot.querySelector(s())}return Q(n,s())[0]})();return!i&&t.params.createElements&&(i=ee("div",t.params.wrapperClass),n.append(i),Q(n,`.${t.params.slideClass}`).forEach((e=>{i.append(e)}))),Object.assign(t,{el:n,wrapperEl:i,slidesEl:t.isElement?n:i,mounted:!0,rtl:"rtl"===n.dir.toLowerCase()||"rtl"===te(n,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===n.dir.toLowerCase()||"rtl"===te(n,"direction")),wrongRTL:"-webkit-box"===te(i,"display")}),!0}init(e){const t=this;if(t.initialized)return t;return!1===t.mount(e)||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(),t.attachEvents(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach((e=>{e.complete?xe(t,e):e.addEventListener("load",(e=>{xe(t,e.target)}))})),t.initialized=!0,t.emit("init"),t.emit("afterInit")),t}destroy(e=!0,t=!0){const n=this;const{params:s,el:i,wrapperEl:r,slides:a}=n;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),s.loop&&n.loopDestroy(),t&&(n.removeClasses(),i.removeAttribute("style"),r.removeAttribute("style"),a&&a.length&&a.forEach((e=>{e.classList.remove(s.slideVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")}))),n.emit("destroy"),Object.keys(n.eventsListeners).forEach((e=>{n.off(e)})),!1!==e&&(n.el.swiper=null,function(e){const t=e;Object.keys(t).forEach((e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))}(n)),n.destroyed=!0),null}static extendDefaults(e){K(Oe,e)}static get extendedDefaults(){return Oe}static get defaults(){return _e}static installModule(e){qe.prototype.__modules__||(qe.prototype.__modules__=[]);const t=qe.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach((e=>qe.installModule(e))),qe):(qe.installModule(e),qe)}}function Be(e,t,n,s){return e.params.createElements&&Object.keys(s).forEach((i=>{if(!n[i]&&!0===n.auto){let r=Q(e.el,`.${s[i]}`)[0];r||(r=ee("div",s[i]),r.className=s[i],e.el.append(r)),n[i]=r,t[i]=r}})),n}function $e({swiper:e,extendParams:t,on:n,emit:s}){t({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};const i=e=>(Array.isArray(e)||(e=[e].filter((e=>!!e))),e);function r(t){let n;return t&&"string"==typeof t&&e.isElement&&(n=e.el.shadowRoot.querySelector(t),n)?n:(t&&("string"==typeof t&&(n=[...document.querySelectorAll(t)]),e.params.uniqueNavElements&&"string"==typeof t&&n.length>1&&1===e.el.querySelectorAll(t).length&&(n=e.el.querySelector(t))),t&&!n?t:n)}function a(t,n){const s=e.params.navigation;(t=i(t)).forEach((t=>{t&&(t.classList[n?"add":"remove"](s.disabledClass),"BUTTON"===t.tagName&&(t.disabled=n),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](s.lockClass))}))}function o(){const{nextEl:t,prevEl:n}=e.navigation;if(e.params.loop)return a(n,!1),void a(t,!1);a(n,e.isBeginning&&!e.params.rewind),a(t,e.isEnd&&!e.params.rewind)}function l(t){t.preventDefault(),(!e.isBeginning||e.params.loop||e.params.rewind)&&(e.slidePrev(),s("navigationPrev"))}function c(t){t.preventDefault(),(!e.isEnd||e.params.loop||e.params.rewind)&&(e.slideNext(),s("navigationNext"))}function d(){const t=e.params.navigation;if(e.params.navigation=Be(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!t.nextEl&&!t.prevEl)return;let n=r(t.nextEl);let s=r(t.prevEl);Object.assign(e.navigation,{nextEl:n,prevEl:s}),n=i(n),s=i(s);const a=(n,s)=>{n&&n.addEventListener("click","next"===s?c:l),!e.enabled&&n&&n.classList.add(t.lockClass)};n.forEach((e=>a(e,"next"))),s.forEach((e=>a(e,"prev")))}function u(){let{nextEl:t,prevEl:n}=e.navigation;t=i(t),n=i(n);const s=(t,n)=>{t.removeEventListener("click","next"===n?c:l),t.classList.remove(e.params.navigation.disabledClass)};t.forEach((e=>s(e,"next"))),n.forEach((e=>s(e,"prev")))}n("init",(()=>{!1===e.params.navigation.enabled?p():(d(),o())})),n("toEdge fromEdge lock unlock",(()=>{o()})),n("destroy",(()=>{u()})),n("enable disable",(()=>{let{nextEl:t,prevEl:n}=e.navigation;t=i(t),n=i(n),[...t,...n].filter((e=>!!e)).forEach((t=>t.classList[e.enabled?"remove":"add"](e.params.navigation.lockClass)))})),n("click",((t,n)=>{let{nextEl:r,prevEl:a}=e.navigation;r=i(r),a=i(a);const o=n.target;if(e.params.navigation.hideOnClick&&!a.includes(o)&&!r.includes(o)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===o||e.pagination.el.contains(o)))return;let t;r.length?t=r[0].classList.contains(e.params.navigation.hiddenClass):a.length&&(t=a[0].classList.contains(e.params.navigation.hiddenClass)),s(!0===t?"navigationShow":"navigationHide"),[...r,...a].filter((e=>!!e)).forEach((t=>t.classList.toggle(e.params.navigation.hiddenClass)))}}));const p=()=>{e.el.classList.add(e.params.navigation.navigationDisabledClass),u()};Object.assign(e.navigation,{enable:()=>{e.el.classList.remove(e.params.navigation.navigationDisabledClass),d(),o()},disable:p,update:o,init:d,destroy:u})}function Ge(e=""){return`.${e.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}`}function De({swiper:e,extendParams:t,on:n,emit:s}){const i="swiper-pagination";let r;t({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${i}-bullet`,bulletActiveClass:`${i}-bullet-active`,modifierClass:`${i}-`,currentClass:`${i}-current`,totalClass:`${i}-total`,hiddenClass:`${i}-hidden`,progressbarFillClass:`${i}-progressbar-fill`,progressbarOppositeClass:`${i}-progressbar-opposite`,clickableClass:`${i}-clickable`,lockClass:`${i}-lock`,horizontalClass:`${i}-horizontal`,verticalClass:`${i}-vertical`,paginationDisabledClass:`${i}-disabled`}}),e.pagination={el:null,bullets:[]};let a=0;const o=e=>(Array.isArray(e)||(e=[e].filter((e=>!!e))),e);function l(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&0===e.pagination.el.length}function c(t,n){const{bulletActiveClass:s}=e.params.pagination;t&&(t=t[("prev"===n?"previous":"next")+"ElementSibling"])&&(t.classList.add(`${s}-${n}`),(t=t[("prev"===n?"previous":"next")+"ElementSibling"])&&t.classList.add(`${s}-${n}-${n}`))}function d(t){if(!t.target.matches(Ge(e.params.pagination.bulletClass)))return;t.preventDefault();const n=ne(t.target)*e.params.slidesPerGroup;e.params.loop?e.slideToLoop(n):e.slideTo(n)}function u(){const t=e.rtl;const n=e.params.pagination;if(l())return;let i=e.pagination.el;let d;i=o(i);const u=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length;const p=e.params.loop?Math.ceil(u/e.params.slidesPerGroup):e.snapGrid.length;if(d=e.params.loop?e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex:void 0!==e.snapIndex?e.snapIndex:e.activeIndex||0,"bullets"===n.type&&e.pagination.bullets&&e.pagination.bullets.length>0){const s=e.pagination.bullets;let o;let l;let u;if(n.dynamicBullets&&(r=ie(s[0],e.isHorizontal()?"width":"height",!0),i.forEach((t=>{t.style[e.isHorizontal()?"width":"height"]=r*(n.dynamicMainBullets+4)+"px"})),n.dynamicMainBullets>1&&void 0!==e.previousIndex&&(a+=d-(e.previousIndex||0),a>n.dynamicMainBullets-1?a=n.dynamicMainBullets-1:a<0&&(a=0)),o=Math.max(d-a,0),l=o+(Math.min(s.length,n.dynamicMainBullets)-1),u=(l+o)/2),s.forEach((e=>{e.classList.remove(...["","-next","-next-next","-prev","-prev-prev","-main"].map((e=>`${n.bulletActiveClass}${e}`)))})),i.length>1)s.forEach((e=>{const t=ne(e);t===d&&e.classList.add(n.bulletActiveClass),n.dynamicBullets&&(t>=o&&t<=l&&e.classList.add(`${n.bulletActiveClass}-main`),t===o&&c(e,"prev"),t===l&&c(e,"next"))}));else{const e=s[d];if(e&&e.classList.add(n.bulletActiveClass),n.dynamicBullets){const e=s[o];const t=s[l];for(let e=o;e<=l;e+=1)s[e].classList.add(`${n.bulletActiveClass}-main`);c(e,"prev"),c(t,"next")}}if(n.dynamicBullets){const i=Math.min(s.length,n.dynamicMainBullets+4);const a=(r*i-r)/2-u*r;const o=t?"right":"left";s.forEach((t=>{t.style[e.isHorizontal()?o:"top"]=`${a}px`}))}}i.forEach(((t,i)=>{if("fraction"===n.type&&(t.querySelectorAll(Ge(n.currentClass)).forEach((e=>{e.textContent=n.formatFractionCurrent(d+1)})),t.querySelectorAll(Ge(n.totalClass)).forEach((e=>{e.textContent=n.formatFractionTotal(p)}))),"progressbar"===n.type){let s;s=n.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";const i=(d+1)/p;let r=1;let a=1;"horizontal"===s?r=i:a=i,t.querySelectorAll(Ge(n.progressbarFillClass)).forEach((t=>{t.style.transform=`translate3d(0,0,0) scaleX(${r}) scaleY(${a})`,t.style.transitionDuration=`${e.params.speed}ms`}))}"custom"===n.type&&n.renderCustom?(t.innerHTML=n.renderCustom(e,d+1,p),0===i&&s("paginationRender",t)):(0===i&&s("paginationRender",t),s("paginationUpdate",t)),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](n.lockClass)}))}function p(){const t=e.params.pagination;if(l())return;const n=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length;let i=e.pagination.el;i=o(i);let r="";if("bullets"===t.type){let s=e.params.loop?Math.ceil(n/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&s>n&&(s=n);for(let n=0;n<s;n+=1)t.renderBullet?r+=t.renderBullet.call(e,n,t.bulletClass):r+=`<${t.bulletElement} class="${t.bulletClass}"></${t.bulletElement}>`}"fraction"===t.type&&(r=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`),"progressbar"===t.type&&(r=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):`<span class="${t.progressbarFillClass}"></span>`),i.forEach((n=>{"custom"!==t.type&&(n.innerHTML=r||""),"bullets"===t.type&&(e.pagination.bullets=[...n.querySelectorAll(Ge(t.bulletClass))])})),"custom"!==t.type&&s("paginationRender",i[0])}function m(){e.params.pagination=Be(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const t=e.params.pagination;if(!t.el)return;let n;"string"==typeof t.el&&e.isElement&&(n=e.el.shadowRoot.querySelector(t.el)),n||"string"!=typeof t.el||(n=[...document.querySelectorAll(t.el)]),n||(n=t.el),n&&0!==n.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&Array.isArray(n)&&n.length>1&&(n=[...e.el.querySelectorAll(t.el)],n.length>1&&(n=n.filter((t=>se(t,".swiper")[0]===e.el))[0])),Array.isArray(n)&&1===n.length&&(n=n[0]),Object.assign(e.pagination,{el:n}),n=o(n),n.forEach((n=>{"bullets"===t.type&&t.clickable&&n.classList.add(t.clickableClass),n.classList.add(t.modifierClass+t.type),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass),"bullets"===t.type&&t.dynamicBullets&&(n.classList.add(`${t.modifierClass}${t.type}-dynamic`),a=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&n.classList.add(t.progressbarOppositeClass),t.clickable&&n.addEventListener("click",d),e.enabled||n.classList.add(t.lockClass)})))}function h(){const t=e.params.pagination;if(l())return;let n=e.pagination.el;n&&(n=o(n),n.forEach((n=>{n.classList.remove(t.hiddenClass),n.classList.remove(t.modifierClass+t.type),n.classList.remove(e.isHorizontal()?t.horizontalClass:t.verticalClass),t.clickable&&n.removeEventListener("click",d)}))),e.pagination.bullets&&e.pagination.bullets.forEach((e=>e.classList.remove(t.bulletActiveClass)))}n("init",(()=>{!1===e.params.pagination.enabled?f():(m(),p(),u())})),n("activeIndexChange",(()=>{void 0===e.snapIndex&&u()})),n("snapIndexChange",(()=>{u()})),n("snapGridLengthChange",(()=>{p(),u()})),n("destroy",(()=>{h()})),n("enable disable",(()=>{let{el:t}=e.pagination;t&&(t=o(t),t.forEach((t=>t.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass))))})),n("lock unlock",(()=>{u()})),n("click",((t,n)=>{const i=n.target;let{el:r}=e.pagination;if(Array.isArray(r)||(r=[r].filter((e=>!!e))),e.params.pagination.el&&e.params.pagination.hideOnClick&&r&&r.length>0&&!i.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&i===e.navigation.nextEl||e.navigation.prevEl&&i===e.navigation.prevEl))return;const t=r[0].classList.contains(e.params.pagination.hiddenClass);s(!0===t?"paginationShow":"paginationHide"),r.forEach((t=>t.classList.toggle(e.params.pagination.hiddenClass)))}}));const f=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=o(t),t.forEach((t=>t.classList.add(e.params.pagination.paginationDisabledClass)))),h()};Object.assign(e.pagination,{enable:()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=o(t),t.forEach((t=>t.classList.remove(e.params.pagination.paginationDisabledClass)))),m(),p(),u()},disable:f,render:p,update:u,init:m,destroy:h})}function Fe({swiper:e,extendParams:t,on:n}){t({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),e.a11y={clicked:!1};let s=null;function i(e){const t=s;0!==t.length&&(t.innerHTML="",t.innerHTML=e)}const r=e=>(Array.isArray(e)||(e=[e].filter((e=>!!e))),e);function a(e){(e=r(e)).forEach((e=>{e.setAttribute("tabIndex","0")}))}function o(e){(e=r(e)).forEach((e=>{e.setAttribute("tabIndex","-1")}))}function l(e,t){(e=r(e)).forEach((e=>{e.setAttribute("role",t)}))}function c(e,t){(e=r(e)).forEach((e=>{e.setAttribute("aria-roledescription",t)}))}function d(e,t){(e=r(e)).forEach((e=>{e.setAttribute("aria-label",t)}))}function u(e){(e=r(e)).forEach((e=>{e.setAttribute("aria-disabled",!0)}))}function p(e){(e=r(e)).forEach((e=>{e.setAttribute("aria-disabled",!1)}))}function m(t){if(13!==t.keyCode&&32!==t.keyCode)return;const n=e.params.a11y;const s=t.target;e.pagination&&e.pagination.el&&(s===e.pagination.el||e.pagination.el.contains(t.target))&&!t.target.matches(Ge(e.params.pagination.bulletClass))||(e.navigation&&e.navigation.nextEl&&s===e.navigation.nextEl&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?i(n.lastSlideMessage):i(n.nextSlideMessage)),e.navigation&&e.navigation.prevEl&&s===e.navigation.prevEl&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?i(n.firstSlideMessage):i(n.prevSlideMessage)),e.pagination&&s.matches(Ge(e.params.pagination.bulletClass))&&s.click())}function h(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function f(){return h()&&e.params.pagination.clickable}const g=(e,t,n)=>{a(e),"BUTTON"!==e.tagName&&(l(e,"button"),e.addEventListener("keydown",m)),d(e,n),function(e,t){(e=r(e)).forEach((e=>{e.setAttribute("aria-controls",t)}))}(e,t)};const v=()=>{e.a11y.clicked=!0};const y=()=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{e.destroyed||(e.a11y.clicked=!1)}))}))};const b=t=>{if(e.a11y.clicked)return;const n=t.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!n||!e.slides.includes(n))return;const s=e.slides.indexOf(n)===e.activeIndex;const i=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(n);s||i||t.sourceCapabilities&&t.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,e.slideTo(e.slides.indexOf(n),0))};const w=()=>{const t=e.params.a11y;t.itemRoleDescriptionMessage&&c(e.slides,t.itemRoleDescriptionMessage),t.slideRole&&l(e.slides,t.slideRole);const n=e.slides.length;t.slideLabelMessage&&e.slides.forEach(((s,i)=>{const r=e.params.loop?parseInt(s.getAttribute("data-swiper-slide-index"),10):i;d(s,t.slideLabelMessage.replace(/\{\{index\}\}/,r+1).replace(/\{\{slidesLength\}\}/,n))}))};const S=()=>{const t=e.params.a11y;e.el.append(s);const n=e.el;t.containerRoleDescriptionMessage&&c(n,t.containerRoleDescriptionMessage),t.containerMessage&&d(n,t.containerMessage);const i=e.wrapperEl;const a=t.id||i.getAttribute("id")||`swiper-wrapper-${function(e=16){return"x".repeat(e).replace(/x/g,(()=>Math.round(16*Math.random()).toString(16)))}(16)}`;const o=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";var l;l=a,r(i).forEach((e=>{e.setAttribute("id",l)})),function(e,t){(e=r(e)).forEach((e=>{e.setAttribute("aria-live",t)}))}(i,o),w();let{nextEl:u,prevEl:p}=e.navigation?e.navigation:{};if(u=r(u),p=r(p),u&&u.forEach((e=>g(e,a,t.nextSlideMessage))),p&&p.forEach((e=>g(e,a,t.prevSlideMessage))),f()){(Array.isArray(e.pagination.el)?e.pagination.el:[e.pagination.el]).forEach((e=>{e.addEventListener("keydown",m)}))}e.el.addEventListener("focus",b,!0),e.el.addEventListener("pointerdown",v,!0),e.el.addEventListener("pointerup",y,!0)};n("beforeInit",(()=>{s=ee("span",e.params.a11y.notificationClass),s.setAttribute("aria-live","assertive"),s.setAttribute("aria-atomic","true"),e.isElement&&s.setAttribute("slot","container-end")})),n("afterInit",(()=>{e.params.a11y.enabled&&S()})),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",(()=>{e.params.a11y.enabled&&w()})),n("fromEdge toEdge afterInit lock unlock",(()=>{e.params.a11y.enabled&&function(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:t,prevEl:n}=e.navigation;n&&(e.isBeginning?(u(n),o(n)):(p(n),a(n))),t&&(e.isEnd?(u(t),o(t)):(p(t),a(t)))}()})),n("paginationUpdate",(()=>{e.params.a11y.enabled&&function(){const t=e.params.a11y;h()&&e.pagination.bullets.forEach((n=>{e.params.pagination.clickable&&(a(n),e.params.pagination.renderBullet||(l(n,"button"),d(n,t.paginationBulletMessage.replace(/\{\{index\}\}/,ne(n)+1)))),n.matches(`.${e.params.pagination.bulletActiveClass}`)?n.setAttribute("aria-current","true"):n.removeAttribute("aria-current")}))}()})),n("destroy",(()=>{e.params.a11y.enabled&&function(){s&&s.length>0&&s.remove();let{nextEl:t,prevEl:n}=e.navigation?e.navigation:{};t=r(t),n=r(n),t&&t.forEach((e=>e.removeEventListener("keydown",m))),n&&n.forEach((e=>e.removeEventListener("keydown",m))),f()&&(Array.isArray(e.pagination.el)?e.pagination.el:[e.pagination.el]).forEach((e=>{e.removeEventListener("keydown",m)}));e.el.removeEventListener("focus",b,!0),e.el.removeEventListener("pointerdown",v,!0),e.el.removeEventListener("pointerup",y,!0)}()}))}Object.keys(Ie).forEach((e=>{Object.keys(Ie[e]).forEach((t=>{qe.prototype[t]=Ie[e][t]}))})),qe.use([function({swiper:e,on:t,emit:n}){const s=W();let i=null;let r=null;const a=()=>{e&&!e.destroyed&&e.initialized&&(n("beforeResize"),n("resize"))};const o=()=>{e&&!e.destroyed&&e.initialized&&n("orientationchange")};t("init",(()=>{e.params.resizeObserver&&void 0!==s.ResizeObserver?e&&!e.destroyed&&e.initialized&&(i=new ResizeObserver((t=>{r=s.requestAnimationFrame((()=>{const{width:n,height:s}=e;let i=n;let r=s;t.forEach((({contentBoxSize:t,contentRect:n,target:s})=>{s&&s!==e.el||(i=n?n.width:(t[0]||t).inlineSize,r=n?n.height:(t[0]||t).blockSize)})),i===n&&r===s||a()}))})),i.observe(e.el)):(s.addEventListener("resize",a),s.addEventListener("orientationchange",o))})),t("destroy",(()=>{r&&s.cancelAnimationFrame(r),i&&i.unobserve&&e.el&&(i.unobserve(e.el),i=null),s.removeEventListener("resize",a),s.removeEventListener("orientationchange",o)}))},function({swiper:e,extendParams:t,on:n,emit:s}){const i=[];const r=W();const a=(e,t={})=>{const n=new(r.MutationObserver||r.WebkitMutationObserver)((e=>{if(1===e.length)return void s("observerUpdate",e[0]);const t=function(){s("observerUpdate",e[0])};r.requestAnimationFrame?r.requestAnimationFrame(t):r.setTimeout(t,0)}));n.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),i.push(n)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",(()=>{if(e.params.observer){if(e.params.observeParents){const t=se(e.el);for(let e=0;e<t.length;e+=1)a(t[e])}a(e.el,{childList:e.params.observeSlideChildren}),a(e.wrapperEl,{attributes:!1})}})),n("destroy",(()=>{i.forEach((e=>{e.disconnect()})),i.splice(0,i.length)}))}]);
/*!
   * bsCustomFileInput v1.3.4 (https://github.com/Johann-S/bs-custom-file-input)
   * Copyright 2018 - 2020 Johann-S <johann.servoire@gmail.com>
   * Licensed under MIT (https://github.com/Johann-S/bs-custom-file-input/blob/master/LICENSE)
   */
const He=()=>{const e={CUSTOMFILE:'.form__input--upload input[type="file"]',CUSTOMFILELABEL:".form__file-label",FORM:"form",INPUT:"input"};const t=function(t){let n="";const s=t.parentNode.querySelector(e.CUSTOMFILELABEL);return s&&(n=s.textContent),n};const n=function(e){if(e.childNodes.length>0){const t=[].slice.call(e.childNodes);for(let e=0;e<t.length;e++){const n=t[e];if(3!==n.nodeType)return n}}return e};const s=function(t){const s=t.bsCustomFileInput.defaultText;const i=t.parentNode.querySelector(e.CUSTOMFILELABEL);if(i){n(i).textContent=s}};const i=!!window.File;const r=function(e){if(e.hasAttribute("multiple")&&i)return[].slice.call(e.files).map((function(e){return e.name})).join(", ");if(-1!==e.value.indexOf("fakepath")){const t=e.value.split("\\");return t[t.length-1]}return e.value};function a(){const t=this.parentNode.querySelector(e.CUSTOMFILELABEL);if(t){const e=n(t);const i=r(this);i.length?e.textContent=i:s(this)}}function o(){const t=[].slice.call(this.querySelectorAll(e.INPUT)).filter((function(e){return!!e.bsCustomFileInput}));for(let e=0,n=t.length;e<n;e++)s(t[e])}const l="bsCustomFileInput";const c="reset",d="change";return{init:function(n,s){void 0===n&&(n=e.CUSTOMFILE),void 0===s&&(s=e.FORM);const i=[].slice.call(document.querySelectorAll(n));const r=[].slice.call(document.querySelectorAll(s));for(let e=0,n=i.length;e<n;e++){const n=i[e];Object.defineProperty(n,l,{value:{defaultText:t(n)},writable:!0}),a.call(n),n.addEventListener(d,a)}for(let e=0,t=r.length;e<t;e++)r[e].addEventListener(c,o),Object.defineProperty(r[e],l,{value:!0,writable:!0})},destroy:function(){const t=[].slice.call(document.querySelectorAll(e.FORM)).filter((function(e){return!!e.bsCustomFileInput}));const n=[].slice.call(document.querySelectorAll(e.INPUT)).filter((function(e){return!!e.bsCustomFileInput}));for(let e=0,t=n.length;e<t;e++){const t=n[e];s(t),t[l]=void 0,t.removeEventListener(d,a)}for(let e=0,n=t.length;e<n;e++)t[e].removeEventListener(c,o),t[e][l]=void 0}}};(()=>{const e=document.querySelector(".header");if(!e)return;let t=window.innerWidth<768;const n=()=>{if(!t)return void(e.style.transform="");const n=window.scrollY;const s=Math.min(n,80);e.style.transform=`translateY(-${s}px)`};window.addEventListener("scroll",(()=>{n()})),window.addEventListener("resize",(()=>{const s=window.innerWidth<768;s!==t&&(t=s,t?n():e.style.transform="")})),n()})(),(()=>{const t=document.querySelectorAll(".title-header-banner__fitty-line > span");0!==t.length&&t.forEach((function(t){e(t,{minSize:21,maxSize:200}),t.addEventListener("fit",(function(e){21===e.detail.newValue?e.currentTarget.classList.add("is-minimum"):e.currentTarget.classList.remove("is-minimum")}))}))})(),(()=>{const e=document.querySelector("#menu-endpoint").href;const t=document.querySelector("#additional-menu-endpoint").href;const n=document.querySelector(".mainnav__menu");const s=document.querySelector(".header");const i=document.getElementById("mainnav");const r=document.querySelector(".mainnav__btn-enable");const a=document.querySelector(".mainnav__fieldset");const o=document.querySelector(".mainnav__input");const l=document.querySelector(".mainnav__btn-close");const c=document.querySelector(".header__btn-nav-mobile");const d=document.querySelector(".mainnav form");const u=document.querySelector(".header__nav");const p=e=>{let t=0;for(let n=A.length-1;n>=0;n--)if(e[A[n]]){t=A[n];break}return t};const m=(e,t,n)=>{const s=e.getAttribute(t);const i=e.getAttribute(n);e.setAttribute(t,i),e.setAttribute(n,s)};const h=e=>{"mobile"===e?(document.body.style.overflow="hidden",s.classList.add("header--mobile-nav-open")):$(n,400),a.removeAttribute("disabled"),r.setAttribute("disabled",""),m(o,"placeholder","data-alternative-placeholder"),"mobile"!==e&&o.focus(),i.classList.add("mainnav--is-open"),window.addEventListener("click",y)};const f=()=>{if(!i.classList.contains("mainnav--is-open"))return;const e=s.classList.contains("header--mobile-nav-open")?"mobile":"desktop";"mobile"===e?s.classList.remove("header--mobile-nav-open"):(B(n,400),setTimeout((()=>{n.style.display=null}),400)),document.body.style.overflow="auto",l.blur(),o.blur(),m(o,"placeholder","data-alternative-placeholder"),o.value="",i.classList.remove("mainnav--is-search"),i.classList.remove("mainnav--is-open"),document.getElementById("searchresults").classList.remove("submenu--is-open"),a.setAttribute("disabled",""),r.removeAttribute("disabled"),"mobile"===e?c.focus():r.focus();const t=p(P);const d=document.getElementById(`submenu-${t}`);0===document.querySelectorAll(".submenu--is-open").length&&d.classList.add("submenu--is-open"),window.removeEventListener("click",y)};i.addEventListener("close",f),r.addEventListener("click",(()=>{h("desktop")})),l.addEventListener("click",(e=>{e.preventDefault(),f()})),c.addEventListener("click",(()=>{s.classList.contains("header--mobile-nav-open")?f():h("mobile")}));const g=()=>{if(window.innerWidth>=768)return void d.style.removeProperty("height");const e=window.getComputedStyle(u);const t=visualViewport.height-80-parseFloat(e.getPropertyValue("padding-top"))-parseFloat(e.getPropertyValue("padding-bottom"));const n=o.offsetHeight;d.style.height=t-n+"px"};window.onload=g,visualViewport.addEventListener("resize",(()=>{g()}));let v=window.innerWidth;window.addEventListener("resize",(()=>{v!==window.innerWidth&&f(),v=window.innerWidth})),window.addEventListener("keydown",(e=>{"/"!==e.key||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||(e.preventDefault(),h())}));const y=e=>{e.target.closest(".header")||e.target.closest(".header__btn-nav-mobile")||!i.classList.contains("mainnav--is-open")||(e.preventDefault(),f())};var b;(b=e)&&fetch(b).then((e=>{if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);return e.json()})).then((e=>{_(e,0);const t=p(P);I(t).classList.add("submenu--is-open")})).catch((e=>{console.error(e)})),(e=>{e&&fetch(e).then((e=>{if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);return e.json()})).then((e=>{for(const t of e)C(t.id,t.title,t.href,t.breadcrumb)})).catch((e=>{console.error(e)}))})(t),(e=>{window.addEventListener("keydown",(t=>{document.querySelector(".mainnav--is-open")&&t.target.closest(".header")&&G(t,e)}))})(f)})(),document.getElementById("nav-search-input").addEventListener("input",(e=>{const t=e.target.value;const n=x.search(t);M(t,n)})),(()=>{const e=document.querySelector(".quicklinks__button");const t=document.querySelector(".quicklinks__menu");const n=document.querySelectorAll("#quicklinks a[href], #quicklinks button");const s=n[0];const i=n[n.length-1];const r=document.querySelector(".header");const a=document.getElementById("mainnav");e.addEventListener("click",(t=>{t.stopImmediatePropagation();"true"===e.getAttribute("aria-expanded")||!1?l():o()}));const o=()=>{r.classList.contains("header--mobile-nav-open")||a.dispatchEvent(new Event("close")),e.setAttribute("aria-expanded","true"),t.setAttribute("aria-expanded","true"),p(t,"quicklinks__menu--open"),document.addEventListener("keydown",c),window.addEventListener("click",d),window.addEventListener("resize",u)};const l=()=>{e.setAttribute("aria-expanded","false"),t.setAttribute("aria-expanded","false"),m(t,"quicklinks__menu--open"),document.removeEventListener("keydown",c),window.removeEventListener("click",d),window.removeEventListener("resize",u)};const c=e=>{"Escape"===e.key?l():e.shiftKey&&"Tab"===e.key?document.activeElement===s&&(i.focus(),e.preventDefault()):"Tab"===e.key&&document.activeElement===i&&(s.focus(),e.preventDefault())};const d=e=>{t.contains(e.target)||l()};const u=()=>{l()};const p=(e,t)=>{e.classList.add(t),e.style.display="block",setTimeout((()=>{e.style.opacity="1"}),5)};const m=(e,t)=>{e.style.opacity="0",setTimeout((()=>{e.style.display="none",e.classList.remove(t)}),250)}})(),(()=>{let e;document.querySelectorAll(".accordion__trigger").forEach((n=>{n.addEventListener("click",(n=>{!0!==e&&(e=!0,t(n))}))}));const t=t=>{const n=t.target.closest(".accordion__trigger");const s="true"===n.getAttribute("aria-expanded");const i=n.parentNode.nextElementSibling;n.setAttribute("aria-expanded",!s),i.setAttribute("aria-expanded",(!s).toString()),i.setAttribute("aria-hidden",s.toString()),q(i,500),setTimeout((function(){e=!1}),500)}})(),(()=>{const e=document.querySelector(".backend-layout-sidebar__content");const t=document.querySelector(".backend-layout-sidebar__toggle-button");const n=document.querySelectorAll(".backend-layout-nav__link");const s=document.querySelector(".backend-layout-sidebar__mobile-header");const i=document.querySelector("body");if(!t)return;t.addEventListener("click",(()=>{const n="true"===t.getAttribute("aria-expanded");t.setAttribute("aria-expanded",!n),e.setAttribute("aria-expanded",(!n).toString()),e.setAttribute("aria-hidden",n.toString()),i.style.overflow=n?null:"hidden",q(e,300,"flex");const{top:r}=s.getBoundingClientRect();r>80&&t.scrollIntoView(!0)})),n.forEach((e=>{e.addEventListener("click",(e=>{window.innerWidth<1088&&r()}))})),window.addEventListener("keydown",(e=>{"true"===t.getAttribute("aria-expanded")&&"Escape"===e.key&&r(300)}));const r=(n=0)=>{t.setAttribute("aria-expanded","false"),e.setAttribute("aria-expanded","false"),e.setAttribute("aria-hidden","true"),i.style.overflow=null,q(e,n,"flex")}})(),(()=>{if(!document.querySelector(".swiper"))return;const e=window.matchMedia("(prefers-reduced-motion: reduce)")?.matches;const t=e?0:300;const n=document.querySelectorAll(".swiper");for(let e=0;e<n.length;e++){const s=n[e].dataset.swiperId;const i=document.getElementById(`galleryAnnouncements-${s}`);const r=".swiper-button-next-"+s;const a=".swiper-button-prev-"+s;new qe(n[e],{modules:[$e,De,Fe],loop:!0,speed:t,preloadImages:!1,a11y:{prevSlideMessage:galleryNext,nextSlideMessage:galleryPrev,paginationBulletMessage:galleryPaginationBullet},pagination:{el:".swiper-pagination",clickable:!0},navigation:{nextEl:r,prevEl:a},on:{slideChange:function(){const e=this.realIndex+1;i.textContent=galleryImage+" "+e}}})}const s=()=>{n.forEach((e=>{e.nextElementSibling.style.top=e.querySelector(".gallery__image").clientHeight/2+"px"}))};s(),window.addEventListener("resize",s)})(),(()=>{const e=document.querySelector(".solr-search #pagination__form");const t=document.querySelector(".solr-search #pagination__input");if(null===e)return;t.addEventListener("keyup",(n=>{"Enter"===n.key&&parseInt(t.value)&&parseInt(t.value)>=t.min&&parseInt(t.value)<=t.max&&(n=>{const s=e.action;const i=t.getAttribute("name");window.location=`${s}&${i}=${n}`})(t.value)}))})(),(()=>{const e=document.querySelector(".news-list__wrapper #pagination__form, .calendar-list__wrapper #pagination__form");const t=document.querySelector(".news-list__wrapper #pagination__input, .calendar-list__wrapper #pagination__input");null!==e&&t.addEventListener("keyup",(e=>{"Enter"===e.key&&parseInt(t.value)&&parseInt(t.value)>=t.min&&parseInt(t.value)<=t.max&&(window.location=newsPaginationUris[t.value])}))})(),document.querySelectorAll(".video").forEach((e=>{const t=e.querySelector(".video__wrapper");const n=e.querySelector(".video__button");const s=t.dataset.videourl;const i=t.dataset.videotitle;n.addEventListener("click",(function(){const e=document.createElement("iframe");e.setAttribute("frameborder","0"),e.setAttribute("allowfullscreen",""),e.setAttribute("aria-label",i),e.setAttribute("src",s),t.innerHTML="",t.appendChild(e)}))})),(()=>{He().init();document.querySelectorAll("textarea").forEach((e=>{e.setAttribute("style","height:"+e.scrollHeight+"px;overflow-y:hidden;"),e.addEventListener("input",(function(){this.style.height="auto",this.style.height=this.scrollHeight+"px"}),!1)}));document.querySelectorAll(".form__input--error").forEach((e=>{e.addEventListener("input",(()=>{e.classList.remove("form__input--error");const t=e.closest(".form__field--error");null!==t&&t.classList.remove("form__field--error")}))}))})(),(()=>{const e=document.getElementById("imageCopyrightButton");if(!e)return;const t=document.getElementById("imageCopyrightDialog");const n=function(e,t){const n={};return e.forEach((e=>{n[e[t]]=e})),Object.keys(n).map((e=>n[e]))}(document.querySelectorAll('img[data-copyright]:not([data-copyright=""])'),"src");let s=!1;n.length>0?e.addEventListener("click",(e=>{e.stopPropagation(),"function"==typeof HTMLDialogElement?(t.showModal(),window.addEventListener("click",r)):t.setAttribute("open","open"),t.focus(),s||i()})):e.parentElement.remove();const i=()=>{s=!0;const e=t.querySelector(".image-copyright__list");n.forEach((t=>{const n=document.createElement("li");const s=t.currentSrc?t.currentSrc:t.src;n.innerHTML=`\n          <img src="${s}" alt="${t.alt}" />\n          <p>${t.dataset.copyright}</p>\n        `,n.classList.add("image-copyright__item"),e.appendChild(n)}))};const r=e=>{!e.target.closest(".image-copyright__container")&&(e.preventDefault(),t.close(),window.removeEventListener("click",r))}})(),(()=>{const t=document.querySelectorAll(".stage__headline");0!==t.length&&(window.addEventListener("resize",(function(){e.fitAll()})),t.forEach((function(t){e(t,{minSize:21,maxSize:200}),t.addEventListener("fit",(function(e){21===e.detail.newValue?e.currentTarget.classList.add("stage__headline--min"):e.currentTarget.classList.remove("stage__headline--min")}))})))})(),(()=>{const e=document.querySelectorAll(".education-offer-filter__select > select");0!==e.length&&e.forEach((e=>{e.addEventListener("change",(e=>{window.location.href=e.target.value}))}))})(),(()=>{const e=document.querySelector("#appointmentBooking");if(!e)return;const t=e.querySelector("#interestTechnicalRadio");const n=e.querySelector("#interestPrivateRadio");const s=e.querySelector("#professionalGroupSelect");const i=e.querySelector("#otherInput");n.addEventListener("input",(e=>{s.parentElement.classList.add("form__field--hidden"),i.parentElement.classList.add("form__field--hidden")})),t.addEventListener("input",(e=>{s.parentElement.classList.remove("form__field--hidden"),r()})),s.addEventListener("input",(e=>{r()}));const r=()=>{"other"===s.value?i.parentElement.classList.remove("form__field--hidden"):i.parentElement.classList.add("form__field--hidden")}})(),(()=>{const e=document.querySelectorAll(".studyorientation-slider");e&&e.forEach((e=>{const t=e.querySelector(".studyorientation-slider__input");const n=e.querySelector(".studyorientation-slider__range");t.addEventListener("input",(e=>{n.value=e.target.value})),n.addEventListener("input",(e=>{t.value=e.target.value}))}))})()}();
