1 |
- import{u as Xo,t as Qo,i as Ut,f as yn,a as zt,b as er,c as Jn,d as Zn}from"./base-b6a114c4.js";import{l as Qe,w as z,j as g,m as O,e as Ce,p as Kt,s as tr,a as R,d as he,q as nr,v as le,x as j,y as U,z as re,o as P,c as Y,A as B,B as Gt,g as te,n as ae,C as rt,D as Xn,T as Qn,f as Z,E as q,F as Be,G as at,H as eo,I as or,J as K,K as tt,k as pe,L as to,N as Lt,M as rr,O as no,P as ar,Q as Te,R as sr,S as ir,U as lr,V as oo,W as ur,t as et,X as cr,r as ee,Y as dr,Z as fr,$ as pr,a0 as Bt,_ as vr,b as mr,u as gr,h as wn,a1 as hr,a2 as br,a3 as yr}from"./index-47004ebe.js";import{i as wr,j as ro,k as $,m as Ne,n as ao,o as En,t as Er,E as H,u as _r,p as Q,q as Re,_ as V,r as ce,v as wt,w as $t,x as Sr,y as lt,z as so,A as Et,B as Ir,C as Tr,D as kr,F as Cr,G as jt,H as Or,I as _t,J as Wt,K as Ar,L as Rr,l as Mr,s as ne,a as Nr,b as Pr,c as Fr,e as Lr,h as Br,g as $r,d as jr,f as xr}from"./tip-ee29994f.js";import{e as At}from"./base64-4eed9625.js";const J=(e,t,{checkForDefaultPrevented:n=!0}={})=>r=>{const a=e==null?void 0:e(r);if(n===!1||!a)return t==null?void 0:t(r)},_n=e=>t=>t.pointerType==="mouse"?e(t):void 0;function Dr(){if(!arguments.length)return[];var e=arguments[0];return wr(e)?e:[e]}function Hr(e){return e===void 0}const io=(...e)=>t=>{e.forEach(n=>{Qe(n)?n(t):n.value=t})},Ur=({from:e,replacement:t,scope:n,version:o,ref:r,type:a="API"},s)=>{z(()=>g(s),i=>{},{immediate:!0})},zr=ro({type:$(Boolean),default:null}),Kr=ro({type:$(Function)}),lo=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,o=[t],r={[e]:zr,[n]:Kr};return{useModelToggle:({indicator:s,toggleReason:i,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:w,onHide:v})=>{const T=Kt(),{emit:m}=T,p=T.props,b=O(()=>Qe(p[n])),y=O(()=>p[e]===null),c=d=>{s.value!==!0&&(s.value=!0,i&&(i.value=d),Qe(w)&&w(d))},S=d=>{s.value!==!1&&(s.value=!1,i&&(i.value=d),Qe(v)&&v(d))},k=d=>{if(p.disabled===!0||Qe(u)&&!u())return;const _=b.value&&Ne;_&&m(t,!0),(y.value||!_)&&c(d)},f=d=>{if(p.disabled===!0||!Ne)return;const _=b.value&&Ne;_&&m(t,!1),(y.value||!_)&&S(d)},h=d=>{ao(d)&&(p.disabled&&d?b.value&&m(t,!1):s.value!==d&&(d?c():S()))},E=()=>{s.value?f():k()};return z(()=>p[e],h),l&&T.appContext.config.globalProperties.$route!==void 0&&z(()=>({...T.proxy.$route}),()=>{l.value&&s.value&&f()}),Ce(()=>{h(p[e])}),{hide:f,show:k,toggle:E,hasUpdateHandler:b}},useModelToggleProps:r,useModelToggleEmits:o}};lo("modelValue");var se="top",ve="bottom",me="right",ie="left",Yt="auto",ut=[se,ve,me,ie],Ke="start",st="end",Gr="clippingParents",uo="viewport",Xe="popper",Wr="reference",Sn=ut.reduce(function(e,t){return e.concat([t+"-"+Ke,t+"-"+st])},[]),Vt=[].concat(ut,[Yt]).reduce(function(e,t){return e.concat([t,t+"-"+Ke,t+"-"+st])},[]),Yr="beforeRead",Vr="read",qr="afterRead",Jr="beforeMain",Zr="main",Xr="afterMain",Qr="beforeWrite",ea="write",ta="afterWrite",na=[Yr,Vr,qr,Jr,Zr,Xr,Qr,ea,ta];function _e(e){return e?(e.nodeName||"").toLowerCase():null}function be(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ge(e){var t=be(e).Element;return e instanceof t||e instanceof Element}function fe(e){var t=be(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function qt(e){if(typeof ShadowRoot>"u")return!1;var t=be(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function oa(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},r=t.attributes[n]||{},a=t.elements[n];!fe(a)||!_e(a)||(Object.assign(a.style,o),Object.keys(r).forEach(function(s){var i=r[s];i===!1?a.removeAttribute(s):a.setAttribute(s,i===!0?"":i)}))})}function ra(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var r=t.elements[o],a=t.attributes[o]||{},s=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),i=s.reduce(function(l,u){return l[u]="",l},{});!fe(r)||!_e(r)||(Object.assign(r.style,i),Object.keys(a).forEach(function(l){r.removeAttribute(l)}))})}}var co={name:"applyStyles",enabled:!0,phase:"write",fn:oa,effect:ra,requires:["computeStyles"]};function Ee(e){return e.split("-")[0]}var $e=Math.max,St=Math.min,We=Math.round;function Ye(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),o=1,r=1;if(fe(e)&&t){var a=e.offsetHeight,s=e.offsetWidth;s>0&&(o=We(n.width)/s||1),a>0&&(r=We(n.height)/a||1)}return{width:n.width/o,height:n.height/r,top:n.top/r,right:n.right/o,bottom:n.bottom/r,left:n.left/o,x:n.left/o,y:n.top/r}}function Jt(e){var t=Ye(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 fo(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&qt(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function ke(e){return be(e).getComputedStyle(e)}function aa(e){return["table","td","th"].indexOf(_e(e))>=0}function Pe(e){return((Ge(e)?e.ownerDocument:e.document)||window.document).documentElement}function Tt(e){return _e(e)==="html"?e:e.assignedSlot||e.parentNode||(qt(e)?e.host:null)||Pe(e)}function In(e){return!fe(e)||ke(e).position==="fixed"?null:e.offsetParent}function sa(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&fe(e)){var o=ke(e);if(o.position==="fixed")return null}var r=Tt(e);for(qt(r)&&(r=r.host);fe(r)&&["html","body"].indexOf(_e(r))<0;){var a=ke(r);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return r;r=r.parentNode}return null}function ct(e){for(var t=be(e),n=In(e);n&&aa(n)&&ke(n).position==="static";)n=In(n);return n&&(_e(n)==="html"||_e(n)==="body"&&ke(n).position==="static")?t:n||sa(e)||t}function Zt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function nt(e,t,n){return $e(e,St(t,n))}function ia(e,t,n){var o=nt(e,t,n);return o>n?n:o}function po(){return{top:0,right:0,bottom:0,left:0}}function vo(e){return Object.assign({},po(),e)}function mo(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var la=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,vo(typeof e!="number"?e:mo(e,ut))};function ua(e){var t,n=e.state,o=e.name,r=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,i=Ee(n.placement),l=Zt(i),u=[ie,me].indexOf(i)>=0,w=u?"height":"width";if(!(!a||!s)){var v=la(r.padding,n),T=Jt(a),m=l==="y"?se:ie,p=l==="y"?ve:me,b=n.rects.reference[w]+n.rects.reference[l]-s[l]-n.rects.popper[w],y=s[l]-n.rects.reference[l],c=ct(a),S=c?l==="y"?c.clientHeight||0:c.clientWidth||0:0,k=b/2-y/2,f=v[m],h=S-T[w]-v[p],E=S/2-T[w]/2+k,d=nt(f,E,h),_=l;n.modifiersData[o]=(t={},t[_]=d,t.centerOffset=d-E,t)}}function ca(e){var t=e.state,n=e.options,o=n.element,r=o===void 0?"[data-popper-arrow]":o;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||!fo(t.elements.popper,r)||(t.elements.arrow=r))}var da={name:"arrow",enabled:!0,phase:"main",fn:ua,effect:ca,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ve(e){return e.split("-")[1]}var fa={top:"auto",right:"auto",bottom:"auto",left:"auto"};function pa(e){var t=e.x,n=e.y,o=window,r=o.devicePixelRatio||1;return{x:We(t*r)/r||0,y:We(n*r)/r||0}}function Tn(e){var t,n=e.popper,o=e.popperRect,r=e.placement,a=e.variation,s=e.offsets,i=e.position,l=e.gpuAcceleration,u=e.adaptive,w=e.roundOffsets,v=e.isFixed,T=s.x,m=T===void 0?0:T,p=s.y,b=p===void 0?0:p,y=typeof w=="function"?w({x:m,y:b}):{x:m,y:b};m=y.x,b=y.y;var c=s.hasOwnProperty("x"),S=s.hasOwnProperty("y"),k=ie,f=se,h=window;if(u){var E=ct(n),d="clientHeight",_="clientWidth";if(E===be(n)&&(E=Pe(n),ke(E).position!=="static"&&i==="absolute"&&(d="scrollHeight",_="scrollWidth")),E=E,r===se||(r===ie||r===me)&&a===st){f=ve;var C=v&&E===h&&h.visualViewport?h.visualViewport.height:E[d];b-=C-o.height,b*=l?1:-1}if(r===ie||(r===se||r===ve)&&a===st){k=me;var A=v&&E===h&&h.visualViewport?h.visualViewport.width:E[_];m-=A-o.width,m*=l?1:-1}}var N=Object.assign({position:i},u&&fa),M=w===!0?pa({x:m,y:b}):{x:m,y:b};if(m=M.x,b=M.y,l){var F;return Object.assign({},N,(F={},F[f]=S?"0":"",F[k]=c?"0":"",F.transform=(h.devicePixelRatio||1)<=1?"translate("+m+"px, "+b+"px)":"translate3d("+m+"px, "+b+"px, 0)",F))}return Object.assign({},N,(t={},t[f]=S?b+"px":"",t[k]=c?m+"px":"",t.transform="",t))}function va(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=o===void 0?!0:o,a=n.adaptive,s=a===void 0?!0:a,i=n.roundOffsets,l=i===void 0?!0:i,u={placement:Ee(t.placement),variation:Ve(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Tn(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Tn(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var go={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:va,data:{}},pt={passive:!0};function ma(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,a=r===void 0?!0:r,s=o.resize,i=s===void 0?!0:s,l=be(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(w){w.addEventListener("scroll",n.update,pt)}),i&&l.addEventListener("resize",n.update,pt),function(){a&&u.forEach(function(w){w.removeEventListener("scroll",n.update,pt)}),i&&l.removeEventListener("resize",n.update,pt)}}var ho={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ma,data:{}},ga={left:"right",right:"left",bottom:"top",top:"bottom"};function yt(e){return e.replace(/left|right|bottom|top/g,function(t){return ga[t]})}var ha={start:"end",end:"start"};function kn(e){return e.replace(/start|end/g,function(t){return ha[t]})}function Xt(e){var t=be(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Qt(e){return Ye(Pe(e)).left+Xt(e).scrollLeft}function ba(e){var t=be(e),n=Pe(e),o=t.visualViewport,r=n.clientWidth,a=n.clientHeight,s=0,i=0;return o&&(r=o.width,a=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=o.offsetLeft,i=o.offsetTop)),{width:r,height:a,x:s+Qt(e),y:i}}function ya(e){var t,n=Pe(e),o=Xt(e),r=(t=e.ownerDocument)==null?void 0:t.body,a=$e(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=$e(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),i=-o.scrollLeft+Qt(e),l=-o.scrollTop;return ke(r||n).direction==="rtl"&&(i+=$e(n.clientWidth,r?r.clientWidth:0)-a),{width:a,height:s,x:i,y:l}}function en(e){var t=ke(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function bo(e){return["html","body","#document"].indexOf(_e(e))>=0?e.ownerDocument.body:fe(e)&&en(e)?e:bo(Tt(e))}function ot(e,t){var n;t===void 0&&(t=[]);var o=bo(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),a=be(o),s=r?[a].concat(a.visualViewport||[],en(o)?o:[]):o,i=t.concat(s);return r?i:i.concat(ot(Tt(s)))}function xt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function wa(e){var t=Ye(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 Cn(e,t){return t===uo?xt(ba(e)):Ge(t)?wa(t):xt(ya(Pe(e)))}function Ea(e){var t=ot(Tt(e)),n=["absolute","fixed"].indexOf(ke(e).position)>=0,o=n&&fe(e)?ct(e):e;return Ge(o)?t.filter(function(r){return Ge(r)&&fo(r,o)&&_e(r)!=="body"}):[]}function _a(e,t,n){var o=t==="clippingParents"?Ea(e):[].concat(t),r=[].concat(o,[n]),a=r[0],s=r.reduce(function(i,l){var u=Cn(e,l);return i.top=$e(u.top,i.top),i.right=St(u.right,i.right),i.bottom=St(u.bottom,i.bottom),i.left=$e(u.left,i.left),i},Cn(e,a));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function yo(e){var t=e.reference,n=e.element,o=e.placement,r=o?Ee(o):null,a=o?Ve(o):null,s=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,l;switch(r){case se:l={x:s,y:t.y-n.height};break;case ve:l={x:s,y:t.y+t.height};break;case me:l={x:t.x+t.width,y:i};break;case ie:l={x:t.x-n.width,y:i};break;default:l={x:t.x,y:t.y}}var u=r?Zt(r):null;if(u!=null){var w=u==="y"?"height":"width";switch(a){case Ke:l[u]=l[u]-(t[w]/2-n[w]/2);break;case st:l[u]=l[u]+(t[w]/2-n[w]/2);break}}return l}function it(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=o===void 0?e.placement:o,a=n.boundary,s=a===void 0?Gr:a,i=n.rootBoundary,l=i===void 0?uo:i,u=n.elementContext,w=u===void 0?Xe:u,v=n.altBoundary,T=v===void 0?!1:v,m=n.padding,p=m===void 0?0:m,b=vo(typeof p!="number"?p:mo(p,ut)),y=w===Xe?Wr:Xe,c=e.rects.popper,S=e.elements[T?y:w],k=_a(Ge(S)?S:S.contextElement||Pe(e.elements.popper),s,l),f=Ye(e.elements.reference),h=yo({reference:f,element:c,strategy:"absolute",placement:r}),E=xt(Object.assign({},c,h)),d=w===Xe?E:f,_={top:k.top-d.top+b.top,bottom:d.bottom-k.bottom+b.bottom,left:k.left-d.left+b.left,right:d.right-k.right+b.right},C=e.modifiersData.offset;if(w===Xe&&C){var A=C[r];Object.keys(_).forEach(function(N){var M=[me,ve].indexOf(N)>=0?1:-1,F=[se,ve].indexOf(N)>=0?"y":"x";_[N]+=A[F]*M})}return _}function Sa(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=n.boundary,a=n.rootBoundary,s=n.padding,i=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?Vt:l,w=Ve(o),v=w?i?Sn:Sn.filter(function(p){return Ve(p)===w}):ut,T=v.filter(function(p){return u.indexOf(p)>=0});T.length===0&&(T=v);var m=T.reduce(function(p,b){return p[b]=it(e,{placement:b,boundary:r,rootBoundary:a,padding:s})[Ee(b)],p},{});return Object.keys(m).sort(function(p,b){return m[p]-m[b]})}function Ia(e){if(Ee(e)===Yt)return[];var t=yt(e);return[kn(e),t,kn(t)]}function Ta(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,a=r===void 0?!0:r,s=n.altAxis,i=s===void 0?!0:s,l=n.fallbackPlacements,u=n.padding,w=n.boundary,v=n.rootBoundary,T=n.altBoundary,m=n.flipVariations,p=m===void 0?!0:m,b=n.allowedAutoPlacements,y=t.options.placement,c=Ee(y),S=c===y,k=l||(S||!p?[yt(y)]:Ia(y)),f=[y].concat(k).reduce(function(we,de){return we.concat(Ee(de)===Yt?Sa(t,{placement:de,boundary:w,rootBoundary:v,padding:u,flipVariations:p,allowedAutoPlacements:b}):de)},[]),h=t.rects.reference,E=t.rects.popper,d=new Map,_=!0,C=f[0],A=0;A<f.length;A++){var N=f[A],M=Ee(N),F=Ve(N)===Ke,L=[se,ve].indexOf(M)>=0,G=L?"width":"height",D=it(t,{placement:N,boundary:w,rootBoundary:v,altBoundary:T,padding:u}),I=L?F?me:ie:F?ve:se;h[G]>E[G]&&(I=yt(I));var x=yt(I),W=[];if(a&&W.push(D[M]<=0),i&&W.push(D[I]<=0,D[x]<=0),W.every(function(we){return we})){C=N,_=!1;break}d.set(N,W)}if(_)for(var oe=p?3:1,Se=function(we){var de=f.find(function(xe){var qe=d.get(xe);if(qe)return qe.slice(0,we).every(function(De){return De})});if(de)return C=de,"break"},ye=oe;ye>0;ye--){var je=Se(ye);if(je==="break")break}t.placement!==C&&(t.modifiersData[o]._skip=!0,t.placement=C,t.reset=!0)}}var ka={name:"flip",enabled:!0,phase:"main",fn:Ta,requiresIfExists:["offset"],data:{_skip:!1}};function On(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 An(e){return[se,me,ve,ie].some(function(t){return e[t]>=0})}function Ca(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,a=t.modifiersData.preventOverflow,s=it(t,{elementContext:"reference"}),i=it(t,{altBoundary:!0}),l=On(s,o),u=On(i,r,a),w=An(l),v=An(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:w,hasPopperEscaped:v},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":w,"data-popper-escaped":v})}var Oa={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ca};function Aa(e,t,n){var o=Ee(e),r=[ie,se].indexOf(o)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=a[0],i=a[1];return s=s||0,i=(i||0)*r,[ie,me].indexOf(o)>=0?{x:i,y:s}:{x:s,y:i}}function Ra(e){var t=e.state,n=e.options,o=e.name,r=n.offset,a=r===void 0?[0,0]:r,s=Vt.reduce(function(w,v){return w[v]=Aa(v,t.rects,a),w},{}),i=s[t.placement],l=i.x,u=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[o]=s}var Ma={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ra};function Na(e){var t=e.state,n=e.name;t.modifiersData[n]=yo({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var wo={name:"popperOffsets",enabled:!0,phase:"read",fn:Na,data:{}};function Pa(e){return e==="x"?"y":"x"}function Fa(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,a=r===void 0?!0:r,s=n.altAxis,i=s===void 0?!1:s,l=n.boundary,u=n.rootBoundary,w=n.altBoundary,v=n.padding,T=n.tether,m=T===void 0?!0:T,p=n.tetherOffset,b=p===void 0?0:p,y=it(t,{boundary:l,rootBoundary:u,padding:v,altBoundary:w}),c=Ee(t.placement),S=Ve(t.placement),k=!S,f=Zt(c),h=Pa(f),E=t.modifiersData.popperOffsets,d=t.rects.reference,_=t.rects.popper,C=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,A=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(E){if(a){var F,L=f==="y"?se:ie,G=f==="y"?ve:me,D=f==="y"?"height":"width",I=E[f],x=I+y[L],W=I-y[G],oe=m?-_[D]/2:0,Se=S===Ke?d[D]:_[D],ye=S===Ke?-_[D]:-d[D],je=t.elements.arrow,we=m&&je?Jt(je):{width:0,height:0},de=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:po(),xe=de[L],qe=de[G],De=nt(0,d[D],we[D]),Wo=k?d[D]/2-oe-De-xe-A.mainAxis:Se-De-xe-A.mainAxis,Yo=k?-d[D]/2+oe+De+qe+A.mainAxis:ye+De+qe+A.mainAxis,Je=t.elements.arrow&&ct(t.elements.arrow),Ze=Je?f==="y"?Je.clientTop||0:Je.clientLeft||0:0,dn=(F=N==null?void 0:N[f])!=null?F:0,Vo=I+Wo-dn-Ze,qo=I+Yo-dn,dt=nt(m?St(x,Vo):x,I,m?$e(W,qo):W);E[f]=dt,M[f]=dt-I}if(i){var fn,Jo=f==="x"?se:ie,Zo=f==="x"?ve:me,Fe=E[h],ft=h==="y"?"height":"width",pn=Fe+y[Jo],vn=Fe-y[Zo],Ot=[se,ie].indexOf(c)!==-1,mn=(fn=N==null?void 0:N[h])!=null?fn:0,gn=Ot?pn:Fe-d[ft]-_[ft]-mn+A.altAxis,hn=Ot?Fe+d[ft]+_[ft]-mn-A.altAxis:vn,bn=m&&Ot?ia(gn,Fe,hn):nt(m?gn:pn,Fe,m?hn:vn);E[h]=bn,M[h]=bn-Fe}t.modifiersData[o]=M}}var La={name:"preventOverflow",enabled:!0,phase:"main",fn:Fa,requiresIfExists:["offset"]};function Ba(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function $a(e){return e===be(e)||!fe(e)?Xt(e):Ba(e)}function ja(e){var t=e.getBoundingClientRect(),n=We(t.width)/e.offsetWidth||1,o=We(t.height)/e.offsetHeight||1;return n!==1||o!==1}function xa(e,t,n){n===void 0&&(n=!1);var o=fe(t),r=fe(t)&&ja(t),a=Pe(t),s=Ye(e,r),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!n)&&((_e(t)!=="body"||en(a))&&(i=$a(t)),fe(t)?(l=Ye(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=Qt(a))),{x:s.left+i.scrollLeft-l.x,y:s.top+i.scrollTop-l.y,width:s.width,height:s.height}}function Da(e){var t=new Map,n=new Set,o=[];e.forEach(function(a){t.set(a.name,a)});function r(a){n.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(i){if(!n.has(i)){var l=t.get(i);l&&r(l)}}),o.push(a)}return e.forEach(function(a){n.has(a.name)||r(a)}),o}function Ha(e){var t=Da(e);return na.reduce(function(n,o){return n.concat(t.filter(function(r){return r.phase===o}))},[])}function Ua(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function za(e){var t=e.reduce(function(n,o){var r=n[o.name];return n[o.name]=r?Object.assign({},r,o,{options:Object.assign({},r.options,o.options),data:Object.assign({},r.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var Rn={placement:"bottom",modifiers:[],strategy:"absolute"};function Mn(){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 tn(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,r=t.defaultOptions,a=r===void 0?Rn:r;return function(s,i,l){l===void 0&&(l=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Rn,a),modifiersData:{},elements:{reference:s,popper:i},attributes:{},styles:{}},w=[],v=!1,T={state:u,setOptions:function(b){var y=typeof b=="function"?b(u.options):b;p(),u.options=Object.assign({},a,u.options,y),u.scrollParents={reference:Ge(s)?ot(s):s.contextElement?ot(s.contextElement):[],popper:ot(i)};var c=Ha(za([].concat(o,u.options.modifiers)));return u.orderedModifiers=c.filter(function(S){return S.enabled}),m(),T.update()},forceUpdate:function(){if(!v){var b=u.elements,y=b.reference,c=b.popper;if(Mn(y,c)){u.rects={reference:xa(y,ct(c),u.options.strategy==="fixed"),popper:Jt(c)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(_){return u.modifiersData[_.name]=Object.assign({},_.data)});for(var S=0;S<u.orderedModifiers.length;S++){if(u.reset===!0){u.reset=!1,S=-1;continue}var k=u.orderedModifiers[S],f=k.fn,h=k.options,E=h===void 0?{}:h,d=k.name;typeof f=="function"&&(u=f({state:u,options:E,name:d,instance:T})||u)}}}},update:Ua(function(){return new Promise(function(b){T.forceUpdate(),b(u)})}),destroy:function(){p(),v=!0}};if(!Mn(s,i))return T;T.setOptions(l).then(function(b){!v&&l.onFirstUpdate&&l.onFirstUpdate(b)});function m(){u.orderedModifiers.forEach(function(b){var y=b.name,c=b.options,S=c===void 0?{}:c,k=b.effect;if(typeof k=="function"){var f=k({state:u,name:y,instance:T,options:S}),h=function(){};w.push(f||h)}})}function p(){w.forEach(function(b){return b()}),w=[]}return T}}tn();var Ka=[ho,wo,go,co];tn({defaultModifiers:Ka});var Ga=[ho,wo,go,co,Ma,ka,La,da,Oa],Wa=tn({defaultModifiers:Ga});const Ya=(e,t,n={})=>{const o={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const u=Va(l);Object.assign(s.value,u)},requires:["computeStyles"]},r=O(()=>{const{onFirstUpdate:l,placement:u,strategy:w,modifiers:v}=g(n);return{onFirstUpdate:l,placement:u||"bottom",strategy:w||"absolute",modifiers:[...v||[],o,{name:"applyStyles",enabled:!1}]}}),a=tr(),s=R({styles:{popper:{position:g(r).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=()=>{a.value&&(a.value.destroy(),a.value=void 0)};return z(r,l=>{const u=g(a);u&&u.setOptions(l)},{deep:!0}),z([e,t],([l,u])=>{i(),!(!l||!u)&&(a.value=Wa(l,u,g(r)))}),he(()=>{i()}),{state:O(()=>{var l;return{...((l=g(a))==null?void 0:l.state)||{}}}),styles:O(()=>g(s).styles),attributes:O(()=>g(s).attributes),update:()=>{var l;return(l=g(a))==null?void 0:l.update()},forceUpdate:()=>{var l;return(l=g(a))==null?void 0:l.forceUpdate()},instanceRef:O(()=>g(a))}};function Va(e){const t=Object.keys(e.elements),n=En(t.map(r=>[r,e.styles[r]||{}])),o=En(t.map(r=>[r,e.attributes[r]]));return{styles:n,attributes:o}}function Nn(){let e;const t=(o,r)=>{n(),e=window.setTimeout(o,r)},n=()=>window.clearTimeout(e);return Er(()=>n()),{registerTimeout:t,cancelTimeout:n}}let Ue=[];const Pn=e=>{const t=e;t.key===H.esc&&Ue.forEach(n=>n(t))},qa=e=>{Ce(()=>{Ue.length===0&&document.addEventListener("keydown",Pn),Ne&&Ue.push(e)}),he(()=>{Ue=Ue.filter(t=>t!==e),Ue.length===0&&Ne&&document.removeEventListener("keydown",Pn)})};let Fn;const Eo=()=>{const e=_r(),t=Xo(),n=O(()=>`${e.value}-popper-container-${t.prefix}`),o=O(()=>`#${n.value}`);return{id:n,selector:o}},Ja=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},Za=()=>{const{id:e,selector:t}=Eo();return nr(()=>{Ne&&!Fn&&!document.body.querySelector(t.value)&&(Fn=Ja(e.value))}),{id:e,selector:t}},Xa=Q({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),Qa=({showAfter:e,hideAfter:t,autoClose:n,open:o,close:r})=>{const{registerTimeout:a}=Nn(),{registerTimeout:s,cancelTimeout:i}=Nn();return{onOpen:w=>{a(()=>{o(w);const v=g(n);Re(v)&&v>0&&s(()=>{r(w)},v)},g(e))},onClose:w=>{i(),a(()=>{r(w)},g(t))}}},_o=Symbol("elForwardRef"),es=e=>{le(_o,{setForwardRef:n=>{e.value=n}})},ts=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),ze=4,ns={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"}},os=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),So=Symbol("scrollbarContextKey"),rs=Q({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),as="Thumb",ss=j({__name:"thumb",props:rs,setup(e){const t=e,n=U(So),o=ce("scrollbar");n||Qo(as,"can not inject scrollbar context");const r=R(),a=R(),s=R({}),i=R(!1);let l=!1,u=!1,w=Ne?document.onselectstart:null;const v=O(()=>ns[t.vertical?"vertical":"horizontal"]),T=O(()=>os({size:t.size,move:t.move,bar:v.value})),m=O(()=>r.value[v.value.offset]**2/n.wrapElement[v.value.scrollSize]/t.ratio/a.value[v.value.offset]),p=E=>{var d;if(E.stopPropagation(),E.ctrlKey||[1,2].includes(E.button))return;(d=window.getSelection())==null||d.removeAllRanges(),y(E);const _=E.currentTarget;_&&(s.value[v.value.axis]=_[v.value.offset]-(E[v.value.client]-_.getBoundingClientRect()[v.value.direction]))},b=E=>{if(!a.value||!r.value||!n.wrapElement)return;const d=Math.abs(E.target.getBoundingClientRect()[v.value.direction]-E[v.value.client]),_=a.value[v.value.offset]/2,C=(d-_)*100*m.value/r.value[v.value.offset];n.wrapElement[v.value.scroll]=C*n.wrapElement[v.value.scrollSize]/100},y=E=>{E.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",c),document.addEventListener("mouseup",S),w=document.onselectstart,document.onselectstart=()=>!1},c=E=>{if(!r.value||!a.value||l===!1)return;const d=s.value[v.value.axis];if(!d)return;const _=(r.value.getBoundingClientRect()[v.value.direction]-E[v.value.client])*-1,C=a.value[v.value.offset]-d,A=(_-C)*100*m.value/r.value[v.value.offset];n.wrapElement[v.value.scroll]=A*n.wrapElement[v.value.scrollSize]/100},S=()=>{l=!1,s.value[v.value.axis]=0,document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",S),h(),u&&(i.value=!1)},k=()=>{u=!1,i.value=!!t.size},f=()=>{u=!0,i.value=l};he(()=>{h(),document.removeEventListener("mouseup",S)});const h=()=>{document.onselectstart!==w&&(document.onselectstart=w)};return wt(re(n,"scrollbarElement"),"mousemove",k),wt(re(n,"scrollbarElement"),"mouseleave",f),(E,d)=>(P(),Y(Qn,{name:g(o).b("fade"),persisted:""},{default:B(()=>[Gt(te("div",{ref_key:"instance",ref:r,class:ae([g(o).e("bar"),g(o).is(g(v).key)]),onMousedown:b},[te("div",{ref_key:"thumb",ref:a,class:ae(g(o).e("thumb")),style:rt(g(T)),onMousedown:p},null,38)],34),[[Xn,E.always||i.value]])]),_:1},8,["name"]))}});var Ln=V(ss,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const is=Q({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),ls=j({__name:"bar",props:is,setup(e,{expose:t}){const n=e,o=R(0),r=R(0);return t({handleScroll:s=>{if(s){const i=s.offsetHeight-ze,l=s.offsetWidth-ze;r.value=s.scrollTop*100/i*n.ratioY,o.value=s.scrollLeft*100/l*n.ratioX}}}),(s,i)=>(P(),Z(Be,null,[q(Ln,{move:o.value,ratio:s.ratioX,size:s.width,always:s.always},null,8,["move","ratio","size","always"]),q(Ln,{move:r.value,ratio:s.ratioY,size:s.height,vertical:"",always:s.always},null,8,["move","ratio","size","always"])],64))}});var us=V(ls,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const cs=Q({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:$([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},id:String,role:String,ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical"]}}),ds={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Re)},fs="ElScrollbar",ps=j({name:fs}),vs=j({...ps,props:cs,emits:ds,setup(e,{expose:t,emit:n}){const o=e,r=ce("scrollbar");let a,s;const i=R(),l=R(),u=R(),w=R("0"),v=R("0"),T=R(),m=R(1),p=R(1),b=O(()=>{const d={};return o.height&&(d.height=$t(o.height)),o.maxHeight&&(d.maxHeight=$t(o.maxHeight)),[o.wrapStyle,d]}),y=O(()=>[o.wrapClass,r.e("wrap"),{[r.em("wrap","hidden-default")]:!o.native}]),c=O(()=>[r.e("view"),o.viewClass]),S=()=>{var d;l.value&&((d=T.value)==null||d.handleScroll(l.value),n("scroll",{scrollTop:l.value.scrollTop,scrollLeft:l.value.scrollLeft}))};function k(d,_){to(d)?l.value.scrollTo(d):Re(d)&&Re(_)&&l.value.scrollTo(d,_)}const f=d=>{Re(d)&&(l.value.scrollTop=d)},h=d=>{Re(d)&&(l.value.scrollLeft=d)},E=()=>{if(!l.value)return;const d=l.value.offsetHeight-ze,_=l.value.offsetWidth-ze,C=d**2/l.value.scrollHeight,A=_**2/l.value.scrollWidth,N=Math.max(C,o.minSize),M=Math.max(A,o.minSize);m.value=C/(d-C)/(N/(d-N)),p.value=A/(_-A)/(M/(_-M)),v.value=N+ze<d?`${N}px`:"",w.value=M+ze<_?`${M}px`:""};return z(()=>o.noresize,d=>{d?(a==null||a(),s==null||s()):({stop:a}=Sr(u,E),s=wt("resize",E))},{immediate:!0}),z(()=>[o.maxHeight,o.height],()=>{o.native||at(()=>{var d;E(),l.value&&((d=T.value)==null||d.handleScroll(l.value))})}),le(So,eo({scrollbarElement:i,wrapElement:l})),Ce(()=>{o.native||at(()=>{E()})}),or(()=>E()),t({wrapRef:l,update:E,scrollTo:k,setScrollTop:f,setScrollLeft:h,handleScroll:S}),(d,_)=>(P(),Z("div",{ref_key:"scrollbarRef",ref:i,class:ae(g(r).b())},[te("div",{ref_key:"wrapRef",ref:l,class:ae(g(y)),style:rt(g(b)),onScroll:S},[(P(),Y(tt(d.tag),{id:d.id,ref_key:"resizeRef",ref:u,class:ae(g(c)),style:rt(d.viewStyle),role:d.role,"aria-label":d.ariaLabel,"aria-orientation":d.ariaOrientation},{default:B(()=>[K(d.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],38),d.native?pe("v-if",!0):(P(),Y(us,{key:0,ref_key:"barRef",ref:T,height:v.value,width:w.value,always:d.always,"ratio-x":p.value,"ratio-y":m.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var ms=V(vs,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const gs=lt(ms),nn=Symbol("popper"),Io=Symbol("popperContent"),hs=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],To=Q({role:{type:String,values:hs,default:"tooltip"}}),bs=j({name:"ElPopper",inheritAttrs:!1}),ys=j({...bs,props:To,setup(e,{expose:t}){const n=e,o=R(),r=R(),a=R(),s=R(),i=O(()=>n.role),l={triggerRef:o,popperInstanceRef:r,contentRef:a,referenceRef:s,role:i};return t(l),le(nn,l),(u,w)=>K(u.$slots,"default")}});var ws=V(ys,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const ko=Q({arrowOffset:{type:Number,default:5}}),Es=j({name:"ElPopperArrow",inheritAttrs:!1}),_s=j({...Es,props:ko,setup(e,{expose:t}){const n=e,o=ce("popper"),{arrowOffset:r,arrowRef:a,arrowStyle:s}=U(Io,void 0);return z(()=>n.arrowOffset,i=>{r.value=i}),he(()=>{a.value=void 0}),t({arrowRef:a}),(i,l)=>(P(),Z("span",{ref_key:"arrowRef",ref:a,class:ae(g(o).e("arrow")),style:rt(g(s)),"data-popper-arrow":""},null,6))}});var Ss=V(_s,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const Is="ElOnlyChild",Co=j({name:Is,setup(e,{slots:t,attrs:n}){var o;const r=U(_o),a=ts((o=r==null?void 0:r.setForwardRef)!=null?o:Lt);return()=>{var s;const i=(s=t.default)==null?void 0:s.call(t,n);if(!i||i.length>1)return null;const l=Oo(i);return l?Gt(rr(l,n),[[a]]):null}}});function Oo(e){if(!e)return null;const t=e;for(const n of t){if(to(n))switch(n.type){case ar:continue;case no:case"svg":return Bn(n);case Be:return Oo(n.children);default:return n}return Bn(n)}return null}function Bn(e){const t=ce("only-child");return q("span",{class:t.e("content")},[e])}const Ao=Q({virtualRef:{type:$(Object)},virtualTriggering:Boolean,onMouseenter:{type:$(Function)},onMouseleave:{type:$(Function)},onClick:{type:$(Function)},onKeydown:{type:$(Function)},onFocus:{type:$(Function)},onBlur:{type:$(Function)},onContextmenu:{type:$(Function)},id:String,open:Boolean}),Ts=j({name:"ElPopperTrigger",inheritAttrs:!1}),ks=j({...Ts,props:Ao,setup(e,{expose:t}){const n=e,{role:o,triggerRef:r}=U(nn,void 0);es(r);const a=O(()=>i.value?n.id:void 0),s=O(()=>{if(o&&o.value==="tooltip")return n.open&&n.id?n.id:void 0}),i=O(()=>{if(o&&o.value!=="tooltip")return o.value}),l=O(()=>i.value?`${n.open}`:void 0);let u;return Ce(()=>{z(()=>n.virtualRef,w=>{w&&(r.value=so(w))},{immediate:!0}),z(r,(w,v)=>{u==null||u(),u=void 0,Et(w)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(T=>{var m;const p=n[T];p&&(w.addEventListener(T.slice(2).toLowerCase(),p),(m=v==null?void 0:v.removeEventListener)==null||m.call(v,T.slice(2).toLowerCase(),p))}),u=z([a,s,i,l],T=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((m,p)=>{Ut(T[p])?w.removeAttribute(m):w.setAttribute(m,T[p])})},{immediate:!0})),Et(v)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(T=>v.removeAttribute(T))},{immediate:!0})}),he(()=>{u==null||u(),u=void 0}),t({triggerRef:r}),(w,v)=>w.virtualTriggering?pe("v-if",!0):(P(),Y(g(Co),Te({key:0},w.$attrs,{"aria-controls":g(a),"aria-describedby":g(s),"aria-expanded":g(l),"aria-haspopup":g(i)}),{default:B(()=>[K(w.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var Cs=V(ks,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const Rt="focus-trap.focus-after-trapped",Mt="focus-trap.focus-after-released",Os="focus-trap.focusout-prevented",$n={cancelable:!0,bubbles:!1},As={cancelable:!0,bubbles:!1},jn="focusAfterTrapped",xn="focusAfterReleased",Ro=Symbol("elFocusTrap"),on=R(),kt=R(0),rn=R(0);let vt=0;const Mo=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0||o===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},Dn=(e,t)=>{for(const n of e)if(!Rs(n,t))return n},Rs=(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},Ms=e=>{const t=Mo(e),n=Dn(t,e),o=Dn(t.reverse(),e);return[n,o]},Ns=e=>e instanceof HTMLInputElement&&"select"in e,Ae=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),rn.value=window.performance.now(),e!==n&&Ns(e)&&t&&e.select()}};function Hn(e,t){const n=[...e],o=e.indexOf(t);return o!==-1&&n.splice(o,1),n}const Ps=()=>{let e=[];return{push:o=>{const r=e[0];r&&o!==r&&r.pause(),e=Hn(e,o),e.unshift(o)},remove:o=>{var r,a;e=Hn(e,o),(a=(r=e[0])==null?void 0:r.resume)==null||a.call(r)}}},Fs=(e,t=!1)=>{const n=document.activeElement;for(const o of e)if(Ae(o,t),document.activeElement!==n)return},Un=Ps(),Ls=()=>kt.value>rn.value,mt=()=>{on.value="pointer",kt.value=window.performance.now()},zn=()=>{on.value="keyboard",kt.value=window.performance.now()},Bs=()=>(Ce(()=>{vt===0&&(document.addEventListener("mousedown",mt),document.addEventListener("touchstart",mt),document.addEventListener("keydown",zn)),vt++}),he(()=>{vt--,vt<=0&&(document.removeEventListener("mousedown",mt),document.removeEventListener("touchstart",mt),document.removeEventListener("keydown",zn))}),{focusReason:on,lastUserFocusTimestamp:kt,lastAutomatedFocusTimestamp:rn}),gt=e=>new CustomEvent(Os,{...As,detail:e}),$s=j({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[jn,xn,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=R();let o,r;const{focusReason:a}=Bs();qa(p=>{e.trapped&&!s.paused&&t("release-requested",p)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},i=p=>{if(!e.loop&&!e.trapped||s.paused)return;const{key:b,altKey:y,ctrlKey:c,metaKey:S,currentTarget:k,shiftKey:f}=p,{loop:h}=e,E=b===H.tab&&!y&&!c&&!S,d=document.activeElement;if(E&&d){const _=k,[C,A]=Ms(_);if(C&&A){if(!f&&d===A){const M=gt({focusReason:a.value});t("focusout-prevented",M),M.defaultPrevented||(p.preventDefault(),h&&Ae(C,!0))}else if(f&&[C,_].includes(d)){const M=gt({focusReason:a.value});t("focusout-prevented",M),M.defaultPrevented||(p.preventDefault(),h&&Ae(A,!0))}}else if(d===_){const M=gt({focusReason:a.value});t("focusout-prevented",M),M.defaultPrevented||p.preventDefault()}}};le(Ro,{focusTrapRef:n,onKeydown:i}),z(()=>e.focusTrapEl,p=>{p&&(n.value=p)},{immediate:!0}),z([n],([p],[b])=>{p&&(p.addEventListener("keydown",i),p.addEventListener("focusin",w),p.addEventListener("focusout",v)),b&&(b.removeEventListener("keydown",i),b.removeEventListener("focusin",w),b.removeEventListener("focusout",v))});const l=p=>{t(jn,p)},u=p=>t(xn,p),w=p=>{const b=g(n);if(!b)return;const y=p.target,c=p.relatedTarget,S=y&&b.contains(y);e.trapped||c&&b.contains(c)||(o=c),S&&t("focusin",p),!s.paused&&e.trapped&&(S?r=y:Ae(r,!0))},v=p=>{const b=g(n);if(!(s.paused||!b))if(e.trapped){const y=p.relatedTarget;!Ut(y)&&!b.contains(y)&&setTimeout(()=>{if(!s.paused&&e.trapped){const c=gt({focusReason:a.value});t("focusout-prevented",c),c.defaultPrevented||Ae(r,!0)}},0)}else{const y=p.target;y&&b.contains(y)||t("focusout",p)}};async function T(){await at();const p=g(n);if(p){Un.push(s);const b=p.contains(document.activeElement)?o:document.activeElement;if(o=b,!p.contains(b)){const c=new Event(Rt,$n);p.addEventListener(Rt,l),p.dispatchEvent(c),c.defaultPrevented||at(()=>{let S=e.focusStartEl;sr(S)||(Ae(S),document.activeElement!==S&&(S="first")),S==="first"&&Fs(Mo(p),!0),(document.activeElement===b||S==="container")&&Ae(p)})}}}function m(){const p=g(n);if(p){p.removeEventListener(Rt,l);const b=new CustomEvent(Mt,{...$n,detail:{focusReason:a.value}});p.addEventListener(Mt,u),p.dispatchEvent(b),!b.defaultPrevented&&(a.value=="keyboard"||!Ls()||p.contains(document.activeElement))&&Ae(o??document.body),p.removeEventListener(Mt,u),Un.remove(s)}}return Ce(()=>{e.trapped&&T(),z(()=>e.trapped,p=>{p?T():m()})}),he(()=>{e.trapped&&m()}),{onKeydown:i}}});function js(e,t,n,o,r,a){return K(e.$slots,"default",{handleKeydown:e.onKeydown})}var xs=V($s,[["render",js],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const Ds=["fixed","absolute"],Hs=Q({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:$(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Vt,default:"bottom"},popperOptions:{type:$(Object),default:()=>({})},strategy:{type:String,values:Ds,default:"absolute"}}),No=Q({...Hs,id:String,style:{type:$([String,Array,Object])},className:{type:$([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:$([String,Array,Object])},popperStyle:{type:$([String,Array,Object])},referenceEl:{type:$(Object)},triggerTargetEl:{type:$(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),Us={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},zs=(e,t=[])=>{const{placement:n,strategy:o,popperOptions:r}=e,a={placement:n,strategy:o,...r,modifiers:[...Gs(e),...t]};return Ws(a,r==null?void 0:r.modifiers),a},Ks=e=>{if(Ne)return so(e)};function Gs(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:o}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:o}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function Ws(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const Ys=0,Vs=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:o,role:r}=U(nn,void 0),a=R(),s=R(),i=O(()=>({name:"eventListeners",enabled:!!e.visible})),l=O(()=>{var c;const S=g(a),k=(c=g(s))!=null?c:Ys;return{name:"arrow",enabled:!Hr(S),options:{element:S,padding:k}}}),u=O(()=>({onFirstUpdate:()=>{p()},...zs(e,[g(l),g(i)])})),w=O(()=>Ks(e.referenceEl)||g(o)),{attributes:v,state:T,styles:m,update:p,forceUpdate:b,instanceRef:y}=Ya(w,n,u);return z(y,c=>t.value=c),Ce(()=>{z(()=>{var c;return(c=g(w))==null?void 0:c.getBoundingClientRect()},()=>{p()})}),{attributes:v,arrowRef:a,contentRef:n,instanceRef:y,state:T,styles:m,role:r,forceUpdate:b,update:p}},qs=(e,{attributes:t,styles:n,role:o})=>{const{nextZIndex:r}=Ir(),a=ce("popper"),s=O(()=>g(t).popper),i=R(Re(e.zIndex)?e.zIndex:r()),l=O(()=>[a.b(),a.is("pure",e.pure),a.is(e.effect),e.popperClass]),u=O(()=>[{zIndex:g(i)},g(n).popper,e.popperStyle||{}]),w=O(()=>o.value==="dialog"?"false":void 0),v=O(()=>g(n).arrow||{});return{ariaModal:w,arrowStyle:v,contentAttrs:s,contentClass:l,contentStyle:u,contentZIndex:i,updateZIndex:()=>{i.value=Re(e.zIndex)?e.zIndex:r()}}},Js=(e,t)=>{const n=R(!1),o=R();return{focusStartRef:o,trapped:n,onFocusAfterReleased:u=>{var w;((w=u.detail)==null?void 0:w.focusReason)!=="pointer"&&(o.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:u=>{e.visible&&!n.value&&(u.target&&(o.value=u.target),n.value=!0)},onFocusoutPrevented:u=>{e.trapping||(u.detail.focusReason==="pointer"&&u.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},Zs=j({name:"ElPopperContent"}),Xs=j({...Zs,props:No,emits:Us,setup(e,{expose:t,emit:n}){const o=e,{focusStartRef:r,trapped:a,onFocusAfterReleased:s,onFocusAfterTrapped:i,onFocusInTrap:l,onFocusoutPrevented:u,onReleaseRequested:w}=Js(o,n),{attributes:v,arrowRef:T,contentRef:m,styles:p,instanceRef:b,role:y,update:c}=Vs(o),{ariaModal:S,arrowStyle:k,contentAttrs:f,contentClass:h,contentStyle:E,updateZIndex:d}=qs(o,{styles:p,attributes:v,role:y}),_=U(yn,void 0),C=R();le(Io,{arrowStyle:k,arrowRef:T,arrowOffset:C}),_&&(_.addInputId||_.removeInputId)&&le(yn,{..._,addInputId:Lt,removeInputId:Lt});let A;const N=(F=!0)=>{c(),F&&d()},M=()=>{N(!1),o.visible&&o.focusOnShow?a.value=!0:o.visible===!1&&(a.value=!1)};return Ce(()=>{z(()=>o.triggerTargetEl,(F,L)=>{A==null||A(),A=void 0;const G=g(F||m.value),D=g(L||m.value);Et(G)&&(A=z([y,()=>o.ariaLabel,S,()=>o.id],I=>{["role","aria-label","aria-modal","id"].forEach((x,W)=>{Ut(I[W])?G.removeAttribute(x):G.setAttribute(x,I[W])})},{immediate:!0})),D!==G&&Et(D)&&["role","aria-label","aria-modal","id"].forEach(I=>{D.removeAttribute(I)})},{immediate:!0}),z(()=>o.visible,M,{immediate:!0})}),he(()=>{A==null||A(),A=void 0}),t({popperContentRef:m,popperInstanceRef:b,updatePopper:N,contentStyle:E}),(F,L)=>(P(),Z("div",Te({ref_key:"contentRef",ref:m},g(f),{style:g(E),class:g(h),tabindex:"-1",onMouseenter:L[0]||(L[0]=G=>F.$emit("mouseenter",G)),onMouseleave:L[1]||(L[1]=G=>F.$emit("mouseleave",G))}),[q(g(xs),{trapped:g(a),"trap-on-focus-in":!0,"focus-trap-el":g(m),"focus-start-el":g(r),onFocusAfterTrapped:g(i),onFocusAfterReleased:g(s),onFocusin:g(l),onFocusoutPrevented:g(u),onReleaseRequested:g(w)},{default:B(()=>[K(F.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var Qs=V(Xs,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const ei=lt(ws),an=Symbol("elTooltip"),It=Q({...Xa,...No,appendTo:{type:$([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:$(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),sn=Q({...Ao,disabled:Boolean,trigger:{type:$([String,Array]),default:"hover"},triggerKeys:{type:$(Array),default:()=>[H.enter,H.space]}}),{useModelToggleProps:ti,useModelToggleEmits:ni,useModelToggle:oi}=lo("visible"),ri=Q({...To,...ti,...It,...sn,...ko,showArrow:{type:Boolean,default:!0}}),ai=[...ni,"before-show","before-hide","show","hide","open","close"],si=(e,t)=>ir(e)?e.includes(t):e===t,He=(e,t,n)=>o=>{si(g(e),t)&&n(o)},ii=j({name:"ElTooltipTrigger"}),li=j({...ii,props:sn,setup(e,{expose:t}){const n=e,o=ce("tooltip"),{controlled:r,id:a,open:s,onOpen:i,onClose:l,onToggle:u}=U(an,void 0),w=R(null),v=()=>{if(g(r)||n.disabled)return!0},T=re(n,"trigger"),m=J(v,He(T,"hover",i)),p=J(v,He(T,"hover",l)),b=J(v,He(T,"click",f=>{f.button===0&&u(f)})),y=J(v,He(T,"focus",i)),c=J(v,He(T,"focus",l)),S=J(v,He(T,"contextmenu",f=>{f.preventDefault(),u(f)})),k=J(v,f=>{const{code:h}=f;n.triggerKeys.includes(h)&&(f.preventDefault(),u(f))});return t({triggerRef:w}),(f,h)=>(P(),Y(g(Cs),{id:g(a),"virtual-ref":f.virtualRef,open:g(s),"virtual-triggering":f.virtualTriggering,class:ae(g(o).e("trigger")),onBlur:g(c),onClick:g(b),onContextmenu:g(S),onFocus:g(y),onMouseenter:g(m),onMouseleave:g(p),onKeydown:g(k)},{default:B(()=>[K(f.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var ui=V(li,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const ci=j({name:"ElTooltipContent",inheritAttrs:!1}),di=j({...ci,props:It,setup(e,{expose:t}){const n=e,{selector:o}=Eo(),r=ce("tooltip"),a=R(null),s=R(!1),{controlled:i,id:l,open:u,trigger:w,onClose:v,onOpen:T,onShow:m,onHide:p,onBeforeShow:b,onBeforeHide:y}=U(an,void 0),c=O(()=>n.transition||`${r.namespace.value}-fade-in-linear`),S=O(()=>n.persistent);he(()=>{s.value=!0});const k=O(()=>g(S)?!0:g(u)),f=O(()=>n.disabled?!1:g(u)),h=O(()=>n.appendTo||o.value),E=O(()=>{var I;return(I=n.style)!=null?I:{}}),d=O(()=>!g(u)),_=()=>{p()},C=()=>{if(g(i))return!0},A=J(C,()=>{n.enterable&&g(w)==="hover"&&T()}),N=J(C,()=>{g(w)==="hover"&&v()}),M=()=>{var I,x;(x=(I=a.value)==null?void 0:I.updatePopper)==null||x.call(I),b==null||b()},F=()=>{y==null||y()},L=()=>{m(),D=Tr(O(()=>{var I;return(I=a.value)==null?void 0:I.popperContentRef}),()=>{if(g(i))return;g(w)!=="hover"&&v()})},G=()=>{n.virtualTriggering||v()};let D;return z(()=>g(u),I=>{I||D==null||D()},{flush:"post"}),z(()=>n.content,()=>{var I,x;(x=(I=a.value)==null?void 0:I.updatePopper)==null||x.call(I)}),t({contentRef:a}),(I,x)=>(P(),Y(lr,{disabled:!I.teleported,to:g(h)},[q(Qn,{name:g(c),onAfterLeave:_,onBeforeEnter:M,onAfterEnter:L,onBeforeLeave:F},{default:B(()=>[g(k)?Gt((P(),Y(g(Qs),Te({key:0,id:g(l),ref_key:"contentRef",ref:a},I.$attrs,{"aria-label":I.ariaLabel,"aria-hidden":g(d),"boundaries-padding":I.boundariesPadding,"fallback-placements":I.fallbackPlacements,"gpu-acceleration":I.gpuAcceleration,offset:I.offset,placement:I.placement,"popper-options":I.popperOptions,strategy:I.strategy,effect:I.effect,enterable:I.enterable,pure:I.pure,"popper-class":I.popperClass,"popper-style":[I.popperStyle,g(E)],"reference-el":I.referenceEl,"trigger-target-el":I.triggerTargetEl,visible:g(f),"z-index":I.zIndex,onMouseenter:g(A),onMouseleave:g(N),onBlur:G,onClose:g(v)}),{default:B(()=>[s.value?pe("v-if",!0):K(I.$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","onClose"])),[[Xn,g(f)]]):pe("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var fi=V(di,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const pi=["innerHTML"],vi={key:1},mi=j({name:"ElTooltip"}),gi=j({...mi,props:ri,emits:ai,setup(e,{expose:t,emit:n}){const o=e;Za();const r=zt(),a=R(),s=R(),i=()=>{var c;const S=g(a);S&&((c=S.popperInstanceRef)==null||c.update())},l=R(!1),u=R(),{show:w,hide:v,hasUpdateHandler:T}=oi({indicator:l,toggleReason:u}),{onOpen:m,onClose:p}=Qa({showAfter:re(o,"showAfter"),hideAfter:re(o,"hideAfter"),autoClose:re(o,"autoClose"),open:w,close:v}),b=O(()=>ao(o.visible)&&!T.value);le(an,{controlled:b,id:r,open:oo(l),trigger:re(o,"trigger"),onOpen:c=>{m(c)},onClose:c=>{p(c)},onToggle:c=>{g(l)?p(c):m(c)},onShow:()=>{n("show",u.value)},onHide:()=>{n("hide",u.value)},onBeforeShow:()=>{n("before-show",u.value)},onBeforeHide:()=>{n("before-hide",u.value)},updatePopper:i}),z(()=>o.disabled,c=>{c&&l.value&&(l.value=!1)});const y=c=>{var S,k;const f=(k=(S=s.value)==null?void 0:S.contentRef)==null?void 0:k.popperContentRef,h=(c==null?void 0:c.relatedTarget)||document.activeElement;return f&&f.contains(h)};return ur(()=>l.value&&v()),t({popperRef:a,contentRef:s,isFocusInsideContent:y,updatePopper:i,onOpen:m,onClose:p,hide:v}),(c,S)=>(P(),Y(g(ei),{ref_key:"popperRef",ref:a,role:c.role},{default:B(()=>[q(ui,{disabled:c.disabled,trigger:c.trigger,"trigger-keys":c.triggerKeys,"virtual-ref":c.virtualRef,"virtual-triggering":c.virtualTriggering},{default:B(()=>[c.$slots.default?K(c.$slots,"default",{key:0}):pe("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),q(fi,{ref_key:"contentRef",ref:s,"aria-label":c.ariaLabel,"boundaries-padding":c.boundariesPadding,content:c.content,disabled:c.disabled,effect:c.effect,enterable:c.enterable,"fallback-placements":c.fallbackPlacements,"hide-after":c.hideAfter,"gpu-acceleration":c.gpuAcceleration,offset:c.offset,persistent:c.persistent,"popper-class":c.popperClass,"popper-style":c.popperStyle,placement:c.placement,"popper-options":c.popperOptions,pure:c.pure,"raw-content":c.rawContent,"reference-el":c.referenceEl,"trigger-target-el":c.triggerTargetEl,"show-after":c.showAfter,strategy:c.strategy,teleported:c.teleported,transition:c.transition,"virtual-triggering":c.virtualTriggering,"z-index":c.zIndex,"append-to":c.appendTo},{default:B(()=>[K(c.$slots,"content",{},()=>[c.rawContent?(P(),Z("span",{key:0,innerHTML:c.content},null,8,pi)):(P(),Z("span",vi,et(c.content),1))]),c.showArrow?(P(),Y(g(Ss),{key:0,"arrow-offset":c.arrowOffset},null,8,["arrow-offset"])):pe("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 hi=V(gi,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const bi=lt(hi),Po=Symbol("buttonGroupContextKey"),yi=(e,t)=>{Ur({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},O(()=>e.type==="text"));const n=U(Po,void 0),o=kr("button"),{form:r}=er(),a=Jn(O(()=>n==null?void 0:n.size)),s=Zn(),i=R(),l=cr(),u=O(()=>e.type||(n==null?void 0:n.type)||""),w=O(()=>{var p,b,y;return(y=(b=e.autoInsertSpace)!=null?b:(p=o.value)==null?void 0:p.autoInsertSpace)!=null?y:!1}),v=O(()=>e.tag==="button"?{ariaDisabled:s.value||e.loading,disabled:s.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),T=O(()=>{var p;const b=(p=l.default)==null?void 0:p.call(l);if(w.value&&(b==null?void 0:b.length)===1){const y=b[0];if((y==null?void 0:y.type)===no){const c=y.children;return/^\p{Unified_Ideograph}{2}$/u.test(c.trim())}}return!1});return{_disabled:s,_size:a,_type:u,_ref:i,_props:v,shouldAddSpace:T,handleClick:p=>{e.nativeType==="reset"&&(r==null||r.resetFields()),t("click",p)}}},wi=["default","primary","success","warning","info","danger","text",""],Ei=["button","submit","reset"],Dt=Q({size:Cr,disabled:Boolean,type:{type:String,values:wi,default:""},icon:{type:jt},nativeType:{type:String,values:Ei,default:"button"},loading:Boolean,loadingIcon:{type:jt,default:()=>Or},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:$([String,Object]),default:"button"}}),_i={click:e=>e instanceof MouseEvent};function X(e,t){Si(e)&&(e="100%");var n=Ii(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function ht(e){return Math.min(1,Math.max(0,e))}function Si(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Ii(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Fo(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function bt(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Le(e){return e.length===1?"0"+e:String(e)}function Ti(e,t,n){return{r:X(e,255)*255,g:X(t,255)*255,b:X(n,255)*255}}function Kn(e,t,n){e=X(e,255),t=X(t,255),n=X(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),a=0,s=0,i=(o+r)/2;if(o===r)s=0,a=0;else{var l=o-r;switch(s=i>.5?l/(2-o-r):l/(o+r),o){case e:a=(t-n)/l+(t<n?6:0);break;case t:a=(n-e)/l+2;break;case n:a=(e-t)/l+4;break}a/=6}return{h:a,s,l:i}}function Nt(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ki(e,t,n){var o,r,a;if(e=X(e,360),t=X(t,100),n=X(n,100),t===0)r=n,a=n,o=n;else{var s=n<.5?n*(1+t):n+t-n*t,i=2*n-s;o=Nt(i,s,e+1/3),r=Nt(i,s,e),a=Nt(i,s,e-1/3)}return{r:o*255,g:r*255,b:a*255}}function Gn(e,t,n){e=X(e,255),t=X(t,255),n=X(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),a=0,s=o,i=o-r,l=o===0?0:i/o;if(o===r)a=0;else{switch(o){case e:a=(t-n)/i+(t<n?6:0);break;case t:a=(n-e)/i+2;break;case n:a=(e-t)/i+4;break}a/=6}return{h:a,s:l,v:s}}function Ci(e,t,n){e=X(e,360)*6,t=X(t,100),n=X(n,100);var o=Math.floor(e),r=e-o,a=n*(1-t),s=n*(1-r*t),i=n*(1-(1-r)*t),l=o%6,u=[n,s,a,a,i,n][l],w=[i,n,n,s,a,a][l],v=[a,a,i,n,n,s][l];return{r:u*255,g:w*255,b:v*255}}function Wn(e,t,n,o){var r=[Le(Math.round(e).toString(16)),Le(Math.round(t).toString(16)),Le(Math.round(n).toString(16))];return o&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function Oi(e,t,n,o,r){var a=[Le(Math.round(e).toString(16)),Le(Math.round(t).toString(16)),Le(Math.round(n).toString(16)),Le(Ai(o))];return r&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function Ai(e){return Math.round(parseFloat(e)*255).toString(16)}function Yn(e){return ue(e)/255}function ue(e){return parseInt(e,16)}function Ri(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Ht={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Mi(e){var t={r:0,g:0,b:0},n=1,o=null,r=null,a=null,s=!1,i=!1;return typeof e=="string"&&(e=Fi(e)),typeof e=="object"&&(Ie(e.r)&&Ie(e.g)&&Ie(e.b)?(t=Ti(e.r,e.g,e.b),s=!0,i=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ie(e.h)&&Ie(e.s)&&Ie(e.v)?(o=bt(e.s),r=bt(e.v),t=Ci(e.h,o,r),s=!0,i="hsv"):Ie(e.h)&&Ie(e.s)&&Ie(e.l)&&(o=bt(e.s),a=bt(e.l),t=ki(e.h,o,a),s=!0,i="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Fo(n),{ok:s,format:e.format||i,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var Ni="[-\\+]?\\d+%?",Pi="[-\\+]?\\d*\\.\\d+%?",Me="(?:".concat(Pi,")|(?:").concat(Ni,")"),Pt="[\\s|\\(]+(".concat(Me,")[,|\\s]+(").concat(Me,")[,|\\s]+(").concat(Me,")\\s*\\)?"),Ft="[\\s|\\(]+(".concat(Me,")[,|\\s]+(").concat(Me,")[,|\\s]+(").concat(Me,")[,|\\s]+(").concat(Me,")\\s*\\)?"),ge={CSS_UNIT:new RegExp(Me),rgb:new RegExp("rgb"+Pt),rgba:new RegExp("rgba"+Ft),hsl:new RegExp("hsl"+Pt),hsla:new RegExp("hsla"+Ft),hsv:new RegExp("hsv"+Pt),hsva:new RegExp("hsva"+Ft),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Fi(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Ht[e])e=Ht[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=ge.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=ge.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=ge.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=ge.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=ge.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=ge.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=ge.hex8.exec(e),n?{r:ue(n[1]),g:ue(n[2]),b:ue(n[3]),a:Yn(n[4]),format:t?"name":"hex8"}:(n=ge.hex6.exec(e),n?{r:ue(n[1]),g:ue(n[2]),b:ue(n[3]),format:t?"name":"hex"}:(n=ge.hex4.exec(e),n?{r:ue(n[1]+n[1]),g:ue(n[2]+n[2]),b:ue(n[3]+n[3]),a:Yn(n[4]+n[4]),format:t?"name":"hex8"}:(n=ge.hex3.exec(e),n?{r:ue(n[1]+n[1]),g:ue(n[2]+n[2]),b:ue(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Ie(e){return!!ge.CSS_UNIT.exec(String(e))}var Li=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var o;if(t instanceof e)return t;typeof t=="number"&&(t=Ri(t)),this.originalInput=t;var r=Mi(t);this.originalInput=t,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=(o=n.format)!==null&&o!==void 0?o:r.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=r.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,o,r,a=t.r/255,s=t.g/255,i=t.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),.2126*n+.7152*o+.0722*r},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Fo(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Gn(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Gn(this.r,this.g,this.b),n=Math.round(t.h*360),o=Math.round(t.s*100),r=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(o,"%, ").concat(r,"%)"):"hsva(".concat(n,", ").concat(o,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Kn(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Kn(this.r,this.g,this.b),n=Math.round(t.h*360),o=Math.round(t.s*100),r=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(o,"%, ").concat(r,"%)"):"hsla(".concat(n,", ").concat(o,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Wn(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),Oi(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),o=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(o,")"):"rgba(".concat(t,", ").concat(n,", ").concat(o,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(X(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(X(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Wn(this.r,this.g,this.b,!1),n=0,o=Object.entries(Ht);n<o.length;n++){var r=o[n],a=r[0],s=r[1];if(t===s)return a}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var o=!1,r=this.a<1&&this.a>=0,a=!n&&r&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(o=this.toRgbString()),t==="prgb"&&(o=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(o=this.toHexString()),t==="hex3"&&(o=this.toHexString(!0)),t==="hex4"&&(o=this.toHex8String(!0)),t==="hex8"&&(o=this.toHex8String()),t==="name"&&(o=this.toName()),t==="hsl"&&(o=this.toHslString()),t==="hsv"&&(o=this.toHsvString()),o||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=ht(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=ht(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=ht(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=ht(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var o=this.toRgb(),r=new e(t).toRgb(),a=n/100,s={r:(r.r-o.r)*a+o.r,g:(r.g-o.g)*a+o.g,b:(r.b-o.b)*a+o.b,a:(r.a-o.a)*a+o.a};return new e(s)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var o=this.toHsl(),r=360/n,a=[this];for(o.h=(o.h-(r*t>>1)+720)%360;--t;)o.h=(o.h+r)%360,a.push(new e(o));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),o=n.h,r=n.s,a=n.v,s=[],i=1/t;t--;)s.push(new e({h:o,s:r,v:a})),a=(a+i)%1;return s},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),o=new e(t).toRgb(),r=n.a+o.a*(1-n.a);return new e({r:(n.r*n.a+o.r*o.a*(1-n.a))/r,g:(n.g*n.a+o.g*o.a*(1-n.a))/r,b:(n.b*n.a+o.b*o.a*(1-n.a))/r,a:r})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),o=n.h,r=[this],a=360/t,s=1;s<t;s++)r.push(new e({h:(o+s*a)%360,s:n.s,l:n.l}));return r},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function Oe(e,t=20){return e.mix("#141414",t).toString()}function Bi(e){const t=Zn(),n=ce("button");return O(()=>{let o={};const r=e.color;if(r){const a=new Li(r),s=e.dark?a.tint(20).toString():Oe(a,20);if(e.plain)o=n.cssVarBlock({"bg-color":e.dark?Oe(a,90):a.tint(90).toString(),"text-color":r,"border-color":e.dark?Oe(a,50):a.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":r,"hover-border-color":r,"active-bg-color":s,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":s}),t.value&&(o[n.cssVarBlockName("disabled-bg-color")]=e.dark?Oe(a,90):a.tint(90).toString(),o[n.cssVarBlockName("disabled-text-color")]=e.dark?Oe(a,50):a.tint(50).toString(),o[n.cssVarBlockName("disabled-border-color")]=e.dark?Oe(a,80):a.tint(80).toString());else{const i=e.dark?Oe(a,30):a.tint(30).toString(),l=a.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(o=n.cssVarBlock({"bg-color":r,"text-color":l,"border-color":r,"hover-bg-color":i,"hover-text-color":l,"hover-border-color":i,"active-bg-color":s,"active-border-color":s}),t.value){const u=e.dark?Oe(a,50):a.tint(50).toString();o[n.cssVarBlockName("disabled-bg-color")]=u,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")]=u}}}return o})}const $i=j({name:"ElButton"}),ji=j({...$i,props:Dt,emits:_i,setup(e,{expose:t,emit:n}){const o=e,r=Bi(o),a=ce("button"),{_ref:s,_size:i,_type:l,_disabled:u,_props:w,shouldAddSpace:v,handleClick:T}=yi(o,n);return t({ref:s,size:i,type:l,disabled:u,shouldAddSpace:v}),(m,p)=>(P(),Y(tt(m.tag),Te({ref_key:"_ref",ref:s},g(w),{class:[g(a).b(),g(a).m(g(l)),g(a).m(g(i)),g(a).is("disabled",g(u)),g(a).is("loading",m.loading),g(a).is("plain",m.plain),g(a).is("round",m.round),g(a).is("circle",m.circle),g(a).is("text",m.text),g(a).is("link",m.link),g(a).is("has-bg",m.bg)],style:g(r),onClick:g(T)}),{default:B(()=>[m.loading?(P(),Z(Be,{key:0},[m.$slots.loading?K(m.$slots,"loading",{key:0}):(P(),Y(g(_t),{key:1,class:ae(g(a).is("loading"))},{default:B(()=>[(P(),Y(tt(m.loadingIcon)))]),_:1},8,["class"]))],64)):m.icon||m.$slots.icon?(P(),Y(g(_t),{key:1},{default:B(()=>[m.icon?(P(),Y(tt(m.icon),{key:0})):K(m.$slots,"icon",{key:1})]),_:3})):pe("v-if",!0),m.$slots.default?(P(),Z("span",{key:2,class:ae({[g(a).em("text","expand")]:g(v)})},[K(m.$slots,"default")],2)):pe("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var xi=V(ji,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const Di={size:Dt.size,type:Dt.type},Hi=j({name:"ElButtonGroup"}),Ui=j({...Hi,props:Di,setup(e){const t=e;le(Po,eo({size:re(t,"size"),type:re(t,"type")}));const n=ce("button");return(o,r)=>(P(),Z("div",{class:ae(`${g(n).b("group")}`)},[K(o.$slots,"default")],2))}});var Lo=V(Ui,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const Bo=lt(xi,{ButtonGroup:Lo});Wt(Lo);const zi=j({inheritAttrs:!1});function Ki(e,t,n,o,r,a){return K(e.$slots,"default")}var Gi=V(zi,[["render",Ki],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const Wi=j({name:"ElCollectionItem",inheritAttrs:!1});function Yi(e,t,n,o,r,a){return K(e.$slots,"default")}var Vi=V(Wi,[["render",Yi],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const $o="data-el-collection-item",jo=e=>{const t=`El${e}Collection`,n=`${t}Item`,o=Symbol(t),r=Symbol(n),a={...Gi,name:t,setup(){const i=R(null),l=new Map;le(o,{itemMap:l,getItems:()=>{const w=g(i);if(!w)return[];const v=Array.from(w.querySelectorAll(`[${$o}]`));return[...l.values()].sort((m,p)=>v.indexOf(m.ref)-v.indexOf(p.ref))},collectionRef:i})}},s={...Vi,name:n,setup(i,{attrs:l}){const u=R(null),w=U(o,void 0);le(r,{collectionItemRef:u}),Ce(()=>{const v=g(u);v&&w.itemMap.set(v,{ref:v,...l})}),he(()=>{const v=g(u);w.itemMap.delete(v)})}};return{COLLECTION_INJECTION_KEY:o,COLLECTION_ITEM_INJECTION_KEY:r,ElCollection:a,ElCollectionItem:s}},qi=Q({style:{type:$([String,Array,Object])},currentTabId:{type:$(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:$(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:Ji,ElCollectionItem:Zi,COLLECTION_INJECTION_KEY:ln,COLLECTION_ITEM_INJECTION_KEY:Xi}=jo("RovingFocusGroup"),un=Symbol("elRovingFocusGroup"),xo=Symbol("elRovingFocusGroupItem"),Qi={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},el=(e,t)=>{if(t!=="rtl")return e;switch(e){case H.right:return H.left;case H.left:return H.right;default:return e}},tl=(e,t,n)=>{const o=el(e.key,n);if(!(t==="vertical"&&[H.left,H.right].includes(o))&&!(t==="horizontal"&&[H.up,H.down].includes(o)))return Qi[o]},nl=(e,t)=>e.map((n,o)=>e[(o+t)%e.length]),cn=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},Vn="currentTabIdChange",qn="rovingFocusGroup.entryFocus",ol={bubbles:!1,cancelable:!0},rl=j({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:qi,emits:[Vn,"entryFocus"],setup(e,{emit:t}){var n;const o=R((n=e.currentTabId||e.defaultCurrentTabId)!=null?n:null),r=R(!1),a=R(!1),s=R(null),{getItems:i}=U(ln,void 0),l=O(()=>[{outline:"none"},e.style]),u=b=>{t(Vn,b)},w=()=>{r.value=!0},v=J(b=>{var y;(y=e.onMousedown)==null||y.call(e,b)},()=>{a.value=!0}),T=J(b=>{var y;(y=e.onFocus)==null||y.call(e,b)},b=>{const y=!g(a),{target:c,currentTarget:S}=b;if(c===S&&y&&!g(r)){const k=new Event(qn,ol);if(S==null||S.dispatchEvent(k),!k.defaultPrevented){const f=i().filter(C=>C.focusable),h=f.find(C=>C.active),E=f.find(C=>C.id===g(o)),_=[h,E,...f].filter(Boolean).map(C=>C.ref);cn(_)}}a.value=!1}),m=J(b=>{var y;(y=e.onBlur)==null||y.call(e,b)},()=>{r.value=!1}),p=(...b)=>{t("entryFocus",...b)};le(un,{currentTabbedId:oo(o),loop:re(e,"loop"),tabIndex:O(()=>g(r)?-1:0),rovingFocusGroupRef:s,rovingFocusGroupRootStyle:l,orientation:re(e,"orientation"),dir:re(e,"dir"),onItemFocus:u,onItemShiftTab:w,onBlur:m,onFocus:T,onMousedown:v}),z(()=>e.currentTabId,b=>{o.value=b??null}),wt(s,qn,p)}});function al(e,t,n,o,r,a){return K(e.$slots,"default")}var sl=V(rl,[["render",al],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);const il=j({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:Ji,ElRovingFocusGroupImpl:sl}});function ll(e,t,n,o,r,a){const s=ee("el-roving-focus-group-impl"),i=ee("el-focus-group-collection");return P(),Y(i,null,{default:B(()=>[q(s,dr(fr(e.$attrs)),{default:B(()=>[K(e.$slots,"default")]),_:3},16)]),_:3})}var ul=V(il,[["render",ll],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const cl=j({components:{ElRovingFocusCollectionItem:Zi},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:r,onItemShiftTab:a}=U(un,void 0),{getItems:s}=U(ln,void 0),i=zt(),l=R(null),u=J(m=>{t("mousedown",m)},m=>{e.focusable?r(g(i)):m.preventDefault()}),w=J(m=>{t("focus",m)},()=>{r(g(i))}),v=J(m=>{t("keydown",m)},m=>{const{key:p,shiftKey:b,target:y,currentTarget:c}=m;if(p===H.tab&&b){a();return}if(y!==c)return;const S=tl(m);if(S){m.preventDefault();let f=s().filter(h=>h.focusable).map(h=>h.ref);switch(S){case"last":{f.reverse();break}case"prev":case"next":{S==="prev"&&f.reverse();const h=f.indexOf(c);f=o.value?nl(f,h+1):f.slice(h+1);break}}at(()=>{cn(f)})}}),T=O(()=>n.value===g(i));return le(xo,{rovingFocusGroupItemRef:l,tabIndex:O(()=>g(T)?0:-1),handleMousedown:u,handleFocus:w,handleKeydown:v}),{id:i,handleKeydown:v,handleFocus:w,handleMousedown:u}}});function dl(e,t,n,o,r,a){const s=ee("el-roving-focus-collection-item");return P(),Y(s,{id:e.id,focusable:e.focusable,active:e.active},{default:B(()=>[K(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var fl=V(cl,[["render",dl],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const pl=Q({trigger:sn.trigger,effect:{...It.effect,default:"light"},type:{type:$(String)},placement:{type:$(String),default:"bottom"},popperOptions:{type:$(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:$([Number,String]),default:0},maxHeight:{type:$([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:$(Object)},teleported:It.teleported}),Do=Q({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:jt}}),vl=Q({onKeydown:{type:$(Function)}}),ml=[H.down,H.pageDown,H.home],Ho=[H.up,H.pageUp,H.end],gl=[...ml,...Ho],{ElCollection:hl,ElCollectionItem:bl,COLLECTION_INJECTION_KEY:yl,COLLECTION_ITEM_INJECTION_KEY:wl}=jo("Dropdown"),Ct=Symbol("elDropdown"),{ButtonGroup:El}=Bo,_l=j({name:"ElDropdown",components:{ElButton:Bo,ElButtonGroup:El,ElScrollbar:gs,ElDropdownCollection:hl,ElTooltip:bi,ElRovingFocusGroup:ul,ElOnlyChild:Co,ElIcon:_t,ArrowDown:Ar},props:pl,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=Kt(),o=ce("dropdown"),{t:r}=Rr(),a=R(),s=R(),i=R(null),l=R(null),u=R(null),w=R(null),v=R(!1),T=[H.enter,H.space,H.down],m=O(()=>({maxHeight:$t(e.maxHeight)})),p=O(()=>[o.m(h.value)]),b=O(()=>Dr(e.trigger)),y=zt().value,c=O(()=>e.id||y);z([a,b],([I,x],[W])=>{var oe,Se,ye;(oe=W==null?void 0:W.$el)!=null&&oe.removeEventListener&&W.$el.removeEventListener("pointerenter",d),(Se=I==null?void 0:I.$el)!=null&&Se.removeEventListener&&I.$el.removeEventListener("pointerenter",d),(ye=I==null?void 0:I.$el)!=null&&ye.addEventListener&&x.includes("hover")&&I.$el.addEventListener("pointerenter",d)},{immediate:!0}),he(()=>{var I,x;(x=(I=a.value)==null?void 0:I.$el)!=null&&x.removeEventListener&&a.value.$el.removeEventListener("pointerenter",d)});function S(){k()}function k(){var I;(I=i.value)==null||I.onClose()}function f(){var I;(I=i.value)==null||I.onOpen()}const h=Jn();function E(...I){t("command",...I)}function d(){var I,x;(x=(I=a.value)==null?void 0:I.$el)==null||x.focus()}function _(){}function C(){const I=g(l);b.value.includes("hover")&&(I==null||I.focus()),w.value=null}function A(I){w.value=I}function N(I){v.value||(I.preventDefault(),I.stopImmediatePropagation())}function M(){t("visible-change",!0)}function F(I){(I==null?void 0:I.type)==="keydown"&&l.value.focus()}function L(){t("visible-change",!1)}return le(Ct,{contentRef:l,role:O(()=>e.role),triggerId:c,isUsingKeyboard:v,onItemEnter:_,onItemLeave:C}),le("elDropdown",{instance:n,dropdownSize:h,handleClick:S,commandHandler:E,trigger:re(e,"trigger"),hideOnClick:re(e,"hideOnClick")}),{t:r,ns:o,scrollbar:u,wrapStyle:m,dropdownTriggerKls:p,dropdownSize:h,triggerId:c,triggerKeys:T,currentTabId:w,handleCurrentTabIdChange:A,handlerMainButtonClick:I=>{t("click",I)},handleEntryFocus:N,handleClose:k,handleOpen:f,handleBeforeShowTooltip:M,handleShowTooltip:F,handleBeforeHideTooltip:L,onFocusAfterTrapped:I=>{var x,W;I.preventDefault(),(W=(x=l.value)==null?void 0:x.focus)==null||W.call(x,{preventScroll:!0})},popperRef:i,contentRef:l,triggeringElementRef:a,referenceElementRef:s}}});function Sl(e,t,n,o,r,a){var s;const i=ee("el-dropdown-collection"),l=ee("el-roving-focus-group"),u=ee("el-scrollbar"),w=ee("el-only-child"),v=ee("el-tooltip"),T=ee("el-button"),m=ee("arrow-down"),p=ee("el-icon"),b=ee("el-button-group");return P(),Z("div",{class:ae([e.ns.b(),e.ns.is("disabled",e.disabled)])},[q(v,{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":(s=e.referenceElementRef)==null?void 0:s.$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:e.teleported,pure:"",persistent:"",onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},pr({content:B(()=>[q(u,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:B(()=>[q(l,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:B(()=>[q(i,null,{default:B(()=>[K(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:B(()=>[q(w,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:B(()=>[K(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","teleported","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(P(),Y(b,{key:0},{default:B(()=>[q(T,Te({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:B(()=>[K(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),q(T,Te({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:B(()=>[q(p,{class:ae(e.ns.e("icon"))},{default:B(()=>[q(m)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):pe("v-if",!0)],2)}var Il=V(_l,[["render",Sl],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const Tl=j({name:"DropdownItemImpl",components:{ElIcon:_t},props:Do,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=ce("dropdown"),{role:o}=U(Ct,void 0),{collectionItemRef:r}=U(wl,void 0),{collectionItemRef:a}=U(Xi,void 0),{rovingFocusGroupItemRef:s,tabIndex:i,handleFocus:l,handleKeydown:u,handleMousedown:w}=U(xo,void 0),v=io(r,a,s),T=O(()=>o.value==="menu"?"menuitem":o.value==="navigation"?"link":"button"),m=J(p=>{const{code:b}=p;if(b===H.enter||b===H.space)return p.preventDefault(),p.stopImmediatePropagation(),t("clickimpl",p),!0},u);return{ns:n,itemRef:v,dataset:{[$o]:""},role:T,tabIndex:i,handleFocus:l,handleKeydown:m,handleMousedown:w}}}),kl=["aria-disabled","tabindex","role"];function Cl(e,t,n,o,r,a){const s=ee("el-icon");return P(),Z(Be,null,[e.divided?(P(),Z("li",Te({key:0,role:"separator",class:e.ns.bem("menu","item","divided")},e.$attrs),null,16)):pe("v-if",!0),te("li",Te({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]=i=>e.$emit("clickimpl",i)),onFocus:t[1]||(t[1]=(...i)=>e.handleFocus&&e.handleFocus(...i)),onKeydown:t[2]||(t[2]=Bt((...i)=>e.handleKeydown&&e.handleKeydown(...i),["self"])),onMousedown:t[3]||(t[3]=(...i)=>e.handleMousedown&&e.handleMousedown(...i)),onPointermove:t[4]||(t[4]=i=>e.$emit("pointermove",i)),onPointerleave:t[5]||(t[5]=i=>e.$emit("pointerleave",i))}),[e.icon?(P(),Y(s,{key:0},{default:B(()=>[(P(),Y(tt(e.icon)))]),_:1})):pe("v-if",!0),K(e.$slots,"default")],16,kl)],64)}var Ol=V(Tl,[["render",Cl],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const Uo=()=>{const e=U("elDropdown",{}),t=O(()=>e==null?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},Al=j({name:"ElDropdownItem",components:{ElDropdownCollectionItem:bl,ElRovingFocusItem:fl,ElDropdownItemImpl:Ol},inheritAttrs:!1,props:Do,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:o}=Uo(),r=Kt(),a=R(null),s=O(()=>{var m,p;return(p=(m=g(a))==null?void 0:m.textContent)!=null?p:""}),{onItemEnter:i,onItemLeave:l}=U(Ct,void 0),u=J(m=>(t("pointermove",m),m.defaultPrevented),_n(m=>{if(e.disabled){l(m);return}const p=m.currentTarget;p===document.activeElement||p.contains(document.activeElement)||(i(m),m.defaultPrevented||p==null||p.focus())})),w=J(m=>(t("pointerleave",m),m.defaultPrevented),_n(m=>{l(m)})),v=J(m=>{if(!e.disabled)return t("click",m),m.type!=="keydown"&&m.defaultPrevented},m=>{var p,b,y;if(e.disabled){m.stopImmediatePropagation();return}(p=o==null?void 0:o.hideOnClick)!=null&&p.value&&((b=o.handleClick)==null||b.call(o)),(y=o.commandHandler)==null||y.call(o,e.command,r,m)}),T=O(()=>({...e,...n}));return{handleClick:v,handlePointerMove:u,handlePointerLeave:w,textContent:s,propsAndAttrs:T}}});function Rl(e,t,n,o,r,a){var s;const i=ee("el-dropdown-item-impl"),l=ee("el-roving-focus-item"),u=ee("el-dropdown-collection-item");return P(),Y(u,{disabled:e.disabled,"text-value":(s=e.textValue)!=null?s:e.textContent},{default:B(()=>[q(l,{focusable:!e.disabled},{default:B(()=>[q(i,Te(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:B(()=>[K(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var zo=V(Al,[["render",Rl],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const Ml=j({name:"ElDropdownMenu",props:vl,setup(e){const t=ce("dropdown"),{_elDropdownSize:n}=Uo(),o=n.value,{focusTrapRef:r,onKeydown:a}=U(Ro,void 0),{contentRef:s,role:i,triggerId:l}=U(Ct,void 0),{collectionRef:u,getItems:w}=U(yl,void 0),{rovingFocusGroupRef:v,rovingFocusGroupRootStyle:T,tabIndex:m,onBlur:p,onFocus:b,onMousedown:y}=U(un,void 0),{collectionRef:c}=U(ln,void 0),S=O(()=>[t.b("menu"),t.bm("menu",o==null?void 0:o.value)]),k=io(s,u,r,v,c),f=J(E=>{var d;(d=e.onKeydown)==null||d.call(e,E)},E=>{const{currentTarget:d,code:_,target:C}=E;if(d.contains(C),H.tab===_&&E.stopImmediatePropagation(),E.preventDefault(),C!==g(s)||!gl.includes(_))return;const N=w().filter(M=>!M.disabled).map(M=>M.ref);Ho.includes(_)&&N.reverse(),cn(N)});return{size:o,rovingFocusGroupRootStyle:T,tabIndex:m,dropdownKls:S,role:i,triggerId:l,dropdownListWrapperRef:k,handleKeydown:E=>{f(E),a(E)},onBlur:p,onFocus:b,onMousedown:y}}}),Nl=["role","aria-labelledby"];function Pl(e,t,n,o,r,a){return P(),Z("ul",{ref:e.dropdownListWrapperRef,class:ae(e.dropdownKls),style:rt(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:t[0]||(t[0]=(...s)=>e.onBlur&&e.onBlur(...s)),onFocus:t[1]||(t[1]=(...s)=>e.onFocus&&e.onFocus(...s)),onKeydown:t[2]||(t[2]=Bt((...s)=>e.handleKeydown&&e.handleKeydown(...s),["self"])),onMousedown:t[3]||(t[3]=Bt((...s)=>e.onMousedown&&e.onMousedown(...s),["self"]))},[K(e.$slots,"default")],46,Nl)}var Ko=V(Ml,[["render",Pl],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);const Fl=lt(Il,{DropdownItem:zo,DropdownMenu:Ko}),Ll=Wt(zo),Bl=Wt(Ko);const $l="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAABU0lEQVQ4jZ3UvUodYRDG8V+MGiRCFEFUUCI2uRHFQgstTMQyJF0q2xBIE7yAXIEXYNIJIiIiNqJY2CWNVYp8aIoYDdG12Fl80XP27NkHpnlm5r8z+767NNcLfMIpsohf+By5yprD9wRyhgMc4nfin2KxFWwlaXiPiQY1T/E2qVvFwzLYPkYrbDIUk2foupucjMRRBVAlnQWwr82+xxpMNx+wDzUG2YveZ6m5HmZ/DeBM9P7FeGFeyleuq6mA/sBoJ7rdP4wh+TqDuCqBZTjBOQZw3JkkUl1HXOJBCbCoKzgX8B8/S5paaToG+oZh2AzjSQ3YgttvfLgwn4f5rgZwR/7+xu4m/gS0p03gvUtdaDaAe20CS/UxoFvyK9BKvdjFP03+Nik0wzJGGtQM4o38fmZYQ0fZk5fk96kAf8VGxJfEv8LLCpuAR3iF7QRQxC5ea3KAN/nLYzHatgxtAAAAAElFTkSuQmCC";const Go=e=>(br("data-v-2ec8ecab"),e=e(),yr(),e),jl={id:"power-home"},xl={class:"header"},Dl=Go(()=>te("div",{class:"title font-ht"},"应用赋能中台",-1)),Hl={class:"more-t"},Ul={key:0,class:"more-t-item"},zl={class:"more-t-item"},Kl={key:2,class:"line"},Gl={class:"user-info"},Wl={class:"user-name"},Yl=Go(()=>te("div",{class:"des"},[te("div",null,"上海市CIM平台提供GIS、BIM、IOT、AI算法等应用赋能服务,提供各类API使用案例,"),te("div",null,"全面支撑上海数字化转型发展。")],-1)),Vl={__name:"PowerHome",setup(e){const t=mr();function n(y,c){Pr(v.loginInfo.username,At(v.loginInfo.psd),y).then(S=>{var k=S.msg;if(k.length==0){ne({type:"warning",message:"登录信息已失效!"});return}var f=k[0].Rows;if(y=="3"){var h=f[0].USERID,E=f[0].USERNAME,d=f[0].UNIT,_=f[0].UNIT_NAME,C=f[0].LAST_TIME,A=f[0].CHANGE_TIME,N=f[0].ROLE_LIST,M=f[0].TEMPUSERKEYCODE,F=f[0].ROLE_UUID,L=f[0].CHANGE_TIME;localStorage.setItem("zhfx_usercode",h),localStorage.setItem("zhfx_username",E),localStorage.setItem("zhfx_unitcode",d),localStorage.setItem("zhfx_unitname",_),localStorage.setItem("zhfx_lasttime",C),localStorage.setItem("zhfx_role",N),localStorage.setItem("zhfx_userkeycode",M),localStorage.setItem("zhfx_changetime",A),localStorage.setItem("zhfx_role_uuid",F),localStorage.setItem("zhfx_changetime",L),window.open(c);return}}).catch(S=>{ne({type:"error",message:"登录失败"})})}function o(y,c){debugger;if(console.log("点击",y,c),!y.isZi){window.open(y.linkHref,y.linkHref);return}console.log("进入了",c);let S=c?y.loginPage:y.linkHref;if(c){window.open(S,S);return}debugger;switch(y.moduleId){case"569":w(2,S);break;case"538":w(1,S);break;case"570":i(0,S);break;case"116":i(1,S);break;case"51":i(2,S);break;case"571":n(3,S);break;case"572":break;case"573":break;case"574":break;case"575":break;case"576":i(9,S);break;case"577":break;case"578":break;case"579":n(3,S);break;case"663":w(9,S);break}}function r(y){let c={unit_id:localStorage.getItem("ywxt_unitcode")};xr(c).then(S=>{let k=S.msg;if(k.length==0){ne({type:"error",message:"获取所属行业失败!"});return}if(k[0].TotalRowCount=="0"){ne({type:"error",message:"获取所属行业失败!"});return}let h=k[0].Rows;if(h.length==0){ne({type:"error",message:"获取所属行业失败!"});return}let E=[];for(var d=0;d<h.length;d++)E.push({code:h[d].CODE,name:h[d].NAME});for(var _="",d=0;d<E.length;d++)_+="code:"+E[d].code+",name:"+E[d].name+";";_=_.substring(0,_.length-1),localStorage.setItem("ywxt_unitclass",_),window.open(y,y)})}function a(y,c,S,k,f){var h={UNIT:y,userid:c,PLATE:S,OPERATION:k,OPERATIONRESULT:f,appkey:localStorage.getItem("ywxt_userkeycode")};Fr(h).then(E=>{})}function s(y,c,S,k,f){Lr({CODE:y,USERKEYCODE:c,LOGIN_LOCK:S,LOGIN_TYPE:k}).then(E=>{Br(E,()=>{let d=f==="http://10.81.66.8:8080/CSTJNEWWebsite/#/infoHome"?f+"?appkey="+c:f;window.open(d,d)})})}function i(y,c){Mr(v.loginInfo.username,At(v.loginInfo.psd),y).then(S=>{var k=S.msg;if(k.length==0){ne({type:"warning",message:"登录信息已失效!"});return}var f=k[0].Rows;if(y=="0"){var h=f[0].USERID,E=f[0].USERNAME;f[0].NAME;var d=f[0].UNIT,_=f[0].UNIT_NAME,C=f[0].LAST_TIME,A=f[0].ROLE_CODE,N=f[0].NAME,M=f[0].PHONE,F=f[0].MAIL,L=f[0].TEMPUSERKEYCODE;localStorage.setItem("zjw_usercode",h),localStorage.setItem("zjw_username",E),localStorage.setItem("zjw_unitcode",d),localStorage.setItem("zjw_unitname",_),localStorage.setItem("zjw_lasttime",C),localStorage.setItem("zjw_role",A),localStorage.setItem("zjw_name",N),localStorage.setItem("zjw_phone",M),localStorage.setItem("zjw_mail",F),localStorage.setItem("zjw_userkeycode",L),s(h,L,"1","0",c);return}if(y=="1"){var h=f[0].USERID,E=f[0].USERNAME;f[0].NAME;var d=f[0].UNIT,_=f[0].UNIT_NAME,C=f[0].LAST_TIME,G=f[0].CHANGE_TIME,A=f[0].ROLE_CODE,L=f[0].TEMPUSERKEYCODE,D=f[0].QC,I=f[0].TYSHDM,x=f[0].HLWJ,W=f[0].ROLE_UUID;localStorage.setItem("yml_usercode",h),localStorage.setItem("yml_username",E),localStorage.setItem("yml_unitcode",d),localStorage.setItem("yml_unitname",_),localStorage.setItem("yml_lasttime",C),localStorage.setItem("yml_role",A),localStorage.setItem("yml_userkeycode",L),localStorage.setItem("yml_changetime",G),localStorage.setItem("zyml_role_uuid",W),localStorage.setItem("yml_qc",D),localStorage.setItem("yml_tyshdm",I),localStorage.setItem("hlwj",x),s(h,L,"1","1",c);return}if(y=="2"){var h=f[0].USERID,E=f[0].USERNAME;f[0].NAME;var d=f[0].UNIT,_=f[0].UNIT_NAME,C=f[0].LAST_TIME,oe=f[0].CHANGE_TIME,A=f[0].ROLE_CODE,L=f[0].TEMPUSERKEYCODE;localStorage.setItem("ptjk_usercode",h),localStorage.setItem("ptjk_username",E),localStorage.setItem("ptjk_unitcode",d),localStorage.setItem("ptjk_unitname",_),localStorage.setItem("ptjk_lasttime",C),localStorage.setItem("ptjk_changetime",oe),localStorage.setItem("ptjk_role",A),localStorage.setItem("ptjk_userkeycode",L),localStorage.setItem("ptjk-part",""),s(h,L,"1","2",c);return}if(y=="9"){var h=f[0].USERID,E=f[0].USERNAME,d=f[0].UNIT,_=f[0].UNIT_NAME,C=f[0].LAST_TIME,A=f[0].ROLE_CODE,N=f[0].NAME,M=f[0].PHONE,F=f[0].MAIL,L=f[0].TEMPUSERKEYCODE,oe=f[0].CHANGE_TIME;localStorage.setItem("cstj_usercode",h),localStorage.setItem("cstj_username",E),localStorage.setItem("cstj_unitcode",d),localStorage.setItem("cstj_unitname",_),localStorage.setItem("cstj_lasttime",C),localStorage.setItem("cstj_role",A),localStorage.setItem("cstj_name",N),localStorage.setItem("cstj_phone",M),localStorage.setItem("cstj_mail",F),localStorage.setItem("cstj_userkeycode",L),localStorage.setItem("cstj_changetime",oe),s(h,L,"1","9",c);return}}).catch(S=>{ne({type:"error",message:"登录失败"})})}function l(y,c){var S={user_id:y};jr(S).then(k=>{var f=k.msg;if(f.length==0){ne({type:"error",message:"获取用户权限失败!"});return}var h=f[0].TotalRowCount;if(h=="0"){ne({type:"error",message:"获取用户权限失败!"});return}var E=f[0].Rows;if(E.length==0){ne({type:"error",message:"获取用户权限失败!"});return}for(var d=[],_=0;_<E.length;_++)d.push({code:E[_].CODE,name:E[_].NAME,state:E[_].STATE});for(var C="",_=0;_<d.length;_++)C+="code:"+d[_].code+",name:"+d[_].name+",state:"+d[_].state+";";C=C.substring(0,C.length-1),localStorage.setItem("ywxt_module",C),r(c)})}function u(y,c){var S={user_id:y};$r(S).then(k=>{var f=k.msg;if(f.length==0){ne({type:"error",message:"获取用户角色失败!"});return}var h=f[0].TotalRowCount;if(h=="0"){ne({type:"error",message:"获取用户角色失败!"});return}var E=f[0].Rows;if(E.length==0){ne({type:"error",message:"获取用户角色失败!"});return}for(var d=[],_=0;_<E.length;_++)d.push({code:E[_].ROLE_ID,name:E[_].ROLE_NAME});for(var C="",_=0;_<d.length;_++)C+="code:"+d[_].code+",name:"+d[_].name+";";C=C.substring(0,C.length-1),localStorage.setItem("ywxt_userrole",C),l(y,c)})}function w(y,c,S){debugger;Nr(v.loginInfo.username,At(v.loginInfo.psd),y).then(k=>{debugger;let f=k.msg;if(f.length==0){ne({type:"warning",message:"登录信息失效"});return}let h=f[0].Rows;if(y=="1"){var E=h[0].USERID,d=h[0].UNIT,_=h[0].USERNAME;h[0].NAME;var C=h[0].PASSWORD,A=h[0].UNIT_NAME,N=h[0].CONTACT;h[0].SEX;var M=h[0].TELPHONE,F=h[0].MAIL,L=h[0].IS_IDENTIFY;h[0].TYPE;var G=h[0].TEMPUSERKEYCODE,D=h[0].CHANGE_TIME;const xe={ywxt_usercode:E,ywxt_username:_,ywxt_unitcode:d,ywxt_unitname:A,ywxt_contact:N,ywxt_telephone:M,ywxt_email:F,ywxt_identify:L,ywxt_userkeycode:G,ptjk_changetime:D,password:C};localStorage.setItem("loginUserInfoSpace",JSON.stringify(xe)),a(d,E,"运维系统-登录","登录系统成功","系统登录"),u(E,c);return}if(y=="2"){var E=h[0].USERID,_=h[0].USERNAME;h[0].NAME;var C=h[0].PASSWORD,d=h[0].UNIT,A=h[0].UNIT_NAME,N=h[0].CONTACT;h[0].SEX;var M=h[0].TELPHONE,F=h[0].MAIL,L=h[0].IS_IDENTIFY;h[0].TYPE;var G=h[0].TEMPUSERKEYCODE,I=h[0].CHANGE_TIME;const dt={gxjh_usercode:E,gxjh_username:_,gxjh_unitcode:d,gxjh_unitname:A,gxjh_contact:N?decode(N):"",gxjh_telephone:M?decode(M):"",gxjh_email:F?decode(F):"",gxjh_identify:L,gxjh_userkeycode:G,gxjh_changetime:I};localStorage.setItem("exchangeUserInfo",JSON.stringify(dt)),a(d,E,"浏览系统-登录","登录系统成功","系统登录"),window.open(c,c);return}if(y=="9"){var E=h[0].USERID,_=h[0].USERNAME,d=h[0].UNIT,A=h[0].UNIT_NAME,x=h[0].LAST_TIME,W=h[0].NAME,oe=h[0].PHONE,Se=h[0].MAIL,D=h[0].CHANGE_TIME,ye=h[0].UNIT_LEVEL,je=h[0].UNIT_LEVEL_NAME;debugger;var we=h[0].ROLE_LIST.map(Ze=>Ze.ROLE_ID).join(","),de=h[0].ROLE_LIST.map(Ze=>Ze.UUID).join(",");localStorage.setItem("cstj_usercode",E),localStorage.setItem("cstj_username",_),localStorage.setItem("cstj_unitcode",d),localStorage.setItem("cstj_unitname",A),localStorage.setItem("cstj_lasttime",x),localStorage.setItem("cstj_role",we),localStorage.setItem("cstj_role_uuid",de),localStorage.setItem("cstj_name",W),localStorage.setItem("cstj_phone",oe),localStorage.setItem("cstj_mail",Se),localStorage.setItem("cstj_changetime",D),localStorage.setItem("cstj_unit_level",ye),localStorage.setItem("cstj_unit_level_name",je);let Je={cstj_usercode:E,cstj_username:_,cstj_unitcode:d,cstj_unitname:A,cstj_lasttime:x,cstj_role:we,cstj_name:W,cstj_phone:oe,cstj_mail:Se,cstj_changetime:D,cstj_role_uuid:de};localStorage.setItem("cstjUserInfo",JSON.stringify(Je)),a(d,E,"城市体检-登录","登录系统成功","系统登录"),window.open(c,c);return}}).catch(k=>{ne({type:"error",message:"登录失败"})})}const v=gr(),T=R([{name:"GIS",children:[{name:"Geoscene工具"},{name:"cesium工具"}]},{name:"BIM",children:[{name:"轻量化"},{name:"可视化"},{name:"应用工具"}]},{name:"IOT",children:[{name:"视频分发"},{name:"IOT接入"}]},{name:"AI赋能",children:[{name:"文本识别算法"},{name:"图像识别算法"},{name:"视频识别算法"}]},{name:"应用系统",children:[{name:"上海市住建行业基础数据应用系统",isZi:!0,linkHref:"https://cimweb.zjw.sh.cegn.cn:2007/industry-database/#/visualizationHome/mainPage",loginPage:"https://cimweb.zjw.sh.cegn.cn:2007/urban-examine/#/visualizationHome/mainPage",moduleId:"569"},{name:"上海城市体检信息系统",isZi:!0,linkHref:"https://cimweb.zjw.sh.cegn.cn:2007/urban-examine/#/infoHome",loginPage:"https://cimweb.zjw.sh.cegn.cn:2007/urban-examine/#/login",moduleId:"663"},{name:"上海城市更新信息系统",moduleId:"653",linkHref:"https://cimweb.zjw.sh.cegn.cn:2007/urban-renew/#/home",loginPage:"https://cimweb.zjw.sh.cegn.cn:2007/urban-renew/#/home"},{name:"上海重大工程信息管理系统",moduleId:"655",linkHref:"http://10.86.133.76:8080/FGW_WEB_SZDB",loginPage:"http://10.86.133.76:8080/FGW_WEB_SZDB"},{name:"上海地下空间信息基础平台",moduleId:"656",linkHref:"http://10.81.73.104:8086",loginPage:"http://10.81.73.104:8086"},{name:"上海路面塌陷风险预警平台",moduleId:"657",linkHref:"http://10.81.73.104:8086/#/first/four",loginPage:"http://10.81.73.104:8086/#/first/four"},{name:"上海市农村路桥信息管理系统",moduleId:"658",linkHref:"http://10.83.244.180:8888",loginPage:"http://10.83.244.180:8888"},{name:"上海市农民相对集中居住管理系统",moduleId:"659",linkHref:"https://10.90.11.49:2005/cr/",loginPage:"https://10.90.11.49:2005/cr/"},{name:"上海市城市维护项目管理信息系统",disabled:!0},{name:"上海市售后工房维修资金管理业务系统",disabled:!0},{name:"上海市体育空间信息综合管理平台",moduleId:"661",linkHref:"http://10.81.66.1:8080/TYJShowNew/",loginPage:"http://10.81.66.1:8080/TYJShowNew/"},{name:"上海禁毒智能化管理服务预警平台",disabled:!0}]}]);function m(){t.push("/login")}function p(y){return!v.canSeeSystemArr.find(c=>+c.MODULE_ID==+y.moduleId)&&y.isZi}function b(y,c){if(!y.disabled&&y.linkHref){if(!v.canSeeSystemArr.find(k=>+k.MODULE_ID==+y.moduleId)&&!y.isZi)return;o(y,c)}}return(y,c)=>{const S=Ll,k=Bl,f=Fl;return P(),Z("div",jl,[te("div",xl,[Dl,te("div",Hl,[(P(!0),Z(Be,null,wn(T.value,(h,E)=>(P(),Z(Be,{key:h.name},[h.children?(P(),Y(f,{key:1},{dropdown:B(()=>[q(k,null,{default:B(()=>[(P(!0),Z(Be,null,wn(h.children,d=>(P(),Y(S,{onClick:_=>b(d,p(d)),key:d.name,class:ae({disabled:d.disabled||!d.isZi&&!g(v).canSeeSystemArr.find(_=>+_.MODULE_ID==+d.moduleId),"not-login":p(d)})},{default:B(()=>[hr(et(d.name),1)]),_:2},1032,["onClick","class"]))),128))]),_:2},1024)]),default:B(()=>[te("span",zl,et(h.name),1)]),_:2},1024)):(P(),Z("div",Ul,[te("span",null,et(h.name),1)])),E!==T.value.length-1?(P(),Z("div",Kl)):pe("",!0)],64))),128))]),te("div",Gl,[te("span",Wl,et(g(v).loginInfo.username),1),te("span",{class:"cur-p"},[te("img",{src:$l,alt:"",onClick:m})])])]),Yl])}}},Ql=vr(Vl,[["__scopeId","data-v-2ec8ecab"]]);export{Ql as default};
|