diff --git a/200.html b/200.html index 0fc011b..bf690ed 100644 --- a/200.html +++ b/200.html @@ -2,16 +2,16 @@ - + - + - -
+ +
- + - + - -
+ +
{e.imagePath&&i()}),(r,o)=>(g(),l(p,{"v-if":t(a),src:t(a)},null,8,["v-if","src"]))}});export{v as _}; diff --git a/_nuxt/9HoxfIWU.js b/_nuxt/9HoxfIWU.js new file mode 100644 index 0000000..00f7ffa --- /dev/null +++ b/_nuxt/9HoxfIWU.js @@ -0,0 +1 @@ +import{m as we,V as ie}from"./Ckgx-ZkB.js";import{F as N,O as he,I as Z,aG as J,c as R,L as ee,aC as pe,A as v,a1 as _,G as ge,aH as ye,as as E,ae as z,aU as Ie,ap as L,aL as ce,r as K,bO as Ve,aY as ae,bP as Pe,au as be,bh as ue,bQ as xe,aX as Ce,bR as Te,a7 as Re,aI as Ae,a_ as Q,o as De,bS as Be,bT as Fe,aF as Oe,bU as _e,aS as Le,be as Me,bi as Ee,ac as He,ah as de,bj as Ue,S as fe,bk as qe,bl as Ke,C as Ne,bn as $e,b2 as ze,bV as ve}from"./CsYHinuP.js";import{u as je}from"./C5_Hj3rt.js";import{m as We,V as me}from"./D3VuSz5Q.js";import{V as Ge}from"./anyozH1k.js";const Xe=N({indeterminate:Boolean,indeterminateIcon:{type:he,default:"$checkboxIndeterminate"},...We({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"VCheckboxBtn"),Ye=Z()({name:"VCheckboxBtn",props:Xe(),emits:{"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,c){let{slots:n}=c;const r=J(e,"indeterminate"),u=J(e,"modelValue");function d(a){r.value&&(r.value=!1)}const g=R(()=>r.value?e.indeterminateIcon:e.falseIcon),o=R(()=>r.value?e.indeterminateIcon:e.trueIcon);return ee(()=>{const a=pe(me.filterProps(e),["modelValue"]);return v(me,_(a,{modelValue:u.value,"onUpdate:modelValue":[y=>u.value=y,d],class:["v-checkbox-btn",e.class],style:e.style,type:"checkbox",falseIcon:g.value,trueIcon:o.value,"aria-checked":r.value?"mixed":void 0}),n)}),{}}}),Qe=N({renderless:Boolean,...ge()},"VVirtualScrollItem"),Je=Z()({name:"VVirtualScrollItem",inheritAttrs:!1,props:Qe(),emits:{"update:height":e=>!0},setup(e,c){let{attrs:n,emit:r,slots:u}=c;const{resizeRef:d,contentRect:g}=ye(void 0,"border");E(()=>{var o;return(o=g.value)==null?void 0:o.height},o=>{o!=null&&r("update:height",o)}),ee(()=>{var o,a;return e.renderless?v(z,null,[(o=u.default)==null?void 0:o.call(u,{itemRef:d})]):v("div",_({ref:d,class:["v-virtual-scroll__item",e.class],style:e.style},n),[(a=u.default)==null?void 0:a.call(u)])})}}),Ze=-1,et=1,oe=100,tt=N({itemHeight:{type:[Number,String],default:null},height:[Number,String]},"virtual");function lt(e,c){const n=Ie(),r=L(0);ce(()=>{r.value=parseFloat(e.itemHeight||0)});const u=L(0),d=L(Math.ceil((parseInt(e.height)||n.height.value)/(r.value||16))||1),g=L(0),o=L(0),a=K(),y=K();let B=0;const{resizeRef:F,contentRect:i}=ye();ce(()=>{F.value=a.value});const k=R(()=>{var t;return a.value===document.documentElement?n.height.value:((t=i.value)==null?void 0:t.height)||parseInt(e.height)||0}),S=R(()=>!!(a.value&&y.value&&k.value&&r.value));let C=Array.from({length:c.value.length}),m=Array.from({length:c.value.length});const T=L(0);let A=-1;function j(t){return C[t]||r.value}const D=Pe(()=>{const t=performance.now();m[0]=0;const s=c.value.length;for(let V=1;V<=s-1;V++)m[V]=(m[V-1]||0)+j(V-1);T.value=Math.max(T.value,performance.now()-t)},T),W=E(S,t=>{t&&(W(),B=y.value.offsetTop,D.immediate(),O(),~A&&be(()=>{ue&&window.requestAnimationFrame(()=>{Y(A),A=-1})}))});Ve(()=>{D.clear()});function te(t,s){const V=C[t],p=r.value;r.value=p?Math.min(r.value,s):s,(V!==s||p!==r.value)&&(C[t]=s,D())}function w(t){return t=ae(t,0,c.value.length-1),m[t]||0}function G(t){return nt(m,t)}let H=0,M=0,$=0;E(k,(t,s)=>{s&&(O(),t{M=0,O()}))});function le(){if(!a.value||!y.value)return;const t=a.value.scrollTop,s=performance.now();s-$>500?(M=Math.sign(t-H),B=y.value.offsetTop):M=t-H,H=t,$=s,O()}function U(){!a.value||!y.value||(M=0,$=0,O())}let X=-1;function O(){cancelAnimationFrame(X),X=requestAnimationFrame(ne)}function ne(){if(!a.value||!k.value)return;const t=H-B,s=Math.sign(M),V=Math.max(0,t-oe),p=ae(G(V),0,c.value.length),f=t+k.value+oe,b=ae(G(f)+1,p+1,c.value.length);if((s!==Ze||pd.value)){const h=w(u.value)-w(p),I=w(b)-w(d.value);Math.max(h,I)>oe?(u.value=p,d.value=b):(p<=0&&(u.value=p),b>=c.value.length&&(d.value=b))}g.value=w(u.value),o.value=w(c.value.length)-w(d.value)}function Y(t){const s=w(t);!a.value||t&&!s?A=t:a.value.scrollTop=s}const l=R(()=>c.value.slice(u.value,d.value).map((t,s)=>({raw:t,index:s+u.value})));return E(c,()=>{C=Array.from({length:c.value.length}),m=Array.from({length:c.value.length}),D.immediate(),O()},{deep:!0}),{containerRef:a,markerRef:y,computedItems:l,paddingTop:g,paddingBottom:o,scrollToIndex:Y,handleScroll:le,handleScrollend:U,handleItemResize:te}}function nt(e,c){let n=e.length-1,r=0,u=0,d=null,g=-1;if(e[n]>1,d=e[u],d>c)n=u-1;else if(d[]},renderless:Boolean,...tt(),...ge(),...xe()},"VVirtualScroll"),ot=Z()({name:"VVirtualScroll",props:at(),setup(e,c){let{slots:n}=c;const r=Ce("VVirtualScroll"),{dimensionStyles:u}=Te(e),{containerRef:d,markerRef:g,handleScroll:o,handleScrollend:a,handleItemResize:y,scrollToIndex:B,paddingTop:F,paddingBottom:i,computedItems:k}=lt(e,Re(e,"items"));return Ae(()=>e.renderless,()=>{function S(){var T,A;const m=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?"addEventListener":"removeEventListener";d.value===document.documentElement?(document[m]("scroll",o,{passive:!0}),document[m]("scrollend",a)):((T=d.value)==null||T[m]("scroll",o,{passive:!0}),(A=d.value)==null||A[m]("scrollend",a))}De(()=>{d.value=Be(r.vnode.el,!0),S(!0)}),Ve(S)}),ee(()=>{const S=k.value.map(C=>v(Je,{key:C.index,renderless:e.renderless,"onUpdate:height":m=>y(C.index,m)},{default:m=>{var T;return(T=n.default)==null?void 0:T.call(n,{item:C.raw,index:C.index,...m})}}));return e.renderless?v(z,null,[v("div",{ref:g,class:"v-virtual-scroll__spacer",style:{paddingTop:Q(F.value)}},null),S,v("div",{class:"v-virtual-scroll__spacer",style:{paddingBottom:Q(i.value)}},null)]):v("div",{ref:d,class:["v-virtual-scroll",e.class],onScrollPassive:o,onScrollend:a,style:[u.value,e.style]},[v("div",{ref:g,class:"v-virtual-scroll__container",style:{paddingTop:Q(F.value),paddingBottom:Q(i.value)}},[S])])}),{scrollToIndex:B}}});function ut(e,c){const n=L(!1);let r;function u(o){cancelAnimationFrame(r),n.value=!0,r=requestAnimationFrame(()=>{r=requestAnimationFrame(()=>{n.value=!1})})}async function d(){await new Promise(o=>requestAnimationFrame(o)),await new Promise(o=>requestAnimationFrame(o)),await new Promise(o=>requestAnimationFrame(o)),await new Promise(o=>{if(n.value){const a=E(n,()=>{a(),o()})}else o()})}async function g(o){var B,F;if(o.key==="Tab"&&((B=c.value)==null||B.focus()),!["PageDown","PageUp","Home","End"].includes(o.key))return;const a=(F=e.value)==null?void 0:F.$el;if(!a)return;(o.key==="Home"||o.key==="End")&&a.scrollTo({top:o.key==="Home"?0:a.scrollHeight,behavior:"smooth"}),await d();const y=a.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");if(o.key==="PageDown"||o.key==="Home"){const i=a.getBoundingClientRect().top;for(const k of y)if(k.getBoundingClientRect().top>=i){k.focus();break}}else{const i=a.getBoundingClientRect().bottom;for(const k of[...y].reverse())if(k.getBoundingClientRect().bottom<=i){k.focus();break}}}return{onListScroll:u,onListKeydown:g}}const st=N({chips:Boolean,closableChips:Boolean,closeText:{type:String,default:"$vuetify.close"},openText:{type:String,default:"$vuetify.open"},eager:Boolean,hideNoData:Boolean,hideSelected:Boolean,listProps:{type:Object},menu:Boolean,menuIcon:{type:he,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,itemColor:String,...Fe({itemChildren:!1})},"Select"),rt=N({...st(),...pe(we({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...Oe({transition:{component:_e}})},"VSelect"),mt=Z()({name:"VSelect",props:rt(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:menu":e=>!0},setup(e,c){let{slots:n}=c;const{t:r}=Le(),u=K(),d=K(),g=K(),o=J(e,"menu"),a=R({get:()=>o.value,set:l=>{var t;o.value&&!l&&((t=d.value)!=null&&t.ΨopenChildren)||(o.value=l)}}),{items:y,transformIn:B,transformOut:F}=Me(e),i=J(e,"modelValue",[],l=>B(l===null?[null]:ze(l)),l=>{const t=F(l);return e.multiple?t:t[0]??null}),k=R(()=>typeof e.counterValue=="function"?e.counterValue(i.value):typeof e.counterValue=="number"?e.counterValue:i.value.length),S=je(),C=R(()=>i.value.map(l=>l.value)),m=L(!1),T=R(()=>a.value?e.closeText:e.openText);let A="",j;const D=R(()=>e.hideSelected?y.value.filter(l=>!i.value.some(t=>t===l)):y.value),W=R(()=>e.hideNoData&&!D.value.length||e.readonly||(S==null?void 0:S.isReadonly.value)),te=R(()=>{var l;return{...e.menuProps,activatorProps:{...((l=e.menuProps)==null?void 0:l.activatorProps)||{},"aria-haspopup":"listbox"}}}),w=K(),{onListScroll:G,onListKeydown:H}=ut(w,u);function M(l){e.openOnClear&&(a.value=!0)}function $(){W.value||(a.value=!a.value)}function le(l){var f,b;if(!l.key||e.readonly||S!=null&&S.isReadonly.value)return;["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes(l.key)&&l.preventDefault(),["Enter","ArrowDown"," "].includes(l.key)&&(a.value=!0),["Escape","Tab"].includes(l.key)&&(a.value=!1),l.key==="Home"?(f=w.value)==null||f.focus("first"):l.key==="End"&&((b=w.value)==null||b.focus("last"));const t=1e3;function s(h){const I=h.key.length===1,P=!h.ctrlKey&&!h.metaKey&&!h.altKey;return I&&P}if(e.multiple||!s(l))return;const V=performance.now();V-j>t&&(A=""),A+=l.key.toLowerCase(),j=V;const p=y.value.find(h=>h.title.toLowerCase().startsWith(A));if(p!==void 0){i.value=[p];const h=D.value.indexOf(p);ue&&window.requestAnimationFrame(()=>{var I;h>=0&&((I=g.value)==null||I.scrollToIndex(h))})}}function U(l){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!l.props.disabled)if(e.multiple){const s=i.value.findIndex(p=>e.valueComparator(p.value,l.value)),V=t??!~s;if(~s){const p=V?[...i.value,l]:[...i.value];p.splice(s,1),i.value=p}else V&&(i.value=[...i.value,l])}else{const s=t!==!1;i.value=s?[l]:[],be(()=>{a.value=!1})}}function X(l){var t;(t=w.value)!=null&&t.$el.contains(l.relatedTarget)||(a.value=!1)}function O(){var l;m.value&&((l=u.value)==null||l.focus())}function ne(l){m.value=!0}function Y(l){if(l==null)i.value=[];else if(ve(u.value,":autofill")||ve(u.value,":-webkit-autofill")){const t=y.value.find(s=>s.title===l);t&&U(t)}else u.value&&(u.value.value="")}return E(a,()=>{if(!e.hideSelected&&a.value&&i.value.length){const l=D.value.findIndex(t=>i.value.some(s=>e.valueComparator(s.value,t.value)));ue&&window.requestAnimationFrame(()=>{var t;l>=0&&((t=g.value)==null||t.scrollToIndex(l))})}}),E(()=>e.items,(l,t)=>{a.value||m.value&&!t.length&&l.length&&(a.value=!0)}),ee(()=>{const l=!!(e.chips||n.chip),t=!!(!e.hideNoData||D.value.length||n["prepend-item"]||n["append-item"]||n["no-data"]),s=i.value.length>0,V=ie.filterProps(e),p=s||!m.value&&e.label&&!e.persistentPlaceholder?void 0:e.placeholder;return v(ie,_({ref:u},V,{modelValue:i.value.map(f=>f.props.value).join(", "),"onUpdate:modelValue":Y,focused:m.value,"onUpdate:focused":f=>m.value=f,validationValue:i.externalValue,counterValue:k.value,dirty:s,class:["v-select",{"v-select--active-menu":a.value,"v-select--chips":!!e.chips,[`v-select--${e.multiple?"multiple":"single"}`]:!0,"v-select--selected":i.value.length,"v-select--selection-slot":!!n.selection},e.class],style:e.style,inputmode:"none",placeholder:p,"onClick:clear":M,"onMousedown:control":$,onBlur:X,onKeydown:le,"aria-label":r(T.value),title:r(T.value)}),{...n,default:()=>v(z,null,[v(Ee,_({ref:d,modelValue:a.value,"onUpdate:modelValue":f=>a.value=f,activator:"parent",contentClass:"v-select__content",disabled:W.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterLeave:O},te.value),{default:()=>[t&&v(He,_({ref:w,selected:C.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:f=>f.preventDefault(),onKeydown:H,onFocusin:ne,onScrollPassive:G,tabindex:"-1","aria-live":"polite",color:e.itemColor??e.color},e.listProps),{default:()=>{var f,b,h;return[(f=n["prepend-item"])==null?void 0:f.call(n),!D.value.length&&!e.hideNoData&&(((b=n["no-data"])==null?void 0:b.call(n))??v(de,{title:r(e.noDataText)},null)),v(ot,{ref:g,renderless:!0,items:D.value},{default:I=>{var re;let{item:P,index:q,itemRef:x}=I;const se=_(P.props,{ref:x,key:q,onClick:()=>U(P,null)});return((re=n.item)==null?void 0:re.call(n,{item:P,index:q,props:se}))??v(de,_(se,{role:"option"}),{prepend:ke=>{let{isSelected:Se}=ke;return v(z,null,[e.multiple&&!e.hideSelected?v(Ye,{key:P.value,modelValue:Se,ripple:!1,tabindex:"-1"},null):void 0,P.props.prependAvatar&&v(Ue,{image:P.props.prependAvatar},null),P.props.prependIcon&&v(fe,{icon:P.props.prependIcon},null)])}})}}),(h=n["append-item"])==null?void 0:h.call(n)]}})]}),i.value.map((f,b)=>{function h(x){x.stopPropagation(),x.preventDefault(),U(f,!1)}const I={"onClick:close":h,onKeydown(x){x.key!=="Enter"&&x.key!==" "||(x.preventDefault(),x.stopPropagation(),h(x))},onMousedown(x){x.preventDefault(),x.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},P=l?!!n.chip:!!n.selection,q=P?qe(l?n.chip({item:f,index:b,props:I}):n.selection({item:f,index:b})):void 0;if(!(P&&!q))return v("div",{key:f.value,class:"v-select__selection"},[l?n.chip?v(Ke,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:f.title}}},{default:()=>[q]}):v(Ge,_({key:"chip",closable:e.closableChips,size:"small",text:f.title,disabled:f.props.disabled},I),null):q??v("span",{class:"v-select__selection-text"},[f.title,e.multiple&&bt==null||c==null?-1:t.toString().toLocaleLowerCase().indexOf(c.toString().toLocaleLowerCase()),A=I({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function x(t,c,e){var g;const f=[],s=(e==null?void 0:e.default)??S,m=e!=null&&e.filterKeys?v(e.filterKeys):!1,i=Object.keys((e==null?void 0:e.customKeyFilter)??{}).length;if(!(t!=null&&t.length))return f;e:for(let r=0;rf!=null&&f.transform?F(c).map(r=>[r,f.transform(r)]):F(c));w(()=>{const r=typeof e=="function"?e():F(e),a=typeof r!="string"&&typeof r!="number"?"":String(r),M=x(i.value,a,{customKeyFilter:{...t.customKeyFilter,...F(f==null?void 0:f.customKeyFilter)},default:t.customFilter,filterKeys:t.filterKeys,filterMode:t.filterMode,noFilter:t.noFilter}),y=F(c),u=[],l=new Map;M.forEach(d=>{let{index:h,matches:K}=d;const n=y[h];u.push(n),l.set(n.value,K)}),s.value=u,m.value=l});function g(r){return m.value.get(r.value)}return{filteredItems:s,filteredMatches:m,getMatches:g}}export{A as m,C as u}; diff --git a/_nuxt/B8xzjt0i.js b/_nuxt/B8xzjt0i.js new file mode 100644 index 0000000..a5d4726 --- /dev/null +++ b/_nuxt/B8xzjt0i.js @@ -0,0 +1 @@ +import{bD as s}from"./CsYHinuP.js";async function c(a,e){if(!e)return"";const t=s();try{const{data:r,error:o}=await t.storage.from(a).createSignedUrl(e,60);return r.signedUrl}catch(r){console.error("An error occurred while fetching signed URL:",r.message)}}async function u(a,e){const t=await c(a,e);return await(await fetch(t)).text()}async function l(a,e,t){const r=s(),{data:o,error:n}=await r.storage.from(a).upload(e,t);return n&&console.error("An error occurred while uploading file:",n.message),o}export{c as a,u as g,l as u}; diff --git a/_nuxt/BG-w5dbx.js b/_nuxt/BG-w5dbx.js new file mode 100644 index 0000000..6d9b5a5 --- /dev/null +++ b/_nuxt/BG-w5dbx.js @@ -0,0 +1 @@ +import{d as r,v as c,a8 as _,B as l,A as e,a9 as o,C as a,aa as d,ab as s,y as t,z as n}from"./CsYHinuP.js";import{V as m}from"./CuSTAa19.js";import{V as f}from"./DKIU8Zgl.js";const h=t("td",null,"Total distance hiked:",-1),T=t("td",null,"Total elevation climbed:",-1),p=t("td",null,"Total distance hiked:",-1),V=t("td",null,"Total elevation climbed:",-1),C=t("td",null,"Total item count:",-1),k=t("td",null,"Total items weight:",-1),v=t("td",null,"Favourite Inventory:",-1),u=100,i=1e3,b=100,x=100,y="Tent",F=r({__name:"index",setup(g){return(B,I)=>(c(),_(f,null,{default:l(()=>[e(s,null,{default:l(()=>[e(o,null,{default:l(()=>[a("Friends")]),_:1}),e(d)]),_:1}),e(s,null,{default:l(()=>[e(o,null,{default:l(()=>[a("Summary")]),_:1}),e(d,null,{default:l(()=>[e(m,null,{default:l(()=>[t("tbody",null,[t("tr",null,[h,t("td",null,n(u)+" km")]),t("tr",null,[T,t("td",null,n(i)+" m")]),t("tr",null,[p,t("td",null,n(u)+" km")]),t("tr",null,[V,t("td",null,n(i)+" m")]),t("tr",null,[C,t("td",null,n(b))]),t("tr",null,[k,t("td",null,n(x)+" kg")]),t("tr",null,[v,t("td",null,n(y))])])]),_:1}),a(" Total Items Category distribution: ")]),_:1})]),_:1})]),_:1}))}});export{F as default}; diff --git a/_nuxt/BHq4ipSb.js b/_nuxt/BHq4ipSb.js new file mode 100644 index 0000000..86d2238 --- /dev/null +++ b/_nuxt/BHq4ipSb.js @@ -0,0 +1 @@ +import{V as _,_ as g}from"./CSgFPiwD.js";import{d as V,r as f,bE as C,v as c,a8 as v,B as o,A as e,aj as u,C as d,bt as F,y as H,ab as w,aa as x,af as y,ag as L,aA as R}from"./CsYHinuP.js";import{u as b}from"./B8xzjt0i.js";import{V as $}from"./Ckgx-ZkB.js";import{V as k}from"./BexpS2Km.js";import{V as A,a as p}from"./DoIRHZ99.js";import{V as B}from"./BorjDOqY.js";import{V as N}from"./DKIU8Zgl.js";import"./DkwyJ7jd.js";import"./anyozH1k.js";import"./1ufk8KGl.js";import"./cxFlIQmQ.js";import"./BFbS1nff.js";import"./C5_Hj3rt.js";const U=V({__name:"form",props:{route:{type:Object,default:()=>({name:"",originalFile:null})}},emits:["close-dialog"],setup(m){const l=m,t=f({...l.route}),s=C(),r=async()=>{try{if(t.value.originalFile){const i=await b("routes",F(),t.value.originalFile);if(l.route.id)await s.update(newRoute);else{const a={name:t.value.name,originalFile:i.path};await s.create(a)}}}catch(i){console.error("An error occurred while saving the route:",i)}};return(i,a)=>(c(),v(B,null,{default:o(()=>[e($,{modelValue:t.value.name,"onUpdate:modelValue":a[0]||(a[0]=n=>t.value.name=n),label:"Name"},null,8,["modelValue"]),e(k,{modelValue:t.value.originalFile,"onUpdate:modelValue":a[1]||(a[1]=n=>t.value.originalFile=n),label:"File"},null,8,["modelValue"]),e(A,{justify:"end"},{default:o(()=>[e(p,{cols:"auto"},{default:o(()=>[e(u,{onClick:a[2]||(a[2]=n=>i.$emit("close-dialog"))},{default:o(()=>[d("Cancel")]),_:1})]),_:1}),e(p,{cols:"auto"},{default:o(()=>[e(u,{onClick:r},{default:o(()=>[d("Save")]),_:1})]),_:1})]),_:1})]),_:1}))}}),j={class:"ma-4"},Q=V({__name:"index",setup(m){const l=f(!1);function t(){l.value=!1}return(s,r)=>{const i=g,a=U;return c(),v(N,null,{default:o(()=>[e(i,{"entity-type":"routes"}),e(_,{"model-value":"",position:"bottom",class:"text-end",size:"88"},{default:o(()=>[H("div",j,[e(u,{icon:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",size:"large",color:"primary",elevation:"8",onClick:r[0]||(r[0]=n=>l.value=!0)})])]),_:1}),e(R,{modelValue:y(l),"onUpdate:modelValue":r[2]||(r[2]=n=>L(l)?l.value=n:null),"max-width":"600"},{default:o(()=>[e(w,{"prepend-icon":"M11,12H3.5L6,9.5L3.5,7H11V3L12,2L13,3V7H18L20.5,9.5L18,12H13V20A2,2 0 0,1 15,22H9A2,2 0 0,1 11,20V12Z",title:"Create new route"},{default:o(()=>[e(x,null,{default:o(()=>[e(a,{onCloseDialog:r[1]||(r[1]=n=>t())})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})}}});export{Q as default}; diff --git a/_nuxt/BJ4BBGKM.js b/_nuxt/BJ4BBGKM.js new file mode 100644 index 0000000..c29c289 --- /dev/null +++ b/_nuxt/BJ4BBGKM.js @@ -0,0 +1 @@ +import{V as n,_ as s}from"./CSgFPiwD.js";import{d as r,v as m,a8 as p,B as a,A as e,y as l,aj as c,af as V,q as _}from"./CsYHinuP.js";import{V as d}from"./DKIU8Zgl.js";import"./DoIRHZ99.js";import"./DkwyJ7jd.js";import"./anyozH1k.js";import"./1ufk8KGl.js";import"./B8xzjt0i.js";import"./cxFlIQmQ.js";import"./BFbS1nff.js";const f={class:"ma-4"},L=r({__name:"index",setup(u){return(t,o)=>{const i=s;return m(),p(d,null,{default:a(()=>[e(i,{"entity-type":"inventories"}),e(n,{"model-value":"",position:"bottom",class:"text-end",size:"88"},{default:a(()=>[l("div",f,[e(c,{icon:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",size:"large",color:"primary",elevation:"8",onClick:o[0]||(o[0]=v=>("navigateTo"in t?t.navigateTo:V(_))("/inventories/new"))})])]),_:1})]),_:1})}}});export{L as default}; diff --git a/_nuxt/BQlgBGbc.js b/_nuxt/BQlgBGbc.js new file mode 100644 index 0000000..c7b3f7a --- /dev/null +++ b/_nuxt/BQlgBGbc.js @@ -0,0 +1,322 @@ +import{F as E,G as Y,H as z,I as O,J as U,K as J,L as R,A as t,M as _,N as $,V as Q,O as W,R as ee,P as B,c as T,Q as te,S as I,T as oe,U as ie,W as ne,X as ae,Y as se,Z as re,$ as le,a0 as ce,a1 as P,a2 as de,a3 as ue,a4 as he,a5 as pe,a6 as fe,a7 as l,d as me,r as Te,i as be,v as m,a8 as g,B as i,a9 as N,C as u,aa as Ie,ab as S,ac as ye,x as D,ad as M,ae as V,af as Le,ag as ge,ah as Ee,z as b,ai as Oe,y as v,aj as F,ak as w}from"./CsYHinuP.js";import{V as Re}from"./DKIU8Zgl.js";import{V as Ae,a as H}from"./DoIRHZ99.js";const G=E({...Y(),...z()},"VExpansionPanelText"),C=O()({name:"VExpansionPanelText",props:G(),setup(e,c){let{slots:n}=c;const o=U(y);if(!o)throw new Error("[Vuetify] v-expansion-panel-text needs to be placed inside v-expansion-panel");const{hasContent:h,onAfterLeave:r}=J(e,o.isSelected);return R(()=>t(Q,{onAfterLeave:r},{default:()=>{var s;return[_(t("div",{class:["v-expansion-panel-text",e.class],style:e.style},[n.default&&h.value&&t("div",{class:"v-expansion-panel-text__wrapper"},[(s=n.default)==null?void 0:s.call(n)])]),[[$,o.isSelected.value]])]}})),{}}}),j=E({color:String,expandIcon:{type:W,default:"$expand"},collapseIcon:{type:W,default:"$collapse"},hideActions:Boolean,focusable:Boolean,static:Boolean,ripple:{type:[Boolean,Object],default:!1},readonly:Boolean,...Y()},"VExpansionPanelTitle"),k=O()({name:"VExpansionPanelTitle",directives:{Ripple:ee},props:j(),setup(e,c){let{slots:n}=c;const o=U(y);if(!o)throw new Error("[Vuetify] v-expansion-panel-title needs to be placed inside v-expansion-panel");const{backgroundColorClasses:h,backgroundColorStyles:r}=B(e,"color"),s=T(()=>({collapseIcon:e.collapseIcon,disabled:o.disabled.value,expanded:o.isSelected.value,expandIcon:e.expandIcon,readonly:e.readonly}));return R(()=>{var p;return _(t("button",{class:["v-expansion-panel-title",{"v-expansion-panel-title--active":o.isSelected.value,"v-expansion-panel-title--focusable":e.focusable,"v-expansion-panel-title--static":e.static},h.value,e.class],style:[r.value,e.style],type:"button",tabindex:o.disabled.value?-1:void 0,disabled:o.disabled.value,"aria-expanded":o.isSelected.value,onClick:e.readonly?void 0:o.toggle},[t("span",{class:"v-expansion-panel-title__overlay"},null),(p=n.default)==null?void 0:p.call(n,s.value),!e.hideActions&&t("span",{class:"v-expansion-panel-title__icon"},[n.actions?n.actions(s.value):t(I,{icon:o.isSelected.value?e.collapseIcon:e.expandIcon},null)])]),[[te("ripple"),e.ripple]])}),{}}}),Z=E({title:String,text:String,bgColor:String,...oe(),...ie(),...ne(),...ae(),...j(),...G()},"VExpansionPanel"),Ne=O()({name:"VExpansionPanel",props:Z(),emits:{"group:selected":e=>!0},setup(e,c){let{slots:n}=c;const o=se(e,y),{backgroundColorClasses:h,backgroundColorStyles:r}=B(e,"bgColor"),{elevationClasses:s}=re(e),{roundedClasses:p}=le(e),a=T(()=>(o==null?void 0:o.disabled.value)||e.disabled),L=T(()=>o.group.items.value.reduce((f,d,A)=>(o.group.selected.value.includes(d.id)&&f.push(A),f),[])),K=T(()=>{const f=o.group.items.value.findIndex(d=>d.id===o.id);return!o.isSelected.value&&L.value.some(d=>d-f===1)}),X=T(()=>{const f=o.group.items.value.findIndex(d=>d.id===o.id);return!o.isSelected.value&&L.value.some(d=>d-f===-1)});return ce(y,o),R(()=>{const f=!!(n.text||e.text),d=!!(n.title||e.title),A=k.filterProps(e),q=C.filterProps(e);return t(e.tag,{class:["v-expansion-panel",{"v-expansion-panel--active":o.isSelected.value,"v-expansion-panel--before-active":K.value,"v-expansion-panel--after-active":X.value,"v-expansion-panel--disabled":a.value},p.value,h.value,e.class],style:[r.value,e.style]},{default:()=>{var x;return[t("div",{class:["v-expansion-panel__shadow",...s.value]},null),d&&t(k,P({key:"title"},A),{default:()=>[n.title?n.title():e.title]}),f&&t(C,P({key:"text"},q),{default:()=>[n.text?n.text():e.text]}),(x=n.default)==null?void 0:x.call(n)]}})}),{}}}),y=Symbol.for("vuetify:v-expansion-panel"),Se=["default","accordion","inset","popout"],ve=E({flat:Boolean,...de(),...Z(),...ue(),variant:{type:String,default:"default",validator:e=>Se.includes(e)}},"VExpansionPanels"),we=O()({name:"VExpansionPanels",props:ve(),emits:{"update:modelValue":e=>!0},setup(e,c){let{slots:n}=c;he(e,y);const{themeClasses:o}=pe(e),h=T(()=>e.variant&&`v-expansion-panels--variant-${e.variant}`);return fe({VExpansionPanel:{bgColor:l(e,"bgColor"),collapseIcon:l(e,"collapseIcon"),color:l(e,"color"),eager:l(e,"eager"),elevation:l(e,"elevation"),expandIcon:l(e,"expandIcon"),focusable:l(e,"focusable"),hideActions:l(e,"hideActions"),readonly:l(e,"readonly"),ripple:l(e,"ripple"),rounded:l(e,"rounded"),static:l(e,"static")}}),R(()=>t(e.tag,{class:["v-expansion-panels",{"v-expansion-panels--flat":e.flat,"v-expansion-panels--tile":e.tile},o.value,h.value,e.class],style:e.style},n)),{}}}),He={class:"ml-2"},Ce={class:"d-flex justify-center"},Pe=me({__name:"about",setup(e){const c=Te([]),n=[{title:"nougatbyte",icon:"M12,11.64L7.92,2H16.08L12,11.64M12,21.95L3.27,4.91H7.84L12,14.47L16.16,4.91H20.73L12,21.95Z",link:"https://github.com/nougatbyte"},{title:"casraw",icon:"M12,11.64L7.92,2H16.08L12,11.64M12,21.95L3.27,4.91H7.84L12,14.47L16.16,4.91H20.73L12,21.95Z",link:"#"},{title:"pye",icon:"M12,11.64L7.92,2H16.08L12,11.64M12,21.95L3.27,4.91H7.84L12,14.47L16.16,4.91H20.73L12,21.95Z",link:"#"}],o=[{title:"Vite",icon:"M12,11.64L7.92,2H16.08L12,11.64M12,21.95L3.27,4.91H7.84L12,14.47L16.16,4.91H20.73L12,21.95Z",link:"https://vitejs.dev/",supportLink:"",licence:`MIT License + +Copyright (c) 2019-present, Yuxi (Evan) You and Vite contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE.`},{title:"Vuetify",icon:"M12,11.64L7.92,2H16.08L12,11.64M12,21.95L3.27,4.91H7.84L12,14.47L16.16,4.91H20.73L12,21.95Z",link:"https://vuetifyjs.com",supportLink:"https://vuetifyjs.com/en/introduction/sponsors-and-backers/#preamble",licence:`The MIT License (MIT) + +Copyright (c) 2016-2023 John Jeremy Leider + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in the +Software without restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the +Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, +INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +`},{title:"Vue",icon:"M2,3H5.5L12,15L18.5,3H22L12,21L2,3M6.5,3H9.5L12,7.58L14.5,3H17.5L12,13.08L6.5,3Z",link:"https://vuejs.org/",supportLink:"https://vuejs.org/sponsor/",licence:`The MIT License (MIT) + +Copyright (c) 2013-present, Yuxi (Evan) You + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE.`},{title:"Supabase",icon:"M2,3H5.5L12,15L18.5,3H22L12,21L2,3M6.5,3H9.5L12,7.58L14.5,3H17.5L12,13.08L6.5,3Z",link:"https://supabase.com/",supportLink:"https://supabase.com/pricing",licence:` Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2024 Supabase + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License.`},{title:"Pl@ntNet",icon:"M2,3H5.5L12,15L18.5,3H22L12,21L2,3M6.5,3H9.5L12,7.58L14.5,3H17.5L12,13.08L6.5,3Z",link:"https://plantnet.org",supportLink:"https://plantnet.org/donations/",licence:`MIT License + +Copyright (c) 2022 Cos4Cloud & Pl@ntNet + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE.`},{title:"gpx.studio",icon:"M2,3H5.5L12,15L18.5,3H22L12,21L2,3M6.5,3H9.5L12,7.58L14.5,3H17.5L12,13.08L6.5,3Z",link:"https://gpx.studio/about.html",supportLink:"https://ko-fi.com/gpxstudio",licence:`Copyright 2019 Vianney Coppé + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in the +Software without restriction, including without limitation the rights to use, copy, +modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, +and to permit persons to whom the Software is furnished to do so, subject to the +following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, +INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF +CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE +OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.`},{title:"OpenStreetMap",icon:"M2,3H5.5L12,15L18.5,3H22L12,21L2,3M6.5,3H9.5L12,7.58L14.5,3H17.5L12,13.08L6.5,3Z",link:"https://openstreetmap.org",supportLink:"https://donate.openstreetmap.org/",licence:""},{title:"Material Design Icons",icon:"M2,3H5.5L12,15L18.5,3H22L12,21L2,3M6.5,3H9.5L12,7.58L14.5,3H17.5L12,13.08L6.5,3Z",link:"https://pictogrammers.com/library/mdi/",supportLink:"",licence:`Pictogrammers Free License +-------------------------- + +Last Updated: February 1st, 2023 + +This package is released as free, open-source, and GPL friendly by +the [Pictogrammers](https://pictogrammers.com/). You may use it +for commercial projects, open-source projects, or anything really. + +# Icons: Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0) +Some of the icons are redistributed under the Apache 2.0 license. All other +icons are either redistributed under their respective licenses or are +distributed under the Apache 2.0 license. + +# Fonts: Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0) +All web and desktop fonts are distributed under the Apache 2.0 license. Web +and desktop fonts contain some icons that are redistributed under the Apache +2.0 license. All other icons are either redistributed under their respective +licenses or are distributed under the Apache 2.0 license. + +# Code: MIT (https://opensource.org/licenses/MIT) +The MIT license applies to all non-font and non-icon files.`},{title:"Icons by Cahya Kurniawan",icon:"M2,3H5.5L12,15L18.5,3H22L12,21L2,3M6.5,3H9.5L12,7.58L14.5,3H17.5L12,13.08L6.5,3Z",link:"https://dribbble.com/sikeystudio?ref=svgrepo.com",supportLink:"https://feathericons.com/",licence:`Vectors and icons by Cahya Kurniawan +[https://dribbble.com/sikeystudio?ref=svgrepo.com] in CC Attribution License +via SVG Repo +[https://www.svgrepo.com/]`}];function h(r){for(let s=r.length-1;s>0;s--){const p=Math.floor(Math.random()*(s+1));[r[s],r[p]]=[r[p],r[s]]}}return h(n),h(o),(r,s)=>{const p=be("v-list-item-icon");return m(),g(Re,null,{default:i(()=>[t(S,{class:"mb-2"},{default:i(()=>[t(N,null,{default:i(()=>[u("About")]),_:1}),t(Ie,null,{default:i(()=>[u(" This app is a work in progress and is not yet ready for production use. It is a personal project and is not affiliated with any organization. The app is open source and the code can be found on GitHub. Any feedback or suggestions are welcome. This is just AI generated text. I will update this later. ")]),_:1})]),_:1}),t(S,{class:"mb-2"},{default:i(()=>[t(N,null,{default:i(()=>[t(I,{color:"primary"},{default:i(()=>[u("M5 9.15V7C5 5.9 5.9 5 7 5H17C18.1 5 19 5.9 19 7V9.16C17.84 9.57 17 10.67 17 11.97V14H7V11.96C7 10.67 6.16 9.56 5 9.15M20 10C18.9 10 18 10.9 18 12V15H6V12C6 10.9 5.11 10 4 10S2 10.9 2 12V17C2 18.1 2.9 19 4 19V21H6V19H18V21H20V19C21.1 19 22 18.1 22 17V12C22 10.9 21.1 10 20 10Z")]),_:1}),u(" Main contributors")]),_:1}),t(ye,null,{default:i(()=>[(m(),D(V,null,M(n,a=>t(Ee,{key:a.title,link:"",target:"_blank",href:a.link},{prepend:i(()=>[t(p,{class:"pr-3"},{default:i(()=>[t(I,null,{default:i(()=>[u(b(a.icon),1)]),_:2},1024)]),_:2},1024)]),default:i(()=>[t(Oe,null,{default:i(()=>[u(b(a.title),1)]),_:2},1024)]),_:2},1032,["href"])),64))]),_:1})]),_:1}),t(S,null,{default:i(()=>[t(N,null,{default:i(()=>[t(I,{color:"primary"},{default:i(()=>[u("M12,21.35L10.55,20.03C5.4,15.36 2,12.27 2,8.5C2,5.41 4.42,3 7.5,3C9.24,3 10.91,3.81 12,5.08C13.09,3.81 14.76,3 16.5,3C19.58,3 22,5.41 22,8.5C22,12.27 18.6,15.36 13.45,20.03L12,21.35Z")]),_:1}),u(" Made possible by")]),_:1}),t(we,{variant:"inset",modelValue:Le(c),"onUpdate:modelValue":s[0]||(s[0]=a=>ge(c)?c.value=a:null)},{default:i(()=>[(m(),D(V,null,M(o,(a,L)=>t(Ne,{key:L},{default:i(()=>[t(k,{"expand-icon":"M7,10L12,15L17,10H7Z"},{default:i(()=>[t(I,null,{default:i(()=>[u(b(a.icon),1)]),_:2},1024),v("span",He,b(a.title),1)]),_:2},1024),t(C,null,{default:i(()=>[t(Ae,{class:"my-2"},{default:i(()=>[a.link?(m(),g(H,{key:0,class:"text-center"},{default:i(()=>[t(F,{color:"primary","prepend-icon":"M3.9,12C3.9,10.29 5.29,8.9 7,8.9H11V7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H11V15.1H7C5.29,15.1 3.9,13.71 3.9,12M8,13H16V11H8V13M17,7H13V8.9H17C18.71,8.9 20.1,10.29 20.1,12C20.1,13.71 18.71,15.1 17,15.1H13V17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7Z",href:a.link,target:"_blank",rel:"noopener noreferrer"},{default:i(()=>[u("Website")]),_:2},1032,["href"])]),_:2},1024)):w("",!0),a.supportLink?(m(),g(H,{key:1,class:"text-center"},{default:i(()=>[a.supportLink?(m(),g(F,{key:0,color:"primary","prepend-icon":"M3.9,12C3.9,10.29 5.29,8.9 7,8.9H11V7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H11V15.1H7C5.29,15.1 3.9,13.71 3.9,12M8,13H16V11H8V13M17,7H13V8.9H17C18.71,8.9 20.1,10.29 20.1,12C20.1,13.71 18.71,15.1 17,15.1H13V17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7Z",href:a.supportLink,target:"_blank",rel:"noopener noreferrer"},{default:i(()=>[u("Donate")]),_:2},1032,["href"])):w("",!0)]),_:2},1024)):w("",!0),t(H,{cols:"12"},{default:i(()=>[v("div",Ce,[v("pre",null,b(a.licence),1)])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)),64))]),_:1},8,["modelValue"])]),_:1})]),_:1})}}});export{Pe as default}; diff --git a/_nuxt/BXIHKiAW.js b/_nuxt/BXIHKiAW.js new file mode 100644 index 0000000..7a994e0 --- /dev/null +++ b/_nuxt/BXIHKiAW.js @@ -0,0 +1 @@ +import{_ as a}from"./REcBhd0O.js";import{an as i,am as m,ao as s,a8 as p,v as _,B as c,A as u,af as f}from"./CsYHinuP.js";import{V as l}from"./DKIU8Zgl.js";import"./1ufk8KGl.js";import"./B8xzjt0i.js";import"./cxFlIQmQ.js";import"./anyozH1k.js";import"./BFbS1nff.js";import"./DROfdj8r.js";import"./9HoxfIWU.js";import"./Ckgx-ZkB.js";import"./C5_Hj3rt.js";import"./D3VuSz5Q.js";import"./CuSTAa19.js";import"./B5oJa23P.js";import"./DoIRHZ99.js";import"./BorjDOqY.js";const z={__name:"[id]",async setup(d){let t,o;const r=i();[t,o]=m(()=>r.fetch()),await t,o();const e=r.byId(s().params.id);return(v,y)=>{const n=a;return _(),p(l,null,{default:c(()=>[u(n,{inventory:f(e)},null,8,["inventory"])]),_:1})}}};export{z as default}; diff --git a/_nuxt/Be2Je18i.js b/_nuxt/Be2Je18i.js new file mode 100644 index 0000000..a2af3bb --- /dev/null +++ b/_nuxt/Be2Je18i.js @@ -0,0 +1 @@ +import{d as b,bE as T,ay as $,v as f,a8 as V,af as n,r as k,bN as x,c as A,B as l,A as e,ak as D,aj as p,C as i,aA as I,ag as U,ab as B,aa as N,aB as F,q as g,am as j,ao as E,_ as P}from"./CsYHinuP.js";import{V as q}from"./9HoxfIWU.js";import{V as v}from"./Ckgx-ZkB.js";import{V as C,a as s}from"./DoIRHZ99.js";import{V as O}from"./BorjDOqY.js";import{V as z}from"./DKIU8Zgl.js";import"./C5_Hj3rt.js";import"./D3VuSz5Q.js";import"./anyozH1k.js";const G=b({__name:"route-selector",props:{label:{}},setup(c){const r=T(),{entities:u}=$(r);return r.fetch(),(a,d)=>(f(),V(q,{label:a.label,items:n(u),"item-title":"name","item-value":"id",clearable:""},null,8,["label","items"]))}}),H=b({__name:"form",props:{trip:{type:Object,default:()=>({name:"",start:"",end:"",planningRoute:null,recordedRoute:null})}},setup(c){const r=c,u=k(!1),a=k({...r.trip}),d=x(),y=A(()=>new Date(a.value.start){try{if(a.value.id)await d.update(a.value);else{const m={...a.value};await d.create(m)}g("/trips")}catch(m){console.error("An error occurred while saving the item:",m)}};async function _(){u.value=!0}async function S(){await d.delete(a.value.id),g("/items")}return(m,t)=>{const R=G;return f(),V(O,null,{default:l(()=>[e(v,{modelValue:n(a).name,"onUpdate:modelValue":t[0]||(t[0]=o=>n(a).name=o),label:"Name"},null,8,["modelValue"]),e(C,null,{default:l(()=>[e(s,{cols:"6"},{default:l(()=>[e(v,{modelValue:n(a).start,"onUpdate:modelValue":t[1]||(t[1]=o=>n(a).start=o),label:"Start",type:"datetime-local"},null,8,["modelValue"])]),_:1}),e(s,{cols:"6"},{default:l(()=>[e(v,{modelValue:n(a).end,"onUpdate:modelValue":t[2]||(t[2]=o=>n(a).end=o),label:"End",type:"datetime-local"},null,8,["modelValue"])]),_:1})]),_:1}),e(C,null,{default:l(()=>[e(s,null,{default:l(()=>[e(R,{label:"Planned route",modelValue:n(a).planningRoute,"onUpdate:modelValue":t[3]||(t[3]=o=>n(a).planningRoute=o)},null,8,["modelValue"])]),_:1}),n(y)?(f(),V(s,{key:0},{default:l(()=>[e(R,{label:"Recorded route",modelValue:n(a).recordedRoute,"onUpdate:modelValue":t[4]||(t[4]=o=>n(a).recordedRoute=o)},null,8,["modelValue"])]),_:1})):D("",!0)]),_:1}),e(C,{justify:"end"},{default:l(()=>[e(s,{cols:"auto"},{default:l(()=>[e(p,{onClick:t[5]||(t[5]=o=>_())},{default:l(()=>[i("Delete")]),_:1})]),_:1}),e(s,{cols:"auto"},{default:l(()=>[e(p,{onClick:t[6]||(t[6]=o=>m.$router.back())},{default:l(()=>[i("Cancel")]),_:1})]),_:1}),e(s,{cols:"auto"},{default:l(()=>[e(p,{onClick:t[7]||(t[7]=o=>w())},{default:l(()=>[i("Save")]),_:1})]),_:1})]),_:1}),e(I,{modelValue:n(u),"onUpdate:modelValue":t[10]||(t[10]=o=>U(u)?u.value=o:null),"max-width":"290"},{default:l(()=>[e(B,null,{default:l(()=>[e(N,null,{default:l(()=>[i("Are you sure you want to delete this item?")]),_:1}),e(F,null,{default:l(()=>[e(p,{onClick:t[8]||(t[8]=o=>u.value=!1)},{default:l(()=>[i("Cancel")]),_:1}),e(p,{onClick:t[9]||(t[9]=o=>S())},{default:l(()=>[i("Delete")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})}}}),J=b({__name:"[id]",async setup(c){let r,u;const a=x();[r,u]=j(()=>a.fetch()),await r,u();const d=a.byId(E().params.id);return(y,w)=>{const _=H;return f(),V(z,null,{default:l(()=>[e(_,{trip:n(d)},null,8,["trip"])]),_:1})}}}),ee=P(J,[["__scopeId","data-v-83349e6f"]]);export{ee as default}; diff --git a/_nuxt/BexpS2Km.js b/_nuxt/BexpS2Km.js new file mode 100644 index 0000000..62e165b --- /dev/null +++ b/_nuxt/BexpS2Km.js @@ -0,0 +1 @@ +import{a as X,f as Y,b as Z,c as ee}from"./Ckgx-ZkB.js";import{a as le,b as te,V as B}from"./C5_Hj3rt.js";import{F as ne,b2 as N,I as ae,aS as ue,aG as ie,c as s,r as h,as as oe,L as se,bI as re,A as u,a1 as b,ae as V,bn as ce,bJ as M,au as de,bK as fe}from"./CsYHinuP.js";import{V as ve}from"./anyozH1k.js";const me=ne({chips:Boolean,counter:Boolean,counterSizeString:{type:String,default:"$vuetify.fileInput.counterSize"},counterString:{type:String,default:"$vuetify.fileInput.counter"},hideInput:Boolean,multiple:Boolean,showSize:{type:[Boolean,Number,String],default:!1,validator:e=>typeof e=="boolean"||[1e3,1024].includes(Number(e))},...le({prependIcon:"$file"}),modelValue:{type:[Array,Object],default:e=>e.multiple?[]:null,validator:e=>N(e).every(f=>f!=null&&typeof f=="object")},...X({clearable:!0})},"VFileInput"),Ie=ae()({name:"VFileInput",inheritAttrs:!1,props:me(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,f){let{attrs:$,emit:I,slots:n}=f;const{t:C}=ue(),a=ie(e,"modelValue",e.modelValue,l=>N(l),l=>e.multiple||Array.isArray(e.modelValue)?l:l[0]),{isFocused:v,focus:x,blur:D}=te(e),g=s(()=>typeof e.showSize!="boolean"?e.showSize:void 0),k=s(()=>(a.value??[]).reduce((l,t)=>{let{size:r=0}=t;return l+r},0)),S=s(()=>M(k.value,g.value)),p=s(()=>(a.value??[]).map(l=>{const{name:t="",size:r=0}=l;return e.showSize?`${t} (${M(r,g.value)})`:t})),j=s(()=>{var t;const l=((t=a.value)==null?void 0:t.length)??0;return e.showSize?C(e.counterSizeString,l,S.value):C(e.counterString,l)}),F=h(),P=h(),i=h(),E=s(()=>v.value||e.active),A=s(()=>["plain","underlined"].includes(e.variant));function y(){var l;i.value!==document.activeElement&&((l=i.value)==null||l.focus()),v.value||x()}function L(l){var t;(t=i.value)==null||t.click()}function O(l){I("mousedown:control",l)}function U(l){var t;(t=i.value)==null||t.click(),I("click:control",l)}function G(l){l.stopPropagation(),y(),de(()=>{a.value=[],fe(e["onClick:clear"],l)})}return oe(a,l=>{(!Array.isArray(l)||!l.length)&&i.value&&(i.value.value="")}),se(()=>{const l=!!(n.counter||e.counter),t=!!(l||n.details),[r,J]=re($),{modelValue:pe,...K}=B.filterProps(e),T=Y(e);return u(B,b({ref:F,modelValue:a.value,"onUpdate:modelValue":c=>a.value=c,class:["v-file-input",{"v-file-input--chips":!!e.chips,"v-file-input--hide":e.hideInput,"v-input--plain-underlined":A.value},e.class],style:e.style,"onClick:prepend":L},r,K,{centerAffix:!A.value,focused:v.value}),{...n,default:c=>{let{id:m,isDisabled:d,isDirty:z,isReadonly:w,isValid:_}=c;return u(Z,b({ref:P,"prepend-icon":e.prependIcon,onMousedown:O,onClick:U,"onClick:clear":G,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"]},T,{id:m.value,active:E.value||z.value,dirty:z.value,disabled:d.value,focused:v.value,error:_.value===!1}),{...n,default:q=>{var R;let{props:{class:H,...Q}}=q;return u(V,null,[u("input",b({ref:i,type:"file",readonly:w.value,disabled:d.value,multiple:e.multiple,name:e.name,onClick:o=>{o.stopPropagation(),w.value&&o.preventDefault(),y()},onChange:o=>{if(!o.target)return;const W=o.target;a.value=[...W.files??[]]},onFocus:y,onBlur:D},Q,J),null),u("div",{class:H},[!!((R=a.value)!=null&&R.length)&&!e.hideInput&&(n.selection?n.selection({fileNames:p.value,totalBytes:k.value,totalBytesReadable:S.value}):e.chips?p.value.map(o=>u(ve,{key:o,size:"small",text:o},null)):p.value.join(", "))])])}})},details:t?c=>{var m,d;return u(V,null,[(m=n.details)==null?void 0:m.call(n,c),l&&u(V,null,[u("span",null,null),u(ee,{active:!!((d=a.value)!=null&&d.length),value:j.value,disabled:e.disabled},n.counter)])])}:void 0})}),ce({},F,P,i)}});export{Ie as V}; diff --git a/_nuxt/BoUqoHPM.js b/_nuxt/BoUqoHPM.js new file mode 100644 index 0000000..c1bc234 --- /dev/null +++ b/_nuxt/BoUqoHPM.js @@ -0,0 +1 @@ +import{_ as m}from"./CGRZ0AoM.js";import{ax as s,am as i,ao as p,a8 as n,B as _,v as c,A as u,af as f}from"./CsYHinuP.js";import{V as l}from"./DKIU8Zgl.js";import"./1ufk8KGl.js";import"./B8xzjt0i.js";import"./Ckgx-ZkB.js";import"./C5_Hj3rt.js";import"./BexpS2Km.js";import"./anyozH1k.js";import"./DoIRHZ99.js";import"./9HoxfIWU.js";import"./D3VuSz5Q.js";import"./B5oJa23P.js";import"./BorjDOqY.js";const $={__name:"[id]",async setup(d){let t,o;const e=s();[t,o]=i(()=>e.fetch()),await t,o();const r=e.byId(p().params.id);return(x,h)=>{const a=m;return c(),n(l,null,{default:_(()=>[u(a,{item:f(r)},null,8,["item"])]),_:1})}}};export{$ as default}; diff --git a/_nuxt/BorjDOqY.js b/_nuxt/BorjDOqY.js new file mode 100644 index 0000000..6b9cf31 --- /dev/null +++ b/_nuxt/BorjDOqY.js @@ -0,0 +1 @@ +import{F as p,G as b,I as v,r as F,L as V,A as y,bn as h}from"./CsYHinuP.js";import{d as R,e as P}from"./C5_Hj3rt.js";const k=p({...b(),...R()},"VForm"),S=v()({name:"VForm",props:k(),emits:{"update:modelValue":o=>!0,submit:o=>!0},setup(o,i){let{slots:n,emit:f}=i;const r=P(o),s=F();function l(t){t.preventDefault(),r.reset()}function u(t){const a=t,e=r.validate();a.then=e.then.bind(e),a.catch=e.catch.bind(e),a.finally=e.finally.bind(e),f("submit",a),a.defaultPrevented||e.then(c=>{var m;let{valid:d}=c;d&&((m=s.value)==null||m.submit())}),a.preventDefault()}return V(()=>{var t;return y("form",{ref:s,class:["v-form",o.class],style:o.style,novalidate:!0,onReset:l,onSubmit:u},[(t=n.default)==null?void 0:t.call(n,r)])}),h(r,s)}});export{S as V}; diff --git a/_nuxt/C0GJkI-e.js b/_nuxt/C0GJkI-e.js new file mode 100644 index 0000000..a281a12 --- /dev/null +++ b/_nuxt/C0GJkI-e.js @@ -0,0 +1 @@ +import{d as e,v as t,a8 as n,bM as _}from"./CsYHinuP.js";const r=e({__name:"tools",setup(a){return(c,s)=>{const o=_;return t(),n(o)}}});export{r as default}; diff --git a/_nuxt/C5_Hj3rt.js b/_nuxt/C5_Hj3rt.js new file mode 100644 index 0000000..c23bf29 --- /dev/null +++ b/_nuxt/C5_Hj3rt.js @@ -0,0 +1 @@ +import{F as I,b9 as D,G as _,a3 as J,I as z,L as T,A as m,aS as q,S as Z,aF as ee,bW as ae,c as v,b2 as $,bf as ne,aJ as te,c2 as K,aG as E,ap as F,r as R,as as w,a0 as se,bw as le,a7 as ie,J as ue,bL as j,aX as re,af as oe,bA as de,e as ce,o as ve,aI as G,au as fe,O as H,aP as ge,c3 as me,bQ as ye,bd as he,bR as be,a5 as pe,aT as Ve}from"./CsYHinuP.js";const ke=I({text:String,onClick:D(),..._(),...J()},"VLabel"),$e=z()({name:"VLabel",props:ke(),setup(e,d){let{slots:r}=d;return T(()=>{var n;return m("label",{class:["v-label",{"v-label--clickable":!!e.onClick},e.class],style:e.style,onClick:e.onClick},[e.text,(n=r.default)==null?void 0:n.call(r)])}),{}}});function Ie(e){const{t:d}=q();function r(n){let{name:o}=n;const a={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendInner:"appendAction",clear:"clear"}[o],l=e[`onClick:${o}`],g=l&&a?d(`$vuetify.input.${a}`,e.label??""):void 0;return m(Z,{icon:e[`${o}Icon`],"aria-label":g,onClick:l},null)}return{InputIcon:r}}const Me=I({active:Boolean,color:String,messages:{type:[Array,String],default:()=>[]},..._(),...ee({transition:{component:ae,leaveAbsolute:!0,group:!0}})},"VMessages"),Se=z()({name:"VMessages",props:Me(),setup(e,d){let{slots:r}=d;const n=v(()=>$(e.messages)),{textColorClasses:o,textColorStyles:a}=ne(v(()=>e.color));return T(()=>m(te,{transition:e.transition,tag:"div",class:["v-messages",o.value,e.class],style:[a.value,e.style],role:"alert","aria-live":"polite"},{default:()=>[e.active&&n.value.map((l,g)=>m("div",{class:"v-messages__message",key:`${g}-${n.value}`},[r.message?r.message({message:l}):l]))]})),{}}}),Ce=I({focused:Boolean,"onUpdate:focused":D()},"focus");function De(e){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:K();const r=E(e,"focused"),n=v(()=>({[`${d}--focused`]:r.value}));function o(){r.value=!0}function a(){r.value=!1}return{focusClasses:n,isFocused:r,focus:o,blur:a}}const Q=Symbol.for("vuetify:form"),Fe=I({disabled:Boolean,fastFail:Boolean,readonly:Boolean,modelValue:{type:Boolean,default:null},validateOn:{type:String,default:"input"}},"form");function Re(e){const d=E(e,"modelValue"),r=v(()=>e.disabled),n=v(()=>e.readonly),o=F(!1),a=R([]),l=R([]);async function g(){const i=[];let s=!0;l.value=[],o.value=!0;for(const c of a.value){const t=await c.validate();if(t.length>0&&(s=!1,i.push({id:c.id,errorMessages:t})),!s&&e.fastFail)break}return l.value=i,o.value=!1,{valid:s,errors:l.value}}function k(){a.value.forEach(i=>i.reset())}function p(){a.value.forEach(i=>i.resetValidation())}return w(a,()=>{let i=0,s=0;const c=[];for(const t of a.value)t.isValid===!1?(s++,c.push({id:t.id,errorMessages:t.errorMessages})):t.isValid===!0&&i++;l.value=c,d.value=s>0?!1:i===a.value.length?!0:null},{deep:!0,flush:"post"}),se(Q,{register:i=>{let{id:s,vm:c,validate:t,reset:h,resetValidation:M}=i;a.value.some(S=>S.id===s),a.value.push({id:s,validate:t,reset:h,resetValidation:M,vm:le(c),isValid:null,errorMessages:[]})},unregister:i=>{a.value=a.value.filter(s=>s.id!==i)},update:(i,s,c)=>{const t=a.value.find(h=>h.id===i);t&&(t.isValid=s,t.errorMessages=c)},isDisabled:r,isReadonly:n,isValidating:o,isValid:d,items:a,validateOn:ie(e,"validateOn")}),{errors:l,isDisabled:r,isReadonly:n,isValidating:o,isValid:d,items:a,validate:g,reset:k,resetValidation:p}}function Pe(){return ue(Q,null)}const Be=I({disabled:{type:Boolean,default:null},error:Boolean,errorMessages:{type:[Array,String],default:()=>[]},maxErrors:{type:[Number,String],default:1},name:String,label:String,readonly:{type:Boolean,default:null},rules:{type:Array,default:()=>[]},modelValue:null,validateOn:String,validationValue:null,...Ce()},"validation");function xe(e){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:K(),r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:j();const n=E(e,"modelValue"),o=v(()=>e.validationValue===void 0?n.value:e.validationValue),a=Pe(),l=R([]),g=F(!0),k=v(()=>!!($(n.value===""?null:n.value).length||$(o.value===""?null:o.value).length)),p=v(()=>!!(e.disabled??(a==null?void 0:a.isDisabled.value))),i=v(()=>!!(e.readonly??(a==null?void 0:a.isReadonly.value))),s=v(()=>{var u;return(u=e.errorMessages)!=null&&u.length?$(e.errorMessages).concat(l.value).slice(0,Math.max(0,+e.maxErrors)):l.value}),c=v(()=>{let u=(e.validateOn??(a==null?void 0:a.validateOn.value))||"input";u==="lazy"&&(u="input lazy");const f=new Set((u==null?void 0:u.split(" "))??[]);return{blur:f.has("blur")||f.has("input"),input:f.has("input"),submit:f.has("submit"),lazy:f.has("lazy")}}),t=v(()=>{var u;return e.error||(u=e.errorMessages)!=null&&u.length?!1:e.rules.length?g.value?l.value.length||c.value.lazy?null:!0:!l.value.length:!0}),h=F(!1),M=v(()=>({[`${d}--error`]:t.value===!1,[`${d}--dirty`]:k.value,[`${d}--disabled`]:p.value,[`${d}--readonly`]:i.value})),S=re("validation"),V=v(()=>e.name??oe(r));de(()=>{a==null||a.register({id:V.value,vm:S,validate:y,reset:C,resetValidation:P})}),ce(()=>{a==null||a.unregister(V.value)}),ve(async()=>{c.value.lazy||await y(!0),a==null||a.update(V.value,t.value,s.value)}),G(()=>c.value.input,()=>{w(o,()=>{if(o.value!=null)y();else if(e.focused){const u=w(()=>e.focused,f=>{f||y(),u()})}})}),G(()=>c.value.blur,()=>{w(()=>e.focused,u=>{u||y()})}),w([t,s],()=>{a==null||a.update(V.value,t.value,s.value)});async function C(){n.value=null,await fe(),await P()}async function P(){g.value=!0,c.value.lazy?l.value=[]:await y(!0)}async function y(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const f=[];h.value=!0;for(const B of e.rules){if(f.length>=+(e.maxErrors??1))break;const b=await(typeof B=="function"?B:()=>B)(o.value);if(b!==!0){if(b!==!1&&typeof b!="string"){console.warn(`${b} is not a valid value. Rule functions must return boolean true or a string.`);continue}f.push(b||"")}}return l.value=f,h.value=!1,g.value=u,l.value}return{errorMessages:s,isDirty:k,isDisabled:p,isReadonly:i,isPristine:g,isValid:t,isValidating:h,reset:C,resetValidation:P,validate:y,validationClasses:M}}const we=I({id:String,appendIcon:H,centerAffix:{type:Boolean,default:!0},prependIcon:H,hideDetails:[Boolean,String],hideSpinButtons:Boolean,hint:String,persistentHint:Boolean,messages:{type:[Array,String],default:()=>[]},direction:{type:String,default:"horizontal",validator:e=>["horizontal","vertical"].includes(e)},"onClick:prepend":D(),"onClick:append":D(),..._(),...ge(),...me(ye(),["maxWidth","minWidth","width"]),...J(),...Be()},"VInput"),_e=z()({name:"VInput",props:{...we()},emits:{"update:modelValue":e=>!0},setup(e,d){let{attrs:r,slots:n,emit:o}=d;const{densityClasses:a}=he(e),{dimensionStyles:l}=be(e),{themeClasses:g}=pe(e),{rtlClasses:k}=Ve(),{InputIcon:p}=Ie(e),i=j(),s=v(()=>e.id||`input-${i}`),c=v(()=>`${s.value}-messages`),{errorMessages:t,isDirty:h,isDisabled:M,isReadonly:S,isPristine:V,isValid:C,isValidating:P,reset:y,resetValidation:u,validate:f,validationClasses:B}=xe(e,"v-input",s),x=v(()=>({id:s,messagesId:c,isDirty:h,isDisabled:M,isReadonly:S,isPristine:V,isValid:C,isValidating:P,reset:y,resetValidation:u,validate:f})),b=v(()=>{var A;return(A=e.errorMessages)!=null&&A.length||!V.value&&t.value.length?t.value:e.hint&&(e.persistentHint||e.focused)?e.hint:e.messages});return T(()=>{var L,N,U,W;const A=!!(n.prepend||e.prependIcon),X=!!(n.append||e.appendIcon),O=b.value.length>0,Y=!e.hideDetails||e.hideDetails==="auto"&&(O||!!n.details);return m("div",{class:["v-input",`v-input--${e.direction}`,{"v-input--center-affix":e.centerAffix,"v-input--hide-spin-buttons":e.hideSpinButtons},a.value,g.value,k.value,B.value,e.class],style:[l.value,e.style]},[A&&m("div",{key:"prepend",class:"v-input__prepend"},[(L=n.prepend)==null?void 0:L.call(n,x.value),e.prependIcon&&m(p,{key:"prepend-icon",name:"prepend"},null)]),n.default&&m("div",{class:"v-input__control"},[(N=n.default)==null?void 0:N.call(n,x.value)]),X&&m("div",{key:"append",class:"v-input__append"},[e.appendIcon&&m(p,{key:"append-icon",name:"append"},null),(U=n.append)==null?void 0:U.call(n,x.value)]),Y&&m("div",{class:"v-input__details"},[m(Se,{id:c.value,active:O,messages:b.value},{message:n.message}),(W=n.details)==null?void 0:W.call(n,x.value)])])}),{reset:y,resetValidation:u,validate:f,isValid:C,errorMessages:t}}});export{_e as V,we as a,De as b,$e as c,Fe as d,Re as e,Ie as f,Ce as m,Pe as u}; diff --git a/_nuxt/CGRZ0AoM.js b/_nuxt/CGRZ0AoM.js new file mode 100644 index 0000000..a92a035 --- /dev/null +++ b/_nuxt/CGRZ0AoM.js @@ -0,0 +1 @@ +import{_ as Ye}from"./1ufk8KGl.js";import{u as Ge}from"./B8xzjt0i.js";import{F as Ve,aC as Xe,aF as Je,I as ye,aS as Qe,r as E,ap as ie,aG as Ae,c as f,be as el,bf as je,as as ce,bg as ve,bh as ll,L as ke,A as a,ae as fe,bi as al,a1 as oe,ac as tl,ah as Te,bj as nl,S as _e,bk as ul,bl as ol,C as ee,bm as il,bn as sl,bo as rl,au as Ie,b2 as dl,W as cl,T as vl,bp as Pe,aT as He,a7 as q,aV as ml,a0 as fl,aY as Ze,G as qe,R as bl,J as We,Z as Vl,a_ as se,M as Re,Q as gl,bq as hl,N as pl,aW as Cl,$ as yl,P as De,d as kl,ax as Sl,br as wl,am as xl,o as Al,v as Ee,a8 as Ne,B as _,af as M,aw as _l,ag as Be,ak as Hl,bs as Ml,y as ze,aj as me,aA as Fl,ab as Ll,aa as Tl,aB as Il,bt as Pl,q as Ue}from"./CsYHinuP.js";import{m as Rl,V as be}from"./Ckgx-ZkB.js";import{V as Oe}from"./BexpS2Km.js";import{V as Dl}from"./DKIU8Zgl.js";import{V as Ce,a as ue}from"./DoIRHZ99.js";import{m as El,u as Nl,b as Bl,a as zl}from"./9HoxfIWU.js";import{m as Ul,u as Ol}from"./B5oJa23P.js";import{u as $l,m as Kl,a as jl,b as Zl,V as $e,c as ql}from"./C5_Hj3rt.js";import{V as Wl}from"./anyozH1k.js";import{V as Yl}from"./BorjDOqY.js";function Gl(e,n,d){if(n==null)return e;if(Array.isArray(n))throw new Error("Multiple matches is not implemented");return typeof n=="number"&&~n?a(fe,null,[a("span",{class:"v-combobox__unmask"},[e.substr(0,n)]),a("span",{class:"v-combobox__mask"},[e.substr(n,d)]),a("span",{class:"v-combobox__unmask"},[e.substr(n+d)])]):e}const Xl=Ve({autoSelectFirst:{type:[Boolean,String]},clearOnSelect:{type:Boolean,default:!0},delimiters:Array,...Ul({filterKeys:["title"]}),...El({hideNoData:!0,returnObject:!0}),...Xe(Rl({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...Je({transition:!1})},"VCombobox"),Jl=ye()({name:"VCombobox",props:Xl(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:search":e=>!0,"update:menu":e=>!0},setup(e,n){var ge;let{emit:d,slots:o}=n;const{t:h}=Qe(),g=E(),y=ie(!1),u=ie(!0),S=ie(!1),I=E(),R=E(),F=Ae(e,"menu"),c=f({get:()=>F.value,set:t=>{var m;F.value&&!t&&((m=I.value)!=null&&m.ΨopenChildren)||(F.value=t)}}),v=ie(-1);let N=!1;const D=f(()=>{var t;return(t=g.value)==null?void 0:t.color}),O=f(()=>c.value?e.closeText:e.openText),{items:$,transformIn:K,transformOut:B}=el(e),{textColorClasses:Z,textColorStyles:w}=je(D),l=Ae(e,"modelValue",[],t=>K(dl(t)),t=>{const m=B(t);return e.multiple?m:m[0]??null}),x=$l(),i=f(()=>!!(e.chips||o.chip)),p=f(()=>i.value||!!o.selection),L=ie(!e.multiple&&!p.value?((ge=l.value[0])==null?void 0:ge.title)??"":""),b=f({get:()=>L.value,set:t=>{var m;if(L.value=t??"",!e.multiple&&!p.value&&(l.value=[ve(e,t)]),t&&e.multiple&&((m=e.delimiters)!=null&&m.length)){const C=t.split(new RegExp(`(?:${e.delimiters.join("|")})+`));C.length>1&&(C.forEach(r=>{r=r.trim(),r&&V(ve(e,r))}),L.value="")}t||(v.value=-1),u.value=!t}}),A=f(()=>typeof e.counterValue=="function"?e.counterValue(l.value):typeof e.counterValue=="number"?e.counterValue:e.multiple?l.value.length:b.value.length);ce(L,t=>{N?Ie(()=>N=!1):y.value&&!c.value&&(c.value=!0),d("update:search",t)}),ce(l,t=>{var m;!e.multiple&&!p.value&&(L.value=((m=t[0])==null?void 0:m.title)??"")});const{filteredItems:z,getMatches:W}=Ol(e,$,()=>u.value?"":b.value),H=f(()=>e.hideSelected?z.value.filter(t=>!l.value.some(m=>m.value===t.value)):z.value),X=f(()=>l.value.map(t=>t.value)),G=f(()=>{var m;return(e.autoSelectFirst===!0||e.autoSelectFirst==="exact"&&b.value===((m=H.value[0])==null?void 0:m.title))&&H.value.length>0&&!u.value&&!S.value}),J=f(()=>e.hideNoData&&!H.value.length||e.readonly||(x==null?void 0:x.isReadonly.value)),le=E(),{onListScroll:P,onListKeydown:T}=Nl(le,g);function Q(t){N=!0,e.openOnClear&&(c.value=!0)}function ae(){J.value||(c.value=!0)}function re(t){J.value||(y.value&&(t.preventDefault(),t.stopPropagation()),c.value=!c.value)}function de(t){var r;if(rl(t)||e.readonly||x!=null&&x.isReadonly.value)return;const m=g.value.selectionStart,C=l.value.length;if((v.value>-1||["Enter","ArrowDown","ArrowUp"].includes(t.key))&&t.preventDefault(),["Enter","ArrowDown"].includes(t.key)&&(c.value=!0),["Escape"].includes(t.key)&&(c.value=!1),["Enter","Escape","Tab"].includes(t.key)&&(G.value&&["Enter","Tab"].includes(t.key)&&V(z.value[0]),u.value=!0),t.key==="ArrowDown"&&G.value&&((r=le.value)==null||r.focus("next")),t.key==="Enter"&&b.value&&(V(ve(e,b.value)),p.value&&(L.value="")),["Backspace","Delete"].includes(t.key)){if(!e.multiple&&p.value&&l.value.length>0&&!b.value)return V(l.value[0],!1);if(~v.value){const k=v.value;V(l.value[v.value],!1),v.value=k>=C-1?C-2:k}else t.key==="Backspace"&&!b.value&&(v.value=C-1)}if(e.multiple){if(t.key==="ArrowLeft"){if(v.value<0&&m>0)return;const k=v.value>-1?v.value-1:C-1;l.value[k]?v.value=k:(v.value=-1,g.value.setSelectionRange(b.value.length,b.value.length))}if(t.key==="ArrowRight"){if(v.value<0)return;const k=v.value+1;l.value[k]?v.value=k:(v.value=-1,g.value.setSelectionRange(0,0))}}}function s(){var t;y.value&&(u.value=!0,(t=g.value)==null||t.focus())}function V(t){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!(!t||t.props.disabled))if(e.multiple){const C=l.value.findIndex(k=>e.valueComparator(k.value,t.value)),r=m??!~C;if(~C){const k=r?[...l.value,t]:[...l.value];k.splice(C,1),l.value=k}else r&&(l.value=[...l.value,t]);e.clearOnSelect&&(b.value="")}else{const C=m!==!1;l.value=C?[t]:[],L.value=C&&!p.value?t.title:"",Ie(()=>{c.value=!1,u.value=!0})}}function Se(t){y.value=!0,setTimeout(()=>{S.value=!0})}function we(t){S.value=!1}function xe(t){(t==null||t===""&&!e.multiple&&!p.value)&&(l.value=[])}return ce(y,(t,m)=>{if(!(t||t===m)){if(v.value=-1,c.value=!1,G.value&&!S.value&&!l.value.some(C=>{let{value:r}=C;return r===H.value[0].value})){V(H.value[0]);return}if(b.value){if(e.multiple){V(ve(e,b.value));return}if(!p.value)return;l.value.some(C=>{let{title:r}=C;return r===b.value})?L.value="":V(ve(e,b.value))}}}),ce(c,()=>{if(!e.hideSelected&&c.value&&l.value.length){const t=H.value.findIndex(m=>l.value.some(C=>e.valueComparator(C.value,m.value)));ll&&window.requestAnimationFrame(()=>{var m;t>=0&&((m=R.value)==null||m.scrollToIndex(t))})}}),ce(()=>e.items,(t,m)=>{c.value||y.value&&!m.length&&t.length&&(c.value=!0)}),ke(()=>{const t=!!(!e.hideNoData||H.value.length||o["prepend-item"]||o["append-item"]||o["no-data"]),m=l.value.length>0,C=be.filterProps(e);return a(be,oe({ref:g},C,{modelValue:b.value,"onUpdate:modelValue":[r=>b.value=r,xe],focused:y.value,"onUpdate:focused":r=>y.value=r,validationValue:l.externalValue,counterValue:A.value,dirty:m,class:["v-combobox",{"v-combobox--active-menu":c.value,"v-combobox--chips":!!e.chips,"v-combobox--selection-slot":!!p.value,"v-combobox--selecting-index":v.value>-1,[`v-combobox--${e.multiple?"multiple":"single"}`]:!0},e.class],style:e.style,readonly:e.readonly,placeholder:m?void 0:e.placeholder,"onClick:clear":Q,"onMousedown:control":ae,onKeydown:de}),{...o,default:()=>a(fe,null,[a(al,oe({ref:I,modelValue:c.value,"onUpdate:modelValue":r=>c.value=r,activator:"parent",contentClass:"v-combobox__content",disabled:J.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterLeave:s},e.menuProps),{default:()=>[t&&a(tl,oe({ref:le,selected:X.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:r=>r.preventDefault(),onKeydown:T,onFocusin:Se,onFocusout:we,onScrollPassive:P,tabindex:"-1","aria-live":"polite",color:e.itemColor??e.color},e.listProps),{default:()=>{var r,k,Y;return[(r=o["prepend-item"])==null?void 0:r.call(o),!H.value.length&&!e.hideNoData&&(((k=o["no-data"])==null?void 0:k.call(o))??a(Te,{title:h(e.noDataText)},null)),a(Bl,{ref:R,renderless:!0,items:H.value},{default:te=>{var Le;let{item:U,index:ne,itemRef:j}=te;const Fe=oe(U.props,{ref:j,key:ne,active:G.value&&ne===0?!0:void 0,onClick:()=>V(U,null)});return((Le=o.item)==null?void 0:Le.call(o,{item:U,index:ne,props:Fe}))??a(Te,oe(Fe,{role:"option"}),{prepend:he=>{let{isSelected:pe}=he;return a(fe,null,[e.multiple&&!e.hideSelected?a(zl,{key:U.value,modelValue:pe,ripple:!1,tabindex:"-1"},null):void 0,U.props.prependAvatar&&a(nl,{image:U.props.prependAvatar},null),U.props.prependIcon&&a(_e,{icon:U.props.prependIcon},null)])},title:()=>{var he,pe;return u.value?U.title:Gl(U.title,(he=W(U))==null?void 0:he.title,((pe=b.value)==null?void 0:pe.length)??0)}})}}),(Y=o["append-item"])==null?void 0:Y.call(o)]}})]}),l.value.map((r,k)=>{function Y(j){j.stopPropagation(),j.preventDefault(),V(r,!1)}const te={"onClick:close":Y,onKeydown(j){j.key!=="Enter"&&j.key!==" "||(j.preventDefault(),j.stopPropagation(),Y(j))},onMousedown(j){j.preventDefault(),j.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},U=i.value?!!o.chip:!!o.selection,ne=U?ul(i.value?o.chip({item:r,index:k,props:te}):o.selection({item:r,index:k})):void 0;if(!(U&&!ne))return a("div",{key:r.value,class:["v-combobox__selection",k===v.value&&["v-combobox__selection--selected",Z.value]],style:k===v.value?w.value:{}},[i.value?o.chip?a(ol,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:r.title}}},{default:()=>[ne]}):a(Wl,oe({key:"chip",closable:e.closableChips,size:"small",text:r.title,disabled:r.props.disabled},te),null):ne??a("span",{class:"v-combobox__selection-text"},[r.title,e.multiple&&ktypeof e=="boolean"||e==="always"},thumbSize:{type:[Number,String],default:20},showTicks:{type:[Boolean,String],default:!1,validator:e=>typeof e=="boolean"||e==="always"},ticks:{type:[Array,Object]},tickSize:{type:[Number,String],default:2},color:String,trackColor:String,trackFillColor:String,trackSize:{type:[Number,String],default:4},direction:{type:String,default:"horizontal",validator:e=>["vertical","horizontal"].includes(e)},reverse:Boolean,...cl(),...vl({elevation:2}),ripple:{type:Boolean,default:!0}},"Slider"),aa=e=>{const n=f(()=>parseFloat(e.min)),d=f(()=>parseFloat(e.max)),o=f(()=>+e.step>0?parseFloat(e.step):0),h=f(()=>Math.max(Pe(o.value),Pe(n.value)));function g(y){if(y=parseFloat(y),o.value<=0)return y;const u=Ze(y,n.value,d.value),S=n.value%o.value,I=Math.round((u-S)/o.value)*o.value+S;return parseFloat(Math.min(I,d.value).toFixed(h.value))}return{min:n,max:d,step:o,decimals:h,roundValue:g}},ta=e=>{let{props:n,steps:d,onSliderStart:o,onSliderMove:h,onSliderEnd:g,getActiveThumb:y}=e;const{isRtl:u}=He(),S=q(n,"reverse"),I=f(()=>n.direction==="vertical"),R=f(()=>I.value!==S.value),{min:F,max:c,step:v,decimals:N,roundValue:D}=d,O=f(()=>parseInt(n.thumbSize,10)),$=f(()=>parseInt(n.tickSize,10)),K=f(()=>parseInt(n.trackSize,10)),B=f(()=>(c.value-F.value)/v.value),Z=q(n,"disabled"),w=f(()=>n.error||n.disabled?void 0:n.thumbColor??n.color),l=f(()=>n.error||n.disabled?void 0:n.trackColor??n.color),x=f(()=>n.error||n.disabled?void 0:n.trackFillColor??n.color),i=ie(!1),p=ie(0),L=E(),b=E();function A(s){var r;const V=n.direction==="vertical",Se=V?"top":"left",we=V?"height":"width",xe=V?"clientY":"clientX",{[Se]:ge,[we]:t}=(r=L.value)==null?void 0:r.$el.getBoundingClientRect(),m=ea(s,xe);let C=Math.min(Math.max((m-ge-p.value)/t,0),1)||0;return(V?R.value:R.value!==u.value)&&(C=1-C),D(F.value+C*(c.value-F.value))}const z=s=>{g({value:A(s)}),i.value=!1,p.value=0},W=s=>{b.value=y(s),b.value&&(b.value.focus(),i.value=!0,b.value.contains(s.target)?p.value=Ql(s,b.value,n.direction):(p.value=0,h({value:A(s)})),o({value:A(s)}))},H={passive:!0,capture:!0};function X(s){h({value:A(s)})}function G(s){s.stopPropagation(),s.preventDefault(),z(s),window.removeEventListener("mousemove",X,H),window.removeEventListener("mouseup",G)}function J(s){var V;z(s),window.removeEventListener("touchmove",X,H),(V=s.target)==null||V.removeEventListener("touchend",J)}function le(s){var V;W(s),window.addEventListener("touchmove",X,H),(V=s.target)==null||V.addEventListener("touchend",J,{passive:!1})}function P(s){s.preventDefault(),W(s),window.addEventListener("mousemove",X,H),window.addEventListener("mouseup",G,{passive:!1})}const T=s=>{const V=(s-F.value)/(c.value-F.value)*100;return Ze(isNaN(V)?0:V,0,100)},Q=q(n,"showTicks"),ae=f(()=>Q.value?n.ticks?Array.isArray(n.ticks)?n.ticks.map(s=>({value:s,position:T(s),label:s.toString()})):Object.keys(n.ticks).map(s=>({value:parseFloat(s),position:T(parseFloat(s)),label:n.ticks[s]})):B.value!==1/0?ml(B.value+1).map(s=>{const V=F.value+s*v.value;return{value:V,position:T(V)}}):[]:[]),re=f(()=>ae.value.some(s=>{let{label:V}=s;return!!V})),de={activeThumbRef:b,color:q(n,"color"),decimals:N,disabled:Z,direction:q(n,"direction"),elevation:q(n,"elevation"),hasLabels:re,isReversed:S,indexFromEnd:R,min:F,max:c,mousePressed:i,numTicks:B,onSliderMousedown:P,onSliderTouchstart:le,parsedTicks:ae,parseMouseMove:A,position:T,readonly:q(n,"readonly"),rounded:q(n,"rounded"),roundValue:D,showTicks:Q,startOffset:p,step:v,thumbSize:O,thumbColor:w,thumbLabel:q(n,"thumbLabel"),ticks:q(n,"ticks"),tickSize:$,trackColor:l,trackContainerRef:L,trackFillColor:x,trackSize:K,vertical:I};return fl(Me,de),de},na=Ve({focused:Boolean,max:{type:Number,required:!0},min:{type:Number,required:!0},modelValue:{type:Number,required:!0},position:{type:Number,required:!0},ripple:{type:[Boolean,Object],default:!0},...qe()},"VSliderThumb"),ua=ye()({name:"VSliderThumb",directives:{Ripple:bl},props:na(),emits:{"update:modelValue":e=>!0},setup(e,n){let{slots:d,emit:o}=n;const h=We(Me),{isRtl:g,rtlClasses:y}=He();if(!h)throw new Error("[Vuetify] v-slider-thumb must be used inside v-slider or v-range-slider");const{thumbColor:u,step:S,disabled:I,thumbSize:R,thumbLabel:F,direction:c,isReversed:v,vertical:N,readonly:D,elevation:O,mousePressed:$,decimals:K,indexFromEnd:B}=h,Z=f(()=>I.value?void 0:O.value),{elevationClasses:w}=Vl(Z),{textColorClasses:l,textColorStyles:x}=je(u),{pageup:i,pagedown:p,end:L,home:b,left:A,right:z,down:W,up:H}=Cl,X=[i,p,L,b,A,z,W,H],G=f(()=>S.value?[1,2,3]:[1,5,10]);function J(P,T){if(!X.includes(P.key))return;P.preventDefault();const Q=S.value||.1,ae=(e.max-e.min)/Q;if([A,z,W,H].includes(P.key)){const de=(N.value?[g.value?A:z,v.value?W:H]:B.value!==g.value?[A,H]:[z,H]).includes(P.key)?1:-1,s=P.shiftKey?2:P.ctrlKey?1:0;T=T+de*Q*G.value[s]}else if(P.key===b)T=e.min;else if(P.key===L)T=e.max;else{const re=P.key===p?1:-1;T=T-re*Q*(ae>100?ae/10:10)}return Math.max(e.min,Math.min(e.max,T))}function le(P){const T=J(P,e.modelValue);T!=null&&o("update:modelValue",T)}return ke(()=>{const P=se(B.value?100-e.position:e.position,"%");return a("div",{class:["v-slider-thumb",{"v-slider-thumb--focused":e.focused,"v-slider-thumb--pressed":e.focused&&$.value},e.class,y.value],style:[{"--v-slider-thumb-position":P,"--v-slider-thumb-size":se(R.value)},e.style],role:"slider",tabindex:I.value?-1:0,"aria-valuemin":e.min,"aria-valuemax":e.max,"aria-valuenow":e.modelValue,"aria-readonly":!!D.value,"aria-orientation":c.value,onKeydown:D.value?void 0:le},[a("div",{class:["v-slider-thumb__surface",l.value,w.value],style:{...x.value}},null),Re(a("div",{class:["v-slider-thumb__ripple",l.value],style:x.value},null),[[gl("ripple"),e.ripple,null,{circle:!0,center:!0}]]),a(hl,{origin:"bottom center"},{default:()=>{var T;return[Re(a("div",{class:"v-slider-thumb__label-container"},[a("div",{class:["v-slider-thumb__label"]},[a("div",null,[((T=d["thumb-label"])==null?void 0:T.call(d,{modelValue:e.modelValue}))??e.modelValue.toFixed(S.value?K.value:1)])])]),[[pl,F.value&&e.focused||F.value==="always"]])]}})])}),{}}}),oa=Ve({start:{type:Number,required:!0},stop:{type:Number,required:!0},...qe()},"VSliderTrack"),ia=ye()({name:"VSliderTrack",props:oa(),emits:{},setup(e,n){let{slots:d}=n;const o=We(Me);if(!o)throw new Error("[Vuetify] v-slider-track must be inside v-slider or v-range-slider");const{color:h,parsedTicks:g,rounded:y,showTicks:u,tickSize:S,trackColor:I,trackFillColor:R,trackSize:F,vertical:c,min:v,max:N,indexFromEnd:D}=o,{roundedClasses:O}=yl(y),{backgroundColorClasses:$,backgroundColorStyles:K}=De(R),{backgroundColorClasses:B,backgroundColorStyles:Z}=De(I),w=f(()=>`inset-${c.value?"block":"inline"}-${D.value?"end":"start"}`),l=f(()=>c.value?"height":"width"),x=f(()=>({[w.value]:"0%",[l.value]:"100%"})),i=f(()=>e.stop-e.start),p=f(()=>({[w.value]:se(e.start,"%"),[l.value]:se(i.value,"%")})),L=f(()=>u.value?(c.value?g.value.slice().reverse():g.value).map((A,z)=>{var H;const W=A.value!==v.value&&A.value!==N.value?se(A.position,"%"):void 0;return a("div",{key:A.value,class:["v-slider-track__tick",{"v-slider-track__tick--filled":A.position>=e.start&&A.position<=e.stop,"v-slider-track__tick--first":A.value===v.value,"v-slider-track__tick--last":A.value===N.value}],style:{[w.value]:W}},[(A.label||d["tick-label"])&&a("div",{class:"v-slider-track__tick-label"},[((H=d["tick-label"])==null?void 0:H.call(d,{tick:A,index:z}))??A.label])])}):[]);return ke(()=>a("div",{class:["v-slider-track",O.value,e.class],style:[{"--v-slider-track-size":se(F.value),"--v-slider-tick-size":se(S.value)},e.style]},[a("div",{class:["v-slider-track__background",B.value,{"v-slider-track__background--opacity":!!h.value||!R.value}],style:{...x.value,...Z.value}},null),a("div",{class:["v-slider-track__fill",$.value],style:{...p.value,...K.value}},null),u.value&&a("div",{class:["v-slider-track__ticks",{"v-slider-track__ticks--always-show":u.value==="always"}]},[L.value])])),{}}}),sa=Ve({...Kl(),...la(),...jl(),modelValue:{type:[Number,String],default:0}},"VSlider"),Ke=ye()({name:"VSlider",props:sa(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,start:e=>!0,end:e=>!0},setup(e,n){let{slots:d,emit:o}=n;const h=E(),{rtlClasses:g}=He(),y=aa(e),u=Ae(e,"modelValue",void 0,l=>y.roundValue(l??y.min.value)),{min:S,max:I,mousePressed:R,roundValue:F,onSliderMousedown:c,onSliderTouchstart:v,trackContainerRef:N,position:D,hasLabels:O,readonly:$}=ta({props:e,steps:y,onSliderStart:()=>{o("start",u.value)},onSliderEnd:l=>{let{value:x}=l;const i=F(x);u.value=i,o("end",i)},onSliderMove:l=>{let{value:x}=l;return u.value=F(x)},getActiveThumb:()=>{var l;return(l=h.value)==null?void 0:l.$el}}),{isFocused:K,focus:B,blur:Z}=Zl(e),w=f(()=>D(u.value));return ke(()=>{const l=$e.filterProps(e),x=!!(e.label||d.label||d.prepend);return a($e,oe({class:["v-slider",{"v-slider--has-labels":!!d["tick-label"]||O.value,"v-slider--focused":K.value,"v-slider--pressed":R.value,"v-slider--disabled":e.disabled},g.value,e.class],style:e.style},l,{focused:K.value}),{...d,prepend:x?i=>{var p,L;return a(fe,null,[((p=d.label)==null?void 0:p.call(d,i))??(e.label?a(ql,{id:i.id.value,class:"v-slider__label",text:e.label},null):void 0),(L=d.prepend)==null?void 0:L.call(d,i)])}:void 0,default:i=>{let{id:p,messagesId:L}=i;return a("div",{class:"v-slider__container",onMousedown:$.value?void 0:c,onTouchstartPassive:$.value?void 0:v},[a("input",{id:p.value,name:e.name||p.value,disabled:!!e.disabled,readonly:!!e.readonly,tabindex:"-1",value:u.value},null),a(ia,{ref:N,start:0,stop:w.value},{"tick-label":d["tick-label"]}),a(ua,{ref:h,"aria-describedby":L.value,focused:K.value,min:S.value,max:I.value,modelValue:u.value,"onUpdate:modelValue":b=>u.value=b,position:w.value,elevation:e.elevation,onFocus:B,onBlur:Z,ripple:e.ripple},{"thumb-label":d["thumb-label"]})])}})}),{}}}),ya=kl({__name:"form",props:{item:{type:Object,default:()=>({name:"",weight:1,amount:1,image:null})}},emits:["close-dialog"],async setup(e){let n,d;const o=E(null);E("");const h=E(!1),g=E(null),u=E({...e.item}),S=E(null),I=Sl(),R=wl(),F=q(R,"entities");[n,d]=xl(()=>R.fetch()),await n,d();const c=E("M19.95,10.56C19.75,9.67 18.95,9 18,9H15.46C15.81,8.41 16,7.73 16,7A4,4 0 0,0 12,3A4,4 0 0,0 8,7C8,7.73 8.19,8.41 8.54,9H6C5.05,9 4.25,9.67 4.05,10.56C2.04,18.57 2,18.78 2,19A2,2 0 0,0 4,21H20A2,2 0 0,0 22,19C22,18.78 21.96,18.57 19.95,10.56M12,5A2,2 0 0,1 14,7A2,2 0 0,1 12,9A2,2 0 0,1 10,7A2,2 0 0,1 12,5M15,13H11V17H13V14H15V19H11C9.89,19 9,18.11 9,17V13C9,11.89 9.89,11 11,11H15V13Z"),v=E(1),N=f(()=>u.value.weight>=1e3?(u.value.weight/1e3).toFixed(2):u.value.weight.toFixed(2)),D=w=>{switch(c.value=w>=1e3?"M12,3A4,4 0 0,1 16,7C16,7.73 15.81,8.41 15.46,9H18C18.95,9 19.75,9.67 19.95,10.56C21.96,18.57 22,18.78 22,19A2,2 0 0,1 20,21H4A2,2 0 0,1 2,19C2,18.78 2.04,18.57 4.05,10.56C4.25,9.67 5.05,9 6,9H8.54C8.19,8.41 8,7.73 8,7A4,4 0 0,1 12,3M12,5A2,2 0 0,0 10,7A2,2 0 0,0 12,9A2,2 0 0,0 14,7A2,2 0 0,0 12,5M6,11V19H8V16.5L9,17.5V19H11V17L9,15L11,13V11H9V12.5L8,13.5V11H6M15,11C13.89,11 13,11.89 13,13V17C13,18.11 13.89,19 15,19H18V14H16V17H15V13H18V11H15Z":"M19.95,10.56C19.75,9.67 18.95,9 18,9H15.46C15.81,8.41 16,7.73 16,7A4,4 0 0,0 12,3A4,4 0 0,0 8,7C8,7.73 8.19,8.41 8.54,9H6C5.05,9 4.25,9.67 4.05,10.56C2.04,18.57 2,18.78 2,19A2,2 0 0,0 4,21H20A2,2 0 0,0 22,19C22,18.78 21.96,18.57 19.95,10.56M12,5A2,2 0 0,1 14,7A2,2 0 0,1 12,9A2,2 0 0,1 10,7A2,2 0 0,1 12,5M15,13H11V17H13V14H15V19H11C9.89,19 9,18.11 9,17V13C9,11.89 9.89,11 11,11H15V13Z",c.value){case"M12,3A4,4 0 0,1 16,7C16,7.73 15.81,8.41 15.46,9H18C18.95,9 19.75,9.67 19.95,10.56C21.96,18.57 22,18.78 22,19A2,2 0 0,1 20,21H4A2,2 0 0,1 2,19C2,18.78 2.04,18.57 4.05,10.56C4.25,9.67 5.05,9 6,9H8.54C8.19,8.41 8,7.73 8,7A4,4 0 0,1 12,3M12,5A2,2 0 0,0 10,7A2,2 0 0,0 12,9A2,2 0 0,0 14,7A2,2 0 0,0 12,5M6,11V19H8V16.5L9,17.5V19H11V17L9,15L11,13V11H9V12.5L8,13.5V11H6M15,11C13.89,11 13,11.89 13,13V17C13,18.11 13.89,19 15,19H18V14H16V17H15V13H18V11H15Z":v.value=.1;break;case"M19.95,10.56C19.75,9.67 18.95,9 18,9H15.46C15.81,8.41 16,7.73 16,7A4,4 0 0,0 12,3A4,4 0 0,0 8,7C8,7.73 8.19,8.41 8.54,9H6C5.05,9 4.25,9.67 4.05,10.56C2.04,18.57 2,18.78 2,19A2,2 0 0,0 4,21H20A2,2 0 0,0 22,19C22,18.78 21.96,18.57 19.95,10.56M12,5A2,2 0 0,1 14,7A2,2 0 0,1 12,9A2,2 0 0,1 10,7A2,2 0 0,1 12,5M15,13H11V17H13V14H15V19H11C9.89,19 9,18.11 9,17V13C9,11.89 9.89,11 11,11H15V13Z":v.value=1;break}},O=()=>{o.value.click()},$=w=>{const l=w.target.files[0];if(l){const x=new FileReader;x.onload=i=>{g.value=i.target.result},x.readAsDataURL(l)}else g.value=null},K=async()=>{try{if(u.value.category=u.value.category.id,S.value){const w=await Ge("images",Pl(),S.value);u.value.image=w.path}if(u.value.id)await I.update(u.value);else{const w={...u.value};await I.create(w)}Ue("/items")}catch(w){console.error("An error occurred while saving the item:",w)}};async function B(){h.value=!0}async function Z(){await I.delete(u.value.id),Ue("/items")}return ce(()=>u.value.weight,D),Al(()=>{D(u.value.weight)}),(w,l)=>{const x=Ye;return Ee(),Ne(Yl,null,{default:_(()=>[a(be,{modelValue:M(u).name,"onUpdate:modelValue":l[0]||(l[0]=i=>M(u).name=i),label:"Name"},null,8,["modelValue"]),a(Oe,{class:_l(M(u).image?"d-none":""),modelValue:M(u).image,"onUpdate:modelValue":l[1]||(l[1]=i=>M(u).image=i),label:"New Image",accept:"image/*","show-size":"","prepend-icon":"M8.5,13.5L11,16.5L14.5,12L19,18H5M21,19V5C21,3.89 20.1,3 19,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19Z",clearable:"",onChange:$},null,8,["class","modelValue"]),a(Oe,{class:"d-none",ref_key:"fileInput",ref:o,modelValue:M(S),"onUpdate:modelValue":l[2]||(l[2]=i=>Be(S)?S.value=i:null),label:"Change Image",accept:"image/*","show-size":"","prepend-icon":"M8.5,13.5L11,16.5L14.5,12L19,18H5M21,19V5C21,3.89 20.1,3 19,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19Z",clearable:"",onChange:$},null,8,["modelValue"]),a(Dl,null,{default:_(()=>[M(g)?Hl("",!0):(Ee(),Ne(x,{key:0,onClick:O,"image-path":M(u).image},null,8,["image-path"])),a(Ml,{"v-if":M(g),src:M(g),onClick:O},null,8,["v-if","src"])]),_:1}),a(Ce,null,{default:_(()=>[a(Jl,{modelValue:M(u).category,"onUpdate:modelValue":l[3]||(l[3]=i=>M(u).category=i),items:M(F),label:"Category","item-title":"name","item-value":"id"},{"prepend-inner":_(()=>[a(_e,null,{default:_(()=>[ee("M5.5,7A1.5,1.5 0 0,1 4,5.5A1.5,1.5 0 0,1 5.5,4A1.5,1.5 0 0,1 7,5.5A1.5,1.5 0 0,1 5.5,7M21.41,11.58L12.41,2.58C12.05,2.22 11.55,2 11,2H4C2.89,2 2,2.89 2,4V11C2,11.55 2.22,12.05 2.59,12.41L11.58,21.41C11.95,21.77 12.45,22 13,22C13.55,22 14.05,21.77 14.41,21.41L21.41,14.41C21.78,14.05 22,13.55 22,13C22,12.44 21.77,11.94 21.41,11.58Z")]),_:1})]),_:1},8,["modelValue","items"])]),_:1}),a(Ce,null,{default:_(()=>[a(ue,{cols:"10"},{default:_(()=>[a(Ke,{modelValue:M(u).weight,"onUpdate:modelValue":l[4]||(l[4]=i=>M(u).weight=i),label:"Weight",min:1,max:1e4,step:M(v),onChange:D},null,8,["modelValue","step"])]),_:1}),a(ue,{cols:"2"},{default:_(()=>[ze("span",null,[a(be,{value:M(N),"append-inner-icon":M(c),readonly:""},null,8,["value","append-inner-icon"])])]),_:1})]),_:1}),a(Ce,null,{default:_(()=>[a(ue,{cols:"10"},{default:_(()=>[a(Ke,{modelValue:M(u).amount,"onUpdate:modelValue":l[5]||(l[5]=i=>M(u).amount=i),label:"Amount",min:"1",max:"50",step:"1"},null,8,["modelValue"])]),_:1}),a(ue,{cols:"2"},{default:_(()=>[ze("span",null,[a(be,{modelValue:M(u).amount,"onUpdate:modelValue":l[6]||(l[6]=i=>M(u).amount=i),"append-inner-icon":"M9,7L11,12L9,17H11L12,14.5L13,17H15L13,12L15,7H13L12,9.5L11,7H9Z"},null,8,["modelValue"])])]),_:1})]),_:1}),a(Ce,{justify:"end"},{default:_(()=>[a(ue,{cols:"auto"},{default:_(()=>[a(me,{onClick:l[7]||(l[7]=i=>B())},{default:_(()=>[ee("Delete")]),_:1})]),_:1}),a(ue,{cols:"auto"},{default:_(()=>[a(me,{onClick:l[8]||(l[8]=i=>w.$router.back())},{default:_(()=>[ee("Cancel")]),_:1})]),_:1}),a(ue,{cols:"auto"},{default:_(()=>[a(me,{onClick:l[9]||(l[9]=i=>K())},{default:_(()=>[ee("Save")]),_:1})]),_:1})]),_:1}),a(Fl,{modelValue:M(h),"onUpdate:modelValue":l[12]||(l[12]=i=>Be(h)?h.value=i:null),"max-width":"290"},{default:_(()=>[a(Ll,null,{default:_(()=>[a(Tl,null,{default:_(()=>[ee("Are you sure you want to delete this item?")]),_:1}),a(Il,null,{default:_(()=>[a(me,{onClick:l[10]||(l[10]=i=>h.value=!1)},{default:_(()=>[ee("Cancel")]),_:1}),a(me,{onClick:l[11]||(l[11]=i=>Z())},{default:_(()=>[ee("Delete")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})}}});export{ya as _}; diff --git a/_nuxt/CQkC9uRi.js b/_nuxt/CQkC9uRi.js new file mode 100644 index 0000000..de4e1a3 --- /dev/null +++ b/_nuxt/CQkC9uRi.js @@ -0,0 +1,1012 @@ +import{d as Zt,i as Rt,v as It,a8 as Bt,B as Vt,A as Ot,_ as Dt}from"./CsYHinuP.js";import{V as Ft}from"./DKIU8Zgl.js";function h(r,t,e,i){var s=arguments.length,o=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,t,e,i);else for(var c=r.length-1;c>=0;c--)(n=r[c])&&(o=(s<3?n(o):s>3?n(t,e,o):n(t,e))||o);return s>3&&o&&Object.defineProperty(t,e,o),o}/** + * @license + * Copyright 2019 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const F=window,ot=F.ShadowRoot&&(F.ShadyCSS===void 0||F.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,at=Symbol(),dt=new WeakMap;let Et=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==at)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(ot&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=dt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&dt.set(e,t))}return t}toString(){return this.cssText}};const v=r=>new Et(typeof r=="string"?r:r+"",void 0,at),A=(r,...t)=>{const e=r.length===1?r[0]:t.reduce((i,s,o)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+r[o+1],r[0]);return new Et(e,r,at)},jt=(r,t)=>{ot?r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const i=document.createElement("style"),s=F.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,r.appendChild(i)})},ht=ot?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return v(e)})(r):r;/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */var Y;const j=window,pt=j.trustedTypes,zt=pt?pt.emptyScript:"",ut=j.reactiveElementPolyfillSupport,st={toAttribute(r,t){switch(t){case Boolean:r=r?zt:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},Ct=(r,t)=>t!==r&&(t==t||r==r),K={attribute:!0,type:String,converter:st,reflect:!1,hasChanged:Ct},rt="finalized";let L=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),((e=this.h)!==null&&e!==void 0?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((e,i)=>{const s=this._$Ep(i,e);s!==void 0&&(this._$Ev.set(s,i),t.push(s))}),t}static createProperty(t,e=K){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i=typeof t=="symbol"?Symbol():"__"+t,s=this.getPropertyDescriptor(t,i,e);s!==void 0&&Object.defineProperty(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(s){const o=this[t];this[e]=s,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||K}static finalize(){if(this.hasOwnProperty(rt))return!1;this[rt]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,i=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const s of i)this.createProperty(s,e[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const s of i)e.unshift(ht(s))}else t!==void 0&&e.push(ht(t));return e}static _$Ep(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(e=>e(this))}addController(t){var e,i;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)===null||i===void 0||i.call(t))}removeController(t){var e;(e=this._$ES)===null||e===void 0||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;const e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return jt(e,this.constructor.elementStyles),e}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostConnected)===null||i===void 0?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostDisconnected)===null||i===void 0?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=K){var s;const o=this.constructor._$Ep(t,i);if(o!==void 0&&i.reflect===!0){const n=(((s=i.converter)===null||s===void 0?void 0:s.toAttribute)!==void 0?i.converter:st).toAttribute(e,i.type);this._$El=t,n==null?this.removeAttribute(o):this.setAttribute(o,n),this._$El=null}}_$AK(t,e){var i;const s=this.constructor,o=s._$Ev.get(t);if(o!==void 0&&this._$El!==o){const n=s.getPropertyOptions(o),c=typeof n.converter=="function"?{fromAttribute:n.converter}:((i=n.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?n.converter:st;this._$El=o,this[o]=c.fromAttribute(e,n.type),this._$El=null}}requestUpdate(t,e,i){let s=!0;t!==void 0&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||Ct)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,i))):s=!1),!this.isUpdatePending&&s&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((s,o)=>this[o]=s),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),(t=this._$ES)===null||t===void 0||t.forEach(s=>{var o;return(o=s.hostUpdate)===null||o===void 0?void 0:o.call(s)}),this.update(i)):this._$Ek()}catch(s){throw e=!1,this._$Ek(),s}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var s;return(s=i.hostUpdated)===null||s===void 0?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((e,i)=>this._$EO(i,this[i],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};L[rt]=!0,L.elementProperties=new Map,L.elementStyles=[],L.shadowRootOptions={mode:"open"},ut==null||ut({ReactiveElement:L}),((Y=j.reactiveElementVersions)!==null&&Y!==void 0?Y:j.reactiveElementVersions=[]).push("1.6.3");/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */var Q;const z=window,P=z.trustedTypes,mt=P?P.createPolicy("lit-html",{createHTML:r=>r}):void 0,nt="$lit$",E=`lit$${(Math.random()+"").slice(9)}$`,kt="?"+E,Jt=`<${kt}>`,S=document,R=()=>S.createComment(""),I=r=>r===null||typeof r!="object"&&typeof r!="function",St=Array.isArray,qt=r=>St(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",X=`[ +\f\r]`,T=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ft=/-->/g,gt=/>/g,C=RegExp(`>|${X}(?:([^\\s"'>=/]+)(${X}*=${X}*(?:[^ +\f\r"'\`<>=]|("|')|))|$)`,"g"),vt=/'/g,xt=/"/g,Nt=/^(?:script|style|textarea|title)$/i,Gt=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),l=Gt(1),U=Symbol.for("lit-noChange"),f=Symbol.for("lit-nothing"),$t=new WeakMap,k=S.createTreeWalker(S,129,null,!1);function Lt(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return mt!==void 0?mt.createHTML(t):t}const Wt=(r,t)=>{const e=r.length-1,i=[];let s,o=t===2?"":"",n=T;for(let c=0;c"?(n=s??T,m=-1):u[1]===void 0?m=-2:(m=n.lastIndex-u[2].length,d=u[1],n=u[3]===void 0?C:u[3]==='"'?xt:vt):n===xt||n===vt?n=C:n===ft||n===gt?n=T:(n=C,s=void 0);const y=n===C&&r[c+1].startsWith("/>")?" ":"";o+=n===T?a+Jt:m>=0?(i.push(d),a.slice(0,m)+nt+a.slice(m)+E+y):a+E+(m===-2?(i.push(void 0),c):y)}return[Lt(r,o+(r[e]||"")+(t===2?"":"")),i]};class B{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,n=0;const c=t.length-1,a=this.parts,[d,u]=Wt(t,e);if(this.el=B.createElement(d,i),k.currentNode=this.el.content,e===2){const m=this.el.content,g=m.firstChild;g.remove(),m.append(...g.childNodes)}for(;(s=k.nextNode())!==null&&a.length0){s.textContent=P?P.emptyScript:"";for(let y=0;y2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=f}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const o=this.strings;let n=!1;if(o===void 0)t=M(this,t,e,0),n=!I(t)||t!==this._$AH&&t!==U,n&&(this._$AH=t);else{const c=t;let a,d;for(t=o[0],a=0;a{var i,s;const o=(i=e==null?void 0:e.renderBefore)!==null&&i!==void 0?i:t;let n=o._$litPart$;if(n===void 0){const c=(s=e==null?void 0:e.renderBefore)!==null&&s!==void 0?s:null;o._$litPart$=n=new V(t.insertBefore(R(),c),c,void 0,e??{})}return n._$AI(r),n};/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */var tt,et;let x=class extends L{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ie(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return U}};x.finalized=!0,x._$litElement$=!0,(tt=globalThis.litElementHydrateSupport)===null||tt===void 0||tt.call(globalThis,{LitElement:x});const yt=globalThis.litElementPolyfillSupport;yt==null||yt({LitElement:x});((et=globalThis.litElementVersions)!==null&&et!==void 0?et:globalThis.litElementVersions=[]).push("3.3.3");/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const se=(r,t)=>t.kind==="method"&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(e){e.createProperty(t.key,r)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){typeof t.initializer=="function"&&(this[t.key]=t.initializer.call(this))},finisher(e){e.createProperty(t.key,r)}},re=(r,t,e)=>{t.constructor.createProperty(e,r)};function p(r){return(t,e)=>e!==void 0?re(r,t,e):se(r,t)}/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */var it;((it=window.HTMLSlotElement)===null||it===void 0?void 0:it.prototype.assignedElements)!=null;function Pt(r,t,e){const i=Array.from(r);let s;if(t==="")return s=i.filter(n=>n.kind==="file"),e?s:[s[0]];const o=t.toLowerCase().split(",").map(n=>n.split("/").map(c=>c.trim())).filter(n=>n.length===2);return s=s=i.filter(n=>{if(n.kind!=="file")return!1;const[c,a]=n.type.toLowerCase().split("/").map(d=>d.trim());for(const[d,u]of o)if(c===d&&(u==="*"||a===u))return!0;return!1}),e===!1&&(s=[s[0]]),s}function _t(r,t,e){const i=[];return Pt(r.items,t,e).forEach(s=>{const o=s.getAsFile();o!==null&&i.push(o)}),i}class J extends Event{constructor(t,e){var i,s;super(t,e),(i=this)instanceof(s=J)||Object.setPrototypeOf(i,s.prototype),this._files=e.files,this._action=e.action}get action(){return this._action}get files(){return this._files}}class ne extends HTMLElement{constructor(){super(),this._dragEnterCount=0,this._onDragEnter=this._onDragEnter.bind(this),this._onDragLeave=this._onDragLeave.bind(this),this._onDrop=this._onDrop.bind(this),this._onPaste=this._onPaste.bind(this),this.addEventListener("dragover",t=>t.preventDefault()),this.addEventListener("drop",this._onDrop),this.addEventListener("dragenter",this._onDragEnter),this.addEventListener("dragend",()=>this._reset()),this.addEventListener("dragleave",this._onDragLeave),this.addEventListener("paste",this._onPaste)}get accept(){return this.getAttribute("accept")||""}set accept(t){this.setAttribute("accept",t)}get multiple(){return this.getAttribute("multiple")}set multiple(t){this.setAttribute("multiple",t||"")}_onDragEnter(t){if(this._dragEnterCount+=1,this._dragEnterCount>1)return;if(t.dataTransfer===null)return void this.classList.add("drop-invalid");const e=Pt(t.dataTransfer.items,this.accept,this.multiple!==null);this.classList.add(!t.dataTransfer||!t.dataTransfer.items.length||e[0]!==void 0?"drop-valid":"drop-invalid")}_onDragLeave(){this._dragEnterCount-=1,this._dragEnterCount===0&&this._reset()}_onDrop(t){if(t.preventDefault(),t.dataTransfer===null)return;this._reset();const e=_t(t.dataTransfer,this.accept,this.multiple!==null);e!==void 0&&this.dispatchEvent(new J("filedrop",{action:"drop",files:e}))}_onPaste(t){if(!t.clipboardData)return;const e=_t(t.clipboardData,this.accept,this.multiple!==void 0);e!==void 0&&this.dispatchEvent(new J("filedrop",{action:"paste",files:e}))}_reset(){this._dragEnterCount=0,this.classList.remove("drop-valid"),this.classList.remove("drop-invalid")}}customElements.define("file-drop",ne);const oe=l` + + + + +`,ae=l` + + + + +`,le=l` + + + + + + + + + + + + + +`;class lt extends x{constructor(){super(...arguments),this.darkMode=!1}connectedCallback(){super.connectedCallback();const t=this.getRootNode().host.parentNode.getRootNode().host.classList,e=t.contains("prefer-dark"),i=t.contains("prefer-light");this.darkMode=e||!i&&window.matchMedia("(prefers-color-scheme: dark)").matches}render(){return l` ${this.darkMode?ae:oe}`}}lt.styles=A` + a { + width: 100px; + height: 27px; + border-radius: 4px; + overflow: hidden; + display: block; + transition: all 0.15s ease-in-out; + } + + a:hover { + filter: brightness(80%); + } + `;h([p({type:Boolean})],lt.prototype,"darkMode",void 0);window.customElements.define("plantnet-brand",lt);const wt=["image/jpg","image/jpeg","image/png"];class G extends x{constructor(){super(...arguments),this.inlineMode=!1,this.plantnetBrand=!1}__onFileDrop(t){t.files.length&&this._dispatchFiles(t.files)}__onFileUpload(t){if(t.target instanceof HTMLInputElement&&t.target.files){const e=Array.from(t.target.files).filter(i=>wt.includes(i.type));e.length&&this._dispatchFiles(e)}}_dispatchFiles(t){const e={files:t},i=new CustomEvent("imagepick",{detail:e,bubbles:!0,composed:!0,cancelable:!0});this.dispatchEvent(i)}render(){const t=`${wt.join(", ")}, .png, .jpg, .jpeg, .JPG, .JPEG`,e=this.inlineMode?"inline":"",i=this.inlineMode?l` + + `:l`Choose an image or drag it here.`;return l` + + + + + ${this.plantnetBrand?l``:""} + `}}G.styles=A` + file-drop label { + display: block; + padding: 25px; + border-radius: 4px; + outline: 2px dashed var(--ai-taxonomist-outline); + outline-offset: -2px; + transition: outline-offset 0.15s ease-in-out, background-color 0.15s linear; + cursor: pointer; + display: flex; + align-items: center; + justify-content: center; + background-color: var(--ai-taxonomist-background); + } + + file-drop span { + margin-left: 4px; + } + file-drop.inline label { + width: 70px; + height: 70px; + } + + file-drop.drop-valid label, + label:hover { + outline-offset: -15px; + background-color: var(--ai-taxonomist-background-hover); + } + + file-drop.drop-invalid label { + background-color: red; + } + + plantnet-brand { + margin-top: 6px; + display: flex; + justify-content: flex-end; + } + `;h([p({type:Boolean})],G.prototype,"inlineMode",void 0);h([p({type:Boolean})],G.prototype,"plantnetBrand",void 0);window.customElements.define("image-picker",G);class W extends x{constructor(){super(...arguments),this.images=[],this.canAddImages=!0}__onImagePick(t){const{files:e}=t.detail,i={files:e},s=new CustomEvent("addimage",{detail:i,bubbles:!0,composed:!0,cancelable:!0});this.dispatchEvent(s)}__onImageRemove(t){return()=>{const i={index:this.images.findIndex(o=>o.name===t.name)},s=new CustomEvent("removeimage",{detail:i,bubbles:!0,composed:!0,cancelable:!0});this.dispatchEvent(s)}}render(){const t=this.canAddImages?l` `:null;return l` +
+
+

Original image(s)

+
+ ${this.images.map(e=>l` +
+ + + + +
+ `)} + ${t} +
+
+ `}}W.styles=A` + .container { + display: flex; + flex-direction: row; + align-items: center; + flex-wrap: wrap; + } + + .col { + flex: 1 0 0; + max-width: 100%; + box-sizing: border-box; + flex-basis: 0; + padding-right: 0.5rem; + padding-left: 0.5rem; + } + + .blankSpaceLeft { + flex-basis: 16.66666667%; + max-width: 16.66666667%; + } + + p { + padding: 0.2rem 1rem 0.2rem 0.2rem; + } + + .images { + display: flex; + flex-wrap: wrap; + flex: 1; + } + + .imgContainer { + width: 120px; + height: 120px; + position: relative; + border-radius: 4px; + overflow: hidden; + margin-right: 6px; + margin-bottom: 6px; + z-index: 10; + transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; + transform-origin: top right; + } + .imgContainer:hover { + cursor: pointer; + transform: scale(3); + box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); + z-index: 11; + } + .imgContainer img { + object-position: center; + object-fit: cover; + height: 120px; + width: 120px; + } + .imgRemove { + background: transparent; + position: absolute; + top: 0; + right: 0; + border: none; + -webkit-appearance: none; + padding: 0; + cursor: pointer; + } + .imgRemove svg { + filter: drop-shadow(2px 2px 3px rgba(83, 85, 89, 0.7)); + transition: all 0.15s ease-in-out; + } + .imgRemove:hover svg { + filter: drop-shadow(2px 2px 3px rgba(83, 85, 89, 0.7)) brightness(80%); + } + + @media only screen and (max-width: 48em) { + p { + flex-basis: 100%; + max-width: 100%; + } + + .blankSpaceLeft { + flex-basis: 0; + max-width: 0; + } + } + `;h([p({attribute:!1})],W.prototype,"images",void 0);h([p({type:Boolean})],W.prototype,"canAddImages",void 0);window.customElements.define("image-selected",W);const Ut=(r,t=0)=>{const e=10**t;return Math.round(r*e)/e};class Mt extends x{render(){return l`
+
+
+
+
+
`}}Mt.styles=A` + :host { + } + .loader { + display: inline-block; + position: relative; + width: 80px; + height: 80px; + animation: fadeIn 2s; + } + .loader div { + position: absolute; + top: 33px; + width: 13px; + height: 13px; + border-radius: 50%; + background: var(--ai-taxonomist-accent-color); + animation-timing-function: cubic-bezier(0, 1, 1, 0); + } + .loader div:nth-child(1) { + left: 8px; + animation: loader1 0.6s infinite; + } + .loader div:nth-child(2) { + left: 8px; + animation: loader2 0.6s infinite; + } + .loader div:nth-child(3) { + left: 32px; + animation: loader2 0.6s infinite; + } + .loader div:nth-child(4) { + left: 56px; + animation: loader3 0.6s infinite; + } + @keyframes fadeIn { + from { + opacity: 0; + } + to { + opacity: 1; + } + } + @keyframes loader1 { + 0% { + transform: scale(0); + opacity: 0; + } + 100% { + transform: scale(1); + opacity: 1; + } + } + @keyframes loader3 { + 0% { + transform: scale(1); + opacity: 1; + } + 100% { + transform: scale(0); + opacity: 0; + } + } + @keyframes loader2 { + 0% { + transform: translate(0, 0); + } + 100% { + transform: translate(24px, 0); + } + } + `;window.customElements.define("ai-loader",Mt);const ce=r=>r.split("/")[2].replace("www.","");class H extends x{constructor(){super(...arguments),this.results={results:[]},this.error=null,this.loading=!1,this.plantnetBrand=!1}onAttachmentClick(t){return e=>{e.preventDefault();const i=t;this.dispatchEvent(new CustomEvent("aiTaxonomistAttachmentsClick",{detail:i,bubbles:!0,composed:!0,cancelable:!0}))}}render(){const t=document.getElementById("aitaxonomist-attachments-template"),e=this.loading?l` `:null,i=this.error?l`

${this.error}

`:null,s=8,o=this.results.results.length>s?l`

${this.results.results.length-s} more results not displayed

`:null;return l` +
+
+

Results

+ ${this.plantnetBrand?l` `:""} +
+ ${e} ${i} ${this.results.overallScore?l`

${this.results.overallScore}

`:""} +
    + ${this.results.results.slice(0,s).map(n=>l` +
  • +
    +
    ${Ut(n.score*100)}%
    +
    +
    + ${n.taxonName?l`

    + ${n.formatTaxonName?n.taxonName:l` ${n.taxonName}`} ${n.author} +

    `:""} +

    ${n.commonNames[0]}

    + ${n.additionalText?l`

    ${n.additionalText}

    `:""} + ${t?l`
    + ${t.content.cloneNode(!0)} +
    `:""} +
    +
    + ${n.family?l`${n.family}`:""} + ${n.gbifUrl?l`${le} + + + + `:null} + ${n.url?l`${ce(n.url)} + + + `:null} +
    +
    + ${n.images.map(c=>l` + + ${c.alt} + `)} +
    +
  • + `)} +
+ ${o} +
+ `}}H.styles=A` + .container { + display: flex; + flex-direction: column; + animation: fadeIn 0.5s ease-in-out; + } + + .separatorContainer { + display: flex; + align-items: center; + } + + plantnet-brand { + margin-top: -4px; + } + + .title { + flex: 1; + font-weight: normal; + display: block; + overflow: hidden; + white-space: nowrap; + margin-top: 12px; + } + + .title > span { + position: relative; + display: inline-block; + margin-left: calc(16.6667% + 0.2rem); + } + + .title > span:before, + .title > span:after { + content: ''; + position: absolute; + top: 50%; + width: 9999px; + height: 1.5px; + background: var(--ai-taxonomist-separator-border-color); + } + + .title > span:before { + right: 100%; + margin-right: 10px; + } + + .title > span:after { + left: 100%; + margin-left: 10px; + } + + ai-loader { + margin-left: calc(16.6667%); + } + + ul { + list-style: none; + padding: 0; + margin: 0; + flex: 1; + display: flex; + flex-direction: column; + } + + .result { + box-sizing: border-box; + display: flex; + flex: 1 1 auto; + flex-direction: row; + flex-wrap: wrap; + margin-right: -0.5rem; + margin-left: -0.5rem; + opacity: 0; + transform: translateY(-20px); + animation: animateIn 0.3s forwards; + animation-timing-function: cubic-bezier(0.33, 1, 0.68, 1); + transition: border-color 0.3s; + border-radius: 4px; + border-left: 5px solid transparent; + } + + .result:hover { + border-color: var(--ai-taxonomist-accent-color); + z-index: 10; + } + + .result:nth-child(1) { + animation-delay: 0.05s; + } + .result:nth-child(2) { + animation-delay: 0.1s; + } + .result:nth-child(3) { + animation-delay: 0.15s; + } + .result:nth-child(4) { + animation-delay: 0.2s; + } + .result:nth-child(5) { + animation-delay: 0.25s; + } + .result:nth-child(6) { + animation-delay: 0.3s; + } + .result:nth-child(7) { + animation-delay: 0.35s; + } + .result:nth-child(8) { + animation-delay: 0.4s; + } + .result:nth-child(9) { + animation-delay: 0.45s; + } + + .col { + flex: 1 0 0; + max-width: 100%; + box-sizing: border-box; + flex-basis: 0; + } + + .col-text { + padding-top: 1.6rem; + } + + .score { + padding-right: 0.5rem; + padding-left: 0.2rem; + flex-basis: 16.66666667%; + max-width: 16.66666667%; + margin-top: 5px; + } + + .score div { + border-radius: 30px; + border: 1.5px solid var(--ai-taxonomist-separator-border-color); + padding: 0.5rem; + text-align: center; + max-width: 4rem; + } + + .species { + flex-basis: 25%; + max-width: 25%; + padding-right: 0.5rem; + padding-left: 0.5rem; + } + .species p { + margin: 0; + } + + .speciesName { + color: var(--ai-taxonomist-accent-color); + font-style: italic; + } + .speciesName span { + font-style: normal; + } + + .family { + flex-basis: 16.66666667%; + max-width: 16.66666667%; + padding-right: 0.5rem; + padding-left: 0.5rem; + } + + .family span.familyName { + text-align: left; + font-style: italic; + background-color: var(--ai-taxonomist-separator-border-color); + border-radius: 4px; + padding: 0.2rem 0.35rem; + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + display: block; + } + + .gbif, + .url { + display: flex; + align-items: center; + width: 50px; + border-radius: 4px; + padding: 0 0.35rem; + margin-top: 4px; + background-color: var(--ai-taxonomist-separator-border-color); + gap: 2px; + transition: all 0.15s ease-in-out; + text-decoration: none; + } + + .url { + width: 100%; + } + + .url span { + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + color: var(--ai-taxonomist-accent-color); + } + + .gbif:hover, + .url:hover { + filter: brightness(80%); + } + + .gbif:hover { + filter: brightness(80%); + } + + .imgContainer { + flex-basis: 41.66666667%; + max-width: 41.66666667%; + padding-left: 1.2rem; + display: inline-flex; + justify-content: flex-start; + gap: 6px; + margin-bottom: 6px; + } + + .imgLink { + display: flex; + z-index: 9; + transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; + transform-origin: center; + border-radius: 4px; + overflow: hidden; + height: 100px; + width: 100px; + } + .imgLink:hover { + cursor: pointer; + transform: scale(3); + box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); + z-index: 10; + } + + .imgContainer img { + object-position: center; + object-fit: cover; + aspect-ratio: 1; + background: var(--ai-taxonomist-background); + color: transparent; + } + + @media only screen and (max-width: 48em) { + .col-text { + padding-top: 0; + } + + .score { + flex-basis: 18%; + max-width: 18%; + } + + .species { + flex-basis: 52%; + max-width: 52%; + } + + .family { + flex-basis: 30%; + max-width: 30%; + text-align: end; + } + .family span { + display: inline-block; + } + .family .gbif { + margin-left: auto; + } + + .imgContainer { + flex-basis: 100%; + max-width: 100%; + justify-content: flex-start; + margin-top: 12px; + margin-bottom: 24px; + } + } + + @media only screen and (max-width: 38em) { + .score { + flex-basis: 25%; + max-width: 25%; + } + + .species { + flex-basis: 75%; + max-width: 75%; + } + .family { + flex-basis: 100%; + max-width: 100%; + text-align: start; + margin-left: 25%; + margin-top: 12px; + } + .family .gbif { + margin-left: 0; + } + } + + @keyframes fadeIn { + from { + opacity: 0; + } + to { + opacity: 1; + } + } + + @keyframes animateIn { + from { + opacity: 0; + transform: translateY(-20px); + } + to { + opacity: 1; + transform: translateY(0); + } + } + `;h([p({attribute:!1})],H.prototype,"results",void 0);h([p({type:Boolean})],H.prototype,"error",void 0);h([p({type:Boolean})],H.prototype,"loading",void 0);h([p({type:Boolean})],H.prototype,"plantnetBrand",void 0);window.customElements.define("taxon-results",H);class Ht extends x{__press(t){t.preventDefault(),this.dispatchEvent(new CustomEvent("press",t))}render(){return l` + + `}}Ht.styles=A` + :host { + } + + button { + display: flex; + align-items: center; + appearance: none; + border: none; + border-radius: 4px; + background-color: var(--ai-taxonomist-separator-border-color); + padding: 0.5rem 0.7rem; + font-size: 1.1rem; + cursor: pointer; + color: inherit; + transition: all 0.15s ease-in-out; + margin-top: 2rem; + margin-left: calc(16.6667% + 0.2rem); + animation: fadeIn 0.5s; + } + + button:hover { + filter: brightness(80%); + } + + button svg { + fill: var(--ai-taxonomist-text-color); + margin-right: 0.2rem; + } + + @media only screen and (max-width: 48em) { + button { + margin-left: 0; + } + } + + @keyframes fadeIn { + from { + opacity: 0; + } + to { + opacity: 1; + } + } + `;window.customElements.define("ai-button-reset",Ht);const de=async r=>{const t=await fetch(`${r}/taxa`);return t.status===200?{species:(await t.json()).sort((i,s)=>i.name.localeCompare(s.name)),error:null}:{species:[],error:`Failed to load species list: ${t.statusText}`}};class N extends x{constructor(){super(...arguments),this.apiUrl=null,this.species=[],this.displayedSpecies=[],this.filter=null,this.error=null}connectedCallback(){super.connectedCallback(),(async()=>{if(this.apiUrl){const{species:t,error:e}=await de(this.apiUrl);this.displayedSpecies=t,this.species=t,this.error=e}})()}__onSearch(t){var e,i;const s=["name","family","authorship","genus","vernacularName"];if(this.filter=(((e=t==null?void 0:t.currentTarget)===null||e===void 0?void 0:e.value)||"").trim(),!((i=this.filter)===null||i===void 0)&&i.length){const o=this.filter.toLowerCase();this.displayedSpecies=this.species.filter(n=>{for(const c of s)if(n[c].trim().toLowerCase().includes(o))return!0;return!1})}}render(){return this.error?l`

${this.error||"Unknown error"}

`:!this.displayedSpecies.length&&!this.filter?l` `:l`

+ ${this.species.length} species${this.species.length!==this.displayedSpecies.length?l` (${this.displayedSpecies.length} displayed)`:l`.`} +

+ + `}}N.styles=A` + ai-loader { + display: flex; + justify-content: center; + } + + input { + border: none; + background-color: var(--ai-taxonomist-separator-border-color); + padding: 10px 12px; + margin: 12px 0; + color: var(--ai-taxonomist-text-color); + width: 100%; + box-sizing: border-box; + border-radius: 4px; + } + + ul { + list-style: none; + padding: 0; + margin: 0; + flex: 1; + display: flex; + flex-direction: column; + } + + a { + margin-top: 12px; + color: var(--ai-taxonomist-accent-color); + margin: 12px 0; + display: block; + border-left: 0 solid transparent; + text-decoration: none; + transition: all 0.3s; + border-radius: 4px; + } + + a:hover { + filter: brightness(80%); + padding-left: 0.5rem; + border-left: 5px solid var(--ai-taxonomist-accent-color); + border-color: var(--ai-taxonomist-accent-color); + z-index: 10; + } + + .result .bottom { + margin: 0; + display: flex; + align-items: center; + color: var(--ai-taxonomist-text-color); + } + .speciesName { + margin: 0; + font-style: italic; + } + .speciesName span { + font-style: normal; + } + .family { + text-align: left; + font-style: italic; + background-color: var(--ai-taxonomist-separator-border-color); + color: var(--ai-taxonomist-text-color); + border-radius: 4px; + margin-right: 12px; + padding: 0.2rem 0.35rem; + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + display: block; + } + `;h([p({type:String})],N.prototype,"apiUrl",void 0);h([p({attribute:!1})],N.prototype,"species",void 0);h([p({attribute:!1})],N.prototype,"displayedSpecies",void 0);h([p({attribute:!1})],N.prototype,"filter",void 0);h([p({attribute:!1})],N.prototype,"error",void 0);window.customElements.define("species-list",N);class O extends x{constructor(){super(...arguments),this.doiUrl=null,this.apiUrl=null,this.displaySpecies=!1}__toggleSpeciesList(){this.displaySpecies=!this.displaySpecies}render(){return this.doiUrl?this.displaySpecies?l` + Close species list + + `:l`Species listThis identification engine has been trained on the GBIF Occurrence Download: ${this.doiUrl}`:null}}O.styles=A` + a { + margin-top: 12px; + transition: all 0.15s ease-in-out; + color: var(--ai-taxonomist-accent-color); + font-size: 0.9rem; + margin: 12px 0; + display: block; + text-decoration: none; + } + + a:hover { + filter: brightness(80%); + } + `;h([p({type:String})],O.prototype,"doiUrl",void 0);h([p({type:String})],O.prototype,"apiUrl",void 0);h([p({type:Boolean})],O.prototype,"displaySpecies",void 0);window.customElements.define("ai-footer",O);var w;(function(r){r.PLANTNET="pn",r.C4C="c4c",r.CARPESO="carp"})(w||(w={}));const ct=()=>(navigator.language||navigator.userLanguage).substring(0,2),he=(r,t,e)=>{const i=new FormData;for(let o=0;o{const i=new FormData;i.append("info","true");for(let o=0;o{const i=new FormData;for(let o=0;o{const t=await r.json();return"error"in t?t.message:{results:t.results.map(e=>({score:e.score,taxonName:e.species.scientificNameWithoutAuthor,author:e.species.scientificNameAuthorship,family:e.species.family.scientificName,commonNames:e.species.commonNames,gbifUrl:e.gbif?`https://www.gbif.org/species/${e.gbif.id}`:null,images:e.images.map(i=>({url:i.url.m,alt:`${i.citation} - ${i.date.string}`})).slice(0,3),formatTaxonName:!0}))}},fe=async r=>{const t=await r.json();return"status"in t&&t.status==="error"?t.status:{results:t.results.map(i=>({score:i.score,taxonName:i.name,author:i.authorship,family:i.family,commonNames:[i.vernacularName],gbifUrl:`https://www.gbif.org/species/${i.gbif_id}`,images:i.images.map(s=>({url:s.url,alt:`${s.publisher?`${s.publisher} - `:""}${s.rightsHolder} - ${s.license}`})).slice(0,3),formatTaxonName:!0}))}},ge=async(r,t)=>{const e=await r.json();if("status"in e&&e.status==="error")return e.status;const{results:i}=e,s=t.replace("classify","");return{overallScore:`Valeur nutritive estimée : ${Ut(i.nutrition,2)} ufl/kg MS`,results:i.details.map(o=>({score:o.score,taxonName:o.name,author:o.authorship,family:null,gbifUrl:null,url:o.url?o.url:void 0,commonNames:[o.vernacularName],additionalText:o.nutrition?`Nutrition : ${o.nutrition} ufl/kg MS`:void 0,images:o.images.map(n=>({url:`${s}/${n.url}`,alt:`${o.name} ${s}/${n.url}`})).slice(0,3),formatTaxonName:!0}))}},ve=(r,t,e,i)=>{switch(i){default:case w.PLANTNET:return he(r,t,e);case w.C4C:return pe(r,t,e);case w.CARPESO:return ue(r,t,e)}},xe=async(r,t,e,i)=>{const[s,o]=ve(r,t,e,i);try{const n=await fetch(o.toString(),{method:"POST",body:s});if(!n.ok)return`Error: ${n.statusText}`;switch(i){default:case w.PLANTNET:return me(n);case w.C4C:return fe(n);case w.CARPESO:return ge(n,t)}}catch(n){return`Error: ${n.message}`}},$e=async(r,t)=>{if(t!==w.C4C)return null;try{const e=await fetch(`${r}/status`);return e.status===200?`https://doi.org/${(await e.json()).gbif_doi}`:null}catch{return null}};var $;(function(r){r[r.Idle=0]="Idle",r[r.Loading=1]="Loading",r[r.Loaded=2]="Loaded",r[r.Error=3]="Error"})($||($={}));const At={state:$.Idle,error:null,results:{results:[]}},Z={text:"#535559",border:"#ccc",outline:"#92b0b3",background:"#eee",backgroundHover:"#ddd"},_={text:"#ccc",border:"#666",outline:"#888",background:"#666",backgroundHover:"#999"};class b extends x{constructor(){super(...arguments),this.imageFiles=[],this.apiUrl="https://my-api.plantnet.org/v2/identify/all",this.apiKey=null,this.maxImages=5,this.removePlantNetBranding=!1,this.isPlantNetBranded=!1,this.backendFormat=w.PLANTNET,this.identify={...At},this.doiUrl=null}connectedCallback(){super.connectedCallback(),!this.removePlantNetBranding&&(this.apiUrl.includes("https://my-api.plantnet.org")||this.apiUrl.includes("https://c4c.inria.fr"))&&(this.isPlantNetBranded=!0),(async()=>this.doiUrl=await $e(this.apiUrl,this.backendFormat))()}__addImages(t){const{files:e}=t.detail;e&&(this.imageFiles=[...this.imageFiles,...Array.from(e)].slice(0,this.maxImages),this.runIdentify())}__removeImage(t){const{index:e}=t.detail;e>=0&&e${this.getInnerContent()}
`}async runIdentify(){if(this.identify.state===$.Loading)return;this.identify.error=null,this.identify.state=$.Loading,this.dispatchEvent(new CustomEvent("aiTaxonomistNewIdentification",{bubbles:!0,composed:!0,cancelable:!0}));const t=await xe(this.imageFiles,this.apiUrl,this.apiKey,this.backendFormat);typeof t=="string"?(this.identify.state=$.Error,this.identify.error=t):(this.identify.state=$.Loaded,this.identify.results=t),this.requestUpdate()}getInnerContent(){switch(this.identify.state){default:case $.Idle:return l` + + + `;case $.Loading:case $.Error:case $.Loaded:return l` + + + New identification + + `}}reset(){this.identify={...At},this.imageFiles=[],this.requestUpdate()}}b.styles=A` + :host { + display: block; + --ai-taxonomist-text-color: ${v(Z.text)}; + --ai-taxonomist-separator-border-color: ${v(Z.border)}; + --ai-taxonomist-accent-color: #8eb533; + --ai-taxonomist-outline: ${v(Z.outline)}; + --ai-taxonomist-background: ${v(Z.background)}; + --ai-taxonomist-background-hover: ${v(Z.backgroundHover)}; + color: var(--ai-taxonomist-text-color); + font-size: 1.1rem; + } + :host(.prefer-dark) { + --ai-taxonomist-text-color: ${v(_.text)}; + --ai-taxonomist-separator-border-color: ${v(_.border)}; + --ai-taxonomist-outline: ${v(_.outline)}; + --ai-taxonomist-background: ${v(_.background)}; + --ai-taxonomist-background-hover: ${v(_.backgroundHover)}; + } + + .innerContainer { + max-width: 850px; + margin: auto; + } + + button { + display: flex; + align-items: center; + appearance: none; + border: none; + border-radius: 4px; + background-color: var(--ai-taxonomist-separator-border-color); + padding: 0.5rem 0.7rem; + font-size: 1.1rem; + cursor: pointer; + color: inherit; + transition: all 0.15s ease-in-out; + margin-top: 2rem; + margin-left: calc(16.6667% + 0.2rem); + } + + @media (prefers-color-scheme: dark) { + :host(:not(.prefer-light)) { + --ai-taxonomist-text-color: ${v(_.text)}; + --ai-taxonomist-separator-border-color: ${v(_.border)}; + --ai-taxonomist-outline: ${v(_.outline)}; + --ai-taxonomist-background: ${v(_.background)}; + --ai-taxonomist-background-hover: ${v(_.backgroundHover)}; + } + } + + @media only screen and (max-width: 48em) { + button { + margin-left: 0; + } + } + `;h([p({type:Array})],b.prototype,"imageFiles",void 0);h([p({type:String})],b.prototype,"apiUrl",void 0);h([p({type:String})],b.prototype,"apiKey",void 0);h([p({type:Number})],b.prototype,"maxImages",void 0);h([p({type:Boolean})],b.prototype,"removePlantNetBranding",void 0);h([p({type:Boolean})],b.prototype,"isPlantNetBranded",void 0);h([p({type:String})],b.prototype,"backendFormat",void 0);h([p({attribute:!1})],b.prototype,"identify",void 0);h([p({attribute:!1})],b.prototype,"doiUrl",void 0);window.customElements.define("ai-taxonomist",b);const be=Zt({__name:"plantnet",setup(r){return(t,e)=>{const i=Rt("ai-taxonomist");return It(),Bt(Ft,null,{default:Vt(()=>[Ot(i,{apiKey:"2b1010E0O444tp1V0xwK6WC4"})]),_:1})}}}),Ce=Dt(be,[["__scopeId","data-v-ef64b283"]]);export{Ce as default}; diff --git a/_nuxt/CSgFPiwD.js b/_nuxt/CSgFPiwD.js new file mode 100644 index 0000000..d93be4e --- /dev/null +++ b/_nuxt/CSgFPiwD.js @@ -0,0 +1 @@ +import{_ as h,v as a,a8 as o,B as n,A as s,S as T,C as l,z as y,af as p,q as I,D as $,E as C,y as g,o as F,bG as A,bs as H,x as k,ak as _,c as S,ae as M,ad as j,d as P,bu as Z,am as q,ah as w,ai as x,ac as K,F as U,G as J,aE as Q,I as W,aK as X,a7 as v,L as Y}from"./CsYHinuP.js";import{a as f,V as L}from"./DoIRHZ99.js";import{_ as ee}from"./DkwyJ7jd.js";import{_ as te}from"./1ufk8KGl.js";import{_ as N}from"./cxFlIQmQ.js";import{g as ne,f as ae}from"./BFbS1nff.js";const se={props:{entity:Object({})}},O=e=>($("data-v-4dcc2ae3"),e=e(),C(),e),oe=O(()=>g("br",null,null,-1)),ie=O(()=>g("br",null,null,-1));function re(e,i,t,r,c,m){return a(),o(L,{class:"link",onClick:i[0]||(i[0]=d=>("navigateTo"in e?e.navigateTo:p(I))(`/routes/${t.entity.id}/`))},{default:n(()=>[s(f,{cols:"3",sm:"2"},{default:n(()=>[s(T,{class:"placeholder-icon h-100 w-100"},{default:n(()=>[l("custom:route")]),_:1})]),_:1}),s(f,{cols:"9",sm:"10"},{default:n(()=>[l(y(t.entity.name)+" ",1),oe,l(" "+y(t.entity.distance/1e3)+"km ",1),ie,l(" REGION ")]),_:1})]),_:1})}const le=h(se,[["render",re],["__scopeId","data-v-4dcc2ae3"]]),b=e=>($("data-v-059415f9"),e=e(),C(),e),ue={key:0},ce=b(()=>g("br",null,null,-1)),me=b(()=>g("br",null,null,-1)),ye=b(()=>g("br",null,null,-1)),de={key:1},_e={__name:"teaser",props:{entity:Object},setup(e){const i=t=>t?t.map(r=>r.name).join(", "):"";return F(()=>{}),(t,r)=>{const c=te,m=N;return a(),o(L,{class:"link",onClick:r[0]||(r[0]=d=>("navigateTo"in t?t.navigateTo:p(I))(`/items/${e.entity.id}/`))},{default:n(()=>[s(f,{cols:"3"},{default:n(()=>[s(A,{"aspect-ratio":"16 / 9","max-height":"150"},{default:n(()=>[e.entity.image?(a(),o(c,{key:0,"image-path":e.entity.image},null,8,["image-path"])):(a(),o(H,{key:1,src:`https://picsum.photos/640/400?a=${Math.random()}`},null,8,["src"]))]),_:1})]),_:1}),s(f,{cols:"9"},{default:n(()=>[g("span",null,y(e.entity.name),1),e.entity.amount>1?(a(),k("span",ue," x"+y(e.entity.amount),1)):_("",!0),ce,s(T,null,{default:n(()=>[l("M19.95,10.56C19.75,9.67 18.95,9 18,9H15.46C15.81,8.41 16,7.73 16,7A4,4 0 0,0 12,3A4,4 0 0,0 8,7C8,7.73 8.19,8.41 8.54,9H6C5.05,9 4.25,9.67 4.05,10.56C2.04,18.57 2,18.78 2,19A2,2 0 0,0 4,21H20A2,2 0 0,0 22,19C22,18.78 21.96,18.57 19.95,10.56M12,5A2,2 0 0,1 14,7A2,2 0 0,1 12,9A2,2 0 0,1 10,7A2,2 0 0,1 12,5M15,13H11V17H13V14H15V19H11C9.89,19 9,18.11 9,17V13C9,11.89 9.89,11 11,11H15V13Z")]),_:1}),l(" "+y(e.entity.weight*e.entity.amount)+" ",1),me,s(m,{category:e.entity.category},null,8,["category"]),ye,s(T,null,{default:n(()=>[l("M16,5V4A2,2 0 0,0 14,2H10A2,2 0 0,0 8,4V5A4,4 0 0,0 4,9V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V9A4,4 0 0,0 16,5M10,4H14V5H10V4M12,9L14,11L12,13L10,11L12,9M18,16H9V18H8V16H6V15H18V16Z")]),_:1}),e.entity&&e.entity.inventories?(a(),k("span",de," In inventories: "+y(i(e.entity.inventories)),1)):_("",!0)]),_:1})]),_:1})}}},pe=h(_e,[["__scopeId","data-v-059415f9"]]),fe=e=>($("data-v-b31188f7"),e=e(),C(),e),Ve=fe(()=>g("br",null,null,-1)),ge={__name:"teaser",props:{entity:Object},setup(e){const i=e,t=S(()=>ne(i.entity.items));return(r,c)=>{const m=N;return a(),o(L,{class:"link",onClick:c[0]||(c[0]=d=>("navigateTo"in r?r.navigateTo:p(I))(`/inventories/${e.entity.id}/`))},{default:n(()=>[s(f,{cols:"3",sm:"2"},{default:n(()=>[s(T,{class:"placeholder-icon h-100 w-100"},{default:n(()=>[l("custom:inventory")]),_:1})]),_:1}),s(f,{cols:"9",sm:"10"},{default:n(()=>[l(" Name: "+y(e.entity.name)+" ",1),Ve,(a(!0),k(M,null,j(Object.keys(p(t)),d=>(a(),o(m,{category:p(t)[d],key:d},{default:n(()=>[l(y(p(ae)(p(t)[d].weight)),1)]),_:2},1032,["category"]))),128))]),_:1})]),_:1})}}},ve=h(ge,[["__scopeId","data-v-b31188f7"]]),Te={__name:"friend-teaser",props:{entity:Object},setup(e){return(i,t)=>y(e.entity.userId_2)}},he=h(Te,[["__scopeId","data-v-c457af4a"]]),ke={props:{entity:Object({}),entityType:String}};function Ie(e,i,t,r,c,m){return a(),o(L,{class:"link",onClick:i[0]||(i[0]=d=>("navigateTo"in e?e.navigateTo:p(I))(`/${t.entityType}/${t.entity.id}/`))},{default:n(()=>[s(f,{cols:"3"},{default:n(()=>[s(A,{"aspect-ratio":"16 / 9","max-height":"150"},{default:n(()=>[s(H,{cover:"",src:"https://cdn.vuetifyjs.com/images/cards/desert.jpg"},{default:n(()=>[t.entity.enriched?(a(),o(T,{key:0},{default:n(()=>[l("M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z")]),_:1})):_("",!0)]),_:1})]),_:1})]),_:1}),s(f,{cols:"9"},{default:n(()=>[l(y(t.entity.name),1)]),_:1})]),_:1})}const Le=h(ke,[["render",Ie],["__scopeId","data-v-1d789906"]]),je=P({__name:"list",props:{entityType:{}},async setup(e){let i,t;const r=e,c=Z();if(c[r.entityType]===void 0)throw new Error(`Store for ${r.entityType} not found`);const m=c[r.entityType];[i,t]=q(()=>m.fetch()),await i,t();const d=m.entities;return(u,Ce)=>{const R=le,z=ee,B=pe,E=ve,G=he,D=Le;return a(),o(K,null,{default:n(()=>[(a(!0),k(M,null,j(p(d),V=>(a(),o(w,{key:V.id},{default:n(()=>[u.entityType=="routes"?(a(),o(R,{key:0,entity:V},null,8,["entity"])):_("",!0),u.entityType=="trips"?(a(),o(z,{key:1,entity:V},null,8,["entity"])):_("",!0),u.entityType=="items"?(a(),o(B,{key:2,entity:V},null,8,["entity"])):_("",!0),u.entityType=="inventories"?(a(),o(E,{key:3,entity:V},null,8,["entity"])):_("",!0),u.entityType=="friends"?(a(),o(G,{key:4,entity:V},null,8,["entity"])):_("",!0),u.entityType!="items"&&u.entityType!="routes"&&u.entityType!="trips"&&u.entityType!="inventories"&&u.entityType!="friends"?(a(),o(D,{key:5,entity:V,"entity-type":u.entityType},null,8,["entity","entity-type"])):_("",!0)]),_:2},1024))),128)),p(d).length==0?(a(),o(w,{key:0},{default:n(()=>[s(x,null,{default:n(()=>[l("No "+y(u.entityType)+" found",1)]),_:1})]),_:1})):_("",!0)]),_:1})}}}),$e=U({position:{type:String,required:!0},size:{type:[Number,String],default:300},modelValue:Boolean,...J(),...Q()},"VLayoutItem"),Ne=W()({name:"VLayoutItem",props:$e(),setup(e,i){let{slots:t}=i;const{layoutItemStyles:r,layoutIsReady:c}=X({id:e.name,order:S(()=>parseInt(e.order,10)),position:v(e,"position"),elementSize:v(e,"size"),layoutSize:v(e,"size"),active:v(e,"modelValue"),absolute:v(e,"absolute")});return Y(()=>{var m;return s("div",{class:["v-layout-item",e.class],style:[r.value,e.style]},[(m=t.default)==null?void 0:m.call(t)])}),c}});export{Ne as V,je as _}; diff --git a/_nuxt/Ckgx-ZkB.js b/_nuxt/Ckgx-ZkB.js new file mode 100644 index 0000000..21d4855 --- /dev/null +++ b/_nuxt/Ckgx-ZkB.js @@ -0,0 +1 @@ +import{F as O,G as Q,aF as re,bW as de,I as U,c as r,L as K,A as l,M as Z,N as le,aJ as ce,O as z,b9 as J,b5 as fe,W as ve,a3 as me,a5 as be,b6 as ye,$ as ge,aT as xe,bL as Ce,r as L,P as ke,a7 as Ve,bf as he,as as _e,bX as Ie,a_ as Pe,bY as Fe,b7 as Se,bZ as Be,bl as we,ae as M,a1 as N,aM as Te,b_ as Le,b$ as Re,c0 as Ae,aG as $e,bI as De,Q as Ee,c1 as Me,bn as Ne,au as p,bK as Oe}from"./CsYHinuP.js";import{c as Ue,m as Ke,b as te,f as We,a as je,V as ee}from"./C5_Hj3rt.js";const Ge=O({active:Boolean,disabled:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...Q(),...re({transition:{component:de}})},"VCounter"),Xe=U()({name:"VCounter",functional:!0,props:Ge(),setup(e,b){let{slots:i}=b;const P=r(()=>e.max?`${e.value} / ${e.max}`:String(e.value));return K(()=>l(ce,{transition:e.transition},{default:()=>[Z(l("div",{class:["v-counter",{"text-error":e.max&&!e.disabled&&parseFloat(e.value)>parseFloat(e.max)},e.class],style:e.style},[i.default?i.default({counter:P.value,max:e.max,value:e.value}):P.value]),[[le,e.active]])]})),{}}}),Ye=O({floating:Boolean,...Q()},"VFieldLabel"),E=U()({name:"VFieldLabel",props:Ye(),setup(e,b){let{slots:i}=b;return K(()=>l(Ue,{class:["v-field-label",{"v-field-label--floating":e.floating},e.class],style:e.style,"aria-hidden":e.floating||void 0},i)),{}}}),qe=["underlined","outlined","filled","solo","solo-inverted","solo-filled","plain"],ne=O({appendInnerIcon:z,bgColor:String,clearable:Boolean,clearIcon:{type:z,default:"$clear"},active:Boolean,centerAffix:{type:Boolean,default:void 0},color:String,baseColor:String,dirty:Boolean,disabled:{type:Boolean,default:null},error:Boolean,flat:Boolean,label:String,persistentClear:Boolean,prependInnerIcon:z,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:e=>qe.includes(e)},"onClick:clear":J(),"onClick:appendInner":J(),"onClick:prependInner":J(),...Q(),...fe(),...ve(),...me()},"VField"),ae=U()({name:"VField",inheritAttrs:!1,props:{id:String,...Ke(),...ne()},emits:{"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,b){let{attrs:i,emit:P,slots:t}=b;const{themeClasses:y}=be(e),{loaderClasses:C}=ye(e),{focusClasses:W,isFocused:R,focus:F,blur:S}=te(e),{InputIcon:B}=We(e),{roundedClasses:j}=ge(e),{rtlClasses:A}=xe(),k=r(()=>e.dirty||e.active),f=r(()=>!e.singleLine&&!!(e.label||t.label)),G=Ce(),s=r(()=>e.id||`input-${G}`),X=r(()=>`${s.value}-messages`),$=L(),w=L(),D=L(),n=r(()=>["plain","underlined"].includes(e.variant)),{backgroundColorClasses:d,backgroundColorStyles:c}=ke(Ve(e,"bgColor")),{textColorClasses:v,textColorStyles:Y}=he(r(()=>e.error||e.disabled?void 0:k.value&&R.value?e.color:e.baseColor));_e(k,a=>{if(f.value){const o=$.value.$el,m=w.value.$el;requestAnimationFrame(()=>{const g=Ie(o),u=m.getBoundingClientRect(),T=u.x-g.x,h=u.y-g.y-(g.height/2-u.height/2),_=u.width/.75,I=Math.abs(_-g.width)>1?{maxWidth:Pe(_)}:void 0,ie=getComputedStyle(o),H=getComputedStyle(m),oe=parseFloat(ie.transitionDuration)*1e3||150,se=parseFloat(H.getPropertyValue("--v-field-label-scale")),ue=H.getPropertyValue("color");o.style.visibility="visible",m.style.visibility="hidden",Fe(o,{transform:`translate(${T}px, ${h}px) scale(${se})`,color:ue,...I},{duration:oe,easing:Re,direction:a?"normal":"reverse"}).finished.then(()=>{o.style.removeProperty("visibility"),m.style.removeProperty("visibility")})})}},{flush:"post"});const V=r(()=>({isActive:k,isFocused:R,controlRef:D,blur:S,focus:F}));function q(a){a.target!==document.activeElement&&a.preventDefault()}function x(a){var o;a.key!=="Enter"&&a.key!==" "||(a.preventDefault(),a.stopPropagation(),(o=e["onClick:clear"])==null||o.call(e,new MouseEvent("click")))}return K(()=>{var T,h,_;const a=e.variant==="outlined",o=!!(t["prepend-inner"]||e.prependInnerIcon),m=!!(e.clearable||t.clear),g=!!(t["append-inner"]||e.appendInnerIcon||m),u=()=>t.label?t.label({...V.value,label:e.label,props:{for:s.value}}):e.label;return l("div",N({class:["v-field",{"v-field--active":k.value,"v-field--appended":g,"v-field--center-affix":e.centerAffix??!n.value,"v-field--disabled":e.disabled,"v-field--dirty":e.dirty,"v-field--error":e.error,"v-field--flat":e.flat,"v-field--has-background":!!e.bgColor,"v-field--persistent-clear":e.persistentClear,"v-field--prepended":o,"v-field--reverse":e.reverse,"v-field--single-line":e.singleLine,"v-field--no-label":!u(),[`v-field--variant-${e.variant}`]:!0},y.value,d.value,W.value,C.value,j.value,A.value,e.class],style:[c.value,e.style],onClick:q},i),[l("div",{class:"v-field__overlay"},null),l(Se,{name:"v-field",active:!!e.loading,color:e.error?"error":typeof e.loading=="string"?e.loading:e.color},{default:t.loader}),o&&l("div",{key:"prepend",class:"v-field__prepend-inner"},[e.prependInnerIcon&&l(B,{key:"prepend-icon",name:"prependInner"},null),(T=t["prepend-inner"])==null?void 0:T.call(t,V.value)]),l("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(e.variant)&&f.value&&l(E,{key:"floating-label",ref:w,class:[v.value],floating:!0,for:s.value,style:Y.value},{default:()=>[u()]}),l(E,{ref:$,for:s.value},{default:()=>[u()]}),(h=t.default)==null?void 0:h.call(t,{...V.value,props:{id:s.value,class:"v-field__input","aria-describedby":X.value},focus:F,blur:S})]),m&&l(Be,{key:"clear"},{default:()=>[Z(l("div",{class:"v-field__clearable",onMousedown:I=>{I.preventDefault(),I.stopPropagation()}},[l(we,{defaults:{VIcon:{icon:e.clearIcon}}},{default:()=>[t.clear?t.clear({...V.value,props:{onKeydown:x,onFocus:F,onBlur:S,onClick:e["onClick:clear"]}}):l(B,{name:"clear",onKeydown:x,onFocus:F,onBlur:S},null)]})]),[[le,e.dirty]])]}),g&&l("div",{key:"append",class:"v-field__append-inner"},[(_=t["append-inner"])==null?void 0:_.call(t,V.value),e.appendInnerIcon&&l(B,{key:"append-icon",name:"appendInner"},null)]),l("div",{class:["v-field__outline",v.value],style:Y.value},[a&&l(M,null,[l("div",{class:"v-field__outline__start"},null),f.value&&l("div",{class:"v-field__outline__notch"},[l(E,{ref:w,floating:!0,for:s.value},{default:()=>[u()]})]),l("div",{class:"v-field__outline__end"},null)]),n.value&&f.value&&l(E,{ref:w,floating:!0,for:s.value},{default:()=>[u()]})])])}),{controlRef:D}}});function ze(e){const b=Object.keys(ae.props).filter(i=>!Te(i)&&i!=="class"&&i!=="style");return Le(e,b)}const Je=["color","file","time","date","datetime-local","week","month"],Qe=O({autofocus:Boolean,counter:[Boolean,Number,String],counterValue:[Number,Function],prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,suffix:String,role:String,type:{type:String,default:"text"},modelModifiers:Object,...je(),...ne()},"VTextField"),pe=U()({name:"VTextField",directives:{Intersect:Ae},inheritAttrs:!1,props:Qe(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,b){let{attrs:i,emit:P,slots:t}=b;const y=$e(e,"modelValue"),{isFocused:C,focus:W,blur:R}=te(e),F=r(()=>typeof e.counterValue=="function"?e.counterValue(y.value):typeof e.counterValue=="number"?e.counterValue:(y.value??"").toString().length),S=r(()=>{if(i.maxlength)return i.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter}),B=r(()=>["plain","underlined"].includes(e.variant));function j(n,d){var c,v;!e.autofocus||!n||(v=(c=d[0].target)==null?void 0:c.focus)==null||v.call(c)}const A=L(),k=L(),f=L(),G=r(()=>Je.includes(e.type)||e.persistentPlaceholder||C.value||e.active);function s(){var n;f.value!==document.activeElement&&((n=f.value)==null||n.focus()),C.value||W()}function X(n){P("mousedown:control",n),n.target!==f.value&&(s(),n.preventDefault())}function $(n){s(),P("click:control",n)}function w(n){n.stopPropagation(),s(),p(()=>{y.value=null,Oe(e["onClick:clear"],n)})}function D(n){var c;const d=n.target;if(y.value=d.value,(c=e.modelModifiers)!=null&&c.trim&&["text","search","password","tel","url"].includes(e.type)){const v=[d.selectionStart,d.selectionEnd];p(()=>{d.selectionStart=v[0],d.selectionEnd=v[1]})}}return K(()=>{const n=!!(t.counter||e.counter!==!1&&e.counter!=null),d=!!(n||t.details),[c,v]=De(i),{modelValue:Y,...V}=ee.filterProps(e),q=ze(e);return l(ee,N({ref:A,modelValue:y.value,"onUpdate:modelValue":x=>y.value=x,class:["v-text-field",{"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-input--plain-underlined":B.value},e.class],style:e.style},c,V,{centerAffix:!B.value,focused:C.value}),{...t,default:x=>{let{id:a,isDisabled:o,isDirty:m,isReadonly:g,isValid:u}=x;return l(ae,N({ref:k,onMousedown:X,onClick:$,"onClick:clear":w,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"],role:e.role},q,{id:a.value,active:G.value||m.value,dirty:m.value||e.dirty,disabled:o.value,focused:C.value,error:u.value===!1}),{...t,default:T=>{let{props:{class:h,..._}}=T;const I=Z(l("input",N({ref:f,value:y.value,onInput:D,autofocus:e.autofocus,readonly:g.value,disabled:o.value,name:e.name,placeholder:e.placeholder,size:1,type:e.type,onFocus:s,onBlur:R},_,v),null),[[Ee("intersect"),{handler:j},null,{once:!0}]]);return l(M,null,[e.prefix&&l("span",{class:"v-text-field__prefix"},[l("span",{class:"v-text-field__prefix__text"},[e.prefix])]),t.default?l("div",{class:h,"data-no-activator":""},[t.default(),I]):Me(I,{class:h}),e.suffix&&l("span",{class:"v-text-field__suffix"},[l("span",{class:"v-text-field__suffix__text"},[e.suffix])])])}})},details:d?x=>{var a;return l(M,null,[(a=t.details)==null?void 0:a.call(t,x),n&&l(M,null,[l("span",null,null),l(Xe,{active:e.persistentCounter||C.value,value:F.value,max:S.value,disabled:e.disabled},t.counter)])])}:void 0})}),Ne({},A,k,f)}});export{pe as V,ne as a,ae as b,Xe as c,ze as f,Qe as m}; diff --git a/_nuxt/CsYHinuP.js b/_nuxt/CsYHinuP.js new file mode 100644 index 0000000..7264b5b --- /dev/null +++ b/_nuxt/CsYHinuP.js @@ -0,0 +1,287 @@ +const __vite__fileDeps=["./BQlgBGbc.js","./DKIU8Zgl.js","./DoIRHZ99.js","./about.BFXEF-E9.css","./D8yJ59FN.js","./BG-w5dbx.js","./CuSTAa19.js","./VTable.nqsxRZhw.css","./BXIHKiAW.js","./REcBhd0O.js","./1ufk8KGl.js","./B8xzjt0i.js","./cxFlIQmQ.js","./anyozH1k.js","./VChip.CsvObu6i.css","./BFbS1nff.js","./DROfdj8r.js","./9HoxfIWU.js","./Ckgx-ZkB.js","./C5_Hj3rt.js","./VInput.BGUNoWP8.css","./VTextField.ByfQqrr7.css","./D3VuSz5Q.js","./VSelectionControl.Q1sJbX9P.css","./VSelect.9HOUetM4.css","./B5oJa23P.js","./VDataTable.DcWPgGfz.css","./BorjDOqY.js","./form.sg9kmCvQ.css","./BJ4BBGKM.js","./CSgFPiwD.js","./DkwyJ7jd.js","./teaser.D5P3f7Ek.css","./VLayoutItem.BRx0Ybsh.css","./pKNvLgOZ.js","./BoUqoHPM.js","./CGRZ0AoM.js","./BexpS2Km.js","./VFileInput.kb4-kzuW.css","./form.DhZoUf4h.css","./DhyvG-cD.js","./index.CqpqhIG-.css","./xMlAep8h.js","./D5v69PKz.js","./Opi0a0AN.js","./Cpj98o6Y.js","./_id_.BEfn6CPH.css","./BHq4ipSb.js","./DOfdElmT.js","./settings.6Dj3k4ZZ.css","./I3SVNbCp.js","./gpxstudio.BTZow-YP.css","./CQkC9uRi.js","./plantnet.DcB7p2od.css","./Be2Je18i.js","./_id_.Cbg17HDN.css","./o8OYIcRE.js","./DHQGxp4k.js","./sWvUMHT_.js","./error-404.Cs7Z0ZwI.css","./DAPrzKN6.js","./error-500.BY691cIp.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +/** +* @vue/shared v3.4.27 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function nc(e,t){const n=new Set(e.split(","));return r=>n.has(r)}const He={},Jr=[],Yt=()=>{},C1=()=>!1,di=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),rc=e=>e.startsWith("onUpdate:"),qe=Object.assign,sc=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},k1=Object.prototype.hasOwnProperty,_e=(e,t)=>k1.call(e,t),ne=Array.isArray,Zr=e=>fi(e)==="[object Map]",yh=e=>fi(e)==="[object Set]",E1=e=>fi(e)==="[object RegExp]",oe=e=>typeof e=="function",Ne=e=>typeof e=="string",Lr=e=>typeof e=="symbol",Ve=e=>e!==null&&typeof e=="object",ic=e=>(Ve(e)||oe(e))&&oe(e.then)&&oe(e.catch),bh=Object.prototype.toString,fi=e=>bh.call(e),T1=e=>fi(e).slice(8,-1),wh=e=>fi(e)==="[object Object]",oc=e=>Ne(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Xr=nc(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ro=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},A1=/-(\w)/g,en=Ro(e=>e.replace(A1,(t,n)=>n?n.toUpperCase():"")),x1=/\B([A-Z])/g,hs=Ro(e=>e.replace(x1,"-$1").toLowerCase()),ms=Ro(e=>e.charAt(0).toUpperCase()+e.slice(1)),da=Ro(e=>e?`on${ms(e)}`:""),Zn=(e,t)=>!Object.is(e,t),Is=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},L1=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Sh=e=>{const t=Ne(e)?Number(e):NaN;return isNaN(t)?e:t};let bu;const Ch=()=>bu||(bu=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function hi(e){if(ne(e)){const t={};for(let n=0;n{if(n){const r=n.split(O1);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Cr(e){let t="";if(Ne(e))t=e;else if(ne(e))for(let n=0;nNe(e)?e:e==null?"":ne(e)||Ve(e)&&(e.toString===bh||!oe(e.toString))?JSON.stringify(e,Eh,2):String(e),Eh=(e,t)=>t&&t.__v_isRef?Eh(e,t.value):Zr(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[fa(r,i)+" =>"]=s,n),{})}:yh(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>fa(n))}:Lr(t)?fa(t):Ve(t)&&!ne(t)&&!wh(t)?String(t):t,fa=(e,t="")=>{var n;return Lr(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +* @vue/reactivity v3.4.27 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let jt;class Th{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=jt,!t&&jt&&(this.index=(jt.scopes||(jt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=jt;try{return jt=this,t()}finally{jt=n}}}on(){jt=this}off(){jt=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),er()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Yn,n=gr;try{return Yn=!0,gr=this,this._runnings++,wu(this),this.fn()}finally{_u(this),this._runnings--,gr=n,Yn=t}}stop(){this.active&&(wu(this),_u(this),this.onStop&&this.onStop(),this.active=!1)}}function j1(e){return e.value}function wu(e){e._trackId++,e._depsLength=0}function _u(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},io=new WeakMap,pr=Symbol(""),Xa=Symbol("");function wt(e,t,n){if(Yn&&gr){let r=io.get(e);r||io.set(e,r=new Map);let s=r.get(n);s||r.set(n,s=Oh(()=>r.delete(n))),Lh(gr,s)}}function Cn(e,t,n,r,s,i){const o=io.get(e);if(!o)return;let a=[];if(t==="clear")a=[...o.values()];else if(n==="length"&&ne(e)){const l=Number(r);o.forEach((u,c)=>{(c==="length"||!Lr(c)&&c>=l)&&a.push(u)})}else switch(n!==void 0&&a.push(o.get(n)),t){case"add":ne(e)?oc(n)&&a.push(o.get("length")):(a.push(o.get(pr)),Zr(e)&&a.push(o.get(Xa)));break;case"delete":ne(e)||(a.push(o.get(pr)),Zr(e)&&a.push(o.get(Xa)));break;case"set":Zr(e)&&a.push(o.get(pr));break}lc();for(const l of a)l&&Ph(l,4);cc()}function N1(e,t){const n=io.get(e);return n&&n.get(t)}const B1=nc("__proto__,__v_isRef,__isVue"),Ih=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Lr)),Su=F1();function F1(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=ae(this);for(let i=0,o=this.length;i{e[t]=function(...n){Qn(),lc();const r=ae(this)[t].apply(this,n);return cc(),er(),r}}),e}function U1(e){Lr(e)||(e=String(e));const t=ae(this);return wt(t,"has",e),t.hasOwnProperty(e)}class Rh{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?n0:Hh:i?Vh:$h).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=ne(t);if(!s){if(o&&_e(Su,n))return Reflect.get(Su,n,r);if(n==="hasOwnProperty")return U1}const a=Reflect.get(t,n,r);return(Lr(n)?Ih.has(n):B1(n))||(s||wt(t,"get",n),i)?a:Le(a)?o&&oc(n)?a:a.value:Ve(a)?s?gs(a):Be(a):a}}class Mh extends Rh{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];if(!this._isShallow){const l=rs(i);if(!oo(r)&&!rs(r)&&(i=ae(i),r=ae(r)),!ne(t)&&Le(i)&&!Le(r))return l?!1:(i.value=r,!0)}const o=ne(t)&&oc(n)?Number(n)e,$o=e=>Reflect.getPrototypeOf(e);function Ai(e,t,n=!1,r=!1){e=e.__v_raw;const s=ae(e),i=ae(t);n||(Zn(t,i)&&wt(s,"get",t),wt(s,"get",i));const{has:o}=$o(s),a=r?uc:n?mc:Ks;if(o.call(s,t))return a(e.get(t));if(o.call(s,i))return a(e.get(i));e!==s&&e.get(t)}function xi(e,t=!1){const n=this.__v_raw,r=ae(n),s=ae(e);return t||(Zn(e,s)&&wt(r,"has",e),wt(r,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function Li(e,t=!1){return e=e.__v_raw,!t&&wt(ae(e),"iterate",pr),Reflect.get(e,"size",e)}function Cu(e){e=ae(e);const t=ae(this);return $o(t).has.call(t,e)||(t.add(e),Cn(t,"add",e,e)),this}function ku(e,t){t=ae(t);const n=ae(this),{has:r,get:s}=$o(n);let i=r.call(n,e);i||(e=ae(e),i=r.call(n,e));const o=s.call(n,e);return n.set(e,t),i?Zn(t,o)&&Cn(n,"set",e,t):Cn(n,"add",e,t),this}function Eu(e){const t=ae(this),{has:n,get:r}=$o(t);let s=n.call(t,e);s||(e=ae(e),s=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return s&&Cn(t,"delete",e,void 0),i}function Tu(){const e=ae(this),t=e.size!==0,n=e.clear();return t&&Cn(e,"clear",void 0,void 0),n}function Pi(e,t){return function(r,s){const i=this,o=i.__v_raw,a=ae(o),l=t?uc:e?mc:Ks;return!e&&wt(a,"iterate",pr),o.forEach((u,c)=>r.call(s,l(u),l(c),i))}}function Oi(e,t,n){return function(...r){const s=this.__v_raw,i=ae(s),o=Zr(i),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=s[e](...r),c=n?uc:t?mc:Ks;return!t&&wt(i,"iterate",l?Xa:pr),{next(){const{value:d,done:f}=u.next();return f?{value:d,done:f}:{value:a?[c(d[0]),c(d[1])]:c(d),done:f}},[Symbol.iterator](){return this}}}}function Mn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function G1(){const e={get(i){return Ai(this,i)},get size(){return Li(this)},has:xi,add:Cu,set:ku,delete:Eu,clear:Tu,forEach:Pi(!1,!1)},t={get(i){return Ai(this,i,!1,!0)},get size(){return Li(this)},has:xi,add:Cu,set:ku,delete:Eu,clear:Tu,forEach:Pi(!1,!0)},n={get(i){return Ai(this,i,!0)},get size(){return Li(this,!0)},has(i){return xi.call(this,i,!0)},add:Mn("add"),set:Mn("set"),delete:Mn("delete"),clear:Mn("clear"),forEach:Pi(!0,!1)},r={get(i){return Ai(this,i,!0,!0)},get size(){return Li(this,!0)},has(i){return xi.call(this,i,!0)},add:Mn("add"),set:Mn("set"),delete:Mn("delete"),clear:Mn("clear"),forEach:Pi(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Oi(i,!1,!1),n[i]=Oi(i,!0,!1),t[i]=Oi(i,!1,!0),r[i]=Oi(i,!0,!0)}),[e,n,t,r]}const[Y1,J1,Z1,X1]=G1();function dc(e,t){const n=t?e?X1:Z1:e?J1:Y1;return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(_e(n,s)&&s in r?n:r,s,i)}const Q1={get:dc(!1,!1)},e0={get:dc(!1,!0)},t0={get:dc(!0,!1)};const $h=new WeakMap,Vh=new WeakMap,Hh=new WeakMap,n0=new WeakMap;function r0(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function s0(e){return e.__v_skip||!Object.isExtensible(e)?0:r0(T1(e))}function Be(e){return rs(e)?e:fc(e,!1,W1,Q1,$h)}function mi(e){return fc(e,!1,K1,e0,Vh)}function gs(e){return fc(e,!0,q1,t0,Hh)}function fc(e,t,n,r,s){if(!Ve(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=s.get(e);if(i)return i;const o=s0(e);if(o===0)return e;const a=new Proxy(e,o===2?r:n);return s.set(e,a),a}function yr(e){return rs(e)?yr(e.__v_raw):!!(e&&e.__v_isReactive)}function rs(e){return!!(e&&e.__v_isReadonly)}function oo(e){return!!(e&&e.__v_isShallow)}function Dh(e){return e?!!e.__v_raw:!1}function ae(e){const t=e&&e.__v_raw;return t?ae(t):e}function hc(e){return Object.isExtensible(e)&&_h(e,"__v_skip",!0),e}const Ks=e=>Ve(e)?Be(e):e,mc=e=>Ve(e)?gs(e):e;class jh{constructor(t,n,r,s){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ac(()=>t(this._value),()=>Rs(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const t=ae(this);return(!t._cacheable||t.effect.dirty)&&Zn(t._value,t._value=t.effect.run())&&Rs(t,4),vc(t),t.effect._dirtyLevel>=2&&Rs(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function i0(e,t,n=!1){let r,s;const i=oe(e);return i?(r=e,s=Yt):(r=e.get,s=e.set),new jh(r,s,i||!s,n)}function vc(e){var t;Yn&&gr&&(e=ae(e),Lh(gr,(t=e.dep)!=null?t:e.dep=Oh(()=>e.dep=void 0,e instanceof jh?e:void 0)))}function Rs(e,t=4,n){e=ae(e);const r=e.dep;r&&Ph(r,t)}function Le(e){return!!(e&&e.__v_isRef===!0)}function N(e){return Nh(e,!1)}function le(e){return Nh(e,!0)}function Nh(e,t){return Le(e)?e:new o0(e,t)}class o0{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ae(t),this._value=n?t:Ks(t)}get value(){return vc(this),this._value}set value(t){const n=this.__v_isShallow||oo(t)||rs(t);t=n?t:ae(t),Zn(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Ks(t),Rs(this,4))}}function Z(e){return Le(e)?e.value:e}const a0={get:(e,t,n)=>Z(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return Le(s)&&!Le(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Bh(e){return yr(e)?e:new Proxy(e,a0)}class l0{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>vc(this),()=>Rs(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function c0(e){return new l0(e)}function vi(e){const t=ne(e)?new Array(e.length):{};for(const n in e)t[n]=Fh(e,n);return t}class u0{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return N1(ae(this._object),this._key)}}class d0{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function ie(e,t,n){return Le(e)?e:oe(e)?new d0(e):Ve(e)&&arguments.length>1?Fh(e,t,n):N(e)}function Fh(e,t,n){const r=e[t];return Le(r)?r:new u0(e,t,n)}/** +* @vue/runtime-core v3.4.27 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Jn(e,t,n,r){try{return r?e(...r):e()}catch(s){ps(s,t,n)}}function Zt(e,t,n,r){if(oe(e)){const s=Jn(e,t,n,r);return s&&ic(s)&&s.catch(i=>{ps(i,t,n)}),s}if(ne(e)){const s=[];for(let i=0;i>>1,s=dt[r],i=Ys(s);ivn&&dt.splice(t,1)}function el(e){ne(e)?Qr.push(...e):(!Bn||!Bn.includes(e,e.allowRecurse?hr+1:hr))&&Qr.push(e),zh()}function Au(e,t,n=Gs?vn+1:0){for(;nYs(n)-Ys(r));if(Qr.length=0,Bn){Bn.push(...t);return}for(Bn=t,hr=0;hre.id==null?1/0:e.id,v0=(e,t)=>{const n=Ys(e)-Ys(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Wh(e){Qa=!1,Gs=!0,dt.sort(v0);try{for(vn=0;vnNe(h)?h.trim():h)),d&&(s=n.map(L1))}let a,l=r[a=da(t)]||r[a=da(en(t))];!l&&i&&(l=r[a=da(hs(t))]),l&&Zt(l,e,6,s);const u=r[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Zt(u,e,6,s)}}function qh(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let o={},a=!1;if(!oe(e)){const l=u=>{const c=qh(u,t,!0);c&&(a=!0,qe(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(Ve(e)&&r.set(e,null),null):(ne(i)?i.forEach(l=>o[l]=null):qe(o,i),Ve(e)&&r.set(e,o),o)}function Ho(e,t){return!e||!di(t)?!1:(t=t.slice(2).replace(/Once$/,""),_e(e,t[0].toLowerCase()+t.slice(1))||_e(e,hs(t))||_e(e,t))}let Ge=null,Do=null;function lo(e){const t=Ge;return Ge=e,Do=e&&e.type.__scopeId||null,t}function p0(e){Do=e}function y0(){Do=null}function Re(e,t=Ge,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Uu(-1);const i=lo(t);let o;try{o=e(...s)}finally{lo(i),r._d&&Uu(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function ha(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:o,attrs:a,emit:l,render:u,renderCache:c,props:d,data:f,setupState:h,ctx:v,inheritAttrs:m}=e,p=lo(e);let S,y;try{if(n.shapeFlag&4){const _=s||r,T=_;S=Gt(u.call(T,_,c,d,h,f,v)),y=a}else{const _=t;S=Gt(_.length>1?_(d,{attrs:a,slots:o,emit:l}):_(d,null)),y=t.props?a:w0(a)}}catch(_){Hs.length=0,ps(_,e,1),S=b(st)}let g=S;if(y&&m!==!1){const _=Object.keys(y),{shapeFlag:T}=g;_.length&&T&7&&(i&&_.some(rc)&&(y=_0(y,i)),g=Tn(g,y,!1,!0))}return n.dirs&&(g=Tn(g,null,!1,!0),g.dirs=g.dirs?g.dirs.concat(n.dirs):n.dirs),n.transition&&(g.transition=n.transition),S=g,lo(p),S}function b0(e,t=!0){let n;for(let r=0;r{let t;for(const n in e)(n==="class"||n==="style"||di(n))&&((t||(t={}))[n]=e[n]);return t},_0=(e,t)=>{const n={};for(const r in e)(!rc(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function S0(e,t,n){const{props:r,children:s,component:i}=e,{props:o,children:a,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?xu(r,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let d=0;de.__isSuspense;let tl=0;const k0={name:"Suspense",__isSuspense:!0,process(e,t,n,r,s,i,o,a,l,u){if(e==null)E0(t,n,r,s,i,o,a,l,u);else{if(i&&i.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}T0(e,t,n,r,s,o,a,l,u)}},hydrate:A0,create:_c,normalize:x0},wc=k0;function Js(e,t){const n=e.props&&e.props[t];oe(n)&&n()}function E0(e,t,n,r,s,i,o,a,l){const{p:u,o:{createElement:c}}=l,d=c("div"),f=e.suspense=_c(e,s,r,t,d,n,i,o,a,l);u(null,f.pendingBranch=e.ssContent,d,null,r,f,i,o),f.deps>0?(Js(e,"onPending"),Js(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,i,o),es(f,e.ssFallback)):f.resolve(!1,!0)}function T0(e,t,n,r,s,i,o,a,{p:l,um:u,o:{createElement:c}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const f=t.ssContent,h=t.ssFallback,{activeBranch:v,pendingBranch:m,isInFallback:p,isHydrating:S}=d;if(m)d.pendingBranch=f,cn(f,m)?(l(m,f,d.hiddenContainer,null,s,d,i,o,a),d.deps<=0?d.resolve():p&&(S||(l(v,h,n,r,s,null,i,o,a),es(d,h)))):(d.pendingId=tl++,S?(d.isHydrating=!1,d.activeBranch=m):u(m,s,d),d.deps=0,d.effects.length=0,d.hiddenContainer=c("div"),p?(l(null,f,d.hiddenContainer,null,s,d,i,o,a),d.deps<=0?d.resolve():(l(v,h,n,r,s,null,i,o,a),es(d,h))):v&&cn(f,v)?(l(v,f,n,r,s,d,i,o,a),d.resolve(!0)):(l(null,f,d.hiddenContainer,null,s,d,i,o,a),d.deps<=0&&d.resolve()));else if(v&&cn(f,v))l(v,f,n,r,s,d,i,o,a),es(d,f);else if(Js(t,"onPending"),d.pendingBranch=f,f.shapeFlag&512?d.pendingId=f.component.suspenseId:d.pendingId=tl++,l(null,f,d.hiddenContainer,null,s,d,i,o,a),d.deps<=0)d.resolve();else{const{timeout:y,pendingId:g}=d;y>0?setTimeout(()=>{d.pendingId===g&&d.fallback(h)},y):y===0&&d.fallback(h)}}function _c(e,t,n,r,s,i,o,a,l,u,c=!1){const{p:d,m:f,um:h,n:v,o:{parentNode:m,remove:p}}=u;let S;const y=L0(e);y&&t&&t.pendingBranch&&(S=t.pendingId,t.deps++);const g=e.props?Sh(e.props.timeout):void 0,_=i,T={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:s,deps:0,pendingId:tl++,timeout:typeof g=="number"?g:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(E=!1,C=!1){const{vnode:x,activeBranch:P,pendingBranch:O,pendingId:R,effects:L,parentComponent:$,container:z}=T;let Q=!1;T.isHydrating?T.isHydrating=!1:E||(Q=P&&O.transition&&O.transition.mode==="out-in",Q&&(P.transition.afterLeave=()=>{R===T.pendingId&&(f(O,z,i===_?v(P):i,0),el(L))}),P&&(m(P.el)!==T.hiddenContainer&&(i=v(P)),h(P,$,T,!0)),Q||f(O,z,i,0)),es(T,O),T.pendingBranch=null,T.isInFallback=!1;let H=T.parent,X=!1;for(;H;){if(H.pendingBranch){H.effects.push(...L),X=!0;break}H=H.parent}!X&&!Q&&el(L),T.effects=[],y&&t&&t.pendingBranch&&S===t.pendingId&&(t.deps--,t.deps===0&&!C&&t.resolve()),Js(x,"onResolve")},fallback(E){if(!T.pendingBranch)return;const{vnode:C,activeBranch:x,parentComponent:P,container:O,namespace:R}=T;Js(C,"onFallback");const L=v(x),$=()=>{T.isInFallback&&(d(null,E,O,L,P,null,R,a,l),es(T,E))},z=E.transition&&E.transition.mode==="out-in";z&&(x.transition.afterLeave=$),T.isInFallback=!0,h(x,P,null,!0),z||$()},move(E,C,x){T.activeBranch&&f(T.activeBranch,E,C,x),T.container=E},next(){return T.activeBranch&&v(T.activeBranch)},registerDep(E,C){const x=!!T.pendingBranch;x&&T.deps++;const P=E.vnode.el;E.asyncDep.catch(O=>{ps(O,E,0)}).then(O=>{if(E.isUnmounted||T.isUnmounted||T.pendingId!==E.suspenseId)return;E.asyncResolved=!0;const{vnode:R}=E;cl(E,O,!1),P&&(R.el=P);const L=!P&&E.subTree.el;C(E,R,m(P||E.subTree.el),P?null:v(E.subTree),T,o,l),L&&p(L),pc(E,R.el),x&&--T.deps===0&&T.resolve()})},unmount(E,C){T.isUnmounted=!0,T.activeBranch&&h(T.activeBranch,n,E,C),T.pendingBranch&&h(T.pendingBranch,n,E,C)}};return T}function A0(e,t,n,r,s,i,o,a,l){const u=t.suspense=_c(t,r,n,e.parentNode,document.createElement("div"),null,s,i,o,a,!0),c=l(e,u.pendingBranch=t.ssContent,n,u,i,o);return u.deps===0&&u.resolve(!1,!0),c}function x0(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Pu(r?n.default:n),e.ssFallback=r?Pu(n.fallback):b(st)}function Pu(e){let t;if(oe(e)){const n=is&&e._c;n&&(e._d=!1,ce()),e=e(),n&&(e._d=!0,t=Jt,wm())}return ne(e)&&(e=b0(e)),e=Gt(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Jh(e,t){t&&t.pendingBranch?ne(e)?t.effects.push(...e):t.effects.push(e):el(e)}function es(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;n.el=s,r&&r.subTree===n&&(r.vnode.el=s,pc(r,s))}function L0(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const P0=Symbol.for("v-scx"),O0=()=>Se(P0);function nn(e,t){return Sc(e,null,t)}const Ii={};function se(e,t,n){return Sc(e,t,n)}function Sc(e,t,{immediate:n,deep:r,flush:s,once:i,onTrack:o,onTrigger:a}=He){if(t&&i){const E=t;t=(...C)=>{E(...C),T()}}const l=Je,u=E=>r===!0?E:vr(E,r===!1?1:void 0);let c,d=!1,f=!1;if(Le(e)?(c=()=>e.value,d=oo(e)):yr(e)?(c=()=>u(e),d=!0):ne(e)?(f=!0,d=e.some(E=>yr(E)||oo(E)),c=()=>e.map(E=>{if(Le(E))return E.value;if(yr(E))return u(E);if(oe(E))return Jn(E,l,2)})):oe(e)?t?c=()=>Jn(e,l,2):c=()=>(h&&h(),Zt(e,l,3,[v])):c=Yt,t&&r){const E=c;c=()=>vr(E())}let h,v=E=>{h=g.onStop=()=>{Jn(E,l,4),h=g.onStop=void 0}},m;if(pi)if(v=Yt,t?n&&Zt(t,l,3,[c(),f?[]:void 0,v]):c(),s==="sync"){const E=O0();m=E.__watcherHandles||(E.__watcherHandles=[])}else return Yt;let p=f?new Array(e.length).fill(Ii):Ii;const S=()=>{if(!(!g.active||!g.dirty))if(t){const E=g.run();(r||d||(f?E.some((C,x)=>Zn(C,p[x])):Zn(E,p)))&&(h&&h(),Zt(t,l,3,[E,p===Ii?void 0:f&&p[0]===Ii?[]:p,v]),p=E)}else g.run()};S.allowRecurse=!!t;let y;s==="sync"?y=S:s==="post"?y=()=>rt(S,l&&l.suspense):(S.pre=!0,l&&(S.id=l.uid),y=()=>Vo(S));const g=new ac(c,Yt,y),_=Mo(),T=()=>{g.stop(),_&&sc(_.effects,g)};return t?n?S():p=g.run():s==="post"?rt(g.run.bind(g),l&&l.suspense):g.run(),m&&m.push(T),T}function I0(e,t,n){const r=this.proxy,s=Ne(e)?e.includes(".")?Zh(r,e):()=>r[e]:e.bind(r,r);let i;oe(t)?i=t:(i=t.handler,n=t);const o=Ar(this),a=Sc(s,i.bind(r),n);return o(),a}function Zh(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s{vr(r,t,n)});else if(wh(e))for(const r in e)vr(e[r],t,n);return e}function kr(e,t){if(Ge===null)return e;const n=Fo(Ge)||Ge.proxy,r=e.dirs||(e.dirs=[]);for(let s=0;s{e.isMounted=!0}),it(()=>{e.isUnmounting=!0}),e}const qt=[Function,Array],Qh={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:qt,onEnter:qt,onAfterEnter:qt,onEnterCancelled:qt,onBeforeLeave:qt,onLeave:qt,onAfterLeave:qt,onLeaveCancelled:qt,onBeforeAppear:qt,onAppear:qt,onAfterAppear:qt,onAppearCancelled:qt},R0={name:"BaseTransition",props:Qh,setup(e,{slots:t}){const n=Pr(),r=Xh();return()=>{const s=t.default&&Cc(t.default(),!0);if(!s||!s.length)return;let i=s[0];if(s.length>1){for(const f of s)if(f.type!==st){i=f;break}}const o=ae(e),{mode:a}=o;if(r.isLeaving)return ma(i);const l=Ou(i);if(!l)return ma(i);const u=Zs(l,o,r,n);ss(l,u);const c=n.subTree,d=c&&Ou(c);if(d&&d.type!==st&&!cn(l,d)){const f=Zs(d,o,r,n);if(ss(d,f),a==="out-in"&&l.type!==st)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},ma(i);a==="in-out"&&l.type!==st&&(f.delayLeave=(h,v,m)=>{const p=em(r,d);p[String(d.key)]=d,h[Fn]=()=>{v(),h[Fn]=void 0,delete u.delayedLeave},u.delayedLeave=m})}return i}}},M0=R0;function em(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Zs(e,t,n,r){const{appear:s,mode:i,persisted:o=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:d,onLeave:f,onAfterLeave:h,onLeaveCancelled:v,onBeforeAppear:m,onAppear:p,onAfterAppear:S,onAppearCancelled:y}=t,g=String(e.key),_=em(n,e),T=(x,P)=>{x&&Zt(x,r,9,P)},E=(x,P)=>{const O=P[1];T(x,P),ne(x)?x.every(R=>R.length<=1)&&O():x.length<=1&&O()},C={mode:i,persisted:o,beforeEnter(x){let P=a;if(!n.isMounted)if(s)P=m||a;else return;x[Fn]&&x[Fn](!0);const O=_[g];O&&cn(e,O)&&O.el[Fn]&&O.el[Fn](),T(P,[x])},enter(x){let P=l,O=u,R=c;if(!n.isMounted)if(s)P=p||l,O=S||u,R=y||c;else return;let L=!1;const $=x[Ri]=z=>{L||(L=!0,z?T(R,[x]):T(O,[x]),C.delayedLeave&&C.delayedLeave(),x[Ri]=void 0)};P?E(P,[x,$]):$()},leave(x,P){const O=String(e.key);if(x[Ri]&&x[Ri](!0),n.isUnmounting)return P();T(d,[x]);let R=!1;const L=x[Fn]=$=>{R||(R=!0,P(),$?T(v,[x]):T(h,[x]),x[Fn]=void 0,_[O]===e&&delete _[O])};_[O]=e,f?E(f,[x,L]):L()},clone(x){return Zs(x,t,n,r)}};return C}function ma(e){if(gi(e))return e=Tn(e),e.children=null,e}function Ou(e){if(!gi(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&oe(n.default))return n.default()}}function ss(e,t){e.shapeFlag&6&&e.component?ss(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Cc(e,t=!1,n){let r=[],s=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function Iu(e){oe(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:s=200,timeout:i,suspensible:o=!0,onError:a}=e;let l=null,u,c=0;const d=()=>(c++,l=null,f()),f=()=>{let h;return l||(h=l=t().catch(v=>{if(v=v instanceof Error?v:new Error(String(v)),a)return new Promise((m,p)=>{a(v,()=>m(d()),()=>p(v),c+1)});throw v}).then(v=>h!==l&&l?l:(v&&(v.__esModule||v[Symbol.toStringTag]==="Module")&&(v=v.default),u=v,v)))};return ht({name:"AsyncComponentWrapper",__asyncLoader:f,get __asyncResolved(){return u},setup(){const h=Je;if(u)return()=>va(u,h);const v=y=>{l=null,ps(y,h,13,!r)};if(o&&h.suspense||pi)return f().then(y=>()=>va(y,h)).catch(y=>(v(y),()=>r?b(r,{error:y}):null));const m=N(!1),p=N(),S=N(!!s);return s&&setTimeout(()=>{S.value=!1},s),i!=null&&setTimeout(()=>{if(!m.value&&!p.value){const y=new Error(`Async component timed out after ${i}ms.`);v(y),p.value=y}},i),f().then(()=>{m.value=!0,h.parent&&gi(h.parent.vnode)&&(h.parent.effect.dirty=!0,Vo(h.parent.update))}).catch(y=>{v(y),p.value=y}),()=>{if(m.value&&u)return va(u,h);if(p.value&&r)return b(r,{error:p.value});if(n&&!S.value)return b(n)}}})}function va(e,t){const{ref:n,props:r,children:s,ce:i}=t.vnode,o=b(e,r,s);return o.ref=n,o.ce=i,delete t.vnode.ce,o}const gi=e=>e.type.__isKeepAlive,$0={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Pr(),r=n.ctx;if(!r.renderer)return()=>{const y=t.default&&t.default();return y&&y.length===1?y[0]:y};const s=new Map,i=new Set;let o=null;const a=n.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:d}}}=r,f=d("div");r.activate=(y,g,_,T,E)=>{const C=y.component;u(y,g,_,0,a),l(C.vnode,y,g,_,C,a,T,y.slotScopeIds,E),rt(()=>{C.isDeactivated=!1,C.a&&Is(C.a);const x=y.props&&y.props.onVnodeMounted;x&&yt(x,C.parent,y)},a)},r.deactivate=y=>{const g=y.component;u(y,f,null,1,a),rt(()=>{g.da&&Is(g.da);const _=y.props&&y.props.onVnodeUnmounted;_&&yt(_,g.parent,y),g.isDeactivated=!0},a)};function h(y){ga(y),c(y,n,a,!0)}function v(y){s.forEach((g,_)=>{const T=ul(g.type);T&&(!y||!y(T))&&m(_)})}function m(y){const g=s.get(y);!o||!cn(g,o)?h(g):o&&ga(o),s.delete(y),i.delete(y)}se(()=>[e.include,e.exclude],([y,g])=>{y&&v(_=>xs(y,_)),g&&v(_=>!xs(g,_))},{flush:"post",deep:!0});let p=null;const S=()=>{p!=null&&s.set(p,pa(n.subTree))};return rn(S),Bo(S),it(()=>{s.forEach(y=>{const{subTree:g,suspense:_}=n,T=pa(g);if(y.type===T.type&&y.key===T.key){ga(T);const E=T.component.da;E&&rt(E,_);return}h(y)})}),()=>{if(p=null,!t.default)return null;const y=t.default(),g=y[0];if(y.length>1)return o=null,y;if(!Tr(g)||!(g.shapeFlag&4)&&!(g.shapeFlag&128))return o=null,g;let _=pa(g);const T=_.type,E=ul(br(_)?_.type.__asyncResolved||{}:T),{include:C,exclude:x,max:P}=e;if(C&&(!E||!xs(C,E))||x&&E&&xs(x,E))return o=_,g;const O=_.key==null?T:_.key,R=s.get(O);return _.el&&(_=Tn(_),g.shapeFlag&128&&(g.ssContent=_)),p=O,R?(_.el=R.el,_.component=R.component,_.transition&&ss(_,_.transition),_.shapeFlag|=512,i.delete(O),i.add(O)):(i.add(O),P&&i.size>parseInt(P,10)&&m(i.values().next().value)),_.shapeFlag|=256,o=_,Yh(g.type)?g:_}}},V0=$0;function xs(e,t){return ne(e)?e.some(n=>xs(n,t)):Ne(e)?e.split(",").includes(t):E1(e)?e.test(t):!1}function kc(e,t){tm(e,"a",t)}function Ec(e,t){tm(e,"da",t)}function tm(e,t,n=Je){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(No(t,r,n),n){let s=n.parent;for(;s&&s.parent;)gi(s.parent.vnode)&&H0(r,t,n,s),s=s.parent}}function H0(e,t,n,r){const s=No(t,e,r,!0);rm(()=>{sc(r[t],s)},n)}function ga(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function pa(e){return e.shapeFlag&128?e.ssContent:e}function No(e,t,n=Je,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;Qn();const a=Ar(n),l=Zt(t,n,e,o);return a(),er(),l});return r?s.unshift(i):s.push(i),i}}const An=e=>(t,n=Je)=>(!pi||e==="sp")&&No(e,(...r)=>t(...r),n),nm=An("bm"),rn=An("m"),D0=An("bu"),Bo=An("u"),it=An("bum"),rm=An("um"),j0=An("sp"),N0=An("rtg"),B0=An("rtc");function sm(e,t=Je){No("ec",e,t)}function Xs(e,t,n,r){let s;const i=n;if(ne(e)||Ne(e)){s=new Array(e.length);for(let o=0,a=e.length;ot(o,a,void 0,i));else{const o=Object.keys(e);s=new Array(o.length);for(let a=0,l=o.length;a{const i=r.fn(...s);return i&&(i.key=r.key),i}:r.fn)}return e}function ya(e,t,n={},r,s){if(Ge.isCE||Ge.parent&&br(Ge.parent)&&Ge.parent.isCE)return b("slot",n,r);let i=e[t];i&&i._c&&(i._d=!1),ce();const o=i&&im(i(n)),a=Me(ge,{key:n.key||o&&o.key||`_${t}`},o||[],o&&e._===1?64:-2);return a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),i&&i._c&&(i._d=!0),a}function im(e){return e.some(t=>Tr(t)?!(t.type===st||t.type===ge&&!im(t.children)):!0)?e:null}const nl=e=>e?Em(e)?Fo(e)||e.proxy:nl(e.parent):null,Ms=qe(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>nl(e.parent),$root:e=>nl(e.root),$emit:e=>e.emit,$options:e=>Tc(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Vo(e.update)}),$nextTick:e=>e.n||(e.n=Ke.bind(e.proxy)),$watch:e=>I0.bind(e)}),ba=(e,t)=>e!==He&&!e.__isScriptSetup&&_e(e,t),F0={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:i,accessCache:o,type:a,appContext:l}=e;let u;if(t[0]!=="$"){const h=o[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(ba(r,t))return o[t]=1,r[t];if(s!==He&&_e(s,t))return o[t]=2,s[t];if((u=e.propsOptions[0])&&_e(u,t))return o[t]=3,i[t];if(n!==He&&_e(n,t))return o[t]=4,n[t];rl&&(o[t]=0)}}const c=Ms[t];let d,f;if(c)return t==="$attrs"&&wt(e.attrs,"get",""),c(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==He&&_e(n,t))return o[t]=4,n[t];if(f=l.config.globalProperties,_e(f,t))return f[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return ba(s,t)?(s[t]=n,!0):r!==He&&_e(r,t)?(r[t]=n,!0):_e(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:i}},o){let a;return!!n[o]||e!==He&&_e(e,o)||ba(t,o)||(a=i[0])&&_e(a,o)||_e(r,o)||_e(Ms,o)||_e(s.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:_e(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ru(e){return ne(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function x7(e){const t=Pr();let n=e();return ll(),ic(n)&&(n=n.catch(r=>{throw Ar(t),r})),[n,()=>Ar(t)]}let rl=!0;function U0(e){const t=Tc(e),n=e.proxy,r=e.ctx;rl=!1,t.beforeCreate&&Mu(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:o,watch:a,provide:l,inject:u,created:c,beforeMount:d,mounted:f,beforeUpdate:h,updated:v,activated:m,deactivated:p,beforeDestroy:S,beforeUnmount:y,destroyed:g,unmounted:_,render:T,renderTracked:E,renderTriggered:C,errorCaptured:x,serverPrefetch:P,expose:O,inheritAttrs:R,components:L,directives:$,filters:z}=t;if(u&&z0(u,r,null),o)for(const X in o){const F=o[X];oe(F)&&(r[X]=F.bind(n))}if(s){const X=s.call(n,n);Ve(X)&&(e.data=Be(X))}if(rl=!0,i)for(const X in i){const F=i[X],Pe=oe(F)?F.bind(n,n):oe(F.get)?F.get.bind(n,n):Yt,he=!oe(F)&&oe(F.set)?F.set.bind(n):Yt,Ee=A({get:Pe,set:he});Object.defineProperty(r,X,{enumerable:!0,configurable:!0,get:()=>Ee.value,set:me=>Ee.value=me})}if(a)for(const X in a)om(a[X],r,n,X);if(l){const X=oe(l)?l.call(n):l;Reflect.ownKeys(X).forEach(F=>{Ye(F,X[F])})}c&&Mu(c,e,"c");function H(X,F){ne(F)?F.forEach(Pe=>X(Pe.bind(n))):F&&X(F.bind(n))}if(H(nm,d),H(rn,f),H(D0,h),H(Bo,v),H(kc,m),H(Ec,p),H(sm,x),H(B0,E),H(N0,C),H(it,y),H(rm,_),H(j0,P),ne(O))if(O.length){const X=e.exposed||(e.exposed={});O.forEach(F=>{Object.defineProperty(X,F,{get:()=>n[F],set:Pe=>n[F]=Pe})})}else e.exposed||(e.exposed={});T&&e.render===Yt&&(e.render=T),R!=null&&(e.inheritAttrs=R),L&&(e.components=L),$&&(e.directives=$)}function z0(e,t,n=Yt){ne(e)&&(e=sl(e));for(const r in e){const s=e[r];let i;Ve(s)?"default"in s?i=Se(s.from||r,s.default,!0):i=Se(s.from||r):i=Se(s),Le(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function Mu(e,t,n){Zt(ne(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function om(e,t,n,r){const s=r.includes(".")?Zh(n,r):()=>n[r];if(Ne(e)){const i=t[e];oe(i)&&se(s,i)}else if(oe(e))se(s,e.bind(n));else if(Ve(e))if(ne(e))e.forEach(i=>om(i,t,n,r));else{const i=oe(e.handler)?e.handler.bind(n):t[e.handler];oe(i)&&se(s,i,e)}}function Tc(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,a=i.get(t);let l;return a?l=a:!s.length&&!n&&!r?l=t:(l={},s.length&&s.forEach(u=>co(l,u,o,!0)),co(l,t,o)),Ve(t)&&i.set(t,l),l}function co(e,t,n,r=!1){const{mixins:s,extends:i}=t;i&&co(e,i,n,!0),s&&s.forEach(o=>co(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const a=W0[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const W0={data:$u,props:Vu,emits:Vu,methods:Ls,computed:Ls,beforeCreate:vt,created:vt,beforeMount:vt,mounted:vt,beforeUpdate:vt,updated:vt,beforeDestroy:vt,beforeUnmount:vt,destroyed:vt,unmounted:vt,activated:vt,deactivated:vt,errorCaptured:vt,serverPrefetch:vt,components:Ls,directives:Ls,watch:K0,provide:$u,inject:q0};function $u(e,t){return t?e?function(){return qe(oe(e)?e.call(this,this):e,oe(t)?t.call(this,this):t)}:t:e}function q0(e,t){return Ls(sl(e),sl(t))}function sl(e){if(ne(e)){const t={};for(let n=0;n1)return n&&oe(t)?t.call(r&&r.proxy):t}}function Ac(){return!!(Je||Ge||ts)}const lm={},cm=()=>Object.create(lm),um=e=>Object.getPrototypeOf(e)===lm;function J0(e,t,n,r=!1){const s={},i=cm();e.propsDefaults=Object.create(null),dm(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=r?s:mi(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function Z0(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,a=ae(s),[l]=e.propsOptions;let u=!1;if((r||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let d=0;d{l=!0;const[f,h]=fm(d,t,!0);qe(o,f),h&&a.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!l)return Ve(e)&&r.set(e,Jr),Jr;if(ne(i))for(let c=0;c-1,h[1]=m<0||v-1||_e(h,"default"))&&a.push(d)}}}const u=[o,a];return Ve(e)&&r.set(e,u),u}function Hu(e){return e[0]!=="$"&&!Xr(e)}function Du(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function ju(e,t){return Du(e)===Du(t)}function Nu(e,t){return ne(t)?t.findIndex(n=>ju(n,e)):oe(t)&&ju(t,e)?0:-1}const hm=e=>e[0]==="_"||e==="$stable",xc=e=>ne(e)?e.map(Gt):[Gt(e)],X0=(e,t,n)=>{if(t._n)return t;const r=Re((...s)=>xc(t(...s)),n);return r._c=!1,r},mm=(e,t,n)=>{const r=e._ctx;for(const s in e){if(hm(s))continue;const i=e[s];if(oe(i))t[s]=X0(s,i,r);else if(i!=null){const o=xc(i);t[s]=()=>o}}},vm=(e,t)=>{const n=xc(t);e.slots.default=()=>n},Q0=(e,t)=>{const n=e.slots=cm();if(e.vnode.shapeFlag&32){const r=t._;r?(qe(n,t),_h(n,"_",r,!0)):mm(t,n)}else t&&vm(e,t)},ep=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,o=He;if(r.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:(qe(s,t),!n&&a===1&&delete s._):(i=!t.$stable,mm(t,s)),o=t}else t&&(vm(e,t),o={default:1});if(i)for(const a in s)!hm(a)&&o[a]==null&&delete s[a]};function uo(e,t,n,r,s=!1){if(ne(e)){e.forEach((f,h)=>uo(f,t&&(ne(t)?t[h]:t),n,r,s));return}if(br(r)&&!s)return;const i=r.shapeFlag&4?Fo(r.component)||r.component.proxy:r.el,o=s?null:i,{i:a,r:l}=e,u=t&&t.r,c=a.refs===He?a.refs={}:a.refs,d=a.setupState;if(u!=null&&u!==l&&(Ne(u)?(c[u]=null,_e(d,u)&&(d[u]=null)):Le(u)&&(u.value=null)),oe(l))Jn(l,a,12,[o,c]);else{const f=Ne(l),h=Le(l);if(f||h){const v=()=>{if(e.f){const m=f?_e(d,l)?d[l]:c[l]:l.value;s?ne(m)&&sc(m,i):ne(m)?m.includes(i)||m.push(i):f?(c[l]=[i],_e(d,l)&&(d[l]=c[l])):(l.value=[i],e.k&&(c[e.k]=l.value))}else f?(c[l]=o,_e(d,l)&&(d[l]=o)):h&&(l.value=o,e.k&&(c[e.k]=o))};o?(v.id=-1,rt(v,n)):v()}}}let $n=!1;const tp=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",np=e=>e.namespaceURI.includes("MathML"),Mi=e=>{if(tp(e))return"svg";if(np(e))return"mathml"},$i=e=>e.nodeType===8;function rp(e){const{mt:t,p:n,o:{patchProp:r,createText:s,nextSibling:i,parentNode:o,remove:a,insert:l,createComment:u}}=e,c=(g,_)=>{if(!_.hasChildNodes()){n(null,g,_),ao(),_._vnode=g;return}$n=!1,d(_.firstChild,g,null,null,null),ao(),_._vnode=g,$n&&console.error("Hydration completed but contains mismatches.")},d=(g,_,T,E,C,x=!1)=>{x=x||!!_.dynamicChildren;const P=$i(g)&&g.data==="[",O=()=>m(g,_,T,E,C,P),{type:R,ref:L,shapeFlag:$,patchFlag:z}=_;let Q=g.nodeType;_.el=g,z===-2&&(x=!1,_.dynamicChildren=null);let H=null;switch(R){case Er:Q!==3?_.children===""?(l(_.el=s(""),o(g),g),H=g):H=O():(g.data!==_.children&&($n=!0,g.data=_.children),H=i(g));break;case st:y(g)?(H=i(g),S(_.el=g.content.firstChild,g,T)):Q!==8||P?H=O():H=i(g);break;case Vs:if(P&&(g=i(g),Q=g.nodeType),Q===1||Q===3){H=g;const X=!_.children.length;for(let F=0;F<_.staticCount;F++)X&&(_.children+=H.nodeType===1?H.outerHTML:H.data),F===_.staticCount-1&&(_.anchor=H),H=i(H);return P?i(H):H}else O();break;case ge:P?H=v(g,_,T,E,C,x):H=O();break;default:if($&1)(Q!==1||_.type.toLowerCase()!==g.tagName.toLowerCase())&&!y(g)?H=O():H=f(g,_,T,E,C,x);else if($&6){_.slotScopeIds=C;const X=o(g);if(P?H=p(g):$i(g)&&g.data==="teleport start"?H=p(g,g.data,"teleport end"):H=i(g),t(_,X,null,T,E,Mi(X),x),br(_)){let F;P?(F=b(ge),F.anchor=H?H.previousSibling:X.lastChild):F=g.nodeType===3?Ds(""):b("div"),F.el=g,_.component.subTree=F}}else $&64?Q!==8?H=O():H=_.type.hydrate(g,_,T,E,C,x,e,h):$&128&&(H=_.type.hydrate(g,_,T,E,Mi(o(g)),C,x,e,d))}return L!=null&&uo(L,null,E,_),H},f=(g,_,T,E,C,x)=>{x=x||!!_.dynamicChildren;const{type:P,props:O,patchFlag:R,shapeFlag:L,dirs:$,transition:z}=_,Q=P==="input"||P==="option";if(Q||R!==-1){$&&mn(_,null,T,"created");let H=!1;if(y(g)){H=pm(E,z)&&T&&T.vnode.props&&T.vnode.props.appear;const F=g.content.firstChild;H&&z.beforeEnter(F),S(F,g,T),_.el=g=F}if(L&16&&!(O&&(O.innerHTML||O.textContent))){let F=h(g.firstChild,_,g,T,E,C,x);for(;F;){$n=!0;const Pe=F;F=F.nextSibling,a(Pe)}}else L&8&&g.textContent!==_.children&&($n=!0,g.textContent=_.children);if(O)if(Q||!x||R&48)for(const F in O)(Q&&(F.endsWith("value")||F==="indeterminate")||di(F)&&!Xr(F)||F[0]===".")&&r(g,F,null,O[F],void 0,void 0,T);else O.onClick&&r(g,"onClick",null,O.onClick,void 0,void 0,T);let X;(X=O&&O.onVnodeBeforeMount)&&yt(X,T,_),$&&mn(_,null,T,"beforeMount"),((X=O&&O.onVnodeMounted)||$||H)&&Jh(()=>{X&&yt(X,T,_),H&&z.enter(g),$&&mn(_,null,T,"mounted")},E)}return g.nextSibling},h=(g,_,T,E,C,x,P)=>{P=P||!!_.dynamicChildren;const O=_.children,R=O.length;for(let L=0;L{const{slotScopeIds:P}=_;P&&(C=C?C.concat(P):P);const O=o(g),R=h(i(g),_,O,T,E,C,x);return R&&$i(R)&&R.data==="]"?i(_.anchor=R):($n=!0,l(_.anchor=u("]"),O,R),R)},m=(g,_,T,E,C,x)=>{if($n=!0,_.el=null,x){const R=p(g);for(;;){const L=i(g);if(L&&L!==R)a(L);else break}}const P=i(g),O=o(g);return a(g),n(null,_,O,P,T,E,Mi(O),C),P},p=(g,_="[",T="]")=>{let E=0;for(;g;)if(g=i(g),g&&$i(g)&&(g.data===_&&E++,g.data===T)){if(E===0)return i(g);E--}return g},S=(g,_,T)=>{const E=_.parentNode;E&&E.replaceChild(g,_);let C=T;for(;C;)C.vnode.el===_&&(C.vnode.el=C.subTree.el=g),C=C.parent},y=g=>g.nodeType===1&&g.tagName.toLowerCase()==="template";return[c,d]}const rt=Jh;function sp(e){return gm(e)}function ip(e){return gm(e,rp)}function gm(e,t){const n=Ch();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:o,createText:a,createComment:l,setText:u,setElementText:c,parentNode:d,nextSibling:f,setScopeId:h=Yt,insertStaticContent:v}=e,m=(w,k,I,D=null,V=null,U=null,G=void 0,B=null,q=!!k.dynamicChildren)=>{if(w===k)return;w&&!cn(w,k)&&(D=M(w),me(w,V,U,!0),w=null),k.patchFlag===-2&&(q=!1,k.dynamicChildren=null);const{type:j,ref:J,shapeFlag:re}=k;switch(j){case Er:p(w,k,I,D);break;case st:S(w,k,I,D);break;case Vs:w==null&&y(k,I,D,G);break;case ge:L(w,k,I,D,V,U,G,B,q);break;default:re&1?T(w,k,I,D,V,U,G,B,q):re&6?$(w,k,I,D,V,U,G,B,q):(re&64||re&128)&&j.process(w,k,I,D,V,U,G,B,q,ee)}J!=null&&V&&uo(J,w&&w.ref,U,k||w,!k)},p=(w,k,I,D)=>{if(w==null)r(k.el=a(k.children),I,D);else{const V=k.el=w.el;k.children!==w.children&&u(V,k.children)}},S=(w,k,I,D)=>{w==null?r(k.el=l(k.children||""),I,D):k.el=w.el},y=(w,k,I,D)=>{[w.el,w.anchor]=v(w.children,k,I,D,w.el,w.anchor)},g=({el:w,anchor:k},I,D)=>{let V;for(;w&&w!==k;)V=f(w),r(w,I,D),w=V;r(k,I,D)},_=({el:w,anchor:k})=>{let I;for(;w&&w!==k;)I=f(w),s(w),w=I;s(k)},T=(w,k,I,D,V,U,G,B,q)=>{k.type==="svg"?G="svg":k.type==="math"&&(G="mathml"),w==null?E(k,I,D,V,U,G,B,q):P(w,k,V,U,G,B,q)},E=(w,k,I,D,V,U,G,B)=>{let q,j;const{props:J,shapeFlag:re,transition:te,dirs:de}=w;if(q=w.el=o(w.type,U,J&&J.is,J),re&8?c(q,w.children):re&16&&x(w.children,q,null,D,V,wa(w,U),G,B),de&&mn(w,null,D,"created"),C(q,w,w.scopeId,G,D),J){for(const Oe in J)Oe!=="value"&&!Xr(Oe)&&i(q,Oe,null,J[Oe],U,w.children,D,V,Ce);"value"in J&&i(q,"value",null,J.value,U),(j=J.onVnodeBeforeMount)&&yt(j,D,w)}de&&mn(w,null,D,"beforeMount");const pe=pm(V,te);pe&&te.beforeEnter(q),r(q,k,I),((j=J&&J.onVnodeMounted)||pe||de)&&rt(()=>{j&&yt(j,D,w),pe&&te.enter(q),de&&mn(w,null,D,"mounted")},V)},C=(w,k,I,D,V)=>{if(I&&h(w,I),D)for(let U=0;U{for(let j=q;j{const B=k.el=w.el;let{patchFlag:q,dynamicChildren:j,dirs:J}=k;q|=w.patchFlag&16;const re=w.props||He,te=k.props||He;let de;if(I&&ir(I,!1),(de=te.onVnodeBeforeUpdate)&&yt(de,I,k,w),J&&mn(k,w,I,"beforeUpdate"),I&&ir(I,!0),j?O(w.dynamicChildren,j,B,I,D,wa(k,V),U):G||F(w,k,B,null,I,D,wa(k,V),U,!1),q>0){if(q&16)R(B,k,re,te,I,D,V);else if(q&2&&re.class!==te.class&&i(B,"class",null,te.class,V),q&4&&i(B,"style",re.style,te.style,V),q&8){const pe=k.dynamicProps;for(let Oe=0;Oe{de&&yt(de,I,k,w),J&&mn(k,w,I,"updated")},D)},O=(w,k,I,D,V,U,G)=>{for(let B=0;B{if(I!==D){if(I!==He)for(const B in I)!Xr(B)&&!(B in D)&&i(w,B,I[B],null,G,k.children,V,U,Ce);for(const B in D){if(Xr(B))continue;const q=D[B],j=I[B];q!==j&&B!=="value"&&i(w,B,j,q,G,k.children,V,U,Ce)}"value"in D&&i(w,"value",I.value,D.value,G)}},L=(w,k,I,D,V,U,G,B,q)=>{const j=k.el=w?w.el:a(""),J=k.anchor=w?w.anchor:a("");let{patchFlag:re,dynamicChildren:te,slotScopeIds:de}=k;de&&(B=B?B.concat(de):de),w==null?(r(j,I,D),r(J,I,D),x(k.children||[],I,J,V,U,G,B,q)):re>0&&re&64&&te&&w.dynamicChildren?(O(w.dynamicChildren,te,I,V,U,G,B),(k.key!=null||V&&k===V.subTree)&&Lc(w,k,!0)):F(w,k,I,J,V,U,G,B,q)},$=(w,k,I,D,V,U,G,B,q)=>{k.slotScopeIds=B,w==null?k.shapeFlag&512?V.ctx.activate(k,I,D,G,q):z(k,I,D,V,U,G,q):Q(w,k,q)},z=(w,k,I,D,V,U,G)=>{const B=w.component=mp(w,D,V);if(gi(w)&&(B.ctx.renderer=ee),vp(B),B.asyncDep){if(V&&V.registerDep(B,H),!w.el){const q=B.subTree=b(st);S(null,q,k,I)}}else H(B,w,k,I,V,U,G)},Q=(w,k,I)=>{const D=k.component=w.component;if(S0(w,k,I))if(D.asyncDep&&!D.asyncResolved){X(D,k,I);return}else D.next=k,m0(D.update),D.effect.dirty=!0,D.update();else k.el=w.el,D.vnode=k},H=(w,k,I,D,V,U,G)=>{const B=()=>{if(w.isMounted){let{next:J,bu:re,u:te,parent:de,vnode:pe}=w;{const Hr=ym(w);if(Hr){J&&(J.el=pe.el,X(w,J,G)),Hr.asyncDep.then(()=>{w.isUnmounted||B()});return}}let Oe=J,je;ir(w,!1),J?(J.el=pe.el,X(w,J,G)):J=pe,re&&Is(re),(je=J.props&&J.props.onVnodeBeforeUpdate)&&yt(je,de,J,pe),ir(w,!0);const Xe=ha(w),sn=w.subTree;w.subTree=Xe,m(sn,Xe,d(sn.el),M(sn),w,V,U),J.el=Xe.el,Oe===null&&pc(w,Xe.el),te&&rt(te,V),(je=J.props&&J.props.onVnodeUpdated)&&rt(()=>yt(je,de,J,pe),V)}else{let J;const{el:re,props:te}=k,{bm:de,m:pe,parent:Oe}=w,je=br(k);if(ir(w,!1),de&&Is(de),!je&&(J=te&&te.onVnodeBeforeMount)&&yt(J,Oe,k),ir(w,!0),re&&De){const Xe=()=>{w.subTree=ha(w),De(re,w.subTree,w,V,null)};je?k.type.__asyncLoader().then(()=>!w.isUnmounted&&Xe()):Xe()}else{const Xe=w.subTree=ha(w);m(null,Xe,I,D,w,V,U),k.el=Xe.el}if(pe&&rt(pe,V),!je&&(J=te&&te.onVnodeMounted)){const Xe=k;rt(()=>yt(J,Oe,Xe),V)}(k.shapeFlag&256||Oe&&br(Oe.vnode)&&Oe.vnode.shapeFlag&256)&&w.a&&rt(w.a,V),w.isMounted=!0,k=I=D=null}},q=w.effect=new ac(B,Yt,()=>Vo(j),w.scope),j=w.update=()=>{q.dirty&&q.run()};j.id=w.uid,ir(w,!0),j()},X=(w,k,I)=>{k.component=w;const D=w.vnode.props;w.vnode=k,w.next=null,Z0(w,k.props,D,I),ep(w,k.children,I),Qn(),Au(w),er()},F=(w,k,I,D,V,U,G,B,q=!1)=>{const j=w&&w.children,J=w?w.shapeFlag:0,re=k.children,{patchFlag:te,shapeFlag:de}=k;if(te>0){if(te&128){he(j,re,I,D,V,U,G,B,q);return}else if(te&256){Pe(j,re,I,D,V,U,G,B,q);return}}de&8?(J&16&&Ce(j,V,U),re!==j&&c(I,re)):J&16?de&16?he(j,re,I,D,V,U,G,B,q):Ce(j,V,U,!0):(J&8&&c(I,""),de&16&&x(re,I,D,V,U,G,B,q))},Pe=(w,k,I,D,V,U,G,B,q)=>{w=w||Jr,k=k||Jr;const j=w.length,J=k.length,re=Math.min(j,J);let te;for(te=0;teJ?Ce(w,V,U,!0,!1,re):x(k,I,D,V,U,G,B,q,re)},he=(w,k,I,D,V,U,G,B,q)=>{let j=0;const J=k.length;let re=w.length-1,te=J-1;for(;j<=re&&j<=te;){const de=w[j],pe=k[j]=q?Un(k[j]):Gt(k[j]);if(cn(de,pe))m(de,pe,I,null,V,U,G,B,q);else break;j++}for(;j<=re&&j<=te;){const de=w[re],pe=k[te]=q?Un(k[te]):Gt(k[te]);if(cn(de,pe))m(de,pe,I,null,V,U,G,B,q);else break;re--,te--}if(j>re){if(j<=te){const de=te+1,pe=dete)for(;j<=re;)me(w[j],V,U,!0),j++;else{const de=j,pe=j,Oe=new Map;for(j=pe;j<=te;j++){const _t=k[j]=q?Un(k[j]):Gt(k[j]);_t.key!=null&&Oe.set(_t.key,j)}let je,Xe=0;const sn=te-pe+1;let Hr=!1,gu=0;const _s=new Array(sn);for(j=0;j=sn){me(_t,V,U,!0);continue}let fn;if(_t.key!=null)fn=Oe.get(_t.key);else for(je=pe;je<=te;je++)if(_s[je-pe]===0&&cn(_t,k[je])){fn=je;break}fn===void 0?me(_t,V,U,!0):(_s[fn-pe]=j+1,fn>=gu?gu=fn:Hr=!0,m(_t,k[fn],I,null,V,U,G,B,q),Xe++)}const pu=Hr?op(_s):Jr;for(je=pu.length-1,j=sn-1;j>=0;j--){const _t=pe+j,fn=k[_t],yu=_t+1{const{el:U,type:G,transition:B,children:q,shapeFlag:j}=w;if(j&6){Ee(w.component.subTree,k,I,D);return}if(j&128){w.suspense.move(k,I,D);return}if(j&64){G.move(w,k,I,ee);return}if(G===ge){r(U,k,I);for(let re=0;reB.enter(U),V);else{const{leave:re,delayLeave:te,afterLeave:de}=B,pe=()=>r(U,k,I),Oe=()=>{re(U,()=>{pe(),de&&de()})};te?te(U,pe,Oe):Oe()}else r(U,k,I)},me=(w,k,I,D=!1,V=!1)=>{const{type:U,props:G,ref:B,children:q,dynamicChildren:j,shapeFlag:J,patchFlag:re,dirs:te}=w;if(B!=null&&uo(B,null,I,w,!0),J&256){k.ctx.deactivate(w);return}const de=J&1&&te,pe=!br(w);let Oe;if(pe&&(Oe=G&&G.onVnodeBeforeUnmount)&&yt(Oe,k,w),J&6)we(w.component,I,D);else{if(J&128){w.suspense.unmount(I,D);return}de&&mn(w,null,k,"beforeUnmount"),J&64?w.type.remove(w,k,I,V,ee,D):j&&(U!==ge||re>0&&re&64)?Ce(j,k,I,!1,!0):(U===ge&&re&384||!V&&J&16)&&Ce(q,k,I),D&&ct(w)}(pe&&(Oe=G&&G.onVnodeUnmounted)||de)&&rt(()=>{Oe&&yt(Oe,k,w),de&&mn(w,null,k,"unmounted")},I)},ct=w=>{const{type:k,el:I,anchor:D,transition:V}=w;if(k===ge){tt(I,D);return}if(k===Vs){_(w);return}const U=()=>{s(I),V&&!V.persisted&&V.afterLeave&&V.afterLeave()};if(w.shapeFlag&1&&V&&!V.persisted){const{leave:G,delayLeave:B}=V,q=()=>G(I,U);B?B(w.el,U,q):q()}else U()},tt=(w,k)=>{let I;for(;w!==k;)I=f(w),s(w),w=I;s(k)},we=(w,k,I)=>{const{bum:D,scope:V,update:U,subTree:G,um:B}=w;D&&Is(D),V.stop(),U&&(U.active=!1,me(G,w,k,I)),B&&rt(B,k),rt(()=>{w.isUnmounted=!0},k),k&&k.pendingBranch&&!k.isUnmounted&&w.asyncDep&&!w.asyncResolved&&w.suspenseId===k.pendingId&&(k.deps--,k.deps===0&&k.resolve())},Ce=(w,k,I,D=!1,V=!1,U=0)=>{for(let G=U;Gw.shapeFlag&6?M(w.component.subTree):w.shapeFlag&128?w.suspense.next():f(w.anchor||w.el);let W=!1;const K=(w,k,I)=>{w==null?k._vnode&&me(k._vnode,null,null,!0):m(k._vnode||null,w,k,null,null,null,I),W||(W=!0,Au(),ao(),W=!1),k._vnode=w},ee={p:m,um:me,m:Ee,r:ct,mt:z,mc:x,pc:F,pbc:O,n:M,o:e};let Ae,De;return t&&([Ae,De]=t(ee)),{render:K,hydrate:Ae,createApp:Y0(K,Ae)}}function wa({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function ir({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function pm(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Lc(e,t,n=!1){const r=e.children,s=t.children;if(ne(r)&&ne(s))for(let i=0;i>1,e[n[a]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function ym(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ym(t)}const ap=e=>e.__isTeleport,$s=e=>e&&(e.disabled||e.disabled===""),Bu=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Fu=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,ol=(e,t)=>{const n=e&&e.to;return Ne(n)?t?t(n):null:n},lp={name:"Teleport",__isTeleport:!0,process(e,t,n,r,s,i,o,a,l,u){const{mc:c,pc:d,pbc:f,o:{insert:h,querySelector:v,createText:m,createComment:p}}=u,S=$s(t.props);let{shapeFlag:y,children:g,dynamicChildren:_}=t;if(e==null){const T=t.el=m(""),E=t.anchor=m("");h(T,n,r),h(E,n,r);const C=t.target=ol(t.props,v),x=t.targetAnchor=m("");C&&(h(x,C),o==="svg"||Bu(C)?o="svg":(o==="mathml"||Fu(C))&&(o="mathml"));const P=(O,R)=>{y&16&&c(g,O,R,s,i,o,a,l)};S?P(n,E):C&&P(C,x)}else{t.el=e.el;const T=t.anchor=e.anchor,E=t.target=e.target,C=t.targetAnchor=e.targetAnchor,x=$s(e.props),P=x?n:E,O=x?T:C;if(o==="svg"||Bu(E)?o="svg":(o==="mathml"||Fu(E))&&(o="mathml"),_?(f(e.dynamicChildren,_,P,s,i,o,a),Lc(e,t,!0)):l||d(e,t,P,O,s,i,o,a,!1),S)x?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Vi(t,n,T,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const R=t.target=ol(t.props,v);R&&Vi(t,R,null,u,0)}else x&&Vi(t,E,C,u,1)}bm(t)},remove(e,t,n,r,{um:s,o:{remove:i}},o){const{shapeFlag:a,children:l,anchor:u,targetAnchor:c,target:d,props:f}=e;if(d&&i(c),o&&i(u),a&16){const h=o||!$s(f);for(let v=0;v0?Jt||Jr:null,wm(),is>0&&Jt&&Jt.push(e),e}function Qe(e,t,n,r,s,i){return _m(tn(e,t,n,r,s,i,!0))}function Me(e,t,n,r,s){return _m(b(e,t,n,r,s,!0))}function Tr(e){return e?e.__v_isVNode===!0:!1}function cn(e,t){return e.type===t.type&&e.key===t.key}const Sm=({key:e})=>e??null,Ji=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ne(e)||Le(e)||oe(e)?{i:Ge,r:e,k:t,f:!!n}:e:null);function tn(e,t=null,n=null,r=0,s=null,i=e===ge?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Sm(t),ref:t&&Ji(t),scopeId:Do,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Ge};return a?(Pc(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=Ne(n)?8:16),is>0&&!o&&Jt&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Jt.push(l),l}const b=dp;function dp(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===Kh)&&(e=st),Tr(e)){const a=Tn(e,t,!0);return n&&Pc(a,n),is>0&&!i&&Jt&&(a.shapeFlag&6?Jt[Jt.indexOf(e)]=a:Jt.push(a)),a.patchFlag|=-2,a}if(bp(e)&&(e=e.__vccOpts),t){t=Cm(t);let{class:a,style:l}=t;a&&!Ne(a)&&(t.class=Cr(a)),Ve(l)&&(Dh(l)&&!ne(l)&&(l=qe({},l)),t.style=hi(l))}const o=Ne(e)?1:Yh(e)?128:ap(e)?64:Ve(e)?4:oe(e)?2:0;return tn(e,t,n,r,s,o,i,!0)}function Cm(e){return e?Dh(e)||um(e)?qe({},e):e:null}function Tn(e,t,n=!1,r=!1){const{props:s,ref:i,patchFlag:o,children:a,transition:l}=e,u=t?Te(s||{},t):s,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Sm(u),ref:t&&t.ref?n&&i?ne(i)?i.concat(Ji(t)):[i,Ji(t)]:Ji(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ge?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Tn(e.ssContent),ssFallback:e.ssFallback&&Tn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&(c.transition=l.clone(c)),c}function Ds(e=" ",t=0){return b(Er,null,e,t)}function km(e,t){const n=b(Vs,null,e);return n.staticCount=t,n}function bt(e="",t=!1){return t?(ce(),Me(st,null,e)):b(st,null,e)}function Gt(e){return e==null||typeof e=="boolean"?b(st):ne(e)?b(ge,null,e.slice()):typeof e=="object"?Un(e):b(Er,null,String(e))}function Un(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Tn(e)}function Pc(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ne(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Pc(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!um(t)?t._ctx=Ge:s===3&&Ge&&(Ge.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else oe(t)?(t={default:t,_ctx:Ge},n=32):(t=String(t),r&64?(n=16,t=[Ds(t)]):n=8);e.children=t,e.shapeFlag|=n}function Te(...e){const t={};for(let n=0;nJe||Ge;let fo,al;{const e=Ch(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};fo=t("__VUE_INSTANCE_SETTERS__",n=>Je=n),al=t("__VUE_SSR_SETTERS__",n=>pi=n)}const Ar=e=>{const t=Je;return fo(e),e.scope.on(),()=>{e.scope.off(),fo(t)}},ll=()=>{Je&&Je.scope.off(),fo(null)};function Em(e){return e.vnode.shapeFlag&4}let pi=!1;function vp(e,t=!1){t&&al(t);const{props:n,children:r}=e.vnode,s=Em(e);J0(e,n,s,t),Q0(e,r);const i=s?gp(e,t):void 0;return t&&al(!1),i}function gp(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,F0);const{setup:r}=n;if(r){const s=e.setupContext=r.length>1?yp(e):null,i=Ar(e);Qn();const o=Jn(r,e,0,[e.props,s]);if(er(),i(),ic(o)){if(o.then(ll,ll),t)return o.then(a=>{cl(e,a,t)}).catch(a=>{ps(a,e,0)});e.asyncDep=o}else cl(e,o,t)}else Tm(e,t)}function cl(e,t,n){oe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ve(t)&&(e.setupState=Bh(t)),Tm(e,n)}let zu;function Tm(e,t,n){const r=e.type;if(!e.render){if(!t&&zu&&!r.render){const s=r.template||Tc(e).template;if(s){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:l}=r,u=qe(qe({isCustomElement:i,delimiters:a},o),l);r.render=zu(s,u)}}e.render=r.render||Yt}{const s=Ar(e);Qn();try{U0(e)}finally{er(),s()}}}const pp={get(e,t){return wt(e,"get",""),e[t]}};function yp(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,pp),slots:e.slots,emit:e.emit,expose:t}}function Fo(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Bh(hc(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ms)return Ms[n](e)},has(t,n){return n in t||n in Ms}}))}function ul(e,t=!0){return oe(e)?e.displayName||e.name:e.name||t&&e.__name}function bp(e){return oe(e)&&"__vccOpts"in e}const A=(e,t)=>i0(e,t,pi);function gt(e,t,n){const r=arguments.length;return r===2?Ve(t)&&!ne(t)?Tr(t)?b(e,null,[t]):b(e,t):b(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Tr(n)&&(n=[n]),b(e,t,n))}const Am="3.4.27";/** +* @vue/runtime-dom v3.4.27 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const wp="http://www.w3.org/2000/svg",_p="http://www.w3.org/1998/Math/MathML",zn=typeof document<"u"?document:null,Wu=zn&&zn.createElement("template"),Sp={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?zn.createElementNS(wp,e):t==="mathml"?zn.createElementNS(_p,e):zn.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>zn.createTextNode(e),createComment:e=>zn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>zn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){const o=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{Wu.innerHTML=r==="svg"?`${e}`:r==="mathml"?`${e}`:e;const a=Wu.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Vn="transition",Ss="animation",os=Symbol("_vtc"),un=(e,{slots:t})=>gt(M0,Lm(e),t);un.displayName="Transition";const xm={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Cp=un.props=qe({},Qh,xm),or=(e,t=[])=>{ne(e)?e.forEach(n=>n(...t)):e&&e(...t)},qu=e=>e?ne(e)?e.some(t=>t.length>1):e.length>1:!1;function Lm(e){const t={};for(const L in e)L in xm||(t[L]=e[L]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:u=o,appearToClass:c=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,v=kp(s),m=v&&v[0],p=v&&v[1],{onBeforeEnter:S,onEnter:y,onEnterCancelled:g,onLeave:_,onLeaveCancelled:T,onBeforeAppear:E=S,onAppear:C=y,onAppearCancelled:x=g}=t,P=(L,$,z)=>{Dn(L,$?c:a),Dn(L,$?u:o),z&&z()},O=(L,$)=>{L._isLeaving=!1,Dn(L,d),Dn(L,h),Dn(L,f),$&&$()},R=L=>($,z)=>{const Q=L?C:y,H=()=>P($,L,z);or(Q,[$,H]),Ku(()=>{Dn($,L?l:i),bn($,L?c:a),qu(Q)||Gu($,r,m,H)})};return qe(t,{onBeforeEnter(L){or(S,[L]),bn(L,i),bn(L,o)},onBeforeAppear(L){or(E,[L]),bn(L,l),bn(L,u)},onEnter:R(!1),onAppear:R(!0),onLeave(L,$){L._isLeaving=!0;const z=()=>O(L,$);bn(L,d),bn(L,f),Om(),Ku(()=>{L._isLeaving&&(Dn(L,d),bn(L,h),qu(_)||Gu(L,r,p,z))}),or(_,[L,z])},onEnterCancelled(L){P(L,!1),or(g,[L])},onAppearCancelled(L){P(L,!0),or(x,[L])},onLeaveCancelled(L){O(L),or(T,[L])}})}function kp(e){if(e==null)return null;if(Ve(e))return[_a(e.enter),_a(e.leave)];{const t=_a(e);return[t,t]}}function _a(e){return Sh(e)}function bn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[os]||(e[os]=new Set)).add(t)}function Dn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[os];n&&(n.delete(t),n.size||(e[os]=void 0))}function Ku(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Ep=0;function Gu(e,t,n,r){const s=e._endId=++Ep,i=()=>{s===e._endId&&r()};if(n)return setTimeout(i,n);const{type:o,timeout:a,propCount:l}=Pm(e,t);if(!o)return r();const u=o+"end";let c=0;const d=()=>{e.removeEventListener(u,f),i()},f=h=>{h.target===e&&++c>=l&&d()};setTimeout(()=>{c(n[v]||"").split(", "),s=r(`${Vn}Delay`),i=r(`${Vn}Duration`),o=Yu(s,i),a=r(`${Ss}Delay`),l=r(`${Ss}Duration`),u=Yu(a,l);let c=null,d=0,f=0;t===Vn?o>0&&(c=Vn,d=o,f=i.length):t===Ss?u>0&&(c=Ss,d=u,f=l.length):(d=Math.max(o,u),c=d>0?o>u?Vn:Ss:null,f=c?c===Vn?i.length:l.length:0);const h=c===Vn&&/\b(transform|all)(,|$)/.test(r(`${Vn}Property`).toString());return{type:c,timeout:d,propCount:f,hasTransform:h}}function Yu(e,t){for(;e.lengthJu(n)+Ju(e[r])))}function Ju(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Om(){return document.body.offsetHeight}function Tp(e,t,n){const r=e[os];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ho=Symbol("_vod"),Im=Symbol("_vsh"),Oc={beforeMount(e,{value:t},{transition:n}){e[ho]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Cs(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Cs(e,!0),r.enter(e)):r.leave(e,()=>{Cs(e,!1)}):Cs(e,t))},beforeUnmount(e,{value:t}){Cs(e,t)}};function Cs(e,t){e.style.display=t?e[ho]:"none",e[Im]=!t}const Ap=Symbol(""),xp=/(^|;)\s*display\s*:/;function Lp(e,t,n){const r=e.style,s=Ne(n);let i=!1;if(n&&!s){if(t)if(Ne(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&Zi(r,a,"")}else for(const o in t)n[o]==null&&Zi(r,o,"");for(const o in n)o==="display"&&(i=!0),Zi(r,o,n[o])}else if(s){if(t!==n){const o=r[Ap];o&&(n+=";"+o),r.cssText=n,i=xp.test(n)}}else t&&e.removeAttribute("style");ho in e&&(e[ho]=i?r.display:"",e[Im]&&(r.display="none"))}const Zu=/\s*!important$/;function Zi(e,t,n){if(ne(n))n.forEach(r=>Zi(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Pp(e,t);Zu.test(n)?e.setProperty(hs(r),n.replace(Zu,""),"important"):e[r]=n}}const Xu=["Webkit","Moz","ms"],Sa={};function Pp(e,t){const n=Sa[t];if(n)return n;let r=en(t);if(r!=="filter"&&r in e)return Sa[t]=r;r=ms(r);for(let s=0;sCa||(Hp.then(()=>Ca=0),Ca=Date.now());function jp(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Zt(Np(r,n.value),t,5,[r])};return n.value=e,n.attached=Dp(),n}function Np(e,t){if(ne(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const nd=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Bp=(e,t,n,r,s,i,o,a,l)=>{const u=s==="svg";t==="class"?Tp(e,r,u):t==="style"?Lp(e,n,r):di(t)?rc(t)||$p(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Fp(e,t,r,u))?Ip(e,t,r,i,o,a,l):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Op(e,t,r,u))};function Fp(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&nd(t)&&oe(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return nd(t)&&Ne(n)?!1:t in e}const Rm=new WeakMap,Mm=new WeakMap,mo=Symbol("_moveCb"),rd=Symbol("_enterCb"),$m={name:"TransitionGroup",props:qe({},Cp,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Pr(),r=Xh();let s,i;return Bo(()=>{if(!s.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!Kp(s[0].el,n.vnode.el,o))return;s.forEach(zp),s.forEach(Wp);const a=s.filter(qp);Om(),a.forEach(l=>{const u=l.el,c=u.style;bn(u,o),c.transform=c.webkitTransform=c.transitionDuration="";const d=u[mo]=f=>{f&&f.target!==u||(!f||/transform$/.test(f.propertyName))&&(u.removeEventListener("transitionend",d),u[mo]=null,Dn(u,o))};u.addEventListener("transitionend",d)})}),()=>{const o=ae(e),a=Lm(o);let l=o.tag||ge;if(s=[],i)for(let u=0;udelete e.mode;$m.props;const Uo=$m;function zp(e){const t=e.el;t[mo]&&t[mo](),t[rd]&&t[rd]()}function Wp(e){Mm.set(e,e.el.getBoundingClientRect())}function qp(e){const t=Rm.get(e),n=Mm.get(e),r=t.left-n.left,s=t.top-n.top;if(r||s){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${s}px)`,i.transitionDuration="0s",e}}function Kp(e,t,n){const r=e.cloneNode(),s=e[os];s&&s.forEach(a=>{a.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:o}=Pm(r);return i.removeChild(r),o}const Gp=["ctrl","shift","alt","meta"],Yp={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Gp.some(n=>e[`${n}Key`]&&!t.includes(n))},L7=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(s,...i)=>{for(let o=0;o{Hm().render(...e)},Zp=(...e)=>{const t=Hm().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=jm(r);if(!s)return;const i=t._component;!oe(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.innerHTML="";const o=n(s,!1,Dm(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t},Xp=(...e)=>{const t=Jp().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=jm(r);if(s)return n(s,!0,Dm(s))},t};function Dm(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function jm(e){return Ne(e)?document.querySelector(e):e}const Qp=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,ey=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,ty=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function ny(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){ry(e);return}return t}function ry(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Qs(e,t={}){if(typeof e!="string")return e;const n=e.trim();if(e[0]==='"'&&e.endsWith('"')&&!e.includes("\\"))return n.slice(1,-1);if(n.length<=9){const r=n.toLowerCase();if(r==="true")return!0;if(r==="false")return!1;if(r==="undefined")return;if(r==="null")return null;if(r==="nan")return Number.NaN;if(r==="infinity")return Number.POSITIVE_INFINITY;if(r==="-infinity")return Number.NEGATIVE_INFINITY}if(!ty.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Qp.test(e)||ey.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,ny)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const sy=/#/g,iy=/&/g,oy=/\//g,ay=/=/g,Ic=/\+/g,ly=/%5e/gi,cy=/%60/gi,uy=/%7c/gi,dy=/%20/gi;function fy(e){return encodeURI(""+e).replace(uy,"|")}function dl(e){return fy(typeof e=="string"?e:JSON.stringify(e)).replace(Ic,"%2B").replace(dy,"+").replace(sy,"%23").replace(iy,"%26").replace(cy,"`").replace(ly,"^").replace(oy,"%2F")}function ka(e){return dl(e).replace(ay,"%3D")}function vo(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function hy(e){return vo(e.replace(Ic," "))}function my(e){return vo(e.replace(Ic," "))}function vy(e=""){const t={};e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const s=hy(r[1]);if(s==="__proto__"||s==="constructor")continue;const i=my(r[2]||"");t[s]===void 0?t[s]=i:Array.isArray(t[s])?t[s].push(i):t[s]=[t[s],i]}return t}function gy(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${ka(e)}=${dl(n)}`).join("&"):`${ka(e)}=${dl(t)}`:ka(e)}function py(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>gy(t,e[t])).filter(Boolean).join("&")}const yy=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,by=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,wy=/^([/\\]\s*){2,}[^/\\]/,_y=/^[\s\0]*(blob|data|javascript|vbscript):$/i,Sy=/\/$|\/\?|\/#/,Cy=/^\.?\//;function Or(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?yy.test(e):by.test(e)||(t.acceptRelative?wy.test(e):!1)}function ky(e){return!!e&&_y.test(e)}function fl(e="",t){return t?Sy.test(e):e.endsWith("/")}function Rc(e="",t){if(!t)return(fl(e)?e.slice(0,-1):e)||"/";if(!fl(e,!0))return e||"/";let n=e,r="";const s=e.indexOf("#");s>=0&&(n=e.slice(0,s),r=e.slice(s));const[i,...o]=n.split("?");return((i.endsWith("/")?i.slice(0,-1):i)||"/")+(o.length>0?`?${o.join("?")}`:"")+r}function hl(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(fl(e,!0))return e||"/";let n=e,r="";const s=e.indexOf("#");if(s>=0&&(n=e.slice(0,s),r=e.slice(s),!n))return r;const[i,...o]=n.split("?");return i+"/"+(o.length>0?`?${o.join("?")}`:"")+r}function Ey(e=""){return e.startsWith("/")}function id(e=""){return Ey(e)?e:"/"+e}function Ty(e,t){if(Bm(t)||Or(e))return e;const n=Rc(t);return e.startsWith(n)?e:Mc(n,e)}function od(e,t){if(Bm(t))return e;const n=Rc(t);if(!e.startsWith(n))return e;const r=e.slice(n.length);return r[0]==="/"?r:"/"+r}function Nm(e,t){const n=zo(e),r={...vy(n.search),...t};return n.search=py(r),Ly(n)}function Bm(e){return!e||e==="/"}function Ay(e){return e&&e!=="/"}function Mc(e,...t){let n=e||"";for(const r of t.filter(s=>Ay(s)))if(n){const s=r.replace(Cy,"");n=hl(n)+s}else n=r;return n}function Fm(...e){var o,a,l,u;const t=/\/(?!\/)/,n=e.filter(Boolean),r=[];let s=0;for(const c of n)if(!(!c||c==="/")){for(const[d,f]of c.split(t).entries())if(!(!f||f===".")){if(f===".."){if(r.length===1&&Or(r[0]))continue;r.pop(),s--;continue}if(d===1&&((o=r[r.length-1])!=null&&o.endsWith(":/"))){r[r.length-1]+="/"+f;continue}r.push(f),s++}}let i=r.join("/");return s>=0?(a=n[0])!=null&&a.startsWith("/")&&!i.startsWith("/")?i="/"+i:(l=n[0])!=null&&l.startsWith("./")&&!i.startsWith("./")&&(i="./"+i):i="../".repeat(-1*s)+i,(u=n[n.length-1])!=null&&u.endsWith("/")&&!i.endsWith("/")&&(i+="/"),i}function xy(e,t,n={}){return n.trailingSlash||(e=hl(e),t=hl(t)),n.leadingSlash||(e=id(e),t=id(t)),n.encoding||(e=vo(e),t=vo(t)),e===t}const Um=Symbol.for("ufo:protocolRelative");function zo(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,d,f=""]=n;return{protocol:d.toLowerCase(),pathname:f,href:d+f,auth:"",host:"",search:"",hash:""}}if(!Or(e,{acceptRelative:!0}))return t?zo(t+e):ad(e);const[,r="",s,i=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,o="",a=""]=i.match(/([^#/?]*)(.*)?/)||[],{pathname:l,search:u,hash:c}=ad(a.replace(/\/(?=[A-Za-z]:)/,""));return{protocol:r.toLowerCase(),auth:s?s.slice(0,Math.max(0,s.length-1)):"",host:o,pathname:l,search:u,hash:c,[Um]:!r}}function ad(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function Ly(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",s=e.auth?e.auth+"@":"",i=e.host||"";return(e.protocol||e[Um]?(e.protocol||"")+"//":"")+s+i+t+n+r}class Py extends Error{constructor(t,n){super(t,n),this.name="FetchError",n!=null&&n.cause&&!this.cause&&(this.cause=n.cause)}}function Oy(e){var l,u,c,d,f;const t=((l=e.error)==null?void 0:l.message)||((u=e.error)==null?void 0:u.toString())||"",n=((c=e.request)==null?void 0:c.method)||((d=e.options)==null?void 0:d.method)||"GET",r=((f=e.request)==null?void 0:f.url)||String(e.request)||"/",s=`[${n}] ${JSON.stringify(r)}`,i=e.response?`${e.response.status} ${e.response.statusText}`:"",o=`${s}: ${i}${t?` ${t}`:""}`,a=new Py(o,e.error?{cause:e.error}:void 0);for(const h of["request","options","response"])Object.defineProperty(a,h,{get(){return e[h]}});for(const[h,v]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,h,{get(){return e.response&&e.response[v]}});return a}const Iy=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function ld(e="GET"){return Iy.has(e.toUpperCase())}function Ry(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const My=new Set(["image/svg","application/xml","application/xhtml","application/html"]),$y=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Vy(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return $y.test(t)?"json":My.has(t)||t.startsWith("text/")?"text":"blob"}function Hy(e,t,n=globalThis.Headers){const r={...t,...e};if(t!=null&&t.params&&(e!=null&&e.params)&&(r.params={...t==null?void 0:t.params,...e==null?void 0:e.params}),t!=null&&t.query&&(e!=null&&e.query)&&(r.query={...t==null?void 0:t.query,...e==null?void 0:e.query}),t!=null&&t.headers&&(e!=null&&e.headers)){r.headers=new n((t==null?void 0:t.headers)||{});for(const[s,i]of new n((e==null?void 0:e.headers)||{}))r.headers.set(s,i)}return r}const Dy=new Set([408,409,425,429,500,502,503,504]),jy=new Set([101,204,205,304]);function zm(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function s(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let c;typeof a.options.retry=="number"?c=a.options.retry:c=ld(a.options.method)?0:1;const d=a.response&&a.response.status||500;if(c>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(d):Dy.has(d))){const f=a.options.retryDelay||0;return f>0&&await new Promise(h=>setTimeout(h,f)),i(a.request,{...a.options,retry:c-1})}}const u=Oy(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,i),u}const i=async function(l,u={}){var h;const c={request:l,options:Hy(u,e.defaults,n),response:void 0,error:void 0};c.options.method=(h=c.options.method)==null?void 0:h.toUpperCase(),c.options.onRequest&&await c.options.onRequest(c),typeof c.request=="string"&&(c.options.baseURL&&(c.request=Ty(c.request,c.options.baseURL)),(c.options.query||c.options.params)&&(c.request=Nm(c.request,{...c.options.params,...c.options.query}))),c.options.body&&ld(c.options.method)&&(Ry(c.options.body)?(c.options.body=typeof c.options.body=="string"?c.options.body:JSON.stringify(c.options.body),c.options.headers=new n(c.options.headers||{}),c.options.headers.has("content-type")||c.options.headers.set("content-type","application/json"),c.options.headers.has("accept")||c.options.headers.set("accept","application/json")):("pipeTo"in c.options.body&&typeof c.options.body.pipeTo=="function"||typeof c.options.body.pipe=="function")&&("duplex"in c.options||(c.options.duplex="half")));let d;if(!c.options.signal&&c.options.timeout){const v=new r;d=setTimeout(()=>v.abort(),c.options.timeout),c.options.signal=v.signal}try{c.response=await t(c.request,c.options)}catch(v){return c.error=v,c.options.onRequestError&&await c.options.onRequestError(c),await s(c)}finally{d&&clearTimeout(d)}if(c.response.body&&!jy.has(c.response.status)&&c.options.method!=="HEAD"){const v=(c.options.parseResponse?"json":c.options.responseType)||Vy(c.response.headers.get("content-type")||"");switch(v){case"json":{const m=await c.response.text(),p=c.options.parseResponse||Qs;c.response._data=p(m);break}case"stream":{c.response._data=c.response.body;break}default:c.response._data=await c.response[v]()}}return c.options.onResponse&&await c.options.onResponse(c),!c.options.ignoreResponseError&&c.response.status>=400&&c.response.status<600?(c.options.onResponseError&&await c.options.onResponseError(c),await s(c)):c.response},o=async function(l,u){return(await i(l,u))._data};return o.raw=i,o.native=(...a)=>t(...a),o.create=(a={})=>zm({...e,defaults:{...e.defaults,...a}}),o}const $c=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),Ny=$c.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),By=$c.Headers,Fy=$c.AbortController,Uy=zm({fetch:Ny,Headers:By,AbortController:Fy}),zy=Uy,Wy=()=>{var e;return((e=window==null?void 0:window.__NUXT__)==null?void 0:e.config)||{}},go=Wy().app,qy=()=>go.baseURL,Ky=()=>go.buildAssetsDir,Vc=(...e)=>Fm(Wm(),Ky(),...e),Wm=(...e)=>{const t=go.cdnURL||go.baseURL;return e.length?Fm(t,...e):t};globalThis.__buildAssetsURL=Vc,globalThis.__publicAssetsURL=Wm;globalThis.$fetch||(globalThis.$fetch=zy.create({baseURL:qy()}));function ml(e,t={},n){for(const r in e){const s=e[r],i=n?`${n}:${r}`:r;typeof s=="object"&&s!==null?ml(s,t,i):typeof s=="function"&&(t[i]=s)}return t}const Gy={run:e=>e()},Yy=()=>Gy,qm=typeof console.createTask<"u"?console.createTask:Yy;function Jy(e,t){const n=t.shift(),r=qm(n);return e.reduce((s,i)=>s.then(()=>r.run(()=>i(...t))),Promise.resolve())}function Zy(e,t){const n=t.shift(),r=qm(n);return Promise.all(e.map(s=>r.run(()=>s(...t))))}function Ea(e,t){for(const n of[...e])n(t)}class Xy{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const s=t;let i;for(;this._deprecatedHooks[t];)i=this._deprecatedHooks[t],t=i.to;if(i&&!r.allowDeprecated){let o=i.message;o||(o=`${s} hook has been deprecated`+(i.to?`, please use ${i.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(o)||(console.warn(o),this._deprecatedMessages.add(o))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,s=(...i)=>(typeof r=="function"&&r(),r=void 0,s=void 0,n(...i));return r=this.hook(t,s),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const s of r)this.hook(t,s)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=ml(t),r=Object.keys(n).map(s=>this.hook(s,n[s]));return()=>{for(const s of r.splice(0,r.length))s()}}removeHooks(t){const n=ml(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(Jy,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(Zy,t,...n)}callHookWith(t,n,...r){const s=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&Ea(this._before,s);const i=t(n in this._hooks?[...this._hooks[n]]:[],r);return i instanceof Promise?i.finally(()=>{this._after&&s&&Ea(this._after,s)}):(this._after&&s&&Ea(this._after,s),i)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function Km(){return new Xy}function Qy(e={}){let t,n=!1;const r=o=>{if(t&&t!==o)throw new Error("Context conflict")};let s;if(e.asyncContext){const o=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;o?s=new o:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const i=()=>{if(s&&t===void 0){const o=s.getStore();if(o!==void 0)return o}return t};return{use:()=>{const o=i();if(o===void 0)throw new Error("Context is not available");return o},tryUse:()=>i(),set:(o,a)=>{a||r(o),t=o,n=!0},unset:()=>{t=void 0,n=!1},call:(o,a)=>{r(o),t=o;try{return s?s.run(o,a):a()}finally{n||(t=void 0)}},async callAsync(o,a){t=o;const l=()=>{t=o},u=()=>t===o?l:void 0;vl.add(u);try{const c=s?s.run(o,a):a();return n||(t=void 0),await c}finally{vl.delete(u)}}}}function eb(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=Qy({...e,...r})),t[n],t[n]}}}const po=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},cd="__unctx__",tb=po[cd]||(po[cd]=eb()),nb=(e,t={})=>tb.get(e,t),ud="__unctx_async_handlers__",vl=po[ud]||(po[ud]=new Set);function kn(e){const t=[];for(const s of vl){const i=s();i&&t.push(i)}const n=()=>{for(const s of t)s()};let r=e();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(s=>{throw n(),s})),[r,n]}const Gm=nb("nuxt-app",{asyncContext:!1}),rb="__nuxt_plugin";function sb(e){let t=0;const n={_scope:vs(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.11.2"},get vue(){return n.vueApp.version}},payload:Be({data:{},state:{},once:new Set,_errors:{},...window.__NUXT__??{}}),static:{data:{}},runWithContext:s=>n._scope.run(()=>ab(n,s)),isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let s=!1;return()=>{if(!s&&(s=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:{},_payloadRevivers:{},...e};n.hooks=Km(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(s,i)=>{const o="$"+s;Hi(n,o,i),Hi(n.vueApp.config.globalProperties,o,i)},Hi(n.vueApp,"$nuxt",n),Hi(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener("nuxt.preloadError",i=>{n.callHook("app:chunkError",{error:i.payload})}),window.useNuxtApp=window.useNuxtApp||Ue;const s=n.hook("app:error",(...i)=>{console.error("[nuxt] error caught during app initialization",...i)});n.hook("app:mounted",s)}const r=n.payload.config;return n.provide("config",r),n}async function ib(e,t){if(t.hooks&&e.hooks.addHooks(t.hooks),typeof t=="function"){const{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n=="object")for(const r in n)e.provide(r,n[r])}}async function ob(e,t){const n=[],r=[],s=[],i=[];let o=0;async function a(l){var c;const u=((c=l.dependsOn)==null?void 0:c.filter(d=>t.some(f=>f._name===d)&&!n.includes(d)))??[];if(u.length>0)r.push([new Set(u),l]);else{const d=ib(e,l).then(async()=>{l._name&&(n.push(l._name),await Promise.all(r.map(async([f,h])=>{f.has(l._name)&&(f.delete(l._name),f.size===0&&(o++,await a(h)))})))});l.parallel?s.push(d.catch(f=>i.push(f))):await d}}for(const l of t)await a(l);if(await Promise.all(s),o)for(let l=0;l{}),e,{[rb]:!0,_name:t})}function ab(e,t,n){const r=()=>t();return Gm.set(e),e.vueApp.runWithContext(r)}function lb(){var t;let e;return Ac()&&(e=(t=Pr())==null?void 0:t.appContext.app.$nuxt),e=e||Gm.tryUse(),e||null}function Ue(){const e=lb();if(!e)throw new Error("[nuxt] instance unavailable");return e}function Wo(e){return Ue().$config}function Hi(e,t,n){Object.defineProperty(e,t,{get:()=>n})}const Di=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function cb(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");const n={},s=(t||{}).decode||fb;let i=0;for(;i{t+=s};return{toString(){return t},getContext(){return n},dispatch(s){return e.replacer&&(s=e.replacer(s)),this[s===null?"null":typeof s](s)},object(s){if(s&&typeof s.toJSON=="function")return this.object(s.toJSON());const i=Object.prototype.toString.call(s);let o="";const a=i.length;a<10?o="unknown:["+i+"]":o=i.slice(8,a-1),o=o.toLowerCase();let l=null;if((l=n.get(s))===void 0)n.set(s,n.size);else return this.dispatch("[CIRCULAR:"+l+"]");if(typeof Buffer<"u"&&Buffer.isBuffer&&Buffer.isBuffer(s))return r("buffer:"),r(s.toString("utf8"));if(o!=="object"&&o!=="function"&&o!=="asyncfunction")this[o]?this[o](s):e.ignoreUnknown||this.unkown(s,o);else{let u=Object.keys(s);e.unorderedObjects&&(u=u.sort());let c=[];e.respectType!==!1&&!md(s)&&(c=mb),e.excludeKeys&&(u=u.filter(f=>!e.excludeKeys(f)),c=c.filter(f=>!e.excludeKeys(f))),r("object:"+(u.length+c.length)+":");const d=f=>{this.dispatch(f),r(":"),e.excludeValues||this.dispatch(s[f]),r(",")};for(const f of u)d(f);for(const f of c)d(f)}},array(s,i){if(i=i===void 0?e.unorderedArrays!==!1:i,r("array:"+s.length+":"),!i||s.length<=1){for(const l of s)this.dispatch(l);return}const o=new Map,a=s.map(l=>{const u=Ym(e);u.dispatch(l);for(const[c,d]of u.getContext())o.set(c,d);return u.toString()});return n=o,a.sort(),this.array(a,!1)},date(s){return r("date:"+s.toJSON())},symbol(s){return r("symbol:"+s.toString())},unkown(s,i){if(r(i),!!s&&(r(":"),s&&typeof s.entries=="function"))return this.array(Array.from(s.entries()),!0)},error(s){return r("error:"+s.toString())},boolean(s){return r("bool:"+s)},string(s){r("string:"+s.length+":"),r(s)},function(s){r("fn:"),md(s)?this.dispatch("[native]"):this.dispatch(s.toString()),e.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(s.name)),e.respectFunctionProperties&&this.object(s)},number(s){return r("number:"+s)},xml(s){return r("xml:"+s.toString())},null(){return r("Null")},undefined(){return r("Undefined")},regexp(s){return r("regex:"+s.toString())},uint8array(s){return r("uint8array:"),this.dispatch(Array.prototype.slice.call(s))},uint8clampedarray(s){return r("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(s))},int8array(s){return r("int8array:"),this.dispatch(Array.prototype.slice.call(s))},uint16array(s){return r("uint16array:"),this.dispatch(Array.prototype.slice.call(s))},int16array(s){return r("int16array:"),this.dispatch(Array.prototype.slice.call(s))},uint32array(s){return r("uint32array:"),this.dispatch(Array.prototype.slice.call(s))},int32array(s){return r("int32array:"),this.dispatch(Array.prototype.slice.call(s))},float32array(s){return r("float32array:"),this.dispatch(Array.prototype.slice.call(s))},float64array(s){return r("float64array:"),this.dispatch(Array.prototype.slice.call(s))},arraybuffer(s){return r("arraybuffer:"),this.dispatch(new Uint8Array(s))},url(s){return r("url:"+s.toString())},map(s){r("map:");const i=[...s];return this.array(i,e.unorderedSets!==!1)},set(s){r("set:");const i=[...s];return this.array(i,e.unorderedSets!==!1)},file(s){return r("file:"),this.dispatch([s.name,s.size,s.type,s.lastModfied])},blob(){if(e.ignoreUnknown)return r("[blob]");throw new Error(`Hashing Blob objects is currently not supported +Use "options.replacer" or "options.ignoreUnknown" +`)},domwindow(){return r("domwindow")},bigint(s){return r("bigint:"+s.toString())},process(){return r("process")},timer(){return r("timer")},pipe(){return r("pipe")},tcp(){return r("tcp")},udp(){return r("udp")},tty(){return r("tty")},statwatcher(){return r("statwatcher")},securecontext(){return r("securecontext")},connection(){return r("connection")},zlib(){return r("zlib")},context(){return r("context")},nodescript(){return r("nodescript")},httpparser(){return r("httpparser")},dataview(){return r("dataview")},signal(){return r("signal")},fsevent(){return r("fsevent")},tlswrap(){return r("tlswrap")}}}const Jm="[native code] }",vb=Jm.length;function md(e){return typeof e!="function"?!1:Function.prototype.toString.call(e).slice(-vb)===Jm}function gb(e,t,n={}){return e===t||hd(e,n)===hd(t,n)}function pb(e,t){return{ctx:{table:e},matchAll:n=>Xm(n,e)}}function Zm(e){const t={};for(const n in e)t[n]=n==="dynamic"?new Map(Object.entries(e[n]).map(([r,s])=>[r,Zm(s)])):new Map(Object.entries(e[n]));return t}function yb(e){return pb(Zm(e))}function Xm(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1)||"/");const r=[];for(const[i,o]of vd(t.wildcard))(e===i||e.startsWith(i+"/"))&&r.push(o);for(const[i,o]of vd(t.dynamic))if(e.startsWith(i+"/")){const a="/"+e.slice(i.length).split("/").splice(2).join("/");r.push(...Xm(a,o))}const s=t.static.get(e);return s&&r.push(s),r.filter(Boolean)}function vd(e){return[...e.entries()].sort((t,n)=>t[0].length-n[0].length)}function Ta(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function gl(e,t,n=".",r){if(!Ta(t))return gl(e,{},n,r);const s=Object.assign({},t);for(const i in e){if(i==="__proto__"||i==="constructor")continue;const o=e[i];o!=null&&(r&&r(s,i,o,n)||(Array.isArray(o)&&Array.isArray(s[i])?s[i]=[...o,...s[i]]:Ta(o)&&Ta(s[i])?s[i]=gl(o,s[i],(n?`${n}.`:"")+i.toString(),r):s[i]=o))}return s}function Qm(e){return(...t)=>t.reduce((n,r)=>gl(n,r,"",e),{})}const ev=Qm(),bb=Qm((e,t,n)=>{if(e[t]!==void 0&&typeof n=="function")return e[t]=n(e[t]),!0});function wb(e,t){try{return t in e}catch{return!1}}var _b=Object.defineProperty,Sb=(e,t,n)=>t in e?_b(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dr=(e,t,n)=>(Sb(e,typeof t!="symbol"?t+"":t,n),n);class pl extends Error{constructor(t,n={}){super(t,n),dr(this,"statusCode",500),dr(this,"fatal",!1),dr(this,"unhandled",!1),dr(this,"statusMessage"),dr(this,"data"),dr(this,"cause"),n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const t={message:this.message,statusCode:bl(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=tv(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}dr(pl,"__h3_error__",!0);function yl(e){if(typeof e=="string")return new pl(e);if(Cb(e))return e;const t=new pl(e.message??e.statusMessage??"",{cause:e.cause||e});if(wb(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=bl(e.statusCode,t.statusCode):e.status&&(t.statusCode=bl(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;tv(t.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function Cb(e){var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.__h3_error__)===!0}const kb=/[^\u0009\u0020-\u007E]/g;function tv(e=""){return e.replace(kb,"")}function bl(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const Eb=Symbol("layout-meta"),wr=Symbol("route"),pn=()=>{var e;return(e=Ue())==null?void 0:e.$router},qo=()=>Ac()?Se(wr,Ue()._route):Ue()._route;const Tb=()=>{try{if(Ue()._processingMiddleware)return!0}catch{return!1}return!1},yo=(e,t)=>{e||(e="/");const n=typeof e=="string"?e:Nm(e.path||"/",e.query||{})+(e.hash||"");if(t!=null&&t.open){const{target:a="_blank",windowFeatures:l={}}=t.open,u=Object.entries(l).filter(([c,d])=>d!==void 0).map(([c,d])=>`${c.toLowerCase()}=${d}`).join(", ");return open(n,a,u),Promise.resolve()}const r=(t==null?void 0:t.external)||Or(n,{acceptRelative:!0});if(r){if(!(t!=null&&t.external))throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const a=zo(n).protocol;if(a&&ky(a))throw new Error(`Cannot navigate to a URL with '${a}' protocol.`)}const s=Tb();if(!r&&s)return e;const i=pn(),o=Ue();return r?(o._scope.stop(),t!=null&&t.replace?location.replace(n):location.href=n,s?o.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t!=null&&t.replace?i.replace(e):i.push(e)},nv="__nuxt_error",Ko=()=>ie(Ue().payload,"error"),Gr=e=>{const t=Go(e);try{const n=Ue(),r=Ko();n.hooks.callHook("app:error",t),r.value=r.value||t}catch{throw t}return t},Ab=async(e={})=>{const t=Ue(),n=Ko();t.callHook("app:error:cleared",e),e.redirect&&await pn().replace(e.redirect),n.value=null},xb=e=>!!e&&typeof e=="object"&&nv in e,Go=e=>{const t=yl(e);return Object.defineProperty(t,nv,{value:!0,configurable:!1,writable:!1}),t},Lb=-1,Pb=-2,Ob=-3,Ib=-4,Rb=-5,Mb=-6;function $b(e,t){return Vb(JSON.parse(e),t)}function Vb(e,t){if(typeof e=="number")return s(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function s(i,o=!1){if(i===Lb)return;if(i===Ob)return NaN;if(i===Ib)return 1/0;if(i===Rb)return-1/0;if(i===Mb)return-0;if(o)throw new Error("Invalid input");if(i in r)return r[i];const a=n[i];if(!a||typeof a!="object")r[i]=a;else if(Array.isArray(a))if(typeof a[0]=="string"){const l=a[0],u=t==null?void 0:t[l];if(u)return r[i]=u(s(a[1]));switch(l){case"Date":r[i]=new Date(a[1]);break;case"Set":const c=new Set;r[i]=c;for(let h=1;h>>9)+65536).toString(16).substring(1,8).toLowerCase()}function gd(e){return e._h||Hc(e._d?e._d:`${e.tag}:${e.textContent||e.innerHTML||""}:${Object.entries(e.props).map(([t,n])=>`${t}:${String(n)}`).join(",")}`)}function sv(e,t){const{props:n,tag:r}=e;if(Nb.includes(r))return r;if(r==="link"&&n.rel==="canonical")return"canonical";if(n.charset)return"charset";const s=["id"];r==="meta"&&s.push("name","property","http-equiv");for(const i of s)if(typeof n[i]<"u"){const o=String(n[i]);return`${r}:${i}:${o}`}return!1}function pd(e,t){return e==null?t||null:typeof e=="function"?e(t):e}function iv(e,t){const n=[],r=t.resolveKeyData||(i=>i.key),s=t.resolveValueData||(i=>i.value);for(const[i,o]of Object.entries(e))n.push(...(Array.isArray(o)?o:[o]).map(a=>{const l={key:i,value:a},u=s(l);return typeof u=="object"?iv(u,t):Array.isArray(u)?u:{[typeof t.key=="function"?t.key(l):t.key]:r(l),[typeof t.value=="function"?t.value(l):t.value]:u}}).flat());return n}function ov(e,t){return Object.entries(e).map(([n,r])=>{if(typeof r=="object"&&(r=ov(r,t)),t.resolve){const s=t.resolve({key:n,value:r});if(typeof s<"u")return s}return typeof r=="number"&&(r=r.toString()),typeof r=="string"&&t.wrapValue&&(r=r.replace(new RegExp(t.wrapValue,"g"),`\\${t.wrapValue}`),r=`${t.wrapValue}${r}${t.wrapValue}`),`${n}${t.keyValueSeparator||""}${r}`}).join(t.entrySeparator||"")}const mt=e=>({keyValue:e,metaKey:"property"}),Aa=e=>({keyValue:e}),Dc={appleItunesApp:{unpack:{entrySeparator:", ",resolve({key:e,value:t}){return`${_n(e)}=${t}`}}},articleExpirationTime:mt("article:expiration_time"),articleModifiedTime:mt("article:modified_time"),articlePublishedTime:mt("article:published_time"),bookReleaseDate:mt("book:release_date"),charset:{metaKey:"charset"},contentSecurityPolicy:{unpack:{entrySeparator:"; ",resolve({key:e,value:t}){return`${_n(e)} ${t}`}},metaKey:"http-equiv"},contentType:{metaKey:"http-equiv"},defaultStyle:{metaKey:"http-equiv"},fbAppId:mt("fb:app_id"),msapplicationConfig:Aa("msapplication-Config"),msapplicationTileColor:Aa("msapplication-TileColor"),msapplicationTileImage:Aa("msapplication-TileImage"),ogAudioSecureUrl:mt("og:audio:secure_url"),ogAudioUrl:mt("og:audio"),ogImageSecureUrl:mt("og:image:secure_url"),ogImageUrl:mt("og:image"),ogSiteName:mt("og:site_name"),ogVideoSecureUrl:mt("og:video:secure_url"),ogVideoUrl:mt("og:video"),profileFirstName:mt("profile:first_name"),profileLastName:mt("profile:last_name"),profileUsername:mt("profile:username"),refresh:{metaKey:"http-equiv",unpack:{entrySeparator:";",resolve({key:e,value:t}){if(e==="seconds")return`${t}`}}},robots:{unpack:{entrySeparator:", ",resolve({key:e,value:t}){return typeof t=="boolean"?`${_n(e)}`:`${_n(e)}:${t}`}}},xUaCompatible:{metaKey:"http-equiv"}},av=["og","book","article","profile"];function lv(e){var n;const t=_n(e).split(":")[0];return av.includes(t)?"property":((n=Dc[e])==null?void 0:n.metaKey)||"name"}function Fb(e){var t;return((t=Dc[e])==null?void 0:t.keyValue)||_n(e)}function _n(e){const t=e.replace(/([A-Z])/g,"-$1").toLowerCase(),n=t.split("-")[0];return av.includes(n)||n==="twitter"?e.replace(/([A-Z])/g,":$1").toLowerCase():t}function wl(e){if(Array.isArray(e))return e.map(n=>wl(n));if(typeof e!="object"||Array.isArray(e))return e;const t={};for(const[n,r]of Object.entries(e))t[_n(n)]=wl(r);return t}function Ub(e,t){const n=Dc[t];return t==="refresh"?`${e.seconds};url=${e.url}`:ov(wl(e),{keyValueSeparator:"=",entrySeparator:", ",resolve({value:r,key:s}){if(r===null)return"";if(typeof r=="boolean")return`${s}`},...n==null?void 0:n.unpack})}const cv=["og:image","og:video","og:audio","twitter:image"];function uv(e){const t={};return Object.entries(e).forEach(([n,r])=>{String(r)!=="false"&&n&&(t[n]=r)}),t}function yd(e,t){const n=uv(t),r=_n(e),s=lv(r);if(cv.includes(r)){const i={};return Object.entries(n).forEach(([o,a])=>{i[`${e}${o==="url"?"":`${o.charAt(0).toUpperCase()}${o.slice(1)}`}`]=a}),jc(i).sort((o,a)=>{var l,u;return(((l=o[s])==null?void 0:l.length)||0)-(((u=a[s])==null?void 0:u.length)||0)})}return[{[s]:r,...n}]}function jc(e){const t=[],n={};Object.entries(e).forEach(([s,i])=>{if(!Array.isArray(i)){if(typeof i=="object"&&i){if(cv.includes(_n(s))){t.push(...yd(s,i));return}n[s]=uv(i)}else n[s]=i;return}i.forEach(o=>{t.push(...typeof o=="string"?jc({[s]:o}):yd(s,o))})});const r=iv(n,{key({key:s}){return lv(s)},value({key:s}){return s==="charset"?"charset":"content"},resolveKeyData({key:s}){return Fb(s)},resolveValueData({value:s,key:i}){return s===null?"_null":typeof s=="object"?Ub(s,i):typeof s=="number"?s.toString():s}});return[...t,...r].map(s=>(s.content==="_null"&&(s.content=null),s))}async function zb(e,t,n){const r={tag:e,props:await dv(typeof t=="object"&&typeof t!="function"&&!(t instanceof Promise)?{...t}:{[["script","noscript","style"].includes(e)?"innerHTML":"textContent"]:t},["templateParams","titleTemplate"].includes(e))};return rv.forEach(s=>{const i=typeof r.props[s]<"u"?r.props[s]:n[s];typeof i<"u"&&((!["innerHTML","textContent","children"].includes(s)||Db.includes(r.tag))&&(r[s==="children"?"innerHTML":s]=i),delete r.props[s])}),r.props.body&&(r.tagPosition="bodyClose",delete r.props.body),r.tag==="script"&&typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),Array.isArray(r.props.content)?r.props.content.map(s=>({...r,props:{...r.props,content:s}})):r}function Wb(e,t){var r;const n=e==="class"?" ":";";return typeof t=="object"&&!Array.isArray(t)&&(t=Object.entries(t).filter(([,s])=>s).map(([s,i])=>e==="style"?`${s}:${i}`:s)),(r=String(Array.isArray(t)?t.join(n):t))==null?void 0:r.split(n).filter(s=>s.trim()).filter(Boolean).join(n)}async function dv(e,t){for(const n of Object.keys(e)){if(["class","style"].includes(n)){e[n]=Wb(n,e[n]);continue}if(e[n]instanceof Promise&&(e[n]=await e[n]),!t&&!rv.includes(n)){const r=String(e[n]),s=n.startsWith("data-");r==="true"||r===""?e[n]=s?"true":!0:e[n]||(s&&r==="false"?e[n]="false":delete e[n])}}return e}const qb=10;async function Kb(e){const t=[];return Object.entries(e.resolvedInput).filter(([n,r])=>typeof r<"u"&&jb.includes(n)).forEach(([n,r])=>{const s=Hb(r);t.push(...s.map(i=>zb(n,i,e)).flat())}),(await Promise.all(t)).flat().filter(Boolean).map((n,r)=>(n._e=e._i,e.mode&&(n._m=e.mode),n._p=(e._i<l&&l[u]||void 0,t):a=t[o],typeof a<"u"?(a||"").replace(/"/g,'\\"'):!1}let s=e;try{s=decodeURI(e)}catch{}return(s.match(/%(\w+\.+\w+)|%(\w+)/g)||[]).sort().reverse().forEach(o=>{const a=r(o.slice(1));typeof a=="string"&&(e=e.replace(new RegExp(`\\${o}(\\W|$)`,"g"),(l,u)=>`${a}${u}`).trim())}),e.includes(Hn)&&(e.endsWith(Hn)&&(e=e.slice(0,-Hn.length).trim()),e.startsWith(Hn)&&(e=e.slice(Hn.length).trim()),e=e.replace(new RegExp(`\\${Hn}\\s*\\${Hn}`,"g"),Hn),e=Qi(e,{separator:n},n)),e}async function fv(e,t={}){var c;const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const r={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),!r.shouldRender)return;const s=(await e.resolveTags()).map(d=>({tag:d,id:Xi.includes(d.tag)?gd(d):d.tag,shouldRender:!0}));let i=e._dom;if(!i){i={elMap:{htmlAttrs:n.documentElement,bodyAttrs:n.body}};for(const d of["body","head"]){const f=(c=n[d])==null?void 0:c.children,h=[];for(const v of[...f].filter(m=>Xi.includes(m.tagName.toLowerCase()))){const m={tag:v.tagName.toLowerCase(),props:await dv(v.getAttributeNames().reduce((y,g)=>({...y,[g]:v.getAttribute(g)}),{})),innerHTML:v.innerHTML};let p=1,S=sv(m);for(;S&&h.find(y=>y._d===S);)S=`${S}:${p++}`;m._d=S||void 0,h.push(m),i.elMap[v.getAttribute("data-hid")||gd(m)]=v}}}i.pendingSideEffects={...i.sideEffects||{}},i.sideEffects={};function o(d,f,h){const v=`${d}:${f}`;i.sideEffects[v]=h,delete i.pendingSideEffects[v]}function a({id:d,$el:f,tag:h}){const v=h.tag.endsWith("Attrs");i.elMap[d]=f,v||(["textContent","innerHTML"].forEach(m=>{h[m]&&h[m]!==f[m]&&(f[m]=h[m])}),o(d,"el",()=>{var m;(m=i.elMap[d])==null||m.remove(),delete i.elMap[d]}));for(const[m,p]of Object.entries(h._eventHandlers||{}))f.getAttribute(`data-${m}`)!==""&&((h.tag==="bodyAttrs"?n.defaultView:f).addEventListener(m.replace("on",""),p.bind(f)),f.setAttribute(`data-${m}`,""));Object.entries(h.props).forEach(([m,p])=>{const S=`attr:${m}`;if(m==="class")for(const y of(p||"").split(" ").filter(Boolean))v&&o(d,`${S}:${y}`,()=>f.classList.remove(y)),!f.classList.contains(y)&&f.classList.add(y);else if(m==="style")for(const y of(p||"").split(";").filter(Boolean)){const[g,..._]=y.split(":").map(T=>T.trim());o(d,`${S}:${y}:${g}`,()=>{f.style.removeProperty(g)}),f.style.setProperty(g,_.join(":"))}else f.getAttribute(m)!==p&&f.setAttribute(m,p===!0?"":String(p)),v&&o(d,S,()=>f.removeAttribute(m))})}const l=[],u={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const d of s){const{tag:f,shouldRender:h,id:v}=d;if(h){if(f.tag==="title"){n.title=f.textContent;continue}d.$el=d.$el||i.elMap[v],d.$el?a(d):Xi.includes(f.tag)&&l.push(d)}}for(const d of l){const f=d.tag.tagPosition||"head";d.$el=n.createElement(d.tag.tag),a(d),u[f]=u[f]||n.createDocumentFragment(),u[f].appendChild(d.$el)}for(const d of s)await e.hooks.callHook("dom:renderTag",d,n,o);u.head&&n.head.appendChild(u.head),u.bodyOpen&&n.body.insertBefore(u.bodyOpen,n.body.firstChild),u.bodyClose&&n.body.appendChild(u.bodyClose),Object.values(i.pendingSideEffects).forEach(d=>d()),e._dom=i,e.dirty=!1,await e.hooks.callHook("dom:rendered",{renders:s})}async function Yb(e,t={}){const n=t.delayFn||(r=>setTimeout(r,10));return e._domUpdatePromise=e._domUpdatePromise||new Promise(r=>n(async()=>{await fv(e,t),delete e._domUpdatePromise,r()}))}function Jb(e){return t=>{var r,s;const n=((s=(r=t.resolvedOptions.document)==null?void 0:r.head.querySelector('script[id="unhead:payload"]'))==null?void 0:s.innerHTML)||!1;return n&&t.push(JSON.parse(n)),{mode:"client",hooks:{"entries:updated":function(i){Yb(i,e)}}}}}const Zb=["templateParams","htmlAttrs","bodyAttrs"],Xb={hooks:{"tag:normalise":function({tag:e}){["hid","vmid","key"].forEach(r=>{e.props[r]&&(e.key=e.props[r],delete e.props[r])});const n=sv(e)||(e.key?`${e.tag}:${e.key}`:!1);n&&(e._d=n)},"tags:resolve":function(e){const t={};e.tags.forEach(r=>{const s=(r.key?`${r.tag}:${r.key}`:r._d)||r._p,i=t[s];if(i){let a=r==null?void 0:r.tagDuplicateStrategy;if(!a&&Zb.includes(r.tag)&&(a="merge"),a==="merge"){const l=i.props;["class","style"].forEach(u=>{l[u]&&(r.props[u]?(u==="style"&&!l[u].endsWith(";")&&(l[u]+=";"),r.props[u]=`${l[u]} ${r.props[u]}`):r.props[u]=l[u])}),t[s].props={...l,...r.props};return}else if(r._e===i._e){i._duped=i._duped||[],r._d=`${i._d}:${i._duped.length+1}`,i._duped.push(r);return}else if(bo(r)>bo(i))return}const o=Object.keys(r.props).length+(r.innerHTML?1:0)+(r.textContent?1:0);if(Xi.includes(r.tag)&&o===0){delete t[s];return}t[s]=r});const n=[];Object.values(t).forEach(r=>{const s=r._duped;delete r._duped,n.push(r),s&&n.push(...s)}),e.tags=n,e.tags=e.tags.filter(r=>!(r.tag==="meta"&&(r.props.name||r.props.property)&&!r.props.content))}}},Qb={mode:"server",hooks:{"tags:resolve":function(e){const t={};e.tags.filter(n=>["titleTemplate","templateParams","title"].includes(n.tag)&&n._m==="server").forEach(n=>{t[n.tag]=n.tag.startsWith("title")?n.textContent:n.props}),Object.keys(t).length&&e.tags.push({tag:"script",innerHTML:JSON.stringify(t),props:{id:"unhead:payload",type:"application/json"}})}}},e2=["script","link","bodyAttrs"],t2=e=>({hooks:{"tags:resolve":function(t){for(const n of t.tags.filter(r=>e2.includes(r.tag)))Object.entries(n.props).forEach(([r,s])=>{r.startsWith("on")&&typeof s=="function"&&(e.ssr&&_d.includes(r)?n.props[r]=`this.dataset.${r}fired = true`:delete n.props[r],n._eventHandlers=n._eventHandlers||{},n._eventHandlers[r]=s)}),e.ssr&&n._eventHandlers&&(n.props.src||n.props.href)&&(n.key=n.key||Hc(n.props.src||n.props.href))},"dom:renderTag":function({$el:t,tag:n}){var r,s;for(const i of Object.keys((t==null?void 0:t.dataset)||{}).filter(o=>_d.some(a=>`${a}fired`===o))){const o=i.replace("fired","");(s=(r=n._eventHandlers)==null?void 0:r[o])==null||s.call(t,new Event(o.replace("on","")))}}}}),n2=["link","style","script","noscript"],r2={hooks:{"tag:normalise":({tag:e})=>{e.key&&n2.includes(e.tag)&&(e.props["data-hid"]=e._h=Hc(e.key))}}},s2={hooks:{"tags:resolve":e=>{const t=n=>{var r;return(r=e.tags.find(s=>s._d===n))==null?void 0:r._p};for(const{prefix:n,offset:r}of Gb)for(const s of e.tags.filter(i=>typeof i.tagPriority=="string"&&i.tagPriority.startsWith(n))){const i=t(s.tagPriority.replace(n,""));typeof i<"u"&&(s._p=i+r)}e.tags.sort((n,r)=>n._p-r._p).sort((n,r)=>bo(n)-bo(r))}}},i2={meta:"content",link:"href",htmlAttrs:"lang"},o2=e=>({hooks:{"tags:resolve":t=>{var a;const{tags:n}=t,r=(a=n.find(l=>l.tag==="title"))==null?void 0:a.textContent,s=n.findIndex(l=>l.tag==="templateParams"),i=s!==-1?n[s].props:{},o=i.separator||"|";delete i.separator,i.pageTitle=Qi(i.pageTitle||r||"",i,o);for(const l of n.filter(u=>u.processTemplateParams!==!1)){const u=i2[l.tag];u&&typeof l.props[u]=="string"?l.props[u]=Qi(l.props[u],i,o):(l.processTemplateParams===!0||["titleTemplate","title"].includes(l.tag))&&["innerHTML","textContent"].forEach(c=>{typeof l[c]=="string"&&(l[c]=Qi(l[c],i,o))})}e._templateParams=i,e._separator=o,t.tags=n.filter(l=>l.tag!=="templateParams")}}}),a2={hooks:{"tags:resolve":e=>{const{tags:t}=e;let n=t.findIndex(s=>s.tag==="titleTemplate");const r=t.findIndex(s=>s.tag==="title");if(r!==-1&&n!==-1){const s=pd(t[n].textContent,t[r].textContent);s!==null?t[r].textContent=s||t[r].textContent:delete t[r]}else if(n!==-1){const s=pd(t[n].textContent);s!==null&&(t[n].textContent=s,t[n].tag="title",n=-1)}n!==-1&&delete t[n],e.tags=t.filter(Boolean)}}},l2={hooks:{"tags:afterResolve":function(e){for(const t of e.tags)typeof t.innerHTML=="string"&&(t.innerHTML&&["application/ld+json","application/json"].includes(t.props.type)?t.innerHTML=t.innerHTML.replace(/{a.dirty=!0,t.callHook("entries:updated",a)};let s=0,i=[];const o=[],a={plugins:o,dirty:!1,resolvedOptions:e,hooks:t,headEntries(){return i},use(l){const u=typeof l=="function"?l(a):l;(!u.key||!o.some(c=>c.key===u.key))&&(o.push(u),Sd(u.mode,n)&&t.addHooks(u.hooks||{}))},push(l,u){u==null||delete u.head;const c={_i:s++,input:l,...u};return Sd(c.mode,n)&&(i.push(c),r()),{dispose(){i=i.filter(d=>d._i!==c._i),t.callHook("entries:updated",a),r()},patch(d){i=i.map(f=>(f._i===c._i&&(f.input=c.input=d),f)),r()}}},async resolveTags(){const l={tags:[],entries:[...i]};await t.callHook("entries:resolve",l);for(const u of l.entries){const c=u.resolvedInput||u.input;if(u.resolvedInput=await(u.transform?u.transform(c):c),u.resolvedInput)for(const d of await Kb(u)){const f={tag:d,entry:u,resolvedOptions:a.resolvedOptions};await t.callHook("tag:normalise",f),l.tags.push(f.tag)}}return await t.callHook("tags:beforeResolve",l),await t.callHook("tags:resolve",l),await t.callHook("tags:afterResolve",l),l.tags},ssr:n};return[Xb,Qb,t2,r2,s2,o2,a2,l2,...(e==null?void 0:e.plugins)||[]].forEach(l=>a.use(l)),a.hooks.callHook("init",a),a}function d2(){return hv}const f2=Am.startsWith("3");function h2(e){return typeof e=="function"?e():Z(e)}function wo(e,t=""){if(e instanceof Promise)return e;const n=h2(e);return!e||!n?n:Array.isArray(n)?n.map(r=>wo(r,t)):typeof n=="object"?Object.fromEntries(Object.entries(n).map(([r,s])=>r==="titleTemplate"||r.startsWith("on")?[r,Z(s)]:[r,wo(s,r)])):n}const m2={hooks:{"entries:resolve":function(e){for(const t of e.entries)t.resolvedInput=wo(t.input)}}},mv="usehead";function v2(e){return{install(n){f2&&(n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(mv,e))}}.install}function g2(e={}){e.domDelayFn=e.domDelayFn||(n=>Ke(()=>setTimeout(()=>n(),0)));const t=c2(e);return t.use(m2),t.install=v2(t),t}const _l=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Sl="__unhead_injection_handler__";function p2(e){_l[Sl]=e}function y2(){if(Sl in _l)return _l[Sl]();const e=Se(mv);return e||d2()}function Nc(e,t={}){const n=t.head||y2();if(n)return n.ssr?n.push(e,t):b2(n,e,t)}function b2(e,t,n={}){const r=N(!1),s=N({});nn(()=>{s.value=r.value?{}:wo(t)});const i=e.push(s.value,n);return se(s,a=>{i.patch(a)}),Pr()&&(it(()=>{i.dispose()}),Ec(()=>{r.value=!0}),kc(()=>{r.value=!1})),i}function w2(e,t){const{title:n,titleTemplate:r,...s}=e;return Nc({title:n,titleTemplate:r,_flatMeta:s},{...t,transform(i){const o=jc({...i._flatMeta});return delete i._flatMeta,{...i,meta:o}}})}function hn(e){if(typeof e!="object")return e;var t,n,r=Object.prototype.toString.call(e);if(r==="[object Object]"){if(e.constructor!==Object&&typeof e.constructor=="function"){n=new e.constructor;for(t in e)e.hasOwnProperty(t)&&n[t]!==e[t]&&(n[t]=hn(e[t]))}else{n={};for(t in e)t==="__proto__"?Object.defineProperty(n,t,{value:hn(e[t]),configurable:!0,enumerable:!0,writable:!0}):n[t]=hn(e[t])}return n}if(r==="[object Array]"){for(t=e.length,n=Array(t);t--;)n[t]=hn(e[t]);return n}return r==="[object Set]"?(n=new Set,e.forEach(function(s){n.add(hn(s))}),n):r==="[object Map]"?(n=new Map,e.forEach(function(s,i){n.set(hn(i),hn(s))}),n):r==="[object Date]"?new Date(+e):r==="[object RegExp]"?(n=new RegExp(e.source,e.flags),n.lastIndex=e.lastIndex,n):r==="[object DataView]"?new e.constructor(hn(e.buffer)):r==="[object ArrayBuffer]"?e.slice(0):r.slice(-6)==="Array]"?new e.constructor(e):e}const _2={nuxt:{buildId:"f31eda82-68fb-4075-b901-891265ac14be"}},S2=bb(_2);function vv(){const e=Ue();return e._appConfig||(e._appConfig=Be(S2)),e._appConfig}const Cl={name:"slide-y",mode:"out-in"},C2=!1,O7={componentName:"NuxtLink"},k2="#__nuxt";let eo,gv;function E2(){var t;const e=(t=vv().nuxt)==null?void 0:t.buildId;return eo=$fetch(Vc(`builds/meta/${e}.json`)),eo.then(n=>{gv=yb(n.matcher)}),eo}function Yo(){return eo||E2()}async function Bc(e){return await Yo(),ev({},...gv.matchAll(e).reverse())}function Cd(e,t={}){const n=A2(e,t),r=Ue(),s=r._payloadCache=r._payloadCache||{};return n in s||(s[n]=x2(e).then(i=>i?pv(n).then(o=>o||(delete s[n],null)):(s[n]=null,null))),s[n]}const T2="_payload.json";function A2(e,t={}){var s;const n=new URL(e,"http://localhost");if(n.host!=="localhost"||Or(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const r=t.hash||(t.fresh?Date.now():(s=vv().nuxt)==null?void 0:s.buildId);return Mc(Wo().app.baseURL,n.pathname,T2+(r?`?${r}`:""))}async function pv(e){const t=fetch(e).then(n=>n.text().then(yv));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}async function x2(e=qo().path){if(e=Rc(e),(await Yo()).prerendered.includes(e))return!0;const n=await Bc(e);return!!n.prerender&&!n.redirect}let ji=null;async function L2(){if(ji)return ji;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await yv(e.textContent||""),n=e.dataset.src?await pv(e.dataset.src):void 0;return ji={...t,...n,...window.__NUXT__},ji}async function yv(e){return await $b(e,Ue()._payloadRevivers)}function P2(e,t){Ue()._payloadRevivers[e]=t}const kd={NuxtError:e=>Go(e),EmptyShallowRef:e=>le(e==="_"?void 0:e==="0n"?BigInt(0):Qs(e)),EmptyRef:e=>N(e==="_"?void 0:e==="0n"?BigInt(0):Qs(e)),ShallowRef:e=>le(e),ShallowReactive:e=>mi(e),Ref:e=>N(e),Reactive:e=>Be(e)},O2=ot({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const r in kd)P2(r,kd[r]);Object.assign(e.payload,([t,n]=kn(()=>e.runWithContext(L2)),t=await t,n(),t)),window.__NUXT__=e.payload}}),I2={collapse:"mdi-chevron-up",complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close-circle",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-alert-circle",error:"mdi-close-circle",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sortAsc:"mdi-arrow-up",sortDesc:"mdi-arrow-down",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus",calendar:"mdi-calendar",treeviewCollapse:"mdi-menu-down",treeviewExpand:"mdi-menu-right",eyeDropper:"mdi-eyedropper"},R2={component:e=>gt(Hv,{...e,class:"mdi"})},Fe=typeof window<"u",Fc=Fe&&"IntersectionObserver"in window,M2=Fe&&("ontouchstart"in window||window.navigator.maxTouchPoints>0);function Ed(e,t,n){$2(e,t),t.set(e,n)}function $2(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function V2(e,t,n){return e.set(bv(e,t),n),n}function ar(e,t){return e.get(bv(e,t))}function bv(e,t,n){if(typeof e=="function"?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function wv(e,t,n){const r=t.length-1;if(r<0)return e===void 0?n:e;for(let s=0;sJo(e[r],t[r]))}function kl(e,t,n){return e==null||!t||typeof t!="string"?n:e[t]!==void 0?e[t]:(t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,""),wv(e,t.split("."),n))}function wn(e,t,n){if(t===!0)return e===void 0?n:e;if(t==null||typeof t=="boolean")return n;if(e!==Object(e)){if(typeof t!="function")return n;const s=t(e,n);return typeof s>"u"?n:s}if(typeof t=="string")return kl(e,t,n);if(Array.isArray(t))return wv(e,t,n);if(typeof t!="function")return n;const r=t(e,n);return typeof r>"u"?n:r}function _v(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:e},(n,r)=>t+r)}function ue(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(!(e==null||e===""))return isNaN(+e)?String(e):isFinite(+e)?`${Number(e)}${t}`:void 0}function El(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function ei(e){if(e&&"$el"in e){const t=e.$el;return(t==null?void 0:t.nodeType)===Node.TEXT_NODE?t.nextElementSibling:t}return e}const Td=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16}),I7=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function xa(e,t){return t.every(n=>e.hasOwnProperty(n))}function H2(e,t){const n={},r=new Set(Object.keys(e));for(const s of t)r.has(s)&&(n[s]=e[s]);return n}function Ad(e,t,n){const r=Object.create(null),s=Object.create(null);for(const i in e)t.some(o=>o instanceof RegExp?o.test(i):o===i)&&!(n!=null&&n.some(o=>o===i))?r[i]=e[i]:s[i]=e[i];return[r,s]}function yi(e,t){const n={...e};return t.forEach(r=>delete n[r]),n}function R7(e,t){const n={};return t.forEach(r=>n[r]=e[r]),n}const Sv=/^on[^a-z]/,Cv=e=>Sv.test(e),D2=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"],j2=["ArrowUp","ArrowDown","ArrowRight","ArrowLeft","Enter","Escape","Tab"," "];function M7(e){return e.isComposing&&j2.includes(e.key)}function $7(e){const[t,n]=Ad(e,[Sv]),r=yi(t,D2),[s,i]=Ad(n,["class","style","id",/^data-/]);return Object.assign(s,t),Object.assign(i,r),[s,i]}function N2(e){return e==null?[]:Array.isArray(e)?e:[e]}function V7(e,t){let n=0;const r=function(){for(var s=arguments.length,i=new Array(s),o=0;oe(...i),Z(t))};return r.clear=()=>{clearTimeout(n)},r.immediate=e,r}function xr(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(t,Math.min(n,e))}function H7(e){const t=e.toString().trim();return t.includes(".")?t.length-t.indexOf(".")-1:0}function xd(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return e+n.repeat(Math.max(0,t-e.length))}function Ld(e,t){return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0").repeat(Math.max(0,t-e.length))+e}function B2(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const n=[];let r=0;for(;r1&&arguments[1]!==void 0?arguments[1]:1e3;if(e=t&&r0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r={};for(const s in e)r[s]=e[s];for(const s in t){const i=e[s],o=t[s];if(El(i)&&El(o)){r[s]=ft(i,o,n);continue}if(Array.isArray(i)&&Array.isArray(o)&&n){r[s]=n(i,o);continue}r[s]=o}return r}function kv(e){return e.map(t=>t.type===ge?kv(t.children):t).flat()}function _r(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(_r.cache.has(e))return _r.cache.get(e);const t=e.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return _r.cache.set(e,t),t}_r.cache=new Map;function Ns(e,t){if(!t||typeof t!="object")return[];if(Array.isArray(t))return t.map(n=>Ns(e,n)).flat(1);if(Array.isArray(t.children))return t.children.map(n=>Ns(e,n)).flat(1);if(t.component){if(Object.getOwnPropertySymbols(t.component.provides).includes(e))return[t.component];if(t.component.subTree)return Ns(e,t.component.subTree).flat(1)}return[]}var Ni=new WeakMap,Dr=new WeakMap;class F2{constructor(t){Ed(this,Ni,[]),Ed(this,Dr,0),this.size=t}push(t){ar(Ni,this)[ar(Dr,this)]=t,V2(Dr,this,(ar(Dr,this)+1)%this.size)}values(){return ar(Ni,this).slice(ar(Dr,this)).concat(ar(Ni,this).slice(0,ar(Dr,this)))}}function Uc(e){const t=Be({}),n=A(e);return nn(()=>{for(const r in n.value)t[r]=n.value[r]},{flush:"sync"}),vi(t)}function _o(e,t){return e.includes(t)}function Ev(e){return e[2].toLowerCase()+e.slice(3)}const Pd=()=>[Function,Array];function Od(e,t){return t="on"+ms(t),!!(e[t]||e[`${t}Once`]||e[`${t}Capture`]||e[`${t}OnceCapture`]||e[`${t}CaptureOnce`])}function j7(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1&&arguments[1]!==void 0?arguments[1]:!0;const n=["button","[href]",'input:not([type="hidden"])',"select","textarea","[tabindex]"].map(r=>`${r}${t?':not([tabindex="-1"])':""}:not([disabled])`).join(", ");return[...e.querySelectorAll(n)]}function Tv(e,t,n){let r,s=e.indexOf(document.activeElement);const i=t==="next"?1:-1;do s+=i,r=e[s];while((!r||r.offsetParent==null||!((n==null?void 0:n(r))??!0))&&s=0);return r}function Co(e,t){var r,s,i,o;const n=So(e);if(!t)(e===document.activeElement||!e.contains(document.activeElement))&&((r=n[0])==null||r.focus());else if(t==="first")(s=n[0])==null||s.focus();else if(t==="last")(i=n.at(-1))==null||i.focus();else if(typeof t=="number")(o=n[t])==null||o.focus();else{const a=Tv(n,t);a?a.focus():Co(e,t==="next"?"first":"last")}}function N7(e){return e==null||typeof e=="string"&&e.trim()===""}function B7(){}function U2(e,t){if(!(Fe&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${t})`)))return null;try{return!!e&&e.matches(t)}catch{return null}}function z2(e){return e.some(t=>Tr(t)?t.type===st?!1:t.type!==ge||z2(t.children):!0)?e:null}function W2(e,t){if(!Fe||e===0)return t(),()=>{};const n=window.setTimeout(t,e);return()=>window.clearTimeout(n)}function Id(e,t){const n=le();return nn(()=>{n.value=e()},{flush:"sync",...t}),gs(n)}function q2(e,t){const n=e.clientX,r=e.clientY,s=t.getBoundingClientRect(),i=s.left,o=s.top,a=s.right,l=s.bottom;return n>=i&&n<=a&&r>=o&&r<=l}const Av=["top","bottom"],K2=["start","end","left","right"];function Tl(e,t){let[n,r]=e.split(" ");return r||(r=_o(Av,n)?"start":_o(K2,n)?"top":"center"),{side:Al(n,t),align:Al(r,t)}}function Al(e,t){return e==="start"?t?"right":"left":e==="end"?t?"left":"right":e}function La(e){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.side],align:e.align}}function Pa(e){return{side:e.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.align]}}function Rd(e){return{side:e.align,align:e.side}}function Md(e){return _o(Av,e.side)?"y":"x"}class Sr{constructor(t){let{x:n,y:r,width:s,height:i}=t;this.x=n,this.y=r,this.width=s,this.height=i}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function $d(e,t){return{x:{before:Math.max(0,t.left-e.left),after:Math.max(0,e.right-t.right)},y:{before:Math.max(0,t.top-e.top),after:Math.max(0,e.bottom-t.bottom)}}}function xv(e){return Array.isArray(e)?new Sr({x:e[0],y:e[1],width:0,height:0}):e.getBoundingClientRect()}function Lv(e){const t=e.getBoundingClientRect(),n=getComputedStyle(e),r=n.transform;if(r){let s,i,o,a,l;if(r.startsWith("matrix3d("))s=r.slice(9,-1).split(/, /),i=+s[0],o=+s[5],a=+s[12],l=+s[13];else if(r.startsWith("matrix("))s=r.slice(7,-1).split(/, /),i=+s[0],o=+s[3],a=+s[4],l=+s[5];else return new Sr(t);const u=n.transformOrigin,c=t.x-a-(1-i)*parseFloat(u),d=t.y-l-(1-o)*parseFloat(u.slice(u.indexOf(" ")+1)),f=i?t.width/i:e.offsetWidth+1,h=o?t.height/o:e.offsetHeight+1;return new Sr({x:c,y:d,width:f,height:h})}else return new Sr(t)}function Ps(e,t,n){if(typeof e.animate>"u")return{finished:Promise.resolve()};let r;try{r=e.animate(t,n)}catch{return{finished:Promise.resolve()}}return typeof r.finished>"u"&&(r.finished=new Promise(s=>{r.onfinish=()=>{s(r)}})),r}const to=new WeakMap;function G2(e,t){Object.keys(t).forEach(n=>{if(Cv(n)){const r=Ev(n),s=to.get(e);if(t[n]==null)s==null||s.forEach(i=>{const[o,a]=i;o===r&&(e.removeEventListener(r,a),s.delete(i))});else if(!s||![...s].some(i=>i[0]===r&&i[1]===t[n])){e.addEventListener(r,t[n]);const i=s||new Set;i.add([r,t[n]]),to.has(e)||to.set(e,i)}}else t[n]==null?e.removeAttribute(n):e.setAttribute(n,t[n])})}function Y2(e,t){Object.keys(t).forEach(n=>{if(Cv(n)){const r=Ev(n),s=to.get(e);s==null||s.forEach(i=>{const[o,a]=i;o===r&&(e.removeEventListener(r,a),s.delete(i))})}else e.removeAttribute(n)})}const jr=2.4,Vd=.2126729,Hd=.7151522,Dd=.072175,J2=.55,Z2=.58,X2=.57,Q2=.62,Bi=.03,jd=1.45,ew=5e-4,tw=1.25,nw=1.25,Nd=.078,Bd=12.82051282051282,Fi=.06,Fd=.001;function Ud(e,t){const n=(e.r/255)**jr,r=(e.g/255)**jr,s=(e.b/255)**jr,i=(t.r/255)**jr,o=(t.g/255)**jr,a=(t.b/255)**jr;let l=n*Vd+r*Hd+s*Dd,u=i*Vd+o*Hd+a*Dd;if(l<=Bi&&(l+=(Bi-l)**jd),u<=Bi&&(u+=(Bi-u)**jd),Math.abs(u-l)l){const d=(u**J2-l**Z2)*tw;c=d-Fd?0:d>-Nd?d-d*Bd*Fi:d+Fi}return c*100}function F7(e){}function rw(e,t){t=Array.isArray(t)?t.slice(0,-1).map(n=>`'${n}'`).join(", ")+` or '${t.at(-1)}'`:`'${t}'`}const ko=.20689655172413793,sw=e=>e>ko**3?Math.cbrt(e):e/(3*ko**2)+4/29,iw=e=>e>ko?e**3:3*ko**2*(e-4/29);function Pv(e){const t=sw,n=t(e[1]);return[116*n-16,500*(t(e[0]/.95047)-n),200*(n-t(e[2]/1.08883))]}function Ov(e){const t=iw,n=(e[0]+16)/116;return[t(n+e[1]/500)*.95047,t(n),t(n-e[2]/200)*1.08883]}const ow=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],aw=e=>e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,lw=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],cw=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function Iv(e){const t=Array(3),n=aw,r=ow;for(let s=0;s<3;++s)t[s]=Math.round(xr(n(r[s][0]*e[0]+r[s][1]*e[1]+r[s][2]*e[2]))*255);return{r:t[0],g:t[1],b:t[2]}}function zc(e){let{r:t,g:n,b:r}=e;const s=[0,0,0],i=cw,o=lw;t=i(t/255),n=i(n/255),r=i(r/255);for(let a=0;a<3;++a)s[a]=o[a][0]*t+o[a][1]*n+o[a][2]*r;return s}function xl(e){return!!e&&/^(#|var\(--|(rgb|hsl)a?\()/.test(e)}function uw(e){return xl(e)&&!/^((rgb|hsl)a?\()?var\(--/.test(e)}const zd=/^(?(?:rgb|hsl)a?)\((?.+)\)/,dw={rgb:(e,t,n,r)=>({r:e,g:t,b:n,a:r}),rgba:(e,t,n,r)=>({r:e,g:t,b:n,a:r}),hsl:(e,t,n,r)=>Wd({h:e,s:t,l:n,a:r}),hsla:(e,t,n,r)=>Wd({h:e,s:t,l:n,a:r}),hsv:(e,t,n,r)=>ti({h:e,s:t,v:n,a:r}),hsva:(e,t,n,r)=>ti({h:e,s:t,v:n,a:r})};function gn(e){if(typeof e=="number")return{r:(e&16711680)>>16,g:(e&65280)>>8,b:e&255};if(typeof e=="string"&&zd.test(e)){const{groups:t}=e.match(zd),{fn:n,values:r}=t,s=r.split(/,\s*/).map(i=>i.endsWith("%")&&["hsl","hsla","hsv","hsva"].includes(n)?parseFloat(i)/100:parseFloat(i));return dw[n](...s)}else if(typeof e=="string"){let t=e.startsWith("#")?e.slice(1):e;return[3,4].includes(t.length)?t=t.split("").map(n=>n+n).join(""):[6,8].includes(t.length),hw(t)}else if(typeof e=="object"){if(xa(e,["r","g","b"]))return e;if(xa(e,["h","s","l"]))return ti(Rv(e));if(xa(e,["h","s","v"]))return ti(e)}throw new TypeError(`Invalid color: ${e==null?e:String(e)||e.constructor.name} +Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function ti(e){const{h:t,s:n,v:r,a:s}=e,i=a=>{const l=(a+t/60)%6;return r-r*n*Math.max(Math.min(l,4-l,1),0)},o=[i(5),i(3),i(1)].map(a=>Math.round(a*255));return{r:o[0],g:o[1],b:o[2],a:s}}function Wd(e){return ti(Rv(e))}function Rv(e){const{h:t,s:n,l:r,a:s}=e,i=r+n*Math.min(r,1-r),o=i===0?0:2-2*r/i;return{h:t,s:o,v:i,a:s}}function Ui(e){const t=Math.round(e).toString(16);return("00".substr(0,2-t.length)+t).toUpperCase()}function fw(e){let{r:t,g:n,b:r,a:s}=e;return`#${[Ui(t),Ui(n),Ui(r),s!==void 0?Ui(Math.round(s*255)):""].join("")}`}function hw(e){e=mw(e);let[t,n,r,s]=B2(e,2).map(i=>parseInt(i,16));return s=s===void 0?s:s/255,{r:t,g:n,b:r,a:s}}function mw(e){return e.startsWith("#")&&(e=e.slice(1)),e=e.replace(/([^0-9a-f])/gi,"F"),(e.length===3||e.length===4)&&(e=e.split("").map(t=>t+t).join("")),e.length!==6&&(e=xd(xd(e,6),8,"F")),e}function vw(e,t){const n=Pv(zc(e));return n[0]=n[0]+t*10,Iv(Ov(n))}function gw(e,t){const n=Pv(zc(e));return n[0]=n[0]-t*10,Iv(Ov(n))}function pw(e){const t=gn(e);return zc(t)[1]}function Mv(e){const t=Math.abs(Ud(gn(0),gn(e)));return Math.abs(Ud(gn(16777215),gn(e)))>Math.min(t,50)?"#fff":"#000"}function Y(e,t){return n=>Object.keys(e).reduce((r,s)=>{const o=typeof e[s]=="object"&&e[s]!=null&&!Array.isArray(e[s])?e[s]:{type:e[s]};return n&&s in n?r[s]={...o,default:n[s]}:r[s]=o,t&&!r[s].source&&(r[s].source=t),r},{})}const ke=Y({class:[String,Array],style:{type:[String,Array,Object],default:null}},"component"),as=Symbol.for("vuetify:defaults");function yw(e){return N(e)}function Wc(){const e=Se(as);if(!e)throw new Error("[Vuetify] Could not find defaults instance");return e}function Ir(e,t){const n=Wc(),r=N(e),s=A(()=>{if(Z(t==null?void 0:t.disabled))return n.value;const o=Z(t==null?void 0:t.scoped),a=Z(t==null?void 0:t.reset),l=Z(t==null?void 0:t.root);if(r.value==null&&!(o||a||l))return n.value;let u=ft(r.value,{prev:n.value});if(o)return u;if(a||l){const c=Number(a||1/0);for(let d=0;d<=c&&!(!u||!("prev"in u));d++)u=u.prev;return u&&typeof l=="string"&&l in u&&(u=ft(ft(u,{prev:u}),u[l])),u}return u.prev?ft(u.prev,u):u});return Ye(as,s),s}function bw(e,t){var n,r;return typeof((n=e.props)==null?void 0:n[t])<"u"||typeof((r=e.props)==null?void 0:r[_r(t)])<"u"}function ww(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Wc();const r=Ze("useDefaults");if(t=t??r.type.name??r.type.__name,!t)throw new Error("[Vuetify] Could not determine component name");const s=A(()=>{var l;return(l=n.value)==null?void 0:l[e._as??t]}),i=new Proxy(e,{get(l,u){var d,f,h,v;const c=Reflect.get(l,u);return u==="class"||u==="style"?[(d=s.value)==null?void 0:d[u],c].filter(m=>m!=null):typeof u=="string"&&!bw(r.vnode,u)?((f=s.value)==null?void 0:f[u])??((v=(h=n.value)==null?void 0:h.global)==null?void 0:v[u])??c:c}}),o=le();nn(()=>{if(s.value){const l=Object.entries(s.value).filter(u=>{let[c]=u;return c.startsWith(c[0].toUpperCase())});o.value=l.length?Object.fromEntries(l):void 0}else o.value=void 0});function a(){const l=Ew(as,r);Ye(as,A(()=>o.value?ft((l==null?void 0:l.value)??{},o.value):l==null?void 0:l.value))}return{props:i,provideSubDefaults:a}}function ys(e){if(e._setup=e._setup??e.setup,!e.name)return e;if(e._setup){e.props=Y(e.props??{},e.name)();const t=Object.keys(e.props).filter(n=>n!=="class"&&n!=="style");e.filterProps=function(r){return H2(r,t)},e.props._as=String,e.setup=function(r,s){const i=Wc();if(!i.value)return e._setup(r,s);const{props:o,provideSubDefaults:a}=ww(r,r._as??e.name,i),l=e._setup(o,s);return a(),l}}return e}function fe(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t=>(e?ys:ht)(t)}function U7(e,t){return t.props=e,t}function Zo(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",n=arguments.length>2?arguments[2]:void 0;return fe()({name:n??ms(en(e.replace(/__/g,"-"))),props:{tag:{type:String,default:t},...ke()},setup(r,s){let{slots:i}=s;return()=>{var o;return gt(r.tag,{class:[e,r.class],style:r.style},(o=i.default)==null?void 0:o.call(i))}}})}function $v(e){if(typeof e.getRootNode!="function"){for(;e.parentNode;)e=e.parentNode;return e!==document?null:document}const t=e.getRootNode();return t!==document&&t.getRootNode({composed:!0})!==document?null:t}const Ll="cubic-bezier(0.4, 0, 0.2, 1)",_w="cubic-bezier(0.0, 0, 0.2, 1)",Sw="cubic-bezier(0.4, 0, 1, 1)";function Ze(e,t){const n=Pr();if(!n)throw new Error(`[Vuetify] ${e} must be called from inside a setup function`);return n}function tr(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const t=Ze(e).type;return _r((t==null?void 0:t.aliasName)||(t==null?void 0:t.name))}let Vv=0,no=new WeakMap;function Rr(){const e=Ze("getUid");if(no.has(e))return no.get(e);{const t=Vv++;return no.set(e,t),t}}Rr.reset=()=>{Vv=0,no=new WeakMap};function Cw(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;e;){if(t?kw(e):qc(e))return e;e=e.parentElement}return document.scrollingElement}function Eo(e,t){const n=[];if(t&&e&&!t.contains(e))return n;for(;e&&(qc(e)&&n.push(e),e!==t);)e=e.parentElement;return n}function qc(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e);return t.overflowY==="scroll"||t.overflowY==="auto"&&e.scrollHeight>e.clientHeight}function kw(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e);return["scroll","auto"].includes(t.overflowY)}function Ew(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ze("injectSelf");const{provides:n}=t;if(n&&e in n)return n[e]}function Tw(e){for(;e;){if(window.getComputedStyle(e).position==="fixed")return!0;e=e.offsetParent}return!1}function ye(e){const t=Ze("useRender");t.render=e}const et=[String,Function,Object,Array],Pl=Symbol.for("vuetify:icons"),Xo=Y({icon:{type:et},tag:{type:String,required:!0}},"icon"),qd=fe()({name:"VComponentIcon",props:Xo(),setup(e,t){let{slots:n}=t;return()=>{const r=e.icon;return b(e.tag,null,{default:()=>{var s;return[e.icon?b(r,null,null):(s=n.default)==null?void 0:s.call(n)]}})}}}),Kc=ys({name:"VSvgIcon",inheritAttrs:!1,props:Xo(),setup(e,t){let{attrs:n}=t;return()=>b(e.tag,Te(n,{style:null}),{default:()=>[b("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(e.icon)?e.icon.map(r=>Array.isArray(r)?b("path",{d:r[0],"fill-opacity":r[1]},null):b("path",{d:r},null)):b("path",{d:e.icon},null)])]})}});ys({name:"VLigatureIcon",props:Xo(),setup(e){return()=>b(e.tag,null,{default:()=>[e.icon]})}});const Hv=ys({name:"VClassIcon",props:Xo(),setup(e){return()=>b(e.tag,{class:e.icon},null)}});function Aw(){return{svg:{component:Kc},class:{component:Hv}}}function xw(e){const t=Aw(),n=(e==null?void 0:e.defaultSet)??"mdi";return n==="mdi"&&!t.mdi&&(t.mdi=R2),ft({defaultSet:n,sets:t,aliases:{...I2,vuetify:["M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z",["M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z",.6]],"vuetify-outline":"svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z","vuetify-play":["m6.376 13.184-4.11-7.192C1.505 4.66 2.467 3 4.003 3h8.532l-.953 1.576-.006.01-.396.677c-.429.732-.214 1.507.194 2.015.404.503 1.092.878 1.869.806a3.72 3.72 0 0 1 1.005.022c.276.053.434.143.523.237.138.146.38.635-.25 2.09-.893 1.63-1.553 1.722-1.847 1.677-.213-.033-.468-.158-.756-.406a4.95 4.95 0 0 1-.8-.927c-.39-.564-1.04-.84-1.66-.846-.625-.006-1.316.27-1.693.921l-.478.826-.911 1.506Z",["M9.093 11.552c.046-.079.144-.15.32-.148a.53.53 0 0 1 .43.207c.285.414.636.847 1.046 1.2.405.35.914.662 1.516.754 1.334.205 2.502-.698 3.48-2.495l.014-.028.013-.03c.687-1.574.774-2.852-.005-3.675-.37-.391-.861-.586-1.333-.676a5.243 5.243 0 0 0-1.447-.044c-.173.016-.393-.073-.54-.257-.145-.18-.127-.316-.082-.392l.393-.672L14.287 3h5.71c1.536 0 2.499 1.659 1.737 2.992l-7.997 13.996c-.768 1.344-2.706 1.344-3.473 0l-3.037-5.314 1.377-2.278.004-.006.004-.007.481-.831Z",.6]]}},e)}const Lw=e=>{const t=Se(Pl);if(!t)throw new Error("Missing Vuetify Icons provide!");return{iconData:A(()=>{var l;const r=Z(e);if(!r)return{component:qd};let s=r;if(typeof s=="string"&&(s=s.trim(),s.startsWith("$")&&(s=(l=t.aliases)==null?void 0:l[s.slice(1)])),Array.isArray(s))return{component:Kc,icon:s};if(typeof s!="string")return{component:qd,icon:s};const i=Object.keys(t.sets).find(u=>typeof s=="string"&&s.startsWith(`${u}:`)),o=i?s.slice(i.length+1):s;return{component:t.sets[i??t.defaultSet].component,icon:o}})}},Pw={collapse:"svg:M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z",complete:"svg:M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",cancel:"svg:M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",close:"svg:M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",delete:"svg:M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",clear:"svg:M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",success:"svg:M12,2C17.52,2 22,6.48 22,12C22,17.52 17.52,22 12,22C6.48,22 2,17.52 2,12C2,6.48 6.48,2 12,2M11,16.5L18,9.5L16.59,8.09L11,13.67L7.91,10.59L6.5,12L11,16.5Z",info:"svg:M13,9H11V7H13M13,17H11V11H13M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z",warning:"svg:M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",error:"svg:M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",prev:"svg:M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",next:"svg:M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",checkboxOn:"svg:M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3Z",checkboxOff:"svg:M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z",checkboxIndeterminate:"svg:M17,13H7V11H17M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3Z",delimiter:"svg:M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z",sortAsc:"svg:M13,20H11V8L5.5,13.5L4.08,12.08L12,4.16L19.92,12.08L18.5,13.5L13,8V20Z",sortDesc:"svg:M11,4H13V16L18.5,10.5L19.92,11.92L12,19.84L4.08,11.92L5.5,10.5L11,16V4Z",expand:"svg:M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z",menu:"svg:M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z",subgroup:"svg:M7,10L12,15L17,10H7Z",dropdown:"svg:M7,10L12,15L17,10H7Z",radioOn:"svg:M12,20C7.58,20 4,16.42 4,12C4,7.58 7.58,4 12,4C16.42,4 20,7.58 20,12C20,16.42 16.42,20 12,20M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2M12,7C9.24,7 7,9.24 7,12C7,14.76 9.24,17 12,17C14.76,17 17,14.76 17,12C17,9.24 14.76,7 12,7Z",radioOff:"svg:M12,20C7.58,20 4,16.42 4,12C4,7.58 7.58,4 12,4C16.42,4 20,7.58 20,12C20,16.42 16.42,20 12,20M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z",edit:"svg:M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z",ratingEmpty:"svg:M12,15.39L8.24,17.66L9.23,13.38L5.91,10.5L10.29,10.13L12,6.09L13.71,10.13L18.09,10.5L14.77,13.38L15.76,17.66M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z",ratingFull:"svg:M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z",ratingHalf:"svg:M12,15.4V6.1L13.71,10.13L18.09,10.5L14.77,13.39L15.76,17.67M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z",loading:"svg:M19,8L15,12H18C18,15.31 15.31,18 12,18C11,18 10.03,17.75 9.2,17.3L7.74,18.76C8.97,19.54 10.43,20 12,20C16.42,20 20,16.42 20,12H23M6,12C6,8.69 8.69,6 12,6C13,6 13.97,6.25 14.8,6.7L16.26,5.24C15.03,4.46 13.57,4 12,4C7.58,4 4,7.58 4,12H1L5,16L9,12",first:"svg:M18.41,16.59L13.82,12L18.41,7.41L17,6L11,12L17,18L18.41,16.59M6,6H8V18H6V6Z",last:"svg:M5.59,7.41L10.18,12L5.59,16.59L7,18L13,12L7,6L5.59,7.41M16,6H18V18H16V6Z",unfold:"svg:M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z",file:"svg:M16.5,6V17.5C16.5,19.71 14.71,21.5 12.5,21.5C10.29,21.5 8.5,19.71 8.5,17.5V5C8.5,3.62 9.62,2.5 11,2.5C12.38,2.5 13.5,3.62 13.5,5V15.5C13.5,16.05 13.05,16.5 12.5,16.5C11.95,16.5 11.5,16.05 11.5,15.5V6H10V15.5C10,16.88 11.12,18 12.5,18C13.88,18 15,16.88 15,15.5V5C15,2.79 13.21,1 11,1C8.79,1 7,2.79 7,5V17.5C7,20.54 9.46,23 12.5,23C15.54,23 18,20.54 18,17.5V6H16.5Z",plus:"svg:M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",minus:"svg:M19,13H5V11H19V13Z",calendar:"svg:M19,19H5V8H19M16,1V3H8V1H6V3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3H18V1M17,12H12V17H17V12Z",treeviewCollapse:"svg:M7,10L12,15L17,10H7Z",treeviewExpand:"svg:M10,17L15,12L10,7V17Z",eyeDropper:"svg:M19.35,11.72L17.22,13.85L15.81,12.43L8.1,20.14L3.5,22L2,20.5L3.86,15.9L11.57,8.19L10.15,6.78L12.28,4.65L19.35,11.72M16.76,3C17.93,1.83 19.83,1.83 21,3C22.17,4.17 22.17,6.07 21,7.24L19.08,9.16L14.84,4.92L16.76,3M5.56,17.03L4.5,19.5L6.97,18.44L14.4,11L13,9.6L5.56,17.03Z"},Ow={component:Kc};function Iw(){return{defaultSet:"mdi",aliases:Pw,sets:{mdi:Ow}}}function Rw(e){{const t=Iw();if((t==null?void 0:t.defaultSet)==="custom")return;e.icons=t}}const Mw=ot({name:"vuetify:icons:plugin",order:-25,parallel:!0,setup(e){e.hook("vuetify:configuration",({vuetifyOptions:t})=>{Rw(t)})}}),$w=[],Vw=ot({name:"nuxt:head",enforce:"pre",setup(e){const t=g2({plugins:$w});p2(()=>Ue().vueApp._context.provides.usehead),e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await fv(t)};t.hooks.hook("dom:beforeRender",s=>{s.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||r()}),e.hooks.hook("app:error",r),e.hooks.hook("app:suspense:resolve",r)}}});/*! + * vue-router v4.3.2 + * (c) 2024 Eduardo San Martin Morote + * @license MIT + */const qr=typeof document<"u";function Hw(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const xe=Object.assign;function Oa(e,t){const n={};for(const r in t){const s=t[r];n[r]=dn(s)?s.map(e):e(s)}return n}const Bs=()=>{},dn=Array.isArray,Dv=/#/g,Dw=/&/g,jw=/\//g,Nw=/=/g,Bw=/\?/g,jv=/\+/g,Fw=/%5B/g,Uw=/%5D/g,Nv=/%5E/g,zw=/%60/g,Bv=/%7B/g,Ww=/%7C/g,Fv=/%7D/g,qw=/%20/g;function Gc(e){return encodeURI(""+e).replace(Ww,"|").replace(Fw,"[").replace(Uw,"]")}function Kw(e){return Gc(e).replace(Bv,"{").replace(Fv,"}").replace(Nv,"^")}function Ol(e){return Gc(e).replace(jv,"%2B").replace(qw,"+").replace(Dv,"%23").replace(Dw,"%26").replace(zw,"`").replace(Bv,"{").replace(Fv,"}").replace(Nv,"^")}function Gw(e){return Ol(e).replace(Nw,"%3D")}function Yw(e){return Gc(e).replace(Dv,"%23").replace(Bw,"%3F")}function Jw(e){return e==null?"":Yw(e).replace(jw,"%2F")}function ni(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Zw=/\/$/,Xw=e=>e.replace(Zw,"");function Ia(e,t,n="/"){let r,s={},i="",o="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(r=t.slice(0,l),i=t.slice(l+1,a>-1?a:t.length),s=e(i)),a>-1&&(r=r||t.slice(0,a),o=t.slice(a,t.length)),r=n_(r??t,n),{fullPath:r+(i&&"?")+i+o,path:r,query:s,hash:ni(o)}}function Qw(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Kd(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function e_(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&ls(t.matched[r],n.matched[s])&&Uv(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function ls(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Uv(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!t_(e[n],t[n]))return!1;return!0}function t_(e,t){return dn(e)?Gd(e,t):dn(t)?Gd(t,e):e===t}function Gd(e,t){return dn(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function n_(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let i=n.length-1,o,a;for(o=0;o1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(o).join("/")}var ri;(function(e){e.pop="pop",e.push="push"})(ri||(ri={}));var Fs;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Fs||(Fs={}));function r_(e){if(!e)if(qr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Xw(e)}const s_=/^[^#]+#/;function i_(e,t){return e.replace(s_,"#")+t}function o_(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Qo=()=>({left:window.scrollX,top:window.scrollY});function a_(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=o_(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Yd(e,t){return(history.state?history.state.position-t:-1)+e}const Il=new Map;function l_(e,t){Il.set(e,t)}function c_(e){const t=Il.get(e);return Il.delete(e),t}let u_=()=>location.protocol+"//"+location.host;function zv(e,t){const{pathname:n,search:r,hash:s}=t,i=e.indexOf("#");if(i>-1){let a=s.includes(e.slice(i))?e.slice(i).length:1,l=s.slice(a);return l[0]!=="/"&&(l="/"+l),Kd(l,"")}return Kd(n,e)+r+s}function d_(e,t,n,r){let s=[],i=[],o=null;const a=({state:f})=>{const h=zv(e,location),v=n.value,m=t.value;let p=0;if(f){if(n.value=h,t.value=f,o&&o===v){o=null;return}p=m?f.position-m.position:0}else r(h);s.forEach(S=>{S(n.value,v,{delta:p,type:ri.pop,direction:p?p>0?Fs.forward:Fs.back:Fs.unknown})})};function l(){o=n.value}function u(f){s.push(f);const h=()=>{const v=s.indexOf(f);v>-1&&s.splice(v,1)};return i.push(h),h}function c(){const{history:f}=window;f.state&&f.replaceState(xe({},f.state,{scroll:Qo()}),"")}function d(){for(const f of i)f();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:d}}function Jd(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?Qo():null}}function f_(e){const{history:t,location:n}=window,r={value:zv(e,n)},s={value:t.state};s.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,u,c){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:u_()+e+l;try{t[c?"replaceState":"pushState"](u,"",f),s.value=u}catch(h){console.error(h),n[c?"replace":"assign"](f)}}function o(l,u){const c=xe({},t.state,Jd(s.value.back,l,s.value.forward,!0),u,{position:s.value.position});i(l,c,!0),r.value=l}function a(l,u){const c=xe({},s.value,t.state,{forward:l,scroll:Qo()});i(c.current,c,!0);const d=xe({},Jd(r.value,l,null),{position:c.position+1},u);i(l,d,!1),r.value=l}return{location:r,state:s,push:a,replace:o}}function Wv(e){e=r_(e);const t=f_(e),n=d_(e,t.state,t.location,t.replace);function r(i,o=!0){o||n.pauseListeners(),history.go(i)}const s=xe({location:"",base:e,go:r,createHref:i_.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function h_(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Wv(e)}function m_(e){return typeof e=="string"||e&&typeof e=="object"}function qv(e){return typeof e=="string"||typeof e=="symbol"}const an={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Kv=Symbol("");var Zd;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Zd||(Zd={}));function cs(e,t){return xe(new Error,{type:e,[Kv]:!0},t)}function yn(e,t){return e instanceof Error&&Kv in e&&(t==null||!!(e.type&t))}const Xd="[^/]+?",v_={sensitive:!1,strict:!1,start:!0,end:!0},g_=/[.+*?^${}()[\]/\\]/g;function p_(e,t){const n=xe({},v_,t),r=[];let s=n.start?"^":"";const i=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(s+="/");for(let d=0;dt.length?t.length===1&&t[0]===80?1:-1:0}function b_(e,t){let n=0;const r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const w_={type:0,value:""},__=/[a-zA-Z0-9_]/;function S_(e){if(!e)return[[]];if(e==="/")return[[w_]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}let n=0,r=n;const s=[];let i;function o(){i&&s.push(i),i=[]}let a=0,l,u="",c="";function d(){u&&(n===0?i.push({type:0,value:u}):n===1||n===2||n===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function f(){u+=l}for(;a{o(y)}:Bs}function o(c){if(qv(c)){const d=r.get(c);d&&(r.delete(c),n.splice(n.indexOf(d),1),d.children.forEach(o),d.alias.forEach(o))}else{const d=n.indexOf(c);d>-1&&(n.splice(d,1),c.record.name&&r.delete(c.record.name),c.children.forEach(o),c.alias.forEach(o))}}function a(){return n}function l(c){let d=0;for(;d=0&&(c.record.path!==n[d].record.path||!Gv(c,n[d]));)d++;n.splice(d,0,c),c.record.name&&!tf(c)&&r.set(c.record.name,c)}function u(c,d){let f,h={},v,m;if("name"in c&&c.name){if(f=r.get(c.name),!f)throw cs(1,{location:c});m=f.record.name,h=xe(ef(d.params,f.keys.filter(y=>!y.optional).concat(f.parent?f.parent.keys.filter(y=>y.optional):[]).map(y=>y.name)),c.params&&ef(c.params,f.keys.map(y=>y.name))),v=f.stringify(h)}else if(c.path!=null)v=c.path,f=n.find(y=>y.re.test(v)),f&&(h=f.parse(v),m=f.record.name);else{if(f=d.name?r.get(d.name):n.find(y=>y.re.test(d.path)),!f)throw cs(1,{location:c,currentLocation:d});m=f.record.name,h=xe({},d.params,c.params),v=f.stringify(h)}const p=[];let S=f;for(;S;)p.unshift(S.record),S=S.parent;return{name:m,path:v,params:h,matched:p,meta:A_(p)}}return e.forEach(c=>i(c)),{addRoute:i,resolve:u,removeRoute:o,getRoutes:a,getRecordMatcher:s}}function ef(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function E_(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:T_(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function T_(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function tf(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function A_(e){return e.reduce((t,n)=>xe(t,n.meta),{})}function nf(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Gv(e,t){return t.children.some(n=>n===e||Gv(e,n))}function x_(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;si&&Ol(i)):[r&&Ol(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function L_(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=dn(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const P_=Symbol(""),sf=Symbol(""),Yc=Symbol(""),Yv=Symbol(""),Rl=Symbol("");function ks(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Wn(e,t,n,r,s,i=o=>o()){const o=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((a,l)=>{const u=f=>{f===!1?l(cs(4,{from:n,to:t})):f instanceof Error?l(f):m_(f)?l(cs(2,{from:t,to:f})):(o&&r.enterCallbacks[s]===o&&typeof f=="function"&&o.push(f),a())},c=i(()=>e.call(r&&r.instances[s],t,n,u));let d=Promise.resolve(c);e.length<3&&(d=d.then(u)),d.catch(f=>l(f))})}function Ra(e,t,n,r,s=i=>i()){const i=[];for(const o of e)for(const a in o.components){let l=o.components[a];if(!(t!=="beforeRouteEnter"&&!o.instances[a]))if(O_(l)){const c=(l.__vccOpts||l)[t];c&&i.push(Wn(c,n,r,o,a,s))}else{let u=l();i.push(()=>u.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${a}" at "${o.path}"`));const d=Hw(c)?c.default:c;o.components[a]=d;const h=(d.__vccOpts||d)[t];return h&&Wn(h,n,r,o,a,s)()}))}}return i}function O_(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function of(e){const t=Se(Yc),n=Se(Yv),r=A(()=>{const l=Z(e.to);return t.resolve(l)}),s=A(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],d=n.matched;if(!c||!d.length)return-1;const f=d.findIndex(ls.bind(null,c));if(f>-1)return f;const h=af(l[u-2]);return u>1&&af(c)===h&&d[d.length-1].path!==h?d.findIndex(ls.bind(null,l[u-2])):f}),i=A(()=>s.value>-1&&$_(n.params,r.value.params)),o=A(()=>s.value>-1&&s.value===n.matched.length-1&&Uv(n.params,r.value.params));function a(l={}){return M_(l)?t[Z(e.replace)?"replace":"push"](Z(e.to)).catch(Bs):Promise.resolve()}return{route:r,href:A(()=>r.value.href),isActive:i,isExactActive:o,navigate:a}}const I_=ht({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:of,setup(e,{slots:t}){const n=Be(of(e)),{options:r}=Se(Yc),s=A(()=>({[lf(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[lf(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:gt("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},i)}}}),R_=I_;function M_(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function $_(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!dn(s)||s.length!==r.length||r.some((i,o)=>i!==s[o]))return!1}return!0}function af(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const lf=(e,t,n)=>e??t??n,V_=ht({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Se(Rl),s=A(()=>e.route||r.value),i=Se(sf,0),o=A(()=>{let u=Z(i);const{matched:c}=s.value;let d;for(;(d=c[u])&&!d.components;)u++;return u}),a=A(()=>s.value.matched[o.value]);Ye(sf,A(()=>o.value+1)),Ye(P_,a),Ye(Rl,s);const l=N();return se(()=>[l.value,a.value,e.name],([u,c,d],[f,h,v])=>{c&&(c.instances[d]=u,h&&h!==c&&u&&u===f&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),u&&c&&(!h||!ls(c,h)||!f)&&(c.enterCallbacks[d]||[]).forEach(m=>m(u))},{flush:"post"}),()=>{const u=s.value,c=e.name,d=a.value,f=d&&d.components[c];if(!f)return cf(n.default,{Component:f,route:u});const h=d.props[c],v=h?h===!0?u.params:typeof h=="function"?h(u):h:null,p=gt(f,xe({},v,t,{onVnodeUnmounted:S=>{S.component.isUnmounted&&(d.instances[c]=null)},ref:l}));return cf(n.default,{Component:p,route:u})||p}}});function cf(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Jv=V_;function H_(e){const t=k_(e.routes,e),n=e.parseQuery||x_,r=e.stringifyQuery||rf,s=e.history,i=ks(),o=ks(),a=ks(),l=le(an);let u=an;qr&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Oa.bind(null,M=>""+M),d=Oa.bind(null,Jw),f=Oa.bind(null,ni);function h(M,W){let K,ee;return qv(M)?(K=t.getRecordMatcher(M),ee=W):ee=M,t.addRoute(ee,K)}function v(M){const W=t.getRecordMatcher(M);W&&t.removeRoute(W)}function m(){return t.getRoutes().map(M=>M.record)}function p(M){return!!t.getRecordMatcher(M)}function S(M,W){if(W=xe({},W||l.value),typeof M=="string"){const k=Ia(n,M,W.path),I=t.resolve({path:k.path},W),D=s.createHref(k.fullPath);return xe(k,I,{params:f(I.params),hash:ni(k.hash),redirectedFrom:void 0,href:D})}let K;if(M.path!=null)K=xe({},M,{path:Ia(n,M.path,W.path).path});else{const k=xe({},M.params);for(const I in k)k[I]==null&&delete k[I];K=xe({},M,{params:d(k)}),W.params=d(W.params)}const ee=t.resolve(K,W),Ae=M.hash||"";ee.params=c(f(ee.params));const De=Qw(r,xe({},M,{hash:Kw(Ae),path:ee.path})),w=s.createHref(De);return xe({fullPath:De,hash:Ae,query:r===rf?L_(M.query):M.query||{}},ee,{redirectedFrom:void 0,href:w})}function y(M){return typeof M=="string"?Ia(n,M,l.value.path):xe({},M)}function g(M,W){if(u!==M)return cs(8,{from:W,to:M})}function _(M){return C(M)}function T(M){return _(xe(y(M),{replace:!0}))}function E(M){const W=M.matched[M.matched.length-1];if(W&&W.redirect){const{redirect:K}=W;let ee=typeof K=="function"?K(M):K;return typeof ee=="string"&&(ee=ee.includes("?")||ee.includes("#")?ee=y(ee):{path:ee},ee.params={}),xe({query:M.query,hash:M.hash,params:ee.path!=null?{}:M.params},ee)}}function C(M,W){const K=u=S(M),ee=l.value,Ae=M.state,De=M.force,w=M.replace===!0,k=E(K);if(k)return C(xe(y(k),{state:typeof k=="object"?xe({},Ae,k.state):Ae,force:De,replace:w}),W||K);const I=K;I.redirectedFrom=W;let D;return!De&&e_(r,ee,K)&&(D=cs(16,{to:I,from:ee}),Ee(ee,ee,!0,!1)),(D?Promise.resolve(D):O(I,ee)).catch(V=>yn(V)?yn(V,2)?V:he(V):F(V,I,ee)).then(V=>{if(V){if(yn(V,2))return C(xe({replace:w},y(V.to),{state:typeof V.to=="object"?xe({},Ae,V.to.state):Ae,force:De}),W||I)}else V=L(I,ee,!0,w,Ae);return R(I,ee,V),V})}function x(M,W){const K=g(M,W);return K?Promise.reject(K):Promise.resolve()}function P(M){const W=tt.values().next().value;return W&&typeof W.runWithContext=="function"?W.runWithContext(M):M()}function O(M,W){let K;const[ee,Ae,De]=D_(M,W);K=Ra(ee.reverse(),"beforeRouteLeave",M,W);for(const k of ee)k.leaveGuards.forEach(I=>{K.push(Wn(I,M,W))});const w=x.bind(null,M,W);return K.push(w),Ce(K).then(()=>{K=[];for(const k of i.list())K.push(Wn(k,M,W));return K.push(w),Ce(K)}).then(()=>{K=Ra(Ae,"beforeRouteUpdate",M,W);for(const k of Ae)k.updateGuards.forEach(I=>{K.push(Wn(I,M,W))});return K.push(w),Ce(K)}).then(()=>{K=[];for(const k of De)if(k.beforeEnter)if(dn(k.beforeEnter))for(const I of k.beforeEnter)K.push(Wn(I,M,W));else K.push(Wn(k.beforeEnter,M,W));return K.push(w),Ce(K)}).then(()=>(M.matched.forEach(k=>k.enterCallbacks={}),K=Ra(De,"beforeRouteEnter",M,W,P),K.push(w),Ce(K))).then(()=>{K=[];for(const k of o.list())K.push(Wn(k,M,W));return K.push(w),Ce(K)}).catch(k=>yn(k,8)?k:Promise.reject(k))}function R(M,W,K){a.list().forEach(ee=>P(()=>ee(M,W,K)))}function L(M,W,K,ee,Ae){const De=g(M,W);if(De)return De;const w=W===an,k=qr?history.state:{};K&&(ee||w?s.replace(M.fullPath,xe({scroll:w&&k&&k.scroll},Ae)):s.push(M.fullPath,Ae)),l.value=M,Ee(M,W,K,w),he()}let $;function z(){$||($=s.listen((M,W,K)=>{if(!we.listening)return;const ee=S(M),Ae=E(ee);if(Ae){C(xe(Ae,{replace:!0}),ee).catch(Bs);return}u=ee;const De=l.value;qr&&l_(Yd(De.fullPath,K.delta),Qo()),O(ee,De).catch(w=>yn(w,12)?w:yn(w,2)?(C(w.to,ee).then(k=>{yn(k,20)&&!K.delta&&K.type===ri.pop&&s.go(-1,!1)}).catch(Bs),Promise.reject()):(K.delta&&s.go(-K.delta,!1),F(w,ee,De))).then(w=>{w=w||L(ee,De,!1),w&&(K.delta&&!yn(w,8)?s.go(-K.delta,!1):K.type===ri.pop&&yn(w,20)&&s.go(-1,!1)),R(ee,De,w)}).catch(Bs)}))}let Q=ks(),H=ks(),X;function F(M,W,K){he(M);const ee=H.list();return ee.length?ee.forEach(Ae=>Ae(M,W,K)):console.error(M),Promise.reject(M)}function Pe(){return X&&l.value!==an?Promise.resolve():new Promise((M,W)=>{Q.add([M,W])})}function he(M){return X||(X=!M,z(),Q.list().forEach(([W,K])=>M?K(M):W()),Q.reset()),M}function Ee(M,W,K,ee){const{scrollBehavior:Ae}=e;if(!qr||!Ae)return Promise.resolve();const De=!K&&c_(Yd(M.fullPath,0))||(ee||!K)&&history.state&&history.state.scroll||null;return Ke().then(()=>Ae(M,W,De)).then(w=>w&&a_(w)).catch(w=>F(w,M,W))}const me=M=>s.go(M);let ct;const tt=new Set,we={currentRoute:l,listening:!0,addRoute:h,removeRoute:v,hasRoute:p,getRoutes:m,resolve:S,options:e,push:_,replace:T,go:me,back:()=>me(-1),forward:()=>me(1),beforeEach:i.add,beforeResolve:o.add,afterEach:a.add,onError:H.add,isReady:Pe,install(M){const W=this;M.component("RouterLink",R_),M.component("RouterView",Jv),M.config.globalProperties.$router=W,Object.defineProperty(M.config.globalProperties,"$route",{enumerable:!0,get:()=>Z(l)}),qr&&!ct&&l.value===an&&(ct=!0,_(s.location).catch(Ae=>{}));const K={};for(const Ae in an)Object.defineProperty(K,Ae,{get:()=>l.value[Ae],enumerable:!0});M.provide(Yc,W),M.provide(Yv,mi(K)),M.provide(Rl,l);const ee=M.unmount;tt.add(M),M.unmount=function(){tt.delete(M),tt.size<1&&(u=an,$&&$(),$=null,l.value=an,ct=!1,X=!1),ee()}}};function Ce(M){return M.reduce((W,K)=>W.then(()=>P(K)),Promise.resolve())}return we}function D_(e,t){const n=[],r=[],s=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;ols(u,a))?r.push(a):n.push(a));const l=e.matched[o];l&&(t.matched.find(u=>ls(u,l))||s.push(l))}return[n,r,s]}const j_=(e,t)=>t.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""}),Ml=(e,t)=>{const n=e.route.matched.find(s=>{var i;return((i=s.components)==null?void 0:i.default)===e.Component.type}),r=t??(n==null?void 0:n.meta.key)??(n&&j_(e.route,n));return typeof r=="function"?r(e.route):r},N_=(e,t)=>({default:()=>e?gt(V0,e===!0?{}:e,t):t});function Jc(e){return Array.isArray(e)?e:[e]}const B_="modulepreload",F_=function(e,t){return e[0]==="."?new URL(e,t).href:e},uf={},U_=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){const i=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));s=Promise.all(n.map(l=>{if(l=F_(l,r),l in uf)return;uf[l]=!0;const u=l.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(!!r)for(let h=i.length-1;h>=0;h--){const v=i[h];if(v.href===l&&(!u||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${c}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":B_,u||(f.as="script",f.crossOrigin=""),f.href=l,a&&f.setAttribute("nonce",a),document.head.appendChild(f),u)return new Promise((h,v)=>{f.addEventListener("load",h),f.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${l}`)))})}))}return s.then(()=>t()).catch(i=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i})},Ie=(...e)=>U_(...e).catch(t=>{const n=new Event("nuxt.preloadError");throw n.payload=t,window.dispatchEvent(n),t}),St={icon:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",title:"About",drawerIndex:15,bottom:!0},Ct={icon:"M16 17V19H2V17S2 13 9 13 16 17 16 17M12.5 7.5A3.5 3.5 0 1 0 9 11A3.5 3.5 0 0 0 12.5 7.5M15.94 13A5.32 5.32 0 0 1 18 17V19H22V17S22 13.37 15.94 13M15 4A3.39 3.39 0 0 0 13.07 4.59A5 5 0 0 1 13.07 10.41A3.39 3.39 0 0 0 15 11A3.5 3.5 0 0 0 15 4Z",title:"Friends",drawerIndex:6,group:4},kt={icon:"M5 9.15V7C5 5.9 5.9 5 7 5H17C18.1 5 19 5.9 19 7V9.16C17.84 9.57 17 10.67 17 11.97V14H7V11.96C7 10.67 6.16 9.56 5 9.15M20 10C18.9 10 18 10.9 18 12V15H6V12C6 10.9 5.11 10 4 10S2 10.9 2 12V17C2 18.1 2.9 19 4 19V21H6V19H18V21H20V19C21.1 19 22 18.1 22 17V12C22 10.9 21.1 10 20 10Z",title:"Dashboard",drawerIndex:1,group:1},Et={title:"Inventory"},Tt={icon:"M16,5V4A2,2 0 0,0 14,2H10A2,2 0 0,0 8,4V5A4,4 0 0,0 4,9V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V9A4,4 0 0,0 16,5M10,4H14V5H10V4M12,9L14,11L12,13L10,11L12,9M18,16H9V18H8V16H6V15H18V16Z",title:"Inventories",drawerIndex:5,group:3},At={title:"Inventory"},xt={title:"Item"},Lt={icon:"M12,2L22,8C22,12 20,14 16,15L13,10L9,6L12,2M4.11,19.84L2.12,18.33L9.19,9L11,10.81L4.11,19.84Z",title:"Items",drawerIndex:4,group:3},Ma=null,$a=null,Pt={title:"Route"},Ot={icon:"M11,12H3.5L6,9.5L3.5,7H11V3L12,2L13,3V7H18L20.5,9.5L18,12H13V20A2,2 0 0,1 15,22H9A2,2 0 0,1 11,20V12Z",title:"Routes",drawerIndex:3,group:2},Va=null,It={title:"gpx.studio",icon:"M12,2C15.31,2 18,4.66 18,7.95C18,12.41 12,19 12,19C12,19 6,12.41 6,7.95C6,4.66 8.69,2 12,2M12,6A2,2 0 0,0 10,8A2,2 0 0,0 12,10A2,2 0 0,0 14,8A2,2 0 0,0 12,6M20,19C20,21.21 16.42,23 12,23C7.58,23 4,21.21 4,19C4,17.71 5.22,16.56 7.11,15.83L7.75,16.74C6.67,17.19 6,17.81 6,18.5C6,19.88 8.69,21 12,21C15.31,21 18,19.88 18,18.5C18,17.81 17.33,17.19 16.25,16.74L16.89,15.83C18.78,16.56 20,17.71 20,19Z",drawerIndex:2},Rt={title:"Pl@ntNet",icon:"M2,22V20C2,20 7,18 12,18C17,18 22,20 22,20V22H2M11.3,9.1C10.1,5.2 4,6.1 4,6.1C4,6.1 4.2,13.9 9.9,12.7C9.5,9.8 8,9 8,9C10.8,9 11,12.4 11,12.4V17C11.3,17 11.7,17 12,17C12.3,17 12.7,17 13,17V12.8C13,12.8 13,8.9 16,7.9C16,7.9 14,10.9 14,12.9C21,13.6 21,4 21,4C21,4 12.1,3 11.3,9.1Z",drawerIndex:1},Mt={title:"Tools",icon:"M21.71 20.29L20.29 21.71A1 1 0 0 1 18.88 21.71L7 9.85A3.81 3.81 0 0 1 6 10A4 4 0 0 1 2.22 4.7L4.76 7.24L5.29 6.71L6.71 5.29L7.24 4.76L4.7 2.22A4 4 0 0 1 10 6A3.81 3.81 0 0 1 9.85 7L21.71 18.88A1 1 0 0 1 21.71 20.29M2.29 18.88A1 1 0 0 0 2.29 20.29L3.71 21.71A1 1 0 0 0 5.12 21.71L10.59 16.25L7.76 13.42M20 2L16 4V6L13.83 8.17L15.83 10.17L18 8H20L22 4Z",drawerIndex:6,breadcrumb:"disabled",bottom:!0},$t={title:"Trip"},Vt={icon:"M14.12,10H19V8.2H15.38L13.38,4.87C13.08,4.37 12.54,4.03 11.92,4.03C11.74,4.03 11.58,4.06 11.42,4.11L6,5.8V11H7.8V7.33L9.91,6.67L6,22H7.8L10.67,13.89L13,17V22H14.8V15.59L12.31,11.05L13.04,8.18M14,3.8C15,3.8 15.8,3 15.8,2C15.8,1 15,0.2 14,0.2C13,0.2 12.2,1 12.2,2C12.2,3 13,3.8 14,3.8Z",title:"Trips",drawerIndex:2,group:2},df=[{name:(St==null?void 0:St.name)??"about",path:(St==null?void 0:St.path)??"/about",meta:St||{},alias:(St==null?void 0:St.alias)||[],redirect:St==null?void 0:St.redirect,component:()=>Ie(()=>import("./BQlgBGbc.js"),__vite__mapDeps([0,1,2,3]),import.meta.url).then(e=>e.default||e)},{name:(Ct==null?void 0:Ct.name)??"friends",path:(Ct==null?void 0:Ct.path)??"/friends",meta:Ct||{},alias:(Ct==null?void 0:Ct.alias)||[],redirect:Ct==null?void 0:Ct.redirect,component:()=>Ie(()=>import("./D8yJ59FN.js"),__vite__mapDeps([4,1]),import.meta.url).then(e=>e.default||e)},{name:(kt==null?void 0:kt.name)??"index",path:(kt==null?void 0:kt.path)??"/",meta:kt||{},alias:(kt==null?void 0:kt.alias)||[],redirect:kt==null?void 0:kt.redirect,component:()=>Ie(()=>import("./BG-w5dbx.js"),__vite__mapDeps([5,6,7,1]),import.meta.url).then(e=>e.default||e)},{name:(Et==null?void 0:Et.name)??"inventories-id",path:(Et==null?void 0:Et.path)??"/inventories/:id()",meta:Et||{},alias:(Et==null?void 0:Et.alias)||[],redirect:Et==null?void 0:Et.redirect,component:()=>Ie(()=>import("./BXIHKiAW.js"),__vite__mapDeps([8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,6,7,25,26,1,2,27,28]),import.meta.url).then(e=>e.default||e)},{name:(Tt==null?void 0:Tt.name)??"inventories",path:(Tt==null?void 0:Tt.path)??"/inventories",meta:Tt||{},alias:(Tt==null?void 0:Tt.alias)||[],redirect:Tt==null?void 0:Tt.redirect,component:()=>Ie(()=>import("./BJ4BBGKM.js"),__vite__mapDeps([29,30,2,31,13,14,32,10,11,12,15,33,1]),import.meta.url).then(e=>e.default||e)},{name:(At==null?void 0:At.name)??"inventories-new",path:(At==null?void 0:At.path)??"/inventories/new",meta:At||{},alias:(At==null?void 0:At.alias)||[],redirect:At==null?void 0:At.redirect,component:()=>Ie(()=>import("./pKNvLgOZ.js"),__vite__mapDeps([34,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,6,7,25,26,1,2,27,28]),import.meta.url).then(e=>e.default||e)},{name:(xt==null?void 0:xt.name)??"items-id",path:(xt==null?void 0:xt.path)??"/items/:id()",meta:xt||{},alias:(xt==null?void 0:xt.alias)||[],redirect:xt==null?void 0:xt.redirect,component:()=>Ie(()=>import("./BoUqoHPM.js"),__vite__mapDeps([35,36,10,11,18,19,20,21,37,13,14,38,1,2,17,22,23,24,25,27,39]),import.meta.url).then(e=>e.default||e)},{name:(Lt==null?void 0:Lt.name)??"items",path:(Lt==null?void 0:Lt.path)??"/items",meta:Lt||{},alias:(Lt==null?void 0:Lt.alias)||[],redirect:Lt==null?void 0:Lt.redirect,component:()=>Ie(()=>import("./DhyvG-cD.js"),__vite__mapDeps([40,12,13,14,16,17,18,19,20,21,22,23,24,6,7,25,26,1,41]),import.meta.url).then(e=>e.default||e)},{name:"items-new",path:"/items/new",meta:{},alias:[],redirect:Ma==null?void 0:Ma.redirect,component:()=>Ie(()=>import("./xMlAep8h.js"),__vite__mapDeps([42,36,10,11,18,19,20,21,37,13,14,38,1,2,17,22,23,24,25,27,39]),import.meta.url).then(e=>e.default||e)},{name:"login",path:"/login",meta:{},alias:[],redirect:$a==null?void 0:$a.redirect,component:()=>Ie(()=>import("./D5v69PKz.js"),__vite__mapDeps([43,27,19,20,18,21,1]),import.meta.url).then(e=>e.default||e)},{name:(Pt==null?void 0:Pt.name)??"routes-id",path:(Pt==null?void 0:Pt.path)??"/routes/:id()",meta:Pt||{},alias:(Pt==null?void 0:Pt.alias)||[],redirect:Pt==null?void 0:Pt.redirect,component:()=>Ie(()=>import("./Opi0a0AN.js"),__vite__mapDeps([44,11,45,1,46]),import.meta.url).then(e=>e.default||e)},{name:(Ot==null?void 0:Ot.name)??"routes",path:(Ot==null?void 0:Ot.path)??"/routes",meta:Ot||{},alias:(Ot==null?void 0:Ot.alias)||[],redirect:Ot==null?void 0:Ot.redirect,component:()=>Ie(()=>import("./BHq4ipSb.js"),__vite__mapDeps([47,30,2,31,13,14,32,10,11,12,15,33,18,19,20,21,37,38,27,1]),import.meta.url).then(e=>e.default||e)},{name:"settings",path:"/settings",meta:{},alias:[],redirect:Va==null?void 0:Va.redirect,component:()=>Ie(()=>import("./DOfdElmT.js"),__vite__mapDeps([48,19,20,22,23,1,49]),import.meta.url).then(e=>e.default||e)},{name:(Mt==null?void 0:Mt.name)??"tools",path:(Mt==null?void 0:Mt.path)??"/tools",meta:Mt||{},alias:(Mt==null?void 0:Mt.alias)||[],redirect:Mt==null?void 0:Mt.redirect,component:()=>Ie(()=>import("./C0GJkI-e.js"),[],import.meta.url).then(e=>e.default||e),children:[{name:(It==null?void 0:It.name)??"tools-gpxstudio",path:(It==null?void 0:It.path)??"gpxstudio",meta:It||{},alias:(It==null?void 0:It.alias)||[],redirect:It==null?void 0:It.redirect,component:()=>Ie(()=>import("./I3SVNbCp.js"),__vite__mapDeps([50,51]),import.meta.url).then(e=>e.default||e)},{name:(Rt==null?void 0:Rt.name)??"tools-plantnet",path:(Rt==null?void 0:Rt.path)??"plantnet",meta:Rt||{},alias:(Rt==null?void 0:Rt.alias)||[],redirect:Rt==null?void 0:Rt.redirect,component:()=>Ie(()=>import("./CQkC9uRi.js"),__vite__mapDeps([52,1,53]),import.meta.url).then(e=>e.default||e)}]},{name:($t==null?void 0:$t.name)??"trips-id",path:($t==null?void 0:$t.path)??"/trips/:id()",meta:$t||{},alias:($t==null?void 0:$t.alias)||[],redirect:$t==null?void 0:$t.redirect,component:()=>Ie(()=>import("./Be2Je18i.js"),__vite__mapDeps([54,17,18,19,20,21,22,23,13,14,24,2,27,1,55]),import.meta.url).then(e=>e.default||e)},{name:(Vt==null?void 0:Vt.name)??"trips",path:(Vt==null?void 0:Vt.path)??"/trips",meta:Vt||{},alias:(Vt==null?void 0:Vt.alias)||[],redirect:Vt==null?void 0:Vt.redirect,component:()=>Ie(()=>import("./o8OYIcRE.js"),__vite__mapDeps([56,31,2,13,14,32,1]),import.meta.url).then(e=>e.default||e)}],z_=(e,t,n)=>(t=t===!0?{}:t,{default:()=>{var r;return t?gt(e,t,n):(r=n.default)==null?void 0:r.call(n)}});function ff(e){const t=(e==null?void 0:e.meta.key)??e.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""});return typeof t=="function"?t(e):t}function W_(e,t){return e===t||t===an?!1:ff(e)!==ff(t)?!0:!e.matched.every((r,s)=>{var i,o;return r.components&&r.components.default===((o=(i=t.matched[s])==null?void 0:i.components)==null?void 0:o.default)})}const q_={scrollBehavior(e,t,n){var u;const r=Ue(),s=((u=pn().options)==null?void 0:u.scrollBehaviorType)??"auto";let i=n||void 0;const o=typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop;if(!i&&t&&e&&o!==!1&&W_(e,t)&&(i={left:0,top:0}),e.path===t.path)return t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:hf(e.hash),behavior:s}:!1;const a=c=>!!(c.meta.pageTransition??Cl),l=a(t)&&a(e)?"page:transition:finish":"page:finish";return new Promise(c=>{r.hooks.hookOnce(l,async()=>{await new Promise(d=>setTimeout(d,0)),e.hash&&(i={el:e.hash,top:hf(e.hash),behavior:s}),c(i)})})}};function hf(e){try{const t=document.querySelector(e);if(t)return parseFloat(getComputedStyle(t).scrollMarginTop)}catch{}return 0}const K_={hashMode:!1,scrollBehaviorType:"auto"},Ht={...K_,...q_},G_=async e=>{var l;let t,n;if(!((l=e.meta)!=null&&l.validate))return;const r=Ue(),s=pn();if(([t,n]=kn(()=>Promise.resolve(e.meta.validate(e))),t=await t,n(),t)===!0)return;const o=Go({statusCode:404,statusMessage:`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}}),a=s.beforeResolve(u=>{if(a(),u===e){const c=s.afterEach(async()=>{c(),await r.runWithContext(()=>Gr(o)),window.history.pushState({},"",e.fullPath)});return!1}})},Y_="$s";function Zc(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[n,r]=e;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(r!==void 0&&typeof r!="function")throw new Error("[nuxt] [useState] init must be a function: "+r);const s=Y_+n,i=Ue(),o=ie(i.payload.state,s);if(o.value===void 0&&r){const a=r();if(Le(a))return i.payload.state[s]=a,a;o.value=a}return o}const Bt=()=>{var e;return(e=Ue().$supabase)==null?void 0:e.client},To=()=>{const e=Bt(),t=Zc("supabase_session",()=>null);return e==null||e.auth.getSession().then(({data:{session:n}})=>{n?JSON.stringify(t.value)!==JSON.stringify(n)&&(t.value=n):t.value=null}),t},J_=!1;/*! + * pinia v2.1.7 + * (c) 2023 Eduardo San Martin Morote + * @license MIT + */let Zv;const bi=e=>Zv=e,Xv=Symbol();function $l(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Us;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Us||(Us={}));function Z_(){const e=vs(!0),t=e.run(()=>N({}));let n=[],r=[];const s=hc({install(i){bi(s),s._a=i,i.provide(Xv,s),i.config.globalProperties.$pinia=s,r.forEach(o=>n.push(o)),r=[]},use(i){return!this._a&&!J_?r.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const Qv=()=>{};function mf(e,t,n,r=Qv){e.push(t);const s=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r())};return!n&&Mo()&&pt(s),s}function Nr(e,...t){e.slice().forEach(n=>{n(...t)})}const X_=e=>e();function Vl(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],s=e[n];$l(s)&&$l(r)&&e.hasOwnProperty(n)&&!Le(r)&&!yr(r)?e[n]=Vl(s,r):e[n]=r}return e}const Q_=Symbol();function e5(e){return!$l(e)||!e.hasOwnProperty(Q_)}const{assign:jn}=Object;function t5(e){return!!(Le(e)&&e.effect)}function n5(e,t,n,r){const{state:s,actions:i,getters:o}=t,a=n.state.value[e];let l;function u(){a||(n.state.value[e]=s?s():{});const c=vi(n.state.value[e]);return jn(c,i,Object.keys(o||{}).reduce((d,f)=>(d[f]=hc(A(()=>{bi(n);const h=n._s.get(e);return o[f].call(h,h)})),d),{}))}return l=eg(e,u,t,n,r,!0),l}function eg(e,t,n={},r,s,i){let o;const a=jn({actions:{}},n),l={deep:!0};let u,c,d=[],f=[],h;const v=r.state.value[e];!i&&!v&&(r.state.value[e]={}),N({});let m;function p(x){let P;u=c=!1,typeof x=="function"?(x(r.state.value[e]),P={type:Us.patchFunction,storeId:e,events:h}):(Vl(r.state.value[e],x),P={type:Us.patchObject,payload:x,storeId:e,events:h});const O=m=Symbol();Ke().then(()=>{m===O&&(u=!0)}),c=!0,Nr(d,P,r.state.value[e])}const S=i?function(){const{state:P}=n,O=P?P():{};this.$patch(R=>{jn(R,O)})}:Qv;function y(){o.stop(),d=[],f=[],r._s.delete(e)}function g(x,P){return function(){bi(r);const O=Array.from(arguments),R=[],L=[];function $(H){R.push(H)}function z(H){L.push(H)}Nr(f,{args:O,name:x,store:T,after:$,onError:z});let Q;try{Q=P.apply(this&&this.$id===e?this:T,O)}catch(H){throw Nr(L,H),H}return Q instanceof Promise?Q.then(H=>(Nr(R,H),H)).catch(H=>(Nr(L,H),Promise.reject(H))):(Nr(R,Q),Q)}}const _={_p:r,$id:e,$onAction:mf.bind(null,f),$patch:p,$reset:S,$subscribe(x,P={}){const O=mf(d,x,P.detached,()=>R()),R=o.run(()=>se(()=>r.state.value[e],L=>{(P.flush==="sync"?c:u)&&x({storeId:e,type:Us.direct,events:h},L)},jn({},l,P)));return O},$dispose:y},T=Be(_);r._s.set(e,T);const C=(r._a&&r._a.runWithContext||X_)(()=>r._e.run(()=>(o=vs()).run(t)));for(const x in C){const P=C[x];if(Le(P)&&!t5(P)||yr(P))i||(v&&e5(P)&&(Le(P)?P.value=v[x]:Vl(P,v[x])),r.state.value[e][x]=P);else if(typeof P=="function"){const O=g(x,P);C[x]=O,a.actions[x]=P}}return jn(T,C),jn(ae(T),C),Object.defineProperty(T,"$state",{get:()=>r.state.value[e],set:x=>{p(P=>{jn(P,x)})}}),r._p.forEach(x=>{jn(T,o.run(()=>x({store:T,app:r._a,pinia:r,options:a})))}),v&&i&&n.hydrate&&n.hydrate(T.$state,v),u=!0,c=!0,T}function tg(e,t,n){let r,s;const i=typeof t=="function";typeof e=="string"?(r=e,s=i?n:t):(s=e,r=e.id);function o(a,l){const u=Ac();return a=a||(u?Se(Xv,null):null),a&&bi(a),a=Zv,a._s.has(r)||(i?eg(r,t,s,a):n5(r,s,a)),a._s.get(r)}return o.$id=r,o}let zi;const r5=new Uint8Array(16);function s5(){if(!zi&&(zi=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!zi))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return zi(r5)}const nt=[];for(let e=0;e<256;++e)nt.push((e+256).toString(16).slice(1));function i5(e,t=0){return nt[e[t+0]]+nt[e[t+1]]+nt[e[t+2]]+nt[e[t+3]]+"-"+nt[e[t+4]]+nt[e[t+5]]+"-"+nt[e[t+6]]+nt[e[t+7]]+"-"+nt[e[t+8]]+nt[e[t+9]]+"-"+nt[e[t+10]]+nt[e[t+11]]+nt[e[t+12]]+nt[e[t+13]]+nt[e[t+14]]+nt[e[t+15]]}const o5=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),vf={randomUUID:o5};function ng(e,t,n){if(vf.randomUUID&&!t&&!e)return vf.randomUUID();e=e||{};const r=e.random||(e.rng||s5)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,i5(r)}const rg=tg("notifications",{state:()=>({entities:[]}),actions:{add(e){e.id=ng(),this.entities.push(e),setTimeout(()=>{this.remove(e.id)},5e3)},remove(e){this.entities=this.entities.filter(t=>t.id!==e)}}}),Sn=(e,t)=>{rg().add({id:ng(),text:t,type:e})};function a5(e){return e.replace(/[A-Z]/g,t=>`_${t.toLowerCase()}`)}function l5(e){return e.replace(/_([a-z])/g,(t,n)=>n.toUpperCase())}function gf(e){return Object.keys(e).reduce((t,n)=>(t[a5(n)]=e[n],t),{})}function sg(e){return Object.keys(e).reduce((t,n)=>(t[l5(n)]=e[n],t),{})}function c5(e){return e.map(sg)}function xn(e,t={},n={},r={},s={},i=!1,o=[]){return tg(e,{state:()=>({entities:N([]),...r}),getters:{byId:a=>l=>a.entities.find(u=>u.id===l),...s},actions:{async fetch(){const a=Bt();try{let l=a.from(e).select("*");t.preFetch&&(l=t.preFetch(l)),i&&(l=l.single());const{data:u,error:c}=await l;if(c)throw c;i?u&&(this.entities=sg(u)):u&&(this.entities=c5(u)),t.postFetch&&(this.entities=t.postFetch(this.entities,null))}catch(l){Sn("error",l.message),console.error(`An error occurred while fetching ${e}:`,l.message)}finally{}},async create(a){const l=Bt();try{const u=gf(a);o.forEach(h=>{delete u[h]});let c=l.from(e).insert(u);t.preCreate&&(c=t.preCreate(c,u));const{data:d,error:f}=await c.select();if(f)throw f;return d&&this.entities.push(d[0]),t.postCreate&&t.postCreate(d[0],null),d[0]}catch(u){Sn("error",u.message),console.error(`An error occurred while creating ${e}:`,u.message),t.postCreate&&t.postCreate(null,u)}finally{}},async update(a){const l=Bt();try{const u=gf(a);o.forEach(h=>{delete u[h]});let c=l.from(e).update(u).match({id:u.id});t.preUpdate&&(c=t.preUpdate(c,u));const{data:d,error:f}=await c;if(f)throw f;if(d){const h=this.entities.findIndex(v=>v.id===a.id);h!==-1&&(this.entities[h]=a),t.postUpdate&&t.postUpdate(a,null)}}catch(u){Sn("error",u.message),console.error(`An error occurred while updating ${e}:`,u.message),t.postUpdate&&t.postUpdate(null,u)}finally{}},async delete(a){const l=Bt();try{let u=l.from(e).delete().match({id:a});t.preDelete&&(u=t.preDelete(u));const{data:c,error:d}=await u;if(d)throw d;this.entities=this.entities.filter(f=>f.id!==a),console.log(this.entities.length),t.postDelete&&t.postDelete(a,null)}catch(u){Sn("error",u.message),console.error(`An error occurred while deleting ${e}:`,u.message),t.postDelete&&t.postDelete(null,u)}finally{}},...n}})}const u5={async fetchMe(){if(!To().value)return;const e=Bt();try{let t=e.from("users_meta").select("*");const{data:n,error:r}=await e.from("users_meta").select().eq("user_id",To().value.user.id).single();if(r)throw r;n&&(this.user=n)}catch(t){Sn("error",t.message),console.error("An error occurred while fetching users_meta:",t.message)}finally{}},async signIn(e,t){const n=Bt();try{const{data:r,error:s}=await n.auth.signInWithPassword({email:e,password:t});if(s)throw s;this.supabaseUser=r.user,await this.fetchMe(),yo("/")}catch(r){Sn("error",r.message),console.error("An error occurred while signing in:",r.message)}finally{}},async signOut(){await Bt().auth.signOut(),this.supabaseUser=null,this.user=null,yo("/login")}},d5={supabaseUser:N(null),user:N(null)},f5={loggedIn:()=>!!To().value},ea=xn("users_meta",{},u5,d5,f5),h5=e=>{if(ea().loggedIn){if(e.path=="/login")return yo("/",{replace:!0})}else if(e.path!="/login")return yo("/login")},m5=async e=>{let t,n;const r=([t,n]=kn(()=>Bc(e.path)),t=await t,n(),t);if(r.redirect)return Or(r.redirect,{acceptRelative:!0})?(window.location.href=r.redirect,!1):r.redirect},v5=[G_,h5,m5],zs={cors:()=>Ie(()=>import("./DqULCzxt.js"),[],import.meta.url)};function g5(e,t,n){const{pathname:r,search:s,hash:i}=t,o=e.indexOf("#");if(o>-1){const u=i.includes(e.slice(o))?e.slice(o).length:1;let c=i.slice(u);return c[0]!=="/"&&(c="/"+c),od(c,"")}const a=od(r,e),l=!n||xy(a,n,{trailingSlash:!0})?a:n;return l+(l.includes("?")?"":s)+i}const p5=ot({name:"nuxt:router",enforce:"pre",async setup(e){var p,S;let t,n,r=Wo().app.baseURL;Ht.hashMode&&!r.includes("#")&&(r+="#");const s=((p=Ht.history)==null?void 0:p.call(Ht,r))??(Ht.hashMode?h_(r):Wv(r)),i=((S=Ht.routes)==null?void 0:S.call(Ht,df))??df;let o;const a=H_({...Ht,scrollBehavior:(y,g,_)=>{if(g===an){o=_;return}if(Ht.scrollBehavior){if(a.options.scrollBehavior=Ht.scrollBehavior,"scrollRestoration"in window.history){const T=a.beforeEach(()=>{T(),window.history.scrollRestoration="manual"})}return Ht.scrollBehavior(y,an,o||_)}},history:s,routes:i});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),e.vueApp.use(a);const l=le(a.currentRoute.value);a.afterEach((y,g)=>{l.value=g}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>l.value});const u=g5(r,window.location,e.payload.path),c=le(a.currentRoute.value),d=()=>{c.value=a.currentRoute.value};e.hook("page:finish",d),a.afterEach((y,g)=>{var _,T,E,C;((T=(_=y.matched[0])==null?void 0:_.components)==null?void 0:T.default)===((C=(E=g.matched[0])==null?void 0:E.components)==null?void 0:C.default)&&d()});const f={};for(const y in c.value)Object.defineProperty(f,y,{get:()=>c.value[y]});e._route=mi(f),e._middleware=e._middleware||{global:[],named:{}};try{[t,n]=kn(()=>a.isReady()),await t,n()}catch(y){[t,n]=kn(()=>e.runWithContext(()=>Gr(y))),await t,n()}const h=u!==a.currentRoute.value.fullPath?a.resolve(u):a.currentRoute.value;d();const v=e.payload.state._layout;a.beforeEach(async(y,g)=>{var _;await e.callHook("page:loading:start"),y.meta=Be(y.meta),e.isHydrating&&v&&!rs(y.meta.layout)&&(y.meta.layout=v),e._processingMiddleware=!0;{const T=new Set([...v5,...e._middleware.global]);for(const E of y.matched){const C=E.meta.middleware;if(C)for(const x of Jc(C))T.add(x)}{const E=await e.runWithContext(()=>Bc(y.path));if(E.appMiddleware)for(const C in E.appMiddleware)E.appMiddleware[C]?T.add(C):T.delete(C)}for(const E of T){const C=typeof E=="string"?e._middleware.named[E]||await((_=zs[E])==null?void 0:_.call(zs).then(P=>P.default||P)):E;if(!C)throw new Error(`Unknown route middleware: '${E}'.`);const x=await e.runWithContext(()=>C(y,g));if(!e.payload.serverRendered&&e.isHydrating&&(x===!1||x instanceof Error)){const P=x||yl({statusCode:404,statusMessage:`Page Not Found: ${u}`});return await e.runWithContext(()=>Gr(P)),!1}if(x!==!0&&(x||x===!1))return x}}}),a.onError(async()=>{delete e._processingMiddleware,await e.callHook("page:loading:end")});const m=Ko();return a.afterEach(async(y,g,_)=>{delete e._processingMiddleware,!e.isHydrating&&m.value&&await e.runWithContext(Ab),_&&await e.callHook("page:loading:end"),y.matched.length===0&&await e.runWithContext(()=>Gr(yl({statusCode:404,fatal:!1,statusMessage:`Page not found: ${y.fullPath}`,data:{path:y.fullPath}})))}),e.hooks.hookOnce("app:created",async()=>{try{"name"in h&&(h.name=void 0),await a.replace({...h,force:!0}),a.options.scrollBehavior=Ht.scrollBehavior}catch(y){await e.runWithContext(()=>Gr(y))}}),{provide:{router:a}}}}),y5={path:"/",watch:!0,decode:e=>Qs(decodeURIComponent(e)),encode:e=>encodeURIComponent(typeof e=="string"?e:JSON.stringify(e))},b5=void 0;function Wi(e,t){var l;const n={...y5,...t},r=pf(n)||{};let s;n.maxAge!==void 0?s=n.maxAge*1e3:n.expires&&(s=n.expires.getTime()-Date.now());const i=s!==void 0&&s<=0,o=hn(i?void 0:r[e]??((l=n.default)==null?void 0:l.call(n))),a=s&&!i?S5(o,s,n.watch&&n.watch!=="shallow"):N(o);{let u=null;try{!b5&&typeof BroadcastChannel<"u"&&(u=new BroadcastChannel(`nuxt:cookies:${e}`))}catch{}const c=()=>{n.readonly||gb(a.value,r[e])||(_5(e,a.value,n),r[e]=hn(a.value),u==null||u.postMessage({value:n.encode(a.value)}))},d=h=>{var m;const v=h.refresh?(m=pf(n))==null?void 0:m[e]:n.decode(h.value);f=!0,r[e]=a.value=v,Ke(()=>{f=!1})};let f=!1;Mo()&&pt(()=>{f=!0,c(),u==null||u.close()}),u&&(u.onmessage=({data:h})=>d(h)),n.watch?se(a,()=>{f||c()},{deep:n.watch!=="shallow"}):c()}return a}function pf(e={}){return cb(document.cookie,e)}function w5(e,t,n={}){return t==null?dd(e,t,{...n,maxAge:-1}):dd(e,t,n)}function _5(e,t,n={}){document.cookie=w5(e,t,n)}const yf=2147483647;function S5(e,t,n){let r,s,i=0;const o=n?N(e):{value:e};return Mo()&&pt(()=>{s==null||s(),clearTimeout(r)}),c0((a,l)=>{n&&(s=se(o,l));function u(){clearTimeout(r);const c=t-i,d=c{if(i+=d,i{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>Ie(()=>Promise.resolve().then(()=>wi),void 0,import.meta.url).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)};class Xc extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}}class k5 extends Xc{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class E5 extends Xc{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class T5 extends Xc{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var Hl;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(Hl||(Hl={}));var A5=function(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):s(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};class x5{constructor(t,{headers:n={},customFetch:r,region:s=Hl.Any}={}){this.url=t,this.headers=n,this.region=s,this.fetch=C5(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t,n={}){var r;return A5(this,void 0,void 0,function*(){try{const{headers:s,method:i,body:o}=n;let a={},{region:l}=n;l||(l=this.region),l&&l!=="any"&&(a["x-region"]=l);let u;o&&(s&&!Object.prototype.hasOwnProperty.call(s,"Content-Type")||!s)&&(typeof Blob<"u"&&o instanceof Blob||o instanceof ArrayBuffer?(a["Content-Type"]="application/octet-stream",u=o):typeof o=="string"?(a["Content-Type"]="text/plain",u=o):typeof FormData<"u"&&o instanceof FormData?u=o:(a["Content-Type"]="application/json",u=JSON.stringify(o)));const c=yield this.fetch(`${this.url}/${t}`,{method:i||"POST",headers:Object.assign(Object.assign(Object.assign({},a),this.headers),s),body:u}).catch(v=>{throw new k5(v)}),d=c.headers.get("x-relay-error");if(d&&d==="true")throw new E5(c);if(!c.ok)throw new T5(c);let f=((r=c.headers.get("Content-Type"))!==null&&r!==void 0?r:"text/plain").split(";")[0].trim(),h;return f==="application/json"?h=yield c.json():f==="application/octet-stream"?h=yield c.blob():f==="text/event-stream"?h=c:f==="multipart/form-data"?h=yield c.formData():h=yield c.text(),{data:h,error:null}}catch(s){return{data:null,error:s}}})}}var L5=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")},us=L5();const P5=us.fetch,Qc=us.fetch.bind(us),ig=us.Headers,O5=us.Request,I5=us.Response,wi=Object.freeze(Object.defineProperty({__proto__:null,Headers:ig,Request:O5,Response:I5,default:Qc,fetch:P5},Symbol.toStringTag,{value:"Module"}));class R5 extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.code=t.code}}class M5{constructor(t){this.shouldThrowOnError=!1,this.method=t.method,this.url=t.url,this.headers=t.headers,this.schema=t.schema,this.body=t.body,this.shouldThrowOnError=t.shouldThrowOnError,this.signal=t.signal,this.isMaybeSingle=t.isMaybeSingle,t.fetch?this.fetch=t.fetch:typeof fetch>"u"?this.fetch=Qc:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}then(t,n){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers["Accept-Profile"]=this.schema:this.headers["Content-Profile"]=this.schema),this.method!=="GET"&&this.method!=="HEAD"&&(this.headers["Content-Type"]="application/json");const r=this.fetch;let s=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async i=>{var o,a,l;let u=null,c=null,d=null,f=i.status,h=i.statusText;if(i.ok){if(this.method!=="HEAD"){const S=await i.text();S===""||(this.headers.Accept==="text/csv"||this.headers.Accept&&this.headers.Accept.includes("application/vnd.pgrst.plan+text")?c=S:c=JSON.parse(S))}const m=(o=this.headers.Prefer)===null||o===void 0?void 0:o.match(/count=(exact|planned|estimated)/),p=(a=i.headers.get("content-range"))===null||a===void 0?void 0:a.split("/");m&&p&&p.length>1&&(d=parseInt(p[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(c)&&(c.length>1?(u={code:"PGRST116",details:`Results contain ${c.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},c=null,d=null,f=406,h="Not Acceptable"):c.length===1?c=c[0]:c=null)}else{const m=await i.text();try{u=JSON.parse(m),Array.isArray(u)&&i.status===404&&(c=[],u=null,f=200,h="OK")}catch{i.status===404&&m===""?(f=204,h="No Content"):u={message:m}}if(u&&this.isMaybeSingle&&(!((l=u==null?void 0:u.details)===null||l===void 0)&&l.includes("0 rows"))&&(u=null,f=200,h="OK"),u&&this.shouldThrowOnError)throw new R5(u)}return{error:u,data:c,count:d,status:f,statusText:h}});return this.shouldThrowOnError||(s=s.catch(i=>{var o,a,l;return{error:{message:`${(o=i==null?void 0:i.name)!==null&&o!==void 0?o:"FetchError"}: ${i==null?void 0:i.message}`,details:`${(a=i==null?void 0:i.stack)!==null&&a!==void 0?a:""}`,hint:"",code:`${(l=i==null?void 0:i.code)!==null&&l!==void 0?l:""}`},data:null,count:null,status:0,statusText:""}})),s.then(t,n)}}class $5 extends M5{select(t){let n=!1;const r=(t??"*").split("").map(s=>/\s/.test(s)&&!n?"":(s==='"'&&(n=!n),s)).join("");return this.url.searchParams.set("select",r),this.headers.Prefer&&(this.headers.Prefer+=","),this.headers.Prefer+="return=representation",this}order(t,{ascending:n=!0,nullsFirst:r,foreignTable:s,referencedTable:i=s}={}){const o=i?`${i}.order`:"order",a=this.url.searchParams.get(o);return this.url.searchParams.set(o,`${a?`${a},`:""}${t}.${n?"asc":"desc"}${r===void 0?"":r?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:n,referencedTable:r=n}={}){const s=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(s,`${t}`),this}range(t,n,{foreignTable:r,referencedTable:s=r}={}){const i=typeof s>"u"?"offset":`${s}.offset`,o=typeof s>"u"?"limit":`${s}.limit`;return this.url.searchParams.set(i,`${t}`),this.url.searchParams.set(o,`${n-t+1}`),this}abortSignal(t){return this.signal=t,this}single(){return this.headers.Accept="application/vnd.pgrst.object+json",this}maybeSingle(){return this.method==="GET"?this.headers.Accept="application/json":this.headers.Accept="application/vnd.pgrst.object+json",this.isMaybeSingle=!0,this}csv(){return this.headers.Accept="text/csv",this}geojson(){return this.headers.Accept="application/geo+json",this}explain({analyze:t=!1,verbose:n=!1,settings:r=!1,buffers:s=!1,wal:i=!1,format:o="text"}={}){var a;const l=[t?"analyze":null,n?"verbose":null,r?"settings":null,s?"buffers":null,i?"wal":null].filter(Boolean).join("|"),u=(a=this.headers.Accept)!==null&&a!==void 0?a:"application/json";return this.headers.Accept=`application/vnd.pgrst.plan+${o}; for="${u}"; options=${l};`,o==="json"?this:this}rollback(){var t;return((t=this.headers.Prefer)!==null&&t!==void 0?t:"").trim().length>0?this.headers.Prefer+=",tx=rollback":this.headers.Prefer="tx=rollback",this}returns(){return this}}class Kr extends $5{eq(t,n){return this.url.searchParams.append(t,`eq.${n}`),this}neq(t,n){return this.url.searchParams.append(t,`neq.${n}`),this}gt(t,n){return this.url.searchParams.append(t,`gt.${n}`),this}gte(t,n){return this.url.searchParams.append(t,`gte.${n}`),this}lt(t,n){return this.url.searchParams.append(t,`lt.${n}`),this}lte(t,n){return this.url.searchParams.append(t,`lte.${n}`),this}like(t,n){return this.url.searchParams.append(t,`like.${n}`),this}likeAllOf(t,n){return this.url.searchParams.append(t,`like(all).{${n.join(",")}}`),this}likeAnyOf(t,n){return this.url.searchParams.append(t,`like(any).{${n.join(",")}}`),this}ilike(t,n){return this.url.searchParams.append(t,`ilike.${n}`),this}ilikeAllOf(t,n){return this.url.searchParams.append(t,`ilike(all).{${n.join(",")}}`),this}ilikeAnyOf(t,n){return this.url.searchParams.append(t,`ilike(any).{${n.join(",")}}`),this}is(t,n){return this.url.searchParams.append(t,`is.${n}`),this}in(t,n){const r=Array.from(new Set(n)).map(s=>typeof s=="string"&&new RegExp("[,()]").test(s)?`"${s}"`:`${s}`).join(",");return this.url.searchParams.append(t,`in.(${r})`),this}contains(t,n){return typeof n=="string"?this.url.searchParams.append(t,`cs.${n}`):Array.isArray(n)?this.url.searchParams.append(t,`cs.{${n.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(n)}`),this}containedBy(t,n){return typeof n=="string"?this.url.searchParams.append(t,`cd.${n}`):Array.isArray(n)?this.url.searchParams.append(t,`cd.{${n.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(n)}`),this}rangeGt(t,n){return this.url.searchParams.append(t,`sr.${n}`),this}rangeGte(t,n){return this.url.searchParams.append(t,`nxl.${n}`),this}rangeLt(t,n){return this.url.searchParams.append(t,`sl.${n}`),this}rangeLte(t,n){return this.url.searchParams.append(t,`nxr.${n}`),this}rangeAdjacent(t,n){return this.url.searchParams.append(t,`adj.${n}`),this}overlaps(t,n){return typeof n=="string"?this.url.searchParams.append(t,`ov.${n}`):this.url.searchParams.append(t,`ov.{${n.join(",")}}`),this}textSearch(t,n,{config:r,type:s}={}){let i="";s==="plain"?i="pl":s==="phrase"?i="ph":s==="websearch"&&(i="w");const o=r===void 0?"":`(${r})`;return this.url.searchParams.append(t,`${i}fts${o}.${n}`),this}match(t){return Object.entries(t).forEach(([n,r])=>{this.url.searchParams.append(n,`eq.${r}`)}),this}not(t,n,r){return this.url.searchParams.append(t,`not.${n}.${r}`),this}or(t,{foreignTable:n,referencedTable:r=n}={}){const s=r?`${r}.or`:"or";return this.url.searchParams.append(s,`(${t})`),this}filter(t,n,r){return this.url.searchParams.append(t,`${n}.${r}`),this}}class V5{constructor(t,{headers:n={},schema:r,fetch:s}){this.url=t,this.headers=n,this.schema=r,this.fetch=s}select(t,{head:n=!1,count:r}={}){const s=n?"HEAD":"GET";let i=!1;const o=(t??"*").split("").map(a=>/\s/.test(a)&&!i?"":(a==='"'&&(i=!i),a)).join("");return this.url.searchParams.set("select",o),r&&(this.headers.Prefer=`count=${r}`),new Kr({method:s,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}insert(t,{count:n,defaultToNull:r=!0}={}){const s="POST",i=[];if(this.headers.Prefer&&i.push(this.headers.Prefer),n&&i.push(`count=${n}`),r||i.push("missing=default"),this.headers.Prefer=i.join(","),Array.isArray(t)){const o=t.reduce((a,l)=>a.concat(Object.keys(l)),[]);if(o.length>0){const a=[...new Set(o)].map(l=>`"${l}"`);this.url.searchParams.set("columns",a.join(","))}}return new Kr({method:s,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}upsert(t,{onConflict:n,ignoreDuplicates:r=!1,count:s,defaultToNull:i=!0}={}){const o="POST",a=[`resolution=${r?"ignore":"merge"}-duplicates`];if(n!==void 0&&this.url.searchParams.set("on_conflict",n),this.headers.Prefer&&a.push(this.headers.Prefer),s&&a.push(`count=${s}`),i||a.push("missing=default"),this.headers.Prefer=a.join(","),Array.isArray(t)){const l=t.reduce((u,c)=>u.concat(Object.keys(c)),[]);if(l.length>0){const u=[...new Set(l)].map(c=>`"${c}"`);this.url.searchParams.set("columns",u.join(","))}}return new Kr({method:o,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}update(t,{count:n}={}){const r="PATCH",s=[];return this.headers.Prefer&&s.push(this.headers.Prefer),n&&s.push(`count=${n}`),this.headers.Prefer=s.join(","),new Kr({method:r,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}delete({count:t}={}){const n="DELETE",r=[];return t&&r.push(`count=${t}`),this.headers.Prefer&&r.unshift(this.headers.Prefer),this.headers.Prefer=r.join(","),new Kr({method:n,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}}const H5="1.15.2",D5={"X-Client-Info":`postgrest-js/${H5}`};class eu{constructor(t,{headers:n={},schema:r,fetch:s}={}){this.url=t,this.headers=Object.assign(Object.assign({},D5),n),this.schemaName=r,this.fetch=s}from(t){const n=new URL(`${this.url}/${t}`);return new V5(n,{headers:Object.assign({},this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new eu(this.url,{headers:this.headers,schema:t,fetch:this.fetch})}rpc(t,n={},{head:r=!1,get:s=!1,count:i}={}){let o;const a=new URL(`${this.url}/rpc/${t}`);let l;r||s?(o=r?"HEAD":"GET",Object.entries(n).filter(([c,d])=>d!==void 0).map(([c,d])=>[c,Array.isArray(d)?`{${d.join(",")}}`:`${d}`]).forEach(([c,d])=>{a.searchParams.append(c,d)})):(o="POST",l=n);const u=Object.assign({},this.headers);return i&&(u.Prefer=`count=${i}`),new Kr({method:o,url:a,headers:u,schema:this.schemaName,body:l,fetch:this.fetch,allowEmpty:!1})}}const j5="2.9.5",N5={"X-Client-Info":`realtime-js/${j5}`},B5="1.0.0",og=1e4,F5=1e3;var ns;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(ns||(ns={}));var Dt;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(Dt||(Dt={}));var ln;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(ln||(ln={}));var Dl;(function(e){e.websocket="websocket"})(Dl||(Dl={}));var mr;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(mr||(mr={}));class ag{constructor(t,n){this.callback=t,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=n}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}class U5{constructor(){this.HEADER_LENGTH=1}decode(t,n){return t.constructor===ArrayBuffer?n(this._binaryDecode(t)):n(typeof t=="string"?JSON.parse(t):{})}_binaryDecode(t){const n=new DataView(t),r=new TextDecoder;return this._decodeBroadcast(t,n,r)}_decodeBroadcast(t,n,r){const s=n.getUint8(1),i=n.getUint8(2);let o=this.HEADER_LENGTH+2;const a=r.decode(t.slice(o,o+s));o=o+s;const l=r.decode(t.slice(o,o+i));o=o+i;const u=JSON.parse(r.decode(t.slice(o,t.byteLength)));return{ref:null,topic:a,event:l,payload:u}}}class Ha{constructor(t,n,r={},s=og){this.channel=t,this.event=n,this.payload=r,this.timeout=s,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,n){var r;return this._hasReceived(t)&&n((r=this.receivedResp)===null||r===void 0?void 0:r.response),this.recHooks.push({status:t,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:n})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:n}){this.recHooks.filter(r=>r.status===t).forEach(r=>r.callback(n))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var bf;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(bf||(bf={}));class Ws{constructor(t,n){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const r=(n==null?void 0:n.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(r.state,{},s=>{const{onJoin:i,onLeave:o,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=Ws.syncState(this.state,s,i,o),this.pendingDiffs.forEach(l=>{this.state=Ws.syncDiff(this.state,l,i,o)}),this.pendingDiffs=[],a()}),this.channel._on(r.diff,{},s=>{const{onJoin:i,onLeave:o,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=Ws.syncDiff(this.state,s,i,o),a())}),this.onJoin((s,i,o)=>{this.channel._trigger("presence",{event:"join",key:s,currentPresences:i,newPresences:o})}),this.onLeave((s,i,o)=>{this.channel._trigger("presence",{event:"leave",key:s,currentPresences:i,leftPresences:o})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,n,r,s){const i=this.cloneDeep(t),o=this.transformState(n),a={},l={};return this.map(i,(u,c)=>{o[u]||(l[u]=c)}),this.map(o,(u,c)=>{const d=i[u];if(d){const f=c.map(p=>p.presence_ref),h=d.map(p=>p.presence_ref),v=c.filter(p=>h.indexOf(p.presence_ref)<0),m=d.filter(p=>f.indexOf(p.presence_ref)<0);v.length>0&&(a[u]=v),m.length>0&&(l[u]=m)}else a[u]=c}),this.syncDiff(i,{joins:a,leaves:l},r,s)}static syncDiff(t,n,r,s){const{joins:i,leaves:o}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),s||(s=()=>{}),this.map(i,(a,l)=>{var u;const c=(u=t[a])!==null&&u!==void 0?u:[];if(t[a]=this.cloneDeep(l),c.length>0){const d=t[a].map(h=>h.presence_ref),f=c.filter(h=>d.indexOf(h.presence_ref)<0);t[a].unshift(...f)}r(a,c,l)}),this.map(o,(a,l)=>{let u=t[a];if(!u)return;const c=l.map(d=>d.presence_ref);u=u.filter(d=>c.indexOf(d.presence_ref)<0),t[a]=u,s(a,u,l),u.length===0&&delete t[a]}),t}static map(t,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const s=t[r];return"metas"in s?n[r]=s.metas.map(i=>(i.presence_ref=i.phx_ref,delete i.phx_ref,delete i.phx_ref_prev,i)):n[r]=s,n},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var $e;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})($e||($e={}));const wf=(e,t,n={})=>{var r;const s=(r=n.skipTypes)!==null&&r!==void 0?r:[];return Object.keys(t).reduce((i,o)=>(i[o]=z5(o,e,t,s),i),{})},z5=(e,t,n,r)=>{const s=t.find(a=>a.name===e),i=s==null?void 0:s.type,o=n[e];return i&&!r.includes(i)?lg(i,o):jl(o)},lg=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return G5(t,n)}switch(e){case $e.bool:return W5(t);case $e.float4:case $e.float8:case $e.int2:case $e.int4:case $e.int8:case $e.numeric:case $e.oid:return q5(t);case $e.json:case $e.jsonb:return K5(t);case $e.timestamp:return Y5(t);case $e.abstime:case $e.date:case $e.daterange:case $e.int4range:case $e.int8range:case $e.money:case $e.reltime:case $e.text:case $e.time:case $e.timestamptz:case $e.timetz:case $e.tsrange:case $e.tstzrange:return jl(t);default:return jl(t)}},jl=e=>e,W5=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},q5=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},K5=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch(t){return console.log(`JSON parse error: ${t}`),e}return e},G5=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let i;const o=e.slice(1,n);try{i=JSON.parse("["+o+"]")}catch{i=o?o.split(","):[]}return i.map(a=>lg(t,a))}return e},Y5=e=>typeof e=="string"?e.replace(" ","T"):e;var _f;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(_f||(_f={}));var Sf;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes"})(Sf||(Sf={}));var Cf;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(Cf||(Cf={}));class tu{constructor(t,n={config:{}},r){this.topic=t,this.params=n,this.socket=r,this.bindings={},this.state=Dt.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:""}},n.config),this.timeout=this.socket.timeout,this.joinPush=new Ha(this,ln.join,this.params,this.timeout),this.rejoinTimer=new ag(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=Dt.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(s=>s.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=Dt.closed,this.socket._remove(this)}),this._onError(s=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,s),this.state=Dt.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=Dt.errored,this.rejoinTimer.scheduleTimeout())}),this._on(ln.reply,{},(s,i)=>{this._trigger(this._replyEventName(i),s)}),this.presence=new Ws(this),this.broadcastEndpointURL=this._broadcastEndpointURL()}subscribe(t,n=this.timeout){var r,s;if(this.socket.isConnected()||this.socket.connect(),this.joinedOnce)throw"tried to subscribe multiple times. 'subscribe' can only be called a single time per channel instance";{const{config:{broadcast:i,presence:o}}=this.params;this._onError(u=>t&&t("CHANNEL_ERROR",u)),this._onClose(()=>t&&t("CLOSED"));const a={},l={broadcast:i,presence:o,postgres_changes:(s=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(u=>u.filter))!==null&&s!==void 0?s:[]};this.socket.accessToken&&(a.access_token=this.socket.accessToken),this.updateJoinPayload(Object.assign({config:l},a)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",({postgres_changes:u})=>{var c;if(this.socket.accessToken&&this.socket.setAuth(this.socket.accessToken),u===void 0){t&&t("SUBSCRIBED");return}else{const d=this.bindings.postgres_changes,f=(c=d==null?void 0:d.length)!==null&&c!==void 0?c:0,h=[];for(let v=0;v{t&&t("CHANNEL_ERROR",new Error(JSON.stringify(Object.values(u).join(", ")||"error")))}).receive("timeout",()=>{t&&t("TIMED_OUT")})}return this}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,r){return this._on(t,n,r)}async send(t,n={}){var r,s;if(!this._canPush()&&t.type==="broadcast"){const{event:i,payload:o}=t,a={method:"POST",headers:{apikey:(r=this.socket.apiKey)!==null&&r!==void 0?r:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:i,payload:o}]})};try{return(await this._fetchWithTimeout(this.broadcastEndpointURL,a,(s=n.timeout)!==null&&s!==void 0?s:this.timeout)).ok?"ok":"error"}catch(l){return l.name==="AbortError"?"timed out":"error"}}else return new Promise(i=>{var o,a,l;const u=this._push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((l=(a=(o=this.params)===null||o===void 0?void 0:o.config)===null||a===void 0?void 0:a.broadcast)===null||l===void 0)&&l.ack)&&i("ok"),u.receive("ok",()=>i("ok")),u.receive("error",()=>i("error")),u.receive("timeout",()=>i("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=Dt.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(ln.close,"leave",this._joinRef())};return this.rejoinTimer.reset(),this.joinPush.destroy(),new Promise(r=>{const s=new Ha(this,ln.leave,{},t);s.receive("ok",()=>{n(),r("ok")}).receive("timeout",()=>{n(),r("timed out")}).receive("error",()=>{r("error")}),s.send(),this._canPush()||s.trigger("ok",{})})}_broadcastEndpointURL(){let t=this.socket.endPoint;return t=t.replace(/^ws/i,"http"),t=t.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),t.replace(/\/+$/,"")+"/api/broadcast"}async _fetchWithTimeout(t,n,r){const s=new AbortController,i=setTimeout(()=>s.abort(),r),o=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:s.signal}));return clearTimeout(i),o}_push(t,n,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let s=new Ha(this,t,n,r);return this._canPush()?s.send():(s.startTimeout(),this.pushBuffer.push(s)),s}_onMessage(t,n,r){return n}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,n,r){var s,i;const o=t.toLocaleLowerCase(),{close:a,error:l,leave:u,join:c}=ln;if(r&&[a,l,u,c].indexOf(o)>=0&&r!==this._joinRef())return;let f=this._onMessage(o,n,r);if(n&&!f)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(o)?(s=this.bindings.postgres_changes)===null||s===void 0||s.filter(h=>{var v,m,p;return((v=h.filter)===null||v===void 0?void 0:v.event)==="*"||((p=(m=h.filter)===null||m===void 0?void 0:m.event)===null||p===void 0?void 0:p.toLocaleLowerCase())===o}).map(h=>h.callback(f,r)):(i=this.bindings[o])===null||i===void 0||i.filter(h=>{var v,m,p,S,y,g;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in h){const _=h.id,T=(v=h.filter)===null||v===void 0?void 0:v.event;return _&&((m=n.ids)===null||m===void 0?void 0:m.includes(_))&&(T==="*"||(T==null?void 0:T.toLocaleLowerCase())===((p=n.data)===null||p===void 0?void 0:p.type.toLocaleLowerCase()))}else{const _=(y=(S=h==null?void 0:h.filter)===null||S===void 0?void 0:S.event)===null||y===void 0?void 0:y.toLocaleLowerCase();return _==="*"||_===((g=n==null?void 0:n.event)===null||g===void 0?void 0:g.toLocaleLowerCase())}else return h.type.toLocaleLowerCase()===o}).map(h=>{if(typeof f=="object"&&"ids"in f){const v=f.data,{schema:m,table:p,commit_timestamp:S,type:y,errors:g}=v;f=Object.assign(Object.assign({},{schema:m,table:p,commit_timestamp:S,eventType:y,new:{},old:{},errors:g}),this._getPayloadRecords(v))}h.callback(f,r)})}_isClosed(){return this.state===Dt.closed}_isJoined(){return this.state===Dt.joined}_isJoining(){return this.state===Dt.joining}_isLeaving(){return this.state===Dt.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,n,r){const s=t.toLocaleLowerCase(),i={type:s,filter:n,callback:r};return this.bindings[s]?this.bindings[s].push(i):this.bindings[s]=[i],this}_off(t,n){const r=t.toLocaleLowerCase();return this.bindings[r]=this.bindings[r].filter(s=>{var i;return!(((i=s.type)===null||i===void 0?void 0:i.toLocaleLowerCase())===r&&tu.isEqual(s.filter,n))}),this}static isEqual(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(t[r]!==n[r])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(ln.close,{},t)}_onError(t){this._on(ln.error,{},n=>t(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=Dt.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=wf(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=wf(t.columns,t.old_record)),n}}const J5=()=>{},Z5=typeof WebSocket<"u";class X5{constructor(t,n){var r;this.accessToken=null,this.apiKey=null,this.channels=[],this.endPoint="",this.headers=N5,this.params={},this.timeout=og,this.heartbeatIntervalMs=3e4,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.ref=0,this.logger=J5,this.conn=null,this.sendBuffer=[],this.serializer=new U5,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this._resolveFetch=i=>{let o;return i?o=i:typeof fetch>"u"?o=(...a)=>Ie(()=>Promise.resolve().then(()=>wi),void 0,import.meta.url).then(({default:l})=>l(...a)):o=fetch,(...a)=>o(...a)},this.endPoint=`${t}/${Dl.websocket}`,n!=null&&n.transport?this.transport=n.transport:this.transport=null,n!=null&&n.params&&(this.params=n.params),n!=null&&n.headers&&(this.headers=Object.assign(Object.assign({},this.headers),n.headers)),n!=null&&n.timeout&&(this.timeout=n.timeout),n!=null&&n.logger&&(this.logger=n.logger),n!=null&&n.heartbeatIntervalMs&&(this.heartbeatIntervalMs=n.heartbeatIntervalMs);const s=(r=n==null?void 0:n.params)===null||r===void 0?void 0:r.apikey;s&&(this.accessToken=s,this.apiKey=s),this.reconnectAfterMs=n!=null&&n.reconnectAfterMs?n.reconnectAfterMs:i=>[1e3,2e3,5e3,1e4][i-1]||1e4,this.encode=n!=null&&n.encode?n.encode:(i,o)=>o(JSON.stringify(i)),this.decode=n!=null&&n.decode?n.decode:this.serializer.decode.bind(this.serializer),this.reconnectTimer=new ag(async()=>{this.disconnect(),this.connect()},this.reconnectAfterMs),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!this.conn){if(this.transport){this.conn=new this.transport(this._endPointURL(),void 0,{headers:this.headers});return}if(Z5){this.conn=new WebSocket(this._endPointURL()),this.setupConnection();return}this.conn=new Q5(this._endPointURL(),void 0,{close:()=>{this.conn=null}}),Ie(()=>import("./DHQGxp4k.js").then(t=>t.b),__vite__mapDeps([57,45]),import.meta.url).then(({default:t})=>{this.conn=new t(this._endPointURL(),void 0,{headers:this.headers}),this.setupConnection()})}}disconnect(t,n){this.conn&&(this.conn.onclose=function(){},t?this.conn.close(t,n??""):this.conn.close(),this.conn=null,this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.reset())}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const t=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.disconnect(),t}log(t,n,r){this.logger(t,n,r)}connectionState(){switch(this.conn&&this.conn.readyState){case ns.connecting:return mr.Connecting;case ns.open:return mr.Open;case ns.closing:return mr.Closing;default:return mr.Closed}}isConnected(){return this.connectionState()===mr.Open}channel(t,n={config:{}}){const r=new tu(`realtime:${t}`,n,this);return this.channels.push(r),r}push(t){const{topic:n,event:r,payload:s,ref:i}=t,o=()=>{this.encode(t,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${n} ${r} (${i})`,s),this.isConnected()?o():this.sendBuffer.push(o)}setAuth(t){this.accessToken=t,this.channels.forEach(n=>{t&&n.updateJoinPayload({access_token:t}),n.joinedOnce&&n._isJoined()&&n._push(ln.access_token,{access_token:t})})}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let n=this.channels.find(r=>r.topic===t&&(r._isJoined()||r._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${t}"`),n.unsubscribe())}_remove(t){this.channels=this.channels.filter(n=>n._joinRef()!==t._joinRef())}setupConnection(){this.conn&&(this.conn.binaryType="arraybuffer",this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t))}_endPointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:B5}))}_onConnMessage(t){this.decode(t.data,n=>{let{topic:r,event:s,payload:i,ref:o}=n;(o&&o===this.pendingHeartbeatRef||s===(i==null?void 0:i.type))&&(this.pendingHeartbeatRef=null),this.log("receive",`${i.status||""} ${r} ${s} ${o&&"("+o+")"||""}`,i),this.channels.filter(a=>a._isMember(r)).forEach(a=>a._trigger(s,i,o)),this.stateChangeCallbacks.message.forEach(a=>a(n))})}_onConnOpen(){this.log("transport",`connected to ${this._endPointURL()}`),this._flushSendBuffer(),this.reconnectTimer.reset(),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this._sendHeartbeat(),this.heartbeatIntervalMs),this.stateChangeCallbacks.open.forEach(t=>t())}_onConnClose(t){this.log("transport","close",t),this._triggerChanError(),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(n=>n(t))}_onConnError(t){this.log("transport",t.message),this._triggerChanError(),this.stateChangeCallbacks.error.forEach(n=>n(t))}_triggerChanError(){this.channels.forEach(t=>t._trigger(ln.error))}_appendParams(t,n){if(Object.keys(n).length===0)return t;const r=t.match(/\?/)?"&":"?",s=new URLSearchParams(n);return`${t}${r}${s}`}_flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_sendHeartbeat(){var t;if(this.isConnected()){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection"),(t=this.conn)===null||t===void 0||t.close(F5,"hearbeat timeout");return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.setAuth(this.accessToken)}}}class Q5{constructor(t,n,r){this.binaryType="arraybuffer",this.onclose=()=>{},this.onerror=()=>{},this.onmessage=()=>{},this.onopen=()=>{},this.readyState=ns.connecting,this.send=()=>{},this.url=null,this.url=t,this.close=r.close}}class nu extends Error{constructor(t){super(t),this.__isStorageError=!0,this.name="StorageError"}}function ut(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}class e4 extends nu{constructor(t,n){super(t),this.name="StorageApiError",this.status=n}toJSON(){return{name:this.name,message:this.message,status:this.status}}}class kf extends nu{constructor(t,n){super(t),this.name="StorageUnknownError",this.originalError=n}}var t4=function(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):s(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};const cg=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>Ie(()=>Promise.resolve().then(()=>wi),void 0,import.meta.url).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)},n4=()=>t4(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield Ie(()=>Promise.resolve().then(()=>wi),void 0,import.meta.url)).Response:Response});var bs=function(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):s(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};const Da=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),r4=(e,t)=>bs(void 0,void 0,void 0,function*(){const n=yield n4();e instanceof n?e.json().then(r=>{t(new e4(Da(r),e.status||500))}).catch(r=>{t(new kf(Da(r),r))}):t(new kf(Da(e),e))}),s4=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json"},t==null?void 0:t.headers),s.body=JSON.stringify(r),Object.assign(Object.assign({},s),n))};function ta(e,t,n,r,s,i){return bs(this,void 0,void 0,function*(){return new Promise((o,a)=>{e(n,s4(t,r,s,i)).then(l=>{if(!l.ok)throw l;return r!=null&&r.noResolveJson?l:l.json()}).then(l=>o(l)).catch(l=>r4(l,a))})})}function Nl(e,t,n,r){return bs(this,void 0,void 0,function*(){return ta(e,"GET",t,n,r)})}function qn(e,t,n,r,s){return bs(this,void 0,void 0,function*(){return ta(e,"POST",t,r,s,n)})}function i4(e,t,n,r,s){return bs(this,void 0,void 0,function*(){return ta(e,"PUT",t,r,s,n)})}function ug(e,t,n,r,s){return bs(this,void 0,void 0,function*(){return ta(e,"DELETE",t,r,s,n)})}var Kt=function(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):s(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};const o4={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Ef={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class a4{constructor(t,n={},r,s){this.url=t,this.headers=n,this.bucketId=r,this.fetch=cg(s)}uploadOrUpdate(t,n,r,s){return Kt(this,void 0,void 0,function*(){try{let i;const o=Object.assign(Object.assign({},Ef),s),a=Object.assign(Object.assign({},this.headers),t==="POST"&&{"x-upsert":String(o.upsert)});typeof Blob<"u"&&r instanceof Blob?(i=new FormData,i.append("cacheControl",o.cacheControl),i.append("",r)):typeof FormData<"u"&&r instanceof FormData?(i=r,i.append("cacheControl",o.cacheControl)):(i=r,a["cache-control"]=`max-age=${o.cacheControl}`,a["content-type"]=o.contentType);const l=this._removeEmptyFolders(n),u=this._getFinalPath(l),c=yield this.fetch(`${this.url}/object/${u}`,Object.assign({method:t,body:i,headers:a},o!=null&&o.duplex?{duplex:o.duplex}:{})),d=yield c.json();return c.ok?{data:{path:l,id:d.Id,fullPath:d.Key},error:null}:{data:null,error:d}}catch(i){if(ut(i))return{data:null,error:i};throw i}})}upload(t,n,r){return Kt(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",t,n,r)})}uploadToSignedUrl(t,n,r,s){return Kt(this,void 0,void 0,function*(){const i=this._removeEmptyFolders(t),o=this._getFinalPath(i),a=new URL(this.url+`/object/upload/sign/${o}`);a.searchParams.set("token",n);try{let l;const u=Object.assign({upsert:Ef.upsert},s),c=Object.assign(Object.assign({},this.headers),{"x-upsert":String(u.upsert)});typeof Blob<"u"&&r instanceof Blob?(l=new FormData,l.append("cacheControl",u.cacheControl),l.append("",r)):typeof FormData<"u"&&r instanceof FormData?(l=r,l.append("cacheControl",u.cacheControl)):(l=r,c["cache-control"]=`max-age=${u.cacheControl}`,c["content-type"]=u.contentType);const d=yield this.fetch(a.toString(),{method:"PUT",body:l,headers:c}),f=yield d.json();return d.ok?{data:{path:i,fullPath:f.Key},error:null}:{data:null,error:f}}catch(l){if(ut(l))return{data:null,error:l};throw l}})}createSignedUploadUrl(t){return Kt(this,void 0,void 0,function*(){try{let n=this._getFinalPath(t);const r=yield qn(this.fetch,`${this.url}/object/upload/sign/${n}`,{},{headers:this.headers}),s=new URL(this.url+r.url),i=s.searchParams.get("token");if(!i)throw new nu("No token returned by API");return{data:{signedUrl:s.toString(),path:t,token:i},error:null}}catch(n){if(ut(n))return{data:null,error:n};throw n}})}update(t,n,r){return Kt(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",t,n,r)})}move(t,n){return Kt(this,void 0,void 0,function*(){try{return{data:yield qn(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n},{headers:this.headers}),error:null}}catch(r){if(ut(r))return{data:null,error:r};throw r}})}copy(t,n){return Kt(this,void 0,void 0,function*(){try{return{data:{path:(yield qn(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n},{headers:this.headers})).Key},error:null}}catch(r){if(ut(r))return{data:null,error:r};throw r}})}createSignedUrl(t,n,r){return Kt(this,void 0,void 0,function*(){try{let s=this._getFinalPath(t),i=yield qn(this.fetch,`${this.url}/object/sign/${s}`,Object.assign({expiresIn:n},r!=null&&r.transform?{transform:r.transform}:{}),{headers:this.headers});const o=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return i={signedUrl:encodeURI(`${this.url}${i.signedURL}${o}`)},{data:i,error:null}}catch(s){if(ut(s))return{data:null,error:s};throw s}})}createSignedUrls(t,n,r){return Kt(this,void 0,void 0,function*(){try{const s=yield qn(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:n,paths:t},{headers:this.headers}),i=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return{data:s.map(o=>Object.assign(Object.assign({},o),{signedUrl:o.signedURL?encodeURI(`${this.url}${o.signedURL}${i}`):null})),error:null}}catch(s){if(ut(s))return{data:null,error:s};throw s}})}download(t,n){return Kt(this,void 0,void 0,function*(){const s=typeof(n==null?void 0:n.transform)<"u"?"render/image/authenticated":"object",i=this.transformOptsToQueryString((n==null?void 0:n.transform)||{}),o=i?`?${i}`:"";try{const a=this._getFinalPath(t);return{data:yield(yield Nl(this.fetch,`${this.url}/${s}/${a}${o}`,{headers:this.headers,noResolveJson:!0})).blob(),error:null}}catch(a){if(ut(a))return{data:null,error:a};throw a}})}getPublicUrl(t,n){const r=this._getFinalPath(t),s=[],i=n!=null&&n.download?`download=${n.download===!0?"":n.download}`:"";i!==""&&s.push(i);const a=typeof(n==null?void 0:n.transform)<"u"?"render/image":"object",l=this.transformOptsToQueryString((n==null?void 0:n.transform)||{});l!==""&&s.push(l);let u=s.join("&");return u!==""&&(u=`?${u}`),{data:{publicUrl:encodeURI(`${this.url}/${a}/public/${r}${u}`)}}}remove(t){return Kt(this,void 0,void 0,function*(){try{return{data:yield ug(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:t},{headers:this.headers}),error:null}}catch(n){if(ut(n))return{data:null,error:n};throw n}})}list(t,n,r){return Kt(this,void 0,void 0,function*(){try{const s=Object.assign(Object.assign(Object.assign({},o4),n),{prefix:t||""});return{data:yield qn(this.fetch,`${this.url}/object/list/${this.bucketId}`,s,{headers:this.headers},r),error:null}}catch(s){if(ut(s))return{data:null,error:s};throw s}})}_getFinalPath(t){return`${this.bucketId}/${t}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(t){const n=[];return t.width&&n.push(`width=${t.width}`),t.height&&n.push(`height=${t.height}`),t.resize&&n.push(`resize=${t.resize}`),t.format&&n.push(`format=${t.format}`),t.quality&&n.push(`quality=${t.quality}`),n.join("&")}}const l4="2.5.5",c4={"X-Client-Info":`storage-js/${l4}`};var Br=function(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):s(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};class u4{constructor(t,n={},r){this.url=t,this.headers=Object.assign(Object.assign({},c4),n),this.fetch=cg(r)}listBuckets(){return Br(this,void 0,void 0,function*(){try{return{data:yield Nl(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(t){if(ut(t))return{data:null,error:t};throw t}})}getBucket(t){return Br(this,void 0,void 0,function*(){try{return{data:yield Nl(this.fetch,`${this.url}/bucket/${t}`,{headers:this.headers}),error:null}}catch(n){if(ut(n))return{data:null,error:n};throw n}})}createBucket(t,n={public:!1}){return Br(this,void 0,void 0,function*(){try{return{data:yield qn(this.fetch,`${this.url}/bucket`,{id:t,name:t,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(ut(r))return{data:null,error:r};throw r}})}updateBucket(t,n){return Br(this,void 0,void 0,function*(){try{return{data:yield i4(this.fetch,`${this.url}/bucket/${t}`,{id:t,name:t,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(ut(r))return{data:null,error:r};throw r}})}emptyBucket(t){return Br(this,void 0,void 0,function*(){try{return{data:yield qn(this.fetch,`${this.url}/bucket/${t}/empty`,{},{headers:this.headers}),error:null}}catch(n){if(ut(n))return{data:null,error:n};throw n}})}deleteBucket(t){return Br(this,void 0,void 0,function*(){try{return{data:yield ug(this.fetch,`${this.url}/bucket/${t}`,{},{headers:this.headers}),error:null}}catch(n){if(ut(n))return{data:null,error:n};throw n}})}}class d4 extends u4{constructor(t,n={},r){super(t,n,r)}from(t){return new a4(this.url,this.headers,t,this.fetch)}}const f4="2.43.0";let Os="";typeof Deno<"u"?Os="deno":typeof document<"u"?Os="web":typeof navigator<"u"&&navigator.product==="ReactNative"?Os="react-native":Os="node";const h4={"X-Client-Info":`supabase-js-${Os}/${f4}`},m4={headers:h4},v4={schema:"public"},g4={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},p4={};var y4=function(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):s(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};const b4=e=>{let t;return e?t=e:typeof fetch>"u"?t=Qc:t=fetch,(...n)=>t(...n)},w4=()=>typeof Headers>"u"?ig:Headers,_4=(e,t,n)=>{const r=b4(n),s=w4();return(i,o)=>y4(void 0,void 0,void 0,function*(){var a;const l=(a=yield t())!==null&&a!==void 0?a:e;let u=new s(o==null?void 0:o.headers);return u.has("apikey")||u.set("apikey",e),u.has("Authorization")||u.set("Authorization",`Bearer ${l}`),r(i,Object.assign(Object.assign({},o),{headers:u}))})};function S4(e){return e.replace(/\/$/,"")}function C4(e,t){const{db:n,auth:r,realtime:s,global:i}=e,{db:o,auth:a,realtime:l,global:u}=t;return{db:Object.assign(Object.assign({},o),n),auth:Object.assign(Object.assign({},a),r),realtime:Object.assign(Object.assign({},l),s),global:Object.assign(Object.assign({},u),i)}}const dg="2.64.1",k4="http://localhost:9999",E4="supabase.auth.token",T4={"X-Client-Info":`gotrue-js/${dg}`},Tf=10,Bl="X-Supabase-Api-Version",fg={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}};function A4(e){return Math.round(Date.now()/1e3)+e}function x4(){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 on=()=>typeof document<"u",lr={tested:!1,writable:!1},qs=()=>{if(!on())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(lr.tested)return lr.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),lr.tested=!0,lr.writable=!0}catch{lr.tested=!0,lr.writable=!1}return lr.writable};function ja(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((s,i)=>{t[i]=s})}catch{}return n.searchParams.forEach((r,s)=>{t[s]=r}),t}const hg=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>Ie(()=>Promise.resolve().then(()=>wi),void 0,import.meta.url).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)},L4=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",mg=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},qi=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},Na=async(e,t)=>{await e.removeItem(t)};function P4(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let n="",r,s,i,o,a,l,u,c=0;for(e=e.replace("-","+").replace("_","/");c>4,s=(a&15)<<4|l>>2,i=(l&3)<<6|u,n=n+String.fromCharCode(r),l!=64&&s!=0&&(n=n+String.fromCharCode(s)),u!=64&&i!=0&&(n=n+String.fromCharCode(i));return n}class na{constructor(){this.promise=new na.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}na.promiseConstructor=Promise;function Af(e){const t=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}=?$|[a-z0-9_-]{2}(==)?$)$/i,n=e.split(".");if(n.length!==3)throw new Error("JWT is not valid: not a JWT structure");if(!t.test(n[1]))throw new Error("JWT is not valid: payload is not in base64url format");const r=n[1];return JSON.parse(P4(r))}async function O4(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function I4(e,t){return new Promise((r,s)=>{(async()=>{for(let i=0;i<1/0;i++)try{const o=await e(i);if(!t(i,null,o)){r(o);return}}catch(o){if(!t(i,o)){s(o);return}}})()})}function R4(e){return("0"+e.toString(16)).substr(-2)}function M4(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let s="";for(let i=0;i<56;i++)s+=n.charAt(Math.floor(Math.random()*r));return s}return crypto.getRandomValues(t),Array.from(t,R4).join("")}async function $4(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",n),s=new Uint8Array(r);return Array.from(s).map(i=>String.fromCharCode(i)).join("")}function V4(e){return btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function H4(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const n=await $4(e);return V4(n)}async function Fr(e,t,n=!1){const r=M4();let s=r;n&&(s+="/PASSWORD_RECOVERY"),await mg(e,`${t}-code-verifier`,s);const i=await H4(r);return[i,r===i?"plain":"s256"]}const D4=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function j4(e){const t=e.headers.get(Bl);if(!t||!t.match(D4))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}class ru extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function ve(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class N4 extends ru{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function B4(e){return ve(e)&&e.name==="AuthApiError"}class vg extends ru{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class Mr extends ru{constructor(t,n,r,s){super(t,r,s),this.name=n,this.status=r}}class cr extends Mr{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}class Ba extends Mr{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class Ki extends Mr{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class Gi extends Mr{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class xf extends Mr{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class Fl extends Mr{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function Fa(e){return ve(e)&&e.name==="AuthRetryableFetchError"}class Lf extends Mr{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}var F4=function(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 s=0,r=Object.getOwnPropertySymbols(e);se.msg||e.message||e.error_description||e.error||JSON.stringify(e),U4=[502,503,504];async function Pf(e){var t;if(!L4(e))throw new Fl(fr(e),0);if(U4.includes(e.status))throw new Fl(fr(e),e.status);let n;try{n=await e.json()}catch(i){throw new vg(fr(i),i)}let r;const s=j4(e);if(s&&s.getTime()>=fg["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?r=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(r=n.error_code),r){if(r==="weak_password")throw new Lf(fr(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[])}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((i,o)=>i&&typeof o=="string",!0))throw new Lf(fr(n),e.status,n.weak_password.reasons);throw new N4(fr(n),e.status||500,r)}const z4=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),s.body=JSON.stringify(r),Object.assign(Object.assign({},s),n))};async function be(e,t,n,r){var s;const i=Object.assign({},r==null?void 0:r.headers);i[Bl]||(i[Bl]=fg["2024-01-01"].name),r!=null&&r.jwt&&(i.Authorization=`Bearer ${r.jwt}`);const o=(s=r==null?void 0:r.query)!==null&&s!==void 0?s:{};r!=null&&r.redirectTo&&(o.redirect_to=r.redirectTo);const a=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",l=await W4(e,t,n+a,{headers:i,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(l):{data:Object.assign({},l),error:null}}async function W4(e,t,n,r,s,i){const o=z4(t,r,s,i);let a;try{a=await e(n,Object.assign({},o))}catch(l){throw console.error(l),new Fl(fr(l),0)}if(a.ok||await Pf(a),r!=null&&r.noResolveJson)return a;try{return await a.json()}catch(l){await Pf(l)}}function Nn(e){var t;let n=null;Y4(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=A4(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function Of(e){const t=Nn(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(t.data.weak_password=e.weak_password),t}function Kn(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function q4(e){return{data:e,error:null}}function K4(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i}=e,o=F4(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i},l=Object.assign({},o);return{data:{properties:a,user:l},error:null}}function G4(e){return e}function Y4(e){return e.access_token&&e.refresh_token&&e.expires_in}var J4=function(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 s=0,r=Object.getOwnPropertySymbols(e);s0&&(h.forEach(v=>{const m=parseInt(v.split(";")[0].split("=")[1].substring(0,1)),p=JSON.parse(v.split(";")[1].split("=")[1]);u[`${p}Page`]=m}),u.total=parseInt(f)),{data:Object.assign(Object.assign({},d),u),error:null}}catch(u){if(ve(u))return{data:{users:[]},error:u};throw u}}async getUserById(t){try{return await be(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:Kn})}catch(n){if(ve(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){try{return await be(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:Kn})}catch(r){if(ve(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){try{return await be(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:Kn})}catch(r){if(ve(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){try{const{data:n,error:r}=await be(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:n,error:r}}catch(n){if(ve(n))return{data:null,error:n};throw n}}async _deleteFactor(t){try{return{data:await be(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(ve(n))return{data:null,error:n};throw n}}}const X4={getItem:e=>qs()?globalThis.localStorage.getItem(e):null,setItem:(e,t)=>{qs()&&globalThis.localStorage.setItem(e,t)},removeItem:e=>{qs()&&globalThis.localStorage.removeItem(e)}};function If(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}function Q4(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}const Ur={debug:!!(globalThis&&qs()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class gg extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class e3 extends gg{}async function t3(e,t,n){Ur.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;return t>0&&setTimeout(()=>{r.abort(),Ur.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async s=>{if(s){Ur.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,s.name);try{return await n()}finally{Ur.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,s.name)}}else{if(t===0)throw Ur.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new e3(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(Ur.debug)try{const i=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(i,null," "))}catch(i){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",i)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await n()}})}Q4();const n3={url:k4,storageKey:E4,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:T4,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1},Es=30*1e3,Rf=3;async function Mf(e,t,n){return await n()}class si{constructor(t){var n,r;this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log,this.instanceID=si.nextInstanceID,si.nextInstanceID+=1,this.instanceID>0&&on()&&console.warn("Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.");const s=Object.assign(Object.assign({},n3),t);if(this.logDebugMessages=!!s.debug,typeof s.debug=="function"&&(this.logger=s.debug),this.persistSession=s.persistSession,this.storageKey=s.storageKey,this.autoRefreshToken=s.autoRefreshToken,this.admin=new Z4({url:s.url,headers:s.headers,fetch:s.fetch}),this.url=s.url,this.headers=s.headers,this.fetch=hg(s.fetch),this.lock=s.lock||Mf,this.detectSessionInUrl=s.detectSessionInUrl,this.flowType=s.flowType,this.hasCustomAuthorizationHeader=s.hasCustomAuthorizationHeader,s.lock?this.lock=s.lock:on()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=t3:this.lock=Mf,this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this)},this.persistSession?s.storage?this.storage=s.storage:qs()?this.storage=X4:(this.memoryStorage={},this.storage=If(this.memoryStorage)):(this.memoryStorage={},this.storage=If(this.memoryStorage)),on()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(i){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",i)}(r=this.broadcastChannel)===null||r===void 0||r.addEventListener("message",async i=>{this._debug("received broadcast notification from other tab or client",i),await this._notifyAllSubscribers(i.data.event,i.data.session,!1)})}this.initialize()}_debug(...t){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${dg}) ${new Date().toISOString()}`,...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){try{const t=on()?await this._isPKCEFlow():!1;if(this._debug("#_initialize()","begin","is PKCE flow",t),t||this.detectSessionInUrl&&this._isImplicitGrantFlow()){const{data:n,error:r}=await this._getSessionFromURL(t);if(r)return this._debug("#_initialize()","error detecting session from URL",r),(r==null?void 0:r.message)==="Identity is already linked"||(r==null?void 0:r.message)==="Identity is already linked to another user"?{error:r}:(await this._removeSession(),{error:r});const{session:s,redirectType:i}=n;return this._debug("#_initialize()","detected session in URL",s,"redirect type",i),await this._saveSession(s),setTimeout(async()=>{i==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",s):await this._notifyAllSubscribers("SIGNED_IN",s)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(t){return ve(t)?{error:t}:{error:new vg("Unexpected error during initialization",t)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,s;try{await this._removeSession();const i=await be(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(s=t==null?void 0:t.options)===null||s===void 0?void 0:s.captchaToken}},xform:Nn}),{data:o,error:a}=i;if(a||!o)return{data:{user:null,session:null},error:a};const l=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(i){if(ve(i))return{data:{user:null,session:null},error:i};throw i}}async signUp(t){var n,r,s;try{await this._removeSession();let i;if("email"in t){const{email:c,password:d,options:f}=t;let h=null,v=null;this.flowType==="pkce"&&([h,v]=await Fr(this.storage,this.storageKey)),i=await be(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:f==null?void 0:f.emailRedirectTo,body:{email:c,password:d,data:(n=f==null?void 0:f.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken},code_challenge:h,code_challenge_method:v},xform:Nn})}else if("phone"in t){const{phone:c,password:d,options:f}=t;i=await be(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:c,password:d,data:(r=f==null?void 0:f.data)!==null&&r!==void 0?r:{},channel:(s=f==null?void 0:f.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken}},xform:Nn})}else throw new Ki("You must provide either an email or phone number and a password");const{data:o,error:a}=i;if(a||!o)return{data:{user:null,session:null},error:a};const l=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(i){if(ve(i))return{data:{user:null,session:null},error:i};throw i}}async signInWithPassword(t){try{await this._removeSession();let n;if("email"in t){const{email:i,password:o,options:a}=t;n=await be(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:i,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Of})}else if("phone"in t){const{phone:i,password:o,options:a}=t;n=await be(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:i,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Of})}else throw new Ki("You must provide either an email or phone number and a password");const{data:r,error:s}=n;return s?{data:{user:null,session:null},error:s}:!r||!r.session||!r.user?{data:{user:null,session:null},error:new Ba}:(r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),{data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:s})}catch(n){if(ve(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOAuth(t){var n,r,s,i;return await this._removeSession(),await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=t.options)===null||r===void 0?void 0:r.scopes,queryParams:(s=t.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(i=t.options)===null||i===void 0?void 0:i.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(t))}async _exchangeCodeForSession(t){const n=await qi(this.storage,`${this.storageKey}-code-verifier`),[r,s]=(n??"").split("/"),{data:i,error:o}=await be(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:Nn});return await Na(this.storage,`${this.storageKey}-code-verifier`),o?{data:{user:null,session:null,redirectType:null},error:o}:!i||!i.session||!i.user?{data:{user:null,session:null,redirectType:null},error:new Ba}:(i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",i.session)),{data:Object.assign(Object.assign({},i),{redirectType:s??null}),error:o})}async signInWithIdToken(t){await this._removeSession();try{const{options:n,provider:r,token:s,access_token:i,nonce:o}=t,a=await be(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:s,access_token:i,nonce:o,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:Nn}),{data:l,error:u}=a;return u?{data:{user:null,session:null},error:u}:!l||!l.session||!l.user?{data:{user:null,session:null},error:new Ba}:(l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),{data:l,error:u})}catch(n){if(ve(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOtp(t){var n,r,s,i,o;try{if(await this._removeSession(),"email"in t){const{email:a,options:l}=t;let u=null,c=null;this.flowType==="pkce"&&([u,c]=await Fr(this.storage,this.storageKey));const{error:d}=await be(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(n=l==null?void 0:l.data)!==null&&n!==void 0?n:{},create_user:(r=l==null?void 0:l.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:u,code_challenge_method:c},redirectTo:l==null?void 0:l.emailRedirectTo});return{data:{user:null,session:null},error:d}}if("phone"in t){const{phone:a,options:l}=t,{data:u,error:c}=await be(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(s=l==null?void 0:l.data)!==null&&s!==void 0?s:{},create_user:(i=l==null?void 0:l.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(o=l==null?void 0:l.channel)!==null&&o!==void 0?o:"sms"}});return{data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:c}}throw new Ki("You must provide either an email or phone number.")}catch(a){if(ve(a))return{data:{user:null,session:null},error:a};throw a}}async verifyOtp(t){var n,r;try{t.type!=="email_change"&&t.type!=="phone_change"&&await this._removeSession();let s,i;"options"in t&&(s=(n=t.options)===null||n===void 0?void 0:n.redirectTo,i=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:o,error:a}=await be(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:i}}),redirectTo:s,xform:Nn});if(a)throw a;if(!o)throw new Error("An error occurred on token verification.");const l=o.session,u=o.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(s){if(ve(s))return{data:{user:null,session:null},error:s};throw s}}async signInWithSSO(t){var n,r,s;try{await this._removeSession();let i=null,o=null;return this.flowType==="pkce"&&([i,o]=await Fr(this.storage,this.storageKey)),await be(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(r=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((s=t==null?void 0:t.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:i,code_challenge_method:o}),headers:this.headers,xform:q4})}catch(i){if(ve(i))return{data:null,error:i};throw i}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)throw r;if(!n)throw new cr;const{error:s}=await be(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return{data:{user:null,session:null},error:s}})}catch(t){if(ve(t))return{data:{user:null,session:null},error:t};throw t}}async resend(t){try{t.type!="email_change"&&t.type!="phone_change"&&await this._removeSession();const n=`${this.url}/resend`;if("email"in t){const{email:r,type:s,options:i}=t,{error:o}=await be(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},redirectTo:i==null?void 0:i.emailRedirectTo});return{data:{user:null,session:null},error:o}}else if("phone"in t){const{phone:r,type:s,options:i}=t,{data:o,error:a}=await be(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}}});return{data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:a}}throw new Ki("You must provide either an email or phone number and a type")}catch(n){if(ve(n))return{data:{user:null,session:null},error:n};throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async n=>n))}async _acquireLock(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await t(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const n=await qi(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at<=Date.now()/1e3:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r)return this.storage.isServer&&(t=new Proxy(t,{get(a,l,u){return l==="user"&&console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and many not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),Reflect.get(a,l,u)}})),{data:{session:t},error:null};const{session:s,error:i}=await this._callRefreshToken(t.refresh_token);return i?{data:{session:null},error:i}:{data:{session:s},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(t){return t?await this._getUser(t):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(t){try{return t?await be(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:Kn}):await this._useSession(async n=>{var r,s,i;const{data:o,error:a}=n;if(a)throw a;return!(!((r=o.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new cr}:await be(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(i=(s=o.session)===null||s===void 0?void 0:s.access_token)!==null&&i!==void 0?i:void 0,xform:Kn})})}catch(n){if(ve(n))return{data:{user:null},error:n};throw n}}async updateUser(t,n={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(t,n))}async _updateUser(t,n={}){try{return await this._useSession(async r=>{const{data:s,error:i}=r;if(i)throw i;if(!s.session)throw new cr;const o=s.session;let a=null,l=null;this.flowType==="pkce"&&t.email!=null&&([a,l]=await Fr(this.storage,this.storageKey));const{data:u,error:c}=await be(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:a,code_challenge_method:l}),jwt:o.access_token,xform:Kn});if(c)throw c;return o.user=u.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),{data:{user:o.user},error:null}})}catch(r){if(ve(r))return{data:{user:null},error:r};throw r}}_decodeJWT(t){return Af(t)}async setSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new cr;const n=Date.now()/1e3;let r=n,s=!0,i=null;const o=Af(t.access_token);if(o.exp&&(r=o.exp,s=r<=n),s){const{session:a,error:l}=await this._callRefreshToken(t.refresh_token);if(l)return{data:{user:null,session:null},error:l};if(!a)return{data:{user:null,session:null},error:null};i=a}else{const{data:a,error:l}=await this._getUser(t.access_token);if(l)throw l;i={access_token:t.access_token,refresh_token:t.refresh_token,user:a.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)}return{data:{user:i.user,session:i},error:null}}catch(n){if(ve(n))return{data:{session:null,user:null},error:n};throw n}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async n=>{var r;if(!t){const{data:o,error:a}=n;if(a)throw a;t=(r=o.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new cr;const{session:s,error:i}=await this._callRefreshToken(t.refresh_token);return i?{data:{user:null,session:null},error:i}:s?{data:{user:s.user,session:s},error:null}:{data:{user:null,session:null},error:null}})}catch(n){if(ve(n))return{data:{user:null,session:null},error:n};throw n}}async _getSessionFromURL(t){try{if(!on())throw new Gi("No browser detected.");if(this.flowType==="implicit"&&!this._isImplicitGrantFlow())throw new Gi("Not a valid implicit grant flow url.");if(this.flowType=="pkce"&&!t)throw new xf("Not a valid PKCE flow url.");const n=ja(window.location.href);if(t){if(!n.code)throw new xf("No code detected.");const{data:y,error:g}=await this._exchangeCodeForSession(n.code);if(g)throw g;const _=new URL(window.location.href);return _.searchParams.delete("code"),window.history.replaceState(window.history.state,"",_.toString()),{data:{session:y.session,redirectType:null},error:null}}if(n.error||n.error_description||n.error_code)throw new Gi(n.error_description||"Error in URL with unspecified error_description",{error:n.error||"unspecified_error",code:n.error_code||"unspecified_code"});const{provider_token:r,provider_refresh_token:s,access_token:i,refresh_token:o,expires_in:a,expires_at:l,token_type:u}=n;if(!i||!a||!o||!u)throw new Gi("No session defined in URL");const c=Math.round(Date.now()/1e3),d=parseInt(a);let f=c+d;l&&(f=parseInt(l));const h=f-c;h*1e3<=Es&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${h}s, should have been closer to ${d}s`);const v=f-d;c-v>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",v,f,c):c-v<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clok for skew",v,f,c);const{data:m,error:p}=await this._getUser(i);if(p)throw p;const S={provider_token:r,provider_refresh_token:s,access_token:i,expires_in:d,expires_at:f,refresh_token:o,token_type:u,user:m.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:S,redirectType:n.type},error:null}}catch(n){if(ve(n))return{data:{session:null,redirectType:null},error:n};throw n}}_isImplicitGrantFlow(){const t=ja(window.location.href);return!!(on()&&(t.access_token||t.error_description))}async _isPKCEFlow(){const t=ja(window.location.href),n=await qi(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i)return{error:i};const o=(r=s.session)===null||r===void 0?void 0:r.access_token;if(o){const{error:a}=await this.admin.signOut(o,t);if(a&&!(B4(a)&&(a.status===404||a.status===401)))return{error:a}}return t!=="others"&&(await this._removeSession(),await Na(this.storage,`${this.storageKey}-code-verifier`),await this._notifyAllSubscribers("SIGNED_OUT",null)),{error:null}})}onAuthStateChange(t){const n=x4(),r={id:n,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async n=>{var r,s;try{const{data:{session:i},error:o}=n;if(o)throw o;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",i)),this._debug("INITIAL_SESSION","callback id",t,"session",i)}catch(i){await((s=this.stateChangeEmitters.get(t))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",i),console.error(i)}})}async resetPasswordForEmail(t,n={}){let r=null,s=null;this.flowType==="pkce"&&([r,s]=await Fr(this.storage,this.storageKey,!0));try{return await be(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:s,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(i){if(ve(i))return{data:null,error:i};throw i}}async getUserIdentities(){var t;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return{data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null}}catch(n){if(ve(n))return{data:null,error:n};throw n}}async linkIdentity(t){var n;try{const{data:r,error:s}=await this._useSession(async i=>{var o,a,l,u,c;const{data:d,error:f}=i;if(f)throw f;const h=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(o=t.options)===null||o===void 0?void 0:o.redirectTo,scopes:(a=t.options)===null||a===void 0?void 0:a.scopes,queryParams:(l=t.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await be(this.fetch,"GET",h,{headers:this.headers,jwt:(c=(u=d.session)===null||u===void 0?void 0:u.access_token)!==null&&c!==void 0?c:void 0})});if(s)throw s;return on()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),{data:{provider:t.provider,url:r==null?void 0:r.url},error:null}}catch(r){if(ve(r))return{data:{provider:t.provider,url:null},error:r};throw r}}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,s;const{data:i,error:o}=n;if(o)throw o;return await be(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(s=(r=i.session)===null||r===void 0?void 0:r.access_token)!==null&&s!==void 0?s:void 0})})}catch(n){if(ve(n))return{data:null,error:n};throw n}}async _refreshAccessToken(t){const n=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await I4(async s=>(s>0&&await O4(200*Math.pow(2,s-1)),this._debug(n,"refreshing attempt",s),await be(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:Nn})),(s,i)=>{const o=200*Math.pow(2,s);return i&&Fa(i)&&Date.now()+o-r{try{await a.callback(t,n)}catch(l){i.push(l)}});if(await Promise.all(o),i.length>0){for(let a=0;athis._autoRefreshTokenTick(),Es);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((r.expires_at*1e3-t)/Es);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${Es}ms, refresh threshold is ${Rf} ticks`),s<=Rf&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof gg)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!on()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(-1,async()=>{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,n,r){const s=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&s.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&s.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[i,o]=await Fr(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(o)}`});s.push(a.toString())}if(r!=null&&r.queryParams){const i=new URLSearchParams(r.queryParams);s.push(i.toString())}return r!=null&&r.skipBrowserRedirect&&s.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${s.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;return i?{data:null,error:i}:await be(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(ve(n))return{data:null,error:n};throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,s;const{data:i,error:o}=n;if(o)return{data:null,error:o};const{data:a,error:l}=await be(this.fetch,"POST",`${this.url}/factors`,{body:{friendly_name:t.friendlyName,factor_type:t.factorType,issuer:t.issuer},headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});return l?{data:null,error:l}:(!((s=a==null?void 0:a.totp)===null||s===void 0)&&s.qr_code&&(a.totp.qr_code=`data:image/svg+xml;utf-8,${a.totp.qr_code}`),{data:a,error:null})})}catch(n){if(ve(n))return{data:null,error:n};throw n}}async _verify(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i)return{data:null,error:i};const{data:o,error:a}=await be(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:{code:t.code,challenge_id:t.challengeId},headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return a?{data:null,error:a}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+o.expires_in},o)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",o),{data:o,error:a})})}catch(n){if(ve(n))return{data:null,error:n};throw n}})}async _challenge(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;return i?{data:null,error:i}:await be(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(ve(n))return{data:null,error:n};throw n}})}async _challengeAndVerify(t){const{data:n,error:r}=await this._challenge({factorId:t.factorId});return r?{data:null,error:r}:await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){const{data:{user:t},error:n}=await this.getUser();if(n)return{data:null,error:n};const r=(t==null?void 0:t.factors)||[],s=r.filter(i=>i.factor_type==="totp"&&i.status==="verified");return{data:{all:r,totp:s},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async t=>{var n,r;const{data:{session:s},error:i}=t;if(i)return{data:null,error:i};if(!s)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const o=this._decodeJWT(s.access_token);let a=null;o.aal&&(a=o.aal);let l=a;((r=(n=s.user.factors)===null||n===void 0?void 0:n.filter(d=>d.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(l="aal2");const c=o.amr||[];return{data:{currentLevel:a,nextLevel:l,currentAuthenticationMethods:c},error:null}}))}}si.nextInstanceID=0;const r3=si;class s3 extends r3{constructor(t){super(t)}}var i3=function(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):s(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};class o3{constructor(t,n,r){var s,i,o,a,l,u,c,d;if(this.supabaseUrl=t,this.supabaseKey=n,!t)throw new Error("supabaseUrl is required.");if(!n)throw new Error("supabaseKey is required.");const f=S4(t);this.realtimeUrl=`${f}/realtime/v1`.replace(/^http/i,"ws"),this.authUrl=`${f}/auth/v1`,this.storageUrl=`${f}/storage/v1`,this.functionsUrl=`${f}/functions/v1`;const h=`sb-${new URL(this.authUrl).hostname.split(".")[0]}-auth-token`,v={db:v4,realtime:p4,auth:Object.assign(Object.assign({},g4),{storageKey:h}),global:m4},m=C4(r??{},v);this.storageKey=(i=(s=m.auth)===null||s===void 0?void 0:s.storageKey)!==null&&i!==void 0?i:"",this.headers=(a=(o=m.global)===null||o===void 0?void 0:o.headers)!==null&&a!==void 0?a:{},this.auth=this._initSupabaseAuthClient((l=m.auth)!==null&&l!==void 0?l:{},this.headers,(u=m.global)===null||u===void 0?void 0:u.fetch),this.fetch=_4(n,this._getAccessToken.bind(this),(c=m.global)===null||c===void 0?void 0:c.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers},m.realtime)),this.rest=new eu(`${f}/rest/v1`,{headers:this.headers,schema:(d=m.db)===null||d===void 0?void 0:d.schema,fetch:this.fetch}),this._listenForAuthEvents()}get functions(){return new x5(this.functionsUrl,{headers:this.headers,customFetch:this.fetch})}get storage(){return new d4(this.storageUrl,this.headers,this.fetch)}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,n={},r={}){return this.rest.rpc(t,n,r)}channel(t,n={config:{}}){return this.realtime.channel(t,n)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var t,n;return i3(this,void 0,void 0,function*(){const{data:r}=yield this.auth.getSession();return(n=(t=r.session)===null||t===void 0?void 0:t.access_token)!==null&&n!==void 0?n:null})}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:n,detectSessionInUrl:r,storage:s,storageKey:i,flowType:o,debug:a},l,u){var c;const d={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new s3({url:this.authUrl,headers:Object.assign(Object.assign({},d),l),storageKey:i,autoRefreshToken:t,persistSession:n,detectSessionInUrl:r,storage:s,flowType:o,debug:a,fetch:u,hasCustomAuthorizationHeader:(c="Authorization"in this.headers)!==null&&c!==void 0?c:!1})}_initRealtimeClient(t){return new X5(this.realtimeUrl,Object.assign(Object.assign({},t),{params:Object.assign({apikey:this.supabaseKey},t==null?void 0:t.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((n,r)=>{this._handleTokenChanged(n,"CLIENT",r==null?void 0:r.access_token)})}_handleTokenChanged(t,n,r){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==r?(this.realtime.setAuth(r??null),this.changedAccessToken=r):t==="SIGNED_OUT"&&(this.realtime.setAuth(this.supabaseKey),n=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const a3=(e,t,n)=>new o3(e,t,n),l3=ot({name:"supabase",enforce:"pre",async setup(){let e,t;const n=To(),r=Wo().public.supabase,{url:s,key:i,cookieName:o,cookieOptions:a,clientOptions:l}=r,u=a3(s,i,l),c=Wi(`${o}-access-token`,a),d=Wi(`${o}-refresh-token`,a),f=Wi(`${o}-provider-token`,a),h=Wi(`${o}-provider-refresh-token`,a);return u.auth.onAuthStateChange((v,m)=>{m?JSON.stringify(n)!==JSON.stringify(m)&&(n.value=m):n.value=null,(v==="SIGNED_IN"||v==="TOKEN_REFRESHED")&&(c.value=m==null?void 0:m.access_token,d.value=m==null?void 0:m.refresh_token,m.provider_token&&(f.value=m.provider_token),m.provider_refresh_token&&(h.value=m.provider_refresh_token)),v==="SIGNED_OUT"&&(c.value=null,d.value=null,f.value=null,h.value=null)}),[e,t]=kn(()=>u.auth.getSession()),await e,t(),{provide:{supabase:{client:u}}}}}),$f=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),z7=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),pg=e=>{const t=Ue();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{$f(e)}):$f(e)},c3=ot({name:"nuxt:payload",setup(e){pn().beforeResolve(async(t,n)=>{if(t.path===n.path)return;const r=await Cd(t.path);r&&Object.assign(e.static.data,r.data)}),pg(()=>{var t;e.hooks.hook("link:prefetch",async n=>{zo(n).protocol||await Cd(n)}),((t=navigator.connection)==null?void 0:t.effectiveType)!=="slow-2g"&&setTimeout(Yo,1e3)})}}),u3=ot(e=>{let t;async function n(){const r=await Yo();t&&clearTimeout(t),t=setTimeout(n,1e3*60*60);try{const s=await $fetch(Vc("builds/latest.json")+`?${Date.now()}`);s.id!==r.id&&e.hooks.callHook("app:manifest:update",s)}catch{}}pg(()=>{t=setTimeout(n,1e3*60*60)})});function d3(e={}){const t=e.path||window.location.pathname;let n={};try{n=Qs(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||(n==null?void 0:n.path)!==t||(n==null?void 0:n.expires){r.value=!0}),Ye(f3,!0),s=>{var l;if(r.value)return(l=t.default)==null?void 0:l.call(t);const i=t.fallback||t.placeholder;if(i)return i();const o=s.fallback||s.placeholder||"",a=s.fallbackTag||s.placeholderTag||"span";return Qe(a,n,o)}}}),m3=ot(e=>{const t=Z_();return e.vueApp.use(t),bi(t),e.payload&&e.payload.pinia&&(t.state.value=e.payload.pinia),{provide:{pinia:t}}}),v3=ot({name:"nuxt:global-components"}),Yi={},g3=ot({name:"nuxt:prefetch",setup(e){const t=pn();e.hooks.hook("app:mounted",()=>{t.beforeEach(async n=>{var s;const r=(s=n==null?void 0:n.meta)==null?void 0:s.layout;r&&typeof Yi[r]=="function"&&await Yi[r]()})}),e.hooks.hook("link:prefetch",n=>{if(Or(n))return;const r=t.resolve(n);if(!r)return;const s=r.meta.layout;let i=Jc(r.meta.middleware);i=i.filter(o=>typeof o=="string");for(const o of i)typeof zs[o]=="function"&&zs[o]();s&&typeof Yi[s]=="function"&&Yi[s]()})}}),p3={favicon:{},transparent:{},maskable:{},apple:{},appleSplashScreen:{}},y3=ot(()=>{const e={};return Ts(e,"transparent"),Ts(e,"maskable"),Ts(e,"favicon"),Ts(e,"apple"),Ts(e,"appleSplashScreen"),{provide:{pwaIcons:e}}});function Ts(e,t){e[t]=Object.values(p3[t]??{}).reduce((n,r)=>{const s={...r,asImage:{src:r.url,key:`${t}-${r.name}`}};return r.width&&r.height&&(s.asImage.width=r.width,s.asImage.height=r.height),n[r.name]=s,n},{})}function b3(e={}){const{immediate:t=!1,onNeedRefresh:n,onOfflineReady:r,onRegistered:s,onRegisteredSW:i,onRegisterError:o}=e;let a,l,u;const c=async(f=!0)=>{await l,await(u==null?void 0:u())};async function d(){if("serviceWorker"in navigator){if(a=await Ie(()=>import("./D5gOYdM7.js"),[],import.meta.url).then(({Workbox:f})=>new f("/sw.js",{scope:"/",type:"classic"})).catch(f=>{o==null||o(f)}),!a)return;u=async()=>{await(a==null?void 0:a.messageSkipWaiting())};{let f=!1;const h=()=>{f=!0,a==null||a.addEventListener("controlling",v=>{v.isUpdate&&window.location.reload()}),n==null||n()};a.addEventListener("installed",v=>{typeof v.isUpdate>"u"?typeof v.isExternal<"u"?v.isExternal?h():!f&&(r==null||r()):v.isExternal?window.location.reload():!f&&(r==null||r()):v.isUpdate||r==null||r()}),a.addEventListener("waiting",h),a.addEventListener("externalwaiting",h)}a.register({immediate:t}).then(f=>{i?i("/sw.js",f):s==null||s(f)}).catch(f=>{o==null||o(f)})}}return l=d(),c}function w3(e={}){const{immediate:t=!0,onNeedRefresh:n,onOfflineReady:r,onRegistered:s,onRegisteredSW:i,onRegisterError:o}=e,a=N(!1),l=N(!1);return{updateServiceWorker:b3({immediate:t,onNeedRefresh(){a.value=!0,n==null||n()},onOfflineReady(){l.value=!0,r==null||r()},onRegistered:s,onRegisteredSW:i,onRegisterError:o}),offlineReady:l,needRefresh:a}}const _3="standalone",S3=void 0,C3=ot(()=>{const e=N(!1),t=N(!1),n=N(!1),r=N(!0),s=navigator.userAgent,i=s.match(/iPhone|iPad|iPod/),o=`${_3}`,a=window.matchMedia(`(display-mode: ${o})`).matches,l=N(!!(a||i&&!s.match(/Safari/))),u=N(l.value);window.matchMedia(`(display-mode: ${o})`).addEventListener("change",y=>{!u.value&&y.matches&&(u.value=!0)});let c;const d=()=>c,{offlineReady:f,needRefresh:h,updateServiceWorker:v}=w3({immediate:!0,onRegisterError(){e.value=!0},onRegisteredSW(y,g){c=g}}),m=async()=>{f.value=!1,h.value=!1};let p=()=>Promise.resolve(),S=()=>{};if(!r.value){let y;const g=_=>{_.preventDefault(),y=_,n.value=!0};window.addEventListener("beforeinstallprompt",g),window.addEventListener("appinstalled",()=>{y=void 0,n.value=!1}),S=()=>{y=void 0,n.value=!1,window.removeEventListener("beforeinstallprompt",g),r.value=!0,localStorage.setItem(S3,"true")},p=async()=>{if(!n.value||!y){n.value=!1;return}n.value=!1,await Ke(),y.prompt(),await y.userChoice}}return{provide:{pwa:Be({isInstalled:l,isPWAInstalled:u,showInstallPrompt:n,cancelInstall:S,install:p,swActivated:t,registrationError:e,offlineReady:f,needRefresh:h,updateServiceWorker:v,cancelPrompt:m,getSWRegistration:d})}}}),k3=ot(()=>({provide:Be({ssrClientHints:{firstRequest:!1,prefersColorSchemeAvailable:!1,prefersReducedMotionAvailable:!1,viewportHeightAvailable:!1,viewportWidthAvailable:!1}})})),E3=ot({name:"nuxt:chunk-reload",setup(e){const t=pn(),n=Wo(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:i})=>{r.add(i)});function s(i){const a="href"in i&&i.href[0]==="#"?n.app.baseURL+i.href:Mc(n.app.baseURL,i.fullPath);d3({path:a,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(s)}),t.onError((i,o)=>{r.has(i)&&s(o)})}});(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.vue3-marquee{display:flex!important;position:relative}.vue3-marquee.horizontal{overflow-x:hidden!important;flex-direction:row!important;width:100%;height:max-content}.vue3-marquee.vertical{overflow-y:hidden!important;flex-direction:column!important;height:100%;width:max-content}.vue3-marquee:hover>.marquee{animation-play-state:var(--pauseOnHover)}.vue3-marquee:active>.marquee{animation-play-state:var(--pauseOnClick)}.vue3-marquee>.marquee{flex:0 0 auto;min-width:var(--min-width);min-height:var(--min-height);z-index:1;animation:var(--orientation) var(--duration) linear var(--delay) var(--loops);animation-play-state:var(--pauseAnimation);animation-direction:var(--direction)}.vue3-marquee.horizontal>.marquee{display:flex;flex-direction:row;align-items:center}.vue3-marquee.vertical>.marquee{display:flex;flex-direction:column;align-items:center}@keyframes scrollX{0%{transform:translate(0)}to{transform:translate(-100%)}}@keyframes scrollY{0%{transform:translateY(0)}to{transform:translateY(-100%)}}.vue3-marquee>.overlay{position:absolute;width:100%;height:100%}.vue3-marquee>.transparent-overlay{position:absolute;width:100%;height:100%}.vue3-marquee>.overlay:before,.vue3-marquee>.overlay:after{content:"";position:absolute;z-index:2}.vue3-marquee.horizontal>.overlay:before,.vue3-marquee.horizontal>.overlay:after{background:linear-gradient(to right,var(--gradient-color));height:100%;width:var(--gradient-length)}.vue3-marquee.vertical>.overlay:before,.vue3-marquee.vertical>.overlay:after{background:linear-gradient(to bottom,var(--gradient-color));height:var(--gradient-length);width:100%}.vue3-marquee.horizontal>.overlay:after{transform:rotate(180deg)}.vue3-marquee.vertical>.overlay:after{transform:rotate(-180deg)}.vue3-marquee>.overlay:before{left:0;top:0}.vue3-marquee.horizontal>.overlay:after{right:0;top:0}.vue3-marquee.vertical>.overlay:after{left:0;bottom:0}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();var T3=Object.defineProperty,Vf=Object.getOwnPropertySymbols,A3=Object.prototype.hasOwnProperty,x3=Object.prototype.propertyIsEnumerable,Hf=(e,t,n)=>t in e?T3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Df=(e,t)=>{for(var n in t||(t={}))A3.call(t,n)&&Hf(e,n,t[n]);if(Vf)for(var n of Vf(t))x3.call(t,n)&&Hf(e,n,t[n]);return e},L3=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n};const P3=ht({props:{vertical:{type:Boolean,default:!1},direction:{type:String,default:"normal"},duration:{type:Number,default:20},delay:{type:Number,default:0},loop:{type:Number,default:0},clone:{type:Boolean,default:!1},gradient:{type:Boolean,default:!1},gradientColor:{type:Array,default:[255,255,255]},gradientWidth:{type:String},gradientLength:{type:String},pauseOnHover:{type:Boolean,default:!1},pauseOnClick:{type:Boolean,default:!1},pause:{type:Boolean,default:!1},animateOnOverflowOnly:{type:Boolean,default:!1}},emits:["onComplete","onLoopComplete","onPause","onResume","onOverflowDetected","onOverflowCleared"],setup(e,{emit:t}){const n=N(0),r=N("100%"),s=N("100%"),i=N(0),o=N(!1),a=N(!1),l=N(0),u=N(0),c=N(0),d=N(0),f=N(!1),h=N(!1),v=N(0),m=N(null),p=N("200px"),S=N(!1),y=N(null),g=N(null),_=async()=>{await T(),i.value++},T=async()=>{e.vertical&&(o.value=!0),setInterval(()=>{if(r.value="0%",s.value="0%",y.value!==null&&g.value!==null&&y.value&&g.value)if(e.vertical&&"clientHeight"in y.value&&"clientHeight"in g.value){d.value=y.value.clientHeight,c.value=g.value.clientHeight;const H=Math.ceil(c.value/d.value);return n.value=isFinite(H)?H:0,o.value=!1,n.value}else if(!e.vertical&&"clientWidth"in y.value&&"clientWidth"in g.value){if(u.value=y.value.clientWidth,l.value=g.value.clientWidth,e.animateOnOverflowOnly)return u.value{e.clone&&_()}),se(l,async()=>{(e.clone||e.animateOnOverflowOnly)&&_()}),se(()=>e.pause,(H,X)=>{H!==X&&t(H?"onResume":"onPause")});const E=()=>{e.pauseOnHover&&(t("onPause"),f.value=!0)},C=()=>{e.pauseOnHover&&(t("onResume"),f.value=!1)},x=()=>{e.pauseOnClick&&(t("onPause"),h.value=!0)},P=()=>{e.pauseOnClick&&(t("onResume"),h.value=!1)},O=A(()=>e.pause||e.vertical&&o.value||e.animateOnOverflowOnly&&a.value?"paused":"running"),R=A(()=>e.pauseOnHover&&(f.value||h.value)||!e.pauseOnHover&&O.value==="paused"?"paused":"running"),L=A(()=>e.pauseOnHover&&f.value||e.pauseOnClick&&h.value||!e.pauseOnHover&&O.value==="paused"?"paused":"running"),$=A(()=>{const H={"--duration":`${e.duration}s`,"--delay":`${e.delay}s`,"--direction":`${e.direction}`,"--pauseOnHover":`${R.value}`,"--pauseOnClick":`${L.value}`,"--pauseAnimation":`${O.value}`,"--loops":`${e.loop===0?"infinite":e.loop}`,"--gradient-color":`rgba(${e.gradientColor[0]}, ${e.gradientColor[1]}, ${e.gradientColor[2]}, 1), rgba(${e.gradientColor[0]}, ${e.gradientColor[1]}, ${e.gradientColor[2]}, 0)`,"--gradient-length":`${p.value}`,"--min-width":`${r.value}`,"--min-height":`${s.value}`},X={"--orientation":"scrollX",orientation:"horizontal"};return e.vertical&&(X["--orientation"]="scrollY"),Df(Df({},H),X)}),z=A(()=>!!e.gradient),Q=async()=>{e.vertical?(s.value="100%",r.value="auto",e.animateOnOverflowOnly&&console.warn("The `animateOnOverflowOnly` prop is not supported for vertical marquees.")):(s.value="auto",e.animateOnOverflowOnly?r.value="auto":r.value="100%"),e.gradient&&(e.gradientWidth?(console.warn("The `gradientWidth` prop has been deprecated and will be removed in a future release. Please use `gradientLength` instead."),p.value=e.gradientWidth):e.gradientLength&&(p.value=e.gradientLength)),(e.clone||e.animateOnOverflowOnly)&&(await T(),_()),S.value=!0};return rn(async()=>{Q(),m.value=setInterval(()=>{v.value++,e.loop!==0&&v.value===e.loop&&(t("onComplete"),clearInterval(m.value)),t("onLoopComplete")},e.duration*1e3)}),it(()=>{clearInterval(m.value)}),{ready:S,contentWidth:u,containerWidth:l,contentHeight:d,containerHeight:c,loopCounter:v,loopInterval:m,mouseOverMarquee:f,mouseDownMarquee:h,minWidth:r,minHeight:s,animateOnOverflowPause:a,marqueeContent:y,marqueeOverlayContainer:g,componentKey:i,showGradient:z,cloneAmount:n,ForcesUpdate:_,checkForClone:T,setupMarquee:Q,getCurrentStyle:$,hoverStarted:E,hoverEnded:C,mouseDown:x,mouseUp:P}}}),O3={class:"transparent-overlay",ref:"marqueeOverlayContainer","aria-hidden":!0},I3={class:"marquee",ref:"marqueeContent"},R3={key:1,"aria-hidden":!0,class:"marquee"};function M3(e,t,n,r,s,i){return e.ready?(ce(),Qe("div",{class:Cr(["vue3-marquee",{vertical:e.vertical,horizontal:!e.vertical}]),style:hi(e.getCurrentStyle),key:e.componentKey,onMouseenter:t[0]||(t[0]=(...o)=>e.hoverStarted&&e.hoverStarted(...o)),onMouseleave:t[1]||(t[1]=(...o)=>e.hoverEnded&&e.hoverEnded(...o)),onMousedown:t[2]||(t[2]=(...o)=>e.mouseDown&&e.mouseDown(...o)),onMouseup:t[3]||(t[3]=(...o)=>e.mouseUp&&e.mouseUp(...o))},[tn("div",O3,null,512),e.showGradient?(ce(),Qe("div",{key:0,"aria-hidden":!0,class:Cr(["overlay",{vertical:e.vertical,horizontal:!e.vertical}])},null,2)):bt("",!0),tn("div",I3,[ya(e.$slots,"default")],512),!e.animateOnOverflowOnly||e.animateOnOverflowOnly&&!e.animateOnOverflowPause?(ce(),Qe("div",R3,[ya(e.$slots,"default")])):bt("",!0),(ce(!0),Qe(ge,null,Xs(e.cloneAmount,o=>(ce(),Qe("div",{"aria-hidden":!0,class:"marquee cloned",key:o},[ya(e.$slots,"default")]))),128))],38)):bt("",!0)}var $3=L3(P3,[["render",M3]]),V3={install(e,t){var n;const r=(n=t==null?void 0:t.name)!=null?n:"Vue3Marquee";e.component(r,$3)}};const H3=ot(e=>{e.vueApp.use(V3,{name:"Vue3Marquee"})}),D3=` + + + + + + + + + + + + + +`,j3=` +\r + +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r`,N3=` + + + + + + + + + + + + + + + + + + + + + +`,B3=` +\r + +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r`,F3=` +\r + +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r +\r`;function U3(e){return e.split(/(\\|\/)/g).pop().replace(/\.[^/.]+$/,"")}const z3=Object.fromEntries(Object.entries(Object.assign({"/assets/icons/couch-loading.svg":D3,"/assets/icons/inventory.svg":j3,"/assets/icons/nustar.svg":N3,"/assets/icons/route.svg":B3,"/assets/icons/trip.svg":F3})).map(([e,t])=>[U3(e),t])),W3={component:e=>gt(e.tag,{innerHTML:z3[e.icon]})},q3=ot(e=>{e.hook("vuetify:configuration",({vuetifyOptions:t})=>{t.icons.sets.custom=W3;const n="#4CAF50";t.theme={themes:{dark:{colors:{primary:n}},light:{colors:{primary:n}}}},t.display={mobileBreakpoint:992}})}),nr=Y({border:[Boolean,Number,String]},"border");function rr(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:tr();return{borderClasses:A(()=>{const r=Le(e)?e.value:e.border,s=[];if(r===!0||r==="")s.push(`${t}--border`);else if(typeof r=="string"||r===0)for(const i of String(r).split(" "))s.push(`border-${i}`);return s})}}const K3=[null,"default","comfortable","compact"],Ln=Y({density:{type:String,default:"default",validator:e=>K3.includes(e)}},"density");function sr(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:tr();return{densityClasses:A(()=>`${t}--density-${e.density}`)}}const Pn=Y({elevation:{type:[Number,String],validator(e){const t=parseInt(e);return!isNaN(t)&&t>=0&&t<=24}}},"elevation");function On(e){return{elevationClasses:A(()=>{const n=Le(e)?e.value:e.elevation,r=[];return n==null||r.push(`elevation-${n}`),r})}}const Ut=Y({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function zt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:tr();return{roundedClasses:A(()=>{const r=Le(e)?e.value:e.rounded,s=Le(e)?e.value:e.tile,i=[];if(r===!0||r==="")i.push(`${t}--rounded`);else if(typeof r=="string"||r===0)for(const o of String(r).split(" "))i.push(`rounded-${o}`);else(s||r===!1)&&i.push("rounded-0");return i})}}const We=Y({tag:{type:String,default:"div"}},"tag"),ii=Symbol.for("vuetify:theme"),at=Y({theme:String},"theme");function jf(){return{defaultTheme:"light",variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:"#FFFFFF",surface:"#FFFFFF","surface-bright":"#FFFFFF","surface-light":"#EEEEEE","surface-variant":"#424242","on-surface-variant":"#EEEEEE",primary:"#1867C0","primary-darken-1":"#1F5592",secondary:"#48A9A6","secondary-darken-1":"#018786",error:"#B00020",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#F5F5F5","theme-on-code":"#000000"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-bright":"#ccbfd6","surface-light":"#424242","surface-variant":"#a3a3a3","on-surface-variant":"#424242",primary:"#2196F3","primary-darken-1":"#277CC1",secondary:"#54B6B2","secondary-darken-1":"#48A9A6",error:"#CF6679",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"high-emphasis-opacity":1,"medium-emphasis-opacity":.7,"disabled-opacity":.5,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC"}}}}}function G3(){var r,s;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:jf();const t=jf();if(!e)return{...t,isDisabled:!0};const n={};for(const[i,o]of Object.entries(e.themes??{})){const a=o.dark||i==="dark"?(r=t.themes)==null?void 0:r.dark:(s=t.themes)==null?void 0:s.light;n[i]=ft(a,o)}return ft(t,{...e,themes:n})}function Y3(e){const t=G3(e),n=N(t.defaultTheme),r=N(t.themes),s=A(()=>{const c={};for(const[d,f]of Object.entries(r.value)){const h=c[d]={...f,colors:{...f.colors}};if(t.variations)for(const v of t.variations.colors){const m=h.colors[v];if(m)for(const p of["lighten","darken"]){const S=p==="lighten"?vw:gw;for(const y of _v(t.variations[p],1))h.colors[`${v}-${p}-${y}`]=fw(S(gn(m),y))}}for(const v of Object.keys(h.colors)){if(/^on-[a-z]/.test(v)||h.colors[`on-${v}`])continue;const m=`on-${v}`,p=gn(h.colors[v]);h.colors[m]=Mv(p)}}return c}),i=A(()=>s.value[n.value]),o=A(()=>{var v;const c=[];(v=i.value)!=null&&v.dark&&ur(c,":root",["color-scheme: dark"]),ur(c,":root",Nf(i.value));for(const[m,p]of Object.entries(s.value))ur(c,`.v-theme--${m}`,[`color-scheme: ${p.dark?"dark":"normal"}`,...Nf(p)]);const d=[],f=[],h=new Set(Object.values(s.value).flatMap(m=>Object.keys(m.colors)));for(const m of h)/^on-[a-z]/.test(m)?ur(f,`.${m}`,[`color: rgb(var(--v-theme-${m})) !important`]):(ur(d,`.bg-${m}`,[`--v-theme-overlay-multiplier: var(--v-theme-${m}-overlay-multiplier)`,`background-color: rgb(var(--v-theme-${m})) !important`,`color: rgb(var(--v-theme-on-${m})) !important`]),ur(f,`.text-${m}`,[`color: rgb(var(--v-theme-${m})) !important`]),ur(f,`.border-${m}`,[`--v-border-color: var(--v-theme-${m})`]));return c.push(...d,...f),c.map((m,p)=>p===0?m:` ${m}`).join("")});function a(){return{style:[{children:o.value,id:"vuetify-theme-stylesheet",nonce:t.cspNonce||!1}]}}function l(c){if(t.isDisabled)return;const d=c._context.provides.usehead;if(d)if(d.push){const f=d.push(a);Fe&&se(o,()=>{f.patch(a)})}else Fe?(d.addHeadObjs(A(a)),nn(()=>d.updateDOM())):d.addHeadObjs(a());else{let h=function(){if(typeof document<"u"&&!f){const v=document.createElement("style");v.type="text/css",v.id="vuetify-theme-stylesheet",t.cspNonce&&v.setAttribute("nonce",t.cspNonce),f=v,document.head.appendChild(f)}f&&(f.innerHTML=o.value)},f=Fe?document.getElementById("vuetify-theme-stylesheet"):null;Fe?se(o,h,{immediate:!0}):h()}}const u=A(()=>t.isDisabled?void 0:`v-theme--${n.value}`);return{install:l,isDisabled:t.isDisabled,name:n,themes:r,current:i,computedThemes:s,themeClasses:u,styles:o,global:{name:n,current:i}}}function lt(e){Ze("provideTheme");const t=Se(ii,null);if(!t)throw new Error("Could not find Vuetify theme injection");const n=A(()=>e.theme??t.name.value),r=A(()=>t.themes.value[n.value]),s=A(()=>t.isDisabled?void 0:`v-theme--${n.value}`),i={...t,name:n,current:r,themeClasses:s};return Ye(ii,i),i}function J3(){Ze("useTheme");const e=Se(ii,null);if(!e)throw new Error("Could not find Vuetify theme injection");return e}function ur(e,t,n){e.push(`${t} { +`,...n.map(r=>` ${r}; +`),`} +`)}function Nf(e){const t=e.dark?2:1,n=e.dark?1:2,r=[];for(const[s,i]of Object.entries(e.colors)){const o=gn(i);r.push(`--v-theme-${s}: ${o.r},${o.g},${o.b}`),s.startsWith("on-")||r.push(`--v-theme-${s}-overlay-multiplier: ${pw(i)>.18?t:n}`)}for(const[s,i]of Object.entries(e.variables)){const o=typeof i=="string"&&i.startsWith("#")?gn(i):void 0,a=o?`${o.r}, ${o.g}, ${o.b}`:void 0;r.push(`--v-${s}: ${a??i}`)}return r}function su(e){return Uc(()=>{const t=[],n={};if(e.value.background)if(xl(e.value.background)){if(n.backgroundColor=e.value.background,!e.value.text&&uw(e.value.background)){const r=gn(e.value.background);if(r.a==null||r.a===1){const s=Mv(r);n.color=s,n.caretColor=s}}}else t.push(`bg-${e.value.background}`);return e.value.text&&(xl(e.value.text)?(n.color=e.value.text,n.caretColor=e.value.text):t.push(`text-${e.value.text}`)),{colorClasses:t,colorStyles:n}})}function Xn(e,t){const n=A(()=>({text:Le(e)?e.value:t?e[t]:null})),{colorClasses:r,colorStyles:s}=su(n);return{textColorClasses:r,textColorStyles:s}}function Xt(e,t){const n=A(()=>({background:Le(e)?e.value:t?e[t]:null})),{colorClasses:r,colorStyles:s}=su(n);return{backgroundColorClasses:r,backgroundColorStyles:s}}const Z3=["elevated","flat","tonal","outlined","text","plain"];function _i(e,t){return b(ge,null,[e&&b("span",{key:"overlay",class:`${t}__overlay`},null),b("span",{key:"underlay",class:`${t}__underlay`},null)])}const $r=Y({color:String,variant:{type:String,default:"elevated",validator:e=>Z3.includes(e)}},"variant");function Si(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:tr();const n=A(()=>{const{variant:i}=Z(e);return`${t}--variant-${i}`}),{colorClasses:r,colorStyles:s}=su(A(()=>{const{variant:i,color:o}=Z(e);return{[["elevated","flat"].includes(i)?"background":"text"]:o}}));return{colorClasses:r,colorStyles:s,variantClasses:n}}const yg=Y({baseColor:String,divided:Boolean,...nr(),...ke(),...Ln(),...Pn(),...Ut(),...We(),...at(),...$r()},"VBtnGroup"),Bf=fe()({name:"VBtnGroup",props:yg(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=lt(e),{densityClasses:s}=sr(e),{borderClasses:i}=rr(e),{elevationClasses:o}=On(e),{roundedClasses:a}=zt(e);Ir({VBtn:{height:"auto",baseColor:ie(e,"baseColor"),color:ie(e,"color"),density:ie(e,"density"),flat:!0,variant:ie(e,"variant")}}),ye(()=>b(e.tag,{class:["v-btn-group",{"v-btn-group--divided":e.divided},r.value,i.value,s.value,o.value,a.value,e.class],style:e.style},n))}});function En(e,t){let n;function r(){n=vs(),n.run(()=>t.length?t(()=>{n==null||n.stop(),r()}):t())}se(e,s=>{s&&!n?r():s||(n==null||n.stop(),n=void 0)},{immediate:!0}),pt(()=>{n==null||n.stop()})}function Ft(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:d=>d,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:d=>d;const i=Ze("useProxiedModel"),o=N(e[t]!==void 0?e[t]:n),a=_r(t),u=A(a!==t?()=>{var d,f,h,v;return e[t],!!(((d=i.vnode.props)!=null&&d.hasOwnProperty(t)||(f=i.vnode.props)!=null&&f.hasOwnProperty(a))&&((h=i.vnode.props)!=null&&h.hasOwnProperty(`onUpdate:${t}`)||(v=i.vnode.props)!=null&&v.hasOwnProperty(`onUpdate:${a}`)))}:()=>{var d,f;return e[t],!!((d=i.vnode.props)!=null&&d.hasOwnProperty(t)&&((f=i.vnode.props)!=null&&f.hasOwnProperty(`onUpdate:${t}`)))});En(()=>!u.value,()=>{se(()=>e[t],d=>{o.value=d})});const c=A({get(){const d=e[t];return r(u.value?d:o.value)},set(d){const f=s(d),h=ae(u.value?e[t]:o.value);h===f||r(h)===d||(o.value=f,i==null||i.emit(`update:${t}`,f))}});return Object.defineProperty(c,"externalValue",{get:()=>u.value?e[t]:o.value}),c}const X3=Y({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),Q3=Y({value:null,disabled:Boolean,selectedClass:String},"group-item");function eS(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=Ze("useGroupItem");if(!r)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const s=Rr();Ye(Symbol.for(`${t.description}:id`),s);const i=Se(t,null);if(!i){if(!n)return i;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${t.description}`)}const o=ie(e,"value"),a=A(()=>!!(i.disabled.value||e.disabled));i.register({id:s,value:o,disabled:a},r),it(()=>{i.unregister(s)});const l=A(()=>i.isSelected(s)),u=A(()=>l.value&&[i.selectedClass.value,e.selectedClass]);return se(l,c=>{r.emit("group:selected",{value:c})},{flush:"sync"}),{id:s,isSelected:l,toggle:()=>i.select(s,!l.value),select:c=>i.select(s,c),selectedClass:u,value:o,disabled:a,group:i}}function tS(e,t){let n=!1;const r=Be([]),s=Ft(e,"modelValue",[],f=>f==null?[]:bg(r,N2(f)),f=>{const h=rS(r,f);return e.multiple?h:h[0]}),i=Ze("useGroup");function o(f,h){const v=f,m=Symbol.for(`${t.description}:id`),S=Ns(m,i==null?void 0:i.vnode).indexOf(h);Z(v.value)==null&&(v.value=S,v.useIndexAsValue=!0),S>-1?r.splice(S,0,v):r.push(v)}function a(f){if(n)return;l();const h=r.findIndex(v=>v.id===f);r.splice(h,1)}function l(){const f=r.find(h=>!h.disabled);f&&e.mandatory==="force"&&!s.value.length&&(s.value=[f.id])}rn(()=>{l()}),it(()=>{n=!0}),Bo(()=>{for(let f=0;fm.id===f);if(!(h&&(v!=null&&v.disabled)))if(e.multiple){const m=s.value.slice(),p=m.findIndex(y=>y===f),S=~p;if(h=h??!S,S&&e.mandatory&&m.length<=1||!S&&e.max!=null&&m.length+1>e.max)return;p<0&&h?m.push(f):p>=0&&!h&&m.splice(p,1),s.value=m}else{const m=s.value.includes(f);if(e.mandatory&&m)return;s.value=h??!m?[f]:[]}}function c(f){if(e.multiple,s.value.length){const h=s.value[0],v=r.findIndex(S=>S.id===h);let m=(v+f)%r.length,p=r[m];for(;p.disabled&&m!==v;)m=(m+f)%r.length,p=r[m];if(p.disabled)return;s.value=[r[m].id]}else{const h=r.find(v=>!v.disabled);h&&(s.value=[h.id])}}const d={register:o,unregister:a,selected:s,select:u,disabled:ie(e,"disabled"),prev:()=>c(r.length-1),next:()=>c(1),isSelected:f=>s.value.includes(f),selectedClass:A(()=>e.selectedClass),items:A(()=>r),getItemIndex:f=>nS(r,f)};return Ye(t,d),d}function nS(e,t){const n=bg(e,[t]);return n.length?e.findIndex(r=>r.id===n[0]):-1}function bg(e,t){const n=[];return t.forEach(r=>{const s=e.find(o=>Jo(r,o.value)),i=e[r];(s==null?void 0:s.value)!=null?n.push(s.id):i!=null&&n.push(i.id)}),n}function rS(e,t){const n=[];return t.forEach(r=>{const s=e.findIndex(i=>i.id===r);if(~s){const i=e[s];n.push(i.value!=null?i.value:s)}}),n}const wg=Symbol.for("vuetify:v-btn-toggle"),sS=Y({...yg(),...X3()},"VBtnToggle");fe()({name:"VBtnToggle",props:sS(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isSelected:r,next:s,prev:i,select:o,selected:a}=tS(e,wg);return ye(()=>{const l=Bf.filterProps(e);return b(Bf,Te({class:["v-btn-toggle",e.class]},l,{style:e.style}),{default:()=>{var u;return[(u=n.default)==null?void 0:u.call(n,{isSelected:r,next:s,prev:i,select:o,selected:a})]}})}),{next:s,prev:i,select:o}}});const iS=Y({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),ze=fe(!1)({name:"VDefaultsProvider",props:iS(),setup(e,t){let{slots:n}=t;const{defaults:r,disabled:s,reset:i,root:o,scoped:a}=vi(e);return Ir(r,{reset:i,root:o,scoped:a,disabled:s}),()=>{var l;return(l=n.default)==null?void 0:l.call(n)}}}),oS=["x-small","small","default","large","x-large"],Ci=Y({size:{type:[String,Number],default:"default"}},"size");function ra(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:tr();return Uc(()=>{let n,r;return _o(oS,e.size)?n=`${t}--size-${e.size}`:e.size&&(r={width:ue(e.size),height:ue(e.size)}),{sizeClasses:n,sizeStyles:r}})}const aS=Y({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:et,...ke(),...Ci(),...We({tag:"i"}),...at()},"VIcon"),Qt=fe()({name:"VIcon",props:aS(),setup(e,t){let{attrs:n,slots:r}=t;const s=N(),{themeClasses:i}=lt(e),{iconData:o}=Lw(A(()=>s.value||e.icon)),{sizeClasses:a}=ra(e),{textColorClasses:l,textColorStyles:u}=Xn(ie(e,"color"));return ye(()=>{var f,h;const c=(f=r.default)==null?void 0:f.call(r);c&&(s.value=(h=kv(c).filter(v=>v.type===Er&&v.children&&typeof v.children=="string")[0])==null?void 0:h.children);const d=!!(n.onClick||n.onClickOnce);return b(o.value.component,{tag:e.tag,icon:o.value.icon,class:["v-icon","notranslate",i.value,a.value,l.value,{"v-icon--clickable":d,"v-icon--disabled":e.disabled,"v-icon--start":e.start,"v-icon--end":e.end},e.class],style:[a.value?void 0:{fontSize:ue(e.size),height:ue(e.size),width:ue(e.size)},u.value,e.style],role:d?"button":void 0,"aria-hidden":!d,tabindex:d?e.disabled?-1:0:void 0},{default:()=>[c]})}),{}}});function _g(e,t){const n=N(),r=le(!1);if(Fc){const s=new IntersectionObserver(i=>{r.value=!!i.find(o=>o.isIntersecting)},t);it(()=>{s.disconnect()}),se(n,(i,o)=>{o&&(s.unobserve(o),r.value=!1),i&&s.observe(i)},{flush:"post"})}return{intersectionRef:n,isIntersecting:r}}function iu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const n=N(),r=N();if(Fe){const s=new ResizeObserver(i=>{e==null||e(i,s),i.length&&(t==="content"?r.value=i[0].contentRect:r.value=i[0].target.getBoundingClientRect())});it(()=>{s.disconnect()}),se(n,(i,o)=>{o&&(s.unobserve(ei(o)),r.value=void 0),i&&s.observe(ei(i))},{flush:"post"})}return{resizeRef:n,contentRect:gs(r)}}const lS=Y({bgColor:String,color:String,indeterminate:[Boolean,String],modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...ke(),...Ci(),...We({tag:"div"}),...at()},"VProgressCircular"),cS=fe()({name:"VProgressCircular",props:lS(),setup(e,t){let{slots:n}=t;const r=20,s=2*Math.PI*r,i=N(),{themeClasses:o}=lt(e),{sizeClasses:a,sizeStyles:l}=ra(e),{textColorClasses:u,textColorStyles:c}=Xn(ie(e,"color")),{textColorClasses:d,textColorStyles:f}=Xn(ie(e,"bgColor")),{intersectionRef:h,isIntersecting:v}=_g(),{resizeRef:m,contentRect:p}=iu(),S=A(()=>Math.max(0,Math.min(100,parseFloat(e.modelValue)))),y=A(()=>Number(e.width)),g=A(()=>l.value?Number(e.size):p.value?p.value.width:Math.max(y.value,32)),_=A(()=>r/(1-y.value/g.value)*2),T=A(()=>y.value/g.value*_.value),E=A(()=>ue((100-S.value)/100*s));return nn(()=>{h.value=i.value,m.value=i.value}),ye(()=>b(e.tag,{ref:i,class:["v-progress-circular",{"v-progress-circular--indeterminate":!!e.indeterminate,"v-progress-circular--visible":v.value,"v-progress-circular--disable-shrink":e.indeterminate==="disable-shrink"},o.value,a.value,u.value,e.class],style:[l.value,c.value,e.style],role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.indeterminate?void 0:S.value},{default:()=>[b("svg",{style:{transform:`rotate(calc(-90deg + ${Number(e.rotate)}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${_.value} ${_.value}`},[b("circle",{class:["v-progress-circular__underlay",d.value],style:f.value,fill:"transparent",cx:"50%",cy:"50%",r,"stroke-width":T.value,"stroke-dasharray":s,"stroke-dashoffset":0},null),b("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r,"stroke-width":T.value,"stroke-dasharray":s,"stroke-dashoffset":E.value},null)]),n.default&&b("div",{class:"v-progress-circular__content"},[n.default({value:S.value})])]})),{}}}),In=Y({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function Rn(e){return{dimensionStyles:A(()=>({height:ue(e.height),maxHeight:ue(e.maxHeight),maxWidth:ue(e.maxWidth),minHeight:ue(e.minHeight),minWidth:ue(e.minWidth),width:ue(e.width)}))}}const Ul={badge:"Badge",open:"Open",close:"Close",dismiss:"Dismiss",confirmEdit:{ok:"OK",cancel:"Cancel"},dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},dateRangeInput:{divider:"to"},datePicker:{itemsSelected:"{0} selected",range:{title:"Select dates",header:"Enter dates"},title:"Select date",header:"Enter date",input:{placeholder:"Enter date"}},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more",today:"Today"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action",otp:"Please enter OTP character {0}"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},timePicker:{am:"AM",pm:"PM",title:"Select Time"},pagination:{ariaLabel:{root:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Go to page {0}",currentPage:"Page {0}, Current page",first:"First page",last:"Last page"}},stepper:{next:"Next",prev:"Previous"},rating:{ariaLabel:{item:"Rating {0} of {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"}},Ff="$vuetify.",Uf=(e,t)=>e.replace(/\{(\d+)\}/g,(n,r)=>String(t[+r])),Sg=(e,t,n)=>function(r){for(var s=arguments.length,i=new Array(s>1?s-1:0),o=1;onew Intl.NumberFormat([e.value,t.value],r).format(n)}function Ua(e,t,n){const r=Ft(e,t,e[t]??n.value);return r.value=e[t]??n.value,se(n,s=>{e[t]==null&&(r.value=n.value)}),r}function kg(e){return t=>{const n=Ua(t,"locale",e.current),r=Ua(t,"fallback",e.fallback),s=Ua(t,"messages",e.messages);return{name:"vuetify",current:n,fallback:r,messages:s,t:Sg(n,r,s),n:Cg(n,r),provide:kg({current:n,fallback:r,messages:s})}}}function uS(e){const t=le((e==null?void 0:e.locale)??"en"),n=le((e==null?void 0:e.fallback)??"en"),r=N({en:Ul,...e==null?void 0:e.messages});return{name:"vuetify",current:t,fallback:n,messages:r,t:Sg(t,n,r),n:Cg(t,n),provide:kg({current:t,fallback:n,messages:r})}}const Ao=Symbol.for("vuetify:locale");function dS(e){return e.name!=null}function fS(e){const t=e!=null&&e.adapter&&dS(e==null?void 0:e.adapter)?e==null?void 0:e.adapter:uS(e),n=vS(t,e);return{...t,...n}}function hS(){const e=Se(Ao);if(!e)throw new Error("[Vuetify] Could not find injected locale instance");return e}function mS(){return{af:!1,ar:!0,bg:!1,ca:!1,ckb:!1,cs:!1,de:!1,el:!1,en:!1,es:!1,et:!1,fa:!0,fi:!1,fr:!1,hr:!1,hu:!1,he:!0,id:!1,it:!1,ja:!1,km:!1,ko:!1,lv:!1,lt:!1,nl:!1,no:!1,pl:!1,pt:!1,ro:!1,ru:!1,sk:!1,sl:!1,srCyrl:!1,srLatn:!1,sv:!1,th:!1,tr:!1,az:!1,uk:!1,vi:!1,zhHans:!1,zhHant:!1}}function vS(e,t){const n=N((t==null?void 0:t.rtl)??mS()),r=A(()=>n.value[e.current.value]??!1);return{isRtl:r,rtl:n,rtlClasses:A(()=>`v-locale--is-${r.value?"rtl":"ltr"}`)}}function Vr(){const e=Se(Ao);if(!e)throw new Error("[Vuetify] Could not find injected rtl instance");return{isRtl:e.isRtl,rtlClasses:e.rtlClasses}}const zf={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},sa=Y({location:String},"location");function ia(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0;const{isRtl:r}=Vr();return{locationStyles:A(()=>{if(!e.location)return{};const{side:i,align:o}=Tl(e.location.split(" ").length>1?e.location:`${e.location} center`,r.value);function a(u){return n?n(u):0}const l={};return i!=="center"&&(t?l[zf[i]]=`calc(100% - ${a(i)}px)`:l[i]=0),o!=="center"?t?l[zf[o]]=`calc(100% - ${a(o)}px)`:l[o]=0:(i==="center"?l.top=l.left="50%":l[{top:"left",bottom:"left",left:"top",right:"top"}[i]]="50%",l.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[i]),l})}}const gS=Y({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},bufferColor:String,bufferOpacity:[Number,String],clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},opacity:[Number,String],reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...ke(),...sa({location:"top"}),...Ut(),...We(),...at()},"VProgressLinear"),pS=fe()({name:"VProgressLinear",props:gS(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=Ft(e,"modelValue"),{isRtl:s,rtlClasses:i}=Vr(),{themeClasses:o}=lt(e),{locationStyles:a}=ia(e),{textColorClasses:l,textColorStyles:u}=Xn(e,"color"),{backgroundColorClasses:c,backgroundColorStyles:d}=Xt(A(()=>e.bgColor||e.color)),{backgroundColorClasses:f,backgroundColorStyles:h}=Xt(A(()=>e.bufferColor||e.bgColor||e.color)),{backgroundColorClasses:v,backgroundColorStyles:m}=Xt(e,"color"),{roundedClasses:p}=zt(e),{intersectionRef:S,isIntersecting:y}=_g(),g=A(()=>parseFloat(e.max)),_=A(()=>parseFloat(e.height)),T=A(()=>xr(parseFloat(e.bufferValue)/g.value*100,0,100)),E=A(()=>xr(parseFloat(r.value)/g.value*100,0,100)),C=A(()=>s.value!==e.reverse),x=A(()=>e.indeterminate?"fade-transition":"slide-x-transition");function P(O){if(!S.value)return;const{left:R,right:L,width:$}=S.value.getBoundingClientRect(),z=C.value?$-O.clientX+(L-$):O.clientX-R;r.value=Math.round(z/$*g.value)}return ye(()=>b(e.tag,{ref:S,class:["v-progress-linear",{"v-progress-linear--absolute":e.absolute,"v-progress-linear--active":e.active&&y.value,"v-progress-linear--reverse":C.value,"v-progress-linear--rounded":e.rounded,"v-progress-linear--rounded-bar":e.roundedBar,"v-progress-linear--striped":e.striped},p.value,o.value,i.value,e.class],style:[{bottom:e.location==="bottom"?0:void 0,top:e.location==="top"?0:void 0,height:e.active?ue(_.value):0,"--v-progress-linear-height":ue(_.value),...e.absolute?a.value:{}},e.style],role:"progressbar","aria-hidden":e.active?"false":"true","aria-valuemin":"0","aria-valuemax":e.max,"aria-valuenow":e.indeterminate?void 0:E.value,onClick:e.clickable&&P},{default:()=>[e.stream&&b("div",{key:"stream",class:["v-progress-linear__stream",l.value],style:{...u.value,[C.value?"left":"right"]:ue(-_.value),borderTop:`${ue(_.value/2)} dotted`,opacity:parseFloat(e.bufferOpacity),top:`calc(50% - ${ue(_.value/4)})`,width:ue(100-T.value,"%"),"--v-progress-linear-stream-to":ue(_.value*(C.value?1:-1))}},null),b("div",{class:["v-progress-linear__background",c.value],style:[d.value,{opacity:parseFloat(e.bgOpacity),width:e.stream?0:void 0}]},null),b("div",{class:["v-progress-linear__buffer",f.value],style:[h.value,{opacity:parseFloat(e.bufferOpacity),width:ue(T.value,"%")}]},null),b(un,{name:x.value},{default:()=>[e.indeterminate?b("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(O=>b("div",{key:O,class:["v-progress-linear__indeterminate",O,v.value],style:m.value},null))]):b("div",{class:["v-progress-linear__determinate",v.value],style:[m.value,{width:ue(E.value,"%")}]},null)]}),n.default&&b("div",{class:"v-progress-linear__content"},[n.default({value:E.value,buffer:T.value})])]})),{}}}),Eg=Y({loading:[Boolean,String]},"loader");function Tg(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:tr();return{loaderClasses:A(()=>({[`${t}--loading`]:e.loading}))}}function yS(e,t){var r;let{slots:n}=t;return b("div",{class:`${e.name}__loader`},[((r=n.default)==null?void 0:r.call(n,{color:e.color,isActive:e.active}))||b(pS,{absolute:e.absolute,active:e.active,color:e.color,height:"2",indeterminate:!0},null)])}const bS=["static","relative","fixed","absolute","sticky"],ou=Y({position:{type:String,validator:e=>bS.includes(e)}},"position");function au(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:tr();return{positionClasses:A(()=>e.position?`${t}--${e.position}`:void 0)}}function wS(){const e=Ze("useRoute");return A(()=>{var t;return(t=e==null?void 0:e.proxy)==null?void 0:t.$route})}function Ag(){var e,t;return(t=(e=Ze("useRouter"))==null?void 0:e.proxy)==null?void 0:t.$router}function oa(e,t){var u,c;const n=Gh("RouterLink"),r=A(()=>!!(e.href||e.to)),s=A(()=>(r==null?void 0:r.value)||Od(t,"click")||Od(e,"click"));if(typeof n=="string"||!("useLink"in n))return{isLink:r,isClickable:s,href:ie(e,"href")};const i=A(()=>({...e,to:ie(()=>e.to||"")})),o=n.useLink(i.value),a=A(()=>e.to?o:void 0),l=wS();return{isLink:r,isClickable:s,route:(u=a.value)==null?void 0:u.route,navigate:(c=a.value)==null?void 0:c.navigate,isActive:A(()=>{var d,f,h;return a.value?e.exact?l.value?((h=a.value.isExactActive)==null?void 0:h.value)&&Jo(a.value.route.value.query,l.value.query):((f=a.value.isExactActive)==null?void 0:f.value)??!1:((d=a.value.isActive)==null?void 0:d.value)??!1:!1}),href:A(()=>{var d;return e.to?(d=a.value)==null?void 0:d.route.value.href:e.href})}}const aa=Y({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let za=!1;function _S(e,t){let n=!1,r,s;Fe&&(Ke(()=>{window.addEventListener("popstate",i),r=e==null?void 0:e.beforeEach((o,a,l)=>{za?n?t(l):l():setTimeout(()=>n?t(l):l()),za=!0}),s=e==null?void 0:e.afterEach(()=>{za=!1})}),pt(()=>{window.removeEventListener("popstate",i),r==null||r(),s==null||s()}));function i(o){var a;(a=o.state)!=null&&a.replaced||(n=!0,setTimeout(()=>n=!1))}}function SS(e,t){se(()=>{var n;return(n=e.isActive)==null?void 0:n.value},n=>{e.isLink.value&&n&&t&&Ke(()=>{t(!0)})},{immediate:!0})}const zl=Symbol("rippleStop"),CS=80;function Wf(e,t){e.style.transform=t,e.style.webkitTransform=t}function Wl(e){return e.constructor.name==="TouchEvent"}function xg(e){return e.constructor.name==="KeyboardEvent"}const kS=function(e,t){var d;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=0,s=0;if(!xg(e)){const f=t.getBoundingClientRect(),h=Wl(e)?e.touches[e.touches.length-1]:e;r=h.clientX-f.left,s=h.clientY-f.top}let i=0,o=.3;(d=t._ripple)!=null&&d.circle?(o=.15,i=t.clientWidth/2,i=n.center?i:i+Math.sqrt((r-i)**2+(s-i)**2)/4):i=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const a=`${(t.clientWidth-i*2)/2}px`,l=`${(t.clientHeight-i*2)/2}px`,u=n.center?a:`${r-i}px`,c=n.center?l:`${s-i}px`;return{radius:i,scale:o,x:u,y:c,centerX:a,centerY:l}},xo={show(e,t){var h;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((h=t==null?void 0:t._ripple)!=null&&h.enabled))return;const r=document.createElement("span"),s=document.createElement("span");r.appendChild(s),r.className="v-ripple__container",n.class&&(r.className+=` ${n.class}`);const{radius:i,scale:o,x:a,y:l,centerX:u,centerY:c}=kS(e,t,n),d=`${i*2}px`;s.className="v-ripple__animation",s.style.width=d,s.style.height=d,t.appendChild(r);const f=window.getComputedStyle(t);f&&f.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),s.classList.add("v-ripple__animation--enter"),s.classList.add("v-ripple__animation--visible"),Wf(s,`translate(${a}, ${l}) scale3d(${o},${o},${o})`),s.dataset.activated=String(performance.now()),setTimeout(()=>{s.classList.remove("v-ripple__animation--enter"),s.classList.add("v-ripple__animation--in"),Wf(s,`translate(${u}, ${c}) scale3d(1,1,1)`)},0)},hide(e){var i;if(!((i=e==null?void 0:e._ripple)!=null&&i.enabled))return;const t=e.getElementsByClassName("v-ripple__animation");if(t.length===0)return;const n=t[t.length-1];if(n.dataset.isHiding)return;n.dataset.isHiding="true";const r=performance.now()-Number(n.dataset.activated),s=Math.max(250-r,0);setTimeout(()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),setTimeout(()=>{var a;e.getElementsByClassName("v-ripple__animation").length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),((a=n.parentNode)==null?void 0:a.parentNode)===e&&e.removeChild(n.parentNode)},300)},s)}};function Lg(e){return typeof e>"u"||!!e}function oi(e){const t={},n=e.currentTarget;if(!(!(n!=null&&n._ripple)||n._ripple.touched||e[zl])){if(e[zl]=!0,Wl(e))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(t.center=n._ripple.centered||xg(e),n._ripple.class&&(t.class=n._ripple.class),Wl(e)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{xo.show(e,n,t)},n._ripple.showTimer=window.setTimeout(()=>{var r;(r=n==null?void 0:n._ripple)!=null&&r.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},CS)}else xo.show(e,n,t)}}function qf(e){e[zl]=!0}function Nt(e){const t=e.currentTarget;if(t!=null&&t._ripple){if(window.clearTimeout(t._ripple.showTimer),e.type==="touchend"&&t._ripple.showTimerCommit){t._ripple.showTimerCommit(),t._ripple.showTimerCommit=null,t._ripple.showTimer=window.setTimeout(()=>{Nt(e)});return}window.setTimeout(()=>{t._ripple&&(t._ripple.touched=!1)}),xo.hide(t)}}function Pg(e){const t=e.currentTarget;t!=null&&t._ripple&&(t._ripple.showTimerCommit&&(t._ripple.showTimerCommit=null),window.clearTimeout(t._ripple.showTimer))}let ai=!1;function Og(e){!ai&&(e.keyCode===Td.enter||e.keyCode===Td.space)&&(ai=!0,oi(e))}function Ig(e){ai=!1,Nt(e)}function Rg(e){ai&&(ai=!1,Nt(e))}function Mg(e,t,n){const{value:r,modifiers:s}=t,i=Lg(r);if(i||xo.hide(e),e._ripple=e._ripple??{},e._ripple.enabled=i,e._ripple.centered=s.center,e._ripple.circle=s.circle,El(r)&&r.class&&(e._ripple.class=r.class),i&&!n){if(s.stop){e.addEventListener("touchstart",qf,{passive:!0}),e.addEventListener("mousedown",qf);return}e.addEventListener("touchstart",oi,{passive:!0}),e.addEventListener("touchend",Nt,{passive:!0}),e.addEventListener("touchmove",Pg,{passive:!0}),e.addEventListener("touchcancel",Nt),e.addEventListener("mousedown",oi),e.addEventListener("mouseup",Nt),e.addEventListener("mouseleave",Nt),e.addEventListener("keydown",Og),e.addEventListener("keyup",Ig),e.addEventListener("blur",Rg),e.addEventListener("dragstart",Nt,{passive:!0})}else!i&&n&&$g(e)}function $g(e){e.removeEventListener("mousedown",oi),e.removeEventListener("touchstart",oi),e.removeEventListener("touchend",Nt),e.removeEventListener("touchmove",Pg),e.removeEventListener("touchcancel",Nt),e.removeEventListener("mouseup",Nt),e.removeEventListener("mouseleave",Nt),e.removeEventListener("keydown",Og),e.removeEventListener("keyup",Ig),e.removeEventListener("dragstart",Nt),e.removeEventListener("blur",Rg)}function ES(e,t){Mg(e,t,!1)}function TS(e){delete e._ripple,$g(e)}function AS(e,t){if(t.value===t.oldValue)return;const n=Lg(t.oldValue);Mg(e,t,n)}const lu={mounted:ES,unmounted:TS,updated:AS},Vg=Y({active:{type:Boolean,default:void 0},baseColor:String,symbol:{type:null,default:wg},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:et,appendIcon:et,block:Boolean,readonly:Boolean,slim:Boolean,stacked:Boolean,ripple:{type:[Boolean,Object],default:!0},text:String,...nr(),...ke(),...Ln(),...In(),...Pn(),...Q3(),...Eg(),...sa(),...ou(),...Ut(),...aa(),...Ci(),...We({tag:"button"}),...at(),...$r({variant:"elevated"})},"VBtn"),ds=fe()({name:"VBtn",props:Vg(),emits:{"group:selected":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:s}=lt(e),{borderClasses:i}=rr(e),{densityClasses:o}=sr(e),{dimensionStyles:a}=Rn(e),{elevationClasses:l}=On(e),{loaderClasses:u}=Tg(e),{locationStyles:c}=ia(e),{positionClasses:d}=au(e),{roundedClasses:f}=zt(e),{sizeClasses:h,sizeStyles:v}=ra(e),m=eS(e,e.symbol,!1),p=oa(e,n),S=A(()=>{var O;return e.active!==void 0?e.active:p.isLink.value?(O=p.isActive)==null?void 0:O.value:m==null?void 0:m.isSelected.value}),y=A(()=>{var R,L;return{color:(m==null?void 0:m.isSelected.value)&&(!p.isLink.value||((R=p.isActive)==null?void 0:R.value))||!m||((L=p.isActive)==null?void 0:L.value)?e.color??e.baseColor:e.baseColor,variant:e.variant}}),{colorClasses:g,colorStyles:_,variantClasses:T}=Si(y),E=A(()=>(m==null?void 0:m.disabled.value)||e.disabled),C=A(()=>e.variant==="elevated"&&!(e.disabled||e.flat||e.border)),x=A(()=>{if(!(e.value===void 0||typeof e.value=="symbol"))return Object(e.value)===e.value?JSON.stringify(e.value,null,0):e.value});function P(O){var R;E.value||p.isLink.value&&(O.metaKey||O.ctrlKey||O.shiftKey||O.button!==0||n.target==="_blank")||((R=p.navigate)==null||R.call(p,O),m==null||m.toggle())}return SS(p,m==null?void 0:m.select),ye(()=>{const O=p.isLink.value?"a":e.tag,R=!!(e.prependIcon||r.prepend),L=!!(e.appendIcon||r.append),$=!!(e.icon&&e.icon!==!0);return kr(b(O,{type:O==="a"?void 0:"button",class:["v-btn",m==null?void 0:m.selectedClass.value,{"v-btn--active":S.value,"v-btn--block":e.block,"v-btn--disabled":E.value,"v-btn--elevated":C.value,"v-btn--flat":e.flat,"v-btn--icon":!!e.icon,"v-btn--loading":e.loading,"v-btn--readonly":e.readonly,"v-btn--slim":e.slim,"v-btn--stacked":e.stacked},s.value,i.value,g.value,o.value,l.value,u.value,d.value,f.value,h.value,T.value,e.class],style:[_.value,a.value,c.value,v.value,e.style],"aria-busy":e.loading?!0:void 0,disabled:E.value||void 0,href:p.href.value,tabindex:e.loading||e.readonly?-1:void 0,onClick:P,value:x.value},{default:()=>{var z;return[_i(!0,"v-btn"),!e.icon&&R&&b("span",{key:"prepend",class:"v-btn__prepend"},[r.prepend?b(ze,{key:"prepend-defaults",disabled:!e.prependIcon,defaults:{VIcon:{icon:e.prependIcon}}},r.prepend):b(Qt,{key:"prepend-icon",icon:e.prependIcon},null)]),b("span",{class:"v-btn__content","data-no-activator":""},[!r.default&&$?b(Qt,{key:"content-icon",icon:e.icon},null):b(ze,{key:"content-defaults",disabled:!$,defaults:{VIcon:{icon:e.icon}}},{default:()=>{var Q;return[((Q=r.default)==null?void 0:Q.call(r))??e.text]}})]),!e.icon&&L&&b("span",{key:"append",class:"v-btn__append"},[r.append?b(ze,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VIcon:{icon:e.appendIcon}}},r.append):b(Qt,{key:"append-icon",icon:e.appendIcon},null)]),!!e.loading&&b("span",{key:"loader",class:"v-btn__loader"},[((z=r.loader)==null?void 0:z.call(r))??b(cS,{color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0,width:"2"},null)])]}}),[[lu,!E.value&&!!e.ripple,"",{center:!!e.icon}]])}),{group:m}}});function xS(e){return{aspectStyles:A(()=>{const t=Number(e.aspectRatio);return t?{paddingBottom:String(1/t*100)+"%"}:void 0})}}const Hg=Y({aspectRatio:[String,Number],contentClass:String,inline:Boolean,...ke(),...In()},"VResponsive"),Kf=fe()({name:"VResponsive",props:Hg(),setup(e,t){let{slots:n}=t;const{aspectStyles:r}=xS(e),{dimensionStyles:s}=Rn(e);return ye(()=>{var i;return b("div",{class:["v-responsive",{"v-responsive--inline":e.inline},e.class],style:[s.value,e.style]},[b("div",{class:"v-responsive__sizer",style:r.value},null),(i=n.additional)==null?void 0:i.call(n),n.default&&b("div",{class:["v-responsive__content",e.contentClass]},[n.default()])])}),{}}}),Dg=Y({transition:{type:[Boolean,String,Object],default:"fade-transition",validator:e=>e!==!0}},"transition"),Yr=(e,t)=>{let{slots:n}=t;const{transition:r,disabled:s,group:i,...o}=e,{component:a=i?Uo:un,...l}=typeof r=="object"?r:{};return gt(a,Te(typeof r=="string"?{name:s?"":r}:l,typeof r=="string"?{}:Object.fromEntries(Object.entries({disabled:s,group:i}).filter(u=>{let[c,d]=u;return d!==void 0})),o),n)};function LS(e,t){if(!Fc)return;const n=t.modifiers||{},r=t.value,{handler:s,options:i}=typeof r=="object"?r:{handler:r,options:{}},o=new IntersectionObserver(function(){var d;let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=arguments.length>1?arguments[1]:void 0;const u=(d=e._observe)==null?void 0:d[t.instance.$.uid];if(!u)return;const c=a.some(f=>f.isIntersecting);s&&(!n.quiet||u.init)&&(!n.once||c||u.init)&&s(c,a,l),c&&n.once?jg(e,t):u.init=!0},i);e._observe=Object(e._observe),e._observe[t.instance.$.uid]={init:!1,observer:o},o.observe(e)}function jg(e,t){var r;const n=(r=e._observe)==null?void 0:r[t.instance.$.uid];n&&(n.observer.unobserve(e),delete e._observe[t.instance.$.uid])}const PS={mounted:LS,unmounted:jg},OS=Y({alt:String,cover:Boolean,color:String,draggable:{type:[Boolean,String],default:void 0},eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},crossorigin:String,referrerpolicy:String,srcset:String,position:String,...Hg(),...ke(),...Ut(),...Dg()},"VImg"),ws=fe()({name:"VImg",directives:{intersect:PS},props:OS(),emits:{loadstart:e=>!0,load:e=>!0,error:e=>!0},setup(e,t){let{emit:n,slots:r}=t;const{backgroundColorClasses:s,backgroundColorStyles:i}=Xt(ie(e,"color")),{roundedClasses:o}=zt(e),a=Ze("VImg"),l=le(""),u=N(),c=le(e.eager?"loading":"idle"),d=le(),f=le(),h=A(()=>e.src&&typeof e.src=="object"?{src:e.src.src,srcset:e.srcset||e.src.srcset,lazySrc:e.lazySrc||e.src.lazySrc,aspect:Number(e.aspectRatio||e.src.aspect||0)}:{src:e.src,srcset:e.srcset,lazySrc:e.lazySrc,aspect:Number(e.aspectRatio||0)}),v=A(()=>h.value.aspect||d.value/f.value||0);se(()=>e.src,()=>{m(c.value!=="idle")}),se(v,(L,$)=>{!L&&$&&u.value&&_(u.value)}),nm(()=>m());function m(L){if(!(e.eager&&L)&&!(Fc&&!L&&!e.eager)){if(c.value="loading",h.value.lazySrc){const $=new Image;$.src=h.value.lazySrc,_($,null)}h.value.src&&Ke(()=>{var $;n("loadstart",(($=u.value)==null?void 0:$.currentSrc)||h.value.src),setTimeout(()=>{var z;if(!a.isUnmounted)if((z=u.value)!=null&&z.complete){if(u.value.naturalWidth||S(),c.value==="error")return;v.value||_(u.value,null),c.value==="loading"&&p()}else v.value||_(u.value),y()})})}}function p(){var L;a.isUnmounted||(y(),_(u.value),c.value="loaded",n("load",((L=u.value)==null?void 0:L.currentSrc)||h.value.src))}function S(){var L;a.isUnmounted||(c.value="error",n("error",((L=u.value)==null?void 0:L.currentSrc)||h.value.src))}function y(){const L=u.value;L&&(l.value=L.currentSrc||L.src)}let g=-1;it(()=>{clearTimeout(g)});function _(L){let $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const z=()=>{if(clearTimeout(g),a.isUnmounted)return;const{naturalHeight:Q,naturalWidth:H}=L;Q||H?(d.value=H,f.value=Q):!L.complete&&c.value==="loading"&&$!=null?g=window.setTimeout(z,$):(L.currentSrc.endsWith(".svg")||L.currentSrc.startsWith("data:image/svg+xml"))&&(d.value=1,f.value=1)};z()}const T=A(()=>({"v-img__img--cover":e.cover,"v-img__img--contain":!e.cover})),E=()=>{var z;if(!h.value.src||c.value==="idle")return null;const L=b("img",{class:["v-img__img",T.value],style:{objectPosition:e.position},src:h.value.src,srcset:h.value.srcset,alt:e.alt,crossorigin:e.crossorigin,referrerpolicy:e.referrerpolicy,draggable:e.draggable,sizes:e.sizes,ref:u,onLoad:p,onError:S},null),$=(z=r.sources)==null?void 0:z.call(r);return b(Yr,{transition:e.transition,appear:!0},{default:()=>[kr($?b("picture",{class:"v-img__picture"},[$,L]):L,[[Oc,c.value==="loaded"]])]})},C=()=>b(Yr,{transition:e.transition},{default:()=>[h.value.lazySrc&&c.value!=="loaded"&&b("img",{class:["v-img__img","v-img__img--preload",T.value],style:{objectPosition:e.position},src:h.value.lazySrc,alt:e.alt,crossorigin:e.crossorigin,referrerpolicy:e.referrerpolicy,draggable:e.draggable},null)]}),x=()=>r.placeholder?b(Yr,{transition:e.transition,appear:!0},{default:()=>[(c.value==="loading"||c.value==="error"&&!r.error)&&b("div",{class:"v-img__placeholder"},[r.placeholder()])]}):null,P=()=>r.error?b(Yr,{transition:e.transition,appear:!0},{default:()=>[c.value==="error"&&b("div",{class:"v-img__error"},[r.error()])]}):null,O=()=>e.gradient?b("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${e.gradient})`}},null):null,R=le(!1);{const L=se(v,$=>{$&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{R.value=!0})}),L())})}return ye(()=>{const L=Kf.filterProps(e);return kr(b(Kf,Te({class:["v-img",{"v-img--booting":!R.value},s.value,o.value,e.class],style:[{width:ue(e.width==="auto"?d.value:e.width)},i.value,e.style]},L,{aspectRatio:v.value,"aria-label":e.alt,role:e.alt?"img":void 0}),{additional:()=>b(ge,null,[b(E,null,null),b(C,null,null),b(O,null,null),b(x,null,null),b(P,null,null)]),default:r.default}),[[jo("intersect"),{handler:m,options:e.options},null,{once:!0}]])}),{currentSrc:l,image:u,state:c,naturalWidth:d,naturalHeight:f}}}),W7=["sm","md","lg","xl","xxl"],ql=Symbol.for("vuetify:display"),Gf={mobileBreakpoint:"lg",thresholds:{xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560}},IS=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Gf;return ft(Gf,e)};function Yf(e){return Fe&&!e?window.innerWidth:typeof e=="object"&&e.clientWidth||0}function Jf(e){return Fe&&!e?window.innerHeight:typeof e=="object"&&e.clientHeight||0}function Zf(e){const t=Fe&&!e?window.navigator.userAgent:"ssr";function n(v){return!!t.match(v)}const r=n(/android/i),s=n(/iphone|ipad|ipod/i),i=n(/cordova/i),o=n(/electron/i),a=n(/chrome/i),l=n(/edge/i),u=n(/firefox/i),c=n(/opera/i),d=n(/win/i),f=n(/mac/i),h=n(/linux/i);return{android:r,ios:s,cordova:i,electron:o,chrome:a,edge:l,firefox:u,opera:c,win:d,mac:f,linux:h,touch:M2,ssr:t==="ssr"}}function RS(e,t){const{thresholds:n,mobileBreakpoint:r}=IS(e),s=le(Jf(t)),i=le(Zf(t)),o=Be({}),a=le(Yf(t));function l(){s.value=Jf(),a.value=Yf()}function u(){l(),i.value=Zf()}return nn(()=>{const c=a.value=n.xxl,p=c?"xs":d?"sm":f?"md":h?"lg":v?"xl":"xxl",S=typeof r=="number"?r:n[r],y=a.value0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:tr();const n=Se(ql);if(!n)throw new Error("Could not find Vuetify display injection");const r=A(()=>{if(e.mobile!=null)return e.mobile;if(!e.mobileBreakpoint)return n.mobile.value;const i=typeof e.mobileBreakpoint=="number"?e.mobileBreakpoint:n.thresholds.value[e.mobileBreakpoint];return n.width.valuet?{[`${t}--mobile`]:r.value}:{});return{...n,displayClasses:s,mobile:r}}const $S=Y({actionText:String,bgColor:String,color:String,icon:et,image:String,justify:{type:String,default:"center"},headline:String,title:String,text:String,textWidth:{type:[Number,String],default:500},href:String,to:String,...ke(),...In(),...Ci({size:void 0}),...at()},"VEmptyState"),VS=fe()({name:"VEmptyState",props:$S(),emits:{"click:action":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const{themeClasses:s}=lt(e),{backgroundColorClasses:i,backgroundColorStyles:o}=Xt(ie(e,"bgColor")),{dimensionStyles:a}=Rn(e),{displayClasses:l}=la();function u(c){n("click:action",c)}return ye(()=>{var p,S,y;const c=!!(r.actions||e.actionText),d=!!(r.headline||e.headline),f=!!(r.title||e.title),h=!!(r.text||e.text),v=!!(r.media||e.image||e.icon),m=e.size||(e.image?200:96);return b("div",{class:["v-empty-state",{[`v-empty-state--${e.justify}`]:!0},s.value,i.value,l.value,e.class],style:[o.value,a.value,e.style]},[v&&b("div",{key:"media",class:"v-empty-state__media"},[r.media?b(ze,{key:"media-defaults",defaults:{VImg:{src:e.image,height:m},VIcon:{size:m,icon:e.icon}}},{default:()=>[r.media()]}):b(ge,null,[e.image?b(ws,{key:"image",src:e.image,height:m},null):e.icon?b(Qt,{key:"icon",color:e.color,size:m,icon:e.icon},null):void 0])]),d&&b("div",{key:"headline",class:"v-empty-state__headline"},[((p=r.headline)==null?void 0:p.call(r))??e.headline]),f&&b("div",{key:"title",class:"v-empty-state__title"},[((S=r.title)==null?void 0:S.call(r))??e.title]),h&&b("div",{key:"text",class:"v-empty-state__text",style:{maxWidth:ue(e.textWidth)}},[((y=r.text)==null?void 0:y.call(r))??e.text]),r.default&&b("div",{key:"content",class:"v-empty-state__content"},[r.default()]),c&&b("div",{key:"actions",class:"v-empty-state__actions"},[b(ze,{defaults:{VBtn:{class:"v-empty-state__action-btn",color:e.color,text:e.actionText}}},{default:()=>{var g;return[((g=r.actions)==null?void 0:g.call(r,{props:{onClick:u}}))??b(ds,{onClick:u},null)]}})])])}),{}}}),Xf={badge:"徽章",open:"Open",close:"关闭",dismiss:"Dismiss",confirmEdit:{ok:"OK",cancel:"Cancel"},dataIterator:{noResultsText:"没有符合条件的结果",loadingText:"加载中……"},dataTable:{itemsPerPageText:"每页数目:",ariaLabel:{sortDescending:":降序排列。",sortAscending:":升序排列。",sortNone:":未排序。",activateNone:"点击以移除排序。",activateDescending:"点击以降序排列。",activateAscending:"点击以升序排列。"},sortBy:"排序方式"},dataFooter:{itemsPerPageText:"每页数目:",itemsPerPageAll:"全部",nextPage:"下一页",prevPage:"上一页",firstPage:"首页",lastPage:"尾页",pageText:"{0}-{1} 共 {2}"},dateRangeInput:{divider:"to"},datePicker:{itemsSelected:"{0} selected",range:{title:"Select dates",header:"Enter dates"},title:"Select date",header:"Enter date",input:{placeholder:"Enter date"}},noDataText:"没有数据",carousel:{prev:"上一张",next:"下一张",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"还有 {0} 项",today:"Today"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action",otp:"Please enter OTP character {0}"},fileInput:{counter:"{0} 个文件",counterSize:"{0} 个文件(共 {1})"},timePicker:{am:"AM",pm:"PM",title:"Select Time"},pagination:{ariaLabel:{root:"分页导航",next:"下一页",previous:"上一页",page:"转到页面 {0}",currentPage:"当前页 {0}",first:"First page",last:"Last page"}},stepper:{next:"Next",prev:"Previous"},rating:{ariaLabel:{item:"Rating {0} of {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"}},Qf=!1;function HS(){const e={blueprint:{defaults:{VAppBar:{flat:!0},VAutocomplete:{variant:"filled"},VBanner:{color:"primary"},VBottomSheet:{contentClass:"rounded-t-xl overflow-hidden"},VBtn:{color:"primary",rounded:"xl"},VBtnGroup:{rounded:"xl",VBtn:{rounded:null}},VCard:{rounded:"lg"},VCheckbox:{color:"secondary",inset:!0},VChip:{rounded:"sm"},VCombobox:{variant:"filled"},VNavigationDrawer:{},VSelect:{variant:"filled"},VSlider:{color:"primary"},VTabs:{color:"primary"},VTextarea:{variant:"filled"},VTextField:{variant:"filled"},VToolbar:{VBtn:{color:null}}},theme:{themes:{light:{colors:{primary:"#6750a4",secondary:"#b4b0bb",tertiary:"#7d5260",error:"#b3261e",surface:"#fffbfe"}}}}},locale:{locale:"en",fallback:"de"},defaults:{VSwitch:{color:"primary"},VDataTable:{fixedHeader:!0,hover:!0},VCard:{flat:!0,border:!0},VBtn:{color:""},VNavigationDrawer:{VList:{nav:!0,VListItem:{rounded:"xl"}}},VChip:{rounded:"lg"},VSelect:{color:"primary"},VTextarea:{color:"primary"},VTextField:{color:"primary"},VCheckbox:{color:"primary"},VCheckboxBtn:{color:"primary"},VProgressLinear:{color:"primary"}},display:{mobileBreakpoint:"sm"},theme:{defaultTheme:"dark",themes:{light:{colors:{}},dark:{colors:{}}}}};return e.components={VEmptyState:VS},e.locale=e.locale||{},e.locale.messages=e.locale.messages||{},"zhHans"in e.locale.messages&&Kl(e.locale.messages.zhHans,Xf),e.locale.messages.zhHans=Xf,"en"in e.locale.messages&&Kl(e.locale.messages.en,Ul),e.locale.messages.en=Ul,e}function Kl(e,t){for(const n in e)typeof e[n]=="object"?(typeof t[n]!="object"&&(t[n]={}),Kl(e[n],t[n])):t[n]=e[n]}const li={"001":1,AD:1,AE:6,AF:6,AG:0,AI:1,AL:1,AM:1,AN:1,AR:1,AS:0,AT:1,AU:1,AX:1,AZ:1,BA:1,BD:0,BE:1,BG:1,BH:6,BM:1,BN:1,BR:0,BS:0,BT:0,BW:0,BY:1,BZ:0,CA:0,CH:1,CL:1,CM:1,CN:1,CO:0,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DM:0,DO:0,DZ:6,EC:1,EE:1,EG:6,ES:1,ET:0,FI:1,FJ:1,FO:1,FR:1,GB:1,"GB-alt-variant":0,GE:1,GF:1,GP:1,GR:1,GT:0,GU:0,HK:0,HN:0,HR:1,HU:1,ID:0,IE:1,IL:0,IN:0,IQ:6,IR:6,IS:1,IT:1,JM:0,JO:6,JP:0,KE:0,KG:1,KH:0,KR:0,KW:6,KZ:1,LA:0,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MH:0,MK:1,MM:0,MN:1,MO:0,MQ:1,MT:0,MV:5,MX:0,MY:1,MZ:0,NI:0,NL:1,NO:1,NP:0,NZ:1,OM:6,PA:0,PE:0,PH:0,PK:0,PL:1,PR:0,PT:0,PY:0,QA:6,RE:1,RO:1,RS:1,RU:1,SA:0,SD:6,SE:1,SG:0,SI:1,SK:1,SM:1,SV:0,SY:6,TH:0,TJ:1,TM:1,TR:1,TT:0,TW:0,UA:1,UM:0,US:0,UY:1,UZ:1,VA:1,VE:0,VI:0,VN:1,WS:0,XK:1,YE:0,ZA:0,ZW:0};function DS(e,t){const n=[];let r=[];const s=Ng(e),i=Bg(e),o=(s.getDay()-li[t.slice(-2).toUpperCase()]+7)%7,a=(i.getDay()-li[t.slice(-2).toUpperCase()]+7)%7;for(let l=0;l0&&n.push(r),n}function jS(e,t){const n=new Date(e);for(;n.getDay()!==(li[t.slice(-2).toUpperCase()]??0);)n.setDate(n.getDate()-1);return n}function NS(e,t){const n=new Date(e),r=((li[t.slice(-2).toUpperCase()]??0)+6)%7;for(;n.getDay()!==r;)n.setDate(n.getDate()+1);return n}function Ng(e){return new Date(e.getFullYear(),e.getMonth(),1)}function Bg(e){return new Date(e.getFullYear(),e.getMonth()+1,0)}function BS(e){const t=e.split("-").map(Number);return new Date(t[0],t[1]-1,t[2])}const FS=/^([12]\d{3}-([1-9]|0[1-9]|1[0-2])-([1-9]|0[1-9]|[12]\d|3[01]))$/;function Fg(e){if(e==null)return new Date;if(e instanceof Date)return e;if(typeof e=="string"){let t;if(FS.test(e))return BS(e);if(t=Date.parse(e),!isNaN(t))return new Date(t)}return null}const eh=new Date(2e3,0,2);function US(e){const t=li[e.slice(-2).toUpperCase()];return _v(7).map(n=>{const r=new Date(eh);return r.setDate(eh.getDate()+t+n),new Intl.DateTimeFormat(e,{weekday:"narrow"}).format(r)})}function zS(e,t,n,r){const s=Fg(e)??new Date,i=r==null?void 0:r[t];if(typeof i=="function")return i(s,t,n);let o={};switch(t){case"fullDate":o={year:"numeric",month:"long",day:"numeric"};break;case"fullDateWithWeekday":o={weekday:"long",year:"numeric",month:"long",day:"numeric"};break;case"normalDate":const a=s.getDate(),l=new Intl.DateTimeFormat(n,{month:"long"}).format(s);return`${a} ${l}`;case"normalDateWithWeekday":o={weekday:"short",day:"numeric",month:"short"};break;case"shortDate":o={month:"short",day:"numeric"};break;case"year":o={year:"numeric"};break;case"month":o={month:"long"};break;case"monthShort":o={month:"short"};break;case"monthAndYear":o={month:"long",year:"numeric"};break;case"monthAndDate":o={month:"long",day:"numeric"};break;case"weekday":o={weekday:"long"};break;case"weekdayShort":o={weekday:"short"};break;case"dayOfMonth":return new Intl.NumberFormat(n).format(s.getDate());case"hours12h":o={hour:"numeric",hour12:!0};break;case"hours24h":o={hour:"numeric",hour12:!1};break;case"minutes":o={minute:"numeric"};break;case"seconds":o={second:"numeric"};break;case"fullTime":o={hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullTime12h":o={hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullTime24h":o={hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"fullDateTime":o={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullDateTime12h":o={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullDateTime24h":o={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"keyboardDate":o={year:"numeric",month:"2-digit",day:"2-digit"};break;case"keyboardDateTime":o={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"keyboardDateTime12h":o={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"keyboardDateTime24h":o={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;default:o=i??{timeZone:"UTC",timeZoneName:"short"}}return new Intl.DateTimeFormat(n,o).format(s)}function WS(e,t){const n=e.toJsDate(t),r=n.getFullYear(),s=Ld(String(n.getMonth()+1),2,"0"),i=Ld(String(n.getDate()),2,"0");return`${r}-${s}-${i}`}function qS(e){const[t,n,r]=e.split("-").map(Number);return new Date(t,n-1,r)}function KS(e,t){const n=new Date(e);return n.setMinutes(n.getMinutes()+t),n}function GS(e,t){const n=new Date(e);return n.setHours(n.getHours()+t),n}function YS(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function JS(e,t){const n=new Date(e);return n.setDate(n.getDate()+t*7),n}function ZS(e,t){const n=new Date(e);return n.setMonth(n.getMonth()+t),n}function XS(e){return e.getFullYear()}function QS(e){return e.getMonth()}function eC(e){return e.getDate()}function tC(e){return new Date(e.getFullYear(),e.getMonth()+1,1)}function nC(e){return new Date(e.getFullYear(),e.getMonth()-1,1)}function rC(e){return e.getHours()}function sC(e){return e.getMinutes()}function iC(e){return new Date(e.getFullYear(),0,1)}function oC(e){return new Date(e.getFullYear(),11,31)}function aC(e,t){return Lo(e,t[0])&&uC(e,t[1])}function lC(e){const t=new Date(e);return t instanceof Date&&!isNaN(t.getTime())}function Lo(e,t){return e.getTime()>t.getTime()}function cC(e,t){return Lo(Gl(e),Gl(t))}function uC(e,t){return e.getTime(){n.locale=e.locale[r]??r??n.locale}),n}const Ug=Symbol.for("vuetify:goto");function zg(){return{container:void 0,duration:300,layout:!1,offset:0,easing:"easeInOutCubic",patterns:{linear:e=>e,easeInQuad:e=>e**2,easeOutQuad:e=>e*(2-e),easeInOutQuad:e=>e<.5?2*e**2:-1+(4-2*e)*e,easeInCubic:e=>e**3,easeOutCubic:e=>--e**3+1,easeInOutCubic:e=>e<.5?4*e**3:(e-1)*(2*e-2)*(2*e-2)+1,easeInQuart:e=>e**4,easeOutQuart:e=>1- --e**4,easeInOutQuart:e=>e<.5?8*e**4:1-8*--e**4,easeInQuint:e=>e**5,easeOutQuint:e=>1+--e**5,easeInOutQuint:e=>e<.5?16*e**5:1+16*--e**5}}}function EC(e){return cu(e)??(document.scrollingElement||document.body)}function cu(e){return typeof e=="string"?document.querySelector(e):ei(e)}function Wa(e,t,n){if(typeof e=="number")return t&&n?-e:e;let r=cu(e),s=0;for(;r;)s+=t?r.offsetLeft:r.offsetTop,r=r.offsetParent;return s}function TC(e,t){return{rtl:t.isRtl,options:ft(zg(),e)}}async function rh(e,t,n,r){const s=n?"scrollLeft":"scrollTop",i=ft((r==null?void 0:r.options)??zg(),t),o=r==null?void 0:r.rtl.value,a=(typeof e=="number"?e:cu(e))??0,l=i.container==="parent"&&a instanceof HTMLElement?a.parentElement:EC(i.container),u=typeof i.easing=="function"?i.easing:i.patterns[i.easing];if(!u)throw new TypeError(`Easing function "${i.easing}" not found.`);let c;if(typeof a=="number")c=Wa(a,n,o);else if(c=Wa(a,n,o)-Wa(l,n,o),i.layout){const v=window.getComputedStyle(a).getPropertyValue("--v-layout-top");v&&(c-=parseInt(v,10))}c+=i.offset,c=AC(l,c,!!o,!!n);const d=l[s]??0;if(c===d)return Promise.resolve(c);const f=performance.now();return new Promise(h=>requestAnimationFrame(function v(m){const S=(m-f)/i.duration,y=Math.floor(d+(c-d)*u(xr(S,0,1)));if(l[s]=y,S>=1&&Math.abs(y-l[s])<10)return h(c);if(S>2)return h(l[s]);requestAnimationFrame(v)}))}function q7(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=Se(Ug),{isRtl:n}=Vr();if(!t)throw new Error("[Vuetify] Could not find injected goto instance");const r={...t,rtl:A(()=>t.rtl.value||n.value)};async function s(i,o){return rh(i,ft(e,o),!1,r)}return s.horizontal=async(i,o)=>rh(i,ft(e,o),!0,r),s}function AC(e,t,n,r){const{scrollWidth:s,scrollHeight:i}=e,[o,a]=e===document.scrollingElement?[window.innerWidth,window.innerHeight]:[e.offsetWidth,e.offsetHeight];let l,u;return r?n?(l=-(s-o),u=0):(l=0,u=s-o):(l=0,u=i+-a),Math.max(Math.min(t,u),l)}const Po=Symbol.for("vuetify:layout"),Wg=Symbol.for("vuetify:layout-item"),sh=1e3,xC=Y({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout"),uu=Y({name:{type:String},order:{type:[Number,String],default:0},absolute:Boolean},"layout-item");function LC(){const e=Se(Po);if(!e)throw new Error("[Vuetify] Could not find injected layout");return{layoutIsReady:Ke(),getLayoutItem:e.getLayoutItem,mainRect:e.mainRect,mainStyles:e.mainStyles}}function du(e){const t=Se(Po);if(!t)throw new Error("[Vuetify] Could not find injected layout");const n=e.id??`layout-item-${Rr()}`,r=Ze("useLayoutItem");Ye(Wg,{id:n});const s=le(!1);Ec(()=>s.value=!0),kc(()=>s.value=!1);const i=Ke(),{layoutItemStyles:o,layoutItemScrimStyles:a}=t.register(r,{...e,active:A(()=>s.value?!1:e.active.value),id:n});return it(()=>t.unregister(n)),{layoutItemStyles:o,layoutRect:t.layoutRect,layoutItemScrimStyles:a,layoutIsReady:i}}const PC=(e,t,n,r)=>{let s={top:0,left:0,right:0,bottom:0};const i=[{id:"",layer:{...s}}];for(const o of e){const a=t.get(o),l=n.get(o),u=r.get(o);if(!a||!l||!u)continue;const c={...s,[a.value]:parseInt(s[a.value],10)+(u.value?parseInt(l.value,10):0)};i.push({id:o,layer:c}),s=c}return i};function OC(e){const t=Se(Po,null),n=A(()=>t?t.rootZIndex.value-100:sh),r=N([]),s=Be(new Map),i=Be(new Map),o=Be(new Map),a=Be(new Map),l=Be(new Map),{resizeRef:u,contentRect:c}=iu(),d=Id(()=>{const T=[...new Set([...o.values()].map(C=>C.value))].sort((C,x)=>C-x),E=[];for(const C of T){const x=r.value.filter(P=>{var O;return((O=o.get(P))==null?void 0:O.value)===C});E.push(...x)}return PC(E,s,i,a)}),f=A(()=>!Array.from(l.values()).some(T=>T.value)),h=A(()=>d.value[d.value.length-1].layer),v=A(()=>({"--v-layout-left":ue(h.value.left),"--v-layout-right":ue(h.value.right),"--v-layout-top":ue(h.value.top),"--v-layout-bottom":ue(h.value.bottom),...f.value?void 0:{transition:"none"}})),m=Id(()=>d.value.slice(1).map((T,E)=>{let{id:C}=T;const{layer:x}=d.value[E],P=i.get(C),O=s.get(C);return{id:C,...x,size:Number(P.value),position:O.value}})),p=T=>m.value.find(E=>E.id===T),S=Ze("createLayout"),y=Ke();Ye(Po,{register:(T,E)=>{let{id:C,order:x,position:P,layoutSize:O,elementSize:R,active:L,disableTransitions:$,absolute:z}=E;o.set(C,x),s.set(C,P),i.set(C,O),a.set(C,L),$&&l.set(C,$);const H=Ns(Wg,S==null?void 0:S.vnode).indexOf(T);H>-1?r.value.splice(H,0,C):r.value.push(C);const X=A(()=>m.value.findIndex(Ee=>Ee.id===C)),F=A(()=>n.value+d.value.length*2-X.value*2),Pe=A(()=>{const Ee=P.value==="left"||P.value==="right",me=P.value==="right",ct=P.value==="bottom",tt=R.value??O.value,we=tt===0?"%":"px",Ce={[P.value]:0,zIndex:F.value,transform:`translate${Ee?"X":"Y"}(${(L.value?0:-(tt===0?100:tt))*(me||ct?-1:1)}${we})`,position:z.value||n.value!==sh?"absolute":"fixed",...f.value?void 0:{transition:"none"}};if(X.value<0)throw new Error(`Layout item "${C}" is missing`);const M=m.value[X.value];if(!M)throw new Error(`[Vuetify] Could not find layout item "${C}"`);return{...Ce,height:Ee?`calc(100% - ${M.top}px - ${M.bottom}px)`:R.value?`${R.value}px`:void 0,left:me?void 0:`${M.left}px`,right:me?`${M.right}px`:void 0,top:P.value!=="bottom"?`${M.top}px`:void 0,bottom:P.value!=="top"?`${M.bottom}px`:void 0,width:Ee?R.value?`${R.value}px`:void 0:`calc(100% - ${M.left}px - ${M.right}px)`}}),he=A(()=>({zIndex:F.value-1}));return{layoutItemStyles:Pe,layoutItemScrimStyles:he,zIndex:F}},unregister:T=>{o.delete(T),s.delete(T),i.delete(T),a.delete(T),l.delete(T),r.value=r.value.filter(E=>E!==T)},mainRect:h,mainStyles:v,getLayoutItem:p,items:m,layoutRect:c,rootZIndex:n,layoutIsReady:y});const g=A(()=>["v-layout",{"v-layout--full-height":e.fullHeight}]),_=A(()=>({zIndex:t?n.value:void 0,position:t?"relative":void 0,overflow:t?"hidden":void 0}));return{layoutClasses:g,layoutStyles:_,getLayoutItem:p,items:m,layoutRect:c,layoutIsReady:y,layoutRef:u}}function qg(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{blueprint:t,...n}=e,r=ft(t,n),{aliases:s={},components:i={},directives:o={}}=r,a=yw(r.defaults),l=RS(r.display,r.ssr),u=Y3(r.theme),c=xw(r.icons),d=fS(r.locale),f=CC(r.date,d),h=TC(r.goTo,d);return{install:m=>{for(const p in o)m.directive(p,o[p]);for(const p in i)m.component(p,i[p]);for(const p in s)m.component(p,ys({...s[p],name:p,aliasName:s[p].name}));if(u.install(m),m.provide(as,a),m.provide(ql,l),m.provide(ii,u),m.provide(Pl,c),m.provide(Ao,d),m.provide(SC,f.options),m.provide(nh,f.instance),m.provide(Ug,h),Fe&&r.ssr)if(m.$nuxt)m.$nuxt.hook("app:suspense:resolve",()=>{l.update()});else{const{mount:p}=m;m.mount=function(){const S=p(...arguments);return Ke(()=>l.update()),m.mount=p,S}}Rr.reset(),m.mixin({computed:{$vuetify(){return Be({defaults:zr.call(this,as),display:zr.call(this,ql),theme:zr.call(this,ii),icons:zr.call(this,Pl),locale:zr.call(this,Ao),date:zr.call(this,nh)})}}})},defaults:a,display:l,theme:u,icons:c,locale:d,date:f,goTo:h}}const IC="3.6.0";qg.version=IC;function zr(e){var r,s;const t=this.$,n=((r=t.parent)==null?void 0:r.provides)??((s=t.vnode.appContext)==null?void 0:s.provides);if(n&&e in n)return n[e]}const RC=ot({name:"vuetify:nuxt:client:plugin",order:25,dependsOn:["vuetify:icons:plugin"],parallel:!0,async setup(e){let t,n;const r=HS();[t,n]=kn(()=>e.hooks.callHook("vuetify:configuration",{isDev:Qf,vuetifyOptions:r})),await t,n(),[t,n]=kn(()=>e.hooks.callHook("vuetify:before-create",{isDev:Qf,vuetifyOptions:r})),await t,n();const s=qg(r);e.vueApp.use(s),e.provide("vuetify",s),[t,n]=kn(()=>e.hooks.callHook("vuetify:ready",s)),await t,n()}}),MC=[O2,Mw,Vw,p5,l3,c3,u3,m3,v3,g3,y3,C3,k3,E3,H3,q3,RC],Kg=fe()({name:"VCardActions",props:ke(),setup(e,t){let{slots:n}=t;return Ir({VBtn:{slim:!0,variant:"text"}}),ye(()=>{var r;return b("div",{class:["v-card-actions",e.class],style:e.style},[(r=n.default)==null?void 0:r.call(n)])}),{}}}),$C=Y({opacity:[Number,String],...ke(),...We()},"VCardSubtitle"),VC=fe()({name:"VCardSubtitle",props:$C(),setup(e,t){let{slots:n}=t;return ye(()=>b(e.tag,{class:["v-card-subtitle",e.class],style:[{"--v-card-subtitle-opacity":e.opacity},e.style]},n)),{}}}),HC=Zo("v-card-title"),DC=Y({start:Boolean,end:Boolean,icon:et,image:String,text:String,...ke(),...Ln(),...Ut(),...Ci(),...We(),...at(),...$r({variant:"flat"})},"VAvatar"),ci=fe()({name:"VAvatar",props:DC(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=lt(e),{colorClasses:s,colorStyles:i,variantClasses:o}=Si(e),{densityClasses:a}=sr(e),{roundedClasses:l}=zt(e),{sizeClasses:u,sizeStyles:c}=ra(e);return ye(()=>b(e.tag,{class:["v-avatar",{"v-avatar--start":e.start,"v-avatar--end":e.end},r.value,s.value,a.value,l.value,u.value,o.value,e.class],style:[i.value,c.value,e.style]},{default:()=>[n.default?b(ze,{key:"content-defaults",defaults:{VImg:{cover:!0,image:e.image},VIcon:{icon:e.icon}}},{default:()=>[n.default()]}):e.image?b(ws,{key:"image",src:e.image,alt:"",cover:!0},null):e.icon?b(Qt,{key:"icon",icon:e.icon},null):e.text,_i(!1,"v-avatar")]})),{}}}),jC=Y({appendAvatar:String,appendIcon:et,prependAvatar:String,prependIcon:et,subtitle:[String,Number],title:[String,Number],...ke(),...Ln()},"VCardItem"),NC=fe()({name:"VCardItem",props:jC(),setup(e,t){let{slots:n}=t;return ye(()=>{var u;const r=!!(e.prependAvatar||e.prependIcon),s=!!(r||n.prepend),i=!!(e.appendAvatar||e.appendIcon),o=!!(i||n.append),a=!!(e.title!=null||n.title),l=!!(e.subtitle!=null||n.subtitle);return b("div",{class:["v-card-item",e.class],style:e.style},[s&&b("div",{key:"prepend",class:"v-card-item__prepend"},[n.prepend?b(ze,{key:"prepend-defaults",disabled:!r,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon}}},n.prepend):b(ge,null,[e.prependAvatar&&b(ci,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&b(Qt,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)])]),b("div",{class:"v-card-item__content"},[a&&b(HC,{key:"title"},{default:()=>{var c;return[((c=n.title)==null?void 0:c.call(n))??e.title]}}),l&&b(VC,{key:"subtitle"},{default:()=>{var c;return[((c=n.subtitle)==null?void 0:c.call(n))??e.subtitle]}}),(u=n.default)==null?void 0:u.call(n)]),o&&b("div",{key:"append",class:"v-card-item__append"},[n.append?b(ze,{key:"append-defaults",disabled:!i,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon}}},n.append):b(ge,null,[e.appendIcon&&b(Qt,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&b(ci,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)])])])}),{}}}),BC=Y({opacity:[Number,String],...ke(),...We()},"VCardText"),Gg=fe()({name:"VCardText",props:BC(),setup(e,t){let{slots:n}=t;return ye(()=>b(e.tag,{class:["v-card-text",e.class],style:[{"--v-card-text-opacity":e.opacity},e.style]},n)),{}}}),FC=Y({appendAvatar:String,appendIcon:et,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:et,ripple:{type:[Boolean,Object],default:!0},subtitle:[String,Number],text:[String,Number],title:[String,Number],...nr(),...ke(),...Ln(),...In(),...Pn(),...Eg(),...sa(),...ou(),...Ut(),...aa(),...We(),...at(),...$r({variant:"elevated"})},"VCard"),UC=fe()({name:"VCard",directives:{Ripple:lu},props:FC(),setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:s}=lt(e),{borderClasses:i}=rr(e),{colorClasses:o,colorStyles:a,variantClasses:l}=Si(e),{densityClasses:u}=sr(e),{dimensionStyles:c}=Rn(e),{elevationClasses:d}=On(e),{loaderClasses:f}=Tg(e),{locationStyles:h}=ia(e),{positionClasses:v}=au(e),{roundedClasses:m}=zt(e),p=oa(e,n),S=A(()=>e.link!==!1&&p.isLink.value),y=A(()=>!e.disabled&&e.link!==!1&&(e.link||p.isClickable.value));return ye(()=>{const g=S.value?"a":e.tag,_=!!(r.title||e.title!=null),T=!!(r.subtitle||e.subtitle!=null),E=_||T,C=!!(r.append||e.appendAvatar||e.appendIcon),x=!!(r.prepend||e.prependAvatar||e.prependIcon),P=!!(r.image||e.image),O=E||x||C,R=!!(r.text||e.text!=null);return kr(b(g,{class:["v-card",{"v-card--disabled":e.disabled,"v-card--flat":e.flat,"v-card--hover":e.hover&&!(e.disabled||e.flat),"v-card--link":y.value},s.value,i.value,o.value,u.value,d.value,f.value,v.value,m.value,l.value,e.class],style:[a.value,c.value,h.value,e.style],href:p.href.value,onClick:y.value&&p.navigate,tabindex:e.disabled?-1:void 0},{default:()=>{var L;return[P&&b("div",{key:"image",class:"v-card__image"},[r.image?b(ze,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},r.image):b(ws,{key:"image-img",cover:!0,src:e.image},null)]),b(yS,{name:"v-card",active:!!e.loading,color:typeof e.loading=="boolean"?void 0:e.loading},{default:r.loader}),O&&b(NC,{key:"item",prependAvatar:e.prependAvatar,prependIcon:e.prependIcon,title:e.title,subtitle:e.subtitle,appendAvatar:e.appendAvatar,appendIcon:e.appendIcon},{default:r.item,prepend:r.prepend,title:r.title,subtitle:r.subtitle,append:r.append}),R&&b(Gg,{key:"text"},{default:()=>{var $;return[(($=r.text)==null?void 0:$.call(r))??e.text]}}),(L=r.default)==null?void 0:L.call(r),r.actions&&b(Kg,null,{default:r.actions}),_i(y.value,"v-card")]}}),[[jo("ripple"),y.value&&e.ripple]])}),{}}}),zC=Y({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function Wt(e,t,n){return fe()({name:e,props:zC({mode:n,origin:t}),setup(r,s){let{slots:i}=s;const o={onBeforeEnter(a){r.origin&&(a.style.transformOrigin=r.origin)},onLeave(a){if(r.leaveAbsolute){const{offsetTop:l,offsetLeft:u,offsetWidth:c,offsetHeight:d}=a;a._transitionInitialStyles={position:a.style.position,top:a.style.top,left:a.style.left,width:a.style.width,height:a.style.height},a.style.position="absolute",a.style.top=`${l}px`,a.style.left=`${u}px`,a.style.width=`${c}px`,a.style.height=`${d}px`}r.hideOnLeave&&a.style.setProperty("display","none","important")},onAfterLeave(a){if(r.leaveAbsolute&&(a!=null&&a._transitionInitialStyles)){const{position:l,top:u,left:c,width:d,height:f}=a._transitionInitialStyles;delete a._transitionInitialStyles,a.style.position=l||"",a.style.top=u||"",a.style.left=c||"",a.style.width=d||"",a.style.height=f||""}}};return()=>{const a=r.group?Uo:un;return gt(a,{name:r.disabled?"":e,css:!r.disabled,...r.group?void 0:{mode:r.mode},...r.disabled?{}:o},i.default)}}})}function Yg(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return fe()({name:e,props:{mode:{type:String,default:n},disabled:Boolean,group:Boolean},setup(r,s){let{slots:i}=s;const o=r.group?Uo:un;return()=>gt(o,{name:r.disabled?"":e,css:!r.disabled,...r.disabled?{}:t},i.default)}})}function Jg(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?"width":"height",r=en(`offset-${n}`);return{onBeforeEnter(o){o._parent=o.parentNode,o._initialStyle={transition:o.style.transition,overflow:o.style.overflow,[n]:o.style[n]}},onEnter(o){const a=o._initialStyle;o.style.setProperty("transition","none","important"),o.style.overflow="hidden";const l=`${o[r]}px`;o.style[n]="0",o.offsetHeight,o.style.transition=a.transition,e&&o._parent&&o._parent.classList.add(e),requestAnimationFrame(()=>{o.style[n]=l})},onAfterEnter:i,onEnterCancelled:i,onLeave(o){o._initialStyle={transition:"",overflow:o.style.overflow,[n]:o.style[n]},o.style.overflow="hidden",o.style[n]=`${o[r]}px`,o.offsetHeight,requestAnimationFrame(()=>o.style[n]="0")},onAfterLeave:s,onLeaveCancelled:s};function s(o){e&&o._parent&&o._parent.classList.remove(e),i(o)}function i(o){const a=o._initialStyle[n];o.style.overflow=o._initialStyle.overflow,a!=null&&(o.style[n]=a),delete o._initialStyle}}const WC=Y({target:[Object,Array]},"v-dialog-transition"),Zg=fe()({name:"VDialogTransition",props:WC(),setup(e,t){let{slots:n}=t;const r={onBeforeEnter(s){s.style.pointerEvents="none",s.style.visibility="hidden"},async onEnter(s,i){var f;await new Promise(h=>requestAnimationFrame(h)),await new Promise(h=>requestAnimationFrame(h)),s.style.visibility="";const{x:o,y:a,sx:l,sy:u,speed:c}=oh(e.target,s),d=Ps(s,[{transform:`translate(${o}px, ${a}px) scale(${l}, ${u})`,opacity:0},{}],{duration:225*c,easing:_w});(f=ih(s))==null||f.forEach(h=>{Ps(h,[{opacity:0},{opacity:0,offset:.33},{}],{duration:225*2*c,easing:Ll})}),d.finished.then(()=>i())},onAfterEnter(s){s.style.removeProperty("pointer-events")},onBeforeLeave(s){s.style.pointerEvents="none"},async onLeave(s,i){var f;await new Promise(h=>requestAnimationFrame(h));const{x:o,y:a,sx:l,sy:u,speed:c}=oh(e.target,s);Ps(s,[{},{transform:`translate(${o}px, ${a}px) scale(${l}, ${u})`,opacity:0}],{duration:125*c,easing:Sw}).finished.then(()=>i()),(f=ih(s))==null||f.forEach(h=>{Ps(h,[{},{opacity:0,offset:.2},{opacity:0}],{duration:125*2*c,easing:Ll})})},onAfterLeave(s){s.style.removeProperty("pointer-events")}};return()=>e.target?b(un,Te({name:"dialog-transition"},r,{css:!1}),n):b(un,{name:"dialog-transition"},n)}});function ih(e){var n;const t=(n=e.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list"))==null?void 0:n.children;return t&&[...t]}function oh(e,t){const n=xv(e),r=Lv(t),[s,i]=getComputedStyle(t).transformOrigin.split(" ").map(S=>parseFloat(S)),[o,a]=getComputedStyle(t).getPropertyValue("--v-overlay-anchor-origin").split(" ");let l=n.left+n.width/2;o==="left"||a==="left"?l-=n.width/2:(o==="right"||a==="right")&&(l+=n.width/2);let u=n.top+n.height/2;o==="top"||a==="top"?u-=n.height/2:(o==="bottom"||a==="bottom")&&(u+=n.height/2);const c=n.width/r.width,d=n.height/r.height,f=Math.max(1,c,d),h=c/f||0,v=d/f||0,m=r.width*r.height/(window.innerWidth*window.innerHeight),p=m>.12?Math.min(1.5,(m-.12)*10+1):1;return{x:l-(s+r.left),y:u-(i+r.top),sx:h,sy:v,speed:p}}Wt("fab-transition","center center","out-in");Wt("dialog-bottom-transition");Wt("dialog-top-transition");const K7=Wt("fade-transition"),G7=Wt("scale-transition");Wt("scroll-x-transition");Wt("scroll-x-reverse-transition");Wt("scroll-y-transition");Wt("scroll-y-reverse-transition");Wt("slide-x-transition");Wt("slide-x-reverse-transition");const Y7=Wt("slide-y-transition");Wt("slide-y-reverse-transition");const Xg=Yg("expand-transition",Jg()),J7=Yg("expand-x-transition",Jg("",!0));function qa(e,t){return{x:e.x+t.x,y:e.y+t.y}}function qC(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ah(e,t){if(e.side==="top"||e.side==="bottom"){const{side:n,align:r}=e,s=r==="left"?0:r==="center"?t.width/2:r==="right"?t.width:r,i=n==="top"?0:n==="bottom"?t.height:n;return qa({x:s,y:i},t)}else if(e.side==="left"||e.side==="right"){const{side:n,align:r}=e,s=n==="left"?0:n==="right"?t.width:n,i=r==="top"?0:r==="center"?t.height/2:r==="bottom"?t.height:r;return qa({x:s,y:i},t)}return qa({x:t.width/2,y:t.height/2},t)}const Qg={static:YC,connected:ZC},KC=Y({locationStrategy:{type:[String,Function],default:"static",validator:e=>typeof e=="function"||e in Qg},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array]},"VOverlay-location-strategies");function GC(e,t){const n=N({}),r=N();Fe&&En(()=>!!(t.isActive.value&&e.locationStrategy),i=>{var o,a;se(()=>e.locationStrategy,i),pt(()=>{window.removeEventListener("resize",s),r.value=void 0}),window.addEventListener("resize",s,{passive:!0}),typeof e.locationStrategy=="function"?r.value=(o=e.locationStrategy(t,e,n))==null?void 0:o.updateLocation:r.value=(a=Qg[e.locationStrategy](t,e,n))==null?void 0:a.updateLocation});function s(i){var o;(o=r.value)==null||o.call(r,i)}return{contentStyles:n,updateLocation:r}}function YC(){}function JC(e,t){t?e.style.removeProperty("left"):e.style.removeProperty("right");const n=Lv(e);return t?n.x+=parseFloat(e.style.right||0):n.x-=parseFloat(e.style.left||0),n.y-=parseFloat(e.style.top||0),n}function ZC(e,t,n){(Array.isArray(e.target.value)||Tw(e.target.value))&&Object.assign(n.value,{position:"fixed",top:0,[e.isRtl.value?"right":"left"]:0});const{preferredAnchor:s,preferredOrigin:i}=Uc(()=>{const v=Tl(t.location,e.isRtl.value),m=t.origin==="overlap"?v:t.origin==="auto"?La(v):Tl(t.origin,e.isRtl.value);return v.side===m.side&&v.align===Pa(m).align?{preferredAnchor:Rd(v),preferredOrigin:Rd(m)}:{preferredAnchor:v,preferredOrigin:m}}),[o,a,l,u]=["minWidth","minHeight","maxWidth","maxHeight"].map(v=>A(()=>{const m=parseFloat(t[v]);return isNaN(m)?1/0:m})),c=A(()=>{if(Array.isArray(t.offset))return t.offset;if(typeof t.offset=="string"){const v=t.offset.split(" ").map(parseFloat);return v.length<2&&v.push(0),v}return typeof t.offset=="number"?[t.offset,0]:[0,0]});let d=!1;const f=new ResizeObserver(()=>{d&&h()});se([e.target,e.contentEl],(v,m)=>{let[p,S]=v,[y,g]=m;y&&!Array.isArray(y)&&f.unobserve(y),p&&!Array.isArray(p)&&f.observe(p),g&&f.unobserve(g),S&&f.observe(S)},{immediate:!0}),pt(()=>{f.disconnect()});function h(){if(d=!1,requestAnimationFrame(()=>d=!0),!e.target.value||!e.contentEl.value)return;const v=xv(e.target.value),m=JC(e.contentEl.value,e.isRtl.value),p=Eo(e.contentEl.value),S=12;p.length||(p.push(document.documentElement),e.contentEl.value.style.top&&e.contentEl.value.style.left||(m.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),m.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const y=p.reduce((R,L)=>{const $=L.getBoundingClientRect(),z=new Sr({x:L===document.documentElement?0:$.x,y:L===document.documentElement?0:$.y,width:L.clientWidth,height:L.clientHeight});return R?new Sr({x:Math.max(R.left,z.left),y:Math.max(R.top,z.top),width:Math.min(R.right,z.right)-Math.max(R.left,z.left),height:Math.min(R.bottom,z.bottom)-Math.max(R.top,z.top)}):z},void 0);y.x+=S,y.y+=S,y.width-=S*2,y.height-=S*2;let g={anchor:s.value,origin:i.value};function _(R){const L=new Sr(m),$=ah(R.anchor,v),z=ah(R.origin,L);let{x:Q,y:H}=qC($,z);switch(R.anchor.side){case"top":H-=c.value[0];break;case"bottom":H+=c.value[0];break;case"left":Q-=c.value[0];break;case"right":Q+=c.value[0];break}switch(R.anchor.align){case"top":H-=c.value[1];break;case"bottom":H+=c.value[1];break;case"left":Q-=c.value[1];break;case"right":Q+=c.value[1];break}return L.x+=Q,L.y+=H,L.width=Math.min(L.width,l.value),L.height=Math.min(L.height,u.value),{overflows:$d(L,y),x:Q,y:H}}let T=0,E=0;const C={x:0,y:0},x={x:!1,y:!1};let P=-1;for(;!(P++>10);){const{x:R,y:L,overflows:$}=_(g);T+=R,E+=L,m.x+=R,m.y+=L;{const z=Md(g.anchor),Q=$.x.before||$.x.after,H=$.y.before||$.y.after;let X=!1;if(["x","y"].forEach(F=>{if(F==="x"&&Q&&!x.x||F==="y"&&H&&!x.y){const Pe={anchor:{...g.anchor},origin:{...g.origin}},he=F==="x"?z==="y"?Pa:La:z==="y"?La:Pa;Pe.anchor=he(Pe.anchor),Pe.origin=he(Pe.origin);const{overflows:Ee}=_(Pe);(Ee[F].before<=$[F].before&&Ee[F].after<=$[F].after||Ee[F].before+Ee[F].after<($[F].before+$[F].after)/2)&&(g=Pe,X=x[F]=!0)}}),X)continue}$.x.before&&(T+=$.x.before,m.x+=$.x.before),$.x.after&&(T-=$.x.after,m.x-=$.x.after),$.y.before&&(E+=$.y.before,m.y+=$.y.before),$.y.after&&(E-=$.y.after,m.y-=$.y.after);{const z=$d(m,y);C.x=y.width-z.x.before-z.x.after,C.y=y.height-z.y.before-z.y.after,T+=z.x.before,m.x+=z.x.before,E+=z.y.before,m.y+=z.y.before}break}const O=Md(g.anchor);return Object.assign(n.value,{"--v-overlay-anchor-origin":`${g.anchor.side} ${g.anchor.align}`,transformOrigin:`${g.origin.side} ${g.origin.align}`,top:ue(Ka(E)),left:e.isRtl.value?void 0:ue(Ka(T)),right:e.isRtl.value?ue(Ka(-T)):void 0,minWidth:ue(O==="y"?Math.min(o.value,v.width):o.value),maxWidth:ue(lh(xr(C.x,o.value===1/0?0:o.value,l.value))),maxHeight:ue(lh(xr(C.y,a.value===1/0?0:a.value,u.value)))}),{available:C,contentBox:m}}return se(()=>[s.value,i.value,t.offset,t.minWidth,t.minHeight,t.maxWidth,t.maxHeight],()=>h()),Ke(()=>{const v=h();if(!v)return;const{available:m,contentBox:p}=v;p.height>m.y&&requestAnimationFrame(()=>{h(),requestAnimationFrame(()=>{h()})})}),{updateLocation:h}}function Ka(e){return Math.round(e*devicePixelRatio)/devicePixelRatio}function lh(e){return Math.ceil(e*devicePixelRatio)/devicePixelRatio}let Yl=!0;const Oo=[];function XC(e){!Yl||Oo.length?(Oo.push(e),Jl()):(Yl=!1,e(),Jl())}let ch=-1;function Jl(){cancelAnimationFrame(ch),ch=requestAnimationFrame(()=>{const e=Oo.shift();e&&e(),Oo.length?Jl():Yl=!0})}const ro={none:null,close:t6,block:n6,reposition:r6},QC=Y({scrollStrategy:{type:[String,Function],default:"block",validator:e=>typeof e=="function"||e in ro}},"VOverlay-scroll-strategies");function e6(e,t){if(!Fe)return;let n;nn(async()=>{n==null||n.stop(),t.isActive.value&&e.scrollStrategy&&(n=vs(),await new Promise(r=>setTimeout(r)),n.active&&n.run(()=>{var r;typeof e.scrollStrategy=="function"?e.scrollStrategy(t,e,n):(r=ro[e.scrollStrategy])==null||r.call(ro,t,e,n)}))}),pt(()=>{n==null||n.stop()})}function t6(e){function t(n){e.isActive.value=!1}e1(e.targetEl.value??e.contentEl.value,t)}function n6(e,t){var o;const n=(o=e.root.value)==null?void 0:o.offsetParent,r=[...new Set([...Eo(e.targetEl.value,t.contained?n:void 0),...Eo(e.contentEl.value,t.contained?n:void 0)])].filter(a=>!a.classList.contains("v-overlay-scroll-blocked")),s=window.innerWidth-document.documentElement.offsetWidth,i=(a=>qc(a)&&a)(n||document.documentElement);i&&e.root.value.classList.add("v-overlay--scroll-blocked"),r.forEach((a,l)=>{a.style.setProperty("--v-body-scroll-x",ue(-a.scrollLeft)),a.style.setProperty("--v-body-scroll-y",ue(-a.scrollTop)),a!==document.documentElement&&a.style.setProperty("--v-scrollbar-offset",ue(s)),a.classList.add("v-overlay-scroll-blocked")}),pt(()=>{r.forEach((a,l)=>{const u=parseFloat(a.style.getPropertyValue("--v-body-scroll-x")),c=parseFloat(a.style.getPropertyValue("--v-body-scroll-y")),d=a.style.scrollBehavior;a.style.scrollBehavior="auto",a.style.removeProperty("--v-body-scroll-x"),a.style.removeProperty("--v-body-scroll-y"),a.style.removeProperty("--v-scrollbar-offset"),a.classList.remove("v-overlay-scroll-blocked"),a.scrollLeft=-u,a.scrollTop=-c,a.style.scrollBehavior=d}),i&&e.root.value.classList.remove("v-overlay--scroll-blocked")})}function r6(e,t,n){let r=!1,s=-1,i=-1;function o(a){XC(()=>{var c,d;const l=performance.now();(d=(c=e.updateLocation).value)==null||d.call(c,a),r=(performance.now()-l)/(1e3/60)>2})}i=(typeof requestIdleCallback>"u"?a=>a():requestIdleCallback)(()=>{n.run(()=>{e1(e.targetEl.value??e.contentEl.value,a=>{r?(cancelAnimationFrame(s),s=requestAnimationFrame(()=>{s=requestAnimationFrame(()=>{o(a)})})):o(a)})})}),pt(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(i),cancelAnimationFrame(s)})}function e1(e,t){const n=[document,...Eo(e)];n.forEach(r=>{r.addEventListener("scroll",t,{passive:!0})}),pt(()=>{n.forEach(r=>{r.removeEventListener("scroll",t)})})}const Zl=Symbol.for("vuetify:v-menu"),t1=Y({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function n1(e,t){let n=()=>{};function r(o){n==null||n();const a=Number(o?e.openDelay:e.closeDelay);return new Promise(l=>{n=W2(a,()=>{t==null||t(o),l(o)})})}function s(){return r(!0)}function i(){return r(!1)}return{clearDelay:n,runOpenDelay:s,runCloseDelay:i}}const s6=Y({target:[String,Object],activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...t1()},"VOverlay-activator");function i6(e,t){let{isActive:n,isTop:r}=t;const s=Ze("useActivator"),i=N();let o=!1,a=!1,l=!0;const u=A(()=>e.openOnFocus||e.openOnFocus==null&&e.openOnHover),c=A(()=>e.openOnClick||e.openOnClick==null&&!e.openOnHover&&!u.value),{runOpenDelay:d,runCloseDelay:f}=n1(e,C=>{C===(e.openOnHover&&o||u.value&&a)&&!(e.openOnHover&&n.value&&!r.value)&&(n.value!==C&&(l=!0),n.value=C)}),h=N(),v={onClick:C=>{C.stopPropagation(),i.value=C.currentTarget||C.target,n.value||(h.value=[C.clientX,C.clientY]),n.value=!n.value},onMouseenter:C=>{var x;(x=C.sourceCapabilities)!=null&&x.firesTouchEvents||(o=!0,i.value=C.currentTarget||C.target,d())},onMouseleave:C=>{o=!1,f()},onFocus:C=>{U2(C.target,":focus-visible")!==!1&&(a=!0,C.stopPropagation(),i.value=C.currentTarget||C.target,d())},onBlur:C=>{a=!1,C.stopPropagation(),f()}},m=A(()=>{const C={};return c.value&&(C.onClick=v.onClick),e.openOnHover&&(C.onMouseenter=v.onMouseenter,C.onMouseleave=v.onMouseleave),u.value&&(C.onFocus=v.onFocus,C.onBlur=v.onBlur),C}),p=A(()=>{const C={};if(e.openOnHover&&(C.onMouseenter=()=>{o=!0,d()},C.onMouseleave=()=>{o=!1,f()}),u.value&&(C.onFocusin=()=>{a=!0,d()},C.onFocusout=()=>{a=!1,f()}),e.closeOnContentClick){const x=Se(Zl,null);C.onClick=()=>{n.value=!1,x==null||x.closeParents()}}return C}),S=A(()=>{const C={};return e.openOnHover&&(C.onMouseenter=()=>{l&&(o=!0,l=!1,d())},C.onMouseleave=()=>{o=!1,f()}),C});se(r,C=>{C&&(e.openOnHover&&!o&&(!u.value||!a)||u.value&&!a&&(!e.openOnHover||!o))&&(n.value=!1)}),se(n,C=>{C||setTimeout(()=>{h.value=void 0})},{flush:"post"});const y=N();nn(()=>{y.value&&Ke(()=>{i.value=ei(y.value)})});const g=N(),_=A(()=>e.target==="cursor"&&h.value?h.value:g.value?ei(g.value):r1(e.target,s)||i.value),T=A(()=>Array.isArray(_.value)?void 0:_.value);let E;return se(()=>!!e.activator,C=>{C&&Fe?(E=vs(),E.run(()=>{o6(e,s,{activatorEl:i,activatorEvents:m})})):E&&E.stop()},{flush:"post",immediate:!0}),pt(()=>{E==null||E.stop()}),{activatorEl:i,activatorRef:y,target:_,targetEl:T,targetRef:g,activatorEvents:m,contentEvents:p,scrimEvents:S}}function o6(e,t,n){let{activatorEl:r,activatorEvents:s}=n;se(()=>e.activator,(l,u)=>{if(u&&l!==u){const c=a(u);c&&o(c)}l&&Ke(()=>i())},{immediate:!0}),se(()=>e.activatorProps,()=>{i()}),pt(()=>{o()});function i(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a(),u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;l&&G2(l,Te(s.value,u))}function o(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a(),u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;l&&Y2(l,Te(s.value,u))}function a(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activator;const u=r1(l,t);return r.value=(u==null?void 0:u.nodeType)===Node.ELEMENT_NODE?u:void 0,r.value}}function r1(e,t){var r,s;if(!e)return;let n;if(e==="parent"){let i=(s=(r=t==null?void 0:t.proxy)==null?void 0:r.$el)==null?void 0:s.parentNode;for(;i!=null&&i.hasAttribute("data-no-activator");)i=i.parentNode;n=i}else typeof e=="string"?n=document.querySelector(e):"$el"in e?n=e.$el:n=e;return n}function a6(){if(!Fe)return le(!1);const{ssr:e}=la();if(e){const t=le(!1);return rn(()=>{t.value=!0}),t}else return le(!0)}const l6=Y({eager:Boolean},"lazy");function c6(e,t){const n=le(!1),r=A(()=>n.value||e.eager||t.value);se(t,()=>n.value=!0);function s(){e.eager||(n.value=!1)}return{isBooted:n,hasContent:r,onAfterLeave:s}}function ki(){const t=Ze("useScopeId").vnode.scopeId;return{scopeId:t?{[t]:""}:void 0}}const uh=Symbol.for("vuetify:stack"),As=Be([]);function u6(e,t,n){const r=Ze("useStack"),s=!n,i=Se(uh,void 0),o=Be({activeChildren:new Set});Ye(uh,o);const a=le(+t.value);En(e,()=>{var d;const c=(d=As.at(-1))==null?void 0:d[1];a.value=c?c+10:+t.value,s&&As.push([r.uid,a.value]),i==null||i.activeChildren.add(r.uid),pt(()=>{if(s){const f=ae(As).findIndex(h=>h[0]===r.uid);As.splice(f,1)}i==null||i.activeChildren.delete(r.uid)})});const l=le(!0);s&&nn(()=>{var d;const c=((d=As.at(-1))==null?void 0:d[0])===r.uid;setTimeout(()=>l.value=c)});const u=A(()=>!o.activeChildren.size);return{globalTop:gs(l),localTop:u,stackStyles:A(()=>({zIndex:a.value}))}}function d6(e){return{teleportTarget:A(()=>{const n=e.value;if(n===!0||!Fe)return;const r=n===!1?document.body:typeof n=="string"?document.querySelector(n):n;if(r==null)return;let s=r.querySelector(":scope > .v-overlay-container");return s||(s=document.createElement("div"),s.className="v-overlay-container",r.appendChild(s)),s})}}function f6(){return!0}function s1(e,t,n){if(!e||i1(e,n)===!1)return!1;const r=$v(t);if(typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&r.host===e.target)return!1;const s=(typeof n.value=="object"&&n.value.include||(()=>[]))();return s.push(t),!s.some(i=>i==null?void 0:i.contains(e.target))}function i1(e,t){return(typeof t.value=="object"&&t.value.closeConditional||f6)(e)}function h6(e,t,n){const r=typeof n.value=="function"?n.value:n.value.handler;t._clickOutside.lastMousedownWasOutside&&s1(e,t,n)&&setTimeout(()=>{i1(e,n)&&r&&r(e)},0)}function dh(e,t){const n=$v(e);t(document),typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&t(n)}const m6={mounted(e,t){const n=s=>h6(s,e,t),r=s=>{e._clickOutside.lastMousedownWasOutside=s1(s,e,t)};dh(e,s=>{s.addEventListener("click",n,!0),s.addEventListener("mousedown",r,!0)}),e._clickOutside||(e._clickOutside={lastMousedownWasOutside:!1}),e._clickOutside[t.instance.$.uid]={onClick:n,onMousedown:r}},unmounted(e,t){e._clickOutside&&(dh(e,n=>{var i;if(!n||!((i=e._clickOutside)!=null&&i[t.instance.$.uid]))return;const{onClick:r,onMousedown:s}=e._clickOutside[t.instance.$.uid];n.removeEventListener("click",r,!0),n.removeEventListener("mousedown",s,!0)}),delete e._clickOutside[t.instance.$.uid])}};function v6(e){const{modelValue:t,color:n,...r}=e;return b(un,{name:"fade-transition",appear:!0},{default:()=>[e.modelValue&&b("div",Te({class:["v-overlay__scrim",e.color.backgroundColorClasses.value],style:e.color.backgroundColorStyles.value},r),null)]})}const ca=Y({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,opacity:[Number,String],noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3},...s6(),...ke(),...In(),...l6(),...KC(),...QC(),...at(),...Dg()},"VOverlay"),fs=fe()({name:"VOverlay",directives:{ClickOutside:m6},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...ca()},emits:{"click:outside":e=>!0,"update:modelValue":e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,t){let{slots:n,attrs:r,emit:s}=t;const i=Ft(e,"modelValue"),o=A({get:()=>i.value,set:we=>{we&&e.disabled||(i.value=we)}}),{teleportTarget:a}=d6(A(()=>e.attach||e.contained)),{themeClasses:l}=lt(e),{rtlClasses:u,isRtl:c}=Vr(),{hasContent:d,onAfterLeave:f}=c6(e,o),h=Xt(A(()=>typeof e.scrim=="string"?e.scrim:null)),{globalTop:v,localTop:m,stackStyles:p}=u6(o,ie(e,"zIndex"),e._disableGlobalStack),{activatorEl:S,activatorRef:y,target:g,targetEl:_,targetRef:T,activatorEvents:E,contentEvents:C,scrimEvents:x}=i6(e,{isActive:o,isTop:m}),{dimensionStyles:P}=Rn(e),O=a6(),{scopeId:R}=ki();se(()=>e.disabled,we=>{we&&(o.value=!1)});const L=N(),$=N(),z=N(),{contentStyles:Q,updateLocation:H}=GC(e,{isRtl:c,contentEl:z,target:g,isActive:o});e6(e,{root:L,contentEl:z,targetEl:_,isActive:o,updateLocation:H});function X(we){s("click:outside",we),e.persistent?me():o.value=!1}function F(we){return o.value&&v.value&&(!e.scrim||we.target===$.value)}Fe&&se(o,we=>{we?window.addEventListener("keydown",Pe):window.removeEventListener("keydown",Pe)},{immediate:!0}),it(()=>{Fe&&window.removeEventListener("keydown",Pe)});function Pe(we){var Ce,M;we.key==="Escape"&&v.value&&(e.persistent?me():(o.value=!1,(Ce=z.value)!=null&&Ce.contains(document.activeElement)&&((M=S.value)==null||M.focus())))}const he=Ag();En(()=>e.closeOnBack,()=>{_S(he,we=>{v.value&&o.value?(we(!1),e.persistent?me():o.value=!1):we()})});const Ee=N();se(()=>o.value&&(e.absolute||e.contained)&&a.value==null,we=>{if(we){const Ce=Cw(L.value);Ce&&Ce!==document.scrollingElement&&(Ee.value=Ce.scrollTop)}});function me(){e.noClickAnimation||z.value&&Ps(z.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:Ll})}function ct(){s("afterEnter")}function tt(){f(),s("afterLeave")}return ye(()=>{var we;return b(ge,null,[(we=n.activator)==null?void 0:we.call(n,{isActive:o.value,targetRef:T,props:Te({ref:y},E.value,e.activatorProps)}),O.value&&d.value&&b(up,{disabled:!a.value,to:a.value},{default:()=>[b("div",Te({class:["v-overlay",{"v-overlay--absolute":e.absolute||e.contained,"v-overlay--active":o.value,"v-overlay--contained":e.contained},l.value,u.value,e.class],style:[p.value,{"--v-overlay-opacity":e.opacity,top:ue(Ee.value)},e.style],ref:L},R,r),[b(v6,Te({color:h,modelValue:o.value&&!!e.scrim,ref:$},x.value),null),b(Yr,{appear:!0,persisted:!0,transition:e.transition,target:g.value,onAfterEnter:ct,onAfterLeave:tt},{default:()=>{var Ce;return[kr(b("div",Te({ref:z,class:["v-overlay__content",e.contentClass],style:[P.value,Q.value]},C.value,e.contentProps),[(Ce=n.default)==null?void 0:Ce.call(n,{isActive:o})]),[[Oc,o.value],[jo("click-outside"),{handler:X,closeConditional:F,include:()=>[S.value]}]])]}})])]})])}),{activatorEl:S,scrimEl:$,target:g,animateClick:me,contentEl:z,globalTop:v,localTop:m,updateLocation:H}}}),Ga=Symbol("Forwarded refs");function Ya(e,t){let n=e;for(;n;){const r=Reflect.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function fu(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r!0,afterLeave:()=>!0},setup(e,t){let{emit:n,slots:r}=t;const s=Ft(e,"modelValue"),{scopeId:i}=ki(),o=N();function a(c){var h,v;const d=c.relatedTarget,f=c.target;if(d!==f&&((h=o.value)!=null&&h.contentEl)&&((v=o.value)!=null&&v.globalTop)&&![document,o.value.contentEl].includes(f)&&!o.value.contentEl.contains(f)){const m=So(o.value.contentEl);if(!m.length)return;const p=m[0],S=m[m.length-1];d===p?S.focus():p.focus()}}Fe&&se(()=>s.value&&e.retainFocus,c=>{c?document.addEventListener("focusin",a):document.removeEventListener("focusin",a)},{immediate:!0});function l(){var c;(c=o.value)!=null&&c.contentEl&&!o.value.contentEl.contains(document.activeElement)&&o.value.contentEl.focus({preventScroll:!0})}function u(){n("afterLeave")}return se(s,async c=>{var d;c||(await Ke(),(d=o.value.activatorEl)==null||d.focus({preventScroll:!0}))}),ye(()=>{const c=fs.filterProps(e),d=Te({"aria-haspopup":"dialog","aria-expanded":String(s.value)},e.activatorProps),f=Te({tabindex:-1},e.contentProps);return b(fs,Te({ref:o,class:["v-dialog",{"v-dialog--fullscreen":e.fullscreen,"v-dialog--scrollable":e.scrollable},e.class],style:e.style},c,{modelValue:s.value,"onUpdate:modelValue":h=>s.value=h,"aria-modal":"true",activatorProps:d,contentProps:f,role:"dialog",onAfterEnter:l,onAfterLeave:u},i),{activator:r.activator,default:function(){for(var h=arguments.length,v=new Array(h),m=0;m{var p;return[(p=r.default)==null?void 0:p.call(r,...v)]}})}})}),fu({},o)}}),y6=ht({__name:"UpdateDialog",setup(e){const t=N(!1),n=N(""),r=()=>{localStorage.setItem("commitSHA",n.value),location.reload()};async function s(){const i=await fetch("/commit.txt?_t="+Date.now());n.value=await i.text();const o=localStorage.getItem("commitSHA");o!==n.value&&(console.log("New version available"),console.table({latestCommit:o,commitSHA:n.value}),t.value=!0)}return rn(()=>{s()}),(i,o)=>(ce(),Me(p6,{modelValue:Z(t),"onUpdate:modelValue":o[2]||(o[2]=a=>Le(t)?t.value=a:null),"max-width":"290"},{default:Re(()=>[b(UC,null,{default:Re(()=>[b(Gg,null,{default:Re(()=>[Ds(" There is an update available! ")]),_:1}),b(Kg,null,{default:Re(()=>[b(ds,{onClick:o[0]||(o[0]=a=>t.value=!1)},{default:Re(()=>[Ds("Cancel")]),_:1}),b(ds,{onClick:o[1]||(o[1]=a=>r())},{default:Re(()=>[Ds("Update")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]))}}),fh={pwaInDevEnvironment:!1,webManifest:{href:"/manifest.webmanifest",useCredentials:!1,linkTag:''}},b6=ht({async setup(){if(fh){const e=N({link:[]});Nc(e);const{webManifest:t}=fh;if(t){const{href:n,useCredentials:r}=t;r?e.value.link.push({rel:"manifest",href:n,crossorigin:"use-credentials"}):e.value.link.push({rel:"manifest",href:n})}}return()=>null}}),Xl=Symbol.for("vuetify:list");function o1(){const e=Se(Xl,{hasPrepend:le(!1),updateHasPrepend:()=>null}),t={hasPrepend:le(!1),updateHasPrepend:n=>{n&&(t.hasPrepend.value=n)}};return Ye(Xl,t),e}function a1(){return Se(Xl,null)}const hu=e=>{const t={activate:n=>{let{id:r,value:s,activated:i}=n;return r=ae(r),e&&!s&&i.size===1&&i.has(r)||(s?i.add(r):i.delete(r)),i},in:(n,r,s)=>{let i=new Set;for(const o of n||[])i=t.activate({id:o,value:!0,activated:new Set(i),children:r,parents:s});return i},out:n=>Array.from(n)};return t},l1=e=>{const t=hu(e);return{activate:r=>{let{activated:s,id:i,...o}=r;i=ae(i);const a=s.has(i)?new Set([i]):new Set;return t.activate({...o,id:i,activated:a})},in:(r,s,i)=>{let o=new Set;return r!=null&&r.length&&(o=t.in(r.slice(0,1),s,i)),o},out:(r,s,i)=>t.out(r,s,i)}},w6=e=>{const t=hu(e);return{activate:r=>{let{id:s,activated:i,children:o,...a}=r;return s=ae(s),o.has(s)?i:t.activate({id:s,activated:i,children:o,...a})},in:t.in,out:t.out}},_6=e=>{const t=l1(e);return{activate:r=>{let{id:s,activated:i,children:o,...a}=r;return s=ae(s),o.has(s)?i:t.activate({id:s,activated:i,children:o,...a})},in:t.in,out:t.out}},S6={open:e=>{let{id:t,value:n,opened:r,parents:s}=e;if(n){const i=new Set;i.add(t);let o=s.get(t);for(;o!=null;)i.add(o),o=s.get(o);return i}else return r.delete(t),r},select:()=>null},c1={open:e=>{let{id:t,value:n,opened:r,parents:s}=e;if(n){let i=s.get(t);for(r.add(t);i!=null&&i!==t;)r.add(i),i=s.get(i);return r}else r.delete(t);return r},select:()=>null},C6={open:c1.open,select:e=>{let{id:t,value:n,opened:r,parents:s}=e;if(!n)return r;const i=[];let o=s.get(t);for(;o!=null;)i.push(o),o=s.get(o);return new Set(i)}},mu=e=>{const t={select:n=>{let{id:r,value:s,selected:i}=n;if(r=ae(r),e&&!s){const o=Array.from(i.entries()).reduce((a,l)=>{let[u,c]=l;return c==="on"&&a.push(u),a},[]);if(o.length===1&&o[0]===r)return i}return i.set(r,s?"on":"off"),i},in:(n,r,s)=>{let i=new Map;for(const o of n||[])i=t.select({id:o,value:!0,selected:new Map(i),children:r,parents:s});return i},out:n=>{const r=[];for(const[s,i]of n.entries())i==="on"&&r.push(s);return r}};return t},u1=e=>{const t=mu(e);return{select:r=>{let{selected:s,id:i,...o}=r;i=ae(i);const a=s.has(i)?new Map([[i,s.get(i)]]):new Map;return t.select({...o,id:i,selected:a})},in:(r,s,i)=>{let o=new Map;return r!=null&&r.length&&(o=t.in(r.slice(0,1),s,i)),o},out:(r,s,i)=>t.out(r,s,i)}},k6=e=>{const t=mu(e);return{select:r=>{let{id:s,selected:i,children:o,...a}=r;return s=ae(s),o.has(s)?i:t.select({id:s,selected:i,children:o,...a})},in:t.in,out:t.out}},E6=e=>{const t=u1(e);return{select:r=>{let{id:s,selected:i,children:o,...a}=r;return s=ae(s),o.has(s)?i:t.select({id:s,selected:i,children:o,...a})},in:t.in,out:t.out}},T6=e=>{const t={select:n=>{let{id:r,value:s,selected:i,children:o,parents:a}=n;r=ae(r);const l=new Map(i),u=[r];for(;u.length;){const d=u.shift();i.set(d,s?"on":"off"),o.has(d)&&u.push(...o.get(d))}let c=a.get(r);for(;c;){const d=o.get(c),f=d.every(v=>i.get(v)==="on"),h=d.every(v=>!i.has(v)||i.get(v)==="off");i.set(c,f?"on":h?"off":"indeterminate"),c=a.get(c)}return e&&!s&&Array.from(i.entries()).reduce((f,h)=>{let[v,m]=h;return m==="on"&&f.push(v),f},[]).length===0?l:i},in:(n,r,s)=>{let i=new Map;for(const o of n||[])i=t.select({id:o,value:!0,selected:new Map(i),children:r,parents:s});return i},out:(n,r)=>{const s=[];for(const[i,o]of n.entries())o==="on"&&!r.has(i)&&s.push(i);return s}};return t},ui=Symbol.for("vuetify:nested"),d1={id:le(),root:{register:()=>null,unregister:()=>null,parents:N(new Map),children:N(new Map),open:()=>null,openOnSelect:()=>null,activate:()=>null,select:()=>null,activatable:N(!1),selectable:N(!1),opened:N(new Set),activated:N(new Set),selected:N(new Map),selectedValues:N([])}},A6=Y({activatable:Boolean,selectable:Boolean,activeStrategy:[String,Function],selectStrategy:[String,Function],openStrategy:[String,Object],opened:Array,activated:Array,selected:Array,mandatory:Boolean},"nested"),x6=e=>{let t=!1;const n=N(new Map),r=N(new Map),s=Ft(e,"opened",e.opened,h=>new Set(h),h=>[...h.values()]),i=A(()=>{if(typeof e.activeStrategy=="object")return e.activeStrategy;switch(e.activeStrategy){case"leaf":return w6(e.mandatory);case"single-leaf":return _6(e.mandatory);case"independent":return hu(e.mandatory);case"single-independent":default:return l1(e.mandatory)}}),o=A(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;switch(e.selectStrategy){case"single-leaf":return E6(e.mandatory);case"leaf":return k6(e.mandatory);case"independent":return mu(e.mandatory);case"single-independent":return u1(e.mandatory);case"classic":default:return T6(e.mandatory)}}),a=A(()=>{if(typeof e.openStrategy=="object")return e.openStrategy;switch(e.openStrategy){case"list":return C6;case"single":return S6;case"multiple":default:return c1}}),l=Ft(e,"activated",e.activated,h=>i.value.in(h,n.value,r.value),h=>i.value.out(h,n.value,r.value)),u=Ft(e,"selected",e.selected,h=>o.value.in(h,n.value,r.value),h=>o.value.out(h,n.value,r.value));it(()=>{t=!0});function c(h){const v=[];let m=h;for(;m!=null;)v.unshift(m),m=r.value.get(m);return v}const d=Ze("nested"),f={id:le(),root:{opened:s,activatable:ie(e,"activatable"),selectable:ie(e,"selectable"),activated:l,selected:u,selectedValues:A(()=>{const h=[];for(const[v,m]of u.value.entries())m==="on"&&h.push(v);return h}),register:(h,v,m)=>{v&&h!==v&&r.value.set(h,v),m&&n.value.set(h,[]),v!=null&&n.value.set(v,[...n.value.get(v)||[],h])},unregister:h=>{if(t)return;n.value.delete(h);const v=r.value.get(h);if(v){const m=n.value.get(v)??[];n.value.set(v,m.filter(p=>p!==h))}r.value.delete(h),s.value.delete(h)},open:(h,v,m)=>{d.emit("click:open",{id:h,value:v,path:c(h),event:m});const p=a.value.open({id:h,value:v,opened:new Set(s.value),children:n.value,parents:r.value,event:m});p&&(s.value=p)},openOnSelect:(h,v,m)=>{const p=a.value.select({id:h,value:v,selected:new Map(u.value),opened:new Set(s.value),children:n.value,parents:r.value,event:m});p&&(s.value=p)},select:(h,v,m)=>{d.emit("click:select",{id:h,value:v,path:c(h),event:m});const p=o.value.select({id:h,value:v,selected:new Map(u.value),children:n.value,parents:r.value,event:m});p&&(u.value=p),f.root.openOnSelect(h,v,m)},activate:(h,v,m)=>{if(!e.activatable)return f.root.select(h,!0,m);d.emit("click:activate",{id:h,value:v,path:c(h),event:m});const p=i.value.activate({id:h,value:v,activated:new Set(l.value),children:n.value,parents:r.value,event:m});p&&(l.value=p)},children:n,parents:r}};return Ye(ui,f),f.root},f1=(e,t)=>{const n=Se(ui,d1),r=Symbol(Rr()),s=A(()=>e.value!==void 0?e.value:r),i={...n,id:s,open:(o,a)=>n.root.open(s.value,o,a),openOnSelect:(o,a)=>n.root.openOnSelect(s.value,o,a),isOpen:A(()=>n.root.opened.value.has(s.value)),parent:A(()=>n.root.parents.value.get(s.value)),activate:(o,a)=>n.root.activate(s.value,o,a),isActivated:A(()=>n.root.activated.value.has(ae(s.value))),select:(o,a)=>n.root.select(s.value,o,a),isSelected:A(()=>n.root.selected.value.get(ae(s.value))==="on"),isIndeterminate:A(()=>n.root.selected.value.get(s.value)==="indeterminate"),isLeaf:A(()=>!n.root.children.value.get(s.value)),isGroupActivator:n.isGroupActivator};return!n.isGroupActivator&&n.root.register(s.value,n.id.value,t),it(()=>{!n.isGroupActivator&&n.root.unregister(s.value)}),t&&Ye(ui,i),i},L6=()=>{const e=Se(ui,d1);Ye(ui,{...e,isGroupActivator:!0})};function ua(){const e=le(!1);return rn(()=>{window.requestAnimationFrame(()=>{e.value=!0})}),{ssrBootStyles:A(()=>e.value?void 0:{transition:"none !important"}),isBooted:gs(e)}}const P6=ys({name:"VListGroupActivator",setup(e,t){let{slots:n}=t;return L6(),()=>{var r;return(r=n.default)==null?void 0:r.call(n)}}}),O6=Y({activeColor:String,baseColor:String,color:String,collapseIcon:{type:et,default:"$collapse"},expandIcon:{type:et,default:"$expand"},prependIcon:et,appendIcon:et,fluid:Boolean,subgroup:Boolean,title:String,value:null,...ke(),...We()},"VListGroup"),Ql=fe()({name:"VListGroup",props:O6(),setup(e,t){let{slots:n}=t;const{isOpen:r,open:s,id:i}=f1(ie(e,"value"),!0),o=A(()=>`v-list-group--id-${String(i.value)}`),a=a1(),{isBooted:l}=ua();function u(h){s(!r.value,h)}const c=A(()=>({onClick:u,class:"v-list-group__header",id:o.value})),d=A(()=>r.value?e.collapseIcon:e.expandIcon),f=A(()=>({VListItem:{active:r.value,activeColor:e.activeColor,baseColor:e.baseColor,color:e.color,prependIcon:e.prependIcon||e.subgroup&&d.value,appendIcon:e.appendIcon||!e.subgroup&&d.value,title:e.title,value:e.value}}));return ye(()=>b(e.tag,{class:["v-list-group",{"v-list-group--prepend":a==null?void 0:a.hasPrepend.value,"v-list-group--fluid":e.fluid,"v-list-group--subgroup":e.subgroup,"v-list-group--open":r.value},e.class],style:e.style},{default:()=>[n.activator&&b(ze,{defaults:f.value},{default:()=>[b(P6,null,{default:()=>[n.activator({props:c.value,isOpen:r.value})]})]}),b(Yr,{transition:{component:Xg},disabled:!l.value},{default:()=>{var h;return[kr(b("div",{class:"v-list-group__items",role:"group","aria-labelledby":o.value},[(h=n.default)==null?void 0:h.call(n)]),[[Oc,r.value]])]}})]})),{isOpen:r}}}),I6=Y({opacity:[Number,String],...ke(),...We()},"VListItemSubtitle"),R6=fe()({name:"VListItemSubtitle",props:I6(),setup(e,t){let{slots:n}=t;return ye(()=>b(e.tag,{class:["v-list-item-subtitle",e.class],style:[{"--v-list-item-subtitle-opacity":e.opacity},e.style]},n)),{}}}),M6=Zo("v-list-item-title"),$6=Y({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:et,baseColor:String,disabled:Boolean,lines:String,link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:et,ripple:{type:[Boolean,Object],default:!0},slim:Boolean,subtitle:[String,Number],title:[String,Number],value:null,onClick:Pd(),onClickOnce:Pd(),...nr(),...ke(),...Ln(),...In(),...Pn(),...Ut(),...aa(),...We(),...at(),...$r({variant:"text"})},"VListItem"),Gn=fe()({name:"VListItem",directives:{Ripple:lu},props:$6(),emits:{click:e=>!0},setup(e,t){let{attrs:n,slots:r,emit:s}=t;const i=oa(e,n),o=A(()=>e.value===void 0?i.href.value:e.value),{activate:a,isActivated:l,select:u,isSelected:c,isIndeterminate:d,isGroupActivator:f,root:h,parent:v,openOnSelect:m}=f1(o,!1),p=a1(),S=A(()=>{var he;return e.active!==!1&&(e.active||((he=i.isActive)==null?void 0:he.value)||(h.activatable.value?l.value:c.value))}),y=A(()=>e.link!==!1&&i.isLink.value),g=A(()=>!e.disabled&&e.link!==!1&&(e.link||i.isClickable.value||!!p&&(h.selectable.value||h.activatable.value||e.value!=null))),_=A(()=>e.rounded||e.nav),T=A(()=>e.color??e.activeColor),E=A(()=>({color:S.value?T.value??e.baseColor:e.baseColor,variant:e.variant}));se(()=>{var he;return(he=i.isActive)==null?void 0:he.value},he=>{he&&v.value!=null&&h.open(v.value,!0),he&&m(he)},{immediate:!0});const{themeClasses:C}=lt(e),{borderClasses:x}=rr(e),{colorClasses:P,colorStyles:O,variantClasses:R}=Si(E),{densityClasses:L}=sr(e),{dimensionStyles:$}=Rn(e),{elevationClasses:z}=On(e),{roundedClasses:Q}=zt(_),H=A(()=>e.lines?`v-list-item--${e.lines}-line`:void 0),X=A(()=>({isActive:S.value,select:u,isSelected:c.value,isIndeterminate:d.value}));function F(he){var Ee;s("click",he),!(f||!g.value)&&((Ee=i.navigate)==null||Ee.call(i,he),h.activatable.value?a(!l.value,he):(h.selectable.value||e.value!=null)&&u(!c.value,he))}function Pe(he){(he.key==="Enter"||he.key===" ")&&(he.preventDefault(),F(he))}return ye(()=>{const he=y.value?"a":e.tag,Ee=r.title||e.title!=null,me=r.subtitle||e.subtitle!=null,ct=!!(e.appendAvatar||e.appendIcon),tt=!!(ct||r.append),we=!!(e.prependAvatar||e.prependIcon),Ce=!!(we||r.prepend);return p==null||p.updateHasPrepend(Ce),e.activeColor&&rw("active-color",["color","base-color"]),kr(b(he,{class:["v-list-item",{"v-list-item--active":S.value,"v-list-item--disabled":e.disabled,"v-list-item--link":g.value,"v-list-item--nav":e.nav,"v-list-item--prepend":!Ce&&(p==null?void 0:p.hasPrepend.value),"v-list-item--slim":e.slim,[`${e.activeClass}`]:e.activeClass&&S.value},C.value,x.value,P.value,L.value,z.value,H.value,Q.value,R.value,e.class],style:[O.value,$.value,e.style],href:i.href.value,tabindex:g.value?p?-2:0:void 0,onClick:F,onKeydown:g.value&&!y.value&&Pe},{default:()=>{var M;return[_i(g.value||S.value,"v-list-item"),Ce&&b("div",{key:"prepend",class:"v-list-item__prepend"},[r.prepend?b(ze,{key:"prepend-defaults",disabled:!we,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon},VListItemAction:{start:!0}}},{default:()=>{var W;return[(W=r.prepend)==null?void 0:W.call(r,X.value)]}}):b(ge,null,[e.prependAvatar&&b(ci,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&b(Qt,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)]),b("div",{class:"v-list-item__spacer"},null)]),b("div",{class:"v-list-item__content","data-no-activator":""},[Ee&&b(M6,{key:"title"},{default:()=>{var W;return[((W=r.title)==null?void 0:W.call(r,{title:e.title}))??e.title]}}),me&&b(R6,{key:"subtitle"},{default:()=>{var W;return[((W=r.subtitle)==null?void 0:W.call(r,{subtitle:e.subtitle}))??e.subtitle]}}),(M=r.default)==null?void 0:M.call(r,X.value)]),tt&&b("div",{key:"append",class:"v-list-item__append"},[r.append?b(ze,{key:"append-defaults",disabled:!ct,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon},VListItemAction:{end:!0}}},{default:()=>{var W;return[(W=r.append)==null?void 0:W.call(r,X.value)]}}):b(ge,null,[e.appendIcon&&b(Qt,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&b(ci,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)]),b("div",{class:"v-list-item__spacer"},null)])]}}),[[jo("ripple"),g.value&&e.ripple]])}),{isGroupActivator:f,isSelected:c,list:p,select:u}}}),V6=Y({color:String,inset:Boolean,sticky:Boolean,title:String,...ke(),...We()},"VListSubheader"),H6=fe()({name:"VListSubheader",props:V6(),setup(e,t){let{slots:n}=t;const{textColorClasses:r,textColorStyles:s}=Xn(ie(e,"color"));return ye(()=>{const i=!!(n.default||e.title);return b(e.tag,{class:["v-list-subheader",{"v-list-subheader--inset":e.inset,"v-list-subheader--sticky":e.sticky},r.value,e.class],style:[{textColorStyles:s},e.style]},{default:()=>{var o;return[i&&b("div",{class:"v-list-subheader__text"},[((o=n.default)==null?void 0:o.call(n))??e.title])]}})}),{}}}),D6=Y({color:String,inset:Boolean,length:[Number,String],opacity:[Number,String],thickness:[Number,String],vertical:Boolean,...ke(),...at()},"VDivider"),so=fe()({name:"VDivider",props:D6(),setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:s}=lt(e),{textColorClasses:i,textColorStyles:o}=Xn(ie(e,"color")),a=A(()=>{const l={};return e.length&&(l[e.vertical?"maxHeight":"maxWidth"]=ue(e.length)),e.thickness&&(l[e.vertical?"borderRightWidth":"borderTopWidth"]=ue(e.thickness)),l});return ye(()=>{const l=b("hr",{class:[{"v-divider":!0,"v-divider--inset":e.inset,"v-divider--vertical":e.vertical},s.value,i.value,e.class],style:[a.value,o.value,{"--v-border-opacity":e.opacity},e.style],"aria-orientation":!n.role||n.role==="separator"?e.vertical?"vertical":"horizontal":void 0,role:`${n.role||"separator"}`},null);return r.default?b("div",{class:["v-divider__wrapper",{"v-divider__wrapper--vertical":e.vertical,"v-divider__wrapper--inset":e.inset}]},[l,b("div",{class:"v-divider__content"},[r.default()]),l]):l}),{}}}),j6=Y({items:Array,returnObject:Boolean},"VListChildren"),h1=fe()({name:"VListChildren",props:j6(),setup(e,t){let{slots:n}=t;return o1(),()=>{var r,s;return((r=n.default)==null?void 0:r.call(n))??((s=e.items)==null?void 0:s.map(i=>{var f,h;let{children:o,props:a,type:l,raw:u}=i;if(l==="divider")return((f=n.divider)==null?void 0:f.call(n,{props:a}))??b(so,a,null);if(l==="subheader")return((h=n.subheader)==null?void 0:h.call(n,{props:a}))??b(H6,a,null);const c={subtitle:n.subtitle?v=>{var m;return(m=n.subtitle)==null?void 0:m.call(n,{...v,item:u})}:void 0,prepend:n.prepend?v=>{var m;return(m=n.prepend)==null?void 0:m.call(n,{...v,item:u})}:void 0,append:n.append?v=>{var m;return(m=n.append)==null?void 0:m.call(n,{...v,item:u})}:void 0,title:n.title?v=>{var m;return(m=n.title)==null?void 0:m.call(n,{...v,item:u})}:void 0},d=Ql.filterProps(a);return o?b(Ql,Te({value:a==null?void 0:a.value},d),{activator:v=>{let{props:m}=v;const p={...a,...m,value:e.returnObject?u:a.value};return n.header?n.header({props:p}):b(Gn,p,c)},default:()=>b(h1,{items:o},n)}):n.item?n.item({props:a}):b(Gn,Te(a,{value:e.returnObject?u:a.value}),c)}))}}}),N6=Y({items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemChildren:{type:[Boolean,String,Array,Function],default:"children"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},returnObject:Boolean,valueComparator:{type:Function,default:Jo}},"list-items");function ec(e,t){const n=wn(t,e.itemTitle,t),r=wn(t,e.itemValue,n),s=wn(t,e.itemChildren),i=e.itemProps===!0?typeof t=="object"&&t!=null&&!Array.isArray(t)?"children"in t?yi(t,["children"]):t:void 0:wn(t,e.itemProps),o={title:n,value:r,...i};return{title:String(o.title??""),value:o.value,props:o,children:Array.isArray(s)?m1(e,s):void 0,raw:t}}function m1(e,t){const n=[];for(const r of t)n.push(ec(e,r));return n}function Z7(e){const t=A(()=>m1(e,e.items)),n=A(()=>t.value.some(i=>i.value===null));function r(i){return n.value||(i=i.filter(o=>o!==null)),i.map(o=>e.returnObject&&typeof o=="string"?ec(e,o):t.value.find(a=>e.valueComparator(o,a.value))||ec(e,o))}function s(i){return e.returnObject?i.map(o=>{let{raw:a}=o;return a}):i.map(o=>{let{value:a}=o;return a})}return{items:t,transformIn:r,transformOut:s}}function B6(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function F6(e,t){const n=wn(t,e.itemType,"item"),r=B6(t)?t:wn(t,e.itemTitle),s=wn(t,e.itemValue,void 0),i=wn(t,e.itemChildren),o=e.itemProps===!0?yi(t,["children"]):wn(t,e.itemProps),a={title:r,value:s,...o};return{type:n,title:a.title,value:a.value,props:a,children:n==="item"&&i?v1(e,i):void 0,raw:t}}function v1(e,t){const n=[];for(const r of t)n.push(F6(e,r));return n}function U6(e){return{items:A(()=>v1(e,e.items))}}const z6=Y({baseColor:String,activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,expandIcon:String,collapseIcon:String,lines:{type:[Boolean,String],default:"one"},slim:Boolean,nav:Boolean,...A6({selectStrategy:"single-leaf",openStrategy:"list"}),...nr(),...ke(),...Ln(),...In(),...Pn(),itemType:{type:String,default:"type"},...N6(),...Ut(),...We(),...at(),...$r({variant:"text"})},"VList"),tc=fe()({name:"VList",props:z6(),emits:{"update:selected":e=>!0,"update:activated":e=>!0,"update:opened":e=>!0,"click:open":e=>!0,"click:activate":e=>!0,"click:select":e=>!0},setup(e,t){let{slots:n}=t;const{items:r}=U6(e),{themeClasses:s}=lt(e),{backgroundColorClasses:i,backgroundColorStyles:o}=Xt(ie(e,"bgColor")),{borderClasses:a}=rr(e),{densityClasses:l}=sr(e),{dimensionStyles:u}=Rn(e),{elevationClasses:c}=On(e),{roundedClasses:d}=zt(e),{children:f,open:h,parents:v,select:m}=x6(e),p=A(()=>e.lines?`v-list--${e.lines}-line`:void 0),S=ie(e,"activeColor"),y=ie(e,"baseColor"),g=ie(e,"color");o1(),Ir({VListGroup:{activeColor:S,baseColor:y,color:g,expandIcon:ie(e,"expandIcon"),collapseIcon:ie(e,"collapseIcon")},VListItem:{activeClass:ie(e,"activeClass"),activeColor:S,baseColor:y,color:g,density:ie(e,"density"),disabled:ie(e,"disabled"),lines:ie(e,"lines"),nav:ie(e,"nav"),slim:ie(e,"slim"),variant:ie(e,"variant")}});const _=le(!1),T=N();function E(L){_.value=!0}function C(L){_.value=!1}function x(L){var $;!_.value&&!(L.relatedTarget&&(($=T.value)!=null&&$.contains(L.relatedTarget)))&&R()}function P(L){const $=L.target;if(!(!T.value||["INPUT","TEXTAREA"].includes($.tagName))){if(L.key==="ArrowDown")R("next");else if(L.key==="ArrowUp")R("prev");else if(L.key==="Home")R("first");else if(L.key==="End")R("last");else return;L.preventDefault()}}function O(L){_.value=!0}function R(L){if(T.value)return Co(T.value,L)}return ye(()=>b(e.tag,{ref:T,class:["v-list",{"v-list--disabled":e.disabled,"v-list--nav":e.nav,"v-list--slim":e.slim},s.value,i.value,a.value,l.value,c.value,p.value,d.value,e.class],style:[o.value,u.value,e.style],tabindex:e.disabled||_.value?-1:0,role:"listbox","aria-activedescendant":void 0,onFocusin:E,onFocusout:C,onFocus:x,onKeydown:P,onMousedown:O},{default:()=>[b(h1,{items:r.value,returnObject:e.returnObject},n)]})),{open:h,select:m,focus:R,children:f,parents:v}}}),g1=ht({__name:"AppDrawerItem",props:{level:{default:0},item:{}},setup(e){const t=A(()=>{var o;return(o=e.item.children)==null?void 0:o.filter(a=>{var l;return(l=a.meta)==null?void 0:l.icon}).sort((a,l)=>{var u,c;return(((u=a.meta)==null?void 0:u.drawerIndex)??99)-(((c=l.meta)==null?void 0:c.drawerIndex)??98)})}),n=A(()=>{var o;return((o=t.value)==null?void 0:o.length)||0}),r=A(()=>!e.item.children||n.value<=1),s=ie(()=>{var o;return(o=e.item.meta)==null?void 0:o.title}),i=ie(()=>{var o;return(o=e.item.meta)==null?void 0:o.icon});return(o,a)=>{var u;const l=g1;return Z(r)&&Z(i)?(ce(),Me(Gn,{key:0,to:{name:o.item.name||((u=Z(t))==null?void 0:u[0].name)},"prepend-icon":Z(i),"active-class":"text-primary",title:Z(s)},null,8,["to","prepend-icon","title"])):Z(i)?(ce(),Me(Ql,{key:1,"prepend-icon":Z(i),color:"primary"},{activator:Re(({props:c})=>[b(Gn,Te({title:Z(s)},c),null,16,["title"])]),default:Re(()=>[(ce(!0),Qe(ge,null,Xs(Z(t),c=>(ce(),Me(l,{key:c.name,item:c,level:o.level+1},null,8,["item","level"]))),128))]),_:1},8,["prepend-icon"])):bt("",!0)}}}),Ei=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},W6={},Ti=e=>(p0("data-v-f251bb1f"),e=e(),y0(),e),q6={version:"1.0",viewBox:"0 0 4000.000000 4000.000000"},K6=km('',1),G6={key:0,id:"no-logo"},Y6=Ti(()=>tn("path",{d:"m 2555,887.1 c -482,2.5 -949.8,4.7 -1246.5,5.9 -285.4,1.2 -261.3,0.5 -301,8.1 -103.1,19.6 -165.1,60 -208,135.4 -14.1,24.8 -24.7,48.5 -49.4,111.5 -16.1,40.8 -26.5,65.5 -38.1,90.1 -34.9,74.1 -76.4,134.3 -133.4,193.6 l -9.8,10.3 6.3,2.7 c 43.9,18.6 90.8,54.1 127,96 96.1,111.3 153.7,299.9 161.9,530.3 0.6,16.2 1,35.6 0.8,43 l -0.2,13.5 567.9,0.6 c 312.4,0.3 821.1,0.7 1130.4,0.8 l 562.4,0.1 -0.7,-33.8 c -0.4,-18.5 -1.1,-46.3 -1.5,-61.7 -3.5,-121.8 15.1,-217.5 59.9,-308 31,-62.9 70.5,-116.3 126.6,-171.5 33.7,-33.2 67.6,-61.3 108.4,-90 5.8,-4.1 10.7,-7.5 10.9,-7.6 0.2,-0.2 -5.3,-6.3 -12.2,-13.6 -36.9,-39.1 -61.8,-74.9 -84.7,-121.3 -18.8,-38.3 -30,-68.5 -53.9,-146 -23,-74.9 -34.7,-105 -52.9,-137 -41.1,-72.2 -109.2,-116.8 -212.3,-138.9 -37.8,-8.1 -88.1,-14.8 -109.3,-14.5 -5.5,0.1 -162.4,1 -348.6,2 z",id:"path1",class:"loading"},null,-1)),J6=Ti(()=>tn("path",{d:"m 455,1535.6 c -25.4,3.2 -47.1,9.4 -65.5,18.7 -22.4,11.2 -48.1,27.9 -70.1,45.4 -13.5,10.8 -40.5,37.6 -50.6,50.3 -18.4,23.1 -34.6,52.1 -42.7,76.7 -16.8,50.6 -14.3,105.7 7.4,161.8 15.6,40.6 38.8,79.4 72.4,121.5 19.4,24.3 28.5,34.4 54.2,60.6 l 17.9,18.1 -2.1,7.4 c -4.2,15.2 -16.9,67.1 -21.3,86.9 -16.6,75.7 -32.3,139.3598 -32.3,209.5 V 2533 c 0,118.6394 45.2,203.8 105.1,265.7 51.1,52.9 119.2,84.9 193.8,91.3 17,1.5 2731.5,1.5 2750.3,0 105.2,-8.1 182.1,-46.7 236.1,-118.6 41.7,-55.5 67.7,-130.6 77.8,-224.9 3.3,-30.5 4,-47.8 4,-90 0,-65.5 -4.8,-123.9 -16,-194.4 -9,-56.5 -24.7,-129.6 -37.7,-174.6 -1.9,-6.6 -3.7,-12.8 -3.9,-13.8 -0.2,-1.5 1.9,-2.8 10.6,-6.7 21.4,-9.6 37.8,-21.1 56.1,-39.5 22.9,-22.8 41.1,-50 55.6,-83 35.1,-80.1 39.2,-175.4 10.8,-251.2 -30.8,-82.3 -94.8,-135.3 -184.8,-153.2 -36.5,-7.3 -78.2,-7.3 -112,0 -32.8,7.1 -62.5,20.5 -90.5,40.8 -12.8,9.2 -36.2,31.2 -47.5,44.5 -50.7,60.1 -88.2,148.9 -111,263.3 -17,84.8 -25.1,172.4 -25.1,270.5 v 40.8 h -29.2 c -16.1,0 -266,-1.1 -555.3,-2.5 -555.8,-2.6 -1316.3,-6 -1614,-7.1 l -178.1,-0.7 -1.7,-35.1 c -10.6,-213.5 -47.4,-373 -110.4,-478.6 -46,-77 -106.8,-124.2 -177.7,-138 -21.7,-4.2 -51.1,-5.2 -72.6,-2.4 z",id:"path3",class:"loading"},null,-1)),Z6=Ti(()=>tn("path",{d:"m 769,3026.7 v 48.8 l 3.3,1.9 c 36.7,21 73.2,33.3 117.7,39.3 19.1,2.6 71.1,2.5 92,-0.1 31.8,-3.9 66.9,-11.6 96,-21.1 15.8,-5.2 39.7,-14.3 47.3,-18.1 l 4.7,-2.4 V 3026.5 2978 H 949.5 769 Z",id:"path4"},null,-1)),X6=Ti(()=>tn("path",{d:"m 2885,3015.8 c 0,17 0.3,37.1 0.7,44.7 l 0.6,13.8 10.1,4.7 c 81.8,38.3 162.3,50.6 240.6,36.9 38,-6.6 78.2,-21.6 107.8,-40.2 l 8.2,-5.2 v -42.7 -42.8 h -184 -184 z",id:"path5"},null,-1)),Q6=[Y6,J6,Z6,X6],ek=Ti(()=>tn("filter",{id:"blur"},[tn("feGaussianBlur",{stdDeviation:"40"})],-1));function tk(e,t){return ce(),Qe("svg",q6,[K6,e.loading||e.routeLoading?(ce(),Qe("g",G6,Q6)):bt("",!0),ek])}const nk=Ei(W6,[["render",tk],["__scopeId","data-v-f251bb1f"]]),vu=Zo("v-spacer","div","VSpacer");function rk(e){let{rootEl:t,isSticky:n,layoutItemStyles:r}=e;const s=le(!1),i=le(0),o=A(()=>{const u=typeof s.value=="boolean"?"top":s.value;return[n.value?{top:"auto",bottom:"auto",height:void 0}:void 0,s.value?{[u]:ue(i.value)}:{top:r.value.top}]});rn(()=>{se(n,u=>{u?window.addEventListener("scroll",l,{passive:!0}):window.removeEventListener("scroll",l)},{immediate:!0})}),it(()=>{window.removeEventListener("scroll",l)});let a=0;function l(){const u=a>window.scrollY?"up":"down",c=t.value.getBoundingClientRect(),d=parseFloat(r.value.top??0),f=window.scrollY-Math.max(0,i.value-d),h=c.height+Math.max(i.value,d)-window.scrollY-window.innerHeight,v=parseFloat(getComputedStyle(t.value).getPropertyValue("--v-body-scroll-y"))||0;c.height0;n--){if(e[n].t===e[n-1].t)continue;const r=hh(t),s=(e[n].d-e[n-1].d)/(e[n].t-e[n-1].t);t+=(s-r)*Math.abs(s),n===e.length-1&&(t*=.5)}return hh(t)*1e3}function ok(){const e={};function t(s){Array.from(s.changedTouches).forEach(i=>{(e[i.identifier]??(e[i.identifier]=new F2(ik))).push([s.timeStamp,i])})}function n(s){Array.from(s.changedTouches).forEach(i=>{delete e[i.identifier]})}function r(s){var u;const i=(u=e[s])==null?void 0:u.values().reverse();if(!i)throw new Error(`No samples for touch id ${s}`);const o=i[0],a=[],l=[];for(const c of i){if(o[0]-c[0]>sk)break;a.push({t:c[0],d:c[1].clientX}),l.push({t:c[0],d:c[1].clientY})}return{x:mh(a),y:mh(l),get direction(){const{x:c,y:d}=this,[f,h]=[Math.abs(c),Math.abs(d)];return f>h&&c>=0?"right":f>h&&c<=0?"left":h>f&&d>=0?"down":h>f&&d<=0?"up":ak()}}}return{addMovement:t,endTouch:n,getVelocity:r}}function ak(){throw new Error}function lk(e){let{el:t,isActive:n,isTemporary:r,width:s,touchless:i,position:o}=e;rn(()=>{window.addEventListener("touchstart",y,{passive:!0}),window.addEventListener("touchmove",g,{passive:!1}),window.addEventListener("touchend",_,{passive:!0})}),it(()=>{window.removeEventListener("touchstart",y),window.removeEventListener("touchmove",g),window.removeEventListener("touchend",_)});const a=A(()=>["left","right"].includes(o.value)),{addMovement:l,endTouch:u,getVelocity:c}=ok();let d=!1;const f=le(!1),h=le(0),v=le(0);let m;function p(E,C){return(o.value==="left"?E:o.value==="right"?document.documentElement.clientWidth-E:o.value==="top"?E:o.value==="bottom"?document.documentElement.clientHeight-E:Wr())-(C?s.value:0)}function S(E){let C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const x=o.value==="left"?(E-v.value)/s.value:o.value==="right"?(document.documentElement.clientWidth-E-v.value)/s.value:o.value==="top"?(E-v.value)/s.value:o.value==="bottom"?(document.documentElement.clientHeight-E-v.value)/s.value:Wr();return C?Math.max(0,Math.min(1,x)):x}function y(E){if(i.value)return;const C=E.changedTouches[0].clientX,x=E.changedTouches[0].clientY,P=25,O=o.value==="left"?Cdocument.documentElement.clientWidth-P:o.value==="top"?xdocument.documentElement.clientHeight-P:Wr(),R=n.value&&(o.value==="left"?Cdocument.documentElement.clientWidth-s.value:o.value==="top"?xdocument.documentElement.clientHeight-s.value:Wr());(O||R||n.value&&r.value)&&(m=[C,x],v.value=p(a.value?C:x,n.value),h.value=S(a.value?C:x),d=v.value>-20&&v.value<80,u(E),l(E))}function g(E){const C=E.changedTouches[0].clientX,x=E.changedTouches[0].clientY;if(d){if(!E.cancelable){d=!1;return}const O=Math.abs(C-m[0]),R=Math.abs(x-m[1]);(a.value?O>R&&O>3:R>O&&R>3)?(f.value=!0,d=!1):(a.value?R:O)>3&&(d=!1)}if(!f.value)return;E.preventDefault(),l(E);const P=S(a.value?C:x,!1);h.value=Math.max(0,Math.min(1,P)),P>1?v.value=p(a.value?C:x,!0):P<0&&(v.value=p(a.value?C:x,!1))}function _(E){if(d=!1,!f.value)return;l(E),f.value=!1;const C=c(E.changedTouches[0].identifier),x=Math.abs(C.x),P=Math.abs(C.y);(a.value?x>P&&x>400:P>x&&P>3)?n.value=C.direction===({left:"right",right:"left",top:"down",bottom:"up"}[o.value]||Wr()):n.value=h.value>.5}const T=A(()=>f.value?{transform:o.value==="left"?`translateX(calc(-100% + ${h.value*s.value}px))`:o.value==="right"?`translateX(calc(100% - ${h.value*s.value}px))`:o.value==="top"?`translateY(calc(-100% + ${h.value*s.value}px))`:o.value==="bottom"?`translateY(calc(100% - ${h.value*s.value}px))`:Wr(),transition:"none"}:void 0);return En(f,()=>{var x,P;const E=((x=t.value)==null?void 0:x.style.transform)??null,C=((P=t.value)==null?void 0:P.style.transition)??null;nn(()=>{var O,R,L,$;(R=t.value)==null||R.style.setProperty("transform",((O=T.value)==null?void 0:O.transform)||"none"),($=t.value)==null||$.style.setProperty("transition",((L=T.value)==null?void 0:L.transition)||null)}),pt(()=>{var O,R;(O=t.value)==null||O.style.setProperty("transform",E),(R=t.value)==null||R.style.setProperty("transition",C)})}),{isDragging:f,dragProgress:h,dragStyles:T}}function Wr(){throw new Error}const ck=["start","end","left","right","top","bottom"],uk=Y({color:String,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,modelValue:{type:Boolean,default:null},permanent:Boolean,rail:{type:Boolean,default:null},railWidth:{type:[Number,String],default:56},scrim:{type:[Boolean,String],default:!0},image:String,temporary:Boolean,persistent:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},location:{type:String,default:"start",validator:e=>ck.includes(e)},sticky:Boolean,...nr(),...ke(),...t1(),...MS(),...Pn(),...uu(),...Ut(),...We({tag:"nav"}),...at()},"VNavigationDrawer"),dk=fe()({name:"VNavigationDrawer",props:uk(),emits:{"update:modelValue":e=>!0,"update:rail":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:s}=t;const{isRtl:i}=Vr(),{themeClasses:o}=lt(e),{borderClasses:a}=rr(e),{backgroundColorClasses:l,backgroundColorStyles:u}=Xt(ie(e,"color")),{elevationClasses:c}=On(e),{displayClasses:d,mobile:f}=la(e),{roundedClasses:h}=zt(e),v=Ag(),m=Ft(e,"modelValue",null,me=>!!me),{ssrBootStyles:p}=ua(),{scopeId:S}=ki(),y=N(),g=le(!1),{runOpenDelay:_,runCloseDelay:T}=n1(e,me=>{g.value=me}),E=A(()=>e.rail&&e.expandOnHover&&g.value?Number(e.width):Number(e.rail?e.railWidth:e.width)),C=A(()=>Al(e.location,i.value)),x=A(()=>e.persistent),P=A(()=>!e.permanent&&(f.value||e.temporary)),O=A(()=>e.sticky&&!P.value&&C.value!=="bottom");En(()=>e.expandOnHover&&e.rail!=null,()=>{se(g,me=>r("update:rail",!me))}),En(()=>!e.disableResizeWatcher,()=>{se(P,me=>!e.permanent&&Ke(()=>m.value=!me))}),En(()=>!e.disableRouteWatcher&&!!v,()=>{se(v.currentRoute,()=>P.value&&(m.value=!1))}),se(()=>e.permanent,me=>{me&&(m.value=!0)}),e.modelValue==null&&!P.value&&(m.value=e.permanent||!f.value);const{isDragging:R,dragProgress:L}=lk({el:y,isActive:m,isTemporary:P,width:E,touchless:ie(e,"touchless"),position:C}),$=A(()=>{const me=P.value?0:e.rail&&e.expandOnHover?Number(e.railWidth):E.value;return R.value?me*L.value:me}),z=A(()=>["top","bottom"].includes(e.location)?0:E.value),{layoutItemStyles:Q,layoutItemScrimStyles:H,layoutIsReady:X}=du({id:e.name,order:A(()=>parseInt(e.order,10)),position:C,layoutSize:$,elementSize:z,active:A(()=>m.value||R.value),disableTransitions:A(()=>R.value),absolute:A(()=>e.absolute||O.value&&typeof F.value!="string")}),{isStuck:F,stickyStyles:Pe}=rk({rootEl:y,isSticky:O,layoutItemStyles:Q}),he=Xt(A(()=>typeof e.scrim=="string"?e.scrim:null)),Ee=A(()=>({...R.value?{opacity:L.value*.2,transition:"none"}:void 0,...H.value}));return Ir({VList:{bgColor:"transparent"}}),ye(()=>{const me=s.image||e.image;return b(ge,null,[b(e.tag,Te({ref:y,onMouseenter:_,onMouseleave:T,class:["v-navigation-drawer",`v-navigation-drawer--${C.value}`,{"v-navigation-drawer--expand-on-hover":e.expandOnHover,"v-navigation-drawer--floating":e.floating,"v-navigation-drawer--is-hovering":g.value,"v-navigation-drawer--rail":e.rail,"v-navigation-drawer--temporary":P.value,"v-navigation-drawer--persistent":x.value,"v-navigation-drawer--active":m.value,"v-navigation-drawer--sticky":O.value},o.value,l.value,a.value,d.value,c.value,h.value,e.class],style:[u.value,Q.value,p.value,Pe.value,e.style,["top","bottom"].includes(C.value)?{height:"auto"}:{}]},S,n),{default:()=>{var ct,tt,we;return[me&&b("div",{key:"image",class:"v-navigation-drawer__img"},[s.image?b(ze,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{alt:"",cover:!0,height:"inherit",src:e.image}}},s.image):b(ws,{key:"image-img",alt:"",cover:!0,height:"inherit",src:e.image},null)]),s.prepend&&b("div",{class:"v-navigation-drawer__prepend"},[(ct=s.prepend)==null?void 0:ct.call(s)]),b("div",{class:"v-navigation-drawer__content"},[(tt=s.default)==null?void 0:tt.call(s)]),s.append&&b("div",{class:"v-navigation-drawer__append"},[(we=s.append)==null?void 0:we.call(s)])]}}),b(un,{name:"fade-transition"},{default:()=>[P.value&&(R.value||m.value)&&!!e.scrim&&b("div",Te({class:["v-navigation-drawer__scrim",he.backgroundColorClasses.value],style:[Ee.value,he.backgroundColorStyles.value],onClick:()=>{x.value||(m.value=!1)}},S),null)]})])}),X.then(()=>({isStuck:F}))}}),fk=ht({__name:"AppDrawer",setup(e){const t=pn(),n=Zc("drawer",()=>!0);ea();const{mobile:r,lgAndUp:s,width:i}=la(),o=A({get(){return n.value||!r.value},set(d){n.value=d}}),a=A(()=>!n.value&&!r.value),l=t.getRoutes().filter(d=>d.path.lastIndexOf("/")===0);l.sort((d,f)=>{var h,v;return(((h=d.meta)==null?void 0:h.drawerIndex)??99)-(((v=f.meta)==null?void 0:v.drawerIndex)??98)});const u=l.filter(d=>{var f,h;return!((f=d.meta)!=null&&f.hideInNav)&&!((h=d.meta)!=null&&h.bottom)}),c=l.filter(d=>{var f,h;return!((f=d.meta)!=null&&f.hideInNav)&&((h=d.meta)==null?void 0:h.bottom)});return n.value=s.value&&i.value!==1280,(d,f)=>{const h=g1,v=nk;return ce(),Me(dk,{modelValue:Z(o),"onUpdate:modelValue":f[0]||(f[0]=m=>Le(o)?o.value=m:null),"expand-on-hover":Z(a),rail:Z(a)},{append:Re(()=>[b(tc,{nav:"",density:"compact",class:"pb-0"},{default:Re(()=>[(ce(!0),Qe(ge,null,Xs(Z(c),(m,p)=>{var S,y;return ce(),Qe(ge,{key:m.name},[p===0||((S=m.meta)==null?void 0:S.group)!==((y=Z(c)[p-1].meta)==null?void 0:y.group)?(ce(),Qe(ge,{key:0},[p!==0?(ce(),Me(so,{key:0})):bt("",!0)],64)):bt("",!0),b(h,{item:m},null,8,["item"])],64)}),128)),b(so),b(v)]),_:1})]),default:Re(()=>[b(tc,{nav:"",density:"compact"},{default:Re(()=>[(ce(!0),Qe(ge,null,Xs(Z(u),(m,p)=>{var S,y;return ce(),Qe(ge,{key:m.name},[p===0||((S=m.meta)==null?void 0:S.group)!==((y=Z(u)[p-1].meta)==null?void 0:y.group)?(ce(),Qe(ge,{key:0},[p!==0&&p!==Z(u).length-1?(ce(),Me(so,{key:0,class:"mt-3 mb-3"})):bt("",!0)],64)):bt("",!0),b(h,{item:m},null,8,["item"])],64)}),128))]),_:1}),b(vu)]),_:1},8,["modelValue","expand-on-hover","rail"])}}}),p1=xn("categories"),hk={preFetch:e=>Bt().from("friends").select(` + *, + users_meta:users_meta!user_id_2 (*) + `)},mk=xn("friends",hk),vk={bulkDelete:async(e,t)=>{const n=Bt();try{const{error:r}=await n.from("inventory_items").delete().eq("inventory_id",e).in("item_id",t);if(r)throw r}catch(r){Sn("error",r.message),console.error(r)}}},gk={byInventoryId:e=>t=>e.entities.filter(n=>n.inventory_id===t)},Io=xn("inventory_items",{},vk,{},gk),pk={preFetch:e=>Bt().from("inventories").select(` + *, + items ( + id, + name, + weight, + amount, + category:categories ( + id, + name, + icon, + color + ) + ) + `)},yk={async updateWithItems(e,t){try{await this.update(e)}catch(a){Sn("error",a.message),console.error(a)}const n=Io(),r=await this.byId(e.id).items,s=t.filter(a=>!r.some(l=>l.id===a.id)),i=r.filter(a=>!t.some(l=>l.id===a.id));await Promise.all(s.map(a=>n.create({inventory_id:e.id,item_id:a.id})));const o=i.map(a=>a.id);await n.bulkDelete(e.id,o)},async createWithItems(e,t){let n=null;try{if(n=await this.create(e),n){const r=Io();await Promise.all(t.map(s=>r.create({inventory_id:n.id,item_id:s.id})))}}catch(r){Sn("error",r.message),console.error(r)}}},bk={totalWeightById:e=>t=>{const n=e.entities.find(r=>r.id===t);return n?n.items.reduce((r,s)=>r+s.weight*s.amount,0):0}},y1=xn("inventories",pk,yk,{},bk),wk={preFetch:async e=>Bt().from("items").select(` + *, + category(id, name, icon, color), + inventories(name) + `)},_k={byInventoryId:e=>t=>{const r=Io().byInventoryId(t);return r.length?r.map(s=>(void 0).items.find(i=>i.id===s.item_id)):[]}},Sk=["inventories"],b1=xn("items",wk,{},{},_k,!1,Sk),Ck={byId:()=>e=>w1().entities.find(n=>n.id===e)},w1=xn("routes",{},{},{},Ck),_1=xn("settings",{},{},{},{},!0),kk={preFetch:e=>Bt().from("trips").select(` + *, + users_meta:user_id ( + name + ), + trips_users_attendees ( + user_id, + users_meta ( + name + ) + ), + routes!planning_route (distance) +`),postFetch:e=>(e.forEach(t=>{t.start=new Date(t.start).toISOString().slice(0,16),t.end=new Date(t.end).toISOString().slice(0,16)}),e)},Ek={byDateUpcoming:e=>{const t=new Date;return e.entities.filter(r=>new Date(r.start)>t)},byDatePast:e=>{const t=new Date;return e.entities.filter(r=>new Date(r.end)({categories:p1(),friends:mk(),inventories:y1(),items:b1(),routes:w1(),settings:_1(),trips:Ak(),users:ea()}),Lk=Y({id:String,...yi(ca({closeDelay:250,closeOnContentClick:!0,locationStrategy:"connected",openDelay:300,scrim:!1,scrollStrategy:"reposition",transition:{component:Zg}}),["absolute"])},"VMenu"),Pk=fe()({name:"VMenu",props:Lk(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=Ft(e,"modelValue"),{scopeId:s}=ki(),i=Rr(),o=A(()=>e.id||`v-menu-${i}`),a=N(),l=Se(Zl,null),u=le(0);Ye(Zl,{register(){++u.value},unregister(){--u.value},closeParents(m){setTimeout(()=>{!u.value&&(m==null||m&&!q2(m,a.value.contentEl))&&(r.value=!1,l==null||l.closeParents())},40)}});async function c(m){var y,g,_;const p=m.relatedTarget,S=m.target;await Ke(),r.value&&p!==S&&((y=a.value)!=null&&y.contentEl)&&((g=a.value)!=null&&g.globalTop)&&![document,a.value.contentEl].includes(S)&&!a.value.contentEl.contains(S)&&((_=So(a.value.contentEl)[0])==null||_.focus())}se(r,m=>{m?(l==null||l.register(),document.addEventListener("focusin",c,{once:!0})):(l==null||l.unregister(),document.removeEventListener("focusin",c))});function d(m){l==null||l.closeParents(m)}function f(m){var p,S,y;e.disabled||(m.key==="Tab"||m.key==="Enter"&&!e.closeOnContentClick?(m.key==="Enter"&&m.preventDefault(),Tv(So((p=a.value)==null?void 0:p.contentEl,!1),m.shiftKey?"prev":"next",_=>_.tabIndex>=0)||(r.value=!1,(y=(S=a.value)==null?void 0:S.activatorEl)==null||y.focus())):["Enter"," "].includes(m.key)&&e.closeOnContentClick&&(r.value=!1,l==null||l.closeParents()))}function h(m){var S;if(e.disabled)return;const p=(S=a.value)==null?void 0:S.contentEl;p&&r.value?m.key==="ArrowDown"?(m.preventDefault(),Co(p,"next")):m.key==="ArrowUp"&&(m.preventDefault(),Co(p,"prev")):["ArrowDown","ArrowUp"].includes(m.key)&&(r.value=!0,m.preventDefault(),setTimeout(()=>setTimeout(()=>h(m))))}const v=A(()=>Te({"aria-haspopup":"menu","aria-expanded":String(r.value),"aria-owns":o.value,onKeydown:h},e.activatorProps));return ye(()=>{const m=fs.filterProps(e);return b(fs,Te({ref:a,id:o.value,class:["v-menu",e.class],style:e.style},m,{modelValue:r.value,"onUpdate:modelValue":p=>r.value=p,absolute:!0,activatorProps:v.value,"onClick:outside":d,onKeydown:f},s),{activator:n.activator,default:function(){for(var p=arguments.length,S=new Array(p),y=0;y{var g;return[(g=n.default)==null?void 0:g.call(n,...S)]}})}})}),fu({id:o,ΨopenChildren:u},a)}}),Ok=Y({id:String,text:String,...yi(ca({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:!1}),["absolute","persistent"])},"VTooltip"),Ik=fe()({name:"VTooltip",props:Ok(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=Ft(e,"modelValue"),{scopeId:s}=ki(),i=Rr(),o=A(()=>e.id||`v-tooltip-${i}`),a=N(),l=A(()=>e.location.split(" ").length>1?e.location:e.location+" center"),u=A(()=>e.origin==="auto"||e.origin==="overlap"||e.origin.split(" ").length>1||e.location.split(" ").length>1?e.origin:e.origin+" center"),c=A(()=>e.transition?e.transition:r.value?"scale-transition":"fade-transition"),d=A(()=>Te({"aria-describedby":o.value},e.activatorProps));return ye(()=>{const f=fs.filterProps(e);return b(fs,Te({ref:a,class:["v-tooltip",e.class],style:e.style,id:o.value},f,{modelValue:r.value,"onUpdate:modelValue":h=>r.value=h,transition:c.value,absolute:!0,location:l.value,origin:u.value,persistent:!0,role:"tooltip",activatorProps:d.value,_disableGlobalStack:!0},s),{activator:n.activator,default:function(){var p;for(var h=arguments.length,v=new Array(h),m=0;m{t.value=r.user,n.value=r.loggedIn});const s=async function(){await r.signOut()};return(i,o)=>(ce(),Me(Pk,{location:"bottom"},{activator:Re(({props:a})=>[b(Ik,{location:"bottom"},{activator:Re(({props:l})=>[b(ds,Te({icon:"",large:""},Te(a,l),{class:"ml-1"}),{default:Re(()=>[Z(n)?(ce(),Me(ci,{key:1,color:"primary",size:"36"},{default:Re(()=>[Z(t)?(ce(),Me(ws,{key:0,src:`https://github.com/${Z(t).name}.png`},null,8,["src"])):bt("",!0)]),_:1})):(ce(),Me(Qt,{key:0,icon:"M12,19.2C9.5,19.2 7.29,17.92 6,16C6.03,14 10,12.9 12,12.9C14,12.9 17.97,14 18,16C16.71,17.92 14.5,19.2 12,19.2M12,5A3,3 0 0,1 15,8A3,3 0 0,1 12,11A3,3 0 0,1 9,8A3,3 0 0,1 12,5M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z",size:"36"}))]),_:2},1040)]),default:Re(()=>[tn("span",null,H1(Z(n)?Z(t)&&Z(t).name:"User"),1)]),_:2},1024)]),default:Re(()=>[b(tc,null,{default:Re(()=>[Z(n)?(ce(),Me(Gn,{key:0,active:(i._.provides[wr]||i.$route).path==="/profile",title:"Profile","prepend-icon":"M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z",to:""},null,8,["active"])):bt("",!0),Z(n)?(ce(),Me(Gn,{key:1,active:(i._.provides[wr]||i.$route).path==="/settings",title:"Settings","prepend-icon":"M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.21,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.21,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.67 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z",to:"/settings"},null,8,["active"])):bt("",!0),Z(n)?(ce(),Me(Gn,{key:2,active:(i._.provides[wr]||i.$route).path==="/settings",title:"Logout","prepend-icon":"M17 7L15.59 8.41L18.17 11H8V13H18.17L15.59 15.58L17 17L22 12M4 5H12V3H4C2.9 3 2 3.9 2 5V19C2 20.1 2.9 21 4 21H12V19H4V5Z",onClick:s},null,8,["active"])):bt("",!0),Z(n)?bt("",!0):(ce(),Me(Gn,{key:3,title:"Login","prepend-icon":"M11 7L9.6 8.4L12.2 11H2V13H12.2L9.6 15.6L11 17L16 12L11 7M20 19H12V21H20C21.1 21 22 20.1 22 19V5C22 3.9 21.1 3 20 3H12V5H20V19Z",to:"/login"}))]),_:1})]),_:1}))}}),Mk=Y({text:String,...ke(),...We()},"VToolbarTitle"),$k=fe()({name:"VToolbarTitle",props:Mk(),setup(e,t){let{slots:n}=t;return ye(()=>{const r=!!(n.default||n.text||e.text);return b(e.tag,{class:["v-toolbar-title",e.class],style:e.style},{default:()=>{var s;return[r&&b("div",{class:"v-toolbar-title__placeholder"},[n.text?n.text():e.text,(s=n.default)==null?void 0:s.call(n)])]}})}),{}}}),Vk=[null,"prominent","default","comfortable","compact"],S1=Y({absolute:Boolean,collapse:Boolean,color:String,density:{type:String,default:"default",validator:e=>Vk.includes(e)},extended:Boolean,extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...nr(),...ke(),...Pn(),...Ut(),...We({tag:"header"}),...at()},"VToolbar"),vh=fe()({name:"VToolbar",props:S1(),setup(e,t){var h;let{slots:n}=t;const{backgroundColorClasses:r,backgroundColorStyles:s}=Xt(ie(e,"color")),{borderClasses:i}=rr(e),{elevationClasses:o}=On(e),{roundedClasses:a}=zt(e),{themeClasses:l}=lt(e),{rtlClasses:u}=Vr(),c=le(!!(e.extended||(h=n.extension)!=null&&h.call(n))),d=A(()=>parseInt(Number(e.height)+(e.density==="prominent"?Number(e.height):0)-(e.density==="comfortable"?8:0)-(e.density==="compact"?16:0),10)),f=A(()=>c.value?parseInt(Number(e.extensionHeight)+(e.density==="prominent"?Number(e.extensionHeight):0)-(e.density==="comfortable"?4:0)-(e.density==="compact"?8:0),10):0);return Ir({VBtn:{variant:"text"}}),ye(()=>{var S;const v=!!(e.title||n.title),m=!!(n.image||e.image),p=(S=n.extension)==null?void 0:S.call(n);return c.value=!!(e.extended||p),b(e.tag,{class:["v-toolbar",{"v-toolbar--absolute":e.absolute,"v-toolbar--collapse":e.collapse,"v-toolbar--flat":e.flat,"v-toolbar--floating":e.floating,[`v-toolbar--density-${e.density}`]:!0},r.value,i.value,o.value,a.value,l.value,u.value,e.class],style:[s.value,e.style]},{default:()=>[m&&b("div",{key:"image",class:"v-toolbar__image"},[n.image?b(ze,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},n.image):b(ws,{key:"image-img",cover:!0,src:e.image},null)]),b(ze,{defaults:{VTabs:{height:ue(d.value)}}},{default:()=>{var y,g,_;return[b("div",{class:"v-toolbar__content",style:{height:ue(d.value)}},[n.prepend&&b("div",{class:"v-toolbar__prepend"},[(y=n.prepend)==null?void 0:y.call(n)]),v&&b($k,{key:"title",text:e.title},{text:n.title}),(g=n.default)==null?void 0:g.call(n),n.append&&b("div",{class:"v-toolbar__append"},[(_=n.append)==null?void 0:_.call(n)])])]}}),b(ze,{defaults:{VTabs:{height:ue(f.value)}}},{default:()=>[b(Xg,null,{default:()=>[c.value&&b("div",{class:"v-toolbar__extension",style:{height:ue(f.value)}},[p])]})]})]})}),{contentHeight:d,extensionHeight:f}}}),Hk=Y({scrollTarget:{type:String},scrollThreshold:{type:[String,Number],default:300}},"scroll");function Dk(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{canScroll:n}=t;let r=0;const s=N(null),i=le(0),o=le(0),a=le(0),l=le(!1),u=le(!1),c=A(()=>Number(e.scrollThreshold)),d=A(()=>xr((c.value-i.value)/c.value||0)),f=()=>{const h=s.value;!h||n&&!n.value||(r=i.value,i.value="window"in h?h.pageYOffset:h.scrollTop,u.value=i.value{o.value=o.value||i.value}),se(l,()=>{o.value=0}),rn(()=>{se(()=>e.scrollTarget,h=>{var m;const v=h?document.querySelector(h):window;v&&v!==s.value&&((m=s.value)==null||m.removeEventListener("scroll",f),s.value=v,s.value.addEventListener("scroll",f,{passive:!0}))},{immediate:!0})}),it(()=>{var h;(h=s.value)==null||h.removeEventListener("scroll",f)}),n&&se(n,f,{immediate:!0}),{scrollThreshold:c,currentScroll:i,currentThreshold:a,isScrollActive:l,scrollRatio:d,isScrollingUp:u,savedScroll:o}}const jk=Y({scrollBehavior:String,modelValue:{type:Boolean,default:!0},location:{type:String,default:"top",validator:e=>["top","bottom"].includes(e)},...S1(),...uu(),...Hk(),height:{type:[Number,String],default:64}},"VAppBar"),Nk=fe()({name:"VAppBar",props:jk(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=N(),s=Ft(e,"modelValue"),i=A(()=>{var _;const g=new Set(((_=e.scrollBehavior)==null?void 0:_.split(" "))??[]);return{hide:g.has("hide"),fullyHide:g.has("fully-hide"),inverted:g.has("inverted"),collapse:g.has("collapse"),elevate:g.has("elevate"),fadeImage:g.has("fade-image")}}),o=A(()=>{const g=i.value;return g.hide||g.fullyHide||g.inverted||g.collapse||g.elevate||g.fadeImage||!s.value}),{currentScroll:a,scrollThreshold:l,isScrollingUp:u,scrollRatio:c}=Dk(e,{canScroll:o}),d=A(()=>i.value.hide||i.value.fullyHide),f=A(()=>e.collapse||i.value.collapse&&(i.value.inverted?c.value>0:c.value===0)),h=A(()=>e.flat||i.value.fullyHide&&!s.value||i.value.elevate&&(i.value.inverted?a.value>0:a.value===0)),v=A(()=>i.value.fadeImage?i.value.inverted?1-c.value:c.value:void 0),m=A(()=>{var T,E;const g=Number(((T=r.value)==null?void 0:T.contentHeight)??e.height),_=Number(((E=r.value)==null?void 0:E.extensionHeight)??0);return d.value?a.value!!e.scrollBehavior),()=>{nn(()=>{d.value?i.value.inverted?s.value=a.value>l.value:s.value=u.value||a.valueparseInt(e.order,10)),position:ie(e,"location"),layoutSize:m,elementSize:le(void 0),active:s,absolute:ie(e,"absolute")});return ye(()=>{const g=vh.filterProps(e);return b(vh,Te({ref:r,class:["v-app-bar",{"v-app-bar--bottom":e.location==="bottom"},e.class],style:[{...S.value,"--v-toolbar-image-opacity":v.value,height:void 0,...p.value},e.style]},g,{collapse:f.value,flat:h.value}),n)}),y}}),Bk=Y({...Vg({icon:"$menu",variant:"text"})},"VAppBarNavIcon"),Fk=fe()({name:"VAppBarNavIcon",props:Bk(),setup(e,t){let{slots:n}=t;return ye(()=>b(ds,Te(e,{class:["v-app-bar-nav-icon"]}),n)),{}}}),Uk=Y({divider:[Number,String],...ke()},"VBreadcrumbsDivider"),zk=fe()({name:"VBreadcrumbsDivider",props:Uk(),setup(e,t){let{slots:n}=t;return ye(()=>{var r;return b("li",{class:["v-breadcrumbs-divider",e.class],style:e.style},[((r=n==null?void 0:n.default)==null?void 0:r.call(n))??e.divider])}),{}}}),Wk=Y({active:Boolean,activeClass:String,activeColor:String,color:String,disabled:Boolean,title:String,...ke(),...aa(),...We({tag:"li"})},"VBreadcrumbsItem"),qk=fe()({name:"VBreadcrumbsItem",props:Wk(),setup(e,t){let{slots:n,attrs:r}=t;const s=oa(e,r),i=A(()=>{var u;return e.active||((u=s.isActive)==null?void 0:u.value)}),o=A(()=>i.value?e.activeColor:e.color),{textColorClasses:a,textColorStyles:l}=Xn(o);return ye(()=>b(e.tag,{class:["v-breadcrumbs-item",{"v-breadcrumbs-item--active":i.value,"v-breadcrumbs-item--disabled":e.disabled,[`${e.activeClass}`]:i.value&&e.activeClass},a.value,e.class],style:[l.value,e.style],"aria-current":i.value?"page":void 0},{default:()=>{var u,c;return[s.isLink.value?b("a",{class:"v-breadcrumbs-item--link",href:s.href.value,"aria-current":i.value?"page":void 0,onClick:s.navigate},[((c=n.default)==null?void 0:c.call(n))??e.title]):((u=n.default)==null?void 0:u.call(n))??e.title]}})),{}}}),Kk=Y({activeClass:String,activeColor:String,bgColor:String,color:String,disabled:Boolean,divider:{type:String,default:"/"},icon:et,items:{type:Array,default:()=>[]},...ke(),...Ln(),...Ut(),...We({tag:"ul"})},"VBreadcrumbs"),Gk=fe()({name:"VBreadcrumbs",props:Kk(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:r,backgroundColorStyles:s}=Xt(ie(e,"bgColor")),{densityClasses:i}=sr(e),{roundedClasses:o}=zt(e);Ir({VBreadcrumbsDivider:{divider:ie(e,"divider")},VBreadcrumbsItem:{activeClass:ie(e,"activeClass"),activeColor:ie(e,"activeColor"),color:ie(e,"color"),disabled:ie(e,"disabled")}});const a=A(()=>e.items.map(l=>typeof l=="string"?{item:{title:l},raw:l}:{item:l,raw:l}));return ye(()=>{const l=!!(n.prepend||e.icon);return b(e.tag,{class:["v-breadcrumbs",r.value,i.value,o.value,e.class],style:[s.value,e.style]},{default:()=>{var u;return[l&&b("li",{key:"prepend",class:"v-breadcrumbs__prepend"},[n.prepend?b(ze,{key:"prepend-defaults",disabled:!e.icon,defaults:{VIcon:{icon:e.icon,start:!0}}},n.prepend):b(Qt,{key:"prepend-icon",start:!0,icon:e.icon},null)]),a.value.map((c,d,f)=>{var m;let{item:h,raw:v}=c;return b(ge,null,[((m=n.item)==null?void 0:m.call(n,{item:h,index:d}))??b(qk,Te({key:d,disabled:d>=f.length-1},typeof h=="string"?{title:h}:h),{default:n.title?()=>{var p;return(p=n.title)==null?void 0:p.call(n,{item:h,index:d})}:void 0}),d{var p;return(p=n.divider)==null?void 0:p.call(n,{item:v,index:d})}:void 0})])}),(u=n.default)==null?void 0:u.call(n)]}})}),{}}}),Yk=tn("div",{id:"app-bar"},null,-1),Jk=ht({__name:"AppBar",setup(e){const t=Zc("drawer"),n=qo(),r=A(()=>n.matched.filter(s=>{var i;return s.meta&&s.meta.title&&((i=s.meta)==null?void 0:i.breadcrumb)!=="hidden"}).map(s=>{var i;return{title:s.meta.title,disabled:((i=s.meta)==null?void 0:i.breadcrumb)==="disabled"||s.path===n.path||!1,to:s.path}}));return(s,i)=>{const o=Rk,a=h3;return ce(),Me(Nk,{flat:""},{default:Re(()=>[b(Fk,{onClick:i[0]||(i[0]=l=>t.value=!Z(t))}),b(Gk,{items:Z(r)},null,8,["items"]),b(vu),Yk,b(a,null,{default:Re(()=>[b(o)]),_:1})]),_:1})}}}),Zk=Zo("v-alert-title"),Xk=["success","info","warning","error"],Qk=Y({border:{type:[Boolean,String],validator:e=>typeof e=="boolean"||["top","end","bottom","start"].includes(e)},borderColor:String,closable:Boolean,closeIcon:{type:et,default:"$close"},closeLabel:{type:String,default:"$vuetify.close"},icon:{type:[Boolean,String,Function,Object],default:null},modelValue:{type:Boolean,default:!0},prominent:Boolean,title:String,text:String,type:{type:String,validator:e=>Xk.includes(e)},...ke(),...Ln(),...In(),...Pn(),...sa(),...ou(),...Ut(),...We(),...at(),...$r({variant:"flat"})},"VAlert"),e7=fe()({name:"VAlert",props:Qk(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const s=Ft(e,"modelValue"),i=A(()=>{if(e.icon!==!1)return e.type?e.icon??`$${e.type}`:e.icon}),o=A(()=>({color:e.color??e.type,variant:e.variant})),{themeClasses:a}=lt(e),{colorClasses:l,colorStyles:u,variantClasses:c}=Si(o),{densityClasses:d}=sr(e),{dimensionStyles:f}=Rn(e),{elevationClasses:h}=On(e),{locationStyles:v}=ia(e),{positionClasses:m}=au(e),{roundedClasses:p}=zt(e),{textColorClasses:S,textColorStyles:y}=Xn(ie(e,"borderColor")),{t:g}=hS(),_=A(()=>({"aria-label":g(e.closeLabel),onClick(T){s.value=!1,n("click:close",T)}}));return()=>{const T=!!(r.prepend||i.value),E=!!(r.title||e.title),C=!!(r.close||e.closable);return s.value&&b(e.tag,{class:["v-alert",e.border&&{"v-alert--border":!!e.border,[`v-alert--border-${e.border===!0?"start":e.border}`]:!0},{"v-alert--prominent":e.prominent},a.value,l.value,d.value,h.value,m.value,p.value,c.value,e.class],style:[u.value,f.value,v.value,e.style],role:"alert"},{default:()=>{var x,P;return[_i(!1,"v-alert"),e.border&&b("div",{key:"border",class:["v-alert__border",S.value],style:y.value},null),T&&b("div",{key:"prepend",class:"v-alert__prepend"},[r.prepend?b(ze,{key:"prepend-defaults",disabled:!i.value,defaults:{VIcon:{density:e.density,icon:i.value,size:e.prominent?44:28}}},r.prepend):b(Qt,{key:"prepend-icon",density:e.density,icon:i.value,size:e.prominent?44:28},null)]),b("div",{class:"v-alert__content"},[E&&b(Zk,{key:"title"},{default:()=>{var O;return[((O=r.title)==null?void 0:O.call(r))??e.title]}}),((x=r.text)==null?void 0:x.call(r))??e.text,(P=r.default)==null?void 0:P.call(r)]),r.append&&b("div",{key:"append",class:"v-alert__append"},[r.append()]),C&&b("div",{key:"close",class:"v-alert__close"},[r.close?b(ze,{key:"close-defaults",defaults:{VBtn:{icon:e.closeIcon,size:"x-small",variant:"text"}}},{default:()=>{var O;return[(O=r.close)==null?void 0:O.call(r,{props:_.value})]}}):b(ds,Te({key:"close-btn",icon:e.closeIcon,size:"x-small",variant:"text"},_.value),null)])]}})}}}),t7={class:"notification-wrapper"},n7=ht({__name:"notification-area",setup(e){const t=rg(),{entities:n}=vi(t);return(r,s)=>(ce(),Qe("div",t7,[b(Uo,{name:"list",tag:"div"},{default:Re(()=>[(ce(!0),Qe(ge,null,Xs(Z(n),i=>(ce(),Me(e7,{key:i.id,text:i.text,type:i.type,onClick:o=>Z(t).remove(i.id)},null,8,["text","type","onClick"]))),128))]),_:1})]))}}),r7=Ei(n7,[["__scopeId","data-v-0b961b91"]]),s7=ht({props:{vnode:{type:Object,required:!0},route:{type:Object,required:!0},vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(e){const t=e.renderKey,n=e.route,r={};for(const s in e.route)Object.defineProperty(r,s,{get:()=>t===e.renderKey?e.route[s]:n[s]});return Ye(wr,mi(r)),()=>gt(e.vnode,{ref:e.vnodeRef})}}),i7=ht({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,expose:n}){const r=Ue(),s=N(),i=Se(wr,null);let o;n({pageRef:s});const a=Se(Eb,null);let l;const u=r.deferHydration();if(r.isHydrating){const c=r.hooks.hookOnce("app:error",u);pn().beforeEach(c)}return e.pageKey&&se(()=>e.pageKey,(c,d)=>{c!==d&&r.callHook("page:loading:start")}),()=>gt(Jv,{name:e.name,route:e.route,...t},{default:c=>{const d=a7(i,c.route,c.Component),f=i&&i.matched.length===c.route.matched.length;if(!c.Component){if(l&&!f)return l;u();return}if(l&&a&&!a.isCurrent(c.route))return l;if(d&&i&&(!a||a!=null&&a.isCurrent(i)))return f?l:null;const h=Ml(c,e.pageKey);!r.isHydrating&&!l7(i,c.route,c.Component)&&o===h&&r.callHook("page:loading:end"),o=h;const v=!!(e.transition??c.route.meta.pageTransition??Cl),m=v&&o7([e.transition,c.route.meta.pageTransition,Cl,{onAfterLeave:()=>{r.callHook("page:transition:finish",c.Component)}}].filter(Boolean)),p=e.keepalive??c.route.meta.keepalive??C2;return l=z_(un,v&&m,N_(p,gt(wc,{suspensible:!0,onPending:()=>r.callHook("page:start",c.Component),onResolve:()=>{Ke(()=>r.callHook("page:finish",c.Component).then(()=>r.callHook("page:loading:end")).finally(u))}},{default:()=>{const S=gt(s7,{key:h||void 0,vnode:c.Component,route:c.route,renderKey:h||void 0,trackRootNodes:v,vnodeRef:s});return p&&(S.type.name=c.Component.type.name||c.Component.type.__name||"RouteProvider"),S}}))).default(),l}})}});function o7(e){const t=e.map(n=>({...n,onAfterLeave:n.onAfterLeave?Jc(n.onAfterLeave):void 0}));return ev(...t)}function a7(e,t,n){if(!e)return!1;const r=t.matched.findIndex(s=>{var i;return((i=s.components)==null?void 0:i.default)===(n==null?void 0:n.type)});return!r||r===-1?!1:t.matched.slice(0,r).some((s,i)=>{var o,a,l;return((o=s.components)==null?void 0:o.default)!==((l=(a=e.matched[i])==null?void 0:a.components)==null?void 0:l.default)})||n&&Ml({route:t,Component:n})!==Ml({route:e,Component:n})}function l7(e,t,n){return e?t.matched.findIndex(s=>{var i;return((i=s.components)==null?void 0:i.default)===(n==null?void 0:n.type)})XS
SM
MD
LG
XL
XXL
',6),d7=[u7],f7={__name:"BreakpointDebugger",setup(e){return(t,n)=>(ce(),Qe("div",c7,d7))}},h7=Ei(f7,[["__scopeId","data-v-d516005f"]]),m7=Y({app:Boolean,color:String,height:{type:[Number,String],default:"auto"},...nr(),...ke(),...Pn(),...uu(),...Ut(),...We({tag:"footer"}),...at()},"VFooter"),v7=fe()({name:"VFooter",props:m7(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=lt(e),{backgroundColorClasses:s,backgroundColorStyles:i}=Xt(ie(e,"color")),{borderClasses:o}=rr(e),{elevationClasses:a}=On(e),{roundedClasses:l}=zt(e),u=le(32),{resizeRef:c}=iu(v=>{v.length&&(u.value=v[0].target.clientHeight)}),d=A(()=>e.height==="auto"?u.value:parseInt(e.height,10)),{layoutItemStyles:f,layoutIsReady:h}=du({id:e.name,order:A(()=>parseInt(e.order,10)),position:A(()=>"bottom"),layoutSize:d,elementSize:A(()=>e.height==="auto"?void 0:d.value),active:A(()=>e.app),absolute:ie(e,"absolute")});return ye(()=>b(e.tag,{ref:c,class:["v-footer",r.value,s.value,o.value,a.value,l.value,e.class],style:[i.value,e.app?f.value:{height:ue(e.height)},e.style]},n)),e.app?h:{}}}),g7={};function p7(e,t){const n=h7;return ce(),Me(v7,{app:""},{default:Re(()=>[b(vu),b(ze,{defaults:{VBtn:{variant:"text",size:"x-small"}}},{default:Re(()=>[b(n)]),_:1})]),_:1})}const y7=Ei(g7,[["render",p7]]),b7=Y({...ke(),...xC({fullHeight:!0}),...at()},"VApp"),w7=fe()({name:"VApp",props:b7(),setup(e,t){let{slots:n}=t;const r=lt(e),{layoutClasses:s,getLayoutItem:i,items:o,layoutRef:a}=OC(e),{rtlClasses:l}=Vr();return ye(()=>b("div",{ref:a,class:["v-application",r.themeClasses.value,s.value,l.value,e.class],style:[e.style]},[b("div",{class:"v-application__wrap"},[b(wc,null,{default:()=>{var u;return[b(ge,null,[(u=n.default)==null?void 0:u.call(n)])]}})])])),{getLayoutItem:i,items:o,theme:r}}}),_7=Y({scrollable:Boolean,...ke(),...In(),...We({tag:"main"})},"VMain"),S7=fe()({name:"VMain",props:_7(),setup(e,t){let{slots:n}=t;const{dimensionStyles:r}=Rn(e),{mainStyles:s,layoutIsReady:i}=LC(),{ssrBootStyles:o}=ua();return ye(()=>b(e.tag,{class:["v-main",{"v-main--scrollable":e.scrollable},e.class],style:[s.value,o.value,r.value,e.style]},{default:()=>{var a,l;return[e.scrollable?b("div",{class:"v-main__scroller"},[(a=n.default)==null?void 0:a.call(n)]):(l=n.default)==null?void 0:l.call(n)]}})),i}}),C7=ht({__name:"app",setup(e){const t=J3(),n=qo(),r=A(()=>{var d,f;return((d=n.meta)==null?void 0:d.title)||((f=n.matched[0].meta)==null?void 0:f.title)||""});Nc({title:r,titleTemplate:d=>d?`${d} | couchsurvivors`:"couchsurvivors",htmlAttrs:{lang:"en"},link:[{rel:"icon",href:"/favicon.ico"}]}),w2({viewport:"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no",description:"couch survivors - adventures start at home"});const s=ea(),i=_1(),o=b1(),a=y1(),l=p1(),u=Io(),c=N(!0);return s.$subscribe((d,f)=>{s.loggedIn?(c.value=!0,i.fetch(),o.fetch(),a.fetch(),l.fetch(),u.fetch()):c.value=!1}),t.global.name.value=i.entities.lightMode?"light":"dark",i.$subscribe((d,f)=>{t.global.name.value=f.entities.lightMode?"light":"dark"}),(d,f)=>{const h=y6,v=b6,m=fk,p=Jk,S=r7,y=i7,g=y7;return ce(),Me(w7,null,{default:Re(()=>[b(h),b(v),b(m),b(p,{class:Cr(Z(c)?"":"invisible")},null,8,["class"]),b(S7,null,{default:Re(()=>[b(S),b(y)]),_:1}),b(g)]),_:1})}}}),k7=Ei(C7,[["__scopeId","data-v-4452e2d2"]]),E7={__name:"nuxt-error-page",props:{error:Object},setup(e){const n=e.error;n.stack&&n.stack.split(` +`).splice(1).map(d=>({text:d.replace("webpack:/","").replace(".vue",".js").trim(),internal:d.includes("node_modules")&&!d.includes(".cache")||d.includes("internal")||d.includes("new Promise")})).map(d=>`${d.text}`).join(` +`);const r=Number(n.statusCode||500),s=r===404,i=n.statusMessage??(s?"Page Not Found":"Internal Server Error"),o=n.message||n.toString(),a=void 0,c=s?Iu(()=>Ie(()=>import("./sWvUMHT_.js"),__vite__mapDeps([58,59]),import.meta.url).then(d=>d.default||d)):Iu(()=>Ie(()=>import("./DAPrzKN6.js"),__vite__mapDeps([60,61]),import.meta.url).then(d=>d.default||d));return(d,f)=>(ce(),Me(Z(c),M1(Cm({statusCode:Z(r),statusMessage:Z(i),description:Z(o),stack:Z(a)})),null,16))}},gh={__name:"nuxt-root",setup(e){const t=()=>null,n=Ue(),r=n.deferHydration();if(n.isHydrating){const a=n.hooks.hookOnce("app:error",r);pn().beforeEach(a)}const s=!1;Ye(wr,qo()),n.hooks.callHookWith(a=>a.map(l=>l()),"vue:setup");const i=Ko();sm((a,l,u)=>{if(n.hooks.callHook("vue:error",a,l,u).catch(c=>console.error("[nuxt] Error in `vue:error` hook",c)),xb(a)&&(a.fatal||a.unhandled))return n.runWithContext(()=>Gr(a)),!1});const o=!1;return(a,l)=>(ce(),Me(wc,{onResolve:Z(r)},{default:Re(()=>[Z(i)?(ce(),Me(Z(E7),{key:0,error:Z(i)},null,8,["error"])):Z(o)?(ce(),Me(Z(t),{key:1,context:Z(o)},null,8,["context"])):Z(s)?(ce(),Me(Gh(Z(s)),{key:2})):(ce(),Me(Z(k7),{key:3}))]),_:1},8,["onResolve"]))}};let ph;{let e;ph=async function(){var o,a;if(e)return e;const r=!!((o=window.__NUXT__)!=null&&o.serverRendered||((a=document.getElementById("__NUXT_DATA__"))==null?void 0:a.dataset.ssr)==="true")?Xp(gh):Zp(gh),s=sb({vueApp:r});async function i(l){await s.callHook("app:error",l),s.payload.error=s.payload.error||Go(l)}r.config.errorHandler=i;try{await ob(s,MC)}catch(l){i(l)}try{await s.hooks.callHook("app:created",r),await s.hooks.callHook("app:beforeMount",r),r.mount(k2),await s.hooks.callHook("app:mounted",r),await Ke()}catch(l){i(l)}return r.config.errorHandler===i&&(r.config.errorHandler=void 0),r},e=ph().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{zt as $,b as A,Re as B,Ds as C,p0 as D,y0 as E,Y as F,ke as G,l6 as H,fe as I,Se as J,c6 as K,ye as L,kr as M,Oc as N,et as O,Xt as P,jo as Q,lu as R,Qt as S,Pn as T,Q3 as U,Xg as V,Ut as W,We as X,eS as Y,On as Z,Ei as _,pg as a,ms as a$,Ye as a0,Te as a1,X3 as a2,at as a3,tS as a4,lt as a5,Ir as a6,ie as a7,Me as a8,HC as a9,p6 as aA,Kg as aB,yi as aC,Vg as aD,uu as aE,Dg as aF,Ft as aG,iu as aH,En as aI,Yr as aJ,du as aK,nn as aL,Cv as aM,D0 as aN,nr as aO,Ln as aP,Ci as aQ,$r as aR,hS as aS,Vr as aT,la as aU,_v as aV,I7 as aW,Ze as aX,xr as aY,U7 as aZ,ue as a_,Gg as aa,UC as ab,tc as ac,Xs as ad,ge as ae,Z as af,Le as ag,Gn as ah,M6 as ai,ds as aj,bt as ak,mk as al,x7 as am,y1 as an,qo as ao,le as ap,Am as aq,rm as ar,se as as,ae as at,Ke as au,Dh as av,Cr as aw,b1 as ax,vi as ay,A7 as az,$f as b,Ll as b$,F7 as b0,Jo as b1,N2 as b2,N7 as b3,MS as b4,Eg as b5,Tg as b6,yS as b7,kl as b8,Pd as b9,nm as bA,rg as bB,h3 as bC,Bt as bD,w1 as bE,cS as bF,Kf as bG,ya as bH,$7 as bI,D7 as bJ,j7 as bK,Rr as bL,i7 as bM,Ak as bN,pt as bO,V7 as bP,In as bQ,Rn as bR,Cw as bS,N6 as bT,Zg as bU,U2 as bV,Y7 as bW,Lv as bX,Ps as bY,J7 as bZ,H2 as b_,L7 as ba,wn as bb,so as bc,sr as bd,Z7 as be,Xn as bf,ec as bg,Fe as bh,Pk as bi,ci as bj,z2 as bk,ze as bl,B7 as bm,fu as bn,M7 as bo,H7 as bp,G7 as bq,p1 as br,ws as bs,ng as bt,xk as bu,Ie as bv,hc as bw,P7 as bx,Be as by,_1 as bz,A as c,PS as c0,Tn as c1,tr as c2,R7 as c3,W7 as c4,q7 as c5,K7 as c6,So as c7,aa as c8,rr as c9,Si as ca,ra as cb,oa as cc,_i as cd,ht as d,it as e,z7 as f,gt as g,Or as h,T7 as i,Mc as j,vy as k,Wo as l,Ue as m,O7 as n,rn as o,zo as p,yo as q,N as r,Rc as s,Nc as t,pn as u,ce as v,hl as w,Qe as x,tn as y,H1 as z}; diff --git a/_nuxt/CuSTAa19.js b/_nuxt/CuSTAa19.js new file mode 100644 index 0000000..ae2c7db --- /dev/null +++ b/_nuxt/CuSTAa19.js @@ -0,0 +1 @@ +import{F as d,G as h,aP as m,X as b,a3 as v,I as f,a5 as c,bd as u,L as g,A as t,a_ as x}from"./CsYHinuP.js";const T=d({fixedHeader:Boolean,fixedFooter:Boolean,height:[Number,String],hover:Boolean,...h(),...m(),...b(),...v()},"VTable"),V=f()({name:"VTable",props:T(),setup(a,r){let{slots:e,emit:y}=r;const{themeClasses:i}=c(a),{densityClasses:n}=u(a);return g(()=>t(a.tag,{class:["v-table",{"v-table--fixed-height":!!a.height,"v-table--fixed-header":a.fixedHeader,"v-table--fixed-footer":a.fixedFooter,"v-table--has-top":!!e.top,"v-table--has-bottom":!!e.bottom,"v-table--hover":a.hover},i.value,n.value,a.class],style:a.style},{default:()=>{var o,s,l;return[(o=e.top)==null?void 0:o.call(e),e.default?t("div",{class:"v-table__wrapper",style:{height:x(a.height)}},[t("table",null,[e.default()])]):(s=e.wrapper)==null?void 0:s.call(e),(l=e.bottom)==null?void 0:l.call(e)]}})),{}}});export{V,T as m}; diff --git a/_nuxt/D3VuSz5Q.js b/_nuxt/D3VuSz5Q.js new file mode 100644 index 0000000..d37ddd3 --- /dev/null +++ b/_nuxt/D3VuSz5Q.js @@ -0,0 +1 @@ +import{F as h,O as w,b1 as H,G as R,aP as J,a3 as Q,I as U,aG as L,bL as _,c as o,a0 as z,bO as K,a6 as W,a7 as u,L as M,A as d,R as X,ap as D,r as Y,bI as Z,a1 as T,M as p,Q as ee,ae as le,S as ae,J as te,bd as ne,b2 as I,bf as oe,P as ue,bV as ie,au as re}from"./CsYHinuP.js";import{c as ce}from"./C5_Hj3rt.js";const O=Symbol.for("vuetify:selection-control-group"),j=h({color:String,disabled:{type:Boolean,default:null},defaultsTarget:String,error:Boolean,id:String,inline:Boolean,falseIcon:w,trueIcon:w,ripple:{type:[Boolean,Object],default:!0},multiple:{type:Boolean,default:null},name:String,readonly:{type:Boolean,default:null},modelValue:null,type:String,valueComparator:{type:Function,default:H},...R(),...J(),...Q()},"SelectionControlGroup"),se=h({...j({defaultsTarget:"VSelectionControl"})},"VSelectionControlGroup");U()({name:"VSelectionControlGroup",props:se(),emits:{"update:modelValue":e=>!0},setup(e,i){let{slots:v}=i;const l=L(e,"modelValue"),t=_(),b=o(()=>e.id||`v-selection-control-group-${t}`),c=o(()=>e.name||b.value),a=new Set;return z(O,{modelValue:l,forceUpdate:()=>{a.forEach(n=>n())},onForceUpdate:n=>{a.add(n),K(()=>{a.delete(n)})}}),W({[e.defaultsTarget]:{color:u(e,"color"),disabled:u(e,"disabled"),density:u(e,"density"),error:u(e,"error"),inline:u(e,"inline"),modelValue:l,multiple:o(()=>!!e.multiple||e.multiple==null&&Array.isArray(l.value)),name:c,falseIcon:u(e,"falseIcon"),trueIcon:u(e,"trueIcon"),readonly:u(e,"readonly"),ripple:u(e,"ripple"),type:u(e,"type"),valueComparator:u(e,"valueComparator")}}),M(()=>{var n;return d("div",{class:["v-selection-control-group",{"v-selection-control-group--inline":e.inline},e.class],style:e.style,role:e.type==="radio"?"radiogroup":void 0},[(n=v.default)==null?void 0:n.call(v)])}),{}}});const de=h({label:String,baseColor:String,trueValue:null,falseValue:null,value:null,...R(),...j()},"VSelectionControl");function ve(e){const i=te(O,void 0),{densityClasses:v}=ne(e),l=L(e,"modelValue"),t=o(()=>e.trueValue!==void 0?e.trueValue:e.value!==void 0?e.value:!0),b=o(()=>e.falseValue!==void 0?e.falseValue:!1),c=o(()=>!!e.multiple||e.multiple==null&&Array.isArray(l.value)),a=o({get(){const f=i?i.modelValue.value:l.value;return c.value?I(f).some(r=>e.valueComparator(r,t.value)):e.valueComparator(f,t.value)},set(f){if(e.readonly)return;const r=f?t.value:b.value;let m=r;c.value&&(m=f?[...I(l.value),r]:I(l.value).filter(y=>!e.valueComparator(y,t.value))),i?i.modelValue.value=m:l.value=m}}),{textColorClasses:n,textColorStyles:C}=oe(o(()=>{if(!(e.error||e.disabled))return a.value?e.color:e.baseColor})),{backgroundColorClasses:V,backgroundColorStyles:S}=ue(o(()=>a.value&&!e.error&&!e.disabled?e.color:e.baseColor)),k=o(()=>a.value?e.trueIcon:e.falseIcon);return{group:i,densityClasses:v,trueValue:t,falseValue:b,model:a,textColorClasses:n,textColorStyles:C,backgroundColorClasses:V,backgroundColorStyles:S,icon:k}}const be=U()({name:"VSelectionControl",directives:{Ripple:X},inheritAttrs:!1,props:de(),emits:{"update:modelValue":e=>!0},setup(e,i){let{attrs:v,slots:l}=i;const{group:t,densityClasses:b,icon:c,model:a,textColorClasses:n,textColorStyles:C,backgroundColorClasses:V,backgroundColorStyles:S,trueValue:k}=ve(e),f=_(),r=D(!1),m=D(!1),y=Y(),g=o(()=>e.id||`input-${f}`),P=o(()=>!e.disabled&&!e.readonly);t==null||t.onForceUpdate(()=>{y.value&&(y.value.checked=a.value)});function A(s){P.value&&(r.value=!0,ie(s.target,":focus-visible")!==!1&&(m.value=!0))}function F(){r.value=!1,m.value=!1}function E(s){s.stopPropagation()}function N(s){P.value&&(e.readonly&&t&&re(()=>t.forceUpdate()),a.value=s.target.checked)}return M(()=>{var B,G;const s=l.label?l.label({label:e.label,props:{for:g.value}}):e.label,[$,q]=Z(v),x=d("input",T({ref:y,checked:a.value,disabled:!!e.disabled,id:g.value,onBlur:F,onFocus:A,onInput:N,"aria-disabled":!!e.disabled,"aria-label":e.label,type:e.type,value:k.value,name:e.name,"aria-checked":e.type==="checkbox"?a.value:void 0},q),null);return d("div",T({class:["v-selection-control",{"v-selection-control--dirty":a.value,"v-selection-control--disabled":e.disabled,"v-selection-control--error":e.error,"v-selection-control--focused":r.value,"v-selection-control--focus-visible":m.value,"v-selection-control--inline":e.inline},b.value,e.class]},$,{style:e.style}),[d("div",{class:["v-selection-control__wrapper",n.value],style:C.value},[(B=l.default)==null?void 0:B.call(l,{backgroundColorClasses:V,backgroundColorStyles:S}),p(d("div",{class:["v-selection-control__input"]},[((G=l.input)==null?void 0:G.call(l,{model:a,textColorClasses:n,textColorStyles:C,backgroundColorClasses:V,backgroundColorStyles:S,inputNode:x,icon:c.value,props:{onFocus:A,onBlur:F,id:g.value}}))??d(le,null,[c.value&&d(ae,{key:"icon",icon:c.value},null),x])]),[[ee("ripple"),e.ripple&&[!e.disabled&&!e.readonly,null,["center","circle"]]]])]),s&&d(ce,{for:g.value,onClick:E},{default:()=>[s]})])}),{isFocused:r,input:y}}});export{be as V,de as m}; diff --git a/_nuxt/D5v69PKz.js b/_nuxt/D5v69PKz.js new file mode 100644 index 0000000..42a938c --- /dev/null +++ b/_nuxt/D5v69PKz.js @@ -0,0 +1 @@ +import{d as V,r as u,v as b,a8 as C,B as l,A as e,a9 as _,C as i,aa as g,ba as d,af as m,ag as f,aj as v,ab as w,bu as x}from"./CsYHinuP.js";import{V as c}from"./BorjDOqY.js";import{V as p}from"./Ckgx-ZkB.js";import{V as B}from"./DKIU8Zgl.js";import"./C5_Hj3rt.js";const L=V({__name:"login",setup(S){const o=u(""),t=u("");async function r(){const s=x().users;await s.signIn(o.value,t.value),console.log(s.user)}return(s,a)=>(b(),C(B,null,{default:l(()=>[e(w,null,{default:l(()=>[e(_,null,{default:l(()=>[i("Login")]),_:1}),e(g,null,{default:l(()=>[e(c,{onSubmit:a[2]||(a[2]=d(()=>{},["prevent"]))},{default:l(()=>[e(p,{modelValue:m(o),"onUpdate:modelValue":a[0]||(a[0]=n=>f(o)?o.value=n:null),label:"Email",required:"",onSubmit:d(r,["prevent"])},null,8,["modelValue"]),e(p,{modelValue:m(t),"onUpdate:modelValue":a[1]||(a[1]=n=>f(t)?t.value=n:null),label:"Password",required:"",type:"password"},null,8,["modelValue"]),e(v,{type:"submit",onClick:r},{default:l(()=>[i("Login")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}))}});export{L as default}; diff --git a/_nuxt/D8yJ59FN.js b/_nuxt/D8yJ59FN.js new file mode 100644 index 0000000..7f1efa6 --- /dev/null +++ b/_nuxt/D8yJ59FN.js @@ -0,0 +1,2 @@ +import{d as m,al as x,r as V,am as C,i as h,v as t,x as l,y as k,z as c,af as o,A as _,B as a,ae as u,ad as y,a8 as d,ah as B,C as v,ak as L,ac as N}from"./CsYHinuP.js";import{V as w}from"./DKIU8Zgl.js";const F=m({__name:"list",async setup(p){let s,n;const e=x(),r=V(e.entities);return[s,n]=C(()=>e.fetch()),await s,n(),(S,g)=>{const f=h("v-list-tile-title");return t(),l(u,null,[k("pre",null," "+c(o(r))+` + `,1),_(N,null,{default:a(()=>[o(r)?(t(!0),l(u,{key:0},y(o(r),i=>(t(),d(B,{key:i.id},{default:a(()=>[_(f,null,{default:a(()=>[v(c(i.usersMeta.name),1)]),_:2},1024)]),_:2},1024))),128)):L("",!0)]),_:1})],64)}}}),D=m({__name:"index",setup(p){return(s,n)=>{const e=F;return t(),d(w,null,{default:a(()=>[_(e)]),_:1})}}});export{D as default}; diff --git a/_nuxt/DAPrzKN6.js b/_nuxt/DAPrzKN6.js new file mode 100644 index 0000000..33cd82e --- /dev/null +++ b/_nuxt/DAPrzKN6.js @@ -0,0 +1 @@ +import{_ as a,t as o,v as s,x as i,y as e,z as r,D as u,E as l}from"./CsYHinuP.js";const c=t=>(u("data-v-f271b975"),t=t(),l(),t),d={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},p=c(()=>e("div",{class:"fixed -bottom-1/2 left-0 right-0 h-1/2 spotlight"},null,-1)),h={class:"max-w-520px text-center"},b=["textContent"],g=["textContent"],f={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const n=t;return o({title:`${n.statusCode} - ${n.statusMessage} | ${n.appName}`,script:[],style:[{children:'*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--un-default-border-color, #e5e7eb)}:before,:after{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}h1{font-size:inherit;font-weight:inherit}h1,p{margin:0}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(x,m)=>(s(),i("div",d,[p,e("div",h,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:r(t.statusCode)},null,8,b),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:r(t.description)},null,8,g)])]))}},k=a(f,[["__scopeId","data-v-f271b975"]]);export{k as default}; diff --git a/_nuxt/DKIU8Zgl.js b/_nuxt/DKIU8Zgl.js new file mode 100644 index 0000000..ca816bf --- /dev/null +++ b/_nuxt/DKIU8Zgl.js @@ -0,0 +1 @@ +import{F as n,G as o,X as r,I as l,aT as i,L as c,A as u}from"./CsYHinuP.js";const m=n({fluid:{type:Boolean,default:!1},...o(),...r()},"VContainer"),C=l()({name:"VContainer",props:m(),setup(e,a){let{slots:s}=a;const{rtlClasses:t}=i();return c(()=>u(e.tag,{class:["v-container",{"v-container--fluid":e.fluid},t.value,e.class],style:e.style},s)),{}}});export{C as V}; diff --git a/_nuxt/DOfdElmT.js b/_nuxt/DOfdElmT.js new file mode 100644 index 0000000..434336b --- /dev/null +++ b/_nuxt/DOfdElmT.js @@ -0,0 +1 @@ +import{F as K,I as Q,aG as x,b6 as W,r as X,c as P,bL as Y,L as ee,bI as te,A as t,a1 as I,ae,bl as le,bq as ne,S as se,b7 as oe,bF as ie,d as ue,bz as re,ay as de,am as ce,i as me,v as c,a8 as m,B as r,a9 as B,C as H,aa as A,af as n,ak as g,ab as F}from"./CsYHinuP.js";import{a as fe,b as ve,V as U}from"./C5_Hj3rt.js";import{m as Ve,V as D}from"./D3VuSz5Q.js";import{V as Ce}from"./DKIU8Zgl.js";const Le=K({indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...fe(),...Ve()},"VSwitch"),b=Q()({name:"VSwitch",inheritAttrs:!1,props:Le(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,f){let{attrs:v,slots:l}=f;const a=x(e,"indeterminate"),s=x(e,"modelValue"),{loaderClasses:w}=W(e),{isFocused:o,focus:k,blur:i}=ve(e),S=X(),T=P(()=>typeof e.loading=="string"&&e.loading!==""?e.loading:e.color),z=Y(),N=P(()=>e.id||`switch-${z}`);function G(){a.value&&(a.value=!1)}function R(V){var C,L;V.stopPropagation(),V.preventDefault(),(L=(C=S.value)==null?void 0:C.input)==null||L.click()}return ee(()=>{const[V,C]=te(v),L=U.filterProps(e),q=D.filterProps(e);return t(U,I({class:["v-switch",{"v-switch--flat":e.flat},{"v-switch--inset":e.inset},{"v-switch--indeterminate":a.value},w.value,e.class]},V,L,{modelValue:s.value,"onUpdate:modelValue":h=>s.value=h,id:N.value,focused:o.value,style:e.style}),{...l,default:h=>{let{id:O,messagesId:Z,isDisabled:$,isReadonly:j,isValid:M}=h;const _={model:s,isValid:M};return t(D,I({ref:S},q,{modelValue:s.value,"onUpdate:modelValue":[d=>s.value=d,G],id:O.value,"aria-describedby":Z.value,type:"checkbox","aria-checked":a.value?"mixed":void 0,disabled:$.value,readonly:j.value,onFocus:k,onBlur:i},C),{...l,default:d=>{let{backgroundColorClasses:p,backgroundColorStyles:u}=d;return t("div",{class:["v-switch__track",...p.value],style:u.value,onClick:R},[l["track-true"]&&t("div",{key:"prepend",class:"v-switch__track-true"},[l["track-true"](_)]),l["track-false"]&&t("div",{key:"append",class:"v-switch__track-false"},[l["track-false"](_)])])},input:d=>{let{inputNode:p,icon:u,backgroundColorClasses:E,backgroundColorStyles:J}=d;return t(ae,null,[p,t("div",{class:["v-switch__thumb",{"v-switch__thumb--filled":u||e.loading},e.inset?void 0:E.value],style:e.inset?void 0:J.value},[l.thumb?t(le,{defaults:{VIcon:{icon:u,size:"x-small"}}},{default:()=>[l.thumb({..._,icon:u})]}):t(ne,null,{default:()=>[e.loading?t(oe,{name:"v-switch",active:!0,color:M.value===!1?void 0:T.value},{default:y=>l.loader?l.loader(y):t(ie,{active:y.isActive,color:y.color,indeterminate:!0,size:"16",width:"2"},null)}):u&&t(se,{key:String(u),icon:u,size:"x-small"},null)]})])])}})}})}),{}}}),_e=ue({__name:"settings",async setup(e){let f,v;const l=re(),{entities:a}=de(l);[f,v]=ce(()=>l.fetch()),await f,v();const s=()=>{l.update(a.value)};return(w,o)=>{const k=me("font-awesome-icon");return c(),m(Ce,null,{default:r(()=>[t(F,{class:"mb-3"},{default:r(()=>[t(B,null,{default:r(()=>[H("General")]),_:1}),t(A,null,{default:r(()=>[n(a)?(c(),m(b,{key:0,modelValue:n(a).lightMode,"onUpdate:modelValue":o[0]||(o[0]=i=>n(a).lightMode=i),label:"Light mode",inset:"","false-icon":"M17.75,4.09L15.22,6.03L16.13,9.09L13.5,7.28L10.87,9.09L11.78,6.03L9.25,4.09L12.44,4L13.5,1L14.56,4L17.75,4.09M21.25,11L19.61,12.25L20.2,14.23L18.5,13.06L16.8,14.23L17.39,12.25L15.75,11L17.81,10.95L18.5,9L19.19,10.95L21.25,11M18.97,15.95C19.8,15.87 20.69,17.05 20.16,17.8C19.84,18.25 19.5,18.67 19.08,19.07C15.17,23 8.84,23 4.94,19.07C1.03,15.17 1.03,8.83 4.94,4.93C5.34,4.53 5.76,4.17 6.21,3.85C6.96,3.32 8.14,4.21 8.06,5.04C7.79,7.9 8.75,10.87 10.95,13.06C13.14,15.26 16.1,16.22 18.97,15.95M17.33,17.97C14.5,17.81 11.7,16.64 9.53,14.5C7.36,12.31 6.2,9.5 6.04,6.68C3.23,9.82 3.34,14.64 6.35,17.66C9.37,20.67 14.19,20.78 17.33,17.97Z","true-icon":"M3.55 19.09L4.96 20.5L6.76 18.71L5.34 17.29M12 6C8.69 6 6 8.69 6 12S8.69 18 12 18 18 15.31 18 12C18 8.68 15.31 6 12 6M20 13H23V11H20M17.24 18.71L19.04 20.5L20.45 19.09L18.66 17.29M20.45 5L19.04 3.6L17.24 5.39L18.66 6.81M13 1H11V4H13M6.76 5.39L4.96 3.6L3.55 5L5.34 6.81L6.76 5.39M1 13H4V11H1M13 20H11V23H13",onChange:s},null,8,["modelValue"])):g("",!0),n(a)?(c(),m(b,{key:1,modelValue:n(a).metricOrImperial,"onUpdate:modelValue":o[1]||(o[1]=i=>n(a).metricOrImperial=i),label:"Metric or imperial units",inset:"",onChange:s},null,8,["modelValue"])):g("",!0)]),_:1})]),_:1}),t(k,{icon:"fa-brands fa-twitter-square"}),t(F,null,{default:r(()=>[t(B,null,{default:r(()=>[H("Privacy")]),_:1}),t(A,null,{default:r(()=>[n(a)?(c(),m(b,{key:0,modelValue:n(a).externalServices,"onUpdate:modelValue":o[2]||(o[2]=i=>n(a).externalServices=i),label:"Disable external services",inset:"",onChange:s},null,8,["modelValue"])):g("",!0),n(a)?(c(),m(b,{key:1,modelValue:n(a).gps,"onUpdate:modelValue":o[3]||(o[3]=i=>n(a).gps=i),label:"Disable GPS positioning",inset:"",onChange:s},null,8,["modelValue"])):g("",!0)]),_:1})]),_:1})]),_:1})}}});export{_e as default}; diff --git a/_nuxt/DROfdj8r.js b/_nuxt/DROfdj8r.js new file mode 100644 index 0000000..0c308ad --- /dev/null +++ b/_nuxt/DROfdj8r.js @@ -0,0 +1 @@ +import{aM as ft,r as E,aN as vt,F as C,O as q,aO as gt,G as mt,aP as bt,T as ht,W as yt,aQ as pt,X as xt,a3 as Pt,aR as St,I as W,aG as G,aS as Y,aT as wt,a5 as kt,aU as le,ap as It,a6 as de,aH as Vt,c as I,aV as Z,a7 as T,L as U,A as i,aj as M,a1 as F,aW as xe,au as Pe,aL as Ce,a0 as X,aX as Be,as as Ae,J as Q,aY as ue,aZ as Tt,a_ as L,a$ as Dt,b0 as _t,b1 as $e,at as H,b2 as oe,b3 as ee,b4 as fe,b5 as Ft,b6 as Ct,P as Bt,b7 as At,ae as K,S as Se,b8 as Le,C as we,b9 as ie,ba as ke,z as $t,bb as te,bc as Lt}from"./CsYHinuP.js";import{V as Oe,a as ve}from"./9HoxfIWU.js";import{V as Ot}from"./anyozH1k.js";import{m as Rt,V as Ie}from"./CuSTAa19.js";import{m as Nt,u as Et}from"./B5oJa23P.js";function Ve(e,l,a){return Object.keys(e).filter(t=>ft(t)&&t.endsWith(l)).reduce((t,n)=>(t[n.slice(0,-l.length)]=r=>e[n](r,a(r)),t),{})}function Ca(e){const t=Math.min(e,1e3)/1e3,n=Math.round(t*255),r=Math.round((1-t)*255);return`rgb(${n}, ${r}, 0)`}function Mt(){const e=E([]);vt(()=>e.value=[]);function l(a,t){e.value[t]=a}return{refs:e,updateRef:l}}const Gt=C({activeColor:String,start:{type:[Number,String],default:1},modelValue:{type:Number,default:e=>e.start},disabled:Boolean,length:{type:[Number,String],default:1,validator:e=>e%1===0},totalVisible:[Number,String],firstIcon:{type:q,default:"$first"},prevIcon:{type:q,default:"$prev"},nextIcon:{type:q,default:"$next"},lastIcon:{type:q,default:"$last"},ariaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.root"},pageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.page"},currentPageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.currentPage"},firstAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.first"},previousAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.previous"},nextAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.next"},lastAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.last"},ellipsis:{type:String,default:"..."},showFirstLastPage:Boolean,...gt(),...mt(),...bt(),...ht(),...yt(),...pt(),...xt({tag:"nav"}),...Pt(),...St({variant:"text"})},"VPagination"),Te=W()({name:"VPagination",props:Gt(),emits:{"update:modelValue":e=>!0,first:e=>!0,prev:e=>!0,next:e=>!0,last:e=>!0},setup(e,l){let{slots:a,emit:t}=l;const n=G(e,"modelValue"),{t:r,n:u}=Y(),{isRtl:s}=wt(),{themeClasses:f}=kt(e),{width:d}=le(),m=It(-1);de(void 0,{scoped:!0});const{resizeRef:p}=Vt(b=>{if(!b.length)return;const{target:c,contentRect:S}=b[0],w=c.querySelector(".v-pagination__list > *");if(!w)return;const V=S.width,_=w.offsetWidth+parseFloat(getComputedStyle(w).marginRight)*2;m.value=x(V,_)}),v=I(()=>parseInt(e.length,10)),y=I(()=>parseInt(e.start,10)),h=I(()=>e.totalVisible!=null?parseInt(e.totalVisible,10):m.value>=0?m.value:x(d.value,58));function x(b,c){const S=e.showFirstLastPage?5:3;return Math.max(0,Math.floor(+((b-c*S)/c).toFixed(2)))}const o=I(()=>{if(v.value<=0||isNaN(v.value)||v.value>Number.MAX_SAFE_INTEGER)return[];if(h.value<=0)return[];if(h.value===1)return[n.value];if(v.value<=h.value)return Z(v.value,y.value);const b=h.value%2===0,c=b?h.value/2:Math.floor(h.value/2),S=b?c:c+1,w=v.value-c;if(S-n.value>=0)return[...Z(Math.max(1,h.value-1),y.value),e.ellipsis,v.value];if(n.value-w>=(b?1:0)){const V=h.value-1,_=v.value-V+y.value;return[y.value,e.ellipsis,...Z(V,_)]}else{const V=Math.max(1,h.value-3),_=V===1?n.value:n.value-Math.ceil(V/2)+y.value;return[y.value,e.ellipsis,...Z(V,_),e.ellipsis,v.value]}});function P(b,c,S){b.preventDefault(),n.value=c,S&&t(S,c)}const{refs:g,updateRef:D}=Mt();de({VPaginationBtn:{color:T(e,"color"),border:T(e,"border"),density:T(e,"density"),size:T(e,"size"),variant:T(e,"variant"),rounded:T(e,"rounded"),elevation:T(e,"elevation")}});const B=I(()=>o.value.map((b,c)=>{const S=w=>D(w,c);if(typeof b=="string")return{isActive:!1,key:`ellipsis-${c}`,page:b,props:{ref:S,ellipsis:!0,icon:!0,disabled:!0}};{const w=b===n.value;return{isActive:w,key:b,page:u(b),props:{ref:S,ellipsis:!1,icon:!0,disabled:!!e.disabled||+e.length<2,color:w?e.activeColor:e.color,"aria-current":w,"aria-label":r(w?e.currentPageAriaLabel:e.pageAriaLabel,b),onClick:V=>P(V,b)}}}})),k=I(()=>{const b=!!e.disabled||n.value<=y.value,c=!!e.disabled||n.value>=y.value+v.value-1;return{first:e.showFirstLastPage?{icon:s.value?e.lastIcon:e.firstIcon,onClick:S=>P(S,y.value,"first"),disabled:b,"aria-label":r(e.firstAriaLabel),"aria-disabled":b}:void 0,prev:{icon:s.value?e.nextIcon:e.prevIcon,onClick:S=>P(S,n.value-1,"prev"),disabled:b,"aria-label":r(e.previousAriaLabel),"aria-disabled":b},next:{icon:s.value?e.prevIcon:e.nextIcon,onClick:S=>P(S,n.value+1,"next"),disabled:c,"aria-label":r(e.nextAriaLabel),"aria-disabled":c},last:e.showFirstLastPage?{icon:s.value?e.firstIcon:e.lastIcon,onClick:S=>P(S,y.value+v.value-1,"last"),disabled:c,"aria-label":r(e.lastAriaLabel),"aria-disabled":c}:void 0}});function $(){var c;const b=n.value-y.value;(c=g.value[b])==null||c.$el.focus()}function O(b){b.key===xe.left&&!e.disabled&&n.value>+e.start?(n.value=n.value-1,Pe($)):b.key===xe.right&&!e.disabled&&n.valuei(e.tag,{ref:p,class:["v-pagination",f.value,e.class],style:e.style,role:"navigation","aria-label":r(e.ariaLabel),onKeydown:O,"data-test":"v-pagination-root"},{default:()=>[i("ul",{class:"v-pagination__list"},[e.showFirstLastPage&&i("li",{key:"first",class:"v-pagination__first","data-test":"v-pagination-first"},[a.first?a.first(k.value.first):i(M,F({_as:"VPaginationBtn"},k.value.first),null)]),i("li",{key:"prev",class:"v-pagination__prev","data-test":"v-pagination-prev"},[a.prev?a.prev(k.value.prev):i(M,F({_as:"VPaginationBtn"},k.value.prev),null)]),B.value.map((b,c)=>i("li",{key:b.key,class:["v-pagination__item",{"v-pagination__item--is-active":b.isActive}],"data-test":"v-pagination-item"},[a.item?a.item(b):i(M,F({_as:"VPaginationBtn"},b.props),{default:()=>[b.page]})])),i("li",{key:"next",class:"v-pagination__next","data-test":"v-pagination-next"},[a.next?a.next(k.value.next):i(M,F({_as:"VPaginationBtn"},k.value.next),null)]),e.showFirstLastPage&&i("li",{key:"last",class:"v-pagination__last","data-test":"v-pagination-last"},[a.last?a.last(k.value.last):i(M,F({_as:"VPaginationBtn"},k.value.last),null)])])]})),{}}}),Ht=C({page:{type:[Number,String],default:1},itemsPerPage:{type:[Number,String],default:10}},"DataTable-paginate"),Re=Symbol.for("vuetify:data-table-pagination");function Wt(e){const l=G(e,"page",void 0,t=>+(t??1)),a=G(e,"itemsPerPage",void 0,t=>+(t??10));return{page:l,itemsPerPage:a}}function jt(e){const{page:l,itemsPerPage:a,itemsLength:t}=e,n=I(()=>a.value===-1?0:a.value*(l.value-1)),r=I(()=>a.value===-1?t.value:Math.min(t.value,n.value+a.value)),u=I(()=>a.value===-1||t.value===0?1:Math.ceil(t.value/a.value));Ce(()=>{l.value>u.value&&(l.value=u.value)});function s(v){a.value=v,l.value=1}function f(){l.value=ue(l.value+1,1,u.value)}function d(){l.value=ue(l.value-1,1,u.value)}function m(v){l.value=ue(v,1,u.value)}const p={page:l,itemsPerPage:a,startIndex:n,stopIndex:r,pageCount:u,itemsLength:t,nextPage:f,prevPage:d,setPage:m,setItemsPerPage:s};return X(Re,p),p}function zt(){const e=Q(Re);if(!e)throw new Error("Missing pagination!");return e}function qt(e){const l=Be("usePaginatedItems"),{items:a,startIndex:t,stopIndex:n,itemsPerPage:r}=e,u=I(()=>r.value<=0?a.value:a.value.slice(t.value,n.value));return Ae(u,s=>{l.emit("update:currentItems",s)}),{paginatedItems:u}}const Ne=C({prevIcon:{type:String,default:"$prev"},nextIcon:{type:String,default:"$next"},firstIcon:{type:String,default:"$first"},lastIcon:{type:String,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},pageText:{type:String,default:"$vuetify.dataFooter.pageText"},firstPageLabel:{type:String,default:"$vuetify.dataFooter.firstPage"},prevPageLabel:{type:String,default:"$vuetify.dataFooter.prevPage"},nextPageLabel:{type:String,default:"$vuetify.dataFooter.nextPage"},lastPageLabel:{type:String,default:"$vuetify.dataFooter.lastPage"},itemsPerPageOptions:{type:Array,default:()=>[{value:10,title:"10"},{value:25,title:"25"},{value:50,title:"50"},{value:100,title:"100"},{value:-1,title:"$vuetify.dataFooter.itemsPerPageAll"}]},showCurrentPage:Boolean},"VDataTableFooter"),De=W()({name:"VDataTableFooter",props:Ne(),setup(e,l){let{slots:a}=l;const{t}=Y(),{page:n,pageCount:r,startIndex:u,stopIndex:s,itemsLength:f,itemsPerPage:d,setItemsPerPage:m}=zt(),p=I(()=>e.itemsPerPageOptions.map(v=>typeof v=="number"?{value:v,title:v===-1?t("$vuetify.dataFooter.itemsPerPageAll"):String(v)}:{...v,title:isNaN(Number(v.title))?t(v.title):v.title}));return U(()=>{var y;const v=Te.filterProps(e);return i("div",{class:"v-data-table-footer"},[(y=a.prepend)==null?void 0:y.call(a),i("div",{class:"v-data-table-footer__items-per-page"},[i("span",null,[t(e.itemsPerPageText)]),i(Oe,{items:p.value,modelValue:d.value,"onUpdate:modelValue":h=>m(Number(h)),density:"compact",variant:"outlined","hide-details":!0},null)]),i("div",{class:"v-data-table-footer__info"},[i("div",null,[t(e.pageText,f.value?u.value+1:0,s.value,f.value)])]),i("div",{class:"v-data-table-footer__pagination"},[i(Te,F({modelValue:n.value,"onUpdate:modelValue":h=>n.value=h,density:"comfortable","first-aria-label":e.firstPageLabel,"last-aria-label":e.lastPageLabel,length:r.value,"next-aria-label":e.nextPageLabel,"previous-aria-label":e.prevPageLabel,rounded:!0,"show-first-last-page":!0,"total-visible":e.showCurrentPage?1:0,variant:"plain"},v),null)])])}),{}}}),ae=Tt({align:{type:String,default:"start"},fixed:Boolean,fixedOffset:[Number,String],height:[Number,String],lastFixed:Boolean,noPadding:Boolean,tag:String,width:[Number,String],maxWidth:[Number,String],nowrap:Boolean},(e,l)=>{let{slots:a}=l;const t=e.tag??"td";return i(t,{class:["v-data-table__td",{"v-data-table-column--fixed":e.fixed,"v-data-table-column--last-fixed":e.lastFixed,"v-data-table-column--no-padding":e.noPadding,"v-data-table-column--nowrap":e.nowrap},`v-data-table-column--align-${e.align}`],style:{height:L(e.height),width:L(e.width),maxWidth:L(e.maxWidth),left:L(e.fixedOffset||null)}},{default:()=>{var n;return[(n=a.default)==null?void 0:n.call(a)]}})}),Kt=C({headers:Array},"DataTable-header"),Ee=Symbol.for("vuetify:data-table-headers"),Me={title:"",sortable:!1},Ut={...Me,width:48};function Xt(){const l=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).map(a=>({element:a,priority:0}));return{enqueue:(a,t)=>{let n=!1;for(let r=0;rt){l.splice(r,0,{element:a,priority:t}),n=!0;break}n||l.push({element:a,priority:t})},size:()=>l.length,count:()=>{let a=0;if(!l.length)return 0;const t=Math.floor(l[0].priority);for(let n=0;nl.shift()}}function ce(e){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(!e.children)l.push(e);else for(const a of e.children)ce(a,l);return l}function Ge(e){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set;for(const a of e)a.key&&l.add(a.key),a.children&&Ge(a.children,l);return l}function Qt(e){if(e.key){if(e.key==="data-table-group")return Me;if(["data-table-expand","data-table-select"].includes(e.key))return Ut}}function ge(e){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.children?Math.max(l,...e.children.map(a=>ge(a,l+1))):l}function Jt(e){let l=!1;function a(r){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(r)if(u&&(r.fixed=!0),r.fixed)if(r.children)for(let s=r.children.length-1;s>=0;s--)a(r.children[s],!0);else l?isNaN(+r.width)&&_t(`Multiple fixed columns should have a static width (key: ${r.key})`):r.lastFixed=!0,l=!0;else if(r.children)for(let s=r.children.length-1;s>=0;s--)a(r.children[s]);else l=!1}for(let r=e.length-1;r>=0;r--)a(e[r]);function t(r){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!r)return u;if(r.children){r.fixedOffset=u;for(const s of r.children)u=t(s,u)}else r.fixed&&(r.fixedOffset=u,u+=parseFloat(r.width||"0")||0);return u}let n=0;for(const r of e)n=t(r,n)}function Yt(e,l){const a=[];let t=0;const n=Xt(e);for(;n.size()>0;){let u=n.count();const s=[];let f=1;for(;u>0;){const{element:d,priority:m}=n.dequeue(),p=l-t-ge(d);if(s.push({...d,rowspan:p??1,colspan:d.children?ce(d).length:1}),d.children)for(const v of d.children){const y=m%1+f/Math.pow(10,t+2);n.enqueue(v,t+p+y)}f+=1,u-=1}t+=1,a.push(s)}return{columns:e.map(u=>ce(u)).flat(),headers:a}}function He(e){const l=[];for(const a of e){const t={...Qt(a),...a},n=t.key??(typeof t.value=="string"?t.value:null),r=t.value??n??null,u={...t,key:n,value:r,sortable:t.sortable??(t.key!=null||!!t.sort),children:t.children?He(t.children):void 0};l.push(u)}return l}function Zt(e,l){const a=E([]),t=E([]),n=E({}),r=E({}),u=E({});Ce(()=>{var x,o,P;const d=(e.headers||Object.keys(e.items[0]??{}).map(g=>({key:g,title:Dt(g)}))).slice(),m=Ge(d);(x=l==null?void 0:l.groupBy)!=null&&x.value.length&&!m.has("data-table-group")&&d.unshift({key:"data-table-group",title:"Group"}),(o=l==null?void 0:l.showSelect)!=null&&o.value&&!m.has("data-table-select")&&d.unshift({key:"data-table-select"}),(P=l==null?void 0:l.showExpand)!=null&&P.value&&!m.has("data-table-expand")&&d.push({key:"data-table-expand"});const p=He(d);Jt(p);const v=Math.max(...p.map(g=>ge(g)))+1,y=Yt(p,v);a.value=y.headers,t.value=y.columns;const h=y.headers.flat(1);for(const g of h)g.key&&(g.sortable&&(g.sort&&(n.value[g.key]=g.sort),g.sortRaw&&(r.value[g.key]=g.sortRaw)),g.filter&&(u.value[g.key]=g.filter))});const s={headers:a,columns:t,sortFunctions:n,sortRawFunctions:r,filterFunctions:u};return X(Ee,s),s}function ne(){const e=Q(Ee);if(!e)throw new Error("Missing headers!");return e}const ea={showSelectAll:!1,allSelected:()=>[],select:e=>{var t;let{items:l,value:a}=e;return new Set(a?[H((t=l[0])==null?void 0:t.value)]:[])},selectAll:e=>{let{selected:l}=e;return l}},We={showSelectAll:!0,allSelected:e=>{let{currentPage:l}=e;return l},select:e=>{let{items:l,value:a,selected:t}=e;for(const n of l)a?t.add(H(n.value)):t.delete(H(n.value));return t},selectAll:e=>{let{value:l,currentPage:a,selected:t}=e;return We.select({items:a,value:l,selected:t})}},je={showSelectAll:!0,allSelected:e=>{let{allItems:l}=e;return l},select:e=>{let{items:l,value:a,selected:t}=e;for(const n of l)a?t.add(H(n.value)):t.delete(H(n.value));return t},selectAll:e=>{let{value:l,allItems:a,selected:t}=e;return je.select({items:a,value:l,selected:t})}},ta=C({showSelect:Boolean,selectStrategy:{type:[String,Object],default:"page"},modelValue:{type:Array,default:()=>[]},valueComparator:{type:Function,default:$e}},"DataTable-select"),ze=Symbol.for("vuetify:data-table-selection");function aa(e,l){let{allItems:a,currentPage:t}=l;const n=G(e,"modelValue",e.modelValue,o=>new Set(oe(o).map(P=>{var g;return((g=a.value.find(D=>e.valueComparator(P,D.value)))==null?void 0:g.value)??P})),o=>[...o.values()]),r=I(()=>a.value.filter(o=>o.selectable)),u=I(()=>t.value.filter(o=>o.selectable)),s=I(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;switch(e.selectStrategy){case"single":return ea;case"all":return je;case"page":default:return We}});function f(o){return oe(o).every(P=>n.value.has(H(P.value)))}function d(o){return oe(o).some(P=>n.value.has(H(P.value)))}function m(o,P){const g=s.value.select({items:o,value:P,selected:new Set(n.value)});n.value=g}function p(o){const P=T(o);m([P.value],!f([P.value]))}function v(o){const P=s.value.selectAll({value:o,allItems:r.value,currentPage:u.value,selected:new Set(n.value)});n.value=P}const y=I(()=>n.value.size>0),h=I(()=>{const o=s.value.allSelected({allItems:r.value,currentPage:u.value});return!!o.length&&f(o)}),x={toggleSelect:p,select:m,selectAll:v,isSelected:f,isSomeSelected:d,someSelected:y,allSelected:h,showSelectAll:s.value.showSelectAll};return X(ze,x),x}function re(){const e=Q(ze);if(!e)throw new Error("Missing selection!");return e}const la=C({sortBy:{type:Array,default:()=>[]},customKeySort:Object,multiSort:Boolean,mustSort:Boolean},"DataTable-sort"),qe=Symbol.for("vuetify:data-table-sort");function na(e){const l=G(e,"sortBy"),a=T(e,"mustSort"),t=T(e,"multiSort");return{sortBy:l,mustSort:a,multiSort:t}}function ra(e){const{sortBy:l,mustSort:a,multiSort:t,page:n}=e,r=f=>{if(f.key==null)return;let d=l.value.map(p=>({...p}))??[];const m=d.find(p=>p.key===f.key);m?m.order==="desc"?a.value?m.order="asc":d=d.filter(p=>p.key!==f.key):m.order="desc":t.value?d=[...d,{key:f.key,order:"asc"}]:d=[{key:f.key,order:"asc"}],l.value=d,n&&(n.value=1)};function u(f){return!!l.value.find(d=>d.key===f.key)}const s={sortBy:l,toggleSort:r,isSorted:u};return X(qe,s),s}function Ke(){const e=Q(qe);if(!e)throw new Error("Missing sort!");return e}function sa(e,l,a,t){const n=Y();return{sortedItems:I(()=>{var u,s;return a.value.length?ua(l.value,a.value,n.current.value,{transform:t==null?void 0:t.transform,sortFunctions:{...e.customKeySort,...(u=t==null?void 0:t.sortFunctions)==null?void 0:u.value},sortRawFunctions:(s=t==null?void 0:t.sortRawFunctions)==null?void 0:s.value}):l.value})}}function ua(e,l,a,t){const n=new Intl.Collator(a,{sensitivity:"accent",usage:"sort"});return e.map(u=>[u,t!=null&&t.transform?t.transform(u):u]).sort((u,s)=>{var f,d;for(let m=0;mg!=null?g.toString().toLocaleLowerCase():g),h!==x)return ee(h)&&ee(x)?0:ee(h)?-1:ee(x)?1:!isNaN(h)&&!isNaN(x)?Number(h)-Number(x):n.compare(h,x)}}return 0}).map(u=>{let[s]=u;return s})}const Ue=C({color:String,sticky:Boolean,multiSort:Boolean,sortAscIcon:{type:q,default:"$sortAsc"},sortDescIcon:{type:q,default:"$sortDesc"},headerProps:{type:Object},...fe(),...Ft()},"VDataTableHeaders"),_e=W()({name:"VDataTableHeaders",props:Ue(),setup(e,l){let{slots:a}=l;const{t}=Y(),{toggleSort:n,sortBy:r,isSorted:u}=Ke(),{someSelected:s,allSelected:f,selectAll:d,showSelectAll:m}=re(),{columns:p,headers:v}=ne(),{loaderClasses:y}=Ct(e);function h(b,c){if(!(!e.sticky&&!b.fixed))return{position:"sticky",left:b.fixed?L(b.fixedOffset):void 0,top:e.sticky?`calc(var(--v-table-header-height) * ${c})`:void 0}}function x(b){const c=r.value.find(S=>S.key===b.key);return c?c.order==="asc"?e.sortAscIcon:e.sortDescIcon:e.sortAscIcon}const{backgroundColorClasses:o,backgroundColorStyles:P}=Bt(e,"color"),{displayClasses:g,mobile:D}=le(e),B=I(()=>({headers:v.value,columns:p.value,toggleSort:n,isSorted:u,sortBy:r.value,someSelected:s.value,allSelected:f.value,selectAll:d,getSortIcon:x})),k=I(()=>["v-data-table__th",{"v-data-table__th--sticky":e.sticky},g.value,y.value]),$=b=>{let{column:c,x:S,y:w}=b;const V=c.key==="data-table-select"||c.key==="data-table-expand",_=F(e.headerProps??{},c.headerProps??{});return i(ae,F({tag:"th",align:c.align,class:[{"v-data-table__th--sortable":c.sortable,"v-data-table__th--sorted":u(c),"v-data-table__th--fixed":c.fixed},...k.value],style:{width:L(c.width),minWidth:L(c.minWidth),maxWidth:L(c.maxWidth),...h(c,w)},colspan:c.colspan,rowspan:c.rowspan,onClick:c.sortable?()=>n(c):void 0,fixed:c.fixed,nowrap:c.nowrap,lastFixed:c.lastFixed,noPadding:V},_),{default:()=>{var z;const R=`header.${c.key}`,j={column:c,selectAll:d,isSorted:u,toggleSort:n,sortBy:r.value,someSelected:s.value,allSelected:f.value,getSortIcon:x};return a[R]?a[R](j):c.key==="data-table-select"?((z=a["header.data-table-select"])==null?void 0:z.call(a,j))??(m&&i(ve,{modelValue:f.value,indeterminate:s.value&&!f.value,"onUpdate:modelValue":d},null)):i("div",{class:"v-data-table-header__content"},[i("span",null,[c.title]),c.sortable&&i(Se,{key:"icon",class:"v-data-table-header__sort-icon",icon:x(c)},null),e.multiSort&&u(c)&&i("div",{key:"badge",class:["v-data-table-header__sort-badge",...o.value],style:P.value},[r.value.findIndex(se=>se.key===c.key)+1])])}})},O=()=>{const b=F(e.headerProps??{}??{}),c=I(()=>p.value.filter(w=>w==null?void 0:w.sortable)),S=I(()=>f.value?"$checkboxOn":s.value?"$checkboxIndeterminate":"$checkboxOff");return i(ae,F({tag:"th",class:[...k.value],colspan:v.value.length+1},b),{default:()=>[i("div",{class:"v-data-table-header__content"},[i(Oe,{chips:!0,class:"v-data-table__td-sort-select",clearable:!0,density:"default",items:c.value,label:t("$vuetify.dataTable.sortBy"),multiple:e.multiSort,variant:"underlined","onClick:clear":()=>r.value=[],appendIcon:S.value,"onClick:append":()=>d(!f.value)},{...a,chip:w=>{var V;return i(Ot,{onClick:(V=w.item.raw)!=null&&V.sortable?()=>n(w.item.raw):void 0,onMousedown:_=>{_.preventDefault(),_.stopPropagation()}},{default:()=>[w.item.title,i(Se,{class:["v-data-table__td-sort-icon",u(w.item.raw)&&"v-data-table__td-sort-icon-active"],icon:x(w.item.raw),size:"small"},null)]})}})])]})};U(()=>D.value?i("tr",null,[i(O,null,null)]):i(K,null,[a.headers?a.headers(B.value):v.value.map((b,c)=>i("tr",null,[b.map((S,w)=>i($,{column:S,x:w,y:c},null))])),e.loading&&i("tr",{class:"v-data-table-progress"},[i("th",{colspan:p.value.length},[i(At,{name:"v-data-table-progress",absolute:!0,active:!0,color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0},{default:a.loader})])])]))}}),oa=C({groupBy:{type:Array,default:()=>[]}},"DataTable-group"),Xe=Symbol.for("vuetify:data-table-group");function ia(e){return{groupBy:G(e,"groupBy")}}function da(e){const{groupBy:l,sortBy:a}=e,t=E(new Set),n=I(()=>l.value.map(d=>({...d,order:d.order??!1})).concat(a.value));function r(d){return t.value.has(d.id)}function u(d){const m=new Set(t.value);r(d)?m.delete(d.id):m.add(d.id),t.value=m}function s(d){function m(p){const v=[];for(const y of p.items)"type"in y&&y.type==="group"?v.push(...m(y)):v.push(y);return v}return m({type:"group",items:d,id:"dummy",key:"dummy",value:"dummy",depth:0})}const f={sortByWithGroups:n,toggleGroup:u,opened:t,groupBy:l,extractRows:s,isGroupOpen:r};return X(Xe,f),f}function Qe(){const e=Q(Xe);if(!e)throw new Error("Missing group!");return e}function ca(e,l){if(!e.length)return[];const a=new Map;for(const t of e){const n=Le(t.raw,l);a.has(n)||a.set(n,[]),a.get(n).push(t)}return a}function Je(e,l){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"root";if(!l.length)return[];const n=ca(e,l[0]),r=[],u=l.slice(1);return n.forEach((s,f)=>{const d=l[0],m=`${t}_${d}_${f}`;r.push({depth:a,id:m,key:d,value:f,items:u.length?Je(s,u,a+1,m):s,type:"group"})}),r}function Ye(e,l){const a=[];for(const t of e)"type"in t&&t.type==="group"?(t.value!=null&&a.push(t),(l.has(t.id)||t.value==null)&&a.push(...Ye(t.items,l))):a.push(t);return a}function fa(e,l,a){return{flatItems:I(()=>{if(!l.value.length)return e.value;const n=Je(e.value,l.value.map(r=>r.key));return Ye(n,a.value)})}}const va=C({item:{type:Object,required:!0}},"VDataTableGroupHeaderRow"),ga=W()({name:"VDataTableGroupHeaderRow",props:va(),setup(e,l){let{slots:a}=l;const{isGroupOpen:t,toggleGroup:n,extractRows:r}=Qe(),{isSelected:u,isSomeSelected:s,select:f}=re(),{columns:d}=ne(),m=I(()=>r([e.item]));return()=>i("tr",{class:"v-data-table-group-header-row",style:{"--v-data-table-group-header-row-depth":e.item.depth}},[d.value.map(p=>{var v,y;if(p.key==="data-table-group"){const h=t(e.item)?"$expand":"$next",x=()=>n(e.item);return((v=a["data-table-group"])==null?void 0:v.call(a,{item:e.item,count:m.value.length,props:{icon:h,onClick:x}}))??i(ae,{class:"v-data-table-group-header-row__column"},{default:()=>[i(M,{size:"small",variant:"text",icon:h,onClick:x},null),i("span",null,[e.item.value]),i("span",null,[we("("),m.value.length,we(")")])]})}if(p.key==="data-table-select"){const h=u(m.value),x=s(m.value)&&!h,o=P=>f(m.value,P);return((y=a["data-table-select"])==null?void 0:y.call(a,{props:{modelValue:h,indeterminate:x,"onUpdate:modelValue":o}}))??i("td",null,[i(ve,{modelValue:h,indeterminate:x,"onUpdate:modelValue":o},null)])}return i("td",null,null)})])}}),ma=C({expandOnClick:Boolean,showExpand:Boolean,expanded:{type:Array,default:()=>[]}},"DataTable-expand"),Ze=Symbol.for("vuetify:datatable:expanded");function ba(e){const l=T(e,"expandOnClick"),a=G(e,"expanded",e.expanded,s=>new Set(s),s=>[...s.values()]);function t(s,f){const d=new Set(a.value);f?d.add(s.value):d.delete(s.value),a.value=d}function n(s){return a.value.has(s.value)}function r(s){t(s,!n(s))}const u={expand:t,expanded:a,expandOnClick:l,isExpanded:n,toggleExpand:r};return X(Ze,u),u}function et(){const e=Q(Ze);if(!e)throw new Error("foo");return e}const ha=C({index:Number,item:Object,cellProps:[Object,Function],onClick:ie(),onContextmenu:ie(),onDblclick:ie(),...fe()},"VDataTableRow"),ya=W()({name:"VDataTableRow",props:ha(),setup(e,l){let{slots:a}=l;const{displayClasses:t,mobile:n}=le(e,"v-data-table__tr"),{isSelected:r,toggleSelect:u,someSelected:s,allSelected:f,selectAll:d}=re(),{isExpanded:m,toggleExpand:p}=et(),{toggleSort:v,sortBy:y,isSorted:h}=Ke(),{columns:x}=ne();U(()=>i("tr",{class:["v-data-table__tr",{"v-data-table__tr--clickable":!!(e.onClick||e.onContextmenu||e.onDblclick)},t.value],onClick:e.onClick,onContextmenu:e.onContextmenu,onDblclick:e.onDblclick},[e.item&&x.value.map((o,P)=>{const g=e.item,D=`item.${o.key}`,B=`header.${o.key}`,k={index:e.index,item:g.raw,internalItem:g,value:Le(g.columns,o.key),column:o,isSelected:r,toggleSelect:u,isExpanded:m,toggleExpand:p},$={column:o,selectAll:d,isSorted:h,toggleSort:v,sortBy:y.value,someSelected:s.value,allSelected:f.value,getSortIcon:()=>""},O=typeof e.cellProps=="function"?e.cellProps({index:k.index,item:k.item,internalItem:k.internalItem,value:k.value,column:o}):e.cellProps,b=typeof o.cellProps=="function"?o.cellProps({index:k.index,item:k.item,internalItem:k.internalItem,value:k.value}):o.cellProps;return i(ae,F({align:o.align,class:{"v-data-table__td--expanded-row":o.key==="data-table-expand","v-data-table__td--select-row":o.key==="data-table-select"},fixed:o.fixed,fixedOffset:o.fixedOffset,lastFixed:o.lastFixed,maxWidth:n.value?void 0:o.maxWidth,noPadding:o.key==="data-table-select"||o.key==="data-table-expand",nowrap:o.nowrap,width:n.value?void 0:o.width},O,b),{default:()=>{var S,w,V,_,R;if(a[D]&&!n.value)return(S=a[D])==null?void 0:S.call(a,k);if(o.key==="data-table-select")return((w=a["item.data-table-select"])==null?void 0:w.call(a,k))??i(ve,{disabled:!g.selectable,modelValue:r([g]),onClick:ke(()=>u(g),["stop"])},null);if(o.key==="data-table-expand")return((V=a["item.data-table-expand"])==null?void 0:V.call(a,k))??i(M,{icon:m(g)?"$collapse":"$expand",size:"small",variant:"text",onClick:ke(()=>p(g),["stop"])},null);const c=$t(k.value);return n.value?i(K,null,[i("div",{class:"v-data-table__td-title"},[((_=a[B])==null?void 0:_.call(a,$))??o.title]),i("div",{class:"v-data-table__td-value"},[((R=a[D])==null?void 0:R.call(a,k))??c])]):c}})})]))}}),tt=C({loading:[Boolean,String],loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideNoData:Boolean,items:{type:Array,default:()=>[]},noDataText:{type:String,default:"$vuetify.noDataText"},rowProps:[Object,Function],cellProps:[Object,Function],...fe()},"VDataTableRows"),Fe=W()({name:"VDataTableRows",inheritAttrs:!1,props:tt(),setup(e,l){let{attrs:a,slots:t}=l;const{columns:n}=ne(),{expandOnClick:r,toggleExpand:u,isExpanded:s}=et(),{isSelected:f,toggleSelect:d}=re(),{toggleGroup:m,isGroupOpen:p}=Qe(),{t:v}=Y(),{mobile:y}=le(e);return U(()=>{var h,x;return e.loading&&(!e.items.length||t.loading)?i("tr",{class:"v-data-table-rows-loading",key:"loading"},[i("td",{colspan:n.value.length},[((h=t.loading)==null?void 0:h.call(t))??v(e.loadingText)])]):!e.loading&&!e.items.length&&!e.hideNoData?i("tr",{class:"v-data-table-rows-no-data",key:"no-data"},[i("td",{colspan:n.value.length},[((x=t["no-data"])==null?void 0:x.call(t))??v(e.noDataText)])]):i(K,null,[e.items.map((o,P)=>{var B;if(o.type==="group"){const k={index:P,item:o,columns:n.value,isExpanded:s,toggleExpand:u,isSelected:f,toggleSelect:d,toggleGroup:m,isGroupOpen:p};return t["group-header"]?t["group-header"](k):i(ga,F({key:`group-header_${o.id}`,item:o},Ve(a,":group-header",()=>k)),t)}const g={index:P,item:o.raw,internalItem:o,columns:n.value,isExpanded:s,toggleExpand:u,isSelected:f,toggleSelect:d},D={...g,props:F({key:`item_${o.key??o.index}`,onClick:r.value?()=>{u(o)}:void 0,index:P,item:o,cellProps:e.cellProps,mobile:y.value},Ve(a,":row",()=>g),typeof e.rowProps=="function"?e.rowProps({item:g.item,index:g.index,internalItem:g.internalItem}):e.rowProps)};return i(K,{key:D.props.key},[t.item?t.item(D):i(ya,D.props,t),s(o)&&((B=t["expanded-row"])==null?void 0:B.call(t,g))])})])}),{}}}),pa=C({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},rowProps:[Object,Function],cellProps:[Object,Function],returnObject:Boolean},"DataTable-items");function xa(e,l,a,t){const n=e.returnObject?l:te(l,e.itemValue),r=te(l,e.itemSelectable,!0),u=t.reduce((s,f)=>(f.key!=null&&(s[f.key]=te(l,f.value)),s),{});return{type:"item",key:e.returnObject?te(l,e.itemValue):n,index:a,value:n,selectable:r,columns:u,raw:l}}function Pa(e,l,a){return l.map((t,n)=>xa(e,t,n,a))}function Sa(e,l){return{items:I(()=>Pa(e,e.items,l.value))}}function wa(e){let{page:l,itemsPerPage:a,sortBy:t,groupBy:n,search:r}=e;const u=Be("VDataTable"),s=I(()=>({page:l.value,itemsPerPage:a.value,sortBy:t.value,groupBy:n.value,search:r.value}));let f=null;Ae(s,()=>{$e(f,s.value)||(f&&f.search!==s.value.search&&(l.value=1),u.emit("update:options",s.value),f=s.value)},{deep:!0,immediate:!0})}const ka=C({...tt(),width:[String,Number],search:String,...ma(),...oa(),...Kt(),...pa(),...ta(),...la(),...Ue(),...Rt()},"DataTable"),Ia=C({...Ht(),...ka(),...Nt(),...Ne()},"VDataTable"),Ba=W()({name:"VDataTable",props:Ia(),emits:{"update:modelValue":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>!0,"update:expanded":e=>!0,"update:currentItems":e=>!0},setup(e,l){let{attrs:a,slots:t}=l;const{groupBy:n}=ia(e),{sortBy:r,multiSort:u,mustSort:s}=na(e),{page:f,itemsPerPage:d}=Wt(e),{columns:m,headers:p,sortFunctions:v,sortRawFunctions:y,filterFunctions:h}=Zt(e,{groupBy:n,showSelect:T(e,"showSelect"),showExpand:T(e,"showExpand")}),{items:x}=Sa(e,m),o=T(e,"search"),{filteredItems:P}=Et(e,x,o,{transform:N=>N.columns,customKeyFilter:h}),{toggleSort:g}=ra({sortBy:r,multiSort:u,mustSort:s,page:f}),{sortByWithGroups:D,opened:B,extractRows:k,isGroupOpen:$,toggleGroup:O}=da({groupBy:n,sortBy:r}),{sortedItems:b}=sa(e,P,D,{transform:N=>N.columns,sortFunctions:v,sortRawFunctions:y}),{flatItems:c}=fa(b,n,B),S=I(()=>c.value.length),{startIndex:w,stopIndex:V,pageCount:_,setItemsPerPage:R}=jt({page:f,itemsPerPage:d,itemsLength:S}),{paginatedItems:j}=qt({items:c,startIndex:w,stopIndex:V,itemsPerPage:d}),z=I(()=>k(j.value)),{isSelected:se,select:at,selectAll:lt,toggleSelect:nt,someSelected:rt,allSelected:st}=aa(e,{allItems:x,currentPage:z}),{isExpanded:ut,toggleExpand:ot}=ba(e);wa({page:f,itemsPerPage:d,sortBy:r,groupBy:n,search:o}),de({VDataTableRows:{hideNoData:T(e,"hideNoData"),noDataText:T(e,"noDataText"),loading:T(e,"loading"),loadingText:T(e,"loadingText")}});const A=I(()=>({page:f.value,itemsPerPage:d.value,sortBy:r.value,pageCount:_.value,toggleSort:g,setItemsPerPage:R,someSelected:rt.value,allSelected:st.value,isSelected:se,select:at,selectAll:lt,toggleSelect:nt,isExpanded:ut,toggleExpand:ot,isGroupOpen:$,toggleGroup:O,items:z.value.map(N=>N.raw),internalItems:z.value,groupedItems:j.value,columns:m.value,headers:p.value}));return U(()=>{const N=De.filterProps(e),it=_e.filterProps(e),dt=Fe.filterProps(e),ct=Ie.filterProps(e);return i(Ie,F({class:["v-data-table",{"v-data-table--show-select":e.showSelect,"v-data-table--loading":e.loading},e.class],style:e.style},ct),{top:()=>{var J;return(J=t.top)==null?void 0:J.call(t,A.value)},default:()=>{var J,me,be,he,ye,pe;return t.default?t.default(A.value):i(K,null,[(J=t.colgroup)==null?void 0:J.call(t,A.value),i("thead",null,[i(_e,it,t)]),(me=t.thead)==null?void 0:me.call(t,A.value),i("tbody",null,[(be=t["body.prepend"])==null?void 0:be.call(t,A.value),t.body?t.body(A.value):i(Fe,F(a,dt,{items:j.value}),t),(he=t["body.append"])==null?void 0:he.call(t,A.value)]),(ye=t.tbody)==null?void 0:ye.call(t,A.value),(pe=t.tfoot)==null?void 0:pe.call(t,A.value)])},bottom:()=>t.bottom?t.bottom(A.value):i(K,null,[i(Lt,null,null),i(De,N,{prepend:t["footer.prepend"]})])})}),{}}});export{Ba as V,Ca as _}; diff --git a/_nuxt/DhyvG-cD.js b/_nuxt/DhyvG-cD.js new file mode 100644 index 0000000..ab41ae8 --- /dev/null +++ b/_nuxt/DhyvG-cD.js @@ -0,0 +1 @@ +import{_ as S}from"./cxFlIQmQ.js";import{d as w,ax as T,a7 as H,am as B,r as C,v as k,a8 as L,B as o,A as a,af as i,ag as M,aj as p,q as V,S as y,C as _,z as I,ab as F,y as A,F as $,aC as x,aD as P,aE as R,aF as D,I as z,aG as N,ap as Z,aH as E,c,aI as j,L as q,aJ as G,M as J,N as K,a1 as O,aK as U,aL as W,_ as Q}from"./CsYHinuP.js";import{V as X,_ as Y}from"./DROfdj8r.js";import{V as ee}from"./Ckgx-ZkB.js";import{V as te}from"./anyozH1k.js";import{V as ae}from"./DKIU8Zgl.js";import"./9HoxfIWU.js";import"./C5_Hj3rt.js";import"./D3VuSz5Q.js";import"./CuSTAa19.js";import"./B5oJa23P.js";const oe=A("span",null," Edit ",-1),ne=A("span",{class:"d-none d-sm-block"}," Delete ",-1),le=w({__name:"list",async setup(e){let r,u;const d=T(),m=H(d);[r,u]=B(()=>d.fetch()),await r,u();const b=[{title:"Name",value:"name",sortable:!0,filterable:!0},{title:"Category",value:"category",sortable:!0,filterable:!0},{title:"Weight",value:"weight",sortable:!0,filterable:!0},{title:"",value:"edit",align:"end",width:"50px",sortable:!1,filterable:!1},{title:"",value:"delete",align:"end",width:"5px",sortable:!1,filterable:!1}],f=C(""),v={weight:(t,l)=>t-l,category:(t,l)=>t.name.localeCompare(l.name),amount:(t,l)=>t-l},g={};return(t,l)=>{const s=S;return k(),L(F,null,{text:o(()=>[a(ee,{modelValue:i(f),"onUpdate:modelValue":l[0]||(l[0]=n=>M(f)?f.value=n:null),label:"Search","prepend-inner-icon":"M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z",variant:"outlined","hide-details":"","single-line":""},null,8,["modelValue"])]),default:o(()=>[a(X,{id:"items-table",items:i(m).entities,headers:b,"items-per-page":"50",search:i(f),"custom-key-sort":v,"custom-filter":g,"mobile-breakpoint":"0"},{"item.category":o(({item:n})=>[a(s,{category:n.category},null,8,["category"])]),"item.edit":o(({item:n})=>[a(p,{class:"d-block d-sm-none",onClick:h=>("navigateTo"in t?t.navigateTo:i(V))(`/items/${n.id}`)},{default:o(()=>[a(y,null,{default:o(()=>[_("M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z")]),_:1})]),_:2},1032,["onClick"]),a(p,{class:"d-none d-sm-block",onClick:h=>("navigateTo"in t?t.navigateTo:i(V))(`/items/${n.id}`)},{default:o(()=>[oe]),_:2},1032,["onClick"])]),"item.delete":o(({item:n})=>[a(p,{"prepend-icon":"M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",onClick:h=>t.deleteDialog(n)},{default:o(()=>[ne]),_:2},1032,["onClick"])]),"item.weight":o(({item:n})=>[a(te,{color:("weightColor"in t?t.weightColor:i(Y))(n.weight)},{default:o(()=>[a(y,null,{default:o(()=>[_("M12,3A4,4 0 0,1 16,7C16,7.73 15.81,8.41 15.46,9H18C18.95,9 19.75,9.67 19.95,10.56C21.96,18.57 22,18.78 22,19A2,2 0 0,1 20,21H4A2,2 0 0,1 2,19C2,18.78 2.04,18.57 4.05,10.56C4.25,9.67 5.05,9 6,9H8.54C8.19,8.41 8,7.73 8,7A4,4 0 0,1 12,3M12,5A2,2 0 0,0 10,7A2,2 0 0,0 12,9A2,2 0 0,0 14,7A2,2 0 0,0 12,5Z")]),_:1}),_("   "+I(n.weight),1)]),_:2},1032,["color"])]),_:1},8,["items","search"])]),_:1})}}}),se=$({app:Boolean,appear:Boolean,extended:Boolean,layout:Boolean,location:{type:String,default:"bottom end"},offset:Boolean,modelValue:{type:Boolean,default:!0},...x(P({active:!0}),["location"]),...R(),...D({transition:"fab-transition"})},"VFab"),ie=z()({name:"VFab",props:se(),emits:{"update:modelValue":e=>!0},setup(e,r){let{slots:u}=r;const d=N(e,"modelValue"),m=Z(56),b=C(),{resizeRef:f}=E(s=>{s.length&&(m.value=s[0].target.clientHeight)}),v=c(()=>e.app||e.absolute),g=c(()=>v.value?e.location.split(" ").shift():!1),t=c(()=>v.value?e.location.split(" ")[1]??"end":!1);j(()=>e.app,()=>{const s=U({id:e.name,order:c(()=>parseInt(e.order,10)),position:g,layoutSize:c(()=>e.layout?m.value+24:0),elementSize:c(()=>m.value+24),active:c(()=>e.app&&d.value),absolute:H(e,"absolute")});W(()=>{b.value=s.layoutItemStyles.value})});const l=C();return q(()=>{const s=p.filterProps(e);return a("div",{ref:l,class:["v-fab",{"v-fab--absolute":e.absolute,"v-fab--app":!!e.app,"v-fab--extended":e.extended,"v-fab--offset":e.offset,[`v-fab--${g.value}`]:v.value,[`v-fab--${t.value}`]:v.value},e.class],style:[e.app?{...b.value}:{height:"inherit",width:void 0},e.style]},[a("div",{class:"v-fab__container"},[a(G,{appear:e.appear,transition:e.transition},{default:()=>[J(a(p,O({ref:f},s,{active:void 0,location:void 0}),u),[[K,e.active]])]})])])}),{}}}),re=w({__name:"index",setup(e){return(r,u)=>{const d=le;return k(),L(ae,null,{default:o(()=>[a(i(ie),{icon:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",class:"pa-5",onClick:u[0]||(u[0]=m=>("navigateTo"in r?r.navigateTo:i(V))("/items/new"))}),a(d)]),_:1})}}}),Ve=Q(re,[["__scopeId","data-v-42575f5d"]]);export{Ve as default}; diff --git a/_nuxt/DkwyJ7jd.js b/_nuxt/DkwyJ7jd.js new file mode 100644 index 0000000..900fb14 --- /dev/null +++ b/_nuxt/DkwyJ7jd.js @@ -0,0 +1 @@ +import{_ as M,v as C,a8 as _,B as t,A as s,S as i,C as n,z as o,y as u,x as d,ak as m,ae as y,ad as p,af as h,q as k,D as v,E as D}from"./CsYHinuP.js";import{a as f,V as S}from"./DoIRHZ99.js";import{a as g,V as A}from"./anyozH1k.js";const w={methods:{formatDate(e){const l=new Date(e);return new Intl.DateTimeFormat("en-US",{dateStyle:"long"}).format(l)}}},I={mixins:[w],props:{entity:Object({})}},H=e=>(v("data-v-9808842a"),e=e(),D(),e),x=H(()=>u("br",null,null,-1)),B={key:0},T=H(()=>u("br",null,null,-1)),L={key:1};function N(e,l,a,Z,b,E){return C(),_(S,{class:"link",onClick:l[0]||(l[0]=r=>("navigateTo"in e?e.navigateTo:h(k))(`/trips/${a.entity.id}/`))},{default:t(()=>[s(f,{cols:"2",class:"d-none d-sm-flex"},{default:t(()=>[s(i,{class:"placeholder-icon h-100 w-100"},{default:t(()=>[n("custom:trip")]),_:1})]),_:1}),s(f,{cols:"12",sm:"10"},{default:t(()=>{var r,c;return[n(o(a.entity.name)+" ",1),x,s(i,null,{default:t(()=>[n("M9,10H7V12H9V10M13,10H11V12H13V10M17,10H15V12H17V10M19,3H18V1H16V3H8V1H6V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3M19,19H5V8H19V19Z")]),_:1}),u("span",null,o(e.formatDate(a.entity.start)),1),n(" - "),a.entity.end?(C(),d("span",B,o(e.formatDate(a.entity.end)),1)):m("",!0),T,(c=(r=a.entity)==null?void 0:r.routes)!=null&&c.distance?(C(),d("span",L,[s(i,null,{default:t(()=>[n("M6.5,8.11C5.61,8.11 4.89,7.39 4.89,6.5A1.61,1.61 0 0,1 6.5,4.89C7.39,4.89 8.11,5.61 8.11,6.5V6.5A1.61,1.61 0 0,1 6.5,8.11M6.5,2C4,2 2,4 2,6.5C2,9.87 6.5,14.86 6.5,14.86C6.5,14.86 11,9.87 11,6.5C11,4 9,2 6.5,2M17.5,8.11A1.61,1.61 0 0,1 15.89,6.5C15.89,5.61 16.61,4.89 17.5,4.89C18.39,4.89 19.11,5.61 19.11,6.5A1.61,1.61 0 0,1 17.5,8.11M17.5,2C15,2 13,4 13,6.5C13,9.87 17.5,14.86 17.5,14.86C17.5,14.86 22,9.87 22,6.5C22,4 20,2 17.5,2M17.5,16C16.23,16 15.1,16.8 14.68,18H9.32C8.77,16.44 7.05,15.62 5.5,16.17C3.93,16.72 3.11,18.44 3.66,20C4.22,21.56 5.93,22.38 7.5,21.83C8.35,21.53 9,20.85 9.32,20H14.69C15.24,21.56 16.96,22.38 18.5,21.83C20.08,21.28 20.9,19.56 20.35,18C19.92,16.8 18.78,16 17.5,16V16M17.5,20.5A1.5,1.5 0 0,1 16,19A1.5,1.5 0 0,1 17.5,17.5A1.5,1.5 0 0,1 19,19A1.5,1.5 0 0,1 17.5,20.5Z")]),_:1}),n(" "+o(a.entity.routes.distance/1e3)+" km ",1)])):m("",!0),s(g,null,{default:t(()=>[s(i,null,{default:t(()=>[n("M12,5.5A3.5,3.5 0 0,1 15.5,9A3.5,3.5 0 0,1 12,12.5A3.5,3.5 0 0,1 8.5,9A3.5,3.5 0 0,1 12,5.5M5,8C5.56,8 6.08,8.15 6.53,8.42C6.38,9.85 6.8,11.27 7.66,12.38C7.16,13.34 6.16,14 5,14A3,3 0 0,1 2,11A3,3 0 0,1 5,8M19,8A3,3 0 0,1 22,11A3,3 0 0,1 19,14C17.84,14 16.84,13.34 16.34,12.38C17.2,11.27 17.62,9.85 17.47,8.42C17.92,8.15 18.44,8 19,8M5.5,18.25C5.5,16.18 8.41,14.5 12,14.5C15.59,14.5 18.5,16.18 18.5,18.25V20H5.5V18.25M0,20V18.5C0,17.11 1.89,15.94 4.45,15.6C3.86,16.28 3.5,17.22 3.5,18.25V20H0M24,20H20.5V18.25C20.5,17.22 20.14,16.28 19.55,15.6C22.11,15.94 24,17.11 24,18.5V20Z")]),_:1}),s(A,{"prepend-icon":"M22,2C22,2 14.36,1.63 8.34,9.88C3.72,16.21 2,22 2,22L3.94,21C5.38,18.5 6.13,17.47 7.54,16C10.07,16.74 12.71,16.65 15,14C13,13.44 11.4,13.57 9.04,13.81C11.69,12 13.5,11.6 16,12L17,10C15.2,9.66 14,9.63 12.22,10.04C14.19,8.65 15.56,7.87 18,8L19.21,6.07C17.65,5.96 16.71,6.13 14.92,6.57C16.53,5.11 18,4.45 20.14,4.32C20.14,4.32 21.19,2.43 22,2Z"},{default:t(()=>[n(o(a.entity.usersMeta.name),1)]),_:1}),(C(!0),d(y,null,p(a.entity.tripsUsersAttendees,V=>(C(),_(A,{key:V.user_id},{default:t(()=>[n(o(V.users_meta.name),1)]),_:2},1024))),128))]),_:1})]}),_:1})]),_:1})}const q=M(I,[["render",N],["__scopeId","data-v-9808842a"]]);export{q as _}; diff --git a/_nuxt/DoIRHZ99.js b/_nuxt/DoIRHZ99.js new file mode 100644 index 0000000..60eb792 --- /dev/null +++ b/_nuxt/DoIRHZ99.js @@ -0,0 +1 @@ +import{c4 as i,a$ as u,F as C,G as S,X as b,I as k,c as N,g as j}from"./CsYHinuP.js";const V=i.reduce((e,a)=>(e[a]={type:[Boolean,String,Number],default:!1},e),{}),v=i.reduce((e,a)=>{const t="offset"+u(a);return e[t]={type:[String,Number],default:null},e},{}),L=i.reduce((e,a)=>{const t="order"+u(a);return e[t]={type:[String,Number],default:null},e},{}),y={col:Object.keys(V),offset:Object.keys(v),order:Object.keys(L)};function O(e,a,t){let s=e;if(!(t==null||t===!1)){if(a){const n=a.replace(e,"");s+=`-${n}`}return e==="col"&&(s="v-"+s),e==="col"&&(t===""||t===!0)||(s+=`-${t}`),s.toLowerCase()}}const I=["auto","start","end","center","baseline","stretch"],_=C({cols:{type:[Boolean,String,Number],default:!1},...V,offset:{type:[String,Number],default:null},...v,order:{type:[String,Number],default:null},...L,alignSelf:{type:String,default:null,validator:e=>I.includes(e)},...S(),...b()},"VCol"),x=k()({name:"VCol",props:_(),setup(e,a){let{slots:t}=a;const s=N(()=>{const n=[];let l;for(l in y)y[l].forEach(o=>{const c=e[o],g=O(l,o,c);g&&n.push(g)});const r=n.some(o=>o.startsWith("v-col-"));return n.push({"v-col":!r||!e.cols,[`v-col-${e.cols}`]:e.cols,[`offset-${e.offset}`]:e.offset,[`order-${e.order}`]:e.order,[`align-self-${e.alignSelf}`]:e.alignSelf}),n});return()=>{var n;return j(e.tag,{class:[s.value,e.class],style:e.style},(n=t.default)==null?void 0:n.call(t))}}}),f=["start","end","center"],$=["space-between","space-around","space-evenly"];function d(e,a){return i.reduce((t,s)=>{const n=e+u(s);return t[n]=a(),t},{})}const R=[...f,"baseline","stretch"],h=e=>R.includes(e),w=d("align",()=>({type:String,default:null,validator:h})),T=[...f,...$],P=e=>T.includes(e),E=d("justify",()=>({type:String,default:null,validator:P})),U=[...f,...$,"stretch"],A=e=>U.includes(e),G=d("alignContent",()=>({type:String,default:null,validator:A})),m={align:Object.keys(w),justify:Object.keys(E),alignContent:Object.keys(G)},B={align:"align",justify:"justify",alignContent:"align-content"};function F(e,a,t){let s=B[e];if(t!=null){if(a){const n=a.replace(e,"");s+=`-${n}`}return s+=`-${t}`,s.toLowerCase()}}const M=C({dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:h},...w,justify:{type:String,default:null,validator:P},...E,alignContent:{type:String,default:null,validator:A},...G,...S(),...b()},"VRow"),z=k()({name:"VRow",props:M(),setup(e,a){let{slots:t}=a;const s=N(()=>{const n=[];let l;for(l in m)m[l].forEach(r=>{const o=e[r],c=F(l,r,o);c&&n.push(c)});return n.push({"v-row--no-gutters":e.noGutters,"v-row--dense":e.dense,[`align-${e.align}`]:e.align,[`justify-${e.justify}`]:e.justify,[`align-content-${e.alignContent}`]:e.alignContent}),n});return()=>{var n;return j(e.tag,{class:["v-row",s.value,e.class],style:e.style},(n=t.default)==null?void 0:n.call(t))}}});export{z as V,x as a}; diff --git a/_nuxt/I3SVNbCp.js b/_nuxt/I3SVNbCp.js new file mode 100644 index 0000000..200a6e8 --- /dev/null +++ b/_nuxt/I3SVNbCp.js @@ -0,0 +1 @@ +import{d as t,r,v as s,x as o,af as n,a8 as c,ak as d,y as l,bF as u,_ as p}from"./CsYHinuP.js";const i=t({__name:"gpxstudio",setup(f){const e=r(!1);return(m,a)=>(s(),o("div",null,[n(e)?d("",!0):(s(),c(u,{key:0,class:"absolute-center",color:"primary",indeterminate:""})),l("iframe",{src:"https://gpx.studio/",onLoad:a[0]||(a[0]=_=>e.value=!0)},null,32)]))}}),k=p(i,[["__scopeId","data-v-ad64f48d"]]);export{k as default}; diff --git a/_nuxt/Opi0a0AN.js b/_nuxt/Opi0a0AN.js new file mode 100644 index 0000000..8c434bd --- /dev/null +++ b/_nuxt/Opi0a0AN.js @@ -0,0 +1,13 @@ +import{d as Nt,r as j,J as Wt,o as kt,bv as mt,bw as Qt,au as It,g as de,a0 as Lt,e as Ui,as as fo,ar as Gi,bx as ar,by as hr,c as ze,bz as lr,a7 as ur,bA as cr,v as Mt,a8 as Yt,B as Hi,af as ct,A as Wi,x as Di,ae as Fi,ad as _o,ak as ti,bB as dr,bC as fr,bD as _r,bE as pr,am as mr,ao as vr,bF as gr,y as yr,_ as wr}from"./CsYHinuP.js";import{g as xr}from"./B8xzjt0i.js";import{c as Lr,g as br}from"./Cpj98o6Y.js";import{V as Pr}from"./DKIU8Zgl.js";function Tr(h,l){for(var r=0;ru[f]})}}}return Object.freeze(Object.defineProperty(h,Symbol.toStringTag,{value:"Module"}))}const po=(h,l)=>{for(const r of Object.keys(l))h.on(r,l[r])},wo=h=>{for(const l of Object.keys(h)){const r=h[l];r&&Ht(r.cancel)&&r.cancel()}},Sr=h=>!h||typeof h.charAt!="function"?h:h.charAt(0).toUpperCase()+h.slice(1),Ht=h=>typeof h=="function",jt=(h,l,r)=>{for(const u in r){const f="set"+Sr(u);h[f]?fo(()=>r[u],(m,v)=>{h[f](m,v)}):l[f]&&fo(()=>r[u],m=>{l[f](m)})}},gt=(h,l,r={})=>{const u={...r};for(const f in h){const m=l[f],v=h[f];m&&(m&&m.custom===!0||v!==void 0&&(u[f]=v))}return u},te=h=>{const l={},r={};for(const u in h)if(u.startsWith("on")&&!u.startsWith("onUpdate")&&u!=="onReady"){const f=u.slice(2).toLocaleLowerCase();l[f]=h[u]}else r[u]=h[u];return{listeners:l,attrs:r}},Cr=async h=>{const l=await Promise.all([mt(()=>import("./D4k_ikNW.js"),[],import.meta.url),mt(()=>import("./C2eJqgqv.js"),[],import.meta.url),mt(()=>import("./DU6CIJ0p.js"),[],import.meta.url)]);delete h.Default.prototype._getIconUrl,h.Default.mergeOptions({iconRetinaUrl:l[0].default,iconUrl:l[1].default,shadowUrl:l[2].default})},Xe=h=>{const l=j((...u)=>console.warn(`Method ${h} has been invoked without being replaced`)),r=(...u)=>l.value(...u);return r.wrapped=l,Lt(h,r),r},Qe=(h,l)=>h.wrapped.value=l,Ot=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||globalThis,vt=h=>{const l=Wt(h);if(l===void 0)throw new Error(`Attempt to inject ${h.description} before it was provided.`);return l},Vt=Symbol("useGlobalLeaflet"),Ut=Symbol("addLayer"),ei=Symbol("removeLayer"),xo=Symbol("registerControl"),Mr=Symbol("registerLayerControl"),Lo=Symbol("canSetParentHtml"),bo=Symbol("setParentHtml"),Po=Symbol("setIcon"),Or=Symbol("bindPopup"),kr=Symbol("bindTooltip"),zr=Symbol("unbindPopup"),Er=Symbol("unbindTooltip"),Ee={options:{type:Object,default:()=>({}),custom:!0}},ii=h=>({options:h.options,methods:{}}),fe={...Ee,pane:{type:String},attribution:{type:String},name:{type:String,custom:!0},layerType:{type:String,custom:!0},visible:{type:Boolean,custom:!0,default:!0}},ni=(h,l,r)=>{const u=vt(Ut),f=vt(ei),{options:m,methods:v}=ii(h),g=gt(h,fe,m),_=()=>u({leafletObject:l.value}),S=()=>f({leafletObject:l.value}),b={...v,setAttribution(w){S(),l.value.options.attribution=w,h.visible&&_()},setName(){S(),h.visible&&_()},setLayerType(){S(),h.visible&&_()},setVisible(w){l.value&&(w?_():S())},bindPopup(w){if(!l.value||!Ht(l.value.bindPopup)){console.warn("Attempt to bind popup before bindPopup method available on layer.");return}l.value.bindPopup(w)},bindTooltip(w){if(!l.value||!Ht(l.value.bindTooltip)){console.warn("Attempt to bind tooltip before bindTooltip method available on layer.");return}l.value.bindTooltip(w)},unbindTooltip(){l.value&&(Ht(l.value.closeTooltip)&&l.value.closeTooltip(),Ht(l.value.unbindTooltip)&&l.value.unbindTooltip())},unbindPopup(){l.value&&(Ht(l.value.closePopup)&&l.value.closePopup(),Ht(l.value.unbindPopup)&&l.value.unbindPopup())},updateVisibleProp(w){r.emit("update:visible",w)}};return Lt(Or,b.bindPopup),Lt(kr,b.bindTooltip),Lt(zr,b.unbindPopup),Lt(Er,b.unbindTooltip),Gi(()=>{b.unbindPopup(),b.unbindTooltip(),S()}),{options:g,methods:b}},qi=(h,l)=>{if(h&&l.default)return de("div",{style:{display:"none"}},l.default())},To={...fe,interactive:{type:Boolean,default:void 0},bubblingMouseEvents:{type:Boolean,default:void 0}},Ar=(h,l,r)=>{const{options:u,methods:f}=ni(h,l,r);return{options:gt(h,To,u),methods:f}},Ki={...To,stroke:{type:Boolean,default:void 0},color:{type:String},weight:{type:Number},opacity:{type:Number},lineCap:{type:String},lineJoin:{type:String},dashArray:{type:String},dashOffset:{type:String},fill:{type:Boolean,default:void 0},fillColor:{type:String},fillOpacity:{type:Number},fillRule:{type:String},className:{type:String}},Br=(h,l,r)=>{const{options:u,methods:f}=Ar(h,l,r),m=gt(h,Ki,u),v=vt(ei),g={...f,setStroke(_){l.value.setStyle({stroke:_})},setColor(_){l.value.setStyle({color:_})},setWeight(_){l.value.setStyle({weight:_})},setOpacity(_){l.value.setStyle({opacity:_})},setLineCap(_){l.value.setStyle({lineCap:_})},setLineJoin(_){l.value.setStyle({lineJoin:_})},setDashArray(_){l.value.setStyle({dashArray:_})},setDashOffset(_){l.value.setStyle({dashOffset:_})},setFill(_){l.value.setStyle({fill:_})},setFillColor(_){l.value.setStyle({fillColor:_})},setFillOpacity(_){l.value.setStyle({fillOpacity:_})},setFillRule(_){l.value.setStyle({fillRule:_})},setClassName(_){l.value.setStyle({className:_})}};return Ui(()=>{v({leafletObject:l.value})}),{options:m,methods:g}},$i={...Ki,radius:{type:Number},latLng:{type:[Object,Array],required:!0,custom:!0}},Zr=(h,l,r)=>{const{options:u,methods:f}=Br(h,l,r),m=gt(h,$i,u),v={...f,setRadius(g){l.value.setRadius(g)},setLatLng(g){l.value.setLatLng(g)}};return{options:m,methods:v}};({...$i});const Ir=Nt({name:"LCircleMarker",props:$i,setup(h,l){const r=j(),u=j(!1),f=Wt(Vt),m=vt(Ut),{options:v,methods:g}=Zr(h,r,l);return kt(async()=>{const{circleMarker:_}=f?Ot.L:await mt(()=>import("./HdBnhJze.js"),[],import.meta.url);r.value=Qt(_(h.latLng,v));const{listeners:S}=te(l.attrs);r.value.on(S),jt(g,r.value,h),m({...h,...g,leafletObject:r.value}),u.value=!0,It(()=>l.emit("ready",r.value))}),{ready:u,leafletObject:r}},render(){return qi(this.ready,this.$slots)}}),_e={...Ee,position:{type:String}},Nr=(h,l)=>{const{options:r,methods:u}=ii(h),f=gt(h,_e,r),m={...u,setPosition(v){l.value&&l.value.setPosition(v)}};return Gi(()=>{l.value&&l.value.remove()}),{options:f,methods:m}},Rr=h=>h.default?de("div",{ref:"root"},h.default()):null;Nt({name:"LControl",props:{..._e,disableClickPropagation:{type:Boolean,custom:!0,default:!0},disableScrollPropagation:{type:Boolean,custom:!0,default:!1}},setup(h,l){const r=j(),u=j(),f=Wt(Vt),m=vt(xo),{options:v,methods:g}=Nr(h,r);return kt(async()=>{const{Control:_,DomEvent:S}=f?Ot.L:await mt(()=>import("./HdBnhJze.js"),[],import.meta.url),b=_.extend({onAdd(){return u.value}});r.value=Qt(new b(v)),jt(g,r.value,h),m({leafletObject:r.value}),h.disableClickPropagation&&u.value&&S.disableClickPropagation(u.value),h.disableScrollPropagation&&u.value&&S.disableScrollPropagation(u.value),It(()=>l.emit("ready",r.value))}),{root:u,leafletObject:r}},render(){return Rr(this.$slots)}});({..._e});({..._e});({..._e});({..._e});const Ji={...fe},Dr=(h,l,r)=>{const{options:u,methods:f}=ni(h,l,r),m=gt(h,Ji,u),v={...f,addLayer(g){l.value.addLayer(g.leafletObject)},removeLayer(g){l.value.removeLayer(g.leafletObject)}};return Lt(Ut,v.addLayer),Lt(ei,v.removeLayer),{options:m,methods:v}};({...Ji});const So={...Ji,geojson:{type:[Object,Array],custom:!0},optionsStyle:{type:Function,custom:!0}},Fr=(h,l,r)=>{const{options:u,methods:f}=Dr(h,l,r),m=gt(h,So,u);Object.prototype.hasOwnProperty.call(h,"optionsStyle")&&(m.style=h.optionsStyle);const v={...f,setGeojson(g){l.value.clearLayers(),l.value.addData(g)},setOptionsStyle(g){l.value.setStyle(g)},getGeoJSONData(){return l.value.toGeoJSON()},getBounds(){return l.value.getBounds()}};return{options:m,methods:v}},Hr=Nt({props:So,setup(h,l){const r=j(),u=j(!1),f=Wt(Vt),m=vt(Ut),{methods:v,options:g}=Fr(h,r,l);return kt(async()=>{const{geoJSON:_}=f?Ot.L:await mt(()=>import("./HdBnhJze.js"),[],import.meta.url);r.value=Qt(_(h.geojson,g));const{listeners:S}=te(l.attrs);r.value.on(S),jt(v,r.value,h),m({...h,...v,leafletObject:r.value}),u.value=!0,It(()=>l.emit("ready",r.value))}),{ready:u,leafletObject:r}},render(){return qi(this.ready,this.$slots)}}),Yi={...fe,opacity:{type:Number},zIndex:{type:Number},tileSize:{type:[Number,Array,Object]},noWrap:{type:Boolean,default:void 0},minZoom:{type:Number},maxZoom:{type:Number},className:{type:String}},Co=(h,l,r)=>{const{options:u,methods:f}=ni(h,l,r),m=gt(h,Yi,u),v={...f,setTileComponent(){var g;(g=l.value)==null||g.redraw()}};return Gi(()=>{l.value.off()}),{options:m,methods:v}},Wr=(h,l,r,u)=>h.extend({initialize(f){this.tileComponents={},this.on("tileunload",this._unloadTile),r.setOptions(this,f)},createTile(f){const m=this._tileCoordsToKey(f);this.tileComponents[m]=l.create("div");const v=de({setup:u,props:["coords"]},{coords:f});return ar(v,this.tileComponents[m]),this.tileComponents[m]},_unloadTile(f){const m=this._tileCoordsToKey(f.coords);this.tileComponents[m]&&(this.tileComponents[m].innerHTML="",this.tileComponents[m]=void 0)}});Nt({props:{...Yi,childRender:{type:Function,required:!0}},setup(h,l){const r=j(),u=j(null),f=j(!1),m=Wt(Vt),v=vt(Ut),{options:g,methods:_}=Co(h,r,l);return kt(async()=>{const{GridLayer:S,DomUtil:b,Util:w}=m?Ot.L:await mt(()=>import("./HdBnhJze.js"),[],import.meta.url),N=Wr(S,b,w,h.childRender);r.value=Qt(new N(g));const{listeners:E}=te(l.attrs);r.value.on(E),jt(_,r.value,h),v({...h,..._,leafletObject:r.value}),f.value=!0,It(()=>l.emit("ready",r.value))}),{root:u,ready:f,leafletObject:r}},render(){return this.ready?de("div",{style:{display:"none"},ref:"root"}):null}});const mo={iconUrl:{type:String},iconRetinaUrl:{type:String},iconSize:{type:[Object,Array]},iconAnchor:{type:[Object,Array]},popupAnchor:{type:[Object,Array]},tooltipAnchor:{type:[Object,Array]},shadowUrl:{type:String},shadowRetinaUrl:{type:String},shadowSize:{type:[Object,Array]},shadowAnchor:{type:[Object,Array]},bgPos:{type:[Object,Array]},className:{type:String}};Nt({name:"LIcon",props:{...mo,...Ee},setup(h,l){const r=j(),u=Wt(Vt),f=vt(Lo),m=vt(bo),v=vt(Po);let g,_,S,b,w;const N=(st,V,J)=>{const H=st&&st.innerHTML;if(!V){J&&w&&f()&&m(H);return}const{listeners:dt}=te(l.attrs);w&&_(w,dt);const{options:bt}=ii(h),R=gt(h,mo,bt);H&&(R.html=H),w=R.html?S(R):b(R),g(w,dt),v(w)},E=()=>{It(()=>N(r.value,!0,!1))},K=()=>{It(()=>N(r.value,!1,!0))},Z={setIconUrl:E,setIconRetinaUrl:E,setIconSize:E,setIconAnchor:E,setPopupAnchor:E,setTooltipAnchor:E,setShadowUrl:E,setShadowRetinaUrl:E,setShadowAnchor:E,setBgPos:E,setClassName:E,setHtml:E};return kt(async()=>{const{DomEvent:st,divIcon:V,icon:J}=u?Ot.L:await mt(()=>import("./HdBnhJze.js"),[],import.meta.url);g=st.on,_=st.off,S=V,b=J,jt(Z,{},h),new MutationObserver(K).observe(r.value,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),E()}),{root:r}},render(){const h=this.$slots.default?this.$slots.default():void 0;return de("div",{ref:"root"},h)}});({...fe});function Mo(h,l,r){var u,f,m;l===void 0&&(l=50),r===void 0&&(r={});var v=(u=r.isImmediate)!=null&&u,g=(f=r.callback)!=null&&f,_=r.maxWait,S=Date.now(),b=[];function w(){if(_!==void 0){var E=Date.now()-S;if(E+l>=_)return _-E}return l}var N=function(){var E=[].slice.call(arguments),K=this;return new Promise(function(Z,st){var V=v&&m===void 0;if(m!==void 0&&clearTimeout(m),m=setTimeout(function(){if(m=void 0,S=Date.now(),!v){var H=h.apply(K,E);g&&g(H),b.forEach(function(dt){return(0,dt.resolve)(H)}),b=[]}},w()),V){var J=h.apply(K,E);return g&&g(J),Z(J)}b.push({resolve:Z,reject:st})})};return N.cancel=function(E){m!==void 0&&clearTimeout(m),b.forEach(function(K){return(0,K.reject)(E)}),b=[]},N}const vo={...Ee,center:{type:[Object,Array]},bounds:{type:[Array,Object]},maxBounds:{type:[Array,Object]},zoom:{type:Number},minZoom:{type:Number},maxZoom:{type:Number},paddingBottomRight:{type:[Object,Array]},paddingTopLeft:{type:Object},padding:{type:Object},worldCopyJump:{type:Boolean,default:void 0},crs:{type:[String,Object]},maxBoundsViscosity:{type:Number},inertia:{type:Boolean,default:void 0},inertiaDeceleration:{type:Number},inertiaMaxSpeed:{type:Number},easeLinearity:{type:Number},zoomAnimation:{type:Boolean,default:void 0},zoomAnimationThreshold:{type:Number},fadeAnimation:{type:Boolean,default:void 0},markerZoomAnimation:{type:Boolean,default:void 0},noBlockingAnimations:{type:Boolean,default:void 0},useGlobalLeaflet:{type:Boolean,default:!0,custom:!0}},jr=Nt({inheritAttrs:!1,emits:["ready","update:zoom","update:center","update:bounds"],props:vo,setup(h,l){const r=j(),u=hr({ready:!1,layersToAdd:[],layersInControl:[]}),{options:f}=ii(h),m=gt(h,vo,f),{listeners:v,attrs:g}=te(l.attrs),_=Xe(Ut),S=Xe(ei),b=Xe(xo),w=Xe(Mr);Lt(Vt,h.useGlobalLeaflet);const N=ze(()=>{const V={};return h.noBlockingAnimations&&(V.animate=!1),V}),E=ze(()=>{const V=N.value;return h.padding&&(V.padding=h.padding),h.paddingTopLeft&&(V.paddingTopLeft=h.paddingTopLeft),h.paddingBottomRight&&(V.paddingBottomRight=h.paddingBottomRight),V}),K={moveend:Mo(V=>{u.leafletRef&&(l.emit("update:zoom",u.leafletRef.getZoom()),l.emit("update:center",u.leafletRef.getCenter()),l.emit("update:bounds",u.leafletRef.getBounds()))}),overlayadd(V){const J=u.layersInControl.find(H=>H.name===V.name);J&&J.updateVisibleProp(!0)},overlayremove(V){const J=u.layersInControl.find(H=>H.name===V.name);J&&J.updateVisibleProp(!1)}};kt(async()=>{h.useGlobalLeaflet&&(Ot.L=Ot.L||await mt(()=>Promise.resolve().then(()=>ua),void 0,import.meta.url));const{map:V,CRS:J,Icon:H,latLngBounds:dt,latLng:bt,stamp:R}=h.useGlobalLeaflet?Ot.L:await mt(()=>import("./HdBnhJze.js"),[],import.meta.url);try{m.beforeMapMount&&await m.beforeMapMount()}catch(T){console.error(`The following error occurred running the provided beforeMapMount hook ${T.message}`)}await Cr(H);const U=typeof m.crs=="string"?J[m.crs]:m.crs;m.crs=U||J.EPSG3857;const ut={addLayer(T){T.layerType!==void 0&&(u.layerControl===void 0?u.layersToAdd.push(T):u.layersInControl.find(D=>R(D.leafletObject)===R(T.leafletObject))||(u.layerControl.addLayer(T),u.layersInControl.push(T))),T.visible!==!1&&u.leafletRef.addLayer(T.leafletObject)},removeLayer(T){T.layerType!==void 0&&(u.layerControl===void 0?u.layersToAdd=u.layersToAdd.filter(D=>D.name!==T.name):(u.layerControl.removeLayer(T.leafletObject),u.layersInControl=u.layersInControl.filter(D=>R(D.leafletObject)!==R(T.leafletObject)))),u.leafletRef.removeLayer(T.leafletObject)},registerLayerControl(T){u.layerControl=T,u.layersToAdd.forEach(D=>{u.layerControl.addLayer(D)}),u.layersToAdd=[],b(T)},registerControl(T){u.leafletRef.addControl(T.leafletObject)},setZoom(T){const D=u.leafletRef.getZoom();T!==D&&u.leafletRef.setZoom(T,N.value)},setCrs(T){const D=u.leafletRef.getBounds();u.leafletRef.options.crs=T,u.leafletRef.fitBounds(D,{animate:!1,padding:[0,0]})},fitBounds(T){u.leafletRef.fitBounds(T,E.value)},setBounds(T){if(!T)return;const D=dt(T);D.isValid()&&!(u.lastSetBounds||u.leafletRef.getBounds()).equals(D,0)&&(u.lastSetBounds=D,u.leafletRef.fitBounds(D))},setCenter(T){if(T==null)return;const D=bt(T),tt=u.lastSetCenter||u.leafletRef.getCenter();(tt.lat!==D.lat||tt.lng!==D.lng)&&(u.lastSetCenter=D,u.leafletRef.panTo(D,N.value))}};Qe(_,ut.addLayer),Qe(S,ut.removeLayer),Qe(b,ut.registerControl),Qe(w,ut.registerLayerControl),u.leafletRef=Qt(V(r.value,m)),jt(ut,u.leafletRef,h),po(u.leafletRef,K),po(u.leafletRef,v),u.ready=!0,It(()=>l.emit("ready",u.leafletRef))}),Ui(()=>{wo(K),u.leafletRef&&(u.leafletRef.off(),u.leafletRef.remove())});const Z=ze(()=>u.leafletRef),st=ze(()=>u.ready);return{root:r,ready:st,leafletObject:Z,attrs:g}},render({attrs:h}){return h.style||(h.style={}),h.style.width||(h.style.width="100%"),h.style.height||(h.style.height="100%"),de("div",{...h,ref:"root"},this.ready&&this.$slots.default?this.$slots.default():{})}}),Vr=["Symbol(Comment)","Symbol(Text)"],Ur=["LTooltip","LPopup"],Oo={...fe,draggable:{type:Boolean,default:void 0},icon:{type:[Object]},zIndexOffset:{type:Number},latLng:{type:[Object,Array],custom:!0,required:!0}},Gr=(h,l,r)=>{const{options:u,methods:f}=ni(h,l,r),m=gt(h,Oo,u),v={...f,setDraggable(g){l.value.dragging&&(g?l.value.dragging.enable():l.value.dragging.disable())},latLngSync(g){r.emit("update:latLng",g.latlng),r.emit("update:lat-lng",g.latlng)},setLatLng(g){if(g!=null&&l.value){const _=l.value.getLatLng();(!_||!_.equals(g))&&l.value.setLatLng(g)}}};return{options:m,methods:v}},qr=(h,l)=>{const r=l.slots.default&&l.slots.default();return r&&r.length&&r.some(Kr)};function Kr(h){return!(Vr.includes(h.type.toString())||Ur.includes(h.type.name))}const $r=Nt({name:"LMarker",props:Oo,setup(h,l){const r=j(),u=j(!1),f=Wt(Vt),m=vt(Ut);Lt(Lo,()=>{var S;return!!((S=r.value)!=null&&S.getElement())}),Lt(bo,S=>{var b,w;const N=Ht((b=r.value)==null?void 0:b.getElement)&&((w=r.value)==null?void 0:w.getElement());N&&(N.innerHTML=S)}),Lt(Po,S=>{var b;return((b=r.value)==null?void 0:b.setIcon)&&r.value.setIcon(S)});const{options:v,methods:g}=Gr(h,r,l),_={moveHandler:Mo(g.latLngSync)};return kt(async()=>{const{marker:S,divIcon:b}=f?Ot.L:await mt(()=>import("./HdBnhJze.js"),[],import.meta.url);qr(v,l)&&(v.icon=b({className:""})),r.value=Qt(S(h.latLng,v));const{listeners:w}=te(l.attrs);r.value.on(w),r.value.on("move",_.moveHandler),jt(g,r.value,h),m({...h,...g,leafletObject:r.value}),u.value=!0,It(()=>l.emit("ready",r.value))}),Ui(()=>wo(_)),{ready:u,leafletObject:r}},render(){return qi(this.ready,this.$slots)}}),Jr={...Ki,smoothFactor:{type:Number},noClip:{type:Boolean,default:void 0},latLngs:{type:Array,required:!0,custom:!0}},go={...Jr},ko={...Ee,content:{type:String,default:null}};({...ko});({...go,latLngs:{...go.latLngs}});const Xi={...Yi,tms:{type:Boolean,default:void 0},subdomains:{type:[String,Array],validator:h=>typeof h=="string"?!0:Array.isArray(h)?h.every(l=>typeof l=="string"):!1},detectRetina:{type:Boolean,default:void 0},url:{type:String,required:!0,custom:!0}},Yr=(h,l,r)=>{const{options:u,methods:f}=Co(h,l,r),m=gt(h,Xi,u),v={...f};return{options:m,methods:v}},Xr=Nt({props:Xi,setup(h,l){const r=j(),u=Wt(Vt),f=vt(Ut),{options:m,methods:v}=Yr(h,r,l);return kt(async()=>{const{tileLayer:g}=u?Ot.L:await mt(()=>import("./HdBnhJze.js"),[],import.meta.url);r.value=Qt(g(h.url,m));const{listeners:_}=te(l.attrs);r.value.on(_),jt(v,r.value,h),f({...h,...v,leafletObject:r.value}),It(()=>l.emit("ready",r.value))}),{leafletObject:r}},render(){return null}});({...ko});({...Xi});function ce(h,l){return Array.from(h.getElementsByTagName(l))}function pe(h){return h==null||h.normalize(),h&&h.textContent||""}function Xt(h,l,r){const u=h.getElementsByTagName(l),f=u.length?u[0]:null;return f&&r&&r(f),f}function Qr(h,l,r){const u={};if(!h)return u;const f=h.getElementsByTagName(l),m=f.length?f[0]:null;return m&&r?r(m,u):u}function zo(h,l,r){const u=pe(Xt(h,l));return u&&r?r(u)||{}:{}}function yo(h,l,r){const u=parseFloat(pe(Xt(h,l)));if(!isNaN(u))return u&&r?r(u)||{}:{}}function ta(h,l,r){const u=parseFloat(pe(Xt(h,l)));if(!isNaN(u))return r&&r(u),u}function ji(h,l){const r={};for(const u of l)zo(h,u,f=>{r[u]=f});return r}function ea(h){return(h==null?void 0:h.nodeType)===1}function Eo(h){return Qr(h,"line",l=>Object.assign({},zo(l,"color",u=>({stroke:`#${u}`})),yo(l,"opacity",u=>({"stroke-opacity":u})),yo(l,"width",u=>({"stroke-width":u*96/25.4}))))}function Ao(h){let l=[];if(h===null)return l;for(const r of Array.from(h.childNodes)){if(!ea(r))continue;const u=ia(r.nodeName);if(u==="gpxtpx:TrackPointExtension")l=l.concat(Ao(r));else{const f=pe(r);l.push([u,na(f)])}}return l}function ia(h){return["heart","gpxtpx:hr","hr"].includes(h)?"heart":h}function na(h){const l=parseFloat(h);return isNaN(l)?h:l}function Bo(h){const l=[parseFloat(h.getAttribute("lon")||""),parseFloat(h.getAttribute("lat")||"")];if(isNaN(l[0])||isNaN(l[1]))return null;ta(h,"ele",u=>{l.push(u)});const r=Xt(h,"time");return{coordinates:l,time:r?pe(r):null,extendedValues:Ao(Xt(h,"extensions"))}}function Qi(h){var f;const l=ji(h,["name","cmt","desc","type","time","keywords"]),r=Array.from(h.getElementsByTagNameNS("http://www.garmin.com/xmlschemas/GpxExtensions/v3","*"));for(const m of r)((f=m.parentNode)==null?void 0:f.parentNode)===h&&(l[m.tagName.replace(":","_")]=pe(m));const u=ce(h,"link");return u.length&&(l.links=u.map(m=>Object.assign({href:m.getAttribute("href")},ji(m,["text","type"])))),l}function Zo(h,l){const r=ce(h,l),u=[],f=[],m={};for(let v=0;v1,v=Object.assign({_gpxType:"trk"},Qi(h),Eo(Xt(h,"extensions")),u.length?{coordinateProperties:{times:m?u:u[0]}}:{});for(const g of f){r.push(g.line),v.coordinateProperties||(v.coordinateProperties={});const _=v.coordinateProperties,S=Object.entries(g.extendedValues);for(let b=0;bnew Array(E.line.length).fill(null))),_[w][b]=N):_[w]=N}}return{type:"Feature",properties:v,geometry:m?{type:"MultiLineString",coordinates:r}:{type:"LineString",coordinates:r[0]}}}function ra(h){const l=Object.assign(Qi(h),ji(h,["sym"])),r=Bo(h);return r?{type:"Feature",properties:l,geometry:{type:"Point",coordinates:r.coordinates}}:null}function*aa(h){for(const l of ce(h,"trk")){const r=sa(l);r&&(yield r)}for(const l of ce(h,"rte")){const r=oa(l);r&&(yield r)}for(const l of ce(h,"wpt")){const r=ra(l);r&&(yield r)}}function ha(h){return{type:"FeatureCollection",features:Array.from(aa(h))}}var Vi={exports:{}};/* @preserve + * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com + * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade + */(function(h,l){(function(r,u){u(l)})(Lr,function(r){var u="1.9.4";function f(t){var e,i,n,o;for(i=1,n=arguments.length;i"u"||!L||!L.Mixin)){t=H(t)?t:[t];for(var e=0;e0?Math.floor(t):Math.ceil(t)};M.prototype={clone:function(){return new M(this.x,this.y)},add:function(t){return this.clone()._add(C(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(C(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new M(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new M(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=tn(this.x),this.y=tn(this.y),this},distanceTo:function(t){t=C(t);var e=t.x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},equals:function(t){return t=C(t),t.x===this.x&&t.y===this.y},contains:function(t){return t=C(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+N(this.x)+", "+N(this.y)+")"}};function C(t,e,i){return t instanceof M?t:H(t)?new M(t[0],t[1]):t==null?t:typeof t=="object"&&"x"in t&&"y"in t?new M(t.x,t.y):new M(t,e,i)}function G(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;n=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=at(t);var e=this.min,i=this.max,n=t.min,o=t.max,s=o.x>=e.x&&n.x<=i.x,a=o.y>=e.y&&n.y<=i.y;return s&&a},overlaps:function(t){t=at(t);var e=this.min,i=this.max,n=t.min,o=t.max,s=o.x>e.x&&n.xe.y&&n.y=e.lat&&o.lat<=i.lat&&n.lng>=e.lng&&o.lng<=i.lng},intersects:function(t){t=Y(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>=e.lat&&n.lat<=i.lat,a=o.lng>=e.lng&&n.lng<=i.lng;return s&&a},overlaps:function(t){t=Y(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>e.lat&&n.late.lng&&n.lng1,Jo=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",w,e),window.removeEventListener("testPassiveEventSupport",w,e)}catch{}return t}(),Yo=function(){return!!document.createElement("canvas").getContext}(),di=!!(document.createElementNS&&nn("svg").createSVGRect),Xo=!!di&&function(){var t=document.createElement("div");return t.innerHTML="",(t.firstChild&&t.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),Qo=!di&&function(){try{var t=document.createElement("div");t.innerHTML='';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&typeof e.adj=="object"}catch{return!1}}(),ts=navigator.platform.indexOf("Mac")===0,es=navigator.platform.indexOf("Linux")===0;function Pt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var x={ie:Ae,ielt9:Ro,edge:sn,webkit:li,android:rn,android23:an,androidStock:Fo,opera:ui,chrome:hn,gecko:ln,safari:Ho,phantom:un,opera12:cn,win:Wo,ie3d:dn,webkit3d:ci,gecko3d:fn,any3d:jo,mobile:ge,mobileWebkit:Vo,mobileWebkit3d:Uo,msPointer:_n,pointer:pn,touch:Go,touchNative:mn,mobileOpera:qo,mobileGecko:Ko,retina:$o,passiveEvents:Jo,canvas:Yo,svg:di,vml:Qo,inlineSvg:Xo,mac:ts,linux:es},vn=x.msPointer?"MSPointerDown":"pointerdown",gn=x.msPointer?"MSPointerMove":"pointermove",yn=x.msPointer?"MSPointerUp":"pointerup",wn=x.msPointer?"MSPointerCancel":"pointercancel",fi={touchstart:vn,touchmove:gn,touchend:yn,touchcancel:wn},xn={touchstart:as,touchmove:Be,touchend:Be,touchcancel:Be},ie={},Ln=!1;function is(t,e,i){return e==="touchstart"&&rs(),xn[e]?(i=xn[e].bind(this,i),t.addEventListener(fi[e],i,!1),i):(console.warn("wrong event specified:",e),w)}function ns(t,e,i){if(!fi[e]){console.warn("wrong event specified:",e);return}t.removeEventListener(fi[e],i,!1)}function os(t){ie[t.pointerId]=t}function ss(t){ie[t.pointerId]&&(ie[t.pointerId]=t)}function bn(t){delete ie[t.pointerId]}function rs(){Ln||(document.addEventListener(vn,os,!0),document.addEventListener(gn,ss,!0),document.addEventListener(yn,bn,!0),document.addEventListener(wn,bn,!0),Ln=!0)}function Be(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){e.touches=[];for(var i in ie)e.touches.push(ie[i]);e.changedTouches=[e],t(e)}}function as(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&it(e),Be(t,e)}function hs(t){var e={},i,n;for(n in t)i=t[n],e[n]=i&&i.bind?i.bind(t):i;return t=e,e.type="dblclick",e.detail=2,e.isTrusted=!1,e._simulated=!0,e}var ls=200;function us(t,e){t.addEventListener("dblclick",e);var i=0,n;function o(s){if(s.detail!==1){n=s.detail;return}if(!(s.pointerType==="mouse"||s.sourceCapabilities&&!s.sourceCapabilities.firesTouchEvents)){var a=Mn(s);if(!(a.some(function(d){return d instanceof HTMLLabelElement&&d.attributes.for})&&!a.some(function(d){return d instanceof HTMLInputElement||d instanceof HTMLSelectElement}))){var c=Date.now();c-i<=ls?(n++,n===2&&e(hs(s))):n=1,i=c}}}return t.addEventListener("click",o),{dblclick:e,simDblclick:o}}function cs(t,e){t.removeEventListener("dblclick",e.dblclick),t.removeEventListener("click",e.simDblclick)}var _i=Ne(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ye=Ne(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Pn=ye==="webkitTransition"||ye==="OTransition"?ye+"End":"transitionend";function Tn(t){return typeof t=="string"?document.getElementById(t):t}function we(t,e){var i=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!i||i==="auto")&&document.defaultView){var n=document.defaultView.getComputedStyle(t,null);i=n?n[e]:null}return i==="auto"?null:i}function I(t,e,i){var n=document.createElement(t);return n.className=e||"",i&&i.appendChild(n),n}function q(t){var e=t.parentNode;e&&e.removeChild(t)}function Ze(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function ne(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function oe(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function pi(t,e){if(t.classList!==void 0)return t.classList.contains(e);var i=Ie(t);return i.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(i)}function k(t,e){if(t.classList!==void 0)for(var i=K(e),n=0,o=i.length;n0?2*window.devicePixelRatio:1;function kn(t){return x.edge?t.wheelDeltaY/2:t.deltaY&&t.deltaMode===0?-t.deltaY/_s:t.deltaY&&t.deltaMode===1?-t.deltaY*20:t.deltaY&&t.deltaMode===2?-t.deltaY*60:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?-t.detail*20:t.detail?t.detail/-32765*60:0}function Ci(t,e){var i=e.relatedTarget;if(!i)return!0;try{for(;i&&i!==t;)i=i.parentNode}catch{return!1}return i!==t}var ps={__proto__:null,on:O,off:W,stopPropagation:Kt,disableScrollPropagation:Si,disableClickPropagation:Pe,preventDefault:it,stop:$t,getPropagationPath:Mn,getMousePosition:On,getWheelDelta:kn,isExternalTarget:Ci,addListener:O,removeListener:W},zn=ee.extend({run:function(t,e,i,n){this.stop(),this._el=t,this._inProgress=!0,this._duration=i||.25,this._easeOutPower=1/Math.max(n||.5,.2),this._startPos=qt(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=tt(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,i=this._duration*1e3;ethis.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var i=this.getCenter(),n=this._limitCenter(i,this._zoom,Y(t));return i.equals(n)||this.panTo(n,e),this._enforcingBounds=!1,this},panInside:function(t,e){e=e||{};var i=C(e.paddingTopLeft||e.padding||[0,0]),n=C(e.paddingBottomRight||e.padding||[0,0]),o=this.project(this.getCenter()),s=this.project(t),a=this.getPixelBounds(),c=at([a.min.add(i),a.max.subtract(n)]),d=c.getSize();if(!c.contains(s)){this._enforcingBounds=!0;var p=s.subtract(c.getCenter()),y=c.extend(s).getSize().subtract(d);o.x+=p.x<0?-y.x:y.x,o.y+=p.y<0?-y.y:y.y,this.panTo(this.unproject(o),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=f({animate:!1,pan:!0},t===!0?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var i=this.getSize(),n=e.divideBy(2).round(),o=i.divideBy(2).round(),s=n.subtract(o);return!s.x&&!s.y?this:(t.animate&&t.pan?this.panBy(s):(t.pan&&this._rawPanBy(s),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(v(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:i}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=f({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=v(this._handleGeolocationResponse,this),i=v(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,i,t):navigator.geolocation.getCurrentPosition(e,i,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var e=t.code,i=t.message||(e===1?"permission denied":e===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+i+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=t.coords.latitude,i=t.coords.longitude,n=new F(e,i),o=n.toBounds(t.coords.accuracy*2),s=this._locateOptions;if(s.setView){var a=this.getBoundsZoom(o);this.setView(n,s.maxZoom?Math.min(a,s.maxZoom):a)}var c={latlng:n,bounds:o,timestamp:t.timestamp};for(var d in t.coords)typeof t.coords[d]=="number"&&(c[d]=t.coords[d]);this.fire("locationfound",c)}},addHandler:function(t,e){if(!e)return this;var i=this[t]=new e(this);return this._handlers.push(i),this.options[t]&&i.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),q(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(rt(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var t;for(t in this._layers)this._layers[t].remove();for(t in this._panes)q(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var i="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),n=I("div",i,e||this._mapPane);return t&&(this._panes[t]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds(),e=this.unproject(t.getBottomLeft()),i=this.unproject(t.getTopRight());return new ht(e,i)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,i){t=Y(t),i=C(i||[0,0]);var n=this.getZoom()||0,o=this.getMinZoom(),s=this.getMaxZoom(),a=t.getNorthWest(),c=t.getSouthEast(),d=this.getSize().subtract(i),p=at(this.project(c,n),this.project(a,n)).getSize(),y=x.any3d?this.options.zoomSnap:1,P=d.x/p.x,z=d.y/p.y,ot=e?Math.max(P,z):Math.min(P,z);return n=this.getScaleZoom(ot,n),y&&(n=Math.round(n/(y/100))*(y/100),n=e?Math.ceil(n/y)*y:Math.floor(n/y)*y),Math.max(o,Math.min(s,n))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new M(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var i=this._getTopLeftPoint(t,e);return new G(i,i.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(t===void 0?this.getZoom():t)},getPane:function(t){return typeof t=="string"?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var i=this.options.crs;return e=e===void 0?this._zoom:e,i.scale(t)/i.scale(e)},getScaleZoom:function(t,e){var i=this.options.crs;e=e===void 0?this._zoom:e;var n=i.zoom(t*i.scale(e));return isNaN(n)?1/0:n},project:function(t,e){return e=e===void 0?this._zoom:e,this.options.crs.latLngToPoint(A(t),e)},unproject:function(t,e){return e=e===void 0?this._zoom:e,this.options.crs.pointToLatLng(C(t),e)},layerPointToLatLng:function(t){var e=C(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){var e=this.project(A(t))._round();return e._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(A(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(Y(t))},distance:function(t,e){return this.options.crs.distance(A(t),A(e))},containerPointToLayerPoint:function(t){return C(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return C(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(C(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(A(t)))},mouseEventToContainerPoint:function(t){return On(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=Tn(t);if(e){if(e._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");O(e,"scroll",this._onScroll,this),this._containerId=_(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&x.any3d,k(t,"leaflet-container"+(x.touch?" leaflet-touch":"")+(x.retina?" leaflet-retina":"")+(x.ielt9?" leaflet-oldie":"")+(x.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=we(t,"position");e!=="absolute"&&e!=="relative"&&e!=="fixed"&&e!=="sticky"&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),X(this._mapPane,new M(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(k(t.markerPane,"leaflet-zoom-hide"),k(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,i){X(this._mapPane,new M(0,0));var n=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var o=this._zoom!==e;this._moveStart(o,i)._move(t,e)._moveEnd(o),this.fire("viewreset"),n&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,i,n){e===void 0&&(e=this._zoom);var o=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),n?i&&i.pinch&&this.fire("zoom",i):((o||i&&i.pinch)&&this.fire("zoom",i),this.fire("move",i)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return rt(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){X(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[_(this._container)]=this;var e=t?W:O;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),x.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){rt(this._resizeRequest),this._resizeRequest=tt(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var i=[],n,o=e==="mouseout"||e==="mouseover",s=t.target||t.srcElement,a=!1;s;){if(n=this._targets[_(s)],n&&(e==="click"||e==="preclick")&&this._draggableMoved(n)){a=!0;break}if(n&&n.listens(e,!0)&&(o&&!Ci(s,t)||(i.push(n),o))||s===this._container)break;s=s.parentNode}return!i.length&&!a&&!o&&this.listens(e,!0)&&(i=[this]),i},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e=t.target||t.srcElement;if(!(!this._loaded||e._leaflet_disable_events||t.type==="click"&&this._isClickDisabled(e))){var i=t.type;i==="mousedown"&&xi(e),this._fireDOMEvent(t,i)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,i){if(t.type==="click"){var n=f({},t);n.type="preclick",this._fireDOMEvent(n,n.type,i)}var o=this._findEventTargets(t,e);if(i){for(var s=[],a=0;a0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),i=this.getMaxZoom(),n=x.any3d?this.options.zoomSnap:1;return n&&(t=Math.round(t/n)*n),Math.max(e,Math.min(i,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){$(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var i=this._getCenterOffset(t)._trunc();return(e&&e.animate)!==!0&&!this.getSize().contains(i)?!1:(this.panBy(i,e),!0)},_createAnimProxy:function(){var t=this._proxy=I("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(e){var i=_i,n=this._proxy.style[i];Gt(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),n===this._proxy.style[i]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){q(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();Gt(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,i){if(this._animatingZoom)return!0;if(i=i||{},!this._zoomAnimated||i.animate===!1||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/n);return i.animate!==!0&&!this.getSize().contains(o)?!1:(tt(function(){this._moveStart(!0,i.noMoveStart||!1)._animateZoom(t,e,!0)},this),!0)},_animateZoom:function(t,e,i,n){this._mapPane&&(i&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,k(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:n}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(v(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&$(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function ms(t,e){return new B(t,e)}var wt=yt.extend({options:{position:"topright"},initialize:function(t){Z(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),i=this.getPosition(),n=t._controlCorners[i];return k(e,"leaflet-control"),i.indexOf("bottom")!==-1?n.insertBefore(e,n.firstChild):n.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(q(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),Te=function(t){return new wt(t)};B.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",i=this._controlContainer=I("div",e+"control-container",this._container);function n(o,s){var a=e+o+" "+e+s;t[o+s]=I("div",a,i)}n("top","left"),n("top","right"),n("bottom","left"),n("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)q(this._controlCorners[t]);q(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var En=wt.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,i,n){return i1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(_(t.target)),i=e.overlay?t.type==="add"?"overlayadd":"overlayremove":t.type==="add"?"baselayerchange":null;i&&this._map.fire(i,e)},_createRadioElement:function(t,e){var i='",n=document.createElement("div");return n.innerHTML=i,n.firstChild},_addItem:function(t){var e=document.createElement("label"),i=this._map.hasLayer(t.layer),n;t.overlay?(n=document.createElement("input"),n.type="checkbox",n.className="leaflet-control-layers-selector",n.defaultChecked=i):n=this._createRadioElement("leaflet-base-layers_"+_(this),i),this._layerControlInputs.push(n),n.layerId=_(t.layer),O(n,"click",this._onInputClick,this);var o=document.createElement("span");o.innerHTML=" "+t.name;var s=document.createElement("span");e.appendChild(s),s.appendChild(n),s.appendChild(o);var a=t.overlay?this._overlaysList:this._baseLayersList;return a.appendChild(e),this._checkDisabledLayers(),e},_onInputClick:function(){if(!this._preventClick){var t=this._layerControlInputs,e,i,n=[],o=[];this._handlingClick=!0;for(var s=t.length-1;s>=0;s--)e=t[s],i=this._getLayer(e.layerId).layer,e.checked?n.push(i):e.checked||o.push(i);for(s=0;s=0;o--)e=t[o],i=this._getLayer(e.layerId).layer,e.disabled=i.options.minZoom!==void 0&&ni.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,O(t,"click",it),this.expand();var e=this;setTimeout(function(){W(t,"click",it),e._preventClick=!1})}}),vs=function(t,e,i){return new En(t,e,i)},Mi=wt.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=I("div",e+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,e+"-in",i,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,e+"-out",i,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),i},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,i,n,o){var s=I("a",i,n);return s.innerHTML=t,s.href="#",s.title=e,s.setAttribute("role","button"),s.setAttribute("aria-label",e),Pe(s),O(s,"click",$t),O(s,"click",o,this),O(s,"click",this._refocusOnMap,this),s},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";$(this._zoomInButton,e),$(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(k(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(k(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}});B.mergeOptions({zoomControl:!0}),B.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Mi,this.addControl(this.zoomControl))});var gs=function(t){return new Mi(t)},An=wt.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",i=I("div",e),n=this.options;return this._addScales(n,e+"-line",i),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),i},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,i){t.metric&&(this._mScale=I("div",e,i)),t.imperial&&(this._iScale=I("div",e,i))},_update:function(){var t=this._map,e=t.getSize().y/2,i=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(i)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),i=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,i,e/t)},_updateImperial:function(t){var e=t*3.2808399,i,n,o;e>5280?(i=e/5280,n=this._getRoundNum(i),this._updateScale(this._iScale,n+" mi",n/i)):(o=this._getRoundNum(e),this._updateScale(this._iScale,o+" ft",o/e))},_updateScale:function(t,e,i){t.style.width=Math.round(this.options.maxWidth*i)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),i=t/e;return i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:1,e*i}}),ys=function(t){return new An(t)},ws='',Oi=wt.extend({options:{position:"bottomright",prefix:''+(x.inlineSvg?ws+" ":"")+"Leaflet"},initialize:function(t){Z(this,t),this._attributions={}},onAdd:function(t){t.attributionControl=this,this._container=I("div","leaflet-control-attribution"),Pe(this._container);for(var e in t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",function(){this.removeAttribution(t.layer.getAttribution())},this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var i=[];this.options.prefix&&i.push(this.options.prefix),t.length&&i.push(t.join(", ")),this._container.innerHTML=i.join(' ')}}});B.mergeOptions({attributionControl:!0}),B.addInitHook(function(){this.options.attributionControl&&new Oi().addTo(this)});var xs=function(t){return new Oi(t)};wt.Layers=En,wt.Zoom=Mi,wt.Scale=An,wt.Attribution=Oi,Te.layers=vs,Te.zoom=gs,Te.scale=ys,Te.attribution=xs;var St=yt.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});St.addTo=function(t,e){return t.addHandler(e,this),this};var Ls={Events:nt},Bn=x.touch?"touchstart mousedown":"mousedown",Dt=ee.extend({options:{clickTolerance:3},initialize:function(t,e,i,n){Z(this,n),this._element=t,this._dragStartTarget=e||t,this._preventOutline=i},enable:function(){this._enabled||(O(this._dragStartTarget,Bn,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Dt._dragging===this&&this.finishDrag(!0),W(this._dragStartTarget,Bn,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!pi(this._element,"leaflet-zoom-anim"))){if(t.touches&&t.touches.length!==1){Dt._dragging===this&&this.finishDrag();return}if(!(Dt._dragging||t.shiftKey||t.which!==1&&t.button!==1&&!t.touches)&&(Dt._dragging=this,this._preventOutline&&xi(this._element),gi(),xe(),!this._moving)){this.fire("down");var e=t.touches?t.touches[0]:t,i=Sn(this._element);this._startPoint=new M(e.clientX,e.clientY),this._startPos=qt(this._element),this._parentScale=Li(i);var n=t.type==="mousedown";O(document,n?"mousemove":"touchmove",this._onMove,this),O(document,n?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(t){if(this._enabled){if(t.touches&&t.touches.length>1){this._moved=!0;return}var e=t.touches&&t.touches.length===1?t.touches[0]:t,i=new M(e.clientX,e.clientY)._subtract(this._startPoint);!i.x&&!i.y||Math.abs(i.x)+Math.abs(i.y)s&&(a=c,s=d);s>i&&(e[a]=1,zi(t,e,i,n,a),zi(t,e,i,a,o))}function Ss(t,e){for(var i=[t[0]],n=1,o=0,s=t.length;ne&&(i.push(t[n]),o=n);return oe.max.x&&(i|=2),t.ye.max.y&&(i|=8),i}function Cs(t,e){var i=e.x-t.x,n=e.y-t.y;return i*i+n*n}function Se(t,e,i,n){var o=e.x,s=e.y,a=i.x-o,c=i.y-s,d=a*a+c*c,p;return d>0&&(p=((t.x-o)*a+(t.y-s)*c)/d,p>1?(o=i.x,s=i.y):p>0&&(o+=a*p,s+=c*p)),a=t.x-o,c=t.y-s,n?a*a+c*c:new M(o,s)}function _t(t){return!H(t[0])||typeof t[0][0]!="object"&&typeof t[0][0]<"u"}function Hn(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),_t(t)}function Wn(t,e){var i,n,o,s,a,c,d,p;if(!t||t.length===0)throw new Error("latlngs not passed");_t(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var y=A([0,0]),P=Y(t),z=P.getNorthWest().distanceTo(P.getSouthWest())*P.getNorthEast().distanceTo(P.getNorthWest());z<1700&&(y=ki(t));var ot=t.length,et=[];for(i=0;in){d=(s-n)/o,p=[c.x-d*(c.x-a.x),c.y-d*(c.y-a.y)];break}var lt=e.unproject(C(p));return A([lt.lat+y.lat,lt.lng+y.lng])}var Ms={__proto__:null,simplify:Nn,pointToSegmentDistance:Rn,closestPointOnSegment:Ps,clipSegment:Fn,_getEdgeIntersection:Fe,_getBitCode:Jt,_sqClosestPointOnSegment:Se,isFlat:_t,_flat:Hn,polylineCenter:Wn},Ei={project:function(t){return new M(t.lng,t.lat)},unproject:function(t){return new F(t.y,t.x)},bounds:new G([-180,-90],[180,90])},Ai={R:6378137,R_MINOR:6356752314245179e-9,bounds:new G([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(t){var e=Math.PI/180,i=this.R,n=t.lat*e,o=this.R_MINOR/i,s=Math.sqrt(1-o*o),a=s*Math.sin(n),c=Math.tan(Math.PI/4-n/2)/Math.pow((1-a)/(1+a),s/2);return n=-i*Math.log(Math.max(c,1e-10)),new M(t.lng*e*i,n)},unproject:function(t){for(var e=180/Math.PI,i=this.R,n=this.R_MINOR/i,o=Math.sqrt(1-n*n),s=Math.exp(-t.y/i),a=Math.PI/2-2*Math.atan(s),c=0,d=.1,p;c<15&&Math.abs(d)>1e-7;c++)p=o*Math.sin(a),p=Math.pow((1-p)/(1+p),o/2),d=Math.PI/2-2*Math.atan(s*p)-a,a+=d;return new F(a*e,t.x*e/i)}},Os={__proto__:null,LonLat:Ei,Mercator:Ai,SphericalMercator:si},ks=f({},Rt,{code:"EPSG:3395",projection:Ai,transformation:function(){var t=.5/(Math.PI*Ai.R);return ve(t,.5,-t,.5)}()}),jn=f({},Rt,{code:"EPSG:4326",projection:Ei,transformation:ve(1/180,1,-1/180,.5)}),zs=f({},zt,{projection:Ei,transformation:ve(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var i=e.lng-t.lng,n=e.lat-t.lat;return Math.sqrt(i*i+n*n)},infinite:!0});zt.Earth=Rt,zt.EPSG3395=ks,zt.EPSG3857=ai,zt.EPSG900913=No,zt.EPSG4326=jn,zt.Simple=zs;var xt=ee.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[_(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[_(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var i=this.getEvents();e.on(i,this),this.once("remove",function(){e.off(i,this)},this)}this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this})}}});B.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=_(t);return this._layers[e]?this:(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t),this)},removeLayer:function(t){var e=_(t);return this._layers[e]?(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return _(t)in this._layers},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},_addLayers:function(t){t=t?H(t)?t:[t]:[];for(var e=0,i=t.length;ethis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()=2&&e[0]instanceof F&&e[0].equals(e[i-1])&&e.pop(),e},_setLatLngs:function(t){At.prototype._setLatLngs.call(this,t),_t(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return _t(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,i=new M(e,e);if(t=new G(t.min.subtract(i),t.max.add(i)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(t))){if(this.options.noClip){this._parts=this._rings;return}for(var n=0,o=this._rings.length,s;nt.y!=o.y>t.y&&t.x<(o.x-n.x)*(t.y-n.y)/(o.y-n.y)+n.x&&(e=!e);return e||At.prototype._containsPoint.call(this,t,!0)}});function Ds(t,e){return new ae(t,e)}var Bt=Et.extend({initialize:function(t,e){Z(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e=H(t)?t:t.features,i,n,o;if(e){for(i=0,n=e.length;i0&&o.push(o[0].slice()),o}function he(t,e){return t.feature?f({},t.feature,{geometry:e}):Ge(e)}function Ge(t){return t.type==="Feature"||t.type==="FeatureCollection"?t:{type:"Feature",properties:{},geometry:t}}var Ni={toGeoJSON:function(t){return he(this,{type:"Point",coordinates:Ii(this.getLatLng(),t)})}};He.include(Ni),Bi.include(Ni),We.include(Ni),At.include({toGeoJSON:function(t){var e=!_t(this._latlngs),i=Ue(this._latlngs,e?1:0,!1,t);return he(this,{type:(e?"Multi":"")+"LineString",coordinates:i})}}),ae.include({toGeoJSON:function(t){var e=!_t(this._latlngs),i=e&&!_t(this._latlngs[0]),n=Ue(this._latlngs,i?2:e?1:0,!0,t);return e||(n=[n]),he(this,{type:(i?"Multi":"")+"Polygon",coordinates:n})}}),se.include({toMultiPoint:function(t){var e=[];return this.eachLayer(function(i){e.push(i.toGeoJSON(t).geometry.coordinates)}),he(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(e==="MultiPoint")return this.toMultiPoint(t);var i=e==="GeometryCollection",n=[];return this.eachLayer(function(o){if(o.toGeoJSON){var s=o.toGeoJSON(t);if(i)n.push(s.geometry);else{var a=Ge(s);a.type==="FeatureCollection"?n.push.apply(n,a.features):n.push(a)}}}),i?he(this,{geometries:n,type:"GeometryCollection"}):{type:"FeatureCollection",features:n}}});function Gn(t,e){return new Bt(t,e)}var Fs=Gn,qe=xt.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,i){this._url=t,this._bounds=Y(e),Z(this,i)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(k(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){q(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&ne(this._image),this},bringToBack:function(){return this._map&&oe(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=Y(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t=this._url.tagName==="IMG",e=this._image=t?this._url:I("img");if(k(e,"leaflet-image-layer"),this._zoomAnimated&&k(e,"leaflet-zoom-animated"),this.options.className&&k(e,this.options.className),e.onselectstart=w,e.onmousemove=w,e.onload=v(this.fire,this,"load"),e.onerror=v(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(e.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t){this._url=e.src;return}e.src=this._url,e.alt=this.options.alt},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),i=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;Gt(this._image,i,e)},_reset:function(){var t=this._image,e=new G(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=e.getSize();X(t,e.min),t.style.width=i.x+"px",t.style.height=i.y+"px"},_updateOpacity:function(){ft(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),Hs=function(t,e,i){return new qe(t,e,i)},qn=qe.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t=this._url.tagName==="VIDEO",e=this._image=t?this._url:I("video");if(k(e,"leaflet-image-layer"),this._zoomAnimated&&k(e,"leaflet-zoom-animated"),this.options.className&&k(e,this.options.className),e.onselectstart=w,e.onmousemove=w,e.onloadeddata=v(this.fire,this,"load"),t){for(var i=e.getElementsByTagName("source"),n=[],o=0;o0?n:[e.src];return}H(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted,e.playsInline=!!this.options.playsInline;for(var s=0;so?(e.height=o+"px",k(t,s)):$(t,s),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),i=this._getAnchor();X(this._container,e.add(i))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var t=this._map,e=parseInt(we(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+e,n=this._containerWidth,o=new M(this._containerLeft,-i-this._containerBottom);o._add(qt(this._container));var s=t.layerPointToContainerPoint(o),a=C(this.options.autoPanPadding),c=C(this.options.autoPanPaddingTopLeft||a),d=C(this.options.autoPanPaddingBottomRight||a),p=t.getSize(),y=0,P=0;s.x+n+d.x>p.x&&(y=s.x+n-p.x+d.x),s.x-y-c.x<0&&(y=s.x-c.x),s.y+i+d.y>p.y&&(P=s.y+i-p.y+d.y),s.y-P-c.y<0&&(P=s.y-c.y),(y||P)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([y,P]))}},_getAnchor:function(){return C(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Vs=function(t,e){return new Ke(t,e)};B.mergeOptions({closePopupOnClick:!0}),B.include({openPopup:function(t,e,i){return this._initOverlay(Ke,t,e,i).openOn(this),this},closePopup:function(t){return t=arguments.length?t:this._popup,t&&t.close(),this}}),xt.include({bindPopup:function(t,e){return this._popup=this._initOverlay(Ke,this._popup,t,e),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&(this instanceof Et||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(!(!this._popup||!this._map)){$t(t);var e=t.layer||t.target;if(this._popup._source===e&&!(e instanceof Ft)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng);return}this._popup._source=e,this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){t.originalEvent.keyCode===13&&this._openPopup(t)}});var $e=Ct.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){Ct.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){Ct.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=Ct.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip",e=t+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=I("div",e),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+_(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,i,n=this._map,o=this._container,s=n.latLngToContainerPoint(n.getCenter()),a=n.layerPointToContainerPoint(t),c=this.options.direction,d=o.offsetWidth,p=o.offsetHeight,y=C(this.options.offset),P=this._getAnchor();c==="top"?(e=d/2,i=p):c==="bottom"?(e=d/2,i=0):c==="center"?(e=d/2,i=p/2):c==="right"?(e=0,i=p/2):c==="left"?(e=d,i=p/2):a.xthis.options.maxZoom||in?this._retainParent(o,s,a,n):!1)},_retainChildren:function(t,e,i,n){for(var o=2*t;o<2*t+2;o++)for(var s=2*e;s<2*e+2;s++){var a=new M(o,s);a.z=i+1;var c=this._tileCoordsToKey(a),d=this._tiles[c];if(d&&d.active){d.retain=!0;continue}else d&&d.loaded&&(d.retain=!0);i+1this.options.maxZoom||this.options.minZoom!==void 0&&o1){this._setView(t,i);return}for(var P=o.min.y;P<=o.max.y;P++)for(var z=o.min.x;z<=o.max.x;z++){var ot=new M(z,P);if(ot.z=this._tileZoom,!!this._isValidTile(ot)){var et=this._tiles[this._tileCoordsToKey(ot)];et?et.current=!0:a.push(ot)}}if(a.sort(function(lt,ue){return lt.distanceTo(s)-ue.distanceTo(s)}),a.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var pt=document.createDocumentFragment();for(z=0;zi.max.x)||!e.wrapLat&&(t.yi.max.y))return!1}if(!this.options.bounds)return!0;var n=this._tileCoordsToBounds(t);return Y(this.options.bounds).overlaps(n)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,i=this.getTileSize(),n=t.scaleBy(i),o=n.add(i),s=e.unproject(n,t.z),a=e.unproject(o,t.z);return[s,a]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),i=new ht(e[0],e[1]);return this.options.noWrap||(i=this._map.wrapLatLngBounds(i)),i},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),i=new M(+e[0],+e[1]);return i.z=+e[2],i},_removeTile:function(t){var e=this._tiles[t];e&&(q(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){k(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=w,t.onmousemove=w,x.ielt9&&this.options.opacity<1&&ft(t,this.options.opacity)},_addTile:function(t,e){var i=this._getTilePos(t),n=this._tileCoordsToKey(t),o=this.createTile(this._wrapCoords(t),v(this._tileReady,this,t));this._initTile(o),this.createTile.length<2&&tt(v(this._tileReady,this,t,null,o)),X(o,i),this._tiles[n]={el:o,coords:t,current:!0},e.appendChild(o),this.fire("tileloadstart",{tile:o,coords:t})},_tileReady:function(t,e,i){e&&this.fire("tileerror",{error:e,tile:i,coords:t});var n=this._tileCoordsToKey(t);i=this._tiles[n],i&&(i.loaded=+new Date,this._map._fadeAnimated?(ft(i.el,0),rt(this._fadeFrame),this._fadeFrame=tt(this._updateOpacity,this)):(i.active=!0,this._pruneTiles()),e||(k(i.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:i.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),x.ielt9||!this._map._fadeAnimated?tt(this._pruneTiles,this):setTimeout(v(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new M(this._wrapX?b(t.x,this._wrapX):t.x,this._wrapY?b(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new G(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});function qs(t){return new Me(t)}var le=Me.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,e){this._url=t,e=Z(this,e),e.detectRetina&&x.retina&&e.maxZoom>0?(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom=Math.min(e.maxZoom,e.minZoom+1)):(e.zoomOffset++,e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)),e.minZoom=Math.max(0,e.minZoom)):e.zoomReverse?e.minZoom=Math.min(e.maxZoom,e.minZoom):e.maxZoom=Math.max(e.minZoom,e.maxZoom),typeof e.subdomains=="string"&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&e===void 0&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var i=document.createElement("img");return O(i,"load",v(this._tileOnLoad,this,e,i)),O(i,"error",v(this._tileOnError,this,e,i)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(i.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(i.referrerPolicy=this.options.referrerPolicy),i.alt="",i.src=this.getTileUrl(t),i},getTileUrl:function(t){var e={r:x.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var i=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=i),e["-y"]=i}return J(this._url,f(e,this.options))},_tileOnLoad:function(t,e){x.ielt9?setTimeout(v(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,i){var n=this.options.errorTileUrl;n&&e.getAttribute("src")!==n&&(e.src=n),t(i,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom,i=this.options.zoomReverse,n=this.options.zoomOffset;return i&&(t=e-t),t+n},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&(e=this._tiles[t].el,e.onload=w,e.onerror=w,!e.complete)){e.src=bt;var i=this._tiles[t].coords;q(e),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:i})}},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",bt),Me.prototype._removeTile.call(this,t)},_tileReady:function(t,e,i){if(!(!this._map||i&&i.getAttribute("src")===bt))return Me.prototype._tileReady.call(this,t,e,i)}});function Jn(t,e){return new le(t,e)}var Yn=le.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,e){this._url=t;var i=f({},this.defaultWmsParams);for(var n in e)n in this.options||(i[n]=e[n]);e=Z(this,e);var o=e.detectRetina&&x.retina?2:1,s=this.getTileSize();i.width=s.x*o,i.height=s.y*o,this.wmsParams=i},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,le.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),i=this._crs,n=at(i.project(e[0]),i.project(e[1])),o=n.min,s=n.max,a=(this._wmsVersion>=1.3&&this._crs===jn?[o.y,o.x,s.y,s.x]:[o.x,o.y,s.x,s.y]).join(","),c=le.prototype.getTileUrl.call(this,t);return c+st(this.wmsParams,c,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+a},setParams:function(t,e){return f(this.wmsParams,t),e||this.redraw(),this}});function Ks(t,e){return new Yn(t,e)}le.WMS=Yn,Jn.wms=Ks;var Zt=xt.extend({options:{padding:.1},initialize:function(t){Z(this,t),_(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),k(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var i=this._map.getZoomScale(e,this._zoom),n=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,e),s=n.multiplyBy(-i).add(o).subtract(this._map._getNewPixelOrigin(t,e));x.any3d?Gt(this._container,s,i):X(this._container,s)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var t in this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),i=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new G(i,i.add(e.multiplyBy(1+t*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Xn=Zt.extend({options:{tolerance:0},getEvents:function(){var t=Zt.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Zt.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");O(t,"mousemove",this._onMouseMove,this),O(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),O(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){rt(this._redrawRequest),delete this._ctx,q(this._container),W(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var t;this._redrawBounds=null;for(var e in this._layers)t=this._layers[e],t._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Zt.prototype._update.call(this);var t=this._bounds,e=this._container,i=t.getSize(),n=x.retina?2:1;X(e,t.min),e.width=n*i.x,e.height=n*i.y,e.style.width=i.x+"px",e.style.height=i.y+"px",x.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){Zt.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[_(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,i=e.next,n=e.prev;i?i.prev=n:this._drawLast=n,n?n.next=i:this._drawFirst=i,delete t._order,delete this._layers[_(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if(typeof t.options.dashArray=="string"){var e=t.options.dashArray.split(/[, ]+/),i=[],n,o;for(o=0;o')}}catch{}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),$s={_initContainer:function(){this._container=I("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Zt.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=Oe("shape");k(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=Oe("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[_(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;q(e),t.removeInteractiveTarget(e),delete this._layers[_(t)]},_updateStyle:function(t){var e=t._stroke,i=t._fill,n=t.options,o=t._container;o.stroked=!!n.stroke,o.filled=!!n.fill,n.stroke?(e||(e=t._stroke=Oe("stroke")),o.appendChild(e),e.weight=n.weight+"px",e.color=n.color,e.opacity=n.opacity,n.dashArray?e.dashStyle=H(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=n.lineCap.replace("butt","flat"),e.joinstyle=n.lineJoin):e&&(o.removeChild(e),t._stroke=null),n.fill?(i||(i=t._fill=Oe("fill")),o.appendChild(i),i.color=n.fillColor||n.color,i.opacity=n.fillOpacity):i&&(o.removeChild(i),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),i=Math.round(t._radius),n=Math.round(t._radiusY||i);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+i+","+n+" 0,"+65535*360)},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){ne(t._container)},_bringToBack:function(t){oe(t._container)}},Je=x.vml?Oe:nn,ke=Zt.extend({_initContainer:function(){this._container=Je("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Je("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){q(this._container),W(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Zt.prototype._update.call(this);var t=this._bounds,e=t.getSize(),i=this._container;(!this._svgSize||!this._svgSize.equals(e))&&(this._svgSize=e,i.setAttribute("width",e.x),i.setAttribute("height",e.y)),X(i,t.min),i.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=Je("path");t.options.className&&k(e,t.options.className),t.options.interactive&&k(e,"leaflet-interactive"),this._updateStyle(t),this._layers[_(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){q(t._path),t.removeInteractiveTarget(t._path),delete this._layers[_(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,i=t.options;e&&(i.stroke?(e.setAttribute("stroke",i.color),e.setAttribute("stroke-opacity",i.opacity),e.setAttribute("stroke-width",i.weight),e.setAttribute("stroke-linecap",i.lineCap),e.setAttribute("stroke-linejoin",i.lineJoin),i.dashArray?e.setAttribute("stroke-dasharray",i.dashArray):e.removeAttribute("stroke-dasharray"),i.dashOffset?e.setAttribute("stroke-dashoffset",i.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),i.fill?(e.setAttribute("fill",i.fillColor||i.color),e.setAttribute("fill-opacity",i.fillOpacity),e.setAttribute("fill-rule",i.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,on(t._parts,e))},_updateCircle:function(t){var e=t._point,i=Math.max(Math.round(t._radius),1),n=Math.max(Math.round(t._radiusY),1)||i,o="a"+i+","+n+" 0 1,0 ",s=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+o+i*2+",0 "+o+-i*2+",0 ";this._setPath(t,s)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){ne(t._path)},_bringToBack:function(t){oe(t._path)}});x.vml&&ke.include($s);function to(t){return x.svg||x.vml?new ke(t):null}B.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if(t==="overlayPane"||t===void 0)return!1;var e=this._paneRenderers[t];return e===void 0&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&Qn(t)||to(t)}});var eo=ae.extend({initialize:function(t,e){ae.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return t=Y(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function Js(t,e){return new eo(t,e)}ke.create=Je,ke.pointsToPath=on,Bt.geometryToLayer=je,Bt.coordsToLatLng=Zi,Bt.coordsToLatLngs=Ve,Bt.latLngToCoords=Ii,Bt.latLngsToCoords=Ue,Bt.getFeature=he,Bt.asFeature=Ge,B.mergeOptions({boxZoom:!0});var io=St.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){O(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){W(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){q(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||t.which!==1&&t.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),xe(),gi(),this._startPoint=this._map.mouseEventToContainerPoint(t),O(document,{contextmenu:$t,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=I("div","leaflet-zoom-box",this._container),k(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new G(this._point,this._startPoint),i=e.getSize();X(this._box,e.min),this._box.style.width=i.x+"px",this._box.style.height=i.y+"px"},_finish:function(){this._moved&&(q(this._box),$(this._container,"leaflet-crosshair")),Le(),yi(),W(document,{contextmenu:$t,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if(!(t.which!==1&&t.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(v(this._resetState,this),0);var e=new ht(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){t.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});B.addInitHook("addHandler","boxZoom",io),B.mergeOptions({doubleClickZoom:!0});var no=St.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,i=e.getZoom(),n=e.options.zoomDelta,o=t.originalEvent.shiftKey?i-n:i+n;e.options.doubleClickZoom==="center"?e.setZoom(o):e.setZoomAround(t.containerPoint,o)}});B.addInitHook("addHandler","doubleClickZoom",no),B.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var oo=St.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new Dt(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}k(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){$(this._map._container,"leaflet-grab"),$(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=Y(this._map.options.maxBounds);this._offsetLimit=at(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,i=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(i),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.xe.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),i=this._initialWorldOffset,n=this._draggable._newPos.x,o=(n-e+i)%t+e-i,s=(n+e+i)%t-e-i,a=Math.abs(o+i)0?s:-s))-e;this._delta=0,this._startTime=null,a&&(t.options.scrollWheelZoom==="center"?t.setZoom(e+a):t.setZoomAround(this._lastMousePos,e+a))}});B.addInitHook("addHandler","scrollWheelZoom",ro);var Ys=600;B.mergeOptions({tapHold:x.touchNative&&x.safari&&x.mobile,tapTolerance:15});var ao=St.extend({addHooks:function(){O(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){W(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),t.touches.length===1){var e=t.touches[0];this._startPos=this._newPos=new M(e.clientX,e.clientY),this._holdTimeout=setTimeout(v(function(){this._cancel(),this._isTapValid()&&(O(document,"touchend",it),O(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))},this),Ys),O(document,"touchend touchcancel contextmenu",this._cancel,this),O(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){W(document,"touchend",it),W(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),W(document,"touchend touchcancel contextmenu",this._cancel,this),W(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new M(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var i=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});i._simulated=!0,e.target.dispatchEvent(i)}});B.addInitHook("addHandler","tapHold",ao),B.mergeOptions({touchZoom:x.touch,bounceAtZoomLimits:!0});var ho=St.extend({addHooks:function(){k(this._map._container,"leaflet-touch-zoom"),O(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){$(this._map._container,"leaflet-touch-zoom"),W(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(!(!t.touches||t.touches.length!==2||e._animatingZoom||this._zooming)){var i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),e.options.touchZoom!=="center"&&(this._pinchStartLatLng=e.containerPointToLatLng(i.add(n)._divideBy(2))),this._startDist=i.distanceTo(n),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),O(document,"touchmove",this._onTouchMove,this),O(document,"touchend touchcancel",this._onTouchEnd,this),it(t)}},_onTouchMove:function(t){if(!(!t.touches||t.touches.length!==2||!this._zooming)){var e=this._map,i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]),o=i.distanceTo(n)/this._startDist;if(this._zoom=e.getScaleZoom(o,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoome.getMaxZoom()&&o>1)&&(this._zoom=e._limitZoom(this._zoom)),e.options.touchZoom==="center"){if(this._center=this._startLatLng,o===1)return}else{var s=i._add(n)._divideBy(2)._subtract(this._centerPoint);if(o===1&&s.x===0&&s.y===0)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(s),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),rt(this._animRequest);var a=v(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=tt(a,this,!0),it(t)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,rt(this._animRequest),W(document,"touchmove",this._onTouchMove,this),W(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});B.addInitHook("addHandler","touchZoom",ho),B.BoxZoom=io,B.DoubleClickZoom=no,B.Drag=oo,B.Keyboard=so,B.ScrollWheelZoom=ro,B.TapHold=ao,B.TouchZoom=ho,r.Bounds=G,r.Browser=x,r.CRS=zt,r.Canvas=Xn,r.Circle=Bi,r.CircleMarker=We,r.Class=yt,r.Control=wt,r.DivIcon=$n,r.DivOverlay=Ct,r.DomEvent=ps,r.DomUtil=fs,r.Draggable=Dt,r.Evented=ee,r.FeatureGroup=Et,r.GeoJSON=Bt,r.GridLayer=Me,r.Handler=St,r.Icon=re,r.ImageOverlay=qe,r.LatLng=F,r.LatLngBounds=ht,r.Layer=xt,r.LayerGroup=se,r.LineUtil=Ms,r.Map=B,r.Marker=He,r.Mixin=Ls,r.Path=Ft,r.Point=M,r.PolyUtil=bs,r.Polygon=ae,r.Polyline=At,r.Popup=Ke,r.PosAnimation=zn,r.Projection=Os,r.Rectangle=eo,r.Renderer=Zt,r.SVG=ke,r.SVGOverlay=Kn,r.TileLayer=le,r.Tooltip=$e,r.Transformation=ri,r.Util=oi,r.VideoOverlay=qn,r.bind=v,r.bounds=at,r.canvas=Qn,r.circle=Ns,r.circleMarker=Is,r.control=Te,r.divIcon=Gs,r.extend=f,r.featureGroup=As,r.geoJSON=Gn,r.geoJson=Fs,r.gridLayer=qs,r.icon=Bs,r.imageOverlay=Hs,r.latLng=A,r.latLngBounds=Y,r.layerGroup=Es,r.map=ms,r.marker=Zs,r.point=C,r.polygon=Ds,r.polyline=Rs,r.popup=Vs,r.rectangle=Js,r.setOptions=Z,r.stamp=_,r.svg=to,r.svgOverlay=js,r.tileLayer=Jn,r.tooltip=Us,r.transformation=ve,r.version=u,r.videoOverlay=Ws;var Xs=window.L;r.noConflict=function(){return window.L=Xs,this},window.L=r})})(Vi,Vi.exports);var Io=Vi.exports;const la=br(Io),ua=Tr({__proto__:null,default:la},[Io]),ca={__name:"map",props:{routeId:String,gpxPath:String},emits:["ready"],setup(h,{emit:l}){const r=h,u=l,f=j(null),m=j([0,0]),v=j(null),g=j(!1),_=j(null),S=j(null),b=j(0),w=j(null),N=j(null),E=lr();ur(E.entities);const K=j(null);kt(async()=>{(async()=>{const U=await xr("routes",r.gpxPath);_.value=ha(new DOMParser().parseFromString(U,"text/xml")),g.value=!0})()});async function Z(){const R=_r(),{data:U,error:ut}=await R.from("overlays").select("*").eq("route_id",r.routeId),T={};U.forEach(D=>{T[D.type]=JSON.parse(D.data)}),S.value=T}function st(){K.value=f.value.leafletObject,Z(),V(),J(),u("ready")}function V(){const R=L.geoJSON(_.value).getBounds(),U=[[R._northEast.lat+.05,R._northEast.lng],[R._southWest.lat,R._southWest.lng]];v.value=U,b.value=K.value.getBoundsZoom(U)}async function J(){await E.fetch(),navigator.geolocation||dr().add({type:"error",text:"Geolocation is not supported by your browser"})}const H=ze(()=>{const R=K.value.getZoom();return N.value*3/R});function dt(R){let U;switch(R){case"spring":U="/marker/water-custom.png";break;case"fountain":U="/marker/water-pump-custom.png";break;case"bbq":U="/marker/grill-custom.png";break;case"firepit":U="/marker/grill-custom.png";break;case"shelter":U="/marker/home-custom.png";break;case"location":U="/marker/map-marker-account-outline-custom.png";break;default:U="/marker/map-marker-custom.png";break}if(typeof L.icon!="function")throw new Error("L.icon is not a function");return L.icon({iconUrl:U,iconSize:[25,25],iconAnchor:[12,25]})}function bt(R){const U=new L.LatLng(R.geometry.coordinates[1],R.geometry.coordinates[0]);new L.popup().setLatLng(U).setContent(` + + ${Object.entries(R.properties.tags).map(([ut,T])=>` + + + + + `).join("")} +
${ut}: ${T}
+ `).openOn(K.value)}return cr(async()=>{}),kt(()=>{}),(R,U)=>{const ut=Hr,T=Ir,D=Xr,tt=jr,rt=fr;return Mt(),Yt(rt,null,{default:Hi(()=>[ct(g)?(Mt(),Yt(tt,{key:0,ref_key:"map",ref:f,class:"map",zoom:12,"use-global-leaflet":!1,center:ct(m),onReady:st},{default:Hi(()=>[Wi(ut,{geojson:ct(_)},null,8,["geojson"]),(Mt(!0),Di(Fi,null,_o(ct(S),(oi,yt)=>(Mt(),Di(Fi,null,[(Mt(!0),Di(Fi,null,_o(oi.features,(me,nt)=>(Mt(),Yt(ct($r),{onClick:ee=>bt(me),key:nt,ref_for:!0,ref:"marker","lat-lng":[me.geometry.coordinates[1],me.geometry.coordinates[0]],icon:dt(yt)},null,8,["onClick","lat-lng","icon"]))),128))],64))),256)),ct(w)?(Mt(),Yt(T,{key:0,"lat-lng":ct(w),radius:4,fill:!0,fillColor:"green"},null,8,["lat-lng"])):ti("",!0),ct(w)?(Mt(),Yt(T,{key:1,"lat-lng":ct(w),radius:ct(H)},null,8,["lat-lng","radius"])):ti("",!0),Wi(D,{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png","layer-type":"base",name:"OpenStreetMap",attribution:'© OpenStreetMap contributors'})]),_:1},8,["center"])):ti("",!0)]),_:1})}}},da=Nt({__name:"[id]",async setup(h){let l,r;const u=j(!1),f=pr();[l,r]=mr(()=>f.fetch()),await l,r();const m=f.byId(vr().params.id);function v(){}return(g,_)=>{const S=ca;return Mt(),Yt(Pr,{fluid:"",class:"position-relative"},{default:Hi(()=>[ct(u)?ti("",!0):(Mt(),Yt(gr,{key:0,class:"absolute-center",color:"primary",indeterminate:""})),yr("div",{id:"mapcontainer",ref:"mapcontainer",onClick:_[1]||(_[1]=b=>void 0)},[Wi(S,{id:"map","route-id":ct(m).id,"gpx-path":ct(m).originalFile,onReady:_[0]||(_[0]=b=>u.value=!0)},null,8,["route-id","gpx-path"])],512)]),_:1})}}}),va=wr(da,[["__scopeId","data-v-e5f48f67"]]);export{va as default}; diff --git a/_nuxt/REcBhd0O.js b/_nuxt/REcBhd0O.js new file mode 100644 index 0000000..4baa4dd --- /dev/null +++ b/_nuxt/REcBhd0O.js @@ -0,0 +1,22 @@ +var En=Object.defineProperty;var Ln=(i,t,e)=>t in i?En(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var M=(i,t,e)=>(Ln(i,typeof t!="symbol"?t+"":t,e),e);import{_ as zn}from"./1ufk8KGl.js";import{_ as Ws}from"./cxFlIQmQ.js";import{d as He,ap as Bs,g as ri,aq as Fn,r as rt,o as Ns,ar as jn,as as Re,at as ai,au as Vn,av as Hs,c as Oe,i as Wn,v as Et,x as Ie,y as Mt,A as C,B as O,ae as li,ad as Bn,af as I,a8 as $s,C as tt,z as Yt,aw as ci,S as Ys,an as Nn,ax as Hn,ay as $n,am as Yn,ab as Xe,ag as Ke,az as Un,ak as Ri,aj as At,aA as Xn,aa as Ii,aB as Kn,q as Ti,D as qn,E as Gn,_ as Zn}from"./CsYHinuP.js";import{f as hi,g as Qn}from"./BFbS1nff.js";import{V as Jn,_ as to}from"./DROfdj8r.js";import{V as Ei}from"./Ckgx-ZkB.js";import{V as eo}from"./DKIU8Zgl.js";import{V as Li,a as ce}from"./DoIRHZ99.js";import{V as io}from"./anyozH1k.js";import{V as so}from"./BorjDOqY.js";/*! + * @kurkle/color v0.3.2 + * https://github.com/kurkle/color#readme + * (c) 2023 Jukka Kurkela + * Released under the MIT License + */function oe(i){return i+.5|0}const dt=(i,t,e)=>Math.max(Math.min(i,e),t);function Ut(i){return dt(oe(i*2.55),0,255)}function ft(i){return dt(oe(i*255),0,255)}function at(i){return dt(oe(i/2.55)/100,0,1)}function zi(i){return dt(oe(i*100),0,100)}const Z={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},di=[..."0123456789ABCDEF"],no=i=>di[i&15],oo=i=>di[(i&240)>>4]+di[i&15],he=i=>(i&240)>>4===(i&15),ro=i=>he(i.r)&&he(i.g)&&he(i.b)&&he(i.a);function ao(i){var t=i.length,e;return i[0]==="#"&&(t===4||t===5?e={r:255&Z[i[1]]*17,g:255&Z[i[2]]*17,b:255&Z[i[3]]*17,a:t===5?Z[i[4]]*17:255}:(t===7||t===9)&&(e={r:Z[i[1]]<<4|Z[i[2]],g:Z[i[3]]<<4|Z[i[4]],b:Z[i[5]]<<4|Z[i[6]],a:t===9?Z[i[7]]<<4|Z[i[8]]:255})),e}const lo=(i,t)=>i<255?t(i):"";function co(i){var t=ro(i)?no:oo;return i?"#"+t(i.r)+t(i.g)+t(i.b)+lo(i.a,t):void 0}const ho=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Us(i,t,e){const s=t*Math.min(e,1-e),n=(o,r=(o+i/30)%12)=>e-s*Math.max(Math.min(r-3,9-r,1),-1);return[n(0),n(8),n(4)]}function uo(i,t,e){const s=(n,o=(n+i/60)%6)=>e-e*t*Math.max(Math.min(o,4-o,1),0);return[s(5),s(3),s(1)]}function fo(i,t,e){const s=Us(i,1,.5);let n;for(t+e>1&&(n=1/(t+e),t*=n,e*=n),n=0;n<3;n++)s[n]*=1-t-e,s[n]+=t;return s}function go(i,t,e,s,n){return i===n?(t-e)/s+(t.5?h/(2-o-r):h/(o+r),l=go(e,s,n,h,o),l=l*60+.5),[l|0,c||0,a]}function yi(i,t,e,s){return(Array.isArray(t)?i(t[0],t[1],t[2]):i(t,e,s)).map(ft)}function xi(i,t,e){return yi(Us,i,t,e)}function po(i,t,e){return yi(fo,i,t,e)}function mo(i,t,e){return yi(uo,i,t,e)}function Xs(i){return(i%360+360)%360}function _o(i){const t=ho.exec(i);let e=255,s;if(!t)return;t[5]!==s&&(e=t[6]?Ut(+t[5]):ft(+t[5]));const n=Xs(+t[2]),o=+t[3]/100,r=+t[4]/100;return t[1]==="hwb"?s=po(n,o,r):t[1]==="hsv"?s=mo(n,o,r):s=xi(n,o,r),{r:s[0],g:s[1],b:s[2],a:e}}function bo(i,t){var e=bi(i);e[0]=Xs(e[0]+t),e=xi(e),i.r=e[0],i.g=e[1],i.b=e[2]}function yo(i){if(!i)return;const t=bi(i),e=t[0],s=zi(t[1]),n=zi(t[2]);return i.a<255?`hsla(${e}, ${s}%, ${n}%, ${at(i.a)})`:`hsl(${e}, ${s}%, ${n}%)`}const Fi={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},ji={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function xo(){const i={},t=Object.keys(ji),e=Object.keys(Fi);let s,n,o,r,a;for(s=0;s>16&255,o>>8&255,o&255]}return i}let de;function vo(i){de||(de=xo(),de.transparent=[0,0,0,0]);const t=de[i.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const wo=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Mo(i){const t=wo.exec(i);let e=255,s,n,o;if(t){if(t[7]!==s){const r=+t[7];e=t[8]?Ut(r):dt(r*255,0,255)}return s=+t[1],n=+t[3],o=+t[5],s=255&(t[2]?Ut(s):dt(s,0,255)),n=255&(t[4]?Ut(n):dt(n,0,255)),o=255&(t[6]?Ut(o):dt(o,0,255)),{r:s,g:n,b:o,a:e}}}function ko(i){return i&&(i.a<255?`rgba(${i.r}, ${i.g}, ${i.b}, ${at(i.a)})`:`rgb(${i.r}, ${i.g}, ${i.b})`)}const qe=i=>i<=.0031308?i*12.92:Math.pow(i,1/2.4)*1.055-.055,Pt=i=>i<=.04045?i/12.92:Math.pow((i+.055)/1.055,2.4);function So(i,t,e){const s=Pt(at(i.r)),n=Pt(at(i.g)),o=Pt(at(i.b));return{r:ft(qe(s+e*(Pt(at(t.r))-s))),g:ft(qe(n+e*(Pt(at(t.g))-n))),b:ft(qe(o+e*(Pt(at(t.b))-o))),a:i.a+e*(t.a-i.a)}}function ue(i,t,e){if(i){let s=bi(i);s[t]=Math.max(0,Math.min(s[t]+s[t]*e,t===0?360:1)),s=xi(s),i.r=s[0],i.g=s[1],i.b=s[2]}}function Ks(i,t){return i&&Object.assign(t||{},i)}function Vi(i){var t={r:0,g:0,b:0,a:255};return Array.isArray(i)?i.length>=3&&(t={r:i[0],g:i[1],b:i[2],a:255},i.length>3&&(t.a=ft(i[3]))):(t=Ks(i,{r:0,g:0,b:0,a:1}),t.a=ft(t.a)),t}function Oo(i){return i.charAt(0)==="r"?Mo(i):_o(i)}class ee{constructor(t){if(t instanceof ee)return t;const e=typeof t;let s;e==="object"?s=Vi(t):e==="string"&&(s=ao(t)||vo(t)||Oo(t)),this._rgb=s,this._valid=!!s}get valid(){return this._valid}get rgb(){var t=Ks(this._rgb);return t&&(t.a=at(t.a)),t}set rgb(t){this._rgb=Vi(t)}rgbString(){return this._valid?ko(this._rgb):void 0}hexString(){return this._valid?co(this._rgb):void 0}hslString(){return this._valid?yo(this._rgb):void 0}mix(t,e){if(t){const s=this.rgb,n=t.rgb;let o;const r=e===o?.5:e,a=2*r-1,l=s.a-n.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;o=1-c,s.r=255&c*s.r+o*n.r+.5,s.g=255&c*s.g+o*n.g+.5,s.b=255&c*s.b+o*n.b+.5,s.a=r*s.a+(1-r)*n.a,this.rgb=s}return this}interpolate(t,e){return t&&(this._rgb=So(this._rgb,t._rgb,e)),this}clone(){return new ee(this.rgb)}alpha(t){return this._rgb.a=ft(t),this}clearer(t){const e=this._rgb;return e.a*=1-t,this}greyscale(){const t=this._rgb,e=oe(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=e,this}opaquer(t){const e=this._rgb;return e.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return ue(this._rgb,2,t),this}darken(t){return ue(this._rgb,2,-t),this}saturate(t){return ue(this._rgb,1,t),this}desaturate(t){return ue(this._rgb,1,-t),this}rotate(t){return bo(this._rgb,t),this}}/*! + * Chart.js v4.4.3 + * https://www.chartjs.org + * (c) 2024 Chart.js Contributors + * Released under the MIT License + */const Co=(()=>{let i=0;return()=>i++})();function N(i){return i===null||typeof i>"u"}function Y(i){if(Array.isArray&&Array.isArray(i))return!0;const t=Object.prototype.toString.call(i);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function S(i){return i!==null&&Object.prototype.toString.call(i)==="[object Object]"}function ct(i){return(typeof i=="number"||i instanceof Number)&&isFinite(+i)}function it(i,t){return ct(i)?i:t}function E(i,t){return typeof i>"u"?t:i}const Do=(i,t)=>typeof i=="string"&&i.endsWith("%")?parseFloat(i)/100:+i/t,qs=(i,t)=>typeof i=="string"&&i.endsWith("%")?parseFloat(i)/100*t:+i;function T(i,t,e){if(i&&typeof i.call=="function")return i.apply(e,t)}function $(i,t,e,s){let n,o,r;if(Y(i))for(o=i.length,n=0;ni,x:i=>i.x,y:i=>i.y};function Ro(i){const t=i.split("."),e=[];let s="";for(const n of t)s+=n,s.endsWith("\\")?s=s.slice(0,-1)+".":(e.push(s),s="");return e}function Io(i){const t=Ro(i);return e=>{for(const s of t){if(s==="")break;e=e&&e[s]}return e}}function ie(i,t){return(Bi[t]||(Bi[t]=Io(t)))(i)}function vi(i){return i.charAt(0).toUpperCase()+i.slice(1)}const Ee=i=>typeof i<"u",gt=i=>typeof i=="function",Ni=(i,t)=>{if(i.size!==t.size)return!1;for(const e of i)if(!t.has(e))return!1;return!0};function To(i){return i.type==="mouseup"||i.type==="click"||i.type==="contextmenu"}const H=Math.PI,W=2*H,Le=Number.POSITIVE_INFINITY,Eo=H/180,B=H/2,_t=H/4,Hi=H*2/3,$i=Math.log10,Yi=Math.sign;function Lo(i){const t=[],e=Math.sqrt(i);let s;for(s=1;sn-o).pop(),t}function ze(i){return!isNaN(parseFloat(i))&&isFinite(i)}function wt(i){return i*(H/180)}function zo(i){return i*(180/H)}function Zs(i,t){const e=t.x-i.x,s=t.y-i.y,n=Math.sqrt(e*e+s*s);let o=Math.atan2(s,e);return o<-.5*H&&(o+=W),{angle:o,distance:n}}function bt(i){return(i%W+W)%W}function Fe(i,t,e,s){const n=bt(i),o=bt(t),r=bt(e),a=bt(o-n),l=bt(r-n),c=bt(n-o),h=bt(n-r);return n===o||n===r||s&&o===r||a>l&&c=Math.min(t,e)-s&&i<=Math.max(t,e)+s}function wi(i,t,e){e=e||(r=>i[r]1;)o=n+s>>1,e(o)?n=o:s=o;return{lo:n,hi:s}}const fi=(i,t,e,s)=>wi(i,e,s?n=>{const o=i[n][t];return oi[n][t]wi(i,e,s=>i[s][t]>=e);function Vo(i,t,e){let s=0,n=i.length;for(;ss&&i[n-1]>e;)n--;return s>0||n{const s="_onData"+vi(e),n=i[e];Object.defineProperty(i,e,{configurable:!0,enumerable:!1,value(...o){const r=n.apply(this,o);return i._chartjs.listeners.forEach(a=>{typeof a[s]=="function"&&a[s](...o)}),r}})})}function Ui(i,t){const e=i._chartjs;if(!e)return;const s=e.listeners,n=s.indexOf(t);n!==-1&&s.splice(n,1),!(s.length>0)&&(Qs.forEach(o=>{delete i[o]}),delete i._chartjs)}function Bo(i){const t=new Set(i);return t.size===i.length?i:Array.from(t)}const Js=function(){return typeof window>"u"?function(i){return i()}:window.requestAnimationFrame}();function tn(i,t){let e=[],s=!1;return function(...n){e=n,s||(s=!0,Js.call(window,()=>{s=!1,i.apply(t,e)}))}}function No(i,t){let e;return function(...s){return t?(clearTimeout(e),e=setTimeout(i,t,s)):i.apply(this,s),t}}const Ho=i=>i==="start"?"left":i==="end"?"right":"center",Xi=(i,t,e)=>i==="start"?t:i==="end"?e:(t+e)/2,fe=i=>i===0||i===1,Ki=(i,t,e)=>-(Math.pow(2,10*(i-=1))*Math.sin((i-t)*W/e)),qi=(i,t,e)=>Math.pow(2,-10*i)*Math.sin((i-t)*W/e)+1,Gt={linear:i=>i,easeInQuad:i=>i*i,easeOutQuad:i=>-i*(i-2),easeInOutQuad:i=>(i/=.5)<1?.5*i*i:-.5*(--i*(i-2)-1),easeInCubic:i=>i*i*i,easeOutCubic:i=>(i-=1)*i*i+1,easeInOutCubic:i=>(i/=.5)<1?.5*i*i*i:.5*((i-=2)*i*i+2),easeInQuart:i=>i*i*i*i,easeOutQuart:i=>-((i-=1)*i*i*i-1),easeInOutQuart:i=>(i/=.5)<1?.5*i*i*i*i:-.5*((i-=2)*i*i*i-2),easeInQuint:i=>i*i*i*i*i,easeOutQuint:i=>(i-=1)*i*i*i*i+1,easeInOutQuint:i=>(i/=.5)<1?.5*i*i*i*i*i:.5*((i-=2)*i*i*i*i+2),easeInSine:i=>-Math.cos(i*B)+1,easeOutSine:i=>Math.sin(i*B),easeInOutSine:i=>-.5*(Math.cos(H*i)-1),easeInExpo:i=>i===0?0:Math.pow(2,10*(i-1)),easeOutExpo:i=>i===1?1:-Math.pow(2,-10*i)+1,easeInOutExpo:i=>fe(i)?i:i<.5?.5*Math.pow(2,10*(i*2-1)):.5*(-Math.pow(2,-10*(i*2-1))+2),easeInCirc:i=>i>=1?i:-(Math.sqrt(1-i*i)-1),easeOutCirc:i=>Math.sqrt(1-(i-=1)*i),easeInOutCirc:i=>(i/=.5)<1?-.5*(Math.sqrt(1-i*i)-1):.5*(Math.sqrt(1-(i-=2)*i)+1),easeInElastic:i=>fe(i)?i:Ki(i,.075,.3),easeOutElastic:i=>fe(i)?i:qi(i,.075,.3),easeInOutElastic(i){return fe(i)?i:i<.5?.5*Ki(i*2,.1125,.45):.5+.5*qi(i*2-1,.1125,.45)},easeInBack(i){return i*i*((1.70158+1)*i-1.70158)},easeOutBack(i){return(i-=1)*i*((1.70158+1)*i+1.70158)+1},easeInOutBack(i){let t=1.70158;return(i/=.5)<1?.5*(i*i*(((t*=1.525)+1)*i-t)):.5*((i-=2)*i*(((t*=1.525)+1)*i+t)+2)},easeInBounce:i=>1-Gt.easeOutBounce(1-i),easeOutBounce(i){return i<1/2.75?7.5625*i*i:i<2/2.75?7.5625*(i-=1.5/2.75)*i+.75:i<2.5/2.75?7.5625*(i-=2.25/2.75)*i+.9375:7.5625*(i-=2.625/2.75)*i+.984375},easeInOutBounce:i=>i<.5?Gt.easeInBounce(i*2)*.5:Gt.easeOutBounce(i*2-1)*.5+.5};function en(i){if(i&&typeof i=="object"){const t=i.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function Gi(i){return en(i)?i:new ee(i)}function Ge(i){return en(i)?i:new ee(i).saturate(.5).darken(.1).hexString()}const $o=["x","y","borderWidth","radius","tension"],Yo=["color","borderColor","backgroundColor"];function Uo(i){i.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),i.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),i.set("animations",{colors:{type:"color",properties:Yo},numbers:{type:"number",properties:$o}}),i.describe("animations",{_fallback:"animation"}),i.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function Xo(i){i.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Zi=new Map;function Ko(i,t){t=t||{};const e=i+JSON.stringify(t);let s=Zi.get(e);return s||(s=new Intl.NumberFormat(i,t),Zi.set(e,s)),s}function sn(i,t,e){return Ko(t,e).format(i)}const nn={values(i){return Y(i)?i:""+i},numeric(i,t,e){if(i===0)return"0";const s=this.chart.options.locale;let n,o=i;if(e.length>1){const c=Math.max(Math.abs(e[0].value),Math.abs(e[e.length-1].value));(c<1e-4||c>1e15)&&(n="scientific"),o=qo(i,e)}const r=$i(Math.abs(o)),a=isNaN(r)?1:Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:n,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),sn(i,s,l)},logarithmic(i,t,e){if(i===0)return"0";const s=e[t].significand||i/Math.pow(10,Math.floor($i(i)));return[1,2,3,5,10,15].includes(s)||t>.8*e.length?nn.numeric.call(this,i,t,e):""}};function qo(i,t){let e=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(e)>=1&&i!==Math.floor(i)&&(e=i-Math.floor(i)),e}var Go={formatters:nn};function Zo(i){i.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Go.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),i.route("scale.ticks","color","","color"),i.route("scale.grid","color","","borderColor"),i.route("scale.border","color","","borderColor"),i.route("scale.title","color","","color"),i.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),i.describe("scales",{_fallback:"scale"}),i.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const St=Object.create(null),gi=Object.create(null);function Zt(i,t){if(!t)return i;const e=t.split(".");for(let s=0,n=e.length;ss.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(s,n)=>Ge(n.backgroundColor),this.hoverBorderColor=(s,n)=>Ge(n.borderColor),this.hoverColor=(s,n)=>Ge(n.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return Ze(this,t,e)}get(t){return Zt(this,t)}describe(t,e){return Ze(gi,t,e)}override(t,e){return Ze(St,t,e)}route(t,e,s,n){const o=Zt(this,t),r=Zt(this,s),a="_"+e;Object.defineProperties(o,{[a]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){const l=this[a],c=r[n];return S(l)?Object.assign({},c,l):E(l,c)},set(l){this[a]=l}}})}apply(t){t.forEach(e=>e(this))}}var F=new Qo({_scriptable:i=>!i.startsWith("on"),_indexable:i=>i!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Uo,Xo,Zo]);function Jo(i){return!i||N(i.size)||N(i.family)?null:(i.style?i.style+" ":"")+(i.weight?i.weight+" ":"")+i.size+"px "+i.family}function Qi(i,t,e,s,n){let o=t[n];return o||(o=t[n]=i.measureText(n).width,e.push(n)),o>s&&(s=o),s}function yt(i,t,e){const s=i.currentDevicePixelRatio,n=e!==0?Math.max(e/2,.5):0;return Math.round((t-n)*s)/s+n}function Ji(i,t){!t&&!i||(t=t||i.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,i.width,i.height),t.restore())}function tr(i,t,e,s){er(i,t,e,s)}function er(i,t,e,s,n){let o,r,a,l,c,h,d,u;const f=t.pointStyle,m=t.rotation,p=t.radius;let g=(m||0)*Eo;if(f&&typeof f=="object"&&(o=f.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){i.save(),i.translate(e,s),i.rotate(g),i.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),i.restore();return}if(!(isNaN(p)||p<=0)){switch(i.beginPath(),f){default:i.arc(e,s,p,0,W),i.closePath();break;case"triangle":h=p,i.moveTo(e+Math.sin(g)*h,s-Math.cos(g)*p),g+=Hi,i.lineTo(e+Math.sin(g)*h,s-Math.cos(g)*p),g+=Hi,i.lineTo(e+Math.sin(g)*h,s-Math.cos(g)*p),i.closePath();break;case"rectRounded":c=p*.516,l=p-c,r=Math.cos(g+_t)*l,d=Math.cos(g+_t)*l,a=Math.sin(g+_t)*l,u=Math.sin(g+_t)*l,i.arc(e-d,s-a,c,g-H,g-B),i.arc(e+u,s-r,c,g-B,g),i.arc(e+d,s+a,c,g,g+B),i.arc(e-u,s+r,c,g+B,g+H),i.closePath();break;case"rect":if(!m){l=Math.SQRT1_2*p,h=l,i.rect(e-h,s-l,2*h,2*l);break}g+=_t;case"rectRot":d=Math.cos(g)*p,r=Math.cos(g)*p,a=Math.sin(g)*p,u=Math.sin(g)*p,i.moveTo(e-d,s-a),i.lineTo(e+u,s-r),i.lineTo(e+d,s+a),i.lineTo(e-u,s+r),i.closePath();break;case"crossRot":g+=_t;case"cross":d=Math.cos(g)*p,r=Math.cos(g)*p,a=Math.sin(g)*p,u=Math.sin(g)*p,i.moveTo(e-d,s-a),i.lineTo(e+d,s+a),i.moveTo(e+u,s-r),i.lineTo(e-u,s+r);break;case"star":d=Math.cos(g)*p,r=Math.cos(g)*p,a=Math.sin(g)*p,u=Math.sin(g)*p,i.moveTo(e-d,s-a),i.lineTo(e+d,s+a),i.moveTo(e+u,s-r),i.lineTo(e-u,s+r),g+=_t,d=Math.cos(g)*p,r=Math.cos(g)*p,a=Math.sin(g)*p,u=Math.sin(g)*p,i.moveTo(e-d,s-a),i.lineTo(e+d,s+a),i.moveTo(e+u,s-r),i.lineTo(e-u,s+r);break;case"line":r=Math.cos(g)*p,a=Math.sin(g)*p,i.moveTo(e-r,s-a),i.lineTo(e+r,s+a);break;case"dash":i.moveTo(e,s),i.lineTo(e+Math.cos(g)*p,s+Math.sin(g)*p);break;case!1:i.closePath();break}i.fill(),t.borderWidth>0&&i.stroke()}}function Mi(i,t,e){return e=e||.5,!t||i&&i.x>t.left-e&&i.xt.top-e&&i.y0&&o.strokeColor!=="";let l,c;for(i.save(),i.font=n.string,ir(i,o),l=0;l+i||0;function ki(i,t){const e={},s=S(t),n=s?Object.keys(t):t,o=S(i)?s?r=>E(i[r],i[t[r]]):r=>i[r]:()=>i;for(const r of n)e[r]=cr(o(r));return e}function an(i){return ki(i,{top:"y",right:"x",bottom:"y",left:"x"})}function hr(i){return ki(i,["topLeft","topRight","bottomLeft","bottomRight"])}function Lt(i){const t=an(i);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function je(i,t){i=i||{},t=t||F.font;let e=E(i.size,t.size);typeof e=="string"&&(e=parseInt(e,10));let s=E(i.style,t.style);s&&!(""+s).match(ar)&&(console.warn('Invalid font style specified: "'+s+'"'),s=void 0);const n={family:E(i.family,t.family),lineHeight:lr(E(i.lineHeight,t.lineHeight),e),size:e,style:s,weight:E(i.weight,t.weight),string:""};return n.string=Jo(n),n}function R(i,t,e,s){let n,o,r;for(n=0,o=i.length;ne&&a===0?0:a+l;return{min:r(s,-Math.abs(o)),max:r(n,o)}}function re(i,t){return Object.assign(Object.create(i),t)}function Si(i,t=[""],e,s,n=()=>i[0]){const o=e||i;typeof s>"u"&&(s=dn("_fallback",i));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:i,_rootScopes:o,_fallback:s,_getTarget:n,override:a=>Si([a,...i],t,o,s)};return new Proxy(r,{deleteProperty(a,l){return delete a[l],delete a._keys,delete i[0][l],!0},get(a,l){return cn(a,l,()=>yr(l,t,i,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(i[0])},has(a,l){return is(a).includes(l)},ownKeys(a){return is(a)},set(a,l,c){const h=a._storage||(a._storage=n());return a[l]=h[l]=c,delete a._keys,!0}})}function zt(i,t,e,s){const n={_cacheable:!1,_proxy:i,_context:t,_subProxy:e,_stack:new Set,_descriptors:ln(i,s),setContext:o=>zt(i,o,e,s),override:o=>zt(i.override(o),t,e,s)};return new Proxy(n,{deleteProperty(o,r){return delete o[r],delete i[r],!0},get(o,r,a){return cn(o,r,()=>fr(o,r,a))},getOwnPropertyDescriptor(o,r){return o._descriptors.allKeys?Reflect.has(i,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(i,r)},getPrototypeOf(){return Reflect.getPrototypeOf(i)},has(o,r){return Reflect.has(i,r)},ownKeys(){return Reflect.ownKeys(i)},set(o,r,a){return i[r]=a,delete o[r],!0}})}function ln(i,t={scriptable:!0,indexable:!0}){const{_scriptable:e=t.scriptable,_indexable:s=t.indexable,_allKeys:n=t.allKeys}=i;return{allKeys:n,scriptable:e,indexable:s,isScriptable:gt(e)?e:()=>e,isIndexable:gt(s)?s:()=>s}}const ur=(i,t)=>i?i+vi(t):t,Oi=(i,t)=>S(t)&&i!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function cn(i,t,e){if(Object.prototype.hasOwnProperty.call(i,t)||t==="constructor")return i[t];const s=e();return i[t]=s,s}function fr(i,t,e){const{_proxy:s,_context:n,_subProxy:o,_descriptors:r}=i;let a=s[t];return gt(a)&&r.isScriptable(t)&&(a=gr(t,a,i,e)),Y(a)&&a.length&&(a=pr(t,a,i,r.isIndexable)),Oi(t,a)&&(a=zt(a,n,o&&o[t],r)),a}function gr(i,t,e,s){const{_proxy:n,_context:o,_subProxy:r,_stack:a}=e;if(a.has(i))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+i);a.add(i);let l=t(o,r||s);return a.delete(i),Oi(i,l)&&(l=Ci(n._scopes,n,i,l)),l}function pr(i,t,e,s){const{_proxy:n,_context:o,_subProxy:r,_descriptors:a}=e;if(typeof o.index<"u"&&s(i))return t[o.index%t.length];if(S(t[0])){const l=t,c=n._scopes.filter(h=>h!==l);t=[];for(const h of l){const d=Ci(c,n,i,h);t.push(zt(d,o,r&&r[i],a))}}return t}function hn(i,t,e){return gt(i)?i(t,e):i}const mr=(i,t)=>i===!0?t:typeof i=="string"?ie(t,i):void 0;function _r(i,t,e,s,n){for(const o of t){const r=mr(e,o);if(r){i.add(r);const a=hn(r._fallback,e,n);if(typeof a<"u"&&a!==e&&a!==s)return a}else if(r===!1&&typeof s<"u"&&e!==s)return null}return!1}function Ci(i,t,e,s){const n=t._rootScopes,o=hn(t._fallback,e,s),r=[...i,...n],a=new Set;a.add(s);let l=es(a,r,e,o||e,s);return l===null||typeof o<"u"&&o!==e&&(l=es(a,r,o,l,s),l===null)?!1:Si(Array.from(a),[""],n,o,()=>br(t,e,s))}function es(i,t,e,s,n){for(;e;)e=_r(i,t,e,s,n);return e}function br(i,t,e){const s=i._getTarget();t in s||(s[t]={});const n=s[t];return Y(n)&&S(e)?e:n||{}}function yr(i,t,e,s){let n;for(const o of t)if(n=dn(ur(o,i),e),typeof n<"u")return Oi(i,n)?Ci(e,s,i,n):n}function dn(i,t){for(const e of t){if(!e)continue;const s=e[i];if(typeof s<"u")return s}}function is(i){let t=i._keys;return t||(t=i._keys=xr(i._scopes)),t}function xr(i){const t=new Set;for(const e of i)for(const s of Object.keys(e).filter(n=>!n.startsWith("_")))t.add(s);return Array.from(t)}function Di(){return typeof window<"u"&&typeof document<"u"}function Ai(i){let t=i.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function Ve(i,t,e){let s;return typeof i=="string"?(s=parseInt(i,10),i.indexOf("%")!==-1&&(s=s/100*t.parentNode[e])):s=i,s}const $e=i=>i.ownerDocument.defaultView.getComputedStyle(i,null);function vr(i,t){return $e(i).getPropertyValue(t)}const wr=["top","right","bottom","left"];function kt(i,t,e){const s={};e=e?"-"+e:"";for(let n=0;n<4;n++){const o=wr[n];s[o]=parseFloat(i[t+"-"+o+e])||0}return s.width=s.left+s.right,s.height=s.top+s.bottom,s}const Mr=(i,t,e)=>(i>0||t>0)&&(!e||!e.shadowRoot);function kr(i,t){const e=i.touches,s=e&&e.length?e[0]:i,{offsetX:n,offsetY:o}=s;let r=!1,a,l;if(Mr(n,o,i.target))a=n,l=o;else{const c=t.getBoundingClientRect();a=s.clientX-c.left,l=s.clientY-c.top,r=!0}return{x:a,y:l,box:r}}function vt(i,t){if("native"in i)return i;const{canvas:e,currentDevicePixelRatio:s}=t,n=$e(e),o=n.boxSizing==="border-box",r=kt(n,"padding"),a=kt(n,"border","width"),{x:l,y:c,box:h}=kr(i,e),d=r.left+(h&&a.left),u=r.top+(h&&a.top);let{width:f,height:m}=t;return o&&(f-=r.width+a.width,m-=r.height+a.height),{x:Math.round((l-d)/f*e.width/s),y:Math.round((c-u)/m*e.height/s)}}function Sr(i,t,e){let s,n;if(t===void 0||e===void 0){const o=i&&Ai(i);if(!o)t=i.clientWidth,e=i.clientHeight;else{const r=o.getBoundingClientRect(),a=$e(o),l=kt(a,"border","width"),c=kt(a,"padding");t=r.width-c.width-l.width,e=r.height-c.height-l.height,s=Ve(a.maxWidth,o,"clientWidth"),n=Ve(a.maxHeight,o,"clientHeight")}}return{width:t,height:e,maxWidth:s||Le,maxHeight:n||Le}}const ge=i=>Math.round(i*10)/10;function Or(i,t,e,s){const n=$e(i),o=kt(n,"margin"),r=Ve(n.maxWidth,i,"clientWidth")||Le,a=Ve(n.maxHeight,i,"clientHeight")||Le,l=Sr(i,t,e);let{width:c,height:h}=l;if(n.boxSizing==="content-box"){const u=kt(n,"border","width"),f=kt(n,"padding");c-=f.width+u.width,h-=f.height+u.height}return c=Math.max(0,c-o.width),h=Math.max(0,s?c/s:h-o.height),c=ge(Math.min(c,r,l.maxWidth)),h=ge(Math.min(h,a,l.maxHeight)),c&&!h&&(h=ge(c/2)),(t!==void 0||e!==void 0)&&s&&l.height&&h>l.height&&(h=l.height,c=ge(Math.floor(h*s))),{width:c,height:h}}function ss(i,t,e){const s=t||1,n=Math.floor(i.height*s),o=Math.floor(i.width*s);i.height=Math.floor(i.height),i.width=Math.floor(i.width);const r=i.canvas;return r.style&&(e||!r.style.height&&!r.style.width)&&(r.style.height=`${i.height}px`,r.style.width=`${i.width}px`),i.currentDevicePixelRatio!==s||r.height!==n||r.width!==o?(i.currentDevicePixelRatio=s,r.height=n,r.width=o,i.ctx.setTransform(s,0,0,s,0,0),!0):!1}const Cr=function(){let i=!1;try{const t={get passive(){return i=!0,!1}};Di()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return i}();function ns(i,t){const e=vr(i,t),s=e&&e.match(/^(\d+)(\.\d+)?px$/);return s?+s[1]:void 0}/*! + * Chart.js v4.4.3 + * https://www.chartjs.org + * (c) 2024 Chart.js Contributors + * Released under the MIT License + */class Dr{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,s,n){const o=e.listeners[n],r=e.duration;o.forEach(a=>a({chart:t,initial:e.initial,numSteps:r,currentStep:Math.min(s-e.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=Js.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((s,n)=>{if(!s.running||!s.items.length)return;const o=s.items;let r=o.length-1,a=!1,l;for(;r>=0;--r)l=o[r],l._active?(l._total>s.duration&&(s.duration=l._total),l.tick(t),a=!0):(o[r]=o[o.length-1],o.pop());a&&(n.draw(),this._notify(n,s,t,"progress")),o.length||(s.running=!1,this._notify(n,s,t,"complete"),s.initial=!1),e+=o.length}),this._lastDate=t,e===0&&(this._running=!1)}_getAnims(t){const e=this._charts;let s=e.get(t);return s||(s={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,s)),s}listen(t,e,s){this._getAnims(t).listeners[e].push(s)}add(t,e){!e||!e.length||this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((s,n)=>Math.max(s,n._duration),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!(!e||!e.running||!e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const s=e.items;let n=s.length-1;for(;n>=0;--n)s[n].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var ot=new Dr;const os="transparent",Ar={boolean(i,t,e){return e>.5?t:i},color(i,t,e){const s=Gi(i||os),n=s.valid&&Gi(t||os);return n&&n.valid?n.mix(s,e).hexString():t},number(i,t,e){return i+(t-i)*e}};class Pr{constructor(t,e,s,n){const o=e[s];n=R([t.to,n,o,t.from]);const r=R([t.from,o,n]);this._active=!0,this._fn=t.fn||Ar[t.type||typeof r],this._easing=Gt[t.easing]||Gt.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=s,this._from=r,this._to=n,this._promises=void 0}active(){return this._active}update(t,e,s){if(this._active){this._notify(!1);const n=this._target[this._prop],o=s-this._start,r=this._duration-o;this._start=s,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=R([t.to,e,n,t.from]),this._from=R([t.from,n,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,s=this._duration,n=this._prop,o=this._from,r=this._loop,a=this._to;let l;if(this._active=o!==a&&(r||e1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[n]=this._fn(o,a,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,s)=>{t.push({res:e,rej:s})})}_notify(t){const e=t?"res":"rej",s=this._promises||[];for(let n=0;n{const o=t[n];if(!S(o))return;const r={};for(const a of e)r[a]=o[a];(Y(o.properties)&&o.properties||[n]).forEach(a=>{(a===n||!s.has(a))&&s.set(a,r)})})}_animateOptions(t,e){const s=e.options,n=Tr(t,s);if(!n)return[];const o=this._createAnimations(n,s);return s.$shared&&Ir(t.options.$animations,s).then(()=>{t.options=s},()=>{}),o}_createAnimations(t,e){const s=this._properties,n=[],o=t.$animations||(t.$animations={}),r=Object.keys(e),a=Date.now();let l;for(l=r.length-1;l>=0;--l){const c=r[l];if(c.charAt(0)==="$")continue;if(c==="options"){n.push(...this._animateOptions(t,e));continue}const h=e[c];let d=o[c];const u=s.get(c);if(d)if(u&&d.active()){d.update(u,h,a);continue}else d.cancel();if(!u||!u.duration){t[c]=h;continue}o[c]=d=new Pr(u,t,c,h),n.push(d)}return n}update(t,e){if(this._properties.size===0){Object.assign(t,e);return}const s=this._createAnimations(t,e);if(s.length)return ot.add(this._chart,s),!0}}function Ir(i,t){const e=[],s=Object.keys(t);for(let n=0;n0||!e&&o<0)return n.index}return null}function hs(i,t){const{chart:e,_cachedMeta:s}=i,n=e._stacks||(e._stacks={}),{iScale:o,vScale:r,index:a}=s,l=o.axis,c=r.axis,h=Fr(o,r,s),d=t.length;let u;for(let f=0;fe[s].axis===t).shift()}function Wr(i,t){return re(i,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function Br(i,t,e){return re(i,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:e,index:t,mode:"default",type:"data"})}function Vt(i,t){const e=i.controller.index,s=i.vScale&&i.vScale.axis;if(s){t=t||i._parsed;for(const n of t){const o=n._stacks;if(!o||o[s]===void 0||o[s][e]===void 0)return;delete o[s][e],o[s]._visualValues!==void 0&&o[s]._visualValues[e]!==void 0&&delete o[s]._visualValues[e]}}}const Je=i=>i==="reset"||i==="none",ds=(i,t)=>t?i:Object.assign({},i),Nr=(i,t,e)=>i&&!t.hidden&&t._stacked&&{keys:un(e,!0),values:null};class Qt{constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=ls(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Vt(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,s=this.getDataset(),n=(d,u,f,m)=>d==="x"?u:d==="r"?m:f,o=e.xAxisID=E(s.xAxisID,Qe(t,"x")),r=e.yAxisID=E(s.yAxisID,Qe(t,"y")),a=e.rAxisID=E(s.rAxisID,Qe(t,"r")),l=e.indexAxis,c=e.iAxisID=n(l,o,r,a),h=e.vAxisID=n(l,r,o,a);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(r),e.rScale=this.getScaleForId(a),e.iScale=this.getScaleForId(c),e.vScale=this.getScaleForId(h)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Ui(this._data,this),t._stacked&&Vt(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),s=this._data;if(S(e)){const n=this._cachedMeta;this._data=zr(e,n)}else if(s!==e){if(s){Ui(s,this);const n=this._cachedMeta;Vt(n),n._parsed=[]}e&&Object.isExtensible(e)&&Wo(e,this),this._syncList=[],this._data=e}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,s=this.getDataset();let n=!1;this._dataCheck();const o=e._stacked;e._stacked=ls(e.vScale,e),e.stack!==s.stack&&(n=!0,Vt(e),e.stack=s.stack),this._resyncElements(t),(n||o!==e._stacked)&&hs(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),s=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(s,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:s,_data:n}=this,{iScale:o,_stacked:r}=s,a=o.axis;let l=t===0&&e===n.length?!0:s._sorted,c=t>0&&s._parsed[t-1],h,d,u;if(this._parsing===!1)s._parsed=n,s._sorted=!0,u=n;else{Y(n[t])?u=this.parseArrayData(s,n,t,e):S(n[t])?u=this.parseObjectData(s,n,t,e):u=this.parsePrimitiveData(s,n,t,e);const f=()=>d[a]===null||c&&d[a]p||d=0;--u)if(!m()){this.updateRangeFromParsed(c,t,f,l);break}}return c}getAllParsedValues(t){const e=this._cachedMeta._parsed,s=[];let n,o,r;for(n=0,o=e.length;n=0&&tthis.getContext(s,n,e),p=c.resolveNamedOptions(u,f,m,d);return p.$shared&&(p.$shared=l,o[r]=Object.freeze(ds(p,l))),p}_resolveAnimations(t,e,s){const n=this.chart,o=this._cachedDataOpts,r=`animation-${e}`,a=o[r];if(a)return a;let l;if(n.options.animation!==!1){const h=this.chart.config,d=h.datasetAnimationScopeKeys(this._type,e),u=h.getOptionScopes(this.getDataset(),d);l=h.createResolver(u,this.getContext(t,s,e))}const c=new Rr(n,l&&l.animations);return l&&l._cacheable&&(o[r]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Je(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const s=this.resolveDataElementOptions(t,e),n=this._sharedOptions,o=this.getSharedOptions(s),r=this.includeOptions(e,o)||o!==n;return this.updateSharedOptions(o,e,s),{sharedOptions:o,includeOptions:r}}updateElement(t,e,s,n){Je(n)?Object.assign(t,s):this._resolveAnimations(e,n).update(t,s)}updateSharedOptions(t,e,s){t&&!Je(e)&&this._resolveAnimations(void 0,e).update(t,s)}_setStyle(t,e,s,n){t.active=n;const o=this.getStyle(e,n);this._resolveAnimations(e,s,n).update(t,{options:!n&&this.getSharedOptions(o)||o})}removeHoverStyle(t,e,s){this._setStyle(t,s,"active",!1)}setHoverStyle(t,e,s){this._setStyle(t,s,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,s=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const n=s.length,o=e.length,r=Math.min(o,n);r&&this.parse(0,r),o>n?this._insertElements(n,o-n,t):o{for(c.length+=e,a=c.length-1;a>=r;a--)c[a]=c[a-e]};for(l(o),a=t;aFe(w,a,l,!0)?1:Math.max(k,k*e,y,y*e),m=(w,k,y)=>Fe(w,a,l,!0)?-1:Math.min(k,k*e,y,y*e),p=f(0,c,d),g=f(B,h,u),_=m(H,c,d),b=m(H+B,h,u);s=(p-_)/2,n=(g-b)/2,o=-(p+_)/2,r=-(g+b)/2}return{ratioX:s,ratioY:n,offsetX:o,offsetY:r}}class Xt extends Qt{constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const s=this.getDataset().data,n=this._cachedMeta;if(this._parsing===!1)n._parsed=s;else{let o=l=>+s[l];if(S(s[t])){const{key:l="value"}=this._parsing;o=c=>+ie(s[c],l)}let r,a;for(r=t,a=t+e;r0&&!isNaN(t)?W*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,s=this.chart,n=s.data.labels||[],o=sn(e._parsed[t],s.options.locale);return{label:n[t]||"",value:o}}getMaxBorderWidth(t){let e=0;const s=this.chart;let n,o,r,a,l;if(!t){for(n=0,o=s.data.datasets.length;nt!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),M(Xt,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:s,color:n}}=t.legend.options;return e.labels.map((o,r)=>{const l=t.getDatasetMeta(0).controller.getStyle(r);return{text:o,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:n,lineWidth:l.borderWidth,pointStyle:s,hidden:!t.getDataVisibility(r),index:r}})}return[]}},onClick(t,e,s){s.chart.toggleDataVisibility(e.index),s.chart.update()}}}});function xt(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Pi{constructor(t){M(this,"options");this.options=t||{}}static override(t){Object.assign(Pi.prototype,t)}init(){}formats(){return xt()}parse(){return xt()}format(){return xt()}add(){return xt()}diff(){return xt()}startOf(){return xt()}endOf(){return xt()}}var $r={_date:Pi};function Yr(i,t,e,s){const{controller:n,data:o,_sorted:r}=i,a=n._cachedMeta.iScale;if(a&&t===a.axis&&t!=="r"&&r&&o.length){const l=a._reversePixels?jo:fi;if(s){if(n._sharedOptions){const c=o[0],h=typeof c.getRange=="function"&&c.getRange(t);if(h){const d=l(o,t,e-h),u=l(o,t,e+h);return{lo:d.lo,hi:u.hi}}}}else return l(o,t,e)}return{lo:0,hi:o.length-1}}function ae(i,t,e,s,n){const o=i.getSortedVisibleDatasetMetas(),r=e[t];for(let a=0,l=o.length;a{l[r](t[e],n)&&(o.push({element:l,datasetIndex:c,index:h}),a=a||l.inRange(t.x,t.y,n))}),s&&!a?[]:o}var qr={evaluateInteractionItems:ae,modes:{index(i,t,e,s){const n=vt(t,i),o=e.axis||"x",r=e.includeInvisible||!1,a=e.intersect?ti(i,n,o,s,r):ei(i,n,o,!1,s,r),l=[];return a.length?(i.getSortedVisibleDatasetMetas().forEach(c=>{const h=a[0].index,d=c.data[h];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:h})}),l):[]},dataset(i,t,e,s){const n=vt(t,i),o=e.axis||"xy",r=e.includeInvisible||!1;let a=e.intersect?ti(i,n,o,s,r):ei(i,n,o,!1,s,r);if(a.length>0){const l=a[0].datasetIndex,c=i.getDatasetMeta(l).data;a=[];for(let h=0;he.pos===t)}function fs(i,t){return i.filter(e=>fn.indexOf(e.pos)===-1&&e.box.axis===t)}function Bt(i,t){return i.sort((e,s)=>{const n=t?s:e,o=t?e:s;return n.weight===o.weight?n.index-o.index:n.weight-o.weight})}function Gr(i){const t=[];let e,s,n,o,r,a;for(e=0,s=(i||[]).length;ec.box.fullSize),!0),s=Bt(Wt(t,"left"),!0),n=Bt(Wt(t,"right")),o=Bt(Wt(t,"top"),!0),r=Bt(Wt(t,"bottom")),a=fs(t,"x"),l=fs(t,"y");return{fullSize:e,leftAndTop:s.concat(o),rightAndBottom:n.concat(l).concat(r).concat(a),chartArea:Wt(t,"chartArea"),vertical:s.concat(n).concat(l),horizontal:o.concat(r).concat(a)}}function gs(i,t,e,s){return Math.max(i[e],t[e])+Math.max(i[s],t[s])}function gn(i,t){i.top=Math.max(i.top,t.top),i.left=Math.max(i.left,t.left),i.bottom=Math.max(i.bottom,t.bottom),i.right=Math.max(i.right,t.right)}function ta(i,t,e,s){const{pos:n,box:o}=e,r=i.maxPadding;if(!S(n)){e.size&&(i[n]-=e.size);const d=s[e.stack]||{size:0,count:1};d.size=Math.max(d.size,e.horizontal?o.height:o.width),e.size=d.size/d.count,i[n]+=e.size}o.getPadding&&gn(r,o.getPadding());const a=Math.max(0,t.outerWidth-gs(r,i,"left","right")),l=Math.max(0,t.outerHeight-gs(r,i,"top","bottom")),c=a!==i.w,h=l!==i.h;return i.w=a,i.h=l,e.horizontal?{same:c,other:h}:{same:h,other:c}}function ea(i){const t=i.maxPadding;function e(s){const n=Math.max(t[s]-i[s],0);return i[s]+=n,n}i.y+=e("top"),i.x+=e("left"),e("right"),e("bottom")}function ia(i,t){const e=t.maxPadding;function s(n){const o={left:0,top:0,right:0,bottom:0};return n.forEach(r=>{o[r]=Math.max(t[r],e[r])}),o}return s(i?["left","right"]:["top","bottom"])}function Kt(i,t,e,s){const n=[];let o,r,a,l,c,h;for(o=0,r=i.length,c=0;o{typeof p.beforeLayout=="function"&&p.beforeLayout()});const h=l.reduce((p,g)=>g.box.options&&g.box.options.display===!1?p:p+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:e,padding:n,availableWidth:o,availableHeight:r,vBoxMaxWidth:o/2/h,hBoxMaxHeight:r/2}),u=Object.assign({},n);gn(u,Lt(s));const f=Object.assign({maxPadding:u,w:o,h:r,x:n.left,y:n.top},n),m=Qr(l.concat(c),d);Kt(a.fullSize,f,d,m),Kt(l,f,d,m),Kt(c,f,d,m)&&Kt(l,f,d,m),ea(f),ps(a.leftAndTop,f,d,m),f.x+=f.w,f.y+=f.h,ps(a.rightAndBottom,f,d,m),i.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},$(a.chartArea,p=>{const g=p.box;Object.assign(g,i.chartArea),g.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class pn{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,s){}removeEventListener(t,e,s){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,s,n){return e=Math.max(0,e||t.width),s=s||t.height,{width:e,height:Math.max(0,n?Math.floor(e/n):s)}}isAttached(t){return!0}updateConfig(t){}}class sa extends pn{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Ce="$chartjs",na={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},ms=i=>i===null||i==="";function oa(i,t){const e=i.style,s=i.getAttribute("height"),n=i.getAttribute("width");if(i[Ce]={initial:{height:s,width:n,style:{display:e.display,height:e.height,width:e.width}}},e.display=e.display||"block",e.boxSizing=e.boxSizing||"border-box",ms(n)){const o=ns(i,"width");o!==void 0&&(i.width=o)}if(ms(s))if(i.style.height==="")i.height=i.width/(t||2);else{const o=ns(i,"height");o!==void 0&&(i.height=o)}return i}const mn=Cr?{passive:!0}:!1;function ra(i,t,e){i&&i.addEventListener(t,e,mn)}function aa(i,t,e){i&&i.canvas&&i.canvas.removeEventListener(t,e,mn)}function la(i,t){const e=na[i.type]||i.type,{x:s,y:n}=vt(i,t);return{type:e,chart:t,native:i,x:s!==void 0?s:null,y:n!==void 0?n:null}}function We(i,t){for(const e of i)if(e===t||e.contains(t))return!0}function ca(i,t,e){const s=i.canvas,n=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||We(a.addedNodes,s),r=r&&!We(a.removedNodes,s);r&&e()});return n.observe(document,{childList:!0,subtree:!0}),n}function ha(i,t,e){const s=i.canvas,n=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||We(a.removedNodes,s),r=r&&!We(a.addedNodes,s);r&&e()});return n.observe(document,{childList:!0,subtree:!0}),n}const se=new Map;let _s=0;function _n(){const i=window.devicePixelRatio;i!==_s&&(_s=i,se.forEach((t,e)=>{e.currentDevicePixelRatio!==i&&t()}))}function da(i,t){se.size||window.addEventListener("resize",_n),se.set(i,t)}function ua(i){se.delete(i),se.size||window.removeEventListener("resize",_n)}function fa(i,t,e){const s=i.canvas,n=s&&Ai(s);if(!n)return;const o=tn((a,l)=>{const c=n.clientWidth;e(a,l),c{const l=a[0],c=l.contentRect.width,h=l.contentRect.height;c===0&&h===0||o(c,h)});return r.observe(n),da(i,o),r}function ii(i,t,e){e&&e.disconnect(),t==="resize"&&ua(i)}function ga(i,t,e){const s=i.canvas,n=tn(o=>{i.ctx!==null&&e(la(o,i))},i);return ra(s,t,n),n}class pa extends pn{acquireContext(t,e){const s=t&&t.getContext&&t.getContext("2d");return s&&s.canvas===t?(oa(t,e),s):null}releaseContext(t){const e=t.canvas;if(!e[Ce])return!1;const s=e[Ce].initial;["height","width"].forEach(o=>{const r=s[o];N(r)?e.removeAttribute(o):e.setAttribute(o,r)});const n=s.style||{};return Object.keys(n).forEach(o=>{e.style[o]=n[o]}),e.width=e.width,delete e[Ce],!0}addEventListener(t,e,s){this.removeEventListener(t,e);const n=t.$proxies||(t.$proxies={}),r={attach:ca,detach:ha,resize:fa}[e]||ga;n[e]=r(t,e,s)}removeEventListener(t,e){const s=t.$proxies||(t.$proxies={}),n=s[e];if(!n)return;({attach:ii,detach:ii,resize:ii}[e]||aa)(t,e,n),s[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,s,n){return Or(t,e,s,n)}isAttached(t){const e=t&&Ai(t);return!!(e&&e.isConnected)}}function ma(i){return!Di()||typeof OffscreenCanvas<"u"&&i instanceof OffscreenCanvas?sa:pa}class Ot{constructor(){M(this,"x");M(this,"y");M(this,"active",!1);M(this,"options");M(this,"$animations")}tooltipPosition(t){const{x:e,y:s}=this.getProps(["x","y"],t);return{x:e,y:s}}hasValue(){return ze(this.x)&&ze(this.y)}getProps(t,e){const s=this.$animations;if(!e||!s)return this;const n={};return t.forEach(o=>{n[o]=s[o]&&s[o].active()?s[o]._to:this[o]}),n}}M(Ot,"defaults",{}),M(Ot,"defaultRoutes");function _a(i,t){const e=i.options.ticks,s=ba(i),n=Math.min(e.maxTicksLimit||s,s),o=e.major.enabled?xa(t):[],r=o.length,a=o[0],l=o[r-1],c=[];if(r>n)return va(t,c,o,r/n),c;const h=ya(o,t,n);if(r>0){let d,u;const f=r>1?Math.round((l-a)/(r-1)):null;for(_e(t,c,h,N(f)?0:a-f,a),d=0,u=r-1;dn)return l}return Math.max(n,1)}function xa(i){const t=[];let e,s;for(e=0,s=i.length;ei==="left"?"right":i==="right"?"left":i,bs=(i,t,e)=>t==="top"||t==="left"?i[t]+e:i[t]-e,ys=(i,t)=>Math.min(t||i,i);function xs(i,t){const e=[],s=i.length/t,n=i.length;let o=0;for(;or+a)))return l}function Sa(i,t){$(i,e=>{const s=e.gc,n=s.length/2;let o;if(n>t){for(o=0;os?s:e,s=n&&e>s?e:s,{min:it(e,it(s,e)),max:it(s,it(e,s))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){T(this.options.beforeUpdate,[this])}update(t,e,s){const{beginAtZero:n,grace:o,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=s=Object.assign({left:0,right:0,top:0,bottom:0},s),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+s.left+s.right:this.height+s.top+s.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=dr(this,o,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a=o||s<=1||!this.isHorizontal()){this.labelRotation=n;return}const h=this._getLabelSizes(),d=h.widest.width,u=h.highest.height,f=et(this.chart.width-d,0,this.maxWidth);a=t.offset?this.maxWidth/s:f/(s-1),d+6>a&&(a=f/(s-(t.offset?.5:1)),l=this.maxHeight-Nt(t.grid)-e.padding-vs(t.title,this.chart.options.font),c=Math.sqrt(d*d+u*u),r=zo(Math.min(Math.asin(et((h.highest.height+6)/a,-1,1)),Math.asin(et(l/c,-1,1))-Math.asin(et(u/c,-1,1)))),r=Math.max(n,Math.min(o,r))),this.labelRotation=r}afterCalculateLabelRotation(){T(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){T(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:s,title:n,grid:o}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){const l=vs(n,e.options.font);if(a?(t.width=this.maxWidth,t.height=Nt(o)+l):(t.height=this.maxHeight,t.width=Nt(o)+l),s.display&&this.ticks.length){const{first:c,last:h,widest:d,highest:u}=this._getLabelSizes(),f=s.padding*2,m=wt(this.labelRotation),p=Math.cos(m),g=Math.sin(m);if(a){const _=s.mirror?0:g*d.width+p*u.height;t.height=Math.min(this.maxHeight,t.height+_+f)}else{const _=s.mirror?0:p*d.width+g*u.height;t.width=Math.min(this.maxWidth,t.width+_+f)}this._calculatePadding(c,h,g,p)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,s,n){const{ticks:{align:o,padding:r},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const h=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,f=0;l?c?(u=n*t.width,f=s*e.height):(u=s*t.height,f=n*e.width):o==="start"?f=e.width:o==="end"?u=t.width:o!=="inner"&&(u=t.width/2,f=e.width/2),this.paddingLeft=Math.max((u-h+r)*this.width/(this.width-h),0),this.paddingRight=Math.max((f-d+r)*this.width/(this.width-d),0)}else{let h=e.height/2,d=t.height/2;o==="start"?(h=0,d=t.height):o==="end"&&(h=e.height,d=0),this.paddingTop=h+r,this.paddingBottom=d+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){T(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return e==="top"||e==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let e,s;for(e=0,s=t.length;e({width:r[L]||0,height:a[L]||0});return{first:V(0),last:V(e-1),widest:V(x),highest:V(A),widths:r,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return Fo(this._alignToPixels?yt(this.chart,e,0):e)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&ta*n?a/s:l/n:l*n0}_computeGridLineItems(t){const e=this.axis,s=this.chart,n=this.options,{grid:o,position:r,border:a}=n,l=o.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),u=Nt(o),f=[],m=a.setContext(this.getContext()),p=m.display?m.width:0,g=p/2,_=function(P){return yt(s,P,p)};let b,w,k,y,x,A,V,L,v,X,j,G;if(r==="top")b=_(this.bottom),A=this.bottom-u,L=b-g,X=_(t.top)+g,G=t.bottom;else if(r==="bottom")b=_(this.top),X=t.top,G=_(t.bottom)-g,A=b+g,L=this.top+u;else if(r==="left")b=_(this.right),x=this.right-u,V=b-g,v=_(t.left)+g,j=t.right;else if(r==="right")b=_(this.left),v=t.left,j=_(t.right)-g,x=b+g,V=this.left+u;else if(e==="x"){if(r==="center")b=_((t.top+t.bottom)/2+.5);else if(S(r)){const P=Object.keys(r)[0],z=r[P];b=_(this.chart.scales[P].getPixelForValue(z))}X=t.top,G=t.bottom,A=b+g,L=A+u}else if(e==="y"){if(r==="center")b=_((t.left+t.right)/2);else if(S(r)){const P=Object.keys(r)[0],z=r[P];b=_(this.chart.scales[P].getPixelForValue(z))}x=b-g,V=x-u,v=t.left,j=t.right}const Q=E(n.ticks.maxTicksLimit,d),D=Math.max(1,Math.ceil(d/Q));for(w=0;w0&&(mt-=pt/2);break}le={left:mt,top:jt,width:pt+Dt.width,height:Ft+Dt.height,color:D.backdropColor}}g.push({label:k,font:L,textOffset:j,options:{rotation:p,color:z,strokeColor:J,strokeWidth:U,textAlign:Ct,textBaseline:G,translation:[y,x],backdrop:le}})}return g}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-wt(this.labelRotation))return t==="top"?"left":"right";let n="center";return e.align==="start"?n="left":e.align==="end"?n="right":e.align==="inner"&&(n="inner"),n}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:s,mirror:n,padding:o}}=this.options,r=this._getLabelSizes(),a=t+o,l=r.widest.width;let c,h;return e==="left"?n?(h=this.right+o,s==="near"?c="left":s==="center"?(c="center",h+=l/2):(c="right",h+=l)):(h=this.right-a,s==="near"?c="right":s==="center"?(c="center",h-=l/2):(c="left",h=this.left)):e==="right"?n?(h=this.left+o,s==="near"?c="right":s==="center"?(c="center",h-=l/2):(c="left",h-=l)):(h=this.left+a,s==="near"?c="left":s==="center"?(c="center",h+=l/2):(c="right",h=this.right)):c="right",{textAlign:c,x:h}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;if(e==="left"||e==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(e==="top"||e==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:s,top:n,width:o,height:r}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(s,n,o,r),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const n=this.ticks.findIndex(o=>o.value===t);return n>=0?e.setContext(this.getContext(n)).lineWidth:0}drawGrid(t){const e=this.options.grid,s=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,r;const a=(l,c,h)=>{!h.width||!h.color||(s.save(),s.lineWidth=h.width,s.strokeStyle=h.color,s.setLineDash(h.borderDash||[]),s.lineDashOffset=h.borderDashOffset,s.beginPath(),s.moveTo(l.x,l.y),s.lineTo(c.x,c.y),s.stroke(),s.restore())};if(e.display)for(o=0,r=n.length;o{this.draw(o)}}]:[{z:s,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:n,draw:()=>{this.drawBorder()}},{z:e,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),s=this.axis+"AxisID",n=[];let o,r;for(o=0,r=e.length;o{const s=e.split("."),n=s.pop(),o=[i].concat(s).join("."),r=t[e].split("."),a=r.pop(),l=r.join(".");F.route(o,n,l,a)})}function Ia(i){return"id"in i&&"defaults"in i}class Ta{constructor(){this.controllers=new be(Qt,"datasets",!0),this.elements=new be(Ot,"elements"),this.plugins=new be(Object,"plugins"),this.scales=new be(Ye,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,s){[...e].forEach(n=>{const o=s||this._getRegistryForType(n);s||o.isForType(n)||o===this.plugins&&n.id?this._exec(t,o,n):$(n,r=>{const a=s||this._getRegistryForType(r);this._exec(t,a,r)})})}_exec(t,e,s){const n=vi(t);T(s["before"+n],[],s),e[t](s),T(s["after"+n],[],s)}_getRegistryForType(t){for(let e=0;eo.filter(a=>!r.some(l=>a.plugin.id===l.plugin.id));this._notify(n(e,s),t,"stop"),this._notify(n(s,e),t,"start")}}function La(i){const t={},e=[],s=Object.keys(st.plugins.items);for(let o=0;o1&&ws(i[0].toLowerCase());if(s)return s}throw new Error(`Cannot determine type of '${i}' axis. Please provide 'axis' or 'position' option.`)}function Ms(i,t,e){if(e[t+"AxisID"]===i)return{axis:t}}function Na(i,t){if(t.data&&t.data.datasets){const e=t.data.datasets.filter(s=>s.xAxisID===i||s.yAxisID===i);if(e.length)return Ms(i,"x",e[0])||Ms(i,"y",e[0])}return{}}function Ha(i,t){const e=St[i.type]||{scales:{}},s=t.scales||{},n=pi(i.type,t),o=Object.create(null);return Object.keys(s).forEach(r=>{const a=s[r];if(!S(a))return console.error(`Invalid scale configuration for scale: ${r}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${r}`);const l=mi(r,a,Na(r,i),F.scales[a.type]),c=Wa(l,n),h=e.scales||{};o[r]=qt(Object.create(null),[{axis:l},a,h[l],h[c]])}),i.data.datasets.forEach(r=>{const a=r.type||i.type,l=r.indexAxis||pi(a,t),h=(St[a]||{}).scales||{};Object.keys(h).forEach(d=>{const u=Va(d,l),f=r[u+"AxisID"]||u;o[f]=o[f]||Object.create(null),qt(o[f],[{axis:u},s[f],h[d]])})}),Object.keys(o).forEach(r=>{const a=o[r];qt(a,[F.scales[a.type],F.scale])}),o}function bn(i){const t=i.options||(i.options={});t.plugins=E(t.plugins,{}),t.scales=Ha(i,t)}function yn(i){return i=i||{},i.datasets=i.datasets||[],i.labels=i.labels||[],i}function $a(i){return i=i||{},i.data=yn(i.data),bn(i),i}const ks=new Map,xn=new Set;function ye(i,t){let e=ks.get(i);return e||(e=t(),ks.set(i,e),xn.add(e)),e}const Ht=(i,t,e)=>{const s=ie(t,e);s!==void 0&&i.add(s)};class Ya{constructor(t){this._config=$a(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=yn(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),bn(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return ye(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return ye(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return ye(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){const e=t.id,s=this.type;return ye(`${s}-plugin-${e}`,()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){const s=this._scopeCache;let n=s.get(t);return(!n||e)&&(n=new Map,s.set(t,n)),n}getOptionScopes(t,e,s){const{options:n,type:o}=this,r=this._cachedScopes(t,s),a=r.get(e);if(a)return a;const l=new Set;e.forEach(h=>{t&&(l.add(t),h.forEach(d=>Ht(l,t,d))),h.forEach(d=>Ht(l,n,d)),h.forEach(d=>Ht(l,St[o]||{},d)),h.forEach(d=>Ht(l,F,d)),h.forEach(d=>Ht(l,gi,d))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),xn.has(e)&&r.set(e,c),c}chartOptionScopes(){const{options:t,type:e}=this;return[t,St[e]||{},F.datasets[e]||{},{type:e},F,gi]}resolveNamedOptions(t,e,s,n=[""]){const o={$shared:!0},{resolver:r,subPrefixes:a}=Ss(this._resolverCache,t,n);let l=r;if(Xa(r,e)){o.$shared=!1,s=gt(s)?s():s;const c=this.createResolver(t,s,a);l=zt(r,s,c)}for(const c of e)o[c]=l[c];return o}createResolver(t,e,s=[""],n){const{resolver:o}=Ss(this._resolverCache,t,s);return S(e)?zt(o,e,void 0,n):o}}function Ss(i,t,e){let s=i.get(t);s||(s=new Map,i.set(t,s));const n=e.join();let o=s.get(n);return o||(o={resolver:Si(t,e),subPrefixes:e.filter(a=>!a.toLowerCase().includes("hover"))},s.set(n,o)),o}const Ua=i=>S(i)&&Object.getOwnPropertyNames(i).some(t=>gt(i[t]));function Xa(i,t){const{isScriptable:e,isIndexable:s}=ln(i);for(const n of t){const o=e(n),r=s(n),a=(r||o)&&i[n];if(o&&(gt(a)||Ua(a))||r&&Y(a))return!0}return!1}var Ka="4.4.3";const qa=["top","bottom","left","right","chartArea"];function Os(i,t){return i==="top"||i==="bottom"||qa.indexOf(i)===-1&&t==="x"}function Cs(i,t){return function(e,s){return e[i]===s[i]?e[t]-s[t]:e[i]-s[i]}}function Ds(i){const t=i.chart,e=t.options.animation;t.notifyPlugins("afterRender"),T(e&&e.onComplete,[i],t)}function Ga(i){const t=i.chart,e=t.options.animation;T(e&&e.onProgress,[i],t)}function vn(i){return Di()&&typeof i=="string"?i=document.getElementById(i):i&&i.length&&(i=i[0]),i&&i.canvas&&(i=i.canvas),i}const De={},As=i=>{const t=vn(i);return Object.values(De).filter(e=>e.canvas===t).pop()};function Za(i,t,e){const s=Object.keys(i);for(const n of s){const o=+n;if(o>=t){const r=i[n];delete i[n],(e>0||o>t)&&(i[o+e]=r)}}}function Qa(i,t,e,s){return!e||i.type==="mouseout"?null:s?t:i}function xe(i,t,e){return i.options.clip?i[e]:t[e]}function Ja(i,t){const{xScale:e,yScale:s}=i;return e&&s?{left:xe(e,t,"left"),right:xe(e,t,"right"),top:xe(s,t,"top"),bottom:xe(s,t,"bottom")}:t}var ht;let ne=(ht=class{static register(...t){st.add(...t),Ps()}static unregister(...t){st.remove(...t),Ps()}constructor(t,e){const s=this.config=new Ya(e),n=vn(t),o=As(n);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const r=s.createResolver(s.chartOptionScopes(),this.getContext());this.platform=new(s.platform||ma(n)),this.platform.updateConfig(s);const a=this.platform.acquireContext(n,r.aspectRatio),l=a&&a.canvas,c=l&&l.height,h=l&&l.width;if(this.id=Co(),this.ctx=a,this.canvas=l,this.width=h,this.height=c,this._options=r,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Ea,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=No(d=>this.update(d),r.resizeDelay||0),this._dataChanges=[],De[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}ot.listen(this,"complete",Ds),ot.listen(this,"progress",Ga),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:s,height:n,_aspectRatio:o}=this;return N(t)?e&&o?o:n?s/n:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return st}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():ss(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Ji(this.canvas,this.ctx),this}stop(){return ot.stop(this),this}resize(t,e){ot.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const s=this.options,n=this.canvas,o=s.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(n,t,e,o),a=s.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,ss(this,a,!0)&&(this.notifyPlugins("resize",{size:r}),T(s.onResize,[this,r],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const e=this.options.scales||{};$(e,(s,n)=>{s.id=n})}buildOrUpdateScales(){const t=this.options,e=t.scales,s=this.scales,n=Object.keys(s).reduce((r,a)=>(r[a]=!1,r),{});let o=[];e&&(o=o.concat(Object.keys(e).map(r=>{const a=e[r],l=mi(r,a),c=l==="r",h=l==="x";return{options:a,dposition:c?"chartArea":h?"bottom":"left",dtype:c?"radialLinear":h?"category":"linear"}}))),$(o,r=>{const a=r.options,l=a.id,c=mi(l,a),h=E(a.type,r.dtype);(a.position===void 0||Os(a.position,c)!==Os(r.dposition))&&(a.position=r.dposition),n[l]=!0;let d=null;if(l in s&&s[l].type===h)d=s[l];else{const u=st.getScale(h);d=new u({id:l,type:h,ctx:this.ctx,chart:this}),s[d.id]=d}d.init(a,t)}),$(n,(r,a)=>{r||delete s[a]}),$(s,r=>{me.configure(this,r,r.options),me.addBox(this,r)})}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,s=t.length;if(t.sort((n,o)=>n.index-o.index),s>e){for(let n=e;ne.length&&delete this._stacks,t.forEach((s,n)=>{e.filter(o=>o===s._dataset).length===0&&this._destroyDatasetMeta(n)})}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let s,n;for(this._removeUnreferencedMetasets(),s=0,n=e.length;s{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const s=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),n=this._animationsDisabled=!s.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let c=0,h=this.data.datasets.length;c{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Cs("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){$(this.scales,t=>{me.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),s=new Set(t.events);(!Ni(e,s)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:s,start:n,count:o}of e){const r=s==="_removeElements"?-o:o;Za(t,n,r)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,s=o=>new Set(t.filter(r=>r[0]===o).map((r,a)=>a+","+r.splice(1).join(","))),n=s(0);for(let o=1;oo.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;me.update(this,this.width,this.height,t);const e=this.chartArea,s=e.width<=0||e.height<=0;this._layers=[],$(this.boxes,n=>{s&&n.position==="chartArea"||(n.configure&&n.configure(),this._layers.push(...n._layers()))},this),this._layers.forEach((n,o)=>{n._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let e=0,s=this.data.datasets.length;e=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,s=t._clip,n=!s.disabled,o=Ja(t,this.chartArea),r={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(n&&on(e,{left:s.left===!1?0:o.left-s.left,right:s.right===!1?this.width:o.right+s.right,top:s.top===!1?0:o.top-s.top,bottom:s.bottom===!1?this.height:o.bottom+s.bottom}),t.controller.draw(),n&&rn(e),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return Mi(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,s,n){const o=qr.modes[e];return typeof o=="function"?o(this,t,s,n):[]}getDatasetMeta(t){const e=this.data.datasets[t],s=this._metasets;let n=s.filter(o=>o&&o._dataset===e).pop();return n||(n={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},s.push(n)),n}getContext(){return this.$context||(this.$context=re(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const s=this.getDatasetMeta(t);return typeof s.hidden=="boolean"?!s.hidden:!e.hidden}setDatasetVisibility(t,e){const s=this.getDatasetMeta(t);s.hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,s){const n=s?"show":"hide",o=this.getDatasetMeta(t),r=o.controller._resolveAnimations(void 0,n);Ee(e)?(o.data[e].hidden=!s,this.update()):(this.setDatasetVisibility(t,s),r.update(o,{visible:s}),this.update(a=>a.datasetIndex===t?n:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),ot.remove(this),t=0,e=this.data.datasets.length;t{e.addEventListener(this,o,r),t[o]=r},n=(o,r,a)=>{o.offsetX=r,o.offsetY=a,this._eventHandler(o)};$(this.options.events,o=>s(o,n))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,s=(l,c)=>{e.addEventListener(this,l,c),t[l]=c},n=(l,c)=>{t[l]&&(e.removeEventListener(this,l,c),delete t[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let r;const a=()=>{n("attach",a),this.attached=!0,this.resize(),s("resize",o),s("detach",r)};r=()=>{this.attached=!1,n("resize",o),this._stop(),this._resize(0,0),s("attach",a)},e.isAttached(this.canvas)?a():r()}unbindEvents(){$(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},$(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,s){const n=s?"set":"remove";let o,r,a,l;for(e==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+n+"DatasetHoverStyle"]()),a=0,l=t.length;a{const a=this.getDatasetMeta(o);if(!a)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:a.data[r],index:r}});!Wi(s,e)&&(this._active=s,this._lastEvent=null,this._updateHoverStyles(s,e))}notifyPlugins(t,e,s){return this._plugins.notify(this,t,e,s)}isPluginEnabled(t){return this._plugins._cache.filter(e=>e.plugin.id===t).length===1}_updateHoverStyles(t,e,s){const n=this.options.hover,o=(l,c)=>l.filter(h=>!c.some(d=>h.datasetIndex===d.datasetIndex&&h.index===d.index)),r=o(e,t),a=s?t:o(t,e);r.length&&this.updateHoverStyle(r,n.mode,!1),a.length&&n.mode&&this.updateHoverStyle(a,n.mode,!0)}_eventHandler(t,e){const s={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},n=r=>(r.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",s,n)===!1)return;const o=this._handleEvent(t,e,s.inChartArea);return s.cancelable=!1,this.notifyPlugins("afterEvent",s,n),(o||s.changed)&&this.render(),this}_handleEvent(t,e,s){const{_active:n=[],options:o}=this,r=e,a=this._getActiveElements(t,n,s,r),l=To(t),c=Qa(t,this._lastEvent,s,l);s&&(this._lastEvent=null,T(o.onHover,[t,a,this],this),l&&T(o.onClick,[t,a,this],this));const h=!Wi(a,n);return(h||e)&&(this._active=a,this._updateHoverStyles(a,n,e)),this._lastEvent=c,h}_getActiveElements(t,e,s,n){if(t.type==="mouseout")return[];if(!s)return e;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,n)}},M(ht,"defaults",F),M(ht,"instances",De),M(ht,"overrides",St),M(ht,"registry",st),M(ht,"version",Ka),M(ht,"getChart",As),ht);function Ps(){return $(ne.instances,i=>i._plugins.invalidate())}function tl(i,t,e){const{startAngle:s,pixelMargin:n,x:o,y:r,outerRadius:a,innerRadius:l}=t;let c=n/a;i.beginPath(),i.arc(o,r,a,s-c,e+c),l>n?(c=n/l,i.arc(o,r,l,e+c,s-c,!0)):i.arc(o,r,n,e+B,s-B),i.closePath(),i.clip()}function el(i){return ki(i,["outerStart","outerEnd","innerStart","innerEnd"])}function il(i,t,e,s){const n=el(i.options.borderRadius),o=(e-t)/2,r=Math.min(o,s*t/2),a=l=>{const c=(e-Math.min(o,l))*s/2;return et(l,0,Math.min(o,c))};return{outerStart:a(n.outerStart),outerEnd:a(n.outerEnd),innerStart:et(n.innerStart,0,r),innerEnd:et(n.innerEnd,0,r)}}function Rt(i,t,e,s){return{x:e+i*Math.cos(t),y:s+i*Math.sin(t)}}function Be(i,t,e,s,n,o){const{x:r,y:a,startAngle:l,pixelMargin:c,innerRadius:h}=t,d=Math.max(t.outerRadius+s+e-c,0),u=h>0?h+s+e+c:0;let f=0;const m=n-l;if(s){const D=h>0?h-s:0,P=d>0?d-s:0,z=(D+P)/2,J=z!==0?m*z/(z+s):m;f=(m-J)/2}const p=Math.max(.001,m*d-e/H)/d,g=(m-p)/2,_=l+g+f,b=n-g-f,{outerStart:w,outerEnd:k,innerStart:y,innerEnd:x}=il(t,u,d,b-_),A=d-w,V=d-k,L=_+w/A,v=b-k/V,X=u+y,j=u+x,G=_+y/X,Q=b-x/j;if(i.beginPath(),o){const D=(L+v)/2;if(i.arc(r,a,d,L,D),i.arc(r,a,d,D,v),k>0){const U=Rt(V,v,r,a);i.arc(U.x,U.y,k,v,b+B)}const P=Rt(j,b,r,a);if(i.lineTo(P.x,P.y),x>0){const U=Rt(j,Q,r,a);i.arc(U.x,U.y,x,b+B,Q+Math.PI)}const z=(b-x/u+(_+y/u))/2;if(i.arc(r,a,u,b-x/u,z,!0),i.arc(r,a,u,z,_+y/u,!0),y>0){const U=Rt(X,G,r,a);i.arc(U.x,U.y,y,G+Math.PI,_-B)}const J=Rt(A,_,r,a);if(i.lineTo(J.x,J.y),w>0){const U=Rt(A,L,r,a);i.arc(U.x,U.y,w,_-B,L)}}else{i.moveTo(r,a);const D=Math.cos(L)*d+r,P=Math.sin(L)*d+a;i.lineTo(D,P);const z=Math.cos(v)*d+r,J=Math.sin(v)*d+a;i.lineTo(z,J)}i.closePath()}function sl(i,t,e,s,n){const{fullCircles:o,startAngle:r,circumference:a}=t;let l=t.endAngle;if(o){Be(i,t,e,s,l,n);for(let c=0;c=W||Fe(r,l,c),g=ui(a,h+f,d+f);return p&&g}getCenterPoint(e){const{x:s,y:n,startAngle:o,endAngle:r,innerRadius:a,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],e),{offset:c,spacing:h}=this.options,d=(o+r)/2,u=(a+l+h+c)/2;return{x:s+Math.cos(d)*u,y:n+Math.sin(d)*u}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:s,circumference:n}=this,o=(s.offset||0)/4,r=(s.spacing||0)/2,a=s.circular;if(this.pixelMargin=s.borderAlign==="inner"?.33:0,this.fullCircles=n>W?Math.floor(n/W):0,n===0||this.innerRadius<0||this.outerRadius<0)return;e.save();const l=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(l)*o,Math.sin(l)*o);const c=1-Math.sin(Math.min(H,n||0)),h=o*c;e.fillStyle=s.backgroundColor,e.strokeStyle=s.borderColor,sl(e,this,h,r,a),nl(e,this,h,r,a),e.restore()}}M(Tt,"id","arc"),M(Tt,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),M(Tt,"defaultRoutes",{backgroundColor:"backgroundColor"}),M(Tt,"descriptors",{_scriptable:!0,_indexable:e=>e!=="borderDash"});function Rs(i,t,e,s){const n=i.options,{[e]:o}=i.getProps([e],s);return Math.abs(t-o)=q.indexOf(e);o--){const r=q[o];if(Ue[r].common&&i._adapter.diff(n,s,r)>=t-1)return r}return q[e?q.indexOf(e):0]}function dl(i){for(let t=q.indexOf(i)+1,e=q.length;t=t?e[s]:e[n];i[o]=!0}}function ul(i,t,e,s){const n=i._adapter,o=+n.startOf(t[0].value,s),r=t[t.length-1].value;let a,l;for(a=o;a<=r;a=+n.add(a,1,s))l=e[a],l>=0&&(t[l].major=!0);return t}function zs(i,t,e){const s=[],n={},o=t.length;let r,a;for(r=0;r+t.value))}initOffsets(t=[]){let e=0,s=0,n,o;this.options.offset&&t.length&&(n=this.getDecimalForValue(t[0]),t.length===1?e=1-n:e=(this.getDecimalForValue(t[1])-n)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?s=o:s=(o-this.getDecimalForValue(t[t.length-2]))/2);const r=t.length<3?.5:.25;e=et(e,0,r),s=et(s,0,r),this._offsets={start:e,end:s,factor:1/(e+1+s)}}_generate(){const t=this._adapter,e=this.min,s=this.max,n=this.options,o=n.time,r=o.unit||Es(o.minUnit,e,s,this._getLabelCapacity(e)),a=E(n.ticks.stepSize,1),l=r==="week"?o.isoWeekday:!1,c=ze(l)||l===!0,h={};let d=e,u,f;if(c&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,c?"day":r),t.diff(s,e,r)>1e5*a)throw new Error(e+" and "+s+" are too far apart with stepSize of "+a+" "+r);const m=n.ticks.source==="data"&&this.getDataTimestamps();for(u=d,f=0;u+p)}getLabelForValue(t){const e=this._adapter,s=this.options.time;return s.tooltipFormat?e.format(t,s.tooltipFormat):e.format(t,s.displayFormats.datetime)}format(t,e){const n=this.options.time.displayFormats,o=this._unit,r=e||n[o];return this._adapter.format(t,r)}_tickFormatFunction(t,e,s,n){const o=this.options,r=o.ticks.callback;if(r)return T(r,[t,e,s],this);const a=o.time.displayFormats,l=this._unit,c=this._majorUnit,h=l&&a[l],d=c&&a[c],u=s[e],f=c&&d&&u&&u.major;return this._adapter.format(t,n||(f?d:h))}generateTickLabels(t){let e,s,n;for(e=0,s=t.length;e0?a:1}getDataTimestamps(){let t=this._cache.data||[],e,s;if(t.length)return t;const n=this.getMatchingVisibleMetas();if(this._normalized&&n.length)return this._cache.data=n[0].controller.getAllParsedValues(this);for(e=0,s=n.length;e=i[s].pos&&t<=i[n].pos&&({lo:s,hi:n}=fi(i,"pos",t)),{pos:o,time:a}=i[s],{pos:r,time:l}=i[n]):(t>=i[s].time&&t<=i[n].time&&({lo:s,hi:n}=fi(i,"time",t)),{time:o,pos:a}=i[s],{time:r,pos:l}=i[n]);const c=r-o;return c?a+(l-a)*(t-o)/c:a}class Fs extends Ne{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=ve(e,this.min),this._tableRange=ve(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:s}=this,n=[],o=[];let r,a,l,c,h;for(r=0,a=t.length;r=e&&c<=s&&n.push(c);if(n.length<2)return[{time:e,pos:0},{time:s,pos:1}];for(r=0,a=n.length;rn-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),s=this.getLabelTimestamps();return e.length&&s.length?t=this.normalize(e.concat(s)):t=e.length?e:s,t=this._cache.all=t,t}getDecimalForValue(t){return(ve(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,s=this.getDecimalForPixel(t)/e.factor-e.end;return ve(this._table,s*this._tableRange+this._minPos,!0)}}M(Fs,"id","timeseries"),M(Fs,"defaults",Ne.defaults);const Mn={data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},fl={ariaLabel:{type:String},ariaDescribedby:{type:String}},gl={type:{type:String,required:!0},destroyDelay:{type:Number,default:0},...Mn,...fl},pl=Fn[0]==="2"?(i,t)=>Object.assign(i,{attrs:t}):(i,t)=>Object.assign(i,t);function It(i){return Hs(i)?ai(i):i}function ml(i){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:i;return Hs(t)?new Proxy(i,{}):i}function _l(i,t){const e=i.options;e&&t&&Object.assign(e,t)}function kn(i,t){i.labels=t}function Sn(i,t,e){const s=[];i.datasets=t.map(n=>{const o=i.datasets.find(r=>r[e]===n[e]);return!o||!n.data||s.includes(o)?{...n}:(s.push(o),Object.assign(o,n),o)})}function bl(i,t){const e={labels:[],datasets:[]};return kn(e,i.labels),Sn(e,i.datasets,t),e}const yl=He({props:gl,setup(i,t){let{expose:e,slots:s}=t;const n=rt(null),o=Bs(null);e({chart:o});const r=()=>{if(!n.value)return;const{type:c,data:h,options:d,plugins:u,datasetIdKey:f}=i,m=bl(h,f),p=ml(m,h);o.value=new ne(n.value,{type:c,data:p,options:{...d},plugins:u})},a=()=>{const c=ai(o.value);c&&(i.destroyDelay>0?setTimeout(()=>{c.destroy(),o.value=null},i.destroyDelay):(c.destroy(),o.value=null))},l=c=>{c.update(i.updateMode)};return Ns(r),jn(a),Re([()=>i.options,()=>i.data],(c,h)=>{let[d,u]=c,[f,m]=h;const p=ai(o.value);if(!p)return;let g=!1;if(d){const _=It(d),b=It(f);_&&_!==b&&(_l(p,_),g=!0)}if(u){const _=It(u.labels),b=It(m.labels),w=It(u.datasets),k=It(m.datasets);_!==b&&(kn(p.config.data,_),g=!0),w&&w!==k&&(Sn(p.config.data,w,i.datasetIdKey),g=!0)}g&&Vn(()=>{l(p)})},{deep:!0}),()=>ri("canvas",{role:"img",ariaLabel:i.ariaLabel,ariaDescribedby:i.ariaDescribedby,ref:n},[ri("p",{},[s.default?s.default():""])])}});function xl(i,t){return ne.register(t),He({props:Mn,setup(e,s){let{expose:n}=s;const o=Bs(null),r=a=>{o.value=a==null?void 0:a.chart};return n({chart:o}),()=>ri(yl,pl({ref:r},{type:i,...e}))}})}const vl=xl("doughnut",Xt);/*! + * chartjs-plugin-datalabels v2.2.0 + * https://chartjs-plugin-datalabels.netlify.app + * (c) 2017-2022 chartjs-plugin-datalabels contributors + * Released under the MIT license + */var js=function(){if(typeof window<"u"){if(window.devicePixelRatio)return window.devicePixelRatio;var i=window.screen;if(i)return(i.deviceXDPI||1)/(i.logicalXDPI||1)}return 1}(),Jt={toTextLines:function(i){var t=[],e;for(i=[].concat(i);i.length;)e=i.pop(),typeof e=="string"?t.unshift.apply(t,e.split(` +`)):Array.isArray(e)?i.push.apply(i,e):N(i)||t.unshift(""+e);return t},textSize:function(i,t,e){var s=[].concat(t),n=s.length,o=i.font,r=0,a;for(i.font=e.string,a=0;ae.right&&(s|=Cn),te.bottom&&(s|=Dn),s}function kl(i,t){for(var e=i.x0,s=i.y0,n=i.x1,o=i.y1,r=we(e,s,t),a=we(n,o,t),l,c,h;!(!(r|a)||r&a);)l=r||a,l&An?(c=e+(n-e)*(t.top-s)/(o-s),h=t.top):l&Dn?(c=e+(n-e)*(t.bottom-s)/(o-s),h=t.bottom):l&Cn?(h=s+(o-s)*(t.right-e)/(n-e),c=t.right):l&On&&(h=s+(o-s)*(t.left-e)/(n-e),c=t.left),l===r?(e=c,s=h,r=we(e,s,t)):(n=c,o=h,a=we(n,o,t));return{x0:e,x1:n,y0:s,y1:o}}function Me(i,t){var e=t.anchor,s=i,n,o;return t.clamp&&(s=kl(s,t.area)),e==="start"?(n=s.x0,o=s.y0):e==="end"?(n=s.x1,o=s.y1):(n=(s.x0+s.x1)/2,o=(s.y0+s.y1)/2),wl(n,o,i.vx,i.vy,t.align)}var ke={arc:function(i,t){var e=(i.startAngle+i.endAngle)/2,s=Math.cos(e),n=Math.sin(e),o=i.innerRadius,r=i.outerRadius;return Me({x0:i.x+s*o,y0:i.y+n*o,x1:i.x+s*r,y1:i.y+n*r,vx:s,vy:n},t)},point:function(i,t){var e=oi(i,t.origin),s=e.x*i.options.radius,n=e.y*i.options.radius;return Me({x0:i.x-s,y0:i.y-n,x1:i.x+s,y1:i.y+n,vx:e.x,vy:e.y},t)},bar:function(i,t){var e=oi(i,t.origin),s=i.x,n=i.y,o=0,r=0;return i.horizontal?(s=Math.min(i.x,i.base),o=Math.abs(i.base-i.x)):(n=Math.min(i.y,i.base),r=Math.abs(i.base-i.y)),Me({x0:s,y0:n+r,x1:s+o,y1:n,vx:e.x,vy:e.y},t)},fallback:function(i,t){var e=oi(i,t.origin);return Me({x0:i.x,y0:i.y,x1:i.x+(i.width||0),y1:i.y+(i.height||0),vx:e.x,vy:e.y},t)}},lt=Jt.rasterize;function Sl(i){var t=i.borderWidth||0,e=i.padding,s=i.size.height,n=i.size.width,o=-n/2,r=-s/2;return{frame:{x:o-e.left-t,y:r-e.top-t,w:n+e.width+t*2,h:s+e.height+t*2},text:{x:o,y:r,w:n,h:s}}}function Ol(i,t){var e=t.chart.getDatasetMeta(t.datasetIndex).vScale;if(!e)return null;if(e.xCenter!==void 0&&e.yCenter!==void 0)return{x:e.xCenter,y:e.yCenter};var s=e.getBasePixel();return i.horizontal?{x:s,y:null}:{x:null,y:s}}function Cl(i){return i instanceof Tt?ke.arc:i instanceof Ae?ke.point:i instanceof Pe?ke.bar:ke.fallback}function Dl(i,t,e,s,n,o){var r=Math.PI/2;if(o){var a=Math.min(o,n/2,s/2),l=t+a,c=e+a,h=t+s-a,d=e+n-a;i.moveTo(t,c),ls.x+s.w+e*2||i.y>s.y+s.h+e*2)},intersects:function(i){var t=this._points(),e=i._points(),s=[Se(t[0],t[1]),Se(t[0],t[3])],n,o,r;for(this._rotation!==i._rotation&&s.push(Se(e[0],e[1]),Se(e[0],e[3])),n=0;n=0;--e)for(n=i[e].$layout,s=e-1;s>=0&&n._visible;--s)o=i[s].$layout,o._visible&&n._box.intersects(o._box)&&t(n,o);return i}function zl(i){var t,e,s,n,o,r,a;for(t=0,e=i.length;tl.getProps([c],!0)[c]}),o=s.geometry(),r=In(a,s.model(),o),n._box.update(r,o,s.rotation()));return Ll(i,function(l,c){var h=l._hidable,d=c._hidable;h&&d||d?c._visible=!1:h&&(l._visible=!1)})}var te={prepare:function(i){var t=[],e,s,n,o,r;for(e=0,n=i.length;e=0;--e)if(s=i[e].$layout,s&&s._visible&&s._box.contains(t))return i[e];return null},draw:function(i,t){var e,s,n,o,r,a;for(e=0,s=t.length;e{const r=Object.keys(t.data),a=r.map(c=>t.data[c].weight),l=r.map(c=>t.data[c].color);return{labels:r,datasets:[{label:"My First Dataset",data:a,backgroundColor:l,hoverOffset:4}]}}),n=rt({responsive:!0,maintainAspectRatio:!1,plugins:{datalabels:{display:!0,color:"#fff",backgroundColor:"#404040",formatter:function(r,a){return a.chart.data.labels[a.dataIndex]}}}});Oe(()=>{let r=0;if(!t.data)return r;for(const a in t.data)r+=t.data[a].weight;return r});const o=Oe(()=>t.data?Object.fromEntries(Object.entries(t.data).sort(([,r],[,a])=>a.weight-r.weight)):{});return Re(()=>t.data,(r,a)=>{if(a)for(const l in r)try{if(a[l]&&a[l].weight!==r[l].weight){const c=l.toLowerCase();e.value=`animate-${c}`,setTimeout(()=>{e.value=""},1e3)}}catch(c){console.log("error",c)}},{deep:!0}),(r,a)=>{const l=Ws,c=Wn("Vue3Marquee");return Et(),Ie(li,null,[Mt("div",$l,[Mt("div",Yl,[C(c,{"pause-on-hover":"true","animate-on-overflow-only":!0,clone:!0,class:ci(`d-flex justify-center ${I(e)}`)},{default:O(()=>[(Et(!0),Ie(li,null,Bn(Object.keys(I(o)),h=>(Et(),$s(l,{key:h,id:`category-chip-${h.toLowerCase()}`,category:I(o)[h]},{default:O(()=>[tt(Yt(I(hi)(i.data[h].weight)),1)]),_:2},1032,["id","category"]))),128))]),_:1},8,["class"])])]),Mt("div",Ul,[C(Ys,{id:"chart-icon"},{default:O(()=>[tt("M16,5V4A2,2 0 0,0 14,2H10A2,2 0 0,0 8,4V5A4,4 0 0,0 4,9V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V9A4,4 0 0,0 16,5M10,4H14V5H10V4M12,9L14,11L12,13L10,11L12,9M18,16H9V18H8V16H6V15H18V16Z")]),_:1}),C(I(vl),{id:"chart",options:I(n),data:I(s)},null,8,["options","data"])])],64)}}}),Kl=i=>(qn("data-v-c2e35969"),i=i(),Gn(),i),ql=Kl(()=>Mt("h3",null,"Items",-1)),Gl={key:0},Zl={class:"chart-toggle-wrapper"},Ql=He({__name:"form",props:{inventory:{type:Object,default:()=>({name:""})}},emits:["close-dialog"],async setup(i){let t,e;const s=rt(!1),n=rt(!1),o=rt({}),r=rt(""),a=i,l=[{title:"Image",value:"image",align:" d-none d-lg-flex"},{title:"Name",value:"name",sortable:!0},{title:"Weight",value:"weight",sortable:!0},{title:"Category",value:"category",sortable:!0}],c=rt({...a.inventory}),h=rt([]),d=Nn(),u=Hn(),{entities:f}=$n(u);[t,e]=Yn(()=>u.fetch()),await t,e(),Re(()=>h.value,y=>{c.value.items=y.map(x=>f.value.find(A=>A.id===x))}),Re(()=>c.value,y=>{o.value=Qn(y.items)},{deep:!0});const m=Oe(()=>c.value.items?c.value.items.reduce((y,x)=>y+x.weight*x.amount,0):0),p=()=>{n.value=!n.value},g={weight:(y,x)=>y-x,category:(y,x)=>y.name.localeCompare(x.name),amount:(y,x)=>y-x},_={category:(y,x)=>y.name.toLowerCase().includes(x.toLowerCase())},b=async()=>{try{const{items:y,...x}=c.value;c.value.id?await d.updateWithItems(x,y):await d.createWithItems(x,y),Ti("/inventories")}catch(y){console.error("An error occurred while saving the item:",y)}};async function w(){await d.delete(c.value.id),Ti("/inventories")}async function k(){s.value=!0}return Ns(()=>{c.value.id&&(h.value=c.value.items.map(y=>y.id))}),(y,x)=>{const A=zn,V=Ws,L=Xl;return Et(),Ie(li,null,[C(so,null,{default:O(()=>[C(Ei,{modelValue:I(c).name,"onUpdate:modelValue":x[0]||(x[0]=v=>I(c).name=v),label:"Name"},null,8,["modelValue"]),C(eo,null,{default:O(()=>[C(Li,null,{default:O(()=>[C(ce,{cols:"12"},{default:O(()=>[C(Xe,null,{title:O(()=>[ql]),text:O(()=>[C(Ei,{modelValue:I(r),"onUpdate:modelValue":x[1]||(x[1]=v=>Ke(r)?r.value=v:null),label:"Search","prepend-inner-icon":"M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z",variant:"outlined","hide-details":"","single-line":""},null,8,["modelValue"])]),default:O(()=>[C(Jn,{modelValue:I(h),"onUpdate:modelValue":x[2]||(x[2]=v=>Ke(h)?h.value=v:null),items:I(f),"item-value":"id",headers:l,"show-select":"","custom-key-sort":g,search:I(r),"item-selectable":"true","custom-key-filter":_,"mobile-breakpoint":"0"},Un({"item.name":O(({item:v})=>[Mt("span",null,Yt(v.name),1),v.amount>1?(Et(),Ie("span",Gl," (x"+Yt(v.amount)+") ",1)):Ri("",!0)]),"header.weight":O(()=>[tt(" Weight ("+Yt(I(hi)(I(m),!0))+") ",1)]),"item.weight":O(({item:v})=>[C(io,{color:("weightColor"in y?y.weightColor:I(to))(v.weight*v.amount)},{default:O(()=>[C(Ys,null,{default:O(()=>[tt("M12,3A4,4 0 0,1 16,7C16,7.73 15.81,8.41 15.46,9H18C18.95,9 19.75,9.67 19.95,10.56C21.96,18.57 22,18.78 22,19A2,2 0 0,1 20,21H4A2,2 0 0,1 2,19C2,18.78 2.04,18.57 4.05,10.56C4.25,9.67 5.05,9 6,9H8.54C8.19,8.41 8,7.73 8,7A4,4 0 0,1 12,3M12,5A2,2 0 0,0 10,7A2,2 0 0,0 12,9A2,2 0 0,0 14,7A2,2 0 0,0 12,5Z")]),_:1}),tt("   "+Yt(I(hi)(v.weight*v.amount)),1)]),_:2},1032,["color"])]),"item.category":O(({value:v})=>[C(V,{category:v},null,8,["category"])]),_:2},[I(f).image?{name:"item.image",fn:O(({value:v})=>[C(A,{"image-path":v},null,8,["image-path"])]),key:"0"}:void 0]),1032,["modelValue","items","search"])]),_:1})]),_:1})]),_:1})]),_:1}),C(Li,{class:"mt-1",justify:"end"},{default:O(()=>[I(c).id?(Et(),$s(ce,{key:0,cols:"auto"},{default:O(()=>[C(At,{onClick:x[3]||(x[3]=v=>k())},{default:O(()=>[tt("Delete")]),_:1})]),_:1})):Ri("",!0),C(ce,{cols:"auto"},{default:O(()=>[C(At,{onClick:x[4]||(x[4]=v=>y.$router.back())},{default:O(()=>[tt("Cancel")]),_:1})]),_:1}),C(ce,{cols:"auto"},{default:O(()=>[C(At,{onClick:x[5]||(x[5]=v=>b())},{default:O(()=>[tt("Save")]),_:1})]),_:1})]),_:1}),C(Xn,{modelValue:I(s),"onUpdate:modelValue":x[8]||(x[8]=v=>Ke(s)?s.value=v:null),"max-width":"290"},{default:O(()=>[C(Xe,null,{default:O(()=>[C(Ii,null,{default:O(()=>[tt("Are you sure you want to delete this item?")]),_:1}),C(Kn,null,{default:O(()=>[C(At,{onClick:x[6]||(x[6]=v=>s.value=!1)},{default:O(()=>[tt("Cancel")]),_:1}),C(At,{onClick:x[7]||(x[7]=v=>w())},{default:O(()=>[tt("Delete")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1}),Mt("div",{class:ci(`chart-overlay ${I(n)?"show":""}`)},[Mt("div",Zl,[C(At,{icon:"M12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M17,14L12,9L7,14H17Z",size:"x-large",rounded:"m",elevation:"",class:ci(`chart-toggle ${I(n)?"rotated":""}`),onClick:x[9]||(x[9]=v=>p())},null,8,["class"])]),C(Xe,null,{default:O(()=>[C(Ii,null,{default:O(()=>[C(L,{class:"pt-5 inventories-chart",data:I(o),colors:y.categoryColors},null,8,["data","colors"])]),_:1})]),_:1})],2)],64)}}}),dc=Zn(Ql,[["__scopeId","data-v-c2e35969"]]);export{dc as _}; diff --git a/_nuxt/anyozH1k.js b/_nuxt/anyozH1k.js new file mode 100644 index 0000000..81c1765 --- /dev/null +++ b/_nuxt/anyozH1k.js @@ -0,0 +1 @@ +import{F as Q,O as G,G as j,b4 as be,X,a2 as ue,I as Z,aT as Se,aU as Ce,a4 as re,ap as F,c as g,aH as ee,c5 as Ie,bh as le,as as xe,L as de,A as i,c6 as ae,S as R,c7 as Ve,b1 as Pe,a3 as ve,aR as fe,a5 as pe,a6 as ze,a7 as W,a1 as he,b9 as te,aO as Ae,aP as Re,T as _e,U as we,W as Ee,c8 as Te,aQ as Fe,R as Ge,aS as Oe,c9 as Be,ca as Me,bd as De,Z as We,$ as Le,cb as He,aG as $e,Y as qe,cc as Ke,M as ne,Q as Ne,cd as Ue,bZ as Qe,bl as L,N as je,ae as se,bj as ie}from"./CsYHinuP.js";function Xe(e){let{selectedElement:n,containerElement:t,isRtl:u,isHorizontal:o}=e;const y=O(o,t),c=ye(o,u,t),k=O(o,n),v=ke(o,n),m=k*.4;return c>v?v-m:c+ytypeof e=="boolean"||["always","desktop","mobile"].includes(e)},...j(),...be(),...X(),...ue({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),ce=Z()({name:"VSlideGroup",props:ge(),emits:{"update:modelValue":e=>!0},setup(e,n){let{slots:t}=n;const{isRtl:u}=Se(),{displayClasses:o,mobile:y}=Ce(e),c=re(e,e.symbol),k=F(!1),v=F(0),m=F(0),I=F(0),d=g(()=>e.direction==="horizontal"),{resizeRef:f,contentRect:_}=ee(),{resizeRef:p,contentRect:V}=ee(),s=Ie(),b=g(()=>({container:f.value,duration:200,easing:"easeOutQuart"})),H=g(()=>c.selected.value.length?c.items.value.findIndex(l=>l.id===c.selected.value[0]):-1),S=g(()=>c.selected.value.length?c.items.value.findIndex(l=>l.id===c.selected.value[c.selected.value.length-1]):-1);if(le){let l=-1;xe(()=>[c.selected.value,_.value,V.value,d.value],()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{if(_.value&&V.value){const a=d.value?"width":"height";m.value=_.value[a],I.value=V.value[a],k.value=m.value+1=0&&p.value){const a=p.value.children[S.value];w(a,e.centerActive)}})})}const P=F(!1);function w(l,a){let r=0;a?r=Ze({containerElement:f.value,isHorizontal:d.value,selectedElement:l}):r=Xe({containerElement:f.value,isHorizontal:d.value,isRtl:u.value,selectedElement:l}),B(r)}function B(l){if(!le||!f.value)return;const a=O(d.value,f.value),r=ye(d.value,u.value,f.value);if(!(oe(d.value,f.value)<=a||Math.abs(l-r)<16)){if(d.value&&u.value&&f.value){const{scrollWidth:D,offsetWidth:U}=f.value;l=D-U-l}d.value?s.horizontal(l,b.value):s(l,b.value)}}function h(l){const{scrollTop:a,scrollLeft:r}=l.target;v.value=d.value?r:a}function x(l){if(P.value=!0,!(!k.value||!p.value)){for(const a of l.composedPath())for(const r of p.value.children)if(r===a){w(r);return}}}function $(l){P.value=!1}let E=!1;function M(l){var a;!E&&!P.value&&!(l.relatedTarget&&((a=p.value)!=null&&a.contains(l.relatedTarget)))&&C(),E=!1}function T(){E=!0}function q(l){if(!p.value)return;function a(r){l.preventDefault(),C(r)}d.value?l.key==="ArrowRight"?a(u.value?"prev":"next"):l.key==="ArrowLeft"&&a(u.value?"next":"prev"):l.key==="ArrowDown"?a("next"):l.key==="ArrowUp"&&a("prev"),l.key==="Home"?a("first"):l.key==="End"&&a("last")}function C(l){var r,A;if(!p.value)return;let a;if(!l)a=Ve(p.value)[0];else if(l==="next"){if(a=(r=p.value.querySelector(":focus"))==null?void 0:r.nextElementSibling,!a)return C("first")}else if(l==="prev"){if(a=(A=p.value.querySelector(":focus"))==null?void 0:A.previousElementSibling,!a)return C("last")}else l==="first"?a=p.value.firstElementChild:l==="last"&&(a=p.value.lastElementChild);a&&a.focus({preventScroll:!0})}function z(l){const a=d.value&&u.value?-1:1,r=(l==="prev"?-a:a)*m.value;let A=v.value+r;if(d.value&&u.value&&f.value){const{scrollWidth:D,offsetWidth:U}=f.value;A+=D-U}B(A)}const K=g(()=>({next:c.next,prev:c.prev,select:c.select,isSelected:c.isSelected})),N=g(()=>{switch(e.showArrows){case"always":return!0;case"desktop":return!y.value;case!0:return k.value||Math.abs(v.value)>0;case"mobile":return y.value||k.value||Math.abs(v.value)>0;default:return!y.value&&(k.value||Math.abs(v.value)>0)}}),Y=g(()=>Math.abs(v.value)>1),J=g(()=>{if(!f.value)return!1;const l=oe(d.value,f.value),a=Ye(d.value,f.value);return l-a-Math.abs(v.value)>1});return de(()=>i(e.tag,{class:["v-slide-group",{"v-slide-group--vertical":!d.value,"v-slide-group--has-affixes":N.value,"v-slide-group--is-overflowing":k.value},o.value,e.class],style:e.style,tabindex:P.value||c.selected.value.length?-1:0,onFocus:M},{default:()=>{var l,a,r;return[N.value&&i("div",{key:"prev",class:["v-slide-group__prev",{"v-slide-group__prev--disabled":!Y.value}],onMousedown:T,onClick:()=>Y.value&&z("prev")},[((l=t.prev)==null?void 0:l.call(t,K.value))??i(ae,null,{default:()=>[i(R,{icon:u.value?e.nextIcon:e.prevIcon},null)]})]),i("div",{key:"container",ref:f,class:"v-slide-group__container",onScroll:h},[i("div",{ref:p,class:"v-slide-group__content",onFocusin:x,onFocusout:$,onKeydown:q},[(a=t.default)==null?void 0:a.call(t,K.value)])]),N.value&&i("div",{key:"next",class:["v-slide-group__next",{"v-slide-group__next--disabled":!J.value}],onMousedown:T,onClick:()=>J.value&&z("next")},[((r=t.next)==null?void 0:r.call(t,K.value))??i(ae,null,{default:()=>[i(R,{icon:u.value?e.prevIcon:e.nextIcon},null)]})])]}})),{selected:c.selected,scrollTo:z,scrollOffset:v,focus:C}}}),me=Symbol.for("vuetify:v-chip-group"),el=Q({column:Boolean,filter:Boolean,valueComparator:{type:Function,default:Pe},...ge(),...j(),...ue({selectedClass:"v-chip--selected"}),...X(),...ve(),...fe({variant:"tonal"})},"VChipGroup"),tl=Z()({name:"VChipGroup",props:el(),emits:{"update:modelValue":e=>!0},setup(e,n){let{slots:t}=n;const{themeClasses:u}=pe(e),{isSelected:o,select:y,next:c,prev:k,selected:v}=re(e,me);return ze({VChip:{color:W(e,"color"),disabled:W(e,"disabled"),filter:W(e,"filter"),variant:W(e,"variant")}}),de(()=>{const m=ce.filterProps(e);return i(ce,he(m,{class:["v-chip-group",{"v-chip-group--column":e.column},u.value,e.class],style:e.style}),{default:()=>{var I;return[(I=t.default)==null?void 0:I.call(t,{isSelected:o,select:y,next:c,prev:k,selected:v.value})]}})}),{}}}),ll=Q({activeClass:String,appendAvatar:String,appendIcon:G,closable:Boolean,closeIcon:{type:G,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:String,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:G,ripple:{type:[Boolean,Object],default:!0},text:String,modelValue:{type:Boolean,default:!0},onClick:te(),onClickOnce:te(),...Ae(),...j(),...Re(),..._e(),...we(),...Ee(),...Te(),...Fe(),...X({tag:"span"}),...ve(),...fe({variant:"tonal"})},"VChip"),nl=Z()({name:"VChip",directives:{Ripple:Ge},props:ll(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0,"group:selected":e=>!0,click:e=>!0},setup(e,n){let{attrs:t,emit:u,slots:o}=n;const{t:y}=Oe(),{borderClasses:c}=Be(e),{colorClasses:k,colorStyles:v,variantClasses:m}=Me(e),{densityClasses:I}=De(e),{elevationClasses:d}=We(e),{roundedClasses:f}=Le(e),{sizeClasses:_}=He(e),{themeClasses:p}=pe(e),V=$e(e,"modelValue"),s=qe(e,me,!1),b=Ke(e,t),H=g(()=>e.link!==!1&&b.isLink.value),S=g(()=>!e.disabled&&e.link!==!1&&(!!s||e.link||b.isClickable.value)),P=g(()=>({"aria-label":y(e.closeLabel),onClick(h){h.preventDefault(),h.stopPropagation(),V.value=!1,u("click:close",h)}}));function w(h){var x;u("click",h),S.value&&((x=b.navigate)==null||x.call(b,h),s==null||s.toggle())}function B(h){(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),w(h))}return()=>{const h=b.isLink.value?"a":e.tag,x=!!(e.appendIcon||e.appendAvatar),$=!!(x||o.append),E=!!(o.close||e.closable),M=!!(o.filter||e.filter)&&s,T=!!(e.prependIcon||e.prependAvatar),q=!!(T||o.prepend),C=!s||s.isSelected.value;return V.value&&ne(i(h,{class:["v-chip",{"v-chip--disabled":e.disabled,"v-chip--label":e.label,"v-chip--link":S.value,"v-chip--filter":M,"v-chip--pill":e.pill},p.value,c.value,C?k.value:void 0,I.value,d.value,f.value,_.value,m.value,s==null?void 0:s.selectedClass.value,e.class],style:[C?v.value:void 0,e.style],disabled:e.disabled||void 0,draggable:e.draggable,href:b.href.value,tabindex:S.value?0:void 0,onClick:w,onKeydown:S.value&&!H.value&&B},{default:()=>{var z;return[Ue(S.value,"v-chip"),M&&i(Qe,{key:"filter"},{default:()=>[ne(i("div",{class:"v-chip__filter"},[o.filter?i(L,{key:"filter-defaults",disabled:!e.filterIcon,defaults:{VIcon:{icon:e.filterIcon}}},o.filter):i(R,{key:"filter-icon",icon:e.filterIcon},null)]),[[je,s.isSelected.value]])]}),q&&i("div",{key:"prepend",class:"v-chip__prepend"},[o.prepend?i(L,{key:"prepend-defaults",disabled:!T,defaults:{VAvatar:{image:e.prependAvatar,start:!0},VIcon:{icon:e.prependIcon,start:!0}}},o.prepend):i(se,null,[e.prependIcon&&i(R,{key:"prepend-icon",icon:e.prependIcon,start:!0},null),e.prependAvatar&&i(ie,{key:"prepend-avatar",image:e.prependAvatar,start:!0},null)])]),i("div",{class:"v-chip__content","data-no-activator":""},[((z=o.default)==null?void 0:z.call(o,{isSelected:s==null?void 0:s.isSelected.value,selectedClass:s==null?void 0:s.selectedClass.value,select:s==null?void 0:s.select,toggle:s==null?void 0:s.toggle,value:s==null?void 0:s.value.value,disabled:e.disabled}))??e.text]),$&&i("div",{key:"append",class:"v-chip__append"},[o.append?i(L,{key:"append-defaults",disabled:!x,defaults:{VAvatar:{end:!0,image:e.appendAvatar},VIcon:{end:!0,icon:e.appendIcon}}},o.append):i(se,null,[e.appendIcon&&i(R,{key:"append-icon",end:!0,icon:e.appendIcon},null),e.appendAvatar&&i(ie,{key:"append-avatar",end:!0,image:e.appendAvatar},null)])]),E&&i("button",he({key:"close",class:"v-chip__close",type:"button"},P.value),[o.close?i(L,{key:"close-defaults",defaults:{VIcon:{icon:e.closeIcon,size:"x-small"}}},o.close):i(R,{key:"close-icon",icon:e.closeIcon,size:"x-small"},null)])]}}),[[Ne("ripple"),S.value&&e.ripple,null]])}}});export{nl as V,tl as a}; diff --git a/_nuxt/builds/latest.json b/_nuxt/builds/latest.json index e80a517..65eca00 100644 --- a/_nuxt/builds/latest.json +++ b/_nuxt/builds/latest.json @@ -1 +1 @@ -{"id":"20c8ff74-4cf2-4b1b-b82d-345883fb5cca","timestamp":1719103012216} \ No newline at end of file +{"id":"f31eda82-68fb-4075-b901-891265ac14be","timestamp":1719103176569} \ No newline at end of file diff --git a/_nuxt/builds/meta/f31eda82-68fb-4075-b901-891265ac14be.json b/_nuxt/builds/meta/f31eda82-68fb-4075-b901-891265ac14be.json new file mode 100644 index 0000000..c1ee703 --- /dev/null +++ b/_nuxt/builds/meta/f31eda82-68fb-4075-b901-891265ac14be.json @@ -0,0 +1 @@ +{"id":"f31eda82-68fb-4075-b901-891265ac14be","timestamp":1719103176569,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]} \ No newline at end of file diff --git a/_nuxt/cxFlIQmQ.js b/_nuxt/cxFlIQmQ.js new file mode 100644 index 0000000..8ab82ad --- /dev/null +++ b/_nuxt/cxFlIQmQ.js @@ -0,0 +1 @@ +import{V as t}from"./anyozH1k.js";import{o as H,v as o,a8 as V,B as c,C as i,z as n,bH as s,af as C,ak as A}from"./CsYHinuP.js";var m="M12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M17,14L12,9L7,14H17Z",L="M12,2L22,8C22,12 20,14 16,15L13,10L9,6L12,2M4.11,19.84L2.12,18.33L9.19,9L11,10.81L4.11,19.84Z",u="M16,5V4A2,2 0 0,0 14,2H10A2,2 0 0,0 8,4V5A4,4 0 0,0 4,9V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V9A4,4 0 0,0 16,5M10,4H14V5H10V4M12,9L14,11L12,13L10,11L12,9M18,16H9V18H8V16H6V15H18V16Z",r="M16,20H8V6H16M16.67,4H15V2H9V4H7.33A1.33,1.33 0 0,0 6,5.33V20.67C6,21.4 6.6,22 7.33,22H16.67A1.33,1.33 0 0,0 18,20.67V5.33C18,4.6 17.4,4 16.67,4Z",M="M10,20V14H14V20H19V12H22L12,3L2,12H5V20H10Z",l="M10,3L8,5V7H5C3.85,7 3.12,8 3,9L2,19C1.88,20 2.54,21 4,21H20C21.46,21 22.12,20 22,19L21,9C20.88,8 20.06,7 19,7H16V5L14,3H10M10,5H14V7H10V5M11,10H13V13H16V15H13V18H11V15H8V13H11V10Z",d="M14.6 9L18 3.1L19.7 4.1L16.9 9H14.6M14 10H3V12H5V19C5 20.1 5.9 21 7 21H17C18.1 21 19 20.1 19 19V12H21V10H14Z",g="M9 7C7.9 7 7 7.9 7 9V17H9V9H11V16H13V9H15V17H17V9C17 7.9 16.11 7 15 7H9Z",p="M16,21H8A1,1 0 0,1 7,20V12.07L5.7,13.07C5.31,13.46 4.68,13.46 4.29,13.07L1.46,10.29C1.07,9.9 1.07,9.27 1.46,8.88L7.34,3H9C9,4.1 10.34,5 12,5C13.66,5 15,4.1 15,3H16.66L22.54,8.88C22.93,9.27 22.93,9.9 22.54,10.29L19.71,13.12C19.32,13.5 18.69,13.5 18.3,13.12L17,12.12V20A1,1 0 0,1 16,21",v="M12,20A6,6 0 0,1 6,14C6,10 12,3.25 12,3.25C12,3.25 18,10 18,14A6,6 0 0,1 12,20Z",h="M12,3A4,4 0 0,1 16,7C16,7.73 15.81,8.41 15.46,9H18C18.95,9 19.75,9.67 19.95,10.56C21.96,18.57 22,18.78 22,19A2,2 0 0,1 20,21H4A2,2 0 0,1 2,19C2,18.78 2.04,18.57 4.05,10.56C4.25,9.67 5.05,9 6,9H8.54C8.19,8.41 8,7.73 8,7A4,4 0 0,1 12,3M12,5A2,2 0 0,0 10,7A2,2 0 0,0 12,9A2,2 0 0,0 14,7A2,2 0 0,0 12,5Z";function y(e){switch(e){case"water":return v;case"battery-outline":return r;case"medical-bag":return l;case"home":return M;case"size-m":return g;case"pot-mix":return d;case"axe":return L;case"bag-personal":return u;case"tshirt-crew":return p;case"weight":return h;case"arrow-up-drop-circle-outline":return m;default:return r}}const b={__name:"chip",props:{category:Object},setup(e){return H(()=>{}),(a,Z)=>e.category?(o(),V(t,{key:0,"prepend-icon":C(y)(e.category.icon),label:"",class:"category-weight ml-1 mr-1 mt-1 mb-1",color:e.category.color},{default:c(()=>[i(n(e.category.name)+" ",1),s(a.$slots,"default")]),_:3},8,["prepend-icon","color"])):A("",!0)}};export{b as _}; diff --git a/_nuxt/o8OYIcRE.js b/_nuxt/o8OYIcRE.js new file mode 100644 index 0000000..fb00f53 --- /dev/null +++ b/_nuxt/o8OYIcRE.js @@ -0,0 +1 @@ +import{_ as h}from"./DkwyJ7jd.js";import{bu as C,am as T,v as o,a8 as l,B as t,af as c,x as k,ae as w,ad as L,ah as p,A as e,C as _,aj as b,q as v,ac as m,ai as B,d as N,a9 as V,ab as g}from"./CsYHinuP.js";import{V as P,a as y}from"./DoIRHZ99.js";import{V as U}from"./DKIU8Zgl.js";import"./anyozH1k.js";const $={__name:"list-upcoming",async setup(f){let s,n;const a=C().trips;[s,n]=T(()=>a.fetch()),await s,n();const r=a.byDateUpcoming;return(i,d)=>{const x=h;return o(),l(m,null,{default:t(()=>[c(r).length?(o(!0),k(w,{key:0},L(c(r),u=>(o(),l(p,{key:u.id},{default:t(()=>[e(x,{entity:u},null,8,["entity"])]),_:2},1024))),128)):(o(),l(p,{key:1},{default:t(()=>[e(P,null,{default:t(()=>[e(y,{cols:"6"},{default:t(()=>[_(" No upcoming trips 😢 ")]),_:1}),e(y,{cols:"6",class:"text-right"},{default:t(()=>[e(b,{onClick:d[0]||(d[0]=u=>("navigateTo"in i?i.navigateTo:c(v))("/trips/new"))},{default:t(()=>[_("Create one!")]),_:1})]),_:1})]),_:1})]),_:1}))]),_:1})}}},A={__name:"list-past",async setup(f){let s,n;const a=C().trips;return[s,n]=T(()=>a.fetch()),await s,n(),a.byDatePast,(r,i)=>(o(),l(m,null,{default:t(()=>[e(m,null,{default:t(()=>[e(p,null,{default:t(()=>[e(B,null,{default:t(()=>[_("No past trips 😔")]),_:1})]),_:1})]),_:1})]),_:1}))}},F=N({__name:"index",setup(f){return(s,n)=>{const a=$,r=A;return o(),l(U,null,{default:t(()=>[e(g,{class:"mb-5"},{default:t(()=>[e(V,null,{default:t(()=>[_("Upcoming trips")]),_:1}),e(a)]),_:1}),e(g,null,{default:t(()=>[e(V,null,{default:t(()=>[_("Past trips")]),_:1}),e(r)]),_:1})]),_:1})}}});export{F as default}; diff --git a/_nuxt/pKNvLgOZ.js b/_nuxt/pKNvLgOZ.js new file mode 100644 index 0000000..c32a313 --- /dev/null +++ b/_nuxt/pKNvLgOZ.js @@ -0,0 +1 @@ +import{_ as a}from"./REcBhd0O.js";import{an as i,am as m,ao as s,a8 as p,B as _,v as c,A as u,af as f}from"./CsYHinuP.js";import{V as l}from"./DKIU8Zgl.js";import"./1ufk8KGl.js";import"./B8xzjt0i.js";import"./cxFlIQmQ.js";import"./anyozH1k.js";import"./BFbS1nff.js";import"./DROfdj8r.js";import"./9HoxfIWU.js";import"./Ckgx-ZkB.js";import"./C5_Hj3rt.js";import"./D3VuSz5Q.js";import"./CuSTAa19.js";import"./B5oJa23P.js";import"./DoIRHZ99.js";import"./BorjDOqY.js";const z={__name:"new",async setup(v){let t,o;const r=i();[t,o]=m(()=>r.fetch()),await t,o();const e=r.byId(s().params.id);return(y,d)=>{const n=a;return c(),p(l,null,{default:_(()=>[u(n,{inventory:f(e)},null,8,["inventory"])]),_:1})}}};export{z as default}; diff --git a/_nuxt/sWvUMHT_.js b/_nuxt/sWvUMHT_.js new file mode 100644 index 0000000..8fe482a --- /dev/null +++ b/_nuxt/sWvUMHT_.js @@ -0,0 +1 @@ +import{u as P,d as A,c as y,h as N,r as C,o as B,a as j,b as I,e as E,f as L,g as S,i as T,j as U,p as V,k as D,n as H,l as F,m as q,q as O,w as $,s as M,_ as G,t as Q,v as W,x as J,y as m,z as k,A as K,B as X,C as Y,D as Z,E as ee}from"./CsYHinuP.js";async function z(t,a=P()){const{path:i,matched:e}=a.resolve(t);if(!e.length||(a._routePreloaded||(a._routePreloaded=new Set),a._routePreloaded.has(i)))return;const r=a._preloadPromises=a._preloadPromises||[];if(r.length>4)return Promise.all(r).then(()=>z(t,a));a._routePreloaded.add(i);const s=e.map(u=>{var n;return(n=u.components)==null?void 0:n.default}).filter(u=>typeof u=="function");for(const u of s){const n=Promise.resolve(u()).catch(()=>{}).finally(()=>r.splice(r.indexOf(n)));r.push(n)}await Promise.all(r)}const te=(...t)=>t.find(a=>a!==void 0);function ae(t){const a=t.componentName||"NuxtLink";function i(e,r){if(!e||t.trailingSlash!=="append"&&t.trailingSlash!=="remove")return e;if(typeof e=="string")return w(e,t.trailingSlash);const s="path"in e&&e.path!==void 0?e.path:r(e).path;return{...e,name:void 0,path:w(s,t.trailingSlash)}}return A({name:a,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1}},setup(e,{slots:r}){const s=P(),u=F(),n=y(()=>{const o=e.to||e.href||"";return i(o,s.resolve)}),d=y(()=>typeof n.value=="string"&&N(n.value,{acceptRelative:!0})),g=y(()=>e.target&&e.target!=="_self"),b=y(()=>e.external||g.value?!0:typeof n.value=="object"?!1:n.value===""||d.value),_=C(!1),h=C(null),R=o=>{var f;h.value=e.custom?(f=o==null?void 0:o.$el)==null?void 0:f.nextElementSibling:o==null?void 0:o.$el};if(e.prefetch!==!1&&e.noPrefetch!==!0&&e.target!=="_blank"&&!oe()){const f=q();let p,l=null;B(()=>{const x=re();j(()=>{p=I(()=>{var c;(c=h==null?void 0:h.value)!=null&&c.tagName&&(l=x.observe(h.value,async()=>{l==null||l(),l=null;const v=typeof n.value=="string"?n.value:s.resolve(n.value).fullPath;await Promise.all([f.hooks.callHook("link:prefetch",v).catch(()=>{}),!b.value&&z(n.value,s).catch(()=>{})]),_.value=!0}))})})}),E(()=>{p&&L(p),l==null||l(),l=null})}return()=>{var l,x;if(!b.value){const c={ref:R,to:n.value,activeClass:e.activeClass||t.activeClass,exactActiveClass:e.exactActiveClass||t.exactActiveClass,replace:e.replace,ariaCurrentValue:e.ariaCurrentValue,custom:e.custom};return e.custom||(_.value&&(c.class=e.prefetchedClass||t.prefetchedClass),c.rel=e.rel||void 0),S(T("RouterLink"),c,r.default)}const o=typeof n.value=="object"?((l=s.resolve(n.value))==null?void 0:l.href)??null:n.value&&!e.external&&!d.value?i(U(u.app.baseURL,n.value),s.resolve):n.value||null,f=e.target||null,p=te(e.noRel?"":e.rel,t.externalRelAttribute,d.value||g.value?"noopener noreferrer":"")||null;if(e.custom){if(!r.default)return null;const c=()=>O(o,{replace:e.replace,external:e.external});return r.default({href:o,navigate:c,get route(){if(!o)return;const v=V(o);return{path:v.pathname,fullPath:v.pathname,get query(){return D(v.search)},hash:v.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:o}},rel:p,target:f,isExternal:b.value,isActive:!1,isExactActive:!1})}return S("a",{ref:h,href:o,rel:p,target:f},(x=r.default)==null?void 0:x.call(r))}}})}const ne=ae(H);function w(t,a){const i=a==="append"?$:M;return N(t)&&!t.startsWith("http")?t:i(t,!0)}function re(){const t=q();if(t._observer)return t._observer;let a=null;const i=new Map,e=(s,u)=>(a||(a=new IntersectionObserver(n=>{for(const d of n){const g=i.get(d.target);(d.isIntersecting||d.intersectionRatio>0)&&g&&g()}})),i.set(s,u),a.observe(s),()=>{i.delete(s),a.unobserve(s),i.size===0&&(a.disconnect(),a=null)});return t._observer={observe:e}}function oe(){const t=navigator.connection;return!!(t&&(t.saveData||/2g/.test(t.effectiveType)))}const se=t=>(Z("data-v-71447f4e"),t=t(),ee(),t),ie={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},le=se(()=>m("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),ue={class:"max-w-520px text-center z-20"},ce=["textContent"],de=["textContent"],fe={class:"w-full flex items-center justify-center"},he={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"Not Found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(t){const a=t;return Q({title:`${a.statusCode} - ${a.statusMessage} | ${a.appName}`,script:[],style:[{children:'*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--un-default-border-color, #e5e7eb)}:before,:after{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}h1{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,p{margin:0}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(i,e)=>{const r=ne;return W(),J("div",ie,[le,m("div",ue,[m("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:k(t.statusCode)},null,8,ce),m("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:k(t.description)},null,8,de),m("div",fe,[K(r,{to:"/",class:"gradient-border text-md sm:text-xl py-2 px-4 sm:py-3 sm:px-6 cursor-pointer"},{default:X(()=>[Y(k(t.backHome),1)]),_:1})])])])}}},ve=G(he,[["__scopeId","data-v-71447f4e"]]);export{ve as default}; diff --git a/_nuxt/xMlAep8h.js b/_nuxt/xMlAep8h.js new file mode 100644 index 0000000..1b0ed85 --- /dev/null +++ b/_nuxt/xMlAep8h.js @@ -0,0 +1 @@ +import{_ as t}from"./CGRZ0AoM.js";import{_ as r,a8 as m,B as e,v as i,A as p}from"./CsYHinuP.js";import{V as a}from"./DKIU8Zgl.js";import"./1ufk8KGl.js";import"./B8xzjt0i.js";import"./Ckgx-ZkB.js";import"./C5_Hj3rt.js";import"./BexpS2Km.js";import"./anyozH1k.js";import"./DoIRHZ99.js";import"./9HoxfIWU.js";import"./D3VuSz5Q.js";import"./B5oJa23P.js";import"./BorjDOqY.js";const n={};function c(s,_){const o=t;return i(),m(a,null,{default:e(()=>[p(o)]),_:1})}const I=r(n,[["render",c]]);export{I as default}; diff --git a/about/index.html b/about/index.html index 0fc011b..bf690ed 100644 --- a/about/index.html +++ b/about/index.html @@ -2,16 +2,16 @@ - + - + - -
+ +
- + - + - -
+ +
- + - + - -
+ +
- + - + - -
+ +
- + - + - -
+ +
- + - + - -
+ +
- + - + - -
+ +
- + - + - -
+ +
- + - + - -
+ +
- + - + - -
+ +
(t=new URL(t+".js",n).href,s[t]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=t,e.onload=s,document.head.appendChild(e)}else e=t,importScripts(t),s()})).then((()=>{let e=s[t];if(!e)throw new Error(`Module ${t} didn’t register its module`);return e})));self.define=(n,i)=>{const o=e||("document"in self?document.currentScript.src:"")||location.href;if(s[o])return;let c={};const r=e=>t(e,o),l={module:{uri:o},exports:c,require:r};s[o]=Promise.all(n.map((e=>l[e]||r(e)))).then((e=>(i(...e),c)))}}define(["./workbox-cbf83eee"],(function(e){"use strict";self.addEventListener("message",(e=>{e.data&&"SKIP_WAITING"===e.data.type&&self.skipWaiting()})),e.precacheAndRoute([{url:"_nuxt/builds/latest.json",revision:"59689e78d7e99c4fdc8d248b24c2ebc1"},{url:"_nuxt/builds/meta/20c8ff74-4cf2-4b1b-b82d-345883fb5cca.json",revision:null},{url:"manifest.webmanifest",revision:"9e6d491aac42aa7b5d01a77ce21cb3dc"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("/")))})); +if(!self.define){let e,s={};const t=(t,n)=>(t=new URL(t+".js",n).href,s[t]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=t,e.onload=s,document.head.appendChild(e)}else e=t,importScripts(t),s()})).then((()=>{let e=s[t];if(!e)throw new Error(`Module ${t} didn’t register its module`);return e})));self.define=(n,i)=>{const o=e||("document"in self?document.currentScript.src:"")||location.href;if(s[o])return;let r={};const c=e=>t(e,o),l={module:{uri:o},exports:r,require:c};s[o]=Promise.all(n.map((e=>l[e]||c(e)))).then((e=>(i(...e),r)))}}define(["./workbox-cbf83eee"],(function(e){"use strict";self.addEventListener("message",(e=>{e.data&&"SKIP_WAITING"===e.data.type&&self.skipWaiting()})),e.precacheAndRoute([{url:"_nuxt/builds/latest.json",revision:"d06cad15c7762210ad31efe9ecbffeaf"},{url:"_nuxt/builds/meta/f31eda82-68fb-4075-b901-891265ac14be.json",revision:null},{url:"manifest.webmanifest",revision:"9e6d491aac42aa7b5d01a77ce21cb3dc"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("/")))})); diff --git a/tools/gpxstudio/index.html b/tools/gpxstudio/index.html index 0fc011b..bf690ed 100644 --- a/tools/gpxstudio/index.html +++ b/tools/gpxstudio/index.html @@ -2,16 +2,16 @@ - + - + - -
+ +
- + - + - -
+ +
- + - + - -
+ +
- + - + - -
+ +