PageSourceSearch

https://www.komtur.com/_nuxt/default.82209850.js

js komtur.com collected 2026-10-05 17:59:35 UTC 81,069 bytes, 4 lines download raw bytes

1import{m as Dn,e as Wt,d as jn,g as zt,v as Gt,_ as Bn}from"./media.f2445982.js";import{_ as Qe,a as _t,b as Yt}from"./Button.vue.0a634fa4.js";import{o as C,c as j,a as I,d as U,b as D,f as v,t as G,h as q,Y as Hn,Z as X,F as ne,$ as ae,a0 as ue,a1 as ee,q as $,P as x,a2 as K,i as J,z as ce,V as Je,a3 as pe,a4 as Xt,a5 as Vn,A as De,n as de,g as re,w as H,Q as Ge,H as P,I as wt,J as qt,K as Et,L as St,m as xe,p as je,a6 as Kn,v as Un,s as Ce,x as Ye,r as Te,e as Me,D as Wn,C as Qt,u as $t,T as Jt,M as Zt,N as en,_ as zn}from"./entry.042b96d5.js";function Gn(e,t){return C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[I("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.5 4.5L21 12m0 0l-7.5 7.5M21 12H3"})])}function Yn(e,t){return C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[I("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6.115 5.19l.319 1.913A6 6 0 008.11 10.36L9.75 12l-.387.775c-.217.433-.132.956.21 1.298l1.348 1.348c.21.21.329.497.329.795v1.089c0 .426.24.815.622 1.006l.153.076c.433.217.956.132 1.298-.21l.723-.723a8.7 8.7 0 002.288-4.042 1.087 1.087 0 00-.358-1.099l-1.33-1.108c-.251-.21-.582-.299-.905-.245l-1.17.195a1.125 1.125 0 01-.98-.314l-.295-.295a1.125 1.125 0 010-1.591l.13-.132a1.125 1.125 0 011.3-.21l.603.302a.809.809 0 001.086-1.086L14.25 7.5l1.256-.837a4.5 4.5 0 001.528-1.732l.146-.292M6.115 5.19A9 9 0 1017.18 4.64M6.115 5.19A8.965 8.965 0 0112 3c1.929 0 3.716.607 5.18 1.64"})])}const Xn={class:"border-grey relative border-t py-14 px-6 text-center text-sm sm:px-14"},qn={key:0,class:"mt-4 text-base font-semibold text-gray-900"},Qn={key:1,class:"mt-2 text-base text-gray-500"},Jn=U({__name:"SearchDialogEmpty",props:{searchTerms:{}},setup(e){return(t,n)=>{var a,r;return C(),j("div",Xn,[D(v(Yn),{class:"text-blue mx-auto h-10 w-10","aria-hidden":"true"}),(a=t.searchTerms)!=null&&a.idle_title?(C(),j("p",qn,G(t.searchTerms.idle_title),1)):q("",!0),(r=t.searchTerms)!=null&&r.idle_text?(C(),j("p",Qn,G(t.searchTerms.idle_text),1)):q("",!0)])}}});function z(e,t,...n){if(e in t){let r=t[e];return typeof r=="function"?r(...n):r}let a=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(r=>`"${r}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(a,z),a}var ye=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(ye||{}),be=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(be||{});function oe({visible:e=!0,features:t=0,ourProps:n,theirProps:a,...r}){var o;let l=nn(a,n),s=Object.assign(r,{props:l});if(e||t&2&&l.static)return ot(s);if(t&1){let i=(o=l.unmount)==null||o?0:1;return z(i,{[0](){return null},[1](){return ot({...r,props:{...l,hidden:!0,style:{display:"none"}}})}})}return ot(s)}function ot({props:e,attrs:t,slots:n,slot:a,name:r}){var o,l;let{as:s,...i}=Ze(e,["unmount","static"]),u=(o=n.default)==null?void 0:o.call(n,a),c={};if(a){let d=!1,p=[];for(let[f,h]of Object.entries(a))typeof h=="boolean"&&(d=!0),h===!0&&p.push(f);d&&(c["data-headlessui-state"]=p.join(" "))}if(s==="template"){if(u=tn(u??[]),Object.keys(i).length>0||Object.keys(t).length>0){let[d,...p]=u??[];if(!eo(d)||p.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${r} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(i).concat(Object.keys(t)).map(g=>g.trim()).filter((g,_,m)=>m.indexOf(g)===_).sort((g,_)=>g.localeCompare(_)).map(g=>`  - ${g}`).join(`
2`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(g=>`  - ${g}`).join(`
3`)].join(`
4`));let f=nn((l=d.props)!=null?l:{},i),h=Hn(d,f);for(let g in f)g.startsWith("on")&&(h.props||(h.props={}),h.props[g]=f[g]);return h}return Array.isArray(u)&&u.length===1?u[0]:u}return X(s,Object.assign({},i,c),{default:()=>u})}function tn(e){return e.flatMap(t=>t.type===ne?tn(t.children):[t])}function nn(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let a of e)for(let r in a)r.startsWith("on")&&typeof a[r]=="function"?(n[r]!=null||(n[r]=[]),n[r].push(a[r])):t[r]=a[r];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(a=>[a,void 0])));for(let a in n)Object.assign(t,{[a](r,...o){let l=n[a];for(let s of l){if(r instanceof Event&&r.defaultPrevented)return;s(r,...o)}}});return t}function Zn(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Ze(e,t=[]){let n=Object.assign({},e);for(let a of t)a in n&&delete n[a];return n}function eo(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}let to=0;function no(){return++to}function Ae(){return no()}var ie=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(ie||{});function oo(e){throw new Error("Unexpected object: "+e)}var Z=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(Z||{});function ro(e,t){let n=t.resolveItems();if(n.length<=0)return null;let a=t.resolveActiveIndex(),r=a??-1,o=(()=>{switch(e.focus){case 0:return n.findIndex(l=>!t.resolveDisabled(l));case 1:{let l=n.slice().reverse().findIndex((s,i,u)=>r!==-1&&u.length-i-1>=r?!1:!t.resolveDisabled(s));return l===-1?l:n.length-1-l}case 2:return n.findIndex((l,s)=>s<=r?!1:!t.resolveDisabled(l));case 3:{let l=n.slice().reverse().findIndex(s=>!t.resolveDisabled(s));return l===-1?l:n.length-1-l}case 4:return n.findIndex(l=>t.resolveId(l)===e.id);case 5:return null;default:oo(e)}})();return o===-1?a:o}function N(e){var t;return e==null||e.value==null?null:(t=e.value.$el)!=null?t:e.value}let on=Symbol("Context");var Q=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Q||{});function ao(){return et()!==null}function et(){return ae(on,null)}function rn(e){ue(on,e)}var lo=Object.defineProperty,so=(e,t,n)=>t in e?lo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}
4):e[t]=n,Mt=(e,t,n)=>(so(e,typeof t!="symbol"?t+"":t,n),n);class io{constructor(){Mt(this,"current",this.detect()),Mt(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}}let Be=new io;function _e(e){if(Be.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=N(e);if(t)return t.ownerDocument}return document}function uo({container:e,accept:t,walk:n,enabled:a}){ee(()=>{let r=e.value;if(!r||a!==void 0&&!a.value)return;let o=_e(e);if(!o)return;let l=Object.assign(i=>t(i),{acceptNode:t}),s=o.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,l,!1);for(;s.nextNode();)n(s.currentNode)})}let ut=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var ge=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(ge||{}),an=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(an||{}),co=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(co||{});function fo(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(ut)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var ln=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(ln||{});function po(e,t=0){var n;return e===((n=_e(e))==null?void 0:n.body)?!1:z(t,{[0](){return e.matches(ut)},[1](){let a=e;for(;a!==null;){if(a.matches(ut))return!0;a=a.parentElement}return!1}})}var ho=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(ho||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function ke(e){e==null||e.focus({preventScroll:!0})}let vo=["textarea","input"].join(",");function mo(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,vo))!=null?n:!1}function sn(e,t=n=>n){return e.slice().sort((n,a)=>{let r=t(n),o=t(a);if(r===null||o===null)return 0;let l=r.compareDocumentPosition(o);return l&Node.DOCUMENT_POSITION_FOLLOWING?-1:l&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function ze(e,t,{sorted:n=!0,relativeTo:a=null,skipElements:r=[]}={}){var o;let l=(o=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e==null?void 0:e.ownerDocument)!=null?o:document,s=Array.isArray(e)?n?sn(e):e:fo(e);r.length>0&&s.length>1&&(s=s.filter(h=>!r.includes(h))),a=a??l.activeElement;let i=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,s.indexOf(a))-1;if(t&4)return Math.max(0,s.indexOf(a))+1;if(t&8)return s.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=t&32?{preventScroll:!0}:{},d=0,p=s.length,f;do{if(d>=p||d+p<=0)return 0;let h=u+d;if(t&16)h=(h+p)%p;else{if(h<0)return 3;if(h>=p)return 1}f=s[h],f==null||f.focus(c),d+=i}while(f!==l.activeElement);return t&6&&mo(f)&&f.select(),2}function Ve(e,t,n){Be.isServer||ee(a=>{document.addEventListener(e,t,n),a(()=>document.removeEventListener(e,t,n))})}function un(e,t,n){Be.isServer||ee(a=>{window.addEventListener(e,t,n),a(()=>window.removeEventListener(e,t,n))})}function cn(e,t,n=x(()=>!0)){function a(o,l){if(!n.value||o.defaultPrevented)return;let s=l(o);if(s===null||!s.getRootNode().contains(s))return;let i=function u(c){return typeof c=="function"?u(c()):Array.isArray(c)||c instanceof Set?c:[c]}(e);for(let u of i){if(u===null)continue;let c=u instanceof HTMLElement?u:N(u);if(c!=null&&c.contains(s)||o.composed&&o.composedPath().includes(c))return}return!po(s,ln.Loose)&&s.tabIndex!==-1&&o.preventDefault(),t(o,s)}let r=$(null);Ve("pointerdown",o=>{var l,s;n.value&&(r.value=((s=(l=o.composedPath)==null?void 0:l.call(o))==null?void 0:s[0])||o.target)}
4,!0),Ve("mousedown",o=>{var l,s;n.value&&(r.value=((s=(l=o.composedPath)==null?void 0:l.call(o))==null?void 0:s[0])||o.target)},!0),Ve("click",o=>{r.value&&(a(o,()=>r.value),r.value=null)},!0),Ve("touchend",o=>a(o,()=>o.target instanceof HTMLElement?o.target:null),!0),un("blur",o=>a(o,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}var Ne=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Ne||{});let Xe=U({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:n}){return()=>{let{features:a,...r}=e,o={"aria-hidden":(a&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(a&4)===4&&(a&2)!==2&&{display:"none"}}};return oe({ourProps:o,theirProps:r,slot:{},attrs:n,slots:t,name:"Hidden"})}}});function dn(e={},t=null,n=[]){for(let[a,r]of Object.entries(e))pn(n,fn(t,a),r);return n}function fn(e,t){return e?e+"["+t+"]":t}function pn(e,t,n){if(Array.isArray(n))for(let[a,r]of n.entries())pn(e,fn(t,a.toString()),r);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):dn(n,t,e)}function go(e,t,n){let a=$(n==null?void 0:n.value),r=x(()=>e.value!==void 0);return[x(()=>r.value?e.value:a.value),function(o){return r.value||(a.value=o),t==null?void 0:t(o)}]}function At(e){return[e.screenX,e.screenY]}function bo(){let e=$([-1,-1]);return{wasMoved(t){let n=At(t);return e.value[0]===n[0]&&e.value[1]===n[1]?!1:(e.value=n,!0)},update(t){e.value=At(t)}}}function hn(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function xo(){return/Android/gi.test(window.navigator.userAgent)}function yo(){return hn()||xo()}function Ot(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Ie(){let e=[],t={addEventListener(n,a,r,o){return n.addEventListener(a,r,o),t.add(()=>n.removeEventListener(a,r,o))},requestAnimationFrame(...n){let a=requestAnimationFrame(...n);t.add(()=>cancelAnimationFrame(a))},nextFrame(...n){t.requestAnimationFrame(()=>{t.requestAnimationFrame(...n)})},setTimeout(...n){let a=setTimeout(...n);t.add(()=>clearTimeout(a))},microTask(...n){let a={current:!0};return Ot(()=>{a.current&&n[0]()}),t.add(()=>{a.current=!1})},style(n,a,r){let o=n.style.getPropertyValue(a);return Object.assign(n.style,{[a]:r}),this.add(()=>{Object.assign(n.style,{[a]:o})})},group(n){let a=Ie();return n(a),this.add(()=>a.dispose())},add(n){return e.push(n),()=>{let a=e.indexOf(n);if(a>=0)for(let r of e.splice(a,1))r()}},dispose(){for(let n of e.splice(0))n()}};return t}function _o(e,t){return e===t}var wo=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(wo||{}),Eo=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Eo||{}),So=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(So||{});let vn=Symbol("ComboboxContext");function tt(e){let t=ae(vn,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,tt),n}return t}let $o=U({name:"Combobox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>_o},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},nullable:{type:Boolean,default:!1},multiple:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(e,{slots:t,attrs:n,emit:a}){let r=$(1),o=$(null),l=$(null),s=$(null),i=$(null),u=$({static:!1,hold:!1}),c=$([]),d=$(null),p=$(1),f=$(!1);function h(y=L=>L){let L=d.value!==null?c.value[d.value]:null,T=sn(y(c.value.slice()),O=>N(O.dataRef.domRef)),w=L?T.indexOf(L):null;return w===-1&&(w=null),{options:T,activeOptionIndex:w}}let g=x(()=>e.multiple?1:0),_=x(()=>e.nullable),[m,b]=go(x(()=>e.modelValue),y=>a("update:modelValue",y),x(()=>e.defaultValue)),E=x(()=>m.value===void 0?z(g.value,{[1]:[],[0]:void 0}):m.value),M=null,F=null,S={comboboxState:r,value:E,mode:g,compare(y,L){if
4(typeof e.by=="string"){let T=e.by;return(y==null?void 0:y[T])===(L==null?void 0:L[T])}return e.by(y,L)},defaultValue:x(()=>e.defaultValue),nullable:_,inputRef:l,labelRef:o,buttonRef:s,optionsRef:i,disabled:x(()=>e.disabled),options:c,change(y){b(y)},activeOptionIndex:x(()=>{if(f.value&&d.value===null&&c.value.length>0){let y=c.value.findIndex(L=>!L.dataRef.disabled);y!==-1&&(d.value=y)}return d.value}),activationTrigger:p,optionsPropsRef:u,closeCombobox(){f.value=!1,!e.disabled&&r.value!==1&&(r.value=1,d.value=null)},openCombobox(){if(f.value=!0,e.disabled||r.value===0)return;let y=c.value.findIndex(L=>{let T=K(L.dataRef.value);return z(g.value,{[0]:()=>S.compare(K(S.value.value),K(T)),[1]:()=>K(S.value.value).some(w=>S.compare(K(w),K(T)))})});y!==-1&&(d.value=y),r.value=0},goToOption(y,L,T){f.value=!1,M!==null&&cancelAnimationFrame(M),M=requestAnimationFrame(()=>{if(e.disabled||i.value&&!u.value.static&&r.value===1)return;let w=h();if(w.activeOptionIndex===null){let A=w.options.findIndex(W=>!W.dataRef.disabled);A!==-1&&(w.activeOptionIndex=A)}let O=ro(y===Z.Specific?{focus:Z.Specific,id:L}:{focus:y},{resolveItems:()=>w.options,resolveActiveIndex:()=>w.activeOptionIndex,resolveId:A=>A.id,resolveDisabled:A=>A.dataRef.disabled});d.value=O,p.value=T??1,c.value=w.options})},selectOption(y){let L=c.value.find(w=>w.id===y);if(!L)return;let{dataRef:T}=L;b(z(g.value,{[0]:()=>T.value,[1]:()=>{let w=K(S.value.value).slice(),O=K(T.value),A=w.findIndex(W=>S.compare(O,K(W)));return A===-1?w.push(O):w.splice(A,1),w}}))},selectActiveOption(){if(S.activeOptionIndex.value===null)return;let{dataRef:y,id:L}=c.value[S.activeOptionIndex.value];b(z(g.value,{[0]:()=>y.value,[1]:()=>{let T=K(S.value.value).slice(),w=K(y.value),O=T.findIndex(A=>S.compare(w,K(A)));return O===-1?T.push(w):T.splice(O,1),T}})),S.goToOption(Z.Specific,L)},registerOption(y,L){F&&cancelAnimationFrame(F);let T={id:y,dataRef:L},w=h(O=>(O.push(T),O));if(d.value===null){let O=L.value.value;z(g.value,{[0]:()=>S.compare(K(S.value.value),K(O)),[1]:()=>K(S.value.value).some(A=>S.compare(K(A),K(O)))})&&(w.activeOptionIndex=w.options.indexOf(T))}c.value=w.options,d.value=w.activeOptionIndex,p.value=1,w.options.some(O=>!N(O.dataRef.domRef))&&(F=requestAnimationFrame(()=>{let O=h();c.value=O.options,d.value=O.activeOptionIndex}))},unregisterOption(y){var L;S.activeOptionIndex.value!==null&&((L=S.options.value[S.activeOptionIndex.value])==null?void 0:L.id)===y&&(f.value=!0);let T=h(w=>{let O=w.findIndex(A=>A.id===y);return O!==-1&&w.splice(O,1),w});c.value=T.options,d.value=T.activeOptionIndex,p.value=1}};cn([l,s,i],()=>S.closeCombobox(),x(()=>r.value===0)),ue(vn,S),rn(x(()=>z(r.value,{[0]:Q.Open,[1]:Q.Closed})));let R=x(()=>S.activeOptionIndex.value===null?null:c.value[S.activeOptionIndex.value].dataRef.value),B=x(()=>{var y;return(y=N(l))==null?void 0:y.closest("form")});return J(()=>{ce([B],()=>{if(!B.value||e.defaultValue===void 0)return;function y(){S.change(e.defaultValue)}return B.value.addEventListener("reset",y),()=>{var L;(L=B.value)==null||L.removeEventListener("reset",y)}},{immediate:!0})}),()=>{let{name:y,disabled:L,form:T,...w}=e,O={open:r.value===0,disabled:L,activeIndex:S.activeOptionIndex.value,activeOption:R.value,value:E.value};return X(ne,[...y!=null&&E.value!=null?dn({[y]:E.value}).map(([A,W])=>X(Xe,Zn({features:Ne.Hidden,key:A,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:T,name:A,value:W}))):[],oe({theirProps:{...n,...Ze(w,["modelValue","defaultValue","nullable","multiple","onUpdate:modelValue","by"])},ourProps:{},slot:O,slots:t,attrs:n,name:"Combobox"})])}}}),Oo=U({name:"ComboboxInput",props:{as:{type:[Object,String],default:"input"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},displayValue:{type:Function},defaultValue:{type:String,default:void 0},id:{type:String,default:()=>`headlessui-combobox-input-${Ae()}`}},emits:{change:e=>!0},setup(e,{emit:t,attrs:n,slots:a,expose:r}){let o=tt("ComboboxInput"),l=x(()=>_e(N(o.inputRef))),s={value:!1};r({el:o.inputRef,$el:o.inputRef});function i(){o.change(null);let m=N(o.optionsRef);m&&(m.scrollTop=0),o.goToOption(Z.Nothing)}let u=x(()=>{var m;let b=o.value.value;return N(o.inputRef)?typeof e.displayValue<"u"&&b!==void 0?(m=e.dis
4playValue(b))!=null?m:"":typeof b=="string"?b:"":""});J(()=>{ce([u,o.comboboxState,l],([m,b],[E,M])=>{if(s.value)return;let F=N(o.inputRef);F&&((M===0&&b===1||m!==E)&&(F.value=m),requestAnimationFrame(()=>{var S;if(s.value||!F||((S=l.value)==null?void 0:S.activeElement)!==F)return;let{selectionStart:R,selectionEnd:B}=F;Math.abs((B??0)-(R??0))===0&&R===0&&F.setSelectionRange(F.value.length,F.value.length)}))},{immediate:!0}),ce([o.comboboxState],([m],[b])=>{if(m===0&&b===1){if(s.value)return;let E=N(o.inputRef);if(!E)return;let M=E.value,{selectionStart:F,selectionEnd:S,selectionDirection:R}=E;E.value="",E.value=M,R!==null?E.setSelectionRange(F,S,R):E.setSelectionRange(F,S)}})});let c=$(!1);function d(){c.value=!0}function p(){Ie().nextFrame(()=>{c.value=!1})}function f(m){switch(s.value=!0,m.key){case ie.Enter:if(s.value=!1,o.comboboxState.value!==0||c.value)return;if(m.preventDefault(),m.stopPropagation(),o.activeOptionIndex.value===null){o.closeCombobox();return}o.selectActiveOption(),o.mode.value===0&&o.closeCombobox();break;case ie.ArrowDown:return s.value=!1,m.preventDefault(),m.stopPropagation(),z(o.comboboxState.value,{[0]:()=>o.goToOption(Z.Next),[1]:()=>o.openCombobox()});case ie.ArrowUp:return s.value=!1,m.preventDefault(),m.stopPropagation(),z(o.comboboxState.value,{[0]:()=>o.goToOption(Z.Previous),[1]:()=>{o.openCombobox(),Je(()=>{o.value.value||o.goToOption(Z.Last)})}});case ie.Home:if(m.shiftKey)break;return s.value=!1,m.preventDefault(),m.stopPropagation(),o.goToOption(Z.First);case ie.PageUp:return s.value=!1,m.preventDefault(),m.stopPropagation(),o.goToOption(Z.First);case ie.End:if(m.shiftKey)break;return s.value=!1,m.preventDefault(),m.stopPropagation(),o.goToOption(Z.Last);case ie.PageDown:return s.value=!1,m.preventDefault(),m.stopPropagation(),o.goToOption(Z.Last);case ie.Escape:if(s.value=!1,o.comboboxState.value!==0)return;m.preventDefault(),o.optionsRef.value&&!o.optionsPropsRef.value.static&&m.stopPropagation(),o.nullable.value&&o.mode.value===0&&o.value.value===null&&i(),o.closeCombobox();break;case ie.Tab:if(s.value=!1,o.comboboxState.value!==0)return;o.mode.value===0&&o.selectActiveOption(),o.closeCombobox();break}}function h(m){t("change",m),o.nullable.value&&o.mode.value===0&&m.target.value===""&&i(),o.openCombobox()}function g(){s.value=!1}let _=x(()=>{var m,b,E,M;return(M=(E=(b=e.defaultValue)!=null?b:o.defaultValue.value!==void 0?(m=e.displayValue)==null?void 0:m.call(e,o.defaultValue.value):null)!=null?E:o.defaultValue.value)!=null?M:""});return()=>{var m,b,E,M,F,S;let R={open:o.comboboxState.value===0},{id:B,displayValue:y,onChange:L,...T}=e,w={"aria-controls":(m=o.optionsRef.value)==null?void 0:m.id,"aria-expanded":o.comboboxState.value===0,"aria-activedescendant":o.activeOptionIndex.value===null||(b=o.options.value[o.activeOptionIndex.value])==null?void 0:b.id,"aria-labelledby":(F=(E=N(o.labelRef))==null?void 0:E.id)!=null?F:(M=N(o.buttonRef))==null?void 0:M.id,"aria-autocomplete":"list",id:B,onCompositionstart:d,onCompositionend:p,onKeydown:f,onInput:h,onBlur:g,role:"combobox",type:(S=n.type)!=null?S:"text",tabIndex:0,ref:o.inputRef,defaultValue:_.value,disabled:o.disabled.value===!0?!0:void 0};return oe({ourProps:w,theirProps:T,slot:R,attrs:n,slots:a,features:ye.RenderStrategy|ye.Static,name:"ComboboxInput"})}}}),ko=U({name:"ComboboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},hold:{type:[Boolean],default:!1}},setup(e,{attrs:t,slots:n,expose:a}){let r=tt("ComboboxOptions"),o=`headlessui-combobox-options-${Ae()}`;a({el:r.optionsRef,$el:r.optionsRef}),ee(()=>{r.optionsPropsRef.value.static=e.static}),ee(()=>{r.optionsPropsRef.value.hold=e.hold});let l=et(),s=x(()=>l!==null?(l.value&Q.Open)===Q.Open:r.comboboxState.value===0);return uo({container:x(()=>N(r.optionsRef)),enabled:x(()=>r.comboboxState.value===0),accept(i){return i.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:i.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(i){i.setAttribute("role","none")}}),()=>{var i,u,c;let d={open:r.comboboxState.value===0},p={"aria-labelledby":(c=(i=N(r.labelRef))==null?void 0:i.id)!=null?c:(u=N(r.buttonRef))==null?void 0:u.id,id:o,ref:r.optionsRef,role:"listbox","aria-multiselectable":r.mode.value===1?!0:void 0},f=Ze(e,["hold"]);return oe({ourProps:p,theirProps:f,slot:d,attrs:t,slots:n,features:ye.RenderStrategy|ye.Static,visible:s.value,
4name:"ComboboxOptions"})}}}),Lo=U({name:"ComboboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n,expose:a}){let r=tt("ComboboxOption"),o=`headlessui-combobox-option-${Ae()}`,l=$(null);a({el:l,$el:l});let s=x(()=>r.activeOptionIndex.value!==null?r.options.value[r.activeOptionIndex.value].id===o:!1),i=x(()=>z(r.mode.value,{[0]:()=>r.compare(K(r.value.value),K(e.value)),[1]:()=>K(r.value.value).some(_=>r.compare(K(_),K(e.value)))})),u=x(()=>({disabled:e.disabled,value:e.value,domRef:l}));J(()=>r.registerOption(o,u)),pe(()=>r.unregisterOption(o)),ee(()=>{r.comboboxState.value===0&&s.value&&r.activationTrigger.value!==0&&Je(()=>{var _,m;return(m=(_=N(l))==null?void 0:_.scrollIntoView)==null?void 0:m.call(_,{block:"nearest"})})});function c(_){if(e.disabled)return _.preventDefault();r.selectOption(o),r.mode.value===0&&r.closeCombobox(),yo()||requestAnimationFrame(()=>{var m;return(m=N(r.inputRef))==null?void 0:m.focus()})}function d(){if(e.disabled)return r.goToOption(Z.Nothing);r.goToOption(Z.Specific,o)}let p=bo();function f(_){p.update(_)}function h(_){p.wasMoved(_)&&(e.disabled||s.value||r.goToOption(Z.Specific,o,0))}function g(_){p.wasMoved(_)&&(e.disabled||s.value&&(r.optionsPropsRef.value.hold||r.goToOption(Z.Nothing)))}return()=>{let{disabled:_}=e,m={active:s.value,selected:i.value,disabled:_},b={id:o,ref:l,role:"option",tabIndex:_===!0?void 0:-1,"aria-disabled":_===!0?!0:void 0,"aria-selected":i.value,disabled:void 0,onClick:c,onFocus:d,onPointerenter:f,onMouseenter:f,onPointermove:h,onMousemove:h,onPointerleave:g,onMouseleave:g};return oe({ourProps:b,theirProps:e,slot:m,attrs:n,slots:t,name:"ComboboxOption"})}}});var Fe=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Fe||{});function Co(){let e=$(0);return un("keydown",t=>{t.key==="Tab"&&(e.value=t.shiftKey?1:0)}),e}function mn(e,t,n,a){Be.isServer||ee(r=>{e=e??window,e.addEventListener(t,n,a),r(()=>e.removeEventListener(t,n,a))})}function To(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}function gn(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.value){let a=N(n);a instanceof HTMLElement&&t.add(a)}return t}var bn=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(bn||{});let Re=Object.assign(U({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:$(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:a}){let r=$(null);a({el:r,$el:r});let o=x(()=>_e(r)),l=$(!1);J(()=>l.value=!0),pe(()=>l.value=!1),Ao({ownerDocument:o},x(()=>l.value&&!!(e.features&16)));let s=Io({ownerDocument:o,container:r,initialFocus:x(()=>e.initialFocus)},x(()=>l.value&&!!(e.features&2)));Ro({ownerDocument:o,container:r,containers:e.containers,previousActiveElement:s},x(()=>l.value&&!!(e.features&8)));let i=Co();function u(f){let h=N(r);h&&(g=>g())(()=>{z(i.value,{[Fe.Forwards]:()=>{ze(h,ge.First,{skipElements:[f.relatedTarget]})},[Fe.Backwards]:()=>{ze(h,ge.Last,{skipElements:[f.relatedTarget]})}})})}let c=$(!1);function d(f){f.key==="Tab"&&(c.value=!0,requestAnimationFrame(()=>{c.value=!1}))}function p(f){if(!l.value)return;let h=gn(e.containers);N(r)instanceof HTMLElement&&h.add(N(r));let g=f.relatedTarget;g instanceof HTMLElement&&g.dataset.headlessuiFocusGuard!=="true"&&(xn(h,g)||(c.value?ze(N(r),z(i.value,{[Fe.Forwards]:()=>ge.Next,[Fe.Backwards]:()=>ge.Previous})|ge.WrapAround,{relativeTo:f.target}):f.target instanceof HTMLElement&&ke(f.target)))}return()=>{let f={},h={ref:r,onKeydown:d,onFocusout:p},{features:g,initialFocus:_,containers:m,...b}=e;return X(ne,[!!(g&4)&&X(Xe,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:u,features:Ne.Focusable}),oe({ourProps:h,theirProps:{...t,...b},slot:f,attrs:t,slots:n,name:"FocusTrap"}),!!(g&4)&&X(Xe,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:u,features:Ne.Focusable})])}}}),{features:bn}),Se=[];To(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&Se[0]!==t.target&&(Se.unshift(t.target),Se=Se.filter(n=>n!=null&&n.isConnected),Se.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function Mo(e){let t=$(Se.slice());return ce([e],([n],[a])=>{a===!0&&n===!1?Ot(()=>{t.value.splice(0)}):a===!1&&n===!0&&(t.value=Se.slice())},{flush:"post"}),()=>{var n;return(n=t.value.find(a=>a!=null&&a.isConnected))!=null?n:null}}function Ao({ownerDocument:e},t){let n=Mo(t);J(()=>{ee(()=>{var a,r;t.value||((a=e.value)==null?void 0:a.activeElement)===((r=e.value)==null?void 0:r.body)&&ke(n())},{flush:"post"})}),pe(()=>{t.value&&ke(n())})}function Io({ownerDocument:e,container:t,initialFocus:n},a){let r=$(null),o=$(!1);return J(()=>o.value=!0),pe(()=>o.value=!1),J(()=>{ce([t,n,a],(l,s)=>{if(l.every((u,c)=>(s==null?void 0:s[c])===u)||!a.value)return;let i=N(t);i&&Ot(()=>{var u,c;if(!o.value)return;let d=N(n),p=(u=e.value)==null?void 0:u.activeElement;if(d){if(d===p){r.value=p;return}}else if(i.contains(p)){r.value=p;return}d?ke(d):ze(i,ge.First|ge.NoScroll)===an.Error&&console.warn("There are no focu
4sable elements inside the <FocusTrap />"),r.value=(c=e.value)==null?void 0:c.activeElement})},{immediate:!0,flush:"post"})}),r}function Ro({ownerDocument:e,container:t,containers:n,previousActiveElement:a},r){var o;mn((o=e.value)==null?void 0:o.defaultView,"focus",l=>{if(!r.value)return;let s=gn(n);N(t)instanceof HTMLElement&&s.add(N(t));let i=a.value;if(!i)return;let u=l.target;u&&u instanceof HTMLElement?xn(s,u)?(a.value=u,ke(u)):(l.preventDefault(),l.stopPropagation(),ke(i)):ke(a.value)},!0)}function xn(e,t){for(let n of e)if(n.contains(t))return!0;return!1}let rt=new Map,Pe=new Map;function It(e,t=$(!0)){ee(n=>{var a;if(!t.value)return;let r=N(e);if(!r)return;n(function(){var l;if(!r)return;let s=(l=Pe.get(r))!=null?l:1;if(s===1?Pe.delete(r):Pe.set(r,s-1),s!==1)return;let i=rt.get(r);i&&(i["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",i["aria-hidden"]),r.inert=i.inert,rt.delete(r))});let o=(a=Pe.get(r))!=null?a:0;Pe.set(r,o+1),o===0&&(rt.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0)})}let yn=Symbol("ForcePortalRootContext");function Po(){return ae(yn,!1)}let Rt=U({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){return ue(yn,e.force),()=>{let{force:a,...r}=e;return oe({theirProps:r,ourProps:{},slot:{},slots:t,attrs:n,name:"ForcePortalRoot"})}}});function Fo(e){let t=_e(e);if(!t){if(e===null)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`)}let n=t.getElementById("headlessui-portal-root");if(n)return n;let a=t.createElement("div");return a.setAttribute("id","headlessui-portal-root"),t.body.appendChild(a)}let No=U({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n}){let a=$(null),r=x(()=>_e(a)),o=Po(),l=ae(_n,null),s=$(o===!0||l==null?Fo(a.value):l.resolveTarget());ee(()=>{o||l!=null&&(s.value=l.resolveTarget())});let i=ae(ct,null);return J(()=>{let u=N(a);u&&i&&pe(i.register(u))}),pe(()=>{var u,c;let d=(u=r.value)==null?void 0:u.getElementById("headlessui-portal-root");d&&s.value===d&&s.value.children.length<=0&&((c=s.value.parentElement)==null||c.removeChild(s.value))}),()=>{if(s.value===null)return null;let u={ref:a,"data-headlessui-portal":""};return X(Xt,{to:s.value},oe({ourProps:u,theirProps:e,slot:{},attrs:n,slots:t,name:"Portal"}))}}}),ct=Symbol("PortalParentContext");function Do(){let e=ae(ct,null),t=$([]);function n(o){return t.value.push(o),e&&e.register(o),()=>a(o)}function a(o){let l=t.value.indexOf(o);l!==-1&&t.value.splice(l,1),e&&e.unregister(o)}let r={register:n,unregister:a,portals:t};return[t,U({name:"PortalWrapper",setup(o,{slots:l}){return ue(ct,r),()=>{var s;return(s=l.default)==null?void 0:s.call(l)}}})]}let _n=Symbol("PortalGroupContext"),jo=U({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:n}){let a=Vn({resolveTarget(){return e.target}});return ue(_n,a),()=>{let{target:r,...o}=e;return oe({theirProps:o,ourProps:{},slot:{},attrs:t,slots:n,name:"PortalGroup"})}}}),wn=Symbol("StackContext");var dt=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(dt||{});function Bo(){return ae(wn,()=>{})}function Ho({type:e,enabled:t,element:n,onUpdate:a}){let r=Bo();function o(...l){a==null||a(...l),r(...l)}J(()=>{ce(t,(l,s)=>{l?o(0,e,n):s===!0&&o(1,e,n)},{immediate:!0,flush:"sync"})}),pe(()=>{t.value&&o(1,e,n)}),ue(wn,o)}let Vo=Symbol("DescriptionContext");function Ko({slot:e=$({}),name:t="Description",props:n={}}={}){let a=$([]);function r(o){return a.value.push(o),()=>{let l=a.value.indexOf(o);l!==-1&&a.value.splice(l,1)}}return ue(Vo,{register:r,slot:e,name:t,props:n}),x(()=>a.value.length>0?a.value.join(" "):void 0)}function Uo(e){let t=De(e.getSnapshot());return pe(e.subscribe(()=>{t.value=e.getSnapshot()})),t}function Wo(e,t){let n=e(),a=new Set;return{getSnapshot(){return n},subscribe(r){return a.add(r),()=>a.delete(r)},dispatch(r,...o){let l=t[r].call(n,...o);l&&(n=l,a.forEach(s=>s()))}}}function zo(){let e;return{before({doc:t}){var n;let a=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-a.clientWidth},after({doc:t,d:n}){let a=t.documentElement,r=a.clientWidth-a.offsetWidth,o=e-r;n.style(a,"paddingRight",`${o}px`)}}}function Go(){if(!hn())return{};let e;return{before(){e=window.pageYOffset},after({doc:t,d:n,meta:a}){function r(l){return a.containers.flatMap(s=>s()).some(s=>s.contains(l))}if(window.getComputedStyle(t.documentElement).scrollBehavior!=="auto"){let l=Ie();l.style(t.documentElement,"scroll-behavior","auto"),n.add(()=>n.microTask(()=>
4l.dispose()))}n.style(t.body,"marginTop",`-${e}px`),window.scrollTo(0,0);let o=null;n.addEventListener(t,"click",l=>{if(l.target instanceof HTMLElement)try{let s=l.target.closest("a");if(!s)return;let{hash:i}=new URL(s.href),u=t.querySelector(i);u&&!r(u)&&(o=u)}catch{}},!0),n.addEventListener(t,"touchmove",l=>{l.target instanceof HTMLElement&&!r(l.target)&&l.preventDefault()},{passive:!1}),n.add(()=>{window.scrollTo(0,window.pageYOffset+e),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)})}}}function Yo(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function Xo(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Oe=Wo(()=>new Map,{PUSH(e,t){var n;let a=(n=this.get(e))!=null?n:{doc:e,count:0,d:Ie(),meta:new Set};return a.count++,a.meta.add(t),this.set(e,a),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let a={doc:e,d:t,meta:Xo(n)},r=[Go(),zo(),Yo()];r.forEach(({before:o})=>o==null?void 0:o(a)),r.forEach(({after:o})=>o==null?void 0:o(a))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Oe.subscribe(()=>{let e=Oe.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let a=t.get(n.doc)==="hidden",r=n.count!==0;(r&&!a||!r&&a)&&Oe.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Oe.dispatch("TEARDOWN",n)}});function qo(e,t,n){let a=Uo(Oe),r=x(()=>{let o=e.value?a.value.get(e.value):void 0;return o?o.count>0:!1});return ce([e,t],([o,l],[s],i)=>{if(!o||!l)return;Oe.dispatch("PUSH",o,n);let u=!1;i(()=>{u||(Oe.dispatch("POP",s??o,n),u=!0)})},{immediate:!0}),r}function Qo({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){let a=$(null),r=_e(a);function o(){var l;let s=[];for(let i of e)i!==null&&(i instanceof HTMLElement?s.push(i):"value"in i&&i.value instanceof HTMLElement&&s.push(i.value));if(t!=null&&t.value)for(let i of t.value)s.push(i);for(let i of(l=r==null?void 0:r.querySelectorAll("html > *, body > *"))!=null?l:[])i!==document.body&&i!==document.head&&i instanceof HTMLElement&&i.id!=="headlessui-portal-root"&&(i.contains(N(a))||s.some(u=>i.contains(u))||s.push(i));return s}
4return{resolveContainers:o,contains(l){return o().some(s=>s.contains(l))},mainTreeNodeRef:a,MainTreeNode(){return n!=null?null:X(Xe,{features:Ne.Hidden,ref:a})}}}var Jo=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Jo||{});let ft=Symbol("DialogContext");function En(e){let t=ae(ft,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,En),n}return t}let Ke="DC8F892D-2EBD-447C-A4C8-A03058436FF4",Zo=U({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:Ke},initialFocus:{type:Object,default:null},id:{type:String,default:()=>`headlessui-dialog-${Ae()}`}},emits:{close:e=>!0},setup(e,{emit:t,attrs:n,slots:a,expose:r}){var o;let l=$(!1);J(()=>{l.value=!0});let s=$(0),i=et(),u=x(()=>e.open===Ke&&i!==null?(i.value&Q.Open)===Q.Open:e.open),c=$(null),d=x(()=>_e(c));if(r({el:c,$el:c}),!(e.open!==Ke||i!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof u.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${u.value===Ke?void 0:e.open}`);let p=x(()=>l.value&&u.value?0:1),f=x(()=>p.value===0),h=x(()=>s.value>1),g=ae(ft,null)!==null,[_,m]=Do(),{resolveContainers:b,mainTreeNodeRef:E,MainTreeNode:M}=Qo({portals:_,defaultContainers:[x(()=>{var V;return(V=O.panelRef.value)!=null?V:c.value})]}),F=x(()=>h.value?"parent":"leaf"),S=x(()=>i!==null?(i.value&Q.Closing)===Q.Closing:!1),R=x(()=>g||S.value?!1:f.value),B=x(()=>{var V,Y,le;return(le=Array.from((Y=(V=d.value)==null?void 0:V.querySelectorAll("body > *"))!=null?Y:[]).find(se=>se.id==="headlessui-portal-root"?!1:se.contains(N(E))&&se instanceof HTMLElement))!=null?le:null});It(B,R);let y=x(()=>h.value?!0:f.value),L=x(()=>{var V,Y,le;return(le=Array.from((Y=(V=d.value)==null?void 0:V.querySelectorAll("[data-headlessui-portal]"))!=null?Y:[]).find(se=>se.contains(N(E))&&se instanceof HTMLElement))!=null?le:null});It(L,y),Ho({type:"Dialog",enabled:x(()=>p.value===0),element:c,onUpdate:(V,Y)=>{if(Y==="Dialog")return z(V,{[dt.Add]:()=>s.value+=1,[dt.Remove]:()=>s.value-=1})}});let T=Ko({name:"DialogDescription",slot:x(()=>({open:u.value}))}),w=$(null),O={titleId:w,panelRef:$(null),dialogState:p,setTitleId(V){w.value!==V&&(w.value=V)},close(){t("close",!1)}};ue(ft,O);let A=x(()=>!(!f.value||h.value));cn(b,(V,Y)=>{O.close(),Je(()=>Y==null?void 0:Y.focus())},A);let W=x(()=>!(h.value||p.value!==0));mn((o=d.value)==null?void 0:o.defaultView,"keydown",V=>{W.value&&(V.defaultPrevented||V.key===ie.Escape&&(V.preventDefault(),V.stopPropagation(),O.close()))});let he=x(()=>!(S.value||p.value!==0||g));return qo(d,he,V=>{var Y;return{containers:[...(Y=V.containers)!=null?Y:[],b]}}),ee(V=>{if(p.value!==0)return;let Y=N(c);if(!Y)return;let le=new ResizeObserver(se=>{for(let He of se){let ve=He.target.getBoundingClientRect();ve.x===0&&ve.y===0&&ve.width===0&&ve.height===0&&O.close()}});le.observe(Y),V(()=>le.disconnect())}),()=>{let{id:V,open:Y,initialFocus:le,...se}=e,He={...n,ref:c,id:V,role:"dialog","aria-modal":p.value===0?!0:void 0,"aria-labelledby":w.value,"aria-describedby":T.value},ve={open:p.value===0};return X(Rt,{force:!0},()=>[X(No,()=>X(jo,{target:c.value},()=>X(Rt,{force:!1},()=>X(Re,{initialFocus:le,containers:b,features:f.value?z(F.value,{parent:Re.features.RestoreFocus,leaf:Re.features.All&~Re.features.FocusLock}):Re.features.None},()=>X(m,{},()=>oe({ourProps:He,theirProps:{...se,...n},slot:ve,attrs:n,slots:a,visible:p.value===0,features:ye.RenderStrategy|ye.Static,name:"Dialog"})))))),X(M)])}}}),er=U({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:()=>`headlessui-dialog-panel-${Ae()}`}},setup(e,{attrs:t,slots:n,expose:a}){let r=En("DialogPanel");a({el:r.panelRef,$el:r.panelRef});function o(l){l.stopPropagation()}return()=>{let{id:l,...s}=e,i={id:l,ref:r.panelRef,onClick:o};return oe({ourProps:i,theirProps:s,slot:{open:r.dialogState.value===0},attrs:t,slots:n,name:"DialogPanel"})}}});function tr(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function at(e,...t){e&&t.length>0&&e.classList.add(...t)}function Ue(e,...t){e&&t.length>0&&e.classList.remove(...t)}var pt=(e=>
4(e.Finished="finished",e.Cancelled="cancelled",e))(pt||{});function nr(e,t){let n=Ie();if(!e)return n.dispose;let{transitionDuration:a,transitionDelay:r}=getComputedStyle(e),[o,l]=[a,r].map(s=>{let[i=0]=s.split(",").filter(Boolean).map(u=>u.includes("ms")?parseFloat(u):parseFloat(u)*1e3).sort((u,c)=>c-u);return i});return o!==0?n.setTimeout(()=>t("finished"),o+l):t("finished"),n.add(()=>t("cancelled")),n.dispose}function Pt(e,t,n,a,r,o){let l=Ie(),s=o!==void 0?tr(o):()=>{};return Ue(e,...r),at(e,...t,...n),l.nextFrame(()=>{Ue(e,...n),at(e,...a),l.add(nr(e,i=>(Ue(e,...a,...t),at(e,...r),s(i))))}),l.add(()=>Ue(e,...t,...n,...a,...r)),l.add(()=>s("cancelled")),l.dispose}function Ee(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let kt=Symbol("TransitionContext");var or=(e=>(e.Visible="visible",e.Hidden="hidden",e))(or||{});function rr(){return ae(kt,null)!==null}function ar(){let e=ae(kt,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}function lr(){let e=ae(Lt,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}let Lt=Symbol("NestingContext");function nt(e){return"children"in e?nt(e.children):e.value.filter(({state:t})=>t==="visible").length>0}function Sn(e){let t=$([]),n=$(!1);J(()=>n.value=!0),pe(()=>n.value=!1);function a(o,l=be.Hidden){let s=t.value.findIndex(({id:i})=>i===o);s!==-1&&(z(l,{[be.Unmount](){t.value.splice(s,1)},[be.Hidden](){t.value[s].state="hidden"}}),!nt(t)&&n.value&&(e==null||e()))}function r(o){let l=t.value.find(({id:s})=>s===o);return l?l.state!=="visible"&&(l.state="visible"):t.value.push({id:o,state:"visible"}),()=>a(o,be.Unmount)}return{children:t,register:r,unregister:a}}let $n=ye.RenderStrategy,ht=U({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:a,expose:r}){let o=$(0);function l(){o.value|=Q.Opening,t("beforeEnter")}function s(){o.value&=~Q.Opening,t("afterEnter")}function i(){o.value|=Q.Closing,t("beforeLeave")}function u(){o.value&=~Q.Closing,t("afterLeave")}if(!rr()&&ao())return()=>X(On,{...e,onBeforeEnter:l,onAfterEnter:s,onBeforeLeave:i,onAfterLeave:u},a);let c=$(null),d=x(()=>e.unmount?be.Unmount:be.Hidden);r({el:c,$el:c});let{show:p,appear:f}=ar(),{register:h,unregister:g}=lr(),_=$(p.value?"visible":"hidden"),m={value:!0},b=Ae(),E={value:!1},M=Sn(()=>{!E.value&&_.value!=="hidden"&&(_.value="hidden",g(b),u())});J(()=>{let O=h(b);pe(O)}),ee(()=>{if(d.value===be.Hidden&&b){if(p.value&&_.value!=="visible"){_.value="visible";return}z(_.value,{hidden:()=>g(b),visible:()=>h(b)})}});let F=Ee(e.enter),S=Ee(e.enterFrom),R=Ee(e.enterTo),B=Ee(e.entered),y=Ee(e.leave),L=Ee(e.leaveFrom),T=Ee(e.leaveTo);J(()=>{ee(()=>{if(_.value==="visible"){let O=N(c);if(O instanceof Comment&&O.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function w(O){let A=m.value&&!f.value,W=N(c);!W||!(W instanceof HTMLElement)||A||(E.value=!0,p.value&&l(),p.value||i(),O(p.value?Pt(W,F,S,R,B,he=>{E.value=!1,he===pt.Finished&&s()}):Pt(W,y,L,T,B,he=>{E.value=!1,he===pt.Finished&&(nt(M)||(_.value="hidden",g(b),u()))})))}return J(()=>{ce([p],(O,A,W)=>{w(W),m.value=!1},{immediate:!0})}),ue(Lt,M),rn(x(()=>z(_.value,{visible:Q.Open,hidden:Q.Closed})|o.value)),()=>{let{appear:O,show:A,enter:W,enterFrom:he,enterTo:V,entered:Y,leave:le,leaveFrom:se,leaveTo:He,...ve}=e,Fn={ref:c},Nn={...ve,...f.value&&p.value&&Be.isServer?{class:de([n.class,ve.class,...F,...S])}:{}};return oe({theirProps:Nn,ourProps:Fn,slot:{},slots:a,attrs:n,features:$n,visible:_.value==="visible",name:"TransitionChild"})}}}),sr=ht,On=U({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>
4!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:a}){let r=et(),o=x(()=>e.show===null&&r!==null?(r.value&Q.Open)===Q.Open:e.show);ee(()=>{if(![!0,!1].includes(o.value))throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.')});let l=$(o.value?"visible":"hidden"),s=Sn(()=>{l.value="hidden"}),i=$(!0),u={show:o,appear:x(()=>e.appear||!i.value)};return J(()=>{ee(()=>{i.value=!1,o.value?l.value="visible":nt(s)||(l.value="hidden")})}),ue(Lt,s),ue(kt,u),()=>{let c=Ze(e,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),d={unmount:e.unmount};return oe({ourProps:{...d,as:"template"},theirProps:{},slot:{},slots:{...a,default:()=>[X(sr,{onBeforeEnter:()=>t("beforeEnter"),onAfterEnter:()=>t("afterEnter"),onBeforeLeave:()=>t("beforeLeave"),onAfterLeave:()=>t("afterLeave"),...n,...d,...c},a.default)]},attrs:{},features:$n,visible:l.value==="visible",name:"Transition"})}}});const ir={class:"text-sm"},ur={class:"mt-1 text-xs"},cr=U({__name:"SearchDialogResult",props:{to:{},uid:{}},setup(e){const t=e,n=x(()=>({uid:t.uid,url:t.to}));return(a,r)=>{const o=Qe;return C(),re(v(Lo),{value:v(n),as:"li"},{default:H(({active:l})=>[D(o,{class:de(["line-clamp-1 flex items-center justify-between overflow-hidden text-ellipsis px-4 py-2",{"bg-azure text-white hover:text-white":l,"text-gray-800":!l}]),to:a.to,onClick:r[0]||(r[0]=s=>a.$emit("click"))},{default:H(()=>[I("div",null,[I("div",ir,[Ge(a.$slots,"title")]),I("div",ur,[Ge(a.$slots,"description")])]),D(v(Gn),{class:de(["h-4 w-4 shrink-0",{"inline-block text-white":l,hidden:!l}])},null,8,["class"])]),_:2},1032,["class","to"])]),_:3},8,["value"])}}}),dr={class:"bg-grey text-blue py-2.5 px-4 text-sm font-semibold"},fr={class:"my-0"},pr=U({__name:"SearchDialogResultWrapper",props:{title:{}},setup(e){return(t,n)=>(C(),j("li",null,[I("p",dr,G(t.title),1),I("ul",fr,[Ge(t.$slots,"default")])]))}}),hr=P.object({header:P.object({logo:Dn.nullable(),label:P.string(),items:P.array(P.object({label:P.string(),link:P.object({data:P.object({attributes:P.object({slug:P.string()})}).nullable()}).transform(e=>{var t;return(t=e.data)==null?void 0:t.attributes})}))}).nullable(),footer:P.object({copyright:P.string(),items:P.array(P.object({label:P.string().nullable(),link_alt:P.string().nullable(),link:P.object({data:P.object({attributes:P.object({slug:P.string()})}).nullable()}).nullable().transform(e=>{var t;return(t=e==null?void 0:e.data)==null?void 0:t.attributes})})).nullable()}).nullable()});function vr(e){const t=hr.safeParse(e);return t.success?t.data:(console.error(t.error.issues),null)}async function Ct(){const e=wt(),t=qt({populate:["header","header.logo","header.items","header.items.link","header.items.sub_items","header.items.sub_items.link","footer","footer.items","footer.items.link"]}),{data:n}=await Et(`${e}/site-configuration?${t}`,{headers:{...St()},transform:a=>vr(a.data.attributes)},"$pG0IO17Znq");return n.value}const mr={class:"border-grey relative border-t py-10 px-5 text-center text-sm sm:px-14"},gr={key:0,class:"text-base font-semibold"},br={key:1,class:"mt-2 text-base"},xr=["textContent"],yr=U({__name:"SearchDialogContact",props:{searchTerms:{}},async setup(e){let t,n;const a=([t,n]=xe(()=>Wt("contact-page")),t=await t,n(),t),r=([t,n]=xe(()=>Ct()),t=await t,n(),t);return(o,l)=>{var u,c;const s=_t,i=Yt;return C(),j("div",mr,[(u=o.searchTerms)!=null&&u.no_result_title?(C(),j("p",gr,G(o.searchTerms.no_result_title),1)):q("",!0),(c=o.searchTerms)!=null&&c.no_result_text?(C(),j("p",br,G(o.searchTerms.no_result_text),1)):q("",!0),v(a)?(C(),re(i,{key:2,to:v(a),class:"mt-8",onClick:l[0]||(l[0]=d=>o.$emit("close"))},{"prepend-icon":H(()=>[D(s,{class:"group-hover/button:scale-125 h-7 w-7 transform duration-200",icon:"airplane"})]),default:H(()=>{var d;return[I("span",{textContent:G((d=v(r).header)==null?void 0:d.label)},null,8,xr)]}),_:1},8,["to"])):q("",!0)])}}}),_r=["data.intro.description","data.intro.header.description","data.intro.header.title","data.intro.title","data.name","data.slug"],wr=["data.intro.description","data.intro.header.description","data.intro.header.title","data.intro.title","data.name","data.slug"],Er=["data.category","data.location","data.page_sections.header.description","data.page_sections.header.title","data.r
4ich_text","data.subtitle","data.title"],Sr=["data.page_sections.data.term","data.page_sections.data.definition"],$r=["data.page_sections.header.description","data.page_sections.header.title"],Or=["data.page_sections.header.description","data.page_sections.header.title","data.page_sections.items.rich_text","data.page_sections.items.title"],kr=["data.page_sections.header.description","data.page_sections.header.title","data.page_sections.highlight.description","data.page_sections.highlight.title","data.page_sections.items.description","data.page_sections.items.title"],Lr=["data.page_sections.header.description","data.page_sections.header.title","data.page_sections.items.items.text","data.page_sections.items.items.title","data.page_sections.items.text","data.page_sections.items.title"],Cr=["data.page_sections.header.description","data.page_sections.header.title","data.page_sections.rich_text"],Tr=["data.page_sections.header.description","data.page_sections.header.title","data.page_sections.text"],Mr=["data.page_sections.caption","data.page_sections.header.description","data.page_sections.header.title","data.page_sections.list_items.text","data.page_sections.text"],Ar=[...new Set([..._r,...Er,...wr,...Sr,...$r,...Or,...kr,...Lr,...Cr,...Tr,...Mr])];function me(e){return Array.isArray?Array.isArray(e):Cn(e)==="[object Array]"}const Ir=1/0;function Rr(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-Ir?"-0":t}function Pr(e){return e==null?"":Rr(e)}function fe(e){return typeof e=="string"}function kn(e){return typeof e=="number"}function Fr(e){return e===!0||e===!1||Nr(e)&&Cn(e)=="[object Boolean]"}function Ln(e){return typeof e=="object"}function Nr(e){return Ln(e)&&e!==null}function te(e){return e!=null}function lt(e){return!e.trim().length}function Cn(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const Dr="Incorrect 'index' type",jr=e=>`Invalid value for key ${e}`,Br=e=>`Pattern length exceeds max of ${e}.`,Hr=e=>`Missing ${e} property in key`,Vr=e=>`Property 'weight' in key '${e}' must be a positive integer`,Ft=Object.prototype.hasOwnProperty;class Kr{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(a=>{let r=Tn(a);n+=r.weight,this._keys.push(r),this._keyMap[r.id]=r,n+=r.weight}),this._keys.forEach(a=>{a.weight/=n})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Tn(e){let t=null,n=null,a=null,r=1,o=null;if(fe(e)||me(e))a=e,t=Nt(e),n=vt(e);else{if(!Ft.call(e,"name"))throw new Error(Hr("name"));const l=e.name;if(a=l,Ft.call(e,"weight")&&(r=e.weight,r<=0))throw new Error(Vr(l));t=Nt(l),n=vt(l),o=e.getFn}return{path:t,id:n,weight:r,src:a,getFn:o}}function Nt(e){return me(e)?e:e.split(".")}function vt(e){return me(e)?e.join("."):e}function Ur(e,t){let n=[],a=!1;const r=(o,l,s)=>{if(te(o))if(!l[s])n.push(o);else{let i=l[s];const u=o[i];if(!te(u))return;if(s===l.length-1&&(fe(u)||kn(u)||Fr(u)))n.push(Pr(u));else if(me(u)){a=!0;for(let c=0,d=u.length;c<d;c+=1)r(u[c],l,s+1)}else l.length&&r(u,l,s+1)}};return r(e,fe(t)?t.split("."):t,0),a?n:n[0]}const Wr={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},zr={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},Gr={location:0,threshold:.6,distance:100},Yr={useExtendedSearch:!1,getFn:Ur,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var k={...zr,...Wr,...Gr,...Yr};const Xr=/[^ ]+/g;function qr(e=1,t=3){const n=new Map,a=Math.pow(10,t);return{get(r){const o=r.match(Xr).length;if(n.has(o))return n.get(o);const l=1/Math.pow(o,.5*e),s=parseFloat(Math.round(l*a)/a);return n.set(o,s),s},clear(){n.clear()}}}class Tt{constructor({getFn:t=k.getFn,fieldNormWeight:n=k.fieldNormWeight}={}){this.norm=qr(n,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((n,a)=>{this._keysMap[n.id]=a})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,fe(this.docs[0])?this.docs.forEach((t,n)=>{this._addString(t,n)}):this.docs.forEach((t,n)=>{this._addObject(t,n)}),this.norm.clear())}add(t){const n=this.size();fe(t)?this._addString(t,n):this._addObject(t,n)}removeAt(t){this.records.splice(t,1);for(let n=t,a=this.size();n<a;n+=1)this.records[n].i-=1}getValueForItemAtKeyId(t,n){return t[this._keysMap[n]]}size(){return this.records.length}_addString(t,n){if(!te(t)||lt(t))return;let a={v:t,i:n,n:this.norm.get(t)};this.records.push(a)}_addObject(t,n){let a={i:n,$:{}};this.keys.forEach((r,o)=>{let l=r.getFn?r.getFn(t):this.getFn(t,r.path);if(te(l)){if(me(l)){let s=[];const i=[{nestedArrIndex:-1,value:l}];for(;i.length;){const{nestedArrIndex:u,value:c}=i.pop();if(te(c))if(fe(c)&&!lt(c)){let d={v:c,i:u,n:this.norm.get(c)};s.push(d)}
vendor: 8,863 bytes, line 4
4else me(c)&&c.forEach((d,p)=>{i.push({nestedArrIndex:p,value:d})})}a.$[o]=s}else if(fe(l)&&!lt(l)){let s={v:l,n:this.norm.get(l)};a.$[o]=s}}}),this.records.push(a)}toJSON(){return{keys:this.keys,records:this.records}}}function Mn(e,t,{getFn:n=k.getFn,fieldNormWeight:a=k.fieldNormWeight}={}){const r=new Tt({getFn:n,fieldNormWeight:a});return r.setKeys(e.map(Tn)),r.setSources(t),r.create(),r}function Qr(e,{getFn:t=k.getFn,fieldNormWeight:n=k.fieldNormWeight}={}){const{keys:a,records:r}=e,o=new Tt({getFn:t,fieldNormWeight:n});return o.setKeys(a),o.setIndexRecords(r),o}function We(e,{errors:t=0,currentLocation:n=0,expectedLocation:a=0,distance:r=k.distance,ignoreLocation:o=k.ignoreLocation}={}){const l=t/e.length;if(o)return l;const s=Math.abs(a-n);return r?l+s/r:s?1:l}function Jr(e=[],t=k.minMatchCharLength){let n=[],a=-1,r=-1,o=0;for(let l=e.length;o<l;o+=1){let s=e[o];s&&a===-1?a=o:!s&&a!==-1&&(r=o-1,r-a+1>=t&&n.push([a,r]),a=-1)}return e[o-1]&&o-a>=t&&n.push([a,o-1]),n}const $e=32;function Zr(e,t,n,{location:a=k.location,distance:r=k.distance,threshold:o=k.threshold,findAllMatches:l=k.findAllMatches,minMatchCharLength:s=k.minMatchCharLength,includeMatches:i=k.includeMatches,ignoreLocation:u=k.ignoreLocation}={}){if(t.length>$e)throw new Error(Br($e));const c=t.length,d=e.length,p=Math.max(0,Math.min(a,d));let f=o,h=p;const g=s>1||i,_=g?Array(d):[];let m;for(;(m=e.indexOf(t,h))>-1;){let R=We(t,{currentLocation:m,expectedLocation:p,distance:r,ignoreLocation:u});if(f=Math.min(R,f),h=m+c,g){let B=0;for(;B<c;)_[m+B]=1,B+=1}}h=-1;let b=[],E=1,M=c+d;const F=1<<c-1;for(let R=0;R<c;R+=1){let B=0,y=M;for(;B<y;)We(t,{errors:R,currentLocation:p+y,expectedLocation:p,distance:r,ignoreLocation:u})<=f?B=y:M=y,y=Math.floor((M-B)/2+B);M=y;let L=Math.max(1,p-y+1),T=l?d:Math.min(p+y,d)+c,w=Array(T+2);w[T+1]=(1<<R)-1;for(let A=T;A>=L;A-=1){let W=A-1,he=n[e.charAt(W)];if(g&&(_[W]=+!!he),w[A]=(w[A+1]<<1|1)&he,R&&(w[A]|=(b[A+1]|b[A])<<1|1|b[A+1]),w[A]&F&&(E=We(t,{errors:R,currentLocation:W,expectedLocation:p,distance:r,ignoreLocation:u}),E<=f)){if(f=E,h=W,h<=p)break;L=Math.max(1,2*p-h)}}if(We(t,{errors:R+1,currentLocation:p,expectedLocation:p,distance:r,ignoreLocation:u})>f)break;b=w}const S={isMatch:h>=0,score:Math.max(.001,E)};if(g){const R=Jr(_,s);R.length?i&&(S.indices=R):S.isMatch=!1}return S}function ea(e){let t={};for(let n=0,a=e.length;n<a;n+=1){const r=e.charAt(n);t[r]=(t[r]||0)|1<<a-n-1}return t}class An{constructor(t,{location:n=k.location,threshold:a=k.threshold,distance:r=k.distance,includeMatches:o=k.includeMatches,findAllMatches:l=k.findAllMatches,minMatchCharLength:s=k.minMatchCharLength,isCaseSensitive:i=k.isCaseSensitive,ignoreLocation:u=k.ignoreLocation}={}){if(this.options={location:n,threshold:a,distance:r,includeMatches:o,findAllMatches:l,minMatchCharLength:s,isCaseSensitive:i,ignoreLocation:u},this.pattern=i?t:t.toLowerCase(),this.chunks=[],!this.pattern.length)return;const c=(p,f)=>{this.chunks.push({pattern:p,alphabet:ea(p),startIndex:f})},d=this.pattern.length;if(d>$e){let p=0;const f=d%$e,h=d-f;for(;p<h;)c(this.pattern.substr(p,$e),p),p+=$e;if(f){const g=d-$e;c(this.pattern.substr(g),g)}}else c(this.pattern,0)}searchIn(t){const{isCaseSensitive:n,includeMatches:a}=this.options;if(n||(t=t.toLowerCase()),this.pattern===t){let h={isMatch:!0,score:0};return a&&(h.indices=[[0,t.length-1]]),h}const{location:r,distance:o,threshold:l,findAllMatches:s,minMatchCharLength:i,ignoreLocation:u}=this.options;let c=[],d=0,p=!1;this.chunks.forEach(({pattern:h,alphabet:g,startIndex:_})=>{const{isMatch:m,score:b,indices:E}=Zr(t,h,g,{location:r+_,distance:o,threshold:l,findAllMatches:s,minMatchCharLength:i,includeMatches:a,ignoreLocation:u});m&&(p=!0),d+=b,m&&E&&(c=[...c,...E])});let f={isMatch:p,score:p?d/this.chunks.length:1};return p&&a&&(f.indices=c),f}}class we{constructor(t){this.pattern=t}static isMultiMatch(t){return Dt(t,this.multiRegex)}static isSingleMatch(t){return Dt(t,this.singleRegex)}search(){}}function Dt(e,t){const n=e.match(t);return n?n[1]:null}class ta extends we{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const n=t===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class na extends we{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const a=t.indexOf(this.pattern)===-1;return{isMatch:a,score:a?0:1,indices:[0,t.length-1]}}}class oa extends we{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const n=t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class ra extends we{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const n=!t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class aa extends we{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const n=t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class la extends we{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const n=!t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class In extends we{constructor(t,{location:n=k.location,threshold:a=k.threshold,distance:r=k.distance,includeMatches:o=k.includeMatches,findAllMatches:l=k.findAllMatches,minMatchCharLength:s=k.minMatchCharLength,isCaseSensitive:i=k.isCaseSensitive,ignoreLocation:u=k.ignoreLocation}={}){super(t),this._bitapSearch=new An(t,{location:n,threshold:a,distance:r,includeMatches:o,findAllMatches:l,minMatchCharLength:s,isCaseSensitive:i,ignoreLocation:u})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class Rn extends we{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let n=0,a;const r=[],o=this.pattern.length;for(;(a=t.indexOf(this.pattern,n))>-1;)n=a+o,r.push([a,n-1]);const l=!!r.length;return{isMatch:l,score:l?0:1,indices:r}}}const mt=[ta,Rn,oa,ra,la,aa,na,In],jt=mt.length,sa=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,ia="|";function ua(e,t={}){return e.split(ia).map(n=>{let a=n.trim().split(sa).filter(o=>o&&!!o.trim()),r=[];for(let o=0,l=a.length;o<l;o+=1){const s=a[o];let i=!1,u=-1;for(;!i&&++u<jt;){const c=mt[u];let d=c.isMultiMatch(s);d&&(r.push(new c(d,t)),i=!0)}if(!i)for(u=-1;++u<jt;){const c=mt[u];let d=c.isSingleMatch(s);if(d){r.push(new c(d,t));break}}}return r})}const ca=new Set([In.type,Rn.type]);class da{constructor(t,{isCaseSensitive:n=k.isCaseSensitive,includeMatches:a=k.includeMatches,minMatchCharLength:r=k.minMatchCharLength,ignoreLocation:o=k.ignoreLocation,findAllMatches:l=k.findAllMatches,location:s=k.location,threshold:i=k.threshold,distance:u=k.distance}={}){this.query=null,this.options={isCaseSensitive:n,includeMatches:a,minMatchCharLength:r,findAllMatches:l,ignoreLocation:o,location:s,threshold:i,distance:u},this.pattern=n?t:t.toLowerCase(),this.query=ua(this.pattern,this.options)}static condition(t,n){return n.useExtendedSearch}searchIn(t){const n=this.query;if(!n)return{isMatch:!1,score:1};const{includeMatches:a,isCaseSensitive:r}=this.options;t=r?t:t.toLowerCase();let o=0,l=[],s=0;for(let i=0,u=n.length;i<u;i+=1){const c=n[i];l.length=0,o=0;for(let d=0,p=c.length;d<p;d+=1){const f=c[d],{isMatch:h,indices:g,score:_}=f.search(t);if(h){if(o+=1,s+=_,a){const m=f.constructor.type;ca.has(m)?l=[...l,...g]:l.push(g)}}else{s=0,o=0,l.length=0;break}}if(o){let d={isMatch:!0,score:s/o};return a&&(d.indices=l),d}}return{isMatch:!1,score:1}}}const gt=[];function fa(...e){gt.push(...e)}function bt(e,t){for(let n=0,a=gt.length;n<a;n+=1){let r=gt[n];if(r.condition(e,t))return new r(e,t)}return new An(e,t)}const qe={AND:"$and",OR:"$or"},xt={PATH:"$path",PATTERN:"$val"},yt=e=>!!(e[qe.AND]||e[qe.OR]),pa=e=>!!e[xt.PATH],ha=e=>!me(e)&&Ln(e)&&!yt(e),Bt=e=>({[qe.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function Pn(e,t,{auto:n=!0}={}){const a=r=>{let o=Object.keys(r);const l=pa(r);if(!l&&o.length>1&&!yt(r))return a(Bt(r));if(ha(r)){const i=l?r[xt.PATH]:o[0],u=l?r[xt.PATTERN]:r[i];if(!fe(u))throw new Error(jr(i));const c={keyId:vt(i),pattern:u};return n&&(c.searcher=bt(u,t)),c}let s={children:[],operator:o[0]};return o.forEach(i=>
4{const u=r[i];me(u)&&u.forEach(c=>{s.children.push(a(c))})}),s};return yt(e)||(e=Bt(e)),a(e)}function va(e,{ignoreFieldNorm:t=k.ignoreFieldNorm}){e.forEach(n=>{let a=1;n.matches.forEach(({key:r,norm:o,score:l})=>{const s=r?r.weight:null;a*=Math.pow(l===0&&s?Number.EPSILON:l,(s||1)*(t?1:o))}),n.score=a})}function ma(e,t){const n=e.matches;t.matches=[],te(n)&&n.forEach(a=>{if(!te(a.indices)||!a.indices.length)return;const{indices:r,value:o}=a;let l={indices:r,value:o};a.key&&(l.key=a.key.src),a.idx>-1&&(l.refIndex=a.idx),t.matches.push(l)})}function ga(e,t){t.score=e.score}function ba(e,t,{includeMatches:n=k.includeMatches,includeScore:a=k.includeScore}={}){const r=[];return n&&r.push(ma),a&&r.push(ga),e.map(o=>{const{idx:l}=o,s={item:t[l],refIndex:l};return r.length&&r.forEach(i=>{i(o,s)}),s})}class Le{constructor(t,n={},a){this.options={...k,...n},this.options.useExtendedSearch,this._keyStore=new Kr(this.options.keys),this.setCollection(t,a)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof Tt))throw new Error(Dr);this._myIndex=n||Mn(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){te(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const n=[];for(let a=0,r=this._docs.length;a<r;a+=1){const o=this._docs[a];t(o,a)&&(this.removeAt(a),a-=1,r-=1,n.push(o))}return n}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:n=-1}={}){const{includeMatches:a,includeScore:r,shouldSort:o,sortFn:l,ignoreFieldNorm:s}=this.options;let i=fe(t)?fe(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return va(i,{ignoreFieldNorm:s}),o&&i.sort(l),kn(n)&&n>-1&&(i=i.slice(0,n)),ba(i,this._docs,{includeMatches:a,includeScore:r})}_searchStringList(t){const n=bt(t,this.options),{records:a}=this._myIndex,r=[];return a.forEach(({v:o,i:l,n:s})=>{if(!te(o))return;const{isMatch:i,score:u,indices:c}=n.searchIn(o);i&&r.push({item:o,idx:l,matches:[{score:u,value:o,norm:s,indices:c}]})}),r}_searchLogical(t){const n=Pn(t,this.options),a=(s,i,u)=>{if(!s.children){const{keyId:d,searcher:p}=s,f=this._findMatches({key:this._keyStore.get(d),value:this._myIndex.getValueForItemAtKeyId(i,d),searcher:p});return f&&f.length?[{idx:u,item:i,matches:f}]:[]}const c=[];for(let d=0,p=s.children.length;d<p;d+=1){const f=s.children[d],h=a(f,i,u);if(h.length)c.push(...h);else if(s.operator===qe.AND)return[]}return c},r=this._myIndex.records,o={},l=[];return r.forEach(({$:s,i})=>{if(te(s)){let u=a(n,s,i);u.length&&(o[i]||(o[i]={idx:i,item:s,matches:[]},l.push(o[i])),u.forEach(({matches:c})=>{o[i].matches.push(...c)}))}}),l}_searchObjectList(t){const n=bt(t,this.options),{keys:a,records:r}=this._myIndex,o=[];return r.forEach(({$:l,i:s})=>{if(!te(l))return;let i=[];a.forEach((u,c)=>{i.push(...this._findMatches({key:u,value:l[c],searcher:n}))}),i.length&&o.push({idx:s,item:l,matches:i})}),o}_findMatches({key:t,value:n,searcher:a}){if(!te(n))return[];let r=[];if(me(n))n.forEach(({v:o,i:l,n:s})=>{if(!te(o))return;const{isMatch:i,score:u,indices:c}=a.searchIn(o);i&&r.push({score:u,key:t,value:o,idx:l,norm:s,indices:c})});else{const{v:o,n:l}=n,{isMatch:s,score:i,indices:u}=a.searchIn(o);s&&r.push({score:i,key:t,value:o,norm:l,indices:u})}return r}}Le.version="6.6.2";Le.createIndex=Mn;Le.parseIndex=Qr;Le.config=k;Le.parseQuery=Pn;fa(da);const Ht=De(""),Vt=De(0),xa=De(!1);async function ya(){const e=$(),t=je(),{data:n,refresh:a}=await Kn("search-index",async()=>{const[o,l]=await Promise.all([$fetch(`/assets/fuse/fuse-list.${t.value}.json`),$fetch(`/assets/fuse/fuse-index.${t.value}.json`)]);return{list:o,index:l}},{server:!1,lazy:!0,immediate:!1}),r=x(()=>{const o={page:[],story:[],contact:[]};if(e.value){const l=e.value.search(Ht.value);return Vt.value=l.length,l.forEach(({item:s,matches:i})=>{if(o[s.type])i==null||i.forEach(u=>o[s.type].push({url:s.url,title:s.data.name||s.data.title,match:u,matchIndex:0,uid:st()}));else{if(!i)return;i.length>1?o[s.type]=[...i.map((u,c)=>({url:s.url,title:s.data.name||s.data.title,match:u,matchIndex:c,uid:st()}))]:o[s.type]=[{url:s.url,title:s.data.name||s.data.title,match:i[0],matchIndex:0,uid:st()}]}}),o}return o}
4);return ce(n,o=>{let l,s;o!=null&&o.list&&(o!=null&&o.index)&&(l=K(o.list),s=Le.parseIndex(o.index),e.value=new Le(l,{threshold:0,keys:Ar,includeMatches:!0,minMatchCharLength:3,ignoreLocation:!0},s))},{deep:!0}),{term:Ht,count:Vt,results:r,init:xa,refresh:a}}function st(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}const it=De(!1);function _a(){return J(()=>{document.addEventListener("keydown",e=>{e.key==="k"&&(e.metaKey||e.ctrlKey)&&(it.value=!0)}),document.addEventListener("keydown",e=>{e.key==="Escape"&&(it.value=!1)})}),{show:it}}function Kt(e,t){return C(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[I("path",{"fill-rule":"evenodd",d:"M9 3.5a5.5 5.5 0 100 11 5.5 5.5 0 000-11zM2 9a7 7 0 1112.452 4.391l3.328 3.329a.75.75 0 11-1.06 1.06l-3.329-3.328A7 7 0 012 9z","clip-rule":"evenodd"})])}const wa=P.object({input_placeholder:P.string().nullable(),idle_title:P.string(),idle_text:P.string().nullable(),input_hint_min_length:P.string(),match_count_text:P.string().nullable(),result_page_title:P.string(),result_story_title:P.string(),no_result_title:P.string(),no_result_text:P.string()});function Ea(e){const t=wa.safeParse(e);return t.success?t.data:(console.error(t.error.issues),null)}async function Sa(){const e=wt(),t=qt(),{data:n}=await Et(`${e}/search?${t}`,{headers:{...St()},transform:a=>Ea(a.data.attributes)},"$Xopnl34U5d");return n.value}function $a(e,t){return e.replace(/\${(.*?)}/g,(n,a)=>t[a.trim()])}const Oa=I("div",{class:"fixed inset-0 z-[1000] bg-black/25 backdrop-blur-md"},null,-1),ka={class:"fixed inset-0 z-[2000] overflow-y-auto p-4 sm:p-6 md:p-20"},La={key:0,class:"border-grey flex justify-end border-t py-2.5 px-4 text-xs text-gray-500"},Ca={key:1,class:"border-grey flex justify-end border-t py-2.5 px-4 text-xs text-gray-500"},Ta=["innerHTML"],Ma=["innerHTML"],Aa=U({__name:"SearchDialog",props:{textColor:{},textHoverColor:{}},async setup(e){let t,n;const a=$(),r=([t,n]=xe(()=>Sa()),t=await t,n(),t),{term:o,count:l,results:s,refresh:i,init:u}=([t,n]=xe(()=>ya()),t=await t,n(),t),{show:c}=_a();ce(c,f=>{f?(u.value||(i(),u.value=!0),document.documentElement.classList.add("overflow-hidden"),Je(()=>{var h;(h=a.value)==null||h.focus()})):(document.documentElement.classList.remove("overflow-hidden"),o.value="")});function d(f){f&&(Wn(f.url),c.value=!1)}function p(f,h){if(!f||!o.value)return"";f=jn(f);const g=new RegExp(o.value.toLowerCase(),"g"),m=Array.from(f.toLocaleLowerCase().matchAll(g))[h];let b;if(m&&m.index?b=m.index:b=f.toLowerCase().indexOf(o.value.toLowerCase()),b===-1)return f;const E=Math.max(0,b-10),M=E>0?"...":"",F=b+o.value.length<f.length?"...":"";return`${M}${f.slice(E,b)}<mark>${f.slice(b,b+o.value.length)}</mark>${f.slice(b+o.value.length)}${F}`}return(f,h)=>{const g=Jn,_=cr,m=pr,b=yr;return C(),j(ne,null,[I("button",{class:de(["inline-flex h-11 w-11 flex-shrink-0 items-center justify-center outline-none lg:h-[54px] lg:w-[54px] lg:transition-colors lg:duration-200",`${f.textColor} hover:${f.textHoverColor}`]),onClick:h[0]||(h[0]=E=>c.value=!0)},[D(v(Kt),{class:"h-7 w-7 lg:h-6 lg:w-6"})],2),(C(),re(Xt,{to:"body"},[D(v(On),{show:v(c),as:"template",appear:"",onAfterLeave:h[7]||(h[7]=E=>o.value="")},{default:H(()=>[D(v(Zo),{as:"div",class:"relative z-[2000]",onClose:h[6]||(h[6]=E=>c.value=!1)},{default:H(()=>[D(v(ht),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:H(()=>[Oa]),_:1}),I("div",ka,[D(v(ht),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0 scale-95","enter-to":"opacity-100 scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 scale-100","leave-to":"opacity-0 scale-95"},{default:H(()=>[D(v(er),{class:"mx-auto max-w-xl bg-white shadow-2xl"},{default:H(()=>[D(v($o),null,{default:H(({activeOption:E})=>{var M,F,S;return[I("div",{class:"flex items-center space-x-2.5 py-3 px-4",onClick:h[2]||(h[2]=R=>{var B;return(B=v(a))==null?void 0:B.focus()})},[D(v(Kt),{class:"text-blue h-5 w-5","aria-hidden":"true"}),D(v(Oo),{class:"placeholder:text-grey-silver w-full outline-none",placeholder:(M=v(r))==null?void 0:M.input_placeholder,onChange:h[1]||(h[1]=R=>o.value=R.target.value),onKeydown:Un(R=>d(E),["enter"])},null,8,["placeholder","onKeydown"])]),Ce(D(g,{"search-terms":v(r)},null,8,["search-terms"]),[[Ye,!v(o)]]),v(s)&&v(o).length>0&&v(o).length<3&&((F=v(r))!=null&&F.input_hint_min_length)?(C(),j("div",La,G(v(r).input_hint_min_length),1)):q("",!0),v(s)&&v(o).length>=3&&((S=v(r))!=null&&S.match_count_text)?(C(),j("div",Ca,G(v($a)(v(r).match_count_text,{matchCount:v(l).toString()})),1)):q("",!0),v(s)&&v(o).length>=3&&v(l)>0?(C(),re(v(ko),{key:2,as:"ul",static:"",class:"my-0 max-h-80 scroll-pt-11 scroll-pb-2 space-y-2 overflow-y-auto"},{default:H(()=>{var R,B;return[(R=v(s).page)!=null&&R.length?(C(),re(m,{key:0,title:v(r).result_page_title},{default:H(()=>[(C(!0),j(ne,null,Te(v(s).page,({url:y,title:L,match:T,uid:w,matchIndex:O})=>(C(),re(_,{key:w,uid:y,to:y,onClick:h[3]||(h[3]=A=>c.value=!1)},{title:H(()=>[Me(G(L),1)]),description:H(()=>[I("div",{class:"line-clamp-1",innerHTML:p(T.value,O)},null,8,Ta)]),_:2},1032,["uid","to"]))),128))]),_:1},8,["title"])):q("",!0),(B=v(s).story)!=null&&B.length?(C(),re(m,{key:1,title:v(r).result_story_title},{default:H(()=>[(C(!0),j(ne,null,Te(v(s).story,({url:y,match:L,title:T,uid:w,matchIndex:O})=>(C(),re(_,{key:w,uid:w,to:y,onClick:h[4]||(h[4]=A=>c.value=!1)},{title:H(()=>[Me(G(T),1)]),description:H(()=>[I("div",{class:"line-clamp-1",innerHTML:p(L.value,O)},null,8,Ma)]),_:2},1032,["uid","to"]))),128))]),_:1},8,["title"])):q("",!0)]}),_:1})):q("",!0),Ce(D(b,{"search-terms":v(r),onClose:h[5]||(h[5]=R=>c.value=!1)}
4,null,8,["search-terms"]),[[Ye,v(o).length>=3&&v(l)===0]])]}),_:1})]),_:1})]),_:1})])]),_:1})]),_:1},8,["show"])]))],64)}}}),Ia=P.object({code:P.string().transform(e=>e),name:P.string(),isDefault:P.boolean()}),Ra=P.array(Ia);function Pa(e){const t=Ra.safeParse(e);return t.success?t.data:(console.error(t.error.issues),null)}async function Fa(){const e=Qt(),t=wt(),n=St(),{data:a}=await Et(`${t}/i18n/locales`,{headers:n,transform:r=>Pa(r)},"$54r8sfVk5x");return a.value&&e.public.strapi.url==="https://strapi.komtur.com"?a.value.filter(r=>r.code!=="pl"&&r.code!=="de"):a.value||[]}const Na={class:"3xl:mr-14 relative mr-4 inline-block flex-shrink-0 text-left"},Da={class:"border-grey absolute right-0 z-20 mt-2 w-44 border-8 bg-white p-2 shadow-md",role:"menu","aria-orientation":"vertical","aria-labelledby":"menu-button"},ja={class:"m-0",role:"none"},Ba={class:"font-bold uppercase"},Ha=200,Va=U({__name:"LanguageSwitch",async setup(e){let t,n;const{y:a}=zt(),r=$t(),o=je(),l=([t,n]=xe(()=>Fa()),t=await t,n(),t),s=$(!1),i=x(()=>r.path.length<5&&a.value<Ha);return J(()=>{document.addEventListener("scroll",()=>{s.value=!1})}),(u,c)=>{const d=_t,p=Qe;return Ce((C(),j("section",Na,[I("button",{type:"button",class:de(["hover:text-azure flex items-center border-0 uppercase transition duration-500",{"text-white":v(i),"text-blue":!v(i)}]),"aria-expanded":"true","aria-haspopup":"true",onClick:c[0]||(c[0]=f=>s.value=!v(s))},[D(d,{class:"mr-2 h-6 w-6",icon:"language"}),Me(" "+G(v(o)),1)],2),D(Jt,{name:"scale"},{default:H(()=>[Ce(I("div",Da,[I("ul",ja,[(C(!0),j(ne,null,Te(v(l),f=>(C(),j("li",{key:f.code},[D(p,{to:`/${f.code}/`,class:de(["hover:text-azure block px-4 py-2 text-sm",f.code===v(o)?"text-azure":"text-blue"]),rel:"alternate",hreflang:f.code,role:"menuitem",tabindex:"0",onClick:c[1]||(c[1]=h=>s.value=!1)},{default:H(()=>[I("span",Ba,G(f.code),1),Me(" | "+G(f.name),1)]),_:2},1032,["to","class","hreflang"])]))),128))])],512),[[Ye,v(s)]])]),_:1})])),[[v(Gt),()=>s.value=!1]])}}}),Ka={class:"max-w-content relative mx-auto flex h-[76px] w-full items-center lg:h-[94px]"},Ua=I("span",{class:"sr-only"},"Komtur",-1),Wa={class:"m-0 hidden list-none p-0 px-4 2xl:flex"},za=I("div",{class:"grow"},null,-1),Ga={class:"lg:hidden"},Ya=["textContent"],Xa={class:"hidden flex-shrink-0 lg:block"},qa=["textContent"],Qa={class:"flex items-center"},Ja=I("span",{class:"sr-only"},"Menu",-1),Za={class:"absolute right-0 top-full z-30 w-full max-w-md bg-white shadow-lg 2xl:hidden"},el={class:"max-w-content border-grey mx-auto border-8 p-4 sm:px-6"},tl={class:"divide-grey m-0 w-full list-none divide-y p-0"},nl={class:"hidden transition-opacity duration-100 lg:inline-block lg:opacity-0 lg:group-hover:opacity-100"},Ut=200,ol=U({__name:"Navigation",async setup(e){let t,n;if(!Zt().payload.serverRendered)throw en({fatal:!0});const a=Qt(),r=([t,n]=xe(()=>Ct()),t=await t,n(),t),o=([t,n]=xe(()=>Wt("contact-page")),t=await t,n(),t),{y:l}=zt(),s=je(),i=$t(),u=$(!0),c=$(!1),d=x(()=>i.path.length<5&&l.value<Ut);return ce(l,(p,f)=>{p>f&&f>Ut&&(u.value=!1),p<f&&(u.value=!0)}),(p,f)=>{const h=Bn,g=Qe,_=Aa,m=Va,b=_t,E=Yt;return v(r).header?(C(),j("header",{key:0,class:de(["fixed top-0 z-50 w-full px-4 transition-all duration-500 ease-in-out",{"bg-white/70 backdrop-blur-sm backdrop-filter":!v(d),"-translate-y-full":!v(u)}])},[I("div",Ka,[v(r).header.logo?(C(),re(g,{key:0,class:"w-28 shrink-0 pt-3 pb-6 lg:w-40",to:`/${v(s)}/`},{default:H(()=>[D(h,{data:v(r).header.logo},null,8,["data"]),Ua]),_:1},8,["to"])):q("",!0),I("ul",Wa,[(C(!0),j(ne,null,Te(v(r).header.items,(M,F)=>(C(),j(ne,null,[M.link?(C(),j("li",{key:F},[D(g,{class:de(["text-normal hover:text-azure whitespace-nowrap px-2 font-bold transition-colors duration-500",{"text-white":v(d),"text-blue":!v(d)}]),to:`/${v(s)}/${M.link.slug}/`},{default:H(()=>[Me(G(M.label),1)]),_:2},1032,["class","to"])])):q("",!0)],64))),256))]),za,D(_,{"text-color":v(d)?"text-white":"text-blue","text-hover-color":"text-azure"},null,8,["text-color"]),v(a).public.strapi.url!=="https://strapi.komtur.com"?(C(),re(m,{key:1})):q("",!0),v(o)?(C(),j(ne,{key:2},[I("div",Ga,[D(E,{to:v(o),icon:""},{"prepend-icon":H(()=>[D(b,{class:"group-hover/button:scale-125 h-7 w-7 transform duration-200",icon:"airplane"})]),default:H(()=>[I("span",{class:"sr-only",textContent:G(v(r).header.label)},null,8,Ya)]),_:1},8,["to"])]),I("div",Xa,[D(E,{to:v(o)},{"prepend-icon":H(()=>[D(b,{class:"group-hover/button:scale-125 h-7 w-7 transform duration-200",icon:"airplane"})]),default:H(()=>[I("span",{textContent:G(v(r).header.label)},null,8,qa)]),_:1},8,["to"])])],64)):q("",!0),Ce((C(),j("div",Qa,[I("button",{class:de(["lg:hover:text-azure ml-4 w-8 flex-shrink-0 transform transition-colors duration-500 2xl:order-1 2xl:hidden",{"text-white":v(d),"text-blue":!v(d)}]),onClick:f[0]||(f[0]=M=>c.value=!v(c))},[Ja,D(b,{icon:"hamburger"})],2),D(Jt,{name:"scale"},{default:H(()=>[Ce(I("div",Za,[I("div",el,[I("ul",tl,[(C(!0),j(ne,null,Te(v(r).header.items,(M,F)=>(C(),j(ne,null,[M.link?(C(),j("li",{key:F},[D(g,{class:de(["group flex justify-between p-2 text-base font-bold",{"text-azure":v(i).path.replace(/\/$/,"")===`/${v(s)}/${M.link.slug}`,"text-blue-steel":v(i).path.replace(/\/$/,"")!==`/${v(s)}/${M.link.slug}`}
4]),to:`/${v(s)}/${M.link.slug}/`,onClick:f[1]||(f[1]=S=>c.value=!1)},{default:H(()=>[I("span",null,G(M.label),1),I("span",nl,[D(b,{icon:"arrow-right"})])]),_:2},1032,["to","class"])])):q("",!0)],64))),256))])])],512),[[Ye,v(c)]])]),_:1})])),[[v(Gt),()=>c.value=!1]])])],2)):q("",!0)}}}),rl={key:0,class:"max-w-content relative mx-auto mb-20 px-4 sm:px-6 lg:mb-10 lg:px-10 xl:px-16 2xl:mb-12 2xl:px-24"},al={class:"text-center lg:flex lg:justify-between"},ll={class:"text-sm font-light"},sl={class:"mt-4 flex flex-wrap justify-center space-x-4 lg:mt-0"},il=U({__name:"Footer",async setup(e){let t,n;if(!Zt().payload.serverRendered)throw en({fatal:!0});const{footer:a}=([t,n]=xe(()=>Ct()),t=await t,n(),t),r=je(),o=$t();function l(s){!s||s!==o.path||s!==o.fullPath||window.scrollTo({top:0,behavior:"smooth"})}return(s,i)=>{const u=Qe,c=zn;return C(),re(c,null,{default:H(()=>[v(a)?(C(),j("footer",rl,[I("div",al,[I("p",ll,G(v(a).copyright),1),I("nav",sl,[(C(!0),j(ne,null,Te(v(a).items,(d,p)=>{var f,h;return C(),re(u,{key:p,to:(f=d.link)!=null&&f.slug?`/${v(r)}/${(h=d.link)==null?void 0:h.slug}/`:d.link_alt||void 0,class:"{% if page.url === activePageUrl %} text-azure {% else %} {% endif %} lg:hover:text-azure mt-2 whitespace-nowrap text-sm font-light text-black lg:mt-0",onClick:g=>{var _,m;return l((_=d.link)!=null&&_.slug?`/${v(r)}/${(m=d.link)==null?void 0:m.slug}/`:d.link_alt||void 0)}},{default:H(()=>[Me(G(d.label),1)]),_:2},1032,["to","onClick"])}),128))])])])):q("",!0)]),_:1})}}}),ul={class:"overflow-x-hidden"},pl=U({__name:"default",setup(e){const t=je();return(n,a)=>{const r=ol,o=il;return C(),j("div",{id:"layout--default",key:v(t)},[D(r),I("div",ul,[Ge(n.$slots,"default")]),D(o,{class:"pt-10 lg:pt-12 2xl:pt-16"})])}}});export{pl as default};

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.