import{F as Te,c as v,bM as Gt,aL as Ce,O as V,f as s,bO as qt,k as Q,P as ce,Q as De,E as St,s as F,ar as Se,br as Yt,bV as Xt,av as Ie,ay as Jt,l as ot,b as Et,ad as xt,j as Ee,aG as Fe,m as Qt,G as xe,d as Z,bW as Zt,au as wt,u as le,bB as en,bX as tn,bY as nn,a_ as an,n as K,A as on,C as rn,o as m,V as _,W as x,a8 as we,e as k,r as O,S as ne,a as C,w as j,h as X,L as Y,ax as ke,B as sn,aP as un,U as ln,ah as cn,X as ve,g as fn,_ as Me,q as rt,i as kt,p as Tt,aJ as dn,bQ as pn,bt as vn,t as hn,ag as bn}from"./index-d3fc14cb.js";const gn=()=>Te&&/firefox/i.test(window.navigator.userAgent);function It(e){return e==null}class mn extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Ia(e,t){throw new mn(`[${e}] ${t}`)}function Fa(e,t){}const Ve="update:modelValue",Ca="change",yn=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),Sn=["class","style"],En=/^on[A-Z]/,xn=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,a=v(()=>((n==null?void 0:n.value)||[]).concat(Sn)),r=Ce();return r?v(()=>{var o;return Gt(Object.entries((o=r.proxy)==null?void 0:o.$attrs).filter(([i])=>!a.value.includes(i)&&!(t&&En.test(i))))}):v(()=>({}))},wn=({from:e,replacement:t,scope:n,version:a,ref:r,type:o="API"},i)=>{V(()=>s(i),f=>{},{immediate:!0})},Ft=e=>{const t=Ce();return v(()=>{var n,a;return(a=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:a[e]})},st={prefix:Math.floor(Math.random()*1e4),current:0},kn=Symbol("elIdInjection"),Tn=()=>Ce()?Q(kn,st):st,In=e=>{const t=Tn(),n=qt();return v(()=>s(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let ae=[];const it=e=>{const t=e;t.key===St.esc&&ae.forEach(n=>n(t))},Fn=e=>{ce(()=>{ae.length===0&&document.addEventListener("keydown",it),Te&&ae.push(e)}),De(()=>{ae=ae.filter(t=>t!==e),ae.length===0&&Te&&document.removeEventListener("keydown",it)})};function Cn(e){const t=F();function n(){if(e.value==null)return;const{selectionStart:r,selectionEnd:o,value:i}=e.value;if(r==null||o==null)return;const f=i.slice(0,Math.max(0,r)),d=i.slice(Math.max(0,o));t.value={selectionStart:r,selectionEnd:o,value:i,beforeTxt:f,afterTxt:d}}function a(){if(e.value==null||t.value==null)return;const{value:r}=e.value,{beforeTxt:o,afterTxt:i,selectionStart:f}=t.value;if(o==null||i==null||f==null)return;let d=r.length;if(r.endsWith(i))d=r.length-i.length;else if(r.startsWith(o))d=o.length;else{const h=o[f-1],g=r.indexOf(h,f-1);g!==-1&&(d=g+1)}e.value.setSelectionRange(d,d)}return[n,a]}function Mn(e,{afterFocus:t,afterBlur:n}={}){const a=Ce(),{emit:r}=a,o=Se(),i=F(!1),f=g=>{i.value||(i.value=!0,r("focus",g),t==null||t())},d=g=>{var b;g.relatedTarget&&((b=o.value)!=null&&b.contains(g.relatedTarget))||(i.value=!1,r("blur",g),n==null||n())},h=()=>{var g;(g=e.value)==null||g.focus()};return V(o,g=>{g&&g.setAttribute("tabindex","-1")}),Yt(o,"click",h),{wrapperRef:o,isFocused:i,handleFocus:f,handleBlur:d}}const Ue=Symbol("formContextKey"),Ct=Symbol("formItemContextKey"),Mt=(e,t={})=>{const n=F(void 0),a=t.prop?n:Ft("size"),r=t.global?n:Xt(),o=t.form?{size:void 0}:Q(Ue,void 0),i=t.formItem?{size:void 0}:Q(Ct,void 0);return v(()=>a.value||s(e)||(i==null?void 0:i.size)||(o==null?void 0:o.size)||r.value||"")},Ke=e=>{const t=Ft("disabled"),n=Q(Ue,void 0);return v(()=>t.value||s(e)||(n==null?void 0:n.disabled)||!1)},Rt=()=>{const e=Q(Ue,void 0),t=Q(Ct,void 0);return{form:e,formItem:t}},Rn=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:a})=>{n||(n=F(!1)),a||(a=F(!1));const r=F();let o;const i=v(()=>{var f;return!!(!e.label&&t&&t.inputIds&&((f=t.inputIds)==null?void 0:f.length)<=1)});return ce(()=>{o=V([Ie(e,"id"),n],([f,d])=>{const h=f??(d?void 0:In().value);h!==r.value&&(t!=null&&t.removeInputId&&(r.value&&t.removeInputId(r.value),!(a!=null&&a.value)&&!d&&h&&t.addInputId(h)),r.value=h)},{immediate:!0})}),Jt(()=>{o&&o(),t!=null&&t.removeInputId&&r.value&&t.removeInputId(r.value)}),{isLabeledByFormItem:i,inputId:r}};let A;const _n=` height:0 !important; visibility:hidden !important; ${gn()?"":"overflow:hidden !important;"} position:absolute !important; z-index:-1000 !important; top:0 !important; right:0 !important; `,An=["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 Pn(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),a=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:An.map(i=>`${i}:${t.getPropertyValue(i)}`).join(";"),paddingSize:a,borderSize:r,boxSizing:n}}function ut(e,t=1,n){var a;A||(A=document.createElement("textarea"),document.body.appendChild(A));const{paddingSize:r,borderSize:o,boxSizing:i,contextStyle:f}=Pn(e);A.setAttribute("style",`${f};${_n}`),A.value=e.value||e.placeholder||"";let d=A.scrollHeight;const h={};i==="border-box"?d=d+o:i==="content-box"&&(d=d-r),A.value="";const g=A.scrollHeight-r;if(ot(t)){let b=g*t;i==="border-box"&&(b=b+r+o),d=Math.max(b,d),h.minHeight=`${b}px`}if(ot(n)){let b=g*n;i==="border-box"&&(b=b+r+o),d=Math.min(b,d)}return h.height=`${d}px`,(a=A.parentNode)==null||a.removeChild(A),A=void 0,h}const Nn=Et({id:{type:String,default:void 0},size:xt,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},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:Fe},prefixIcon:{type:Fe},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:()=>Qt({})}}),Bn={[Ve]:e=>xe(e),input:e=>xe(e),change:e=>xe(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},Hn=["role"],$n=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],On=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form"],Vn=Z({name:"ElInput",inheritAttrs:!1}),zn=Z({...Vn,props:Nn,emits:Bn,setup(e,{expose:t,emit:n}){const a=e,r=Zt(),o=wt(),i=v(()=>{const u={};return a.containerRole==="combobox"&&(u["aria-haspopup"]=r["aria-haspopup"],u["aria-owns"]=r["aria-owns"],u["aria-expanded"]=r["aria-expanded"]),u}),f=v(()=>[a.type==="textarea"?S.b():l.b(),l.m(y.value),l.is("disabled",c.value),l.is("exceed",$t.value),{[l.b("group")]:o.prepend||o.append,[l.bm("group","append")]:o.append,[l.bm("group","prepend")]:o.prepend,[l.m("prefix")]:o.prefix||a.prefixIcon,[l.m("suffix")]:o.suffix||a.suffixIcon||a.clearable||a.showPassword,[l.bm("suffix","password-clear")]:de.value&&_e.value},r.class]),d=v(()=>[l.e("wrapper"),l.is("focus",q.value)]),h=xn({excludeKeys:v(()=>Object.keys(i.value))}),{form:g,formItem:b}=Rt(),{inputId:B}=Rn(a,{formItemContext:b}),y=Mt(),c=Ke(),l=le("input"),S=le("textarea"),w=Se(),E=Se(),ee=F(!1),z=F(!1),G=F(!1),fe=F(),H=Se(a.inputStyle),N=v(()=>w.value||E.value),{wrapperRef:oe,isFocused:q,handleFocus:re,handleBlur:M}=Mn(N,{afterBlur(){var u;a.validateEvent&&((u=b==null?void 0:b.validate)==null||u.call(b,"blur").catch(p=>void 0))}}),Ge=v(()=>{var u;return(u=g==null?void 0:g.statusIcon)!=null?u:!1}),se=v(()=>(b==null?void 0:b.validateState)||""),qe=v(()=>se.value&&en[se.value]),Bt=v(()=>G.value?tn:nn),Ht=v(()=>[r.style,a.inputStyle]),Ye=v(()=>[a.inputStyle,H.value,{resize:a.resize}]),L=v(()=>It(a.modelValue)?"":String(a.modelValue)),de=v(()=>a.clearable&&!c.value&&!a.readonly&&!!L.value&&(q.value||ee.value)),_e=v(()=>a.showPassword&&!c.value&&!a.readonly&&!!L.value&&(!!L.value||q.value)),te=v(()=>a.showWordLimit&&!!h.value.maxlength&&(a.type==="text"||a.type==="textarea")&&!c.value&&!a.readonly&&!a.showPassword),Ae=v(()=>L.value.length),$t=v(()=>!!te.value&&Ae.value>Number(h.value.maxlength)),Ot=v(()=>!!o.suffix||!!a.suffixIcon||de.value||a.showPassword||te.value||!!se.value&&Ge.value),[Vt,zt]=Cn(w);an(E,u=>{if(Lt(),!te.value||a.resize!=="both")return;const p=u[0],{width:T}=p.contentRect;fe.value={right:`calc(100% - ${T+15+6}px)`}});const ie=()=>{const{type:u,autosize:p}=a;if(!(!Te||u!=="textarea"||!E.value))if(p){const T=rt(p)?p.minRows:void 0,pe=rt(p)?p.maxRows:void 0,at=ut(E.value,T,pe);H.value={overflowY:"hidden",...at},K(()=>{E.value.offsetHeight,H.value=at})}else H.value={minHeight:ut(E.value).minHeight}},Lt=(u=>{let p=!1;return()=>{var T;if(p||!a.autosize)return;((T=E.value)==null?void 0:T.offsetParent)===null||(u(),p=!0)}})(ie),ue=()=>{const u=N.value,p=a.formatter?a.formatter(L.value):L.value;!u||u.value===p||(u.value=p)},Pe=async u=>{Vt();let{value:p}=u.target;if(a.formatter&&(p=a.parser?a.parser(p):p),!z.value){if(p===L.value){ue();return}n(Ve,p),n("input",p),await K(),ue(),zt()}},Xe=u=>{n("change",u.target.value)},Je=u=>{n("compositionstart",u),z.value=!0},Qe=u=>{var p;n("compositionupdate",u);const T=(p=u.target)==null?void 0:p.value,pe=T[T.length-1]||"";z.value=!yn(pe)},Ze=u=>{n("compositionend",u),z.value&&(z.value=!1,Pe(u))},Dt=()=>{G.value=!G.value,et()},et=async()=>{var u;await K(),(u=N.value)==null||u.focus()},Ut=()=>{var u;return(u=N.value)==null?void 0:u.blur()},Kt=u=>{ee.value=!1,n("mouseleave",u)},jt=u=>{ee.value=!0,n("mouseenter",u)},tt=u=>{n("keydown",u)},Wt=()=>{var u;(u=N.value)==null||u.select()},nt=()=>{n(Ve,""),n("change",""),n("clear"),n("input","")};return V(()=>a.modelValue,()=>{var u;K(()=>ie()),a.validateEvent&&((u=b==null?void 0:b.validate)==null||u.call(b,"change").catch(p=>void 0))}),V(L,()=>ue()),V(()=>a.type,async()=>{await K(),ue(),ie()}),ce(()=>{!a.formatter&&a.parser,ue(),K(ie)}),t({input:w,textarea:E,ref:N,textareaStyle:Ye,autosize:Ie(a,"autosize"),focus:et,blur:Ut,select:Wt,clear:nt,resizeTextarea:ie}),(u,p)=>on((m(),_("div",ke(s(i),{class:s(f),style:s(Ht),role:u.containerRole,onMouseenter:jt,onMouseleave:Kt}),[x(" input "),u.type!=="textarea"?(m(),_(we,{key:0},[x(" prepend slot "),u.$slots.prepend?(m(),_("div",{key:0,class:k(s(l).be("group","prepend"))},[O(u.$slots,"prepend")],2)):x("v-if",!0),ne("div",{ref_key:"wrapperRef",ref:oe,class:k(s(d))},[x(" prefix slot "),u.$slots.prefix||u.prefixIcon?(m(),_("span",{key:0,class:k(s(l).e("prefix"))},[ne("span",{class:k(s(l).e("prefix-inner"))},[O(u.$slots,"prefix"),u.prefixIcon?(m(),C(s(Y),{key:0,class:k(s(l).e("icon"))},{default:j(()=>[(m(),C(X(u.prefixIcon)))]),_:1},8,["class"])):x("v-if",!0)],2)],2)):x("v-if",!0),ne("input",ke({id:s(B),ref_key:"input",ref:w,class:s(l).e("inner")},s(h),{type:u.showPassword?G.value?"text":"password":u.type,disabled:s(c),formatter:u.formatter,parser:u.parser,readonly:u.readonly,autocomplete:u.autocomplete,tabindex:u.tabindex,"aria-label":u.label,placeholder:u.placeholder,style:u.inputStyle,form:a.form,onCompositionstart:Je,onCompositionupdate:Qe,onCompositionend:Ze,onInput:Pe,onFocus:p[0]||(p[0]=(...T)=>s(re)&&s(re)(...T)),onBlur:p[1]||(p[1]=(...T)=>s(M)&&s(M)(...T)),onChange:Xe,onKeydown:tt}),null,16,$n),x(" suffix slot "),s(Ot)?(m(),_("span",{key:1,class:k(s(l).e("suffix"))},[ne("span",{class:k(s(l).e("suffix-inner"))},[!s(de)||!s(_e)||!s(te)?(m(),_(we,{key:0},[O(u.$slots,"suffix"),u.suffixIcon?(m(),C(s(Y),{key:0,class:k(s(l).e("icon"))},{default:j(()=>[(m(),C(X(u.suffixIcon)))]),_:1},8,["class"])):x("v-if",!0)],64)):x("v-if",!0),s(de)?(m(),C(s(Y),{key:1,class:k([s(l).e("icon"),s(l).e("clear")]),onMousedown:ln(s(cn),["prevent"]),onClick:nt},{default:j(()=>[sn(s(un))]),_:1},8,["class","onMousedown"])):x("v-if",!0),s(_e)?(m(),C(s(Y),{key:2,class:k([s(l).e("icon"),s(l).e("password")]),onClick:Dt},{default:j(()=>[(m(),C(X(s(Bt))))]),_:1},8,["class"])):x("v-if",!0),s(te)?(m(),_("span",{key:3,class:k(s(l).e("count"))},[ne("span",{class:k(s(l).e("count-inner"))},ve(s(Ae))+" / "+ve(s(h).maxlength),3)],2)):x("v-if",!0),s(se)&&s(qe)&&s(Ge)?(m(),C(s(Y),{key:4,class:k([s(l).e("icon"),s(l).e("validateIcon"),s(l).is("loading",s(se)==="validating")])},{default:j(()=>[(m(),C(X(s(qe))))]),_:1},8,["class"])):x("v-if",!0)],2)],2)):x("v-if",!0)],2),x(" append slot "),u.$slots.append?(m(),_("div",{key:1,class:k(s(l).be("group","append"))},[O(u.$slots,"append")],2)):x("v-if",!0)],64)):(m(),_(we,{key:1},[x(" textarea "),ne("textarea",ke({id:s(B),ref_key:"textarea",ref:E,class:s(S).e("inner")},s(h),{tabindex:u.tabindex,disabled:s(c),readonly:u.readonly,autocomplete:u.autocomplete,style:s(Ye),"aria-label":u.label,placeholder:u.placeholder,form:a.form,onCompositionstart:Je,onCompositionupdate:Qe,onCompositionend:Ze,onInput:Pe,onFocus:p[2]||(p[2]=(...T)=>s(re)&&s(re)(...T)),onBlur:p[3]||(p[3]=(...T)=>s(M)&&s(M)(...T)),onChange:Xe,onKeydown:tt}),null,16,On),s(te)?(m(),_("span",{key:0,style:fn(fe.value),class:k(s(l).e("count"))},ve(s(Ae))+" / "+ve(s(h).maxlength),7)):x("v-if",!0)],64))],16,Hn)),[[rn,u.type!=="hidden"]])}});var Ln=Me(zn,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const Ma=kt(Ln),Ne="focus-trap.focus-after-trapped",Be="focus-trap.focus-after-released",Dn="focus-trap.focusout-prevented",lt={cancelable:!0,bubbles:!1},Un={cancelable:!0,bubbles:!1},ct="focusAfterTrapped",ft="focusAfterReleased",Kn=Symbol("elFocusTrap"),je=F(),Re=F(0),We=F(0);let he=0;const _t=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const r=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||r?NodeFilter.FILTER_SKIP:a.tabIndex>=0||a===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},dt=(e,t)=>{for(const n of e)if(!jn(n,t))return n},jn=(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},Wn=e=>{const t=_t(e),n=dt(t,e),a=dt(t.reverse(),e);return[n,a]},Gn=e=>e instanceof HTMLInputElement&&"select"in e,U=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),We.value=window.performance.now(),e!==n&&Gn(e)&&t&&e.select()}};function pt(e,t){const n=[...e],a=e.indexOf(t);return a!==-1&&n.splice(a,1),n}const qn=()=>{let e=[];return{push:a=>{const r=e[0];r&&a!==r&&r.pause(),e=pt(e,a),e.unshift(a)},remove:a=>{var r,o;e=pt(e,a),(o=(r=e[0])==null?void 0:r.resume)==null||o.call(r)}}},Yn=(e,t=!1)=>{const n=document.activeElement;for(const a of e)if(U(a,t),document.activeElement!==n)return},vt=qn(),Xn=()=>Re.value>We.value,be=()=>{je.value="pointer",Re.value=window.performance.now()},ht=()=>{je.value="keyboard",Re.value=window.performance.now()},Jn=()=>(ce(()=>{he===0&&(document.addEventListener("mousedown",be),document.addEventListener("touchstart",be),document.addEventListener("keydown",ht)),he++}),De(()=>{he--,he<=0&&(document.removeEventListener("mousedown",be),document.removeEventListener("touchstart",be),document.removeEventListener("keydown",ht))}),{focusReason:je,lastUserFocusTimestamp:Re,lastAutomatedFocusTimestamp:We}),ge=e=>new CustomEvent(Dn,{...Un,detail:e}),Qn=Z({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[ct,ft,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=F();let a,r;const{focusReason:o}=Jn();Fn(c=>{e.trapped&&!i.paused&&t("release-requested",c)});const i={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},f=c=>{if(!e.loop&&!e.trapped||i.paused)return;const{key:l,altKey:S,ctrlKey:w,metaKey:E,currentTarget:ee,shiftKey:z}=c,{loop:G}=e,fe=l===St.tab&&!S&&!w&&!E,H=document.activeElement;if(fe&&H){const N=ee,[oe,q]=Wn(N);if(oe&&q){if(!z&&H===q){const M=ge({focusReason:o.value});t("focusout-prevented",M),M.defaultPrevented||(c.preventDefault(),G&&U(oe,!0))}else if(z&&[oe,N].includes(H)){const M=ge({focusReason:o.value});t("focusout-prevented",M),M.defaultPrevented||(c.preventDefault(),G&&U(q,!0))}}else if(H===N){const M=ge({focusReason:o.value});t("focusout-prevented",M),M.defaultPrevented||c.preventDefault()}}};Tt(Kn,{focusTrapRef:n,onKeydown:f}),V(()=>e.focusTrapEl,c=>{c&&(n.value=c)},{immediate:!0}),V([n],([c],[l])=>{c&&(c.addEventListener("keydown",f),c.addEventListener("focusin",g),c.addEventListener("focusout",b)),l&&(l.removeEventListener("keydown",f),l.removeEventListener("focusin",g),l.removeEventListener("focusout",b))});const d=c=>{t(ct,c)},h=c=>t(ft,c),g=c=>{const l=s(n);if(!l)return;const S=c.target,w=c.relatedTarget,E=S&&l.contains(S);e.trapped||w&&l.contains(w)||(a=w),E&&t("focusin",c),!i.paused&&e.trapped&&(E?r=S:U(r,!0))},b=c=>{const l=s(n);if(!(i.paused||!l))if(e.trapped){const S=c.relatedTarget;!It(S)&&!l.contains(S)&&setTimeout(()=>{if(!i.paused&&e.trapped){const w=ge({focusReason:o.value});t("focusout-prevented",w),w.defaultPrevented||U(r,!0)}},0)}else{const S=c.target;S&&l.contains(S)||t("focusout",c)}};async function B(){await K();const c=s(n);if(c){vt.push(i);const l=c.contains(document.activeElement)?a:document.activeElement;if(a=l,!c.contains(l)){const w=new Event(Ne,lt);c.addEventListener(Ne,d),c.dispatchEvent(w),w.defaultPrevented||K(()=>{let E=e.focusStartEl;xe(E)||(U(E),document.activeElement!==E&&(E="first")),E==="first"&&Yn(_t(c),!0),(document.activeElement===l||E==="container")&&U(c)})}}}function y(){const c=s(n);if(c){c.removeEventListener(Ne,d);const l=new CustomEvent(Be,{...lt,detail:{focusReason:o.value}});c.addEventListener(Be,h),c.dispatchEvent(l),!l.defaultPrevented&&(o.value=="keyboard"||!Xn()||c.contains(document.activeElement))&&U(a??document.body),c.removeEventListener(Be,h),vt.remove(i)}}return ce(()=>{e.trapped&&B(),V(()=>e.trapped,c=>{c?B():y()})}),De(()=>{e.trapped&&y()}),{onKeydown:f}}});function Zn(e,t,n,a,r,o){return O(e.$slots,"default",{handleKeydown:e.onKeydown})}var Ra=Me(Qn,[["render",Zn],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const At=Symbol("buttonGroupContextKey"),ea=(e,t)=>{wn({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},v(()=>e.type==="text"));const n=Q(At,void 0),a=dn("button"),{form:r}=Rt(),o=Mt(v(()=>n==null?void 0:n.size)),i=Ke(),f=F(),d=wt(),h=v(()=>e.type||(n==null?void 0:n.type)||""),g=v(()=>{var c,l,S;return(S=(l=e.autoInsertSpace)!=null?l:(c=a.value)==null?void 0:c.autoInsertSpace)!=null?S:!1}),b=v(()=>e.tag==="button"?{ariaDisabled:i.value||e.loading,disabled:i.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),B=v(()=>{var c;const l=(c=d.default)==null?void 0:c.call(d);if(g.value&&(l==null?void 0:l.length)===1){const S=l[0];if((S==null?void 0:S.type)===pn){const w=S.children;return/^\p{Unified_Ideograph}{2}$/u.test(w.trim())}}return!1});return{_disabled:i,_size:o,_type:h,_ref:f,_props:b,shouldAddSpace:B,handleClick:c=>{e.nativeType==="reset"&&(r==null||r.resetFields()),t("click",c)}}},ta=["default","primary","success","warning","info","danger","text",""],na=["button","submit","reset"],ze=Et({size:xt,disabled:Boolean,type:{type:String,values:ta,default:""},icon:{type:Fe},nativeType:{type:String,values:na,default:"button"},loading:Boolean,loadingIcon:{type:Fe,default:()=>vn},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:Ee([String,Object]),default:"button"}}),aa={click:e=>e instanceof MouseEvent};function I(e,t){oa(e)&&(e="100%");var n=ra(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 me(e){return Math.min(1,Math.max(0,e))}function oa(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function ra(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Pt(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ye(e){return e<=1?"".concat(Number(e)*100,"%"):e}function J(e){return e.length===1?"0"+e:String(e)}function sa(e,t,n){return{r:I(e,255)*255,g:I(t,255)*255,b:I(n,255)*255}}function bt(e,t,n){e=I(e,255),t=I(t,255),n=I(n,255);var a=Math.max(e,t,n),r=Math.min(e,t,n),o=0,i=0,f=(a+r)/2;if(a===r)i=0,o=0;else{var d=a-r;switch(i=f>.5?d/(2-a-r):d/(a+r),a){case e:o=(t-n)/d+(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 ia(e,t,n){var a,r,o;if(e=I(e,360),t=I(t,100),n=I(n,100),t===0)r=n,o=n,a=n;else{var i=n<.5?n*(1+t):n+t-n*t,f=2*n-i;a=He(f,i,e+1/3),r=He(f,i,e),o=He(f,i,e-1/3)}return{r:a*255,g:r*255,b:o*255}}function gt(e,t,n){e=I(e,255),t=I(t,255),n=I(n,255);var a=Math.max(e,t,n),r=Math.min(e,t,n),o=0,i=a,f=a-r,d=a===0?0:f/a;if(a===r)o=0;else{switch(a){case e:o=(t-n)/f+(t>16,g:(e&65280)>>8,b:e&255}}var Le={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 da(e){var t={r:0,g:0,b:0},n=1,a=null,r=null,o=null,i=!1,f=!1;return typeof e=="string"&&(e=ha(e)),typeof e=="object"&&($(e.r)&&$(e.g)&&$(e.b)?(t=sa(e.r,e.g,e.b),i=!0,f=String(e.r).substr(-1)==="%"?"prgb":"rgb"):$(e.h)&&$(e.s)&&$(e.v)?(a=ye(e.s),r=ye(e.v),t=ua(e.h,a,r),i=!0,f="hsv"):$(e.h)&&$(e.s)&&$(e.l)&&(a=ye(e.s),o=ye(e.l),t=ia(e.h,a,o),i=!0,f="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Pt(n),{ok:i,format:e.format||f,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 pa="[-\\+]?\\d+%?",va="[-\\+]?\\d*\\.\\d+%?",W="(?:".concat(va,")|(?:").concat(pa,")"),$e="[\\s|\\(]+(".concat(W,")[,|\\s]+(").concat(W,")[,|\\s]+(").concat(W,")\\s*\\)?"),Oe="[\\s|\\(]+(".concat(W,")[,|\\s]+(").concat(W,")[,|\\s]+(").concat(W,")[,|\\s]+(").concat(W,")\\s*\\)?"),P={CSS_UNIT:new RegExp(W),rgb:new RegExp("rgb"+$e),rgba:new RegExp("rgba"+Oe),hsl:new RegExp("hsl"+$e),hsla:new RegExp("hsla"+Oe),hsv:new RegExp("hsv"+$e),hsva:new RegExp("hsva"+Oe),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 ha(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Le[e])e=Le[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=P.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=P.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=P.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=P.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=P.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=P.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=P.hex8.exec(e),n?{r:R(n[1]),g:R(n[2]),b:R(n[3]),a:yt(n[4]),format:t?"name":"hex8"}:(n=P.hex6.exec(e),n?{r:R(n[1]),g:R(n[2]),b:R(n[3]),format:t?"name":"hex"}:(n=P.hex4.exec(e),n?{r:R(n[1]+n[1]),g:R(n[2]+n[2]),b:R(n[3]+n[3]),a:yt(n[4]+n[4]),format:t?"name":"hex8"}:(n=P.hex3.exec(e),n?{r:R(n[1]+n[1]),g:R(n[2]+n[2]),b:R(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function $(e){return!!P.CSS_UNIT.exec(String(e))}var ba=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var a;if(t instanceof e)return t;typeof t=="number"&&(t=fa(t)),this.originalInput=t;var r=da(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=(a=n.format)!==null&&a!==void 0?a: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,a,r,o=t.r/255,i=t.g/255,f=t.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),i<=.03928?a=i/12.92:a=Math.pow((i+.055)/1.055,2.4),f<=.03928?r=f/12.92:r=Math.pow((f+.055)/1.055,2.4),.2126*n+.7152*a+.0722*r},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Pt(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=gt(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=gt(this.r,this.g,this.b),n=Math.round(t.h*360),a=Math.round(t.s*100),r=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(a,"%, ").concat(r,"%)"):"hsva(".concat(n,", ").concat(a,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=bt(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=bt(this.r,this.g,this.b),n=Math.round(t.h*360),a=Math.round(t.s*100),r=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(a,"%, ").concat(r,"%)"):"hsla(".concat(n,", ").concat(a,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),mt(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),la(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.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(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),a=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(a,")"):"rgba(".concat(t,", ").concat(n,", ").concat(a,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(I(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(I(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="#"+mt(this.r,this.g,this.b,!1),n=0,a=Object.entries(Le);n=0,o=!n&&r&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(a=this.toRgbString()),t==="prgb"&&(a=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(a=this.toHexString()),t==="hex3"&&(a=this.toHexString(!0)),t==="hex4"&&(a=this.toHex8String(!0)),t==="hex8"&&(a=this.toHex8String()),t==="name"&&(a=this.toName()),t==="hsl"&&(a=this.toHslString()),t==="hsv"&&(a=this.toHsvString()),a||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=me(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=me(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=me(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=me(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),a=(n.h+t)%360;return n.h=a<0?360+a:a,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var a=this.toRgb(),r=new e(t).toRgb(),o=n/100,i={r:(r.r-a.r)*o+a.r,g:(r.g-a.g)*o+a.g,b:(r.b-a.b)*o+a.b,a:(r.a-a.a)*o+a.a};return new e(i)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var a=this.toHsl(),r=360/n,o=[this];for(a.h=(a.h-(r*t>>1)+720)%360;--t;)a.h=(a.h+r)%360,o.push(new e(a));return o},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(),a=n.h,r=n.s,o=n.v,i=[],f=1/t;t--;)i.push(new e({h:a,s:r,v:o})),o=(o+f)%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(),a=new e(t).toRgb(),r=n.a+a.a*(1-n.a);return new e({r:(n.r*n.a+a.r*a.a*(1-n.a))/r,g:(n.g*n.a+a.g*a.a*(1-n.a))/r,b:(n.b*n.a+a.b*a.a*(1-n.a))/r,a:r})},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(),a=n.h,r=[this],o=360/t,i=1;i{let a={};const r=e.color;if(r){const o=new ba(r),i=e.dark?o.tint(20).toString():D(o,20);if(e.plain)a=n.cssVarBlock({"bg-color":e.dark?D(o,90):o.tint(90).toString(),"text-color":r,"border-color":e.dark?D(o,50):o.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&&(a[n.cssVarBlockName("disabled-bg-color")]=e.dark?D(o,90):o.tint(90).toString(),a[n.cssVarBlockName("disabled-text-color")]=e.dark?D(o,50):o.tint(50).toString(),a[n.cssVarBlockName("disabled-border-color")]=e.dark?D(o,80):o.tint(80).toString());else{const f=e.dark?D(o,30):o.tint(30).toString(),d=o.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(a=n.cssVarBlock({"bg-color":r,"text-color":d,"border-color":r,"hover-bg-color":f,"hover-text-color":d,"hover-border-color":f,"active-bg-color":i,"active-border-color":i}),t.value){const h=e.dark?D(o,50):o.tint(50).toString();a[n.cssVarBlockName("disabled-bg-color")]=h,a[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,a[n.cssVarBlockName("disabled-border-color")]=h}}}return a})}const ma=Z({name:"ElButton"}),ya=Z({...ma,props:ze,emits:aa,setup(e,{expose:t,emit:n}){const a=e,r=ga(a),o=le("button"),{_ref:i,_size:f,_type:d,_disabled:h,_props:g,shouldAddSpace:b,handleClick:B}=ea(a,n);return t({ref:i,size:f,type:d,disabled:h,shouldAddSpace:b}),(y,c)=>(m(),C(X(y.tag),ke({ref_key:"_ref",ref:i},s(g),{class:[s(o).b(),s(o).m(s(d)),s(o).m(s(f)),s(o).is("disabled",s(h)),s(o).is("loading",y.loading),s(o).is("plain",y.plain),s(o).is("round",y.round),s(o).is("circle",y.circle),s(o).is("text",y.text),s(o).is("link",y.link),s(o).is("has-bg",y.bg)],style:s(r),onClick:s(B)}),{default:j(()=>[y.loading?(m(),_(we,{key:0},[y.$slots.loading?O(y.$slots,"loading",{key:0}):(m(),C(s(Y),{key:1,class:k(s(o).is("loading"))},{default:j(()=>[(m(),C(X(y.loadingIcon)))]),_:1},8,["class"]))],64)):y.icon||y.$slots.icon?(m(),C(s(Y),{key:1},{default:j(()=>[y.icon?(m(),C(X(y.icon),{key:0})):O(y.$slots,"icon",{key:1})]),_:3})):x("v-if",!0),y.$slots.default?(m(),_("span",{key:2,class:k({[s(o).em("text","expand")]:s(b)})},[O(y.$slots,"default")],2)):x("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var Sa=Me(ya,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const Ea={size:ze.size,type:ze.type},xa=Z({name:"ElButtonGroup"}),wa=Z({...xa,props:Ea,setup(e){const t=e;Tt(At,hn({size:Ie(t,"size"),type:Ie(t,"type")}));const n=le("button");return(a,r)=>(m(),_("div",{class:k(`${s(n).b("group")}`)},[O(a.$slots,"default")],2))}});var Nt=Me(wa,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const _a=kt(Sa,{ButtonGroup:Nt});bn(Nt);export{Ca as C,_a as E,Kn as F,ba as T,Ve as U,Ra as a,Ma as b,Mt as c,Ke as d,Rt as e,Rn as f,Fa as g,wn as h,It as i,Ue as j,Ct as k,yn as l,Tn as m,Ia as t,In as u};