PageSourceSearch

https://www.evonik.com/etc.clientlibs/evonik/clientlibs/clientlib-…-802fcd0bf58eaf90356839a09cc2eefd-lc.min.js

js evonik.com collected 2026-09-24 07:35:41 UTC 363,440 bytes, 49 lines download raw bytes

1import{n as e,t}from"/etc.clientlibs/evonik/clientlibs/clientlib-dependencies/resources/chunks/rolldown-runtime.Bh1tDfsg.js";import{a as n,c as r,l as i,n as a,o,r as s,s as c,t as l}from"/etc.clientlibs/evonik/clientlibs/clientlib-dependencies/resources/chunks/floating-ui.dom.J4e8nBk2.js";var u={purple:getComputedStyle(document.documentElement).getPropertyValue(`--color-purple`)||`#991D85`,purpleDark:getComputedStyle(document.documentElement).getPropertyValue(`--color-purple-dark`)||`#7A176A`,purpleDark2:getComputedStyle(document.documentElement).getPropertyValue(`--color-purple-dark-2`)||`#5C1150`,purpleLight:getComputedStyle(document.documentElement).getPropertyValue(`--color-purple-light`)||`#D6A5CE`,petrol:getComputedStyle(document.documentElement).getPropertyValue(`--color-petrol`)||`#008C95`,petrolDark:getComputedStyle(document.documentElement).getPropertyValue(`--color-petrol-dark`)||`#00858D`,petrolLight:getComputedStyle(document.documentElement).getPropertyValue(`--color-petrol-light`)||`#6ABDC3`,green:getComputedStyle(document.documentElement).getPropertyValue(`--color-green`)||`#78BE20`,greenDark:getComputedStyle(document.documentElement).getPropertyValue(`--color-green-dark`)||`#5A9B16`,greenLight:getComputedStyle(document.documentElement).getPropertyValue(`--color-green-light`)||`#A8DFA0`,black:getComputedStyle(document.documentElement).getPropertyValue(`--color-black`)||`#000000`,white:getComputedStyle(document.documentElement).getPropertyValue(`--color-white`)||`#ffffff`,typoLight:getComputedStyle(document.documentElement).getPropertyValue(`--color-typo-light`)||`#808080`,warmgrey20:getComputedStyle(document.documentElement).getPropertyValue(`--color-warmgrey-20`)||`#F8F7F4`,warmgrey30:getComputedStyle(document.documentElement).getPropertyValue(`--color-warmgrey-30`)||`#F4F2EF`,warmgrey40:getComputedStyle(document.documentElement).getPropertyValue(`--color-warmgrey-40`)||`#F0EEE9`,warmgrey60:getComputedStyle(document.documentElement).getPropertyValue(`--color-warmgrey-60`)||`#E9E6DF`,warmgrey80:getComputedStyle(document.documentElement).getPropertyValue(`--color-warmgrey-80`)||`#E1DDD4`,warmgrey100:getComputedStyle(document.documentElement).getPropertyValue(`--color-warmgrey-100`)||`#DAD5C9`,disabledFill:getComputedStyle(document.documentElement).getPropertyValue(`--color-disabled-fill`)||`#F5F5F4`,disabled:getComputedStyle(document.documentElement).getPropertyValue(`--color-disabled`)||`#ACACAC`,focus:getComputedStyle(document.documentElement).getPropertyValue(`--color-focus`)||`#E9E6DF`,focusSecondary:getComputedStyle(document.documentElement).getPropertyValue(`--color-focus-secondary`)||`#000000`,confirmation:getComputedStyle(document.documentElement).getPropertyValue(`--color-confirmation`)||`#789D4A`,confirmationFill:getComputedStyle(document.documentElement).getPropertyValue(`--color-confirmation-fill`)||`#E4F2D2`,information:getComputedStyle(document.documentElement).getPropertyValue(`--color-information`)||`#0067A0`,erinformationFill:getComputedStyle(document.documentElement).getPropertyValue(`--color-information-fill`)||`#CCE1EC`,warning:getComputedStyle(document.documentElement).getPropertyValue(`--color-warning`)||`#DC6B31`,warningFill:getComputedStyle(document.documentElement).getPropertyValue(`--color-warning-fill`)||`#F8E1D6`,error:getComputedStyle(document.documentElement).getPropertyValue(`--color-error`)||`#9B2743`,errorFill:getComputedStyle(document.documentElement).getPropertyValue(`--color-error-fill`)||`#EBD4D9`,primary:getComputedStyle(document.documentElement).getPropertyValue(`--color-primary`)||`#991D85`,primaryLight:getComputedStyle(document.documentElement).getPropertyValue(`--color-primary-light`)||`#D6A5CE`,primaryDark:getComputedStyle(document.documentElement).getPropertyValue(`--color-primary-dark`)||`#7A176A`,primaryHover:getComputedStyle(document.documentElement).getPropertyValue(`--color-primary-hover`)||`#7A176A`,secondary:getComputedStyle(document.documentElement).getPropertyValue(`--color-secondary`)||`#ffffff`,secondaryHover:getComputedStyle(document.documentElement).getPropertyValue(`--color-secondary-hover`)||`#000000`};globalThis.colors=u;var d=!1,f=!1,p=[],m=-1,h=!1;function g(e){y(e)}function _(){h=!0}function v(){h=!1,x()}function y(e){p.includes(e)||p.push(e),x()}function b(e){let t=p.indexOf(e);t!==-1&&t>m&&p.splice(t,1)}function x(){if(!f&&!d){if(h)return;d=!0,queueMicrotask(S)}}function S(){d=!1,f=!0;for(let e=0;e<p.length;e++)p[e](),m=e;p.length=0,m=-1,f=!1}var C,w,T,E,D=!0;function ee(e){D=!1,e(),D=!0}function te(e){C=e.reactive,T=e.release,w=t=>e.effect(t,{scheduler:e=>{D?g(e):e()}}),E=e.raw}function O(e){w=e}function k(e){let t=()=>{};return[n=>{let r=w(n);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>
1{e._x_effects.forEach(e=>e())}),e._x_effects.add(r),t=()=>{r!==void 0&&(e._x_effects.delete(r),T(r))},r},()=>{t()}]}function A(e,t){let n=!0,r,i,a=w(()=>{let a=e(),o=JSON.stringify(a);if(!n&&(typeof a==`object`||a!==r)){let e=typeof r==`object`?JSON.parse(i):r;queueMicrotask(()=>{t(a,e)})}r=a,i=o,n=!1});return()=>T(a)}async function ne(e){_();try{await e(),await Promise.resolve()}finally{v()}}var j=[],M=[],N=[];function re(e){N.push(e)}function ie(e,t){typeof t==`function`?(e._x_cleanups||=[],e._x_cleanups.push(t)):(t=e,M.push(t))}function P(e){j.push(e)}function ae(e,t,n){e._x_attributeCleanups||={},e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}function oe(e,t){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEach(([n,r])=>{(t===void 0||t.includes(n))&&(r.forEach(e=>e()),delete e._x_attributeCleanups[n])})}function F(e){for(e._x_effects?.forEach(b);e._x_cleanups?.length;)e._x_cleanups.pop()()}var se=new MutationObserver(he),ce=!1;function le(){se.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),ce=!0}function ue(){I(),se.disconnect(),ce=!1}var de=[];function I(){let e=se.takeRecords();de.push(()=>e.length>0&&he(e));let t=de.length;queueMicrotask(()=>{if(de.length===t)for(;de.length>0;)de.shift()()})}function L(e){if(!ce)return e();ue();let t=e();return le(),t}var R=!1,fe=[];function pe(){R=!0}function me(){R=!1,he(fe),fe=[]}function he(e){if(R){fe=fe.concat(e);return}let t=[],n=new Set,r=new Map,i=new Map;for(let a=0;a<e.length;a++)if(!e[a].target._x_ignoreMutationObserver&&(e[a].type===`childList`&&(e[a].removedNodes.forEach(e=>{e.nodeType===1&&e._x_marker&&n.add(e)}),e[a].addedNodes.forEach(e=>{if(e.nodeType===1){if(n.has(e)){n.delete(e);return}e._x_marker||t.push(e)}})),e[a].type===`attributes`)){let t=e[a].target,n=e[a].attributeName,o=e[a].oldValue,s=()=>{r.has(t)||r.set(t,[]),r.get(t).push({name:n,value:t.getAttribute(n)})},c=()=>{i.has(t)||i.set(t,[]),i.get(t).push(n)};t.hasAttribute(n)&&o===null?s():t.hasAttribute(n)?(c(),s()):c()}i.forEach((e,t)=>{oe(t,e)}),r.forEach((e,t)=>{j.forEach(n=>n(t,e))});for(let e of n)t.some(t=>t.contains(e))||M.forEach(t=>t(e));for(let e of t)e.isConnected&&N.forEach(t=>t(e));t=null,n=null,r=null,i=null}function ge(e){return B(_e(e))}function z(e,t,n){return e._x_dataStack=[t,..._e(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter(e=>e!==t)}}function _e(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot==`function`&&e instanceof ShadowRoot?_e(e.host):e.parentNode?_e(e.parentNode):[]}function B(e){return new Proxy({objects:e},ye)}function ve(e,t){return e===null||e===Object.prototype?null:Object.prototype.hasOwnProperty.call(e,t)?e:ve(Object.getPrototypeOf(e),t)}var ye={ownKeys({objects:e}){return Array.from(new Set(e.flatMap(e=>Object.keys(e))))},has({objects:e},t){return t==Symbol.unscopables?!1:e.some(e=>Object.prototype.hasOwnProperty.call(e,t)||Reflect.has(e,t))},get({objects:e},t,n){return t==`toJSON`?be:Reflect.get(e.find(e=>Reflect.has(e,t))||{},t,n)},set({objects:e},t,n,r){let i;for(let n of e)if(i=ve(n,t),i)break;i||=e[e.length-1];let a=Object.getOwnPropertyDescriptor(i,t);return a?.set&&a?.get?a.set.call(r,n)||!0:Reflect.set(i,t,n)}};function be(){return Reflect.ownKeys(this).reduce((e,t)=>(e[t]=Reflect.get(this,t),e),{})}function xe(e){let t=e=>typeof e==`object`&&!Array.isArray(e)&&e!==null,n=(r,i=``)=>{Object.entries(Object.getOwnPropertyDescriptors(r)).forEach(([a,{value:o,enumerable:s}])=>{if(s===!1||o===void 0||typeof o==`object`&&o&&o.__v_skip)return;let c=i===``?a:`${i}.${a}`;typeof o==`object`&&o&&o._x_interceptor?r[a]=o.initialize(e,c,a):t(o)&&o!==r&&!(o instanceof Element)&&n(o,c)})};return n(e)}function Se(e,t=()=>{}){let n={initialValue:void 0,_x_interceptor:!0,initialize(t,n,r){return e(this.initialValue,()=>Ce(t,n),e=>we(t,n,e),n,r)}};return t(n),e=>{if(typeof e==`object`&&e&&e._x_interceptor){let t=n.initialize.bind(n);n.initialize=(r,i,a)=>(n.initialValue=e.initialize(r,i,a),t(r,i,a))}else n.initialValue=e;return n}}function Ce(e,t){return t.split(`.`).reduce((e,t)=>
vendor: 13,884 bytes, lines 1-5
1e[t],e)}function we(e,t,n){if(typeof t==`string`&&(t=t.split(`.`)),t.length===1)e[t[0]]=n;else if(t.length===0)throw error;else if(e[t[0]])return we(e[t[0]],t.slice(1),n);else return e[t[0]]={},we(e[t[0]],t.slice(1),n)}var Te={};function V(e,t){Te[e]=t}function Ee(e,t){let n=De(t);return Object.entries(Te).forEach(([r,i])=>{Object.defineProperty(e,`$${r}`,{get(){return i(t,n)},enumerable:!1})}),e}function De(e){let[t,n]=it(e),r={interceptor:Se,...t};return ie(e,n),r}function Oe(e,t,n,...r){try{return n(...r)}catch(n){ke(n,e,t)}}function ke(...e){return Ae(...e)}var Ae=Me;function je(e){Ae=e}function Me(e,t,n=void 0){e=Object.assign(e??{message:`No error message given.`},{el:t,expression:n}),console.warn(`Alpine Expression Error: ${e.message}
2
3${n?`Expression: "`+n+`"
4
5`:``}`,t),setTimeout(()=>{throw e},0)}var Ne=!0;function Pe(e){let t=Ne;Ne=!1;let n=e();return Ne=t,n}function Fe(e,t,n={}){let r;return H(e,t)(e=>r=e,n),r}function H(...e){return Ie(...e)}var Ie=()=>{};function Le(e){Ie=e}var Re;function ze(e){Re=e}function U(e,t){let n={};Ee(n,e);let r=[n,..._e(e)],i=typeof t==`function`?Be(r,t):Ue(r,t,e);return Oe.bind(null,e,t,i)}function Be(e,t){return(n=()=>{},{scope:r={},params:i=[],context:a}={})=>{if(!Ne){We(n,t,B([r,...e]),i);return}We(n,t.apply(B([r,...e]),i))}}var Ve={};function He(e,t){if(Ve[e])return Ve[e];let n=Object.getPrototypeOf(async function(){}).constructor,r=/^[\n\s]*if.*\(.*\)/.test(e.trim())||/^(let|const)\s/.test(e.trim())?`(async()=>{ ${e} })()`:e,i=(()=>{try{let t=new n([`__self`,`scope`],`with (scope) { __self.result = ${r} }; __self.finished = true; return __self.result;`);return Object.defineProperty(t,"name",{value:`[Alpine] ${e}`}),t}catch(n){return ke(n,t,e),Promise.resolve()}})();return Ve[e]=i,i}function Ue(e,t,n){let r=He(t,n);return(i=()=>{},{scope:a={},params:o=[],context:s}={})=>{r.result=void 0,r.finished=!1;let c=B([a,...e]);if(typeof r==`function`){let e=r.call(s,r,c).catch(e=>ke(e,n,t));r.finished?(We(i,r.result,c,o,n),r.result=void 0):e.then(e=>{We(i,e,c,o,n)}).catch(e=>ke(e,n,t)).finally(()=>r.result=void 0)}}}function We(e,t,n,r,i){if(Ne&&typeof t==`function`){let a=t.apply(n,r);a instanceof Promise?a.then(t=>We(e,t,n,r)).catch(e=>ke(e,i,t)):e(a)}else typeof t==`object`&&t instanceof Promise?t.then(t=>e(t)):e(t)}function Ge(...e){return Re(...e)}function Ke(e,t,n={}){let r={};Ee(r,e);let i=[r,..._e(e)],a=B([n.scope??{},...i]),o=n.params??[];if(t.includes(`await`)){let e=Object.getPrototypeOf(async function(){}).constructor;return new e([`scope`],`with (scope) { let __result = ${/^[\n\s]*if.*\(.*\)/.test(t.trim())||/^(let|const)\s/.test(t.trim())?`(async()=>{ ${t} })()`:t}; return __result }`).call(n.context,a)}else{let e=/^[\n\s]*if.*\(.*\)/.test(t.trim())||/^(let|const)\s/.test(t.trim())?`(()=>{ ${t} })()`:t,r=Function([`scope`],`with (scope) { let __result = ${e}; return __result }`).call(n.context,a);return typeof r==`function`&&Ne?r.apply(a,o):r}}var qe=`x-`;function Je(e=``){return qe+e}function Ye(e){qe=e}var Xe={};function W(e,t){return Xe[e]=t,{before(t){if(!Xe[t]){console.warn(String.raw`Cannot find directive \`${t}\`. \`${e}\` will use the default order of execution`);return}let n=ht.indexOf(t);ht.splice(n>=0?n:ht.indexOf(`DEFAULT`),0,e)}}}function Ze(e){return Object.keys(Xe).includes(e)}function Qe(e,t,n){if(t=Array.from(t),e._x_virtualDirectives){let n=Object.entries(e._x_virtualDirectives).map(([e,t])=>({name:e,value:t})),r=$e(n);n=n.map(e=>r.find(t=>t.name===e.name)?{name:`x-bind:${e.name}`,value:`"${e.value}"`}:e),t=t.concat(n)}let r={};return t.map(ct((e,t)=>r[e]=t)).filter(dt).map(pt(r,n)).sort(gt).map(t=>at(e,t))}function $e(e){return Array.from(e).map(ct()).filter(e=>!dt(e))}var et=!1,tt=new Map,nt=Symbol();function rt(e){et=!0;let t=Symbol();nt=t,tt.set(t,[]);let n=()=>{for(;tt.get(t).length;)tt.get(t).shift()();tt.delete(t)};e(n),et=!1,n()}function it(e){let t=[],n=e=>t.push(e),[r,i]=k(e);return t.push(i),[{Alpine:Zn,effect:r,cleanup:n,evaluateLater:H.bind(H,e),evaluate:Fe.bind(Fe,e)},()=>t.forEach(e=>e())]}function at(e,t){let n=Xe[t.type]||(()=>{}),[r,i]=it(e);ae(e,t.original,i);let a=()=>{e._x_ignore||e._x_ignoreSelf||(n.inline&&n.inline(e,t,r),n=n.bind(n,e,t,r),et?tt.get(nt).push(n):n())};return a.runCleanups=i,a}var ot=(e,t)=>({name:n,value:r})=>(n.startsWith(e)&&(n=n.replace(e,t)),{name:n,value:r}),st=e=>e;function ct(e=()=>{}){return({name:t,value:n})=>{let{name:r,value:i}=lt.reduce((e,t)=>t(e),{name:t,value:n});return r!==t&&e(r,t),{name:r,value:i}}}var lt=[];function ut(e){lt.push(e)}function dt({name:e}){return ft().test(e)}var ft=()=>RegExp(`^${qe}([^:^.]+)\\b`);function pt(e,t){return({name:n,value:r})=>{n===r&&(r=``);let i=n.match(ft()),a=n.match(/:([a-zA-Z0-9\-_:]+)/),o=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],s=t||e[n]||n;return{type:i?i[1]:null,value:a?a[1]:null,modifiers:o.map(e=>e.replace(`.`,``)),expression:r,original:s}}}var mt=`DEFAULT`,ht=[`ignore`,`ref`,`id`,`data`,`anchor`,`bind`,`init`,`for`,`model`,`modelable`,`transition`,`show`,`if`,mt,`teleport`];function gt(e,t){let n=ht.indexOf(e.type)===-1?mt:e.type,r=ht.indexOf(t.type)===-1?mt:t.type;return ht.indexOf(n)-ht.indexOf(r)}function _t(e,t,n={},r={}){return e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:!0,...r}))}function vt(e,t){if(typeof ShadowRoot==`function`&&e instanceof ShadowRoot){Array.from(e.children).forEach(e=>vt(e,t));return}let n=!1;if(t(e,()=>n=!0),n)return;let r=e.firstElementChild;for(;r;)vt(r,t,!1),r=r.nextElementSibling}function yt(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var bt=!1;function xt(){bt&&yt(`Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems.`),bt=!0,document.body||yt("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),_t(document,`alpine:init`),_t(document,`alpine:initializing`),le(),re(e=>Pt(e,vt)),ie(e=>Ft(e)),P((e,t)=>{Qe(e,t).forEach(e=>e())}),Array.from(document.querySelectorAll(Tt().join(`,`))).filter(e=>!Ot(e.parentElement,!0)).forEach(e=>{Pt(e)}),_t(document,`alpine:initialized`),setTimeout(()=>{It()})}var St=[],Ct=[];function wt(){return St.map(e=>e())}function Tt(){return St.concat(Ct).map(e=>e())}function Et(e){St.push(e)}function Dt(e){Ct.push(e)}function Ot(e,t=!1){return kt(e,e=>{if((t?Tt():wt()).some(t=>e.matches(t)))return!0})}function kt(e,t){if(e){if(t(e))return e;if(e._x_teleportBack)return kt(e._x_teleportBack,t);if(e.parentNode instanceof ShadowRoot)return kt(e.parentNode.host,t);if(e.parentElement)return kt(e.parentElement,t)}}function At(e){return wt().some(t=>e.matches(t))}var jt=[];function Mt(e){jt.push(e)}var Nt=1;function Pt(e,t=vt,n=()=>{}){kt(e,e=>e._x_ignore)||rt(()=>{t(e,(e,t)=>{e._x_marker||(n(e,t),jt.forEach(n=>n(e,t)),Qe(e,e.attributes).forEach(e=>e()),e._x_ignore||(e._x_marker=Nt++),e._x_ignore&&t())})})}function Ft(e,t=vt){t(e,e=>{F(e),oe(e),delete e._x_marker})}function It(){[[`ui`,`dialog`,[`[x-dialog], [x-popover]`]],[`anchor`,`anchor`,[`[x-anchor]`]],[`sort`,`sort`,[`[x-sort]`]]].forEach(([e,t,n])=>{Ze(t)||n.some(t=>{if(document.querySelector(t))return yt(`found "${t}", but missing ${e} plugin`),!0})})}var Lt=[],Rt=!1;function zt(e=()=>{}){return queueMicrotask(()=>{Rt||setTimeout(()=>{Bt()})}),new Promise(t=>{Lt.push(()=>{e(),t()})})}function Bt(){for(Rt=!1;Lt.length;)Lt.shift()()}function Vt(){Rt=!0}function Ht(e,t){return Array.isArray(t)?Wt(e,t.join(` `)):typeof t==`object`&&t?Gt(e,t):typeof t==`function`?Ht(e,t()):Wt(e,t)}function Ut(e){return e.split(/\s/).filter(Boolean)}function Wt(e,t){return t=t===!0?t=``:t||``,(t=>(e.classList.add(...t),()=>{e.classList.remove(...t)}))((t=>Ut(t).filter(t=>!e.classList.contains(t)).filter(Boolean))(t))}function Gt(e,t){let n=Object.entries(t).flatMap(([e,t])=>t?Ut(e):!1).filter(Boolean),r=Object.entries(t).flatMap(([e,t])=>t?!1:Ut(e)).filter(Boolean),i=[],a=[];return r.forEach(t=>{e.classList.contains(t)&&(e.classList.remove(t),a.push(t))}),n.forEach(t=>{e.classList.contains(t)||(e.classList.add(t),i.push(t))}),()=>{a.forEach(t=>e.classList.add(t)),i.forEach(t=>e.classList.remove(t))}}function Kt(e,t){return typeof t==`object`&&t?qt(e,t):Jt(e,t)}function qt(e,t){let n={};return Object.entries(t).forEach(([t,r])=>{n[t]=e.style[t],t.startsWith(`--`)||(t=Yt(t)),e.style.setProperty(t,r)}),setTimeout(()=>{e.style.length===0&&e.removeAttribute(`style`)}),()=>{Kt(e,n)}}function Jt(e,t){let n=e.getAttribute(`style`,t);return e.setAttribute(`style`,t),()=>{e.setAttribute(`style`,n||``)}}function Yt(e){return e.replace(/([a-z])([A-Z])/g,`$1-$2`).toLowerCase()}function Xt(e,t=()=>{}){let n=!1;return function(){n?t.apply(this,arguments):(n=!0,e.apply(this,arguments))}}W(`transition`,(e,{value:t,modifiers:n,expression:r},{evaluate:i})=>{typeof r==`function`&&(r=i(r)),r!==!1&&(!r||typeof r==`boolean`?Qt(e,n,t):Zt(e,r,t))});function Zt(e,t,n){$t(e,Ht,``),{enter:t=>{e._x_transition.enter.during=t},"enter-start":t=>{e._x_transition.enter.start=t},"enter-end":t=>{e._x_transition.enter.end=t},leave:t=>{e._x_transition.leave.during=t},"leave-start":t=>{e._x_transition.leave.start=t},"leave-end":t=>{e._x_transition.leave.end=t}}[n](t)}function Qt(e,t,n){$t(e,Kt);let r=!t.includes(`in`)&&!t.includes(`out`)&&!n,i=r||t.includes(`in`)||[`enter`].includes(n),a=r||t.includes(`out`)||[`leave`].includes(n);t.includes(`in`)&&!r&&(t=t.filter((e,n)=>n<t.indexOf(`out`))),t.includes(`out`)&&!r&&(t=t.filter((e,n)=>n>t.indexOf(`out`)));let o=!t.includes(`opacity`)&&!t.includes(`scale`),s=o||t.includes(`opacity`),c=o||t.includes(`scale`),l=+!s,u=c?rn(t,`scale`,95)/100:1,d=rn(t,`delay`,0)/1e3,f=rn(t,`origin`,`center`),p=`opacity, transform`,m=rn(t,`duration`,150)/1e3,h=rn(t,`duration`,75)/1e3,g=`cubic-bezier(0.4, 0.0, 0.2, 1)`;i&&(e._x_transition.enter.during={transformOrigin:f,transitionDelay:`${d}s`,transitionProperty:p,transitionDuration:`${m}s`,transitionTimingFunction:g},e._x_transition.enter.start={opacity:l,transform:`scale(${u})`},e._x_transition.enter.end={opacity:1,transform:`scale(1)`}),a&&(e._x_transition.leave.during={transformOrigin:f,transitionDelay:`${d}s`,transitionProperty:p,transitionDuration:`${h}s`,transitionTimingFunction:g},e._x_transition.leave.start={opacity:1,transform:`scale(1)`},e._x_transition.leave.end={opacity:l,transform:`scale(${u})`})}function $t(e,t,n={}){e._x_transition||={enter:{during:n,start:n,end:n},leave:{during:n,start:n,end:n},in(n=()=>{},r=()=>{}){tn(e,t,{during:this.enter.during,start:this.enter.start,end:this.enter.end},n,r)},out(n=()=>{},r=()=>{}){tn(e,t,{during:this.leave.during,start:this.leave.start,end:this.leave.end},n,r)}}}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(e,t,n,r){let i=document.visibilityState===`visible`?requestAnimationFrame:setTimeout,a=()=>i(n);if(t){e._x_transition&&(e._x_transition.enter||e._x_transition.leave)?e._x_transition.enter&&(Object.entries(e._x_transition.enter.during).length||Object.entries(e._x_transition.enter.start).length||Object.entries(e._x_transition.enter.end).length)?e._x_transition.in(n):a():e._x_transition?e._x_transition.in(n):a();return}e._x_hidePromise=e._x_transition?new Promise((t,n)=>{e._x_transition.out(()=>{},()=>t(r)),e._x_transitioning&&e._x_transitioning.beforeCancel(()=>n({isFromCancelledTransition:!0}))}):Promise.resolve(r),queueMicrotask(()=>{let t=en(e);t?(t._x_hideChildren||=[],t._x_hideChildren.push(e)):i(()=>{let t=e=>{let n=Promise.all([e._x_hidePromise,...(e._x_hideChildren||[]).map(t)]).then(([e])=>e?.());return delete e._x_hidePromise,delete e._x_hideChildren,n};t(e).catch(e=>{if(!e.isFromCancelledTransition)throw e})})})};function en(e){let t=e.parentNode;if(t)return t._x_hidePromise?t:en(t)}function tn(e,t,{during:n,start:r,end:i}={},a=()=>{},o=()=>{}){if(e._x_transitioning&&e._x_transitioning.cancel(),Object.keys(n).length===0&&Object.keys(r).length===0&&Object.keys(i).length===0){a(),o();return}let s,c,l;nn(e,{start(){s=t(e,r)},during(){c=t(e,n)},before:a,end(){s(),l=t(e,i)},after:o,cleanup(){c(),l()}})}function nn(e,t){let n,r,i,a=Xt(()=>{L(()=>{n=!0,r||t.before(),i||(t.end(),Bt()),t.after(),e.isConnected&&t.cleanup(),delete e._x_transitioning})});e._x_transitioning={beforeCancels:[],beforeCancel(e){this.beforeCancels.push(e)},cancel:Xt(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();a()}),finish:a},L(()=>{t.start(),t.during()}),Vt(),requestAnimationFrame(()=>{if(n)return;let a=Number(getComputedStyle(e).transitionDuration.replace(/,.*/,``).replace(`s`,``))*1e3,o=Number(getComputedStyle(e).transitionDelay.replace(/,.*/,``).replace(`s`,``))*1e3;a===0&&(a=Number(getComputedStyle(e).animationDuration.replace(`s`,``))*1e3),L(()=>{t.before()}),r=!0,requestAnimationFrame(()=>{n||(L(()=>{t.end()}),Bt(),setTimeout(e._x_transitioning.finish,a+o),i=!0)})})}function rn(e,t,n){if(e.indexOf(t)===-1)return n;let r=e[e.indexOf(t)+1];if(!r||t===`scale`&&isNaN(r))return n;if(t===`duration`||t===`delay`){let e=r.match(/([0-9]+)ms/);if(e)return e[1]}return t===`origin`&&[`top`,`right`,`left`,`center`,`bottom`].includes(e[e.indexOf(t)+2])?[r,e[e.indexOf(t)+2]].join(` `):r}var an=!1;function on(e,t=()=>{}){return(...n)=>an?t(...n):e(...n)}function sn(e){return(...t)=>an&&e(...t)}var cn=[];function ln(e){cn.push(e)}function un(e,t){cn.forEach(n=>n(e,t)),an=!0,mn(()=>{Pt(t,(e,t)=>{t(e,()=>{})})}),an=!1}var dn=!1;function fn(e,t){t._x_dataStack||=e._x_dataStack,an=!0,dn=!0,mn(()=>{pn(t)}),an=!1,dn=!1}function pn(e){let t=!1;Pt(e,(e,n)=>{vt(e,(e,r)=>{if(t&&At(e))return r();t=!0,n(e,r)})})}function mn(e){let t=w;O((e,n)=>{let r=t(e);return T(r),()=>{}}),e(),O(t)}function hn(e,t,n,r=[]){switch(e._x_bindings||=C({}),e._x_bindings[t]=n,t=r.includes(`camel`)?wn(t):t,t){case`value`:gn(e,n);break;case`style`:vn(e,n);break;case`class`:_n(e,n);break;case`selected`:case`checked`:yn(e,t,n);break;
5default:bn(e,t,n);break}}function gn(e,t){if(Pn(e))e.attributes.value===void 0&&(e.value=t);else if(Nn(e))Number.isInteger(t)?e.value=t:!Array.isArray(t)&&typeof t!=`boolean`&&![null,void 0].includes(t)?e.value=String(t):Array.isArray(t)?e.checked=t.some(t=>Tn(t,e.value)):e.checked=!!t;else if(e.tagName===`SELECT`)Cn(e,t);else{if(e.value===t)return;e.value=t===void 0?``:t}}function _n(e,t){e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedClasses=Ht(e,t)}function vn(e,t){e._x_undoAddedStyles&&e._x_undoAddedStyles(),e._x_undoAddedStyles=Kt(e,t)}function yn(e,t,n){bn(e,t,n),Sn(e,t,n)}function bn(e,t,n){[null,void 0,!1].includes(n)&&kn(t)?e.removeAttribute(t):(On(t)&&(n=t),xn(e,t,n))}function xn(e,t,n){e.getAttribute(t)!=n&&e.setAttribute(t,n)}function Sn(e,t,n){e[t]!==n&&(e[t]=n)}function Cn(e,t){let n=[].concat(t).map(e=>e+``);Array.from(e.options).forEach(e=>{e.selected=n.includes(e.value)})}function wn(e){return e.toLowerCase().replace(/-(\w)/g,(e,t)=>t.toUpperCase())}function Tn(e,t){return e==t}function En(e){return[1,`1`,`true`,`on`,`yes`,!0].includes(e)?!0:[0,`0`,`false`,`off`,`no`,!1].includes(e)?!1:e?!!e:null}var Dn=new Set(`allowfullscreen.async.autofocus.autoplay.checked.controls.default.defer.disabled.formnovalidate.inert.ismap.itemscope.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.selected.shadowrootclonable.shadowrootdelegatesfocus.shadowrootserializable`.split(`.`));function On(e){return Dn.has(e)}function kn(e){return![`aria-pressed`,`aria-checked`,`aria-expanded`,`aria-selected`].includes(e)}function An(e,t,n){return e._x_bindings&&e._x_bindings[t]!==void 0?e._x_bindings[t]:Mn(e,t,n)}function jn(e,t,n,r=!0){if(e._x_bindings&&e._x_bindings[t]!==void 0)return e._x_bindings[t];if(e._x_inlineBindings&&e._x_inlineBindings[t]!==void 0){let n=e._x_inlineBindings[t];return n.extract=r,Pe(()=>Fe(e,n.expression))}return Mn(e,t,n)}function Mn(e,t,n){let r=e.getAttribute(t);return r===null?typeof n==`function`?n():n:r===``?!0:On(t)?!![t,`true`].includes(r):r}function Nn(e){return e.type===`checkbox`||e.localName===`ui-checkbox`||e.localName===`ui-switch`}function Pn(e){return e.type===`radio`||e.localName===`ui-radio`}function Fn(e,t){let n;return function(){let r=this,i=arguments;clearTimeout(n),n=setTimeout(function(){n=null,e.apply(r,i)},t)}}function In(e,t){let n;return function(){let r=this,i=arguments;n||(e.apply(r,i),n=!0,setTimeout(()=>n=!1,t))}}function Ln({get:e,set:t},{get:n,set:r}){let i=!0,a,o=w(()=>{let o=e(),s=n();if(i)r(Rn(o)),i=!1;else{let e=JSON.stringify(o),n=JSON.stringify(s);e===a?e!==n&&t(Rn(s)):r(Rn(o))}a=JSON.stringify(e()),JSON.stringify(n())});return()=>{T(o)}}function Rn(e){return typeof e==`object`?JSON.parse(JSON.stringify(e)):e}function zn(e){(Array.isArray(e)?e:[e]).forEach(e=>e(Zn))}var Bn={},Vn=!1;function Hn(e,t){if(Vn||=(Bn=C(Bn),!0),t===void 0)return Bn[e];Bn[e]=t,xe(Bn[e]),typeof t==`object`&&t&&t.hasOwnProperty(`init`)&&typeof t.init==`function`&&Bn[e].init()}function Un(){return Bn}var Wn={};function Gn(e,t){let n=typeof t==`function`?t:()=>t;return e instanceof Element?qn(e,n()):(Wn[e]=n,()=>{})}function Kn(e){return Object.entries(Wn).forEach(([t,n])=>{Object.defineProperty(e,t,{get(){return(...e)=>n(...e)}})}),e}function qn(e,t,n){let r=[];for(;r.length;)r.pop()();let i=Object.entries(t).map(([e,t])=>({name:e,value:t})),a=$e(i);return i=i.map(e=>a.find(t=>t.name===e.name)?{name:`x-bind:${e.name}`,value:`"${e.value}"`}:e),Qe(e,i,n).map(e=>{r.push(e.runCleanups),e()}),()=>{for(;r.length;)r.pop()()}}var Jn={};function Yn(e,t){Jn[e]=t}function Xn(e,t){return Object.entries(Jn).forEach(([n,r])=>{Object.defineProperty(e,n,{get(){return(...e)=>r.bind(t)(...e)},enumerable:!1})}),e}var Zn={get reactive(){return C},get release(){return T},get effect(){return w},get raw(){return E},get transaction(){return ne},version:`3.15.12`,flushAndStopDeferringMutations:me,dontAutoEvaluateFunctions:Pe,disableEffectScheduling:ee,startObservingMutations:le,stopObservingMutations:ue,setReactivityEngine:te,onAttributeRemoved:ae,onAttributesAdded:P,closestDataStack:_e,skipDuringClone:on,onlyDuringClone:sn,addRootSelector:Et,addInitSelector:Dt,setErrorHandler:je,interceptClone:ln,addScopeToNode:z,deferMutations:pe,mapAttributes:ut,evaluateLater:H,interceptInit:Mt,initInterceptors:xe,injectMagics:Ee,setEvaluator:Le,setRawEvaluator:ze,mergeProxies:B,extractProp:jn,findClosest:kt,onElRemoved:ie,closestRoot:Ot,destroyTree:Ft,interceptor:Se,transition:tn,setStyles:Kt,mutateDom:L,directive:W,entangle:Ln,throttle:In,debounce:Fn,evaluate:Fe,evaluateRaw:Ge,initTree:Pt,nextTick:zt,prefixed:Je,prefix:Ye,plugin:zn,magic:V,store:Hn,start:xt,clone:fn,cloneNode:un,bound:An,$data:ge,watch:A,walk:vt,data:Yn,bind:Gn};function Qn(e,t){let n=Object.create(null),r=e.split(`,`);for(let e=0;e<r.length;e++)n[r[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}var $n=Object.freeze({});Object.freeze([]);var er=Object.prototype.hasOwnProperty,tr=(e,t)=>er.call(e,t),nr=Array.isArray,rr=e=>cr(e)===`[object Map]`,ir=e=>typeof e==`string`,ar=e=>typeof e==`symbol`,or=e=>typeof e==`object`&&!!e,sr=Object.prototype.toString,cr=e=>sr.call(e),lr=e=>cr(e).slice(8,-1),ur=e=>ir(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,dr=(e=>{let t=Object.create(null);return n=>t[n]||(t[n]=e(n))})(e=>e.charAt(0).toUpperCase()+e.slice(1)),fr=(e,t)=>e!==t&&(e===e||t===t),pr=new WeakMap,mr=[],hr,gr=Symbol(`iterate`),_r=Symbol(`Map key iterate`);function vr(e){return e&&e._isEffect===!0}function yr(e,t=$n){vr(e)&&(e=e.raw);let n=Sr(e,t);return t.lazy||n(),n}function br(e){e.active&&=(Cr(e),e.options.onStop&&e.options.onStop(),!1)}var xr=0;function Sr(e,t){let n=function(){if(!n.active)return e();if(!mr.includes(n)){Cr(n);try{return Dr(),mr.push(n),hr=n,e()}finally{mr.pop(),Or(),hr=mr[mr.length-1]}}};return n.id=xr++,n.allowRecurse=!!t.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=e,n.deps=[],n.options=t,n}function Cr(e){let{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}var wr=!0,Tr=[];function Er(){Tr.push(wr),wr=!1}function Dr(){Tr.push(wr),wr=!0}function Or(){let e=Tr.pop();wr=e===void 0?!0:e}function kr(e,t,n){if(!wr||hr===void 0)return;let r=pr.get(e);r||pr.set(e,r=new Map);let i=r.get(n);i||r.set(n,i=new Set),i.has(hr)||(i.add(hr),hr.deps.push(i),hr.options.onTrack&&hr.options.onTrack({effect:hr,target:e,type:t,key:n}))}function Ar(e,t,n,r,i,a){let o=pr.get(e);if(!o)return;let s=new Set,c=e=>
5{e&&e.forEach(e=>{(e!==hr||e.allowRecurse)&&s.add(e)})};if(t===`clear`)o.forEach(c);else if(n===`length`&&nr(e))o.forEach((e,t)=>{(t===`length`||t>=r)&&c(e)});else switch(n!==void 0&&c(o.get(n)),t){case`add`:nr(e)?ur(n)&&c(o.get(`length`)):(c(o.get(gr)),rr(e)&&c(o.get(_r)));break;case`delete`:nr(e)||(c(o.get(gr)),rr(e)&&c(o.get(_r)));break;case`set`:rr(e)&&c(o.get(gr));break}s.forEach(o=>{o.options.onTrigger&&o.options.onTrigger({effect:o,target:e,key:n,type:t,newValue:r,oldValue:i,oldTarget:a}),o.options.scheduler?o.options.scheduler(o):o()})}var jr=Qn(`__proto__,__v_isRef,__isVue`),Mr=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(ar)),Nr=Lr(),Pr=Lr(!0),Fr=Ir();function Ir(){let e={};return[`includes`,`indexOf`,`lastIndexOf`].forEach(t=>{e[t]=function(...e){let n=G(this);for(let e=0,t=this.length;e<t;e++)kr(n,`get`,e+``);let r=n[t](...e);return r===-1||r===!1?n[t](...e.map(G)):r}}),[`push`,`pop`,`shift`,`unshift`,`splice`].forEach(t=>{e[t]=function(...e){Er();let n=G(this)[t].apply(this,e);return Or(),n}}),e}function Lr(e=!1,t=!1){return function(n,r,i){if(r===`__v_isReactive`)return!e;if(r===`__v_isReadonly`)return e;if(r===`__v_raw`&&i===(e?t?_i:gi:t?hi:mi).get(n))return n;let a=nr(n);if(!e&&a&&tr(Fr,r))return Reflect.get(Fr,r,i);let o=Reflect.get(n,r,i);return(ar(r)?Mr.has(r):jr(r))||(e||kr(n,`get`,r),t)?o:Ci(o)?!a||!ur(r)?o.value:o:or(o)?e?xi(o):bi(o):o}}var Rr=zr();function zr(e=!1){return function(t,n,r,i){let a=t[n];if(!e&&(r=G(r),a=G(a),!nr(t)&&Ci(a)&&!Ci(r)))return a.value=r,!0;let o=nr(t)&&ur(n)?Number(n)<t.length:tr(t,n),s=Reflect.set(t,n,r,i);return t===G(i)&&(o?fr(r,a)&&Ar(t,`set`,n,r,a):Ar(t,`add`,n,r)),s}}function Br(e,t){let n=tr(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&Ar(e,`delete`,t,void 0,r),i}function Vr(e,t){let n=Reflect.has(e,t);return(!ar(t)||!Mr.has(t))&&kr(e,`has`,t),n}function Hr(e){return kr(e,`iterate`,nr(e)?`length`:gr),Reflect.ownKeys(e)}var Ur={get:Nr,set:Rr,deleteProperty:Br,has:Vr,ownKeys:Hr},Wr={get:Pr,set(e,t){return console.warn(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0},deleteProperty(e,t){return console.warn(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}},Gr=e=>or(e)?bi(e):e,Kr=e=>or(e)?xi(e):e,qr=e=>e,Jr=e=>Reflect.getPrototypeOf(e);function Yr(e,t,n=!1,r=!1){e=e.__v_raw;let i=G(e),a=G(t);t!==a&&!n&&kr(i,`get`,t),!n&&kr(i,`get`,a);let{has:o}=Jr(i),s=r?qr:n?Kr:Gr;if(o.call(i,t))return s(e.get(t));if(o.call(i,a))return s(e.get(a));e!==i&&e.get(t)}function Xr(e,t=!1){let n=this.__v_raw,r=G(n),i=G(e);return e!==i&&!t&&kr(r,`has`,e),!t&&kr(r,`has`,i),e===i?n.has(e):n.has(e)||n.has(i)}function Zr(e,t=!1){return e=e.__v_raw,!t&&kr(G(e),`iterate`,gr),Reflect.get(e,`size`,e)}function Qr(e){e=G(e);let t=G(this);return Jr(t).has.call(t,e)||(t.add(e),Ar(t,`add`,e,e)),this}function $r(e,t){t=G(t);let n=G(this),{has:r,get:i}=Jr(n),a=r.call(n,e);a?pi(n,r,e):(e=G(e),a=r.call(n,e));let o=i.call(n,e);return n.set(e,t),a?fr(t,o)&&Ar(n,`set`,e,t,o):Ar(n,`add`,e,t),this}function ei(e){let t=G(this),{has:n,get:r}=Jr(t),i=n.call(t,e);i?pi(t,n,e):(e=G(e),i=n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&Ar(t,`delete`,e,void 0,a),o}function ti(){let e=G(this),t=e.size!==0,n=rr(e)?new Map(e):new Set(e),r=e.clear();return t&&Ar(e,`clear`,void 0,void 0,n),r}function ni(e,t){return function(n,r){let i=this,a=i.__v_raw,o=G(a),s=t?qr:e?Kr:Gr;return!e&&kr(o,`iterate`,gr),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}}function ri(e,t,n){return function(...r){let i=this.__v_raw,a=G(i),o=rr(a),s=e===`entries`||e===Symbol.iterator&&o,c=e===`keys`&&o,l=i[e](...r),u=n?qr:t?Kr:Gr;return!t&&kr(a,`iterate`,c?_r:gr),{next(){let{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function ii(e){return function(...t){{let n=t[0]?`on key "${t[0]}" `:``;console.warn(`${dr(e)} operation ${n}failed: target is readonly.`,G(this))}return e===`delete`?!1:this}}function ai(){let e={get(e){return Yr(this,e)},get size(){return Zr(this)}
5,has:Xr,add:Qr,set:$r,delete:ei,clear:ti,forEach:ni(!1,!1)},t={get(e){return Yr(this,e,!1,!0)},get size(){return Zr(this)},has:Xr,add:Qr,set:$r,delete:ei,clear:ti,forEach:ni(!1,!0)},n={get(e){return Yr(this,e,!0)},get size(){return Zr(this,!0)},has(e){return Xr.call(this,e,!0)},add:ii(`add`),set:ii(`set`),delete:ii(`delete`),clear:ii(`clear`),forEach:ni(!0,!1)},r={get(e){return Yr(this,e,!0,!0)},get size(){return Zr(this,!0)},has(e){return Xr.call(this,e,!0)},add:ii(`add`),set:ii(`set`),delete:ii(`delete`),clear:ii(`clear`),forEach:ni(!0,!0)};return[`keys`,`values`,`entries`,Symbol.iterator].forEach(i=>{e[i]=ri(i,!1,!1),n[i]=ri(i,!0,!1),t[i]=ri(i,!1,!0),r[i]=ri(i,!0,!0)}),[e,n,t,r]}var[oi,si,ci,li]=ai();function ui(e,t){let n=t?e?li:ci:e?si:oi;return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(tr(n,r)&&r in t?n:t,r,i)}var di={get:ui(!1,!1)},fi={get:ui(!0,!1)};function pi(e,t,n){let r=G(n);if(r!==n&&t.call(e,r)){let t=lr(e);console.warn(`Reactive ${t} contains both the raw and reactive versions of the same object${t===`Map`?` as keys`:``}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var mi=new WeakMap,hi=new WeakMap,gi=new WeakMap,_i=new WeakMap;function vi(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function yi(e){return e.__v_skip||!Object.isExtensible(e)?0:vi(lr(e))}function bi(e){return e&&e.__v_isReadonly?e:Si(e,!1,Ur,di,mi)}function xi(e){return Si(e,!0,Wr,fi,gi)}function Si(e,t,n,r,i){if(!or(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;let a=i.get(e);if(a)return a;let o=yi(e);if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function G(e){return e&&G(e.__v_raw)||e}function Ci(e){return!!(e&&e.__v_isRef===!0)}V(`nextTick`,()=>zt),V(`dispatch`,e=>_t.bind(_t,e)),V(`watch`,(e,{evaluateLater:t,cleanup:n})=>(e,r)=>{let i=t(e);n(A(()=>{let e;return i(t=>e=t),e},r))}),V(`store`,Un),V(`data`,e=>ge(e)),V(`root`,e=>Ot(e)),V(`refs`,e=>(e._x_refs_proxy||=B(wi(e)),e._x_refs_proxy));function wi(e){let t=[];return kt(e,e=>{e._x_refs&&t.push(e._x_refs)}),t}var Ti={};function Ei(e){return Ti[e]||(Ti[e]=0),++Ti[e]}function Di(e,t){return kt(e,e=>{if(e._x_ids&&e._x_ids[t])return!0})}function Oi(e,t){e._x_ids||={},e._x_ids[t]||(e._x_ids[t]=Ei(t))}V(`id`,(e,{cleanup:t})=>(n,r=null)=>ki(e,`${n}${r?`-${r}`:``}`,t,()=>{let t=Di(e,n),i=t?t._x_ids[n]:Ei(n);return r?`${n}-${i}-${r}`:`${n}-${i}`})),ln((e,t)=>{e._x_id&&(t._x_id=e._x_id)});function ki(e,t,n,r){if(e._x_id||={},e._x_id[t])return e._x_id[t];let i=r();return e._x_id[t]=i,n(()=>{delete e._x_id[t]}),i}V(`el`,e=>e),Ai(`Focus`,`focus`,`focus`),Ai(`Persist`,`persist`,`persist`);function Ai(e,t,n){V(t,r=>yt(`You can't use [$${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${n}`,r))}W(`modelable`,(e,{expression:t},{effect:n,evaluateLater:r,cleanup:i})=>{let a=r(t),o=()=>{let e;return a(t=>e=t),e},s=r(`${t} = __placeholder`),c=e=>s(()=>{},{scope:{__placeholder:e}});c(o()),queueMicrotask(()=>{if(!e._x_model)return;e._x_removeModelListeners.default();let t=e._x_model.get,n=e._x_model.setWithModifiers;i(Ln({get(){return t()},set(e){n(e)}},{get(){return o()},set(e){c(e)}}))})}),W(`teleport`,(e,{modifiers:t,expression:n},{cleanup:r})=>{e.tagName.toLowerCase()!==`template`&&yt(`x-teleport can only be used on a <template> tag`,e);let i=Mi(n),a=e.content.cloneNode(!0).firstElementChild;e._x_teleport=a,a._x_teleportBack=e,e.setAttribute(`data-teleport-template`,!0),a.setAttribute(`data-teleport-target`,!0),e._x_forwardEvents&&e._x_forwardEvents.forEach(t=>{a.addEventListener(t,t=>{t.stopPropagation(),e.dispatchEvent(new t.constructor(t.type,t))})}),z(a,{},e);let o=(e,t,n)=>{n.includes(`prepend`)?t.parentNode.insertBefore(e,t):n.includes(`append`)?t.parentNode.insertBefore(e,t.nextSibling):t.appendChild(e)};L(()=>{on(()=>{o(a,i,t),Pt(a)})()}),e._x_teleportPutBack=()=>{let r=Mi(n);L(()=>{o(e._x_teleport,r,t)})},r(()=>L(()=>{a.remove(),Ft(a)}))});var ji=document.createElement(`div`);function Mi(e){let t=on(()=>document.querySelector(e),()=>ji)();return t||yt(`Cannot find x-teleport element for selector: "${e}"`),t}var Ni=()=>{};Ni.inline=(e,{modifiers:t},{cleanup:n})=>
vendor: 2,140 bytes, line 5
5{t.includes(`self`)?e._x_ignoreSelf=!0:e._x_ignore=!0,n(()=>{t.includes(`self`)?delete e._x_ignoreSelf:delete e._x_ignore})},W(`ignore`,Ni),W(`effect`,on((e,{expression:t},{effect:n})=>{n(H(e,t))}));function Pi(e,t,n,r){let i=e,a=e=>r(e),o={},s=(e,t)=>n=>t(e,n);return n.includes(`dot`)&&(t=Ii(t)),n.includes(`camel`)&&(t=Li(t)),n.includes(`capture`)&&(o.capture=!0),n.includes(`window`)&&(i=window),n.includes(`document`)&&(i=document),n.includes(`passive`)&&(o.passive=n[n.indexOf(`passive`)+1]!==`false`),a=Fi(n,a),n.includes(`prevent`)&&(a=s(a,(e,t)=>{t.preventDefault(),e(t)})),n.includes(`stop`)&&(a=s(a,(e,t)=>{t.stopPropagation(),e(t)})),n.includes(`once`)&&(a=s(a,(e,n)=>{e(n),i.removeEventListener(t,a,o)})),(n.includes(`away`)||n.includes(`outside`))&&(i=document,a=s(a,(t,n)=>{e.contains(n.target)||n.target.isConnected!==!1&&(e.offsetWidth<1&&e.offsetHeight<1||e._x_isShown!==!1&&t(n))})),n.includes(`self`)&&(a=s(a,(t,n)=>{n.target===e&&t(n)})),t===`submit`&&(a=s(a,(e,t)=>{t.target._x_pendingModelUpdates&&t.target._x_pendingModelUpdates.forEach(e=>e()),e(t)})),(Bi(t)||Vi(t))&&(a=s(a,(e,t)=>{Hi(t,n)||e(t)})),i.addEventListener(t,a,o),()=>{i.removeEventListener(t,a,o)}}function Fi(e,t){if(e.includes(`debounce`)){let n=e[e.indexOf(`debounce`)+1]||`invalid-wait`,r=Ri(n.split(`ms`)[0])?Number(n.split(`ms`)[0]):250;t=Fn(t,r)}if(e.includes(`throttle`)){let n=e[e.indexOf(`throttle`)+1]||`invalid-wait`,r=Ri(n.split(`ms`)[0])?Number(n.split(`ms`)[0]):250;t=In(t,r)}return t}function Ii(e){return e.replace(/-/g,`.`)}function Li(e){return e.toLowerCase().replace(/-(\w)/g,(e,t)=>t.toUpperCase())}function Ri(e){return!Array.isArray(e)&&!isNaN(e)}function zi(e){return[` `,`_`].includes(e)?e:e.replace(/([a-z])([A-Z])/g,`$1-$2`).replace(/[_\s]/,`-`).toLowerCase()}function Bi(e){return[`keydown`,`keyup`].includes(e)}function Vi(e){return[`contextmenu`,`click`,`mouse`].some(t=>e.includes(t))}function Hi(e,t){let n=t.filter(e=>![`window`,`document`,`prevent`,`stop`,`once`,`capture`,`self`,`away`,`outside`,`passive`,`preserve-scroll`,`blur`,`change`,`lazy`].includes(e));if(n.includes(`debounce`)){let e=n.indexOf(`debounce`);
5n.splice(e,Ri((n[e+1]||`invalid-wait`).split(`ms`)[0])?2:1)}if(n.includes(`throttle`)){let e=n.indexOf(`throttle`);n.splice(e,Ri((n[e+1]||`invalid-wait`).split(`ms`)[0])?2:1)}if(n.length===0||n.length===1&&Ui(e.key).includes(n[0]))return!1;let r=[`ctrl`,`shift`,`alt`,`meta`,`cmd`,`super`].filter(e=>n.includes(e));return n=n.filter(e=>!r.includes(e)),!(r.length>0&&r.filter(t=>((t===`cmd`||t===`super`)&&(t=`meta`),e[`${t}Key`])).length===r.length&&(Vi(e.type)||Ui(e.key).includes(n[0])))}function Ui(e){if(!e)return[];e=zi(e);let t={ctrl:`control`,slash:`/`,space:` `,spacebar:` `,cmd:`meta`,esc:`escape`,up:`arrow-up`,down:`arrow-down`,left:`arrow-left`,right:`arrow-right`,period:`.`,comma:`,`,equal:`=`,minus:`-`,underscore:`_`};return t[e]=e,Object.keys(t).map(n=>{if(t[n]===e)return n}).filter(e=>e)}W(`model`,(e,{modifiers:t,expression:n},{effect:r,cleanup:i})=>{let a=e;t.includes(`parent`)&&(a=kt(e,t=>t!==e));let o=H(a,n),s;s=typeof n==`string`?H(a,`${n} = __placeholder`):typeof n==`function`&&typeof n()==`string`?H(a,`${n()} = __placeholder`):()=>{};let c=()=>{let e;return o(t=>e=t),Ji(e)?e.get():e},l=e=>{let t;o(e=>t=e),Ji(t)?t.set(e):s(()=>{},{scope:{__placeholder:e}})};typeof n==`string`&&e.type===`radio`&&L(()=>{e.hasAttribute(`name`)||e.setAttribute(`name`,n)});let u=t.includes(`change`)||t.includes(`lazy`),d=t.includes(`blur`),f=t.includes(`enter`),p=u||d||f,m;if(an)m=()=>{};else if(p){let n=[],r=n=>l(Wi(e,t,n,c()));if(u&&n.push(Pi(e,`change`,t,r)),d&&(n.push(Pi(e,`blur`,t,r)),e.form)){let t=e.form,n=()=>r({target:e});t._x_pendingModelUpdates||=[],t._x_pendingModelUpdates.push(n),i(()=>{t._x_pendingModelUpdates&&t._x_pendingModelUpdates.splice(t._x_pendingModelUpdates.indexOf(n),1)})}f&&n.push(Pi(e,`keydown`,t,e=>{e.key===`Enter`&&r(e)})),m=()=>n.forEach(e=>e())}else m=Pi(e,e.tagName.toLowerCase()===`select`||[`checkbox`,`radio`].includes(e.type)?`change`:`input`,t,n=>{l(Wi(e,t,n,c()))});if(t.includes(`fill`)&&([void 0,null,``].includes(c())||Nn(e)&&Array.isArray(c())||e.tagName.toLowerCase()===`select`&&e.multiple)&&l(Wi(e,t,{target:e},c())),e._x_removeModelListeners||={},e._x_removeModelListeners.default=m,i(()=>e._x_removeModelListeners.default()),e.form){let n=Pi(e.form,`reset`,[],n=>{zt(()=>e._x_model&&e._x_model.set(Wi(e,t,{target:e},c())))});i(()=>n())}e._x_model={get(){return c()},set(e){l(e)},setWithModifiers:Fi(t,l)},e._x_forceModelUpdate=t=>{t===void 0&&typeof n==`string`&&n.match(/\./)&&(t=``),L(()=>{Nn(e)?Array.isArray(t)?e.checked=t.some(t=>t==e.value):e.checked=!!t:Pn(e)?typeof t==`boolean`?e.checked=En(e.value)===t:e.checked=e.value==t:hn(e,`value`,t)})},r(()=>{let n=c();t.includes(`unintrusive`)&&document.activeElement.isSameNode(e)||e._x_forceModelUpdate(n)})});function Wi(e,t,n,r){return L(()=>{if(n instanceof CustomEvent&&n.detail!==void 0)return n.detail!==null&&n.detail!==void 0?n.detail:n.target.value;if(Nn(e))if(Array.isArray(r)){let e=null;return e=t.includes(`number`)?Gi(n.target.value):t.includes(`boolean`)?En(n.target.value):n.target.value,n.target.checked?r.includes(e)?r:r.concat([e]):r.filter(t=>!Ki(t,e))}else return n.target.checked;else if(e.tagName.toLowerCase()===`select`&&e.multiple)return t.includes(`number`)?Array.from(n.target.selectedOptions).map(e=>Gi(e.value||e.text)):t.includes(`boolean`)?Array.from(n.target.selectedOptions).map(e=>En(e.value||e.text)):Array.from(n.target.selectedOptions).map(e=>e.value||e.text);else{let i;return i=Pn(e)?n.target.checked?n.target.value:r:n.target.value,t.includes(`number`)?Gi(i):t.includes(`boolean`)?En(i):t.includes(`trim`)?i.trim():i}})}function Gi(e){let t=e?parseFloat(e):null;return qi(t)?t:e}function Ki(e,t){return e==t}function qi(e){return!Array.isArray(e)&&!isNaN(e)}function Ji(e){return typeof e==`object`&&!!e&&typeof e.get==`function`&&typeof e.set==`function`}W(`cloak`,e=>queueMicrotask(()=>L(()=>e.removeAttribute(Je(`cloak`))))),Dt(()=>`[${Je(`init`)}]`),W(`init`,on((e,{expression:t},{evaluate:n})=>typeof t==`string`?!!t.trim()&&n(t,{},!1):n(t,{},!1))),W(`text`,(e,{expression:t},{effect:n,evaluateLater:r})=>{let i=r(t);n(()=>{i(t=>{L(()=>{e.textContent=t})})})}),W(`html`,(e,{expression:t},{effect:n,evaluateLater:r})=>{let i=r(t);n(()=>{i(t=>{L(()=>{e.innerHTML=t??``,e._x_ignoreSelf=!0,Pt(e),delete e._x_ignoreSelf})})})}),ut(ot(`:`,st(Je(`bind:`))));var Yi=(e,{value:t,modifiers:n,expression:r,original:i},{effect:a,cleanup:o})=>{if(!t){let t={};Kn(t),H(e,r)(t=>{qn(e,t,i)},{scope:t});return}if(t===`key`)return Xi(e,r);if(e._x_inlineBindings&&e._x_inlineBindings[t]&&e._x_inlineBindings[t].extract)return;let s=H(e,r);a(()=>s(i=>{i===void 0&&typeof r==`string`&&r.match(/\./)&&(i=``),L(()=>hn(e,t,i,n))})),o(()=>
5{e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedStyles&&e._x_undoAddedStyles()})};Yi.inline=(e,{value:t,modifiers:n,expression:r})=>{t&&(e._x_inlineBindings||={},e._x_inlineBindings[t]={expression:r,extract:!1})},W(`bind`,Yi);function Xi(e,t){e._x_keyExpression=t}Et(()=>`[${Je(`data`)}]`),W(`data`,(e,{expression:t},{cleanup:n})=>{if(Zi(e))return;t=t===``?`{}`:t;let r={};Ee(r,e);let i={};Xn(i,r);let a=Fe(e,t,{scope:i});(a===void 0||a===!0)&&(a={}),Ee(a,e);let o=C(a);xe(o);let s=z(e,o);o.init&&Fe(e,o.init),n(()=>{o.destroy&&Fe(e,o.destroy),s()})}),ln((e,t)=>{e._x_dataStack&&(t._x_dataStack=e._x_dataStack,t.setAttribute(`data-has-alpine-state`,!0))});function Zi(e){return an?dn?!0:e.hasAttribute(`data-has-alpine-state`):!1}W(`show`,(e,{modifiers:t,expression:n},{effect:r})=>{let i=H(e,n);e._x_doHide||=()=>{L(()=>{e.style.setProperty(`display`,`none`,t.includes(`important`)?`important`:void 0)})},e._x_doShow||=()=>{L(()=>{e.style.length===1&&e.style.display===`none`?e.removeAttribute(`style`):e.style.removeProperty(`display`)})};let a=()=>{e._x_doHide(),e._x_isShown=!1},o=()=>{e._x_doShow(),e._x_isShown=!0},s=()=>setTimeout(o),c=Xt(e=>e?o():a(),t=>{typeof e._x_toggleAndCascadeWithTransitions==`function`?e._x_toggleAndCascadeWithTransitions(e,t,o,a):t?s():a()}),l,u=!0;r(()=>i(e=>{!u&&e===l||(t.includes(`immediate`)&&(e?s():a()),c(e),l=e,u=!1)}))}),W(`for`,(e,{expression:t},{effect:n,cleanup:r})=>{let i=ea(t),a=H(e,i.items),o=H(e,e._x_keyExpression||`index`);e._x_lookup=new Map,n(()=>$i(e,i,a,o)),r(()=>{e._x_lookup.forEach(e=>L(()=>{Ft(e),e.remove()})),delete e._x_lookup})});function Qi(e){return t=>{Object.entries(t).forEach(([t,n])=>{e[t]=n})}}function $i(e,t,n,r){n(n=>{na(n)&&(n=Array.from({length:n},(e,t)=>t+1)),n??=[],n instanceof Set&&(n=Array.from(n)),n instanceof Map&&(n=Array.from(n));let i=e._x_lookup,a=new Map;e._x_lookup=a;let o=ra(n),s=Object.entries(n).map(([s,c])=>{o||(s=parseInt(s));let l=ta(t,c,s,n),u;return r(t=>{typeof t==`object`&&yt(`x-for key cannot be an object, it must be a string or an integer`,e),i.has(t)&&(a.set(t,i.get(t)),i.delete(t)),u=t},{scope:{index:s,...l}}),[u,l]});L(()=>{i.forEach(e=>{Ft(e),e.remove()});let t=new Set,n=e;s.forEach(([r,i])=>{if(a.has(r)){let e=a.get(r);e._x_refreshXForScope(i),n.nextElementSibling!==e&&(n.nextElementSibling&&e.replaceWith(n.nextElementSibling),n.after(e)),n=e,e._x_currentIfEl&&(e.nextElementSibling!==e._x_currentIfEl&&n.after(e._x_currentIfEl),n=e._x_currentIfEl);return}e.content.children.length>1&&yt(`x-for templates require a single root element, additional elements will be ignored.`,e);let o=document.importNode(e.content,!0).firstElementChild,s=C(i);z(o,s,e),o._x_refreshXForScope=Qi(s),a.set(r,o),t.add(o),n.after(o),n=o}),on(()=>t.forEach(e=>Pt(e)))()})})}function ea(e){let t=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,n=/^\s*\(|\)\s*$/g,r=e.match(/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/);if(!r)return;let i={};i.items=r[2].trim();let a=r[1].replace(n,``).trim(),o=a.match(t);return o?(i.item=a.replace(t,``).trim(),i.index=o[1].trim(),o[2]&&(i.collection=o[2].trim())):i.item=a,i}function ta(e,t,n,r){let i={};return/^\[.*\]$/.test(e.item)&&Array.isArray(t)?e.item.replace(`[`,``).replace(`]`,``).split(`,`).map(e=>e.trim()).forEach((e,n)=>{i[e]=t[n]}):/^\{.*\}$/.test(e.item)&&!Array.isArray(t)&&typeof t==`object`?e.item.replace(`{`,``).replace(`}`,``).split(`,`).map(e=>e.trim()).forEach(e=>{i[e]=t[e]}):i[e.item]=t,e.index&&(i[e.index]=n),e.collection&&(i[e.collection]=r),i}function na(e){return typeof e!=`object`&&!isNaN(e)}function ra(e){return typeof e==`object`&&!Array.isArray(e)}function ia(){}ia.inline=(e,{expression:t},{cleanup:n})=>{let r=Ot(e);r&&(r._x_refs||={},r._x_refs[t]=e,n(()=>delete r._x_refs[t]))},W(`ref`,ia),W(`if`,(e,{expression:t},{effect:n,cleanup:r})=>{e.tagName.toLowerCase()!==`template`&&yt(`x-if can only be used on a <template> tag`,e);let i=H(e,t),a=()=>{if(e._x_currentIfEl)return e._x_currentIfEl;let t=e.content.cloneNode(!0).firstElementChild;return z(t,{},e),L(()=>{e.after(t),on(()=>Pt(t))()}),e._x_currentIfEl=t,e._x_undoIf=()=>{L(()=>{Ft(t),t.remove()}),delete e._x_currentIfEl},t},o=()=>{e._x_undoIf&&(e._x_undoIf(),delete e._x_undoIf)};n(()=>i(e=>{e?a():o()})),r(()=>e._x_undoIf&&e._x_undoIf())}),W(`id`,(e,{expression:t},{evaluate:n})=>{n(t).forEach(t=>Oi(e,t))}),ln((e,t)=>
5{e._x_ids&&(t._x_ids=e._x_ids)}),ut(ot(`@`,st(Je(`on:`)))),W(`on`,on((e,{value:t,modifiers:n,expression:r},{cleanup:i})=>{let a=r?H(e,r):()=>{};e.tagName.toLowerCase()===`template`&&(e._x_forwardEvents||=[],e._x_forwardEvents.includes(t)||e._x_forwardEvents.push(t));let o=Pi(e,t,n,e=>{a(()=>{},{scope:{$event:e},params:[e]})});i(()=>o())})),aa(`Collapse`,`collapse`,`collapse`),aa(`Intersect`,`intersect`,`intersect`),aa(`Focus`,`trap`,`focus`),aa(`Mask`,`mask`,`mask`);function aa(e,t,n){W(t,r=>yt(`You can't use [x-${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${n}`,r))}Zn.setEvaluator(U),Zn.setRawEvaluator(Ke),Zn.setReactivityEngine({reactive:bi,effect:yr,release:br,raw:G});var K=Zn,oa=[`input:not([inert]):not([inert] *)`,`select:not([inert]):not([inert] *)`,`textarea:not([inert]):not([inert] *)`,`a[href]:not([inert]):not([inert] *)`,`button:not([inert]):not([inert] *)`,`[tabindex]:not(slot):not([inert]):not([inert] *)`,`audio[controls]:not([inert]):not([inert] *)`,`video[controls]:not([inert]):not([inert] *)`,`[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)`,`details>summary:first-of-type:not([inert]):not([inert] *)`,`details:not([inert]):not([inert] *)`],sa=oa.join(`,`),ca=typeof Element>`u`,la=ca?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ua=!ca&&Element.prototype.getRootNode?function(e){return e?.getRootNode?.call(e)}:function(e){return e?.ownerDocument},da=function(e,t){t===void 0&&(t=!0);var n=e?.getAttribute?.call(e,`inert`);return n===``||n===`true`||t&&e&&(typeof e.closest==`function`?e.closest(`[inert]`):da(e.parentNode))},fa=function(e){var t=e?.getAttribute?.call(e,`contenteditable`);return t===``||t===`true`},pa=function(e,t,n){if(da(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(sa));return t&&la.call(e,sa)&&r.unshift(e),r=r.filter(n),r},ma=function(e,t,n){for(var r=[],i=Array.from(e);i.length;){var a=i.shift();if(!da(a,!1))if(a.tagName===`SLOT`){var o=a.assignedElements(),s=ma(o.length?o:a.children,!0,n);
5n.flatten?r.push.apply(r,s):r.push({scopeParent:a,candidates:s})}else{la.call(a,sa)&&n.filter(a)&&(t||!e.includes(a))&&r.push(a);var c=a.shadowRoot||typeof n.getShadowRoot==`function`&&n.getShadowRoot(a),l=!da(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(c&&l){var u=ma(c===!0?a.children:c.children,!0,n);n.flatten?r.push.apply(r,u):r.push({scopeParent:a,candidates:u})}else i.unshift.apply(i,a.children)}}return r},ha=function(e){return!isNaN(parseInt(e.getAttribute(`tabindex`),10))},ga=function(e){if(!e)throw Error(`No node provided`);return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||fa(e))&&!ha(e)?0:e.tabIndex},_a=function(e,t){var n=ga(e);return n<0&&t&&!ha(e)?0:n},va=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},ya=function(e){return e.tagName===`INPUT`},ba=function(e){return ya(e)&&e.type===`hidden`},xa=function(e){return e.tagName===`DETAILS`&&Array.prototype.slice.apply(e.children).some(function(e){return e.tagName===`SUMMARY`})},Sa=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},Ca=function(e){if(!e.name)return!0;var t=e.form||ua(e),n=function(e){return t.querySelectorAll(`input[type="radio"][name="`+e+`"]`)},r;if(typeof window<`u`&&window.CSS!==void 0&&typeof window.CSS.escape==`function`)r=n(window.CSS.escape(e.name));else try{r=n(e.name)}catch(e){return console.error(`Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s`,e.message),!1}var i=Sa(r,e.form);return!i||i===e},wa=function(e){return ya(e)&&e.type===`radio`},Ta=function(e){return wa(e)&&!Ca(e)},Ea=function(e){var t=e&&ua(e),n=t?.host,r=!1;if(t&&t!==e){var i,a,o;for(r=!!((i=n)!=null&&(a=i.ownerDocument)!=null&&a.contains(n)||e!=null&&(o=e.ownerDocument)!=null&&o.contains(e));!r&&n;){var s,c;t=ua(n),n=t?.host,r=!!((s=n)!=null&&(c=s.ownerDocument)!=null&&c.contains(n))}}return r},Da=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return n===0&&r===0},Oa=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if(n===`full-native`&&`checkVisibility`in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if(getComputedStyle(e).visibility===`hidden`)return!0;var i=la.call(e,`details>summary:first-of-type`)?e.parentElement:e;if(la.call(i,`details:not([open]) *`))return!0;if(!n||n===`full`||n===`full-native`||n===`legacy-full`){if(typeof r==`function`){for(var a=e;e;){var o=e.parentElement,s=ua(e);if(o&&!o.shadowRoot&&r(o)===!0)return Da(e);e=e.assignedSlot?e.assignedSlot:!o&&s!==e.ownerDocument?s.host:o}e=a}if(Ea(e))return!e.getClientRects().length;if(n!==`legacy-full`)return!0}else if(n===`non-zero-area`)return Da(e);return!1},ka=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName===`FIELDSET`&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if(r.tagName===`LEGEND`)return la.call(t,`fieldset[disabled] *`)?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},Aa=function(e,t){return!(t.disabled||ba(t)||Oa(t,e)||xa(t)||ka(t))},ja=function(e,t){return!(Ta(t)||ga(t)<0||!Aa(e,t))},Ma=function(e){var t=parseInt(e.getAttribute(`tabindex`),10);return!!(isNaN(t)||t>=0)},Na=function(e){var t=[],n=[];return e.forEach(function(e,r){var i=!!e.scopeParent,a=i?e.scopeParent:e,o=_a(a,i),s=i?Na(e.candidates):a;o===0?i?t.push.apply(t,s):t.push(a):n.push({documentOrder:r,tabIndex:o,item:e,isScope:i,content:s})}),n.sort(va).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},Pa=function(e,t){return t||={},Na(t.getShadowRoot?ma([e],t.includeContainer,{filter:ja.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Ma}):pa(e,t.includeContainer,ja.bind(null,t)))},Fa=function(e,t){return t||={},t.getShadowRoot?ma([e],t.includeContainer,{filter:Aa.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):pa(e,t.includeContainer,Aa.bind(null,t))},Ia=function(e,t){if(t||={},!e)throw Error(`No node provided`);return la.call(e,sa)===!1?!1:ja(t,e)},La=oa.concat(`iframe:not([inert]):not([inert] *)`).join(`,`),Ra=function(e,t){if(t||={},!e)throw Error(`No node provided`);return la.call(e,La)===!1?!1:Aa(t,e)};function za(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ba(e){if(Array.isArray(e))return za(e)}function Va(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){n(e);return}s.done?t(c):Promise.resolve(c).then(r,i)}function Ha(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){Va(a,r,i,o,s,`next`,e)}function s(e){Va(a,r,i,o,s,`throw`,e)}o(void 0)})}}function Ua(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];
vendor: 6,151 bytes, lines 5-7
5if(!n){if(Array.isArray(e)||(n=$a(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
6In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function Wa(e,t,n){return(t=Qa(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ga(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Ka(){throw TypeError(`Invalid attempt to spread non-iterable instance.
7In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ja(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?qa(Object(n),!0).forEach(function(t){Wa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ya(){var e,t,n=typeof Symbol==`function`?Symbol:{},r=n.iterator||`@@iterator`,i=n.toStringTag||`@@toStringTag`;function a(n,r,i,a){var c=r&&r.prototype instanceof s?r:s,l=Object.create(c.prototype);return q(l,`_invoke`,function(n,r,i){var a,s,c,l=0,u=i||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,s=0,c=e,f.n=n,o}};function p(n,r){for(s=n,c=r,t=0;!d&&l&&!i&&t<u.length;t++){var i,a=u[t],p=f.p,m=a[2];n>3?(i=m===r)&&(c=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=p&&((i=n<2&&p<a[1])?(s=0,f.v=r,f.n=a[1]):p<m&&(i=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,f.n=m,s=0))}if(i||n>1)return o;throw d=!0,r}return function(i,u,m){if(l>1)throw TypeError(`Generator is already running`);for(d&&u===1&&p(u,m),s=u,c=m;(t=s<2?e:c)||!d;){a||(s?s<3?(s>1&&(f.n=-1),p(s,c)):f.n=c:f.v=c);try{if(l=2,a){if(s||(i=`next`),t=a[i]){if(!(t=t.call(a,c)))throw TypeError(`iterator result is not an object`);if(!t.done)return t;c=t.value,s<2&&(s=0)}else s===1&&(t=a.return)&&t.call(a),s<2&&(c=TypeError(`The iterator does not provide a '`+i+`' method`),s=1);a=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==o)break}catch(t){a=e,s=1,c=t}finally{l=1}}return{value:t,done:d}}}(n,i,a),!0),l}var o={};function s(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(q(t={},r,function(){return this}),t),d=l.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,q(e,i,`GeneratorFunction`)),e.prototype=Object.create(d),e}return c.prototype=l,q(d,`constructor`,l),q(l,`constructor`,c),c.displayName=`GeneratorFunction`,q(l,i,`GeneratorFunction`),q(d),q(d,i,`Generator`),q(d,r,function(){return this}),q(d,`toString`,function(){return`[object Generator]`}),(Ya=function(){return{w:a,m:f}})()}function q(e,t,n,r){var i=Object.defineProperty;try{i({},``,{})}catch{i=0}q=function(e,t,n,r){function a(t,n){q(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a(`next`,0),a(`throw`,1),a(`return`,2))},q(e,t,n,r)}function Xa(e){return Ba(e)||Ga(e)||$a(e)||Ka()}function Za(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Qa(e){var t=Za(e,`string`);return typeof t==`symbol`?t:t+``}function $a(e,t){if(e){if(typeof e==`string`)return za(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?za(e,t):void 0}}var eo={getActiveTrap:function(e){return e?.length>0?e[e.length-1]:null},activateTrap:function(e,t){t!==eo.getActiveTrap(e)&&eo.pauseTrap(e);var n=e.indexOf(t);n===-1||e.splice(n,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1),eo.unpauseTrap(e)},pauseTrap:function(e){eo.getActiveTrap(e)?._setPausedState(!0)},unpauseTrap:function(e){var t=eo.getActiveTrap(e);t&&!t._isManuallyPaused()&&t._setPausedState(!1)}},to=function(e){return e.tagName&&e.tagName.toLowerCase()===`input`&&typeof e.select==`function`},no=function(e){return e?.key===`Escape`||e?.key===`Esc`||e?.keyCode===27},ro=function(e){return e?.key===`Tab`||e?.keyCode===9},io=function(e){return ro(e)&&!e.shiftKey},ao=function(e){return ro(e)&&e.shiftKey},oo=function(e){return setTimeout(e,0)},so=function(e){var t=[...arguments].slice(1);return typeof e==`function`?e.apply(void 0,t):e},co=function(e){return e.target.shadowRoot&&typeof e.composedPath==`function`?e.composedPath()[0]:e.target},lo=[],uo=function(e,t){var n=t?.document||document,r=t?.trapStack||lo,i=Ja({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isolateSubtrees:!1,isKeyForward:io,isKeyBackward:ao},t),a={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadySilent:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},o,s=function(e,t,n){return e&&e[t]!==void 0?e[t]:i[n||t]},c=function(e,t){var n=typeof t?.composedPath==`function`?t.composedPath():void 0;return a.containerGroups.findIndex(function(t){var r=t.container,i=t.tabbableNodes;return r.contains(e)||n?.includes(r)||i.find(function(t){return t===e})})},l=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.hasFallback,a=r===void 0?!1:r,o=t.params,s=o===void 0?[]:o,c=i[e];if(typeof c==`function`&&(c=c.apply(void 0,Xa(s))),c===!0&&(c=void 0),!c){
7if(c===void 0||c===!1)return c;throw Error(`\`${e}\` was specified but was not a node, or did not return a node`)}var l=c;if(typeof c==`string`){try{l=n.querySelector(c)}catch(t){throw Error(`\`${e}\` appears to be an invalid selector; error="${t.message}"`)}if(!l&&!a)throw Error(`\`${e}\` as selector refers to no known node`)}return l},u=function(){var e=l(`initialFocus`,{hasFallback:!0});if(e===!1)return!1;if(e===void 0||e&&!Ra(e,i.tabbableOptions))if(c(n.activeElement)>=0)e=n.activeElement;else{var t=a.tabbableGroups[0];e=t&&t.firstTabbableNode||l(`fallbackFocus`)}else e===null&&(e=l(`fallbackFocus`));if(!e)throw Error(`Your focus-trap needs to have at least one focusable element`);return e},d=function(){if(a.containerGroups=a.containers.map(function(e){var t=Pa(e,i.tabbableOptions),n=Fa(e,i.tabbableOptions),r=t.length>0?t[0]:void 0,a=t.length>0?t[t.length-1]:void 0,o=n.find(function(e){return Ia(e)}),s=n.slice().reverse().find(function(e){return Ia(e)});return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:!!t.find(function(e){return ga(e)>0}),firstTabbableNode:r,lastTabbableNode:a,firstDomTabbableNode:o,lastDomTabbableNode:s,nextTabbableNode:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=t.indexOf(e);return i<0?r?n.slice(n.indexOf(e)+1).find(function(e){return Ia(e)}):n.slice(0,n.indexOf(e)).reverse().find(function(e){return Ia(e)}):t[i+(r?1:-1)]}}}),a.tabbableGroups=a.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),a.tabbableGroups.length<=0&&!l(`fallbackFocus`))throw Error(`Your focus-trap must have at least one container with at least one tabbable node in it at all times`);if(a.containerGroups.find(function(e){return e.posTabIndexesFound})&&a.containerGroups.length>1)throw Error(`At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.`)},f=function(e){var t=e.activeElement;if(t)return t.shadowRoot&&t.shadowRoot.activeElement!==null?f(t.shadowRoot):t},p=function(e){if(e!==!1&&e!==f(document)){if(!e||!e.focus){p(u());return}
vendor: 4,161 bytes, line 7
7e.focus({preventScroll:!!i.preventScroll}),a.mostRecentlyFocusedNode=e,to(e)&&e.select()}},m=function(e){var t=l(`setReturnFocus`,{params:[e]});return t||(t===!1?!1:e)},h=function(e){var t=e.target,n=e.event,r=e.isBackward,o=r===void 0?!1:r;t||=co(n),d();var s=null;if(a.tabbableGroups.length>0){var u=c(t,n),f=u>=0?a.containerGroups[u]:void 0;if(u<0)s=o?a.tabbableGroups[a.tabbableGroups.length-1].lastTabbableNode:a.tabbableGroups[0].firstTabbableNode;else if(o){var p=a.tabbableGroups.findIndex(function(e){var n=e.firstTabbableNode;return t===n});if(p<0&&(f.container===t||Ra(t,i.tabbableOptions)&&!Ia(t,i.tabbableOptions)&&!f.nextTabbableNode(t,!1))&&(p=u),p>=0){var m=p===0?a.tabbableGroups.length-1:p-1,h=a.tabbableGroups[m];s=ga(t)>=0?h.lastTabbableNode:h.lastDomTabbableNode}else ro(n)||(s=f.nextTabbableNode(t,!1))}else{var g=a.tabbableGroups.findIndex(function(e){var n=e.lastTabbableNode;return t===n});if(g<0&&(f.container===t||Ra(t,i.tabbableOptions)&&!Ia(t,i.tabbableOptions)&&!f.nextTabbableNode(t))&&(g=u),g>=0){var _=g===a.tabbableGroups.length-1?0:g+1,v=a.tabbableGroups[_];s=ga(t)>=0?v.firstTabbableNode:v.firstDomTabbableNode}else ro(n)||(s=f.nextTabbableNode(t))}}else s=l(`fallbackFocus`);return s},g=function(e){if(!(c(co(e),e)>=0)){if(so(i.clickOutsideDeactivates,e)){o.deactivate({returnFocus:i.returnFocusOnDeactivate});return}so(i.allowOutsideClick,e)||e.preventDefault()}},_=function(e){var t=co(e),n=c(t,e)>=0;if(n||t instanceof Document)n&&(a.mostRecentlyFocusedNode=t);else{e.stopImmediatePropagation();var r,o=!0;if(a.mostRecentlyFocusedNode)if(ga(a.mostRecentlyFocusedNode)>0){var s=c(a.mostRecentlyFocusedNode),l=a.containerGroups[s].tabbableNodes;if(l.length>0){var d=l.findIndex(function(e){return e===a.mostRecentlyFocusedNode});d>=0&&(i.isKeyForward(a.recentNavEvent)?d+1<l.length&&(r=l[d+1],o=!1):d-1>=0&&(r=l[d-1],o=!1))}}else a.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return ga(e)>0})})||(o=!1);else o=!1;o&&(r=h({target:a.mostRecentlyFocusedNode,isBackward:i.isKeyBackward(a.recentNavEvent)})),p(r||a.mostRecentlyFocusedNode||u())}a.recentNavEvent=void 0},v=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;a.recentNavEvent=e;var n=h({event:e,isBackward:t});n&&(ro(e)&&e.preventDefault(),p(n))},y=function(e){(i.isKeyForward(e)||i.isKeyBackward(e))&&v(e,i.isKeyBackward(e))},b=function(e){no(e)&&so(i.escapeDeactivates,e)!==!1&&(e.preventDefault(),o.deactivate())},x=function(e){c(co(e),e)>=0||so(i.clickOutsideDeactivates,e)||so(i.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},S=function(){if(!a.active)return Promise.resolve();eo.activateTrap(r,o);var e;return i.delayInitialFocus?e=new Promise(function(e){a.delayInitialFocusTimer=oo(function(){p(u()),e()})}):(e=Promise.resolve(),p(u())),n.addEventListener(`focusin`,_,!0),n.addEventListener(`mousedown`,g,{capture:!0,passive:!1}),n.addEventListener(`touchstart`,g,{capture:!0,passive:!1}),n.addEventListener(`click`,x,{capture:!0,passive:!1}),n.addEventListener(`keydown`,y,{capture:!0,passive:!1}),n.addEventListener(`keydown`,b),e},C=function(e){a.active&&!a.paused&&o._setSubtreeIsolation(!1),a.adjacentElements.clear(),a.alreadySilent.clear();var t=new Set,n=new Set,r=Ua(e),i;try{for(r.s();!(i=r.n()).done;){var s=i.value;t.add(s);for(var c=typeof ShadowRoot<`u`&&s.getRootNode()instanceof ShadowRoot,l=s;l;){t.add(l);var u=l.parentElement,d=[];u?d=u.children:!u&&c&&(d=l.getRootNode().children,u=l.getRootNode().host,c=typeof ShadowRoot<`u`&&u.getRootNode()instanceof ShadowRoot);var f=Ua(d),p;try{for(f.s();!(p=f.n()).done;){var m=p.value;n.add(m)}}catch(e){f.e(e)}finally{f.f()}l=u}}}catch(e){r.e(e)}finally{r.f()}t.forEach(function(e){n.delete(e)}),a.adjacentElements=n},w=function(){if(a.active)return n.removeEventListener(`focusin`,_,!0),n.removeEventListener(`mousedown`,g,!0),n.removeEventListener(`touchstart`,g,!0),n.removeEventListener(`click`,x,!0),n.removeEventListener(`keydown`,y,!0),n.removeEventListener(`keydown`,b),o},T=typeof window<`u`&&`MutationObserver`in window?new MutationObserver(function(e){e.some(function(e){return Array.from(e.removedNodes
7).some(function(e){return e===a.mostRecentlyFocusedNode})})&&p(u())}):void 0,E=function(){T&&(T.disconnect(),a.active&&!a.paused&&a.containers.map(function(e){T.observe(e,{subtree:!0,childList:!0})}))};return o={get active(){return a.active},get paused(){return a.paused},activate:function(e){if(a.active)return this;var t=s(e,`onActivate`),i=s(e,`onPostActivate`),c=s(e,`checkCanFocusTrap`),l=eo.getActiveTrap(r),u=!1;if(l&&!l.paused){var p;(p=l._setSubtreeIsolation)==null||p.call(l,!1),u=!0}try{c||d(),a.active=!0,a.paused=!1,a.nodeFocusedBeforeActivation=f(n),t?.();var m=function(){var e=Ha(Ya().m(function e(){return Ya().w(function(e){for(;;)switch(e.n){case 0:return c&&d(),e.n=1,S();case 1:o._setSubtreeIsolation(!0),E(),i?.();case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();if(c)return c(a.containers.concat()).then(m,m),this;m()}catch(e){if(l===eo.getActiveTrap(r)&&u){var h;(h=l._setSubtreeIsolation)==null||h.call(l,!0)}throw e}return this},deactivate:function(e){if(!a.active)return this;var t=Ja({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},e);clearTimeout(a.delayInitialFocusTimer),a.delayInitialFocusTimer=void 0,a.paused||o._setSubtreeIsolation(!1),a.alreadySilent.clear(),w(),a.active=!1,a.paused=!1,E(),eo.deactivateTrap(r,o);var n=s(t,`onDeactivate`),c=s(t,`onPostDeactivate`),l=s(t,`checkCanReturnFocus`),u=s(t,`returnFocus`,`returnFocusOnDeactivate`);n?.();var d=function(){oo(function(){u&&p(m(a.nodeFocusedBeforeActivation)),c?.()})};return u&&l?(l(m(a.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(e){return a.active?(a.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return!a.active||(a.manuallyPaused=!1,r[r.length-1]!==this)?this:this._setPausedState(!1,e)},updateContainerElements:function(e){return a.containers=[].concat(e).filter(
vendor: 4,481 bytes, line 7
7Boolean).map(function(e){return typeof e==`string`?n.querySelector(e):e}),i.isolateSubtrees&&C(a.containers),a.active&&(d(),a.paused||o._setSubtreeIsolation(!0)),E(),this}},Object.defineProperties(o,{_isManuallyPaused:{value:function(){return a.manuallyPaused}},_setPausedState:{value:function(e,t){if(a.paused===e)return this;if(a.paused=e,e){var n=s(t,`onPause`),r=s(t,`onPostPause`);n?.(),w(),o._setSubtreeIsolation(!1),E(),r?.()}else{var i=s(t,`onUnpause`),c=s(t,`onPostUnpause`);i?.(),(function(){var e=Ha(Ya().m(function e(){return Ya().w(function(e){for(;;)switch(e.n){case 0:return d(),e.n=1,S();case 1:o._setSubtreeIsolation(!0),E(),c?.();case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}})()()}return this}},_setSubtreeIsolation:{value:function(e){i.isolateSubtrees&&a.adjacentElements.forEach(function(t){if(e)switch(i.isolateSubtrees){case`aria-hidden`:(t.ariaHidden===`true`||t.getAttribute(`aria-hidden`)?.toLowerCase()===`true`)&&a.alreadySilent.add(t),t.setAttribute(`aria-hidden`,`true`);break;default:(t.inert||t.hasAttribute(`inert`))&&a.alreadySilent.add(t),t.setAttribute(`inert`,!0);break}else if(!a.alreadySilent.has(t))switch(i.isolateSubtrees){case`aria-hidden`:t.removeAttribute(`aria-hidden`);break;default:t.removeAttribute(`inert`);break}})}}}),o.updateContainerElements(e),o};function fo(e){let t,n;window.addEventListener(`focusin`,()=>{t=n,n=document.activeElement}),e.magic(`focus`,e=>{let r=e;return{__noscroll:!1,__wrapAround:!1,within(e){return r=e,this},withoutScrolling(){return this.__noscroll=!0,this},noscroll(){return this.__noscroll=!0,this},withWrapAround(){return this.__wrapAround=!0,this},wrap(){return this.withWrapAround()},focusable(e){return Ra(e)},previouslyFocused(){return t},lastFocused(){return t},focused(){return n},focusables(){return Array.isArray(r)?r:Fa(r,{displayCheck:`none`})},all(){return this.focusables()},isFirst(e){let t=this.all();return t[0]&&t[0].isSameNode(e)},isLast(e){let t=this.all();return t.length&&t.slice(-1)[0].isSameNode(e)},getFirst(){return this.all()[0]},getLast(){return this.all().slice(-1)[0]},getNext(){let e=this.all(),t=document.activeElement;if(e.indexOf(t)!==-1)return this.__wrapAround&&e.indexOf(t)===e.length-1?e[0]:e[e.indexOf(t)+1]},getPrevious(){let e=this.all(),t=document.activeElement;if(e.indexOf(t)!==-1)return this.__wrapAround&&e.indexOf(t)===0?e.slice(-1)[0]:e[e.indexOf(t)-1]},first(){this.focus(this.getFirst())},last(){this.focus(this.getLast())},next(){this.focus(this.getNext())},previous(){this.focus(this.getPrevious())},prev(){return this.previous()},focus(e){e&&setTimeout(()=>{e.hasAttribute(`tabindex`)||e.setAttribute(`tabindex`,`0`),e.focus({preventScroll:this.__noscroll})})}}}),e.directive(`trap`,e.skipDuringClone((t,{expression:n,modifiers:r},{effect:i,evaluateLater:a,cleanup:o})=>{let s=a(n),c=!1,l={escapeDeactivates:!1,allowOutsideClick:!0,fallbackFocus:()=>t},u=()=>{};if(r.includes(`noautofocus`))l.initialFocus=!1;else{let e=t.querySelector(`[autofocus]`);e&&(l.initialFocus=e)}r.includes(`inert`)&&(l.onPostActivate=()=>{e.nextTick(()=>{u=po(t)})});let d=uo(t,l),f=()=>{},p=()=>{u(),u=()=>{},f(),f=()=>{},d.deactivate({returnFocus:!r.includes(`noreturn`)})};i(()=>s(e=>{c!==e&&(e&&!c&&(r.includes(`noscroll`)&&(f=ho()),setTimeout(()=>{d.activate()},15)),!e&&c&&p(),c=!!e)})),o(p)},(e,{expression:t,modifiers:n},{evaluate:r})=>{n.includes(`inert`)&&r(t)&&po(e)}))}function po(e){let t=[];return mo(e,e=>{let n=e.hasAttribute(`aria-hidden`);e.setAttribute(`aria-hidden`,`true`),t.push(()=>n||e.removeAttribute(`aria-hidden`))}),()=>{for(;t.length;)t.pop()()}}function mo(e,t){e.isSameNode(document.body)||!e.parentNode||Array.from(e.parentNode.children).forEach(n=>{n.isSameNode(e)?mo(e.parentNode,t):t(n)})}function ho(){let e=document.documentElement.style.overflow,t=document.documentElement.style.paddingRight,n=window.innerWidth-document.documentElement.clientWidth,r=window.getComputedStyle(document.documentElement).scrollbarGutter;return document.documentElement.style.overflow=`hidden`,r&&r!==`auto`?()=>{document.documentElement.style.overflow=e}:(document.documentElement.style.paddingRight=`${n}px`,()=>{document.documentElement.style.overflow=e,document.documentElement.style.paddingRight=t})}var go=fo;function _o(e){e.directive(`intersect`,e.skipDuringClone((e,{value:t,expression:n,modifiers:r},{evaluateLater:i,cleanup:a})=>{let o=i(n),s={rootMargin:bo(r),threshold:vo(r)},c=new IntersectionObserver(e=>
7{e.forEach(e=>{e.isIntersecting!==(t===`leave`)&&(o(),r.includes(`once`)&&c.disconnect())})},s);c.observe(e),a(()=>{c.disconnect()})}))}function vo(e){if(e.includes(`full`))return .99;if(e.includes(`half`))return .5;if(!e.includes(`threshold`))return 0;let t=e[e.indexOf(`threshold`)+1];return t===`100`?1:t===`0`?0:Number(`.${t}`)}function yo(e){let t=e.match(/^(-?[0-9]+)(px|%)?$/);return t?t[1]+(t[2]||`px`):void 0}function bo(e){let t=`0px 0px 0px 0px`,n=e.indexOf(`margin`);if(n===-1)return t;let r=[];for(let t=1;t<5;t++)r.push(yo(e[n+t]||``));return r=r.filter(e=>e!==void 0),r.length?r.join(` `).trim():t}var xo=_o,So=()=>{let e=`desktop`;return window.innerWidth<768?e=`mobile`:window.innerWidth<1024?e=`tablet`:window.innerWidth<1200&&(e=`laptop`),e},Co=window.Alpine?.debounce||((e,t)=>{let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>e(...r),t)}});K.store(`breakpoint`,{current:null,update(){this.current=So()},init(){this.update(),window.addEventListener(`resize`,Co(()=>{this.update(),window.dispatchEvent(new CustomEvent(`breakpoint:updated`))},100),{passive:!0})}});function wo(e){e.magic(`breakpoint`,()=>K.store(`breakpoint`).current)}K.plugin(wo),K.plugin(To);function To(e){e.magic(`clipboard`,()=>e=>{if(navigator.clipboard&&window.isSecureContext)navigator.clipboard.writeText(e);else{let t=document.createElement(`input`);t.style.position=`absolute`,t.style.left=`-1000px`,t.value=e,document.body.appendChild(t),t.select(),t.setSelectionRange(0,99999);try{document.execCommand(`copy`),console.log(`Copied to clipboard:`,e)}catch(e){console.error(`Failed to copy to clipboard:`,e)}finally{document.body.removeChild(t)}}})}var Eo=(e,t=[])=>window.Granite===void 0?e:window.Granite.I18n.get(e,t);K.plugin(Do);function Do(e){e.magic(`i18n`,()=>(e,t=[])=>Eo(e,t))}K.plugin(Oo);function Oo(e){e.magic(`isSticky`,()=>e=>{let t=e.getBoundingClientRect(),n=getComputedStyle(e),r=parseFloat(n.top||`0`);return n.position===`sticky`&&t.top===r})}var ko=e=>{if(!e)return{page:!1,parent:!1};e=e.replace(`.html`,``);let t=window.location.origin,n=window.location.pathname.replace(`.html`,``);e.startsWith(t)&&(e=e.replace(t,``));let r=/^\/content\/[^/]+\/[^/]+\/?/,i=r.test(e),a=r.test(n);return i&&!a&&(e=e.replace(r,`/`)),{page:n===e,parent:n.includes(e)&&n!==e}};K.plugin(Ao);function Ao(e){e.magic(`linkIsCurrent`,e=>t=>t?ko(t):e instanceof HTMLAnchorElement?ko(e.href):e instanceof HTMLInputElement?ko(e.value):!1)}K.plugin(jo);function jo(e){e.magic(`persistSet`,()=>(e,t,n=`sessionStorage`)=>(n===`localStorage`?localStorage:sessionStorage).setItem(`_x_${e}`,t)),e.magic(`persistGet`,()=>(e,t=`sessionStorage`)=>(t===`localStorage`?localStorage:sessionStorage).getItem(`_x_${e}`)),e.magic(`persistDelete`,()=>(e,t=`sessionStorage`)=>{(t===`localStorage`?localStorage:sessionStorage).removeItem(`_x_${e}`)})}var Mo=(e,t={})=>{let n=e.trim(),r=n.endsWith(`.json`)?n:`${n}.json`,i=window.location.pathname.replace(/\.html$/,``),a=new URL(`${i}.${r}`,window.location.origin);return Object.entries(t).forEach(([e,t])=>{t==null||t===``||a.searchParams.set(e,String(t))}),`${a.pathname}${a.search}`},No=()=>{sessionStorage.removeItem(`_x_csrfToken`)},Po=async()=>{let e=await fetch(`/libs/granite/csrf/token.json`,{method:`GET`,cache:`no-store`,credentials:`same-origin`,headers:{Accept:`application/json`}});if(!e.ok)throw Error(`Failed to fetch CSRF token: ${e.status} ${e.statusText}`);let t=(await e.json())?.token;if(typeof t!=`string`||!t)throw Error(`Invalid CSRF token response`);return sessionStorage.setItem(`_x_csrfToken`,t),t},Fo=async()=>sessionStorage.getItem(`_x_csrfToken`)||Po(),Io=async({selector:e,params:t={},headers:n={}})=>{let r=Mo(e,t),i=await fetch(r,{method:`GET`,headers:n});if(!i.ok)throw Error(`GET servlet failed: ${i.status} ${i.statusText}`);return i},Lo=async({selector:e,params:t={},body:n,headers:r={}})=>{let i=Mo(e,t),a=await Ro({url:i,token:await Fo(),body:n,headers:r});if(a.status===403&&(No(),a=await Ro({url:i,token:await Po(),body:n,headers:r})),!a.ok)throw Error(`POST servlet failed: ${a.status} ${a.statusText}`);return a},Ro=async({url:e,token:t,body:n,headers:r={}})=>{let i={...r,"CSRF-Token":t},a={method:`POST`,headers:i};return n!==void 0&&(n instanceof FormData?a.body=n:(i[`Content-Type`]=`application/json`,a.body=JSON.stringify(n))),fetch(e,a)};K.plugin(zo);function zo(e){e.magic(`requestGet`,()=>e=>Io(e)),e.magic(`requestPost`,()=>e=>Lo(e))}K.plugin(Bo);function Bo(e){e.magic(`resetInputs`,e=>t=>{let n=e,{value:r,fields:i,fieldsToExclude:a,hardReset:o}=t||{},s=a?.split(`,`)||[],c=r?.split(`,`)||[];if(r&&c.length>0&&!Vo(n.value,c))return;let l=e?.closest(`form`);if(!l)return;let u;if(u=i?i.split(`,`).map(e=>document.getElementById(e)).filter(e=>
7e!==null):Array.from(l.elements),o){u.forEach(e=>{s.includes(e.id??e.name)||e.type===`submit`||e.type===`button`||(e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement)&&(e instanceof HTMLInputElement&&e.type!==`checkbox`&&e.type!==`radio`&&(e.value=``),e instanceof HTMLInputElement&&(e.type===`checkbox`||e.type===`radio`)&&(e.checked=!1),e.dispatchEvent(new Event(`change`,{bubbles:!0})))});return}u.filter(e=>{if(e===n||s.includes(e.id??e.name))return!1;if(e instanceof HTMLSelectElement){let t=e.querySelector(`option[selected]`),n=t?t.value:``;return e.value!==n}else if(e instanceof HTMLInputElement&&e.type===`checkbox`)return e.checked!==e.defaultChecked;else return e.value!==e.defaultValue}).forEach(e=>{if(e instanceof HTMLSelectElement){let t=e.querySelector(`option[selected]`);e.value=t?t.value:``}else e instanceof HTMLInputElement&&e.type===`checkbox`?e.checked=e.defaultChecked:e.value=e.defaultValue;e.dispatchEvent(new Event(`change`))})})}function Vo(e,t){return t.some(t=>t.startsWith(`!!`)?e!==t.slice(2)&&e!==``:t.startsWith(`??`)?e===t.slice(2):e===t)}K.plugin(Ho);function Ho(e){e.magic(`safeJsonParse`,()=>e=>{if(typeof e!=`string`)return null;try{let t=JSON.parse(e.trim());return t&&typeof t==`object`&&!Array.isArray(t)?t:null}catch{return null}})}K.plugin(Uo);function Uo(e){e.magic(`selectAll`,e=>t=>{let n=e?.closest(`form`);n&&n.querySelectorAll(`input[type="checkbox"][name="${t}"]`)?.forEach(e=>{e instanceof HTMLInputElement&&(e.checked=!0,e.dispatchEvent(new Event(`change`,{bubbles:!0})))})})}K.plugin(Wo);function Wo(e){e.magic(`selectOptionTitleToHiddenField`,e=>t=>{let n=document.getElementById(t),r=e;if(!n){console.error(`Target field with id "${t}" not found`);return}if(!r.options||r.options.length===0||r.selectedIndex<0){n.removeAttribute(`value`),n.setAttribute(`disabled`,``);return}let i=r.options[r.selectedIndex];if(!i){n.removeAttribute(`value`),n.setAttribute(`disabled`,``);return}let a=i.dataset?.syncTitle??i.text??i.value,o=r.querySelector(`option[default]`);if(o&&i.value===o.value){n.removeAttribute(`value`),n.setAttribute(`disabled`,``);return}n.value=a,n.removeAttribute(`disabled`)})}K.plugin(Go);function Go(e){e.magic(`servletUrl`,()=>(e,t)=>Mo(e,t))}K.plugin(qo);function Ko(e){return`<span class="uppercase">${e.toLowerCase()}</span>`}function qo(e){e.magic(`transformCapitals`,()=>(e,t=` `)=>e.split(t).map(e=>e.replace(/[A-Z]/g,Ko)).join(t))}function Jo(e){let t=new Map;e.directive(`steps-wizard`,(n,{expression:r},{cleanup:i})=>{let a=r||null,o=e.reactive({currentStep:0,currentValid:!0,totalSteps:0,titles:[],currentTitle:``,steps:[]}),s=new Yo(n,o);a&&t.set(a,s),n.__wizard=s,n.__state=o,i(()=>{s.destroy(),a&&t.delete(a),n.__wizard=null,n.__state=null})}),e.magic(`steps`,e=>{let n=n=>n?t.get(n):e.closest(`[x-steps-wizard]`)?.__wizard,r=e=>({next:()=>e.next(),previous:()=>e.previous(),goToIndex:t=>e.goToIndex(t),goTo:t=>e.goToTitle(t),recheck:()=>e.recheck(),refresh:()=>e.refresh(),get steps(){return e.state.steps},get current(){return e.current},get total(){return e.total},get currentTitle(){return e.currentTitle},get currentValid(){return e.isCurrentValid},get isFirst(){return e.isFirst},get isLast(){return e.isLast},get titles(){return e.titles}}),i=(e,n=3e3)=>new Promise((r,i)=>{let a=t.get(e);if(a)return r(a);let o=performance.now(),s=()=>{let a=t.get(e);if(a)return r(a);if(performance.now()-o>n)return i(`Wizard '${e}' not found after ${n}ms`);requestAnimationFrame(s)};s()}),a=n();return a?{...r(a),use(e){let t=n(e);return t?r(t):(console.error(`No wizard with name '${e}' found.`),this)},waitFor:i}:{use(e){let t=n(e);return t?r(t):(console.error(`No wizard with name '${e}' found.`),this)},waitFor:i}})}var Yo=class{steps=[];state;el;listeners=[];observer=null;observerFrame=null;constructor(e,t){this.el=e,this.state=t,requestAnimationFrame(()=>{requestAnimationFrame(()=>{this.collectSteps(),this.updateVisibility(),this.initObserver(),requestAnimationFrame(()=>{this.recheckValidity(),this.dispatchStepsRefreshed()})})})}initObserver(){let e=e=>e instanceof HTMLElement&&(e.hasAttribute(`x-step`)||!!e.querySelector(`[x-step]`));this.observer=new MutationObserver(t=>{t.some(t=>
7Array.from(t.addedNodes).some(e)||Array.from(t.removedNodes).some(e)||t.type===`attributes`&&t.attributeName===`x-step`)&&(this.observerFrame&&cancelAnimationFrame(this.observerFrame),this.observerFrame=requestAnimationFrame(()=>{queueMicrotask(()=>{Promise.resolve().then(()=>this.refresh())})}))}),this.observer.observe(this.el,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`x-step`]})}get current(){let e=this.state.currentStep,t=this.steps.length;return!Number.isFinite(e)||t===0||e<0?0:e>=t?t-1:e}get total(){return this.state.totalSteps}get currentTitle(){return this.state.currentTitle}get currentValid(){return this.state.currentValid}get isFirst(){return this.current===0}get isLast(){return this.current===this.total-1}get titles(){return this.state.titles}get isCurrentValid(){return this.state.currentValid}next(){let e=this.steps[this.current];this.isValidStep(e.el,!0)&&(this.isLast||(this.state.currentStep++,this.syncAfterStepChange()))}previous(){this.isFirst||(this.state.currentStep--,this.syncAfterStepChange())}goToIndex(e){e>=0&&e<this.total&&(this.state.currentStep=e,this.syncAfterStepChange())}goToTitle(e){let t=this.steps.findIndex(t=>t.title.toLowerCase()===e.toLowerCase());t!==-1&&this.goToIndex(t)}recheck(){this.recheckValidity()}refresh(){let e=this.state.currentTitle;this.destroyListenersOnly(),this.steps=[],this.collectSteps(),requestAnimationFrame(()=>{let t=this.steps.findIndex(t=>t.title===e);t===-1&&(t=Math.min(this.state.currentStep,this.steps.length-1)),this.state.currentStep===0&&t!==0&&(t=0),this.state.currentStep=t,this.setCurrentTitle(),this.updateVisibility(),this.recheckValidity(),this.dispatchStepsRefreshed()})}destroy(){this.destroyListenersOnly(),this.steps=[],this.observer&&=(this.observer.disconnect(),null),this.observerFrame&&=(cancelAnimationFrame(this.observerFrame),null)}collectSteps(){let e=Array.from(this.el.querySelectorAll(`[x-step]`)).filter(e=>e.closest(`[x-steps-wizard]`)===this.el).map(e=>{let t=e.getAttribute(`x-step`)||``;return this.steps.find(t=>t.el===e)||this.addInputListeners(e),{el:e,title:t}});this.steps=e,this.state.totalSteps=this.steps.length,this.state.titles=this.steps.map(e=>e.title),this.state.steps=[...this.steps],this.setCurrentTitle()}isValidStep(e,t){let n=e.querySelectorAll(`input:not([disabled]), select:not([disabled]), textarea:not([disabled])`),r=!0;return n.forEach(e=>{e.validity.valid||(r=!1,t&&e.checkValidity())}),r}updateVisibility(){this.steps.forEach((e,t)=>{e.el.style.display=t===this.current?``:`none`})}recheckValidity(){this._recheckFrame&&cancelAnimationFrame(this._recheckFrame),this._recheckFrame=requestAnimationFrame(()=>{queueMicrotask(()=>{Promise.resolve().then(()=>{let e=this.steps[this.current];this.state.currentValid=e?this.isValidStep(e.el,!1):!0})})})}setCurrentTitle(){this.state.currentTitle=this.steps[this.state.currentStep]?.title||``}syncAfterStepChange(){this.setCurrentTitle(),this.updateVisibility(),this.recheckValidity(),this.dispatchStepChange()}addInputListeners(e){e.querySelectorAll(`input, select, textarea`).forEach(t=>{if(this.listeners.some(e=>e.input===t&&e.type===`input`))return;let n=()=>this.recheckValidity();t.addEventListener(`input`,n),this.listeners.push({step:e,input:t,type:`input`,handler:n})})}destroyListenersOnly(){this.listeners.forEach(({input:e,type:t,handler:n})=>{e.isConnected&&e.removeEventListener(t,n)}),this.listeners=[]}dispatchStepChange(){let e=new CustomEvent(`steps:change`,{detail:{current:this.current,total:this.total,title:this.currentTitle,isFirst:this.isFirst,isLast:this.isLast}});this.el.dispatchEvent(e)}dispatchStepsRefreshed(){let e=new CustomEvent(`steps:refreshed`,{detail:{current:this.current,total:this.total,title:this.currentTitle,isFirst:this.isFirst,isLast:this.isLast}});this.el.dispatchEvent(e)}},Xo=`top-start`,Zo=`hover`,Qo=`false`,$o=`petrol`,es=`white`,ts=15,ns=12,rs=`-13px`,is=0,as=200,os=200;function ss(e){e.directive(`tooltip`,(e,{expression:t},{cleanup:n})=>{let r=new cs(e,t);n(()=>{r.removeListeners()})})}var cs=class e{el;tooltip;arrowElement;hideTimeout=null;isHoveringButton=!1;isHoveringTooltip=!1;anchorEl;eventType;placement;text;bgColor;textColor;offset;duration;animateFrame=!1;modalEl=null;static activeButton=null;static activeTooltip=null;buttonEvents=[];config;autoUpdateCleanup;showDelayTimeout=null;constructor(e,t){if(this.el=e,!t)throw Error(`Invalid tooltip configuration.`);try{this.config=JSON.parse(t.replace(/'/g,`"`))}catch(e){console.error(`Invalid tooltip configuration:`,e);return}let{tooltipId:n,anchorId:r,placement:i=Xo,eventType:a=Zo,animateFrame:o=Qo,bgColor:s=$o,textColor:c=es,text:l,offset:u=ts,duration:d=is}=this.config;if(!n){console.error(`tooltipId is required in the configuration.`);return}this.placement=i,this.eventType=a,this.text=l??``,this.bgColor=s,this.textColor=c,this.anchorEl=r&&document.getElementById(r)||e,this.modalEl=this.anchorEl.closest(`.modal`)||null,this.modalEl?this.tooltip=this.modalEl.querySelector(`#${n}`)||this.createTooltipElement(n):this.tooltip=document.querySelector(`#${n}`)||this.createTooltipElement(n),this.arrowElement=this.tooltip?.querySelector(`.tooltip__arrow`),this.animateFrame=JSON.parse(o),this.offset=typeof u==`string`?parseInt(u,10):u,this.duration=d,this.tooltip&&(this.tooltip.setAttribute(`role`,`tooltip`),this.anchorEl.setAttribute(`aria-describedby`,n),this.attachEventListeners())}createTooltipElement(e){if(!this.text)return console.error(`Tooltip text is required.`),null;let t=document.createElement(`div`);t.id=e,t.classList.add(`tooltip`,`absolute`,`invisible`,`left-0`,`top-0`,`w-max`,`text-12`,`p-08`,`z-tooltip`,`bg-color-${this.bgColor}`,`text-color-${this.textColor}`);let n=document.createElement(`p`);n.classList.add(`tooltip__text`),n.innerHTML=Eo(this.text),t.appendChild(n);let r=document.createElement(`div`);return r.classList.add(`tooltip__arrow`,`absolute`),r.style.width=`0px`,r.style.height=`0px`,r.style.borderStyle=`solid`,r.style.borderWidth=`0 7.5px 14px 7.5px`,r.style.borderColor=`transparent transparent ${colors[this.bgColor]} transparent`,r.style.transform=`rotate(180deg)`,t.appendChild(r),this.modalEl?this.modalEl?.appendChild(t):(document.querySelector(`.evonik-tooltip`)||document.body).appendChild(t),t}async createMiddlewareConfig(){let e=[r(this.offset),c(),n({boundary:`clippingAncestors`}),i({padding:8,boundary:`clippingAncestors`}),o()];return this.arrowElement&&e.push(l({element:this.arrowElement,padding:ns})),e}async updatePosition(){this.tooltip&&s(this.anchorEl,this.tooltip,{placement:this.placement,middleware:await this.createMiddlewareConfig()}).then(({x:e,y:t,placement:n,middlewareData:r})=>{if(!this.tooltip)return;let i=n.split(`-`)[0];if(Object.assign(this.tooltip.style,{left:`${e}px`,top:`${t}px`,visibility:r.hide?.referenceHidden?`hidden`:`visible`}),this.arrowElement&&r.arrow){let{x:e,y:t}=r.arrow||{},n={top:`bottom`,right:`left`,bottom:`top`,left:`right`}[i];switch(i){case`bottom`:this.arrowElement.style.transform=`rotate(0deg)`;break;case`left`:this.arrowElement.style.transform=`rotate(90deg)`;break;case`right`:this.arrowElement.style.transform=`rotate(-90deg)`;break;default:this.arrowElement.style.transform=`rotate(180deg)`;break}Object.assign(this.arrowElement.style,{left:e==null?``:`${e}px`,top:t==null?``:`${t}px`,right:``,bottom:``,...n?{[n]:rs}:{}}
7)}})}showTooltip(){this.tooltip&&(this.eventType!==`init`&&(e.activeTooltip&&e.activeTooltip!==this&&e.activeTooltip.hideTooltipImmediately(),e.activeTooltip=this,e.activeButton=this.anchorEl),this.hideTimeout&&=(clearTimeout(this.hideTimeout),null),this.tooltip.style.transition=`opacity ${os}ms ease-in-out`,this.tooltip.style.opacity=`0`,this.tooltip.style.visibility=`visible`,setTimeout(()=>{this.tooltip&&(this.tooltip.style.opacity=`1`)},10),this.autoUpdateCleanup=a(this.anchorEl,this.tooltip,()=>{this.updatePosition()},{animationFrame:this.animateFrame}),this.updatePosition(),this.duration>0&&this.eventType===`init`&&(this.hideTimeout=setTimeout(()=>{this.hideTooltipImmediately()},this.duration)))}hideTooltip(){this.tooltip&&(this.hideTimeout=setTimeout(()=>{!this.isHoveringButton&&!this.isHoveringTooltip&&this.tooltip&&(this.tooltip.style.transition=`opacity ${os}ms ease-in-out`,this.tooltip.style.opacity=`0`,setTimeout(()=>{this.tooltip&&(this.tooltip.style.visibility=`hidden`)},os),e.activeButton=null,e.activeTooltip=null,this.autoUpdateCleanup&&=(this.autoUpdateCleanup(),void 0))},100))}hideTooltipImmediately(){this.showDelayTimeout&&=(clearTimeout(this.showDelayTimeout),null),this.hideTimeout&&=(clearTimeout(this.hideTimeout),null),this.tooltip&&(this.tooltip.style.transition=`opacity ${os}ms ease-in-out`,this.tooltip.style.opacity=`0`,setTimeout(()=>{this.tooltip&&(this.tooltip.style.visibility=`hidden`)},os)),e.activeButton=null,e.activeTooltip=null,this.autoUpdateCleanup&&=(this.autoUpdateCleanup(),void 0)}handleClickOutside(e){this.tooltip&&!this.el.contains(e.target)&&!this.tooltip.contains(e.target)&&(this.hideTooltipImmediately(),document.removeEventListener(`click`,this.handleClickOutsideBound),document.removeEventListener(`touchstart`,this.handleClickOutsideBound))}attachEventListeners(){let t=()=>{this.isHoveringButton=!0,this.showDelayTimeout&&clearTimeout(this.showDelayTimeout),this.showDelayTimeout=setTimeout(()=>{this.isHoveringButton&&this.showTooltip()},as)},n=()=>{this.isHoveringButton=!1,this.showDelayTimeout&&=(clearTimeout(this.showDelayTimeout),null),this.hideTooltip()},r=()=>{e.activeButton!==this.anchorEl&&this.showTooltip()},i=()=>{this.isHoveringButton=!1,this.hideTooltip()},a=t=>{t.stopPropagation(),this.tooltip?.style.visibility===`visible`?this.updatePosition():(e.activeTooltip&&e.activeTooltip!==this&&e.activeTooltip.hideTooltipImmediately(),this.showTooltip(),document.addEventListener(`click`,this.handleClickOutsideBound,{passive:!0}),document.addEventListener(`touchstart`,this.handleClickOutsideBound,{passive:!0}))};this.eventType===`hover`?this.buttonEvents.push([`mouseenter`,t],[`mouseleave`,n],[`touchstart`,a],[`focusin`,r],[`focusout`,i],[`blur`,i]):this.eventType===`click`?this.buttonEvents.push([`click`,a],[`touchstart`,a],[`focusin`,r],[`focusout`,i],[`blur`,i]):this.eventType===`init`&&this.showTooltip(),this.buttonEvents.forEach(([e,t])=>{this.el.addEventListener(e,t,{passive:!0})}),this.eventType===`hover`&&this.tooltip&&(this.tooltip.addEventListener(`mouseenter`,()=>{this.isHoveringTooltip=!0,this.hideTimeout&&=(clearTimeout(this.hideTimeout),null)}),this.tooltip.addEventListener(`mouseleave`,()=>{this.isHoveringTooltip=!1,this.hideTooltip()}))}handleClickOutsideBound=this.handleClickOutside.bind(this);removeListeners(){this.buttonEvents.forEach(([e,t])=>{this.el.removeEventListener(e,t)}),this.tooltip&&this.eventType===`hover`&&(this.tooltip.removeEventListener(`mouseenter`,()=>{this.isHoveringTooltip=!0,this.hideTimeout&&=(clearTimeout(this.hideTimeout),null)}),this.tooltip.removeEventListener(`mouseleave`,()=>{this.isHoveringTooltip=!1,this.hideTooltip()})),document.removeEventListener(`click`,this.handleClickOutsideBound),document.removeEventListener(`touchstart`,this.handleClickOutsideBound)}};K.plugin(ls);function ls(e){e.directive(`auto-linebreak`,(e,{expression:t},{evaluateLater:n,cleanup:r})=>{let i=t?n(t):null,a=e.parentElement||e;i&&i(e=>{e instanceof HTMLElement&&(a=e)});let o=e.textContent?.trim()??``;if(!o)return;let s=o.split(/\s+/),c=[],l=0;for(let e=0;e<s.length;e++)l+=s[e].length,c.push(l),e<s.length-1&&(l+=1);let u=()=>{e.textContent=o;let t=e.firstChild;if(!(t instanceof Text))return;let n=document.createRange(),r=e=>(n.setStart(t,0),n.setEnd(t,c[e]),n.getClientRects().length),i=r(0),a=[];for(let e=1;e<s.length;e++){let t=r(e);t>i&&(a.push(e),i=t)}if(a.length>
70){let t=new Set(a),n=``;for(let e=0;e<s.length;e++)t.has(e)&&(n+=`<br>`),e>0&&(n+=` `),n+=s[e];e.innerHTML=n}else e.textContent=o;e.dispatchEvent(new CustomEvent(`autolinebreak:ready`))},d=Co(()=>{requestAnimationFrame(u)},50),f=new ResizeObserver(()=>{d()});f.observe(a),document.fonts?.ready?document.fonts.ready.then(d):window.addEventListener(`load`,d),requestAnimationFrame(d),r(()=>{f.disconnect()})})}var us={scrollDisabled:!1,disableScrolling(){this.scrollDisabled=!0},enableScrolling(){this.scrollDisabled=!1}},ds=(e=>e)({youtube:{name:`YouTube Video`,script:{src:`https://www.youtube.com/iframe_api`,async:!0}},movingImage:{name:`MovingImage`,script:{src:`https://e.video-cdn.net/mi-player-sdk/mi-player-sdk.js`,module:!0,expose:{globalAs:`__miPlayerSdk`,exports:[`Player`]}}},podigee:{name:`Podigee`},gmaps:{name:`Google Maps`}}),fs=5e3,ps=()=>!!window.Granite?.author,ms=()=>!!(new URLSearchParams(window.location.search).get(`wcmmode`)===`disabled`&&document.cookie.includes(`wcmmode`)),hs=new class{listeners=new Map;lastState=new Map;readyCallbacks=[];isReady=!1;isAvailable=!1;isBypassed=!1;hasTimedOut=!1;acceptedLocally=new Set;constructor(){if(!(typeof window>`u`)){if(ps()||ms()){this.isBypassed=!0,this.isReady=!0,this.isAvailable=!0,queueMicrotask(()=>this.notifyAll());return}this.init()}}init(){let e=()=>{this.hasTimedOut||(this.isReady=!0,this.isAvailable=!0,this.readyCallbacks.splice(0).forEach(e=>e(!0)),this.notifyAll())};window.UC_UI?.isInitialized?.()?e():(window.addEventListener(`UC_UI_INITIALIZED`,e,{once:!0}),window.setTimeout(()=>{this.isReady||(this.hasTimedOut=!0,this.isReady=!0,this.isAvailable=!1,this.readyCallbacks.splice(0).forEach(e=>e(!1)),this.notifyAll())},fs));let t=()=>this.notifyAll();window.addEventListener(`consent_status`,t),window.addEventListener(`UC_UI_CMP_EVENT`,t)}findService(e){if(!window.UC_UI?.isInitialized?.())return null;let t=ds[e].name;return window.UC_UI.getServicesBaseInfo().find(e=>e.name===t)??null}notifyAll(){this.listeners.forEach((e,t)=>{let n=this.isAccepted(t);this.lastState.get(t)!==n&&(this.lastState.set(t,n),e.forEach(e=>{try{e(n)}catch(e){console.error(`Usercentrics subscriber for "${t}" threw:`,e)}}))})}ready(){return new Promise(e=>{this.isReady?e(this.isAvailable):this.readyCallbacks.push(e)})}available(){return this.isAvailable}isAuthor(){return this.isBypassed}isAccepted(e){return this.isBypassed?this.acceptedLocally.has(e):!!this.findService(e)?.consent.status}accept(e){if(this.isBypassed)return this.acceptedLocally.add(e),queueMicrotask(()=>this.notifyAll()),!0;let t=this.findService(e);return t?window.UC_UI?(window.UC_UI.acceptService(t.id),queueMicrotask(()=>this.notifyAll()),!0):!1:(console.warn(`Usercentrics: service "${ds[e].name}" not found`),!1)}deny(e){if(this.isBypassed)return this.acceptedLocally.delete(e),queueMicrotask(()=>this.notifyAll()),!0;let t=this.findService(e);return!t||!window.UC_UI?!1:(window.UC_UI.denyService(t.id),queueMicrotask(()=>this.notifyAll()),!0)}hasService(e){return this.isBypassed?!0:window.UC_UI?.isInitialized?.()?this.findService(e)!==null:!1}onChange(e,t){this.listeners.has(e)||this.listeners.set(e,new Set);let n=this.listeners.get(e);if(n&&n.add(t),this.isReady){let n=this.isAccepted(e);this.lastState.set(e,n),queueMicrotask(()=>{try{t(n)}catch(t){console.error(`Usercentrics subscriber for "${e}" threw:`,t)}})}return()=>this.listeners.get(e)?.delete(t)}whenAccepted(e){return new Promise(t=>{let n=this.onChange(e,e=>{e&&(n(),t())})})}registerScript(e){let t=ds[e];if(!t.script)return;let n=`uc-script-${e}`,r=()=>{if(document.getElementById(n))return;let r=t.script,i=document.createElement(`script`);if(i.id=n,r.async&&(i.async=!0),r.defer&&(i.defer=!0),r.expose){let{globalAs:t}=r.expose;i.type=`module`,i.textContent=`import * as sdk from '${r.src}';\nwindow['${t}'] = sdk;\ndocument.dispatchEvent(new CustomEvent('uc-script-${e}-loaded'));`}else i.src=r.src,r.module&&(i.type=`module`);document.head.appendChild(i)};this.onChange(e,e=>{e&&r()})}},gs=Object.fromEntries(Object.keys(ds).map(e=>[e,!1])),_s={ready:!1,services:{...gs},available:{...gs}
7,init(){Object.keys(ds).forEach(e=>{ds[e].script&&hs.registerScript(e),hs.onChange(e,t=>{this.services[e]=t})}),hs.ready().then(e=>{Object.keys(ds).forEach(t=>{this.available[t]=e&&hs.hasService(t)}),this.ready=!0})},accept(e){this.available[e]&&(this.services[e]||hs.accept(e)||(this.available[e]=!1))}},vs={flyout:{content:null,isOpen:!1,toggle(e){if(this.isOpen&&this.content===e){this.close();return}this.content=e,this.isOpen=!0},open(){this.isOpen=!0},close(){this.isOpen=!1}},searchFlyout:{isOpen:!1,toggle(){this.isOpen=!this.isOpen}}},ys={imageSrc:null,get isOpen(){return this.imageSrc!==null},open(e){this.imageSrc=e,K.store(`globalStore`).disableScrolling()},close(){this.imageSrc=null,K.store(`globalStore`).enableScrolling()}},bs={flyout:{content:null,isOpen:!1,toggle(e){if(this.isOpen&&this.content===e){this.close();return}this.content=e,this.isOpen=!0},open(){this.isOpen=!0},close(){this.isOpen=!1,setTimeout(()=>{this.content=null},500)}}},xs={forms:[],formListeners:new WeakMap,storeFormInput(e,t){let n=this.getForm(e);n||=(this.forms.push({formId:e,values:[]}),this.getForm(e));let r=n;t.forEach(e=>{let t=r.values.findIndex(t=>t.name===e.name);if(e.type===`checkbox`){e.checked?t>-1?r.values[t]=e:r.values.push(e):r.values=r.values.filter(t=>!(t.name===e.name&&t.value===e.value));return}if(e.type===`radio`){e.checked?(r.values=r.values.filter(t=>t.name!==e.name),r.values.push(e)):document.querySelector(`input[type="radio"][name="${e.name}"]:checked`)||(r.values=r.values.filter(t=>t.name!==e.name));return}t>-1?e.value===``?r.values.splice(t,1):r.values[t]=e:r.values.push(e)})},removeFormInput(e,t){let n=this.getForm(e);n&&(n.values=n.values.filter(e=>e.name!==t))},getForm(e){return this.forms.find(t=>t.formId===e)},hasForm(e){return this.forms.some(t=>t.formId===e)},getFormInputValue(e,t){let n=this.getForm(e);if(!n)return null;let r=n.values.find(e=>e.name===t);return r?r.value:null},removeForm(e){this.forms=this.forms.filter(t=>t.formId!==e);let t=document.getElementById(e);if(!t)return;let n=this.formListeners.get(t);n&&(t.removeEventListener(`change`,n),this.formListeners.delete(t))},restoreForm(e,t){let n=this.getForm(e);if(!n)return;let r=t||document.getElementById(e);r&&n.values.forEach(e=>{let t=Array.from(r.querySelectorAll(`[name="${e.name}"]`));t.length!==0&&t.forEach(t=>{switch(e.type){case`checkbox`:t.checked=!!e.checked;break;case`radio`:let n=t;n.checked=n.value===e.value;break;default:t.value=e.value;break}t.dispatchEvent(new Event(`change`,{bubbles:!0}))})})},storeForm(e,t){let n=t||document.getElementById(e);if(!n||this.formListeners.has(n))return;let r=t=>{let n=t.target;!n||!n.name||this.storeFormInput(e,[{name:n.name,value:n.value,type:n.type,checked:n.checked??void 0}])};n.addEventListener(`change`,r),this.formListeners.set(n,r)}},Ss={historyStack:[],addToHistory(e){this.historyStack.push(e)},clearHistory(){this.historyStack=[]},getPreviousModal(){return this.historyStack[this.historyStack.length-1]??null}},Cs={GET_ALL_LOCATIONS:`evonik-get-all-locations`,SET_USER_DATA:`evonik-user-set-data`,SET_USER_GROUPS:`evonik-user-request-groups`,SET_EMPLOYEE_GROUPS:`evonik-employee-set-groups`,GET_AREAS_OF_INTERESTS:`evonik-get-area-of-interests`,SET_AREAS_OF_INTERESTS:`evonik-set-area-of-interests`,SET_AREAS_OF_INTERESTS_EMPLOYEE:`evonik-employee-set-aoi`,GET_FORM_MAJOR_USER:`evonik-form-get-majoruser`,GET_FORM_APPLICATIONS:`evonik-form-get-applications`,GET_CAPTCHA_SITE_KEY:`evonik-captcha-site-key`,VALIDATE_CAPTCHA:`evonik-captcha-verify`,EXTRANET_SEND_EMAIL:`extranet-send-mail`},ws=`_x_accessRequestGroups`;function Ts(e){return e.split(`,`).map(e=>e.trim()).filter(Boolean)}var Es={accessGroups:[],init(){let e=localStorage.getItem(ws);if(e)try{let t=JSON.parse(e);Array.isArray(t)&&(this.accessGroups=t.filter(e=>typeof e==`string`&&e.trim()!==``))}catch{localStorage.removeItem(ws)}},addGroups(e){Ts(e).forEach(e=>{this.accessGroups.includes(e)||this.accessGroups.push(e)}),this.persist()},removeGroups(e){let t=Ts(e);this.accessGroups=this.accessGroups.filter(e=>!t.includes(e)),this.persist()},clearGroups(){this.accessGroups=[],localStorage.removeItem(ws)},persist(){localStorage.setItem(ws,JSON.stringify(this.accessGroups))},async submitRequest(){try{if(this.accessGroups.length===0)return;await Lo({selector:Cs.SET_USER_GROUPS,body:this.accessGroups})}finally{this.clearGroups()}}};function Ds(e){return typeof e==`object`&&!!e&&`constructor`in e&&e.constructor===Object}function Os(e={},t={}){let n=[`__proto__`,`constructor`,`prototype`];Object.keys(t).filter(e=>
vendor: 5,395 bytes, line 7
7n.indexOf(e)<0).forEach(n=>{e[n]===void 0?e[n]=t[n]:Ds(t[n])&&Ds(e[n])&&Object.keys(t[n]).length>0&&Os(e[n],t[n])})}var ks={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:``},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:``,host:``,hostname:``,href:``,origin:``,pathname:``,protocol:``,search:``}};function As(){let e=typeof document<`u`?document:{};return Os(e,ks),e}var js={document:ks,navigator:{userAgent:``},location:{hash:``,host:``,hostname:``,href:``,origin:``,pathname:``,protocol:``,search:``},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return``}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>`u`?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>`u`||clearTimeout(e)}};function J(){let e=typeof window<`u`?window:{};return Os(e,js),e}function Ms(e=``){return e.trim().split(` `).filter(e=>!!e.trim())}function Ns(e){let t=e;Object.keys(t).forEach(e=>{try{t[e]=null}catch{}try{delete t[e]}catch{}})}function Ps(e,t=0){return setTimeout(e,t)}function Fs(){return Date.now()}function Is(e){let t=J(),n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||=e.style,n}function Ls(e,t=`x`){let n=J(),r,i,a,o=Is(e);return n.WebKitCSSMatrix?(i=o.transform||o.webkitTransform,i.split(`,`).length>6&&(i=i.split(`, `).map(e=>e.replace(`,`,`.`)).join(`, `)),a=new n.WebKitCSSMatrix(i===`none`?``:i)):(a=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue(`transform`).replace(`translate(`,`matrix(1, 0, 0, 1,`),r=a.toString().split(`,`)),t===`x`&&(i=n.WebKitCSSMatrix?a.m41:r.length===16?parseFloat(r[12]):parseFloat(r[4])),t===`y`&&(i=n.WebKitCSSMatrix?a.m42:r.length===16?parseFloat(r[13]):parseFloat(r[5])),i||0}function Rs(e){return typeof e==`object`&&!!e&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)===`Object`}function zs(e){return typeof window<`u`&&window.HTMLElement!==void 0?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function Y(...e){let t=Object(e[0]);for(let n=1;n<e.length;n+=1){let r=e[n];if(r!=null&&!zs(r)){let e=Object.keys(Object(r)).filter(e=>e!==`__proto__`&&e!==`constructor`&&e!==`prototype`);for(let n=0,i=e.length;n<i;n+=1){let i=e[n],a=Object.getOwnPropertyDescriptor(r,i);a!==void 0&&a.enumerable&&(Rs(t[i])&&Rs(r[i])?r[i].__swiper__?t[i]=r[i]:Y(t[i],r[i]):!Rs(t[i])&&Rs(r[i])?(t[i]={},r[i].__swiper__?t[i]=r[i]:Y(t[i],r[i])):t[i]=r[i])}}}return t}function Bs(e,t,n){e.style.setProperty(t,n)}function Vs({swiper:e,targetPosition:t,side:n}){let r=J(),i=-e.translate,a=null,o,s=e.params.speed;e.wrapperEl.style.scrollSnapType=`none`,r.cancelAnimationFrame(e.cssModeFrameID);let c=t>i?`next`:`prev`,l=(e,t)=>c===`next`&&e>=t||c===`prev`&&e<=t,u=()=>{o=new Date().getTime(),a===null&&(a=o);let c=Math.max(Math.min((o-a)/s,1),0),d=i+(.5-Math.cos(c*Math.PI)/2)*(t-i);if(l(d,t)&&(d=t),e.wrapperEl.scrollTo({[n]:d}),l(d,t)){e.wrapperEl.style.overflow=`hidden`,e.wrapperEl.style.scrollSnapType=``,setTimeout(()=>{e.wrapperEl.style.overflow=``,e.wrapperEl.scrollTo({[n]:d})}),r.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=r.requestAnimationFrame(u)};u()}function Hs(e){return e.querySelector(`.swiper-slide-transform`)||e.shadowRoot&&e.shadowRoot.querySelector(`.swiper-slide-transform`)||e}function Us(e,t=``){let n=J(),r=[...e.children];return n.HTMLSlotElement&&e instanceof HTMLSlotElement&&r.push(...e.assignedElements()),t?r.filter(e=>e.matches(t)):r}function Ws(e,t){let n=[t];for(;n.length>0;){let t=n.shift();if(e===t)return!0;n.push(...t.children,...t.shadowRoot?t.shadowRoot.children:[],...t.assignedElements?t.assignedElements():[])}}function Gs(e,t){let n=J(),r=t.contains(e);return!r&&n.HTMLSlotElement&&t instanceof HTMLSlotElement&&(r=[...t.assignedElements()].includes(e),r||=Ws(e,t)),r}function Ks(e){try{console.warn(e);return}catch{}}function qs(e,t=[]){let n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:Ms(t)),n}function Js(e){let t=J(),n=As(),r=e.getBoundingClientRect(),i=n.body,a=e.clientTop||i.clientTop||0,o=e.clientLeft||i.clientLeft||0,s=e===t?t.scrollY:e.scrollTop,c=e===t?t.scrollX:e.scrollLeft;return{top:r.top+s-a,left:r.left+c-o}}function Ys(e,t){let n=[];for(;e.previousElementSibling;){let r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function Xs(e,t){let n=[];for(;e.nextElementSibling;){let r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function Zs(e,t){return J().getComputedStyle(e,null).getPropertyValue(t)}function Qs(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function $s(e,t){let n=[],r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function ec(e,t){function n(r){r.target===e&&(t.call(e,r),e.removeEventListener(`transitionend`,n))}t&&e.addEventListener(`transitionend`,n)}
7function tc(e,t,n){let r=J();return n?e[t===`width`?`offsetWidth`:`offsetHeight`]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t===`width`?`margin-right`:`margin-top`))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t===`width`?`margin-left`:`margin-bottom`)):e.offsetWidth}function X(e){return(Array.isArray(e)?e:[e]).filter(e=>!!e)}function nc(e,t=``){typeof trustedTypes<`u`?e.innerHTML=trustedTypes.createPolicy(`html`,{createHTML:e=>e}).createHTML(t):e.innerHTML=t}var rc;function ic(){let e=J(),t=As();return{smoothScroll:t.documentElement&&t.documentElement.style&&`scrollBehavior`in t.documentElement.style,touch:!!(`ontouchstart`in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function ac(){return rc||=ic(),rc}var oc;function sc({userAgent:e}={}){let t=ac(),n=J(),r=n.navigator.platform,i=e||n.navigator.userAgent,a={ios:!1,android:!1},o=n.screen.width,s=n.screen.height,c=i.match(/(Android);?[\s\/]+([\d.]+)?/),l=i.match(/(iPad)(?!\1).*OS\s([\d_]+)/),u=i.match(/(iPod)(.*OS\s([\d_]+))?/),d=!l&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f=r===`Win32`,p=r===`MacIntel`;return!l&&p&&t.touch&&[`1024x1366`,`1366x1024`,`834x1194`,`1194x834`,`834x1112`,`1112x834`,`768x1024`,`1024x768`,`820x1180`,`1180x820`,`810x1080`,`1080x810`].indexOf(`${o}x${s}`)>=0&&(l=i.match(/(Version)\/([\d.]+)/),l||=[0,1,`13_0_0`],p=!1),c&&!f&&(a.os=`android`,a.android=!0),(l||d||u)&&(a.os=`ios`,a.ios=!0),a}function cc(e={}){return oc||=sc(e),oc}var lc;function uc(){let e=J(),t=cc(),n=!1;function r(){let t=e.navigator.userAgent.toLowerCase();return t.indexOf(`safari`)>=0&&t.indexOf(`chrome`)<0&&t.indexOf(`android`)<0}if(r()){let t=String(e.navigator.userAgent);if(t.includes(`Version/`)){let[e,r]=t.split(`Version/`)[1].split(` `)[0].split(`.`).map(e=>Number(e));n=e<16||e===16&&r<2}}let i=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),a=r(),o=a||i&&t.ios;return{isSafari:n||a,needPerspectiveFix:n,need3dFix:o,isWebView:i}}function dc(){return lc||=uc(),lc}function fc({swiper:e,on:t,emit:n}){let r=J(),i=null,a=null,o=()=>{!e||e.destroyed||!e.initialized||(n(`beforeResize`),n(`resize`))},s=()=>{!e||e.destroyed||!e.initialized||(i=new ResizeObserver(t=>{a=r.requestAnimationFrame(()=>{let{width:n,height:r}=e,i=n,a=r;t.forEach(({contentBoxSize:t,contentRect:n,target:r})=>{r&&r!==e.el||(i=n?n.width:(t[0]||t).inlineSize,a=n?n.height:(t[0]||t).blockSize)}),(i!==n||a!==r)&&o()})}),i.observe(e.el))},c=()=>{a&&r.cancelAnimationFrame(a),i&&i.unobserve&&e.el&&(i.unobserve(e.el),i=null)},l=()=>{!e||e.destroyed||!e.initialized||n(`orientationchange`)};t(`init`,()=>{if(e.params.resizeObserver&&r.ResizeObserver!==void 0){s();return}r.addEventListener(`resize`,o),r.addEventListener(`orientationchange`,l)}),t(`destroy`,()=>{c(),r.removeEventListener(`resize`,o),r.removeEventListener(`orientationchange`,l)})}function pc({swiper:e,extendParams:t,on:n,emit:r}){let i=[],a=J(),o=(t,n={})=>{let o=new(a.MutationObserver||a.WebkitMutationObserver)(t=>{if(e.__preventObserver__)return;if(t.length===1){r(`observerUpdate`,t[0]);return}let n=function(){r(`observerUpdate`,t[0])};a.requestAnimationFrame?a.requestAnimationFrame(n):a.setTimeout(n,0)});o.observe(t,{attributes:n.attributes===void 0?!0:n.attributes,childList:e.isElement||(n.childList===void 0?!0:n).childList,characterData:n.characterData===void 0?!0:n.characterData}),i.push(o)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n(`init`,()=>{if(e.params.observer){if(e.params.observeParents){let t=$s(e.hostEl);for(let e=0;e<t.length;e+=1)o(t[e])}o(e.hostEl,{childList:e.params.observeSlideChildren}),o(e.wrapperEl,{attributes:!1})}}),n(`destroy`,()=>{i.forEach(e=>{e.disconnect()}),i.splice(0,i.length)})}var mc={on(e,t,n){let r=this;if(!r.eventsListeners||r.destroyed||typeof t!=`function`)return r;let i=n?`unshift`:`push`;return e.split(` `).forEach(e=>{r.eventsListeners[e]||(r.eventsListeners[e]=[]),r.eventsListeners[e][i](t)}),r},once(e,t,n){let r=this;if(!r.eventsListeners||r.destroyed||typeof t!=`function`)return r;function i(...n){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy,t.apply(r,n)}return i.__emitterProxy=t,r.on(e,i,n)},onAny(e,t){let n=this;if(!n.eventsListeners||n.destroyed||typeof e!=`function`)return n;let r=t?`unshift`:`push`;return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){let t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;let n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){let n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(` `).forEach(e
vendor: 9,892 bytes, line 7
7=>{t===void 0?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach((r,i)=>{(r===t||r.__emitterProxy&&r.__emitterProxy===t)&&n.eventsListeners[e].splice(i,1)})}),n},emit(...e){let t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let n,r,i;return typeof e[0]==`string`||Array.isArray(e[0])?(n=e[0],r=e.slice(1,e.length),i=t):(n=e[0].events,r=e[0].data,i=e[0].context||t),r.unshift(i),(Array.isArray(n)?n:n.split(` `)).forEach(e=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(t=>{t.apply(i,[e,...r])}),t.eventsListeners&&t.eventsListeners[e]&&t.eventsListeners[e].forEach(e=>{e.apply(i,r)})}),t}};function hc(){let e=this,t,n,r=e.el;t=e.params.width!==void 0&&e.params.width!==null?e.params.width:r.clientWidth,n=e.params.height!==void 0&&e.params.height!==null?e.params.height:r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(Zs(r,`padding-left`)||0,10)-parseInt(Zs(r,`padding-right`)||0,10),n=n-parseInt(Zs(r,`padding-top`)||0,10)-parseInt(Zs(r,`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}))}function gc(){let e=this;function t(t,n){return parseFloat(t.getPropertyValue(e.getDirectionLabel(n))||0)}let n=e.params,{wrapperEl:r,slidesEl:i,rtlTranslate:a,wrongRTL:o}=e,s=e.virtual&&n.virtual.enabled,c=s?e.virtual.slides.length:e.slides.length,l=Us(i,`.${e.params.slideClass}, swiper-slide`),u=s?e.virtual.slides.length:l.length,d=[],f=[],p=[],m=n.slidesOffsetBefore;typeof m==`function`&&(m=n.slidesOffsetBefore.call(e));let h=n.slidesOffsetAfter;typeof h==`function`&&(h=n.slidesOffsetAfter.call(e));let g=e.snapGrid.length,_=e.slidesGrid.length,v=e.size-m-h,y=n.spaceBetween,b=-m,x=0,S=0;if(v===void 0)return;typeof y==`string`&&y.indexOf(`%`)>=0?y=parseFloat(y.replace(`%`,``))/100*v:typeof y==`string`&&(y=parseFloat(y)),e.virtualSize=-y-m-h,l.forEach(e=>{a?e.style.marginLeft=``:e.style.marginRight=``,e.style.marginBottom=``,e.style.marginTop=``}),n.centeredSlides&&n.cssMode&&(Bs(r,`--swiper-centered-offset-before`,``),Bs(r,`--swiper-centered-offset-after`,``)),n.cssMode&&(Bs(r,`--swiper-slides-offset-before`,`${m}px`),Bs(r,`--swiper-slides-offset-after`,`${h}px`));let C=n.grid&&n.grid.rows>1&&e.grid;C?e.grid.initSlides(l):e.grid&&e.grid.unsetSlides();let w,T=n.slidesPerView===`auto`&&n.breakpoints&&Object.keys(n.breakpoints).filter(e=>n.breakpoints[e].slidesPerView!==void 0).length>0;for(let r=0;r<u;r+=1){w=0;let i=l[r];if(!(i&&(C&&e.grid.updateSlide(r,i,l),Zs(i,`display`)===`none`))){if(s&&n.slidesPerView===`auto`)n.virtual.slidesPerViewAutoSlideSize&&(w=n.virtual.slidesPerViewAutoSlideSize),w&&i&&(n.roundLengths&&(w=Math.floor(w)),i.style[e.getDirectionLabel(`width`)]=`${w}px`);else if(n.slidesPerView===`auto`){T&&(i.style[e.getDirectionLabel(`width`)]=``);let r=getComputedStyle(i),a=i.style.transform,o=i.style.webkitTransform;if(a&&(i.style.transform=`none`),o&&(i.style.webkitTransform=`none`),n.roundLengths)w=e.isHorizontal()?tc(i,`width`,!0):tc(i,`height`,!0);else{let e=t(r,`width`),n=t(r,`padding-left`),a=t(r,`padding-right`),o=t(r,`margin-left`),s=t(r,`margin-right`),c=r.getPropertyValue(`box-sizing`);if(c&&c===`border-box`)w=e+o+s;else{let{clientWidth:t,offsetWidth:r}=i;w=e+n+a+o+s+(r-t)}}a&&(i.style.transform=a),o&&(i.style.webkitTransform=o),n.roundLengths&&(w=Math.floor(w))}else w=(v-(n.slidesPerView-1)*y)/n.slidesPerView,n.roundLengths&&(w=Math.floor(w)),i&&(i.style[e.getDirectionLabel(`width`)]=`${w}px`);i&&(i.swiperSlideSize=w),p.push(w),n.centeredSlides?(b=b+w/2+x/2+y,x===0&&r!==0&&(b=b-v/2-y),r===0&&(b=b-v/2-y),Math.abs(b)<1/1e3&&(b=0),n.roundLengths&&(b=Math.floor(b)),S%n.slidesPerGroup===0&&d.push(b),f.push(b)):(n.roundLengths&&(b=Math.floor(b)),(S-Math.min(e.params.slidesPerGroupSkip,S))%e.params.slidesPerGroup===0&&d.push(b),f.push(b),b=b+w+y),e.virtualSize+=w+y,x=w,S+=1}}if(e.virtualSize=Math.max(e.virtualSize,v)+h,a&&o&&(n.effect===`slide`||n.effect===`coverflow`)&&(r.style.width=`${e.virtualSize+y}px`),n.setWrapperSize&&(r.style[e.getDirectionLabel(`width`)]=`${e.virtualSize+y}px`),C&&e.grid.updateWrapperSize(w,d),!n.centeredSlides){let t=n.slidesPerView!==`auto`&&n.slidesPerView%1!=0,r=n.snapToSlideEdge&&!n.loop&&(n.slidesPerView===`auto`||t),i=d.length;if(r){let e;if(n.slidesPerView===`auto`){e=1;let t=0;for(let n=p.length-1;n>=0&&(t+=p[n]+(n<p.length-1?y:0),t<=v);--n)e=p.length-n}else e=Math.floor(n.slidesPerView);i=Math.max(u-e,0)}let a=[];for(let t=0;t<d.length;t+=1){let o=d[t];n.roundLengths&&(o=Math.floor(o)),r?t<=i&&a.push(o):d[t]<=e.virtualSize-v&&a.push(o)}d=a,Math.floor(e.virtualSize-v)-Math.floor(d[d.length-1])>1&&(r||d.push(e.virtualSize-v))}if(s&&n.loop){let t=p[0]+y;if(n.slidesPerGroup>1){let r=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),i=t*n.slidesPerGroup;for(let e=0;e<r;e+=1)d.push(d[d.length-1]+i)}for(let r=0;r<e.virtual.slidesBefore+e.virtual.slidesAfter;r+=1)n.slidesPerGroup===1&&d.push(d[d.length-1]+t),f.push(f[f.length-1]+t),e.virtualSize+=t}if(d.length===0&&(d=[0]),y!==0){let t=e.isHorizontal()&&a?`marginLeft`:e.getDirectionLabel(`marginRight`);l.filter((e,t)=>!n.cssMode||n.loop?!0:t!==l.length-1).forEach(e=>{e.style[t]=`${y}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;p.forEach(t=>{e+=t+(y||0)}),e-=y;let t=e>v?e-v:0;d=d.map(e=>e<=0?-m:e>t?t+h:e)}if(n.centerInsufficientSlides){let e=0;if(p.forEach(t=>{e+=t+(y||0)}),e-=y,e<v){let t=(v-e)/2;d.forEach((e,n)=>{d[n]=e-t}),f.forEach((e,n)=>{f[n]=e+t})}}if(Object.assign(e,{slides:l,snapGrid:d,slidesGrid:f,slidesSizesGrid:p}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){Bs(r,`--swiper-centered-offset-before`,`${-d[0]}px`),Bs(r,`--swiper-centered-offset-after`,`${e.size/2-p[p.length-1]/2}px`);let t=-e.snapGrid[0],n=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(e=>e+t),e.slidesGrid=e.slidesGrid.map(e=>e+n)}if(u!==c&&e.emit(`slidesLengthChange`),d.length!==g&&(e.params.watchOverflow&&e.checkOverflow(),e.emit(`snapGridLengthChange`)),f.length!==_&&e.emit(`slidesGridLengthChange`),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit(`slidesUpdated`),!s&&!n.cssMode&&(n.effect===`slide`||n.effect===`fade`)){let t=`${n.containerModifierClass}backface-hidden`,r=e.el.classList.contains(t);u<=n.maxBackfaceHiddenSlides?r||e.el.classList.add(t):r&&e.el.classList.remove(t)}}function _c(e){let t=this,n=[],r=t.virtual&&t.params.virtual.enabled,i=0,a;typeof e==`number`?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);let o=e=>r?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if(t.params.slidesPerView!==`auto`&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(e=>{n.push(e)});else for(a=0;a<Math.ceil(t.params.slidesPerView);a+=1){let e=t.activeIndex+a;if(e>t.slides.length&&!r)break;n.push(o(e))}else n.push(o(t.activeIndex));for(a=0;a<n.length;a+=1)if(n[a]!==void 0){let e=n[a].offsetHeight;i=e>i?e:i}(i||i===0)&&(t.wrapperEl.style.height=`${i}px`)}function vc(){let e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-n-e.cssOverflowAdjustment()}var yc=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function bc(e=this&&this.translate||0){let t=this,n=t.params,{slides:r,rtlTranslate:i,snapGrid:a}=t;if(r.length===0)return;r[0].swiperSlideOffset===void 0&&t.updateSlidesOffset();let o=-e;i&&(o=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let s=n.spaceBetween;typeof s==`string`&&s.indexOf(`%`)>=0?s=parseFloat(s.replace(`%`,``))/100*t.size:typeof s==`string`&&(s=parseFloat(s));for(let e=0;e<r.length;e+=1){let c=r[e],l=c.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(l-=r[0].swiperSlideOffset);let u=(o+(n.centeredSlides?t.minTranslate():0)-l)/(c.swiperSlideSize+s),d=(o-a[0]+(n.centeredSlides?t.minTranslate():0)-l)/(c.swiperSlideSize+s),f=-(o-l),p=f+t.slidesSizesGrid[e],m=f>=0&&f<=t.size-t.slidesSizesGrid[e],h=f>=0&&f<t.size-1||p>1&&p<=t.size||f<=0&&p>=t.size;h&&(t.visibleSlides.push(c),t.visibleSlidesIndexes.push(e)),yc(c,h,n.slideVisibleClass),yc(c,m,n.slideFullyVisibleClass),c.progress=i?-u:u,c.originalProgress=i?-d:d}}function xc(e){let t=this;if(e===void 0){let n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}let n=t.params,r=t.maxTranslate()-t.minTranslate(),{progress:i,isBeginning:a,isEnd:o,progressLoop:s}=t,c=a,l=o;if(r===0)i=0,a=!0,o=!0;else{i=(e-t.minTranslate())/r;let n=Math.abs(e-t.minTranslate())<1,s=Math.abs(e-t.maxTranslate())<1;a=n||i<=0,o=s||i>=1,n&&(i=0),s&&(i=1)}if(n.loop){let n=t.getSlideIndexByData(0),r=t.getSlideIndexByData(t.slides.length-1),i=t.slidesGrid[n],a=t.slidesGrid[r],o=t.slidesGrid[t.slidesGrid.length-1],c=Math.abs(e);s=c>=i?(c-i)/o:(c+o-a)/o,s>1&&--s}Object.assign(t,{progress:i,progressLoop:s,isBeginning:a,isEnd:o}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),a&&!c&&t.emit(`reachBeginning toEdge`),o&&!l&&t.emit(`reachEnd toEdge`),(c&&!a||l&&!o)&&t.emit(`fromEdge`),t.emit(`progress`,i)}var Sc=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function Cc(){let e=this,{slides:t,params:n,slidesEl:r,activeIndex:i}=e,a=e.virtual&&n.virtual.enabled,o=e.grid&&n.grid&&n.grid.rows>1,s=e=>Us(r,`.${n.slideClass}${e}, swiper-slide${e}`)[0],c,l,u;if(a)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),c=s(`[data-swiper-slide-index="${t}"]`)}else c=s(`[data-swiper-slide-index="${i}"]`);else o?(c=t.find(e=>e.column===i),u=t.find(e=>e.column===i+1),l=t.find(e=>e.column===i-1)):c=t[i];c&&(o||(u=Xs(c,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!u&&(u=t[0]),l=Ys(c,`.${n.slideClass}
7, swiper-slide`)[0],n.loop)),t.forEach(e=>{Sc(e,e===c,n.slideActiveClass),Sc(e,e===u,n.slideNextClass),Sc(e,e===l,n.slidePrevClass)}),e.emitSlidesClasses()}var wc=(e,t)=>{if(!e||e.destroyed||!e.params)return;let n=t.closest(e.isElement?`swiper-slide`:`.${e.params.slideClass}`);if(n){let t=n.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(n.shadowRoot?t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),t&&!t.lazyPreloaderManaged&&t.remove())})),t&&!t.lazyPreloaderManaged&&t.remove()}},Tc=(e,t)=>{if(!e.slides[t])return;let n=e.slides[t].querySelector(`[loading="lazy"]`);n&&n.removeAttribute(`loading`)},Ec=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext,n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);let r=e.params.slidesPerView===`auto`?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){let n=i,a=[n-t];a.push(...Array.from({length:t}).map((e,t)=>n+r+t)),e.slides.forEach((t,n)=>{a.includes(t.column)&&Tc(e,n)});return}let a=i+r-1;if(e.params.rewind||e.params.loop)for(let r=i-t;r<=a+t;r+=1){let t=(r%n+n)%n;(t<i||t>a)&&Tc(e,t)}else for(let r=Math.max(i-t,0);r<=Math.min(a+t,n-1);r+=1)r!==i&&(r>a||r<i)&&Tc(e,r)};function Dc(e){let{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate,i;for(let e=0;e<t.length;e+=1)t[e+1]===void 0?r>=t[e]&&(i=e):r>=t[e]&&r<t[e+1]-(t[e+1]-t[e])/2?i=e:r>=t[e]&&r<t[e+1]&&(i=e+1);return n.normalizeSlideIndex&&(i<0||i===void 0)&&(i=0),i}function Oc(e){let t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:i,activeIndex:a,realIndex:o,snapIndex:s}=t,c=e,l,u=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(c===void 0&&(c=Dc(t)),r.indexOf(n)>=0)l=r.indexOf(n);else{let e=Math.min(i.slidesPerGroupSkip,c);l=e+Math.floor((c-e)/i.slidesPerGroup)}if(l>=r.length&&(l=r.length-1),c===a&&!t.params.loop){l!==s&&(t.snapIndex=l,t.emit(`snapIndexChange`));return}if(c===a&&t.params.loop&&t.virtual&&t.params.virtual.enabled){t.realIndex=u(c);return}let d=t.grid&&i.grid&&i.grid.rows>1,f;if(t.virtual&&i.virtual.enabled)f=i.loop?u(c):c;else if(d){let e=t.slides.find(e=>e.column===c),n=parseInt(e.getAttribute(`data-swiper-slide-index`),10);Number.isNaN(n)&&(n=Math.max(t.slides.indexOf(e),0)),f=Math.floor(n/i.grid.rows)}else if(t.slides[c]){let e=t.slides[c].getAttribute(`data-swiper-slide-index`);f=e?parseInt(e,10):c}else f=c;Object.assign(t,{previousSnapIndex:s,snapIndex:l,previousRealIndex:o,realIndex:f,previousIndex:a,activeIndex:c}),t.initialized&&Ec(t),t.emit(`activeIndexChange`),t.emit(`snapIndexChange`),(t.initialized||t.params.runCallbacksOnInit)&&(o!==f&&t.emit(`realIndexChange`),t.emit(`slideChange`))}function kc(e,t){let n=this,r=n.params,i=e.closest(`.${r.slideClass}, swiper-slide`);!i&&n.isElement&&t&&t.length>
vendor: 26,658 bytes, line 7
71&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(e=>{!i&&e.matches&&e.matches(`.${r.slideClass}, swiper-slide`)&&(i=e)});let a=!1,o;if(i){for(let e=0;e<n.slides.length;e+=1)if(n.slides[e]===i){a=!0,o=e;break}}if(i&&a)n.clickedSlide=i,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(i.getAttribute(`data-swiper-slide-index`),10):n.clickedIndex=o;else{n.clickedSlide=void 0,n.clickedIndex=void 0;return}r.slideToClickedSlide&&n.clickedIndex!==void 0&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}var Ac={updateSize:hc,updateSlides:gc,updateAutoHeight:_c,updateSlidesOffset:vc,updateSlidesProgress:bc,updateProgress:xc,updateSlidesClasses:Cc,updateActiveIndex:Oc,updateClickedSlide:kc};function jc(e=this.isHorizontal()?`x`:`y`){let t=this,{params:n,rtlTranslate:r,translate:i,wrapperEl:a}=t;if(n.virtualTranslate)return r?-i:i;if(n.cssMode)return i;let o=Ls(a,e);return o+=t.cssOverflowAdjustment(),r&&(o=-o),o||0}function Mc(e,t){let n=this,{rtlTranslate:r,params:i,wrapperEl:a,progress:o}=n,s=0,c=0;n.isHorizontal()?s=r?-e:e:c=e,i.roundLengths&&(s=Math.floor(s),c=Math.floor(c)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?s:c,i.cssMode?a[n.isHorizontal()?`scrollLeft`:`scrollTop`]=n.isHorizontal()?-s:-c:i.virtualTranslate||(n.isHorizontal()?s-=n.cssOverflowAdjustment():c-=n.cssOverflowAdjustment(),a.style.transform=`translate3d(${s}px, ${c}px, 0px)`);let l,u=n.maxTranslate()-n.minTranslate();l=u===0?0:(e-n.minTranslate())/u,l!==o&&n.updateProgress(e),n.emit(`setTranslate`,n.translate,t)}function Nc(){return-this.snapGrid[0]}function Pc(){return-this.snapGrid[this.snapGrid.length-1]}function Fc(e=0,t=this.params.speed,n=!0,r=!0,i){let a=this,{params:o,wrapperEl:s}=a;if(a.animating&&o.preventInteractionOnTransition)return!1;let c=a.minTranslate(),l=a.maxTranslate(),u;if(u=r&&e>c?c:r&&e<l?l:e,a.updateProgress(u),o.cssMode){let e=a.isHorizontal();if(t===0)s[e?`scrollLeft`:`scrollTop`]=-u;else{if(!a.support.smoothScroll)return Vs({swiper:a,targetPosition:-u,side:e?`left`:`top`}),!0;s.scrollTo({[e?`left`:`top`]:-u,behavior:`smooth`})}return!0}return t===0?(a.setTransition(0),a.setTranslate(u),n&&(a.emit(`beforeTransitionStart`,t,i),a.emit(`transitionEnd`))):(a.setTransition(t),a.setTranslate(u),n&&(a.emit(`beforeTransitionStart`,t,i),a.emit(`transitionStart`)),a.animating||(a.animating=!0,a.onTranslateToWrapperTransitionEnd||=function(e){!a||a.destroyed||e.target===this&&(a.wrapperEl.removeEventListener(`transitionend`,a.onTranslateToWrapperTransitionEnd),a.onTranslateToWrapperTransitionEnd=null,delete a.onTranslateToWrapperTransitionEnd,a.animating=!1,n&&a.emit(`transitionEnd`))},a.wrapperEl.addEventListener(`transitionend`,a.onTranslateToWrapperTransitionEnd))),!0}var Ic={getTranslate:jc,setTranslate:Mc,minTranslate:Nc,maxTranslate:Pc,translateTo:Fc};function Lc(e,t){let n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`,n.wrapperEl.style.transitionDelay=e===0?`0ms`:``),n.emit(`setTransition`,e,t)}function Rc({swiper:e,runCallbacks:t,direction:n,step:r}){let{activeIndex:i,previousIndex:a}=e,o=n;o||=i>a?`next`:i<a?`prev`:`reset`,e.emit(`transition${r}`),t&&o===`reset`?e.emit(`slideResetTransition${r}`):t&&i!==a&&(e.emit(`slideChangeTransition${r}`),o===`next`?e.emit(`slideNextTransition${r}`):e.emit(`slidePrevTransition${r}`))}function zc(e=!0,t){let n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),Rc({swiper:n,runCallbacks:e,direction:t,step:`Start`}))}function Bc(e=!0,t){let n=this,{params:r}=n;n.animating=!1,!r.cssMode&&(n.setTransition(0),Rc({swiper:n,runCallbacks:e,direction:t,step:`End`}))}var Vc={setTransition:Lc,transitionStart:zc,transitionEnd:Bc};function Hc(e=0,t,n=!0,r,i){typeof e==`string`&&(e=parseInt(e,10));let a=this,o=e;o<0&&(o=0);let{params:s,snapGrid:c,slidesGrid:l,previousIndex:u,activeIndex:d,rtlTranslate:f,wrapperEl:p,enabled:m}=a;if(!m&&!r&&!i||a.destroyed||a.animating&&s.preventInteractionOnTransition)return!1;t===void 0&&(t=a.params.speed);let h=Math.min(a.params.slidesPerGroupSkip,o),g=h+Math.floor((o-h)/a.params.slidesPerGroup);g>=c.length&&(g=c.length-1);let _=-c[g];if(s.normalizeSlideIndex)for(let e=0;e<l.length;e+=1){let t=-Math.floor(_*100),n=Math.floor(l[e]*100),r=Math.floor(l[e+1]*100);l[e+1]===void 0?t>=n&&(o=e):t>=n&&t<r-(r-n)/2?o=e:t>=n&&t<r&&(o=e+1)}if(a.initialized&&o!==d&&(!a.allowSlideNext&&(f?_>a.translate&&_>a.minTranslate():_<a.translate&&_<a.minTranslate())||!a.allowSlidePrev&&_>a.translate&&_>a.maxTranslate()&&(d||0)!==o))return!1;o!==(u||0)&&n&&a.emit(`beforeSlideChangeStart`),a.updateProgress(_);let v;v=o>d?`next`:o<d?`prev`:`reset`;let y=a.virtual&&a.params.virtual.enabled;if(!(y&&i)&&(f&&-_===a.translate||!f&&_===a.translate))return a.updateActiveIndex(o),s.autoHeight&&a.updateAutoHeight(),a.updateSlidesClasses(),s.effect!==`slide`&&a.setTranslate(_),v!==`reset`&&(a.transitionStart(n,v),a.transitionEnd(n,v)),!1;if(s.cssMode){let e=a.isHorizontal(),n=f?_:-_;if(t===0)y&&(a.wrapperEl.style.scrollSnapType=`none`,a._immediateVirtual=!0),y&&!a._cssModeVirtualInitialSet&&a.params.initialSlide>0?(a._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[e?`scrollLeft`:`scrollTop`]=n})):p[e?`scrollLeft`:`scrollTop`]=n,y&&requestAnimationFrame(()=>{a.wrapperEl.style.scrollSnapType=``,a._immediateVirtual=!1});else{if(!a.support.smoothScroll)return Vs({swiper:a,targetPosition:n,side:e?`left`:`top`}),!0;p.scrollTo({[e?`left`:`top`]:n,behavior:`smooth`})}return!0}let b=dc().isSafari;return y&&!i&&b&&a.isElement&&a.virtual.update(!1,!1,o),a.setTransition(t),a.setTranslate(_),a.updateActiveIndex(o),a.updateSlidesClasses(),a.emit(`beforeTransitionStart`,t,r),a.transitionStart(n,v),t===0?a.transitionEnd(n,v):a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||=function(e){!a||a.destroyed||e.target===this&&(a.wrapperEl.removeEventListener(`transitionend`,a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(n,v))},a.wrapperEl.addEventListener(`transitionend`,a.onSlideToWrapperTransitionEnd)),!0}function Uc(e=0,t,n=!0,r){typeof e==`string`&&(e=parseInt(e,10));let i=this;if(i.destroyed)return;t===void 0&&(t=i.params.speed);let a=i.grid&&i.params.grid&&i.params.grid.rows>1,o=e;if(i.params.loop)if(i.virtual&&i.params.virtual.enabled)o+=i.virtual.slidesBefore;else{let e;if(a){let t=o*i.params.grid.rows;e=i.slides.find(e=>e.getAttribute(`data-swiper-slide-index`)*1===t).column}else e=i.getSlideIndexByData(o);let t=a?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:n,slidesOffsetBefore:s,slidesOffsetAfter:c}=i.params,l=n||!!s||!!c,u=i.params.slidesPerView;u===`auto`?u=i.slidesPerViewDynamic():(u=Math.ceil(parseFloat(i.params.slidesPerView,10)),l&&u%2==0&&(u+=1));let d=t-e<u;if(l&&(d||=e<Math.ceil(u/2)),r&&l&&i.params.slidesPerView!==`auto`&&!a&&(d=!1),d){let n=l?e<i.activeIndex?`prev`:`next`:e-i.activeIndex-1<i.params.slidesPerView?`next`:`prev`;i.loopFix({direction:n,slideTo:!0,activeSlideIndex:n===`next`?e+1:e-t+1,slideRealIndex:n===`next`?i.realIndex:void 0})}if(a){let e=o*i.params.grid.rows;o=i.slides.find(t=>t.getAttribute(`data-swiper-slide-index`)*1===e).column}else o=i.getSlideIndexByData(o)}return requestAnimationFrame(()=>{i.slideTo(o,t,n,r)}),i}function Wc(e,t=!0,n){let r=this,{enabled:i,params:a,animating:o}=r;if(!i||r.destroyed)return r;e===void 0&&(e=r.params.speed);let s=a.slidesPerGroup;a.slidesPerView===`auto`&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(s=Math.max(r.slidesPerViewDynamic(`current`,!0),1));let c=r.activeIndex<a.slidesPerGroupSkip?1:s,l=r.virtual&&a.virtual.enabled;if(a.loop){if(o&&!l&&a.loopPreventsSliding)return!1;if(r.loopFix({direction:`next`}),r._clientLeft=r.wrapperEl.clientLeft,r.activeIndex===r.slides.length-1&&a.cssMode)return requestAnimationFrame(()=>{r.slideTo(r.activeIndex+c,e,t,n)}),!0}return a.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+c,e,t,n)}function Gc(e,t=!0,n){let r=this,{params:i,snapGrid:a,slidesGrid:o,rtlTranslate:s,enabled:c,animating:l}=r;if(!c||r.destroyed)return r;e===void 0&&(e=r.params.speed);let u=r.virtual&&i.virtual.enabled;if(i.loop){if(l&&!u&&i.loopPreventsSliding)return!1;r.loopFix({direction:`prev`}),r._clientLeft=r.wrapperEl.clientLeft}let d=s?r.translate:-r.translate;function f(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}let p=f(d),m=a.map(e=>f(e)),h=i.freeMode&&i.freeMode.enabled,g=a[m.indexOf(p)-1];if(g===void 0&&(i.cssMode||h)){let e;a.forEach((t,n)=>{p>=t&&(e=n)}),e!==void 0&&(g=h?a[e]:a[e>0?e-1:e])}let _=0;if(g!==void 0&&(_=o.indexOf(g),_<0&&(_=r.activeIndex-1),i.slidesPerView===`auto`&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(_=_-r.slidesPerViewDynamic(`previous`,!0)+1,_=Math.max(_,0))),i.rewind&&r.isBeginning){let i=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(i,e,t,n)}else if(i.loop&&r.activeIndex===0&&i.cssMode)return requestAnimationFrame(()=>{r.slideTo(_,e,t,n)}),!0;return r.slideTo(_,e,t,n)}function Kc(e,t=!0,n){let r=this;if(!r.destroyed)return e===void 0&&(e=r.params.speed),r.slideTo(r.activeIndex,e,t,n)}function qc(e,t=!0,n,r=.5){let i=this;if(i.destroyed)return;e===void 0&&(e=i.params.speed);let a=i.activeIndex,o=Math.min(i.params.slidesPerGroupSkip,a),s=o+Math.floor((a-o)/i.params.slidesPerGroup),c=i.rtlTranslate?i.translate:-i.translate;if(c>=i.snapGrid[s]){let e=i.snapGrid[s],t=i.snapGrid[s+1];c-e>(t-e)*r&&(a+=i.params.slidesPerGroup)}else{let e=i.snapGrid[s-1],t=i.snapGrid[s];c-e<=(t-e)*r&&(a-=i.params.slidesPerGroup)}return a=Math.max(a,0),a=Math.min(a,i.slidesGrid.length-1),i.slideTo(a,e,t,n)}function Jc(){let e=this;if(e.destroyed)return;let{params:t,slidesEl:n}=e,r=t.slidesPerView===`auto`?e.slidesPerViewDynamic():t.slidesPerView,i=e.getSlideIndexWhenGrid(e.clickedIndex),a,o=e.isElement?`swiper-slide`:`.${t.slideClass}`,s=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;a=parseInt(e.clickedSlide.getAttribute(`data-swiper-slide-index`),10),t.centeredSlides?e.slideToLoop(a):i>(s?(e.slides.length-r)/2-(e.params.grid.rows-1):e.slides.length-r)?(e.loopFix(),i=e.getSlideIndex(Us(n,`${o}[data-swiper-slide-index="${a}"]`)[0]),Ps(()=>{e.slideTo(i)})):e.slideTo(i)}else e.slideTo(i)}var Yc={slideTo:Hc,slideToLoop:Uc,slideNext:Wc,slidePrev:Gc,slideReset:Kc,slideToClosest:qc,slideToClickedSlide:Jc};function Xc(e,t){let n=this,{params:r,slidesEl:i}=n;if(!r.loop||n.virtual&&n.params.virtual.enabled)return;let a=()=>{Us(i,`.${r.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute(`data-swiper-slide-index`,t)})},o=()=>{let e=Us(i,`.${r.slideBlankClass}`);e.forEach(e=>{e.remove()}),e.length>0&&(n.recalcSlides(),n.updateSlides())},s=n.grid&&r.grid&&r.grid.rows>1;r.loopAddBlankSlides&&(r.slidesPerGroup>1||s)&&o();let c=r.slidesPerGroup*(s?r.grid.rows:1),l=n.slides.length%c!==0,u=s&&n.slides.length%r.grid.rows!==0,d=e=>{for(let t=0;t<e;t+=1){let e=n.isElement?qs(`swiper-slide`,[r.slideBlankClass]):qs(`div`,[r.slideClass,r.slideBlankClass]);n.slidesEl.append(e)}};l?(r.loopAddBlankSlides?(d(c-n.slides.length%c),n.recalcSlides(),n.updateSlides()):Ks(`Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)`),a()):(u&&(r.loopAddBlankSlides?(d(r.grid.rows-n.slides.length%r.grid.rows),n.recalcSlides(),n.updateSlides()):Ks(`Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)`)),a());let f=r.centeredSlides||!!r.slidesOffsetBefore||!!r.slidesOffsetAfter;n.loopFix({slideRealIndex:e,direction:f?void 0:`next`,initial:t})}function Zc({slideRealIndex:e,slideTo:t=!0,direction:n,setTranslate:r,activeSlideIndex:i,initial:a,byController:o,byMousewheel:s}={}){let c=this;if(!c.params.loop)return;c.emit(`beforeLoopFix`);let{slides:l,allowSlidePrev:u,allowSlideNext:d,slidesEl:f,params:p}=c,{centeredSlides:m,slidesOffsetBefore:h,slidesOffsetAfter:g,initialSlide:_}=p,v=m||!!h||!!g;if(c.allowSlidePrev=!0,c.allowSlideNext=!0,c.virtual&&p.virtual.enabled){t&&(!v&&c.snapIndex===0?c.slideTo(c.virtual.slides.length,0,!1,!0):v&&c.snapIndex<p.slidesPerView?c.slideTo(c.virtual.slides.length+c.snapIndex,0,!1,!0):c.snapIndex===c.snapGrid.length-1&&c.slideTo(c.virtual.slidesBefore,0,!1,!0)),c.allowSlidePrev=u,c.allowSlideNext=d,c.emit(`loopFix`);return}let y=p.slidesPerView;y===`auto`?y=c.slidesPerViewDynamic():(y=Math.ceil(parseFloat(p.slidesPerView,10)),v&&y%2==0&&(y+=1));let b=p.slidesPerGroupAuto?y:p.slidesPerGroup,x=v?Math.max(b,Math.ceil(y/2)):b;x%b!==0&&(x+=b-x%b),x+=p.loopAdditionalSlides,c.loopedSlides=x;let S=c.grid&&p.grid&&p.grid.rows>1;l.length<y+x||c.params.effect===`cards`&&l.length<y+x*2?Ks(`Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters`):S&&p.grid.fill===`row`&&Ks("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");let C=[],w=[],T=S?Math.ceil(l.length/p.grid.rows):l.length,E=a&&T-_<y&&!v,D=E?_:c.activeIndex;i===void 0?i=c.getSlideIndex(l.find(e=>e.classList.contains(p.slideActiveClass))):D=i;let ee=n===`next`||!n,te=n===`prev`||!n,O=0,k=0,A=(S?l[i].column:i)+(v&&r===void 0?-y/2+.5:0);if(A<x){O=Math.max(x-A,b);for(let e=0;e<x-A;e+=1){let t=e-Math.floor(e/T)*T;if(S){let e=T-t-1;for(let t=l.length-1;t>=0;--t)l[t].column===e&&C.push(t)}else C.push(T-t-1)}}else if(A+y>T-x){k=Math.max(A-(T-x*2),b),E&&(k=Math.max(k,y-T+_+1));for(let e=0;e<k;e+=1){let t=e-Math.floor(e/T)*T;S?l.forEach((e,n)=>{e.column===t&&w.push(n)}):w.push(t)}}if(c.__preventObserver__=!0,requestAnimationFrame(()=>{c.__preventObserver__=!1}),c.params.effect===`cards`&&l.length<y+x*2&&(w.includes(i)&&w.splice(w.indexOf(i),1),C.includes(i)&&C.splice(C.indexOf(i),1)),te&&C.forEach(e=>{l[e].swiperLoopMoveDOM=!0,f.prepend(l[e]),l[e].swiperLoopMoveDOM=!1}),ee&&w.forEach(e=>{l[e].swiperLoopMoveDOM=!0,f.append(l[e]),l[e].swiperLoopMoveDOM=!1}),c.recalcSlides(),p.slidesPerView===`auto`?c.updateSlides():S&&(C.length>0&&te||w.length>0&&ee)&&c.slides.forEach((e,t)=>{c.grid.updateSlide(t,e,c.slides)}),p.watchSlidesProgress&&c.updateSlidesOffset(),t){if(C.length>0&&te){if(e===void 0){let e=c.slidesGrid[D],t=c.slidesGrid[D+O]-e;s?c.setTranslate(c.translate-t):(c.slideTo(D+Math.ceil(O),0,!1,!0),r&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-t,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-t))}else if(r){let e=S?C.length/p.grid.rows:C.length;c.slideTo(c.activeIndex+e,0,!1,!0),c.touchEventsData.currentTranslate=c.translate}}else if(w.length>0&&ee)if(e===void 0){let e=c.slidesGrid[D],t=c.slidesGrid[D-k]-e;s?c.setTranslate(c.translate-t):(c.slideTo(D-k,0,!1,!0),r&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-t,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-t))}else{let e=S?w.length/p.grid.rows:w.length;c.slideTo(c.activeIndex-e,0,!1,!0)}}if(c.allowSlidePrev=u,c.allowSlideNext=d,c.controller&&c.controller.control&&!o){let a={slideRealIndex:e,direction:n,setTranslate:r,activeSlideIndex:i,byController:!0};Array.isArray(c.controller.control)?c.controller.control.forEach(e=>{!e.destroyed&&e.params.loop&&e.loopFix({...a,slideTo:e.params.slidesPerView===p.slidesPerView?t:!1})}):c.controller.control instanceof c.constructor&&c.controller.control.params.loop&&c.controller.control.loopFix({...a,slideTo:c.controller.control.params.slidesPerView===p.slidesPerView?t:!1})}c.emit(`loopFix`)}function Qc(){let e=this,{params:t,slidesEl:n}=e;if(!t.loop||!n||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();let r=[];e.slides.forEach(e=>{let t=e.swiperSlideIndex===void 0?e.getAttribute(`data-swiper-slide-index`)*1:e.swiperSlideIndex;r[t]=e}),e.slides.forEach(e=>{e.removeAttribute(`data-swiper-slide-index`)}),r.forEach(e=>{n.append(e)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}var $c={loopCreate:Xc,loopFix:Zc,loopDestroy:Qc};function el(e){let t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;let n=t.params.touchEventsTarget===`container`?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor=`move`,n.style.cursor=e?`grabbing`:`grab`,t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function tl(){let e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget===`container`?`el`:`wrapperEl`].style.cursor=``,e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}var nl={setGrabCursor:el,unsetGrabCursor:tl};function rl(e,t=this){function n(t){if(!t||t===As()||t===J())return null;t.assignedSlot&&(t=t.assignedSlot);let r=t.closest(e);return!r&&!t.getRootNode?null:r||n(t.getRootNode().host)}return n(t)}function il(e,t,n){let r=J(),{params:i}=e,a=i.edgeSwipeDetection,o=i.edgeSwipeThreshold;return a&&(n<=o||n>=r.innerWidth-o)?a===`prevent`?(t.preventDefault(),!0):!1:!0}function al(e){let t=this;if(t.destroyed)return;let n=As(),r=e;r.originalEvent&&(r=r.originalEvent);let i=t.touchEventsData;if(r.type===`pointerdown`){if(i.pointerId!==null&&i.pointerId!==r.pointerId)return;i.pointerId=r.pointerId}else r.type===`touchstart`&&r.targetTouches.length===1&&(i.touchId=r.targetTouches[0].identifier);if(r.type===`touchstart`){il(t,r,r.targetTouches[0].pageX);return}let{params:a,touches:o,enabled:s}=t;if(!s||!a.simulateTouch&&r.pointerType===`mouse`||t.animating&&a.preventInteractionOnTransition)return;!t.animating&&a.cssMode&&a.loop&&t.loopFix();let c=r.target;if(a.touchEventsTarget===`wrapper`&&!Gs(c,t.wrapperEl)||`which`in r&&r.which===3||`button`in r&&r.button>0||i.isTouched&&i.isMoved)return;let l=!!a.noSwipingClass&&a.noSwipingClass!==``,u=r.composedPath?r.composedPath():r.path;l&&r.target&&r.target.shadowRoot&&u&&(c=u[0]);let d=a.noSwipingSelector?a.noSwipingSelector:`.${a.noSwipingClass}`,f=!!(r.target&&r.target.shadowRoot);if(a.noSwiping&&(f?rl(d,c):c.closest(d))){t.allowClick=!0;return}if(a.swipeHandler&&!c.closest(a.swipeHandler))return;o.currentX=r.pageX,o.currentY=r.pageY;let p=o.currentX,m=o.currentY;if(!il(t,r,p))return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=p,o.startY=m,i.touchStartTime=Fs(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,a.threshold>0&&(i.allowThresholdMove=!1);let h=!0;c.matches(i.focusableElements)&&(h=!1,c.nodeName===`SELECT`&&(i.isTouched=!1)),n.activeElement&&n.activeElement.matches(i.focusableElements)&&n.activeElement!==c&&(r.pointerType===`mouse`||r.pointerType!==`mouse`&&!c.matches(i.focusableElements))&&n.activeElement.blur();let g=h&&t.allowTouchMove&&a.touchStartPreventDefault;(a.touchStartForcePreventDefault||g)&&!c.isContentEditable&&r.preventDefault(),a.freeMode&&a.freeMode.enabled&&t.freeMode&&t.animating&&!a.cssMode&&t.freeMode.onTouchStart(),t.emit(`touchStart`,r)}function ol(e){let t=As(),n=this;if(n.destroyed)return;let r=n.touchEventsData,{params:i,touches:a,rtlTranslate:o,enabled:s}=n;if(!s||!i.simulateTouch&&e.pointerType===`mouse`)return;let c=e;if(c.originalEvent&&(c=c.originalEvent),c.type===`pointermove`&&(r.touchId!==null||c.pointerId!==r.pointerId))return;let l;if(c.type===`touchmove`){if(l=[...c.changedTouches].find(e=>e.identifier===r.touchId),!l||l.identifier!==r.touchId)return}else l=c;if(!r.isTouched){r.startMoving&&r.isScrolling&&n.emit(`touchMoveOpposite`,c);return}let u=l.pageX,d=l.pageY;if(c.preventedByNestedSwiper){a.startX=u,a.startY=d;return}if(!n.allowTouchMove){c.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(a,{startX:u,startY:d,currentX:u,currentY:d}),r.touchStartTime=Fs());return}if(i.touchReleaseOnEdges&&!i.loop){if(n.isVertical()){if(d<a.startY&&n.translate<=n.maxTranslate()||d>a.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(o&&(u>a.startX&&-n.translate<=n.maxTranslate()||u<a.startX&&-n.translate>=n.minTranslate()))return;else if(!o&&(u<a.startX&&n.translate<=n.maxTranslate()||u>a.startX&&n.translate>=n.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(r.focusableElements)&&t.activeElement!==c.target&&c.pointerType!==`mouse`&&t.activeElement.blur(),t.activeElement&&c.target===t.activeElement&&c.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}r.allowTouchCallbacks&&n.emit(`touchMove`,c),a.previousX=a.currentX,a.previousY=a.currentY,a.currentX=u,a.currentY=d;let f=a.currentX-a.startX,p=a.currentY-a.startY;if(n.params.threshold&&Math.sqrt(f**2+p**2)<n.params.threshold)return;if(r.isScrolling===void 0){let e;n.isHorizontal()&&a.currentY===a.startY||n.isVertical()&&a.currentX===a.startX?r.isScrolling=!1:f*f+p*p>=25&&(e=Math.atan2(Math.abs(p),Math.abs(f))*180/Math.PI,r.isScrolling=n.isHorizontal()?e>i.touchAngle:90-e>i.touchAngle)}if(r.isScrolling&&n.emit(`touchMoveOpposite`,c),r.startMoving===void 0&&(a.currentX!==a.startX||a.currentY!==a.startY)&&(r.startMoving=!0),r.isScrolling||c.type===`touchmove`&&r.preventTouchMoveFromPointerMove){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!i.cssMode&&c.cancelable&&c.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&c.stopPropagation();let m=n.isHorizontal()?f:p,h=n.isHorizontal()?a.currentX-a.previousX:a.currentY-a.previousY;i.oneWayMovement&&(m=Math.abs(m)*(o?1:-1),h=Math.abs(h)*(o?1:-1)),a.diff=m,m*=i.touchRatio,o&&(m=-m,h=-h);let g=n.touchesDirection;n.swipeDirection=m>0?`prev`:`next`,n.touchesDirection=h>0?`prev`:`next`;let _=n.params.loop&&!i.cssMode,v=n.touchesDirection===`next`&&n.allowSlideNext||n.touchesDirection===`prev`&&n.allowSlidePrev;if(!r.isMoved){if(_&&v&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){let e=new window.CustomEvent(`transitionend`,{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});n.wrapperEl.dispatchEvent(e)}r.allowMomentumBounce=!1,i.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit(`sliderFirstMove`,c)}if(new Date().getTime(),i._loopSwapReset!==!1&&r.isMoved&&r.allowThresholdMove&&g!==n.touchesDirection&&_&&v&&Math.abs(m)>=1){Object.assign(a,{startX:u,startY:d,currentX:u,currentY:d,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,r.startTranslate=r.currentTranslate;return}n.emit(`sliderMove`,c),r.isMoved=!0,r.currentTranslate=m+r.startTranslate;let y=!0,b=i.resistanceRatio;if(i.touchReleaseOnEdges&&(b=0),m>0?(_&&v&&r.allowThresholdMove&&r.currentTranslate>(i.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-(i.slidesPerView!==`auto`&&n.slides.length-i.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:`prev`,setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(y=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+m)**b))):m<0&&(_&&v&&r.allowThresholdMove&&r.currentTranslate<(i.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+(i.slidesPerView!==`auto`&&n.slides.length-i.slidesPerView>=2?n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween:0):n.maxTranslate())&&n.loopFix({direction:`next`,setTranslate:!0,activeSlideIndex:n.slides.length-(i.slidesPerView===`auto`?n.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),r.currentTranslate<n.maxTranslate()&&(y=!1,i.resistance&&(r.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-r.startTranslate-m)**b))),y&&(c.preventedByNestedSwiper=!0),!n.allowSlideNext&&n.swipeDirection===`next`&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&n.swipeDirection===`prev`&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),i.threshold>0)if(Math.abs(m)>i.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,r.currentTranslate=r.startTranslate,a.diff=n.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY;return}}else{r.currentTranslate=r.startTranslate;return}!i.followFinger||i.cssMode||((i.freeMode&&i.freeMode.enabled&&n.freeMode||i.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function sl(e){let t=this;if(t.destroyed)return;let n=t.touchEventsData,r=e;r.originalEvent&&(r=r.originalEvent);let i;if(!(r.type===`touchend`||r.type===`touchcancel`)){if(n.touchId!==null||r.pointerId!==n.pointerId)return;i=r}else if(i=[...r.changedTouches].find(e=>e.identifier===n.touchId),!i||i.identifier!==n.touchId)return;if([`pointercancel`,`pointerout`,`pointerleave`,`contextmenu`].includes(r.type)&&!([`pointercancel`,`contextmenu`].includes(r.type)&&(t.browser.isSafari||t.browser.isWebView)))return;n.pointerId=null,n.touchId=null;let{params:a,touches:o,rtlTranslate:s,slidesGrid:c,enabled:l}=t;if(!l||!a.simulateTouch&&r.pointerType===`mouse`)return;if(n.allowTouchCallbacks&&t.emit(`touchEnd`,r),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&a.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}a.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);let u=Fs(),d=u-n.touchStartTime;if(t.allowClick){let e=r.path||r.composedPath&&r.composedPath();t.updateClickedSlide(e&&e[0]||r.target,e),t.emit(`tap click`,r),d<300&&u-n.lastClickTime<300&&t.emit(`doubleTap doubleClick`,r)}if(n.lastClickTime=Fs(),Ps(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||o.diff===0&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let f;if(f=a.followFinger?s?t.translate:-t.translate:-n.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:f});return}let p=f>=-t.maxTranslate()&&!t.params.loop,m=0,h=t.slidesSizesGrid[0];for(let e=0;e<c.length;e+=e<a.slidesPerGroupSkip?1:a.slidesPerGroup){let t=e<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;c[e+t]===void 0?(p||f>=c[e])&&(m=e,h=c[c.length-1]-c[c.length-2]):(p||f>
7=c[e]&&f<c[e+t])&&(m=e,h=c[e+t]-c[e])}let g=null,_=null;a.rewind&&(t.isBeginning?_=a.virtual&&a.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(g=0));let v=(f-c[m])/h,y=m<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(d>a.longSwipesMs){if(!a.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection===`next`&&(v>=a.longSwipesRatio?t.slideTo(a.rewind&&t.isEnd?g:m+y):t.slideTo(m)),t.swipeDirection===`prev`&&(v>1-a.longSwipesRatio?t.slideTo(m+y):_!==null&&v<0&&Math.abs(v)>a.longSwipesRatio?t.slideTo(_):t.slideTo(m))}else{if(!a.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(r.target===t.navigation.nextEl||r.target===t.navigation.prevEl)?r.target===t.navigation.nextEl?t.slideTo(m+y):t.slideTo(m):(t.swipeDirection===`next`&&t.slideTo(g===null?m+y:g),t.swipeDirection===`prev`&&t.slideTo(_===null?m:_))}}function cl(){let e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();let{allowSlideNext:r,allowSlidePrev:i,snapGrid:a}=e,o=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();let s=o&&t.loop;if((t.slidesPerView===`auto`||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!s){let t=o?e.virtual.slides:e.slides;e.slideTo(t.length-1,0,!1,!0)}else e.params.loop&&!o?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0);e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&a!==e.snapGrid&&e.checkOverflow()}function ll(e){let t=this;t.destroyed||t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function ul(){let e=this;if(e.destroyed)return;let{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let i,a=e.maxTranslate()-e.minTranslate();i=a===0?0:(e.translate-e.minTranslate())/a,i!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit(`setTranslate`,e.translate,!1)}function dl(e){let t=this;t.destroyed||(wc(t,e.target),!(t.params.cssMode||t.params.slidesPerView!==`auto`&&!t.params.autoHeight)&&t.update())}function fl(){let e=this;e.destroyed||e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction=`auto`))}var pl=(e,t)=>{let n=As(),{params:r,el:i,wrapperEl:a,device:o}=e,s=!!r.nested,c=t===`on`?`addEventListener`:`removeEventListener`,l=t;!i||typeof i==`string`||(n[c](`touchstart`,e.onDocumentTouchStart,{passive:!1,capture:s}),i[c](`touchstart`,e.onTouchStart,{passive:!1}),i[c](`pointerdown`,e.onTouchStart,{passive:!1}),n[c](`touchmove`,e.onTouchMove,{passive:!1,capture:s}),n[c](`pointermove`,e.onTouchMove,{passive:!1,capture:s}),n[c](`touchend`,e.onTouchEnd,{passive:!0}),n[c](`pointerup`,e.onTouchEnd,{passive:!0}),n[c](`pointercancel`,e.onTouchEnd,{passive:!0}),n[c](`touchcancel`,e.onTouchEnd,{passive:!0}),n[c](`pointerout`,e.onTouchEnd,{passive:!0}),n[c](`pointerleave`,e.onTouchEnd,{passive:!0}),n[c](`contextmenu`,e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&i[c](`click`,e.onClick,!0),r.cssMode&&a[c](`scroll`,e.onScroll),r.updateOnWindowResize?e[l](o.ios||o.android?`resize orientationchange observerUpdate`:`resize observerUpdate`,cl,!0):e[l](`observerUpdate`,cl,!0),i[c](`load`,e.onLoad,{capture:!0}))};function ml(){let e=this,{params:t}=e;e.onTouchStart=al.bind(e),e.onTouchMove=ol.bind(e),e.onTouchEnd=sl.bind(e),e.onDocumentTouchStart=fl.bind(e),t.cssMode&&(e.onScroll=ul.bind(e)),e.onClick=ll.bind(e),e.onLoad=dl.bind(e),pl(e,`on`)}function hl(){pl(this,`off`)}var gl={attachEvents:ml,detachEvents:hl},_l=(e,t)=>
vendor: 13,637 bytes, line 7
7e.grid&&t.grid&&t.grid.rows>1;function vl(){let e=this,{realIndex:t,initialized:n,params:r,el:i}=e,a=r.breakpoints;if(!a||a&&Object.keys(a).length===0)return;let o=As(),s=r.breakpointsBase===`window`||!r.breakpointsBase?r.breakpointsBase:`container`,c=[`window`,`container`].includes(r.breakpointsBase)||!r.breakpointsBase?e.el:o.querySelector(r.breakpointsBase),l=e.getBreakpoint(a,s,c);if(!l||e.currentBreakpoint===l)return;let u=(l in a?a[l]:void 0)||e.originalParams,d=_l(e,r),f=_l(e,u),p=e.params.grabCursor,m=u.grabCursor,h=r.enabled;d&&!f?(i.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!d&&f&&(i.classList.add(`${r.containerModifierClass}grid`),(u.grid.fill&&u.grid.fill===`column`||!u.grid.fill&&r.grid.fill===`column`)&&i.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),p&&!m?e.unsetGrabCursor():!p&&m&&e.setGrabCursor(),[`navigation`,`pagination`,`scrollbar`].forEach(t=>{if(u[t]===void 0)return;let n=r[t]&&r[t].enabled,i=u[t]&&u[t].enabled;n&&!i&&e[t].disable(),!n&&i&&e[t].enable()});let g=u.direction&&u.direction!==r.direction,_=r.loop&&(u.slidesPerView!==r.slidesPerView||g),v=r.loop;g&&n&&e.changeDirection(),Y(e.params,u);let y=e.params.enabled,b=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),h&&!y?e.disable():!h&&y&&e.enable(),e.currentBreakpoint=l,e.emit(`_beforeBreakpoint`,u),n&&(_?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!v&&b?(e.loopCreate(t),e.updateSlides()):v&&!b&&e.loopDestroy()),e.emit(`breakpoint`,u)}function yl(e,t=`window`,n){if(!e||t===`container`&&!n)return;let r=!1,i=J(),a=t===`window`?i.innerHeight:n.clientHeight,o=Object.keys(e).map(e=>typeof e==`string`&&e.indexOf(`@`)===0?{value:a*parseFloat(e.substr(1)),point:e}:{value:e,point:e});o.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;e<o.length;e+=1){let{point:a,value:s}=o[e];t===`window`?i.matchMedia(`(min-width: ${s}px)`).matches&&(r=a):s<=n.clientWidth&&(r=a)}return r||`max`}var bl={setBreakpoint:vl,getBreakpoint:yl};function xl(e,t){let n=[];return e.forEach(e=>{typeof e==`object`?Object.keys(e).forEach(r=>{e[r]&&n.push(t+r)}):typeof e==`string`&&n.push(t+e)}),n}function Sl(){let e=this,{classNames:t,params:n,rtl:r,el:i,device:a}=e,o=xl([`initialized`,n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill===`column`},{android:a.android},{ios:a.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...o),i.classList.add(...t),e.emitContainerClasses()}function Cl(){let e=this,{el:t,classNames:n}=e;!t||typeof t==`string`||(t.classList.remove(...n),e.emitContainerClasses())}var wl={addClasses:Sl,removeClasses:Cl};function Tl(){let e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){let t=e.slides.length-1,n=e.slidesGrid[t]+e.slidesSizesGrid[t]+r*2;e.isLocked=e.size>n}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?`lock`:`unlock`)}var El={checkOverflow:Tl},Dl={init:!0,direction:`horizontal`,oneWayMovement:!1,swiperElementNodeName:`SWIPER-CONTAINER`,touchEventsTarget:`wrapper`,initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:`swiper`,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,snapToSlideEdge:!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,loopAddBlankSlides:!0,loopAdditionalSlides:0,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`,slideBlankClass:`swiper-slide-blank`,slideActiveClass:`swiper-slide-active`,slideVisibleClass:`swiper-slide-visible`,slideFullyVisibleClass:`swiper-slide-fully-visible`,slideNextClass:`swiper-slide-next`,slidePrevClass:`swiper-slide-prev`,wrapperClass:`swiper-wrapper`,lazyPreloaderClass:`swiper-lazy-preloader`,lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Ol(e,t){return function(n={}){let r=Object.keys(n)[0],i=n[r];if(typeof i!=`object`||!i){Y(t,n);return}if(e[r]===!0&&(e[r]={enabled:!0}),r===`navigation`&&e[r]&&e[r].enabled&&!e[r].prevEl&&!e[r].nextEl&&(e[r].auto=!0),[`pagination`,`scrollbar`].indexOf(r)>=0&&e[r]&&e[r].enabled&&!e[r].el&&(e[r].auto=!0),!(r in e&&`enabled`in i)){Y(t,n);return}typeof e[r]==`object`&&!(`enabled`in e[r])&&(e[r].enabled=!0),e[r]||(e[r]={enabled:!1}),Y(t,n)}}var kl={eventsEmitter:mc,update:Ac,translate:Ic,transition:Vc,slide:Yc,loop:$c,grabCursor:nl,events:gl,breakpoints:bl,checkOverflow:El,classes:wl},Al={},jl=class e{constructor(...t){let n,r;t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)===`Object`?r=t[0]:[n,r]=t,r||={},r=Y({},r),n&&!r.el&&(r.el=n);let i=As();if(r.el&&typeof r.el==`string`&&i.querySelectorAll(r.el).length>1){let t=[];return i.querySelectorAll(r.el).forEach(n=>{let i=Y({},r,{el:n});t.push(new e(i))}),t}let a=this;a.__swiper__=!0,a.support=ac(),a.device=cc({userAgent:r.userAgent}),a.browser=dc(),a.eventsListeners={},a.eventsAnyListeners=[],a.modules=[...a.__modules__],r.modules&&Array.isArray(r.modules)&&r.modules.forEach(e=>{typeof e==`function`&&a.modules.indexOf(e)<0&&a.modules.push(e)});let o={};return a.modules.forEach(e=>{e({params:r,swiper:a,extendParams:Ol(r,o),on:a.on.bind(a),once:a.once.bind(a),off:a.off.bind(a),emit:a.emit.bind(a)})}),a.params=Y({},Y({},Dl,o),Al,r),a.originalParams=Y({},a.params),a.passedParams=Y({},r),a.params&&a.params.on&&Object.keys(a.params.on).forEach(e=>{a.on(e,a.params.on[e])}),a.params&&a.params.onAny&&a.onAny(a.params.onAny),Object.assign(a,{enabled:a.params.enabled,el:n,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return a.params.direction===`horizontal`},isVertical(){return a.params.direction===`vertical`},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.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:a.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.emit(`_swiper`),a.params.init&&a.init(),a}getDirectionLabel(e){return this.isHorizontal()?e:{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`}[e]}getSlideIndex(e){let{slidesEl:t,params:n}=this,r=Qs(Us(t,`.${n.slideClass}, swiper-slide`)[0]);return Qs(e)-r}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(t=>t.getAttribute(`data-swiper-slide-index`)*1===e))}getSlideIndexWhenGrid(e){return this.grid&&this.params.grid&&this.params.grid.rows>1&&(this.params.grid.fill===`column`?e=Math.floor(e/this.params.grid.rows):this.params.grid.fill===`row`&&(e%=Math.ceil(this.slides.length/this.params.grid.rows))),e}recalcSlides(){let e=this,{slidesEl:t,params:n}=e;e.slides=Us(t,`.${n.slideClass}, swiper-slide`)}enable(){let e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit(`enable`))}disable(){let e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit(`disable`))}setProgress(e,t){let n=this;e=Math.min(Math.max(e,0),1);let r=n.minTranslate(),i=(n.maxTranslate()-r)*e+r;n.translateTo(i,t===void 0?0:t),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let t=e.el.className.split(` `).filter(t=>t.indexOf(`swiper`)===0||t.indexOf(e.params.containerModifierClass)===0);e.emit(`_containerClasses`,t.join(` `))}getSlideClasses(e){let t=this;return t.destroyed?``:e.className.split(` `).filter(e=>e.indexOf(`swiper-slide`)===0||e.indexOf(t.params.slideClass)===0).join(` `)}emitSlidesClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let t=[];e.slides.forEach(n=>{let r=e.getSlideClasses(n);t.push({slideEl:n,classNames:r}),e.emit(`_slideClass`,n,r)}),e.emit(`_slideClasses`,t)}slidesPerViewDynamic(e=`current`,t=!1){let{params:n,slides:r,slidesGrid:i,slidesSizesGrid:a,size:o,activeIndex:s}=this,c=1;if(typeof n.slidesPerView==`number`)return n.slidesPerView;if(n.centeredSlides){let e=r[s]?Math.ceil(r[s].swiperSlideSize):0,t;for(let n=s+1;n<r.length;n+=1)r[n]&&!t&&(e+=Math.ceil(r[n].swiperSlideSize),c+=1,e>o&&(t=!0));for(let n=s-1;n>=0;--n)r[n]&&!t&&(e+=r[n].swiperSlideSize,c+=1,e>o&&(t=!0))}else if(e===`current`)for(let e=s+1;e<r.length;e+=1)(t?i[e]+a[e]-i[s]<o:i[e]-i[s]<o)&&(c+=1);else for(let e=s-1;e>=0;--e)i[s]-i[e]<o&&(c+=1);return c}update(){let e=this;if(!e||e.destroyed)return;let{snapGrid:t,params:n}=e;n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll(`[loading="lazy"]`)].forEach(t=>{t.complete&&wc(e,t)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function r(){let t=e.rtlTranslate?e.translate*-1:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}let i;if(n.freeMode&&n.freeMode.enabled&&!n.cssMode)r(),n.autoHeight&&e.updateAutoHeight();else{if((n.slidesPerView===`auto`||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){let t=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;i=e.slideTo(t.length-1,0,!1,!0)}else i=e.slideTo(e.activeIndex,0,!1,!0);i||r()}n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit(`update`)}changeDirection(e,t=!0){let n=this,r=n.params.direction;return e||=r===`horizontal`?`vertical`:`horizontal`,e===r||e!==`horizontal`&&e!==`vertical`?n:(n.el.classList.remove(`${n.params.containerModifierClass}${r}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(t=>{e===`vertical`?t.style.width=``:t.style.height=``}),n.emit(`changeDirection`),t&&n.update(),n)}changeLanguageDirection(e){let t=this;t.rtl&&e===`rtl`||!t.rtl&&e===`ltr`||(t.rtl=e===`rtl`,t.rtlTranslate=t.params.direction===`horizontal`&&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){let t=this;if(t.mounted)return!0;let n=e||t.params.el;if(typeof n==`string`&&(n=document.querySelector(n)),!n)return!1;n.swiper=t,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);let r=()=>`.${(t.params.wrapperClass||``).trim().split(` `).join(`.`)}`,i=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(r()):Us(n,r())[0];return!i&&t.params.createElements&&(i=qs(`div`,t.params.wrapperClass),n.append(i),Us(n,`.${t.params.slideClass}`).forEach(e=>{i.append(e)})),Object.assign(t,{el:n,wrapperEl:i,slidesEl:t.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:i,hostEl:t.isElement?n.parentNode.host:n,mounted:!0,rtl:n.dir.toLowerCase()===`rtl`||Zs(n,`direction`)===`rtl`,rtlTranslate:t.params.direction===`horizontal`&&(n.dir.toLowerCase()===`rtl`||Zs(n,`direction`)===`rtl`),wrongRTL:Zs(i,`display`)===`-webkit-box`}),!0}init(e){let t=this;if(t.initialized||t.mount(e)===!1)return t;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(void 0,!0),t.attachEvents();let n=[...t.el.querySelectorAll(`[loading="lazy"]`)];return t.isElement&&n.push(...t.hostEl.querySelectorAll(`[loading="lazy"]`)),n.forEac
7h(e=>{e.complete?wc(t,e):e.addEventListener(`load`,e=>{wc(t,e.target)})}),Ec(t),t.initialized=!0,Ec(t),t.emit(`init`),t.emit(`afterInit`),t}destroy(e=!0,t=!0){let n=this,{params:r,el:i,wrapperEl:a,slides:o}=n;return n.params===void 0||n.destroyed?null:(n.emit(`beforeDestroy`),n.initialized=!1,n.detachEvents(),r.loop&&n.loopDestroy(),t&&(n.removeClasses(),i&&typeof i!=`string`&&i.removeAttribute(`style`),a&&a.removeAttribute(`style`),o&&o.length&&o.forEach(e=>{e.classList.remove(r.slideVisibleClass,r.slideFullyVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),e.removeAttribute(`style`),e.removeAttribute(`data-swiper-slide-index`)})),n.emit(`destroy`),Object.keys(n.eventsListeners).forEach(e=>{n.off(e)}),e!==!1&&(n.el&&typeof n.el!=`string`&&(n.el.swiper=null),Ns(n)),n.destroyed=!0,null)}static extendDefaults(e){Y(Al,e)}static get extendedDefaults(){return Al}static get defaults(){return Dl}static installModule(t){e.prototype.__modules__||(e.prototype.__modules__=[]);let n=e.prototype.__modules__;typeof t==`function`&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(t=>e.installModule(t)),e):(e.installModule(t),e)}};Object.keys(kl).forEach(e=>
vendor: 8,818 bytes, line 7
7{Object.keys(kl[e]).forEach(t=>{jl.prototype[t]=kl[e][t]})}),jl.use([fc,pc]);function Ml({swiper:e,extendParams:t,on:n,emit:r}){let i=As(),a=J();e.keyboard={enabled:!1},t({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0,speed:void 0}});function o(t){if(!e.enabled)return;let{rtlTranslate:n}=e,o=t;o.originalEvent&&(o=o.originalEvent);let s=o.keyCode||o.charCode,c=e.params.keyboard.pageUpDown,l=c&&s===33,u=c&&s===34,d=s===37,f=s===39,p=s===38,m=s===40;if(!e.allowSlideNext&&(e.isHorizontal()&&f||e.isVertical()&&m||u)||!e.allowSlidePrev&&(e.isHorizontal()&&d||e.isVertical()&&p||l))return!1;if(o.shiftKey||o.altKey||o.ctrlKey||o.metaKey||i.activeElement&&(i.activeElement.isContentEditable||i.activeElement.nodeName&&(i.activeElement.nodeName.toLowerCase()===`input`||i.activeElement.nodeName.toLowerCase()===`textarea`)))return;if(e.params.keyboard.onlyInViewport&&(l||u||d||f||p||m)){let t=!1;if($s(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&$s(e.el,`.${e.params.slideActiveClass}`).length===0)return;let r=e.el,i=r.clientWidth,o=r.clientHeight,s=a.innerWidth,c=a.innerHeight,l=Js(r);n&&(l.left-=r.scrollLeft);let u=[[l.left,l.top],[l.left+i,l.top],[l.left,l.top+o],[l.left+i,l.top+o]];for(let e=0;e<u.length;e+=1){let n=u[e];if(n[0]>=0&&n[0]<=s&&n[1]>=0&&n[1]<=c){if(n[0]===0&&n[1]===0)continue;t=!0}}if(!t)return}let h=e.params.keyboard.speed;e.isHorizontal()?((l||u||d||f)&&(o.preventDefault?o.preventDefault():o.returnValue=!1),((u||f)&&!n||(l||d)&&n)&&e.slideNext(h),((l||d)&&!n||(u||f)&&n)&&e.slidePrev(h)):((l||u||p||m)&&(o.preventDefault?o.preventDefault():o.returnValue=!1),(u||m)&&e.slideNext(h),(l||p)&&e.slidePrev(h)),r(`keyPress`,s)}function s(){e.keyboard.enabled||(i.addEventListener(`keydown`,o),e.keyboard.enabled=!0)}function c(){e.keyboard.enabled&&(i.removeEventListener(`keydown`,o),e.keyboard.enabled=!1)}n(`init`,()=>{e.params.keyboard.enabled&&s()}),n(`destroy`,()=>{e.keyboard.enabled&&c()}),Object.assign(e.keyboard,{enable:s,disable:c})}function Nl(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(i=>{if(!n[i]&&n.auto===!0){let a=Us(e.el,`.${r[i]}`)[0];a||(a=qs(`div`,r[i]),a.className=r[i],e.el.append(a)),n[i]=a,t[i]=a}}),n}var Pl=`<svg class="swiper-navigation-icon" width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>`;function Fl({swiper:e,extendParams:t,on:n,emit:r}){t({navigation:{nextEl:null,prevEl:null,addIcons:!0,hideOnClick:!1,disabledClass:`swiper-button-disabled`,hiddenClass:`swiper-button-hidden`,lockClass:`swiper-button-lock`,navigationDisabledClass:`swiper-navigation-disabled`}}),e.navigation={nextEl:null,prevEl:null,arrowSvg:Pl};function i(t){let n;return t&&typeof t==`string`&&e.isElement&&(n=e.el.querySelector(t)||e.hostEl.querySelector(t),n)?n:(t&&(typeof t==`string`&&(n=[...document.querySelectorAll(t)]),e.params.uniqueNavElements&&typeof t==`string`&&n&&n.length>1&&e.el.querySelectorAll(t).length===1?n=e.el.querySelector(t):n&&n.length===1&&(n=n[0])),t&&!n?t:n)}function a(t,n){let r=e.params.navigation;t=X(t),t.forEach(t=>{t&&(t.classList[n?`add`:`remove`](...r.disabledClass.split(` `)),t.tagName===`BUTTON`&&(t.disabled=n),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?`add`:`remove`](r.lockClass))})}function o(){let{nextEl:t,prevEl:n}=e.navigation;if(e.params.loop){a(n,!1),a(t,!1);return}a(n,e.isBeginning&&!e.params.rewind),a(t,e.isEnd&&!e.params.rewind)}function s(t){t.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),r(`navigationPrev`))}function c(t){t.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),r(`navigationNext`))}function l(){let t=e.params.navigation;if(e.params.navigation=Nl(e,e.originalParams.navigation,e.params.navigation,{nextEl:`swiper-button-next`,prevEl:`swiper-button-prev`}),!(t.nextEl||t.prevEl))return;let n=i(t.nextEl),r=i(t.prevEl);Object.assign(e.navigation,{nextEl:n,prevEl:r}),n=X(n),r=X(r);let a=(n,r)=>{if(n){if(t.addIcons&&n.matches(`.swiper-button-next,.swiper-button-prev`)&&!n.querySelector(`svg`)){let e=document.createElement(`div`);nc(e,Pl),n.appendChild(e.querySelector(`svg`)),e.remove()}n.addEventListener(`click`,r===`next`?c:s)}!e.enabled&&n&&n.classList.add(...t.lockClass.split(` `))};n.forEach(e=>a(e,`next`)),r.forEach(e=>a(e,`prev`))}function u(){let{nextEl:t,prevEl:n}=e.navigation;t=X(t),n=X(n);let r=(t,n)=>{t.removeEventListener(`click`,n===`next`?c:s),t.classList.remove(...e.params.navigation.disabledClass.split(` `))};t.forEach(e=>r(e,`next`)),n.forEach(e=>r(e,`prev`))}n(`init`,()=>{e.params.navigation.enabled===!1?f():(l(),o())}),n(`toEdge fromEdge lock unlock`,()=>{o()}),n(`destroy`,()=>{u()}),n(`enable disable`,()=>{let{nextEl:t,prevEl:n}=e.navigation;if(t=X(t),n=X(n),e.enabled){o();return}[...t,...n].filter(e=>!!e).forEach(t=>t.classList.add(e.params.navigation.lockClass))}),n(`click`,(t,n)=>{let{nextEl:i,prevEl:a}=e.navigation;i=X(i),a=X(a);let o=n.target,s=a.includes(o)||i.includes(o);if(e.isElement&&!s){let e=n.path||n.composedPath&&n.composedPath();e&&(s=e.find(e=>i.includes(e)||a.includes(e)))}if(e.params.navigation.hideOnClick&&!s){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===o||e.pagination.el.contains(o)))return;let t;i.length?t=i[0].classList.contains(e.params.navigation.hiddenClass):a.length&&(t=a[0].classList.contains(e.params.navigation.hiddenClass)),r(t===!0?`navigationShow`:`navigationHide`),[...i,...a].filter(e=>!!e).forEach(t=>t.classList.toggle(e.params.navigation.hiddenClass))}});let d=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(` `)),l(),o()},f=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(` `)),u()};Object.assign(e.navigation,{enable:d,disable:f,update:o,init:l,destroy:u})}function Il(e=``){return`.${e.trim().replace(/([\.:!+\/()[\]#>~*^$|=,'"@{}\\])/g,`\\$1`).replace(/ /g,`.`)}`}function Ll({swiper:e,extendParams:t,on:n,emit:r}){let i=`swiper-pagination`;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,o=0;function s(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function c(t,n){let{bulletActiveClass:r}=e.params.pagination;t&&(t=t[`${n===`prev`?`previous`:`next`}ElementSibling`],t&&(t.classList.add(`${r}-${n}`),t=t[`${n===`prev`?`previous`:`next`}ElementSibling`],t&&t.classList.add(`${r}-${n}-${n}`)))}function l(e,t,n){if(e%=n,t%=n,t===e+1)return`next`;if(t===e-1)return`previous`}function u(t){let n=t.target.closest(Il(e.params.pagination.bulletClass));if(!n)return;t.preventDefault();let r=Qs(n)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===r)return;let t=l(e.realIndex,r,e.slides.length);t===`next`?e.slideNext():t===`previous`?e.slidePrev():e.slideToLoop(r)}else e.slideTo(r)}function d(){let t=e.rtl,n=e.params.pagination;if(s())return;let i=e.pagination.el;i=X(i);let l,u,d=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,f=e.params.loop?Math.ceil(d/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(u=e.previousRealIndex||0,l=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):e.snapIndex===void 0?(u=e.previousIndex||0,l=e.activeIndex||0):(l=e.snapIndex,u=e.previousSnapIndex),n.type===`bullets`&&e.pagination.bullets&&e.pagination.bullets.length>0){let r=e.pagination.bullets,s,d,f;if(n.dynamicBullets&&(a=tc(r[0],e.isHorizontal()?`width`:`height`,!0),i.forEach(t=>{t.style[e.isHorizontal()?`width`:`height`]=`${a*(n.dynamicMainBullets+4)}px`}),n.dynamicMainBullets>1&&u!==void 0&&(o+=l-(u||0),o>n.dynamicMainBullets-1?o=n.dynamicMainBullets-1:o<0&&(o=0)),s=Math.max(l-o,0),d=s+(Math.min(r.length,n.dynamicMainBullets)-1),f=(d+s)/2),r.forEach(e
7=>{let t=[...[``,`-next`,`-next-next`,`-prev`,`-prev-prev`,`-main`].map(e=>`${n.bulletActiveClass}${e}`)].map(e=>typeof e==`string`&&e.includes(` `)?e.split(` `):e).flat();e.classList.remove(...t)}),i.length>1)r.forEach(t=>{let r=Qs(t);r===l?t.classList.add(...n.bulletActiveClass.split(` `)):e.isElement&&t.setAttribute(`part`,`bullet`),n.dynamicBullets&&(r>=s&&r<=d&&t.classList.add(...`${n.bulletActiveClass}-main`.split(` `)),r===s&&c(t,`prev`),r===d&&c(t,`next`))});else{let t=r[l];if(t&&t.classList.add(...n.bulletActiveClass.split(` `)),e.isElement&&r.forEach((e,t)=>{e.setAttribute(`part`,t===l?`bullet-active`:`bullet`)}),n.dynamicBullets){let e=r[s],t=r[d];for(let e=s;e<=d;e+=1)r[e]&&r[e].classList.add(...`${n.bulletActiveClass}-main`.split(` `));c(e,`prev`),c(t,`next`)}}if(n.dynamicBullets){let i=Math.min(r.length,n.dynamicMainBullets+4),o=(a*i-a)/2-f*a,s=t?`right`:`left`;r.forEach(t=>{t.style[e.isHorizontal()?s:`top`]=`${o}px`})}}i.forEach((t,i)=>{if(n.type===`fraction`&&(t.querySelectorAll(Il(n.currentClass)).forEach(e=>{e.textContent=n.formatFractionCurrent(l+1)}),t.querySelectorAll(Il(n.totalClass)).forEach(e=>{e.textContent=n.formatFractionTotal(f)})),n.type===`progressbar`){let r;r=n.progressbarOpposite?e.isHorizontal()?`vertical`:`horizontal`:e.isHorizontal()?`horizontal`:`vertical`;let i=(l+1)/f,a=1,o=1;r===`horizontal`?a=i:o=i,t.querySelectorAll(Il(n.progressbarFillClass)).forEach(t=>{t.style.transform=`translate3d(0,0,0) scaleX(${a}) scaleY(${o})`,t.style.transitionDuration=`${e.params.speed}ms`})}n.type===`custom`&&n.renderCustom?(nc(t,n.renderCustom(e,l+1,f)),i===0&&r(`paginationRender`,t)):(i===0&&r(`paginationRender`,t),r(`paginationUpdate`,t)),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?`add`:`remove`](n.lockClass)})}function f(){let t=e.params.pagination;if(s())return;let n=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length,i=e.pagination.el;i=X(i);let a=``;if(t.type===`bullets`){let r=e.params.loop?Math.ceil(n/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&r>n&&(r=n);for(let n=0;n<r;n+=1)t.renderBullet?a+=t.renderBullet.call(e,n,t.bulletClass):a+=`<${t.bulletElement} ${e.isElement?`part="bullet"`:``} class="${t.bulletClass}"></${t.bulletElement}>`}t.type===`fraction`&&(a=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`),t.type===`progressbar`&&(a=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):`<span class="${t.progressbarFillClass}"></span>`),e.pagination.bullets=[],i.forEach(n=>{t.type!==`custom`&&nc(n,a||``),t.type===`bullets`&&e.pagination.bullets.push(...n.querySelectorAll(Il(t.bulletClass)))}),t.type!==`custom`&&r(`paginationRender`,i[0])}function p(){e.params.pagination=Nl(e,e.originalParams.pagination,e.params.pagination,{el:`swiper-pagination`});let t=e.params.pagination;if(!t.el)return;let n;typeof t.el==`string`&&e.isElement&&(n=e.el.querySelector(t.el)),!n&&typeof t.el==`string`&&(n=[...document.querySelectorAll(t.el)]),n||=t.el,!(!n||n.length===0)&&(e.params.uniqueNavElements&&typeof t.el==`string`&&Array.isArray(n)&&n.length>1&&(n=[...e.el.querySelectorAll(t.el)],n.length>1&&(n=n.find(t=>$s(t,`.swiper`)[0]===e.el))),Array.isArray(n)&&n.length===1&&(n=n[0]),Object.assign(e.pagination,{el:n}
7),n=X(n),n.forEach(n=>{t.type===`bullets`&&t.clickable&&n.classList.add(...(t.clickableClass||``).split(` `)),n.classList.add(t.modifierClass+t.type),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass),t.type===`bullets`&&t.dynamicBullets&&(n.classList.add(`${t.modifierClass}${t.type}-dynamic`),o=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),t.type===`progressbar`&&t.progressbarOpposite&&n.classList.add(t.progressbarOppositeClass),t.clickable&&n.addEventListener(`click`,u),e.enabled||n.classList.add(t.lockClass)}))}function m(){let t=e.params.pagination;if(s())return;let n=e.pagination.el;n&&(n=X(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.classList.remove(...(t.clickableClass||``).split(` `)),n.removeEventListener(`click`,u))})),e.pagination.bullets&&e.pagination.bullets.forEach(e=>e.classList.remove(...t.bulletActiveClass.split(` `)))}n(`changeDirection`,()=>{if(!e.pagination||!e.pagination.el)return;let t=e.params.pagination,{el:n}=e.pagination;
7n=X(n),n.forEach(n=>{n.classList.remove(t.horizontalClass,t.verticalClass),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass)})}),n(`init`,()=>{e.params.pagination.enabled===!1?g():(p(),f(),d())}),n(`activeIndexChange`,()=>{e.snapIndex===void 0&&d()}),n(`snapIndexChange`,()=>{d()}),n(`snapGridLengthChange`,()=>{f(),d()}),n(`destroy`,()=>{m()}),n(`enable disable`,()=>{let{el:t}=e.pagination;t&&(t=X(t),t.forEach(t=>t.classList[e.enabled?`remove`:`add`](e.params.pagination.lockClass)))}),n(`lock unlock`,()=>{d()}),n(`click`,(t,n)=>{let i=n.target,a=X(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&a&&a.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;a[0].classList.contains(e.params.pagination.hiddenClass)===!0?r(`paginationShow`):r(`paginationHide`),a.forEach(t=>t.classList.toggle(e.params.pagination.hiddenClass))}});let h=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=X(t),t.forEach(t=>t.classList.remove(e.params.pagination.paginationDisabledClass))),p(),f(),d()},g=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=X(t),t.forEach(t=>t.classList.add(e.params.pagination.paginationDisabledClass))),m()};Object.assign(e.pagination,{enable:h,disable:g,render:f,update:d,init:p,destroy:m})}function Rl({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,containerRole:null,itemRoleDescriptionMessage:null,slideRole:`group`,id:null,scrollOnFocus:!0,wrapperLiveRegion:!0}}),e.a11y={clicked:!1};let r=null,i,a,o=new Date().getTime();function s(e){let t=r;t.length!==0&&nc(t,e)}function c(e=16){return`x`.repeat(e).replace(/x/g,()=>Math.round(16*Math.random()).toString(16))}function l(e){e=X(e),e.forEach(e=>{e.setAttribute(`tabIndex`,`0`)})}function u(e){e=X(e),e.forEach(e=>{e.setAttribute(`tabIndex`,`-1`)})}function d(e,t){e=X(e),e.forEach(e=>{e.setAttribute(`role`,t)})}function f(e,t){e=X(e),e.forEach(e=>{e.setAttribute(`aria-roledescription`,t)})}function p(e,t){e=X(e),e.forEach(e=>{e.setAttribute(`aria-label`,t)})}function m(e,t){e=X(e),e.forEach(e=>{e.setAttribute(`id`,t)})}function h(e,t){e=X(e),e.forEach(e=>{e.setAttribute(`aria-live`,t)})}function g(e){e=X(e),e.forEach(e=>{e.setAttribute(`aria-disabled`,!0)})}function _(e){e=X(e),e.forEach(e=>{e.removeAttribute(`aria-disabled`)})}function v(t){if(t.keyCode!==13&&t.keyCode!==32)return;let n=e.params.a11y,r=t.target;if(!(e.pagination&&e.pagination.el&&(r===e.pagination.el||e.pagination.el.contains(t.target))&&!t.target.matches(Il(e.params.pagination.bulletClass)))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){let t=X(e.navigation.prevEl);X(e.navigation.nextEl).includes(r)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?s(n.lastSlideMessage):s(n.nextSlideMessage)),t.includes(r)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?s(n.firstSlideMessage):s(n.prevSlideMessage))}e.pagination&&r.matches(Il(e.params.pagination.bulletClass))&&r.click()}}function y(){if(e.params.loop||e.params.rewind||!e.navigation)return;let{nextEl:t,prevEl:n}=e.navigation;n&&(e.isBeginning?(g(n),u(n)):(_(n),l(n))),t&&(e.isEnd?(g(t),u(t)):(_(t),l(t)))}function b(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function x(){return b()&&e.params.pagination.clickable}function S(){let t=e.params.a11y;b()&&e.pagination.bullets.forEach(n=>{e.params.pagination.clickable&&(l(n),e.params.pagination.renderBullet||(d(n,`button`),p(n,t.paginationBulletMessage.replace(/\{\{index\}\}/,Qs(n)+1)))),n.matches(Il(e.params.pagination.bulletActiveClass))?n.setAttribute(`aria-current`,`true`):n.removeAttribute(`aria-current`)})}let C=(e,t,n)=>{l(e),e.tagName!==`BUTTON`&&(d(e,`button`),e.addEventListener(`ke
7ydown`,v)),p(e,n)},w=t=>{a&&a!==t.target&&!a.contains(t.target)&&(i=!0),e.a11y.clicked=!0},T=()=>{i=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},E=e=>{o=new Date().getTime()},D=t=>{if(e.a11y.clicked||!e.params.a11y.scrollOnFocus||new Date().getTime()-o<100)return;let n=t.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!n||!e.slides.includes(n))return;a=n;let r=e.virtual&&e.params.virtual.enabled,s=(r?parseInt(n.getAttribute(`data-swiper-slide-index`),10):e.slides.indexOf(n))===e.activeIndex,c=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(n);s||c||t.sourceCapabilities&&t.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{i||=(e.params.loop?e.slideToLoop(e.getSlideIndexWhenGrid(parseInt(n.getAttribute(`data-swiper-slide-index`))),0):r?e.slideTo(e.getSlideIndexWhenGrid(parseInt(n.getAttribute(`data-swiper-slide-index`),10)),0):e.slideTo(e.getSlideIndexWhenGrid(e.slides.indexOf(n)),0),!1)}))},ee=()=>{let t=e.params.a11y;t.itemRoleDescriptionMessage&&f(e.slides,t.itemRoleDescriptionMessage),t.slideRole&&d(e.slides,t.slideRole);let n=e.slides.length;t.slideLabelMessage&&e.slides.forEach((r,i)=>{let a=e.params.loop?parseInt(r.getAttribute(`data-swiper-slide-index`),10):i;p(r,t.slideLabelMessage.replace(/\{\{index\}\}/,a+1).replace(/\{\{slidesLength\}\}/,n))})},te=()=>{let t=e.params.a11y;e.el.append(r);let n=e.el;t.containerRoleDescriptionMessage&&f(n,t.containerRoleDescriptionMessage),t.containerMessage&&p(n,t.containerMessage),t.containerRole&&d(n,t.containerRole);let i=e.wrapperEl,a=t.id||i.getAttribute(`id`)||`swiper-wrapper-${c(16)}`;m(i,a),t.wrapperLiveRegion&&h(i,e.params.autoplay&&e.params.autoplay.enabled?`off`:`polite`),ee();let{nextEl:o,prevEl:s}=e.navigation?e.navigation:{};o=X(o),s=X(s),o&&o.forEach(e=>C(e,a,t.nextSlideMessage)),s&&s.forEach(e=>C(e,a,t.prevSlideMessage)),x()&&X(e.pagination.el).forEach(e=>{e.addEventListener(`keydown`,v)}),As().addEventListener(`visibilitychange`,E),e.el.addEventListener(`focus`,D,!0),e.el.addEventListener(`pointerdown`,w,!0),e.el.addEventListener(`pointerup`,T,!0)};function O(){r&&r.remove();let{nextEl:t,prevEl:n}=e.navigation?e.navigation:{};t=X(t),n=X(n),t&&t.forEach(e=>e.removeEventListener(`keydown`,v)),n&&n.forEach(e=>e.removeEventListener(`keydown`,v)),x()&&X(e.pagination.el).forEach(e=>{e.removeEventListener(`keydown`,v)}),As().removeEventListener(`visibilitychange`,E),e.el&&typeof e.el!=`string`&&(e.el.removeEventListener(`focus`,D,!0),e.el.removeEventListener(`pointerdown`,w,!0),e.el.removeEventListener(`pointerup`,T,!0))}n(`beforeInit`,()=>{r=qs(`span`,e.params.a11y.notificationClass),r.setAttribute(`aria-live`,`assertive`),r.setAttribute(`aria-atomic`,`true`)}),n(`afterInit`,()=>{e.params.a11y.enabled&&te()}),n(`slidesLengthChange snapGridLengthChange slidesGridLengthChange`,()=>{e.params.a11y.enabled&&ee()}),n(`fromEdge toEdge afterInit lock unlock`,()=>{e.params.a11y.enabled&&y()}),n(`paginationUpdate`,()=>{e.params.a11y.enabled&&S()}),n(`destroy`,()=>{e.params.a11y.enabled&&O()})}function zl(e){let t=this,{params:n,slidesEl:r}=t;n.loop&&t.loopDestroy();let i=e=>{if(typeof e==`string`){let t=document.createElement(`div`);nc(t,e),r.append(t.children[0]),nc(t,``)}else r.append(e)};if(typeof e==`object`&&`length`in e)for(let t=0;t<e.length;t+=1)e[t]&&i(e[t]);else i(e);t.recalcSlides(),n.loop&&t.loopCreate(),(!n.observer||t.isElement)&&t.update()}function Bl(e){let t=this,{params:n,activeIndex:r,slidesEl:i}=t;n.loop&&t.loopDestroy();let a=r+1,o=e=>{if(typeof e==`string`){let t=document.createElement(`div`);nc(t,e),i.prepend(t.children[0]),nc(t,``)}else i.prepend(e)};if(typeof e==`object`&&`length`in e){for(let t=0;t<e.length;t+=1)e[t]&&o(e[t]);a=r+e.length}else o(e);t.recalcSlides(),n.loop&&t.loopCreate(),(!n.observer||t.isElement)&&t.update(),t.slideTo(a,0,!1)}function Vl(e,t){let n=this,{params:r,activeIndex:i,slidesEl:a}=n,o=i;r.loop&&(o-=n.loopedSlides,n.loopDestroy(),n.recalcSlides());let s=n.slides.length;if(e<=0){n.prependSlide(t);return}if(e>=s){n.appendSlide(t);return}let c=o>e?o+1:o,l=[];for(let t=s-1;t>=e;--t){let e=n.slides[t];e.remove(),l.unshift(e)}if(typeof t==`object`&&`length`in t){for(let e=0;e<t.length;e+=1)t[e]&&a.append(t[e]);c=o>e?o+t.length:o}else a.append(t);for(let e=0;e<l.length;e+=1)a.append(l[e]);n.recalcSlides(),r.loop&&n.loopCreate(),(!r.observer||n.isElement)&&n.update(),r.loop?n.slideTo(c+n.loopedSlides,0,!1):n.slideTo(c,0,!1)}function Hl(e){let t=this,{params:n,activeIndex:r}=t,i=r;n.loop&&(i-=t.loopedSlides,t.loopDestroy());let a=i,o;if(typeof e==`object`&&`length`in e){for(let n=0;n<e.length;n+=1)o=e[n],t.slides[o]&&t.slides[o].remove(),o<a&&--a;a=Math.max(a,0)}else o=e,t.slides[o]&&t.slides[o].remove(),o<a&&--a,a=Math.max(a,0);t.recalcSlides(),n.loop&&t.loopCreate(),(!n.observer||t.isElement)&&t.update(
7),n.loop?t.slideTo(a+t.loopedSlides,0,!1):t.slideTo(a,0,!1)}function Ul(){let e=this,t=[];for(let n=0;n<e.slides.length;n+=1)t.push(n);e.removeSlide(t)}function Wl({swiper:e}){Object.assign(e,{appendSlide:zl.bind(e),prependSlide:Bl.bind(e),addSlide:Vl.bind(e),removeSlide:Hl.bind(e),removeAllSlides:Ul.bind(e)})}function Gl(e){let{effect:t,swiper:n,on:r,setTranslate:i,setTransition:a,overwriteParams:o,perspective:s,recreateShadows:c,getEffectParams:l}=e;r(`beforeInit`,()=>{if(n.params.effect!==t)return;n.classNames.push(`${n.params.containerModifierClass}${t}`),s&&s()&&n.classNames.push(`${n.params.containerModifierClass}3d`);let e=o?o():{};Object.assign(n.params,e),Object.assign(n.originalParams,e)}),r(`setTranslate _virtualUpdated`,()=>{n.params.effect===t&&i()}),r(`setTransition`,(e,r)=>{n.params.effect===t&&a(r)}),r(`transitionEnd`,()=>{if(n.params.effect===t&&c){if(!l||!l().slideShadows)return;n.slides.forEach(e=>{e.querySelectorAll(`.swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left`).forEach(e=>e.remove())}),c()}});let u;r(`virtualUpdate`,()=>{n.params.effect===t&&(n.slides.length||(u=!0),requestAnimationFrame(()=>{u&&n.slides&&n.slides.length&&(i(),u=!1)}))})}function Kl(e,t){let n=Hs(t);return n!==t&&(n.style.backfaceVisibility=`hidden`,n.style[`-webkit-backface-visibility`]=`hidden`),n}function ql({swiper:e,duration:t,transformElements:n,allSlides:r}){let{activeIndex:i}=e,a=t=>t.parentElement?t.parentElement:e.slides.find(e=>e.shadowRoot&&e.shadowRoot===t.parentNode);if(e.params.virtualTranslate&&t!==0){let t=!1,o;o=r?n:n.filter(t=>{let n=t.classList.contains(`swiper-slide-transform`)?a(t):t;return e.getSlideIndex(n)===i}),o.forEach(n=>{ec(n,()=>{if(t||!e||e.destroyed)return;t=!0,e.animating=!1;let n=new window.CustomEvent(`transitionend`,{bubbles:!0,cancelable:!0});e.wrapperEl.dispatchEvent(n)})})}}function Jl({swiper:e,extendParams:t,on:n}){t({fadeEffect:{crossFade:!1}}),Gl({effect:`fade`,swiper:e,on:n,setTranslate:()=>{let{slides:t}=e,n=e.params.fadeEffect;for(let r=0;r<t.length;r+=1){let t=e.slides[r],i=-t.swiperSlideOffset;e.params.virtualTranslate||(i-=e.translate);let a=0;e.isHorizontal()||(a=i,i=0);let o=e.params.fadeEffect.crossFade?Math.max(1-Math.abs(t.progress),0):1+Math.min(Math.max(t.progress,-1),0),s=Kl(n,t);s.style.opacity=o,s.style.transform=`translate3d(${i}px, ${a}px, 0px)`}},setTransition:t=>{let n=e.slides.map(e=>Hs(e));n.forEach(e=>{e.style.transitionDuration=`${t}ms`}),ql({swiper:e,duration:t,transformElements:n,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})}var Yl=(e,t)=>{let n=e===`auto`?1:Math.ceil(parseFloat(String(e))),r=t&&n%2==0?n+1:n;return r+(t?Math.max(1,Math.ceil(r/2)):1)},Xl=e=>[e,...Object.values(e.breakpoints??{})].reduce((t,n)=>{let r=n.slidesPerView??e.slidesPerView,i=n.centeredSlides??e.centeredSlides??!1;return Math.max(t,Yl(r,i))},0),Zl=()=>{let e=null;return{currentSlide:0,swiperParams:{modules:[Fl,Ll,Rl,Ml,Wl,Jl],slidesPerView:1.2,spaceBetween:16,pagination:{el:`.swiper-pagination`,clickable:!0,type:`bullets`},effect:!1,speed:500,watchOverflow:!0,navigation:{addIcons:!1,nextEl:`.swiper-button-next`,prevEl:`.swiper-button-prev`},breakpoints:{768:{slidesPerView:2.4,spaceBetween:20},1024:{slidesPerView:3.275,spaceBetween:20},1200:{slidesPerView:4,spaceBetween:20}},keyboard:{enabled:!0,onlyInViewport:!0},a11y:{prevSlideMessage:`Previous slide`,nextSlideMessage:`Next slide`,firstSlideMessage:`This is the first slide`,lastSlideMessage:`This is the last slide`}}
7,async init(){let t=await this.mergeParams(),n=this.$root.querySelectorAll(`.swiper-slide`).length??0;t.loop&&n<Xl(t)&&(t.loop=!1,n<=4&&t.centeredSlides&&(t.initialSlide=1)),e=new jl(this.$el,t),e.update(),this.toggleNavigationButtons(),this.balanceLoopSlides(),this.updateSlideDistances(),[`slideChangeTransitionStart`,`loopFix`,`breakpoint`].forEach(t=>{e?.on(t,()=>{this.updateSlideDistances()})}),e.on(`slideChangeTransitionEnd`,()=>{this.balanceLoopSlides(),this.updateSlideDistances()}),e.on(`activeIndexChange`,()=>{this.currentSlide=e?.activeIndex}),e.on(`realIndexChange`,()=>{this.$dispatch(`slide:change`,{carouselId:this.$root.id,index:e?.realIndex})}),setTimeout(()=>{this.$root.classList.add(`swiper-ready`)},200)},mergeParams(){let e={};if(this.$el.dataset.swiper)try{e=JSON.parse(this.$el.dataset.swiper)}catch(e){console.error(`Error parsing JSON in data-swiper attribute:`,e)}return Object.hasOwn(e,`breakpoints`)&&(e.breakpoints={...this.swiperParams.breakpoints,...e.breakpoints}),{...this.swiperParams,...e}},updateSlideDistances(){let t=e;t?.slides?.forEach((e,n)=>{let r=Math.max(Math.abs(n-t.activeIndex)-1,0);e.style.setProperty(`--slide-distance`,String(r))})},balanceLoopSlides(){let t=e;if(!t?.params.loop)return;let n=0;for(;t.activeIndex-(t.slides.length-1-t.activeIndex)>=2&&n<4;){let e=t.slides[0];e.swiperLoopMoveDOM=!0,t.wrapperEl.append(e),e.swiperLoopMoveDOM=!1,t.recalcSlides(),t.slideTo(t.activeIndex-1,0,!1,!0),n+=1}},handleResize(){this.toggleNavigationButtons(),e?.update(),this.$nextTick(()=>{this.balanceLoopSlides(),this.updateSlideDistances()})},slideTo(t){this.currentSlide!=t&&e?.slideTo(t,500)},toggleNavigationButtons(){if(this.$root.classList.contains(`slider-videos-shorts__slider`))return;let t=e,n=t.slides.length,r=t.params.slidesPerView,i=t.navigation,a=Array.isArray(i.prevEl)?i.prevEl[0]:i.prevEl,o=Array.isArray(i.nextEl)?i.nextEl[0]:i.nextEl;n<=r?(a?.classList.add(`invisible`),o?.classList.add(`invisible`)):(a?.classList.remove(`invisible`),o?.classList.remove(`invisible`))}}},Ql=()=>({showAll:!1,maxCount:0,targetElements:[],config:{maxCount:{mobile:8},targetSelector:`.showmore-target`},get moreCount(){return this.targetElements.length-this.maxCount},async init(){this.setConfig(),this.setMaxCount(),this.targetElements=Array.from(this.$root.querySelectorAll(this.config.targetSelector)).filter(e=>e.children.length>0),!(this.targetElements.length<=0)&&(this.hideTargets(),this.$watch(`showAll`,e=>{if(e){this.showTargets();return}this.hideTargets()}),this.$watch(`maxCount`,(e,t)=>{if(!this.showAll){if(e-t>0){this.showTargets(),this.hideTargets();return}this.hideTargets()}}),this._handleBreakpointUpdate=this.setMaxCount.bind(this),window.addEventListener(`breakpoint:updated`,this._handleBreakpointUpdate))},destroy(){this._handleBreakpointUpdate&&window.removeEventListener(`breakpoint:updated`,this._handleBreakpointUpdate)},setMaxCount(){this.maxCount=this.config.maxCount[this.$breakpoint]??this.config.maxCount.desktop??this.config.maxCount.laptop??this.config.maxCount.tablet??this.config.maxCount.mobile},toggleTargets(){this.showAll=!this.showAll},showTargets(){this.targetElements?.forEach(e=>{e.classList.remove(`hidden`)})},hideTargets(){(this.targetElements?.filter((e,t)=>t>=this.maxCount)).forEach(e=>{e.classList.add(`hidden`)})},setConfig(){this.config.targetSelector=this.$el.dataset.showmoreTargets??this.config.targetSelector,(this.$el.dataset.showmoreMaxcount||this.$el.dataset.showmoreMaxcountMobile)&&(this.config.maxCount.mobile=parseInt(this.$el.dataset.showmoreMaxcount??this.$el.dataset.showmoreMaxcountMobile)),this.$el.dataset.showmoreMaxcountTablet&&(this.config.maxCount.tablet=parseInt(this.$el.dataset.showmoreMaxcountTablet)),this.$el.dataset.showmoreMaxcountLaptop&&(this.config.maxCount.laptop=parseInt(this.$el.dataset.showmoreMaxcountLaptop)),this.$el.dataset.showmoreMaxcountDesktop&&(this.config.maxCount.desktop=parseInt(this.$el.dataset.showmoreMaxcountDesktop))}}),$l=()=>({showOverlay:!0,hasOverlay:!1,player:null,playerIsReady:!1,playPromise:null,isPlaying:!1,isMuted:null,volume:0,volumePrevious:1,_onPlaying:null,_onPause:null,_onEnded:null,_onVolumeChange:null,_onLoadeddata:null,destroy(){this.player&&(this._onPlaying&&this.player.removeEventListener(`playing`,this._onPlaying),this._onPause&&this.player.removeEventListener(`pause`,this._onPause),this._onEnded&&this.player.removeEventListener(`ended`,this._onEnded),this._onVolumeChange&&this.player.removeEventListener(`volumechange`,this._onVolumeChange),this._onLoadeddata&&this.player.removeEventListener(`loadeddata`,this._onLoadeddata))},init(){this.player=this.$refs.videoPlayer,this.player&&(this.isPlaying=!this.player.paused,this.isMuted=this.player.muted,this.volumePrevious=this.player.volume,this.volume=this.isMuted?0:this.volumePrevious,this.$watch(`volume`,e=>{if(!(!this.player||Number.isNaN(e))){e>0&&this.player.muted&&(this.player.muted=!1);try{this.player.volume=e}catch{}}}),this._onPlaying=this.handleVideoPlaying.bind(this),this._onPause=this.handleVideoPause.bind(this),this._onEnded=this.handleVideoEnded.bind(this),this._onVolumeChange=this.handleVideoVolumechange.bind(this),this._onLoadeddata=this.handleVideoLoadeddata.bind(this),this.player.addEventListener(`playing`,this._onPlaying),this.player.addEventListener(`pause`,this._onPause),this.player.addEventListener(`ended`,this._onEnded),this.player.addEventListener(`volumechange`,this._onVolumeChange),this.player.addEventListener(`loadeddata`,this._onLoadeddata),this.player.readyState>=2&&this.handleVideoLoadeddata(),this.$nextTick(()=>{this.hasOverlay=this.$refs.videoOverlay,this.showOverlay=this.hasOverlay}))},playVideo(){this.player&&this.player.play()},pauseVideo(){this.player&&this.player.pause()}
7,async togglePlay(){this.player&&(this.playPromise||(this.player.paused?(this.playPromise=this.player.play(),this.playPromise!==void 0&&this.playPromise.catch(e=>{e.name!==`AbortError`&&console.error(e)}).finally(()=>{this.playPromise=null})):this.player.pause()))},toggleMute(){if(!this.player)return;let e=!this.player.muted;this.player.muted=e,e?(this.volumePrevious=this.volume,this.volume=0):this.volume=this.volumePrevious||1},hideOverlay(){this.showOverlay=!1,this.playerIsReady&&this.playVideo()},handleVideoPlaying(){this.isPlaying=!0,this.showOverlay=!1,this.$dispatch(`video:playing`,{id:this.$id(`damVideo`)})},handleVideoPause(){this.isPlaying=!1,this.$dispatch(`video:paused`,{id:this.$id(`damVideo`)})},handleVideoEnded(){this.isPlaying=!1,this.showOverlay=!0,this.$dispatch(`video:ended`,{id:this.$id(`damVideo`)})},handleVideoVolumechange(){if(!this.player)return;let e=this.player.volume;this.volume!==e&&(this.volume=e);let t=this.player.muted;this.isMuted!==t&&(this.isMuted=t)},handleVideoLoadeddata(){this.playerIsReady=!0},onSlideChange(e){(e===this.$root.closest(`.cmp-carousel`)?.id||e===this.$root.closest(`.swiper`)?.id)&&this.pauseVideo()}}),eu=null;function tu(){return eu||(eu=new Promise((e,t)=>{if(window.__miPlayerSdk?.Player){e();return}let n=window.setTimeout(()=>t(Error(`MI SDK load timeout`)),15e3);document.addEventListener(`uc-script-movingImage-loaded`,()=>{window.clearTimeout(n),e()},{once:!0})}),eu)}var nu=()=>{let e=null,t=!1;return{playerElemID:null,playerIsLoading:!1,playerIsReady:!1,hasOverlay:!1,showOverlay:!1,init(){this.playerElemID=this.$id(`mi-player`),this.$cleanup?.(()=>{t=!0,this.destroy()}),this.$nextTick(()=>{let e=this.$root.dataset.autoplay===`true`,t=e&&this.$root.dataset.mutedAutoplay===`true`;this.hasOverlay=this.$refs.videoOverlay,this.showOverlay=!e&&this.hasOverlay,this.initSdk(e,t)})},async initSdk(n,r){if(!(e||t)){this.playerIsLoading=!0;try{if(await tu(),t){this.playerIsLoading=!1;return}this.initPlayer(n,r)}catch(e){console.debug(`[MiVideo] SDK init failed:`,e),this.playerIsLoading=!1}}},initPlayer(t,n){let r=window.__miPlayerSdk;if(!r?.Player){this.playerIsLoading=!1;return}let i=this.playerElemID,a=document.getElementById(i);if(!a){console.debug(`[MiVideo] Target element not found:`,i),this.playerIsLoading=!1;return}try{if(a instanceof HTMLIFrameElement)e=new r.Player(i);else{let t=a.getAttribute(`video-id`),n=a.getAttribute(`player-id`),o=a.getAttribute(`channel-id`);if(!t||!n){console.error(`[MiVideo] Missing video-id or player-id on`,a),this.playerIsLoading=!1;return}e=new r.Player(i,{videoId:t,playerId:n,channelId:o})}e?.on(`ready`,()=>{e&&(this.playerIsReady=!0,this.playerIsLoading=!1,t?(this.showOverlay=!1,n?e.mute().then(()=>e?.play()).catch(e=>{console.warn(`[MiVideo] play() blocked:`,e)}):e?.play().catch(e=>{console.warn(`[MiVideo] play() blocked:`,e)})):this.pauseVideo())}),e?.on(`play`,()=>{this.$dispatch(`video:playing`,{id:this.$id(`miVideo`)}),this.showOverlay=!1}),e?.on(`pause`,()=>{this.$dispatch(`video:paused`,{id:this.$id(`miVideo`)})}),e?.on(`ended`,()=>{this.$dispatch(`video:ended`,{id:this.$id(`miVideo`)}),this.showOverlay=!0})}catch(e){console.error(`[MiVideo] Error creating player:`,e),this.playerIsLoading=!1}},destroy(){if(!e)return;let t=e;e=null,this.playerIsReady=!1,this.playerIsLoading=!1,this.playerElemID=null;try{t.destroy()}catch(e){console.warn(`[MiVideo] destroy() failed:`,e)}},playVideo(){e?.play()},pauseVideo(){e?.pause()},hideOverlay(){this.showOverlay=!1,this.playerIsReady&&this.playVideo()},onSlideChange(e){(e===this.$root.closest(`.cmp-carousel`)?.id||e===this.$root.closest(`.swiper`)?.id)&&this.pauseVideo()}}},ru=null;function iu(){return ru||(ru=new Promise(e=>{if(window.YT&&window.YT.loaded===1){e();return}let t=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{t?.(),e()}}),ru)}var au=()=>{let e;return{videoId:null,videoUrl:null,hasOverlay:!1,showOverlay:!1,playerIsReady:!1,playerIsLoading:!1,init(){this.videoUrl=this.$root.dataset.videoId??null,this.extractVideoIdFromUrl(),this.$cleanup?.(()=>this.destroy()),this.$nextTick(()=>{let e=this.$root.dataset.autoplay===`true`,t=e&&this.$root.dataset.mutedAutoplay===`true`;this.hasOverlay=this.$refs.videoOverlay,this.showOverlay=!e&&this.hasOverlay,iu().then(()=>{this.initYoutubePlayer(e,t)})})},destroy(){if(!e)return;let t=e;e=null,this.playerIsReady=!1,this.playerIsLoading=!1;try{t.destroy()}catch(e){console.warn(`[Youtube] destroy() failed:`,e)}},extractVideoIdFromUrl(){if(!this.videoUrl)return;let e=this.videoUrl.match(/^(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:watch\?v=|embed\/|v\/|live\/|.*\/)|youtu\.be\/)([^#&?]{11})/);e&&e[1].length===11&&(this.videoId=e[1])},initYoutubePlayer(t,n){if(e||!this.videoId)return;let r=this.$root.querySelector(`.video__yt-player`);r&&(this.playerIsLoading=!0,e=new window.YT.Player(r,{host:`https://www.youtube-nocookie.com`,videoId:this.videoId,width:1080,playerVars:{playsinline:1,enablejsapi:1,iv_load_policy:3,autoplay:+!!t,mute:+!!n,rel:0,disablekb:1},events:{onReady:()=>this.onPlayerReady(),onStateChange:e=>this.onPlayerStateChange(e)}}))},hideOverlay(){this.showOverlay=!1,this.playerIsReady&&this.playVideo()},onPlayerReady(){this.playerIsReady=!0,this.playerIsLoading=!1},onPlayerStateChange(e){e.data===2&&this.$dispatch(`video:paused`,{id:this.$id(`ytVideo`)}),e.data===1&&(this.$dispatch(`video:playing`,{id:this.$id(`ytVideo`)}),this.showOverlay=!1),e.data===0&&(this.$dispatch(`video:ended`,{id:this.$id(`ytVideo`)}),this.showOverlay=!0)},onSlideChange(e){(e===this.$root.closest(`.cmp-carousel`)?.id||e===this.$root.closest(`.swiper`)?.id)&&this.pauseVideo()},playVideo(){this.playerIsReady&&e?.playVideo()},pauseVideo(){this.playerIsReady&&e?.pauseVideo()}}},ou=e=>({wasAccepted:!1,showOverlay:!0,init(){this.$watch(`$store.consentStore.services.${e}`,e=>{e||(this.wasAccepted=!1)})}}),su=()=>({config:{maxItems:{mobile:2,tablet:3,laptop:3,desktop:4}},maxItems:2,listItems:[],init(){this.setMaxItems(),this.getListItems()}
7,setMaxItems(){this.maxItems=this.config.maxItems[this.$breakpoint]},getListItems(){this.listItems=Array.from(this.$el.querySelectorAll(`.cmp-breadcrumb__item`))}}),cu=()=>{function e(e){e.key===`Escape`&&e.preventDefault()}return{modalPath:null,template:null,loading:!1,modalOpen:!1,dialogOpen:!1,pageType:null,currentpage:null,majorUser:null,businessline:null,id:null,name:null,marketoParams:null,dismissible:!0,scrollToAnchorId:null,presetFieldValues:null,get slotElement(){return this.$refs?.modalSlot},get innerElement(){return this.$refs?.modalInner},init(){this.$nextTick(()=>{this.openModalById()})},async showModal(t,n,r,i,a,o,s,c,l,u,d){if(window.addEventListener(`keydown`,e),this.$store.globalStore.disableScrolling(),this.modalOpen&&this.$store.modalStore.addToHistory({modalPath:this.modalPath,currentpage:this.currentpage,pageType:this.pageType,businessline:this.businessline,id:this.id,name:this.name,majorUser:this.majorUser,marketoParams:this.marketoParams,dismissible:this.dismissible,scrollToAnchorId:this.scrollToAnchorId,presetFieldValues:this.presetFieldValues}),this.modalPath=t,this.pageType=r,this.currentpage=n,this.businessline=i,this.majorUser=s,this.id=a,this.name=o,this.marketoParams=c,this.dismissible=l??!0,this.scrollToAnchorId=u??null,this.presetFieldValues=d,!this.modalOpen){this.modalOpen=!0,await this.$nextTick();let e=this.$refs?.modal;e&&(e.showModal(),document.activeElement?.blur())}this.dialogOpen&&(this.hideDialog(),await new Promise(e=>setTimeout(()=>{e()},300))),await this.fetchModal()},hideModal(){if(this.dismissible){if(this.$store.modalStore.historyStack.length>0){let e=this.$store.modalStore.getPreviousModal();this.$store.modalStore.historyStack.pop(),this.showModal(e.modalPath,e.currentpage,e.pageType,e.businessline,e.id,e.name,e.majorUser,e.marketoParams,e.dismissible,e.scrollToAnchorId,e.presetFieldValues),this.$store.modalStore.historyStack.pop();return}this.hideDialog(),this.$refs.modal?.close(),this.reset(),window.removeEventListener(`keydown`,e),this.$store.globalStore.enableScrolling()}},showDialog(){this.dialogOpen=!0},hideDialog(){this.dialogOpen=!1},reset(){this.template=null,this.loading=!1,this.dialogOpen=!1,this.dismissible=!0,this.marketoParams=null,this.scrollToAnchorId=null,this.presetFieldValues=null,this.clearSlotContent(),this.modalOpen=!1},async fetchModal(){this.loading=!0;try{let e=document.cookie.includes(`wcmmode`)?`?wcmmode=disabled`:``;e=lu(e,`currentpage`,this.currentpage),e=lu(e,`pageType`,this.pageType),e=lu(e,`businessline`,this.businessline),e=lu(e,`id`,this.id),e=lu(e,`name`,this.name),e=lu(e,`majorUser`,this.majorUser),e=lu(e,`marketoParams`,this.marketoParams),this.presetFieldValues&&(e=lu(e,`presetFieldValues`,this.presetFieldValues));let t=await fetch(`${this.modalPath}.html${e}`,{cache:`no-store`});if(!t.ok)throw Error(`Failed to fetch modal content. Status: ${t.status}`);let n=await t.text(),r=new DOMParser().parseFromString(n,`text/html`).querySelector(`.modal__content`);this.template=r?.outerHTML,this.$nextTick(()=>{this.fillSlotContent(),this.showDialog()})}catch(e){console.error(`Error fetching template:`,e),this.dismissible=!0,this.hideModal()}finally{if(this.loading=!1,await this.$nextTick(),this.scrollToAnchorId&&this.scrollToAnchorId!==``){let e=this.innerElement;if(e){let t=()=>{e.removeEventListener(`transitionend`,t),this.scrollToAnchor(this.scrollToAnchorId)};e.addEventListener(`transitionend`,t,{once:!0})}else requestAnimationFrame(()=>this.scrollToAnchor(this.scrollToAnchorId))}}},fillSlotContent(){let e=this.slotElement;e&&(e.innerHTML=this.template??``)},clearSlotContent(){let e=this.slotElement;e&&(e.innerHTML=``)},scrollToTop(){let e=this.slotElement;e&&e.scrollTo({top:0,behavior:`instant`})},scrollToBottom(){let e=this.slotElement;e&&e.scrollTo({top:e.scrollHeight,behavior:`instant`})},scrollToAnchor(e){let t=this.slotElement;if(t){let n=e.startsWith(`#`)?e:`#${e}`,r=t.querySelector(n);r&&r.scrollIntoView({behavior:`smooth`,block:`start`})}},openModalById(){let e=new URLSearchParams(window.location.search).get(`modal_id`);if(!e)return;let t=document.querySelector(`[data-modal-id="${e}"]`);t&&t.click()}}}
7,lu=(e,t,n)=>(n!==null&&(e=e.length===0?e.concat(`?`):e.concat(`&`),e=e.concat(`${t}=${encodeURIComponent(n)}`)),e),uu=()=>({downloadFile(e,t){var n=document.createElement(`a`);n.setAttribute(`href`,`data:text/plain;charset=utf-8,`+encodeURIComponent(t)),n.setAttribute(`download`,e),n.style.display=`none`,document.body.appendChild(n),n.click(),document.body.removeChild(n)},convertToICSDate(e){let t=e.getFullYear().toString(),n=e.getMonth()+1<10?`0`+(e.getMonth()+1).toString():(e.getMonth()+1).toString(),r=e.getDate()<10?`0`+e.getDate().toString():e.getDate().toString(),i=e.getHours()<10?`0`+e.getHours().toString():e.getHours().toString(),a=e.getMinutes()<10?`0`+e.getMinutes().toString():e.getMinutes().toString();return t+n+r+`T`+i+a+`00Z`},createIcsFile(e,t,n,r){let i=`BEGIN:VCALENDAR
8VERSION:2.0
9PRODID:Calendar
10CALSCALE:GREGORIAN
11METHOD:PUBLISH
12BEGIN:VTIMEZONE
13END:VTIMEZONE
14BEGIN:VEVENT
15SUMMARY:`+n+`
16UID:@Default
17SEQUENCE:0
18STATUS:CONFIRMED
19TRANSP:TRANSPARENT
20DTSTART;VALUE=DATE-TIME:`+this.convertToICSDate(e)+`
21DTEND;VALUE=DATE-TIME:`+this.convertToICSDate(t)+`
22DTSTAMP:`+this.convertToICSDate(new Date)+`
23LOCATION:`+r+` \\nDESCRIPTION: `+n+`
24END:VEVENT
25END:VCALENDAR
26`;this.downloadFile(n+`.ics`,i)},calculateOffset(e,t){return t.valueOf()-e*60*1e3},setIcsParams(e,t,n,r,i){let a=t.replaceAll(`, `,` \\n`);a=a.replaceAll(`<br>`,` \\n`);let o=this.calculateOffset(i,new Date(n)),s=this.calculateOffset(i,new Date(r));this.createIcsFile(new Date(o),new Date(s),e,a)}}),du=()=>({open:!1,init(){this.$root.addEventListener(`toggle`,e=>{if(this.open=e.newState===`open`,document.activeElement?.blur(),e.newState===`open`){this.$root.closest(`.modal`)?.classList.add(`pointer-events-none`);return}this.$root.closest(`.modal`)?.classList.remove(`pointer-events-none`)})},showPopover(){this.$root.showPopover()},hidePopover(){this.$root.hidePopover()}}),fu=()=>({toggleFlyout(e){this.$store.headerStore.flyout.isOpen||this.$store.globalStore.disableScrolling(),this.$store.headerStore.flyout.toggle(e),this.$store.headerStore.flyout.isOpen?setTimeout(()=>window.dispatchEvent(new CustomEvent(`flyout-header-open`,{detail:!1})),500):this.closeFlyout()},closeFlyout(){this.$store.headerStore.flyout.close(),this.$store.globalStore.enableScrolling()},toggleSearchFlyout(){this.$store.headerStore.searchFlyout.toggle(
26)}}),pu=()=>({init(){this.trimMenu()},trimMenu(){let e=this.$el,{desktopMenuList:t}=this.$refs;if(!e||!t||t.clientWidth<=e.clientWidth)return;let n=t.querySelectorAll(`.subnav-bar__item`);if(n.length){document.querySelector(`.subnav-bar__item-ellipsis`)?.remove();for(let r=n.length-1;r>=0;r--){let i=n[r],a=i.getBoundingClientRect(),o=e.getBoundingClientRect();if(a.right+62<=o.right){if(i.classList.remove(`invisible`),!t.querySelector(`.subnav-bar__item-ellipsis`)){let e=document.createElement(`li`);e.classList.add(`subnav-bar__item-ellipsis`,`font-bold`,`cursor-pointer`,`link-style--tertiary`),e.textContent=`...`,e.addEventListener(`click`,()=>{this.$refs.treenavToggle.click()}),i.after(e)}break}i.classList.add(`invisible`)}}}}),mu=()=>({config:{maxLevel:{mobile:1,tablet:2,laptop:2,desktop:3}},maxLevel:1,currentLevel:1,visibleMenus:[],async init(){this.handleCurrentLinks(),await this.initSubnav()},handleTreenavResize(){this.initSubnav()},async initSubnav(){await this.setMaxLevel(),await this.getVisibleMenus(),await this.setCurrentLevel()},setMaxLevel(){return this.maxLevel=this.config.maxLevel[this.$breakpoint],Promise.resolve()},async updateNavigation(){await this.uncheckCheckboxes(),await this.getVisibleMenus(),await this.setCurrentLevel()},async setCurrentLevel(){return this.currentLevel=this.visibleMenus.length,Promise.resolve()},getVisibleMenus(){return new Promise(e=>{let t=this.$refs.subnavTree.querySelectorAll(`[js-treenav-submenu]`),n=Array.from(t).filter(e=>getComputedStyle(e).visibility!==`hidden`);this.visibleMenus=n,e(n)})},async uncheckCheckboxes(){let e=this.$refs.subnavTree.querySelectorAll(`[js-treenav-checkbox][data-input-level="${this.$el.dataset.inputLevel}"]`);if(e)for(let t of e){if(t==this.$el)continue;let e=t.parentElement?.querySelector(`[js-treenav-submenu]`)?.querySelectorAll(`[js-treenav-checkbox]:checked`);for(let t of e)t.checked=!1;t.checked=!1}let t=this.$el?.parentElement?.querySelector(`[js-treenav-submenu]`)?.querySelectorAll(`[js-treenav-checkbox]:checked`);if(t)for(let e of t)e.checked=!1;return Promise.resolve()},handleCurrentLinks(){this.$root.querySelectorAll(`a.treenav-link, .treenav-link--submenu`).forEach(e=>{let t=e instanceof HTMLInputElement,n=e instanceof HTMLAnchorElement,r=t?e.value:n?e.href:null;if(!r)return;let i=this.$linkIsCurrent(r);t&&(i.page||i.parent)&&(e.checked=!0,e.dispatchEvent(new Event(`change`,{bubbles:!0}))),i.parent&&e.setAttribute(`data-link-current-parent`,``),i.page&&e.setAttribute(`aria-current`,`page`)})},async handleMenuBackButton(){--this.currentLevel,setTimeout(()=>{let e=this.$refs.subnavTree.querySelectorAll(`[js-treenav-checkbox]:checked`);e.length>0&&e[e.length-1].click()},500)},handleLinkTabindex(){let e=`0`,t=this.$el.closest(`[js-treenav-submenu]`);if(!t)return e;let{menuLevel:n}=t.dataset;return n===void 0||n===``?`0`:(this.$el.tagName!==`A`&&this.$el.tagName!==`INPUT`&&(e=`-1`),e)}}),hu=()=>{let e=document.querySelector(`header.header`);return{toggling:!1,maxHeight:0,init(){this.setMaxHeight()},handleSubnavResize(){this.setMaxHeight()},setMaxHeight(){requestAnimationFrame(()=>{this.maxHeight=window.innerHeight-((e?.clientHeight??0)+(this.$refs.subnavElement?.offsetHeight??0)-8)})},async toggleFlyout(t){this.toggling||(this.toggling=!0,this.$store.subnavStore.flyout.isOpen||(await this.$store.globalStore.disableScrolling(),this.$isSticky(this.$refs.subnavElement)||window.scrollTo(0,this.$refs.subnavElement.getBoundingClientRect().top+window.scrollY-(e?.clientHeight||0))),this.$store.subnavStore.flyout.toggle(t),this.$store.subnavStore.flyout.isOpen?this.$dispatch(`subnav:open`):this.$store.globalStore.enableScrolling(),setTimeout(()=>{this.toggling=!1},500))},closeFlyout(){this.$store.subnavStore.flyout.close(),this.$store.globalStore.enableScrolling()}}},gu=()=>({storedEmails:[],inputField:null,modal:null,async init(){await this.$nextTick(),this.modal=this.$el,this.inputField=this.$refs.shareAddEmailInput,this.modal},handleAddEmail(){let{inputField:e}=this;if(!e?.value||!e?.checkValidity()){console.error(`invalid email address`);return}this.addEmail(e.value),e.value=``},handleRemoveEmail(e){this.removeEmail(e)},addEmail(e){this.storedEmails.push(e)},removeEmail(e){this.storedEmails.splice(e,1)},getAllEmails(){let e=[...this.storedEmails];return this.inputField?.value!==``&&e.push(this.inputField?.value),e},getAllEmailInputs(){return this.modal?.querySelectorAll(`input[type="email"]`)},validateEmails(){let e=this.getAllEmailInputs();return Array.from(e).every(e=>e.checkValidity())},submit(){let e=this.$refs.shareEmailBody.value;if(!this.validateEmails()){console.error(`one or more emails are not valid`);return}e+=`
27
28`,e+=window.location.origin+window.location.pathname;let t=this.getAllEmails();window.location.href=`mailto:${t.join(`,`)}?subject=My%20Recommendation%20&body=${encodeURIComponent(e)}`},reset(){this.storedEmails=[],this.inputField&&(this.inputField.value=``)}}),_u=()=>({submitState:`idle`,get submitFinished(){return this.submitState===`success`||this.submitState===`error`},get submitInProgress(){return this.submitState===`loading`},get responseHeadline(){switch(this.submitState){case`success`:return this.$i18n(`Thank you for your request`);case`error`:return this.$i18n(`unexpected.error.headline`);default:return``}},get responseText(){switch(this.submitState){case`success`:return this.$i18n(`Your access request has been received.<br/> We will review your request and get back to you shortly.`);case`error`:return this.$i18n(`Your access request could not be processed at this time.`)+`<br/>`+this.$i18n(`unexpected.error.text`);default:return``}},get iconStyle(){return this.submitState===`success`?`icon-check bg-color-primary text-color-secondary`:`icon-close bg-color-error text-color-white`},init(){this.submitRequest()},async submitRequest(){this.submitState=`loading`;try{await this.$store.accessRequestStore.submitRequest(),this.submitState=`success`}catch(e){console.error(`Error while requesting access: `,e),this.submitState=`error`}finally{this.$dispatch(`modal:dismissible`,!0)}}});async function vu(e){return document.querySelector(`.mktoForms2Base`)||await yu(),window.MktoForms2?(e?.(),`Marketo 
28script already loaded`):new Promise(t=>{let n=()=>{e?.(),document.removeEventListener(`marketoScriptLoaded`,n),t(`Marketo script loaded`)};document.addEventListener(`marketoScriptLoaded`,n)})}async function yu(){return new Promise((e,t)=>{document.querySelector(`.mktoForms2Base`)&&e();try{let n=document.querySelector(`[data-marketo-init-script]`)?.dataset.marketoInitScript;if(!n){console.error(`No Marketo script source provided`),t(Error(`No Marketo script source provided`));return}let r=document.createElement(`script`);r.src=n,r.classList.add(`mktoForms2Base`),r.async=!0,r.onload=()=>{document.dispatchEvent(new CustomEvent(`marketoScriptLoaded`)),e()},r.onerror=e=>{console.error(`Error loading Marketo script:`,e),t(Error(`Error loading Marketo script`))},document.body.appendChild(r)}catch(e){console.error(`Error loading Marketo script:`,e),t(Error(`Error loading Marketo script`))}})}var bu=null;async function xu({disableDisclaimer:e,disclaimerTargetElement:t}){return document.querySelector(`.recaptchaScript`)||await Cu(e,t),t&&!e&&Su(t),`reCAPTCHA script loaded`}function Su(e){if(!e||e.querySelector(`.captcha-disclaimer`))return;let t=document.createElement(`span`);t.classList.add(`[&_a]:link-style--primary`,`captcha-disclaimer`),t.innerHTML=Eo(`recaptcha.disclaimer`)??`This site is protected by reCAPTCHA.`,e.appendChild(t)}async function Cu(e,t){if(document.querySelector(`.recaptchaScript`))return;let n=await Eu();if(!n)throw Error(`No reCAPTCHA site key provided`);await new Promise((e,t)=>{let r=document.createElement(`script`);r.classList.add(`recaptchaScript`),r.src=`https://www.google.com/recaptcha/api.js?render=${n}`,r.async=!0,r.onload=()=>e(),r.onerror=()=>t(Error(`Failed to load reCAPTCHA`)),document.body.appendChild(r)}),t&&!e&&Su(t)}async function wu({validationFailureCallback:e,validationSuccessCallback:t,validationErrorCallback:n}){let r=Eo(`recaptcha.failure`)??`reCAPTCHA verification failed.`;try{let n=await Eu();if(!n)throw Error(r);await Tu(await window.grecaptcha.execute(n,{action:`submit`}))?t?.():e?.(r)}catch(e){console.error(e),n?.(r)}}async function Tu(e){try{if(!await(await Io({selector:Cs.VALIDATE_CAPTCHA,params:{token:e}})).json())throw Error(Eo(`recaptcha.failure`)??`reCAPTCHA verification failed.`);return!0}catch(e){return console.error(e),!1}}async function Eu(){if(!bu)try{let e=await(await Io({selector:Cs.GET_CAPTCHA_SITE_KEY})).json();if(!e)throw Error(`Error fetching captcha key`);bu=e}catch(e){return console.error(e),null}return bu}var Du=()=>({isSubmitting:!1,loading:!0,_formFields:null,_marketoMessageListenerActive:!1,destroy(){window.removeEventListener(`message`,this._handleMarketoMessage),this._marketoMessageListenerActive=!1},async init(){this._trackFirstInteraction=this._trackFirstInteraction.bind(this),this._handleMarketoMessage=this._handleMarketoMessage.bind(this);try{await new Promise(e=>{setTimeout(()=>{(window.requestIdleCallback||function(e){setTimeout(e,0)})(()=>{Promise.all([xu({disableDisclaimer:!0}),vu(()=>this.loadMarketoForm())]).then(e).catch(e)})},0)})}catch(e){console.error(`Error initializing scripts:`,e)}},loadMarketoForm(){return window.MktoForms2?.loadForm(this.$root.dataset.marketoBaseUrl,this.$root.dataset.munchkinId,this.$root.dataset.marketoformId,e=>{if(!e)return;let t=e.getFormElem()[0];this._formFields=t?.querySelectorAll(`.mktoField`),this._formFields?.forEach(e=>{e.addEventListener(`focus`,this._trackFirstInteraction,{once:!0}),e.addEventListener(`click`,this._trackFirstInteraction,{once:!0})});let n=this.$root.querySelector(`.marketoAdvancedScript`)?.textContent;if(n?.trim())try{Function(`form`,n)(e)}catch(e){console.error(`Error evaluating marketoAdvancedScript:`,e)}if(this.addHiddenFields(e),!t?.querySelector(`.mktoCaptchaDisclaimer`)){e.submittable(!1);let n=document.createElement(`div`);n.classList.add(`mktoCaptchaDisclaimer`),t.querySelector(`.mktoButtonRow`)?.insertAdjacentElement(`beforebegin`,n),Su(n),e.onValidate(t=>{let n=e.getFormElem()[0]?.querySelector(`button[type="submit"]`);t&&(this.isSubmitting||wu({validationFailureCallback:t=>{e.showErrorMessage(t,window.MktoForms2.$(n)),this.$dispatch(`form:error`,{form:{formId:this.$root.dataset.marketoformId,formName:this.$root.dataset.marketoFormName||`null`,formType:this.$root.dataset.marketoFormType||`null`}})},validationSuccessCallback:()=>{this.isSubmitting=!0,e.submittable(!0),e.submit()},validationErrorCallback:t=>{e.showErrorMessage(t,window.MktoForms2.$(n)),this.$dispatch(`form:error`,{form:{formId:this.$root.dataset.marketoformId,formName:this.$root.dataset.marketoFormName||`null`,formType:this.$root.dataset.marketoFormType||`null`}})}}))})}e.onSubmit(()=>{window.lastSubmittedMarketoFormId=this.$root.dataset.marketoformId,!this._marketoMessageListenerActive&&(this._marketoMessageListenerActive=!0,window.addEventListener(`message`,this._handleMarketoMessage))}),e.onSuccess(()=>{this.$dispatch(`form:success`,{form:{formId:this.$root.dataset.marketoformId,formName:this.$root.dataset.marketoFormName||`null`,formType:this.$root.dataset.marketoFormType||`null`}})}),this.formsCleanup(e),this.loading=!1}),`Marketo form loaded`},formsCleanup(e){let t=e?.getFormElem()?.[0]||this.$root.querySelector(`form`);if(!t)return;let n=document.querySelector(`#mktoForms2BaseStyle`);n&&n.remove();let r=document.querySelector(`#mktoForms2ThemeStyle`);r&&r.remove(),t?.setAttribute(`style`,``),t?.querySelectorAll(`.mktoFormRow *, .mktoButtonRow *`).forEach(e
28=>{e.setAttribute(`style`,``)})},addHiddenFields(e){let t=this.$root.dataset.marketoformHiddenFields;if(t)try{let n=JSON.parse(t);n&&e.addHiddenFields(n)}catch(e){console.error(`Error parsing marketo hidden fields dataset`,e)}},handleResize(){this.formsCleanup()},_trackFirstInteraction(){this.$dispatch(`form:start`,{id:this.$root.dataset.marketoformId||`null`,form:{formId:this.$root.dataset.marketoformId||`null`,formName:this.$root.dataset.marketoFormName||`null`,formType:this.$root.dataset.marketoFormType||`null`}}),this._formFields?.forEach(e=>{e.removeEventListener(`focus`,this._trackFirstInteraction),e.removeEventListener(`click`,this._trackFirstInteraction)})},_handleMarketoMessage(e){if(e.origin.includes(this.$root.dataset.marketoBaseUrl)&&window.lastSubmittedMarketoFormId===this.$root.dataset.marketoformId)try{JSON.parse(e.data).mktoResponse?.error===!0&&this.$dispatch(`form:error`,{form:{formId:this.$root.dataset.marketoformId,formName:this.$root.dataset.marketoFormName||`null`,formType:this.$root.dataset.marketoFormType||`null`}})}catch(e){console.warn(`Error parsing Marketo response`,e)}finally{window.removeEventListener(`message`,this._handleMarketoMessage),this._marketoMessageListenerActive=!1}}}),Ou=()=>({form:null,formSubmitBtn:null,formError:null,isLoading:!0,isSubmitting:!1,initialRequiredState:new Map,listenerMap:new Map,urlParams:{},_formFields:void 0,_analyticsTrackingEnabled:!1,init(){this.initForm()},async initForm(){if(this._trackFirstInteraction=this._trackFirstInteraction.bind(this),this.setForm(),!this.form){this.isLoading=!1;return}try{await this.loadScripts()}catch(e){console.error(`Error initializing scripts:`,e)}finally{this.isLoading=!1}this.setFormSubmitBtn(),this.registerFormSubmitListener(),this.getUrlParams(),this.saveInitialInputsRequiredState(),this.initFormExtend(),this._formFields=this.form.querySelectorAll(`input, textarea, select`),this._formFields?.forEach(e=>{e.addEventListener(`invalid`,()=>{(e.type===`radio`||e.type===`checkbox`)&&e.closest(`.form__input-group`)?this.validateInputGroup(e):this.showInputError(e)}),e.tagName.toLowerCase()===`input`&&e.addEventListener(`change`,()=>{e.checkValidity()}),this._analyticsTrackingEnabled&&(e.addEventListener(`click`,this._trackFirstInteraction,{once:!0}),e.addEventListener(`focus`,this._trackFirstInteraction,{once:!0}))})},initFormExtend(){return Promise.resolve()},async loadScripts(){return Promise.resolve()},async handleSubmit(){throw Error(`handleSubmit() not implemented`)},submitForm(){throw Error(`submitForm() not implemented`)},processFormValues(){throw Error(`processFormValues() not implemented`)},setForm(){this.form=this.$root instanceof HTMLFormElement?this.$root:this.$root.querySelector(`form`)},setFormSubmitBtn(){if(this.formSubmitBtn=this.form?.querySelector(`button[type="submit"]`),!this.formSubmitBtn){let e=()=>{requestAnimationFrame(()=>{queueMicrotask(()=>{this.formSubmitBtn=this.form?.querySelector(`button[type="submit"]`),this.formSubmitBtn&&this.form.removeEventListener(`steps:change`,e)})})};this.form.addEventListener(`steps:change`,e)}},setFormError(e){this.formError=e||this.$i18n(`form.button.submit.msg.error`),this.isSubmitting=!1,this.$refs.formFooter&&this.$nextTick(()=>{this.$dispatch(`modal:scrollToBottom`)}),this._analyticsTrackingEnabled&&this.$dispatch(`form:error`,this._analyticsFormData)},registerFormSubmitListener(){this.form.addEventListener(`submit`,this.handleSubmit.bind(this))},saveInitialInputsRequiredState(){this.form.querySelectorAll(`input[type='checkbox'],input[type='radio']`)?.forEach(e=>{if(this.initialRequiredState.set(e,e.hasAttribute(`required`)),!this.listenerMap.has(e)){let t=this.handleInvalidInputChange.bind(this);e.addEventListener(`change`,t),this.listenerMap.set(e,t)}})},validateForm(){if(this.form)return this.resetAllErrors(),this.form.checkValidity()},validateInputGroup(e){let t=new FormData(this.form).getAll(e.name).length>0,n=e.closest(`.form__input-group`),r=n?.querySelectorAll(`input[name='${e.name}']:not([disabled])`);t?(r.forEach(e=>e.removeAttribute(`required`)),this.removeInputGroupError(n,r)):(r.forEach(e
28=>{this.initialRequiredState.get(e)&&e.setAttribute(`required`,``)}),this.showInputGroupError(n,r))},createErrorElement(e,t){let n=document.createElement(`span`);return n.innerHTML=e??this.$i18n(`form.input.msg.error.required`)??`Error`,n.classList.add(`input-error-msg`,`block`,`text-color-error`,`mt-04`,`text-14`,`w-full`,...t??[]),n},showInputError(e,t){if(!e)return;let n=e.closest(`.form__field`);if(n?.querySelector(`.input-error-msg`))return;let r=this.createErrorElement(t??e.dataset.errorMessage);if(n?.appendChild(r),!this.listenerMap.has(e)&&e.type!==`submit`){let t=this.handleInvalidInputChange.bind(this);e.addEventListener(`change`,t),this.listenerMap.set(e,t)}},removeInputError(e){if(!e)return;(e.closest(`.form__field`)?.querySelector(`.input-error-msg`))?.remove();let t=this.listenerMap.get(e);t&&(e.removeEventListener(`change`,t),this.listenerMap.delete(e))},showInputGroupError(e,t,n){if(!e||!t||e.parentElement?.querySelector(`.input-error-msg`))return;let r=this.createErrorElement(n??e.dataset.errorMessage??t[0].dataset.errorMessage,[`!mt-010`]);e?.insertAdjacentElement(`afterend`,r)},removeInputGroupError(e,t){!e||!t||(e?.parentElement?.querySelector(`.input-error-msg`))?.remove()},resetAllErrors(){let e=this.form?.querySelectorAll(`.input-error-msg`);this.formError=null,e?.forEach(e=>{e.remove()})},handleInvalidInputChange(e){let t=e.target;(t.type===`radio`||t.type===`checkbox`)&&t.closest(`.form__input-group`)?this.validateInputGroup(t):t.validity.valid&&this.removeInputError(t)},getUrlParams(){let e=new URLSearchParams(window.location.search);for(let[t,n]of e.entries())this.urlParams[t]=n},afterSubmit(e){if(e.id===this.form.id){this.isSubmitting=!1;let e=new CustomEvent(`popover:open`,{detail:`popover-form--success`});window.dispatchEvent(e),this.form.hasAttribute(`data-modal-prevent-dismiss`)||this.$dispatch(`modal:dismissible`,!0),this.$steps?.next(),this._analyticsTrackingEnabled&&this.form.dispatchEvent(new CustomEvent(`form:success`,{detail:this._analyticsFormData,bubbles:!0})),this.$store.formsStore.removeForm(this.form.id)}},_trackFirstInteraction(){this._analyticsTrackingEnabled&&(this.$dispatch(`form:start`,{id:this.form?.id,form:{formId:this.form?.dataset.marketoFormId||this.form?.id||`null`,formName:this.form?.dataset.formName||`null`,formType:this.form?.dataset.formType||`null`}}),this._formFields?.forEach(e=>{e.removeEventListener(`focus`,this._trackFirstInteraction),e.removeEventListener(`click`,this._trackFirstInteraction)}))},_setAnalyticsFormData(){throw Error(`_setAnalyticsFormData() not implemented`)},_syncOriginalValueOnUserInput(){(this.form?.querySelectorAll(`[data-original-value]`))?.forEach(e=>{e.addEventListener(`input`,t=>{t.isTrusted&&(e.dataset.originalValue=e.value)})})}}),ku=()=>{let e=new Set([`marketID`,`pIMApplication`]);return{...Ou(),marketoFormInstance:null,_marketoMessageListenerActive:!1,destroy(){window.removeEventListener(`message`,this._handleMarketoMessage),this._marketoMessageListenerActive=!1},initFormExtend(){return this._analyticsTrackingEnabled=!0,this._handleMarketoMessage=this._handleMarketoMessage.bind(this),this._handleMarketoSuccess=this._handleMarketoSuccess.bind(this),this._presetFieldValues(),this._syncOriginalValueOnUserInput(),Promise.resolve()},async loadScripts(){return new Promise((e,t)=>{let n=this.form.querySelector(`.form__captcha-disclaimer`);(window.requestIdleCallback||function(e){setTimeout(e,0)})(async()=>{try{await Promise.all([xu({disclaimerTargetElement:n}),vu(()=>this.loadMarketoForm())]),e(void 0)}catch(e){t(e instanceof Error?e:Error(String(e)))}})})},loadMarketoForm(){let e=window.MktoForms2.getForm(this.form.dataset.marketoFormId);return e?(e.onSuccess((e,t)=>this._handleMarketoSuccess(e,t)),this._bindMarketoOnSubmit(e),this.marketoFormInstance=e,Promise.resolve()):(window.MktoForms2.loadForm(this.form.dataset.marketoBaseUrl,this.form.dataset.marketoMunchkinId,this.form.dataset.marketoFormId,e=>{if(!e)throw Error(`Marketo form not found`);e.onSuccess((e,t)=>this._handleMarketoSuccess(e,t)),this._bindMarketoOnSubmit(e),this.marketoFormInstance=e}),Promise.resolve())},async handleSubmit(e){if(e.preventDefault(),!this.isSubmitting&&this.validateForm()){this.formError=null,this.isSubmitting=!0,this._setAnalyticsFormData();try{await wu({validationFailureCallback:e=>this.setFormError(e),validationSuccessCallback:()=>
28this.submitForm(),validationErrorCallback:e=>this.setFormError(e)})}catch(e){console.error(`Captcha validation error:`,e),this.isSubmitting=!1}}},submitForm(){if(!this.form)return;let e=this.marketoFormInstance;if(!e)throw Error(`Marketo form not found`);e.getFormElem()[0]?.querySelectorAll(`input[type="hidden"]`).forEach(e=>{e.name===`formid`||e.name===`munchkinId`||e.remove()});let t=this.processFormValues(),n=Object.fromEntries(Object.entries(t).filter(([e])=>!e.startsWith(`excludeFromSubmit_`)));for(let t in n)n.hasOwnProperty(t)&&e.addHiddenFields({[t]:n[t]});for(let t in this.urlParams)if(this.urlParams.hasOwnProperty(t)&&t.startsWith(`utm_`)){let n=t.split(`_`),r=`uTM${n[1].charAt(0).toUpperCase()+n[1].slice(1)}`;e.addHiddenFields({[r]:this.urlParams[t]})}this._setAnalyticsFormData(t),e.submit()},processFormValues(){let e=new FormData(this.form),t={};for(let[n,r]of e.entries())t[n]&&n!==`optIn`?t[n]+=`,${r}`:((n===`marketID`||n===`pIMApplication`||n===`applicationPageID`||n===`marketPageID`)&&(r=String(r).charAt(0).toUpperCase()+r.slice(1)),n===`productPageID`&&(r=String(r).replace(`pr_`,`PR_`)),t[n]=r);return Array.from(this.form.querySelectorAll(`[data-original-value]`)).filter(e=>e.value!==e.dataset.originalValue).forEach(e=>{t[e.name]?.includes(e.value)&&(t[e.name]=t[e.name].replace(e.value,e.dataset.originalValue))}),t},_presetFieldValues(){let t=this.form?.querySelector(`script#form-preset-fieldvalues[type="application/json"]`);if(!t)return;let n=this.$safeJsonParse(t.textContent);if(!n)return;let r=Object.fromEntries(Object.entries(n).filter(([t])=>e.has(t)));Object.entries(r).forEach(([e,t])=>{let n=this.form.querySelector(`[name="${CSS.escape(e)}"]`);if(n){if(n instanceof HTMLSelectElement){let e=Array.from(n.options).find(e=>e.value===t);if(n.dataset.presetFieldvalue=t,e){e.selected=!0,n.dispatchEvent(new Event(`change`,{bubbles:!0})),delete n.dataset.presetFieldvalue;return}return}n.value=t,n.dispatchEvent(new Event(`input`,{bubbles:!0}))}})},_handleMarketoMessage(e){if(e.origin.includes(this.form.dataset.marketoBaseUrl)&&window.lastSubmittedMarketoFormId===this.form.dataset.marketoFormId)try{JSON.parse(e.data).mktoResponse?.error===!0&&this.setFormError(this.$i18n(`form.button.submit.msg.error`))}catch(e){console.warn(`Error parsing Marketo response`,e),this.setFormError(this.$i18n(`form.button.submit.msg.error`))}finally{window.removeEventListener(`message`,this._handleMarketoMessage),this._marketoMessageListenerActive=!1}},_handleMarketoSuccess(e,t){if(!this.form)return!1;let n=window.location.origin+window.location.pathname,r=new URL(t),i=r.origin+r.pathname;return t&&i!==n?!0:(this.form.dispatchEvent(new CustomEvent(`form:submitted`,{detail:{id:this.form.id},bubbles:!0})),!1)},_bindMarketoOnSubmit(e){e.onSubmit(()=>{window.lastSubmittedMarketoFormId=this.form.dataset.marketoFormId,this._marketoMessageListenerActive||(this._marketoMessageListenerActive=!0,window.addEventListener(`message`,this._handleMarketoMessage))})},_setAnalyticsFormData(e){if(!this.form)return;let t=e||this.processFormValues(),n=Object.fromEntries(Object.entries(t).map(([e,t])=>e.startsWith(`excludeFromSubmit_`)?[e.replace(`excludeFromSubmit_`,``),t]:[e,t])),r={};r.form={formId:this.form.dataset.marketoFormId||this.form.id||`null`,formName:this.form.dataset.formName,formType:this.form.dataset.formType};let i=n.sampleOrderID;i!=null&&i!==``&&(r.form={...r.form,onlineOrderId:i}),r.productsInfo={productID:n.productPageID||`null`,productName:n.productPageName||`null`,market:n.marketID||`null`,application:n.pIMApplication||`null`,chemistry:n.chemistry||`null`,effect:n.effect||`null`,brand:n.brand||`null`,region:n.region||`null`,majorUserBL:n.bLPIMMajorUser||`null`},r.content={contactArea:n.flexfield03||`null`,mainIntentCategory:n.typeOfSupport||`null`,company:n.Company||n.companyNameShippingAddress||`null`,country:n.evo_countryisocode||`null`,jobFunction:n.jobFunction||`null`,newsletterOption:n.optIn===void 0?`null`:n.optIn===`yes`},this._analyticsFormData=r}}},Au=()=>({...Ou(),initFormExtend(){return this.form.hasAttribute(`form-disable-value-restore`)||(this.$store.formsStore.storeForm(this.form.id,this.form),this.$store.formsStore.restoreForm(this.form?.id)),this._syncOriginalValueOnUserInput(),Promise.resolve()},handleSubmit(e){e.preventDefault(),!this.isSubmitting&&this.validateForm()&&(this.formError=null,this.isSubmitting=!0,this.submitForm(
28))},async submitForm(){if(!this.form)return;let e=this.form.dataset.servletEndpoint;if(!e){console.error(`No endpoint provided for the servlet form`);return}this.isSubmitting=!0;let t=this.processFormValues(),n=Object.fromEntries(Object.entries(t).filter(([e])=>!e.startsWith(`excludeFromSubmit_`)));for(let e in n)n.hasOwnProperty(e)&&n[e]===``&&delete n[e];this._setAnalyticsFormData();try{await this.$requestPost({selector:Cs[e],body:n}),this.form.dispatchEvent(new CustomEvent(`form:submitted`,{detail:{id:this.form.id},bubbles:!0}))}catch(e){this.setFormError(this.$i18n(`form.button.submit.msg.error`)),console.error(`Error while submitting form`,e)}},processFormValues(){let e=new FormData(this.form),t={};return new Set(e.keys()).forEach(n=>{let r=e.getAll(n);t[n]=this.form.querySelector(`[name="${CSS.escape(n)}"][data-array]`)?r:r[0]}),Array.from(this.form.querySelectorAll(`[data-original-value]`)).filter(e=>e.value!==e.dataset.originalValue).forEach(e=>{if(Array.isArray(t[e.name])&&t[e.name].includes(e.value)){let n=t[e.name].indexOf(e.value);n!==-1&&(t[e.name][n]=e.dataset.originalValue);return}typeof t[e.name]==`string`&&t[e.name].includes(e.value)&&(t[e.name]=t[e.name].replace(e.value,e.dataset.originalValue))}),t},_setAnalyticsFormData(){if(!this.form)return;let e={form:{formId:this.form?.id||`null`,formName:this.form.dataset.formName,formType:this.form.dataset.formType}};this._analyticsFormData=e}}),ju=()=>({show:!1,anchors:[],currentAnchor:null,anchorListEl:null,async init(){await this.getAnchors(),await this.$nextTick(()=>{this.anchorListEl=this.$refs.articleAnchorsList}),window.Alpine.effect(async()=>{this.$store.subnavStore.flyout.isOpen&&(this.show=!1)})},async getAnchors(){let e=[];return document.querySelectorAll(`[js-anchor]`).forEach(t=>{let n=new Promise(e=>{this.anchors.push({id:t.getAttribute(`id`),title:t.getAttribute(`data-anchor-title`)}),e()});e.push(n)}),await Promise.all(e),Promise.resolve()},setCurrentAnchor(e){if(this.anchors.length===0||!e.id)return;let t=this.anchors.find(t=>t.id===e.id);this.currentAnchor=t.id,this.updateAnchorListScrollPosition()},updateAnchorListScrollPosition(){if(!this.anchorListEl)return;let e=this.anchorListEl.querySelector(`li[data-target-anchor-id="${this.currentAnchor}"]`);e&&(e.offsetTop>this.anchorListEl.clientHeight&&this.anchorListEl.scrollTop<e.offsetTop||e.offsetTop<this.anchorListEl.scrollTop)&&this.anchorListEl.scrollTo({top:e.offsetTop,left:0,behavior:`smooth`})}}),Mu=()=>({apiEndpoint:null,eqsDataType:null,rawData:null,clusteredData:null,loading:!1,error:!1,maxCount:4,itemsMaxCount:{mobile:4,tablet:8,laptop:9,desktop:12},init(){if(!this.$root.dataset.endpoint){console.error(`No API endpoint provided`);return}this.apiEndpoint=this.$root.dataset.endpoint,this.setEqsDataType(),this.setMaxCount(),this.fetchData(),this.$watch(`rawData`,async()=>{await this.clusterData(),this.loading=!1})},async fetchData(){this.loading=!0;try{let e=await fetch(this.apiEndpoint);if(!e.ok)throw Error(`Failed to fetch data. Status: ${e.status}`);if(e.ok){let t=await e.json();this.rawData=t}}catch(e){console.error(`Error fetching data:`,e),this.error=!0,this.loading=!1}},clusterData(){if(!this.rawData?.items)return console.error(`No data to cluster`),this.error=!0,Promise.resolve();let e=JSON.parse(JSON.stringify(this.rawData.items)),t=[...Object.entries(e.reduce((e,t)=>{let n=new Date(t.date_published).getFullYear().toString();return e[n]??=[],t.date_published=new Date(t.date_published).toLocaleDateString(`de-DE`,{year:`numeric`,month:`2-digit`,day:`2-digit`}),e[n].push(t),e},{})).map(([e,t])=>({year:parseInt(e),entries:t,count:t.length,showAll:!1}))].sort((e,t)=>t.year-e.year);return this.clusteredData=t,Promise.resolve()},setMaxCount(){this.maxCount=this.itemsMaxCount[this.$breakpoint]??this.itemsMaxCount.desktop??this.itemsMaxCount.laptop??this.itemsMaxCount.tablet??this.itemsMaxCount.mobile},setEqsDataType(){let e=new URLSearchParams(new URL(this.apiEndpoint).search).get(`type`);this.eqsDataType=e}}),Nu=(e,t=`en-US`,n=0,r=3)=>isNaN(e)?`NaN`:new Intl.NumberFormat(t,{minimumFractionDigits:n,maximumFractionDigits:r}).format(e),Pu=()=>({inputs:{mhafa:{demand:null,price:null},metamino:{ratio:null,price:null}},get metaminoDemand(){return parseFloat(this.inputs.metamino.ratio)>88&&(this.inputs.metamino.ratio=`88%`),parseFloat(this.inputs.metamino.ratio)<65&&(this.inputs.metamino.ratio=`65%`),Number(this.inputs.mhafa.demand)*(parseFloat(this.inputs.metamino.ratio.replace(`,`,`.`))/100)},get metaminoCosts(){return this.metaminoDemand*Number(this.inputs.metamino.price)*1e3},get mhafaCosts(){return Number(this.inputs.mhafa.demand)*Number(this.inputs.mhafa.price)*1e3},get priceRatio(){return Number(this.inputs.mhafa.price)/Number(this.inputs.metamino.price)*100},get mhafaCarbonFootprint(){return Number(this.inputs.mhafa.demand)*2.89},get metaminoCarbonFootprint(){return this.mhafaCarbonFootprint*(parseFloat(this.inputs.metamino.ratio.replace(`,`,`.`))/100)},get metaminoAvoidedEmission(){return this.mhafaCarbonFootprint-this.metaminoCarbonFootprint},get metaminoAvoidedEmissionFixedRatio(){return this.mhafaCarbonFootprint-this.mhafaCarbonFootprint*.65},get finalResult(){return this.mhafaCosts-this.metaminoCosts},get finalResultFixedRatio(){return this.mhafaCosts-Number(this.inputs.mhafa.demand)*.65*Number(this.inputs.metamino.price)*1e3},formatNumber(e,t=0,n=3){return Nu(e,`en-US`,t,n)}}),Fu=()=>({inputs:{mhafa:{liquid_mixin_time:null},batch_size:null,dry_mixin_time:null,working_hours:null,working_days:null,feed_profit:null},get mhafaBatches(){return 3600/(Number(this.inputs.dry_mixin_time)+Number(this.inputs.mhafa.liquid_mixin_time))}
28,get metaminoBatches(){return 3600/Number(this.inputs.dry_mixin_time)},get mhafaFeedProduction(){return Number(this.inputs.batch_size)*this.mhafaBatches*Number(this.inputs.working_hours)*Number(this.inputs.working_days)*12},get metaminoFeedProduction(){return Number(this.inputs.batch_size)*this.metaminoBatches*Number(this.inputs.working_hours)*Number(this.inputs.working_days)*12},get metaminoFeedProductionIncrease(){return this.metaminoFeedProduction-this.mhafaFeedProduction},get finalResult(){return this.metaminoFeedProductionIncrease*Number(this.inputs.feed_profit)},formatNumber(e,t=0,n=3){return Nu(e,`en-US`,t,n)}}),Iu=()=>({inputs:{mhafa:{bio_efficacy_assumption:null,price:null},metamino:{price:null},sid_lys:null,sid_met_cys_lys:null,sid_met_cys_lys_raw:null,feed_production:null},get sidMetCys(){return Number(this.inputs.sid_lys)*(parseFloat(this.inputs.sid_met_cys_lys.replace(`,`,`.`))/100)},get sidMetCysGap(){return this.sidMetCys-Number(this.inputs.sid_met_cys_lys_raw)},get mhafaSupplementation(){return this.sidMetCysGap/(parseFloat(this.inputs.mhafa.bio_efficacy_assumption.replace(`,`,`.`))/100)},get mhafaBioEfficacy(){return 65},get mhafaEquivalencySupplemented(){return Number(this.mhafaSupplementation*(this.mhafaBioEfficacy/100))},get mhafaSidMetCysCover(){return Number(this.inputs.sid_met_cys_lys_raw)+this.mhafaEquivalencySupplemented},get mhafaSidMetCysLysCover(){return this.mhafaSidMetCysCover/Number(this.inputs.sid_lys)*100},get mhafaSupplementationInKg(){return this.mhafaSupplementation*10},get mhafaSupplementationCosts(){return this.mhafaSupplementation*Number(this.inputs.mhafa.price)*10},get metaminoRatio(){return 65},get metaminoSupplementation(){return this.mhafaEquivalencySupplemented},get metaminoSupplementationInKg(){return this.metaminoSupplementation*10},get metaminoSupplementationCosts(){return Number(this.inputs.metamino.price)*this.metaminoSupplementationInKg},get metaminoSavings(){return this.mhafaSupplementationCosts-this.metaminoSupplementationCosts},get priceRatio(){return Number(this.inputs.mhafa.price)/Number(this.inputs.metamino.price)*100},get finalResult(){return this.metaminoSavings*Number(this.inputs.feed_production)},formatNumber(e,t=0,n=3){return Nu(e,`en-US`,t,n)}}),Lu=()=>({id:null,showBanner:!1,delay:null,cooldown:null,init(){this.id=this.$el.dataset.bannerId,this.delay=parseInt(this.$el.dataset.bannerDelay,10)*1e3,this.cooldown=parseInt(this.$el.dataset.bannerCooldown,10)*60*60*1e3;let e=this.$persistGet(`slideInBanner_${this.id}`,`localStorage`);!window.Granite.author&&e&&Date.now()-e<this.cooldown||setTimeout(()=>{this.showBanner=!0},this.delay)},closeBanner(){this.$persistSet(`slideInBanner_${this.id}`,Date.now(),`localStorage`),this.showBanner=!1}}),{getOwnPropertyNames:Ru,getOwnPropertySymbols:zu}=Object,{hasOwnProperty:Bu}=Object.prototype;function Vu(e,t){return function(n,r,i){return e(n,r,i)&&t(n,r,i)}}function Hu(e){return function(t,n,r){if(!t||!n||typeof t!=`object`||typeof n!=`object`)return e(t,n,r);let{cache:i}=r,a=i.get(t),o=i.get(n);if(a&&o)return a===n&&o===t;i.set(t,n),i.set(n,t);let s=e(t,n,r);return i.delete(t),i.delete(n),s}}function Uu(e){return e?.[Symbol.toStringTag]}function Wu(e){return Ru(e).concat(zu(e))}var Gu=Object.hasOwn||((e,t)=>Bu.call(e,t));function Ku(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var qu=`__v`,Ju=`__o`,Yu=`_owner`,{getOwnPropertyDescriptor:Xu,keys:Zu}=Object;function Qu(e,t){return e.byteLength===t.byteLength&&dd(new Uint8Array(e),new Uint8Array(t))}function $u(e,t,n){let r=e.length;if(t.length!==r)return!1;for(;r-->0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function ed(e,t){return e.byteLength===t.byteLength&&dd(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function td(e,t){return Ku(e.getTime(),t.getTime())}function nd(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function rd(e,t){return e===t}function id(e,t,n){let r=e.size;if(r!==t.size)return!1;if(!r)return!0;let i=Array(r),a=e.entries(),o,s,c=0;for(;(o=a.next())&&!o.done;){let r=t.entries(),a=!1,l=0;for(;(s=r.next())&&!s.done;){if(i[l]){l++;continue}let r=o.value,u=s.value;if(n.equals(r[0],u[0],c,l,e,t,n)&&n.equals(r[1],u[1],r[0],u[0],e,t,n)){a=i[l]=!0;break}l++}if(!a)return!1;c++}return!0}var ad=Ku;
28function od(e,t,n){let r=Zu(e),i=r.length;if(Zu(t).length!==i)return!1;for(;i-->0;)if(!pd(e,t,n,r[i]))return!1;return!0}function sd(e,t,n){let r=Wu(e),i=r.length;if(Wu(t).length!==i)return!1;let a,o,s;for(;i-->0;)if(a=r[i],!pd(e,t,n,a)||(o=Xu(e,a),s=Xu(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function cd(e,t){return Ku(e.valueOf(),t.valueOf())}function ld(e,t){return e.source===t.source&&e.flags===t.flags}function ud(e,t,n){let r=e.size;if(r!==t.size)return!1;if(!r)return!0;let i=Array(r),a=e.values(),o,s;for(;(o=a.next())&&!o.done;){let r=t.values(),a=!1,c=0;for(;(s=r.next())&&!s.done;){if(!i[c]&&n.equals(o.value,s.value,o.value,s.value,e,t,n)){a=i[c]=!0;break}c++}if(!a)return!1}return!0}function dd(e,t){let n=e.byteLength;if(t.byteLength!==n||e.byteOffset!==t.byteOffset)return!1;for(;n-->0;)if(e[n]!==t[n])return!1;return!0}function fd(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function pd(e,t,n,r){return(r===Yu||r===Ju||r===qu)&&(e.$$typeof||t.$$typeof)?!0:Gu(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}var md=`[object ArrayBuffer]`,hd=`[object Arguments]`,gd=`[object Boolean]`,_d=`[object DataView]`,vd=`[object Date]`,yd=`[object Error]`,bd=`[object Map]`,xd=`[object Number]`,Sd=`[object Object]`,Cd=`[object RegExp]`,wd=`[object Set]`,Td=`[object String]`,Ed={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},Dd=`[object URL]`,Od=Object.prototype.toString;function kd({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:s,areObjectsEqual:c,arePrimitiveWrappersEqual:l,areRegExpsEqual:u,areSetsEqual:d,areTypedArraysEqual:f,areUrlsEqual:p,unknownTagComparators:m}){return function(h,g,_){if(h===g)return!0;if(h==null||g==null)return!1;let v=typeof h;if(v!==typeof g)return!1;if(v!==`object`)return v===`number`?s(h,g,_):v===`function`?a(h,g,_):!1;let y=h.constructor;if(y!==g.constructor)return!1;if(y===Object)return c(h,g,_);if(Array.isArray(h))return t(h,g,_);if(y===Date)return r(h,g,_);if(y===RegExp)return u(h,g,_);if(y===Map)return o(h,g,_);if(y===Set)return d(h,g,_);let b=Od.call(h);if(b===vd)return r(h,g,_);if(b===Cd)return u(h,g,_);if(b===bd)return o(h,g,_);if(b===wd)return d(h,g,_);if(b===Sd)return typeof h.then!=`function`&&typeof g.then!=`function`&&c(h,g,_);if(b===Dd)return p(h,g,_);if(b===yd)return i(h,g,_);if(b===hd)return c(h,g,_);if(Ed[b])return f(h,g,_);if(b===md)return e(h,g,_);if(b===_d)return n(h,g,_);if(b===gd||b===xd||b===Td)return l(h,g,_);if(m){let e=m[b];if(!e){let t=Uu(h);t&&(e=m[t])}if(e)return e(h,g,_)}return!1}}function Ad({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:Qu,areArraysEqual:n?sd:$u,areDataViewsEqual:ed,areDatesEqual:td,areErrorsEqual:nd,areFunctionsEqual:rd,areMapsEqual:n?Vu(id,sd):id,areNumbersEqual:ad,areObjectsEqual:n?sd:od,arePrimitiveWrappersEqual:cd,areRegExpsEqual:ld,areSetsEqual:n?Vu(ud,sd):ud,areTypedArraysEqual:n?Vu(dd,sd):dd,areUrlsEqual:fd,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){let e=Hu(r.areArraysEqual),t=Hu(r.areMapsEqual),n=Hu(r.areObjectsEqual),i=Hu(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:e,areMapsEqual:t,areObjectsEqual:n,areSetsEqual:i})}return r}function jd(e){return function(t,n,r,i,a,o,s){return e(t,n,s)}}function Md({circular:e,comparator:t,createState:n,equals:r,strict:i}){if(n)return function(a,o){let{cache:s=e?new WeakMap:void 0,meta:c}=n();return t(a,o,{cache:s,equals:r,meta:c,strict:i})};if(e)return function(e,n){return t(e,n,{cache:new WeakMap,equals:r,meta:void 0,strict:i})};let a={cache:void 0,equals:r,meta:void 0,strict:i};return function(e,n){return t(e,n,a)}}var Nd=Pd();Pd({strict:!0}),Pd({circular:!0}),Pd({circular:!0,strict:!0}),Pd({createInternalComparator:()=>Ku}),Pd({strict:!0,createInternalComparator:()=>Ku}),Pd({circular:!0,createInternalComparator:()=>Ku}),Pd({circular:!0,createInternalComparator:()=>Ku,strict:!0});function Pd(e={}){let{circular:t=!1,createInternalComparator:n,createState:r,strict:i=!1}=e,a=kd(Ad(e));return Md({circular:t,comparator:a,createState:r,equals:n?n(a):jd(a),strict:i})}var Fd=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array
vendor: 2,594 bytes, line 28
28],Id=1,Ld=8,Z=new Uint32Array(96),Rd=class e{static from(t){if(!t||t.byteLength===void 0||t.buffer)throw Error(`Data must be an instance of ArrayBuffer or SharedArrayBuffer.`);let[n,r]=new Uint8Array(t,0,2);if(n!==219)throw Error(`Data does not appear to be in a KDBush format.`);let i=r>>4;if(i!==Id)throw Error(`Got v${i} data when expected v${Id}.`);let a=Fd[r&15];if(!a)throw Error(`Unrecognized array type.`);let[o]=new Uint16Array(t,2,1),[s]=new Uint32Array(t,4,1);return new e(s,o,a,void 0,t)}constructor(e,t=64,n=Float64Array,r=ArrayBuffer,i){if(isNaN(e)||e<0)throw Error(`Unexpected numItems value: ${e}.`);this.numItems=+e,this.nodeSize=Math.min(Math.max(+t,2),65535),this.ArrayType=n,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;let a=Fd.indexOf(this.ArrayType),o=e*2*this.ArrayType.BYTES_PER_ELEMENT,s=e*this.IndexArrayType.BYTES_PER_ELEMENT,c=(8-s%8)%8;if(a<0)throw Error(`Unexpected typed array class: ${n}.`);if(i)this.data=i,this.ids=new this.IndexArrayType(i,Ld,e),this.coords=new n(i,Ld+s+c,e*2),this._pos=e*2,this._finished=!0;else{let i=this.data=new r(Ld+o+s+c);this.ids=new this.IndexArrayType(i,Ld,e),this.coords=new n(i,Ld+s+c,e*2),this._pos=0,this._finished=!1,new Uint8Array(i,0,2).set([219,(Id<<4)+a]),new Uint16Array(i,2,1)[0]=t,new Uint32Array(i,4,1)[0]=e}}add(e,t){let n=this._pos>>1;return this.ids[n]=n,this.coords[this._pos++]=e,this.coords[this._pos++]=t,n}finish(){let e=this._pos>>1;if(e!==this.numItems)throw Error(`Added ${e} items when expected ${this.numItems}.`);return zd(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(e,t,n,r){if(!this._finished)throw Error(`Data not yet indexed - call index.finish().`);let{ids:i,coords:a,nodeSize:o}=this;Z[0]=0,Z[1]=i.length-1,Z[2]=0;let s=3,c=[];for(;s>0;){let l=Z[--s],u=Z[--s],d=Z[--s];if(u-d<=o){for(let o=d;o<=u;o++){let s=a[2*o],l=a[2*o+1];s>=e&&s<=n&&l>=t&&l<=r&&c.push(i[o])}continue}let f=d+u>>1,p=a[2*f],m=a[2*f+1];p>=e&&p<=n&&m>=t&&m<=r&&c.push(i[f]),(l===0?e<=p:t<=m)&&(Z[s++]=d,Z[s++]=f-1,Z[s++]=1-l),(l===0?n>=p:r>=m)&&(Z[s++]=f+1,Z[s++]=u,Z[s++]=1-l)}return c}within(e,t,n){let r=[];return this.withinInto(e,t,n,r),r}withinInto(e,t,n,r){if(!this._finished)throw Error(`Data not yet indexed - call index.finish().`);let{ids:i,coords:a,nodeSize:o}=this;Z[0]=0,Z[1]=i.length-1,Z[2]=0;let s=3,c=0,l=n*n;for(;s>0;){let u=Z[--s],d=Z[--s],f=Z[--s];if(d-f<=o){for(let n=f;n<=d;n++)Ud(a[2*n],a[2*n+1],e,t)<=l&&(r[c++]=i[n]);continue}let p=f+d>>1,m=a[2*p],h=a[2*p+1];Ud(m,h,e,t)<=l&&(r[c++]=i[p]),(u===0?e-n<=m:t-n<=h)&&(Z[s++]=f,Z[s++]=p-1,Z[s++]=1-u),(u===0?e+n>
28=m:t+n>=h)&&(Z[s++]=p+1,Z[s++]=d,Z[s++]=1-u)}return c}};function zd(e,t,n,r,i,a){if(i-r<=n)return;let o=r+i>>1;Bd(e,t,o,r,i,a),zd(e,t,n,r,o-1,1-a),zd(e,t,n,o+1,i,1-a)}function Bd(e,t,n,r,i,a){for(;i>r;){if(i-r>600){let o=i-r+1,s=n-r+1,c=Math.log(o),l=.5*Math.exp(2*c/3),u=.5*Math.sqrt(c*l*(o-l)/o)*(s-o/2<0?-1:1);Bd(e,t,n,Math.max(r,Math.floor(n-s*l/o+u)),Math.min(i,Math.floor(n+(o-s)*l/o+u)),a)}let o=t[2*n+a],s=r,c=i;for(Vd(e,t,r,n),t[2*i+a]>o&&Vd(e,t,r,i);s<c;){for(Vd(e,t,s,c),s++,c--;t[2*s+a]<o;)s++;for(;t[2*c+a]>o;)c--}t[2*r+a]===o?Vd(e,t,r,c):(c++,Vd(e,t,c,i)),c<=n&&(r=c+1),n<=c&&(i=c-1)}}function Vd(e,t,n,r){Hd(e,n,r),Hd(t,2*n,2*r),Hd(t,2*n+1,2*r+1)}function Hd(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}function Ud(e,t,n,r){let i=e-n,a=t-r;return i*i+a*a}var Wd={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},Gd=Math.fround||(e=>(t=>(e[0]=+t,e[0])))(new Float32Array(1)),Kd=2,qd=3,Jd=4,Yd=5,Xd=6,Zd=class{constructor(e){this.options=Object.assign(Object.create(Wd),e),this.trees=Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(e){let{log:t,minZoom:n,maxZoom:r}=this.options;t&&console.time(`total time`);let i=`prepare ${e.length} points`;t&&console.time(i),this.points=e;let a=[];for(let t=0;t<e.length;t++){let n=e[t];if(!n.geometry)continue;let[r,i]=n.geometry.coordinates,o=Gd(ef(r)),s=Gd(tf(i));a.push(o,s,1/0,t,-1,1),this.options.reduce&&a.push(0)}let o=this.trees[r+1]=this._createTree(a);t&&console.timeEnd(i);for(let e=r;e>=n;e--){let n=+Date.now();o=this.trees[e]=this._createTree(this._cluster(o,e)),t&&console.log(`z%d: %d clusters in %dms`,e,o.numItems,+Date.now()-n)}return t&&console.timeEnd(`total time`),this}getClusters(e,t){let n=((e[0]+180)%360+360)%360-180,r=Math.max(-90,Math.min(90,e[1])),i=e[2]===180?180:((e[2]+180)%360+360)%360-180,a=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)n=-180,i=180;else if(n>i){let e=this.getClusters([n,r,180,a],t),o=this.getClusters([-180,r,i,a],t);return e.concat(o)}let o=this.trees[this._limitZoom(t)],s=o.range(ef(n),tf(a),ef(i),tf(r)),c=o.data,l=[];for(let e of s){let t=this.stride*e;l.push(c[t+Yd]>1?Qd(c,t,this.clusterProps):this.points[c[t+qd]])}return l}getChildren(e){let t=this._getOriginId(e),n=this._getOriginZoom(e),r=`No cluster with the specified id.`,i=this.trees[n];if(!i)throw Error(r);let a=i.data;if(t*this.stride>=a.length)throw Error(r);let o=this.options.radius/(this.options.extent*2**(n-1)),s=a[t*this.stride],c=a[t*this.stride+1],l=i.within(s,c,o),u=[];for(let t of l){let n=t*this.stride;a[n+Jd]===e&&u.push(a[n+Yd]>1?Qd(a,n,this.clusterProps):this.points[a[n+qd]])}if(u.length===0)throw Error(r);return u}getLeaves(e,t,n){t||=10,n||=0;let r=[];return this._appendLeaves(r,e,t,n,0),r}getTile(e,t,n){let r=this.trees[this._limitZoom(e)],i=2**e,{extent:a,radius:o}=this.options,s=o/a,c=(n-s)/i,l=(n+1+s)/i,u={features:[]};return this._addTileFeatures(r.range((t-s)/i,c,(t+1+s)/i,l),r.data,t,n,i,u),t===0&&this._addTileFeatures(r.range(1-s/i,c,1,l),r.data,i,n,i,u),t===i-1&&this._addTileFeatures(r.range(0,c,s/i,l),r.data,-1,n,i,u),u.features.length?u:null}getClusterExpansionZoom(e){let t=this._getOriginZoom(e)-1;for(;t<=this.options.maxZoom;){let n=this.getChildren(e);if(t++,n.length!==1)break;e=n[0].properties.cluster_id}return t}_appendLeaves(e,t,n,r,i){let a=this.getChildren(t);for(let t of a){let a=t.properties;if(a&&a.cluster?i+a.point_count<=r?i+=a.point_count:i=this._appendLeaves(e,a.cluster_id,n,r,i):i<r?i++:e.push(t),e.length===n)break}return i}_createTree(e){let t=new Rd(e.length/this.stride|0,this.options.nodeSize,Float32Array);for(let n=0;n<e.length;n+=this.stride)t.add(e[n],e[n+1]);return t.finish(),t.data=e,t}_addTileFeatures(e,t,n,r,i,a){for(let o of e){let e=o*this.stride,s=t[e+Yd]>1,c,l,u;if(s)c=$d(t,e,this.clusterProps),l=t[e],u=t[e+1];else{let n=this.points[t[e+qd]];c=n.properties;let[r,i]=n.geometry.coordinates;l=ef(r),u=tf(i)}let d={type:1,geometry:[[Math.round(this.options.extent*(l*i-n)),Math.round(this.options.extent*(u*i-r))]],tags:c},f;f=s||this.options.generateId?t[e+qd]:this.points[t[e+qd]].id,f!==void 0&&(d.id=f),a.features.push(d)}}_limitZoom(e){return Math.max(this.options.minZoom,Math.min(Math.floor(+e),this.options.maxZoom+1))}_cluster(e,t){let{radius:n,extent:r,reduce:i,minPoints:a}=this.options,o=n/(r*2**t),s=e.data,c=[],l=this.stride;for(let n=0;n<s.length;n+=l){if(s[n+Kd]<=t)continue;s[n+Kd]=t;let r=s[n],u=s[n+1],d=e.within(s[n],s[n+1],o),f=s[n+Yd],p=f;for(let e of d){let n=e*l;s[n+Kd]>t&&(p+=s[n+Yd])}if(p>f&&p>=a){let e=r*f,a=u*f,o,m=-1,h=((n/l|0)<<5)+(t+1)+this.points.length;for(let r of d){let c=r*l;if(s[c+Kd]<=t)continue;s[c+Kd]=t;let u=s[c+Yd];e+=s[c]*u,a+=s[c+1]*u,s[c+Jd]=h,i&&(o||(o=this._map(s,n,!0),m=this.clusterProps.length,this.clusterProps.push(o)),i(o,this._map(s,c)))}s[n+Jd]=h,c.push(e/p,a/p,1/0,h,-1,p),i&&c.push(m)}else{for(let e=0;e<l;e++)c.push(s[n+e]);if(p>1)for(let e of d){let n=e*l;if(!(s[n+Kd]<=t)){s[n+Kd]=t;for(let e=0;e<l;e++)c.push(s[n+e])}}}}return c}_getOriginId(e){return e-this.points.length>>5}_getOriginZoom(e){return(e-this.points.length)%32}_map(e,t,n){if(e[t+Yd]>1){let r=this.clusterProps[e[t+Xd]];return n?Object.assign({},r):r}let r=this.points[e[t+qd]].properties,i=this.options.map(r);return n&&i===r?Object.assign({},i):i}};
28function Qd(e,t,n){return{type:`Feature`,id:e[t+qd],properties:$d(e,t,n),geometry:{type:`Point`,coordinates:[nf(e[t]),rf(e[t+1])]}}}function $d(e,t,n){let r=e[t+Yd],i=r>=1e4?`${Math.round(r/1e3)}k`:r>=1e3?`${Math.round(r/100)/10}k`:r,a=e[t+Xd],o=a===-1?{}:Object.assign({},n[a]);return Object.assign(o,{cluster:!0,cluster_id:e[t+qd],point_count:r,point_count_abbreviated:i})}function ef(e){return e/360+.5}function tf(e){let t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function nf(e){return(e-.5)*360}function rf(e){let t=(180-e*360)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}function af(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var Q=class{static isAdvancedMarkerAvailable(e){return google.maps.marker&&e.getMapCapabilities().isAdvancedMarkersAvailable===!0}static isAdvancedMarker(e){return google.maps.marker&&e instanceof google.maps.marker.AdvancedMarkerElement}static setMap(e,t){this.isAdvancedMarker(e)?e.map=t:e.setMap(t)}static getPosition(e){if(this.isAdvancedMarker(e)){if(e.position){if(e.position instanceof google.maps.LatLng)return e.position;if(Number.isFinite(e.position.lat)&&Number.isFinite(e.position.lng))return new google.maps.LatLng(e.position.lat,e.position.lng)}return new google.maps.LatLng(null)}return e.getPosition()}static getVisible(e){return this.isAdvancedMarker(e)?!0:e.getVisible()}},of=class{constructor({markers:e,position:t}){this.markers=[],e&&(this.markers=e),t&&(t instanceof google.maps.LatLng?this._position=t:this._position=new google.maps.LatLng(t))}get bounds(){if(this.markers.length===0&&!this._position)return;let e=new google.maps.LatLngBounds(this._position,this._position);for(let t of this.markers)e.extend(Q.getPosition(t));return e}get position(){return this._position||this.bounds.getCenter()}get count(){return this.markers.filter(e=>Q.getVisible(e)).length}push(e){this.markers.push(e)}delete(){this.marker&&=(Q.setMap(this.marker,null),void 0),this.markers.length=0}};function sf(e,t=`assertion failed`){if(e==null)throw Error(t)}var cf=class{constructor({maxZoom:e=16}){this.maxZoom=e}noop({markers:e}){return lf(e)}},lf=e=>e.map(e=>new of({position:Q.getPosition(e),markers:[e]})),uf=class extends cf{constructor(e){var{maxZoom:t,radius:n=60}=e,r=af(e,[`maxZoom`,`radius`]);super({maxZoom:t}),this.markers=[],this.clusters=[],this.state={zoom:-1},this.superCluster=new Zd(Object.assign({maxZoom:this.maxZoom,radius:n},r))}calculate(e){let t=!1,n=e.map.getZoom();sf(n),n=Math.round(n);let r={zoom:n};if(!Nd(e.markers,this.markers)){t=!0,this.markers=[...e.markers];let n=this.markers.map(e=>{let t=Q.getPosition(e);return{type:`Feature`,geometry:{type:`Point`,coordinates:[t.lng(),t.lat()]},properties:{marker:e}}});this.superCluster.load(n)}return t||(this.state.zoom<=this.maxZoom||r.zoom<=this.maxZoom)&&(t=!Nd(this.state,r)),this.state=r,e.markers.length===0?(this.cluster
28s=[],{clusters:this.clusters,changed:t}):(t&&(this.clusters=this.cluster(e)),{clusters:this.clusters,changed:t})}cluster({map:e}){let t=e.getZoom();return sf(t),this.superCluster.getClusters([-180,-90,180,90],Math.round(t)).map(e=>this.transformCluster(e))}transformCluster({geometry:{coordinates:[e,t]},properties:n}){if(n.cluster)return new of({markers:this.superCluster.getLeaves(n.cluster_id,1/0).map(e=>e.properties.marker),position:{lat:t,lng:e}});let r=n.marker;return new of({markers:[r],position:Q.getPosition(r)})}},df=class{constructor(e,t){this.markers={sum:e.length};let n=t.map(e=>e.count),r=n.reduce((e,t)=>e+t,0);this.clusters={count:t.length,markers:{mean:r/t.length,sum:r,min:Math.min(...n),max:Math.max(...n)}}}},ff=class{render({count:e,position:t},n,r){let i=`<svg fill="${e>Math.max(10,n.clusters.markers.mean)?`#ff0000`:`#0000ff`}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" width="50" height="50">
29<circle cx="120" cy="120" opacity=".6" r="70" />
30<circle cx="120" cy="120" opacity=".3" r="90" />
31<circle cx="120" cy="120" opacity=".2" r="110" />
32<text x="50%" y="50%" style="fill:#fff" text-anchor="middle" font-size="50" dominant-baseline="middle" font-family="roboto,arial,sans-serif">${e}</text>
33</svg>`,a=`Cluster of ${e} markers`,o=Number(google.maps.Marker.MAX_ZINDEX)+e;if(Q.isAdvancedMarkerAvailable(r)){let e=new DOMParser().parseFromString(i,`image/svg+xml`).documentElement;e.setAttribute(`transform`,`translate(0 25)`);let n={map:r,position:t,zIndex:o,title:a,content:e};return new google.maps.marker.AdvancedMarkerElement(n)}let s={position:t,zIndex:o,title:a,icon:{url:`data:image/svg+xml;base64,${btoa(i)}`,anchor:new google.maps.Point(25,25)}};return new google.maps.Marker(s)}};function pf(e,t){for(let n in t.prototype)e.prototype[n]=t.prototype[n]}var mf=class e{constructor(){pf(e,google.maps.OverlayView)}},hf;(function(e){e.CLUSTERING_BEGIN=`clusteringbegin`,e.CLUSTERING_END=`clusteringend`,e.CLUSTER_CLICK=`click`,e.GMP_CLICK=`gmp-click`})(hf||={});var gf=(e,t,n)=>{t.bounds&&n.fitBounds(t.bounds)},_f=class extends mf{constructor({map:e,markers:t=[],algorithmOptions:n={},algorithm:r=new uf(n),renderer:i=new ff,onClusterClick:a=gf}){super(),this.map=null,this.idleListener=null,this.markers=[...t],this.clusters=[],this.algorithm=r,this.renderer=i,this.onClusterClick=a,e&&this.setMap(e)}addMarker(e,t){this.markers.includes(e)||(this.markers.push(e),t||this.render())}addMarkers(e,t){e.forEach(e=>{this.addMarker(e,!0)}),t||this.render()}removeMarker(e,t){let n=this.markers.indexOf(e);return n===-1?!1:(Q.setMap(e,null),this.markers.splice(n,1),t||this.render(),!0)}removeMarkers(e,t){let n=!1;return e.forEach(e=>{n=this.removeMarker(e,!0)||n}),n&&!t&&this.render(),n}clearMarkers(e){this.markers.length=0,e||this.render()}render(){let e=this.getMap();if(e instanceof google.maps.Map&&e.getProjection()){google.maps.event.trigger(this,hf.CLUSTERING_BEGIN,this);let{clusters:t,changed:n}=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()});if(n||n==null){let e=new Set;for(let n of t)n.markers.length==1&&e.add(n.markers[0]);let n=[];for(let t of this.clusters)t.marker!=null&&(t.markers.length==1?e.has(t.marker)||Q.setMap(t.marker,null):n.push(t.marker));this.clusters=t,this.renderClusters(),requestAnimationFrame(()=>n.forEach(e=>Q.setMap(e,null)))}google.maps.event.trigger(this,hf.CLUSTERING_END,this)}}onAdd(){let e=this.getMap();sf(e),this.idleListener=e.addListener(`idle`,this.render.bind(this)),this.render()}onRemove(){this.idleListener&&google.maps.event.removeListener(this.idleListener),this.reset()}reset(){this.markers.forEach(e=>Q.setMap(e,null)),this.clusters.forEach(e=>e.delete()),this.clusters=[]}renderClusters(){let e=new df(this.markers,this.clusters),t=this.getMap();this.clusters.forEach(n=>{if(n.markers.length===1)n.marker=n.markers[0];else if(n.marker=this.renderer.render(n,e,t),n.markers.forEach(e=>Q.setMap(e,null)),this.onClusterClick){let e=Q.isAdvancedMarker(n.marker)?hf.GMP_CLICK:hf.CLUSTER_CLICK;n.marker.addListener(e,e=>{google.maps.event.trigger(this,hf.CLUSTER_CLICK,n),this.onClusterClick(e,n,t)})}Q.setMap(n.marker,t)})}};function vf(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}
33function yf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var bf,xf;function Sf(){return xf?bf:(xf=1,bf=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n},bf)}var Cf=yf(Sf()),wf=`__googleMapsScriptId`,Tf;(function(e){e[e.INITIALIZED=0]=`INITIALIZED`,e[e.LOADING=1]=`LOADING`,e[e.SUCCESS=2]=`SUCCESS`,e[e.FAILURE=3]=`FAILURE`})(Tf||={});var Ef=class e{constructor({apiKey:t,authReferrerPolicy:n,channel:r,client:i,id:a=wf,language:o,libraries:s=[],mapIds:c,nonce:l,region:u,retries:d=3,url:f=`https://maps.googleapis.com/maps/api/js`,version:p}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=t,this.authReferrerPolicy=n,this.channel=r,this.client=i,this.id=a||`__googleMapsScriptId`,this.language=o,this.libraries=s,this.mapIds=c,this.nonce=l,this.region=u,this.retries=d,this.url=f,this.version=p,e.instance){if(!Cf(this.options,e.instance.options))throw Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(e.instance.options)}`);return e.instance}e.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?Tf.FAILURE:this.done?Tf.SUCCESS:this.loading?Tf.LOADING:Tf.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let e=this.url;return e+=`?callback=__googleMapsCallback&loading=async`,this.apiKey&&(e+=`&key=${this.apiKey}`),this.channel&&(e+=`&channel=${this.channel}`),this.client&&(e+=`&client=${this.client}`),this.libraries.length>0&&(e+=`&libraries=${this.libraries.join(`,`)}`),this.language&&(e+=`&language=${this.language}`),this.region&&(e+=`&region=${this.region}`),this.version&&(e+=`&v=${this.version}`),this.mapIds&&(e+=`&map_ids=${this.mapIds.join(`,`)}`),this.authReferrerPolicy&&(e+=`&auth_referrer_policy=${this.authReferrerPolicy}`),e}deleteScript(){let e=document.getElementById(this.id);e&&e.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((e,t)=>{this.loadCallback(n=>{n?t(n.error):e(window.google)})})}importLibrary(e){return this.execute(),google.maps.importLibrary(e)}loadCallback(e){this.callbacks.push(e),this.execute()}setScript(){if(document.getElementById(this.id)){this.callback();return}let e={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};Object.keys(e).forEach(t=>!e[t]&&delete e[t]),(window==null?void 0:window.google)?.maps?.importLibrary||(e=>{let t,n,r,i=`google`,a=`importLibrary`,o=document,s=window;s=s[i]||(s[i]={});let c=s.maps||={},l=new Set,u=new URLSearchParams,d=()=>t||=new Promise((i,a)=>vf(this,void 0,void 0,function*(){for(r in yield n=o.createElement(`script`),n.id=this.id,u.set(`libraries`,[...l]+``),e)u.set(r.replace(/[A-Z]/g,e=>`_`+e[0].toLowerCase()),e[r]);u.set(`callback`,`google.maps.__ib__`),n.src=this.url+`?`+u,c.__ib__=i,n.onerror=()=>t=a(Error(`The Google Maps JavaScript API could not load.`)),n.nonce=this.nonce||o.querySelector(`script[nonce]`)?.nonce||``,o.head.append(n)}));c[a]?console.warn(`The Google Maps JavaScript API only loads once. Ignoring:`,e):c[a]=(e,...t)=>l.add(e)&&d().then(()=>c[a](e,...t))})(e);let t=this.libraries.map(e=>this.importLibrary(e));t.length||t.push(this.importLibrary(`core`)),Promise.all(t).then(()=>this.callback(),e=>{let t=new ErrorEvent(`error`,{error:e});this.loadErrorCallback(t)})}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(e){if(this.errors.push(e),this.errors.length<=this.retries){let e=this.errors.length*2**this.errors.length;console.error(`Failed to load Google Maps script, retrying in ${e} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},e)}else this.onerrorEvent=e,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(e
33=>{e(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),!this.loading)if(this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){console.warn(`Google Maps already loaded outside @googlemaps/js-api-loader. This may result in undesirable behavior as options and script parameters may not match.`),this.callback();return}this.loading=!0,this.setScript()}}},Df=`AIzaSyBiYM04TuEZhOXBBInYXOAio1ikMHQTye8`,Of=null;async function kf(){if(!Of){let e=new Ef({apiKey:Df,version:`weekly`});await e.load(),Of={Map:(await e.importLibrary(`maps`)).Map,Marker:(await e.importLibrary(`marker`)).Marker}}return Of}async function Af(e,t,n,r){let{Marker:i}=await kf(),a=new i({map:r,position:e,title:n,icon:If(),optimized:!1,...t});return a.addListener(`mouseover`,()=>{a.spotlight||Mf(a)}),a.addListener(`mouseout`,()=>{a.spotlight||Nf(a)}),a}async function jf(e,t){let{Map:n}=await kf();return t={zoom:10,maxZoom:12,center:new google.maps.LatLng(22.268764039073965,24.609375),streetViewControl:!1,mapTypeControl:!1,fullscreenControl:!1,backgroundColor:`#ededed`,zoomControl:!1,styles:Ff,...t},new n(e,t)}function Mf(e){if(!e)return;let t=e.isClusterMarker?colors.primary:colors.primaryDark;e.icon.fillColor=t,e.icon.scale=2.5,e.isClusterMarker&&(e.label.fontSize=`20px`),e.setIcon(e.icon),e.setZIndex(999999)}function Nf(e){if(!e)return;let t=e.isClusterMarker?colors.black:colors.primary;e.icon.fillColor=t,e.icon.scale=2,e.isClusterMarker&&(e.label.fontSize=`14px`),e.spotlight=!1,e.setIcon(e.icon),e.setZIndex(1)}function Pf(e){if(!e)return;let t=e.getMap()||e.mapCache,n=e.getPosition()||e.positionCache;!t||!n||(e.spotlight=!0,t?.panTo(n),t?.setZoom(12))}var Ff=[{featureType:`water`,elementType:`geometry`,stylers:[{color:`#e9e9e9`},{lightness:17}]},{featureType:`landscape`,elementType:`geometry`,stylers:[{color:`#f5f5f5`},{lightness:20}]},{featureType:`road.highway`,elementType:`geometry.fill`,stylers:[{color:`#ffffff`},{lightness:17}]},{featureType:`road.highway`,elementType:`geometry.stroke`,stylers:[{color:`#ffffff`},{lightness:29},{weight:.2}]},{featureType:`road.arterial`,elementType:`geometry`,stylers:[{color:`#ffffff`},{lightness:18}]},{featureType:`road.local`,elementType:`geometry`,stylers:[{color:`#ffffff`},{lightness:16}]},{featureType:`poi`,elementType:`geometry`,stylers:[{color:`#f5f5f5`},{lightness:21}]},{featureType:`poi.park`,elementType:`geometry`,stylers:[{color:`#dedede`},{lightness:21}]},{elementType:`labels.text.stroke`,stylers:[{visibility:`on`},{color:`#ffffff`},{lightness:16}]},{elementType:`labels.text.fill`,stylers:[{saturation:36},{color:`#000000`},{lightness:40}]},{elementType:`labels.icon`,stylers:[{visibility:`off`}]},{featureType:`transit`,elementType:`geometry`,stylers:[{color:`#f2f2f2`},{lightness:19}]},{featureType:`administrative`,elementType:`geometry.fill`,stylers:[{color:`#fefefe`},{lightness:20}]},{featureType:`administrative`,elementType:`geometry.stroke`,stylers:[{color:`#fefefe`},{lightness:17},{weight:1.2}]}];function If(){return{path:`M7 0C3.13 0 0 3.13 0 7c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7Zm0 9.5a2.5 2.5 0 0 1 0-5 2.5 2.5 0 0 1 0 5Z`,fillColor:colors.primary,fillOpacity:1,strokeWeight:0,rotation:0,scale:2,anchor:new google.maps.Point(7,20)}}function Lf(){return{path:`M0 7c0-3.87 3.13-7 7-7s7 3.13 7 7c0 5.25-7 13-7 13S0 12.25 0 7Z`,fillColor:colors.black,fillOpacity:1,strokeWeight:0,rotation:0,scale:2,labelOrigin:new google.maps.Point(7,8),anchor:new google.maps.Point(7,20)}}var Rf=class extends _f{getClusters(){return this.clusters}},zf=()=>{let e=null,t=[],n=null,r=null,i=null;return{locations:[],filteredLocations:[],filter:{country:[],search:null},regionCountryMap:{},loading:!0,highlightLocation:null,spotlightLocation:null,error:!1,showFilter:!1,enableScrollIntoView:!1,preselectCountries:[],preselectContinents:[],updateUrlParams:!1,urlParams:{locationCountry:[],locationSearch:null},async init(){await this.$nextTick(),await this.fetchLocations(),this.$watch(`filteredLocations`,()=>{this.toggleLocationMarkers()}),this.$watch(`highlightLocation`,(e,t)=>{if(e!==null){this.highlightMarker(e),this.scrollLocationIntoView();return}t!==null&&this.resetMarker(t)}),this.$watch(`spotlightLocation`,(e,t)=>{this.toggleSpotlightLocation(e,t)}),this.$watch(`filter.search`,()=>{this.updateUrlParams&&this.setUrlParams(),this.filterLocations()}),this.$watch(`filter.country`,(e,t)=>{this.updateUrlParams&&this.setUrlParams(),this.filterLocations(),this.updateUrlParams=!0}),this.getUrlParams(),this.getPreselection(),this.applyUrlParams(),this.$cleanup?.(()=>this.destroyMap()),this.$watch(`$store.consentStore.services.gmaps`,async t=>{t&&!e?(await this.$nextTick(),await this.createMap()):!t&&e&&this.destroyMap()})}
33,destroyMap(){e&&(t.forEach(e=>{google.maps.event.clearInstanceListeners(e),e.setMap(null)}),t=[],n?.clearMarkers(),n=null,google.maps.event.clearInstanceListeners(e),e=null,r=null,i=null)},getPreselection(){let e=this.$root.dataset.preselectContinent?.split(`,`),t=this.$root.dataset.preselectCountry?.split(`,`);e?.forEach(e=>{this.preselectContinents.push(e)}),t?.forEach(e=>{this.preselectCountries.push(e)}),this.urlParams.locationCountry.length===0&&this.applyPreselection()},applyPreselection(){let e=this.preselectCountries.length>0?[...this.preselectCountries]:[];this.preselectContinents.length>0&&(this.preselectContinents.forEach(t=>{let n=this.regionCountryMap[t];n.some(t=>e.includes(t))||e.push(...n)}),this.updateUrlParams=!1,e?.forEach(e=>{let t=this.$root.querySelector(`input[value="${e}"]`);t&&(t.checked=!0,t.dispatchEvent(new Event(`change`,{bubbles:!0})))}))},async fetchLocations(){this.loading=!0,this.error=!1;try{let e=await(await this.$requestGet({selector:Cs.GET_ALL_LOCATIONS})).json();e.sort((e,t)=>e.lng<t.lng?-1:+(e.lng>t.lng)),this.regionCountryMap=e.reduce((e,t)=>(e[t.region]??=[],e[t.region].includes(t.country)||e[t.region].push(t.country),e),{}),this.locations=e,this.filteredLocations=e}catch(e){console.error(`Error fetching locations:`,e),this.error=!0}finally{this.loading=!1}},toggleSpotlightLocation(t,n){if(e){if(t===null){this.resetMarker(n),this.mapFitBounds();return}n!==null&&this.resetMarker(n),Mf(this.getMarkerById(t)),this.zoomToMarker(t)}},async createMap(){await kf(),e=await jf(this.$root.querySelector(`.locationfinder__map`),{zoom:2,zoomControl:window.innerWidth>=768,zoomControlOptions:{position:google.maps.ControlPosition.LEFT_BOTTOM}}),e&&(await this.createMapMarkers(),await this.clusterLocationMarkers(),this.filterLocations(),this.mapFitBounds())},async createMapMarkers(){if(e){t=[],i=new google.maps.LatLngBounds;for(let r of this.locations){let a={locationId:r.id,spotlight:!1,positionCache:new google.maps.LatLng(r.lat,r.lng),mapCache:e},o=await Af(new google.maps.LatLng(r.lat,r.lng),a,r.name);o.addListener(`click`,()=>{this.spotlightLocation=this.spotlightLocation===o.locationId?null:o.locationId}),o.addListener(`mouseover`,()=>{this.enableScrollIntoView=!0,o.spotlight||(this.highlightLocation=o.locationId)}),o.addListener(`mouseout`,()=>{o.spotlight||(this.highlightLocation=null)}),o.addListener(`visible_changed`,()=>{o.getVisible()?(n?.addMarker(o,!0),o.mapCache=e):n?.removeMarker(o,!0)}),t.push(o),i.extend(o.getPosition()||o.positionCache)}return Promise.resolve()}},clusterLocationMarkers(){return n=new Rf({map:e,markers:t,algorithmOptions:{maxZoom:6},renderer:{render:({count:e,position:t})=>{let n=Lf(),r=new google.maps.Marker({position:t,icon:n,label:{text:String(e),color:colors.white,fontSize:`14px`,fontFamily:`Evonik Prokyon`,fontWeight:`bold`},zIndex:1e3+e,isClusterMarker:!0});return r.addListener(`mouseover`,()=>{Mf(r)}),r.addListener(`mouseout`,()=>{Nf(r)}),r}}}),Promise.resolve()},mapFitBounds(){r=new google.maps.LatLngBounds;for(let e of t){let t=e.getPosition()||e.positionCache,n=this.filteredLocations.some(t=>t.id===e.locationId);t&&n&&r.extend(t)}e?.fitBounds(r.isEmpty()?i:r,{top:30,right:30,bottom:30,left:30})},toggleLocationMarkers(){e&&(t.forEach(e=>{let t=this.filteredLocations.some(t=>t.id===e.locationId);e.setVisible(t)}),n?.render(),this.mapFitBounds())},highlightMarker(t){if(t&&e){if(typeof t==`number`&&(t=this.getMarkerById(t)),!t.map){if(!n)return;for(let e of n.getClusters())if(e.markers?.includes(t)){t=e.marker;break}}Mf(t)}},resetMarker(t){if(t&&e){if(typeof t==`number`&&(t=this.getMarkerById(t)),!t.map){if(!n)return;for(let e of n.getClusters())if(e.markers?.includes(t)){t=e.marker;break}}Nf(t)}},zoomToMarker(t){t&&e&&(typeof t==`number`&&(t=this.getMarkerById(t)),Pf(t))},getMarkerById(e){return t.find(t=>t.locationId===e)},scrollLocationIntoView(){if(!this.enableScrollIntoView)return;let e=this.$root.querySelector(`.locationfinder__list`);if(!e)return;let t=e.querySelector(`.locationfinder__list-item[data-location-id="${this.highlightLocation}"]`);t&&e.scrollTo({top:t.offsetTop,behavior:`auto`})},filterLocations(){let e=this.locations;if(this.filter.country.length>0&&(e=e.filter(e=>this.filter.country.includes(e.country))),this.filter.search){let t=this.filter.search.toLowerCase();e=e.filter(e=>Object.values(e).some(e=>String(e).toLowerCase().includes(t)))}this.filteredLocations=e},handleResize(){e&&(e.setOptions({zoomControl:window.innerWidth>=768}),this.mapFitBounds())}
33,applyUrlParams(){this.urlParams.locationCountry.length>0&&this.urlParams.locationCountry?.forEach(e=>{let t=this.$root.querySelector(`input[value="${e}"]`);t&&(t.checked=!0,t.dispatchEvent(new Event(`change`,{bubbles:!0})))}),this.urlParams.locationSearch!=``&&(this.filter.search=this.urlParams.locationSearch)},getUrlParams(){let e=new URLSearchParams(window.location.search);e.get(`locationCountry`)&&(this.urlParams.locationCountry=e.get(`locationCountry`)?.toUpperCase()?.split(`,`)||[]),e.get(`locationSearch`)&&(this.urlParams.locationSearch=e.get(`locationSearch`)??null)},setUrlParams(){let{location:e}=window,t=new URL(e.toString());this.filter.country.length>0?t.searchParams.set(`locationCountry`,this.filter.country.join(`,`)):t.searchParams.delete(`locationCountry`),this.filter.search?t.searchParams.set(`locationSearch`,this.filter.search):t.searchParams.delete(`locationSearch`),history.pushState(null,``,t.toString())}}},Bf=()=>{let e=null;return{lat:null,lng:null,error:!1,async init(){this.lat=this.$root.dataset.lat??null,this.lng=this.$root.dataset.lng??null,this.$cleanup?.(()=>this.destroyMap()),this.$nextTick(()=>this.createMap())},async createMap(){try{if(!this.lat||!this.lng)throw Error(`Failed to create map. Latitude and Longitude are required.`);await kf();let t=this.$root.querySelector(`.locationmap__map`);if(!t)throw Error(`Map container not found`);if(e=await jf(t,{zoomControl:!1,center:new google.maps.LatLng(Number(this.lat),Number(this.lng))}),!e)return;let n=await Af(new google.maps.LatLng(Number(this.lat),Number(this.lng)),{},``,e),r=new google.maps.LatLngBounds;r.extend(n.getPosition()),e.fitBounds(r,{top:30,right:30,bottom:30,left:30})}catch(e){this.error=!0,console.error(`Error creating map:`,e instanceof Error?e.message:String(e))}},destroyMap(){e&&=(google.maps.event.clearInstanceListeners(e),null)}}},$={FORM_ID:`form-customer-aoi`,SEARCH_MIN_LENGTH:3,SELECT_LIMIT:300,MAIN_WIZARD_NAME:`aoiSteps`,APP_WIZARD_NAME:`aoiAppSteps`,MARKET_WIZARD_NAME:`aoiMarketSteps`,LETTER_GROUPS:[`ALL`,`1–9`,`ABC`,`DEF`,`GHI`,`JKL`,`MNO`,`PQR`,`STU`,`VWX`,`YZ`],START_AT_SUBMIT_STEP:!1},Vf=new Map,Hf=500;function Uf(e){if(typeof e!=`string`)return!1;let t=e.trim();if(t.length===0)return!1;let n=/^[0-9]/.test(t)?2:$.SEARCH_MIN_LENGTH;return t.length>=n}function Wf(e){if(typeof e!=`string`)return null;let t=e.trim().toLowerCase();if(t.length===0||!Uf(t))return null;let n=t.split(/\s+/).filter(Boolean).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`));return n.length===0?null:RegExp(`\\b(${n.join(`|`)})`,`i`)}function Gf(e){return e.replace(/[&<>"']/g,e=>({"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`})[e])}function Kf(e){let t=Vf.get(e);return t!==void 0&&(Vf.delete(e),Vf.set(e,t)),t}function qf(e,t){if(Vf.set(e,t),Vf.size>Hf){let[e]=Vf.keys();e&&Vf.delete(e)}}function Jf(e,t){if(!t||!Uf(t))return e;let n=`${t}::${e}`,r=Kf(n);if(r)return r;let i=Wf(t);if(!i)return e;let a=i.test(e)?e.replace(i,e=>`<em>${Gf(e)}</em>`):e;return qf(n,a),a}function Yf(e){return Object.entries(e).map(([e,t])=>({key:e,markets:t.map(e=>({...e,escapedTitle:Gf(e.marketTitle),applications:e.applications.map(e=>({...e,escapedTitle:Gf(e.applicationTitle)}))}))}))}function Xf(e){let t={};return Object.values(e).forEach(e=>{e.applications.forEach(n=>{t[n.applicationId]||(t[n.applicationId]={applicationId:n.applicationId,applicationTitle:n.applicationTitle,escapedTitle:Gf(n.applicationTitle),markets:[],_sortKey:n.applicationTitle.toLowerCase()}),t[n.applicationId].markets.push({marketId:e.marketId,marketTitle:e.marketTitle,escapedTitle:Gf(e.marketTitle),m2aId:n.m2aId,m2aTitle:n.m2aTitle,selected:n.selected,isGranted:n.isGranted})})}),t}function Zf(e){let t={},n=Object.values(e).sort((e,t)=>e.applicationTitle.localeCompare(t.applicationTitle,void 0,{sensitivity:`base`}));for(let e of n){let n=e.applicationTitle.trim().charAt(0).toUpperCase();/^[A-ZÄÖÜ0-9]$/.test(n)&&(t[n]||(t[n]=[]),t[n].push(e))}let r=Object.keys(t).sort((e,t)=>e.localeCompare(t,void 0,{sensitivity:`base`})).map(e=>({key:e,apps:t[e]})),i=r.filter(e=>/^\d/.test(e.key)),a=r.filter(e=>!/^\d/.test(e.key));return[...i,...a]}function Qf(e){let t={};return e.flatMap(e=>
33e.markets).forEach(e=>{let n=e.marketTitle.toLowerCase();t[e.marketId]={...e,_sortKey:n,applications:e.applications.map(t=>({...t,marketId:e.marketId,marketTitle:e.marketTitle}))}}),t}function $f(e){let t={};for(let n of Object.values(e))for(let e of n.applications)t[e.m2aId]={m2aId:e.m2aId,marketId:e.marketId,applicationId:e.applicationId,m2aEntry:e,marketEntry:n};return t}var ep=()=>({_destroyed:!1,m2aMap:{},a2mMap:{},groupedM2aMap:[],groupedA2mMap:[],flatM2aIndex:{},_sortedMarketIds:[],_sortedApplicationIds:[],selectedMarketIds:[],selectedM2aIds:[],selectedApplicationIds:[],selectedMarkets:[],selectedApplications:[],selectedM2aMap:[],_isAllM2aSelectedCache:new Map,_previousFirstApplicationId:null,filteredMarkets:[],filteredApplications:[],cachedSelection:{m2aIds:[],marketIds:[],applicationIds:[]},_batching:!1,hydrating:!1,fetchInProgress:!0,fetchFailed:!1,submissionInProgress:!1,submissionFailed:!1,advancedSearchMode:!1,letterGroups:[],letterGroupFilter:`ALL`,searchTerm:{markets:``,applications:``,m2a:{}},get formId(){return $.FORM_ID},get mainWizard(){return this.fetchInProgress||this.fetchFailed||this.hydrating?null:this.$steps?.use?.($.MAIN_WIZARD_NAME)},get appWizard(){if(this.fetchInProgress||this.fetchFailed||this.hydrating||this.advancedSearchMode)return null;let e=this.$steps?.use?.($.APP_WIZARD_NAME);return e?.steps?.length?e:null},get marketWizard(){if(this.fetchInProgress||this.fetchFailed||this.hydrating||!this.advancedSearchMode)return null;let e=this.$steps?.use?.($.MARKET_WIZARD_NAME);return e?.steps?.length?e:null},get stepTitles(){return{markets:this.$i18n(`Market selection`),applications:this.$i18n(`Application selection`),submit:this.$i18n(`Submit`),requestSubmitted:this.$i18n(`Request submitted`)}},get stepOrder(){let{markets:e,applications:t,submit:n,requestSubmitted:r}=this.stepTitles;return[...this.advancedSearchMode?[t,e,n]:[e,t,n],r]},get isAtMarketsStep(){return this.mainWizard?.currentTitle===this.stepTitles.markets},get isAtApplicationsStep(){return this.mainWizard?.currentTitle===this.stepTitles.applications},get isAtSubmitStep(){return this.mainWizard?.currentTitle===this.stepTitles.submit},get isAtRequestSubmittedStep(){return this.mainWizard?.currentTitle===this.stepTitles.requestSubmitted},get selectedM2as(){return this.hydrating||!this.flatM2aIndex?[]:this.selectedM2aIds.map(e=>this.flatM2aIndex[e]?.m2aEntry).filter(Boolean)},get selectLimitTextStyle(){return this.selectLimitReached?`text-color-error`:`text-color-typo-light font-bold`},get selectLimitText(){if(this.isAtApplicationsStep&&!this.advancedSearchMode||this.isAtMarketsStep&&this.advancedSearchMode){let e=this.selectLimitReached?`form.aoi.text.m2a.limit.warning`:`form.aoi.text.m2a.limit.count`;return this.$i18n(e,[this.selectedM2aIds.length,$.SELECT_LIMIT.toString()])}return!1},get selectLimitReached(){return this.selectedM2aIds.length>$.SELECT_LIMIT},get preventSubmission(){return this.$store.modalStore.getPreviousModal()?.modalPath===this.$root.dataset.profileModalPath},get isValid(){return this.selectedM2aIds.length>0&&!this.selectLimitReached},get showPrevButton(){let e=this.mainWizard;return e?!e.isFirst&&!this.isAtRequestSubmittedStep:!1},get showNextButton(){let e=this.mainWizard;return e?!e.isLast&&!this.isAtSubmitStep&&!this.fetchFailed:!1},get nextStepLabel(){if(this.isAtMarketsStep){if(this.advancedSearchMode)return this.$i18n(`Continue`);let e=this.selectedMarketIds.length>1?`form.aoi.button.continue.markets.label.multiple`:`form.aoi.button.continue.markets.label.single`;return this.$i18n(e,[this.selectedMarketIds.length])}if(this.isAtApplicationsStep){if(this.advancedSearchMode){let e=this.selectedApplicationIds.length>1?`form.aoi.button.continue.m2a.label.multiple`:`form.aoi.button.continue.m2a.label.single`;return this.$i18n(e,[this.selectedApplicationIds.length])}let e=this.appWizard;if(!e)return this.$i18n(`Continue`);let t=e.current,n=this.selectedMarkets[t]?.marketId,r=this.getSelectedM2as(n);if(r.length>0){let e=r.length>1?`form.aoi.button.continue.m2a.label.multiple`:`form.aoi.button.continue.m2a.label.single`;return this.$i18n(e,[r.length])}}return this.$i18n(`Continue`)},get preventNextStep(){if(this.submissionInProgress||this.fetchInProgress||this.hydrating)return!0;
33if(this.isAtMarketsStep){if(this.advancedSearchMode){let e=this.marketWizard?.current??0,t=this.selectedApplications[e];return t?t.markets.filter(e=>this.selectedM2aIds.includes(e.m2aId)).length===0||this.selectLimitReached:!0}return this.selectedMarkets.length===0}if(this.isAtApplicationsStep){if(this.advancedSearchMode)return this.selectedApplicationIds.length===0;let e=this.appWizard?.current??0,t=this.selectedMarkets[e];return t?this.getSelectedM2as(t.marketId).length===0||this.selectLimitReached:!0}return!1},destroy(){this._destroyed=!0},async init(){if(this.hydrating=!0,await this.$nextTick(),await new Promise(requestAnimationFrame),!this._destroyed){try{if(await this.fetchAoIJson(),this._destroyed)return;if(!this.fetchFailed){if(await this.restoreFormSelection(),this._destroyed||(await this.$nextTick(),this._destroyed))return;this.updateSelectedMarkets(!0),this.updateSelectedApplications(!0),this.updateSelectedM2aMap(!0);let e=[$.MAIN_WIZARD_NAME,this.advancedSearchMode?$.MARKET_WIZARD_NAME:$.APP_WIZARD_NAME];if(await this.$nextTick(),await new Promise(requestAnimationFrame),this._destroyed||(await Promise.allSettled(e.map(e=>this.$steps.waitFor(e))),this._destroyed))return}}catch(e){console.error(`AOI init() failed:`,e)}finally{if(this.hydrating=!1,await this.$nextTick(),this._destroyed)return}this.$watch(`advancedSearchMode`,async e=>{if(this._destroyed||this.fetchInProgress||this.fetchFailed||(this.hydrating=!0,await this.$nextTick(),await new Promise(requestAnimationFrame),this._destroyed))return;this.selectedM2aIds=[...this.cachedSelection.m2aIds],this.selectedMarketIds=[...this.cachedSelection.marketIds],this.selectedApplicationIds=[...this.cachedSelection.applicationIds],this.updateSelectedMarkets(!0),this.updateSelectedApplications(!0),this.updateSelectedM2aMap(!0);let t=[$.MAIN_WIZARD_NAME,e?$.MARKET_WIZARD_NAME:$.APP_WIZARD_NAME];await this.$nextTick(),await new Promise(requestAnimationFrame),!this._destroyed&&(await Promise.allSettled(t.map(e=>this.$steps.waitFor(e))),!this._destroyed&&(this.hydrating=!1,await this.$nextTick()))}),this.$watch(`searchTerm.markets`,e=>{this._destroyed||this.updateFilteredMarkets(e)}),this.$watch(`searchTerm.applications`,e=>{this._destroyed||this.updateFilteredApplications(e)}),this.$watch(`letterGroupFilter`,()=>{this._destroyed||this.updateFilteredApplications(this.searchTerm.applications)}),this.$watch(`groupedA2mMap`,()=>{this._destroyed||this.updateLetterGroups()}),this.$watch(`selectedMarketIds`,()=>{this._batching||this._destroyed||this.updateSelectedMarkets()}),this.$watch(`selectedApplicationIds`,()=>{this._batching||this._destroyed||this.updateSelectedApplications()}),this.$watch(`selectedM2aIds`,()=>{this._destroyed||(this._isAllM2aSelectedCache.clear(),!this._batching&&this.updateSelectedM2aMap())}),!this._destroyed&&(this.updateFilteredMarkets(this.searchTerm.markets),this.updateFilteredApplications(this.searchTerm.applications),this.updateLetterGroups())}},async handleSubmit(){if(!(this.submissionInProgress||!this.isAtSubmitStep||!this.isValid)){if(this.submissionFailed=!1,this.submissionInProgress=!0,this.preventSubmission){this.$store.formsStore.removeForm(this.formId),this.$store.formsStore.storeFormInput(this.formId,[{name:`aoiM2aIds`,value:this.selectedM2aIds},{name:`aoiMap`,value:this.selectedM2aMap},{name:`aoiAdvancedSearchMode`,value:this.advancedSearchMode}]),this.submissionInProgress=!1,this.$dispatch(`modal:close`);return}try{let e=this.$root.dataset.servletEndpoint;if(await(await this.$requestPost({selector:Cs[e],body:{areasOfInterest:this.selectedM2aIds}})).json()===!1)throw Error(`AOI submission failed (false response)`);this.submissionInProgress=!1,this.$nextTick(()=>{window.dispatchEvent(new CustomEvent(`aoi-update-success`)),this.nextStep(),this.$store.formsStore.removeForm(this.formId),this.$store.formsStore.storeFormInput(this.formId,[{name:`aoiAdvancedSearchMode`,value:this.advancedSearchMode}])})}catch(e){console.error(`Error storing AOI:`,e),this.submissionFailed=!0}finally{await this.$nextTick(),this.submissionInProgress=!1}}},async fetchAoIJson(){try{this.fetchInProgress=!0;let e=await(await this.$requestGet({selector:Cs.GET_AREAS_OF_INTERESTS})).json();if(Object.entries(e).length===0)throw Error(`AoI fetch returned empty object.`);this.groupedM2aMap=K.raw(Yf(e)),this.m2aMap=K.raw(Qf(this.groupedM2aMap)),this.a2mMap=K.raw(Xf(this.m2aMap)),this.groupedA2mMap=K.raw(Zf(this.a2mMap)),this.flatM2aIndex=K.raw($f(this.m2aMap)),this._sortedMarketIds=Object.keys(this.m2aMap).sort((e,t)=>
33this.m2aMap[e]._sortKey.localeCompare(this.m2aMap[t]._sortKey)),this._sortedApplicationIds=Object.keys(this.a2mMap).sort((e,t)=>this.a2mMap[e]._sortKey.localeCompare(this.a2mMap[t]._sortKey)),this.fetchFailed=!1}catch(e){console.error(`Error fetching AoI:`,e),this.fetchFailed=!0}finally{this.fetchInProgress=!1}},restoreFormSelection(){return new Promise(async e=>{try{let t=this.$store.formsStore.getFormInputValue(this.formId,`aoiM2aIds`);if(Array.isArray(t)&&t.length>0&&this.preventSubmission){await new Promise(requestAnimationFrame);let n=new Set,r=new Set;for(let e=0;e<t.length;e++){let i=t[e],a=this.flatM2aIndex[i];a&&(n.add(a.marketId),r.add(a.applicationId)),e%100==0&&await Promise.resolve()}this.cachedSelection=K.raw({m2aIds:[...t],marketIds:[...n],applicationIds:[...r]}),this.selectedM2aIds=this.cachedSelection.m2aIds,this.selectedMarketIds=this.cachedSelection.marketIds,this.selectedApplicationIds=this.cachedSelection.applicationIds,await this.$nextTick(),e()}else await this.applyProfileSelection(),e()}catch(t){console.error(`restoreFormSelection(): failed`,t),e()}})},applyProfileSelection(){return new Promise(async e=>{try{if(!this.flatM2aIndex)return console.warn(`applyProfileSelection(): missing flatM2aIndex`),e();let t=new Set,n=new Set,r=[],i=Object.values(this.flatM2aIndex);for(let e=0;e<i.length;e++){let a=i[e],{m2aEntry:o}=a;o?.selected&&(r.push(a.m2aId),t.add(a.marketId),n.add(a.applicationId)),e%100==0&&await Promise.resolve()}this.cachedSelection=K.raw({m2aIds:[...new Set(r)],marketIds:[...t],applicationIds:[...n]}),this.selectedM2aIds=this.cachedSelection.m2aIds,this.selectedMarketIds=this.cachedSelection.marketIds,this.selectedApplicationIds=this.cachedSelection.applicationIds,await this.$nextTick(),e()}catch(t){console.error(`applyProfileSelection(): failed`,t),e()}})},async toggleAdvancedSearchMode(){this.hydrating=!0,await this.$nextTick(),await new Promise(requestAnimationFrame),this.advancedSearchMode=!this.advancedSearchMode,this._previousFirstApplicationId=null},resetFilters(){this.searchTerm.markets=``,this.searchTerm.applications=``,this.searchTerm.m2a={},this.letterGroupFilter=$.LETTER_GROUPS[0]},updateFilteredMarkets(e){if(!this.groupedM2aMap||this.hydrating){this.filteredMarkets=[];return}let t=Wf(e);if(!Uf(e)||!t){this.filteredMarkets=this.groupedM2aMap;return}let n=[];for(let e of this.groupedM2aMap){let r=e.markets.filter(e=>t.test(e.escapedTitle));r.length>0&&n.push({key:e.key,markets:r})}this.filteredMarkets=n},updateFilteredApplications(e){if(!this.groupedA2mMap||this.hydrating){this.filteredApplications=[];return}let t=Wf(e),n=this.letterGroupFilter;if(!Uf(e)||!t){this.filteredApplications=this.groupedA2mMap.filter(e=>n===`ALL`||n.includes(e.key));return}let r=[];for(let e of this.groupedA2mMap){if(n!==`ALL`&&!n.includes(e.key))continue;let i=e.apps.filter(e=>t.test(e.escapedTitle));i.length>0&&r.push({key:e.key,apps:i})}this.filteredApplications=r},updateLetterGroups(){if(!Array.isArray(this.groupedA2mMap)||this.groupedA2mMap.length===0){this.letterGroups=[$.LETTER_GROUPS[0]];return}let e=this.groupedA2mMap.map(e=>e.key),t=t=>[...t].some(t=>e.includes(t)),n=$.LETTER_GROUPS.filter(n=>n===$.LETTER_GROUPS[0]?!0:n===$.LETTER_GROUPS[1]?e.some(e=>/^[0-9]$/.test(e)):t(n));this.letterGroups=n},updateSelectedMarkets(e=!1){if(!this.m2aMap||!Array.isArray(this.selectedMarketIds)||this.hydrating&&!e)return;let t=new Set(this.selectedMarketIds);this.selectedMarkets=this._sortedMarketIds.filter(e=>t.has(e)).map(e=>this.m2aMap[e])},updateSelectedApplications(e=!1){if(!this.a2mMap||!Array.isArray(this.selectedApplicationIds)||this.hydrating&&!e)return;let t=new Set(this.selectedApplicationIds);this.selectedApplications=this._sortedApplicationIds.filter(e=>t.has(e)).map(e=>this.a2mMap[e])},updateSelectedM2aMap(e=!1){if(!this.flatM2aIndex){this.selectedM2aMap=[];return}if(this.hydrating&&!e)return;let t={};for(let e=0;e<this.selectedM2aIds.length;e++){let n=this.selectedM2aIds[e],r=this.flatM2aIndex[n];if(!r)continue;let{marketId:i,m2aEntry:a}=r,o=this.m2aMap[i];if(!o)continue;let s=t[i];s||=t[i]={marketId:i,marketTitle:o.marketTitle,applications:[]},s.applications.push(a)}let n=new Set(Object.keys(t)),r=[];for(let e of this._sortedMarketIds)n.has(e)&&r.push(t[e]);this.selectedM2aMap=r},toggleMarket(e){if(!this.flatM2aIndex||!Object.keys(this.flatM2aIndex).length)return;let t=e.target;if(!t)return;let n=t.value;if(this._batching=!0,t.checked){if(this.selectedMarketIds.includes(n))return;this.selectedMarketIds.push(n)}else this.selectedMarketIds=this.selectedMarketIds.filter(e=>e!==n),this.selectedM2aIds=this.selectedM2aIds.filter(e=>this.flatM2aIndex[e]?.marketId!==n);this._batching=!1},toggleApplication(e){if(!this.flatM2aIndex||!Object.keys(this.flatM2aIndex).length)return;let t=e.target;if(!t)return;let n=t.value;if(this._batching=!0,t.checked){if(this.selectedApplicationIds.includes(n))return;this.selectedApplicationIds.push(n)}else this.selectedApplicationIds=this.selectedApplicationIds.filter(e=>e!==n),this.selectedM2aIds=this.selectedM2aIds.filter(e=>this.flatM2aIndex[e]?.applicationId!==n);this._batching=!1},toggleAllM2as(e){let t=e.target;if(!t)return;let n=t.value,r=this.m2aMap[n];if(r){this._batching=!0;try{if(t.checked){let e=r.applications.map(e=>e.m2aId).filter(e=>!this.selectedM2aIds.includes(e));this.selectedM2aIds=[...this.selectedM2aIds,...e]}else{let e=r.applications.map(e=>e.m2aId);this.selectedM2aIds=this.selectedM2aIds.filter(t=>!e.includes(t))}}finally{this._batching=!1}}},filteredM2as(e){let t=this.m2aMap[e];if(!t)return[];let n=(this.searchTerm.m2a[e]||``).trim().toLowerCase(),r=Wf(n);return!Uf(n)||!r?t.applications:t.applications.filter(e=>r.test(e.escapedTitle))},getSelectedM2as(e){if(!this.flatM2aIndex)return[];let t=[];for(let n=0;n<this.selectedM2aIds.length;n++){let r=this.selectedM2aIds[n],i=this.flatM2aIndex[r];i&&i.marketId===e&&t.push(i.m2aEntry)}return t},getSelectedA2ms(e){if(!this.flatM2aIndex||!this.selectedM2aIds.length)return[];let t=[],n=new Set;for(let r of this.selectedM2aIds){let i=this.flatM2aIndex[r];!i||i.applicationId!==e||n.has(i.marketId)||(n.add(i.marketId),t.push(i.m2aEntry))}return t},removeEmptyMarket(e){e&&this.$nextTick(()=>{this.selectedM2aIds.some(t=>this.flatM2aIndex[t]?.marketId===e)||(this.selectedMarketIds=this.selectedMarketIds.filter(t=>t!==e))})},removeEmptyApplication(e){e&&this.$nextTick(()=>{this.selectedM2aIds.some(t=>this.flatM2aIndex[t]?.applicationId===e)||(this.selectedApplicationIds=this.selectedApplicationIds.filter(t=>t!==e))})},isAllM2asSelected(e){if(!this.flatM2aIndex||!this.selectedM2aIds.length)return!1;if(this._isAllM2aSelectedCache.has(e))return this._isAllM2aSelectedCache.get(e);let t=new Set(this.selectedM2aIds),n=0,r=0;for(let i in this.flatM2aIndex)this.flatM2aIndex[i].marketId===e&&(n++,t.has(i)&&r++);let i=n>0&&r===n;return this._isAllM2aSelectedCache.set(e,i),i},isValidSearch:Uf,handleMarketStepChange(){if(!this.advancedSearchMode||!this.selectedApplications.length)return;let e=this.marketWizard;if(!e)return;let t=e.current??0,n=this.selectedApplications[t];if(n){if(n.markets.length===1){let e=n.markets[0].m2aId;this.selectedM2aIds.includes(e)||(this._batching=!0,this.selectedM2aIds.push(e),this._batching=!1)}this.$dispatch(`modal:scrollToTop`)}},handleMarketStepsRefresh(){if(!this.advancedSearchMode||!this.selectedApplications.length)return;let e=this.selectedApplications[0],t=e.applicationId,n=this._previousFirstApplicationId,r=n&&n!==t;if(this._previousFirstApplicationId=t,r){let t=this.selectedApplications.find(e=>e.applicationId===n);if(t&&t.markets.length===1){let e=t.markets[0].m2aId;this.cachedSelection.m2aIds.includes(e)||(this._batching=!0,this.selectedM2aIds=this.selectedM2aIds.filter(t=>t!==e),this._batching=!1)}if(e&&e.markets.length===1){let t=e.markets[0].m2aId;this.selectedM2aIds.includes(t)||(this._batching=!0,this.selectedM2aIds.push(t),this._batching=!1)}return}if(!n&&e&&e.markets.length===1){let t=e.markets[0].m2aId;this.selectedM2aIds.includes(t)||(this._batching=!0,this.selectedM2aIds.push(t),this._batching=!1)}},prevStep(){if(!this.submissionInProgress){if(this.advancedSearchMode){let e=this.marketWizard;if(this.isAtMarketsStep&&e&&!e.isFirst){e.previous();return}}else{let e=this.appWizard;if(this.isAtApplicationsStep&&e&&!e.isFirst){e.previous();return}}if(this.isAtSubmitStep){if(this.advancedSearchMode&&!this.selectedApplicationIds.length){this.safeGoTo(this.stepTitles.applications);return}if(!this.selectedMarketIds.length){this.safeGoTo(this.stepTitles.markets);return}}this.mainWizard?.previous()}},nextStep(){if(this.preventNextStep)return;let e=this.mainWizard;if(!e)return;let t=e.current+1,n=e.titles[t];if(!n){console.warn(`No next step found`);return}if(n===this.stepTitles.submit&&!this.isValid){console.warn(`Attempted to reach submit step without valid selection`);return}let r=(this.advancedSearchMode?{[this.stepTitles.markets]:()=>this.selectedApplicationIds.length>0,[this.stepTitles.submit]:()=>this.selectedM2aIds.length>0}:{[this.stepTitles.applications]:()=>this.selectedMarketIds.length>0,[this.stepTitles.submit]:()=>this.selectedM2aIds.length>0})[n];if(r&&!r()){console.warn(`Cannot go to ${n} — requirement not met`);return}if(this.advancedSearchMode){let e=this.marketWizard;if(this.isAtMarketsStep&&e&&!e.isLast){e.next();return}}else{let e=this.appWizard;if(this.isAtApplicationsStep&&e&&!e.isLast){e.next();return}}e.next()},goToApplicationSelection(e){if(e<0||e>=this.selectedMarkets.length){console.warn(`Invalid market index for application selection:`,e);return}this.safeGoTo(this.stepTitles.applications),this.$nextTick(()=>{this.appWizard.goToIndex(e)})},goToMarketSelection(e){if(e<0||e>=this.selectedApplicationIds.length){console.warn(`Invalid application index for market selection:`,e);return}this.safeGoTo(this.stepTitles.markets),this.$nextTick(()=>{this.marketWizard.goToIndex(e)})},safeGoTo(e){if(!Object.values(this.stepTitles).includes(e)){console.warn(`Unknown step: ${e}`);return}if(e===this.stepTitles.submit&&!this.isValid){console.warn(`Attempted to go to submit step without valid selection`);return}let t=(this.advancedSearchMode?{[this.stepTitles.markets]:()=>this.selectedApplicationIds.length>0,[this.stepTitles.submit]:()=>this.selectedM2aIds.length>0}:{[this.stepTitles.applications]:()=>this.selectedMarketIds.length>0,[this.stepTitles.submit]:()=>this.selectedM2aIds.length>0})[e];if(t&&!t()){console.warn(`Cannot go to ${e} — requirement not met`);return}this.mainWizard?.goTo(e)},highlightSearchTerm:Jf}),tp=()=>({init(){this.tableEl=this.$root.querySelector(`table`),this.setIsScrollable()},setIsScrollable(){if(!this.tableEl){console.warn(`Table element not found.`);return}let e=this.$root.offsetWidth,t=this.tableEl.offsetWidth;this.isScrollable=t>e}}),np=1280,rp=36/2;K.store(`globalStore`,us),K.store(`consentStore`,_s),K.store(`headerStore`,vs),K.store(`lightboxStore`,ys),K.store(`subnavStore`,bs),K.store(`formsStore`,xs),K.store(`modalStore`,Ss),K.store(`accessRequestStore`,Es),K.data(`swiperSlider`,Zl),K.data(`showMore`,Ql),K.data(`consentContainer`,e=>ou(e)),K.data(`header`,fu),K.data(`subnavMenu`,pu),K.data(`subnavTree`,mu),K.data(`subnavFlyout`,hu),K.data(`breadcrumb`,su),K.data(`modal`,cu),K.data(`popover`,du),K.data(`shareModal`,gu),K.data(`accessRequestModal`,_u),K.data(`marketo`,Du),K.data(`aemMarketoForm`,ku),K.data(`aemServletForm`,Au),K.data(`youtube`,au),K.data(`movingImage`,nu),K.data(`video`,$l),K.data(`ics`,uu),K.data(`anchorsList`,ju),K.data(`eqsData`,Mu),K.data(`calcMetaminoValue`,Pu),K.data(`calcMetaminoFeedMill`,Fu),K.data(`calcMetaminoNutrition`,Iu),K.data(`slideInBanner`,Lu),K.data(`locationfinder`,zf),K.data(`locationMap`,Bf),K.data(`areaOfInterest`,ep),K.data(`table`,tp),K.data(`hotspotImage`,()=>{function e(e){let t=/s7jsonResponse\(([\s\S]*)\);?$/.exec(e);if(!t)throw Error(`Invalid response format`);let n=t[1].split(/,\s*""\s*$/)[0];return JSON.parse(n)}function t(e,t){return/^\/content\/experience-fragments\/[^/]+\/[^/]+\/([^/]+)(?:\/|$)/.exec(e)?.[1]===t?e:e.replace(/^(\/content\/experience-fragments\/[^/]+\/[^/]+\/)[^/]+(\/|$)/,(e,n,r)=>n+t+r)}async function n(e){let t=document.cookie.includes(`wcmmode`)?`?wcmmode=disabled`:``,n=await fetch(`${e}.html${t}`);if(!n.ok)throw Error(`HTTP ${n.status}`);let r=await n.text();return new DOMParser().parseFromString(r,`text/html`).querySelector(`.hotspot-content`)?.outerHTML??null}return{isLoading:!0,isFetching:!1,dialogOpen:!1,assetUrl:null,width:null,height:null,currentHotspotId:null,hotspotData:[],scrollContainer:null,scrollPosition:0,maxScroll:null,get aspectRatio(){return(this.width/this.height).toFixed(3)},get currentHotspot(){return this.hotspotData.find(e=>e.id===this.currentHotspotId)||null}
33,async init(){this.assetUrl=this.$root.dataset.assetUrl??null,this.width=parseInt(this.$root.dataset.assetWidth??``,10)??null,this.height=parseInt(this.$root.dataset.assetHeight??``,10)??null,this.scrollContainer=this.$root.querySelector(`.hotspot-image__scrollcontainer`)??this.$root,await this.fetchHotspotData(),this.computeHotspotPositions(),this.isLoading=!1,await this.$nextTick(),this.setMaxScroll()},async fetchHotspotData(){if(this.assetUrl)try{let t=await fetch(`${this.assetUrl}?req=map,json&size=${np};0&${Date.now()}`);if(!t.ok)throw Error(`Fetch failed: ${t.status}`);let n=e(await t.text());this.hotspotData=n.map((e,t)=>{let n=typeof e.href==`string`&&e.href.startsWith(`quickview:`),r=e.id??`hotspot-${t+1}`;if(n){let t=e.href.replace(`quickview:`,``),n=new URLSearchParams(t).get(`reservedVal_productPath`);return{...e,id:r,type:`fragment`,href_origin:e.href,href:n||null,xfContent:null,position:null}}return{...e,id:r,type:`link`,href_origin:e.href,position:null}})}catch(e){console.error(`Failed to fetch hotspot data:`,e)}},async fetchHotspotContent(){let e=this.currentHotspot;if(!(!e||e.type!==`fragment`||!e.href||e.xfContent)){this.isFetching=!0;try{let r=document.documentElement.lang||`en`,i=t(e.href,r);try{e.xfContent=await n(i)}catch(t){console.error(`Lang-specific fragment not found (${r}), falling back:`,t),e.xfContent=await n(e.href)}}finally{this.isFetching=!1}}},computeHotspotPositions(){if(!this.width||!this.height)return;let e=this.height*(np/this.width);for(let t of this.hotspotData){if(!Array.isArray(t.coords)||t.coords.length<2)continue;let n=t.coords,r=1/0,i=-1/0;for(let e=0;e<n.length;e+=2){let t=n[e],a=n[e+1];t<r&&(r=t),a>i&&(i=a)}let a=r/np*100,o=i/e*100;t.position={left:`calc(${a}% - ${rp}px)`,top:`calc(${o}% - ${rp}px)`}}},async showModal(e){if(!e||e===this.currentHotspotId)return;this.$store.globalStore.disableScrolling(),this.currentHotspotId=e,await this.$nextTick();let t=this.$root.querySelector(`dialog.hotspot-image__modal`);if(!t)return this.closeModal();t.showModal();try{await this.fetchHotspotContent()}catch{return this.closeModal()}if(!this.currentHotspot?.xfContent)return this.closeModal();this.handleEmbededScripts(t),await this.$nextTick(),this.dialogOpen=!0,await this.$nextTick(),document.activeElement?.blur()},closeModal(){this.currentHotspotId=null;let e=this.$root.querySelector(`dialog.hotspot-image__modal`);e&&e.close(),this.$store.globalStore.enableScrolling(),this.$nextTick(()=>{this.dialogOpen=!1})},handleEmbededScripts(e){e.querySelectorAll(`script`).forEach(e=>{let t=document.createElement(`script`);Array.from(e.attributes).forEach(e=>t.setAttribute(e.name,e.value)),t.textContent=e.textContent,t.async=!0,e.replaceWith(t)})},setMaxScroll(){this.scrollContainer&&(this.maxScroll=this.scrollContainer.scrollWidth-this.scrollContainer.clientWidth)},onScroll(){!this.maxScroll||this.maxScroll<=0||(this.scrollPosition=(this.scrollContainer.scrollLeft/this.maxScroll*100).toFixed(1))},onScrollbarDrag(){if(!this.maxScroll||!this.scrollContainer)return;let e=this.$el.value/100*this.maxScroll;this.scrollContainer.scrollLeft=e}}}),K.data(`podigee`,()=>({init(){this.$cleanup?.(()=>this.unmountPlayer())},unmountPlayer(){this.$root?.replaceChildren()}})),K.plugin(go),K.plugin(xo),K.plugin(Jo),K.plugin(ss),K.plugin(ls),window.Alpine=K,window.Alpine.start();var ip=t(((e,t)=>{(function(e,n){var r=n(e,e.document,Date);e.lazySizes=r,typeof t==`object`&&t.exports&&(t.exports=r)})(typeof window<`u`?window:{},function(e,t,n){var r,i;if((function(){var t,n={lazyClass:`lazyload`,loadedClass:`lazyloaded`,loadingClass:`lazyloading`,preloadClass:`lazypreload`,errorClass:`lazyerror`,autosizesClass:`lazyautosizes`,fastLoadedClass:`ls-is-cached`,iframeLoadMode:0,srcAttr:`data-src`,srcsetAttr:`data-srcset`,sizesAttr:`data-sizes`,minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(t in i=e.lazySizesConfig||e.lazysizesConfig||{},n)t in i||(i[t]=n[t])})(),!t||!t.getElementsByClassName)return{init:function(){},cfg:i,noSupport:!0};var a=t.documentElement,o=e.HTMLPictureElement,s=`addEventListener`,c=`getAttribute`,l=e[s].bind(e),u=e.setTimeout,d=e.requestAnimationFrame||u,f=e.requestIdleCallback,p=/^picture$/i,m=[`load`,`error`,`lazyincluded`,`_lazyloaded`],h={},g=Array.prototype.forEach,_=function(e,t){return h[t]||(h[t]=RegExp(`(\\s|^)`+t+`(\\s|$)`)),h[t].test(e[c](`class`)||``)&&h[t]},v=function(e,t){_(e,t)||e.setAttribute(`class`,(e[c](`class`)||``).trim()+` `+t)},y=function(e,t){var n;(n=_(e,t))&&e.setAttribute(`class`,(e[c](`class`)||``).replace(n,` `))},b=function(e,t,n){var r=n?s:`removeEventListener`;n&&b(e,t),m.forEach(function(n){e[r](n,t)})},x=function(e,n,i,a,o){var s=t.createEvent(`Event`);return i||={},i.instance=r,s.initEvent(n,!a,!o),s.detail=i,e.dispatchEvent(s),s},S=function(t,n){var r;!o&&(r=e.picturefill||i.pf)?(n&&n.src&&!t[c](`srcset`)&&t.setAttribute(`srcset`,n.src),r({reevaluate:!0,elements:[t]})):n&&n.src&&(t.src=n.src)},C=function(e,t){return(getComputedStyle(e,null)||{})[t]},w=function(e,t,n){for(n||=e.offsetWidth;n<i.minSize&&t&&!e._lazysizesWidth;)n=t.offsetWidth,t=t.parentNode;return n},T=(function(){var e,n,r=[],i=[],a=r,o=function(){var t=a;
33for(a=r.length?i:r,e=!0,n=!1;t.length;)t.shift()();e=!1},s=function(r,i){e&&!i?r.apply(this,arguments):(a.push(r),n||(n=!0,(t.hidden?u:d)(o)))};return s._lsFlush=o,s})(),E=function(e,t){return t?function(){T(e)}:function(){var t=this,n=arguments;T(function(){e.apply(t,n)})}},D=function(e){var t,r=0,a=i.throttleDelay,o=i.ricTimeout,s=function(){t=!1,r=n.now(),e()},c=f&&o>49?function(){f(s,{timeout:o}),o!==i.ricTimeout&&(o=i.ricTimeout)}:E(function(){u(s)},!0);return function(e){var i;(e=e===!0)&&(o=33),!t&&(t=!0,i=a-(n.now()-r),i<0&&(i=0),e||i<9?c():u(c,i))}},ee=function(e){var t,r,i=99,a=function(){t=null,e()},o=function(){var e=n.now()-r;e<i?u(o,i-e):(f||a)(a)};return function(){r=n.now(),t||=u(o,i)}},te=(function(){var o,f,m,h,w,te,k,A,ne,j,M,N,re=/^img$/i,ie=/^iframe$/i,P=`onscroll`in e&&!/(gle|ing)bot/.test(navigator.userAgent),ae=0,oe=0,F=0,se=-1,ce=function(e){F--,(!e||F<0||!e.target)&&(F=0)},le=function(e){return N??=C(t.body,`visibility`)==`hidden`,N||!(C(e.parentNode,`visibility`)==`hidden`&&C(e,`visibility`)==`hidden`)},ue=function(e,n){var r,i=e,o=le(e);for(A-=n,M+=n,ne-=n,j+=n;o&&(i=i.offsetParent)&&i!=t.body&&i!=a;)o=(C(i,`opacity`)||1)>0,o&&C(i,`overflow`)!=`visible`&&(r=i.getBoundingClientRect(),o=j>r.left&&ne<r.right&&M>r.top-1&&A<r.bottom+1);return o},de=function(){var e,n,s,l,u,d,p,m,g,_,v,y,b=r.elements;if((h=i.loadMode)&&F<8&&(e=b.length)){for(n=0,se++;n<e;n++)if(!(!b[n]||b[n]._lazyRace)){if(!P||r.prematureUnveil&&r.prematureUnveil(b[n])){ge(b[n]);continue}if((!(m=b[n][c](`data-expand`))||!(d=m*1))&&(d=oe),_||(_=!i.expand||i.expand<1?a.clientHeight>500&&a.clientWidth>500?500:370:i.expand,r._defEx=_,v=_*i.expFactor,y=i.hFac,N=null,oe<v&&F<1&&se>2&&h>2&&!t.hidden?(oe=v,se=0):oe=h>1&&se>1&&F<6?_:ae),g!==d&&(te=innerWidth+d*y,k=innerHeight+d,p=d*-1,g=d),s=b[n].getBoundingClientRect(),(M=s.bottom)>=p&&(A=s.top)<=k&&(j=s.right)>=p*y&&(ne=s.left)<=te&&(M||j||ne||A)&&(i.loadHidden||le(b[n]))&&(f&&F<3&&!m&&(h<3||se<4)||ue(b[n],d))){if(ge(b[n]),u=!0,F>9)break}else!u&&f&&!l&&F<4&&se<4&&h>2&&(o[0]||i.preloadAfterLoad)&&(o[0]||!m&&(M||j||ne||A||b[n][c](i.sizesAttr)!=`auto`))&&(l=o[0]||b[n])}l&&!u&&ge(l)}},I=D(de),L=function(e){var t=e.target;if(t._lazyCache){delete t._lazyCache;return}ce(e),v(t,i.loadedClass),y(t,i.loadingClass),b(t,fe),x(t,`lazyloaded`)},R=E(L),fe=function(e){R({target:e.target})},pe=function(e,t){var n=e.getAttribute(`data-load-mode`)||i.iframeLoadMode;n==0?e.contentWindow.location.replace(t):n==1&&(e.src=t)},me=function(e){var t,n=e[c](i.srcsetAttr);(t=i.customMedia[e[c](`data-media`)||e[c](`media`)])&&e.setAttribute(`media`,t),n&&e.setAttribute(`srcset`,n)},he=E(function(e,t,n,r,a){var o,s,l,d,f,h;(f=x(e,`lazybeforeunveil`,t)).defaultPrevented||(r&&(n?v(e,i.autosizesClass):e.setAttribute(`sizes`,r)),s=e[c](i.srcsetAttr),o=e[c](i.srcAttr),a&&(l=e.parentNode,d=l&&p.test(l.nodeName||``)),h=t.firesLoad||`src`in e&&(s||o||d),f={target:e},v(e,i.loadingClass),h&&(clearTimeout(m),m=u(ce,2500),b(e,fe,!0)),d&&g.call(l.getElementsByTagName(`source`),me),s?e.setAttribute(`srcset`,s):o&&!d&&(ie.test(e.nodeName)?pe(e,o):e.src=o),a&&(s||d)&&S(e,{src:o})),e._lazyRace&&delete e._lazyRace,y(e,i.lazyClass),T(function(){var t=e.complete&&e.naturalWidth>1;(!h||t)&&(t&&v(e,i.fastLoadedClass),L(f),e._lazyCache=!0,u(function(){`_lazyCache`in e&&delete e._lazyCache},9)),e.loading==`lazy`&&F--},!0)}),ge=function(e){if(!e._lazyRace){var t,n=re.test(e.nodeName),r=n&&(e[c](i.sizesAttr)||e[c](`sizes`)),a=r==`auto`;(a||!f)&&n&&(e[c](`src`)||e.srcset)&&!e.complete&&!_(e,i.errorClass)&&_(e,i.lazyClass)||(t=x(e,`lazyunveilread`).detail,a&&O.updateElem(e,!0,e.offsetWidth),e._lazyRace=!0,F++,he(e,t,a,r,n))}},z=ee(function(){i.loadMode=3,I()}),_e=function(){i.loadMode==3&&(i.loadMode=2),z()},B=function(){if(!f){if(n.now()-w<999){u(B,999);return}f=!0,i.loadMode=3,I(),l(`scroll`,_e,!0)}};return{_:function(){w=n.now(),r.elements=t.getElementsByClassName(i.lazyClass),o=t.getElementsByClassName(i.lazyClass+` `+i.preloadClass),l(`scroll`,I,!0),l(`resize`,I,!0),l(`pageshow`,function(e){if(e.persisted){var n=t.querySelectorAll(`.`+i.loadingClass);
33n.length&&n.forEach&&d(function(){n.forEach(function(e){e.complete&&ge(e)})})}}),e.MutationObserver?new MutationObserver(I).observe(a,{childList:!0,subtree:!0,attributes:!0}):(a[s](`DOMNodeInserted`,I,!0),a[s](`DOMAttrModified`,I,!0),setInterval(I,999)),l(`hashchange`,I,!0),[`focus`,`mouseover`,`click`,`load`,`transitionend`,`animationend`].forEach(function(e){t[s](e,I,!0)}),/d$|^c/.test(t.readyState)?B():(l(`load`,B),t[s](`DOMContentLoaded`,I),u(B,2e4)),r.elements.length?(de(),T._lsFlush()):I()},checkElems:I,unveil:ge,_aLSL:_e}})(),O=(function(){var e,n=E(function(e,t,n,r){var i,a,o;if(e._lazysizesWidth=r,r+=`px`,e.setAttribute(`sizes`,r),p.test(t.nodeName||``))for(i=t.getElementsByTagName(`source`),a=0,o=i.length;a<o;a++)i[a].setAttribute(`sizes`,r);n.detail.dataAttr||S(e,n.detail)}),r=function(e,t,r){var i,a=e.parentNode;a&&(r=w(e,a,r),i=x(e,`lazybeforesizes`,{width:r,dataAttr:!!t}),i.defaultPrevented||(r=i.detail.width,r&&r!==e._lazysizesWidth&&n(e,a,i,r)))},a=ee(function(){var t,n=e.length;if(n)for(t=0;t<n;t++)r(e[t])});return{_:function(){e=t.getElementsByClassName(i.autosizesClass),l(`resize`,a)},checkElems:a,updateElem:r}})(),k=function(){!k.i&&t.getElementsByClassName&&(k.i=!0,O._(),te._())};return u(function(){i.init&&k()}
33),r={cfg:i,autoSizer:O,loader:te,init:k,uP:S,aC:v,rC:y,hC:_,fire:x,gW:w,rAF:T},r})})),ap=t(((e,t)=>{(function(e,n){if(e){var r=function(){n(e.lazySizes),e.removeEventListener(`lazyunveilread`,r,!0)};n=n.bind(null,e,e.document),typeof t==`object`&&t.exports?n(ip()):typeof define==`function`&&define.amd?define([`lazysizes`],n):e.lazySizes?r():e.addEventListener(`lazyunveilread`,r,!0)}})(typeof window<`u`?window:0,function(e,t,n){if(e.addEventListener){var r=/\s+(\d+)(w|h)\s+(\d+)(w|h)/,i=/parent-fit["']*\s*:\s*["']*(contain|cover|width)/,a=/parent-container["']*\s*:\s*["']*(.+?)(?=(\s|$|,|'|"|;))/,o=/^picture$/i,s=n.cfg,c=function(e){return getComputedStyle(e,null)||{}},l={getParent:function(t,n){var r=t,i=t.parentNode;return(!n||n==`prev`)&&i&&o.test(i.nodeName||``)&&(i=i.parentNode),n!=`self`&&(r=n==`prev`?t.previousElementSibling:n&&(i.closest||e.jQuery)&&(i.closest?i.closest(n):jQuery(i).closest(n)[0])||i),r},getFit:function(e){var t,n,r=c(e),o=r.content||r.fontFamily,s={fit:e._lazysizesParentFit||e.getAttribute(`data-parent-fit`)};return!s.fit&&o&&(t=o.match(i))&&(s.fit=t[1]),s.fit?(n=e._lazysizesParentContainer||e.getAttribute(`data-parent-container`),!n&&o&&(t=o.match(a))&&(n=t[1]),s.parent=l.getParent(e,n)):s.fit=r.objectFit,s},getImageRatio:function(t){var n,i,a,c,l,u,d,f=t.parentNode,p=f&&o.test(f.nodeName||``)?f.querySelectorAll(`source, img`):[t];for(n=0;n<p.length;n++)if(t=p[n],i=t.getAttribute(s.srcsetAttr)||t.getAttribute(`srcset`)||t.getAttribute(`data-pfsrcset`)||t.getAttribute(`data-risrcset`)||``,a=t._lsMedia||t.getAttribute(`media`),a=s.customMedia[t.getAttribute(`data-media`)||a]||a,i&&(!a||(e.matchMedia&&matchMedia(a)||{}).matches)){c=parseFloat(t.getAttribute(`data-aspectratio`)),c||=(l=i.match(r),l?l[2]==`w`?(u=l[1],d=l[3]):(u=l[3],d=l[1]):(u=t.getAttribute(`width`),d=t.getAttribute(`height`)),u/d);break}return c},calculateSize:function(e,t){var n,r,i,a,o=this.getFit(e),s=o.fit,c=o.parent;return s!=`width`&&(s!=`contain`&&s!=`cover`||!(i=this.getImageRatio(e)))?t:(c?t=c.clientWidth:c=e,a=t,s==`width`?a=t:(r=c.clientHeight,(n=t/r)&&(s==`cover`&&n<i||s==`contain`&&n>i)&&(a=i/n*t)),a)}};n.parentFit=l,t.addEventListener(`lazybeforesizes`,function(e){if(!(e.defaultPrevented||e.detail.instance!=n)){var t=e.target;e.detail.width=l.calculateSize(t,e.detail.width)}})}})})),op=t(((e,t)=>{(function(e,n){var r=function(){n(e.lazySizes),e.removeEventListener(`lazyunveilread`,r,!0)};n=n.bind(null,e,e.document),typeof t==`object`&&t.exports?n(ip()):typeof define==`function`&&define.amd?define([`lazysizes`],n):e.lazySizes?r():e.addEventListener(`lazyunveilread`,r,!0)})(window,function(e,t,n){var r,i,a={};t.addEventListener&&(i=/\(|\)|\s|'/,r=function(e,n){var r=t.createElement(`img`);r.onload=function(){r.onload=null,r.onerror=null,r=null,n()},r.onerror=r.onload,r.src=e,r&&r.complete&&r.onload&&r.onload()},addEventListener(`lazybeforeunveil`,function(e){if(e.detail.instance==n){var t,a,s,c;if(!e.defaultPrevented){var l=e.target;if(l.preload==`none`&&(l.preload=l.getAttribute(`data-preload`)||`auto`),l.getAttribute(`data-autoplay`)!=null)if(l.getAttribute(`data-expand`)&&!l.autoplay)try{l.play()}catch{}else requestAnimationFrame(function(){l.setAttribute(`data-expand`,`-10`),n.aC(l,n.cfg.lazyClass)});t=l.getAttribute(`data-link`),t&&o(t,!0),t=l.getAttribute(`data-script`),t&&(e.detail.firesLoad=!0,a=function(){e.detail.firesLoad=!1,n.fire(l,`_lazyloaded`,{},!0,!0)},o(t,null,a)),t=l.getAttribute(`data-require`),t&&(n.cfg.requireJs?n.cfg.requireJs([t]):o(t)),s=l.getAttribute(`data-bg`),s&&(e.detail.firesLoad=!0,a=function(){l.style.backgroundImage=`url(`+(i.test(s)?JSON.stringify(s):s)+`)`,e.detail.firesLoad=!1,n.fire(l,`_lazyloaded`,{},!0,!0)},r(s,a)),c=l.getAttribute(`data-poster`),c&&(e.detail.firesLoad=!0,a=function(){l.poster=c,e.detail.firesLoad=!1,n.fire(l,`_lazyloaded`,{},!0,!0)},r(c,a))}}},!1));function o(e,n,r){if(!a[e]){var i=t.createElement(n?`link`:`script`),o=t.getElementsByTagName(`script`)[0];n?(i.rel=`stylesheet`,i.href=e):(i.onload=function(){i.onerror=null,i.onload=null,r()},i.onerror=i.onload,i.src=e),a[e]=!0,a[i.src||i.href]=!0,o.parentNode.insertBefore(i,o)}}})}));ip(),ap(),op(),window.lazySizesConfig=window.lazySizesConfig??{};var sp=e(t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).iframeResize=r()})(e,function(){let e=`5.5.9`,t=`iframeResizer`,n=`autoResize`,r=`init`,i=`iframeReady`,a=`load`,o=`message`,s=`onload`,c=`pageInfo`,l=`parentInfo`,u=`reset`,d=`resize`,f=`scroll`,p=`parent`,m=`string`,h=`object`,g=`function`,_=`undefined`,v=`auto`,y=`none`,b=`both`,x=`vertical`,S=`horizontal`,C=`[iFrameSizer]`,w=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),T=Object.freeze({[s]:1,[r]:1,[i]:1}),E=`expanded`,D=`collapsed`,ee=Object.freeze({[E]:1,[D]:1}),te=`Use of the old name will be removed in a future version of <i>iframe-resizer</>.`,O=`font-weight: normal;`,k=`default`,A=Object.freeze({assert:!0,error:!0,warn:!0}),ne={expand:!1,defaultEvent:void 0,event:void 0,label:`AutoConsoleGroup`,showTime:!0},j={profile:0,profileEnd:0,timeStamp:0,trace:0},M=Object.assign(console),{fromEntries:N,keys:re}=Object,ie=e=>[e,M[e]],P=e=>t=>[t,function(n){e[t]=n}],ae=(e,t)=>N(re(e).map(t)),oe=!(typeof window>`u`||typeof window.matchMedia!=`function`)&&window.matchMedia(`(prefers-color-scheme: dark)`).matches,F=oe?`color: #A9C7FB;`:`color: #135CD2;`,se=oe?`color: #E3E3E3;`:`color: #1F1F1F;`,ce=Object.hasOwn||((e,t)=>Object.prototype.hasOwnProperty.call(e,t)),le={br:`
34`,rb:`\x1B[31;1m`,bb:`\x1B[34;1m`,b:`\x1B[1m`,i:`\x1B[3m`,u:`\x1B[4m`,"/":`\x1B[m`},ue=Object.keys(le),de=RegExp(`<(${ue.join(`|`)})>`,`gi`),I=(e,t)=>le[t]??``,L=e=>t=>e(typeof t==m?window.chrome?t.replace(de,I):(e=>e.replaceAll(`<br>`,`
35`).replaceAll(/<\/?[^>]+>/gi,``))(t):t),R={},fe=(pe=function(e={}){let t={},n={},r=[],i={...ne,expand:!e.collapsed||ne.expanded,...e},a=``;function o(){r.length=0,a=``}function s(){delete i.event,o()}let c=()=>!!r.some(([e])=>e in A)||!!i.expand;function l(){if(r.length!==0){M[c()?`group`:`groupCollapsed`](`%c${i.label}%c ${(e=>{let t=e.event||e.defaultEvent;return t?`${t}`:``})(i)} %c${i.showTime?a:``}`,O,`font-weight: bold;`,`font-weight: normal;font-style: italic;`);for(let[e,...t]of r)M.assert(e in M,`Unknown console method: ${e}`),e in M&&M[e](...t);M.groupEnd(),s()}else s()}function u(){a===``&&(a=function(){let e=new Date,t=(t,n)=>e[t]().toString().padStart(n,`0`);return`@ ${t(`getHours`,2)}:${t(`getMinutes`,2)}:${t(`getSeconds`,2)}.${t(`getMilliseconds`,3)}`}(),queueMicrotask(()=>queueMicrotask(l)))}function d(e,...t){r.length===0&&u(),r.push([e,...t])}function f(e=k,...n){t[e]?d(`log`,`${e}: ${performance.now()-t[e]} ms`,...n):d(`timeLog`,e,...n)}return{...ae(i,P(i)),...ae(console,e=>[e,(...t)=>d(e,...t)]),...ae(j,ie),assert:function(e,...t){!0!==e&&d(`assert`,e,...t)},count:function(e=k){n[e]?n[e]+=1:n[e]=1,d(`log`,`${e}: ${n[e]}`)},countReset:function(e=k){delete n[e]},endAutoGroup:l,errorBoundary:e=>(...t)=>{let n;try{n=e(...t)}catch(e){if(!Error.prototype.isPrototypeOf(e))throw e;d(`error`,e),l()}return n},event:function(e){u(),i.event=e},purge:o,time:function(e=k){u(),t[e]=performance.now()},timeEnd:function(e=k){f(e),delete t[e]},timeLog:f,touch:u}}
35,pe?.__esModule?pe.default:pe);var pe;let me=!0,he=fe({expand:!1,label:p}),ge=e=>window.top===window.self?`parent(${e})`:`nested parent(${e})`,z=e=>(t,...n)=>R[t]?R[t].console[e](...n):he[e](...n);var _e;let B=(_e=`log`,(e,...t)=>!0===(e=>R[e]?R[e].log:me)(e)?z(_e)(e,...t):null),ve=z(`warn`),ye=z(`error`),be=z(`event`),xe=z(`purge`),Se=z(`endAutoGroup`),Ce=z(`errorBoundary`),we=L(e=>e),Te=(e,...n)=>R[e]?R[e].console.warn(...n.map(we)):queueMicrotask(()=>{let r=L((e=>(...n)=>[`${t}(${e})`,...n].join(` `))(e));console?.warn(...n.map(r))}),V=(e=>(t,n=`renamed to`)=>(r,i,a=``,o=``)=>e(o,`<rb>Deprecated ${t}(${r.replace(`()`,``)})</>\n\nThe <b>${r}</> ${t.toLowerCase()} has been ${n} <b>${i}</>. ${a}Use of the old ${t.toLowerCase()} will be removed in a future version of <i>iframe-resizer</>.`))(Te),Ee=V(`Function`),De=V(`Option`),Oe=(e,t,n,r)=>e.addEventListener(t,n,r||!1),ke=(e,t,n)=>e.removeEventListener(t,n,!1),Ae=e=>{if(!e)return``;let t=-559038744,n=1103547984;for(let r,i=0;i<e.length;i++)r=e.codePointAt(i),t=Math.imul(t^r,2246822519),n=Math.imul(n^r,3266489917);return t^=Math.imul(t^n>>>15,1935289751),n^=Math.imul(n^t>>>15,3405138345),t^=n>>>16,n^=t>>>16,(2097152*(n>>>0)+(t>>>11)).toString(36)},je=e=>e.replace(/[A-Za-z]/g,e=>String.fromCodePoint((e<=`Z`?90:122)>=(e=e.codePointAt(0)+19)?e:e-26)),Me=[`spjluzl`,`rlf`,`clyzpvu`],Ne=[`<yi>Puchspk Spjluzl Rlf</><iy><iy>`,`<yi>Tpzzpun Spjluzl Rlf</><iy><iy>`,`Aopz spiyhyf pz hchpshisl dpao ivao Jvttlyjphs huk Vwlu-Zvbyjl spjluzlz.<iy><iy><i>Jvttlyjphs Spjluzl</><iy>Mvy jvttlyjphs bzl, <p>pmyhtl-ylzpgly</> ylxbpylz h svd jvza vul aptl spjluzl mll. Mvy tvyl pumvythapvu cpzpa <b>oaawz://pmyhtl-ylzpgly.jvt/wypjpun</>.<iy><iy><i>Vwlu Zvbyjl Spjluzl</><iy>Pm fvb hyl bzpun aopz spiyhyf pu h uvu-jvttlyjphs vwlu zvbyjl wyvqlja aolu fvb jhu bzl pa mvy myll bukly aol alytz vm aol NWS C3 Spjluzl. Av jvumpyt fvb hjjlwa aolzl alytz, wslhzl zla aol <i>spjluzl</> rlf pu <p>pmyhtl-ylzpgly</> vwapvuz av <i>NWSc3</>.<iy><iy>Mvy tvyl pumvythapvu wslhzl zll: <b>oaawz://pmyhtl-ylzpgly.jvt/nws</>`,`<i>NWSc3 Spjluzl Clyzpvu</><iy><iy>Aopz clyzpvu vm <p>pmyhtl-ylzpgly</> pz ilpun bzlk bukly aol alytz vm aol <i>NWS C3</> spjluzl. Aopz spjluzl hssvdz fvb av bzl <p>pmyhtl-ylzpgly</> pu Vwlu Zvbyjl wyvqljaz, iba pa ylxbpylz fvby wyvqlja av il wbispj, wyvcpkl haaypibapvu huk il spjluzlk bukly clyzpvu 3 vy shaly vm aol NUB Nlulyhs Wbispj Spjluzl.<iy><iy>Pm fvb hyl bzpun aopz spiyhyf pu h uvu-vwlu zvbyjl wyvqlja vy dlizpal, fvb dpss ullk av wbyjohzl h svd jvza vul aptl jvttlyjphs spjluzl.<iy><iy>Mvy tvyl pumvythapvu cpzpa <b>oaawz://pmyhtl-ylzpgly.jvt/wypjpun</>.`,`<iy><yi>Zvsv spjluzl kvlz uva zbwwvya jyvzz-kvthpu</><iy><iy>Av bzl <p>pmyhtl-ylzpgly</> dpao jyvzz kvthpu pmyhtlz fvb ullk lpaoly aol Wyvmlzzpvuhs vy Ibzpulzz spjluzlz. Mvy klahpsz vu bwnyhkl wypjpun wslhzl jvuahja [email protected].`,`Pu whnl spurpun ylxbpylz h Wyvmlzzpvuhs vy Ibzpulzz spjluzl. Wslhzl zll <b>oaawz://pmyhtl-ylzpgly.jvt/wypjpun</> mvy tvyl klahpsz.`],Pe=[`NWSc3`,`zvsv`,`wyv`,`ibzpulzz`,`vlt`],Fe=Object.fromEntries([`2cgs7fdf4xb`,`1c9ctcccr4z`,`1q2pc4eebgb`,`ueokt0969w`,`w2zxchhgqz`,`1umuxblj2e5`,`2b5sdlfhbev`,`zo4ui3arjo`,`oclbb4thgl`].map((e,t)=>[e,Math.max(0,t-1)])),H=e=>je(Ne[e]),Ie=e=>{let t=e[je(Me[0])]||e[je(Me[1])]||e[je(Me[2])];if(!t)return-1;let n=t.split(`-`),r=function(e=``){let t=-2,n=Ae(je(e));return n in Fe&&(t=Fe[n]),t>4?t-4:t}(n[0]);return r===0||(e=>e[2]===Ae(e[0]+e[1]))(n)||(r=-2),r};function Le(e){let{checkOrigin:t,iframe:{id:n,src:r,sandbox:i},initialisedFirstPage:a,waitForLoad:o,warningTimeout:s}=e,c=(e=>{try{return new URL(e).origin}catch{return null}})(r);be(n,`noResponse`),Te(n,`<rb>No response from iframe</>\n\nThe iframe (<i>${n}</>) has not responded within ${s/1e3} seconds. Check <b>@iframe-resizer/child</> package has been loaded in the iframe.\n${t&&c?`\nThe <b>checkOrigin</> option is currently enabled. If the iframe redirects away from <i>${c}</>, then the connection to the iframe may be blocked by the browser. To disable this option, set <b>checkOrigin</> to <bb>false</> or an array of allowed origins. See <u>https://iframe-resizer.com/checkorigin</> for more information.\n`:``}${o&&!a?`
36The <b>waitForLoad</> option is currently set to <bb>true</>. If the iframe loads before <i>iframe-resizer</> runs, this option will prevent <i>iframe-resizer</> initialising. To disable this option, set <b>waitForLoad</> to <bb>false</>.
37`:``}${(e=>typeof e==h&&e.length>0&&!(e.contains(`allow-scripts`)&&e.contains(`allow-same-origin`)))(i)?`
38The iframe has the <b>sandbox</> attribute, please ensure it contains both the <bb>allow-same-origin</> and <bb>allow-scripts</> values.
39`:``}\nThis message can be ignored if everything is working, or you can set the <b>warningTimeout</> option to a higher value or zero to suppress this warning.\n`)}let Re={}
39,ze=Object.freeze({autoResize:!0,bodyBackground:null,bodyMargin:null,bodyPadding:null,checkOrigin:!0,direction:x,firstRun:!0,inPageLinks:!1,heightCalculationMethod:v,id:`iFrameResizer`,log:!1,logExpand:!1,license:void 0,mouseEvents:!0,offsetHeight:null,offsetWidth:null,postMessageTarget:null,sameDomain:!1,scrolling:!1,sizeHeight:!0,sizeWidth:!1,tolerance:0,waitForLoad:!1,warningTimeout:5e3,widthCalculationMethod:v,onBeforeClose:()=>!0,onAfterClose(){},onInit:!1,onMessage:null,onMouseEnter(){},onMouseLeave(){},onReady:e=>{typeof R[e.id].onInit==g&&(De(`init()`,`onReady()`,``,e.id),R[e.id].onInit(e))},onResized(){},onScroll:()=>!0}),U={position:null,version:e};function Be(t){function i(){Je(N),Ke(P),k(`onResized`,N)}function s(e){return e.boxSizing===`border-box`?(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0):0}function h(e){return e.boxSizing===`border-box`?(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0):0}let g=e=>j.slice(j.indexOf(`:`)+7+e),_=(e,t)=>(n,r)=>{let i={};var a=function(){Xe(`${n} (${e})`,`${e}:${t()}`,r)},o;i[o=r]||(a(),i[o]=requestAnimationFrame(()=>{i[o]=null}))},v=(e,t)=>()=>{let n=!1,r=t=>()=>{R[l]?n&&n!==t||(e(t,l),n=t,requestAnimationFrame(()=>{n=!1})):c()},i=r(f),o=r(`resize window`);function s(e,t){t(window,f,i),t(window,d,o)}function c(){be(l,`stop${t}`),s(0,ke),u.disconnect(),p.disconnect(),ke(R[l].iframe,a,c)}let l=P,u=new ResizeObserver(r(`pageObserver`)),p=new ResizeObserver(r(`iframeObserver`));R[l]&&(R[l][`stop${t}`]=c,Oe(R[l].iframe,a,c),s(0,Oe),u.observe(document.body,{attributes:!0,childList:!0,subtree:!0}),p.observe(R[l].iframe,{attributes:!0,childList:!1,subtree:!1}))},y=e=>()=>{e in R[P]&&(R[P][e](),delete R[P][e])},b=_(c,function(){let e=document.body.getBoundingClientRect(),t=N.iframe.getBoundingClientRect(),{scrollY:n,scrollX:r,innerHeight:i,innerWidth:a}=window,{clientHeight:o,clientWidth:s}=document.documentElement;return JSON.stringify({iframeHeight:t.height,iframeWidth:t.width,clientHeight:Math.max(o,i||0),clientWidth:Math.max(s,a||0),offsetTop:parseInt(t.top-e.top,10),offsetLeft:parseInt(t.left-e.left,10),scrollTop:n,scrollLeft:r,documentHeight:o,documentWidth:s,windowHeight:i,windowWidth:a})}),x=_(l,function(){let{iframe:e}=N,{scrollWidth:t,scrollHeight:n}=document.documentElement,{width:r,height:i,offsetLeft:a,offsetTop:o,pageLeft:s,pageTop:c,scale:l}=window.visualViewport;return JSON.stringify({iframe:e.getBoundingClientRect(),document:{scrollWidth:t,scrollHeight:n},viewport:{width:r,height:i,offsetLeft:a,offsetTop:o,pageLeft:s,pageTop:c,scale:l}})}),S=v(b,`PageInfo`),w=v(x,`ParentInfo`),T=y(`stopPageInfo`),E=y(`stopParentInfo`);function D(e){let t=e.getBoundingClientRect();return We(),{x:Number(t.left)+Number(U.position.x),y:Number(t.top)+Number(U.position.y)}}function ee(e){let t=e?D(N.iframe):{x:0,y:0};B(P,`Reposition requested (offset x:%c${t.x}%c y:%c${t.y})`,F,se,F);let n=((e,t)=>({x:e.width+t.x,y:e.height+t.y}))(N,t),r=window.parentIframe||window.parentIFrame;r?function(t,n){setTimeout(()=>t[`scrollTo`+(e?`Offset`:``)](n.x,n.y))}(r,n):function(e){U.position=e,te(P)}(n)}function te(e){let{x:t,y:n}=U.position,r=R[e]?.iframe;!1===k(`onScroll`,{iframe:r,top:n,left:t,x:t,y:n})?Ge():Ke(e)}function O(e){let t={};if(N.width===0&&N.height===0){let e=g(9).split(`:`);t={x:e[1],y:e[0]}}else t={x:N.width,y:N.height};k(e,{iframe:N.iframe,screenX:Number(t.x),screenY:Number(t.y),type:N.type})}let k=(e,t)=>Ve(P,e,t);function A(){let{height:t,iframe:a,msg:s,type:d,width:f}=N;switch(R[P]?.firstRun&&function(){R[P]&&($e(P,N.mode),R[P].firstRun=!1)}(),d){case`close`:Ue(a);break;case o:m=g(6),k(`onMessage`,{iframe:N.iframe,message:JSON.parse(m)});break;case`mouseenter`:O(`onMouseEnter`);break;case`mouseleave`:O(`onMouseLeave`);break;case`beforeUnload`:B(P,`Ready state reset`),R[P].initialised=!1;break;case n:R[P].autoResize=JSON.parse(g(9));break;case`scrollBy`:(function(){let e=N.width,t=N.height,n=window.parentIframe||window.parentIFrame||window;B(P,`scrollBy: x: %c${e}%c y: %c${t}`,F,se,F),n.scrollBy(e,t)})();break;case`scrollTo`:ee(!1);break;case`scrollToOffset`:ee(!0);break;case c:S();break;case l:w();break;case`pageInfoStop`:T();break;case`parentInfoStop`:E();break;case`inPageLink`:(function(e){let t=e.split(`#`)[1]||``,n=decodeURIComponent(t),r=document.getElementById(n)||document.getElementsByName(n)[0];r?function(){let e=D(r);B(P,`Moving to in page link: %c#${t}`,F),U.position={x:e.x,y:e.y},te(P),window.location.hash=t}():window.top!==window.self&&function(){let e=window.parentIframe||window.parentIFrame;e&&e.moveToAnchor(t)}()})(g(9));break;case`title`:(function(e,t){R[t]?.syncTitle&&(R[t].iframe.title=e,B(t,`Set iframe title attribute: %c${e}`,F))})(s,P);break;case u:qe(N);break;case r:i(),function(e){try{R[e].sameOrigin=!!R[e]?.iframe?.contentWindow?.iframeChildListener}catch{R[e].sameOrigin=!1}}(P),(p=s)!==e&&(p!==void 0||Te(P,`<rb>Legacy version detected in iframe</>
40
41Detected legacy version of child page script. It is recommended to update the page in the iframe to use <b>@iframe-resizer/child</>.
42
43See <u>https://iframe-resizer.com/setup/#child-page-setup</> for more details.
44`)),R[P].initialised=!0,k(`onReady`,a);break;default:if(f===0&&t===0)return void ve(P,`Unsupported message received (${d}), this is likely due to the iframe containing a later version of iframe-resizer than the parent page`);if(f===0||t===0||document.hidden)return;i()}var p,m}function ne(e){if(!R[e])throw Error(`${N.type} No settings for ${e}. Message was: ${j}`)}let j=t.data;if(j===`[iFrameResizerChild]Ready`)return M=t.source,void Object.values(R).forEac
44h((e=>({initChild:t,postMessageTarget:n})=>{e===n&&t()})(M));var M;if(!(e=>C===`${e}`.slice(0,13)&&e.slice(13).split(`:`)[0]in R)(j)){if(typeof j!=m)return;be(p,`ignoredMessage`);return}let N=function(e){let t=e.slice(13).split(`:`),n=t[1]?Number(t[1]):0,r=R[t[0]]?.iframe,i=getComputedStyle(r),a={iframe:r,id:t[0],height:n+s(i)+h(i),width:Number(t[2]),type:t[3],msg:t[4]};return t[5]&&(a.mode=t[5]),a}(j),{id:re,type:ie}=N,P=re;P?(be(P,ie),Ce(P,function(e){ne(P),N.type in{true:1,false:1,undefined:1}||(N.iframe!==null||(ve(P,`The iframe (${N.id}) was not found.`),0))&&function(){let{origin:e,sameOrigin:n}=t;if(n)return!0;let r=R[P]?.checkOrigin;if(r&&`${e}`!=`null`&&!(r.constructor===Array?function(){let t=0,n=!1;for(;t<r.length;t++)if(r[t]===e){n=!0;break}return n}():function(){return e===R[P]?.remoteHost}()))throw Error(`Unexpected message received from: ${e} for ${N.iframe.id}. Message was: ${t.data}. This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.`);return!0}()&&A()})(j)):ve(``,`iframeResizer received messageData without id, message was: `,j)}function Ve(e,t,n){let r=null,i=null;if(R[e]){if(r=R[e][t],typeof r!=g)throw TypeError(`${t} on iFrame[${e}] is not a function`);if(t===`onBeforeClose`||t===`onScroll`)try{i=r(n)}catch(n){console.error(n),ve(e,`Error in ${t} callback`)}else((e,...t)=>{setTimeout(()=>e(...t),0)})(r,n)}return i}function He(e){let{id:t}=e;delete R[t],delete e.iframeResizer}function Ue(e){let{id:t}=e;if(!1!==Ve(t,`onBeforeClose`,t)){try{e.parentNode&&e.remove()}catch(e){ve(t,e)}Ve(t,`onAfterClose`,t),He(e)}}function We(e){U.position===null&&(U.position={x:window.scrollX,y:window.scrollY})}function Ge(){U.position=null}function Ke(e){U.position!==null&&(window.scrollTo(U.position.x,U.position.y),B(e,`Set page position: %c${U.position.x}%c, %c${U.position.y}`,F,se,F),Ge())}function qe(e){We(e.id),Je(e),Xe(u,u,e.id)}function Je(e){function t(t){let r=`${e[t]}px`;e.iframe.style[t]=r,B(n,`Set ${t}: %c${r}`,F)}let{id:n}=e,{sizeHeight:r,sizeWidth:i}=R[n];r&&t(`height`),i&&t(`width`)}let Ye=e=>e.split(`:`).filter((e,t)=>t!==19).join(`:`);function Xe(e,t,n){function r(r){let i=e in T?Ye(t):t;B(n,r,F,se,F),B(n,`Message data: %c${i}`,F)}be(n,e),R[n]&&(R[n]?.postMessageTarget?function(){let{iframe:i,postMessageTarget:a,sameOrigin:o,targetOrigin:s}=R[n];if(o)try{i.contentWindow.iframeChildListener(C+t),r(`Sending message to iframe %c${n}%c via same origin%c`);return}catch{e in T?R[n].sameOrigin=!1:ve(n,`Same origin messaging failed, falling back to postMessage`)}r(`Sending message to iframe: %c${n}%c targetOrigin: %c${s}`),a.postMessage(C+t,s)}():ve(n,`Iframe(${n}) not found`))}let W=0,Ze=!1,Qe=!1;function $e(t,n=-3){if(Ze)return;let r=Math.max(R[t].mode,n);if(r>R[t].mode&&(R[t].mode=r),r<0)throw xe(t),R[t].vAdvised||Te(t||`Parent`,`${H(r+2)}${H(2)}`),R[t].vAdvised=!0,H(r+2).replace(/<\/?[a-z][^>]*>|<\/>/gi,``);r>0&&Qe||function(e,t){queueMicrotask(()=>console.info(`%ciframe-resizer ${e}`,me||t<1?`font-weight: bold;`:O))}(`v${e} (${(e=>je(Pe[e]))(r)})`,r),r<1&&Te(`Parent`,H(3)),Ze=!0}let et=e=>c=>{function l(){R[k]?.heightCalculationMethod in w&&qe({iframe:c,height:1,width:1,type:r})}function u(){if(R[k]){let{iframe:e}=R[k],t={close:Ue.bind(null,e),disconnect:He.bind(null,e),removeListeners(){Te(k,`<rb>Deprecated Method Name</>\n\nThe <b>removeListeners()</> method has been renamed to <b>disconnect()</>. ${te}\n`),this.disconnect()},resize(){Te(k,`<rb>Deprecated Method</>
45
46Use of the <b>resize()</> method from the parent page is deprecated and will be removed in a future version of <i>iframe-resizer</>. As their are no longer any edge cases that require triggering a resize from the parent page, it is recommended to remove this method from your code.`),Xe.bind(null,`Window resize`,d,k)},moveToAnchor(e){((e,t,n)=>{if(typeof e!==t)throw TypeError(`${n} is not a ${r=t,r.charAt(0).toUpperCase()+r.slice(1)}`);var r})(e,m,`moveToAnchor(anchor) anchor`),Xe(`Move to anchor`,`moveToAnchor:${e}`,k)},sendMessage(e){e=JSON.stringify(e),Xe(o,`${o}:${e}`,k)}};e.iframeResizer=t,e.iFrameResizer=t}}function f(e,t){let n=n=>()=>{if(!R[e])return;let{firstRun:i,iframe:a}=R[e];Xe(n,t,e),(e=>e===r)(n)&&(e=>e.loading===`lazy`)(a)||function(e,t){let n=t[e],{msgTimeout:r,warningTimeout:i}=n;i&&(r&&clearTimeout(r),n.msgTimeout=setTimeout(function(){let n=t[e];n!==void 0&&((e=>{e.msgTimeout=void 0})(n),function(e){let{initialised:t}=e;return t&&(e.initialisedFirstPage=!0),t}(n)||Le(n))},i))}(e,R),i||l()},{iframe:o}=R[e];R[e].initChild=n(i),function(e,t){Oe(e,a,()=>setTimeout(t,1))}(o,n(s)),function(e,t){let{iframe:n,waitForLoad:r}=R[e];!0!==r&&((e=>{let{src:t,srcdoc:n}=e;return!n&&(t==null||t===``||t===`about:blank`)})(n)?setTimeout(()=>{be(e,`noContent`),B(e,`No content detected in the iframe, delaying initialisation`)}):setTimeout(t))}(e,n(r))}function p(e){return e?((`sizeWidth`in e||`sizeHeight`in e||n in e)&&Te(k,`<rb>Deprecated Option</>\n\nThe <b>sizeWidth</>, <b>sizeHeight</> and <b>autoResize</>
46 options have been replaced with new <b>direction</> option which expects values of <bb>${x}</>, <bb>${S}</>, <bb>${b}</> or <bb>${y}</>.\n`),e):{}}function g(e){let t=R[e]?.iframe?.title;return t===``||t===void 0}function _(e,t){ce(R[k],e)&&(Te(k,`<rb>Deprecated option</>\n\nThe <b>${e}</> option has been renamed to <b>${t}</>. ${te}`),R[k][t]=R[k][e],delete R[k][e])}let C=e=>ce(e,`onMouseEnter`)||ce(e,`onMouseLeave`);function T(e){var t,n;R[k]={...R[k],iframe:c,remoteHost:c?.src.split(`/`).slice(0,3).join(`/`),...ze,...p(e),mouseEvents:C(e),mode:Ie(e),syncTitle:g(k)},_(`offset`,`offsetSize`),_(`onClose`,`onBeforeClose`),_(`onClosed`,`onAfterClose`),be(k,`setup`),function(){let{direction:e}=R[k];switch(e){case x:break;case S:R[k].sizeHeight=!1;case b:R[k].sizeWidth=!0;break;case y:R[k].sizeWidth=!1,R[k].sizeHeight=!1,R[k].autoResize=!1;break;default:throw TypeError(k,`Direction value of "${e}" is not valid`)}}(),(t=e?.offsetSize||e?.offset)&&(R[k].direction===x?R[k].offsetHeight=t:R[k].offsetWidth=t),R[k].warningTimeout||B(k,`warningTimeout:%c disabled`,F),R[k].postMessageTarget===null&&(R[k].postMessageTarget=c.contentWindow),R[k].targetOrigin=!0===R[k].checkOrigin?(n=R[k].remoteHost)===``||n.match(/^(about:blank|javascript:|file:\/\/)/)!==null?`*`:n:`*`}let O=()=>t in c,k=function(t){if(t&&typeof t!=m)throw TypeError(`Invalid id for iFrame. Expected String`);return t!==``&&t||(t=function(){let t=e?.id||ze.id+W++;return document.getElementById(t)!==null&&(t+=W++),t}(),c.id=t,be(t,`assignId`)),t}(c.id);if(typeof e!=h)throw TypeError(`Options is not an object`);return function(e){let{search:t}=window.location;t.includes(`ifrlog`)&&(e.log=D,e.logExpand=t.includes(`ifrlog=expanded`))}(e),function(e,t){let n=ce(t,`log`),r=typeof t.log==m,i=n?!!r||t.log:ze.log;ce(t,`logExpand`)||(t.logExpand=n&&r?t.log===E:ze.logExpand),function(e){e?.log===-1&&(e.log=!1,Qe=!0)}(t),function({enabled:e,expand:t,iframeId:n}){let r=fe({expand:t,label:ge(n)});me=e,R[n]||(R[n]={console:r})}({enabled:i,expand:t.logExpand,iframeId:e}),r&&!(t.log in ee)&&ye(e,`Invalid value for options.log: Accepted values are "expanded" and "collapsed"`),t.log=i}(k,e),Ce(k,function(e){O()?ve(k,`Ignored iframe (${k}), already setup.`):(T(e),function(e){if(!0===Re[e])return!1;let t=document.querySelectorAll(`iframe#${CSS.escape(e)}`);if(t.length<=1)return!0;Re[e]=!0;let n=Array.from(t).flatMap(e=>[`
47`,e,`
48`]);Te(e,`<rb>Duplicate ID attributes detected</>\n\nThe <b>${e}</> ID is not unique. Having multiple iframes on the same page with the same ID causes problems with communication between the iframe and parent page. Please ensure that the ID of each iframe has a unique value.\n\nFound <bb>${t.length}</> iframes with the <b>${e}</> ID:`,...n,`
49`)}(k),function(){if(Ze)return;let{mode:e}=R[k];e!==-1&&$e(k,e)}(),nt(),function(){switch(c.style.overflow=!1===R[k]?.scrolling?`hidden`:v,R[k]?.scrolling){case`omit`:break;case!0:c.scrolling=`yes`;break;case!1:c.scrolling=`no`;break;default:c.scrolling=R[k]?R[k].scrolling:`no`}}(),function(){let{bodyMargin:e}=R[k];typeof e!=`number`&&e!==`0`||(R[k].bodyMargin=`${e}px`)}(),f(k,function(e){let{autoResize:t,bodyBackground:n,bodyMargin:r,bodyPadding:i,heightCalculationMethod:a,inPageLinks:o,license:s,log:c,logExpand:l,mouseEvents:u,offsetHeight:d,offsetWidth:f,mode:p,sizeHeight:m,sizeWidth:h,tolerance:g,widthCalculationMethod:_}=R[e];return[e,`8`,h,c,`32`,!0,t,r,a,n,i,g,o,`child`,_,u,d,f,m,s,U.version,p,``,l].join(`:`)}(k)),u(),Se(k))})(e),c?.iframeResizer};function tt(){!0!==document.hidden&&((e,t)=>{Object.values(R).filter(({autoResize:e,firstRun:t})=>e&&!t).forEach(({iframe:n})=>Xe(e,t,n.id))})(`tabVisible`,d)}let nt=(e=>{let t=!1;return function(){return t?void 0:(t=!0,Reflect.apply(e,this,arguments))}})(()=>{Oe(window,o,Be),Oe(document,`visibilitychange`,tt),window.iframeParentListener=e=>setTimeout(()=>Be({data:e,sameOrigin:!0}))}),rt=`[${t}] `,it=function(){function e(e){switch(!0){case!e:throw TypeError(`${rt}iframe is not defined`);case!e.tagName:throw TypeError(`${rt}Not a valid DOM element`);case e.tagName.toUpperCase()!==`IFRAME`:throw TypeError(`${rt}Expected <IFRAME> tag, found <${e.tagName}>`);case!e.isConnected:(function(e){let n=new MutationObserver(()=>{e.isConnected&&(t(e),n.disconnect())});n.observe(document.body,{childList:!0,subtree:!0})})(e),n.push(e);break;default:t(e),n.push(e)}}let t,n;return function(r,i){if(typeof window==_)return[];if(!document.body)throw TypeError(`${rt}document.body is not available. Ensure the DOM is fully loaded before calling iframeResize().`);switch(t=et(r),n=[],typeof i){case _:case m:document.querySelectorAll(i||`iframe`).forEach(e);break;case h:e(i);break;default:throw TypeError(`${rt}Unexpected data type (${typeof i})`)}return Object.freeze(n)}}();return typeof window!=_&&(window.iFrameResize=window.iFrameResize||function(...e){Ee(`iFrameResize()`,`iframeResize()`,``,p),it(...e)}),it})}))());document.addEventListener(`DOMContentLoaded`,()=>
49{document.querySelectorAll(`[js-iframe-resize]`).forEach(e=>{(0,sp.default)({license:`12ajjdewwwy-26rnhw2943-1s7g1u8ma0i`,waitForLoad:!0},e)})});function cp(e){let t=e.value,n=document.querySelectorAll(`[js-checkbox-indeterminate-child="${t}"]`),r=e.hasAttribute(`js-checkbox-indeterminate-disable-selectall`);n.length!==0&&(n.forEach(t=>{t.addEventListener(`change`,()=>{lp(n,e,r)})}),e.addEventListener(`change`,()=>{if(!r){let t=e.checked;n.forEach(e=>{e.checked=t,e.dispatchEvent(new Event(`change`,{bubbles:!0}))})}}),e.addEventListener(`indeterminatechange`,()=>{lp(n,e,r)}),lp(n,e,r))}function lp(e,t,n){let r=Array.from(e).every(e=>e.checked),i=Array.from(e).some(e=>e.checked||e.indeterminate);n?t.indeterminate=i&&!r:(t.checked=r,t.indeterminate=!r&&i);let a=t.getAttribute(`js-checkbox-indeterminate-child`);if(a){let e=document.querySelector(`[js-checkbox-indeterminate][value="${a}"]`);if(!e)return;e.dispatchEvent(new Event(`indeterminatechange`,{bubbles:!0}))}}function up(e){e instanceof HTMLInputElement?cp(e):e instanceof NodeList&&e.forEach(cp)}function dp(e){if(e.nodeType!==1)return;let t=e;!t.hasAttribute(`js-checkbox-indeterminate`)&&!t.querySelector(`[js-checkbox-indeterminate]`)||up(t.hasAttribute(`js-checkbox-indeterminate`)?t:t.querySelectorAll(`[js-checkbox-indeterminate]`))}function fp(e){e.type===`childList`&&e.addedNodes.forEach(dp)}document.addEventListener(`DOMContentLoaded`,()=>{document.querySelectorAll(`[js-checkbox-indeterminate]`)?.forEach(cp),new MutationObserver(e=>{e.forEach(fp)}).observe(document.body,{childList:!0,subtree:!0})});function pp(e){if(!e)return;let t=e.getAttribute(`js-input-fetch-target`),n=e.getAttribute(`js-input-fetch-param`);if(!t||!n)return;let r=t.split(`;`).map(e=>document.getElementById(e.trim())).filter(Boolean),i=n.split(`;`).map(e=>e.trim());if(r.length===0||r.length!==i.length){console.error(`Mismatch between target elements and parameters.`);return}mp(r,i,e),r.forEach(t=>{t.addEventListener(`change`,()=>{mp(r,i,e)})})}async function mp(e,t,n){let r=n.getAttribute(`js-input-fetch-servlet`),i=n.getAttribute(`js-input-fetch-extra-params`)?.split(`;`)||[],a=n.getAttribute(`js-input-fetch-extra-params-values`)?.split(`;`)??[];if(!r)return;let o=e.map(e=>e instanceof HTMLSelectElement?e.options[e.selectedIndex]?.dataset.optionId||e.value:e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?e.value:``);if(!o.every(e=>e&&e!==``)){gp(n);return}try{let s={};t.forEach((e,t)=>{let n=o[t];n&&(s[e]=n)}
49),i.forEach((e,t)=>{let n=a[t];e&&n&&(s[e.trim()]=n)});let c=await(await Io({selector:Cs[r],params:s})).json();c?.length>0?hp(e,n,c):gp(n)}catch(e){console.error(e)}}function hp(e,t,n){if(t instanceof HTMLSelectElement){if(t.querySelectorAll(`option`).forEach(e=>{e.index>0&&e.remove()}),typeof n==`string`){let e=document.createElement(`option`);e.value=n,e.dataset.originalValue=n,e.text=n,t.add(e)}else n.forEach(e=>{let n=document.createElement(`option`);n.value=e.name||e.value||e.key,n.dataset.originalValue=e.name||e.value||e.key,n.text=e.title||e.value,n.dataset.syncTitle=e.titleEn||e.title||e.value,n.dataset.optionId=e.id||e.key,t.add(n)});let r=t.dataset.presetFieldvalue;if(r){let e=Array.from(t.options).find(e=>e.value===r);e&&(e.selected=!0,t.dispatchEvent(new Event(`change`,{bubbles:!0})),delete t.dataset.presetFieldvalue)}let i=t.options.length-1,a=e.every(e=>!e.disabled&&e.value);a?(t.removeAttribute(`disabled`),t.classList.remove(`hidden`)):(t.setAttribute(`disabled`,``),t.classList.add(`hidden`)),a&&i===1&&!t.value&&(t.selectedIndex=1,t.dispatchEvent(new Event(`change`))),t._observerAttached||(t._observerAttached=!0,e.forEach(n=>{new MutationObserver(()=>{if(e.every(e=>!e.disabled&&e.value)){t.removeAttribute(`disabled`),t.classList.remove(`hidden`);let e=t.options.length===2;!t.value&&e&&(t.selectedIndex=1,t.dispatchEvent(new Event(`change`)))}else t.setAttribute(`disabled`,``),t.classList.add(`hidden`)}).observe(n,{attributes:!0,attributeFilter:[`disabled`]})}))}else(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement)&&typeof n==`string`&&(t.value=n,t.dataset.originalValue=n,t.removeAttribute(`disabled`),t.classList.remove(`hidden`),t.dispatchEvent(new Event(`change`)))}function gp(e){e instanceof HTMLSelectElement?e.querySelectorAll(`option`).forEach(e=>{e.index>0&&e.remove()}):(e instanceof HTMLInputElement||HTMLTextAreaElement)&&(e.value=``,e.dataset.originalValue=``),e.setAttribute(`disabled`,``),e.classList.add(`hidden`)}document.addEventListener(`DOMContentLoaded`,()=>{let e=`js-input-fetch-target`;document.querySelectorAll(`[${e}]`).forEach(e=>{pp(e)}),new MutationObserver(t=>{t.forEach(t=>{t.type===`childList`&&t.addedNodes.forEach(t=>{if(t.nodeType===1){let n=t;if(n.hasAttribute(e)||n.querySelector(`[${e}]`)){let t=n.hasAttribute(e)?n:n.querySelectorAll(`[${e}]`);t instanceof NodeList?t.forEach(e=>{pp(e)}):pp(t)}}})})}).observe(document.body,{childList:!0,subtree:!0})});function _p(e,t,n){if(!e)return;let r=t||e.querySelector(`[js-scroll-inspect-target]`)||e,i=e.querySelectorAll(`[js-scroll-inspect-indicator]`),a=Array.from(i).filter(t=>t.closest(`[js-scroll-inspect]`)===e);function o(){vp(r,a)}let s=Co(o,100);r&&(n&&(e.removeAttribute(`js-scroll-inspect-init`),r.removeEventListener(`scroll`,s)),e.hasAttribute(`js-scroll-inspect-init`)||(r.addEventListener(`scroll`,s,{passive:!0}),a.forEach(e=>{let t=e.getAttribute(`js-scroll-inspect-indicator`),n={behavior:`smooth`,left:0,top:0};switch(t){case`left`:case`prev`:n.left=-200;break;
49case`right`:case`next`:n.left=200;break;case`up`:case`top`:n.top=-200;break;case`down`:case`bottom`:n.top=200;break}e.addEventListener(`click`,()=>{r.scrollBy(n)})}),e.setAttribute(`js-scroll-inspect-init`,`true`)),vp(r,a))}function vp(e,t){let{scrollTop:n,scrollHeight:r,clientHeight:i,scrollLeft:a,scrollWidth:o,clientWidth:s}=e;t.forEach(e=>{switch(e.getAttribute(`js-scroll-inspect-indicator`)){case`left`:case`prev`:yp(a>8,e);break;case`right`:case`next`:yp(a+s<o-8,e);break;case`up`:case`top`:yp(n>8,e);break;case`down`:case`bottom`:yp(n+i<r-8,e);break}})}function yp(e,t){let n=t?.getAttribute(`js-scroll-inspect-indicator-classes`)?.split(` `)||[`opacity-100`];e?(t?.classList.add(...n),t?.setAttribute(`tabindex`,`0`)):(t?.classList.remove(...n),t?.setAttribute(`tabindex`,`-1`))}function bp(e,t){if(e.nodeType===1){let n=e;if(n.hasAttribute(`js-scroll-inspect`)||n.querySelectorAll(`[js-scroll-inspect]`).length>0){let e=n.hasAttribute(`js-scroll-inspect`)?n:n.querySelectorAll(`[js-scroll-inspect]`);e instanceof HTMLElement&&(t.push(e),_p(e)),e instanceof NodeList&&xp(e,t)}}}function xp(e,t){e.forEach(e=>{let n=e;t.push(n),_p(n)})}function Sp(e,t){e.forEach(e=>{e.type===`childList`&&e.addedNodes.forEach(e=>{bp(e,t)})})}document.addEventListener(`DOMContentLoaded`,()=>{let e=[];document.querySelectorAll(`[js-scroll-inspect]`).forEach(t=>{e.push(t)}),e.filter(e=>
49!e.hasAttribute(`js-scroll-inspect-prevent-onload`)).forEach(e=>{_p(e)}),new MutationObserver(t=>{Sp(t,e)}).observe(document.body,{childList:!0,subtree:!0}),window.addEventListener(`scrollInspect`,e=>{let{detail:t,target:n}=e;_p(n,t.scrollTarget,t.reinit)});let t=Co(()=>{e.forEach(e=>{_p(e)})},450);window.addEventListener(`resize`,t,{passive:!0})});function Cp(e){let t=e.getAttribute(`js-toggle-visibility-by-input-target`)?.split(`;`);t&&t.forEach(t=>{let n=e.closest(`form`),r=null,i=null,a=n?.querySelector(`#${t}`);if(a?i=a:r=n?.querySelectorAll(`input[name='${t}'][type='radio']`)||null,!i&&(!r||r.length===0))return;let o=()=>{Op(document.querySelectorAll(`[js-toggle-visibility-by-input-target*='${t}']`))};requestAnimationFrame(()=>queueMicrotask(o)),i?i.hasAttribute(`js-toggle-visibility-by-input-listener`)||(i.setAttribute(`js-toggle-visibility-by-input-listener`,`true`),i.addEventListener(`change`,o)):r&&r.forEach(e=>{e.hasAttribute(`js-toggle-visibility-by-input-listener`)||(e.setAttribute(`js-toggle-visibility-by-input-listener`,`true`),e.addEventListener(`change`,o))})})}function wp(e){let t=e.getAttribute(`js-toggle-visibility-by-input-target`)?.split(`;`),n=e.getAttribute(`js-toggle-visibility-by-input-value`)?.split(`;`);if(!t||!n)return!1;let r=e.closest(`form`);return Tp(t.map(e=>{let t=r?.querySelector(`#${e}`);if(t)return t;let n=Array.from(r?.querySelectorAll(`input[name='${e}'][type='radio']`)||[]);return n&&n.length?n.find(e=>e.checked)||n[0]:null}),n)}function Tp(e,t){for(let n=0;n<e.length;n++){let r=e[n];if(!r||!Ep(r,t[n]))return!1}return!0}function Ep(e,t){let n=e.value,r=t.split(`,`),i=r.find(e=>e.startsWith(`!!`)),a=r.find(e=>e.startsWith(`??`));return!(n===``&&!a||i&&n===i.slice(2)||a&&n===a.slice(2)||!r.includes(n)&&!a&&!i)}function Dp(e,t){let n=e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof HTMLButtonElement,r=e.hasAttribute(`x-bind:disabled`)||e.hasAttribute(`:disabled`);t?(n&&!r&&e.removeAttribute(`disabled`),e.classList.remove(`hidden`)):(n&&!r&&e.setAttribute(`disabled`,``),e.classList.add(`hidden`))}function Op(e){e?.forEach(e=>{Dp(e,wp(e))})}document.addEventListener(`DOMContentLoaded`,()=>{let e=`js-toggle-visibility-by-input-target`;document.querySelectorAll(`[${e}]`).forEach(e=>{Cp(e)}),new MutationObserver(t=>{t.forEach(t=>{t.addedNodes.forEach(t=>{if(t.nodeType!==1)return;let n=t,r=n.matches(`[${e}]`)?[n]:Array.from(n.querySelectorAll(`[${e}]`));r.length&&requestAnimationFrame(()=>{queueMicrotask(()=>{r.forEach(e=>Cp(e))})})})})}).observe(document.body,{childList:!0,subtree:!0})});var kp=1;function Ap(e,t){let n=0,r=!1;function i(e){let i=e.nodeValue?.trim()??``;n+i.length>t&&!r?a(e,i):r||(n+=i.length)}function a(e,i){let a=i.split(/\s+/),o=``;for(let e of a)if(n+e.length+1<=t)o+=(o?` `:``)+e,n+=e.length+1;else{o+=`...`,r=!0;break}e.nodeValue=o}function o(e){let i=Array.from(e.childNodes);for(let a of i)n<t&&!r?s(a):e.removeChild(a)}function s(e){e.nodeType===Node.TEXT_NODE?i(e):e.nodeType===Node.ELEMENT_NODE&&o(e)}s(e),e.setAttribute(`js-trim-text-maxlength-trimmed`,``)}function jp(e){Mp(e);let t=e.querySelectorAll(`[js-trim-text-overflow-styled]`);for(let e of t)Mp(e);e.children.length?Pp(e):Lp(e)}function Mp(e){e.style.display=``,e.style.webkitLineClamp=``,e.style.webkitBoxOrient=``,e.style.textOverflow=``,e.style.overflow=``,e.removeAttribute(`js-trim-text-overflow-styled`)}function Np(e,t){let n=t<1?1:t;e.style.display=`-webkit-box`,e.style.webkitLineClamp=n.toString(),e.style.webkitBoxOrient=`vertical`,e.style.textOverflow=`ellipsis`,e.style.overflow=`hidden`,e.setAttribute(`js-trim-text-overflow-styled`,``)}function Pp(e){let t=Array.from(e.children).reverse(),n=e.clientHeight;for(let r of t){let t=r.getBoundingClientRect().top-e.getBoundingClientRect().top,i=parseInt(window.getComputedStyle(r).lineHeight);if(t>n+kp||t+i>n+kp)r.style.display=`none`,r.setAttribute(`js-trim-text-overflow-styled`,``);else{r.tagName===`UL`||r.tagName===`OL`?(Array.from(r.children).forEach(e=>{if(e.tagName!==`LI`||e.querySelector(`.list-item-content`))return;let t=document.createElement(`span`);t.textContent=e.textContent,t.classList.add(`list-item-content`),e.textContent=``,e.appendChild(t)}),Fp(r,e,n)):Ip(r,e,n,i);break}}}function Fp(e,t,n){let r=Array.from(e.children).reverse();for(let e of r){let r=e.getBoundingClientRect().top-t.getBoundingClientRect().top,i=parseInt(window.getComputedStyle(e).lineHeight);if(r>n+kp||r+i>n+kp)e.style.display=`none`,e.setAttribute(`js-trim-text-overflow-styled`,``);else{let t=e.clientHeight,a=r+t-n,o=Math.floor((t-a)/i),s=e.querySelector(`.list-item-content`);a>kp&&s&&Np(s,o);break}}}function Ip(e,t,n,r){let i=e.clientHeight,a=e.getBoundingClientRect().top-t.getBoundingClientRect().top+i-n,o=Math.floor((i-a)/r);a>kp&&Np(e,o)}function Lp(e){let t=e.clientHeight;if(e.scrollHeight<=t)return;let n=parseInt(window.getComputedStyle(e).lineHeight);Np(e,Math.floor(t/n))}function Rp(e){let t=e.getAttribute(`js-trim-text`),n=e.hasAttribute(`js-trim-text-overflow`);if(!t||t&&isNaN(t)&&n)jp(e);else{let r=parseInt(t);e.hasAttribute(`js-trim-text-maxlength-trimmed`)||Ap(e,r),n&&jp(e)}}function zp(e,t){e.hasAttribute(`js-trim-text-prevent-onload`)||Rp(e),t.push(e)}
49function Bp(e,t){e.forEach(e=>{zp(e,t)})}function Vp(e,t,n){if(e.nodeType===1){let r=e;if(r.hasAttribute(t)||r.querySelector(`[${t}]`)){let e=r.hasAttribute(t)?r:r.querySelectorAll(`[${t}]`);e instanceof HTMLElement&&zp(e,n),e instanceof NodeList&&Bp(e,n)}}}document.addEventListener(`DOMContentLoaded`,()=>{let e=[],t=`js-trim-text`;document.querySelectorAll(`[${t}]`).forEach(t=>{e.push(t)}),e.filter(e=>!e.hasAttribute(`js-trim-text-prevent-onload`)).forEach(e=>{Rp(e)}),new MutationObserver(n=>{n.forEach(n=>{n.type===`childList`&&n.addedNodes.forEach(n=>{Vp(n,t,e)})})}).observe(document.body,{childList:!0,subtree:!0}),window.addEventListener(`trim-text`,e=>{let{target:n}=e,r=n;if(r.hasAttribute(t)){Rp(r);return}r.querySelectorAll(`[${t}]`).forEach(Rp)}),window.addEventListener(`resize`,Co(()=>{e.forEach(e=>{Rp(e)})},300),{passive:!0})});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.