From 016809617eee180ce2688493cd9c2e22fbfcf154 Mon Sep 17 00:00:00 2001 From: nextfu Date: Mon, 8 Aug 2022 10:52:06 +0800 Subject: [PATCH] update version --- release/preview-template.zip | Bin 102651 -> 102555 bytes .../{index.4dc42c8f.js => index.691dfd76.js} | 2 +- release/preview-template/dist/index.html | 2 +- release/preview-template/version.json | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename release/preview-template/dist/assets/{index.4dc42c8f.js => index.691dfd76.js} (94%) diff --git a/release/preview-template.zip b/release/preview-template.zip index 4768dd4011867c2dfd9fbe91ace45d8c130f9e6b..f6e922b0eefa303f92f689f63f5f37c72db664bf 100644 GIT binary patch delta 16772 zcmV)GK)%2Gp$40w1`SY40|XQR00;m8VO9u{4Il$yRtS+WCoW-D2vs#38X2Tv0RZ6k z0{|TW003lZb966Zb8}^Mb1!LbWMz0RHaRh5W@I-ufrYh&0cs_GS#~gKvwQ3+3_?ib zCWI15n}ox4Wg~-vkQ_+{6XXAW=VQI}Fr?kxcZ|EoZm`z-G1pvk&NUyQ+=9XsPZSKK z@@mhP7*~b-)oX|1=aHLw+Za)CY|~rCcS$?I=RZw&jYa-lf=_=|DK~%A^{8ZD-d+)2 zYd2_G_{_g(1Njtx|K!ge1=|r&e7(qj4Q)n}ejnZRl#H}b3AZ}of)ic`Dt5-i4p4mY z$epz>yvJK6;_gpIXc|B|P&|`o<44vT6s3-P6Uih*Jq1O|o*IVBgWZmM@lO}qz?d(W ztK@@?dm|F{>{TIIQE+1oC3#$+oMyFz@h|MD+0odCZ4wQC`$~)B29Kh4>^)Ar(o17y zzy%CAe>5h0XCv)&y~Wa&cdl)g1)i9XdhW4__&T`p=_r!q>KYC>{9v`P<&yMI-=@9` zbh;aMUhjSM$rd8)yxDoa_r_PY3}I*Y)!@yGcYAMrXN;N#aM@w%i^0*(^EZ1heA{D^ z=eciF4B6*@iBY7Q-gyCqf-`FS#on8}<2@gBAwwjovBoH(8WKDI%BnTrti47qUyjj( zmaRj#EGx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z-index:-1000 !important; top:0 !important; right:0 !important; -`,c0=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function u0(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),o=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),r=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:c0.map(i=>`${i}:${t.getPropertyValue(i)}`).join(";"),paddingSize:o,borderSize:r,boxSizing:n}}function fa(e,t=1,n){var o;Et||(Et=document.createElement("textarea"),document.body.appendChild(Et));const{paddingSize:r,borderSize:s,boxSizing:i,contextStyle:l}=u0(e);Et.setAttribute("style",`${l};${a0}`),Et.value=e.value||e.placeholder||"";let a=Et.scrollHeight;const c={};i==="border-box"?a=a+s:i==="content-box"&&(a=a-r),Et.value="";const u=Et.scrollHeight-r;if(Ve(t)){let h=u*t;i==="border-box"&&(h=h+r+s),a=Math.max(h,a),c.minHeight=`${h}px`}if(Ve(n)){let h=u*n;i==="border-box"&&(h=h+r+s),a=Math.min(h,a)}return c.height=`${a}px`,(o=Et.parentNode)==null||o.removeChild(Et),Et=void 0,c}const f0=De({id:{type:String,default:void 0},size:ir,disabled:Boolean,modelValue:{type:Ee([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:Ee([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String,default:""},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:uo,default:""},prefixIcon:{type:uo,default:""},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:Ee([Object,Array,String]),default:()=>Pn({})}}),d0={[Ot]:e=>Ne(e),input:e=>Ne(e),change:e=>Ne(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},p0=["role"],h0=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder"],m0=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder"],v0={name:"ElInput",inheritAttrs:!1},g0=we({...v0,props:f0,emits:d0,setup(e,{expose:t,emit:n}){const o=e,r={suffix:"append",prefix:"prepend"},s=Qe(),i=zp(),l=cs(),a=P(()=>{const C={};return o.containerRole==="combobox"&&(C["aria-haspopup"]=i["aria-haspopup"],C["aria-owns"]=i["aria-owns"],C["aria-expanded"]=i["aria-expanded"]),C}),c=Pg({excludeKeys:P(()=>Object.keys(a.value))}),{form:u,formItem:h}=qi(),{inputId:f}=vs(o,{formItemContext:h}),p=Vn(),v=ms(),m=ze("input"),y=ze("textarea"),b=oo(),S=oo(),x=H(!1),E=H(!1),k=H(!1),_=H(!1),T=H(),O=oo(o.inputStyle),R=P(()=>b.value||S.value),q=P(()=>{var C;return(C=u==null?void 0:u.statusIcon)!=null?C:!1}),X=P(()=>(h==null?void 0:h.validateState)||""),U=P(()=>X.value&&Sg[X.value]),M=P(()=>_.value?kg:eg),L=P(()=>[i.style,o.inputStyle]),Z=P(()=>[o.inputStyle,O.value,{resize:o.resize}]),B=P(()=>Yt(o.modelValue)?"":String(o.modelValue)),G=P(()=>o.clearable&&!v.value&&!o.readonly&&!!B.value&&(x.value||E.value)),J=P(()=>o.showPassword&&!v.value&&!o.readonly&&!!B.value&&(!!B.value||x.value)),me=P(()=>o.showWordLimit&&!!c.value.maxlength&&(o.type==="text"||o.type==="textarea")&&!v.value&&!o.readonly&&!o.showPassword),Se=P(()=>Array.from(B.value).length),_e=P(()=>!!me.value&&Se.value>Number(c.value.maxlength)),Te=P(()=>!!l.suffix||!!o.suffixIcon||G.value||o.showPassword||me.value||!!X.value&&q.value),[ne,ve]=o0(b);gu(S,C=>{if(!me.value||o.resize!=="both")return;const K=C[0],{width:oe}=K.contentRect;T.value={right:`calc(100% - ${oe+15+6}px)`}});const pe=()=>{const{type:C,autosize:K}=o;if(!(!Ue||C!=="textarea"))if(K){const oe=Ae(K)?K.minRows:void 0,ce=Ae(K)?K.maxRows:void 0;O.value={...fa(S.value,oe,ce)}}else O.value={minHeight:fa(S.value).minHeight}},j=()=>{const C=R.value;!C||C.value===B.value||(C.value=B.value)},I=C=>{const{el:K}=s.vnode;if(!K)return;const ce=Array.from(K.querySelectorAll(`.${m.e(C)}`)).find(be=>be.parentNode===K);if(!ce)return;const ke=r[C];l[ke]?ce.style.transform=`translateX(${C==="suffix"?"-":""}${K.querySelector(`.${m.be("group",ke)}`).offsetWidth}px)`:ce.removeAttribute("style")},Q=()=>{I("prefix"),I("suffix")},le=async C=>{ne();let{value:K}=C.target;o.formatter&&(K=o.parser?o.parser(K):K,K=o.formatter(K)),!k.value&&K!==B.value&&(n(Ot,K),n("input",K),await Fe(),j(),ve())},Ce=C=>{n("change",C.target.value)},Me=C=>{n("compositionstart",C),k.value=!0},Oe=C=>{var K;n("compositionupdate",C);const oe=(K=C.target)==null?void 0:K.value,ce=oe[oe.length-1]||"";k.value=!Ng(ce)},g=C=>{n("compositionend",C),k.value&&(k.value=!1,le(C))},w=()=>{_.value=!_.value,$()},$=async()=>{var C;await Fe(),(C=R.value)==null||C.focus()},F=()=>{var C;return(C=R.value)==null?void 0:C.blur()},A=C=>{x.value=!0,n("focus",C)},V=C=>{var K;x.value=!1,n("blur",C),o.validateEvent&&((K=h==null?void 0:h.validate)==null||K.call(h,"blur").catch(oe=>void 0))},Y=C=>{E.value=!1,n("mouseleave",C)},z=C=>{E.value=!0,n("mouseenter",C)},W=C=>{n("keydown",C)},D=()=>{var C;(C=R.value)==null||C.select()},se=()=>{n(Ot,""),n("change",""),n("clear"),n("input","")};return ue(()=>o.modelValue,()=>{var C;Fe(()=>pe()),o.validateEvent&&((C=h==null?void 0:h.validate)==null||C.call(h,"change").catch(K=>void 0))}),ue(B,()=>j()),ue(()=>o.type,async()=>{await Fe(),j(),pe(),Q()}),We(async()=>{!o.formatter&&o.parser,j(),Q(),await Fe(),pe()}),nr(async()=>{await Fe(),Q()}),t({input:b,textarea:S,ref:R,textareaStyle:Z,autosize:Vt(o,"autosize"),focus:$,blur:F,select:D,clear:se,resizeTextarea:pe}),(C,K)=>at((N(),te("div",$t(d(a),{class:[C.type==="textarea"?d(y).b():d(m).b(),d(m).m(d(p)),d(m).is("disabled",d(v)),d(m).is("exceed",d(_e)),{[d(m).b("group")]:C.$slots.prepend||C.$slots.append,[d(m).bm("group","append")]:C.$slots.append,[d(m).bm("group","prepend")]:C.$slots.prepend,[d(m).m("prefix")]:C.$slots.prefix||C.prefixIcon,[d(m).m("suffix")]:C.$slots.suffix||C.suffixIcon||C.clearable||C.showPassword,[d(m).bm("suffix","password-clear")]:d(G)&&d(J)},C.$attrs.class],style:d(L),role:C.containerRole,onMouseenter:z,onMouseleave:Y}),[de(" input "),C.type!=="textarea"?(N(),te($e,{key:0},[de(" prepend slot "),C.$slots.prepend?(N(),te("div",{key:0,class:ee(d(m).be("group","prepend"))},[Be(C.$slots,"prepend")],2)):de("v-if",!0),re("div",{class:ee([d(m).e("wrapper"),d(m).is("focus",x.value)])},[de(" prefix slot "),C.$slots.prefix||C.prefixIcon?(N(),te("span",{key:0,class:ee(d(m).e("prefix"))},[re("span",{class:ee(d(m).e("prefix-inner"))},[Be(C.$slots,"prefix"),C.prefixIcon?(N(),ie(d(bt),{key:0,class:ee(d(m).e("icon"))},{default:ge(()=>[(N(),ie(nt(C.prefixIcon)))]),_:1},8,["class"])):de("v-if",!0)],2)],2)):de("v-if",!0),re("input",$t({id:d(f),ref_key:"input",ref:b,class:d(m).e("inner")},d(c),{type:C.showPassword?_.value?"text":"password":C.type,disabled:d(v),formatter:C.formatter,parser:C.parser,readonly:C.readonly,autocomplete:C.autocomplete,tabindex:C.tabindex,"aria-label":C.label,placeholder:C.placeholder,style:C.inputStyle,onCompositionstart:Me,onCompositionupdate:Oe,onCompositionend:g,onInput:le,onFocus:A,onBlur:V,onChange:Ce,onKeydown:W}),null,16,h0),de(" suffix slot "),d(Te)?(N(),te("span",{key:1,class:ee(d(m).e("suffix"))},[re("span",{class:ee(d(m).e("suffix-inner"))},[!d(G)||!d(J)||!d(me)?(N(),te($e,{key:0},[Be(C.$slots,"suffix"),C.suffixIcon?(N(),ie(d(bt),{key:0,class:ee(d(m).e("icon"))},{default:ge(()=>[(N(),ie(nt(C.suffixIcon)))]),_:1},8,["class"])):de("v-if",!0)],64)):de("v-if",!0),d(G)?(N(),ie(d(bt),{key:1,class:ee([d(m).e("icon"),d(m).e("clear")]),onMousedown:zt(d(Je),["prevent"]),onClick:se},{default:ge(()=>[fe(d(yu))]),_:1},8,["class","onMousedown"])):de("v-if",!0),d(J)?(N(),ie(d(bt),{key:2,class:ee([d(m).e("icon"),d(m).e("password")]),onClick:w},{default:ge(()=>[(N(),ie(nt(d(M))))]),_:1},8,["class"])):de("v-if",!0),d(me)?(N(),te("span",{key:3,class:ee(d(m).e("count"))},[re("span",{class:ee(d(m).e("count-inner"))},Ye(d(Se))+" / "+Ye(d(c).maxlength),3)],2)):de("v-if",!0),d(X)&&d(U)&&d(q)?(N(),ie(d(bt),{key:4,class:ee([d(m).e("icon"),d(m).e("validateIcon"),d(m).is("loading",d(X)==="validating")])},{default:ge(()=>[(N(),ie(nt(d(U))))]),_:1},8,["class"])):de("v-if",!0)],2)],2)):de("v-if",!0)],2),de(" append slot "),C.$slots.append?(N(),te("div",{key:1,class:ee(d(m).be("group","append"))},[Be(C.$slots,"append")],2)):de("v-if",!0)],64)):(N(),te($e,{key:1},[de(" textarea "),re("textarea",$t({id:d(f),ref_key:"textarea",ref:S,class:d(y).e("inner")},d(c),{tabindex:C.tabindex,disabled:d(v),readonly:C.readonly,autocomplete:C.autocomplete,style:d(Z),"aria-label":C.label,placeholder:C.placeholder,onCompositionstart:Me,onCompositionupdate:Oe,onCompositionend:g,onInput:le,onFocus:A,onBlur:V,onChange:Ce,onKeydown:W}),null,16,m0),d(me)?(N(),te("span",{key:0,style:Ke(T.value),class:ee(d(m).e("count"))},Ye(d(Se))+" / "+Ye(d(c).maxlength),7)):de("v-if",!0)],64))],16,p0)),[[ao,C.type!=="hidden"]])}});var b0=Ie(g0,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const Gi=Pt(b0),Qn=4,Iu={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},y0=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),w0=De({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),_0=we({__name:"thumb",props:w0,setup(e){const t=e,n="Thumb",o=Re(xu),r=ze("scrollbar");o||fv(n,"can not inject scrollbar context");const s=H(),i=H(),l=H({}),a=H(!1);let c=!1,u=!1,h=Ue?document.onselectstart:null;const f=P(()=>Iu[t.vertical?"vertical":"horizontal"]),p=P(()=>y0({size:t.size,move:t.move,bar:f.value})),v=P(()=>s.value[f.value.offset]**2/o.wrapElement[f.value.scrollSize]/t.ratio/i.value[f.value.offset]),m=T=>{var O;if(T.stopPropagation(),T.ctrlKey||[1,2].includes(T.button))return;(O=window.getSelection())==null||O.removeAllRanges(),b(T);const R=T.currentTarget;!R||(l.value[f.value.axis]=R[f.value.offset]-(T[f.value.client]-R.getBoundingClientRect()[f.value.direction]))},y=T=>{if(!i.value||!s.value||!o.wrapElement)return;const O=Math.abs(T.target.getBoundingClientRect()[f.value.direction]-T[f.value.client]),R=i.value[f.value.offset]/2,q=(O-R)*100*v.value/s.value[f.value.offset];o.wrapElement[f.value.scroll]=q*o.wrapElement[f.value.scrollSize]/100},b=T=>{T.stopImmediatePropagation(),c=!0,document.addEventListener("mousemove",S),document.addEventListener("mouseup",x),h=document.onselectstart,document.onselectstart=()=>!1},S=T=>{if(!s.value||!i.value||c===!1)return;const O=l.value[f.value.axis];if(!O)return;const R=(s.value.getBoundingClientRect()[f.value.direction]-T[f.value.client])*-1,q=i.value[f.value.offset]-O,X=(R-q)*100*v.value/s.value[f.value.offset];o.wrapElement[f.value.scroll]=X*o.wrapElement[f.value.scrollSize]/100},x=()=>{c=!1,l.value[f.value.axis]=0,document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",x),_(),u&&(a.value=!1)},E=()=>{u=!1,a.value=!!t.size},k=()=>{u=!0,a.value=c};Mt(()=>{_(),document.removeEventListener("mouseup",x)});const _=()=>{document.onselectstart!==h&&(document.onselectstart=h)};return An(Vt(o,"scrollbarElement"),"mousemove",E),An(Vt(o,"scrollbarElement"),"mouseleave",k),(T,O)=>(N(),ie(lo,{name:d(r).b("fade"),persisted:""},{default:ge(()=>[at(re("div",{ref_key:"instance",ref:s,class:ee([d(r).e("bar"),d(r).is(d(f).key)]),onMousedown:y},[re("div",{ref_key:"thumb",ref:i,class:ee(d(r).e("thumb")),style:Ke(d(p)),onMousedown:m},null,38)],34),[[ao,T.always||a.value]])]),_:1},8,["name"]))}});var da=Ie(_0,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const C0=De({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),k0=we({__name:"bar",props:C0,setup(e,{expose:t}){const n=e,o=H(0),r=H(0);return t({handleScroll:i=>{if(i){const l=i.offsetHeight-Qn,a=i.offsetWidth-Qn;r.value=i.scrollTop*100/l*n.ratioY,o.value=i.scrollLeft*100/a*n.ratioX}}}),(i,l)=>(N(),te($e,null,[fe(da,{move:o.value,ratio:i.ratioX,size:i.width,always:i.always},null,8,["move","ratio","size","always"]),fe(da,{move:r.value,ratio:i.ratioY,size:i.height,vertical:"",always:i.always},null,8,["move","ratio","size","always"])],64))}});var E0=Ie(k0,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const S0=De({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:Ee([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20}}),x0={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Ve)},T0={name:"ElScrollbar"},$0=we({...T0,props:S0,emits:x0,setup(e,{expose:t,emit:n}){const o=e,r=ze("scrollbar");let s,i;const l=H(),a=H(),c=H(),u=H("0"),h=H("0"),f=H(),p=H(1),v=H(1),m=P(()=>{const k={};return o.height&&(k.height=li(o.height)),o.maxHeight&&(k.maxHeight=li(o.maxHeight)),[o.wrapStyle,k]}),y=()=>{var k;a.value&&((k=f.value)==null||k.handleScroll(a.value),n("scroll",{scrollTop:a.value.scrollTop,scrollLeft:a.value.scrollLeft}))};function b(k,_){Ae(k)?a.value.scrollTo(k):Ve(k)&&Ve(_)&&a.value.scrollTo(k,_)}const S=k=>{!Ve(k)||(a.value.scrollTop=k)},x=k=>{!Ve(k)||(a.value.scrollLeft=k)},E=()=>{if(!a.value)return;const k=a.value.offsetHeight-Qn,_=a.value.offsetWidth-Qn,T=k**2/a.value.scrollHeight,O=_**2/a.value.scrollWidth,R=Math.max(T,o.minSize),q=Math.max(O,o.minSize);p.value=T/(k-T)/(R/(k-R)),v.value=O/(_-O)/(q/(_-q)),h.value=R+Qno.noresize,k=>{k?(s==null||s(),i==null||i()):({stop:s}=gu(c,E),i=An("resize",E))},{immediate:!0}),ue(()=>[o.maxHeight,o.height],()=>{o.native||Fe(()=>{var k;E(),a.value&&((k=f.value)==null||k.handleScroll(a.value))})}),mt(xu,Jt({scrollbarElement:l,wrapElement:a})),We(()=>{o.native||Fe(()=>E())}),nr(()=>E()),t({wrap$:a,update:E,scrollTo:b,setScrollTop:S,setScrollLeft:x,handleScroll:y}),(k,_)=>(N(),te("div",{ref_key:"scrollbar$",ref:l,class:ee(d(r).b())},[re("div",{ref_key:"wrap$",ref:a,class:ee([k.wrapClass,d(r).e("wrap"),{[d(r).em("wrap","hidden-default")]:!k.native}]),style:Ke(d(m)),onScroll:y},[(N(),ie(nt(k.tag),{ref_key:"resize$",ref:c,class:ee([d(r).e("view"),k.viewClass]),style:Ke(k.viewStyle)},{default:ge(()=>[Be(k.$slots,"default")]),_:3},8,["class","style"]))],38),k.native?de("v-if",!0):(N(),ie(E0,{key:0,ref_key:"barRef",ref:f,height:h.value,width:u.value,always:k.always,"ratio-x":v.value,"ratio-y":p.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var O0=Ie($0,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const N0=Pt(O0),Pu=De({role:{type:String,default:"tooltip"}}),M0={name:"ElPopperRoot",inheritAttrs:!1},A0=we({...M0,props:Pu,setup(e,{expose:t}){const n=e,o=H(),r=H(),s=H(),i=H(),l=P(()=>n.role),a={triggerRef:o,popperInstanceRef:r,contentRef:s,referenceRef:i,role:l};return t(a),mt(Wi,a),(c,u)=>Be(c.$slots,"default")}});var I0=Ie(A0,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const Lu=De({arrowOffset:{type:Number,default:5}}),P0={name:"ElPopperArrow",inheritAttrs:!1},L0=we({...P0,props:Lu,setup(e,{expose:t}){const n=e,o=ze("popper"),{arrowOffset:r,arrowRef:s}=Re(Tu,void 0);return ue(()=>n.arrowOffset,i=>{r.value=i}),Mt(()=>{s.value=void 0}),t({arrowRef:s}),(i,l)=>(N(),te("span",{ref_key:"arrowRef",ref:s,class:ee(d(o).e("arrow")),"data-popper-arrow":""},null,2))}});var F0=Ie(L0,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const R0="ElOnlyChild",B0=we({name:R0,setup(e,{slots:t,attrs:n}){var o;const r=Re(Au),s=Qg((o=r==null?void 0:r.setForwardRef)!=null?o:Je);return()=>{var i;const l=(i=t.default)==null?void 0:i.call(t,n);if(!l||l.length>1)return null;const a=Fu(l);return a?at(Xt(a,n),[[s]]):null}}});function Fu(e){if(!e)return null;const t=e;for(const n of t){if(Ae(n))switch(n.type){case pt:continue;case or:case"svg":return pa(n);case $e:return Fu(n.children);default:return n}return pa(n)}return null}function pa(e){return fe("span",{class:"el-only-child__content"},[e])}const Ru=De({virtualRef:{type:Ee(Object)},virtualTriggering:Boolean,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,onBlur:Function,onContextmenu:Function,id:String,open:Boolean}),z0={name:"ElPopperTrigger",inheritAttrs:!1},D0=we({...z0,props:Ru,setup(e,{expose:t}){const n=e,{role:o,triggerRef:r}=Re(Wi,void 0);Jg(r);const s=P(()=>l.value?n.id:void 0),i=P(()=>{if(o&&o.value==="tooltip")return n.open&&n.id?n.id:void 0}),l=P(()=>{if(o&&o.value!=="tooltip")return o.value}),a=P(()=>l.value?`${n.open}`:void 0);let c;return We(()=>{ue(()=>n.virtualRef,u=>{u&&(r.value=hn(u))},{immediate:!0}),ue(()=>r.value,(u,h)=>{c==null||c(),c=void 0,Jo(u)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(f=>{var p;const v=n[f];v&&(u.addEventListener(f.slice(2).toLowerCase(),v),(p=h==null?void 0:h.removeEventListener)==null||p.call(h,f.slice(2).toLowerCase(),v))}),c=ue([s,i,l,a],f=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((p,v)=>{Yt(f[v])?u.removeAttribute(p):u.setAttribute(p,f[v])})},{immediate:!0})),Jo(h)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(f=>h.removeAttribute(f))},{immediate:!0})}),Mt(()=>{c==null||c(),c=void 0}),t({triggerRef:r}),(u,h)=>u.virtualTriggering?de("v-if",!0):(N(),ie(d(B0),$t({key:0},u.$attrs,{"aria-controls":d(s),"aria-describedby":d(i),"aria-expanded":d(a),"aria-haspopup":d(l)}),{default:ge(()=>[Be(u.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var H0=Ie(D0,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]),it="top",_t="bottom",Ct="right",lt="left",Xi="auto",lr=[it,_t,Ct,lt],fo="start",Qo="end",V0="clippingParents",Bu="viewport",So="popper",j0="reference",ha=lr.reduce(function(e,t){return e.concat([t+"-"+fo,t+"-"+Qo])},[]),Zi=[].concat(lr,[Xi]).reduce(function(e,t){return e.concat([t,t+"-"+fo,t+"-"+Qo])},[]),K0="beforeRead",U0="read",W0="afterRead",q0="beforeMain",Y0="main",G0="afterMain",X0="beforeWrite",Z0="write",J0="afterWrite",Q0=[K0,U0,W0,q0,Y0,G0,X0,Z0,J0];function jt(e){return e?(e.nodeName||"").toLowerCase():null}function Lt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function po(e){var t=Lt(e).Element;return e instanceof t||e instanceof Element}function wt(e){var t=Lt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ji(e){if(typeof ShadowRoot=="undefined")return!1;var t=Lt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function eb(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},r=t.attributes[n]||{},s=t.elements[n];!wt(s)||!jt(s)||(Object.assign(s.style,o),Object.keys(r).forEach(function(i){var l=r[i];l===!1?s.removeAttribute(i):s.setAttribute(i,l===!0?"":l)}))})}function tb(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var r=t.elements[o],s=t.attributes[o]||{},i=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),l=i.reduce(function(a,c){return a[c]="",a},{});!wt(r)||!jt(r)||(Object.assign(r.style,l),Object.keys(s).forEach(function(a){r.removeAttribute(a)}))})}}var zu={name:"applyStyles",enabled:!0,phase:"write",fn:eb,effect:tb,requires:["computeStyles"]};function Dt(e){return e.split("-")[0]}var Bn=Math.max,Ur=Math.min,ho=Math.round;function mo(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),o=1,r=1;if(wt(e)&&t){var s=e.offsetHeight,i=e.offsetWidth;i>0&&(o=ho(n.width)/i||1),s>0&&(r=ho(n.height)/s||1)}return{width:n.width/o,height:n.height/r,top:n.top/r,right:n.right/o,bottom:n.bottom/r,left:n.left/o,x:n.left/o,y:n.top/r}}function Qi(e){var t=mo(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function Du(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ji(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Zt(e){return Lt(e).getComputedStyle(e)}function nb(e){return["table","td","th"].indexOf(jt(e))>=0}function wn(e){return((po(e)?e.ownerDocument:e.document)||window.document).documentElement}function gs(e){return jt(e)==="html"?e:e.assignedSlot||e.parentNode||(Ji(e)?e.host:null)||wn(e)}function ma(e){return!wt(e)||Zt(e).position==="fixed"?null:e.offsetParent}function ob(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&wt(e)){var o=Zt(e);if(o.position==="fixed")return null}var r=gs(e);for(Ji(r)&&(r=r.host);wt(r)&&["html","body"].indexOf(jt(r))<0;){var s=Zt(r);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return r;r=r.parentNode}return null}function ar(e){for(var t=Lt(e),n=ma(e);n&&nb(n)&&Zt(n).position==="static";)n=ma(n);return n&&(jt(n)==="html"||jt(n)==="body"&&Zt(n).position==="static")?t:n||ob(e)||t}function el(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ro(e,t,n){return Bn(e,Ur(t,n))}function rb(e,t,n){var o=Ro(e,t,n);return o>n?n:o}function Hu(){return{top:0,right:0,bottom:0,left:0}}function Vu(e){return Object.assign({},Hu(),e)}function ju(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var sb=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Vu(typeof e!="number"?e:ju(e,lr))};function ib(e){var t,n=e.state,o=e.name,r=e.options,s=n.elements.arrow,i=n.modifiersData.popperOffsets,l=Dt(n.placement),a=el(l),c=[lt,Ct].indexOf(l)>=0,u=c?"height":"width";if(!(!s||!i)){var h=sb(r.padding,n),f=Qi(s),p=a==="y"?it:lt,v=a==="y"?_t:Ct,m=n.rects.reference[u]+n.rects.reference[a]-i[a]-n.rects.popper[u],y=i[a]-n.rects.reference[a],b=ar(s),S=b?a==="y"?b.clientHeight||0:b.clientWidth||0:0,x=m/2-y/2,E=h[p],k=S-f[u]-h[v],_=S/2-f[u]/2+x,T=Ro(E,_,k),O=a;n.modifiersData[o]=(t={},t[O]=T,t.centerOffset=T-_,t)}}function lb(e){var t=e.state,n=e.options,o=n.element,r=o===void 0?"[data-popper-arrow]":o;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||!Du(t.elements.popper,r)||(t.elements.arrow=r))}var ab={name:"arrow",enabled:!0,phase:"main",fn:ib,effect:lb,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function vo(e){return e.split("-")[1]}var cb={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ub(e){var t=e.x,n=e.y,o=window,r=o.devicePixelRatio||1;return{x:ho(t*r)/r||0,y:ho(n*r)/r||0}}function va(e){var t,n=e.popper,o=e.popperRect,r=e.placement,s=e.variation,i=e.offsets,l=e.position,a=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,h=e.isFixed,f=i.x,p=f===void 0?0:f,v=i.y,m=v===void 0?0:v,y=typeof u=="function"?u({x:p,y:m}):{x:p,y:m};p=y.x,m=y.y;var b=i.hasOwnProperty("x"),S=i.hasOwnProperty("y"),x=lt,E=it,k=window;if(c){var _=ar(n),T="clientHeight",O="clientWidth";if(_===Lt(n)&&(_=wn(n),Zt(_).position!=="static"&&l==="absolute"&&(T="scrollHeight",O="scrollWidth")),_=_,r===it||(r===lt||r===Ct)&&s===Qo){E=_t;var R=h&&_===k&&k.visualViewport?k.visualViewport.height:_[T];m-=R-o.height,m*=a?1:-1}if(r===lt||(r===it||r===_t)&&s===Qo){x=Ct;var q=h&&_===k&&k.visualViewport?k.visualViewport.width:_[O];p-=q-o.width,p*=a?1:-1}}var X=Object.assign({position:l},c&&cb),U=u===!0?ub({x:p,y:m}):{x:p,y:m};if(p=U.x,m=U.y,a){var M;return Object.assign({},X,(M={},M[E]=S?"0":"",M[x]=b?"0":"",M.transform=(k.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",M))}return Object.assign({},X,(t={},t[E]=S?m+"px":"",t[x]=b?p+"px":"",t.transform="",t))}function fb(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=o===void 0?!0:o,s=n.adaptive,i=s===void 0?!0:s,l=n.roundOffsets,a=l===void 0?!0:l,c={placement:Dt(t.placement),variation:vo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,va(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:a})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,va(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Ku={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:fb,data:{}},yr={passive:!0};function db(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,s=r===void 0?!0:r,i=o.resize,l=i===void 0?!0:i,a=Lt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(u){u.addEventListener("scroll",n.update,yr)}),l&&a.addEventListener("resize",n.update,yr),function(){s&&c.forEach(function(u){u.removeEventListener("scroll",n.update,yr)}),l&&a.removeEventListener("resize",n.update,yr)}}var Uu={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:db,data:{}},pb={left:"right",right:"left",bottom:"top",top:"bottom"};function Mr(e){return e.replace(/left|right|bottom|top/g,function(t){return pb[t]})}var hb={start:"end",end:"start"};function ga(e){return e.replace(/start|end/g,function(t){return hb[t]})}function tl(e){var t=Lt(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function nl(e){return mo(wn(e)).left+tl(e).scrollLeft}function mb(e){var t=Lt(e),n=wn(e),o=t.visualViewport,r=n.clientWidth,s=n.clientHeight,i=0,l=0;return o&&(r=o.width,s=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=o.offsetLeft,l=o.offsetTop)),{width:r,height:s,x:i+nl(e),y:l}}function vb(e){var t,n=wn(e),o=tl(e),r=(t=e.ownerDocument)==null?void 0:t.body,s=Bn(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),i=Bn(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-o.scrollLeft+nl(e),a=-o.scrollTop;return Zt(r||n).direction==="rtl"&&(l+=Bn(n.clientWidth,r?r.clientWidth:0)-s),{width:s,height:i,x:l,y:a}}function ol(e){var t=Zt(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function Wu(e){return["html","body","#document"].indexOf(jt(e))>=0?e.ownerDocument.body:wt(e)&&ol(e)?e:Wu(gs(e))}function Bo(e,t){var n;t===void 0&&(t=[]);var o=Wu(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),s=Lt(o),i=r?[s].concat(s.visualViewport||[],ol(o)?o:[]):o,l=t.concat(i);return r?l:l.concat(Bo(gs(i)))}function ai(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function gb(e){var t=mo(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function ba(e,t){return t===Bu?ai(mb(e)):po(t)?gb(t):ai(vb(wn(e)))}function bb(e){var t=Bo(gs(e)),n=["absolute","fixed"].indexOf(Zt(e).position)>=0,o=n&&wt(e)?ar(e):e;return po(o)?t.filter(function(r){return po(r)&&Du(r,o)&&jt(r)!=="body"}):[]}function yb(e,t,n){var o=t==="clippingParents"?bb(e):[].concat(t),r=[].concat(o,[n]),s=r[0],i=r.reduce(function(l,a){var c=ba(e,a);return l.top=Bn(c.top,l.top),l.right=Ur(c.right,l.right),l.bottom=Ur(c.bottom,l.bottom),l.left=Bn(c.left,l.left),l},ba(e,s));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function qu(e){var t=e.reference,n=e.element,o=e.placement,r=o?Dt(o):null,s=o?vo(o):null,i=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,a;switch(r){case it:a={x:i,y:t.y-n.height};break;case _t:a={x:i,y:t.y+t.height};break;case Ct:a={x:t.x+t.width,y:l};break;case lt:a={x:t.x-n.width,y:l};break;default:a={x:t.x,y:t.y}}var c=r?el(r):null;if(c!=null){var u=c==="y"?"height":"width";switch(s){case fo:a[c]=a[c]-(t[u]/2-n[u]/2);break;case Qo:a[c]=a[c]+(t[u]/2-n[u]/2);break}}return a}function er(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=o===void 0?e.placement:o,s=n.boundary,i=s===void 0?V0:s,l=n.rootBoundary,a=l===void 0?Bu:l,c=n.elementContext,u=c===void 0?So:c,h=n.altBoundary,f=h===void 0?!1:h,p=n.padding,v=p===void 0?0:p,m=Vu(typeof v!="number"?v:ju(v,lr)),y=u===So?j0:So,b=e.rects.popper,S=e.elements[f?y:u],x=yb(po(S)?S:S.contextElement||wn(e.elements.popper),i,a),E=mo(e.elements.reference),k=qu({reference:E,element:b,strategy:"absolute",placement:r}),_=ai(Object.assign({},b,k)),T=u===So?_:E,O={top:x.top-T.top+m.top,bottom:T.bottom-x.bottom+m.bottom,left:x.left-T.left+m.left,right:T.right-x.right+m.right},R=e.modifiersData.offset;if(u===So&&R){var q=R[r];Object.keys(O).forEach(function(X){var U=[Ct,_t].indexOf(X)>=0?1:-1,M=[it,_t].indexOf(X)>=0?"y":"x";O[X]+=q[M]*U})}return O}function wb(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=n.boundary,s=n.rootBoundary,i=n.padding,l=n.flipVariations,a=n.allowedAutoPlacements,c=a===void 0?Zi:a,u=vo(o),h=u?l?ha:ha.filter(function(v){return vo(v)===u}):lr,f=h.filter(function(v){return c.indexOf(v)>=0});f.length===0&&(f=h);var p=f.reduce(function(v,m){return v[m]=er(e,{placement:m,boundary:r,rootBoundary:s,padding:i})[Dt(m)],v},{});return Object.keys(p).sort(function(v,m){return p[v]-p[m]})}function _b(e){if(Dt(e)===Xi)return[];var t=Mr(e);return[ga(e),t,ga(t)]}function Cb(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,s=r===void 0?!0:r,i=n.altAxis,l=i===void 0?!0:i,a=n.fallbackPlacements,c=n.padding,u=n.boundary,h=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,v=p===void 0?!0:p,m=n.allowedAutoPlacements,y=t.options.placement,b=Dt(y),S=b===y,x=a||(S||!v?[Mr(y)]:_b(y)),E=[y].concat(x).reduce(function(ve,pe){return ve.concat(Dt(pe)===Xi?wb(t,{placement:pe,boundary:u,rootBoundary:h,padding:c,flipVariations:v,allowedAutoPlacements:m}):pe)},[]),k=t.rects.reference,_=t.rects.popper,T=new Map,O=!0,R=E[0],q=0;q=0,Z=L?"width":"height",B=er(t,{placement:X,boundary:u,rootBoundary:h,altBoundary:f,padding:c}),G=L?M?Ct:lt:M?_t:it;k[Z]>_[Z]&&(G=Mr(G));var J=Mr(G),me=[];if(s&&me.push(B[U]<=0),l&&me.push(B[G]<=0,B[J]<=0),me.every(function(ve){return ve})){R=X,O=!1;break}T.set(X,me)}if(O)for(var Se=v?3:1,_e=function(ve){var pe=E.find(function(j){var I=T.get(j);if(I)return I.slice(0,ve).every(function(Q){return Q})});if(pe)return R=pe,"break"},Te=Se;Te>0;Te--){var ne=_e(Te);if(ne==="break")break}t.placement!==R&&(t.modifiersData[o]._skip=!0,t.placement=R,t.reset=!0)}}var kb={name:"flip",enabled:!0,phase:"main",fn:Cb,requiresIfExists:["offset"],data:{_skip:!1}};function ya(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function wa(e){return[it,Ct,_t,lt].some(function(t){return e[t]>=0})}function Eb(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,s=t.modifiersData.preventOverflow,i=er(t,{elementContext:"reference"}),l=er(t,{altBoundary:!0}),a=ya(i,o),c=ya(l,r,s),u=wa(a),h=wa(c);t.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}var Sb={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Eb};function xb(e,t,n){var o=Dt(e),r=[lt,it].indexOf(o)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=s[0],l=s[1];return i=i||0,l=(l||0)*r,[lt,Ct].indexOf(o)>=0?{x:l,y:i}:{x:i,y:l}}function Tb(e){var t=e.state,n=e.options,o=e.name,r=n.offset,s=r===void 0?[0,0]:r,i=Zi.reduce(function(u,h){return u[h]=xb(h,t.rects,s),u},{}),l=i[t.placement],a=l.x,c=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=i}var $b={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Tb};function Ob(e){var t=e.state,n=e.name;t.modifiersData[n]=qu({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Yu={name:"popperOffsets",enabled:!0,phase:"read",fn:Ob,data:{}};function Nb(e){return e==="x"?"y":"x"}function Mb(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,s=r===void 0?!0:r,i=n.altAxis,l=i===void 0?!1:i,a=n.boundary,c=n.rootBoundary,u=n.altBoundary,h=n.padding,f=n.tether,p=f===void 0?!0:f,v=n.tetherOffset,m=v===void 0?0:v,y=er(t,{boundary:a,rootBoundary:c,padding:h,altBoundary:u}),b=Dt(t.placement),S=vo(t.placement),x=!S,E=el(b),k=Nb(E),_=t.modifiersData.popperOffsets,T=t.rects.reference,O=t.rects.popper,R=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,q=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),X=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,U={x:0,y:0};if(_){if(s){var M,L=E==="y"?it:lt,Z=E==="y"?_t:Ct,B=E==="y"?"height":"width",G=_[E],J=G+y[L],me=G-y[Z],Se=p?-O[B]/2:0,_e=S===fo?T[B]:O[B],Te=S===fo?-O[B]:-T[B],ne=t.elements.arrow,ve=p&&ne?Qi(ne):{width:0,height:0},pe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Hu(),j=pe[L],I=pe[Z],Q=Ro(0,T[B],ve[B]),le=x?T[B]/2-Se-Q-j-q.mainAxis:_e-Q-j-q.mainAxis,Ce=x?-T[B]/2+Se+Q+I+q.mainAxis:Te+Q+I+q.mainAxis,Me=t.elements.arrow&&ar(t.elements.arrow),Oe=Me?E==="y"?Me.clientTop||0:Me.clientLeft||0:0,g=(M=X==null?void 0:X[E])!=null?M:0,w=G+le-g-Oe,$=G+Ce-g,F=Ro(p?Ur(J,w):J,G,p?Bn(me,$):me);_[E]=F,U[E]=F-G}if(l){var A,V=E==="x"?it:lt,Y=E==="x"?_t:Ct,z=_[k],W=k==="y"?"height":"width",D=z+y[V],se=z-y[Y],C=[it,lt].indexOf(b)!==-1,K=(A=X==null?void 0:X[k])!=null?A:0,oe=C?D:z-T[W]-O[W]-K+q.altAxis,ce=C?z+T[W]+O[W]-K-q.altAxis:se,ke=p&&C?rb(oe,z,ce):Ro(p?oe:D,z,p?ce:se);_[k]=ke,U[k]=ke-z}t.modifiersData[o]=U}}var Ab={name:"preventOverflow",enabled:!0,phase:"main",fn:Mb,requiresIfExists:["offset"]};function Ib(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Pb(e){return e===Lt(e)||!wt(e)?tl(e):Ib(e)}function Lb(e){var t=e.getBoundingClientRect(),n=ho(t.width)/e.offsetWidth||1,o=ho(t.height)/e.offsetHeight||1;return n!==1||o!==1}function Fb(e,t,n){n===void 0&&(n=!1);var o=wt(t),r=wt(t)&&Lb(t),s=wn(t),i=mo(e,r),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(o||!o&&!n)&&((jt(t)!=="body"||ol(s))&&(l=Pb(t)),wt(t)?(a=mo(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):s&&(a.x=nl(s))),{x:i.left+l.scrollLeft-a.x,y:i.top+l.scrollTop-a.y,width:i.width,height:i.height}}function Rb(e){var t=new Map,n=new Set,o=[];e.forEach(function(s){t.set(s.name,s)});function r(s){n.add(s.name);var i=[].concat(s.requires||[],s.requiresIfExists||[]);i.forEach(function(l){if(!n.has(l)){var a=t.get(l);a&&r(a)}}),o.push(s)}return e.forEach(function(s){n.has(s.name)||r(s)}),o}function Bb(e){var t=Rb(e);return Q0.reduce(function(n,o){return n.concat(t.filter(function(r){return r.phase===o}))},[])}function zb(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Db(e){var t=e.reduce(function(n,o){var r=n[o.name];return n[o.name]=r?Object.assign({},r,o,{options:Object.assign({},r.options,o.options),data:Object.assign({},r.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var _a={placement:"bottom",modifiers:[],strategy:"absolute"};function Ca(){for(var e=arguments.length,t=new Array(e),n=0;n{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0||o===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},ka=(e,t)=>{for(const n of e)if(!Kb(n,t))return n},Kb=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},Ub=e=>{const t=Gu(e),n=ka(t,e),o=ka(t.reverse(),e);return[n,o]},Wb=e=>e instanceof HTMLInputElement&&"select"in e,cn=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Wb(e)&&t&&e.select()}};function Ea(e,t){const n=[...e],o=e.indexOf(t);return o!==-1&&n.splice(o,1),n}const qb=()=>{let e=[];return{push:o=>{const r=e[0];r&&o!==r&&r.pause(),e=Ea(e,o),e.unshift(o)},remove:o=>{var r,s;e=Ea(e,o),(s=(r=e[0])==null?void 0:r.resume)==null||s.call(r)}}},Yb=(e,t=!1)=>{const n=document.activeElement;for(const o of e)if(cn(o,t),document.activeElement!==n)return},Sa=qb(),Ns="focus-trap.focus-after-trapped",Ms="focus-trap.focus-after-released",xa={cancelable:!0,bubbles:!1},Ta="focusAfterTrapped",$a="focusAfterReleased",Gb=Symbol("elFocusTrap"),Xb=we({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Ta,$a,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=H();let o,r;qg(p=>{e.trapped&&!s.paused&&t("release-requested",p)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},i=p=>{if(!e.loop&&!e.trapped||s.paused)return;const{key:v,altKey:m,ctrlKey:y,metaKey:b,currentTarget:S,shiftKey:x}=p,{loop:E}=e,k=v===Kr.tab&&!m&&!y&&!b,_=document.activeElement;if(k&&_){const T=S,[O,R]=Ub(T);O&&R?!x&&_===R?(p.preventDefault(),E&&cn(O,!0),t("focusout-prevented")):x&&[O,T].includes(_)&&(p.preventDefault(),E&&cn(R,!0),t("focusout-prevented")):_===T&&(p.preventDefault(),t("focusout-prevented"))}};mt(Gb,{focusTrapRef:n,onKeydown:i}),ue(()=>e.focusTrapEl,p=>{p&&(n.value=p)},{immediate:!0}),ue([n],([p],[v])=>{p&&(p.addEventListener("keydown",i),p.addEventListener("focusin",c),p.addEventListener("focusout",u)),v&&(v.removeEventListener("keydown",i),v.removeEventListener("focusin",c),v.removeEventListener("focusout",u))});const l=p=>{t(Ta,p)},a=p=>t($a,p),c=p=>{const v=d(n);if(!v)return;const m=p.target,y=m&&v.contains(m);y&&t("focusin",p),!s.paused&&e.trapped&&(y?r=m:cn(r,!0))},u=p=>{const v=d(n);if(!(s.paused||!v))if(e.trapped){const m=p.relatedTarget;!Yt(m)&&!v.contains(m)&&setTimeout(()=>{!s.paused&&e.trapped&&cn(r,!0)},0)}else{const m=p.target;m&&v.contains(m)||t("focusout",p)}};async function h(){await Fe();const p=d(n);if(p){Sa.push(s);const v=document.activeElement;if(o=v,!p.contains(v)){const y=new Event(Ns,xa);p.addEventListener(Ns,l),p.dispatchEvent(y),y.defaultPrevented||Fe(()=>{let b=e.focusStartEl;Ne(b)||(cn(b),document.activeElement!==b&&(b="first")),b==="first"&&Yb(Gu(p),!0),(document.activeElement===v||b==="container")&&cn(p)})}}}function f(){const p=d(n);if(p){p.removeEventListener(Ns,l);const v=new Event(Ms,xa);p.addEventListener(Ms,a),p.dispatchEvent(v),v.defaultPrevented||cn(o!=null?o:document.body,!0),p.removeEventListener(Ms,l),Sa.remove(s)}}return We(()=>{e.trapped&&h(),ue(()=>e.trapped,p=>{p?h():f()})}),Mt(()=>{e.trapped&&f()}),{onKeydown:i}}});function Zb(e,t,n,o,r,s){return Be(e.$slots,"default",{handleKeydown:e.onKeydown})}var Jb=Ie(Xb,[["render",Zb],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const Qb=["fixed","absolute"],ey=De({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Ee(Array),default:()=>[]},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Zi,default:"bottom"},popperOptions:{type:Ee(Object),default:()=>({})},strategy:{type:String,values:Qb,default:"absolute"}}),Xu=De({...ey,id:String,style:{type:Ee([String,Array,Object])},className:{type:Ee([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:Ee([String,Array,Object])},popperStyle:{type:Ee([String,Array,Object])},referenceEl:{type:Ee(Object)},triggerTargetEl:{type:Ee(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),ty=["mouseenter","mouseleave","focus","blur","close"],Oa=(e,t)=>{const{placement:n,strategy:o,popperOptions:r}=e,s={placement:n,strategy:o,...r,modifiers:oy(e)};return ry(s,t),sy(s,r==null?void 0:r.modifiers),s},ny=e=>{if(!!Ue)return hn(e)};function oy(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:o}=e;return[{name:"offset",options:{offset:[0,t!=null?t:12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:o!=null?o:[]}},{name:"computeStyles",options:{gpuAcceleration:n,adaptive:n}}]}function ry(e,{arrowEl:t,arrowOffset:n}){e.modifiers.push({name:"arrow",options:{element:t,padding:n!=null?n:5}})}function sy(e,t){t&&(e.modifiers=[...e.modifiers,...t!=null?t:[]])}const iy={name:"ElPopperContent"},ly=we({...iy,props:Xu,emits:ty,setup(e,{expose:t,emit:n}){const o=e,{popperInstanceRef:r,contentRef:s,triggerRef:i,role:l}=Re(Wi,void 0),a=Re(Hn,void 0),{nextZIndex:c}=n0(),u=ze("popper"),h=H(),f=H("first"),p=H(),v=H();mt(Tu,{arrowRef:p,arrowOffset:v}),a&&(a.addInputId||a.removeInputId)&&mt(Hn,{...a,addInputId:Je,removeInputId:Je});const m=H(o.zIndex||c()),y=H(!1);let b;const S=P(()=>ny(o.referenceEl)||d(i)),x=P(()=>[{zIndex:d(m)},o.popperStyle]),E=P(()=>[u.b(),u.is("pure",o.pure),u.is(o.effect),o.popperClass]),k=P(()=>l&&l.value==="dialog"?"false":void 0),_=({referenceEl:L,popperContentEl:Z,arrowEl:B})=>{const G=Oa(o,{arrowEl:B,arrowOffset:d(v)});return jb(L,Z,G)},T=(L=!0)=>{var Z;(Z=d(r))==null||Z.update(),L&&(m.value=o.zIndex||c())},O=()=>{var L,Z;const B={name:"eventListeners",enabled:o.visible};(Z=(L=d(r))==null?void 0:L.setOptions)==null||Z.call(L,G=>({...G,modifiers:[...G.modifiers||[],B]})),T(!1),o.visible&&o.focusOnShow?y.value=!0:o.visible===!1&&(y.value=!1)},R=()=>{n("focus")},q=()=>{f.value="first",n("blur")},X=L=>{var Z;o.visible&&!y.value&&(L.relatedTarget&&((Z=L.relatedTarget)==null||Z.focus()),L.target&&(f.value=L.target),y.value=!0)},U=()=>{o.trapping||(y.value=!1)},M=()=>{y.value=!1,n("close")};return We(()=>{let L;ue(S,Z=>{var B;L==null||L();const G=d(r);if((B=G==null?void 0:G.destroy)==null||B.call(G),Z){const J=d(h);s.value=J,r.value=_({referenceEl:Z,popperContentEl:J,arrowEl:d(p)}),L=ue(()=>Z.getBoundingClientRect(),()=>T(),{immediate:!0})}else r.value=void 0},{immediate:!0}),ue(()=>o.triggerTargetEl,(Z,B)=>{b==null||b(),b=void 0;const G=d(Z||h.value),J=d(B||h.value);if(Jo(G)){const{ariaLabel:me,id:Se}=$c(o);b=ue([l,me,k,Se],_e=>{["role","aria-label","aria-modal","id"].forEach((Te,ne)=>{Yt(_e[ne])?G.removeAttribute(Te):G.setAttribute(Te,_e[ne])})},{immediate:!0})}Jo(J)&&["role","aria-label","aria-modal","id"].forEach(me=>{J.removeAttribute(me)})},{immediate:!0}),ue(()=>o.visible,O,{immediate:!0}),ue(()=>Oa(o,{arrowEl:d(p),arrowOffset:d(v)}),Z=>{var B;return(B=r.value)==null?void 0:B.setOptions(Z)})}),Mt(()=>{b==null||b(),b=void 0}),t({popperContentRef:h,popperInstanceRef:r,updatePopper:T,contentStyle:x}),(L,Z)=>(N(),te("div",{ref_key:"popperContentRef",ref:h,style:Ke(d(x)),class:ee(d(E)),tabindex:"-1",onMouseenter:Z[0]||(Z[0]=B=>L.$emit("mouseenter",B)),onMouseleave:Z[1]||(Z[1]=B=>L.$emit("mouseleave",B))},[fe(d(Jb),{trapped:y.value,"trap-on-focus-in":!0,"focus-trap-el":h.value,"focus-start-el":f.value,onFocusAfterTrapped:R,onFocusAfterReleased:q,onFocusin:X,onFocusoutPrevented:U,onReleaseRequested:M},{default:ge(()=>[Be(L.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el"])],38))}});var ay=Ie(ly,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const cy=Pt(I0),uy=ze("tooltip"),Zu=De({...Xg,...Xu,appendTo:{type:Ee([String,Object]),default:Mu},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:Ee(Boolean),default:null},transition:{type:String,default:`${uy.namespace.value}-fade-in-linear`},teleported:{type:Boolean,default:!0},disabled:{type:Boolean}}),Ju=De({...Ru,disabled:Boolean,trigger:{type:Ee([String,Array]),default:"hover"},triggerKeys:{type:Ee(Array),default:()=>[Kr.enter,Kr.space]}}),fy=De({openDelay:{type:Number},visibleArrow:{type:Boolean,default:void 0},hideAfter:{type:Number,default:200},showArrow:{type:Boolean,default:!0}}),sl=Symbol("elTooltip"),dy=we({name:"ElTooltipContent",components:{ElPopperContent:ay},inheritAttrs:!1,props:Zu,setup(e){const t=H(null),n=H(!1),o=H(!1),r=H(!1),s=H(!1),{controlled:i,id:l,open:a,trigger:c,onClose:u,onOpen:h,onShow:f,onHide:p,onBeforeShow:v,onBeforeHide:m}=Re(sl,void 0),y=P(()=>e.persistent);Mt(()=>{s.value=!0});const b=P(()=>d(y)?!0:d(a)),S=P(()=>e.disabled?!1:d(a)),x=P(()=>{var L;return(L=e.style)!=null?L:{}}),E=P(()=>!d(a)),k=()=>{p()},_=()=>{if(d(i))return!0},T=Ut(_,()=>{e.enterable&&d(c)==="hover"&&h()}),O=Ut(_,()=>{d(c)==="hover"&&u()}),R=()=>{var L,Z;(Z=(L=t.value)==null?void 0:L.updatePopper)==null||Z.call(L),v==null||v()},q=()=>{m==null||m()},X=()=>{f(),M=iv(P(()=>{var L;return(L=t.value)==null?void 0:L.popperContentRef}),()=>{if(d(i))return;d(c)!=="hover"&&u()})},U=()=>{e.virtualTriggering||u()};let M;return ue(()=>d(a),L=>{L||M==null||M()},{flush:"post"}),{ariaHidden:E,entering:o,leaving:r,id:l,intermediateOpen:n,contentStyle:x,contentRef:t,destroyed:s,shouldRender:b,shouldShow:S,onClose:u,open:a,onAfterShow:X,onBeforeEnter:R,onBeforeLeave:q,onContentEnter:T,onContentLeave:O,onTransitionLeave:k,onBlur:U}}});function py(e,t,n,o,r,s){const i=je("el-popper-content");return N(),ie(xp,{disabled:!e.teleported,to:e.appendTo},[fe(lo,{name:e.transition,onAfterLeave:e.onTransitionLeave,onBeforeEnter:e.onBeforeEnter,onAfterEnter:e.onAfterShow,onBeforeLeave:e.onBeforeLeave},{default:ge(()=>[e.shouldRender?at((N(),ie(i,$t({key:0,id:e.id,ref:"contentRef"},e.$attrs,{"aria-label":e.ariaLabel,"aria-hidden":e.ariaHidden,"boundaries-padding":e.boundariesPadding,"fallback-placements":e.fallbackPlacements,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,placement:e.placement,"popper-options":e.popperOptions,strategy:e.strategy,effect:e.effect,enterable:e.enterable,pure:e.pure,"popper-class":e.popperClass,"popper-style":[e.popperStyle,e.contentStyle],"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,visible:e.shouldShow,"z-index":e.zIndex,onMouseenter:e.onContentEnter,onMouseleave:e.onContentLeave,onBlur:e.onBlur,onClose:e.onClose}),{default:ge(()=>[de(" Workaround bug #6378 "),e.destroyed?de("v-if",!0):Be(e.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onBlur","onClose"])),[[ao,e.shouldShow]]):de("v-if",!0)]),_:3},8,["name","onAfterLeave","onBeforeEnter","onAfterEnter","onBeforeLeave"])],8,["disabled","to"])}var hy=Ie(dy,[["render",py],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const my=(e,t)=>ae(e)?e.includes(t):e===t,Gn=(e,t,n)=>o=>{my(d(e),t)&&n(o)},vy=we({name:"ElTooltipTrigger",components:{ElPopperTrigger:H0},props:Ju,setup(e){const t=ze("tooltip"),{controlled:n,id:o,open:r,onOpen:s,onClose:i,onToggle:l}=Re(sl,void 0),a=H(null),c=()=>{if(d(n)||e.disabled)return!0},u=Vt(e,"trigger"),h=Ut(c,Gn(u,"hover",s)),f=Ut(c,Gn(u,"hover",i)),p=Ut(c,Gn(u,"click",S=>{S.button===0&&l(S)})),v=Ut(c,Gn(u,"focus",s)),m=Ut(c,Gn(u,"focus",i)),y=Ut(c,Gn(u,"contextmenu",S=>{S.preventDefault(),l(S)})),b=Ut(c,S=>{const{code:x}=S;e.triggerKeys.includes(x)&&(S.preventDefault(),l(S))});return{onBlur:m,onContextMenu:y,onFocus:v,onMouseenter:h,onMouseleave:f,onClick:p,onKeydown:b,open:r,id:o,triggerRef:a,ns:t}}});function gy(e,t,n,o,r,s){const i=je("el-popper-trigger");return N(),ie(i,{id:e.id,"virtual-ref":e.virtualRef,open:e.open,"virtual-triggering":e.virtualTriggering,class:ee(e.ns.e("trigger")),onBlur:e.onBlur,onClick:e.onClick,onContextmenu:e.onContextMenu,onFocus:e.onFocus,onMouseenter:e.onMouseenter,onMouseleave:e.onMouseleave,onKeydown:e.onKeydown},{default:ge(()=>[Be(e.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"])}var by=Ie(vy,[["render",gy],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const{useModelToggleProps:yy,useModelToggle:wy,useModelToggleEmits:_y}=Ug("visible"),Cy=we({name:"ElTooltip",components:{ElPopper:cy,ElPopperArrow:F0,ElTooltipContent:hy,ElTooltipTrigger:by},props:{...Pu,...yy,...Zu,...Ju,...Lu,...fy},emits:[..._y,"before-show","before-hide","show","hide","open","close"],setup(e,{emit:t}){Gg();const n=P(()=>(In(e.openDelay),e.openDelay||e.showAfter)),o=P(()=>(In(e.visibleArrow),Zo(e.visibleArrow)?e.visibleArrow:e.showArrow)),r=Ou(),s=H(null),i=H(null),l=()=>{var y;const b=d(s);b&&((y=b.popperInstanceRef)==null||y.update())},a=H(!1),c=H(void 0),{show:u,hide:h}=wy({indicator:a,toggleReason:c}),{onOpen:f,onClose:p}=Zg({showAfter:n,hideAfter:Vt(e,"hideAfter"),open:u,close:h}),v=P(()=>Zo(e.visible));mt(sl,{controlled:v,id:r,open:Ni(a),trigger:Vt(e,"trigger"),onOpen:y=>{f(y)},onClose:y=>{p(y)},onToggle:y=>{d(a)?p(y):f(y)},onShow:()=>{t("show",c.value)},onHide:()=>{t("hide",c.value)},onBeforeShow:()=>{t("before-show",c.value)},onBeforeHide:()=>{t("before-hide",c.value)},updatePopper:l}),ue(()=>e.disabled,y=>{y&&a.value&&(a.value=!1)});const m=()=>{var y,b;const S=(b=(y=i.value)==null?void 0:y.contentRef)==null?void 0:b.popperContentRef;return S&&S.contains(document.activeElement)};return Hc(()=>a.value&&h()),{compatShowAfter:n,compatShowArrow:o,popperRef:s,contentRef:i,open:a,hide:h,isFocusInsideContent:m,updatePopper:l,onOpen:f,onClose:p}}}),ky=["innerHTML"],Ey={key:1};function Sy(e,t,n,o,r,s){const i=je("el-tooltip-trigger"),l=je("el-popper-arrow"),a=je("el-tooltip-content"),c=je("el-popper");return N(),ie(c,{ref:"popperRef",role:e.role},{default:ge(()=>[fe(i,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering},{default:ge(()=>[e.$slots.default?Be(e.$slots,"default",{key:0}):de("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),fe(a,{ref:"contentRef","aria-label":e.ariaLabel,"boundaries-padding":e.boundariesPadding,content:e.content,disabled:e.disabled,effect:e.effect,enterable:e.enterable,"fallback-placements":e.fallbackPlacements,"hide-after":e.hideAfter,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,persistent:e.persistent,"popper-class":e.popperClass,"popper-style":e.popperStyle,placement:e.placement,"popper-options":e.popperOptions,pure:e.pure,"raw-content":e.rawContent,"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,"show-after":e.compatShowAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"virtual-triggering":e.virtualTriggering,"z-index":e.zIndex,"append-to":e.appendTo},{default:ge(()=>[Be(e.$slots,"content",{},()=>[e.rawContent?(N(),te("span",{key:0,innerHTML:e.content},null,8,ky)):(N(),te("span",Ey,Ye(e.content),1))]),e.compatShowArrow?(N(),ie(l,{key:0,"arrow-offset":e.arrowOffset},null,8,["arrow-offset"])):de("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"])}var xy=Ie(Cy,[["render",Sy],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const Ty=Pt(xy),$y=["default","primary","success","warning","info","danger","text",""],Oy=["button","submit","reset"],ci=De({size:ir,disabled:Boolean,type:{type:String,values:$y,default:""},icon:{type:uo,default:""},nativeType:{type:String,values:Oy,default:"button"},loading:Boolean,loadingIcon:{type:uo,default:()=>wu},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0}}),Ny={click:e=>e instanceof MouseEvent};function Ge(e,t){My(e)&&(e="100%");var n=Ay(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function wr(e){return Math.min(1,Math.max(0,e))}function My(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Ay(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Qu(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function _r(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Ln(e){return e.length===1?"0"+e:String(e)}function Iy(e,t,n){return{r:Ge(e,255)*255,g:Ge(t,255)*255,b:Ge(n,255)*255}}function Na(e,t,n){e=Ge(e,255),t=Ge(t,255),n=Ge(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),s=0,i=0,l=(o+r)/2;if(o===r)i=0,s=0;else{var a=o-r;switch(i=l>.5?a/(2-o-r):a/(o+r),o){case e:s=(t-n)/a+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Py(e,t,n){var o,r,s;if(e=Ge(e,360),t=Ge(t,100),n=Ge(n,100),t===0)r=n,s=n,o=n;else{var i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;o=As(l,i,e+1/3),r=As(l,i,e),s=As(l,i,e-1/3)}return{r:o*255,g:r*255,b:s*255}}function Ma(e,t,n){e=Ge(e,255),t=Ge(t,255),n=Ge(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),s=0,i=o,l=o-r,a=o===0?0:l/o;if(o===r)s=0;else{switch(o){case e:s=(t-n)/l+(t>16,g:(e&65280)>>8,b:e&255}}var ui={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function zy(e){var t={r:0,g:0,b:0},n=1,o=null,r=null,s=null,i=!1,l=!1;return typeof e=="string"&&(e=Vy(e)),typeof e=="object"&&(Kt(e.r)&&Kt(e.g)&&Kt(e.b)?(t=Iy(e.r,e.g,e.b),i=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Kt(e.h)&&Kt(e.s)&&Kt(e.v)?(o=_r(e.s),r=_r(e.v),t=Ly(e.h,o,r),i=!0,l="hsv"):Kt(e.h)&&Kt(e.s)&&Kt(e.l)&&(o=_r(e.s),s=_r(e.l),t=Py(e.h,o,s),i=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Qu(n),{ok:i,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var Dy="[-\\+]?\\d+%?",Hy="[-\\+]?\\d*\\.\\d+%?",mn="(?:".concat(Hy,")|(?:").concat(Dy,")"),Is="[\\s|\\(]+(".concat(mn,")[,|\\s]+(").concat(mn,")[,|\\s]+(").concat(mn,")\\s*\\)?"),Ps="[\\s|\\(]+(".concat(mn,")[,|\\s]+(").concat(mn,")[,|\\s]+(").concat(mn,")[,|\\s]+(").concat(mn,")\\s*\\)?"),St={CSS_UNIT:new RegExp(mn),rgb:new RegExp("rgb"+Is),rgba:new RegExp("rgba"+Ps),hsl:new RegExp("hsl"+Is),hsla:new RegExp("hsla"+Ps),hsv:new RegExp("hsv"+Is),hsva:new RegExp("hsva"+Ps),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Vy(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(ui[e])e=ui[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=St.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=St.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=St.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=St.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=St.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=St.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=St.hex8.exec(e),n?{r:ut(n[1]),g:ut(n[2]),b:ut(n[3]),a:Ia(n[4]),format:t?"name":"hex8"}:(n=St.hex6.exec(e),n?{r:ut(n[1]),g:ut(n[2]),b:ut(n[3]),format:t?"name":"hex"}:(n=St.hex4.exec(e),n?{r:ut(n[1]+n[1]),g:ut(n[2]+n[2]),b:ut(n[3]+n[3]),a:Ia(n[4]+n[4]),format:t?"name":"hex8"}:(n=St.hex3.exec(e),n?{r:ut(n[1]+n[1]),g:ut(n[2]+n[2]),b:ut(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Kt(e){return Boolean(St.CSS_UNIT.exec(String(e)))}var jy=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var o;if(t instanceof e)return t;typeof t=="number"&&(t=By(t)),this.originalInput=t;var r=zy(t);this.originalInput=t,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=(o=n.format)!==null&&o!==void 0?o:r.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=r.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,o,r,s=t.r/255,i=t.g/255,l=t.b/255;return s<=.03928?n=s/12.92:n=Math.pow((s+.055)/1.055,2.4),i<=.03928?o=i/12.92:o=Math.pow((i+.055)/1.055,2.4),l<=.03928?r=l/12.92:r=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*o+.0722*r},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Qu(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var t=Ma(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Ma(this.r,this.g,this.b),n=Math.round(t.h*360),o=Math.round(t.s*100),r=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(o,"%, ").concat(r,"%)"):"hsva(".concat(n,", ").concat(o,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Na(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Na(this.r,this.g,this.b),n=Math.round(t.h*360),o=Math.round(t.s*100),r=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(o,"%, ").concat(r,"%)"):"hsla(".concat(n,", ").concat(o,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Aa(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),Fy(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),o=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(o,")"):"rgba(".concat(t,", ").concat(n,", ").concat(o,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Ge(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(Ge(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Aa(this.r,this.g,this.b,!1),n=0,o=Object.entries(ui);n=0,s=!n&&r&&(t.startsWith("hex")||t==="name");return s?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(o=this.toRgbString()),t==="prgb"&&(o=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(o=this.toHexString()),t==="hex3"&&(o=this.toHexString(!0)),t==="hex4"&&(o=this.toHex8String(!0)),t==="hex8"&&(o=this.toHex8String()),t==="name"&&(o=this.toName()),t==="hsl"&&(o=this.toHslString()),t==="hsv"&&(o=this.toHsvString()),o||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=wr(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=wr(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=wr(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=wr(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var o=this.toRgb(),r=new e(t).toRgb(),s=n/100,i={r:(r.r-o.r)*s+o.r,g:(r.g-o.g)*s+o.g,b:(r.b-o.b)*s+o.b,a:(r.a-o.a)*s+o.a};return new e(i)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var o=this.toHsl(),r=360/n,s=[this];for(o.h=(o.h-(r*t>>1)+720)%360;--t;)o.h=(o.h+r)%360,s.push(new e(o));return s},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),o=n.h,r=n.s,s=n.v,i=[],l=1/t;t--;)i.push(new e({h:o,s:r,v:s})),s=(s+l)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),o=new e(t).toRgb();return new e({r:o.r+(n.r-o.r)*n.a,g:o.g+(n.g-o.g)*n.a,b:o.b+(n.b-o.b)*n.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),o=n.h,r=[this],s=360/t,i=1;i{let o={};const r=e.color;if(r){const s=new jy(r),i=e.dark?s.tint(20).toString():ln(s,20);if(e.plain)o=n.cssVarBlock({"bg-color":e.dark?ln(s,90):s.tint(90).toString(),"text-color":r,"border-color":e.dark?ln(s,50):s.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":r,"hover-border-color":r,"active-bg-color":i,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":i}),t.value&&(o[n.cssVarBlockName("disabled-bg-color")]=e.dark?ln(s,90):s.tint(90).toString(),o[n.cssVarBlockName("disabled-text-color")]=e.dark?ln(s,50):s.tint(50).toString(),o[n.cssVarBlockName("disabled-border-color")]=e.dark?ln(s,80):s.tint(80).toString());else{const l=e.dark?ln(s,30):s.tint(30).toString(),a=s.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(o=n.cssVarBlock({"bg-color":r,"text-color":a,"border-color":r,"hover-bg-color":l,"hover-text-color":a,"hover-border-color":l,"active-bg-color":i,"active-border-color":i}),t.value){const c=e.dark?ln(s,50):s.tint(50).toString();o[n.cssVarBlockName("disabled-bg-color")]=c,o[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,o[n.cssVarBlockName("disabled-border-color")]=c}}}return o})}const Uy=["aria-disabled","disabled","autofocus","type"],Wy={name:"ElButton"},qy=we({...Wy,props:ci,emits:Ny,setup(e,{expose:t,emit:n}){const o=e,r=cs();Fg({from:"type.text",replacement:"type.link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},P(()=>o.type==="text"));const s=Re(Su,void 0),i=sr("button"),l=ze("button"),{form:a}=qi(),c=Vn(P(()=>s==null?void 0:s.size)),u=ms(),h=H(),f=P(()=>o.type||(s==null?void 0:s.type)||""),p=P(()=>{var b,S,x;return(x=(S=o.autoInsertSpace)!=null?S:(b=i.value)==null?void 0:b.autoInsertSpace)!=null?x:!1}),v=P(()=>{var b;const S=(b=r.default)==null?void 0:b.call(r);if(p.value&&(S==null?void 0:S.length)===1){const x=S[0];if((x==null?void 0:x.type)===or){const E=x.children;return/^\p{Unified_Ideograph}{2}$/u.test(E.trim())}}return!1}),m=Ky(o),y=b=>{o.nativeType==="reset"&&(a==null||a.resetFields()),n("click",b)};return t({ref:h,size:c,type:f,disabled:u,shouldAddSpace:v}),(b,S)=>(N(),te("button",{ref_key:"_ref",ref:h,class:ee([d(l).b(),d(l).m(d(f)),d(l).m(d(c)),d(l).is("disabled",d(u)),d(l).is("loading",b.loading),d(l).is("plain",b.plain),d(l).is("round",b.round),d(l).is("circle",b.circle),d(l).is("text",b.text),d(l).is("link",b.link),d(l).is("has-bg",b.bg)]),"aria-disabled":d(u)||b.loading,disabled:d(u)||b.loading,autofocus:b.autofocus,type:b.nativeType,style:Ke(d(m)),onClick:y},[b.loading?(N(),te($e,{key:0},[b.$slots.loading?Be(b.$slots,"loading",{key:0}):(N(),ie(d(bt),{key:1,class:ee(d(l).is("loading"))},{default:ge(()=>[(N(),ie(nt(b.loadingIcon)))]),_:1},8,["class"]))],64)):b.icon||b.$slots.icon?(N(),ie(d(bt),{key:1},{default:ge(()=>[b.icon?(N(),ie(nt(b.icon),{key:0})):Be(b.$slots,"icon",{key:1})]),_:3})):de("v-if",!0),b.$slots.default?(N(),te("span",{key:2,class:ee({[d(l).em("text","expand")]:d(v)})},[Be(b.$slots,"default")],2)):de("v-if",!0)],14,Uy))}});var Yy=Ie(qy,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const Gy={size:ci.size,type:ci.type},Xy={name:"ElButtonGroup"},Zy=we({...Xy,props:Gy,setup(e){const t=e;mt(Su,Jt({size:Vt(t,"size"),type:Vt(t,"type")}));const n=ze("button");return(o,r)=>(N(),te("div",{class:ee(`${d(n).b("group")}`)},[Be(o.$slots,"default")],2))}});var ef=Ie(Zy,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const bs=Pt(Yy,{ButtonGroup:ef});Ui(ef);const un=new Map;let Pa;Ue&&(document.addEventListener("mousedown",e=>Pa=e),document.addEventListener("mouseup",e=>{for(const t of un.values())for(const{documentHandler:n}of t)n(e,Pa)}));function La(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:Jo(t.arg)&&n.push(t.arg),function(o,r){const s=t.instance.popperRef,i=o.target,l=r==null?void 0:r.target,a=!t||!t.instance,c=!i||!l,u=e.contains(i)||e.contains(l),h=e===i,f=n.length&&n.some(v=>v==null?void 0:v.contains(i))||n.length&&n.includes(l),p=s&&(s.contains(i)||s.contains(l));a||c||u||h||f||p||t.value(o,r)}}const Jy={beforeMount(e,t){un.has(e)||un.set(e,[]),un.get(e).push({documentHandler:La(e,t),bindingFn:t.value})},updated(e,t){un.has(e)||un.set(e,[]);const n=un.get(e),o=n.findIndex(s=>s.bindingFn===t.oldValue),r={documentHandler:La(e,t),bindingFn:t.value};o>=0?n.splice(o,1,r):n.push(r)},unmounted(e){un.delete(e)}};var Fa={beforeMount(e,t){let n=null,o;const r=()=>t.value&&t.value(),s=()=>{Date.now()-o<100&&r(),clearInterval(n),n=null};dn(e,"mousedown",i=>{i.button===0&&(o=Date.now(),rv(document,"mouseup",s),clearInterval(n),n=setInterval(r,100))})}};const Qy=De({header:{type:String,default:""},bodyStyle:{type:Ee([String,Object,Array]),default:""},shadow:{type:String,values:["always","hover","never"],default:"always"}}),e1={name:"ElCard"},t1=we({...e1,props:Qy,setup(e){const t=ze("card");return(n,o)=>(N(),te("div",{class:ee([d(t).b(),d(t).is(`${n.shadow}-shadow`)])},[n.$slots.header||n.header?(N(),te("div",{key:0,class:ee(d(t).e("header"))},[Be(n.$slots,"header",{},()=>[Nt(Ye(n.header),1)])],2)):de("v-if",!0),re("div",{class:ee(d(t).e("body")),style:Ke(n.bodyStyle)},[Be(n.$slots,"default")],6)],2))}});var n1=Ie(t1,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const o1=Pt(n1),r1={modelValue:{type:Array,default:()=>[]},disabled:Boolean,min:{type:Number,default:void 0},max:{type:Number,default:void 0},size:ir,id:{type:String,default:void 0},label:{type:String,default:void 0},fill:{type:String,default:void 0},textColor:{type:String,default:void 0},tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}},tf={modelValue:{type:[Number,String,Boolean],default:()=>{}},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:ir,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},_o=()=>{const e=Re(rr,{}),t=Re(Hn,{}),n=Re("CheckboxGroup",{}),o=P(()=>n&&(n==null?void 0:n.name)==="ElCheckboxGroup"),r=P(()=>t.size);return{isGroup:o,checkboxGroup:n,elForm:e,elFormItemSize:r,elFormItem:t}},s1=(e,{elFormItem:t})=>{const{inputId:n,isLabeledByFormItem:o}=vs(e,{formItemContext:t});return{isLabeledByFormItem:o,groupId:n}},i1=e=>{const t=H(!1),{emit:n}=Qe(),{isGroup:o,checkboxGroup:r,elFormItem:s}=_o(),i=H(!1);return{model:P({get(){var a,c;return o.value?(a=r.modelValue)==null?void 0:a.value:(c=e.modelValue)!=null?c:t.value},set(a){var c;o.value&&Array.isArray(a)?(i.value=r.max!==void 0&&a.length>r.max.value,i.value===!1&&((c=r==null?void 0:r.changeEvent)==null||c.call(r,a))):(n(Ot,a),t.value=a)}}),isGroup:o,isLimitExceeded:i,elFormItem:s}},l1=(e,t,{model:n})=>{const{isGroup:o,checkboxGroup:r}=_o(),s=H(!1),i=Vn(r==null?void 0:r.checkboxGroupSize,{prop:!0}),l=P(()=>{const u=n.value;return yo(u)==="[object Boolean]"?u:Array.isArray(u)?u.includes(e.label):u!=null?u===e.trueLabel:!!u}),a=Vn(P(()=>{var u;return o.value?(u=r==null?void 0:r.checkboxGroupSize)==null?void 0:u.value:void 0})),c=P(()=>!!(t.default||e.label));return{isChecked:l,focus:s,size:i,checkboxSize:a,hasOwnLabel:c}},a1=(e,{model:t,isChecked:n})=>{const{elForm:o,isGroup:r,checkboxGroup:s}=_o(),i=P(()=>{var a,c;const u=(a=s.max)==null?void 0:a.value,h=(c=s.min)==null?void 0:c.value;return!!(u||h)&&t.value.length>=u&&!n.value||t.value.length<=h&&n.value});return{isDisabled:P(()=>{var a,c;const u=e.disabled||(o==null?void 0:o.disabled);return(c=r.value?((a=s.disabled)==null?void 0:a.value)||u||i.value:u)!=null?c:!1}),isLimitDisabled:i}},c1=(e,{model:t})=>{function n(){Array.isArray(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&n()},u1=(e,{model:t,isLimitExceeded:n,hasOwnLabel:o,isDisabled:r,isLabeledByFormItem:s})=>{const{elFormItem:i,checkboxGroup:l}=_o(),{emit:a}=Qe();function c(v){var m,y;return v===e.trueLabel||v===!0?(m=e.trueLabel)!=null?m:!0:(y=e.falseLabel)!=null?y:!1}function u(v,m){a("change",c(v),m)}function h(v){if(n.value)return;const m=v.target;a("change",c(m.checked),v)}async function f(v){n.value||!o.value&&!r.value&&s.value&&(t.value=c([!1,e.falseLabel].includes(t.value)),await Fe(),u(t.value,v))}const p=P(()=>{var v;return((v=l.validateEvent)==null?void 0:v.value)||e.validateEvent});return ue(()=>e.modelValue,()=>{var v;p.value&&((v=i==null?void 0:i.validate)==null||v.call(i,"change").catch(m=>void 0))}),{handleChange:h,onClickRoot:f}},nf={[Ot]:e=>Ne(e)||Ve(e)||Zo(e),change:e=>Ne(e)||Ve(e)||Zo(e)},f1={[Ot]:e=>ae(e),change:e=>ae(e)},of=(e,t)=>{const{model:n,isGroup:o,isLimitExceeded:r,elFormItem:s}=i1(e),{focus:i,size:l,isChecked:a,checkboxSize:c,hasOwnLabel:u}=l1(e,t,{model:n}),{isDisabled:h}=a1(e,{model:n,isChecked:a}),{inputId:f,isLabeledByFormItem:p}=vs(e,{formItemContext:s,disableIdGeneration:u,disableIdManagement:o}),{handleChange:v,onClickRoot:m}=u1(e,{model:n,isLimitExceeded:r,hasOwnLabel:u,isDisabled:h,isLabeledByFormItem:p});return c1(e,{model:n}),{elFormItem:s,inputId:f,isLabeledByFormItem:p,isChecked:a,isDisabled:h,isGroup:o,checkboxSize:c,hasOwnLabel:u,model:n,handleChange:v,onClickRoot:m,focus:i,size:l}},d1=["tabindex","role","aria-checked"],p1=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],h1=["id","aria-hidden","disabled","value","name","tabindex"],m1={name:"ElCheckbox"},v1=we({...m1,props:tf,emits:nf,setup(e){const t=e,n=cs(),{inputId:o,isLabeledByFormItem:r,isChecked:s,isDisabled:i,checkboxSize:l,hasOwnLabel:a,model:c,handleChange:u,onClickRoot:h,focus:f}=of(t,n),p=ze("checkbox");return(v,m)=>(N(),ie(nt(!d(a)&&d(r)?"span":"label"),{class:ee([d(p).b(),d(p).m(d(l)),d(p).is("disabled",d(i)),d(p).is("bordered",v.border),d(p).is("checked",d(s))]),"aria-controls":v.indeterminate?v.controls:null,onClick:d(h)},{default:ge(()=>[re("span",{class:ee([d(p).e("input"),d(p).is("disabled",d(i)),d(p).is("checked",d(s)),d(p).is("indeterminate",v.indeterminate),d(p).is("focus",d(f))]),tabindex:v.indeterminate?0:void 0,role:v.indeterminate?"checkbox":void 0,"aria-checked":v.indeterminate?"mixed":void 0},[v.trueLabel||v.falseLabel?at((N(),te("input",{key:0,id:d(o),"onUpdate:modelValue":m[0]||(m[0]=y=>He(c)?c.value=y:null),class:ee(d(p).e("original")),type:"checkbox","aria-hidden":v.indeterminate?"true":"false",name:v.name,tabindex:v.tabindex,disabled:d(i),"true-value":v.trueLabel,"false-value":v.falseLabel,onChange:m[1]||(m[1]=(...y)=>d(u)&&d(u)(...y)),onFocus:m[2]||(m[2]=y=>f.value=!0),onBlur:m[3]||(m[3]=y=>f.value=!1)},null,42,p1)),[[jr,d(c)]]):at((N(),te("input",{key:1,id:d(o),"onUpdate:modelValue":m[4]||(m[4]=y=>He(c)?c.value=y:null),class:ee(d(p).e("original")),type:"checkbox","aria-hidden":v.indeterminate?"true":"false",disabled:d(i),value:v.label,name:v.name,tabindex:v.tabindex,onChange:m[5]||(m[5]=(...y)=>d(u)&&d(u)(...y)),onFocus:m[6]||(m[6]=y=>f.value=!0),onBlur:m[7]||(m[7]=y=>f.value=!1)},null,42,h1)),[[jr,d(c)]]),re("span",{class:ee(d(p).e("inner"))},null,2)],10,d1),d(a)?(N(),te("span",{key:0,class:ee(d(p).e("label"))},[Be(v.$slots,"default"),v.$slots.default?de("v-if",!0):(N(),te($e,{key:0},[Nt(Ye(v.label),1)],64))],2)):de("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var g1=Ie(v1,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const b1=["name","tabindex","disabled","true-value","false-value"],y1=["name","tabindex","disabled","value"],w1={name:"ElCheckboxButton"},_1=we({...w1,props:tf,emits:nf,setup(e){const t=e,n=cs(),{focus:o,isChecked:r,isDisabled:s,size:i,model:l,handleChange:a}=of(t,n),{checkboxGroup:c}=_o(),u=ze("checkbox"),h=P(()=>{var f,p,v,m;const y=(p=(f=c==null?void 0:c.fill)==null?void 0:f.value)!=null?p:"";return{backgroundColor:y,borderColor:y,color:(m=(v=c==null?void 0:c.textColor)==null?void 0:v.value)!=null?m:"",boxShadow:y?`-1px 0 0 0 ${y}`:void 0}});return(f,p)=>(N(),te("label",{class:ee([d(u).b("button"),d(u).bm("button",d(i)),d(u).is("disabled",d(s)),d(u).is("checked",d(r)),d(u).is("focus",d(o))])},[f.trueLabel||f.falseLabel?at((N(),te("input",{key:0,"onUpdate:modelValue":p[0]||(p[0]=v=>He(l)?l.value=v:null),class:ee(d(u).be("button","original")),type:"checkbox",name:f.name,tabindex:f.tabindex,disabled:d(s),"true-value":f.trueLabel,"false-value":f.falseLabel,onChange:p[1]||(p[1]=(...v)=>d(a)&&d(a)(...v)),onFocus:p[2]||(p[2]=v=>o.value=!0),onBlur:p[3]||(p[3]=v=>o.value=!1)},null,42,b1)),[[jr,d(l)]]):at((N(),te("input",{key:1,"onUpdate:modelValue":p[4]||(p[4]=v=>He(l)?l.value=v:null),class:ee(d(u).be("button","original")),type:"checkbox",name:f.name,tabindex:f.tabindex,disabled:d(s),value:f.label,onChange:p[5]||(p[5]=(...v)=>d(a)&&d(a)(...v)),onFocus:p[6]||(p[6]=v=>o.value=!0),onBlur:p[7]||(p[7]=v=>o.value=!1)},null,42,y1)),[[jr,d(l)]]),f.$slots.default||f.label?(N(),te("span",{key:2,class:ee(d(u).be("button","inner")),style:Ke(d(r)?d(h):void 0)},[Be(f.$slots,"default",{},()=>[Nt(Ye(f.label),1)])],6)):de("v-if",!0)],2))}});var rf=Ie(_1,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const C1={name:"ElCheckboxGroup"},k1=we({...C1,props:r1,emits:f1,setup(e,{emit:t}){const n=e,{elFormItem:o}=_o(),{groupId:r,isLabeledByFormItem:s}=s1(n,{elFormItem:o}),i=Vn(),l=ze("checkbox"),a=u=>{t(Ot,u),Fe(()=>{t("change",u)})},c=P({get(){return n.modelValue},set(u){a(u)}});return mt("CheckboxGroup",{name:"ElCheckboxGroup",modelValue:c,...$c(n),checkboxGroupSize:i,changeEvent:a}),ue(()=>n.modelValue,()=>{var u;n.validateEvent&&((u=o.validate)==null||u.call(o,"change").catch(h=>void 0))}),(u,h)=>(N(),ie(nt(u.tag),{id:d(r),class:ee(d(l).b("group")),role:"group","aria-label":d(s)?void 0:u.label||"checkbox-group","aria-labelledby":d(s)?d(o).labelId:void 0},{default:ge(()=>[Be(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"]))}});var sf=Ie(k1,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const cr=Pt(g1,{CheckboxButton:rf,CheckboxGroup:sf});Ui(rf);Ui(sf);let Ls=!1;function tr(e,t){if(!Ue)return;const n=function(s){var i;(i=t.drag)==null||i.call(t,s)},o=function(s){var i;Oo(document,"mousemove",n),Oo(document,"mouseup",o),Oo(document,"touchmove",n),Oo(document,"touchend",o),document.onselectstart=null,document.ondragstart=null,Ls=!1,(i=t.end)==null||i.call(t,s)},r=function(s){var i;Ls||(s.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,dn(document,"mousemove",n),dn(document,"mouseup",o),dn(document,"touchmove",n),dn(document,"touchend",o),Ls=!0,(i=t.start)==null||i.call(t,s))};dn(e,"mousedown",r),dn(e,"touchstart",r)}const E1=we({name:"ElColorAlphaSlider",props:{color:{type:Object,required:!0},vertical:{type:Boolean,default:!1}},setup(e){const t=Qe(),n=oo(null),o=oo(null),r=H(0),s=H(0),i=H(null);ue(()=>e.color.get("alpha"),()=>{f()}),ue(()=>e.color.value,()=>{f()});function l(){if(e.vertical)return 0;const p=t.vnode.el,v=e.color.get("alpha");return p?Math.round(v*(p.offsetWidth-n.value.offsetWidth/2)/100):0}function a(){const p=t.vnode.el;if(!e.vertical)return 0;const v=e.color.get("alpha");return p?Math.round(v*(p.offsetHeight-n.value.offsetHeight/2)/100):0}function c(){if(e.color&&e.color.value){const{r:p,g:v,b:m}=e.color.toRgb();return`linear-gradient(to right, rgba(${p}, ${v}, ${m}, 0) 0%, rgba(${p}, ${v}, ${m}, 1) 100%)`}return null}function u(p){p.target!==n.value&&h(p)}function h(p){const m=t.vnode.el.getBoundingClientRect(),{clientX:y,clientY:b}=Ki(p);if(e.vertical){let S=b-m.top;S=Math.max(n.value.offsetHeight/2,S),S=Math.min(S,m.height-n.value.offsetHeight/2),e.color.set("alpha",Math.round((S-n.value.offsetHeight/2)/(m.height-n.value.offsetHeight)*100))}else{let S=y-m.left;S=Math.max(n.value.offsetWidth/2,S),S=Math.min(S,m.width-n.value.offsetWidth/2),e.color.set("alpha",Math.round((S-n.value.offsetWidth/2)/(m.width-n.value.offsetWidth)*100))}}function f(){r.value=l(),s.value=a(),i.value=c()}return We(()=>{const p={drag:v=>{h(v)},end:v=>{h(v)}};tr(o.value,p),tr(n.value,p),f()}),{thumb:n,bar:o,thumbLeft:r,thumbTop:s,background:i,handleClick:u,update:f}}});function S1(e,t,n,o,r,s){return N(),te("div",{class:ee(["el-color-alpha-slider",{"is-vertical":e.vertical}])},[re("div",{ref:"bar",class:"el-color-alpha-slider__bar",style:Ke({background:e.background}),onClick:t[0]||(t[0]=(...i)=>e.handleClick&&e.handleClick(...i))},null,4),re("div",{ref:"thumb",class:"el-color-alpha-slider__thumb",style:Ke({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,4)],2)}var x1=Ie(E1,[["render",S1],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/alpha-slider.vue"]]);const T1=we({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=Qe(),n=H(null),o=H(null),r=H(0),s=H(0),i=P(()=>e.color.get("hue"));ue(()=>i.value,()=>{h()});function l(f){f.target!==n.value&&a(f)}function a(f){const v=t.vnode.el.getBoundingClientRect(),{clientX:m,clientY:y}=Ki(f);let b;if(e.vertical){let S=y-v.top;S=Math.min(S,v.height-n.value.offsetHeight/2),S=Math.max(n.value.offsetHeight/2,S),b=Math.round((S-n.value.offsetHeight/2)/(v.height-n.value.offsetHeight)*360)}else{let S=m-v.left;S=Math.min(S,v.width-n.value.offsetWidth/2),S=Math.max(n.value.offsetWidth/2,S),b=Math.round((S-n.value.offsetWidth/2)/(v.width-n.value.offsetWidth)*360)}e.color.set("hue",b)}function c(){const f=t.vnode.el;if(e.vertical)return 0;const p=e.color.get("hue");return f?Math.round(p*(f.offsetWidth-n.value.offsetWidth/2)/360):0}function u(){const f=t.vnode.el;if(!e.vertical)return 0;const p=e.color.get("hue");return f?Math.round(p*(f.offsetHeight-n.value.offsetHeight/2)/360):0}function h(){r.value=c(),s.value=u()}return We(()=>{const f={drag:p=>{a(p)},end:p=>{a(p)}};tr(o.value,f),tr(n.value,f),h()}),{bar:o,thumb:n,thumbLeft:r,thumbTop:s,hueValue:i,handleClick:l,update:h}}});function $1(e,t,n,o,r,s){return N(),te("div",{class:ee(["el-color-hue-slider",{"is-vertical":e.vertical}])},[re("div",{ref:"bar",class:"el-color-hue-slider__bar",onClick:t[0]||(t[0]=(...i)=>e.handleClick&&e.handleClick(...i))},null,512),re("div",{ref:"thumb",class:"el-color-hue-slider__thumb",style:Ke({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,4)],2)}var O1=Ie(T1,[["render",$1],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/hue-slider.vue"]]);const lf=Symbol(),N1=()=>Re(lf),Ra=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},M1=function(e){return typeof e=="string"&&e.includes(".")&&Number.parseFloat(e)===1},A1=function(e){return typeof e=="string"&&e.includes("%")},ro=function(e,t){M1(e)&&(e="100%");const n=A1(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),n&&(e=Number.parseInt(`${e*t}`,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)},Ba={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},Ar=function(e){e=Math.min(Math.round(e),255);const t=Math.floor(e/16),n=e%16;return`${Ba[t]||t}${Ba[n]||n}`},za=function({r:e,g:t,b:n}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+n)?"":`#${Ar(e)}${Ar(t)}${Ar(n)}`},Fs={A:10,B:11,C:12,D:13,E:14,F:15},xn=function(e){return e.length===2?(Fs[e[0].toUpperCase()]||+e[0])*16+(Fs[e[1].toUpperCase()]||+e[1]):Fs[e[1].toUpperCase()]||+e[1]},I1=function(e,t,n){t=t/100,n=n/100;let o=t;const r=Math.max(n,.01);n*=2,t*=n<=1?n:2-n,o*=r<=1?r:2-r;const s=(n+t)/2,i=n===0?2*o/(r+o):2*t/(n+t);return{h:e,s:i*100,v:s*100}},Da=function(e,t,n){e=ro(e,255),t=ro(t,255),n=ro(n,255);const o=Math.max(e,t,n),r=Math.min(e,t,n);let s;const i=o,l=o-r,a=o===0?0:l/o;if(o===r)s=0;else{switch(o){case e:{s=(t-n)/l+(t{this._hue=Math.max(0,Math.min(360,o)),this._saturation=Math.max(0,Math.min(100,r)),this._value=Math.max(0,Math.min(100,s)),this.doOnChange()};if(t.includes("hsl")){const o=t.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(r=>r!=="").map((r,s)=>s>2?Number.parseFloat(r):Number.parseInt(r,10));if(o.length===4?this._alpha=Number.parseFloat(o[3])*100:o.length===3&&(this._alpha=100),o.length>=3){const{h:r,s,v:i}=I1(o[0],o[1],o[2]);n(r,s,i)}}else if(t.includes("hsv")){const o=t.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(r=>r!=="").map((r,s)=>s>2?Number.parseFloat(r):Number.parseInt(r,10));o.length===4?this._alpha=Number.parseFloat(o[3])*100:o.length===3&&(this._alpha=100),o.length>=3&&n(o[0],o[1],o[2])}else if(t.includes("rgb")){const o=t.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(r=>r!=="").map((r,s)=>s>2?Number.parseFloat(r):Number.parseInt(r,10));if(o.length===4?this._alpha=Number.parseFloat(o[3])*100:o.length===3&&(this._alpha=100),o.length>=3){const{h:r,s,v:i}=Da(o[0],o[1],o[2]);n(r,s,i)}}else if(t.includes("#")){const o=t.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(o))return;let r,s,i;o.length===3?(r=xn(o[0]+o[0]),s=xn(o[1]+o[1]),i=xn(o[2]+o[2])):(o.length===6||o.length===8)&&(r=xn(o.slice(0,2)),s=xn(o.slice(2,4)),i=xn(o.slice(4,6))),o.length===8?this._alpha=xn(o.slice(6))/255*100:(o.length===3||o.length===6)&&(this._alpha=100);const{h:l,s:a,v:c}=Da(r,s,i);n(l,a,c)}}compare(t){return Math.abs(t._hue-this._hue)<2&&Math.abs(t._saturation-this._saturation)<1&&Math.abs(t._value-this._value)<1&&Math.abs(t._alpha-this._alpha)<1}doOnChange(){const{_hue:t,_saturation:n,_value:o,_alpha:r,format:s}=this;if(this.enableAlpha)switch(s){case"hsl":{const i=Ra(t,n/100,o/100);this.value=`hsla(${t}, ${Math.round(i[1]*100)}%, ${Math.round(i[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${t}, ${Math.round(n)}%, ${Math.round(o)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${za(xo(t,n,o))}${Ar(r*255/100)}`;break}default:{const{r:i,g:l,b:a}=xo(t,n,o);this.value=`rgba(${i}, ${l}, ${a}, ${this.get("alpha")/100})`}}else switch(s){case"hsl":{const i=Ra(t,n/100,o/100);this.value=`hsl(${t}, ${Math.round(i[1]*100)}%, ${Math.round(i[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${t}, ${Math.round(n)}%, ${Math.round(o)}%)`;break}case"rgb":{const{r:i,g:l,b:a}=xo(t,n,o);this.value=`rgb(${i}, ${l}, ${a})`;break}default:this.value=za(xo(t,n,o))}}}const P1=we({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(e){const{currentColor:t}=N1(),n=H(r(e.colors,e.color));ue(()=>t.value,s=>{const i=new zo;i.fromString(s),n.value.forEach(l=>{l.selected=i.compare(l)})}),qd(()=>{n.value=r(e.colors,e.color)});function o(s){e.color.fromString(e.colors[s])}function r(s,i){return s.map(l=>{const a=new zo;return a.enableAlpha=!0,a.format="rgba",a.fromString(l),a.selected=a.value===i.value,a})}return{rgbaColors:n,handleSelect:o}}}),L1={class:"el-color-predefine"},F1={class:"el-color-predefine__colors"},R1=["onClick"];function B1(e,t,n,o,r,s){return N(),te("div",L1,[re("div",F1,[(N(!0),te($e,null,yn(e.rgbaColors,(i,l)=>(N(),te("div",{key:e.colors[l],class:ee(["el-color-predefine__color-selector",{selected:i.selected,"is-alpha":i._alpha<100}]),onClick:a=>e.handleSelect(l)},[re("div",{style:Ke({backgroundColor:i.value})},null,4)],10,R1))),128))])])}var z1=Ie(P1,[["render",B1],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);const D1=we({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=Qe(),n=H(0),o=H(0),r=H("hsl(0, 100%, 50%)"),s=P(()=>{const a=e.color.get("hue"),c=e.color.get("value");return{hue:a,value:c}});function i(){const a=e.color.get("saturation"),c=e.color.get("value"),u=t.vnode.el,{clientWidth:h,clientHeight:f}=u;o.value=a*h/100,n.value=(100-c)*f/100,r.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function l(a){const u=t.vnode.el.getBoundingClientRect(),{clientX:h,clientY:f}=Ki(a);let p=h-u.left,v=f-u.top;p=Math.max(0,p),p=Math.min(p,u.width),v=Math.max(0,v),v=Math.min(v,u.height),o.value=p,n.value=v,e.color.set({saturation:p/u.width*100,value:100-v/u.height*100})}return ue(()=>s.value,()=>{i()}),We(()=>{tr(t.vnode.el,{drag:a=>{l(a)},end:a=>{l(a)}}),i()}),{cursorTop:n,cursorLeft:o,background:r,colorValue:s,handleDrag:l,update:i}}}),H1=re("div",{class:"el-color-svpanel__white"},null,-1),V1=re("div",{class:"el-color-svpanel__black"},null,-1),j1=re("div",null,null,-1),K1=[j1];function U1(e,t,n,o,r,s){return N(),te("div",{class:"el-color-svpanel",style:Ke({backgroundColor:e.background})},[H1,V1,re("div",{class:"el-color-svpanel__cursor",style:Ke({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},K1,4)],4)}var W1=Ie(D1,[["render",U1],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]);const q1=we({name:"ElColorPicker",components:{ElButton:bs,ElTooltip:Ty,ElInput:Gi,ElIcon:bt,Close:qv,ArrowDown:bu,SvPanel:W1,HueSlider:O1,AlphaSlider:x1,Predefine:z1},directives:{ClickOutside:Jy},props:{modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:{type:String,validator:$g},popperClass:String,label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:Array,validateEvent:{type:Boolean,default:!0}},emits:["change","active-change",Ot],setup(e,{emit:t}){const{t:n}=Yi(),o=ze("color"),r=Re(rr,{}),s=Re(Hn,{}),{inputId:i,isLabeledByFormItem:l}=vs(e,{formItemContext:s}),a=H(),c=H(),u=H(),h=H(null);let f=!0;const p=Jt(new zo({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue})),v=H(!1),m=H(!1),y=H(""),b=P(()=>!e.modelValue&&!m.value?"transparent":T(p,e.showAlpha)),S=Vn(),x=P(()=>!!(e.disabled||r.disabled)),E=P(()=>!e.modelValue&&!m.value?"":p.value),k=P(()=>l.value?void 0:e.label||n("el.colorpicker.defaultLabel")),_=P(()=>l.value?s.labelId:void 0);ue(()=>e.modelValue,B=>{B?B&&B!==p.value&&(f=!1,p.fromString(B)):m.value=!1}),ue(()=>E.value,B=>{y.value=B,f&&t("active-change",B),f=!0}),ue(()=>p.value,()=>{!e.modelValue&&!m.value&&(m.value=!0)});function T(B,G){if(!(B instanceof zo))throw new TypeError("color should be instance of _color Class");const{r:J,g:me,b:Se}=B.toRgb();return G?`rgba(${J}, ${me}, ${Se}, ${B.get("alpha")/100})`:`rgb(${J}, ${me}, ${Se})`}function O(B){v.value=B}const R=ov(O,100);function q(){R(!1),X()}function X(){Fe(()=>{e.modelValue?p.fromString(e.modelValue):(p.value="",Fe(()=>{m.value=!1}))})}function U(){x.value||R(!v.value)}function M(){p.fromString(y.value)}function L(){var B;const G=p.value;t(Ot,G),t("change",G),e.validateEvent&&((B=s.validate)==null||B.call(s,"change").catch(J=>void 0)),R(!1),Fe(()=>{const J=new zo({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue});p.compare(J)||X()})}function Z(){var B;R(!1),t(Ot,null),t("change",null),e.modelValue!==null&&e.validateEvent&&((B=s.validate)==null||B.call(s,"change").catch(G=>void 0)),X()}return We(()=>{e.modelValue&&(y.value=E.value)}),ue(()=>v.value,()=>{Fe(()=>{var B,G,J;(B=a.value)==null||B.update(),(G=c.value)==null||G.update(),(J=u.value)==null||J.update()})}),mt(lf,{currentColor:E}),{color:p,colorDisabled:x,colorSize:S,displayedColor:b,showPanelColor:m,showPicker:v,customInput:y,buttonId:i,buttonAriaLabel:k,buttonAriaLabelledby:_,handleConfirm:M,hide:q,handleTrigger:U,clear:Z,confirmValue:L,t:n,ns:o,hue:a,svPanel:c,alpha:u,popper:h}}}),Y1=["id","aria-label","aria-labelledby","aria-description","tabindex"];function G1(e,t,n,o,r,s){const i=je("hue-slider"),l=je("sv-panel"),a=je("alpha-slider"),c=je("predefine"),u=je("el-input"),h=je("el-button"),f=je("arrow-down"),p=je("el-icon"),v=je("close"),m=je("el-tooltip"),y=sp("click-outside");return N(),ie(m,{ref:"popper",visible:e.showPicker,"onUpdate:visible":t[3]||(t[3]=b=>e.showPicker=b),"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[e.ns.be("picker","panel"),e.ns.b("dropdown"),e.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:"el-zoom-in-top",persistent:""},{content:ge(()=>[at((N(),te("div",null,[re("div",{class:ee(e.ns.be("dropdown","main-wrapper"))},[fe(i,{ref:"hue",class:"hue-slider",color:e.color,vertical:""},null,8,["color"]),fe(l,{ref:"svPanel",color:e.color},null,8,["color"])],2),e.showAlpha?(N(),ie(a,{key:0,ref:"alpha",color:e.color},null,8,["color"])):de("v-if",!0),e.predefine?(N(),ie(c,{key:1,ref:"predefine",color:e.color,colors:e.predefine},null,8,["color","colors"])):de("v-if",!0),re("div",{class:ee(e.ns.be("dropdown","btns"))},[re("span",{class:ee(e.ns.be("dropdown","value"))},[fe(u,{modelValue:e.customInput,"onUpdate:modelValue":t[0]||(t[0]=b=>e.customInput=b),"validate-event":!1,size:"small",onKeyup:Mn(e.handleConfirm,["enter"]),onBlur:e.handleConfirm},null,8,["modelValue","onKeyup","onBlur"])],2),fe(h,{class:ee(e.ns.be("dropdown","link-btn")),text:"",size:"small",onClick:e.clear},{default:ge(()=>[Nt(Ye(e.t("el.colorpicker.clear")),1)]),_:1},8,["class","onClick"]),fe(h,{plain:"",size:"small",class:ee(e.ns.be("dropdown","btn")),onClick:e.confirmValue},{default:ge(()=>[Nt(Ye(e.t("el.colorpicker.confirm")),1)]),_:1},8,["class","onClick"])],2)])),[[y,e.hide]])]),default:ge(()=>[re("div",{id:e.buttonId,class:ee([e.ns.b("picker"),e.ns.is("disabled",e.colorDisabled),e.ns.bm("picker",e.colorSize)]),role:"button","aria-label":e.buttonAriaLabel,"aria-labelledby":e.buttonAriaLabelledby,"aria-description":e.t("el.colorpicker.description",{color:e.modelValue||""}),tabindex:e.tabindex,onKeydown:t[2]||(t[2]=Mn((...b)=>e.handleTrigger&&e.handleTrigger(...b),["enter"]))},[e.colorDisabled?(N(),te("div",{key:0,class:ee(e.ns.be("picker","mask"))},null,2)):de("v-if",!0),re("div",{class:ee(e.ns.be("picker","trigger")),onClick:t[1]||(t[1]=(...b)=>e.handleTrigger&&e.handleTrigger(...b))},[re("span",{class:ee([e.ns.be("picker","color"),e.ns.is("alpha",e.showAlpha)])},[re("span",{class:ee(e.ns.be("picker","color-inner")),style:Ke({backgroundColor:e.displayedColor})},[at(fe(p,{class:ee([e.ns.be("picker","icon"),e.ns.is("icon-arrow-down")])},{default:ge(()=>[fe(f)]),_:1},8,["class"]),[[ao,e.modelValue||e.showPanelColor]]),!e.modelValue&&!e.showPanelColor?(N(),ie(p,{key:0,class:ee([e.ns.be("picker","empty"),e.ns.is("icon-close")])},{default:ge(()=>[fe(v)]),_:1},8,["class"])):de("v-if",!0)],6)],2)],2)],42,Y1)]),_:1},8,["visible","popper-class"])}var Ir=Ie(q1,[["render",G1],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/index.vue"]]);Ir.install=e=>{e.component(Ir.name,Ir)};const X1=Ir,Z1=X1,J1=De({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,disabled:Boolean,size:ir,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||Ve(e)||["min","max"].includes(e),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0}}),Q1={[xg]:(e,t)=>e!==t,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[Tg]:e=>Ve(e)||Yt(e),[Ot]:e=>Ve(e)||Yt(e)},ew=["aria-label","onKeydown"],tw=["aria-label","onKeydown"],nw={name:"ElInputNumber"},ow=we({...nw,props:J1,emits:Q1,setup(e,{expose:t,emit:n}){const o=e,{t:r}=Yi(),s=ze("input-number"),i=H(),l=Jt({currentValue:o.modelValue,userInput:null}),{formItem:a}=qi(),c=P(()=>Ve(o.modelValue)&&S(o.modelValue,-1)Ve(o.modelValue)&&S(o.modelValue)>o.max),h=P(()=>{const M=b(o.step);return In(o.precision)?Math.max(b(o.modelValue),M):(M>o.precision,o.precision)}),f=P(()=>o.controls&&o.controlsPosition==="right"),p=Vn(),v=ms(),m=P(()=>{if(l.userInput!==null)return l.userInput;let M=l.currentValue;if(Yt(M))return"";if(Ve(M)){if(Number.isNaN(M))return"";In(o.precision)||(M=M.toFixed(o.precision))}return M}),y=(M,L)=>{if(In(L)&&(L=h.value),L===0)return Math.round(M);let Z=String(M);const B=Z.indexOf(".");if(B===-1||!Z.replace(".","").split("")[B+L])return M;const me=Z.length;return Z.charAt(me-1)==="5"&&(Z=`${Z.slice(0,Math.max(0,me-1))}6`),Number.parseFloat(Number(Z).toFixed(L))},b=M=>{if(Yt(M))return 0;const L=M.toString(),Z=L.indexOf(".");let B=0;return Z!==-1&&(B=L.length-Z-1),B},S=(M,L=1)=>Ve(M)?y(M+o.step*L):l.currentValue,x=()=>{if(v.value||u.value)return;const M=o.modelValue||0,L=S(M);_(L)},E=()=>{if(v.value||c.value)return;const M=o.modelValue||0,L=S(M,-1);_(L)},k=(M,L)=>{const{max:Z,min:B,step:G,precision:J,stepStrictly:me,valueOnClear:Se}=o;let _e=Number(M);if(Yt(M)||Number.isNaN(_e))return null;if(M===""){if(Se===null)return null;_e=Ne(Se)?{min:B,max:Z}[Se]:Se}return me&&(_e=y(Math.round(_e/G)*G,J)),In(J)||(_e=y(_e,J)),(_e>Z||_eZ?Z:B,L&&n("update:modelValue",_e)),_e},_=M=>{var L;const Z=l.currentValue,B=k(M);Z!==B&&(l.userInput=null,n("update:modelValue",B),n("input",B),n("change",B,Z),o.validateEvent&&((L=a==null?void 0:a.validate)==null||L.call(a,"change").catch(G=>void 0)),l.currentValue=B)},T=M=>l.userInput=M,O=M=>{const L=M!==""?Number(M):"";(Ve(L)&&!Number.isNaN(L)||M==="")&&_(L),l.userInput=null},R=()=>{var M,L;(L=(M=i.value)==null?void 0:M.focus)==null||L.call(M)},q=()=>{var M,L;(L=(M=i.value)==null?void 0:M.blur)==null||L.call(M)},X=M=>{n("focus",M)},U=M=>{var L;n("blur",M),o.validateEvent&&((L=a==null?void 0:a.validate)==null||L.call(a,"blur").catch(Z=>void 0))};return ue(()=>o.modelValue,M=>{l.currentValue=k(M,!0),l.userInput=null},{immediate:!0}),We(()=>{var M;const{min:L,max:Z,modelValue:B}=o,G=(M=i.value)==null?void 0:M.input;if(G.setAttribute("role","spinbutton"),Number.isFinite(Z)?G.setAttribute("aria-valuemax",String(Z)):G.removeAttribute("aria-valuemax"),Number.isFinite(L)?G.setAttribute("aria-valuemin",String(L)):G.removeAttribute("aria-valuemin"),G.setAttribute("aria-valuenow",String(l.currentValue)),G.setAttribute("aria-disabled",String(v.value)),!Ve(B)&&B!=null){let J=Number(B);Number.isNaN(J)&&(J=null),n("update:modelValue",J)}}),nr(()=>{var M;const L=(M=i.value)==null?void 0:M.input;L==null||L.setAttribute("aria-valuenow",`${l.currentValue}`)}),t({focus:R,blur:q}),(M,L)=>(N(),te("div",{class:ee([d(s).b(),d(s).m(d(p)),d(s).is("disabled",d(v)),d(s).is("without-controls",!M.controls),d(s).is("controls-right",d(f))]),onDragstart:L[0]||(L[0]=zt(()=>{},["prevent"]))},[M.controls?at((N(),te("span",{key:0,role:"button","aria-label":d(r)("el.inputNumber.decrease"),class:ee([d(s).e("decrease"),d(s).is("disabled",d(c))]),onKeydown:Mn(E,["enter"])},[fe(d(bt),null,{default:ge(()=>[d(f)?(N(),ie(d(bu),{key:0})):(N(),ie(d(fg),{key:1}))]),_:1})],42,ew)),[[d(Fa),E]]):de("v-if",!0),M.controls?at((N(),te("span",{key:1,role:"button","aria-label":d(r)("el.inputNumber.increase"),class:ee([d(s).e("increase"),d(s).is("disabled",d(u))]),onKeydown:Mn(x,["enter"])},[fe(d(bt),null,{default:ge(()=>[d(f)?(N(),ie(d(Cv),{key:0})):(N(),ie(d(gg),{key:1}))]),_:1})],42,tw)),[[d(Fa),x]]):de("v-if",!0),fe(d(Gi),{id:M.id,ref_key:"input",ref:i,type:"number",step:M.step,"model-value":d(m),placeholder:M.placeholder,disabled:d(v),size:d(p),max:M.max,min:M.min,name:M.name,label:M.label,"validate-event":!1,onKeydown:[Mn(zt(x,["prevent"]),["up"]),Mn(zt(E,["prevent"]),["down"])],onBlur:U,onFocus:X,onInput:T,onChange:O},null,8,["id","step","model-value","placeholder","disabled","size","max","min","name","label","onKeydown"])],34))}});var rw=Ie(ow,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);const sw=Pt(rw),iw=De({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},href:{type:String,default:""},icon:{type:uo,default:""}}),lw={click:e=>e instanceof MouseEvent},aw=["href"],cw={name:"ElLink"},uw=we({...cw,props:iw,emits:lw,setup(e,{emit:t}){const n=e,o=ze("link");function r(s){n.disabled||t("click",s)}return(s,i)=>(N(),te("a",{class:ee([d(o).b(),d(o).m(s.type),d(o).is("disabled",s.disabled),d(o).is("underline",s.underline&&!s.disabled)]),href:s.disabled||!s.href?void 0:s.href,onClick:r},[s.icon?(N(),ie(d(bt),{key:0},{default:ge(()=>[(N(),ie(nt(s.icon)))]),_:1})):de("v-if",!0),s.$slots.default?(N(),te("span",{key:1,class:ee(d(o).e("inner"))},[Be(s.$slots,"default")],2)):de("v-if",!0),s.$slots.icon?Be(s.$slots,"icon",{key:2}):de("v-if",!0)],10,aw))}});var fw=Ie(uw,[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]);const dw=Pt(fw);var Ha=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function pw(e,t){return!!(e===t||Ha(e)&&Ha(t))}function hw(e,t){if(e.length!==t.length)return!1;for(var n=0;n{const t=Qe().proxy.$props;return P(()=>{const n=(o,r,s)=>({});return t.perfMode?hs(n):mw(n)})},Va="itemRendered",ja="scroll",af="forward",cf="backward",fi="auto",gw="smart",bw="start",Ka="center",yw="end",go="horizontal",il="vertical",ww="ltr",Pr="rtl",uf="negative",_w="positive-ascending",ff="positive-descending",Cw={[go]:"left",[il]:"top"},kw=20,Ew={[go]:"deltaX",[il]:"deltaY"},Sw=({atEndEdge:e,atStartEdge:t,layout:n},o)=>{let r,s=0;const i=a=>a<0&&t.value||a>0&&e.value;return{hasReachedEdge:i,onWheel:a=>{Eu(r);const c=a[Ew[n.value]];i(s)&&i(s+c)||(s+=c,Og()||a.preventDefault(),r=ku(()=>{o(s),s=0}))}}},di=It({type:Ee([Number,Function]),required:!0}),pi=It({type:Number}),hi=It({type:Number,default:2}),xw=It({type:String,values:["ltr","rtl"],default:"ltr"}),mi=It({type:Number,default:0}),Wr=It({type:Number,required:!0}),df=It({type:String,values:["horizontal","vertical"],default:il}),pf=De({className:{type:String,default:""},containerElement:{type:Ee([String,Object]),default:"div"},data:{type:Ee(Array),default:()=>Pn([])},direction:xw,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:Ee([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),Tw=De({cache:hi,estimatedItemSize:pi,layout:df,initScrollOffset:mi,total:Wr,itemSize:di,...pf}),vi={type:Number,default:6},hf={type:Number,default:0},mf={type:Number,default:2};De({columnCache:hi,columnWidth:di,estimatedColumnWidth:pi,estimatedRowHeight:pi,initScrollLeft:mi,initScrollTop:mi,itemKey:{type:Ee(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:hi,rowHeight:di,totalColumn:Wr,totalRow:Wr,hScrollbarSize:vi,vScrollbarSize:vi,scrollbarStartGap:hf,scrollbarEndGap:mf,...pf});const $w=De({alwaysOn:Boolean,class:String,layout:df,total:Wr,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:vi,startGap:hf,endGap:mf,visible:Boolean}),Rs=(e,t)=>ee===ww||e===Pr||e===go;let Xn=null;function Ua(e=!1){if(Xn===null||e){const t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";const o=document.createElement("div"),r=o.style;return r.width="100px",r.height="100px",t.appendChild(o),document.body.appendChild(t),t.scrollLeft>0?Xn=ff:(t.scrollLeft=1,t.scrollLeft===0?Xn=uf:Xn=_w),document.body.removeChild(t),Xn}return Xn}function Ow({move:e,size:t,bar:n},o){const r={},s=`translate${n.axis}(${e}px)`;return r[n.size]=t,r.transform=s,r.msTransform=s,r.webkitTransform=s,o==="horizontal"?r.height="100%":r.width="100%",r}const Nw=we({name:"ElVirtualScrollBar",props:$w,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=P(()=>e.startGap+e.endGap),o=ze("virtual-scrollbar"),r=ze("scrollbar"),s=H(),i=H();let l=null,a=null;const c=Jt({isDragging:!1,traveled:0}),u=P(()=>Iu[e.layout]),h=P(()=>e.clientSize-d(n)),f=P(()=>({position:"absolute",width:`${go===e.layout?h.value:e.scrollbarSize}px`,height:`${go===e.layout?e.scrollbarSize:h.value}px`,[Cw[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),p=P(()=>{const _=e.ratio,T=e.clientSize;if(_>=100)return Number.POSITIVE_INFINITY;if(_>=50)return _*T/100;const O=T/3;return Math.floor(Math.min(Math.max(_*T,kw),O))}),v=P(()=>{if(!Number.isFinite(p.value))return{display:"none"};const _=`${p.value}px`;return Ow({bar:u.value,size:_,move:c.traveled},e.layout)}),m=P(()=>Math.floor(e.clientSize-p.value-d(n))),y=()=>{window.addEventListener("mousemove",E),window.addEventListener("mouseup",x);const _=d(i);!_||(a=document.onselectstart,document.onselectstart=()=>!1,_.addEventListener("touchmove",E),_.addEventListener("touchend",x))},b=()=>{window.removeEventListener("mousemove",E),window.removeEventListener("mouseup",x),document.onselectstart=a,a=null;const _=d(i);!_||(_.removeEventListener("touchmove",E),_.removeEventListener("touchend",x))},S=_=>{_.stopImmediatePropagation(),!(_.ctrlKey||[1,2].includes(_.button))&&(c.isDragging=!0,c[u.value.axis]=_.currentTarget[u.value.offset]-(_[u.value.client]-_.currentTarget.getBoundingClientRect()[u.value.direction]),t("start-move"),y())},x=()=>{c.isDragging=!1,c[u.value.axis]=0,t("stop-move"),b()},E=_=>{const{isDragging:T}=c;if(!T||!i.value||!s.value)return;const O=c[u.value.axis];if(!O)return;Eu(l);const R=(s.value.getBoundingClientRect()[u.value.direction]-_[u.value.client])*-1,q=i.value[u.value.offset]-O,X=R-q;l=ku(()=>{c.traveled=Math.max(e.startGap,Math.min(X,m.value)),t("scroll",X,m.value)})},k=_=>{const T=Math.abs(_.target.getBoundingClientRect()[u.value.direction]-_[u.value.client]),O=i.value[u.value.offset]/2,R=T-O;c.traveled=Math.max(0,Math.min(R,m.value)),t("scroll",R,m.value)};return ue(()=>e.scrollFrom,_=>{c.isDragging||(c.traveled=Math.ceil(_*m.value))}),Mt(()=>{b()}),()=>pn("div",{role:"presentation",ref:s,class:[o.b(),e.class,(e.alwaysOn||c.isDragging)&&"always-on"],style:f.value,onMousedown:zt(k,["stop","prevent"]),onTouchstartPrevent:S},pn("div",{ref:i,class:r.e("thumb"),style:v.value,onMousedown:S},[]))}}),Mw=({name:e,getOffset:t,getItemSize:n,getItemOffset:o,getEstimatedTotalSize:r,getStartIndexForOffset:s,getStopIndexForStartIndex:i,initCache:l,clearCache:a,validateProps:c})=>we({name:e!=null?e:"ElVirtualList",props:Tw,emits:[Va,ja],setup(u,{emit:h,expose:f}){c(u);const p=Qe(),v=ze("vl"),m=H(l(u,p)),y=vw(),b=H(),S=H(),x=H(),E=H({isScrolling:!1,scrollDir:"forward",scrollOffset:Ve(u.initScrollOffset)?u.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:u.scrollbarAlwaysOn}),k=P(()=>{const{total:ne,cache:ve}=u,{isScrolling:pe,scrollDir:j,scrollOffset:I}=d(E);if(ne===0)return[0,0,0,0];const Q=s(u,I,d(m)),le=i(u,Q,I,d(m)),Ce=!pe||j===cf?Math.max(1,ve):1,Me=!pe||j===af?Math.max(1,ve):1;return[Math.max(0,Q-Ce),Math.max(0,Math.min(ne-1,le+Me)),Q,le]}),_=P(()=>r(u,d(m))),T=P(()=>gi(u.layout)),O=P(()=>[{position:"relative",[`overflow-${T.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:u.direction,height:Ve(u.height)?`${u.height}px`:u.height,width:Ve(u.width)?`${u.width}px`:u.width},u.style]),R=P(()=>{const ne=d(_),ve=d(T);return{height:ve?"100%":`${ne}px`,pointerEvents:d(E).isScrolling?"none":void 0,width:ve?`${ne}px`:"100%"}}),q=P(()=>T.value?u.width:u.height),{onWheel:X}=Sw({atStartEdge:P(()=>E.value.scrollOffset<=0),atEndEdge:P(()=>E.value.scrollOffset>=_.value),layout:P(()=>u.layout)},ne=>{var ve,pe;(pe=(ve=x.value).onMouseUp)==null||pe.call(ve),G(Math.min(E.value.scrollOffset+ne,_.value-q.value))}),U=()=>{const{total:ne}=u;if(ne>0){const[I,Q,le,Ce]=d(k);h(Va,I,Q,le,Ce)}const{scrollDir:ve,scrollOffset:pe,updateRequested:j}=d(E);h(ja,ve,pe,j)},M=ne=>{const{clientHeight:ve,scrollHeight:pe,scrollTop:j}=ne.currentTarget,I=d(E);if(I.scrollOffset===j)return;const Q=Math.max(0,Math.min(j,pe-ve));E.value={...I,isScrolling:!0,scrollDir:Rs(I.scrollOffset,Q),scrollOffset:Q,updateRequested:!1},Fe(Se)},L=ne=>{const{clientWidth:ve,scrollLeft:pe,scrollWidth:j}=ne.currentTarget,I=d(E);if(I.scrollOffset===pe)return;const{direction:Q}=u;let le=pe;if(Q===Pr)switch(Ua()){case uf:{le=-pe;break}case ff:{le=j-ve-pe;break}}le=Math.max(0,Math.min(le,j-ve)),E.value={...I,isScrolling:!0,scrollDir:Rs(I.scrollOffset,le),scrollOffset:le,updateRequested:!1},Fe(Se)},Z=ne=>{d(T)?L(ne):M(ne),U()},B=(ne,ve)=>{const pe=(_.value-q.value)/ve*ne;G(Math.min(_.value-q.value,pe))},G=ne=>{ne=Math.max(ne,0),ne!==d(E).scrollOffset&&(E.value={...d(E),scrollOffset:ne,scrollDir:Rs(d(E).scrollOffset,ne),updateRequested:!0},Fe(Se))},J=(ne,ve=fi)=>{const{scrollOffset:pe}=d(E);ne=Math.max(0,Math.min(ne,u.total-1)),G(t(u,ne,ve,pe,d(m)))},me=ne=>{const{direction:ve,itemSize:pe,layout:j}=u,I=y.value(a&&pe,a&&j,a&&ve);let Q;if(ye(I,String(ne)))Q=I[ne];else{const le=o(u,ne,d(m)),Ce=n(u,ne,d(m)),Me=d(T),Oe=ve===Pr,g=Me?le:0;I[ne]=Q={position:"absolute",left:Oe?void 0:`${g}px`,right:Oe?`${g}px`:void 0,top:Me?0:`${le}px`,height:Me?"100%":`${Ce}px`,width:Me?`${Ce}px`:"100%"}}return Q},Se=()=>{E.value.isScrolling=!1,Fe(()=>{y.value(-1,null,null)})},_e=()=>{const ne=b.value;ne&&(ne.scrollTop=0)};We(()=>{if(!Ue)return;const{initScrollOffset:ne}=u,ve=d(b);Ve(ne)&&ve&&(d(T)?ve.scrollLeft=ne:ve.scrollTop=ne),U()}),nr(()=>{const{direction:ne,layout:ve}=u,{scrollOffset:pe,updateRequested:j}=d(E),I=d(b);if(j&&I)if(ve===go)if(ne===Pr)switch(Ua()){case"negative":{I.scrollLeft=-pe;break}case"positive-ascending":{I.scrollLeft=pe;break}default:{const{clientWidth:Q,scrollWidth:le}=I;I.scrollLeft=le-Q-pe;break}}else I.scrollLeft=pe;else I.scrollTop=pe});const Te={ns:v,clientSize:q,estimatedTotalSize:_,windowStyle:O,windowRef:b,innerRef:S,innerStyle:R,itemsToRender:k,scrollbarRef:x,states:E,getItemStyle:me,onScroll:Z,onScrollbarScroll:B,onWheel:X,scrollTo:G,scrollToItem:J,resetScrollTop:_e};return f({windowRef:b,innerRef:S,getItemStyleCache:y,scrollTo:G,scrollToItem:J,resetScrollTop:_e,states:E}),Te},render(u){var h;const{$slots:f,className:p,clientSize:v,containerElement:m,data:y,getItemStyle:b,innerElement:S,itemsToRender:x,innerStyle:E,layout:k,total:_,onScroll:T,onScrollbarScroll:O,onWheel:R,states:q,useIsScrolling:X,windowStyle:U,ns:M}=u,[L,Z]=x,B=nt(m),G=nt(S),J=[];if(_>0)for(let Te=L;Te<=Z;Te++)J.push((h=f.default)==null?void 0:h.call(f,{data:y,key:Te,index:Te,isScrolling:X?q.isScrolling:void 0,style:b(Te)}));const me=[pn(G,{style:E,ref:"innerRef"},Ne(G)?J:{default:()=>J})],Se=pn(Nw,{ref:"scrollbarRef",clientSize:v,layout:k,onScroll:O,ratio:v*100/this.estimatedTotalSize,scrollFrom:q.scrollOffset/(this.estimatedTotalSize-v),total:_}),_e=pn(B,{class:[M.e("window"),p],style:U,onScroll:T,onWheel:R,ref:"windowRef",key:0},Ne(B)?[me]:{default:()=>[me]});return pn("div",{key:0,class:[M.e("wrapper"),q.scrollbarAlwaysOn?"always-on":""]},[_e,Se])}}),Aw=Mw({name:"ElFixedSizeList",getItemOffset:({itemSize:e},t)=>t*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:t})=>t*e,getOffset:({height:e,total:t,itemSize:n,layout:o,width:r},s,i,l)=>{const a=gi(o)?r:e,c=Math.max(0,t*n-a),u=Math.min(c,s*n),h=Math.max(0,(s+1)*n-a);switch(i===gw&&(l>=h-a&&l<=u+a?i=fi:i=Ka),i){case bw:return u;case yw:return h;case Ka:{const f=Math.round(h+(u-h)/2);return fc+Math.floor(a/2)?c:f}case fi:default:return l>=h&&l<=u?l:lMath.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:o,width:r},s,i)=>{const l=s*n,a=gi(o)?r:e,c=Math.ceil((a+i-l)/n);return Math.max(0,Math.min(t-1,s+c-1))},initCache(){},clearCache:!0,validateProps(){}}),ll=Symbol(),Iw={key:-1,level:-1,data:{}};var No=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e))(No||{}),bi=(e=>(e.ADD="add",e.DELETE="delete",e))(bi||{});const Pw=De({data:{type:Ee(Array),default:()=>Pn([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:Ee(Object),default:()=>Pn({children:"children",label:"label",disabled:"disabled",value:"id"})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:Ee(Array),default:()=>Pn([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:Ee(Array),default:()=>Pn([])},indent:{type:Number,default:16},icon:{type:uo},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:Ee([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:Ee(Function)},perfMode:{type:Boolean,default:!0}}),Lw=De({node:{type:Ee(Object),default:()=>Pn(Iw)},expanded:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},current:{type:Boolean,default:!1},hiddenExpandIcon:{type:Boolean,default:!1}}),Fw=De({node:{type:Ee(Object),required:!0}}),vf="node-click",gf="node-expand",bf="node-collapse",yf="current-change",wf="check",_f="check-change",Cf="node-contextmenu",Rw={[vf]:(e,t,n)=>e&&t&&n,[gf]:(e,t)=>e&&t,[bf]:(e,t)=>e&&t,[yf]:(e,t)=>e&&t,[wf]:(e,t)=>e&&t,[_f]:(e,t)=>e&&typeof t=="boolean",[Cf]:(e,t,n)=>e&&t&&n},Bw={click:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&typeof t=="boolean"};function zw(e,t){const n=H(new Set),o=H(new Set),{emit:r}=Qe();ue(()=>t.value,()=>Fe(()=>{S(e.defaultCheckedKeys)}),{immediate:!0});const s=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:x,maxLevel:E}=t.value,k=n.value,_=new Set;for(let T=E-1;T>=1;--T){const O=x.get(T);!O||O.forEach(R=>{const q=R.children;if(q){let X=!0,U=!1;for(const M of q){const L=M.key;if(k.has(L))U=!0;else if(_.has(L)){X=!1,U=!0;break}else X=!1}X?k.add(R.key):U?(_.add(R.key),k.delete(R.key)):(k.delete(R.key),_.delete(R.key))}})}o.value=_},i=x=>n.value.has(x.key),l=x=>o.value.has(x.key),a=(x,E,k=!0)=>{const _=n.value,T=(O,R)=>{_[R?bi.ADD:bi.DELETE](O.key);const q=O.children;!e.checkStrictly&&q&&q.forEach(X=>{X.disabled||T(X,R)})};T(x,E),s(),k&&c(x,E)},c=(x,E)=>{const{checkedNodes:k,checkedKeys:_}=v(),{halfCheckedNodes:T,halfCheckedKeys:O}=m();r(wf,x.data,{checkedKeys:_,checkedNodes:k,halfCheckedKeys:O,halfCheckedNodes:T}),r(_f,x.data,E)};function u(x=!1){return v(x).checkedKeys}function h(x=!1){return v(x).checkedNodes}function f(){return m().halfCheckedKeys}function p(){return m().halfCheckedNodes}function v(x=!1){const E=[],k=[];if((t==null?void 0:t.value)&&e.showCheckbox){const{treeNodeMap:_}=t.value;n.value.forEach(T=>{const O=_.get(T);O&&(!x||x&&O.isLeaf)&&(k.push(T),E.push(O.data))})}return{checkedKeys:k,checkedNodes:E}}function m(){const x=[],E=[];if((t==null?void 0:t.value)&&e.showCheckbox){const{treeNodeMap:k}=t.value;o.value.forEach(_=>{const T=k.get(_);T&&(E.push(_),x.push(T.data))})}return{halfCheckedNodes:x,halfCheckedKeys:E}}function y(x){n.value.clear(),o.value.clear(),S(x)}function b(x,E){if((t==null?void 0:t.value)&&e.showCheckbox){const k=t.value.treeNodeMap.get(x);k&&a(k,E,!1)}}function S(x){if(t!=null&&t.value){const{treeNodeMap:E}=t.value;if(e.showCheckbox&&E&&x)for(const k of x){const _=E.get(k);_&&!i(_)&&a(_,!0,!1)}}}return{updateCheckedKeys:s,toggleCheckbox:a,isChecked:i,isIndeterminate:l,getCheckedKeys:u,getCheckedNodes:h,getHalfCheckedKeys:f,getHalfCheckedNodes:p,setChecked:b,setCheckedKeys:y}}function Dw(e,t){const n=H(new Set([])),o=H(new Set([])),r=P(()=>he(e.filterMethod));function s(l){var a;if(!r.value)return;const c=new Set,u=o.value,h=n.value,f=[],p=((a=t.value)==null?void 0:a.treeNodes)||[],v=e.filterMethod;h.clear();function m(y){y.forEach(b=>{f.push(b),v!=null&&v(l,b.data)?f.forEach(x=>{c.add(x.key)}):b.isLeaf&&h.add(b.key);const S=b.children;if(S&&m(S),!b.isLeaf){if(!c.has(b.key))h.add(b.key);else if(S){let x=!0;for(const E of S)if(!h.has(E.key)){x=!1;break}x?u.add(b.key):u.delete(b.key)}}f.pop()})}return m(p),c}function i(l){return o.value.has(l.key)}return{hiddenExpandIconKeySet:o,hiddenNodeKeySet:n,doFilter:s,isForceHiddenExpandIcon:i}}function Hw(e,t){const n=H(new Set(e.defaultExpandedKeys)),o=H(),r=oo();ue(()=>e.currentNodeKey,j=>{o.value=j},{immediate:!0}),ue(()=>e.data,j=>{pe(j)},{immediate:!0});const{isIndeterminate:s,isChecked:i,toggleCheckbox:l,getCheckedKeys:a,getCheckedNodes:c,getHalfCheckedKeys:u,getHalfCheckedNodes:h,setChecked:f,setCheckedKeys:p}=zw(e,r),{doFilter:v,hiddenNodeKeySet:m,isForceHiddenExpandIcon:y}=Dw(e,r),b=P(()=>{var j;return((j=e.props)==null?void 0:j.value)||No.KEY}),S=P(()=>{var j;return((j=e.props)==null?void 0:j.children)||No.CHILDREN}),x=P(()=>{var j;return((j=e.props)==null?void 0:j.disabled)||No.DISABLED}),E=P(()=>{var j;return((j=e.props)==null?void 0:j.label)||No.LABEL}),k=P(()=>{const j=n.value,I=m.value,Q=[],le=r.value&&r.value.treeNodes||[];function Ce(){const Me=[];for(let Oe=le.length-1;Oe>=0;--Oe)Me.push(le[Oe]);for(;Me.length;){const Oe=Me.pop();if(!!Oe&&(I.has(Oe.key)||Q.push(Oe),j.has(Oe.key))){const g=Oe.children;if(g){const w=g.length;for(let $=w-1;$>=0;--$)Me.push(g[$])}}}}return Ce(),Q}),_=P(()=>k.value.length>0);function T(j){const I=new Map,Q=new Map;let le=1;function Ce(Oe,g=1,w=void 0){var $;const F=[];for(const A of Oe){const V=q(A),Y={level:g,key:V,data:A};Y.label=U(A),Y.parent=w;const z=R(A);Y.disabled=X(A),Y.isLeaf=!z||z.length===0,z&&z.length&&(Y.children=Ce(z,g+1,Y)),F.push(Y),I.set(V,Y),Q.has(g)||Q.set(g,[]),($=Q.get(g))==null||$.push(Y)}return g>le&&(le=g),F}const Me=Ce(j);return{treeNodeMap:I,levelTreeNodeMap:Q,maxLevel:le,treeNodes:Me}}function O(j){const I=v(j);I&&(n.value=I)}function R(j){return j[S.value]}function q(j){return j?j[b.value]:""}function X(j){return j[x.value]}function U(j){return j[E.value]}function M(j){n.value.has(j.key)?J(j):G(j)}function L(j,I){t(vf,j.data,j,I),Z(j),e.expandOnClickNode&&M(j),e.showCheckbox&&e.checkOnClickNode&&!j.disabled&&l(j,!i(j),!0)}function Z(j){_e(j)||(o.value=j.key,t(yf,j.data,j))}function B(j,I){l(j,I)}function G(j){const I=n.value;if((r==null?void 0:r.value)&&e.accordion){const{treeNodeMap:Q}=r.value;I.forEach(le=>{const Ce=Q.get(le);Ce&&Ce.level===Ce.level&&I.delete(le)})}I.add(j.key),t(gf,j.data,j)}function J(j){n.value.delete(j.key),t(bf,j.data,j)}function me(j){return n.value.has(j.key)}function Se(j){return!!j.disabled}function _e(j){const I=o.value;return!!I&&I===j.key}function Te(){var j,I;if(!!o.value)return(I=(j=r==null?void 0:r.value)==null?void 0:j.treeNodeMap.get(o.value))==null?void 0:I.data}function ne(){return o.value}function ve(j){o.value=j}function pe(j){Fe(()=>r.value=T(j))}return{tree:r,flattenTree:k,isNotEmpty:_,getKey:q,getChildren:R,toggleExpand:M,toggleCheckbox:l,isExpanded:me,isChecked:i,isIndeterminate:s,isDisabled:Se,isCurrent:_e,isForceHiddenExpandIcon:y,handleNodeClick:L,handleNodeCheck:B,getCurrentNode:Te,getCurrentKey:ne,setCurrentKey:ve,getCheckedKeys:a,getCheckedNodes:c,getHalfCheckedKeys:u,getHalfCheckedNodes:h,setChecked:f,setCheckedKeys:p,filter:O,setData:pe}}var Vw=we({name:"ElTreeNodeContent",props:Fw,setup(e){const t=Re(ll),n=ze("tree");return()=>{const o=e.node,{data:r}=o;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:o,data:r}):pn("span",{class:n.be("node","label")},[o==null?void 0:o.label])}}});const jw="caret-right",Kw=we({name:"ElTreeNode",components:{ElIcon:bt,CaretRight:$v,ElCheckbox:cr,ElNodeContent:Vw},props:Lw,emits:Bw,setup(e,{emit:t}){const n=Re(ll),o=ze("tree"),r=P(()=>{var u;return(u=n==null?void 0:n.props.indent)!=null?u:16}),s=P(()=>{var u;return(u=n==null?void 0:n.props.icon)!=null?u:jw});return{ns:o,indent:r,icon:s,handleClick:u=>{t("click",e.node,u)},handleExpandIconClick:()=>{t("toggle",e.node)},handleCheckChange:u=>{t("check",e.node,u)},handleContextMenu:u=>{var h,f,p,v;(p=(f=(h=n==null?void 0:n.instance)==null?void 0:h.vnode)==null?void 0:f.props)!=null&&p.onNodeContextmenu&&(u.stopPropagation(),u.preventDefault()),n==null||n.ctx.emit(Cf,u,(v=e.node)==null?void 0:v.data,e.node)}}}}),Uw=["aria-expanded","aria-disabled","aria-checked","data-key"];function Ww(e,t,n,o,r,s){var i,l,a;const c=je("el-icon"),u=je("el-checkbox"),h=je("el-node-content");return N(),te("div",{ref:"node$",class:ee([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.current),e.ns.is("focusable",!e.disabled),e.ns.is("checked",!e.disabled&&e.checked)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.disabled,"aria-checked":e.checked,"data-key":(i=e.node)==null?void 0:i.key,onClick:t[1]||(t[1]=zt((...f)=>e.handleClick&&e.handleClick(...f),["stop"])),onContextmenu:t[2]||(t[2]=(...f)=>e.handleContextMenu&&e.handleContextMenu(...f))},[re("div",{class:ee(e.ns.be("node","content")),style:Ke({paddingLeft:`${(e.node.level-1)*e.indent}px`})},[e.icon?(N(),ie(c,{key:0,class:ee([e.ns.is("leaf",!!((l=e.node)!=null&&l.isLeaf)),e.ns.is("hidden",e.hiddenExpandIcon),{expanded:!((a=e.node)!=null&&a.isLeaf)&&e.expanded},e.ns.be("node","expand-icon")]),onClick:zt(e.handleExpandIconClick,["stop"])},{default:ge(()=>[(N(),ie(nt(e.icon)))]),_:1},8,["class","onClick"])):de("v-if",!0),e.showCheckbox?(N(),ie(u,{key:1,"model-value":e.checked,indeterminate:e.indeterminate,disabled:e.disabled,onChange:e.handleCheckChange,onClick:t[0]||(t[0]=zt(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled","onChange"])):de("v-if",!0),fe(h,{node:e.node},null,8,["node"])],6)],42,Uw)}var qw=Ie(Kw,[["render",Ww],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree-node.vue"]]);const Yw=we({name:"ElTreeV2",components:{ElTreeNode:qw,FixedSizeList:Aw},props:Pw,emits:Rw,setup(e,t){mt(ll,{ctx:t,props:e,instance:Qe()}),mt(Hn,void 0);const{t:n}=Yi(),o=ze("tree"),{flattenTree:r,isNotEmpty:s,toggleExpand:i,isExpanded:l,isIndeterminate:a,isChecked:c,isDisabled:u,isCurrent:h,isForceHiddenExpandIcon:f,toggleCheckbox:p,handleNodeClick:v,handleNodeCheck:m,getCurrentNode:y,getCurrentKey:b,setCurrentKey:S,getCheckedKeys:x,getCheckedNodes:E,getHalfCheckedKeys:k,getHalfCheckedNodes:_,setChecked:T,setCheckedKeys:O,filter:R,setData:q}=Hw(e,t.emit);return t.expose({getCurrentNode:y,getCurrentKey:b,setCurrentKey:S,getCheckedKeys:x,getCheckedNodes:E,getHalfCheckedKeys:k,getHalfCheckedNodes:_,setChecked:T,setCheckedKeys:O,filter:R,setData:q}),{t:n,ns:o,flattenTree:r,itemSize:26,isNotEmpty:s,toggleExpand:i,toggleCheckbox:p,isExpanded:l,isIndeterminate:a,isChecked:c,isDisabled:u,isCurrent:h,isForceHiddenExpandIcon:f,handleNodeClick:v,handleNodeCheck:m}}});function Gw(e,t,n,o,r,s){var i;const l=je("el-tree-node"),a=je("fixed-size-list");return N(),te("div",{class:ee([e.ns.b(),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[e.isNotEmpty?(N(),ie(a,{key:0,"class-name":e.ns.b("virtual-list"),data:e.flattenTree,total:e.flattenTree.length,height:e.height,"item-size":e.itemSize,"perf-mode":e.perfMode},{default:ge(({data:c,index:u,style:h})=>[(N(),ie(l,{key:c[u].key,style:Ke(h),node:c[u],expanded:e.isExpanded(c[u]),"show-checkbox":e.showCheckbox,checked:e.isChecked(c[u]),indeterminate:e.isIndeterminate(c[u]),disabled:e.isDisabled(c[u]),current:e.isCurrent(c[u]),"hidden-expand-icon":e.isForceHiddenExpandIcon(c[u]),onClick:e.handleNodeClick,onToggle:e.toggleExpand,onCheck:e.handleNodeCheck},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode"])):(N(),te("div",{key:1,class:ee(e.ns.e("empty-block"))},[re("span",{class:ee(e.ns.e("empty-text"))},Ye((i=e.emptyText)!=null?i:e.t("el.tree.emptyText")),3)],2))],2)}var Xw=Ie(Yw,[["render",Gw],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree.vue"]]);const Zw=Pt(Xw);const Jw=re("div",{style:{width:"100%",height:"30px","background-color":"#26282f",display:"flex","align-items":"center","justify-content":"center",color:"white"},class:"modal-drag"}," Profiler ",-1),Qw={style:{width:"100%"}},e_={style:{flex:"1","text-align":"right"}},kf=we({__name:"ProfilerPanel",props:{show:Boolean},setup(e){let t=H([]);function n(){if(!cc||!cc.profiler||!cc.profiler._stats)return;const r=cc.profiler._stats;t.value.forEach(s=>{const i=r[s.key];s.desc=i.desc,i.isInteger?s.value=i.counter._value|0:s.value=i.counter._value.toFixed(2)}),setTimeout(n,1e3)}function o(){t.value=[{key:"fps",desc:"",value:0},{key:"draws",desc:"",value:0},{key:"frame",desc:"",value:0},{key:"instances",desc:"",value:0},{key:"tricount",desc:"",value:0},{key:"logic",desc:"",value:0},{key:"physics",desc:"",value:0},{key:"render",desc:"",value:0},{key:"textureMemory",desc:"",value:0},{key:"bufferMemory",desc:"",value:0}],n()}return We(()=>{o()}),(r,s)=>(N(),te($e,null,[Jw,re("div",Qw,[(N(!0),te($e,null,yn(d(t),i=>(N(),te("div",{class:"row",key:i.key},[re("span",null,Ye(i.desc),1),re("span",e_,Ye(i.value),1)]))),128))])],64))}});const t_={class:"row"},n_={style:{flex:"1"}},Ef=we({__name:"PropItem",props:{model:null,propName:null,propKey:null,updateKey:null},setup(e){const t=e;function n(){const r=t.model[t.propKey],s=typeof r;return s==="object"&&r.__classname__?r.__classname__:s}class o{static get color(){const s=t.model[t.propKey],i=s.a.toString(16);return`#${s.toHEX()}${i.length===1?"0"+i:i}`}static set color(s){t.model[t.propKey]=new cc.Color().fromHEX(s)}}return(r,s)=>{const i=sw,l=Gi,a=cr,c=Z1;return N(),te("div",t_,[re("span",n_,Ye(e.propName),1),n()=="number"?(N(),ie(i,{key:0,modelValue:e.model[e.propKey],"onUpdate:modelValue":s[0]||(s[0]=u=>e.model[e.propKey]=u),precision:2,size:"small","controls-position":"right",style:{flex:"1"}},null,8,["modelValue"])):n()=="string"?(N(),ie(l,{key:1,size:"small",modelValue:e.model[e.propKey],"onUpdate:modelValue":s[1]||(s[1]=u=>e.model[e.propKey]=u),style:{flex:"1"}},null,8,["modelValue"])):n()=="boolean"?(N(),ie(a,{key:2,modelValue:e.model[e.propKey],"onUpdate:modelValue":s[2]||(s[2]=u=>e.model[e.propKey]=u),size:"small",style:{"margin-left":"10px"}},null,8,["modelValue"])):n()=="cc.Color"?(N(),ie(c,{key:3,modelValue:o.color,"onUpdate:modelValue":s[3]||(s[3]=u=>o.color=u),size:"small",style:{flex:"1"},"color-format":"hex","show-alpha":""},null,8,["modelValue"])):de("",!0)])}}});class bo{static checkNodeValid(t){return t&&cc.isValid(t)}static outputToConsole(t){let n=1;for(;window["temp"+n]!==void 0;)n++;window["temp"+n]=t,console.log("temp"+n),console.log(window["temp"+n])}static drawNodeRect(t){let n,o=t.getComponent(cc.UITransformComponent);if(o)n=this.getSelfBoundingBoxToWold(o);else{let f=cc.v3();t.getWorldPosition(f),n=cc.rect(f.x,f.y,0,0)}let r=new cc.Node("Canvas");cc.director.getScene().addChild(r),r.addComponent(cc.Canvas);let i=new cc.Node,l=i.addComponent(cc.GraphicsComponent),a=i.addComponent(cc.UITransformComponent);r.addChild(i);let c=cc.v3(n.center.x,n.center.y,0),u=cc.v3();return r.getComponent(cc.UITransformComponent).convertToNodeSpaceAR(c,u),i.setPosition(u),i.layer=t.layer,n.width===0||n.height===0?(l.circle(0,0,100),l.fillColor=cc.Color.GREEN,l.fill()):(a.width=n.width,a.height=n.height,l.rect(-a.width/2,-a.height/2,a.width,a.height),l.fillColor=new cc.Color().fromHEX("#E91E6390"),l.fill()),setTimeout(()=>{cc.isValid(r)&&r.destroy()},2e3),t}static getComponentName(t){return t.__classname__}static getComponents(t){return t.components.map(n=>({name:n.__classname__,target:n}))}static getSelfBoundingBoxToWold(t){let n=cc.mat4();if(t.node.parent){t.node.parent.getWorldMatrix(n);let o=n,r=cc.mat4();cc.Mat4.fromRTS(r,t.node.getRotation(),t.node.getPosition(),t.node.getScale());const s=t._contentSize.width,i=t._contentSize.height,l=cc.rect(-t._anchorPoint.x*s,-t._anchorPoint.y*i,s,i);return cc.Mat4.multiply(n,o,r),l.transformMat4(n),l}else return t.getBoundingBox()}}const o_={class:"row"},r_=re("span",{class:"header-title",style:{flex:"1"}},"Node",-1),s_=Nt("+"),i_=Nt(">"),l_=we({__name:"CCNode",props:{ccNode:Object,updateKey:Number},setup(e){const t=e;class n{static get ccNode(){return t.ccNode}static get nodeName(){return this.ccNode.name}static set nodeName(r){this.ccNode.name=r}static get x(){return this.ccNode.getPosition().x}static set x(r){const s=this.ccNode.getPosition();this.ccNode.setPosition(r,s.y,s.z)}static get y(){return this.ccNode.getPosition().y}static set y(r){const s=this.ccNode.getPosition();this.ccNode.setPosition(s.x,r,s.z)}static get z(){return this.ccNode.getPosition().z}static set z(r){const s=this.ccNode.getPosition();this.ccNode.setPosition(s.x,s.y,r)}static get scaleX(){return this.ccNode.getScale().x}static set scaleX(r){const s=this.ccNode.getScale();this.ccNode.setScale(r,s.y,s.z)}static get scaleY(){return this.ccNode.getScale().y}static set scaleY(r){const s=this.ccNode.getScale();this.ccNode.setScale(s.x,r,s.z)}static get scaleZ(){return this.ccNode.getScale().z}static set scaleZ(r){const s=this.ccNode.getScale();this.ccNode.setScale(s.x,s.y,r)}}return qn(n,"props",[{name:"Name",key:"nodeName"},{name:"X",key:"x"},{name:"Y",key:"y"},{name:"Z",key:"z"},{name:"Scale X",key:"scaleX"},{name:"Scale Y",key:"scaleY"},{name:"Scale Z",key:"scaleZ"}]),(o,r)=>{const s=cr,i=bs,l=kf;return N(),te($e,null,[re("div",o_,[fe(s,{modelValue:e.ccNode.active,"onUpdate:modelValue":r[0]||(r[0]=a=>e.ccNode.active=a),size:"small",style:{"margin-right":"10px"}},null,8,["modelValue"]),r_,fe(i,{size:"small",onClick:r[1]||(r[1]=a=>d(bo).drawNodeRect(e.ccNode))},{default:ge(()=>[s_]),_:1}),fe(i,{size:"small",onClick:r[2]||(r[2]=a=>d(bo).outputToConsole(e.ccNode))},{default:ge(()=>[i_]),_:1})]),e.ccNode.name!="PROFILER_NODE"?(N(!0),te($e,{key:0},yn(n.props,a=>(N(),ie(Ef,{key:a.key,model:n,"prop-name":a.name,"prop-key":a.key,"update-key":e.updateKey},null,8,["prop-name","prop-key","update-key"]))),128)):de("",!0),e.ccNode.name=="PROFILER_NODE"?(N(),ie(l,{key:1,show:!0})):de("",!0)],64)}}});class a_{static getViewModel(t,n){switch(t){case"cc.UITransform":return new c_(n);case"cc.Label":return new u_;case"cc.Sprite":return new f_;default:return null}}}class c_{constructor(t){qn(this,"componentGetter");qn(this,"props",[{name:"Width",key:"width",custom:!0},{name:"Height",key:"height",custom:!0},{name:"Anchor X",key:"anchorX",custom:!0},{name:"Anchor Y",key:"anchorY",custom:!0}]);this.componentGetter=t}get component(){return this.componentGetter()}get width(){return this.componentGetter().contentSize.width}set width(t){const n=this.component.contentSize;this.component.setContentSize(t,n.height)}get height(){return this.component.contentSize.height}set height(t){const n=this.component.contentSize;this.component.setContentSize(n.width,t)}get anchorX(){return this.component.anchorPoint.x}set anchorX(t){const n=this.component.anchorPoint;this.component.setAnchorPoint(t,n.y)}get anchorY(){return this.component.anchorPoint.y}set anchorY(t){const n=this.component.anchorPoint;this.component.setAnchorPoint(n.x,t)}}class u_{constructor(){qn(this,"props",[{name:"String",key:"string"},{name:"Color",key:"color"},{name:"Font Size",key:"fontSize"},{name:"Line Height",key:"lineHeight"}])}}class f_{constructor(){qn(this,"props",[{name:"Color",key:"color"}])}}const d_={class:"row"},p_={style:{flex:"1"}},h_=Nt(">"),m_=we({__name:"CCComponent",props:{name:String,component:Object,updateKey:Number},setup(e){const t=e,n=a_.getViewModel(t.name,()=>t.component);return(o,r)=>{const s=cr,i=bs;return N(),te($e,null,[re("div",d_,[fe(s,{modelValue:e.component.enabled,"onUpdate:modelValue":r[0]||(r[0]=l=>e.component.enabled=l),size:"small",style:{"margin-right":"10px"}},null,8,["modelValue"]),re("span",p_,Ye(e.name),1),fe(i,{size:"small",onClick:r[1]||(r[1]=l=>d(bo).outputToConsole(e.component))},{default:ge(()=>[h_]),_:1})]),d(n)?(N(!0),te($e,{key:0},yn(d(n).props,l=>(N(),ie(Ef,{key:l.key,model:l.custom?d(n):e.component,"prop-name":l.name,"prop-key":l.key,"update-key":e.updateKey},null,8,["model","prop-name","prop-key","update-key"]))),128)):de("",!0)],64)}}}),v_={class:"row"},g_={class:"header-title",style:{flex:"1"}},b_=Nt(">"),y_=we({__name:"UserComponent",props:{name:String,component:Object,updateKey:Number},setup(e){return(t,n)=>{const o=cr,r=bs;return N(),te("div",v_,[fe(o,{modelValue:e.component.enabled,"onUpdate:modelValue":n[0]||(n[0]=s=>e.component.enabled=s),size:"small",style:{"margin-right":"10px"}},null,8,["modelValue"]),re("span",g_,Ye(e.name),1),fe(r,{size:"small",onClick:n[1]||(n[1]=s=>d(bo).outputToConsole(e.component))},{default:ge(()=>[b_]),_:1})])}}});const w_=re("div",{class:"row",style:{height:"2px","background-color":"#1d1e21"}},null,-1),__=re("div",{class:"row",style:{height:"2px","background-color":"#1d1e21"}},null,-1),C_=we({__name:"TreePanel",props:{show:Boolean},setup(e){const t=e;let n=H(1),o;const r=new Map;let s=[];const i={value:"uuid",label:"name",children:"children"},l=(window.innerHeight-120)/2,a=H(null);We(()=>{console.log("ccc-devtools init")});function c(b,S,x){return x>=S.length?b:(b=b.getChildByUuid(S[x]),c(b,S,x+1))}function u(b){const S=c(cc.director.getScene(),b.path,0);b?o=S:o=null}function h(b){r.set(b.uuid,!0),s=[...r.keys()]}function f(b){r.delete(b.uuid),s=[...r.keys()]}function p(b,S,x){S.forEach(E=>{const k=x.concat(E.uuid),_={uuid:E.uuid,name:E.name,active:E.activeInHierarchy,children:[],path:k};E.children&&E.children.length>0&&p(_.children,E.children,k),b.push(_)})}function v(){if(t.show&&window.ccdevShow){let b=[];p(b,cc.director.getScene().children,[]),a.value.setData(b),n.value=-n.value}window.requestAnimationFrame(v)}function m(){v()}const y=setInterval(()=>{window.cc&&cc.director.getScene()&&(m(),clearInterval(y))},1e3);return(b,S)=>{const x=Zw,E=N0;return N(),te($e,null,[re("div",{style:Ke([{width:"100%"},{height:l}])},[fe(x,{ref_key:"treeView",ref:a,props:i,"empty-text":"\u6B63\u5728\u52A0\u8F7D\u573A\u666F","highlight-current":!0,"expand-on-click-node":!1,"default-expanded-keys":d(s),onCurrentChange:u,onNodeExpand:h,onNodeCollapse:f,height:l},{default:ge(({node:k})=>[re("span",{class:ee({"node-hide":!k.data.active})},Ye(k.label),3)]),_:1},8,["default-expanded-keys"])],4),re("div",{style:Ke([{width:"100%","border-top":"2px solid #414243"},{height:l}])},[d(n)!==0&&d(bo).checkNodeValid(d(o))?(N(),ie(E,{key:0},{default:ge(()=>[fe(l_,{"cc-node":d(o),"update-key":d(n)},null,8,["cc-node","update-key"]),w_,(N(!0),te($e,null,yn(d(bo).getComponents(d(o)),k=>(N(),te($e,{key:k.name},[k.name.startsWith("cc.")?(N(),ie(m_,{key:0,component:k.target,name:k.name,"update-key":d(n)},null,8,["component","name","update-key"])):(N(),ie(y_,{key:1,component:k.target,name:k.name,"update-key":d(n)},null,8,["component","name","update-key"])),__],64))),128))]),_:1})):de("",!0)],4)],64)}}});var k_=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n};const E_=Nt("ccc-devtools"),S_=we({__name:"App",setup(e){let t=H(!1);return window.addEventListener("showProfiler",n=>{t.value=!t.value}),(n,o)=>{const r=je("vue-final-modal"),s=o1,i=dw;return N(),te($e,null,[re("div",null,[fe(r,{modelValue:d(t),"onUpdate:modelValue":o[0]||(o[0]=l=>He(t)?t.value=l:t=l),classes:"modal-container","content-class":"modal-content","hide-overlay":!0,"click-to-close":!1,"prevent-click":!0,drag:!0,"fit-parent":!0,"drag-selector":".modal-drag"},{default:ge(()=>[fe(kf,{show:d(t)},null,8,["show"])]),_:1},8,["modelValue"])]),fe(s,{"body-style":{padding:0},style:{margin:"10px"}},{default:ge(()=>[fe(C_,{show:!0})]),_:1}),fe(i,{type:"primary",href:"https://github.com/potato47/ccc-devtools",target:"_blank",style:{position:"absolute",left:"5px",bottom:"5px"}},{default:ge(()=>[E_]),_:1})],64)}}});var x_=k_(S_,[["__scopeId","data-v-5cd4c653"]]);function al(e){return(al=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function Wa(e,t,n,o,r,s,i){try{var l=e[s](i),a=l.value}catch(c){return void n(c)}l.done?t(a):Promise.resolve(a).then(o,r)}function T_(e,t){for(var n=0;n`${i}:${t.getPropertyValue(i)}`).join(";"),paddingSize:o,borderSize:r,boxSizing:n}}function fa(e,t=1,n){var o;Et||(Et=document.createElement("textarea"),document.body.appendChild(Et));const{paddingSize:r,borderSize:s,boxSizing:i,contextStyle:l}=u0(e);Et.setAttribute("style",`${l};${a0}`),Et.value=e.value||e.placeholder||"";let a=Et.scrollHeight;const c={};i==="border-box"?a=a+s:i==="content-box"&&(a=a-r),Et.value="";const u=Et.scrollHeight-r;if(Ve(t)){let h=u*t;i==="border-box"&&(h=h+r+s),a=Math.max(h,a),c.minHeight=`${h}px`}if(Ve(n)){let h=u*n;i==="border-box"&&(h=h+r+s),a=Math.min(h,a)}return c.height=`${a}px`,(o=Et.parentNode)==null||o.removeChild(Et),Et=void 0,c}const f0=De({id:{type:String,default:void 0},size:ir,disabled:Boolean,modelValue:{type:Ee([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:Ee([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String,default:""},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:uo,default:""},prefixIcon:{type:uo,default:""},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:Ee([Object,Array,String]),default:()=>Pn({})}}),d0={[Ot]:e=>Ne(e),input:e=>Ne(e),change:e=>Ne(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},p0=["role"],h0=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder"],m0=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder"],v0={name:"ElInput",inheritAttrs:!1},g0=we({...v0,props:f0,emits:d0,setup(e,{expose:t,emit:n}){const o=e,r={suffix:"append",prefix:"prepend"},s=Qe(),i=zp(),l=cs(),a=P(()=>{const C={};return o.containerRole==="combobox"&&(C["aria-haspopup"]=i["aria-haspopup"],C["aria-owns"]=i["aria-owns"],C["aria-expanded"]=i["aria-expanded"]),C}),c=Pg({excludeKeys:P(()=>Object.keys(a.value))}),{form:u,formItem:h}=qi(),{inputId:f}=vs(o,{formItemContext:h}),p=Vn(),v=ms(),m=ze("input"),y=ze("textarea"),b=oo(),S=oo(),x=H(!1),E=H(!1),k=H(!1),_=H(!1),T=H(),O=oo(o.inputStyle),R=P(()=>b.value||S.value),q=P(()=>{var C;return(C=u==null?void 0:u.statusIcon)!=null?C:!1}),X=P(()=>(h==null?void 0:h.validateState)||""),U=P(()=>X.value&&Sg[X.value]),M=P(()=>_.value?kg:eg),L=P(()=>[i.style,o.inputStyle]),Z=P(()=>[o.inputStyle,O.value,{resize:o.resize}]),B=P(()=>Yt(o.modelValue)?"":String(o.modelValue)),G=P(()=>o.clearable&&!v.value&&!o.readonly&&!!B.value&&(x.value||E.value)),J=P(()=>o.showPassword&&!v.value&&!o.readonly&&!!B.value&&(!!B.value||x.value)),me=P(()=>o.showWordLimit&&!!c.value.maxlength&&(o.type==="text"||o.type==="textarea")&&!v.value&&!o.readonly&&!o.showPassword),Se=P(()=>Array.from(B.value).length),_e=P(()=>!!me.value&&Se.value>Number(c.value.maxlength)),Te=P(()=>!!l.suffix||!!o.suffixIcon||G.value||o.showPassword||me.value||!!X.value&&q.value),[ne,ve]=o0(b);gu(S,C=>{if(!me.value||o.resize!=="both")return;const K=C[0],{width:oe}=K.contentRect;T.value={right:`calc(100% - ${oe+15+6}px)`}});const pe=()=>{const{type:C,autosize:K}=o;if(!(!Ue||C!=="textarea"))if(K){const oe=Ae(K)?K.minRows:void 0,ce=Ae(K)?K.maxRows:void 0;O.value={...fa(S.value,oe,ce)}}else O.value={minHeight:fa(S.value).minHeight}},j=()=>{const C=R.value;!C||C.value===B.value||(C.value=B.value)},I=C=>{const{el:K}=s.vnode;if(!K)return;const ce=Array.from(K.querySelectorAll(`.${m.e(C)}`)).find(be=>be.parentNode===K);if(!ce)return;const ke=r[C];l[ke]?ce.style.transform=`translateX(${C==="suffix"?"-":""}${K.querySelector(`.${m.be("group",ke)}`).offsetWidth}px)`:ce.removeAttribute("style")},Q=()=>{I("prefix"),I("suffix")},le=async C=>{ne();let{value:K}=C.target;o.formatter&&(K=o.parser?o.parser(K):K,K=o.formatter(K)),!k.value&&K!==B.value&&(n(Ot,K),n("input",K),await Fe(),j(),ve())},Ce=C=>{n("change",C.target.value)},Me=C=>{n("compositionstart",C),k.value=!0},Oe=C=>{var K;n("compositionupdate",C);const oe=(K=C.target)==null?void 0:K.value,ce=oe[oe.length-1]||"";k.value=!Ng(ce)},g=C=>{n("compositionend",C),k.value&&(k.value=!1,le(C))},w=()=>{_.value=!_.value,$()},$=async()=>{var C;await Fe(),(C=R.value)==null||C.focus()},F=()=>{var C;return(C=R.value)==null?void 0:C.blur()},A=C=>{x.value=!0,n("focus",C)},V=C=>{var K;x.value=!1,n("blur",C),o.validateEvent&&((K=h==null?void 0:h.validate)==null||K.call(h,"blur").catch(oe=>void 0))},Y=C=>{E.value=!1,n("mouseleave",C)},z=C=>{E.value=!0,n("mouseenter",C)},W=C=>{n("keydown",C)},D=()=>{var C;(C=R.value)==null||C.select()},se=()=>{n(Ot,""),n("change",""),n("clear"),n("input","")};return ue(()=>o.modelValue,()=>{var C;Fe(()=>pe()),o.validateEvent&&((C=h==null?void 0:h.validate)==null||C.call(h,"change").catch(K=>void 0))}),ue(B,()=>j()),ue(()=>o.type,async()=>{await Fe(),j(),pe(),Q()}),We(async()=>{!o.formatter&&o.parser,j(),Q(),await Fe(),pe()}),nr(async()=>{await Fe(),Q()}),t({input:b,textarea:S,ref:R,textareaStyle:Z,autosize:Vt(o,"autosize"),focus:$,blur:F,select:D,clear:se,resizeTextarea:pe}),(C,K)=>at((N(),te("div",$t(d(a),{class:[C.type==="textarea"?d(y).b():d(m).b(),d(m).m(d(p)),d(m).is("disabled",d(v)),d(m).is("exceed",d(_e)),{[d(m).b("group")]:C.$slots.prepend||C.$slots.append,[d(m).bm("group","append")]:C.$slots.append,[d(m).bm("group","prepend")]:C.$slots.prepend,[d(m).m("prefix")]:C.$slots.prefix||C.prefixIcon,[d(m).m("suffix")]:C.$slots.suffix||C.suffixIcon||C.clearable||C.showPassword,[d(m).bm("suffix","password-clear")]:d(G)&&d(J)},C.$attrs.class],style:d(L),role:C.containerRole,onMouseenter:z,onMouseleave:Y}),[de(" input "),C.type!=="textarea"?(N(),te($e,{key:0},[de(" prepend slot "),C.$slots.prepend?(N(),te("div",{key:0,class:ee(d(m).be("group","prepend"))},[Be(C.$slots,"prepend")],2)):de("v-if",!0),re("div",{class:ee([d(m).e("wrapper"),d(m).is("focus",x.value)])},[de(" prefix slot "),C.$slots.prefix||C.prefixIcon?(N(),te("span",{key:0,class:ee(d(m).e("prefix"))},[re("span",{class:ee(d(m).e("prefix-inner"))},[Be(C.$slots,"prefix"),C.prefixIcon?(N(),ie(d(bt),{key:0,class:ee(d(m).e("icon"))},{default:ge(()=>[(N(),ie(nt(C.prefixIcon)))]),_:1},8,["class"])):de("v-if",!0)],2)],2)):de("v-if",!0),re("input",$t({id:d(f),ref_key:"input",ref:b,class:d(m).e("inner")},d(c),{type:C.showPassword?_.value?"text":"password":C.type,disabled:d(v),formatter:C.formatter,parser:C.parser,readonly:C.readonly,autocomplete:C.autocomplete,tabindex:C.tabindex,"aria-label":C.label,placeholder:C.placeholder,style:C.inputStyle,onCompositionstart:Me,onCompositionupdate:Oe,onCompositionend:g,onInput:le,onFocus:A,onBlur:V,onChange:Ce,onKeydown:W}),null,16,h0),de(" suffix slot "),d(Te)?(N(),te("span",{key:1,class:ee(d(m).e("suffix"))},[re("span",{class:ee(d(m).e("suffix-inner"))},[!d(G)||!d(J)||!d(me)?(N(),te($e,{key:0},[Be(C.$slots,"suffix"),C.suffixIcon?(N(),ie(d(bt),{key:0,class:ee(d(m).e("icon"))},{default:ge(()=>[(N(),ie(nt(C.suffixIcon)))]),_:1},8,["class"])):de("v-if",!0)],64)):de("v-if",!0),d(G)?(N(),ie(d(bt),{key:1,class:ee([d(m).e("icon"),d(m).e("clear")]),onMousedown:zt(d(Je),["prevent"]),onClick:se},{default:ge(()=>[fe(d(yu))]),_:1},8,["class","onMousedown"])):de("v-if",!0),d(J)?(N(),ie(d(bt),{key:2,class:ee([d(m).e("icon"),d(m).e("password")]),onClick:w},{default:ge(()=>[(N(),ie(nt(d(M))))]),_:1},8,["class"])):de("v-if",!0),d(me)?(N(),te("span",{key:3,class:ee(d(m).e("count"))},[re("span",{class:ee(d(m).e("count-inner"))},Ye(d(Se))+" / "+Ye(d(c).maxlength),3)],2)):de("v-if",!0),d(X)&&d(U)&&d(q)?(N(),ie(d(bt),{key:4,class:ee([d(m).e("icon"),d(m).e("validateIcon"),d(m).is("loading",d(X)==="validating")])},{default:ge(()=>[(N(),ie(nt(d(U))))]),_:1},8,["class"])):de("v-if",!0)],2)],2)):de("v-if",!0)],2),de(" append slot "),C.$slots.append?(N(),te("div",{key:1,class:ee(d(m).be("group","append"))},[Be(C.$slots,"append")],2)):de("v-if",!0)],64)):(N(),te($e,{key:1},[de(" textarea "),re("textarea",$t({id:d(f),ref_key:"textarea",ref:S,class:d(y).e("inner")},d(c),{tabindex:C.tabindex,disabled:d(v),readonly:C.readonly,autocomplete:C.autocomplete,style:d(Z),"aria-label":C.label,placeholder:C.placeholder,onCompositionstart:Me,onCompositionupdate:Oe,onCompositionend:g,onInput:le,onFocus:A,onBlur:V,onChange:Ce,onKeydown:W}),null,16,m0),d(me)?(N(),te("span",{key:0,style:Ke(T.value),class:ee(d(m).e("count"))},Ye(d(Se))+" / "+Ye(d(c).maxlength),7)):de("v-if",!0)],64))],16,p0)),[[ao,C.type!=="hidden"]])}});var b0=Ie(g0,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const Gi=Pt(b0),Qn=4,Iu={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},y0=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),w0=De({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),_0=we({__name:"thumb",props:w0,setup(e){const t=e,n="Thumb",o=Re(xu),r=ze("scrollbar");o||fv(n,"can not inject scrollbar context");const s=H(),i=H(),l=H({}),a=H(!1);let c=!1,u=!1,h=Ue?document.onselectstart:null;const f=P(()=>Iu[t.vertical?"vertical":"horizontal"]),p=P(()=>y0({size:t.size,move:t.move,bar:f.value})),v=P(()=>s.value[f.value.offset]**2/o.wrapElement[f.value.scrollSize]/t.ratio/i.value[f.value.offset]),m=T=>{var O;if(T.stopPropagation(),T.ctrlKey||[1,2].includes(T.button))return;(O=window.getSelection())==null||O.removeAllRanges(),b(T);const R=T.currentTarget;!R||(l.value[f.value.axis]=R[f.value.offset]-(T[f.value.client]-R.getBoundingClientRect()[f.value.direction]))},y=T=>{if(!i.value||!s.value||!o.wrapElement)return;const O=Math.abs(T.target.getBoundingClientRect()[f.value.direction]-T[f.value.client]),R=i.value[f.value.offset]/2,q=(O-R)*100*v.value/s.value[f.value.offset];o.wrapElement[f.value.scroll]=q*o.wrapElement[f.value.scrollSize]/100},b=T=>{T.stopImmediatePropagation(),c=!0,document.addEventListener("mousemove",S),document.addEventListener("mouseup",x),h=document.onselectstart,document.onselectstart=()=>!1},S=T=>{if(!s.value||!i.value||c===!1)return;const O=l.value[f.value.axis];if(!O)return;const R=(s.value.getBoundingClientRect()[f.value.direction]-T[f.value.client])*-1,q=i.value[f.value.offset]-O,X=(R-q)*100*v.value/s.value[f.value.offset];o.wrapElement[f.value.scroll]=X*o.wrapElement[f.value.scrollSize]/100},x=()=>{c=!1,l.value[f.value.axis]=0,document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",x),_(),u&&(a.value=!1)},E=()=>{u=!1,a.value=!!t.size},k=()=>{u=!0,a.value=c};Mt(()=>{_(),document.removeEventListener("mouseup",x)});const _=()=>{document.onselectstart!==h&&(document.onselectstart=h)};return An(Vt(o,"scrollbarElement"),"mousemove",E),An(Vt(o,"scrollbarElement"),"mouseleave",k),(T,O)=>(N(),ie(lo,{name:d(r).b("fade"),persisted:""},{default:ge(()=>[at(re("div",{ref_key:"instance",ref:s,class:ee([d(r).e("bar"),d(r).is(d(f).key)]),onMousedown:y},[re("div",{ref_key:"thumb",ref:i,class:ee(d(r).e("thumb")),style:Ke(d(p)),onMousedown:m},null,38)],34),[[ao,T.always||a.value]])]),_:1},8,["name"]))}});var da=Ie(_0,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const C0=De({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),k0=we({__name:"bar",props:C0,setup(e,{expose:t}){const n=e,o=H(0),r=H(0);return t({handleScroll:i=>{if(i){const l=i.offsetHeight-Qn,a=i.offsetWidth-Qn;r.value=i.scrollTop*100/l*n.ratioY,o.value=i.scrollLeft*100/a*n.ratioX}}}),(i,l)=>(N(),te($e,null,[fe(da,{move:o.value,ratio:i.ratioX,size:i.width,always:i.always},null,8,["move","ratio","size","always"]),fe(da,{move:r.value,ratio:i.ratioY,size:i.height,vertical:"",always:i.always},null,8,["move","ratio","size","always"])],64))}});var E0=Ie(k0,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const S0=De({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:Ee([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20}}),x0={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Ve)},T0={name:"ElScrollbar"},$0=we({...T0,props:S0,emits:x0,setup(e,{expose:t,emit:n}){const o=e,r=ze("scrollbar");let s,i;const l=H(),a=H(),c=H(),u=H("0"),h=H("0"),f=H(),p=H(1),v=H(1),m=P(()=>{const k={};return o.height&&(k.height=li(o.height)),o.maxHeight&&(k.maxHeight=li(o.maxHeight)),[o.wrapStyle,k]}),y=()=>{var k;a.value&&((k=f.value)==null||k.handleScroll(a.value),n("scroll",{scrollTop:a.value.scrollTop,scrollLeft:a.value.scrollLeft}))};function b(k,_){Ae(k)?a.value.scrollTo(k):Ve(k)&&Ve(_)&&a.value.scrollTo(k,_)}const S=k=>{!Ve(k)||(a.value.scrollTop=k)},x=k=>{!Ve(k)||(a.value.scrollLeft=k)},E=()=>{if(!a.value)return;const k=a.value.offsetHeight-Qn,_=a.value.offsetWidth-Qn,T=k**2/a.value.scrollHeight,O=_**2/a.value.scrollWidth,R=Math.max(T,o.minSize),q=Math.max(O,o.minSize);p.value=T/(k-T)/(R/(k-R)),v.value=O/(_-O)/(q/(_-q)),h.value=R+Qno.noresize,k=>{k?(s==null||s(),i==null||i()):({stop:s}=gu(c,E),i=An("resize",E))},{immediate:!0}),ue(()=>[o.maxHeight,o.height],()=>{o.native||Fe(()=>{var k;E(),a.value&&((k=f.value)==null||k.handleScroll(a.value))})}),mt(xu,Jt({scrollbarElement:l,wrapElement:a})),We(()=>{o.native||Fe(()=>E())}),nr(()=>E()),t({wrap$:a,update:E,scrollTo:b,setScrollTop:S,setScrollLeft:x,handleScroll:y}),(k,_)=>(N(),te("div",{ref_key:"scrollbar$",ref:l,class:ee(d(r).b())},[re("div",{ref_key:"wrap$",ref:a,class:ee([k.wrapClass,d(r).e("wrap"),{[d(r).em("wrap","hidden-default")]:!k.native}]),style:Ke(d(m)),onScroll:y},[(N(),ie(nt(k.tag),{ref_key:"resize$",ref:c,class:ee([d(r).e("view"),k.viewClass]),style:Ke(k.viewStyle)},{default:ge(()=>[Be(k.$slots,"default")]),_:3},8,["class","style"]))],38),k.native?de("v-if",!0):(N(),ie(E0,{key:0,ref_key:"barRef",ref:f,height:h.value,width:u.value,always:k.always,"ratio-x":v.value,"ratio-y":p.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var O0=Ie($0,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const N0=Pt(O0),Pu=De({role:{type:String,default:"tooltip"}}),M0={name:"ElPopperRoot",inheritAttrs:!1},A0=we({...M0,props:Pu,setup(e,{expose:t}){const n=e,o=H(),r=H(),s=H(),i=H(),l=P(()=>n.role),a={triggerRef:o,popperInstanceRef:r,contentRef:s,referenceRef:i,role:l};return t(a),mt(Wi,a),(c,u)=>Be(c.$slots,"default")}});var I0=Ie(A0,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const Lu=De({arrowOffset:{type:Number,default:5}}),P0={name:"ElPopperArrow",inheritAttrs:!1},L0=we({...P0,props:Lu,setup(e,{expose:t}){const n=e,o=ze("popper"),{arrowOffset:r,arrowRef:s}=Re(Tu,void 0);return ue(()=>n.arrowOffset,i=>{r.value=i}),Mt(()=>{s.value=void 0}),t({arrowRef:s}),(i,l)=>(N(),te("span",{ref_key:"arrowRef",ref:s,class:ee(d(o).e("arrow")),"data-popper-arrow":""},null,2))}});var F0=Ie(L0,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const R0="ElOnlyChild",B0=we({name:R0,setup(e,{slots:t,attrs:n}){var o;const r=Re(Au),s=Qg((o=r==null?void 0:r.setForwardRef)!=null?o:Je);return()=>{var i;const l=(i=t.default)==null?void 0:i.call(t,n);if(!l||l.length>1)return null;const a=Fu(l);return a?at(Xt(a,n),[[s]]):null}}});function Fu(e){if(!e)return null;const t=e;for(const n of t){if(Ae(n))switch(n.type){case pt:continue;case or:case"svg":return pa(n);case $e:return Fu(n.children);default:return n}return pa(n)}return null}function pa(e){return fe("span",{class:"el-only-child__content"},[e])}const Ru=De({virtualRef:{type:Ee(Object)},virtualTriggering:Boolean,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,onBlur:Function,onContextmenu:Function,id:String,open:Boolean}),z0={name:"ElPopperTrigger",inheritAttrs:!1},D0=we({...z0,props:Ru,setup(e,{expose:t}){const n=e,{role:o,triggerRef:r}=Re(Wi,void 0);Jg(r);const s=P(()=>l.value?n.id:void 0),i=P(()=>{if(o&&o.value==="tooltip")return n.open&&n.id?n.id:void 0}),l=P(()=>{if(o&&o.value!=="tooltip")return o.value}),a=P(()=>l.value?`${n.open}`:void 0);let c;return We(()=>{ue(()=>n.virtualRef,u=>{u&&(r.value=hn(u))},{immediate:!0}),ue(()=>r.value,(u,h)=>{c==null||c(),c=void 0,Jo(u)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(f=>{var p;const v=n[f];v&&(u.addEventListener(f.slice(2).toLowerCase(),v),(p=h==null?void 0:h.removeEventListener)==null||p.call(h,f.slice(2).toLowerCase(),v))}),c=ue([s,i,l,a],f=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((p,v)=>{Yt(f[v])?u.removeAttribute(p):u.setAttribute(p,f[v])})},{immediate:!0})),Jo(h)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(f=>h.removeAttribute(f))},{immediate:!0})}),Mt(()=>{c==null||c(),c=void 0}),t({triggerRef:r}),(u,h)=>u.virtualTriggering?de("v-if",!0):(N(),ie(d(B0),$t({key:0},u.$attrs,{"aria-controls":d(s),"aria-describedby":d(i),"aria-expanded":d(a),"aria-haspopup":d(l)}),{default:ge(()=>[Be(u.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var H0=Ie(D0,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]),it="top",_t="bottom",Ct="right",lt="left",Xi="auto",lr=[it,_t,Ct,lt],fo="start",Qo="end",V0="clippingParents",Bu="viewport",So="popper",j0="reference",ha=lr.reduce(function(e,t){return e.concat([t+"-"+fo,t+"-"+Qo])},[]),Zi=[].concat(lr,[Xi]).reduce(function(e,t){return e.concat([t,t+"-"+fo,t+"-"+Qo])},[]),K0="beforeRead",U0="read",W0="afterRead",q0="beforeMain",Y0="main",G0="afterMain",X0="beforeWrite",Z0="write",J0="afterWrite",Q0=[K0,U0,W0,q0,Y0,G0,X0,Z0,J0];function jt(e){return e?(e.nodeName||"").toLowerCase():null}function Lt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function po(e){var t=Lt(e).Element;return e instanceof t||e instanceof Element}function wt(e){var t=Lt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ji(e){if(typeof ShadowRoot=="undefined")return!1;var t=Lt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function eb(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},r=t.attributes[n]||{},s=t.elements[n];!wt(s)||!jt(s)||(Object.assign(s.style,o),Object.keys(r).forEach(function(i){var l=r[i];l===!1?s.removeAttribute(i):s.setAttribute(i,l===!0?"":l)}))})}function tb(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var r=t.elements[o],s=t.attributes[o]||{},i=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),l=i.reduce(function(a,c){return a[c]="",a},{});!wt(r)||!jt(r)||(Object.assign(r.style,l),Object.keys(s).forEach(function(a){r.removeAttribute(a)}))})}}var zu={name:"applyStyles",enabled:!0,phase:"write",fn:eb,effect:tb,requires:["computeStyles"]};function Dt(e){return e.split("-")[0]}var Bn=Math.max,Ur=Math.min,ho=Math.round;function mo(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),o=1,r=1;if(wt(e)&&t){var s=e.offsetHeight,i=e.offsetWidth;i>0&&(o=ho(n.width)/i||1),s>0&&(r=ho(n.height)/s||1)}return{width:n.width/o,height:n.height/r,top:n.top/r,right:n.right/o,bottom:n.bottom/r,left:n.left/o,x:n.left/o,y:n.top/r}}function Qi(e){var t=mo(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function Du(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ji(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Zt(e){return Lt(e).getComputedStyle(e)}function nb(e){return["table","td","th"].indexOf(jt(e))>=0}function wn(e){return((po(e)?e.ownerDocument:e.document)||window.document).documentElement}function gs(e){return jt(e)==="html"?e:e.assignedSlot||e.parentNode||(Ji(e)?e.host:null)||wn(e)}function ma(e){return!wt(e)||Zt(e).position==="fixed"?null:e.offsetParent}function ob(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&wt(e)){var o=Zt(e);if(o.position==="fixed")return null}var r=gs(e);for(Ji(r)&&(r=r.host);wt(r)&&["html","body"].indexOf(jt(r))<0;){var s=Zt(r);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return r;r=r.parentNode}return null}function ar(e){for(var t=Lt(e),n=ma(e);n&&nb(n)&&Zt(n).position==="static";)n=ma(n);return n&&(jt(n)==="html"||jt(n)==="body"&&Zt(n).position==="static")?t:n||ob(e)||t}function el(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ro(e,t,n){return Bn(e,Ur(t,n))}function rb(e,t,n){var o=Ro(e,t,n);return o>n?n:o}function Hu(){return{top:0,right:0,bottom:0,left:0}}function Vu(e){return Object.assign({},Hu(),e)}function ju(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var sb=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Vu(typeof e!="number"?e:ju(e,lr))};function ib(e){var t,n=e.state,o=e.name,r=e.options,s=n.elements.arrow,i=n.modifiersData.popperOffsets,l=Dt(n.placement),a=el(l),c=[lt,Ct].indexOf(l)>=0,u=c?"height":"width";if(!(!s||!i)){var h=sb(r.padding,n),f=Qi(s),p=a==="y"?it:lt,v=a==="y"?_t:Ct,m=n.rects.reference[u]+n.rects.reference[a]-i[a]-n.rects.popper[u],y=i[a]-n.rects.reference[a],b=ar(s),S=b?a==="y"?b.clientHeight||0:b.clientWidth||0:0,x=m/2-y/2,E=h[p],k=S-f[u]-h[v],_=S/2-f[u]/2+x,T=Ro(E,_,k),O=a;n.modifiersData[o]=(t={},t[O]=T,t.centerOffset=T-_,t)}}function lb(e){var t=e.state,n=e.options,o=n.element,r=o===void 0?"[data-popper-arrow]":o;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||!Du(t.elements.popper,r)||(t.elements.arrow=r))}var ab={name:"arrow",enabled:!0,phase:"main",fn:ib,effect:lb,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function vo(e){return e.split("-")[1]}var cb={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ub(e){var t=e.x,n=e.y,o=window,r=o.devicePixelRatio||1;return{x:ho(t*r)/r||0,y:ho(n*r)/r||0}}function va(e){var t,n=e.popper,o=e.popperRect,r=e.placement,s=e.variation,i=e.offsets,l=e.position,a=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,h=e.isFixed,f=i.x,p=f===void 0?0:f,v=i.y,m=v===void 0?0:v,y=typeof u=="function"?u({x:p,y:m}):{x:p,y:m};p=y.x,m=y.y;var b=i.hasOwnProperty("x"),S=i.hasOwnProperty("y"),x=lt,E=it,k=window;if(c){var _=ar(n),T="clientHeight",O="clientWidth";if(_===Lt(n)&&(_=wn(n),Zt(_).position!=="static"&&l==="absolute"&&(T="scrollHeight",O="scrollWidth")),_=_,r===it||(r===lt||r===Ct)&&s===Qo){E=_t;var R=h&&_===k&&k.visualViewport?k.visualViewport.height:_[T];m-=R-o.height,m*=a?1:-1}if(r===lt||(r===it||r===_t)&&s===Qo){x=Ct;var q=h&&_===k&&k.visualViewport?k.visualViewport.width:_[O];p-=q-o.width,p*=a?1:-1}}var X=Object.assign({position:l},c&&cb),U=u===!0?ub({x:p,y:m}):{x:p,y:m};if(p=U.x,m=U.y,a){var M;return Object.assign({},X,(M={},M[E]=S?"0":"",M[x]=b?"0":"",M.transform=(k.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",M))}return Object.assign({},X,(t={},t[E]=S?m+"px":"",t[x]=b?p+"px":"",t.transform="",t))}function fb(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=o===void 0?!0:o,s=n.adaptive,i=s===void 0?!0:s,l=n.roundOffsets,a=l===void 0?!0:l,c={placement:Dt(t.placement),variation:vo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,va(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:a})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,va(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Ku={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:fb,data:{}},yr={passive:!0};function db(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,s=r===void 0?!0:r,i=o.resize,l=i===void 0?!0:i,a=Lt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(u){u.addEventListener("scroll",n.update,yr)}),l&&a.addEventListener("resize",n.update,yr),function(){s&&c.forEach(function(u){u.removeEventListener("scroll",n.update,yr)}),l&&a.removeEventListener("resize",n.update,yr)}}var Uu={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:db,data:{}},pb={left:"right",right:"left",bottom:"top",top:"bottom"};function Mr(e){return e.replace(/left|right|bottom|top/g,function(t){return pb[t]})}var hb={start:"end",end:"start"};function ga(e){return e.replace(/start|end/g,function(t){return hb[t]})}function tl(e){var t=Lt(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function nl(e){return mo(wn(e)).left+tl(e).scrollLeft}function mb(e){var t=Lt(e),n=wn(e),o=t.visualViewport,r=n.clientWidth,s=n.clientHeight,i=0,l=0;return o&&(r=o.width,s=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=o.offsetLeft,l=o.offsetTop)),{width:r,height:s,x:i+nl(e),y:l}}function vb(e){var t,n=wn(e),o=tl(e),r=(t=e.ownerDocument)==null?void 0:t.body,s=Bn(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),i=Bn(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-o.scrollLeft+nl(e),a=-o.scrollTop;return Zt(r||n).direction==="rtl"&&(l+=Bn(n.clientWidth,r?r.clientWidth:0)-s),{width:s,height:i,x:l,y:a}}function ol(e){var t=Zt(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function Wu(e){return["html","body","#document"].indexOf(jt(e))>=0?e.ownerDocument.body:wt(e)&&ol(e)?e:Wu(gs(e))}function Bo(e,t){var n;t===void 0&&(t=[]);var o=Wu(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),s=Lt(o),i=r?[s].concat(s.visualViewport||[],ol(o)?o:[]):o,l=t.concat(i);return r?l:l.concat(Bo(gs(i)))}function ai(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function gb(e){var t=mo(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function ba(e,t){return t===Bu?ai(mb(e)):po(t)?gb(t):ai(vb(wn(e)))}function bb(e){var t=Bo(gs(e)),n=["absolute","fixed"].indexOf(Zt(e).position)>=0,o=n&&wt(e)?ar(e):e;return po(o)?t.filter(function(r){return po(r)&&Du(r,o)&&jt(r)!=="body"}):[]}function yb(e,t,n){var o=t==="clippingParents"?bb(e):[].concat(t),r=[].concat(o,[n]),s=r[0],i=r.reduce(function(l,a){var c=ba(e,a);return l.top=Bn(c.top,l.top),l.right=Ur(c.right,l.right),l.bottom=Ur(c.bottom,l.bottom),l.left=Bn(c.left,l.left),l},ba(e,s));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function qu(e){var t=e.reference,n=e.element,o=e.placement,r=o?Dt(o):null,s=o?vo(o):null,i=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,a;switch(r){case it:a={x:i,y:t.y-n.height};break;case _t:a={x:i,y:t.y+t.height};break;case Ct:a={x:t.x+t.width,y:l};break;case lt:a={x:t.x-n.width,y:l};break;default:a={x:t.x,y:t.y}}var c=r?el(r):null;if(c!=null){var u=c==="y"?"height":"width";switch(s){case fo:a[c]=a[c]-(t[u]/2-n[u]/2);break;case Qo:a[c]=a[c]+(t[u]/2-n[u]/2);break}}return a}function er(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=o===void 0?e.placement:o,s=n.boundary,i=s===void 0?V0:s,l=n.rootBoundary,a=l===void 0?Bu:l,c=n.elementContext,u=c===void 0?So:c,h=n.altBoundary,f=h===void 0?!1:h,p=n.padding,v=p===void 0?0:p,m=Vu(typeof v!="number"?v:ju(v,lr)),y=u===So?j0:So,b=e.rects.popper,S=e.elements[f?y:u],x=yb(po(S)?S:S.contextElement||wn(e.elements.popper),i,a),E=mo(e.elements.reference),k=qu({reference:E,element:b,strategy:"absolute",placement:r}),_=ai(Object.assign({},b,k)),T=u===So?_:E,O={top:x.top-T.top+m.top,bottom:T.bottom-x.bottom+m.bottom,left:x.left-T.left+m.left,right:T.right-x.right+m.right},R=e.modifiersData.offset;if(u===So&&R){var q=R[r];Object.keys(O).forEach(function(X){var U=[Ct,_t].indexOf(X)>=0?1:-1,M=[it,_t].indexOf(X)>=0?"y":"x";O[X]+=q[M]*U})}return O}function wb(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=n.boundary,s=n.rootBoundary,i=n.padding,l=n.flipVariations,a=n.allowedAutoPlacements,c=a===void 0?Zi:a,u=vo(o),h=u?l?ha:ha.filter(function(v){return vo(v)===u}):lr,f=h.filter(function(v){return c.indexOf(v)>=0});f.length===0&&(f=h);var p=f.reduce(function(v,m){return v[m]=er(e,{placement:m,boundary:r,rootBoundary:s,padding:i})[Dt(m)],v},{});return Object.keys(p).sort(function(v,m){return p[v]-p[m]})}function _b(e){if(Dt(e)===Xi)return[];var t=Mr(e);return[ga(e),t,ga(t)]}function Cb(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,s=r===void 0?!0:r,i=n.altAxis,l=i===void 0?!0:i,a=n.fallbackPlacements,c=n.padding,u=n.boundary,h=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,v=p===void 0?!0:p,m=n.allowedAutoPlacements,y=t.options.placement,b=Dt(y),S=b===y,x=a||(S||!v?[Mr(y)]:_b(y)),E=[y].concat(x).reduce(function(ve,pe){return ve.concat(Dt(pe)===Xi?wb(t,{placement:pe,boundary:u,rootBoundary:h,padding:c,flipVariations:v,allowedAutoPlacements:m}):pe)},[]),k=t.rects.reference,_=t.rects.popper,T=new Map,O=!0,R=E[0],q=0;q=0,Z=L?"width":"height",B=er(t,{placement:X,boundary:u,rootBoundary:h,altBoundary:f,padding:c}),G=L?M?Ct:lt:M?_t:it;k[Z]>_[Z]&&(G=Mr(G));var J=Mr(G),me=[];if(s&&me.push(B[U]<=0),l&&me.push(B[G]<=0,B[J]<=0),me.every(function(ve){return ve})){R=X,O=!1;break}T.set(X,me)}if(O)for(var Se=v?3:1,_e=function(ve){var pe=E.find(function(j){var I=T.get(j);if(I)return I.slice(0,ve).every(function(Q){return Q})});if(pe)return R=pe,"break"},Te=Se;Te>0;Te--){var ne=_e(Te);if(ne==="break")break}t.placement!==R&&(t.modifiersData[o]._skip=!0,t.placement=R,t.reset=!0)}}var kb={name:"flip",enabled:!0,phase:"main",fn:Cb,requiresIfExists:["offset"],data:{_skip:!1}};function ya(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function wa(e){return[it,Ct,_t,lt].some(function(t){return e[t]>=0})}function Eb(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,s=t.modifiersData.preventOverflow,i=er(t,{elementContext:"reference"}),l=er(t,{altBoundary:!0}),a=ya(i,o),c=ya(l,r,s),u=wa(a),h=wa(c);t.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}var Sb={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Eb};function xb(e,t,n){var o=Dt(e),r=[lt,it].indexOf(o)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=s[0],l=s[1];return i=i||0,l=(l||0)*r,[lt,Ct].indexOf(o)>=0?{x:l,y:i}:{x:i,y:l}}function Tb(e){var t=e.state,n=e.options,o=e.name,r=n.offset,s=r===void 0?[0,0]:r,i=Zi.reduce(function(u,h){return u[h]=xb(h,t.rects,s),u},{}),l=i[t.placement],a=l.x,c=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=i}var $b={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Tb};function Ob(e){var t=e.state,n=e.name;t.modifiersData[n]=qu({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Yu={name:"popperOffsets",enabled:!0,phase:"read",fn:Ob,data:{}};function Nb(e){return e==="x"?"y":"x"}function Mb(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,s=r===void 0?!0:r,i=n.altAxis,l=i===void 0?!1:i,a=n.boundary,c=n.rootBoundary,u=n.altBoundary,h=n.padding,f=n.tether,p=f===void 0?!0:f,v=n.tetherOffset,m=v===void 0?0:v,y=er(t,{boundary:a,rootBoundary:c,padding:h,altBoundary:u}),b=Dt(t.placement),S=vo(t.placement),x=!S,E=el(b),k=Nb(E),_=t.modifiersData.popperOffsets,T=t.rects.reference,O=t.rects.popper,R=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,q=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),X=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,U={x:0,y:0};if(_){if(s){var M,L=E==="y"?it:lt,Z=E==="y"?_t:Ct,B=E==="y"?"height":"width",G=_[E],J=G+y[L],me=G-y[Z],Se=p?-O[B]/2:0,_e=S===fo?T[B]:O[B],Te=S===fo?-O[B]:-T[B],ne=t.elements.arrow,ve=p&&ne?Qi(ne):{width:0,height:0},pe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Hu(),j=pe[L],I=pe[Z],Q=Ro(0,T[B],ve[B]),le=x?T[B]/2-Se-Q-j-q.mainAxis:_e-Q-j-q.mainAxis,Ce=x?-T[B]/2+Se+Q+I+q.mainAxis:Te+Q+I+q.mainAxis,Me=t.elements.arrow&&ar(t.elements.arrow),Oe=Me?E==="y"?Me.clientTop||0:Me.clientLeft||0:0,g=(M=X==null?void 0:X[E])!=null?M:0,w=G+le-g-Oe,$=G+Ce-g,F=Ro(p?Ur(J,w):J,G,p?Bn(me,$):me);_[E]=F,U[E]=F-G}if(l){var A,V=E==="x"?it:lt,Y=E==="x"?_t:Ct,z=_[k],W=k==="y"?"height":"width",D=z+y[V],se=z-y[Y],C=[it,lt].indexOf(b)!==-1,K=(A=X==null?void 0:X[k])!=null?A:0,oe=C?D:z-T[W]-O[W]-K+q.altAxis,ce=C?z+T[W]+O[W]-K-q.altAxis:se,ke=p&&C?rb(oe,z,ce):Ro(p?oe:D,z,p?ce:se);_[k]=ke,U[k]=ke-z}t.modifiersData[o]=U}}var Ab={name:"preventOverflow",enabled:!0,phase:"main",fn:Mb,requiresIfExists:["offset"]};function Ib(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Pb(e){return e===Lt(e)||!wt(e)?tl(e):Ib(e)}function Lb(e){var t=e.getBoundingClientRect(),n=ho(t.width)/e.offsetWidth||1,o=ho(t.height)/e.offsetHeight||1;return n!==1||o!==1}function Fb(e,t,n){n===void 0&&(n=!1);var o=wt(t),r=wt(t)&&Lb(t),s=wn(t),i=mo(e,r),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(o||!o&&!n)&&((jt(t)!=="body"||ol(s))&&(l=Pb(t)),wt(t)?(a=mo(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):s&&(a.x=nl(s))),{x:i.left+l.scrollLeft-a.x,y:i.top+l.scrollTop-a.y,width:i.width,height:i.height}}function Rb(e){var t=new Map,n=new Set,o=[];e.forEach(function(s){t.set(s.name,s)});function r(s){n.add(s.name);var i=[].concat(s.requires||[],s.requiresIfExists||[]);i.forEach(function(l){if(!n.has(l)){var a=t.get(l);a&&r(a)}}),o.push(s)}return e.forEach(function(s){n.has(s.name)||r(s)}),o}function Bb(e){var t=Rb(e);return Q0.reduce(function(n,o){return n.concat(t.filter(function(r){return r.phase===o}))},[])}function zb(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Db(e){var t=e.reduce(function(n,o){var r=n[o.name];return n[o.name]=r?Object.assign({},r,o,{options:Object.assign({},r.options,o.options),data:Object.assign({},r.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var _a={placement:"bottom",modifiers:[],strategy:"absolute"};function Ca(){for(var e=arguments.length,t=new Array(e),n=0;n{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0||o===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},ka=(e,t)=>{for(const n of e)if(!Kb(n,t))return n},Kb=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},Ub=e=>{const t=Gu(e),n=ka(t,e),o=ka(t.reverse(),e);return[n,o]},Wb=e=>e instanceof HTMLInputElement&&"select"in e,cn=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Wb(e)&&t&&e.select()}};function Ea(e,t){const n=[...e],o=e.indexOf(t);return o!==-1&&n.splice(o,1),n}const qb=()=>{let e=[];return{push:o=>{const r=e[0];r&&o!==r&&r.pause(),e=Ea(e,o),e.unshift(o)},remove:o=>{var r,s;e=Ea(e,o),(s=(r=e[0])==null?void 0:r.resume)==null||s.call(r)}}},Yb=(e,t=!1)=>{const n=document.activeElement;for(const o of e)if(cn(o,t),document.activeElement!==n)return},Sa=qb(),Ns="focus-trap.focus-after-trapped",Ms="focus-trap.focus-after-released",xa={cancelable:!0,bubbles:!1},Ta="focusAfterTrapped",$a="focusAfterReleased",Gb=Symbol("elFocusTrap"),Xb=we({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Ta,$a,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=H();let o,r;qg(p=>{e.trapped&&!s.paused&&t("release-requested",p)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},i=p=>{if(!e.loop&&!e.trapped||s.paused)return;const{key:v,altKey:m,ctrlKey:y,metaKey:b,currentTarget:S,shiftKey:x}=p,{loop:E}=e,k=v===Kr.tab&&!m&&!y&&!b,_=document.activeElement;if(k&&_){const T=S,[O,R]=Ub(T);O&&R?!x&&_===R?(p.preventDefault(),E&&cn(O,!0),t("focusout-prevented")):x&&[O,T].includes(_)&&(p.preventDefault(),E&&cn(R,!0),t("focusout-prevented")):_===T&&(p.preventDefault(),t("focusout-prevented"))}};mt(Gb,{focusTrapRef:n,onKeydown:i}),ue(()=>e.focusTrapEl,p=>{p&&(n.value=p)},{immediate:!0}),ue([n],([p],[v])=>{p&&(p.addEventListener("keydown",i),p.addEventListener("focusin",c),p.addEventListener("focusout",u)),v&&(v.removeEventListener("keydown",i),v.removeEventListener("focusin",c),v.removeEventListener("focusout",u))});const l=p=>{t(Ta,p)},a=p=>t($a,p),c=p=>{const v=d(n);if(!v)return;const m=p.target,y=m&&v.contains(m);y&&t("focusin",p),!s.paused&&e.trapped&&(y?r=m:cn(r,!0))},u=p=>{const v=d(n);if(!(s.paused||!v))if(e.trapped){const m=p.relatedTarget;!Yt(m)&&!v.contains(m)&&setTimeout(()=>{!s.paused&&e.trapped&&cn(r,!0)},0)}else{const m=p.target;m&&v.contains(m)||t("focusout",p)}};async function h(){await Fe();const p=d(n);if(p){Sa.push(s);const v=document.activeElement;if(o=v,!p.contains(v)){const y=new Event(Ns,xa);p.addEventListener(Ns,l),p.dispatchEvent(y),y.defaultPrevented||Fe(()=>{let b=e.focusStartEl;Ne(b)||(cn(b),document.activeElement!==b&&(b="first")),b==="first"&&Yb(Gu(p),!0),(document.activeElement===v||b==="container")&&cn(p)})}}}function f(){const p=d(n);if(p){p.removeEventListener(Ns,l);const v=new Event(Ms,xa);p.addEventListener(Ms,a),p.dispatchEvent(v),v.defaultPrevented||cn(o!=null?o:document.body,!0),p.removeEventListener(Ms,l),Sa.remove(s)}}return We(()=>{e.trapped&&h(),ue(()=>e.trapped,p=>{p?h():f()})}),Mt(()=>{e.trapped&&f()}),{onKeydown:i}}});function Zb(e,t,n,o,r,s){return Be(e.$slots,"default",{handleKeydown:e.onKeydown})}var Jb=Ie(Xb,[["render",Zb],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const Qb=["fixed","absolute"],ey=De({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Ee(Array),default:()=>[]},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Zi,default:"bottom"},popperOptions:{type:Ee(Object),default:()=>({})},strategy:{type:String,values:Qb,default:"absolute"}}),Xu=De({...ey,id:String,style:{type:Ee([String,Array,Object])},className:{type:Ee([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:Ee([String,Array,Object])},popperStyle:{type:Ee([String,Array,Object])},referenceEl:{type:Ee(Object)},triggerTargetEl:{type:Ee(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),ty=["mouseenter","mouseleave","focus","blur","close"],Oa=(e,t)=>{const{placement:n,strategy:o,popperOptions:r}=e,s={placement:n,strategy:o,...r,modifiers:oy(e)};return ry(s,t),sy(s,r==null?void 0:r.modifiers),s},ny=e=>{if(!!Ue)return hn(e)};function oy(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:o}=e;return[{name:"offset",options:{offset:[0,t!=null?t:12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:o!=null?o:[]}},{name:"computeStyles",options:{gpuAcceleration:n,adaptive:n}}]}function ry(e,{arrowEl:t,arrowOffset:n}){e.modifiers.push({name:"arrow",options:{element:t,padding:n!=null?n:5}})}function sy(e,t){t&&(e.modifiers=[...e.modifiers,...t!=null?t:[]])}const iy={name:"ElPopperContent"},ly=we({...iy,props:Xu,emits:ty,setup(e,{expose:t,emit:n}){const o=e,{popperInstanceRef:r,contentRef:s,triggerRef:i,role:l}=Re(Wi,void 0),a=Re(Hn,void 0),{nextZIndex:c}=n0(),u=ze("popper"),h=H(),f=H("first"),p=H(),v=H();mt(Tu,{arrowRef:p,arrowOffset:v}),a&&(a.addInputId||a.removeInputId)&&mt(Hn,{...a,addInputId:Je,removeInputId:Je});const m=H(o.zIndex||c()),y=H(!1);let b;const S=P(()=>ny(o.referenceEl)||d(i)),x=P(()=>[{zIndex:d(m)},o.popperStyle]),E=P(()=>[u.b(),u.is("pure",o.pure),u.is(o.effect),o.popperClass]),k=P(()=>l&&l.value==="dialog"?"false":void 0),_=({referenceEl:L,popperContentEl:Z,arrowEl:B})=>{const G=Oa(o,{arrowEl:B,arrowOffset:d(v)});return jb(L,Z,G)},T=(L=!0)=>{var Z;(Z=d(r))==null||Z.update(),L&&(m.value=o.zIndex||c())},O=()=>{var L,Z;const B={name:"eventListeners",enabled:o.visible};(Z=(L=d(r))==null?void 0:L.setOptions)==null||Z.call(L,G=>({...G,modifiers:[...G.modifiers||[],B]})),T(!1),o.visible&&o.focusOnShow?y.value=!0:o.visible===!1&&(y.value=!1)},R=()=>{n("focus")},q=()=>{f.value="first",n("blur")},X=L=>{var Z;o.visible&&!y.value&&(L.relatedTarget&&((Z=L.relatedTarget)==null||Z.focus()),L.target&&(f.value=L.target),y.value=!0)},U=()=>{o.trapping||(y.value=!1)},M=()=>{y.value=!1,n("close")};return We(()=>{let L;ue(S,Z=>{var B;L==null||L();const G=d(r);if((B=G==null?void 0:G.destroy)==null||B.call(G),Z){const J=d(h);s.value=J,r.value=_({referenceEl:Z,popperContentEl:J,arrowEl:d(p)}),L=ue(()=>Z.getBoundingClientRect(),()=>T(),{immediate:!0})}else r.value=void 0},{immediate:!0}),ue(()=>o.triggerTargetEl,(Z,B)=>{b==null||b(),b=void 0;const G=d(Z||h.value),J=d(B||h.value);if(Jo(G)){const{ariaLabel:me,id:Se}=$c(o);b=ue([l,me,k,Se],_e=>{["role","aria-label","aria-modal","id"].forEach((Te,ne)=>{Yt(_e[ne])?G.removeAttribute(Te):G.setAttribute(Te,_e[ne])})},{immediate:!0})}Jo(J)&&["role","aria-label","aria-modal","id"].forEach(me=>{J.removeAttribute(me)})},{immediate:!0}),ue(()=>o.visible,O,{immediate:!0}),ue(()=>Oa(o,{arrowEl:d(p),arrowOffset:d(v)}),Z=>{var B;return(B=r.value)==null?void 0:B.setOptions(Z)})}),Mt(()=>{b==null||b(),b=void 0}),t({popperContentRef:h,popperInstanceRef:r,updatePopper:T,contentStyle:x}),(L,Z)=>(N(),te("div",{ref_key:"popperContentRef",ref:h,style:Ke(d(x)),class:ee(d(E)),tabindex:"-1",onMouseenter:Z[0]||(Z[0]=B=>L.$emit("mouseenter",B)),onMouseleave:Z[1]||(Z[1]=B=>L.$emit("mouseleave",B))},[fe(d(Jb),{trapped:y.value,"trap-on-focus-in":!0,"focus-trap-el":h.value,"focus-start-el":f.value,onFocusAfterTrapped:R,onFocusAfterReleased:q,onFocusin:X,onFocusoutPrevented:U,onReleaseRequested:M},{default:ge(()=>[Be(L.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el"])],38))}});var ay=Ie(ly,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const cy=Pt(I0),uy=ze("tooltip"),Zu=De({...Xg,...Xu,appendTo:{type:Ee([String,Object]),default:Mu},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:Ee(Boolean),default:null},transition:{type:String,default:`${uy.namespace.value}-fade-in-linear`},teleported:{type:Boolean,default:!0},disabled:{type:Boolean}}),Ju=De({...Ru,disabled:Boolean,trigger:{type:Ee([String,Array]),default:"hover"},triggerKeys:{type:Ee(Array),default:()=>[Kr.enter,Kr.space]}}),fy=De({openDelay:{type:Number},visibleArrow:{type:Boolean,default:void 0},hideAfter:{type:Number,default:200},showArrow:{type:Boolean,default:!0}}),sl=Symbol("elTooltip"),dy=we({name:"ElTooltipContent",components:{ElPopperContent:ay},inheritAttrs:!1,props:Zu,setup(e){const t=H(null),n=H(!1),o=H(!1),r=H(!1),s=H(!1),{controlled:i,id:l,open:a,trigger:c,onClose:u,onOpen:h,onShow:f,onHide:p,onBeforeShow:v,onBeforeHide:m}=Re(sl,void 0),y=P(()=>e.persistent);Mt(()=>{s.value=!0});const b=P(()=>d(y)?!0:d(a)),S=P(()=>e.disabled?!1:d(a)),x=P(()=>{var L;return(L=e.style)!=null?L:{}}),E=P(()=>!d(a)),k=()=>{p()},_=()=>{if(d(i))return!0},T=Ut(_,()=>{e.enterable&&d(c)==="hover"&&h()}),O=Ut(_,()=>{d(c)==="hover"&&u()}),R=()=>{var L,Z;(Z=(L=t.value)==null?void 0:L.updatePopper)==null||Z.call(L),v==null||v()},q=()=>{m==null||m()},X=()=>{f(),M=iv(P(()=>{var L;return(L=t.value)==null?void 0:L.popperContentRef}),()=>{if(d(i))return;d(c)!=="hover"&&u()})},U=()=>{e.virtualTriggering||u()};let M;return ue(()=>d(a),L=>{L||M==null||M()},{flush:"post"}),{ariaHidden:E,entering:o,leaving:r,id:l,intermediateOpen:n,contentStyle:x,contentRef:t,destroyed:s,shouldRender:b,shouldShow:S,onClose:u,open:a,onAfterShow:X,onBeforeEnter:R,onBeforeLeave:q,onContentEnter:T,onContentLeave:O,onTransitionLeave:k,onBlur:U}}});function py(e,t,n,o,r,s){const i=je("el-popper-content");return N(),ie(xp,{disabled:!e.teleported,to:e.appendTo},[fe(lo,{name:e.transition,onAfterLeave:e.onTransitionLeave,onBeforeEnter:e.onBeforeEnter,onAfterEnter:e.onAfterShow,onBeforeLeave:e.onBeforeLeave},{default:ge(()=>[e.shouldRender?at((N(),ie(i,$t({key:0,id:e.id,ref:"contentRef"},e.$attrs,{"aria-label":e.ariaLabel,"aria-hidden":e.ariaHidden,"boundaries-padding":e.boundariesPadding,"fallback-placements":e.fallbackPlacements,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,placement:e.placement,"popper-options":e.popperOptions,strategy:e.strategy,effect:e.effect,enterable:e.enterable,pure:e.pure,"popper-class":e.popperClass,"popper-style":[e.popperStyle,e.contentStyle],"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,visible:e.shouldShow,"z-index":e.zIndex,onMouseenter:e.onContentEnter,onMouseleave:e.onContentLeave,onBlur:e.onBlur,onClose:e.onClose}),{default:ge(()=>[de(" Workaround bug #6378 "),e.destroyed?de("v-if",!0):Be(e.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onBlur","onClose"])),[[ao,e.shouldShow]]):de("v-if",!0)]),_:3},8,["name","onAfterLeave","onBeforeEnter","onAfterEnter","onBeforeLeave"])],8,["disabled","to"])}var hy=Ie(dy,[["render",py],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const my=(e,t)=>ae(e)?e.includes(t):e===t,Gn=(e,t,n)=>o=>{my(d(e),t)&&n(o)},vy=we({name:"ElTooltipTrigger",components:{ElPopperTrigger:H0},props:Ju,setup(e){const t=ze("tooltip"),{controlled:n,id:o,open:r,onOpen:s,onClose:i,onToggle:l}=Re(sl,void 0),a=H(null),c=()=>{if(d(n)||e.disabled)return!0},u=Vt(e,"trigger"),h=Ut(c,Gn(u,"hover",s)),f=Ut(c,Gn(u,"hover",i)),p=Ut(c,Gn(u,"click",S=>{S.button===0&&l(S)})),v=Ut(c,Gn(u,"focus",s)),m=Ut(c,Gn(u,"focus",i)),y=Ut(c,Gn(u,"contextmenu",S=>{S.preventDefault(),l(S)})),b=Ut(c,S=>{const{code:x}=S;e.triggerKeys.includes(x)&&(S.preventDefault(),l(S))});return{onBlur:m,onContextMenu:y,onFocus:v,onMouseenter:h,onMouseleave:f,onClick:p,onKeydown:b,open:r,id:o,triggerRef:a,ns:t}}});function gy(e,t,n,o,r,s){const i=je("el-popper-trigger");return N(),ie(i,{id:e.id,"virtual-ref":e.virtualRef,open:e.open,"virtual-triggering":e.virtualTriggering,class:ee(e.ns.e("trigger")),onBlur:e.onBlur,onClick:e.onClick,onContextmenu:e.onContextMenu,onFocus:e.onFocus,onMouseenter:e.onMouseenter,onMouseleave:e.onMouseleave,onKeydown:e.onKeydown},{default:ge(()=>[Be(e.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"])}var by=Ie(vy,[["render",gy],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const{useModelToggleProps:yy,useModelToggle:wy,useModelToggleEmits:_y}=Ug("visible"),Cy=we({name:"ElTooltip",components:{ElPopper:cy,ElPopperArrow:F0,ElTooltipContent:hy,ElTooltipTrigger:by},props:{...Pu,...yy,...Zu,...Ju,...Lu,...fy},emits:[..._y,"before-show","before-hide","show","hide","open","close"],setup(e,{emit:t}){Gg();const n=P(()=>(In(e.openDelay),e.openDelay||e.showAfter)),o=P(()=>(In(e.visibleArrow),Zo(e.visibleArrow)?e.visibleArrow:e.showArrow)),r=Ou(),s=H(null),i=H(null),l=()=>{var y;const b=d(s);b&&((y=b.popperInstanceRef)==null||y.update())},a=H(!1),c=H(void 0),{show:u,hide:h}=wy({indicator:a,toggleReason:c}),{onOpen:f,onClose:p}=Zg({showAfter:n,hideAfter:Vt(e,"hideAfter"),open:u,close:h}),v=P(()=>Zo(e.visible));mt(sl,{controlled:v,id:r,open:Ni(a),trigger:Vt(e,"trigger"),onOpen:y=>{f(y)},onClose:y=>{p(y)},onToggle:y=>{d(a)?p(y):f(y)},onShow:()=>{t("show",c.value)},onHide:()=>{t("hide",c.value)},onBeforeShow:()=>{t("before-show",c.value)},onBeforeHide:()=>{t("before-hide",c.value)},updatePopper:l}),ue(()=>e.disabled,y=>{y&&a.value&&(a.value=!1)});const m=()=>{var y,b;const S=(b=(y=i.value)==null?void 0:y.contentRef)==null?void 0:b.popperContentRef;return S&&S.contains(document.activeElement)};return Hc(()=>a.value&&h()),{compatShowAfter:n,compatShowArrow:o,popperRef:s,contentRef:i,open:a,hide:h,isFocusInsideContent:m,updatePopper:l,onOpen:f,onClose:p}}}),ky=["innerHTML"],Ey={key:1};function Sy(e,t,n,o,r,s){const i=je("el-tooltip-trigger"),l=je("el-popper-arrow"),a=je("el-tooltip-content"),c=je("el-popper");return N(),ie(c,{ref:"popperRef",role:e.role},{default:ge(()=>[fe(i,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering},{default:ge(()=>[e.$slots.default?Be(e.$slots,"default",{key:0}):de("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),fe(a,{ref:"contentRef","aria-label":e.ariaLabel,"boundaries-padding":e.boundariesPadding,content:e.content,disabled:e.disabled,effect:e.effect,enterable:e.enterable,"fallback-placements":e.fallbackPlacements,"hide-after":e.hideAfter,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,persistent:e.persistent,"popper-class":e.popperClass,"popper-style":e.popperStyle,placement:e.placement,"popper-options":e.popperOptions,pure:e.pure,"raw-content":e.rawContent,"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,"show-after":e.compatShowAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"virtual-triggering":e.virtualTriggering,"z-index":e.zIndex,"append-to":e.appendTo},{default:ge(()=>[Be(e.$slots,"content",{},()=>[e.rawContent?(N(),te("span",{key:0,innerHTML:e.content},null,8,ky)):(N(),te("span",Ey,Ye(e.content),1))]),e.compatShowArrow?(N(),ie(l,{key:0,"arrow-offset":e.arrowOffset},null,8,["arrow-offset"])):de("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"])}var xy=Ie(Cy,[["render",Sy],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const Ty=Pt(xy),$y=["default","primary","success","warning","info","danger","text",""],Oy=["button","submit","reset"],ci=De({size:ir,disabled:Boolean,type:{type:String,values:$y,default:""},icon:{type:uo,default:""},nativeType:{type:String,values:Oy,default:"button"},loading:Boolean,loadingIcon:{type:uo,default:()=>wu},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0}}),Ny={click:e=>e instanceof MouseEvent};function Ge(e,t){My(e)&&(e="100%");var n=Ay(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function wr(e){return Math.min(1,Math.max(0,e))}function My(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Ay(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Qu(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function _r(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Ln(e){return e.length===1?"0"+e:String(e)}function Iy(e,t,n){return{r:Ge(e,255)*255,g:Ge(t,255)*255,b:Ge(n,255)*255}}function Na(e,t,n){e=Ge(e,255),t=Ge(t,255),n=Ge(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),s=0,i=0,l=(o+r)/2;if(o===r)i=0,s=0;else{var a=o-r;switch(i=l>.5?a/(2-o-r):a/(o+r),o){case e:s=(t-n)/a+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Py(e,t,n){var o,r,s;if(e=Ge(e,360),t=Ge(t,100),n=Ge(n,100),t===0)r=n,s=n,o=n;else{var i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;o=As(l,i,e+1/3),r=As(l,i,e),s=As(l,i,e-1/3)}return{r:o*255,g:r*255,b:s*255}}function Ma(e,t,n){e=Ge(e,255),t=Ge(t,255),n=Ge(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),s=0,i=o,l=o-r,a=o===0?0:l/o;if(o===r)s=0;else{switch(o){case e:s=(t-n)/l+(t>16,g:(e&65280)>>8,b:e&255}}var ui={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function zy(e){var t={r:0,g:0,b:0},n=1,o=null,r=null,s=null,i=!1,l=!1;return typeof e=="string"&&(e=Vy(e)),typeof e=="object"&&(Kt(e.r)&&Kt(e.g)&&Kt(e.b)?(t=Iy(e.r,e.g,e.b),i=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Kt(e.h)&&Kt(e.s)&&Kt(e.v)?(o=_r(e.s),r=_r(e.v),t=Ly(e.h,o,r),i=!0,l="hsv"):Kt(e.h)&&Kt(e.s)&&Kt(e.l)&&(o=_r(e.s),s=_r(e.l),t=Py(e.h,o,s),i=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Qu(n),{ok:i,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var Dy="[-\\+]?\\d+%?",Hy="[-\\+]?\\d*\\.\\d+%?",mn="(?:".concat(Hy,")|(?:").concat(Dy,")"),Is="[\\s|\\(]+(".concat(mn,")[,|\\s]+(").concat(mn,")[,|\\s]+(").concat(mn,")\\s*\\)?"),Ps="[\\s|\\(]+(".concat(mn,")[,|\\s]+(").concat(mn,")[,|\\s]+(").concat(mn,")[,|\\s]+(").concat(mn,")\\s*\\)?"),St={CSS_UNIT:new RegExp(mn),rgb:new RegExp("rgb"+Is),rgba:new RegExp("rgba"+Ps),hsl:new RegExp("hsl"+Is),hsla:new RegExp("hsla"+Ps),hsv:new RegExp("hsv"+Is),hsva:new RegExp("hsva"+Ps),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Vy(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(ui[e])e=ui[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=St.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=St.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=St.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=St.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=St.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=St.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=St.hex8.exec(e),n?{r:ut(n[1]),g:ut(n[2]),b:ut(n[3]),a:Ia(n[4]),format:t?"name":"hex8"}:(n=St.hex6.exec(e),n?{r:ut(n[1]),g:ut(n[2]),b:ut(n[3]),format:t?"name":"hex"}:(n=St.hex4.exec(e),n?{r:ut(n[1]+n[1]),g:ut(n[2]+n[2]),b:ut(n[3]+n[3]),a:Ia(n[4]+n[4]),format:t?"name":"hex8"}:(n=St.hex3.exec(e),n?{r:ut(n[1]+n[1]),g:ut(n[2]+n[2]),b:ut(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Kt(e){return Boolean(St.CSS_UNIT.exec(String(e)))}var jy=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var o;if(t instanceof e)return t;typeof t=="number"&&(t=By(t)),this.originalInput=t;var r=zy(t);this.originalInput=t,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=(o=n.format)!==null&&o!==void 0?o:r.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=r.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,o,r,s=t.r/255,i=t.g/255,l=t.b/255;return s<=.03928?n=s/12.92:n=Math.pow((s+.055)/1.055,2.4),i<=.03928?o=i/12.92:o=Math.pow((i+.055)/1.055,2.4),l<=.03928?r=l/12.92:r=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*o+.0722*r},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Qu(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var t=Ma(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Ma(this.r,this.g,this.b),n=Math.round(t.h*360),o=Math.round(t.s*100),r=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(o,"%, ").concat(r,"%)"):"hsva(".concat(n,", ").concat(o,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Na(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Na(this.r,this.g,this.b),n=Math.round(t.h*360),o=Math.round(t.s*100),r=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(o,"%, ").concat(r,"%)"):"hsla(".concat(n,", ").concat(o,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Aa(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),Fy(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),o=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(o,")"):"rgba(".concat(t,", ").concat(n,", ").concat(o,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Ge(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(Ge(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Aa(this.r,this.g,this.b,!1),n=0,o=Object.entries(ui);n=0,s=!n&&r&&(t.startsWith("hex")||t==="name");return s?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(o=this.toRgbString()),t==="prgb"&&(o=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(o=this.toHexString()),t==="hex3"&&(o=this.toHexString(!0)),t==="hex4"&&(o=this.toHex8String(!0)),t==="hex8"&&(o=this.toHex8String()),t==="name"&&(o=this.toName()),t==="hsl"&&(o=this.toHslString()),t==="hsv"&&(o=this.toHsvString()),o||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=wr(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=wr(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=wr(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=wr(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var o=this.toRgb(),r=new e(t).toRgb(),s=n/100,i={r:(r.r-o.r)*s+o.r,g:(r.g-o.g)*s+o.g,b:(r.b-o.b)*s+o.b,a:(r.a-o.a)*s+o.a};return new e(i)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var o=this.toHsl(),r=360/n,s=[this];for(o.h=(o.h-(r*t>>1)+720)%360;--t;)o.h=(o.h+r)%360,s.push(new e(o));return s},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),o=n.h,r=n.s,s=n.v,i=[],l=1/t;t--;)i.push(new e({h:o,s:r,v:s})),s=(s+l)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),o=new e(t).toRgb();return new e({r:o.r+(n.r-o.r)*n.a,g:o.g+(n.g-o.g)*n.a,b:o.b+(n.b-o.b)*n.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),o=n.h,r=[this],s=360/t,i=1;i{let o={};const r=e.color;if(r){const s=new jy(r),i=e.dark?s.tint(20).toString():ln(s,20);if(e.plain)o=n.cssVarBlock({"bg-color":e.dark?ln(s,90):s.tint(90).toString(),"text-color":r,"border-color":e.dark?ln(s,50):s.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":r,"hover-border-color":r,"active-bg-color":i,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":i}),t.value&&(o[n.cssVarBlockName("disabled-bg-color")]=e.dark?ln(s,90):s.tint(90).toString(),o[n.cssVarBlockName("disabled-text-color")]=e.dark?ln(s,50):s.tint(50).toString(),o[n.cssVarBlockName("disabled-border-color")]=e.dark?ln(s,80):s.tint(80).toString());else{const l=e.dark?ln(s,30):s.tint(30).toString(),a=s.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(o=n.cssVarBlock({"bg-color":r,"text-color":a,"border-color":r,"hover-bg-color":l,"hover-text-color":a,"hover-border-color":l,"active-bg-color":i,"active-border-color":i}),t.value){const c=e.dark?ln(s,50):s.tint(50).toString();o[n.cssVarBlockName("disabled-bg-color")]=c,o[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,o[n.cssVarBlockName("disabled-border-color")]=c}}}return o})}const Uy=["aria-disabled","disabled","autofocus","type"],Wy={name:"ElButton"},qy=we({...Wy,props:ci,emits:Ny,setup(e,{expose:t,emit:n}){const o=e,r=cs();Fg({from:"type.text",replacement:"type.link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},P(()=>o.type==="text"));const s=Re(Su,void 0),i=sr("button"),l=ze("button"),{form:a}=qi(),c=Vn(P(()=>s==null?void 0:s.size)),u=ms(),h=H(),f=P(()=>o.type||(s==null?void 0:s.type)||""),p=P(()=>{var b,S,x;return(x=(S=o.autoInsertSpace)!=null?S:(b=i.value)==null?void 0:b.autoInsertSpace)!=null?x:!1}),v=P(()=>{var b;const S=(b=r.default)==null?void 0:b.call(r);if(p.value&&(S==null?void 0:S.length)===1){const x=S[0];if((x==null?void 0:x.type)===or){const E=x.children;return/^\p{Unified_Ideograph}{2}$/u.test(E.trim())}}return!1}),m=Ky(o),y=b=>{o.nativeType==="reset"&&(a==null||a.resetFields()),n("click",b)};return t({ref:h,size:c,type:f,disabled:u,shouldAddSpace:v}),(b,S)=>(N(),te("button",{ref_key:"_ref",ref:h,class:ee([d(l).b(),d(l).m(d(f)),d(l).m(d(c)),d(l).is("disabled",d(u)),d(l).is("loading",b.loading),d(l).is("plain",b.plain),d(l).is("round",b.round),d(l).is("circle",b.circle),d(l).is("text",b.text),d(l).is("link",b.link),d(l).is("has-bg",b.bg)]),"aria-disabled":d(u)||b.loading,disabled:d(u)||b.loading,autofocus:b.autofocus,type:b.nativeType,style:Ke(d(m)),onClick:y},[b.loading?(N(),te($e,{key:0},[b.$slots.loading?Be(b.$slots,"loading",{key:0}):(N(),ie(d(bt),{key:1,class:ee(d(l).is("loading"))},{default:ge(()=>[(N(),ie(nt(b.loadingIcon)))]),_:1},8,["class"]))],64)):b.icon||b.$slots.icon?(N(),ie(d(bt),{key:1},{default:ge(()=>[b.icon?(N(),ie(nt(b.icon),{key:0})):Be(b.$slots,"icon",{key:1})]),_:3})):de("v-if",!0),b.$slots.default?(N(),te("span",{key:2,class:ee({[d(l).em("text","expand")]:d(v)})},[Be(b.$slots,"default")],2)):de("v-if",!0)],14,Uy))}});var Yy=Ie(qy,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const Gy={size:ci.size,type:ci.type},Xy={name:"ElButtonGroup"},Zy=we({...Xy,props:Gy,setup(e){const t=e;mt(Su,Jt({size:Vt(t,"size"),type:Vt(t,"type")}));const n=ze("button");return(o,r)=>(N(),te("div",{class:ee(`${d(n).b("group")}`)},[Be(o.$slots,"default")],2))}});var ef=Ie(Zy,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const bs=Pt(Yy,{ButtonGroup:ef});Ui(ef);const un=new Map;let Pa;Ue&&(document.addEventListener("mousedown",e=>Pa=e),document.addEventListener("mouseup",e=>{for(const t of un.values())for(const{documentHandler:n}of t)n(e,Pa)}));function La(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:Jo(t.arg)&&n.push(t.arg),function(o,r){const s=t.instance.popperRef,i=o.target,l=r==null?void 0:r.target,a=!t||!t.instance,c=!i||!l,u=e.contains(i)||e.contains(l),h=e===i,f=n.length&&n.some(v=>v==null?void 0:v.contains(i))||n.length&&n.includes(l),p=s&&(s.contains(i)||s.contains(l));a||c||u||h||f||p||t.value(o,r)}}const Jy={beforeMount(e,t){un.has(e)||un.set(e,[]),un.get(e).push({documentHandler:La(e,t),bindingFn:t.value})},updated(e,t){un.has(e)||un.set(e,[]);const n=un.get(e),o=n.findIndex(s=>s.bindingFn===t.oldValue),r={documentHandler:La(e,t),bindingFn:t.value};o>=0?n.splice(o,1,r):n.push(r)},unmounted(e){un.delete(e)}};var Fa={beforeMount(e,t){let n=null,o;const r=()=>t.value&&t.value(),s=()=>{Date.now()-o<100&&r(),clearInterval(n),n=null};dn(e,"mousedown",i=>{i.button===0&&(o=Date.now(),rv(document,"mouseup",s),clearInterval(n),n=setInterval(r,100))})}};const Qy=De({header:{type:String,default:""},bodyStyle:{type:Ee([String,Object,Array]),default:""},shadow:{type:String,values:["always","hover","never"],default:"always"}}),e1={name:"ElCard"},t1=we({...e1,props:Qy,setup(e){const t=ze("card");return(n,o)=>(N(),te("div",{class:ee([d(t).b(),d(t).is(`${n.shadow}-shadow`)])},[n.$slots.header||n.header?(N(),te("div",{key:0,class:ee(d(t).e("header"))},[Be(n.$slots,"header",{},()=>[Nt(Ye(n.header),1)])],2)):de("v-if",!0),re("div",{class:ee(d(t).e("body")),style:Ke(n.bodyStyle)},[Be(n.$slots,"default")],6)],2))}});var n1=Ie(t1,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const o1=Pt(n1),r1={modelValue:{type:Array,default:()=>[]},disabled:Boolean,min:{type:Number,default:void 0},max:{type:Number,default:void 0},size:ir,id:{type:String,default:void 0},label:{type:String,default:void 0},fill:{type:String,default:void 0},textColor:{type:String,default:void 0},tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}},tf={modelValue:{type:[Number,String,Boolean],default:()=>{}},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:ir,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},_o=()=>{const e=Re(rr,{}),t=Re(Hn,{}),n=Re("CheckboxGroup",{}),o=P(()=>n&&(n==null?void 0:n.name)==="ElCheckboxGroup"),r=P(()=>t.size);return{isGroup:o,checkboxGroup:n,elForm:e,elFormItemSize:r,elFormItem:t}},s1=(e,{elFormItem:t})=>{const{inputId:n,isLabeledByFormItem:o}=vs(e,{formItemContext:t});return{isLabeledByFormItem:o,groupId:n}},i1=e=>{const t=H(!1),{emit:n}=Qe(),{isGroup:o,checkboxGroup:r,elFormItem:s}=_o(),i=H(!1);return{model:P({get(){var a,c;return o.value?(a=r.modelValue)==null?void 0:a.value:(c=e.modelValue)!=null?c:t.value},set(a){var c;o.value&&Array.isArray(a)?(i.value=r.max!==void 0&&a.length>r.max.value,i.value===!1&&((c=r==null?void 0:r.changeEvent)==null||c.call(r,a))):(n(Ot,a),t.value=a)}}),isGroup:o,isLimitExceeded:i,elFormItem:s}},l1=(e,t,{model:n})=>{const{isGroup:o,checkboxGroup:r}=_o(),s=H(!1),i=Vn(r==null?void 0:r.checkboxGroupSize,{prop:!0}),l=P(()=>{const u=n.value;return yo(u)==="[object Boolean]"?u:Array.isArray(u)?u.includes(e.label):u!=null?u===e.trueLabel:!!u}),a=Vn(P(()=>{var u;return o.value?(u=r==null?void 0:r.checkboxGroupSize)==null?void 0:u.value:void 0})),c=P(()=>!!(t.default||e.label));return{isChecked:l,focus:s,size:i,checkboxSize:a,hasOwnLabel:c}},a1=(e,{model:t,isChecked:n})=>{const{elForm:o,isGroup:r,checkboxGroup:s}=_o(),i=P(()=>{var a,c;const u=(a=s.max)==null?void 0:a.value,h=(c=s.min)==null?void 0:c.value;return!!(u||h)&&t.value.length>=u&&!n.value||t.value.length<=h&&n.value});return{isDisabled:P(()=>{var a,c;const u=e.disabled||(o==null?void 0:o.disabled);return(c=r.value?((a=s.disabled)==null?void 0:a.value)||u||i.value:u)!=null?c:!1}),isLimitDisabled:i}},c1=(e,{model:t})=>{function n(){Array.isArray(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&n()},u1=(e,{model:t,isLimitExceeded:n,hasOwnLabel:o,isDisabled:r,isLabeledByFormItem:s})=>{const{elFormItem:i,checkboxGroup:l}=_o(),{emit:a}=Qe();function c(v){var m,y;return v===e.trueLabel||v===!0?(m=e.trueLabel)!=null?m:!0:(y=e.falseLabel)!=null?y:!1}function u(v,m){a("change",c(v),m)}function h(v){if(n.value)return;const m=v.target;a("change",c(m.checked),v)}async function f(v){n.value||!o.value&&!r.value&&s.value&&(t.value=c([!1,e.falseLabel].includes(t.value)),await Fe(),u(t.value,v))}const p=P(()=>{var v;return((v=l.validateEvent)==null?void 0:v.value)||e.validateEvent});return ue(()=>e.modelValue,()=>{var v;p.value&&((v=i==null?void 0:i.validate)==null||v.call(i,"change").catch(m=>void 0))}),{handleChange:h,onClickRoot:f}},nf={[Ot]:e=>Ne(e)||Ve(e)||Zo(e),change:e=>Ne(e)||Ve(e)||Zo(e)},f1={[Ot]:e=>ae(e),change:e=>ae(e)},of=(e,t)=>{const{model:n,isGroup:o,isLimitExceeded:r,elFormItem:s}=i1(e),{focus:i,size:l,isChecked:a,checkboxSize:c,hasOwnLabel:u}=l1(e,t,{model:n}),{isDisabled:h}=a1(e,{model:n,isChecked:a}),{inputId:f,isLabeledByFormItem:p}=vs(e,{formItemContext:s,disableIdGeneration:u,disableIdManagement:o}),{handleChange:v,onClickRoot:m}=u1(e,{model:n,isLimitExceeded:r,hasOwnLabel:u,isDisabled:h,isLabeledByFormItem:p});return c1(e,{model:n}),{elFormItem:s,inputId:f,isLabeledByFormItem:p,isChecked:a,isDisabled:h,isGroup:o,checkboxSize:c,hasOwnLabel:u,model:n,handleChange:v,onClickRoot:m,focus:i,size:l}},d1=["tabindex","role","aria-checked"],p1=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],h1=["id","aria-hidden","disabled","value","name","tabindex"],m1={name:"ElCheckbox"},v1=we({...m1,props:tf,emits:nf,setup(e){const t=e,n=cs(),{inputId:o,isLabeledByFormItem:r,isChecked:s,isDisabled:i,checkboxSize:l,hasOwnLabel:a,model:c,handleChange:u,onClickRoot:h,focus:f}=of(t,n),p=ze("checkbox");return(v,m)=>(N(),ie(nt(!d(a)&&d(r)?"span":"label"),{class:ee([d(p).b(),d(p).m(d(l)),d(p).is("disabled",d(i)),d(p).is("bordered",v.border),d(p).is("checked",d(s))]),"aria-controls":v.indeterminate?v.controls:null,onClick:d(h)},{default:ge(()=>[re("span",{class:ee([d(p).e("input"),d(p).is("disabled",d(i)),d(p).is("checked",d(s)),d(p).is("indeterminate",v.indeterminate),d(p).is("focus",d(f))]),tabindex:v.indeterminate?0:void 0,role:v.indeterminate?"checkbox":void 0,"aria-checked":v.indeterminate?"mixed":void 0},[v.trueLabel||v.falseLabel?at((N(),te("input",{key:0,id:d(o),"onUpdate:modelValue":m[0]||(m[0]=y=>He(c)?c.value=y:null),class:ee(d(p).e("original")),type:"checkbox","aria-hidden":v.indeterminate?"true":"false",name:v.name,tabindex:v.tabindex,disabled:d(i),"true-value":v.trueLabel,"false-value":v.falseLabel,onChange:m[1]||(m[1]=(...y)=>d(u)&&d(u)(...y)),onFocus:m[2]||(m[2]=y=>f.value=!0),onBlur:m[3]||(m[3]=y=>f.value=!1)},null,42,p1)),[[jr,d(c)]]):at((N(),te("input",{key:1,id:d(o),"onUpdate:modelValue":m[4]||(m[4]=y=>He(c)?c.value=y:null),class:ee(d(p).e("original")),type:"checkbox","aria-hidden":v.indeterminate?"true":"false",disabled:d(i),value:v.label,name:v.name,tabindex:v.tabindex,onChange:m[5]||(m[5]=(...y)=>d(u)&&d(u)(...y)),onFocus:m[6]||(m[6]=y=>f.value=!0),onBlur:m[7]||(m[7]=y=>f.value=!1)},null,42,h1)),[[jr,d(c)]]),re("span",{class:ee(d(p).e("inner"))},null,2)],10,d1),d(a)?(N(),te("span",{key:0,class:ee(d(p).e("label"))},[Be(v.$slots,"default"),v.$slots.default?de("v-if",!0):(N(),te($e,{key:0},[Nt(Ye(v.label),1)],64))],2)):de("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var g1=Ie(v1,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const b1=["name","tabindex","disabled","true-value","false-value"],y1=["name","tabindex","disabled","value"],w1={name:"ElCheckboxButton"},_1=we({...w1,props:tf,emits:nf,setup(e){const t=e,n=cs(),{focus:o,isChecked:r,isDisabled:s,size:i,model:l,handleChange:a}=of(t,n),{checkboxGroup:c}=_o(),u=ze("checkbox"),h=P(()=>{var f,p,v,m;const y=(p=(f=c==null?void 0:c.fill)==null?void 0:f.value)!=null?p:"";return{backgroundColor:y,borderColor:y,color:(m=(v=c==null?void 0:c.textColor)==null?void 0:v.value)!=null?m:"",boxShadow:y?`-1px 0 0 0 ${y}`:void 0}});return(f,p)=>(N(),te("label",{class:ee([d(u).b("button"),d(u).bm("button",d(i)),d(u).is("disabled",d(s)),d(u).is("checked",d(r)),d(u).is("focus",d(o))])},[f.trueLabel||f.falseLabel?at((N(),te("input",{key:0,"onUpdate:modelValue":p[0]||(p[0]=v=>He(l)?l.value=v:null),class:ee(d(u).be("button","original")),type:"checkbox",name:f.name,tabindex:f.tabindex,disabled:d(s),"true-value":f.trueLabel,"false-value":f.falseLabel,onChange:p[1]||(p[1]=(...v)=>d(a)&&d(a)(...v)),onFocus:p[2]||(p[2]=v=>o.value=!0),onBlur:p[3]||(p[3]=v=>o.value=!1)},null,42,b1)),[[jr,d(l)]]):at((N(),te("input",{key:1,"onUpdate:modelValue":p[4]||(p[4]=v=>He(l)?l.value=v:null),class:ee(d(u).be("button","original")),type:"checkbox",name:f.name,tabindex:f.tabindex,disabled:d(s),value:f.label,onChange:p[5]||(p[5]=(...v)=>d(a)&&d(a)(...v)),onFocus:p[6]||(p[6]=v=>o.value=!0),onBlur:p[7]||(p[7]=v=>o.value=!1)},null,42,y1)),[[jr,d(l)]]),f.$slots.default||f.label?(N(),te("span",{key:2,class:ee(d(u).be("button","inner")),style:Ke(d(r)?d(h):void 0)},[Be(f.$slots,"default",{},()=>[Nt(Ye(f.label),1)])],6)):de("v-if",!0)],2))}});var rf=Ie(_1,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const C1={name:"ElCheckboxGroup"},k1=we({...C1,props:r1,emits:f1,setup(e,{emit:t}){const n=e,{elFormItem:o}=_o(),{groupId:r,isLabeledByFormItem:s}=s1(n,{elFormItem:o}),i=Vn(),l=ze("checkbox"),a=u=>{t(Ot,u),Fe(()=>{t("change",u)})},c=P({get(){return n.modelValue},set(u){a(u)}});return mt("CheckboxGroup",{name:"ElCheckboxGroup",modelValue:c,...$c(n),checkboxGroupSize:i,changeEvent:a}),ue(()=>n.modelValue,()=>{var u;n.validateEvent&&((u=o.validate)==null||u.call(o,"change").catch(h=>void 0))}),(u,h)=>(N(),ie(nt(u.tag),{id:d(r),class:ee(d(l).b("group")),role:"group","aria-label":d(s)?void 0:u.label||"checkbox-group","aria-labelledby":d(s)?d(o).labelId:void 0},{default:ge(()=>[Be(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"]))}});var sf=Ie(k1,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const cr=Pt(g1,{CheckboxButton:rf,CheckboxGroup:sf});Ui(rf);Ui(sf);let Ls=!1;function tr(e,t){if(!Ue)return;const n=function(s){var i;(i=t.drag)==null||i.call(t,s)},o=function(s){var i;Oo(document,"mousemove",n),Oo(document,"mouseup",o),Oo(document,"touchmove",n),Oo(document,"touchend",o),document.onselectstart=null,document.ondragstart=null,Ls=!1,(i=t.end)==null||i.call(t,s)},r=function(s){var i;Ls||(s.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,dn(document,"mousemove",n),dn(document,"mouseup",o),dn(document,"touchmove",n),dn(document,"touchend",o),Ls=!0,(i=t.start)==null||i.call(t,s))};dn(e,"mousedown",r),dn(e,"touchstart",r)}const E1=we({name:"ElColorAlphaSlider",props:{color:{type:Object,required:!0},vertical:{type:Boolean,default:!1}},setup(e){const t=Qe(),n=oo(null),o=oo(null),r=H(0),s=H(0),i=H(null);ue(()=>e.color.get("alpha"),()=>{f()}),ue(()=>e.color.value,()=>{f()});function l(){if(e.vertical)return 0;const p=t.vnode.el,v=e.color.get("alpha");return p?Math.round(v*(p.offsetWidth-n.value.offsetWidth/2)/100):0}function a(){const p=t.vnode.el;if(!e.vertical)return 0;const v=e.color.get("alpha");return p?Math.round(v*(p.offsetHeight-n.value.offsetHeight/2)/100):0}function c(){if(e.color&&e.color.value){const{r:p,g:v,b:m}=e.color.toRgb();return`linear-gradient(to right, rgba(${p}, ${v}, ${m}, 0) 0%, rgba(${p}, ${v}, ${m}, 1) 100%)`}return null}function u(p){p.target!==n.value&&h(p)}function h(p){const m=t.vnode.el.getBoundingClientRect(),{clientX:y,clientY:b}=Ki(p);if(e.vertical){let S=b-m.top;S=Math.max(n.value.offsetHeight/2,S),S=Math.min(S,m.height-n.value.offsetHeight/2),e.color.set("alpha",Math.round((S-n.value.offsetHeight/2)/(m.height-n.value.offsetHeight)*100))}else{let S=y-m.left;S=Math.max(n.value.offsetWidth/2,S),S=Math.min(S,m.width-n.value.offsetWidth/2),e.color.set("alpha",Math.round((S-n.value.offsetWidth/2)/(m.width-n.value.offsetWidth)*100))}}function f(){r.value=l(),s.value=a(),i.value=c()}return We(()=>{const p={drag:v=>{h(v)},end:v=>{h(v)}};tr(o.value,p),tr(n.value,p),f()}),{thumb:n,bar:o,thumbLeft:r,thumbTop:s,background:i,handleClick:u,update:f}}});function S1(e,t,n,o,r,s){return N(),te("div",{class:ee(["el-color-alpha-slider",{"is-vertical":e.vertical}])},[re("div",{ref:"bar",class:"el-color-alpha-slider__bar",style:Ke({background:e.background}),onClick:t[0]||(t[0]=(...i)=>e.handleClick&&e.handleClick(...i))},null,4),re("div",{ref:"thumb",class:"el-color-alpha-slider__thumb",style:Ke({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,4)],2)}var x1=Ie(E1,[["render",S1],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/alpha-slider.vue"]]);const T1=we({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=Qe(),n=H(null),o=H(null),r=H(0),s=H(0),i=P(()=>e.color.get("hue"));ue(()=>i.value,()=>{h()});function l(f){f.target!==n.value&&a(f)}function a(f){const v=t.vnode.el.getBoundingClientRect(),{clientX:m,clientY:y}=Ki(f);let b;if(e.vertical){let S=y-v.top;S=Math.min(S,v.height-n.value.offsetHeight/2),S=Math.max(n.value.offsetHeight/2,S),b=Math.round((S-n.value.offsetHeight/2)/(v.height-n.value.offsetHeight)*360)}else{let S=m-v.left;S=Math.min(S,v.width-n.value.offsetWidth/2),S=Math.max(n.value.offsetWidth/2,S),b=Math.round((S-n.value.offsetWidth/2)/(v.width-n.value.offsetWidth)*360)}e.color.set("hue",b)}function c(){const f=t.vnode.el;if(e.vertical)return 0;const p=e.color.get("hue");return f?Math.round(p*(f.offsetWidth-n.value.offsetWidth/2)/360):0}function u(){const f=t.vnode.el;if(!e.vertical)return 0;const p=e.color.get("hue");return f?Math.round(p*(f.offsetHeight-n.value.offsetHeight/2)/360):0}function h(){r.value=c(),s.value=u()}return We(()=>{const f={drag:p=>{a(p)},end:p=>{a(p)}};tr(o.value,f),tr(n.value,f),h()}),{bar:o,thumb:n,thumbLeft:r,thumbTop:s,hueValue:i,handleClick:l,update:h}}});function $1(e,t,n,o,r,s){return N(),te("div",{class:ee(["el-color-hue-slider",{"is-vertical":e.vertical}])},[re("div",{ref:"bar",class:"el-color-hue-slider__bar",onClick:t[0]||(t[0]=(...i)=>e.handleClick&&e.handleClick(...i))},null,512),re("div",{ref:"thumb",class:"el-color-hue-slider__thumb",style:Ke({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,4)],2)}var O1=Ie(T1,[["render",$1],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/hue-slider.vue"]]);const lf=Symbol(),N1=()=>Re(lf),Ra=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},M1=function(e){return typeof e=="string"&&e.includes(".")&&Number.parseFloat(e)===1},A1=function(e){return typeof e=="string"&&e.includes("%")},ro=function(e,t){M1(e)&&(e="100%");const n=A1(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),n&&(e=Number.parseInt(`${e*t}`,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)},Ba={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},Ar=function(e){e=Math.min(Math.round(e),255);const t=Math.floor(e/16),n=e%16;return`${Ba[t]||t}${Ba[n]||n}`},za=function({r:e,g:t,b:n}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+n)?"":`#${Ar(e)}${Ar(t)}${Ar(n)}`},Fs={A:10,B:11,C:12,D:13,E:14,F:15},xn=function(e){return e.length===2?(Fs[e[0].toUpperCase()]||+e[0])*16+(Fs[e[1].toUpperCase()]||+e[1]):Fs[e[1].toUpperCase()]||+e[1]},I1=function(e,t,n){t=t/100,n=n/100;let o=t;const r=Math.max(n,.01);n*=2,t*=n<=1?n:2-n,o*=r<=1?r:2-r;const s=(n+t)/2,i=n===0?2*o/(r+o):2*t/(n+t);return{h:e,s:i*100,v:s*100}},Da=function(e,t,n){e=ro(e,255),t=ro(t,255),n=ro(n,255);const o=Math.max(e,t,n),r=Math.min(e,t,n);let s;const i=o,l=o-r,a=o===0?0:l/o;if(o===r)s=0;else{switch(o){case e:{s=(t-n)/l+(t{this._hue=Math.max(0,Math.min(360,o)),this._saturation=Math.max(0,Math.min(100,r)),this._value=Math.max(0,Math.min(100,s)),this.doOnChange()};if(t.includes("hsl")){const o=t.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(r=>r!=="").map((r,s)=>s>2?Number.parseFloat(r):Number.parseInt(r,10));if(o.length===4?this._alpha=Number.parseFloat(o[3])*100:o.length===3&&(this._alpha=100),o.length>=3){const{h:r,s,v:i}=I1(o[0],o[1],o[2]);n(r,s,i)}}else if(t.includes("hsv")){const o=t.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(r=>r!=="").map((r,s)=>s>2?Number.parseFloat(r):Number.parseInt(r,10));o.length===4?this._alpha=Number.parseFloat(o[3])*100:o.length===3&&(this._alpha=100),o.length>=3&&n(o[0],o[1],o[2])}else if(t.includes("rgb")){const o=t.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(r=>r!=="").map((r,s)=>s>2?Number.parseFloat(r):Number.parseInt(r,10));if(o.length===4?this._alpha=Number.parseFloat(o[3])*100:o.length===3&&(this._alpha=100),o.length>=3){const{h:r,s,v:i}=Da(o[0],o[1],o[2]);n(r,s,i)}}else if(t.includes("#")){const o=t.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(o))return;let r,s,i;o.length===3?(r=xn(o[0]+o[0]),s=xn(o[1]+o[1]),i=xn(o[2]+o[2])):(o.length===6||o.length===8)&&(r=xn(o.slice(0,2)),s=xn(o.slice(2,4)),i=xn(o.slice(4,6))),o.length===8?this._alpha=xn(o.slice(6))/255*100:(o.length===3||o.length===6)&&(this._alpha=100);const{h:l,s:a,v:c}=Da(r,s,i);n(l,a,c)}}compare(t){return Math.abs(t._hue-this._hue)<2&&Math.abs(t._saturation-this._saturation)<1&&Math.abs(t._value-this._value)<1&&Math.abs(t._alpha-this._alpha)<1}doOnChange(){const{_hue:t,_saturation:n,_value:o,_alpha:r,format:s}=this;if(this.enableAlpha)switch(s){case"hsl":{const i=Ra(t,n/100,o/100);this.value=`hsla(${t}, ${Math.round(i[1]*100)}%, ${Math.round(i[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${t}, ${Math.round(n)}%, ${Math.round(o)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${za(xo(t,n,o))}${Ar(r*255/100)}`;break}default:{const{r:i,g:l,b:a}=xo(t,n,o);this.value=`rgba(${i}, ${l}, ${a}, ${this.get("alpha")/100})`}}else switch(s){case"hsl":{const i=Ra(t,n/100,o/100);this.value=`hsl(${t}, ${Math.round(i[1]*100)}%, ${Math.round(i[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${t}, ${Math.round(n)}%, ${Math.round(o)}%)`;break}case"rgb":{const{r:i,g:l,b:a}=xo(t,n,o);this.value=`rgb(${i}, ${l}, ${a})`;break}default:this.value=za(xo(t,n,o))}}}const P1=we({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(e){const{currentColor:t}=N1(),n=H(r(e.colors,e.color));ue(()=>t.value,s=>{const i=new zo;i.fromString(s),n.value.forEach(l=>{l.selected=i.compare(l)})}),qd(()=>{n.value=r(e.colors,e.color)});function o(s){e.color.fromString(e.colors[s])}function r(s,i){return s.map(l=>{const a=new zo;return a.enableAlpha=!0,a.format="rgba",a.fromString(l),a.selected=a.value===i.value,a})}return{rgbaColors:n,handleSelect:o}}}),L1={class:"el-color-predefine"},F1={class:"el-color-predefine__colors"},R1=["onClick"];function B1(e,t,n,o,r,s){return N(),te("div",L1,[re("div",F1,[(N(!0),te($e,null,yn(e.rgbaColors,(i,l)=>(N(),te("div",{key:e.colors[l],class:ee(["el-color-predefine__color-selector",{selected:i.selected,"is-alpha":i._alpha<100}]),onClick:a=>e.handleSelect(l)},[re("div",{style:Ke({backgroundColor:i.value})},null,4)],10,R1))),128))])])}var z1=Ie(P1,[["render",B1],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);const D1=we({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=Qe(),n=H(0),o=H(0),r=H("hsl(0, 100%, 50%)"),s=P(()=>{const a=e.color.get("hue"),c=e.color.get("value");return{hue:a,value:c}});function i(){const a=e.color.get("saturation"),c=e.color.get("value"),u=t.vnode.el,{clientWidth:h,clientHeight:f}=u;o.value=a*h/100,n.value=(100-c)*f/100,r.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function l(a){const u=t.vnode.el.getBoundingClientRect(),{clientX:h,clientY:f}=Ki(a);let p=h-u.left,v=f-u.top;p=Math.max(0,p),p=Math.min(p,u.width),v=Math.max(0,v),v=Math.min(v,u.height),o.value=p,n.value=v,e.color.set({saturation:p/u.width*100,value:100-v/u.height*100})}return ue(()=>s.value,()=>{i()}),We(()=>{tr(t.vnode.el,{drag:a=>{l(a)},end:a=>{l(a)}}),i()}),{cursorTop:n,cursorLeft:o,background:r,colorValue:s,handleDrag:l,update:i}}}),H1=re("div",{class:"el-color-svpanel__white"},null,-1),V1=re("div",{class:"el-color-svpanel__black"},null,-1),j1=re("div",null,null,-1),K1=[j1];function U1(e,t,n,o,r,s){return N(),te("div",{class:"el-color-svpanel",style:Ke({backgroundColor:e.background})},[H1,V1,re("div",{class:"el-color-svpanel__cursor",style:Ke({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},K1,4)],4)}var W1=Ie(D1,[["render",U1],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]);const q1=we({name:"ElColorPicker",components:{ElButton:bs,ElTooltip:Ty,ElInput:Gi,ElIcon:bt,Close:qv,ArrowDown:bu,SvPanel:W1,HueSlider:O1,AlphaSlider:x1,Predefine:z1},directives:{ClickOutside:Jy},props:{modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:{type:String,validator:$g},popperClass:String,label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:Array,validateEvent:{type:Boolean,default:!0}},emits:["change","active-change",Ot],setup(e,{emit:t}){const{t:n}=Yi(),o=ze("color"),r=Re(rr,{}),s=Re(Hn,{}),{inputId:i,isLabeledByFormItem:l}=vs(e,{formItemContext:s}),a=H(),c=H(),u=H(),h=H(null);let f=!0;const p=Jt(new zo({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue})),v=H(!1),m=H(!1),y=H(""),b=P(()=>!e.modelValue&&!m.value?"transparent":T(p,e.showAlpha)),S=Vn(),x=P(()=>!!(e.disabled||r.disabled)),E=P(()=>!e.modelValue&&!m.value?"":p.value),k=P(()=>l.value?void 0:e.label||n("el.colorpicker.defaultLabel")),_=P(()=>l.value?s.labelId:void 0);ue(()=>e.modelValue,B=>{B?B&&B!==p.value&&(f=!1,p.fromString(B)):m.value=!1}),ue(()=>E.value,B=>{y.value=B,f&&t("active-change",B),f=!0}),ue(()=>p.value,()=>{!e.modelValue&&!m.value&&(m.value=!0)});function T(B,G){if(!(B instanceof zo))throw new TypeError("color should be instance of _color Class");const{r:J,g:me,b:Se}=B.toRgb();return G?`rgba(${J}, ${me}, ${Se}, ${B.get("alpha")/100})`:`rgb(${J}, ${me}, ${Se})`}function O(B){v.value=B}const R=ov(O,100);function q(){R(!1),X()}function X(){Fe(()=>{e.modelValue?p.fromString(e.modelValue):(p.value="",Fe(()=>{m.value=!1}))})}function U(){x.value||R(!v.value)}function M(){p.fromString(y.value)}function L(){var B;const G=p.value;t(Ot,G),t("change",G),e.validateEvent&&((B=s.validate)==null||B.call(s,"change").catch(J=>void 0)),R(!1),Fe(()=>{const J=new zo({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue});p.compare(J)||X()})}function Z(){var B;R(!1),t(Ot,null),t("change",null),e.modelValue!==null&&e.validateEvent&&((B=s.validate)==null||B.call(s,"change").catch(G=>void 0)),X()}return We(()=>{e.modelValue&&(y.value=E.value)}),ue(()=>v.value,()=>{Fe(()=>{var B,G,J;(B=a.value)==null||B.update(),(G=c.value)==null||G.update(),(J=u.value)==null||J.update()})}),mt(lf,{currentColor:E}),{color:p,colorDisabled:x,colorSize:S,displayedColor:b,showPanelColor:m,showPicker:v,customInput:y,buttonId:i,buttonAriaLabel:k,buttonAriaLabelledby:_,handleConfirm:M,hide:q,handleTrigger:U,clear:Z,confirmValue:L,t:n,ns:o,hue:a,svPanel:c,alpha:u,popper:h}}}),Y1=["id","aria-label","aria-labelledby","aria-description","tabindex"];function G1(e,t,n,o,r,s){const i=je("hue-slider"),l=je("sv-panel"),a=je("alpha-slider"),c=je("predefine"),u=je("el-input"),h=je("el-button"),f=je("arrow-down"),p=je("el-icon"),v=je("close"),m=je("el-tooltip"),y=sp("click-outside");return N(),ie(m,{ref:"popper",visible:e.showPicker,"onUpdate:visible":t[3]||(t[3]=b=>e.showPicker=b),"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[e.ns.be("picker","panel"),e.ns.b("dropdown"),e.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:"el-zoom-in-top",persistent:""},{content:ge(()=>[at((N(),te("div",null,[re("div",{class:ee(e.ns.be("dropdown","main-wrapper"))},[fe(i,{ref:"hue",class:"hue-slider",color:e.color,vertical:""},null,8,["color"]),fe(l,{ref:"svPanel",color:e.color},null,8,["color"])],2),e.showAlpha?(N(),ie(a,{key:0,ref:"alpha",color:e.color},null,8,["color"])):de("v-if",!0),e.predefine?(N(),ie(c,{key:1,ref:"predefine",color:e.color,colors:e.predefine},null,8,["color","colors"])):de("v-if",!0),re("div",{class:ee(e.ns.be("dropdown","btns"))},[re("span",{class:ee(e.ns.be("dropdown","value"))},[fe(u,{modelValue:e.customInput,"onUpdate:modelValue":t[0]||(t[0]=b=>e.customInput=b),"validate-event":!1,size:"small",onKeyup:Mn(e.handleConfirm,["enter"]),onBlur:e.handleConfirm},null,8,["modelValue","onKeyup","onBlur"])],2),fe(h,{class:ee(e.ns.be("dropdown","link-btn")),text:"",size:"small",onClick:e.clear},{default:ge(()=>[Nt(Ye(e.t("el.colorpicker.clear")),1)]),_:1},8,["class","onClick"]),fe(h,{plain:"",size:"small",class:ee(e.ns.be("dropdown","btn")),onClick:e.confirmValue},{default:ge(()=>[Nt(Ye(e.t("el.colorpicker.confirm")),1)]),_:1},8,["class","onClick"])],2)])),[[y,e.hide]])]),default:ge(()=>[re("div",{id:e.buttonId,class:ee([e.ns.b("picker"),e.ns.is("disabled",e.colorDisabled),e.ns.bm("picker",e.colorSize)]),role:"button","aria-label":e.buttonAriaLabel,"aria-labelledby":e.buttonAriaLabelledby,"aria-description":e.t("el.colorpicker.description",{color:e.modelValue||""}),tabindex:e.tabindex,onKeydown:t[2]||(t[2]=Mn((...b)=>e.handleTrigger&&e.handleTrigger(...b),["enter"]))},[e.colorDisabled?(N(),te("div",{key:0,class:ee(e.ns.be("picker","mask"))},null,2)):de("v-if",!0),re("div",{class:ee(e.ns.be("picker","trigger")),onClick:t[1]||(t[1]=(...b)=>e.handleTrigger&&e.handleTrigger(...b))},[re("span",{class:ee([e.ns.be("picker","color"),e.ns.is("alpha",e.showAlpha)])},[re("span",{class:ee(e.ns.be("picker","color-inner")),style:Ke({backgroundColor:e.displayedColor})},[at(fe(p,{class:ee([e.ns.be("picker","icon"),e.ns.is("icon-arrow-down")])},{default:ge(()=>[fe(f)]),_:1},8,["class"]),[[ao,e.modelValue||e.showPanelColor]]),!e.modelValue&&!e.showPanelColor?(N(),ie(p,{key:0,class:ee([e.ns.be("picker","empty"),e.ns.is("icon-close")])},{default:ge(()=>[fe(v)]),_:1},8,["class"])):de("v-if",!0)],6)],2)],2)],42,Y1)]),_:1},8,["visible","popper-class"])}var Ir=Ie(q1,[["render",G1],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/index.vue"]]);Ir.install=e=>{e.component(Ir.name,Ir)};const X1=Ir,Z1=X1,J1=De({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,disabled:Boolean,size:ir,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||Ve(e)||["min","max"].includes(e),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0}}),Q1={[xg]:(e,t)=>e!==t,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[Tg]:e=>Ve(e)||Yt(e),[Ot]:e=>Ve(e)||Yt(e)},ew=["aria-label","onKeydown"],tw=["aria-label","onKeydown"],nw={name:"ElInputNumber"},ow=we({...nw,props:J1,emits:Q1,setup(e,{expose:t,emit:n}){const o=e,{t:r}=Yi(),s=ze("input-number"),i=H(),l=Jt({currentValue:o.modelValue,userInput:null}),{formItem:a}=qi(),c=P(()=>Ve(o.modelValue)&&S(o.modelValue,-1)Ve(o.modelValue)&&S(o.modelValue)>o.max),h=P(()=>{const M=b(o.step);return In(o.precision)?Math.max(b(o.modelValue),M):(M>o.precision,o.precision)}),f=P(()=>o.controls&&o.controlsPosition==="right"),p=Vn(),v=ms(),m=P(()=>{if(l.userInput!==null)return l.userInput;let M=l.currentValue;if(Yt(M))return"";if(Ve(M)){if(Number.isNaN(M))return"";In(o.precision)||(M=M.toFixed(o.precision))}return M}),y=(M,L)=>{if(In(L)&&(L=h.value),L===0)return Math.round(M);let Z=String(M);const B=Z.indexOf(".");if(B===-1||!Z.replace(".","").split("")[B+L])return M;const me=Z.length;return Z.charAt(me-1)==="5"&&(Z=`${Z.slice(0,Math.max(0,me-1))}6`),Number.parseFloat(Number(Z).toFixed(L))},b=M=>{if(Yt(M))return 0;const L=M.toString(),Z=L.indexOf(".");let B=0;return Z!==-1&&(B=L.length-Z-1),B},S=(M,L=1)=>Ve(M)?y(M+o.step*L):l.currentValue,x=()=>{if(v.value||u.value)return;const M=o.modelValue||0,L=S(M);_(L)},E=()=>{if(v.value||c.value)return;const M=o.modelValue||0,L=S(M,-1);_(L)},k=(M,L)=>{const{max:Z,min:B,step:G,precision:J,stepStrictly:me,valueOnClear:Se}=o;let _e=Number(M);if(Yt(M)||Number.isNaN(_e))return null;if(M===""){if(Se===null)return null;_e=Ne(Se)?{min:B,max:Z}[Se]:Se}return me&&(_e=y(Math.round(_e/G)*G,J)),In(J)||(_e=y(_e,J)),(_e>Z||_eZ?Z:B,L&&n("update:modelValue",_e)),_e},_=M=>{var L;const Z=l.currentValue,B=k(M);Z!==B&&(l.userInput=null,n("update:modelValue",B),n("input",B),n("change",B,Z),o.validateEvent&&((L=a==null?void 0:a.validate)==null||L.call(a,"change").catch(G=>void 0)),l.currentValue=B)},T=M=>l.userInput=M,O=M=>{const L=M!==""?Number(M):"";(Ve(L)&&!Number.isNaN(L)||M==="")&&_(L),l.userInput=null},R=()=>{var M,L;(L=(M=i.value)==null?void 0:M.focus)==null||L.call(M)},q=()=>{var M,L;(L=(M=i.value)==null?void 0:M.blur)==null||L.call(M)},X=M=>{n("focus",M)},U=M=>{var L;n("blur",M),o.validateEvent&&((L=a==null?void 0:a.validate)==null||L.call(a,"blur").catch(Z=>void 0))};return ue(()=>o.modelValue,M=>{l.currentValue=k(M,!0),l.userInput=null},{immediate:!0}),We(()=>{var M;const{min:L,max:Z,modelValue:B}=o,G=(M=i.value)==null?void 0:M.input;if(G.setAttribute("role","spinbutton"),Number.isFinite(Z)?G.setAttribute("aria-valuemax",String(Z)):G.removeAttribute("aria-valuemax"),Number.isFinite(L)?G.setAttribute("aria-valuemin",String(L)):G.removeAttribute("aria-valuemin"),G.setAttribute("aria-valuenow",String(l.currentValue)),G.setAttribute("aria-disabled",String(v.value)),!Ve(B)&&B!=null){let J=Number(B);Number.isNaN(J)&&(J=null),n("update:modelValue",J)}}),nr(()=>{var M;const L=(M=i.value)==null?void 0:M.input;L==null||L.setAttribute("aria-valuenow",`${l.currentValue}`)}),t({focus:R,blur:q}),(M,L)=>(N(),te("div",{class:ee([d(s).b(),d(s).m(d(p)),d(s).is("disabled",d(v)),d(s).is("without-controls",!M.controls),d(s).is("controls-right",d(f))]),onDragstart:L[0]||(L[0]=zt(()=>{},["prevent"]))},[M.controls?at((N(),te("span",{key:0,role:"button","aria-label":d(r)("el.inputNumber.decrease"),class:ee([d(s).e("decrease"),d(s).is("disabled",d(c))]),onKeydown:Mn(E,["enter"])},[fe(d(bt),null,{default:ge(()=>[d(f)?(N(),ie(d(bu),{key:0})):(N(),ie(d(fg),{key:1}))]),_:1})],42,ew)),[[d(Fa),E]]):de("v-if",!0),M.controls?at((N(),te("span",{key:1,role:"button","aria-label":d(r)("el.inputNumber.increase"),class:ee([d(s).e("increase"),d(s).is("disabled",d(u))]),onKeydown:Mn(x,["enter"])},[fe(d(bt),null,{default:ge(()=>[d(f)?(N(),ie(d(Cv),{key:0})):(N(),ie(d(gg),{key:1}))]),_:1})],42,tw)),[[d(Fa),x]]):de("v-if",!0),fe(d(Gi),{id:M.id,ref_key:"input",ref:i,type:"number",step:M.step,"model-value":d(m),placeholder:M.placeholder,disabled:d(v),size:d(p),max:M.max,min:M.min,name:M.name,label:M.label,"validate-event":!1,onKeydown:[Mn(zt(x,["prevent"]),["up"]),Mn(zt(E,["prevent"]),["down"])],onBlur:U,onFocus:X,onInput:T,onChange:O},null,8,["id","step","model-value","placeholder","disabled","size","max","min","name","label","onKeydown"])],34))}});var rw=Ie(ow,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);const sw=Pt(rw),iw=De({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},href:{type:String,default:""},icon:{type:uo,default:""}}),lw={click:e=>e instanceof MouseEvent},aw=["href"],cw={name:"ElLink"},uw=we({...cw,props:iw,emits:lw,setup(e,{emit:t}){const n=e,o=ze("link");function r(s){n.disabled||t("click",s)}return(s,i)=>(N(),te("a",{class:ee([d(o).b(),d(o).m(s.type),d(o).is("disabled",s.disabled),d(o).is("underline",s.underline&&!s.disabled)]),href:s.disabled||!s.href?void 0:s.href,onClick:r},[s.icon?(N(),ie(d(bt),{key:0},{default:ge(()=>[(N(),ie(nt(s.icon)))]),_:1})):de("v-if",!0),s.$slots.default?(N(),te("span",{key:1,class:ee(d(o).e("inner"))},[Be(s.$slots,"default")],2)):de("v-if",!0),s.$slots.icon?Be(s.$slots,"icon",{key:2}):de("v-if",!0)],10,aw))}});var fw=Ie(uw,[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]);const dw=Pt(fw);var Ha=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function pw(e,t){return!!(e===t||Ha(e)&&Ha(t))}function hw(e,t){if(e.length!==t.length)return!1;for(var n=0;n{const t=Qe().proxy.$props;return P(()=>{const n=(o,r,s)=>({});return t.perfMode?hs(n):mw(n)})},Va="itemRendered",ja="scroll",af="forward",cf="backward",fi="auto",gw="smart",bw="start",Ka="center",yw="end",go="horizontal",il="vertical",ww="ltr",Pr="rtl",uf="negative",_w="positive-ascending",ff="positive-descending",Cw={[go]:"left",[il]:"top"},kw=20,Ew={[go]:"deltaX",[il]:"deltaY"},Sw=({atEndEdge:e,atStartEdge:t,layout:n},o)=>{let r,s=0;const i=a=>a<0&&t.value||a>0&&e.value;return{hasReachedEdge:i,onWheel:a=>{Eu(r);const c=a[Ew[n.value]];i(s)&&i(s+c)||(s+=c,Og()||a.preventDefault(),r=ku(()=>{o(s),s=0}))}}},di=It({type:Ee([Number,Function]),required:!0}),pi=It({type:Number}),hi=It({type:Number,default:2}),xw=It({type:String,values:["ltr","rtl"],default:"ltr"}),mi=It({type:Number,default:0}),Wr=It({type:Number,required:!0}),df=It({type:String,values:["horizontal","vertical"],default:il}),pf=De({className:{type:String,default:""},containerElement:{type:Ee([String,Object]),default:"div"},data:{type:Ee(Array),default:()=>Pn([])},direction:xw,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:Ee([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),Tw=De({cache:hi,estimatedItemSize:pi,layout:df,initScrollOffset:mi,total:Wr,itemSize:di,...pf}),vi={type:Number,default:6},hf={type:Number,default:0},mf={type:Number,default:2};De({columnCache:hi,columnWidth:di,estimatedColumnWidth:pi,estimatedRowHeight:pi,initScrollLeft:mi,initScrollTop:mi,itemKey:{type:Ee(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:hi,rowHeight:di,totalColumn:Wr,totalRow:Wr,hScrollbarSize:vi,vScrollbarSize:vi,scrollbarStartGap:hf,scrollbarEndGap:mf,...pf});const $w=De({alwaysOn:Boolean,class:String,layout:df,total:Wr,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:vi,startGap:hf,endGap:mf,visible:Boolean}),Rs=(e,t)=>ee===ww||e===Pr||e===go;let Xn=null;function Ua(e=!1){if(Xn===null||e){const t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";const o=document.createElement("div"),r=o.style;return r.width="100px",r.height="100px",t.appendChild(o),document.body.appendChild(t),t.scrollLeft>0?Xn=ff:(t.scrollLeft=1,t.scrollLeft===0?Xn=uf:Xn=_w),document.body.removeChild(t),Xn}return Xn}function Ow({move:e,size:t,bar:n},o){const r={},s=`translate${n.axis}(${e}px)`;return r[n.size]=t,r.transform=s,r.msTransform=s,r.webkitTransform=s,o==="horizontal"?r.height="100%":r.width="100%",r}const Nw=we({name:"ElVirtualScrollBar",props:$w,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=P(()=>e.startGap+e.endGap),o=ze("virtual-scrollbar"),r=ze("scrollbar"),s=H(),i=H();let l=null,a=null;const c=Jt({isDragging:!1,traveled:0}),u=P(()=>Iu[e.layout]),h=P(()=>e.clientSize-d(n)),f=P(()=>({position:"absolute",width:`${go===e.layout?h.value:e.scrollbarSize}px`,height:`${go===e.layout?e.scrollbarSize:h.value}px`,[Cw[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),p=P(()=>{const _=e.ratio,T=e.clientSize;if(_>=100)return Number.POSITIVE_INFINITY;if(_>=50)return _*T/100;const O=T/3;return Math.floor(Math.min(Math.max(_*T,kw),O))}),v=P(()=>{if(!Number.isFinite(p.value))return{display:"none"};const _=`${p.value}px`;return Ow({bar:u.value,size:_,move:c.traveled},e.layout)}),m=P(()=>Math.floor(e.clientSize-p.value-d(n))),y=()=>{window.addEventListener("mousemove",E),window.addEventListener("mouseup",x);const _=d(i);!_||(a=document.onselectstart,document.onselectstart=()=>!1,_.addEventListener("touchmove",E),_.addEventListener("touchend",x))},b=()=>{window.removeEventListener("mousemove",E),window.removeEventListener("mouseup",x),document.onselectstart=a,a=null;const _=d(i);!_||(_.removeEventListener("touchmove",E),_.removeEventListener("touchend",x))},S=_=>{_.stopImmediatePropagation(),!(_.ctrlKey||[1,2].includes(_.button))&&(c.isDragging=!0,c[u.value.axis]=_.currentTarget[u.value.offset]-(_[u.value.client]-_.currentTarget.getBoundingClientRect()[u.value.direction]),t("start-move"),y())},x=()=>{c.isDragging=!1,c[u.value.axis]=0,t("stop-move"),b()},E=_=>{const{isDragging:T}=c;if(!T||!i.value||!s.value)return;const O=c[u.value.axis];if(!O)return;Eu(l);const R=(s.value.getBoundingClientRect()[u.value.direction]-_[u.value.client])*-1,q=i.value[u.value.offset]-O,X=R-q;l=ku(()=>{c.traveled=Math.max(e.startGap,Math.min(X,m.value)),t("scroll",X,m.value)})},k=_=>{const T=Math.abs(_.target.getBoundingClientRect()[u.value.direction]-_[u.value.client]),O=i.value[u.value.offset]/2,R=T-O;c.traveled=Math.max(0,Math.min(R,m.value)),t("scroll",R,m.value)};return ue(()=>e.scrollFrom,_=>{c.isDragging||(c.traveled=Math.ceil(_*m.value))}),Mt(()=>{b()}),()=>pn("div",{role:"presentation",ref:s,class:[o.b(),e.class,(e.alwaysOn||c.isDragging)&&"always-on"],style:f.value,onMousedown:zt(k,["stop","prevent"]),onTouchstartPrevent:S},pn("div",{ref:i,class:r.e("thumb"),style:v.value,onMousedown:S},[]))}}),Mw=({name:e,getOffset:t,getItemSize:n,getItemOffset:o,getEstimatedTotalSize:r,getStartIndexForOffset:s,getStopIndexForStartIndex:i,initCache:l,clearCache:a,validateProps:c})=>we({name:e!=null?e:"ElVirtualList",props:Tw,emits:[Va,ja],setup(u,{emit:h,expose:f}){c(u);const p=Qe(),v=ze("vl"),m=H(l(u,p)),y=vw(),b=H(),S=H(),x=H(),E=H({isScrolling:!1,scrollDir:"forward",scrollOffset:Ve(u.initScrollOffset)?u.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:u.scrollbarAlwaysOn}),k=P(()=>{const{total:ne,cache:ve}=u,{isScrolling:pe,scrollDir:j,scrollOffset:I}=d(E);if(ne===0)return[0,0,0,0];const Q=s(u,I,d(m)),le=i(u,Q,I,d(m)),Ce=!pe||j===cf?Math.max(1,ve):1,Me=!pe||j===af?Math.max(1,ve):1;return[Math.max(0,Q-Ce),Math.max(0,Math.min(ne-1,le+Me)),Q,le]}),_=P(()=>r(u,d(m))),T=P(()=>gi(u.layout)),O=P(()=>[{position:"relative",[`overflow-${T.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:u.direction,height:Ve(u.height)?`${u.height}px`:u.height,width:Ve(u.width)?`${u.width}px`:u.width},u.style]),R=P(()=>{const ne=d(_),ve=d(T);return{height:ve?"100%":`${ne}px`,pointerEvents:d(E).isScrolling?"none":void 0,width:ve?`${ne}px`:"100%"}}),q=P(()=>T.value?u.width:u.height),{onWheel:X}=Sw({atStartEdge:P(()=>E.value.scrollOffset<=0),atEndEdge:P(()=>E.value.scrollOffset>=_.value),layout:P(()=>u.layout)},ne=>{var ve,pe;(pe=(ve=x.value).onMouseUp)==null||pe.call(ve),G(Math.min(E.value.scrollOffset+ne,_.value-q.value))}),U=()=>{const{total:ne}=u;if(ne>0){const[I,Q,le,Ce]=d(k);h(Va,I,Q,le,Ce)}const{scrollDir:ve,scrollOffset:pe,updateRequested:j}=d(E);h(ja,ve,pe,j)},M=ne=>{const{clientHeight:ve,scrollHeight:pe,scrollTop:j}=ne.currentTarget,I=d(E);if(I.scrollOffset===j)return;const Q=Math.max(0,Math.min(j,pe-ve));E.value={...I,isScrolling:!0,scrollDir:Rs(I.scrollOffset,Q),scrollOffset:Q,updateRequested:!1},Fe(Se)},L=ne=>{const{clientWidth:ve,scrollLeft:pe,scrollWidth:j}=ne.currentTarget,I=d(E);if(I.scrollOffset===pe)return;const{direction:Q}=u;let le=pe;if(Q===Pr)switch(Ua()){case uf:{le=-pe;break}case ff:{le=j-ve-pe;break}}le=Math.max(0,Math.min(le,j-ve)),E.value={...I,isScrolling:!0,scrollDir:Rs(I.scrollOffset,le),scrollOffset:le,updateRequested:!1},Fe(Se)},Z=ne=>{d(T)?L(ne):M(ne),U()},B=(ne,ve)=>{const pe=(_.value-q.value)/ve*ne;G(Math.min(_.value-q.value,pe))},G=ne=>{ne=Math.max(ne,0),ne!==d(E).scrollOffset&&(E.value={...d(E),scrollOffset:ne,scrollDir:Rs(d(E).scrollOffset,ne),updateRequested:!0},Fe(Se))},J=(ne,ve=fi)=>{const{scrollOffset:pe}=d(E);ne=Math.max(0,Math.min(ne,u.total-1)),G(t(u,ne,ve,pe,d(m)))},me=ne=>{const{direction:ve,itemSize:pe,layout:j}=u,I=y.value(a&&pe,a&&j,a&&ve);let Q;if(ye(I,String(ne)))Q=I[ne];else{const le=o(u,ne,d(m)),Ce=n(u,ne,d(m)),Me=d(T),Oe=ve===Pr,g=Me?le:0;I[ne]=Q={position:"absolute",left:Oe?void 0:`${g}px`,right:Oe?`${g}px`:void 0,top:Me?0:`${le}px`,height:Me?"100%":`${Ce}px`,width:Me?`${Ce}px`:"100%"}}return Q},Se=()=>{E.value.isScrolling=!1,Fe(()=>{y.value(-1,null,null)})},_e=()=>{const ne=b.value;ne&&(ne.scrollTop=0)};We(()=>{if(!Ue)return;const{initScrollOffset:ne}=u,ve=d(b);Ve(ne)&&ve&&(d(T)?ve.scrollLeft=ne:ve.scrollTop=ne),U()}),nr(()=>{const{direction:ne,layout:ve}=u,{scrollOffset:pe,updateRequested:j}=d(E),I=d(b);if(j&&I)if(ve===go)if(ne===Pr)switch(Ua()){case"negative":{I.scrollLeft=-pe;break}case"positive-ascending":{I.scrollLeft=pe;break}default:{const{clientWidth:Q,scrollWidth:le}=I;I.scrollLeft=le-Q-pe;break}}else I.scrollLeft=pe;else I.scrollTop=pe});const Te={ns:v,clientSize:q,estimatedTotalSize:_,windowStyle:O,windowRef:b,innerRef:S,innerStyle:R,itemsToRender:k,scrollbarRef:x,states:E,getItemStyle:me,onScroll:Z,onScrollbarScroll:B,onWheel:X,scrollTo:G,scrollToItem:J,resetScrollTop:_e};return f({windowRef:b,innerRef:S,getItemStyleCache:y,scrollTo:G,scrollToItem:J,resetScrollTop:_e,states:E}),Te},render(u){var h;const{$slots:f,className:p,clientSize:v,containerElement:m,data:y,getItemStyle:b,innerElement:S,itemsToRender:x,innerStyle:E,layout:k,total:_,onScroll:T,onScrollbarScroll:O,onWheel:R,states:q,useIsScrolling:X,windowStyle:U,ns:M}=u,[L,Z]=x,B=nt(m),G=nt(S),J=[];if(_>0)for(let Te=L;Te<=Z;Te++)J.push((h=f.default)==null?void 0:h.call(f,{data:y,key:Te,index:Te,isScrolling:X?q.isScrolling:void 0,style:b(Te)}));const me=[pn(G,{style:E,ref:"innerRef"},Ne(G)?J:{default:()=>J})],Se=pn(Nw,{ref:"scrollbarRef",clientSize:v,layout:k,onScroll:O,ratio:v*100/this.estimatedTotalSize,scrollFrom:q.scrollOffset/(this.estimatedTotalSize-v),total:_}),_e=pn(B,{class:[M.e("window"),p],style:U,onScroll:T,onWheel:R,ref:"windowRef",key:0},Ne(B)?[me]:{default:()=>[me]});return pn("div",{key:0,class:[M.e("wrapper"),q.scrollbarAlwaysOn?"always-on":""]},[_e,Se])}}),Aw=Mw({name:"ElFixedSizeList",getItemOffset:({itemSize:e},t)=>t*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:t})=>t*e,getOffset:({height:e,total:t,itemSize:n,layout:o,width:r},s,i,l)=>{const a=gi(o)?r:e,c=Math.max(0,t*n-a),u=Math.min(c,s*n),h=Math.max(0,(s+1)*n-a);switch(i===gw&&(l>=h-a&&l<=u+a?i=fi:i=Ka),i){case bw:return u;case yw:return h;case Ka:{const f=Math.round(h+(u-h)/2);return fc+Math.floor(a/2)?c:f}case fi:default:return l>=h&&l<=u?l:lMath.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:o,width:r},s,i)=>{const l=s*n,a=gi(o)?r:e,c=Math.ceil((a+i-l)/n);return Math.max(0,Math.min(t-1,s+c-1))},initCache(){},clearCache:!0,validateProps(){}}),ll=Symbol(),Iw={key:-1,level:-1,data:{}};var No=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e))(No||{}),bi=(e=>(e.ADD="add",e.DELETE="delete",e))(bi||{});const Pw=De({data:{type:Ee(Array),default:()=>Pn([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:Ee(Object),default:()=>Pn({children:"children",label:"label",disabled:"disabled",value:"id"})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:Ee(Array),default:()=>Pn([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:Ee(Array),default:()=>Pn([])},indent:{type:Number,default:16},icon:{type:uo},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:Ee([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:Ee(Function)},perfMode:{type:Boolean,default:!0}}),Lw=De({node:{type:Ee(Object),default:()=>Pn(Iw)},expanded:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},current:{type:Boolean,default:!1},hiddenExpandIcon:{type:Boolean,default:!1}}),Fw=De({node:{type:Ee(Object),required:!0}}),vf="node-click",gf="node-expand",bf="node-collapse",yf="current-change",wf="check",_f="check-change",Cf="node-contextmenu",Rw={[vf]:(e,t,n)=>e&&t&&n,[gf]:(e,t)=>e&&t,[bf]:(e,t)=>e&&t,[yf]:(e,t)=>e&&t,[wf]:(e,t)=>e&&t,[_f]:(e,t)=>e&&typeof t=="boolean",[Cf]:(e,t,n)=>e&&t&&n},Bw={click:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&typeof t=="boolean"};function zw(e,t){const n=H(new Set),o=H(new Set),{emit:r}=Qe();ue(()=>t.value,()=>Fe(()=>{S(e.defaultCheckedKeys)}),{immediate:!0});const s=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:x,maxLevel:E}=t.value,k=n.value,_=new Set;for(let T=E-1;T>=1;--T){const O=x.get(T);!O||O.forEach(R=>{const q=R.children;if(q){let X=!0,U=!1;for(const M of q){const L=M.key;if(k.has(L))U=!0;else if(_.has(L)){X=!1,U=!0;break}else X=!1}X?k.add(R.key):U?(_.add(R.key),k.delete(R.key)):(k.delete(R.key),_.delete(R.key))}})}o.value=_},i=x=>n.value.has(x.key),l=x=>o.value.has(x.key),a=(x,E,k=!0)=>{const _=n.value,T=(O,R)=>{_[R?bi.ADD:bi.DELETE](O.key);const q=O.children;!e.checkStrictly&&q&&q.forEach(X=>{X.disabled||T(X,R)})};T(x,E),s(),k&&c(x,E)},c=(x,E)=>{const{checkedNodes:k,checkedKeys:_}=v(),{halfCheckedNodes:T,halfCheckedKeys:O}=m();r(wf,x.data,{checkedKeys:_,checkedNodes:k,halfCheckedKeys:O,halfCheckedNodes:T}),r(_f,x.data,E)};function u(x=!1){return v(x).checkedKeys}function h(x=!1){return v(x).checkedNodes}function f(){return m().halfCheckedKeys}function p(){return m().halfCheckedNodes}function v(x=!1){const E=[],k=[];if((t==null?void 0:t.value)&&e.showCheckbox){const{treeNodeMap:_}=t.value;n.value.forEach(T=>{const O=_.get(T);O&&(!x||x&&O.isLeaf)&&(k.push(T),E.push(O.data))})}return{checkedKeys:k,checkedNodes:E}}function m(){const x=[],E=[];if((t==null?void 0:t.value)&&e.showCheckbox){const{treeNodeMap:k}=t.value;o.value.forEach(_=>{const T=k.get(_);T&&(E.push(_),x.push(T.data))})}return{halfCheckedNodes:x,halfCheckedKeys:E}}function y(x){n.value.clear(),o.value.clear(),S(x)}function b(x,E){if((t==null?void 0:t.value)&&e.showCheckbox){const k=t.value.treeNodeMap.get(x);k&&a(k,E,!1)}}function S(x){if(t!=null&&t.value){const{treeNodeMap:E}=t.value;if(e.showCheckbox&&E&&x)for(const k of x){const _=E.get(k);_&&!i(_)&&a(_,!0,!1)}}}return{updateCheckedKeys:s,toggleCheckbox:a,isChecked:i,isIndeterminate:l,getCheckedKeys:u,getCheckedNodes:h,getHalfCheckedKeys:f,getHalfCheckedNodes:p,setChecked:b,setCheckedKeys:y}}function Dw(e,t){const n=H(new Set([])),o=H(new Set([])),r=P(()=>he(e.filterMethod));function s(l){var a;if(!r.value)return;const c=new Set,u=o.value,h=n.value,f=[],p=((a=t.value)==null?void 0:a.treeNodes)||[],v=e.filterMethod;h.clear();function m(y){y.forEach(b=>{f.push(b),v!=null&&v(l,b.data)?f.forEach(x=>{c.add(x.key)}):b.isLeaf&&h.add(b.key);const S=b.children;if(S&&m(S),!b.isLeaf){if(!c.has(b.key))h.add(b.key);else if(S){let x=!0;for(const E of S)if(!h.has(E.key)){x=!1;break}x?u.add(b.key):u.delete(b.key)}}f.pop()})}return m(p),c}function i(l){return o.value.has(l.key)}return{hiddenExpandIconKeySet:o,hiddenNodeKeySet:n,doFilter:s,isForceHiddenExpandIcon:i}}function Hw(e,t){const n=H(new Set(e.defaultExpandedKeys)),o=H(),r=oo();ue(()=>e.currentNodeKey,j=>{o.value=j},{immediate:!0}),ue(()=>e.data,j=>{pe(j)},{immediate:!0});const{isIndeterminate:s,isChecked:i,toggleCheckbox:l,getCheckedKeys:a,getCheckedNodes:c,getHalfCheckedKeys:u,getHalfCheckedNodes:h,setChecked:f,setCheckedKeys:p}=zw(e,r),{doFilter:v,hiddenNodeKeySet:m,isForceHiddenExpandIcon:y}=Dw(e,r),b=P(()=>{var j;return((j=e.props)==null?void 0:j.value)||No.KEY}),S=P(()=>{var j;return((j=e.props)==null?void 0:j.children)||No.CHILDREN}),x=P(()=>{var j;return((j=e.props)==null?void 0:j.disabled)||No.DISABLED}),E=P(()=>{var j;return((j=e.props)==null?void 0:j.label)||No.LABEL}),k=P(()=>{const j=n.value,I=m.value,Q=[],le=r.value&&r.value.treeNodes||[];function Ce(){const Me=[];for(let Oe=le.length-1;Oe>=0;--Oe)Me.push(le[Oe]);for(;Me.length;){const Oe=Me.pop();if(!!Oe&&(I.has(Oe.key)||Q.push(Oe),j.has(Oe.key))){const g=Oe.children;if(g){const w=g.length;for(let $=w-1;$>=0;--$)Me.push(g[$])}}}}return Ce(),Q}),_=P(()=>k.value.length>0);function T(j){const I=new Map,Q=new Map;let le=1;function Ce(Oe,g=1,w=void 0){var $;const F=[];for(const A of Oe){const V=q(A),Y={level:g,key:V,data:A};Y.label=U(A),Y.parent=w;const z=R(A);Y.disabled=X(A),Y.isLeaf=!z||z.length===0,z&&z.length&&(Y.children=Ce(z,g+1,Y)),F.push(Y),I.set(V,Y),Q.has(g)||Q.set(g,[]),($=Q.get(g))==null||$.push(Y)}return g>le&&(le=g),F}const Me=Ce(j);return{treeNodeMap:I,levelTreeNodeMap:Q,maxLevel:le,treeNodes:Me}}function O(j){const I=v(j);I&&(n.value=I)}function R(j){return j[S.value]}function q(j){return j?j[b.value]:""}function X(j){return j[x.value]}function U(j){return j[E.value]}function M(j){n.value.has(j.key)?J(j):G(j)}function L(j,I){t(vf,j.data,j,I),Z(j),e.expandOnClickNode&&M(j),e.showCheckbox&&e.checkOnClickNode&&!j.disabled&&l(j,!i(j),!0)}function Z(j){_e(j)||(o.value=j.key,t(yf,j.data,j))}function B(j,I){l(j,I)}function G(j){const I=n.value;if((r==null?void 0:r.value)&&e.accordion){const{treeNodeMap:Q}=r.value;I.forEach(le=>{const Ce=Q.get(le);Ce&&Ce.level===Ce.level&&I.delete(le)})}I.add(j.key),t(gf,j.data,j)}function J(j){n.value.delete(j.key),t(bf,j.data,j)}function me(j){return n.value.has(j.key)}function Se(j){return!!j.disabled}function _e(j){const I=o.value;return!!I&&I===j.key}function Te(){var j,I;if(!!o.value)return(I=(j=r==null?void 0:r.value)==null?void 0:j.treeNodeMap.get(o.value))==null?void 0:I.data}function ne(){return o.value}function ve(j){o.value=j}function pe(j){Fe(()=>r.value=T(j))}return{tree:r,flattenTree:k,isNotEmpty:_,getKey:q,getChildren:R,toggleExpand:M,toggleCheckbox:l,isExpanded:me,isChecked:i,isIndeterminate:s,isDisabled:Se,isCurrent:_e,isForceHiddenExpandIcon:y,handleNodeClick:L,handleNodeCheck:B,getCurrentNode:Te,getCurrentKey:ne,setCurrentKey:ve,getCheckedKeys:a,getCheckedNodes:c,getHalfCheckedKeys:u,getHalfCheckedNodes:h,setChecked:f,setCheckedKeys:p,filter:O,setData:pe}}var Vw=we({name:"ElTreeNodeContent",props:Fw,setup(e){const t=Re(ll),n=ze("tree");return()=>{const o=e.node,{data:r}=o;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:o,data:r}):pn("span",{class:n.be("node","label")},[o==null?void 0:o.label])}}});const jw="caret-right",Kw=we({name:"ElTreeNode",components:{ElIcon:bt,CaretRight:$v,ElCheckbox:cr,ElNodeContent:Vw},props:Lw,emits:Bw,setup(e,{emit:t}){const n=Re(ll),o=ze("tree"),r=P(()=>{var u;return(u=n==null?void 0:n.props.indent)!=null?u:16}),s=P(()=>{var u;return(u=n==null?void 0:n.props.icon)!=null?u:jw});return{ns:o,indent:r,icon:s,handleClick:u=>{t("click",e.node,u)},handleExpandIconClick:()=>{t("toggle",e.node)},handleCheckChange:u=>{t("check",e.node,u)},handleContextMenu:u=>{var h,f,p,v;(p=(f=(h=n==null?void 0:n.instance)==null?void 0:h.vnode)==null?void 0:f.props)!=null&&p.onNodeContextmenu&&(u.stopPropagation(),u.preventDefault()),n==null||n.ctx.emit(Cf,u,(v=e.node)==null?void 0:v.data,e.node)}}}}),Uw=["aria-expanded","aria-disabled","aria-checked","data-key"];function Ww(e,t,n,o,r,s){var i,l,a;const c=je("el-icon"),u=je("el-checkbox"),h=je("el-node-content");return N(),te("div",{ref:"node$",class:ee([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.current),e.ns.is("focusable",!e.disabled),e.ns.is("checked",!e.disabled&&e.checked)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.disabled,"aria-checked":e.checked,"data-key":(i=e.node)==null?void 0:i.key,onClick:t[1]||(t[1]=zt((...f)=>e.handleClick&&e.handleClick(...f),["stop"])),onContextmenu:t[2]||(t[2]=(...f)=>e.handleContextMenu&&e.handleContextMenu(...f))},[re("div",{class:ee(e.ns.be("node","content")),style:Ke({paddingLeft:`${(e.node.level-1)*e.indent}px`})},[e.icon?(N(),ie(c,{key:0,class:ee([e.ns.is("leaf",!!((l=e.node)!=null&&l.isLeaf)),e.ns.is("hidden",e.hiddenExpandIcon),{expanded:!((a=e.node)!=null&&a.isLeaf)&&e.expanded},e.ns.be("node","expand-icon")]),onClick:zt(e.handleExpandIconClick,["stop"])},{default:ge(()=>[(N(),ie(nt(e.icon)))]),_:1},8,["class","onClick"])):de("v-if",!0),e.showCheckbox?(N(),ie(u,{key:1,"model-value":e.checked,indeterminate:e.indeterminate,disabled:e.disabled,onChange:e.handleCheckChange,onClick:t[0]||(t[0]=zt(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled","onChange"])):de("v-if",!0),fe(h,{node:e.node},null,8,["node"])],6)],42,Uw)}var qw=Ie(Kw,[["render",Ww],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree-node.vue"]]);const Yw=we({name:"ElTreeV2",components:{ElTreeNode:qw,FixedSizeList:Aw},props:Pw,emits:Rw,setup(e,t){mt(ll,{ctx:t,props:e,instance:Qe()}),mt(Hn,void 0);const{t:n}=Yi(),o=ze("tree"),{flattenTree:r,isNotEmpty:s,toggleExpand:i,isExpanded:l,isIndeterminate:a,isChecked:c,isDisabled:u,isCurrent:h,isForceHiddenExpandIcon:f,toggleCheckbox:p,handleNodeClick:v,handleNodeCheck:m,getCurrentNode:y,getCurrentKey:b,setCurrentKey:S,getCheckedKeys:x,getCheckedNodes:E,getHalfCheckedKeys:k,getHalfCheckedNodes:_,setChecked:T,setCheckedKeys:O,filter:R,setData:q}=Hw(e,t.emit);return t.expose({getCurrentNode:y,getCurrentKey:b,setCurrentKey:S,getCheckedKeys:x,getCheckedNodes:E,getHalfCheckedKeys:k,getHalfCheckedNodes:_,setChecked:T,setCheckedKeys:O,filter:R,setData:q}),{t:n,ns:o,flattenTree:r,itemSize:26,isNotEmpty:s,toggleExpand:i,toggleCheckbox:p,isExpanded:l,isIndeterminate:a,isChecked:c,isDisabled:u,isCurrent:h,isForceHiddenExpandIcon:f,handleNodeClick:v,handleNodeCheck:m}}});function Gw(e,t,n,o,r,s){var i;const l=je("el-tree-node"),a=je("fixed-size-list");return N(),te("div",{class:ee([e.ns.b(),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[e.isNotEmpty?(N(),ie(a,{key:0,"class-name":e.ns.b("virtual-list"),data:e.flattenTree,total:e.flattenTree.length,height:e.height,"item-size":e.itemSize,"perf-mode":e.perfMode},{default:ge(({data:c,index:u,style:h})=>[(N(),ie(l,{key:c[u].key,style:Ke(h),node:c[u],expanded:e.isExpanded(c[u]),"show-checkbox":e.showCheckbox,checked:e.isChecked(c[u]),indeterminate:e.isIndeterminate(c[u]),disabled:e.isDisabled(c[u]),current:e.isCurrent(c[u]),"hidden-expand-icon":e.isForceHiddenExpandIcon(c[u]),onClick:e.handleNodeClick,onToggle:e.toggleExpand,onCheck:e.handleNodeCheck},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode"])):(N(),te("div",{key:1,class:ee(e.ns.e("empty-block"))},[re("span",{class:ee(e.ns.e("empty-text"))},Ye((i=e.emptyText)!=null?i:e.t("el.tree.emptyText")),3)],2))],2)}var Xw=Ie(Yw,[["render",Gw],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree.vue"]]);const Zw=Pt(Xw);const Jw=re("div",{style:{width:"100%",height:"30px","background-color":"#26282f",display:"flex","align-items":"center","justify-content":"center",color:"white"},class:"modal-drag"}," Profiler ",-1),Qw={style:{width:"100%"}},e_={style:{flex:"1","text-align":"right"}},kf=we({__name:"ProfilerPanel",props:{show:Boolean},setup(e){let t=H([]);function n(){const r=window.cc;if(!r||!r.profiler||!r.profiler._stats)return;const s=r.profiler._stats;t.value.forEach(i=>{const l=s[i.key];i.desc=l.desc,l.isInteger?i.value=l.counter._value|0:i.value=l.counter._value.toFixed(2)}),setTimeout(n,1e3)}function o(){t.value=[{key:"fps",desc:"",value:0},{key:"draws",desc:"",value:0},{key:"frame",desc:"",value:0},{key:"instances",desc:"",value:0},{key:"tricount",desc:"",value:0},{key:"logic",desc:"",value:0},{key:"physics",desc:"",value:0},{key:"render",desc:"",value:0},{key:"textureMemory",desc:"",value:0},{key:"bufferMemory",desc:"",value:0}],n()}return We(()=>{o()}),(r,s)=>(N(),te($e,null,[Jw,re("div",Qw,[(N(!0),te($e,null,yn(d(t),i=>(N(),te("div",{class:"row",key:i.key},[re("span",null,Ye(i.desc),1),re("span",e_,Ye(i.value),1)]))),128))])],64))}});const t_={class:"row"},n_={style:{flex:"1"}},Ef=we({__name:"PropItem",props:{model:null,propName:null,propKey:null,updateKey:null},setup(e){const t=e;function n(){const r=t.model[t.propKey],s=typeof r;return s==="object"&&r.__classname__?r.__classname__:s}class o{static get color(){const s=t.model[t.propKey],i=s.a.toString(16);return`#${s.toHEX()}${i.length===1?"0"+i:i}`}static set color(s){t.model[t.propKey]=new cc.Color().fromHEX(s)}}return(r,s)=>{const i=sw,l=Gi,a=cr,c=Z1;return N(),te("div",t_,[re("span",n_,Ye(e.propName),1),n()=="number"?(N(),ie(i,{key:0,modelValue:e.model[e.propKey],"onUpdate:modelValue":s[0]||(s[0]=u=>e.model[e.propKey]=u),precision:2,size:"small","controls-position":"right",style:{flex:"1"}},null,8,["modelValue"])):n()=="string"?(N(),ie(l,{key:1,size:"small",modelValue:e.model[e.propKey],"onUpdate:modelValue":s[1]||(s[1]=u=>e.model[e.propKey]=u),style:{flex:"1"}},null,8,["modelValue"])):n()=="boolean"?(N(),ie(a,{key:2,modelValue:e.model[e.propKey],"onUpdate:modelValue":s[2]||(s[2]=u=>e.model[e.propKey]=u),size:"small",style:{"margin-left":"10px"}},null,8,["modelValue"])):n()=="cc.Color"?(N(),ie(c,{key:3,modelValue:o.color,"onUpdate:modelValue":s[3]||(s[3]=u=>o.color=u),size:"small",style:{flex:"1"},"color-format":"hex","show-alpha":""},null,8,["modelValue"])):de("",!0)])}}});class bo{static checkNodeValid(t){return t&&cc.isValid(t)}static outputToConsole(t){let n=1;for(;window["temp"+n]!==void 0;)n++;window["temp"+n]=t,console.log("temp"+n),console.log(window["temp"+n])}static drawNodeRect(t){let n,o=t.getComponent(cc.UITransformComponent);if(o)n=this.getSelfBoundingBoxToWold(o);else{let f=cc.v3();t.getWorldPosition(f),n=cc.rect(f.x,f.y,0,0)}let r=new cc.Node("Canvas");cc.director.getScene().addChild(r),r.addComponent(cc.Canvas);let i=new cc.Node,l=i.addComponent(cc.GraphicsComponent),a=i.addComponent(cc.UITransformComponent);r.addChild(i);let c=cc.v3(n.center.x,n.center.y,0),u=cc.v3();return r.getComponent(cc.UITransformComponent).convertToNodeSpaceAR(c,u),i.setPosition(u),i.layer=t.layer,n.width===0||n.height===0?(l.circle(0,0,100),l.fillColor=cc.Color.GREEN,l.fill()):(a.width=n.width,a.height=n.height,l.rect(-a.width/2,-a.height/2,a.width,a.height),l.fillColor=new cc.Color().fromHEX("#E91E6390"),l.fill()),setTimeout(()=>{cc.isValid(r)&&r.destroy()},2e3),t}static getComponentName(t){return t.__classname__}static getComponents(t){return t.components.map(n=>({name:n.__classname__,target:n}))}static getSelfBoundingBoxToWold(t){let n=cc.mat4();if(t.node.parent){t.node.parent.getWorldMatrix(n);let o=n,r=cc.mat4();cc.Mat4.fromRTS(r,t.node.getRotation(),t.node.getPosition(),t.node.getScale());const s=t._contentSize.width,i=t._contentSize.height,l=cc.rect(-t._anchorPoint.x*s,-t._anchorPoint.y*i,s,i);return cc.Mat4.multiply(n,o,r),l.transformMat4(n),l}else return t.getBoundingBox()}}const o_={class:"row"},r_=re("span",{class:"header-title",style:{flex:"1"}},"Node",-1),s_=Nt("+"),i_=Nt(">"),l_=we({__name:"CCNode",props:{ccNode:Object,updateKey:Number},setup(e){const t=e;class n{static get ccNode(){return t.ccNode}static get nodeName(){return this.ccNode.name}static set nodeName(r){this.ccNode.name=r}static get x(){return this.ccNode.getPosition().x}static set x(r){const s=this.ccNode.getPosition();this.ccNode.setPosition(r,s.y,s.z)}static get y(){return this.ccNode.getPosition().y}static set y(r){const s=this.ccNode.getPosition();this.ccNode.setPosition(s.x,r,s.z)}static get z(){return this.ccNode.getPosition().z}static set z(r){const s=this.ccNode.getPosition();this.ccNode.setPosition(s.x,s.y,r)}static get scaleX(){return this.ccNode.getScale().x}static set scaleX(r){const s=this.ccNode.getScale();this.ccNode.setScale(r,s.y,s.z)}static get scaleY(){return this.ccNode.getScale().y}static set scaleY(r){const s=this.ccNode.getScale();this.ccNode.setScale(s.x,r,s.z)}static get scaleZ(){return this.ccNode.getScale().z}static set scaleZ(r){const s=this.ccNode.getScale();this.ccNode.setScale(s.x,s.y,r)}}return qn(n,"props",[{name:"Name",key:"nodeName"},{name:"X",key:"x"},{name:"Y",key:"y"},{name:"Z",key:"z"},{name:"Scale X",key:"scaleX"},{name:"Scale Y",key:"scaleY"},{name:"Scale Z",key:"scaleZ"}]),(o,r)=>{const s=cr,i=bs,l=kf;return N(),te($e,null,[re("div",o_,[fe(s,{modelValue:e.ccNode.active,"onUpdate:modelValue":r[0]||(r[0]=a=>e.ccNode.active=a),size:"small",style:{"margin-right":"10px"}},null,8,["modelValue"]),r_,fe(i,{size:"small",onClick:r[1]||(r[1]=a=>d(bo).drawNodeRect(e.ccNode))},{default:ge(()=>[s_]),_:1}),fe(i,{size:"small",onClick:r[2]||(r[2]=a=>d(bo).outputToConsole(e.ccNode))},{default:ge(()=>[i_]),_:1})]),e.ccNode.name!="PROFILER_NODE"?(N(!0),te($e,{key:0},yn(n.props,a=>(N(),ie(Ef,{key:a.key,model:n,"prop-name":a.name,"prop-key":a.key,"update-key":e.updateKey},null,8,["prop-name","prop-key","update-key"]))),128)):de("",!0),e.ccNode.name=="PROFILER_NODE"?(N(),ie(l,{key:1,show:!0})):de("",!0)],64)}}});class a_{static getViewModel(t,n){switch(t){case"cc.UITransform":return new c_(n);case"cc.Label":return new u_;case"cc.Sprite":return new f_;default:return null}}}class c_{constructor(t){qn(this,"componentGetter");qn(this,"props",[{name:"Width",key:"width",custom:!0},{name:"Height",key:"height",custom:!0},{name:"Anchor X",key:"anchorX",custom:!0},{name:"Anchor Y",key:"anchorY",custom:!0}]);this.componentGetter=t}get component(){return this.componentGetter()}get width(){return this.componentGetter().contentSize.width}set width(t){const n=this.component.contentSize;this.component.setContentSize(t,n.height)}get height(){return this.component.contentSize.height}set height(t){const n=this.component.contentSize;this.component.setContentSize(n.width,t)}get anchorX(){return this.component.anchorPoint.x}set anchorX(t){const n=this.component.anchorPoint;this.component.setAnchorPoint(t,n.y)}get anchorY(){return this.component.anchorPoint.y}set anchorY(t){const n=this.component.anchorPoint;this.component.setAnchorPoint(n.x,t)}}class u_{constructor(){qn(this,"props",[{name:"String",key:"string"},{name:"Color",key:"color"},{name:"Font Size",key:"fontSize"},{name:"Line Height",key:"lineHeight"}])}}class f_{constructor(){qn(this,"props",[{name:"Color",key:"color"}])}}const d_={class:"row"},p_={style:{flex:"1"}},h_=Nt(">"),m_=we({__name:"CCComponent",props:{name:String,component:Object,updateKey:Number},setup(e){const t=e,n=a_.getViewModel(t.name,()=>t.component);return(o,r)=>{const s=cr,i=bs;return N(),te($e,null,[re("div",d_,[fe(s,{modelValue:e.component.enabled,"onUpdate:modelValue":r[0]||(r[0]=l=>e.component.enabled=l),size:"small",style:{"margin-right":"10px"}},null,8,["modelValue"]),re("span",p_,Ye(e.name),1),fe(i,{size:"small",onClick:r[1]||(r[1]=l=>d(bo).outputToConsole(e.component))},{default:ge(()=>[h_]),_:1})]),d(n)?(N(!0),te($e,{key:0},yn(d(n).props,l=>(N(),ie(Ef,{key:l.key,model:l.custom?d(n):e.component,"prop-name":l.name,"prop-key":l.key,"update-key":e.updateKey},null,8,["model","prop-name","prop-key","update-key"]))),128)):de("",!0)],64)}}}),v_={class:"row"},g_={class:"header-title",style:{flex:"1"}},b_=Nt(">"),y_=we({__name:"UserComponent",props:{name:String,component:Object,updateKey:Number},setup(e){return(t,n)=>{const o=cr,r=bs;return N(),te("div",v_,[fe(o,{modelValue:e.component.enabled,"onUpdate:modelValue":n[0]||(n[0]=s=>e.component.enabled=s),size:"small",style:{"margin-right":"10px"}},null,8,["modelValue"]),re("span",g_,Ye(e.name),1),fe(r,{size:"small",onClick:n[1]||(n[1]=s=>d(bo).outputToConsole(e.component))},{default:ge(()=>[b_]),_:1})])}}});const w_=re("div",{class:"row",style:{height:"2px","background-color":"#1d1e21"}},null,-1),__=re("div",{class:"row",style:{height:"2px","background-color":"#1d1e21"}},null,-1),C_=we({__name:"TreePanel",props:{show:Boolean},setup(e){const t=e;let n=H(1),o;const r=new Map;let s=[];const i={value:"uuid",label:"name",children:"children"},l=(window.innerHeight-120)/2,a=H(null);We(()=>{console.log("ccc-devtools init")});function c(b,S,x){return x>=S.length?b:(b=b.getChildByUuid(S[x]),c(b,S,x+1))}function u(b){const S=c(cc.director.getScene(),b.path,0);b?o=S:o=null}function h(b){r.set(b.uuid,!0),s=[...r.keys()]}function f(b){r.delete(b.uuid),s=[...r.keys()]}function p(b,S,x){S.forEach(E=>{const k=x.concat(E.uuid),_={uuid:E.uuid,name:E.name,active:E.activeInHierarchy,children:[],path:k};E.children&&E.children.length>0&&p(_.children,E.children,k),b.push(_)})}function v(){if(t.show&&window.ccdevShow){let b=[];p(b,cc.director.getScene().children,[]),a.value.setData(b),n.value=-n.value}window.requestAnimationFrame(v)}function m(){v()}const y=setInterval(()=>{window.cc&&cc.director.getScene()&&(m(),clearInterval(y))},1e3);return(b,S)=>{const x=Zw,E=N0;return N(),te($e,null,[re("div",{style:Ke([{width:"100%"},{height:l}])},[fe(x,{ref_key:"treeView",ref:a,props:i,"empty-text":"\u6B63\u5728\u52A0\u8F7D\u573A\u666F","highlight-current":!0,"expand-on-click-node":!1,"default-expanded-keys":d(s),onCurrentChange:u,onNodeExpand:h,onNodeCollapse:f,height:l},{default:ge(({node:k})=>[re("span",{class:ee({"node-hide":!k.data.active})},Ye(k.label),3)]),_:1},8,["default-expanded-keys"])],4),re("div",{style:Ke([{width:"100%","border-top":"2px solid #414243"},{height:l}])},[d(n)!==0&&d(bo).checkNodeValid(d(o))?(N(),ie(E,{key:0},{default:ge(()=>[fe(l_,{"cc-node":d(o),"update-key":d(n)},null,8,["cc-node","update-key"]),w_,(N(!0),te($e,null,yn(d(bo).getComponents(d(o)),k=>(N(),te($e,{key:k.name},[k.name.startsWith("cc.")?(N(),ie(m_,{key:0,component:k.target,name:k.name,"update-key":d(n)},null,8,["component","name","update-key"])):(N(),ie(y_,{key:1,component:k.target,name:k.name,"update-key":d(n)},null,8,["component","name","update-key"])),__],64))),128))]),_:1})):de("",!0)],4)],64)}}});var k_=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n};const E_=Nt("ccc-devtools"),S_=we({__name:"App",setup(e){let t=H(!1);return window.addEventListener("showProfiler",n=>{t.value=!t.value}),(n,o)=>{const r=je("vue-final-modal"),s=o1,i=dw;return N(),te($e,null,[re("div",null,[fe(r,{modelValue:d(t),"onUpdate:modelValue":o[0]||(o[0]=l=>He(t)?t.value=l:t=l),classes:"modal-container","content-class":"modal-content","hide-overlay":!0,"click-to-close":!1,"prevent-click":!0,drag:!0,"fit-parent":!0,"drag-selector":".modal-drag"},{default:ge(()=>[fe(kf,{show:d(t)},null,8,["show"])]),_:1},8,["modelValue"])]),fe(s,{"body-style":{padding:0},style:{margin:"10px"}},{default:ge(()=>[fe(C_,{show:!0})]),_:1}),fe(i,{type:"primary",href:"https://github.com/potato47/ccc-devtools",target:"_blank",style:{position:"absolute",left:"5px",bottom:"5px"}},{default:ge(()=>[E_]),_:1})],64)}}});var x_=k_(S_,[["__scopeId","data-v-5cd4c653"]]);function al(e){return(al=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function Wa(e,t,n,o,r,s,i){try{var l=e[s](i),a=l.value}catch(c){return void n(c)}l.done?t(a):Promise.resolve(a).then(o,r)}function T_(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1),vn=[],Yr=!1,Lr=0,Ja=-1,N_=function(e,t){var n=!1;return function(o){for(var r=[];o;){if(r.push(o),o.classList.contains("vfm"))return r;o=o.parentElement}return r}(e).forEach(function(o){(function(r){if(!r||r.nodeType!==Node.ELEMENT_NODE)return!1;var s=window.getComputedStyle(r);return["auto","scroll"].includes(s.overflowY)&&r.scrollHeight>r.clientHeight})(o)&&function(r,s){return!(r.scrollTop===0&&s<0||r.scrollTop+r.clientHeight+s>=r.scrollHeight&&s>0)}(o,t)&&(n=!0)}),n},xf=function(e){return vn.some(function(){return N_(e,-Lr)})},yi=function(e){var t=e||window.event;return!!xf(t.target)||t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1)},M_=function(e,t){if(e){if(!vn.some(function(o){return o.targetElement===e})){var n={targetElement:e,options:t||{}};vn=[].concat(zn(vn),[n]),Sf?(e.ontouchstart=function(o){o.targetTouches.length===1&&(Ja=o.targetTouches[0].clientY)},e.ontouchmove=function(o){o.targetTouches.length===1&&function(r,s){Lr=r.targetTouches[0].clientY-Ja,!xf(r.target)&&(s&&s.scrollTop===0&&Lr>0||function(i){return!!i&&i.scrollHeight-i.scrollTop<=i.clientHeight}(s)&&Lr<0?yi(r):r.stopPropagation())}(o,e)},Yr||(document.addEventListener("touchmove",yi,cl?{passive:!1}:void 0),Yr=!0)):function(o){if(Ho===void 0){var r=!!o&&o.reserveScrollBarGap===!0,s=window.innerWidth-document.documentElement.clientWidth;if(r&&s>0){var i=parseInt(getComputedStyle(document.body).getPropertyValue("padding-right"),10);Ho=document.body.style.paddingRight,document.body.style.paddingRight="".concat(i+s,"px")}}Do===void 0&&(Do=document.body.style.overflow,document.body.style.overflow="hidden")}(t)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},zs=function(e){e?(vn=vn.filter(function(t){return t.targetElement!==e}),Sf?(e.ontouchstart=null,e.ontouchmove=null,Yr&&vn.length===0&&(document.removeEventListener("touchmove",yi,cl?{passive:!1}:void 0),Yr=!1)):vn.length||(Ho!==void 0&&(document.body.style.paddingRight=Ho,Ho=void 0),Do!==void 0&&(document.body.style.overflow=Do,Do=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")},Sr=function(){},Qa="enter",ec="entering",xr="leave",tc="leavng",A_={t:"ns-resize",tr:"nesw-resize",r:"ew-resize",br:"nwse-resize",b:"ns-resize",bl:"nesw-resize",l:"ew-resize",tl:"nwse-resize"},Fr={props:{name:{type:String,default:null},modelValue:{type:Boolean,default:!1},ssr:{type:Boolean,default:!0},classes:{type:[String,Object,Array],default:""},overlayClass:{type:[String,Object,Array],default:""},contentClass:{type:[String,Object,Array],default:""},styles:{type:[Object,Array],default:function(){return{}}},overlayStyle:{type:[Object,Array],default:function(){return{}}},contentStyle:{type:[Object,Array],default:function(){return{}}},lockScroll:{type:Boolean,default:!0},hideOverlay:{type:Boolean,default:!1},clickToClose:{type:Boolean,default:!0},escToClose:{type:Boolean,default:!1},preventClick:{type:Boolean,default:!1},attach:{type:null,default:!1,validator:function(e){var t=al(e);return t==="boolean"||t==="string"||e.nodeType===Node.ELEMENT_NODE}},transition:{type:[String,Object],default:"vfm"},overlayTransition:{type:[String,Object],default:"vfm"},keepOverlay:{type:Boolean,default:!1},zIndexAuto:{type:Boolean,default:!0},zIndexBase:{type:[String,Number],default:1e3},zIndex:{type:[Boolean,String,Number],default:!1},focusRetain:{type:Boolean,default:!0},focusTrap:{type:Boolean,default:!1},fitParent:{type:Boolean,default:!0},drag:{type:Boolean,default:!1},dragSelector:{type:String,default:""},keepChangedStyle:{type:Boolean,default:!1},resize:{type:Boolean,default:!1},resizeDirections:{type:Array,default:function(){return["t","tr","r","br","b","bl","l","tl"]},validator:function(e){return["t","tr","r","br","b","bl","l","tl"].filter(function(t){return e.indexOf(t)!==-1}).length===e.length}},minWidth:{type:Number,default:0},minHeight:{type:Number,default:0},maxWidth:{type:Number,default:1/0},maxHeight:{type:Number,default:1/0}},emits:["update:modelValue","click-outside","before-open","opened","before-close","closed","_before-open","_opened","_closed","drag:start","drag:move","drag:end","resize:start","resize:move","resize:end"],setup:function(e,t){var n=t.emit,o=Symbol("vfm"),r=H(null),s=H(null),i=H(null),l=H(null),a=H(null),c=H(null),u=H(null),h=new O_,f=H(!1),p=Jt({modal:!1,overlay:!1,resize:!1}),v=H(null),m=H(null),y=H(!1),b=H({}),S=H({}),x=H(null),E=H(null),k=Sr,_=Sr,T=P(function(){return typeof e.overlayTransition=="string"?{name:e.overlayTransition}:st({},e.overlayTransition)}),O=P(function(){return typeof e.transition=="string"?{name:e.transition}:st({},e.transition)}),R=P(function(){return(e.hideOverlay||v.value===xr)&&m.value===xr}),q=P(function(){return e.zIndex===!1?!!e.zIndexAuto&&+e.zIndexBase+2*(u.value||0):e.zIndex}),X=P(function(){return st({},q.value!==!1&&{zIndex:q.value})}),U=P(function(){var I=[S.value];return Array.isArray(e.contentStyle)?I.push.apply(I,zn(e.contentStyle)):I.push(e.contentStyle),I});function M(){return{uid:o,props:e,emit:n,vfmContainer:s,vfmContent:i,vfmResize:l,vfmOverlayTransition:a,vfmTransition:c,getAttachElement:G,modalStackIndex:u,visibility:p,handleLockScroll:B,$focusTrap:h,toggle:_e,params:b}}function L(){if(e.modelValue){if(n("_before-open",J({type:"_before-open"})),me("before-open",!1))return void _("show");var I=G();if(I||e.attach===!1){if(e.attach!==!1){if(!r.value)return f.value=!0,void Fe(function(){L()});I.appendChild(r.value)}var Q=e.api.openedModals.findIndex(function(le){return le.uid===o});Q!==-1&&e.api.openedModals.splice(Q,1),e.api.openedModals.push(M()),u.value=e.api.openedModals.length-1,B(),e.api.openedModals.filter(function(le){return le.uid!==o}).forEach(function(le,Ce){le.getAttachElement()===I&&(le.modalStackIndex.value=Ce,!le.props.keepOverlay&&(le.visibility.overlay=!1))}),f.value=!0,p.overlay=!0,p.modal=!0}else I!==!1&&console.warn("Unable to locate target ".concat(e.attach))}}function Z(){var I=e.api.openedModals.findIndex(function(le){return le.uid===o});if(I!==-1&&e.api.openedModals.splice(I,1),e.api.openedModals.length>0){var Q=e.api.openedModals[e.api.openedModals.length-1];Q.props.focusTrap&&Q.$focusTrap.firstElement().focus(),(Q.props.focusRetain||Q.props.focusTrap)&&Q.vfmContainer.value.focus(),!Q.props.hideOverlay&&(Q.visibility.overlay=!0)}e.drag&&ve(),e.resize&&j(),x.value=null,p.overlay=!1,p.modal=!1}function B(){e.modelValue&&Fe(function(){e.lockScroll?M_(s.value,{reserveScrollBarGap:!0}):zs(s.value)})}function G(){return e.attach!==!1&&(typeof e.attach=="string"?!!window&&window.document.querySelector(e.attach):e.attach)}function J(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return st({ref:M()},I)}function me(I,Q){var le=!1,Ce=J({type:I,stop:function(){le=!0}});return n(I,Ce),!!le&&(y.value=!0,Fe(function(){n("update:modelValue",Q)}),!0)}function Se(I,Q,le){x.value="".concat(Q,":").concat(le),n(x.value,I)}function _e(I,Q){var le=arguments;return new Promise(function(Ce,Me){k=function(g){Ce(g),k=Sr},_=function(g){Me(g),_=Sr};var Oe=typeof I=="boolean"?I:!e.modelValue;Oe&&le.length===2&&(b.value=Q),n("update:modelValue",Oe)})}function Te(I){I.stopPropagation();var Q,le="resize",Ce="drag",Me=I.target.getAttribute("direction");if(Me)Q=le;else{if(!function(K,oe,ce){return ce===""||zn(oe.querySelectorAll(ce)).includes(K.target)}(I,i.value,e.dragSelector))return;Q=Ce}Se(I,Q,"start");var Oe,g,w,$,F=Ga(I),A=s.value.getBoundingClientRect(),V=i.value.getBoundingClientRect(),Y=window.getComputedStyle(i.value).position==="absolute",z=Xa(S.value.top),W=Xa(S.value.left),D=function(){if(e.fitParent){var K={absolute:function(){return{minTop:0,minLeft:0,maxTop:A.height-V.height,maxLeft:A.width-V.width}},relative:function(){return{minTop:z+A.top-V.top,minLeft:W+A.left-V.left,maxTop:z+A.bottom-V.bottom,maxLeft:W+A.right-V.right}}};return Y?K.absolute():K.relative()}return{}}(),se=Q===le&&(Oe=document.body,g="cursor",w=A_[Me],$=Oe.style[g],Oe.style[g]=w,function(){Oe.style[g]=$}),C=function(K){K.stopPropagation(),Se(K,Q,"move");var oe,ce,ke=Ga(K),be={x:ke.x-F.x,y:ke.y-F.y};Q===le&&(be=function(ct,en,ur,Ft,fr){var et=function(ot){var kt,tn=en[ot.axis];tn=e.fitParent?Cr(ot.min,tn,ot.max):tn;var nn=Cr(ot.minEdge,ot.getEdge(tn),ot.maxEdge);return tn=ot.getOffsetAxis(nn,fr),so(kt={},ot.edgeName,nn),so(kt,ot.axis,tn),kt},vt=function(ot,kt,tn,nn){var ul,fl=Ft[kt],dl=ur[ot]-Ft[ot],pl=(ul=kt).charAt(0).toUpperCase()+ul.slice(1);return{axis:tn,edgeName:kt,min:nn?dl:-fl,max:nn?fl:dl,minEdge:e["min".concat(pl)],maxEdge:e["max".concat(pl)],getEdge:function(_s){return Ft[kt]-_s*(nn?1:-1)},getOffsetAxis:function(_s,Nf){var hl=Ft[kt]-_s;return Nf?nn?hl:0:(nn?1:-1)*hl/2}}},dr={t:["top","height","y",!0],b:["bottom","height","y",!1],l:["left","width","x",!0],r:["right","width","x",!1]},ws={x:0,y:0};return ct.split("").forEach(function(ot){var kt=vt.apply(void 0,zn(dr[ot]));ws=st(st({},ws),et(kt))}),ws}(Me,be,A,V,Y)),Y?(oe=V.top-A.top+be.y,ce=V.left-A.left+be.x):(oe=z+be.y,ce=W+be.x),Q===Ce&&e.fitParent&&(oe=Cr(D.minTop,oe,D.maxTop),ce=Cr(D.minLeft,ce,D.maxLeft));var Pe=st(st(st({position:"relative",top:oe+"px",left:ce+"px",margin:"unset",touchAction:"none"},Y&&{position:"absolute",transform:"unset",width:V.width+"px",height:V.height+"px"}),be.width&&{width:be.width+"px"}),be.height&&{height:be.height+"px"});S.value=st(st({},S.value),Pe)};kr("move",document,C),kr("up",document,function K(oe){oe.stopPropagation(),Q===le&&se&&se(),setTimeout(function(){Se(oe,Q,"end")}),Er("move",document,C),Er("up",document,K)})}function ne(){kr("down",i.value,Te),S.value.touchAction="none"}function ve(){Er("down",i.value,Te)}function pe(){p.resize=!0,Fe(function(){kr("down",l.value,Te)})}function j(){Er("down",l.value,Te),p.resize=!1}return ue(function(){return e.modelValue},function(I){if(y.value)y.value=!1;else if(L(),!I){if(me("before-close",!0))return void _("hide");Z()}}),ue(function(){return e.lockScroll},B),ue(function(){return e.hideOverlay},function(I){e.modelValue&&!I&&(p.overlay=!0)}),ue(function(){return e.attach},L),ue(R,function(I){I&&(f.value=!1,s.value.style.display="none")},{flush:"post"}),ue(function(){return e.drag},function(I){f.value&&(I?ne():ve())}),ue(function(){return e.resize},function(I){f.value&&(I?pe():j())}),ue(function(){return e.keepChangedStyle},function(I){I||(S.value={})}),e.api.modals.push(M()),We(function(){L()}),Mt(function(){var I;Z(),e.lockScroll&&s.value&&zs(s.value),r==null||(I=r.value)===null||I===void 0||I.remove();var Q=e.api.modals.findIndex(function(le){return le.uid===o});e.api.modals.splice(Q,1)}),{root:r,vfmContainer:s,vfmContent:i,vfmResize:l,vfmOverlayTransition:a,vfmTransition:c,computedOverlayTransition:T,computedTransition:O,visible:f,visibility:p,params:b,calculateZIndex:q,bindStyle:X,bindContentStyle:U,beforeOverlayEnter:function(){v.value=ec},afterOverlayEnter:function(){v.value=Qa},beforeOverlayLeave:function(){v.value=tc},afterOverlayLeave:function(){v.value=xr},beforeModalEnter:function(){m.value=ec},afterModalEnter:function(){m.value=Qa,(e.focusRetain||e.focusTrap)&&s.value.focus(),e.focusTrap&&h.enable(s.value),e.drag&&ne(),e.resize&&pe(),n("_opened"),n("opened",J({type:"opened"})),k("show")},beforeModalLeave:function(){m.value=tc,h.enabled()&&h.disable()},afterModalLeave:function(){m.value=xr,u.value=null,e.lockScroll&&zs(s.value),e.keepChangedStyle||(S.value={});var I=!1,Q=J({type:"closed",stop:function(){I=!0}});n("_closed"),n("closed",Q),k("hide"),I||(b.value={})},onMousedown:function(I){E.value=I==null?void 0:I.target},onMouseupContainer:function(){E.value===s.value&&x.value!=="resize:move"&&(n("click-outside",J({type:"click-outside"})),e.clickToClose&&n("update:modelValue",!1))},onEsc:function(){f.value&&e.escToClose&&n("update:modelValue",!1)}}}},Ds=Dd();Bd("data-v-2836fdb5");var I_={key:0,ref:"vfmResize",class:"vfm__resize vfm--absolute vfm--inset vfm--prevent-none vfm--select-none vfm--touch-none"};zd();var P_=Ds(function(e,t,n,o,r,s){return n.ssr||o.visible?at((N(),ie("div",{key:0,ref:"root",style:o.bindStyle,class:["vfm vfm--inset",[n.attach===!1?"vfm--fixed":"vfm--absolute",{"vfm--prevent-none":n.preventClick}]],onKeydown:t[4]||(t[4]=Mn(function(){return o.onEsc&&o.onEsc.apply(o,arguments)},["esc"]))},[fe(lo,$t(o.computedOverlayTransition,{onBeforeEnter:o.beforeOverlayEnter,onAfterEnter:o.afterOverlayEnter,onBeforeLeave:o.beforeOverlayLeave,onAfterLeave:o.afterOverlayLeave}),{default:Ds(function(){return[!n.hideOverlay&&o.visibility.overlay?(N(),ie("div",{key:0,class:["vfm__overlay vfm--overlay vfm--absolute vfm--inset",n.overlayClass],style:n.overlayStyle},null,6)):de("v-if",!0)]}),_:1},16,["onBeforeEnter","onAfterEnter","onBeforeLeave","onAfterLeave"]),fe(lo,$t(o.computedTransition,{onBeforeEnter:o.beforeModalEnter,onAfterEnter:o.afterModalEnter,onBeforeLeave:o.beforeModalLeave,onAfterLeave:o.afterModalLeave}),{default:Ds(function(){return[at(fe("div",{ref:"vfmContainer",class:["vfm__container vfm--absolute vfm--inset vfm--outline-none",n.classes],style:n.styles,"aria-expanded":o.visibility.modal.toString(),role:"dialog","aria-modal":"true",tabindex:"-1",onMouseup:t[2]||(t[2]=zt(function(){return o.onMouseupContainer&&o.onMouseupContainer.apply(o,arguments)},["self"])),onMousedown:t[3]||(t[3]=zt(function(){return o.onMousedown&&o.onMousedown.apply(o,arguments)},["self"]))},[fe("div",{ref:"vfmContent",class:["vfm__content",[n.contentClass,{"vfm--prevent-auto":n.preventClick}]],style:o.bindContentStyle,onMousedown:t[1]||(t[1]=function(i){return o.onMousedown(null)})},[Be(e.$slots,"default",{params:o.params,close:function(){return e.$emit("update:modelValue",!1)}}),o.visibility.resize&&o.visibility.modal?(N(),ie("div",I_,[(N(!0),ie($e,null,yn(n.resizeDirections,function(i){return N(),ie("div",{key:i,direction:i,class:["vfm--resize-".concat(i),"vfm--absolute vfm--prevent-auto"]},null,10,["direction"])}),128))],512)):de("v-if",!0)],38)],46,["aria-expanded"]),[[ao,o.visibility.modal]])]}),_:3},16,["onBeforeEnter","onAfterEnter","onBeforeLeave","onAfterLeave"])],38)),[[ao,!n.ssr||o.visible]]):de("v-if",!0)});(function(e,t){t===void 0&&(t={});var n=t.insertAt;if(e&&typeof document!="undefined"){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",n==="top"&&o.firstChild?o.insertBefore(r,o.firstChild):o.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}})(` .vfm--fixed[data-v-2836fdb5] { position: fixed; diff --git a/release/preview-template/dist/index.html b/release/preview-template/dist/index.html index 6d5f8cd..acd820f 100644 --- a/release/preview-template/dist/index.html +++ b/release/preview-template/dist/index.html @@ -1,4 +1,4 @@ - +
diff --git a/release/preview-template/version.json b/release/preview-template/version.json index b15b310..862d4c8 100644 --- a/release/preview-template/version.json +++ b/release/preview-template/version.json @@ -1 +1 @@ -{"name":"ccc-devtools","version":"2022/8/4","author":"Next","repo":"https://github.com/potato47/ccc-devtools.git"} \ No newline at end of file +{"name":"ccc-devtools","version":"2022/8/8","author":"Next","repo":"https://github.com/potato47/ccc-devtools.git"} \ No newline at end of file