Files
appco_dist/.output/public/_nuxt/ON59AHrd.js
T
2026-03-08 18:08:09 +03:30

22 lines
67 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{aC as S,d as fe,aL as D,l as R,r as ye,D as x,aJ as k,aI as ue,aU as Ne,a6 as vn,bq as Et,s as X,o as he,a0 as oe,dE as qe,F as Ge,a1 as Me,cp as _,e as Fe,aa as Je,bk as gn,J as Ce,bc as Ee,dF as hn,b1 as Ze,aK as ke,bN as Pt,b2 as bn,bv as me,bU as ge,ag as Sn,aD as et,af as Te,bQ as yn,bo as Le,dG as wn,bS as ve,ct as gt,b3 as In,be as Cn,an as xn,cz as $n,b7 as tt,cv as Xe,b0 as be,cU as Ft,a$ as On,bK as Tn,aE as Mn,bs as En,bn as Pn,c3 as Fn,dH as Dn,dI as Rn,aM as Vn,aO as Oe,aN as Hn,aP as ht}from"./2b2DIrDg.js";import{T as Nn}from"./D0ip_SvR.js";import{a as Ln,S as Bn}from"./C1lEr5hB.js";import{O as _n}from"./Bycu9tYy.js";import{i as An}from"./D-bUn136.js";import{R as zn}from"./BivmLwTy.js";import{u as Wn,i as bt}from"./kr7NYICY.js";import{u as St}from"./C1kAjYAs.js";import{C as Kn}from"./mECROHsD.js";import{u as jn,b as Un}from"./CcluhcvW.js";import{g as Yn,a as Gn}from"./CRJR78zL.js";import{a as Xn,s as Qn,c as qn,b as Jn,i as yt}from"./BxnkpaeD.js";function wt(e,t){const{key:o}=e;let n;return"value"in e&&({value:n}=e),o??(n!==void 0?n:`rc-index-key-${t}`)}function Dt(e,t){const{label:o,value:n,options:l}=e||{};return{label:o||(t?"children":"label"),value:n||"value",options:l||"options"}}function Zn(e){let{fieldNames:t,childrenAsData:o}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=[],{label:l,value:i,options:u}=Dt(t,!1);function r(p,a){p.forEach(d=>{const g=d[l];if(a||!(u in d)){const f=d[i];n.push({key:wt(d,n.length),groupOption:a,data:d,label:g,value:f})}else{let f=g;f===void 0&&o&&(f=d.label),n.push({key:wt(d,n.length),group:!0,data:d,label:f}),r(d[u],!0)}})}return r(e,!1),n}function Qe(e){const t=S({},e);return"props"in t||Object.defineProperty(t,"props",{get(){return t}}),t}function kn(e,t){if(!t||!t.length)return null;let o=!1;function n(i,u){let[r,...p]=u;if(!r)return[i];const a=i.split(r);return o=o||a.length>1,a.reduce((d,g)=>[...d,...n(g,p)],[]).filter(d=>d)}const l=n(e,t);return o?l:null}var eo=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(e);l<n.length;l++)t.indexOf(n[l])<0&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(o[n[l]]=e[n[l]]);return o};const to=e=>{const t=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}}}},no=fe({name:"SelectTrigger",inheritAttrs:!1,props:{dropdownAlign:Object,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},dropdownClassName:String,dropdownStyle:D.object,placement:String,empty:{type:Boolean,default:void 0},prefixCls:String,popupClassName:String,animation:String,transitionName:String,getPopupContainer:Function,dropdownRender:Function,containerWidth:Number,dropdownMatchSelectWidth:D.oneOfType([Number,Boolean]).def(!0),popupElement:D.any,direction:String,getTriggerDOMNode:Function,onPopupVisibleChange:Function,onPopupMouseEnter:Function,onPopupFocusin:Function,onPopupFocusout:Function},setup(e,t){let{slots:o,attrs:n,expose:l}=t;const i=R(()=>{const{dropdownMatchSelectWidth:r}=e;return to(r)}),u=ye();return l({getPopupElement:()=>u.value}),()=>{const r=S(S({},e),n),{empty:p=!1}=r,a=eo(r,["empty"]),{visible:d,dropdownAlign:g,prefixCls:f,popupElement:y,dropdownClassName:b,dropdownStyle:$,direction:T="ltr",placement:I,dropdownMatchSelectWidth:F,containerWidth:V,dropdownRender:M,animation:h,transitionName:N,getPopupContainer:E,getTriggerDOMNode:P,onPopupVisibleChange:L,onPopupMouseEnter:A,onPopupFocusin:B,onPopupFocusout:j}=a,Y=`${f}-dropdown`;let z=y;M&&(z=M({menuNode:y,props:e}));const G=h?`${Y}-${h}`:N,W=S({minWidth:`${V}px`},$);return typeof F=="number"?W.width=`${F}px`:F&&(W.width=`${V}px`),x(Nn,k(k({},e),{},{showAction:L?["click"]:[],hideAction:L?["click"]:[],popupPlacement:I||(T==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:i.value,prefixCls:Y,popupTransitionName:G,popupAlign:g,popupVisible:d,getPopupContainer:E,popupClassName:ue(b,{[`${Y}-empty`]:p}),popupStyle:W,getTriggerDOMNode:P,onPopupVisibleChange:L}),{default:o.default,popup:()=>x("div",{ref:u,onMouseenter:A,onFocusin:B,onFocusout:j},[z])})}}}),we=(e,t)=>{let{slots:o}=t;var n;const{class:l,customizeIcon:i,customizeIconProps:u,onMousedown:r,onClick:p}=e;let a;return typeof i=="function"?a=i(u):a=i,x("span",{class:l,onMousedown:d=>{d.preventDefault(),r&&r(d)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:p,"aria-hidden":!0},[a!==void 0?a:x("span",{class:l.split(/\s+/).map(d=>`${d}-icon`)},[(n=o.default)===null||n===void 0?void 0:n.call(o)])])};we.inheritAttrs=!1;we.displayName="TransBtn";we.props={class:String,customizeIcon:D.any,customizeIconProps:D.any,onMousedown:Function,onClick:Function};const oo={inputRef:D.any,prefixCls:String,id:String,inputElement:D.VueNode,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,editable:{type:Boolean,default:void 0},activeDescendantId:String,value:String,open:{type:Boolean,default:void 0},tabindex:D.oneOfType([D.number,D.string]),attrs:D.object,onKeydown:{type:Function},onMousedown:{type:Function},onChange:{type:Function},onPaste:{type:Function},onCompositionstart:{type:Function},onCompositionend:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},Rt=fe({compatConfig:{MODE:3},name:"SelectInput",inheritAttrs:!1,props:oo,setup(e){let t=null;const o=Ne("VCSelectContainerEvent");return()=>{var n;const{prefixCls:l,id:i,inputElement:u,disabled:r,tabindex:p,autofocus:a,autocomplete:d,editable:g,activeDescendantId:f,value:y,onKeydown:b,onMousedown:$,onChange:T,onPaste:I,onCompositionstart:F,onCompositionend:V,onFocus:M,onBlur:h,open:N,inputRef:E,attrs:P}=e;let L=u||vn(x("input",null,null),[[Ln]]);const A=L.props||{},{onKeydown:B,onInput:j,onFocus:Y,onBlur:z,onMousedown:G,onCompositionstart:W,onCompositionend:te,style:ie}=A;return L=Et(L,S(S(S(S(S({type:"search"},A),{id:i,ref:E,disabled:r,tabindex:p,autocomplete:d||"off",autofocus:a,class:ue(`${l}-selection-search-input`,(n=L?.props)===null||n===void 0?void 0:n.class),role:"combobox","aria-expanded":N,"aria-haspopup":"listbox","aria-owns":`${i}_list`,"aria-autocomplete":"list","aria-controls":`${i}_list`,"aria-activedescendant":f}),P),{value:g?y:"",readonly:!g,unselectable:g?null:"on",style:S(S({},ie),{opacity:g?null:0}),onKeydown:m=>{b(m),B&&B(m)},onMousedown:m=>{$(m),G&&G(m)},onInput:m=>{T(m),j&&j(m)},onCompositionstart(m){F(m),W&&W(m)},onCompositionend(m){V(m),te&&te(m)},onPaste:I,onFocus:function(){clearTimeout(t),Y&&Y(arguments.length<=0?void 0:arguments[0]),M&&M(arguments.length<=0?void 0:arguments[0]),o?.focus(arguments.length<=0?void 0:arguments[0])},onBlur:function(){for(var m=arguments.length,H=new Array(m),C=0;C<m;C++)H[C]=arguments[C];t=setTimeout(()=>{z&&z(H[0]),h&&h(H[0]),o?.blur(H[0])},100)}}),L.type==="textarea"?{}:{type:"search"}),!0,!0),L}}}),lo=Symbol("TreeSelectLegacyContextPropsKey");function nt(){return Ne(lo,{})}const io={id:String,prefixCls:String,values:D.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:D.any,placeholder:D.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:D.oneOfType([D.number,D.string]),removeIcon:D.any,choiceTransitionName:String,maxTagCount:D.oneOfType([D.number,D.string]),maxTagTextLength:Number,maxTagPlaceholder:D.any.def(()=>e=>`+ ${e.length} ...`),tagRender:Function,onToggleOpen:{type:Function},onRemove:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},It=e=>{e.preventDefault(),e.stopPropagation()},ao=fe({name:"MultipleSelectSelector",inheritAttrs:!1,props:io,setup(e){const t=X(),o=X(0),n=X(!1),l=nt(),i=R(()=>`${e.prefixCls}-selection`),u=R(()=>e.open||e.mode==="tags"?e.searchValue:""),r=R(()=>e.mode==="tags"||e.showSearch&&(e.open||n.value));he(()=>{oe(u,()=>{o.value=t.value.scrollWidth},{flush:"post",immediate:!0})});function p(f,y,b,$,T){return x("span",{class:ue(`${i.value}-item`,{[`${i.value}-item-disabled`]:b}),title:typeof f=="string"||typeof f=="number"?f.toString():void 0},[x("span",{class:`${i.value}-item-content`},[y]),$&&x(we,{class:`${i.value}-item-remove`,onMousedown:It,onClick:T,customizeIcon:e.removeIcon},{default:()=>[Ge("×")]})])}function a(f,y,b,$,T,I){var F;const V=h=>{It(h),e.onToggleOpen(!open)};let M=I;return l.keyEntities&&(M=((F=l.keyEntities[f])===null||F===void 0?void 0:F.node)||{}),x("span",{key:f,onMousedown:V},[e.tagRender({label:y,value:f,disabled:b,closable:$,onClose:T,option:M})])}function d(f){const{disabled:y,label:b,value:$,option:T}=f,I=!e.disabled&&!y;let F=b;if(typeof e.maxTagTextLength=="number"&&(typeof b=="string"||typeof b=="number")){const M=String(F);M.length>e.maxTagTextLength&&(F=`${M.slice(0,e.maxTagTextLength)}...`)}const V=M=>{var h;M&&M.stopPropagation(),(h=e.onRemove)===null||h===void 0||h.call(e,f)};return typeof e.tagRender=="function"?a($,F,y,I,V,T):p(b,F,y,I,V)}function g(f){const{maxTagPlaceholder:y=$=>`+ ${$.length} ...`}=e,b=typeof y=="function"?y(f):y;return p(b,b,!1)}return()=>{const{id:f,prefixCls:y,values:b,open:$,inputRef:T,placeholder:I,disabled:F,autofocus:V,autocomplete:M,activeDescendantId:h,tabindex:N,onInputChange:E,onInputPaste:P,onInputKeyDown:L,onInputMouseDown:A,onInputCompositionStart:B,onInputCompositionEnd:j}=e,Y=x("div",{class:`${i.value}-search`,style:{width:o.value+"px"},key:"input"},[x(Rt,{inputRef:T,open:$,prefixCls:y,id:f,inputElement:null,disabled:F,autofocus:V,autocomplete:M,editable:r.value,activeDescendantId:h,value:u.value,onKeydown:L,onMousedown:A,onChange:E,onPaste:P,onCompositionstart:B,onCompositionend:j,tabindex:N,attrs:qe(e,!0),onFocus:()=>n.value=!0,onBlur:()=>n.value=!1},null),x("span",{ref:t,class:`${i.value}-search-mirror`,"aria-hidden":!0},[u.value,Ge(" ")])]),z=x(_n,{prefixCls:`${i.value}-overflow`,data:b,renderItem:d,renderRest:g,suffix:Y,itemKey:"key",maxCount:e.maxTagCount,key:"overflow"},null);return x(Me,null,[z,!b.length&&!u.value&&x("span",{class:`${i.value}-placeholder`},[I])])}}}),ro={inputElement:D.any,id:String,prefixCls:String,values:D.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:D.any,placeholder:D.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:D.oneOfType([D.number,D.string]),activeValue:String,backfill:{type:Boolean,default:void 0},optionLabelRender:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},ot=fe({name:"SingleSelector",setup(e){const t=X(!1),o=R(()=>e.mode==="combobox"),n=R(()=>o.value||e.showSearch),l=R(()=>{let a=e.searchValue||"";return o.value&&e.activeValue&&!t.value&&(a=e.activeValue),a}),i=nt();oe([o,()=>e.activeValue],()=>{o.value&&(t.value=!1)},{immediate:!0});const u=R(()=>e.mode!=="combobox"&&!e.open&&!e.showSearch?!1:!!l.value),r=R(()=>{const a=e.values[0];return a&&(typeof a.label=="string"||typeof a.label=="number")?a.label.toString():void 0}),p=()=>{if(e.values[0])return null;const a=u.value?{visibility:"hidden"}:void 0;return x("span",{class:`${e.prefixCls}-selection-placeholder`,style:a},[e.placeholder])};return()=>{var a,d,g,f;const{inputElement:y,prefixCls:b,id:$,values:T,inputRef:I,disabled:F,autofocus:V,autocomplete:M,activeDescendantId:h,open:N,tabindex:E,optionLabelRender:P,onInputKeyDown:L,onInputMouseDown:A,onInputChange:B,onInputPaste:j,onInputCompositionStart:Y,onInputCompositionEnd:z}=e,G=T[0];let W=null;if(G&&i.customSlots){const te=(a=G.key)!==null&&a!==void 0?a:G.value,ie=((d=i.keyEntities[te])===null||d===void 0?void 0:d.node)||{};W=i.customSlots[(g=ie.slots)===null||g===void 0?void 0:g.title]||i.customSlots.title||G.label,typeof W=="function"&&(W=W(ie))}else W=P&&G?P(G.option):G?.label;return x(Me,null,[x("span",{class:`${b}-selection-search`},[x(Rt,{inputRef:I,prefixCls:b,id:$,open:N,inputElement:y,disabled:F,autofocus:V,autocomplete:M,editable:n.value,activeDescendantId:h,value:l.value,onKeydown:L,onMousedown:A,onChange:te=>{t.value=!0,B(te)},onPaste:j,onCompositionstart:Y,onCompositionend:z,tabindex:E,attrs:qe(e,!0)},null)]),!o.value&&G&&!u.value&&x("span",{class:`${b}-selection-item`,title:r.value},[x(Me,{key:(f=G.key)!==null&&f!==void 0?f:G.value},[W])]),p()])}}});ot.props=ro;ot.inheritAttrs=!1;function so(e){return![_.ESC,_.SHIFT,_.BACKSPACE,_.TAB,_.WIN_KEY,_.ALT,_.META,_.WIN_KEY_RIGHT,_.CTRL,_.SEMICOLON,_.EQUALS,_.CAPS_LOCK,_.CONTEXT_MENU,_.F1,_.F2,_.F3,_.F4,_.F5,_.F6,_.F7,_.F8,_.F9,_.F10,_.F11,_.F12].includes(e)}function Vt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=null,o;Fe(()=>{clearTimeout(o)});function n(l){(l||t===null)&&(t=l),clearTimeout(o),o=setTimeout(()=>{t=null},e)}return[()=>t,n]}function Pe(){const e=t=>{e.current=t};return e}const uo=fe({name:"Selector",inheritAttrs:!1,props:{id:String,prefixCls:String,showSearch:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},values:D.array,multiple:{type:Boolean,default:void 0},mode:String,searchValue:String,activeValue:String,inputElement:D.any,autofocus:{type:Boolean,default:void 0},activeDescendantId:String,tabindex:D.oneOfType([D.number,D.string]),disabled:{type:Boolean,default:void 0},placeholder:D.any,removeIcon:D.any,maxTagCount:D.oneOfType([D.number,D.string]),maxTagTextLength:Number,maxTagPlaceholder:D.any,tagRender:Function,optionLabelRender:Function,tokenWithEnter:{type:Boolean,default:void 0},choiceTransitionName:String,onToggleOpen:{type:Function},onSearch:Function,onSearchSubmit:Function,onRemove:Function,onInputKeyDown:{type:Function},domRef:Function},setup(e,t){let{expose:o}=t;const n=Pe();let l=!1;const[i,u]=Vt(0),r=I=>{const{which:F}=I;(F===_.UP||F===_.DOWN)&&I.preventDefault(),e.onInputKeyDown&&e.onInputKeyDown(I),F===_.ENTER&&e.mode==="tags"&&!l&&!e.open&&e.onSearchSubmit(I.target.value),so(F)&&e.onToggleOpen(!0)},p=()=>{u(!0)};let a=null;const d=I=>{e.onSearch(I,!0,l)!==!1&&e.onToggleOpen(!0)},g=()=>{l=!0},f=I=>{l=!1,e.mode!=="combobox"&&d(I.target.value)},y=I=>{let{target:{value:F}}=I;if(e.tokenWithEnter&&a&&/[\r\n]/.test(a)){const V=a.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");F=F.replace(V,a)}a=null,d(F)},b=I=>{const{clipboardData:F}=I;a=F.getData("text")},$=I=>{let{target:F}=I;F!==n.current&&(document.body.style.msTouchAction!==void 0?setTimeout(()=>{n.current.focus()}):n.current.focus())},T=I=>{const F=i();I.target!==n.current&&!F&&I.preventDefault(),(e.mode!=="combobox"&&(!e.showSearch||!F)||!e.open)&&(e.open&&e.onSearch("",!0,!1),e.onToggleOpen())};return o({focus:()=>{n.current.focus()},blur:()=>{n.current.blur()}}),()=>{const{prefixCls:I,domRef:F,mode:V}=e,M={inputRef:n,onInputKeyDown:r,onInputMouseDown:p,onInputChange:y,onInputPaste:b,onInputCompositionStart:g,onInputCompositionEnd:f},h=V==="multiple"||V==="tags"?x(ao,k(k({},e),M),null):x(ot,k(k({},e),M),null);return x("div",{ref:F,class:`${I}-selector`,onClick:$,onMousedown:T},[h])}}});function co(e,t,o){function n(l){var i,u,r;let p=l.target;p.shadowRoot&&l.composed&&(p=l.composedPath()[0]||p);const a=[(i=e[0])===null||i===void 0?void 0:i.value,(r=(u=e[1])===null||u===void 0?void 0:u.value)===null||r===void 0?void 0:r.getPopupElement()];t.value&&a.every(d=>d&&!d.contains(p)&&d!==p)&&o(!1)}he(()=>{window.addEventListener("mousedown",n)}),Fe(()=>{window.removeEventListener("mousedown",n)})}function fo(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10;const t=X(!1);let o;const n=()=>{clearTimeout(o)};return he(()=>{n()}),[t,(i,u)=>{n(),o=setTimeout(()=>{t.value=i,u&&u()},e)},n]}const Ht=Symbol("BaseSelectContextKey");function po(e){return Je(Ht,e)}function mo(){return Ne(Ht,{})}function Nt(e){if(!gn(e))return Ce(e);const t=new Proxy({},{get(o,n,l){return Reflect.get(e.value,n,l)},set(o,n,l){return e.value[n]=l,!0},deleteProperty(o,n){return Reflect.deleteProperty(e.value,n)},has(o,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return Ce(t)}var vo=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(e);l<n.length;l++)t.indexOf(n[l])<0&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(o[n[l]]=e[n[l]]);return o};const go=["value","onChange","removeIcon","placeholder","autofocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabindex","OptionList","notFoundContent"],ho=()=>({prefixCls:String,id:String,omitDomProps:Array,displayValues:Array,onDisplayValuesChange:Function,activeValue:String,activeDescendantId:String,onActiveValueChange:Function,searchValue:String,onSearch:Function,onSearchSplit:Function,maxLength:Number,OptionList:D.any,emptyOptions:Boolean}),Lt=()=>({showSearch:{type:Boolean,default:void 0},tagRender:{type:Function},optionLabelRender:{type:Function},direction:{type:String},tabindex:Number,autofocus:Boolean,notFoundContent:D.any,placeholder:D.any,onClear:Function,choiceTransitionName:String,mode:String,disabled:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{type:Function},getInputElement:{type:Function},getRawInputElement:{type:Function},maxTagTextLength:Number,maxTagCount:{type:[String,Number]},maxTagPlaceholder:D.any,tokenSeparators:{type:Array},allowClear:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},inputIcon:D.any,clearIcon:D.any,removeIcon:D.any,animation:String,transitionName:String,dropdownStyle:{type:Object},dropdownClassName:String,dropdownMatchSelectWidth:{type:[Boolean,Number],default:void 0},dropdownRender:{type:Function},dropdownAlign:Object,placement:{type:String},getPopupContainer:{type:Function},showAction:{type:Array},onBlur:{type:Function},onFocus:{type:Function},onKeyup:Function,onKeydown:Function,onMousedown:Function,onPopupScroll:Function,onInputKeyDown:Function,onMouseenter:Function,onMouseleave:Function,onClick:Function}),bo=()=>S(S({},ho()),Lt());function Bt(e){return e==="tags"||e==="multiple"}const So=fe({compatConfig:{MODE:3},name:"BaseSelect",inheritAttrs:!1,props:ke(bo(),{showAction:[],notFoundContent:"Not Found"}),setup(e,t){let{attrs:o,expose:n,slots:l}=t;const i=R(()=>Bt(e.mode)),u=R(()=>e.showSearch!==void 0?e.showSearch:i.value||e.mode==="combobox"),r=X(!1);he(()=>{r.value=An()});const p=nt(),a=X(null),d=Pe(),g=X(null),f=X(null),y=X(null),b=ye(!1),[$,T,I]=fo();n({focus:()=>{var s;(s=f.value)===null||s===void 0||s.focus()},blur:()=>{var s;(s=f.value)===null||s===void 0||s.blur()},scrollTo:s=>{var c;return(c=y.value)===null||c===void 0?void 0:c.scrollTo(s)}});const M=R(()=>{var s;if(e.mode!=="combobox")return e.searchValue;const c=(s=e.displayValues[0])===null||s===void 0?void 0:s.value;return typeof c=="string"||typeof c=="number"?String(c):""}),h=e.open!==void 0?e.open:e.defaultOpen,N=X(h),E=X(h),P=s=>{N.value=e.open!==void 0?e.open:s,E.value=N.value};oe(()=>e.open,()=>{P(e.open)});const L=R(()=>!e.notFoundContent&&e.emptyOptions);Ee(()=>{E.value=N.value,(e.disabled||L.value&&E.value&&e.mode==="combobox")&&(E.value=!1)});const A=R(()=>L.value?!1:E.value),B=s=>{const c=s!==void 0?s:!E.value;E.value!==c&&!e.disabled&&(P(c),e.onDropdownVisibleChange&&e.onDropdownVisibleChange(c))},j=R(()=>(e.tokenSeparators||[]).some(s=>[`
`,`\r
`].includes(s))),Y=(s,c,O)=>{var w,K;let q=!0,J=s;(w=e.onActiveValueChange)===null||w===void 0||w.call(e,null);const Z=O?null:kn(s,e.tokenSeparators);return e.mode!=="combobox"&&Z&&(J="",(K=e.onSearchSplit)===null||K===void 0||K.call(e,Z),B(!1),q=!1),e.onSearch&&M.value!==J&&e.onSearch(J,{source:c?"typing":"effect"}),q},z=s=>{var c;!s||!s.trim()||(c=e.onSearch)===null||c===void 0||c.call(e,s,{source:"submit"})};oe(E,()=>{!E.value&&!i.value&&e.mode!=="combobox"&&Y("",!1,!1)},{immediate:!0,flush:"post"}),oe(()=>e.disabled,()=>{N.value&&e.disabled&&P(!1),e.disabled&&!b.value&&T(!1)},{immediate:!0});const[G,W]=Vt(),te=function(s){var c;const O=G(),{which:w}=s;if(w===_.ENTER&&(e.mode!=="combobox"&&s.preventDefault(),E.value||B(!0)),W(!!M.value),w===_.BACKSPACE&&!O&&i.value&&!M.value&&e.displayValues.length){const Z=[...e.displayValues];let Q=null;for(let le=Z.length-1;le>=0;le-=1){const ae=Z[le];if(!ae.disabled){Z.splice(le,1),Q=ae;break}}Q&&e.onDisplayValuesChange(Z,{type:"remove",values:[Q]})}for(var K=arguments.length,q=new Array(K>1?K-1:0),J=1;J<K;J++)q[J-1]=arguments[J];E.value&&y.value&&y.value.onKeydown(s,...q),(c=e.onKeydown)===null||c===void 0||c.call(e,s,...q)},ie=function(s){for(var c=arguments.length,O=new Array(c>1?c-1:0),w=1;w<c;w++)O[w-1]=arguments[w];E.value&&y.value&&y.value.onKeyup(s,...O),e.onKeyup&&e.onKeyup(s,...O)},m=s=>{const c=e.displayValues.filter(O=>O!==s);e.onDisplayValuesChange(c,{type:"remove",values:[s]})},H=X(!1),C=function(){T(!0),e.disabled||(e.onFocus&&!H.value&&e.onFocus(...arguments),e.showAction&&e.showAction.includes("focus")&&B(!0)),H.value=!0},U=ye(!1),ne=function(){if(U.value||(b.value=!0,T(!1,()=>{H.value=!1,b.value=!1,B(!1)}),e.disabled))return;const s=M.value;s&&(e.mode==="tags"?e.onSearch(s,{source:"submit"}):e.mode==="multiple"&&e.onSearch("",{source:"blur"})),e.onBlur&&e.onBlur(...arguments)},re=()=>{U.value=!0},se=()=>{U.value=!1};Je("VCSelectContainerEvent",{focus:C,blur:ne});const ee=[];he(()=>{ee.forEach(s=>clearTimeout(s)),ee.splice(0,ee.length)}),Fe(()=>{ee.forEach(s=>clearTimeout(s)),ee.splice(0,ee.length)});const ce=function(s){var c,O;const{target:w}=s,K=(c=g.value)===null||c===void 0?void 0:c.getPopupElement();if(K&&K.contains(w)){const Q=setTimeout(()=>{var le;const ae=ee.indexOf(Q);ae!==-1&&ee.splice(ae,1),I(),!r.value&&!K.contains(document.activeElement)&&((le=f.value)===null||le===void 0||le.focus())});ee.push(Q)}for(var q=arguments.length,J=new Array(q>1?q-1:0),Z=1;Z<q;Z++)J[Z-1]=arguments[Z];(O=e.onMousedown)===null||O===void 0||O.call(e,s,...J)},de=X(null),v=()=>{};return he(()=>{oe(A,()=>{var s;if(A.value){const c=Math.ceil((s=a.value)===null||s===void 0?void 0:s.offsetWidth);de.value!==c&&!Number.isNaN(c)&&(de.value=c)}},{immediate:!0,flush:"post"})}),co([a,g],A,B),po(Nt(S(S({},hn(e)),{open:E,triggerOpen:A,showSearch:u,multiple:i,toggleOpen:B}))),()=>{const s=S(S({},e),o),{prefixCls:c,id:O,open:w,defaultOpen:K,mode:q,showSearch:J,searchValue:Z,onSearch:Q,allowClear:le,clearIcon:ae,showArrow:De,inputIcon:Re,disabled:xe,loading:Ve,getInputElement:rt,getPopupContainer:Yt,placement:Gt,animation:Xt,transitionName:Qt,dropdownStyle:qt,dropdownClassName:Jt,dropdownMatchSelectWidth:Zt,dropdownRender:kt,dropdownAlign:en,showAction:rl,direction:tn,tokenSeparators:sl,tagRender:nn,optionLabelRender:on,onPopupScroll:ul,onDropdownVisibleChange:cl,onFocus:dl,onBlur:fl,onKeyup:pl,onKeydown:ml,onMousedown:vl,onClear:_e,omitDomProps:Ae,getRawInputElement:st,displayValues:He,onDisplayValuesChange:ln,emptyOptions:an,activeDescendantId:rn,activeValue:sn,OptionList:un}=s,cn=vo(s,["prefixCls","id","open","defaultOpen","mode","showSearch","searchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","disabled","loading","getInputElement","getPopupContainer","placement","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","optionLabelRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyup","onKeydown","onMousedown","onClear","omitDomProps","getRawInputElement","displayValues","onDisplayValuesChange","emptyOptions","activeDescendantId","activeValue","OptionList"]),ut=q==="combobox"&&rt&&rt()||null,$e=typeof st=="function"&&st(),ze=S({},cn);let ct;$e&&(ct=Se=>{B(Se)}),go.forEach(Se=>{delete ze[Se]}),Ae?.forEach(Se=>{delete ze[Se]});const dt=De!==void 0?De:Ve||!i.value&&q!=="combobox";let ft;dt&&(ft=x(we,{class:ue(`${c}-arrow`,{[`${c}-arrow-loading`]:Ve}),customizeIcon:Re,customizeIconProps:{loading:Ve,searchValue:M.value,open:E.value,focused:$.value,showSearch:u.value}},null));let pt;const dn=()=>{_e?.(),ln([],{type:"clear",values:He}),Y("",!1,!1)};!xe&&le&&(He.length||M.value)&&(pt=x(we,{class:`${c}-clear`,onMousedown:dn,customizeIcon:ae},{default:()=>[Ge("×")]}));const fn=x(un,{ref:y},S(S({},p.customSlots),{option:l.option})),pn=ue(c,o.class,{[`${c}-focused`]:$.value,[`${c}-multiple`]:i.value,[`${c}-single`]:!i.value,[`${c}-allow-clear`]:le,[`${c}-show-arrow`]:dt,[`${c}-disabled`]:xe,[`${c}-loading`]:Ve,[`${c}-open`]:E.value,[`${c}-customize-input`]:ut,[`${c}-show-search`]:u.value}),mt=x(no,{ref:g,disabled:xe,prefixCls:c,visible:A.value,popupElement:fn,containerWidth:de.value,animation:Xt,transitionName:Qt,dropdownStyle:qt,dropdownClassName:Jt,direction:tn,dropdownMatchSelectWidth:Zt,dropdownRender:kt,dropdownAlign:en,placement:Gt,getPopupContainer:Yt,empty:an,getTriggerDOMNode:()=>d.current,onPopupVisibleChange:ct,onPopupMouseEnter:v,onPopupFocusin:re,onPopupFocusout:se},{default:()=>$e?Ze($e)&&Et($e,{ref:d},!1,!0):x(uo,k(k({},e),{},{domRef:d,prefixCls:c,inputElement:ut,ref:f,id:O,showSearch:u.value,mode:q,activeDescendantId:rn,tagRender:nn,optionLabelRender:on,values:He,open:E.value,onToggleOpen:B,activeValue:sn,searchValue:M.value,onSearch:Y,onSearchSubmit:z,onRemove:m,tokenWithEnter:j.value}),null)});let We;return $e?We=mt:We=x("div",k(k({},ze),{},{class:pn,ref:a,onMousedown:ce,onKeydown:te,onKeyup:ie}),[$.value&&!E.value&&x("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},[`${He.map(Se=>{let{label:vt,value:mn}=Se;return["number","string"].includes(typeof vt)?vt:mn}).join(", ")}`]),mt,ft,pt]),We}}}),Be=(e,t)=>{let{height:o,offset:n,prefixCls:l,onInnerResize:i}=e,{slots:u}=t;var r;let p={},a={display:"flex",flexDirection:"column"};return n!==void 0&&(p={height:`${o}px`,position:"relative",overflow:"hidden"},a=S(S({},a),{transform:`translateY(${n}px)`,position:"absolute",left:0,right:0,top:0})),x("div",{style:p},[x(zn,{onResize:d=>{let{offsetHeight:g}=d;g&&i&&i()}},{default:()=>[x("div",{style:a,class:ue({[`${l}-holder-inner`]:l})},[(r=u.default)===null||r===void 0?void 0:r.call(u)])]})])};Be.displayName="Filter";Be.inheritAttrs=!1;Be.props={prefixCls:String,height:Number,offset:Number,onInnerResize:Function};const _t=(e,t)=>{let{setRef:o}=e,{slots:n}=t;var l;const i=Pt((l=n.default)===null||l===void 0?void 0:l.call(n));return i&&i.length?bn(i[0],{ref:o}):i};_t.props={setRef:{type:Function,default:()=>{}}};const yo=20;function Ct(e){return"touches"in e?e.touches[0].pageY:e.pageY}const wo=fe({compatConfig:{MODE:3},name:"ScrollBar",inheritAttrs:!1,props:{prefixCls:String,scrollTop:Number,scrollHeight:Number,height:Number,count:Number,onScroll:{type:Function},onStartMove:{type:Function},onStopMove:{type:Function}},setup(){return{moveRaf:null,scrollbarRef:Pe(),thumbRef:Pe(),visibleTimeout:null,state:Ce({dragging:!1,pageY:null,startTop:null,visible:!1})}},watch:{scrollTop:{handler(){this.delayHidden()},flush:"post"}},mounted(){var e,t;(e=this.scrollbarRef.current)===null||e===void 0||e.addEventListener("touchstart",this.onScrollbarTouchStart,ge?{passive:!1}:!1),(t=this.thumbRef.current)===null||t===void 0||t.addEventListener("touchstart",this.onMouseDown,ge?{passive:!1}:!1)},beforeUnmount(){this.removeEvents(),clearTimeout(this.visibleTimeout)},methods:{delayHidden(){clearTimeout(this.visibleTimeout),this.state.visible=!0,this.visibleTimeout=setTimeout(()=>{this.state.visible=!1},2e3)},onScrollbarTouchStart(e){e.preventDefault()},onContainerMouseDown(e){e.stopPropagation(),e.preventDefault()},patchEvents(){window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp),this.thumbRef.current.addEventListener("touchmove",this.onMouseMove,ge?{passive:!1}:!1),this.thumbRef.current.addEventListener("touchend",this.onMouseUp)},removeEvents(){window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp),this.scrollbarRef.current.removeEventListener("touchstart",this.onScrollbarTouchStart,ge?{passive:!1}:!1),this.thumbRef.current&&(this.thumbRef.current.removeEventListener("touchstart",this.onMouseDown,ge?{passive:!1}:!1),this.thumbRef.current.removeEventListener("touchmove",this.onMouseMove,ge?{passive:!1}:!1),this.thumbRef.current.removeEventListener("touchend",this.onMouseUp)),me.cancel(this.moveRaf)},onMouseDown(e){const{onStartMove:t}=this.$props;S(this.state,{dragging:!0,pageY:Ct(e),startTop:this.getTop()}),t(),this.patchEvents(),e.stopPropagation(),e.preventDefault()},onMouseMove(e){const{dragging:t,pageY:o,startTop:n}=this.state,{onScroll:l}=this.$props;if(me.cancel(this.moveRaf),t){const i=Ct(e)-o,u=n+i,r=this.getEnableScrollRange(),p=this.getEnableHeightRange(),a=p?u/p:0,d=Math.ceil(a*r);this.moveRaf=me(()=>{l(d)})}},onMouseUp(){const{onStopMove:e}=this.$props;this.state.dragging=!1,e(),this.removeEvents()},getSpinHeight(){const{height:e,scrollHeight:t}=this.$props;let o=e/t*100;return o=Math.max(o,yo),o=Math.min(o,e/2),Math.floor(o)},getEnableScrollRange(){const{scrollHeight:e,height:t}=this.$props;return e-t||0},getEnableHeightRange(){const{height:e}=this.$props,t=this.getSpinHeight();return e-t||0},getTop(){const{scrollTop:e}=this.$props,t=this.getEnableScrollRange(),o=this.getEnableHeightRange();return e===0||t===0?0:e/t*o},showScroll(){const{height:e,scrollHeight:t}=this.$props;return t>e}},render(){const{dragging:e,visible:t}=this.state,{prefixCls:o}=this.$props,n=this.getSpinHeight()+"px",l=this.getTop()+"px",i=this.showScroll(),u=i&&t;return x("div",{ref:this.scrollbarRef,class:ue(`${o}-scrollbar`,{[`${o}-scrollbar-show`]:i}),style:{width:"8px",top:0,bottom:0,right:0,position:"absolute",display:u?void 0:"none"},onMousedown:this.onContainerMouseDown,onMousemove:this.delayHidden},[x("div",{ref:this.thumbRef,class:ue(`${o}-scrollbar-thumb`,{[`${o}-scrollbar-thumb-moving`]:e}),style:{width:"100%",height:n,top:l,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:"99px",cursor:"pointer",userSelect:"none"},onMousedown:this.onMouseDown},null)])}});function Io(e,t,o,n){const l=new Map,i=new Map,u=ye(Symbol("update"));oe(e,()=>{u.value=Symbol("update")});let r;function p(){me.cancel(r)}function a(){p(),r=me(()=>{l.forEach((g,f)=>{if(g&&g.offsetParent){const{offsetHeight:y}=g;i.get(f)!==y&&(u.value=Symbol("update"),i.set(f,g.offsetHeight))}})})}function d(g,f){const y=t(g);l.get(y),f?(l.set(y,f.$el||f),a()):l.delete(y)}return Sn(()=>{p()}),[d,a,i,u]}function Co(e,t,o,n,l,i,u,r){let p;return a=>{if(a==null){r();return}me.cancel(p);const d=t.value,g=n.itemHeight;if(typeof a=="number")u(a);else if(a&&typeof a=="object"){let f;const{align:y}=a;"index"in a?{index:f}=a:f=d.findIndex(T=>l(T)===a.key);const{offset:b=0}=a,$=(T,I)=>{if(T<0||!e.value)return;const F=e.value.clientHeight;let V=!1,M=I;if(F){const h=I||y;let N=0,E=0,P=0;const L=Math.min(d.length,f);for(let j=0;j<=L;j+=1){const Y=l(d[j]);E=N;const z=o.get(Y);P=E+(z===void 0?g:z),N=P,j===f&&z===void 0&&(V=!0)}const A=e.value.scrollTop;let B=null;switch(h){case"top":B=E-b;break;case"bottom":B=P-F+b;break;default:{const j=A+F;E<A?M="top":P>j&&(M="bottom")}}B!==null&&B!==A&&u(B)}p=me(()=>{V&&i(),$(T-1,M)},2)};$(5)}}}const xo=typeof navigator=="object"&&/Firefox/i.test(navigator.userAgent),At=((e,t)=>{let o=!1,n=null;function l(){clearTimeout(n),o=!0,n=setTimeout(()=>{o=!1},50)}return function(i){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=i<0&&e.value||i>0&&t.value;return u&&r?(clearTimeout(n),o=!1):(!r||o)&&l(),!o&&r}});function $o(e,t,o,n){let l=0,i=null,u=null,r=!1;const p=At(t,o);function a(g){if(!e.value)return;me.cancel(i);const{deltaY:f}=g;l+=f,u=f,!p(f)&&(xo||g.preventDefault(),i=me(()=>{n(l*(r?10:1)),l=0}))}function d(g){e.value&&(r=g.detail===u)}return[a,d]}const Oo=14/15;function To(e,t,o){let n=!1,l=0,i=null,u=null;const r=()=>{i&&(i.removeEventListener("touchmove",p),i.removeEventListener("touchend",a))},p=f=>{if(n){const y=Math.ceil(f.touches[0].pageY);let b=l-y;l=y,o(b)&&f.preventDefault(),clearInterval(u),u=setInterval(()=>{b*=Oo,(!o(b,!0)||Math.abs(b)<=.1)&&clearInterval(u)},16)}},a=()=>{n=!1,r()},d=f=>{r(),f.touches.length===1&&!n&&(n=!0,l=Math.ceil(f.touches[0].pageY),i=f.target,i.addEventListener("touchmove",p,{passive:!1}),i.addEventListener("touchend",a))},g=()=>{};he(()=>{document.addEventListener("touchmove",g,{passive:!1}),oe(e,f=>{t.value.removeEventListener("touchstart",d),r(),clearInterval(u),f&&t.value.addEventListener("touchstart",d,{passive:!1})},{immediate:!0})}),Fe(()=>{document.removeEventListener("touchmove",g)})}var Mo=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(e);l<n.length;l++)t.indexOf(n[l])<0&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(o[n[l]]=e[n[l]]);return o};const Eo=[],Po={overflowY:"auto",overflowAnchor:"none"};function Fo(e,t,o,n,l,i){let{getKey:u}=i;return e.slice(t,o+1).map((r,p)=>{const a=t+p,d=l(r,a,{}),g=u(r);return x(_t,{key:g,setRef:f=>n(r,f)},{default:()=>[d]})})}const Do=fe({compatConfig:{MODE:3},name:"List",inheritAttrs:!1,props:{prefixCls:String,data:D.array,height:Number,itemHeight:Number,fullHeight:{type:Boolean,default:void 0},itemKey:{type:[String,Number,Function],required:!0},component:{type:[String,Object]},virtual:{type:Boolean,default:void 0},children:Function,onScroll:Function,onMousedown:Function,onMouseenter:Function,onVisibleChange:Function},setup(e,t){let{expose:o}=t;const n=R(()=>{const{height:m,itemHeight:H,virtual:C}=e;return!!(C!==!1&&m&&H)}),l=R(()=>{const{height:m,itemHeight:H,data:C}=e;return n.value&&C&&H*C.length>m}),i=Ce({scrollTop:0,scrollMoving:!1}),u=R(()=>e.data||Eo),r=X([]);oe(u,()=>{r.value=et(u.value).slice()},{immediate:!0});const p=X(m=>{});oe(()=>e.itemKey,m=>{typeof m=="function"?p.value=m:p.value=H=>H?.[m]},{immediate:!0});const a=X(),d=X(),g=X(),f=m=>p.value(m),y={getKey:f};function b(m){let H;typeof m=="function"?H=m(i.scrollTop):H=m;const C=N(H);a.value&&(a.value.scrollTop=C),i.scrollTop=C}const[$,T,I,F]=Io(r,f),V=Ce({scrollHeight:void 0,start:0,end:0,offset:void 0}),M=X(0);he(()=>{Te(()=>{var m;M.value=((m=d.value)===null||m===void 0?void 0:m.offsetHeight)||0})}),yn(()=>{Te(()=>{var m;M.value=((m=d.value)===null||m===void 0?void 0:m.offsetHeight)||0})}),oe([n,r],()=>{n.value||S(V,{scrollHeight:void 0,start:0,end:r.value.length-1,offset:void 0})},{immediate:!0}),oe([n,r,M,l],()=>{n.value&&!l.value&&S(V,{scrollHeight:M.value,start:0,end:r.value.length-1,offset:void 0}),a.value&&(i.scrollTop=a.value.scrollTop)},{immediate:!0}),oe([l,n,()=>i.scrollTop,r,F,()=>e.height,M],()=>{if(!n.value||!l.value)return;let m=0,H,C,U;const ne=r.value.length,re=r.value,se=i.scrollTop,{itemHeight:ee,height:ce}=e,de=se+ce;for(let v=0;v<ne;v+=1){const s=re[v],c=f(s);let O=I.get(c);O===void 0&&(O=ee);const w=m+O;H===void 0&&w>=se&&(H=v,C=m),U===void 0&&w>de&&(U=v),m=w}H===void 0&&(H=0,C=0,U=Math.ceil(ce/ee)),U===void 0&&(U=ne-1),U=Math.min(U+1,ne),S(V,{scrollHeight:m,start:H,end:U,offset:C})},{immediate:!0});const h=R(()=>V.scrollHeight-e.height);function N(m){let H=m;return Number.isNaN(h.value)||(H=Math.min(H,h.value)),H=Math.max(H,0),H}const E=R(()=>i.scrollTop<=0),P=R(()=>i.scrollTop>=h.value),L=At(E,P);function A(m){b(m)}function B(m){var H;const{scrollTop:C}=m.currentTarget;C!==i.scrollTop&&b(C),(H=e.onScroll)===null||H===void 0||H.call(e,m)}const[j,Y]=$o(n,E,P,m=>{b(H=>H+m)});To(n,a,(m,H)=>L(m,H)?!1:(j({preventDefault(){},deltaY:m}),!0));function z(m){n.value&&m.preventDefault()}const G=()=>{a.value&&(a.value.removeEventListener("wheel",j,ge?{passive:!1}:!1),a.value.removeEventListener("DOMMouseScroll",Y),a.value.removeEventListener("MozMousePixelScroll",z))};Ee(()=>{Te(()=>{a.value&&(G(),a.value.addEventListener("wheel",j,ge?{passive:!1}:!1),a.value.addEventListener("DOMMouseScroll",Y),a.value.addEventListener("MozMousePixelScroll",z))})}),Fe(()=>{G()});const W=Co(a,r,I,e,f,T,b,()=>{var m;(m=g.value)===null||m===void 0||m.delayHidden()});o({scrollTo:W});const te=R(()=>{let m=null;return e.height&&(m=S({[e.fullHeight?"height":"maxHeight"]:e.height+"px"},Po),n.value&&(m.overflowY="hidden",i.scrollMoving&&(m.pointerEvents="none"))),m});return oe([()=>V.start,()=>V.end,r],()=>{if(e.onVisibleChange){const m=r.value.slice(V.start,V.end+1);e.onVisibleChange(m,r.value)}},{flush:"post"}),{state:i,mergedData:r,componentStyle:te,onFallbackScroll:B,onScrollBar:A,componentRef:a,useVirtual:n,calRes:V,collectHeight:T,setInstance:$,sharedConfig:y,scrollBarRef:g,fillerInnerRef:d,delayHideScrollBar:()=>{var m;(m=g.value)===null||m===void 0||m.delayHidden()}}},render(){const e=S(S({},this.$props),this.$attrs),{prefixCls:t="rc-virtual-list",height:o,itemHeight:n,fullHeight:l,data:i,itemKey:u,virtual:r,component:p="div",onScroll:a,children:d=this.$slots.default,style:g,class:f}=e,y=Mo(e,["prefixCls","height","itemHeight","fullHeight","data","itemKey","virtual","component","onScroll","children","style","class"]),b=ue(t,f),{scrollTop:$}=this.state,{scrollHeight:T,offset:I,start:F,end:V}=this.calRes,{componentStyle:M,onFallbackScroll:h,onScrollBar:N,useVirtual:E,collectHeight:P,sharedConfig:L,setInstance:A,mergedData:B,delayHideScrollBar:j}=this;return x("div",k({style:S(S({},g),{position:"relative"}),class:b},y),[x(p,{class:`${t}-holder`,style:M,ref:"componentRef",onScroll:h,onMouseenter:j},{default:()=>[x(Be,{prefixCls:t,height:T,offset:I,onInnerResize:P,ref:"fillerInnerRef"},{default:()=>Fo(B,F,V,A,d,L)})]}),E&&x(wo,{ref:"scrollBarRef",prefixCls:t,scrollTop:$,height:o,scrollHeight:T,count:B.length,onScroll:N,onStartMove:()=>{this.state.scrollMoving=!0},onStopMove:()=>{this.state.scrollMoving=!1}},null)])}});function Ro(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}const zt=Symbol("SelectContextKey");function Vo(e){return Je(zt,e)}function Ho(){return Ne(zt,{})}var No=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(e);l<n.length;l++)t.indexOf(n[l])<0&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(o[n[l]]=e[n[l]]);return o};function xt(e){return typeof e=="string"||typeof e=="number"}const Lo=fe({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,t){let{expose:o,slots:n}=t;const l=mo(),i=Ho(),u=R(()=>`${l.prefixCls}-item`),r=Wn(()=>i.flattenOptions,[()=>l.open,()=>i.flattenOptions],h=>h[0]),p=Pe(),a=h=>{h.preventDefault()},d=h=>{p.current&&p.current.scrollTo(typeof h=="number"?{index:h}:h)},g=function(h){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const E=r.value.length;for(let P=0;P<E;P+=1){const L=(h+P*N+E)%E,{group:A,data:B}=r.value[L];if(!A&&!B.disabled)return L}return-1},f=Ce({activeIndex:g(0)}),y=function(h){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;f.activeIndex=h;const E={source:N?"keyboard":"mouse"},P=r.value[h];if(!P){i.onActiveValue(null,-1,E);return}i.onActiveValue(P.value,h,E)};oe([()=>r.value.length,()=>l.searchValue],()=>{y(i.defaultActiveFirstOption!==!1?g(0):-1)},{immediate:!0});const b=h=>i.rawValues.has(h)&&l.mode!=="combobox";oe([()=>l.open,()=>l.searchValue],()=>{if(!l.multiple&&l.open&&i.rawValues.size===1){const h=Array.from(i.rawValues)[0],N=et(r.value).findIndex(E=>{let{data:P}=E;return P[i.fieldNames.value]===h});N!==-1&&(y(N),Te(()=>{d(N)}))}l.open&&Te(()=>{var h;(h=p.current)===null||h===void 0||h.scrollTo(void 0)})},{immediate:!0,flush:"post"});const $=h=>{h!==void 0&&i.onSelect(h,{selected:!i.rawValues.has(h)}),l.multiple||l.toggleOpen(!1)},T=h=>typeof h.label=="function"?h.label():h.label;function I(h){const N=r.value[h];if(!N)return null;const E=N.data||{},{value:P}=E,{group:L}=N,A=qe(E,!0),B=T(N);return N?x("div",k(k({"aria-label":typeof B=="string"&&!L?B:null},A),{},{key:h,role:L?"presentation":"option",id:`${l.id}_list_${h}`,"aria-selected":b(P)}),[P]):null}return o({onKeydown:h=>{const{which:N,ctrlKey:E}=h;switch(N){case _.N:case _.P:case _.UP:case _.DOWN:{let P=0;if(N===_.UP?P=-1:N===_.DOWN?P=1:Ro()&&E&&(N===_.N?P=1:N===_.P&&(P=-1)),P!==0){const L=g(f.activeIndex+P,P);d(L),y(L,!0)}break}case _.ENTER:{const P=r.value[f.activeIndex];P&&!P.data.disabled?$(P.value):$(void 0),l.open&&h.preventDefault();break}case _.ESC:l.toggleOpen(!1),l.open&&h.stopPropagation()}},onKeyup:()=>{},scrollTo:h=>{d(h)}}),()=>{const{id:h,notFoundContent:N,onPopupScroll:E}=l,{menuItemSelectedIcon:P,fieldNames:L,virtual:A,listHeight:B,listItemHeight:j}=i,Y=n.option,{activeIndex:z}=f,G=Object.keys(L).map(W=>L[W]);return r.value.length===0?x("div",{role:"listbox",id:`${h}_list`,class:`${u.value}-empty`,onMousedown:a},[N]):x(Me,null,[x("div",{role:"listbox",id:`${h}_list`,style:{height:0,width:0,overflow:"hidden"}},[I(z-1),I(z),I(z+1)]),x(Do,{itemKey:"key",ref:p,data:r.value,height:B,itemHeight:j,fullHeight:!1,onMousedown:a,onScroll:E,virtual:A},{default:(W,te)=>{var ie;const{group:m,groupOption:H,data:C,value:U}=W,{key:ne}=C,re=typeof W.label=="function"?W.label():W.label;if(m){const ae=(ie=C.title)!==null&&ie!==void 0?ie:xt(re)&&re;return x("div",{class:ue(u.value,`${u.value}-group`),title:ae},[Y?Y(C):re!==void 0?re:ne])}const{disabled:se,title:ee,children:ce,style:de,class:v,className:s}=C,c=No(C,["disabled","title","children","style","class","className"]),O=Le(c,G),w=b(U),K=`${u.value}-option`,q=ue(u.value,K,v,s,{[`${K}-grouped`]:H,[`${K}-active`]:z===te&&!se,[`${K}-disabled`]:se,[`${K}-selected`]:w}),J=T(W),Z=!P||typeof P=="function"||w,Q=typeof J=="number"?J:J||U;let le=xt(Q)?Q.toString():void 0;return ee!==void 0&&(le=ee),x("div",k(k({},O),{},{"aria-selected":w,class:q,title:le,onMousemove:ae=>{c.onMousemove&&c.onMousemove(ae),!(z===te||se)&&y(te)},onClick:ae=>{se||$(U),c.onClick&&c.onClick(ae)},style:de}),[x("div",{class:`${K}-content`},[Y?Y(C):Q]),Ze(P)||w,Z&&x(we,{class:`${u.value}-option-state`,customizeIcon:P,customizeIconProps:{isSelected:w}},{default:()=>[w?"✓":null]})])}})])}}});var Bo=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(e);l<n.length;l++)t.indexOf(n[l])<0&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(o[n[l]]=e[n[l]]);return o};function _o(e){const t=e,{key:o,children:n}=t,l=t.props,{value:i,disabled:u}=l,r=Bo(l,["value","disabled"]),p=n?.default;return S({key:o,value:i!==void 0?i:o,children:p,disabled:u||u===""},r)}function Wt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Pt(e).map((n,l)=>{var i;if(!Ze(n)||!n.type)return null;const{type:{isSelectOptGroup:u},key:r,children:p,props:a}=n;if(t||!u)return _o(n);const d=p&&p.default?p.default():void 0,g=a?.label||((i=p.label)===null||i===void 0?void 0:i.call(p))||r;return S(S({key:`__RC_SELECT_GRP__${r===null?l:String(r)}__`},a),{label:g,options:Wt(d||[])})}).filter(n=>n)}function Ao(e,t,o){const n=X(),l=X(),i=X(),u=X([]);return oe([e,t],()=>{e.value?u.value=et(e.value).slice():u.value=Wt(t.value)},{immediate:!0,deep:!0}),Ee(()=>{const r=u.value,p=new Map,a=new Map,d=o.value;function g(f){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(let b=0;b<f.length;b+=1){const $=f[b];!$[d.options]||y?(p.set($[d.value],$),a.set($[d.label],$)):g($[d.options],!0)}}g(r),n.value=r,l.value=p,i.value=a}),{options:n,valueOptions:l,labelOptions:i}}let $t=0;const zo=wn();function Wo(){let e;return zo?(e=$t,$t+=1):e="TEST_OR_SSR",e}function Ko(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ye("");const t=`rc_select_${Wo()}`;return e.value||t}function Kt(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function Ke(e,t){return Kt(e).join("").toUpperCase().includes(t)}const jo=((e,t,o,n,l)=>R(()=>{const i=o.value,u=l?.value,r=n?.value;if(!i||r===!1)return e.value;const{options:p,label:a,value:d}=t.value,g=[],f=typeof r=="function",y=i.toUpperCase(),b=f?r:(T,I)=>u?Ke(I[u],y):I[p]?Ke(I[a!=="children"?a:"label"],y):Ke(I[d],y),$=f?T=>Qe(T):T=>T;return e.value.forEach(T=>{if(T[p]){if(b(i,$(T)))g.push(T);else{const F=T[p].filter(V=>b(i,$(V)));F.length&&g.push(S(S({},T),{[p]:F}))}return}b(i,$(T))&&g.push(T)}),g})),Uo=((e,t)=>{const o=X({values:new Map,options:new Map});return[R(()=>{const{values:i,options:u}=o.value,r=e.value.map(d=>{var g;return d.label===void 0?S(S({},d),{label:(g=i.get(d.value))===null||g===void 0?void 0:g.label}):d}),p=new Map,a=new Map;return r.forEach(d=>{p.set(d.value,d),a.set(d.value,t.value.get(d.value)||u.get(d.value))}),o.value.values=p,o.value.options=a,r}),i=>t.value.get(i)||o.value.options.get(i)]}),Yo=["inputValue"];function jt(){return S(S({},Lt()),{prefixCls:String,id:String,backfill:{type:Boolean,default:void 0},fieldNames:Object,inputValue:String,searchValue:String,onSearch:Function,autoClearSearchValue:{type:Boolean,default:void 0},onSelect:Function,onDeselect:Function,filterOption:{type:[Boolean,Function],default:void 0},filterSort:Function,optionFilterProp:String,optionLabelProp:String,options:Array,defaultActiveFirstOption:{type:Boolean,default:void 0},virtual:{type:Boolean,default:void 0},listHeight:Number,listItemHeight:Number,menuItemSelectedIcon:D.any,mode:String,labelInValue:{type:Boolean,default:void 0},value:D.any,defaultValue:D.any,onChange:Function,children:Array})}function Go(e){return!e||typeof e!="object"}const Xo=fe({compatConfig:{MODE:3},name:"VcSelect",inheritAttrs:!1,props:ke(jt(),{prefixCls:"vc-select",autoClearSearchValue:!0,listHeight:200,listItemHeight:20,dropdownMatchSelectWidth:!0}),setup(e,t){let{expose:o,attrs:n,slots:l}=t;const i=Ko(ve(e,"id")),u=R(()=>Bt(e.mode)),r=R(()=>!!(!e.options&&e.children)),p=R(()=>e.filterOption===void 0&&e.mode==="combobox"?!1:e.filterOption),a=R(()=>Dt(e.fieldNames,r.value)),[d,g]=St("",{value:R(()=>e.searchValue!==void 0?e.searchValue:e.inputValue),postState:v=>v||""}),f=Ao(ve(e,"options"),ve(e,"children"),a),{valueOptions:y,labelOptions:b,options:$}=f,T=v=>Kt(v).map(c=>{var O,w;let K,q,J,Z;Go(c)?K=c:(J=c.key,q=c.label,K=(O=c.value)!==null&&O!==void 0?O:J);const Q=y.value.get(K);return Q&&(q===void 0&&(q=Q?.[e.optionLabelProp||a.value.label]),J===void 0&&(J=(w=Q?.key)!==null&&w!==void 0?w:K),Z=Q?.disabled),{label:q,value:K,key:J,disabled:Z,option:Q}}),[I,F]=St(e.defaultValue,{value:ve(e,"value")}),V=R(()=>{var v;const s=T(I.value);return e.mode==="combobox"&&!(!((v=s[0])===null||v===void 0)&&v.value)?[]:s}),[M,h]=Uo(V,y),N=R(()=>{if(!e.mode&&M.value.length===1){const v=M.value[0];if(v.value===null&&(v.label===null||v.label===void 0))return[]}return M.value.map(v=>{var s;return S(S({},v),{label:(s=typeof v.label=="function"?v.label():v.label)!==null&&s!==void 0?s:v.value})})}),E=R(()=>new Set(M.value.map(v=>v.value)));Ee(()=>{var v;if(e.mode==="combobox"){const s=(v=M.value[0])===null||v===void 0?void 0:v.value;s!=null&&g(String(s))}},{flush:"post"});const P=(v,s)=>{const c=s??v;return{[a.value.value]:v,[a.value.label]:c}},L=X();Ee(()=>{if(e.mode!=="tags"){L.value=$.value;return}const v=$.value.slice(),s=c=>y.value.has(c);[...M.value].sort((c,O)=>c.value<O.value?-1:1).forEach(c=>{const O=c.value;s(O)||v.push(P(O,c.label))}),L.value=v});const A=jo(L,a,d,p,ve(e,"optionFilterProp")),B=R(()=>e.mode!=="tags"||!d.value||A.value.some(v=>v[e.optionFilterProp||"value"]===d.value)?A.value:[P(d.value),...A.value]),j=R(()=>e.filterSort?[...B.value].sort((v,s)=>e.filterSort(v,s)):B.value),Y=R(()=>Zn(j.value,{fieldNames:a.value,childrenAsData:r.value})),z=v=>{const s=T(v);if(F(s),e.onChange&&(s.length!==M.value.length||s.some((c,O)=>{var w;return((w=M.value[O])===null||w===void 0?void 0:w.value)!==c?.value}))){const c=e.labelInValue?s.map(w=>S(S({},w),{originLabel:w.label,label:typeof w.label=="function"?w.label():w.label})):s.map(w=>w.value),O=s.map(w=>Qe(h(w.value)));e.onChange(u.value?c:c[0],u.value?O:O[0])}},[G,W]=gt(null),[te,ie]=gt(0),m=R(()=>e.defaultActiveFirstOption!==void 0?e.defaultActiveFirstOption:e.mode!=="combobox"),H=function(v,s){let{source:c="keyboard"}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};ie(s),e.backfill&&e.mode==="combobox"&&v!==null&&c==="keyboard"&&W(String(v))},C=(v,s)=>{const c=()=>{var O;const w=h(v),K=w?.[a.value.label];return[e.labelInValue?{label:typeof K=="function"?K():K,originLabel:K,value:v,key:(O=w?.key)!==null&&O!==void 0?O:v}:v,Qe(w)]};if(s&&e.onSelect){const[O,w]=c();e.onSelect(O,w)}else if(!s&&e.onDeselect){const[O,w]=c();e.onDeselect(O,w)}},U=(v,s)=>{let c;const O=u.value?s.selected:!0;O?c=u.value?[...M.value,v]:[v]:c=M.value.filter(w=>w.value!==v),z(c),C(v,O),e.mode==="combobox"?W(""):(!u.value||e.autoClearSearchValue)&&(g(""),W(""))},ne=(v,s)=>{z(v),(s.type==="remove"||s.type==="clear")&&s.values.forEach(c=>{C(c.value,!1)})},re=(v,s)=>{var c;if(g(v),W(null),s.source==="submit"){const O=(v||"").trim();if(O){const w=Array.from(new Set([...E.value,O]));z(w),C(O,!0),g("")}return}s.source!=="blur"&&(e.mode==="combobox"&&z(v),(c=e.onSearch)===null||c===void 0||c.call(e,v))},se=v=>{let s=v;e.mode!=="tags"&&(s=v.map(O=>{const w=b.value.get(O);return w?.value}).filter(O=>O!==void 0));const c=Array.from(new Set([...E.value,...s]));z(c),c.forEach(O=>{C(O,!0)})},ee=R(()=>e.virtual!==!1&&e.dropdownMatchSelectWidth!==!1);Vo(Nt(S(S({},f),{flattenOptions:Y,onActiveValue:H,defaultActiveFirstOption:m,onSelect:U,menuItemSelectedIcon:ve(e,"menuItemSelectedIcon"),rawValues:E,fieldNames:a,virtual:ee,listHeight:ve(e,"listHeight"),listItemHeight:ve(e,"listItemHeight"),childrenAsData:r})));const ce=ye();o({focus(){var v;(v=ce.value)===null||v===void 0||v.focus()},blur(){var v;(v=ce.value)===null||v===void 0||v.blur()},scrollTo(v){var s;(s=ce.value)===null||s===void 0||s.scrollTo(v)}});const de=R(()=>Le(e,["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"]));return()=>x(So,k(k(k({},de.value),n),{},{id:i,prefixCls:e.prefixCls,ref:ce,omitDomProps:Yo,mode:e.mode,displayValues:N.value,onDisplayValuesChange:ne,searchValue:d.value,onSearch:re,onSearchSplit:se,dropdownMatchSelectWidth:e.dropdownMatchSelectWidth,OptionList:Lo,emptyOptions:!Y.value.length,activeValue:G.value,activeDescendantId:`${i}_list_${te.value}`}),l)}}),lt=()=>null;lt.isSelectOption=!0;lt.displayName="ASelectOption";const it=()=>null;it.isSelectOptGroup=!0;it.displayName="ASelectOptGroup";var Qo={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};function Ot(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?Object(arguments[t]):{},n=Object.keys(o);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(o).filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable}))),n.forEach(function(l){qo(e,l,o[l])})}return e}function qo(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var at=function(t,o){var n=Ot({},t,o.attrs);return x(In,Ot({},n,{icon:Qo}),null)};at.displayName="DownOutlined";at.inheritAttrs=!1;function Jo(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{loading:o,multiple:n,prefixCls:l,hasFeedback:i,feedbackIcon:u,showArrow:r}=e,p=e.suffixIcon||t.suffixIcon&&t.suffixIcon(),a=e.clearIcon||t.clearIcon&&t.clearIcon(),d=e.menuItemSelectedIcon||t.menuItemSelectedIcon&&t.menuItemSelectedIcon(),g=e.removeIcon||t.removeIcon&&t.removeIcon(),f=a??x(Cn,null,null),y=I=>x(Me,null,[r!==!1&&I,i&&u]);let b=null;if(p!==void 0)b=y(p);else if(o)b=y(x(xn,{spin:!0},null));else{const I=`${l}-suffix`;b=F=>{let{open:V,showSearch:M}=F;return y(V&&M?x(Bn,{class:I},null):x(at,{class:I},null))}}let $=null;d!==void 0?$=d:n?$=x(Kn,null,null):$=null;let T=null;return g!==void 0?T=g:T=x($n,null,null),{clearIcon:f,suffixIcon:b,itemIcon:$,removeIcon:T}}const Tt=e=>{const{controlPaddingHorizontal:t}=e;return{position:"relative",display:"block",minHeight:e.controlHeight,padding:`${(e.controlHeight-e.fontSize*e.lineHeight)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,boxSizing:"border-box"}},Zo=e=>{const{antCls:t,componentCls:o}=e,n=`${o}-item`;return[{[`${o}-dropdown`]:S(S({},tt(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
&${t}-slide-up-enter${t}-slide-up-enter-active${o}-dropdown-placement-bottomLeft,
&${t}-slide-up-appear${t}-slide-up-appear-active${o}-dropdown-placement-bottomLeft
`]:{animationName:Jn},[`
&${t}-slide-up-enter${t}-slide-up-enter-active${o}-dropdown-placement-topLeft,
&${t}-slide-up-appear${t}-slide-up-appear-active${o}-dropdown-placement-topLeft
`]:{animationName:qn},[`&${t}-slide-up-leave${t}-slide-up-leave-active${o}-dropdown-placement-bottomLeft`]:{animationName:Qn},[`&${t}-slide-up-leave${t}-slide-up-leave-active${o}-dropdown-placement-topLeft`]:{animationName:Xn},"&-hidden":{display:"none"},"&-empty":{color:e.colorTextDisabled},[`${n}-empty`]:S(S({},Tt(e)),{color:e.colorTextDisabled}),[`${n}`]:S(S({},Tt(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":S({flex:"auto"},Xe),"&-state":{flex:"none"},[`&-active:not(${n}-option-disabled)`]:{backgroundColor:e.controlItemBgHover},[`&-selected:not(${n}-option-disabled)`]:{color:e.colorText,fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive,[`${n}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${n}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},yt(e,"slide-up"),yt(e,"slide-down"),bt(e,"move-up"),bt(e,"move-down")]},Ie=2;function Ut(e){let{controlHeightSM:t,controlHeight:o,lineWidth:n}=e;const l=(o-t)/2-n,i=Math.ceil(l/2);return[l,i]}function je(e,t){const{componentCls:o,iconCls:n}=e,l=`${o}-selection-overflow`,i=e.controlHeightSM,[u]=Ut(e),r=t?`${o}-${t}`:"";return{[`${o}-multiple${r}`]:{fontSize:e.fontSize,[l]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${o}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${u-Ie}px ${Ie*2}px`,borderRadius:e.borderRadius,[`${o}-show-search&`]:{cursor:"text"},[`${o}-disabled&`]:{background:e.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Ie}px 0`,lineHeight:`${i}px`,content:'"\\a0"'}},[`
&${o}-show-arrow ${o}-selector,
&${o}-allow-clear ${o}-selector
`]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${o}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:i,marginTop:Ie,marginBottom:Ie,lineHeight:`${i-e.lineWidth*2}px`,background:e.colorFillSecondary,border:`${e.lineWidth}px solid ${e.colorSplit}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:Ie*2,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${o}-disabled&`]:{color:e.colorTextDisabled,borderColor:e.colorBorder,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":S(S({},Ft()),{display:"inline-block",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${l}-item + ${l}-item`]:{[`${o}-selection-search`]:{marginInlineStart:0}},[`${o}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-u,"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${o}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}function ko(e){const{componentCls:t}=e,o=be(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),[,n]=Ut(e);return[je(e),je(o,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInlineStart:e.controlPaddingHorizontalSM-e.lineWidth,insetInlineEnd:"auto"},[`${t}-selection-search`]:{marginInlineStart:n}}},je(be(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),"lg")]}function Ue(e,t){const{componentCls:o,inputPaddingHorizontalBase:n,borderRadius:l}=e,i=e.controlHeight-e.lineWidth*2,u=Math.ceil(e.fontSize*1.25),r=t?`${o}-${t}`:"";return{[`${o}-single${r}`]:{fontSize:e.fontSize,[`${o}-selector`]:S(S({},tt(e)),{display:"flex",borderRadius:l,[`${o}-selection-search`]:{position:"absolute",top:0,insetInlineStart:n,insetInlineEnd:n,bottom:0,"&-input":{width:"100%"}},[`
${o}-selection-item,
${o}-selection-placeholder
`]:{padding:0,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${i}px`}},[`${o}-selection-item`]:{position:"relative",userSelect:"none"},[`${o}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${o}-selection-item:after`,`${o}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${o}-show-arrow ${o}-selection-item,
&${o}-show-arrow ${o}-selection-placeholder
`]:{paddingInlineEnd:u},[`&${o}-open ${o}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${o}-customize-input)`]:{[`${o}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${n}px`,[`${o}-selection-search-input`]:{height:i},"&:after":{lineHeight:`${i}px`}}},[`&${o}-customize-input`]:{[`${o}-selector`]:{"&:after":{display:"none"},[`${o}-selection-search`]:{position:"static",width:"100%"},[`${o}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${n}px`,"&:after":{display:"none"}}}}}}}function el(e){const{componentCls:t}=e,o=e.controlPaddingHorizontalSM-e.lineWidth;return[Ue(e),Ue(be(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:o,insetInlineEnd:o},[`${t}-selector`]:{padding:`0 ${o}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:o+e.fontSize*1.5},[`
&${t}-show-arrow ${t}-selection-item,
&${t}-show-arrow ${t}-selection-placeholder
`]:{paddingInlineEnd:e.fontSize*1.5}}}},Ue(be(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const tl=e=>{const{componentCls:t}=e;return{position:"relative",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},Ye=function(e,t){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:n,borderHoverColor:l,outlineColor:i,antCls:u}=t,r=o?{[`${n}-selector`]:{borderColor:l}}:{};return{[e]:{[`&:not(${n}-disabled):not(${n}-customize-input):not(${u}-pagination-size-changer)`]:S(S({},r),{[`${n}-focused& ${n}-selector`]:{borderColor:l,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${i}`,borderInlineEndWidth:`${t.controlLineWidth}px !important`,outline:0},[`&:hover ${n}-selector`]:{borderColor:l,borderInlineEndWidth:`${t.controlLineWidth}px !important`}})}}},nl=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},ol=e=>{const{componentCls:t,inputPaddingHorizontalBase:o,iconCls:n}=e;return{[t]:S(S({},tt(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:S(S({},tl(e)),nl(e)),[`${t}-selection-item`]:S({flex:1,fontWeight:"normal"},Xe),[`${t}-selection-placeholder`]:S(S({},Xe),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:S(S({},Ft()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[n]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:o+e.fontSize+e.paddingXXS}}}},ll=e=>{const{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},ol(e),el(e),ko(e),Zo(e),{[`${t}-rtl`]:{direction:"rtl"}},Ye(t,be(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),Ye(`${t}-status-error`,be(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),Ye(`${t}-status-warning`,be(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),Tn(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},il=On("Select",(e,t)=>{let{rootPrefixCls:o}=t;const n=be(e,{rootPrefixCls:o,inputPaddingHorizontalBase:e.paddingSM-1});return[ll(n)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),al=()=>S(S({},Le(jt(),["inputIcon","mode","getInputElement","getRawInputElement","backfill"])),{value:ht([Array,Object,String,Number]),defaultValue:ht([Array,Object,String,Number]),notFoundContent:D.any,suffixIcon:D.any,itemIcon:D.any,size:Oe(),mode:Oe(),bordered:Hn(!0),transitionName:String,choiceTransitionName:Oe(""),popupClassName:String,dropdownClassName:String,placement:Oe(),status:Oe(),"onUpdate:value":Vn()}),Mt="SECRET_COMBOBOX_MODE_DO_NOT_USE",pe=fe({compatConfig:{MODE:3},name:"ASelect",Option:lt,OptGroup:it,inheritAttrs:!1,props:ke(al(),{listHeight:256,listItemHeight:24}),SECRET_COMBOBOX_MODE_DO_NOT_USE:Mt,slots:Object,setup(e,t){let{attrs:o,emit:n,slots:l,expose:i}=t;const u=ye(),r=jn(),p=Un.useInject(),a=R(()=>Yn(p.status,e.status)),d=()=>{var C;(C=u.value)===null||C===void 0||C.focus()},g=()=>{var C;(C=u.value)===null||C===void 0||C.blur()},f=C=>{var U;(U=u.value)===null||U===void 0||U.scrollTo(C)},y=R(()=>{const{mode:C}=e;if(C!=="combobox")return C===Mt?"combobox":C}),{prefixCls:b,direction:$,renderEmpty:T,size:I,getPrefixCls:F,getPopupContainer:V,disabled:M,select:h}=Mn("select",e),{compactSize:N,compactItemClassnames:E}=En(b,$),P=R(()=>N.value||I.value),L=Pn(),A=R(()=>{var C;return(C=M.value)!==null&&C!==void 0?C:L.value}),[B,j]=il(b),Y=R(()=>F()),z=R(()=>e.placement!==void 0?e.placement:$.value==="rtl"?"bottomRight":"bottomLeft"),G=R(()=>Fn(Y.value,Dn(z.value),e.transitionName)),W=R(()=>ue({[`${b.value}-lg`]:P.value==="large",[`${b.value}-sm`]:P.value==="small",[`${b.value}-rtl`]:$.value==="rtl",[`${b.value}-borderless`]:!e.bordered,[`${b.value}-in-form-item`]:p.isFormItemInput},Gn(b.value,a.value,p.hasFeedback),E.value,j.value)),te=function(){for(var C=arguments.length,U=new Array(C),ne=0;ne<C;ne++)U[ne]=arguments[ne];n("update:value",U[0]),n("change",...U),r.onFieldChange()},ie=C=>{n("blur",C),r.onFieldBlur()};i({blur:g,focus:d,scrollTo:f});const m=R(()=>y.value==="multiple"||y.value==="tags"),H=R(()=>e.showArrow!==void 0?e.showArrow:e.loading||!(m.value||y.value==="combobox"));return()=>{var C,U,ne,re;const{notFoundContent:se,listHeight:ee=256,listItemHeight:ce=24,popupClassName:de,dropdownClassName:v,virtual:s,dropdownMatchSelectWidth:c,id:O=r.id.value,placeholder:w=(C=l.placeholder)===null||C===void 0?void 0:C.call(l),showArrow:K}=e,{hasFeedback:q,feedbackIcon:J}=p;let Z;se!==void 0?Z=se:l.notFoundContent?Z=l.notFoundContent():y.value==="combobox"?Z=null:Z=T?.("Select")||x(Rn,{componentName:"Select"},null);const{suffixIcon:Q,itemIcon:le,removeIcon:ae,clearIcon:De}=Jo(S(S({},e),{multiple:m.value,prefixCls:b.value,hasFeedback:q,feedbackIcon:J,showArrow:H.value}),l),Re=Le(e,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered","status"]),xe=ue(de||v,{[`${b.value}-dropdown-${$.value}`]:$.value==="rtl"},j.value);return B(x(Xo,k(k(k({ref:u,virtual:s,dropdownMatchSelectWidth:c},Re),o),{},{showSearch:(U=e.showSearch)!==null&&U!==void 0?U:(ne=h?.value)===null||ne===void 0?void 0:ne.showSearch,placeholder:w,listHeight:ee,listItemHeight:ce,mode:y.value,prefixCls:b.value,direction:$.value,inputIcon:Q,menuItemSelectedIcon:le,removeIcon:ae,clearIcon:De,notFoundContent:Z,class:[W.value,o.class],getPopupContainer:V?.value,dropdownClassName:xe,onChange:te,onBlur:ie,id:O,dropdownRender:Re.dropdownRender||l.dropdownRender,transitionName:G.value,children:(re=l.default)===null||re===void 0?void 0:re.call(l),tagRender:e.tagRender||l.tagRender,optionLabelRender:l.optionLabel,maxTagPlaceholder:e.maxTagPlaceholder||l.maxTagPlaceholder,showArrow:q||K,disabled:A.value}),{option:l.option}))}}});pe.install=function(e){return e.component(pe.name,pe),e.component(pe.Option.displayName,pe.Option),e.component(pe.OptGroup.displayName,pe.OptGroup),e};const Ml=pe.Option;pe.OptGroup;export{pe as S,Ml as a};