import{W as q,c2 as Xe,g as ge,p as Z,$ as we,U as xe,bj as Ge,bc as Qe,aq as $e,X as W,aG as Ae,c3 as Ie,a1 as M,b3 as fe,ax as j,c as he,d as A,i as _,y as ue,E as $,e as le,n as Ke,c4 as Ye,aS as Je,m as Ze,c5 as qe,aT as et,bh as tt,aI as at,h as Le,bi as lt,aV as se,c6 as Te,a3 as me,a2 as ee,F as ne,b8 as Se,b2 as nt,bw as Ne,bx as be,c0 as ze,a4 as He,bQ as it,u as ut,bv as rt,ah as st,bN as ot,aH as ve,f as ct,aW as dt,b_ as Re,Y as ft,a0 as Pe,ae as pe,v as Me,a6 as vt,a7 as Be,c7 as mt,K as gt,a8 as ht,L as yt,a9 as bt,aa as pt,t as Vt,ab as kt,aR as wt,ac as St,c8 as Pt,ad as De,af as Oe,c9 as xt,ak as re}from"./index-B-g1bwIy.js";import{u as It,V as Ee,m as Lt}from"./VTextField-Dy9uWZrz.js";import{V as _t}from"./VMenu-kXf2Vc5O.js";import{V as Ct}from"./VCheckboxBtn-SKiGGMMe.js";import{V as Ft}from"./VChip-DhGhfbhx.js";function At(){const e=q([]);Xe(()=>e.value=[]);function n(t,u){e.value[u]=t}return{refs:e,updateRef:n}}const Tt=Z({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:se,default:"$first"},prevIcon:{type:se,default:"$prev"},nextIcon:{type:se,default:"$next"},lastIcon:{type:se,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,...lt(),...Le(),...at(),...tt(),...et(),...qe(),...Ze({tag:"nav"}),...Je(),...Ye({variant:"text"})},"VPagination"),ea=ge()({name:"VPagination",props:Tt(),emits:{"update:modelValue":e=>!0,first:e=>!0,prev:e=>!0,next:e=>!0,last:e=>!0},setup(e,n){let{slots:t,emit:u}=n;const a=we(e,"modelValue"),{t:c,n:v}=xe(),{isRtl:i}=Ge(),{themeClasses:s}=Qe(e),{width:P}=$e(),r=W(-1);Ae(void 0,{scoped:!0});const{resizeRef:O}=Ie(o=>{if(!o.length)return;const{target:b,contentRect:w}=o[0],I=b.querySelector(".v-pagination__list > *");if(!I)return;const B=w.width,Y=I.offsetWidth+parseFloat(getComputedStyle(I).marginRight)*2;r.value=k(B,Y)}),h=M(()=>parseInt(e.length,10)),d=M(()=>parseInt(e.start,10)),g=M(()=>e.totalVisible!=null?parseInt(e.totalVisible,10):r.value>=0?r.value:k(P.value,58));function k(o,b){const w=e.showFirstLastPage?5:3;return Math.max(0,Math.floor(Number(((o-b*w)/b).toFixed(2))))}const S=M(()=>{if(h.value<=0||isNaN(h.value)||h.value>Number.MAX_SAFE_INTEGER)return[];if(g.value<=0)return[];if(g.value===1)return[a.value];if(h.value<=g.value)return fe(h.value,d.value);const o=g.value%2===0,b=o?g.value/2:Math.floor(g.value/2),w=o?b:b+1,I=h.value-b;if(w-a.value>=0)return[...fe(Math.max(1,g.value-1),d.value),e.ellipsis,h.value];if(a.value-I>=(o?1:0)){const B=g.value-1,Y=h.value-B+d.value;return[d.value,e.ellipsis,...fe(B,Y)]}else{const B=Math.max(1,g.value-2),Y=B===1?a.value:a.value-Math.ceil(B/2)+d.value;return[d.value,e.ellipsis,...fe(B,Y),e.ellipsis,h.value]}});function p(o,b,w){o.preventDefault(),a.value=b,w&&u(w,b)}const{refs:C,updateRef:E}=At();Ae({VPaginationBtn:{color:j(()=>e.color),border:j(()=>e.border),density:j(()=>e.density),size:j(()=>e.size),variant:j(()=>e.variant),rounded:j(()=>e.rounded),elevation:j(()=>e.elevation)}});const K=M(()=>S.value.map((o,b)=>{const w=I=>E(I,b);if(typeof o=="string")return{isActive:!1,key:`ellipsis-${b}`,page:o,props:{ref:w,ellipsis:!0,icon:!0,disabled:!0}};{const I=o===a.value;return{isActive:I,key:o,page:v(o),props:{ref:w,ellipsis:!1,icon:!0,disabled:!!e.disabled||Number(e.length)<2,color:I?e.activeColor:e.color,"aria-current":I,"aria-label":c(I?e.currentPageAriaLabel:e.pageAriaLabel,o),onClick:B=>p(B,o)}}}})),y=M(()=>{const o=!!e.disabled||a.value<=d.value,b=!!e.disabled||a.value>=d.value+h.value-1;return{first:e.showFirstLastPage?{icon:i.value?e.lastIcon:e.firstIcon,onClick:w=>p(w,d.value,"first"),disabled:o,"aria-label":c(e.firstAriaLabel),"aria-disabled":o}:void 0,prev:{icon:i.value?e.nextIcon:e.prevIcon,onClick:w=>p(w,a.value-1,"prev"),disabled:o,"aria-label":c(e.previousAriaLabel),"aria-disabled":o},next:{icon:i.value?e.prevIcon:e.nextIcon,onClick:w=>p(w,a.value+1,"next"),disabled:b,"aria-label":c(e.nextAriaLabel),"aria-disabled":b},last:e.showFirstLastPage?{icon:i.value?e.firstIcon:e.lastIcon,onClick:w=>p(w,d.value+h.value-1,"last"),disabled:b,"aria-label":c(e.lastAriaLabel),"aria-disabled":b}:void 0}});function te(){var b;const o=a.value-d.value;(b=C.value[o])==null||b.$el.focus()}function N(o){o.key===Te.left&&!e.disabled&&a.value>Number(e.start)?(a.value=a.value-1,me(te)):o.key===Te.right&&!e.disabled&&a.valueA(e.tag,{ref:O,class:le(["v-pagination",s.value,e.class]),style:Ke(e.style),role:"navigation","aria-label":c(e.ariaLabel),onKeydown:N,"data-test":"v-pagination-root"},{default:()=>[_("ul",{class:"v-pagination__list"},[e.showFirstLastPage&&_("li",{key:"first",class:"v-pagination__first","data-test":"v-pagination-first"},[t.first?t.first(y.value.first):A(ue,$({_as:"VPaginationBtn"},y.value.first),null)]),_("li",{key:"prev",class:"v-pagination__prev","data-test":"v-pagination-prev"},[t.prev?t.prev(y.value.prev):A(ue,$({_as:"VPaginationBtn"},y.value.prev),null)]),K.value.map((o,b)=>_("li",{key:o.key,class:le(["v-pagination__item",{"v-pagination__item--is-active":o.isActive}]),"data-test":"v-pagination-item"},[t.item?t.item(o):A(ue,$({_as:"VPaginationBtn"},o.props),{default:()=>[o.page]})])),_("li",{key:"next",class:"v-pagination__next","data-test":"v-pagination-next"},[t.next?t.next(y.value.next):A(ue,$({_as:"VPaginationBtn"},y.value.next),null)]),e.showFirstLastPage&&_("li",{key:"last",class:"v-pagination__last","data-test":"v-pagination-last"},[t.last?t.last(y.value.last):A(ue,$({_as:"VPaginationBtn"},y.value.last),null)])])]})),{}}}),Rt=Z({renderless:Boolean,...Le()},"VVirtualScrollItem"),Mt=ge()({name:"VVirtualScrollItem",inheritAttrs:!1,props:Rt(),emits:{"update:height":e=>!0},setup(e,n){let{attrs:t,emit:u,slots:a}=n;const{resizeRef:c,contentRect:v}=Ie(void 0,"border");ee(()=>{var i;return(i=v.value)==null?void 0:i.height},i=>{i!=null&&u("update:height",i)}),he(()=>{var i,s;return e.renderless?_(ne,null,[(i=a.default)==null?void 0:i.call(a,{itemRef:c})]):_("div",$({ref:c,class:["v-virtual-scroll__item",e.class],style:e.style},t),[(s=a.default)==null?void 0:s.call(a)])})}}),Bt=-1,Dt=1,Ve=100,Ot=Z({itemHeight:{type:[Number,String],default:null},itemKey:{type:[String,Array,Function],default:null},height:[Number,String]},"virtual");function Et(e,n){const t=$e(),u=W(0);Se(()=>{u.value=parseFloat(e.itemHeight||0)});const a=W(0),c=W(Math.ceil((parseInt(e.height)||t.height.value)/(u.value||16))||1),v=W(0),i=W(0),s=q(),P=q();let r=0;const{resizeRef:O,contentRect:h}=Ie();Se(()=>{O.value=s.value});const d=M(()=>{var f;return s.value===document.documentElement?t.height.value:((f=h.value)==null?void 0:f.height)||parseInt(e.height)||0}),g=M(()=>!!(s.value&&P.value&&d.value&&u.value));let k=Array.from({length:n.value.length}),S=Array.from({length:n.value.length});const p=W(0);let C=-1;function E(f){return k[f]||u.value}const K=nt(()=>{const f=performance.now();S[0]=0;const x=n.value.length;for(let R=1;R<=x;R++)S[R]=(S[R-1]||0)+E(R-1);p.value=Math.max(p.value,performance.now()-f)},p),y=ee(g,f=>{f&&(y(),r=P.value.offsetTop,K.immediate(),X(),~C&&me(()=>{He&&window.requestAnimationFrame(()=>{de(C),C=-1})}))});Ne(()=>{K.clear()});function te(f,x){const R=k[f],l=u.value;u.value=l?Math.min(u.value,x):x,(R!==x||l!==u.value)&&(k[f]=x,K())}function N(f){f=be(f,0,n.value.length);const x=Math.floor(f),R=f%1,l=x+1,m=S[x]||0,L=S[l]||m;return m+(L-m)*R}function o(f){return $t(S,f)}let b=0,w=0,I=0;ee(d,(f,x)=>{x&&(X(),f{w=0,X()}))});let B=-1;function Y(){if(!s.value||!P.value)return;const f=s.value.scrollTop,x=performance.now();x-I>500?(w=Math.sign(f-b),r=P.value.offsetTop):w=f-b,b=f,I=x,window.clearTimeout(B),B=window.setTimeout(oe,500),X()}function oe(){!s.value||!P.value||(w=0,I=0,window.clearTimeout(B),X())}let ce=-1;function X(){cancelAnimationFrame(ce),ce=requestAnimationFrame(ae)}function ae(){if(!s.value||!d.value||!u.value)return;const f=b-r,x=Math.sign(w),R=Math.max(0,f-Ve),l=be(o(R),0,n.value.length),m=f+d.value+Ve,L=be(o(m)+1,l+1,n.value.length);if((x!==Bt||lc.value)){const J=N(a.value)-N(l),G=N(L)-N(c.value);Math.max(J,G)>Ve?(a.value=l,c.value=L):(l<=0&&(a.value=l),L>=n.value.length&&(c.value=L))}v.value=N(a.value),i.value=N(n.value.length)-N(c.value)}function de(f){const x=N(f);!s.value||f&&!x?C=f:s.value.scrollTop=x}const ye=M(()=>n.value.slice(a.value,c.value).map((f,x)=>{const R=x+a.value;return{raw:f,index:R,key:ze(f,e.itemKey,R)}}));return ee(n,()=>{k=Array.from({length:n.value.length}),S=Array.from({length:n.value.length}),K.immediate(),X()},{deep:1}),{calculateVisibleItems:X,containerRef:s,markerRef:P,computedItems:ye,paddingTop:v,paddingBottom:i,scrollToIndex:de,handleScroll:Y,handleScrollend:oe,handleItemResize:te}}function $t(e,n){let t=e.length-1,u=0,a=0,c=null,v=-1;if(e[t]>1,c=e[a],c>n)t=a-1;else if(c[]},renderless:Boolean,...Ot(),...Le(),...ct()},"VVirtualScroll"),Nt=ge()({name:"VVirtualScroll",props:Kt(),setup(e,n){let{slots:t}=n;const u=it("VVirtualScroll"),{dimensionStyles:a}=ut(e),{calculateVisibleItems:c,containerRef:v,markerRef:i,handleScroll:s,handleScrollend:P,handleItemResize:r,scrollToIndex:O,paddingTop:h,paddingBottom:d,computedItems:g}=Et(e,j(()=>e.items));return rt(()=>e.renderless,()=>{function k(){var C,E;const p=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?"addEventListener":"removeEventListener";v.value===document.documentElement?(document[p]("scroll",s,{passive:!0}),document[p]("scrollend",P)):((C=v.value)==null||C[p]("scroll",s,{passive:!0}),(E=v.value)==null||E[p]("scrollend",P))}st(()=>{v.value=ot(u.vnode.el,!0),k(!0)}),Ne(k)}),he(()=>{const k=g.value.map(S=>A(Mt,{key:S.key,renderless:e.renderless,"onUpdate:height":p=>r(S.index,p)},{default:p=>{var C;return(C=t.default)==null?void 0:C.call(t,{item:S.raw,index:S.index,...p})}}));return e.renderless?_(ne,null,[_("div",{ref:i,class:"v-virtual-scroll__spacer",style:{paddingTop:ve(h.value)}},null),k,_("div",{class:"v-virtual-scroll__spacer",style:{paddingBottom:ve(d.value)}},null)]):_("div",{ref:v,class:le(["v-virtual-scroll",e.class]),onScrollPassive:s,onScrollend:P,style:Ke([a.value,e.style])},[_("div",{ref:i,class:"v-virtual-scroll__container",style:{paddingTop:ve(h.value),paddingBottom:ve(d.value)}},[k])])}),{calculateVisibleItems:c,scrollToIndex:O}}});function zt(e,n){const t=W(!1);let u;function a(i){cancelAnimationFrame(u),t.value=!0,u=requestAnimationFrame(()=>{u=requestAnimationFrame(()=>{t.value=!1})})}async function c(){await new Promise(i=>requestAnimationFrame(i)),await new Promise(i=>requestAnimationFrame(i)),await new Promise(i=>requestAnimationFrame(i)),await new Promise(i=>{if(t.value){const s=ee(t,()=>{s(),i()})}else i()})}async function v(i){var r,O;if(i.key==="Tab"&&((r=n.value)==null||r.focus()),!["PageDown","PageUp","Home","End"].includes(i.key))return;const s=(O=e.value)==null?void 0:O.$el;if(!s)return;(i.key==="Home"||i.key==="End")&&s.scrollTo({top:i.key==="Home"?0:s.scrollHeight,behavior:"smooth"}),await c();const P=s.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");if(i.key==="PageDown"||i.key==="Home"){const h=s.getBoundingClientRect().top;for(const d of P)if(d.getBoundingClientRect().top>=h){d.focus();break}}else{const h=s.getBoundingClientRect().bottom;for(const d of[...P].reverse())if(d.getBoundingClientRect().bottom<=h){d.focus();break}}}return{onScrollPassive:a,onKeydown:v}}const Ht=Z({closeText:{type:String,default:"$vuetify.close"},openText:{type:String,default:"$vuetify.open"}},"autocomplete");function Ut(e,n){const{t}=xe(),u=dt(),a=M(()=>`menu-${u}`),c=j(()=>Re(n)),v=j(()=>a.value),i=j(()=>t(Re(n)?e.closeText:e.openText));return{menuId:a,ariaExpanded:c,ariaControls:v,ariaLabel:i}}const jt=Z({chips:Boolean,closableChips:Boolean,eager:Boolean,hideNoData:Boolean,hideSelected:Boolean,listProps:{type:Object},menu:Boolean,menuIcon:{type:se,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,itemColor:String,noAutoScroll:Boolean,...Ht(),...xt({itemChildren:!1})},"Select"),Wt=Z({...jt(),...St(Lt({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...wt({transition:{component:Pt}})},"VSelect"),ta=ge()({name:"VSelect",props:Wt(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:menu":e=>!0},setup(e,n){let{slots:t}=n;const{t:u}=xe(),a=q(),c=q(),v=q(),{items:i,transformIn:s,transformOut:P}=ft(e),r=we(e,"modelValue",[],l=>s(l===null?[null]:Pe(l)),l=>{const m=P(l);return e.multiple?m:m[0]??null}),O=M(()=>typeof e.counterValue=="function"?e.counterValue(r.value):typeof e.counterValue=="number"?e.counterValue:r.value.length),h=It(e),d=M(()=>r.value.map(l=>l.value)),g=W(!1);let k="",S=-1,p;const C=M(()=>e.hideSelected?i.value.filter(l=>!r.value.some(m=>(e.valueComparator||pe)(m,l))):i.value),E=M(()=>e.hideNoData&&!C.value.length||h.isReadonly.value||h.isDisabled.value),K=we(e,"menu"),y=M({get:()=>K.value,set:l=>{var m;K.value&&!l&&((m=c.value)!=null&&m.ΨopenChildren.size)||l&&E.value||(K.value=l)}}),{menuId:te,ariaExpanded:N,ariaControls:o,ariaLabel:b}=Ut(e,y),w=M(()=>{var l;return{...e.menuProps,activatorProps:{...((l=e.menuProps)==null?void 0:l.activatorProps)||{},"aria-haspopup":"listbox"}}}),I=q(),B=zt(I,a);function Y(l){e.openOnClear&&(y.value=!0)}function oe(){E.value||(y.value=!y.value)}function ce(l){De(l)&&X(l)}function X(l){var F,U,D;if(!l.key||h.isReadonly.value)return;["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes(l.key)&&l.preventDefault(),["Enter","ArrowDown"," "].includes(l.key)&&(y.value=!0),["Escape","Tab"].includes(l.key)&&(y.value=!1),l.key==="Home"?(F=I.value)==null||F.focus("first"):l.key==="End"&&((U=I.value)==null||U.focus("last"));const m=1e3;if(!De(l))return;const L=performance.now();L-p>m&&(k="",S=-1),k+=l.key.toLowerCase(),p=L;const J=C.value;function G(){let T=V();return T||k.at(-1)===k.at(-2)&&(k=k.slice(0,-1),T=V(),T)||(S=-1,T=V(),T)?T:(k=l.key.toLowerCase(),V())}function V(){for(let T=S+1;T1&&arguments[1]!==void 0?arguments[1]:!0;if(!l.props.disabled)if(e.multiple){const L=r.value.findIndex(G=>(e.valueComparator||pe)(G.value,l.value)),J=m??!~L;if(~L){const G=J?[...r.value,l]:[...r.value];G.splice(L,1),r.value=G}else J&&(r.value=[...r.value,l])}else{const L=m!==!1;r.value=L?[l]:[],me(()=>{y.value=!1})}}function de(l){var m;(m=I.value)!=null&&m.$el.contains(l.relatedTarget)||(y.value=!1)}function ye(){var l;e.eager&&((l=v.value)==null||l.calculateVisibleItems())}function f(){var l;g.value&&((l=a.value)==null||l.focus())}function x(l){g.value=!0}function R(l){if(l==null)r.value=[];else if(Oe(a.value,":autofill")||Oe(a.value,":-webkit-autofill")){const m=i.value.find(L=>L.title===l);m&&ae(m)}else a.value&&(a.value.value="")}return ee(y,()=>{if(!e.hideSelected&&y.value&&r.value.length){const l=C.value.findIndex(m=>r.value.some(L=>(e.valueComparator||pe)(L.value,m.value)));He&&!e.noAutoScroll&&window.requestAnimationFrame(()=>{var m;l>=0&&((m=v.value)==null||m.scrollToIndex(l))})}}),ee(i,(l,m)=>{y.value||g.value&&e.hideNoData&&!m.length&&l.length&&(y.value=!0)}),he(()=>{const l=!!(e.chips||t.chip),m=!!(!e.hideNoData||C.value.length||t["prepend-item"]||t["append-item"]||t["no-data"]),L=r.value.length>0,J=Ee.filterProps(e),G=L||!g.value&&e.label&&!e.persistentPlaceholder?void 0:e.placeholder;return A(Ee,$({ref:a},J,{modelValue:r.value.map(V=>V.props.value).join(", "),"onUpdate:modelValue":R,focused:g.value,"onUpdate:focused":V=>g.value=V,validationValue:r.externalValue,counterValue:O.value,dirty:L,class:["v-select",{"v-select--active-menu":y.value,"v-select--chips":!!e.chips,[`v-select--${e.multiple?"multiple":"single"}`]:!0,"v-select--selected":r.value.length,"v-select--selection-slot":!!t.selection},e.class],style:e.style,inputmode:"none",placeholder:G,"onClick:clear":Y,"onMousedown:control":oe,onBlur:de,onKeydown:X,"aria-expanded":N.value,"aria-controls":o.value,"aria-label":b.value,title:b.value}),{...t,default:()=>_(ne,null,[A(_t,$({id:te.value,ref:c,modelValue:y.value,"onUpdate:modelValue":V=>y.value=V,activator:"parent",contentClass:"v-select__content",disabled:E.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterEnter:ye,onAfterLeave:f},w.value),{default:()=>[m&&A(vt,$({ref:I,selected:d.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:V=>V.preventDefault(),onKeydown:ce,onFocusin:x,tabindex:"-1",selectable:!0,"aria-live":"polite","aria-label":`${e.label}-list`,color:e.itemColor??e.color},B,e.listProps),{default:()=>{var V,z,H;return[(V=t["prepend-item"])==null?void 0:V.call(t),!C.value.length&&!e.hideNoData&&(((z=t["no-data"])==null?void 0:z.call(t))??A(Be,{key:"no-data",title:u(e.noDataText)},null)),A(Nt,{ref:v,renderless:!0,items:C.value,itemKey:"value"},{default:Q=>{var _e,Ce,Fe;let{item:F,index:U,itemRef:D}=Q;const T=mt(F.props),ie=$(F.props,{ref:D,key:F.value,onClick:()=>ae(F,null)});return F.type==="divider"?((_e=t.divider)==null?void 0:_e.call(t,{props:F.raw,index:U}))??A(gt,$(F.props,{key:`divider-${U}`}),null):F.type==="subheader"?((Ce=t.subheader)==null?void 0:Ce.call(t,{props:F.raw,index:U}))??A(ht,$(F.props,{key:`subheader-${U}`}),null):((Fe=t.item)==null?void 0:Fe.call(t,{item:F,index:U,props:ie}))??A(Be,$(ie,{role:"option"}),{prepend:Ue=>{let{isSelected:je}=Ue;return _(ne,null,[e.multiple&&!e.hideSelected?A(Ct,{key:F.value,modelValue:je,ripple:!1,tabindex:"-1",onClick:We=>We.preventDefault()},null):void 0,T.prependAvatar&&A(yt,{image:T.prependAvatar},null),T.prependIcon&&A(Me,{icon:T.prependIcon},null)])}})}}),(H=t["append-item"])==null?void 0:H.call(t)]}})]}),r.value.map((V,z)=>{function H(D){D.stopPropagation(),D.preventDefault(),ae(V,!1)}const Q={"onClick:close":H,onKeydown(D){D.key!=="Enter"&&D.key!==" "||(D.preventDefault(),D.stopPropagation(),H(D))},onMousedown(D){D.preventDefault(),D.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},F=l?!!t.chip:!!t.selection,U=F?bt(l?t.chip({item:V,index:z,props:Q}):t.selection({item:V,index:z})):void 0;if(!(F&&!U))return _("div",{key:V.value,class:"v-select__selection"},[l?t.chip?A(pt,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:V.title}}},{default:()=>[U]}):A(Ft,$({key:"chip",closable:e.closableChips,size:"small",text:V.title,disabled:V.props.disabled},Q),null):U??_("span",{class:"v-select__selection-text"},[V.title,e.multiple&&z{if(e==null||n==null)return-1;if(!n.length)return 0;e=e.toString().toLocaleLowerCase(),n=n.toString().toLocaleLowerCase();const u=[];let a=e.indexOf(n);for(;~a;)u.push([a,a+n.length]),a=e.indexOf(n,a+n.length);return u.length?u:-1};function ke(e,n){if(!(e==null||typeof e=="boolean"||e===-1))return typeof e=="number"?[[e,e+n.length]]:Array.isArray(e[0])?e:[e]}const aa=Z({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function Gt(e,n,t){var s;const u=[],a=(t==null?void 0:t.default)??Xt,c=t!=null&&t.filterKeys?Pe(t.filterKeys):!1,v=Object.keys((t==null?void 0:t.customKeyFilter)??{}).length;if(!(e!=null&&e.length))return u;let i=null;e:for(let P=0;P0)&&!(t!=null&&t.noFilter)){let k=!1;if(typeof r=="object"){if(r.type==="divider"||r.type==="subheader"){(i==null?void 0:i.type)==="divider"&&r.type==="subheader"&&u.push(i),i={index:P,matches:{},type:r.type};continue}const C=c||Object.keys(O);k=C.length===v;for(const E of C){const K=ze(O,E),y=(s=t==null?void 0:t.customKeyFilter)==null?void 0:s[E];if(g=y?y(K,n,r):a(K,n,r),g!==-1&&g!==!1)y?h[E]=ke(g,n):d[E]=ke(g,n);else if((t==null?void 0:t.filterMode)==="every")continue e}}else g=a(r,n,r),g!==-1&&g!==!1&&(d.title=ke(g,n));const S=Object.keys(d).length,p=Object.keys(h).length;if(!S&&!p||(t==null?void 0:t.filterMode)==="union"&&p!==v&&!S||(t==null?void 0:t.filterMode)==="intersection"&&(p!==v||!S&&v>0&&!k))continue}i&&(u.push(i),i=null),u.push({index:P,matches:{...d,...h}})}return u}function la(e,n,t,u){const a=W([]),c=W(new Map),v=M(()=>u!=null&&u.transform?re(n).map(s=>[s,u.transform(s)]):re(n));Se(()=>{const s=typeof t=="function"?t():re(t),P=typeof s!="string"&&typeof s!="number"?"":String(s),r=Gt(v.value,P,{customKeyFilter:{...e.customKeyFilter,...re(u==null?void 0:u.customKeyFilter)},default:e.customFilter,filterKeys:e.filterKeys,filterMode:e.filterMode,noFilter:e.noFilter}),O=re(n),h=[],d=new Map;r.forEach(g=>{let{index:k,matches:S}=g;const p=O[k];h.push(p),d.set(p.value,S)}),a.value=h,c.value=d});function i(s){return c.value.get(s.value)}return{filteredItems:a,filteredMatches:c,getMatches:i}}function na(e,n,t){return t==null||!t.length?n:t.map((u,a)=>{const c=a===0?0:t[a-1][1],v=[_("span",{class:le(`${e}__unmask`)},[n.slice(c,u[0])]),_("span",{class:le(`${e}__mask`)},[n.slice(u[0],u[1])])];return a===t.length-1&&v.push(_("span",{class:le(`${e}__unmask`)},[n.slice(u[1])])),_(ne,null,[v])})}export{ea as V,Ut as a,zt as b,Nt as c,aa as d,ta as e,na as h,jt as m,la as u};