logistics_sy/public/admin/assets/element-plus.0e78cb27.js

15 lines
433 KiB
JavaScript

import{q as at,v as Mt,x as au,y as Ke,z as Rt,A as su,N as tt,B as Pt,e as $,i as De,r as M,C as fe,D as _e,u as l,w as ne,j as Re,l as Nn,E as mt,F as ct,G as vl,k as Zt,f as ru,p as sa,d as se,o as k,c as L,H as Q,I as vt,J as tn,K as X,L as H,M as Ie,O as Ye,a as x,P as S,Q as Ve,R as q,S as Ge,T as ce,U as j,V as Pe,W as kt,X as Bo,s as Kt,n as ke,Y as Mn,Z as Oe,_ as $e,$ as rt,a0 as iu,a1 as qs,a2 as Us,a3 as Ft,a4 as Ee,a5 as ml,m as Ys,a6 as uu,a7 as ot,a8 as Jn,a9 as xe,aa as Va,ab as cu,ac as al,ad as Gs,ae as du,af as hl,h as Se,ag as fu,ah as pu,ai as Ha,aj as vu,t as Xs,ak as wo,al as Nl,am as mu,an as Ka,ao as Rn,ap as hu,aq as gu,ar as bu,as as yu,at as vn,au as Zn}from"./@vue.e8706010.js";import{i as We,a as He,b as It,t as Cu,u as yn,c as Vt,d as Js,o as ra,e as Qn,r as wu,f as ku,g as Su,h as Eu,j as Wa,k as $u}from"./@vueuse.1e5a6e21.js";import{c as Qt,s as Zs,i as Qs,w as ia,a as er,l as vo,b as ua,d as Do,v as Tu,h as Nu,e as Pu,f as Iu,g as gl,j as mo,k as eo,m as to,n as sn,o as no,p as Mu,q as Ou,z as Au,r as tr,t as Bu,u as Du,x as Lu,y as nr,A as Ru,B as _u,C as ja,D as ca,E as Fu,F as zu,G as Vu}from"./@element-plus.196c7323.js";import{g as Tt,s as Hu,f as or,i as rn,d as hn,a as oo,c as Wl,b as xa,t as Pl,p as sl}from"./lodash-es.29c53eac.js";import{d as Me,l as Ku,a as Wu,c as ju,w as xu,b as qu,e as Uu,i as Yu,f as Gu}from"./dayjs.d871e3e1.js";import{S as Xu}from"./async-validator.fb49d0f5.js";import{T as lr}from"./@ctrl.82a509e0.js";import{e as Ju}from"./escape-html.e5dfadb9.js";import{Y as Zu}from"./normalize-wheel-es.8aeb3683.js";import{g as Qu}from"./axios.263e335e.js";const ec='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',tc=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,qa=e=>Array.from(e.querySelectorAll(ec)).filter(t=>nc(t)&&tc(t)),nc=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},jo=function(e,t,...n){let o;t.includes("mouse")||t.includes("click")?o="MouseEvents":t.includes("key")?o="KeyboardEvent":o="HTMLEvents";const a=document.createEvent(o);return a.initEvent(t,...n),e.dispatchEvent(a),e},Nt=(e,t,n,o=!1)=>{e&&t&&n&&(e==null||e.addEventListener(t,n,o))},xt=(e,t,n,o=!1)=>{e&&t&&n&&(e==null||e.removeEventListener(t,n,o))},oc=(e,t,n)=>{const o=function(...a){n&&n.apply(this,a),xt(e,t,o)};Nt(e,t,o)},pt=(e,t,{checkForDefaultPrevented:n=!0}={})=>a=>{const s=e==null?void 0:e(a);if(n===!1||!s)return t==null?void 0:t(a)},Ua=e=>t=>t.pointerType==="mouse"?e(t):void 0,lc=(e,t)=>{if(!We||!e||!t)return!1;const n=e.getBoundingClientRect();let o;return t instanceof Element?o=t.getBoundingClientRect():o={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},n.top<o.bottom&&n.bottom>o.top&&n.right>o.left&&n.left<o.right},da=e=>{let t,n;return e.type==="touchend"?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}},ac=function(e){for(const t of e){const n=t.target.__resizeListeners__||[];n.length&&n.forEach(o=>{o()})}},sc=function(e,t){!We||!e||(e.__resizeListeners__||(e.__resizeListeners__=[],e.__ro__=new ResizeObserver(ac),e.__ro__.observe(e)),e.__resizeListeners__.push(t))},rc=function(e,t){var n;!e||!e.__resizeListeners__||(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||(n=e.__ro__)==null||n.disconnect())},Jt=e=>e===void 0,ar=e=>!e&&e!==0||at(e)&&e.length===0||Mt(e)&&!Object.keys(e).length,gn=e=>typeof Element>"u"?!1:e instanceof Element,ic=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),rl=e=>Object.keys(e),uc=e=>Object.entries(e),xo=(e,t,n)=>({get value(){return Tt(e,t,n)},set value(o){Hu(e,t,o)}});class cc extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Ot(e,t){throw new cc(`[${e}] ${t}`)}const sr=(e="")=>e.split(" ").filter(t=>!!t.trim()),mn=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},ln=(e,t)=>{!e||!t.trim()||e.classList.add(...sr(t))},Bt=(e,t)=>{!e||!t.trim()||e.classList.remove(...sr(t))},on=(e,t)=>{var n;if(!We||!e||!t)return"";let o=au(t);o==="float"&&(o="cssFloat");try{const a=e.style[o];if(a)return a;const s=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return s?s[o]:""}catch{return e.style[o]}};function Wt(e,t="px"){if(!e)return"";if(Ke(e))return e;if(He(e))return`${e}${t}`}const dc=(e,t)=>{if(!We)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],o=on(e,n);return["scroll","auto","overlay"].some(a=>o.includes(a))},fc=(e,t)=>{if(!We)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(dc(n,t))return n;n=n.parentNode}return n};let zo;const pc=()=>{var e;if(!We)return 0;if(zo!==void 0)return zo;const t=document.createElement("div");t.className="el-scrollbar__wrap",t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);const n=t.offsetWidth;t.style.overflow="scroll";const o=document.createElement("div");o.style.width="100%",t.appendChild(o);const a=o.offsetWidth;return(e=t.parentNode)==null||e.removeChild(t),zo=n-a,zo};function vc(e,t){if(!We)return;if(!t){e.scrollTop=0;return}const n=[];let o=t.offsetParent;for(;o!==null&&e!==o&&e.contains(o);)n.push(o),o=o.offsetParent;const a=t.offsetTop+n.reduce((i,c)=>i+c.offsetTop,0),s=a+t.offsetHeight,r=e.scrollTop,u=r+e.clientHeight;a<r?e.scrollTop=a:s>u&&(e.scrollTop=s-e.clientHeight)}const rr="__epPropKey",te=e=>e,mc=e=>Mt(e)&&!!e[rr],bl=(e,t)=>{if(!Mt(e)||mc(e))return e;const{values:n,required:o,default:a,type:s,validator:r}=e,i={type:s,required:!!o,validator:n||r?c=>{let f=!1,h=[];if(n&&(h=Array.from(n),Rt(e,"default")&&h.push(a),f||(f=h.includes(c))),r&&(f||(f=r(c))),!f&&h.length>0){const p=[...new Set(h)].map(d=>JSON.stringify(d)).join(", ");su(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${p}], got value ${JSON.stringify(c)}.`)}return f}:void 0,[rr]:!0};return Rt(e,"default")&&(i.default=a),i},pe=e=>or(Object.entries(e).map(([t,n])=>[t,bl(n,t)])),_t=te([String,Object,Function]),hc={Close:Qt},yl={Close:Qt,SuccessFilled:Zs,InfoFilled:Qs,WarningFilled:ia,CircleCloseFilled:er},Pn={success:Zs,warning:ia,error:er,info:Qs},gc={validating:vo,success:ua,error:Do},je=(e,t)=>{if(e.install=n=>{for(const o of[e,...Object.values(t!=null?t:{})])n.component(o.name,o)},t)for(const[n,o]of Object.entries(t))e[n]=o;return e},ir=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),bc=(e,t)=>(e.install=n=>{n.directive(t,e)},e),St=e=>(e.install=tt,e),fa=(...e)=>t=>{e.forEach(n=>{Pt(n)?n(t):n.value=t})},be={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},yc=["year","month","date","dates","week","datetime","datetimerange","daterange","monthrange"],qe="update:modelValue",en="change",Kn="input",ho=["","default","small","large"],Cc={large:40,default:32,small:24},wc=e=>Cc[e||"default"],Cl=e=>["",...ho].includes(e);var qo=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(qo||{});const zn=e=>!e&&e!==0?[]:Array.isArray(e)?e:[e],kc=()=>We&&/firefox/i.test(window.navigator.userAgent),ur=e=>/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(e),cr=()=>Math.floor(Math.random()*1e4),yt=e=>e,Sc=["class","style"],Ec=/^on[A-Z]/,pa=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,o=$(()=>((n==null?void 0:n.value)||[]).concat(Sc)),a=De();return a?$(()=>{var s;return or(Object.entries((s=a.proxy)==null?void 0:s.$attrs).filter(([r])=>!o.value.includes(r)&&!(t&&Ec.test(r))))}):$(()=>({}))},dr=Symbol("breadcrumbKey"),fr=Symbol("buttonGroupContextKey"),pr=Symbol(),vr=Symbol("dialogInjectionKey"),fn=Symbol("formContextKey"),Ut=Symbol("formItemContextKey"),mr=Symbol("elPaginationKey"),hr=Symbol("radioGroupKey"),gr=Symbol("rowContextKey"),br=Symbol("scrollbarContextKey"),wl=Symbol("tabsRootContextKey"),yr=Symbol("uploadContextKey"),va=Symbol("popper"),Cr=Symbol("popperContent"),ma=Symbol(),wr=e=>{const t=De();return $(()=>{var n,o;return(o=((n=t.proxy)==null?void 0:n.$props)[e])!=null?o:void 0})},il=M();function jn(e,t=void 0){const n=De()?fe(pr,il):il;return e?$(()=>{var o,a;return(a=(o=n.value)==null?void 0:o[e])!=null?a:t}):n}const $c=(e,t,n=!1)=>{var o;const a=!!De(),s=a?jn():void 0,r=(o=t==null?void 0:t.provide)!=null?o:a?_e:void 0;if(!r)return;const u=$(()=>{const i=l(e);return s!=null&&s.value?Tc(s.value,i):i});return r(pr,u),(n||!il.value)&&(il.value=u.value),u},Tc=(e,t)=>{var n;const o=[...new Set([...rl(e),...rl(t)])],a={};for(const s of o)a[s]=(n=t[s])!=null?n:e[s];return a},Cn=bl({type:String,values:ho,required:!1}),wt=(e,t={})=>{const n=M(void 0),o=t.prop?n:wr("size"),a=t.global?n:jn("size"),s=t.form?{size:void 0}:fe(fn,void 0),r=t.formItem?{size:void 0}:fe(Ut,void 0);return $(()=>o.value||l(e)||(r==null?void 0:r.size)||(s==null?void 0:s.size)||a.value||"")},On=e=>{const t=wr("disabled"),n=fe(fn,void 0);return $(()=>t.value||l(e)||(n==null?void 0:n.disabled)||!1)},Lo=({from:e,replacement:t,scope:n,version:o,ref:a,type:s="API"},r)=>{ne(()=>l(r),u=>{},{immediate:!0})},kr=(e,t,n)=>{let o={offsetX:0,offsetY:0};const a=u=>{const i=u.clientX,c=u.clientY,{offsetX:f,offsetY:h}=o,p=e.value.getBoundingClientRect(),d=p.left,v=p.top,m=p.width,y=p.height,b=document.documentElement.clientWidth,C=document.documentElement.clientHeight,g=-d+f,w=-v+h,P=b-d-m+f,I=C-v-y+h,T=O=>{const V=Math.min(Math.max(f+O.clientX-i,g),P),W=Math.min(Math.max(h+O.clientY-c,w),I);o={offsetX:V,offsetY:W},e.value.style.transform=`translate(${Wt(V)}, ${Wt(W)})`},B=()=>{document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",B)};document.addEventListener("mousemove",T),document.addEventListener("mouseup",B)},s=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",a)},r=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",a)};Re(()=>{Nn(()=>{n.value?s():r()})}),mt(()=>{r()})},Nc=e=>({focus:()=>{var t,n;(n=(t=e.value)==null?void 0:t.focus)==null||n.call(t)}}),Pc={prefix:Math.floor(Math.random()*1e4),current:0},Ic=Symbol("elIdInjection"),cn=e=>{const t=fe(Ic,Pc);return $(()=>l(e)||`el-id-${t.prefix}-${t.current++}`)},Ro=()=>{const e=fe(fn,void 0),t=fe(Ut,void 0);return{form:e,formItem:t}},go=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:o})=>{n||(n=M(!1)),o||(o=M(!1));const a=M();let s;const r=$(()=>{var u;return!!(!e.label&&t&&t.inputIds&&((u=t.inputIds)==null?void 0:u.length)<=1)});return Re(()=>{s=ne([ct(e,"id"),n],([u,i])=>{const c=u!=null?u:i?void 0:cn().value;c!==a.value&&(t!=null&&t.removeInputId&&(a.value&&t.removeInputId(a.value),!(o!=null&&o.value)&&!i&&c&&t.addInputId(c)),a.value=c)},{immediate:!0})}),vl(()=>{s&&s(),t!=null&&t.removeInputId&&a.value&&t.removeInputId(a.value)}),{isLabeledByFormItem:r,inputId:a}};var Mc={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const Oc=e=>(t,n)=>Ac(t,n,l(e)),Ac=(e,t,n)=>Tt(n,e,e).replace(/\{(\w+)\}/g,(o,a)=>{var s;return`${(s=t==null?void 0:t[a])!=null?s:`{${a}}`}`}),Bc=e=>{const t=$(()=>l(e).name),n=Zt(e)?e:M(e);return{lang:t,locale:n,t:Oc(e)}},Je=()=>{const e=jn("locale");return Bc($(()=>e.value||Mc))},Sr=e=>{if(Zt(e)||Ot("[useLockscreen]","You need to pass a ref param to this function"),!We||mn(document.body,"el-popup-parent--hidden"))return;let t=0,n=!1,o="0",a=0;const s=()=>{Bt(document.body,"el-popup-parent--hidden"),n&&(document.body.style.paddingRight=o)};ne(e,r=>{if(!r){s();return}n=!mn(document.body,"el-popup-parent--hidden"),n&&(o=document.body.style.paddingRight,a=Number.parseInt(on(document.body,"paddingRight"),10)),t=pc();const u=document.documentElement.clientHeight<document.body.scrollHeight,i=on(document.body,"overflowY");t>0&&(u||i==="scroll")&&n&&(document.body.style.paddingRight=`${a+t}px`),ln(document.body,"el-popup-parent--hidden")}),ru(()=>s())},Dc=bl({type:te(Boolean),default:null}),Lc=bl({type:te(Function)}),Rc=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,o=[t],a={[e]:Dc,[n]:Lc};return{useModelToggle:({indicator:r,toggleReason:u,shouldHideWhenRouteChanges:i,shouldProceed:c,onShow:f,onHide:h})=>{const p=De(),{emit:d}=p,v=p.props,m=$(()=>Pt(v[n])),y=$(()=>v[e]===null),b=T=>{r.value!==!0&&(r.value=!0,u&&(u.value=T),Pt(f)&&f(T))},C=T=>{r.value!==!1&&(r.value=!1,u&&(u.value=T),Pt(h)&&h(T))},g=T=>{if(v.disabled===!0||Pt(c)&&!c())return;const B=m.value&&We;B&&d(t,!0),(y.value||!B)&&b(T)},w=T=>{if(v.disabled===!0||!We)return;const B=m.value&&We;B&&d(t,!1),(y.value||!B)&&C(T)},P=T=>{!It(T)||(v.disabled&&T?m.value&&d(t,!1):r.value!==T&&(T?b():C()))},I=()=>{r.value?w():g()};return ne(()=>v[e],P),i&&p.appContext.config.globalProperties.$route!==void 0&&ne(()=>({...p.proxy.$route}),()=>{i.value&&r.value&&w()}),Re(()=>{P(v[e])}),{hide:w,show:g,toggle:I}},useModelToggleProps:a,useModelToggleEmits:o}},_c=(e,t)=>{let n;ne(()=>e.value,o=>{var a,s;o?(n=document.activeElement,Zt(t)&&((s=(a=t.value).focus)==null||s.call(a))):n.focus()})},ha=e=>{if(!e)return{onClick:tt,onMousedown:tt,onMouseup:tt};let t=!1,n=!1;return{onClick:r=>{t&&n&&e(r),t=n=!1},onMousedown:r=>{t=r.target===r.currentTarget},onMouseup:r=>{n=r.target===r.currentTarget}}};function Fc(){let e;const t=(o,a)=>{n(),e=window.setTimeout(o,a)},n=()=>window.clearTimeout(e);return Cu(()=>n()),{registerTimeout:t,cancelTimeout:n}}let xn=[];const zc=e=>{const t=n=>{const o=n;o.key===be.esc&&xn.forEach(a=>a(o))};Re(()=>{xn.length===0&&document.addEventListener("keydown",t),We&&xn.push(e)}),mt(()=>{xn=xn.filter(n=>n!==e),xn.length===0&&We&&document.removeEventListener("keydown",t)})};let Ya;const Er=`el-popper-container-${cr()}`,$r=`#${Er}`,Vc=()=>{const e=document.createElement("div");return e.id=Er,document.body.appendChild(e),e},Hc=()=>{sa(()=>{!We||(!Ya||!document.body.querySelector($r))&&(Ya=Vc())})},Kc=pe({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200}}),Wc=({showAfter:e,hideAfter:t,open:n,close:o})=>{const{registerTimeout:a}=Fc();return{onOpen:u=>{a(()=>{n(u)},l(e))},onClose:u=>{a(()=>{o(u)},l(t))}}},Tr=Symbol("elForwardRef"),jc=e=>{_e(Tr,{setForwardRef:n=>{e.value=n}})},xc=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),Nr="el",qc="is-",Dn=(e,t,n,o,a)=>{let s=`${e}-${t}`;return n&&(s+=`-${n}`),o&&(s+=`__${o}`),a&&(s+=`--${a}`),s},ae=e=>{const t=jn("namespace"),n=$(()=>t.value||Nr);return{namespace:n,b:(m="")=>Dn(l(n),e,m,"",""),e:m=>m?Dn(l(n),e,"",m,""):"",m:m=>m?Dn(l(n),e,"","",m):"",be:(m,y)=>m&&y?Dn(l(n),e,m,y,""):"",em:(m,y)=>m&&y?Dn(l(n),e,"",m,y):"",bm:(m,y)=>m&&y?Dn(l(n),e,m,"",y):"",bem:(m,y,b)=>m&&y&&b?Dn(l(n),e,m,y,b):"",is:(m,...y)=>{const b=y.length>=1?y[0]:!0;return m&&b?`${qc}${m}`:""},cssVar:m=>{const y={};for(const b in m)y[`--${n.value}-${b}`]=m[b];return y},cssVarName:m=>`--${n.value}-${m}`,cssVarBlock:m=>{const y={};for(const b in m)y[`--${n.value}-${e}-${b}`]=m[b];return y},cssVarBlockName:m=>`--${n.value}-${e}-${m}`}},Ga=M(0),An=()=>{const e=jn("zIndex",2e3),t=$(()=>e.value+Ga.value);return{initialZIndex:e,currentZIndex:t,nextZIndex:()=>(Ga.value++,t.value)}};function Uc(e){const t=M();function n(){if(e.value==null)return;const{selectionStart:a,selectionEnd:s,value:r}=e.value;if(a==null||s==null)return;const u=r.slice(0,Math.max(0,a)),i=r.slice(Math.max(0,s));t.value={selectionStart:a,selectionEnd:s,value:r,beforeTxt:u,afterTxt:i}}function o(){if(e.value==null||t.value==null)return;const{value:a}=e.value,{beforeTxt:s,afterTxt:r,selectionStart:u}=t.value;if(s==null||r==null||u==null)return;let i=a.length;if(a.endsWith(r))i=a.length-r.length;else if(a.startsWith(s))i=s.length;else{const c=s[u-1],f=a.indexOf(c,u-1);f!==-1&&(i=f+1)}e.value.setSelectionRange(i,i)}return[n,o]}var ue=(e,t)=>{const n=e.__vccOpts||e;for(const[o,a]of t)n[o]=a;return n};const Yc=pe({size:{type:te([Number,String])},color:{type:String}}),Gc={name:"ElIcon",inheritAttrs:!1},Xc=se({...Gc,props:Yc,setup(e){const t=e,n=ae("icon"),o=$(()=>!t.size&&!t.color?{}:{fontSize:Jt(t.size)?void 0:Wt(t.size),"--color":t.color});return(a,s)=>(k(),L("i",vt({class:l(n).b(),style:l(o)},a.$attrs),[Q(a.$slots,"default")],16))}});var Jc=ue(Xc,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const ve=je(Jc),Zc=["light","dark"],Qc=pe({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:rl(Pn),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:Zc,default:"light"}}),ed={close:e=>e instanceof MouseEvent},td={name:"ElAlert"},nd=se({...td,props:Qc,emits:ed,setup(e,{emit:t}){const n=e,{Close:o}=yl,a=tn(),s=ae("alert"),r=M(!0),u=$(()=>Pn[n.type]),i=$(()=>[s.e("icon"),{[s.is("big")]:!!n.description||!!a.default}]),c=$(()=>n.description||{[s.is("bold")]:a.default}),f=h=>{r.value=!1,t("close",h)};return(h,p)=>(k(),X(kt,{name:l(s).b("fade"),persisted:""},{default:H(()=>[Ie(x("div",{class:S([l(s).b(),l(s).m(h.type),l(s).is("center",h.center),l(s).is(h.effect)]),role:"alert"},[h.showIcon&&l(u)?(k(),X(l(ve),{key:0,class:S(l(i))},{default:H(()=>[(k(),X(Ve(l(u))))]),_:1},8,["class"])):q("v-if",!0),x("div",{class:S(l(s).e("content"))},[h.title||h.$slots.title?(k(),L("span",{key:0,class:S([l(s).e("title"),l(c)])},[Q(h.$slots,"title",{},()=>[Ge(ce(h.title),1)])],2)):q("v-if",!0),h.$slots.default||h.description?(k(),L("p",{key:1,class:S(l(s).e("description"))},[Q(h.$slots,"default",{},()=>[Ge(ce(h.description),1)])],2)):q("v-if",!0),h.closable?(k(),L(Pe,{key:2},[h.closeText?(k(),L("div",{key:0,class:S([l(s).e("close-btn"),l(s).is("customed")]),onClick:f},ce(h.closeText),3)):(k(),X(l(ve),{key:1,class:S(l(s).e("close-btn")),onClick:f},{default:H(()=>[j(l(o))]),_:1},8,["class"]))],64)):q("v-if",!0)],2)],2),[[Ye,r.value]])]),_:3},8,["name"]))}});var od=ue(nd,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);const pS=je(od);let Xt;const ld=`
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
`,ad=["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 sd(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),o=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),a=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:ad.map(r=>`${r}:${t.getPropertyValue(r)}`).join(";"),paddingSize:o,borderSize:a,boxSizing:n}}function Xa(e,t=1,n){var o;Xt||(Xt=document.createElement("textarea"),document.body.appendChild(Xt));const{paddingSize:a,borderSize:s,boxSizing:r,contextStyle:u}=sd(e);Xt.setAttribute("style",`${u};${ld}`),Xt.value=e.value||e.placeholder||"";let i=Xt.scrollHeight;const c={};r==="border-box"?i=i+s:r==="content-box"&&(i=i-a),Xt.value="";const f=Xt.scrollHeight-a;if(He(t)){let h=f*t;r==="border-box"&&(h=h+a+s),i=Math.max(h,i),c.minHeight=`${h}px`}if(He(n)){let h=f*n;r==="border-box"&&(h=h+a+s),i=Math.min(h,i)}return c.height=`${i}px`,(o=Xt.parentNode)==null||o.removeChild(Xt),Xt=void 0,c}const rd=pe({id:{type:String,default:void 0},size:Cn,disabled:Boolean,modelValue:{type:te([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:te([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:_t,default:""},prefixIcon:{type:_t,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:te([Object,Array,String]),default:()=>yt({})}}),id={[qe]:e=>Ke(e),input:e=>Ke(e),change:e=>Ke(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},ud=["role"],cd=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder"],dd=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder"],fd={name:"ElInput",inheritAttrs:!1},pd=se({...fd,props:rd,emits:id,setup(e,{expose:t,emit:n}){const o=e,a={suffix:"append",prefix:"prepend"},s=De(),r=Bo(),u=tn(),i=$(()=>{const le={};return o.containerRole==="combobox"&&(le["aria-haspopup"]=r["aria-haspopup"],le["aria-owns"]=r["aria-owns"],le["aria-expanded"]=r["aria-expanded"]),le}),c=pa({excludeKeys:$(()=>Object.keys(i.value))}),{form:f,formItem:h}=Ro(),{inputId:p}=go(o,{formItemContext:h}),d=wt(),v=On(),m=ae("input"),y=ae("textarea"),b=Kt(),C=Kt(),g=M(!1),w=M(!1),P=M(!1),I=M(!1),T=M(),B=Kt(o.inputStyle),O=$(()=>b.value||C.value),V=$(()=>{var le;return(le=f==null?void 0:f.statusIcon)!=null?le:!1}),W=$(()=>(h==null?void 0:h.validateState)||""),Z=$(()=>W.value&&gc[W.value]),F=$(()=>I.value?Tu:Nu),K=$(()=>[r.style,o.inputStyle]),Y=$(()=>[o.inputStyle,B.value,{resize:o.resize}]),_=$(()=>rn(o.modelValue)?"":String(o.modelValue)),D=$(()=>o.clearable&&!v.value&&!o.readonly&&!!_.value&&(g.value||w.value)),A=$(()=>o.showPassword&&!v.value&&!o.readonly&&!!_.value&&(!!_.value||g.value)),N=$(()=>o.showWordLimit&&!!c.value.maxlength&&(o.type==="text"||o.type==="textarea")&&!v.value&&!o.readonly&&!o.showPassword),R=$(()=>Array.from(_.value).length),G=$(()=>!!N.value&&R.value>Number(c.value.maxlength)),re=$(()=>!!u.suffix||!!o.suffixIcon||D.value||o.showPassword||N.value||!!W.value&&V.value),[de,ye]=Uc(b);yn(C,le=>{if(!N.value||o.resize!=="both")return;const Be=le[0],{width:Fe}=Be.contentRect;T.value={right:`calc(100% - ${Fe+15+6}px)`}});const ge=()=>{const{type:le,autosize:Be}=o;if(!(!We||le!=="textarea"))if(Be){const Fe=Mt(Be)?Be.minRows:void 0,Qe=Mt(Be)?Be.maxRows:void 0;B.value={...Xa(C.value,Fe,Qe)}}else B.value={minHeight:Xa(C.value).minHeight}},Te=()=>{const le=O.value;!le||le.value===_.value||(le.value=_.value)},J=le=>{const{el:Be}=s.vnode;if(!Be)return;const Qe=Array.from(Be.querySelectorAll(`.${m.e(le)}`)).find(oe=>oe.parentNode===Be);if(!Qe)return;const U=a[le];u[U]?Qe.style.transform=`translateX(${le==="suffix"?"-":""}${Be.querySelector(`.${m.be("group",U)}`).offsetWidth}px)`:Qe.removeAttribute("style")},me=()=>{J("prefix"),J("suffix")},Ne=async le=>{de();let{value:Be}=le.target;o.formatter&&(Be=o.parser?o.parser(Be):Be,Be=o.formatter(Be)),!P.value&&Be!==_.value&&(n(qe,Be),n("input",Be),await ke(),Te(),ye())},Le=le=>{n("change",le.target.value)},Xe=le=>{n("compositionstart",le),P.value=!0},Ze=le=>{var Be;n("compositionupdate",le);const Fe=(Be=le.target)==null?void 0:Be.value,Qe=Fe[Fe.length-1]||"";P.value=!ur(Qe)},Ue=le=>{n("compositionend",le),P.value&&(P.value=!1,Ne(le))},ht=()=>{I.value=!I.value,Ae()},Ae=async()=>{var le;await ke(),(le=O.value)==null||le.focus()},it=()=>{var le;return(le=O.value)==null?void 0:le.blur()},lt=le=>{g.value=!0,n("focus",le)},ft=le=>{var Be;g.value=!1,n("blur",le),o.validateEvent&&((Be=h==null?void 0:h.validate)==null||Be.call(h,"blur").catch(Fe=>void 0))},gt=le=>{w.value=!1,n("mouseleave",le)},et=le=>{w.value=!0,n("mouseenter",le)},st=le=>{n("keydown",le)},Et=()=>{var le;(le=O.value)==null||le.select()},bt=()=>{n(qe,""),n("change",""),n("clear"),n("input","")};return ne(()=>o.modelValue,()=>{var le;ke(()=>ge()),o.validateEvent&&((le=h==null?void 0:h.validate)==null||le.call(h,"change").catch(Be=>void 0))}),ne(_,()=>Te()),ne(()=>o.type,async()=>{await ke(),Te(),ge(),me()}),Re(async()=>{!o.formatter&&o.parser,Te(),me(),await ke(),ge()}),Mn(async()=>{await ke(),me()}),t({input:b,textarea:C,ref:O,textareaStyle:Y,autosize:ct(o,"autosize"),focus:Ae,blur:it,select:Et,clear:bt,resizeTextarea:ge}),(le,Be)=>Ie((k(),L("div",vt(l(i),{class:[le.type==="textarea"?l(y).b():l(m).b(),l(m).m(l(d)),l(m).is("disabled",l(v)),l(m).is("exceed",l(G)),{[l(m).b("group")]:le.$slots.prepend||le.$slots.append,[l(m).bm("group","append")]:le.$slots.append,[l(m).bm("group","prepend")]:le.$slots.prepend,[l(m).m("prefix")]:le.$slots.prefix||le.prefixIcon,[l(m).m("suffix")]:le.$slots.suffix||le.suffixIcon||le.clearable||le.showPassword,[l(m).bm("suffix","password-clear")]:l(D)&&l(A)},le.$attrs.class],style:l(K),role:le.containerRole,onMouseenter:et,onMouseleave:gt}),[q(" input "),le.type!=="textarea"?(k(),L(Pe,{key:0},[q(" prepend slot "),le.$slots.prepend?(k(),L("div",{key:0,class:S(l(m).be("group","prepend"))},[Q(le.$slots,"prepend")],2)):q("v-if",!0),x("div",{class:S([l(m).e("wrapper"),l(m).is("focus",g.value)])},[q(" prefix slot "),le.$slots.prefix||le.prefixIcon?(k(),L("span",{key:0,class:S(l(m).e("prefix"))},[x("span",{class:S(l(m).e("prefix-inner"))},[Q(le.$slots,"prefix"),le.prefixIcon?(k(),X(l(ve),{key:0,class:S(l(m).e("icon"))},{default:H(()=>[(k(),X(Ve(le.prefixIcon)))]),_:1},8,["class"])):q("v-if",!0)],2)],2)):q("v-if",!0),x("input",vt({id:l(p),ref_key:"input",ref:b,class:l(m).e("inner")},l(c),{type:le.showPassword?I.value?"text":"password":le.type,disabled:l(v),formatter:le.formatter,parser:le.parser,readonly:le.readonly,autocomplete:le.autocomplete,tabindex:le.tabindex,"aria-label":le.label,placeholder:le.placeholder,style:le.inputStyle,onCompositionstart:Xe,onCompositionupdate:Ze,onCompositionend:Ue,onInput:Ne,onFocus:lt,onBlur:ft,onChange:Le,onKeydown:st}),null,16,cd),q(" suffix slot "),l(re)?(k(),L("span",{key:1,class:S(l(m).e("suffix"))},[x("span",{class:S(l(m).e("suffix-inner"))},[!l(D)||!l(A)||!l(N)?(k(),L(Pe,{key:0},[Q(le.$slots,"suffix"),le.suffixIcon?(k(),X(l(ve),{key:0,class:S(l(m).e("icon"))},{default:H(()=>[(k(),X(Ve(le.suffixIcon)))]),_:1},8,["class"])):q("v-if",!0)],64)):q("v-if",!0),l(D)?(k(),X(l(ve),{key:1,class:S([l(m).e("icon"),l(m).e("clear")]),onMousedown:Oe(l(tt),["prevent"]),onClick:bt},{default:H(()=>[j(l(Do))]),_:1},8,["class","onMousedown"])):q("v-if",!0),l(A)?(k(),X(l(ve),{key:2,class:S([l(m).e("icon"),l(m).e("password")]),onClick:ht},{default:H(()=>[(k(),X(Ve(l(F))))]),_:1},8,["class"])):q("v-if",!0),l(N)?(k(),L("span",{key:3,class:S(l(m).e("count"))},[x("span",{class:S(l(m).e("count-inner"))},ce(l(R))+" / "+ce(l(c).maxlength),3)],2)):q("v-if",!0),l(W)&&l(Z)&&l(V)?(k(),X(l(ve),{key:4,class:S([l(m).e("icon"),l(m).e("validateIcon"),l(m).is("loading",l(W)==="validating")])},{default:H(()=>[(k(),X(Ve(l(Z))))]),_:1},8,["class"])):q("v-if",!0)],2)],2)):q("v-if",!0)],2),q(" append slot "),le.$slots.append?(k(),L("div",{key:1,class:S(l(m).be("group","append"))},[Q(le.$slots,"append")],2)):q("v-if",!0)],64)):(k(),L(Pe,{key:1},[q(" textarea "),x("textarea",vt({id:l(p),ref_key:"textarea",ref:C,class:l(y).e("inner")},l(c),{tabindex:le.tabindex,disabled:l(v),readonly:le.readonly,autocomplete:le.autocomplete,style:l(Y),"aria-label":le.label,placeholder:le.placeholder,onCompositionstart:Xe,onCompositionupdate:Ze,onCompositionend:Ue,onInput:Ne,onFocus:lt,onBlur:ft,onChange:Le,onKeydown:st}),null,16,dd),l(N)?(k(),L("span",{key:0,style:$e(T.value),class:S(l(m).e("count"))},ce(l(R))+" / "+ce(l(c).maxlength),7)):q("v-if",!0)],64))],16,ud)),[[Ye,le.type!=="hidden"]])}});var vd=ue(pd,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const Ht=je(vd),Yn=4,md={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"}},hd=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),gd=pe({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),bd=se({__name:"thumb",props:gd,setup(e){const t=e,n="Thumb",o=fe(br),a=ae("scrollbar");o||Ot(n,"can not inject scrollbar context");const s=M(),r=M(),u=M({}),i=M(!1);let c=!1,f=!1,h=We?document.onselectstart:null;const p=$(()=>md[t.vertical?"vertical":"horizontal"]),d=$(()=>hd({size:t.size,move:t.move,bar:p.value})),v=$(()=>s.value[p.value.offset]**2/o.wrapElement[p.value.scrollSize]/t.ratio/r.value[p.value.offset]),m=T=>{var B;if(T.stopPropagation(),T.ctrlKey||[1,2].includes(T.button))return;(B=window.getSelection())==null||B.removeAllRanges(),b(T);const O=T.currentTarget;!O||(u.value[p.value.axis]=O[p.value.offset]-(T[p.value.client]-O.getBoundingClientRect()[p.value.direction]))},y=T=>{if(!r.value||!s.value||!o.wrapElement)return;const B=Math.abs(T.target.getBoundingClientRect()[p.value.direction]-T[p.value.client]),O=r.value[p.value.offset]/2,V=(B-O)*100*v.value/s.value[p.value.offset];o.wrapElement[p.value.scroll]=V*o.wrapElement[p.value.scrollSize]/100},b=T=>{T.stopImmediatePropagation(),c=!0,document.addEventListener("mousemove",C),document.addEventListener("mouseup",g),h=document.onselectstart,document.onselectstart=()=>!1},C=T=>{if(!s.value||!r.value||c===!1)return;const B=u.value[p.value.axis];if(!B)return;const O=(s.value.getBoundingClientRect()[p.value.direction]-T[p.value.client])*-1,V=r.value[p.value.offset]-B,W=(O-V)*100*v.value/s.value[p.value.offset];o.wrapElement[p.value.scroll]=W*o.wrapElement[p.value.scrollSize]/100},g=()=>{c=!1,u.value[p.value.axis]=0,document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",g),I(),f&&(i.value=!1)},w=()=>{f=!1,i.value=!!t.size},P=()=>{f=!0,i.value=c};mt(()=>{I(),document.removeEventListener("mouseup",g)});const I=()=>{document.onselectstart!==h&&(document.onselectstart=h)};return Vt(ct(o,"scrollbarElement"),"mousemove",w),Vt(ct(o,"scrollbarElement"),"mouseleave",P),(T,B)=>(k(),X(kt,{name:l(a).b("fade"),persisted:""},{default:H(()=>[Ie(x("div",{ref_key:"instance",ref:s,class:S([l(a).e("bar"),l(a).is(l(p).key)]),onMousedown:y},[x("div",{ref_key:"thumb",ref:r,class:S(l(a).e("thumb")),style:$e(l(d)),onMousedown:m},null,38)],34),[[Ye,T.always||i.value]])]),_:1},8,["name"]))}});var Ja=ue(bd,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const yd=pe({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),Cd=se({__name:"bar",props:yd,setup(e,{expose:t}){const n=e,o=M(0),a=M(0);return t({handleScroll:r=>{if(r){const u=r.offsetHeight-Yn,i=r.offsetWidth-Yn;a.value=r.scrollTop*100/u*n.ratioY,o.value=r.scrollLeft*100/i*n.ratioX}}}),(r,u)=>(k(),L(Pe,null,[j(Ja,{move:o.value,ratio:r.ratioX,size:r.width,always:r.always},null,8,["move","ratio","size","always"]),j(Ja,{move:a.value,ratio:r.ratioY,size:r.height,vertical:"",always:r.always},null,8,["move","ratio","size","always"])],64))}});var wd=ue(Cd,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const kd=pe({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:te([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}}),Sd={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(He)},Ed={name:"ElScrollbar"},$d=se({...Ed,props:kd,emits:Sd,setup(e,{expose:t,emit:n}){const o=e,a=ae("scrollbar");let s,r;const u=M(),i=M(),c=M(),f=M("0"),h=M("0"),p=M(),d=M(1),v=M(1),m=$(()=>{const P={};return o.height&&(P.height=Wt(o.height)),o.maxHeight&&(P.maxHeight=Wt(o.maxHeight)),[o.wrapStyle,P]}),y=()=>{var P;i.value&&((P=p.value)==null||P.handleScroll(i.value),n("scroll",{scrollTop:i.value.scrollTop,scrollLeft:i.value.scrollLeft}))};function b(P,I){Mt(P)?i.value.scrollTo(P):He(P)&&He(I)&&i.value.scrollTo(P,I)}const C=P=>{!He(P)||(i.value.scrollTop=P)},g=P=>{!He(P)||(i.value.scrollLeft=P)},w=()=>{if(!i.value)return;const P=i.value.offsetHeight-Yn,I=i.value.offsetWidth-Yn,T=P**2/i.value.scrollHeight,B=I**2/i.value.scrollWidth,O=Math.max(T,o.minSize),V=Math.max(B,o.minSize);d.value=T/(P-T)/(O/(P-O)),v.value=B/(I-B)/(V/(I-V)),h.value=O+Yn<P?`${O}px`:"",f.value=V+Yn<I?`${V}px`:""};return ne(()=>o.noresize,P=>{P?(s==null||s(),r==null||r()):({stop:s}=yn(c,w),r=Vt("resize",w))},{immediate:!0}),ne(()=>[o.maxHeight,o.height],()=>{o.native||ke(()=>{var P;w(),i.value&&((P=p.value)==null||P.handleScroll(i.value))})}),_e(br,rt({scrollbarElement:u,wrapElement:i})),Re(()=>{o.native||ke(()=>w())}),Mn(()=>w()),t({wrap$:i,update:w,scrollTo:b,setScrollTop:C,setScrollLeft:g,handleScroll:y}),(P,I)=>(k(),L("div",{ref_key:"scrollbar$",ref:u,class:S(l(a).b())},[x("div",{ref_key:"wrap$",ref:i,class:S([P.wrapClass,l(a).e("wrap"),{[l(a).em("wrap","hidden-default")]:!P.native}]),style:$e(l(m)),onScroll:y},[(k(),X(Ve(P.tag),{ref_key:"resize$",ref:c,class:S([l(a).e("view"),P.viewClass]),style:$e(P.viewStyle)},{default:H(()=>[Q(P.$slots,"default")]),_:3},8,["class","style"]))],38),P.native?q("v-if",!0):(k(),X(wd,{key:0,ref_key:"barRef",ref:p,height:h.value,width:f.value,always:P.always,"ratio-x":v.value,"ratio-y":d.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var Td=ue($d,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const bo=je(Td),Nd={LIGHT:"light",DARK:"dark"},Pr=pe({role:{type:String,default:"tooltip"}}),Pd={name:"ElPopperRoot",inheritAttrs:!1},Id=se({...Pd,props:Pr,setup(e,{expose:t}){const n=e,o=M(),a=M(),s=M(),r=M(),u=$(()=>n.role),i={triggerRef:o,popperInstanceRef:a,contentRef:s,referenceRef:r,role:u};return t(i),_e(va,i),(c,f)=>Q(c.$slots,"default")}});var Md=ue(Id,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const Ir=pe({arrowOffset:{type:Number,default:5}}),Od={name:"ElPopperArrow",inheritAttrs:!1},Ad=se({...Od,props:Ir,setup(e,{expose:t}){const n=e,o=ae("popper"),{arrowOffset:a,arrowRef:s}=fe(Cr,void 0);return ne(()=>n.arrowOffset,r=>{a.value=r}),mt(()=>{s.value=void 0}),t({arrowRef:s}),(r,u)=>(k(),L("span",{ref_key:"arrowRef",ref:s,class:S(l(o).e("arrow")),"data-popper-arrow":""},null,2))}});var Bd=ue(Ad,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const Dd="ElOnlyChild",Mr=se({name:Dd,setup(e,{slots:t,attrs:n}){var o;const a=fe(Tr),s=xc((o=a==null?void 0:a.setForwardRef)!=null?o:tt);return()=>{var r;const u=(r=t.default)==null?void 0:r.call(t,n);if(!u||u.length>1)return null;const i=Or(u);return i?Ie(iu(i,n),[[s]]):null}}});function Or(e){if(!e)return null;const t=e;for(const n of t){if(Mt(n))switch(n.type){case Us:continue;case qs:case"svg":return Za(n);case Pe:return Or(n.children);default:return n}return Za(n)}return null}function Za(e){return j("span",{class:"el-only-child__content"},[e])}const Ar=pe({virtualRef:{type:te(Object)},virtualTriggering:Boolean,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,onBlur:Function,onContextmenu:Function,id:String,open:Boolean}),Ld={name:"ElPopperTrigger",inheritAttrs:!1},Rd=se({...Ld,props:Ar,setup(e,{expose:t}){const n=e,{role:o,triggerRef:a}=fe(va,void 0);jc(a);const s=$(()=>u.value?n.id:void 0),r=$(()=>{if(o&&o.value==="tooltip")return n.open&&n.id?n.id:void 0}),u=$(()=>{if(o&&o.value!=="tooltip")return o.value}),i=$(()=>u.value?`${n.open}`:void 0);let c;return Re(()=>{ne(()=>n.virtualRef,f=>{f&&(a.value=Js(f))},{immediate:!0}),ne(()=>a.value,(f,h)=>{c==null||c(),c=void 0,gn(f)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(p=>{var d;const v=n[p];v&&(f.addEventListener(p.slice(2).toLowerCase(),v),(d=h==null?void 0:h.removeEventListener)==null||d.call(h,p.slice(2).toLowerCase(),v))}),c=ne([s,r,u,i],p=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((d,v)=>{rn(p[v])?f.removeAttribute(d):f.setAttribute(d,p[v])})},{immediate:!0})),gn(h)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(p=>h.removeAttribute(p))},{immediate:!0})}),mt(()=>{c==null||c(),c=void 0}),t({triggerRef:a}),(f,h)=>f.virtualTriggering?q("v-if",!0):(k(),X(l(Mr),vt({key:0},f.$attrs,{"aria-controls":l(s),"aria-describedby":l(r),"aria-expanded":l(i),"aria-haspopup":l(u)}),{default:H(()=>[Q(f.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var _d=ue(Rd,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]),Dt="top",Yt="bottom",Gt="right",Lt="left",ga="auto",_o=[Dt,Yt,Gt,Lt],lo="start",Po="end",Fd="clippingParents",Br="viewport",ko="popper",zd="reference",Qa=_o.reduce(function(e,t){return e.concat([t+"-"+lo,t+"-"+Po])},[]),ba=[].concat(_o,[ga]).reduce(function(e,t){return e.concat([t,t+"-"+lo,t+"-"+Po])},[]),Vd="beforeRead",Hd="read",Kd="afterRead",Wd="beforeMain",jd="main",xd="afterMain",qd="beforeWrite",Ud="write",Yd="afterWrite",Gd=[Vd,Hd,Kd,Wd,jd,xd,qd,Ud,Yd];function dn(e){return e?(e.nodeName||"").toLowerCase():null}function nn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ao(e){var t=nn(e).Element;return e instanceof t||e instanceof Element}function qt(e){var t=nn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ya(e){if(typeof ShadowRoot>"u")return!1;var t=nn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Xd(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},a=t.attributes[n]||{},s=t.elements[n];!qt(s)||!dn(s)||(Object.assign(s.style,o),Object.keys(a).forEach(function(r){var u=a[r];u===!1?s.removeAttribute(r):s.setAttribute(r,u===!0?"":u)}))})}function Jd(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 a=t.elements[o],s=t.attributes[o]||{},r=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),u=r.reduce(function(i,c){return i[c]="",i},{});!qt(a)||!dn(a)||(Object.assign(a.style,u),Object.keys(s).forEach(function(i){a.removeAttribute(i)}))})}}var Dr={name:"applyStyles",enabled:!0,phase:"write",fn:Xd,effect:Jd,requires:["computeStyles"]};function un(e){return e.split("-")[0]}var Vn=Math.max,ul=Math.min,so=Math.round;function ro(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),o=1,a=1;if(qt(e)&&t){var s=e.offsetHeight,r=e.offsetWidth;r>0&&(o=so(n.width)/r||1),s>0&&(a=so(n.height)/s||1)}return{width:n.width/o,height:n.height/a,top:n.top/a,right:n.right/o,bottom:n.bottom/a,left:n.left/o,x:n.left/o,y:n.top/a}}function Ca(e){var t=ro(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 Lr(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ya(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function bn(e){return nn(e).getComputedStyle(e)}function Zd(e){return["table","td","th"].indexOf(dn(e))>=0}function Bn(e){return((ao(e)?e.ownerDocument:e.document)||window.document).documentElement}function kl(e){return dn(e)==="html"?e:e.assignedSlot||e.parentNode||(ya(e)?e.host:null)||Bn(e)}function es(e){return!qt(e)||bn(e).position==="fixed"?null:e.offsetParent}function Qd(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&qt(e)){var o=bn(e);if(o.position==="fixed")return null}var a=kl(e);for(ya(a)&&(a=a.host);qt(a)&&["html","body"].indexOf(dn(a))<0;){var s=bn(a);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 a;a=a.parentNode}return null}function Fo(e){for(var t=nn(e),n=es(e);n&&Zd(n)&&bn(n).position==="static";)n=es(n);return n&&(dn(n)==="html"||dn(n)==="body"&&bn(n).position==="static")?t:n||Qd(e)||t}function wa(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Eo(e,t,n){return Vn(e,ul(t,n))}function ef(e,t,n){var o=Eo(e,t,n);return o>n?n:o}function Rr(){return{top:0,right:0,bottom:0,left:0}}function _r(e){return Object.assign({},Rr(),e)}function Fr(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var tf=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,_r(typeof e!="number"?e:Fr(e,_o))};function nf(e){var t,n=e.state,o=e.name,a=e.options,s=n.elements.arrow,r=n.modifiersData.popperOffsets,u=un(n.placement),i=wa(u),c=[Lt,Gt].indexOf(u)>=0,f=c?"height":"width";if(!(!s||!r)){var h=tf(a.padding,n),p=Ca(s),d=i==="y"?Dt:Lt,v=i==="y"?Yt:Gt,m=n.rects.reference[f]+n.rects.reference[i]-r[i]-n.rects.popper[f],y=r[i]-n.rects.reference[i],b=Fo(s),C=b?i==="y"?b.clientHeight||0:b.clientWidth||0:0,g=m/2-y/2,w=h[d],P=C-p[f]-h[v],I=C/2-p[f]/2+g,T=Eo(w,I,P),B=i;n.modifiersData[o]=(t={},t[B]=T,t.centerOffset=T-I,t)}}function of(e){var t=e.state,n=e.options,o=n.element,a=o===void 0?"[data-popper-arrow]":o;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||!Lr(t.elements.popper,a)||(t.elements.arrow=a))}var lf={name:"arrow",enabled:!0,phase:"main",fn:nf,effect:of,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function io(e){return e.split("-")[1]}var af={top:"auto",right:"auto",bottom:"auto",left:"auto"};function sf(e){var t=e.x,n=e.y,o=window,a=o.devicePixelRatio||1;return{x:so(t*a)/a||0,y:so(n*a)/a||0}}function ts(e){var t,n=e.popper,o=e.popperRect,a=e.placement,s=e.variation,r=e.offsets,u=e.position,i=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,h=e.isFixed,p=r.x,d=p===void 0?0:p,v=r.y,m=v===void 0?0:v,y=typeof f=="function"?f({x:d,y:m}):{x:d,y:m};d=y.x,m=y.y;var b=r.hasOwnProperty("x"),C=r.hasOwnProperty("y"),g=Lt,w=Dt,P=window;if(c){var I=Fo(n),T="clientHeight",B="clientWidth";if(I===nn(n)&&(I=Bn(n),bn(I).position!=="static"&&u==="absolute"&&(T="scrollHeight",B="scrollWidth")),I=I,a===Dt||(a===Lt||a===Gt)&&s===Po){w=Yt;var O=h&&I===P&&P.visualViewport?P.visualViewport.height:I[T];m-=O-o.height,m*=i?1:-1}if(a===Lt||(a===Dt||a===Yt)&&s===Po){g=Gt;var V=h&&I===P&&P.visualViewport?P.visualViewport.width:I[B];d-=V-o.width,d*=i?1:-1}}var W=Object.assign({position:u},c&&af),Z=f===!0?sf({x:d,y:m}):{x:d,y:m};if(d=Z.x,m=Z.y,i){var F;return Object.assign({},W,(F={},F[w]=C?"0":"",F[g]=b?"0":"",F.transform=(P.devicePixelRatio||1)<=1?"translate("+d+"px, "+m+"px)":"translate3d("+d+"px, "+m+"px, 0)",F))}return Object.assign({},W,(t={},t[w]=C?m+"px":"",t[g]=b?d+"px":"",t.transform="",t))}function rf(e){var t=e.state,n=e.options,o=n.gpuAcceleration,a=o===void 0?!0:o,s=n.adaptive,r=s===void 0?!0:s,u=n.roundOffsets,i=u===void 0?!0:u,c={placement:un(t.placement),variation:io(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ts(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:i})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ts(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:i})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var zr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:rf,data:{}},Vo={passive:!0};function uf(e){var t=e.state,n=e.instance,o=e.options,a=o.scroll,s=a===void 0?!0:a,r=o.resize,u=r===void 0?!0:r,i=nn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(f){f.addEventListener("scroll",n.update,Vo)}),u&&i.addEventListener("resize",n.update,Vo),function(){s&&c.forEach(function(f){f.removeEventListener("scroll",n.update,Vo)}),u&&i.removeEventListener("resize",n.update,Vo)}}var Vr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:uf,data:{}},cf={left:"right",right:"left",bottom:"top",top:"bottom"};function Uo(e){return e.replace(/left|right|bottom|top/g,function(t){return cf[t]})}var df={start:"end",end:"start"};function ns(e){return e.replace(/start|end/g,function(t){return df[t]})}function ka(e){var t=nn(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Sa(e){return ro(Bn(e)).left+ka(e).scrollLeft}function ff(e){var t=nn(e),n=Bn(e),o=t.visualViewport,a=n.clientWidth,s=n.clientHeight,r=0,u=0;return o&&(a=o.width,s=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(r=o.offsetLeft,u=o.offsetTop)),{width:a,height:s,x:r+Sa(e),y:u}}function pf(e){var t,n=Bn(e),o=ka(e),a=(t=e.ownerDocument)==null?void 0:t.body,s=Vn(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),r=Vn(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),u=-o.scrollLeft+Sa(e),i=-o.scrollTop;return bn(a||n).direction==="rtl"&&(u+=Vn(n.clientWidth,a?a.clientWidth:0)-s),{width:s,height:r,x:u,y:i}}function Ea(e){var t=bn(e),n=t.overflow,o=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+o)}function Hr(e){return["html","body","#document"].indexOf(dn(e))>=0?e.ownerDocument.body:qt(e)&&Ea(e)?e:Hr(kl(e))}function $o(e,t){var n;t===void 0&&(t=[]);var o=Hr(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),s=nn(o),r=a?[s].concat(s.visualViewport||[],Ea(o)?o:[]):o,u=t.concat(r);return a?u:u.concat($o(kl(r)))}function jl(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function vf(e){var t=ro(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 os(e,t){return t===Br?jl(ff(e)):ao(t)?vf(t):jl(pf(Bn(e)))}function mf(e){var t=$o(kl(e)),n=["absolute","fixed"].indexOf(bn(e).position)>=0,o=n&&qt(e)?Fo(e):e;return ao(o)?t.filter(function(a){return ao(a)&&Lr(a,o)&&dn(a)!=="body"}):[]}function hf(e,t,n){var o=t==="clippingParents"?mf(e):[].concat(t),a=[].concat(o,[n]),s=a[0],r=a.reduce(function(u,i){var c=os(e,i);return u.top=Vn(c.top,u.top),u.right=ul(c.right,u.right),u.bottom=ul(c.bottom,u.bottom),u.left=Vn(c.left,u.left),u},os(e,s));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}function Kr(e){var t=e.reference,n=e.element,o=e.placement,a=o?un(o):null,s=o?io(o):null,r=t.x+t.width/2-n.width/2,u=t.y+t.height/2-n.height/2,i;switch(a){case Dt:i={x:r,y:t.y-n.height};break;case Yt:i={x:r,y:t.y+t.height};break;case Gt:i={x:t.x+t.width,y:u};break;case Lt:i={x:t.x-n.width,y:u};break;default:i={x:t.x,y:t.y}}var c=a?wa(a):null;if(c!=null){var f=c==="y"?"height":"width";switch(s){case lo:i[c]=i[c]-(t[f]/2-n[f]/2);break;case Po:i[c]=i[c]+(t[f]/2-n[f]/2);break}}return i}function Io(e,t){t===void 0&&(t={});var n=t,o=n.placement,a=o===void 0?e.placement:o,s=n.boundary,r=s===void 0?Fd:s,u=n.rootBoundary,i=u===void 0?Br:u,c=n.elementContext,f=c===void 0?ko:c,h=n.altBoundary,p=h===void 0?!1:h,d=n.padding,v=d===void 0?0:d,m=_r(typeof v!="number"?v:Fr(v,_o)),y=f===ko?zd:ko,b=e.rects.popper,C=e.elements[p?y:f],g=hf(ao(C)?C:C.contextElement||Bn(e.elements.popper),r,i),w=ro(e.elements.reference),P=Kr({reference:w,element:b,strategy:"absolute",placement:a}),I=jl(Object.assign({},b,P)),T=f===ko?I:w,B={top:g.top-T.top+m.top,bottom:T.bottom-g.bottom+m.bottom,left:g.left-T.left+m.left,right:T.right-g.right+m.right},O=e.modifiersData.offset;if(f===ko&&O){var V=O[a];Object.keys(B).forEach(function(W){var Z=[Gt,Yt].indexOf(W)>=0?1:-1,F=[Dt,Yt].indexOf(W)>=0?"y":"x";B[W]+=V[F]*Z})}return B}function gf(e,t){t===void 0&&(t={});var n=t,o=n.placement,a=n.boundary,s=n.rootBoundary,r=n.padding,u=n.flipVariations,i=n.allowedAutoPlacements,c=i===void 0?ba:i,f=io(o),h=f?u?Qa:Qa.filter(function(v){return io(v)===f}):_o,p=h.filter(function(v){return c.indexOf(v)>=0});p.length===0&&(p=h);var d=p.reduce(function(v,m){return v[m]=Io(e,{placement:m,boundary:a,rootBoundary:s,padding:r})[un(m)],v},{});return Object.keys(d).sort(function(v,m){return d[v]-d[m]})}function bf(e){if(un(e)===ga)return[];var t=Uo(e);return[ns(e),t,ns(t)]}function yf(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var a=n.mainAxis,s=a===void 0?!0:a,r=n.altAxis,u=r===void 0?!0:r,i=n.fallbackPlacements,c=n.padding,f=n.boundary,h=n.rootBoundary,p=n.altBoundary,d=n.flipVariations,v=d===void 0?!0:d,m=n.allowedAutoPlacements,y=t.options.placement,b=un(y),C=b===y,g=i||(C||!v?[Uo(y)]:bf(y)),w=[y].concat(g).reduce(function(ye,ge){return ye.concat(un(ge)===ga?gf(t,{placement:ge,boundary:f,rootBoundary:h,padding:c,flipVariations:v,allowedAutoPlacements:m}):ge)},[]),P=t.rects.reference,I=t.rects.popper,T=new Map,B=!0,O=w[0],V=0;V<w.length;V++){var W=w[V],Z=un(W),F=io(W)===lo,K=[Dt,Yt].indexOf(Z)>=0,Y=K?"width":"height",_=Io(t,{placement:W,boundary:f,rootBoundary:h,altBoundary:p,padding:c}),D=K?F?Gt:Lt:F?Yt:Dt;P[Y]>I[Y]&&(D=Uo(D));var A=Uo(D),N=[];if(s&&N.push(_[Z]<=0),u&&N.push(_[D]<=0,_[A]<=0),N.every(function(ye){return ye})){O=W,B=!1;break}T.set(W,N)}if(B)for(var R=v?3:1,G=function(ye){var ge=w.find(function(Te){var J=T.get(Te);if(J)return J.slice(0,ye).every(function(me){return me})});if(ge)return O=ge,"break"},re=R;re>0;re--){var de=G(re);if(de==="break")break}t.placement!==O&&(t.modifiersData[o]._skip=!0,t.placement=O,t.reset=!0)}}var Cf={name:"flip",enabled:!0,phase:"main",fn:yf,requiresIfExists:["offset"],data:{_skip:!1}};function ls(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 as(e){return[Dt,Gt,Yt,Lt].some(function(t){return e[t]>=0})}function wf(e){var t=e.state,n=e.name,o=t.rects.reference,a=t.rects.popper,s=t.modifiersData.preventOverflow,r=Io(t,{elementContext:"reference"}),u=Io(t,{altBoundary:!0}),i=ls(r,o),c=ls(u,a,s),f=as(i),h=as(c);t.modifiersData[n]={referenceClippingOffsets:i,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":h})}var kf={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:wf};function Sf(e,t,n){var o=un(e),a=[Lt,Dt].indexOf(o)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,r=s[0],u=s[1];return r=r||0,u=(u||0)*a,[Lt,Gt].indexOf(o)>=0?{x:u,y:r}:{x:r,y:u}}function Ef(e){var t=e.state,n=e.options,o=e.name,a=n.offset,s=a===void 0?[0,0]:a,r=ba.reduce(function(f,h){return f[h]=Sf(h,t.rects,s),f},{}),u=r[t.placement],i=u.x,c=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=i,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=r}var $f={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ef};function Tf(e){var t=e.state,n=e.name;t.modifiersData[n]=Kr({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Wr={name:"popperOffsets",enabled:!0,phase:"read",fn:Tf,data:{}};function Nf(e){return e==="x"?"y":"x"}function Pf(e){var t=e.state,n=e.options,o=e.name,a=n.mainAxis,s=a===void 0?!0:a,r=n.altAxis,u=r===void 0?!1:r,i=n.boundary,c=n.rootBoundary,f=n.altBoundary,h=n.padding,p=n.tether,d=p===void 0?!0:p,v=n.tetherOffset,m=v===void 0?0:v,y=Io(t,{boundary:i,rootBoundary:c,padding:h,altBoundary:f}),b=un(t.placement),C=io(t.placement),g=!C,w=wa(b),P=Nf(w),I=t.modifiersData.popperOffsets,T=t.rects.reference,B=t.rects.popper,O=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,V=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),W=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Z={x:0,y:0};if(I){if(s){var F,K=w==="y"?Dt:Lt,Y=w==="y"?Yt:Gt,_=w==="y"?"height":"width",D=I[w],A=D+y[K],N=D-y[Y],R=d?-B[_]/2:0,G=C===lo?T[_]:B[_],re=C===lo?-B[_]:-T[_],de=t.elements.arrow,ye=d&&de?Ca(de):{width:0,height:0},ge=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Rr(),Te=ge[K],J=ge[Y],me=Eo(0,T[_],ye[_]),Ne=g?T[_]/2-R-me-Te-V.mainAxis:G-me-Te-V.mainAxis,Le=g?-T[_]/2+R+me+J+V.mainAxis:re+me+J+V.mainAxis,Xe=t.elements.arrow&&Fo(t.elements.arrow),Ze=Xe?w==="y"?Xe.clientTop||0:Xe.clientLeft||0:0,Ue=(F=W==null?void 0:W[w])!=null?F:0,ht=D+Ne-Ue-Ze,Ae=D+Le-Ue,it=Eo(d?ul(A,ht):A,D,d?Vn(N,Ae):N);I[w]=it,Z[w]=it-D}if(u){var lt,ft=w==="x"?Dt:Lt,gt=w==="x"?Yt:Gt,et=I[P],st=P==="y"?"height":"width",Et=et+y[ft],bt=et-y[gt],le=[Dt,Lt].indexOf(b)!==-1,Be=(lt=W==null?void 0:W[P])!=null?lt:0,Fe=le?Et:et-T[st]-B[st]-Be+V.altAxis,Qe=le?et+T[st]+B[st]-Be-V.altAxis:bt,U=d&&le?ef(Fe,et,Qe):Eo(d?Fe:Et,et,d?Qe:bt);I[P]=U,Z[P]=U-et}t.modifiersData[o]=Z}}var If={name:"preventOverflow",enabled:!0,phase:"main",fn:Pf,requiresIfExists:["offset"]};function Mf(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Of(e){return e===nn(e)||!qt(e)?ka(e):Mf(e)}function Af(e){var t=e.getBoundingClientRect(),n=so(t.width)/e.offsetWidth||1,o=so(t.height)/e.offsetHeight||1;return n!==1||o!==1}function Bf(e,t,n){n===void 0&&(n=!1);var o=qt(t),a=qt(t)&&Af(t),s=Bn(t),r=ro(e,a),u={scrollLeft:0,scrollTop:0},i={x:0,y:0};return(o||!o&&!n)&&((dn(t)!=="body"||Ea(s))&&(u=Of(t)),qt(t)?(i=ro(t,!0),i.x+=t.clientLeft,i.y+=t.clientTop):s&&(i.x=Sa(s))),{x:r.left+u.scrollLeft-i.x,y:r.top+u.scrollTop-i.y,width:r.width,height:r.height}}function Df(e){var t=new Map,n=new Set,o=[];e.forEach(function(s){t.set(s.name,s)});function a(s){n.add(s.name);var r=[].concat(s.requires||[],s.requiresIfExists||[]);r.forEach(function(u){if(!n.has(u)){var i=t.get(u);i&&a(i)}}),o.push(s)}return e.forEach(function(s){n.has(s.name)||a(s)}),o}function Lf(e){var t=Df(e);return Gd.reduce(function(n,o){return n.concat(t.filter(function(a){return a.phase===o}))},[])}function Rf(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function _f(e){var t=e.reduce(function(n,o){var a=n[o.name];return n[o.name]=a?Object.assign({},a,o,{options:Object.assign({},a.options,o.options),data:Object.assign({},a.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var ss={placement:"bottom",modifiers:[],strategy:"absolute"};function rs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function $a(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,a=t.defaultOptions,s=a===void 0?ss:a;return function(r,u,i){i===void 0&&(i=s);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},ss,s),modifiersData:{},elements:{reference:r,popper:u},attributes:{},styles:{}},f=[],h=!1,p={state:c,setOptions:function(m){var y=typeof m=="function"?m(c.options):m;v(),c.options=Object.assign({},s,c.options,y),c.scrollParents={reference:ao(r)?$o(r):r.contextElement?$o(r.contextElement):[],popper:$o(u)};var b=Lf(_f([].concat(o,c.options.modifiers)));return c.orderedModifiers=b.filter(function(C){return C.enabled}),d(),p.update()},forceUpdate:function(){if(!h){var m=c.elements,y=m.reference,b=m.popper;if(rs(y,b)){c.rects={reference:Bf(y,Fo(b),c.options.strategy==="fixed"),popper:Ca(b)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(B){return c.modifiersData[B.name]=Object.assign({},B.data)});for(var C=0;C<c.orderedModifiers.length;C++){if(c.reset===!0){c.reset=!1,C=-1;continue}var g=c.orderedModifiers[C],w=g.fn,P=g.options,I=P===void 0?{}:P,T=g.name;typeof w=="function"&&(c=w({state:c,options:I,name:T,instance:p})||c)}}}},update:Rf(function(){return new Promise(function(m){p.forceUpdate(),m(c)})}),destroy:function(){v(),h=!0}};if(!rs(r,u))return p;p.setOptions(i).then(function(m){!h&&i.onFirstUpdate&&i.onFirstUpdate(m)});function d(){c.orderedModifiers.forEach(function(m){var y=m.name,b=m.options,C=b===void 0?{}:b,g=m.effect;if(typeof g=="function"){var w=g({state:c,name:y,instance:p,options:C}),P=function(){};f.push(w||P)}})}function v(){f.forEach(function(m){return m()}),f=[]}return p}}$a();var Ff=[Vr,Wr,zr,Dr];$a({defaultModifiers:Ff});var zf=[Vr,Wr,zr,Dr,$f,Cf,If,lf,kf],jr=$a({defaultModifiers:zf});const xr=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const a=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||a?NodeFilter.FILTER_SKIP:o.tabIndex>=0||o===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},is=(e,t)=>{for(const n of e)if(!Vf(n,t))return n},Vf=(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},Hf=e=>{const t=xr(e),n=is(t,e),o=is(t.reverse(),e);return[n,o]},Kf=e=>e instanceof HTMLInputElement&&"select"in e,Sn=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Kf(e)&&t&&e.select()}};function us(e,t){const n=[...e],o=e.indexOf(t);return o!==-1&&n.splice(o,1),n}const Wf=()=>{let e=[];return{push:o=>{const a=e[0];a&&o!==a&&a.pause(),e=us(e,o),e.unshift(o)},remove:o=>{var a,s;e=us(e,o),(s=(a=e[0])==null?void 0:a.resume)==null||s.call(a)}}},jf=(e,t=!1)=>{const n=document.activeElement;for(const o of e)if(Sn(o,t),document.activeElement!==n)return},cs=Wf(),Il="focus-trap.focus-after-trapped",Ml="focus-trap.focus-after-released",ds={cancelable:!0,bubbles:!1},fs="focusAfterTrapped",ps="focusAfterReleased",Ta=Symbol("elFocusTrap"),xf=se({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[fs,ps,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=M();let o,a;zc(d=>{e.trapped&&!s.paused&&t("release-requested",d)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},r=d=>{if(!e.loop&&!e.trapped||s.paused)return;const{key:v,altKey:m,ctrlKey:y,metaKey:b,currentTarget:C,shiftKey:g}=d,{loop:w}=e,P=v===be.tab&&!m&&!y&&!b,I=document.activeElement;if(P&&I){const T=C,[B,O]=Hf(T);B&&O?!g&&I===O?(d.preventDefault(),w&&Sn(B,!0),t("focusout-prevented")):g&&[B,T].includes(I)&&(d.preventDefault(),w&&Sn(O,!0),t("focusout-prevented")):I===T&&(d.preventDefault(),t("focusout-prevented"))}};_e(Ta,{focusTrapRef:n,onKeydown:r}),ne(()=>e.focusTrapEl,d=>{d&&(n.value=d)},{immediate:!0}),ne([n],([d],[v])=>{d&&(d.addEventListener("keydown",r),d.addEventListener("focusin",c),d.addEventListener("focusout",f)),v&&(v.removeEventListener("keydown",r),v.removeEventListener("focusin",c),v.removeEventListener("focusout",f))});const u=d=>{t(fs,d)},i=d=>t(ps,d),c=d=>{const v=l(n);if(!v)return;const m=d.target,y=m&&v.contains(m);y&&t("focusin",d),!s.paused&&e.trapped&&(y?a=m:Sn(a,!0))},f=d=>{const v=l(n);if(!(s.paused||!v))if(e.trapped){const m=d.relatedTarget;!rn(m)&&!v.contains(m)&&setTimeout(()=>{!s.paused&&e.trapped&&Sn(a,!0)},0)}else{const m=d.target;m&&v.contains(m)||t("focusout",d)}};async function h(){await ke();const d=l(n);if(d){cs.push(s);const v=document.activeElement;if(o=v,!d.contains(v)){const y=new Event(Il,ds);d.addEventListener(Il,u),d.dispatchEvent(y),y.defaultPrevented||ke(()=>{let b=e.focusStartEl;Ke(b)||(Sn(b),document.activeElement!==b&&(b="first")),b==="first"&&jf(xr(d),!0),(document.activeElement===v||b==="container")&&Sn(d)})}}}function p(){const d=l(n);if(d){d.removeEventListener(Il,u);const v=new Event(Ml,ds);d.addEventListener(Ml,i),d.dispatchEvent(v),v.defaultPrevented||Sn(o!=null?o:document.body,!0),d.removeEventListener(Ml,u),cs.remove(s)}}return Re(()=>{e.trapped&&h(),ne(()=>e.trapped,d=>{d?h():p()})}),mt(()=>{e.trapped&&p()}),{onKeydown:r}}});function qf(e,t,n,o,a,s){return Q(e.$slots,"default",{handleKeydown:e.onKeydown})}var Sl=ue(xf,[["render",qf],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const Uf=["fixed","absolute"],Yf=pe({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:te(Array),default:()=>[]},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:ba,default:"bottom"},popperOptions:{type:te(Object),default:()=>({})},strategy:{type:String,values:Uf,default:"absolute"}}),qr=pe({...Yf,id:String,style:{type:te([String,Array,Object])},className:{type:te([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:te([String,Array,Object])},popperStyle:{type:te([String,Array,Object])},referenceEl:{type:te(Object)},triggerTargetEl:{type:te(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),Gf=["mouseenter","mouseleave","focus","blur","close"],vs=(e,t)=>{const{placement:n,strategy:o,popperOptions:a}=e,s={placement:n,strategy:o,...a,modifiers:Jf(e)};return Zf(s,t),Qf(s,a==null?void 0:a.modifiers),s},Xf=e=>{if(!!We)return Js(e)};function Jf(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 Zf(e,{arrowEl:t,arrowOffset:n}){e.modifiers.push({name:"arrow",options:{element:t,padding:n!=null?n:5}})}function Qf(e,t){t&&(e.modifiers=[...e.modifiers,...t!=null?t:[]])}const ep={name:"ElPopperContent"},tp=se({...ep,props:qr,emits:Gf,setup(e,{expose:t,emit:n}){const o=e,{popperInstanceRef:a,contentRef:s,triggerRef:r,role:u}=fe(va,void 0),i=fe(Ut,void 0),{nextZIndex:c}=An(),f=ae("popper"),h=M(),p=M("first"),d=M(),v=M();_e(Cr,{arrowRef:d,arrowOffset:v}),i&&(i.addInputId||i.removeInputId)&&_e(Ut,{...i,addInputId:tt,removeInputId:tt});const m=M(o.zIndex||c()),y=M(!1);let b;const C=$(()=>Xf(o.referenceEl)||l(r)),g=$(()=>[{zIndex:l(m)},o.popperStyle]),w=$(()=>[f.b(),f.is("pure",o.pure),f.is(o.effect),o.popperClass]),P=$(()=>u&&u.value==="dialog"?"false":void 0),I=({referenceEl:K,popperContentEl:Y,arrowEl:_})=>{const D=vs(o,{arrowEl:_,arrowOffset:l(v)});return jr(K,Y,D)},T=(K=!0)=>{var Y;(Y=l(a))==null||Y.update(),K&&(m.value=o.zIndex||c())},B=()=>{var K,Y;const _={name:"eventListeners",enabled:o.visible};(Y=(K=l(a))==null?void 0:K.setOptions)==null||Y.call(K,D=>({...D,modifiers:[...D.modifiers||[],_]})),T(!1),o.visible&&o.focusOnShow?y.value=!0:o.visible===!1&&(y.value=!1)},O=()=>{n("focus")},V=()=>{p.value="first",n("blur")},W=K=>{var Y;o.visible&&!y.value&&(K.relatedTarget&&((Y=K.relatedTarget)==null||Y.focus()),K.target&&(p.value=K.target),y.value=!0)},Z=()=>{o.trapping||(y.value=!1)},F=()=>{y.value=!1,n("close")};return Re(()=>{let K;ne(C,Y=>{var _;K==null||K();const D=l(a);if((_=D==null?void 0:D.destroy)==null||_.call(D),Y){const A=l(h);s.value=A,a.value=I({referenceEl:Y,popperContentEl:A,arrowEl:l(d)}),K=ne(()=>Y.getBoundingClientRect(),()=>T(),{immediate:!0})}else a.value=void 0},{immediate:!0}),ne(()=>o.triggerTargetEl,(Y,_)=>{b==null||b(),b=void 0;const D=l(Y||h.value),A=l(_||h.value);if(gn(D)){const{ariaLabel:N,id:R}=Ft(o);b=ne([u,N,P,R],G=>{["role","aria-label","aria-modal","id"].forEach((re,de)=>{rn(G[de])?D.removeAttribute(re):D.setAttribute(re,G[de])})},{immediate:!0})}gn(A)&&["role","aria-label","aria-modal","id"].forEach(N=>{A.removeAttribute(N)})},{immediate:!0}),ne(()=>o.visible,B,{immediate:!0}),ne(()=>vs(o,{arrowEl:l(d),arrowOffset:l(v)}),Y=>{var _;return(_=a.value)==null?void 0:_.setOptions(Y)})}),mt(()=>{b==null||b(),b=void 0}),t({popperContentRef:h,popperInstanceRef:a,updatePopper:T,contentStyle:g}),(K,Y)=>(k(),L("div",{ref_key:"popperContentRef",ref:h,style:$e(l(g)),class:S(l(w)),tabindex:"-1",onMouseenter:Y[0]||(Y[0]=_=>K.$emit("mouseenter",_)),onMouseleave:Y[1]||(Y[1]=_=>K.$emit("mouseleave",_))},[j(l(Sl),{trapped:y.value,"trap-on-focus-in":!0,"focus-trap-el":h.value,"focus-start-el":p.value,onFocusAfterTrapped:O,onFocusAfterReleased:V,onFocusin:W,onFocusoutPrevented:Z,onReleaseRequested:F},{default:H(()=>[Q(K.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el"])],38))}});var np=ue(tp,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const op=je(Md),lp=ae("tooltip"),zt=pe({...Kc,...qr,appendTo:{type:te([String,Object]),default:$r},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:te(Boolean),default:null},transition:{type:String,default:`${lp.namespace.value}-fade-in-linear`},teleported:{type:Boolean,default:!0},disabled:{type:Boolean}}),Mo=pe({...Ar,disabled:Boolean,trigger:{type:te([String,Array]),default:"hover"},triggerKeys:{type:te(Array),default:()=>[be.enter,be.space]}}),ap=pe({openDelay:{type:Number},visibleArrow:{type:Boolean,default:void 0},hideAfter:{type:Number,default:200},showArrow:{type:Boolean,default:!0}}),El=Symbol("elTooltip"),sp=se({name:"ElTooltipContent",components:{ElPopperContent:np},inheritAttrs:!1,props:zt,setup(e){const t=M(null),n=M(!1),o=M(!1),a=M(!1),s=M(!1),{controlled:r,id:u,open:i,trigger:c,onClose:f,onOpen:h,onShow:p,onHide:d,onBeforeShow:v,onBeforeHide:m}=fe(El,void 0),y=$(()=>e.persistent);mt(()=>{s.value=!0});const b=$(()=>l(y)?!0:l(i)),C=$(()=>e.disabled?!1:l(i)),g=$(()=>{var K;return(K=e.style)!=null?K:{}}),w=$(()=>!l(i)),P=()=>{d()},I=()=>{if(l(r))return!0},T=pt(I,()=>{e.enterable&&l(c)==="hover"&&h()}),B=pt(I,()=>{l(c)==="hover"&&f()}),O=()=>{var K,Y;(Y=(K=t.value)==null?void 0:K.updatePopper)==null||Y.call(K),v==null||v()},V=()=>{m==null||m()},W=()=>{p(),F=ra($(()=>{var K;return(K=t.value)==null?void 0:K.popperContentRef}),()=>{if(l(r))return;l(c)!=="hover"&&f()})},Z=()=>{e.virtualTriggering||f()};let F;return ne(()=>l(i),K=>{K||F==null||F()},{flush:"post"}),{ariaHidden:w,entering:o,leaving:a,id:u,intermediateOpen:n,contentStyle:g,contentRef:t,destroyed:s,shouldRender:b,shouldShow:C,onClose:f,open:i,onAfterShow:W,onBeforeEnter:O,onBeforeLeave:V,onContentEnter:T,onContentLeave:B,onTransitionLeave:P,onBlur:Z}}});function rp(e,t,n,o,a,s){const r=Ee("el-popper-content");return k(),X(ml,{disabled:!e.teleported,to:e.appendTo},[j(kt,{name:e.transition,onAfterLeave:e.onTransitionLeave,onBeforeEnter:e.onBeforeEnter,onAfterEnter:e.onAfterShow,onBeforeLeave:e.onBeforeLeave},{default:H(()=>[e.shouldRender?Ie((k(),X(r,vt({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:H(()=>[q(" Workaround bug #6378 "),e.destroyed?q("v-if",!0):Q(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"])),[[Ye,e.shouldShow]]):q("v-if",!0)]),_:3},8,["name","onAfterLeave","onBeforeEnter","onAfterEnter","onBeforeLeave"])],8,["disabled","to"])}var ip=ue(sp,[["render",rp],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const up=(e,t)=>at(e)?e.includes(t):e===t,qn=(e,t,n)=>o=>{up(l(e),t)&&n(o)},cp=se({name:"ElTooltipTrigger",components:{ElPopperTrigger:_d},props:Mo,setup(e){const t=ae("tooltip"),{controlled:n,id:o,open:a,onOpen:s,onClose:r,onToggle:u}=fe(El,void 0),i=M(null),c=()=>{if(l(n)||e.disabled)return!0},f=ct(e,"trigger"),h=pt(c,qn(f,"hover",s)),p=pt(c,qn(f,"hover",r)),d=pt(c,qn(f,"click",C=>{C.button===0&&u(C)})),v=pt(c,qn(f,"focus",s)),m=pt(c,qn(f,"focus",r)),y=pt(c,qn(f,"contextmenu",C=>{C.preventDefault(),u(C)})),b=pt(c,C=>{const{code:g}=C;e.triggerKeys.includes(g)&&(C.preventDefault(),u(C))});return{onBlur:m,onContextMenu:y,onFocus:v,onMouseenter:h,onMouseleave:p,onClick:d,onKeydown:b,open:a,id:o,triggerRef:i,ns:t}}});function dp(e,t,n,o,a,s){const r=Ee("el-popper-trigger");return k(),X(r,{id:e.id,"virtual-ref":e.virtualRef,open:e.open,"virtual-triggering":e.virtualTriggering,class:S(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:H(()=>[Q(e.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"])}var fp=ue(cp,[["render",dp],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const{useModelToggleProps:pp,useModelToggle:vp,useModelToggleEmits:mp}=Rc("visible"),hp=se({name:"ElTooltip",components:{ElPopper:op,ElPopperArrow:Bd,ElTooltipContent:ip,ElTooltipTrigger:fp},props:{...Pr,...pp,...zt,...Mo,...Ir,...ap},emits:[...mp,"before-show","before-hide","show","hide","open","close"],setup(e,{emit:t}){Hc();const n=$(()=>(Jt(e.openDelay),e.openDelay||e.showAfter)),o=$(()=>(Jt(e.visibleArrow),It(e.visibleArrow)?e.visibleArrow:e.showArrow)),a=cn(),s=M(null),r=M(null),u=()=>{var y;const b=l(s);b&&((y=b.popperInstanceRef)==null||y.update())},i=M(!1),c=M(void 0),{show:f,hide:h}=vp({indicator:i,toggleReason:c}),{onOpen:p,onClose:d}=Wc({showAfter:n,hideAfter:ct(e,"hideAfter"),open:f,close:h}),v=$(()=>It(e.visible));_e(El,{controlled:v,id:a,open:Ys(i),trigger:ct(e,"trigger"),onOpen:y=>{p(y)},onClose:y=>{d(y)},onToggle:y=>{l(i)?d(y):p(y)},onShow:()=>{t("show",c.value)},onHide:()=>{t("hide",c.value)},onBeforeShow:()=>{t("before-show",c.value)},onBeforeHide:()=>{t("before-hide",c.value)},updatePopper:u}),ne(()=>e.disabled,y=>{y&&i.value&&(i.value=!1)});const m=()=>{var y,b;const C=(b=(y=r.value)==null?void 0:y.contentRef)==null?void 0:b.popperContentRef;return C&&C.contains(document.activeElement)};return uu(()=>i.value&&h()),{compatShowAfter:n,compatShowArrow:o,popperRef:s,contentRef:r,open:i,hide:h,isFocusInsideContent:m,updatePopper:u,onOpen:p,onClose:d}}}),gp=["innerHTML"],bp={key:1};function yp(e,t,n,o,a,s){const r=Ee("el-tooltip-trigger"),u=Ee("el-popper-arrow"),i=Ee("el-tooltip-content"),c=Ee("el-popper");return k(),X(c,{ref:"popperRef",role:e.role},{default:H(()=>[j(r,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering},{default:H(()=>[e.$slots.default?Q(e.$slots,"default",{key:0}):q("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),j(i,{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:H(()=>[Q(e.$slots,"content",{},()=>[e.rawContent?(k(),L("span",{key:0,innerHTML:e.content},null,8,gp)):(k(),L("span",bp,ce(e.content),1))]),e.compatShowArrow?(k(),X(u,{key:0,"arrow-offset":e.arrowOffset},null,8,["arrow-offset"])):q("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 Cp=ue(hp,[["render",yp],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const wn=je(Cp),wp=pe({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:te(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:te([Function,Array]),default:tt},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},label:{type:String},teleported:zt.teleported,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1}}),kp={[qe]:e=>Ke(e),[Kn]:e=>Ke(e),[en]:e=>Ke(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>Mt(e)},Sp=["aria-expanded","aria-owns"],Ep={key:0},$p=["id","aria-selected","onClick"],Tp={name:"ElAutocomplete",inheritAttrs:!1},Np=se({...Tp,props:wp,emits:kp,setup(e,{expose:t,emit:n}){const o=e,a="ElAutocomplete",s=pa(),r=Bo(),u=On(),i=ae("autocomplete"),c=M(),f=M(),h=M(),p=M();let d=!1;const v=M([]),m=M(-1),y=M(""),b=M(!1),C=M(!1),g=M(!1),w=$(()=>i.b(String(cr()))),P=$(()=>r.style),I=$(()=>(v.value.length>0||g.value)&&b.value),T=$(()=>!o.hideLoading&&g.value),B=$(()=>c.value?Array.from(c.value.$el.querySelectorAll("input")):[]),O=async()=>{await ke(),I.value&&(y.value=`${c.value.$el.offsetWidth}px`)},V=()=>{d=!0},W=()=>{d=!1,m.value=-1},F=hn(async J=>{if(C.value)return;const me=Ne=>{g.value=!1,!C.value&&(at(Ne)?(v.value=Ne,m.value=o.highlightFirstItem?0:-1):Ot(a,"autocomplete suggestions must be an array"))};if(g.value=!0,at(o.fetchSuggestions))me(o.fetchSuggestions);else{const Ne=await o.fetchSuggestions(J,me);at(Ne)&&me(Ne)}},o.debounce),K=J=>{const me=!!J;if(n(Kn,J),n(qe,J),C.value=!1,b.value||(b.value=me),!o.triggerOnFocus&&!J){C.value=!0,v.value=[];return}F(J)},Y=J=>{var me;u.value||(((me=J.target)==null?void 0:me.tagName)!=="INPUT"||B.value.includes(document.activeElement))&&(b.value=!0)},_=J=>{n(en,J)},D=J=>{d||(b.value=!0,n("focus",J),o.triggerOnFocus&&F(String(o.modelValue)))},A=J=>{d||n("blur",J)},N=()=>{b.value=!1,n(qe,""),n("clear")},R=async()=>{I.value&&m.value>=0&&m.value<v.value.length?ge(v.value[m.value]):o.selectWhenUnmatched&&(n("select",{value:o.modelValue}),v.value=[],m.value=-1)},G=J=>{I.value&&(J.preventDefault(),J.stopPropagation(),re())},re=()=>{b.value=!1},de=()=>{var J;(J=c.value)==null||J.focus()},ye=()=>{var J;(J=c.value)==null||J.blur()},ge=async J=>{n(Kn,J[o.valueKey]),n(qe,J[o.valueKey]),n("select",J),v.value=[],m.value=-1},Te=J=>{if(!I.value||g.value)return;if(J<0){m.value=-1;return}J>=v.value.length&&(J=v.value.length-1);const me=f.value.querySelector(`.${i.be("suggestion","wrap")}`),Le=me.querySelectorAll(`.${i.be("suggestion","list")} li`)[J],Xe=me.scrollTop,{offsetTop:Ze,scrollHeight:Ue}=Le;Ze+Ue>Xe+me.clientHeight&&(me.scrollTop+=Ue),Ze<Xe&&(me.scrollTop-=Ue),m.value=J,c.value.ref.setAttribute("aria-activedescendant",`${w.value}-item-${m.value}`)};return ra(p,()=>{I.value&&re()}),Re(()=>{c.value.ref.setAttribute("role","textbox"),c.value.ref.setAttribute("aria-autocomplete","list"),c.value.ref.setAttribute("aria-controls","id"),c.value.ref.setAttribute("aria-activedescendant",`${w.value}-item-${m.value}`)}),t({highlightedIndex:m,activated:b,loading:g,inputRef:c,popperRef:h,suggestions:v,handleSelect:ge,handleKeyEnter:R,focus:de,blur:ye,close:re,highlight:Te}),(J,me)=>(k(),X(l(wn),{ref_key:"popperRef",ref:h,visible:l(I),placement:J.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[l(i).e("popper"),J.popperClass],teleported:J.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${l(i).namespace.value}-zoom-in-top`,persistent:"",onBeforeShow:O,onShow:V,onHide:W},{content:H(()=>[x("div",{ref_key:"regionRef",ref:f,class:S([l(i).b("suggestion"),l(i).is("loading",l(T))]),style:$e({[J.fitInputWidth?"width":"minWidth"]:y.value,outline:"none"}),role:"region"},[j(l(bo),{id:l(w),tag:"ul","wrap-class":l(i).be("suggestion","wrap"),"view-class":l(i).be("suggestion","list"),role:"listbox"},{default:H(()=>[l(T)?(k(),L("li",Ep,[j(l(ve),{class:S(l(i).is("loading"))},{default:H(()=>[j(l(vo))]),_:1},8,["class"])])):(k(!0),L(Pe,{key:1},ot(v.value,(Ne,Le)=>(k(),L("li",{id:`${l(w)}-item-${Le}`,key:Le,class:S({highlighted:m.value===Le}),role:"option","aria-selected":m.value===Le,onClick:Xe=>ge(Ne)},[Q(J.$slots,"default",{item:Ne},()=>[Ge(ce(Ne[J.valueKey]),1)])],10,$p))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:H(()=>[x("div",{ref_key:"listboxRef",ref:p,class:S([l(i).b(),J.$attrs.class]),style:$e(l(P)),role:"combobox","aria-haspopup":"listbox","aria-expanded":l(I),"aria-owns":l(w)},[j(l(Ht),vt({ref_key:"inputRef",ref:c},l(s),{"model-value":J.modelValue,onInput:K,onChange:_,onFocus:D,onBlur:A,onClear:N,onKeydown:[me[0]||(me[0]=xe(Oe(Ne=>Te(m.value-1),["prevent"]),["up"])),me[1]||(me[1]=xe(Oe(Ne=>Te(m.value+1),["prevent"]),["down"])),xe(R,["enter"]),xe(re,["tab"]),xe(G,["esc"])],onMousedown:Y}),Jn({_:2},[J.$slots.prepend?{name:"prepend",fn:H(()=>[Q(J.$slots,"prepend")])}:void 0,J.$slots.append?{name:"append",fn:H(()=>[Q(J.$slots,"append")])}:void 0,J.$slots.prefix?{name:"prefix",fn:H(()=>[Q(J.$slots,"prefix")])}:void 0,J.$slots.suffix?{name:"suffix",fn:H(()=>[Q(J.$slots,"suffix")])}:void 0]),1040,["model-value","onKeydown"])],14,Sp)]),_:3},8,["visible","placement","popper-class","teleported","transition"]))}});var Pp=ue(Np,[["__file","/home/runner/work/element-plus/element-plus/packages/components/autocomplete/src/autocomplete.vue"]]);const vS=je(Pp),Ip=pe({size:{type:[Number,String],values:ho,default:"",validator:e=>He(e)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:_t},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:te(String),default:"cover"}}),Mp={error:e=>e instanceof Event},Op=["src","alt","srcset"],Ap={name:"ElAvatar"},Bp=se({...Ap,props:Ip,emits:Mp,setup(e,{emit:t}){const n=e,o=ae("avatar"),a=M(!1),s=$(()=>{const{size:c,icon:f,shape:h}=n,p=[o.b()];return Ke(c)&&p.push(o.m(c)),f&&p.push(o.m("icon")),h&&p.push(o.m(h)),p}),r=$(()=>{const{size:c}=n;return He(c)?o.cssVarBlock({size:Wt(c)||""}):void 0}),u=$(()=>({objectFit:n.fit}));ne(()=>n.src,()=>a.value=!1);function i(c){a.value=!0,t("error",c)}return(c,f)=>(k(),L("span",{class:S(l(s)),style:$e(l(r))},[(c.src||c.srcSet)&&!a.value?(k(),L("img",{key:0,src:c.src,alt:c.alt,srcset:c.srcSet,style:$e(l(u)),onError:i},null,44,Op)):c.icon?(k(),X(l(ve),{key:1},{default:H(()=>[(k(),X(Ve(c.icon)))]),_:1})):Q(c.$slots,"default",{key:2})],6))}});var Dp=ue(Bp,[["__file","/home/runner/work/element-plus/element-plus/packages/components/avatar/src/avatar.vue"]]);const mS=je(Dp),Lp=pe({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}}),Rp=["textContent"],_p={name:"ElBadge"},Fp=se({..._p,props:Lp,setup(e,{expose:t}){const n=e,o=ae("badge"),a=$(()=>n.isDot?"":He(n.value)&&He(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`);return t({content:a}),(s,r)=>(k(),L("div",{class:S(l(o).b())},[Q(s.$slots,"default"),j(kt,{name:`${l(o).namespace.value}-zoom-in-center`,persisted:""},{default:H(()=>[Ie(x("sup",{class:S([l(o).e("content"),l(o).em("content",s.type),l(o).is("fixed",!!s.$slots.default),l(o).is("dot",s.isDot)]),textContent:ce(l(a))},null,10,Rp),[[Ye,!s.hidden&&(l(a)||s.isDot)]])]),_:1},8,["name"])],2))}});var zp=ue(Fp,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const Vp=je(zp),Hp=pe({separator:{type:String,default:"/"},separatorIcon:{type:_t,default:""}}),Kp={name:"ElBreadcrumb"},Wp=se({...Kp,props:Hp,setup(e){const t=e,n=ae("breadcrumb"),o=M();return _e(dr,t),Re(()=>{const a=o.value.querySelectorAll(`.${n.e("item")}`);a.length&&a[a.length-1].setAttribute("aria-current","page")}),(a,s)=>(k(),L("div",{ref_key:"breadcrumb",ref:o,class:S(l(n).b()),"aria-label":"Breadcrumb",role:"navigation"},[Q(a.$slots,"default")],2))}});var jp=ue(Wp,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb.vue"]]);const xp=pe({to:{type:te([String,Object]),default:""},replace:{type:Boolean,default:!1}}),qp={name:"ElBreadcrumbItem"},Up=se({...qp,props:xp,setup(e){const t=e,n=De(),o=fe(dr,void 0),a=ae("breadcrumb"),{separator:s,separatorIcon:r}=Ft(o),u=n.appContext.config.globalProperties.$router,i=M(),c=()=>{!t.to||!u||(t.replace?u.replace(t.to):u.push(t.to))};return(f,h)=>(k(),L("span",{class:S(l(a).e("item"))},[x("span",{ref_key:"link",ref:i,class:S([l(a).e("inner"),l(a).is("link",!!f.to)]),role:"link",onClick:c},[Q(f.$slots,"default")],2),l(r)?(k(),X(l(ve),{key:0,class:S(l(a).e("separator"))},{default:H(()=>[(k(),X(Ve(l(r))))]),_:1},8,["class"])):(k(),L("span",{key:1,class:S(l(a).e("separator")),role:"presentation"},ce(l(s)),3))],2))}});var Ur=ue(Up,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb-item.vue"]]);const hS=je(jp,{BreadcrumbItem:Ur}),gS=St(Ur),Yp=["default","primary","success","warning","info","danger","text",""],Gp=["button","submit","reset"],xl=pe({size:Cn,disabled:Boolean,type:{type:String,values:Yp,default:""},icon:{type:_t,default:""},nativeType:{type:String,values:Gp,default:"button"},loading:Boolean,loadingIcon:{type:_t,default:()=>vo},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0}}),Xp={click:e=>e instanceof MouseEvent};function kn(e,t=20){return e.mix("#141414",t).toString()}function Jp(e){const t=On(),n=ae("button");return $(()=>{let o={};const a=e.color;if(a){const s=new lr(a),r=e.dark?s.tint(20).toString():kn(s,20);if(e.plain)o=n.cssVarBlock({"bg-color":e.dark?kn(s,90):s.tint(90).toString(),"text-color":a,"border-color":e.dark?kn(s,50):s.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":a,"hover-border-color":a,"active-bg-color":r,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":r}),t.value&&(o[n.cssVarBlockName("disabled-bg-color")]=e.dark?kn(s,90):s.tint(90).toString(),o[n.cssVarBlockName("disabled-text-color")]=e.dark?kn(s,50):s.tint(50).toString(),o[n.cssVarBlockName("disabled-border-color")]=e.dark?kn(s,80):s.tint(80).toString());else{const u=e.dark?kn(s,30):s.tint(30).toString(),i=s.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(o=n.cssVarBlock({"bg-color":a,"text-color":i,"border-color":a,"hover-bg-color":u,"hover-text-color":i,"hover-border-color":u,"active-bg-color":r,"active-border-color":r}),t.value){const c=e.dark?kn(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 Zp=["aria-disabled","disabled","autofocus","type"],Qp={name:"ElButton"},ev=se({...Qp,props:xl,emits:Xp,setup(e,{expose:t,emit:n}){const o=e,a=tn();Lo({from:"type.text",replacement:"type.link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},$(()=>o.type==="text"));const s=fe(fr,void 0),r=jn("button"),u=ae("button"),{form:i}=Ro(),c=wt($(()=>s==null?void 0:s.size)),f=On(),h=M(),p=$(()=>o.type||(s==null?void 0:s.type)||""),d=$(()=>{var b,C,g;return(g=(C=o.autoInsertSpace)!=null?C:(b=r.value)==null?void 0:b.autoInsertSpace)!=null?g:!1}),v=$(()=>{var b;const C=(b=a.default)==null?void 0:b.call(a);if(d.value&&(C==null?void 0:C.length)===1){const g=C[0];if((g==null?void 0:g.type)===qs){const w=g.children;return/^\p{Unified_Ideograph}{2}$/u.test(w.trim())}}return!1}),m=Jp(o),y=b=>{o.nativeType==="reset"&&(i==null||i.resetFields()),n("click",b)};return t({ref:h,size:c,type:p,disabled:f,shouldAddSpace:v}),(b,C)=>(k(),L("button",{ref_key:"_ref",ref:h,class:S([l(u).b(),l(u).m(l(p)),l(u).m(l(c)),l(u).is("disabled",l(f)),l(u).is("loading",b.loading),l(u).is("plain",b.plain),l(u).is("round",b.round),l(u).is("circle",b.circle),l(u).is("text",b.text),l(u).is("link",b.link),l(u).is("has-bg",b.bg)]),"aria-disabled":l(f)||b.loading,disabled:l(f)||b.loading,autofocus:b.autofocus,type:b.nativeType,style:$e(l(m)),onClick:y},[b.loading?(k(),L(Pe,{key:0},[b.$slots.loading?Q(b.$slots,"loading",{key:0}):(k(),X(l(ve),{key:1,class:S(l(u).is("loading"))},{default:H(()=>[(k(),X(Ve(b.loadingIcon)))]),_:1},8,["class"]))],64)):b.icon||b.$slots.icon?(k(),X(l(ve),{key:1},{default:H(()=>[b.icon?(k(),X(Ve(b.icon),{key:0})):Q(b.$slots,"icon",{key:1})]),_:3})):q("v-if",!0),b.$slots.default?(k(),L("span",{key:2,class:S({[l(u).em("text","expand")]:l(v)})},[Q(b.$slots,"default")],2)):q("v-if",!0)],14,Zp))}});var tv=ue(ev,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const nv={size:xl.size,type:xl.type},ov={name:"ElButtonGroup"},lv=se({...ov,props:nv,setup(e){const t=e;_e(fr,rt({size:ct(t,"size"),type:ct(t,"type")}));const n=ae("button");return(o,a)=>(k(),L("div",{class:S(`${l(n).b("group")}`)},[Q(o.$slots,"default")],2))}});var Yr=ue(lv,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const In=je(tv,{ButtonGroup:Yr});St(Yr);const ms=["hours","minutes","seconds"],hs="HH:mm:ss",Un="YYYY-MM-DD",av={date:Un,dates:Un,week:"gggg[w]ww",year:"YYYY",month:"YYYY-MM",datetime:`${Un} ${hs}`,monthrange:"YYYY-MM",daterange:Un,datetimerange:`${Un} ${hs}`},Ol=(e,t)=>[e>0?e-1:void 0,e,e<t?e+1:void 0],Gr=e=>Array.from(Array.from({length:e}).keys()),Xr=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),Jr=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),gs=function(e,t){const n=Va(e),o=Va(t);return n&&o?e.getTime()===t.getTime():!n&&!o?e===t:!1},bs=function(e,t){const n=at(e),o=at(t);return n&&o?e.length!==t.length?!1:e.every((a,s)=>gs(a,t[s])):!n&&!o?gs(e,t):!1},ys=function(e,t,n){const o=ar(t)||t==="x"?Me(e).locale(n):Me(e,t).locale(n);return o.isValid()?o:void 0},Cs=function(e,t,n){return ar(t)?e:t==="x"?+e:Me(e).locale(n).format(t)},Al=(e,t)=>{var n;const o=[],a=t==null?void 0:t();for(let s=0;s<e;s++)o.push((n=a==null?void 0:a.includes(s))!=null?n:!1);return o},Zr=pe({disabledHours:{type:te(Function)},disabledMinutes:{type:te(Function)},disabledSeconds:{type:te(Function)}}),sv=pe({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),Qr=pe({id:{type:te([Array,String])},name:{type:te([Array,String]),default:""},popperClass:{type:String,default:""},format:String,valueFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:te([String,Object]),default:Do},editable:{type:Boolean,default:!0},prefixIcon:{type:te([String,Object]),default:""},size:Cn,readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:""},popperOptions:{type:te(Object),default:()=>({})},modelValue:{type:te([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:te([Date,Array])},defaultTime:{type:te([Date,Array])},isRange:{type:Boolean,default:!1},...Zr,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:{type:Boolean,default:!1},label:{type:String,default:void 0},tabindex:{type:te([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean}),rv=["id","name","placeholder","value","disabled","readonly"],iv=["id","name","placeholder","value","disabled","readonly"],uv={name:"Picker"},cv=se({...uv,props:Qr,emits:["update:modelValue","change","focus","blur","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:n}){const o=e,{lang:a}=Je(),s=ae("date"),r=ae("input"),u=ae("range"),i=fe(fn,{}),c=fe(Ut,{}),f=fe("ElPopperOptions",{}),h=M(),p=M(),d=M(!1),v=M(!1),m=M(null);let y=!1,b=!1;ne(d,E=>{E?m.value=o.modelValue:(Ae.value=null,ke(()=>{C(o.modelValue)}))});const C=(E,z)=>{var ee;(z||!bs(E,m.value))&&(n("change",E),o.validateEvent&&((ee=c.validate)==null||ee.call(c,"change").catch(he=>void 0)))},g=E=>{if(!bs(o.modelValue,E)){let z;at(E)?z=E.map(ee=>Cs(ee,o.valueFormat,a.value)):E&&(z=Cs(E,o.valueFormat,a.value)),n("update:modelValue",E&&z,a.value)}},w=E=>{n("keydown",E)},P=$(()=>{if(p.value){const E=Xe.value?p.value:p.value.$el;return Array.from(E.querySelectorAll("input"))}return[]}),I=(E,z,ee)=>{const he=P.value;!he.length||(!ee||ee==="min"?(he[0].setSelectionRange(E,z),he[0].focus()):ee==="max"&&(he[1].setSelectionRange(E,z),he[1].focus()))},T=()=>{F(!0,!0),ke(()=>{b=!1})},B=(E="",z=!1)=>{z||T(),d.value=z;let ee;at(E)?ee=E.map(he=>he.toDate()):ee=E&&E.toDate(),Ae.value=null,g(ee)},O=()=>{v.value=!0},V=()=>{n("visible-change",!0)},W=E=>{(E==null?void 0:E.key)===be.esc&&F(!0,!0)},Z=()=>{v.value=!1,b=!1,n("visible-change",!1)},F=(E=!0,z=!1)=>{b=z;const[ee,he]=l(P);let ie=ee;!E&&Xe.value&&(ie=he),ie&&ie.focus()},K=E=>{o.readonly||D.value||d.value||b||(d.value=!0,n("focus",E))};let Y;const _=E=>{const z=async()=>{setTimeout(()=>{var ee,he;Y===z&&(!(((ee=h.value)==null?void 0:ee.isFocusInsideContent())&&!y)&&P.value.filter(ie=>ie.contains(document.activeElement)).length===0&&(it(),d.value=!1,n("blur",E),o.validateEvent&&((he=c.validate)==null||he.call(c,"blur").catch(ie=>void 0))),y=!1)},0)};Y=z,z()},D=$(()=>o.disabled||i.disabled),A=$(()=>{let E;if(Te.value?Fe.value.getDefaultValue&&(E=Fe.value.getDefaultValue()):at(o.modelValue)?E=o.modelValue.map(z=>ys(z,o.valueFormat,a.value)):E=ys(o.modelValue,o.valueFormat,a.value),Fe.value.getRangeAvailableTime){const z=Fe.value.getRangeAvailableTime(E);oo(z,E)||(E=z,g(at(E)?E.map(ee=>ee.toDate()):E.toDate()))}return at(E)&&E.some(z=>!z)&&(E=[]),E}),N=$(()=>{if(!Fe.value.panelReady)return"";const E=ft(A.value);return at(Ae.value)?[Ae.value[0]||E&&E[0]||"",Ae.value[1]||E&&E[1]||""]:Ae.value!==null?Ae.value:!G.value&&Te.value||!d.value&&Te.value?"":E?re.value?E.join(", "):E:""}),R=$(()=>o.type.includes("time")),G=$(()=>o.type.startsWith("time")),re=$(()=>o.type==="dates"),de=$(()=>o.prefixIcon||(R.value?Pu:Iu)),ye=M(!1),ge=E=>{o.readonly||D.value||ye.value&&(E.stopPropagation(),T(),g(null),C(null,!0),ye.value=!1,d.value=!1,Fe.value.handleClear&&Fe.value.handleClear())},Te=$(()=>{const{modelValue:E}=o;return!E||at(E)&&!E.filter(Boolean).length}),J=async E=>{var z;o.readonly||D.value||(((z=E.target)==null?void 0:z.tagName)!=="INPUT"||P.value.includes(document.activeElement))&&(d.value=!0)},me=()=>{o.readonly||D.value||!Te.value&&o.clearable&&(ye.value=!0)},Ne=()=>{ye.value=!1},Le=E=>{var z;(((z=E.touches[0].target)==null?void 0:z.tagName)!=="INPUT"||P.value.includes(document.activeElement))&&(d.value=!0)},Xe=$(()=>o.type.includes("range")),Ze=wt(),Ue=$(()=>{var E,z;return(z=(E=l(h))==null?void 0:E.popperRef)==null?void 0:z.contentRef}),ht=$(()=>{var E;return l(Xe)?l(p):(E=l(p))==null?void 0:E.$el});ra(ht,E=>{const z=l(Ue),ee=l(ht);z&&(E.target===z||E.composedPath().includes(z))||E.target===ee||E.composedPath().includes(ee)||(d.value=!1)});const Ae=M(null),it=()=>{if(Ae.value){const E=lt(N.value);E&&gt(E)&&(g(at(E)?E.map(z=>z.toDate()):E.toDate()),Ae.value=null)}Ae.value===""&&(g(null),C(null),Ae.value=null)},lt=E=>E?Fe.value.parseUserInput(E):null,ft=E=>E?Fe.value.formatToString(E):null,gt=E=>Fe.value.isValidValue(E),et=async E=>{if(o.readonly||D.value)return;const{code:z}=E;if(w(E),z===be.esc){d.value===!0&&(d.value=!1,E.preventDefault(),E.stopPropagation());return}if(z===be.down&&(Fe.value.handleFocusPicker&&(E.preventDefault(),E.stopPropagation()),d.value===!1&&(d.value=!0,await ke()),Fe.value.handleFocusPicker)){Fe.value.handleFocusPicker();return}if(z===be.tab){y=!0;return}if(z===be.enter||z===be.numpadEnter){(Ae.value===null||Ae.value===""||gt(lt(N.value)))&&(it(),d.value=!1),E.stopPropagation();return}if(Ae.value){E.stopPropagation();return}Fe.value.handleKeydownInput&&Fe.value.handleKeydownInput(E)},st=E=>{Ae.value=E,d.value||(d.value=!0)},Et=E=>{const z=E.target;Ae.value?Ae.value=[z.value,Ae.value[1]]:Ae.value=[z.value,null]},bt=E=>{const z=E.target;Ae.value?Ae.value=[Ae.value[0],z.value]:Ae.value=[null,z.value]},le=()=>{var E;const z=Ae.value,ee=lt(z&&z[0]),he=l(A);if(ee&&ee.isValid()){Ae.value=[ft(ee),((E=N.value)==null?void 0:E[1])||null];const ie=[ee,he&&(he[1]||null)];gt(ie)&&(g(ie),Ae.value=null)}},Be=()=>{var E;const z=l(Ae),ee=lt(z&&z[1]),he=l(A);if(ee&&ee.isValid()){Ae.value=[((E=l(N))==null?void 0:E[0])||null,ft(ee)];const ie=[he&&he[0],ee];gt(ie)&&(g(ie),Ae.value=null)}},Fe=M({}),Qe=E=>{Fe.value[E[0]]=E[1],Fe.value.panelReady=!0},U=E=>{n("calendar-change",E)},oe=(E,z,ee)=>{n("panel-change",E,z,ee)};return _e("EP_PICKER_BASE",{props:o}),t({focus:F,handleFocusInput:K,handleBlurInput:_,onPick:B}),(E,z)=>(k(),X(l(wn),vt({ref_key:"refPopper",ref:h,visible:d.value,"onUpdate:visible":z[2]||(z[2]=ee=>d.value=ee),effect:"light",pure:"",trigger:"click"},E.$attrs,{role:"dialog",teleported:"",transition:`${l(s).namespace.value}-zoom-in-top`,"popper-class":[`${l(s).namespace.value}-picker__popper`,E.popperClass],"popper-options":l(f),"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:O,onShow:V,onHide:Z}),{default:H(()=>[l(Xe)?(k(),L("div",{key:1,ref_key:"inputRef",ref:p,class:S([l(s).b("editor"),l(s).bm("editor",E.type),l(r).e("wrapper"),l(s).is("disabled",l(D)),l(s).is("active",d.value),l(u).b("editor"),l(Ze)?l(u).bm("editor",l(Ze)):"",E.$attrs.class]),style:$e(E.$attrs.style),onClick:K,onMousedown:J,onMouseenter:me,onMouseleave:Ne,onTouchstart:Le,onKeydown:et},[l(de)?(k(),X(l(ve),{key:0,class:S([l(r).e("icon"),l(u).e("icon")]),onMousedown:J,onTouchstart:Le},{default:H(()=>[(k(),X(Ve(l(de))))]),_:1},8,["class"])):q("v-if",!0),x("input",{id:E.id&&E.id[0],autocomplete:"off",name:E.name&&E.name[0],placeholder:E.startPlaceholder,value:l(N)&&l(N)[0],disabled:l(D),readonly:!E.editable||E.readonly,class:S(l(u).b("input")),onInput:Et,onChange:le,onFocus:K,onBlur:_},null,42,rv),Q(E.$slots,"range-separator",{},()=>[x("span",{class:S(l(u).b("separator"))},ce(E.rangeSeparator),3)]),x("input",{id:E.id&&E.id[1],autocomplete:"off",name:E.name&&E.name[1],placeholder:E.endPlaceholder,value:l(N)&&l(N)[1],disabled:l(D),readonly:!E.editable||E.readonly,class:S(l(u).b("input")),onFocus:K,onBlur:_,onInput:bt,onChange:Be},null,42,iv),E.clearIcon?(k(),X(l(ve),{key:1,class:S([l(r).e("icon"),l(u).e("close-icon"),{[l(u).e("close-icon--hidden")]:!ye.value}]),onClick:ge},{default:H(()=>[(k(),X(Ve(E.clearIcon)))]),_:1},8,["class"])):q("v-if",!0)],38)):(k(),X(l(Ht),{key:0,id:E.id,ref_key:"inputRef",ref:p,"container-role":"combobox","model-value":l(N),name:E.name,size:l(Ze),disabled:l(D),placeholder:E.placeholder,class:S([l(s).b("editor"),l(s).bm("editor",E.type),E.$attrs.class]),style:$e(E.$attrs.style),readonly:!E.editable||E.readonly||l(re)||E.type==="week",label:E.label,tabindex:E.tabindex,"validate-event":E.validateEvent,onInput:st,onFocus:K,onBlur:_,onKeydown:et,onChange:it,onMousedown:J,onMouseenter:me,onMouseleave:Ne,onTouchstart:Le,onClick:z[0]||(z[0]=Oe(()=>{},["stop"]))},{prefix:H(()=>[l(de)?(k(),X(l(ve),{key:0,class:S(l(r).e("icon")),onMousedown:J,onTouchstart:Le},{default:H(()=>[(k(),X(Ve(l(de))))]),_:1},8,["class"])):q("v-if",!0)]),suffix:H(()=>[ye.value&&E.clearIcon?(k(),X(l(ve),{key:0,class:S(`${l(r).e("icon")} clear-icon`),onClick:Oe(ge,["stop"])},{default:H(()=>[(k(),X(Ve(E.clearIcon)))]),_:1},8,["class","onClick"])):q("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","label","tabindex","validate-event","onKeydown"]))]),content:H(()=>[Q(E.$slots,"default",{visible:d.value,actualVisible:v.value,parsedValue:l(A),format:E.format,unlinkPanels:E.unlinkPanels,type:E.type,defaultValue:E.defaultValue,onPick:B,onSelectRange:I,onSetPickerOption:Qe,onCalendarChange:U,onPanelChange:oe,onKeydown:W,onMousedown:z[1]||(z[1]=Oe(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-options"]))}});var dv=ue(cv,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/common/picker.vue"]]);const fv=pe({...sv,datetimeRole:String,parsedValue:{type:te(Object)}}),pv=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:n})=>{const o=(r,u,i,c)=>{const f={hour:e,minute:t,second:n};let h=r;return["hour","minute","second"].forEach(p=>{if(f[p]){let d;const v=f[p];switch(p){case"minute":{d=v(h.hour(),u,c);break}case"second":{d=v(h.hour(),h.minute(),u,c);break}default:{d=v(u,c);break}}if((d==null?void 0:d.length)&&!d.includes(h[p]())){const m=i?0:d.length-1;h=h[p](d[m])}}}),h},a={};return{timePickerOptions:a,getAvailableTime:o,onSetOption:([r,u])=>{a[r]=u}}},Bl=e=>{const t=(o,a)=>o||a,n=o=>o!==!0;return e.map(t).filter(n)},ei=(e,t,n)=>({getHoursList:(r,u)=>Al(24,e&&(()=>e==null?void 0:e(r,u))),getMinutesList:(r,u,i)=>Al(60,t&&(()=>t==null?void 0:t(r,u,i))),getSecondsList:(r,u,i,c)=>Al(60,n&&(()=>n==null?void 0:n(r,u,i,c)))}),vv=(e,t,n)=>{const{getHoursList:o,getMinutesList:a,getSecondsList:s}=ei(e,t,n);return{getAvailableHours:(c,f)=>Bl(o(c,f)),getAvailableMinutes:(c,f,h)=>Bl(a(c,f,h)),getAvailableSeconds:(c,f,h,p)=>Bl(s(c,f,h,p))}},mv=e=>{const t=M(e.parsedValue);return ne(()=>e.visible,n=>{n||(t.value=e.parsedValue)}),t},En=new Map;let ws;We&&(document.addEventListener("mousedown",e=>ws=e),document.addEventListener("mouseup",e=>{for(const t of En.values())for(const{documentHandler:n}of t)n(e,ws)}));function ks(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:gn(t.arg)&&n.push(t.arg),function(o,a){const s=t.instance.popperRef,r=o.target,u=a==null?void 0:a.target,i=!t||!t.instance,c=!r||!u,f=e.contains(r)||e.contains(u),h=e===r,p=n.length&&n.some(v=>v==null?void 0:v.contains(r))||n.length&&n.includes(u),d=s&&(s.contains(r)||s.contains(u));i||c||f||h||p||d||t.value(o,a)}}const uo={beforeMount(e,t){En.has(e)||En.set(e,[]),En.get(e).push({documentHandler:ks(e,t),bindingFn:t.value})},updated(e,t){En.has(e)||En.set(e,[]);const n=En.get(e),o=n.findIndex(s=>s.bindingFn===t.oldValue),a={documentHandler:ks(e,t),bindingFn:t.value};o>=0?n.splice(o,1,a):n.push(a)},unmounted(e){En.delete(e)}};var cl={beforeMount(e,t){let n=null,o;const a=()=>t.value&&t.value(),s=()=>{Date.now()-o<100&&a(),clearInterval(n),n=null};Nt(e,"mousedown",r=>{r.button===0&&(o=Date.now(),oc(document,"mouseup",s),clearInterval(n),n=setInterval(a,100))})}};const ql="_trap-focus-children",_n=[],Ss=e=>{if(_n.length===0)return;const t=_n[_n.length-1][ql];if(t.length>0&&e.code===be.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const n=e.shiftKey,o=e.target===t[0],a=e.target===t[t.length-1];o&&n&&(e.preventDefault(),t[t.length-1].focus()),a&&!n&&(e.preventDefault(),t[0].focus())}},hv={beforeMount(e){e[ql]=qa(e),_n.push(e),_n.length<=1&&Nt(document,"keydown",Ss)},updated(e){ke(()=>{e[ql]=qa(e)})},unmounted(){_n.shift(),_n.length===0&&xt(document,"keydown",Ss)}},gv=function(e,t){if(e&&e.addEventListener){const n=function(o){const a=Zu(o);t&&Reflect.apply(t,this,[o,a])};e.addEventListener("wheel",n,{passive:!0})}},bv={beforeMount(e,t){gv(e,t.value)}},yv={beforeMount(e,t){e._handleResize=()=>{var n;e&&((n=t.value)==null||n.call(t,e))},sc(e,e._handleResize)},beforeUnmount(e){rc(e,e._handleResize)}},Cv=pe({role:{type:String,required:!0},spinnerDate:{type:te(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:te(String),default:""},...Zr}),wv=["onClick"],kv=["onMouseenter"],Sv=se({__name:"basic-time-spinner",props:Cv,emits:["change","select-range","set-option"],setup(e,{emit:t}){const n=e,o=ae("time"),{getHoursList:a,getMinutesList:s,getSecondsList:r}=ei(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let u=!1;const i=M(),c=M(),f=M(),h=M(),p={hours:c,minutes:f,seconds:h},d=$(()=>n.showSeconds?ms:ms.slice(0,2)),v=$(()=>{const{spinnerDate:A}=n,N=A.hour(),R=A.minute(),G=A.second();return{hours:N,minutes:R,seconds:G}}),m=$(()=>{const{hours:A,minutes:N}=l(v);return{hours:a(n.role),minutes:s(A,n.role),seconds:r(A,N,n.role)}}),y=$(()=>{const{hours:A,minutes:N,seconds:R}=l(v);return{hours:Ol(A,23),minutes:Ol(N,59),seconds:Ol(R,59)}}),b=hn(A=>{u=!1,w(A)},200),C=A=>{if(!!!n.amPmMode)return"";const R=n.amPmMode==="A";let G=A<12?" am":" pm";return R&&(G=G.toUpperCase()),G},g=A=>{let N;switch(A){case"hours":N=[0,2];break;case"minutes":N=[3,5];break;case"seconds":N=[6,8];break}const[R,G]=N;t("select-range",R,G),i.value=A},w=A=>{T(A,l(v)[A])},P=()=>{w("hours"),w("minutes"),w("seconds")},I=A=>A.querySelector(`.${o.namespace.value}-scrollbar__wrap`),T=(A,N)=>{if(n.arrowControl)return;const R=l(p[A]);R&&R.$el&&(I(R.$el).scrollTop=Math.max(0,N*B(A)))},B=A=>{const N=l(p[A]);return(N==null?void 0:N.$el.querySelector("li").offsetHeight)||0},O=()=>{W(1)},V=()=>{W(-1)},W=A=>{i.value||g("hours");const N=i.value;let R=l(v)[N];const G=i.value==="hours"?24:60;R=(R+A+G)%G,Z(N,R),T(N,R),ke(()=>g(N))},Z=(A,N)=>{if(l(m)[A][N])return;const{hours:re,minutes:de,seconds:ye}=l(v);let ge;switch(A){case"hours":ge=n.spinnerDate.hour(N).minute(de).second(ye);break;case"minutes":ge=n.spinnerDate.hour(re).minute(N).second(ye);break;case"seconds":ge=n.spinnerDate.hour(re).minute(de).second(N);break}t("change",ge)},F=(A,{value:N,disabled:R})=>{R||(Z(A,N),g(A),T(A,N))},K=A=>{u=!0,b(A);const N=Math.min(Math.round((I(l(p[A]).$el).scrollTop-(Y(A)*.5-10)/B(A)+3)/B(A)),A==="hours"?23:59);Z(A,N)},Y=A=>l(p[A]).$el.offsetHeight,_=()=>{const A=N=>{const R=l(p[N]);R&&R.$el&&(I(R.$el).onscroll=()=>{K(N)})};A("hours"),A("minutes"),A("seconds")};Re(()=>{ke(()=>{!n.arrowControl&&_(),P(),n.role==="start"&&g("hours")})});const D=(A,N)=>{p[N].value=A};return t("set-option",[`${n.role}_scrollDown`,W]),t("set-option",[`${n.role}_emitSelectRange`,g]),ne(()=>n.spinnerDate,()=>{u||P()}),(A,N)=>(k(),L("div",{class:S([l(o).b("spinner"),{"has-seconds":A.showSeconds}])},[A.arrowControl?q("v-if",!0):(k(!0),L(Pe,{key:0},ot(l(d),R=>(k(),X(l(bo),{key:R,ref_for:!0,ref:G=>D(G,R),class:S(l(o).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":l(o).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:G=>g(R),onMousemove:G=>w(R)},{default:H(()=>[(k(!0),L(Pe,null,ot(l(m)[R],(G,re)=>(k(),L("li",{key:re,class:S([l(o).be("spinner","item"),l(o).is("active",re===l(v)[R]),l(o).is("disabled",G)]),onClick:de=>F(R,{value:re,disabled:G})},[R==="hours"?(k(),L(Pe,{key:0},[Ge(ce(("0"+(A.amPmMode?re%12||12:re)).slice(-2))+ce(C(re)),1)],64)):(k(),L(Pe,{key:1},[Ge(ce(("0"+re).slice(-2)),1)],64))],10,wv))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),A.arrowControl?(k(!0),L(Pe,{key:1},ot(l(d),R=>(k(),L("div",{key:R,class:S([l(o).be("spinner","wrapper"),l(o).is("arrow")]),onMouseenter:G=>g(R)},[Ie((k(),X(l(ve),{class:S(["arrow-up",l(o).be("spinner","arrow")])},{default:H(()=>[j(l(gl))]),_:1},8,["class"])),[[l(cl),V]]),Ie((k(),X(l(ve),{class:S(["arrow-down",l(o).be("spinner","arrow")])},{default:H(()=>[j(l(mo))]),_:1},8,["class"])),[[l(cl),O]]),x("ul",{class:S(l(o).be("spinner","list"))},[(k(!0),L(Pe,null,ot(l(y)[R],(G,re)=>(k(),L("li",{key:re,class:S([l(o).be("spinner","item"),l(o).is("active",G===l(v)[R]),l(o).is("disabled",l(m)[R][G])])},[typeof G=="number"?(k(),L(Pe,{key:0},[R==="hours"?(k(),L(Pe,{key:0},[Ge(ce(("0"+(A.amPmMode?G%12||12:G)).slice(-2))+ce(C(G)),1)],64)):(k(),L(Pe,{key:1},[Ge(ce(("0"+G).slice(-2)),1)],64))],64)):q("v-if",!0)],2))),128))],2)],42,kv))),128)):q("v-if",!0)],2))}});var Ev=ue(Sv,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/basic-time-spinner.vue"]]);const $v=se({__name:"panel-time-pick",props:fv,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,o=fe("EP_PICKER_BASE"),{arrowControl:a,disabledHours:s,disabledMinutes:r,disabledSeconds:u,defaultValue:i}=o.props,{getAvailableHours:c,getAvailableMinutes:f,getAvailableSeconds:h}=vv(s,r,u),p=ae("time"),{t:d,lang:v}=Je(),m=M([0,2]),y=mv(n),b=$(()=>Jt(n.actualVisible)?`${p.namespace.value}-zoom-in-top`:""),C=$(()=>n.format.includes("ss")),g=$(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),w=A=>{const N=Me(A).locale(v.value),R=K(N);return N.isSame(R)},P=()=>{t("pick",y.value,!1)},I=(A=!1,N=!1)=>{N||t("pick",n.parsedValue,A)},T=A=>{if(!n.visible)return;const N=K(A).millisecond(0);t("pick",N,!0)},B=(A,N)=>{t("select-range",A,N),m.value=[A,N]},O=A=>{const N=[0,3].concat(C.value?[6]:[]),R=["hours","minutes"].concat(C.value?["seconds"]:[]),re=(N.indexOf(m.value[0])+A+N.length)%N.length;W.start_emitSelectRange(R[re])},V=A=>{const N=A.code,{left:R,right:G,up:re,down:de}=be;if([R,G].includes(N)){O(N===R?-1:1),A.preventDefault();return}if([re,de].includes(N)){const ye=N===re?-1:1;W.start_scrollDown(ye),A.preventDefault();return}},{timePickerOptions:W,onSetOption:Z,getAvailableTime:F}=pv({getAvailableHours:c,getAvailableMinutes:f,getAvailableSeconds:h}),K=A=>F(A,n.datetimeRole||"",!0),Y=A=>A?Me(A,n.format).locale(v.value):null,_=A=>A?A.format(n.format):null,D=()=>Me(i).locale(v.value);return t("set-picker-option",["isValidValue",w]),t("set-picker-option",["formatToString",_]),t("set-picker-option",["parseUserInput",Y]),t("set-picker-option",["handleKeydownInput",V]),t("set-picker-option",["getRangeAvailableTime",K]),t("set-picker-option",["getDefaultValue",D]),(A,N)=>(k(),X(kt,{name:l(b)},{default:H(()=>[A.actualVisible||A.visible?(k(),L("div",{key:0,class:S(l(p).b("panel"))},[x("div",{class:S([l(p).be("panel","content"),{"has-seconds":l(C)}])},[j(Ev,{ref:"spinner",role:A.datetimeRole||"start","arrow-control":l(a),"show-seconds":l(C),"am-pm-mode":l(g),"spinner-date":A.parsedValue,"disabled-hours":l(s),"disabled-minutes":l(r),"disabled-seconds":l(u),onChange:T,onSetOption:l(Z),onSelectRange:B},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),x("div",{class:S(l(p).be("panel","footer"))},[x("button",{type:"button",class:S([l(p).be("panel","btn"),"cancel"]),onClick:P},ce(l(d)("el.datepicker.cancel")),3),x("button",{type:"button",class:S([l(p).be("panel","btn"),"confirm"]),onClick:N[0]||(N[0]=R=>I())},ce(l(d)("el.datepicker.confirm")),3)],2)],2)):q("v-if",!0)]),_:1},8,["name"]))}});var Ul=ue($v,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-pick.vue"]]);const Tv=pe({header:{type:String,default:""},bodyStyle:{type:te([String,Object,Array]),default:""},shadow:{type:String,values:["always","hover","never"],default:"always"}}),Nv={name:"ElCard"},Pv=se({...Nv,props:Tv,setup(e){const t=ae("card");return(n,o)=>(k(),L("div",{class:S([l(t).b(),l(t).is(`${n.shadow}-shadow`)])},[n.$slots.header||n.header?(k(),L("div",{key:0,class:S(l(t).e("header"))},[Q(n.$slots,"header",{},()=>[Ge(ce(n.header),1)])],2)):q("v-if",!0),x("div",{class:S(l(t).e("body")),style:$e(n.bodyStyle)},[Q(n.$slots,"default")],6)],2))}});var Iv=ue(Pv,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const bS=je(Iv),Mv={modelValue:{type:Array,default:()=>[]},disabled:Boolean,min:{type:Number,default:void 0},max:{type:Number,default:void 0},size:Cn,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}},ti={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:Cn,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},yo=()=>{const e=fe(fn,{}),t=fe(Ut,{}),n=fe("CheckboxGroup",{}),o=$(()=>n&&(n==null?void 0:n.name)==="ElCheckboxGroup"),a=$(()=>t.size);return{isGroup:o,checkboxGroup:n,elForm:e,elFormItemSize:a,elFormItem:t}},Ov=(e,{elFormItem:t})=>{const{inputId:n,isLabeledByFormItem:o}=go(e,{formItemContext:t});return{isLabeledByFormItem:o,groupId:n}},Av=e=>{const t=M(!1),{emit:n}=De(),{isGroup:o,checkboxGroup:a,elFormItem:s}=yo(),r=M(!1);return{model:$({get(){var i,c;return o.value?(i=a.modelValue)==null?void 0:i.value:(c=e.modelValue)!=null?c:t.value},set(i){var c;o.value&&Array.isArray(i)?(r.value=a.max!==void 0&&i.length>a.max.value,r.value===!1&&((c=a==null?void 0:a.changeEvent)==null||c.call(a,i))):(n(qe,i),t.value=i)}}),isGroup:o,isLimitExceeded:r,elFormItem:s}},Bv=(e,t,{model:n})=>{const{isGroup:o,checkboxGroup:a}=yo(),s=M(!1),r=wt(a==null?void 0:a.checkboxGroupSize,{prop:!0}),u=$(()=>{const f=n.value;return cu(f)==="[object Boolean]"?f:Array.isArray(f)?f.includes(e.label):f!=null?f===e.trueLabel:!!f}),i=wt($(()=>{var f;return o.value?(f=a==null?void 0:a.checkboxGroupSize)==null?void 0:f.value:void 0})),c=$(()=>!!(t.default||e.label));return{isChecked:u,focus:s,size:r,checkboxSize:i,hasOwnLabel:c}},Dv=(e,{model:t,isChecked:n})=>{const{elForm:o,isGroup:a,checkboxGroup:s}=yo(),r=$(()=>{var i,c;const f=(i=s.max)==null?void 0:i.value,h=(c=s.min)==null?void 0:c.value;return!!(f||h)&&t.value.length>=f&&!n.value||t.value.length<=h&&n.value});return{isDisabled:$(()=>{var i,c;const f=e.disabled||(o==null?void 0:o.disabled);return(c=a.value?((i=s.disabled)==null?void 0:i.value)||f||r.value:f)!=null?c:!1}),isLimitDisabled:r}},Lv=(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()},Rv=(e,{model:t,isLimitExceeded:n,hasOwnLabel:o,isDisabled:a,isLabeledByFormItem:s})=>{const{elFormItem:r,checkboxGroup:u}=yo(),{emit:i}=De();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 f(v,m){i("change",c(v),m)}function h(v){if(n.value)return;const m=v.target;i("change",c(m.checked),v)}async function p(v){n.value||!o.value&&!a.value&&s.value&&(t.value=c([!1,e.falseLabel].includes(t.value)),await ke(),f(t.value,v))}const d=$(()=>{var v;return((v=u.validateEvent)==null?void 0:v.value)||e.validateEvent});return ne(()=>e.modelValue,()=>{var v;d.value&&((v=r==null?void 0:r.validate)==null||v.call(r,"change").catch(m=>void 0))}),{handleChange:h,onClickRoot:p}},ni={[qe]:e=>Ke(e)||He(e)||It(e),change:e=>Ke(e)||He(e)||It(e)},_v={[qe]:e=>at(e),change:e=>at(e)},oi=(e,t)=>{const{model:n,isGroup:o,isLimitExceeded:a,elFormItem:s}=Av(e),{focus:r,size:u,isChecked:i,checkboxSize:c,hasOwnLabel:f}=Bv(e,t,{model:n}),{isDisabled:h}=Dv(e,{model:n,isChecked:i}),{inputId:p,isLabeledByFormItem:d}=go(e,{formItemContext:s,disableIdGeneration:f,disableIdManagement:o}),{handleChange:v,onClickRoot:m}=Rv(e,{model:n,isLimitExceeded:a,hasOwnLabel:f,isDisabled:h,isLabeledByFormItem:d});return Lv(e,{model:n}),{elFormItem:s,inputId:p,isLabeledByFormItem:d,isChecked:i,isDisabled:h,isGroup:o,checkboxSize:c,hasOwnLabel:f,model:n,handleChange:v,onClickRoot:m,focus:r,size:u}},Fv=["tabindex","role","aria-checked"],zv=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],Vv=["id","aria-hidden","disabled","value","name","tabindex"],Hv={name:"ElCheckbox"},Kv=se({...Hv,props:ti,emits:ni,setup(e){const t=e,n=tn(),{inputId:o,isLabeledByFormItem:a,isChecked:s,isDisabled:r,checkboxSize:u,hasOwnLabel:i,model:c,handleChange:f,onClickRoot:h,focus:p}=oi(t,n),d=ae("checkbox");return(v,m)=>(k(),X(Ve(!l(i)&&l(a)?"span":"label"),{class:S([l(d).b(),l(d).m(l(u)),l(d).is("disabled",l(r)),l(d).is("bordered",v.border),l(d).is("checked",l(s))]),"aria-controls":v.indeterminate?v.controls:null,onClick:l(h)},{default:H(()=>[x("span",{class:S([l(d).e("input"),l(d).is("disabled",l(r)),l(d).is("checked",l(s)),l(d).is("indeterminate",v.indeterminate),l(d).is("focus",l(p))]),tabindex:v.indeterminate?0:void 0,role:v.indeterminate?"checkbox":void 0,"aria-checked":v.indeterminate?"mixed":void 0},[v.trueLabel||v.falseLabel?Ie((k(),L("input",{key:0,id:l(o),"onUpdate:modelValue":m[0]||(m[0]=y=>Zt(c)?c.value=y:null),class:S(l(d).e("original")),type:"checkbox","aria-hidden":v.indeterminate?"true":"false",name:v.name,tabindex:v.tabindex,disabled:l(r),"true-value":v.trueLabel,"false-value":v.falseLabel,onChange:m[1]||(m[1]=(...y)=>l(f)&&l(f)(...y)),onFocus:m[2]||(m[2]=y=>p.value=!0),onBlur:m[3]||(m[3]=y=>p.value=!1)},null,42,zv)),[[al,l(c)]]):Ie((k(),L("input",{key:1,id:l(o),"onUpdate:modelValue":m[4]||(m[4]=y=>Zt(c)?c.value=y:null),class:S(l(d).e("original")),type:"checkbox","aria-hidden":v.indeterminate?"true":"false",disabled:l(r),value:v.label,name:v.name,tabindex:v.tabindex,onChange:m[5]||(m[5]=(...y)=>l(f)&&l(f)(...y)),onFocus:m[6]||(m[6]=y=>p.value=!0),onBlur:m[7]||(m[7]=y=>p.value=!1)},null,42,Vv)),[[al,l(c)]]),x("span",{class:S(l(d).e("inner"))},null,2)],10,Fv),l(i)?(k(),L("span",{key:0,class:S(l(d).e("label"))},[Q(v.$slots,"default"),v.$slots.default?q("v-if",!0):(k(),L(Pe,{key:0},[Ge(ce(v.label),1)],64))],2)):q("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var Wv=ue(Kv,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const jv=["name","tabindex","disabled","true-value","false-value"],xv=["name","tabindex","disabled","value"],qv={name:"ElCheckboxButton"},Uv=se({...qv,props:ti,emits:ni,setup(e){const t=e,n=tn(),{focus:o,isChecked:a,isDisabled:s,size:r,model:u,handleChange:i}=oi(t,n),{checkboxGroup:c}=yo(),f=ae("checkbox"),h=$(()=>{var p,d,v,m;const y=(d=(p=c==null?void 0:c.fill)==null?void 0:p.value)!=null?d:"";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(p,d)=>(k(),L("label",{class:S([l(f).b("button"),l(f).bm("button",l(r)),l(f).is("disabled",l(s)),l(f).is("checked",l(a)),l(f).is("focus",l(o))])},[p.trueLabel||p.falseLabel?Ie((k(),L("input",{key:0,"onUpdate:modelValue":d[0]||(d[0]=v=>Zt(u)?u.value=v:null),class:S(l(f).be("button","original")),type:"checkbox",name:p.name,tabindex:p.tabindex,disabled:l(s),"true-value":p.trueLabel,"false-value":p.falseLabel,onChange:d[1]||(d[1]=(...v)=>l(i)&&l(i)(...v)),onFocus:d[2]||(d[2]=v=>o.value=!0),onBlur:d[3]||(d[3]=v=>o.value=!1)},null,42,jv)),[[al,l(u)]]):Ie((k(),L("input",{key:1,"onUpdate:modelValue":d[4]||(d[4]=v=>Zt(u)?u.value=v:null),class:S(l(f).be("button","original")),type:"checkbox",name:p.name,tabindex:p.tabindex,disabled:l(s),value:p.label,onChange:d[5]||(d[5]=(...v)=>l(i)&&l(i)(...v)),onFocus:d[6]||(d[6]=v=>o.value=!0),onBlur:d[7]||(d[7]=v=>o.value=!1)},null,42,xv)),[[al,l(u)]]),p.$slots.default||p.label?(k(),L("span",{key:2,class:S(l(f).be("button","inner")),style:$e(l(a)?l(h):void 0)},[Q(p.$slots,"default",{},()=>[Ge(ce(p.label),1)])],6)):q("v-if",!0)],2))}});var li=ue(Uv,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const Yv={name:"ElCheckboxGroup"},Gv=se({...Yv,props:Mv,emits:_v,setup(e,{emit:t}){const n=e,{elFormItem:o}=yo(),{groupId:a,isLabeledByFormItem:s}=Ov(n,{elFormItem:o}),r=wt(),u=ae("checkbox"),i=f=>{t(qe,f),ke(()=>{t("change",f)})},c=$({get(){return n.modelValue},set(f){i(f)}});return _e("CheckboxGroup",{name:"ElCheckboxGroup",modelValue:c,...Ft(n),checkboxGroupSize:r,changeEvent:i}),ne(()=>n.modelValue,()=>{var f;n.validateEvent&&((f=o.validate)==null||f.call(o,"change").catch(h=>void 0))}),(f,h)=>(k(),X(Ve(f.tag),{id:l(a),class:S(l(u).b("group")),role:"group","aria-label":l(s)?void 0:f.label||"checkbox-group","aria-labelledby":l(s)?l(o).labelId:void 0},{default:H(()=>[Q(f.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"]))}});var ai=ue(Gv,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const Wn=je(Wv,{CheckboxButton:li,CheckboxGroup:ai});St(li);const yS=St(ai),si=pe({size:Cn,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),Xv=pe({...si,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),ri={[qe]:e=>Ke(e)||He(e)||It(e),[en]:e=>Ke(e)||He(e)||It(e)},ii=(e,t)=>{const n=M(),o=fe(hr,void 0),a=$(()=>!!o),s=$({get(){return a.value?o.modelValue:e.modelValue},set(f){a.value?o.changeEvent(f):t&&t(qe,f),n.value.checked=e.modelValue===e.label}}),r=wt($(()=>o==null?void 0:o.size)),u=On($(()=>o==null?void 0:o.disabled)),i=M(!1),c=$(()=>u.value||a.value&&s.value!==e.label?-1:0);return{radioRef:n,isGroup:a,radioGroup:o,focus:i,size:r,disabled:u,tabIndex:c,modelValue:s}},Jv=["value","name","disabled"],Zv={name:"ElRadio"},Qv=se({...Zv,props:Xv,emits:ri,setup(e,{emit:t}){const n=e,o=ae("radio"),{radioRef:a,radioGroup:s,focus:r,size:u,disabled:i,modelValue:c}=ii(n,t);function f(){ke(()=>t("change",c.value))}return(h,p)=>{var d;return k(),L("label",{class:S([l(o).b(),l(o).is("disabled",l(i)),l(o).is("focus",l(r)),l(o).is("bordered",h.border),l(o).is("checked",l(c)===h.label),l(o).m(l(u))])},[x("span",{class:S([l(o).e("input"),l(o).is("disabled",l(i)),l(o).is("checked",l(c)===h.label)])},[Ie(x("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":p[0]||(p[0]=v=>Zt(c)?c.value=v:null),class:S(l(o).e("original")),value:h.label,name:h.name||((d=l(s))==null?void 0:d.name),disabled:l(i),type:"radio",onFocus:p[1]||(p[1]=v=>r.value=!0),onBlur:p[2]||(p[2]=v=>r.value=!1),onChange:f},null,42,Jv),[[Gs,l(c)]]),x("span",{class:S(l(o).e("inner"))},null,2)],2),x("span",{class:S(l(o).e("label")),onKeydown:p[3]||(p[3]=Oe(()=>{},["stop"]))},[Q(h.$slots,"default",{},()=>[Ge(ce(h.label),1)])],34)],2)}}});var em=ue(Qv,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const tm=pe({...si,name:{type:String,default:""}}),nm=["value","name","disabled"],om={name:"ElRadioButton"},lm=se({...om,props:tm,setup(e){const t=e,n=ae("radio"),{radioRef:o,focus:a,size:s,disabled:r,modelValue:u,radioGroup:i}=ii(t),c=$(()=>({backgroundColor:(i==null?void 0:i.fill)||"",borderColor:(i==null?void 0:i.fill)||"",boxShadow:i!=null&&i.fill?`-1px 0 0 0 ${i.fill}`:"",color:(i==null?void 0:i.textColor)||""}));return(f,h)=>{var p;return k(),L("label",{class:S([l(n).b("button"),l(n).is("active",l(u)===f.label),l(n).is("disabled",l(r)),l(n).is("focus",l(a)),l(n).bm("button",l(s))])},[Ie(x("input",{ref_key:"radioRef",ref:o,"onUpdate:modelValue":h[0]||(h[0]=d=>Zt(u)?u.value=d:null),class:S(l(n).be("button","original-radio")),value:f.label,type:"radio",name:f.name||((p=l(i))==null?void 0:p.name),disabled:l(r),onFocus:h[1]||(h[1]=d=>a.value=!0),onBlur:h[2]||(h[2]=d=>a.value=!1)},null,42,nm),[[Gs,l(u)]]),x("span",{class:S(l(n).be("button","inner")),style:$e(l(u)===f.label?l(c):{}),onKeydown:h[3]||(h[3]=Oe(()=>{},["stop"]))},[Q(f.$slots,"default",{},()=>[Ge(ce(f.label),1)])],38)],2)}}});var ui=ue(lm,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const am=pe({id:{type:String,default:void 0},size:Cn,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}}),sm=ri,rm=["id","aria-label","aria-labelledby"],im={name:"ElRadioGroup"},um=se({...im,props:am,emits:sm,setup(e,{emit:t}){const n=e,o=ae("radio"),a=cn(),s=M(),{formItem:r}=Ro(),{inputId:u,isLabeledByFormItem:i}=go(n,{formItemContext:r}),c=h=>{t(qe,h),ke(()=>t("change",h))};Re(()=>{const h=s.value.querySelectorAll("[type=radio]"),p=h[0];!Array.from(h).some(d=>d.checked)&&p&&(p.tabIndex=0)});const f=$(()=>n.name||a.value);return _e(hr,rt({...Ft(n),changeEvent:c,name:f})),ne(()=>n.modelValue,()=>{n.validateEvent&&(r==null||r.validate("change").catch(h=>void 0))}),(h,p)=>(k(),L("div",{id:l(u),ref_key:"radioGroupRef",ref:s,class:S(l(o).b("group")),role:"radiogroup","aria-label":l(i)?void 0:h.label||"radio-group","aria-labelledby":l(i)?l(r).labelId:void 0},[Q(h.$slots,"default")],10,rm))}});var ci=ue(um,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);const CS=je(em,{RadioButton:ui,RadioGroup:ci}),wS=St(ci);St(ui);const di=pe({closable:Boolean,type:{type:String,values:["success","info","warning","danger",""],default:""},hit:Boolean,disableTransitions:Boolean,color:{type:String,default:""},size:{type:String,values:ho,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),cm={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},dm={name:"ElTag"},fm=se({...dm,props:di,emits:cm,setup(e,{emit:t}){const n=e,o=wt(),a=ae("tag"),s=$(()=>{const{type:i,hit:c,effect:f,closable:h,round:p}=n;return[a.b(),a.is("closable",h),a.m(i),a.m(o.value),a.m(f),a.is("hit",c),a.is("round",p)]}),r=i=>{t("close",i)},u=i=>{t("click",i)};return(i,c)=>i.disableTransitions?(k(),L("span",{key:0,class:S(l(s)),style:$e({backgroundColor:i.color}),onClick:u},[x("span",{class:S(l(a).e("content"))},[Q(i.$slots,"default")],2),i.closable?(k(),X(l(ve),{key:0,class:S(l(a).e("close")),onClick:Oe(r,["stop"])},{default:H(()=>[j(l(Qt))]),_:1},8,["class","onClick"])):q("v-if",!0)],6)):(k(),X(kt,{key:1,name:`${l(a).namespace.value}-zoom-in-center`,appear:""},{default:H(()=>[x("span",{class:S(l(s)),style:$e({backgroundColor:i.color}),onClick:u},[x("span",{class:S(l(a).e("content"))},[Q(i.$slots,"default")],2),i.closable?(k(),X(l(ve),{key:0,class:S(l(a).e("close")),onClick:Oe(r,["stop"])},{default:H(()=>[j(l(Qt))]),_:1},8,["class","onClick"])):q("v-if",!0)],6)]),_:3},8,["name"]))}});var pm=ue(fm,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const vm=je(pm),mm=pe({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:te([Number,Object]),default:()=>yt({})},sm:{type:te([Number,Object]),default:()=>yt({})},md:{type:te([Number,Object]),default:()=>yt({})},lg:{type:te([Number,Object]),default:()=>yt({})},xl:{type:te([Number,Object]),default:()=>yt({})}}),hm={name:"ElCol"},gm=se({...hm,props:mm,setup(e){const t=e,{gutter:n}=fe(gr,{gutter:$(()=>0)}),o=ae("col"),a=$(()=>{const r={};return n.value&&(r.paddingLeft=r.paddingRight=`${n.value/2}px`),r}),s=$(()=>{const r=[];return["span","offset","pull","push"].forEach(c=>{const f=t[c];He(f)&&(c==="span"?r.push(o.b(`${t[c]}`)):f>0&&r.push(o.b(`${c}-${t[c]}`)))}),["xs","sm","md","lg","xl"].forEach(c=>{He(t[c])?r.push(o.b(`${c}-${t[c]}`)):Mt(t[c])&&Object.entries(t[c]).forEach(([f,h])=>{r.push(f!=="span"?o.b(`${c}-${f}-${h}`):o.b(`${c}-${h}`))})}),n.value&&r.push(o.is("guttered")),r});return(r,u)=>(k(),X(Ve(r.tag),{class:S([l(o).b(),l(s)]),style:$e(l(a))},{default:H(()=>[Q(r.$slots,"default")]),_:3},8,["class","style"]))}});var bm=ue(gm,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const kS=je(bm),ym={name:"ElCollapseTransition"},Cm=se({...ym,setup(e){const t=ae("collapse-transition"),n={beforeEnter(o){o.dataset||(o.dataset={}),o.dataset.oldPaddingTop=o.style.paddingTop,o.dataset.oldPaddingBottom=o.style.paddingBottom,o.style.maxHeight=0,o.style.paddingTop=0,o.style.paddingBottom=0},enter(o){o.dataset.oldOverflow=o.style.overflow,o.scrollHeight!==0?(o.style.maxHeight=`${o.scrollHeight}px`,o.style.paddingTop=o.dataset.oldPaddingTop,o.style.paddingBottom=o.dataset.oldPaddingBottom):(o.style.maxHeight=0,o.style.paddingTop=o.dataset.oldPaddingTop,o.style.paddingBottom=o.dataset.oldPaddingBottom),o.style.overflow="hidden"},afterEnter(o){o.style.maxHeight="",o.style.overflow=o.dataset.oldOverflow},beforeLeave(o){o.dataset||(o.dataset={}),o.dataset.oldPaddingTop=o.style.paddingTop,o.dataset.oldPaddingBottom=o.style.paddingBottom,o.dataset.oldOverflow=o.style.overflow,o.style.maxHeight=`${o.scrollHeight}px`,o.style.overflow="hidden"},leave(o){o.scrollHeight!==0&&(o.style.maxHeight=0,o.style.paddingTop=0,o.style.paddingBottom=0)},afterLeave(o){o.style.maxHeight="",o.style.overflow=o.dataset.oldOverflow,o.style.paddingTop=o.dataset.oldPaddingTop,o.style.paddingBottom=o.dataset.oldPaddingBottom}};return(o,a)=>(k(),X(kt,vt({name:l(t).b()},du(n)),{default:H(()=>[Q(o.$slots,"default")]),_:3},16,["name"]))}});var Yo=ue(Cm,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);Yo.install=e=>{e.component(Yo.name,Yo)};const fi=Yo;let Dl=!1;function Oo(e,t){if(!We)return;const n=function(s){var r;(r=t.drag)==null||r.call(t,s)},o=function(s){var r;xt(document,"mousemove",n),xt(document,"mouseup",o),xt(document,"touchmove",n),xt(document,"touchend",o),document.onselectstart=null,document.ondragstart=null,Dl=!1,(r=t.end)==null||r.call(t,s)},a=function(s){var r;Dl||(s.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,Nt(document,"mousemove",n),Nt(document,"mouseup",o),Nt(document,"touchmove",n),Nt(document,"touchend",o),Dl=!0,(r=t.start)==null||r.call(t,s))};Nt(e,"mousedown",a),Nt(e,"touchstart",a)}const wm=se({name:"ElColorAlphaSlider",props:{color:{type:Object,required:!0},vertical:{type:Boolean,default:!1}},setup(e){const t=De(),n=Kt(null),o=Kt(null),a=M(0),s=M(0),r=M(null);ne(()=>e.color.get("alpha"),()=>{p()}),ne(()=>e.color.value,()=>{p()});function u(){if(e.vertical)return 0;const d=t.vnode.el,v=e.color.get("alpha");return d?Math.round(v*(d.offsetWidth-n.value.offsetWidth/2)/100):0}function i(){const d=t.vnode.el;if(!e.vertical)return 0;const v=e.color.get("alpha");return d?Math.round(v*(d.offsetHeight-n.value.offsetHeight/2)/100):0}function c(){if(e.color&&e.color.value){const{r:d,g:v,b:m}=e.color.toRgb();return`linear-gradient(to right, rgba(${d}, ${v}, ${m}, 0) 0%, rgba(${d}, ${v}, ${m}, 1) 100%)`}return null}function f(d){d.target!==n.value&&h(d)}function h(d){const m=t.vnode.el.getBoundingClientRect(),{clientX:y,clientY:b}=da(d);if(e.vertical){let C=b-m.top;C=Math.max(n.value.offsetHeight/2,C),C=Math.min(C,m.height-n.value.offsetHeight/2),e.color.set("alpha",Math.round((C-n.value.offsetHeight/2)/(m.height-n.value.offsetHeight)*100))}else{let C=y-m.left;C=Math.max(n.value.offsetWidth/2,C),C=Math.min(C,m.width-n.value.offsetWidth/2),e.color.set("alpha",Math.round((C-n.value.offsetWidth/2)/(m.width-n.value.offsetWidth)*100))}}function p(){a.value=u(),s.value=i(),r.value=c()}return Re(()=>{const d={drag:v=>{h(v)},end:v=>{h(v)}};Oo(o.value,d),Oo(n.value,d),p()}),{thumb:n,bar:o,thumbLeft:a,thumbTop:s,background:r,handleClick:f,update:p}}});function km(e,t,n,o,a,s){return k(),L("div",{class:S(["el-color-alpha-slider",{"is-vertical":e.vertical}])},[x("div",{ref:"bar",class:"el-color-alpha-slider__bar",style:$e({background:e.background}),onClick:t[0]||(t[0]=(...r)=>e.handleClick&&e.handleClick(...r))},null,4),x("div",{ref:"thumb",class:"el-color-alpha-slider__thumb",style:$e({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,4)],2)}var Sm=ue(wm,[["render",km],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/alpha-slider.vue"]]);const Em=se({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=De(),n=M(null),o=M(null),a=M(0),s=M(0),r=$(()=>e.color.get("hue"));ne(()=>r.value,()=>{h()});function u(p){p.target!==n.value&&i(p)}function i(p){const v=t.vnode.el.getBoundingClientRect(),{clientX:m,clientY:y}=da(p);let b;if(e.vertical){let C=y-v.top;C=Math.min(C,v.height-n.value.offsetHeight/2),C=Math.max(n.value.offsetHeight/2,C),b=Math.round((C-n.value.offsetHeight/2)/(v.height-n.value.offsetHeight)*360)}else{let C=m-v.left;C=Math.min(C,v.width-n.value.offsetWidth/2),C=Math.max(n.value.offsetWidth/2,C),b=Math.round((C-n.value.offsetWidth/2)/(v.width-n.value.offsetWidth)*360)}e.color.set("hue",b)}function c(){const p=t.vnode.el;if(e.vertical)return 0;const d=e.color.get("hue");return p?Math.round(d*(p.offsetWidth-n.value.offsetWidth/2)/360):0}function f(){const p=t.vnode.el;if(!e.vertical)return 0;const d=e.color.get("hue");return p?Math.round(d*(p.offsetHeight-n.value.offsetHeight/2)/360):0}function h(){a.value=c(),s.value=f()}return Re(()=>{const p={drag:d=>{i(d)},end:d=>{i(d)}};Oo(o.value,p),Oo(n.value,p),h()}),{bar:o,thumb:n,thumbLeft:a,thumbTop:s,hueValue:r,handleClick:u,update:h}}});function $m(e,t,n,o,a,s){return k(),L("div",{class:S(["el-color-hue-slider",{"is-vertical":e.vertical}])},[x("div",{ref:"bar",class:"el-color-hue-slider__bar",onClick:t[0]||(t[0]=(...r)=>e.handleClick&&e.handleClick(...r))},null,512),x("div",{ref:"thumb",class:"el-color-hue-slider__thumb",style:$e({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,4)],2)}var Tm=ue(Em,[["render",$m],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/hue-slider.vue"]]);const pi=Symbol(),Nm=()=>fe(pi),Es=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},Pm=function(e){return typeof e=="string"&&e.includes(".")&&Number.parseFloat(e)===1},Im=function(e){return typeof e=="string"&&e.includes("%")},Gn=function(e,t){Pm(e)&&(e="100%");const n=Im(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)},$s={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},Go=function(e){e=Math.min(Math.round(e),255);const t=Math.floor(e/16),n=e%16;return`${$s[t]||t}${$s[n]||n}`},Ts=function({r:e,g:t,b:n}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+n)?"":`#${Go(e)}${Go(t)}${Go(n)}`},Ll={A:10,B:11,C:12,D:13,E:14,F:15},Ln=function(e){return e.length===2?(Ll[e[0].toUpperCase()]||+e[0])*16+(Ll[e[1].toUpperCase()]||+e[1]):Ll[e[1].toUpperCase()]||+e[1]},Mm=function(e,t,n){t=t/100,n=n/100;let o=t;const a=Math.max(n,.01);n*=2,t*=n<=1?n:2-n,o*=a<=1?a:2-a;const s=(n+t)/2,r=n===0?2*o/(a+o):2*t/(n+t);return{h:e,s:r*100,v:s*100}},Ns=function(e,t,n){e=Gn(e,255),t=Gn(t,255),n=Gn(n,255);const o=Math.max(e,t,n),a=Math.min(e,t,n);let s;const r=o,u=o-a,i=o===0?0:u/o;if(o===a)s=0;else{switch(o){case e:{s=(t-n)/u+(t<n?6:0);break}case t:{s=(n-e)/u+2;break}case n:{s=(e-t)/u+4;break}}s/=6}return{h:s*360,s:i*100,v:r*100}},So=function(e,t,n){e=Gn(e,360)*6,t=Gn(t,100),n=Gn(n,100);const o=Math.floor(e),a=e-o,s=n*(1-t),r=n*(1-a*t),u=n*(1-(1-a)*t),i=o%6,c=[n,r,s,s,u,n][i],f=[u,n,n,r,s,s][i],h=[s,s,u,n,n,r][i];return{r:Math.round(c*255),g:Math.round(f*255),b:Math.round(h*255)}};class To{constructor(t){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="",t=t||{};for(const n in t)Rt(t,n)&&(this[n]=t[n]);t.value?this.fromString(t.value):this.doOnChange()}set(t,n){if(arguments.length===1&&typeof t=="object"){for(const o in t)Rt(t,o)&&this.set(o,t[o]);return}this[`_${t}`]=n,this.doOnChange()}get(t){return t==="alpha"?Math.floor(this[`_${t}`]):this[`_${t}`]}toRgb(){return So(this._hue,this._saturation,this._value)}fromString(t){if(!t){this._hue=0,this._saturation=100,this._value=100,this.doOnChange();return}const n=(o,a,s)=>{this._hue=Math.max(0,Math.min(360,o)),this._saturation=Math.max(0,Math.min(100,a)),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(a=>a!=="").map((a,s)=>s>2?Number.parseFloat(a):Number.parseInt(a,10));if(o.length===4?this._alpha=Number.parseFloat(o[3])*100:o.length===3&&(this._alpha=100),o.length>=3){const{h:a,s,v:r}=Mm(o[0],o[1],o[2]);n(a,s,r)}}else if(t.includes("hsv")){const o=t.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(a=>a!=="").map((a,s)=>s>2?Number.parseFloat(a):Number.parseInt(a,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(a=>a!=="").map((a,s)=>s>2?Number.parseFloat(a):Number.parseInt(a,10));if(o.length===4?this._alpha=Number.parseFloat(o[3])*100:o.length===3&&(this._alpha=100),o.length>=3){const{h:a,s,v:r}=Ns(o[0],o[1],o[2]);n(a,s,r)}}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 a,s,r;o.length===3?(a=Ln(o[0]+o[0]),s=Ln(o[1]+o[1]),r=Ln(o[2]+o[2])):(o.length===6||o.length===8)&&(a=Ln(o.slice(0,2)),s=Ln(o.slice(2,4)),r=Ln(o.slice(4,6))),o.length===8?this._alpha=Ln(o.slice(6))/255*100:(o.length===3||o.length===6)&&(this._alpha=100);const{h:u,s:i,v:c}=Ns(a,s,r);n(u,i,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:a,format:s}=this;if(this.enableAlpha)switch(s){case"hsl":{const r=Es(t,n/100,o/100);this.value=`hsla(${t}, ${Math.round(r[1]*100)}%, ${Math.round(r[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=`${Ts(So(t,n,o))}${Go(a*255/100)}`;break}default:{const{r,g:u,b:i}=So(t,n,o);this.value=`rgba(${r}, ${u}, ${i}, ${this.get("alpha")/100})`}}else switch(s){case"hsl":{const r=Es(t,n/100,o/100);this.value=`hsl(${t}, ${Math.round(r[1]*100)}%, ${Math.round(r[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${t}, ${Math.round(n)}%, ${Math.round(o)}%)`;break}case"rgb":{const{r,g:u,b:i}=So(t,n,o);this.value=`rgb(${r}, ${u}, ${i})`;break}default:this.value=Ts(So(t,n,o))}}}const Om=se({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(e){const{currentColor:t}=Nm(),n=M(a(e.colors,e.color));ne(()=>t.value,s=>{const r=new To;r.fromString(s),n.value.forEach(u=>{u.selected=r.compare(u)})}),Nn(()=>{n.value=a(e.colors,e.color)});function o(s){e.color.fromString(e.colors[s])}function a(s,r){return s.map(u=>{const i=new To;return i.enableAlpha=!0,i.format="rgba",i.fromString(u),i.selected=i.value===r.value,i})}return{rgbaColors:n,handleSelect:o}}}),Am={class:"el-color-predefine"},Bm={class:"el-color-predefine__colors"},Dm=["onClick"];function Lm(e,t,n,o,a,s){return k(),L("div",Am,[x("div",Bm,[(k(!0),L(Pe,null,ot(e.rgbaColors,(r,u)=>(k(),L("div",{key:e.colors[u],class:S(["el-color-predefine__color-selector",{selected:r.selected,"is-alpha":r._alpha<100}]),onClick:i=>e.handleSelect(u)},[x("div",{style:$e({backgroundColor:r.value})},null,4)],10,Dm))),128))])])}var Rm=ue(Om,[["render",Lm],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);const _m=se({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=De(),n=M(0),o=M(0),a=M("hsl(0, 100%, 50%)"),s=$(()=>{const i=e.color.get("hue"),c=e.color.get("value");return{hue:i,value:c}});function r(){const i=e.color.get("saturation"),c=e.color.get("value"),f=t.vnode.el,{clientWidth:h,clientHeight:p}=f;o.value=i*h/100,n.value=(100-c)*p/100,a.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function u(i){const f=t.vnode.el.getBoundingClientRect(),{clientX:h,clientY:p}=da(i);let d=h-f.left,v=p-f.top;d=Math.max(0,d),d=Math.min(d,f.width),v=Math.max(0,v),v=Math.min(v,f.height),o.value=d,n.value=v,e.color.set({saturation:d/f.width*100,value:100-v/f.height*100})}return ne(()=>s.value,()=>{r()}),Re(()=>{Oo(t.vnode.el,{drag:i=>{u(i)},end:i=>{u(i)}}),r()}),{cursorTop:n,cursorLeft:o,background:a,colorValue:s,handleDrag:u,update:r}}}),Fm=x("div",{class:"el-color-svpanel__white"},null,-1),zm=x("div",{class:"el-color-svpanel__black"},null,-1),Vm=x("div",null,null,-1),Hm=[Vm];function Km(e,t,n,o,a,s){return k(),L("div",{class:"el-color-svpanel",style:$e({backgroundColor:e.background})},[Fm,zm,x("div",{class:"el-color-svpanel__cursor",style:$e({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},Hm,4)],4)}var Wm=ue(_m,[["render",Km],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]);const jm=se({name:"ElColorPicker",components:{ElButton:In,ElTooltip:wn,ElInput:Ht,ElIcon:ve,Close:Qt,ArrowDown:mo,SvPanel:Wm,HueSlider:Tm,AlphaSlider:Sm,Predefine:Rm},directives:{ClickOutside:uo},props:{modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:{type:String,validator:Cl},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",qe],setup(e,{emit:t}){const{t:n}=Je(),o=ae("color"),a=fe(fn,{}),s=fe(Ut,{}),{inputId:r,isLabeledByFormItem:u}=go(e,{formItemContext:s}),i=M(),c=M(),f=M(),h=M(null);let p=!0;const d=rt(new To({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue})),v=M(!1),m=M(!1),y=M(""),b=$(()=>!e.modelValue&&!m.value?"transparent":T(d,e.showAlpha)),C=wt(),g=$(()=>!!(e.disabled||a.disabled)),w=$(()=>!e.modelValue&&!m.value?"":d.value),P=$(()=>u.value?void 0:e.label||n("el.colorpicker.defaultLabel")),I=$(()=>u.value?s.labelId:void 0);ne(()=>e.modelValue,_=>{_?_&&_!==d.value&&(p=!1,d.fromString(_)):m.value=!1}),ne(()=>w.value,_=>{y.value=_,p&&t("active-change",_),p=!0}),ne(()=>d.value,()=>{!e.modelValue&&!m.value&&(m.value=!0)});function T(_,D){if(!(_ instanceof To))throw new TypeError("color should be instance of _color Class");const{r:A,g:N,b:R}=_.toRgb();return D?`rgba(${A}, ${N}, ${R}, ${_.get("alpha")/100})`:`rgb(${A}, ${N}, ${R})`}function B(_){v.value=_}const O=hn(B,100);function V(){O(!1),W()}function W(){ke(()=>{e.modelValue?d.fromString(e.modelValue):(d.value="",ke(()=>{m.value=!1}))})}function Z(){g.value||O(!v.value)}function F(){d.fromString(y.value)}function K(){var _;const D=d.value;t(qe,D),t("change",D),e.validateEvent&&((_=s.validate)==null||_.call(s,"change").catch(A=>void 0)),O(!1),ke(()=>{const A=new To({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue});d.compare(A)||W()})}function Y(){var _;O(!1),t(qe,null),t("change",null),e.modelValue!==null&&e.validateEvent&&((_=s.validate)==null||_.call(s,"change").catch(D=>void 0)),W()}return Re(()=>{e.modelValue&&(y.value=w.value)}),ne(()=>v.value,()=>{ke(()=>{var _,D,A;(_=i.value)==null||_.update(),(D=c.value)==null||D.update(),(A=f.value)==null||A.update()})}),_e(pi,{currentColor:w}),{color:d,colorDisabled:g,colorSize:C,displayedColor:b,showPanelColor:m,showPicker:v,customInput:y,buttonId:r,buttonAriaLabel:P,buttonAriaLabelledby:I,handleConfirm:F,hide:V,handleTrigger:Z,clear:Y,confirmValue:K,t:n,ns:o,hue:i,svPanel:c,alpha:f,popper:h}}}),xm=["id","aria-label","aria-labelledby","aria-description","tabindex"];function qm(e,t,n,o,a,s){const r=Ee("hue-slider"),u=Ee("sv-panel"),i=Ee("alpha-slider"),c=Ee("predefine"),f=Ee("el-input"),h=Ee("el-button"),p=Ee("arrow-down"),d=Ee("el-icon"),v=Ee("close"),m=Ee("el-tooltip"),y=hl("click-outside");return k(),X(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:H(()=>[Ie((k(),L("div",null,[x("div",{class:S(e.ns.be("dropdown","main-wrapper"))},[j(r,{ref:"hue",class:"hue-slider",color:e.color,vertical:""},null,8,["color"]),j(u,{ref:"svPanel",color:e.color},null,8,["color"])],2),e.showAlpha?(k(),X(i,{key:0,ref:"alpha",color:e.color},null,8,["color"])):q("v-if",!0),e.predefine?(k(),X(c,{key:1,ref:"predefine",color:e.color,colors:e.predefine},null,8,["color","colors"])):q("v-if",!0),x("div",{class:S(e.ns.be("dropdown","btns"))},[x("span",{class:S(e.ns.be("dropdown","value"))},[j(f,{modelValue:e.customInput,"onUpdate:modelValue":t[0]||(t[0]=b=>e.customInput=b),"validate-event":!1,size:"small",onKeyup:xe(e.handleConfirm,["enter"]),onBlur:e.handleConfirm},null,8,["modelValue","onKeyup","onBlur"])],2),j(h,{class:S(e.ns.be("dropdown","link-btn")),text:"",size:"small",onClick:e.clear},{default:H(()=>[Ge(ce(e.t("el.colorpicker.clear")),1)]),_:1},8,["class","onClick"]),j(h,{plain:"",size:"small",class:S(e.ns.be("dropdown","btn")),onClick:e.confirmValue},{default:H(()=>[Ge(ce(e.t("el.colorpicker.confirm")),1)]),_:1},8,["class","onClick"])],2)])),[[y,e.hide]])]),default:H(()=>[x("div",{id:e.buttonId,class:S([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]=xe((...b)=>e.handleTrigger&&e.handleTrigger(...b),["enter"]))},[e.colorDisabled?(k(),L("div",{key:0,class:S(e.ns.be("picker","mask"))},null,2)):q("v-if",!0),x("div",{class:S(e.ns.be("picker","trigger")),onClick:t[1]||(t[1]=(...b)=>e.handleTrigger&&e.handleTrigger(...b))},[x("span",{class:S([e.ns.be("picker","color"),e.ns.is("alpha",e.showAlpha)])},[x("span",{class:S(e.ns.be("picker","color-inner")),style:$e({backgroundColor:e.displayedColor})},[Ie(j(d,{class:S([e.ns.be("picker","icon"),e.ns.is("icon-arrow-down")])},{default:H(()=>[j(p)]),_:1},8,["class"]),[[Ye,e.modelValue||e.showPanelColor]]),!e.modelValue&&!e.showPanelColor?(k(),X(d,{key:0,class:S([e.ns.be("picker","empty"),e.ns.is("icon-close")])},{default:H(()=>[j(v)]),_:1},8,["class"])):q("v-if",!0)],6)],2)],2)],42,xm)]),_:1},8,["visible","popper-class"])}var Xo=ue(jm,[["render",qm],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/index.vue"]]);Xo.install=e=>{e.component(Xo.name,Xo)};const Um=Xo,SS=Um,Yl={},Ym=pe({a11y:{type:Boolean,default:!0},locale:{type:te(Object)},size:Cn,button:{type:te(Object)},experimentalFeatures:{type:te(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:te(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),Gm=se({name:"ElConfigProvider",props:Ym,setup(e,{slots:t}){ne(()=>e.message,o=>{Object.assign(Yl,o!=null?o:{})},{immediate:!0,deep:!0});const n=$c(e);return()=>Q(t,"default",{config:n==null?void 0:n.value})}}),ES=je(Gm),Xm=pe({type:{type:te(String),default:"date"}}),Jm=["date","dates","year","month","week","range"],Na=pe({disabledDate:{type:te(Function)},date:{type:te(Object),required:!0},minDate:{type:te(Object)},maxDate:{type:te(Object)},parsedValue:{type:te([Object,Array])},rangeState:{type:te(Object),default:()=>({endDate:null,selecting:!1})}}),vi=pe({type:{type:te(String),required:!0,values:yc}}),mi=pe({unlinkPanels:Boolean,parsedValue:{type:te(Array)}}),hi=e=>({type:String,values:Jm,default:e}),Zm=pe({...vi,parsedValue:{type:te([Object,Array])},visible:{type:Boolean},format:{type:String,default:""}}),Qm=pe({...Na,cellClassName:{type:te(Function)},showWeekNumber:Boolean,selectionMode:hi("date")}),Gl=e=>{if(!at(e))return!1;const[t,n]=e;return Me.isDayjs(t)&&Me.isDayjs(n)&&t.isSameOrBefore(n)},gi=(e,{lang:t,unit:n,unlinkPanels:o})=>{let a;if(at(e)){let[s,r]=e.map(u=>Me(u).locale(t));return o||(r=s.add(1,n)),[s,r]}else e?a=Me(e):a=Me();return a=a.locale(t),[a,a.add(1,n)]},eh=(e,t,{columnIndexOffset:n,startDate:o,nextEndDate:a,now:s,unit:r,relativeDateGetter:u,setCellMetadata:i,setRowMetadata:c})=>{for(let f=0;f<e.row;f++){const h=t[f];for(let p=0;p<e.column;p++){let d=h[p+n];d||(d={row:f,column:p,type:"normal",inRange:!1,start:!1,end:!1});const v=f*e.column+p,m=u(v);d.dayjs=m,d.date=m.toDate(),d.timestamp=m.valueOf(),d.type="normal",d.inRange=!!(o&&m.isSameOrAfter(o,r)&&a&&m.isSameOrBefore(a,r))||!!(o&&m.isSameOrBefore(o,r)&&a&&m.isSameOrAfter(a,r)),o!=null&&o.isSameOrAfter(a)?(d.start=!!a&&m.isSame(a,r),d.end=o&&m.isSame(o,r)):(d.start=!!o&&m.isSame(o,r),d.end=!!a&&m.isSame(a,r)),m.isSame(s,r)&&(d.type="today"),i==null||i(d,{rowIndex:f,columnIndex:p}),h[p+n]=d}c==null||c(h)}},th=pe({cell:{type:te(Object)}});var nh=se({name:"ElDatePickerCell",props:th,setup(e){const t=ae("date-table-cell"),{slots:n}=fe(ma);return()=>{const{cell:o}=e;if(n.default){const a=n.default(o).filter(s=>s.patchFlag!==-2&&s.type.toString()!=="Symbol(Comment)");if(a.length)return a}return j("div",{class:t.b()},[j("span",{class:t.e("text")},[o==null?void 0:o.text])])}}});const oh=["aria-label"],lh={key:0,scope:"col"},ah=["aria-label"],sh=["aria-current","aria-selected","tabindex"],rh=se({__name:"basic-date-table",props:Qm,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const o=e,a=ae("date-table"),{t:s,lang:r}=Je(),u=M(),i=M(),c=M(),f=M(),h=M([[],[],[],[],[],[]]),p=o.date.$locale().weekStart||7,d=o.date.locale("en").localeData().weekdaysShort().map(N=>N.toLowerCase()),v=$(()=>p>3?7-p:-p),m=$(()=>{const N=o.date.startOf("month");return N.subtract(N.day()||7,"day")}),y=$(()=>d.concat(d).slice(p,p+7)),b=$(()=>T.value.flat().some(N=>N.isCurrent)),C=$(()=>{const N=o.date.startOf("month"),R=N.day()||7,G=N.daysInMonth(),re=N.subtract(1,"month").daysInMonth();return{startOfMonthDay:R,dateCountOfMonth:G,dateCountOfLastMonth:re}}),g=$(()=>o.selectionMode==="dates"?zn(o.parsedValue):[]),w=(N,{count:R,rowIndex:G,columnIndex:re})=>{const{startOfMonthDay:de,dateCountOfMonth:ye,dateCountOfLastMonth:ge}=l(C),Te=l(v);if(G>=0&&G<=1){const J=de+Te<0?7+de+Te:de+Te;if(re+G*7>=J)return N.text=R,!0;N.text=ge-(J-re%7)+1+G*7,N.type="prev-month"}else return R<=ye?N.text=R:(N.text=R-ye,N.type="next-month"),!0;return!1},P=(N,{columnIndex:R,rowIndex:G},re)=>{const{disabledDate:de,cellClassName:ye}=o,ge=l(g),Te=w(N,{count:re,rowIndex:G,columnIndex:R}),J=N.dayjs.toDate();return N.selected=ge.find(me=>me.valueOf()===N.dayjs.valueOf()),N.isSelected=!!N.selected,N.isCurrent=V(N),N.disabled=de==null?void 0:de(J),N.customClass=ye==null?void 0:ye(J),Te},I=N=>{if(o.selectionMode==="week"){const[R,G]=o.showWeekNumber?[1,7]:[0,6],re=A(N[R+1]);N[R].inRange=re,N[R].start=re,N[G].inRange=re,N[G].end=re}},T=$(()=>{const{minDate:N,maxDate:R,rangeState:G,showWeekNumber:re}=o,de=v.value,ye=h.value,ge="day";let Te=1;if(re)for(let J=0;J<6;J++)ye[J][0]||(ye[J][0]={type:"week",text:m.value.add(J*7+1,ge).week()});return eh({row:6,column:7},ye,{startDate:N,columnIndexOffset:re?1:0,nextEndDate:G.endDate||R||G.selecting&&N||null,now:Me().locale(l(r)).startOf(ge),unit:ge,relativeDateGetter:J=>m.value.add(J-de,ge),setCellMetadata:(...J)=>{P(...J,Te)&&(Te+=1)},setRowMetadata:I}),ye});ne(()=>o.date,async()=>{var N,R;(N=u.value)!=null&&N.contains(document.activeElement)&&(await ke(),(R=i.value)==null||R.focus())});const B=async()=>{var N;(N=i.value)==null||N.focus()},O=(N="")=>["normal","today"].includes(N),V=N=>o.selectionMode==="date"&&O(N.type)&&W(N,o.parsedValue),W=(N,R)=>R?Me(R).locale(r.value).isSame(o.date.date(Number(N.text)),"day"):!1,Z=N=>{const R=[];return O(N.type)&&!N.disabled?(R.push("available"),N.type==="today"&&R.push("today")):R.push(N.type),V(N)&&R.push("current"),N.inRange&&(O(N.type)||o.selectionMode==="week")&&(R.push("in-range"),N.start&&R.push("start-date"),N.end&&R.push("end-date")),N.disabled&&R.push("disabled"),N.selected&&R.push("selected"),N.customClass&&R.push(N.customClass),R.join(" ")},F=(N,R)=>{const G=N*7+(R-(o.showWeekNumber?1:0))-v.value;return m.value.add(G,"day")},K=N=>{var R;if(!o.rangeState.selecting)return;let G=N.target;if(G.tagName==="SPAN"&&(G=(R=G.parentNode)==null?void 0:R.parentNode),G.tagName==="DIV"&&(G=G.parentNode),G.tagName!=="TD")return;const re=G.parentNode.rowIndex-1,de=G.cellIndex;T.value[re][de].disabled||(re!==c.value||de!==f.value)&&(c.value=re,f.value=de,n("changerange",{selecting:!0,endDate:F(re,de)}))},Y=N=>!b.value&&(N==null?void 0:N.text)===1&&N.type==="normal"||N.isCurrent,_=N=>{!b.value&&o.selectionMode==="date"&&D(N,!0)},D=(N,R=!1)=>{const G=N.target.closest("td");if(!G||G.tagName!=="TD")return;const re=G.parentNode.rowIndex-1,de=G.cellIndex,ye=T.value[re][de];if(ye.disabled||ye.type==="week")return;const ge=F(re,de);if(o.selectionMode==="range")!o.rangeState.selecting||!o.minDate?(n("pick",{minDate:ge,maxDate:null}),n("select",!0)):(ge>=o.minDate?n("pick",{minDate:o.minDate,maxDate:ge}):n("pick",{minDate:ge,maxDate:o.minDate}),n("select",!1));else if(o.selectionMode==="date")n("pick",ge,R);else if(o.selectionMode==="week"){const Te=ge.week(),J=`${ge.year()}w${Te}`;n("pick",{year:ge.year(),week:Te,value:J,date:ge.startOf("week")})}else if(o.selectionMode==="dates"){const Te=ye.selected?zn(o.parsedValue).filter(J=>(J==null?void 0:J.valueOf())!==ge.valueOf()):zn(o.parsedValue).concat([ge]);n("pick",Te)}},A=N=>{if(o.selectionMode!=="week")return!1;let R=o.date.startOf("day");if(N.type==="prev-month"&&(R=R.subtract(1,"month")),N.type==="next-month"&&(R=R.add(1,"month")),R=R.date(Number.parseInt(N.text,10)),o.parsedValue&&!Array.isArray(o.parsedValue)){const G=(o.parsedValue.day()-p+7)%7-1;return o.parsedValue.subtract(G,"day").isSame(R,"day")}return!1};return t({focus:B}),(N,R)=>(k(),L("table",{role:"grid","aria-label":l(s)("el.datepicker.dateTablePrompt"),cellspacing:"0",cellpadding:"0",class:S([l(a).b(),{"is-week-mode":N.selectionMode==="week"}]),onClick:D,onMousemove:K},[x("tbody",{ref_key:"tbodyRef",ref:u},[x("tr",null,[N.showWeekNumber?(k(),L("th",lh,ce(l(s)("el.datepicker.week")),1)):q("v-if",!0),(k(!0),L(Pe,null,ot(l(y),(G,re)=>(k(),L("th",{key:re,scope:"col","aria-label":l(s)("el.datepicker.weeksFull."+G)},ce(l(s)("el.datepicker.weeks."+G)),9,ah))),128))]),(k(!0),L(Pe,null,ot(l(T),(G,re)=>(k(),L("tr",{key:re,class:S([l(a).e("row"),{current:A(G[1])}])},[(k(!0),L(Pe,null,ot(G,(de,ye)=>(k(),L("td",{key:`${re}.${ye}`,ref_for:!0,ref:ge=>{Y(de)&&(i.value=ge)},class:S(Z(de)),"aria-current":de.isCurrent?"date":void 0,"aria-selected":de.isCurrent,tabindex:Y(de)?0:-1,onFocus:_},[j(l(nh),{cell:de},null,8,["cell"])],42,sh))),128))],2))),128))],512)],42,oh))}});var Xl=ue(rh,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-date-table.vue"]]);const ih=pe({...Na,selectionMode:hi("month")}),uh=["aria-label"],ch=["aria-selected","aria-label","tabindex","onKeydown"],dh={class:"cell"},fh=se({__name:"basic-month-table",props:ih,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const o=e,a=(w,P,I)=>{const T=Me().locale(I).startOf("month").month(P).year(w),B=T.daysInMonth();return Gr(B).map(O=>T.add(O,"day").toDate())},s=ae("month-table"),{t:r,lang:u}=Je(),i=M(),c=M(),f=M(o.date.locale("en").localeData().monthsShort().map(w=>w.toLowerCase())),h=M([[],[],[]]),p=M(),d=M(),v=$(()=>{var w,P;const I=h.value,T=Me().locale(u.value).startOf("month");for(let B=0;B<3;B++){const O=I[B];for(let V=0;V<4;V++){const W=O[V]||(O[V]={row:B,column:V,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});W.type="normal";const Z=B*4+V,F=o.date.startOf("year").month(Z),K=o.rangeState.endDate||o.maxDate||o.rangeState.selecting&&o.minDate||null;W.inRange=!!(o.minDate&&F.isSameOrAfter(o.minDate,"month")&&K&&F.isSameOrBefore(K,"month"))||!!(o.minDate&&F.isSameOrBefore(o.minDate,"month")&&K&&F.isSameOrAfter(K,"month")),(w=o.minDate)!=null&&w.isSameOrAfter(K)?(W.start=!!(K&&F.isSame(K,"month")),W.end=o.minDate&&F.isSame(o.minDate,"month")):(W.start=!!(o.minDate&&F.isSame(o.minDate,"month")),W.end=!!(K&&F.isSame(K,"month"))),T.isSame(F)&&(W.type="today"),W.text=Z,W.disabled=((P=o.disabledDate)==null?void 0:P.call(o,F.toDate()))||!1}}return I}),m=()=>{var w;(w=c.value)==null||w.focus()},y=w=>{const P={},I=o.date.year(),T=new Date,B=w.text;return P.disabled=o.disabledDate?a(I,B,u.value).every(o.disabledDate):!1,P.current=zn(o.parsedValue).findIndex(O=>Me.isDayjs(O)&&O.year()===I&&O.month()===B)>=0,P.today=T.getFullYear()===I&&T.getMonth()===B,w.inRange&&(P["in-range"]=!0,w.start&&(P["start-date"]=!0),w.end&&(P["end-date"]=!0)),P},b=w=>{const P=o.date.year(),I=w.text;return zn(o.date).findIndex(T=>T.year()===P&&T.month()===I)>=0},C=w=>{var P;if(!o.rangeState.selecting)return;let I=w.target;if(I.tagName==="A"&&(I=(P=I.parentNode)==null?void 0:P.parentNode),I.tagName==="DIV"&&(I=I.parentNode),I.tagName!=="TD")return;const T=I.parentNode.rowIndex,B=I.cellIndex;v.value[T][B].disabled||(T!==p.value||B!==d.value)&&(p.value=T,d.value=B,n("changerange",{selecting:!0,endDate:o.date.startOf("year").month(T*4+B)}))},g=w=>{var P;const I=(P=w.target)==null?void 0:P.closest("td");if((I==null?void 0:I.tagName)!=="TD"||mn(I,"disabled"))return;const T=I.cellIndex,O=I.parentNode.rowIndex*4+T,V=o.date.startOf("year").month(O);o.selectionMode==="range"?o.rangeState.selecting?(o.minDate&&V>=o.minDate?n("pick",{minDate:o.minDate,maxDate:V}):n("pick",{minDate:V,maxDate:o.minDate}),n("select",!1)):(n("pick",{minDate:V,maxDate:null}),n("select",!0)):n("pick",O)};return ne(()=>o.date,async()=>{var w,P;(w=i.value)!=null&&w.contains(document.activeElement)&&(await ke(),(P=c.value)==null||P.focus())}),t({focus:m}),(w,P)=>(k(),L("table",{role:"grid","aria-label":l(r)("el.datepicker.monthTablePrompt"),class:S(l(s).b()),onClick:g,onMousemove:C},[x("tbody",{ref_key:"tbodyRef",ref:i},[(k(!0),L(Pe,null,ot(l(v),(I,T)=>(k(),L("tr",{key:T},[(k(!0),L(Pe,null,ot(I,(B,O)=>(k(),L("td",{key:O,ref_for:!0,ref:V=>b(B)&&(c.value=V),class:S(y(B)),"aria-selected":`${b(B)}`,"aria-label":l(r)(`el.datepicker.month${+B.text+1}`),tabindex:b(B)?0:-1,onKeydown:[xe(Oe(g,["prevent","stop"]),["space"]),xe(Oe(g,["prevent","stop"]),["enter"])]},[x("div",null,[x("span",dh,ce(l(r)("el.datepicker.months."+f.value[B.text])),1)])],42,ch))),128))]))),128))],512)],42,uh))}});var Jl=ue(fh,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-month-table.vue"]]);const{date:ph,disabledDate:vh,parsedValue:mh}=Na,hh=pe({date:ph,disabledDate:vh,parsedValue:mh}),gh=["aria-label"],bh=["aria-selected","tabindex","onKeydown"],yh={class:"cell"},Ch={key:1},wh=se({__name:"basic-year-table",props:hh,emits:["pick"],setup(e,{expose:t,emit:n}){const o=e,a=(m,y)=>{const b=Me(String(m)).locale(y).startOf("year"),g=b.endOf("year").dayOfYear();return Gr(g).map(w=>b.add(w,"day").toDate())},s=ae("year-table"),{t:r,lang:u}=Je(),i=M(),c=M(),f=$(()=>Math.floor(o.date.year()/10)*10),h=()=>{var m;(m=c.value)==null||m.focus()},p=m=>{const y={},b=Me().locale(u.value);return y.disabled=o.disabledDate?a(m,u.value).every(o.disabledDate):!1,y.current=zn(o.parsedValue).findIndex(C=>C.year()===m)>=0,y.today=b.year()===m,y},d=m=>m===f.value&&o.date.year()<f.value&&o.date.year()>f.value+9||zn(o.date).findIndex(y=>y.year()===m)>=0,v=m=>{const b=m.target.closest("td");if(b){if(mn(b,"disabled"))return;const C=b.textContent||b.innerText;n("pick",Number(C))}};return ne(()=>o.date,async()=>{var m,y;(m=i.value)!=null&&m.contains(document.activeElement)&&(await ke(),(y=c.value)==null||y.focus())}),t({focus:h}),(m,y)=>(k(),L("table",{role:"grid","aria-label":l(r)("el.datepicker.yearTablePrompt"),class:S(l(s).b()),onClick:v},[x("tbody",{ref_key:"tbodyRef",ref:i},[(k(),L(Pe,null,ot(3,(b,C)=>x("tr",{key:C},[(k(),L(Pe,null,ot(4,(g,w)=>(k(),L(Pe,{key:C+"_"+w},[C*4+w<10?(k(),L("td",{key:0,ref_for:!0,ref:P=>d(l(f)+C*4+w)&&(c.value=P),class:S(["available",p(l(f)+C*4+w)]),"aria-selected":`${d(l(f)+C*4+w)}`,tabindex:d(l(f)+C*4+w)?0:-1,onKeydown:[xe(Oe(v,["prevent","stop"]),["space"]),xe(Oe(v,["prevent","stop"]),["enter"])]},[x("span",yh,ce(l(f)+C*4+w),1)],42,bh)):(k(),L("td",Ch))],64))),64))])),64))],512)],10,gh))}});var kh=ue(wh,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-year-table.vue"]]);const Sh=["onClick"],Eh=["aria-label"],$h=["aria-label"],Th=["aria-label"],Nh=["aria-label"],Ph=se({__name:"panel-date-pick",props:Zm,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const n=e,o=(U,oe,E)=>!0,a=ae("picker-panel"),s=ae("date-picker"),r=Bo(),u=tn(),{t:i,lang:c}=Je(),f=fe("EP_PICKER_BASE"),h=fe(El),{shortcuts:p,disabledDate:d,cellClassName:v,defaultTime:m,arrowControl:y}=f.props,b=ct(f.props,"defaultValue"),C=M(),g=M(Me().locale(c.value)),w=$(()=>Me(m).locale(c.value)),P=$(()=>g.value.month()),I=$(()=>g.value.year()),T=M([]),B=M(null),O=M(null),V=U=>T.value.length>0?o(U,T.value,n.format||"HH:mm:ss"):!0,W=U=>m&&!Xe.value?w.value.year(U.year()).month(U.month()).date(U.date()):ge.value?U.millisecond(0):U.startOf("day"),Z=(U,...oe)=>{if(!U)t("pick",U,...oe);else if(at(U)){const E=U.map(W);t("pick",E,...oe)}else t("pick",W(U),...oe);B.value=null,O.value=null},F=(U,oe)=>{if(N.value==="date"){U=U;let E=n.parsedValue?n.parsedValue.year(U.year()).month(U.month()).date(U.date()):U;V(E)||(E=T.value[0][0].year(U.year()).month(U.month()).date(U.date())),g.value=E,Z(E,ge.value||oe)}else N.value==="week"?Z(U.date):N.value==="dates"&&Z(U,!0)},K=U=>{const oe=U?"add":"subtract";g.value=g.value[oe](1,"month"),Qe("month")},Y=U=>{const oe=g.value,E=U?"add":"subtract";g.value=_.value==="year"?oe[E](10,"year"):oe[E](1,"year"),Qe("year")},_=M("date"),D=$(()=>{const U=i("el.datepicker.year");if(_.value==="year"){const oe=Math.floor(I.value/10)*10;return U?`${oe} ${U} - ${oe+9} ${U}`:`${oe} - ${oe+9}`}return`${I.value} ${U}`}),A=U=>{const oe=Pt(U.value)?U.value():U.value;if(oe){Z(Me(oe).locale(c.value));return}U.onClick&&U.onClick({attrs:r,slots:u,emit:t})},N=$(()=>{const{type:U}=n;return["week","month","year","dates"].includes(U)?U:"date"}),R=$(()=>N.value==="date"?_.value:N.value),G=$(()=>!!p.length),re=async U=>{g.value=g.value.startOf("month").month(U),N.value==="month"?Z(g.value,!1):(_.value="date",["month","year","date","week"].includes(N.value)&&(Z(g.value,!0),await ke(),le())),Qe("month")},de=async U=>{N.value==="year"?(g.value=g.value.startOf("year").year(U),Z(g.value,!1)):(g.value=g.value.year(U),_.value="month",["month","year","date","week"].includes(N.value)&&(Z(g.value,!0),await ke(),le())),Qe("year")},ye=async U=>{_.value=U,await ke(),le()},ge=$(()=>n.type==="datetime"||n.type==="datetimerange"),Te=$(()=>ge.value||N.value==="dates"),J=()=>{if(N.value==="dates")Z(n.parsedValue);else{let U=n.parsedValue;if(!U){const oe=Me(m).locale(c.value),E=bt();U=oe.year(E.year()).month(E.month()).date(E.date())}g.value=U,Z(U)}},me=()=>{const oe=Me().locale(c.value).toDate();(!d||!d(oe))&&V(oe)&&(g.value=Me().locale(c.value),Z(g.value))},Ne=$(()=>Jr(n.format)),Le=$(()=>Xr(n.format)),Xe=$(()=>{if(O.value)return O.value;if(!(!n.parsedValue&&!b.value))return(n.parsedValue||g.value).format(Ne.value)}),Ze=$(()=>{if(B.value)return B.value;if(!(!n.parsedValue&&!b.value))return(n.parsedValue||g.value).format(Le.value)}),Ue=M(!1),ht=()=>{Ue.value=!0},Ae=()=>{Ue.value=!1},it=U=>({hour:U.hour(),minute:U.minute(),second:U.second(),year:U.year(),month:U.month(),date:U.date()}),lt=(U,oe,E)=>{const{hour:z,minute:ee,second:he}=it(U),ie=n.parsedValue?n.parsedValue.hour(z).minute(ee).second(he):U;g.value=ie,Z(g.value,!0),E||(Ue.value=oe)},ft=U=>{const oe=Me(U,Ne.value).locale(c.value);if(oe.isValid()&&V(oe)){const{year:E,month:z,date:ee}=it(g.value);g.value=oe.year(E).month(z).date(ee),O.value=null,Ue.value=!1,Z(g.value,!0)}},gt=U=>{const oe=Me(U,Le.value).locale(c.value);if(oe.isValid()){if(d&&d(oe.toDate()))return;const{hour:E,minute:z,second:ee}=it(g.value);g.value=oe.hour(E).minute(z).second(ee),B.value=null,Z(g.value,!0)}},et=U=>Me.isDayjs(U)&&U.isValid()&&(d?!d(U.toDate()):!0),st=U=>N.value==="dates"?U.map(oe=>oe.format(n.format)):U.format(n.format),Et=U=>Me(U,n.format).locale(c.value),bt=()=>{const U=Me(b.value).locale(c.value);if(!b.value){const oe=w.value;return Me().hour(oe.hour()).minute(oe.minute()).second(oe.second()).locale(c.value)}return U},le=async()=>{var U;["week","month","year","date"].includes(N.value)&&((U=C.value)==null||U.focus(),N.value==="week"&&Fe(be.down))},Be=U=>{const{code:oe}=U;[be.up,be.down,be.left,be.right,be.home,be.end,be.pageUp,be.pageDown].includes(oe)&&(Fe(oe),U.stopPropagation(),U.preventDefault()),[be.enter,be.space].includes(oe)&&B.value===null&&O.value===null&&(U.preventDefault(),Z(g.value,!1))},Fe=U=>{var oe;const{up:E,down:z,left:ee,right:he,home:ie,end:Ce,pageUp:we,pageDown:dt}=be,ut={year:{[E]:-4,[z]:4,[ee]:-1,[he]:1,offset:(ze,jt)=>ze.setFullYear(ze.getFullYear()+jt)},month:{[E]:-4,[z]:4,[ee]:-1,[he]:1,offset:(ze,jt)=>ze.setMonth(ze.getMonth()+jt)},week:{[E]:-1,[z]:1,[ee]:-1,[he]:1,offset:(ze,jt)=>ze.setDate(ze.getDate()+jt*7)},date:{[E]:-7,[z]:7,[ee]:-1,[he]:1,[ie]:ze=>-ze.getDay(),[Ce]:ze=>-ze.getDay()+6,[we]:ze=>-new Date(ze.getFullYear(),ze.getMonth(),0).getDate(),[dt]:ze=>new Date(ze.getFullYear(),ze.getMonth()+1,0).getDate(),offset:(ze,jt)=>ze.setDate(ze.getDate()+jt)}},nt=g.value.toDate();for(;Math.abs(g.value.diff(nt,"year",!0))<1;){const ze=ut[R.value];if(!ze)return;if(ze.offset(nt,Pt(ze[U])?ze[U](nt):(oe=ze[U])!=null?oe:0),d&&d(nt))break;const jt=Me(nt).locale(c.value);g.value=jt,t("pick",jt,!0);break}},Qe=U=>{t("panel-change",g.value.toDate(),U,_.value)};return ne(()=>N.value,U=>{if(["month","year"].includes(U)){_.value=U;return}_.value="date"},{immediate:!0}),ne(()=>_.value,()=>{h==null||h.updatePopper()}),ne(()=>b.value,U=>{U&&(g.value=bt())},{immediate:!0}),ne(()=>n.parsedValue,U=>{if(U){if(N.value==="dates"||Array.isArray(U))return;g.value=U}else g.value=bt()},{immediate:!0}),t("set-picker-option",["isValidValue",et]),t("set-picker-option",["formatToString",st]),t("set-picker-option",["parseUserInput",Et]),t("set-picker-option",["handleFocusPicker",le]),(U,oe)=>(k(),L("div",{class:S([l(a).b(),l(s).b(),{"has-sidebar":U.$slots.sidebar||l(G),"has-time":l(ge)}])},[x("div",{class:S(l(a).e("body-wrapper"))},[Q(U.$slots,"sidebar",{class:S(l(a).e("sidebar"))}),l(G)?(k(),L("div",{key:0,class:S(l(a).e("sidebar"))},[(k(!0),L(Pe,null,ot(l(p),(E,z)=>(k(),L("button",{key:z,type:"button",class:S(l(a).e("shortcut")),onClick:ee=>A(E)},ce(E.text),11,Sh))),128))],2)):q("v-if",!0),x("div",{class:S(l(a).e("body"))},[l(ge)?(k(),L("div",{key:0,class:S(l(s).e("time-header"))},[x("span",{class:S(l(s).e("editor-wrap"))},[j(l(Ht),{placeholder:l(i)("el.datepicker.selectDate"),"model-value":l(Ze),size:"small",onInput:oe[0]||(oe[0]=E=>B.value=E),onChange:gt},null,8,["placeholder","model-value"])],2),Ie((k(),L("span",{class:S(l(s).e("editor-wrap"))},[j(l(Ht),{placeholder:l(i)("el.datepicker.selectTime"),"model-value":l(Xe),size:"small",onFocus:ht,onInput:oe[1]||(oe[1]=E=>O.value=E),onChange:ft},null,8,["placeholder","model-value"]),j(l(Ul),{visible:Ue.value,format:l(Ne),"time-arrow-control":l(y),"parsed-value":g.value,onPick:lt},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[l(uo),Ae]])],2)):q("v-if",!0),Ie(x("div",{class:S([l(s).e("header"),(_.value==="year"||_.value==="month")&&l(s).e("header--bordered")])},[x("span",{class:S(l(s).e("prev-btn"))},[x("button",{type:"button","aria-label":l(i)("el.datepicker.prevYear"),class:S(["d-arrow-left",l(a).e("icon-btn")]),onClick:oe[2]||(oe[2]=E=>Y(!1))},[j(l(ve),null,{default:H(()=>[j(l(eo))]),_:1})],10,Eh),Ie(x("button",{type:"button","aria-label":l(i)("el.datepicker.prevMonth"),class:S([l(a).e("icon-btn"),"arrow-left"]),onClick:oe[3]||(oe[3]=E=>K(!1))},[j(l(ve),null,{default:H(()=>[j(l(to))]),_:1})],10,$h),[[Ye,_.value==="date"]])],2),x("span",{role:"button",class:S(l(s).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:oe[4]||(oe[4]=xe(E=>ye("year"),["enter"])),onClick:oe[5]||(oe[5]=E=>ye("year"))},ce(l(D)),35),Ie(x("span",{role:"button","aria-live":"polite",tabindex:"0",class:S([l(s).e("header-label"),{active:_.value==="month"}]),onKeydown:oe[6]||(oe[6]=xe(E=>ye("month"),["enter"])),onClick:oe[7]||(oe[7]=E=>ye("month"))},ce(l(i)(`el.datepicker.month${l(P)+1}`)),35),[[Ye,_.value==="date"]]),x("span",{class:S(l(s).e("next-btn"))},[Ie(x("button",{type:"button","aria-label":l(i)("el.datepicker.nextMonth"),class:S([l(a).e("icon-btn"),"arrow-right"]),onClick:oe[8]||(oe[8]=E=>K(!0))},[j(l(ve),null,{default:H(()=>[j(l(sn))]),_:1})],10,Th),[[Ye,_.value==="date"]]),x("button",{type:"button","aria-label":l(i)("el.datepicker.nextYear"),class:S([l(a).e("icon-btn"),"d-arrow-right"]),onClick:oe[9]||(oe[9]=E=>Y(!0))},[j(l(ve),null,{default:H(()=>[j(l(no))]),_:1})],10,Nh)],2)],2),[[Ye,_.value!=="time"]]),x("div",{class:S(l(a).e("content")),onKeydown:Be},[_.value==="date"?(k(),X(Xl,{key:0,ref_key:"currentViewRef",ref:C,"selection-mode":l(N),date:g.value,"parsed-value":U.parsedValue,"disabled-date":l(d),"cell-class-name":l(v),onPick:F},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):q("v-if",!0),_.value==="year"?(k(),X(kh,{key:1,ref_key:"currentViewRef",ref:C,date:g.value,"disabled-date":l(d),"parsed-value":U.parsedValue,onPick:de},null,8,["date","disabled-date","parsed-value"])):q("v-if",!0),_.value==="month"?(k(),X(Jl,{key:2,ref_key:"currentViewRef",ref:C,date:g.value,"parsed-value":U.parsedValue,"disabled-date":l(d),onPick:re},null,8,["date","parsed-value","disabled-date"])):q("v-if",!0)],34)],2)],2),Ie(x("div",{class:S(l(a).e("footer"))},[Ie(j(l(In),{text:"",size:"small",class:S(l(a).e("link-btn")),onClick:me},{default:H(()=>[Ge(ce(l(i)("el.datepicker.now")),1)]),_:1},8,["class"]),[[Ye,l(N)!=="dates"]]),j(l(In),{plain:"",size:"small",class:S(l(a).e("link-btn")),onClick:J},{default:H(()=>[Ge(ce(l(i)("el.datepicker.confirm")),1)]),_:1},8,["class"])],2),[[Ye,l(Te)&&_.value==="date"]])],2))}});var Ih=ue(Ph,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-pick.vue"]]);const Mh=pe({...vi,...mi}),Oh=e=>{const{emit:t}=De(),n=Bo(),o=tn();return s=>{const r=Pt(s.value)?s.value():s.value;if(r){t("pick",[Me(r[0]).locale(e.value),Me(r[1]).locale(e.value)]);return}s.onClick&&s.onClick({attrs:n,slots:o,emit:t})}},bi=(e,{defaultValue:t,leftDate:n,rightDate:o,unit:a,onParsedValueChanged:s})=>{const{emit:r}=De(),{pickerNs:u}=fe(ma),i=ae("date-range-picker"),{t:c,lang:f}=Je(),h=Oh(f),p=M(),d=M(),v=M({endDate:null,selecting:!1}),m=g=>{v.value=g},y=(g=!1)=>{const w=l(p),P=l(d);Gl([w,P])&&r("pick",[w,P],g)},b=g=>{v.value.selecting=g,g||(v.value.endDate=null)},C=()=>{const[g,w]=gi(l(t),{lang:l(f),unit:a,unlinkPanels:e.unlinkPanels});p.value=void 0,d.value=void 0,n.value=g,o.value=w};return ne(t,g=>{g&&C()},{immediate:!0}),ne(()=>e.parsedValue,g=>{if(at(g)&&g.length===2){const[w,P]=g;p.value=w,n.value=w,d.value=P,s(l(p),l(d))}else C()},{immediate:!0}),{minDate:p,maxDate:d,rangeState:v,lang:f,ppNs:u,drpNs:i,handleChangeRange:m,handleRangeConfirm:y,handleShortcutClick:h,onSelect:b,t:c}},Ah=["onClick"],Bh=["disabled"],Dh=["disabled"],Lh=["disabled"],Rh=["disabled"],_h=se({__name:"panel-date-range",props:Mh,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(e,{emit:t}){const n=e,o="month",a=fe("EP_PICKER_BASE"),{disabledDate:s,cellClassName:r,format:u,defaultTime:i,arrowControl:c,clearable:f}=a.props,h=ct(a.props,"shortcuts"),p=ct(a.props,"defaultValue"),{lang:d}=Je(),v=M(Me().locale(d.value)),m=M(Me().locale(d.value).add(1,o)),{minDate:y,maxDate:b,rangeState:C,ppNs:g,drpNs:w,handleChangeRange:P,handleRangeConfirm:I,handleShortcutClick:T,onSelect:B,t:O}=bi(n,{defaultValue:p,leftDate:v,rightDate:m,unit:o,onParsedValueChanged:he}),V=M({min:null,max:null}),W=M({min:null,max:null}),Z=$(()=>`${v.value.year()} ${O("el.datepicker.year")} ${O(`el.datepicker.month${v.value.month()+1}`)}`),F=$(()=>`${m.value.year()} ${O("el.datepicker.year")} ${O(`el.datepicker.month${m.value.month()+1}`)}`),K=$(()=>v.value.year()),Y=$(()=>v.value.month()),_=$(()=>m.value.year()),D=$(()=>m.value.month()),A=$(()=>!!h.value.length),N=$(()=>V.value.min!==null?V.value.min:y.value?y.value.format(ye.value):""),R=$(()=>V.value.max!==null?V.value.max:b.value||y.value?(b.value||y.value).format(ye.value):""),G=$(()=>W.value.min!==null?W.value.min:y.value?y.value.format(de.value):""),re=$(()=>W.value.max!==null?W.value.max:b.value||y.value?(b.value||y.value).format(de.value):""),de=$(()=>Jr(u)),ye=$(()=>Xr(u)),ge=()=>{v.value=v.value.subtract(1,"year"),n.unlinkPanels||(m.value=v.value.add(1,"month")),Ue("year")},Te=()=>{v.value=v.value.subtract(1,"month"),n.unlinkPanels||(m.value=v.value.add(1,"month")),Ue("month")},J=()=>{n.unlinkPanels?m.value=m.value.add(1,"year"):(v.value=v.value.add(1,"year"),m.value=v.value.add(1,"month")),Ue("year")},me=()=>{n.unlinkPanels?m.value=m.value.add(1,"month"):(v.value=v.value.add(1,"month"),m.value=v.value.add(1,"month")),Ue("month")},Ne=()=>{v.value=v.value.add(1,"year"),Ue("year")},Le=()=>{v.value=v.value.add(1,"month"),Ue("month")},Xe=()=>{m.value=m.value.subtract(1,"year"),Ue("year")},Ze=()=>{m.value=m.value.subtract(1,"month"),Ue("month")},Ue=ie=>{t("panel-change",[v.value.toDate(),m.value.toDate()],ie)},ht=$(()=>{const ie=(Y.value+1)%12,Ce=Y.value+1>=12?1:0;return n.unlinkPanels&&new Date(K.value+Ce,ie)<new Date(_.value,D.value)}),Ae=$(()=>n.unlinkPanels&&_.value*12+D.value-(K.value*12+Y.value+1)>=12),it=$(()=>!(y.value&&b.value&&!C.value.selecting&&Gl([y.value,b.value]))),lt=$(()=>n.type==="datetime"||n.type==="datetimerange"),ft=(ie,Ce)=>{if(!!ie)return i?Me(i[Ce]||i).locale(d.value).year(ie.year()).month(ie.month()).date(ie.date()):ie},gt=(ie,Ce=!0)=>{const we=ie.minDate,dt=ie.maxDate,ut=ft(we,0),nt=ft(dt,1);b.value===nt&&y.value===ut||(t("calendar-change",[we.toDate(),dt&&dt.toDate()]),b.value=nt,y.value=ut,!(!Ce||lt.value)&&I())},et=M(!1),st=M(!1),Et=()=>{et.value=!1},bt=()=>{st.value=!1},le=(ie,Ce)=>{V.value[Ce]=ie;const we=Me(ie,ye.value).locale(d.value);if(we.isValid()){if(s&&s(we.toDate()))return;Ce==="min"?(v.value=we,y.value=(y.value||v.value).year(we.year()).month(we.month()).date(we.date()),n.unlinkPanels||(m.value=we.add(1,"month"),b.value=y.value.add(1,"month"))):(m.value=we,b.value=(b.value||m.value).year(we.year()).month(we.month()).date(we.date()),n.unlinkPanels||(v.value=we.subtract(1,"month"),y.value=b.value.subtract(1,"month")))}},Be=(ie,Ce)=>{V.value[Ce]=null},Fe=(ie,Ce)=>{W.value[Ce]=ie;const we=Me(ie,de.value).locale(d.value);we.isValid()&&(Ce==="min"?(et.value=!0,y.value=(y.value||v.value).hour(we.hour()).minute(we.minute()).second(we.second()),(!b.value||b.value.isBefore(y.value))&&(b.value=y.value)):(st.value=!0,b.value=(b.value||m.value).hour(we.hour()).minute(we.minute()).second(we.second()),m.value=b.value,b.value&&b.value.isBefore(y.value)&&(y.value=b.value)))},Qe=(ie,Ce)=>{W.value[Ce]=null,Ce==="min"?(v.value=y.value,et.value=!1):(m.value=b.value,st.value=!1)},U=(ie,Ce,we)=>{W.value.min||(ie&&(v.value=ie,y.value=(y.value||v.value).hour(ie.hour()).minute(ie.minute()).second(ie.second())),we||(et.value=Ce),(!b.value||b.value.isBefore(y.value))&&(b.value=y.value,m.value=ie))},oe=(ie,Ce,we)=>{W.value.max||(ie&&(m.value=ie,b.value=(b.value||m.value).hour(ie.hour()).minute(ie.minute()).second(ie.second())),we||(st.value=Ce),b.value&&b.value.isBefore(y.value)&&(y.value=b.value))},E=()=>{v.value=gi(l(p),{lang:l(d),unit:"month",unlinkPanels:n.unlinkPanels})[0],m.value=v.value.add(1,"month"),t("pick",null)},z=ie=>at(ie)?ie.map(Ce=>Ce.format(u)):ie.format(u),ee=ie=>at(ie)?ie.map(Ce=>Me(Ce,u).locale(d.value)):Me(ie,u).locale(d.value);function he(ie,Ce){if(n.unlinkPanels&&Ce){const we=(ie==null?void 0:ie.year())||0,dt=(ie==null?void 0:ie.month())||0,ut=Ce.year(),nt=Ce.month();m.value=we===ut&&dt===nt?Ce.add(1,o):Ce}else m.value=v.value.add(1,o),Ce&&(m.value=m.value.hour(Ce.hour()).minute(Ce.minute()).second(Ce.second()))}return t("set-picker-option",["isValidValue",Gl]),t("set-picker-option",["parseUserInput",ee]),t("set-picker-option",["formatToString",z]),t("set-picker-option",["handleClear",E]),(ie,Ce)=>(k(),L("div",{class:S([l(g).b(),l(w).b(),{"has-sidebar":ie.$slots.sidebar||l(A),"has-time":l(lt)}])},[x("div",{class:S(l(g).e("body-wrapper"))},[Q(ie.$slots,"sidebar",{class:S(l(g).e("sidebar"))}),l(A)?(k(),L("div",{key:0,class:S(l(g).e("sidebar"))},[(k(!0),L(Pe,null,ot(l(h),(we,dt)=>(k(),L("button",{key:dt,type:"button",class:S(l(g).e("shortcut")),onClick:ut=>l(T)(we)},ce(we.text),11,Ah))),128))],2)):q("v-if",!0),x("div",{class:S(l(g).e("body"))},[l(lt)?(k(),L("div",{key:0,class:S(l(w).e("time-header"))},[x("span",{class:S(l(w).e("editors-wrap"))},[x("span",{class:S(l(w).e("time-picker-wrap"))},[j(l(Ht),{size:"small",disabled:l(C).selecting,placeholder:l(O)("el.datepicker.startDate"),class:S(l(w).e("editor")),"model-value":l(N),onInput:Ce[0]||(Ce[0]=we=>le(we,"min")),onChange:Ce[1]||(Ce[1]=we=>Be(we,"min"))},null,8,["disabled","placeholder","class","model-value"])],2),Ie((k(),L("span",{class:S(l(w).e("time-picker-wrap"))},[j(l(Ht),{size:"small",class:S(l(w).e("editor")),disabled:l(C).selecting,placeholder:l(O)("el.datepicker.startTime"),"model-value":l(G),onFocus:Ce[2]||(Ce[2]=we=>et.value=!0),onInput:Ce[3]||(Ce[3]=we=>Fe(we,"min")),onChange:Ce[4]||(Ce[4]=we=>Qe(we,"min"))},null,8,["class","disabled","placeholder","model-value"]),j(l(Ul),{visible:et.value,format:l(de),"datetime-role":"start","time-arrow-control":l(c),"parsed-value":v.value,onPick:U},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[l(uo),Et]])],2),x("span",null,[j(l(ve),null,{default:H(()=>[j(l(sn))]),_:1})]),x("span",{class:S([l(w).e("editors-wrap"),"is-right"])},[x("span",{class:S(l(w).e("time-picker-wrap"))},[j(l(Ht),{size:"small",class:S(l(w).e("editor")),disabled:l(C).selecting,placeholder:l(O)("el.datepicker.endDate"),"model-value":l(R),readonly:!l(y),onInput:Ce[5]||(Ce[5]=we=>le(we,"max")),onChange:Ce[6]||(Ce[6]=we=>Be(we,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),Ie((k(),L("span",{class:S(l(w).e("time-picker-wrap"))},[j(l(Ht),{size:"small",class:S(l(w).e("editor")),disabled:l(C).selecting,placeholder:l(O)("el.datepicker.endTime"),"model-value":l(re),readonly:!l(y),onFocus:Ce[7]||(Ce[7]=we=>l(y)&&(st.value=!0)),onInput:Ce[8]||(Ce[8]=we=>Fe(we,"max")),onChange:Ce[9]||(Ce[9]=we=>Qe(we,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),j(l(Ul),{"datetime-role":"end",visible:st.value,format:l(de),"time-arrow-control":l(c),"parsed-value":m.value,onPick:oe},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[l(uo),bt]])],2)],2)):q("v-if",!0),x("div",{class:S([[l(g).e("content"),l(w).e("content")],"is-left"])},[x("div",{class:S(l(w).e("header"))},[x("button",{type:"button",class:S([l(g).e("icon-btn"),"d-arrow-left"]),onClick:ge},[j(l(ve),null,{default:H(()=>[j(l(eo))]),_:1})],2),x("button",{type:"button",class:S([l(g).e("icon-btn"),"arrow-left"]),onClick:Te},[j(l(ve),null,{default:H(()=>[j(l(to))]),_:1})],2),ie.unlinkPanels?(k(),L("button",{key:0,type:"button",disabled:!l(Ae),class:S([[l(g).e("icon-btn"),{"is-disabled":!l(Ae)}],"d-arrow-right"]),onClick:Ne},[j(l(ve),null,{default:H(()=>[j(l(no))]),_:1})],10,Bh)):q("v-if",!0),ie.unlinkPanels?(k(),L("button",{key:1,type:"button",disabled:!l(ht),class:S([[l(g).e("icon-btn"),{"is-disabled":!l(ht)}],"arrow-right"]),onClick:Le},[j(l(ve),null,{default:H(()=>[j(l(sn))]),_:1})],10,Dh)):q("v-if",!0),x("div",null,ce(l(Z)),1)],2),j(Xl,{"selection-mode":"range",date:v.value,"min-date":l(y),"max-date":l(b),"range-state":l(C),"disabled-date":l(s),"cell-class-name":l(r),onChangerange:l(P),onPick:gt,onSelect:l(B)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),x("div",{class:S([[l(g).e("content"),l(w).e("content")],"is-right"])},[x("div",{class:S(l(w).e("header"))},[ie.unlinkPanels?(k(),L("button",{key:0,type:"button",disabled:!l(Ae),class:S([[l(g).e("icon-btn"),{"is-disabled":!l(Ae)}],"d-arrow-left"]),onClick:Xe},[j(l(ve),null,{default:H(()=>[j(l(eo))]),_:1})],10,Lh)):q("v-if",!0),ie.unlinkPanels?(k(),L("button",{key:1,type:"button",disabled:!l(ht),class:S([[l(g).e("icon-btn"),{"is-disabled":!l(ht)}],"arrow-left"]),onClick:Ze},[j(l(ve),null,{default:H(()=>[j(l(to))]),_:1})],10,Rh)):q("v-if",!0),x("button",{type:"button",class:S([l(g).e("icon-btn"),"d-arrow-right"]),onClick:J},[j(l(ve),null,{default:H(()=>[j(l(no))]),_:1})],2),x("button",{type:"button",class:S([l(g).e("icon-btn"),"arrow-right"]),onClick:me},[j(l(ve),null,{default:H(()=>[j(l(sn))]),_:1})],2),x("div",null,ce(l(F)),1)],2),j(Xl,{"selection-mode":"range",date:m.value,"min-date":l(y),"max-date":l(b),"range-state":l(C),"disabled-date":l(s),"cell-class-name":l(r),onChangerange:l(P),onPick:gt,onSelect:l(B)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),l(lt)?(k(),L("div",{key:0,class:S(l(g).e("footer"))},[l(f)?(k(),X(l(In),{key:0,text:"",size:"small",class:S(l(g).e("link-btn")),onClick:E},{default:H(()=>[Ge(ce(l(O)("el.datepicker.clear")),1)]),_:1},8,["class"])):q("v-if",!0),j(l(In),{plain:"",size:"small",class:S(l(g).e("link-btn")),disabled:l(it),onClick:Ce[10]||(Ce[10]=we=>l(I)(!1))},{default:H(()=>[Ge(ce(l(O)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2)):q("v-if",!0)],2))}});var Fh=ue(_h,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-range.vue"]]);const zh=pe({...mi}),Vh=["pick","set-picker-option"],Hh=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const{t:o}=Je(),a=()=>{t.value=t.value.subtract(1,"year"),e||(n.value=n.value.subtract(1,"year"))},s=()=>{e||(t.value=t.value.add(1,"year")),n.value=n.value.add(1,"year")},r=()=>{t.value=t.value.add(1,"year")},u=()=>{n.value=n.value.subtract(1,"year")},i=$(()=>`${t.value.year()} ${o("el.datepicker.year")}`),c=$(()=>`${n.value.year()} ${o("el.datepicker.year")}`),f=$(()=>t.value.year()),h=$(()=>n.value.year()===t.value.year()?t.value.year()+1:n.value.year());return{leftPrevYear:a,rightNextYear:s,leftNextYear:r,rightPrevYear:u,leftLabel:i,rightLabel:c,leftYear:f,rightYear:h}},Kh=["onClick"],Wh=["disabled"],jh=["disabled"],xh={name:"DatePickerMonthRange"},qh=se({...xh,props:zh,emits:Vh,setup(e,{emit:t}){const n=e,o="year",{lang:a}=Je(),s=fe("EP_PICKER_BASE"),{shortcuts:r,disabledDate:u,format:i}=s.props,c=ct(s.props,"defaultValue"),f=M(Me().locale(a.value)),h=M(Me().locale(a.value).add(1,o)),{minDate:p,maxDate:d,rangeState:v,ppNs:m,drpNs:y,handleChangeRange:b,handleRangeConfirm:C,handleShortcutClick:g,onSelect:w}=bi(n,{defaultValue:c,leftDate:f,rightDate:h,unit:o,onParsedValueChanged:D}),P=$(()=>!!r.length),{leftPrevYear:I,rightNextYear:T,leftNextYear:B,rightPrevYear:O,leftLabel:V,rightLabel:W,leftYear:Z,rightYear:F}=Hh({unlinkPanels:ct(n,"unlinkPanels"),leftDate:f,rightDate:h}),K=$(()=>n.unlinkPanels&&F.value>Z.value+1),Y=(A,N=!0)=>{const R=A.minDate,G=A.maxDate;d.value===G&&p.value===R||(d.value=G,p.value=R,N&&C())},_=A=>A.map(N=>N.format(i));function D(A,N){if(n.unlinkPanels&&N){const R=(A==null?void 0:A.year())||0,G=N.year();h.value=R===G?N.add(1,o):N}else h.value=f.value.add(1,o)}return t("set-picker-option",["formatToString",_]),(A,N)=>(k(),L("div",{class:S([l(m).b(),l(y).b(),{"has-sidebar":Boolean(A.$slots.sidebar)||l(P)}])},[x("div",{class:S(l(m).e("body-wrapper"))},[Q(A.$slots,"sidebar",{class:S(l(m).e("sidebar"))}),l(P)?(k(),L("div",{key:0,class:S(l(m).e("sidebar"))},[(k(!0),L(Pe,null,ot(l(r),(R,G)=>(k(),L("button",{key:G,type:"button",class:S(l(m).e("shortcut")),onClick:re=>l(g)(R)},ce(R.text),11,Kh))),128))],2)):q("v-if",!0),x("div",{class:S(l(m).e("body"))},[x("div",{class:S([[l(m).e("content"),l(y).e("content")],"is-left"])},[x("div",{class:S(l(y).e("header"))},[x("button",{type:"button",class:S([l(m).e("icon-btn"),"d-arrow-left"]),onClick:N[0]||(N[0]=(...R)=>l(I)&&l(I)(...R))},[j(l(ve),null,{default:H(()=>[j(l(eo))]),_:1})],2),A.unlinkPanels?(k(),L("button",{key:0,type:"button",disabled:!l(K),class:S([[l(m).e("icon-btn"),{[l(m).is("disabled")]:!l(K)}],"d-arrow-right"]),onClick:N[1]||(N[1]=(...R)=>l(B)&&l(B)(...R))},[j(l(ve),null,{default:H(()=>[j(l(no))]),_:1})],10,Wh)):q("v-if",!0),x("div",null,ce(l(V)),1)],2),j(Jl,{"selection-mode":"range",date:f.value,"min-date":l(p),"max-date":l(d),"range-state":l(v),"disabled-date":l(u),onChangerange:l(b),onPick:Y,onSelect:l(w)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),x("div",{class:S([[l(m).e("content"),l(y).e("content")],"is-right"])},[x("div",{class:S(l(y).e("header"))},[A.unlinkPanels?(k(),L("button",{key:0,type:"button",disabled:!l(K),class:S([[l(m).e("icon-btn"),{"is-disabled":!l(K)}],"d-arrow-left"]),onClick:N[2]||(N[2]=(...R)=>l(O)&&l(O)(...R))},[j(l(ve),null,{default:H(()=>[j(l(eo))]),_:1})],10,jh)):q("v-if",!0),x("button",{type:"button",class:S([l(m).e("icon-btn"),"d-arrow-right"]),onClick:N[3]||(N[3]=(...R)=>l(T)&&l(T)(...R))},[j(l(ve),null,{default:H(()=>[j(l(no))]),_:1})],2),x("div",null,ce(l(W)),1)],2),j(Jl,{"selection-mode":"range",date:h.value,"min-date":l(p),"max-date":l(d),"range-state":l(v),"disabled-date":l(u),onChangerange:l(b),onPick:Y,onSelect:l(w)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2)],2)],2)],2))}});var Uh=ue(qh,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-month-range.vue"]]);const Yh=function(e){switch(e){case"daterange":case"datetimerange":return Fh;case"monthrange":return Uh;default:return Ih}};Me.extend(Ku);Me.extend(Wu);Me.extend(ju);Me.extend(xu);Me.extend(qu);Me.extend(Uu);Me.extend(Yu);Me.extend(Gu);var Gh=se({name:"ElDatePicker",install:null,props:{...Qr,...Xm},emits:["update:modelValue"],setup(e,{expose:t,emit:n,slots:o}){const a=ae("picker-panel");_e("ElPopperOptions",rt(ct(e,"popperOptions"))),_e(ma,{slots:o,pickerNs:a});const s=M();t({focus:(i=!0)=>{var c;(c=s.value)==null||c.focus(i)}});const u=i=>{n("update:modelValue",i)};return()=>{var i;const c=(i=e.format)!=null?i:av[e.type]||Un,f=Yh(e.type);return j(dv,vt(e,{format:c,type:e.type,ref:s,"onUpdate:modelValue":u}),{default:h=>j(f,h,null),"range-separator":o["range-separator"]})}}});const Jo=Gh;Jo.install=e=>{e.component(Jo.name,Jo)};const $S=Jo,Xh=pe({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:te([String,Array,Object])},zIndex:{type:te([String,Number])}}),Jh={click:e=>e instanceof MouseEvent};var Zh=se({name:"ElOverlay",props:Xh,emits:Jh,setup(e,{slots:t,emit:n}){const o=ae("overlay"),a=i=>{n("click",i)},{onClick:s,onMousedown:r,onMouseup:u}=ha(e.customMaskEvent?void 0:a);return()=>e.mask?j("div",{class:[o.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:s,onMousedown:r,onMouseup:u},[Q(t,"default")],qo.STYLE|qo.CLASS|qo.PROPS,["onClick","onMouseup","onMousedown"]):Se("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[Q(t,"default")])}});const Pa=Zh,yi=pe({center:{type:Boolean,default:!1},closeIcon:{type:_t,default:""},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),Qh={close:()=>!0},eg=["aria-label"],tg=["id"],ng={name:"ElDialogContent"},og=se({...ng,props:yi,emits:Qh,setup(e){const t=e,{t:n}=Je(),{Close:o}=hc,{dialogRef:a,headerRef:s,bodyId:r,ns:u,style:i}=fe(vr),{focusTrapRef:c}=fe(Ta),f=fa(c,a),h=$(()=>t.draggable);return kr(a,s,h),(p,d)=>(k(),L("div",{ref:l(f),class:S([l(u).b(),l(u).is("fullscreen",p.fullscreen),l(u).is("draggable",l(h)),{[l(u).m("center")]:p.center},p.customClass]),style:$e(l(i)),tabindex:"-1",onClick:d[1]||(d[1]=Oe(()=>{},["stop"]))},[x("header",{ref_key:"headerRef",ref:s,class:S(l(u).e("header"))},[Q(p.$slots,"header",{},()=>[x("span",{role:"heading",class:S(l(u).e("title"))},ce(p.title),3)]),p.showClose?(k(),L("button",{key:0,"aria-label":l(n)("el.dialog.close"),class:S(l(u).e("headerbtn")),type:"button",onClick:d[0]||(d[0]=v=>p.$emit("close"))},[j(l(ve),{class:S(l(u).e("close"))},{default:H(()=>[(k(),X(Ve(p.closeIcon||l(o))))]),_:1},8,["class"])],10,eg)):q("v-if",!0)],2),x("div",{id:l(r),class:S(l(u).e("body"))},[Q(p.$slots,"default")],10,tg),p.$slots.footer?(k(),L("footer",{key:0,class:S(l(u).e("footer"))},[Q(p.$slots,"footer")],2)):q("v-if",!0)],6))}});var lg=ue(og,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const Ci=pe({...yi,appendToBody:{type:Boolean,default:!1},beforeClose:{type:te(Function)},destroyOnClose:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:{type:Boolean,default:!1},modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}}),wi={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[qe]:e=>It(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},ki=(e,t)=>{const o=De().emit,{nextZIndex:a}=An();let s="";const r=cn(),u=cn(),i=M(!1),c=M(!1),f=M(!1),h=M(e.zIndex||a());let p,d;const v=jn("namespace",Nr),m=$(()=>{const Z={},F=`--${v.value}-dialog`;return e.fullscreen||(e.top&&(Z[`${F}-margin-top`]=e.top),e.width&&(Z[`${F}-width`]=Wt(e.width))),Z});function y(){o("opened")}function b(){o("closed"),o(qe,!1),e.destroyOnClose&&(f.value=!1)}function C(){o("close")}function g(){d==null||d(),p==null||p(),e.openDelay&&e.openDelay>0?{stop:p}=Qn(()=>T(),e.openDelay):T()}function w(){p==null||p(),d==null||d(),e.closeDelay&&e.closeDelay>0?{stop:d}=Qn(()=>B(),e.closeDelay):B()}function P(){function Z(F){F||(c.value=!0,i.value=!1)}e.beforeClose?e.beforeClose(Z):w()}function I(){e.closeOnClickModal&&P()}function T(){!We||(i.value=!0)}function B(){i.value=!1}function O(){o("openAutoFocus")}function V(){o("closeAutoFocus")}e.lockScroll&&Sr(i);function W(){e.closeOnPressEscape&&P()}return ne(()=>e.modelValue,Z=>{Z?(c.value=!1,g(),f.value=!0,o("open"),h.value=e.zIndex?h.value++:a(),ke(()=>{t.value&&(t.value.scrollTop=0)})):i.value&&w()}),ne(()=>e.fullscreen,Z=>{!t.value||(Z?(s=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=s)}),Re(()=>{e.modelValue&&(i.value=!0,f.value=!0,g())}),{afterEnter:y,afterLeave:b,beforeLeave:C,handleClose:P,onModalClick:I,close:w,doClose:B,onOpenAutoFocus:O,onCloseAutoFocus:V,onCloseRequested:W,titleId:r,bodyId:u,closed:c,style:m,rendered:f,visible:i,zIndex:h}},ag=["aria-label","aria-labelledby","aria-describedby"],sg={name:"ElDialog"},rg=se({...sg,props:Ci,emits:wi,setup(e,{expose:t}){const n=e,o=tn();Lo({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},$(()=>!!o.title));const a=ae("dialog"),s=M(),r=M(),u=M(),{visible:i,titleId:c,bodyId:f,style:h,rendered:p,zIndex:d,afterEnter:v,afterLeave:m,beforeLeave:y,handleClose:b,onModalClick:C,onOpenAutoFocus:g,onCloseAutoFocus:w,onCloseRequested:P}=ki(n,s);_e(vr,{dialogRef:s,headerRef:r,bodyId:f,ns:a,rendered:p,style:h});const I=ha(C),T=$(()=>n.draggable&&!n.fullscreen);return t({visible:i,dialogContentRef:u}),(B,O)=>(k(),X(ml,{to:"body",disabled:!B.appendToBody},[j(kt,{name:"dialog-fade",onAfterEnter:l(v),onAfterLeave:l(m),onBeforeLeave:l(y),persisted:""},{default:H(()=>[Ie(j(l(Pa),{"custom-mask-event":"",mask:B.modal,"overlay-class":B.modalClass,"z-index":l(d)},{default:H(()=>[x("div",{role:"dialog","aria-modal":"true","aria-label":B.title||void 0,"aria-labelledby":B.title?void 0:l(c),"aria-describedby":l(f),class:S(`${l(a).namespace.value}-overlay-dialog`),onClick:O[0]||(O[0]=(...V)=>l(I).onClick&&l(I).onClick(...V)),onMousedown:O[1]||(O[1]=(...V)=>l(I).onMousedown&&l(I).onMousedown(...V)),onMouseup:O[2]||(O[2]=(...V)=>l(I).onMouseup&&l(I).onMouseup(...V))},[j(l(Sl),{loop:"",trapped:l(i),"focus-start-el":"container",onFocusAfterTrapped:l(g),onFocusAfterReleased:l(w),onReleaseRequested:l(P)},{default:H(()=>[l(p)?(k(),X(lg,{key:0,ref_key:"dialogContentRef",ref:u,"custom-class":B.customClass,center:B.center,"close-icon":B.closeIcon,draggable:l(T),fullscreen:B.fullscreen,"show-close":B.showClose,title:B.title,onClose:l(b)},Jn({header:H(()=>[B.$slots.title?Q(B.$slots,"title",{key:1}):Q(B.$slots,"header",{key:0,close:l(b),titleId:l(c),titleClass:l(a).e("title")})]),default:H(()=>[Q(B.$slots,"default")]),_:2},[B.$slots.footer?{name:"footer",fn:H(()=>[Q(B.$slots,"footer")])}:void 0]),1032,["custom-class","center","close-icon","draggable","fullscreen","show-close","title","onClose"])):q("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onReleaseRequested"])],42,ag)]),_:3},8,["mask","overlay-class","z-index"]),[[Ye,l(i)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var ig=ue(rg,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const TS=je(ig),ug=pe({...Ci,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0}}),cg=wi,dg=se({name:"ElDrawer",components:{ElOverlay:Pa,ElFocusTrap:Sl,ElIcon:ve,Close:Qt},props:ug,emits:cg,setup(e,{slots:t}){Lo({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},$(()=>!!t.title));const n=M(),o=M(),a=ae("drawer"),{t:s}=Je(),r=$(()=>e.direction==="rtl"||e.direction==="ltr"),u=$(()=>Wt(e.size));return{...ki(e,n),drawerRef:n,focusStartRef:o,isHorizontal:r,drawerSize:u,ns:a,t:s}}}),fg=["aria-label","aria-labelledby","aria-describedby"],pg=["id"],vg=["aria-label"],mg=["id"];function hg(e,t,n,o,a,s){const r=Ee("close"),u=Ee("el-icon"),i=Ee("el-focus-trap"),c=Ee("el-overlay");return k(),X(ml,{to:"body",disabled:!e.appendToBody},[j(kt,{name:e.ns.b("fade"),onAfterEnter:e.afterEnter,onAfterLeave:e.afterLeave,onBeforeLeave:e.beforeLeave,persisted:""},{default:H(()=>[Ie(j(c,{mask:e.modal,"overlay-class":e.modalClass,"z-index":e.zIndex,onClick:e.onModalClick},{default:H(()=>[j(i,{loop:"",trapped:e.visible,"focus-trap-el":e.drawerRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:H(()=>[x("div",{ref:"drawerRef","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:e.titleId,"aria-describedby":e.bodyId,class:S([e.ns.b(),e.direction,e.visible&&"open",e.customClass]),style:$e(e.isHorizontal?"width: "+e.drawerSize:"height: "+e.drawerSize),role:"dialog",onClick:t[1]||(t[1]=Oe(()=>{},["stop"]))},[x("span",{ref:"focusStartRef",class:S(e.ns.e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(k(),L("header",{key:0,class:S(e.ns.e("header"))},[e.$slots.title?Q(e.$slots,"title",{key:1},()=>[q(" DEPRECATED SLOT ")]):Q(e.$slots,"header",{key:0,close:e.handleClose,titleId:e.titleId,titleClass:e.ns.e("title")},()=>[e.$slots.title?q("v-if",!0):(k(),L("span",{key:0,id:e.titleId,role:"heading",class:S(e.ns.e("title"))},ce(e.title),11,pg))]),e.showClose?(k(),L("button",{key:2,"aria-label":e.t("el.drawer.close"),class:S(e.ns.e("close-btn")),type:"button",onClick:t[0]||(t[0]=(...f)=>e.handleClose&&e.handleClose(...f))},[j(u,{class:S(e.ns.e("close"))},{default:H(()=>[j(r)]),_:1},8,["class"])],10,vg)):q("v-if",!0)],2)):q("v-if",!0),e.rendered?(k(),L("div",{key:1,id:e.bodyId,class:S(e.ns.e("body"))},[Q(e.$slots,"default")],10,mg)):q("v-if",!0),e.$slots.footer?(k(),L("div",{key:2,class:S(e.ns.e("footer"))},[Q(e.$slots,"footer")],2)):q("v-if",!0)],14,fg)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[Ye,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var gg=ue(dg,[["render",hg],["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]);const NS=je(gg),bg={inheritAttrs:!1};function yg(e,t,n,o,a,s){return Q(e.$slots,"default")}var Cg=ue(bg,[["render",yg],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const wg={name:"ElCollectionItem",inheritAttrs:!1};function kg(e,t,n,o,a,s){return Q(e.$slots,"default")}var Sg=ue(wg,[["render",kg],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const Si="data-el-collection-item",Ei=e=>{const t=`El${e}Collection`,n=`${t}Item`,o=Symbol(t),a=Symbol(n),s={...Cg,name:t,setup(){const u=M(null),i=new Map;_e(o,{itemMap:i,getItems:()=>{const f=l(u);if(!f)return[];const h=Array.from(f.querySelectorAll(`[${Si}]`));return[...i.values()].sort((d,v)=>h.indexOf(d.ref)-h.indexOf(v.ref))},collectionRef:u})}},r={...Sg,name:n,setup(u,{attrs:i}){const c=M(null),f=fe(o,void 0);_e(a,{collectionItemRef:c}),Re(()=>{const h=l(c);h&&f.itemMap.set(h,{ref:h,...i})}),mt(()=>{const h=l(c);f.itemMap.delete(h)})}};return{COLLECTION_INJECTION_KEY:o,COLLECTION_ITEM_INJECTION_KEY:a,ElCollection:s,ElCollectionItem:r}},Eg=pe({style:{type:te([String,Array,Object])},currentTabId:{type:te(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:te(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:$g,ElCollectionItem:Tg,COLLECTION_INJECTION_KEY:Ia,COLLECTION_ITEM_INJECTION_KEY:Ng}=Ei("RovingFocusGroup"),Ma=Symbol("elRovingFocusGroup"),$i=Symbol("elRovingFocusGroupItem"),Pg={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},Ig=(e,t)=>{if(t!=="rtl")return e;switch(e){case be.right:return be.left;case be.left:return be.right;default:return e}},Mg=(e,t,n)=>{const o=Ig(e.key,n);if(!(t==="vertical"&&[be.left,be.right].includes(o))&&!(t==="horizontal"&&[be.up,be.down].includes(o)))return Pg[o]},Og=(e,t)=>e.map((n,o)=>e[(o+t)%e.length]),Oa=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},Ps="currentTabIdChange",Rl="rovingFocusGroup.entryFocus",Ag={bubbles:!1,cancelable:!0},Bg=se({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:Eg,emits:[Ps,"entryFocus"],setup(e,{emit:t}){var n;const o=M((n=e.currentTabId||e.defaultCurrentTabId)!=null?n:null),a=M(!1),s=M(!1),r=M(null),{getItems:u}=fe(Ia,void 0),i=$(()=>[{outline:"none"},e.style]),c=m=>{t(Ps,m)},f=()=>{a.value=!0},h=pt(m=>{var y;(y=e.onMousedown)==null||y.call(e,m)},()=>{s.value=!0}),p=pt(m=>{var y;(y=e.onFocus)==null||y.call(e,m)},m=>{const y=!l(s),{target:b,currentTarget:C}=m;if(b===C&&y&&!l(a)){const g=new Event(Rl,Ag);if(C==null||C.dispatchEvent(g),!g.defaultPrevented){const w=u().filter(O=>O.focusable),P=w.find(O=>O.active),I=w.find(O=>O.id===l(o)),B=[P,I,...w].filter(Boolean).map(O=>O.ref);Oa(B)}}s.value=!1}),d=pt(m=>{var y;(y=e.onBlur)==null||y.call(e,m)},()=>{a.value=!1}),v=(...m)=>{t("entryFocus",...m)};_e(Ma,{currentTabbedId:Ys(o),loop:ct(e,"loop"),tabIndex:$(()=>l(a)?-1:0),rovingFocusGroupRef:r,rovingFocusGroupRootStyle:i,orientation:ct(e,"orientation"),dir:ct(e,"dir"),onItemFocus:c,onItemShiftTab:f,onBlur:d,onFocus:p,onMousedown:h}),ne(()=>e.currentTabId,m=>{o.value=m!=null?m:null}),Re(()=>{const m=l(r);Nt(m,Rl,v)}),mt(()=>{const m=l(r);xt(m,Rl,v)})}});function Dg(e,t,n,o,a,s){return Q(e.$slots,"default")}var Lg=ue(Bg,[["render",Dg],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);const Rg=se({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:$g,ElRovingFocusGroupImpl:Lg}});function _g(e,t,n,o,a,s){const r=Ee("el-roving-focus-group-impl"),u=Ee("el-focus-group-collection");return k(),X(u,null,{default:H(()=>[j(r,fu(pu(e.$attrs)),{default:H(()=>[Q(e.$slots,"default")]),_:3},16)]),_:3})}var Fg=ue(Rg,[["render",_g],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const zg=se({components:{ElRovingFocusCollectionItem:Tg},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,loop:o,onItemFocus:a,onItemShiftTab:s}=fe(Ma,void 0),{getItems:r}=fe(Ia,void 0),u=cn(),i=M(null),c=pt(d=>{t("mousedown",d)},d=>{e.focusable?a(l(u)):d.preventDefault()}),f=pt(d=>{t("focus",d)},()=>{a(l(u))}),h=pt(d=>{t("keydown",d)},d=>{const{key:v,shiftKey:m,target:y,currentTarget:b}=d;if(v===be.tab&&m){s();return}if(y!==b)return;const C=Mg(d);if(C){d.preventDefault();let w=r().filter(P=>P.focusable).map(P=>P.ref);switch(C){case"last":{w.reverse();break}case"prev":case"next":{C==="prev"&&w.reverse();const P=w.indexOf(b);w=o.value?Og(w,P+1):w.slice(P+1);break}}ke(()=>{Oa(w)})}}),p=$(()=>n.value===l(u));return _e($i,{rovingFocusGroupItemRef:i,tabIndex:$(()=>l(p)?0:-1),handleMousedown:c,handleFocus:f,handleKeydown:h}),{id:u,handleKeydown:h,handleFocus:f,handleMousedown:c}}});function Vg(e,t,n,o,a,s){const r=Ee("el-roving-focus-collection-item");return k(),X(r,{id:e.id,focusable:e.focusable,active:e.active},{default:H(()=>[Q(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var Hg=ue(zg,[["render",Vg],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const Zo=pe({trigger:Mo.trigger,effect:{...zt.effect,default:"light"},type:{type:te(String)},placement:{type:te(String),default:"bottom"},popperOptions:{type:te(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:te([Number,String]),default:0},maxHeight:{type:te([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:te(Object)}}),Ti=pe({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:_t}}),Kg=pe({onKeydown:{type:te(Function)}}),Wg=[be.down,be.pageDown,be.home],Ni=[be.up,be.pageUp,be.end],jg=[...Wg,...Ni],{ElCollection:xg,ElCollectionItem:qg,COLLECTION_INJECTION_KEY:Ug,COLLECTION_ITEM_INJECTION_KEY:Yg}=Ei("Dropdown"),$l=Symbol("elDropdown"),{ButtonGroup:Gg}=In,Xg=se({name:"ElDropdown",components:{ElButton:In,ElButtonGroup:Gg,ElScrollbar:bo,ElDropdownCollection:xg,ElTooltip:wn,ElRovingFocusGroup:Fg,ElOnlyChild:Mr,ElIcon:ve,ArrowDown:mo},props:Zo,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=De(),o=ae("dropdown"),{t:a}=Je(),s=M(),r=M(),u=M(null),i=M(null),c=M(null),f=M(null),h=M(!1),p=[be.enter,be.space,be.down],d=$(()=>({maxHeight:Wt(e.maxHeight)})),v=$(()=>[o.m(w.value)]),m=cn().value,y=$(()=>e.id||m);function b(){C()}function C(){var Y;(Y=u.value)==null||Y.onClose()}function g(){var Y;(Y=u.value)==null||Y.onOpen()}const w=wt();function P(...Y){t("command",...Y)}function I(){}function T(){const Y=l(i);Y==null||Y.focus(),f.value=null}function B(Y){f.value=Y}function O(Y){h.value||(Y.preventDefault(),Y.stopImmediatePropagation())}function V(){t("visible-change",!0)}function W(Y){(Y==null?void 0:Y.type)==="keydown"&&i.value.focus()}function Z(){t("visible-change",!1)}return _e($l,{contentRef:i,role:$(()=>e.role),triggerId:y,isUsingKeyboard:h,onItemEnter:I,onItemLeave:T}),_e("elDropdown",{instance:n,dropdownSize:w,handleClick:b,commandHandler:P,trigger:ct(e,"trigger"),hideOnClick:ct(e,"hideOnClick")}),{t:a,ns:o,scrollbar:c,wrapStyle:d,dropdownTriggerKls:v,dropdownSize:w,triggerId:y,triggerKeys:p,currentTabId:f,handleCurrentTabIdChange:B,handlerMainButtonClick:Y=>{t("click",Y)},handleEntryFocus:O,handleClose:C,handleOpen:g,handleBeforeShowTooltip:V,handleShowTooltip:W,handleBeforeHideTooltip:Z,onFocusAfterTrapped:Y=>{var _,D;Y.preventDefault(),(D=(_=i.value)==null?void 0:_.focus)==null||D.call(_,{preventScroll:!0})},popperRef:u,contentRef:i,triggeringElementRef:s,referenceElementRef:r}}});function Jg(e,t,n,o,a,s){var r;const u=Ee("el-dropdown-collection"),i=Ee("el-roving-focus-group"),c=Ee("el-scrollbar"),f=Ee("el-only-child"),h=Ee("el-tooltip"),p=Ee("el-button"),d=Ee("arrow-down"),v=Ee("el-icon"),m=Ee("el-button-group");return k(),L("div",{class:S([e.ns.b(),e.ns.is("disabled",e.disabled)])},[j(h,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":(r=e.referenceElementRef)==null?void 0:r.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":e.trigger==="hover"?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:"",pure:"",persistent:"",onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},Jn({content:H(()=>[j(c,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:H(()=>[j(i,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:H(()=>[j(u,null,{default:H(()=>[Q(e.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:H(()=>[j(f,{id:e.triggerId,role:"button",tabindex:e.tabindex},{default:H(()=>[Q(e.$slots,"default")]),_:3},8,["id","tabindex"])])}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(k(),X(m,{key:0},{default:H(()=>[j(p,vt({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:H(()=>[Q(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),j(p,vt({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:H(()=>[j(v,{class:S(e.ns.e("icon"))},{default:H(()=>[j(d)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):q("v-if",!0)],2)}var Zg=ue(Xg,[["render",Jg],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const Qg=se({name:"DropdownItemImpl",components:{ElIcon:ve},props:Ti,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=ae("dropdown"),{role:o}=fe($l,void 0),{collectionItemRef:a}=fe(Yg,void 0),{collectionItemRef:s}=fe(Ng,void 0),{rovingFocusGroupItemRef:r,tabIndex:u,handleFocus:i,handleKeydown:c,handleMousedown:f}=fe($i,void 0),h=fa(a,s,r),p=$(()=>o.value==="menu"?"menuitem":o.value==="navigation"?"link":"button"),d=pt(v=>{const{code:m}=v;if(m===be.enter||m===be.space)return v.preventDefault(),v.stopImmediatePropagation(),t("clickimpl",v),!0},c);return{ns:n,itemRef:h,dataset:{[Si]:""},role:p,tabIndex:u,handleFocus:i,handleKeydown:d,handleMousedown:f}}}),eb=["aria-disabled","tabindex","role"];function tb(e,t,n,o,a,s){const r=Ee("el-icon");return k(),L(Pe,null,[e.divided?(k(),L("li",vt({key:0,role:"separator",class:e.ns.bem("menu","item","divided")},e.$attrs),null,16)):q("v-if",!0),x("li",vt({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:t[0]||(t[0]=u=>e.$emit("clickimpl",u)),onFocus:t[1]||(t[1]=(...u)=>e.handleFocus&&e.handleFocus(...u)),onKeydown:t[2]||(t[2]=(...u)=>e.handleKeydown&&e.handleKeydown(...u)),onMousedown:t[3]||(t[3]=(...u)=>e.handleMousedown&&e.handleMousedown(...u)),onPointermove:t[4]||(t[4]=u=>e.$emit("pointermove",u)),onPointerleave:t[5]||(t[5]=u=>e.$emit("pointerleave",u))}),[e.icon?(k(),X(r,{key:0},{default:H(()=>[(k(),X(Ve(e.icon)))]),_:1})):q("v-if",!0),Q(e.$slots,"default")],16,eb)],64)}var nb=ue(Qg,[["render",tb],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const Pi=()=>{const e=fe("elDropdown",{}),t=$(()=>e==null?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},ob=se({name:"ElDropdownItem",components:{ElDropdownCollectionItem:qg,ElRovingFocusItem:Hg,ElDropdownItemImpl:nb},inheritAttrs:!1,props:Ti,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:o}=Pi(),a=De(),s=M(null),r=$(()=>{var d,v;return(v=(d=l(s))==null?void 0:d.textContent)!=null?v:""}),{onItemEnter:u,onItemLeave:i}=fe($l,void 0),c=pt(d=>(t("pointermove",d),d.defaultPrevented),Ua(d=>{var v;e.disabled?i(d):(u(d),d.defaultPrevented||(v=d.currentTarget)==null||v.focus())})),f=pt(d=>(t("pointerleave",d),d.defaultPrevented),Ua(d=>{i(d)})),h=pt(d=>(t("click",d),d.type!=="keydown"&&d.defaultPrevented),d=>{var v,m,y;if(e.disabled){d.stopImmediatePropagation();return}(v=o==null?void 0:o.hideOnClick)!=null&&v.value&&((m=o.handleClick)==null||m.call(o)),(y=o.commandHandler)==null||y.call(o,e.command,a,d)}),p=$(()=>({...e,...n}));return{handleClick:h,handlePointerMove:c,handlePointerLeave:f,textContent:r,propsAndAttrs:p}}});function lb(e,t,n,o,a,s){var r;const u=Ee("el-dropdown-item-impl"),i=Ee("el-roving-focus-item"),c=Ee("el-dropdown-collection-item");return k(),X(c,{disabled:e.disabled,"text-value":(r=e.textValue)!=null?r:e.textContent},{default:H(()=>[j(i,{focusable:!e.disabled},{default:H(()=>[j(u,vt(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:H(()=>[Q(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var Ii=ue(ob,[["render",lb],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const ab=se({name:"ElDropdownMenu",props:Kg,setup(e){const t=ae("dropdown"),{_elDropdownSize:n}=Pi(),o=n.value,{focusTrapRef:a,onKeydown:s}=fe(Ta,void 0),{contentRef:r,role:u,triggerId:i}=fe($l,void 0),{collectionRef:c,getItems:f}=fe(Ug,void 0),{rovingFocusGroupRef:h,rovingFocusGroupRootStyle:p,tabIndex:d,onBlur:v,onFocus:m,onMousedown:y}=fe(Ma,void 0),{collectionRef:b}=fe(Ia,void 0),C=$(()=>[t.b("menu"),t.bm("menu",o==null?void 0:o.value)]),g=fa(r,c,a,h,b),w=pt(I=>{var T;(T=e.onKeydown)==null||T.call(e,I)},I=>{const{currentTarget:T,code:B,target:O}=I;if(T.contains(O),be.tab===B&&I.stopImmediatePropagation(),I.preventDefault(),O!==l(r)||!jg.includes(B))return;const W=f().filter(Z=>!Z.disabled).map(Z=>Z.ref);Ni.includes(B)&&W.reverse(),Oa(W)});return{size:o,rovingFocusGroupRootStyle:p,tabIndex:d,dropdownKls:C,role:u,triggerId:i,dropdownListWrapperRef:g,handleKeydown:I=>{w(I),s(I)},onBlur:v,onFocus:m,onMousedown:y}}}),sb=["role","aria-labelledby"];function rb(e,t,n,o,a,s){return k(),L("ul",{ref:e.dropdownListWrapperRef,class:S(e.dropdownKls),style:$e(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:t[0]||(t[0]=(...r)=>e.onBlur&&e.onBlur(...r)),onFocus:t[1]||(t[1]=(...r)=>e.onFocus&&e.onFocus(...r)),onKeydown:t[2]||(t[2]=(...r)=>e.handleKeydown&&e.handleKeydown(...r)),onMousedown:t[3]||(t[3]=(...r)=>e.onMousedown&&e.onMousedown(...r))},[Q(e.$slots,"default")],46,sb)}var Mi=ue(ab,[["render",rb],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);const PS=je(Zg,{DropdownItem:Ii,DropdownMenu:Mi}),IS=St(Ii),MS=St(Mi),ib=pe({model:Object,rules:{type:te(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},size:{type:String,values:ho},disabled:Boolean,validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1},scrollToError:Boolean}),ub={validate:(e,t,n)=>(at(e)||Ke(e))&&It(t)&&Ke(n)};function cb(){const e=M([]),t=$(()=>{if(!e.value.length)return"0";const s=Math.max(...e.value);return s?`${s}px`:""});function n(s){return e.value.indexOf(s)}function o(s,r){if(s&&r){const u=n(r);e.value.splice(u,1,s)}else s&&e.value.push(s)}function a(s){const r=n(s);r>-1&&e.value.splice(r,1)}return{autoLabelWidth:t,registerLabelWidth:o,deregisterLabelWidth:a}}const Ho=(e,t)=>{const n=Wl(t);return n.length>0?e.filter(o=>o.prop&&n.includes(o.prop)):e},db={name:"ElForm"},fb=se({...db,props:ib,emits:ub,setup(e,{expose:t,emit:n}){const o=e,a=[],s=wt(),r=ae("form"),u=$(()=>{const{labelPosition:C,inline:g}=o;return[r.b(),r.m(s.value||"default"),{[r.m(`label-${C}`)]:C,[r.m("inline")]:g}]}),i=C=>{a.push(C)},c=C=>{C.prop&&a.splice(a.indexOf(C),1)},f=(C=[])=>{!o.model||Ho(a,C).forEach(g=>g.resetField())},h=(C=[])=>{Ho(a,C).forEach(g=>g.clearValidate())},p=$(()=>!!o.model),d=C=>{if(a.length===0)return[];const g=Ho(a,C);return g.length?g:[]},v=async C=>y(void 0,C),m=async(C=[])=>{if(!p.value)return!1;const g=d(C);if(g.length===0)return!0;let w={};for(const P of g)try{await P.validate("")}catch(I){w={...w,...I}}return Object.keys(w).length===0?!0:Promise.reject(w)},y=async(C=[],g)=>{const w=!Pt(g);try{const P=await m(C);return P===!0&&(g==null||g(P)),P}catch(P){const I=P;return o.scrollToError&&b(Object.keys(I)[0]),g==null||g(!1,I),w&&Promise.reject(I)}},b=C=>{var g;const w=Ho(a,C)[0];w&&((g=w.$el)==null||g.scrollIntoView())};return ne(()=>o.rules,()=>{o.validateOnRuleChange&&v().catch(C=>void 0)},{deep:!0}),_e(fn,rt({...Ft(o),emit:n,resetFields:f,clearValidate:h,validateField:y,addField:i,removeField:c,...cb()})),t({validate:v,validateField:y,resetFields:f,clearValidate:h,scrollToField:b}),(C,g)=>(k(),L("form",{class:S(l(u))},[Q(C.$slots,"default")],2))}});var pb=ue(fb,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);const vb=["","error","validating","success"],mb=pe({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:te([String,Array])},required:{type:Boolean,default:void 0},rules:{type:te([Object,Array])},error:String,validateStatus:{type:String,values:vb},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:ho}}),Is="ElLabelWrap";var hb=se({name:Is,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=fe(fn,void 0);fe(Ut)||Ot(Is,"usage: <el-form-item><label-wrap /></el-form-item>");const a=ae("form"),s=M(),r=M(0),u=()=>{var f;if((f=s.value)!=null&&f.firstElementChild){const h=window.getComputedStyle(s.value.firstElementChild).width;return Math.ceil(Number.parseFloat(h))}else return 0},i=(f="update")=>{ke(()=>{t.default&&e.isAutoWidth&&(f==="update"?r.value=u():f==="remove"&&(n==null||n.deregisterLabelWidth(r.value)))})},c=()=>i("update");return Re(()=>{c()}),mt(()=>{i("remove")}),Mn(()=>c()),ne(r,(f,h)=>{e.updateAll&&(n==null||n.registerLabelWidth(f,h))}),yn($(()=>{var f,h;return(h=(f=s.value)==null?void 0:f.firstElementChild)!=null?h:null}),c),()=>{var f,h;if(!t)return null;const{isAutoWidth:p}=e;if(p){const d=n==null?void 0:n.autoLabelWidth,v={};if(d&&d!=="auto"){const m=Math.max(0,Number.parseInt(d,10)-r.value),y=n.labelPosition==="left"?"marginRight":"marginLeft";m&&(v[y]=`${m}px`)}return j("div",{ref:s,class:[a.be("item","label-wrap")],style:v},[(f=t.default)==null?void 0:f.call(t)])}else return j(Pe,{ref:s},[(h=t.default)==null?void 0:h.call(t)])}}});const gb=["role","aria-labelledby"],bb={name:"ElFormItem"},yb=se({...bb,props:mb,setup(e,{expose:t}){const n=e,o=tn(),a=fe(fn,void 0),s=fe(Ut,void 0),r=wt(void 0,{formItem:!1}),u=ae("form-item"),i=cn().value,c=M([]),f=M(""),h=wu(f,100),p=M(""),d=M();let v,m=!1;const y=$(()=>{if((a==null?void 0:a.labelPosition)==="top")return{};const J=Wt(n.labelWidth||(a==null?void 0:a.labelWidth)||"");return J?{width:J}:{}}),b=$(()=>{if((a==null?void 0:a.labelPosition)==="top"||(a==null?void 0:a.inline))return{};if(!n.label&&!n.labelWidth&&O)return{};const J=Wt(n.labelWidth||(a==null?void 0:a.labelWidth)||"");return!n.label&&!o.label?{marginLeft:J}:{}}),C=$(()=>[u.b(),u.m(r.value),u.is("error",f.value==="error"),u.is("validating",f.value==="validating"),u.is("success",f.value==="success"),u.is("required",K.value||n.required),u.is("no-asterisk",a==null?void 0:a.hideRequiredAsterisk),{[u.m("feedback")]:a==null?void 0:a.statusIcon}]),g=$(()=>It(n.inlineMessage)?n.inlineMessage:(a==null?void 0:a.inlineMessage)||!1),w=$(()=>[u.e("error"),{[u.em("error","inline")]:g.value}]),P=$(()=>n.prop?Ke(n.prop)?n.prop:n.prop.join("."):""),I=$(()=>!!(n.label||o.label)),T=$(()=>n.for||c.value.length===1?c.value[0]:void 0),B=$(()=>!T.value&&I.value),O=!!s,V=$(()=>{const J=a==null?void 0:a.model;if(!(!J||!n.prop))return xo(J,n.prop).value}),W=$(()=>{const J=n.rules?Wl(n.rules):[],me=a==null?void 0:a.rules;if(me&&n.prop){const Ne=xo(me,n.prop).value;Ne&&J.push(...Wl(Ne))}return n.required!==void 0&&J.push({required:!!n.required}),J}),Z=$(()=>W.value.length>0),F=J=>W.value.filter(Ne=>!Ne.trigger||!J?!0:Array.isArray(Ne.trigger)?Ne.trigger.includes(J):Ne.trigger===J).map(({trigger:Ne,...Le})=>Le),K=$(()=>W.value.some(J=>J.required===!0)),Y=$(()=>{var J;return h.value==="error"&&n.showMessage&&((J=a==null?void 0:a.showMessage)!=null?J:!0)}),_=$(()=>`${n.label||""}${(a==null?void 0:a.labelSuffix)||""}`),D=J=>{f.value=J},A=J=>{var me,Ne;const{errors:Le,fields:Xe}=J;(!Le||!Xe)&&console.error(J),D("error"),p.value=Le?(Ne=(me=Le==null?void 0:Le[0])==null?void 0:me.message)!=null?Ne:`${n.prop} is required`:"",a==null||a.emit("validate",n.prop,!1,p.value)},N=()=>{D("success"),a==null||a.emit("validate",n.prop,!0,"")},R=async J=>{const me=P.value;return new Xu({[me]:J}).validate({[me]:V.value},{firstFields:!0}).then(()=>(N(),!0)).catch(Le=>(A(Le),Promise.reject(Le)))},G=async(J,me)=>{if(m)return m=!1,!1;const Ne=Pt(me);if(!Z.value)return me==null||me(!1),!1;const Le=F(J);return Le.length===0?(me==null||me(!0),!0):(D("validating"),R(Le).then(()=>(me==null||me(!0),!0)).catch(Xe=>{const{fields:Ze}=Xe;return me==null||me(!1,Ze),Ne?!1:Promise.reject(Ze)}))},re=()=>{D(""),p.value=""},de=async()=>{const J=a==null?void 0:a.model;if(!J||!n.prop)return;const me=xo(J,n.prop);oo(me.value,v)||(m=!0),me.value=xa(v),await ke(),re()},ye=J=>{c.value.includes(J)||c.value.push(J)},ge=J=>{c.value=c.value.filter(me=>me!==J)};ne(()=>n.error,J=>{p.value=J||"",D(J?"error":"")},{immediate:!0}),ne(()=>n.validateStatus,J=>D(J||""));const Te=rt({...Ft(n),$el:d,size:r,validateState:f,labelId:i,inputIds:c,isGroup:B,addInputId:ye,removeInputId:ge,resetField:de,clearValidate:re,validate:G});return _e(Ut,Te),Re(()=>{n.prop&&(a==null||a.addField(Te),v=xa(V.value))}),mt(()=>{a==null||a.removeField(Te)}),t({size:r,validateMessage:p,validateState:f,validate:G,clearValidate:re,resetField:de}),(J,me)=>{var Ne;return k(),L("div",{ref_key:"formItemRef",ref:d,class:S(l(C)),role:l(B)?"group":void 0,"aria-labelledby":l(B)?l(i):void 0},[j(l(hb),{"is-auto-width":l(y).width==="auto","update-all":((Ne=l(a))==null?void 0:Ne.labelWidth)==="auto"},{default:H(()=>[l(I)?(k(),X(Ve(l(T)?"label":"div"),{key:0,id:l(i),for:l(T),class:S(l(u).e("label")),style:$e(l(y))},{default:H(()=>[Q(J.$slots,"label",{label:l(_)},()=>[Ge(ce(l(_)),1)])]),_:3},8,["id","for","class","style"])):q("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),x("div",{class:S(l(u).e("content")),style:$e(l(b))},[Q(J.$slots,"default"),j(kt,{name:`${l(u).namespace.value}-zoom-in-top`},{default:H(()=>[l(Y)?Q(J.$slots,"error",{key:0,error:p.value},()=>[x("div",{class:S(l(w))},ce(p.value),3)]):q("v-if",!0)]),_:3},8,["name"])],6)],10,gb)}}});var Oi=ue(yb,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const OS=je(pb,{FormItem:Oi}),AS=St(Oi),Cb=pe({urlList:{type:te(Array),default:()=>yt([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:{type:Boolean,default:!1},teleported:{type:Boolean,default:!1},closeOnPressEscape:{type:Boolean,default:!0}}),wb={close:()=>!0,switch:e=>He(e)},kb=["src"],Sb={name:"ElImageViewer"},Eb=se({...Sb,props:Cb,emits:wb,setup(e,{emit:t}){const n=e,o={CONTAIN:{name:"contain",icon:Ha(Mu)},ORIGINAL:{name:"original",icon:Ha(Ou)}},a=kc()?"DOMMouseScroll":"mousewheel",{t:s}=Je(),r=ae("image-viewer"),{nextZIndex:u}=An(),i=M(),c=M([]),f=vu(),h=M(!0),p=M(n.initialIndex),d=Kt(o.CONTAIN),v=M({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),m=$(()=>{const{urlList:_}=n;return _.length<=1}),y=$(()=>p.value===0),b=$(()=>p.value===n.urlList.length-1),C=$(()=>n.urlList[p.value]),g=$(()=>{const{scale:_,deg:D,offsetX:A,offsetY:N,enableTransition:R}=v.value;let G=A/_,re=N/_;switch(D%360){case 90:case-270:[G,re]=[re,-G];break;case 180:case-180:[G,re]=[-G,-re];break;case 270:case-90:[G,re]=[-re,G];break}const de={transform:`scale(${_}) rotate(${D}deg) translate(${G}px, ${re}px)`,transition:R?"transform .3s":""};return d.value.name===o.CONTAIN.name&&(de.maxWidth=de.maxHeight="100%"),de}),w=$(()=>He(n.zIndex)?n.zIndex:u());function P(){T(),t("close")}function I(){const _=Pl(A=>{switch(A.code){case be.esc:n.closeOnPressEscape&&P();break;case be.space:Z();break;case be.left:F();break;case be.up:Y("zoomIn");break;case be.right:K();break;case be.down:Y("zoomOut");break}}),D=Pl(A=>{(A.wheelDelta?A.wheelDelta:-A.detail)>0?Y("zoomIn",{zoomRate:1.2,enableTransition:!1}):Y("zoomOut",{zoomRate:1.2,enableTransition:!1})});f.run(()=>{Vt(document,"keydown",_),Vt(document,a,D)})}function T(){f.stop()}function B(){h.value=!1}function O(_){h.value=!1,_.target.alt=s("el.image.error")}function V(_){if(h.value||_.button!==0||!i.value)return;v.value.enableTransition=!1;const{offsetX:D,offsetY:A}=v.value,N=_.pageX,R=_.pageY,G=Pl(de=>{v.value={...v.value,offsetX:D+de.pageX-N,offsetY:A+de.pageY-R}}),re=Vt(document,"mousemove",G);Vt(document,"mouseup",()=>{re()}),_.preventDefault()}function W(){v.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function Z(){if(h.value)return;const _=rl(o),D=Object.values(o),A=d.value.name,R=(D.findIndex(G=>G.name===A)+1)%_.length;d.value=o[_[R]],W()}function F(){if(y.value&&!n.infinite)return;const _=n.urlList.length;p.value=(p.value-1+_)%_}function K(){if(b.value&&!n.infinite)return;const _=n.urlList.length;p.value=(p.value+1)%_}function Y(_,D={}){if(h.value)return;const{zoomRate:A,rotateDeg:N,enableTransition:R}={zoomRate:1.4,rotateDeg:90,enableTransition:!0,...D};switch(_){case"zoomOut":v.value.scale>.2&&(v.value.scale=Number.parseFloat((v.value.scale/A).toFixed(3)));break;case"zoomIn":v.value.scale<7&&(v.value.scale=Number.parseFloat((v.value.scale*A).toFixed(3)));break;case"clockwise":v.value.deg+=N;break;case"anticlockwise":v.value.deg-=N;break}v.value.enableTransition=R}return ne(C,()=>{ke(()=>{const _=c.value[0];_!=null&&_.complete||(h.value=!0)})}),ne(p,_=>{W(),t("switch",_)}),Re(()=>{var _,D;I(),(D=(_=i.value)==null?void 0:_.focus)==null||D.call(_)}),(_,D)=>(k(),X(ml,{to:"body",disabled:!_.teleported},[j(kt,{name:"viewer-fade",appear:""},{default:H(()=>[x("div",{ref_key:"wrapper",ref:i,tabindex:-1,class:S(l(r).e("wrapper")),style:$e({zIndex:l(w)})},[x("div",{class:S(l(r).e("mask")),onClick:D[0]||(D[0]=Oe(A=>_.hideOnClickModal&&P(),["self"]))},null,2),q(" CLOSE "),x("span",{class:S([l(r).e("btn"),l(r).e("close")]),onClick:P},[j(l(ve),null,{default:H(()=>[j(l(Qt))]),_:1})],2),q(" ARROW "),l(m)?q("v-if",!0):(k(),L(Pe,{key:0},[x("span",{class:S([l(r).e("btn"),l(r).e("prev"),l(r).is("disabled",!_.infinite&&l(y))]),onClick:F},[j(l(ve),null,{default:H(()=>[j(l(to))]),_:1})],2),x("span",{class:S([l(r).e("btn"),l(r).e("next"),l(r).is("disabled",!_.infinite&&l(b))]),onClick:K},[j(l(ve),null,{default:H(()=>[j(l(sn))]),_:1})],2)],64)),q(" ACTIONS "),x("div",{class:S([l(r).e("btn"),l(r).e("actions")])},[x("div",{class:S(l(r).e("actions__inner"))},[j(l(ve),{onClick:D[1]||(D[1]=A=>Y("zoomOut"))},{default:H(()=>[j(l(Au))]),_:1}),j(l(ve),{onClick:D[2]||(D[2]=A=>Y("zoomIn"))},{default:H(()=>[j(l(tr))]),_:1}),x("i",{class:S(l(r).e("actions__divider"))},null,2),j(l(ve),{onClick:Z},{default:H(()=>[(k(),X(Ve(l(d).icon)))]),_:1}),x("i",{class:S(l(r).e("actions__divider"))},null,2),j(l(ve),{onClick:D[3]||(D[3]=A=>Y("anticlockwise"))},{default:H(()=>[j(l(Bu))]),_:1}),j(l(ve),{onClick:D[4]||(D[4]=A=>Y("clockwise"))},{default:H(()=>[j(l(Du))]),_:1})],2)],2),q(" CANVAS "),x("div",{class:S(l(r).e("canvas"))},[(k(!0),L(Pe,null,ot(_.urlList,(A,N)=>Ie((k(),L("img",{ref_for:!0,ref:R=>c.value[N]=R,key:A,src:A,style:$e(l(g)),class:S(l(r).e("img")),onLoad:B,onError:O,onMousedown:V},null,46,kb)),[[Ye,N===p.value]])),128))],2),Q(_.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var $b=ue(Eb,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue"]]);const Tb=je($b),Nb=pe({hideOnClickModal:{type:Boolean,default:!1},src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:{type:Boolean,default:!1},scrollContainer:{type:te([String,Object])},previewSrcList:{type:te(Array),default:()=>yt([])},previewTeleported:{type:Boolean,default:!1},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0}}),Pb={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>He(e),close:()=>!0},Ib=["src","loading"],Mb={key:0},Ob={name:"ElImage",inheritAttrs:!1},Ab=se({...Ob,props:Nb,emits:Pb,setup(e,{emit:t}){const n=e;let o="";const{t:a}=Je(),s=ae("image"),r=Bo(),u=pa(),i=M(),c=M(!1),f=M(!0),h=M(!1),p=M(),d=M(),v=We&&"loading"in HTMLImageElement.prototype;let m,y;const b=$(()=>r.style),C=$(()=>{const{fit:D}=n;return We&&D?{objectFit:D}:{}}),g=$(()=>{const{previewSrcList:D}=n;return Array.isArray(D)&&D.length>0}),w=$(()=>{const{previewSrcList:D,initialIndex:A}=n;let N=A;return A>D.length-1&&(N=0),N}),P=$(()=>n.loading==="eager"?!1:!v&&n.loading==="lazy"||n.lazy),I=()=>{!We||(f.value=!0,c.value=!1,i.value=n.src)};function T(D){f.value=!1,c.value=!1,t("load",D)}function B(D){f.value=!1,c.value=!0,t("error",D)}function O(){lc(p.value,d.value)&&(I(),Z())}const V=ku(O,200);async function W(){var D;if(!We)return;await ke();const{scrollContainer:A}=n;gn(A)?d.value=A:Ke(A)&&A!==""?d.value=(D=document.querySelector(A))!=null?D:void 0:p.value&&(d.value=fc(p.value)),d.value&&(m=Vt(d,"scroll",V),setTimeout(()=>O(),100))}function Z(){!We||!d.value||!V||(m==null||m(),d.value=void 0)}function F(D){if(!!D.ctrlKey){if(D.deltaY<0)return D.preventDefault(),!1;if(D.deltaY>0)return D.preventDefault(),!1}}function K(){!g.value||(y=Vt("wheel",F,{passive:!1}),o=document.body.style.overflow,document.body.style.overflow="hidden",h.value=!0)}function Y(){y==null||y(),document.body.style.overflow=o,h.value=!1,t("close")}function _(D){t("switch",D)}return ne(()=>n.src,()=>{P.value?(f.value=!0,c.value=!1,Z(),W()):I()}),Re(()=>{P.value?W():I()}),(D,A)=>(k(),L("div",{ref_key:"container",ref:p,class:S([l(s).b(),D.$attrs.class]),style:$e(l(b))},[i.value!==void 0&&!c.value?(k(),L("img",vt({key:0},l(u),{src:i.value,loading:D.loading,style:l(C),class:[l(s).e("inner"),l(g)&&l(s).e("preview"),f.value&&l(s).is("loading")],onClick:K,onLoad:T,onError:B}),null,16,Ib)):q("v-if",!0),f.value||c.value?(k(),L("div",{key:1,class:S(l(s).e("wrapper"))},[f.value?Q(D.$slots,"placeholder",{key:0},()=>[x("div",{class:S(l(s).e("placeholder"))},null,2)]):c.value?Q(D.$slots,"error",{key:1},()=>[x("div",{class:S(l(s).e("error"))},ce(l(a)("el.image.error")),3)]):q("v-if",!0)],2)):q("v-if",!0),l(g)?(k(),L(Pe,{key:2},[h.value?(k(),X(l(Tb),{key:0,"z-index":D.zIndex,"initial-index":l(w),infinite:D.infinite,"url-list":D.previewSrcList,"hide-on-click-modal":D.hideOnClickModal,teleported:D.previewTeleported,"close-on-press-escape":D.closeOnPressEscape,onClose:Y,onSwitch:_},{default:H(()=>[D.$slots.viewer?(k(),L("div",Mb,[Q(D.$slots,"viewer")])):q("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):q("v-if",!0)],64)):q("v-if",!0)],6))}});var Bb=ue(Ab,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image/src/image.vue"]]);const BS=je(Bb),Db=pe({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:Cn,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||He(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}}),Lb={[en]:(e,t)=>e!==t,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[Kn]:e=>He(e)||rn(e),[qe]:e=>He(e)||rn(e)},Rb=["aria-label","onKeydown"],_b=["aria-label","onKeydown"],Fb={name:"ElInputNumber"},zb=se({...Fb,props:Db,emits:Lb,setup(e,{expose:t,emit:n}){const o=e,{t:a}=Je(),s=ae("input-number"),r=M(),u=rt({currentValue:o.modelValue,userInput:null}),{formItem:i}=Ro(),c=$(()=>He(o.modelValue)&&C(o.modelValue,-1)<o.min),f=$(()=>He(o.modelValue)&&C(o.modelValue)>o.max),h=$(()=>{const F=b(o.step);return Jt(o.precision)?Math.max(b(o.modelValue),F):(F>o.precision,o.precision)}),p=$(()=>o.controls&&o.controlsPosition==="right"),d=wt(),v=On(),m=$(()=>{if(u.userInput!==null)return u.userInput;let F=u.currentValue;if(rn(F))return"";if(He(F)){if(Number.isNaN(F))return"";Jt(o.precision)||(F=F.toFixed(o.precision))}return F}),y=(F,K)=>{if(Jt(K)&&(K=h.value),K===0)return Math.round(F);let Y=String(F);const _=Y.indexOf(".");if(_===-1||!Y.replace(".","").split("")[_+K])return F;const N=Y.length;return Y.charAt(N-1)==="5"&&(Y=`${Y.slice(0,Math.max(0,N-1))}6`),Number.parseFloat(Number(Y).toFixed(K))},b=F=>{if(rn(F))return 0;const K=F.toString(),Y=K.indexOf(".");let _=0;return Y!==-1&&(_=K.length-Y-1),_},C=(F,K=1)=>He(F)?y(F+o.step*K):u.currentValue,g=()=>{if(v.value||f.value)return;const F=o.modelValue||0,K=C(F);I(K)},w=()=>{if(v.value||c.value)return;const F=o.modelValue||0,K=C(F,-1);I(K)},P=(F,K)=>{const{max:Y,min:_,step:D,precision:A,stepStrictly:N,valueOnClear:R}=o;let G=Number(F);if(rn(F)||Number.isNaN(G))return null;if(F===""){if(R===null)return null;G=Ke(R)?{min:_,max:Y}[R]:R}return N&&(G=y(Math.round(G/D)*D,A)),Jt(A)||(G=y(G,A)),(G>Y||G<_)&&(G=G>Y?Y:_,K&&n("update:modelValue",G)),G},I=F=>{var K;const Y=u.currentValue,_=P(F);Y!==_&&(u.userInput=null,n("update:modelValue",_),n("input",_),n("change",_,Y),o.validateEvent&&((K=i==null?void 0:i.validate)==null||K.call(i,"change").catch(D=>void 0)),u.currentValue=_)},T=F=>u.userInput=F,B=F=>{const K=F!==""?Number(F):"";(He(K)&&!Number.isNaN(K)||F==="")&&I(K),u.userInput=null},O=()=>{var F,K;(K=(F=r.value)==null?void 0:F.focus)==null||K.call(F)},V=()=>{var F,K;(K=(F=r.value)==null?void 0:F.blur)==null||K.call(F)},W=F=>{n("focus",F)},Z=F=>{var K;n("blur",F),o.validateEvent&&((K=i==null?void 0:i.validate)==null||K.call(i,"blur").catch(Y=>void 0))};return ne(()=>o.modelValue,F=>{u.currentValue=P(F,!0),u.userInput=null},{immediate:!0}),Re(()=>{var F;const{min:K,max:Y,modelValue:_}=o,D=(F=r.value)==null?void 0:F.input;if(D.setAttribute("role","spinbutton"),Number.isFinite(Y)?D.setAttribute("aria-valuemax",String(Y)):D.removeAttribute("aria-valuemax"),Number.isFinite(K)?D.setAttribute("aria-valuemin",String(K)):D.removeAttribute("aria-valuemin"),D.setAttribute("aria-valuenow",String(u.currentValue)),D.setAttribute("aria-disabled",String(v.value)),!He(_)&&_!=null){let A=Number(_);Number.isNaN(A)&&(A=null),n("update:modelValue",A)}}),Mn(()=>{var F;const K=(F=r.value)==null?void 0:F.input;K==null||K.setAttribute("aria-valuenow",`${u.currentValue}`)}),t({focus:O,blur:V}),(F,K)=>(k(),L("div",{class:S([l(s).b(),l(s).m(l(d)),l(s).is("disabled",l(v)),l(s).is("without-controls",!F.controls),l(s).is("controls-right",l(p))]),onDragstart:K[0]||(K[0]=Oe(()=>{},["prevent"]))},[F.controls?Ie((k(),L("span",{key:0,role:"button","aria-label":l(a)("el.inputNumber.decrease"),class:S([l(s).e("decrease"),l(s).is("disabled",l(c))]),onKeydown:xe(w,["enter"])},[j(l(ve),null,{default:H(()=>[l(p)?(k(),X(l(mo),{key:0})):(k(),X(l(Lu),{key:1}))]),_:1})],42,Rb)),[[l(cl),w]]):q("v-if",!0),F.controls?Ie((k(),L("span",{key:1,role:"button","aria-label":l(a)("el.inputNumber.increase"),class:S([l(s).e("increase"),l(s).is("disabled",l(f))]),onKeydown:xe(g,["enter"])},[j(l(ve),null,{default:H(()=>[l(p)?(k(),X(l(gl),{key:0})):(k(),X(l(nr),{key:1}))]),_:1})],42,_b)),[[l(cl),g]]):q("v-if",!0),j(l(Ht),{id:F.id,ref_key:"input",ref:r,type:"number",step:F.step,"model-value":l(m),placeholder:F.placeholder,disabled:l(v),size:l(d),max:F.max,min:F.min,name:F.name,label:F.label,"validate-event":!1,onKeydown:[xe(Oe(g,["prevent"]),["up"]),xe(Oe(w,["prevent"]),["down"])],onBlur:Z,onFocus:W,onInput:T,onChange:B},null,8,["id","step","model-value","placeholder","disabled","size","max","min","name","label","onKeydown"])],34))}});var Vb=ue(zb,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);const DS=je(Vb),Hb=pe({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:_t,default:""}}),Kb={click:e=>e instanceof MouseEvent},Wb=["href"],jb={name:"ElLink"},xb=se({...jb,props:Hb,emits:Kb,setup(e,{emit:t}){const n=e,o=ae("link");function a(s){n.disabled||t("click",s)}return(s,r)=>(k(),L("a",{class:S([l(o).b(),l(o).m(s.type),l(o).is("disabled",s.disabled),l(o).is("underline",s.underline&&!s.disabled)]),href:s.disabled||!s.href?void 0:s.href,onClick:a},[s.icon?(k(),X(l(ve),{key:0},{default:H(()=>[(k(),X(Ve(s.icon)))]),_:1})):q("v-if",!0),s.$slots.default?(k(),L("span",{key:1,class:S(l(o).e("inner"))},[Q(s.$slots,"default")],2)):q("v-if",!0),s.$slots.icon?Q(s.$slots,"icon",{key:2}):q("v-if",!0)],10,Wb))}});var qb=ue(xb,[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]);const LS=je(qb);class Ub{constructor(t,n){this.parent=t,this.domNode=n,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(t){t===this.subMenuItems.length?t=0:t<0&&(t=this.subMenuItems.length-1),this.subMenuItems[t].focus(),this.subIndex=t}addListeners(){const t=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,n=>{n.addEventListener("keydown",o=>{let a=!1;switch(o.code){case be.down:{this.gotoSubIndex(this.subIndex+1),a=!0;break}case be.up:{this.gotoSubIndex(this.subIndex-1),a=!0;break}case be.tab:{jo(t,"mouseleave");break}case be.enter:case be.space:{a=!0,o.currentTarget.click();break}}return a&&(o.preventDefault(),o.stopPropagation()),!1})})}}class Yb{constructor(t,n){this.domNode=t,this.submenu=null,this.submenu=null,this.init(n)}init(t){this.domNode.setAttribute("tabindex","0");const n=this.domNode.querySelector(`.${t}-menu`);n&&(this.submenu=new Ub(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let n=!1;switch(t.code){case be.down:{jo(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break}case be.up:{jo(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break}case be.tab:{jo(t.currentTarget,"mouseleave");break}case be.enter:case be.space:{n=!0,t.currentTarget.click();break}}n&&t.preventDefault()})}}class Gb{constructor(t,n){this.domNode=t,this.init(n)}init(t){const n=this.domNode.childNodes;Array.from(n).forEach(o=>{o.nodeType===1&&new Yb(o,t)})}}const Xb=se({name:"ElMenuCollapseTransition",setup(){const e=ae("menu");return{listeners:{onBeforeEnter:n=>n.style.opacity="0.2",onEnter(n,o){ln(n,`${e.namespace.value}-opacity-transition`),n.style.opacity="1",o()},onAfterEnter(n){Bt(n,`${e.namespace.value}-opacity-transition`),n.style.opacity=""},onBeforeLeave(n){n.dataset||(n.dataset={}),mn(n,e.m("collapse"))?(Bt(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),ln(n,e.m("collapse"))):(ln(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),Bt(n,e.m("collapse"))),n.style.width=`${n.scrollWidth}px`,n.style.overflow="hidden"},onLeave(n){ln(n,"horizontal-collapse-transition"),n.style.width=`${n.dataset.scrollWidth}px`}}}}});function Jb(e,t,n,o,a,s){return k(),X(kt,vt({mode:"out-in"},e.listeners),{default:H(()=>[Q(e.$slots,"default")]),_:3},16)}var Zb=ue(Xb,[["render",Jb],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function Ai(e,t){const n=$(()=>{let a=e.parent;const s=[t.value];for(;a.type.name!=="ElMenu";)a.props.index&&s.unshift(a.props.index),a=a.parent;return s});return{parentMenu:$(()=>{let a=e.parent;for(;a&&!["ElMenu","ElSubMenu"].includes(a.type.name);)a=a.parent;return a}),indexPath:n}}function Qb(e){return $(()=>{const n=e.backgroundColor;return n?new lr(n).shade(20).toString():""})}const Bi=(e,t)=>{const n=ae("menu");return $(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":Qb(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},ey=pe({index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0},popperOffset:{type:Number,default:6}}),_l="ElSubMenu";var Aa=se({name:_l,props:ey,setup(e,{slots:t,expose:n}){const o=De(),{indexPath:a,parentMenu:s}=Ai(o,$(()=>e.index)),r=ae("menu"),u=ae("sub-menu"),i=fe("rootMenu");i||Ot(_l,"can not inject root menu");const c=fe(`subMenu:${s.value.uid}`);c||Ot(_l,"can not inject sub menu");const f=M({}),h=M({});let p;const d=M(!1),v=M(),m=M(null),y=$(()=>W.value==="horizontal"&&C.value?"bottom-start":"right-start"),b=$(()=>W.value==="horizontal"&&C.value||W.value==="vertical"&&!i.props.collapse?mo:sn),C=$(()=>c.level===0),g=$(()=>e.popperAppendToBody===void 0?C.value:Boolean(e.popperAppendToBody)),w=$(()=>i.props.collapse?`${r.namespace.value}-zoom-in-left`:`${r.namespace.value}-zoom-in-top`),P=$(()=>W.value==="horizontal"&&C.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","left-start","bottom-start","bottom-end","top-start","top-end"]),I=$(()=>i.openedMenus.includes(e.index)),T=$(()=>{let N=!1;return Object.values(f.value).forEach(R=>{R.active&&(N=!0)}),Object.values(h.value).forEach(R=>{R.active&&(N=!0)}),N}),B=$(()=>i.props.backgroundColor||""),O=$(()=>i.props.activeTextColor||""),V=$(()=>i.props.textColor||""),W=$(()=>i.props.mode),Z=rt({index:e.index,indexPath:a,active:T}),F=$(()=>W.value!=="horizontal"?{color:V.value}:{borderBottomColor:T.value?i.props.activeTextColor?O.value:"":"transparent",color:T.value?O.value:V.value}),K=()=>{var N,R,G;return(G=(R=(N=m.value)==null?void 0:N.popperRef)==null?void 0:R.popperInstanceRef)==null?void 0:G.destroy()},Y=N=>{N||K()},_=()=>{i.props.menuTrigger==="hover"&&i.props.mode==="horizontal"||i.props.collapse&&i.props.mode==="vertical"||e.disabled||i.handleSubMenuClick({index:e.index,indexPath:a.value,active:T.value})},D=(N,R=e.showTimeout)=>{var G;N.type!=="focus"&&(i.props.menuTrigger==="click"&&i.props.mode==="horizontal"||!i.props.collapse&&i.props.mode==="vertical"||e.disabled||(c.mouseInChild.value=!0,p==null||p(),{stop:p}=Qn(()=>{i.openMenu(e.index,a.value)},R),g.value&&((G=s.value.vnode.el)==null||G.dispatchEvent(new MouseEvent("mouseenter")))))},A=(N=!1)=>{var R,G;i.props.menuTrigger==="click"&&i.props.mode==="horizontal"||!i.props.collapse&&i.props.mode==="vertical"||(p==null||p(),c.mouseInChild.value=!1,{stop:p}=Qn(()=>!d.value&&i.closeMenu(e.index,a.value),e.hideTimeout),g.value&&N&&((R=o.parent)==null?void 0:R.type.name)==="ElSubMenu"&&((G=c.handleMouseleave)==null||G.call(c,!0)))};ne(()=>i.props.collapse,N=>Y(Boolean(N)));{const N=G=>{h.value[G.index]=G},R=G=>{delete h.value[G.index]};_e(`subMenu:${o.uid}`,{addSubMenu:N,removeSubMenu:R,handleMouseleave:A,mouseInChild:d,level:c.level+1})}return n({opened:I}),Re(()=>{i.addSubMenu(Z),c.addSubMenu(Z)}),mt(()=>{c.removeSubMenu(Z),i.removeSubMenu(Z)}),()=>{var N;const R=[(N=t.title)==null?void 0:N.call(t),Se(ve,{class:u.e("icon-arrow")},{default:()=>Se(b.value)})],G=Bi(i.props,c.level+1),re=i.isMenuPopup?Se(wn,{ref:m,visible:I.value,effect:"light",pure:!0,offset:e.popperOffset,showArrow:!1,persistent:!0,popperClass:e.popperClass,placement:y.value,teleported:g.value,fallbackPlacements:P.value,transition:w.value,gpuAcceleration:!1},{content:()=>{var de;return Se("div",{class:[r.m(W.value),r.m("popup-container"),e.popperClass],onMouseenter:ye=>D(ye,100),onMouseleave:()=>A(!0),onFocus:ye=>D(ye,100)},[Se("ul",{class:[r.b(),r.m("popup"),r.m(`popup-${y.value}`)],style:G.value},[(de=t.default)==null?void 0:de.call(t)])])},default:()=>Se("div",{class:u.e("title"),style:[F.value,{backgroundColor:B.value}],onClick:_},R)}):Se(Pe,{},[Se("div",{class:u.e("title"),style:[F.value,{backgroundColor:B.value}],ref:v,onClick:_},R),Se(fi,{},{default:()=>{var de;return Ie(Se("ul",{role:"menu",class:[r.b(),r.m("inline")],style:G.value},[(de=t.default)==null?void 0:de.call(t)]),[[Ye,I.value]])}})]);return Se("li",{class:[u.b(),u.is("active",T.value),u.is("opened",I.value),u.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:I.value,onMouseenter:D,onMouseleave:()=>A(!0),onFocus:D},[re])}}});const ty=pe({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:te(Array),default:()=>yt([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0}}),Fl=e=>Array.isArray(e)&&e.every(t=>Ke(t)),ny={close:(e,t)=>Ke(e)&&Fl(t),open:(e,t)=>Ke(e)&&Fl(t),select:(e,t,n,o)=>Ke(e)&&Fl(t)&&Mt(n)&&(o===void 0||o instanceof Promise)};var oy=se({name:"ElMenu",props:ty,emits:ny,setup(e,{emit:t,slots:n,expose:o}){const a=De(),s=a.appContext.config.globalProperties.$router,r=M(),u=ae("menu"),i=ae("sub-menu"),c=M(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),f=M(e.defaultActive),h=M({}),p=M({}),d=$(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),v=()=>{const T=f.value&&h.value[f.value];if(!T||e.mode==="horizontal"||e.collapse)return;T.indexPath.forEach(O=>{const V=p.value[O];V&&m(O,V.indexPath)})},m=(T,B)=>{c.value.includes(T)||(e.uniqueOpened&&(c.value=c.value.filter(O=>B.includes(O))),c.value.push(T),t("open",T,B))},y=(T,B)=>{const O=c.value.indexOf(T);O!==-1&&c.value.splice(O,1),t("close",T,B)},b=({index:T,indexPath:B})=>{c.value.includes(T)?y(T,B):m(T,B)},C=T=>{(e.mode==="horizontal"||e.collapse)&&(c.value=[]);const{index:B,indexPath:O}=T;if(!(B===void 0||O===void 0))if(e.router&&s){const V=T.route||B,W=s.push(V).then(Z=>(Z||(f.value=B),Z));t("select",B,O,{index:B,indexPath:O,route:V},W)}else f.value=B,t("select",B,O,{index:B,indexPath:O})},g=T=>{const B=h.value,O=B[T]||f.value&&B[f.value]||B[e.defaultActive];O?(f.value=O.index,v()):f.value=T},w=()=>{ke(()=>a.proxy.$forceUpdate())};ne(()=>e.defaultActive,T=>{h.value[T]||(f.value=""),g(T)}),ne(h.value,()=>v()),ne(()=>e.collapse,T=>{T&&(c.value=[])});{const T=W=>{p.value[W.index]=W},B=W=>{delete p.value[W.index]};_e("rootMenu",rt({props:e,openedMenus:c,items:h,subMenus:p,activeIndex:f,isMenuPopup:d,addMenuItem:W=>{h.value[W.index]=W},removeMenuItem:W=>{delete h.value[W.index]},addSubMenu:T,removeSubMenu:B,openMenu:m,closeMenu:y,handleMenuItemClick:C,handleSubMenuClick:b})),_e(`subMenu:${a.uid}`,{addSubMenu:T,removeSubMenu:B,mouseInChild:M(!1),level:0})}Re(()=>{v(),e.mode==="horizontal"&&new Gb(a.vnode.el,u.namespace.value)}),o({open:B=>{const{indexPath:O}=p.value[B];O.forEach(V=>m(V,O))},close:y,handleResize:w});const P=T=>{const B=Array.isArray(T)?T:[T],O=[];return B.forEach(V=>{Array.isArray(V.children)?O.push(...P(V.children)):O.push(V)}),O},I=T=>e.mode==="horizontal"?Ie(T,[[yv,w]]):T;return()=>{var T,B,O,V;let W=(B=(T=n.default)==null?void 0:T.call(n))!=null?B:[];const Z=[];if(e.mode==="horizontal"&&r.value){const _=Array.from((V=(O=r.value)==null?void 0:O.childNodes)!=null?V:[]).filter(Te=>Te.nodeName!=="#text"||Te.nodeValue),D=P(W),A=64,N=Number.parseInt(getComputedStyle(r.value).paddingLeft,10),R=Number.parseInt(getComputedStyle(r.value).paddingRight,10),G=r.value.clientWidth-N-R;let re=0,de=0;_.forEach((Te,J)=>{re+=Te.offsetWidth||0,re<=G-A&&(de=J+1)});const ye=D.slice(0,de),ge=D.slice(de);(ge==null?void 0:ge.length)&&e.ellipsis&&(W=ye,Z.push(Se(Aa,{index:"sub-menu-more",class:i.e("hide-arrow")},{title:()=>Se(ve,{class:i.e("icon-more")},{default:()=>Se(Ru)}),default:()=>ge})))}const F=Bi(e,0),Y=(_=>e.ellipsis?I(_):_)(Se("ul",{key:String(e.collapse),role:"menubar",ref:r,style:F.value,class:{[u.b()]:!0,[u.m(e.mode)]:!0,[u.m("collapse")]:e.collapse}},[...W,...Z]));return e.collapseTransition&&e.mode==="vertical"?Se(Zb,()=>Y):Y}}});const ly=pe({index:{type:te([String,null]),default:null},route:{type:te([String,Object])},disabled:Boolean}),ay={click:e=>Ke(e.index)&&Array.isArray(e.indexPath)},zl="ElMenuItem",sy=se({name:zl,components:{ElTooltip:wn},props:ly,emits:ay,setup(e,{emit:t}){const n=De(),o=fe("rootMenu"),a=ae("menu"),s=ae("menu-item");o||Ot(zl,"can not inject root menu");const{parentMenu:r,indexPath:u}=Ai(n,ct(e,"index")),i=fe(`subMenu:${r.value.uid}`);i||Ot(zl,"can not inject sub menu");const c=$(()=>e.index===o.activeIndex),f=rt({index:e.index,indexPath:u,active:c}),h=()=>{e.disabled||(o.handleMenuItemClick({index:e.index,indexPath:u.value,route:e.route}),t("click",f))};return Re(()=>{i.addSubMenu(f),o.addMenuItem(f)}),mt(()=>{i.removeSubMenu(f),o.removeMenuItem(f)}),{Effect:Nd,parentMenu:r,rootMenu:o,active:c,nsMenu:a,nsMenuItem:s,handleClick:h}}});function ry(e,t,n,o,a,s){const r=Ee("el-tooltip");return k(),L("li",{class:S([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:t[0]||(t[0]=(...u)=>e.handleClick&&e.handleClick(...u))},[e.parentMenu.type.name==="ElMenu"&&e.rootMenu.props.collapse&&e.$slots.title?(k(),X(r,{key:0,effect:e.Effect.DARK,placement:"right","fallback-placements":["left"],persistent:""},{content:H(()=>[Q(e.$slots,"title")]),default:H(()=>[x("div",{class:S(e.nsMenu.be("tooltip","trigger"))},[Q(e.$slots,"default")],2)]),_:3},8,["effect"])):(k(),L(Pe,{key:1},[Q(e.$slots,"default"),Q(e.$slots,"title")],64))],2)}var Di=ue(sy,[["render",ry],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const iy={title:String},uy="ElMenuItemGroup",cy=se({name:uy,props:iy,setup(){return{ns:ae("menu-item-group")}}});function dy(e,t,n,o,a,s){return k(),L("li",{class:S(e.ns.b())},[x("div",{class:S(e.ns.e("title"))},[e.$slots.title?Q(e.$slots,"title",{key:1}):(k(),L(Pe,{key:0},[Ge(ce(e.title),1)],64))],2),x("ul",null,[Q(e.$slots,"default")])],2)}var Li=ue(cy,[["render",dy],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const RS=je(oy,{MenuItem:Di,MenuItemGroup:Li,SubMenu:Aa}),_S=St(Di);St(Li);const FS=St(Aa),fy=pe({icon:{type:_t,default:()=>_u},title:String,content:{type:String,default:""}}),py={back:()=>!0},vy={name:"ElPageHeader"},my=se({...vy,props:fy,emits:py,setup(e,{emit:t}){const{t:n}=Je(),o=ae("page-header");function a(){t("back")}return(s,r)=>(k(),L("div",{class:S(l(o).b())},[x("div",{class:S(l(o).e("left")),onClick:a},[s.icon||s.$slots.icon?(k(),L("div",{key:0,class:S(l(o).e("icon"))},[Q(s.$slots,"icon",{},()=>[s.icon?(k(),X(l(ve),{key:0},{default:H(()=>[(k(),X(Ve(s.icon)))]),_:1})):q("v-if",!0)])],2)):q("v-if",!0),x("div",{class:S(l(o).e("title"))},[Q(s.$slots,"title",{},()=>[Ge(ce(s.title||l(n)("el.pageHeader.title")),1)])],2)],2),x("div",{class:S(l(o).e("content"))},[Q(s.$slots,"content",{},()=>[Ge(ce(s.content),1)])],2)],2))}});var hy=ue(my,[["__file","/home/runner/work/element-plus/element-plus/packages/components/page-header/src/page-header.vue"]]);const zS=je(hy),gy=pe({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String}}),by={click:e=>e instanceof MouseEvent},yy=["disabled","aria-disabled"],Cy={key:0},wy={name:"ElPaginationPrev"},ky=se({...wy,props:gy,emits:by,setup(e){const t=e,n=$(()=>t.disabled||t.currentPage<=1);return(o,a)=>(k(),L("button",{type:"button",class:"btn-prev",disabled:l(n),"aria-disabled":l(n),onClick:a[0]||(a[0]=s=>o.$emit("click",s))},[o.prevText?(k(),L("span",Cy,ce(o.prevText),1)):(k(),X(l(ve),{key:1},{default:H(()=>[j(l(to))]),_:1}))],8,yy))}});var Sy=ue(ky,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/prev.vue"]]);const Ey=pe({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String}}),$y=["disabled","aria-disabled"],Ty={key:0},Ny={name:"ElPaginationNext"},Py=se({...Ny,props:Ey,emits:["click"],setup(e){const t=e,n=$(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(o,a)=>(k(),L("button",{type:"button",class:"btn-next",disabled:l(n),"aria-disabled":l(n),onClick:a[0]||(a[0]=s=>o.$emit("click",s))},[o.nextText?(k(),L("span",Ty,ce(o.nextText),1)):(k(),X(l(ve),{key:1},{default:H(()=>[j(l(sn))]),_:1}))],8,$y))}});var Iy=ue(Py,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/next.vue"]]);const Ri="ElSelectGroup",Tl="ElSelect";function My(e,t){const n=fe(Tl),o=fe(Ri,{disabled:!1}),a=$(()=>Object.prototype.toString.call(e.value).toLowerCase()==="[object object]"),s=$(()=>n.props.multiple?h(n.props.modelValue,e.value):p(e.value,n.props.modelValue)),r=$(()=>{if(n.props.multiple){const m=n.props.modelValue||[];return!s.value&&m.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),u=$(()=>e.label||(a.value?"":e.value)),i=$(()=>e.value||e.label||""),c=$(()=>e.disabled||t.groupDisabled||r.value),f=De(),h=(m=[],y)=>{if(a.value){const b=n.props.valueKey;return m&&m.some(C=>Tt(C,b)===Tt(y,b))}else return m&&m.includes(y)},p=(m,y)=>{if(a.value){const{valueKey:b}=n.props;return Tt(m,b)===Tt(y,b)}else return m===y},d=()=>{!e.disabled&&!o.disabled&&(n.hoverIndex=n.optionsArray.indexOf(f.proxy))};ne(()=>u.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),ne(()=>e.value,(m,y)=>{const{remote:b,valueKey:C}=n.props;if(!e.created&&!b){if(C&&typeof m=="object"&&typeof y=="object"&&m[C]===y[C])return;n.setSelected()}}),ne(()=>o.disabled,()=>{t.groupDisabled=o.disabled},{immediate:!0});const{queryChange:v}=Xs(n);return ne(v,m=>{const{query:y}=l(m),b=new RegExp(ic(y),"i");t.visible=b.test(u.value)||e.created,t.visible||n.filteredOptionsCount--}),{select:n,currentLabel:u,currentValue:i,itemSelected:s,isDisabled:c,hoverItem:d}}const Oy=se({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},setup(e){const t=ae("select"),n=rt({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:o,itemSelected:a,isDisabled:s,select:r,hoverItem:u}=My(e,n),{visible:i,hover:c}=Ft(n),f=De().proxy,h=f.value;r.onOptionCreate(f),mt(()=>{const{selected:d}=r,m=(r.props.multiple?d:[d]).some(y=>y.value===f.value);r.cachedOptions.get(h)===f&&!m&&ke(()=>{r.cachedOptions.delete(h)}),r.onOptionDestroy(h,f)});function p(){e.disabled!==!0&&n.groupDisabled!==!0&&r.handleOptionSelect(f,!0)}return{ns:t,currentLabel:o,itemSelected:a,isDisabled:s,select:r,hoverItem:u,visible:i,hover:c,selectOptionClick:p,states:n}}});function Ay(e,t,n,o,a,s){return Ie((k(),L("li",{class:S([e.ns.be("dropdown","item"),e.ns.is("disabled",e.isDisabled),{selected:e.itemSelected,hover:e.hover}]),onMouseenter:t[0]||(t[0]=(...r)=>e.hoverItem&&e.hoverItem(...r)),onClick:t[1]||(t[1]=Oe((...r)=>e.selectOptionClick&&e.selectOptionClick(...r),["stop"]))},[Q(e.$slots,"default",{},()=>[x("span",null,ce(e.currentLabel),1)])],34)),[[Ye,e.visible]])}var Ba=ue(Oy,[["render",Ay],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const By=se({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=fe(Tl),t=ae("select"),n=$(()=>e.props.popperClass),o=$(()=>e.props.multiple),a=$(()=>e.props.fitInputWidth),s=M("");function r(){var u;s.value=`${(u=e.selectWrapper)==null?void 0:u.offsetWidth}px`}return Re(()=>{r(),yn(e.selectWrapper,r)}),{ns:t,minWidth:s,popperClass:n,isMultiple:o,isFitInputWidth:a}}});function Dy(e,t,n,o,a,s){return k(),L("div",{class:S([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:$e({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[Q(e.$slots,"default")],6)}var Ly=ue(By,[["render",Dy],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function Ry(e){const{t}=Je();return rt({options:new Map,cachedOptions:new Map,createdLabel:null,createdSelected:!1,selected:e.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:t("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1,prefixWidth:11,tagInMultiLine:!1})}const _y=(e,t,n)=>{const{t:o}=Je(),a=ae("select"),s=M(null),r=M(null),u=M(null),i=M(null),c=M(null),f=M(null),h=M(-1),p=Kt({query:""}),d=Kt(""),v=fe(fn,{}),m=fe(Ut,{}),y=$(()=>!e.filterable||e.multiple||!t.visible),b=$(()=>e.disabled||v.disabled),C=$(()=>{const E=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:e.modelValue!==void 0&&e.modelValue!==null&&e.modelValue!=="";return e.clearable&&!b.value&&t.inputHovering&&E}),g=$(()=>e.remote&&e.filterable?"":e.suffixIcon),w=$(()=>a.is("reverse",g.value&&t.visible)),P=$(()=>e.remote?300:0),I=$(()=>e.loading?e.loadingText||o("el.select.loading"):e.remote&&t.query===""&&t.options.size===0?!1:e.filterable&&t.query&&t.options.size>0&&t.filteredOptionsCount===0?e.noMatchText||o("el.select.noMatch"):t.options.size===0?e.noDataText||o("el.select.noData"):null),T=$(()=>Array.from(t.options.values())),B=$(()=>Array.from(t.cachedOptions.values())),O=$(()=>{const E=T.value.filter(z=>!z.created).some(z=>z.currentLabel===t.query);return e.filterable&&e.allowCreate&&t.query!==""&&!E}),V=wt(),W=$(()=>["small"].includes(V.value)?"small":"default"),Z=$({get(){return t.visible&&I.value!==!1},set(E){t.visible=E}});ne([()=>b.value,()=>V.value,()=>v.size],()=>{ke(()=>{F()})}),ne(()=>e.placeholder,E=>{t.cachedPlaceHolder=t.currentPlaceholder=E}),ne(()=>e.modelValue,(E,z)=>{var ee;e.multiple&&(F(),E&&E.length>0||r.value&&t.query!==""?t.currentPlaceholder="":t.currentPlaceholder=t.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(t.query="",K(t.query))),D(),e.filterable&&!e.multiple&&(t.inputLength=20),!oo(E,z)&&e.validateEvent&&((ee=m.validate)==null||ee.call(m,"change").catch(he=>void 0))},{flush:"post",deep:!0}),ne(()=>t.visible,E=>{var z,ee,he;E?((ee=(z=u.value)==null?void 0:z.updatePopper)==null||ee.call(z),e.filterable&&(t.filteredOptionsCount=t.optionsCount,t.query=e.remote?"":t.selectedLabel,e.multiple?(he=r.value)==null||he.focus():t.selectedLabel&&(t.currentPlaceholder=`${t.selectedLabel}`,t.selectedLabel=""),K(t.query),!e.multiple&&!e.remote&&(p.value.query="",wo(p),wo(d)))):(r.value&&r.value.blur(),t.query="",t.previousQuery=null,t.selectedLabel="",t.inputLength=20,t.menuVisibleOnFocus=!1,N(),ke(()=>{r.value&&r.value.value===""&&t.selected.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}),e.multiple||(t.selected&&(e.filterable&&e.allowCreate&&t.createdSelected&&t.createdLabel?t.selectedLabel=t.createdLabel:t.selectedLabel=t.selected.currentLabel,e.filterable&&(t.query=t.selectedLabel)),e.filterable&&(t.currentPlaceholder=t.cachedPlaceHolder))),n.emit("visible-change",E)}),ne(()=>t.options.entries(),()=>{var E,z,ee;if(!We)return;(z=(E=u.value)==null?void 0:E.updatePopper)==null||z.call(E),e.multiple&&F();const he=((ee=c.value)==null?void 0:ee.querySelectorAll("input"))||[];Array.from(he).includes(document.activeElement)||D(),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&_()},{flush:"post"}),ne(()=>t.hoverIndex,E=>{typeof E=="number"&&E>-1&&(h.value=T.value[E]||{}),T.value.forEach(z=>{z.hover=h.value===z})});const F=()=>{e.collapseTags&&!e.filterable||ke(()=>{var E,z;if(!s.value)return;const ee=s.value.$el.querySelector("input"),he=i.value,ie=wc(V.value||v.size);ee.style.height=`${(t.selected.length===0?ie:Math.max(he?he.clientHeight+(he.clientHeight>ie?6:0):0,ie))-2}px`,t.tagInMultiLine=Number.parseFloat(ee.style.height)>=ie,t.visible&&I.value!==!1&&((z=(E=u.value)==null?void 0:E.updatePopper)==null||z.call(E))})},K=E=>{if(!(t.previousQuery===E||t.isOnComposition)){if(t.previousQuery===null&&(typeof e.filterMethod=="function"||typeof e.remoteMethod=="function")){t.previousQuery=E;return}t.previousQuery=E,ke(()=>{var z,ee;t.visible&&((ee=(z=u.value)==null?void 0:z.updatePopper)==null||ee.call(z))}),t.hoverIndex=-1,e.multiple&&e.filterable&&ke(()=>{const z=r.value.value.length*15+20;t.inputLength=e.collapseTags?Math.min(50,z):z,Y(),F()}),e.remote&&typeof e.remoteMethod=="function"?(t.hoverIndex=-1,e.remoteMethod(E)):typeof e.filterMethod=="function"?(e.filterMethod(E),wo(d)):(t.filteredOptionsCount=t.optionsCount,p.value.query=E,wo(p),wo(d)),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&_()}},Y=()=>{t.currentPlaceholder!==""&&(t.currentPlaceholder=r.value.value?"":t.cachedPlaceHolder)},_=()=>{const E=T.value.filter(he=>he.visible&&!he.disabled&&!he.states.groupDisabled),z=E.find(he=>he.created),ee=E[0];t.hoverIndex=Le(T.value,z||ee)},D=()=>{var E;if(e.multiple)t.selectedLabel="";else{const ee=A(e.modelValue);(E=ee.props)!=null&&E.created?(t.createdLabel=ee.props.value,t.createdSelected=!0):t.createdSelected=!1,t.selectedLabel=ee.currentLabel,t.selected=ee,e.filterable&&(t.query=t.selectedLabel);return}const z=[];Array.isArray(e.modelValue)&&e.modelValue.forEach(ee=>{z.push(A(ee))}),t.selected=z,ke(()=>{F()})},A=E=>{let z;const ee=Nl(E).toLowerCase()==="object",he=Nl(E).toLowerCase()==="null",ie=Nl(E).toLowerCase()==="undefined";for(let dt=t.cachedOptions.size-1;dt>=0;dt--){const ut=B.value[dt];if(ee?Tt(ut.value,e.valueKey)===Tt(E,e.valueKey):ut.value===E){z={value:E,currentLabel:ut.currentLabel,isDisabled:ut.isDisabled};break}}if(z)return z;const Ce=ee?E.label:!he&&!ie?E:"",we={value:E,currentLabel:Ce};return e.multiple&&(we.hitState=!1),we},N=()=>{setTimeout(()=>{const E=e.valueKey;e.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map(z=>T.value.findIndex(ee=>Tt(ee,E)===Tt(z,E)))):t.hoverIndex=-1:t.hoverIndex=T.value.findIndex(z=>Qe(z)===Qe(t.selected))},300)},R=()=>{var E,z;G(),(z=(E=u.value)==null?void 0:E.updatePopper)==null||z.call(E),e.multiple&&!e.filterable&&F()},G=()=>{var E;t.inputWidth=(E=s.value)==null?void 0:E.$el.getBoundingClientRect().width},re=()=>{e.filterable&&t.query!==t.selectedLabel&&(t.query=t.selectedLabel,K(t.query))},de=hn(()=>{re()},P.value),ye=hn(E=>{K(E.target.value)},P.value),ge=E=>{oo(e.modelValue,E)||n.emit(en,E)},Te=E=>{if(E.target.value.length<=0&&!it()){const z=e.modelValue.slice();z.pop(),n.emit(qe,z),ge(z)}E.target.value.length===1&&e.modelValue.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)},J=(E,z)=>{const ee=t.selected.indexOf(z);if(ee>-1&&!b.value){const he=e.modelValue.slice();he.splice(ee,1),n.emit(qe,he),ge(he),n.emit("remove-tag",z.value)}E.stopPropagation()},me=E=>{E.stopPropagation();const z=e.multiple?[]:"";if(typeof z!="string")for(const ee of t.selected)ee.isDisabled&&z.push(ee.value);n.emit(qe,z),ge(z),t.visible=!1,n.emit("clear")},Ne=(E,z)=>{var ee;if(e.multiple){const he=(e.modelValue||[]).slice(),ie=Le(he,E.value);ie>-1?he.splice(ie,1):(e.multipleLimit<=0||he.length<e.multipleLimit)&&he.push(E.value),n.emit(qe,he),ge(he),E.created&&(t.query="",K(""),t.inputLength=20),e.filterable&&((ee=r.value)==null||ee.focus())}else n.emit(qe,E.value),ge(E.value),t.visible=!1;t.isSilentBlur=z,Xe(),!t.visible&&ke(()=>{Ze(E)})},Le=(E=[],z)=>{if(!Mt(z))return E.indexOf(z);const ee=e.valueKey;let he=-1;return E.some((ie,Ce)=>Tt(ie,ee)===Tt(z,ee)?(he=Ce,!0):!1),he},Xe=()=>{t.softFocus=!0;const E=r.value||s.value;E&&(E==null||E.focus())},Ze=E=>{var z,ee,he,ie,Ce;const we=Array.isArray(E)?E[0]:E;let dt=null;if(we!=null&&we.value){const ut=T.value.filter(nt=>nt.value===we.value);ut.length>0&&(dt=ut[0].$el)}if(u.value&&dt){const ut=(ie=(he=(ee=(z=u.value)==null?void 0:z.popperRef)==null?void 0:ee.contentRef)==null?void 0:he.querySelector)==null?void 0:ie.call(he,`.${a.be("dropdown","wrap")}`);ut&&vc(ut,dt)}(Ce=f.value)==null||Ce.handleScroll()},Ue=E=>{t.optionsCount++,t.filteredOptionsCount++,t.options.set(E.value,E),t.cachedOptions.set(E.value,E)},ht=(E,z)=>{t.options.get(E)===z&&(t.optionsCount--,t.filteredOptionsCount--,t.options.delete(E))},Ae=E=>{E.code!==be.backspace&&it(!1),t.inputLength=r.value.value.length*15+20,F()},it=E=>{if(!Array.isArray(t.selected))return;const z=t.selected[t.selected.length-1];if(!!z)return E===!0||E===!1?(z.hitState=E,E):(z.hitState=!z.hitState,z.hitState)},lt=E=>{const z=E.target.value;if(E.type==="compositionend")t.isOnComposition=!1,ke(()=>K(z));else{const ee=z[z.length-1]||"";t.isOnComposition=!ur(ee)}},ft=()=>{ke(()=>Ze(t.selected))},gt=E=>{t.softFocus?t.softFocus=!1:((e.automaticDropdown||e.filterable)&&(e.filterable&&!t.visible&&(t.menuVisibleOnFocus=!0),t.visible=!0),n.emit("focus",E))},et=()=>{var E;t.visible=!1,(E=s.value)==null||E.blur()},st=E=>{ke(()=>{t.isSilentBlur?t.isSilentBlur=!1:n.emit("blur",E)}),t.softFocus=!1},Et=E=>{me(E)},bt=()=>{t.visible=!1},le=E=>{t.visible&&(E.preventDefault(),E.stopPropagation(),t.visible=!1)},Be=()=>{var E;e.automaticDropdown||b.value||(t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:t.visible=!t.visible,t.visible&&((E=r.value||s.value)==null||E.focus()))},Fe=()=>{t.visible?T.value[t.hoverIndex]&&Ne(T.value[t.hoverIndex],void 0):Be()},Qe=E=>Mt(E.value)?Tt(E.value,e.valueKey):E.value,U=$(()=>T.value.filter(E=>E.visible).every(E=>E.disabled)),oe=E=>{if(!t.visible){t.visible=!0;return}if(!(t.options.size===0||t.filteredOptionsCount===0)&&!t.isOnComposition&&!U.value){E==="next"?(t.hoverIndex++,t.hoverIndex===t.options.size&&(t.hoverIndex=0)):E==="prev"&&(t.hoverIndex--,t.hoverIndex<0&&(t.hoverIndex=t.options.size-1));const z=T.value[t.hoverIndex];(z.disabled===!0||z.states.groupDisabled===!0||!z.visible)&&oe(E),ke(()=>Ze(h.value))}};return{optionsArray:T,selectSize:V,handleResize:R,debouncedOnInputChange:de,debouncedQueryChange:ye,deletePrevTag:Te,deleteTag:J,deleteSelected:me,handleOptionSelect:Ne,scrollToOption:Ze,readonly:y,resetInputHeight:F,showClose:C,iconComponent:g,iconReverse:w,showNewOption:O,collapseTagSize:W,setSelected:D,managePlaceholder:Y,selectDisabled:b,emptyText:I,toggleLastOptionHitState:it,resetInputState:Ae,handleComposition:lt,onOptionCreate:Ue,onOptionDestroy:ht,handleMenuEnter:ft,handleFocus:gt,blur:et,handleBlur:st,handleClearClick:Et,handleClose:bt,handleKeydownEscape:le,toggleMenu:Be,selectOption:Fe,getValueKey:Qe,navigateOptions:oe,dropMenuVisible:Z,queryChange:p,groupQueryChange:d,reference:s,input:r,tooltipRef:u,tags:i,selectWrapper:c,scrollbar:f}},Ms="ElSelect",Fy=se({name:Ms,componentName:Ms,components:{ElInput:Ht,ElSelectMenu:Ly,ElOption:Ba,ElTag:vm,ElScrollbar:bo,ElTooltip:wn,ElIcon:ve},directives:{ClickOutside:uo},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:Cl},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},teleported:zt.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:[String,Object],default:Do},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:[String,Object],default:gl},tagType:{...di.type,default:"info"},validateEvent:{type:Boolean,default:!0}},emits:[qe,en,"remove-tag","clear","visible-change","focus","blur"],setup(e,t){const n=ae("select"),o=ae("input"),{t:a}=Je(),s=Ry(e),{optionsArray:r,selectSize:u,readonly:i,handleResize:c,collapseTagSize:f,debouncedOnInputChange:h,debouncedQueryChange:p,deletePrevTag:d,deleteTag:v,deleteSelected:m,handleOptionSelect:y,scrollToOption:b,setSelected:C,resetInputHeight:g,managePlaceholder:w,showClose:P,selectDisabled:I,iconComponent:T,iconReverse:B,showNewOption:O,emptyText:V,toggleLastOptionHitState:W,resetInputState:Z,handleComposition:F,onOptionCreate:K,onOptionDestroy:Y,handleMenuEnter:_,handleFocus:D,blur:A,handleBlur:N,handleClearClick:R,handleClose:G,handleKeydownEscape:re,toggleMenu:de,selectOption:ye,getValueKey:ge,navigateOptions:Te,dropMenuVisible:J,reference:me,input:Ne,tooltipRef:Le,tags:Xe,selectWrapper:Ze,scrollbar:Ue,queryChange:ht,groupQueryChange:Ae}=_y(e,s,t),{focus:it}=Nc(me),{inputWidth:lt,selected:ft,inputLength:gt,filteredOptionsCount:et,visible:st,softFocus:Et,selectedLabel:bt,hoverIndex:le,query:Be,inputHovering:Fe,currentPlaceholder:Qe,menuVisibleOnFocus:U,isOnComposition:oe,isSilentBlur:E,options:z,cachedOptions:ee,optionsCount:he,prefixWidth:ie,tagInMultiLine:Ce}=Ft(s),we=$(()=>{const nt=[n.b()],ze=l(u);return ze&&nt.push(n.m(ze)),e.disabled&&nt.push(n.m("disabled")),nt}),dt=$(()=>({maxWidth:`${l(lt)-32}px`,width:"100%"}));_e(Tl,rt({props:e,options:z,optionsArray:r,cachedOptions:ee,optionsCount:he,filteredOptionsCount:et,hoverIndex:le,handleOptionSelect:y,onOptionCreate:K,onOptionDestroy:Y,selectWrapper:Ze,selected:ft,setSelected:C,queryChange:ht,groupQueryChange:Ae})),Re(()=>{s.cachedPlaceHolder=Qe.value=e.placeholder||a("el.select.placeholder"),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(Qe.value=""),yn(Ze,c),e.remote&&e.multiple&&g(),ke(()=>{const nt=me.value&&me.value.$el;if(!!nt&&(lt.value=nt.getBoundingClientRect().width,t.slots.prefix)){const ze=nt.querySelector(`.${o.e("prefix")}`);ie.value=Math.max(ze.getBoundingClientRect().width+5,30)}}),C()}),e.multiple&&!Array.isArray(e.modelValue)&&t.emit(qe,[]),!e.multiple&&Array.isArray(e.modelValue)&&t.emit(qe,"");const ut=$(()=>{var nt,ze;return(ze=(nt=Le.value)==null?void 0:nt.popperRef)==null?void 0:ze.contentRef});return{tagInMultiLine:Ce,prefixWidth:ie,selectSize:u,readonly:i,handleResize:c,collapseTagSize:f,debouncedOnInputChange:h,debouncedQueryChange:p,deletePrevTag:d,deleteTag:v,deleteSelected:m,handleOptionSelect:y,scrollToOption:b,inputWidth:lt,selected:ft,inputLength:gt,filteredOptionsCount:et,visible:st,softFocus:Et,selectedLabel:bt,hoverIndex:le,query:Be,inputHovering:Fe,currentPlaceholder:Qe,menuVisibleOnFocus:U,isOnComposition:oe,isSilentBlur:E,options:z,resetInputHeight:g,managePlaceholder:w,showClose:P,selectDisabled:I,iconComponent:T,iconReverse:B,showNewOption:O,emptyText:V,toggleLastOptionHitState:W,resetInputState:Z,handleComposition:F,handleMenuEnter:_,handleFocus:D,blur:A,handleBlur:N,handleClearClick:R,handleClose:G,handleKeydownEscape:re,toggleMenu:de,selectOption:ye,getValueKey:ge,navigateOptions:Te,dropMenuVisible:J,focus:it,reference:me,input:Ne,tooltipRef:Le,popperPaneRef:ut,tags:Xe,selectWrapper:Ze,scrollbar:Ue,wrapperKls:we,selectTagsStyle:dt,nsSelect:n}}}),zy={class:"select-trigger"},Vy=["disabled","autocomplete"],Hy={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function Ky(e,t,n,o,a,s){const r=Ee("el-tag"),u=Ee("el-tooltip"),i=Ee("el-icon"),c=Ee("el-input"),f=Ee("el-option"),h=Ee("el-scrollbar"),p=Ee("el-select-menu"),d=hl("click-outside");return Ie((k(),L("div",{ref:"selectWrapper",class:S(e.wrapperKls),onClick:t[23]||(t[23]=Oe((...v)=>e.toggleMenu&&e.toggleMenu(...v),["stop"]))},[j(u,{ref:"tooltipRef",visible:e.dropMenuVisible,"onUpdate:visible":t[22]||(t[22]=v=>e.dropMenuVisible=v),placement:"bottom-start",teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onShow:e.handleMenuEnter},{default:H(()=>[x("div",zy,[e.multiple?(k(),L("div",{key:0,ref:"tags",class:S(e.nsSelect.e("tags")),style:$e(e.selectTagsStyle)},[e.collapseTags&&e.selected.length?(k(),L("span",{key:0,class:S([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[j(r,{closable:!e.selectDisabled&&!e.selected[0].isDisabled,size:e.collapseTagSize,hit:e.selected[0].hitState,type:e.tagType,"disable-transitions":"",onClose:t[0]||(t[0]=v=>e.deleteTag(v,e.selected[0]))},{default:H(()=>[x("span",{class:S(e.nsSelect.e("tags-text")),style:$e({maxWidth:e.inputWidth-123+"px"})},ce(e.selected[0].currentLabel),7)]),_:1},8,["closable","size","hit","type"]),e.selected.length>1?(k(),X(r,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:H(()=>[e.collapseTagsTooltip?(k(),X(u,{key:0,disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:!1},{default:H(()=>[x("span",{class:S(e.nsSelect.e("tags-text"))},"+ "+ce(e.selected.length-1),3)]),content:H(()=>[x("div",{class:S(e.nsSelect.e("collapse-tags"))},[(k(!0),L(Pe,null,ot(e.selected.slice(1),(v,m)=>(k(),L("div",{key:m,class:S(e.nsSelect.e("collapse-tag"))},[(k(),X(r,{key:e.getValueKey(v),class:"in-tooltip",closable:!e.selectDisabled&&!v.isDisabled,size:e.collapseTagSize,hit:v.hitState,type:e.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:y=>e.deleteTag(y,v)},{default:H(()=>[x("span",{class:S(e.nsSelect.e("tags-text")),style:$e({maxWidth:e.inputWidth-75+"px"})},ce(v.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))],2))),128))],2)]),_:1},8,["disabled","effect"])):(k(),L("span",{key:1,class:S(e.nsSelect.e("tags-text"))},"+ "+ce(e.selected.length-1),3))]),_:1},8,["size","type"])):q("v-if",!0)],2)):q("v-if",!0),q(" <div> "),e.collapseTags?q("v-if",!0):(k(),X(kt,{key:1,onAfterLeave:e.resetInputHeight},{default:H(()=>[x("span",{class:S([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[(k(!0),L(Pe,null,ot(e.selected,v=>(k(),X(r,{key:e.getValueKey(v),closable:!e.selectDisabled&&!v.isDisabled,size:e.collapseTagSize,hit:v.hitState,type:e.tagType,"disable-transitions":"",onClose:m=>e.deleteTag(m,v)},{default:H(()=>[x("span",{class:S(e.nsSelect.e("tags-text")),style:$e({maxWidth:e.inputWidth-75+"px"})},ce(v.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],2)]),_:1},8,["onAfterLeave"])),q(" </div> "),e.filterable?Ie((k(),L("input",{key:2,ref:"input","onUpdate:modelValue":t[1]||(t[1]=v=>e.query=v),type:"text",class:S([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:$e({marginLeft:e.prefixWidth&&!e.selected.length||e.tagInMultiLine?`${e.prefixWidth}px`:"",flexGrow:1,width:`${e.inputLength/(e.inputWidth-32)}%`,maxWidth:`${e.inputWidth-42}px`}),onFocus:t[2]||(t[2]=(...v)=>e.handleFocus&&e.handleFocus(...v)),onBlur:t[3]||(t[3]=(...v)=>e.handleBlur&&e.handleBlur(...v)),onKeyup:t[4]||(t[4]=(...v)=>e.managePlaceholder&&e.managePlaceholder(...v)),onKeydown:[t[5]||(t[5]=(...v)=>e.resetInputState&&e.resetInputState(...v)),t[6]||(t[6]=xe(Oe(v=>e.navigateOptions("next"),["prevent"]),["down"])),t[7]||(t[7]=xe(Oe(v=>e.navigateOptions("prev"),["prevent"]),["up"])),t[8]||(t[8]=xe((...v)=>e.handleKeydownEscape&&e.handleKeydownEscape(...v),["esc"])),t[9]||(t[9]=xe(Oe((...v)=>e.selectOption&&e.selectOption(...v),["stop","prevent"]),["enter"])),t[10]||(t[10]=xe((...v)=>e.deletePrevTag&&e.deletePrevTag(...v),["delete"])),t[11]||(t[11]=xe(v=>e.visible=!1,["tab"]))],onCompositionstart:t[12]||(t[12]=(...v)=>e.handleComposition&&e.handleComposition(...v)),onCompositionupdate:t[13]||(t[13]=(...v)=>e.handleComposition&&e.handleComposition(...v)),onCompositionend:t[14]||(t[14]=(...v)=>e.handleComposition&&e.handleComposition(...v)),onInput:t[15]||(t[15]=(...v)=>e.debouncedQueryChange&&e.debouncedQueryChange(...v))},null,46,Vy)),[[mu,e.query]]):q("v-if",!0)],6)):q("v-if",!0),j(c,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":t[16]||(t[16]=v=>e.selectedLabel=v),type:"text",placeholder:e.currentPlaceholder,name:e.name,autocomplete:e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,class:S([e.nsSelect.is("focus",e.visible)]),tabindex:e.multiple&&e.filterable?-1:void 0,onFocus:e.handleFocus,onBlur:e.handleBlur,onInput:e.debouncedOnInputChange,onPaste:e.debouncedOnInputChange,onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onKeydown:[t[17]||(t[17]=xe(Oe(v=>e.navigateOptions("next"),["stop","prevent"]),["down"])),t[18]||(t[18]=xe(Oe(v=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),xe(Oe(e.selectOption,["stop","prevent"]),["enter"]),xe(e.handleKeydownEscape,["esc"]),t[19]||(t[19]=xe(v=>e.visible=!1,["tab"]))],onMouseenter:t[20]||(t[20]=v=>e.inputHovering=!0),onMouseleave:t[21]||(t[21]=v=>e.inputHovering=!1)},Jn({suffix:H(()=>[e.iconComponent&&!e.showClose?(k(),X(i,{key:0,class:S([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:H(()=>[(k(),X(Ve(e.iconComponent)))]),_:1},8,["class"])):q("v-if",!0),e.showClose&&e.clearIcon?(k(),X(i,{key:1,class:S([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:H(()=>[(k(),X(Ve(e.clearIcon)))]),_:1},8,["class","onClick"])):q("v-if",!0)]),_:2},[e.$slots.prefix?{name:"prefix",fn:H(()=>[x("div",Hy,[Q(e.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])])]),content:H(()=>[j(p,null,{default:H(()=>[Ie(j(h,{ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:S([e.nsSelect.is("empty",!e.allowCreate&&Boolean(e.query)&&e.filteredOptionsCount===0)])},{default:H(()=>[e.showNewOption?(k(),X(f,{key:0,value:e.query,created:!0},null,8,["value"])):q("v-if",!0),Q(e.$slots,"default")]),_:3},8,["wrap-class","view-class","class"]),[[Ye,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&e.options.size===0)?(k(),L(Pe,{key:0},[e.$slots.empty?Q(e.$slots,"empty",{key:0}):(k(),L("p",{key:1,class:S(e.nsSelect.be("dropdown","empty"))},ce(e.emptyText),3))],64)):q("v-if",!0)]),_:3})]),_:3},8,["visible","teleported","popper-class","effect","transition","persistent","onShow"])],2)),[[d,e.handleClose,e.popperPaneRef]])}var Wy=ue(Fy,[["render",Ky],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const jy=se({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},setup(e){const t=ae("select"),n=M(!0),o=De(),a=M([]);_e(Ri,rt({...Ft(e)}));const s=fe(Tl);Re(()=>{a.value=r(o.subTree)});const r=i=>{const c=[];return Array.isArray(i.children)&&i.children.forEach(f=>{var h;f.type&&f.type.name==="ElOption"&&f.component&&f.component.proxy?c.push(f.component.proxy):(h=f.children)!=null&&h.length&&c.push(...r(f))}),c},{groupQueryChange:u}=Xs(s);return ne(u,()=>{n.value=a.value.some(i=>i.visible===!0)}),{visible:n,ns:t}}});function xy(e,t,n,o,a,s){return Ie((k(),L("ul",{class:S(e.ns.be("group","wrap"))},[x("li",{class:S(e.ns.be("group","title"))},ce(e.label),3),x("li",null,[x("ul",{class:S(e.ns.b("group"))},[Q(e.$slots,"default")],2)])],2)),[[Ye,e.visible]])}var _i=ue(jy,[["render",xy],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const dl=je(Wy,{Option:Ba,OptionGroup:_i}),Zl=St(Ba);St(_i);const Da=()=>fe(mr,{}),qy=pe({pageSize:{type:Number,required:!0},pageSizes:{type:te(Array),default:()=>yt([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,size:{type:String,default:"default"}}),Uy={name:"ElPaginationSizes"},Yy=se({...Uy,props:qy,emits:["page-size-change"],setup(e,{emit:t}){const n=e,{t:o}=Je(),a=ae("pagination"),s=Da(),r=M(n.pageSize);ne(()=>n.pageSizes,(c,f)=>{if(!oo(c,f)&&Array.isArray(c)){const h=c.includes(n.pageSize)?n.pageSize:n.pageSizes[0];t("page-size-change",h)}}),ne(()=>n.pageSize,c=>{r.value=c});const u=$(()=>n.pageSizes);function i(c){var f;c!==r.value&&(r.value=c,(f=s.handleSizeChange)==null||f.call(s,Number(c)))}return(c,f)=>(k(),L("span",{class:S(l(a).e("sizes"))},[j(l(dl),{"model-value":r.value,disabled:c.disabled,"popper-class":c.popperClass,size:c.size,onChange:i},{default:H(()=>[(k(!0),L(Pe,null,ot(l(u),h=>(k(),X(l(Zl),{key:h,value:h,label:h+l(o)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size"])],2))}});var Gy=ue(Yy,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/sizes.vue"]]);const Xy=["disabled"],Jy={name:"ElPaginationJumper"},Zy=se({...Jy,setup(e){const{t}=Je(),n=ae("pagination"),{pageCount:o,disabled:a,currentPage:s,changeEvent:r}=Da(),u=M(),i=$(()=>{var h;return(h=u.value)!=null?h:s==null?void 0:s.value});function c(h){u.value=+h}function f(h){h=Math.trunc(+h),r==null||r(+h),u.value=void 0}return(h,p)=>(k(),L("span",{class:S(l(n).e("jump")),disabled:l(a)},[Ge(ce(l(t)("el.pagination.goto"))+" ",1),j(l(Ht),{size:"small",class:S([l(n).e("editor"),l(n).is("in-pagination")]),min:1,max:l(o),disabled:l(a),"model-value":l(i),type:"number","onUpdate:modelValue":c,onChange:f},null,8,["class","max","disabled","model-value"]),Ge(" "+ce(l(t)("el.pagination.pageClassifier")),1)],10,Xy))}});var Qy=ue(Zy,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/jumper.vue"]]);const e0=pe({total:{type:Number,default:1e3}}),t0=["disabled"],n0={name:"ElPaginationTotal"},o0=se({...n0,props:e0,setup(e){const{t}=Je(),n=ae("pagination"),{disabled:o}=Da();return(a,s)=>(k(),L("span",{class:S(l(n).e("total")),disabled:l(o)},ce(l(t)("el.pagination.total",{total:a.total})),11,t0))}});var l0=ue(o0,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/total.vue"]]);const a0=pe({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),s0=["onKeyup"],r0=["aria-current","tabindex"],i0=["tabindex"],u0=["aria-current","tabindex"],c0=["tabindex"],d0=["aria-current","tabindex"],f0={name:"ElPaginationPager"},p0=se({...f0,props:a0,emits:["change"],setup(e,{emit:t}){const n=e,o=ae("pager"),a=ae("icon"),s=M(!1),r=M(!1),u=M(!1),i=M(!1),c=M(!1),f=M(!1),h=$(()=>{const b=n.pagerCount,C=(b-1)/2,g=Number(n.currentPage),w=Number(n.pageCount);let P=!1,I=!1;w>b&&(g>b-C&&(P=!0),g<w-C&&(I=!0));const T=[];if(P&&!I){const B=w-(b-2);for(let O=B;O<w;O++)T.push(O)}else if(!P&&I)for(let B=2;B<b;B++)T.push(B);else if(P&&I){const B=Math.floor(b/2)-1;for(let O=g-B;O<=g+B;O++)T.push(O)}else for(let B=2;B<w;B++)T.push(B);return T}),p=$(()=>n.disabled?-1:0);Nn(()=>{const b=(n.pagerCount-1)/2;s.value=!1,r.value=!1,n.pageCount>n.pagerCount&&(n.currentPage>n.pagerCount-b&&(s.value=!0),n.currentPage<n.pageCount-b&&(r.value=!0))});function d(b=!1){n.disabled||(b?u.value=!0:i.value=!0)}function v(b=!1){b?c.value=!0:f.value=!0}function m(b){const C=b.target;if(C.tagName.toLowerCase()==="li"&&Array.from(C.classList).includes("number")){const g=Number(C.textContent);g!==n.currentPage&&t("change",g)}else C.tagName.toLowerCase()==="li"&&Array.from(C.classList).includes("more")&&y(b)}function y(b){const C=b.target;if(C.tagName.toLowerCase()==="ul"||n.disabled)return;let g=Number(C.textContent);const w=n.pageCount,P=n.currentPage,I=n.pagerCount-2;C.className.includes("more")&&(C.className.includes("quickprev")?g=P-I:C.className.includes("quicknext")&&(g=P+I)),Number.isNaN(+g)||(g<1&&(g=1),g>w&&(g=w)),g!==P&&t("change",g)}return(b,C)=>(k(),L("ul",{class:S(l(o).b()),onClick:y,onKeyup:xe(m,["enter"])},[b.pageCount>0?(k(),L("li",{key:0,class:S([[l(o).is("active",b.currentPage===1),l(o).is("disabled",b.disabled)],"number"]),"aria-current":b.currentPage===1,tabindex:l(p)}," 1 ",10,r0)):q("v-if",!0),s.value?(k(),L("li",{key:1,class:S(["more","btn-quickprev",l(a).b(),l(o).is("disabled",b.disabled)]),tabindex:l(p),onMouseenter:C[0]||(C[0]=g=>d(!0)),onMouseleave:C[1]||(C[1]=g=>u.value=!1),onFocus:C[2]||(C[2]=g=>v(!0)),onBlur:C[3]||(C[3]=g=>c.value=!1)},[u.value||c.value?(k(),X(l(eo),{key:0})):(k(),X(l(ja),{key:1}))],42,i0)):q("v-if",!0),(k(!0),L(Pe,null,ot(l(h),g=>(k(),L("li",{key:g,class:S([[l(o).is("active",b.currentPage===g),l(o).is("disabled",b.disabled)],"number"]),"aria-current":b.currentPage===g,tabindex:l(p)},ce(g),11,u0))),128)),r.value?(k(),L("li",{key:2,class:S(["more","btn-quicknext",l(a).b(),l(o).is("disabled",b.disabled)]),tabindex:l(p),onMouseenter:C[4]||(C[4]=g=>d()),onMouseleave:C[5]||(C[5]=g=>i.value=!1),onFocus:C[6]||(C[6]=g=>v()),onBlur:C[7]||(C[7]=g=>f.value=!1)},[i.value||f.value?(k(),X(l(no),{key:0})):(k(),X(l(ja),{key:1}))],42,c0)):q("v-if",!0),b.pageCount>1?(k(),L("li",{key:3,class:S([[l(o).is("active",b.currentPage===b.pageCount),l(o).is("disabled",b.disabled)],"number"]),"aria-current":b.currentPage===b.pageCount,tabindex:l(p)},ce(b.pageCount),11,d0)):q("v-if",!0)],42,s0))}});var v0=ue(p0,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);const $t=e=>typeof e!="number",m0=pe({total:Number,pageSize:Number,defaultPageSize:Number,currentPage:Number,defaultCurrentPage:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>typeof e=="number"&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:te(Array),default:()=>yt([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},nextText:{type:String,default:""},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),h0={"update:current-page":e=>typeof e=="number","update:page-size":e=>typeof e=="number","size-change":e=>typeof e=="number","current-change":e=>typeof e=="number","prev-click":e=>typeof e=="number","next-click":e=>typeof e=="number"},Os="ElPagination";var g0=se({name:Os,props:m0,emits:h0,setup(e,{emit:t,slots:n}){const{t:o}=Je(),a=ae("pagination"),s=De().vnode.props||{},r="onUpdate:currentPage"in s||"onUpdate:current-page"in s||"onCurrentChange"in s,u="onUpdate:pageSize"in s||"onUpdate:page-size"in s||"onSizeChange"in s,i=$(()=>{if($t(e.total)&&$t(e.pageCount)||!$t(e.currentPage)&&!r)return!1;if(e.layout.includes("sizes")){if($t(e.pageCount)){if(!$t(e.total)&&!$t(e.pageSize)&&!u)return!1}else if(!u)return!1}return!0}),c=M($t(e.defaultPageSize)?10:e.defaultPageSize),f=M($t(e.defaultCurrentPage)?1:e.defaultCurrentPage),h=$({get(){return $t(e.pageSize)?c.value:e.pageSize},set(g){$t(e.pageSize)&&(c.value=g),u&&(t("update:page-size",g),t("size-change",g))}}),p=$(()=>{let g=0;return $t(e.pageCount)?$t(e.total)||(g=Math.max(1,Math.ceil(e.total/h.value))):g=e.pageCount,g}),d=$({get(){return $t(e.currentPage)?f.value:e.currentPage},set(g){let w=g;g<1?w=1:g>p.value&&(w=p.value),$t(e.currentPage)&&(f.value=w),r&&(t("update:current-page",w),t("current-change",w))}});ne(p,g=>{d.value>g&&(d.value=g)});function v(g){d.value=g}function m(g){h.value=g;const w=p.value;d.value>w&&(d.value=w)}function y(){e.disabled||(d.value-=1,t("prev-click",d.value))}function b(){e.disabled||(d.value+=1,t("next-click",d.value))}function C(g,w){g&&(g.props||(g.props={}),g.props.class=[g.props.class,w].join(" "))}return _e(mr,{pageCount:p,disabled:$(()=>e.disabled),currentPage:d,changeEvent:v,handleSizeChange:m}),()=>{var g,w;if(!i.value)return o("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&p.value<=1)return null;const P=[],I=[],T=Se("div",{class:a.e("rightwrapper")},I),B={prev:Se(Sy,{disabled:e.disabled,currentPage:d.value,prevText:e.prevText,onClick:y}),jumper:Se(Qy),pager:Se(v0,{currentPage:d.value,pageCount:p.value,pagerCount:e.pagerCount,onChange:v,disabled:e.disabled}),next:Se(Iy,{disabled:e.disabled,currentPage:d.value,pageCount:p.value,nextText:e.nextText,onClick:b}),sizes:Se(Gy,{pageSize:h.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,size:e.small?"small":"default"}),slot:(w=(g=n==null?void 0:n.default)==null?void 0:g.call(n))!=null?w:null,total:Se(l0,{total:$t(e.total)?0:e.total})},O=e.layout.split(",").map(W=>W.trim());let V=!1;return O.forEach(W=>{if(W==="->"){V=!0;return}V?I.push(B[W]):P.push(B[W])}),C(P[0],a.is("first")),C(P[P.length-1],a.is("last")),V&&I.length>0&&(C(I[0],a.is("first")),C(I[I.length-1],a.is("last")),P.push(T)),Se("div",{role:"pagination","aria-label":"pagination",class:[a.b(),a.is("background",e.background),{[a.m("small")]:e.small}]},P)}}});const VS=je(g0),b0=pe({trigger:Mo.trigger,placement:Zo.placement,disabled:Mo.disabled,visible:zt.visible,transition:zt.transition,popperOptions:Zo.popperOptions,tabindex:Zo.tabindex,content:zt.content,popperStyle:zt.popperStyle,popperClass:zt.popperClass,enterable:{...zt.enterable,default:!0},effect:{...zt.effect,default:"light"},teleported:zt.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0}}),y0={"update:visible":e=>It(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},C0={name:"ElPopover"},w0=se({...C0,props:b0,emits:y0,setup(e,{expose:t,emit:n}){const o=e,a=ae("popover"),s=M(),r=$(()=>{var m;return(m=l(s))==null?void 0:m.popperRef}),u=$(()=>[{width:Wt(o.width)},o.popperStyle]),i=$(()=>[a.b(),o.popperClass,{[a.m("plain")]:!!o.content}]),c=$(()=>o.transition==="el-fade-in-linear"),f=()=>{var m;(m=s.value)==null||m.hide()},h=()=>{n("before-enter")},p=()=>{n("before-leave")},d=()=>{n("after-enter")},v=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:r,hide:f}),(m,y)=>(k(),X(l(wn),vt({ref_key:"tooltipRef",ref:s},m.$attrs,{trigger:m.trigger,placement:m.placement,disabled:m.disabled,visible:m.visible,transition:m.transition,"popper-options":m.popperOptions,tabindex:m.tabindex,content:m.content,offset:m.offset,"show-after":m.showAfter,"hide-after":m.hideAfter,"auto-close":m.autoClose,"show-arrow":m.showArrow,"aria-label":m.title,effect:m.effect,enterable:m.enterable,"popper-class":l(i),"popper-style":l(u),teleported:m.teleported,persistent:m.persistent,"gpu-acceleration":l(c),onBeforeShow:h,onBeforeHide:p,onShow:d,onHide:v}),{content:H(()=>[m.title?(k(),L("div",{key:0,class:S(l(a).e("title")),role:"title"},ce(m.title),3)):q("v-if",!0),Q(m.$slots,"default",{},()=>[Ge(ce(m.content),1)])]),default:H(()=>[m.$slots.reference?Q(m.$slots,"reference",{key:0}):q("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration"]))}});var k0=ue(w0,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const As=(e,t)=>{const n=t.arg||t.value,o=n==null?void 0:n.popperRef;o&&(o.triggerRef=e)};var S0={mounted(e,t){As(e,t)},updated(e,t){As(e,t)}};const E0="popover",$0=bc(S0,E0),HS=je(k0,{directive:$0}),T0=pe({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:te(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:te([String,Array,Function]),default:""},format:{type:te(Function),default:e=>`${e}%`}}),N0=["aria-valuenow"],P0={viewBox:"0 0 100 100"},I0=["d","stroke","stroke-width"],M0=["d","stroke","opacity","stroke-linecap","stroke-width"],O0={key:0},A0={name:"ElProgress"},B0=se({...A0,props:T0,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},o=ae("progress"),a=$(()=>({width:`${t.percentage}%`,animationDuration:`${t.duration}s`,backgroundColor:C(t.percentage)})),s=$(()=>(t.strokeWidth/t.width*100).toFixed(1)),r=$(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(s.value)/2}`,10):0),u=$(()=>{const g=r.value,w=t.type==="dashboard";return`
M 50 50
m 0 ${w?"":"-"}${g}
a ${g} ${g} 0 1 1 0 ${w?"-":""}${g*2}
a ${g} ${g} 0 1 1 0 ${w?"":"-"}${g*2}
`}),i=$(()=>2*Math.PI*r.value),c=$(()=>t.type==="dashboard"?.75:1),f=$(()=>`${-1*i.value*(1-c.value)/2}px`),h=$(()=>({strokeDasharray:`${i.value*c.value}px, ${i.value}px`,strokeDashoffset:f.value})),p=$(()=>({strokeDasharray:`${i.value*c.value*(t.percentage/100)}px, ${i.value}px`,strokeDashoffset:f.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),d=$(()=>{let g;return t.color?g=C(t.percentage):g=n[t.status]||n.default,g}),v=$(()=>t.status==="warning"?ia:t.type==="line"?t.status==="success"?ua:Do:t.status==="success"?ca:Qt),m=$(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),y=$(()=>t.format(t.percentage));function b(g){const w=100/g.length;return g.map((I,T)=>Ke(I)?{color:I,percentage:(T+1)*w}:I).sort((I,T)=>I.percentage-T.percentage)}const C=g=>{var w;const{color:P}=t;if(Pt(P))return P(g);if(Ke(P))return P;{const I=b(P);for(const T of I)if(T.percentage>g)return T.color;return(w=I[I.length-1])==null?void 0:w.color}};return(g,w)=>(k(),L("div",{class:S([l(o).b(),l(o).m(g.type),l(o).is(g.status),{[l(o).m("without-text")]:!g.showText,[l(o).m("text-inside")]:g.textInside}]),role:"progressbar","aria-valuenow":g.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[g.type==="line"?(k(),L("div",{key:0,class:S(l(o).b("bar"))},[x("div",{class:S(l(o).be("bar","outer")),style:$e({height:`${g.strokeWidth}px`})},[x("div",{class:S([l(o).be("bar","inner"),{[l(o).bem("bar","inner","indeterminate")]:g.indeterminate}]),style:$e(l(a))},[(g.showText||g.$slots.default)&&g.textInside?(k(),L("div",{key:0,class:S(l(o).be("bar","innerText"))},[Q(g.$slots,"default",{percentage:g.percentage},()=>[x("span",null,ce(l(y)),1)])],2)):q("v-if",!0)],6)],6)],2)):(k(),L("div",{key:1,class:S(l(o).b("circle")),style:$e({height:`${g.width}px`,width:`${g.width}px`})},[(k(),L("svg",P0,[x("path",{class:S(l(o).be("circle","track")),d:l(u),stroke:`var(${l(o).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-width":l(s),fill:"none",style:$e(l(h))},null,14,I0),x("path",{class:S(l(o).be("circle","path")),d:l(u),stroke:l(d),fill:"none",opacity:g.percentage?1:0,"stroke-linecap":g.strokeLinecap,"stroke-width":l(s),style:$e(l(p))},null,14,M0)]))],6)),(g.showText||g.$slots.default)&&!g.textInside?(k(),L("div",{key:2,class:S(l(o).e("text")),style:$e({fontSize:`${l(m)}px`})},[Q(g.$slots,"default",{percentage:g.percentage},()=>[g.status?(k(),X(l(ve),{key:1},{default:H(()=>[(k(),X(Ve(l(v))))]),_:1})):(k(),L("span",O0,ce(l(y)),1))])],6)):q("v-if",!0)],10,N0))}});var D0=ue(B0,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const L0=je(D0),R0=["start","center","end","space-around","space-between","space-evenly"],_0=["top","middle","bottom"],F0=pe({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:R0,default:"start"},align:{type:String,values:_0,default:"top"}}),z0={name:"ElRow"},V0=se({...z0,props:F0,setup(e){const t=e,n=ae("row"),o=$(()=>t.gutter);_e(gr,{gutter:o});const a=$(()=>{const s={};return t.gutter&&(s.marginRight=s.marginLeft=`-${t.gutter/2}px`),s});return(s,r)=>(k(),X(Ve(s.tag),{class:S([l(n).b(),l(n).is(`justify-${t.justify}`,s.justify!=="start"),l(n).is(`align-${t.align}`,s.align!=="top")]),style:$e(l(a))},{default:H(()=>[Q(s.$slots,"default")]),_:3},8,["class","style"]))}});var H0=ue(V0,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const KS=je(H0),K0=pe({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),W0={[en]:(e,t)=>[e,t].every(He)},j0={name:"ElSteps"},x0=se({...j0,props:K0,emits:W0,setup(e,{emit:t}){const n=e,o=ae("steps"),a=M([]);return ne(a,()=>{a.value.forEach((s,r)=>{s.setIndex(r)})}),_e("ElSteps",{props:n,steps:a}),ne(()=>n.active,(s,r)=>{t(en,s,r)}),(s,r)=>(k(),L("div",{class:S([l(o).b(),l(o).m(s.simple?"simple":s.direction)])},[Q(s.$slots,"default")],2))}});var q0=ue(x0,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/steps.vue"]]);const U0=pe({title:{type:String,default:""},icon:{type:_t},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),Y0={name:"ElStep"},G0=se({...Y0,props:U0,setup(e){const t=e,n=ae("step"),o=M(-1),a=M({}),s=M(""),r=fe("ElSteps"),u=De();Re(()=>{ne([()=>r.props.active,()=>r.props.processStatus,()=>r.props.finishStatus],([P])=>{g(P)},{immediate:!0})}),mt(()=>{r.steps.value=r.steps.value.filter(P=>P.uid!==(u==null?void 0:u.uid))});const i=$(()=>t.status||s.value),c=$(()=>{const P=r.steps.value[o.value-1];return P?P.currentStatus:"wait"}),f=$(()=>r.props.alignCenter),h=$(()=>r.props.direction==="vertical"),p=$(()=>r.props.simple),d=$(()=>r.steps.value.length),v=$(()=>{var P;return((P=r.steps.value[d.value-1])==null?void 0:P.uid)===(u==null?void 0:u.uid)}),m=$(()=>p.value?"":r.props.space),y=$(()=>{const P={flexBasis:typeof m.value=="number"?`${m.value}px`:m.value?m.value:`${100/(d.value-(f.value?0:1))}%`};return h.value||v.value&&(P.maxWidth=`${100/d.value}%`),P}),b=P=>{o.value=P},C=P=>{let I=100;const T={};T.transitionDelay=`${150*o.value}ms`,P===r.props.processStatus?I=0:P==="wait"&&(I=0,T.transitionDelay=`${-150*o.value}ms`),T.borderWidth=I&&!p.value?"1px":0,T[r.props.direction==="vertical"?"height":"width"]=`${I}%`,a.value=T},g=P=>{P>o.value?s.value=r.props.finishStatus:P===o.value&&c.value!=="error"?s.value=r.props.processStatus:s.value="wait";const I=r.steps.value[d.value-1];I&&I.calcProgress(s.value)},w=rt({uid:$(()=>u==null?void 0:u.uid),currentStatus:i,setIndex:b,calcProgress:C});return r.steps.value=[...r.steps.value,w],(P,I)=>(k(),L("div",{style:$e(l(y)),class:S([l(n).b(),l(n).is(l(p)?"simple":l(r).props.direction),l(n).is("flex",l(v)&&!l(m)&&!l(f)),l(n).is("center",l(f)&&!l(h)&&!l(p))])},[q(" icon & line "),x("div",{class:S([l(n).e("head"),l(n).is(l(i))])},[l(p)?q("v-if",!0):(k(),L("div",{key:0,class:S(l(n).e("line"))},[x("i",{class:S(l(n).e("line-inner")),style:$e(a.value)},null,6)],2)),x("div",{class:S([l(n).e("icon"),l(n).is(P.icon?"icon":"text")])},[l(i)!=="success"&&l(i)!=="error"?Q(P.$slots,"icon",{key:0},()=>[P.icon?(k(),X(l(ve),{key:0,class:S(l(n).e("icon-inner"))},{default:H(()=>[(k(),X(Ve(P.icon)))]),_:1},8,["class"])):q("v-if",!0),!P.icon&&!l(p)?(k(),L("div",{key:1,class:S(l(n).e("icon-inner"))},ce(o.value+1),3)):q("v-if",!0)]):(k(),X(l(ve),{key:1,class:S([l(n).e("icon-inner"),l(n).is("status")])},{default:H(()=>[l(i)==="success"?(k(),X(l(ca),{key:0})):(k(),X(l(Qt),{key:1}))]),_:1},8,["class"]))],2)],2),q(" title & description "),x("div",{class:S(l(n).e("main"))},[x("div",{class:S([l(n).e("title"),l(n).is(l(i))])},[Q(P.$slots,"title",{},()=>[Ge(ce(P.title),1)])],2),l(p)?(k(),L("div",{key:0,class:S(l(n).e("arrow"))},null,2)):(k(),L("div",{key:1,class:S([l(n).e("description"),l(n).is(l(i))])},[Q(P.$slots,"description",{},()=>[Ge(ce(P.description),1)])],2))],2)],6))}});var Fi=ue(G0,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/item.vue"]]);const WS=je(q0,{Step:Fi}),jS=St(Fi),X0=pe({modelValue:{type:[Boolean,String,Number],default:!1},value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},activeIcon:{type:_t,default:""},inactiveIcon:{type:_t,default:""},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},id:String,loading:{type:Boolean,default:!1},beforeChange:{type:te(Function)},size:{type:String,validator:Cl},tabindex:{type:[String,Number]}}),J0={[qe]:e=>It(e)||Ke(e)||He(e),[en]:e=>It(e)||Ke(e)||He(e),[Kn]:e=>It(e)||Ke(e)||He(e)},Z0=["onClick"],Q0=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],eC=["aria-hidden"],tC=["aria-hidden"],nC=["aria-hidden"],oC=["aria-hidden"],lC={name:"ElSwitch"},aC=se({...lC,props:X0,emits:J0,setup(e,{expose:t,emit:n}){const o=e,a="ElSwitch",s=De(),{formItem:r}=Ro(),u=wt(),i=ae("switch");Lo({from:'"value"',replacement:'"model-value" or "v-model"',scope:a,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},$(()=>{var I;return!!((I=s.vnode.props)!=null&&I.value)}));const{inputId:c}=go(o,{formItemContext:r}),f=On($(()=>o.loading)),h=M(o.modelValue!==!1),p=M(),d=M(),v=$(()=>[i.b(),i.m(u.value),i.is("disabled",f.value),i.is("checked",b.value)]),m=$(()=>({width:Wt(o.width)}));ne(()=>o.modelValue,()=>{h.value=!0}),ne(()=>o.value,()=>{h.value=!1});const y=$(()=>h.value?o.modelValue:o.value),b=$(()=>y.value===o.activeValue);[o.activeValue,o.inactiveValue].includes(y.value)||(n(qe,o.inactiveValue),n(en,o.inactiveValue),n(Kn,o.inactiveValue)),ne(b,I=>{var T;p.value.checked=I,o.validateEvent&&((T=r==null?void 0:r.validate)==null||T.call(r,"change").catch(B=>void 0))});const C=()=>{const I=b.value?o.inactiveValue:o.activeValue;n(qe,I),n(en,I),n(Kn,I),ke(()=>{p.value.checked=b.value})},g=()=>{if(f.value)return;const{beforeChange:I}=o;if(!I){C();return}const T=I();[Ka(T),It(T)].includes(!0)||Ot(a,"beforeChange must return type `Promise<boolean>` or `boolean`"),Ka(T)?T.then(O=>{O&&C()}).catch(O=>{}):T&&C()},w=$(()=>i.cssVarBlock({...o.activeColor?{"on-color":o.activeColor}:null,...o.inactiveColor?{"off-color":o.inactiveColor}:null,...o.borderColor?{"border-color":o.borderColor}:null})),P=()=>{var I,T;(T=(I=p.value)==null?void 0:I.focus)==null||T.call(I)};return Re(()=>{p.value.checked=b.value}),t({focus:P}),(I,T)=>(k(),L("div",{class:S(l(v)),style:$e(l(w)),onClick:Oe(g,["prevent"])},[x("input",{id:l(c),ref_key:"input",ref:p,class:S(l(i).e("input")),type:"checkbox",role:"switch","aria-checked":l(b),"aria-disabled":l(f),name:I.name,"true-value":I.activeValue,"false-value":I.inactiveValue,disabled:l(f),tabindex:I.tabindex,onChange:C,onKeydown:xe(g,["enter"])},null,42,Q0),!I.inlinePrompt&&(I.inactiveIcon||I.inactiveText)?(k(),L("span",{key:0,class:S([l(i).e("label"),l(i).em("label","left"),l(i).is("active",!l(b))])},[I.inactiveIcon?(k(),X(l(ve),{key:0},{default:H(()=>[(k(),X(Ve(I.inactiveIcon)))]),_:1})):q("v-if",!0),!I.inactiveIcon&&I.inactiveText?(k(),L("span",{key:1,"aria-hidden":l(b)},ce(I.inactiveText),9,eC)):q("v-if",!0)],2)):q("v-if",!0),x("span",{ref_key:"core",ref:d,class:S(l(i).e("core")),style:$e(l(m))},[I.inlinePrompt?(k(),L("div",{key:0,class:S(l(i).e("inner"))},[I.activeIcon||I.inactiveIcon?(k(),L(Pe,{key:0},[I.activeIcon?(k(),X(l(ve),{key:0,class:S([l(i).is("icon"),l(b)?l(i).is("show"):l(i).is("hide")])},{default:H(()=>[(k(),X(Ve(I.activeIcon)))]),_:1},8,["class"])):q("v-if",!0),I.inactiveIcon?(k(),X(l(ve),{key:1,class:S([l(i).is("icon"),l(b)?l(i).is("hide"):l(i).is("show")])},{default:H(()=>[(k(),X(Ve(I.inactiveIcon)))]),_:1},8,["class"])):q("v-if",!0)],64)):I.activeText||I.inactiveIcon?(k(),L(Pe,{key:1},[I.activeText?(k(),L("span",{key:0,class:S([l(i).is("text"),l(b)?l(i).is("show"):l(i).is("hide")]),"aria-hidden":!l(b)},ce(I.activeText.substring(0,3)),11,tC)):q("v-if",!0),I.inactiveText?(k(),L("span",{key:1,class:S([l(i).is("text"),l(b)?l(i).is("hide"):l(i).is("show")]),"aria-hidden":l(b)},ce(I.inactiveText.substring(0,3)),11,nC)):q("v-if",!0)],64)):q("v-if",!0)],2)):q("v-if",!0),x("div",{class:S(l(i).e("action"))},[I.loading?(k(),X(l(ve),{key:0,class:S(l(i).is("loading"))},{default:H(()=>[j(l(vo))]),_:1},8,["class"])):q("v-if",!0)],2)],6),!I.inlinePrompt&&(I.activeIcon||I.activeText)?(k(),L("span",{key:1,class:S([l(i).e("label"),l(i).em("label","right"),l(i).is("active",l(b))])},[I.activeIcon?(k(),X(l(ve),{key:0},{default:H(()=>[(k(),X(Ve(I.activeIcon)))]),_:1})):q("v-if",!0),!I.activeIcon&&I.activeText?(k(),L("span",{key:1,"aria-hidden":!l(b)},ce(I.activeText),9,oC)):q("v-if",!0)],2)):q("v-if",!0)],14,Z0))}});var sC=ue(aC,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const xS=je(sC),Vl=function(e){let t=e.target;for(;t&&t.tagName.toUpperCase()!=="HTML";){if(t.tagName.toUpperCase()==="TD")return t;t=t.parentNode}return null},Bs=function(e){return e!==null&&typeof e=="object"},rC=function(e,t,n,o,a){if(!t&&!o&&(!a||Array.isArray(a)&&!a.length))return e;typeof n=="string"?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const s=o?null:function(u,i){return a?(Array.isArray(a)||(a=[a]),a.map(c=>typeof c=="string"?Tt(u,c):c(u,i,e))):(t!=="$key"&&Bs(u)&&"$value"in u&&(u=u.$value),[Bs(u)?Tt(u,t):u])},r=function(u,i){if(o)return o(u.value,i.value);for(let c=0,f=u.key.length;c<f;c++){if(u.key[c]<i.key[c])return-1;if(u.key[c]>i.key[c])return 1}return 0};return e.map((u,i)=>({value:u,index:i,key:s?s(u,i):null})).sort((u,i)=>{let c=r(u,i);return c||(c=u.index-i.index),c*+n}).map(u=>u.value)},zi=function(e,t){let n=null;return e.columns.forEach(o=>{o.id===t&&(n=o)}),n},iC=function(e,t){let n=null;for(let o=0;o<e.columns.length;o++){const a=e.columns[o];if(a.columnKey===t){n=a;break}}return n},Ds=function(e,t,n){const o=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return o?zi(e,o[0]):null},Ct=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let o=e;for(const a of n)o=o[a];return`${o}`}else if(typeof t=="function")return t.call(null,e)},Fn=function(e,t){const n={};return(e||[]).forEach((o,a)=>{n[Ct(o,t)]={row:o,index:a}}),n};function uC(e,t){const n={};let o;for(o in e)n[o]=e[o];for(o in t)if(Rt(t,o)){const a=t[o];typeof a<"u"&&(n[o]=a)}return n}function La(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function Vi(e){return e===""||e!==void 0&&(e=La(e),Number.isNaN(e)&&(e=80)),e}function Ql(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function cC(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...o)=>t(n(...o)))}function Qo(e,t,n){let o=!1;const a=e.indexOf(t),s=a!==-1,r=()=>{e.push(t),o=!0},u=()=>{e.splice(a,1),o=!0};return typeof n=="boolean"?n&&!s?r():!n&&s&&u():s?u():r(),o}function dC(e,t,n="children",o="hasChildren"){const a=r=>!(Array.isArray(r)&&r.length);function s(r,u,i){t(r,u,i),u.forEach(c=>{if(c[o]){t(c,null,i+1);return}const f=c[n];a(f)||s(c,f,i+1)})}e.forEach(r=>{if(r[o]){t(r,null,0);return}const u=r[n];a(u)||s(r,u,0)})}let Tn;function fC(e,t,n,o,a){const{nextZIndex:s}=An(),r=e==null?void 0:e.dataset.prefix,u=e==null?void 0:e.querySelector(`.${r}-scrollbar__wrap`);function i(){const v=a==="light",m=document.createElement("div");return m.className=`${r}-popper ${v?"is-light":"is-dark"}`,n=Ju(n),m.innerHTML=n,m.style.zIndex=String(s()),e==null||e.appendChild(m),m}function c(){const v=document.createElement("div");return v.className=`${r}-popper__arrow`,v}function f(){h&&h.update()}Tn=()=>{try{h&&h.destroy(),p&&(e==null||e.removeChild(p)),xt(t,"mouseenter",f),xt(t,"mouseleave",Tn),u&&xt(u,"scroll",Tn),Tn=void 0}catch{}};let h=null;const p=i(),d=c();return p.appendChild(d),h=jr(t,p,{strategy:"absolute",modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"arrow",options:{element:d,padding:10}}],...o}),Nt(t,"mouseenter",f),Nt(t,"mouseleave",Tn),u&&Nt(u,"scroll",Tn),h}const Hi=(e,t,n,o)=>{let a=0,s=e;if(o){if(o[e].colSpan>1)return{};for(let i=0;i<e;i++)a+=o[i].colSpan;s=a+o[e].colSpan-1}else a=e;let r;const u=n.states.columns;switch(t){case"left":s<n.states.fixedLeafColumnsLength.value&&(r="left");break;case"right":a>=u.value.length-n.states.rightFixedLeafColumnsLength.value&&(r="right");break;default:s<n.states.fixedLeafColumnsLength.value?r="left":a>=u.value.length-n.states.rightFixedLeafColumnsLength.value&&(r="right")}return r?{direction:r,start:a,after:s}:{}},Ra=(e,t,n,o,a)=>{const s=[],{direction:r,start:u}=Hi(t,n,o,a);if(r){const i=r==="left";s.push(`${e}-fixed-column--${r}`),i&&u===o.states.fixedLeafColumnsLength.value-1?s.push("is-last-column"):!i&&u===o.states.columns.value.length-o.states.rightFixedLeafColumnsLength.value&&s.push("is-first-column")}return s};function Ls(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const _a=(e,t,n,o)=>{const{direction:a,start:s=0}=Hi(e,t,n,o);if(!a)return;const r={},u=a==="left",i=n.states.columns.value;return u?r.left=i.slice(0,e).reduce(Ls,0):r.right=i.slice(s+1).reverse().reduce(Ls,0),r},co=(e,t)=>{!e||Number.isNaN(e[t])||(e[t]=`${e[t]}px`)};function pC(e){const t=De(),n=M(!1),o=M([]);return{updateExpandRows:()=>{const i=e.data.value||[],c=e.rowKey.value;if(n.value)o.value=i.slice();else if(c){const f=Fn(o.value,c);o.value=i.reduce((h,p)=>{const d=Ct(p,c);return f[d]&&h.push(p),h},[])}else o.value=[]},toggleRowExpansion:(i,c)=>{Qo(o.value,i,c)&&t.emit("expand-change",i,o.value.slice())},setExpandRowKeys:i=>{t.store.assertRowKey();const c=e.data.value||[],f=e.rowKey.value,h=Fn(c,f);o.value=i.reduce((p,d)=>{const v=h[d];return v&&p.push(v.row),p},[])},isRowExpanded:i=>{const c=e.rowKey.value;return c?!!Fn(o.value,c)[Ct(i,c)]:o.value.includes(i)},states:{expandRows:o,defaultExpandAll:n}}}function vC(e){const t=De(),n=M(null),o=M(null),a=c=>{t.store.assertRowKey(),n.value=c,r(c)},s=()=>{n.value=null},r=c=>{const{data:f,rowKey:h}=e;let p=null;h.value&&(p=(l(f)||[]).find(d=>Ct(d,h.value)===c)),o.value=p,t.emit("current-change",o.value,null)};return{setCurrentRowKey:a,restoreCurrentRowKey:s,setCurrentRowByKey:r,updateCurrentRow:c=>{const f=o.value;if(c&&c!==f){o.value=c,t.emit("current-change",o.value,f);return}!c&&f&&(o.value=null,t.emit("current-change",null,f))},updateCurrentRowData:()=>{const c=e.rowKey.value,f=e.data.value||[],h=o.value;if(!f.includes(h)&&h){if(c){const p=Ct(h,c);r(p)}else o.value=null;o.value===null&&t.emit("current-change",null,h)}else n.value&&(r(n.value),s())},states:{_currentRowKey:n,currentRow:o}}}function mC(e){const t=M([]),n=M({}),o=M(16),a=M(!1),s=M({}),r=M("hasChildren"),u=M("children"),i=De(),c=$(()=>{if(!e.rowKey.value)return{};const b=e.data.value||[];return h(b)}),f=$(()=>{const b=e.rowKey.value,C=Object.keys(s.value),g={};return C.length&&C.forEach(w=>{if(s.value[w].length){const P={children:[]};s.value[w].forEach(I=>{const T=Ct(I,b);P.children.push(T),I[r.value]&&!g[T]&&(g[T]={children:[]})}),g[w]=P}}),g}),h=b=>{const C=e.rowKey.value,g={};return dC(b,(w,P,I)=>{const T=Ct(w,C);Array.isArray(P)?g[T]={children:P.map(B=>Ct(B,C)),level:I}:a.value&&(g[T]={children:[],lazy:!0,level:I})},u.value,r.value),g},p=(b=!1,C=(g=>(g=i.store)==null?void 0:g.states.defaultExpandAll.value)())=>{var g;const w=c.value,P=f.value,I=Object.keys(w),T={};if(I.length){const B=l(n),O=[],V=(Z,F)=>{if(b)return t.value?C||t.value.includes(F):!!(C||(Z==null?void 0:Z.expanded));{const K=C||t.value&&t.value.includes(F);return!!((Z==null?void 0:Z.expanded)||K)}};I.forEach(Z=>{const F=B[Z],K={...w[Z]};if(K.expanded=V(F,Z),K.lazy){const{loaded:Y=!1,loading:_=!1}=F||{};K.loaded=!!Y,K.loading=!!_,O.push(Z)}T[Z]=K});const W=Object.keys(P);a.value&&W.length&&O.length&&W.forEach(Z=>{const F=B[Z],K=P[Z].children;if(O.includes(Z)){if(T[Z].children.length!==0)throw new Error("[ElTable]children must be an empty array.");T[Z].children=K}else{const{loaded:Y=!1,loading:_=!1}=F||{};T[Z]={lazy:!0,loaded:!!Y,loading:!!_,expanded:V(F,Z),children:K,level:""}}})}n.value=T,(g=i.store)==null||g.updateTableScrollY()};ne(()=>t.value,()=>{p(!0)}),ne(()=>c.value,()=>{p()}),ne(()=>f.value,()=>{p()});const d=b=>{t.value=b,p()},v=(b,C)=>{i.store.assertRowKey();const g=e.rowKey.value,w=Ct(b,g),P=w&&n.value[w];if(w&&P&&"expanded"in P){const I=P.expanded;C=typeof C>"u"?!P.expanded:C,n.value[w].expanded=C,I!==C&&i.emit("expand-change",b,C),i.store.updateTableScrollY()}},m=b=>{i.store.assertRowKey();const C=e.rowKey.value,g=Ct(b,C),w=n.value[g];a.value&&w&&"loaded"in w&&!w.loaded?y(b,g,w):v(b,void 0)},y=(b,C,g)=>{const{load:w}=i.props;w&&!n.value[C].loaded&&(n.value[C].loading=!0,w(b,g,P=>{if(!Array.isArray(P))throw new TypeError("[ElTable] data must be an array");n.value[C].loading=!1,n.value[C].loaded=!0,n.value[C].expanded=!0,P.length&&(s.value[C]=P),i.emit("expand-change",b,!0)}))};return{loadData:y,loadOrToggle:m,toggleTreeExpansion:v,updateTreeExpandKeys:d,updateTreeData:p,normalize:h,states:{expandRowKeys:t,treeData:n,indent:o,lazy:a,lazyTreeNodeMap:s,lazyColumnIdentifier:r,childrenColumnName:u}}}const hC=(e,t)=>{const n=t.sortingColumn;return!n||typeof n.sortable=="string"?e:rC(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},el=e=>{const t=[];return e.forEach(n=>{n.children?t.push.apply(t,el(n.children)):t.push(n)}),t};function gC(){var e;const t=De(),{size:n}=Ft((e=t.proxy)==null?void 0:e.$props),o=M(null),a=M([]),s=M([]),r=M(!1),u=M([]),i=M([]),c=M([]),f=M([]),h=M([]),p=M([]),d=M([]),v=M([]),m=M(0),y=M(0),b=M(0),C=M(!1),g=M([]),w=M(!1),P=M(!1),I=M(null),T=M({}),B=M(null),O=M(null),V=M(null),W=M(null),Z=M(null);ne(a,()=>t.state&&Y(!1),{deep:!0});const F=()=>{if(!o.value)throw new Error("[ElTable] prop row-key is required")},K=()=>{f.value=u.value.filter(ee=>ee.fixed===!0||ee.fixed==="left"),h.value=u.value.filter(ee=>ee.fixed==="right"),f.value.length>0&&u.value[0]&&u.value[0].type==="selection"&&!u.value[0].fixed&&(u.value[0].fixed=!0,f.value.unshift(u.value[0]));const U=u.value.filter(ee=>!ee.fixed);i.value=[].concat(f.value).concat(U).concat(h.value);const oe=el(U),E=el(f.value),z=el(h.value);m.value=oe.length,y.value=E.length,b.value=z.length,c.value=[].concat(E).concat(oe).concat(z),r.value=f.value.length>0||h.value.length>0},Y=(U,oe=!1)=>{U&&K(),oe?t.state.doLayout():t.state.debouncedUpdateLayout()},_=U=>g.value.includes(U),D=()=>{C.value=!1,g.value.length&&(g.value=[],t.emit("selection-change",[]))},A=()=>{let U;if(o.value){U=[];const oe=Fn(g.value,o.value),E=Fn(a.value,o.value);for(const z in oe)Rt(oe,z)&&!E[z]&&U.push(oe[z].row)}else U=g.value.filter(oe=>!a.value.includes(oe));if(U.length){const oe=g.value.filter(E=>!U.includes(E));g.value=oe,t.emit("selection-change",oe.slice())}},N=()=>(g.value||[]).slice(),R=(U,oe=void 0,E=!0)=>{if(Qo(g.value,U,oe)){const ee=(g.value||[]).slice();E&&t.emit("select",ee,U),t.emit("selection-change",ee)}},G=()=>{var U,oe;const E=P.value?!C.value:!(C.value||g.value.length);C.value=E;let z=!1,ee=0;const he=(oe=(U=t==null?void 0:t.store)==null?void 0:U.states)==null?void 0:oe.rowKey.value;a.value.forEach((ie,Ce)=>{const we=Ce+ee;I.value?I.value.call(null,ie,we)&&Qo(g.value,ie,E)&&(z=!0):Qo(g.value,ie,E)&&(z=!0),ee+=ye(Ct(ie,he))}),z&&t.emit("selection-change",g.value?g.value.slice():[]),t.emit("select-all",g.value)},re=()=>{const U=Fn(g.value,o.value);a.value.forEach(oe=>{const E=Ct(oe,o.value),z=U[E];z&&(g.value[z.index]=oe)})},de=()=>{var U,oe,E;if(((U=a.value)==null?void 0:U.length)===0){C.value=!1;return}let z;o.value&&(z=Fn(g.value,o.value));const ee=function(we){return z?!!z[Ct(we,o.value)]:g.value.includes(we)};let he=!0,ie=0,Ce=0;for(let we=0,dt=(a.value||[]).length;we<dt;we++){const ut=(E=(oe=t==null?void 0:t.store)==null?void 0:oe.states)==null?void 0:E.rowKey.value,nt=we+Ce,ze=a.value[we],jt=I.value&&I.value.call(null,ze,nt);if(ee(ze))ie++;else if(!I.value||jt){he=!1;break}Ce+=ye(Ct(ze,ut))}ie===0&&(he=!1),C.value=he},ye=U=>{var oe;if(!t||!t.store)return 0;const{treeData:E}=t.store.states;let z=0;const ee=(oe=E.value[U])==null?void 0:oe.children;return ee&&(z+=ee.length,ee.forEach(he=>{z+=ye(he)})),z},ge=(U,oe)=>{Array.isArray(U)||(U=[U]);const E={};return U.forEach(z=>{T.value[z.id]=oe,E[z.columnKey||z.id]=oe}),E},Te=(U,oe,E)=>{O.value&&O.value!==U&&(O.value.order=null),O.value=U,V.value=oe,W.value=E},J=()=>{let U=l(s);Object.keys(T.value).forEach(oe=>{const E=T.value[oe];if(!E||E.length===0)return;const z=zi({columns:c.value},oe);z&&z.filterMethod&&(U=U.filter(ee=>E.some(he=>z.filterMethod.call(null,he,ee,z))))}),B.value=U},me=()=>{a.value=hC(B.value,{sortingColumn:O.value,sortProp:V.value,sortOrder:W.value})},Ne=(U=void 0)=>{U&&U.filter||J(),me()},Le=U=>{const{tableHeaderRef:oe}=t.refs;if(!oe)return;const E=Object.assign({},oe.filterPanels),z=Object.keys(E);if(!!z.length)if(typeof U=="string"&&(U=[U]),Array.isArray(U)){const ee=U.map(he=>iC({columns:c.value},he));z.forEach(he=>{const ie=ee.find(Ce=>Ce.id===he);ie&&(ie.filteredValue=[])}),t.store.commit("filterChange",{column:ee,values:[],silent:!0,multi:!0})}else z.forEach(ee=>{const he=c.value.find(ie=>ie.id===ee);he&&(he.filteredValue=[])}),T.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},Xe=()=>{!O.value||(Te(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:Ze,toggleRowExpansion:Ue,updateExpandRows:ht,states:Ae,isRowExpanded:it}=pC({data:a,rowKey:o}),{updateTreeExpandKeys:lt,toggleTreeExpansion:ft,updateTreeData:gt,loadOrToggle:et,states:st}=mC({data:a,rowKey:o}),{updateCurrentRowData:Et,updateCurrentRow:bt,setCurrentRowKey:le,states:Be}=vC({data:a,rowKey:o});return{assertRowKey:F,updateColumns:K,scheduleLayout:Y,isSelected:_,clearSelection:D,cleanSelection:A,getSelectionRows:N,toggleRowSelection:R,_toggleAllSelection:G,toggleAllSelection:null,updateSelectionByRowKey:re,updateAllSelected:de,updateFilters:ge,updateCurrentRow:bt,updateSort:Te,execFilter:J,execSort:me,execQuery:Ne,clearFilter:Le,clearSort:Xe,toggleRowExpansion:Ue,setExpandRowKeysAdapter:U=>{Ze(U),lt(U)},setCurrentRowKey:le,toggleRowExpansionAdapter:(U,oe)=>{c.value.some(({type:z})=>z==="expand")?Ue(U,oe):ft(U,oe)},isRowExpanded:it,updateExpandRows:ht,updateCurrentRowData:Et,loadOrToggle:et,updateTreeData:gt,states:{tableSize:n,rowKey:o,data:a,_data:s,isComplex:r,_columns:u,originColumns:i,columns:c,fixedColumns:f,rightFixedColumns:h,leafColumns:p,fixedLeafColumns:d,rightFixedLeafColumns:v,leafColumnsLength:m,fixedLeafColumnsLength:y,rightFixedLeafColumnsLength:b,isAllSelected:C,selection:g,reserveSelection:w,selectOnIndeterminate:P,selectable:I,filters:T,filteredData:B,sortingColumn:O,sortProp:V,sortOrder:W,hoverRow:Z,...Ae,...st,...Be}}}function ea(e,t){return e.map(n=>{var o;return n.id===t.id?t:((o=n.children)!=null&&o.length&&(n.children=ea(n.children,t)),n)})}function Ki(e){e.forEach(t=>{var n,o;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(o=t.children)!=null&&o.length&&Ki(t.children)}),e.sort((t,n)=>t.no-n.no)}function bC(){const e=De(),t=gC();return{ns:ae("table"),...t,mutations:{setData(r,u){const i=l(r._data)!==u;r.data.value=u,r._data.value=u,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),l(r.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):i?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(r,u,i){const c=l(r._columns);let f=[];i?(i&&!i.children&&(i.children=[]),i.children.push(u),f=ea(c,i)):(c.push(u),f=c),Ki(f),r._columns.value=f,u.type==="selection"&&(r.selectable.value=u.selectable,r.reserveSelection.value=u.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},removeColumn(r,u,i){const c=l(r._columns)||[];if(i)i.children.splice(i.children.findIndex(f=>f.id===u.id),1),i.children.length===0&&delete i.children,r._columns.value=ea(c,i);else{const f=c.indexOf(u);f>-1&&(c.splice(f,1),r._columns.value=c)}e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(r,u){const{prop:i,order:c,init:f}=u;if(i){const h=l(r.columns).find(p=>p.property===i);h&&(h.order=c,e.store.updateSort(h,i,c),e.store.commit("changeSortCondition",{init:f}))}},changeSortCondition(r,u){const{sortingColumn:i,sortProp:c,sortOrder:f}=r;l(f)===null&&(r.sortingColumn.value=null,r.sortProp.value=null);const h={filter:!0};e.store.execQuery(h),(!u||!(u.silent||u.init))&&e.emit("sort-change",{column:l(i),prop:l(c),order:l(f)}),e.store.updateTableScrollY()},filterChange(r,u){const{column:i,values:c,silent:f}=u,h=e.store.updateFilters(i,c);e.store.execQuery(),f||e.emit("filter-change",h),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(r,u){e.store.toggleRowSelection(u),e.store.updateAllSelected()},setHoverRow(r,u){r.hoverRow.value=u},setCurrentRow(r,u){e.store.updateCurrentRow(u)}},commit:function(r,...u){const i=e.store.mutations;if(i[r])i[r].apply(e,[e.store.states].concat(u));else throw new Error(`Action not found: ${r}`)},updateTableScrollY:function(){ke(()=>e.layout.updateScrollY.apply(e.layout))}}}const No={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data",["treeProps.hasChildren"]:{key:"lazyColumnIdentifier",default:"hasChildren"},["treeProps.children"]:{key:"childrenColumnName",default:"children"}};function yC(e,t){if(!e)throw new Error("Table is required.");const n=bC();return n.toggleAllSelection=hn(n._toggleAllSelection,10),Object.keys(No).forEach(o=>{Wi(ji(t,o),o,n)}),CC(n,t),n}function CC(e,t){Object.keys(No).forEach(n=>{ne(()=>ji(t,n),o=>{Wi(o,n,e)})})}function Wi(e,t,n){let o=e,a=No[t];typeof No[t]=="object"&&(a=a.key,o=o||No[t].default),n.states[a].value=o}function ji(e,t){if(t.includes(".")){const n=t.split(".");let o=e;return n.forEach(a=>{o=o[a]}),o}else return e[t]}class wC{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=M(null),this.scrollX=M(!1),this.scrollY=M(!1),this.bodyWidth=M(null),this.fixedWidth=M(null),this.rightFixedWidth=M(null),this.tableHeight=M(null),this.headerHeight=M(44),this.appendHeight=M(0),this.footerHeight=M(44),this.viewportHeight=M(null),this.bodyHeight=M(null),this.bodyScrollHeight=M(0),this.fixedBodyHeight=M(null),this.gutterWidth=0;for(const n in t)Rt(t,n)&&(Zt(this[n])?this[n].value=t[n]:this[n]=t[n]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){if(this.height.value===null)return!1;const n=this.table.refs.bodyWrapper;if(this.table.vnode.el&&n){let o=!0;const a=this.scrollY.value;return this.bodyHeight.value===null?o=!1:o=n.scrollHeight>this.bodyHeight.value,this.scrollY.value=o,a!==o}return!1}setHeight(t,n="height"){if(!We)return;const o=this.table.vnode.el;if(t=Ql(t),this.height.value=Number(t),!o&&(t||t===0))return ke(()=>this.setHeight(t,n));typeof t=="number"?(o.style[n]=`${t}px`,this.updateElsHeight()):typeof t=="string"&&(o.style[n]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(o=>{o.isColumnGroup?t.push.apply(t,o.columns):t.push(o)}),t}updateElsHeight(){var t,n;if(!this.table.$ready)return ke(()=>this.updateElsHeight());const{tableWrapper:o,headerWrapper:a,appendWrapper:s,footerWrapper:r,tableHeader:u,tableBody:i}=this.table.refs;if(o&&o.style.display==="none")return;const{tableLayout:c}=this.table.props;if(this.appendHeight.value=s?s.offsetHeight:0,this.showHeader&&!a&&c==="fixed")return;const f=u||null,h=this.headerDisplayNone(f),p=(a==null?void 0:a.offsetHeight)||0,d=this.headerHeight.value=this.showHeader?p:0;if(this.showHeader&&!h&&p>0&&(this.table.store.states.columns.value||[]).length>0&&d<2)return ke(()=>this.updateElsHeight());const v=this.tableHeight.value=(n=(t=this.table)==null?void 0:t.vnode.el)==null?void 0:n.clientHeight,m=this.footerHeight.value=r?r.offsetHeight:0;this.height.value!==null&&(this.bodyHeight.value===null&&requestAnimationFrame(()=>this.updateElsHeight()),this.bodyHeight.value=v-d-m+(r?1:0),this.bodyScrollHeight.value=i==null?void 0:i.scrollHeight),this.fixedBodyHeight.value=this.scrollX.value?this.bodyHeight.value-this.gutterWidth:this.bodyHeight.value,this.viewportHeight.value=this.scrollX.value?v-this.gutterWidth:v,this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let n=t;for(;n.tagName!=="DIV";){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}updateColumnsWidth(){if(!We)return;const t=this.fit,n=this.table.vnode.el.clientWidth;let o=0;const a=this.getFlattenColumns(),s=a.filter(i=>typeof i.width!="number");if(a.forEach(i=>{typeof i.width=="number"&&i.realWidth&&(i.realWidth=null)}),s.length>0&&t){if(a.forEach(i=>{o+=Number(i.width||i.minWidth||80)}),o<=n){this.scrollX.value=!1;const i=n-o;if(s.length===1)s[0].realWidth=Number(s[0].minWidth||80)+i;else{const c=s.reduce((p,d)=>p+Number(d.minWidth||80),0),f=i/c;let h=0;s.forEach((p,d)=>{if(d===0)return;const v=Math.floor(Number(p.minWidth||80)*f);h+=v,p.realWidth=Number(p.minWidth||80)+v}),s[0].realWidth=Number(s[0].minWidth||80)+i-h}}else this.scrollX.value=!0,s.forEach(i=>{i.realWidth=Number(i.minWidth)});this.bodyWidth.value=Math.max(o,n),this.table.state.resizeState.value.width=this.bodyWidth.value}else a.forEach(i=>{!i.width&&!i.minWidth?i.realWidth=80:i.realWidth=Number(i.width||i.minWidth),o+=i.realWidth}),this.scrollX.value=o>n,this.bodyWidth.value=o;const r=this.store.states.fixedColumns.value;if(r.length>0){let i=0;r.forEach(c=>{i+=Number(c.realWidth||c.width)}),this.fixedWidth.value=i}const u=this.store.states.rightFixedColumns.value;if(u.length>0){let i=0;u.forEach(c=>{i+=Number(c.realWidth||c.width)}),this.rightFixedWidth.value=i}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const n=this.observers.indexOf(t);n!==-1&&this.observers.splice(n,1)}notifyObservers(t){this.observers.forEach(o=>{var a,s;switch(t){case"columns":(a=o.state)==null||a.onColumnsChange(this);break;case"scrollable":(s=o.state)==null||s.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:kC}=Wn,SC=se({name:"ElTableFilterPanel",components:{ElCheckbox:Wn,ElCheckboxGroup:kC,ElScrollbar:bo,ElTooltip:wn,ElIcon:ve,ArrowDown:mo,ArrowUp:gl},directives:{ClickOutside:uo},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=De(),{t:n}=Je(),o=ae("table-filter"),a=t==null?void 0:t.parent;a.filterPanels.value[e.column.id]||(a.filterPanels.value[e.column.id]=t);const s=M(!1),r=M(null),u=$(()=>e.column&&e.column.filters),i=$({get:()=>{var w;return(((w=e.column)==null?void 0:w.filteredValue)||[])[0]},set:w=>{c.value&&(typeof w<"u"&&w!==null?c.value.splice(0,1,w):c.value.splice(0,1))}}),c=$({get(){return e.column?e.column.filteredValue||[]:[]},set(w){e.column&&e.upDataColumn("filteredValue",w)}}),f=$(()=>e.column?e.column.filterMultiple:!0),h=w=>w.value===i.value,p=()=>{s.value=!1},d=w=>{w.stopPropagation(),s.value=!s.value},v=()=>{s.value=!1},m=()=>{C(c.value),p()},y=()=>{c.value=[],C(c.value),p()},b=w=>{i.value=w,C(typeof w<"u"&&w!==null?c.value:[]),p()},C=w=>{e.store.commit("filterChange",{column:e.column,values:w}),e.store.updateAllSelected()};ne(s,w=>{e.column&&e.upDataColumn("filterOpened",w)},{immediate:!0});const g=$(()=>{var w,P;return(P=(w=r.value)==null?void 0:w.popperRef)==null?void 0:P.contentRef});return{tooltipVisible:s,multiple:f,filteredValue:c,filterValue:i,filters:u,handleConfirm:m,handleReset:y,handleSelect:b,isActive:h,t:n,ns:o,showFilterPanel:d,hideFilterPanel:v,popperPaneRef:g,tooltip:r}}}),EC={key:0},$C=["disabled"],TC=["label","onClick"];function NC(e,t,n,o,a,s){const r=Ee("el-checkbox"),u=Ee("el-checkbox-group"),i=Ee("el-scrollbar"),c=Ee("arrow-up"),f=Ee("arrow-down"),h=Ee("el-icon"),p=Ee("el-tooltip"),d=hl("click-outside");return k(),X(p,{ref:"tooltip",visible:e.tooltipVisible,"onUpdate:visible":t[5]||(t[5]=v=>e.tooltipVisible=v),offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.ns.b(),persistent:""},{content:H(()=>[e.multiple?(k(),L("div",EC,[x("div",{class:S(e.ns.e("content"))},[j(i,{"wrap-class":e.ns.e("wrap")},{default:H(()=>[j(u,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=v=>e.filteredValue=v),class:S(e.ns.e("checkbox-group"))},{default:H(()=>[(k(!0),L(Pe,null,ot(e.filters,v=>(k(),X(r,{key:v.value,label:v.value},{default:H(()=>[Ge(ce(v.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),x("div",{class:S(e.ns.e("bottom"))},[x("button",{class:S({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...v)=>e.handleConfirm&&e.handleConfirm(...v))},ce(e.t("el.table.confirmFilter")),11,$C),x("button",{type:"button",onClick:t[2]||(t[2]=(...v)=>e.handleReset&&e.handleReset(...v))},ce(e.t("el.table.resetFilter")),1)],2)])):(k(),L("ul",{key:1,class:S(e.ns.e("list"))},[x("li",{class:S([e.ns.e("list-item"),{[e.ns.is("active")]:e.filterValue===void 0||e.filterValue===null}]),onClick:t[3]||(t[3]=v=>e.handleSelect(null))},ce(e.t("el.table.clearFilter")),3),(k(!0),L(Pe,null,ot(e.filters,v=>(k(),L("li",{key:v.value,class:S([e.ns.e("list-item"),e.ns.is("active",e.isActive(v))]),label:v.value,onClick:m=>e.handleSelect(v.value)},ce(v.text),11,TC))),128))],2))]),default:H(()=>[Ie((k(),L("span",{class:S([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:t[4]||(t[4]=(...v)=>e.showFilterPanel&&e.showFilterPanel(...v))},[j(h,null,{default:H(()=>[e.column.filterOpened?(k(),X(c,{key:0})):(k(),X(f,{key:1}))]),_:1})],2)),[[d,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var PC=ue(SC,[["render",NC],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function xi(e){const t=De();sa(()=>{n.value.addObserver(t)}),Re(()=>{o(n.value),a(n.value)}),Mn(()=>{o(n.value),a(n.value)}),vl(()=>{n.value.removeObserver(t)});const n=$(()=>{const s=e.layout;if(!s)throw new Error("Can not find table layout.");return s}),o=s=>{var r;const u=((r=e.vnode.el)==null?void 0:r.querySelectorAll("colgroup > col"))||[];if(!u.length)return;const i=s.getFlattenColumns(),c={};i.forEach(f=>{c[f.id]=f});for(let f=0,h=u.length;f<h;f++){const p=u[f],d=p.getAttribute("name"),v=c[d];v&&p.setAttribute("width",v.realWidth||v.width)}},a=s=>{var r,u;const i=((r=e.vnode.el)==null?void 0:r.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let f=0,h=i.length;f<h;f++)i[f].setAttribute("width",s.scrollY.value?s.gutterWidth:"0");const c=((u=e.vnode.el)==null?void 0:u.querySelectorAll("th.gutter"))||[];for(let f=0,h=c.length;f<h;f++){const p=c[f];p.style.width=s.scrollY.value?`${s.gutterWidth}px`:"0",p.style.display=s.scrollY.value?"":"none"}};return{tableLayout:n.value,onColumnsChange:o,onScrollableChange:a}}const pn=Symbol("ElTable");function IC(e,t){const n=De(),o=fe(pn),a=m=>{m.stopPropagation()},s=(m,y)=>{!y.filters&&y.sortable?v(m,y,!1):y.filterable&&!y.sortable&&a(m),o==null||o.emit("header-click",y,m)},r=(m,y)=>{o==null||o.emit("header-contextmenu",y,m)},u=M(null),i=M(!1),c=M({}),f=(m,y)=>{if(!!We&&!(y.children&&y.children.length>0)&&u.value&&e.border){i.value=!0;const b=o;t("set-drag-visible",!0);const g=(b==null?void 0:b.vnode.el).getBoundingClientRect().left,w=n.vnode.el.querySelector(`th.${y.id}`),P=w.getBoundingClientRect(),I=P.left-g+30;ln(w,"noclick"),c.value={startMouseLeft:m.clientX,startLeft:P.right-g,startColumnLeft:P.left-g,tableLeft:g};const T=b==null?void 0:b.refs.resizeProxy;T.style.left=`${c.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const B=V=>{const W=V.clientX-c.value.startMouseLeft,Z=c.value.startLeft+W;T.style.left=`${Math.max(I,Z)}px`},O=()=>{if(i.value){const{startColumnLeft:V,startLeft:W}=c.value,F=Number.parseInt(T.style.left,10)-V;y.width=y.realWidth=F,b==null||b.emit("header-dragend",y.width,W-V,y,m),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",i.value=!1,u.value=null,c.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",B),document.removeEventListener("mouseup",O),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{Bt(w,"noclick")},0)};document.addEventListener("mousemove",B),document.addEventListener("mouseup",O)}},h=(m,y)=>{if(y.children&&y.children.length>0)return;let b=m.target;for(;b&&b.tagName!=="TH";)b=b.parentNode;if(!(!y||!y.resizable)&&!i.value&&e.border){const C=b.getBoundingClientRect(),g=document.body.style;C.width>12&&C.right-m.pageX<8?(g.cursor="col-resize",mn(b,"is-sortable")&&(b.style.cursor="col-resize"),u.value=y):i.value||(g.cursor="",mn(b,"is-sortable")&&(b.style.cursor="pointer"),u.value=null)}},p=()=>{!We||(document.body.style.cursor="")},d=({order:m,sortOrders:y})=>{if(m==="")return y[0];const b=y.indexOf(m||null);return y[b>y.length-2?0:b+1]},v=(m,y,b)=>{m.stopPropagation();const C=y.order===b?null:b||d(y);let g=m.target;for(;g&&g.tagName!=="TH";)g=g.parentNode;if(g&&g.tagName==="TH"&&mn(g,"noclick")){Bt(g,"noclick");return}if(!y.sortable)return;const w=e.store.states;let P=w.sortProp.value,I;const T=w.sortingColumn.value;(T!==y||T===y&&T.order===null)&&(T&&(T.order=null),w.sortingColumn.value=y,P=y.property),C?I=y.order=C:I=y.order=null,w.sortProp.value=P,w.sortOrder.value=I,o==null||o.store.commit("changeSortCondition")};return{handleHeaderClick:s,handleHeaderContextMenu:r,handleMouseDown:f,handleMouseMove:h,handleMouseOut:p,handleSortClick:v,handleFilterClick:a}}function MC(e){const t=fe(pn),n=ae("table");return{getHeaderRowStyle:u=>{const i=t==null?void 0:t.props.headerRowStyle;return typeof i=="function"?i.call(null,{rowIndex:u}):i},getHeaderRowClass:u=>{const i=[],c=t==null?void 0:t.props.headerRowClassName;return typeof c=="string"?i.push(c):typeof c=="function"&&i.push(c.call(null,{rowIndex:u})),i.join(" ")},getHeaderCellStyle:(u,i,c,f)=>{var h;let p=(h=t==null?void 0:t.props.headerCellStyle)!=null?h:{};typeof p=="function"&&(p=p.call(null,{rowIndex:u,columnIndex:i,row:c,column:f}));const d=f.isSubColumn?null:_a(i,f.fixed,e.store,c);return co(d,"left"),co(d,"right"),Object.assign({},p,d)},getHeaderCellClass:(u,i,c,f)=>{const h=f.isSubColumn?[]:Ra(n.b(),i,f.fixed,e.store,c),p=[f.id,f.order,f.headerAlign,f.className,f.labelClassName,...h];f.children||p.push("is-leaf"),f.sortable&&p.push("is-sortable");const d=t==null?void 0:t.props.headerCellClassName;return typeof d=="string"?p.push(d):typeof d=="function"&&p.push(d.call(null,{rowIndex:u,columnIndex:i,row:c,column:f})),p.push(n.e("cell")),p.filter(v=>Boolean(v)).join(" ")}}}const qi=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,qi(n.children))):t.push(n)}),t},OC=e=>{let t=1;const n=(s,r)=>{if(r&&(s.level=r.level+1,t<s.level&&(t=s.level)),s.children){let u=0;s.children.forEach(i=>{n(i,s),u+=i.colSpan}),s.colSpan=u}else s.colSpan=1};e.forEach(s=>{s.level=1,n(s,void 0)});const o=[];for(let s=0;s<t;s++)o.push([]);return qi(e).forEach(s=>{s.children?(s.rowSpan=1,s.children.forEach(r=>r.isSubColumn=!0)):s.rowSpan=t-s.level+1,o[s.level-1].push(s)}),o};function AC(e){const t=fe(pn),n=$(()=>OC(e.store.states.originColumns.value));return{isGroup:$(()=>{const s=n.value.length>1;return s&&t&&(t.state.isGroup.value=!0),s}),toggleAllSelection:s=>{s.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:n}}var BC=se({name:"ElTableHeader",components:{ElCheckbox:Wn},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const n=De(),o=fe(pn),a=ae("table"),s=M({}),{onColumnsChange:r,onScrollableChange:u}=xi(o);Re(async()=>{await ke(),await ke();const{prop:I,order:T}=e.defaultSort;o==null||o.store.commit("sort",{prop:I,order:T,init:!0})});const{handleHeaderClick:i,handleHeaderContextMenu:c,handleMouseDown:f,handleMouseMove:h,handleMouseOut:p,handleSortClick:d,handleFilterClick:v}=IC(e,t),{getHeaderRowStyle:m,getHeaderRowClass:y,getHeaderCellStyle:b,getHeaderCellClass:C}=MC(e),{isGroup:g,toggleAllSelection:w,columnRows:P}=AC(e);return n.state={onColumnsChange:r,onScrollableChange:u},n.filterPanels=s,{ns:a,filterPanels:s,onColumnsChange:r,onScrollableChange:u,columnRows:P,getHeaderRowClass:y,getHeaderRowStyle:m,getHeaderCellClass:C,getHeaderCellStyle:b,handleHeaderClick:i,handleHeaderContextMenu:c,handleMouseDown:f,handleMouseMove:h,handleMouseOut:p,handleSortClick:d,handleFilterClick:v,isGroup:g,toggleAllSelection:w}},render(){const{ns:e,isGroup:t,columnRows:n,getHeaderCellStyle:o,getHeaderCellClass:a,getHeaderRowClass:s,getHeaderRowStyle:r,handleHeaderClick:u,handleHeaderContextMenu:i,handleMouseDown:c,handleMouseMove:f,handleSortClick:h,handleMouseOut:p,store:d,$parent:v}=this;let m=1;return Se("thead",{class:{[e.is("group")]:t}},n.map((y,b)=>Se("tr",{class:s(b),key:b,style:r(b)},y.map((C,g)=>(C.rowSpan>m&&(m=C.rowSpan),Se("th",{class:a(b,g,y,C),colspan:C.colSpan,key:`${C.id}-thead`,rowspan:C.rowSpan,style:o(b,g,y,C),onClick:w=>u(w,C),onContextmenu:w=>i(w,C),onMousedown:w=>c(w,C),onMousemove:w=>f(w,C),onMouseout:p},[Se("div",{class:["cell",C.filteredValue&&C.filteredValue.length>0?"highlight":"",C.labelClassName]},[C.renderHeader?C.renderHeader({column:C,$index:g,store:d,_self:v}):C.label,C.sortable&&Se("span",{onClick:w=>h(w,C),class:"caret-wrapper"},[Se("i",{onClick:w=>h(w,C,"ascending"),class:"sort-caret ascending"}),Se("i",{onClick:w=>h(w,C,"descending"),class:"sort-caret descending"})]),C.filterable&&Se(PC,{store:d,placement:C.filterPlacement||"bottom-start",column:C,upDataColumn:(w,P)=>{C[w]=P}})])]))))))}});function DC(e){const t=fe(pn),n=M(""),o=M(Se("div")),a=(p,d,v)=>{var m;const y=t,b=Vl(p);let C;const g=(m=y==null?void 0:y.vnode.el)==null?void 0:m.dataset.prefix;b&&(C=Ds({columns:e.store.states.columns.value},b,g),C&&(y==null||y.emit(`cell-${v}`,d,C,b,p))),y==null||y.emit(`row-${v}`,d,C,p)},s=(p,d)=>{a(p,d,"dblclick")},r=(p,d)=>{e.store.commit("setCurrentRow",d),a(p,d,"click")},u=(p,d)=>{a(p,d,"contextmenu")},i=hn(p=>{e.store.commit("setHoverRow",p)},30),c=hn(()=>{e.store.commit("setHoverRow",null)},30);return{handleDoubleClick:s,handleClick:r,handleContextMenu:u,handleMouseEnter:i,handleMouseLeave:c,handleCellMouseEnter:(p,d)=>{var v;const m=t,y=Vl(p),b=(v=m==null?void 0:m.vnode.el)==null?void 0:v.dataset.prefix;if(y){const I=Ds({columns:e.store.states.columns.value},y,b),T=m.hoverState={cell:y,column:I,row:d};m==null||m.emit("cell-mouse-enter",T.row,T.column,T.cell,p)}const C=p.target.querySelector(".cell");if(!(mn(C,`${b}-tooltip`)&&C.childNodes.length))return;const g=document.createRange();g.setStart(C,0),g.setEnd(C,C.childNodes.length);const w=g.getBoundingClientRect().width,P=(Number.parseInt(on(C,"paddingLeft"),10)||0)+(Number.parseInt(on(C,"paddingRight"),10)||0);(w+P>C.offsetWidth||C.scrollWidth>C.offsetWidth)&&fC(t==null?void 0:t.refs.tableWrapper,y,y.innerText||y.textContent,{placement:"top",strategy:"fixed"},d.tooltipEffect)},handleCellMouseLeave:p=>{if(!Vl(p))return;const v=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",v==null?void 0:v.row,v==null?void 0:v.column,v==null?void 0:v.cell,p)},tooltipContent:n,tooltipTrigger:o}}function LC(e){const t=fe(pn),n=ae("table");return{getRowStyle:(c,f)=>{const h=t==null?void 0:t.props.rowStyle;return typeof h=="function"?h.call(null,{row:c,rowIndex:f}):h||null},getRowClass:(c,f)=>{const h=[n.e("row")];(t==null?void 0:t.props.highlightCurrentRow)&&c===e.store.states.currentRow.value&&h.push("current-row"),e.stripe&&f%2===1&&h.push(n.em("row","striped"));const p=t==null?void 0:t.props.rowClassName;return typeof p=="string"?h.push(p):typeof p=="function"&&h.push(p.call(null,{row:c,rowIndex:f})),h},getCellStyle:(c,f,h,p)=>{const d=t==null?void 0:t.props.cellStyle;let v=d!=null?d:{};typeof d=="function"&&(v=d.call(null,{rowIndex:c,columnIndex:f,row:h,column:p}));const m=p.isSubColumn?null:_a(f,e==null?void 0:e.fixed,e.store);return co(m,"left"),co(m,"right"),Object.assign({},v,m)},getCellClass:(c,f,h,p)=>{const d=p.isSubColumn?[]:Ra(n.b(),f,e==null?void 0:e.fixed,e.store),v=[p.id,p.align,p.className,...d],m=t==null?void 0:t.props.cellClassName;return typeof m=="string"?v.push(m):typeof m=="function"&&v.push(m.call(null,{rowIndex:c,columnIndex:f,row:h,column:p})),v.push(n.e("cell")),v.filter(y=>Boolean(y)).join(" ")},getSpan:(c,f,h,p)=>{let d=1,v=1;const m=t==null?void 0:t.props.spanMethod;if(typeof m=="function"){const y=m({row:c,column:f,rowIndex:h,columnIndex:p});Array.isArray(y)?(d=y[0],v=y[1]):typeof y=="object"&&(d=y.rowspan,v=y.colspan)}return{rowspan:d,colspan:v}},getColspanRealWidth:(c,f,h)=>{if(f<1)return c[h].realWidth;const p=c.map(({realWidth:d,width:v})=>d||v).slice(h,h+f);return Number(p.reduce((d,v)=>Number(d)+Number(v),-1))}}}function RC(e){const t=fe(pn),n=ae("table"),{handleDoubleClick:o,handleClick:a,handleContextMenu:s,handleMouseEnter:r,handleMouseLeave:u,handleCellMouseEnter:i,handleCellMouseLeave:c,tooltipContent:f,tooltipTrigger:h}=DC(e),{getRowStyle:p,getRowClass:d,getCellStyle:v,getCellClass:m,getSpan:y,getColspanRealWidth:b}=LC(e),C=$(()=>e.store.states.columns.value.findIndex(({type:T})=>T==="default")),g=(T,B)=>{const O=t.props.rowKey;return O?Ct(T,O):B},w=(T,B,O,V=!1)=>{const{tooltipEffect:W,store:Z}=e,{indent:F,columns:K}=Z.states,Y=d(T,B);let _=!0;return O&&(Y.push(n.em("row",`level-${O.level}`)),_=O.display),Se("tr",{style:[_?null:{display:"none"},p(T,B)],class:Y,key:g(T,B),onDblclick:A=>o(A,T),onClick:A=>a(A,T),onContextmenu:A=>s(A,T),onMouseenter:()=>r(B),onMouseleave:u},K.value.map((A,N)=>{const{rowspan:R,colspan:G}=y(T,A,B,N);if(!R||!G)return null;const re={...A};re.realWidth=b(K.value,G,N);const de={store:e.store,_self:e.context||t,column:re,row:T,$index:B,cellIndex:N,expanded:V};N===C.value&&O&&(de.treeNode={indent:O.level*F.value,level:O.level},typeof O.expanded=="boolean"&&(de.treeNode.expanded=O.expanded,"loading"in O&&(de.treeNode.loading=O.loading),"noLazyChildren"in O&&(de.treeNode.noLazyChildren=O.noLazyChildren)));const ye=`${B},${N}`,ge=re.columnKey||re.rawColumnKey||"",Te=P(N,A,de);return Se("td",{style:v(B,N,T,A),class:m(B,N,T,A),key:`${ge}${ye}`,rowspan:R,colspan:G,onMouseenter:J=>i(J,{...T,tooltipEffect:W}),onMouseleave:c},[Te])}))},P=(T,B,O)=>B.renderCell(O);return{wrappedRowRender:(T,B)=>{const O=e.store,{isRowExpanded:V,assertRowKey:W}=O,{treeData:Z,lazyTreeNodeMap:F,childrenColumnName:K,rowKey:Y}=O.states,_=O.states.columns.value;if(_.some(({type:A})=>A==="expand")){const A=V(T),N=w(T,B,void 0,A),R=t.renderExpanded;return A?R?[[N,Se("tr",{key:`expanded-row__${N.key}`},[Se("td",{colspan:_.length,class:"el-table__cell el-table__expanded-cell"},[R({row:T,$index:B,store:O,expanded:A})])])]]:(console.error("[Element Error]renderExpanded is required."),N):[[N]]}else if(Object.keys(Z.value).length){W();const A=Ct(T,Y.value);let N=Z.value[A],R=null;N&&(R={expanded:N.expanded,level:N.level,display:!0},typeof N.lazy=="boolean"&&(typeof N.loaded=="boolean"&&N.loaded&&(R.noLazyChildren=!(N.children&&N.children.length)),R.loading=N.loading));const G=[w(T,B,R)];if(N){let re=0;const de=(ge,Te)=>{!(ge&&ge.length&&Te)||ge.forEach(J=>{const me={display:Te.display&&Te.expanded,level:Te.level+1,expanded:!1,noLazyChildren:!1,loading:!1},Ne=Ct(J,Y.value);if(Ne==null)throw new Error("For nested data item, row-key is required.");if(N={...Z.value[Ne]},N&&(me.expanded=N.expanded,N.level=N.level||me.level,N.display=!!(N.expanded&&me.display),typeof N.lazy=="boolean"&&(typeof N.loaded=="boolean"&&N.loaded&&(me.noLazyChildren=!(N.children&&N.children.length)),me.loading=N.loading)),re++,G.push(w(J,B+re,me)),N){const Le=F.value[Ne]||J[K.value];de(Le,N)}})};N.display=!0;const ye=F.value[A]||T[K.value];de(ye,N)}return G}else return w(T,B,void 0)},tooltipContent:f,tooltipTrigger:h}}const _C={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var FC=se({name:"ElTableBody",props:_C,setup(e){const t=De(),n=fe(pn),o=ae("table"),{wrappedRowRender:a,tooltipContent:s,tooltipTrigger:r}=RC(e),{onColumnsChange:u,onScrollableChange:i}=xi(n);return ne(e.store.states.hoverRow,(c,f)=>{if(!e.store.states.isComplex.value||!We)return;let h=window.requestAnimationFrame;h||(h=p=>window.setTimeout(p,16)),h(()=>{var p;const d=(p=t==null?void 0:t.vnode.el)==null?void 0:p.querySelectorAll(`.${o.e("row")}`),v=d[f],m=d[c];v&&Bt(v,"hover-row"),m&&ln(m,"hover-row")})}),vl(()=>{var c;(c=Tn)==null||c()}),Mn(()=>{var c;(c=Tn)==null||c()}),{ns:o,onColumnsChange:u,onScrollableChange:i,wrappedRowRender:a,tooltipContent:s,tooltipTrigger:r}},render(){const{wrappedRowRender:e,store:t}=this,n=t.states.data.value||[];return Se("tbody",{},[n.reduce((o,a)=>o.concat(e(a,o.length)),[])])}});function Fa(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(a=>a.width===void 0)&&(n=[]);const o=a=>{const s={key:`${e.tableLayout}_${a.id}`,style:{},name:void 0};return t?s.style={width:`${a.width}px`}:s.name=a.id,s};return Se("colgroup",{},n.map(a=>Se("col",o(a))))}Fa.props=["columns","tableLayout"];function zC(){const e=fe(pn),t=e==null?void 0:e.store,n=$(()=>t.states.fixedLeafColumnsLength.value),o=$(()=>t.states.rightFixedColumns.value.length),a=$(()=>t.states.columns.value.length),s=$(()=>t.states.fixedColumns.value.length),r=$(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:n,rightFixedLeafCount:o,columnsCount:a,leftFixedCount:s,rightFixedCount:r,columns:t.states.columns}}function VC(e){const{columns:t}=zC(),n=ae("table");return{getCellClasses:(s,r)=>{const u=s[r],i=[n.e("cell"),u.id,u.align,u.labelClassName,...Ra(n.b(),r,u.fixed,e.store)];return u.className&&i.push(u.className),u.children||i.push(n.is("leaf")),i},getCellStyles:(s,r)=>{const u=_a(r,s.fixed,e.store);return co(u,"left"),co(u,"right"),u},columns:t}}var HC=se({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const{getCellClasses:t,getCellStyles:n,columns:o}=VC(e);return{ns:ae("table"),getCellClasses:t,getCellStyles:n,columns:o}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:o,sumText:a,ns:s}=this,r=this.store.states.data.value;let u=[];return o?u=o({columns:e,data:r}):e.forEach((i,c)=>{if(c===0){u[c]=a;return}const f=r.map(v=>Number(v[i.property])),h=[];let p=!0;f.forEach(v=>{if(!Number.isNaN(+v)){p=!1;const m=`${v}`.split(".")[1];h.push(m?m.length:0)}});const d=Math.max.apply(null,h);p?u[c]="":u[c]=f.reduce((v,m)=>{const y=Number(m);return Number.isNaN(+y)?v:Number.parseFloat((v+m).toFixed(Math.min(d,20)))},0)}),Se("table",{class:s.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[Fa({columns:e}),Se("tbody",[Se("tr",{},[...e.map((i,c)=>Se("td",{key:c,colspan:i.colSpan,rowspan:i.rowSpan,class:n(e,c),style:t(i,c)},[Se("div",{class:["cell",i.labelClassName]},[u[c]])]))])])])}});function KC(e){return{setCurrentRow:f=>{e.commit("setCurrentRow",f)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(f,h)=>{e.toggleRowSelection(f,h,!1),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:f=>{e.clearFilter(f)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(f,h)=>{e.toggleRowExpansionAdapter(f,h)},clearSort:()=>{e.clearSort()},sort:(f,h)=>{e.commit("sort",{prop:f,order:h})}}}function WC(e,t,n,o){const a=M(!1),s=M(null),r=M(!1),u=D=>{r.value=D},i=M({width:null,height:null}),c=M(!1),f={display:"block",verticalAlign:"middle"},h=M();Nn(()=>{t.setHeight(e.height)}),Nn(()=>{t.setMaxHeight(e.maxHeight)}),ne(()=>[e.currentRowKey,n.states.rowKey],([D,A])=>{!l(A)||n.setCurrentRowKey(`${D}`)},{immediate:!0}),ne(()=>e.data,D=>{o.store.commit("setData",D)},{immediate:!0,deep:!0}),Nn(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const p=()=>{o.store.commit("setHoverRow",null),o.hoverState&&(o.hoverState=null)},d=(D,A)=>{const{pixelX:N,pixelY:R}=A;Math.abs(N)>=Math.abs(R)&&(o.refs.bodyWrapper.scrollLeft+=A.pixelX/5)},v=$(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),m=$(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),y=()=>{v.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(w)};Re(async()=>{await ke(),n.updateColumns(),P(),requestAnimationFrame(y);const D=o.vnode.el;e.flexible&&D&&D.parentElement&&(D.parentElement.style.minWidth="0"),i.value={width:h.value=D.offsetWidth,height:D.offsetHeight},n.states.columns.value.forEach(A=>{A.filteredValue&&A.filteredValue.length&&o.store.commit("filterChange",{column:A,values:A.filteredValue,silent:!0})}),o.$ready=!0});const b=(D,A)=>{if(!D)return;const N=Array.from(D.classList).filter(R=>!R.startsWith("is-scrolling-"));N.push(t.scrollX.value?A:"is-scrolling-none"),D.className=N.join(" ")},C=D=>{const{tableWrapper:A}=o.refs;b(A,D)},g=D=>{const{tableWrapper:A}=o.refs;return!!(A&&A.classList.contains(D))},w=function(){if(!o.refs.scrollBarRef)return;if(!t.scrollX.value){const ye="is-scrolling-none";g(ye)||C(ye);return}const D=o.refs.scrollBarRef.wrap$;if(!D)return;const{scrollLeft:A,offsetWidth:N,scrollWidth:R}=D,{headerWrapper:G,footerWrapper:re}=o.refs;G&&(G.scrollLeft=A),re&&(re.scrollLeft=A);const de=R-N-1;A>=de?C("is-scrolling-right"):C(A===0?"is-scrolling-left":"is-scrolling-middle")},P=()=>{!o.refs.scrollBarRef||(o.refs.scrollBarRef.wrap$&&Vt(o.refs.scrollBarRef.wrap$,"scroll",w,{passive:!0}),e.fit?yn(o.vnode.el,I):Vt(window,"resize",I))},I=()=>{if(!o.$ready)return;let D=!1;const A=o.vnode.el,{width:N,height:R}=i.value,G=h.value=A.offsetWidth;N!==G&&(D=!0);const re=A.offsetHeight;(e.height||v.value)&&R!==re&&(D=!0),D&&(i.value={width:G,height:re},y())},T=wt(),B=$(()=>{const{bodyWidth:D,scrollY:A,gutterWidth:N}=t;return D.value?`${D.value-(A.value?N:0)}px`:""}),O=$(()=>e.maxHeight?"fixed":e.tableLayout);function V(D,A,N){const R=Ql(D),G=e.showHeader?N:0;if(R!==null)return Ke(R)?`calc(${R} - ${A}px - ${G}px)`:R-A-G}const W=$(()=>{const D=t.headerHeight.value||0,A=t.bodyHeight.value,N=t.footerHeight.value||0;if(e.height)return A||void 0;if(e.maxHeight)return V(e.maxHeight,N,D)}),Z=$(()=>{const D=t.headerHeight.value||0,A=t.bodyHeight.value,N=t.footerHeight.value||0;if(e.height)return{height:A?`${A}px`:""};if(e.maxHeight){const R=V(e.maxHeight,N,D);if(R!==null)return{"max-height":`${R}${He(R)?"px":""}`}}return{}}),F=$(()=>{if(e.data&&e.data.length)return null;let D="100%";return t.appendHeight.value&&(D=`calc(100% - ${t.appendHeight.value}px)`),{width:h.value?`${h.value}px`:"",height:D}}),K=(D,A)=>{const N=o.refs.bodyWrapper;if(Math.abs(A.spinY)>0){const R=N.scrollTop;A.pixelY<0&&R!==0&&D.preventDefault(),A.pixelY>0&&N.scrollHeight-N.clientHeight>R&&D.preventDefault(),N.scrollTop+=Math.ceil(A.pixelY/5)}else N.scrollLeft+=Math.ceil(A.pixelX/5)},Y=$(()=>e.maxHeight?e.showSummary?{bottom:0}:{bottom:t.scrollX.value&&e.data.length?`${t.gutterWidth}px`:""}:e.showSummary?{height:t.tableHeight.value?`${t.tableHeight.value}px`:""}:{height:t.viewportHeight.value?`${t.viewportHeight.value}px`:""}),_=$(()=>{if(e.height)return{height:t.fixedBodyHeight.value?`${t.fixedBodyHeight.value}px`:""};if(e.maxHeight){let D=Ql(e.maxHeight);if(typeof D=="number")return D=t.scrollX.value?D-t.gutterWidth:D,e.showHeader&&(D-=t.headerHeight.value),D-=t.footerHeight.value,{"max-height":`${D}px`}}return{}});return{isHidden:a,renderExpanded:s,setDragVisible:u,isGroup:c,handleMouseLeave:p,handleHeaderFooterMousewheel:d,tableSize:T,bodyHeight:Z,height:W,emptyBlockStyle:F,handleFixedMousewheel:K,fixedHeight:Y,fixedBodyHeight:_,resizeProxyVisible:r,bodyWidth:B,resizeState:i,doLayout:y,tableBodyStyles:m,tableLayout:O,scrollbarViewStyle:f}}var jC={data:{type:Array,default:()=>[]},size:String,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1},flexible:Boolean};const xC=()=>{const e=M(),t=(s,r)=>{const u=e.value;u&&u.scrollTo(s,r)},n=(s,r)=>{const u=e.value;u&&He(r)&&["Top","Left"].includes(s)&&u[`setScroll${s}`](r)};return{scrollBarRef:e,scrollTo:t,setScrollTop:s=>n("Top",s),setScrollLeft:s=>n("Left",s)}};let qC=1;const UC=se({name:"ElTable",directives:{Mousewheel:bv},components:{TableHeader:BC,TableBody:FC,TableFooter:HC,ElScrollbar:bo,hColgroup:Fa},props:jC,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],setup(e){const{t}=Je(),n=ae("table"),o=De();_e(pn,o);const a=yC(o,e);o.store=a;const s=new wC({store:o.store,table:o,fit:e.fit,showHeader:e.showHeader});o.layout=s;const r=$(()=>(a.states.data.value||[]).length===0),{setCurrentRow:u,getSelectionRows:i,toggleRowSelection:c,clearSelection:f,clearFilter:h,toggleAllSelection:p,toggleRowExpansion:d,clearSort:v,sort:m}=KC(a),{isHidden:y,renderExpanded:b,setDragVisible:C,isGroup:g,handleMouseLeave:w,handleHeaderFooterMousewheel:P,tableSize:I,bodyHeight:T,height:B,emptyBlockStyle:O,handleFixedMousewheel:V,fixedHeight:W,fixedBodyHeight:Z,resizeProxyVisible:F,bodyWidth:K,resizeState:Y,doLayout:_,tableBodyStyles:D,tableLayout:A,scrollbarViewStyle:N}=WC(e,s,a,o),{scrollBarRef:R,scrollTo:G,setScrollLeft:re,setScrollTop:de}=xC(),ye=hn(_,50),ge=`el-table_${qC++}`;o.tableId=ge,o.state={isGroup:g,resizeState:Y,doLayout:_,debouncedUpdateLayout:ye};const Te=$(()=>e.sumText||t("el.table.sumText")),J=$(()=>e.emptyText||t("el.table.emptyText"));return{ns:n,layout:s,store:a,handleHeaderFooterMousewheel:P,handleMouseLeave:w,tableId:ge,tableSize:I,isHidden:y,isEmpty:r,renderExpanded:b,resizeProxyVisible:F,resizeState:Y,isGroup:g,bodyWidth:K,bodyHeight:T,height:B,tableBodyStyles:D,emptyBlockStyle:O,debouncedUpdateLayout:ye,handleFixedMousewheel:V,fixedHeight:W,fixedBodyHeight:Z,setCurrentRow:u,getSelectionRows:i,toggleRowSelection:c,clearSelection:f,clearFilter:h,toggleAllSelection:p,toggleRowExpansion:d,clearSort:v,doLayout:_,sort:m,t,setDragVisible:C,context:o,computedSumText:Te,computedEmptyText:J,tableLayout:A,scrollbarViewStyle:N,scrollBarRef:R,scrollTo:G,setScrollLeft:re,setScrollTop:de}}}),YC=["data-prefix"],GC={ref:"hiddenColumns",class:"hidden-columns"};function XC(e,t,n,o,a,s){const r=Ee("hColgroup"),u=Ee("table-header"),i=Ee("table-body"),c=Ee("el-scrollbar"),f=Ee("table-footer"),h=hl("mousewheel");return k(),L("div",{ref:"tableWrapper",class:S([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:$e(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=p=>e.handleMouseLeave())},[x("div",{class:S(e.ns.e("inner-wrapper"))},[x("div",GC,[Q(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?Ie((k(),L("div",{key:0,ref:"headerWrapper",class:S(e.ns.e("header-wrapper"))},[x("table",{ref:"tableHeader",class:S(e.ns.e("header")),style:$e(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[j(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),j(u,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[h,e.handleHeaderFooterMousewheel]]):q("v-if",!0),x("div",{ref:"bodyWrapper",style:$e(e.bodyHeight),class:S(e.ns.e("body-wrapper"))},[j(c,{ref:"scrollBarRef",height:e.maxHeight?void 0:e.height,"max-height":e.maxHeight?e.height:void 0,"view-style":e.scrollbarViewStyle,always:e.scrollbarAlwaysOn},{default:H(()=>[x("table",{ref:"tableBody",class:S(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:$e({width:e.bodyWidth,tableLayout:e.tableLayout})},[j(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(k(),X(u,{key:0,border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])):q("v-if",!0),j(i,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","row-style","store","stripe"])],6),e.isEmpty?(k(),L("div",{key:0,ref:"emptyBlock",style:$e(e.emptyBlockStyle),class:S(e.ns.e("empty-block"))},[x("span",{class:S(e.ns.e("empty-text"))},[Q(e.$slots,"empty",{},()=>[Ge(ce(e.computedEmptyText),1)])],2)],6)):q("v-if",!0),e.$slots.append?(k(),L("div",{key:1,ref:"appendWrapper",class:S(e.ns.e("append-wrapper"))},[Q(e.$slots,"append")],2)):q("v-if",!0)]),_:3},8,["height","max-height","view-style","always"])],6),e.border||e.isGroup?(k(),L("div",{key:1,class:S(e.ns.e("border-left-patch"))},null,2)):q("v-if",!0)],2),e.showSummary?Ie((k(),L("div",{key:0,ref:"footerWrapper",class:S(e.ns.e("footer-wrapper"))},[j(f,{border:e.border,"default-sort":e.defaultSort,store:e.store,style:$e(e.tableBodyStyles),"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[Ye,!e.isEmpty],[h,e.handleHeaderFooterMousewheel]]):q("v-if",!0),Ie(x("div",{ref:"resizeProxy",class:S(e.ns.e("column-resize-proxy"))},null,2),[[Ye,e.resizeProxyVisible]])],46,YC)}var JC=ue(UC,[["render",XC],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const ZC={selection:"table-column--selection",expand:"table__expand-column"},QC={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},ew=e=>ZC[e]||"",tw={selection:{renderHeader({store:e}){function t(){return e.states.data.value&&e.states.data.value.length===0}return Se(Wn,{disabled:t(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value})},renderCell({row:e,column:t,store:n,$index:o}){return Se(Wn,{disabled:t.selectable?!t.selectable.call(null,e,o):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:a=>a.stopPropagation(),modelValue:n.isSelected(e)})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const o=e.index;return typeof o=="number"?n=t+o:typeof o=="function"&&(n=o(t)),Se("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:n}){const{ns:o}=t,a=[o.e("expand-icon")];return n&&a.push(o.em("expand-icon","expanded")),Se("div",{class:a,onClick:function(r){r.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[Se(ve,null,{default:()=>[Se(sn)]})]})},sortable:!1,resizable:!1}};function nw({row:e,column:t,$index:n}){var o;const a=t.property,s=a&&xo(e,a).value;return t&&t.formatter?t.formatter(e,t,s,n):((o=s==null?void 0:s.toString)==null?void 0:o.call(s))||""}function ow({row:e,treeNode:t,store:n},o=!1){const{ns:a}=n;if(!t)return o?[Se("span",{class:a.e("placeholder")})]:null;const s=[],r=function(u){u.stopPropagation(),n.loadOrToggle(e)};if(t.indent&&s.push(Se("span",{class:a.e("indent"),style:{"padding-left":`${t.indent}px`}})),typeof t.expanded=="boolean"&&!t.noLazyChildren){const u=[a.e("expand-icon"),t.expanded?a.em("expand-icon","expanded"):""];let i=sn;t.loading&&(i=vo),s.push(Se("div",{class:u,onClick:r},{default:()=>[Se(ve,{class:{[a.is("loading")]:t.loading}},{default:()=>[Se(i)]})]}))}else s.push(Se("span",{class:a.e("placeholder")}));return s}function Rs(e,t){return e.reduce((n,o)=>(n[o]=o,n),t)}function lw(e,t){const n=De();return{registerComplexWatchers:()=>{const s=["fixed"],r={realWidth:"width",realMinWidth:"minWidth"},u=Rs(s,r);Object.keys(u).forEach(i=>{const c=r[i];Rt(t,c)&&ne(()=>t[c],f=>{let h=f;c==="width"&&i==="realWidth"&&(h=La(f)),c==="minWidth"&&i==="realMinWidth"&&(h=Vi(f)),n.columnConfig.value[c]=h,n.columnConfig.value[i]=h;const p=c==="fixed";e.value.store.scheduleLayout(p)})})},registerNormalWatchers:()=>{const s=["label","filters","filterMultiple","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],r={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},u=Rs(s,r);Object.keys(u).forEach(i=>{const c=r[i];Rt(t,c)&&ne(()=>t[c],f=>{n.columnConfig.value[i]=f})})}}}function aw(e,t,n){const o=De(),a=M(""),s=M(!1),r=M(),u=M(),i=ae("table");Nn(()=>{r.value=e.align?`is-${e.align}`:null,r.value}),Nn(()=>{u.value=e.headerAlign?`is-${e.headerAlign}`:r.value,u.value});const c=$(()=>{let g=o.vnode.vParent||o.parent;for(;g&&!g.tableId&&!g.columnId;)g=g.vnode.vParent||g.parent;return g}),f=$(()=>{const{store:g}=o.parent;if(!g)return!1;const{treeData:w}=g.states,P=w.value;return P&&Object.keys(P).length>0}),h=M(La(e.width)),p=M(Vi(e.minWidth)),d=g=>(h.value&&(g.width=h.value),p.value&&(g.minWidth=p.value),g.minWidth||(g.minWidth=80),g.realWidth=Number(g.width===void 0?g.minWidth:g.width),g),v=g=>{const w=g.type,P=tw[w]||{};Object.keys(P).forEach(T=>{const B=P[T];T!=="className"&&B!==void 0&&(g[T]=B)});const I=ew(w);if(I){const T=`${l(i.namespace)}-${I}`;g.className=g.className?`${g.className} ${T}`:T}return g},m=g=>{Array.isArray(g)?g.forEach(P=>w(P)):w(g);function w(P){var I;((I=P==null?void 0:P.type)==null?void 0:I.name)==="ElTableColumn"&&(P.vParent=o)}};return{columnId:a,realAlign:r,isSubColumn:s,realHeaderAlign:u,columnOrTableParent:c,setColumnWidth:d,setColumnForcedProps:v,setColumnRenders:g=>{e.renderHeader||g.type!=="selection"&&(g.renderHeader=I=>{o.columnConfig.value.label;const T=t.header;return T?T(I):g.label});let w=g.renderCell;const P=f.value;return g.type==="expand"?(g.renderCell=I=>Se("div",{class:"cell"},[w(I)]),n.value.renderExpanded=I=>t.default?t.default(I):t.default):(w=w||nw,g.renderCell=I=>{let T=null;if(t.default){const W=t.default(I);T=W.some(Z=>Z.type!==Us)?W:w(I)}else T=w(I);const B=P&&I.cellIndex===0,O=ow(I,B),V={class:"cell",style:{}};return g.showOverflowTooltip&&(V.class=`${V.class} ${l(i.namespace)}-tooltip`,V.style={width:`${(I.column.realWidth||Number(I.column.width))-1}px`}),m(T),Se("div",V,[O,T])}),g},getPropsData:(...g)=>g.reduce((w,P)=>(Array.isArray(P)&&P.forEach(I=>{w[I]=e[I]}),w),{}),getColumnElIndex:(g,w)=>Array.prototype.indexOf.call(g,w)}}var sw={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showTooltipWhenOverflow:Boolean,showOverflowTooltip:Boolean,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let rw=1;var Ui=se({name:"ElTableColumn",components:{ElCheckbox:Wn},props:sw,setup(e,{slots:t}){const n=De(),o=M({}),a=$(()=>{let C=n.parent;for(;C&&!C.tableId;)C=C.parent;return C}),{registerNormalWatchers:s,registerComplexWatchers:r}=lw(a,e),{columnId:u,isSubColumn:i,realHeaderAlign:c,columnOrTableParent:f,setColumnWidth:h,setColumnForcedProps:p,setColumnRenders:d,getPropsData:v,getColumnElIndex:m,realAlign:y}=aw(e,t,a),b=f.value;u.value=`${b.tableId||b.columnId}_column_${rw++}`,sa(()=>{i.value=a.value!==b;const C=e.type||"default",g=e.sortable===""?!0:e.sortable,w={...QC[C],id:u.value,type:C,property:e.prop||e.property,align:y,headerAlign:c,showOverflowTooltip:e.showOverflowTooltip||e.showTooltipWhenOverflow,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:g,index:e.index,rawColumnKey:n.vnode.key};let O=v(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);O=uC(w,O),O=cC(d,h,p)(O),o.value=O,s(),r()}),Re(()=>{var C;const g=f.value,w=i.value?g.vnode.el.children:(C=g.refs.hiddenColumns)==null?void 0:C.children,P=()=>m(w||[],n.vnode.el);o.value.getColumnIndex=P,P()>-1&&a.value.store.commit("insertColumn",o.value,i.value?g.columnConfig.value:null)}),mt(()=>{a.value.store.commit("removeColumn",o.value,i.value?b.columnConfig.value:null)}),n.columnId=u.value,n.columnConfig=o},render(){var e,t,n;try{const o=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),a=[];if(Array.isArray(o))for(const r of o)((n=r.type)==null?void 0:n.name)==="ElTableColumn"||r.shapeFlag&2?a.push(r):r.type===Pe&&Array.isArray(r.children)&&r.children.forEach(u=>{(u==null?void 0:u.patchFlag)!==1024&&!Ke(u==null?void 0:u.children)&&a.push(u)});return Se("div",a)}catch{return Se("div",[])}}});const qS=je(JC,{TableColumn:Ui}),US=St(Ui),iw=pe({tabs:{type:te(Array),default:()=>yt([])}}),uw={name:"ElTabBar"},cw=se({...uw,props:iw,setup(e,{expose:t}){const n=e,o="ElTabBar",a=De(),s=fe(wl);s||Ot(o,"<el-tabs><el-tab-bar /></el-tabs>");const r=ae("tabs"),u=M(),i=M(),c=()=>{let h=0,p=0;const d=["top","bottom"].includes(s.props.tabPosition)?"width":"height",v=d==="width"?"x":"y";return n.tabs.every(m=>{var y,b,C,g;const w=(b=(y=a.parent)==null?void 0:y.refs)==null?void 0:b[`tab-${m.paneName}`];if(!w)return!1;if(!m.active)return!0;p=w[`client${Rn(d)}`];const P=v==="x"?"left":"top";h=w.getBoundingClientRect()[P]-((g=(C=w.parentElement)==null?void 0:C.getBoundingClientRect()[P])!=null?g:0);const I=window.getComputedStyle(w);return d==="width"&&(n.tabs.length>1&&(p-=Number.parseFloat(I.paddingLeft)+Number.parseFloat(I.paddingRight)),h+=Number.parseFloat(I.paddingLeft)),!1}),{[d]:`${p}px`,transform:`translate${Rn(v)}(${h}px)`}},f=()=>i.value=c();return ne(()=>n.tabs,async()=>{await ke(),f()},{immediate:!0}),yn(u,()=>f()),t({ref:u,update:f}),(h,p)=>(k(),L("div",{ref_key:"barRef",ref:u,class:S([l(r).e("active-bar"),l(r).is(l(s).props.tabPosition)]),style:$e(i.value)},null,6))}});var dw=ue(cw,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const fw=pe({panes:{type:te(Array),default:()=>yt([])},currentName:{type:[String,Number],default:""},editable:Boolean,onTabClick:{type:te(Function),default:tt},onTabRemove:{type:te(Function),default:tt},type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),_s="ElTabNav",pw=se({name:_s,props:fw,setup(e,{expose:t}){const n=De(),o=fe(wl);o||Ot(_s,"<el-tabs><tab-nav /></el-tabs>");const a=ae("tabs"),s=Su(),r=Eu(),u=M(),i=M(),c=M(),f=M(!1),h=M(0),p=M(!1),d=M(!0),v=$(()=>["top","bottom"].includes(o.props.tabPosition)?"width":"height"),m=$(()=>({transform:`translate${v.value==="width"?"X":"Y"}(-${h.value}px)`})),y=()=>{if(!u.value)return;const T=u.value[`offset${Rn(v.value)}`],B=h.value;if(!B)return;const O=B>T?B-T:0;h.value=O},b=()=>{if(!u.value||!i.value)return;const T=i.value[`offset${Rn(v.value)}`],B=u.value[`offset${Rn(v.value)}`],O=h.value;if(T-O<=B)return;const V=T-O>B*2?O+B:T-B;h.value=V},C=async()=>{const T=i.value;if(!f.value||!c.value||!u.value||!T)return;await ke();const B=c.value.querySelector(".is-active");if(!B)return;const O=u.value,V=["top","bottom"].includes(o.props.tabPosition),W=B.getBoundingClientRect(),Z=O.getBoundingClientRect(),F=V?T.offsetWidth-Z.width:T.offsetHeight-Z.height,K=h.value;let Y=K;V?(W.left<Z.left&&(Y=K-(Z.left-W.left)),W.right>Z.right&&(Y=K+W.right-Z.right)):(W.top<Z.top&&(Y=K-(Z.top-W.top)),W.bottom>Z.bottom&&(Y=K+(W.bottom-Z.bottom))),Y=Math.max(Y,0),h.value=Math.min(Y,F)},g=()=>{if(!i.value||!u.value)return;const T=i.value[`offset${Rn(v.value)}`],B=u.value[`offset${Rn(v.value)}`],O=h.value;if(B<T){const V=h.value;f.value=f.value||{},f.value.prev=V,f.value.next=V+B<T,T-V<B&&(h.value=T-B)}else f.value=!1,O>0&&(h.value=0)},w=T=>{const B=T.code,{up:O,down:V,left:W,right:Z}=be;if(![O,V,W,Z].includes(B))return;const F=Array.from(T.currentTarget.querySelectorAll("[role=tab]")),K=F.indexOf(T.target);let Y;B===W||B===O?K===0?Y=F.length-1:Y=K-1:K<F.length-1?Y=K+1:Y=0,F[Y].focus(),F[Y].click(),P()},P=()=>{d.value&&(p.value=!0)},I=()=>p.value=!1;return ne(s,T=>{T==="hidden"?d.value=!1:T==="visible"&&setTimeout(()=>d.value=!0,50)}),ne(r,T=>{T?setTimeout(()=>d.value=!0,50):d.value=!1}),yn(c,g),Re(()=>setTimeout(()=>C(),0)),Mn(()=>g()),t({scrollToActiveTab:C,removeFocus:I}),ne(()=>e.panes,()=>n.update(),{flush:"post"}),()=>{const T=f.value?[j("span",{class:[a.e("nav-prev"),a.is("disabled",!f.value.prev)],onClick:y},[j(ve,null,{default:()=>[j(to,null,null)]})]),j("span",{class:[a.e("nav-next"),a.is("disabled",!f.value.next)],onClick:b},[j(ve,null,{default:()=>[j(sn,null,null)]})])]:null,B=e.panes.map((O,V)=>{var W,Z,F,K;const Y=(Z=(W=O.props.name)!=null?W:O.index)!=null?Z:`${V}`,_=O.isClosable||e.editable;O.index=`${V}`;const D=_?j(ve,{class:"is-icon-close",onClick:R=>e.onTabRemove(O,R)},{default:()=>[j(Qt,null,null)]}):null,A=((K=(F=O.slots).label)==null?void 0:K.call(F))||O.props.label,N=O.active?0:-1;return j("div",{ref:`tab-${Y}`,class:[a.e("item"),a.is(o.props.tabPosition),a.is("active",O.active),a.is("disabled",O.props.disabled),a.is("closable",_),a.is("focus",p.value)],id:`tab-${Y}`,key:`tab-${Y}`,"aria-controls":`pane-${Y}`,role:"tab","aria-selected":O.active,tabindex:N,onFocus:()=>P(),onBlur:()=>I(),onClick:R=>{I(),e.onTabClick(O,Y,R)},onKeydown:R=>{_&&(R.code===be.delete||R.code===be.backspace)&&e.onTabRemove(O,R)}},[A,D])});return j("div",{ref:c,class:[a.e("nav-wrap"),a.is("scrollable",!!f.value),a.is(o.props.tabPosition)]},[T,j("div",{class:a.e("nav-scroll"),ref:u},[j("div",{class:[a.e("nav"),a.is(o.props.tabPosition),a.is("stretch",e.stretch&&["top","bottom"].includes(o.props.tabPosition))],ref:i,style:m.value,role:"tablist",onKeydown:w},[e.type?null:j(dw,{tabs:[...e.panes]},null),B])])])}}}),vw=pe({type:{type:String,values:["card","border-card",""],default:""},activeName:{type:[String,Number]},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:te(Function),default:()=>!0},stretch:Boolean}),Hl=e=>Ke(e)||He(e),mw={[qe]:e=>Hl(e),"tab-click":(e,t)=>t instanceof Event,"tab-change":e=>Hl(e),edit:(e,t)=>["remove","add"].includes(t),"tab-remove":e=>Hl(e),"tab-add":()=>!0};var hw=se({name:"ElTabs",props:vw,emits:mw,setup(e,{emit:t,slots:n,expose:o}){var a,s;const r=ae("tabs"),u=M(),i=rt({}),c=M((s=(a=e.modelValue)!=null?a:e.activeName)!=null?s:"0"),f=m=>{c.value=m,t(qe,m),t("tab-change",m)},h=async m=>{var y,b,C;if(!(c.value===m||Jt(m)))try{await((y=e.beforeLeave)==null?void 0:y.call(e,m,c.value))!==!1&&(f(m),(C=(b=u.value)==null?void 0:b.removeFocus)==null||C.call(b))}catch{}},p=(m,y,b)=>{m.props.disabled||(h(y),t("tab-click",m,b))},d=(m,y)=>{m.props.disabled||Jt(m.props.name)||(y.stopPropagation(),t("edit",m.props.name,"remove"),t("tab-remove",m.props.name))},v=()=>{t("edit",void 0,"add"),t("tab-add")};return Lo({from:'"activeName"',replacement:'"model-value" or "v-model"',scope:"ElTabs",version:"2.3.0",ref:"https://element-plus.org/en-US/component/tabs.html#attributes",type:"Attribute"},$(()=>!!e.activeName)),ne(()=>e.activeName,m=>h(m)),ne(()=>e.modelValue,m=>h(m)),ne(c,async()=>{var m;await ke(),(m=u.value)==null||m.scrollToActiveTab()}),_e(wl,{props:e,currentName:c,registerPane:b=>i[b.uid]=b,unregisterPane:b=>delete i[b]}),o({currentName:c}),()=>{const m=e.editable||e.addable?j("span",{class:r.e("new-tab"),tabindex:"0",onClick:v,onKeydown:C=>{C.code===be.enter&&v()}},[j(ve,{class:r.is("icon-plus")},{default:()=>[j(nr,null,null)]})]):null,y=j("div",{class:[r.e("header"),r.is(e.tabPosition)]},[m,j(pw,{ref:u,currentName:c.value,editable:e.editable,type:e.type,panes:Object.values(i),stretch:e.stretch,onTabClick:p,onTabRemove:d},null)]),b=j("div",{class:r.e("content")},[Q(n,"default")]);return j("div",{class:[r.b(),r.m(e.tabPosition),{[r.m("card")]:e.type==="card",[r.m("border-card")]:e.type==="border-card"}]},[...e.tabPosition!=="bottom"?[y,b]:[b,y]])}}});const gw=pe({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),bw=["id","aria-hidden","aria-labelledby"],yw={name:"ElTabPane"},Cw=se({...yw,props:gw,setup(e){const t=e,n="ElTabPane",o=De(),a=tn(),s=fe(wl);s||Ot(n,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const r=ae("tab-pane"),u=M(),i=$(()=>t.closable||s.props.closable),c=Wa(()=>{var v;return s.currentName.value===((v=t.name)!=null?v:u.value)}),f=M(c.value),h=$(()=>{var v;return(v=t.name)!=null?v:u.value}),p=Wa(()=>!t.lazy||f.value||c.value);ne(c,v=>{v&&(f.value=!0)});const d=rt({uid:o.uid,slots:a,props:t,paneName:h,active:c,index:u,isClosable:i});return Re(()=>{s.registerPane(d)}),vl(()=>{s.unregisterPane(d.uid)}),(v,m)=>l(p)?Ie((k(),L("div",{key:0,id:`pane-${l(h)}`,class:S(l(r).b()),role:"tabpanel","aria-hidden":!l(c),"aria-labelledby":`tab-${l(h)}`},[Q(v.$slots,"default")],10,bw)),[[Ye,l(c)]]):q("v-if",!0)}});var Yi=ue(Cw,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const YS=je(hw,{TabPane:Yi}),GS=St(Yi),Xn="$treeNodeId",Fs=function(e,t){!t||t[Xn]||Object.defineProperty(t,Xn,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},za=function(e,t){return e?t[e]:t[Xn]},ta=e=>{let t=!0,n=!0,o=!0;for(let a=0,s=e.length;a<s;a++){const r=e[a];(r.checked!==!0||r.indeterminate)&&(t=!1,r.disabled||(o=!1)),(r.checked!==!1||r.indeterminate)&&(n=!1)}return{all:t,none:n,allWithoutDisable:o,half:!t&&!n}},tl=function(e){if(e.childNodes.length===0)return;const{all:t,none:n,half:o}=ta(e.childNodes);t?(e.checked=!0,e.indeterminate=!1):o?(e.checked=!1,e.indeterminate=!0):n&&(e.checked=!1,e.indeterminate=!1);const a=e.parent;!a||a.level===0||e.store.checkStrictly||tl(a)},Ko=function(e,t){const n=e.store.props,o=e.data||{},a=n[t];if(typeof a=="function")return a(o,e);if(typeof a=="string")return o[a];if(typeof a>"u"){const s=o[t];return s===void 0?"":s}};let ww=0;class Hn{constructor(t){this.id=ww++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const n in t)Rt(t,n)&&(this[n]=t[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){const t=this.store;if(!t)throw new Error("[Node]store is required!");t.registerNode(this);const n=t.props;if(n&&typeof n.isLeaf<"u"){const s=Ko(this,"isLeaf");typeof s=="boolean"&&(this.isLeafByUser=s)}if(t.lazy!==!0&&this.data?(this.setData(this.data),t.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&t.lazy&&t.defaultExpandAll&&this.expand(),Array.isArray(this.data)||Fs(this,this.data),!this.data)return;const o=t.defaultExpandedKeys,a=t.key;a&&o&&o.includes(this.key)&&this.expand(null,t.autoExpandParent),a&&t.currentNodeKey!==void 0&&this.key===t.currentNodeKey&&(t.currentNode=this,t.currentNode.isCurrent=!0),t.lazy&&t._initDefaultCheckedNode(this),this.updateLeafState(),this.parent&&(this.level===1||this.parent.expanded===!0)&&(this.canFocus=!0)}setData(t){Array.isArray(t)||Fs(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&Array.isArray(this.data)?n=this.data:n=Ko(this,"children")||[];for(let o=0,a=n.length;o<a;o++)this.insertChild({data:n[o]})}get label(){return Ko(this,"label")}get key(){const t=this.store.key;return this.data?this.data[t]:null}get disabled(){return Ko(this,"disabled")}get nextSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return t.childNodes[n+1]}return null}get previousSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return n>0?t.childNodes[n-1]:null}return null}contains(t,n=!0){return(this.childNodes||[]).some(o=>o===t||n&&o.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,n,o){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof Hn)){if(!o){const a=this.getChildren(!0);a.includes(t.data)||(typeof n>"u"||n<0?a.push(t.data):a.splice(n,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=rt(new Hn(t)),t instanceof Hn&&t.initialize()}t.level=this.level+1,typeof n>"u"||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),this.updateLeafState()}insertBefore(t,n){let o;n&&(o=this.childNodes.indexOf(n)),this.insertChild(t,o)}insertAfter(t,n){let o;n&&(o=this.childNodes.indexOf(n),o!==-1&&(o+=1)),this.insertChild(t,o)}removeChild(t){const n=this.getChildren()||[],o=n.indexOf(t.data);o>-1&&n.splice(o,1);const a=this.childNodes.indexOf(t);a>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(a,1)),this.updateLeafState()}removeChildByData(t){let n=null;for(let o=0;o<this.childNodes.length;o++)if(this.childNodes[o].data===t){n=this.childNodes[o];break}n&&this.removeChild(n)}expand(t,n){const o=()=>{if(n){let a=this.parent;for(;a.level>0;)a.expanded=!0,a=a.parent}this.expanded=!0,t&&t(),this.childNodes.forEach(a=>{a.canFocus=!0})};this.shouldLoadData()?this.loadData(a=>{Array.isArray(a)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||tl(this),o())}):o()}doCreateChildren(t,n={}){t.forEach(o=>{this.insertChild(Object.assign({data:o},n),void 0,!0)})}collapse(){this.expanded=!1,this.childNodes.forEach(t=>{t.canFocus=!1})}shouldLoadData(){return this.store.lazy===!0&&this.store.load&&!this.loaded}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser<"u"){this.isLeaf=this.isLeafByUser;return}const t=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!t||t.length===0;return}this.isLeaf=!1}setChecked(t,n,o,a){if(this.indeterminate=t==="half",this.checked=t===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:r,allWithoutDisable:u}=ta(this.childNodes);!this.isLeaf&&!r&&u&&(this.checked=!1,t=!1);const i=()=>{if(n){const c=this.childNodes;for(let p=0,d=c.length;p<d;p++){const v=c[p];a=a||t!==!1;const m=v.disabled?v.checked:a;v.setChecked(m,n,!0,a)}const{half:f,all:h}=ta(c);h||(this.checked=h,this.indeterminate=f)}};if(this.shouldLoadData()){this.loadData(()=>{i(),tl(this)},{checked:t!==!1});return}else i()}const s=this.parent;!s||s.level===0||o||tl(s)}getChildren(t=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const o=this.store.props;let a="children";return o&&(a=o.children||"children"),n[a]===void 0&&(n[a]=null),t&&!n[a]&&(n[a]=[]),n[a]}updateChildren(){const t=this.getChildren()||[],n=this.childNodes.map(s=>s.data),o={},a=[];t.forEach((s,r)=>{const u=s[Xn];!!u&&n.findIndex(c=>c[Xn]===u)>=0?o[u]={index:r,data:s}:a.push({index:r,data:s})}),this.store.lazy||n.forEach(s=>{o[s[Xn]]||this.removeChildByData(s)}),a.forEach(({index:s,data:r})=>{this.insertChild({data:r},s)}),this.updateLeafState()}loadData(t,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const o=a=>{this.loaded=!0,this.loading=!1,this.childNodes=[],this.doCreateChildren(a,n),this.updateLeafState(),t&&t.call(this,a)};this.store.load(this,o)}else t&&t.call(this)}}class kw{constructor(t){this.currentNode=null,this.currentNodeKey=null;for(const n in t)Rt(t,n)&&(this[n]=t[n]);this.nodesMap={}}initialize(){if(this.root=new Hn({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const t=this.load;t(this.root,n=>{this.root.doCreateChildren(n),this._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}filter(t){const n=this.filterNodeMethod,o=this.lazy,a=function(s){const r=s.root?s.root.childNodes:s.childNodes;if(r.forEach(u=>{u.visible=n.call(u,t,u.data,u),a(u)}),!s.visible&&r.length){let u=!0;u=!r.some(i=>i.visible),s.root?s.root.visible=u===!1:s.visible=u===!1}!t||s.visible&&!s.isLeaf&&!o&&s.expand()};a(this)}setData(t){t!==this.root.data?(this.root.setData(t),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(t){if(t instanceof Hn)return t;const n=typeof t!="object"?t:za(this.key,t);return this.nodesMap[n]||null}insertBefore(t,n){const o=this.getNode(n);o.parent.insertBefore({data:t},o)}insertAfter(t,n){const o=this.getNode(n);o.parent.insertAfter({data:t},o)}remove(t){const n=this.getNode(t);n&&n.parent&&(n===this.currentNode&&(this.currentNode=null),n.parent.removeChild(n))}append(t,n){const o=n?this.getNode(n):this.root;o&&o.insertChild({data:t})}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],n=this.nodesMap;t.forEach(o=>{const a=n[o];a&&a.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(t){(this.defaultCheckedKeys||[]).includes(t.key)&&t.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())}registerNode(t){const n=this.key;!t||!t.data||(n?t.key!==void 0&&(this.nodesMap[t.key]=t):this.nodesMap[t.id]=t)}deregisterNode(t){!this.key||!t||!t.data||(t.childNodes.forEach(o=>{this.deregisterNode(o)}),delete this.nodesMap[t.key])}getCheckedNodes(t=!1,n=!1){const o=[],a=function(s){(s.root?s.root.childNodes:s.childNodes).forEach(u=>{(u.checked||n&&u.indeterminate)&&(!t||t&&u.isLeaf)&&o.push(u.data),a(u)})};return a(this),o}getCheckedKeys(t=!1){return this.getCheckedNodes(t).map(n=>(n||{})[this.key])}getHalfCheckedNodes(){const t=[],n=function(o){(o.root?o.root.childNodes:o.childNodes).forEach(s=>{s.indeterminate&&t.push(s.data),n(s)})};return n(this),t}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(t=>(t||{})[this.key])}_getAllNodes(){const t=[],n=this.nodesMap;for(const o in n)Rt(n,o)&&t.push(n[o]);return t}updateChildren(t,n){const o=this.nodesMap[t];if(!o)return;const a=o.childNodes;for(let s=a.length-1;s>=0;s--){const r=a[s];this.remove(r.data)}for(let s=0,r=n.length;s<r;s++){const u=n[s];this.append(u,o.data)}}_setCheckedKeys(t,n=!1,o){const a=this._getAllNodes().sort((u,i)=>i.level-u.level),s=Object.create(null),r=Object.keys(o);a.forEach(u=>u.setChecked(!1,!1));for(let u=0,i=a.length;u<i;u++){const c=a[u],f=c.data[t].toString();if(!r.includes(f)){c.checked&&!s[f]&&c.setChecked(!1,!1);continue}let p=c.parent;for(;p&&p.level>0;)s[p.data[t]]=!0,p=p.parent;if(c.isLeaf||this.checkStrictly){c.setChecked(!0,!1);continue}if(c.setChecked(!0,!0),n){c.setChecked(!1,!1);const d=function(v){v.childNodes.forEach(y=>{y.isLeaf||y.setChecked(!1,!1),d(y)})};d(c)}}}setCheckedNodes(t,n=!1){const o=this.key,a={};t.forEach(s=>{a[(s||{})[o]]=!0}),this._setCheckedKeys(o,n,a)}setCheckedKeys(t,n=!1){this.defaultCheckedKeys=t;const o=this.key,a={};t.forEach(s=>{a[s]=!0}),this._setCheckedKeys(o,n,a)}setDefaultExpandedKeys(t){t=t||[],this.defaultExpandedKeys=t,t.forEach(n=>{const o=this.getNode(n);o&&o.expand(null,this.autoExpandParent)})}setChecked(t,n,o){const a=this.getNode(t);a&&a.setChecked(!!n,o)}getCurrentNode(){return this.currentNode}setCurrentNode(t){const n=this.currentNode;n&&(n.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0}setUserCurrentNode(t,n=!0){const o=t[this.key],a=this.nodesMap[o];this.setCurrentNode(a),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(t,n=!0){if(t==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const o=this.getNode(t);o&&(this.setCurrentNode(o),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const Sw=se({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=ae("tree"),n=fe("NodeInstance"),o=fe("RootTree");return()=>{const a=e.node,{data:s,store:r}=a;return e.renderContent?e.renderContent(Se,{_self:n,node:a,data:s,store:r}):o.ctx.slots.default?o.ctx.slots.default({node:a,data:s}):Se("span",{class:t.be("node","label")},[a.label])}}});var Ew=ue(Sw,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node-content.vue"]]);function Gi(e){const t=fe("TreeNodeMap",null),n={treeNodeExpand:o=>{e.node!==o&&e.node.collapse()},children:[]};return t&&t.children.push(n),_e("TreeNodeMap",n),{broadcastExpanded:o=>{if(!!e.accordion)for(const a of n.children)a.treeNodeExpand(o)}}}const Xi=Symbol("dragEvents");function $w({props:e,ctx:t,el$:n,dropIndicator$:o,store:a}){const s=ae("tree"),r=M({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return _e(Xi,{treeNodeDragStart:({event:f,treeNode:h})=>{if(typeof e.allowDrag=="function"&&!e.allowDrag(h.node))return f.preventDefault(),!1;f.dataTransfer.effectAllowed="move";try{f.dataTransfer.setData("text/plain","")}catch{}r.value.draggingNode=h,t.emit("node-drag-start",h.node,f)},treeNodeDragOver:({event:f,treeNode:h})=>{const p=h,d=r.value.dropNode;d&&d!==p&&Bt(d.$el,s.is("drop-inner"));const v=r.value.draggingNode;if(!v||!p)return;let m=!0,y=!0,b=!0,C=!0;typeof e.allowDrop=="function"&&(m=e.allowDrop(v.node,p.node,"prev"),C=y=e.allowDrop(v.node,p.node,"inner"),b=e.allowDrop(v.node,p.node,"next")),f.dataTransfer.dropEffect=y||m||b?"move":"none",(m||y||b)&&d!==p&&(d&&t.emit("node-drag-leave",v.node,d.node,f),t.emit("node-drag-enter",v.node,p.node,f)),(m||y||b)&&(r.value.dropNode=p),p.node.nextSibling===v.node&&(b=!1),p.node.previousSibling===v.node&&(m=!1),p.node.contains(v.node,!1)&&(y=!1),(v.node===p.node||v.node.contains(p.node))&&(m=!1,y=!1,b=!1);const g=p.$el.getBoundingClientRect(),w=n.value.getBoundingClientRect();let P;const I=m?y?.25:b?.45:1:-1,T=b?y?.75:m?.55:0:1;let B=-9999;const O=f.clientY-g.top;O<g.height*I?P="before":O>g.height*T?P="after":y?P="inner":P="none";const V=p.$el.querySelector(`.${s.be("node","expand-icon")}`).getBoundingClientRect(),W=o.value;P==="before"?B=V.top-w.top:P==="after"&&(B=V.bottom-w.top),W.style.top=`${B}px`,W.style.left=`${V.right-w.left}px`,P==="inner"?ln(p.$el,s.is("drop-inner")):Bt(p.$el,s.is("drop-inner")),r.value.showDropIndicator=P==="before"||P==="after",r.value.allowDrop=r.value.showDropIndicator||C,r.value.dropType=P,t.emit("node-drag-over",v.node,p.node,f)},treeNodeDragEnd:f=>{const{draggingNode:h,dropType:p,dropNode:d}=r.value;if(f.preventDefault(),f.dataTransfer.dropEffect="move",h&&d){const v={data:h.node.data};p!=="none"&&h.node.remove(),p==="before"?d.node.parent.insertBefore(v,d.node):p==="after"?d.node.parent.insertAfter(v,d.node):p==="inner"&&d.node.insertChild(v),p!=="none"&&a.value.registerNode(v),Bt(d.$el,s.is("drop-inner")),t.emit("node-drag-end",h.node,d.node,p,f),p!=="none"&&t.emit("node-drop",h.node,d.node,p,f)}h&&!d&&t.emit("node-drag-end",h.node,null,p,f),r.value.showDropIndicator=!1,r.value.draggingNode=null,r.value.dropNode=null,r.value.allowDrop=!0}}),{dragState:r}}const Tw=se({name:"ElTreeNode",components:{ElCollapseTransition:fi,ElCheckbox:Wn,NodeContent:Ew,ElIcon:ve,Loading:vo},props:{node:{type:Hn,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(e,t){const n=ae("tree"),{broadcastExpanded:o}=Gi(e),a=fe("RootTree"),s=M(!1),r=M(!1),u=M(null),i=M(null),c=M(null),f=fe(Xi),h=De();_e("NodeInstance",h),e.node.expanded&&(s.value=!0,r.value=!0);const p=a.props.children||"children";ne(()=>{const O=e.node.data[p];return O&&[...O]},()=>{e.node.updateChildren()}),ne(()=>e.node.indeterminate,O=>{m(e.node.checked,O)}),ne(()=>e.node.checked,O=>{m(O,e.node.indeterminate)}),ne(()=>e.node.expanded,O=>{ke(()=>s.value=O),O&&(r.value=!0)});const d=O=>za(a.props.nodeKey,O.data),v=O=>{const V=e.props.class;if(!V)return{};let W;if(Pt(V)){const{data:Z}=O;W=V(Z,O)}else W=V;return Ke(W)?{[W]:!0}:W},m=(O,V)=>{(u.value!==O||i.value!==V)&&a.ctx.emit("check-change",e.node.data,O,V),u.value=O,i.value=V},y=O=>{const V=a.store.value;V.setCurrentNode(e.node),a.ctx.emit("current-change",V.currentNode?V.currentNode.data:null,V.currentNode),a.currentNode.value=e.node,a.props.expandOnClickNode&&C(),a.props.checkOnClickNode&&!e.node.disabled&&g(null,{target:{checked:!e.node.checked}}),a.ctx.emit("node-click",e.node.data,e.node,h,O)},b=O=>{a.instance.vnode.props.onNodeContextmenu&&(O.stopPropagation(),O.preventDefault()),a.ctx.emit("node-contextmenu",O,e.node.data,e.node,h)},C=()=>{e.node.isLeaf||(s.value?(a.ctx.emit("node-collapse",e.node.data,e.node,h),e.node.collapse()):(e.node.expand(),t.emit("node-expand",e.node.data,e.node,h)))},g=(O,V)=>{e.node.setChecked(V.target.checked,!a.props.checkStrictly),ke(()=>{const W=a.store.value;a.ctx.emit("check",e.node.data,{checkedNodes:W.getCheckedNodes(),checkedKeys:W.getCheckedKeys(),halfCheckedNodes:W.getHalfCheckedNodes(),halfCheckedKeys:W.getHalfCheckedKeys()})})};return{ns:n,node$:c,tree:a,expanded:s,childNodeRendered:r,oldChecked:u,oldIndeterminate:i,getNodeKey:d,getNodeClass:v,handleSelectChange:m,handleClick:y,handleContextMenu:b,handleExpandIconClick:C,handleCheckChange:g,handleChildNodeExpand:(O,V,W)=>{o(V),a.ctx.emit("node-expand",O,V,W)},handleDragStart:O=>{!a.props.draggable||f.treeNodeDragStart({event:O,treeNode:e})},handleDragOver:O=>{O.preventDefault(),a.props.draggable&&f.treeNodeDragOver({event:O,treeNode:{$el:c.value,node:e.node}})},handleDrop:O=>{O.preventDefault()},handleDragEnd:O=>{!a.props.draggable||f.treeNodeDragEnd(O)},CaretRight:Fu}}}),Nw=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],Pw=["aria-expanded"];function Iw(e,t,n,o,a,s){const r=Ee("el-icon"),u=Ee("el-checkbox"),i=Ee("loading"),c=Ee("node-content"),f=Ee("el-tree-node"),h=Ee("el-collapse-transition");return Ie((k(),L("div",{ref:"node$",class:S([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:t[1]||(t[1]=Oe((...p)=>e.handleClick&&e.handleClick(...p),["stop"])),onContextmenu:t[2]||(t[2]=(...p)=>e.handleContextMenu&&e.handleContextMenu(...p)),onDragstart:t[3]||(t[3]=Oe((...p)=>e.handleDragStart&&e.handleDragStart(...p),["stop"])),onDragover:t[4]||(t[4]=Oe((...p)=>e.handleDragOver&&e.handleDragOver(...p),["stop"])),onDragend:t[5]||(t[5]=Oe((...p)=>e.handleDragEnd&&e.handleDragEnd(...p),["stop"])),onDrop:t[6]||(t[6]=Oe((...p)=>e.handleDrop&&e.handleDrop(...p),["stop"]))},[x("div",{class:S(e.ns.be("node","content")),style:$e({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(k(),X(r,{key:0,class:S([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:Oe(e.handleExpandIconClick,["stop"])},{default:H(()=>[(k(),X(Ve(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):q("v-if",!0),e.showCheckbox?(k(),X(u,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=Oe(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):q("v-if",!0),e.node.loading?(k(),X(r,{key:2,class:S([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:H(()=>[j(i)]),_:1},8,["class"])):q("v-if",!0),j(c,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),j(h,null,{default:H(()=>[!e.renderAfterExpand||e.childNodeRendered?Ie((k(),L("div",{key:0,class:S(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded},[(k(!0),L(Pe,null,ot(e.node.childNodes,p=>(k(),X(f,{key:e.getNodeKey(p),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:p,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,Pw)),[[Ye,e.expanded]]):q("v-if",!0)]),_:1})],42,Nw)),[[Ye,e.node.visible]])}var Mw=ue(Tw,[["render",Iw],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node.vue"]]);function Ow({el$:e},t){const n=ae("tree"),o=Kt([]),a=Kt([]);Re(()=>{r(),Nt(e.value,"keydown",s)}),mt(()=>{xt(e.value,"keydown",s)}),Mn(()=>{o.value=Array.from(e.value.querySelectorAll("[role=treeitem]")),a.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"))}),ne(a,u=>{u.forEach(i=>{i.setAttribute("tabindex","-1")})});const s=u=>{const i=u.target;if(!i.className.includes(n.b("node")))return;const c=u.code;o.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));const f=o.value.indexOf(i);let h;if([be.up,be.down].includes(c)){if(u.preventDefault(),c===be.up){h=f===-1?0:f!==0?f-1:o.value.length-1;const d=h;for(;!t.value.getNode(o.value[h].dataset.key).canFocus;){if(h--,h===d){h=-1;break}h<0&&(h=o.value.length-1)}}else{h=f===-1?0:f<o.value.length-1?f+1:0;const d=h;for(;!t.value.getNode(o.value[h].dataset.key).canFocus;){if(h++,h===d){h=-1;break}h>=o.value.length&&(h=0)}}h!==-1&&o.value[h].focus()}[be.left,be.right].includes(c)&&(u.preventDefault(),i.click());const p=i.querySelector('[type="checkbox"]');[be.enter,be.space].includes(c)&&p&&(u.preventDefault(),p.click())},r=()=>{var u;o.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),a.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"));const i=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(i.length){i[0].setAttribute("tabindex","0");return}(u=o.value[0])==null||u.setAttribute("tabindex","0")}}const Aw=se({name:"ElTree",components:{ElTreeNode:Mw},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:[String,Object]},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(e,t){const{t:n}=Je(),o=ae("tree"),a=M(new kw({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));a.value.initialize();const s=M(a.value.root),r=M(null),u=M(null),i=M(null),{broadcastExpanded:c}=Gi(e),{dragState:f}=$w({props:e,ctx:t,el$:u,dropIndicator$:i,store:a});Ow({el$:u},a);const h=$(()=>{const{childNodes:D}=s.value;return!D||D.length===0||D.every(({visible:A})=>!A)});ne(()=>e.defaultCheckedKeys,D=>{a.value.setDefaultCheckedKey(D)}),ne(()=>e.defaultExpandedKeys,D=>{a.value.setDefaultExpandedKeys(D)}),ne(()=>e.data,D=>{a.value.setData(D)},{deep:!0}),ne(()=>e.checkStrictly,D=>{a.value.checkStrictly=D});const p=D=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");a.value.filter(D)},d=D=>za(e.nodeKey,D.data),v=D=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const A=a.value.getNode(D);if(!A)return[];const N=[A.data];let R=A.parent;for(;R&&R!==s.value;)N.push(R.data),R=R.parent;return N.reverse()},m=(D,A)=>a.value.getCheckedNodes(D,A),y=D=>a.value.getCheckedKeys(D),b=()=>{const D=a.value.getCurrentNode();return D?D.data:null},C=()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const D=b();return D?D[e.nodeKey]:null},g=(D,A)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");a.value.setCheckedNodes(D,A)},w=(D,A)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");a.value.setCheckedKeys(D,A)},P=(D,A,N)=>{a.value.setChecked(D,A,N)},I=()=>a.value.getHalfCheckedNodes(),T=()=>a.value.getHalfCheckedKeys(),B=(D,A=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");a.value.setUserCurrentNode(D,A)},O=(D,A=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");a.value.setCurrentNodeKey(D,A)},V=D=>a.value.getNode(D),W=D=>{a.value.remove(D)},Z=(D,A)=>{a.value.append(D,A)},F=(D,A)=>{a.value.insertBefore(D,A)},K=(D,A)=>{a.value.insertAfter(D,A)},Y=(D,A,N)=>{c(A),t.emit("node-expand",D,A,N)},_=(D,A)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");a.value.updateChildren(D,A)};return _e("RootTree",{ctx:t,props:e,store:a,root:s,currentNode:r,instance:De()}),_e(Ut,void 0),{ns:o,store:a,root:s,currentNode:r,dragState:f,el$:u,dropIndicator$:i,isEmpty:h,filter:p,getNodeKey:d,getNodePath:v,getCheckedNodes:m,getCheckedKeys:y,getCurrentNode:b,getCurrentKey:C,setCheckedNodes:g,setCheckedKeys:w,setChecked:P,getHalfCheckedNodes:I,getHalfCheckedKeys:T,setCurrentNode:B,setCurrentKey:O,t:n,getNode:V,remove:W,append:Z,insertBefore:F,insertAfter:K,handleNodeExpand:Y,updateKeyChildren:_}}});function Bw(e,t,n,o,a,s){var r;const u=Ee("el-tree-node");return k(),L("div",{ref:"el$",class:S([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner",e.dragState.dropType==="inner"),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(k(!0),L(Pe,null,ot(e.root.childNodes,i=>(k(),X(u,{key:e.getNodeKey(i),node:i,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(k(),L("div",{key:0,class:S(e.ns.e("empty-block"))},[x("span",{class:S(e.ns.e("empty-text"))},ce((r=e.emptyText)!=null?r:e.t("el.tree.emptyText")),3)],2)):q("v-if",!0),Ie(x("div",{ref:"dropIndicator$",class:S(e.ns.e("drop-indicator"))},null,2),[[Ye,e.dragState.showDropIndicator]])],2)}var nl=ue(Aw,[["render",Bw],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree.vue"]]);nl.install=e=>{e.component(nl.name,nl)};const fl=nl,XS=fl,Dw=(e,{attrs:t},{tree:n,key:o})=>{const a=ae("tree-select"),s={...sl(Ft(e),Object.keys(dl.props)),...t,valueKey:o,popperClass:$(()=>{const r=[a.e("popper")];return e.popperClass&&r.push(e.popperClass),r.join(" ")}),filterMethod:(r="")=>{e.filterMethod&&e.filterMethod(r),ke(()=>{var u;(u=n.value)==null||u.filter(r)})},onVisibleChange:r=>{var u;(u=t.onVisibleChange)==null||u.call(t,r),e.filterable&&r&&s.filterMethod()}};return s},Lw=se({extends:Zl,setup(e,t){const n=Zl.setup(e,t);delete n.selectOptionClick;const o=De().proxy;return ke(()=>{n.select.cachedOptions.get(o.value)||n.select.onOptionCreate(o)}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function na(e){return e||e===0}function Ji(e){return Array.isArray(e)&&e.length}function Kl(e){return Array.isArray(e)?e:na(e)?[e]:[]}function ol(e,t,n,o,a){for(let s=0;s<e.length;s++){const r=e[s];if(t(r,s,e,a))return o?o(r,s,e,a):r;{const u=n(r);if(Ji(u)){const i=ol(u,t,n,o,r);if(i)return i}}}}const Rw=(e,{attrs:t,slots:n,emit:o},{select:a,tree:s,key:r})=>{ne(()=>e.modelValue,()=>{e.showCheckbox&&ke(()=>{const f=s.value;f&&!oo(f.getCheckedKeys(),Kl(e.modelValue))&&f.setCheckedKeys(Kl(e.modelValue))})},{immediate:!0,deep:!0});const u=$(()=>({value:r.value,...e.props})),i=(f,h)=>{var p;const d=u.value[f];return Pt(d)?d(h,(p=s.value)==null?void 0:p.getNode(i("value",h))):h[d]},c=Kl(e.modelValue).map(f=>ol(e.data||[],h=>i("value",h)===f,h=>i("children",h),(h,p,d,v)=>v&&i("value",v))).filter(f=>na(f));return{...sl(Ft(e),Object.keys(fl.props)),...t,nodeKey:r,expandOnClickNode:$(()=>!e.checkStrictly),defaultExpandedKeys:$(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(c):c),renderContent:(f,{node:h,data:p,store:d})=>f(Lw,{value:i("value",p),label:i("label",p),disabled:i("disabled",p)},e.renderContent?()=>e.renderContent(f,{node:h,data:p,store:d}):n.default?()=>n.default({node:h,data:p,store:d}):void 0),filterNodeMethod:(f,h,p)=>{var d;return e.filterNodeMethod?e.filterNodeMethod(f,h,p):f?(d=i("label",h))==null?void 0:d.includes(f):!0},onNodeClick:(f,h,p)=>{var d,v,m;if((d=t.onNodeClick)==null||d.call(t,f,h,p),!(e.showCheckbox&&e.checkOnClickNode))if(!e.showCheckbox&&(e.checkStrictly||h.isLeaf)){if(!i("disabled",f)){const y=(v=a.value)==null?void 0:v.options.get(i("value",f));(m=a.value)==null||m.handleOptionSelect(y,!0)}}else p.proxy.handleExpandIconClick()},onCheck:(f,h)=>{var p;(p=t.onCheck)==null||p.call(t,f,h);const d=i("value",f);if(e.checkStrictly)o(qe,e.multiple?h.checkedKeys:h.checkedKeys.includes(d)?d:void 0);else if(e.multiple)o(qe,s.value.getCheckedKeys(!0));else{const v=ol([f],b=>!Ji(i("children",b))&&!i("disabled",b),b=>i("children",b)),m=v?i("value",v):void 0,y=na(e.modelValue)&&!!ol([f],b=>i("value",b)===e.modelValue,b=>i("children",b));o(qe,m===e.modelValue||y?void 0:m)}}}},_w=se({name:"ElTreeSelect",inheritAttrs:!1,props:{...dl.props,...fl.props},setup(e,t){const{slots:n,expose:o}=t,a=M(),s=M(),r=$(()=>e.nodeKey||e.valueKey||"value"),u=Dw(e,t,{select:a,tree:s,key:r}),i=Rw(e,t,{select:a,tree:s,key:r}),c=rt({});return o(c),Re(()=>{Object.assign(c,{...sl(s.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...sl(a.value,["focus","blur"])})}),()=>Se(dl,rt({...u,ref:f=>a.value=f}),{...n,default:()=>Se(fl,rt({...i,ref:f=>s.value=f}))})}});var ll=ue(_w,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-select/src/tree-select.vue"]]);ll.install=e=>{e.component(ll.name,ll)};const Fw=ll,JS=Fw,zw="ElUpload";class Vw extends Error{constructor(t,n,o,a){super(t),this.name="UploadAjaxError",this.status=n,this.method=o,this.url=a}}function zs(e,t,n){let o;return n.response?o=`${n.response.error||n.response}`:n.responseText?o=`${n.responseText}`:o=`fail to ${t.method} ${e} ${n.status}`,new Vw(o,n.status,t.method,e)}function Hw(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const Kw=e=>{typeof XMLHttpRequest>"u"&&Ot(zw,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",s=>{const r=s;r.percent=s.total>0?s.loaded/s.total*100:0,e.onProgress(r)});const o=new FormData;if(e.data)for(const[s,r]of Object.entries(e.data))Array.isArray(r)?o.append(s,...r):o.append(s,r);o.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(zs(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(zs(n,e,t));e.onSuccess(Hw(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const a=e.headers||{};if(a instanceof Headers)a.forEach((s,r)=>t.setRequestHeader(r,s));else for(const[s,r]of Object.entries(a))rn(r)||t.setRequestHeader(s,String(r));return t.send(o),t},Zi=["text","picture","picture-card"];let Ww=1;const Qi=()=>Date.now()+Ww++,eu=pe({action:{type:String,default:"#"},headers:{type:te(Object)},method:{type:String,default:"post"},data:{type:Object,default:()=>yt({})},multiple:{type:Boolean,default:!1},name:{type:String,default:"file"},drag:{type:Boolean,default:!1},withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},type:{type:String,default:"select"},fileList:{type:te(Array),default:()=>yt([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:Zi,default:"text"},httpRequest:{type:te(Function),default:Kw},disabled:Boolean,limit:Number}),jw=pe({...eu,beforeUpload:{type:te(Function),default:tt},beforeRemove:{type:te(Function)},onRemove:{type:te(Function),default:tt},onChange:{type:te(Function),default:tt},onPreview:{type:te(Function),default:tt},onSuccess:{type:te(Function),default:tt},onProgress:{type:te(Function),default:tt},onError:{type:te(Function),default:tt},onExceed:{type:te(Function),default:tt}}),xw=pe({files:{type:te(Array),default:()=>yt([])},disabled:{type:Boolean,default:!1},handlePreview:{type:te(Function),default:tt},listType:{type:String,values:Zi,default:"text"}}),qw={remove:e=>!!e},Uw=["onKeydown"],Yw=["src"],Gw=["onClick"],Xw=["onClick"],Jw=["onClick"],Zw={name:"ElUploadList"},Qw=se({...Zw,props:xw,emits:qw,setup(e,{emit:t}){const n=e,{t:o}=Je(),a=ae("upload"),s=ae("icon"),r=ae("list"),u=M(!1),i=f=>{n.handlePreview(f)},c=f=>{t("remove",f)};return(f,h)=>(k(),X(hu,{tag:"ul",class:S([l(a).b("list"),l(a).bm("list",f.listType),l(a).is("disabled",f.disabled)]),name:l(r).b()},{default:H(()=>[(k(!0),L(Pe,null,ot(f.files,p=>(k(),L("li",{key:p.uid||p.name,class:S([l(a).be("list","item"),l(a).is(p.status),{focusing:u.value}]),tabindex:"0",onKeydown:xe(d=>!f.disabled&&c(p),["delete"]),onFocus:h[0]||(h[0]=d=>u.value=!0),onBlur:h[1]||(h[1]=d=>u.value=!1),onClick:h[2]||(h[2]=d=>u.value=!1)},[Q(f.$slots,"default",{file:p},()=>[f.listType==="picture"||p.status!=="uploading"&&f.listType==="picture-card"?(k(),L("img",{key:0,class:S(l(a).be("list","item-thumbnail")),src:p.url,alt:""},null,10,Yw)):q("v-if",!0),f.listType!=="picture"&&(p.status==="uploading"||f.listType!=="picture-card")?(k(),L("div",{key:1,class:S(l(a).be("list","item-info"))},[x("a",{class:S(l(a).be("list","item-name")),onClick:Oe(d=>i(p),["prevent"])},[j(l(ve),{class:S(l(s).m("document"))},{default:H(()=>[j(l(zu))]),_:1},8,["class"]),x("span",{class:S(l(a).be("list","item-file-name"))},ce(p.name),3)],10,Gw),p.status==="uploading"?(k(),X(l(L0),{key:0,type:f.listType==="picture-card"?"circle":"line","stroke-width":f.listType==="picture-card"?6:2,percentage:Number(p.percentage),style:$e(f.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):q("v-if",!0)],2)):q("v-if",!0),x("label",{class:S(l(a).be("list","item-status-label"))},[f.listType==="text"?(k(),X(l(ve),{key:0,class:S([l(s).m("upload-success"),l(s).m("circle-check")])},{default:H(()=>[j(l(ua))]),_:1},8,["class"])):["picture-card","picture"].includes(f.listType)?(k(),X(l(ve),{key:1,class:S([l(s).m("upload-success"),l(s).m("check")])},{default:H(()=>[j(l(ca))]),_:1},8,["class"])):q("v-if",!0)],2),f.disabled?q("v-if",!0):(k(),X(l(ve),{key:2,class:S(l(s).m("close")),onClick:d=>c(p)},{default:H(()=>[j(l(Qt))]),_:2},1032,["class","onClick"])),q(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),q(" This is a bug which needs to be fixed "),q(" TODO: Fix the incorrect navigation interaction "),f.disabled?q("v-if",!0):(k(),L("i",{key:3,class:S(l(s).m("close-tip"))},ce(l(o)("el.upload.deleteTip")),3)),f.listType==="picture-card"?(k(),L("span",{key:4,class:S(l(a).be("list","item-actions"))},[x("span",{class:S(l(a).be("list","item-preview")),onClick:d=>f.handlePreview(p)},[j(l(ve),{class:S(l(s).m("zoom-in"))},{default:H(()=>[j(l(tr))]),_:1},8,["class"])],10,Xw),f.disabled?q("v-if",!0):(k(),L("span",{key:0,class:S(l(a).be("list","item-delete")),onClick:d=>c(p)},[j(l(ve),{class:S(l(s).m("delete"))},{default:H(()=>[j(l(Vu))]),_:1},8,["class"])],10,Jw))],2)):q("v-if",!0)])],42,Uw))),128)),Q(f.$slots,"append")]),_:3},8,["class","name"]))}});var Vs=ue(Qw,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const ek=pe({disabled:{type:Boolean,default:!1}}),tk={file:e=>at(e)},nk=["onDrop","onDragover"],ok={name:"ElUploadDrag"},lk=se({...ok,props:ek,emits:tk,setup(e,{emit:t}){const n=e,o="ElUploadDrag",a=fe(yr);a||Ot(o,"usage: <el-upload><el-upload-dragger /></el-upload>");const s=ae("upload"),r=M(!1),u=c=>{if(n.disabled)return;r.value=!1;const f=Array.from(c.dataTransfer.files),h=a.accept.value;if(!h){t("file",f);return}const p=f.filter(d=>{const{type:v,name:m}=d,y=m.includes(".")?`.${m.split(".").pop()}`:"",b=v.replace(/\/.*$/,"");return h.split(",").map(C=>C.trim()).filter(C=>C).some(C=>C.startsWith(".")?y===C:/\/\*$/.test(C)?b===C.replace(/\/\*$/,""):/^[^/]+\/[^/]+$/.test(C)?v===C:!1)});t("file",p)},i=()=>{n.disabled||(r.value=!0)};return(c,f)=>(k(),L("div",{class:S([l(s).b("dragger"),l(s).is("dragover",r.value)]),onDrop:Oe(u,["prevent"]),onDragover:Oe(i,["prevent"]),onDragleave:f[0]||(f[0]=Oe(h=>r.value=!1,["prevent"]))},[Q(c.$slots,"default")],42,nk))}});var ak=ue(lk,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const sk=pe({...eu,beforeUpload:{type:te(Function),default:tt},onRemove:{type:te(Function),default:tt},onStart:{type:te(Function),default:tt},onSuccess:{type:te(Function),default:tt},onProgress:{type:te(Function),default:tt},onError:{type:te(Function),default:tt},onExceed:{type:te(Function),default:tt}}),rk=["onKeydown"],ik=["name","multiple","accept"],uk={name:"ElUploadContent",inheritAttrs:!1},ck=se({...uk,props:sk,setup(e,{expose:t}){const n=e,o=ae("upload"),a=Kt({}),s=Kt(),r=d=>{if(d.length===0)return;const{autoUpload:v,limit:m,fileList:y,multiple:b,onStart:C,onExceed:g}=n;if(m&&y.length+d.length>m){g(d,y);return}b||(d=d.slice(0,1));for(const w of d){const P=w;P.uid=Qi(),C(P),v&&u(P)}},u=async d=>{if(s.value.value="",!n.beforeUpload)return i(d);let v;try{v=await n.beforeUpload(d)}catch{v=!1}if(v===!1){n.onRemove(d);return}let m=d;v instanceof Blob&&(v instanceof File?m=v:m=new File([v],d.name,{type:d.type})),i(Object.assign(m,{uid:d.uid}))},i=d=>{const{headers:v,data:m,method:y,withCredentials:b,name:C,action:g,onProgress:w,onSuccess:P,onError:I,httpRequest:T}=n,{uid:B}=d,O={headers:v||{},withCredentials:b,file:d,data:m,method:y,filename:C,action:g,onProgress:W=>{w(W,d)},onSuccess:W=>{P(W,d),delete a.value[B]},onError:W=>{I(W,d),delete a.value[B]}},V=T(O);a.value[B]=V,V instanceof Promise&&V.then(O.onSuccess,O.onError)},c=d=>{const v=d.target.files;!v||r(Array.from(v))},f=()=>{n.disabled||(s.value.value="",s.value.click())},h=()=>{f()};return t({abort:d=>{uc(a.value).filter(d?([m])=>String(d.uid)===m:()=>!0).forEach(([m,y])=>{y instanceof XMLHttpRequest&&y.abort(),delete a.value[m]})},upload:u}),(d,v)=>(k(),L("div",{class:S([l(o).b(),l(o).m(d.listType),l(o).is("drag",d.drag)]),tabindex:"0",onClick:f,onKeydown:xe(Oe(h,["self"]),["enter","space"])},[d.drag?(k(),X(ak,{key:0,disabled:d.disabled,onFile:r},{default:H(()=>[Q(d.$slots,"default")]),_:3},8,["disabled"])):Q(d.$slots,"default",{key:1}),x("input",{ref_key:"inputRef",ref:s,class:S(l(o).e("input")),name:d.name,multiple:d.multiple,accept:d.accept,type:"file",onChange:c,onClick:v[0]||(v[0]=Oe(()=>{},["stop"]))},null,42,ik)],42,rk))}});var Hs=ue(ck,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const Ks="ElUpload",dk=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},fk=(e,t)=>{const n=$u(e,"fileList",void 0,{passive:!0}),o=p=>n.value.find(d=>d.uid===p.uid);function a(p){var d;(d=t.value)==null||d.abort(p)}function s(p=["ready","uploading","success","fail"]){n.value=n.value.filter(d=>!p.includes(d.status))}const r=(p,d)=>{const v=o(d);!v||(console.error(p),v.status="fail",n.value.splice(n.value.indexOf(v),1),e.onError(p,v,n.value),e.onChange(v,n.value))},u=(p,d)=>{const v=o(d);!v||(e.onProgress(p,v,n.value),v.status="uploading",v.percentage=Math.round(p.percent))},i=(p,d)=>{const v=o(d);!v||(v.status="success",v.response=p,e.onSuccess(p,v,n.value),e.onChange(v,n.value))},c=p=>{const d={name:p.name,percentage:0,status:"ready",size:p.size,raw:p,uid:p.uid};if(e.listType==="picture-card"||e.listType==="picture")try{d.url=URL.createObjectURL(p)}catch(v){v.message,e.onError(v,d,n.value)}n.value.push(d),e.onChange(d,n.value)},f=async p=>{const d=p instanceof File?o(p):p;d||Ot(Ks,"file to be removed not found");const v=m=>{a(m);const y=n.value;y.splice(y.indexOf(m),1),e.onRemove(m,y),dk(m)};e.beforeRemove?await e.beforeRemove(d,n.value)!==!1&&v(d):v(d)};function h(){n.value.filter(({status:p})=>p==="ready").forEach(({raw:p})=>{var d;return p&&((d=t.value)==null?void 0:d.upload(p))})}return ne(()=>e.listType,p=>{p!=="picture-card"&&p!=="picture"||(n.value=n.value.map(d=>{const{raw:v,url:m}=d;if(!m&&v)try{d.url=URL.createObjectURL(v)}catch(y){e.onError(y,d,n.value)}return d}))}),ne(n,p=>{for(const d of p)d.uid||(d.uid=Qi()),d.status||(d.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:a,clearFiles:s,handleError:r,handleProgress:u,handleStart:c,handleSuccess:i,handleRemove:f,submit:h}},pk={name:"ElUpload"},vk=se({...pk,props:jw,setup(e,{expose:t}){const n=e,o=tn(),a=On(),s=Kt(),{abort:r,submit:u,clearFiles:i,uploadFiles:c,handleStart:f,handleError:h,handleRemove:p,handleSuccess:d,handleProgress:v}=fk(n,s),m=$(()=>n.listType==="picture-card"),y=$(()=>({...n,onStart:f,onProgress:v,onSuccess:d,onError:h,onRemove:p}));return mt(()=>{c.value.forEach(({url:b})=>{b!=null&&b.startsWith("blob:")&&URL.revokeObjectURL(b)})}),_e(yr,{accept:ct(n,"accept")}),t({abort:r,submit:u,clearFiles:i,handleStart:f,handleRemove:p}),(b,C)=>(k(),L("div",null,[l(m)&&b.showFileList?(k(),X(Vs,{key:0,disabled:l(a),"list-type":b.listType,files:l(c),"handle-preview":b.onPreview,onRemove:l(p)},Jn({append:H(()=>[b.listType==="picture-card"?(k(),X(Hs,vt({key:0,ref_key:"uploadRef",ref:s},l(y)),{default:H(()=>[l(o).trigger?Q(b.$slots,"trigger",{key:0}):q("v-if",!0),!l(o).trigger&&l(o).default?Q(b.$slots,"default",{key:1}):q("v-if",!0)]),_:3},16)):q("v-if",!0)]),_:2},[b.$slots.file?{name:"default",fn:H(({file:g})=>[Q(b.$slots,"file",{file:g})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):q("v-if",!0),b.listType!=="picture-card"?(k(),X(Hs,vt({key:1,ref_key:"uploadRef",ref:s},l(y)),{default:H(()=>[l(o).trigger?Q(b.$slots,"trigger",{key:0}):q("v-if",!0),!l(o).trigger&&l(o).default?Q(b.$slots,"default",{key:1}):q("v-if",!0)]),_:3},16)):q("v-if",!0),b.$slots.trigger?Q(b.$slots,"default",{key:2}):q("v-if",!0),Q(b.$slots,"tip"),!l(m)&&b.showFileList?(k(),X(Vs,{key:3,disabled:l(a),"list-type":b.listType,files:l(c),"handle-preview":b.onPreview,onRemove:l(p)},Jn({_:2},[b.$slots.file?{name:"default",fn:H(({file:g})=>[Q(b.$slots,"file",{file:g})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):q("v-if",!0)]))}});var mk=ue(vk,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const ZS=je(mk);function hk(e){let t;const n=ae("loading"),o=M(!1),a=rt({...e,originalPosition:"",originalOverflow:"",visible:!1});function s(d){a.text=d}function r(){const d=a.parent;if(!d.vLoadingAddClassList){let v=d.getAttribute("loading-number");v=Number.parseInt(v)-1,v?d.setAttribute("loading-number",v.toString()):(Bt(d,n.bm("parent","relative")),d.removeAttribute("loading-number")),Bt(d,n.bm("parent","hidden"))}u(),h.unmount()}function u(){var d,v;(v=(d=p.$el)==null?void 0:d.parentNode)==null||v.removeChild(p.$el)}function i(){var d;if(e.beforeClose&&!e.beforeClose())return;const v=a.parent;v.vLoadingAddClassList=void 0,o.value=!0,clearTimeout(t),t=window.setTimeout(()=>{o.value&&(o.value=!1,r())},400),a.visible=!1,(d=e.closed)==null||d.call(e)}function c(){!o.value||(o.value=!1,r())}const h=gu({name:"ElLoading",setup(){return()=>{const d=a.spinner||a.svg,v=Se("svg",{class:"circular",viewBox:a.svgViewBox?a.svgViewBox:"25 25 50 50",...d?{innerHTML:d}:{}},[Se("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none"})]),m=a.text?Se("p",{class:n.b("text")},[a.text]):void 0;return Se(kt,{name:n.b("fade"),onAfterLeave:c},{default:H(()=>[Ie(j("div",{style:{backgroundColor:a.background||""},class:[n.b("mask"),a.customClass,a.fullscreen?"is-fullscreen":""]},[Se("div",{class:n.b("spinner")},[v,m])]),[[Ye,a.visible]])])})}}}),p=h.mount(document.createElement("div"));return{...Ft(a),setText:s,removeElLoadingChild:u,close:i,handleAfterLeave:c,vm:p,get $el(){return p.$el}}}let Wo;const oa=function(e={}){if(!We)return;const t=gk(e);if(t.fullscreen&&Wo)return Wo;const n=hk({...t,closed:()=>{var a;(a=t.closed)==null||a.call(t),t.fullscreen&&(Wo=void 0)}});bk(t,t.parent,n),Ws(t,t.parent,n),t.parent.vLoadingAddClassList=()=>Ws(t,t.parent,n);let o=t.parent.getAttribute("loading-number");return o?o=`${Number.parseInt(o)+1}`:o="1",t.parent.setAttribute("loading-number",o),t.parent.appendChild(n.$el),ke(()=>n.visible.value=t.visible),t.fullscreen&&(Wo=n),n},gk=e=>{var t,n,o,a;let s;return Ke(e.target)?s=(t=document.querySelector(e.target))!=null?t:document.body:s=e.target||document.body,{parent:s===document.body||e.body?document.body:s,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:s===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(o=e.lock)!=null?o:!1,customClass:e.customClass||"",visible:(a=e.visible)!=null?a:!0,target:s}},bk=async(e,t,n)=>{const{nextZIndex:o}=An(),a={};if(e.fullscreen)n.originalPosition.value=on(document.body,"position"),n.originalOverflow.value=on(document.body,"overflow"),a.zIndex=o();else if(e.parent===document.body){n.originalPosition.value=on(document.body,"position"),await ke();for(const s of["top","left"]){const r=s==="top"?"scrollTop":"scrollLeft";a[s]=`${e.target.getBoundingClientRect()[s]+document.body[r]+document.documentElement[r]-Number.parseInt(on(document.body,`margin-${s}`),10)}px`}for(const s of["height","width"])a[s]=`${e.target.getBoundingClientRect()[s]}px`}else n.originalPosition.value=on(t,"position");for(const[s,r]of Object.entries(a))n.$el.style[s]=r},Ws=(e,t,n)=>{const o=ae("loading");n.originalPosition.value!=="absolute"&&n.originalPosition.value!=="fixed"?ln(t,o.bm("parent","relative")):Bt(t,o.bm("parent","relative")),e.fullscreen&&e.lock?ln(t,o.bm("parent","hidden")):Bt(t,o.bm("parent","hidden"))},la=Symbol("ElLoading"),js=(e,t)=>{var n,o,a,s;const r=t.instance,u=p=>Mt(t.value)?t.value[p]:void 0,i=p=>{const d=Ke(p)&&(r==null?void 0:r[p])||p;return d&&M(d)},c=p=>i(u(p)||e.getAttribute(`element-loading-${bu(p)}`)),f=(n=u("fullscreen"))!=null?n:t.modifiers.fullscreen,h={text:c("text"),svg:c("svg"),svgViewBox:c("svgViewBox"),spinner:c("spinner"),background:c("background"),customClass:c("customClass"),fullscreen:f,target:(o=u("target"))!=null?o:f?void 0:e,body:(a=u("body"))!=null?a:t.modifiers.body,lock:(s=u("lock"))!=null?s:t.modifiers.lock};e[la]={options:h,instance:oa(h)}},yk=(e,t)=>{for(const n of Object.keys(t))Zt(t[n])&&(t[n].value=e[n])},xs={mounted(e,t){t.value&&js(e,t)},updated(e,t){const n=e[la];t.oldValue!==t.value&&(t.value&&!t.oldValue?js(e,t):t.value&&t.oldValue?Mt(t.value)&&yk(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[la])==null||t.instance.close()}},QS={install(e){e.directive("loading",xs),e.config.globalProperties.$loading=oa},directive:xs,service:oa},tu=["success","info","warning","error"],At=yt({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:"",id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:We?document.body:void 0}),Ck=pe({customClass:{type:String,default:At.customClass},center:{type:Boolean,default:At.center},dangerouslyUseHTMLString:{type:Boolean,default:At.dangerouslyUseHTMLString},duration:{type:Number,default:At.duration},icon:{type:_t,default:At.icon},id:{type:String,default:At.id},message:{type:te([String,Object,Function]),default:At.message},onClose:{type:te(Function),required:!1},showClose:{type:Boolean,default:At.showClose},type:{type:String,values:tu,default:At.type},offset:{type:Number,default:At.offset},zIndex:{type:Number,default:At.zIndex},grouping:{type:Boolean,default:At.grouping},repeatNum:{type:Number,default:At.repeatNum}}),wk={destroy:()=>!0},an=yu([]),kk=e=>{const t=an.findIndex(a=>a.id===e),n=an[t];let o;return t>0&&(o=an[t-1]),{current:n,prev:o}},Sk=e=>{const{prev:t}=kk(e);return t?t.vm.exposeProxy.bottom:0},Ek=["id"],$k=["innerHTML"],Tk={name:"ElMessage"},Nk=se({...Tk,props:Ck,emits:wk,setup(e,{expose:t}){const n=e,{Close:o}=yl,a=ae("message"),s=M(),r=M(!1),u=M(0);let i;const c=$(()=>n.type?n.type==="error"?"danger":n.type:"info"),f=$(()=>{const w=n.type;return{[a.bm("icon",w)]:w&&Pn[w]}}),h=$(()=>n.icon||Pn[n.type]||""),p=$(()=>Sk(n.id)),d=$(()=>n.offset+p.value),v=$(()=>u.value+d.value),m=$(()=>({top:`${d.value}px`,zIndex:n.zIndex}));function y(){n.duration!==0&&({stop:i}=Qn(()=>{C()},n.duration))}function b(){i==null||i()}function C(){r.value=!1}function g({code:w}){w===be.esc&&C()}return Re(()=>{y(),r.value=!0}),ne(()=>n.repeatNum,()=>{b(),y()}),Vt(document,"keydown",g),yn(s,()=>{u.value=s.value.getBoundingClientRect().height}),t({visible:r,bottom:v,close:C}),(w,P)=>(k(),X(kt,{name:l(a).b("fade"),onBeforeLeave:w.onClose,onAfterLeave:P[0]||(P[0]=I=>w.$emit("destroy")),persisted:""},{default:H(()=>[Ie(x("div",{id:w.id,ref_key:"messageRef",ref:s,class:S([l(a).b(),{[l(a).m(w.type)]:w.type&&!w.icon},l(a).is("center",w.center),l(a).is("closable",w.showClose),w.customClass]),style:$e(l(m)),role:"alert",onMouseenter:b,onMouseleave:y},[w.repeatNum>1?(k(),X(l(Vp),{key:0,value:w.repeatNum,type:l(c),class:S(l(a).e("badge"))},null,8,["value","type","class"])):q("v-if",!0),l(h)?(k(),X(l(ve),{key:1,class:S([l(a).e("icon"),l(f)])},{default:H(()=>[(k(),X(Ve(l(h))))]),_:1},8,["class"])):q("v-if",!0),Q(w.$slots,"default",{},()=>[w.dangerouslyUseHTMLString?(k(),L(Pe,{key:1},[q(" Caution here, message could've been compromised, never use user's input as message "),x("p",{class:S(l(a).e("content")),innerHTML:w.message},null,10,$k)],2112)):(k(),L("p",{key:0,class:S(l(a).e("content"))},ce(w.message),3))]),w.showClose?(k(),X(l(ve),{key:2,class:S(l(a).e("closeBtn")),onClick:Oe(C,["stop"])},{default:H(()=>[j(l(o))]),_:1},8,["class","onClick"])):q("v-if",!0)],46,Ek),[[Ye,r.value]])]),_:3},8,["name","onBeforeLeave"]))}});var Pk=ue(Nk,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let Ik=1;const nu=e=>{const t=!e||Ke(e)||vn(e)||Pt(e)?{message:e}:e,n={...At,...t};if(Ke(n.appendTo)){let o=document.querySelector(n.appendTo);gn(o)||(o=document.body),n.appendTo=o}return n},Mk=e=>{const t=an.indexOf(e);if(t===-1)return;an.splice(t,1);const{handler:n}=e;n.close()},Ok=({appendTo:e,...t},n)=>{const{nextZIndex:o}=An(),a=`message_${Ik++}`,s=t.onClose,r=document.createElement("div"),u={...t,zIndex:o()+t.zIndex,id:a,onClose:()=>{s==null||s(),Mk(h)},onDestroy:()=>{Zn(null,r)}},i=j(Pk,u,Pt(u.message)||vn(u.message)?{default:u.message}:null);i.appContext=n||fo._context,Zn(i,r),e.appendChild(r.firstElementChild);const c=i.component,h={id:a,vnode:i,vm:c,handler:{close:()=>{c.exposeProxy.visible=!1}},props:i.component.props};return h},fo=(e={},t)=>{if(!We)return{close:()=>{}};if(He(Yl.max)&&an.length>=Yl.max)return{close:()=>{}};const n=nu(e);if(n.grouping&&an.length){const a=an.find(({vnode:s})=>{var r;return((r=s.props)==null?void 0:r.message)===n.message});if(a)return a.props.repeatNum+=1,a.props.type=n.type,a.handler}const o=Ok(n,t);return an.push(o),o.handler};tu.forEach(e=>{fo[e]=(t={},n)=>{const o=nu(t);return fo({...o,type:e},n)}});function Ak(e){for(const t of an)(!e||e===t.props.type)&&t.handler.close()}fo.closeAll=Ak;fo._context=null;const eE=ir(fo,"$message"),Bk=se({name:"ElMessageBox",directives:{TrapFocus:hv},components:{ElButton:In,ElFocusTrap:Sl,ElInput:Ht,ElOverlay:Pa,ElIcon:ve,...yl},inheritAttrs:!1,props:{buttonSize:{type:String,validator:Cl},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{t:n}=Je(),o=ae("message-box"),a=M(!1),{nextZIndex:s}=An(),r=rt({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:s()}),u=$(()=>{const F=r.type;return{[o.bm("icon",F)]:F&&Pn[F]}}),i=cn(),c=cn(),f=wt($(()=>e.buttonSize),{prop:!0,form:!0,formItem:!0}),h=$(()=>r.icon||Pn[r.type]||""),p=$(()=>!!r.message),d=M(),v=M(),m=M(),y=M(),b=M(),C=$(()=>r.confirmButtonClass);ne(()=>r.inputValue,async F=>{await ke(),e.boxType==="prompt"&&F!==null&&O()},{immediate:!0}),ne(()=>a.value,F=>{var K,Y;F&&(e.boxType!=="prompt"&&(r.autofocus?m.value=(Y=(K=b.value)==null?void 0:K.$el)!=null?Y:d.value:m.value=d.value),r.zIndex=s()),e.boxType==="prompt"&&(F?ke().then(()=>{var _;y.value&&y.value.$el&&(r.autofocus?m.value=(_=V())!=null?_:d.value:m.value=d.value)}):(r.editorErrorMessage="",r.validateError=!1))});const g=$(()=>e.draggable);kr(d,v,g),Re(async()=>{await ke(),e.closeOnHashChange&&Nt(window,"hashchange",w)}),mt(()=>{e.closeOnHashChange&&xt(window,"hashchange",w)});function w(){!a.value||(a.value=!1,ke(()=>{r.action&&t("action",r.action)}))}const P=()=>{e.closeOnClickModal&&B(r.distinguishCancelAndClose?"close":"cancel")},I=ha(P),T=F=>{if(r.inputType!=="textarea")return F.preventDefault(),B("confirm")},B=F=>{var K;e.boxType==="prompt"&&F==="confirm"&&!O()||(r.action=F,r.beforeClose?(K=r.beforeClose)==null||K.call(r,F,r,w):w())},O=()=>{if(e.boxType==="prompt"){const F=r.inputPattern;if(F&&!F.test(r.inputValue||""))return r.editorErrorMessage=r.inputErrorMessage||n("el.messagebox.error"),r.validateError=!0,!1;const K=r.inputValidator;if(typeof K=="function"){const Y=K(r.inputValue);if(Y===!1)return r.editorErrorMessage=r.inputErrorMessage||n("el.messagebox.error"),r.validateError=!0,!1;if(typeof Y=="string")return r.editorErrorMessage=Y,r.validateError=!0,!1}}return r.editorErrorMessage="",r.validateError=!1,!0},V=()=>{const F=y.value.$refs;return F.input||F.textarea},W=()=>{B("close")},Z=()=>{e.closeOnPressEscape&&W()};return e.lockScroll&&Sr(a),_c(a),{...Ft(r),ns:o,overlayEvent:I,visible:a,hasMessage:p,typeClass:u,contentId:i,inputId:c,btnSize:f,iconComponent:h,confirmButtonClasses:C,rootRef:d,focusStartRef:m,headerRef:v,inputRef:y,confirmRef:b,doClose:w,handleClose:W,onCloseRequested:Z,handleWrapperClick:P,handleInputEnter:T,handleAction:B,t:n}}}),Dk=["aria-label","aria-describedby"],Lk=["aria-label"],Rk=["id"];function _k(e,t,n,o,a,s){const r=Ee("el-icon"),u=Ee("close"),i=Ee("el-input"),c=Ee("el-button"),f=Ee("el-focus-trap"),h=Ee("el-overlay");return k(),X(kt,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=p=>e.$emit("vanish")),persisted:""},{default:H(()=>[Ie(j(h,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:H(()=>[x("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:S(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...p)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...p)),onMousedown:t[9]||(t[9]=(...p)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...p)),onMouseup:t[10]||(t[10]=(...p)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...p))},[j(f,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:H(()=>[x("div",{ref:"rootRef",class:S([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:$e(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=Oe(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(k(),L("div",{key:0,ref:"headerRef",class:S(e.ns.e("header"))},[x("div",{class:S(e.ns.e("title"))},[e.iconComponent&&e.center?(k(),X(r,{key:0,class:S([e.ns.e("status"),e.typeClass])},{default:H(()=>[(k(),X(Ve(e.iconComponent)))]),_:1},8,["class"])):q("v-if",!0),x("span",null,ce(e.title),1)],2),e.showClose?(k(),L("button",{key:0,type:"button",class:S(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=p=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=xe(Oe(p=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[j(r,{class:S(e.ns.e("close"))},{default:H(()=>[j(u)]),_:1},8,["class"])],42,Lk)):q("v-if",!0)],2)):q("v-if",!0),x("div",{id:e.contentId,class:S(e.ns.e("content"))},[x("div",{class:S(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(k(),X(r,{key:0,class:S([e.ns.e("status"),e.typeClass])},{default:H(()=>[(k(),X(Ve(e.iconComponent)))]),_:1},8,["class"])):q("v-if",!0),e.hasMessage?(k(),L("div",{key:1,class:S(e.ns.e("message"))},[Q(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(k(),X(Ve(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(k(),X(Ve(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:H(()=>[Ge(ce(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):q("v-if",!0)],2),Ie(x("div",{class:S(e.ns.e("input"))},[j(i,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=p=>e.inputValue=p),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:S({invalid:e.validateError}),onKeydown:xe(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),x("div",{class:S(e.ns.e("errormsg")),style:$e({visibility:e.editorErrorMessage?"visible":"hidden"})},ce(e.editorErrorMessage),7)],2),[[Ye,e.showInput]])],10,Rk),x("div",{class:S(e.ns.e("btns"))},[e.showCancelButton?(k(),X(c,{key:0,loading:e.cancelButtonLoading,class:S([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=p=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=xe(Oe(p=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:H(()=>[Ge(ce(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):q("v-if",!0),Ie(j(c,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:S([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=p=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=xe(Oe(p=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:H(()=>[Ge(ce(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[Ye,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,Dk)]),_:3},8,["z-index","overlay-class","mask"]),[[Ye,e.visible]])]),_:3})}var Fk=ue(Bk,[["render",_k],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const Ao=new Map,zk=(e,t,n=null)=>{const o=Se(Fk,e);return o.appContext=n,Zn(o,t),document.body.appendChild(t.firstElementChild),o.component},Vk=()=>document.createElement("div"),Hk=(e,t)=>{const n=Vk();e.onVanish=()=>{Zn(null,n),Ao.delete(a)},e.onAction=s=>{const r=Ao.get(a);let u;e.showInput?u={value:a.inputValue,action:s}:u=s,e.callback?e.callback(u,o.proxy):s==="cancel"||s==="close"?e.distinguishCancelAndClose&&s!=="cancel"?r.reject("close"):r.reject("cancel"):r.resolve(u)};const o=zk(e,n,t),a=o.proxy;for(const s in e)Rt(e,s)&&!Rt(a.$props,s)&&(a[s]=e[s]);return ne(()=>a.message,(s,r)=>{vn(s)?o.slots.default=()=>[s]:vn(r)&&!vn(s)&&delete o.slots.default},{immediate:!0}),a.visible=!0,a};function Co(e,t=null){if(!We)return Promise.reject();let n;return Ke(e)||vn(e)?e={message:e}:n=e.callback,new Promise((o,a)=>{const s=Hk(e,t!=null?t:Co._context);Ao.set(s,{options:e,callback:n,resolve:o,reject:a})})}const Kk=["alert","confirm","prompt"],Wk={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};Kk.forEach(e=>{Co[e]=jk(e)});function jk(e){return(t,n,o,a)=>{let s;return Mt(n)?(o=n,s=""):Jt(n)?s="":s=n,Co(Object.assign({title:s,message:t,type:"",...Wk[e]},o,{boxType:e}),a)}}Co.close=()=>{Ao.forEach((e,t)=>{t.doClose()}),Ao.clear()};Co._context=null;const $n=Co;$n.install=e=>{$n._context=e._context,e.config.globalProperties.$msgbox=$n,e.config.globalProperties.$messageBox=$n,e.config.globalProperties.$alert=$n.alert,e.config.globalProperties.$confirm=$n.confirm,e.config.globalProperties.$prompt=$n.prompt};const tE=$n,ou=["success","info","warning","error"],xk=pe({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:te([String,Object]),default:""},id:{type:String,default:""},message:{type:te([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:te(Function),default:()=>{}},onClose:{type:te(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...ou,""],default:""},zIndex:{type:Number,default:0}}),qk={destroy:()=>!0},Uk=se({name:"ElNotification",components:{ElIcon:ve,...yl},props:xk,emits:qk,setup(e){const t=ae("notification"),n=M(!1);let o;const a=$(()=>{const d=e.type;return d&&Pn[e.type]?t.m(d):""}),s=$(()=>Pn[e.type]||e.icon||""),r=$(()=>e.position.endsWith("right")?"right":"left"),u=$(()=>e.position.startsWith("top")?"top":"bottom"),i=$(()=>({[u.value]:`${e.offset}px`,zIndex:e.zIndex}));function c(){e.duration>0&&({stop:o}=Qn(()=>{n.value&&h()},e.duration))}function f(){o==null||o()}function h(){n.value=!1}function p({code:d}){d===be.delete||d===be.backspace?f():d===be.esc?n.value&&h():c()}return Re(()=>{c(),n.value=!0}),Vt(document,"keydown",p),{ns:t,horizontalClass:r,typeClass:a,iconComponent:s,positionStyle:i,visible:n,close:h,clearTimer:f,startTimer:c}}}),Yk=["id"],Gk=["textContent"],Xk={key:0},Jk=["innerHTML"];function Zk(e,t,n,o,a,s){const r=Ee("el-icon"),u=Ee("close");return k(),X(kt,{name:e.ns.b("fade"),onBeforeLeave:e.onClose,onAfterLeave:t[3]||(t[3]=i=>e.$emit("destroy")),persisted:""},{default:H(()=>[Ie(x("div",{id:e.id,class:S([e.ns.b(),e.customClass,e.horizontalClass]),style:$e(e.positionStyle),role:"alert",onMouseenter:t[0]||(t[0]=(...i)=>e.clearTimer&&e.clearTimer(...i)),onMouseleave:t[1]||(t[1]=(...i)=>e.startTimer&&e.startTimer(...i)),onClick:t[2]||(t[2]=(...i)=>e.onClick&&e.onClick(...i))},[e.iconComponent?(k(),X(r,{key:0,class:S([e.ns.e("icon"),e.typeClass])},{default:H(()=>[(k(),X(Ve(e.iconComponent)))]),_:1},8,["class"])):q("v-if",!0),x("div",{class:S(e.ns.e("group"))},[x("h2",{class:S(e.ns.e("title")),textContent:ce(e.title)},null,10,Gk),Ie(x("div",{class:S(e.ns.e("content")),style:$e(e.title?void 0:{margin:0})},[Q(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(k(),L(Pe,{key:1},[q(" Caution here, message could've been compromized, nerver use user's input as message "),q(" eslint-disable-next-line "),x("p",{innerHTML:e.message},null,8,Jk)],2112)):(k(),L("p",Xk,ce(e.message),1))])],6),[[Ye,e.message]]),e.showClose?(k(),X(r,{key:0,class:S(e.ns.e("closeBtn")),onClick:Oe(e.close,["stop"])},{default:H(()=>[j(u)]),_:1},8,["class","onClick"])):q("v-if",!0)],2)],46,Yk),[[Ye,e.visible]])]),_:3},8,["name","onBeforeLeave"])}var Qk=ue(Uk,[["render",Zk],["__file","/home/runner/work/element-plus/element-plus/packages/components/notification/src/notification.vue"]]);const pl={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},aa=16;let eS=1;const po=function(e={},t=null){if(!We)return{close:()=>{}};(typeof e=="string"||vn(e))&&(e={message:e});const n=e.position||"top-right";let o=e.offset||0;pl[n].forEach(({vm:h})=>{var p;o+=(((p=h.el)==null?void 0:p.offsetHeight)||0)+aa}),o+=aa;const{nextZIndex:a}=An(),s=`notification_${eS++}`,r=e.onClose,u={zIndex:a(),offset:o,...e,id:s,onClose:()=>{tS(s,n,r)}};let i=document.body;gn(e.appendTo)?i=e.appendTo:Ke(e.appendTo)&&(i=document.querySelector(e.appendTo)),gn(i)||(i=document.body);const c=document.createElement("div"),f=j(Qk,u,vn(u.message)?{default:()=>u.message}:null);return f.appContext=t!=null?t:po._context,f.props.onDestroy=()=>{Zn(null,c)},Zn(f,c),pl[n].push({vm:f}),i.appendChild(c.firstElementChild),{close:()=>{f.component.proxy.visible=!1}}};ou.forEach(e=>{po[e]=(t={})=>((typeof t=="string"||vn(t))&&(t={message:t}),po({...t,type:e}))});function tS(e,t,n){const o=pl[t],a=o.findIndex(({vm:c})=>{var f;return((f=c.component)==null?void 0:f.props.id)===e});if(a===-1)return;const{vm:s}=o[a];if(!s)return;n==null||n(s);const r=s.el.offsetHeight,u=t.split("-")[0];o.splice(a,1);const i=o.length;if(!(i<1))for(let c=a;c<i;c++){const{el:f,component:h}=o[c].vm,p=Number.parseInt(f.style[u],10)-r-aa;h.props.offset=p}}function nS(){for(const e of Object.values(pl))e.forEach(({vm:t})=>{t.component.proxy.visible=!1})}po.closeAll=nS;po._context=null;const nE=ir(po,"$notify");var lu={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t={name:"zh-cn",el:{colorpicker:{confirm:"\u786E\u5B9A",clear:"\u6E05\u7A7A"},datepicker:{now:"\u6B64\u523B",today:"\u4ECA\u5929",cancel:"\u53D6\u6D88",clear:"\u6E05\u7A7A",confirm:"\u786E\u5B9A",selectDate:"\u9009\u62E9\u65E5\u671F",selectTime:"\u9009\u62E9\u65F6\u95F4",startDate:"\u5F00\u59CB\u65E5\u671F",startTime:"\u5F00\u59CB\u65F6\u95F4",endDate:"\u7ED3\u675F\u65E5\u671F",endTime:"\u7ED3\u675F\u65F6\u95F4",prevYear:"\u524D\u4E00\u5E74",nextYear:"\u540E\u4E00\u5E74",prevMonth:"\u4E0A\u4E2A\u6708",nextMonth:"\u4E0B\u4E2A\u6708",year:"\u5E74",month1:"1 \u6708",month2:"2 \u6708",month3:"3 \u6708",month4:"4 \u6708",month5:"5 \u6708",month6:"6 \u6708",month7:"7 \u6708",month8:"8 \u6708",month9:"9 \u6708",month10:"10 \u6708",month11:"11 \u6708",month12:"12 \u6708",weeks:{sun:"\u65E5",mon:"\u4E00",tue:"\u4E8C",wed:"\u4E09",thu:"\u56DB",fri:"\u4E94",sat:"\u516D"},months:{jan:"\u4E00\u6708",feb:"\u4E8C\u6708",mar:"\u4E09\u6708",apr:"\u56DB\u6708",may:"\u4E94\u6708",jun:"\u516D\u6708",jul:"\u4E03\u6708",aug:"\u516B\u6708",sep:"\u4E5D\u6708",oct:"\u5341\u6708",nov:"\u5341\u4E00\u6708",dec:"\u5341\u4E8C\u6708"}},select:{loading:"\u52A0\u8F7D\u4E2D",noMatch:"\u65E0\u5339\u914D\u6570\u636E",noData:"\u65E0\u6570\u636E",placeholder:"\u8BF7\u9009\u62E9"},cascader:{noMatch:"\u65E0\u5339\u914D\u6570\u636E",loading:"\u52A0\u8F7D\u4E2D",placeholder:"\u8BF7\u9009\u62E9",noData:"\u6682\u65E0\u6570\u636E"},pagination:{goto:"\u524D\u5F80",pagesize:"\u6761/\u9875",total:"\u5171 {total} \u6761",pageClassifier:"\u9875",deprecationWarning:"\u4F60\u4F7F\u7528\u4E86\u4E00\u4E9B\u5DF2\u88AB\u5E9F\u5F03\u7684\u7528\u6CD5\uFF0C\u8BF7\u53C2\u8003 el-pagination \u7684\u5B98\u65B9\u6587\u6863"},messagebox:{title:"\u63D0\u793A",confirm:"\u786E\u5B9A",cancel:"\u53D6\u6D88",error:"\u8F93\u5165\u7684\u6570\u636E\u4E0D\u5408\u6CD5!"},upload:{deleteTip:"\u6309 delete \u952E\u53EF\u5220\u9664",delete:"\u5220\u9664",preview:"\u67E5\u770B\u56FE\u7247",continue:"\u7EE7\u7EED\u4E0A\u4F20"},table:{emptyText:"\u6682\u65E0\u6570\u636E",confirmFilter:"\u7B5B\u9009",resetFilter:"\u91CD\u7F6E",clearFilter:"\u5168\u90E8",sumText:"\u5408\u8BA1"},tree:{emptyText:"\u6682\u65E0\u6570\u636E"},transfer:{noMatch:"\u65E0\u5339\u914D\u6570\u636E",noData:"\u65E0\u6570\u636E",titles:["\u5217\u8868 1","\u5217\u8868 2"],filterPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",noCheckedFormat:"\u5171 {total} \u9879",hasCheckedFormat:"\u5DF2\u9009 {checked}/{total} \u9879"},image:{error:"\u52A0\u8F7D\u5931\u8D25"},pageHeader:{title:"\u8FD4\u56DE"},popconfirm:{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88"}}};e.default=t})(lu);const oE=Qu(lu);export{JS as $,oE as A,Ht as B,AS as C,OS as D,bo as E,Wn as F,CS as G,wS as H,bS as I,TS as J,US as K,qS as L,xs as M,VS as N,pS as O,zS as P,Zl as Q,dl as R,Tb as S,XS as T,LS as U,L0 as V,ZS as W,HS as X,$S as Y,kS as Z,KS as _,wn as a,vm as a0,jS as a1,WS as a2,vS as a3,yS as a4,BS as b,ve as c,_S as d,FS as e,RS as f,NS as g,gS as h,Nb as i,hS as j,eE as k,tE as l,nE as m,QS as n,mS as o,IS as p,MS as q,PS as r,SS as s,xS as t,zt as u,DS as v,In as w,GS as x,YS as y,ES as z};