@mlightcad/ui-components 0.0.1

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.
@@ -0,0 +1,12 @@
1
+ (function(ne,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],r):(ne=typeof globalThis<"u"?globalThis:ne||self,r(ne.UIComponents={},ne.Vue))})(this,function(ne,r){"use strict";const Y=(e,t,{checkForDefaultPrevented:n=!0}={})=>a=>{const i=e==null?void 0:e(a);if(n===!1||!i)return t==null?void 0:t(a)};var tn;const U=typeof window<"u",Ur=e=>typeof e=="string",nn=()=>{},Kr=U&&((tn=window==null?void 0:window.navigator)==null?void 0:tn.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function rn(e){return typeof e=="function"?e():r.unref(e)}function Wr(e){return e}function on(e){return r.getCurrentScope()?(r.onScopeDispose(e),!0):!1}function ce(e){var t;const n=rn(e);return(t=n==null?void 0:n.$el)!=null?t:n}const an=U?window:void 0;function pt(...e){let t,n,o,a;if(Ur(e[0])||Array.isArray(e[0])?([n,o,a]=e,t=an):[t,n,o,a]=e,!t)return nn;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const i=[],s=()=>{i.forEach(h=>h()),i.length=0},c=(h,g,b,m)=>(h.addEventListener(g,b,m),()=>h.removeEventListener(g,b,m)),l=r.watch(()=>[ce(t),rn(a)],([h,g])=>{s(),h&&i.push(...n.flatMap(b=>o.map(m=>c(h,b,m,g))))},{immediate:!0,flush:"post"}),f=()=>{l(),s()};return on(f),f}let sn=!1;function Gr(e,t,n={}){const{window:o=an,ignore:a=[],capture:i=!0,detectIframe:s=!1}=n;if(!o)return;Kr&&!sn&&(sn=!0,Array.from(o.document.body.children).forEach(b=>b.addEventListener("click",nn)));let c=!0;const l=b=>a.some(m=>{if(typeof m=="string")return Array.from(o.document.querySelectorAll(m)).some(d=>d===b.target||b.composedPath().includes(d));{const d=ce(m);return d&&(b.target===d||b.composedPath().includes(d))}}),h=[pt(o,"click",b=>{const m=ce(e);if(!(!m||m===b.target||b.composedPath().includes(m))){if(b.detail===0&&(c=!l(b)),!c){c=!0;return}t(b)}},{passive:!0,capture:i}),pt(o,"pointerdown",b=>{const m=ce(e);m&&(c=!b.composedPath().includes(m)&&!l(b))},{passive:!0}),s&&pt(o,"blur",b=>{var m;const d=ce(e);((m=o.document.activeElement)==null?void 0:m.tagName)==="IFRAME"&&!(d!=null&&d.contains(o.document.activeElement))&&t(b)})].filter(Boolean);return()=>h.forEach(b=>b())}const cn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ln="__vueuse_ssr_handlers__";cn[ln]=cn[ln]||{};var fn;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(fn||(fn={}));var qr=Object.defineProperty,un=Object.getOwnPropertySymbols,Zr=Object.prototype.hasOwnProperty,Jr=Object.prototype.propertyIsEnumerable,dn=(e,t,n)=>t in e?qr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Yr=(e,t)=>{for(var n in t||(t={}))Zr.call(t,n)&&dn(e,n,t[n]);if(un)for(var n of un(t))Jr.call(t,n)&&dn(e,n,t[n]);return e};Yr({linear:Wr},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});/**
2
+ * @vue/shared v3.4.38
3
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
+ * @license MIT
5
+ **/process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const ze=()=>{},Qr=Object.prototype.hasOwnProperty,pn=(e,t)=>Qr.call(e,t),Xr=Array.isArray,Ve=e=>typeof e=="function",Ue=e=>typeof e=="string",ht=e=>e!==null&&typeof e=="object";var eo=typeof global=="object"&&global&&global.Object===Object&&global,to=typeof self=="object"&&self&&self.Object===Object&&self,gt=eo||to||Function("return this")(),re=gt.Symbol,hn=Object.prototype,no=hn.hasOwnProperty,ro=hn.toString,xe=re?re.toStringTag:void 0;function oo(e){var t=no.call(e,xe),n=e[xe];try{e[xe]=void 0;var o=!0}catch{}var a=ro.call(e);return o&&(t?e[xe]=n:delete e[xe]),a}var ao=Object.prototype,io=ao.toString;function so(e){return io.call(e)}var co="[object Null]",lo="[object Undefined]",gn=re?re.toStringTag:void 0;function mt(e){return e==null?e===void 0?lo:co:gn&&gn in Object(e)?oo(e):so(e)}function bt(e){return e!=null&&typeof e=="object"}var fo="[object Symbol]";function yt(e){return typeof e=="symbol"||bt(e)&&mt(e)==fo}function uo(e,t){for(var n=-1,o=e==null?0:e.length,a=Array(o);++n<o;)a[n]=t(e[n],n,e);return a}var ke=Array.isArray,po=1/0,mn=re?re.prototype:void 0,bn=mn?mn.toString:void 0;function yn(e){if(typeof e=="string")return e;if(ke(e))return uo(e,yn)+"";if(yt(e))return bn?bn.call(e):"";var t=e+"";return t=="0"&&1/e==-po?"-0":t}function Ke(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function ho(e){return e}var go="[object AsyncFunction]",mo="[object Function]",bo="[object GeneratorFunction]",yo="[object Proxy]";function vo(e){if(!Ke(e))return!1;var t=mt(e);return t==mo||t==bo||t==go||t==yo}var vt=gt["__core-js_shared__"],vn=function(){var e=/[^.]+$/.exec(vt&&vt.keys&&vt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function wo(e){return!!vn&&vn in e}var _o=Function.prototype,Eo=_o.toString;function So(e){if(e!=null){try{return Eo.call(e)}catch{}try{return e+""}catch{}}return""}var Oo=/[\\^$.*+?()[\]{}|]/g,To=/^\[object .+?Constructor\]$/,Co=Function.prototype,xo=Object.prototype,ko=Co.toString,Po=xo.hasOwnProperty,Io=RegExp("^"+ko.call(Po).replace(Oo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ao(e){if(!Ke(e)||wo(e))return!1;var t=vo(e)?Io:To;return t.test(So(e))}function Bo(e,t){return e==null?void 0:e[t]}function wt(e,t){var n=Bo(e,t);return Ao(n)?n:void 0}function Ro(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 Mo=800,No=16,$o=Date.now;function Fo(e){var t=0,n=0;return function(){var o=$o(),a=No-(o-n);if(n=o,a>0){if(++t>=Mo)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function jo(e){return function(){return e}}var We=function(){try{var e=wt(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Lo=We?function(e,t){return We(e,"toString",{configurable:!0,enumerable:!1,value:jo(t),writable:!0})}:ho,Ho=Fo(Lo),Do=9007199254740991,zo=/^(?:0|[1-9]\d*)$/;function wn(e,t){var n=typeof e;return t=t??Do,!!t&&(n=="number"||n!="symbol"&&zo.test(e))&&e>-1&&e%1==0&&e<t}function Vo(e,t,n){t=="__proto__"&&We?We(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function _n(e,t){return e===t||e!==e&&t!==t}var Uo=Object.prototype,Ko=Uo.hasOwnProperty;function Wo(e,t,n){var o=e[t];(!(Ko.call(e,t)&&_n(o,n))||n===void 0&&!(t in e))&&Vo(e,t,n)}var En=Math.max;function Go(e,t,n){return t=En(t===void 0?e.length-1:t,0),function(){for(var o=arguments,a=-1,i=En(o.length-t,0),s=Array(i);++a<i;)s[a]=o[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=o[a];return c[t]=n(s),Ro(e,this,c)}}var qo=9007199254740991;function Zo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=qo}var Jo="[object Arguments]";function Sn(e){return bt(e)&&mt(e)==Jo}var On=Object.prototype,Yo=On.hasOwnProperty,Qo=On.propertyIsEnumerable,Tn=Sn(function(){return arguments}())?Sn:function(e){return bt(e)&&Yo.call(e,"callee")&&!Qo.call(e,"callee")},Xo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ea=/^\w*$/;function ta(e,t){if(ke(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||yt(e)?!0:ea.test(e)||!Xo.test(e)||t!=null&&e in Object(t)}var Pe=wt(Object,"create");function na(){this.__data__=Pe?Pe(null):{},this.size=0}function ra(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var oa="__lodash_hash_undefined__",aa=Object.prototype,ia=aa.hasOwnProperty;function sa(e){var t=this.__data__;if(Pe){var n=t[e];return n===oa?void 0:n}return ia.call(t,e)?t[e]:void 0}var ca=Object.prototype,la=ca.hasOwnProperty;function fa(e){var t=this.__data__;return Pe?t[e]!==void 0:la.call(t,e)}var ua="__lodash_hash_undefined__";function da(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Pe&&t===void 0?ua:t,this}function le(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}le.prototype.clear=na,le.prototype.delete=ra,le.prototype.get=sa,le.prototype.has=fa,le.prototype.set=da;function pa(){this.__data__=[],this.size=0}function Ge(e,t){for(var n=e.length;n--;)if(_n(e[n][0],t))return n;return-1}var ha=Array.prototype,ga=ha.splice;function ma(e){var t=this.__data__,n=Ge(t,e);if(n<0)return!1;var o=t.length-1;return n==o?t.pop():ga.call(t,n,1),--this.size,!0}function ba(e){var t=this.__data__,n=Ge(t,e);return n<0?void 0:t[n][1]}function ya(e){return Ge(this.__data__,e)>-1}function va(e,t){var n=this.__data__,o=Ge(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}function be(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}be.prototype.clear=pa,be.prototype.delete=ma,be.prototype.get=ba,be.prototype.has=ya,be.prototype.set=va;var wa=wt(gt,"Map");function _a(){this.size=0,this.__data__={hash:new le,map:new(wa||be),string:new le}}function Ea(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function qe(e,t){var n=e.__data__;return Ea(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Sa(e){var t=qe(this,e).delete(e);return this.size-=t?1:0,t}function Oa(e){return qe(this,e).get(e)}function Ta(e){return qe(this,e).has(e)}function Ca(e,t){var n=qe(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}function fe(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}fe.prototype.clear=_a,fe.prototype.delete=Sa,fe.prototype.get=Oa,fe.prototype.has=Ta,fe.prototype.set=Ca;var xa="Expected a function";function _t(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(xa);var n=function(){var o=arguments,a=t?t.apply(this,o):o[0],i=n.cache;if(i.has(a))return i.get(a);var s=e.apply(this,o);return n.cache=i.set(a,s)||i,s};return n.cache=new(_t.Cache||fe),n}_t.Cache=fe;var ka=500;function Pa(e){var t=_t(e,function(o){return n.size===ka&&n.clear(),o}),n=t.cache;return t}var Ia=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Aa=/\\(\\)?/g,Ba=Pa(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Ia,function(n,o,a,i){t.push(a?i.replace(Aa,"$1"):o||n)}),t});function Ra(e){return e==null?"":yn(e)}function Ze(e,t){return ke(e)?e:ta(e,t)?[e]:Ba(Ra(e))}var Ma=1/0;function Et(e){if(typeof e=="string"||yt(e))return e;var t=e+"";return t=="0"&&1/e==-Ma?"-0":t}function Na(e,t){t=Ze(t,e);for(var n=0,o=t.length;e!=null&&n<o;)e=e[Et(t[n++])];return n&&n==o?e:void 0}function $a(e,t){for(var n=-1,o=t.length,a=e.length;++n<o;)e[a+n]=t[n];return e}var Cn=re?re.isConcatSpreadable:void 0;function Fa(e){return ke(e)||Tn(e)||!!(Cn&&e&&e[Cn])}function ja(e,t,n,o,a){var i=-1,s=e.length;for(n||(n=Fa),a||(a=[]);++i<s;){var c=e[i];n(c)?$a(a,c):a[a.length]=c}return a}function La(e){var t=e==null?0:e.length;return t?ja(e):[]}function Ha(e){return Ho(Go(e,void 0,La),e+"")}function Da(e,t){return e!=null&&t in Object(e)}function za(e,t,n){t=Ze(t,e);for(var o=-1,a=t.length,i=!1;++o<a;){var s=Et(t[o]);if(!(i=e!=null&&n(e,s)))break;e=e[s]}return i||++o!=a?i:(a=e==null?0:e.length,!!a&&Zo(a)&&wn(s,a)&&(ke(e)||Tn(e)))}function Va(e,t){return e!=null&&za(e,t,Da)}function St(e){for(var t=-1,n=e==null?0:e.length,o={};++t<n;){var a=e[t];o[a[0]]=a[1]}return o}function Ot(e){return e==null}function Ua(e){return e===void 0}function Ka(e,t,n,o){if(!Ke(e))return e;t=Ze(t,e);for(var a=-1,i=t.length,s=i-1,c=e;c!=null&&++a<i;){var l=Et(t[a]),f=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(a!=s){var h=c[l];f=void 0,f===void 0&&(f=Ke(h)?h:wn(t[a+1])?[]:{})}Wo(c,l,f),c=c[l]}return e}function Wa(e,t,n){for(var o=-1,a=t.length,i={};++o<a;){var s=t[o],c=Na(e,s);n(c,s)&&Ka(i,Ze(s,e),c)}return i}function Ga(e,t){return Wa(e,t,function(n,o){return Va(e,o)})}var qa=Ha(function(e,t){return e==null?{}:Ga(e,t)});const Za=e=>e===void 0,xn=e=>typeof e=="boolean",Ie=e=>typeof e=="number",Ae=e=>typeof Element>"u"?!1:e instanceof Element,Ja=e=>Ue(e)?!Number.isNaN(Number(e)):!1;class Ya extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function ye(e,t){if(process.env.NODE_ENV!=="production"){const n=Ue(e)?new Ya(`[${e}] ${t}`):e;console.warn(n)}}const Qa="utils/dom/style";function Xa(e,t="px"){if(!e)return"";if(Ie(e)||Ja(e))return`${e}${t}`;if(Ue(e))return e;ye(Qa,"binding value must be a string or number")}/*! Element Plus Icons Vue v2.3.1 */var ei=r.defineComponent({name:"Loading",__name:"loading",setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[r.createElementVNode("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.248zm452.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.248zM828.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 0z"})]))}}),ti=ei;const kn="__epPropKey",k=e=>e,ni=e=>ht(e)&&!!e[kn],Je=(e,t)=>{if(!ht(e)||ni(e))return e;const{values:n,required:o,default:a,type:i,validator:s}=e,l={type:i,required:!!o,validator:n||s?f=>{let h=!1,g=[];if(n&&(g=Array.from(n),pn(e,"default")&&g.push(a),h||(h=g.includes(f))),s&&(h||(h=s(f))),!h&&g.length>0){const b=[...new Set(g)].map(m=>JSON.stringify(m)).join(", ");r.warn(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${b}], got value ${JSON.stringify(f)}.`)}return h}:void 0,[kn]:!0};return pn(e,"default")&&(l.default=a),l},j=e=>St(Object.entries(e).map(([t,n])=>[t,Je(n,t)])),Pn=k([String,Object,Function]),Be=(e,t)=>{if(e.install=n=>{for(const o of[e,...Object.values(t??{})])n.component(o.name,o)},t)for(const[n,o]of Object.entries(t))e[n]=o;return e},ri=e=>(e.install=ze,e),Ye={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"},oi=["","default","small","large"],ai=({from:e,replacement:t,scope:n,version:o,ref:a,type:i="API"},s)=>{r.watch(()=>r.unref(s),c=>{c&&ye(n,`[${i}] ${e} is about to be deprecated in version ${o}, please use ${t} instead.
6
+ For more detail, please visit: ${a}
7
+ `)},{immediate:!0})},Tt="el",ii="is-",ue=(e,t,n,o,a)=>{let i=`${e}-${t}`;return n&&(i+=`-${n}`),o&&(i+=`__${o}`),a&&(i+=`--${a}`),i},si=Symbol("namespaceContextKey"),Ct=e=>{const t=r.getCurrentInstance()?r.inject(si,r.ref(Tt)):r.ref(Tt);return r.computed(()=>r.unref(t)||Tt)},Q=(e,t)=>{const n=Ct();return{namespace:n,b:(u="")=>ue(n.value,e,u,"",""),e:u=>u?ue(n.value,e,"",u,""):"",m:u=>u?ue(n.value,e,"","",u):"",be:(u,y)=>u&&y?ue(n.value,e,u,y,""):"",em:(u,y)=>u&&y?ue(n.value,e,"",u,y):"",bm:(u,y)=>u&&y?ue(n.value,e,u,"",y):"",bem:(u,y,p)=>u&&y&&p?ue(n.value,e,u,y,p):"",is:(u,...y)=>{const p=y.length>=1?y[0]:!0;return u&&p?`${ii}${u}`:""},cssVar:u=>{const y={};for(const p in u)u[p]&&(y[`--${n.value}-${p}`]=u[p]);return y},cssVarName:u=>`--${n.value}-${u}`,cssVarBlock:u=>{const y={};for(const p in u)u[p]&&(y[`--${n.value}-${e}-${p}`]=u[p]);return y},cssVarBlockName:u=>`--${n.value}-${e}-${u}`}},ci=Je({type:k(Boolean),default:null}),li=Je({type:k(Function)}),In=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,o=[t],a={[e]:ci,[n]:li};return{useModelToggle:({indicator:s,toggleReason:c,shouldHideWhenRouteChanges:l,shouldProceed:f,onShow:h,onHide:g})=>{const b=r.getCurrentInstance(),{emit:m}=b,d=b.props,u=r.computed(()=>Ve(d[n])),y=r.computed(()=>d[e]===null),p=E=>{s.value!==!0&&(s.value=!0,c&&(c.value=E),Ve(h)&&h(E))},w=E=>{s.value!==!1&&(s.value=!1,c&&(c.value=E),Ve(g)&&g(E))},S=E=>{if(d.disabled===!0||Ve(f)&&!f())return;const T=u.value&&U;T&&m(t,!0),(y.value||!T)&&p(E)},v=E=>{if(d.disabled===!0||!U)return;const T=u.value&&U;T&&m(t,!1),(y.value||!T)&&w(E)},O=E=>{xn(E)&&(d.disabled&&E?u.value&&m(t,!1):s.value!==E&&(E?p():w()))},C=()=>{s.value?v():S()};return r.watch(()=>d[e],O),l&&b.appContext.config.globalProperties.$route!==void 0&&r.watch(()=>({...b.proxy.$route}),()=>{l.value&&s.value&&v()}),r.onMounted(()=>{O(d[e])}),{hide:v,show:S,toggle:C,hasUpdateHandler:u}},useModelToggleProps:a,useModelToggleEmits:o}};In("modelValue");const An=e=>{const t=r.getCurrentInstance();return r.computed(()=>{var n,o;return(o=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:o[e]})};var $="top",H="bottom",D="right",F="left",xt="auto",Re=[$,H,D,F],ve="start",Me="end",fi="clippingParents",Bn="viewport",Ne="popper",ui="reference",Rn=Re.reduce(function(e,t){return e.concat([t+"-"+ve,t+"-"+Me])},[]),kt=[].concat(Re,[xt]).reduce(function(e,t){return e.concat([t,t+"-"+ve,t+"-"+Me])},[]),di="beforeRead",pi="read",hi="afterRead",gi="beforeMain",mi="main",bi="afterMain",yi="beforeWrite",vi="write",wi="afterWrite",_i=[di,pi,hi,gi,mi,bi,yi,vi,wi];function G(e){return e?(e.nodeName||"").toLowerCase():null}function K(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function we(e){var t=K(e).Element;return e instanceof t||e instanceof Element}function z(e){var t=K(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Pt(e){if(typeof ShadowRoot>"u")return!1;var t=K(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Ei(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},a=t.attributes[n]||{},i=t.elements[n];!z(i)||!G(i)||(Object.assign(i.style,o),Object.keys(a).forEach(function(s){var c=a[s];c===!1?i.removeAttribute(s):i.setAttribute(s,c===!0?"":c)}))})}function Si(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var a=t.elements[o],i=t.attributes[o]||{},s=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),c=s.reduce(function(l,f){return l[f]="",l},{});!z(a)||!G(a)||(Object.assign(a.style,c),Object.keys(i).forEach(function(l){a.removeAttribute(l)}))})}}var Mn={name:"applyStyles",enabled:!0,phase:"write",fn:Ei,effect:Si,requires:["computeStyles"]};function q(e){return e.split("-")[0]}var de=Math.max,Qe=Math.min,_e=Math.round;function Ee(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),o=1,a=1;if(z(e)&&t){var i=e.offsetHeight,s=e.offsetWidth;s>0&&(o=_e(n.width)/s||1),i>0&&(a=_e(n.height)/i||1)}return{width:n.width/o,height:n.height/a,top:n.top/a,right:n.right/o,bottom:n.bottom/a,left:n.left/o,x:n.left/o,y:n.top/a}}function It(e){var t=Ee(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function Nn(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Pt(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function X(e){return K(e).getComputedStyle(e)}function Oi(e){return["table","td","th"].indexOf(G(e))>=0}function oe(e){return((we(e)?e.ownerDocument:e.document)||window.document).documentElement}function Xe(e){return G(e)==="html"?e:e.assignedSlot||e.parentNode||(Pt(e)?e.host:null)||oe(e)}function $n(e){return!z(e)||X(e).position==="fixed"?null:e.offsetParent}function Ti(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&z(e)){var o=X(e);if(o.position==="fixed")return null}var a=Xe(e);for(Pt(a)&&(a=a.host);z(a)&&["html","body"].indexOf(G(a))<0;){var i=X(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function $e(e){for(var t=K(e),n=$n(e);n&&Oi(n)&&X(n).position==="static";)n=$n(n);return n&&(G(n)==="html"||G(n)==="body"&&X(n).position==="static")?t:n||Ti(e)||t}function At(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Fe(e,t,n){return de(e,Qe(t,n))}function Ci(e,t,n){var o=Fe(e,t,n);return o>n?n:o}function Fn(){return{top:0,right:0,bottom:0,left:0}}function jn(e){return Object.assign({},Fn(),e)}function Ln(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var xi=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,jn(typeof e!="number"?e:Ln(e,Re))};function ki(e){var t,n=e.state,o=e.name,a=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,c=q(n.placement),l=At(c),f=[F,D].indexOf(c)>=0,h=f?"height":"width";if(!(!i||!s)){var g=xi(a.padding,n),b=It(i),m=l==="y"?$:F,d=l==="y"?H:D,u=n.rects.reference[h]+n.rects.reference[l]-s[l]-n.rects.popper[h],y=s[l]-n.rects.reference[l],p=$e(i),w=p?l==="y"?p.clientHeight||0:p.clientWidth||0:0,S=u/2-y/2,v=g[m],O=w-b[h]-g[d],C=w/2-b[h]/2+S,E=Fe(v,C,O),T=l;n.modifiersData[o]=(t={},t[T]=E,t.centerOffset=E-C,t)}}function Pi(e){var t=e.state,n=e.options,o=n.element,a=o===void 0?"[data-popper-arrow]":o;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||!Nn(t.elements.popper,a)||(t.elements.arrow=a))}var Ii={name:"arrow",enabled:!0,phase:"main",fn:ki,effect:Pi,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Se(e){return e.split("-")[1]}var Ai={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Bi(e){var t=e.x,n=e.y,o=window,a=o.devicePixelRatio||1;return{x:_e(t*a)/a||0,y:_e(n*a)/a||0}}function Hn(e){var t,n=e.popper,o=e.popperRect,a=e.placement,i=e.variation,s=e.offsets,c=e.position,l=e.gpuAcceleration,f=e.adaptive,h=e.roundOffsets,g=e.isFixed,b=s.x,m=b===void 0?0:b,d=s.y,u=d===void 0?0:d,y=typeof h=="function"?h({x:m,y:u}):{x:m,y:u};m=y.x,u=y.y;var p=s.hasOwnProperty("x"),w=s.hasOwnProperty("y"),S=F,v=$,O=window;if(f){var C=$e(n),E="clientHeight",T="clientWidth";if(C===K(n)&&(C=oe(n),X(C).position!=="static"&&c==="absolute"&&(E="scrollHeight",T="scrollWidth")),C=C,a===$||(a===F||a===D)&&i===Me){v=H;var I=g&&C===O&&O.visualViewport?O.visualViewport.height:C[E];u-=I-o.height,u*=l?1:-1}if(a===F||(a===$||a===H)&&i===Me){S=D;var x=g&&C===O&&O.visualViewport?O.visualViewport.width:C[T];m-=x-o.width,m*=l?1:-1}}var A=Object.assign({position:c},f&&Ai),P=h===!0?Bi({x:m,y:u}):{x:m,y:u};if(m=P.x,u=P.y,l){var B;return Object.assign({},A,(B={},B[v]=w?"0":"",B[S]=p?"0":"",B.transform=(O.devicePixelRatio||1)<=1?"translate("+m+"px, "+u+"px)":"translate3d("+m+"px, "+u+"px, 0)",B))}return Object.assign({},A,(t={},t[v]=w?u+"px":"",t[S]=p?m+"px":"",t.transform="",t))}function Ri(e){var t=e.state,n=e.options,o=n.gpuAcceleration,a=o===void 0?!0:o,i=n.adaptive,s=i===void 0?!0:i,c=n.roundOffsets,l=c===void 0?!0:c,f={placement:q(t.placement),variation:Se(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Hn(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Hn(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Dn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ri,data:{}},et={passive:!0};function Mi(e){var t=e.state,n=e.instance,o=e.options,a=o.scroll,i=a===void 0?!0:a,s=o.resize,c=s===void 0?!0:s,l=K(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&f.forEach(function(h){h.addEventListener("scroll",n.update,et)}),c&&l.addEventListener("resize",n.update,et),function(){i&&f.forEach(function(h){h.removeEventListener("scroll",n.update,et)}),c&&l.removeEventListener("resize",n.update,et)}}var zn={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Mi,data:{}},Ni={left:"right",right:"left",bottom:"top",top:"bottom"};function tt(e){return e.replace(/left|right|bottom|top/g,function(t){return Ni[t]})}var $i={start:"end",end:"start"};function Vn(e){return e.replace(/start|end/g,function(t){return $i[t]})}function Bt(e){var t=K(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Rt(e){return Ee(oe(e)).left+Bt(e).scrollLeft}function Fi(e){var t=K(e),n=oe(e),o=t.visualViewport,a=n.clientWidth,i=n.clientHeight,s=0,c=0;return o&&(a=o.width,i=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=o.offsetLeft,c=o.offsetTop)),{width:a,height:i,x:s+Rt(e),y:c}}function ji(e){var t,n=oe(e),o=Bt(e),a=(t=e.ownerDocument)==null?void 0:t.body,i=de(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=de(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),c=-o.scrollLeft+Rt(e),l=-o.scrollTop;return X(a||n).direction==="rtl"&&(c+=de(n.clientWidth,a?a.clientWidth:0)-i),{width:i,height:s,x:c,y:l}}function Mt(e){var t=X(e),n=t.overflow,o=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+o)}function Un(e){return["html","body","#document"].indexOf(G(e))>=0?e.ownerDocument.body:z(e)&&Mt(e)?e:Un(Xe(e))}function je(e,t){var n;t===void 0&&(t=[]);var o=Un(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),i=K(o),s=a?[i].concat(i.visualViewport||[],Mt(o)?o:[]):o,c=t.concat(s);return a?c:c.concat(je(Xe(s)))}function Nt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Li(e){var t=Ee(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 Kn(e,t){return t===Bn?Nt(Fi(e)):we(t)?Li(t):Nt(ji(oe(e)))}function Hi(e){var t=je(Xe(e)),n=["absolute","fixed"].indexOf(X(e).position)>=0,o=n&&z(e)?$e(e):e;return we(o)?t.filter(function(a){return we(a)&&Nn(a,o)&&G(a)!=="body"}):[]}function Di(e,t,n){var o=t==="clippingParents"?Hi(e):[].concat(t),a=[].concat(o,[n]),i=a[0],s=a.reduce(function(c,l){var f=Kn(e,l);return c.top=de(f.top,c.top),c.right=Qe(f.right,c.right),c.bottom=Qe(f.bottom,c.bottom),c.left=de(f.left,c.left),c},Kn(e,i));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Wn(e){var t=e.reference,n=e.element,o=e.placement,a=o?q(o):null,i=o?Se(o):null,s=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2,l;switch(a){case $:l={x:s,y:t.y-n.height};break;case H:l={x:s,y:t.y+t.height};break;case D:l={x:t.x+t.width,y:c};break;case F:l={x:t.x-n.width,y:c};break;default:l={x:t.x,y:t.y}}var f=a?At(a):null;if(f!=null){var h=f==="y"?"height":"width";switch(i){case ve:l[f]=l[f]-(t[h]/2-n[h]/2);break;case Me:l[f]=l[f]+(t[h]/2-n[h]/2);break}}return l}function Le(e,t){t===void 0&&(t={});var n=t,o=n.placement,a=o===void 0?e.placement:o,i=n.boundary,s=i===void 0?fi:i,c=n.rootBoundary,l=c===void 0?Bn:c,f=n.elementContext,h=f===void 0?Ne:f,g=n.altBoundary,b=g===void 0?!1:g,m=n.padding,d=m===void 0?0:m,u=jn(typeof d!="number"?d:Ln(d,Re)),y=h===Ne?ui:Ne,p=e.rects.popper,w=e.elements[b?y:h],S=Di(we(w)?w:w.contextElement||oe(e.elements.popper),s,l),v=Ee(e.elements.reference),O=Wn({reference:v,element:p,strategy:"absolute",placement:a}),C=Nt(Object.assign({},p,O)),E=h===Ne?C:v,T={top:S.top-E.top+u.top,bottom:E.bottom-S.bottom+u.bottom,left:S.left-E.left+u.left,right:E.right-S.right+u.right},I=e.modifiersData.offset;if(h===Ne&&I){var x=I[a];Object.keys(T).forEach(function(A){var P=[D,H].indexOf(A)>=0?1:-1,B=[$,H].indexOf(A)>=0?"y":"x";T[A]+=x[B]*P})}return T}function zi(e,t){t===void 0&&(t={});var n=t,o=n.placement,a=n.boundary,i=n.rootBoundary,s=n.padding,c=n.flipVariations,l=n.allowedAutoPlacements,f=l===void 0?kt:l,h=Se(o),g=h?c?Rn:Rn.filter(function(d){return Se(d)===h}):Re,b=g.filter(function(d){return f.indexOf(d)>=0});b.length===0&&(b=g);var m=b.reduce(function(d,u){return d[u]=Le(e,{placement:u,boundary:a,rootBoundary:i,padding:s})[q(u)],d},{});return Object.keys(m).sort(function(d,u){return m[d]-m[u]})}function Vi(e){if(q(e)===xt)return[];var t=tt(e);return[Vn(e),t,Vn(t)]}function Ui(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var a=n.mainAxis,i=a===void 0?!0:a,s=n.altAxis,c=s===void 0?!0:s,l=n.fallbackPlacements,f=n.padding,h=n.boundary,g=n.rootBoundary,b=n.altBoundary,m=n.flipVariations,d=m===void 0?!0:m,u=n.allowedAutoPlacements,y=t.options.placement,p=q(y),w=p===y,S=l||(w||!d?[tt(y)]:Vi(y)),v=[y].concat(S).reduce(function(ge,te){return ge.concat(q(te)===xt?zi(t,{placement:te,boundary:h,rootBoundary:g,padding:f,flipVariations:d,allowedAutoPlacements:u}):te)},[]),O=t.rects.reference,C=t.rects.popper,E=new Map,T=!0,I=v[0],x=0;x<v.length;x++){var A=v[x],P=q(A),B=Se(A)===ve,Z=[$,H].indexOf(P)>=0,N=Z?"width":"height",_=Le(t,{placement:A,boundary:h,rootBoundary:g,altBoundary:b,padding:f}),R=Z?B?D:F:B?H:$;O[N]>C[N]&&(R=tt(R));var he=tt(R),J=[];if(i&&J.push(_[P]<=0),c&&J.push(_[R]<=0,_[he]<=0),J.every(function(ge){return ge})){I=A,T=!1;break}E.set(A,J)}if(T)for(var lt=d?3:1,Qt=function(ge){var te=v.find(function(ut){var De=E.get(ut);if(De)return De.slice(0,ge).every(function(Ce){return Ce})});if(te)return I=te,"break"},He=lt;He>0;He--){var ft=Qt(He);if(ft==="break")break}t.placement!==I&&(t.modifiersData[o]._skip=!0,t.placement=I,t.reset=!0)}}var Ki={name:"flip",enabled:!0,phase:"main",fn:Ui,requiresIfExists:["offset"],data:{_skip:!1}};function Gn(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 qn(e){return[$,D,H,F].some(function(t){return e[t]>=0})}function Wi(e){var t=e.state,n=e.name,o=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,s=Le(t,{elementContext:"reference"}),c=Le(t,{altBoundary:!0}),l=Gn(s,o),f=Gn(c,a,i),h=qn(l),g=qn(f);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:f,isReferenceHidden:h,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":g})}var Gi={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Wi};function qi(e,t,n){var o=q(e),a=[F,$].indexOf(o)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],c=i[1];return s=s||0,c=(c||0)*a,[F,D].indexOf(o)>=0?{x:c,y:s}:{x:s,y:c}}function Zi(e){var t=e.state,n=e.options,o=e.name,a=n.offset,i=a===void 0?[0,0]:a,s=kt.reduce(function(h,g){return h[g]=qi(g,t.rects,i),h},{}),c=s[t.placement],l=c.x,f=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=f),t.modifiersData[o]=s}var Ji={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Zi};function Yi(e){var t=e.state,n=e.name;t.modifiersData[n]=Wn({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Zn={name:"popperOffsets",enabled:!0,phase:"read",fn:Yi,data:{}};function Qi(e){return e==="x"?"y":"x"}function Xi(e){var t=e.state,n=e.options,o=e.name,a=n.mainAxis,i=a===void 0?!0:a,s=n.altAxis,c=s===void 0?!1:s,l=n.boundary,f=n.rootBoundary,h=n.altBoundary,g=n.padding,b=n.tether,m=b===void 0?!0:b,d=n.tetherOffset,u=d===void 0?0:d,y=Le(t,{boundary:l,rootBoundary:f,padding:g,altBoundary:h}),p=q(t.placement),w=Se(t.placement),S=!w,v=At(p),O=Qi(v),C=t.modifiersData.popperOffsets,E=t.rects.reference,T=t.rects.popper,I=typeof u=="function"?u(Object.assign({},t.rects,{placement:t.placement})):u,x=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(C){if(i){var B,Z=v==="y"?$:F,N=v==="y"?H:D,_=v==="y"?"height":"width",R=C[v],he=R+y[Z],J=R-y[N],lt=m?-T[_]/2:0,Qt=w===ve?E[_]:T[_],He=w===ve?-T[_]:-E[_],ft=t.elements.arrow,ge=m&&ft?It(ft):{width:0,height:0},te=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Fn(),ut=te[Z],De=te[N],Ce=Fe(0,E[_],ge[_]),hl=S?E[_]/2-lt-Ce-ut-x.mainAxis:Qt-Ce-ut-x.mainAxis,gl=S?-E[_]/2+lt+Ce+De+x.mainAxis:He+Ce+De+x.mainAxis,Xt=t.elements.arrow&&$e(t.elements.arrow),ml=Xt?v==="y"?Xt.clientTop||0:Xt.clientLeft||0:0,Nr=(B=A==null?void 0:A[v])!=null?B:0,bl=R+hl-Nr-ml,yl=R+gl-Nr,$r=Fe(m?Qe(he,bl):he,R,m?de(J,yl):J);C[v]=$r,P[v]=$r-R}if(c){var Fr,vl=v==="x"?$:F,wl=v==="x"?H:D,me=C[O],dt=O==="y"?"height":"width",jr=me+y[vl],Lr=me-y[wl],en=[$,F].indexOf(p)!==-1,Hr=(Fr=A==null?void 0:A[O])!=null?Fr:0,Dr=en?jr:me-E[dt]-T[dt]-Hr+x.altAxis,zr=en?me+E[dt]+T[dt]-Hr-x.altAxis:Lr,Vr=m&&en?Ci(Dr,me,zr):Fe(m?Dr:jr,me,m?zr:Lr);C[O]=Vr,P[O]=Vr-me}t.modifiersData[o]=P}}var es={name:"preventOverflow",enabled:!0,phase:"main",fn:Xi,requiresIfExists:["offset"]};function ts(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ns(e){return e===K(e)||!z(e)?Bt(e):ts(e)}function rs(e){var t=e.getBoundingClientRect(),n=_e(t.width)/e.offsetWidth||1,o=_e(t.height)/e.offsetHeight||1;return n!==1||o!==1}function os(e,t,n){n===void 0&&(n=!1);var o=z(t),a=z(t)&&rs(t),i=oe(t),s=Ee(e,a),c={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!n)&&((G(t)!=="body"||Mt(i))&&(c=ns(t)),z(t)?(l=Ee(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Rt(i))),{x:s.left+c.scrollLeft-l.x,y:s.top+c.scrollTop-l.y,width:s.width,height:s.height}}function as(e){var t=new Map,n=new Set,o=[];e.forEach(function(i){t.set(i.name,i)});function a(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(c){if(!n.has(c)){var l=t.get(c);l&&a(l)}}),o.push(i)}return e.forEach(function(i){n.has(i.name)||a(i)}),o}function is(e){var t=as(e);return _i.reduce(function(n,o){return n.concat(t.filter(function(a){return a.phase===o}))},[])}function ss(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function cs(e){var t=e.reduce(function(n,o){var a=n[o.name];return n[o.name]=a?Object.assign({},a,o,{options:Object.assign({},a.options,o.options),data:Object.assign({},a.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var Jn={placement:"bottom",modifiers:[],strategy:"absolute"};function Yn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function $t(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,a=t.defaultOptions,i=a===void 0?Jn:a;return function(s,c,l){l===void 0&&(l=i);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},Jn,i),modifiersData:{},elements:{reference:s,popper:c},attributes:{},styles:{}},h=[],g=!1,b={state:f,setOptions:function(u){var y=typeof u=="function"?u(f.options):u;d(),f.options=Object.assign({},i,f.options,y),f.scrollParents={reference:we(s)?je(s):s.contextElement?je(s.contextElement):[],popper:je(c)};var p=is(cs([].concat(o,f.options.modifiers)));return f.orderedModifiers=p.filter(function(w){return w.enabled}),m(),b.update()},forceUpdate:function(){if(!g){var u=f.elements,y=u.reference,p=u.popper;if(Yn(y,p)){f.rects={reference:os(y,$e(p),f.options.strategy==="fixed"),popper:It(p)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(T){return f.modifiersData[T.name]=Object.assign({},T.data)});for(var w=0;w<f.orderedModifiers.length;w++){if(f.reset===!0){f.reset=!1,w=-1;continue}var S=f.orderedModifiers[w],v=S.fn,O=S.options,C=O===void 0?{}:O,E=S.name;typeof v=="function"&&(f=v({state:f,options:C,name:E,instance:b})||f)}}}},update:ss(function(){return new Promise(function(u){b.forceUpdate(),u(f)})}),destroy:function(){d(),g=!0}};if(!Yn(s,c))return b;b.setOptions(l).then(function(u){!g&&l.onFirstUpdate&&l.onFirstUpdate(u)});function m(){f.orderedModifiers.forEach(function(u){var y=u.name,p=u.options,w=p===void 0?{}:p,S=u.effect;if(typeof S=="function"){var v=S({state:f,name:y,instance:b,options:w}),O=function(){};h.push(v||O)}})}function d(){h.forEach(function(u){return u()}),h=[]}return b}}$t();var ls=[zn,Zn,Dn,Mn];$t({defaultModifiers:ls});var fs=[zn,Zn,Dn,Mn,Ji,Ki,es,Ii,Gi],us=$t({defaultModifiers:fs});const ds=(e,t,n={})=>{const o={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const f=ps(l);Object.assign(s.value,f)},requires:["computeStyles"]},a=r.computed(()=>{const{onFirstUpdate:l,placement:f,strategy:h,modifiers:g}=r.unref(n);return{onFirstUpdate:l,placement:f||"bottom",strategy:h||"absolute",modifiers:[...g||[],o,{name:"applyStyles",enabled:!1}]}}),i=r.shallowRef(),s=r.ref({styles:{popper:{position:r.unref(a).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=()=>{i.value&&(i.value.destroy(),i.value=void 0)};return r.watch(a,l=>{const f=r.unref(i);f&&f.setOptions(l)},{deep:!0}),r.watch([e,t],([l,f])=>{c(),!(!l||!f)&&(i.value=us(l,f,r.unref(a)))}),r.onBeforeUnmount(()=>{c()}),{state:r.computed(()=>{var l;return{...((l=r.unref(i))==null?void 0:l.state)||{}}}),styles:r.computed(()=>r.unref(s).styles),attributes:r.computed(()=>r.unref(s).attributes),update:()=>{var l;return(l=r.unref(i))==null?void 0:l.update()},forceUpdate:()=>{var l;return(l=r.unref(i))==null?void 0:l.forceUpdate()},instanceRef:r.computed(()=>r.unref(i))}};function ps(e){const t=Object.keys(e.elements),n=St(t.map(a=>[a,e.styles[a]||{}])),o=St(t.map(a=>[a,e.attributes[a]]));return{styles:n,attributes:o}}function Qn(){let e;const t=(o,a)=>{n(),e=window.setTimeout(o,a)},n=()=>window.clearTimeout(e);return on(()=>n()),{registerTimeout:t,cancelTimeout:n}}const Ft={prefix:Math.floor(Math.random()*1e4),current:0},hs=Symbol("elIdInjection"),Xn=()=>r.getCurrentInstance()?r.inject(hs,Ft):Ft,gs=e=>{const t=Xn();!U&&t===Ft&&ye("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
8
+ usage: app.provide(ID_INJECTION_KEY, {
9
+ prefix: number,
10
+ current: number,
11
+ })`);const n=Ct();return r.computed(()=>r.unref(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let Oe=[];const er=e=>{const t=e;t.key===Ye.esc&&Oe.forEach(n=>n(t))},ms=e=>{r.onMounted(()=>{Oe.length===0&&document.addEventListener("keydown",er),U&&Oe.push(e)}),r.onBeforeUnmount(()=>{Oe=Oe.filter(t=>t!==e),Oe.length===0&&U&&document.removeEventListener("keydown",er)})};let tr;const nr=()=>{const e=Ct(),t=Xn(),n=r.computed(()=>`${e.value}-popper-container-${t.prefix}`),o=r.computed(()=>`#${n.value}`);return{id:n,selector:o}},bs=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},ys=()=>{const{id:e,selector:t}=nr();return r.onBeforeMount(()=>{U&&(process.env.NODE_ENV==="test"||!tr&&!document.body.querySelector(t.value))&&(tr=bs(e.value))}),{id:e,selector:t}},vs=j({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),ws=({showAfter:e,hideAfter:t,autoClose:n,open:o,close:a})=>{const{registerTimeout:i}=Qn(),{registerTimeout:s,cancelTimeout:c}=Qn();return{onOpen:h=>{i(()=>{o(h);const g=r.unref(n);Ie(g)&&g>0&&s(()=>{a(h)},g)},r.unref(e))},onClose:h=>{c(),i(()=>{a(h)},r.unref(t))}}},rr=Symbol("elForwardRef"),_s=e=>{const t=n=>{e.value=n};r.provide(rr,{setForwardRef:t})},Es=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),or={current:0},ar=r.ref(0),Ss=2e3,ir=Symbol("elZIndexContextKey"),Os=Symbol("zIndexContextKey"),Ts=e=>{const t=r.getCurrentInstance()?r.inject(ir,or):or,n=r.getCurrentInstance()?r.inject(Os,void 0):void 0,o=r.computed(()=>{const s=r.unref(n);return Ie(s)?s:Ss}),a=r.computed(()=>o.value+ar.value),i=()=>(t.current++,ar.value=t.current,a.value);return!U&&!r.inject(ir)&&ye("ZIndexInjection",`Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
12
+ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:o,currentZIndex:a,nextZIndex:i}},Cs=Je({type:String,values:oi,required:!1}),xs=Symbol("size"),ks=()=>{const e=r.inject(xs,{});return r.computed(()=>r.unref(e.size)||"")},Ps=j({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),sr=e=>qa(Ps,e),Is=Symbol(),cr=r.ref();function As(e,t=void 0){const n=r.getCurrentInstance()?r.inject(Is,cr):cr;return r.computed(()=>{var o,a;return(a=(o=n.value)==null?void 0:o[e])!=null?a:t})}var V=(e,t)=>{const n=e.__vccOpts||e;for(const[o,a]of t)n[o]=a;return n};const Bs=j({size:{type:k([Number,String])},color:{type:String}}),Rs=r.defineComponent({name:"ElIcon",inheritAttrs:!1}),Ms=r.defineComponent({...Rs,props:Bs,setup(e){const t=e,n=Q("icon"),o=r.computed(()=>{const{size:a,color:i}=t;return!a&&!i?{}:{fontSize:Za(a)?void 0:Xa(a),"--color":i}});return(a,i)=>(r.openBlock(),r.createElementBlock("i",r.mergeProps({class:r.unref(n).b(),style:r.unref(o)},a.$attrs),[r.renderSlot(a.$slots,"default")],16))}});var Ns=V(Ms,[["__file","icon.vue"]]);const jt=Be(Ns),Lt=Symbol("formContextKey"),nt=Symbol("formItemContextKey"),$s=(e,t={})=>{const n=r.ref(void 0),o=t.prop?n:An("size"),a=t.global?n:ks(),i=t.form?{size:void 0}:r.inject(Lt,void 0),s=t.formItem?{size:void 0}:r.inject(nt,void 0);return r.computed(()=>o.value||r.unref(e)||(s==null?void 0:s.size)||(i==null?void 0:i.size)||a.value||"")},lr=e=>{const t=An("disabled"),n=r.inject(Lt,void 0);return r.computed(()=>t.value||r.unref(e)||(n==null?void 0:n.disabled)||!1)},Fs=()=>{const e=r.inject(Lt,void 0),t=r.inject(nt,void 0);return{form:e,formItem:t}},Ht=Symbol("popper"),fr=Symbol("popperContent"),ur=j({role:{type:String,values:["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],default:"tooltip"}}),js=r.defineComponent({name:"ElPopper",inheritAttrs:!1}),Ls=r.defineComponent({...js,props:ur,setup(e,{expose:t}){const n=e,o=r.ref(),a=r.ref(),i=r.ref(),s=r.ref(),c=r.computed(()=>n.role),l={triggerRef:o,popperInstanceRef:a,contentRef:i,referenceRef:s,role:c};return t(l),r.provide(Ht,l),(f,h)=>r.renderSlot(f.$slots,"default")}});var Hs=V(Ls,[["__file","popper.vue"]]);const dr=j({arrowOffset:{type:Number,default:5}}),Ds=r.defineComponent({name:"ElPopperArrow",inheritAttrs:!1}),zs=r.defineComponent({...Ds,props:dr,setup(e,{expose:t}){const n=e,o=Q("popper"),{arrowOffset:a,arrowRef:i,arrowStyle:s}=r.inject(fr,void 0);return r.watch(()=>n.arrowOffset,c=>{a.value=c}),r.onBeforeUnmount(()=>{i.value=void 0}),t({arrowRef:i}),(c,l)=>(r.openBlock(),r.createElementBlock("span",{ref_key:"arrowRef",ref:i,class:r.normalizeClass(r.unref(o).e("arrow")),style:r.normalizeStyle(r.unref(s)),"data-popper-arrow":""},null,6))}});var Vs=V(zs,[["__file","arrow.vue"]]);const Dt="ElOnlyChild",Us=r.defineComponent({name:Dt,setup(e,{slots:t,attrs:n}){var o;const a=r.inject(rr),i=Es((o=a==null?void 0:a.setForwardRef)!=null?o:ze);return()=>{var s;const c=(s=t.default)==null?void 0:s.call(t,n);if(!c)return null;if(c.length>1)return ye(Dt,"requires exact only one valid child."),null;const l=pr(c);return l?r.withDirectives(r.cloneVNode(l,n),[[i]]):(ye(Dt,"no valid child node found"),null)}}});function pr(e){if(!e)return null;const t=e;for(const n of t){if(ht(n))switch(n.type){case r.Comment:continue;case r.Text:case"svg":return hr(n);case r.Fragment:return pr(n.children);default:return n}return hr(n)}return null}function hr(e){const t=Q("only-child");return r.createVNode("span",{class:t.e("content")},[e])}const gr=j({virtualRef:{type:k(Object)},virtualTriggering:Boolean,onMouseenter:{type:k(Function)},onMouseleave:{type:k(Function)},onClick:{type:k(Function)},onKeydown:{type:k(Function)},onFocus:{type:k(Function)},onBlur:{type:k(Function)},onContextmenu:{type:k(Function)},id:String,open:Boolean}),Ks=r.defineComponent({name:"ElPopperTrigger",inheritAttrs:!1}),Ws=r.defineComponent({...Ks,props:gr,setup(e,{expose:t}){const n=e,{role:o,triggerRef:a}=r.inject(Ht,void 0);_s(a);const i=r.computed(()=>c.value?n.id:void 0),s=r.computed(()=>{if(o&&o.value==="tooltip")return n.open&&n.id?n.id:void 0}),c=r.computed(()=>{if(o&&o.value!=="tooltip")return o.value}),l=r.computed(()=>c.value?`${n.open}`:void 0);let f;const h=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return r.onMounted(()=>{r.watch(()=>n.virtualRef,g=>{g&&(a.value=ce(g))},{immediate:!0}),r.watch(a,(g,b)=>{f==null||f(),f=void 0,Ae(g)&&(h.forEach(m=>{var d;const u=n[m];u&&(g.addEventListener(m.slice(2).toLowerCase(),u),(d=b==null?void 0:b.removeEventListener)==null||d.call(b,m.slice(2).toLowerCase(),u))}),f=r.watch([i,s,c,l],m=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((d,u)=>{Ot(m[u])?g.removeAttribute(d):g.setAttribute(d,m[u])})},{immediate:!0})),Ae(b)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(m=>b.removeAttribute(m))},{immediate:!0})}),r.onBeforeUnmount(()=>{if(f==null||f(),f=void 0,a.value&&Ae(a.value)){const g=a.value;h.forEach(b=>{const m=n[b];m&&g.removeEventListener(b.slice(2).toLowerCase(),m)}),a.value=void 0}}),t({triggerRef:a}),(g,b)=>g.virtualTriggering?r.createCommentVNode("v-if",!0):(r.openBlock(),r.createBlock(r.unref(Us),r.mergeProps({key:0},g.$attrs,{"aria-controls":r.unref(i),"aria-describedby":r.unref(s),"aria-expanded":r.unref(l),"aria-haspopup":r.unref(c)}),{default:r.withCtx(()=>[r.renderSlot(g.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var Gs=V(Ws,[["__file","trigger.vue"]]);const zt="focus-trap.focus-after-trapped",Vt="focus-trap.focus-after-released",qs="focus-trap.focusout-prevented",mr={cancelable:!0,bubbles:!1},Zs={cancelable:!0,bubbles:!1},br="focusAfterTrapped",yr="focusAfterReleased",Js=Symbol("elFocusTrap"),Ut=r.ref(),rt=r.ref(0),Kt=r.ref(0);let ot=0;const vr=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const a=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||a?NodeFilter.FILTER_SKIP:o.tabIndex>=0||o===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},wr=(e,t)=>{for(const n of e)if(!Ys(n,t))return n},Ys=(e,t)=>{if(process.env.NODE_ENV==="test")return!1;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},Qs=e=>{const t=vr(e),n=wr(t,e),o=wr(t.reverse(),e);return[n,o]},Xs=e=>e instanceof HTMLInputElement&&"select"in e,ae=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),Kt.value=window.performance.now(),e!==n&&Xs(e)&&t&&e.select()}};function _r(e,t){const n=[...e],o=e.indexOf(t);return o!==-1&&n.splice(o,1),n}const ec=()=>{let e=[];return{push:o=>{const a=e[0];a&&o!==a&&a.pause(),e=_r(e,o),e.unshift(o)},remove:o=>{var a,i;e=_r(e,o),(i=(a=e[0])==null?void 0:a.resume)==null||i.call(a)}}},tc=(e,t=!1)=>{const n=document.activeElement;for(const o of e)if(ae(o,t),document.activeElement!==n)return},Er=ec(),nc=()=>rt.value>Kt.value,at=()=>{Ut.value="pointer",rt.value=window.performance.now()},Sr=()=>{Ut.value="keyboard",rt.value=window.performance.now()},rc=()=>(r.onMounted(()=>{ot===0&&(document.addEventListener("mousedown",at),document.addEventListener("touchstart",at),document.addEventListener("keydown",Sr)),ot++}),r.onBeforeUnmount(()=>{ot--,ot<=0&&(document.removeEventListener("mousedown",at),document.removeEventListener("touchstart",at),document.removeEventListener("keydown",Sr))}),{focusReason:Ut,lastUserFocusTimestamp:rt,lastAutomatedFocusTimestamp:Kt}),it=e=>new CustomEvent(qs,{...Zs,detail:e}),oc=r.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[br,yr,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=r.ref();let o,a;const{focusReason:i}=rc();ms(d=>{e.trapped&&!s.paused&&t("release-requested",d)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},c=d=>{if(!e.loop&&!e.trapped||s.paused)return;const{key:u,altKey:y,ctrlKey:p,metaKey:w,currentTarget:S,shiftKey:v}=d,{loop:O}=e,C=u===Ye.tab&&!y&&!p&&!w,E=document.activeElement;if(C&&E){const T=S,[I,x]=Qs(T);if(I&&x){if(!v&&E===x){const P=it({focusReason:i.value});t("focusout-prevented",P),P.defaultPrevented||(d.preventDefault(),O&&ae(I,!0))}else if(v&&[I,T].includes(E)){const P=it({focusReason:i.value});t("focusout-prevented",P),P.defaultPrevented||(d.preventDefault(),O&&ae(x,!0))}}else if(E===T){const P=it({focusReason:i.value});t("focusout-prevented",P),P.defaultPrevented||d.preventDefault()}}};r.provide(Js,{focusTrapRef:n,onKeydown:c}),r.watch(()=>e.focusTrapEl,d=>{d&&(n.value=d)},{immediate:!0}),r.watch([n],([d],[u])=>{d&&(d.addEventListener("keydown",c),d.addEventListener("focusin",h),d.addEventListener("focusout",g)),u&&(u.removeEventListener("keydown",c),u.removeEventListener("focusin",h),u.removeEventListener("focusout",g))});const l=d=>{t(br,d)},f=d=>t(yr,d),h=d=>{const u=r.unref(n);if(!u)return;const y=d.target,p=d.relatedTarget,w=y&&u.contains(y);e.trapped||p&&u.contains(p)||(o=p),w&&t("focusin",d),!s.paused&&e.trapped&&(w?a=y:ae(a,!0))},g=d=>{const u=r.unref(n);if(!(s.paused||!u))if(e.trapped){const y=d.relatedTarget;!Ot(y)&&!u.contains(y)&&setTimeout(()=>{if(!s.paused&&e.trapped){const p=it({focusReason:i.value});t("focusout-prevented",p),p.defaultPrevented||ae(a,!0)}},0)}else{const y=d.target;y&&u.contains(y)||t("focusout",d)}};async function b(){await r.nextTick();const d=r.unref(n);if(d){Er.push(s);const u=d.contains(document.activeElement)?o:document.activeElement;if(o=u,!d.contains(u)){const p=new Event(zt,mr);d.addEventListener(zt,l),d.dispatchEvent(p),p.defaultPrevented||r.nextTick(()=>{let w=e.focusStartEl;Ue(w)||(ae(w),document.activeElement!==w&&(w="first")),w==="first"&&tc(vr(d),!0),(document.activeElement===u||w==="container")&&ae(d)})}}}function m(){const d=r.unref(n);if(d){d.removeEventListener(zt,l);const u=new CustomEvent(Vt,{...mr,detail:{focusReason:i.value}});d.addEventListener(Vt,f),d.dispatchEvent(u),!u.defaultPrevented&&(i.value=="keyboard"||!nc()||d.contains(document.activeElement))&&ae(o??document.body),d.removeEventListener(Vt,f),Er.remove(s)}}return r.onMounted(()=>{e.trapped&&b(),r.watch(()=>e.trapped,d=>{d?b():m()})}),r.onBeforeUnmount(()=>{e.trapped&&m(),n.value&&(n.value.removeEventListener("keydown",c),n.value.removeEventListener("focusin",h),n.value.removeEventListener("focusout",g),n.value=void 0)}),{onKeydown:c}}});function ac(e,t,n,o,a,i){return r.renderSlot(e.$slots,"default",{handleKeydown:e.onKeydown})}var ic=V(oc,[["render",ac],["__file","focus-trap.vue"]]);const sc=["fixed","absolute"],cc=j({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:k(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:kt,default:"bottom"},popperOptions:{type:k(Object),default:()=>({})},strategy:{type:String,values:sc,default:"absolute"}}),Or=j({...cc,id:String,style:{type:k([String,Array,Object])},className:{type:k([String,Array,Object])},effect:{type:k(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:k([String,Array,Object])},popperStyle:{type:k([String,Array,Object])},referenceEl:{type:k(Object)},triggerTargetEl:{type:k(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...sr(["ariaLabel"])}),lc={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},fc=(e,t=[])=>{const{placement:n,strategy:o,popperOptions:a}=e,i={placement:n,strategy:o,...a,modifiers:[...dc(e),...t]};return pc(i,a==null?void 0:a.modifiers),i},uc=e=>{if(U)return ce(e)};function dc(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:o}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:o}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function pc(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const hc=0,gc=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:o,role:a}=r.inject(Ht,void 0),i=r.ref(),s=r.ref(),c=r.computed(()=>({name:"eventListeners",enabled:!!e.visible})),l=r.computed(()=>{var p;const w=r.unref(i),S=(p=r.unref(s))!=null?p:hc;return{name:"arrow",enabled:!Ua(w),options:{element:w,padding:S}}}),f=r.computed(()=>({onFirstUpdate:()=>{d()},...fc(e,[r.unref(l),r.unref(c)])})),h=r.computed(()=>uc(e.referenceEl)||r.unref(o)),{attributes:g,state:b,styles:m,update:d,forceUpdate:u,instanceRef:y}=ds(h,n,f);return r.watch(y,p=>t.value=p),r.onMounted(()=>{r.watch(()=>{var p;return(p=r.unref(h))==null?void 0:p.getBoundingClientRect()},()=>{d()})}),{attributes:g,arrowRef:i,contentRef:n,instanceRef:y,state:b,styles:m,role:a,forceUpdate:u,update:d}},mc=(e,{attributes:t,styles:n,role:o})=>{const{nextZIndex:a}=Ts(),i=Q("popper"),s=r.computed(()=>r.unref(t).popper),c=r.ref(Ie(e.zIndex)?e.zIndex:a()),l=r.computed(()=>[i.b(),i.is("pure",e.pure),i.is(e.effect),e.popperClass]),f=r.computed(()=>[{zIndex:r.unref(c)},r.unref(n).popper,e.popperStyle||{}]),h=r.computed(()=>o.value==="dialog"?"false":void 0),g=r.computed(()=>r.unref(n).arrow||{});return{ariaModal:h,arrowStyle:g,contentAttrs:s,contentClass:l,contentStyle:f,contentZIndex:c,updateZIndex:()=>{c.value=Ie(e.zIndex)?e.zIndex:a()}}},bc=(e,t)=>{const n=r.ref(!1),o=r.ref();return{focusStartRef:o,trapped:n,onFocusAfterReleased:f=>{var h;((h=f.detail)==null?void 0:h.focusReason)!=="pointer"&&(o.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:f=>{e.visible&&!n.value&&(f.target&&(o.value=f.target),n.value=!0)},onFocusoutPrevented:f=>{e.trapping||(f.detail.focusReason==="pointer"&&f.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},yc=r.defineComponent({name:"ElPopperContent"}),vc=r.defineComponent({...yc,props:Or,emits:lc,setup(e,{expose:t,emit:n}){const o=e,{focusStartRef:a,trapped:i,onFocusAfterReleased:s,onFocusAfterTrapped:c,onFocusInTrap:l,onFocusoutPrevented:f,onReleaseRequested:h}=bc(o,n),{attributes:g,arrowRef:b,contentRef:m,styles:d,instanceRef:u,role:y,update:p}=gc(o),{ariaModal:w,arrowStyle:S,contentAttrs:v,contentClass:O,contentStyle:C,updateZIndex:E}=mc(o,{styles:d,attributes:g,role:y}),T=r.inject(nt,void 0),I=r.ref();r.provide(fr,{arrowStyle:S,arrowRef:b,arrowOffset:I}),T&&r.provide(nt,{...T,addInputId:ze,removeInputId:ze});let x;const A=(B=!0)=>{p(),B&&E()},P=()=>{A(!1),o.visible&&o.focusOnShow?i.value=!0:o.visible===!1&&(i.value=!1)};return r.onMounted(()=>{r.watch(()=>o.triggerTargetEl,(B,Z)=>{x==null||x(),x=void 0;const N=r.unref(B||m.value),_=r.unref(Z||m.value);Ae(N)&&(x=r.watch([y,()=>o.ariaLabel,w,()=>o.id],R=>{["role","aria-label","aria-modal","id"].forEach((he,J)=>{Ot(R[J])?N.removeAttribute(he):N.setAttribute(he,R[J])})},{immediate:!0})),_!==N&&Ae(_)&&["role","aria-label","aria-modal","id"].forEach(R=>{_.removeAttribute(R)})},{immediate:!0}),r.watch(()=>o.visible,P,{immediate:!0})}),r.onBeforeUnmount(()=>{x==null||x(),x=void 0}),t({popperContentRef:m,popperInstanceRef:u,updatePopper:A,contentStyle:C}),(B,Z)=>(r.openBlock(),r.createElementBlock("div",r.mergeProps({ref_key:"contentRef",ref:m},r.unref(v),{style:r.unref(C),class:r.unref(O),tabindex:"-1",onMouseenter:N=>B.$emit("mouseenter",N),onMouseleave:N=>B.$emit("mouseleave",N)}),[r.createVNode(r.unref(ic),{trapped:r.unref(i),"trap-on-focus-in":!0,"focus-trap-el":r.unref(m),"focus-start-el":r.unref(a),onFocusAfterTrapped:r.unref(c),onFocusAfterReleased:r.unref(s),onFocusin:r.unref(l),onFocusoutPrevented:r.unref(f),onReleaseRequested:r.unref(h)},{default:r.withCtx(()=>[r.renderSlot(B.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}});var wc=V(vc,[["__file","content.vue"]]);const _c=Be(Hs),Wt=Symbol("elTooltip"),Tr=j({...vs,...Or,appendTo:{type:k([String,Object])},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:k(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...sr(["ariaLabel"])}),Cr=j({...gr,disabled:Boolean,trigger:{type:k([String,Array]),default:"hover"},triggerKeys:{type:k(Array),default:()=>[Ye.enter,Ye.space]}}),{useModelToggleProps:Ec,useModelToggleEmits:Sc,useModelToggle:Oc}=In("visible"),Tc=j({...ur,...Ec,...Tr,...Cr,...dr,showArrow:{type:Boolean,default:!0}}),Cc=[...Sc,"before-show","before-hide","show","hide","open","close"],xc=(e,t)=>Xr(e)?e.includes(t):e===t,Te=(e,t,n)=>o=>{xc(r.unref(e),t)&&n(o)},kc=r.defineComponent({name:"ElTooltipTrigger"}),Pc=r.defineComponent({...kc,props:Cr,setup(e,{expose:t}){const n=e,o=Q("tooltip"),{controlled:a,id:i,open:s,onOpen:c,onClose:l,onToggle:f}=r.inject(Wt,void 0),h=r.ref(null),g=()=>{if(r.unref(a)||n.disabled)return!0},b=r.toRef(n,"trigger"),m=Y(g,Te(b,"hover",c)),d=Y(g,Te(b,"hover",l)),u=Y(g,Te(b,"click",v=>{v.button===0&&f(v)})),y=Y(g,Te(b,"focus",c)),p=Y(g,Te(b,"focus",l)),w=Y(g,Te(b,"contextmenu",v=>{v.preventDefault(),f(v)})),S=Y(g,v=>{const{code:O}=v;n.triggerKeys.includes(O)&&(v.preventDefault(),f(v))});return t({triggerRef:h}),(v,O)=>(r.openBlock(),r.createBlock(r.unref(Gs),{id:r.unref(i),"virtual-ref":v.virtualRef,open:r.unref(s),"virtual-triggering":v.virtualTriggering,class:r.normalizeClass(r.unref(o).e("trigger")),onBlur:r.unref(p),onClick:r.unref(u),onContextmenu:r.unref(w),onFocus:r.unref(y),onMouseenter:r.unref(m),onMouseleave:r.unref(d),onKeydown:r.unref(S)},{default:r.withCtx(()=>[r.renderSlot(v.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var Ic=V(Pc,[["__file","trigger.vue"]]);const Ac=j({to:{type:k([String,Object]),required:!0},disabled:Boolean});var Bc=V(r.defineComponent({__name:"teleport",props:Ac,setup(e){return(t,n)=>t.disabled?r.renderSlot(t.$slots,"default",{key:0}):(r.openBlock(),r.createBlock(r.Teleport,{key:1,to:t.to},[r.renderSlot(t.$slots,"default")],8,["to"]))}}),[["__file","teleport.vue"]]);const Rc=Be(Bc),Mc=r.defineComponent({name:"ElTooltipContent",inheritAttrs:!1}),Nc=r.defineComponent({...Mc,props:Tr,setup(e,{expose:t}){const n=e,{selector:o}=nr(),a=Q("tooltip"),i=r.ref(null);let s;const{controlled:c,id:l,open:f,trigger:h,onClose:g,onOpen:b,onShow:m,onHide:d,onBeforeShow:u,onBeforeHide:y}=r.inject(Wt,void 0),p=r.computed(()=>n.transition||`${a.namespace.value}-fade-in-linear`),w=r.computed(()=>process.env.NODE_ENV==="test"?!0:n.persistent);r.onBeforeUnmount(()=>{s==null||s()});const S=r.computed(()=>r.unref(w)?!0:r.unref(f)),v=r.computed(()=>n.disabled?!1:r.unref(f)),O=r.computed(()=>n.appendTo||o.value),C=r.computed(()=>{var _;return(_=n.style)!=null?_:{}}),E=r.computed(()=>!r.unref(f)),T=()=>{d()},I=()=>{if(r.unref(c))return!0},x=Y(I,()=>{n.enterable&&r.unref(h)==="hover"&&b()}),A=Y(I,()=>{r.unref(h)==="hover"&&g()}),P=()=>{var _,R;(R=(_=i.value)==null?void 0:_.updatePopper)==null||R.call(_),u==null||u()},B=()=>{y==null||y()},Z=()=>{m(),s=Gr(r.computed(()=>{var _;return(_=i.value)==null?void 0:_.popperContentRef}),()=>{if(r.unref(c))return;r.unref(h)!=="hover"&&g()})},N=()=>{n.virtualTriggering||g()};return r.watch(()=>r.unref(f),_=>{_||s==null||s()},{flush:"post"}),r.watch(()=>n.content,()=>{var _,R;(R=(_=i.value)==null?void 0:_.updatePopper)==null||R.call(_)}),t({contentRef:i}),(_,R)=>(r.openBlock(),r.createBlock(r.unref(Rc),{disabled:!_.teleported,to:r.unref(O)},{default:r.withCtx(()=>[r.createVNode(r.Transition,{name:r.unref(p),onAfterLeave:T,onBeforeEnter:P,onAfterEnter:Z,onBeforeLeave:B},{default:r.withCtx(()=>[r.unref(S)?r.withDirectives((r.openBlock(),r.createBlock(r.unref(wc),r.mergeProps({key:0,id:r.unref(l),ref_key:"contentRef",ref:i},_.$attrs,{"aria-label":_.ariaLabel,"aria-hidden":r.unref(E),"boundaries-padding":_.boundariesPadding,"fallback-placements":_.fallbackPlacements,"gpu-acceleration":_.gpuAcceleration,offset:_.offset,placement:_.placement,"popper-options":_.popperOptions,strategy:_.strategy,effect:_.effect,enterable:_.enterable,pure:_.pure,"popper-class":_.popperClass,"popper-style":[_.popperStyle,r.unref(C)],"reference-el":_.referenceEl,"trigger-target-el":_.triggerTargetEl,visible:r.unref(v),"z-index":_.zIndex,onMouseenter:r.unref(x),onMouseleave:r.unref(A),onBlur:N,onClose:r.unref(g)}),{default:r.withCtx(()=>[r.renderSlot(_.$slots,"default")]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[r.vShow,r.unref(v)]]):r.createCommentVNode("v-if",!0)]),_:3},8,["name"])]),_:3},8,["disabled","to"]))}});var $c=V(Nc,[["__file","content.vue"]]);const Fc=r.defineComponent({name:"ElTooltip"}),jc=r.defineComponent({...Fc,props:Tc,emits:Cc,setup(e,{expose:t,emit:n}){const o=e;ys();const a=gs(),i=r.ref(),s=r.ref(),c=()=>{var p;const w=r.unref(i);w&&((p=w.popperInstanceRef)==null||p.update())},l=r.ref(!1),f=r.ref(),{show:h,hide:g,hasUpdateHandler:b}=Oc({indicator:l,toggleReason:f}),{onOpen:m,onClose:d}=ws({showAfter:r.toRef(o,"showAfter"),hideAfter:r.toRef(o,"hideAfter"),autoClose:r.toRef(o,"autoClose"),open:h,close:g}),u=r.computed(()=>xn(o.visible)&&!b.value);r.provide(Wt,{controlled:u,id:a,open:r.readonly(l),trigger:r.toRef(o,"trigger"),onOpen:p=>{m(p)},onClose:p=>{d(p)},onToggle:p=>{r.unref(l)?d(p):m(p)},onShow:()=>{n("show",f.value)},onHide:()=>{n("hide",f.value)},onBeforeShow:()=>{n("before-show",f.value)},onBeforeHide:()=>{n("before-hide",f.value)},updatePopper:c}),r.watch(()=>o.disabled,p=>{p&&l.value&&(l.value=!1)});const y=p=>{var w,S;const v=(S=(w=s.value)==null?void 0:w.contentRef)==null?void 0:S.popperContentRef,O=(p==null?void 0:p.relatedTarget)||document.activeElement;return v&&v.contains(O)};return r.onDeactivated(()=>l.value&&g()),t({popperRef:i,contentRef:s,isFocusInsideContent:y,updatePopper:c,onOpen:m,onClose:d,hide:g}),(p,w)=>(r.openBlock(),r.createBlock(r.unref(_c),{ref_key:"popperRef",ref:i,role:p.role},{default:r.withCtx(()=>[r.createVNode(Ic,{disabled:p.disabled,trigger:p.trigger,"trigger-keys":p.triggerKeys,"virtual-ref":p.virtualRef,"virtual-triggering":p.virtualTriggering},{default:r.withCtx(()=>[p.$slots.default?r.renderSlot(p.$slots,"default",{key:0}):r.createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),r.createVNode($c,{ref_key:"contentRef",ref:s,"aria-label":p.ariaLabel,"boundaries-padding":p.boundariesPadding,content:p.content,disabled:p.disabled,effect:p.effect,enterable:p.enterable,"fallback-placements":p.fallbackPlacements,"hide-after":p.hideAfter,"gpu-acceleration":p.gpuAcceleration,offset:p.offset,persistent:p.persistent,"popper-class":p.popperClass,"popper-style":p.popperStyle,placement:p.placement,"popper-options":p.popperOptions,pure:p.pure,"raw-content":p.rawContent,"reference-el":p.referenceEl,"trigger-target-el":p.triggerTargetEl,"show-after":p.showAfter,strategy:p.strategy,teleported:p.teleported,transition:p.transition,"virtual-triggering":p.virtualTriggering,"z-index":p.zIndex,"append-to":p.appendTo},{default:r.withCtx(()=>[r.renderSlot(p.$slots,"content",{},()=>[p.rawContent?(r.openBlock(),r.createElementBlock("span",{key:0,innerHTML:p.content},null,8,["innerHTML"])):(r.openBlock(),r.createElementBlock("span",{key:1},r.toDisplayString(p.content),1))]),p.showArrow?(r.openBlock(),r.createBlock(r.unref(Vs),{key:0,"arrow-offset":p.arrowOffset},null,8,["arrow-offset"])):r.createCommentVNode("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var Lc=V(jc,[["__file","tooltip.vue"]]);const Hc=Be(Lc),xr=Symbol("buttonGroupContextKey"),Dc=(e,t)=>{ai({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},r.computed(()=>e.type==="text"));const n=r.inject(xr,void 0),o=As("button"),{form:a}=Fs(),i=$s(r.computed(()=>n==null?void 0:n.size)),s=lr(),c=r.ref(),l=r.useSlots(),f=r.computed(()=>e.type||(n==null?void 0:n.type)||""),h=r.computed(()=>{var d,u,y;return(y=(u=e.autoInsertSpace)!=null?u:(d=o.value)==null?void 0:d.autoInsertSpace)!=null?y:!1}),g=r.computed(()=>e.tag==="button"?{ariaDisabled:s.value||e.loading,disabled:s.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),b=r.computed(()=>{var d;const u=(d=l.default)==null?void 0:d.call(l);if(h.value&&(u==null?void 0:u.length)===1){const y=u[0];if((y==null?void 0:y.type)===r.Text){const p=y.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(p.trim())}}return!1});return{_disabled:s,_size:i,_type:f,_ref:c,_props:g,shouldAddSpace:b,handleClick:d=>{if(s.value||e.loading){d.stopPropagation();return}e.nativeType==="reset"&&(a==null||a.resetFields()),t("click",d)}}},Gt=j({size:Cs,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:Pn},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:Pn,default:()=>ti},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:k([String,Object]),default:"button"}}),zc={click:e=>e instanceof MouseEvent};function M(e,t){Vc(e)&&(e="100%");var n=Uc(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 st(e){return Math.min(1,Math.max(0,e))}function Vc(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Uc(e){return typeof e=="string"&&e.indexOf("%")!==-1}function kr(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ct(e){return e<=1?"".concat(Number(e)*100,"%"):e}function pe(e){return e.length===1?"0"+e:String(e)}function Kc(e,t,n){return{r:M(e,255)*255,g:M(t,255)*255,b:M(n,255)*255}}function Pr(e,t,n){e=M(e,255),t=M(t,255),n=M(n,255);var o=Math.max(e,t,n),a=Math.min(e,t,n),i=0,s=0,c=(o+a)/2;if(o===a)s=0,i=0;else{var l=o-a;switch(s=c>.5?l/(2-o-a):l/(o+a),o){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4;break}i/=6}return{h:i,s,l:c}}function qt(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 Wc(e,t,n){var o,a,i;if(e=M(e,360),t=M(t,100),n=M(n,100),t===0)a=n,i=n,o=n;else{var s=n<.5?n*(1+t):n+t-n*t,c=2*n-s;o=qt(c,s,e+1/3),a=qt(c,s,e),i=qt(c,s,e-1/3)}return{r:o*255,g:a*255,b:i*255}}function Ir(e,t,n){e=M(e,255),t=M(t,255),n=M(n,255);var o=Math.max(e,t,n),a=Math.min(e,t,n),i=0,s=o,c=o-a,l=o===0?0:c/o;if(o===a)i=0;else{switch(o){case e:i=(t-n)/c+(t<n?6:0);break;case t:i=(n-e)/c+2;break;case n:i=(e-t)/c+4;break}i/=6}return{h:i,s:l,v:s}}function Gc(e,t,n){e=M(e,360)*6,t=M(t,100),n=M(n,100);var o=Math.floor(e),a=e-o,i=n*(1-t),s=n*(1-a*t),c=n*(1-(1-a)*t),l=o%6,f=[n,s,i,i,c,n][l],h=[c,n,n,s,i,i][l],g=[i,i,c,n,n,s][l];return{r:f*255,g:h*255,b:g*255}}function Ar(e,t,n,o){var a=[pe(Math.round(e).toString(16)),pe(Math.round(t).toString(16)),pe(Math.round(n).toString(16))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function qc(e,t,n,o,a){var i=[pe(Math.round(e).toString(16)),pe(Math.round(t).toString(16)),pe(Math.round(n).toString(16)),pe(Zc(o))];return a&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function Zc(e){return Math.round(parseFloat(e)*255).toString(16)}function Br(e){return L(e)/255}function L(e){return parseInt(e,16)}function Jc(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Zt={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 Yc(e){var t={r:0,g:0,b:0},n=1,o=null,a=null,i=null,s=!1,c=!1;return typeof e=="string"&&(e=el(e)),typeof e=="object"&&(ee(e.r)&&ee(e.g)&&ee(e.b)?(t=Kc(e.r,e.g,e.b),s=!0,c=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ee(e.h)&&ee(e.s)&&ee(e.v)?(o=ct(e.s),a=ct(e.v),t=Gc(e.h,o,a),s=!0,c="hsv"):ee(e.h)&&ee(e.s)&&ee(e.l)&&(o=ct(e.s),i=ct(e.l),t=Wc(e.h,o,i),s=!0,c="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=kr(n),{ok:s,format:e.format||c,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 Qc="[-\\+]?\\d+%?",Xc="[-\\+]?\\d*\\.\\d+%?",ie="(?:".concat(Xc,")|(?:").concat(Qc,")"),Jt="[\\s|\\(]+(".concat(ie,")[,|\\s]+(").concat(ie,")[,|\\s]+(").concat(ie,")\\s*\\)?"),Yt="[\\s|\\(]+(".concat(ie,")[,|\\s]+(").concat(ie,")[,|\\s]+(").concat(ie,")[,|\\s]+(").concat(ie,")\\s*\\)?"),W={CSS_UNIT:new RegExp(ie),rgb:new RegExp("rgb"+Jt),rgba:new RegExp("rgba"+Yt),hsl:new RegExp("hsl"+Jt),hsla:new RegExp("hsla"+Yt),hsv:new RegExp("hsv"+Jt),hsva:new RegExp("hsva"+Yt),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 el(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Zt[e])e=Zt[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=W.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=W.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=W.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=W.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=W.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=W.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=W.hex8.exec(e),n?{r:L(n[1]),g:L(n[2]),b:L(n[3]),a:Br(n[4]),format:t?"name":"hex8"}:(n=W.hex6.exec(e),n?{r:L(n[1]),g:L(n[2]),b:L(n[3]),format:t?"name":"hex"}:(n=W.hex4.exec(e),n?{r:L(n[1]+n[1]),g:L(n[2]+n[2]),b:L(n[3]+n[3]),a:Br(n[4]+n[4]),format:t?"name":"hex8"}:(n=W.hex3.exec(e),n?{r:L(n[1]+n[1]),g:L(n[2]+n[2]),b:L(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function ee(e){return!!W.CSS_UNIT.exec(String(e))}var tl=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var o;if(t instanceof e)return t;typeof t=="number"&&(t=Jc(t)),this.originalInput=t;var a=Yc(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(o=n.format)!==null&&o!==void 0?o:a.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=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,o,a,i=t.r/255,s=t.g/255,c=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.055)/1.055,2.4),c<=.03928?a=c/12.92:a=Math.pow((c+.055)/1.055,2.4),.2126*n+.7152*o+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=kr(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=Ir(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=Ir(this.r,this.g,this.b),n=Math.round(t.h*360),o=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(o,"%, ").concat(a,"%)"):"hsva(".concat(n,", ").concat(o,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Pr(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=Pr(this.r,this.g,this.b),n=Math.round(t.h*360),o=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(o,"%, ").concat(a,"%)"):"hsla(".concat(n,", ").concat(o,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Ar(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),qc(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),o=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(o,")"):"rgba(".concat(t,", ").concat(n,", ").concat(o,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(M(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(M(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="#"+Ar(this.r,this.g,this.b,!1),n=0,o=Object.entries(Zt);n<o.length;n++){var a=o[n],i=a[0],s=a[1];if(t===s)return i}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var o=!1,a=this.a<1&&this.a>=0,i=!n&&a&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(o=this.toRgbString()),t==="prgb"&&(o=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(o=this.toHexString()),t==="hex3"&&(o=this.toHexString(!0)),t==="hex4"&&(o=this.toHex8String(!0)),t==="hex8"&&(o=this.toHex8String()),t==="name"&&(o=this.toName()),t==="hsl"&&(o=this.toHslString()),t==="hsv"&&(o=this.toHsvString()),o||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=st(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=st(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=st(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=st(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var o=this.toRgb(),a=new e(t).toRgb(),i=n/100,s={r:(a.r-o.r)*i+o.r,g:(a.g-o.g)*i+o.g,b:(a.b-o.b)*i+o.b,a:(a.a-o.a)*i+o.a};return new e(s)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var o=this.toHsl(),a=360/n,i=[this];for(o.h=(o.h-(a*t>>1)+720)%360;--t;)o.h=(o.h+a)%360,i.push(new e(o));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),o=n.h,a=n.s,i=n.v,s=[],c=1/t;t--;)s.push(new e({h:o,s:a,v:i})),i=(i+c)%1;return s},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),o=new e(t).toRgb(),a=n.a+o.a*(1-n.a);return new e({r:(n.r*n.a+o.r*o.a*(1-n.a))/a,g:(n.g*n.a+o.g*o.a*(1-n.a))/a,b:(n.b*n.a+o.b*o.a*(1-n.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),o=n.h,a=[this],i=360/t,s=1;s<t;s++)a.push(new e({h:(o+s*i)%360,s:n.s,l:n.l}));return a},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function se(e,t=20){return e.mix("#141414",t).toString()}function nl(e){const t=lr(),n=Q("button");return r.computed(()=>{let o={},a=e.color;if(a){const i=a.match(/var\((.*?)\)/);i&&(a=window.getComputedStyle(window.document.documentElement).getPropertyValue(i[1]));const s=new tl(a),c=e.dark?s.tint(20).toString():se(s,20);if(e.plain)o=n.cssVarBlock({"bg-color":e.dark?se(s,90):s.tint(90).toString(),"text-color":a,"border-color":e.dark?se(s,50):s.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":a,"hover-border-color":a,"active-bg-color":c,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":c}),t.value&&(o[n.cssVarBlockName("disabled-bg-color")]=e.dark?se(s,90):s.tint(90).toString(),o[n.cssVarBlockName("disabled-text-color")]=e.dark?se(s,50):s.tint(50).toString(),o[n.cssVarBlockName("disabled-border-color")]=e.dark?se(s,80):s.tint(80).toString());else{const l=e.dark?se(s,30):s.tint(30).toString(),f=s.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(o=n.cssVarBlock({"bg-color":a,"text-color":f,"border-color":a,"hover-bg-color":l,"hover-text-color":f,"hover-border-color":l,"active-bg-color":c,"active-border-color":c}),t.value){const h=e.dark?se(s,50):s.tint(50).toString();o[n.cssVarBlockName("disabled-bg-color")]=h,o[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,o[n.cssVarBlockName("disabled-border-color")]=h}}}return o})}const rl=r.defineComponent({name:"ElButton"}),ol=r.defineComponent({...rl,props:Gt,emits:zc,setup(e,{expose:t,emit:n}){const o=e,a=nl(o),i=Q("button"),{_ref:s,_size:c,_type:l,_disabled:f,_props:h,shouldAddSpace:g,handleClick:b}=Dc(o,n),m=r.computed(()=>[i.b(),i.m(l.value),i.m(c.value),i.is("disabled",f.value),i.is("loading",o.loading),i.is("plain",o.plain),i.is("round",o.round),i.is("circle",o.circle),i.is("text",o.text),i.is("link",o.link),i.is("has-bg",o.bg)]);return t({ref:s,size:c,type:l,disabled:f,shouldAddSpace:g}),(d,u)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(d.tag),r.mergeProps({ref_key:"_ref",ref:s},r.unref(h),{class:r.unref(m),style:r.unref(a),onClick:r.unref(b)}),{default:r.withCtx(()=>[d.loading?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[d.$slots.loading?r.renderSlot(d.$slots,"loading",{key:0}):(r.openBlock(),r.createBlock(r.unref(jt),{key:1,class:r.normalizeClass(r.unref(i).is("loading"))},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(d.loadingIcon)))]),_:1},8,["class"]))],64)):d.icon||d.$slots.icon?(r.openBlock(),r.createBlock(r.unref(jt),{key:1},{default:r.withCtx(()=>[d.icon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(d.icon),{key:0})):r.renderSlot(d.$slots,"icon",{key:1})]),_:3})):r.createCommentVNode("v-if",!0),d.$slots.default?(r.openBlock(),r.createElementBlock("span",{key:2,class:r.normalizeClass({[r.unref(i).em("text","expand")]:r.unref(g)})},[r.renderSlot(d.$slots,"default")],2)):r.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var al=V(ol,[["__file","button.vue"]]);const il={size:Gt.size,type:Gt.type},sl=r.defineComponent({name:"ElButtonGroup"}),cl=r.defineComponent({...sl,props:il,setup(e){const t=e;r.provide(xr,r.reactive({size:r.toRef(t,"size"),type:r.toRef(t,"type")}));const n=Q("button");return(o,a)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(r.unref(n).b("group"))},[r.renderSlot(o.$slots,"default")],2))}});var Rr=V(cl,[["__file","button-group.vue"]]);const ll=Be(al,{ButtonGroup:Rr}),fl=ri(Rr),ul={class:"icon-text-wrapper"},dl={key:0,class:"button-text"},Mr=((e,t)=>{const n=e.__vccOpts||e;for(const[o,a]of t)n[o]=a;return n})(r.defineComponent({__name:"MlToolbar",props:{items:{},size:{default:"large"},layout:{default:"horizontal"}},emits:{click:null},setup(e,{emit:t}){const n=e,o=t,a=r.computed(()=>n.layout==="vertical"?"vertical-button-group":"horizontal-button-group"),i=r.computed(()=>n.size==="small"?20:30),s=r.computed(()=>{switch(n.size){case"small":return 30;case"medium":return 50}return 70}),c=h=>h.description?h.description:h.text,l=r.computed(()=>n.size==="large"),f=h=>{o("click",h)};return(h,g)=>{const b=jt,m=ll,d=Hc,u=fl;return r.openBlock(),r.createBlock(u,{class:r.normalizeClass(a.value)},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(h.items,(y,p)=>(r.openBlock(),r.createBlock(d,{key:y.text,content:c(y)},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(m,{style:r.normalizeStyle({width:s.value+"px",height:s.value+"px"}),key:p,onClick:w=>f(y.command)},{default:r.withCtx(()=>[r.createElementVNode("div",ul,[r.createVNode(b,{size:i.value,innerHTML:y.icon},null,8,["size","innerHTML"]),l.value?(r.openBlock(),r.createElementBlock("div",dl,r.toDisplayString(y.text),1)):r.createCommentVNode("",!0)])]),_:2},1032,["style","onClick"]))]),_:2},1032,["content"]))),128))]),_:1},8,["class"])}}}),[["__scopeId","data-v-f153f204"]]),pl={install(e){e.component("MlToolbar",Mr)}};ne.MlToolbar=Mr,ne.default=pl,Object.defineProperties(ne,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json ADDED
@@ -0,0 +1,38 @@
1
+ {
2
+ "name": "@mlightcad/ui-components",
3
+ "version": "0.0.1",
4
+ "description": "One common UI component library based on Element Plus",
5
+ "license": "MIT",
6
+ "author": "MLight Lee <mlight.lee@outlook.com>",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git://github.com/mlight-lee/ui-components"
10
+ },
11
+ "keywords": [
12
+ "ui",
13
+ "component",
14
+ "vue",
15
+ "element plus",
16
+ "cad",
17
+ "mlight"
18
+ ],
19
+ "main": "dist/ui-components.umd.js",
20
+ "module": "dist/ui-components.es.js",
21
+ "type": "module",
22
+ "types": "./lib/index.d.ts",
23
+ "files": [
24
+ "dist"
25
+ ],
26
+ "peerDependencies": {
27
+ "element-plus": "^2.8.1",
28
+ "vue": "^3.4.21"
29
+ },
30
+ "scripts": {
31
+ "clean": "rimraf dist lib tsconfig.tsbuildinfo",
32
+ "build": "vue-tsc && vite build",
33
+ "generate": "vite-ssg build",
34
+ "lint": "eslint src/",
35
+ "preview": "vite preview",
36
+ "typecheck": "vue-tsc --noEmit"
37
+ }
38
+ }