@loop_ouroboros/mcp-hub-lite 1.2.6 → 1.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +666 -640
- package/dist/client/assets/HomeView-CgEri1kD.js +1 -0
- package/dist/client/assets/{ResourceDetailView-BGBtmsyc.js → ResourceDetailView-B8Qo1_jK.js} +1 -1
- package/dist/client/assets/ResourcesView-B12FzUdo.js +1 -0
- package/dist/client/assets/ServerDashboard-B3O-crvv.js +1 -0
- package/dist/client/assets/ServerDetail-Bz5_9yOY.js +2 -0
- package/dist/client/assets/{ServerDetail-CtnNKJGx.css → ServerDetail-CXg8rI3q.css} +1 -1
- package/dist/client/assets/{ServerListView-C7kcd4GC.js → ServerListView-SlZN8ppC.js} +2 -2
- package/dist/client/assets/{ServerStatusTags.vue_vue_type_script_setup_true_lang-BHhwEuGe.js → ServerStatusTags.vue_vue_type_script_setup_true_lang-DmGg4uuV.js} +1 -1
- package/dist/client/assets/SettingsView-D8fiOG0O.js +1 -0
- package/dist/client/assets/ToolCallDialog-DYEdhnCk.js +1 -0
- package/dist/client/assets/ToolsView-BreAl-yn.js +1 -0
- package/dist/client/assets/{_baseClone-kbJbcBJT.js → _baseClone-BYxCbA_9.js} +1 -1
- package/dist/client/assets/{el-form-item-iQ0G8e97.js → el-form-item-ySymCPMr.js} +2 -2
- package/dist/client/assets/el-input-C85p6Nqj.js +1 -0
- package/dist/client/assets/el-loading-DIjKEx81.js +1 -0
- package/dist/client/assets/{el-overlay-Cy5xg31y.js → el-overlay-B_CxiSem.js} +1 -1
- package/dist/client/assets/el-radio-group-BjkTCPRf.js +1 -0
- package/dist/client/assets/el-skeleton-item-CupTKK6n.js +1 -0
- package/dist/client/assets/{el-switch-KpjV93lm.js → el-switch-BosIJ9jf.js} +1 -1
- package/dist/client/assets/el-tab-pane-BydxdJoc.js +1 -0
- package/dist/client/assets/{el-table-column-fofd_2n-.js → el-table-column-DV5TZOUW.js} +1 -1
- package/dist/client/assets/index-kC4mf0Vo.js +2 -0
- package/dist/client/assets/{index-DpH6ZSbs.css → index-xJkq2euk.css} +1 -1
- package/dist/client/assets/omit-DxDGRttI.js +1 -0
- package/dist/client/assets/{raf-MWAHt9ca.js → raf-Y9AoxecD.js} +1 -1
- package/dist/client/assets/{vue-vendor-CbgVSHIh.js → vue-vendor-Dwcr0jep.js} +1 -1
- package/dist/client/index.html +3 -3
- package/dist/server/shared/types/websocket.types.d.ts +28 -19
- package/dist/server/shared/types/websocket.types.d.ts.map +1 -1
- package/dist/server/shared/types/websocket.types.js +3 -2
- package/dist/server/src/api/web/health.d.ts.map +1 -1
- package/dist/server/src/api/web/health.js +5 -0
- package/dist/server/src/api/ws/ws-handler.d.ts.map +1 -1
- package/dist/server/src/api/ws/ws-handler.js +4 -3
- package/dist/server/src/app.d.ts +7 -0
- package/dist/server/src/app.d.ts.map +1 -1
- package/dist/server/src/app.js +87 -0
- package/dist/server/src/models/event.model.d.ts +0 -13
- package/dist/server/src/models/event.model.d.ts.map +1 -1
- package/dist/server/src/models/server.model.d.ts +0 -29
- package/dist/server/src/models/server.model.d.ts.map +1 -1
- package/dist/server/src/models/types.d.ts +1 -70
- package/dist/server/src/models/types.d.ts.map +1 -1
- package/dist/server/src/models/types.js +1 -67
- package/dist/server/src/server/dev-server.js +24 -6
- package/dist/server/src/services/connection/connection-manager.d.ts +13 -0
- package/dist/server/src/services/connection/connection-manager.d.ts.map +1 -1
- package/dist/server/src/services/connection/connection-manager.js +122 -5
- package/dist/server/src/services/event-bus.service.d.ts +0 -4
- package/dist/server/src/services/event-bus.service.d.ts.map +1 -1
- package/dist/server/src/services/event-bus.service.js +1 -6
- package/dist/server/src/services/gateway/request-handlers/initialize-handler.d.ts.map +1 -1
- package/dist/server/src/services/gateway/request-handlers/initialize-handler.js +1 -0
- package/dist/server/src/services/mcp-oauth/index.d.ts +5 -0
- package/dist/server/src/services/mcp-oauth/index.d.ts.map +1 -0
- package/dist/server/src/services/mcp-oauth/index.js +3 -0
- package/dist/server/src/services/mcp-oauth/oauth-callback-server.d.ts +19 -0
- package/dist/server/src/services/mcp-oauth/oauth-callback-server.d.ts.map +1 -0
- package/dist/server/src/services/mcp-oauth/oauth-callback-server.js +100 -0
- package/dist/server/src/services/mcp-oauth/oauth-provider.d.ts +42 -0
- package/dist/server/src/services/mcp-oauth/oauth-provider.d.ts.map +1 -0
- package/dist/server/src/services/mcp-oauth/oauth-provider.js +121 -0
- package/dist/server/src/services/mcp-oauth/oauth-token-storage.d.ts +23 -0
- package/dist/server/src/services/mcp-oauth/oauth-token-storage.d.ts.map +1 -0
- package/dist/server/src/services/mcp-oauth/oauth-token-storage.js +92 -0
- package/dist/server/src/services/mcp-oauth/oauth-types.d.ts +21 -0
- package/dist/server/src/services/mcp-oauth/oauth-types.d.ts.map +1 -0
- package/dist/server/src/services/mcp-oauth/oauth-types.js +4 -0
- package/dist/server/src/utils/network-security.d.ts +33 -0
- package/dist/server/src/utils/network-security.d.ts.map +1 -0
- package/dist/server/src/utils/network-security.js +83 -0
- package/dist/server/src/utils/transports/streamable-http-transport.d.ts +12 -1
- package/dist/server/src/utils/transports/streamable-http-transport.d.ts.map +1 -1
- package/dist/server/src/utils/transports/streamable-http-transport.js +20 -1
- package/dist/server/src/utils/transports/transport-factory.d.ts +2 -0
- package/dist/server/src/utils/transports/transport-factory.d.ts.map +1 -1
- package/dist/server/src/utils/transports/transport-factory.js +17 -2
- package/dist/server/src/utils/transports/transport.interface.d.ts +2 -0
- package/dist/server/src/utils/transports/transport.interface.d.ts.map +1 -1
- package/dist/server/tests/unit/utils/network-security.test.d.ts +2 -0
- package/dist/server/tests/unit/utils/network-security.test.d.ts.map +1 -0
- package/dist/server/tests/unit/utils/network-security.test.js +123 -0
- package/dist/server/vite.config.js +1 -1
- package/package.json +111 -111
- package/dist/client/assets/HomeView-BnO4yIT9.js +0 -1
- package/dist/client/assets/ResourcesView-B5Xg0ynh.js +0 -1
- package/dist/client/assets/ServerDashboard-DYAVrrUk.js +0 -1
- package/dist/client/assets/ServerDetail-q94ZFfjL.js +0 -2
- package/dist/client/assets/SettingsView-BM6P5yrT.js +0 -1
- package/dist/client/assets/ToolCallDialog-BoAGxlB5.js +0 -1
- package/dist/client/assets/ToolsView-lqFhr7Bk.js +0 -1
- package/dist/client/assets/el-input-DkJq57wP.js +0 -1
- package/dist/client/assets/el-loading-C3v6a9xV.js +0 -1
- package/dist/client/assets/el-radio-group-C9QUL5mm.js +0 -1
- package/dist/client/assets/el-skeleton-item-Bbmpc0Xz.js +0 -1
- package/dist/client/assets/el-tab-pane-YsYuBcem.js +0 -1
- package/dist/client/assets/index-5tzIwwtS.js +0 -1
- package/dist/client/assets/index-MqHvQjDP.js +0 -2
- package/dist/client/assets/omit-CB4hTeTH.js +0 -1
- package/dist/client/assets/typescript-Bp3YSIOJ.js +0 -1
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/HomeView-BnO4yIT9.js","assets/index-5tzIwwtS.js","assets/vue-vendor-CbgVSHIh.js","assets/typescript-Bp3YSIOJ.js","assets/ServerDashboard-DYAVrrUk.js","assets/el-skeleton-item-Bbmpc0Xz.js","assets/el-skeleton-item-BLY1jEuR.css","assets/ServerStatusTags.vue_vue_type_script_setup_true_lang-BHhwEuGe.js","assets/_plugin-vue_export-helper-DlAUqK2U.js","assets/ServerDetail-q94ZFfjL.js","assets/el-tab-pane-YsYuBcem.js","assets/raf-MWAHt9ca.js","assets/el-overlay-Cy5xg31y.js","assets/event-BB_Ol6Sd.js","assets/el-input-DkJq57wP.js","assets/el-input-BH4BZKnG.css","assets/el-overlay-CBvdpA69.css","assets/omit-CB4hTeTH.js","assets/_baseClone-kbJbcBJT.js","assets/el-tab-pane-CnNoQHsR.css","assets/el-switch-KpjV93lm.js","assets/el-switch-BBrS-_6y.css","assets/el-radio-group-C9QUL5mm.js","assets/el-radio-group-B0bauIRR.css","assets/el-table-column-fofd_2n-.js","assets/el-table-column-BdvRS9Y2.css","assets/ToolCallDialog-BoAGxlB5.js","assets/ToolCallDialog-BhdPX-Kf.css","assets/ServerDetail-CtnNKJGx.css","assets/ServerDashboard-BfLeFDGw.css","assets/ServerListView-C7kcd4GC.js","assets/el-form-item-iQ0G8e97.js","assets/el-form-item-B4LbJ6OO.css","assets/ServerListView-DshgDGSc.css","assets/ToolsView-lqFhr7Bk.js","assets/ToolsView-BxgXvPC3.css","assets/ResourcesView-B5Xg0ynh.js","assets/ResourcesView-Cc8RHtia.css","assets/ResourceDetailView-BGBtmsyc.js","assets/el-loading-C3v6a9xV.js","assets/el-loading-bpKhqqQq.css","assets/ResourceDetailView-DUJZbegl.css","assets/SettingsView-BM6P5yrT.js","assets/SettingsView-GkBOKL0V.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{g as ye,i as K,r as I,c as T,u as w,a as sr,b as Kt,d as Wt,s as ta,w as ks,e as _n,f as Ms,o as Ls,h as q,j as ge,n as lt,k as Bs,l as jr,m as Ns,p as at,q as ve,t as k,v as Y,x as A,y as ee,T as $s,N as dn,z as Hs,A as H,B as ze,C as F,D as pe,E as zs,F as we,G as z,H as ir,I as fn,J as Q,K as $t,L as na,M as ra,O as U,P as En,Q as oa,R as Vs,S as js,U as kt,V as ke,W as Us,X as Ur,Y as aa,Z as Ks,_ as Ws,$ as rt,a0 as Gs,a1 as fe,a2 as qs,a3 as Js,a4 as Ys,a5 as Sn,a6 as sa,a7 as Zs,a8 as Xs,a9 as vt,aa as Qs,ab as ei,ac as ti,ad as ni,ae as ri}from"./vue-vendor-CbgVSHIh.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();const ia=Symbol(),un="el",oi="is-",nt=(e,t,n,r,o)=>{let a=`${e}-${t}`;return n&&(a+=`-${n}`),r&&(a+=`__${r}`),o&&(a+=`--${o}`),a},la=Symbol("namespaceContextKey"),lr=e=>{const t=e||(ye()?K(la,I(un)):I(un));return T(()=>w(t)||un)},de=(e,t)=>{const n=lr(t);return{namespace:n,b:(g="")=>nt(n.value,e,g,"",""),e:g=>g?nt(n.value,e,"",g,""):"",m:g=>g?nt(n.value,e,"","",g):"",be:(g,y)=>g&&y?nt(n.value,e,g,y,""):"",em:(g,y)=>g&&y?nt(n.value,e,"",g,y):"",bm:(g,y)=>g&&y?nt(n.value,e,g,"",y):"",bem:(g,y,m)=>g&&y&&m?nt(n.value,e,g,y,m):"",is:(g,...y)=>{const m=y.length>=1?y[0]:!0;return g&&m?`${oi}${g}`:""},cssVar:g=>{const y={};for(const m in g)g[m]&&(y[`--${n.value}-${m}`]=g[m]);return y},cssVarName:g=>`--${n.value}-${g}`,cssVarBlock:g=>{const y={};for(const m in g)g[m]&&(y[`--${n.value}-${e}-${m}`]=g[m]);return y},cssVarBlockName:g=>`--${n.value}-${e}-${g}`}};var ua=typeof global=="object"&&global&&global.Object===Object&&global,ai=typeof self=="object"&&self&&self.Object===Object&&self,je=ua||ai||Function("return this")(),Me=je.Symbol,ca=Object.prototype,si=ca.hasOwnProperty,ii=ca.toString,Ft=Me?Me.toStringTag:void 0;function li(e){var t=si.call(e,Ft),n=e[Ft];try{e[Ft]=void 0;var r=!0}catch{}var o=ii.call(e);return r&&(t?e[Ft]=n:delete e[Ft]),o}var ui=Object.prototype,ci=ui.toString;function di(e){return ci.call(e)}var fi="[object Null]",pi="[object Undefined]",Kr=Me?Me.toStringTag:void 0;function Ot(e){return e==null?e===void 0?pi:fi:Kr&&Kr in Object(e)?li(e):di(e)}function _t(e){return e!=null&&typeof e=="object"}var vi="[object Symbol]";function ur(e){return typeof e=="symbol"||_t(e)&&Ot(e)==vi}function gi(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var Le=Array.isArray,Wr=Me?Me.prototype:void 0,Gr=Wr?Wr.toString:void 0;function da(e){if(typeof e=="string")return e;if(Le(e))return gi(e,da)+"";if(ur(e))return Gr?Gr.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function pn(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function mi(e){return e}var hi="[object AsyncFunction]",bi="[object Function]",yi="[object GeneratorFunction]",wi="[object Proxy]";function fa(e){if(!pn(e))return!1;var t=Ot(e);return t==bi||t==yi||t==hi||t==wi}var Bn=je["__core-js_shared__"],qr=(function(){var e=/[^.]+$/.exec(Bn&&Bn.keys&&Bn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function _i(e){return!!qr&&qr in e}var Ei=Function.prototype,Si=Ei.toString;function ct(e){if(e!=null){try{return Si.call(e)}catch{}try{return e+""}catch{}}return""}var Ci=/[\\^$.*+?()[\]{}|]/g,Ti=/^\[object .+?Constructor\]$/,xi=Function.prototype,Ai=Object.prototype,Oi=xi.toString,Ii=Ai.hasOwnProperty,Ri=RegExp("^"+Oi.call(Ii).replace(Ci,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Pi(e){if(!pn(e)||_i(e))return!1;var t=fa(e)?Ri:Ti;return t.test(ct(e))}function Fi(e,t){return e?.[t]}function dt(e,t){var n=Fi(e,t);return Pi(n)?n:void 0}var Wn=dt(je,"WeakMap");function Di(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var ki=800,Mi=16,Li=Date.now;function Bi(e){var t=0,n=0;return function(){var r=Li(),o=Mi-(r-n);if(n=r,o>0){if(++t>=ki)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ni(e){return function(){return e}}var vn=(function(){try{var e=dt(Object,"defineProperty");return e({},"",{}),e}catch{}})(),$i=vn?function(e,t){return vn(e,"toString",{configurable:!0,enumerable:!1,value:Ni(t),writable:!0})}:mi,Hi=Bi($i),zi=9007199254740991,Vi=/^(?:0|[1-9]\d*)$/;function cr(e,t){var n=typeof e;return t=t??zi,!!t&&(n=="number"||n!="symbol"&&Vi.test(e))&&e>-1&&e%1==0&&e<t}function pa(e,t,n){t=="__proto__"&&vn?vn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function dr(e,t){return e===t||e!==e&&t!==t}var ji=Object.prototype,Ui=ji.hasOwnProperty;function Ki(e,t,n){var r=e[t];(!(Ui.call(e,t)&&dr(r,n))||n===void 0&&!(t in e))&&pa(e,t,n)}var Jr=Math.max;function Wi(e,t,n){return t=Jr(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,a=Jr(r.length-t,0),s=Array(a);++o<a;)s[o]=r[t+o];o=-1;for(var i=Array(t+1);++o<t;)i[o]=r[o];return i[t]=n(s),Di(e,this,i)}}var Gi=9007199254740991;function fr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Gi}function qi(e){return e!=null&&fr(e.length)&&!fa(e)}var Ji=Object.prototype;function Yi(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Ji;return e===n}function Zi(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Xi="[object Arguments]";function Yr(e){return _t(e)&&Ot(e)==Xi}var va=Object.prototype,Qi=va.hasOwnProperty,el=va.propertyIsEnumerable,pr=Yr((function(){return arguments})())?Yr:function(e){return _t(e)&&Qi.call(e,"callee")&&!el.call(e,"callee")};function tl(){return!1}var ga=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Zr=ga&&typeof module=="object"&&module&&!module.nodeType&&module,nl=Zr&&Zr.exports===ga,Xr=nl?je.Buffer:void 0,rl=Xr?Xr.isBuffer:void 0,Gn=rl||tl,ol="[object Arguments]",al="[object Array]",sl="[object Boolean]",il="[object Date]",ll="[object Error]",ul="[object Function]",cl="[object Map]",dl="[object Number]",fl="[object Object]",pl="[object RegExp]",vl="[object Set]",gl="[object String]",ml="[object WeakMap]",hl="[object ArrayBuffer]",bl="[object DataView]",yl="[object Float32Array]",wl="[object Float64Array]",_l="[object Int8Array]",El="[object Int16Array]",Sl="[object Int32Array]",Cl="[object Uint8Array]",Tl="[object Uint8ClampedArray]",xl="[object Uint16Array]",Al="[object Uint32Array]",X={};X[yl]=X[wl]=X[_l]=X[El]=X[Sl]=X[Cl]=X[Tl]=X[xl]=X[Al]=!0;X[ol]=X[al]=X[hl]=X[sl]=X[bl]=X[il]=X[ll]=X[ul]=X[cl]=X[dl]=X[fl]=X[pl]=X[vl]=X[gl]=X[ml]=!1;function Ol(e){return _t(e)&&fr(e.length)&&!!X[Ot(e)]}function Il(e){return function(t){return e(t)}}var ma=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Mt=ma&&typeof module=="object"&&module&&!module.nodeType&&module,Rl=Mt&&Mt.exports===ma,Nn=Rl&&ua.process,Qr=(function(){try{var e=Mt&&Mt.require&&Mt.require("util").types;return e||Nn&&Nn.binding&&Nn.binding("util")}catch{}})(),eo=Qr&&Qr.isTypedArray,ha=eo?Il(eo):Ol,Pl=Object.prototype,Fl=Pl.hasOwnProperty;function Dl(e,t){var n=Le(e),r=!n&&pr(e),o=!n&&!r&&Gn(e),a=!n&&!r&&!o&&ha(e),s=n||r||o||a,i=s?Zi(e.length,String):[],l=i.length;for(var u in e)(t||Fl.call(e,u))&&!(s&&(u=="length"||o&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||cr(u,l)))&&i.push(u);return i}function kl(e,t){return function(n){return e(t(n))}}var Ml=kl(Object.keys,Object),Ll=Object.prototype,Bl=Ll.hasOwnProperty;function Nl(e){if(!Yi(e))return Ml(e);var t=[];for(var n in Object(e))Bl.call(e,n)&&n!="constructor"&&t.push(n);return t}function $l(e){return qi(e)?Dl(e):Nl(e)}var Hl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,zl=/^\w*$/;function Vl(e,t){if(Le(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||ur(e)?!0:zl.test(e)||!Hl.test(e)||t!=null&&e in Object(t)}var Ht=dt(Object,"create");function jl(){this.__data__=Ht?Ht(null):{},this.size=0}function Ul(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Kl="__lodash_hash_undefined__",Wl=Object.prototype,Gl=Wl.hasOwnProperty;function ql(e){var t=this.__data__;if(Ht){var n=t[e];return n===Kl?void 0:n}return Gl.call(t,e)?t[e]:void 0}var Jl=Object.prototype,Yl=Jl.hasOwnProperty;function Zl(e){var t=this.__data__;return Ht?t[e]!==void 0:Yl.call(t,e)}var Xl="__lodash_hash_undefined__";function Ql(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ht&&t===void 0?Xl:t,this}function ut(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ut.prototype.clear=jl;ut.prototype.delete=Ul;ut.prototype.get=ql;ut.prototype.has=Zl;ut.prototype.set=Ql;function eu(){this.__data__=[],this.size=0}function Cn(e,t){for(var n=e.length;n--;)if(dr(e[n][0],t))return n;return-1}var tu=Array.prototype,nu=tu.splice;function ru(e){var t=this.__data__,n=Cn(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():nu.call(t,n,1),--this.size,!0}function ou(e){var t=this.__data__,n=Cn(t,e);return n<0?void 0:t[n][1]}function au(e){return Cn(this.__data__,e)>-1}function su(e,t){var n=this.__data__,r=Cn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ue(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ue.prototype.clear=eu;Ue.prototype.delete=ru;Ue.prototype.get=ou;Ue.prototype.has=au;Ue.prototype.set=su;var zt=dt(je,"Map");function iu(){this.size=0,this.__data__={hash:new ut,map:new(zt||Ue),string:new ut}}function lu(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Tn(e,t){var n=e.__data__;return lu(t)?n[typeof t=="string"?"string":"hash"]:n.map}function uu(e){var t=Tn(this,e).delete(e);return this.size-=t?1:0,t}function cu(e){return Tn(this,e).get(e)}function du(e){return Tn(this,e).has(e)}function fu(e,t){var n=Tn(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Ke(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ke.prototype.clear=iu;Ke.prototype.delete=uu;Ke.prototype.get=cu;Ke.prototype.has=du;Ke.prototype.set=fu;var pu="Expected a function";function vr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(pu);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var s=e.apply(this,r);return n.cache=a.set(o,s)||a,s};return n.cache=new(vr.Cache||Ke),n}vr.Cache=Ke;var vu=500;function gu(e){var t=vr(e,function(r){return n.size===vu&&n.clear(),r}),n=t.cache;return t}var mu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hu=/\\(\\)?/g,bu=gu(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(mu,function(n,r,o,a){t.push(o?a.replace(hu,"$1"):r||n)}),t});function yu(e){return e==null?"":da(e)}function xn(e,t){return Le(e)?e:Vl(e,t)?[e]:bu(yu(e))}function gr(e){if(typeof e=="string"||ur(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function ba(e,t){t=xn(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[gr(t[n++])];return n&&n==r?e:void 0}function ya(e,t,n){var r=e==null?void 0:ba(e,t);return r===void 0?n:r}function wa(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var to=Me?Me.isConcatSpreadable:void 0;function wu(e){return Le(e)||pr(e)||!!(to&&e&&e[to])}function _u(e,t,n,r,o){var a=-1,s=e.length;for(n||(n=wu),o||(o=[]);++a<s;){var i=e[a];n(i)?wa(o,i):o[o.length]=i}return o}function Eu(e){var t=e==null?0:e.length;return t?_u(e):[]}function Su(e){return Hi(Wi(e,void 0,Eu),e+"")}function Cu(){if(!arguments.length)return[];var e=arguments[0];return Le(e)?e:[e]}function Tu(){this.__data__=new Ue,this.size=0}function xu(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Au(e){return this.__data__.get(e)}function Ou(e){return this.__data__.has(e)}var Iu=200;function Ru(e,t){var n=this.__data__;if(n instanceof Ue){var r=n.__data__;if(!zt||r.length<Iu-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ke(r)}return n.set(e,t),this.size=n.size,this}function Ze(e){var t=this.__data__=new Ue(e);this.size=t.size}Ze.prototype.clear=Tu;Ze.prototype.delete=xu;Ze.prototype.get=Au;Ze.prototype.has=Ou;Ze.prototype.set=Ru;function Pu(e,t){for(var n=-1,r=e==null?0:e.length,o=0,a=[];++n<r;){var s=e[n];t(s,n,e)&&(a[o++]=s)}return a}function Fu(){return[]}var Du=Object.prototype,ku=Du.propertyIsEnumerable,no=Object.getOwnPropertySymbols,Mu=no?function(e){return e==null?[]:(e=Object(e),Pu(no(e),function(t){return ku.call(e,t)}))}:Fu;function Lu(e,t,n){var r=t(e);return Le(e)?r:wa(r,n(e))}function ro(e){return Lu(e,$l,Mu)}var qn=dt(je,"DataView"),Jn=dt(je,"Promise"),Yn=dt(je,"Set"),oo="[object Map]",Bu="[object Object]",ao="[object Promise]",so="[object Set]",io="[object WeakMap]",lo="[object DataView]",Nu=ct(qn),$u=ct(zt),Hu=ct(Jn),zu=ct(Yn),Vu=ct(Wn),Je=Ot;(qn&&Je(new qn(new ArrayBuffer(1)))!=lo||zt&&Je(new zt)!=oo||Jn&&Je(Jn.resolve())!=ao||Yn&&Je(new Yn)!=so||Wn&&Je(new Wn)!=io)&&(Je=function(e){var t=Ot(e),n=t==Bu?e.constructor:void 0,r=n?ct(n):"";if(r)switch(r){case Nu:return lo;case $u:return oo;case Hu:return ao;case zu:return so;case Vu:return io}return t});var uo=je.Uint8Array,ju="__lodash_hash_undefined__";function Uu(e){return this.__data__.set(e,ju),this}function Ku(e){return this.__data__.has(e)}function gn(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Ke;++t<n;)this.add(e[t])}gn.prototype.add=gn.prototype.push=Uu;gn.prototype.has=Ku;function Wu(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function Gu(e,t){return e.has(t)}var qu=1,Ju=2;function _a(e,t,n,r,o,a){var s=n&qu,i=e.length,l=t.length;if(i!=l&&!(s&&l>i))return!1;var u=a.get(e),p=a.get(t);if(u&&p)return u==t&&p==e;var c=-1,d=!0,v=n&Ju?new gn:void 0;for(a.set(e,t),a.set(t,e);++c<i;){var f=e[c],g=t[c];if(r)var y=s?r(g,f,c,t,e,a):r(f,g,c,e,t,a);if(y!==void 0){if(y)continue;d=!1;break}if(v){if(!Wu(t,function(m,_){if(!Gu(v,_)&&(f===m||o(f,m,n,r,a)))return v.push(_)})){d=!1;break}}else if(!(f===g||o(f,g,n,r,a))){d=!1;break}}return a.delete(e),a.delete(t),d}function Yu(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}function Zu(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Xu=1,Qu=2,ec="[object Boolean]",tc="[object Date]",nc="[object Error]",rc="[object Map]",oc="[object Number]",ac="[object RegExp]",sc="[object Set]",ic="[object String]",lc="[object Symbol]",uc="[object ArrayBuffer]",cc="[object DataView]",co=Me?Me.prototype:void 0,$n=co?co.valueOf:void 0;function dc(e,t,n,r,o,a,s){switch(n){case cc:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case uc:return!(e.byteLength!=t.byteLength||!a(new uo(e),new uo(t)));case ec:case tc:case oc:return dr(+e,+t);case nc:return e.name==t.name&&e.message==t.message;case ac:case ic:return e==t+"";case rc:var i=Yu;case sc:var l=r&Xu;if(i||(i=Zu),e.size!=t.size&&!l)return!1;var u=s.get(e);if(u)return u==t;r|=Qu,s.set(e,t);var p=_a(i(e),i(t),r,o,a,s);return s.delete(e),p;case lc:if($n)return $n.call(e)==$n.call(t)}return!1}var fc=1,pc=Object.prototype,vc=pc.hasOwnProperty;function gc(e,t,n,r,o,a){var s=n&fc,i=ro(e),l=i.length,u=ro(t),p=u.length;if(l!=p&&!s)return!1;for(var c=l;c--;){var d=i[c];if(!(s?d in t:vc.call(t,d)))return!1}var v=a.get(e),f=a.get(t);if(v&&f)return v==t&&f==e;var g=!0;a.set(e,t),a.set(t,e);for(var y=s;++c<l;){d=i[c];var m=e[d],_=t[d];if(r)var x=s?r(_,m,d,t,e,a):r(m,_,d,e,t,a);if(!(x===void 0?m===_||o(m,_,n,r,a):x)){g=!1;break}y||(y=d=="constructor")}if(g&&!y){var h=e.constructor,M=t.constructor;h!=M&&"constructor"in e&&"constructor"in t&&!(typeof h=="function"&&h instanceof h&&typeof M=="function"&&M instanceof M)&&(g=!1)}return a.delete(e),a.delete(t),g}var mc=1,fo="[object Arguments]",po="[object Array]",en="[object Object]",hc=Object.prototype,vo=hc.hasOwnProperty;function bc(e,t,n,r,o,a){var s=Le(e),i=Le(t),l=s?po:Je(e),u=i?po:Je(t);l=l==fo?en:l,u=u==fo?en:u;var p=l==en,c=u==en,d=l==u;if(d&&Gn(e)){if(!Gn(t))return!1;s=!0,p=!1}if(d&&!p)return a||(a=new Ze),s||ha(e)?_a(e,t,n,r,o,a):dc(e,t,l,n,r,o,a);if(!(n&mc)){var v=p&&vo.call(e,"__wrapped__"),f=c&&vo.call(t,"__wrapped__");if(v||f){var g=v?e.value():e,y=f?t.value():t;return a||(a=new Ze),o(g,y,n,r,a)}}return d?(a||(a=new Ze),gc(e,t,n,r,o,a)):!1}function Ea(e,t,n,r,o){return e===t?!0:e==null||t==null||!_t(e)&&!_t(t)?e!==e&&t!==t:bc(e,t,n,r,Ea,o)}function yc(e,t){return e!=null&&t in Object(e)}function wc(e,t,n){t=xn(t,e);for(var r=-1,o=t.length,a=!1;++r<o;){var s=gr(t[r]);if(!(a=e!=null&&n(e,s)))break;e=e[s]}return a||++r!=o?a:(o=e==null?0:e.length,!!o&&fr(o)&&cr(s,o)&&(Le(e)||pr(e)))}function _c(e,t){return e!=null&&wc(e,t,yc)}function Zn(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var o=e[t];pa(r,o[0],o[1])}return r}function Ec(e,t){return Ea(e,t)}function An(e){return e==null}function Sc(e){return e===void 0}function Sa(e,t,n,r){if(!pn(e))return e;t=xn(t,e);for(var o=-1,a=t.length,s=a-1,i=e;i!=null&&++o<a;){var l=gr(t[o]),u=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(o!=s){var p=i[l];u=void 0,u===void 0&&(u=pn(p)?p:cr(t[o+1])?[]:{})}Ki(i,l,u),i=i[l]}return e}function Cc(e,t,n){for(var r=-1,o=t.length,a={};++r<o;){var s=t[r],i=ba(e,s);n(i,s)&&Sa(a,xn(s,e),i)}return a}function Tc(e,t){return Cc(e,t,function(n,r){return _c(e,r)})}var xc=Su(function(e,t){return e==null?{}:Tc(e,t)});function Ac(e,t,n){return e==null?e:Sa(e,t,n)}const v2=e=>e===void 0,Ca=e=>typeof e=="boolean",Pe=e=>typeof e=="number",g2=e=>!e&&e!==0||Kt(e)&&e.length===0||Wt(e)&&!Object.keys(e).length,yt=e=>typeof Element>"u"?!1:e instanceof Element,m2=e=>An(e),Oc=e=>sr(e)?!Number.isNaN(Number(e)):!1;function Ta(e,t){var n;const r=ta();return ks(()=>{r.value=e()},{...t,flush:(n=void 0)!=null?n:"sync"}),_n(r)}function Gt(e){return Ms()?(Ls(e),!0):!1}function Et(e){return typeof e=="function"?e():w(e)}const ce=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Ic=e=>e!=null,Rc=Object.prototype.toString,Pc=e=>Rc.call(e)==="[object Object]",wt=()=>{},Fc=Dc();function Dc(){var e,t;return ce&&((e=window?.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window?.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function kc(e,t){function n(...r){return new Promise((o,a)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(a)})}return n}function Mc(e,t={}){let n,r,o=wt;const a=i=>{clearTimeout(i),o(),o=wt};return i=>{const l=Et(e),u=Et(t.maxWait);return n&&a(n),l<=0||u!==void 0&&u<=0?(r&&(a(r),r=null),Promise.resolve(i())):new Promise((p,c)=>{o=t.rejectOnCancel?c:p,u&&!r&&(r=setTimeout(()=>{n&&a(n),r=null,p(i())},u)),n=setTimeout(()=>{r&&a(r),r=null,p(i())},l)})}}function Lc(e){return ye()}function Bc(e,t=200,n={}){return kc(Mc(t,n),e)}function h2(e,t=200,n={}){const r=I(e.value),o=Bc(()=>{r.value=e.value},t,n);return q(e,()=>o()),r}function Nc(e,t=!0,n){Lc()?ge(e,n):t?e():lt(e)}function b2(e,t,n={}){const{immediate:r=!0}=n,o=I(!1);let a=null;function s(){a&&(clearTimeout(a),a=null)}function i(){o.value=!1,s()}function l(...u){s(),o.value=!0,a=setTimeout(()=>{o.value=!1,a=null,e(...u)},Et(t))}return r&&(o.value=!0,ce&&l()),Gt(i),{isPending:_n(o),start:l,stop:i}}function me(e){var t;const n=Et(e);return(t=n?.$el)!=null?t:n}const It=ce?window:void 0,$c=ce?window.document:void 0;function Fe(...e){let t,n,r,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,o]=e,t=It):[t,n,r,o]=e,!t)return wt;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const a=[],s=()=>{a.forEach(p=>p()),a.length=0},i=(p,c,d,v)=>(p.addEventListener(c,d,v),()=>p.removeEventListener(c,d,v)),l=q(()=>[me(t),Et(o)],([p,c])=>{if(s(),!p)return;const d=Pc(c)?{...c}:c;a.push(...n.flatMap(v=>r.map(f=>i(p,v,f,d))))},{immediate:!0,flush:"post"}),u=()=>{l(),s()};return Gt(u),u}let go=!1;function Hc(e,t,n={}){const{window:r=It,ignore:o=[],capture:a=!0,detectIframe:s=!1}=n;if(!r)return wt;Fc&&!go&&(go=!0,Array.from(r.document.body.children).forEach(d=>d.addEventListener("click",wt)),r.document.documentElement.addEventListener("click",wt));let i=!0;const l=d=>o.some(v=>{if(typeof v=="string")return Array.from(r.document.querySelectorAll(v)).some(f=>f===d.target||d.composedPath().includes(f));{const f=me(v);return f&&(d.target===f||d.composedPath().includes(f))}}),p=[Fe(r,"click",d=>{const v=me(e);if(!(!v||v===d.target||d.composedPath().includes(v))){if(d.detail===0&&(i=!l(d)),!i){i=!0;return}t(d)}},{passive:!0,capture:a}),Fe(r,"pointerdown",d=>{const v=me(e);i=!l(d)&&!!(v&&!d.composedPath().includes(v))},{passive:!0}),s&&Fe(r,"blur",d=>{setTimeout(()=>{var v;const f=me(e);((v=r.document.activeElement)==null?void 0:v.tagName)==="IFRAME"&&!f?.contains(r.document.activeElement)&&t(d)},0)})].filter(Boolean);return()=>p.forEach(d=>d())}function zc(){const e=I(!1),t=ye();return t&&ge(()=>{e.value=!0},t),e}function xa(e){const t=zc();return T(()=>(t.value,!!e()))}function y2(e,t,n={}){const{window:r=It,...o}=n;let a;const s=xa(()=>r&&"MutationObserver"in r),i=()=>{a&&(a.disconnect(),a=void 0)},l=T(()=>{const d=Et(e),v=(Array.isArray(d)?d:[d]).map(me).filter(Ic);return new Set(v)}),u=q(()=>l.value,d=>{i(),s.value&&d.size&&(a=new MutationObserver(t),d.forEach(v=>a.observe(v,o)))},{immediate:!0,flush:"post"}),p=()=>a?.takeRecords(),c=()=>{i(),u()};return Gt(c),{isSupported:s,stop:c,takeRecords:p}}function w2(e={}){const{document:t=$c}=e;if(!t)return I("visible");const n=I(t.visibilityState);return Fe(t,"visibilitychange",()=>{n.value=t.visibilityState}),n}function Xn(e,t,n={}){const{window:r=It,...o}=n;let a;const s=xa(()=>r&&"ResizeObserver"in r),i=()=>{a&&(a.disconnect(),a=void 0)},l=T(()=>Array.isArray(e)?e.map(c=>me(c)):[me(e)]),u=q(l,c=>{if(i(),s.value&&r){a=new ResizeObserver(t);for(const d of c)d&&a.observe(d,o)}},{immediate:!0,flush:"post"}),p=()=>{i(),u()};return Gt(p),{isSupported:s,stop:p}}function _2(e,t={width:0,height:0},n={}){const{window:r=It,box:o="content-box"}=n,a=T(()=>{var c,d;return(d=(c=me(e))==null?void 0:c.namespaceURI)==null?void 0:d.includes("svg")}),s=I(t.width),i=I(t.height),{stop:l}=Xn(e,([c])=>{const d=o==="border-box"?c.borderBoxSize:o==="content-box"?c.contentBoxSize:c.devicePixelContentBoxSize;if(r&&a.value){const v=me(e);if(v){const f=v.getBoundingClientRect();s.value=f.width,i.value=f.height}}else if(d){const v=Array.isArray(d)?d:[d];s.value=v.reduce((f,{inlineSize:g})=>f+g,0),i.value=v.reduce((f,{blockSize:g})=>f+g,0)}else s.value=c.contentRect.width,i.value=c.contentRect.height},n);Nc(()=>{const c=me(e);c&&(s.value="offsetWidth"in c?c.offsetWidth:t.width,i.value="offsetHeight"in c?c.offsetHeight:t.height)});const u=q(()=>me(e),c=>{s.value=c?t.width:0,i.value=c?t.height:0});function p(){l(),u()}return{width:s,height:i,stop:p}}function E2(e={}){const{window:t=It}=e;if(!t)return I(!1);const n=I(t.document.hasFocus());return Fe(t,"blur",()=>{n.value=!1}),Fe(t,"focus",()=>{n.value=!0}),n}class Vc extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function jc(e,t){throw new Vc(`[${e}] ${t}`)}function S2(e,t){}const mo={current:0},ho=I(0),Aa=2e3,bo=Symbol("elZIndexContextKey"),Oa=Symbol("zIndexContextKey"),Ia=e=>{const t=ye()?K(bo,mo):mo,n=e||(ye()?K(Oa,void 0):void 0),r=T(()=>{const s=w(n);return Pe(s)?s:Aa}),o=T(()=>r.value+ho.value),a=()=>(t.current++,ho.value=t.current,o.value);return!ce&&K(bo),{initialZIndex:r,currentZIndex:o,nextZIndex:a}};var Ra={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value",alphaDescription:"alpha {alpha}, current color is {color}",hueLabel:"pick hue value",hueDescription:"hue {hue}, current color is {color}",svLabel:"pick saturation and brightness value",svDescription:"saturation {saturation}, brightness {brightness}, current color is {color}",predefineDescription:"select {value} as the color"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum",selectAllLabel:"Select all rows",selectRowLabel:"Select this row",expandRowLabel:"Expand this row",collapseRowLabel:"Collapse this row",sortLabel:"Sort by {column}",filterLabel:"Filter by {column}"},tag:{close:"Close this tag"},tour:{next:"Next",previous:"Previous",finish:"Finish",close:"Close this dialog"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const Uc=e=>(t,n)=>Kc(t,n,w(e)),Kc=(e,t,n)=>ya(n,e,e).replace(/\{(\w+)\}/g,(r,o)=>{var a;return`${(a=t?.[o])!=null?a:`{${o}}`}`}),Wc=e=>{const t=T(()=>w(e).name),n=Bs(e)?e:I(e);return{lang:t,locale:n,t:Uc(e)}},Pa=Symbol("localeContextKey"),Fa=e=>{const t=e||K(Pa,I());return Wc(T(()=>t.value||Ra))},Da="__epPropKey",V=e=>e,Gc=e=>Wt(e)&&!!e[Da],On=(e,t)=>{if(!Wt(e)||Gc(e))return e;const{values:n,required:r,default:o,type:a,validator:s}=e,l={type:a,required:!!r,validator:n||s?u=>{let p=!1,c=[];if(n&&(c=Array.from(n),jr(e,"default")&&c.push(o),p||(p=c.includes(u))),s&&(p||(p=s(u))),!p&&c.length>0){const d=[...new Set(c)].map(v=>JSON.stringify(v)).join(", ");Ns(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${d}], got value ${JSON.stringify(u)}.`)}return p}:void 0,[Da]:!0};return jr(e,"default")&&(l.default=o),l},re=e=>Zn(Object.entries(e).map(([t,n])=>[t,On(n,t)])),qc=["","default","small","large"],ka=On({type:String,values:qc,required:!1}),Ma=Symbol("size"),Jc=()=>{const e=K(Ma,{});return T(()=>w(e.size)||"")},La=Symbol("emptyValuesContextKey"),Yc=["",void 0,null],Zc=void 0,Xc=re({emptyValues:Array,valueOnClear:{type:V([String,Number,Boolean,Function]),default:void 0,validator:e=>(e=at(e)?e():e,Kt(e)?e.every(t=>!t):!e)}}),C2=(e,t)=>{const n=ye()?K(La,I({})):I({}),r=T(()=>e.emptyValues||n.value.emptyValues||Yc),o=T(()=>at(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:at(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:Zc),a=s=>{let i=!0;return Kt(s)?i=r.value.some(l=>Ec(s,l)):i=r.value.includes(s),i};return a(o.value),{emptyValues:r,valueOnClear:o,isEmptyValue:a}},yo=e=>Object.keys(e),T2=(e,t,n)=>({get value(){return ya(e,t,n)},set value(r){Ac(e,t,r)}}),mn=I();function mr(e,t=void 0){const n=ye()?K(ia,mn):mn;return e?T(()=>{var r,o;return(o=(r=n.value)==null?void 0:r[e])!=null?o:t}):n}function x2(e,t){const n=mr(),r=de(e,T(()=>{var i;return((i=n.value)==null?void 0:i.namespace)||un})),o=Fa(T(()=>{var i;return(i=n.value)==null?void 0:i.locale})),a=Ia(T(()=>{var i;return((i=n.value)==null?void 0:i.zIndex)||Aa})),s=T(()=>{var i;return w(t)||((i=n.value)==null?void 0:i.size)||""});return Ba(T(()=>w(n)||{})),{ns:r,locale:o,zIndex:a,size:s}}const Ba=(e,t,n=!1)=>{var r;const o=!!ye(),a=o?mr():void 0,s=(r=void 0)!=null?r:o?ve:void 0;if(!s)return;const i=T(()=>{const l=w(e);return a?.value?Qc(a.value,l):l});return s(ia,i),s(Pa,T(()=>i.value.locale)),s(la,T(()=>i.value.namespace)),s(Oa,T(()=>i.value.zIndex)),s(Ma,{size:T(()=>i.value.size||"")}),s(La,T(()=>({emptyValues:i.value.emptyValues,valueOnClear:i.value.valueOnClear}))),(n||!mn.value)&&(mn.value=i.value),i},Qc=(e,t)=>{const n=[...new Set([...yo(e),...yo(t)])],r={};for(const o of n)r[o]=t[o]!==void 0?t[o]:e[o];return r},Na=re({to:{type:V([String,Object]),required:!0},disabled:Boolean});var te=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};const ed=k({__name:"teleport",props:Na,setup(e){return(t,n)=>t.disabled?Y(t.$slots,"default",{key:0}):(A(),ee($s,{key:1,to:t.to},[Y(t.$slots,"default")],8,["to"]))}});var td=te(ed,[["__file","/home/runner/work/element-plus/element-plus/packages/components/teleport/src/teleport.vue"]]);const Xe=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(t??{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},A2=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),hr=e=>(e.install=dn,e),nd=Xe(td),$a=(e="")=>e.split(" ").filter(t=>!!t.trim()),O2=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},I2=(e,t)=>{!e||!t.trim()||e.classList.add(...$a(t))},R2=(e,t)=>{!e||!t.trim()||e.classList.remove(...$a(t))},P2=(e,t)=>{var n;if(!ce||!e||!t)return"";let r=Hs(t);r==="float"&&(r="cssFloat");try{const o=e.style[r];if(o)return o;const a=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return a?a[r]:""}catch{return e.style[r]}};function hn(e,t="px"){if(!e&&e!==0)return"";if(Pe(e)||Oc(e))return`${e}${t}`;if(sr(e))return e}const rd=re({size:{type:V([Number,String])},color:{type:String}}),od=k({name:"ElIcon",inheritAttrs:!1,__name:"icon",props:rd,setup(e){const t=e,n=de("icon"),r=T(()=>{const{size:o,color:a}=t,s=hn(o);return!s&&!a?{}:{fontSize:s,"--color":a}});return(o,a)=>(A(),H("i",ze({class:w(n).b(),style:r.value},o.$attrs),[Y(o.$slots,"default")],16))}});var ad=te(od,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const Vt=Xe(ad);var sd=k({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(A(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}}),Ha=sd,id=k({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(A(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.59 30.59 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.59 30.59 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0"})]))}}),F2=id,ld=k({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(A(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),D2=ld,ud=k({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(A(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),k2=ud,cd=k({name:"Check",__name:"check",setup(e){return(t,n)=>(A(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),M2=cd,dd=k({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(A(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),F("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752z"})]))}}),fd=dd,pd=k({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(A(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),za=pd,vd=k({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(A(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),F("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),gd=vd,md=k({name:"Close",__name:"close",setup(e){return(t,n)=>(A(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Va=md,hd=k({name:"Connection",__name:"connection",setup(e){return(t,n)=>(A(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M640 384v64H448a128 128 0 0 0-128 128v128a128 128 0 0 0 128 128h320a128 128 0 0 0 128-128V576a128 128 0 0 0-64-110.848V394.88c74.56 26.368 128 97.472 128 181.056v128a192 192 0 0 1-192 192H448a192 192 0 0 1-192-192V576a192 192 0 0 1 192-192z"}),F("path",{fill:"currentColor",d:"M384 640v-64h192a128 128 0 0 0 128-128V320a128 128 0 0 0-128-128H256a128 128 0 0 0-128 128v128a128 128 0 0 0 64 110.848v70.272A192.06 192.06 0 0 1 64 448V320a192 192 0 0 1 192-192h320a192 192 0 0 1 192 192v128a192 192 0 0 1-192 192z"})]))}}),L2=hd,bd=k({name:"CopyDocument",__name:"copy-document",setup(e){return(t,n)=>(A(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M768 832a128 128 0 0 1-128 128H192A128 128 0 0 1 64 832V384a128 128 0 0 1 128-128v64a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64z"}),F("path",{fill:"currentColor",d:"M384 128a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h448a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H384a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64"})]))}}),B2=bd,yd=k({name:"Delete",__name:"delete",setup(e){return(t,n)=>(A(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),N2=yd,wd=k({name:"DocumentCopy",__name:"document-copy",setup(e){return(t,n)=>(A(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M128 320v576h576V320zm-32-64h640a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32M960 96v704a32 32 0 0 1-32 32h-96v-64h64V128H384v64h-64V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32M256 672h320v64H256zm0-192h320v64H256z"})]))}}),$2=wd,_d=k({name:"Document",__name:"document",setup(e){return(t,n)=>(A(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),H2=_d,Ed=k({name:"Download",__name:"download",setup(e){return(t,n)=>(A(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"})]))}}),z2=Ed,Sd=k({name:"Edit",__name:"edit",setup(e){return(t,n)=>(A(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),F("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),V2=Sd,Cd=k({name:"ElementPlus",__name:"element-plus",setup(e){return(t,n)=>(A(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M839.7 734.7c0 33.3-17.9 41-17.9 41S519.7 949.8 499.2 960c-10.2 5.1-20.5 5.1-30.7 0 0 0-314.9-184.3-325.1-192-5.1-5.1-10.2-12.8-12.8-20.5V368.6c0-17.9 20.5-28.2 20.5-28.2L466 158.6q19.2-7.65 38.4 0s279 161.3 309.8 179.2c17.9 7.7 28.2 25.6 25.6 46.1-.1-5-.1 317.5-.1 350.8M714.2 371.2c-64-35.8-217.6-125.4-217.6-125.4-7.7-5.1-20.5-5.1-30.7 0L217.6 389.1s-17.9 10.2-17.9 23v297c0 5.1 5.1 12.8 7.7 17.9 7.7 5.1 256 148.5 256 148.5 7.7 5.1 17.9 5.1 25.6 0 15.4-7.7 250.9-145.9 250.9-145.9s12.8-5.1 12.8-30.7v-74.2l-276.5 169v-64c0-17.9 7.7-30.7 20.5-46.1L745 535c5.1-7.7 10.2-20.5 10.2-30.7v-66.6l-279 169v-69.1c0-15.4 5.1-30.7 17.9-38.4zM919 135.7c0-5.1-5.1-7.7-7.7-7.7h-58.9V66.6c0-5.1-5.1-5.1-10.2-5.1l-30.7 5.1c-5.1 0-5.1 2.6-5.1 5.1V128h-56.3c-5.1 0-5.1 5.1-7.7 5.1v38.4h69.1v64c0 5.1 5.1 5.1 10.2 5.1l30.7-5.1c5.1 0 5.1-2.6 5.1-5.1v-56.3h64z"})]))}}),Td=Cd,xd=k({name:"Files",__name:"files",setup(e){return(t,n)=>(A(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M128 384v448h768V384zm-32-64h832a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32m64-128h704v64H160zm96-128h512v64H256z"})]))}}),j2=xd,Ad=k({name:"Folder",__name:"folder",setup(e){return(t,n)=>(A(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32"})]))}}),U2=Ad,Od=k({name:"Hide",__name:"hide",setup(e){return(t,n)=>(A(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4s-12.8-9.6-22.4-9.6-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176S0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4m-646.4 528Q115.2 579.2 76.8 512q43.2-72 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4m140.8-96Q352 555.2 352 512c0-44.8 16-83.2 48-112s67.2-48 112-48c28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6q-43.2 72-153.6 172.8c-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176S1024 528 1024 512s-48.001-73.6-134.401-176"}),F("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112s-67.2 48-112 48"})]))}}),K2=Od,Id=k({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(A(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),Qn=Id,Rd=k({name:"Loading",__name:"loading",setup(e){return(t,n)=>(A(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248M828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0"})]))}}),ja=Rd,Pd=k({name:"Lock",__name:"lock",setup(e){return(t,n)=>(A(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),F("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m192-160v-64a192 192 0 1 0-384 0v64zM512 64a256 256 0 0 1 256 256v128H256V320A256 256 0 0 1 512 64"})]))}}),W2=Pd,Fd=k({name:"Memo",__name:"memo",setup(e){return(t,n)=>(A(),H("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M480 320h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"}),F("path",{fill:"currentColor",d:"M887.01 72.99C881.01 67 873.34 64 864 64H160c-9.35 0-17.02 3-23.01 8.99C131 78.99 128 86.66 128 96v832c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V96c0-9.35-3-17.02-8.99-23.01M192 896V128h96v768zm640 0H352V128h480z"}),F("path",{fill:"currentColor",d:"M480 512h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32m0 192h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"})]))}}),G2=Fd,Dd=k({name:"Minus",__name:"minus",setup(e){return(t,n)=>(A(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),q2=Dd,kd=k({name:"Monitor",__name:"monitor",setup(e){return(t,n)=>(A(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M544 768v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768H192A128 128 0 0 1 64 640V256a128 128 0 0 1 128-128h640a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128zM192 192a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64z"})]))}}),wo=kd,Md=k({name:"Moon",__name:"moon",setup(e){return(t,n)=>(A(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M240.448 240.448a384 384 0 1 0 559.424 525.696 448 448 0 0 1-542.016-542.08 391 391 0 0 0-17.408 16.384m181.056 362.048a384 384 0 0 0 525.632 16.384A448 448 0 1 1 405.056 76.8a384 384 0 0 0 16.448 525.696"})]))}}),_o=Md,Ld=k({name:"Operation",__name:"operation",setup(e){return(t,n)=>(A(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64z"})]))}}),J2=Ld,Bd=k({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>(A(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),Y2=Bd,Nd=k({name:"Platform",__name:"platform",setup(e){return(t,n)=>(A(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M448 832v-64h128v64h192v64H256v-64zM128 704V128h768v576z"})]))}}),Z2=Nd,$d=k({name:"Plus",__name:"plus",setup(e){return(t,n)=>(A(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),X2=$d,Hd=k({name:"PriceTag",__name:"price-tag",setup(e){return(t,n)=>(A(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M224 318.336V896h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0"}),F("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),Q2=Hd,zd=k({name:"Promotion",__name:"promotion",setup(e){return(t,n)=>(A(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472zm256 512V657.024L512 768z"})]))}}),eg=zd,Vd=k({name:"Refresh",__name:"refresh",setup(e){return(t,n)=>(A(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),tg=Vd,jd=k({name:"Search",__name:"search",setup(e){return(t,n)=>(A(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),ng=jd,Ud=k({name:"Setting",__name:"setting",setup(e){return(t,n)=>(A(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357 357 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a352 352 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357 357 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294 294 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293 293 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294 294 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288 288 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293 293 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a288 288 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256"})]))}}),rg=Ud,Kd=k({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(A(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),Ua=Kd,Wd=k({name:"Sunny",__name:"sunny",setup(e){return(t,n)=>(A(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M512 704a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32M195.2 195.2a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 1 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m543.104 543.104a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 0-45.248M64 512a32 32 0 0 1 32-32h64a32 32 0 0 1 0 64H96a32 32 0 0 1-32-32m768 0a32 32 0 0 1 32-32h64a32 32 0 1 1 0 64h-64a32 32 0 0 1-32-32M195.2 828.8a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248L240.448 828.8a32 32 0 0 1-45.248 0m543.104-543.104a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248l-45.248 45.248a32 32 0 0 1-45.248 0"})]))}}),Eo=Wd,Gd=k({name:"SwitchButton",__name:"switch-button",setup(e){return(t,n)=>(A(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M352 159.872V230.4a352 352 0 1 0 320 0v-70.528A416.128 416.128 0 0 1 512 960a416 416 0 0 1-160-800.128"}),F("path",{fill:"currentColor",d:"M512 64q32 0 32 32v320q0 32-32 32t-32-32V96q0-32 32-32"})]))}}),og=Gd,qd=k({name:"Tools",__name:"tools",setup(e){return(t,n)=>(A(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M764.416 254.72a351.7 351.7 0 0 1 86.336 149.184H960v192.064H850.752a351.7 351.7 0 0 1-86.336 149.312l54.72 94.72-166.272 96-54.592-94.72a352.64 352.64 0 0 1-172.48 0L371.136 936l-166.272-96 54.72-94.72a351.7 351.7 0 0 1-86.336-149.312H64v-192h109.248a351.7 351.7 0 0 1 86.336-149.312L204.8 160l166.208-96h.192l54.656 94.592a352.64 352.64 0 0 1 172.48 0L652.8 64h.128L819.2 160l-54.72 94.72zM704 499.968a192 192 0 1 0-384 0 192 192 0 0 0 384 0"})]))}}),ag=qd,Jd=k({name:"VideoPause",__name:"video-pause",setup(e){return(t,n)=>(A(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-96-544q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32m192 0q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32"})]))}}),sg=Jd,Yd=k({name:"VideoPlay",__name:"video-play",setup(e){return(t,n)=>(A(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-48-247.616L668.608 512 464 375.616zm10.624-342.656 249.472 166.336a48 48 0 0 1 0 79.872L474.624 718.272A48 48 0 0 1 400 678.336V345.6a48 48 0 0 1 74.624-39.936z"})]))}}),ig=Yd,Zd=k({name:"View",__name:"view",setup(e){return(t,n)=>(A(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288m0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.19 160.19 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),lg=Zd,Xd=k({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(A(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),Ka=Xd,Qd=k({name:"Warning",__name:"warning",setup(e){return(t,n)=>(A(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[F("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0m-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"})]))}}),ug=Qd;const er=V([String,Object,Function]),cg={Close:Va},dg={Close:Va,SuccessFilled:Ua,InfoFilled:Qn,WarningFilled:Ka,CircleCloseFilled:za},fg={primary:Qn,success:Ua,warning:Ka,error:za,info:Qn},pg={validating:ja,success:fd,error:gd},vg=()=>ce&&/firefox/i.test(window.navigator.userAgent),ef=()=>ce&&/android/i.test(window.navigator.userAgent),tf=re({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),br=e=>xc(tf,e),So={prefix:Math.floor(Math.random()*1e4),current:0},nf=Symbol("elIdInjection"),Wa=()=>ye()?K(nf,So):So,In=e=>{const t=Wa(),n=lr();return Ta(()=>w(e)||`${n.value}-id-${t.prefix}-${t.current++}`)},yr=Symbol("formContextKey"),bn=Symbol("formItemContextKey"),rf=()=>{const e=K(yr,void 0),t=K(bn,void 0);return{form:e,formItem:t}},gg=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=I(!1)),r||(r=I(!1));const o=ye(),a=()=>{let u=o?.parent;for(;u;){if(u.type.name==="ElFormItem")return!1;if(u.type.name==="ElLabelWrap")return!0;u=u.parent}return!1},s=I();let i;const l=T(()=>{var u;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((u=t.inputIds)==null?void 0:u.length)<=1)});return ge(()=>{i=q([pe(e,"id"),n],([u,p])=>{const c=u??(p?void 0:In().value);c!==s.value&&(t?.removeInputId&&!a()&&(s.value&&t.removeInputId(s.value),!r?.value&&!p&&c&&t.addInputId(c)),s.value=c)},{immediate:!0})}),zs(()=>{i&&i(),t?.removeInputId&&s.value&&t.removeInputId(s.value)}),{isLabeledByFormItem:l,inputId:s}},Ga=e=>{const t=ye();return T(()=>{var n,r;return(r=(n=t?.proxy)==null?void 0:n.$props)==null?void 0:r[e]})},qa=(e,t={})=>{const n=I(void 0),r=t.prop?n:Ga("size"),o=t.global?n:Jc(),a=t.form?{size:void 0}:K(yr,void 0),s=t.formItem?{size:void 0}:K(bn,void 0);return T(()=>r.value||w(e)||s?.size||a?.size||o.value||"")},Ja=e=>{const t=Ga("disabled"),n=K(yr,void 0);return T(()=>{var r,o,a;return(a=(o=(r=t.value)!=null?r:w(e))!=null?o:n?.disabled)!=null?a:!1})},of='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',Co=e=>typeof Element>"u"?!1:e instanceof Element,af=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,mg=e=>Array.from(e.querySelectorAll(of)).filter(t=>yn(t)&&af(t)),yn=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},wr=(e,t)=>{if(!e||!e.focus)return;let n=!1;Co(e)&&!yn(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),n=!0),e.focus(t),Co(e)&&n&&e.removeAttribute("tabindex")},gt=4,sf={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"}},lf=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),_r=Symbol("scrollbarContextKey"),uf=re({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),cf="Thumb",df=k({__name:"thumb",props:uf,setup(e){const t=e,n=K(_r),r=de("scrollbar");n||jc(cf,"can not inject scrollbar context");const o=I(),a=I(),s=I({}),i=I(!1);let l=!1,u=!1,p=0,c=0,d=ce?document.onselectstart:null;const v=T(()=>sf[t.vertical?"vertical":"horizontal"]),f=T(()=>lf({size:t.size,move:t.move,bar:v.value})),g=T(()=>o.value[v.value.offset]**2/n.wrapElement[v.value.scrollSize]/t.ratio/a.value[v.value.offset]),y=P=>{var B;if(P.stopPropagation(),P.ctrlKey||[1,2].includes(P.button))return;(B=window.getSelection())==null||B.removeAllRanges(),_(P);const $=P.currentTarget;$&&(s.value[v.value.axis]=$[v.value.offset]-(P[v.value.client]-$.getBoundingClientRect()[v.value.direction]))},m=P=>{if(!a.value||!o.value||!n.wrapElement)return;const B=Math.abs(P.target.getBoundingClientRect()[v.value.direction]-P[v.value.client]),$=a.value[v.value.offset]/2,j=(B-$)*100*g.value/o.value[v.value.offset];n.wrapElement[v.value.scroll]=j*n.wrapElement[v.value.scrollSize]/100},_=P=>{P.stopImmediatePropagation(),l=!0,p=n.wrapElement.scrollHeight,c=n.wrapElement.scrollWidth,document.addEventListener("mousemove",x),document.addEventListener("mouseup",h),d=document.onselectstart,document.onselectstart=()=>!1},x=P=>{if(!o.value||!a.value||l===!1)return;const B=s.value[v.value.axis];if(!B)return;const $=(o.value.getBoundingClientRect()[v.value.direction]-P[v.value.client])*-1,j=a.value[v.value.offset]-B,D=($-j)*100*g.value/o.value[v.value.offset];v.value.scroll==="scrollLeft"?n.wrapElement[v.value.scroll]=D*c/100:n.wrapElement[v.value.scroll]=D*p/100},h=()=>{l=!1,s.value[v.value.axis]=0,document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",h),R(),u&&(i.value=!1)},M=()=>{u=!1,i.value=!!t.size},S=()=>{u=!0,i.value=l};we(()=>{R(),document.removeEventListener("mouseup",h)});const R=()=>{document.onselectstart!==d&&(document.onselectstart=d)};return Fe(pe(n,"scrollbarElement"),"mousemove",M),Fe(pe(n,"scrollbarElement"),"mouseleave",S),(P,B)=>(A(),ee(ra,{name:w(r).b("fade"),persisted:""},{default:z(()=>[ir(F("div",{ref_key:"instance",ref:o,class:Q([w(r).e("bar"),w(r).is(v.value.key)]),onMousedown:m,onClick:B[0]||(B[0]=fn(()=>{},["stop"]))},[F("div",{ref_key:"thumb",ref:a,class:Q(w(r).e("thumb")),style:$t(f.value),onMousedown:y},null,38)],34),[[na,P.always||i.value]])]),_:1},8,["name"]))}});var To=te(df,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const ff=re({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),pf=k({__name:"bar",props:ff,setup(e,{expose:t}){const n=e,r=K(_r),o=I(0),a=I(0),s=I(""),i=I(""),l=I(1),u=I(1);return t({handleScroll:d=>{if(d){const v=d.offsetHeight-gt,f=d.offsetWidth-gt;a.value=d.scrollTop*100/v*l.value,o.value=d.scrollLeft*100/f*u.value}},update:()=>{const d=r?.wrapElement;if(!d)return;const v=d.offsetHeight-gt,f=d.offsetWidth-gt,g=v**2/d.scrollHeight,y=f**2/d.scrollWidth,m=Math.max(g,n.minSize),_=Math.max(y,n.minSize);l.value=g/(v-g)/(m/(v-m)),u.value=y/(f-y)/(_/(f-_)),i.value=m+gt<v?`${m}px`:"",s.value=_+gt<f?`${_}px`:""}}),(d,v)=>(A(),H(En,null,[U(To,{move:o.value,ratio:u.value,size:s.value,always:d.always},null,8,["move","ratio","size","always"]),U(To,{move:a.value,ratio:l.value,size:i.value,vertical:"",always:d.always},null,8,["move","ratio","size","always"])],64))}});var vf=te(pf,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const gf=re({distance:{type:Number,default:0},height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:V([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},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...br(["ariaLabel","ariaOrientation"])}),mf={"end-reached":e=>["left","right","top","bottom"].includes(e),scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Pe)},hf=["tabindex"],bf="ElScrollbar",yf=k({name:bf,__name:"scrollbar",props:gf,emits:mf,setup(e,{expose:t,emit:n}){const r=e,o=n,a=de("scrollbar");let s,i,l,u=0,p=0,c="";const d={bottom:!1,top:!1,right:!1,left:!1},v=I(),f=I(),g=I(),y=I(),m=T(()=>{const D={},N=hn(r.height),E=hn(r.maxHeight);return N&&(D.height=N),E&&(D.maxHeight=E),[r.wrapStyle,D]}),_=T(()=>[r.wrapClass,a.e("wrap"),{[a.em("wrap","hidden-default")]:!r.native}]),x=T(()=>[a.e("view"),r.viewClass]),h=D=>{var N;return(N=d[D])!=null?N:!1},M={top:"bottom",bottom:"top",left:"right",right:"left"},S=D=>{const N=M[c];if(!N)return;const E=D[c],b=D[N];E&&!d[c]&&(d[c]=!0),!b&&d[N]&&(d[N]=!1)},R=()=>{var D;if(f.value){(D=y.value)==null||D.handleScroll(f.value);const N=u,E=p;u=f.value.scrollTop,p=f.value.scrollLeft;const b={bottom:u+f.value.clientHeight>=f.value.scrollHeight-r.distance,top:u<=r.distance&&N!==0,right:p+f.value.clientWidth>=f.value.scrollWidth-r.distance&&E!==p,left:p<=r.distance&&E!==0};if(o("scroll",{scrollTop:u,scrollLeft:p}),N!==u&&(c=u>N?"bottom":"top"),E!==p&&(c=p>E?"right":"left"),r.distance>0){if(h(c))return;S(b)}b[c]&&o("end-reached",c)}};function P(D,N){Wt(D)?f.value.scrollTo(D):Pe(D)&&Pe(N)&&f.value.scrollTo(D,N)}const B=D=>{Pe(D)&&(f.value.scrollTop=D)},$=D=>{Pe(D)&&(f.value.scrollLeft=D)},j=()=>{var D;(D=y.value)==null||D.update(),d[c]=!1};return q(()=>r.noresize,D=>{D?(s?.(),i?.(),l?.()):({stop:s}=Xn(g,j),{stop:i}=Xn(f,j),l=Fe("resize",j))},{immediate:!0}),q(()=>[r.maxHeight,r.height],()=>{r.native||lt(()=>{var D;j(),f.value&&((D=y.value)==null||D.handleScroll(f.value))})}),ve(_r,oa({scrollbarElement:v,wrapElement:f})),Vs(()=>{f.value&&(f.value.scrollTop=u,f.value.scrollLeft=p)}),ge(()=>{r.native||lt(()=>{j()})}),js(()=>j()),t({wrapRef:f,update:j,scrollTo:P,setScrollTop:B,setScrollLeft:$,handleScroll:R}),(D,N)=>(A(),H("div",{ref_key:"scrollbarRef",ref:v,class:Q(w(a).b())},[F("div",{ref_key:"wrapRef",ref:f,class:Q(_.value),style:$t(m.value),tabindex:D.tabindex,onScroll:R},[(A(),ee(kt(D.tag),{id:D.id,ref_key:"resizeRef",ref:g,class:Q(x.value),style:$t(D.viewStyle),role:D.role,"aria-label":D.ariaLabel,"aria-orientation":D.ariaOrientation},{default:z(()=>[Y(D.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,hf),D.native?ke("v-if",!0):(A(),ee(vf,{key:0,ref_key:"barRef",ref:y,always:D.always,"min-size":D.minSize},null,8,["always","min-size"]))],2))}});var wf=te(yf,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const _f=Xe(wf),Er=Symbol("popper"),Ya=Symbol("popperContent"),Za=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],Xa=re({role:{type:String,values:Za,default:"tooltip"}}),Ef=k({name:"ElPopper",inheritAttrs:!1,__name:"popper",props:Xa,setup(e,{expose:t}){const n=e,r=I(),o=I(),a=I(),s=I(),i=T(()=>n.role),l={triggerRef:r,popperInstanceRef:o,contentRef:a,referenceRef:s,role:i};return t(l),ve(Er,l),(u,p)=>Y(u.$slots,"default")}});var Sf=te(Ef,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const Cf=k({name:"ElPopperArrow",inheritAttrs:!1,__name:"arrow",setup(e,{expose:t}){const n=de("popper"),{arrowRef:r,arrowStyle:o}=K(Ya,void 0);return we(()=>{r.value=void 0}),t({arrowRef:r}),(a,s)=>(A(),H("span",{ref_key:"arrowRef",ref:r,class:Q(w(n).e("arrow")),style:$t(w(o)),"data-popper-arrow":""},null,6))}});var Tf=te(Cf,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const Qa=re({virtualRef:{type:V(Object)},virtualTriggering:Boolean,onMouseenter:{type:V(Function)},onMouseleave:{type:V(Function)},onClick:{type:V(Function)},onKeydown:{type:V(Function)},onFocus:{type:V(Function)},onBlur:{type:V(Function)},onContextmenu:{type:V(Function)},id:String,open:Boolean}),es=Symbol("elForwardRef"),xf=e=>{ve(es,{setForwardRef:n=>{e.value=n}})},Af=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),Of="ElOnlyChild",ts=k({name:Of,setup(e,{slots:t,attrs:n}){var r;const o=K(es),a=Af((r=o?.setForwardRef)!=null?r:dn);return()=>{var s;const i=(s=t.default)==null?void 0:s.call(t,n);if(!i)return null;const[l,u]=ns(i);return l?ir(Us(l,n),[[a]]):null}}});function ns(e){if(!e)return[null,0];const t=e,n=t.filter(r=>r.type!==Ur).length;for(const r of t){if(Wt(r))switch(r.type){case Ur:continue;case aa:case"svg":return[xo(r),n];case En:return ns(r.children);default:return[r,n]}return[xo(r),n]}return[null,0]}function xo(e){const t=de("only-child");return U("span",{class:t.e("content")},[e])}const If=k({name:"ElPopperTrigger",inheritAttrs:!1,__name:"trigger",props:Qa,setup(e,{expose:t}){const n=e,{role:r,triggerRef:o}=K(Er,void 0);xf(o);const a=T(()=>i.value?n.id:void 0),s=T(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),i=T(()=>{if(r&&r.value!=="tooltip")return r.value}),l=T(()=>i.value?`${n.open}`:void 0);let u;const p=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return ge(()=>{q(()=>n.virtualRef,c=>{c&&(o.value=me(c))},{immediate:!0}),q(o,(c,d)=>{u?.(),u=void 0,yt(d)&&p.forEach(v=>{const f=n[v];f&&d.removeEventListener(v.slice(2).toLowerCase(),f,["onFocus","onBlur"].includes(v))}),yt(c)&&(p.forEach(v=>{const f=n[v];f&&c.addEventListener(v.slice(2).toLowerCase(),f,["onFocus","onBlur"].includes(v))}),yn(c)&&(u=q([a,s,i,l],v=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((f,g)=>{An(v[g])?c.removeAttribute(f):c.setAttribute(f,v[g])})},{immediate:!0}))),yt(d)&&yn(d)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(v=>d.removeAttribute(v))},{immediate:!0})}),we(()=>{if(u?.(),u=void 0,o.value&&yt(o.value)){const c=o.value;p.forEach(d=>{const v=n[d];v&&c.removeEventListener(d.slice(2).toLowerCase(),v,["onFocus","onBlur"].includes(d))}),o.value=void 0}}),t({triggerRef:o}),(c,d)=>c.virtualTriggering?ke("v-if",!0):(A(),ee(w(ts),ze({key:0},c.$attrs,{"aria-controls":a.value,"aria-describedby":s.value,"aria-expanded":l.value,"aria-haspopup":i.value}),{default:z(()=>[Y(c.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var Rf=te(If,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const Hn="focus-trap.focus-after-trapped",zn="focus-trap.focus-after-released",Pf="focus-trap.focusout-prevented",Ao={cancelable:!0,bubbles:!1},Ff={cancelable:!0,bubbles:!1},Oo="focusAfterTrapped",Io="focusAfterReleased",Df=Symbol("elFocusTrap"),Sr=I(),Rn=I(0),Cr=I(0);let tn=0;const rs=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},Ro=(e,t)=>{for(const n of e)if(!kf(n,t))return n},kf=(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},Mf=e=>{const t=rs(e),n=Ro(t,e),r=Ro(t.reverse(),e);return[n,r]},Lf=e=>e instanceof HTMLInputElement&&"select"in e,qe=(e,t)=>{if(e){const n=document.activeElement;wr(e,{preventScroll:!0}),Cr.value=window.performance.now(),e!==n&&Lf(e)&&t&&e.select()}};function Po(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const Bf=()=>{let e=[];return{push:r=>{const o=e[0];o&&r!==o&&o.pause(),e=Po(e,r),e.unshift(r)},remove:r=>{var o,a;e=Po(e,r),(a=(o=e[0])==null?void 0:o.resume)==null||a.call(o)}}},Nf=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(qe(r,t),document.activeElement!==n)return},Fo=Bf(),$f=()=>Rn.value>Cr.value,nn=()=>{Sr.value="pointer",Rn.value=window.performance.now()},Do=()=>{Sr.value="keyboard",Rn.value=window.performance.now()},Hf=()=>(ge(()=>{tn===0&&(document.addEventListener("mousedown",nn),document.addEventListener("touchstart",nn),document.addEventListener("keydown",Do)),tn++}),we(()=>{tn--,tn<=0&&(document.removeEventListener("mousedown",nn),document.removeEventListener("touchstart",nn),document.removeEventListener("keydown",Do))}),{focusReason:Sr,lastUserFocusTimestamp:Rn,lastAutomatedFocusTimestamp:Cr}),rn=e=>new CustomEvent(Pf,{...Ff,detail:e}),ue={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},ae=(e,t,{checkForDefaultPrevented:n=!0}={})=>o=>{const a=e?.(o);if(n===!1||!a)return t?.(o)},ko=e=>t=>t.pointerType==="mouse"?e(t):void 0,ft=e=>{if(e.code&&e.code!=="Unidentified")return e.code;const t=zf(e);return t?Object.values(ue).includes(t)?t:t===" "?ue.space:"":""},zf=e=>{let t=e.key&&e.key!=="Unidentified"?e.key:"";if(!t&&e.type==="keyup"&&ef()){const n=e.target;t=n.value.charAt(n.selectionStart-1)}return t};let bt=[];const Mo=e=>{ft(e)===ue.esc&&bt.forEach(n=>n(e))},Vf=e=>{ge(()=>{bt.length===0&&document.addEventListener("keydown",Mo),ce&&bt.push(e)}),we(()=>{bt=bt.filter(t=>t!==e),bt.length===0&&ce&&document.removeEventListener("keydown",Mo)})},jf=k({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Oo,Io,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=I();let r,o;const{focusReason:a}=Hf();Vf(f=>{e.trapped&&!s.paused&&t("release-requested",f)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},i=f=>{if(!e.loop&&!e.trapped||s.paused)return;const{altKey:g,ctrlKey:y,metaKey:m,currentTarget:_,shiftKey:x}=f,{loop:h}=e,S=ft(f)===ue.tab&&!g&&!y&&!m,R=document.activeElement;if(S&&R){const P=_,[B,$]=Mf(P);if(B&&$){if(!x&&R===$){const D=rn({focusReason:a.value});t("focusout-prevented",D),D.defaultPrevented||(f.preventDefault(),h&&qe(B,!0))}else if(x&&[B,P].includes(R)){const D=rn({focusReason:a.value});t("focusout-prevented",D),D.defaultPrevented||(f.preventDefault(),h&&qe($,!0))}}else if(R===P){const D=rn({focusReason:a.value});t("focusout-prevented",D),D.defaultPrevented||f.preventDefault()}}};ve(Df,{focusTrapRef:n,onKeydown:i}),q(()=>e.focusTrapEl,f=>{f&&(n.value=f)},{immediate:!0}),q([n],([f],[g])=>{f&&(f.addEventListener("keydown",i),f.addEventListener("focusin",p),f.addEventListener("focusout",c)),g&&(g.removeEventListener("keydown",i),g.removeEventListener("focusin",p),g.removeEventListener("focusout",c))});const l=f=>{t(Oo,f)},u=f=>t(Io,f),p=f=>{const g=w(n);if(!g)return;const y=f.target,m=f.relatedTarget,_=y&&g.contains(y);e.trapped||m&&g.contains(m)||(r=m),_&&t("focusin",f),!s.paused&&e.trapped&&(_?o=y:qe(o,!0))},c=f=>{const g=w(n);if(!(s.paused||!g))if(e.trapped){const y=f.relatedTarget;!An(y)&&!g.contains(y)&&setTimeout(()=>{if(!s.paused&&e.trapped){const m=rn({focusReason:a.value});t("focusout-prevented",m),m.defaultPrevented||qe(o,!0)}},0)}else{const y=f.target;y&&g.contains(y)||t("focusout",f)}};async function d(){await lt();const f=w(n);if(f){Fo.push(s);const g=f.contains(document.activeElement)?r:document.activeElement;if(r=g,!f.contains(g)){const m=new Event(Hn,Ao);f.addEventListener(Hn,l),f.dispatchEvent(m),m.defaultPrevented||lt(()=>{let _=e.focusStartEl;sr(_)||(qe(_),document.activeElement!==_&&(_="first")),_==="first"&&Nf(rs(f),!0),(document.activeElement===g||_==="container")&&qe(f)})}}}function v(){const f=w(n);if(f){f.removeEventListener(Hn,l);const g=new CustomEvent(zn,{...Ao,detail:{focusReason:a.value}});f.addEventListener(zn,u),f.dispatchEvent(g),!g.defaultPrevented&&(a.value=="keyboard"||!$f()||f.contains(document.activeElement))&&qe(r??document.body),f.removeEventListener(zn,u),Fo.remove(s),r=null,o=null}}return ge(()=>{e.trapped&&d(),q(()=>e.trapped,f=>{f?d():v()})}),we(()=>{e.trapped&&v(),n.value&&(n.value.removeEventListener("keydown",i),n.value.removeEventListener("focusin",p),n.value.removeEventListener("focusout",c),n.value=void 0),r=null,o=null}),{onKeydown:i}}});function Uf(e,t,n,r,o,a){return Y(e.$slots,"default",{handleKeydown:e.onKeydown})}var Kf=te(jf,[["render",Uf],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]),he="top",Ce="bottom",Te="right",be="left",Tr="auto",qt=[he,Ce,Te,be],St="start",jt="end",Wf="clippingParents",os="viewport",Dt="popper",Gf="reference",Lo=qt.reduce(function(e,t){return e.concat([t+"-"+St,t+"-"+jt])},[]),xr=[].concat(qt,[Tr]).reduce(function(e,t){return e.concat([t,t+"-"+St,t+"-"+jt])},[]),qf="beforeRead",Jf="read",Yf="afterRead",Zf="beforeMain",Xf="main",Qf="afterMain",ep="beforeWrite",tp="write",np="afterWrite",rp=[qf,Jf,Yf,Zf,Xf,Qf,ep,tp,np];function Be(e){return e?(e.nodeName||"").toLowerCase():null}function Oe(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ct(e){var t=Oe(e).Element;return e instanceof t||e instanceof Element}function Se(e){var t=Oe(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ar(e){if(typeof ShadowRoot>"u")return!1;var t=Oe(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function op(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},a=t.elements[n];!Se(a)||!Be(a)||(Object.assign(a.style,r),Object.keys(o).forEach(function(s){var i=o[s];i===!1?a.removeAttribute(s):a.setAttribute(s,i===!0?"":i)}))})}function ap(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(r){var o=t.elements[r],a=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),i=s.reduce(function(l,u){return l[u]="",l},{});!Se(o)||!Be(o)||(Object.assign(o.style,i),Object.keys(a).forEach(function(l){o.removeAttribute(l)}))})}}var as={name:"applyStyles",enabled:!0,phase:"write",fn:op,effect:ap,requires:["computeStyles"]};function De(e){return e.split("-")[0]}var it=Math.max,wn=Math.min,Tt=Math.round;function xt(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(Se(e)&&t){var a=e.offsetHeight,s=e.offsetWidth;s>0&&(r=Tt(n.width)/s||1),a>0&&(o=Tt(n.height)/a||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function Or(e){var t=xt(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function ss(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ar(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ve(e){return Oe(e).getComputedStyle(e)}function sp(e){return["table","td","th"].indexOf(Be(e))>=0}function Qe(e){return((Ct(e)?e.ownerDocument:e.document)||window.document).documentElement}function Pn(e){return Be(e)==="html"?e:e.assignedSlot||e.parentNode||(Ar(e)?e.host:null)||Qe(e)}function Bo(e){return!Se(e)||Ve(e).position==="fixed"?null:e.offsetParent}function ip(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Se(e)){var r=Ve(e);if(r.position==="fixed")return null}var o=Pn(e);for(Ar(o)&&(o=o.host);Se(o)&&["html","body"].indexOf(Be(o))<0;){var a=Ve(o);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 o;o=o.parentNode}return null}function Jt(e){for(var t=Oe(e),n=Bo(e);n&&sp(n)&&Ve(n).position==="static";)n=Bo(n);return n&&(Be(n)==="html"||Be(n)==="body"&&Ve(n).position==="static")?t:n||ip(e)||t}function Ir(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Lt(e,t,n){return it(e,wn(t,n))}function lp(e,t,n){var r=Lt(e,t,n);return r>n?n:r}function is(){return{top:0,right:0,bottom:0,left:0}}function ls(e){return Object.assign({},is(),e)}function us(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var up=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,ls(typeof e!="number"?e:us(e,qt))};function cp(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,i=De(n.placement),l=Ir(i),u=[be,Te].indexOf(i)>=0,p=u?"height":"width";if(!(!a||!s)){var c=up(o.padding,n),d=Or(a),v=l==="y"?he:be,f=l==="y"?Ce:Te,g=n.rects.reference[p]+n.rects.reference[l]-s[l]-n.rects.popper[p],y=s[l]-n.rects.reference[l],m=Jt(a),_=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,x=g/2-y/2,h=c[v],M=_-d[p]-c[f],S=_/2-d[p]/2+x,R=Lt(h,S,M),P=l;n.modifiersData[r]=(t={},t[P]=R,t.centerOffset=R-S,t)}}function dp(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||!ss(t.elements.popper,o)||(t.elements.arrow=o))}var fp={name:"arrow",enabled:!0,phase:"main",fn:cp,effect:dp,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function At(e){return e.split("-")[1]}var pp={top:"auto",right:"auto",bottom:"auto",left:"auto"};function vp(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:Tt(t*o)/o||0,y:Tt(n*o)/o||0}}function No(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,i=e.position,l=e.gpuAcceleration,u=e.adaptive,p=e.roundOffsets,c=e.isFixed,d=s.x,v=d===void 0?0:d,f=s.y,g=f===void 0?0:f,y=typeof p=="function"?p({x:v,y:g}):{x:v,y:g};v=y.x,g=y.y;var m=s.hasOwnProperty("x"),_=s.hasOwnProperty("y"),x=be,h=he,M=window;if(u){var S=Jt(n),R="clientHeight",P="clientWidth";if(S===Oe(n)&&(S=Qe(n),Ve(S).position!=="static"&&i==="absolute"&&(R="scrollHeight",P="scrollWidth")),S=S,o===he||(o===be||o===Te)&&a===jt){h=Ce;var B=c&&S===M&&M.visualViewport?M.visualViewport.height:S[R];g-=B-r.height,g*=l?1:-1}if(o===be||(o===he||o===Ce)&&a===jt){x=Te;var $=c&&S===M&&M.visualViewport?M.visualViewport.width:S[P];v-=$-r.width,v*=l?1:-1}}var j=Object.assign({position:i},u&&pp),D=p===!0?vp({x:v,y:g}):{x:v,y:g};if(v=D.x,g=D.y,l){var N;return Object.assign({},j,(N={},N[h]=_?"0":"",N[x]=m?"0":"",N.transform=(M.devicePixelRatio||1)<=1?"translate("+v+"px, "+g+"px)":"translate3d("+v+"px, "+g+"px, 0)",N))}return Object.assign({},j,(t={},t[h]=_?g+"px":"",t[x]=m?v+"px":"",t.transform="",t))}function gp(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,a=n.adaptive,s=a===void 0?!0:a,i=n.roundOffsets,l=i===void 0?!0:i,u={placement:De(t.placement),variation:At(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,No(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,No(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 cs={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:gp,data:{}},on={passive:!0};function mp(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=o===void 0?!0:o,s=r.resize,i=s===void 0?!0:s,l=Oe(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(p){p.addEventListener("scroll",n.update,on)}),i&&l.addEventListener("resize",n.update,on),function(){a&&u.forEach(function(p){p.removeEventListener("scroll",n.update,on)}),i&&l.removeEventListener("resize",n.update,on)}}var ds={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:mp,data:{}},hp={left:"right",right:"left",bottom:"top",top:"bottom"};function cn(e){return e.replace(/left|right|bottom|top/g,function(t){return hp[t]})}var bp={start:"end",end:"start"};function $o(e){return e.replace(/start|end/g,function(t){return bp[t]})}function Rr(e){var t=Oe(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Pr(e){return xt(Qe(e)).left+Rr(e).scrollLeft}function yp(e){var t=Oe(e),n=Qe(e),r=t.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,i=0;return r&&(o=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=r.offsetLeft,i=r.offsetTop)),{width:o,height:a,x:s+Pr(e),y:i}}function wp(e){var t,n=Qe(e),r=Rr(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=it(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=it(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),i=-r.scrollLeft+Pr(e),l=-r.scrollTop;return Ve(o||n).direction==="rtl"&&(i+=it(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:i,y:l}}function Fr(e){var t=Ve(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function fs(e){return["html","body","#document"].indexOf(Be(e))>=0?e.ownerDocument.body:Se(e)&&Fr(e)?e:fs(Pn(e))}function Bt(e,t){var n;t===void 0&&(t=[]);var r=fs(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=Oe(r),s=o?[a].concat(a.visualViewport||[],Fr(r)?r:[]):r,i=t.concat(s);return o?i:i.concat(Bt(Pn(s)))}function tr(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function _p(e){var t=xt(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 Ho(e,t){return t===os?tr(yp(e)):Ct(t)?_p(t):tr(wp(Qe(e)))}function Ep(e){var t=Bt(Pn(e)),n=["absolute","fixed"].indexOf(Ve(e).position)>=0,r=n&&Se(e)?Jt(e):e;return Ct(r)?t.filter(function(o){return Ct(o)&&ss(o,r)&&Be(o)!=="body"}):[]}function Sp(e,t,n){var r=t==="clippingParents"?Ep(e):[].concat(t),o=[].concat(r,[n]),a=o[0],s=o.reduce(function(i,l){var u=Ho(e,l);return i.top=it(u.top,i.top),i.right=wn(u.right,i.right),i.bottom=wn(u.bottom,i.bottom),i.left=it(u.left,i.left),i},Ho(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 ps(e){var t=e.reference,n=e.element,r=e.placement,o=r?De(r):null,a=r?At(r):null,s=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,l;switch(o){case he:l={x:s,y:t.y-n.height};break;case Ce:l={x:s,y:t.y+t.height};break;case Te:l={x:t.x+t.width,y:i};break;case be:l={x:t.x-n.width,y:i};break;default:l={x:t.x,y:t.y}}var u=o?Ir(o):null;if(u!=null){var p=u==="y"?"height":"width";switch(a){case St:l[u]=l[u]-(t[p]/2-n[p]/2);break;case jt:l[u]=l[u]+(t[p]/2-n[p]/2);break}}return l}function Ut(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,a=n.boundary,s=a===void 0?Wf:a,i=n.rootBoundary,l=i===void 0?os:i,u=n.elementContext,p=u===void 0?Dt:u,c=n.altBoundary,d=c===void 0?!1:c,v=n.padding,f=v===void 0?0:v,g=ls(typeof f!="number"?f:us(f,qt)),y=p===Dt?Gf:Dt,m=e.rects.popper,_=e.elements[d?y:p],x=Sp(Ct(_)?_:_.contextElement||Qe(e.elements.popper),s,l),h=xt(e.elements.reference),M=ps({reference:h,element:m,placement:o}),S=tr(Object.assign({},m,M)),R=p===Dt?S:h,P={top:x.top-R.top+g.top,bottom:R.bottom-x.bottom+g.bottom,left:x.left-R.left+g.left,right:R.right-x.right+g.right},B=e.modifiersData.offset;if(p===Dt&&B){var $=B[o];Object.keys(P).forEach(function(j){var D=[Te,Ce].indexOf(j)>=0?1:-1,N=[he,Ce].indexOf(j)>=0?"y":"x";P[j]+=$[N]*D})}return P}function Cp(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,s=n.padding,i=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?xr:l,p=At(r),c=p?i?Lo:Lo.filter(function(f){return At(f)===p}):qt,d=c.filter(function(f){return u.indexOf(f)>=0});d.length===0&&(d=c);var v=d.reduce(function(f,g){return f[g]=Ut(e,{placement:g,boundary:o,rootBoundary:a,padding:s})[De(g)],f},{});return Object.keys(v).sort(function(f,g){return v[f]-v[g]})}function Tp(e){if(De(e)===Tr)return[];var t=cn(e);return[$o(e),t,$o(t)]}function xp(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=o===void 0?!0:o,s=n.altAxis,i=s===void 0?!0:s,l=n.fallbackPlacements,u=n.padding,p=n.boundary,c=n.rootBoundary,d=n.altBoundary,v=n.flipVariations,f=v===void 0?!0:v,g=n.allowedAutoPlacements,y=t.options.placement,m=De(y),_=m===y,x=l||(_||!f?[cn(y)]:Tp(y)),h=[y].concat(x).reduce(function(ne,le){return ne.concat(De(le)===Tr?Cp(t,{placement:le,boundary:p,rootBoundary:c,padding:u,flipVariations:f,allowedAutoPlacements:g}):le)},[]),M=t.rects.reference,S=t.rects.popper,R=new Map,P=!0,B=h[0],$=0;$<h.length;$++){var j=h[$],D=De(j),N=At(j)===St,E=[he,Ce].indexOf(D)>=0,b=E?"width":"height",O=Ut(t,{placement:j,boundary:p,rootBoundary:c,altBoundary:d,padding:u}),C=E?N?Te:be:N?Ce:he;M[b]>S[b]&&(C=cn(C));var L=cn(C),W=[];if(a&&W.push(O[D]<=0),i&&W.push(O[C]<=0,O[L]<=0),W.every(function(ne){return ne})){B=j,P=!1;break}R.set(j,W)}if(P)for(var Z=f?3:1,se=function(ne){var le=h.find(function($e){var et=R.get($e);if(et)return et.slice(0,ne).every(function(Ie){return Ie})});if(le)return B=le,"break"},oe=Z;oe>0;oe--){var Ne=se(oe);if(Ne==="break")break}t.placement!==B&&(t.modifiersData[r]._skip=!0,t.placement=B,t.reset=!0)}}var Ap={name:"flip",enabled:!0,phase:"main",fn:xp,requiresIfExists:["offset"],data:{_skip:!1}};function zo(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 Vo(e){return[he,Te,Ce,be].some(function(t){return e[t]>=0})}function Op(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,s=Ut(t,{elementContext:"reference"}),i=Ut(t,{altBoundary:!0}),l=zo(s,r),u=zo(i,o,a),p=Vo(l),c=Vo(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:p,hasPopperEscaped:c},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":c})}var Ip={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Op};function Rp(e,t,n){var r=De(e),o=[be,he].indexOf(r)>=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)*o,[be,Te].indexOf(r)>=0?{x:i,y:s}:{x:s,y:i}}function Pp(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=o===void 0?[0,0]:o,s=xr.reduce(function(p,c){return p[c]=Rp(c,t.rects,a),p},{}),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[r]=s}var Fp={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Pp};function Dp(e){var t=e.state,n=e.name;t.modifiersData[n]=ps({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var vs={name:"popperOffsets",enabled:!0,phase:"read",fn:Dp,data:{}};function kp(e){return e==="x"?"y":"x"}function Mp(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=o===void 0?!0:o,s=n.altAxis,i=s===void 0?!1:s,l=n.boundary,u=n.rootBoundary,p=n.altBoundary,c=n.padding,d=n.tether,v=d===void 0?!0:d,f=n.tetherOffset,g=f===void 0?0:f,y=Ut(t,{boundary:l,rootBoundary:u,padding:c,altBoundary:p}),m=De(t.placement),_=At(t.placement),x=!_,h=Ir(m),M=kp(h),S=t.modifiersData.popperOffsets,R=t.rects.reference,P=t.rects.popper,B=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,$=typeof B=="number"?{mainAxis:B,altAxis:B}:Object.assign({mainAxis:0,altAxis:0},B),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(S){if(a){var N,E=h==="y"?he:be,b=h==="y"?Ce:Te,O=h==="y"?"height":"width",C=S[h],L=C+y[E],W=C-y[b],Z=v?-P[O]/2:0,se=_===St?R[O]:P[O],oe=_===St?-P[O]:-R[O],Ne=t.elements.arrow,ne=v&&Ne?Or(Ne):{width:0,height:0},le=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:is(),$e=le[E],et=le[b],Ie=Lt(0,R[O],ne[O]),Yt=x?R[O]/2-Z-Ie-$e-$.mainAxis:se-Ie-$e-$.mainAxis,Zt=x?-R[O]/2+Z+Ie+et+$.mainAxis:oe+Ie+et+$.mainAxis,pt=t.elements.arrow&&Jt(t.elements.arrow),Rt=pt?h==="y"?pt.clientTop||0:pt.clientLeft||0:0,Pt=(N=j?.[h])!=null?N:0,Xt=C+Yt-Pt-Rt,kn=C+Zt-Pt,Re=Lt(v?wn(L,Xt):L,C,v?it(W,kn):W);S[h]=Re,D[h]=Re-C}if(i){var _e,We=h==="x"?he:be,Mn=h==="x"?Ce:Te,tt=S[M],Qt=M==="y"?"height":"width",Br=tt+y[We],Nr=tt-y[Mn],Ln=[he,be].indexOf(m)!==-1,$r=(_e=j?.[M])!=null?_e:0,Hr=Ln?Br:tt-R[Qt]-P[Qt]-$r+$.altAxis,zr=Ln?tt+R[Qt]+P[Qt]-$r-$.altAxis:Nr,Vr=v&&Ln?lp(Hr,tt,zr):Lt(v?Hr:Br,tt,v?zr:Nr);S[M]=Vr,D[M]=Vr-tt}t.modifiersData[r]=D}}var Lp={name:"preventOverflow",enabled:!0,phase:"main",fn:Mp,requiresIfExists:["offset"]};function Bp(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Np(e){return e===Oe(e)||!Se(e)?Rr(e):Bp(e)}function $p(e){var t=e.getBoundingClientRect(),n=Tt(t.width)/e.offsetWidth||1,r=Tt(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Hp(e,t,n){n===void 0&&(n=!1);var r=Se(t),o=Se(t)&&$p(t),a=Qe(t),s=xt(e,o),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Be(t)!=="body"||Fr(a))&&(i=Np(t)),Se(t)?(l=xt(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=Pr(a))),{x:s.left+i.scrollLeft-l.x,y:s.top+i.scrollTop-l.y,width:s.width,height:s.height}}function zp(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function o(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&&o(l)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||o(a)}),r}function Vp(e){var t=zp(e);return rp.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function jp(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Up(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var jo={placement:"bottom",modifiers:[],strategy:"absolute"};function Uo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Dr(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,a=o===void 0?jo:o;return function(s,i,l){l===void 0&&(l=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},jo,a),modifiersData:{},elements:{reference:s,popper:i},attributes:{},styles:{}},p=[],c=!1,d={state:u,setOptions:function(g){var y=typeof g=="function"?g(u.options):g;f(),u.options=Object.assign({},a,u.options,y),u.scrollParents={reference:Ct(s)?Bt(s):s.contextElement?Bt(s.contextElement):[],popper:Bt(i)};var m=Vp(Up([].concat(r,u.options.modifiers)));return u.orderedModifiers=m.filter(function(_){return _.enabled}),v(),d.update()},forceUpdate:function(){if(!c){var g=u.elements,y=g.reference,m=g.popper;if(Uo(y,m)){u.rects={reference:Hp(y,Jt(m),u.options.strategy==="fixed"),popper:Or(m)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(P){return u.modifiersData[P.name]=Object.assign({},P.data)});for(var _=0;_<u.orderedModifiers.length;_++){if(u.reset===!0){u.reset=!1,_=-1;continue}var x=u.orderedModifiers[_],h=x.fn,M=x.options,S=M===void 0?{}:M,R=x.name;typeof h=="function"&&(u=h({state:u,options:S,name:R,instance:d})||u)}}}},update:jp(function(){return new Promise(function(g){d.forceUpdate(),g(u)})}),destroy:function(){f(),c=!0}};if(!Uo(s,i))return d;d.setOptions(l).then(function(g){!c&&l.onFirstUpdate&&l.onFirstUpdate(g)});function v(){u.orderedModifiers.forEach(function(g){var y=g.name,m=g.options,_=m===void 0?{}:m,x=g.effect;if(typeof x=="function"){var h=x({state:u,name:y,instance:d,options:_}),M=function(){};p.push(h||M)}})}function f(){p.forEach(function(g){return g()}),p=[]}return d}}Dr();var Kp=[ds,vs,cs,as];Dr({defaultModifiers:Kp});var Wp=[ds,vs,cs,as,Fp,Ap,Lp,fp,Ip],Gp=Dr({defaultModifiers:Wp});const gs=re({arrowOffset:{type:Number,default:5}}),qp=["fixed","absolute"],Jp=re({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:V(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:xr,default:"bottom"},popperOptions:{type:V(Object),default:()=>({})},strategy:{type:String,values:qp,default:"absolute"}}),ms=re({...Jp,...gs,id:String,style:{type:V([String,Array,Object])},className:{type:V([String,Array,Object])},effect:{type:V(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:Boolean,trapping:Boolean,popperClass:{type:V([String,Array,Object])},popperStyle:{type:V([String,Array,Object])},referenceEl:{type:V(Object)},triggerTargetEl:{type:V(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...br(["ariaLabel"]),loop:Boolean}),Yp={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},Zp=(e,t)=>{const n=I(!1),r=I(),o=()=>{t("focus")},a=u=>{var p;((p=u.detail)==null?void 0:p.focusReason)!=="pointer"&&(r.value="first",t("blur"))},s=u=>{e.visible&&!n.value&&(u.target&&(r.value=u.target),n.value=!0)},i=u=>{e.trapping||(u.detail.focusReason==="pointer"&&u.preventDefault(),n.value=!1)},l=()=>{n.value=!1,t("close")};return we(()=>{r.value=void 0}),{focusStartRef:r,trapped:n,onFocusAfterReleased:a,onFocusAfterTrapped:o,onFocusInTrap:s,onFocusoutPrevented:i,onReleaseRequested:l}},Xp=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:o}=e,a={placement:n,strategy:r,...o,modifiers:[...e0(e),...t]};return t0(a,o?.modifiers),a},Qp=e=>{if(ce)return me(e)};function e0(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:0,bottom:0,left:0,right:0}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function t0(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const n0=(e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const u=r0(l);Object.assign(s.value,u)},requires:["computeStyles"]},o=T(()=>{const{onFirstUpdate:l,placement:u,strategy:p,modifiers:c}=w(n);return{onFirstUpdate:l,placement:u||"bottom",strategy:p||"absolute",modifiers:[...c||[],r,{name:"applyStyles",enabled:!1}]}}),a=ta(),s=I({styles:{popper:{position:w(o).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=()=>{a.value&&(a.value.destroy(),a.value=void 0)};return q(o,l=>{const u=w(a);u&&u.setOptions(l)},{deep:!0}),q([e,t],([l,u])=>{i(),!(!l||!u)&&(a.value=Gp(l,u,w(o)))}),we(()=>{i()}),{state:T(()=>{var l;return{...((l=w(a))==null?void 0:l.state)||{}}}),styles:T(()=>w(s).styles),attributes:T(()=>w(s).attributes),update:()=>{var l;return(l=w(a))==null?void 0:l.update()},forceUpdate:()=>{var l;return(l=w(a))==null?void 0:l.forceUpdate()},instanceRef:T(()=>w(a))}};function r0(e){const t=Object.keys(e.elements),n=Zn(t.map(o=>[o,e.styles[o]||{}])),r=Zn(t.map(o=>[o,e.attributes[o]]));return{styles:n,attributes:r}}const o0=0,a0=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:o}=K(Er,void 0),a=I(),s=T(()=>e.arrowOffset),i=T(()=>({name:"eventListeners",enabled:!!e.visible})),l=T(()=>{var m;const _=w(a),x=(m=w(s))!=null?m:o0;return{name:"arrow",enabled:!Sc(_),options:{element:_,padding:x}}}),u=T(()=>({onFirstUpdate:()=>{f()},...Xp(e,[w(l),w(i)])})),p=T(()=>Qp(e.referenceEl)||w(r)),{attributes:c,state:d,styles:v,update:f,forceUpdate:g,instanceRef:y}=n0(p,n,u);return q(y,m=>t.value=m,{flush:"sync"}),ge(()=>{q(()=>{var m,_;return(_=(m=w(p))==null?void 0:m.getBoundingClientRect)==null?void 0:_.call(m)},()=>{f()})}),we(()=>{t.value=void 0}),{attributes:c,arrowRef:a,contentRef:n,instanceRef:y,state:d,styles:v,role:o,forceUpdate:g,update:f}},s0=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:o}=Ia(),a=de("popper"),s=T(()=>w(t).popper),i=I(Pe(e.zIndex)?e.zIndex:o()),l=T(()=>[a.b(),a.is("pure",e.pure),a.is(e.effect),e.popperClass]),u=T(()=>[{zIndex:w(i)},w(n).popper,e.popperStyle||{}]),p=T(()=>r.value==="dialog"?"false":void 0),c=T(()=>w(n).arrow||{});return{ariaModal:p,arrowStyle:c,contentAttrs:s,contentClass:l,contentStyle:u,contentZIndex:i,updateZIndex:()=>{i.value=Pe(e.zIndex)?e.zIndex:o()}}},i0=k({name:"ElPopperContent",__name:"content",props:ms,emits:Yp,setup(e,{expose:t,emit:n}){const r=n,o=e,{focusStartRef:a,trapped:s,onFocusAfterReleased:i,onFocusAfterTrapped:l,onFocusInTrap:u,onFocusoutPrevented:p,onReleaseRequested:c}=Zp(o,r),{attributes:d,arrowRef:v,contentRef:f,styles:g,instanceRef:y,role:m,update:_}=a0(o),{ariaModal:x,arrowStyle:h,contentAttrs:M,contentClass:S,contentStyle:R,updateZIndex:P}=s0(o,{styles:g,attributes:d,role:m}),B=K(bn,void 0);ve(Ya,{arrowStyle:h,arrowRef:v}),B&&ve(bn,{...B,addInputId:dn,removeInputId:dn});let $;const j=(N=!0)=>{_(),N&&P()},D=()=>{j(!1),o.visible&&o.focusOnShow?s.value=!0:o.visible===!1&&(s.value=!1)};return ge(()=>{q(()=>o.triggerTargetEl,(N,E)=>{$?.(),$=void 0;const b=w(N||f.value),O=w(E||f.value);yt(b)&&($=q([m,()=>o.ariaLabel,x,()=>o.id],C=>{["role","aria-label","aria-modal","id"].forEach((L,W)=>{An(C[W])?b.removeAttribute(L):b.setAttribute(L,C[W])})},{immediate:!0})),O!==b&&yt(O)&&["role","aria-label","aria-modal","id"].forEach(C=>{O.removeAttribute(C)})},{immediate:!0}),q(()=>o.visible,D,{immediate:!0})}),we(()=>{$?.(),$=void 0,f.value=void 0}),t({popperContentRef:f,popperInstanceRef:y,updatePopper:j,contentStyle:R}),(N,E)=>(A(),H("div",ze({ref_key:"contentRef",ref:f},w(M),{style:w(R),class:w(S),tabindex:"-1",onMouseenter:E[0]||(E[0]=b=>N.$emit("mouseenter",b)),onMouseleave:E[1]||(E[1]=b=>N.$emit("mouseleave",b))}),[U(w(Kf),{loop:N.loop,trapped:w(s),"trap-on-focus-in":!0,"focus-trap-el":w(f),"focus-start-el":w(a),onFocusAfterTrapped:w(l),onFocusAfterReleased:w(i),onFocusin:w(u),onFocusoutPrevented:w(p),onReleaseRequested:w(c)},{default:z(()=>[Y(N.$slots,"default")]),_:3},8,["loop","trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var l0=te(i0,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const u0=Xe(Sf),kr=Symbol("elTooltip");function Ko(){let e;const t=(r,o)=>{n(),e=window.setTimeout(r,o)},n=()=>window.clearTimeout(e);return Gt(()=>n()),{registerTimeout:t,cancelTimeout:n}}const c0=re({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),d0=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:o})=>{const{registerTimeout:a}=Ko(),{registerTimeout:s,cancelTimeout:i}=Ko();return{onOpen:(p,c=w(e))=>{a(()=>{r(p);const d=w(n);Pe(d)&&d>0&&s(()=>{o(p)},d)},c)},onClose:(p,c=w(t))=>{i(),a(()=>{o(p)},c)}}},ot=re({...c0,...ms,appendTo:{type:Na.to.type},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:V(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...br(["ariaLabel"])}),Nt=re({...Qa,disabled:Boolean,trigger:{type:V([String,Array]),default:"hover"},triggerKeys:{type:V(Array),default:()=>[ue.enter,ue.numpadEnter,ue.space]},focusOnTarget:Boolean}),f0=On({type:V(Boolean),default:null}),p0=On({type:V(Function)}),v0=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],o={[e]:f0,[n]:p0};return{useModelToggle:({indicator:s,toggleReason:i,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:p,onHide:c})=>{const d=ye(),{emit:v}=d,f=d.props,g=T(()=>at(f[n])),y=T(()=>f[e]===null),m=R=>{s.value!==!0&&(s.value=!0,i&&(i.value=R),at(p)&&p(R))},_=R=>{s.value!==!1&&(s.value=!1,i&&(i.value=R),at(c)&&c(R))},x=R=>{if(f.disabled===!0||at(u)&&!u())return;const P=g.value&&ce;P&&v(t,!0),(y.value||!P)&&m(R)},h=R=>{if(f.disabled===!0||!ce)return;const P=g.value&&ce;P&&v(t,!1),(y.value||!P)&&_(R)},M=R=>{Ca(R)&&(f.disabled&&R?g.value&&v(t,!1):s.value!==R&&(R?m():_()))},S=()=>{s.value?h():x()};return q(()=>f[e],M),l&&d.appContext.config.globalProperties.$route!==void 0&&q(()=>({...d.proxy.$route}),()=>{l.value&&s.value&&h()}),ge(()=>{M(f[e])}),{hide:h,show:x,toggle:S,hasUpdateHandler:g}},useModelToggleProps:o,useModelToggleEmits:r}},{useModelToggleProps:g0,useModelToggleEmits:m0,useModelToggle:h0}=v0("visible"),b0=re({...Xa,...g0,...ot,...Nt,...gs,showArrow:{type:Boolean,default:!0}}),y0=[...m0,"before-show","before-hide","show","hide","open","close"],nr=(e,t)=>Kt(e)?e.includes(t):e===t,mt=(e,t,n)=>r=>{nr(w(e),t)&&n(r)},w0=k({name:"ElTooltipTrigger",__name:"trigger",props:Nt,setup(e,{expose:t}){const n=e,r=de("tooltip"),{controlled:o,id:a,open:s,onOpen:i,onClose:l,onToggle:u}=K(kr,void 0),p=I(null),c=()=>{if(w(o)||n.disabled)return!0},d=pe(n,"trigger"),v=ae(c,mt(d,"hover",h=>{i(h),n.focusOnTarget&&h.target&<(()=>{wr(h.target,{preventScroll:!0})})})),f=ae(c,mt(d,"hover",l)),g=ae(c,mt(d,"click",h=>{h.button===0&&u(h)})),y=ae(c,mt(d,"focus",i)),m=ae(c,mt(d,"focus",l)),_=ae(c,mt(d,"contextmenu",h=>{h.preventDefault(),u(h)})),x=ae(c,h=>{const M=ft(h);n.triggerKeys.includes(M)&&(h.preventDefault(),u(h))});return t({triggerRef:p}),(h,M)=>(A(),ee(w(Rf),{id:w(a),"virtual-ref":h.virtualRef,open:w(s),"virtual-triggering":h.virtualTriggering,class:Q(w(r).e("trigger")),onBlur:w(m),onClick:w(g),onContextmenu:w(_),onFocus:w(y),onMouseenter:w(v),onMouseleave:w(f),onKeydown:w(x)},{default:z(()=>[Y(h.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var _0=te(w0,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const hs=()=>{const e=lr(),t=Wa(),n=T(()=>`${e.value}-popper-container-${t.prefix}`),r=T(()=>`#${n.value}`);return{id:n,selector:r}},E0=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},S0=()=>{const{id:e,selector:t}=hs();return Ks(()=>{ce&&(document.body.querySelector(t.value)||E0(e.value))}),{id:e,selector:t}},C0=e=>!e&&e!==0?[]:Kt(e)?e:[e],T0=k({name:"ElTooltipContent",inheritAttrs:!1,__name:"content",props:ot,setup(e,{expose:t}){const n=e,{selector:r}=hs(),o=de("tooltip"),a=I(),s=Ta(()=>{var L;return(L=a.value)==null?void 0:L.popperContentRef});let i;const{controlled:l,id:u,open:p,trigger:c,onClose:d,onOpen:v,onShow:f,onHide:g,onBeforeShow:y,onBeforeHide:m}=K(kr,void 0),_=T(()=>n.transition||`${o.namespace.value}-fade-in-linear`),x=T(()=>n.persistent);we(()=>{i?.()});const h=T(()=>w(x)?!0:w(p)),M=T(()=>n.disabled?!1:w(p)),S=T(()=>n.appendTo||r.value),R=T(()=>{var L;return(L=n.style)!=null?L:{}}),P=I(!0),B=()=>{g(),C()&&wr(document.body,{preventScroll:!0}),P.value=!0},$=()=>{if(w(l))return!0},j=ae($,()=>{n.enterable&&nr(w(c),"hover")&&v()}),D=ae($,()=>{nr(w(c),"hover")&&d()}),N=()=>{var L,W;(W=(L=a.value)==null?void 0:L.updatePopper)==null||W.call(L),y?.()},E=()=>{m?.()},b=()=>{f()},O=()=>{n.virtualTriggering||d()},C=L=>{var W;const Z=(W=a.value)==null?void 0:W.popperContentRef,se=L?.relatedTarget||document.activeElement;return Z?.contains(se)};return q(()=>w(p),L=>{L?(P.value=!1,i=Hc(s,()=>{if(w(l))return;C0(w(c)).every(Z=>Z!=="hover"&&Z!=="focus")&&d()},{detectIframe:!0})):i?.()},{flush:"post"}),q(()=>n.content,()=>{var L,W;(W=(L=a.value)==null?void 0:L.updatePopper)==null||W.call(L)}),t({contentRef:a,isFocusInsideContent:C}),(L,W)=>(A(),ee(w(nd),{disabled:!L.teleported,to:S.value},{default:z(()=>[h.value||!P.value?(A(),ee(ra,{key:0,name:_.value,appear:!x.value,onAfterLeave:B,onBeforeEnter:N,onAfterEnter:b,onBeforeLeave:E,persisted:""},{default:z(()=>[ir(U(w(l0),ze({id:w(u),ref_key:"contentRef",ref:a},L.$attrs,{"aria-label":L.ariaLabel,"aria-hidden":P.value,"boundaries-padding":L.boundariesPadding,"fallback-placements":L.fallbackPlacements,"gpu-acceleration":L.gpuAcceleration,offset:L.offset,placement:L.placement,"popper-options":L.popperOptions,"arrow-offset":L.arrowOffset,strategy:L.strategy,effect:L.effect,enterable:L.enterable,pure:L.pure,"popper-class":L.popperClass,"popper-style":[L.popperStyle,R.value],"reference-el":L.referenceEl,"trigger-target-el":L.triggerTargetEl,visible:M.value,"z-index":L.zIndex,loop:L.loop,onMouseenter:w(j),onMouseleave:w(D),onBlur:O,onClose:w(d)}),{default:z(()=>[Y(L.$slots,"default")]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","arrow-offset","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","loop","onMouseenter","onMouseleave","onClose"]),[[na,M.value]])]),_:3},8,["name","appear"])):ke("v-if",!0)]),_:3},8,["disabled","to"]))}});var x0=te(T0,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const A0=["innerHTML"],O0={key:1},I0=k({name:"ElTooltip",__name:"tooltip",props:b0,emits:y0,setup(e,{expose:t,emit:n}){const r=e,o=n;S0();const a=de("tooltip"),s=In(),i=I(),l=I(),u=()=>{var h;const M=w(i);M&&((h=M.popperInstanceRef)==null||h.update())},p=I(!1),c=I(),{show:d,hide:v,hasUpdateHandler:f}=h0({indicator:p,toggleReason:c}),{onOpen:g,onClose:y}=d0({showAfter:pe(r,"showAfter"),hideAfter:pe(r,"hideAfter"),autoClose:pe(r,"autoClose"),open:d,close:v}),m=T(()=>Ca(r.visible)&&!f.value),_=T(()=>[a.b(),r.popperClass]);ve(kr,{controlled:m,id:s,open:_n(p),trigger:pe(r,"trigger"),onOpen:g,onClose:y,onToggle:h=>{w(p)?y(h):g(h)},onShow:()=>{o("show",c.value)},onHide:()=>{o("hide",c.value)},onBeforeShow:()=>{o("before-show",c.value)},onBeforeHide:()=>{o("before-hide",c.value)},updatePopper:u}),q(()=>r.disabled,h=>{h&&p.value&&(p.value=!1)});const x=h=>{var M;return(M=l.value)==null?void 0:M.isFocusInsideContent(h)};return Ws(()=>p.value&&v()),we(()=>{c.value=void 0}),t({popperRef:i,contentRef:l,isFocusInsideContent:x,updatePopper:u,onOpen:g,onClose:y,hide:v}),(h,M)=>(A(),ee(w(u0),{ref_key:"popperRef",ref:i,role:h.role},{default:z(()=>[U(_0,{disabled:h.disabled,trigger:h.trigger,"trigger-keys":h.triggerKeys,"virtual-ref":h.virtualRef,"virtual-triggering":h.virtualTriggering,"focus-on-target":h.focusOnTarget},{default:z(()=>[h.$slots.default?Y(h.$slots,"default",{key:0}):ke("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering","focus-on-target"]),U(x0,{ref_key:"contentRef",ref:l,"aria-label":h.ariaLabel,"boundaries-padding":h.boundariesPadding,content:h.content,disabled:h.disabled,effect:h.effect,enterable:h.enterable,"fallback-placements":h.fallbackPlacements,"hide-after":h.hideAfter,"gpu-acceleration":h.gpuAcceleration,offset:h.offset,persistent:h.persistent,"popper-class":_.value,"popper-style":h.popperStyle,placement:h.placement,"popper-options":h.popperOptions,"arrow-offset":h.arrowOffset,pure:h.pure,"raw-content":h.rawContent,"reference-el":h.referenceEl,"trigger-target-el":h.triggerTargetEl,"show-after":h.showAfter,strategy:h.strategy,teleported:h.teleported,transition:h.transition,"virtual-triggering":h.virtualTriggering,"z-index":h.zIndex,"append-to":h.appendTo,loop:h.loop},{default:z(()=>[Y(h.$slots,"content",{},()=>[h.rawContent?(A(),H("span",{key:0,innerHTML:h.content},null,8,A0)):(A(),H("span",O0,rt(h.content),1))]),h.showArrow?(A(),ee(w(Tf),{key:0})):ke("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","arrow-offset","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to","loop"])]),_:3},8,["role"]))}});var R0=te(I0,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const P0=Xe(R0),bs=Symbol("buttonGroupContextKey"),F0=({from:e,replacement:t,scope:n,version:r,ref:o,type:a="API"},s)=>{q(()=>w(s),i=>{},{immediate:!0})},D0=(e,t)=>{F0({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},T(()=>e.type==="text"));const n=K(bs,void 0),r=mr("button"),{form:o}=rf(),a=qa(T(()=>n?.size)),s=Ja(),i=I(),l=Gs(),u=T(()=>{var m;return e.type||n?.type||((m=r.value)==null?void 0:m.type)||""}),p=T(()=>{var m,_,x;return(x=(_=e.autoInsertSpace)!=null?_:(m=r.value)==null?void 0:m.autoInsertSpace)!=null?x:!1}),c=T(()=>{var m,_,x;return(x=(_=e.plain)!=null?_:(m=r.value)==null?void 0:m.plain)!=null?x:!1}),d=T(()=>{var m,_,x;return(x=(_=e.round)!=null?_:(m=r.value)==null?void 0:m.round)!=null?x:!1}),v=T(()=>{var m,_,x;return(x=(_=e.text)!=null?_:(m=r.value)==null?void 0:m.text)!=null?x:!1}),f=T(()=>e.tag==="button"?{ariaDisabled:s.value||e.loading,disabled:s.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),g=T(()=>{var m;const _=(m=l.default)==null?void 0:m.call(l);if(p.value&&_?.length===1){const x=_[0];if(x?.type===aa){const h=x.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(h.trim())}}return!1});return{_disabled:s,_size:a,_type:u,_ref:i,_props:f,_plain:c,_round:d,_text:v,shouldAddSpace:g,handleClick:m=>{if(s.value||e.loading){m.stopPropagation();return}e.nativeType==="reset"&&o?.resetFields(),t("click",m)}}},k0=["default","primary","success","warning","info","danger","text",""],M0=["button","submit","reset"],rr=re({size:ka,disabled:{type:Boolean,default:void 0},type:{type:String,values:k0,default:""},icon:{type:er},nativeType:{type:String,values:M0,default:"button"},loading:Boolean,loadingIcon:{type:er,default:()=>ja},plain:{type:Boolean,default:void 0},text:{type:Boolean,default:void 0},link:Boolean,bg:Boolean,autofocus:Boolean,round:{type:Boolean,default:void 0},circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:V([String,Object]),default:"button"}}),L0={click:e=>e instanceof MouseEvent};function ie(e,t){B0(e)&&(e="100%");var n=N0(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 an(e){return Math.min(1,Math.max(0,e))}function B0(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function N0(e){return typeof e=="string"&&e.indexOf("%")!==-1}function ys(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function sn(e){return e<=1?"".concat(Number(e)*100,"%"):e}function st(e){return e.length===1?"0"+e:String(e)}function $0(e,t,n){return{r:ie(e,255)*255,g:ie(t,255)*255,b:ie(n,255)*255}}function Wo(e,t,n){e=ie(e,255),t=ie(t,255),n=ie(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,s=0,i=(r+o)/2;if(r===o)s=0,a=0;else{var l=r-o;switch(s=i>.5?l/(2-r-o):l/(r+o),r){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 Vn(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 H0(e,t,n){var r,o,a;if(e=ie(e,360),t=ie(t,100),n=ie(n,100),t===0)o=n,a=n,r=n;else{var s=n<.5?n*(1+t):n+t-n*t,i=2*n-s;r=Vn(i,s,e+1/3),o=Vn(i,s,e),a=Vn(i,s,e-1/3)}return{r:r*255,g:o*255,b:a*255}}function Go(e,t,n){e=ie(e,255),t=ie(t,255),n=ie(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,s=r,i=r-o,l=r===0?0:i/r;if(r===o)a=0;else{switch(r){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 z0(e,t,n){e=ie(e,360)*6,t=ie(t,100),n=ie(n,100);var r=Math.floor(e),o=e-r,a=n*(1-t),s=n*(1-o*t),i=n*(1-(1-o)*t),l=r%6,u=[n,s,a,a,i,n][l],p=[i,n,n,s,a,a][l],c=[a,a,i,n,n,s][l];return{r:u*255,g:p*255,b:c*255}}function qo(e,t,n,r){var o=[st(Math.round(e).toString(16)),st(Math.round(t).toString(16)),st(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function V0(e,t,n,r,o){var a=[st(Math.round(e).toString(16)),st(Math.round(t).toString(16)),st(Math.round(n).toString(16)),st(j0(r))];return o&&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 j0(e){return Math.round(parseFloat(e)*255).toString(16)}function Jo(e){return Ee(e)/255}function Ee(e){return parseInt(e,16)}function U0(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var or={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 K0(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,a=null,s=!1,i=!1;return typeof e=="string"&&(e=q0(e)),typeof e=="object"&&(He(e.r)&&He(e.g)&&He(e.b)?(t=$0(e.r,e.g,e.b),s=!0,i=String(e.r).substr(-1)==="%"?"prgb":"rgb"):He(e.h)&&He(e.s)&&He(e.v)?(r=sn(e.s),o=sn(e.v),t=z0(e.h,r,o),s=!0,i="hsv"):He(e.h)&&He(e.s)&&He(e.l)&&(r=sn(e.s),a=sn(e.l),t=H0(e.h,r,a),s=!0,i="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=ys(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 W0="[-\\+]?\\d+%?",G0="[-\\+]?\\d*\\.\\d+%?",Ye="(?:".concat(G0,")|(?:").concat(W0,")"),jn="[\\s|\\(]+(".concat(Ye,")[,|\\s]+(").concat(Ye,")[,|\\s]+(").concat(Ye,")\\s*\\)?"),Un="[\\s|\\(]+(".concat(Ye,")[,|\\s]+(").concat(Ye,")[,|\\s]+(").concat(Ye,")[,|\\s]+(").concat(Ye,")\\s*\\)?"),Ae={CSS_UNIT:new RegExp(Ye),rgb:new RegExp("rgb"+jn),rgba:new RegExp("rgba"+Un),hsl:new RegExp("hsl"+jn),hsla:new RegExp("hsla"+Un),hsv:new RegExp("hsv"+jn),hsva:new RegExp("hsva"+Un),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 q0(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(or[e])e=or[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Ae.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Ae.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Ae.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Ae.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Ae.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Ae.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Ae.hex8.exec(e),n?{r:Ee(n[1]),g:Ee(n[2]),b:Ee(n[3]),a:Jo(n[4]),format:t?"name":"hex8"}:(n=Ae.hex6.exec(e),n?{r:Ee(n[1]),g:Ee(n[2]),b:Ee(n[3]),format:t?"name":"hex"}:(n=Ae.hex4.exec(e),n?{r:Ee(n[1]+n[1]),g:Ee(n[2]+n[2]),b:Ee(n[3]+n[3]),a:Jo(n[4]+n[4]),format:t?"name":"hex8"}:(n=Ae.hex3.exec(e),n?{r:Ee(n[1]+n[1]),g:Ee(n[2]+n[2]),b:Ee(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function He(e){return!!Ae.CSS_UNIT.exec(String(e))}var J0=(function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=U0(t)),this.originalInput=t;var o=K0(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.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=o.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,r,o,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?r=s/12.92:r=Math.pow((s+.055)/1.055,2.4),i<=.03928?o=i/12.92:o=Math.pow((i+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=ys(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=Go(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=Go(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Wo(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=Wo(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),qo(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),V0(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),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(ie(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(ie(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="#"+qo(this.r,this.g,this.b,!1),n=0,r=Object.entries(or);n<r.length;n++){var o=r[n],a=o[0],s=o[1];if(t===s)return a}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,o=this.a<1&&this.a>=0,a=!n&&o&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||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=an(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=an(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=an(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=an(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),a=n/100,s={r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a};return new e(s)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,a=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(new e(r));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(),r=n.h,o=n.s,a=n.v,s=[],i=1/t;t--;)s.push(new e({h:r,s:o,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(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},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(),r=n.h,o=[this],a=360/t,s=1;s<t;s++)o.push(new e({h:(r+s*a)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e})();function Ge(e,t=20){return e.mix("#141414",t).toString()}function Y0(e){const t=Ja(),n=de("button");return T(()=>{let r={},o=e.color;if(o){const a=o.match(/var\((.*?)\)/);a&&(o=window.getComputedStyle(window.document.documentElement).getPropertyValue(a[1]));const s=new J0(o),i=e.dark?s.tint(20).toString():Ge(s,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?Ge(s,90):s.tint(90).toString(),"text-color":o,"border-color":e.dark?Ge(s,50):s.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":i,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":i}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?Ge(s,90):s.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?Ge(s,50):s.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?Ge(s,80):s.tint(80).toString());else{const l=e.dark?Ge(s,30):s.tint(30).toString(),u=s.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":o,"text-color":u,"border-color":o,"hover-bg-color":l,"hover-text-color":u,"hover-border-color":l,"active-bg-color":i,"active-border-color":i}),t.value){const p=e.dark?Ge(s,50):s.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=p,r[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=p}}}return r})}const Z0=k({name:"ElButton",__name:"button",props:rr,emits:L0,setup(e,{expose:t,emit:n}){const r=e,o=n,a=Y0(r),s=de("button"),{_ref:i,_size:l,_type:u,_disabled:p,_props:c,_plain:d,_round:v,_text:f,shouldAddSpace:g,handleClick:y}=D0(r,o),m=T(()=>[s.b(),s.m(u.value),s.m(l.value),s.is("disabled",p.value),s.is("loading",r.loading),s.is("plain",d.value),s.is("round",v.value),s.is("circle",r.circle),s.is("text",f.value),s.is("link",r.link),s.is("has-bg",r.bg)]);return t({ref:i,size:l,type:u,disabled:p,shouldAddSpace:g}),(_,x)=>(A(),ee(kt(_.tag),ze({ref_key:"_ref",ref:i},w(c),{class:m.value,style:w(a),onClick:w(y)}),{default:z(()=>[_.loading?(A(),H(En,{key:0},[_.$slots.loading?Y(_.$slots,"loading",{key:0}):(A(),ee(w(Vt),{key:1,class:Q(w(s).is("loading"))},{default:z(()=>[(A(),ee(kt(_.loadingIcon)))]),_:1},8,["class"]))],64)):_.icon||_.$slots.icon?(A(),ee(w(Vt),{key:1},{default:z(()=>[_.icon?(A(),ee(kt(_.icon),{key:0})):Y(_.$slots,"icon",{key:1})]),_:3})):ke("v-if",!0),_.$slots.default?(A(),H("span",{key:2,class:Q({[w(s).em("text","expand")]:w(g)})},[Y(_.$slots,"default")],2)):ke("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var X0=te(Z0,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const Q0={size:rr.size,type:rr.type,direction:{type:V(String),values:["horizontal","vertical"],default:"horizontal"}},ev=k({name:"ElButtonGroup",__name:"button-group",props:Q0,setup(e){const t=e;ve(bs,oa({size:pe(t,"size"),type:pe(t,"type")}));const n=de("button");return(r,o)=>(A(),H("div",{class:Q([w(n).b("group"),w(n).bm("group",t.direction)])},[Y(r.$slots,"default")],2))}});var ws=te(ev,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const _s=Xe(X0,{ButtonGroup:ws});hr(ws);const tv=re({a11y:{type:Boolean,default:!0},locale:{type:V(Object)},size:ka,button:{type:V(Object)},card:{type:V(Object)},dialog:{type:V(Object)},link:{type:V(Object)},experimentalFeatures:{type:V(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:V(Object)},zIndex:Number,namespace:{type:String,default:"el"},...Xc}),nv={placement:"top"},rv=k({name:"ElConfigProvider",props:tv,setup(e,{slots:t}){const n=Ba(e);return q(()=>e.message,r=>{var o,a;Object.assign(nv,(a=(o=n?.value)==null?void 0:o.message)!=null?a:{},r??{})},{immediate:!0,deep:!0}),()=>Y(t,"default",{config:n?.value})}}),ov=Xe(rv),Es=(...e)=>t=>{e.forEach(n=>{n.value=t})},av=k({inheritAttrs:!1});function sv(e,t,n,r,o,a){return Y(e.$slots,"default")}var iv=te(av,[["render",sv],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const lv=k({name:"ElCollectionItem",inheritAttrs:!1});function uv(e,t,n,r,o,a){return Y(e.$slots,"default")}var cv=te(lv,[["render",uv],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const Ss="data-el-collection-item",dv=e=>{const t=`El${e}Collection`,n=`${t}Item`,r=Symbol(t),o=Symbol(n),a=Object.assign({},iv,{name:t,setup(){const i=I(),l=new Map;ve(r,{itemMap:l,getItems:()=>{const p=w(i);if(!p)return[];const c=Array.from(p.querySelectorAll(`[${Ss}]`));return[...l.values()].sort((v,f)=>c.indexOf(v.ref)-c.indexOf(f.ref))},collectionRef:i})}}),s=Object.assign({},cv,{name:n,setup(i,{attrs:l}){const u=I(),p=K(r,void 0);ve(o,{collectionItemRef:u}),ge(()=>{const c=w(u);c&&p.itemMap.set(c,{ref:c,...l})}),we(()=>{const c=w(u);p.itemMap.delete(c)})}});return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:o,ElCollection:a,ElCollectionItem:s}},fv=re({style:{type:V([String,Array,Object])},currentTabId:{type:V(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:V(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:pv,ElCollectionItem:vv,COLLECTION_INJECTION_KEY:Cs,COLLECTION_ITEM_INJECTION_KEY:gv}=dv("RovingFocusGroup"),Mr=Symbol("elRovingFocusGroup"),Ts=Symbol("elRovingFocusGroupItem"),mv={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},hv=(e,t)=>e,bv=(e,t,n)=>{const r=ft(e),o=hv(r);return mv[o]},yv=(e,t)=>e.map((n,r)=>e[(r+t)%e.length]),Yo=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},Zo="currentTabIdChange",Xo="rovingFocusGroup.entryFocus",wv={bubbles:!1,cancelable:!0},_v=k({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:fv,emits:[Zo,"entryFocus"],setup(e,{emit:t}){var n;const r=I((n=e.currentTabId||e.defaultCurrentTabId)!=null?n:null),o=I(!1),a=I(!1),s=I(),{getItems:i}=K(Cs,void 0),l=T(()=>[{outline:"none"},e.style]),u=y=>{t(Zo,y)},p=()=>{o.value=!0},c=ae(y=>{var m;(m=e.onMousedown)==null||m.call(e,y)},()=>{a.value=!0}),d=ae(y=>{var m;(m=e.onFocus)==null||m.call(e,y)},y=>{const m=!w(a),{target:_,currentTarget:x}=y;if(_===x&&m&&!w(o)){const h=new Event(Xo,wv);if(x?.dispatchEvent(h),!h.defaultPrevented){const M=i().filter($=>$.focusable),S=M.find($=>$.active),R=M.find($=>$.id===w(r)),B=[S,R,...M].filter(Boolean).map($=>$.ref);Yo(B)}}a.value=!1}),v=ae(y=>{var m;(m=e.onBlur)==null||m.call(e,y)},()=>{o.value=!1}),f=(...y)=>{t("entryFocus",...y)},g=y=>{const m=bv(y);if(m){y.preventDefault();let x=i().filter(h=>h.focusable).map(h=>h.ref);switch(m){case"last":{x.reverse();break}case"prev":case"next":{m==="prev"&&x.reverse();const h=x.indexOf(y.currentTarget);x=e.loop?yv(x,h+1):x.slice(h+1);break}}lt(()=>{Yo(x)})}};ve(Mr,{currentTabbedId:_n(r),loop:pe(e,"loop"),tabIndex:T(()=>w(o)?-1:0),rovingFocusGroupRef:s,rovingFocusGroupRootStyle:l,orientation:pe(e,"orientation"),dir:pe(e,"dir"),onItemFocus:u,onItemShiftTab:p,onBlur:v,onFocus:d,onMousedown:c,onKeydown:g}),q(()=>e.currentTabId,y=>{r.value=y??null}),Fe(s,Xo,f)}});function Ev(e,t,n,r,o,a){return Y(e.$slots,"default")}var Sv=te(_v,[["render",Ev],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);const Cv=k({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:pv,ElRovingFocusGroupImpl:Sv}});function Tv(e,t,n,r,o,a){const s=fe("el-roving-focus-group-impl"),i=fe("el-focus-group-collection");return A(),ee(i,null,{default:z(()=>[U(s,qs(Js(e.$attrs)),{default:z(()=>[Y(e.$slots,"default")]),_:3},16)]),_:3})}var xv=te(Cv,[["render",Tv],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const Av=re({trigger:{...Nt.trigger,type:V([String,Array])},triggerKeys:{type:V(Array),default:()=>[ue.enter,ue.numpadEnter,ue.space,ue.down]},virtualTriggering:Nt.virtualTriggering,virtualRef:Nt.virtualRef,effect:{...ot.effect,default:"light"},type:{type:V(String)},placement:{type:V(String),default:"bottom"},popperOptions:{type:V(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showArrow:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:V([Number,String]),default:0},maxHeight:{type:V([Number,String]),default:""},popperClass:ot.popperClass,popperStyle:ot.popperStyle,disabled:Boolean,role:{type:String,values:Za,default:"menu"},buttonProps:{type:V(Object)},teleported:ot.teleported,appendTo:ot.appendTo,persistent:{type:Boolean,default:!0}}),xs=re({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:er}}),Ov=re({onKeydown:{type:V(Function)}}),Fn=Symbol("elDropdown"),As="elDropdown",{ButtonGroup:Iv}=_s,Rv=k({name:"ElDropdown",components:{ElButton:_s,ElButtonGroup:Iv,ElScrollbar:_f,ElTooltip:P0,ElRovingFocusGroup:xv,ElOnlyChild:ts,ElIcon:Vt,ArrowDown:Ha},props:Av,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=ye(),r=de("dropdown"),{t:o}=Fa(),a=I(),s=I(),i=I(),l=I(),u=I(null),p=I(null),c=I(!1),d=T(()=>({maxHeight:hn(e.maxHeight)})),v=T(()=>[r.m(h.value)]),f=T(()=>Cu(e.trigger)),g=In().value,y=T(()=>e.id||g);function m(){var N;(N=i.value)==null||N.onClose(void 0,0)}function _(){var N;(N=i.value)==null||N.onClose()}function x(){var N;(N=i.value)==null||N.onOpen()}const h=qa();function M(...N){t("command",...N)}function S(){}function R(){const N=w(l);f.value.includes("hover")&&N?.focus({preventScroll:!0}),p.value=null}function P(N){p.value=N}function B(){t("visible-change",!0)}function $(N){var E;c.value=N?.type==="keydown",(E=l.value)==null||E.focus()}function j(){t("visible-change",!1)}return ve(Fn,{contentRef:l,role:T(()=>e.role),triggerId:y,isUsingKeyboard:c,onItemEnter:S,onItemLeave:R,handleClose:_}),ve(As,{instance:n,dropdownSize:h,handleClick:m,commandHandler:M,trigger:pe(e,"trigger"),hideOnClick:pe(e,"hideOnClick")}),{t:o,ns:r,scrollbar:u,wrapStyle:d,dropdownTriggerKls:v,dropdownSize:h,triggerId:y,currentTabId:p,handleCurrentTabIdChange:P,handlerMainButtonClick:N=>{t("click",N)},handleClose:_,handleOpen:x,handleBeforeShowTooltip:B,handleShowTooltip:$,handleBeforeHideTooltip:j,popperRef:i,contentRef:l,triggeringElementRef:a,referenceElementRef:s}}});function Pv(e,t,n,r,o,a){var s;const i=fe("el-roving-focus-group"),l=fe("el-scrollbar"),u=fe("el-only-child"),p=fe("el-tooltip"),c=fe("el-button"),d=fe("arrow-down"),v=fe("el-icon"),f=fe("el-button-group");return A(),H("div",{class:Q([e.ns.b(),e.ns.is("disabled",e.disabled)])},[U(p,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"popper-style":e.popperStyle,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-arrow":e.showArrow,"show-after":e.trigger==="hover"?e.showTimeout:0,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"virtual-ref":(s=e.virtualRef)!=null?s:e.triggeringElementRef,"virtual-triggering":e.virtualTriggering||e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,"append-to":e.appendTo,pure:"","focus-on-target":"",persistent:e.persistent,onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},Ys({content:z(()=>[U(l,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:z(()=>[U(i,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange},{default:z(()=>[Y(e.$slots,"dropdown")]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:z(()=>[U(u,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:z(()=>[Y(e.$slots,"default")]),_:3},8,["id","tabindex"])]),key:"0"}]),1032,["role","effect","popper-options","placement","popper-class","popper-style","trigger","trigger-keys","trigger-target-el","show-arrow","show-after","hide-after","virtual-ref","virtual-triggering","disabled","transition","teleported","append-to","persistent","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(A(),ee(f,{key:0},{default:z(()=>[U(c,ze({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:z(()=>[Y(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),U(c,ze({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:z(()=>[U(v,{class:Q(e.ns.e("icon"))},{default:z(()=>[U(d)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):ke("v-if",!0)],2)}var Fv=te(Rv,[["render",Pv],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const Dv=k({components:{ElRovingFocusCollectionItem:vv},props:{focusable:{type:Boolean,default:!0},active:Boolean},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,onItemFocus:r,onItemShiftTab:o,onKeydown:a}=K(Mr,void 0),s=In(),i=I(),l=ae(d=>{t("mousedown",d)},d=>{e.focusable?r(w(s)):d.preventDefault()}),u=ae(d=>{t("focus",d)},()=>{r(w(s))}),p=ae(d=>{t("keydown",d)},d=>{const{shiftKey:v,target:f,currentTarget:g}=d;if(ft(d)===ue.tab&&v){o();return}f===g&&a(d)}),c=T(()=>n.value===w(s));return ve(Ts,{rovingFocusGroupItemRef:i,tabIndex:T(()=>w(c)?0:-1),handleMousedown:l,handleFocus:u,handleKeydown:p}),{id:s,handleKeydown:p,handleFocus:u,handleMousedown:l}}});function kv(e,t,n,r,o,a){const s=fe("el-roving-focus-collection-item");return A(),ee(s,{id:e.id,focusable:e.focusable,active:e.active},{default:z(()=>[Y(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var Mv=te(Dv,[["render",kv],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const Lv=k({name:"DropdownItemImpl",components:{ElIcon:Vt},props:xs,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=de("dropdown"),{role:r}=K(Fn,void 0),{collectionItemRef:o}=K(gv,void 0),{rovingFocusGroupItemRef:a,tabIndex:s,handleFocus:i,handleKeydown:l,handleMousedown:u}=K(Ts,void 0),p=Es(o,a),c=T(()=>r.value==="menu"?"menuitem":r.value==="navigation"?"link":"button"),d=ae(v=>{const f=ft(v);if([ue.enter,ue.numpadEnter,ue.space].includes(f))return v.preventDefault(),v.stopImmediatePropagation(),t("clickimpl",v),!0},l);return{ns:n,itemRef:p,dataset:{[Ss]:""},role:c,tabIndex:s,handleFocus:i,handleKeydown:d,handleMousedown:u}}}),Bv=["aria-disabled","tabindex","role"];function Nv(e,t,n,r,o,a){const s=fe("el-icon");return A(),H(En,null,[e.divided?(A(),H("li",{key:0,role:"separator",class:Q(e.ns.bem("menu","item","divided"))},null,2)):ke("v-if",!0),F("li",ze({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]=fn((...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?(A(),ee(s,{key:0},{default:z(()=>[(A(),ee(kt(e.icon)))]),_:1})):ke("v-if",!0),Y(e.$slots,"default")],16,Bv)],64)}var $v=te(Lv,[["render",Nv],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const Os=()=>{const e=K(As,{}),t=T(()=>e?.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},Hv=k({name:"ElDropdownItem",components:{ElRovingFocusItem:Mv,ElDropdownItemImpl:$v},inheritAttrs:!1,props:xs,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:r}=Os(),o=ye(),{onItemEnter:a,onItemLeave:s}=K(Fn,void 0),i=ae(c=>(t("pointermove",c),c.defaultPrevented),ko(c=>{if(e.disabled){s(c);return}const d=c.currentTarget;d===document.activeElement||d.contains(document.activeElement)||(a(c),c.defaultPrevented||d?.focus({preventScroll:!0}))})),l=ae(c=>(t("pointerleave",c),c.defaultPrevented),ko(s)),u=ae(c=>{if(!e.disabled)return t("click",c),c.type!=="keydown"&&c.defaultPrevented},c=>{var d,v,f;if(e.disabled){c.stopImmediatePropagation();return}(d=r?.hideOnClick)!=null&&d.value&&((v=r.handleClick)==null||v.call(r)),(f=r.commandHandler)==null||f.call(r,e.command,o,c)}),p=T(()=>({...e,...n}));return{handleClick:u,handlePointerMove:i,handlePointerLeave:l,propsAndAttrs:p}}});function zv(e,t,n,r,o,a){const s=fe("el-dropdown-item-impl"),i=fe("el-roving-focus-item");return A(),ee(i,{focusable:!e.disabled},{default:z(()=>[U(s,ze(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:z(()=>[Y(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])}var Is=te(Hv,[["render",zv],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const Vv=k({name:"ElDropdownMenu",props:Ov,setup(e){const t=de("dropdown"),{_elDropdownSize:n}=Os(),r=n.value,{contentRef:o,role:a,triggerId:s,isUsingKeyboard:i,handleClose:l}=K(Fn,void 0),{rovingFocusGroupRef:u,rovingFocusGroupRootStyle:p,onBlur:c,onFocus:d,onKeydown:v,onMousedown:f}=K(Mr,void 0),{collectionRef:g}=K(Cs,void 0),y=T(()=>[t.b("menu"),t.bm("menu",r?.value)]),m=Es(o,u,g),_=ae(h=>{var M;(M=e.onKeydown)==null||M.call(e,h)},h=>{const{currentTarget:M,target:S}=h,R=ft(h);if(M.contains(S),ue.tab===R)return l();v(h)});function x(h){i.value&&d(h)}return{size:r,rovingFocusGroupRootStyle:p,dropdownKls:y,role:a,triggerId:s,dropdownListWrapperRef:m,handleKeydown:_,onBlur:c,handleFocus:x,onMousedown:f}}}),jv=["role","aria-labelledby"];function Uv(e,t,n,r,o,a){return A(),H("ul",{ref:e.dropdownListWrapperRef,class:Q(e.dropdownKls),style:$t(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onFocusin:t[0]||(t[0]=(...s)=>e.handleFocus&&e.handleFocus(...s)),onFocusout:t[1]||(t[1]=(...s)=>e.onBlur&&e.onBlur(...s)),onKeydown:t[2]||(t[2]=fn((...s)=>e.handleKeydown&&e.handleKeydown(...s),["self"])),onMousedown:t[3]||(t[3]=fn((...s)=>e.onMousedown&&e.onMousedown(...s),["self"]))},[Y(e.$slots,"default")],46,jv)}var Rs=te(Vv,[["render",Uv],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);const Kv=Xe(Fv,{DropdownItem:Is,DropdownMenu:Rs}),Wv=hr(Is),Gv=hr(Rs);var qv={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值",alphaDescription:"透明度 {alpha}, 当前颜色 {color}",hueLabel:"选择色相值",hueDescription:"色相 {hue}, 当前颜色 {color}",svLabel:"选择饱和度与明度的值",svDescription:"饱和度 {saturation}, 明度 {brightness}, 当前颜色 {color}",predefineDescription:"选择 {value} 作为颜色"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},mention:{loading:"加载中"},dropdown:{toggleDropdown:"切换下拉选项"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 Delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计",selectAllLabel:"选择所有行",selectRowLabel:"选择当前行",expandRowLabel:"展开当前行",collapseRowLabel:"收起当前行",sortLabel:"按 {column} 排序",filterLabel:"按 {column} 过滤"},tag:{close:"关闭此标签"},tour:{next:"下一步",previous:"上一步",finish:"结束导览",close:"关闭此对话框"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}};const ht=I("system");function Ps(){const e=()=>{ht.value==="dark"||ht.value==="system"&&window.matchMedia("(prefers-color-scheme: dark)").matches?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")},t=n=>{ht.value=n,localStorage.setItem("theme",n),e()};return ge(()=>{const n=localStorage.getItem("theme");n&&(ht.value=n),e(),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{ht.value==="system"&&e()})}),{theme:ht,setTheme:t}}class Kn extends Error{status;data;constructor(t,n,r){super(n),this.status=t,this.data=r,this.name="HttpError"}}async function ln(e,t={}){const n={};t.body&&(n["Content-Type"]="application/json"),t.headers&&Object.assign(n,t.headers);try{const r=await fetch(e,{...t,headers:n}),o=await r.json().catch(()=>({}));if(!r.ok)throw new Kn(r.status,o.error||o.message||`Request failed with status ${r.status}`,o);return o}catch(r){throw r instanceof Kn?r:new Kn(0,r instanceof Error?r.message:"Network error")}}const J={get:(e,t)=>ln(e,{method:"GET",headers:t}),post:(e,t,n)=>ln(e,{method:"POST",body:JSON.stringify(t),headers:n}),put:(e,t,n)=>ln(e,{method:"PUT",body:JSON.stringify(t),headers:n}),delete:(e,t)=>ln(e,{method:"DELETE",headers:t})};class Jv{constructor(t){this.url=t}ws=null;reconnectAttempts=0;maxReconnectAttempts=5;reconnectDelay=1e3;heartbeatInterval;connect(t,n,r,o){this.ws=new WebSocket(this.url),this.ws.onopen=()=>{this.reconnectAttempts=0,n?.(),this.startHeartbeat()},this.ws.onmessage=a=>{const s=JSON.parse(a.data);t(s)},this.ws.onclose=()=>{this.stopHeartbeat(),r?.(),this.attemptReconnect(t,n,r,o)},this.ws.onerror=a=>{o?.(a)}}send(t){this.ws?.readyState===WebSocket.OPEN&&this.ws.send(JSON.stringify(t))}attemptReconnect(t,n,r,o){this.reconnectAttempts<this.maxReconnectAttempts&&(this.reconnectAttempts++,setTimeout(()=>{this.connect(t,n,r,o)},this.reconnectDelay*this.reconnectAttempts))}startHeartbeat(){this.heartbeatInterval=window.setInterval(()=>{this.send({type:"ping",timestamp:Date.now()})},3e4)}stopHeartbeat(){this.heartbeatInterval&&window.clearInterval(this.heartbeatInterval)}disconnect(){this.stopHeartbeat(),this.ws?.close()}}function Yv(e){return new Jv(e)}const Zv=Sn("toolCalls",()=>{const e=I(new Map),t=T(()=>Array.from(e.value.values()).filter(l=>l.status==="running"));function n(l){e.value.set(l.requestId,l)}function r(l){return e.value.get(l)}function o(l,u,p){const c=e.value.get(l);c&&(c.status=p?"error":"completed",c.endTime=Date.now(),c.result=p?void 0:u,c.error=p)}function a(l){n({requestId:l.requestId,serverName:l.serverName,serverIndex:l.serverIndex,toolName:l.toolName,startTime:l.timestamp,status:"running",args:l.args,progress:0})}function s(l){o(l.requestId,l.result)}function i(l){o(l.requestId,void 0,l.error)}return{calls:e,runningCalls:t,updateCall:n,getCall:r,completeCall:o,handleToolCallStarted:a,handleToolCallCompleted:s,handleToolCallError:i}});function ar(e,t){const n={...e};for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const o=e[r],a=t[r];typeof o=="object"&&o!==null&&typeof a=="object"&&a!==null&&!Array.isArray(o)&&!Array.isArray(a)?n[r]=ar(o,a):n[r]=a}return n}const Lr=Sn("system",()=>{const e=I({system:{host:"localhost",port:7788,language:"zh",theme:"system",logging:{level:"info",rotationAge:"7d",jsonPretty:!0,mcpCommDebug:!1,apiDebug:!1,gatewayDebug:!1},startup:{startupDelay:3e3,readyTimeout:12e4,maxConnectRetries:3,connectRetryDelay:5e3}},security:{allowedNetworks:[],maxConcurrentConnections:50,connectionTimeout:3e4,idleConnectionTimeout:3e5,maxConnections:50},tagDefinitions:[],isDevMode:!1}),t=I(!1),n=I(null);async function r(){t.value=!0;try{const a=await J.get("/web/config");return e.value=ar(e.value,a),e.value}catch(a){const s=a;throw n.value=s.message||"Failed to fetch config",console.error("Fetch config error:",a),a}finally{t.value=!1}}async function o(a){t.value=!0;try{await J.put("/web/config",a),e.value=ar(e.value,a)}catch(s){const i=s;throw n.value=i.message||"Failed to update config",s}finally{t.value=!1}}return{config:e,loading:t,error:n,fetchConfig:r,updateConfig:o}}),G={SERVER_STATUS:"server-status",LOG:"log",TOOLS:"tools",RESOURCES:"resources",SERVER_ADDED:"server-added",SERVER_UPDATED:"server-updated",SERVER_DELETED:"server-deleted",SERVER_CONNECTED:"server-connected",SERVER_DISCONNECTED:"server-disconnected",TOOL_CALL_STARTED:"tool-call-started",TOOL_CALL_COMPLETED:"tool-call-completed",TOOL_CALL_ERROR:"tool-call-error",CONFIGURATION_UPDATED:"configuration-updated",CLIENT_CONNECTED:"client-connected",CLIENT_DISCONNECTED:"client-disconnected",PONG:"pong"},Fs=Sn("websocket",()=>{const e=I(!1),t=I(null),n=Ds();function r(S,R,P=100,B){t.value&&t.value.send({type:"fetch-logs",serverName:S,serverIndex:R,limit:P,since:B})}function o(){const S=window.location.protocol==="https:"?"wss:":"ws:",R=window.location.host,P=`${S}//${R}/ws`,B=Yv(P);B.connect($=>{l($)},()=>{e.value=!0,console.log("WebSocket connected"),B.send({type:"subscribe",eventTypes:[G.SERVER_STATUS,G.LOG,G.TOOLS,G.RESOURCES,G.SERVER_ADDED,G.SERVER_UPDATED,G.SERVER_DELETED,G.SERVER_CONNECTED,G.SERVER_DISCONNECTED,G.TOOL_CALL_STARTED,G.TOOL_CALL_COMPLETED,G.TOOL_CALL_ERROR,G.CONFIGURATION_UPDATED,G.CLIENT_CONNECTED,G.CLIENT_DISCONNECTED]})},()=>{e.value=!1,console.log("WebSocket disconnected")},$=>{console.error("WebSocket error:",$)}),t.value=B}function a(){t.value?.disconnect(),t.value=null,e.value=!1}const s=Zv(),i=Lr();function l(S){switch(console.log("Received WebSocket message:",S),S.type){case G.SERVER_STATUS:d(S);break;case G.LOG:v(S);break;case G.TOOLS:f(S);break;case G.RESOURCES:g(S);break;case G.SERVER_ADDED:y(S);break;case G.SERVER_UPDATED:m(S);break;case G.SERVER_DELETED:_(S);break;case G.SERVER_CONNECTED:x(S);break;case G.SERVER_DISCONNECTED:h(S);break;case G.TOOL_CALL_STARTED:s.handleToolCallStarted(S.data);break;case G.TOOL_CALL_COMPLETED:s.handleToolCallCompleted(S.data);break;case G.TOOL_CALL_ERROR:s.handleToolCallError(S.data);break;case G.CONFIGURATION_UPDATED:u(S);break;case G.CLIENT_CONNECTED:p(S);break;case G.CLIENT_DISCONNECTED:c(S);break;case G.PONG:break;default:console.warn("Unknown WebSocket message type:",S.type)}}function u(S){console.log("Configuration updated:",S.data),i.fetchConfig()}function p(S){console.log("Client connected:",S.data)}function c(S){console.log("Client disconnected:",S.data)}function d(S){const{serverName:R,status:P,error:B}=S.data;n.updateServerStatus(R,M(P)),B&&console.error(`Server ${R} error:`,B)}function v(S){const{serverName:R,logs:P}=S.data,B=n.servers.find($=>$.id===R);if(B&&P&&P.length>0){if(P.length>1)B.logs=P;else{const j=P[0];j&&j.timestamp&&B.logs.push({timestamp:j.timestamp,level:j.level,message:j.message})}const $=1e3;B.logs.length>$&&B.logs.splice(0,B.logs.length-$)}}function f(S){const{serverName:R,tools:P}=S.data,B=n.servers.find($=>$.id===R);B&&(B.tools=P,B.toolsCount=P.length)}function g(S){const{serverName:R,resources:P}=S.data,B=n.servers.find($=>$.id===R);B&&(B.resources=P,B.resourcesCount=P.length)}function y(S){console.log("Server added:",S.data),n.fetchServers()}function m(S){console.log("Server updated:",S.data),n.fetchServers()}function _(S){console.log("Server deleted:",S.data),n.fetchServers()}function x(S){const{serverName:R}=S.data;n.updateServerStatus(R,"online")}function h(S){const{serverName:R}=S.data;n.updateServerStatus(R,"offline")}function M(S){return["online","offline","error","starting","stopping"].includes(S)?S:"starting"}return ge(()=>{o()}),we(()=>{a()}),{connected:e,connect:o,disconnect:a,fetchLogs:r}});function Qo(e,t){return{command:e.command,args:e.args??[],env:{...e.env,...t.env},headers:{...e.headers,...t.headers},type:e.type||"stdio",timeout:e.timeout??6e4,url:e.url,aggregatedTools:e.aggregatedTools??[],description:e.description,tags:t.tags,proxy:t.proxy??e.proxy,enabled:t.enabled!==!1}}const Ds=Sn("server",()=>{const e=I([]),t=I(!1),n=I(null),r=I(null),o=T(()=>e.value.find(E=>E.id===r.value)),a=T(()=>({total:e.value.length,online:e.value.filter(E=>E.status==="online").length,errors:e.value.filter(E=>E.status==="error").length}));function s(E){r.value=E}async function i(){t.value=!0,n.value=null;try{const[E,b]=await Promise.all([J.get("/web/servers"),J.get("/web/mcp/status")]),O=new Map(e.value.map(Z=>[Z.id,Z.logs])),C=new Map(e.value.map(Z=>[Z.id,Z.tools])),L=new Map(e.value.map(Z=>[Z.id,Z.resources])),W=[];E.forEach(({name:Z,config:se})=>{if(se&&typeof se=="object"&&"instanceSelectionStrategy"in se&&se.instanceSelectionStrategy!==void 0){const ne=se,le=ne.instanceSelectionStrategy;typeof le=="string"&&(se.template.instanceSelectionStrategy=le),delete ne.instanceSelectionStrategy}const oe=se.template,Ne=se.instances||[];if(Ne.length>0){const ne=Z,le=Ne.map(Re=>{const _e=b.find(Mn=>Mn.id===Re.id)?.status;let We;return _e?.connected?We="online":_e?.error?We="error":We="offline",{id:Re.id,timestamp:Re.timestamp??Date.now(),index:Re.index,displayName:Re.displayName,status:We}}),$e=Ne[0],et=Qo(oe,$e);let Ie=!1,Yt=!1,Zt=0,pt=0,Rt,Pt,Xt;Ne.forEach(Re=>{const _e=b.find(We=>We.id===Re.id)?.status;_e?.connected?(Ie=!0,Rt||(Rt=_e.startTime,Pt=_e.pid,Xt=_e.version)):_e?.error&&(Yt=!0),Zt+=_e?.toolsCount??0,pt+=_e?.resourcesCount??0});const kn=Ie?"online":Yt?"error":"offline";W.push({id:ne,name:Z,status:kn,type:oe.type==="sse"||oe.type==="streamable-http"||oe.type==="http"?"remote":"local",config:et,instances:le,logs:O.get(ne)||[],tools:C.get(ne),resources:L.get(ne),uptime:Ie?"Active":void 0,startTime:Rt??$e.startTime,pid:Pt??$e.pid,toolsCount:Zt,resourcesCount:pt,version:Xt,rawV11Config:se})}else{const ne=`config-${Z}-${Date.now()}`,le=Qo(oe,{id:ne});W.push({id:ne,name:Z,status:"offline",type:oe.type==="sse"||oe.type==="streamable-http"||oe.type==="http"?"remote":"local",config:le,instance:{id:ne,timestamp:Date.now()},logs:O.get(ne)||[],tools:C.get(ne),resources:L.get(ne),uptime:void 0,startTime:void 0,pid:void 0,toolsCount:0,resourcesCount:0,version:void 0,rawV11Config:se})}}),e.value=W}catch(E){E instanceof Error?n.value=E.message||"Failed to fetch servers":n.value=String(E)||"Failed to fetch servers",console.error("Fetch servers error:",E)}finally{t.value=!1}}async function l(E){t.value=!0;try{const b={name:E.name||"Unnamed Server",config:E.config||{}};if(await J.post("/web/servers",b),E.config?.enabled){await i();const O=e.value.find(C=>C.name===E.name);O&&(S(O.id,"starting"),setTimeout(async()=>{await i()},1e3))}else await i()}catch(b){throw b instanceof Error?n.value=b.message||"Failed to add server":n.value=String(b)||"Failed to add server",b}finally{t.value=!1}}async function u(E,b){t.value=!0;try{const O=e.value.find(C=>C.id===E);if(!O)throw new Error("Server not found");if(b.name&&b.name!==O.name&&await J.put(`/web/servers/${O.name}`,{name:b.name}),b.config){const C={};b.config.command&&(C.command=b.config.command),b.config.args&&(C.args=b.config.args),b.config.env&&(C.env=b.config.env),b.config.headers!==void 0&&(C.headers=b.config.headers),b.config.url&&(C.url=b.config.url),b.config.timeout!==void 0&&(C.timeout=b.config.timeout),b.config.aggregatedTools!==void 0&&(C.aggregatedTools=b.config.aggregatedTools),b.config.type&&(C.type=b.config.type),b.config.description!==void 0&&(C.description=b.config.description),O.rawV11Config?.template.instanceSelectionStrategy!==void 0&&(C.instanceSelectionStrategy=O.rawV11Config.template.instanceSelectionStrategy),await J.put(`/web/servers/${O.name}`,C)}await i()}catch(O){throw O instanceof Error?n.value=O.message||"Failed to update server":n.value=String(O)||"Failed to update server",O}finally{t.value=!1}}function p(E){for(const b of e.value)if(b.instances?.some(O=>O.id===E))return b}async function c(E){try{console.log("[startServer] Starting server/instance:",E);const b=e.value.find(C=>C.id===E);let O=E;if(b&&E.startsWith("config-"))S(E,"starting"),O=(await J.post(`/web/server-instances/${b.name}`,{})).id;else{const C=p(E);if(C){const L=C.instances?.find(W=>W.id===E);L&&(L.status="starting"),S(C.id,"starting"),console.log("[startServer] Updated instance status to starting:",E)}}await J.post(`/web/mcp/servers/${O}/connect`,{}),await i()}catch(b){try{await i()}catch(O){console.error("Failed to fetch servers after start error:",O)}throw b instanceof Error?n.value=b.message||"Failed to start server":n.value=String(b)||"Failed to start server",b}}async function d(E){try{if(console.log("[stopServer] Stopping server/instance:",E),e.value.find(O=>O.id===E)&&E.startsWith("config-")){await i();return}await J.post(`/web/mcp/servers/${E}/disconnect`,{}),await i()}catch(b){throw b instanceof Error?n.value=b.message||"Failed to stop server":n.value=String(b)||"Failed to stop server",b}}async function v(E){try{const b=e.value.find(O=>O.id===E);if(b)if(E.startsWith("config-"))await J.delete(`/web/servers/${b.name}`);else{const C=(await J.get("/web/server-instances"))[b.name]||[];if(C.length>1){const L=C.findIndex(W=>W.id===E);L!==-1&&await J.delete(`/web/server-instances/${b.name}/${L}`)}else await J.delete(`/web/servers/${b.name}`)}await i(),r.value===E&&(r.value=null)}catch(b){throw b instanceof Error?n.value=b.message||"Failed to delete server":n.value=String(b)||"Failed to delete server",b}}async function f(E){t.value=!0;try{await J.post(`/web/server-instances/${E}`,{}),await i()}catch(b){throw b instanceof Error?n.value=b.message||"Failed to add server instance":n.value=String(b)||"Failed to add server instance",b}finally{t.value=!1}}async function g(E,b,O){t.value=!0;try{await J.put(`/web/server-instances/${E}/${b}`,O),await i()}catch(C){throw C instanceof Error?n.value=C.message||"Failed to update server instance":n.value=String(C)||"Failed to update server instance",C}finally{t.value=!1}}async function y(E,b){t.value=!0;try{await J.delete(`/web/server-instances/${E}/${b}`),await i()}catch(O){throw O instanceof Error?n.value=O.message||"Failed to remove server instance":n.value=String(O)||"Failed to remove server instance",O}finally{t.value=!1}}async function m(E){t.value=!0;try{await J.post(`/web/server-instances/${E}/reassign-indexes`,{}),await i()}catch(b){throw b instanceof Error?n.value=b.message||"Failed to reassign instance indexes":n.value=String(b)||"Failed to reassign instance indexes",b}finally{t.value=!1}}async function _(E){try{const b=e.value.find(C=>C.name===E);if(!b?.instances)return;const O=b.instances.filter(C=>C.status==="offline"||C.status==="error");O.forEach(C=>{S(C.id,"starting")});for(const C of O)if(!C.id.startsWith("config-"))try{console.log("[startAllServerInstances] Starting instance:",C.id),await J.post(`/web/mcp/servers/${C.id}/connect`,{})}catch(L){console.error(`Failed to start instance ${C.id}:`,L)}await i()}catch(b){throw b instanceof Error?n.value=b.message||"Failed to start server instances":n.value=String(b)||"Failed to start server instances",b}}async function x(E){try{const b=e.value.find(C=>C.name===E);if(!b?.instances)return;const O=b.instances.filter(C=>C.status==="online"||C.status==="starting");for(const C of O)if(!C.id.startsWith("config-"))try{console.log("[stopAllServerInstances] Stopping instance:",C.id),await J.post(`/web/mcp/servers/${C.id}/disconnect`,{})}catch(L){console.error(`Failed to stop instance ${C.id}:`,L)}await i()}catch(b){throw b instanceof Error?n.value=b.message||"Failed to stop server instances":n.value=String(b)||"Failed to stop server instances",b}}async function h(E){try{const b=e.value.find(C=>C.name===E);if(!b?.instances)return;const O=b.instances;O.forEach(C=>{S(C.id,"starting")});for(const C of O)if(!C.id.startsWith("config-"))try{console.log("[restartAllServerInstances] Restarting instance:",C.id),C.status==="online"&&await J.post(`/web/mcp/servers/${C.id}/disconnect`,{}),await J.post(`/web/mcp/servers/${C.id}/connect`,{})}catch(L){console.error(`Failed to restart instance ${C.id}:`,L)}await i()}catch(b){throw b instanceof Error?n.value=b.message||"Failed to restart server instances":n.value=String(b)||"Failed to restart server instances",b}}async function M(E){t.value=!0;try{const b={mcpServers:Object.entries(E.mcpServers).map(([C,L])=>({name:C,config:L}))},O=await J.post("/web/servers/batch",b);return await i(),O.data}catch(b){throw b instanceof Error?n.value=b.message||"Failed to import servers":n.value=String(b)||"Failed to import servers",b}finally{t.value=!1}}function S(E,b){const O=e.value.find(L=>L.id===E);if(O){O.status=b;return}const C=p(E);if(C){const L=C.instances?.find(oe=>oe.id===E);L&&(L.status=b);let W=!1,Z=!1,se=!1;for(const oe of C.instances||[])if(oe.status==="online"){W=!0;break}else oe.status==="error"?Z=!0:oe.status==="starting"&&(se=!0);W?C.status="online":Z?C.status="error":se?C.status="starting":C.status="offline",console.log("[updateServerStatus] Updated instance status:",E,"->",b,"Aggregated:",C.status)}}async function R(E){try{const b=await J.get(`/web/mcp/servers/${E}/tools`),O=e.value.find(C=>C.name===E);return O&&(O.tools=b),b}catch(b){return console.error("Fetch tools error:",b),[]}}async function P(E){try{const b=await J.get(`/web/mcp/servers/${E}/resources`),O=e.value.find(C=>C.name===E);return O&&(O.resources=b),b}catch(b){return console.error("Fetch resources error:",b),[]}}function B(E,b=0){Fs().fetchLogs(E,b,100)}async function $(E){try{await J.delete(`/web/servers/${E}/logs`);const b=e.value.find(O=>O.id===E);b&&(b.logs=[])}catch(b){console.error("Clear logs error:",b)}}function j(){e.value.forEach(E=>B(E.id,0))}async function D(E,b){try{const O=`/web/servers/${encodeURIComponent(E)}/resources/read?uri=${encodeURIComponent(b)}`,C=await J.get(O);if(!C.contents||C.contents.length===0)throw new Error("Resource content is empty");return C.contents[0]}catch(O){throw console.error("Failed to read resource:",O),O}}async function N(){try{return(await J.get("/web/resources")).resources}catch(E){throw console.error("Failed to fetch all resources:",E),E}}return{servers:e,loading:t,error:n,selectedServerId:r,selectedServer:o,stats:a,selectServer:s,fetchServers:i,addServer:l,updateServer:u,startServer:c,stopServer:d,deleteServer:v,importServersFromJson:M,updateServerStatus:S,fetchTools:R,fetchResources:P,fetchLogs:B,fetchAllLogs:j,clearLogs:$,readResource:D,fetchAllResources:N,addServerInstance:f,updateServerInstance:g,removeServerInstance:y,reassignInstanceIndexes:m,startAllServerInstances:_,stopAllServerInstances:x,restartAllServerInstances:h,findServerByInstanceId:p}}),Xv={class:"h-14 px-4 flex items-center justify-between bg-white dark:bg-[#1e293b] border-b border-gray-200 dark:border-gray-700 transition-colors duration-300 shrink-0 z-50"},Qv={class:"flex items-center gap-8"},e2={class:"hidden md:flex items-center gap-1"},t2={class:"flex items-center gap-3"},n2={class:"p-1.5 rounded-md hover:bg-gray-100 dark:hover:bg-gray-700 text-gray-600 dark:text-gray-300 transition-colors flex items-center justify-center"},r2={class:"flex items-center gap-1 px-2 py-1.5 rounded-md hover:bg-gray-100 dark:hover:bg-gray-700 text-gray-600 dark:text-gray-300 transition-colors text-sm font-medium"},o2=k({__name:"HeaderView",setup(e){const{locale:t}=sa(),{theme:n,setTheme:r}=Ps(),o=Ds(),a=Lr(),s=Zs(),i=Xs(),l=T(()=>i.name==="dashboard"&&!o.selectedServerId),u=T(()=>i.name==="servers"),p=T(()=>i.name==="tools"),c=T(()=>i.name==="resources"||i.name==="resource-detail"),d=T(()=>i.name==="settings"),v=y=>{r(y),a.updateConfig({theme:y})},f=y=>{t.value=y,a.updateConfig({language:y})},g=y=>{o.selectedServerId=null,s.push({name:y})};return(y,m)=>{const _=Vt,x=Wv,h=Gv,M=Kv;return A(),H("header",Xv,[F("div",Qv,[F("div",{class:"flex items-center gap-2 font-bold text-xl text-gray-900 dark:text-white cursor-pointer",onClick:m[0]||(m[0]=S=>g("dashboard"))},[U(_,{class:"text-blue-600 dark:text-blue-400"},{default:z(()=>[U(w(Td))]),_:1}),m[6]||(m[6]=F("span",null,"MCP Hub Lite",-1))]),F("nav",e2,[F("button",{onClick:m[1]||(m[1]=S=>g("dashboard")),class:Q(["px-3 py-1.5 rounded-md text-sm font-medium transition-colors",[l.value?"bg-gray-100 dark:bg-gray-700 text-blue-600 dark:text-blue-400":"text-gray-600 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800"]])},rt(y.$t("sidebar.dashboard")),3),F("button",{onClick:m[2]||(m[2]=S=>g("servers")),class:Q(["px-3 py-1.5 rounded-md text-sm font-medium transition-colors",[u.value?"bg-gray-100 dark:bg-gray-700 text-blue-600 dark:text-blue-400":"text-gray-600 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800"]])},rt(y.$t("sidebar.servers")),3),F("button",{onClick:m[3]||(m[3]=S=>g("tools")),class:Q(["px-3 py-1.5 rounded-md text-sm font-medium transition-colors",[p.value?"bg-gray-100 dark:bg-gray-700 text-blue-600 dark:text-blue-400":"text-gray-600 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800"]])},rt(y.$t("tools.title")),3),F("button",{onClick:m[4]||(m[4]=S=>g("resources")),class:Q(["px-3 py-1.5 rounded-md text-sm font-medium transition-colors",[c.value?"bg-gray-100 dark:bg-gray-700 text-blue-600 dark:text-blue-400":"text-gray-600 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800"]])},rt(y.$t("sidebar.resources")),3),F("button",{onClick:m[5]||(m[5]=S=>g("settings")),class:Q(["px-3 py-1.5 rounded-md text-sm font-medium transition-colors",[d.value?"bg-gray-100 dark:bg-gray-700 text-blue-600 dark:text-blue-400":"text-gray-600 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800"]])},rt(y.$t("sidebar.settings")),3)])]),F("div",t2,[U(M,{trigger:"click",onCommand:v},{dropdown:z(()=>[U(h,null,{default:z(()=>[U(x,{command:"light",class:Q({"text-blue-500":w(n)==="light"})},{default:z(()=>[U(_,null,{default:z(()=>[U(w(Eo))]),_:1}),m[7]||(m[7]=vt(" Light ",-1))]),_:1},8,["class"]),U(x,{command:"dark",class:Q({"text-blue-500":w(n)==="dark"})},{default:z(()=>[U(_,null,{default:z(()=>[U(w(_o))]),_:1}),m[8]||(m[8]=vt(" Dark ",-1))]),_:1},8,["class"]),U(x,{command:"system",class:Q({"text-blue-500":w(n)==="system"})},{default:z(()=>[U(_,null,{default:z(()=>[U(w(wo))]),_:1}),m[9]||(m[9]=vt(" System ",-1))]),_:1},8,["class"])]),_:1})]),default:z(()=>[F("button",n2,[w(n)==="light"?(A(),ee(_,{key:0,size:18},{default:z(()=>[U(w(Eo))]),_:1})):w(n)==="dark"?(A(),ee(_,{key:1,size:18},{default:z(()=>[U(w(_o))]),_:1})):(A(),ee(_,{key:2,size:18},{default:z(()=>[U(w(wo))]),_:1}))])]),_:1}),U(M,{trigger:"click",onCommand:f},{dropdown:z(()=>[U(h,null,{default:z(()=>[U(x,{command:"en",class:Q({"text-blue-500":w(t)==="en"})},{default:z(()=>[...m[10]||(m[10]=[vt("English",-1)])]),_:1},8,["class"]),U(x,{command:"zh",class:Q({"text-blue-500":w(t)==="zh"})},{default:z(()=>[...m[11]||(m[11]=[vt("中文",-1)])]),_:1},8,["class"])]),_:1})]),default:z(()=>[F("button",r2,[vt(rt(w(t)==="zh"?"中文":"EN")+" ",1),U(_,{size:12},{default:z(()=>[U(w(Ha))]),_:1})])]),_:1})])])}}}),a2={class:"flex-1 flex overflow-hidden relative"},s2=k({__name:"App",setup(e){const{locale:t}=sa(),{theme:n,setTheme:r}=Ps(),o=Lr();Fs();const a=T(()=>t.value==="zh"?qv:Ra);return ge(async()=>{if(await o.fetchConfig(),o.config.system.language&&(t.value=o.config.system.language),o.config.system.theme){const s=o.config.system.theme;r(s)}}),q(()=>o.config.system.theme,s=>{s&&s!==n.value&&r(s)}),q(()=>o.config.system.language,s=>{s&&s!==t.value&&(t.value=s)}),(s,i)=>{const l=fe("router-view"),u=ov;return A(),ee(u,{locale:a.value},{default:z(()=>[F("div",{class:Q(["app-container h-screen w-screen overflow-hidden flex flex-col bg-gray-50 dark:bg-gray-900 text-gray-900 dark:text-gray-100 transition-colors duration-300",w(n)==="dark"?"dark":""])},[U(o2),F("div",a2,[U(l)])],2)]),_:1},8,["locale"])}}}),i2="modulepreload",l2=function(e){return"/"+e},ea={},xe=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let l=function(u){return Promise.all(u.map(p=>Promise.resolve(p).then(c=>({status:"fulfilled",value:c}),c=>({status:"rejected",reason:c}))))};document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),i=s?.nonce||s?.getAttribute("nonce");o=l(n.map(u=>{if(u=l2(u),u in ea)return;ea[u]=!0;const p=u.endsWith(".css"),c=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${c}`))return;const d=document.createElement("link");if(d.rel=p?"stylesheet":i2,p||(d.as="script"),d.crossOrigin="",d.href=u,i&&d.setAttribute("nonce",i),document.head.appendChild(d),p)return new Promise((v,f)=>{d.addEventListener("load",v),d.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${u}`)))})}))}function a(s){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=s,window.dispatchEvent(i),!i.defaultPrevented)throw s}return o.then(s=>{for(const i of s||[])i.status==="rejected"&&a(i.reason);return t().catch(a)})},u2=Qs({history:ei("/"),routes:[{path:"/",component:()=>xe(()=>import("./HomeView-BnO4yIT9.js"),__vite__mapDeps([0,1,2,3])),children:[{path:"",name:"dashboard",component:()=>xe(()=>import("./ServerDashboard-DYAVrrUk.js"),__vite__mapDeps([4,5,2,6,7,8,9,10,11,3,12,13,14,15,16,17,18,19,20,21,22,23,24,25,1,26,27,28,29]))},{path:"servers",name:"servers",component:()=>xe(()=>import("./ServerListView-C7kcd4GC.js"),__vite__mapDeps([30,14,2,3,13,15,5,6,12,16,31,18,32,20,21,1,7,8,33]))},{path:"servers/:name",name:"server-detail",component:()=>xe(()=>import("./ServerDetail-q94ZFfjL.js"),__vite__mapDeps([9,10,11,3,12,2,13,14,15,16,17,18,19,7,20,21,22,23,8,24,25,1,26,27,28])),redirect:{name:"server-detail-config"},children:[{path:"config",name:"server-detail-config",component:()=>xe(()=>import("./ServerDetail-q94ZFfjL.js"),__vite__mapDeps([9,10,11,3,12,2,13,14,15,16,17,18,19,7,20,21,22,23,8,24,25,1,26,27,28]))},{path:"tools",name:"server-detail-tools",component:()=>xe(()=>import("./ServerDetail-q94ZFfjL.js"),__vite__mapDeps([9,10,11,3,12,2,13,14,15,16,17,18,19,7,20,21,22,23,8,24,25,1,26,27,28]))},{path:"resources",name:"server-detail-resources",component:()=>xe(()=>import("./ServerDetail-q94ZFfjL.js"),__vite__mapDeps([9,10,11,3,12,2,13,14,15,16,17,18,19,7,20,21,22,23,8,24,25,1,26,27,28]))}]},{path:"tools",name:"tools",component:()=>xe(()=>import("./ToolsView-lqFhr7Bk.js"),__vite__mapDeps([34,5,2,6,14,3,13,15,26,12,16,1,8,27,35]))},{path:"resources",name:"resources",component:()=>xe(()=>import("./ResourcesView-B5Xg0ynh.js"),__vite__mapDeps([36,24,2,18,17,14,3,13,15,11,25,8,37]))},{path:"servers/:name/resources/detail",name:"resource-detail",component:()=>xe(()=>import("./ResourceDetailView-BGBtmsyc.js"),__vite__mapDeps([38,39,2,40,22,13,17,18,23,8,41]))},{path:"settings",name:"settings",component:()=>xe(()=>import("./SettingsView-BM6P5yrT.js"),__vite__mapDeps([42,39,2,40,10,11,3,12,13,14,15,16,17,18,19,20,21,31,32,1,43]))}]}]}),c2={action:{back:"Back",start:"Start",stop:"Stop",restart:"Restart",delete:"Delete",deleteServer:"Delete Server",edit:"Edit",save:"Save",cancel:"Cancel",confirm:"Confirm",configure:"Configure",create:"Create Server",view:"View",restarted:"Server restarted",stopped:"Server stopped",started:"Server started",saved:"Configuration saved",configSaved:"Configuration saved",serverDeleted:"Server deleted",logsCleared:"Logs cleared",logsCopied:"Logs copied to clipboard",serverAdded:"Server added successfully",configImported:"Configuration imported successfully",saveSuccess:"Configuration saved successfully",copiedToClipboard:"Copied to clipboard",copyFailed:"Failed to copy to clipboard",displayNameUpdated:"Display name updated",instanceAdded:"Instance added successfully",instanceDeleted:"Instance deleted successfully",indexesReassigned:"Indexes reassigned successfully",startAll:"Start All",stopAll:"Stop All",restartAll:"Restart All"},common:{copy:"Copy",description:"Description",name:"Name",uri:"URI",mimeType:"MIME Type",logs:"Logs",config:"Config",tools:"Tools",resources:"Resources",instance:"Instance",template:"Template",addTag:"Add Tag",editTag:"Edit Tag",deleteTag:"Delete Tag"},sidebar:{title:"MCP Server Manager",dashboard:"Dashboard",sessions:"Sessions",servers:"MCP Servers",resources:"MCP Resources",addServer:"Add New Server",settings:"Settings"},resources:{title:"MCP Resource Gateway",searchPlaceholder:"Search all resources...",noResources:"No resources found. Connect some servers to get started.",read:"Read",serverTag:"Server",systemResources:"Gateway System Resources",serverResources:"Server Resources",toolResources:"Tool Resources",dataResources:"Data Resources",server:"Server",contentPreview:"Content Preview",preview:"Preview",source:"Source",download:"Download",loadingContent:"Loading content...",noDescription:"No description available"},sessions:{title:"Persisted Sessions",refresh:"Refresh",sessionId:"Session ID",clientName:"Client Name",clientVersion:"Client Version",protocolVersion:"Protocol Version",capabilities:"Capabilities",userAgent:"User Agent",createdAt:"Created At",lastAccessedAt:"Last Accessed At"},settings:{title:"System Settings",save:"Save Changes",systemTab:"System",host:"Host",port:"Port",appearance:"Appearance",theme:"Theme",language:"Language",themeLight:"Light",themeDark:"Dark",themeSystem:"System Default",langEn:"English",langZh:"Chinese",logging:"Logging",logLevel:"Log Level",logRotation:"Log Rotation",maxAge:"Max Age (Days)",debugOptions:"Debug Options",jsonPretty:"Pretty JSON in logs",mcpCommDebug:"Enable MCP communication debug",apiDebug:"Enable API debug",gatewayDebug:"Enable Gateway debug",security:"Security",allowedNetworks:"Allowed Networks",allowedNetworksHint:"Enter IP CIDR (e.g., 192.168.1.0/24). Press Enter to add.",maxConcurrentConnections:"Max Concurrent Connections",maxConnections:"Max Connections",connectionTimeout:"Connection Timeout",idleConnectionTimeout:"Idle Connection Timeout",sessionTimeout:"Session Timeout",sessionFlushInterval:"Session Flush Interval",fetchError:"Failed to fetch configuration",saveSuccess:"Configuration saved successfully",saveError:"Failed to save configuration",timeUnits:{seconds:"Seconds",minutes:"Minutes",hours:"Hours",days:"Days"},tagsTab:"Tags",tagDefinitions:"Tag Definitions",tagKey:"Tag Key",tagDescription:"Description",tagType:"Type",tagValues:"Allowed Values",deleteTagConfirm:"Are you sure you want to delete this tag definition?",noTagsDefined:"No tags defined yet",tagKeyPlaceholder:"Enter tag key (e.g., environment, priority)",tagDescriptionPlaceholder:"Enter tag description",tagValuesPlaceholder:"Enter allowed values, press Enter to add",startupTab:"Startup",startupSettings:"Server Startup Settings",startupDelay:"Startup Delay",startupDelayHint:"Delay between multi-instance server startups (ms)",readyTimeout:"Ready Timeout",readyTimeoutHint:"Timeout for waiting for server ready output (ms)",maxConnectRetries:"Max Retries",maxConnectRetriesHint:"Maximum connection retry attempts on failure",connectRetryDelay:"Retry Delay",connectRetryDelayHint:"Initial delay for exponential backoff retry (ms)"},dashboard:{title:"Dashboard",totalServers:"Total Servers",running:"Running",errors:"Errors",recentActivity:"Recent Activity"},serverDetail:{emptySelect:"Select a server to view details",noServerSelected:"No server selected",noInstanceSelected:"Please select an instance",noSelection:"Please select template or instance",deleteConfirm:"Are you sure you want to delete this server?",deleteInstanceConfirm:"Are you sure you want to delete this instance?",pid:"PID",uptime:"Uptime",selectInstanceForTool:"Select instance to call tool",selectInstanceForResource:"Select instance to view resource",selectInstancePlaceholder:"Select an instance...",confirm:"Confirm",tabs:{},configTabs:{instances:"Instances"},instanceTabs:{configOverride:"Instance Config"},config:{transport:"Transport",transportStdio:"Standard Input/Output (stdio)",transportSse:"Server-Sent Events (sse)",transportHttp:"Streamable HTTP (streamableHttp)",executable:"Executable",args:"Arguments",url:"URL",env:"Environment Variables",timeout:"Timeout (s)",autoStart:"Auto-start",instanceSelectionStrategy:"Instance Selection Strategy",strategyRandom:"Random",strategyRoundRobin:"Round Robin",strategyTagMatchUnique:"Tag Match Unique",addArg:"Add Argument",addEnv:"Add Environment Variable",addHeader:"Add Header",headers:"Headers",proxy:"Proxy",addProxy:"Add Proxy",removeProxy:"Remove Proxy",proxyPlaceholder:"http://proxy.example.com:8080",tags:"Tags",save:"Save Configuration",editByJson:"Edit By Json",descriptionPlaceholder:"Enter server description"},instanceConfig:{title:"Instance Configuration",template:"Template Config",readOnly:"Read-only",override:"Instance Override",editable:"Editable",fromTemplate:"From template",noArgs:"No arguments",noEnv:"No environment variables",noHeaders:"No headers",noTags:"No tags",mergedPreview:"Merged Final Config Preview",viewMerged:"View Merged Config"},logs:{autoScroll:"Auto-scroll",clear:"Clear",copied:"Logs copied to clipboard",selectInstance:"Select an instance"},tools:{title:"Tool Discovery",available:"Available Tools",details:"Tool Details",schema:"Schema (JSON)",selectHint:"Select a tool to view details",none:"No tools available",aggregated:"Aggregated",call:"Call"},resources:{none:"No resources available"},status:{running:"Running",online:"Running",stopped:"Stopped",offline:"Stopped",stopping:"Stopping",error:"Error",starting:"Starting"},editJsonTitle:"Edit JSON Config",instances:{title:"Instances",templateTag:"Template Config",unnamed:"Unnamed",add:"Add Instance",reassignIndexes:"Reassign Indexes",editDisplayName:"Edit display name"}},addServer:{title:"Add New MCP Server",transportType:"Select Transport Type",namePlaceholder:"My New Server",descriptionPlaceholder:"Enter server description",executablePlaceholder:"/path/to/executable or npx",argPlaceholder:"Argument",urlPlaceholder:"http://localhost:3000/sse",keyPlaceholder:"Key",byJson:"By Json",valuePlaceholder:"Value",importBatch:"Import Batch",batchImportTitle:"Batch Import MCP Servers",importAll:"Import All"},error:{stdioCommandRequired:"STDIO server requires a valid command",sseUrlRequired:"SSE server requires a valid URL",httpUrlRequired:"Streamable HTTP server requires a valid URL",unsupportedTransportType:"Unsupported transport type",connectionFailed:"Failed to connect to server",invalidServerConfig:"Invalid server configuration",addServerFailed:"Failed to add server",invalidJsonConfig:"Invalid JSON configuration",saveFailed:"Failed to save configuration"},tools:{title:"MCP Tool Gateway",searchPlaceholder:"Search all tools (e.g., 'file', 'database', 'list')...",systemTools:"Gateway System Tools",aggregatedTools:"Aggregated Server Tools",noToolsFound:"No aggregated tools. Select tools in servers to aggregate.",call:"Call",noDescription:"No description provided",systemTag:"System",online:"Online",offline:"Offline"},toolCallDialog:{title:"Call Tool: {toolName}",arguments:"Arguments (JSON)",jsonPlaceholder:'{"key": "value"}',formatJson:"Format JSON",response:"Response",inputSchema:"Input Schema",showResponse:"Show Response",showInputSchema:"Show Input Schema",executing:"Executing...",execute:"Execute",invalidJson:"Invalid JSON",invalidJsonArguments:"Invalid JSON arguments",executionSuccessful:"Tool execution successful",executionFailed:"Tool execution failed",selectInstance:"Select an instance"}},d2={action:{back:"返回",start:"启动",stop:"停止",restart:"重启",delete:"删除",deleteServer:"删除服务器",edit:"编辑",save:"保存",cancel:"取消",confirm:"确认",configure:"配置",create:"创建服务器",view:"查看",restarted:"服务器已重启",stopped:"服务器已停止",started:"服务器已启动",saved:"配置已保存",configSaved:"配置已保存",serverDeleted:"服务器已删除",logsCleared:"日志已清空",logsCopied:"日志已复制到剪贴板",serverAdded:"服务器添加成功",configImported:"配置导入成功",saveSuccess:"配置保存成功",copiedToClipboard:"已复制到剪贴板",copyFailed:"复制到剪贴板失败",displayNameUpdated:"实例名称已更新",instanceAdded:"实例添加成功",instanceDeleted:"实例删除成功",indexesReassigned:"索引重新分配成功",startAll:"全部启动",stopAll:"全部停止",restartAll:"全部重启"},common:{copy:"复制",description:"描述",name:"名称",uri:"URI",mimeType:"MIME 类型",logs:"日志",config:"配置",tools:"工具",resources:"资源",instance:"实例",template:"模板",addTag:"添加标签",editTag:"编辑标签",deleteTag:"删除标签"},sidebar:{title:"MCP 服务器管理器",dashboard:"仪表板",servers:"MCP 服务器",resources:"MCP 资源网关",addServer:"添加新服务器",settings:"设置"},resources:{title:"MCP 资源网关",searchPlaceholder:"搜索所有资源...",noResources:"未找到资源。请连接一些服务器以开始使用。",read:"读取",serverTag:"服务器",systemResources:"网关系统资源",serverResources:"服务器资源",toolResources:"工具资源",dataResources:"数据资源",server:"服务器",contentPreview:"内容预览",preview:"预览",source:"源代码",download:"下载",loadingContent:"加载内容中...",noDescription:"无描述信息"},settings:{title:"系统设置",save:"保存更改",systemTab:"系统",host:"主机地址",port:"端口号",appearance:"外观设置",theme:"主题",language:"语言",themeLight:"浅色",themeDark:"深色",themeSystem:"跟随系统",langEn:"English",langZh:"中文",logging:"日志设置",logLevel:"日志级别",logRotation:"日志轮转",maxAge:"最大保留时间 (天)",debugOptions:"调试选项",jsonPretty:"日志中JSON格式化",mcpCommDebug:"启用MCP通信调试",apiDebug:"启用API调试",gatewayDebug:"启用Gateway调试",security:"安全设置",allowedNetworks:"允许的网络",allowedNetworksHint:"输入 IP CIDR (如 192.168.1.0/24)。按回车添加。",maxConcurrentConnections:"最大并发连接数",maxConnections:"最大连接数",connectionTimeout:"连接超时",idleConnectionTimeout:"空闲连接超时",fetchError:"获取配置失败",saveSuccess:"配置保存成功",saveError:"保存配置失败",timeUnits:{seconds:"秒",minutes:"分钟",hours:"小时",days:"天"},tagsTab:"标签",tagDefinitions:"标签定义",tagKey:"标签键",tagDescription:"描述",tagType:"类型",tagValues:"可选值",deleteTagConfirm:"确定要删除此标签定义吗?",noTagsDefined:"尚未定义标签",tagKeyPlaceholder:"输入标签键(如 environment, priority)",tagDescriptionPlaceholder:"输入标签描述",tagValuesPlaceholder:"输入可选值,按回车添加",startupTab:"启动配置",startupSettings:"服务器启动设置",startupDelay:"启动延迟",startupDelayHint:"多实例服务器启动时,实例之间的延迟(毫秒)",readyTimeout:"就绪超时",readyTimeoutHint:"等待服务器就绪输出的超时时间(毫秒)",maxConnectRetries:"最大重试次数",maxConnectRetriesHint:"连接失败时的最大重试次数",connectRetryDelay:"重试延迟",connectRetryDelayHint:"指数退避重试的初始延迟(毫秒)"},dashboard:{title:"仪表盘",totalServers:"服务器总数",running:"运行中",errors:"错误",recentActivity:"近期活动"},serverDetail:{emptySelect:"请选择一个服务器以查看详情",noServerSelected:"未选择服务器",noInstanceSelected:"请选择一个实例",noSelection:"请选择模板或实例",deleteConfirm:"确定要删除此服务器吗?",deleteInstanceConfirm:"确定要删除此实例吗?",pid:"进程ID",uptime:"运行时间",selectInstanceForTool:"选择要调用工具的实例",selectInstanceForResource:"选择要查看资源的实例",selectInstancePlaceholder:"选择一个实例...",confirm:"确认",tabs:{},configTabs:{instances:"实例"},instanceTabs:{configOverride:"实例配置"},config:{transport:"传输方式",transportStdio:"标准输入/输出 (stdio)",transportSse:"服务器发送事件 (sse)",transportHttp:"可流式传输的http (streamableHttp)",executable:"可执行文件",args:"参数",url:"服务地址",env:"环境变量",timeout:"超时时间 (秒)",autoStart:"随系统启动",instanceSelectionStrategy:"实例选择策略",strategyRandom:"随机",strategyRoundRobin:"轮询",strategyTagMatchUnique:"标签匹配唯一",addArg:"添加参数",addEnv:"添加环境变量",addHeader:"添加请求头",headers:"请求头",proxy:"代理",addProxy:"添加代理",removeProxy:"移除代理",proxyPlaceholder:"http://proxy.example.com:8080",tags:"标签",save:"保存配置",editByJson:"通过 JSON 编辑",descriptionPlaceholder:"请输入服务器描述"},instanceConfig:{title:"实例配置",template:"模版配置",readOnly:"只读",override:"实例配置覆盖",editable:"可编辑",fromTemplate:"来自模板",noArgs:"无参数",noEnv:"无环境变量",noHeaders:"无请求头",noTags:"无标签",mergedPreview:"合并后的最终配置预览",viewMerged:"查看合并配置"},logs:{autoScroll:"自动滚动",clear:"清空",copied:"日志已复制到剪贴板",selectInstance:"选择一个实例"},tools:{title:"工具发现",available:"可用工具",details:"工具详情",schema:"参数 Schema (JSON)",selectHint:"请选择一个工具以查看详情",none:"暂无可用工具",aggregated:"聚合",call:"调用"},resources:{none:"暂无可用资源"},status:{running:"运行中",online:"运行中",stopped:"已停止",offline:"已停止",stopping:"停止中",error:"错误",starting:"启动中"},editJsonTitle:"编辑 JSON 配置",instances:{title:"实例",templateTag:"模板配置",unnamed:"未命名",add:"添加实例",reassignIndexes:"重新分配索引",editDisplayName:"编辑显示名称"}},addServer:{title:"添加新 MCP 服务器",transportType:"选择传输类型",namePlaceholder:"我的新服务器",descriptionPlaceholder:"请输入服务器描述",executablePlaceholder:"/path/to/executable 或 npx",argPlaceholder:"参数",urlPlaceholder:"http://localhost:3000/sse",keyPlaceholder:"键",byJson:"通过 JSON 添加",valuePlaceholder:"值",importBatch:"批量导入",batchImportTitle:"批量导入 MCP 服务器",importAll:"全部导入"},error:{stdioCommandRequired:"STDIO 服务器需要有效的命令",sseUrlRequired:"SSE 服务器需要有效的 URL",httpUrlRequired:"可流式传输的 HTTP 服务器需要有效的 URL",unsupportedTransportType:"不支持的传输类型",connectionFailed:"连接服务器失败",invalidServerConfig:"服务器配置无效",addServerFailed:"添加服务器失败",invalidJsonConfig:"无效的 JSON 配置",saveFailed:"保存配置失败"},tools:{title:"MCP 工具网关",searchPlaceholder:"搜索所有工具 (例如:'file', 'database', 'list')...",systemTools:"网关系统工具",aggregatedTools:"聚合服务器工具",noToolsFound:"未聚合工具,请在服务器选中工具进行聚合。",call:"调用",noDescription:"未提供描述",systemTag:"系统",online:"在线",offline:"离线"},toolCallDialog:{title:"调用工具: {toolName}",arguments:"参数 (JSON)",jsonPlaceholder:'{"key": "value"}',formatJson:"格式化 JSON",response:"响应",inputSchema:"输入 Schema",showResponse:"显示响应",showInputSchema:"显示输入 Schema",executing:"执行中...",execute:"执行",invalidJson:"无效的 JSON",invalidJsonArguments:"无效的 JSON 参数",executionSuccessful:"工具执行成功",executionFailed:"工具执行失败",selectInstance:"选择一个实例"}},f2=ti({legacy:!1,locale:"en",fallbackLocale:"en",messages:{en:c2,zh:d2}}),Dn=ni(s2);Dn.use(ri());Dn.use(u2);Dn.use(f2);Dn.mount("#app");export{U2 as $,ja as A,fg as B,In as C,ce as D,Vt as E,yt as F,v2 as G,F2 as H,B2 as I,H2 as J,P0 as K,V2 as L,$2 as M,og as N,lg as O,Lr as P,G2 as Q,ng as R,J2 as S,dg as T,Ha as U,L2 as V,Y2 as W,Pe as X,hr as Y,Kn as Z,te as _,Fs as a,An as a$,Hi as a0,Wi as a1,mi as a2,pn as a3,qi as a4,cr as a5,dr as a6,$l as a7,je as a8,pa as a9,Fa as aA,ot as aB,k2 as aC,_f as aD,O2 as aE,R2 as aF,I2 as aG,Fe as aH,Xn as aI,D2 as aJ,z2 as aK,M2 as aL,Eo as aM,_o as aN,wo as aO,W2 as aP,eg as aQ,Q2 as aR,qc as aS,bn as aT,h2 as aU,hn as aV,vg as aW,w2 as aX,E2 as aY,_2 as aZ,Va as a_,_t as aa,Gn as ab,ha as ac,Le as ad,pr as ae,fa as af,Ze as ag,gi as ah,_u as ai,ka as aj,Ca as ak,br as al,yr as am,Ja as an,rf as ao,S2 as ap,m2 as aq,Ec as ar,qa as as,gg as at,F0 as au,xc as av,jc as aw,T2 as ax,ya as ay,Cu as az,re as b,q2 as b0,zf as b1,er as b2,Df as b3,Es as b4,cg as b5,Na as b6,P2 as b7,Ia as b8,un as b9,Yi as bA,Dl as bB,kl as bC,Mu as bD,Fu as bE,wa as bF,Lu as bG,uo as bH,Me as bI,Je as bJ,Il as bK,Qr as bL,ro as bM,b2 as ba,nd as bb,C2 as bc,pg as bd,g2 as be,Fc as bf,Bc as bg,Xc as bh,xr as bi,mf as bj,y2 as bk,nv as bl,A2 as bm,ur as bn,Ea as bo,Vl as bp,gr as bq,_c as br,ba as bs,Zn as bt,yn as bu,K2 as bv,Ot as bw,xn as bx,Su as by,Ki as bz,gd as c,V as d,mr as e,de as f,Xe as g,_s as h,Qn as i,N2 as j,J as k,Z2 as l,sg as m,j2 as n,mg as o,X2 as p,ft as q,tg as r,rg as s,ag as t,Ds as u,ig as v,ug as w,ue as x,Kf as y,x2 as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{aa as c,bw as f,bs as s,bx as a,bq as l,by as g,ah as b}from"./index-MqHvQjDP.js";import{g as v,c as O,f as _,e as p}from"./_baseClone-kbJbcBJT.js";var y="[object Object]",P=Function.prototype,L=Object.prototype,u=P.toString,w=L.hasOwnProperty,h=u.call(Object);function j(e){if(!c(e)||f(e)!=y)return!1;var r=v(e);if(r===null)return!0;var t=w.call(r,"constructor")&&r.constructor;return typeof t=="function"&&t instanceof t&&u.call(t)==h}function m(e,r,t){var o=-1,n=e.length;r<0&&(r=-r>n?0:n+r),t=t>n?n:t,t<0&&(t+=n),n=r>t?0:t-r>>>0,r>>>=0;for(var i=Array(n);++o<n;)i[o]=e[o+r];return i}function C(e){var r=e==null?0:e.length;return r?e[r-1]:void 0}function A(e,r){return r.length<2?e:s(e,m(r,0,-1))}var S=Object.prototype,E=S.hasOwnProperty;function F(e,r){r=a(r,e);var t=-1,o=r.length;if(!o)return!0;for(;++t<o;){var n=l(r[t]);if(n==="__proto__"&&!E.call(e,"__proto__")||(n==="constructor"||n==="prototype")&&t<o-1)return!1}var i=A(e,r);return i==null||delete i[l(C(r))]}function G(e){return j(e)?void 0:e}var x=1,T=2,N=4,M=g(function(e,r){var t={};if(e==null)return t;var o=!1;r=b(r,function(i){return i=a(i,e),o||(o=i.length>1),i}),O(e,_(e),t),o&&(t=p(t,x|T|N,G));for(var n=r.length;n--;)F(t,r[n]);return t});export{j as i,M as o};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a=t=>t;export{a as m};
|