import{dM as rt,bO as H,cc as se,bR as ot,dN as qt,bS as Z,q as w,b$ as te,I as r,bJ as $e,bz as ut,dc as Wt,du as Kt,cS as J,dO as ce,dP as it,cw as st,cy as Ee,cC as Me,dn as ct,cE as Xt,d5 as dt,dp as Yt,aS as W,de as ft,bd as q,bW as Qt,bC as le,dQ as Zt,dd as ee,d3 as Jt,d4 as ea,dt as vt,dR as ta,c7 as mt,F as Q,ar as N,dl as aa,dS as la,bU as ne,dq as na,aY as ra,o as oa,c9 as gt,as as fe,dT as ua,dU as Ne,dC as be,b5 as re,bD as Be,aF as ht,dV as de,dW as ia,b_ as Ae,cU as sa,dX as He,cY as ca,cF as da,aC as fa,dY as va,dZ as ma,bQ as ga,d_ as ha,bT as ve,bV as ba,c0 as ya,c1 as xa,c2 as qe,c3 as _e,c4 as Sa,c5 as Ve,c6 as pa,H as Re,bX as we,ca as We,ck as Ke,az as Pa,dx as ka,cT as bt,cV as wa,d$ as Va,cW as yt,cx as Ia,df as Le,e0 as Se,cj as ie,e1 as Xe,aM as me,af as ge,e2 as Ca,n as _a,e3 as Ta,e4 as xt,e5 as Ie,e6 as pe,dz as ze,bM as Ye,b9 as Da,cX as Fa,e7 as Pe,bP as Ba,be as Aa,bZ as Ra,co as La}from"./index-UvaAT40e.js";import{d as Oa,b as St,e as $a,a as Ea,V as Qe,u as Ma}from"./VInput-tBjZAjEz.js";import{V as pt}from"./VChip-DWC_1h7b.js";function Ze(e,n,t){return Object.keys(e).filter(a=>rt(a)&&a.endsWith(n)).reduce((a,l)=>(a[l.slice(0,-n.length)]=u=>e[l](u,t(u)),a),{})}const Na=H({active:Boolean,disabled:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...se(),...ot({transition:{component:qt}})},"VCounter"),Ha=Z()({name:"VCounter",functional:!0,props:Na(),setup(e,n){let{slots:t}=n;const a=w(()=>e.max?`${e.value} / ${e.max}`:String(e.value));return te(()=>r(Wt,{transition:e.transition},{default:()=>[$e(r("div",{class:["v-counter",{"text-error":e.max&&!e.disabled&&parseFloat(e.value)>parseFloat(e.max)},e.class],style:e.style},[t.default?t.default({counter:a.value,max:e.max,value:e.value}):a.value]),[[ut,e.active]])]})),{}}}),za=H({floating:Boolean,...se()},"VFieldLabel"),ke=Z()({name:"VFieldLabel",props:za(),setup(e,n){let{slots:t}=n;return te(()=>r(Kt,{class:["v-field-label",{"v-field-label--floating":e.floating},e.class],style:e.style,"aria-hidden":e.floating||void 0},t)),{}}}),Ua=["underlined","outlined","filled","solo","solo-inverted","solo-filled","plain"],Pt=H({appendInnerIcon:J,bgColor:String,clearable:Boolean,clearIcon:{type:J,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:J,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:e=>Ua.includes(e)},"onClick:clear":ce(),"onClick:appendInner":ce(),"onClick:prependInner":ce(),...se(),...it(),...st(),...Ee()},"VField"),kt=Z()({name:"VField",inheritAttrs:!1,props:{id:String,...Oa(),...Pt()},emits:{"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,n){let{attrs:t,emit:a,slots:l}=n;const{themeClasses:u}=Me(e),{loaderClasses:i}=ct(e),{focusClasses:o,isFocused:s,focus:f,blur:b}=St(e),{InputIcon:S}=$a(e),{roundedClasses:d}=Xt(e),{rtlClasses:P}=dt(),y=w(()=>e.dirty||e.active),p=w(()=>!e.singleLine&&!!(e.label||l.label)),m=Yt(),h=w(()=>e.id||`input-${m}`),g=w(()=>`${h.value}-messages`),B=W(),A=W(),C=W(),D=w(()=>["plain","underlined"].includes(e.variant)),{backgroundColorClasses:F,backgroundColorStyles:x}=ft(q(e,"bgColor")),{textColorClasses:v,textColorStyles:I}=Qt(w(()=>e.error||e.disabled?void 0:y.value&&s.value?e.color:e.baseColor));le(y,O=>{if(p.value){const $=B.value.$el,z=A.value.$el;requestAnimationFrame(()=>{const U=Zt($),K=z.getBoundingClientRect(),c=K.x-U.x,k=K.y-U.y-(U.height/2-K.height/2),_=K.width/.75,E=Math.abs(_-U.width)>1?{maxWidth:ee(_)}:void 0,X=getComputedStyle($),T=getComputedStyle(z),G=parseFloat(X.transitionDuration)*1e3||150,M=parseFloat(T.getPropertyValue("--v-field-label-scale")),j=T.getPropertyValue("color");$.style.visibility="visible",z.style.visibility="hidden",Jt($,{transform:`translate(${c}px, ${k}px) scale(${M})`,color:j,...E},{duration:G,easing:ea,direction:O?"normal":"reverse"}).finished.then(()=>{$.style.removeProperty("visibility"),z.style.removeProperty("visibility")})})}},{flush:"post"});const V=w(()=>({isActive:y,isFocused:s,controlRef:C,blur:b,focus:f}));function R(O){O.target!==document.activeElement&&O.preventDefault()}function L(O){var $;O.key!=="Enter"&&O.key!==" "||(O.preventDefault(),O.stopPropagation(),($=e["onClick:clear"])==null||$.call(e,new MouseEvent("click")))}return te(()=>{var c,k,_;const O=e.variant==="outlined",$=!!(l["prepend-inner"]||e.prependInnerIcon),z=!!(e.clearable||l.clear),U=!!(l["append-inner"]||e.appendInnerIcon||z),K=()=>l.label?l.label({...V.value,label:e.label,props:{for:h.value}}):e.label;return r("div",N({class:["v-field",{"v-field--active":y.value,"v-field--appended":U,"v-field--center-affix":e.centerAffix??!D.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":$,"v-field--reverse":e.reverse,"v-field--single-line":e.singleLine,"v-field--no-label":!K(),[`v-field--variant-${e.variant}`]:!0},u.value,F.value,o.value,i.value,d.value,P.value,e.class],style:[x.value,e.style],onClick:R},t),[r("div",{class:"v-field__overlay"},null),r(vt,{name:"v-field",active:!!e.loading,color:e.error?"error":typeof e.loading=="string"?e.loading:e.color},{default:l.loader}),$&&r("div",{key:"prepend",class:"v-field__prepend-inner"},[e.prependInnerIcon&&r(S,{key:"prepend-icon",name:"prependInner"},null),(c=l["prepend-inner"])==null?void 0:c.call(l,V.value)]),r("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(e.variant)&&p.value&&r(ke,{key:"floating-label",ref:A,class:[v.value],floating:!0,for:h.value,style:I.value},{default:()=>[K()]}),r(ke,{ref:B,for:h.value},{default:()=>[K()]}),(k=l.default)==null?void 0:k.call(l,{...V.value,props:{id:h.value,class:"v-field__input","aria-describedby":g.value},focus:f,blur:b})]),z&&r(ta,{key:"clear"},{default:()=>[$e(r("div",{class:"v-field__clearable",onMousedown:E=>{E.preventDefault(),E.stopPropagation()}},[r(mt,{defaults:{VIcon:{icon:e.clearIcon}}},{default:()=>[l.clear?l.clear({...V.value,props:{onKeydown:L,onFocus:f,onBlur:b,onClick:e["onClick:clear"]}}):r(S,{name:"clear",onKeydown:L,onFocus:f,onBlur:b},null)]})]),[[ut,e.dirty]])]}),U&&r("div",{key:"append",class:"v-field__append-inner"},[(_=l["append-inner"])==null?void 0:_.call(l,V.value),e.appendInnerIcon&&r(S,{key:"append-icon",name:"appendInner"},null)]),r("div",{class:["v-field__outline",v.value],style:I.value},[O&&r(Q,null,[r("div",{class:"v-field__outline__start"},null),p.value&&r("div",{class:"v-field__outline__notch"},[r(ke,{ref:A,floating:!0,for:h.value},{default:()=>[K()]})]),r("div",{class:"v-field__outline__end"},null)]),D.value&&p.value&&r(ke,{ref:A,floating:!0,for:h.value},{default:()=>[K()]})])])}),{controlRef:C}}});function Ga(e){const n=Object.keys(kt.props).filter(t=>!rt(t)&&t!=="class"&&t!=="style");return aa(e,n)}const ja=["color","file","time","date","datetime-local","week","month"],wt=H({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,...Ea(),...Pt()},"VTextField"),Je=Z()({name:"VTextField",directives:{Intersect:la},inheritAttrs:!1,props:wt(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,n){let{attrs:t,emit:a,slots:l}=n;const u=ne(e,"modelValue"),{isFocused:i,focus:o,blur:s}=St(e),f=w(()=>typeof e.counterValue=="function"?e.counterValue(u.value):typeof e.counterValue=="number"?e.counterValue:(u.value??"").toString().length),b=w(()=>{if(t.maxlength)return t.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter}),S=w(()=>["plain","underlined"].includes(e.variant));function d(D,F){var x,v;!e.autofocus||!D||(v=(x=F[0].target)==null?void 0:x.focus)==null||v.call(x)}const P=W(),y=W(),p=W(),m=w(()=>ja.includes(e.type)||e.persistentPlaceholder||i.value||e.active);function h(){var D;p.value!==document.activeElement&&((D=p.value)==null||D.focus()),i.value||o()}function g(D){a("mousedown:control",D),D.target!==p.value&&(h(),D.preventDefault())}function B(D){h(),a("click:control",D)}function A(D){D.stopPropagation(),h(),fe(()=>{u.value=null,ua(e["onClick:clear"],D)})}function C(D){var x;const F=D.target;if(u.value=F.value,(x=e.modelModifiers)!=null&&x.trim&&["text","search","password","tel","url"].includes(e.type)){const v=[F.selectionStart,F.selectionEnd];fe(()=>{F.selectionStart=v[0],F.selectionEnd=v[1]})}}return te(()=>{const D=!!(l.counter||e.counter!==!1&&e.counter!=null),F=!!(D||l.details),[x,v]=na(t),{modelValue:I,...V}=Qe.filterProps(e),R=Ga(e);return r(Qe,N({ref:P,modelValue:u.value,"onUpdate:modelValue":L=>u.value=L,class:["v-text-field",{"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-input--plain-underlined":S.value},e.class],style:e.style},x,V,{centerAffix:!S.value,focused:i.value}),{...l,default:L=>{let{id:O,isDisabled:$,isDirty:z,isReadonly:U,isValid:K}=L;return r(kt,N({ref:y,onMousedown:g,onClick:B,"onClick:clear":A,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"],role:e.role},R,{id:O.value,active:m.value||z.value,dirty:z.value||e.dirty,disabled:$.value,focused:i.value,error:K.value===!1}),{...l,default:c=>{let{props:{class:k,..._}}=c;const E=$e(r("input",N({ref:p,value:u.value,onInput:C,autofocus:e.autofocus,readonly:U.value,disabled:$.value,name:e.name,placeholder:e.placeholder,size:1,type:e.type,onFocus:h,onBlur:s},_,v),null),[[ra("intersect"),{handler:d},null,{once:!0}]]);return r(Q,null,[e.prefix&&r("span",{class:"v-text-field__prefix"},[r("span",{class:"v-text-field__prefix__text"},[e.prefix])]),l.default?r("div",{class:k,"data-no-activator":""},[l.default(),E]):oa(E,{class:k}),e.suffix&&r("span",{class:"v-text-field__suffix"},[r("span",{class:"v-text-field__suffix__text"},[e.suffix])])])}})},details:F?L=>{var O;return r(Q,null,[(O=l.details)==null?void 0:O.call(l,L),D&&r(Q,null,[r("span",null,null),r(Ha,{active:e.persistentCounter||i.value,value:f.value,max:b.value,disabled:e.disabled},l.counter)])])}:void 0})}),gt({},P,y,p)}}),qa=H({renderless:Boolean,...se()},"VVirtualScrollItem"),Wa=Z()({name:"VVirtualScrollItem",inheritAttrs:!1,props:qa(),emits:{"update:height":e=>!0},setup(e,n){let{attrs:t,emit:a,slots:l}=n;const{resizeRef:u,contentRect:i}=Ne(void 0,"border");le(()=>{var o;return(o=i.value)==null?void 0:o.height},o=>{o!=null&&a("update:height",o)}),te(()=>{var o,s;return e.renderless?r(Q,null,[(o=l.default)==null?void 0:o.call(l,{itemRef:u})]):r("div",N({ref:u,class:["v-virtual-scroll__item",e.class],style:e.style},t),[(s=l.default)==null?void 0:s.call(l)])})}}),Ka=-1,Xa=1,Fe=100,Ya=H({itemHeight:{type:[Number,String],default:null},height:[Number,String]},"virtual");function Qa(e,n){const t=be(),a=re(0);Be(()=>{a.value=parseFloat(e.itemHeight||0)});const l=re(0),u=re(Math.ceil((parseInt(e.height)||t.height.value)/(a.value||16))||1),i=re(0),o=re(0),s=W(),f=W();let b=0;const{resizeRef:S,contentRect:d}=Ne();Be(()=>{S.value=s.value});const P=w(()=>{var c;return s.value===document.documentElement?t.height.value:((c=d.value)==null?void 0:c.height)||parseInt(e.height)||0}),y=w(()=>!!(s.value&&f.value&&P.value&&a.value));let p=Array.from({length:n.value.length}),m=Array.from({length:n.value.length});const h=re(0);let g=-1;function B(c){return p[c]||a.value}const A=ia(()=>{const c=performance.now();m[0]=0;const k=n.value.length;for(let _=1;_<=k-1;_++)m[_]=(m[_-1]||0)+B(_-1);h.value=Math.max(h.value,performance.now()-c)},h),C=le(y,c=>{c&&(C(),b=f.value.offsetTop,A.immediate(),$(),~g&&fe(()=>{Ae&&window.requestAnimationFrame(()=>{U(g),g=-1})}))});ht(()=>{A.clear()});function D(c,k){const _=p[c],E=a.value;a.value=E?Math.min(a.value,k):k,(_!==k||E!==a.value)&&(p[c]=k,A())}function F(c){return c=de(c,0,n.value.length-1),m[c]||0}function x(c){return Za(m,c)}let v=0,I=0,V=0;le(P,(c,k)=>{k&&($(),c<k&&requestAnimationFrame(()=>{I=0,$()}))});function R(){if(!s.value||!f.value)return;const c=s.value.scrollTop,k=performance.now();k-V>500?(I=Math.sign(c-v),b=f.value.offsetTop):I=c-v,v=c,V=k,$()}function L(){!s.value||!f.value||(I=0,V=0,$())}let O=-1;function $(){cancelAnimationFrame(O),O=requestAnimationFrame(z)}function z(){if(!s.value||!P.value)return;const c=v-b,k=Math.sign(I),_=Math.max(0,c-Fe),E=de(x(_),0,n.value.length),X=c+P.value+Fe,T=de(x(X)+1,E+1,n.value.length);if((k!==Ka||E<l.value)&&(k!==Xa||T>u.value)){const G=F(l.value)-F(E),M=F(T)-F(u.value);Math.max(G,M)>Fe?(l.value=E,u.value=T):(E<=0&&(l.value=E),T>=n.value.length&&(u.value=T))}i.value=F(l.value),o.value=F(n.value.length)-F(u.value)}function U(c){const k=F(c);!s.value||c&&!k?g=c:s.value.scrollTop=k}const K=w(()=>n.value.slice(l.value,u.value).map((c,k)=>({raw:c,index:k+l.value})));return le(n,()=>{p=Array.from({length:n.value.length}),m=Array.from({length:n.value.length}),A.immediate(),$()},{deep:!0}),{calculateVisibleItems:$,containerRef:s,markerRef:f,computedItems:K,paddingTop:i,paddingBottom:o,scrollToIndex:U,handleScroll:R,handleScrollend:L,handleItemResize:D}}function Za(e,n){let t=e.length-1,a=0,l=0,u=null,i=-1;if(e[t]<n)return t;for(;a<=t;)if(l=a+t>>1,u=e[l],u>n)t=l-1;else if(u<n)i=l,a=l+1;else return u===n?l:a;return i}const Ja=H({items:{type:Array,default:()=>[]},renderless:Boolean,...Ya(),...se(),...sa()},"VVirtualScroll"),el=Z()({name:"VVirtualScroll",props:Ja(),setup(e,n){let{slots:t}=n;const a=He("VVirtualScroll"),{dimensionStyles:l}=ca(e),{calculateVisibleItems:u,containerRef:i,markerRef:o,handleScroll:s,handleScrollend:f,handleItemResize:b,scrollToIndex:S,paddingTop:d,paddingBottom:P,computedItems:y}=Qa(e,q(e,"items"));return da(()=>e.renderless,()=>{function p(){var g,B;const h=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?"addEventListener":"removeEventListener";i.value===document.documentElement?(document[h]("scroll",s,{passive:!0}),document[h]("scrollend",f)):((g=i.value)==null||g[h]("scroll",s,{passive:!0}),(B=i.value)==null||B[h]("scrollend",f))}fa(()=>{i.value=va(a.vnode.el,!0),p(!0)}),ht(p)}),te(()=>{const p=y.value.map(m=>r(Wa,{key:m.index,renderless:e.renderless,"onUpdate:height":h=>b(m.index,h)},{default:h=>{var g;return(g=t.default)==null?void 0:g.call(t,{item:m.raw,index:m.index,...h})}}));return e.renderless?r(Q,null,[r("div",{ref:o,class:"v-virtual-scroll__spacer",style:{paddingTop:ee(d.value)}},null),p,r("div",{class:"v-virtual-scroll__spacer",style:{paddingBottom:ee(P.value)}},null)]):r("div",{ref:i,class:["v-virtual-scroll",e.class],onScrollPassive:s,onScrollend:f,style:[l.value,e.style]},[r("div",{ref:o,class:"v-virtual-scroll__container",style:{paddingTop:ee(d.value),paddingBottom:ee(P.value)}},[p])])}),{calculateVisibleItems:u,scrollToIndex:S}}});function tl(e,n){const t=re(!1);let a;function l(o){cancelAnimationFrame(a),t.value=!0,a=requestAnimationFrame(()=>{a=requestAnimationFrame(()=>{t.value=!1})})}async function u(){await new Promise(o=>requestAnimationFrame(o)),await new Promise(o=>requestAnimationFrame(o)),await new Promise(o=>requestAnimationFrame(o)),await new Promise(o=>{if(t.value){const s=le(t,()=>{s(),o()})}else o()})}async function i(o){var b,S;if(o.key==="Tab"&&((b=n.value)==null||b.focus()),!["PageDown","PageUp","Home","End"].includes(o.key))return;const s=(S=e.value)==null?void 0:S.$el;if(!s)return;(o.key==="Home"||o.key==="End")&&s.scrollTo({top:o.key==="Home"?0:s.scrollHeight,behavior:"smooth"}),await u();const f=s.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");if(o.key==="PageDown"||o.key==="Home"){const d=s.getBoundingClientRect().top;for(const P of f)if(P.getBoundingClientRect().top>=d){P.focus();break}}else{const d=s.getBoundingClientRect().bottom;for(const P of[...f].reverse())if(P.getBoundingClientRect().bottom<=d){P.focus();break}}}return{onScrollPassive:l,onKeydown:i}}const al=H({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:J,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,itemColor:String,...ma({itemChildren:!1})},"Select"),ll=H({...al(),...ga(wt({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...ot({transition:{component:ha}})},"VSelect"),Vt=Z()({name:"VSelect",props:ll(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:menu":e=>!0},setup(e,n){let{slots:t}=n;const{t:a}=ve(),l=W(),u=W(),i=W(),o=ne(e,"menu"),s=w({get:()=>o.value,set:c=>{var k;o.value&&!c&&((k=u.value)!=null&&k.ΨopenChildren.size)||(o.value=c)}}),{items:f,transformIn:b,transformOut:S}=ba(e),d=ne(e,"modelValue",[],c=>b(c===null?[null]:we(c)),c=>{const k=S(c);return e.multiple?k:k[0]??null}),P=w(()=>typeof e.counterValue=="function"?e.counterValue(d.value):typeof e.counterValue=="number"?e.counterValue:d.value.length),y=Ma(),p=w(()=>d.value.map(c=>c.value)),m=re(!1),h=w(()=>s.value?e.closeText:e.openText);let g="",B;const A=w(()=>e.hideSelected?f.value.filter(c=>!d.value.some(k=>e.valueComparator(k,c))):f.value),C=w(()=>e.hideNoData&&!A.value.length||e.readonly||(y==null?void 0:y.isReadonly.value)),D=w(()=>{var c;return{...e.menuProps,activatorProps:{...((c=e.menuProps)==null?void 0:c.activatorProps)||{},"aria-haspopup":"listbox"}}}),F=W(),x=tl(F,l);function v(c){e.openOnClear&&(s.value=!0)}function I(){C.value||(s.value=!s.value)}function V(c){We(c)&&R(c)}function R(c){var X,T;if(!c.key||e.readonly||y!=null&&y.isReadonly.value)return;["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes(c.key)&&c.preventDefault(),["Enter","ArrowDown"," "].includes(c.key)&&(s.value=!0),["Escape","Tab"].includes(c.key)&&(s.value=!1),c.key==="Home"?(X=F.value)==null||X.focus("first"):c.key==="End"&&((T=F.value)==null||T.focus("last"));const k=1e3;if(e.multiple||!We(c))return;const _=performance.now();_-B>k&&(g=""),g+=c.key.toLowerCase(),B=_;const E=f.value.find(G=>G.title.toLowerCase().startsWith(g));if(E!==void 0){d.value=[E];const G=A.value.indexOf(E);Ae&&window.requestAnimationFrame(()=>{var M;G>=0&&((M=i.value)==null||M.scrollToIndex(G))})}}function L(c){let k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!c.props.disabled)if(e.multiple){const _=d.value.findIndex(X=>e.valueComparator(X.value,c.value)),E=k??!~_;if(~_){const X=E?[...d.value,c]:[...d.value];X.splice(_,1),d.value=X}else E&&(d.value=[...d.value,c])}else{const _=k!==!1;d.value=_?[c]:[],fe(()=>{s.value=!1})}}function O(c){var k;(k=F.value)!=null&&k.$el.contains(c.relatedTarget)||(s.value=!1)}function $(){var c;e.eager&&((c=i.value)==null||c.calculateVisibleItems())}function z(){var c;m.value&&((c=l.value)==null||c.focus())}function U(c){m.value=!0}function K(c){if(c==null)d.value=[];else if(Ke(l.value,":autofill")||Ke(l.value,":-webkit-autofill")){const k=f.value.find(_=>_.title===c);k&&L(k)}else l.value&&(l.value.value="")}return le(s,()=>{if(!e.hideSelected&&s.value&&d.value.length){const c=A.value.findIndex(k=>d.value.some(_=>e.valueComparator(_.value,k.value)));Ae&&window.requestAnimationFrame(()=>{var k;c>=0&&((k=i.value)==null||k.scrollToIndex(c))})}}),le(()=>e.items,(c,k)=>{s.value||m.value&&!k.length&&c.length&&(s.value=!0)}),te(()=>{const c=!!(e.chips||t.chip),k=!!(!e.hideNoData||A.value.length||t["prepend-item"]||t["append-item"]||t["no-data"]),_=d.value.length>0,E=Je.filterProps(e),X=_||!m.value&&e.label&&!e.persistentPlaceholder?void 0:e.placeholder;return r(Je,N({ref:l},E,{modelValue:d.value.map(T=>T.props.value).join(", "),"onUpdate:modelValue":K,focused:m.value,"onUpdate:focused":T=>m.value=T,validationValue:d.externalValue,counterValue:P.value,dirty:_,class:["v-select",{"v-select--active-menu":s.value,"v-select--chips":!!e.chips,[`v-select--${e.multiple?"multiple":"single"}`]:!0,"v-select--selected":d.value.length,"v-select--selection-slot":!!t.selection},e.class],style:e.style,inputmode:"none",placeholder:X,"onClick:clear":v,"onMousedown:control":I,onBlur:O,onKeydown:R,"aria-label":a(h.value),title:a(h.value)}),{...t,default:()=>r(Q,null,[r(ya,N({ref:u,modelValue:s.value,"onUpdate:modelValue":T=>s.value=T,activator:"parent",contentClass:"v-select__content",disabled:C.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterEnter:$,onAfterLeave:z},D.value),{default:()=>[k&&r(xa,N({ref:F,selected:p.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:T=>T.preventDefault(),onKeydown:V,onFocusin:U,tabindex:"-1","aria-live":"polite",color:e.itemColor??e.color},x,e.listProps),{default:()=>{var T,G,M;return[(T=t["prepend-item"])==null?void 0:T.call(t),!A.value.length&&!e.hideNoData&&(((G=t["no-data"])==null?void 0:G.call(t))??r(qe,{title:a(e.noDataText)},null)),r(el,{ref:i,renderless:!0,items:A.value},{default:j=>{var he;let{item:ae,index:oe,itemRef:Y}=j;const ue=N(ae.props,{ref:Y,key:oe,onClick:()=>L(ae,null)});return((he=t.item)==null?void 0:he.call(t,{item:ae,index:oe,props:ue}))??r(qe,N(ue,{role:"option"}),{prepend:ye=>{let{isSelected:xe}=ye;return r(Q,null,[e.multiple&&!e.hideSelected?r(_e,{key:ae.value,modelValue:xe,ripple:!1,tabindex:"-1"},null):void 0,ae.props.prependAvatar&&r(Sa,{image:ae.props.prependAvatar},null),ae.props.prependIcon&&r(Ve,{icon:ae.props.prependIcon},null)])}})}}),(M=t["append-item"])==null?void 0:M.call(t)]}})]}),d.value.map((T,G)=>{function M(Y){Y.stopPropagation(),Y.preventDefault(),L(T,!1)}const j={"onClick:close":M,onKeydown(Y){Y.key!=="Enter"&&Y.key!==" "||(Y.preventDefault(),Y.stopPropagation(),M(Y))},onMousedown(Y){Y.preventDefault(),Y.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},ae=c?!!t.chip:!!t.selection,oe=ae?pa(c?t.chip({item:T,index:G,props:j}):t.selection({item:T,index:G})):void 0;if(!(ae&&!oe))return r("div",{key:T.value,class:"v-select__selection"},[c?t.chip?r(mt,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:T.title}}},{default:()=>[oe]}):r(pt,N({key:"chip",closable:e.closableChips,size:"small",text:T.title,disabled:T.props.disabled},j),null):oe??r("span",{class:"v-select__selection-text"},[T.title,e.multiple&&G<d.value.length-1&&r("span",{class:"v-select__selection-comma"},[Re(",")])])])})]),"append-inner":function(){var j;for(var T=arguments.length,G=new Array(T),M=0;M<T;M++)G[M]=arguments[M];return r(Q,null,[(j=t["append-inner"])==null?void 0:j.call(t,...G),e.menuIcon?r(Ve,{class:"v-select__menu-icon",icon:e.menuIcon},null):void 0])}})}),gt({isFocused:m,menu:s,select:L},l)}});function nl(){const e=W([]);Pa(()=>e.value=[]);function n(t,a){e.value[a]=t}return{refs:e,updateRef:n}}const rl=H({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:J,default:"$first"},prevIcon:{type:J,default:"$prev"},nextIcon:{type:J,default:"$next"},lastIcon:{type:J,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,...ka(),...se(),...bt(),...wa(),...st(),...Va(),...yt({tag:"nav"}),...Ee(),...Ia({variant:"text"})},"VPagination"),et=Z()({name:"VPagination",props:rl(),emits:{"update:modelValue":e=>!0,first:e=>!0,prev:e=>!0,next:e=>!0,last:e=>!0},setup(e,n){let{slots:t,emit:a}=n;const l=ne(e,"modelValue"),{t:u,n:i}=ve(),{isRtl:o}=dt(),{themeClasses:s}=Me(e),{width:f}=be(),b=re(-1);Le(void 0,{scoped:!0});const{resizeRef:S}=Ne(x=>{if(!x.length)return;const{target:v,contentRect:I}=x[0],V=v.querySelector(".v-pagination__list > *");if(!V)return;const R=I.width,L=V.offsetWidth+parseFloat(getComputedStyle(V).marginRight)*2;b.value=p(R,L)}),d=w(()=>parseInt(e.length,10)),P=w(()=>parseInt(e.start,10)),y=w(()=>e.totalVisible!=null?parseInt(e.totalVisible,10):b.value>=0?b.value:p(f.value,58));function p(x,v){const I=e.showFirstLastPage?5:3;return Math.max(0,Math.floor(+((x-v*I)/v).toFixed(2)))}const m=w(()=>{if(d.value<=0||isNaN(d.value)||d.value>Number.MAX_SAFE_INTEGER)return[];if(y.value<=0)return[];if(y.value===1)return[l.value];if(d.value<=y.value)return Se(d.value,P.value);const x=y.value%2===0,v=x?y.value/2:Math.floor(y.value/2),I=x?v:v+1,V=d.value-v;if(I-l.value>=0)return[...Se(Math.max(1,y.value-1),P.value),e.ellipsis,d.value];if(l.value-V>=(x?1:0)){const R=y.value-1,L=d.value-R+P.value;return[P.value,e.ellipsis,...Se(R,L)]}else{const R=Math.max(1,y.value-3),L=R===1?l.value:l.value-Math.ceil(R/2)+P.value;return[P.value,e.ellipsis,...Se(R,L),e.ellipsis,d.value]}});function h(x,v,I){x.preventDefault(),l.value=v,I&&a(I,v)}const{refs:g,updateRef:B}=nl();Le({VPaginationBtn:{color:q(e,"color"),border:q(e,"border"),density:q(e,"density"),size:q(e,"size"),variant:q(e,"variant"),rounded:q(e,"rounded"),elevation:q(e,"elevation")}});const A=w(()=>m.value.map((x,v)=>{const I=V=>B(V,v);if(typeof x=="string")return{isActive:!1,key:`ellipsis-${v}`,page:x,props:{ref:I,ellipsis:!0,icon:!0,disabled:!0}};{const V=x===l.value;return{isActive:V,key:x,page:i(x),props:{ref:I,ellipsis:!1,icon:!0,disabled:!!e.disabled||+e.length<2,color:V?e.activeColor:e.color,"aria-current":V,"aria-label":u(V?e.currentPageAriaLabel:e.pageAriaLabel,x),onClick:R=>h(R,x)}}}})),C=w(()=>{const x=!!e.disabled||l.value<=P.value,v=!!e.disabled||l.value>=P.value+d.value-1;return{first:e.showFirstLastPage?{icon:o.value?e.lastIcon:e.firstIcon,onClick:I=>h(I,P.value,"first"),disabled:x,"aria-label":u(e.firstAriaLabel),"aria-disabled":x}:void 0,prev:{icon:o.value?e.nextIcon:e.prevIcon,onClick:I=>h(I,l.value-1,"prev"),disabled:x,"aria-label":u(e.previousAriaLabel),"aria-disabled":x},next:{icon:o.value?e.prevIcon:e.nextIcon,onClick:I=>h(I,l.value+1,"next"),disabled:v,"aria-label":u(e.nextAriaLabel),"aria-disabled":v},last:e.showFirstLastPage?{icon:o.value?e.firstIcon:e.lastIcon,onClick:I=>h(I,P.value+d.value-1,"last"),disabled:v,"aria-label":u(e.lastAriaLabel),"aria-disabled":v}:void 0}});function D(){var v;const x=l.value-P.value;(v=g.value[x])==null||v.$el.focus()}function F(x){x.key===Xe.left&&!e.disabled&&l.value>+e.start?(l.value=l.value-1,fe(D)):x.key===Xe.right&&!e.disabled&&l.value<P.value+d.value-1&&(l.value=l.value+1,fe(D))}return te(()=>r(e.tag,{ref:S,class:["v-pagination",s.value,e.class],style:e.style,role:"navigation","aria-label":u(e.ariaLabel),onKeydown:F,"data-test":"v-pagination-root"},{default:()=>[r("ul",{class:"v-pagination__list"},[e.showFirstLastPage&&r("li",{key:"first",class:"v-pagination__first","data-test":"v-pagination-first"},[t.first?t.first(C.value.first):r(ie,N({_as:"VPaginationBtn"},C.value.first),null)]),r("li",{key:"prev",class:"v-pagination__prev","data-test":"v-pagination-prev"},[t.prev?t.prev(C.value.prev):r(ie,N({_as:"VPaginationBtn"},C.value.prev),null)]),A.value.map((x,v)=>r("li",{key:x.key,class:["v-pagination__item",{"v-pagination__item--is-active":x.isActive}],"data-test":"v-pagination-item"},[t.item?t.item(x):r(ie,N({_as:"VPaginationBtn"},x.props),{default:()=>[x.page]})])),r("li",{key:"next",class:"v-pagination__next","data-test":"v-pagination-next"},[t.next?t.next(C.value.next):r(ie,N({_as:"VPaginationBtn"},C.value.next),null)]),e.showFirstLastPage&&r("li",{key:"last",class:"v-pagination__last","data-test":"v-pagination-last"},[t.last?t.last(C.value.last):r(ie,N({_as:"VPaginationBtn"},C.value.last),null)])])]})),{}}}),ol=H({page:{type:[Number,String],default:1},itemsPerPage:{type:[Number,String],default:10}},"DataTable-paginate"),It=Symbol.for("vuetify:data-table-pagination");function ul(e){const n=ne(e,"page",void 0,a=>+(a??1)),t=ne(e,"itemsPerPage",void 0,a=>+(a??10));return{page:n,itemsPerPage:t}}function il(e){const{page:n,itemsPerPage:t,itemsLength:a}=e,l=w(()=>t.value===-1?0:t.value*(n.value-1)),u=w(()=>t.value===-1?a.value:Math.min(a.value,l.value+t.value)),i=w(()=>t.value===-1||a.value===0?1:Math.ceil(a.value/t.value));le([n,i],()=>{n.value>i.value&&(n.value=i.value)});function o(d){t.value=d,n.value=1}function s(){n.value=de(n.value+1,1,i.value)}function f(){n.value=de(n.value-1,1,i.value)}function b(d){n.value=de(d,1,i.value)}const S={page:n,itemsPerPage:t,startIndex:l,stopIndex:u,pageCount:i,itemsLength:a,nextPage:s,prevPage:f,setPage:b,setItemsPerPage:o};return me(It,S),S}function sl(){const e=ge(It);if(!e)throw new Error("Missing pagination!");return e}function cl(e){const n=He("usePaginatedItems"),{items:t,startIndex:a,stopIndex:l,itemsPerPage:u}=e,i=w(()=>u.value<=0?t.value:t.value.slice(a.value,l.value));return le(i,o=>{n.emit("update:currentItems",o)}),{paginatedItems:i}}const Ct=H({prevIcon:{type:J,default:"$prev"},nextIcon:{type:J,default:"$next"},firstIcon:{type:J,default:"$first"},lastIcon:{type:J,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"),tt=Z()({name:"VDataTableFooter",props:Ct(),setup(e,n){let{slots:t}=n;const{t:a}=ve(),{page:l,pageCount:u,startIndex:i,stopIndex:o,itemsLength:s,itemsPerPage:f,setItemsPerPage:b}=sl(),S=w(()=>e.itemsPerPageOptions.map(d=>typeof d=="number"?{value:d,title:d===-1?a("$vuetify.dataFooter.itemsPerPageAll"):String(d)}:{...d,title:isNaN(Number(d.title))?a(d.title):d.title}));return te(()=>{var P;const d=et.filterProps(e);return r("div",{class:"v-data-table-footer"},[(P=t.prepend)==null?void 0:P.call(t),r("div",{class:"v-data-table-footer__items-per-page"},[r("span",null,[a(e.itemsPerPageText)]),r(Vt,{items:S.value,modelValue:f.value,"onUpdate:modelValue":y=>b(Number(y)),density:"compact",variant:"outlined","hide-details":!0},null)]),r("div",{class:"v-data-table-footer__info"},[r("div",null,[a(e.pageText,s.value?i.value+1:0,o.value,s.value)])]),r("div",{class:"v-data-table-footer__pagination"},[r(et,N({modelValue:l.value,"onUpdate:modelValue":y=>l.value=y,density:"comfortable","first-aria-label":e.firstPageLabel,"last-aria-label":e.lastPageLabel,length:u.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"},d),null)])])}),{}}}),Ce=Ca({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,n)=>{let{slots:t}=n;const a=e.tag??"td";return r(a,{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:ee(e.height),width:ee(e.width),maxWidth:ee(e.maxWidth),left:ee(e.fixedOffset||null)}},{default:()=>{var l;return[(l=t.default)==null?void 0:l.call(t)]}})}),dl=H({headers:Array},"DataTable-header"),_t=Symbol.for("vuetify:data-table-headers"),Tt={title:"",sortable:!1},fl={...Tt,width:48};function vl(){const n=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).map(t=>({element:t,priority:0}));return{enqueue:(t,a)=>{let l=!1;for(let u=0;u<n.length;u++)if(n[u].priority>a){n.splice(u,0,{element:t,priority:a}),l=!0;break}l||n.push({element:t,priority:a})},size:()=>n.length,count:()=>{let t=0;if(!n.length)return 0;const a=Math.floor(n[0].priority);for(let l=0;l<n.length;l++)Math.floor(n[l].priority)===a&&(t+=1);return t},dequeue:()=>n.shift()}}function Oe(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(!e.children)n.push(e);else for(const t of e.children)Oe(t,n);return n}function Dt(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set;for(const t of e)t.key&&n.add(t.key),t.children&&Dt(t.children,n);return n}function ml(e){if(e.key){if(e.key==="data-table-group")return Tt;if(["data-table-expand","data-table-select"].includes(e.key))return fl}}function Ue(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.children?Math.max(n,...e.children.map(t=>Ue(t,n+1))):n}function gl(e){let n=!1;function t(u){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(u)if(i&&(u.fixed=!0),u.fixed)if(u.children)for(let o=u.children.length-1;o>=0;o--)t(u.children[o],!0);else n?isNaN(+u.width)&&Ta(`Multiple fixed columns should have a static width (key: ${u.key})`):u.lastFixed=!0,n=!0;else if(u.children)for(let o=u.children.length-1;o>=0;o--)t(u.children[o]);else n=!1}for(let u=e.length-1;u>=0;u--)t(e[u]);function a(u){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!u)return i;if(u.children){u.fixedOffset=i;for(const o of u.children)i=a(o,i)}else u.fixed&&(u.fixedOffset=i,i+=parseFloat(u.width||"0")||0);return i}let l=0;for(const u of e)l=a(u,l)}function hl(e,n){const t=[];let a=0;const l=vl(e);for(;l.size()>0;){let i=l.count();const o=[];let s=1;for(;i>0;){const{element:f,priority:b}=l.dequeue(),S=n-a-Ue(f);if(o.push({...f,rowspan:S??1,colspan:f.children?Oe(f).length:1}),f.children)for(const d of f.children){const P=b%1+s/Math.pow(10,a+2);l.enqueue(d,a+S+P)}s+=1,i-=1}a+=1,t.push(o)}return{columns:e.map(i=>Oe(i)).flat(),headers:t}}function Ft(e){const n=[];for(const t of e){const a={...ml(t),...t},l=a.key??(typeof a.value=="string"?a.value:null),u=a.value??l??null,i={...a,key:l,value:u,sortable:a.sortable??(a.key!=null||!!a.sort),children:a.children?Ft(a.children):void 0};n.push(i)}return n}function bl(e,n){const t=W([]),a=W([]),l=W({}),u=W({}),i=W({});Be(()=>{var p,m,h;const f=(e.headers||Object.keys(e.items[0]??{}).map(g=>({key:g,title:_a(g)}))).slice(),b=Dt(f);(p=n==null?void 0:n.groupBy)!=null&&p.value.length&&!b.has("data-table-group")&&f.unshift({key:"data-table-group",title:"Group"}),(m=n==null?void 0:n.showSelect)!=null&&m.value&&!b.has("data-table-select")&&f.unshift({key:"data-table-select"}),(h=n==null?void 0:n.showExpand)!=null&&h.value&&!b.has("data-table-expand")&&f.push({key:"data-table-expand"});const S=Ft(f);gl(S);const d=Math.max(...S.map(g=>Ue(g)))+1,P=hl(S,d);t.value=P.headers,a.value=P.columns;const y=P.headers.flat(1);for(const g of y)g.key&&(g.sortable&&(g.sort&&(l.value[g.key]=g.sort),g.sortRaw&&(u.value[g.key]=g.sortRaw)),g.filter&&(i.value[g.key]=g.filter))});const o={headers:t,columns:a,sortFunctions:l,sortRawFunctions:u,filterFunctions:i};return me(_t,o),o}function Te(){const e=ge(_t);if(!e)throw new Error("Missing headers!");return e}const yl={showSelectAll:!1,allSelected:()=>[],select:e=>{var a;let{items:n,value:t}=e;return new Set(t?[(a=n[0])==null?void 0:a.value]:[])},selectAll:e=>{let{selected:n}=e;return n}},Bt={showSelectAll:!0,allSelected:e=>{let{currentPage:n}=e;return n},select:e=>{let{items:n,value:t,selected:a}=e;for(const l of n)t?a.add(l.value):a.delete(l.value);return a},selectAll:e=>{let{value:n,currentPage:t,selected:a}=e;return Bt.select({items:t,value:n,selected:a})}},At={showSelectAll:!0,allSelected:e=>{let{allItems:n}=e;return n},select:e=>{let{items:n,value:t,selected:a}=e;for(const l of n)t?a.add(l.value):a.delete(l.value);return a},selectAll:e=>{let{value:n,allItems:t,selected:a}=e;return At.select({items:t,value:n,selected:a})}},xl=H({showSelect:Boolean,selectStrategy:{type:[String,Object],default:"page"},modelValue:{type:Array,default:()=>[]},valueComparator:{type:Function,default:xt}},"DataTable-select"),Rt=Symbol.for("vuetify:data-table-selection");function Sl(e,n){let{allItems:t,currentPage:a}=n;const l=ne(e,"modelValue",e.modelValue,h=>new Set(we(h).map(g=>{var B;return((B=t.value.find(A=>e.valueComparator(g,A.value)))==null?void 0:B.value)??g})),h=>[...h.values()]),u=w(()=>t.value.filter(h=>h.selectable)),i=w(()=>a.value.filter(h=>h.selectable)),o=w(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;switch(e.selectStrategy){case"single":return yl;case"all":return At;case"page":default:return Bt}});function s(h){return we(h).every(g=>l.value.has(g.value))}function f(h){return we(h).some(g=>l.value.has(g.value))}function b(h,g){const B=o.value.select({items:h,value:g,selected:new Set(l.value)});l.value=B}function S(h){b([h],!s([h]))}function d(h){const g=o.value.selectAll({value:h,allItems:u.value,currentPage:i.value,selected:new Set(l.value)});l.value=g}const P=w(()=>l.value.size>0),y=w(()=>{const h=o.value.allSelected({allItems:u.value,currentPage:i.value});return!!h.length&&s(h)}),p=w(()=>o.value.showSelectAll),m={toggleSelect:S,select:b,selectAll:d,isSelected:s,isSomeSelected:f,someSelected:P,allSelected:y,showSelectAll:p};return me(Rt,m),m}function De(){const e=ge(Rt);if(!e)throw new Error("Missing selection!");return e}const pl=H({sortBy:{type:Array,default:()=>[]},customKeySort:Object,multiSort:Boolean,mustSort:Boolean},"DataTable-sort"),Lt=Symbol.for("vuetify:data-table-sort");function Pl(e){const n=ne(e,"sortBy"),t=q(e,"mustSort"),a=q(e,"multiSort");return{sortBy:n,mustSort:t,multiSort:a}}function kl(e){const{sortBy:n,mustSort:t,multiSort:a,page:l}=e,u=s=>{if(s.key==null)return;let f=n.value.map(S=>({...S}))??[];const b=f.find(S=>S.key===s.key);b?b.order==="desc"?t.value?b.order="asc":f=f.filter(S=>S.key!==s.key):b.order="desc":a.value?f=[...f,{key:s.key,order:"asc"}]:f=[{key:s.key,order:"asc"}],n.value=f,l&&(l.value=1)};function i(s){return!!n.value.find(f=>f.key===s.key)}const o={sortBy:n,toggleSort:u,isSorted:i};return me(Lt,o),o}function Ot(){const e=ge(Lt);if(!e)throw new Error("Missing sort!");return e}function wl(e,n,t,a){const l=ve();return{sortedItems:w(()=>{var i,o;return t.value.length?Vl(n.value,t.value,l.current.value,{transform:a==null?void 0:a.transform,sortFunctions:{...e.customKeySort,...(i=a==null?void 0:a.sortFunctions)==null?void 0:i.value},sortRawFunctions:(o=a==null?void 0:a.sortRawFunctions)==null?void 0:o.value}):n.value})}}function Vl(e,n,t,a){const l=new Intl.Collator(t,{sensitivity:"accent",usage:"sort"});return e.map(i=>[i,a!=null&&a.transform?a.transform(i):i]).sort((i,o)=>{var s,f;for(let b=0;b<n.length;b++){let S=!1;const d=n[b].key,P=n[b].order??"asc";if(P===!1)continue;let y=Ie(i[1],d),p=Ie(o[1],d),m=i[0].raw,h=o[0].raw;if(P==="desc"&&([y,p]=[p,y],[m,h]=[h,m]),(s=a==null?void 0:a.sortRawFunctions)!=null&&s[d]){const g=a.sortRawFunctions[d](m,h);if(g==null)continue;if(S=!0,g)return g}if((f=a==null?void 0:a.sortFunctions)!=null&&f[d]){const g=a.sortFunctions[d](y,p);if(g==null)continue;if(S=!0,g)return g}if(!S){if(y instanceof Date&&p instanceof Date)return y.getTime()-p.getTime();if([y,p]=[y,p].map(g=>g!=null?g.toString().toLocaleLowerCase():g),y!==p)return pe(y)&&pe(p)?0:pe(y)?-1:pe(p)?1:!isNaN(y)&&!isNaN(p)?Number(y)-Number(p):l.compare(y,p)}}return 0}).map(i=>{let[o]=i;return o})}const $t=H({color:String,sticky:Boolean,disableSort:Boolean,multiSort:Boolean,sortAscIcon:{type:J,default:"$sortAsc"},sortDescIcon:{type:J,default:"$sortDesc"},headerProps:{type:Object},...ze(),...it()},"VDataTableHeaders"),at=Z()({name:"VDataTableHeaders",props:$t(),setup(e,n){let{slots:t}=n;const{t:a}=ve(),{toggleSort:l,sortBy:u,isSorted:i}=Ot(),{someSelected:o,allSelected:s,selectAll:f,showSelectAll:b}=De(),{columns:S,headers:d}=Te(),{loaderClasses:P}=ct(e);function y(x,v){if(!(!e.sticky&&!x.fixed))return{position:"sticky",left:x.fixed?ee(x.fixedOffset):void 0,top:e.sticky?`calc(var(--v-table-header-height) * ${v})`:void 0}}function p(x){const v=u.value.find(I=>I.key===x.key);return v?v.order==="asc"?e.sortAscIcon:e.sortDescIcon:e.sortAscIcon}const{backgroundColorClasses:m,backgroundColorStyles:h}=ft(e,"color"),{displayClasses:g,mobile:B}=be(e),A=w(()=>({headers:d.value,columns:S.value,toggleSort:l,isSorted:i,sortBy:u.value,someSelected:o.value,allSelected:s.value,selectAll:f,getSortIcon:p})),C=w(()=>["v-data-table__th",{"v-data-table__th--sticky":e.sticky},g.value,P.value]),D=x=>{let{column:v,x:I,y:V}=x;const R=v.key==="data-table-select"||v.key==="data-table-expand",L=N(e.headerProps??{},v.headerProps??{});return r(Ce,N({tag:"th",align:v.align,class:[{"v-data-table__th--sortable":v.sortable&&!e.disableSort,"v-data-table__th--sorted":i(v),"v-data-table__th--fixed":v.fixed},...C.value],style:{width:ee(v.width),minWidth:ee(v.minWidth),maxWidth:ee(v.maxWidth),...y(v,V)},colspan:v.colspan,rowspan:v.rowspan,onClick:v.sortable?()=>l(v):void 0,fixed:v.fixed,nowrap:v.nowrap,lastFixed:v.lastFixed,noPadding:R},L),{default:()=>{var z;const O=`header.${v.key}`,$={column:v,selectAll:f,isSorted:i,toggleSort:l,sortBy:u.value,someSelected:o.value,allSelected:s.value,getSortIcon:p};return t[O]?t[O]($):v.key==="data-table-select"?((z=t["header.data-table-select"])==null?void 0:z.call(t,$))??(b.value&&r(_e,{modelValue:s.value,indeterminate:o.value&&!s.value,"onUpdate:modelValue":f},null)):r("div",{class:"v-data-table-header__content"},[r("span",null,[v.title]),v.sortable&&!e.disableSort&&r(Ve,{key:"icon",class:"v-data-table-header__sort-icon",icon:p(v)},null),e.multiSort&&i(v)&&r("div",{key:"badge",class:["v-data-table-header__sort-badge",...m.value],style:h.value},[u.value.findIndex(U=>U.key===v.key)+1])])}})},F=()=>{const x=N(e.headerProps??{}??{}),v=w(()=>S.value.filter(V=>(V==null?void 0:V.sortable)&&!e.disableSort)),I=w(()=>{if(S.value.find(R=>R.key==="data-table-select")!=null)return s.value?"$checkboxOn":o.value?"$checkboxIndeterminate":"$checkboxOff"});return r(Ce,N({tag:"th",class:[...C.value],colspan:d.value.length+1},x),{default:()=>[r("div",{class:"v-data-table-header__content"},[r(Vt,{chips:!0,class:"v-data-table__td-sort-select",clearable:!0,density:"default",items:v.value,label:a("$vuetify.dataTable.sortBy"),multiple:e.multiSort,variant:"underlined","onClick:clear":()=>u.value=[],appendIcon:I.value,"onClick:append":()=>f(!s.value)},{...t,chip:V=>{var R;return r(pt,{onClick:(R=V.item.raw)!=null&&R.sortable?()=>l(V.item.raw):void 0,onMousedown:L=>{L.preventDefault(),L.stopPropagation()}},{default:()=>[V.item.title,r(Ve,{class:["v-data-table__td-sort-icon",i(V.item.raw)&&"v-data-table__td-sort-icon-active"],icon:p(V.item.raw),size:"small"},null)]})}})])]})};te(()=>B.value?r("tr",null,[r(F,null,null)]):r(Q,null,[t.headers?t.headers(A.value):d.value.map((x,v)=>r("tr",null,[x.map((I,V)=>r(D,{column:I,x:V,y:v},null))])),e.loading&&r("tr",{class:"v-data-table-progress"},[r("th",{colspan:S.value.length},[r(vt,{name:"v-data-table-progress",absolute:!0,active:!0,color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0},{default:t.loader})])])]))}}),Il=H({groupBy:{type:Array,default:()=>[]}},"DataTable-group"),Et=Symbol.for("vuetify:data-table-group");function Cl(e){return{groupBy:ne(e,"groupBy")}}function _l(e){const{disableSort:n,groupBy:t,sortBy:a}=e,l=W(new Set),u=w(()=>t.value.map(b=>({...b,order:b.order??!1})).concat(n!=null&&n.value?[]:a.value));function i(b){return l.value.has(b.id)}function o(b){const S=new Set(l.value);i(b)?S.delete(b.id):S.add(b.id),l.value=S}function s(b){function S(d){const P=[];for(const y of d.items)"type"in y&&y.type==="group"?P.push(...S(y)):P.push(y);return P}return S({type:"group",items:b,id:"dummy",key:"dummy",value:"dummy",depth:0})}const f={sortByWithGroups:u,toggleGroup:o,opened:l,groupBy:t,extractRows:s,isGroupOpen:i};return me(Et,f),f}function Mt(){const e=ge(Et);if(!e)throw new Error("Missing group!");return e}function Tl(e,n){if(!e.length)return[];const t=new Map;for(const a of e){const l=Ie(a.raw,n);t.has(l)||t.set(l,[]),t.get(l).push(a)}return t}function Nt(e,n){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"root";if(!n.length)return[];const l=Tl(e,n[0]),u=[],i=n.slice(1);return l.forEach((o,s)=>{const f=n[0],b=`${a}_${f}_${s}`;u.push({depth:t,id:b,key:f,value:s,items:i.length?Nt(o,i,t+1,b):o,type:"group"})}),u}function Ht(e,n){const t=[];for(const a of e)"type"in a&&a.type==="group"?(a.value!=null&&t.push(a),(n.has(a.id)||a.value==null)&&t.push(...Ht(a.items,n))):t.push(a);return t}function Dl(e,n,t){return{flatItems:w(()=>{if(!n.value.length)return e.value;const l=Nt(e.value,n.value.map(u=>u.key));return Ht(l,t.value)})}}const Fl=H({item:{type:Object,required:!0}},"VDataTableGroupHeaderRow"),Bl=Z()({name:"VDataTableGroupHeaderRow",props:Fl(),setup(e,n){let{slots:t}=n;const{isGroupOpen:a,toggleGroup:l,extractRows:u}=Mt(),{isSelected:i,isSomeSelected:o,select:s}=De(),{columns:f}=Te(),b=w(()=>u([e.item]));return()=>r("tr",{class:"v-data-table-group-header-row",style:{"--v-data-table-group-header-row-depth":e.item.depth}},[f.value.map(S=>{var d,P;if(S.key==="data-table-group"){const y=a(e.item)?"$expand":"$next",p=()=>l(e.item);return((d=t["data-table-group"])==null?void 0:d.call(t,{item:e.item,count:b.value.length,props:{icon:y,onClick:p}}))??r(Ce,{class:"v-data-table-group-header-row__column"},{default:()=>[r(ie,{size:"small",variant:"text",icon:y,onClick:p},null),r("span",null,[e.item.value]),r("span",null,[Re("("),b.value.length,Re(")")])]})}if(S.key==="data-table-select"){const y=i(b.value),p=o(b.value)&&!y,m=h=>s(b.value,h);return((P=t["data-table-select"])==null?void 0:P.call(t,{props:{modelValue:y,indeterminate:p,"onUpdate:modelValue":m}}))??r("td",null,[r(_e,{modelValue:y,indeterminate:p,"onUpdate:modelValue":m},null)])}return r("td",null,null)})])}}),Al=H({expandOnClick:Boolean,showExpand:Boolean,expanded:{type:Array,default:()=>[]}},"DataTable-expand"),zt=Symbol.for("vuetify:datatable:expanded");function Rl(e){const n=q(e,"expandOnClick"),t=ne(e,"expanded",e.expanded,o=>new Set(o),o=>[...o.values()]);function a(o,s){const f=new Set(t.value);s?f.add(o.value):f.delete(o.value),t.value=f}function l(o){return t.value.has(o.value)}function u(o){a(o,!l(o))}const i={expand:a,expanded:t,expandOnClick:n,isExpanded:l,toggleExpand:u};return me(zt,i),i}function Ut(){const e=ge(zt);if(!e)throw new Error("foo");return e}const Ll=H({index:Number,item:Object,cellProps:[Object,Function],onClick:ce(),onContextmenu:ce(),onDblclick:ce(),...ze()},"VDataTableRow"),Ol=Z()({name:"VDataTableRow",props:Ll(),setup(e,n){let{slots:t}=n;const{displayClasses:a,mobile:l}=be(e,"v-data-table__tr"),{isSelected:u,toggleSelect:i,someSelected:o,allSelected:s,selectAll:f}=De(),{isExpanded:b,toggleExpand:S}=Ut(),{toggleSort:d,sortBy:P,isSorted:y}=Ot(),{columns:p}=Te();te(()=>r("tr",{class:["v-data-table__tr",{"v-data-table__tr--clickable":!!(e.onClick||e.onContextmenu||e.onDblclick)},a.value],onClick:e.onClick,onContextmenu:e.onContextmenu,onDblclick:e.onDblclick},[e.item&&p.value.map((m,h)=>{const g=e.item,B=`item.${m.key}`,A=`header.${m.key}`,C={index:e.index,item:g.raw,internalItem:g,value:Ie(g.columns,m.key),column:m,isSelected:u,toggleSelect:i,isExpanded:b,toggleExpand:S},D={column:m,selectAll:f,isSorted:y,toggleSort:d,sortBy:P.value,someSelected:o.value,allSelected:s.value,getSortIcon:()=>""},F=typeof e.cellProps=="function"?e.cellProps({index:C.index,item:C.item,internalItem:C.internalItem,value:C.value,column:m}):e.cellProps,x=typeof m.cellProps=="function"?m.cellProps({index:C.index,item:C.item,internalItem:C.internalItem,value:C.value}):m.cellProps;return r(Ce,N({align:m.align,class:{"v-data-table__td--expanded-row":m.key==="data-table-expand","v-data-table__td--select-row":m.key==="data-table-select"},fixed:m.fixed,fixedOffset:m.fixedOffset,lastFixed:m.lastFixed,maxWidth:l.value?void 0:m.maxWidth,noPadding:m.key==="data-table-select"||m.key==="data-table-expand",nowrap:m.nowrap,width:l.value?void 0:m.width},F,x),{default:()=>{var I,V,R,L,O;if(t[B]&&!l.value)return(I=t[B])==null?void 0:I.call(t,C);if(m.key==="data-table-select")return((V=t["item.data-table-select"])==null?void 0:V.call(t,C))??r(_e,{disabled:!g.selectable,modelValue:u([g]),onClick:Ye(()=>i(g),["stop"])},null);if(m.key==="data-table-expand")return((R=t["item.data-table-expand"])==null?void 0:R.call(t,C))??r(ie,{icon:b(g)?"$collapse":"$expand",size:"small",variant:"text",onClick:Ye(()=>S(g),["stop"])},null);const v=Da(C.value);return l.value?r(Q,null,[r("div",{class:"v-data-table__td-title"},[((L=t[A])==null?void 0:L.call(t,D))??m.title]),r("div",{class:"v-data-table__td-value"},[((O=t[B])==null?void 0:O.call(t,C))??v])]):v}})})]))}}),Gt=H({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],...ze()},"VDataTableRows"),lt=Z()({name:"VDataTableRows",inheritAttrs:!1,props:Gt(),setup(e,n){let{attrs:t,slots:a}=n;const{columns:l}=Te(),{expandOnClick:u,toggleExpand:i,isExpanded:o}=Ut(),{isSelected:s,toggleSelect:f}=De(),{toggleGroup:b,isGroupOpen:S}=Mt(),{t:d}=ve(),{mobile:P}=be(e);return te(()=>{var y,p;return e.loading&&(!e.items.length||a.loading)?r("tr",{class:"v-data-table-rows-loading",key:"loading"},[r("td",{colspan:l.value.length},[((y=a.loading)==null?void 0:y.call(a))??d(e.loadingText)])]):!e.loading&&!e.items.length&&!e.hideNoData?r("tr",{class:"v-data-table-rows-no-data",key:"no-data"},[r("td",{colspan:l.value.length},[((p=a["no-data"])==null?void 0:p.call(a))??d(e.noDataText)])]):r(Q,null,[e.items.map((m,h)=>{var A;if(m.type==="group"){const C={index:h,item:m,columns:l.value,isExpanded:o,toggleExpand:i,isSelected:s,toggleSelect:f,toggleGroup:b,isGroupOpen:S};return a["group-header"]?a["group-header"](C):r(Bl,N({key:`group-header_${m.id}`,item:m},Ze(t,":group-header",()=>C)),a)}const g={index:h,item:m.raw,internalItem:m,columns:l.value,isExpanded:o,toggleExpand:i,isSelected:s,toggleSelect:f},B={...g,props:N({key:`item_${m.key??m.index}`,onClick:u.value?()=>{i(m)}:void 0,index:h,item:m,cellProps:e.cellProps,mobile:P.value},Ze(t,":row",()=>g),typeof e.rowProps=="function"?e.rowProps({item:g.item,index:g.index,internalItem:g.internalItem}):e.rowProps)};return r(Q,{key:B.props.key},[a.item?a.item(B):r(Ol,B.props,a),o(m)&&((A=a["expanded-row"])==null?void 0:A.call(a,g))])})])}),{}}}),jt=H({fixedHeader:Boolean,fixedFooter:Boolean,height:[Number,String],hover:Boolean,...se(),...bt(),...yt(),...Ee()},"VTable"),nt=Z()({name:"VTable",props:jt(),setup(e,n){let{slots:t,emit:a}=n;const{themeClasses:l}=Me(e),{densityClasses:u}=Fa(e);return te(()=>r(e.tag,{class:["v-table",{"v-table--fixed-height":!!e.height,"v-table--fixed-header":e.fixedHeader,"v-table--fixed-footer":e.fixedFooter,"v-table--has-top":!!t.top,"v-table--has-bottom":!!t.bottom,"v-table--hover":e.hover},l.value,u.value,e.class],style:e.style},{default:()=>{var i,o,s;return[(i=t.top)==null?void 0:i.call(t),t.default?r("div",{class:"v-table__wrapper",style:{height:ee(e.height)}},[r("table",null,[t.default()])]):(o=t.wrapper)==null?void 0:o.call(t),(s=t.bottom)==null?void 0:s.call(t)]}})),{}}}),$l=H({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 El(e,n,t,a){const l=e.returnObject?n:Pe(n,e.itemValue),u=Pe(n,e.itemSelectable,!0),i=a.reduce((o,s)=>(s.key!=null&&(o[s.key]=Pe(n,s.value)),o),{});return{type:"item",key:e.returnObject?Pe(n,e.itemValue):l,index:t,value:l,selectable:u,columns:i,raw:n}}function Ml(e,n,t){return n.map((a,l)=>El(e,a,l,t))}function Nl(e,n){return{items:w(()=>Ml(e,e.items,n.value))}}function Hl(e){let{page:n,itemsPerPage:t,sortBy:a,groupBy:l,search:u}=e;const i=He("VDataTable"),o=w(()=>({page:n.value,itemsPerPage:t.value,sortBy:a.value,groupBy:l.value,search:u.value}));let s=null;le(o,()=>{xt(s,o.value)||(s&&s.search!==o.value.search&&(n.value=1),i.emit("update:options",o.value),s=o.value)},{deep:!0,immediate:!0})}const zl=H({...Gt(),hideDefaultBody:Boolean,hideDefaultFooter:Boolean,hideDefaultHeader:Boolean,width:[String,Number],search:String,...Al(),...Il(),...dl(),...$l(),...xl(),...pl(),...$t(),...jt()},"DataTable"),Ul=H({...ol(),...zl(),...Ba(),...Ct()},"VDataTable"),Wl=Z()({name:"VDataTable",props:Ul(),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,n){let{attrs:t,slots:a}=n;const{groupBy:l}=Cl(e),{sortBy:u,multiSort:i,mustSort:o}=Pl(e),{page:s,itemsPerPage:f}=ul(e),{disableSort:b}=Aa(e),{columns:S,headers:d,sortFunctions:P,sortRawFunctions:y,filterFunctions:p}=bl(e,{groupBy:l,showSelect:q(e,"showSelect"),showExpand:q(e,"showExpand")}),{items:m}=Nl(e,S),h=q(e,"search"),{filteredItems:g}=Ra(e,m,h,{transform:j=>j.columns,customKeyFilter:p}),{toggleSort:B}=kl({sortBy:u,multiSort:i,mustSort:o,page:s}),{sortByWithGroups:A,opened:C,extractRows:D,isGroupOpen:F,toggleGroup:x}=_l({groupBy:l,sortBy:u,disableSort:b}),{sortedItems:v}=wl(e,g,A,{transform:j=>({...j.raw,...j.columns}),sortFunctions:P,sortRawFunctions:y}),{flatItems:I}=Dl(v,l,C),V=w(()=>I.value.length),{startIndex:R,stopIndex:L,pageCount:O,setItemsPerPage:$}=il({page:s,itemsPerPage:f,itemsLength:V}),{paginatedItems:z}=cl({items:I,startIndex:R,stopIndex:L,itemsPerPage:f}),U=w(()=>D(z.value)),{isSelected:K,select:c,selectAll:k,toggleSelect:_,someSelected:E,allSelected:X}=Sl(e,{allItems:m,currentPage:U}),{isExpanded:T,toggleExpand:G}=Rl(e);Hl({page:s,itemsPerPage:f,sortBy:u,groupBy:l,search:h}),Le({VDataTableRows:{hideNoData:q(e,"hideNoData"),noDataText:q(e,"noDataText"),loading:q(e,"loading"),loadingText:q(e,"loadingText")}});const M=w(()=>({page:s.value,itemsPerPage:f.value,sortBy:u.value,pageCount:O.value,toggleSort:B,setItemsPerPage:$,someSelected:E.value,allSelected:X.value,isSelected:K,select:c,selectAll:k,toggleSelect:_,isExpanded:T,toggleExpand:G,isGroupOpen:F,toggleGroup:x,items:U.value.map(j=>j.raw),internalItems:U.value,groupedItems:z.value,columns:S.value,headers:d.value}));return te(()=>{const j=tt.filterProps(e),ae=at.filterProps(e),oe=lt.filterProps(e),Y=nt.filterProps(e);return r(nt,N({class:["v-data-table",{"v-data-table--show-select":e.showSelect,"v-data-table--loading":e.loading},e.class],style:e.style},Y),{top:()=>{var ue;return(ue=a.top)==null?void 0:ue.call(a,M.value)},default:()=>{var ue,he,ye,xe,Ge,je;return a.default?a.default(M.value):r(Q,null,[(ue=a.colgroup)==null?void 0:ue.call(a,M.value),!e.hideDefaultHeader&&r("thead",{key:"thead"},[r(at,ae,a)]),(he=a.thead)==null?void 0:he.call(a,M.value),!e.hideDefaultBody&&r("tbody",null,[(ye=a["body.prepend"])==null?void 0:ye.call(a,M.value),a.body?a.body(M.value):r(lt,N(t,oe,{items:z.value}),a),(xe=a["body.append"])==null?void 0:xe.call(a,M.value)]),(Ge=a.tbody)==null?void 0:Ge.call(a,M.value),(je=a.tfoot)==null?void 0:je.call(a,M.value)])},bottom:()=>a.bottom?a.bottom(M.value):!e.hideDefaultFooter&&r(Q,null,[r(La,null,null),r(tt,j,{prepend:a["footer.prepend"]})])})}),{}}});export{Je as V,wt as a,el as b,Vt as c,Wl as d,et as e,al as m,tl as u};