st-comp 0.0.68 → 0.0.70
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/lib/ChartLayout.cjs.js +1 -0
- package/lib/ChartLayout.es.js +72 -0
- package/lib/Dialog.cjs.js +1 -0
- package/lib/Dialog.es.js +90 -0
- package/lib/HeatMap.cjs.js +1 -0
- package/lib/HeatMap.es.js +118 -0
- package/lib/Kline.cjs.js +1 -0
- package/lib/Kline.es.js +2631 -0
- package/lib/KlineNew.cjs.js +1 -0
- package/lib/KlineNew.es.js +614 -0
- package/lib/LinearLegend.cjs.js +1 -0
- package/lib/LinearLegend.es.js +63 -0
- package/lib/Map.cjs.js +1 -0
- package/lib/{bundle.js → Map.es.js} +43 -41503
- package/lib/Pagination.cjs.js +1 -0
- package/lib/Pagination.es.js +625 -0
- package/lib/Pie.cjs.js +2 -0
- package/lib/Pie.es.js +160 -0
- package/lib/Table.cjs.js +20 -0
- package/lib/Table.es.js +4007 -0
- package/lib/TreeMap.cjs.js +2 -0
- package/lib/TreeMap.es.js +163 -0
- package/lib/VarietySearch.cjs.js +12 -0
- package/lib/VarietySearch.es.js +3336 -0
- package/lib/VirtualTable.cjs.js +13 -0
- package/lib/VirtualTable.es.js +2680 -0
- package/lib/_commonjsHelpers-10dfc225.js +8 -0
- package/lib/_commonjsHelpers-87b0abe8.cjs +1 -0
- package/lib/_plugin-vue_export-helper-dad06003.js +9 -0
- package/lib/_plugin-vue_export-helper-f246444f.cjs +1 -0
- package/lib/base-4865d432.cjs +9 -0
- package/lib/base-a240bf62.js +762 -0
- package/lib/bundle.cjs.js +1 -0
- package/lib/bundle.es.js +46 -0
- package/lib/bundle.umd-4967d574.js +16091 -0
- package/lib/bundle.umd-c5698c50.cjs +71 -0
- package/lib/castArray-3341cbb4.cjs +1 -0
- package/lib/castArray-a723a736.js +10 -0
- package/lib/config-provider-3db4dac6.js +148 -0
- package/lib/config-provider-cf4edc1e.cjs +1 -0
- package/lib/el-button-c24606d0.cjs +1 -0
- package/lib/el-button-fa6a5742.js +231 -0
- package/lib/el-empty-282e5e93.js +204 -0
- package/lib/el-empty-608948d9.cjs +1 -0
- package/lib/el-icon-7718f55e.cjs +1 -0
- package/lib/el-icon-d9ef9ccc.js +592 -0
- package/lib/el-overlay-7fceb816.cjs +5 -0
- package/lib/el-overlay-9b7bdd18.js +678 -0
- package/lib/el-scrollbar-7dc53299.js +248 -0
- package/lib/el-scrollbar-bc381e35.cjs +1 -0
- package/lib/el-select-85ed2643.js +1894 -0
- package/lib/el-select-a50741c1.cjs +9 -0
- package/lib/el-tag-308f715a.js +2416 -0
- package/lib/el-tag-87fd3960.cjs +1 -0
- package/lib/el-tooltip-0ea8fbf8.cjs +1 -0
- package/lib/el-tooltip-4ed993c7.js +1 -0
- package/lib/focus-trap-2a734f35.cjs +3 -0
- package/lib/focus-trap-6922b96b.js +376 -0
- package/lib/index-1508a06b.js +556 -0
- package/lib/index-48a9f60d.cjs +1 -0
- package/lib/index-657047bb.js +513 -0
- package/lib/index-eea0bcb3.cjs +1 -0
- package/lib/index.esm-8d9a2abe.js +2432 -0
- package/lib/index.esm-94a95a2a.cjs +3 -0
- package/lib/raf-5e5c53db.cjs +1 -0
- package/lib/raf-fc8a56cf.js +6 -0
- package/lib/scroll-bb8039ba.cjs +1 -0
- package/lib/scroll-cfdae01b.js +35 -0
- package/lib/style.css +1 -1
- package/lib/typescript-7ae59c4c.js +4 -0
- package/lib/typescript-b63f8e83.cjs +1 -0
- package/lib/vnode-a9714179.js +14 -0
- package/lib/vnode-abafec9e.cjs +1 -0
- package/lib/zh-cn-92978806.js +134 -0
- package/lib/zh-cn-d4df7172.cjs +1 -0
- package/package.json +3 -3
- package/packages/Kline/componentsNew/KlineUtils/index.vue +8 -12
- package/lib/bundle.umd.cjs +0 -139
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const c=require("./base-4865d432.cjs"),G=require("./focus-trap-2a734f35.cjs"),r=require("vue"),N=require("./el-scrollbar-bc381e35.cjs"),Z=(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)};function Zt(e){return e}var Kn=c.getNative(c.root,"WeakMap");const He=Kn;var Gn=9007199254740991;function Ze(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Gn}function Jt(e){return e!=null&&Ze(e.length)&&!c.isFunction(e)}var qn=Object.prototype;function Qt(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||qn;return e===n}function Vn(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}var Xn="[object Arguments]";function Ot(e){return c.isObjectLike(e)&&c.baseGetTag(e)==Xn}var en=Object.prototype,Yn=en.hasOwnProperty,Zn=en.propertyIsEnumerable,Jn=Ot(function(){return arguments}())?Ot:function(e){return c.isObjectLike(e)&&Yn.call(e,"callee")&&!Zn.call(e,"callee")};const Je=Jn;function Qn(){return!1}var tn=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Et=tn&&typeof module=="object"&&module&&!module.nodeType&&module,er=Et&&Et.exports===tn,At=er?c.root.Buffer:void 0,tr=At?At.isBuffer:void 0,nr=tr||Qn;const Re=nr;var rr="[object Arguments]",or="[object Array]",ar="[object Boolean]",ir="[object Date]",sr="[object Error]",lr="[object Function]",ur="[object Map]",fr="[object Number]",cr="[object Object]",pr="[object RegExp]",dr="[object Set]",vr="[object String]",mr="[object WeakMap]",gr="[object ArrayBuffer]",yr="[object DataView]",hr="[object Float32Array]",br="[object Float64Array]",wr="[object Int8Array]",Tr="[object Int16Array]",Or="[object Int32Array]",Er="[object Uint8Array]",Ar="[object Uint8ClampedArray]",Pr="[object Uint16Array]",Cr="[object Uint32Array]",B={};B[hr]=B[br]=B[wr]=B[Tr]=B[Or]=B[Er]=B[Ar]=B[Pr]=B[Cr]=!0;B[rr]=B[or]=B[gr]=B[ar]=B[yr]=B[ir]=B[sr]=B[lr]=B[ur]=B[fr]=B[cr]=B[pr]=B[dr]=B[vr]=B[mr]=!1;function _r(e){return c.isObjectLike(e)&&Ze(e.length)&&!!B[c.baseGetTag(e)]}function nn(e){return function(t){return e(t)}}var rn=typeof exports=="object"&&exports&&!exports.nodeType&&exports,me=rn&&typeof module=="object"&&module&&!module.nodeType&&module,Sr=me&&me.exports===rn,je=Sr&&c.freeGlobal.process,Rr=function(){try{var e=me&&me.require&&me.require("util").types;return e||je&&je.binding&&je.binding("util")}catch{}}();const ze=Rr;var Pt=ze&&ze.isTypedArray,xr=Pt?nn(Pt):_r;const Qe=xr;var Br=Object.prototype,Mr=Br.hasOwnProperty;function on(e,t){var n=c.isArray(e),o=!n&&Je(e),a=!n&&!o&&Re(e),i=!n&&!o&&!a&&Qe(e),s=n||o||a||i,u=s?Vn(e.length,String):[],l=u.length;for(var f in e)(t||Mr.call(e,f))&&!(s&&(f=="length"||a&&(f=="offset"||f=="parent")||i&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||G.isIndex(f,l)))&&u.push(f);return u}function an(e,t){return function(n){return e(t(n))}}var $r=an(Object.keys,Object);const Ir=$r;var Lr=Object.prototype,Nr=Lr.hasOwnProperty;function kr(e){if(!Qt(e))return Ir(e);var t=[];for(var n in Object(e))Nr.call(e,n)&&n!="constructor"&&t.push(n);return t}function et(e){return Jt(e)?on(e):kr(e)}function sn(e,t){for(var n=-1,o=t.length,a=e.length;++n<o;)e[a+n]=t[n];return e}function jr(){this.__data__=new c.ListCache,this.size=0}function Dr(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Fr(e){return this.__data__.get(e)}function Hr(e){return this.__data__.has(e)}var zr=200;function Ur(e,t){var n=this.__data__;if(n instanceof c.ListCache){var o=n.__data__;if(!c.Map||o.length<zr-1)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new c.MapCache(o)}return n.set(e,t),this.size=n.size,this}function q(e){var t=this.__data__=new c.ListCache(e);this.size=t.size}q.prototype.clear=jr;q.prototype.delete=Dr;q.prototype.get=Fr;q.prototype.has=Hr;q.prototype.set=Ur;function Wr(e,t){for(var n=-1,o=e==null?0:e.length,a=0,i=[];++n<o;){var s=e[n];t(s,n,e)&&(i[a++]=s)}return i}function ln(){return[]}var Kr=Object.prototype,Gr=Kr.propertyIsEnumerable,Ct=Object.getOwnPropertySymbols,qr=Ct?function(e){return e==null?[]:(e=Object(e),Wr(Ct(e),function(t){return Gr.call(e,t)}))}:ln;const un=qr;function fn(e,t,n){var o=t(e);return c.isArray(e)?o:sn(o,n(e))}function Ue(e){return fn(e,et,un)}var Vr=c.getNative(c.root,"DataView");const We=Vr;var Xr=c.getNative(c.root,"Promise");const Ke=Xr;var Yr=c.getNative(c.root,"Set");const Ge=Yr;var _t="[object Map]",Zr="[object Object]",St="[object Promise]",Rt="[object Set]",xt="[object WeakMap]",Bt="[object DataView]",Jr=c.toSource(We),Qr=c.toSource(c.Map),eo=c.toSource(Ke),to=c.toSource(Ge),no=c.toSource(He),re=c.baseGetTag;(We&&re(new We(new ArrayBuffer(1)))!=Bt||c.Map&&re(new c.Map)!=_t||Ke&&re(Ke.resolve())!=St||Ge&&re(new Ge)!=Rt||He&&re(new He)!=xt)&&(re=function(e){var t=c.baseGetTag(e),n=t==Zr?e.constructor:void 0,o=n?c.toSource(n):"";if(o)switch(o){case Jr:return Bt;case Qr:return _t;case eo:return St;case to:return Rt;case no:return xt}return t});const qe=re;var ro=c.root.Uint8Array;const Ve=ro;var oo="__lodash_hash_undefined__";function ao(e){return this.__data__.set(e,oo),this}function io(e){return this.__data__.has(e)}function xe(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new c.MapCache;++t<n;)this.add(e[t])}xe.prototype.add=xe.prototype.push=ao;xe.prototype.has=io;function so(e,t){for(var n=-1,o=e==null?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1}function lo(e,t){return e.has(t)}var uo=1,fo=2;function cn(e,t,n,o,a,i){var s=n&uo,u=e.length,l=t.length;if(u!=l&&!(s&&l>u))return!1;var f=i.get(e),v=i.get(t);if(f&&v)return f==t&&v==e;var p=-1,g=!0,h=n&fo?new xe:void 0;for(i.set(e,t),i.set(t,e);++p<u;){var b=e[p],y=t[p];if(o)var E=s?o(y,b,p,t,e,i):o(b,y,p,e,t,i);if(E!==void 0){if(E)continue;g=!1;break}if(h){if(!so(t,function(d,T){if(!lo(h,T)&&(b===d||a(b,d,n,o,i)))return h.push(T)})){g=!1;break}}else if(!(b===y||a(b,y,n,o,i))){g=!1;break}}return i.delete(e),i.delete(t),g}function co(e){var t=-1,n=Array(e.size);return e.forEach(function(o,a){n[++t]=[a,o]}),n}function po(e){var t=-1,n=Array(e.size);return e.forEach(function(o){n[++t]=o}),n}var vo=1,mo=2,go="[object Boolean]",yo="[object Date]",ho="[object Error]",bo="[object Map]",wo="[object Number]",To="[object RegExp]",Oo="[object Set]",Eo="[object String]",Ao="[object Symbol]",Po="[object ArrayBuffer]",Co="[object DataView]",Mt=c.Symbol?c.Symbol.prototype:void 0,De=Mt?Mt.valueOf:void 0;function _o(e,t,n,o,a,i,s){switch(n){case Co:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Po:return!(e.byteLength!=t.byteLength||!i(new Ve(e),new Ve(t)));case go:case yo:case wo:return c.eq(+e,+t);case ho:return e.name==t.name&&e.message==t.message;case To:case Eo:return e==t+"";case bo:var u=co;case Oo:var l=o&vo;if(u||(u=po),e.size!=t.size&&!l)return!1;var f=s.get(e);if(f)return f==t;o|=mo,s.set(e,t);var v=cn(u(e),u(t),o,a,i,s);return s.delete(e),v;case Ao:if(De)return De.call(e)==De.call(t)}return!1}var So=1,Ro=Object.prototype,xo=Ro.hasOwnProperty;function Bo(e,t,n,o,a,i){var s=n&So,u=Ue(e),l=u.length,f=Ue(t),v=f.length;if(l!=v&&!s)return!1;for(var p=l;p--;){var g=u[p];if(!(s?g in t:xo.call(t,g)))return!1}var h=i.get(e),b=i.get(t);if(h&&b)return h==t&&b==e;var y=!0;i.set(e,t),i.set(t,e);for(var E=s;++p<l;){g=u[p];var d=e[g],T=t[g];if(o)var _=s?o(T,d,g,t,e,i):o(d,T,g,e,t,i);if(!(_===void 0?d===T||a(d,T,n,o,i):_)){y=!1;break}E||(E=g=="constructor")}if(y&&!E){var w=e.constructor,C=t.constructor;w!=C&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof C=="function"&&C instanceof C)&&(y=!1)}return i.delete(e),i.delete(t),y}var Mo=1,$t="[object Arguments]",It="[object Array]",Ce="[object Object]",$o=Object.prototype,Lt=$o.hasOwnProperty;function Io(e,t,n,o,a,i){var s=c.isArray(e),u=c.isArray(t),l=s?It:qe(e),f=u?It:qe(t);l=l==$t?Ce:l,f=f==$t?Ce:f;var v=l==Ce,p=f==Ce,g=l==f;if(g&&Re(e)){if(!Re(t))return!1;s=!0,v=!1}if(g&&!v)return i||(i=new q),s||Qe(e)?cn(e,t,n,o,a,i):_o(e,t,l,n,o,a,i);if(!(n&Mo)){var h=v&&Lt.call(e,"__wrapped__"),b=p&&Lt.call(t,"__wrapped__");if(h||b){var y=h?e.value():e,E=b?t.value():t;return i||(i=new q),a(y,E,n,o,i)}}return g?(i||(i=new q),Bo(e,t,n,o,a,i)):!1}function Me(e,t,n,o,a){return e===t?!0:e==null||t==null||!c.isObjectLike(e)&&!c.isObjectLike(t)?e!==e&&t!==t:Io(e,t,n,o,Me,a)}var Lo=1,No=2;function ko(e,t,n,o){var a=n.length,i=a,s=!o;if(e==null)return!i;for(e=Object(e);a--;){var u=n[a];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<i;){u=n[a];var l=u[0],f=e[l],v=u[1];if(s&&u[2]){if(f===void 0&&!(l in e))return!1}else{var p=new q;if(o)var g=o(f,v,l,e,t,p);if(!(g===void 0?Me(v,f,Lo|No,o,p):g))return!1}}return!0}function pn(e){return e===e&&!c.isObject$1(e)}function jo(e){for(var t=et(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,pn(a)]}return t}function dn(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function Do(e){var t=jo(e);return t.length==1&&t[0][2]?dn(t[0][0],t[0][1]):function(n){return n===e||ko(n,e,t)}}function Fo(e,t){return e!=null&&t in Object(e)}function Ho(e,t,n){t=c.castPath(t,e);for(var o=-1,a=t.length,i=!1;++o<a;){var s=c.toKey(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&&Ze(a)&&G.isIndex(s,a)&&(c.isArray(e)||Je(e)))}function vn(e,t){return e!=null&&Ho(e,t,Fo)}var zo=1,Uo=2;function Wo(e,t){return c.isKey(e)&&pn(t)?dn(c.toKey(e),t):function(n){var o=c.get(n,e);return o===void 0&&o===t?vn(n,e):Me(t,o,zo|Uo)}}function Ko(e){return function(t){return t==null?void 0:t[e]}}function Go(e){return function(t){return c.baseGet(t,e)}}function qo(e){return c.isKey(e)?Ko(c.toKey(e)):Go(e)}function Vo(e){return typeof e=="function"?e:e==null?Zt:typeof e=="object"?c.isArray(e)?Wo(e[0],e[1]):Do(e):qo(e)}function Xo(e,t){return Me(e,t)}function Yo(e){return e===void 0}const Zo=c.buildProp({type:c.definePropType(Boolean),default:null}),Jo=c.buildProp({type:c.definePropType(Function)}),mn=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,o=[t],a={[e]:Zo,[n]:Jo};return{useModelToggle:({indicator:s,toggleReason:u,shouldHideWhenRouteChanges:l,shouldProceed:f,onShow:v,onHide:p})=>{const g=r.getCurrentInstance(),{emit:h}=g,b=g.props,y=r.computed(()=>c.isFunction$1(b[n])),E=r.computed(()=>b[e]===null),d=m=>{s.value!==!0&&(s.value=!0,u&&(u.value=m),c.isFunction$1(v)&&v(m))},T=m=>{s.value!==!1&&(s.value=!1,u&&(u.value=m),c.isFunction$1(p)&&p(m))},_=m=>{if(b.disabled===!0||c.isFunction$1(f)&&!f())return;const P=y.value&&c.isClient;P&&h(t,!0),(E.value||!P)&&d(m)},w=m=>{if(b.disabled===!0||!c.isClient)return;const P=y.value&&c.isClient;P&&h(t,!1),(E.value||!P)&&T(m)},C=m=>{c.isBoolean(m)&&(b.disabled&&m?y.value&&h(t,!1):s.value!==m&&(m?d():T()))},O=()=>{s.value?w():_()};return r.watch(()=>b[e],C),l&&g.appContext.config.globalProperties.$route!==void 0&&r.watch(()=>({...g.proxy.$route}),()=>{l.value&&s.value&&w()}),r.onMounted(()=>{C(b[e])}),{hide:w,show:_,toggle:O,hasUpdateHandler:y}},useModelToggleProps:a,useModelToggleEmits:o}};mn("modelValue");var D="top",z="bottom",U="right",F="left",tt="auto",we=[D,z,U,F],se="start",he="end",Qo="clippingParents",gn="viewport",ve="popper",ea="reference",Nt=we.reduce(function(e,t){return e.concat([t+"-"+se,t+"-"+he])},[]),$e=[].concat(we,[tt]).reduce(function(e,t){return e.concat([t,t+"-"+se,t+"-"+he])},[]),ta="beforeRead",na="read",ra="afterRead",oa="beforeMain",aa="main",ia="afterMain",sa="beforeWrite",la="write",ua="afterWrite",fa=[ta,na,ra,oa,aa,ia,sa,la,ua];function X(e){return e?(e.nodeName||"").toLowerCase():null}function W(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function le(e){var t=W(e).Element;return e instanceof t||e instanceof Element}function H(e){var t=W(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function nt(e){if(typeof ShadowRoot>"u")return!1;var t=W(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ca(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];!H(i)||!X(i)||(Object.assign(i.style,o),Object.keys(a).forEach(function(s){var u=a[s];u===!1?i.removeAttribute(s):i.setAttribute(s,u===!0?"":u)}))})}function pa(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]),u=s.reduce(function(l,f){return l[f]="",l},{});!H(a)||!X(a)||(Object.assign(a.style,u),Object.keys(i).forEach(function(l){a.removeAttribute(l)}))})}}var yn={name:"applyStyles",enabled:!0,phase:"write",fn:ca,effect:pa,requires:["computeStyles"]};function V(e){return e.split("-")[0]}var oe=Math.max,Be=Math.min,ue=Math.round;function fe(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),o=1,a=1;if(H(e)&&t){var i=e.offsetHeight,s=e.offsetWidth;s>0&&(o=ue(n.width)/s||1),i>0&&(a=ue(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 rt(e){var t=fe(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 hn(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&nt(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function J(e){return W(e).getComputedStyle(e)}function da(e){return["table","td","th"].indexOf(X(e))>=0}function ee(e){return((le(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ie(e){return X(e)==="html"?e:e.assignedSlot||e.parentNode||(nt(e)?e.host:null)||ee(e)}function kt(e){return!H(e)||J(e).position==="fixed"?null:e.offsetParent}function va(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&H(e)){var o=J(e);if(o.position==="fixed")return null}var a=Ie(e);for(nt(a)&&(a=a.host);H(a)&&["html","body"].indexOf(X(a))<0;){var i=J(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 Te(e){for(var t=W(e),n=kt(e);n&&da(n)&&J(n).position==="static";)n=kt(n);return n&&(X(n)==="html"||X(n)==="body"&&J(n).position==="static")?t:n||va(e)||t}function ot(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ge(e,t,n){return oe(e,Be(t,n))}function ma(e,t,n){var o=ge(e,t,n);return o>n?n:o}function bn(){return{top:0,right:0,bottom:0,left:0}}function wn(e){return Object.assign({},bn(),e)}function Tn(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var ga=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,wn(typeof e!="number"?e:Tn(e,we))};function ya(e){var t,n=e.state,o=e.name,a=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,u=V(n.placement),l=ot(u),f=[F,U].indexOf(u)>=0,v=f?"height":"width";if(!(!i||!s)){var p=ga(a.padding,n),g=rt(i),h=l==="y"?D:F,b=l==="y"?z:U,y=n.rects.reference[v]+n.rects.reference[l]-s[l]-n.rects.popper[v],E=s[l]-n.rects.reference[l],d=Te(i),T=d?l==="y"?d.clientHeight||0:d.clientWidth||0:0,_=y/2-E/2,w=p[h],C=T-g[v]-p[b],O=T/2-g[v]/2+_,m=ge(w,O,C),P=l;n.modifiersData[o]=(t={},t[P]=m,t.centerOffset=m-O,t)}}function ha(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)||!hn(t.elements.popper,a)||(t.elements.arrow=a))}var ba={name:"arrow",enabled:!0,phase:"main",fn:ya,effect:ha,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ce(e){return e.split("-")[1]}var wa={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ta(e){var t=e.x,n=e.y,o=window,a=o.devicePixelRatio||1;return{x:ue(t*a)/a||0,y:ue(n*a)/a||0}}function jt(e){var t,n=e.popper,o=e.popperRect,a=e.placement,i=e.variation,s=e.offsets,u=e.position,l=e.gpuAcceleration,f=e.adaptive,v=e.roundOffsets,p=e.isFixed,g=s.x,h=g===void 0?0:g,b=s.y,y=b===void 0?0:b,E=typeof v=="function"?v({x:h,y}):{x:h,y};h=E.x,y=E.y;var d=s.hasOwnProperty("x"),T=s.hasOwnProperty("y"),_=F,w=D,C=window;if(f){var O=Te(n),m="clientHeight",P="clientWidth";if(O===W(n)&&(O=ee(n),J(O).position!=="static"&&u==="absolute"&&(m="scrollHeight",P="scrollWidth")),O=O,a===D||(a===F||a===U)&&i===he){w=z;var R=p&&O===C&&C.visualViewport?C.visualViewport.height:O[m];y-=R-o.height,y*=l?1:-1}if(a===F||(a===D||a===z)&&i===he){_=U;var S=p&&O===C&&C.visualViewport?C.visualViewport.width:O[P];h-=S-o.width,h*=l?1:-1}}var x=Object.assign({position:u},f&&wa),I=v===!0?Ta({x:h,y}):{x:h,y};if(h=I.x,y=I.y,l){var M;return Object.assign({},x,(M={},M[w]=T?"0":"",M[_]=d?"0":"",M.transform=(C.devicePixelRatio||1)<=1?"translate("+h+"px, "+y+"px)":"translate3d("+h+"px, "+y+"px, 0)",M))}return Object.assign({},x,(t={},t[w]=T?y+"px":"",t[_]=d?h+"px":"",t.transform="",t))}function Oa(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,u=n.roundOffsets,l=u===void 0?!0:u,f={placement:V(t.placement),variation:ce(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,jt(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,jt(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 On={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Oa,data:{}},_e={passive:!0};function Ea(e){var t=e.state,n=e.instance,o=e.options,a=o.scroll,i=a===void 0?!0:a,s=o.resize,u=s===void 0?!0:s,l=W(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&f.forEach(function(v){v.addEventListener("scroll",n.update,_e)}),u&&l.addEventListener("resize",n.update,_e),function(){i&&f.forEach(function(v){v.removeEventListener("scroll",n.update,_e)}),u&&l.removeEventListener("resize",n.update,_e)}}var En={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ea,data:{}},Aa={left:"right",right:"left",bottom:"top",top:"bottom"};function Se(e){return e.replace(/left|right|bottom|top/g,function(t){return Aa[t]})}var Pa={start:"end",end:"start"};function Dt(e){return e.replace(/start|end/g,function(t){return Pa[t]})}function at(e){var t=W(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function it(e){return fe(ee(e)).left+at(e).scrollLeft}function Ca(e){var t=W(e),n=ee(e),o=t.visualViewport,a=n.clientWidth,i=n.clientHeight,s=0,u=0;return o&&(a=o.width,i=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=o.offsetLeft,u=o.offsetTop)),{width:a,height:i,x:s+it(e),y:u}}function _a(e){var t,n=ee(e),o=at(e),a=(t=e.ownerDocument)==null?void 0:t.body,i=oe(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=oe(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),u=-o.scrollLeft+it(e),l=-o.scrollTop;return J(a||n).direction==="rtl"&&(u+=oe(n.clientWidth,a?a.clientWidth:0)-i),{width:i,height:s,x:u,y:l}}function st(e){var t=J(e),n=t.overflow,o=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+o)}function An(e){return["html","body","#document"].indexOf(X(e))>=0?e.ownerDocument.body:H(e)&&st(e)?e:An(Ie(e))}function ye(e,t){var n;t===void 0&&(t=[]);var o=An(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),i=W(o),s=a?[i].concat(i.visualViewport||[],st(o)?o:[]):o,u=t.concat(s);return a?u:u.concat(ye(Ie(s)))}function Xe(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Sa(e){var t=fe(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 Ft(e,t){return t===gn?Xe(Ca(e)):le(t)?Sa(t):Xe(_a(ee(e)))}function Ra(e){var t=ye(Ie(e)),n=["absolute","fixed"].indexOf(J(e).position)>=0,o=n&&H(e)?Te(e):e;return le(o)?t.filter(function(a){return le(a)&&hn(a,o)&&X(a)!=="body"}):[]}function xa(e,t,n){var o=t==="clippingParents"?Ra(e):[].concat(t),a=[].concat(o,[n]),i=a[0],s=a.reduce(function(u,l){var f=Ft(e,l);return u.top=oe(f.top,u.top),u.right=Be(f.right,u.right),u.bottom=Be(f.bottom,u.bottom),u.left=oe(f.left,u.left),u},Ft(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 Pn(e){var t=e.reference,n=e.element,o=e.placement,a=o?V(o):null,i=o?ce(o):null,s=t.x+t.width/2-n.width/2,u=t.y+t.height/2-n.height/2,l;switch(a){case D:l={x:s,y:t.y-n.height};break;case z:l={x:s,y:t.y+t.height};break;case U:l={x:t.x+t.width,y:u};break;case F:l={x:t.x-n.width,y:u};break;default:l={x:t.x,y:t.y}}var f=a?ot(a):null;if(f!=null){var v=f==="y"?"height":"width";switch(i){case se:l[f]=l[f]-(t[v]/2-n[v]/2);break;case he:l[f]=l[f]+(t[v]/2-n[v]/2);break}}return l}function be(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?Qo:i,u=n.rootBoundary,l=u===void 0?gn:u,f=n.elementContext,v=f===void 0?ve:f,p=n.altBoundary,g=p===void 0?!1:p,h=n.padding,b=h===void 0?0:h,y=wn(typeof b!="number"?b:Tn(b,we)),E=v===ve?ea:ve,d=e.rects.popper,T=e.elements[g?E:v],_=xa(le(T)?T:T.contextElement||ee(e.elements.popper),s,l),w=fe(e.elements.reference),C=Pn({reference:w,element:d,strategy:"absolute",placement:a}),O=Xe(Object.assign({},d,C)),m=v===ve?O:w,P={top:_.top-m.top+y.top,bottom:m.bottom-_.bottom+y.bottom,left:_.left-m.left+y.left,right:m.right-_.right+y.right},R=e.modifiersData.offset;if(v===ve&&R){var S=R[a];Object.keys(P).forEach(function(x){var I=[U,z].indexOf(x)>=0?1:-1,M=[D,z].indexOf(x)>=0?"y":"x";P[x]+=S[M]*I})}return P}function Ba(e,t){t===void 0&&(t={});var n=t,o=n.placement,a=n.boundary,i=n.rootBoundary,s=n.padding,u=n.flipVariations,l=n.allowedAutoPlacements,f=l===void 0?$e:l,v=ce(o),p=v?u?Nt:Nt.filter(function(b){return ce(b)===v}):we,g=p.filter(function(b){return f.indexOf(b)>=0});g.length===0&&(g=p);var h=g.reduce(function(b,y){return b[y]=be(e,{placement:y,boundary:a,rootBoundary:i,padding:s})[V(y)],b},{});return Object.keys(h).sort(function(b,y){return h[b]-h[y]})}function Ma(e){if(V(e)===tt)return[];var t=Se(e);return[Dt(e),t,Dt(t)]}function $a(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,u=s===void 0?!0:s,l=n.fallbackPlacements,f=n.padding,v=n.boundary,p=n.rootBoundary,g=n.altBoundary,h=n.flipVariations,b=h===void 0?!0:h,y=n.allowedAutoPlacements,E=t.options.placement,d=V(E),T=d===E,_=l||(T||!b?[Se(E)]:Ma(E)),w=[E].concat(_).reduce(function(te,Y){return te.concat(V(Y)===tt?Ba(t,{placement:Y,boundary:v,rootBoundary:p,padding:f,flipVariations:b,allowedAutoPlacements:y}):Y)},[]),C=t.rects.reference,O=t.rects.popper,m=new Map,P=!0,R=w[0],S=0;S<w.length;S++){var x=w[S],I=V(x),M=ce(x)===se,k=[D,z].indexOf(I)>=0,L=k?"width":"height",$=be(t,{placement:x,boundary:v,rootBoundary:p,altBoundary:g,padding:f}),A=k?M?U:F:M?z:D;C[L]>O[L]&&(A=Se(A));var j=Se(A),K=[];if(i&&K.push($[I]<=0),u&&K.push($[A]<=0,$[j]<=0),K.every(function(te){return te})){R=x,P=!1;break}m.set(x,K)}if(P)for(var Oe=b?3:1,Le=function(te){var Y=w.find(function(Ae){var de=m.get(Ae);if(de)return de.slice(0,te).every(function(ae){return ae})});if(Y)return R=Y,"break"},pe=Oe;pe>0;pe--){var Ee=Le(pe);if(Ee==="break")break}t.placement!==R&&(t.modifiersData[o]._skip=!0,t.placement=R,t.reset=!0)}}var Ia={name:"flip",enabled:!0,phase:"main",fn:$a,requiresIfExists:["offset"],data:{_skip:!1}};function Ht(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 zt(e){return[D,U,z,F].some(function(t){return e[t]>=0})}function La(e){var t=e.state,n=e.name,o=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,s=be(t,{elementContext:"reference"}),u=be(t,{altBoundary:!0}),l=Ht(s,o),f=Ht(u,a,i),v=zt(l),p=zt(f);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:f,isReferenceHidden:v,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":v,"data-popper-escaped":p})}var Na={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:La};function ka(e,t,n){var o=V(e),a=[F,D].indexOf(o)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],u=i[1];return s=s||0,u=(u||0)*a,[F,U].indexOf(o)>=0?{x:u,y:s}:{x:s,y:u}}function ja(e){var t=e.state,n=e.options,o=e.name,a=n.offset,i=a===void 0?[0,0]:a,s=$e.reduce(function(v,p){return v[p]=ka(p,t.rects,i),v},{}),u=s[t.placement],l=u.x,f=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=f),t.modifiersData[o]=s}var Da={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ja};function Fa(e){var t=e.state,n=e.name;t.modifiersData[n]=Pn({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Cn={name:"popperOffsets",enabled:!0,phase:"read",fn:Fa,data:{}};function Ha(e){return e==="x"?"y":"x"}function za(e){var t=e.state,n=e.options,o=e.name,a=n.mainAxis,i=a===void 0?!0:a,s=n.altAxis,u=s===void 0?!1:s,l=n.boundary,f=n.rootBoundary,v=n.altBoundary,p=n.padding,g=n.tether,h=g===void 0?!0:g,b=n.tetherOffset,y=b===void 0?0:b,E=be(t,{boundary:l,rootBoundary:f,padding:p,altBoundary:v}),d=V(t.placement),T=ce(t.placement),_=!T,w=ot(d),C=Ha(w),O=t.modifiersData.popperOffsets,m=t.rects.reference,P=t.rects.popper,R=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,S=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),x=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(O){if(i){var M,k=w==="y"?D:F,L=w==="y"?z:U,$=w==="y"?"height":"width",A=O[w],j=A+E[k],K=A-E[L],Oe=h?-P[$]/2:0,Le=T===se?m[$]:P[$],pe=T===se?-P[$]:-m[$],Ee=t.elements.arrow,te=h&&Ee?rt(Ee):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:bn(),Ae=Y[k],de=Y[L],ae=ge(0,m[$],te[$]),jn=_?m[$]/2-Oe-ae-Ae-S.mainAxis:Le-ae-Ae-S.mainAxis,Dn=_?-m[$]/2+Oe+ae+de+S.mainAxis:pe+ae+de+S.mainAxis,Ne=t.elements.arrow&&Te(t.elements.arrow),Fn=Ne?w==="y"?Ne.clientTop||0:Ne.clientLeft||0:0,dt=(M=x==null?void 0:x[w])!=null?M:0,Hn=A+jn-dt-Fn,zn=A+Dn-dt,vt=ge(h?Be(j,Hn):j,A,h?oe(K,zn):K);O[w]=vt,I[w]=vt-A}if(u){var mt,Un=w==="x"?D:F,Wn=w==="x"?z:U,ne=O[C],Pe=C==="y"?"height":"width",gt=ne+E[Un],yt=ne-E[Wn],ke=[D,F].indexOf(d)!==-1,ht=(mt=x==null?void 0:x[C])!=null?mt:0,bt=ke?gt:ne-m[Pe]-P[Pe]-ht+S.altAxis,wt=ke?ne+m[Pe]+P[Pe]-ht-S.altAxis:yt,Tt=h&&ke?ma(bt,ne,wt):ge(h?bt:gt,ne,h?wt:yt);O[C]=Tt,I[C]=Tt-ne}t.modifiersData[o]=I}}var Ua={name:"preventOverflow",enabled:!0,phase:"main",fn:za,requiresIfExists:["offset"]};function Wa(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Ka(e){return e===W(e)||!H(e)?at(e):Wa(e)}function Ga(e){var t=e.getBoundingClientRect(),n=ue(t.width)/e.offsetWidth||1,o=ue(t.height)/e.offsetHeight||1;return n!==1||o!==1}function qa(e,t,n){n===void 0&&(n=!1);var o=H(t),a=H(t)&&Ga(t),i=ee(t),s=fe(e,a),u={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!n)&&((X(t)!=="body"||st(i))&&(u=Ka(t)),H(t)?(l=fe(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=it(i))),{x:s.left+u.scrollLeft-l.x,y:s.top+u.scrollTop-l.y,width:s.width,height:s.height}}function Va(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(u){if(!n.has(u)){var l=t.get(u);l&&a(l)}}),o.push(i)}return e.forEach(function(i){n.has(i.name)||a(i)}),o}function Xa(e){var t=Va(e);return fa.reduce(function(n,o){return n.concat(t.filter(function(a){return a.phase===o}))},[])}function Ya(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Za(e){var t=e.reduce(function(n,o){var 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 Ut={placement:"bottom",modifiers:[],strategy:"absolute"};function Wt(){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 lt(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,a=t.defaultOptions,i=a===void 0?Ut:a;return function(s,u,l){l===void 0&&(l=i);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ut,i),modifiersData:{},elements:{reference:s,popper:u},attributes:{},styles:{}},v=[],p=!1,g={state:f,setOptions:function(y){var E=typeof y=="function"?y(f.options):y;b(),f.options=Object.assign({},i,f.options,E),f.scrollParents={reference:le(s)?ye(s):s.contextElement?ye(s.contextElement):[],popper:ye(u)};var d=Xa(Za([].concat(o,f.options.modifiers)));return f.orderedModifiers=d.filter(function(T){return T.enabled}),h(),g.update()},forceUpdate:function(){if(!p){var y=f.elements,E=y.reference,d=y.popper;if(Wt(E,d)){f.rects={reference:qa(E,Te(d),f.options.strategy==="fixed"),popper:rt(d)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(P){return f.modifiersData[P.name]=Object.assign({},P.data)});for(var T=0;T<f.orderedModifiers.length;T++){if(f.reset===!0){f.reset=!1,T=-1;continue}var _=f.orderedModifiers[T],w=_.fn,C=_.options,O=C===void 0?{}:C,m=_.name;typeof w=="function"&&(f=w({state:f,options:O,name:m,instance:g})||f)}}}},update:Ya(function(){return new Promise(function(y){g.forceUpdate(),y(f)})}),destroy:function(){b(),p=!0}};if(!Wt(s,u))return g;g.setOptions(l).then(function(y){!p&&l.onFirstUpdate&&l.onFirstUpdate(y)});function h(){f.orderedModifiers.forEach(function(y){var E=y.name,d=y.options,T=d===void 0?{}:d,_=y.effect;if(typeof _=="function"){var w=_({state:f,name:E,instance:g,options:T}),C=function(){};v.push(w||C)}})}function b(){v.forEach(function(y){return y()}),v=[]}return g}}lt();var Ja=[En,Cn,On,yn];lt({defaultModifiers:Ja});var Qa=[En,Cn,On,yn,Da,Ia,Ua,ba,Na],_n=lt({defaultModifiers:Qa});const ei=(e,t,n={})=>{const o={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const f=ti(l);Object.assign(s.value,f)},requires:["computeStyles"]},a=r.computed(()=>{const{onFirstUpdate:l,placement:f,strategy:v,modifiers:p}=r.unref(n);return{onFirstUpdate:l,placement:f||"bottom",strategy:v||"absolute",modifiers:[...p||[],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:{}}),u=()=>{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])=>{u(),!(!l||!f)&&(i.value=_n(l,f,r.unref(a)))}),r.onBeforeUnmount(()=>{u()}),{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 ti(e){const t=Object.keys(e.elements),n=c.fromPairs(t.map(a=>[a,e.styles[a]||{}])),o=c.fromPairs(t.map(a=>[a,e.attributes[a]]));return{styles:n,attributes:o}}function Kt(){let e;const t=(o,a)=>{n(),e=window.setTimeout(o,a)},n=()=>window.clearTimeout(e);return c.tryOnScopeDispose(()=>n()),{registerTimeout:t,cancelTimeout:n}}let Gt;const Sn=()=>{const e=c.useGetDerivedNamespace(),t=c.useIdInjection(),n=r.computed(()=>`${e.value}-popper-container-${t.prefix}`),o=r.computed(()=>`#${n.value}`);return{id:n,selector:o}},ni=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},ri=()=>{const{id:e,selector:t}=Sn();return r.onBeforeMount(()=>{c.isClient&&(process.env.NODE_ENV==="test"||!Gt&&!document.body.querySelector(t.value))&&(Gt=ni(e.value))}),{id:e,selector:t}},oi=c.buildProps({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),Rn=({showAfter:e,hideAfter:t,autoClose:n,open:o,close:a})=>{const{registerTimeout:i}=Kt(),{registerTimeout:s,cancelTimeout:u}=Kt();return{onOpen:v=>{i(()=>{o(v);const p=r.unref(n);c.isNumber(p)&&p>0&&s(()=>{a(v)},p)},r.unref(e))},onClose:v=>{u(),i(()=>{a(v)},r.unref(t))}}},xn=Symbol("elForwardRef"),ai=e=>{const t=n=>{e.value=n};r.provide(xn,{setForwardRef:t})},ii=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),Bn=Symbol("scrollbarContextKey"),si=c.buildProps({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),li="Thumb",ui=r.defineComponent({__name:"thumb",props:si,setup(e){const t=e,n=r.inject(Bn),o=c.useNamespace("scrollbar");n||c.throwError(li,"can not inject scrollbar context");const a=r.ref(),i=r.ref(),s=r.ref({}),u=r.ref(!1);let l=!1,f=!1,v=c.isClient?document.onselectstart:null;const p=r.computed(()=>N.BAR_MAP[t.vertical?"vertical":"horizontal"]),g=r.computed(()=>N.renderThumbStyle({size:t.size,move:t.move,bar:p.value})),h=r.computed(()=>a.value[p.value.offset]**2/n.wrapElement[p.value.scrollSize]/t.ratio/i.value[p.value.offset]),b=O=>{var m;if(O.stopPropagation(),O.ctrlKey||[1,2].includes(O.button))return;(m=window.getSelection())==null||m.removeAllRanges(),E(O);const P=O.currentTarget;P&&(s.value[p.value.axis]=P[p.value.offset]-(O[p.value.client]-P.getBoundingClientRect()[p.value.direction]))},y=O=>{if(!i.value||!a.value||!n.wrapElement)return;const m=Math.abs(O.target.getBoundingClientRect()[p.value.direction]-O[p.value.client]),P=i.value[p.value.offset]/2,R=(m-P)*100*h.value/a.value[p.value.offset];n.wrapElement[p.value.scroll]=R*n.wrapElement[p.value.scrollSize]/100},E=O=>{O.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",d),document.addEventListener("mouseup",T),v=document.onselectstart,document.onselectstart=()=>!1},d=O=>{if(!a.value||!i.value||l===!1)return;const m=s.value[p.value.axis];if(!m)return;const P=(a.value.getBoundingClientRect()[p.value.direction]-O[p.value.client])*-1,R=i.value[p.value.offset]-m,S=(P-R)*100*h.value/a.value[p.value.offset];n.wrapElement[p.value.scroll]=S*n.wrapElement[p.value.scrollSize]/100},T=()=>{l=!1,s.value[p.value.axis]=0,document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",T),C(),f&&(u.value=!1)},_=()=>{f=!1,u.value=!!t.size},w=()=>{f=!0,u.value=l};r.onBeforeUnmount(()=>{C(),document.removeEventListener("mouseup",T)});const C=()=>{document.onselectstart!==v&&(document.onselectstart=v)};return N.useEventListener(r.toRef(n,"scrollbarElement"),"mousemove",_),N.useEventListener(r.toRef(n,"scrollbarElement"),"mouseleave",w),(O,m)=>(r.openBlock(),r.createBlock(r.Transition,{name:r.unref(o).b("fade"),persisted:""},{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",{ref_key:"instance",ref:a,class:r.normalizeClass([r.unref(o).e("bar"),r.unref(o).is(r.unref(p).key)]),onMousedown:y},[r.createElementVNode("div",{ref_key:"thumb",ref:i,class:r.normalizeClass(r.unref(o).e("thumb")),style:r.normalizeStyle(r.unref(g)),onMousedown:b},null,38)],34),[[r.vShow,O.always||u.value]])]),_:1},8,["name"]))}});var qt=c._export_sfc(ui,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const fi=c.buildProps({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),ci=r.defineComponent({__name:"bar",props:fi,setup(e,{expose:t}){const n=e,o=r.ref(0),a=r.ref(0);return t({handleScroll:s=>{if(s){const u=s.offsetHeight-N.GAP,l=s.offsetWidth-N.GAP;a.value=s.scrollTop*100/u*n.ratioY,o.value=s.scrollLeft*100/l*n.ratioX}}}),(s,u)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(qt,{move:o.value,ratio:s.ratioX,size:s.width,always:s.always},null,8,["move","ratio","size","always"]),r.createVNode(qt,{move:a.value,ratio:s.ratioY,size:s.height,vertical:"",always:s.always},null,8,["move","ratio","size","always"])],64))}});var pi=c._export_sfc(ci,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const di=c.buildProps({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:c.definePropType([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}}),vi={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(c.isNumber)},Ye="ElScrollbar",mi=r.defineComponent({name:Ye}),gi=r.defineComponent({...mi,props:di,emits:vi,setup(e,{expose:t,emit:n}){const o=e,a=c.useNamespace("scrollbar");let i,s;const u=r.ref(),l=r.ref(),f=r.ref(),v=r.ref("0"),p=r.ref("0"),g=r.ref(),h=r.ref(1),b=r.ref(1),y=r.computed(()=>{const m={};return o.height&&(m.height=c.addUnit(o.height)),o.maxHeight&&(m.maxHeight=c.addUnit(o.maxHeight)),[o.wrapStyle,m]}),E=r.computed(()=>[o.wrapClass,a.e("wrap"),{[a.em("wrap","hidden-default")]:!o.native}]),d=r.computed(()=>[a.e("view"),o.viewClass]),T=()=>{var m;l.value&&((m=g.value)==null||m.handleScroll(l.value),n("scroll",{scrollTop:l.value.scrollTop,scrollLeft:l.value.scrollLeft}))};function _(m,P){c.isObject(m)?l.value.scrollTo(m):c.isNumber(m)&&c.isNumber(P)&&l.value.scrollTo(m,P)}const w=m=>{if(!c.isNumber(m)){c.debugWarn(Ye,"value must be a number");return}l.value.scrollTop=m},C=m=>{if(!c.isNumber(m)){c.debugWarn(Ye,"value must be a number");return}l.value.scrollLeft=m},O=()=>{if(!l.value)return;const m=l.value.offsetHeight-N.GAP,P=l.value.offsetWidth-N.GAP,R=m**2/l.value.scrollHeight,S=P**2/l.value.scrollWidth,x=Math.max(R,o.minSize),I=Math.max(S,o.minSize);h.value=R/(m-R)/(x/(m-x)),b.value=S/(P-S)/(I/(P-I)),p.value=x+N.GAP<m?`${x}px`:"",v.value=I+N.GAP<P?`${I}px`:""};return r.watch(()=>o.noresize,m=>{m?(i==null||i(),s==null||s()):({stop:i}=N.useResizeObserver(f,O),s=N.useEventListener("resize",O))},{immediate:!0}),r.watch(()=>[o.maxHeight,o.height],()=>{o.native||r.nextTick(()=>{var m;O(),l.value&&((m=g.value)==null||m.handleScroll(l.value))})}),r.provide(Bn,r.reactive({scrollbarElement:u,wrapElement:l})),r.onMounted(()=>{o.native||r.nextTick(()=>{O()})}),r.onUpdated(()=>O()),t({wrapRef:l,update:O,scrollTo:_,setScrollTop:w,setScrollLeft:C,handleScroll:T}),(m,P)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"scrollbarRef",ref:u,class:r.normalizeClass(r.unref(a).b())},[r.createElementVNode("div",{ref_key:"wrapRef",ref:l,class:r.normalizeClass(r.unref(E)),style:r.normalizeStyle(r.unref(y)),onScroll:T},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(m.tag),{ref_key:"resizeRef",ref:f,class:r.normalizeClass(r.unref(d)),style:r.normalizeStyle(m.viewStyle)},{default:r.withCtx(()=>[r.renderSlot(m.$slots,"default")]),_:3},8,["class","style"]))],38),m.native?r.createCommentVNode("v-if",!0):(r.openBlock(),r.createBlock(pi,{key:0,ref_key:"barRef",ref:g,height:p.value,width:v.value,always:m.always,"ratio-x":b.value,"ratio-y":h.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var yi=c._export_sfc(gi,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const hi=c.withInstall(yi),ut=Symbol("popper"),Mn=Symbol("popperContent"),bi=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],$n=c.buildProps({role:{type:String,values:bi,default:"tooltip"}}),wi=r.defineComponent({name:"ElPopper",inheritAttrs:!1}),Ti=r.defineComponent({...wi,props:$n,setup(e,{expose:t}){const n=e,o=r.ref(),a=r.ref(),i=r.ref(),s=r.ref(),u=r.computed(()=>n.role),l={triggerRef:o,popperInstanceRef:a,contentRef:i,referenceRef:s,role:u};return t(l),r.provide(ut,l),(f,v)=>r.renderSlot(f.$slots,"default")}});var Oi=c._export_sfc(Ti,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const In=c.buildProps({arrowOffset:{type:Number,default:5}}),Ei=r.defineComponent({name:"ElPopperArrow",inheritAttrs:!1}),Ai=r.defineComponent({...Ei,props:In,setup(e,{expose:t}){const n=e,o=c.useNamespace("popper"),{arrowOffset:a,arrowRef:i,arrowStyle:s}=r.inject(Mn,void 0);return r.watch(()=>n.arrowOffset,u=>{a.value=u}),r.onBeforeUnmount(()=>{i.value=void 0}),t({arrowRef:i}),(u,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 Pi=c._export_sfc(Ai,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const Fe="ElOnlyChild",Ci=r.defineComponent({name:Fe,setup(e,{slots:t,attrs:n}){var o;const a=r.inject(xn),i=ii((o=a==null?void 0:a.setForwardRef)!=null?o:c.NOOP);return()=>{var s;const u=(s=t.default)==null?void 0:s.call(t,n);if(!u)return null;if(u.length>1)return c.debugWarn(Fe,"requires exact only one valid child."),null;const l=Ln(u);return l?r.withDirectives(r.cloneVNode(l,n),[[i]]):(c.debugWarn(Fe,"no valid child node found"),null)}}});function Ln(e){if(!e)return null;const t=e;for(const n of t){if(c.isObject(n))switch(n.type){case r.Comment:continue;case r.Text:case"svg":return Vt(n);case r.Fragment:return Ln(n.children);default:return n}return Vt(n)}return null}function Vt(e){const t=c.useNamespace("only-child");return r.createVNode("span",{class:t.e("content")},[e])}const Nn=c.buildProps({virtualRef:{type:c.definePropType(Object)},virtualTriggering:Boolean,onMouseenter:{type:c.definePropType(Function)},onMouseleave:{type:c.definePropType(Function)},onClick:{type:c.definePropType(Function)},onKeydown:{type:c.definePropType(Function)},onFocus:{type:c.definePropType(Function)},onBlur:{type:c.definePropType(Function)},onContextmenu:{type:c.definePropType(Function)},id:String,open:Boolean}),_i=r.defineComponent({name:"ElPopperTrigger",inheritAttrs:!1}),Si=r.defineComponent({..._i,props:Nn,setup(e,{expose:t}){const n=e,{role:o,triggerRef:a}=r.inject(ut,void 0);ai(a);const i=r.computed(()=>u.value?n.id:void 0),s=r.computed(()=>{if(o&&o.value==="tooltip")return n.open&&n.id?n.id:void 0}),u=r.computed(()=>{if(o&&o.value!=="tooltip")return o.value}),l=r.computed(()=>u.value?`${n.open}`:void 0);let f;return r.onMounted(()=>{r.watch(()=>n.virtualRef,v=>{v&&(a.value=N.unrefElement(v))},{immediate:!0}),r.watch(a,(v,p)=>{f==null||f(),f=void 0,c.isElement(v)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(g=>{var h;const b=n[g];b&&(v.addEventListener(g.slice(2).toLowerCase(),b),(h=p==null?void 0:p.removeEventListener)==null||h.call(p,g.slice(2).toLowerCase(),b))}),f=r.watch([i,s,u,l],g=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((h,b)=>{G.isNil(g[b])?v.removeAttribute(h):v.setAttribute(h,g[b])})},{immediate:!0})),c.isElement(p)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(g=>p.removeAttribute(g))},{immediate:!0})}),r.onBeforeUnmount(()=>{f==null||f(),f=void 0}),t({triggerRef:a}),(v,p)=>v.virtualTriggering?r.createCommentVNode("v-if",!0):(r.openBlock(),r.createBlock(r.unref(Ci),r.mergeProps({key:0},v.$attrs,{"aria-controls":r.unref(i),"aria-describedby":r.unref(s),"aria-expanded":r.unref(l),"aria-haspopup":r.unref(u)}),{default:r.withCtx(()=>[r.renderSlot(v.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var Ri=c._export_sfc(Si,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const xi=["fixed","absolute"],Bi=c.buildProps({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:c.definePropType(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:$e,default:"bottom"},popperOptions:{type:c.definePropType(Object),default:()=>({})},strategy:{type:String,values:xi,default:"absolute"}}),kn=c.buildProps({...Bi,id:String,style:{type:c.definePropType([String,Array,Object])},className:{type:c.definePropType([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:c.definePropType([String,Array,Object])},popperStyle:{type:c.definePropType([String,Array,Object])},referenceEl:{type:c.definePropType(Object)},triggerTargetEl:{type:c.definePropType(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),Mi={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},$i=(e,t=[])=>{const{placement:n,strategy:o,popperOptions:a}=e,i={placement:n,strategy:o,...a,modifiers:[...Li(e),...t]};return Ni(i,a==null?void 0:a.modifiers),i},Ii=e=>{if(c.isClient)return N.unrefElement(e)};function Li(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 Ni(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const ki=0,ji=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:o,role:a}=r.inject(ut,void 0),i=r.ref(),s=r.ref(),u=r.computed(()=>({name:"eventListeners",enabled:!!e.visible})),l=r.computed(()=>{var d;const T=r.unref(i),_=(d=r.unref(s))!=null?d:ki;return{name:"arrow",enabled:!Yo(T),options:{element:T,padding:_}}}),f=r.computed(()=>({onFirstUpdate:()=>{b()},...$i(e,[r.unref(l),r.unref(u)])})),v=r.computed(()=>Ii(e.referenceEl)||r.unref(o)),{attributes:p,state:g,styles:h,update:b,forceUpdate:y,instanceRef:E}=ei(v,n,f);return r.watch(E,d=>t.value=d),r.onMounted(()=>{r.watch(()=>{var d;return(d=r.unref(v))==null?void 0:d.getBoundingClientRect()},()=>{b()})}),{attributes:p,arrowRef:i,contentRef:n,instanceRef:E,state:g,styles:h,role:a,forceUpdate:y,update:b}},Di=(e,{attributes:t,styles:n,role:o})=>{const{nextZIndex:a}=G.useZIndex(),i=c.useNamespace("popper"),s=r.computed(()=>r.unref(t).popper),u=r.ref(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(u)},r.unref(n).popper,e.popperStyle||{}]),v=r.computed(()=>o.value==="dialog"?"false":void 0),p=r.computed(()=>r.unref(n).arrow||{});return{ariaModal:v,arrowStyle:p,contentAttrs:s,contentClass:l,contentStyle:f,contentZIndex:u,updateZIndex:()=>{u.value=e.zIndex||a()}}},Fi=(e,t)=>{const n=r.ref(!1),o=r.ref();return{focusStartRef:o,trapped:n,onFocusAfterReleased:f=>{var v;((v=f.detail)==null?void 0:v.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")}}},Hi=r.defineComponent({name:"ElPopperContent"}),zi=r.defineComponent({...Hi,props:kn,emits:Mi,setup(e,{expose:t,emit:n}){const o=e,{focusStartRef:a,trapped:i,onFocusAfterReleased:s,onFocusAfterTrapped:u,onFocusInTrap:l,onFocusoutPrevented:f,onReleaseRequested:v}=Fi(o,n),{attributes:p,arrowRef:g,contentRef:h,styles:b,instanceRef:y,role:E,update:d}=ji(o),{ariaModal:T,arrowStyle:_,contentAttrs:w,contentClass:C,contentStyle:O,updateZIndex:m}=Di(o,{styles:b,attributes:p,role:E}),P=r.inject(G.formItemContextKey,void 0),R=r.ref();r.provide(Mn,{arrowStyle:_,arrowRef:g,arrowOffset:R}),P&&(P.addInputId||P.removeInputId)&&r.provide(G.formItemContextKey,{...P,addInputId:c.NOOP,removeInputId:c.NOOP});let S;const x=(M=!0)=>{d(),M&&m()},I=()=>{x(!1),o.visible&&o.focusOnShow?i.value=!0:o.visible===!1&&(i.value=!1)};return r.onMounted(()=>{r.watch(()=>o.triggerTargetEl,(M,k)=>{S==null||S(),S=void 0;const L=r.unref(M||h.value),$=r.unref(k||h.value);c.isElement(L)&&(S=r.watch([E,()=>o.ariaLabel,T,()=>o.id],A=>{["role","aria-label","aria-modal","id"].forEach((j,K)=>{G.isNil(A[K])?L.removeAttribute(j):L.setAttribute(j,A[K])})},{immediate:!0})),$!==L&&c.isElement($)&&["role","aria-label","aria-modal","id"].forEach(A=>{$.removeAttribute(A)})},{immediate:!0}),r.watch(()=>o.visible,I,{immediate:!0})}),r.onBeforeUnmount(()=>{S==null||S(),S=void 0}),t({popperContentRef:h,popperInstanceRef:y,updatePopper:x,contentStyle:O}),(M,k)=>(r.openBlock(),r.createElementBlock("div",r.mergeProps({ref_key:"contentRef",ref:h},r.unref(w),{style:r.unref(O),class:r.unref(C),tabindex:"-1",onMouseenter:k[0]||(k[0]=L=>M.$emit("mouseenter",L)),onMouseleave:k[1]||(k[1]=L=>M.$emit("mouseleave",L))}),[r.createVNode(r.unref(G.ElFocusTrap),{trapped:r.unref(i),"trap-on-focus-in":!0,"focus-trap-el":r.unref(h),"focus-start-el":r.unref(a),onFocusAfterTrapped:r.unref(u),onFocusAfterReleased:r.unref(s),onFocusin:r.unref(l),onFocusoutPrevented:r.unref(f),onReleaseRequested:r.unref(v)},{default:r.withCtx(()=>[r.renderSlot(M.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var Ui=c._export_sfc(zi,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const Wi=c.withInstall(Oi),ft=Symbol("elTooltip"),ct=c.buildProps({...oi,...kn,appendTo:{type:c.definePropType([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:c.definePropType(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),pt=c.buildProps({...Nn,disabled:Boolean,trigger:{type:c.definePropType([String,Array]),default:"hover"},triggerKeys:{type:c.definePropType(Array),default:()=>[G.EVENT_CODE.enter,G.EVENT_CODE.space]}}),{useModelToggleProps:Ki,useModelToggleEmits:Gi,useModelToggle:qi}=mn("visible"),Vi=c.buildProps({...$n,...Ki,...ct,...pt,...In,showArrow:{type:Boolean,default:!0}}),Xi=[...Gi,"before-show","before-hide","show","hide","open","close"],Yi=(e,t)=>c.isArray$1(e)?e.includes(t):e===t,ie=(e,t,n)=>o=>{Yi(r.unref(e),t)&&n(o)},Zi=r.defineComponent({name:"ElTooltipTrigger"}),Ji=r.defineComponent({...Zi,props:pt,setup(e,{expose:t}){const n=e,o=c.useNamespace("tooltip"),{controlled:a,id:i,open:s,onOpen:u,onClose:l,onToggle:f}=r.inject(ft,void 0),v=r.ref(null),p=()=>{if(r.unref(a)||n.disabled)return!0},g=r.toRef(n,"trigger"),h=Z(p,ie(g,"hover",u)),b=Z(p,ie(g,"hover",l)),y=Z(p,ie(g,"click",w=>{w.button===0&&f(w)})),E=Z(p,ie(g,"focus",u)),d=Z(p,ie(g,"focus",l)),T=Z(p,ie(g,"contextmenu",w=>{w.preventDefault(),f(w)})),_=Z(p,w=>{const{code:C}=w;n.triggerKeys.includes(C)&&(w.preventDefault(),f(w))});return t({triggerRef:v}),(w,C)=>(r.openBlock(),r.createBlock(r.unref(Ri),{id:r.unref(i),"virtual-ref":w.virtualRef,open:r.unref(s),"virtual-triggering":w.virtualTriggering,class:r.normalizeClass(r.unref(o).e("trigger")),onBlur:r.unref(d),onClick:r.unref(y),onContextmenu:r.unref(T),onFocus:r.unref(E),onMouseenter:r.unref(h),onMouseleave:r.unref(b),onKeydown:r.unref(_)},{default:r.withCtx(()=>[r.renderSlot(w.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var Qi=c._export_sfc(Ji,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const es=r.defineComponent({name:"ElTooltipContent",inheritAttrs:!1}),ts=r.defineComponent({...es,props:ct,setup(e,{expose:t}){const n=e,{selector:o}=Sn(),a=c.useNamespace("tooltip"),i=r.ref(null),s=r.ref(!1),{controlled:u,id:l,open:f,trigger:v,onClose:p,onOpen:g,onShow:h,onHide:b,onBeforeShow:y,onBeforeHide:E}=r.inject(ft,void 0),d=r.computed(()=>n.transition||`${a.namespace.value}-fade-in-linear`),T=r.computed(()=>process.env.NODE_ENV==="test"?!0:n.persistent);r.onBeforeUnmount(()=>{s.value=!0});const _=r.computed(()=>r.unref(T)?!0:r.unref(f)),w=r.computed(()=>n.disabled?!1:r.unref(f)),C=r.computed(()=>n.appendTo||o.value),O=r.computed(()=>{var A;return(A=n.style)!=null?A:{}}),m=r.computed(()=>!r.unref(f)),P=()=>{b()},R=()=>{if(r.unref(u))return!0},S=Z(R,()=>{n.enterable&&r.unref(v)==="hover"&&g()}),x=Z(R,()=>{r.unref(v)==="hover"&&p()}),I=()=>{var A,j;(j=(A=i.value)==null?void 0:A.updatePopper)==null||j.call(A),y==null||y()},M=()=>{E==null||E()},k=()=>{h(),$=N.onClickOutside(r.computed(()=>{var A;return(A=i.value)==null?void 0:A.popperContentRef}),()=>{if(r.unref(u))return;r.unref(v)!=="hover"&&p()})},L=()=>{n.virtualTriggering||p()};let $;return r.watch(()=>r.unref(f),A=>{A||$==null||$()},{flush:"post"}),r.watch(()=>n.content,()=>{var A,j;(j=(A=i.value)==null?void 0:A.updatePopper)==null||j.call(A)}),t({contentRef:i}),(A,j)=>(r.openBlock(),r.createBlock(r.Teleport,{disabled:!A.teleported,to:r.unref(C)},[r.createVNode(r.Transition,{name:r.unref(d),onAfterLeave:P,onBeforeEnter:I,onAfterEnter:k,onBeforeLeave:M},{default:r.withCtx(()=>[r.unref(_)?r.withDirectives((r.openBlock(),r.createBlock(r.unref(Ui),r.mergeProps({key:0,id:r.unref(l),ref_key:"contentRef",ref:i},A.$attrs,{"aria-label":A.ariaLabel,"aria-hidden":r.unref(m),"boundaries-padding":A.boundariesPadding,"fallback-placements":A.fallbackPlacements,"gpu-acceleration":A.gpuAcceleration,offset:A.offset,placement:A.placement,"popper-options":A.popperOptions,strategy:A.strategy,effect:A.effect,enterable:A.enterable,pure:A.pure,"popper-class":A.popperClass,"popper-style":[A.popperStyle,r.unref(O)],"reference-el":A.referenceEl,"trigger-target-el":A.triggerTargetEl,visible:r.unref(w),"z-index":A.zIndex,onMouseenter:r.unref(S),onMouseleave:r.unref(x),onBlur:L,onClose:r.unref(p)}),{default:r.withCtx(()=>[s.value?r.createCommentVNode("v-if",!0):r.renderSlot(A.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[r.vShow,r.unref(w)]]):r.createCommentVNode("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var ns=c._export_sfc(ts,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const rs=["innerHTML"],os={key:1},as=r.defineComponent({name:"ElTooltip"}),is=r.defineComponent({...as,props:Vi,emits:Xi,setup(e,{expose:t,emit:n}){const o=e;ri();const a=c.useId(),i=r.ref(),s=r.ref(),u=()=>{var d;const T=r.unref(i);T&&((d=T.popperInstanceRef)==null||d.update())},l=r.ref(!1),f=r.ref(),{show:v,hide:p,hasUpdateHandler:g}=qi({indicator:l,toggleReason:f}),{onOpen:h,onClose:b}=Rn({showAfter:r.toRef(o,"showAfter"),hideAfter:r.toRef(o,"hideAfter"),autoClose:r.toRef(o,"autoClose"),open:v,close:p}),y=r.computed(()=>c.isBoolean(o.visible)&&!g.value);r.provide(ft,{controlled:y,id:a,open:r.readonly(l),trigger:r.toRef(o,"trigger"),onOpen:d=>{h(d)},onClose:d=>{b(d)},onToggle:d=>{r.unref(l)?b(d):h(d)},onShow:()=>{n("show",f.value)},onHide:()=>{n("hide",f.value)},onBeforeShow:()=>{n("before-show",f.value)},onBeforeHide:()=>{n("before-hide",f.value)},updatePopper:u}),r.watch(()=>o.disabled,d=>{d&&l.value&&(l.value=!1)});const E=d=>{var T,_;const w=(_=(T=s.value)==null?void 0:T.contentRef)==null?void 0:_.popperContentRef,C=(d==null?void 0:d.relatedTarget)||document.activeElement;return w&&w.contains(C)};return r.onDeactivated(()=>l.value&&p()),t({popperRef:i,contentRef:s,isFocusInsideContent:E,updatePopper:u,onOpen:h,onClose:b,hide:p}),(d,T)=>(r.openBlock(),r.createBlock(r.unref(Wi),{ref_key:"popperRef",ref:i,role:d.role},{default:r.withCtx(()=>[r.createVNode(Qi,{disabled:d.disabled,trigger:d.trigger,"trigger-keys":d.triggerKeys,"virtual-ref":d.virtualRef,"virtual-triggering":d.virtualTriggering},{default:r.withCtx(()=>[d.$slots.default?r.renderSlot(d.$slots,"default",{key:0}):r.createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),r.createVNode(ns,{ref_key:"contentRef",ref:s,"aria-label":d.ariaLabel,"boundaries-padding":d.boundariesPadding,content:d.content,disabled:d.disabled,effect:d.effect,enterable:d.enterable,"fallback-placements":d.fallbackPlacements,"hide-after":d.hideAfter,"gpu-acceleration":d.gpuAcceleration,offset:d.offset,persistent:d.persistent,"popper-class":d.popperClass,"popper-style":d.popperStyle,placement:d.placement,"popper-options":d.popperOptions,pure:d.pure,"raw-content":d.rawContent,"reference-el":d.referenceEl,"trigger-target-el":d.triggerTargetEl,"show-after":d.showAfter,strategy:d.strategy,teleported:d.teleported,transition:d.transition,"virtual-triggering":d.virtualTriggering,"z-index":d.zIndex,"append-to":d.appendTo},{default:r.withCtx(()=>[r.renderSlot(d.$slots,"content",{},()=>[d.rawContent?(r.openBlock(),r.createElementBlock("span",{key:0,innerHTML:d.content},null,8,rs)):(r.openBlock(),r.createElementBlock("span",os,r.toDisplayString(d.content),1))]),d.showArrow?(r.openBlock(),r.createBlock(r.unref(Pi),{key:0,"arrow-offset":d.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 ss=c._export_sfc(is,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const ls=c.withInstall(ss),Q=new Map;let Xt;c.isClient&&(document.addEventListener("mousedown",e=>Xt=e),document.addEventListener("mouseup",e=>{for(const t of Q.values())for(const{documentHandler:n}of t)n(e,Xt)}));function Yt(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:c.isElement(t.arg)&&n.push(t.arg),function(o,a){const i=t.instance.popperRef,s=o.target,u=a==null?void 0:a.target,l=!t||!t.instance,f=!s||!u,v=e.contains(s)||e.contains(u),p=e===s,g=n.length&&n.some(b=>b==null?void 0:b.contains(s))||n.length&&n.includes(u),h=i&&(i.contains(s)||i.contains(u));l||f||v||p||g||h||t.value(o,a)}}const us={beforeMount(e,t){Q.has(e)||Q.set(e,[]),Q.get(e).push({documentHandler:Yt(e,t),bindingFn:t.value})},updated(e,t){Q.has(e)||Q.set(e,[]);const n=Q.get(e),o=n.findIndex(i=>i.bindingFn===t.oldValue),a={documentHandler:Yt(e,t),bindingFn:t.value};o>=0?n.splice(o,1,a):n.push(a)},unmounted(e){Q.delete(e)}};exports.ClickOutside=us;exports.Ee=$e;exports.ElScrollbar=hi;exports.ElTooltip=ls;exports.Stack=q;exports.Uint8Array=Ve;exports.arrayLikeKeys=on;exports.arrayPush=sn;exports.baseGetAllKeys=fn;exports.baseIteratee=Vo;exports.baseUnary=nn;exports.getAllKeys=Ue;exports.getSymbols=un;exports.getTag=qe;exports.hasIn=vn;exports.identity=Zt;exports.isArguments=Je;exports.isArrayLike=Jt;exports.isBuffer=Re;exports.isEqual=Xo;exports.isPrototype=Qt;exports.isTypedArray=Qe;exports.keys=et;exports.nodeUtil=ze;exports.overArg=an;exports.stubArray=ln;exports.useDelayedToggle=Rn;exports.useTooltipContentProps=ct;exports.useTooltipTriggerProps=pt;exports.yn=_n;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";const d=require("./index-48a9f60d.cjs"),E=require("./base-4865d432.cjs"),n=require("vue");var ue=9007199254740991,ae=/^(?:0|[1-9]\d*)$/;function ie(e,t){var o=typeof e;return t=t??ue,!!t&&(o=="number"||o!="symbol"&&ae.test(e))&&e>-1&&e%1==0&&e<t}function X(e){return e==null}const de=E.definePropType([String,Object,Function]),le={Close:d.close_default},fe={Close:d.close_default,SuccessFilled:d.success_filled_default,InfoFilled:d.info_filled_default,WarningFilled:d.warning_filled_default,CircleCloseFilled:d.circle_close_filled_default},pe={success:d.success_filled_default,warning:d.warning_filled_default,error:d.circle_close_filled_default,info:d.info_filled_default},ve={validating:d.loading_default,success:d.circle_check_default,error:d.circle_close_default},A={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"},Ee="update:modelValue",me="change",_e="input",Q=["","default","small","large"],Te={large:40,default:32,small:24},Ie=({from:e,replacement:t,scope:o,version:r,ref:c,type:u="API"},i)=>{n.watch(()=>n.unref(i),l=>{l&&E.debugWarn(o,`[${u}] ${e} is about to be deprecated in version ${r}, please use ${t} instead.
|
|
2
|
+
For more detail, please visit: ${c}
|
|
3
|
+
`)},{immediate:!0})},ee=e=>{const t=n.getCurrentInstance();return n.computed(()=>{var o,r;return(r=(o=t==null?void 0:t.proxy)==null?void 0:o.$props)==null?void 0:r[e]})};let I=[];const $=e=>{const t=e;t.key===A.esc&&I.forEach(o=>o(t))},Fe=e=>{n.onMounted(()=>{I.length===0&&document.addEventListener("keydown",$),E.isClient&&I.push(e)}),n.onBeforeUnmount(()=>{I=I.filter(t=>t!==e),I.length===0&&E.isClient&&document.removeEventListener("keydown",$)})},Z=n.ref(0),te=2e3,ne=Symbol("zIndexContextKey"),ye=e=>{const t=e||(n.getCurrentInstance()?n.inject(ne,void 0):void 0),o=n.computed(()=>{const u=n.unref(t);return E.isNumber(u)?u:te}),r=n.computed(()=>o.value+Z.value);return{initialZIndex:o,currentZIndex:r,nextZIndex:()=>(Z.value++,r.value)}},be=E.buildProp({type:String,values:Q,required:!1}),oe=Symbol("size"),Ce=()=>{const e=n.inject(oe,{});return n.computed(()=>n.unref(e.size)||"")},P=Symbol("formContextKey"),U=Symbol("formItemContextKey"),Se=(e,t={})=>{const o=n.ref(void 0),r=t.prop?o:ee("size"),c=t.global?o:Ce(),u=t.form?{size:void 0}:n.inject(P,void 0),i=t.formItem?{size:void 0}:n.inject(U,void 0);return n.computed(()=>r.value||n.unref(e)||(i==null?void 0:i.size)||(u==null?void 0:u.size)||c.value||"")},Pe=e=>{const t=ee("disabled"),o=n.inject(P,void 0);return n.computed(()=>t.value||n.unref(e)||(o==null?void 0:o.disabled)||!1)},we=()=>{const e=n.inject(P,void 0),t=n.inject(U,void 0);return{form:e,formItem:t}},Ne=(e,{formItemContext:t,disableIdGeneration:o,disableIdManagement:r})=>{o||(o=n.ref(!1)),r||(r=n.ref(!1));const c=n.ref();let u;const i=n.computed(()=>{var l;return!!(!e.label&&t&&t.inputIds&&((l=t.inputIds)==null?void 0:l.length)<=1)});return n.onMounted(()=>{u=n.watch([n.toRef(e,"id"),o],([l,F])=>{const T=l??(F?void 0:E.useId().value);T!==c.value&&(t!=null&&t.removeInputId&&(c.value&&t.removeInputId(c.value),!(r!=null&&r.value)&&!F&&T&&t.addInputId(T)),c.value=T)},{immediate:!0})}),n.onUnmounted(()=>{u&&u(),t!=null&&t.removeInputId&&c.value&&t.removeInputId(c.value)}),{isLabeledByFormItem:i,inputId:c}},O="focus-trap.focus-after-trapped",L="focus-trap.focus-after-released",ge="focus-trap.focusout-prevented",B={cancelable:!0,bubbles:!1},he={cancelable:!0,bubbles:!1},H="focusAfterTrapped",q="focusAfterReleased",se=Symbol("elFocusTrap"),R=n.ref(),w=n.ref(0),x=n.ref(0);let b=0;const re=e=>{const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const c=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||c?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t},J=(e,t)=>{for(const o of e)if(!Oe(o,t))return o},Oe=(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},Le=e=>{const t=re(e),o=J(t,e),r=J(t.reverse(),e);return[o,r]},Ae=e=>e instanceof HTMLInputElement&&"select"in e,_=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),x.value=window.performance.now(),e!==o&&Ae(e)&&t&&e.select()}};function W(e,t){const o=[...e],r=e.indexOf(t);return r!==-1&&o.splice(r,1),o}const Ue=()=>{let e=[];return{push:r=>{const c=e[0];c&&r!==c&&c.pause(),e=W(e,r),e.unshift(r)},remove:r=>{var c,u;e=W(e,r),(u=(c=e[0])==null?void 0:c.resume)==null||u.call(c)}}},Re=(e,t=!1)=>{const o=document.activeElement;for(const r of e)if(_(r,t),document.activeElement!==o)return},Y=Ue(),xe=()=>w.value>x.value,C=()=>{R.value="pointer",w.value=window.performance.now()},G=()=>{R.value="keyboard",w.value=window.performance.now()},ze=()=>(n.onMounted(()=>{b===0&&(document.addEventListener("mousedown",C),document.addEventListener("touchstart",C),document.addEventListener("keydown",G)),b++}),n.onBeforeUnmount(()=>{b--,b<=0&&(document.removeEventListener("mousedown",C),document.removeEventListener("touchstart",C),document.removeEventListener("keydown",G))}),{focusReason:R,lastUserFocusTimestamp:w,lastAutomatedFocusTimestamp:x}),S=e=>new CustomEvent(ge,{...he,detail:e}),De=n.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[H,q,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const o=n.ref();let r,c;const{focusReason:u}=ze();Fe(s=>{e.trapped&&!i.paused&&t("release-requested",s)});const i={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},l=s=>{if(!e.loop&&!e.trapped||i.paused)return;const{key:a,altKey:f,ctrlKey:p,metaKey:v,currentTarget:V,shiftKey:j}=s,{loop:M}=e,ce=a===A.tab&&!f&&!p&&!v,y=document.activeElement;if(ce&&y){const N=V,[g,h]=Le(N);if(g&&h){if(!j&&y===h){const m=S({focusReason:u.value});t("focusout-prevented",m),m.defaultPrevented||(s.preventDefault(),M&&_(g,!0))}else if(j&&[g,N].includes(y)){const m=S({focusReason:u.value});t("focusout-prevented",m),m.defaultPrevented||(s.preventDefault(),M&&_(h,!0))}}else if(y===N){const m=S({focusReason:u.value});t("focusout-prevented",m),m.defaultPrevented||s.preventDefault()}}};n.provide(se,{focusTrapRef:o,onKeydown:l}),n.watch(()=>e.focusTrapEl,s=>{s&&(o.value=s)},{immediate:!0}),n.watch([o],([s],[a])=>{s&&(s.addEventListener("keydown",l),s.addEventListener("focusin",z),s.addEventListener("focusout",D)),a&&(a.removeEventListener("keydown",l),a.removeEventListener("focusin",z),a.removeEventListener("focusout",D))});const F=s=>{t(H,s)},T=s=>t(q,s),z=s=>{const a=n.unref(o);if(!a)return;const f=s.target,p=s.relatedTarget,v=f&&a.contains(f);e.trapped||p&&a.contains(p)||(r=p),v&&t("focusin",s),!i.paused&&e.trapped&&(v?c=f:_(c,!0))},D=s=>{const a=n.unref(o);if(!(i.paused||!a))if(e.trapped){const f=s.relatedTarget;!X(f)&&!a.contains(f)&&setTimeout(()=>{if(!i.paused&&e.trapped){const p=S({focusReason:u.value});t("focusout-prevented",p),p.defaultPrevented||_(c,!0)}},0)}else{const f=s.target;f&&a.contains(f)||t("focusout",s)}};async function K(){await n.nextTick();const s=n.unref(o);if(s){Y.push(i);const a=s.contains(document.activeElement)?r:document.activeElement;if(r=a,!s.contains(a)){const p=new Event(O,B);s.addEventListener(O,F),s.dispatchEvent(p),p.defaultPrevented||n.nextTick(()=>{let v=e.focusStartEl;E.isString(v)||(_(v),document.activeElement!==v&&(v="first")),v==="first"&&Re(re(s),!0),(document.activeElement===a||v==="container")&&_(s)})}}}function k(){const s=n.unref(o);if(s){s.removeEventListener(O,F);const a=new CustomEvent(L,{...B,detail:{focusReason:u.value}});s.addEventListener(L,T),s.dispatchEvent(a),!a.defaultPrevented&&(u.value=="keyboard"||!xe()||s.contains(document.activeElement))&&_(r??document.body),s.removeEventListener(L,T),Y.remove(i)}}return n.onMounted(()=>{e.trapped&&K(),n.watch(()=>e.trapped,s=>{s?K():k()})}),n.onBeforeUnmount(()=>{e.trapped&&k()}),{onKeydown:l}}});function Ke(e,t,o,r,c,u){return n.renderSlot(e.$slots,"default",{handleKeydown:e.onKeydown})}var ke=E._export_sfc(De,[["render",Ke],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);exports.CHANGE_EVENT=me;exports.CloseComponents=le;exports.EVENT_CODE=A;exports.ElFocusTrap=ke;exports.FOCUS_TRAP_INJECTION_KEY=se;exports.INPUT_EVENT=_e;exports.SIZE_INJECTION_KEY=oe;exports.TypeComponents=fe;exports.TypeComponentsMap=pe;exports.UPDATE_MODEL_EVENT=Ee;exports.ValidateComponentsMap=ve;exports.componentSizeMap=Te;exports.componentSizes=Q;exports.defaultInitialZIndex=te;exports.formContextKey=P;exports.formItemContextKey=U;exports.iconPropType=de;exports.isIndex=ie;exports.isNil=X;exports.useDeprecated=Ie;exports.useFormDisabled=Pe;exports.useFormItem=we;exports.useFormItemInputId=Ne;exports.useFormSize=Se;exports.useSizeProp=be;exports.useZIndex=ye;exports.zIndexContextKey=ne;
|
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
import { l as pe, o as ve, k as Ee, n as ne, s as se, w as oe, i as re, r as ae } from "./index-1508a06b.js";
|
|
2
|
+
import { d as me, j as Te, C as Z, k as _e, a6 as Fe, I as be, _ as ye, i as Ie } from "./base-a240bf62.js";
|
|
3
|
+
import { watch as I, unref as p, getCurrentInstance as ce, computed as _, onMounted as g, onBeforeUnmount as A, ref as v, inject as F, toRef as Se, onUnmounted as Pe, defineComponent as we, provide as Ce, nextTick as M, renderSlot as ge } from "vue";
|
|
4
|
+
var he = 9007199254740991, Le = /^(?:0|[1-9]\d*)$/;
|
|
5
|
+
function Qe(e, t) {
|
|
6
|
+
var n = typeof e;
|
|
7
|
+
return t = t ?? he, !!t && (n == "number" || n != "symbol" && Le.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
8
|
+
}
|
|
9
|
+
function Ne(e) {
|
|
10
|
+
return e == null;
|
|
11
|
+
}
|
|
12
|
+
const et = me([
|
|
13
|
+
String,
|
|
14
|
+
Object,
|
|
15
|
+
Function
|
|
16
|
+
]), tt = {
|
|
17
|
+
Close: ne
|
|
18
|
+
}, nt = {
|
|
19
|
+
Close: ne,
|
|
20
|
+
SuccessFilled: se,
|
|
21
|
+
InfoFilled: ae,
|
|
22
|
+
WarningFilled: oe,
|
|
23
|
+
CircleCloseFilled: re
|
|
24
|
+
}, st = {
|
|
25
|
+
success: se,
|
|
26
|
+
warning: oe,
|
|
27
|
+
error: re,
|
|
28
|
+
info: ae
|
|
29
|
+
}, ot = {
|
|
30
|
+
validating: pe,
|
|
31
|
+
success: ve,
|
|
32
|
+
error: Ee
|
|
33
|
+
}, ue = {
|
|
34
|
+
tab: "Tab",
|
|
35
|
+
enter: "Enter",
|
|
36
|
+
space: "Space",
|
|
37
|
+
left: "ArrowLeft",
|
|
38
|
+
up: "ArrowUp",
|
|
39
|
+
right: "ArrowRight",
|
|
40
|
+
down: "ArrowDown",
|
|
41
|
+
esc: "Escape",
|
|
42
|
+
delete: "Delete",
|
|
43
|
+
backspace: "Backspace",
|
|
44
|
+
numpadEnter: "NumpadEnter",
|
|
45
|
+
pageUp: "PageUp",
|
|
46
|
+
pageDown: "PageDown",
|
|
47
|
+
home: "Home",
|
|
48
|
+
end: "End"
|
|
49
|
+
}, rt = "update:modelValue", at = "change", ct = "input", Oe = ["", "default", "small", "large"], ut = {
|
|
50
|
+
large: 40,
|
|
51
|
+
default: 32,
|
|
52
|
+
small: 24
|
|
53
|
+
}, it = ({ from: e, replacement: t, scope: n, version: o, ref: r, type: a = "API" }, u) => {
|
|
54
|
+
I(() => p(u), (i) => {
|
|
55
|
+
i && Te(n, `[${a}] ${e} is about to be deprecated in version ${o}, please use ${t} instead.
|
|
56
|
+
For more detail, please visit: ${r}
|
|
57
|
+
`);
|
|
58
|
+
}, {
|
|
59
|
+
immediate: !0
|
|
60
|
+
});
|
|
61
|
+
}, ie = (e) => {
|
|
62
|
+
const t = ce();
|
|
63
|
+
return _(() => {
|
|
64
|
+
var n, o;
|
|
65
|
+
return (o = (n = t == null ? void 0 : t.proxy) == null ? void 0 : n.$props) == null ? void 0 : o[e];
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
|
+
let b = [];
|
|
69
|
+
const q = (e) => {
|
|
70
|
+
const t = e;
|
|
71
|
+
t.key === ue.esc && b.forEach((n) => n(t));
|
|
72
|
+
}, Re = (e) => {
|
|
73
|
+
g(() => {
|
|
74
|
+
b.length === 0 && document.addEventListener("keydown", q), Z && b.push(e);
|
|
75
|
+
}), A(() => {
|
|
76
|
+
b = b.filter((t) => t !== e), b.length === 0 && Z && document.removeEventListener("keydown", q);
|
|
77
|
+
});
|
|
78
|
+
}, W = v(0), ke = 2e3, Ae = Symbol("zIndexContextKey"), lt = (e) => {
|
|
79
|
+
const t = e || (ce() ? F(Ae, void 0) : void 0), n = _(() => {
|
|
80
|
+
const a = p(t);
|
|
81
|
+
return _e(a) ? a : ke;
|
|
82
|
+
}), o = _(() => n.value + W.value);
|
|
83
|
+
return {
|
|
84
|
+
initialZIndex: n,
|
|
85
|
+
currentZIndex: o,
|
|
86
|
+
nextZIndex: () => (W.value++, o.value)
|
|
87
|
+
};
|
|
88
|
+
}, dt = Fe({
|
|
89
|
+
type: String,
|
|
90
|
+
values: Oe,
|
|
91
|
+
required: !1
|
|
92
|
+
}), Ue = Symbol("size"), ze = () => {
|
|
93
|
+
const e = F(Ue, {});
|
|
94
|
+
return _(() => p(e.size) || "");
|
|
95
|
+
}, U = Symbol("formContextKey"), le = Symbol("formItemContextKey"), ft = (e, t = {}) => {
|
|
96
|
+
const n = v(void 0), o = t.prop ? n : ie("size"), r = t.global ? n : ze(), a = t.form ? { size: void 0 } : F(U, void 0), u = t.formItem ? { size: void 0 } : F(le, void 0);
|
|
97
|
+
return _(() => o.value || p(e) || (u == null ? void 0 : u.size) || (a == null ? void 0 : a.size) || r.value || "");
|
|
98
|
+
}, pt = (e) => {
|
|
99
|
+
const t = ie("disabled"), n = F(U, void 0);
|
|
100
|
+
return _(() => t.value || p(e) || (n == null ? void 0 : n.disabled) || !1);
|
|
101
|
+
}, vt = () => {
|
|
102
|
+
const e = F(U, void 0), t = F(le, void 0);
|
|
103
|
+
return {
|
|
104
|
+
form: e,
|
|
105
|
+
formItem: t
|
|
106
|
+
};
|
|
107
|
+
}, Et = (e, {
|
|
108
|
+
formItemContext: t,
|
|
109
|
+
disableIdGeneration: n,
|
|
110
|
+
disableIdManagement: o
|
|
111
|
+
}) => {
|
|
112
|
+
n || (n = v(!1)), o || (o = v(!1));
|
|
113
|
+
const r = v();
|
|
114
|
+
let a;
|
|
115
|
+
const u = _(() => {
|
|
116
|
+
var i;
|
|
117
|
+
return !!(!e.label && t && t.inputIds && ((i = t.inputIds) == null ? void 0 : i.length) <= 1);
|
|
118
|
+
});
|
|
119
|
+
return g(() => {
|
|
120
|
+
a = I([Se(e, "id"), n], ([i, y]) => {
|
|
121
|
+
const T = i ?? (y ? void 0 : be().value);
|
|
122
|
+
T !== r.value && (t != null && t.removeInputId && (r.value && t.removeInputId(r.value), !(o != null && o.value) && !y && T && t.addInputId(T)), r.value = T);
|
|
123
|
+
}, { immediate: !0 });
|
|
124
|
+
}), Pe(() => {
|
|
125
|
+
a && a(), t != null && t.removeInputId && r.value && t.removeInputId(r.value);
|
|
126
|
+
}), {
|
|
127
|
+
isLabeledByFormItem: u,
|
|
128
|
+
inputId: r
|
|
129
|
+
};
|
|
130
|
+
}, R = "focus-trap.focus-after-trapped", k = "focus-trap.focus-after-released", De = "focus-trap.focusout-prevented", J = {
|
|
131
|
+
cancelable: !0,
|
|
132
|
+
bubbles: !1
|
|
133
|
+
}, Ke = {
|
|
134
|
+
cancelable: !0,
|
|
135
|
+
bubbles: !1
|
|
136
|
+
}, Y = "focusAfterTrapped", X = "focusAfterReleased", xe = Symbol("elFocusTrap"), z = v(), h = v(0), D = v(0);
|
|
137
|
+
let P = 0;
|
|
138
|
+
const de = (e) => {
|
|
139
|
+
const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
140
|
+
acceptNode: (o) => {
|
|
141
|
+
const r = o.tagName === "INPUT" && o.type === "hidden";
|
|
142
|
+
return o.disabled || o.hidden || r ? NodeFilter.FILTER_SKIP : o.tabIndex >= 0 || o === document.activeElement ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
for (; n.nextNode(); )
|
|
146
|
+
t.push(n.currentNode);
|
|
147
|
+
return t;
|
|
148
|
+
}, G = (e, t) => {
|
|
149
|
+
for (const n of e)
|
|
150
|
+
if (!Ve(n, t))
|
|
151
|
+
return n;
|
|
152
|
+
}, Ve = (e, t) => {
|
|
153
|
+
if (process.env.NODE_ENV === "test")
|
|
154
|
+
return !1;
|
|
155
|
+
if (getComputedStyle(e).visibility === "hidden")
|
|
156
|
+
return !0;
|
|
157
|
+
for (; e; ) {
|
|
158
|
+
if (t && e === t)
|
|
159
|
+
return !1;
|
|
160
|
+
if (getComputedStyle(e).display === "none")
|
|
161
|
+
return !0;
|
|
162
|
+
e = e.parentElement;
|
|
163
|
+
}
|
|
164
|
+
return !1;
|
|
165
|
+
}, $e = (e) => {
|
|
166
|
+
const t = de(e), n = G(t, e), o = G(t.reverse(), e);
|
|
167
|
+
return [n, o];
|
|
168
|
+
}, je = (e) => e instanceof HTMLInputElement && "select" in e, m = (e, t) => {
|
|
169
|
+
if (e && e.focus) {
|
|
170
|
+
const n = document.activeElement;
|
|
171
|
+
e.focus({ preventScroll: !0 }), D.value = window.performance.now(), e !== n && je(e) && t && e.select();
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
function Q(e, t) {
|
|
175
|
+
const n = [...e], o = e.indexOf(t);
|
|
176
|
+
return o !== -1 && n.splice(o, 1), n;
|
|
177
|
+
}
|
|
178
|
+
const He = () => {
|
|
179
|
+
let e = [];
|
|
180
|
+
return {
|
|
181
|
+
push: (o) => {
|
|
182
|
+
const r = e[0];
|
|
183
|
+
r && o !== r && r.pause(), e = Q(e, o), e.unshift(o);
|
|
184
|
+
},
|
|
185
|
+
remove: (o) => {
|
|
186
|
+
var r, a;
|
|
187
|
+
e = Q(e, o), (a = (r = e[0]) == null ? void 0 : r.resume) == null || a.call(r);
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
}, Be = (e, t = !1) => {
|
|
191
|
+
const n = document.activeElement;
|
|
192
|
+
for (const o of e)
|
|
193
|
+
if (m(o, t), document.activeElement !== n)
|
|
194
|
+
return;
|
|
195
|
+
}, ee = He(), Ze = () => h.value > D.value, w = () => {
|
|
196
|
+
z.value = "pointer", h.value = window.performance.now();
|
|
197
|
+
}, te = () => {
|
|
198
|
+
z.value = "keyboard", h.value = window.performance.now();
|
|
199
|
+
}, Me = () => (g(() => {
|
|
200
|
+
P === 0 && (document.addEventListener("mousedown", w), document.addEventListener("touchstart", w), document.addEventListener("keydown", te)), P++;
|
|
201
|
+
}), A(() => {
|
|
202
|
+
P--, P <= 0 && (document.removeEventListener("mousedown", w), document.removeEventListener("touchstart", w), document.removeEventListener("keydown", te));
|
|
203
|
+
}), {
|
|
204
|
+
focusReason: z,
|
|
205
|
+
lastUserFocusTimestamp: h,
|
|
206
|
+
lastAutomatedFocusTimestamp: D
|
|
207
|
+
}), C = (e) => new CustomEvent(De, {
|
|
208
|
+
...Ke,
|
|
209
|
+
detail: e
|
|
210
|
+
}), qe = we({
|
|
211
|
+
name: "ElFocusTrap",
|
|
212
|
+
inheritAttrs: !1,
|
|
213
|
+
props: {
|
|
214
|
+
loop: Boolean,
|
|
215
|
+
trapped: Boolean,
|
|
216
|
+
focusTrapEl: Object,
|
|
217
|
+
focusStartEl: {
|
|
218
|
+
type: [Object, String],
|
|
219
|
+
default: "first"
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
emits: [
|
|
223
|
+
Y,
|
|
224
|
+
X,
|
|
225
|
+
"focusin",
|
|
226
|
+
"focusout",
|
|
227
|
+
"focusout-prevented",
|
|
228
|
+
"release-requested"
|
|
229
|
+
],
|
|
230
|
+
setup(e, { emit: t }) {
|
|
231
|
+
const n = v();
|
|
232
|
+
let o, r;
|
|
233
|
+
const { focusReason: a } = Me();
|
|
234
|
+
Re((s) => {
|
|
235
|
+
e.trapped && !u.paused && t("release-requested", s);
|
|
236
|
+
});
|
|
237
|
+
const u = {
|
|
238
|
+
paused: !1,
|
|
239
|
+
pause() {
|
|
240
|
+
this.paused = !0;
|
|
241
|
+
},
|
|
242
|
+
resume() {
|
|
243
|
+
this.paused = !1;
|
|
244
|
+
}
|
|
245
|
+
}, i = (s) => {
|
|
246
|
+
if (!e.loop && !e.trapped || u.paused)
|
|
247
|
+
return;
|
|
248
|
+
const { key: c, altKey: l, ctrlKey: d, metaKey: f, currentTarget: j, shiftKey: H } = s, { loop: B } = e, fe = c === ue.tab && !l && !d && !f, S = document.activeElement;
|
|
249
|
+
if (fe && S) {
|
|
250
|
+
const L = j, [N, O] = $e(L);
|
|
251
|
+
if (N && O) {
|
|
252
|
+
if (!H && S === O) {
|
|
253
|
+
const E = C({
|
|
254
|
+
focusReason: a.value
|
|
255
|
+
});
|
|
256
|
+
t("focusout-prevented", E), E.defaultPrevented || (s.preventDefault(), B && m(N, !0));
|
|
257
|
+
} else if (H && [N, L].includes(S)) {
|
|
258
|
+
const E = C({
|
|
259
|
+
focusReason: a.value
|
|
260
|
+
});
|
|
261
|
+
t("focusout-prevented", E), E.defaultPrevented || (s.preventDefault(), B && m(O, !0));
|
|
262
|
+
}
|
|
263
|
+
} else if (S === L) {
|
|
264
|
+
const E = C({
|
|
265
|
+
focusReason: a.value
|
|
266
|
+
});
|
|
267
|
+
t("focusout-prevented", E), E.defaultPrevented || s.preventDefault();
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
};
|
|
271
|
+
Ce(xe, {
|
|
272
|
+
focusTrapRef: n,
|
|
273
|
+
onKeydown: i
|
|
274
|
+
}), I(() => e.focusTrapEl, (s) => {
|
|
275
|
+
s && (n.value = s);
|
|
276
|
+
}, { immediate: !0 }), I([n], ([s], [c]) => {
|
|
277
|
+
s && (s.addEventListener("keydown", i), s.addEventListener("focusin", K), s.addEventListener("focusout", x)), c && (c.removeEventListener("keydown", i), c.removeEventListener("focusin", K), c.removeEventListener("focusout", x));
|
|
278
|
+
});
|
|
279
|
+
const y = (s) => {
|
|
280
|
+
t(Y, s);
|
|
281
|
+
}, T = (s) => t(X, s), K = (s) => {
|
|
282
|
+
const c = p(n);
|
|
283
|
+
if (!c)
|
|
284
|
+
return;
|
|
285
|
+
const l = s.target, d = s.relatedTarget, f = l && c.contains(l);
|
|
286
|
+
e.trapped || d && c.contains(d) || (o = d), f && t("focusin", s), !u.paused && e.trapped && (f ? r = l : m(r, !0));
|
|
287
|
+
}, x = (s) => {
|
|
288
|
+
const c = p(n);
|
|
289
|
+
if (!(u.paused || !c))
|
|
290
|
+
if (e.trapped) {
|
|
291
|
+
const l = s.relatedTarget;
|
|
292
|
+
!Ne(l) && !c.contains(l) && setTimeout(() => {
|
|
293
|
+
if (!u.paused && e.trapped) {
|
|
294
|
+
const d = C({
|
|
295
|
+
focusReason: a.value
|
|
296
|
+
});
|
|
297
|
+
t("focusout-prevented", d), d.defaultPrevented || m(r, !0);
|
|
298
|
+
}
|
|
299
|
+
}, 0);
|
|
300
|
+
} else {
|
|
301
|
+
const l = s.target;
|
|
302
|
+
l && c.contains(l) || t("focusout", s);
|
|
303
|
+
}
|
|
304
|
+
};
|
|
305
|
+
async function V() {
|
|
306
|
+
await M();
|
|
307
|
+
const s = p(n);
|
|
308
|
+
if (s) {
|
|
309
|
+
ee.push(u);
|
|
310
|
+
const c = s.contains(document.activeElement) ? o : document.activeElement;
|
|
311
|
+
if (o = c, !s.contains(c)) {
|
|
312
|
+
const d = new Event(R, J);
|
|
313
|
+
s.addEventListener(R, y), s.dispatchEvent(d), d.defaultPrevented || M(() => {
|
|
314
|
+
let f = e.focusStartEl;
|
|
315
|
+
Ie(f) || (m(f), document.activeElement !== f && (f = "first")), f === "first" && Be(de(s), !0), (document.activeElement === c || f === "container") && m(s);
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
function $() {
|
|
321
|
+
const s = p(n);
|
|
322
|
+
if (s) {
|
|
323
|
+
s.removeEventListener(R, y);
|
|
324
|
+
const c = new CustomEvent(k, {
|
|
325
|
+
...J,
|
|
326
|
+
detail: {
|
|
327
|
+
focusReason: a.value
|
|
328
|
+
}
|
|
329
|
+
});
|
|
330
|
+
s.addEventListener(k, T), s.dispatchEvent(c), !c.defaultPrevented && (a.value == "keyboard" || !Ze() || s.contains(document.activeElement)) && m(o ?? document.body), s.removeEventListener(k, T), ee.remove(u);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
return g(() => {
|
|
334
|
+
e.trapped && V(), I(() => e.trapped, (s) => {
|
|
335
|
+
s ? V() : $();
|
|
336
|
+
});
|
|
337
|
+
}), A(() => {
|
|
338
|
+
e.trapped && $();
|
|
339
|
+
}), {
|
|
340
|
+
onKeydown: i
|
|
341
|
+
};
|
|
342
|
+
}
|
|
343
|
+
});
|
|
344
|
+
function We(e, t, n, o, r, a) {
|
|
345
|
+
return ge(e.$slots, "default", { handleKeydown: e.onKeydown });
|
|
346
|
+
}
|
|
347
|
+
var mt = /* @__PURE__ */ ye(qe, [["render", We], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);
|
|
348
|
+
export {
|
|
349
|
+
at as C,
|
|
350
|
+
ue as E,
|
|
351
|
+
xe as F,
|
|
352
|
+
ct as I,
|
|
353
|
+
Ue as S,
|
|
354
|
+
st as T,
|
|
355
|
+
rt as U,
|
|
356
|
+
ot as V,
|
|
357
|
+
Ne as a,
|
|
358
|
+
Qe as b,
|
|
359
|
+
Oe as c,
|
|
360
|
+
lt as d,
|
|
361
|
+
ft as e,
|
|
362
|
+
dt as f,
|
|
363
|
+
U as g,
|
|
364
|
+
le as h,
|
|
365
|
+
et as i,
|
|
366
|
+
pt as j,
|
|
367
|
+
vt as k,
|
|
368
|
+
Et as l,
|
|
369
|
+
nt as m,
|
|
370
|
+
tt as n,
|
|
371
|
+
mt as o,
|
|
372
|
+
ut as p,
|
|
373
|
+
ke as q,
|
|
374
|
+
it as u,
|
|
375
|
+
Ae as z
|
|
376
|
+
};
|