import{m as $,u as J,a as pe,b as we}from"./B4raF4nqxz_3h9gAYxiJ.js";import{l as be,v as Le,m as Be,j as Ee,d as _e,w as Ne,t as De,R as xe,A as Fe,x as He,y as je,u as ze,k as Ge,f as Ue,B as qe,V as fe,g as me,s as ke}from"./ByfZnMKtn1DL36CPUZJN.js";import{k as X,s as C,e as Q,av as P,l as Ve,r as V,p as D,u as re,b as S,G as Ae,B as Ie,t as ce,a as Ye,g as Z,c as y,I as ge,E as ye,m as Ke,z as H,L as We,az as $e,w as Je,j as Xe,F as W,i as Qe,aa as Ze,W as he,Y as ie,aA as et,q as tt,T as at,o as Pe,J as nt,O as K,H as lt}from"../../assets/main-CbsX0Voe.js";import{c as st,V as Se}from"./DSZISoEdzjgQTyQw3ngw.js";function rt(e){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;e;){if(s?it(e):Oe(e))return e;e=e.parentElement}return document.scrollingElement}function Bt(e,s){const l=[];if(s&&e&&!s.contains(e))return l;for(;e&&(Oe(e)&&l.push(e),e!==s);)e=e.parentElement;return l}function Oe(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const s=window.getComputedStyle(e);return s.overflowY==="scroll"||s.overflowY==="auto"&&e.scrollHeight>e.clientHeight}function it(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const s=window.getComputedStyle(e);return["scroll","auto"].includes(s.overflowY)}const oe=Symbol.for("vuetify:list");function Et(){const e=X(oe,{hasPrepend:C(!1),updateHasPrepend:()=>null}),s={hasPrepend:C(!1),updateHasPrepend:l=>{l&&(s.hasPrepend.value=l)}};return Q(oe,s),e}function ut(){return X(oe,null)}const de=e=>{const s={activate:l=>{let{id:a,value:n,activated:t}=l;return a=P(a),e&&!n&&t.size===1&&t.has(a)||(n?t.add(a):t.delete(a)),t},in:(l,a,n)=>{let t=new Set;if(l!=null)for(const r of Ve(l))t=s.activate({id:r,value:!0,activated:new Set(t),children:a,parents:n});return t},out:l=>Array.from(l)};return s},Te=e=>{const s=de(e);return{activate:a=>{let{activated:n,id:t,...r}=a;t=P(t);const u=n.has(t)?new Set([t]):new Set;return s.activate({...r,id:t,activated:u})},in:(a,n,t)=>{let r=new Set;if(a!=null){const u=Ve(a);u.length&&(r=s.in(u.slice(0,1),n,t))}return r},out:(a,n,t)=>s.out(a,n,t)}},ct=e=>{const s=de(e);return{activate:a=>{let{id:n,activated:t,children:r,...u}=a;return n=P(n),r.has(n)?t:s.activate({id:n,activated:t,children:r,...u})},in:s.in,out:s.out}},ot=e=>{const s=Te(e);return{activate:a=>{let{id:n,activated:t,children:r,...u}=a;return n=P(n),r.has(n)?t:s.activate({id:n,activated:t,children:r,...u})},in:s.in,out:s.out}},dt={open:e=>{let{id:s,value:l,opened:a,parents:n}=e;if(l){const t=new Set;t.add(s);let r=n.get(s);for(;r!=null;)t.add(r),r=n.get(r);return t}else return a.delete(s),a},select:()=>null},Ce={open:e=>{let{id:s,value:l,opened:a,parents:n}=e;if(l){let t=n.get(s);for(a.add(s);t!=null&&t!==s;)a.add(t),t=n.get(t);return a}else a.delete(s);return a},select:()=>null},vt={open:Ce.open,select:e=>{let{id:s,value:l,opened:a,parents:n}=e;if(!l)return a;const t=[];let r=n.get(s);for(;r!=null;)t.push(r),r=n.get(r);return new Set(t)}},ve=e=>{const s={select:l=>{let{id:a,value:n,selected:t}=l;if(a=P(a),e&&!n){const r=Array.from(t.entries()).reduce((u,m)=>{let[g,h]=m;return h==="on"&&u.push(g),u},[]);if(r.length===1&&r[0]===a)return t}return t.set(a,n?"on":"off"),t},in:(l,a,n)=>{let t=new Map;for(const r of l||[])t=s.select({id:r,value:!0,selected:new Map(t),children:a,parents:n});return t},out:l=>{const a=[];for(const[n,t]of l.entries())t==="on"&&a.push(n);return a}};return s},Me=e=>{const s=ve(e);return{select:a=>{let{selected:n,id:t,...r}=a;t=P(t);const u=n.has(t)?new Map([[t,n.get(t)]]):new Map;return s.select({...r,id:t,selected:u})},in:(a,n,t)=>{let r=new Map;return a!=null&&a.length&&(r=s.in(a.slice(0,1),n,t)),r},out:(a,n,t)=>s.out(a,n,t)}},ft=e=>{const s=ve(e);return{select:a=>{let{id:n,selected:t,children:r,...u}=a;return n=P(n),r.has(n)?t:s.select({id:n,selected:t,children:r,...u})},in:s.in,out:s.out}},mt=e=>{const s=Me(e);return{select:a=>{let{id:n,selected:t,children:r,...u}=a;return n=P(n),r.has(n)?t:s.select({id:n,selected:t,children:r,...u})},in:s.in,out:s.out}},gt=e=>{const s={select:l=>{let{id:a,value:n,selected:t,children:r,parents:u}=l;a=P(a);const m=new Map(t),g=[a];for(;g.length;){const p=g.shift();t.set(p,n?"on":"off"),r.has(p)&&g.push(...r.get(p))}let h=u.get(a);for(;h;){const p=r.get(h),w=p.every(c=>t.get(c)==="on"),i=p.every(c=>!t.has(c)||t.get(c)==="off");t.set(h,w?"on":i?"off":"indeterminate"),h=u.get(h)}return e&&!n&&Array.from(t.entries()).reduce((w,i)=>{let[c,v]=i;return v==="on"&&w.push(c),w},[]).length===0?m:t},in:(l,a,n)=>{let t=new Map;for(const r of l||[])t=s.select({id:r,value:!0,selected:new Map(t),children:a,parents:n});return t},out:(l,a)=>{const n=[];for(const[t,r]of l.entries())r==="on"&&!a.has(t)&&n.push(t);return n}};return s},j=Symbol.for("vuetify:nested"),Re={id:C(),root:{register:()=>null,unregister:()=>null,parents:V(new Map),children:V(new Map),open:()=>null,openOnSelect:()=>null,activate:()=>null,select:()=>null,activatable:V(!1),selectable:V(!1),opened:V(new Set),activated:V(new Set),selected:V(new Map),selectedValues:V([])}},_t=D({activatable:Boolean,selectable:Boolean,activeStrategy:[String,Function,Object],selectStrategy:[String,Function,Object],openStrategy:[String,Object],opened:null,activated:null,selected:null,mandatory:Boolean},"nested"),Nt=e=>{let s=!1;const l=V(new Map),a=V(new Map),n=re(e,"opened",e.opened,i=>new Set(i),i=>[...i.values()]),t=S(()=>{if(typeof e.activeStrategy=="object")return e.activeStrategy;if(typeof e.activeStrategy=="function")return e.activeStrategy(e.mandatory);switch(e.activeStrategy){case"leaf":return ct(e.mandatory);case"single-leaf":return ot(e.mandatory);case"independent":return de(e.mandatory);case"single-independent":default:return Te(e.mandatory)}}),r=S(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;if(typeof e.selectStrategy=="function")return e.selectStrategy(e.mandatory);switch(e.selectStrategy){case"single-leaf":return mt(e.mandatory);case"leaf":return ft(e.mandatory);case"independent":return ve(e.mandatory);case"single-independent":return Me(e.mandatory);case"classic":default:return gt(e.mandatory)}}),u=S(()=>{if(typeof e.openStrategy=="object")return e.openStrategy;switch(e.openStrategy){case"list":return vt;case"single":return dt;case"multiple":default:return Ce}}),m=re(e,"activated",e.activated,i=>t.value.in(i,l.value,a.value),i=>t.value.out(i,l.value,a.value)),g=re(e,"selected",e.selected,i=>r.value.in(i,l.value,a.value),i=>r.value.out(i,l.value,a.value));Ae(()=>{s=!0});function h(i){const c=[];let v=i;for(;v!=null;)c.unshift(v),v=a.value.get(v);return c}const p=Ie("nested"),w={id:C(),root:{opened:n,activatable:ce(e,"activatable"),selectable:ce(e,"selectable"),activated:m,selected:g,selectedValues:S(()=>{const i=[];for(const[c,v]of g.value.entries())v==="on"&&i.push(c);return i}),register:(i,c,v)=>{c&&i!==c&&a.value.set(i,c),v&&l.value.set(i,[]),c!=null&&l.value.set(c,[...l.value.get(c)||[],i])},unregister:i=>{if(s)return;l.value.delete(i);const c=a.value.get(i);if(c){const v=l.value.get(c)??[];l.value.set(c,v.filter(d=>d!==i))}a.value.delete(i),n.value.delete(i)},open:(i,c,v)=>{p.emit("click:open",{id:i,value:c,path:h(i),event:v});const d=u.value.open({id:i,value:c,opened:new Set(n.value),children:l.value,parents:a.value,event:v});d&&(n.value=d)},openOnSelect:(i,c,v)=>{const d=u.value.select({id:i,value:c,selected:new Map(g.value),opened:new Set(n.value),children:l.value,parents:a.value,event:v});d&&(n.value=d)},select:(i,c,v)=>{p.emit("click:select",{id:i,value:c,path:h(i),event:v});const d=r.value.select({id:i,value:c,selected:new Map(g.value),children:l.value,parents:a.value,event:v});d&&(g.value=d),w.root.openOnSelect(i,c,v)},activate:(i,c,v)=>{if(!e.activatable)return w.root.select(i,!0,v);p.emit("click:activate",{id:i,value:c,path:h(i),event:v});const d=t.value.activate({id:i,value:c,activated:new Set(m.value),children:l.value,parents:a.value,event:v});d&&(m.value=d)},children:l,parents:a}};return Q(j,w),w.root},yt=(e,s)=>{const l=X(j,Re),a=Symbol(Ye()),n=S(()=>e.value!==void 0?e.value:a),t={...l,id:n,open:(r,u)=>l.root.open(n.value,r,u),openOnSelect:(r,u)=>l.root.openOnSelect(n.value,r,u),isOpen:S(()=>l.root.opened.value.has(n.value)),parent:S(()=>l.root.parents.value.get(n.value)),activate:(r,u)=>l.root.activate(n.value,r,u),isActivated:S(()=>l.root.activated.value.has(P(n.value))),select:(r,u)=>l.root.select(n.value,r,u),isSelected:S(()=>l.root.selected.value.get(P(n.value))==="on"),isIndeterminate:S(()=>l.root.selected.value.get(n.value)==="indeterminate"),isLeaf:S(()=>!l.root.children.value.get(n.value)),isGroupActivator:l.isGroupActivator};return!l.isGroupActivator&&l.root.register(n.value,l.id.value,s),Ae(()=>{!l.isGroupActivator&&l.root.unregister(n.value)}),s&&Q(j,t),t},Dt=()=>{const e=X(j,Re);Q(j,{...e,isGroupActivator:!0})},ht=D({opacity:[Number,String],...$(),...be()},"VListItemSubtitle"),St=Z()({name:"VListItemSubtitle",props:ht(),setup(e,s){let{slots:l}=s;return J(()=>y(e.tag,{class:["v-list-item-subtitle",e.class],style:[{"--v-list-item-subtitle-opacity":e.opacity},e.style]},l)),{}}}),pt=st("v-list-item-title"),wt=D({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:ge,baseColor:String,disabled:Boolean,lines:[Boolean,String],link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:ge,ripple:{type:[Boolean,Object],default:!0},slim:Boolean,subtitle:[String,Number],title:[String,Number],value:null,onClick:ye(),onClickOnce:ye(),...Le(),...$(),...Be(),...pe(),...Ee(),..._e(),...Ne(),...be(),...Ke(),...De({variant:"text"})},"VListItem"),xt=Z()({name:"VListItem",directives:{Ripple:xe},props:wt(),emits:{click:e=>!0},setup(e,s){let{attrs:l,slots:a,emit:n}=s;const t=Fe(e,l),r=S(()=>e.value===void 0?t.href.value:e.value),{activate:u,isActivated:m,select:g,isSelected:h,isIndeterminate:p,isGroupActivator:w,root:i,parent:c,openOnSelect:v}=yt(r,!1),d=ut(),b=S(()=>{var o;return e.active!==!1&&(e.active||((o=t.isActive)==null?void 0:o.value)||(i.activatable.value?m.value:h.value))}),O=S(()=>e.link!==!1&&t.isLink.value),M=S(()=>!e.disabled&&e.link!==!1&&(e.link||t.isClickable.value||!!d&&(i.selectable.value||i.activatable.value||e.value!=null))),E=S(()=>e.rounded||e.nav),ee=S(()=>e.color??e.activeColor),te=S(()=>({color:b.value?ee.value??e.baseColor:e.baseColor,variant:e.variant}));H(()=>{var o;return(o=t.isActive)==null?void 0:o.value},o=>{o&&c.value!=null&&i.open(c.value,!0),o&&v(o)},{immediate:!0});const{themeClasses:T}=We(e),{borderClasses:z}=He(e),{colorClasses:_,colorStyles:L,variantClasses:x}=je(te),{densityClasses:ae}=ze(e),{dimensionStyles:ne}=we(e),{elevationClasses:G}=Ge(e),{roundedClasses:R}=Ue(E),le=S(()=>e.lines?`v-list-item--${e.lines}-line`:void 0),N=S(()=>({isActive:b.value,select:g,isSelected:h.value,isIndeterminate:p.value}));function U(o){var k;n("click",o),M.value&&((k=t.navigate)==null||k.call(t,o),!w&&(i.activatable.value?u(!m.value,o):(i.selectable.value||e.value!=null)&&g(!h.value,o)))}function f(o){(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),U(o))}return J(()=>{const o=O.value?"a":e.tag,k=a.title||e.title!=null,A=a.subtitle||e.subtitle!=null,q=!!(e.appendAvatar||e.appendIcon),B=!!(q||a.append),Y=!!(e.prependAvatar||e.prependIcon),F=!!(Y||a.prepend);return d==null||d.updateHasPrepend(F),e.activeColor&&$e("active-color",["color","base-color"]),Je(y(o,{class:["v-list-item",{"v-list-item--active":b.value,"v-list-item--disabled":e.disabled,"v-list-item--link":M.value,"v-list-item--nav":e.nav,"v-list-item--prepend":!F&&(d==null?void 0:d.hasPrepend.value),"v-list-item--slim":e.slim,[`${e.activeClass}`]:e.activeClass&&b.value},T.value,z.value,_.value,ae.value,G.value,le.value,R.value,x.value,e.class],style:[L.value,ne.value,e.style],href:t.href.value,tabindex:M.value?d?-2:0:void 0,onClick:U,onKeydown:M.value&&!O.value&&f},{default:()=>{var se;return[qe(M.value||b.value,"v-list-item"),F&&y("div",{key:"prepend",class:"v-list-item__prepend"},[a.prepend?y(me,{key:"prepend-defaults",disabled:!Y,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon},VListItemAction:{start:!0}}},{default:()=>{var I;return[(I=a.prepend)==null?void 0:I.call(a,N.value)]}}):y(W,null,[e.prependAvatar&&y(Se,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&y(fe,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)]),y("div",{class:"v-list-item__spacer"},null)]),y("div",{class:"v-list-item__content","data-no-activator":""},[k&&y(pt,{key:"title"},{default:()=>{var I;return[((I=a.title)==null?void 0:I.call(a,{title:e.title}))??e.title]}}),A&&y(St,{key:"subtitle"},{default:()=>{var I;return[((I=a.subtitle)==null?void 0:I.call(a,{subtitle:e.subtitle}))??e.subtitle]}}),(se=a.default)==null?void 0:se.call(a,N.value)]),B&&y("div",{key:"append",class:"v-list-item__append"},[a.append?y(me,{key:"append-defaults",disabled:!q,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon},VListItemAction:{end:!0}}},{default:()=>{var I;return[(I=a.append)==null?void 0:I.call(a,N.value)]}}):y(W,null,[e.appendIcon&&y(fe,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&y(Se,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)]),y("div",{class:"v-list-item__spacer"},null)])]}}),[[Xe("ripple"),M.value&&e.ripple]])}),{isGroupActivator:w,isSelected:h,list:d,select:g}}}),bt=D({renderless:Boolean,...$()},"VVirtualScrollItem"),kt=Z()({name:"VVirtualScrollItem",inheritAttrs:!1,props:bt(),emits:{"update:height":e=>!0},setup(e,s){let{attrs:l,emit:a,slots:n}=s;const{resizeRef:t,contentRect:r}=ke(void 0,"border");H(()=>{var u;return(u=r.value)==null?void 0:u.height},u=>{u!=null&&a("update:height",u)}),J(()=>{var u,m;return e.renderless?y(W,null,[(u=n.default)==null?void 0:u.call(n,{itemRef:t})]):y("div",Qe({ref:t,class:["v-virtual-scroll__item",e.class],style:e.style},l),[(m=n.default)==null?void 0:m.call(n)])})}}),Vt=-1,At=1,ue=100,It=D({itemHeight:{type:[Number,String],default:null},height:[Number,String]},"virtual");function Pt(e,s){const l=Ze(),a=C(0);he(()=>{a.value=parseFloat(e.itemHeight||0)});const n=C(0),t=C(Math.ceil((parseInt(e.height)||l.height.value)/(a.value||16))||1),r=C(0),u=C(0),m=V(),g=V();let h=0;const{resizeRef:p,contentRect:w}=ke();he(()=>{p.value=m.value});const i=S(()=>{var f;return m.value===document.documentElement?l.height.value:((f=w.value)==null?void 0:f.height)||parseInt(e.height)||0}),c=S(()=>!!(m.value&&g.value&&i.value&&a.value));let v=Array.from({length:s.value.length}),d=Array.from({length:s.value.length});const b=C(0);let O=-1;function M(f){return v[f]||a.value}const E=et(()=>{const f=performance.now();d[0]=0;const o=s.value.length;for(let k=1;k<=o-1;k++)d[k]=(d[k-1]||0)+M(k-1);b.value=Math.max(b.value,performance.now()-f)},b),ee=H(c,f=>{f&&(ee(),h=g.value.offsetTop,E.immediate(),R(),~O&&tt(()=>{at&&window.requestAnimationFrame(()=>{N(O),O=-1})}))});Pe(()=>{E.clear()});function te(f,o){const k=v[f],A=a.value;a.value=A?Math.min(a.value,o):o,(k!==o||A!==a.value)&&(v[f]=o,E())}function T(f){return f=ie(f,0,s.value.length-1),d[f]||0}function z(f){return Ot(d,f)}let _=0,L=0,x=0;H(i,(f,o)=>{o&&(R(),f{L=0,R()}))});function ae(){if(!m.value||!g.value)return;const f=m.value.scrollTop,o=performance.now();o-x>500?(L=Math.sign(f-_),h=g.value.offsetTop):L=f-_,_=f,x=o,R()}function ne(){!m.value||!g.value||(L=0,x=0,R())}let G=-1;function R(){cancelAnimationFrame(G),G=requestAnimationFrame(le)}function le(){if(!m.value||!i.value)return;const f=_-h,o=Math.sign(L),k=Math.max(0,f-ue),A=ie(z(k),0,s.value.length),q=f+i.value+ue,B=ie(z(q)+1,A+1,s.value.length);if((o!==Vt||At.value)){const Y=T(n.value)-T(A),F=T(B)-T(t.value);Math.max(Y,F)>ue?(n.value=A,t.value=B):(A<=0&&(n.value=A),B>=s.value.length&&(t.value=B))}r.value=T(n.value),u.value=T(s.value.length)-T(t.value)}function N(f){const o=T(f);!m.value||f&&!o?O=f:m.value.scrollTop=o}const U=S(()=>s.value.slice(n.value,t.value).map((f,o)=>({raw:f,index:o+n.value})));return H(s,()=>{v=Array.from({length:s.value.length}),d=Array.from({length:s.value.length}),E.immediate(),R()},{deep:!0}),{containerRef:m,markerRef:g,computedItems:U,paddingTop:r,paddingBottom:u,scrollToIndex:N,handleScroll:ae,handleScrollend:ne,handleItemResize:te}}function Ot(e,s){let l=e.length-1,a=0,n=0,t=null,r=-1;if(e[l]>1,t=e[n],t>s)l=n-1;else if(t[]},renderless:Boolean,...It(),...$(),...pe()},"VVirtualScroll"),Ft=Z()({name:"VVirtualScroll",props:Tt(),setup(e,s){let{slots:l}=s;const a=Ie("VVirtualScroll"),{dimensionStyles:n}=we(e),{containerRef:t,markerRef:r,handleScroll:u,handleScrollend:m,handleItemResize:g,scrollToIndex:h,paddingTop:p,paddingBottom:w,computedItems:i}=Pt(e,ce(e,"items"));return nt(()=>e.renderless,()=>{function c(){var b,O;const d=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?"addEventListener":"removeEventListener";t.value===document.documentElement?(document[d]("scroll",u,{passive:!0}),document[d]("scrollend",m)):((b=t.value)==null||b[d]("scroll",u,{passive:!0}),(O=t.value)==null||O[d]("scrollend",m))}lt(()=>{t.value=rt(a.vnode.el,!0),c(!0)}),Pe(c)}),J(()=>{const c=i.value.map(v=>y(kt,{key:v.index,renderless:e.renderless,"onUpdate:height":d=>g(v.index,d)},{default:d=>{var b;return(b=l.default)==null?void 0:b.call(l,{item:v.raw,index:v.index,...d})}}));return e.renderless?y(W,null,[y("div",{ref:r,class:"v-virtual-scroll__spacer",style:{paddingTop:K(p.value)}},null),c,y("div",{class:"v-virtual-scroll__spacer",style:{paddingBottom:K(w.value)}},null)]):y("div",{ref:t,class:["v-virtual-scroll",e.class],onScrollPassive:u,onScrollend:m,style:[n.value,e.style]},[y("div",{ref:r,class:"v-virtual-scroll__container",style:{paddingTop:K(p.value),paddingBottom:K(w.value)}},[c])])}),{scrollToIndex:h}}});export{xt as V,Ft as a,pt as b,St as c,yt as d,ut as e,Et as f,Nt as g,Bt as h,Oe as i,rt as j,_t as m,Dt as u};