{ue(xe)})},Ae=(xe=[],Ye)=>{if(!ii(Ye))return xe.indexOf(Ye);const He=e.valueKey;let Xe=-1;return xe.some((it,lt)=>Ci(Ri(it,He))===Ri(Ye,He)?(Xe=lt,!0):!1),Xe},_e=()=>{i.softFocus=!0;const xe=s.value||r.value;xe&&(xe==null||xe.focus())},ue=xe=>{var Ye,He,Xe,it,lt;const ht=Array.isArray(xe)?xe[0]:xe;let rt=null;if(ht!=null&&ht.value){const ri=H.value.filter(ti=>ti.value===ht.value);ri.length>0&&(rt=ri[0].$el)}if(a.value&&rt){const ri=(it=(Xe=(He=(Ye=a.value)==null?void 0:Ye.popperRef)==null?void 0:He.contentRef)==null?void 0:Xe.querySelector)==null?void 0:it.call(Xe,`.${l.be("dropdown","wrap")}`);ri&&Jv(ri,rt)}(lt=u.value)==null||lt.handleScroll()},Me=xe=>{i.optionsCount++,i.filteredOptionsCount++,i.options.set(xe.value,xe),i.cachedOptions.set(xe.value,xe)},Oe=(xe,Ye)=>{i.options.get(xe)===Ye&&(i.optionsCount--,i.filteredOptionsCount--,i.options.delete(xe))},De=xe=>{xe.code!==At.backspace&&Ze(!1),i.inputLength=s.value.value.length*15+20,_()},Ze=xe=>{if(!Array.isArray(i.selected))return;const Ye=i.selected[i.selected.length-1];if(!!Ye)return xe===!0||xe===!1?(Ye.hitState=xe,xe):(Ye.hitState=!Ye.hitState,Ye.hitState)},Te=xe=>{const Ye=xe.target.value;if(xe.type==="compositionend")i.isOnComposition=!1,vt(()=>B(Ye));else{const He=Ye[Ye.length-1]||"";i.isOnComposition=!Kk(He)}},Ne=()=>{vt(()=>ue(i.selected))},Ve=xe=>{i.softFocus?i.softFocus=!1:((e.automaticDropdown||e.filterable)&&(e.filterable&&!i.visible&&(i.menuVisibleOnFocus=!0),i.visible=!0),n.emit("focus",xe))},p=()=>{var xe;i.visible=!1,(xe=r.value)==null||xe.blur()},se=xe=>{vt(()=>{i.isSilentBlur?i.isSilentBlur=!1:n.emit("blur",xe)}),i.softFocus=!1},oe=xe=>{ce(xe)},ve=()=>{i.visible=!1},ne=xe=>{i.visible&&(xe.preventDefault(),xe.stopPropagation(),i.visible=!1)},We=()=>{var xe;y.value||(i.menuVisibleOnFocus?i.menuVisibleOnFocus=!1:i.visible=!i.visible,i.visible&&((xe=s.value||r.value)==null||xe.focus()))},ze=()=>{i.visible?H.value[i.hoverIndex]&&we(H.value[i.hoverIndex],void 0):We()},Ke=xe=>ii(xe.value)?Ri(xe.value,e.valueKey):xe.value,ge=J(()=>H.value.filter(xe=>xe.visible).every(xe=>xe.disabled)),Be=xe=>{if(!i.visible){i.visible=!0;return}if(!(i.options.size===0||i.filteredOptionsCount===0)&&!i.isOnComposition&&!ge.value){xe==="next"?(i.hoverIndex++,i.hoverIndex===i.options.size&&(i.hoverIndex=0)):xe==="prev"&&(i.hoverIndex--,i.hoverIndex<0&&(i.hoverIndex=i.options.size-1));const Ye=H.value[i.hoverIndex];(Ye.disabled===!0||Ye.states.groupDisabled===!0||!Ye.visible)&&Be(xe),vt(()=>ue(h.value))}};return{optionsArray:H,selectSize:D,handleResize:U,debouncedOnInputChange:Q,debouncedQueryChange:ae,deletePrevTag:de,deleteTag:ke,deleteSelected:ce,handleOptionSelect:we,scrollToOption:ue,readonly:C,resetInputHeight:_,showClose:M,iconComponent:j,iconReverse:b,showNewOption:S,collapseTagSize:P,setSelected:Z,managePlaceholder:A,selectDisabled:y,emptyText:x,toggleLastOptionHitState:Ze,resetInputState:De,handleComposition:Te,onOptionCreate:Me,onOptionDestroy:Oe,handleMenuEnter:Ne,handleFocus:Ve,blur:p,handleBlur:se,handleClearClick:oe,handleClose:ve,handleKeydownEscape:ne,toggleMenu:We,selectOption:ze,getValueKey:Ke,navigateOptions:Be,dropMenuVisible:O,queryChange:k,groupQueryChange:v,reference:r,input:s,tooltipRef:a,tags:d,selectWrapper:f,scrollbar:u}},z7="ElSelect",_Q=Je({name:z7,componentName:z7,components:{ElInput:Fn,ElSelectMenu:SQ,ElOption:Pf,ElTag:ih,ElScrollbar:Tr,ElTooltip:wo,ElIcon:mt},directives:{ClickOutside:js},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:Ta},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},teleported:Vn.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:zi,default:bs},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:zi,default:Ms},tagType:{...Sf.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:{type:Boolean,default:!1},suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:Ba,default:"bottom-start"}},emits:[Xt,Ni,"remove-tag","clear","visible-change","focus","blur"],setup(e,i){const n=nt("select"),o=nt("input"),{t:l}=wi(),r=zQ(e),{optionsArray:s,selectSize:a,readonly:d,handleResize:f,collapseTagSize:u,debouncedOnInputChange:h,debouncedQueryChange:k,deletePrevTag:v,deleteTag:w,deleteSelected:g,handleOptionSelect:C,scrollToOption:y,setSelected:M,resetInputHeight:j,managePlaceholder:b,showClose:E,selectDisabled:x,iconComponent:H,iconReverse:V,showNewOption:S,emptyText:D,toggleLastOptionHitState:P,resetInputState:O,handleComposition:_,onOptionCreate:B,onOptionDestroy:A,handleMenuEnter:R,handleFocus:Z,blur:I,handleBlur:F,handleClearClick:U,handleClose:G,handleKeydownEscape:K,toggleMenu:Q,selectOption:ae,getValueKey:ee,navigateOptions:de,dropMenuVisible:ke,reference:ce,input:we,tooltipRef:Ae,tags:_e,selectWrapper:ue,scrollbar:Me,queryChange:Oe,groupQueryChange:De}=TQ(e,r,i),{focus:Ze}=BI(ce),{inputWidth:Te,selected:Ne,inputLength:Ve,filteredOptionsCount:p,visible:se,softFocus:oe,selectedLabel:ve,hoverIndex:ne,query:We,inputHovering:ze,currentPlaceholder:Ke,menuVisibleOnFocus:ge,isOnComposition:Be,isSilentBlur:xe,options:Ye,cachedOptions:He,optionsCount:Xe,prefixWidth:it,tagInMultiLine:lt}=hn(r),ht=J(()=>{const Wt=[n.b()],Kt=W(a);return Kt&&Wt.push(n.m(Kt)),e.disabled&&Wt.push(n.m("disabled")),Wt}),rt=J(()=>({maxWidth:`${W(Te)-32}px`,width:"100%"})),ri=J(()=>({maxWidth:`${W(Te)>123?W(Te)-123:W(Te)-75}px`}));Qt(lh,gi({props:e,options:Ye,optionsArray:s,cachedOptions:He,optionsCount:Xe,filteredOptionsCount:p,hoverIndex:ne,handleOptionSelect:C,onOptionCreate:B,onOptionDestroy:A,selectWrapper:ue,selected:Ne,setSelected:M,queryChange:Oe,groupQueryChange:De})),Ot(()=>{r.cachedPlaceHolder=Ke.value=e.placeholder||l("el.select.placeholder"),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(Ke.value=""),Un(ue,f),e.remote&&e.multiple&&j(),vt(()=>{const Wt=ce.value&&ce.value.$el;if(!!Wt&&(Te.value=Wt.getBoundingClientRect().width,i.slots.prefix)){const Kt=Wt.querySelector(`.${o.e("prefix")}`);it.value=Math.max(Kt.getBoundingClientRect().width+5,30)}}),M()}),e.multiple&&!Array.isArray(e.modelValue)&&i.emit(Xt,[]),!e.multiple&&Array.isArray(e.modelValue)&&i.emit(Xt,"");const ti=J(()=>{var Wt,Kt;return(Kt=(Wt=Ae.value)==null?void 0:Wt.popperRef)==null?void 0:Kt.contentRef});return{tagInMultiLine:lt,prefixWidth:it,selectSize:a,readonly:d,handleResize:f,collapseTagSize:u,debouncedOnInputChange:h,debouncedQueryChange:k,deletePrevTag:v,deleteTag:w,deleteSelected:g,handleOptionSelect:C,scrollToOption:y,inputWidth:Te,selected:Ne,inputLength:Ve,filteredOptionsCount:p,visible:se,softFocus:oe,selectedLabel:ve,hoverIndex:ne,query:We,inputHovering:ze,currentPlaceholder:Ke,menuVisibleOnFocus:ge,isOnComposition:Be,isSilentBlur:xe,options:Ye,resetInputHeight:j,managePlaceholder:b,showClose:E,selectDisabled:x,iconComponent:H,iconReverse:V,showNewOption:S,emptyText:D,toggleLastOptionHitState:P,resetInputState:O,handleComposition:_,handleMenuEnter:R,handleFocus:Z,blur:I,handleBlur:F,handleClearClick:U,handleClose:G,handleKeydownEscape:K,toggleMenu:Q,selectOption:ae,getValueKey:ee,navigateOptions:de,dropMenuVisible:ke,focus:Ze,reference:ce,input:we,tooltipRef:Ae,popperPaneRef:ti,tags:_e,selectWrapper:ue,scrollbar:Me,wrapperKls:ht,selectTagsStyle:rt,nsSelect:n,tagTextStyle:ri}}}),BQ=["disabled","autocomplete"],OQ={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function IQ(e,i,n,o,l,r){const s=ct("el-tag"),a=ct("el-tooltip"),d=ct("el-icon"),f=ct("el-input"),u=ct("el-option"),h=ct("el-scrollbar"),k=ct("el-select-menu"),v=gs("click-outside");return Dt((Y(),fe("div",{ref:"selectWrapper",class:ie(e.wrapperKls),onClick:i[22]||(i[22]=Tt((...w)=>e.toggleMenu&&e.toggleMenu(...w),["stop"]))},[t(a,{ref:"tooltipRef",visible:e.dropMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onShow:e.handleMenuEnter},{default:Ee(()=>[ye("div",{class:"select-trigger",onMouseenter:i[20]||(i[20]=w=>e.inputHovering=!0),onMouseleave:i[21]||(i[21]=w=>e.inputHovering=!1)},[e.multiple?(Y(),fe("div",{key:0,ref:"tags",class:ie(e.nsSelect.e("tags")),style:jt(e.selectTagsStyle)},[e.collapseTags&&e.selected.length?(Y(),fe("span",{key:0,class:ie([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[t(s,{closable:!e.selectDisabled&&!e.selected[0].isDisabled,size:e.collapseTagSize,hit:e.selected[0].hitState,type:e.tagType,"disable-transitions":"",onClose:i[0]||(i[0]=w=>e.deleteTag(w,e.selected[0]))},{default:Ee(()=>[ye("span",{class:ie(e.nsSelect.e("tags-text")),style:jt(e.tagTextStyle)},at(e.selected[0].currentLabel),7)]),_:1},8,["closable","size","hit","type"]),e.selected.length>1?(Y(),Ue(s,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:Ee(()=>[e.collapseTagsTooltip?(Y(),Ue(a,{key:0,disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:Ee(()=>[ye("span",{class:ie(e.nsSelect.e("tags-text"))},"+ "+at(e.selected.length-1),3)]),content:Ee(()=>[ye("div",{class:ie(e.nsSelect.e("collapse-tags"))},[(Y(!0),fe(yt,null,ai(e.selected.slice(1),(w,g)=>(Y(),fe("div",{key:g,class:ie(e.nsSelect.e("collapse-tag"))},[(Y(),Ue(s,{key:e.getValueKey(w),class:"in-tooltip",closable:!e.selectDisabled&&!w.isDisabled,size:e.collapseTagSize,hit:w.hitState,type:e.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:C=>e.deleteTag(C,w)},{default:Ee(()=>[ye("span",{class:ie(e.nsSelect.e("tags-text")),style:jt({maxWidth:e.inputWidth-75+"px"})},at(w.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):(Y(),fe("span",{key:1,class:ie(e.nsSelect.e("tags-text"))},"+ "+at(e.selected.length-1),3))]),_:1},8,["size","type"])):Re("v-if",!0)],2)):Re("v-if",!0),Re(" "),e.collapseTags?Re("v-if",!0):(Y(),Ue(nn,{key:1,onAfterLeave:e.resetInputHeight},{default:Ee(()=>[ye("span",{class:ie([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[(Y(!0),fe(yt,null,ai(e.selected,w=>(Y(),Ue(s,{key:e.getValueKey(w),closable:!e.selectDisabled&&!w.isDisabled,size:e.collapseTagSize,hit:w.hitState,type:e.tagType,"disable-transitions":"",onClose:g=>e.deleteTag(g,w)},{default:Ee(()=>[ye("span",{class:ie(e.nsSelect.e("tags-text")),style:jt({maxWidth:e.inputWidth-75+"px"})},at(w.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],2)]),_:1},8,["onAfterLeave"])),Re("
"),e.filterable?Dt((Y(),fe("input",{key:2,ref:"input","onUpdate:modelValue":i[1]||(i[1]=w=>e.query=w),type:"text",class:ie([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:jt({marginLeft:e.prefixWidth&&!e.selected.length||e.tagInMultiLine?`${e.prefixWidth}px`:"",flexGrow:1,width:`${e.inputLength/(e.inputWidth-32)}%`,maxWidth:`${e.inputWidth-42}px`}),onFocus:i[2]||(i[2]=(...w)=>e.handleFocus&&e.handleFocus(...w)),onBlur:i[3]||(i[3]=(...w)=>e.handleBlur&&e.handleBlur(...w)),onKeyup:i[4]||(i[4]=(...w)=>e.managePlaceholder&&e.managePlaceholder(...w)),onKeydown:[i[5]||(i[5]=(...w)=>e.resetInputState&&e.resetInputState(...w)),i[6]||(i[6]=hi(Tt(w=>e.navigateOptions("next"),["prevent"]),["down"])),i[7]||(i[7]=hi(Tt(w=>e.navigateOptions("prev"),["prevent"]),["up"])),i[8]||(i[8]=hi((...w)=>e.handleKeydownEscape&&e.handleKeydownEscape(...w),["esc"])),i[9]||(i[9]=hi(Tt((...w)=>e.selectOption&&e.selectOption(...w),["stop","prevent"]),["enter"])),i[10]||(i[10]=hi((...w)=>e.deletePrevTag&&e.deletePrevTag(...w),["delete"])),i[11]||(i[11]=hi(w=>e.visible=!1,["tab"]))],onCompositionstart:i[12]||(i[12]=(...w)=>e.handleComposition&&e.handleComposition(...w)),onCompositionupdate:i[13]||(i[13]=(...w)=>e.handleComposition&&e.handleComposition(...w)),onCompositionend:i[14]||(i[14]=(...w)=>e.handleComposition&&e.handleComposition(...w)),onInput:i[15]||(i[15]=(...w)=>e.debouncedQueryChange&&e.debouncedQueryChange(...w))},null,46,BQ)),[[I3,e.query]]):Re("v-if",!0)],6)):Re("v-if",!0),t(f,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":i[16]||(i[16]=w=>e.selectedLabel=w),type:"text",placeholder:e.currentPlaceholder,name:e.name,autocomplete:e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,class:ie([e.nsSelect.is("focus",e.visible)]),tabindex:e.multiple&&e.filterable?-1:void 0,onFocus:e.handleFocus,onBlur:e.handleBlur,onInput:e.debouncedOnInputChange,onPaste:e.debouncedOnInputChange,onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onKeydown:[i[17]||(i[17]=hi(Tt(w=>e.navigateOptions("next"),["stop","prevent"]),["down"])),i[18]||(i[18]=hi(Tt(w=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),hi(Tt(e.selectOption,["stop","prevent"]),["enter"]),hi(e.handleKeydownEscape,["esc"]),i[19]||(i[19]=hi(w=>e.visible=!1,["tab"]))]},vs({suffix:Ee(()=>[e.iconComponent&&!e.showClose?(Y(),Ue(d,{key:0,class:ie([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:Ee(()=>[(Y(),Ue(pt(e.iconComponent)))]),_:1},8,["class"])):Re("v-if",!0),e.showClose&&e.clearIcon?(Y(),Ue(d,{key:1,class:ie([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:Ee(()=>[(Y(),Ue(pt(e.clearIcon)))]),_:1},8,["class","onClick"])):Re("v-if",!0)]),_:2},[e.$slots.prefix?{name:"prefix",fn:Ee(()=>[ye("div",OQ,[tt(e.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])],32)]),content:Ee(()=>[t(k,null,{default:Ee(()=>[Dt(t(h,{ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:ie([e.nsSelect.is("empty",!e.allowCreate&&Boolean(e.query)&&e.filteredOptionsCount===0)])},{default:Ee(()=>[e.showNewOption?(Y(),Ue(u,{key:0,value:e.query,created:!0},null,8,["value"])):Re("v-if",!0),tt(e.$slots,"default")]),_:3},8,["wrap-class","view-class","class"]),[[fi,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&e.options.size===0)?(Y(),fe(yt,{key:0},[e.$slots.empty?tt(e.$slots,"empty",{key:0}):(Y(),fe("p",{key:1,class:ie(e.nsSelect.be("dropdown","empty"))},at(e.emptyText),3))],64)):Re("v-if",!0)]),_:3})]),_:3},8,["visible","placement","teleported","popper-class","effect","transition","persistent","onShow"])],2)),[[v,e.handleClose,e.popperPaneRef]])}var DQ=dt(_Q,[["render",IQ],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const PQ=Je({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},setup(e){const i=nt("select"),n=re(!0),o=qt(),l=re([]);Qt(zC,gi({...hn(e)}));const r=wt(lh);Ot(()=>{l.value=s(o.subTree)});const s=d=>{const f=[];return Array.isArray(d.children)&&d.children.forEach(u=>{var h;u.type&&u.type.name==="ElOption"&&u.component&&u.component.proxy?f.push(u.component.proxy):(h=u.children)!=null&&h.length&&f.push(...s(u))}),f},{groupQueryChange:a}=Ci(r);return et(a,()=>{n.value=l.value.some(d=>d.visible===!0)},{flush:"post"}),{visible:n,ns:i}}});function RQ(e,i,n,o,l,r){return Dt((Y(),fe("ul",{class:ie(e.ns.be("group","wrap"))},[ye("li",{class:ie(e.ns.be("group","title"))},at(e.label),3),ye("li",null,[ye("ul",{class:ie(e.ns.b("group"))},[tt(e.$slots,"default")],2)])],2)),[[fi,e.visible]])}var TC=dt(PQ,[["render",RQ],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const Wa=Yt(DQ,{Option:Pf,OptionGroup:TC}),dk=Gi(Pf),NQ=Gi(TC),Rf=()=>wt(fw,{}),ZQ=ut({pageSize:{type:Number,required:!0},pageSizes:{type:qe(Array),default:()=>Di([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,size:{type:String,default:"default"}}),FQ={name:"ElPaginationSizes"},$Q=Je({...FQ,props:ZQ,emits:["page-size-change"],setup(e,{emit:i}){const n=e,{t:o}=wi(),l=nt("pagination"),r=Rf(),s=re(n.pageSize);et(()=>n.pageSizes,(f,u)=>{if(!Uo(f,u)&&Array.isArray(f)){const h=f.includes(n.pageSize)?n.pageSize:n.pageSizes[0];i("page-size-change",h)}}),et(()=>n.pageSize,f=>{s.value=f});const a=J(()=>n.pageSizes);function d(f){var u;f!==s.value&&(s.value=f,(u=r.handleSizeChange)==null||u.call(r,Number(f)))}return(f,u)=>(Y(),fe("span",{class:ie(W(l).e("sizes"))},[t(W(Wa),{"model-value":s.value,disabled:f.disabled,"popper-class":f.popperClass,size:f.size,"validate-event":!1,onChange:d},{default:Ee(()=>[(Y(!0),fe(yt,null,ai(W(a),h=>(Y(),Ue(W(dk),{key:h,value:h,label:h+W(o)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size"])],2))}});var UQ=dt($Q,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/sizes.vue"]]);const KQ=["disabled"],GQ={name:"ElPaginationJumper"},qQ=Je({...GQ,setup(e){const{t:i}=wi(),n=nt("pagination"),{pageCount:o,disabled:l,currentPage:r,changeEvent:s}=Rf(),a=re(),d=J(()=>{var h;return(h=a.value)!=null?h:r==null?void 0:r.value});function f(h){a.value=+h}function u(h){h=Math.trunc(+h),s==null||s(+h),a.value=void 0}return(h,k)=>(Y(),fe("span",{class:ie(W(n).e("jump")),disabled:W(l)},[$t(at(W(i)("el.pagination.goto"))+" ",1),t(W(Fn),{size:"small",class:ie([W(n).e("editor"),W(n).is("in-pagination")]),min:1,max:W(o),disabled:W(l),"model-value":W(d),"validate-event":!1,type:"number","onUpdate:modelValue":f,onChange:u},null,8,["class","max","disabled","model-value"]),$t(" "+at(W(i)("el.pagination.pageClassifier")),1)],10,KQ))}});var YQ=dt(qQ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/jumper.vue"]]);const XQ=ut({total:{type:Number,default:1e3}}),QQ=["disabled"],JQ={name:"ElPaginationTotal"},pQ=Je({...JQ,props:XQ,setup(e){const{t:i}=wi(),n=nt("pagination"),{disabled:o}=Rf();return(l,r)=>(Y(),fe("span",{class:ie(W(n).e("total")),disabled:W(o)},at(W(i)("el.pagination.total",{total:l.total})),11,QQ))}});var eJ=dt(pQ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/total.vue"]]);const tJ=ut({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),iJ=["onKeyup"],nJ=["aria-current","tabindex"],oJ=["tabindex"],lJ=["aria-current","tabindex"],rJ=["tabindex"],sJ=["aria-current","tabindex"],aJ={name:"ElPaginationPager"},cJ=Je({...aJ,props:tJ,emits:["change"],setup(e,{emit:i}){const n=e,o=nt("pager"),l=nt("icon"),r=re(!1),s=re(!1),a=re(!1),d=re(!1),f=re(!1),u=re(!1),h=J(()=>{const y=n.pagerCount,M=(y-1)/2,j=Number(n.currentPage),b=Number(n.pageCount);let E=!1,x=!1;b>y&&(j>y-M&&(E=!0),jn.disabled?-1:0);Ho(()=>{const y=(n.pagerCount-1)/2;r.value=!1,s.value=!1,n.pageCount>n.pagerCount&&(n.currentPage>n.pagerCount-y&&(r.value=!0),n.currentPageb&&(j=b)),j!==E&&i("change",j)}return(y,M)=>(Y(),fe("ul",{class:ie(W(o).b()),onClick:C,onKeyup:hi(g,["enter"])},[y.pageCount>0?(Y(),fe("li",{key:0,class:ie([[W(o).is("active",y.currentPage===1),W(o).is("disabled",y.disabled)],"number"]),"aria-current":y.currentPage===1,tabindex:W(k)}," 1 ",10,nJ)):Re("v-if",!0),r.value?(Y(),fe("li",{key:1,class:ie(["more","btn-quickprev",W(l).b(),W(o).is("disabled",y.disabled)]),tabindex:W(k),onMouseenter:M[0]||(M[0]=j=>v(!0)),onMouseleave:M[1]||(M[1]=j=>a.value=!1),onFocus:M[2]||(M[2]=j=>w(!0)),onBlur:M[3]||(M[3]=j=>f.value=!1)},[a.value||f.value?(Y(),Ue(W(Nc),{key:0})):(Y(),Ue(W(y5),{key:1}))],42,oJ)):Re("v-if",!0),(Y(!0),fe(yt,null,ai(W(h),j=>(Y(),fe("li",{key:j,class:ie([[W(o).is("active",y.currentPage===j),W(o).is("disabled",y.disabled)],"number"]),"aria-current":y.currentPage===j,tabindex:W(k)},at(j),11,lJ))),128)),s.value?(Y(),fe("li",{key:2,class:ie(["more","btn-quicknext",W(l).b(),W(o).is("disabled",y.disabled)]),tabindex:W(k),onMouseenter:M[4]||(M[4]=j=>v()),onMouseleave:M[5]||(M[5]=j=>d.value=!1),onFocus:M[6]||(M[6]=j=>w()),onBlur:M[7]||(M[7]=j=>u.value=!1)},[d.value||u.value?(Y(),Ue(W(Zc),{key:0})):(Y(),Ue(W(y5),{key:1}))],42,rJ)):Re("v-if",!0),y.pageCount>1?(Y(),fe("li",{key:3,class:ie([[W(o).is("active",y.currentPage===y.pageCount),W(o).is("disabled",y.disabled)],"number"]),"aria-current":y.currentPage===y.pageCount,tabindex:W(k)},at(y.pageCount),11,sJ)):Re("v-if",!0)],42,iJ))}});var dJ=dt(cJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);const Jn=e=>typeof e!="number",kJ=ut({total:Number,pageSize:Number,defaultPageSize:Number,currentPage:Number,defaultCurrentPage:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>typeof e=="number"&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:qe(Array),default:()=>Di([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:zi,default:()=>ws},nextText:{type:String,default:""},nextIcon:{type:zi,default:()=>to},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),hJ={"update:current-page":e=>typeof e=="number","update:page-size":e=>typeof e=="number","size-change":e=>typeof e=="number","current-change":e=>typeof e=="number","prev-click":e=>typeof e=="number","next-click":e=>typeof e=="number"},T7="ElPagination";var uJ=Je({name:T7,props:kJ,emits:hJ,setup(e,{emit:i,slots:n}){const{t:o}=wi(),l=nt("pagination"),r=qt().vnode.props||{},s="onUpdate:currentPage"in r||"onUpdate:current-page"in r||"onCurrentChange"in r,a="onUpdate:pageSize"in r||"onUpdate:page-size"in r||"onSizeChange"in r,d=J(()=>{if(Jn(e.total)&&Jn(e.pageCount)||!Jn(e.currentPage)&&!s)return!1;if(e.layout.includes("sizes")){if(Jn(e.pageCount)){if(!Jn(e.total)&&!Jn(e.pageSize)&&!a)return!1}else if(!a)return!1}return!0}),f=re(Jn(e.defaultPageSize)?10:e.defaultPageSize),u=re(Jn(e.defaultCurrentPage)?1:e.defaultCurrentPage),h=J({get(){return Jn(e.pageSize)?f.value:e.pageSize},set(j){Jn(e.pageSize)&&(f.value=j),a&&(i("update:page-size",j),i("size-change",j))}}),k=J(()=>{let j=0;return Jn(e.pageCount)?Jn(e.total)||(j=Math.max(1,Math.ceil(e.total/h.value))):j=e.pageCount,j}),v=J({get(){return Jn(e.currentPage)?u.value:e.currentPage},set(j){let b=j;j<1?b=1:j>k.value&&(b=k.value),Jn(e.currentPage)&&(u.value=b),s&&(i("update:current-page",b),i("current-change",b))}});et(k,j=>{v.value>j&&(v.value=j)});function w(j){v.value=j}function g(j){h.value=j;const b=k.value;v.value>b&&(v.value=b)}function C(){e.disabled||(v.value-=1,i("prev-click",v.value))}function y(){e.disabled||(v.value+=1,i("next-click",v.value))}function M(j,b){j&&(j.props||(j.props={}),j.props.class=[j.props.class,b].join(" "))}return Qt(fw,{pageCount:k,disabled:J(()=>e.disabled),currentPage:v,changeEvent:w,handleSizeChange:g}),()=>{var j,b;if(!d.value)return o("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&k.value<=1)return null;const E=[],x=[],H=Mt("div",{class:l.e("rightwrapper")},x),V={prev:Mt(mQ,{disabled:e.disabled,currentPage:v.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:C}),jumper:Mt(YQ),pager:Mt(dJ,{currentPage:v.value,pageCount:k.value,pagerCount:e.pagerCount,onChange:w,disabled:e.disabled}),next:Mt(WQ,{disabled:e.disabled,currentPage:v.value,pageCount:k.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:y}),sizes:Mt(UQ,{pageSize:h.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,size:e.small?"small":"default"}),slot:(b=(j=n==null?void 0:n.default)==null?void 0:j.call(n))!=null?b:null,total:Mt(eJ,{total:Jn(e.total)?0:e.total})},S=e.layout.split(",").map(P=>P.trim());let D=!1;return S.forEach(P=>{if(P==="->"){D=!0;return}D?x.push(V[P]):E.push(V[P])}),M(E[0],l.is("first")),M(E[E.length-1],l.is("last")),D&&x.length>0&&(M(x[0],l.is("first")),M(x[x.length-1],l.is("last")),E.push(H)),Mt("div",{role:"pagination","aria-label":"pagination",class:[l.b(),l.is("background",e.background),{[l.m("small")]:e.small}]},E)}}});const fJ=Yt(uJ),LJ=ut({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:wu,default:"primary"},cancelButtonType:{type:String,values:wu,default:"text"},icon:{type:zi,default:()=>iO},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},onConfirm:{type:qe(Function)},onCancel:{type:qe(Function)},teleported:Vn.teleported,persistent:Vn.persistent,width:{type:[String,Number],default:150}}),gJ={name:"ElPopconfirm"},vJ=Je({...gJ,props:LJ,setup(e){const i=e,{t:n}=wi(),o=nt("popconfirm"),l=re(),r=()=>{var h,k;(k=(h=l.value)==null?void 0:h.onClose)==null||k.call(h)},s=J(()=>({width:kn(i.width)})),a=h=>{var k;(k=i.onConfirm)==null||k.call(i,h),r()},d=h=>{var k;(k=i.onCancel)==null||k.call(i,h),r()},f=J(()=>i.confirmButtonText||n("el.popconfirm.confirmButtonText")),u=J(()=>i.cancelButtonText||n("el.popconfirm.cancelButtonText"));return(h,k)=>(Y(),Ue(W(wo),ei({ref_key:"tooltipRef",ref:l,trigger:"click",effect:"light"},h.$attrs,{"popper-class":`${W(o).namespace.value}-popover`,"popper-style":W(s),teleported:h.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":h.hideAfter,persistent:h.persistent}),{content:Ee(()=>[ye("div",{class:ie(W(o).b())},[ye("div",{class:ie(W(o).e("main"))},[!h.hideIcon&&h.icon?(Y(),Ue(W(mt),{key:0,class:ie(W(o).e("icon")),style:jt({color:h.iconColor})},{default:Ee(()=>[(Y(),Ue(pt(h.icon)))]),_:1},8,["class","style"])):Re("v-if",!0),$t(" "+at(h.title),1)],2),ye("div",{class:ie(W(o).e("action"))},[t(W($n),{size:"small",type:h.cancelButtonType==="text"?"":h.cancelButtonType,text:h.cancelButtonType==="text",onClick:d},{default:Ee(()=>[$t(at(W(u)),1)]),_:1},8,["type","text"]),t(W($n),{size:"small",type:h.confirmButtonType==="text"?"":h.confirmButtonType,text:h.confirmButtonType==="text",onClick:a},{default:Ee(()=>[$t(at(W(f)),1)]),_:1},8,["type","text"])],2)],2)]),default:Ee(()=>[h.$slots.reference?tt(h.$slots,"reference",{key:0}):Re("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var wJ=dt(vJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popconfirm/src/popconfirm.vue"]]);const mJ=Yt(wJ),CJ=ut({trigger:z2.trigger,placement:z4.placement,disabled:z2.disabled,visible:Vn.visible,transition:Vn.transition,popperOptions:z4.popperOptions,tabindex:z4.tabindex,content:Vn.content,popperStyle:Vn.popperStyle,popperClass:Vn.popperClass,enterable:{...Vn.enterable,default:!0},effect:{...Vn.effect,default:"light"},teleported:Vn.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),jJ={"update:visible":e=>wn(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},yJ={name:"ElPopover"},MJ=Je({...yJ,props:CJ,emits:jJ,setup(e,{expose:i,emit:n}){const o=e,l="onUpdate:visible",r=J(()=>o[l]),s=nt("popover"),a=re(),d=J(()=>{var y;return(y=W(a))==null?void 0:y.popperRef}),f=J(()=>[{width:kn(o.width)},o.popperStyle]),u=J(()=>[s.b(),o.popperClass,{[s.m("plain")]:!!o.content}]),h=J(()=>o.transition===`${s.namespace.value}-fade-in-linear`),k=()=>{var y;(y=a.value)==null||y.hide()},v=()=>{n("before-enter")},w=()=>{n("before-leave")},g=()=>{n("after-enter")},C=()=>{n("update:visible",!1),n("after-leave")};return i({popperRef:d,hide:k}),(y,M)=>(Y(),Ue(W(wo),ei({ref_key:"tooltipRef",ref:a},y.$attrs,{trigger:y.trigger,placement:y.placement,disabled:y.disabled,visible:y.visible,transition:y.transition,"popper-options":y.popperOptions,tabindex:y.tabindex,content:y.content,offset:y.offset,"show-after":y.showAfter,"hide-after":y.hideAfter,"auto-close":y.autoClose,"show-arrow":y.showArrow,"aria-label":y.title,effect:y.effect,enterable:y.enterable,"popper-class":W(u),"popper-style":W(f),teleported:y.teleported,persistent:y.persistent,"gpu-acceleration":W(h),"onUpdate:visible":W(r),onBeforeShow:v,onBeforeHide:w,onShow:g,onHide:C}),{content:Ee(()=>[y.title?(Y(),fe("div",{key:0,class:ie(W(s).e("title")),role:"title"},at(y.title),3)):Re("v-if",!0),tt(y.$slots,"default",{},()=>[$t(at(y.content),1)])]),default:Ee(()=>[y.$slots.reference?tt(y.$slots,"reference",{key:0}):Re("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var bJ=dt(MJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const _7=(e,i)=>{const n=i.arg||i.value,o=n==null?void 0:n.popperRef;o&&(o.triggerRef=e)};var WJ={mounted(e,i){_7(e,i)},updated(e,i){_7(e,i)}};const xJ="popover",_C=MI(WJ,xJ),AJ=Yt(bJ,{directive:_C}),EJ=ut({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:qe(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:qe([String,Array,Function]),default:""},format:{type:qe(Function),default:e=>`${e}%`}}),HJ=["aria-valuenow"],VJ={viewBox:"0 0 100 100"},SJ=["d","stroke","stroke-width"],zJ=["d","stroke","opacity","stroke-linecap","stroke-width"],TJ={key:0},_J={name:"ElProgress"},BJ=Je({..._J,props:EJ,setup(e){const i=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},o=nt("progress"),l=J(()=>({width:`${i.percentage}%`,animationDuration:`${i.duration}s`,backgroundColor:M(i.percentage)})),r=J(()=>(i.strokeWidth/i.width*100).toFixed(1)),s=J(()=>["circle","dashboard"].includes(i.type)?Number.parseInt(`${50-Number.parseFloat(r.value)/2}`,10):0),a=J(()=>{const j=s.value,b=i.type==="dashboard";return`
+ M 50 50
+ m 0 ${b?"":"-"}${j}
+ a ${j} ${j} 0 1 1 0 ${b?"-":""}${j*2}
+ a ${j} ${j} 0 1 1 0 ${b?"":"-"}${j*2}
+ `}),d=J(()=>2*Math.PI*s.value),f=J(()=>i.type==="dashboard"?.75:1),u=J(()=>`${-1*d.value*(1-f.value)/2}px`),h=J(()=>({strokeDasharray:`${d.value*f.value}px, ${d.value}px`,strokeDashoffset:u.value})),k=J(()=>({strokeDasharray:`${d.value*f.value*(i.percentage/100)}px, ${d.value}px`,strokeDashoffset:u.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),v=J(()=>{let j;return i.color?j=M(i.percentage):j=n[i.status]||n.default,j}),w=J(()=>i.status==="warning"?$k:i.type==="line"?i.status==="success"?of:bs:i.status==="success"?Q2:Cl),g=J(()=>i.type==="line"?12+i.strokeWidth*.4:i.width*.111111+2),C=J(()=>i.format(i.percentage));function y(j){const b=100/j.length;return j.map((x,H)=>Rt(x)?{color:x,percentage:(H+1)*b}:x).sort((x,H)=>x.percentage-H.percentage)}const M=j=>{var b;const{color:E}=i;if(Pt(E))return E(j);if(Rt(E))return E;{const x=y(E);for(const H of x)if(H.percentage>j)return H.color;return(b=x[x.length-1])==null?void 0:b.color}};return(j,b)=>(Y(),fe("div",{class:ie([W(o).b(),W(o).m(j.type),W(o).is(j.status),{[W(o).m("without-text")]:!j.showText,[W(o).m("text-inside")]:j.textInside}]),role:"progressbar","aria-valuenow":j.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[j.type==="line"?(Y(),fe("div",{key:0,class:ie(W(o).b("bar"))},[ye("div",{class:ie(W(o).be("bar","outer")),style:jt({height:`${j.strokeWidth}px`})},[ye("div",{class:ie([W(o).be("bar","inner"),{[W(o).bem("bar","inner","indeterminate")]:j.indeterminate}]),style:jt(W(l))},[(j.showText||j.$slots.default)&&j.textInside?(Y(),fe("div",{key:0,class:ie(W(o).be("bar","innerText"))},[tt(j.$slots,"default",{percentage:j.percentage},()=>[ye("span",null,at(W(C)),1)])],2)):Re("v-if",!0)],6)],6)],2)):(Y(),fe("div",{key:1,class:ie(W(o).b("circle")),style:jt({height:`${j.width}px`,width:`${j.width}px`})},[(Y(),fe("svg",VJ,[ye("path",{class:ie(W(o).be("circle","track")),d:W(a),stroke:`var(${W(o).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-width":W(r),fill:"none",style:jt(W(h))},null,14,SJ),ye("path",{class:ie(W(o).be("circle","path")),d:W(a),stroke:W(v),fill:"none",opacity:j.percentage?1:0,"stroke-linecap":j.strokeLinecap,"stroke-width":W(r),style:jt(W(k))},null,14,zJ)]))],6)),(j.showText||j.$slots.default)&&!j.textInside?(Y(),fe("div",{key:2,class:ie(W(o).e("text")),style:jt({fontSize:`${W(g)}px`})},[tt(j.$slots,"default",{percentage:j.percentage},()=>[j.status?(Y(),Ue(W(mt),{key:1},{default:Ee(()=>[(Y(),Ue(pt(W(w))))]),_:1})):(Y(),fe("span",TJ,at(W(C)),1))])],6)):Re("v-if",!0)],10,HJ))}});var OJ=dt(BJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const BC=Yt(OJ),IJ=ut({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:qe([Array,Object]),default:()=>Di(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:qe([Array,Object]),default:()=>[p1,p1,p1]},voidIcon:{type:zi,default:()=>qO},disabledVoidIcon:{type:zi,default:()=>p1},disabled:{type:Boolean},allowHalf:{type:Boolean},showText:{type:Boolean},showScore:{type:Boolean},textColor:{type:String,default:""},texts:{type:qe(Array),default:()=>Di(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:{type:String,validator:Ta},label:{type:String,default:void 0}}),DJ={[Ni]:e=>Zt(e),[Xt]:e=>Zt(e)},PJ=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],RJ=["onMousemove","onClick"],NJ={name:"ElRate"},ZJ=Je({...NJ,props:IJ,emits:DJ,setup(e,{expose:i,emit:n}){const o=e;function l(A,R){const Z=U=>ii(U),I=Object.keys(R).map(U=>+U).filter(U=>{const G=R[U];return(Z(G)?G.excluded:!1)?AU-G),F=R[I[0]];return Z(F)&&F.value||F}const r=wt(_a,void 0),s=wt(ql,void 0),a=ln(),d=nt("rate"),{inputId:f,isLabeledByFormItem:u}=xs(o,{formItemContext:s}),h=re(o.modelValue),k=re(-1),v=re(!0),w=J(()=>[d.b(),d.m(a.value)]),g=J(()=>o.disabled||(r==null?void 0:r.disabled)),C=J(()=>d.cssVarBlock({"void-color":o.voidColor,"disabled-void-color":o.disabledVoidColor,"fill-color":b.value})),y=J(()=>{let A="";return o.showScore?A=o.scoreTemplate.replace(/\{\s*value\s*\}/,g.value?`${o.modelValue}`:`${h.value}`):o.showText&&(A=o.texts[Math.ceil(h.value)-1]),A}),M=J(()=>o.modelValue*100-Math.floor(o.modelValue)*100),j=J(()=>Ct(o.colors)?{[o.lowThreshold]:o.colors[0],[o.highThreshold]:{value:o.colors[1],excluded:!0},[o.max]:o.colors[2]}:o.colors),b=J(()=>{const A=l(h.value,j.value);return ii(A)?"":A}),E=J(()=>{let A="";return g.value?A=`${M.value}%`:o.allowHalf&&(A="50%"),{color:b.value,width:A}}),x=J(()=>{let A=Ct(o.icons)?[...o.icons]:{...o.icons};return A=Ul(A),Ct(A)?{[o.lowThreshold]:A[0],[o.highThreshold]:{value:A[1],excluded:!0},[o.max]:A[2]}:A}),H=J(()=>l(o.modelValue,x.value)),V=J(()=>g.value?Rt(o.disabledVoidIcon)?o.disabledVoidIcon:Ul(o.disabledVoidIcon):Rt(o.voidIcon)?o.voidIcon:Ul(o.voidIcon)),S=J(()=>l(h.value,x.value));function D(A){const R=g.value&&M.value>0&&A-1o.modelValue,Z=o.allowHalf&&v.value&&A-.5<=h.value&&A>h.value;return R||Z}function P(A){g.value||(o.allowHalf&&v.value?(n(Xt,h.value),o.modelValue!==h.value&&n("change",h.value)):(n(Xt,A),o.modelValue!==A&&n("change",A)))}function O(A){if(g.value)return;let R=h.value;const Z=A.code;return Z===At.up||Z===At.right?(o.allowHalf?R+=.5:R+=1,A.stopPropagation(),A.preventDefault()):(Z===At.left||Z===At.down)&&(o.allowHalf?R-=.5:R-=1,A.stopPropagation(),A.preventDefault()),R=R<0?0:R,R=R>o.max?o.max:R,n(Xt,R),n("change",R),R}function _(A,R){if(!g.value){if(o.allowHalf){let Z=R.target;vl(Z,d.e("item"))&&(Z=Z.querySelector(`.${d.e("icon")}`)),(Z.clientWidth===0||vl(Z,d.e("decimal")))&&(Z=Z.parentNode),v.value=R.offsetX*2<=Z.clientWidth,h.value=v.value?A-.5:A}else h.value=A;k.value=A}}function B(){g.value||(o.allowHalf&&(v.value=o.modelValue!==Math.floor(o.modelValue)),h.value=o.modelValue,k.value=-1)}return et(()=>o.modelValue,A=>{h.value=A,v.value=o.modelValue!==Math.floor(o.modelValue)}),o.modelValue||n(Xt,0),i({setCurrentValue:_,resetCurrentValue:B}),(A,R)=>{var Z;return Y(),fe("div",{id:W(f),class:ie([W(w),W(d).is("disabled",W(g))]),role:"slider","aria-label":W(u)?void 0:A.label||"rating","aria-labelledby":W(u)?(Z=W(s))==null?void 0:Z.labelId:void 0,"aria-valuenow":h.value,"aria-valuetext":W(y)||void 0,"aria-valuemin":"0","aria-valuemax":A.max,tabindex:"0",style:jt(W(C)),onKeydown:O},[(Y(!0),fe(yt,null,ai(A.max,(I,F)=>(Y(),fe("span",{key:F,class:ie(W(d).e("item")),onMousemove:U=>_(I,U),onMouseleave:B,onClick:U=>P(I)},[t(W(mt),{class:ie([W(d).e("icon"),{hover:k.value===I},W(d).is("active",I<=h.value)])},{default:Ee(()=>[D(I)?Re("v-if",!0):(Y(),fe(yt,{key:0},[Dt((Y(),Ue(pt(W(S)),null,null,512)),[[fi,I<=h.value]]),Dt((Y(),Ue(pt(W(V)),null,null,512)),[[fi,!(I<=h.value)]])],64)),D(I)?(Y(),Ue(W(mt),{key:1,style:jt(W(E)),class:ie([W(d).e("icon"),W(d).e("decimal")])},{default:Ee(()=>[(Y(),Ue(pt(W(H))))]),_:1},8,["style","class"])):Re("v-if",!0)]),_:2},1032,["class"])],42,RJ))),128)),A.showText||A.showScore?(Y(),fe("span",{key:0,class:ie(W(d).e("text"))},at(W(y)),3)):Re("v-if",!0)],46,PJ)}}});var FJ=dt(ZJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/rate/src/rate.vue"]]);const $J=Yt(FJ),Mc={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},B7={[Mc.success]:i_,[Mc.warning]:$k,[Mc.error]:lf,[Mc.info]:rf},UJ=ut({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["success","warning","info","error"],default:"info"}}),KJ={name:"ElResult"},GJ=Je({...KJ,props:UJ,setup(e){const i=e,n=nt("result"),o=J(()=>{const l=i.icon,r=l&&Mc[l]?Mc[l]:"icon-info",s=B7[r]||B7["icon-info"];return{class:r,component:s}});return(l,r)=>(Y(),fe("div",{class:ie(W(n).b())},[ye("div",{class:ie(W(n).e("icon"))},[tt(l.$slots,"icon",{},()=>[W(o).component?(Y(),Ue(pt(W(o).component),{key:0,class:ie(W(o).class)},null,8,["class"])):Re("v-if",!0)])],2),l.title||l.$slots.title?(Y(),fe("div",{key:0,class:ie(W(n).e("title"))},[tt(l.$slots,"title",{},()=>[ye("p",null,at(l.title),1)])],2)):Re("v-if",!0),l.subTitle||l.$slots["sub-title"]?(Y(),fe("div",{key:1,class:ie(W(n).e("subtitle"))},[tt(l.$slots,"sub-title",{},()=>[ye("p",null,at(l.subTitle),1)])],2)):Re("v-if",!0),l.$slots.extra?(Y(),fe("div",{key:2,class:ie(W(n).e("extra"))},[tt(l.$slots,"extra")],2)):Re("v-if",!0)],2))}});var qJ=dt(GJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/result/src/result.vue"]]);const YJ=Yt(qJ),XJ=["start","center","end","space-around","space-between","space-evenly"],QJ=["top","middle","bottom"],JJ=ut({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:XJ,default:"start"},align:{type:String,values:QJ,default:"top"}}),pJ={name:"ElRow"},ep=Je({...pJ,props:JJ,setup(e){const i=e,n=nt("row"),o=J(()=>i.gutter);Qt(gw,{gutter:o});const l=J(()=>{const r={};return i.gutter&&(r.marginRight=r.marginLeft=`-${i.gutter/2}px`),r});return(r,s)=>(Y(),Ue(pt(r.tag),{class:ie([W(n).b(),W(n).is(`justify-${i.justify}`,r.justify!=="start"),W(n).is(`align-${i.align}`,r.align!=="top")]),style:jt(W(l))},{default:Ee(()=>[tt(r.$slots,"default")]),_:3},8,["class","style"]))}});var tp=dt(ep,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const ip=Yt(tp);var O7=Number.isNaN||function(i){return typeof i=="number"&&i!==i};function np(e,i){return!!(e===i||O7(e)&&O7(i))}function op(e,i){if(e.length!==i.length)return!1;for(var n=0;n{const i=qt().proxy.$props;return J(()=>{const n=(o,l,r)=>({});return i.perfMode?Pk(n):lp(n)})},Zu=50,kk="itemRendered",hk="scroll",bc="forward",uk="backward",Fo="auto",rh="smart",B2="start",Zl="center",O2="end",Xc="horizontal",Nf="vertical",rp="ltr",zc="rtl",I2="negative",Zf="positive-ascending",Ff="positive-descending",sp={[Xc]:"left",[Nf]:"top"},ap=20,cp={[Xc]:"deltaX",[Nf]:"deltaY"},dp=({atEndEdge:e,atStartEdge:i,layout:n},o)=>{let l,r=0;const s=d=>d<0&&i.value||d>0&&e.value;return{hasReachedEdge:s,onWheel:d=>{kf(l);const f=d[cp[n.value]];s(r)&&s(r+f)||(r+=f,cf()||d.preventDefault(),l=df(()=>{o(r),r=0}))}}},Fu=bl({type:qe([Number,Function]),required:!0}),$u=bl({type:Number}),Uu=bl({type:Number,default:2}),kp=bl({type:String,values:["ltr","rtl"],default:"ltr"}),Ku=bl({type:Number,default:0}),fk=bl({type:Number,required:!0}),IC=bl({type:String,values:["horizontal","vertical"],default:Nf}),DC=ut({className:{type:String,default:""},containerElement:{type:qe([String,Object]),default:"div"},data:{type:qe(Array),default:()=>Di([])},direction:kp,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:qe([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),PC=ut({cache:Uu,estimatedItemSize:$u,layout:IC,initScrollOffset:Ku,total:fk,itemSize:Fu,...DC}),Gu={type:Number,default:6},RC={type:Number,default:0},NC={type:Number,default:2},va=ut({columnCache:Uu,columnWidth:Fu,estimatedColumnWidth:$u,estimatedRowHeight:$u,initScrollLeft:Ku,initScrollTop:Ku,itemKey:{type:qe(Function),default:({columnIndex:e,rowIndex:i})=>`${i}:${e}`},rowCache:Uu,rowHeight:Fu,totalColumn:fk,totalRow:fk,hScrollbarSize:Gu,vScrollbarSize:Gu,scrollbarStartGap:RC,scrollbarEndGap:NC,...DC}),ZC=ut({alwaysOn:Boolean,class:String,layout:IC,total:fk,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:Gu,startGap:RC,endGap:NC,visible:Boolean}),da=(e,i)=>ee===rp||e===zc||e===Xc,I7=e=>e===zc;let uc=null;function Lk(e=!1){if(uc===null||e){const i=document.createElement("div"),n=i.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";const o=document.createElement("div"),l=o.style;return l.width="100px",l.height="100px",i.appendChild(o),document.body.appendChild(i),i.scrollLeft>0?uc=Ff:(i.scrollLeft=1,i.scrollLeft===0?uc=I2:uc=Zf),document.body.removeChild(i),uc}return uc}function hp({move:e,size:i,bar:n},o){const l={},r=`translate${n.axis}(${e}px)`;return l[n.size]=i,l.transform=r,l.msTransform=r,l.webkitTransform=r,o==="horizontal"?l.height="100%":l.width="100%",l}const qu=Je({name:"ElVirtualScrollBar",props:ZC,emits:["scroll","start-move","stop-move"],setup(e,{emit:i}){const n=J(()=>e.startGap+e.endGap),o=nt("virtual-scrollbar"),l=nt("scrollbar"),r=re(),s=re();let a=null,d=null;const f=gi({isDragging:!1,traveled:0}),u=J(()=>Dw[e.layout]),h=J(()=>e.clientSize-W(n)),k=J(()=>({position:"absolute",width:`${Xc===e.layout?h.value:e.scrollbarSize}px`,height:`${Xc===e.layout?e.scrollbarSize:h.value}px`,[sp[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),v=J(()=>{const x=e.ratio,H=e.clientSize;if(x>=100)return Number.POSITIVE_INFINITY;if(x>=50)return x*H/100;const V=H/3;return Math.floor(Math.min(Math.max(x*H,ap),V))}),w=J(()=>{if(!Number.isFinite(v.value))return{display:"none"};const x=`${v.value}px`;return hp({bar:u.value,size:x,move:f.traveled},e.layout)}),g=J(()=>Math.floor(e.clientSize-v.value-W(n))),C=()=>{window.addEventListener("mousemove",b),window.addEventListener("mouseup",j);const x=W(s);!x||(d=document.onselectstart,document.onselectstart=()=>!1,x.addEventListener("touchmove",b),x.addEventListener("touchend",j))},y=()=>{window.removeEventListener("mousemove",b),window.removeEventListener("mouseup",j),document.onselectstart=d,d=null;const x=W(s);!x||(x.removeEventListener("touchmove",b),x.removeEventListener("touchend",j))},M=x=>{x.stopImmediatePropagation(),!(x.ctrlKey||[1,2].includes(x.button))&&(f.isDragging=!0,f[u.value.axis]=x.currentTarget[u.value.offset]-(x[u.value.client]-x.currentTarget.getBoundingClientRect()[u.value.direction]),i("start-move"),C())},j=()=>{f.isDragging=!1,f[u.value.axis]=0,i("stop-move"),y()},b=x=>{const{isDragging:H}=f;if(!H||!s.value||!r.value)return;const V=f[u.value.axis];if(!V)return;kf(a);const S=(r.value.getBoundingClientRect()[u.value.direction]-x[u.value.client])*-1,D=s.value[u.value.offset]-V,P=S-D;a=df(()=>{f.traveled=Math.max(e.startGap,Math.min(P,g.value)),i("scroll",P,g.value)})},E=x=>{const H=Math.abs(x.target.getBoundingClientRect()[u.value.direction]-x[u.value.client]),V=s.value[u.value.offset]/2,S=H-V;f.traveled=Math.max(0,Math.min(S,g.value)),i("scroll",S,g.value)};return et(()=>e.scrollFrom,x=>{f.isDragging||(f.traveled=Math.ceil(x*g.value))}),Ki(()=>{y()}),()=>Mt("div",{role:"presentation",ref:r,class:[o.b(),e.class,(e.alwaysOn||f.isDragging)&&"always-on"],style:k.value,onMousedown:Tt(E,["stop","prevent"]),onTouchstartPrevent:M},Mt("div",{ref:s,class:l.e("thumb"),style:w.value,onMousedown:M},[]))}}),FC=({name:e,getOffset:i,getItemSize:n,getItemOffset:o,getEstimatedTotalSize:l,getStartIndexForOffset:r,getStopIndexForStartIndex:s,initCache:a,clearCache:d,validateProps:f})=>Je({name:e!=null?e:"ElVirtualList",props:PC,emits:[kk,hk],setup(u,{emit:h,expose:k}){f(u);const v=qt(),w=nt("vl"),g=re(a(u,v)),C=OC(),y=re(),M=re(),j=re(),b=re({isScrolling:!1,scrollDir:"forward",scrollOffset:Zt(u.initScrollOffset)?u.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:u.scrollbarAlwaysOn}),E=J(()=>{const{total:Q,cache:ae}=u,{isScrolling:ee,scrollDir:de,scrollOffset:ke}=W(b);if(Q===0)return[0,0,0,0];const ce=r(u,ke,W(g)),we=s(u,ce,ke,W(g)),Ae=!ee||de===uk?Math.max(1,ae):1,_e=!ee||de===bc?Math.max(1,ae):1;return[Math.max(0,ce-Ae),Math.max(0,Math.min(Q-1,we+_e)),ce,we]}),x=J(()=>l(u,W(g))),H=J(()=>D2(u.layout)),V=J(()=>[{position:"relative",[`overflow-${H.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:u.direction,height:Zt(u.height)?`${u.height}px`:u.height,width:Zt(u.width)?`${u.width}px`:u.width},u.style]),S=J(()=>{const Q=W(x),ae=W(H);return{height:ae?"100%":`${Q}px`,pointerEvents:W(b).isScrolling?"none":void 0,width:ae?`${Q}px`:"100%"}}),D=J(()=>H.value?u.width:u.height),{onWheel:P}=dp({atStartEdge:J(()=>b.value.scrollOffset<=0),atEndEdge:J(()=>b.value.scrollOffset>=x.value),layout:J(()=>u.layout)},Q=>{var ae,ee;(ee=(ae=j.value).onMouseUp)==null||ee.call(ae),Z(Math.min(b.value.scrollOffset+Q,x.value-D.value))}),O=()=>{const{total:Q}=u;if(Q>0){const[ke,ce,we,Ae]=W(E);h(kk,ke,ce,we,Ae)}const{scrollDir:ae,scrollOffset:ee,updateRequested:de}=W(b);h(hk,ae,ee,de)},_=Q=>{const{clientHeight:ae,scrollHeight:ee,scrollTop:de}=Q.currentTarget,ke=W(b);if(ke.scrollOffset===de)return;const ce=Math.max(0,Math.min(de,ee-ae));b.value={...ke,isScrolling:!0,scrollDir:da(ke.scrollOffset,ce),scrollOffset:ce,updateRequested:!1},vt(U)},B=Q=>{const{clientWidth:ae,scrollLeft:ee,scrollWidth:de}=Q.currentTarget,ke=W(b);if(ke.scrollOffset===ee)return;const{direction:ce}=u;let we=ee;if(ce===zc)switch(Lk()){case I2:{we=-ee;break}case Ff:{we=de-ae-ee;break}}we=Math.max(0,Math.min(we,de-ae)),b.value={...ke,isScrolling:!0,scrollDir:da(ke.scrollOffset,we),scrollOffset:we,updateRequested:!1},vt(U)},A=Q=>{W(H)?B(Q):_(Q),O()},R=(Q,ae)=>{const ee=(x.value-D.value)/ae*Q;Z(Math.min(x.value-D.value,ee))},Z=Q=>{Q=Math.max(Q,0),Q!==W(b).scrollOffset&&(b.value={...W(b),scrollOffset:Q,scrollDir:da(W(b).scrollOffset,Q),updateRequested:!0},vt(U))},I=(Q,ae=Fo)=>{const{scrollOffset:ee}=W(b);Q=Math.max(0,Math.min(Q,u.total-1)),Z(i(u,Q,ae,ee,W(g)))},F=Q=>{const{direction:ae,itemSize:ee,layout:de}=u,ke=C.value(d&&ee,d&&de,d&&ae);let ce;if(si(ke,String(Q)))ce=ke[Q];else{const we=o(u,Q,W(g)),Ae=n(u,Q,W(g)),_e=W(H),ue=ae===zc,Me=_e?we:0;ke[Q]=ce={position:"absolute",left:ue?void 0:`${Me}px`,right:ue?`${Me}px`:void 0,top:_e?0:`${we}px`,height:_e?"100%":`${Ae}px`,width:_e?`${Ae}px`:"100%"}}return ce},U=()=>{b.value.isScrolling=!1,vt(()=>{C.value(-1,null,null)})},G=()=>{const Q=y.value;Q&&(Q.scrollTop=0)};Ot(()=>{if(!ui)return;const{initScrollOffset:Q}=u,ae=W(y);Zt(Q)&&ae&&(W(H)?ae.scrollLeft=Q:ae.scrollTop=Q),O()}),el(()=>{const{direction:Q,layout:ae}=u,{scrollOffset:ee,updateRequested:de}=W(b),ke=W(y);if(de&&ke)if(ae===Xc)if(Q===zc)switch(Lk()){case I2:{ke.scrollLeft=-ee;break}case Zf:{ke.scrollLeft=ee;break}default:{const{clientWidth:ce,scrollWidth:we}=ke;ke.scrollLeft=we-ce-ee;break}}else ke.scrollLeft=ee;else ke.scrollTop=ee});const K={ns:w,clientSize:D,estimatedTotalSize:x,windowStyle:V,windowRef:y,innerRef:M,innerStyle:S,itemsToRender:E,scrollbarRef:j,states:b,getItemStyle:F,onScroll:A,onScrollbarScroll:R,onWheel:P,scrollTo:Z,scrollToItem:I,resetScrollTop:G};return k({windowRef:y,innerRef:M,getItemStyleCache:C,scrollTo:Z,scrollToItem:I,resetScrollTop:G,states:b}),K},render(u){var h;const{$slots:k,className:v,clientSize:w,containerElement:g,data:C,getItemStyle:y,innerElement:M,itemsToRender:j,innerStyle:b,layout:E,total:x,onScroll:H,onScrollbarScroll:V,onWheel:S,states:D,useIsScrolling:P,windowStyle:O,ns:_}=u,[B,A]=j,R=pt(g),Z=pt(M),I=[];if(x>0)for(let K=B;K<=A;K++)I.push((h=k.default)==null?void 0:h.call(k,{data:C,key:K,index:K,isScrolling:P?D.isScrolling:void 0,style:y(K)}));const F=[Mt(Z,{style:b,ref:"innerRef"},Rt(Z)?I:{default:()=>I})],U=Mt(qu,{ref:"scrollbarRef",clientSize:w,layout:E,onScroll:V,ratio:w*100/this.estimatedTotalSize,scrollFrom:D.scrollOffset/(this.estimatedTotalSize-w),total:x}),G=Mt(R,{class:[_.e("window"),v],style:O,onScroll:H,onWheel:S,ref:"windowRef",key:0},Rt(R)?[F]:{default:()=>[F]});return Mt("div",{key:0,class:[_.e("wrapper"),D.scrollbarAlwaysOn?"always-on":""]},[G,U])}}),$C=FC({name:"ElFixedSizeList",getItemOffset:({itemSize:e},i)=>i*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:i})=>i*e,getOffset:({height:e,total:i,itemSize:n,layout:o,width:l},r,s,a)=>{const d=D2(o)?l:e,f=Math.max(0,i*n-d),u=Math.min(f,r*n),h=Math.max(0,(r+1)*n-d);switch(s===rh&&(a>=h-d&&a<=u+d?s=Fo:s=Zl),s){case B2:return u;case O2:return h;case Zl:{const k=Math.round(h+(u-h)/2);return kf+Math.floor(d/2)?f:k}case Fo:default:return a>=h&&a<=u?a:aMath.max(0,Math.min(e-1,Math.floor(n/i))),getStopIndexForStartIndex:({height:e,total:i,itemSize:n,layout:o,width:l},r,s)=>{const a=r*n,d=D2(o)?l:e,f=Math.ceil((d+s-a)/n);return Math.max(0,Math.min(i-1,r+f-1))},initCache(){},clearCache:!0,validateProps(){}}),Wc=(e,i,n)=>{const{itemSize:o}=e,{items:l,lastVisitedIndex:r}=n;if(i>r){let s=0;if(r>=0){const a=l[r];s=a.offset+a.size}for(let a=r+1;a<=i;a++){const d=o(a);l[a]={offset:s,size:d},s+=d}n.lastVisitedIndex=i}return l[i]},up=(e,i,n)=>{const{items:o,lastVisitedIndex:l}=i;return(l>0?o[l].offset:0)>=n?UC(e,i,0,l,n):fp(e,i,Math.max(0,l),n)},UC=(e,i,n,o,l)=>{for(;n<=o;){const r=n+Math.floor((o-n)/2),s=Wc(e,r,i).offset;if(s===l)return r;sl&&(o=r-1)}return Math.max(0,n-1)},fp=(e,i,n,o)=>{const{total:l}=e;let r=1;for(;n{let l=0;if(o>=e&&(o=e-1),o>=0){const a=i[o];l=a.offset+a.size}const s=(e-o-1)*n;return l+s},Lp=FC({name:"ElDynamicSizeList",getItemOffset:(e,i,n)=>Wc(e,i,n).offset,getItemSize:(e,i,{items:n})=>n[i].size,getEstimatedTotalSize:D7,getOffset:(e,i,n,o,l)=>{const{height:r,layout:s,width:a}=e,d=D2(s)?a:r,f=Wc(e,i,l),u=D7(e,l),h=Math.max(0,Math.min(u-d,f.offset)),k=Math.max(0,f.offset-d+f.size);switch(n===rh&&(o>=k-d&&o<=h+d?n=Fo:n=Zl),n){case B2:return h;case O2:return k;case Zl:return Math.round(k+(h-k)/2);case Fo:default:return o>=k&&o<=h?o:oup(e,n,i),getStopIndexForStartIndex:(e,i,n,o)=>{const{height:l,total:r,layout:s,width:a}=e,d=D2(s)?a:l,f=Wc(e,i,o),u=n+d;let h=f.offset+f.size,k=i;for(;k{var r,s;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,o-1),(r=i.exposed)==null||r.getItemStyleCache(-1),l&&((s=i.proxy)==null||s.$forceUpdate())},n},clearCache:!1,validateProps:({itemSize:e})=>{}}),gp=({atXEndEdge:e,atXStartEdge:i,atYEndEdge:n,atYStartEdge:o},l)=>{let r=null,s=0,a=0;const d=(u,h)=>{const k=u<0&&i.value||u>0&&e.value,v=h<0&&o.value||h>0&&n.value;return k&&v};return{hasReachedEdge:d,onWheel:u=>{kf(r);let h=u.deltaX,k=u.deltaY;Math.abs(h)>Math.abs(k)?k=0:h=0,u.shiftKey&&k!==0&&(h=k,k=0),!(d(s,a)&&d(s+h,a+k))&&(s+=h,a+=k,cf()||u.preventDefault(),r=df(()=>{l(s,a),s=0,a=0}))}}},KC=({name:e,clearCache:i,getColumnPosition:n,getColumnStartIndexForOffset:o,getColumnStopIndexForStartIndex:l,getEstimatedTotalHeight:r,getEstimatedTotalWidth:s,getColumnOffset:a,getRowOffset:d,getRowPosition:f,getRowStartIndexForOffset:u,getRowStopIndexForStartIndex:h,initCache:k,injectToInstance:v,validateProps:w})=>Je({name:e!=null?e:"ElVirtualList",props:va,emits:[kk,hk],setup(g,{emit:C,expose:y,slots:M}){const j=nt("vl");w(g);const b=qt(),E=re(k(g,b));v==null||v(b,E);const x=re(),H=re(),V=re(),S=re(null),D=re({isScrolling:!1,scrollLeft:Zt(g.initScrollLeft)?g.initScrollLeft:0,scrollTop:Zt(g.initScrollTop)?g.initScrollTop:0,updateRequested:!1,xAxisScrollDir:bc,yAxisScrollDir:bc}),P=OC(),O=J(()=>Number.parseInt(`${g.height}`,10)),_=J(()=>Number.parseInt(`${g.width}`,10)),B=J(()=>{const{totalColumn:Te,totalRow:Ne,columnCache:Ve}=g,{isScrolling:p,xAxisScrollDir:se,scrollLeft:oe}=W(D);if(Te===0||Ne===0)return[0,0,0,0];const ve=o(g,oe,W(E)),ne=l(g,ve,oe,W(E)),We=!p||se===uk?Math.max(1,Ve):1,ze=!p||se===bc?Math.max(1,Ve):1;return[Math.max(0,ve-We),Math.max(0,Math.min(Te-1,ne+ze)),ve,ne]}),A=J(()=>{const{totalColumn:Te,totalRow:Ne,rowCache:Ve}=g,{isScrolling:p,yAxisScrollDir:se,scrollTop:oe}=W(D);if(Te===0||Ne===0)return[0,0,0,0];const ve=u(g,oe,W(E)),ne=h(g,ve,oe,W(E)),We=!p||se===uk?Math.max(1,Ve):1,ze=!p||se===bc?Math.max(1,Ve):1;return[Math.max(0,ve-We),Math.max(0,Math.min(Ne-1,ne+ze)),ve,ne]}),R=J(()=>r(g,W(E))),Z=J(()=>s(g,W(E))),I=J(()=>{var Te;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:g.direction,height:Zt(g.height)?`${g.height}px`:g.height,width:Zt(g.width)?`${g.width}px`:g.width},(Te=g.style)!=null?Te:{}]}),F=J(()=>{const Te=`${W(Z)}px`;return{height:`${W(R)}px`,pointerEvents:W(D).isScrolling?"none":void 0,width:Te}}),U=()=>{const{totalColumn:Te,totalRow:Ne}=g;if(Te>0&&Ne>0){const[ne,We,ze,Ke]=W(B),[ge,Be,xe,Ye]=W(A);C(kk,{columnCacheStart:ne,columnCacheEnd:We,rowCacheStart:ge,rowCacheEnd:Be,columnVisibleStart:ze,columnVisibleEnd:Ke,rowVisibleStart:xe,rowVisibleEnd:Ye})}const{scrollLeft:Ve,scrollTop:p,updateRequested:se,xAxisScrollDir:oe,yAxisScrollDir:ve}=W(D);C(hk,{xAxisScrollDir:oe,scrollLeft:Ve,yAxisScrollDir:ve,scrollTop:p,updateRequested:se})},G=Te=>{const{clientHeight:Ne,clientWidth:Ve,scrollHeight:p,scrollLeft:se,scrollTop:oe,scrollWidth:ve}=Te.currentTarget,ne=W(D);if(ne.scrollTop===oe&&ne.scrollLeft===se)return;let We=se;if(I7(g.direction))switch(Lk()){case I2:We=-se;break;case Ff:We=ve-Ve-se;break}D.value={...ne,isScrolling:!0,scrollLeft:We,scrollTop:Math.max(0,Math.min(oe,p-Ne)),updateRequested:!0,xAxisScrollDir:da(ne.scrollLeft,We),yAxisScrollDir:da(ne.scrollTop,oe)},vt(()=>ce()),we(),U()},K=(Te,Ne)=>{const Ve=W(O),p=(R.value-Ve)/Ne*Te;ee({scrollTop:Math.min(R.value-Ve,p)})},Q=(Te,Ne)=>{const Ve=W(_),p=(Z.value-Ve)/Ne*Te;ee({scrollLeft:Math.min(Z.value-Ve,p)})},{onWheel:ae}=gp({atXStartEdge:J(()=>D.value.scrollLeft<=0),atXEndEdge:J(()=>D.value.scrollLeft>=Z.value),atYStartEdge:J(()=>D.value.scrollTop<=0),atYEndEdge:J(()=>D.value.scrollTop>=R.value)},(Te,Ne)=>{var Ve,p,se,oe;(p=(Ve=H.value)==null?void 0:Ve.onMouseUp)==null||p.call(Ve),(oe=(se=H.value)==null?void 0:se.onMouseUp)==null||oe.call(se);const ve=W(_),ne=W(O);ee({scrollLeft:Math.min(D.value.scrollLeft+Te,Z.value-ve),scrollTop:Math.min(D.value.scrollTop+Ne,R.value-ne)})}),ee=({scrollLeft:Te=D.value.scrollLeft,scrollTop:Ne=D.value.scrollTop})=>{Te=Math.max(Te,0),Ne=Math.max(Ne,0);const Ve=W(D);Ne===Ve.scrollTop&&Te===Ve.scrollLeft||(D.value={...Ve,xAxisScrollDir:da(Ve.scrollLeft,Te),yAxisScrollDir:da(Ve.scrollTop,Ne),scrollLeft:Te,scrollTop:Ne,updateRequested:!0},vt(()=>ce()),we(),U())},de=(Te=0,Ne=0,Ve=Fo)=>{const p=W(D);Ne=Math.max(0,Math.min(Ne,g.totalColumn-1)),Te=Math.max(0,Math.min(Te,g.totalRow-1));const se=Qv(j.namespace.value),oe=W(E),ve=r(g,oe),ne=s(g,oe);ee({scrollLeft:a(g,Ne,Ve,p.scrollLeft,oe,ne>g.width?se:0),scrollTop:d(g,Te,Ve,p.scrollTop,oe,ve>g.height?se:0)})},ke=(Te,Ne)=>{const{columnWidth:Ve,direction:p,rowHeight:se}=g,oe=P.value(i&&Ve,i&&se,i&&p),ve=`${Te},${Ne}`;if(si(oe,ve))return oe[ve];{const[,ne]=n(g,Ne,W(E)),We=W(E),ze=I7(p),[Ke,ge]=f(g,Te,We),[Be]=n(g,Ne,We);return oe[ve]={position:"absolute",left:ze?void 0:`${ne}px`,right:ze?`${ne}px`:void 0,top:`${ge}px`,height:`${Ke}px`,width:`${Be}px`},oe[ve]}},ce=()=>{D.value.isScrolling=!1,vt(()=>{P.value(-1,null,null)})};Ot(()=>{if(!ui)return;const{initScrollLeft:Te,initScrollTop:Ne}=g,Ve=W(x);Ve&&(Zt(Te)&&(Ve.scrollLeft=Te),Zt(Ne)&&(Ve.scrollTop=Ne)),U()});const we=()=>{const{direction:Te}=g,{scrollLeft:Ne,scrollTop:Ve,updateRequested:p}=W(D),se=W(x);if(p&&se){if(Te===zc)switch(Lk()){case I2:{se.scrollLeft=-Ne;break}case Zf:{se.scrollLeft=Ne;break}default:{const{clientWidth:oe,scrollWidth:ve}=se;se.scrollLeft=ve-oe-Ne;break}}else se.scrollLeft=Math.max(0,Ne);se.scrollTop=Math.max(0,Ve)}},{resetAfterColumnIndex:Ae,resetAfterRowIndex:_e,resetAfter:ue}=b.proxy;y({windowRef:x,innerRef:S,getItemStyleCache:P,scrollTo:ee,scrollToItem:de,states:D,resetAfterColumnIndex:Ae,resetAfterRowIndex:_e,resetAfter:ue});const Me=()=>{const{scrollbarAlwaysOn:Te,scrollbarStartGap:Ne,scrollbarEndGap:Ve,totalColumn:p,totalRow:se}=g,oe=W(_),ve=W(O),ne=W(Z),We=W(R),{scrollLeft:ze,scrollTop:Ke}=W(D),ge=Mt(qu,{ref:H,alwaysOn:Te,startGap:Ne,endGap:Ve,class:j.e("horizontal"),clientSize:oe,layout:"horizontal",onScroll:Q,ratio:oe*100/ne,scrollFrom:ze/(ne-oe),total:se,visible:!0}),Be=Mt(qu,{ref:V,alwaysOn:Te,startGap:Ne,endGap:Ve,class:j.e("vertical"),clientSize:ve,layout:"vertical",onScroll:K,ratio:ve*100/We,scrollFrom:Ke/(We-ve),total:p,visible:!0});return{horizontalScrollbar:ge,verticalScrollbar:Be}},Oe=()=>{var Te;const[Ne,Ve]=W(B),[p,se]=W(A),{data:oe,totalColumn:ve,totalRow:ne,useIsScrolling:We,itemKey:ze}=g,Ke=[];if(ne>0&&ve>0)for(let ge=p;ge<=se;ge++)for(let Be=Ne;Be<=Ve;Be++)Ke.push((Te=M.default)==null?void 0:Te.call(M,{columnIndex:Be,data:oe,key:ze({columnIndex:Be,data:oe,rowIndex:ge}),isScrolling:We?W(D).isScrolling:void 0,style:ke(ge,Be),rowIndex:ge}));return Ke},De=()=>{const Te=pt(g.innerElement),Ne=Oe();return[Mt(Te,{style:W(F),ref:S},Rt(Te)?Ne:{default:()=>Ne})]};return()=>{const Te=pt(g.containerElement),{horizontalScrollbar:Ne,verticalScrollbar:Ve}=Me(),p=De();return Mt("div",{key:0,class:j.e("wrapper")},[Mt(Te,{class:g.className,style:W(I),onScroll:G,onWheel:ae,ref:x},Rt(Te)?p:{default:()=>p}),Ne,Ve])}}}),vp=KC({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:e},i)=>[e,i*e],getRowPosition:({rowHeight:e},i)=>[e,i*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:i})=>i*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:i})=>i*e,getColumnOffset:({totalColumn:e,columnWidth:i,width:n},o,l,r,s,a)=>{n=Number(n);const d=Math.max(0,e*i-n),f=Math.min(d,o*i),u=Math.max(0,o*i-n+a+i);switch(l==="smart"&&(r>=u-n&&r<=f+n?l=Fo:l=Zl),l){case B2:return f;case O2:return u;case Zl:{const h=Math.round(u+(f-u)/2);return hd+Math.floor(n/2)?d:h}case Fo:default:return r>=u&&r<=f?r:u>f||r{i=Number(i);const d=Math.max(0,n*e-i),f=Math.min(d,o*e),u=Math.max(0,o*e-i+a+e);switch(l===rh&&(r>=u-i&&r<=f+i?l=Fo:l=Zl),l){case B2:return f;case O2:return u;case Zl:{const h=Math.round(u+(f-u)/2);return hd+Math.floor(i/2)?d:h}case Fo:default:return r>=u&&r<=f?r:u>f||rMath.max(0,Math.min(i-1,Math.floor(n/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:i,width:n},o,l)=>{const r=o*e,s=Math.ceil((n+l-r)/e);return Math.max(0,Math.min(i-1,o+s-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:i},n)=>Math.max(0,Math.min(i-1,Math.floor(n/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:i,height:n},o,l)=>{const r=o*e,s=Math.ceil((n+l-r)/e);return Math.max(0,Math.min(i-1,o+s-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:i})=>{}}),{max:gk,min:GC,floor:qC}=Math,wp={column:"columnWidth",row:"rowHeight"},Yu={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},kr=(e,i,n,o)=>{const[l,r,s]=[n[o],e[wp[o]],n[Yu[o]]];if(i>s){let a=0;if(s>=0){const d=l[s];a=d.offset+d.size}for(let d=s+1;d<=i;d++){const f=r(d);l[d]={offset:a,size:f},a+=f}n[Yu[o]]=i}return l[i]},YC=(e,i,n,o,l,r)=>{for(;n<=o;){const s=n+qC((o-n)/2),a=kr(e,s,i,r).offset;if(a===l)return s;a{const r=l==="column"?e.totalColumn:e.totalRow;let s=1;for(;n{const[l,r]=[i[o],i[Yu[o]]];return(r>0?l[r].offset:0)>=n?YC(e,i,0,r,n,o):mp(e,i,gk(0,r),n,o)},XC=({totalRow:e},{estimatedRowHeight:i,lastVisitedRowIndex:n,row:o})=>{let l=0;if(n>=e&&(n=e-1),n>=0){const a=o[n];l=a.offset+a.size}const s=(e-n-1)*i;return l+s},QC=({totalColumn:e},{column:i,estimatedColumnWidth:n,lastVisitedColumnIndex:o})=>{let l=0;if(o>e&&(o=e-1),o>=0){const a=i[o];l=a.offset+a.size}const s=(e-o-1)*n;return l+s},Cp={column:QC,row:XC},R7=(e,i,n,o,l,r,s)=>{const[a,d]=[r==="row"?e.height:e.width,Cp[r]],f=kr(e,i,l,r),u=d(e,l),h=gk(0,GC(u-a,f.offset)),k=gk(0,f.offset-a+s+f.size);switch(n===rh&&(o>=k-a&&o<=h+a?n=Fo:n=Zl),n){case B2:return h;case O2:return k;case Zl:return Math.round(k+(h-k)/2);case Fo:default:return o>=k&&o<=h?o:k>h||o{const o=kr(e,i,n,"column");return[o.size,o.offset]},getRowPosition:(e,i,n)=>{const o=kr(e,i,n,"row");return[o.size,o.offset]},getColumnOffset:(e,i,n,o,l,r)=>R7(e,i,n,o,l,"column",r),getRowOffset:(e,i,n,o,l,r)=>R7(e,i,n,o,l,"row",r),getColumnStartIndexForOffset:(e,i,n)=>P7(e,n,i,"column"),getColumnStopIndexForStartIndex:(e,i,n,o)=>{const l=kr(e,i,o,"column"),r=n+e.width;let s=l.offset+l.size,a=i;for(;aP7(e,n,i,"row"),getRowStopIndexForStartIndex:(e,i,n,o)=>{const{totalRow:l,height:r}=e,s=kr(e,i,o,"row"),a=n+r;let d=s.size+s.offset,f=i;for(;f{const n=({columnIndex:r,rowIndex:s},a)=>{var d,f;a=Tn(a)?!0:a,Zt(r)&&(i.value.lastVisitedColumnIndex=Math.min(i.value.lastVisitedColumnIndex,r-1)),Zt(s)&&(i.value.lastVisitedRowIndex=Math.min(i.value.lastVisitedRowIndex,s-1)),(d=e.exposed)==null||d.getItemStyleCache.value(-1,null,null),a&&((f=e.proxy)==null||f.$forceUpdate())},o=(r,s)=>{n({columnIndex:r},s)},l=(r,s)=>{n({rowIndex:r},s)};Object.assign(e.proxy,{resetAfterColumnIndex:o,resetAfterRowIndex:l,resetAfter:n})},initCache:({estimatedColumnWidth:e=Zu,estimatedRowHeight:i=Zu})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:i,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:i})=>{}}),yp=Je({props:{item:{type:Object,required:!0},style:Object,height:Number},setup(){return{ns:nt("select")}}});function Mp(e,i,n,o,l,r){return e.item.isTitle?(Y(),fe("div",{key:0,class:ie(e.ns.be("group","title")),style:jt([e.style,{lineHeight:`${e.height}px`}])},at(e.item.label),7)):(Y(),fe("div",{key:1,class:ie(e.ns.be("group","split")),style:jt(e.style)},[ye("span",{class:ie(e.ns.be("group","split-dash")),style:jt({top:`${e.height/2}px`})},null,6)],6))}var bp=dt(yp,[["render",Mp],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/group-item.vue"]]);function Wp(e,{emit:i}){return{hoverItem:()=>{e.disabled||i("hover",e.index)},selectOptionClick:()=>{e.disabled||i("select",e.item,e.index)}}}const xp={allowCreate:Boolean,autocomplete:{type:String,default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:[String,Object],default:bs},effect:{type:String,default:"light"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},defaultFirstOption:Boolean,disabled:Boolean,estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:Function,height:{type:Number,default:170},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,label:String,modelValue:[Array,String,Number,Boolean,Object],multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:Function,reserveKeyword:{type:Boolean,default:!0},options:{type:Array,required:!0},placeholder:{type:String},teleported:Vn.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,size:{type:String,validator:Ta},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:{type:Boolean,default:!1},validateEvent:{type:Boolean,default:!0},placement:{type:qe(String),values:Ba,default:"bottom-start"}},Ap={data:Array,disabled:Boolean,hovering:Boolean,item:Object,index:Number,style:Object,selected:Boolean,created:Boolean},Ep=Je({props:Ap,emits:["select","hover"],setup(e,{emit:i}){const n=nt("select"),{hoverItem:o,selectOptionClick:l}=Wp(e,{emit:i});return{ns:n,hoverItem:o,selectOptionClick:l}}}),Hp=["aria-selected"];function Vp(e,i,n,o,l,r){return Y(),fe("li",{"aria-selected":e.selected,style:jt(e.style),class:ie([e.ns.be("dropdown","option-item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),{hover:e.hovering}]),onMouseenter:i[0]||(i[0]=(...s)=>e.hoverItem&&e.hoverItem(...s)),onClick:i[1]||(i[1]=Tt((...s)=>e.selectOptionClick&&e.selectOptionClick(...s),["stop"]))},[tt(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[ye("span",null,at(e.item.label),1)])],46,Hp)}var Sp=dt(Ep,[["render",Vp],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/option-item.vue"]]);const JC="ElSelectV2Injection";var zp=Je({name:"ElSelectDropdown",props:{data:{type:Array,required:!0},hoveringIndex:Number,width:Number},setup(e,{slots:i,expose:n}){const o=wt(JC),l=nt("select"),r=re([]),s=re(),a=J(()=>Tn(o.props.estimatedOptionHeight)),d=J(()=>a.value?{itemSize:o.props.itemHeight}:{estimatedSize:o.props.estimatedOptionHeight,itemSize:H=>r.value[H]}),f=(H=[],V)=>{const{props:{valueKey:S}}=o;return ii(V)?H&&H.some(D=>Ri(D,S)===Ri(V,S)):H.includes(V)},u=(H,V)=>{if(ii(V)){const{valueKey:S}=o.props;return Ri(H,S)===Ri(V,S)}else return H===V},h=(H,V)=>{const{valueKey:S}=o.props;return o.props.multiple?f(H,Ri(V,S)):u(H,Ri(V,S))},k=(H,V)=>{const{disabled:S,multiple:D,multipleLimit:P}=o.props;return S||!V&&(D?P>0&&H.length>=P:!1)},v=H=>e.hoveringIndex===H;n({listRef:s,isSized:a,isItemDisabled:k,isItemHovering:v,isItemSelected:h,scrollToItem:H=>{const V=s.value;V&&V.scrollToItem(H)},resetScrollTop:()=>{const H=s.value;H&&H.resetScrollTop()}});const C=H=>{const{index:V,data:S,style:D}=H,P=W(a),{itemSize:O,estimatedSize:_}=W(d),{modelValue:B}=o.props,{onSelect:A,onHover:R}=o,Z=S[V];if(Z.type==="Group")return t(bp,{item:Z,style:D,height:P?O:_},null);const I=h(B,Z),F=k(B,I),U=v(V);return t(Sp,ei(H,{selected:I,disabled:Z.disabled||F,created:!!Z.created,hovering:U,item:Z,onSelect:A,onHover:R}),{default:G=>{var K;return((K=i.default)==null?void 0:K.call(i,G))||t("span",null,[Z.label])}})},{onKeyboardNavigate:y,onKeyboardSelect:M}=o,j=()=>{y("forward")},b=()=>{y("backward")},E=()=>{o.expanded=!1},x=H=>{const{code:V}=H,{tab:S,esc:D,down:P,up:O,enter:_}=At;switch(V!==S&&(H.preventDefault(),H.stopPropagation()),V){case S:case D:{E();break}case P:{j();break}case O:{b();break}case _:{M();break}}};return()=>{var H;const{data:V,width:S}=e,{height:D,multiple:P,scrollbarAlwaysOn:O}=o.props;if(V.length===0)return t("div",{class:l.b("dropdown"),style:{width:`${S}px`}},[(H=i.empty)==null?void 0:H.call(i)]);const _=W(a)?$C:Lp;return t("div",{class:[l.b("dropdown"),l.is("multiple",P)]},[t(_,ei({ref:s},W(d),{className:l.be("dropdown","list"),scrollbarAlwaysOn:O,data:V,height:D,width:S,total:V.length,onKeydown:x}),{default:B=>t(C,B,null)})])}}});function Tp(e,i){const n=re(0),o=re(null),l=J(()=>e.allowCreate&&e.filterable);function r(u){const h=k=>k.value===u;return e.options&&e.options.some(h)||i.createdOptions.some(h)}function s(u){!l.value||(e.multiple&&u.created?n.value++:o.value=u)}function a(u){if(l.value)if(u&&u.length>0&&!r(u)){const h={value:u,label:u,created:!0,disabled:!1};i.createdOptions.length>=n.value?i.createdOptions[n.value]=h:i.createdOptions.push(h)}else if(e.multiple)i.createdOptions.length=n.value;else{const h=o.value;i.createdOptions.length=0,h&&h.created&&i.createdOptions.push(h)}}function d(u){if(!l.value||!u||!u.created||u.created&&e.reserveKeyword&&i.inputValue===u.label)return;const h=i.createdOptions.findIndex(k=>k.value===u.value);~h&&(i.createdOptions.splice(h,1),n.value--)}function f(){l.value&&(i.createdOptions.length=0,n.value=0)}return{createNewOption:a,removeNewOption:d,selectNewOption:s,clearAllNewOption:f}}const _p=e=>{const i=[];return e.forEach(n=>{Ct(n.options)?(i.push({label:n.label,isTitle:!0,type:"Group"}),n.options.forEach(o=>{i.push(o)}),i.push({type:"Group"})):i.push(n)}),i};function Bp(e){const i=re(!1);return{handleCompositionStart:()=>{i.value=!0},handleCompositionUpdate:r=>{const s=r.target.value,a=s[s.length-1]||"";i.value=!Kk(a)},handleCompositionEnd:r=>{i.value&&(i.value=!1,Pt(e)&&e(r))}}}const N7="",Z7=11,Op={larget:51,default:42,small:33},Ip=(e,i)=>{const{t:n}=wi(),o=nt("select-v2"),l=nt("input"),{form:r,formItem:s}=zo(),a=gi({inputValue:N7,displayInputValue:N7,calculatedWidth:0,cachedPlaceholder:"",cachedOptions:[],createdOptions:[],createdLabel:"",createdSelected:!1,currentPlaceholder:"",hoveringIndex:-1,comboBoxHovering:!1,isOnComposition:!1,isSilentBlur:!1,isComposing:!1,inputLength:20,selectWidth:200,initialInputHeight:0,previousQuery:null,previousValue:"",query:"",selectedLabel:"",softFocus:!1,tagInMultiLine:!1}),d=re(-1),f=re(-1),u=re(null),h=re(null),k=re(null),v=re(null),w=re(null),g=re(null),C=re(null),y=re(!1),M=J(()=>e.disabled||(r==null?void 0:r.disabled)),j=J(()=>{const ot=O.value.length*34;return ot>e.height?e.height:ot}),b=J(()=>!fo(e.modelValue)),E=J(()=>{const ot=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:b.value;return e.clearable&&!M.value&&a.comboBoxHovering&&ot}),x=J(()=>e.remote&&e.filterable?"":Fk),H=J(()=>x.value&&o.is("reverse",y.value)),V=J(()=>(s==null?void 0:s.validateState)||""),S=J(()=>rw[V.value]),D=J(()=>e.remote?300:0),P=J(()=>{const ot=O.value;return e.loading?e.loadingText||n("el.select.loading"):e.remote&&a.inputValue===""&&ot.length===0?!1:e.filterable&&a.inputValue&&ot.length>0?e.noMatchText||n("el.select.noMatch"):ot.length===0?e.noDataText||n("el.select.noData"):null}),O=J(()=>{const ot=bt=>{var St;const _t=a.inputValue;return _t?(St=bt.label)==null?void 0:St.includes(_t):!0};return e.loading?[]:_p(e.options.concat(a.createdOptions).map(bt=>{if(Ct(bt.options)){const St=bt.options.filter(ot);if(St.length>0)return{...bt,options:St}}else if(e.remote||ot(bt))return bt;return null}).filter(bt=>bt!==null))}),_=J(()=>O.value.every(ot=>ot.disabled)),B=ln(),A=J(()=>B.value==="small"?"small":"default"),R=J(()=>{const ot=g.value,bt=A.value||"default",St=ot?Number.parseInt(getComputedStyle(ot).paddingLeft):0,_t=ot?Number.parseInt(getComputedStyle(ot).paddingRight):0;return a.selectWidth-_t-St-Op[bt]}),Z=()=>{var ot;f.value=((ot=w.value)==null?void 0:ot.offsetWidth)||200},I=J(()=>({width:`${a.calculatedWidth===0?Z7:Math.ceil(a.calculatedWidth)+Z7}px`})),F=J(()=>Ct(e.modelValue)?e.modelValue.length===0&&!a.displayInputValue:e.filterable?a.displayInputValue.length===0:!0),U=J(()=>{const ot=e.placeholder||n("el.select.placeholder");return e.multiple?ot:a.selectedLabel||ot}),G=J(()=>{var ot,bt;return(bt=(ot=v.value)==null?void 0:ot.popperRef)==null?void 0:bt.contentRef}),K=J(()=>{if(e.multiple){const ot=e.modelValue.length;if(e.modelValue.length>0)return O.value.findIndex(bt=>bt.value===e.modelValue[ot-1])}else if(e.modelValue)return O.value.findIndex(ot=>ot.value===e.modelValue);return-1}),Q=J({get(){return y.value&&P.value!==!1},set(ot){y.value=ot}}),{createNewOption:ae,removeNewOption:ee,selectNewOption:de,clearAllNewOption:ke}=Tp(e,a),{handleCompositionStart:ce,handleCompositionUpdate:we,handleCompositionEnd:Ae}=Bp(ot=>rt(ot)),_e=()=>{var ot,bt,St;(bt=(ot=h.value).focus)==null||bt.call(ot),(St=v.value)==null||St.updatePopper()},ue=()=>{if(!e.automaticDropdown&&!M.value)return a.isComposing&&(a.softFocus=!0),vt(()=>{var ot,bt;y.value=!y.value,(bt=(ot=h.value)==null?void 0:ot.focus)==null||bt.call(ot)})},Me=()=>(e.filterable&&a.inputValue!==a.selectedLabel&&(a.query=a.selectedLabel),De(a.inputValue),vt(()=>{ae(a.inputValue)})),Oe=io(Me,D.value),De=ot=>{a.previousQuery!==ot&&(a.previousQuery=ot,e.filterable&&Pt(e.filterMethod)?e.filterMethod(ot):e.filterable&&e.remote&&Pt(e.remoteMethod)&&e.remoteMethod(ot))},Ze=ot=>{Uo(e.modelValue,ot)||i(Ni,ot)},Te=ot=>{i(Xt,ot),Ze(ot),a.previousValue=ot.toString()},Ne=(ot=[],bt)=>{if(!ii(bt))return ot.indexOf(bt);const St=e.valueKey;let _t=-1;return ot.some((Ti,Ai)=>Ri(Ti,St)===Ri(bt,St)?(_t=Ai,!0):!1),_t},Ve=ot=>ii(ot)?Ri(ot,e.valueKey):ot,p=ot=>ii(ot)?ot.label:ot,se=()=>{if(!(e.collapseTags&&!e.filterable))return vt(()=>{var ot,bt;if(!h.value)return;const St=g.value;w.value.height=St.offsetHeight,y.value&&P.value!==!1&&((bt=(ot=v.value)==null?void 0:ot.updatePopper)==null||bt.call(ot))})},oe=()=>{var ot,bt;if(ve(),Z(),(bt=(ot=v.value)==null?void 0:ot.updatePopper)==null||bt.call(ot),e.multiple)return se()},ve=()=>{const ot=g.value;ot&&(a.selectWidth=ot.getBoundingClientRect().width)},ne=(ot,bt,St=!0)=>{var _t,Ti;if(e.multiple){let Ai=e.modelValue.slice();const en=Ne(Ai,Ve(ot));en>-1?(Ai=[...Ai.slice(0,en),...Ai.slice(en+1)],a.cachedOptions.splice(en,1),ee(ot)):(e.multipleLimit<=0||Ai.length{const{valueKey:St}=e,_t=e.modelValue.indexOf(Ri(bt,St));if(_t>-1&&!M.value){const Ti=[...e.modelValue.slice(0,_t),...e.modelValue.slice(_t+1)];return a.cachedOptions.splice(_t,1),Te(Ti),i("remove-tag",Ri(bt,St)),a.softFocus=!0,ee(bt),vt(_e)}ot.stopPropagation()},ze=ot=>{const bt=a.isComposing;a.isComposing=!0,a.softFocus?a.softFocus=!1:bt||i("focus",ot)},Ke=ot=>(a.softFocus=!1,vt(()=>{var bt,St;(St=(bt=h.value)==null?void 0:bt.blur)==null||St.call(bt),C.value&&(a.calculatedWidth=C.value.getBoundingClientRect().width),a.isSilentBlur?a.isSilentBlur=!1:a.isComposing&&i("blur",ot),a.isComposing=!1})),ge=()=>{a.displayInputValue.length>0?Ye(""):y.value=!1},Be=ot=>{if(a.displayInputValue.length===0){ot.preventDefault();const bt=e.modelValue.slice();bt.pop(),ee(a.cachedOptions.pop()),Te(bt)}},xe=()=>{let ot;return Ct(e.modelValue)?ot=[]:ot="",a.softFocus=!0,e.multiple?a.cachedOptions=[]:a.selectedLabel="",y.value=!1,Te(ot),i("clear"),ke(),vt(_e)},Ye=ot=>{a.displayInputValue=ot,a.inputValue=ot},He=(ot,bt=void 0)=>{const St=O.value;if(!["forward","backward"].includes(ot)||M.value||St.length<=0||_.value)return;if(!y.value)return ue();bt===void 0&&(bt=a.hoveringIndex);let _t=-1;ot==="forward"?(_t=bt+1,_t>=St.length&&(_t=0)):ot==="backward"&&(_t=bt-1,_t<0&&(_t=St.length-1));const Ti=St[_t];if(Ti.disabled||Ti.type==="Group")return He(ot,_t);it(_t),Wt(_t)},Xe=()=>{if(y.value)~a.hoveringIndex&&O.value[a.hoveringIndex]&&ne(O.value[a.hoveringIndex],a.hoveringIndex,!1);else return ue()},it=ot=>{a.hoveringIndex=ot},lt=()=>{a.hoveringIndex=-1},ht=()=>{var ot;const bt=h.value;bt&&((ot=bt.focus)==null||ot.call(bt))},rt=ot=>{const bt=ot.target.value;if(Ye(bt),a.displayInputValue.length>0&&!y.value&&(y.value=!0),a.calculatedWidth=C.value.getBoundingClientRect().width,e.multiple&&se(),e.remote)Oe();else return Me()},ri=()=>(y.value=!1,Ke()),ti=()=>(a.inputValue=a.displayInputValue,vt(()=>{~K.value&&(it(K.value),Wt(a.hoveringIndex))})),Wt=ot=>{k.value.scrollToItem(ot)},Kt=()=>{if(lt(),e.multiple)if(e.modelValue.length>0){let ot=!1;a.cachedOptions.length=0,a.previousValue=e.modelValue.toString(),e.modelValue.forEach(bt=>{const St=O.value.findIndex(_t=>Ve(_t)===bt);~St&&(a.cachedOptions.push(O.value[St]),ot||it(St),ot=!0)})}else a.cachedOptions=[],a.previousValue="";else if(b.value){a.previousValue=e.modelValue;const ot=O.value,bt=ot.findIndex(St=>Ve(St)===Ve(e.modelValue));~bt?(a.selectedLabel=ot[bt].label,it(bt)):a.selectedLabel=`${e.modelValue}`}else a.selectedLabel="",a.previousValue="";ke(),Z()};return et(y,ot=>{var bt,St;i("visible-change",ot),ot?(St=(bt=v.value).update)==null||St.call(bt):(a.displayInputValue="",a.previousQuery=null,ae(""))}),et(()=>e.modelValue,(ot,bt)=>{var St;(!ot||ot.toString()!==a.previousValue)&&Kt(),!Uo(ot,bt)&&e.validateEvent&&((St=s==null?void 0:s.validate)==null||St.call(s,"change").catch(_t=>void 0))},{deep:!0}),et(()=>e.options,()=>{const ot=h.value;(!ot||ot&&document.activeElement!==ot)&&Kt()},{deep:!0}),et(O,()=>vt(k.value.resetScrollTop)),Ot(()=>{Kt()}),Un(w,oe),{collapseTagSize:A,currentPlaceholder:U,expanded:y,emptyText:P,popupHeight:j,debounce:D,filteredOptions:O,iconComponent:x,iconReverse:H,inputWrapperStyle:I,popperSize:f,dropdownMenuVisible:Q,hasModelValue:b,shouldShowPlaceholder:F,selectDisabled:M,selectSize:B,showClearBtn:E,states:a,tagMaxWidth:R,nsSelectV2:o,nsInput:l,calculatorRef:C,controlRef:u,inputRef:h,menuRef:k,popper:v,selectRef:w,selectionRef:g,popperRef:G,validateState:V,validateIcon:S,debouncedOnInputChange:Oe,deleteTag:We,getLabel:p,getValueKey:Ve,handleBlur:Ke,handleClear:xe,handleClickOutside:ri,handleDel:Be,handleEsc:ge,handleFocus:ze,handleMenuEnter:ti,handleResize:oe,toggleMenu:ue,scrollTo:Wt,onInput:rt,onKeyboardNavigate:He,onKeyboardSelect:Xe,onSelect:ne,onHover:it,onUpdateInputValue:Ye,handleCompositionStart:ce,handleCompositionEnd:Ae,handleCompositionUpdate:we}},Dp=Je({name:"ElSelectV2",components:{ElSelectMenu:zp,ElTag:ih,ElTooltip:wo,ElIcon:mt},directives:{ClickOutside:js,ModelText:I3},props:xp,emits:[Xt,Ni,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:i}){const n=Ip(e,i);return Qt(JC,{props:gi({...hn(e),height:n.popupHeight}),onSelect:n.onSelect,onHover:n.onHover,onKeyboardNavigate:n.onKeyboardNavigate,onKeyboardSelect:n.onKeyboardSelect}),n}}),Pp={key:0},Rp=["id","autocomplete","aria-expanded","aria-labelledby","disabled","readonly","name","unselectable"],Np=["textContent"],Zp=["id","aria-labelledby","aria-expanded","autocomplete","disabled","name","readonly","unselectable"],Fp=["textContent"];function $p(e,i,n,o,l,r){const s=ct("el-tag"),a=ct("el-tooltip"),d=ct("el-icon"),f=ct("el-select-menu"),u=gs("model-text"),h=gs("click-outside");return Dt((Y(),fe("div",{ref:"selectRef",class:ie([e.nsSelectV2.b(),e.nsSelectV2.m(e.selectSize)]),onClick:i[25]||(i[25]=Tt((...k)=>e.toggleMenu&&e.toggleMenu(...k),["stop"])),onMouseenter:i[26]||(i[26]=k=>e.states.comboBoxHovering=!0),onMouseleave:i[27]||(i[27]=k=>e.states.comboBoxHovering=!1)},[t(a,{ref:"popper",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelectV2.e("popper"),e.popperClass],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,placement:e.placement,pure:"",transition:`${e.nsSelectV2.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,onBeforeShow:e.handleMenuEnter,onHide:i[24]||(i[24]=k=>e.states.inputValue=e.states.displayInputValue)},{default:Ee(()=>{var k;return[ye("div",{ref:"selectionRef",class:ie([e.nsSelectV2.e("wrapper"),e.nsSelectV2.is("focused",e.states.isComposing),e.nsSelectV2.is("hovering",e.states.comboBoxHovering),e.nsSelectV2.is("filterable",e.filterable),e.nsSelectV2.is("disabled",e.selectDisabled)])},[e.$slots.prefix?(Y(),fe("div",Pp,[tt(e.$slots,"prefix")])):Re("v-if",!0),e.multiple?(Y(),fe("div",{key:1,class:ie(e.nsSelectV2.e("selection"))},[e.collapseTags&&e.modelValue.length>0?(Y(),fe("div",{key:0,class:ie(e.nsSelectV2.e("selected-item"))},[t(s,{closable:!e.selectDisabled&&!((k=e.states.cachedOptions[0])!=null&&k.disable),size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:i[0]||(i[0]=v=>e.deleteTag(v,e.states.cachedOptions[0]))},{default:Ee(()=>{var v;return[ye("span",{class:ie(e.nsSelectV2.e("tags-text")),style:jt({maxWidth:`${e.tagMaxWidth}px`})},at((v=e.states.cachedOptions[0])==null?void 0:v.label),7)]}),_:1},8,["closable","size"]),e.modelValue.length>1?(Y(),Ue(s,{key:0,closable:!1,size:e.collapseTagSize,type:"info","disable-transitions":""},{default:Ee(()=>[e.collapseTagsTooltip?(Y(),Ue(a,{key:0,disabled:e.dropdownMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:!1},{default:Ee(()=>[ye("span",{class:ie(e.nsSelectV2.e("tags-text")),style:jt({maxWidth:`${e.tagMaxWidth}px`})},"+ "+at(e.modelValue.length-1),7)]),content:Ee(()=>[ye("div",{class:ie(e.nsSelectV2.e("selection"))},[(Y(!0),fe(yt,null,ai(e.states.cachedOptions.slice(1),(v,w)=>(Y(),fe("div",{key:w,class:ie(e.nsSelectV2.e("selected-item"))},[(Y(),Ue(s,{key:e.getValueKey(v),closable:!e.selectDisabled&&!v.disabled,size:e.collapseTagSize,class:"in-tooltip",type:"info","disable-transitions":"",onClose:g=>e.deleteTag(g,v)},{default:Ee(()=>[ye("span",{class:ie(e.nsSelectV2.e("tags-text")),style:jt({maxWidth:`${e.tagMaxWidth}px`})},at(e.getLabel(v)),7)]),_:2},1032,["closable","size","onClose"]))],2))),128))],2)]),_:1},8,["disabled","effect"])):(Y(),fe("span",{key:1,class:ie(e.nsSelectV2.e("tags-text")),style:jt({maxWidth:`${e.tagMaxWidth}px`})},"+ "+at(e.modelValue.length-1),7))]),_:1},8,["size"])):Re("v-if",!0)],2)):(Y(!0),fe(yt,{key:1},ai(e.states.cachedOptions,(v,w)=>(Y(),fe("div",{key:w,class:ie(e.nsSelectV2.e("selected-item"))},[(Y(),Ue(s,{key:e.getValueKey(v),closable:!e.selectDisabled&&!v.disabled,size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:g=>e.deleteTag(g,v)},{default:Ee(()=>[ye("span",{class:ie(e.nsSelectV2.e("tags-text")),style:jt({maxWidth:`${e.tagMaxWidth}px`})},at(e.getLabel(v)),7)]),_:2},1032,["closable","size","onClose"]))],2))),128)),ye("div",{class:ie([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")]),style:jt(e.inputWrapperStyle)},[Dt(ye("input",{id:e.id,ref:"inputRef",autocomplete:e.autocomplete,"aria-autocomplete":"list","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-labelledby":e.label,class:ie([e.nsSelectV2.is(e.selectSize),e.nsSelectV2.e("combobox-input")]),disabled:e.disabled,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,unselectable:e.expanded?"on":void 0,"onUpdate:modelValue":i[1]||(i[1]=(...v)=>e.onUpdateInputValue&&e.onUpdateInputValue(...v)),onFocus:i[2]||(i[2]=(...v)=>e.handleFocus&&e.handleFocus(...v)),onBlur:i[3]||(i[3]=(...v)=>e.handleBlur&&e.handleBlur(...v)),onInput:i[4]||(i[4]=(...v)=>e.onInput&&e.onInput(...v)),onCompositionstart:i[5]||(i[5]=(...v)=>e.handleCompositionStart&&e.handleCompositionStart(...v)),onCompositionupdate:i[6]||(i[6]=(...v)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...v)),onCompositionend:i[7]||(i[7]=(...v)=>e.handleCompositionEnd&&e.handleCompositionEnd(...v)),onKeydown:[i[8]||(i[8]=hi(Tt(v=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),i[9]||(i[9]=hi(Tt(v=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),i[10]||(i[10]=hi(Tt((...v)=>e.onKeyboardSelect&&e.onKeyboardSelect(...v),["stop","prevent"]),["enter"])),i[11]||(i[11]=hi(Tt((...v)=>e.handleEsc&&e.handleEsc(...v),["stop","prevent"]),["esc"])),i[12]||(i[12]=hi(Tt((...v)=>e.handleDel&&e.handleDel(...v),["stop"]),["delete"]))]},null,42,Rp),[[u,e.states.displayInputValue]]),e.filterable?(Y(),fe("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:ie(e.nsSelectV2.e("input-calculator")),textContent:at(e.states.displayInputValue)},null,10,Np)):Re("v-if",!0)],6)],2)):(Y(),fe(yt,{key:2},[ye("div",{class:ie([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")])},[Dt(ye("input",{id:e.id,ref:"inputRef","aria-autocomplete":"list","aria-haspopup":"listbox","aria-labelledby":e.label,"aria-expanded":e.expanded,autocapitalize:"off",autocomplete:e.autocomplete,class:ie(e.nsSelectV2.e("combobox-input")),disabled:e.disabled,name:e.name,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",unselectable:e.expanded?"on":void 0,onCompositionstart:i[13]||(i[13]=(...v)=>e.handleCompositionStart&&e.handleCompositionStart(...v)),onCompositionupdate:i[14]||(i[14]=(...v)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...v)),onCompositionend:i[15]||(i[15]=(...v)=>e.handleCompositionEnd&&e.handleCompositionEnd(...v)),onFocus:i[16]||(i[16]=(...v)=>e.handleFocus&&e.handleFocus(...v)),onBlur:i[17]||(i[17]=(...v)=>e.handleBlur&&e.handleBlur(...v)),onInput:i[18]||(i[18]=(...v)=>e.onInput&&e.onInput(...v)),onKeydown:[i[19]||(i[19]=hi(Tt(v=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),i[20]||(i[20]=hi(Tt(v=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),i[21]||(i[21]=hi(Tt((...v)=>e.onKeyboardSelect&&e.onKeyboardSelect(...v),["stop","prevent"]),["enter"])),i[22]||(i[22]=hi(Tt((...v)=>e.handleEsc&&e.handleEsc(...v),["stop","prevent"]),["esc"]))],"onUpdate:modelValue":i[23]||(i[23]=(...v)=>e.onUpdateInputValue&&e.onUpdateInputValue(...v))},null,42,Zp),[[u,e.states.displayInputValue]])],2),e.filterable?(Y(),fe("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:ie([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-calculator")]),textContent:at(e.states.displayInputValue)},null,10,Fp)):Re("v-if",!0)],64)),e.shouldShowPlaceholder?(Y(),fe("span",{key:3,class:ie([e.nsSelectV2.e("placeholder"),e.nsSelectV2.is("transparent",e.states.isComposing||(e.multiple?e.modelValue.length===0:!e.hasModelValue))])},at(e.currentPlaceholder),3)):Re("v-if",!0),ye("span",{class:ie(e.nsSelectV2.e("suffix"))},[e.iconComponent?Dt((Y(),Ue(d,{key:0,class:ie([e.nsSelectV2.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:Ee(()=>[(Y(),Ue(pt(e.iconComponent)))]),_:1},8,["class"])),[[fi,!e.showClearBtn]]):Re("v-if",!0),e.showClearBtn&&e.clearIcon?(Y(),Ue(d,{key:1,class:ie([e.nsSelectV2.e("caret"),e.nsInput.e("icon")]),onClick:Tt(e.handleClear,["prevent","stop"])},{default:Ee(()=>[(Y(),Ue(pt(e.clearIcon)))]),_:1},8,["class","onClick"])):Re("v-if",!0),e.validateState&&e.validateIcon?(Y(),Ue(d,{key:2,class:ie([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:Ee(()=>[(Y(),Ue(pt(e.validateIcon)))]),_:1},8,["class"])):Re("v-if",!0)],2)],2)]}),content:Ee(()=>[t(f,{ref:"menuRef",data:e.filteredOptions,width:e.popperSize,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn},{default:Ee(k=>[tt(e.$slots,"default",Ll(Tk(k)))]),empty:Ee(()=>[tt(e.$slots,"empty",{},()=>[ye("p",{class:ie(e.nsSelectV2.e("empty"))},at(e.emptyText?e.emptyText:""),3)])]),_:3},8,["data","width","hovering-index","scrollbar-always-on"])]),_:3},8,["visible","teleported","popper-class","popper-options","effect","placement","transition","persistent","onBeforeShow"])],34)),[[h,e.handleClickOutside,e.popperRef]])}var _4=dt(Dp,[["render",$p],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/select.vue"]]);_4.install=e=>{e.component(_4.name,_4)};const Up=_4,Kp=Up,Gp=ut({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),qp=ut({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),Yp={name:"ElSkeletonItem"},Xp=Je({...Yp,props:qp,setup(e){const i=nt("skeleton");return(n,o)=>(Y(),fe("div",{class:ie([W(i).e("item"),W(i).e(n.variant)])},[n.variant==="image"?(Y(),Ue(W(UB),{key:0})):Re("v-if",!0)],2))}});var vk=dt(Xp,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const Qp={name:"ElSkeleton"},Jp=Je({...Qp,props:Gp,setup(e,{expose:i}){const n=e,o=nt("skeleton"),l=GI(Ui(n,"loading"),n.throttle);return i({uiLoading:l}),(r,s)=>W(l)?(Y(),fe("div",ei({key:0,class:[W(o).b(),W(o).is("animated",r.animated)]},r.$attrs),[(Y(!0),fe(yt,null,ai(r.count,a=>(Y(),fe(yt,{key:a},[r.loading?tt(r.$slots,"template",{key:a},()=>[t(vk,{class:ie(W(o).is("first")),variant:"p"},null,8,["class"]),(Y(!0),fe(yt,null,ai(r.rows,d=>(Y(),Ue(vk,{key:d,class:ie([W(o).e("paragraph"),W(o).is("last",d===r.rows&&r.rows>1)]),variant:"p"},null,8,["class"]))),128))]):Re("v-if",!0)],64))),128))],16)):tt(r.$slots,"default",Ll(ei({key:1},r.$attrs)))}});var pp=dt(Jp,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]);const eee=Yt(pp,{SkeletonItem:vk}),tee=Gi(vk),iee=ut({modelValue:{type:qe([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:So,inputSize:So,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:qe(Function),default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},label:{type:String,default:void 0},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:qe(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:Ba,default:"top"},marks:{type:qe(Object)},validateEvent:{type:Boolean,default:!0}}),B0=e=>Zt(e)||Ct(e)&&e.every(Zt),nee={[Xt]:B0,[Xo]:B0,[Ni]:B0},oee=(e,i,n)=>{const o=re();return Ot(async()=>{e.range?(Array.isArray(e.modelValue)?(i.firstValue=Math.max(e.min,e.modelValue[0]),i.secondValue=Math.min(e.max,e.modelValue[1])):(i.firstValue=e.min,i.secondValue=e.max),i.oldValue=[i.firstValue,i.secondValue]):(typeof e.modelValue!="number"||Number.isNaN(e.modelValue)?i.firstValue=e.min:i.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),i.oldValue=i.firstValue),Oi(window,"resize",n),await vt(),n()}),{sliderWrapper:o}},lee=e=>J(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((n,o)=>n-o).filter(n=>n<=e.max&&n>=e.min).map(n=>({point:n,position:(n-e.min)*100/(e.max-e.min),mark:e.marks[n]})):[]),ree=(e,i,n)=>{const{form:o,formItem:l}=zo(),r=Si(),s=re(),a=re(),d={firstButton:s,secondButton:a},f=J(()=>e.disabled||(o==null?void 0:o.disabled)||!1),u=J(()=>Math.min(i.firstValue,i.secondValue)),h=J(()=>Math.max(i.firstValue,i.secondValue)),k=J(()=>e.range?`${100*(h.value-u.value)/(e.max-e.min)}%`:`${100*(i.firstValue-e.min)/(e.max-e.min)}%`),v=J(()=>e.range?`${100*(u.value-e.min)/(e.max-e.min)}%`:"0%"),w=J(()=>e.vertical?{height:e.height}:{}),g=J(()=>e.vertical?{height:k.value,bottom:v.value}:{width:k.value,left:v.value}),C=()=>{r.value&&(i.sliderSize=r.value[`client${e.vertical?"Height":"Width"}`])},y=P=>{const O=e.min+P*(e.max-e.min)/100;if(!e.range)return s;let _;return Math.abs(u.value-O)i.secondValue?"firstButton":"secondButton",d[_]},M=P=>{const O=y(P);return O.value.setPosition(P),O},j=P=>{i.firstValue=P,E(e.range?[u.value,h.value]:P)},b=P=>{i.secondValue=P,e.range&&E([u.value,h.value])},E=P=>{n(Xt,P),n(Xo,P)},x=async()=>{await vt(),n(Ni,e.range?[u.value,h.value]:e.modelValue)},H=P=>{var O,_,B,A,R,Z;if(f.value||i.dragging)return;C();let I=0;if(e.vertical){const F=(B=(_=(O=P.touches)==null?void 0:O.item(0))==null?void 0:_.clientY)!=null?B:P.clientY;I=(r.value.getBoundingClientRect().bottom-F)/i.sliderSize*100}else{const F=(Z=(R=(A=P.touches)==null?void 0:A.item(0))==null?void 0:R.clientX)!=null?Z:P.clientX,U=r.value.getBoundingClientRect().left;I=(F-U)/i.sliderSize*100}if(!(I<0||I>100))return M(I)};return{elFormItem:l,slider:r,firstButton:s,secondButton:a,sliderDisabled:f,minValue:u,maxValue:h,runwayStyle:w,barStyle:g,resetSize:C,setPosition:M,emitChange:x,onSliderWrapperPrevent:P=>{var O,_;(((O=d.firstButton.value)==null?void 0:O.dragging)||((_=d.secondButton.value)==null?void 0:_.dragging))&&P.preventDefault()},onSliderClick:P=>{H(P)&&x()},onSliderDown:async P=>{const O=H(P);O&&(await vt(),O.value.onButtonDown(P))},setFirstValue:j,setSecondValue:b}},{left:see,down:aee,right:cee,up:dee,home:kee,end:hee,pageUp:uee,pageDown:fee}=At,Lee=(e,i,n)=>{const o=re(),l=re(!1),r=J(()=>i.value instanceof Function),s=J(()=>r.value&&i.value(e.modelValue)||e.modelValue),a=io(()=>{n.value&&(l.value=!0)},50),d=io(()=>{n.value&&(l.value=!1)},50);return{tooltip:o,tooltipVisible:l,formatValue:s,displayTooltip:a,hideTooltip:d}},gee=(e,i,n)=>{const{disabled:o,min:l,max:r,step:s,showTooltip:a,precision:d,sliderSize:f,formatTooltip:u,emitChange:h,resetSize:k,updateDragging:v}=wt(ww),{tooltip:w,tooltipVisible:g,formatValue:C,displayTooltip:y,hideTooltip:M}=Lee(e,u,a),j=re(),b=J(()=>`${(e.modelValue-l.value)/(r.value-l.value)*100}%`),E=J(()=>e.vertical?{bottom:b.value}:{left:b.value}),x=()=>{i.hovering=!0,y()},H=()=>{i.hovering=!1,i.dragging||M()},V=K=>{o.value||(K.preventDefault(),I(K),window.addEventListener("mousemove",F),window.addEventListener("touchmove",F),window.addEventListener("mouseup",U),window.addEventListener("touchend",U),window.addEventListener("contextmenu",U),j.value.focus())},S=K=>{o.value||(i.newPosition=Number.parseFloat(b.value)+K/(r.value-l.value)*100,G(i.newPosition),h())},D=()=>{S(-s.value)},P=()=>{S(s.value)},O=()=>{S(-s.value*4)},_=()=>{S(s.value*4)},B=()=>{o.value||(G(0),h())},A=()=>{o.value||(G(100),h())},R=K=>{let Q=!0;[see,aee].includes(K.key)?D():[cee,dee].includes(K.key)?P():K.key===kee?B():K.key===hee?A():K.key===fee?O():K.key===uee?_():Q=!1,Q&&K.preventDefault()},Z=K=>{let Q,ae;return K.type.startsWith("touch")?(ae=K.touches[0].clientY,Q=K.touches[0].clientX):(ae=K.clientY,Q=K.clientX),{clientX:Q,clientY:ae}},I=K=>{i.dragging=!0,i.isClick=!0;const{clientX:Q,clientY:ae}=Z(K);e.vertical?i.startY=ae:i.startX=Q,i.startPosition=Number.parseFloat(b.value),i.newPosition=i.startPosition},F=K=>{if(i.dragging){i.isClick=!1,y(),k();let Q;const{clientX:ae,clientY:ee}=Z(K);e.vertical?(i.currentY=ee,Q=(i.startY-i.currentY)/f.value*100):(i.currentX=ae,Q=(i.currentX-i.startX)/f.value*100),i.newPosition=i.startPosition+Q,G(i.newPosition)}},U=()=>{i.dragging&&(setTimeout(()=>{i.dragging=!1,i.hovering||M(),i.isClick||G(i.newPosition),h()},0),window.removeEventListener("mousemove",F),window.removeEventListener("touchmove",F),window.removeEventListener("mouseup",U),window.removeEventListener("touchend",U),window.removeEventListener("contextmenu",U))},G=async K=>{if(K===null||Number.isNaN(+K))return;K<0?K=0:K>100&&(K=100);const Q=100/((r.value-l.value)/s.value);let ee=Math.round(K/Q)*Q*(r.value-l.value)*.01+l.value;ee=Number.parseFloat(ee.toFixed(d.value)),ee!==e.modelValue&&n(Xt,ee),!i.dragging&&e.modelValue!==i.oldValue&&(i.oldValue=e.modelValue),await vt(),i.dragging&&y(),w.value.updatePopper()};return et(()=>i.dragging,K=>{v(K)}),{disabled:o,button:j,tooltip:w,tooltipVisible:g,showTooltip:a,wrapperStyle:E,formatValue:C,handleMouseEnter:x,handleMouseLeave:H,onButtonDown:V,onKeyDown:R,setPosition:G}},vee=(e,i,n,o)=>({stops:J(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const s=(e.max-e.min)/e.step,a=100*e.step/(e.max-e.min),d=Array.from({length:s-1}).map((f,u)=>(u+1)*a);return e.range?d.filter(f=>f<100*(n.value-e.min)/(e.max-e.min)||f>100*(o.value-e.min)/(e.max-e.min)):d.filter(f=>f>100*(i.firstValue-e.min)/(e.max-e.min))}),getStopStyle:s=>e.vertical?{bottom:`${s}%`}:{left:`${s}%`}}),wee=(e,i,n,o,l,r)=>{const s=f=>{l(Xt,f),l(Xo,f)},a=()=>e.range?![n.value,o.value].every((f,u)=>f===i.oldValue[u]):e.modelValue!==i.oldValue,d=()=>{var f,u;if(e.min>e.max){un("Slider","min should not be greater than max.");return}const h=e.modelValue;e.range&&Array.isArray(h)?h[1]e.max?s([e.max,e.max]):h[0]e.max?s([h[0],e.max]):(i.firstValue=h[0],i.secondValue=h[1],a()&&(e.validateEvent&&((f=r==null?void 0:r.validate)==null||f.call(r,"change").catch(k=>void 0)),i.oldValue=h.slice())):!e.range&&typeof h=="number"&&!Number.isNaN(h)&&(he.max?s(e.max):(i.firstValue=h,a()&&(e.validateEvent&&((u=r==null?void 0:r.validate)==null||u.call(r,"change").catch(k=>void 0)),i.oldValue=h)))};d(),et(()=>i.dragging,f=>{f||d()}),et(()=>e.modelValue,(f,u)=>{i.dragging||Array.isArray(f)&&Array.isArray(u)&&f.every((h,k)=>h===u[k])&&i.firstValue===f[0]&&i.secondValue===f[1]||d()},{deep:!0}),et(()=>[e.min,e.max],()=>{d()})},mee=ut({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:Ba,default:"top"}}),Cee={[Xt]:e=>Zt(e)},jee=["tabindex"],yee={name:"ElSliderButton"},Mee=Je({...yee,props:mee,emits:Cee,setup(e,{expose:i,emit:n}){const o=e,l=nt("slider"),r=gi({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:o.modelValue}),{disabled:s,button:a,tooltip:d,showTooltip:f,tooltipVisible:u,wrapperStyle:h,formatValue:k,handleMouseEnter:v,handleMouseLeave:w,onButtonDown:g,onKeyDown:C,setPosition:y}=gee(o,r,n),{hovering:M,dragging:j}=hn(r);return i({onButtonDown:g,onKeyDown:C,setPosition:y,hovering:M,dragging:j}),(b,E)=>(Y(),fe("div",{ref_key:"button",ref:a,class:ie([W(l).e("button-wrapper"),{hover:W(M),dragging:W(j)}]),style:jt(W(h)),tabindex:W(s)?-1:0,onMouseenter:E[0]||(E[0]=(...x)=>W(v)&&W(v)(...x)),onMouseleave:E[1]||(E[1]=(...x)=>W(w)&&W(w)(...x)),onMousedown:E[2]||(E[2]=(...x)=>W(g)&&W(g)(...x)),onTouchstart:E[3]||(E[3]=(...x)=>W(g)&&W(g)(...x)),onFocus:E[4]||(E[4]=(...x)=>W(v)&&W(v)(...x)),onBlur:E[5]||(E[5]=(...x)=>W(w)&&W(w)(...x)),onKeydown:E[6]||(E[6]=(...x)=>W(C)&&W(C)(...x))},[t(W(wo),{ref_key:"tooltip",ref:d,visible:W(u),placement:b.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":b.tooltipClass,disabled:!W(f),persistent:""},{content:Ee(()=>[ye("span",null,at(W(k)),1)]),default:Ee(()=>[ye("div",{class:ie([W(l).e("button"),{hover:W(M),dragging:W(j)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled"])],46,jee))}});var F7=dt(Mee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/button.vue"]]);const bee=ut({mark:{type:qe([String,Object]),default:void 0}});var Wee=Je({name:"ElSliderMarker",props:bee,setup(e){const i=nt("slider"),n=J(()=>Rt(e.mark)?e.mark:e.mark.label),o=J(()=>Rt(e.mark)?void 0:e.mark.style);return()=>Mt("div",{class:i.e("marks-text"),style:o.value},n.value)}});const xee=["id","role","aria-label","aria-labelledby"],Aee={key:1},Eee={name:"ElSlider"},Hee=Je({...Eee,props:iee,emits:nee,setup(e,{expose:i,emit:n}){const o=e,l=nt("slider"),{t:r}=wi(),s=gi({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:a,slider:d,firstButton:f,secondButton:u,sliderDisabled:h,minValue:k,maxValue:v,runwayStyle:w,barStyle:g,resetSize:C,emitChange:y,onSliderWrapperPrevent:M,onSliderClick:j,onSliderDown:b,setFirstValue:E,setSecondValue:x}=ree(o,s,n),{stops:H,getStopStyle:V}=vee(o,s,k,v),{inputId:S,isLabeledByFormItem:D}=xs(o,{formItemContext:a}),P=ln(),O=J(()=>o.inputSize||P.value),_=J(()=>o.label||r("el.slider.defaultLabel",{min:o.min,max:o.max})),B=J(()=>o.range?o.rangeStartLabel||r("el.slider.defaultRangeStartLabel"):_.value),A=J(()=>o.formatValueText?o.formatValueText(K.value):`${K.value}`),R=J(()=>o.rangeEndLabel||r("el.slider.defaultRangeEndLabel")),Z=J(()=>o.formatValueText?o.formatValueText(Q.value):`${Q.value}`),I=J(()=>[l.b(),l.m(P.value),l.is("vertical",o.vertical),{[l.m("with-input")]:o.showInput}]),F=lee(o);wee(o,s,k,v,n,a);const U=J(()=>{const de=[o.min,o.max,o.step].map(ke=>{const ce=`${ke}`.split(".")[1];return ce?ce.length:0});return Math.max.apply(null,de)}),{sliderWrapper:G}=oee(o,s,C),{firstValue:K,secondValue:Q,sliderSize:ae}=hn(s),ee=de=>{s.dragging=de};return Qt(ww,{...hn(o),sliderSize:ae,disabled:h,precision:U,emitChange:y,resetSize:C,updateDragging:ee}),i({onSliderClick:j}),(de,ke)=>{var ce,we;return Y(),fe("div",{id:de.range?W(S):void 0,ref_key:"sliderWrapper",ref:G,class:ie(W(I)),role:de.range?"group":void 0,"aria-label":de.range&&!W(D)?W(_):void 0,"aria-labelledby":de.range&&W(D)?(ce=W(a))==null?void 0:ce.labelId:void 0,onTouchstart:ke[2]||(ke[2]=(...Ae)=>W(M)&&W(M)(...Ae)),onTouchmove:ke[3]||(ke[3]=(...Ae)=>W(M)&&W(M)(...Ae))},[ye("div",{ref_key:"slider",ref:d,class:ie([W(l).e("runway"),{"show-input":de.showInput&&!de.range},W(l).is("disabled",W(h))]),style:jt(W(w)),onMousedown:ke[0]||(ke[0]=(...Ae)=>W(b)&&W(b)(...Ae)),onTouchstart:ke[1]||(ke[1]=(...Ae)=>W(b)&&W(b)(...Ae))},[ye("div",{class:ie(W(l).e("bar")),style:jt(W(g))},null,6),t(F7,{id:de.range?void 0:W(S),ref_key:"firstButton",ref:f,"model-value":W(K),vertical:de.vertical,"tooltip-class":de.tooltipClass,placement:de.placement,role:"slider","aria-label":de.range||!W(D)?W(B):void 0,"aria-labelledby":!de.range&&W(D)?(we=W(a))==null?void 0:we.labelId:void 0,"aria-valuemin":de.min,"aria-valuemax":de.range?W(Q):de.max,"aria-valuenow":W(K),"aria-valuetext":W(A),"aria-orientation":de.vertical?"vertical":"horizontal","aria-disabled":W(h),"onUpdate:modelValue":W(E)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),de.range?(Y(),Ue(F7,{key:0,ref_key:"secondButton",ref:u,"model-value":W(Q),vertical:de.vertical,"tooltip-class":de.tooltipClass,placement:de.placement,role:"slider","aria-label":W(R),"aria-valuemin":W(K),"aria-valuemax":de.max,"aria-valuenow":W(Q),"aria-valuetext":W(Z),"aria-orientation":de.vertical?"vertical":"horizontal","aria-disabled":W(h),"onUpdate:modelValue":W(x)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):Re("v-if",!0),de.showStops?(Y(),fe("div",Aee,[(Y(!0),fe(yt,null,ai(W(H),(Ae,_e)=>(Y(),fe("div",{key:_e,class:ie(W(l).e("stop")),style:jt(W(V)(Ae))},null,6))),128))])):Re("v-if",!0),W(F).length>0?(Y(),fe(yt,{key:2},[ye("div",null,[(Y(!0),fe(yt,null,ai(W(F),(Ae,_e)=>(Y(),fe("div",{key:_e,style:jt(W(V)(Ae.position)),class:ie([W(l).e("stop"),W(l).e("marks-stop")])},null,6))),128))]),ye("div",{class:ie(W(l).e("marks"))},[(Y(!0),fe(yt,null,ai(W(F),(Ae,_e)=>(Y(),Ue(W(Wee),{key:_e,mark:Ae.mark,style:jt(W(V)(Ae.position))},null,8,["mark","style"]))),128))],2)],64)):Re("v-if",!0)],38),de.showInput&&!de.range?(Y(),Ue(W(AC),{key:0,ref:"input","model-value":W(K),class:ie(W(l).e("input")),step:de.step,disabled:W(h),controls:de.showInputControls,min:de.min,max:de.max,debounce:de.debounce,size:W(O),"onUpdate:modelValue":W(E),onChange:W(y)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):Re("v-if",!0)],42,xee)}}});var Vee=dt(Hee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/slider.vue"]]);const See=Yt(Vee),zee=ut({prefixCls:{type:String}}),$7=Je({name:"ElSpaceItem",props:zee,setup(e,{slots:i}){const n=nt("space"),o=J(()=>`${e.prefixCls||n.b()}__item`);return()=>Mt("div",{class:o.value},tt(i,"default"))}}),U7={small:8,default:12,large:16};function Tee(e){const i=nt("space"),n=J(()=>[i.b(),i.m(e.direction),e.class]),o=re(0),l=re(0),r=J(()=>{const a=e.wrap||e.fill?{flexWrap:"wrap",marginBottom:`-${l.value}px`}:{},d={alignItems:e.alignment};return[a,d,e.style]}),s=J(()=>{const a={paddingBottom:`${l.value}px`,marginRight:`${o.value}px`},d=e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{};return[a,d]});return Ho(()=>{const{size:a="small",wrap:d,direction:f,fill:u}=e;if(Ct(a)){const[h=0,k=0]=a;o.value=h,l.value=k}else{let h;Zt(a)?h=a:h=U7[a||"small"]||U7.small,(d||u)&&f==="horizontal"?o.value=l.value=h:f==="horizontal"?(o.value=h,l.value=0):(l.value=h,o.value=0)}}),{classes:n,containerStyle:r,itemStyle:s}}const _ee=ut({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:qe([String,Object,Array]),default:""},style:{type:qe([String,Array,Object]),default:""},alignment:{type:qe(String),default:"center"},prefixCls:{type:String},spacer:{type:qe([Object,String,Number,Array]),default:null,validator:e=>Ji(e)||Zt(e)||Rt(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:za,validator:e=>Zt(e)||Ct(e)&&e.length===2&&e.every(Zt)}});var Bee=Je({name:"ElSpace",props:_ee,setup(e,{slots:i}){const{classes:n,containerStyle:o,itemStyle:l}=Tee(e);function r(s,a="",d=[]){const{prefixCls:f}=e;return s.forEach((u,h)=>{Lu(u)?Ct(u.children)&&u.children.forEach((k,v)=>{Lu(k)&&Ct(k.children)?r(k.children,`${a+v}-`,d):d.push(t($7,{style:l.value,prefixCls:f,key:`nested-${a+v}`},{default:()=>[k]},Ro.PROPS|Ro.STYLE,["style","prefixCls"]))}):EI(u)&&d.push(t($7,{style:l.value,prefixCls:f,key:`LoopKey${a+h}`},{default:()=>[u]},Ro.PROPS|Ro.STYLE,["style","prefixCls"]))}),d}return()=>{var s;const{spacer:a,direction:d}=e,f=tt(i,"default",{key:0},()=>[]);if(((s=f.children)!=null?s:[]).length===0)return null;if(Ct(f.children)){let u=r(f.children);if(a){const h=u.length-1;u=u.reduce((k,v,w)=>{const g=[...k,v];return w!==h&&g.push(t("span",{style:[l.value,d==="vertical"?"width: 100%":null],key:w},[Ji(a)?a:$t(a,Ro.TEXT)],Ro.STYLE)),g},[])}return t("div",{class:n.value,style:o.value},u,Ro.STYLE|Ro.CLASS)}return f.children}}});const Oee=Yt(Bee),Iee=ut({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),Dee={[Ni]:(e,i)=>[e,i].every(Zt)},Pee={name:"ElSteps"},Ree=Je({...Pee,props:Iee,emits:Dee,setup(e,{emit:i}){const n=e,o=nt("steps"),l=re([]);return et(l,()=>{l.value.forEach((r,s)=>{r.setIndex(s)})}),Qt("ElSteps",{props:n,steps:l}),et(()=>n.active,(r,s)=>{i(Ni,r,s)}),(r,s)=>(Y(),fe("div",{class:ie([W(o).b(),W(o).m(r.simple?"simple":r.direction)])},[tt(r.$slots,"default")],2))}});var Nee=dt(Ree,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/steps.vue"]]);const Zee=ut({title:{type:String,default:""},icon:{type:zi},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),Fee={name:"ElStep"},$ee=Je({...Fee,props:Zee,setup(e){const i=e,n=nt("step"),o=re(-1),l=re({}),r=re(""),s=wt("ElSteps"),a=qt();Ot(()=>{et([()=>s.props.active,()=>s.props.processStatus,()=>s.props.finishStatus],([E])=>{j(E)},{immediate:!0})}),Ki(()=>{s.steps.value=s.steps.value.filter(E=>E.uid!==(a==null?void 0:a.uid))});const d=J(()=>i.status||r.value),f=J(()=>{const E=s.steps.value[o.value-1];return E?E.currentStatus:"wait"}),u=J(()=>s.props.alignCenter),h=J(()=>s.props.direction==="vertical"),k=J(()=>s.props.simple),v=J(()=>s.steps.value.length),w=J(()=>{var E;return((E=s.steps.value[v.value-1])==null?void 0:E.uid)===(a==null?void 0:a.uid)}),g=J(()=>k.value?"":s.props.space),C=J(()=>{const E={flexBasis:typeof g.value=="number"?`${g.value}px`:g.value?g.value:`${100/(v.value-(u.value?0:1))}%`};return h.value||w.value&&(E.maxWidth=`${100/v.value}%`),E}),y=E=>{o.value=E},M=E=>{let x=100;const H={};H.transitionDelay=`${150*o.value}ms`,E===s.props.processStatus?x=0:E==="wait"&&(x=0,H.transitionDelay=`${-150*o.value}ms`),H.borderWidth=x&&!k.value?"1px":0,H[s.props.direction==="vertical"?"height":"width"]=`${x}%`,l.value=H},j=E=>{E>o.value?r.value=s.props.finishStatus:E===o.value&&f.value!=="error"?r.value=s.props.processStatus:r.value="wait";const x=s.steps.value[v.value-1];x&&x.calcProgress(r.value)},b=gi({uid:J(()=>a==null?void 0:a.uid),currentStatus:d,setIndex:y,calcProgress:M});return s.steps.value=[...s.steps.value,b],(E,x)=>(Y(),fe("div",{style:jt(W(C)),class:ie([W(n).b(),W(n).is(W(k)?"simple":W(s).props.direction),W(n).is("flex",W(w)&&!W(g)&&!W(u)),W(n).is("center",W(u)&&!W(h)&&!W(k))])},[Re(" icon & line "),ye("div",{class:ie([W(n).e("head"),W(n).is(W(d))])},[W(k)?Re("v-if",!0):(Y(),fe("div",{key:0,class:ie(W(n).e("line"))},[ye("i",{class:ie(W(n).e("line-inner")),style:jt(l.value)},null,6)],2)),ye("div",{class:ie([W(n).e("icon"),W(n).is(E.icon||E.$slots.icon?"icon":"text")])},[tt(E.$slots,"icon",{},()=>[E.icon?(Y(),Ue(W(mt),{key:0,class:ie(W(n).e("icon-inner"))},{default:Ee(()=>[(Y(),Ue(pt(E.icon)))]),_:1},8,["class"])):W(d)==="success"?(Y(),Ue(W(mt),{key:1,class:ie([W(n).e("icon-inner"),W(n).is("status")])},{default:Ee(()=>[t(W(Q2))]),_:1},8,["class"])):W(d)==="error"?(Y(),Ue(W(mt),{key:2,class:ie([W(n).e("icon-inner"),W(n).is("status")])},{default:Ee(()=>[t(W(Cl))]),_:1},8,["class"])):W(k)?Re("v-if",!0):(Y(),fe("div",{key:3,class:ie(W(n).e("icon-inner"))},at(o.value+1),3))])],2)],2),Re(" title & description "),ye("div",{class:ie(W(n).e("main"))},[ye("div",{class:ie([W(n).e("title"),W(n).is(W(d))])},[tt(E.$slots,"title",{},()=>[$t(at(E.title),1)])],2),W(k)?(Y(),fe("div",{key:0,class:ie(W(n).e("arrow"))},null,2)):(Y(),fe("div",{key:1,class:ie([W(n).e("description"),W(n).is(W(d))])},[tt(E.$slots,"description",{},()=>[$t(at(E.description),1)])],2))],2)],6))}});var pC=dt($ee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/item.vue"]]);const Uee=Yt(Nee,{Step:pC}),Kee=Gi(pC),Gee=ut({modelValue:{type:[Boolean,String,Number],default:!1},value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},activeIcon:{type:zi},inactiveIcon:{type:zi},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},id:String,loading:{type:Boolean,default:!1},beforeChange:{type:qe(Function)},size:{type:String,validator:Ta},tabindex:{type:[String,Number]}}),qee={[Xt]:e=>wn(e)||Rt(e)||Zt(e),[Ni]:e=>wn(e)||Rt(e)||Zt(e),[Xo]:e=>wn(e)||Rt(e)||Zt(e)},Yee=["onClick"],Xee=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],Qee=["aria-hidden"],Jee=["aria-hidden"],pee=["aria-hidden"],ete=["aria-hidden"],tte={name:"ElSwitch"},ite=Je({...tte,props:Gee,emits:qee,setup(e,{expose:i,emit:n}){const o=e,l="ElSwitch",r=qt(),{formItem:s}=zo(),a=ln(),d=nt("switch");Ma({from:'"value"',replacement:'"model-value" or "v-model"',scope:l,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},J(()=>{var x;return!!((x=r.vnode.props)!=null&&x.value)}));const{inputId:f}=xs(o,{formItemContext:s}),u=Vr(J(()=>o.loading)),h=re(o.modelValue!==!1),k=re(),v=re(),w=J(()=>[d.b(),d.m(a.value),d.is("disabled",u.value),d.is("checked",y.value)]),g=J(()=>({width:kn(o.width)}));et(()=>o.modelValue,()=>{h.value=!0}),et(()=>o.value,()=>{h.value=!1});const C=J(()=>h.value?o.modelValue:o.value),y=J(()=>C.value===o.activeValue);[o.activeValue,o.inactiveValue].includes(C.value)||(n(Xt,o.inactiveValue),n(Ni,o.inactiveValue),n(Xo,o.inactiveValue)),et(y,x=>{var H;k.value.checked=x,o.validateEvent&&((H=s==null?void 0:s.validate)==null||H.call(s,"change").catch(V=>void 0))});const M=()=>{const x=y.value?o.inactiveValue:o.activeValue;n(Xt,x),n(Ni,x),n(Xo,x),vt(()=>{k.value.checked=y.value})},j=()=>{if(u.value)return;const{beforeChange:x}=o;if(!x){M();return}const H=x();[L2(H),wn(H)].includes(!0)||un(l,"beforeChange must return type `Promise` or `boolean`"),L2(H)?H.then(S=>{S&&M()}).catch(S=>{}):H&&M()},b=J(()=>d.cssVarBlock({...o.activeColor?{"on-color":o.activeColor}:null,...o.inactiveColor?{"off-color":o.inactiveColor}:null,...o.borderColor?{"border-color":o.borderColor}:null})),E=()=>{var x,H;(H=(x=k.value)==null?void 0:x.focus)==null||H.call(x)};return Ot(()=>{k.value.checked=y.value}),i({focus:E,checked:y}),(x,H)=>(Y(),fe("div",{class:ie(W(w)),style:jt(W(b)),onClick:Tt(j,["prevent"])},[ye("input",{id:W(f),ref_key:"input",ref:k,class:ie(W(d).e("input")),type:"checkbox",role:"switch","aria-checked":W(y),"aria-disabled":W(u),name:x.name,"true-value":x.activeValue,"false-value":x.inactiveValue,disabled:W(u),tabindex:x.tabindex,onChange:M,onKeydown:hi(j,["enter"])},null,42,Xee),!x.inlinePrompt&&(x.inactiveIcon||x.inactiveText)?(Y(),fe("span",{key:0,class:ie([W(d).e("label"),W(d).em("label","left"),W(d).is("active",!W(y))])},[x.inactiveIcon?(Y(),Ue(W(mt),{key:0},{default:Ee(()=>[(Y(),Ue(pt(x.inactiveIcon)))]),_:1})):Re("v-if",!0),!x.inactiveIcon&&x.inactiveText?(Y(),fe("span",{key:1,"aria-hidden":W(y)},at(x.inactiveText),9,Qee)):Re("v-if",!0)],2)):Re("v-if",!0),ye("span",{ref_key:"core",ref:v,class:ie(W(d).e("core")),style:jt(W(g))},[x.inlinePrompt?(Y(),fe("div",{key:0,class:ie(W(d).e("inner"))},[x.activeIcon||x.inactiveIcon?(Y(),fe(yt,{key:0},[x.activeIcon?(Y(),Ue(W(mt),{key:0,class:ie([W(d).is("icon"),W(y)?W(d).is("show"):W(d).is("hide")])},{default:Ee(()=>[(Y(),Ue(pt(x.activeIcon)))]),_:1},8,["class"])):Re("v-if",!0),x.inactiveIcon?(Y(),Ue(W(mt),{key:1,class:ie([W(d).is("icon"),W(y)?W(d).is("hide"):W(d).is("show")])},{default:Ee(()=>[(Y(),Ue(pt(x.inactiveIcon)))]),_:1},8,["class"])):Re("v-if",!0)],64)):x.activeText||x.inactiveIcon?(Y(),fe(yt,{key:1},[x.activeText?(Y(),fe("span",{key:0,class:ie([W(d).is("text"),W(y)?W(d).is("show"):W(d).is("hide")]),"aria-hidden":!W(y)},at(x.activeText.substring(0,3)),11,Jee)):Re("v-if",!0),x.inactiveText?(Y(),fe("span",{key:1,class:ie([W(d).is("text"),W(y)?W(d).is("hide"):W(d).is("show")]),"aria-hidden":W(y)},at(x.inactiveText.substring(0,3)),11,pee)):Re("v-if",!0)],64)):Re("v-if",!0)],2)):Re("v-if",!0),ye("div",{class:ie(W(d).e("action"))},[x.loading?(Y(),Ue(W(mt),{key:0,class:ie(W(d).is("loading"))},{default:Ee(()=>[t(W(Ws))]),_:1},8,["class"])):Re("v-if",!0)],2)],6),!x.inlinePrompt&&(x.activeIcon||x.activeText)?(Y(),fe("span",{key:1,class:ie([W(d).e("label"),W(d).em("label","right"),W(d).is("active",W(y))])},[x.activeIcon?(Y(),Ue(W(mt),{key:0},{default:Ee(()=>[(Y(),Ue(pt(x.activeIcon)))]),_:1})):Re("v-if",!0),!x.activeIcon&&x.activeText?(Y(),fe("span",{key:1,"aria-hidden":!W(y)},at(x.activeText),9,ete)):Re("v-if",!0)],2)):Re("v-if",!0)],14,Yee))}});var nte=dt(ite,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const ote=Yt(nte);/*!
+ * escape-html
+ * Copyright(c) 2012-2013 TJ Holowaychuk
+ * Copyright(c) 2015 Andreas Lubbe
+ * Copyright(c) 2015 Tiancheng "Timothy" Gu
+ * MIT Licensed
+ */var lte=/["'&<>]/,rte=ste;function ste(e){var i=""+e,n=lte.exec(i);if(!n)return i;var o,l="",r=0,s=0;for(r=n.index;rtypeof f=="string"?Ri(a,f):f(a,d,e))):(i!=="$key"&&K7(a)&&"$value"in a&&(a=a.$value),[K7(a)?Ri(a,i):a])},s=function(a,d){if(o)return o(a.value,d.value);for(let f=0,u=a.key.length;fd.key[f])return 1}return 0};return e.map((a,d)=>({value:a,index:d,key:r?r(a,d):null})).sort((a,d)=>{let f=s(a,d);return f||(f=a.index-d.index),f*+n}).map(a=>a.value)},ej=function(e,i){let n=null;return e.columns.forEach(o=>{o.id===i&&(n=o)}),n},cte=function(e,i){let n=null;for(let o=0;o{if(!e)throw new Error("Row is required when get row identity");if(typeof i=="string"){if(!i.includes("."))return`${e[i]}`;const n=i.split(".");let o=e;for(const l of n)o=o[l];return`${o}`}else if(typeof i=="function")return i.call(null,e)},ka=function(e,i){const n={};return(e||[]).forEach((o,l)=>{n[zn(o,i)]={row:o,index:l}}),n};function dte(e,i){const n={};let o;for(o in e)n[o]=e[o];for(o in i)if(si(i,o)){const l=i[o];typeof l<"u"&&(n[o]=l)}return n}function $f(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function tj(e){return e===""||e!==void 0&&(e=$f(e),Number.isNaN(e)&&(e=80)),e}function kte(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function hte(...e){return e.length===0?i=>i:e.length===1?e[0]:e.reduce((i,n)=>(...o)=>i(n(...o)))}function B4(e,i,n){let o=!1;const l=e.indexOf(i),r=l!==-1,s=()=>{e.push(i),o=!0},a=()=>{e.splice(l,1),o=!0};return typeof n=="boolean"?n&&!r?s():!n&&r&&a():r?a():s(),o}function ute(e,i,n="children",o="hasChildren"){const l=s=>!(Array.isArray(s)&&s.length);function r(s,a,d){i(s,a,d),a.forEach(f=>{if(f[o]){i(f,null,d+1);return}const u=f[n];l(u)||r(f,u,d+1)})}e.forEach(s=>{if(s[o]){i(s,null,0);return}const a=s[n];l(a)||r(s,a,0)})}let cr;function fte(e,i,n,o,l){const{nextZIndex:r}=Sr(),s=e==null?void 0:e.dataset.prefix,a=e==null?void 0:e.querySelector(`.${s}-scrollbar__wrap`);function d(){const w=l==="light",g=document.createElement("div");return g.className=`${s}-popper ${w?"is-light":"is-dark"}`,n=rte(n),g.innerHTML=n,g.style.zIndex=String(r()),e==null||e.appendChild(g),g}function f(){const w=document.createElement("div");return w.className=`${s}-popper__arrow`,w}function u(){h&&h.update()}cr==null||cr(),cr=()=>{try{h&&h.destroy(),k&&(e==null||e.removeChild(k)),i.removeEventListener("mouseenter",u),i.removeEventListener("mouseleave",cr),a==null||a.removeEventListener("scroll",cr),cr=void 0}catch{}};let h=null;const k=d(),v=f();return k.appendChild(v),h=tm(i,k,{strategy:"absolute",modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"arrow",options:{element:v,padding:10}}],...o}),i.addEventListener("mouseenter",u),i.addEventListener("mouseleave",cr),a==null||a.addEventListener("scroll",cr),h}const ij=(e,i,n,o)=>{let l=0,r=e;if(o){if(o[e].colSpan>1)return{};for(let d=0;d=a.value.length-n.states.rightFixedLeafColumnsLength.value&&(s="right");break;default:r=a.value.length-n.states.rightFixedLeafColumnsLength.value&&(s="right")}return s?{direction:s,start:l,after:r}:{}},Uf=(e,i,n,o,l)=>{const r=[],{direction:s,start:a}=ij(i,n,o,l);if(s){const d=s==="left";r.push(`${e}-fixed-column--${s}`),d&&a===o.states.fixedLeafColumnsLength.value-1?r.push("is-last-column"):!d&&a===o.states.columns.value.length-o.states.rightFixedLeafColumnsLength.value&&r.push("is-first-column")}return r};function q7(e,i){return e+(i.realWidth===null||Number.isNaN(i.realWidth)?Number(i.width):i.realWidth)}const Kf=(e,i,n,o)=>{const{direction:l,start:r=0}=ij(e,i,n,o);if(!l)return;const s={},a=l==="left",d=n.states.columns.value;return a?s.left=d.slice(0,e).reduce(q7,0):s.right=d.slice(r+1).reverse().reduce(q7,0),s},Qc=(e,i)=>{!e||Number.isNaN(e[i])||(e[i]=`${e[i]}px`)};function Lte(e){const i=qt(),n=re(!1),o=re([]);return{updateExpandRows:()=>{const d=e.data.value||[],f=e.rowKey.value;if(n.value)o.value=d.slice();else if(f){const u=ka(o.value,f);o.value=d.reduce((h,k)=>{const v=zn(k,f);return u[v]&&h.push(k),h},[])}else o.value=[]},toggleRowExpansion:(d,f)=>{B4(o.value,d,f)&&i.emit("expand-change",d,o.value.slice())},setExpandRowKeys:d=>{i.store.assertRowKey();const f=e.data.value||[],u=e.rowKey.value,h=ka(f,u);o.value=d.reduce((k,v)=>{const w=h[v];return w&&k.push(w.row),k},[])},isRowExpanded:d=>{const f=e.rowKey.value;return f?!!ka(o.value,f)[zn(d,f)]:o.value.includes(d)},states:{expandRows:o,defaultExpandAll:n}}}function gte(e){const i=qt(),n=re(null),o=re(null),l=f=>{i.store.assertRowKey(),n.value=f,s(f)},r=()=>{n.value=null},s=f=>{const{data:u,rowKey:h}=e;let k=null;h.value&&(k=(W(u)||[]).find(v=>zn(v,h.value)===f)),o.value=k,i.emit("current-change",o.value,null)};return{setCurrentRowKey:l,restoreCurrentRowKey:r,setCurrentRowByKey:s,updateCurrentRow:f=>{const u=o.value;if(f&&f!==u){o.value=f,i.emit("current-change",o.value,u);return}!f&&u&&(o.value=null,i.emit("current-change",null,u))},updateCurrentRowData:()=>{const f=e.rowKey.value,u=e.data.value||[],h=o.value;if(!u.includes(h)&&h){if(f){const k=zn(h,f);s(k)}else o.value=null;o.value===null&&i.emit("current-change",null,h)}else n.value&&(s(n.value),r())},states:{_currentRowKey:n,currentRow:o}}}function vte(e){const i=re([]),n=re({}),o=re(16),l=re(!1),r=re({}),s=re("hasChildren"),a=re("children"),d=qt(),f=J(()=>{if(!e.rowKey.value)return{};const y=e.data.value||[];return h(y)}),u=J(()=>{const y=e.rowKey.value,M=Object.keys(r.value),j={};return M.length&&M.forEach(b=>{if(r.value[b].length){const E={children:[]};r.value[b].forEach(x=>{const H=zn(x,y);E.children.push(H),x[s.value]&&!j[H]&&(j[H]={children:[]})}),j[b]=E}}),j}),h=y=>{const M=e.rowKey.value,j={};return ute(y,(b,E,x)=>{const H=zn(b,M);Array.isArray(E)?j[H]={children:E.map(V=>zn(V,M)),level:x}:l.value&&(j[H]={children:[],lazy:!0,level:x})},a.value,s.value),j},k=(y=!1,M=(j=>(j=d.store)==null?void 0:j.states.defaultExpandAll.value)())=>{var j;const b=f.value,E=u.value,x=Object.keys(b),H={};if(x.length){const V=W(n),S=[],D=(O,_)=>{if(y)return i.value?M||i.value.includes(_):!!(M||(O==null?void 0:O.expanded));{const B=M||i.value&&i.value.includes(_);return!!((O==null?void 0:O.expanded)||B)}};x.forEach(O=>{const _=V[O],B={...b[O]};if(B.expanded=D(_,O),B.lazy){const{loaded:A=!1,loading:R=!1}=_||{};B.loaded=!!A,B.loading=!!R,S.push(O)}H[O]=B});const P=Object.keys(E);l.value&&P.length&&S.length&&P.forEach(O=>{const _=V[O],B=E[O].children;if(S.includes(O)){if(H[O].children.length!==0)throw new Error("[ElTable]children must be an empty array.");H[O].children=B}else{const{loaded:A=!1,loading:R=!1}=_||{};H[O]={lazy:!0,loaded:!!A,loading:!!R,expanded:D(_,O),children:B,level:""}}})}n.value=H,(j=d.store)==null||j.updateTableScrollY()};et(()=>i.value,()=>{k(!0)}),et(()=>f.value,()=>{k()}),et(()=>u.value,()=>{k()});const v=y=>{i.value=y,k()},w=(y,M)=>{d.store.assertRowKey();const j=e.rowKey.value,b=zn(y,j),E=b&&n.value[b];if(b&&E&&"expanded"in E){const x=E.expanded;M=typeof M>"u"?!E.expanded:M,n.value[b].expanded=M,x!==M&&d.emit("expand-change",y,M),d.store.updateTableScrollY()}},g=y=>{d.store.assertRowKey();const M=e.rowKey.value,j=zn(y,M),b=n.value[j];l.value&&b&&"loaded"in b&&!b.loaded?C(y,j,b):w(y,void 0)},C=(y,M,j)=>{const{load:b}=d.props;b&&!n.value[M].loaded&&(n.value[M].loading=!0,b(y,j,E=>{if(!Array.isArray(E))throw new TypeError("[ElTable] data must be an array");n.value[M].loading=!1,n.value[M].loaded=!0,n.value[M].expanded=!0,E.length&&(r.value[M]=E),d.emit("expand-change",y,!0)}))};return{loadData:C,loadOrToggle:g,toggleTreeExpansion:w,updateTreeExpandKeys:v,updateTreeData:k,normalize:h,states:{expandRowKeys:i,treeData:n,indent:o,lazy:l,lazyTreeNodeMap:r,lazyColumnIdentifier:s,childrenColumnName:a}}}const wte=(e,i)=>{const n=i.sortingColumn;return!n||typeof n.sortable=="string"?e:ate(e,i.sortProp,i.sortOrder,n.sortMethod,n.sortBy)},O4=e=>{const i=[];return e.forEach(n=>{n.children?i.push.apply(i,O4(n.children)):i.push(n)}),i};function mte(){var e;const i=qt(),{size:n}=hn((e=i.proxy)==null?void 0:e.$props),o=re(null),l=re([]),r=re([]),s=re(!1),a=re([]),d=re([]),f=re([]),u=re([]),h=re([]),k=re([]),v=re([]),w=re([]),g=re(0),C=re(0),y=re(0),M=re(!1),j=re([]),b=re(!1),E=re(!1),x=re(null),H=re({}),V=re(null),S=re(null),D=re(null),P=re(null),O=re(null);et(l,()=>i.state&&A(!1),{deep:!0});const _=()=>{if(!o.value)throw new Error("[ElTable] prop row-key is required")},B=()=>{u.value=a.value.filter(He=>He.fixed===!0||He.fixed==="left"),h.value=a.value.filter(He=>He.fixed==="right"),u.value.length>0&&a.value[0]&&a.value[0].type==="selection"&&!a.value[0].fixed&&(a.value[0].fixed=!0,u.value.unshift(a.value[0]));const ge=a.value.filter(He=>!He.fixed);d.value=[].concat(u.value).concat(ge).concat(h.value);const Be=O4(ge),xe=O4(u.value),Ye=O4(h.value);g.value=Be.length,C.value=xe.length,y.value=Ye.length,f.value=[].concat(xe).concat(Be).concat(Ye),s.value=u.value.length>0||h.value.length>0},A=(ge,Be=!1)=>{ge&&B(),Be?i.state.doLayout():i.state.debouncedUpdateLayout()},R=ge=>j.value.includes(ge),Z=()=>{M.value=!1,j.value.length&&(j.value=[],i.emit("selection-change",[]))},I=()=>{let ge;if(o.value){ge=[];const Be=ka(j.value,o.value),xe=ka(l.value,o.value);for(const Ye in Be)si(Be,Ye)&&!xe[Ye]&&ge.push(Be[Ye].row)}else ge=j.value.filter(Be=>!l.value.includes(Be));if(ge.length){const Be=j.value.filter(xe=>!ge.includes(xe));j.value=Be,i.emit("selection-change",Be.slice())}},F=()=>(j.value||[]).slice(),U=(ge,Be=void 0,xe=!0)=>{if(B4(j.value,ge,Be)){const He=(j.value||[]).slice();xe&&i.emit("select",He,ge),i.emit("selection-change",He)}},G=()=>{var ge,Be;const xe=E.value?!M.value:!(M.value||j.value.length);M.value=xe;let Ye=!1,He=0;const Xe=(Be=(ge=i==null?void 0:i.store)==null?void 0:ge.states)==null?void 0:Be.rowKey.value;l.value.forEach((it,lt)=>{const ht=lt+He;x.value?x.value.call(null,it,ht)&&B4(j.value,it,xe)&&(Ye=!0):B4(j.value,it,xe)&&(Ye=!0),He+=ae(zn(it,Xe))}),Ye&&i.emit("selection-change",j.value?j.value.slice():[]),i.emit("select-all",j.value)},K=()=>{const ge=ka(j.value,o.value);l.value.forEach(Be=>{const xe=zn(Be,o.value),Ye=ge[xe];Ye&&(j.value[Ye.index]=Be)})},Q=()=>{var ge,Be,xe;if(((ge=l.value)==null?void 0:ge.length)===0){M.value=!1;return}let Ye;o.value&&(Ye=ka(j.value,o.value));const He=function(ht){return Ye?!!Ye[zn(ht,o.value)]:j.value.includes(ht)};let Xe=!0,it=0,lt=0;for(let ht=0,rt=(l.value||[]).length;ht