@abi-software/flatmapvuer 1.13.0 → 1.13.1-simulation.0
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/dist/flatmapvuer.js +2717 -2403
- package/dist/flatmapvuer.umd.cjs +11 -11
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/components/FlatmapVuer.vue +1134 -648
- package/src/components/MultiFlatmapVuer.vue +2 -0
- package/src/components/index.js +17 -3
- package/src/services/flatmapKnowledge.js +1 -0
package/dist/flatmapvuer.umd.cjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(z,Pt){typeof exports=="object"&&typeof module<"u"?Pt(exports,require("https://cdn.jsdelivr.net/npm/@abi-software/flatmap-viewer@4.4.3/+esm"),require("@element-plus/icons-vue"),require("vue"),require("@abi-software/svg-sprite"),require("@abi-software/map-utilities"),require("@abi-software/sparc-annotation"),require("pinia")):typeof define=="function"&&define.amd?define(["exports","https://cdn.jsdelivr.net/npm/@abi-software/flatmap-viewer@4.4.3/+esm","@element-plus/icons-vue","vue","@abi-software/svg-sprite","@abi-software/map-utilities","@abi-software/sparc-annotation","pinia"],Pt):(z=typeof globalThis<"u"?globalThis:z||self,Pt(z.FlatmapVuer={},z.flatmap,z["@element-plus/icons-vue"],z.Vue,z["@abi-software/svg-sprite"],z["@abi-software/map-utilities"],z["@abi-software/sparc-annotation"],z.pinia))})(this,function(z,Pt,W,n,wi,ut,Bs,Ci){"use strict";function xs(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const i=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,i.get?i:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const vi=xs(Pt),Ae=(e,t,{checkForDefaultPrevented:o=!0}={})=>a=>{const r=e==null?void 0:e(a);if(o===!1||!r)return t==null?void 0:t(a)};var Si;const K=typeof window<"u",Ns=e=>typeof e=="string",ki=()=>{},ao=K&&((Si=window==null?void 0:window.navigator)==null?void 0:Si.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function ro(e){return typeof e=="function"?e():n.unref(e)}function _s(e){return e}function Vt(e){return n.getCurrentScope()?(n.onScopeDispose(e),!0):!1}function Ls(e,t=!0){n.getCurrentInstance()?n.onMounted(e):t?e():n.nextTick(e)}function Ei(e,t,o={}){const{immediate:i=!0}=o,a=n.ref(!1);let r=null;function s(){r&&(clearTimeout(r),r=null)}function l(){a.value=!1,s()}function c(...d){s(),a.value=!0,r=setTimeout(()=>{a.value=!1,r=null,e(...d)},ro(t))}return i&&(a.value=!0,K&&c()),Vt(l),{isPending:n.readonly(a),start:c,stop:l}}function Oe(e){var t;const o=ro(e);return(t=o==null?void 0:o.$el)!=null?t:o}const hn=K?window:void 0;function he(...e){let t,o,i,a;if(Ns(e[0])||Array.isArray(e[0])?([o,i,a]=e,t=hn):[t,o,i,a]=e,!t)return ki;Array.isArray(o)||(o=[o]),Array.isArray(i)||(i=[i]);const r=[],s=()=>{r.forEach(f=>f()),r.length=0},l=(f,u,p,g)=>(f.addEventListener(u,p,g),()=>f.removeEventListener(u,p,g)),c=n.watch(()=>[Oe(t),ro(a)],([f,u])=>{s(),f&&r.push(...o.flatMap(p=>i.map(g=>l(f,p,g,u))))},{immediate:!0,flush:"post"}),d=()=>{c(),s()};return Vt(d),d}let Ii=!1;function Ps(e,t,o={}){const{window:i=hn,ignore:a=[],capture:r=!0,detectIframe:s=!1}=o;if(!i)return;ao&&!Ii&&(Ii=!0,Array.from(i.document.body.children).forEach(p=>p.addEventListener("click",ki)));let l=!0;const c=p=>a.some(g=>{if(typeof g=="string")return Array.from(i.document.querySelectorAll(g)).some(h=>h===p.target||p.composedPath().includes(h));{const h=Oe(g);return h&&(p.target===h||p.composedPath().includes(h))}}),f=[he(i,"click",p=>{const g=Oe(e);if(!(!g||g===p.target||p.composedPath().includes(g))){if(p.detail===0&&(l=!c(p)),!l){l=!0;return}t(p)}},{passive:!0,capture:r}),he(i,"pointerdown",p=>{const g=Oe(e);g&&(l=!p.composedPath().includes(g)&&!c(p))},{passive:!0}),s&&he(i,"blur",p=>{var g;const h=Oe(e);((g=i.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!(h!=null&&h.contains(i.document.activeElement))&&t(p)})].filter(Boolean);return()=>f.forEach(p=>p())}function Ti(e,t=!1){const o=n.ref(),i=()=>o.value=!!e();return i(),Ls(i,t),o}const Ai=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Oi="__vueuse_ssr_handlers__";Ai[Oi]=Ai[Oi]||{};var Mi=Object.getOwnPropertySymbols,Vs=Object.prototype.hasOwnProperty,Rs=Object.prototype.propertyIsEnumerable,Ds=(e,t)=>{var o={};for(var i in e)Vs.call(e,i)&&t.indexOf(i)<0&&(o[i]=e[i]);if(e!=null&&Mi)for(var i of Mi(e))t.indexOf(i)<0&&Rs.call(e,i)&&(o[i]=e[i]);return o};function Re(e,t,o={}){const i=o,{window:a=hn}=i,r=Ds(i,["window"]);let s;const l=Ti(()=>a&&"ResizeObserver"in a),c=()=>{s&&(s.disconnect(),s=void 0)},d=n.watch(()=>Oe(e),u=>{c(),l.value&&a&&u&&(s=new ResizeObserver(t),s.observe(u,r))},{immediate:!0,flush:"post"}),f=()=>{c(),d()};return Vt(f),{isSupported:l,stop:f}}var Bi=Object.getOwnPropertySymbols,Fs=Object.prototype.hasOwnProperty,$s=Object.prototype.propertyIsEnumerable,zs=(e,t)=>{var o={};for(var i in e)Fs.call(e,i)&&t.indexOf(i)<0&&(o[i]=e[i]);if(e!=null&&Bi)for(var i of Bi(e))t.indexOf(i)<0&&$s.call(e,i)&&(o[i]=e[i]);return o};function js(e,t,o={}){const i=o,{window:a=hn}=i,r=zs(i,["window"]);let s;const l=Ti(()=>a&&"MutationObserver"in a),c=()=>{s&&(s.disconnect(),s=void 0)},d=n.watch(()=>Oe(e),u=>{c(),l.value&&a&&u&&(s=new MutationObserver(t),s.observe(u,r))},{immediate:!0}),f=()=>{c(),d()};return Vt(f),{isSupported:l,stop:f}}var xi;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(xi||(xi={}));var Hs=Object.defineProperty,Ni=Object.getOwnPropertySymbols,Ks=Object.prototype.hasOwnProperty,Us=Object.prototype.propertyIsEnumerable,_i=(e,t,o)=>t in e?Hs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Ws=(e,t)=>{for(var o in t||(t={}))Ks.call(t,o)&&_i(e,o,t[o]);if(Ni)for(var o of Ni(t))Us.call(t,o)&&_i(e,o,t[o]);return e};Ws({linear:_s},{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
2
|
* @vue/shared v3.5.13
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
|
-
**/process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const Je=()=>{},Hs=Object.prototype.hasOwnProperty,Li=(e,t)=>Hs.call(e,t),ee=Array.isArray,Q=e=>typeof e=="function",me=e=>typeof e=="string",te=e=>e!==null&&typeof e=="object",Ks=Object.prototype.toString,Us=e=>Ks.call(e),ao=e=>Us(e).slice(8,-1),Pi=e=>{const t=Object.create(null);return o=>t[o]||(t[o]=e(o))},Ws=/-(\w)/g,qs=Pi(e=>e.replace(Ws,(t,o)=>o?o.toUpperCase():"")),Gs=/\B([A-Z])/g,Js=Pi(e=>e.replace(Gs,"-$1").toLowerCase());var Vi=typeof global=="object"&&global&&global.Object===Object&&global,Ys=typeof self=="object"&&self&&self.Object===Object&&self,Ce=Vi||Ys||Function("return this")(),ve=Ce.Symbol,Ri=Object.prototype,Zs=Ri.hasOwnProperty,Qs=Ri.toString,Rt=ve?ve.toStringTag:void 0;function Xs(e){var t=Zs.call(e,Rt),o=e[Rt];try{e[Rt]=void 0;var i=!0}catch{}var a=Qs.call(e);return i&&(t?e[Rt]=o:delete e[Rt]),a}var el=Object.prototype,tl=el.toString;function nl(e){return tl.call(e)}var ol="[object Null]",il="[object Undefined]",Fi=ve?ve.toStringTag:void 0;function pt(e){return e==null?e===void 0?il:ol:Fi&&Fi in Object(e)?Xs(e):nl(e)}function ht(e){return e!=null&&typeof e=="object"}var al="[object Symbol]";function mn(e){return typeof e=="symbol"||ht(e)&&pt(e)==al}function rl(e,t){for(var o=-1,i=e==null?0:e.length,a=Array(i);++o<i;)a[o]=t(e[o],o,e);return a}var ge=Array.isArray,Di=ve?ve.prototype:void 0,$i=Di?Di.toString:void 0;function zi(e){if(typeof e=="string")return e;if(ge(e))return rl(e,zi)+"";if(mn(e))return $i?$i.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var sl=/\s/;function ll(e){for(var t=e.length;t--&&sl.test(e.charAt(t)););return t}var cl=/^\s+/;function dl(e){return e&&e.slice(0,ll(e)+1).replace(cl,"")}function Fe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ji=NaN,fl=/^[-+]0x[0-9a-f]+$/i,ul=/^0b[01]+$/i,pl=/^0o[0-7]+$/i,hl=parseInt;function Hi(e){if(typeof e=="number")return e;if(mn(e))return ji;if(Fe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Fe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=dl(e);var o=ul.test(e);return o||pl.test(e)?hl(e.slice(2),o?2:8):fl.test(e)?ji:+e}function Ki(e){return e}var ml="[object AsyncFunction]",gl="[object Function]",yl="[object GeneratorFunction]",bl="[object Proxy]";function Ui(e){if(!Fe(e))return!1;var t=pt(e);return t==gl||t==yl||t==ml||t==bl}var ro=Ce["__core-js_shared__"],Wi=function(){var e=/[^.]+$/.exec(ro&&ro.keys&&ro.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function wl(e){return!!Wi&&Wi in e}var Cl=Function.prototype,vl=Cl.toString;function Ye(e){if(e!=null){try{return vl.call(e)}catch{}try{return e+""}catch{}}return""}var Sl=/[\\^$.*+?()[\]{}|]/g,kl=/^\[object .+?Constructor\]$/,El=Function.prototype,Il=Object.prototype,Tl=El.toString,Al=Il.hasOwnProperty,Ol=RegExp("^"+Tl.call(Al).replace(Sl,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ml(e){if(!Fe(e)||wl(e))return!1;var t=Ui(e)?Ol:kl;return t.test(Ye(e))}function xl(e,t){return e==null?void 0:e[t]}function Ze(e,t){var o=xl(e,t);return Ml(o)?o:void 0}var so=Ze(Ce,"WeakMap");function Bl(e,t,o){switch(o.length){case 0:return e.call(t);case 1:return e.call(t,o[0]);case 2:return e.call(t,o[0],o[1]);case 3:return e.call(t,o[0],o[1],o[2])}return e.apply(t,o)}var Nl=800,_l=16,Ll=Date.now;function Pl(e){var t=0,o=0;return function(){var i=Ll(),a=_l-(i-o);if(o=i,a>0){if(++t>=Nl)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Vl(e){return function(){return e}}var gn=function(){try{var e=Ze(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Rl=gn?function(e,t){return gn(e,"toString",{configurable:!0,enumerable:!1,value:Vl(t),writable:!0})}:Ki,Fl=Pl(Rl);function Dl(e,t,o,i){e.length;for(var a=o+1;a--;)if(t(e[a],a,e))return a;return-1}var $l=9007199254740991,zl=/^(?:0|[1-9]\d*)$/;function lo(e,t){var o=typeof e;return t=t??$l,!!t&&(o=="number"||o!="symbol"&&zl.test(e))&&e>-1&&e%1==0&&e<t}function jl(e,t,o){t=="__proto__"&&gn?gn(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}function co(e,t){return e===t||e!==e&&t!==t}var Hl=Object.prototype,Kl=Hl.hasOwnProperty;function Ul(e,t,o){var i=e[t];(!(Kl.call(e,t)&&co(i,o))||o===void 0&&!(t in e))&&jl(e,t,o)}var qi=Math.max;function Wl(e,t,o){return t=qi(t===void 0?e.length-1:t,0),function(){for(var i=arguments,a=-1,r=qi(i.length-t,0),s=Array(r);++a<r;)s[a]=i[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=i[a];return l[t]=o(s),Bl(e,this,l)}}var ql=9007199254740991;function fo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ql}function Gl(e){return e!=null&&fo(e.length)&&!Ui(e)}var Jl=Object.prototype;function Yl(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||Jl;return e===o}function Zl(e,t){for(var o=-1,i=Array(e);++o<e;)i[o]=t(o);return i}var Ql="[object Arguments]";function Gi(e){return ht(e)&&pt(e)==Ql}var Ji=Object.prototype,Xl=Ji.hasOwnProperty,ec=Ji.propertyIsEnumerable,uo=Gi(function(){return arguments}())?Gi:function(e){return ht(e)&&Xl.call(e,"callee")&&!ec.call(e,"callee")};function tc(){return!1}var Yi=typeof H=="object"&&H&&!H.nodeType&&H,Zi=Yi&&typeof module=="object"&&module&&!module.nodeType&&module,nc=Zi&&Zi.exports===Yi,Qi=nc?Ce.Buffer:void 0,oc=Qi?Qi.isBuffer:void 0,po=oc||tc,ic="[object Arguments]",ac="[object Array]",rc="[object Boolean]",sc="[object Date]",lc="[object Error]",cc="[object Function]",dc="[object Map]",fc="[object Number]",uc="[object Object]",pc="[object RegExp]",hc="[object Set]",mc="[object String]",gc="[object WeakMap]",yc="[object ArrayBuffer]",bc="[object DataView]",wc="[object Float32Array]",Cc="[object Float64Array]",vc="[object Int8Array]",Sc="[object Int16Array]",kc="[object Int32Array]",Ec="[object Uint8Array]",Ic="[object Uint8ClampedArray]",Tc="[object Uint16Array]",Ac="[object Uint32Array]",j={};j[wc]=j[Cc]=j[vc]=j[Sc]=j[kc]=j[Ec]=j[Ic]=j[Tc]=j[Ac]=!0,j[ic]=j[ac]=j[yc]=j[rc]=j[bc]=j[sc]=j[lc]=j[cc]=j[dc]=j[fc]=j[uc]=j[pc]=j[hc]=j[mc]=j[gc]=!1;function Oc(e){return ht(e)&&fo(e.length)&&!!j[pt(e)]}function Mc(e){return function(t){return e(t)}}var Xi=typeof H=="object"&&H&&!H.nodeType&&H,Ft=Xi&&typeof module=="object"&&module&&!module.nodeType&&module,xc=Ft&&Ft.exports===Xi,ho=xc&&Vi.process,ea=function(){try{var e=Ft&&Ft.require&&Ft.require("util").types;return e||ho&&ho.binding&&ho.binding("util")}catch{}}(),ta=ea&&ea.isTypedArray,na=ta?Mc(ta):Oc,Bc=Object.prototype,Nc=Bc.hasOwnProperty;function _c(e,t){var o=ge(e),i=!o&&uo(e),a=!o&&!i&&po(e),r=!o&&!i&&!a&&na(e),s=o||i||a||r,l=s?Zl(e.length,String):[],c=l.length;for(var d in e)Nc.call(e,d)&&!(s&&(d=="length"||a&&(d=="offset"||d=="parent")||r&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||lo(d,c)))&&l.push(d);return l}function Lc(e,t){return function(o){return e(t(o))}}var Pc=Lc(Object.keys,Object),Vc=Object.prototype,Rc=Vc.hasOwnProperty;function Fc(e){if(!Yl(e))return Pc(e);var t=[];for(var o in Object(e))Rc.call(e,o)&&o!="constructor"&&t.push(o);return t}function oa(e){return Gl(e)?_c(e):Fc(e)}var Dc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$c=/^\w*$/;function mo(e,t){if(ge(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||mn(e)?!0:$c.test(e)||!Dc.test(e)||t!=null&&e in Object(t)}var Dt=Ze(Object,"create");function zc(){this.__data__=Dt?Dt(null):{},this.size=0}function jc(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Hc="__lodash_hash_undefined__",Kc=Object.prototype,Uc=Kc.hasOwnProperty;function Wc(e){var t=this.__data__;if(Dt){var o=t[e];return o===Hc?void 0:o}return Uc.call(t,e)?t[e]:void 0}var qc=Object.prototype,Gc=qc.hasOwnProperty;function Jc(e){var t=this.__data__;return Dt?t[e]!==void 0:Gc.call(t,e)}var Yc="__lodash_hash_undefined__";function Zc(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=Dt&&t===void 0?Yc:t,this}function Qe(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var i=e[t];this.set(i[0],i[1])}}Qe.prototype.clear=zc,Qe.prototype.delete=jc,Qe.prototype.get=Wc,Qe.prototype.has=Jc,Qe.prototype.set=Zc;function Qc(){this.__data__=[],this.size=0}function yn(e,t){for(var o=e.length;o--;)if(co(e[o][0],t))return o;return-1}var Xc=Array.prototype,ed=Xc.splice;function td(e){var t=this.__data__,o=yn(t,e);if(o<0)return!1;var i=t.length-1;return o==i?t.pop():ed.call(t,o,1),--this.size,!0}function nd(e){var t=this.__data__,o=yn(t,e);return o<0?void 0:t[o][1]}function od(e){return yn(this.__data__,e)>-1}function id(e,t){var o=this.__data__,i=yn(o,e);return i<0?(++this.size,o.push([e,t])):o[i][1]=t,this}function Me(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var i=e[t];this.set(i[0],i[1])}}Me.prototype.clear=Qc,Me.prototype.delete=td,Me.prototype.get=nd,Me.prototype.has=od,Me.prototype.set=id;var $t=Ze(Ce,"Map");function ad(){this.size=0,this.__data__={hash:new Qe,map:new($t||Me),string:new Qe}}function rd(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function bn(e,t){var o=e.__data__;return rd(t)?o[typeof t=="string"?"string":"hash"]:o.map}function sd(e){var t=bn(this,e).delete(e);return this.size-=t?1:0,t}function ld(e){return bn(this,e).get(e)}function cd(e){return bn(this,e).has(e)}function dd(e,t){var o=bn(this,e),i=o.size;return o.set(e,t),this.size+=o.size==i?0:1,this}function xe(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var i=e[t];this.set(i[0],i[1])}}xe.prototype.clear=ad,xe.prototype.delete=sd,xe.prototype.get=ld,xe.prototype.has=cd,xe.prototype.set=dd;var fd="Expected a function";function go(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(fd);var o=function(){var i=arguments,a=t?t.apply(this,i):i[0],r=o.cache;if(r.has(a))return r.get(a);var s=e.apply(this,i);return o.cache=r.set(a,s)||r,s};return o.cache=new(go.Cache||xe),o}go.Cache=xe;var ud=500;function pd(e){var t=go(e,function(i){return o.size===ud&&o.clear(),i}),o=t.cache;return t}var hd=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,md=/\\(\\)?/g,gd=pd(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(hd,function(o,i,a,r){t.push(a?r.replace(md,"$1"):i||o)}),t});function yd(e){return e==null?"":zi(e)}function wn(e,t){return ge(e)?e:mo(e,t)?[e]:gd(yd(e))}function zt(e){if(typeof e=="string"||mn(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function yo(e,t){t=wn(t,e);for(var o=0,i=t.length;e!=null&&o<i;)e=e[zt(t[o++])];return o&&o==i?e:void 0}function Be(e,t,o){var i=e==null?void 0:yo(e,t);return i===void 0?o:i}function ia(e,t){for(var o=-1,i=t.length,a=e.length;++o<i;)e[a+o]=t[o];return e}var aa=ve?ve.isConcatSpreadable:void 0;function bd(e){return ge(e)||uo(e)||!!(aa&&e&&e[aa])}function wd(e,t,o,i,a){var r=-1,s=e.length;for(o||(o=bd),a||(a=[]);++r<s;){var l=e[r];o(l)?ia(a,l):a[a.length]=l}return a}function Cd(e){var t=e==null?0:e.length;return t?wd(e):[]}function vd(e){return Fl(Wl(e,void 0,Cd),e+"")}function De(){if(!arguments.length)return[];var e=arguments[0];return ge(e)?e:[e]}function Sd(){this.__data__=new Me,this.size=0}function kd(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}function Ed(e){return this.__data__.get(e)}function Id(e){return this.__data__.has(e)}var Td=200;function Ad(e,t){var o=this.__data__;if(o instanceof Me){var i=o.__data__;if(!$t||i.length<Td-1)return i.push([e,t]),this.size=++o.size,this;o=this.__data__=new xe(i)}return o.set(e,t),this.size=o.size,this}function Ne(e){var t=this.__data__=new Me(e);this.size=t.size}Ne.prototype.clear=Sd,Ne.prototype.delete=kd,Ne.prototype.get=Ed,Ne.prototype.has=Id,Ne.prototype.set=Ad;function Od(e,t){for(var o=-1,i=e==null?0:e.length,a=0,r=[];++o<i;){var s=e[o];t(s,o,e)&&(r[a++]=s)}return r}function Md(){return[]}var xd=Object.prototype,Bd=xd.propertyIsEnumerable,ra=Object.getOwnPropertySymbols,Nd=ra?function(e){return e==null?[]:(e=Object(e),Od(ra(e),function(t){return Bd.call(e,t)}))}:Md;function _d(e,t,o){var i=t(e);return ge(e)?i:ia(i,o(e))}function sa(e){return _d(e,oa,Nd)}var bo=Ze(Ce,"DataView"),wo=Ze(Ce,"Promise"),Co=Ze(Ce,"Set"),la="[object Map]",Ld="[object Object]",ca="[object Promise]",da="[object Set]",fa="[object WeakMap]",ua="[object DataView]",Pd=Ye(bo),Vd=Ye($t),Rd=Ye(wo),Fd=Ye(Co),Dd=Ye(so),$e=pt;(bo&&$e(new bo(new ArrayBuffer(1)))!=ua||$t&&$e(new $t)!=la||wo&&$e(wo.resolve())!=ca||Co&&$e(new Co)!=da||so&&$e(new so)!=fa)&&($e=function(e){var t=pt(e),o=t==Ld?e.constructor:void 0,i=o?Ye(o):"";if(i)switch(i){case Pd:return ua;case Vd:return la;case Rd:return ca;case Fd:return da;case Dd:return fa}return t});var pa=Ce.Uint8Array,$d="__lodash_hash_undefined__";function zd(e){return this.__data__.set(e,$d),this}function jd(e){return this.__data__.has(e)}function Cn(e){var t=-1,o=e==null?0:e.length;for(this.__data__=new xe;++t<o;)this.add(e[t])}Cn.prototype.add=Cn.prototype.push=zd,Cn.prototype.has=jd;function Hd(e,t){for(var o=-1,i=e==null?0:e.length;++o<i;)if(t(e[o],o,e))return!0;return!1}function Kd(e,t){return e.has(t)}var Ud=1,Wd=2;function ha(e,t,o,i,a,r){var s=o&Ud,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var d=r.get(e),f=r.get(t);if(d&&f)return d==t&&f==e;var u=-1,p=!0,g=o&Wd?new Cn:void 0;for(r.set(e,t),r.set(t,e);++u<l;){var h=e[u],m=t[u];if(i)var y=s?i(m,h,u,t,e,r):i(h,m,u,e,t,r);if(y!==void 0){if(y)continue;p=!1;break}if(g){if(!Hd(t,function(b,C){if(!Kd(g,C)&&(h===b||a(h,b,o,i,r)))return g.push(C)})){p=!1;break}}else if(!(h===m||a(h,m,o,i,r))){p=!1;break}}return r.delete(e),r.delete(t),p}function qd(e){var t=-1,o=Array(e.size);return e.forEach(function(i,a){o[++t]=[a,i]}),o}function Gd(e){var t=-1,o=Array(e.size);return e.forEach(function(i){o[++t]=i}),o}var Jd=1,Yd=2,Zd="[object Boolean]",Qd="[object Date]",Xd="[object Error]",ef="[object Map]",tf="[object Number]",nf="[object RegExp]",of="[object Set]",af="[object String]",rf="[object Symbol]",sf="[object ArrayBuffer]",lf="[object DataView]",ma=ve?ve.prototype:void 0,vo=ma?ma.valueOf:void 0;function cf(e,t,o,i,a,r,s){switch(o){case lf:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case sf:return!(e.byteLength!=t.byteLength||!r(new pa(e),new pa(t)));case Zd:case Qd:case tf:return co(+e,+t);case Xd:return e.name==t.name&&e.message==t.message;case nf:case af:return e==t+"";case ef:var l=qd;case of:var c=i&Jd;if(l||(l=Gd),e.size!=t.size&&!c)return!1;var d=s.get(e);if(d)return d==t;i|=Yd,s.set(e,t);var f=ha(l(e),l(t),i,a,r,s);return s.delete(e),f;case rf:if(vo)return vo.call(e)==vo.call(t)}return!1}var df=1,ff=Object.prototype,uf=ff.hasOwnProperty;function pf(e,t,o,i,a,r){var s=o&df,l=sa(e),c=l.length,d=sa(t),f=d.length;if(c!=f&&!s)return!1;for(var u=c;u--;){var p=l[u];if(!(s?p in t:uf.call(t,p)))return!1}var g=r.get(e),h=r.get(t);if(g&&h)return g==t&&h==e;var m=!0;r.set(e,t),r.set(t,e);for(var y=s;++u<c;){p=l[u];var b=e[p],C=t[p];if(i)var I=s?i(C,b,p,t,e,r):i(b,C,p,e,t,r);if(!(I===void 0?b===C||a(b,C,o,i,r):I)){m=!1;break}y||(y=p=="constructor")}if(m&&!y){var k=e.constructor,v=t.constructor;k!=v&&"constructor"in e&&"constructor"in t&&!(typeof k=="function"&&k instanceof k&&typeof v=="function"&&v instanceof v)&&(m=!1)}return r.delete(e),r.delete(t),m}var hf=1,ga="[object Arguments]",ya="[object Array]",vn="[object Object]",mf=Object.prototype,ba=mf.hasOwnProperty;function gf(e,t,o,i,a,r){var s=ge(e),l=ge(t),c=s?ya:$e(e),d=l?ya:$e(t);c=c==ga?vn:c,d=d==ga?vn:d;var f=c==vn,u=d==vn,p=c==d;if(p&&po(e)){if(!po(t))return!1;s=!0,f=!1}if(p&&!f)return r||(r=new Ne),s||na(e)?ha(e,t,o,i,a,r):cf(e,t,c,o,i,a,r);if(!(o&hf)){var g=f&&ba.call(e,"__wrapped__"),h=u&&ba.call(t,"__wrapped__");if(g||h){var m=g?e.value():e,y=h?t.value():t;return r||(r=new Ne),a(m,y,o,i,r)}}return p?(r||(r=new Ne),pf(e,t,o,i,a,r)):!1}function Sn(e,t,o,i,a){return e===t?!0:e==null||t==null||!ht(e)&&!ht(t)?e!==e&&t!==t:gf(e,t,o,i,Sn,a)}var yf=1,bf=2;function wf(e,t,o,i){var a=o.length,r=a;if(e==null)return!r;for(e=Object(e);a--;){var s=o[a];if(s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<r;){s=o[a];var l=s[0],c=e[l],d=s[1];if(s[2]){if(c===void 0&&!(l in e))return!1}else{var f=new Ne,u;if(!(u===void 0?Sn(d,c,yf|bf,i,f):u))return!1}}return!0}function wa(e){return e===e&&!Fe(e)}function Cf(e){for(var t=oa(e),o=t.length;o--;){var i=t[o],a=e[i];t[o]=[i,a,wa(a)]}return t}function Ca(e,t){return function(o){return o==null?!1:o[e]===t&&(t!==void 0||e in Object(o))}}function vf(e){var t=Cf(e);return t.length==1&&t[0][2]?Ca(t[0][0],t[0][1]):function(o){return o===e||wf(o,e,t)}}function Sf(e,t){return e!=null&&t in Object(e)}function kf(e,t,o){t=wn(t,e);for(var i=-1,a=t.length,r=!1;++i<a;){var s=zt(t[i]);if(!(r=e!=null&&o(e,s)))break;e=e[s]}return r||++i!=a?r:(a=e==null?0:e.length,!!a&&fo(a)&&lo(s,a)&&(ge(e)||uo(e)))}function va(e,t){return e!=null&&kf(e,t,Sf)}var Ef=1,If=2;function Tf(e,t){return mo(e)&&wa(t)?Ca(zt(e),t):function(o){var i=Be(o,e);return i===void 0&&i===t?va(o,e):Sn(t,i,Ef|If)}}function Af(e){return function(t){return t==null?void 0:t[e]}}function Of(e){return function(t){return yo(t,e)}}function Mf(e){return mo(e)?Af(zt(e)):Of(e)}function xf(e){return typeof e=="function"?e:e==null?Ki:typeof e=="object"?ge(e)?Tf(e[0],e[1]):vf(e):Mf(e)}var So=function(){return Ce.Date.now()},Bf="Expected a function",Nf=Math.max,_f=Math.min;function Lf(e,t,o){var i,a,r,s,l,c,d=0,f=!1,u=!1,p=!0;if(typeof e!="function")throw new TypeError(Bf);t=Hi(t)||0,Fe(o)&&(f=!!o.leading,u="maxWait"in o,r=u?Nf(Hi(o.maxWait)||0,t):r,p="trailing"in o?!!o.trailing:p);function g(S){var E=i,O=a;return i=a=void 0,d=S,s=e.apply(O,E),s}function h(S){return d=S,l=setTimeout(b,t),f?g(S):s}function m(S){var E=S-c,O=S-d,x=t-E;return u?_f(x,r-O):x}function y(S){var E=S-c,O=S-d;return c===void 0||E>=t||E<0||u&&O>=r}function b(){var S=So();if(y(S))return C(S);l=setTimeout(b,m(S))}function C(S){return l=void 0,p&&i?g(S):(i=a=void 0,s)}function I(){l!==void 0&&clearTimeout(l),d=0,i=c=a=l=void 0}function k(){return l===void 0?s:C(So())}function v(){var S=So(),E=y(S);if(i=arguments,a=this,c=S,E){if(l===void 0)return h(c);if(u)return clearTimeout(l),l=setTimeout(b,t),g(c)}return l===void 0&&(l=setTimeout(b,t)),s}return v.cancel=I,v.flush=k,v}function Pf(e,t,o){var i=e==null?0:e.length;if(!i)return-1;var a=i-1;return Dl(e,xf(t),a)}function ko(e){for(var t=-1,o=e==null?0:e.length,i={};++t<o;){var a=e[t];i[a[0]]=a[1]}return i}function kn(e,t){return Sn(e,t)}function En(e){return e==null}function Sa(e){return e===void 0}function Vf(e,t,o,i){if(!Fe(e))return e;t=wn(t,e);for(var a=-1,r=t.length,s=r-1,l=e;l!=null&&++a<r;){var c=zt(t[a]),d=o;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(a!=s){var f=l[c];d=void 0,d===void 0&&(d=Fe(f)?f:lo(t[a+1])?[]:{})}Ul(l,c,d),l=l[c]}return e}function Rf(e,t,o){for(var i=-1,a=t.length,r={};++i<a;){var s=t[i],l=yo(e,s);o(l,s)&&Vf(r,wn(s,e),l)}return r}function Ff(e,t){return Rf(e,t,function(o,i){return va(e,i)})}var ka=vd(function(e,t){return e==null?{}:Ff(e,t)});const ze=e=>e===void 0,_e=e=>typeof e=="boolean",G=e=>typeof e=="number",Xe=e=>typeof Element>"u"?!1:e instanceof Element,jt=e=>En(e),Df=e=>me(e)?!Number.isNaN(Number(e)):!1,$f=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Ea=e=>Object.keys(e);class Ia extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Ta(e,t){throw new Ia(`[${e}] ${t}`)}function ne(e,t){if(process.env.NODE_ENV!=="production"){const o=me(e)?new Ia(`[${e}] ${t}`):e;console.warn(o)}}const zf="utils/dom/style",Aa=(e="")=>e.split(" ").filter(t=>!!t.trim()),Oa=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Eo=(e,t)=>{!e||!t.trim()||e.classList.add(...Aa(t))},Ht=(e,t)=>{!e||!t.trim()||e.classList.remove(...Aa(t))},mt=(e,t)=>{var o;if(!K||!e||!t)return"";let i=qs(t);i==="float"&&(i="cssFloat");try{const a=e.style[i];if(a)return a;const r=(o=document.defaultView)==null?void 0:o.getComputedStyle(e,"");return r?r[i]:""}catch{return e.style[i]}};function et(e,t="px"){if(!e)return"";if(G(e)||Df(e))return`${e}${t}`;if(me(e))return e;ne(zf,"binding value must be a string or number")}let In;const jf=e=>{var t;if(!K)return 0;if(In!==void 0)return In;const o=document.createElement("div");o.className=`${e}-scrollbar__wrap`,o.style.visibility="hidden",o.style.width="100px",o.style.position="absolute",o.style.top="-9999px",document.body.appendChild(o);const i=o.offsetWidth;o.style.overflow="scroll";const a=document.createElement("div");a.style.width="100%",o.appendChild(a);const r=a.offsetWidth;return(t=o.parentNode)==null||t.removeChild(o),In=i-r,In};function Hf(e,t){if(!K)return;if(!t){e.scrollTop=0;return}const o=[];let i=t.offsetParent;for(;i!==null&&e!==i&&e.contains(i);)o.push(i),i=i.offsetParent;const a=t.offsetTop+o.reduce((c,d)=>c+d.offsetTop,0),r=a+t.offsetHeight,s=e.scrollTop,l=s+e.clientHeight;a<s?e.scrollTop=a:r>l&&(e.scrollTop=r-e.clientHeight)}const Ma="__epPropKey",_=e=>e,Kf=e=>te(e)&&!!e[Ma],Tn=(e,t)=>{if(!te(e)||Kf(e))return e;const{values:o,required:i,default:a,type:r,validator:s}=e,c={type:r,required:!!i,validator:o||s?d=>{let f=!1,u=[];if(o&&(u=Array.from(o),Li(e,"default")&&u.push(a),f||(f=u.includes(d))),s&&(f||(f=s(d))),!f&&u.length>0){const p=[...new Set(u)].map(g=>JSON.stringify(g)).join(", ");n.warn(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${p}], got value ${JSON.stringify(d)}.`)}return f}:void 0,[Ma]:!0};return Li(e,"default")&&(c.default=a),c},R=e=>ko(Object.entries(e).map(([t,o])=>[t,Tn(o,t)])),gt=_([String,Object,Function]),Uf={Close:W.Close},Wf={validating:W.Loading,success:W.CircleCheck,error:W.CircleClose},oe=(e,t)=>{if(e.install=o=>{for(const i of[e,...Object.values(t??{})])o.component(i.name,i)},t)for(const[o,i]of Object.entries(t))e[o]=i;return e},qf=(e,t)=>(e.install=o=>{o.directive(t,e)},e),tt=e=>(e.install=Je,e),Gf=(...e)=>t=>{e.forEach(o=>{Q(o)?o(t):o.value=t})},Kt={tab:"Tab",enter:"Enter",space:"Space",esc:"Escape",delete:"Delete"},X="update:modelValue",Io="change",xa=["","default","small","large"];var An=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(An||{});const Jf=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),Ut=e=>e,yt=({from:e,replacement:t,scope:o,version:i,ref:a,type:r="API"},s)=>{n.watch(()=>n.unref(s),l=>{l&&ne(o,`[${r}] ${e} is about to be deprecated in version ${i}, please use ${t} instead.
|
|
5
|
+
**/process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const Je=()=>{},qs=Object.prototype.hasOwnProperty,Li=(e,t)=>qs.call(e,t),ee=Array.isArray,Q=e=>typeof e=="function",me=e=>typeof e=="string",te=e=>e!==null&&typeof e=="object",Gs=Object.prototype.toString,Js=e=>Gs.call(e),so=e=>Js(e).slice(8,-1),Pi=e=>{const t=Object.create(null);return o=>t[o]||(t[o]=e(o))},Ys=/-(\w)/g,Zs=Pi(e=>e.replace(Ys,(t,o)=>o?o.toUpperCase():"")),Qs=/\B([A-Z])/g,Xs=Pi(e=>e.replace(Qs,"-$1").toLowerCase());var Vi=typeof global=="object"&&global&&global.Object===Object&&global,el=typeof self=="object"&&self&&self.Object===Object&&self,Ce=Vi||el||Function("return this")(),ve=Ce.Symbol,Ri=Object.prototype,tl=Ri.hasOwnProperty,nl=Ri.toString,Rt=ve?ve.toStringTag:void 0;function ol(e){var t=tl.call(e,Rt),o=e[Rt];try{e[Rt]=void 0;var i=!0}catch{}var a=nl.call(e);return i&&(t?e[Rt]=o:delete e[Rt]),a}var il=Object.prototype,al=il.toString;function rl(e){return al.call(e)}var sl="[object Null]",ll="[object Undefined]",Di=ve?ve.toStringTag:void 0;function pt(e){return e==null?e===void 0?ll:sl:Di&&Di in Object(e)?ol(e):rl(e)}function ht(e){return e!=null&&typeof e=="object"}var cl="[object Symbol]";function mn(e){return typeof e=="symbol"||ht(e)&&pt(e)==cl}function dl(e,t){for(var o=-1,i=e==null?0:e.length,a=Array(i);++o<i;)a[o]=t(e[o],o,e);return a}var ge=Array.isArray,Fi=ve?ve.prototype:void 0,$i=Fi?Fi.toString:void 0;function zi(e){if(typeof e=="string")return e;if(ge(e))return dl(e,zi)+"";if(mn(e))return $i?$i.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var fl=/\s/;function ul(e){for(var t=e.length;t--&&fl.test(e.charAt(t)););return t}var pl=/^\s+/;function hl(e){return e&&e.slice(0,ul(e)+1).replace(pl,"")}function De(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ji=NaN,ml=/^[-+]0x[0-9a-f]+$/i,gl=/^0b[01]+$/i,yl=/^0o[0-7]+$/i,bl=parseInt;function Hi(e){if(typeof e=="number")return e;if(mn(e))return ji;if(De(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=De(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=hl(e);var o=gl.test(e);return o||yl.test(e)?bl(e.slice(2),o?2:8):ml.test(e)?ji:+e}function Ki(e){return e}var wl="[object AsyncFunction]",Cl="[object Function]",vl="[object GeneratorFunction]",Sl="[object Proxy]";function Ui(e){if(!De(e))return!1;var t=pt(e);return t==Cl||t==vl||t==wl||t==Sl}var lo=Ce["__core-js_shared__"],Wi=function(){var e=/[^.]+$/.exec(lo&&lo.keys&&lo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function kl(e){return!!Wi&&Wi in e}var El=Function.prototype,Il=El.toString;function Ye(e){if(e!=null){try{return Il.call(e)}catch{}try{return e+""}catch{}}return""}var Tl=/[\\^$.*+?()[\]{}|]/g,Al=/^\[object .+?Constructor\]$/,Ol=Function.prototype,Ml=Object.prototype,Bl=Ol.toString,xl=Ml.hasOwnProperty,Nl=RegExp("^"+Bl.call(xl).replace(Tl,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function _l(e){if(!De(e)||kl(e))return!1;var t=Ui(e)?Nl:Al;return t.test(Ye(e))}function Ll(e,t){return e==null?void 0:e[t]}function Ze(e,t){var o=Ll(e,t);return _l(o)?o:void 0}var co=Ze(Ce,"WeakMap");function Pl(e,t,o){switch(o.length){case 0:return e.call(t);case 1:return e.call(t,o[0]);case 2:return e.call(t,o[0],o[1]);case 3:return e.call(t,o[0],o[1],o[2])}return e.apply(t,o)}var Vl=800,Rl=16,Dl=Date.now;function Fl(e){var t=0,o=0;return function(){var i=Dl(),a=Rl-(i-o);if(o=i,a>0){if(++t>=Vl)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function $l(e){return function(){return e}}var gn=function(){try{var e=Ze(Object,"defineProperty");return e({},"",{}),e}catch{}}(),zl=gn?function(e,t){return gn(e,"toString",{configurable:!0,enumerable:!1,value:$l(t),writable:!0})}:Ki,jl=Fl(zl);function Hl(e,t,o,i){e.length;for(var a=o+1;a--;)if(t(e[a],a,e))return a;return-1}var Kl=9007199254740991,Ul=/^(?:0|[1-9]\d*)$/;function fo(e,t){var o=typeof e;return t=t??Kl,!!t&&(o=="number"||o!="symbol"&&Ul.test(e))&&e>-1&&e%1==0&&e<t}function Wl(e,t,o){t=="__proto__"&&gn?gn(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}function uo(e,t){return e===t||e!==e&&t!==t}var ql=Object.prototype,Gl=ql.hasOwnProperty;function Jl(e,t,o){var i=e[t];(!(Gl.call(e,t)&&uo(i,o))||o===void 0&&!(t in e))&&Wl(e,t,o)}var qi=Math.max;function Yl(e,t,o){return t=qi(t===void 0?e.length-1:t,0),function(){for(var i=arguments,a=-1,r=qi(i.length-t,0),s=Array(r);++a<r;)s[a]=i[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=i[a];return l[t]=o(s),Pl(e,this,l)}}var Zl=9007199254740991;function po(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Zl}function Ql(e){return e!=null&&po(e.length)&&!Ui(e)}var Xl=Object.prototype;function ec(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||Xl;return e===o}function tc(e,t){for(var o=-1,i=Array(e);++o<e;)i[o]=t(o);return i}var nc="[object Arguments]";function Gi(e){return ht(e)&&pt(e)==nc}var Ji=Object.prototype,oc=Ji.hasOwnProperty,ic=Ji.propertyIsEnumerable,ho=Gi(function(){return arguments}())?Gi:function(e){return ht(e)&&oc.call(e,"callee")&&!ic.call(e,"callee")};function ac(){return!1}var Yi=typeof z=="object"&&z&&!z.nodeType&&z,Zi=Yi&&typeof module=="object"&&module&&!module.nodeType&&module,rc=Zi&&Zi.exports===Yi,Qi=rc?Ce.Buffer:void 0,sc=Qi?Qi.isBuffer:void 0,mo=sc||ac,lc="[object Arguments]",cc="[object Array]",dc="[object Boolean]",fc="[object Date]",uc="[object Error]",pc="[object Function]",hc="[object Map]",mc="[object Number]",gc="[object Object]",yc="[object RegExp]",bc="[object Set]",wc="[object String]",Cc="[object WeakMap]",vc="[object ArrayBuffer]",Sc="[object DataView]",kc="[object Float32Array]",Ec="[object Float64Array]",Ic="[object Int8Array]",Tc="[object Int16Array]",Ac="[object Int32Array]",Oc="[object Uint8Array]",Mc="[object Uint8ClampedArray]",Bc="[object Uint16Array]",xc="[object Uint32Array]",H={};H[kc]=H[Ec]=H[Ic]=H[Tc]=H[Ac]=H[Oc]=H[Mc]=H[Bc]=H[xc]=!0,H[lc]=H[cc]=H[vc]=H[dc]=H[Sc]=H[fc]=H[uc]=H[pc]=H[hc]=H[mc]=H[gc]=H[yc]=H[bc]=H[wc]=H[Cc]=!1;function Nc(e){return ht(e)&&po(e.length)&&!!H[pt(e)]}function _c(e){return function(t){return e(t)}}var Xi=typeof z=="object"&&z&&!z.nodeType&&z,Dt=Xi&&typeof module=="object"&&module&&!module.nodeType&&module,Lc=Dt&&Dt.exports===Xi,go=Lc&&Vi.process,ea=function(){try{var e=Dt&&Dt.require&&Dt.require("util").types;return e||go&&go.binding&&go.binding("util")}catch{}}(),ta=ea&&ea.isTypedArray,na=ta?_c(ta):Nc,Pc=Object.prototype,Vc=Pc.hasOwnProperty;function Rc(e,t){var o=ge(e),i=!o&&ho(e),a=!o&&!i&&mo(e),r=!o&&!i&&!a&&na(e),s=o||i||a||r,l=s?tc(e.length,String):[],c=l.length;for(var d in e)Vc.call(e,d)&&!(s&&(d=="length"||a&&(d=="offset"||d=="parent")||r&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||fo(d,c)))&&l.push(d);return l}function Dc(e,t){return function(o){return e(t(o))}}var Fc=Dc(Object.keys,Object),$c=Object.prototype,zc=$c.hasOwnProperty;function jc(e){if(!ec(e))return Fc(e);var t=[];for(var o in Object(e))zc.call(e,o)&&o!="constructor"&&t.push(o);return t}function oa(e){return Ql(e)?Rc(e):jc(e)}var Hc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Kc=/^\w*$/;function yo(e,t){if(ge(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||mn(e)?!0:Kc.test(e)||!Hc.test(e)||t!=null&&e in Object(t)}var Ft=Ze(Object,"create");function Uc(){this.__data__=Ft?Ft(null):{},this.size=0}function Wc(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var qc="__lodash_hash_undefined__",Gc=Object.prototype,Jc=Gc.hasOwnProperty;function Yc(e){var t=this.__data__;if(Ft){var o=t[e];return o===qc?void 0:o}return Jc.call(t,e)?t[e]:void 0}var Zc=Object.prototype,Qc=Zc.hasOwnProperty;function Xc(e){var t=this.__data__;return Ft?t[e]!==void 0:Qc.call(t,e)}var ed="__lodash_hash_undefined__";function td(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=Ft&&t===void 0?ed:t,this}function Qe(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var i=e[t];this.set(i[0],i[1])}}Qe.prototype.clear=Uc,Qe.prototype.delete=Wc,Qe.prototype.get=Yc,Qe.prototype.has=Xc,Qe.prototype.set=td;function nd(){this.__data__=[],this.size=0}function yn(e,t){for(var o=e.length;o--;)if(uo(e[o][0],t))return o;return-1}var od=Array.prototype,id=od.splice;function ad(e){var t=this.__data__,o=yn(t,e);if(o<0)return!1;var i=t.length-1;return o==i?t.pop():id.call(t,o,1),--this.size,!0}function rd(e){var t=this.__data__,o=yn(t,e);return o<0?void 0:t[o][1]}function sd(e){return yn(this.__data__,e)>-1}function ld(e,t){var o=this.__data__,i=yn(o,e);return i<0?(++this.size,o.push([e,t])):o[i][1]=t,this}function Me(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var i=e[t];this.set(i[0],i[1])}}Me.prototype.clear=nd,Me.prototype.delete=ad,Me.prototype.get=rd,Me.prototype.has=sd,Me.prototype.set=ld;var $t=Ze(Ce,"Map");function cd(){this.size=0,this.__data__={hash:new Qe,map:new($t||Me),string:new Qe}}function dd(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function bn(e,t){var o=e.__data__;return dd(t)?o[typeof t=="string"?"string":"hash"]:o.map}function fd(e){var t=bn(this,e).delete(e);return this.size-=t?1:0,t}function ud(e){return bn(this,e).get(e)}function pd(e){return bn(this,e).has(e)}function hd(e,t){var o=bn(this,e),i=o.size;return o.set(e,t),this.size+=o.size==i?0:1,this}function Be(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var i=e[t];this.set(i[0],i[1])}}Be.prototype.clear=cd,Be.prototype.delete=fd,Be.prototype.get=ud,Be.prototype.has=pd,Be.prototype.set=hd;var md="Expected a function";function bo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(md);var o=function(){var i=arguments,a=t?t.apply(this,i):i[0],r=o.cache;if(r.has(a))return r.get(a);var s=e.apply(this,i);return o.cache=r.set(a,s)||r,s};return o.cache=new(bo.Cache||Be),o}bo.Cache=Be;var gd=500;function yd(e){var t=bo(e,function(i){return o.size===gd&&o.clear(),i}),o=t.cache;return t}var bd=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wd=/\\(\\)?/g,Cd=yd(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(bd,function(o,i,a,r){t.push(a?r.replace(wd,"$1"):i||o)}),t});function vd(e){return e==null?"":zi(e)}function wn(e,t){return ge(e)?e:yo(e,t)?[e]:Cd(vd(e))}function zt(e){if(typeof e=="string"||mn(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function wo(e,t){t=wn(t,e);for(var o=0,i=t.length;e!=null&&o<i;)e=e[zt(t[o++])];return o&&o==i?e:void 0}function xe(e,t,o){var i=e==null?void 0:wo(e,t);return i===void 0?o:i}function ia(e,t){for(var o=-1,i=t.length,a=e.length;++o<i;)e[a+o]=t[o];return e}var aa=ve?ve.isConcatSpreadable:void 0;function Sd(e){return ge(e)||ho(e)||!!(aa&&e&&e[aa])}function kd(e,t,o,i,a){var r=-1,s=e.length;for(o||(o=Sd),a||(a=[]);++r<s;){var l=e[r];o(l)?ia(a,l):a[a.length]=l}return a}function Ed(e){var t=e==null?0:e.length;return t?kd(e):[]}function Id(e){return jl(Yl(e,void 0,Ed),e+"")}function Fe(){if(!arguments.length)return[];var e=arguments[0];return ge(e)?e:[e]}function Td(){this.__data__=new Me,this.size=0}function Ad(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}function Od(e){return this.__data__.get(e)}function Md(e){return this.__data__.has(e)}var Bd=200;function xd(e,t){var o=this.__data__;if(o instanceof Me){var i=o.__data__;if(!$t||i.length<Bd-1)return i.push([e,t]),this.size=++o.size,this;o=this.__data__=new Be(i)}return o.set(e,t),this.size=o.size,this}function Ne(e){var t=this.__data__=new Me(e);this.size=t.size}Ne.prototype.clear=Td,Ne.prototype.delete=Ad,Ne.prototype.get=Od,Ne.prototype.has=Md,Ne.prototype.set=xd;function Nd(e,t){for(var o=-1,i=e==null?0:e.length,a=0,r=[];++o<i;){var s=e[o];t(s,o,e)&&(r[a++]=s)}return r}function _d(){return[]}var Ld=Object.prototype,Pd=Ld.propertyIsEnumerable,ra=Object.getOwnPropertySymbols,Vd=ra?function(e){return e==null?[]:(e=Object(e),Nd(ra(e),function(t){return Pd.call(e,t)}))}:_d;function Rd(e,t,o){var i=t(e);return ge(e)?i:ia(i,o(e))}function sa(e){return Rd(e,oa,Vd)}var Co=Ze(Ce,"DataView"),vo=Ze(Ce,"Promise"),So=Ze(Ce,"Set"),la="[object Map]",Dd="[object Object]",ca="[object Promise]",da="[object Set]",fa="[object WeakMap]",ua="[object DataView]",Fd=Ye(Co),$d=Ye($t),zd=Ye(vo),jd=Ye(So),Hd=Ye(co),$e=pt;(Co&&$e(new Co(new ArrayBuffer(1)))!=ua||$t&&$e(new $t)!=la||vo&&$e(vo.resolve())!=ca||So&&$e(new So)!=da||co&&$e(new co)!=fa)&&($e=function(e){var t=pt(e),o=t==Dd?e.constructor:void 0,i=o?Ye(o):"";if(i)switch(i){case Fd:return ua;case $d:return la;case zd:return ca;case jd:return da;case Hd:return fa}return t});var pa=Ce.Uint8Array,Kd="__lodash_hash_undefined__";function Ud(e){return this.__data__.set(e,Kd),this}function Wd(e){return this.__data__.has(e)}function Cn(e){var t=-1,o=e==null?0:e.length;for(this.__data__=new Be;++t<o;)this.add(e[t])}Cn.prototype.add=Cn.prototype.push=Ud,Cn.prototype.has=Wd;function qd(e,t){for(var o=-1,i=e==null?0:e.length;++o<i;)if(t(e[o],o,e))return!0;return!1}function Gd(e,t){return e.has(t)}var Jd=1,Yd=2;function ha(e,t,o,i,a,r){var s=o&Jd,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var d=r.get(e),f=r.get(t);if(d&&f)return d==t&&f==e;var u=-1,p=!0,g=o&Yd?new Cn:void 0;for(r.set(e,t),r.set(t,e);++u<l;){var h=e[u],m=t[u];if(i)var b=s?i(m,h,u,t,e,r):i(h,m,u,e,t,r);if(b!==void 0){if(b)continue;p=!1;break}if(g){if(!qd(t,function(y,v){if(!Gd(g,v)&&(h===y||a(h,y,o,i,r)))return g.push(v)})){p=!1;break}}else if(!(h===m||a(h,m,o,i,r))){p=!1;break}}return r.delete(e),r.delete(t),p}function Zd(e){var t=-1,o=Array(e.size);return e.forEach(function(i,a){o[++t]=[a,i]}),o}function Qd(e){var t=-1,o=Array(e.size);return e.forEach(function(i){o[++t]=i}),o}var Xd=1,ef=2,tf="[object Boolean]",nf="[object Date]",of="[object Error]",af="[object Map]",rf="[object Number]",sf="[object RegExp]",lf="[object Set]",cf="[object String]",df="[object Symbol]",ff="[object ArrayBuffer]",uf="[object DataView]",ma=ve?ve.prototype:void 0,ko=ma?ma.valueOf:void 0;function pf(e,t,o,i,a,r,s){switch(o){case uf:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ff:return!(e.byteLength!=t.byteLength||!r(new pa(e),new pa(t)));case tf:case nf:case rf:return uo(+e,+t);case of:return e.name==t.name&&e.message==t.message;case sf:case cf:return e==t+"";case af:var l=Zd;case lf:var c=i&Xd;if(l||(l=Qd),e.size!=t.size&&!c)return!1;var d=s.get(e);if(d)return d==t;i|=ef,s.set(e,t);var f=ha(l(e),l(t),i,a,r,s);return s.delete(e),f;case df:if(ko)return ko.call(e)==ko.call(t)}return!1}var hf=1,mf=Object.prototype,gf=mf.hasOwnProperty;function yf(e,t,o,i,a,r){var s=o&hf,l=sa(e),c=l.length,d=sa(t),f=d.length;if(c!=f&&!s)return!1;for(var u=c;u--;){var p=l[u];if(!(s?p in t:gf.call(t,p)))return!1}var g=r.get(e),h=r.get(t);if(g&&h)return g==t&&h==e;var m=!0;r.set(e,t),r.set(t,e);for(var b=s;++u<c;){p=l[u];var y=e[p],v=t[p];if(i)var T=s?i(v,y,p,t,e,r):i(y,v,p,e,t,r);if(!(T===void 0?y===v||a(y,v,o,i,r):T)){m=!1;break}b||(b=p=="constructor")}if(m&&!b){var S=e.constructor,w=t.constructor;S!=w&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof w=="function"&&w instanceof w)&&(m=!1)}return r.delete(e),r.delete(t),m}var bf=1,ga="[object Arguments]",ya="[object Array]",vn="[object Object]",wf=Object.prototype,ba=wf.hasOwnProperty;function Cf(e,t,o,i,a,r){var s=ge(e),l=ge(t),c=s?ya:$e(e),d=l?ya:$e(t);c=c==ga?vn:c,d=d==ga?vn:d;var f=c==vn,u=d==vn,p=c==d;if(p&&mo(e)){if(!mo(t))return!1;s=!0,f=!1}if(p&&!f)return r||(r=new Ne),s||na(e)?ha(e,t,o,i,a,r):pf(e,t,c,o,i,a,r);if(!(o&bf)){var g=f&&ba.call(e,"__wrapped__"),h=u&&ba.call(t,"__wrapped__");if(g||h){var m=g?e.value():e,b=h?t.value():t;return r||(r=new Ne),a(m,b,o,i,r)}}return p?(r||(r=new Ne),yf(e,t,o,i,a,r)):!1}function Sn(e,t,o,i,a){return e===t?!0:e==null||t==null||!ht(e)&&!ht(t)?e!==e&&t!==t:Cf(e,t,o,i,Sn,a)}var vf=1,Sf=2;function kf(e,t,o,i){var a=o.length,r=a;if(e==null)return!r;for(e=Object(e);a--;){var s=o[a];if(s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<r;){s=o[a];var l=s[0],c=e[l],d=s[1];if(s[2]){if(c===void 0&&!(l in e))return!1}else{var f=new Ne,u;if(!(u===void 0?Sn(d,c,vf|Sf,i,f):u))return!1}}return!0}function wa(e){return e===e&&!De(e)}function Ef(e){for(var t=oa(e),o=t.length;o--;){var i=t[o],a=e[i];t[o]=[i,a,wa(a)]}return t}function Ca(e,t){return function(o){return o==null?!1:o[e]===t&&(t!==void 0||e in Object(o))}}function If(e){var t=Ef(e);return t.length==1&&t[0][2]?Ca(t[0][0],t[0][1]):function(o){return o===e||kf(o,e,t)}}function Tf(e,t){return e!=null&&t in Object(e)}function Af(e,t,o){t=wn(t,e);for(var i=-1,a=t.length,r=!1;++i<a;){var s=zt(t[i]);if(!(r=e!=null&&o(e,s)))break;e=e[s]}return r||++i!=a?r:(a=e==null?0:e.length,!!a&&po(a)&&fo(s,a)&&(ge(e)||ho(e)))}function va(e,t){return e!=null&&Af(e,t,Tf)}var Of=1,Mf=2;function Bf(e,t){return yo(e)&&wa(t)?Ca(zt(e),t):function(o){var i=xe(o,e);return i===void 0&&i===t?va(o,e):Sn(t,i,Of|Mf)}}function xf(e){return function(t){return t==null?void 0:t[e]}}function Nf(e){return function(t){return wo(t,e)}}function _f(e){return yo(e)?xf(zt(e)):Nf(e)}function Lf(e){return typeof e=="function"?e:e==null?Ki:typeof e=="object"?ge(e)?Bf(e[0],e[1]):If(e):_f(e)}var Eo=function(){return Ce.Date.now()},Pf="Expected a function",Vf=Math.max,Rf=Math.min;function Df(e,t,o){var i,a,r,s,l,c,d=0,f=!1,u=!1,p=!0;if(typeof e!="function")throw new TypeError(Pf);t=Hi(t)||0,De(o)&&(f=!!o.leading,u="maxWait"in o,r=u?Vf(Hi(o.maxWait)||0,t):r,p="trailing"in o?!!o.trailing:p);function g(k){var E=i,O=a;return i=a=void 0,d=k,s=e.apply(O,E),s}function h(k){return d=k,l=setTimeout(y,t),f?g(k):s}function m(k){var E=k-c,O=k-d,B=t-E;return u?Rf(B,r-O):B}function b(k){var E=k-c,O=k-d;return c===void 0||E>=t||E<0||u&&O>=r}function y(){var k=Eo();if(b(k))return v(k);l=setTimeout(y,m(k))}function v(k){return l=void 0,p&&i?g(k):(i=a=void 0,s)}function T(){l!==void 0&&clearTimeout(l),d=0,i=c=a=l=void 0}function S(){return l===void 0?s:v(Eo())}function w(){var k=Eo(),E=b(k);if(i=arguments,a=this,c=k,E){if(l===void 0)return h(c);if(u)return clearTimeout(l),l=setTimeout(y,t),g(c)}return l===void 0&&(l=setTimeout(y,t)),s}return w.cancel=T,w.flush=S,w}function Ff(e,t,o){var i=e==null?0:e.length;if(!i)return-1;var a=i-1;return Hl(e,Lf(t),a)}function Io(e){for(var t=-1,o=e==null?0:e.length,i={};++t<o;){var a=e[t];i[a[0]]=a[1]}return i}function kn(e,t){return Sn(e,t)}function En(e){return e==null}function Sa(e){return e===void 0}function $f(e,t,o,i){if(!De(e))return e;t=wn(t,e);for(var a=-1,r=t.length,s=r-1,l=e;l!=null&&++a<r;){var c=zt(t[a]),d=o;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(a!=s){var f=l[c];d=void 0,d===void 0&&(d=De(f)?f:fo(t[a+1])?[]:{})}Jl(l,c,d),l=l[c]}return e}function zf(e,t,o){for(var i=-1,a=t.length,r={};++i<a;){var s=t[i],l=wo(e,s);o(l,s)&&$f(r,wn(s,e),l)}return r}function jf(e,t){return zf(e,t,function(o,i){return va(e,i)})}var ka=Id(function(e,t){return e==null?{}:jf(e,t)});const ze=e=>e===void 0,_e=e=>typeof e=="boolean",G=e=>typeof e=="number",Xe=e=>typeof Element>"u"?!1:e instanceof Element,jt=e=>En(e),Hf=e=>me(e)?!Number.isNaN(Number(e)):!1,Kf=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Ea=e=>Object.keys(e);class Ia extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Ta(e,t){throw new Ia(`[${e}] ${t}`)}function ne(e,t){if(process.env.NODE_ENV!=="production"){const o=me(e)?new Ia(`[${e}] ${t}`):e;console.warn(o)}}const Uf="utils/dom/style",Aa=(e="")=>e.split(" ").filter(t=>!!t.trim()),Oa=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},To=(e,t)=>{!e||!t.trim()||e.classList.add(...Aa(t))},Ht=(e,t)=>{!e||!t.trim()||e.classList.remove(...Aa(t))},mt=(e,t)=>{var o;if(!K||!e||!t)return"";let i=Zs(t);i==="float"&&(i="cssFloat");try{const a=e.style[i];if(a)return a;const r=(o=document.defaultView)==null?void 0:o.getComputedStyle(e,"");return r?r[i]:""}catch{return e.style[i]}};function et(e,t="px"){if(!e)return"";if(G(e)||Hf(e))return`${e}${t}`;if(me(e))return e;ne(Uf,"binding value must be a string or number")}let In;const Wf=e=>{var t;if(!K)return 0;if(In!==void 0)return In;const o=document.createElement("div");o.className=`${e}-scrollbar__wrap`,o.style.visibility="hidden",o.style.width="100px",o.style.position="absolute",o.style.top="-9999px",document.body.appendChild(o);const i=o.offsetWidth;o.style.overflow="scroll";const a=document.createElement("div");a.style.width="100%",o.appendChild(a);const r=a.offsetWidth;return(t=o.parentNode)==null||t.removeChild(o),In=i-r,In};function qf(e,t){if(!K)return;if(!t){e.scrollTop=0;return}const o=[];let i=t.offsetParent;for(;i!==null&&e!==i&&e.contains(i);)o.push(i),i=i.offsetParent;const a=t.offsetTop+o.reduce((c,d)=>c+d.offsetTop,0),r=a+t.offsetHeight,s=e.scrollTop,l=s+e.clientHeight;a<s?e.scrollTop=a:r>l&&(e.scrollTop=r-e.clientHeight)}const Ma="__epPropKey",_=e=>e,Gf=e=>te(e)&&!!e[Ma],Tn=(e,t)=>{if(!te(e)||Gf(e))return e;const{values:o,required:i,default:a,type:r,validator:s}=e,c={type:r,required:!!i,validator:o||s?d=>{let f=!1,u=[];if(o&&(u=Array.from(o),Li(e,"default")&&u.push(a),f||(f=u.includes(d))),s&&(f||(f=s(d))),!f&&u.length>0){const p=[...new Set(u)].map(g=>JSON.stringify(g)).join(", ");n.warn(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${p}], got value ${JSON.stringify(d)}.`)}return f}:void 0,[Ma]:!0};return Li(e,"default")&&(c.default=a),c},R=e=>Io(Object.entries(e).map(([t,o])=>[t,Tn(o,t)])),gt=_([String,Object,Function]),Jf={Close:W.Close},Yf={validating:W.Loading,success:W.CircleCheck,error:W.CircleClose},oe=(e,t)=>{if(e.install=o=>{for(const i of[e,...Object.values(t??{})])o.component(i.name,i)},t)for(const[o,i]of Object.entries(t))e[o]=i;return e},Zf=(e,t)=>(e.install=o=>{o.directive(t,e)},e),tt=e=>(e.install=Je,e),Qf=(...e)=>t=>{e.forEach(o=>{Q(o)?o(t):o.value=t})},Kt={tab:"Tab",enter:"Enter",space:"Space",esc:"Escape",delete:"Delete"},X="update:modelValue",Ao="change",Ba=["","default","small","large"];var An=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(An||{});const Xf=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),Ut=e=>e,yt=({from:e,replacement:t,scope:o,version:i,ref:a,type:r="API"},s)=>{n.watch(()=>n.unref(s),l=>{l&&ne(o,`[${r}] ${e} is about to be deprecated in version ${i}, please use ${t} instead.
|
|
6
6
|
For more detail, please visit: ${a}
|
|
7
|
-
`)},{immediate:!0})},Yf=(e,t,o,i)=>{let a={offsetX:0,offsetY:0};const r=d=>{const f=d.clientX,u=d.clientY,{offsetX:p,offsetY:g}=a,h=e.value.getBoundingClientRect(),m=h.left,y=h.top,b=h.width,C=h.height,I=document.documentElement.clientWidth,k=document.documentElement.clientHeight,v=-m+p,S=-y+g,E=I-m-b+p,O=k-y-C+g,x=B=>{let T=p+B.clientX-f,L=g+B.clientY-u;i!=null&&i.value||(T=Math.min(Math.max(T,v),E),L=Math.min(Math.max(L,S),O)),a={offsetX:T,offsetY:L},e.value&&(e.value.style.transform=`translate(${et(T)}, ${et(L)})`)},N=()=>{document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",N)};document.addEventListener("mousemove",x),document.addEventListener("mouseup",N)},s=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",r)},l=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",r)},c=()=>{a={offsetX:0,offsetY:0},e.value&&(e.value.style.transform="none")};return n.onMounted(()=>{n.watchEffect(()=>{o.value?s():l()})}),n.onBeforeUnmount(()=>{l()}),{resetPosition:c}};var Zf={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const Qf=e=>(t,o)=>Xf(t,o,n.unref(e)),Xf=(e,t,o)=>Be(o,e,e).replace(/\{(\w+)\}/g,(i,a)=>{var r;return`${(r=t==null?void 0:t[a])!=null?r:`{${a}}`}`}),eu=e=>{const t=n.computed(()=>n.unref(e).name),o=n.isRef(e)?e:n.ref(e);return{lang:t,locale:o,t:Qf(e)}},Ba=Symbol("localeContextKey"),To=e=>{const t=e||n.inject(Ba,n.ref());return eu(n.computed(()=>t.value||Zf))},Wt="el",tu="is-",nt=(e,t,o,i,a)=>{let r=`${e}-${t}`;return o&&(r+=`-${o}`),i&&(r+=`__${i}`),a&&(r+=`--${a}`),r},Na=Symbol("namespaceContextKey"),Ao=e=>{const t=e||(n.getCurrentInstance()?n.inject(Na,n.ref(Wt)):n.ref(Wt));return n.computed(()=>n.unref(t)||Wt)},D=(e,t)=>{const o=Ao(t);return{namespace:o,b:(m="")=>nt(o.value,e,m,"",""),e:m=>m?nt(o.value,e,"",m,""):"",m:m=>m?nt(o.value,e,"","",m):"",be:(m,y)=>m&&y?nt(o.value,e,m,y,""):"",em:(m,y)=>m&&y?nt(o.value,e,"",m,y):"",bm:(m,y)=>m&&y?nt(o.value,e,m,"",y):"",bem:(m,y,b)=>m&&y&&b?nt(o.value,e,m,y,b):"",is:(m,...y)=>{const b=y.length>=1?y[0]:!0;return m&&b?`${tu}${m}`:""},cssVar:m=>{const y={};for(const b in m)m[b]&&(y[`--${o.value}-${b}`]=m[b]);return y},cssVarName:m=>`--${o.value}-${m}`,cssVarBlock:m=>{const y={};for(const b in m)m[b]&&(y[`--${o.value}-${e}-${b}`]=m[b]);return y},cssVarBlockName:m=>`--${o.value}-${e}-${m}`}},nu=(e,t={})=>{n.isRef(e)||Ta("[useLockscreen]","You need to pass a ref param to this function");const o=t.ns||D("popup"),i=n.computed(()=>o.bm("parent","hidden"));if(!K||Oa(document.body,i.value))return;let a=0,r=!1,s="0";const l=()=>{setTimeout(()=>{Ht(document==null?void 0:document.body,i.value),r&&document&&(document.body.style.width=s)},200)};n.watch(e,c=>{if(!c){l();return}r=!Oa(document.body,i.value),r&&(s=document.body.style.width),a=jf(o.namespace.value);const d=document.documentElement.clientHeight<document.body.scrollHeight,f=mt(document.body,"overflowY");a>0&&(d||f==="scroll")&&r&&(document.body.style.width=`calc(100% - ${a}px)`),Eo(document.body,i.value)}),n.onScopeDispose(()=>l())},ou=Tn({type:_(Boolean),default:null}),iu=Tn({type:_(Function)}),au=e=>{const t=`update:${e}`,o=`onUpdate:${e}`,i=[t],a={[e]:ou,[o]:iu};return{useModelToggle:({indicator:s,toggleReason:l,shouldHideWhenRouteChanges:c,shouldProceed:d,onShow:f,onHide:u})=>{const p=n.getCurrentInstance(),{emit:g}=p,h=p.props,m=n.computed(()=>Q(h[o])),y=n.computed(()=>h[e]===null),b=E=>{s.value!==!0&&(s.value=!0,l&&(l.value=E),Q(f)&&f(E))},C=E=>{s.value!==!1&&(s.value=!1,l&&(l.value=E),Q(u)&&u(E))},I=E=>{if(h.disabled===!0||Q(d)&&!d())return;const O=m.value&&K;O&&g(t,!0),(y.value||!O)&&b(E)},k=E=>{if(h.disabled===!0||!K)return;const O=m.value&&K;O&&g(t,!1),(y.value||!O)&&C(E)},v=E=>{_e(E)&&(h.disabled&&E?m.value&&g(t,!1):s.value!==E&&(E?b():C()))},S=()=>{s.value?k():I()};return n.watch(()=>h[e],v),c&&p.appContext.config.globalProperties.$route!==void 0&&n.watch(()=>({...p.proxy.$route}),()=>{c.value&&s.value&&k()}),n.onMounted(()=>{v(h[e])}),{hide:k,show:I,toggle:S,hasUpdateHandler:m}},useModelToggleProps:a,useModelToggleEmits:i}},_a=e=>{const t=n.getCurrentInstance();return n.computed(()=>{var o,i;return(i=(o=t==null?void 0:t.proxy)==null?void 0:o.$props)==null?void 0:i[e]})};var ie="top",de="bottom",fe="right",ae="left",Oo="auto",qt=[ie,de,fe,ae],bt="start",Gt="end",ru="clippingParents",La="viewport",Jt="popper",su="reference",Pa=qt.reduce(function(e,t){return e.concat([t+"-"+bt,t+"-"+Gt])},[]),On=[].concat(qt,[Oo]).reduce(function(e,t){return e.concat([t,t+"-"+bt,t+"-"+Gt])},[]),lu="beforeRead",cu="read",du="afterRead",fu="beforeMain",uu="main",pu="afterMain",hu="beforeWrite",mu="write",gu="afterWrite",yu=[lu,cu,du,fu,uu,pu,hu,mu,gu];function Se(e){return e?(e.nodeName||"").toLowerCase():null}function ye(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function wt(e){var t=ye(e).Element;return e instanceof t||e instanceof Element}function ue(e){var t=ye(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Mo(e){if(typeof ShadowRoot>"u")return!1;var t=ye(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function bu(e){var t=e.state;Object.keys(t.elements).forEach(function(o){var i=t.styles[o]||{},a=t.attributes[o]||{},r=t.elements[o];!ue(r)||!Se(r)||(Object.assign(r.style,i),Object.keys(a).forEach(function(s){var l=a[s];l===!1?r.removeAttribute(s):r.setAttribute(s,l===!0?"":l)}))})}function wu(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach(function(i){var a=t.elements[i],r=t.attributes[i]||{},s=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:o[i]),l=s.reduce(function(c,d){return c[d]="",c},{});!ue(a)||!Se(a)||(Object.assign(a.style,l),Object.keys(r).forEach(function(c){a.removeAttribute(c)}))})}}var Va={name:"applyStyles",enabled:!0,phase:"write",fn:bu,effect:wu,requires:["computeStyles"]};function ke(e){return e.split("-")[0]}var ot=Math.max,Mn=Math.min,Ct=Math.round;function vt(e,t){t===void 0&&(t=!1);var o=e.getBoundingClientRect(),i=1,a=1;if(ue(e)&&t){var r=e.offsetHeight,s=e.offsetWidth;s>0&&(i=Ct(o.width)/s||1),r>0&&(a=Ct(o.height)/r||1)}return{width:o.width/i,height:o.height/a,top:o.top/a,right:o.right/i,bottom:o.bottom/a,left:o.left/i,x:o.left/i,y:o.top/a}}function xo(e){var t=vt(e),o=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:i}}function Ra(e,t){var o=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(o&&Mo(o)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Le(e){return ye(e).getComputedStyle(e)}function Cu(e){return["table","td","th"].indexOf(Se(e))>=0}function je(e){return((wt(e)?e.ownerDocument:e.document)||window.document).documentElement}function xn(e){return Se(e)==="html"?e:e.assignedSlot||e.parentNode||(Mo(e)?e.host:null)||je(e)}function Fa(e){return!ue(e)||Le(e).position==="fixed"?null:e.offsetParent}function vu(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,o=navigator.userAgent.indexOf("Trident")!==-1;if(o&&ue(e)){var i=Le(e);if(i.position==="fixed")return null}var a=xn(e);for(Mo(a)&&(a=a.host);ue(a)&&["html","body"].indexOf(Se(a))<0;){var r=Le(a);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||t&&r.willChange==="filter"||t&&r.filter&&r.filter!=="none")return a;a=a.parentNode}return null}function Yt(e){for(var t=ye(e),o=Fa(e);o&&Cu(o)&&Le(o).position==="static";)o=Fa(o);return o&&(Se(o)==="html"||Se(o)==="body"&&Le(o).position==="static")?t:o||vu(e)||t}function Bo(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Zt(e,t,o){return ot(e,Mn(t,o))}function Su(e,t,o){var i=Zt(e,t,o);return i>o?o:i}function Da(){return{top:0,right:0,bottom:0,left:0}}function $a(e){return Object.assign({},Da(),e)}function za(e,t){return t.reduce(function(o,i){return o[i]=e,o},{})}var ku=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,$a(typeof e!="number"?e:za(e,qt))};function Eu(e){var t,o=e.state,i=e.name,a=e.options,r=o.elements.arrow,s=o.modifiersData.popperOffsets,l=ke(o.placement),c=Bo(l),d=[ae,fe].indexOf(l)>=0,f=d?"height":"width";if(!(!r||!s)){var u=ku(a.padding,o),p=xo(r),g=c==="y"?ie:ae,h=c==="y"?de:fe,m=o.rects.reference[f]+o.rects.reference[c]-s[c]-o.rects.popper[f],y=s[c]-o.rects.reference[c],b=Yt(r),C=b?c==="y"?b.clientHeight||0:b.clientWidth||0:0,I=m/2-y/2,k=u[g],v=C-p[f]-u[h],S=C/2-p[f]/2+I,E=Zt(k,S,v),O=c;o.modifiersData[i]=(t={},t[O]=E,t.centerOffset=E-S,t)}}function Iu(e){var t=e.state,o=e.options,i=o.element,a=i===void 0?"[data-popper-arrow]":i;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||!Ra(t.elements.popper,a)||(t.elements.arrow=a))}var Tu={name:"arrow",enabled:!0,phase:"main",fn:Eu,effect:Iu,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function St(e){return e.split("-")[1]}var Au={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ou(e){var t=e.x,o=e.y,i=window,a=i.devicePixelRatio||1;return{x:Ct(t*a)/a||0,y:Ct(o*a)/a||0}}function ja(e){var t,o=e.popper,i=e.popperRect,a=e.placement,r=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,d=e.adaptive,f=e.roundOffsets,u=e.isFixed,p=s.x,g=p===void 0?0:p,h=s.y,m=h===void 0?0:h,y=typeof f=="function"?f({x:g,y:m}):{x:g,y:m};g=y.x,m=y.y;var b=s.hasOwnProperty("x"),C=s.hasOwnProperty("y"),I=ae,k=ie,v=window;if(d){var S=Yt(o),E="clientHeight",O="clientWidth";if(S===ye(o)&&(S=je(o),Le(S).position!=="static"&&l==="absolute"&&(E="scrollHeight",O="scrollWidth")),S=S,a===ie||(a===ae||a===fe)&&r===Gt){k=de;var x=u&&S===v&&v.visualViewport?v.visualViewport.height:S[E];m-=x-i.height,m*=c?1:-1}if(a===ae||(a===ie||a===de)&&r===Gt){I=fe;var N=u&&S===v&&v.visualViewport?v.visualViewport.width:S[O];g-=N-i.width,g*=c?1:-1}}var B=Object.assign({position:l},d&&Au),T=f===!0?Ou({x:g,y:m}):{x:g,y:m};if(g=T.x,m=T.y,c){var L;return Object.assign({},B,(L={},L[k]=C?"0":"",L[I]=b?"0":"",L.transform=(v.devicePixelRatio||1)<=1?"translate("+g+"px, "+m+"px)":"translate3d("+g+"px, "+m+"px, 0)",L))}return Object.assign({},B,(t={},t[k]=C?m+"px":"",t[I]=b?g+"px":"",t.transform="",t))}function Mu(e){var t=e.state,o=e.options,i=o.gpuAcceleration,a=i===void 0?!0:i,r=o.adaptive,s=r===void 0?!0:r,l=o.roundOffsets,c=l===void 0?!0:l,d={placement:ke(t.placement),variation:St(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,ja(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ja(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Ha={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Mu,data:{}},Bn={passive:!0};function xu(e){var t=e.state,o=e.instance,i=e.options,a=i.scroll,r=a===void 0?!0:a,s=i.resize,l=s===void 0?!0:s,c=ye(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&d.forEach(function(f){f.addEventListener("scroll",o.update,Bn)}),l&&c.addEventListener("resize",o.update,Bn),function(){r&&d.forEach(function(f){f.removeEventListener("scroll",o.update,Bn)}),l&&c.removeEventListener("resize",o.update,Bn)}}var Ka={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:xu,data:{}},Bu={left:"right",right:"left",bottom:"top",top:"bottom"};function Nn(e){return e.replace(/left|right|bottom|top/g,function(t){return Bu[t]})}var Nu={start:"end",end:"start"};function Ua(e){return e.replace(/start|end/g,function(t){return Nu[t]})}function No(e){var t=ye(e),o=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:o,scrollTop:i}}function _o(e){return vt(je(e)).left+No(e).scrollLeft}function _u(e){var t=ye(e),o=je(e),i=t.visualViewport,a=o.clientWidth,r=o.clientHeight,s=0,l=0;return i&&(a=i.width,r=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=i.offsetLeft,l=i.offsetTop)),{width:a,height:r,x:s+_o(e),y:l}}function Lu(e){var t,o=je(e),i=No(e),a=(t=e.ownerDocument)==null?void 0:t.body,r=ot(o.scrollWidth,o.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=ot(o.scrollHeight,o.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),l=-i.scrollLeft+_o(e),c=-i.scrollTop;return Le(a||o).direction==="rtl"&&(l+=ot(o.clientWidth,a?a.clientWidth:0)-r),{width:r,height:s,x:l,y:c}}function Lo(e){var t=Le(e),o=t.overflow,i=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+a+i)}function Wa(e){return["html","body","#document"].indexOf(Se(e))>=0?e.ownerDocument.body:ue(e)&&Lo(e)?e:Wa(xn(e))}function Qt(e,t){var o;t===void 0&&(t=[]);var i=Wa(e),a=i===((o=e.ownerDocument)==null?void 0:o.body),r=ye(i),s=a?[r].concat(r.visualViewport||[],Lo(i)?i:[]):i,l=t.concat(s);return a?l:l.concat(Qt(xn(s)))}function Po(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Pu(e){var t=vt(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 qa(e,t){return t===La?Po(_u(e)):wt(t)?Pu(t):Po(Lu(je(e)))}function Vu(e){var t=Qt(xn(e)),o=["absolute","fixed"].indexOf(Le(e).position)>=0,i=o&&ue(e)?Yt(e):e;return wt(i)?t.filter(function(a){return wt(a)&&Ra(a,i)&&Se(a)!=="body"}):[]}function Ru(e,t,o){var i=t==="clippingParents"?Vu(e):[].concat(t),a=[].concat(i,[o]),r=a[0],s=a.reduce(function(l,c){var d=qa(e,c);return l.top=ot(d.top,l.top),l.right=Mn(d.right,l.right),l.bottom=Mn(d.bottom,l.bottom),l.left=ot(d.left,l.left),l},qa(e,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Ga(e){var t=e.reference,o=e.element,i=e.placement,a=i?ke(i):null,r=i?St(i):null,s=t.x+t.width/2-o.width/2,l=t.y+t.height/2-o.height/2,c;switch(a){case ie:c={x:s,y:t.y-o.height};break;case de:c={x:s,y:t.y+t.height};break;case fe:c={x:t.x+t.width,y:l};break;case ae:c={x:t.x-o.width,y:l};break;default:c={x:t.x,y:t.y}}var d=a?Bo(a):null;if(d!=null){var f=d==="y"?"height":"width";switch(r){case bt:c[d]=c[d]-(t[f]/2-o[f]/2);break;case Gt:c[d]=c[d]+(t[f]/2-o[f]/2);break}}return c}function Xt(e,t){t===void 0&&(t={});var o=t,i=o.placement,a=i===void 0?e.placement:i,r=o.boundary,s=r===void 0?ru:r,l=o.rootBoundary,c=l===void 0?La:l,d=o.elementContext,f=d===void 0?Jt:d,u=o.altBoundary,p=u===void 0?!1:u,g=o.padding,h=g===void 0?0:g,m=$a(typeof h!="number"?h:za(h,qt)),y=f===Jt?su:Jt,b=e.rects.popper,C=e.elements[p?y:f],I=Ru(wt(C)?C:C.contextElement||je(e.elements.popper),s,c),k=vt(e.elements.reference),v=Ga({reference:k,element:b,placement:a}),S=Po(Object.assign({},b,v)),E=f===Jt?S:k,O={top:I.top-E.top+m.top,bottom:E.bottom-I.bottom+m.bottom,left:I.left-E.left+m.left,right:E.right-I.right+m.right},x=e.modifiersData.offset;if(f===Jt&&x){var N=x[a];Object.keys(O).forEach(function(B){var T=[fe,de].indexOf(B)>=0?1:-1,L=[ie,de].indexOf(B)>=0?"y":"x";O[B]+=N[L]*T})}return O}function Fu(e,t){t===void 0&&(t={});var o=t,i=o.placement,a=o.boundary,r=o.rootBoundary,s=o.padding,l=o.flipVariations,c=o.allowedAutoPlacements,d=c===void 0?On:c,f=St(i),u=f?l?Pa:Pa.filter(function(h){return St(h)===f}):qt,p=u.filter(function(h){return d.indexOf(h)>=0});p.length===0&&(p=u);var g=p.reduce(function(h,m){return h[m]=Xt(e,{placement:m,boundary:a,rootBoundary:r,padding:s})[ke(m)],h},{});return Object.keys(g).sort(function(h,m){return g[h]-g[m]})}function Du(e){if(ke(e)===Oo)return[];var t=Nn(e);return[Ua(e),t,Ua(t)]}function $u(e){var t=e.state,o=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var a=o.mainAxis,r=a===void 0?!0:a,s=o.altAxis,l=s===void 0?!0:s,c=o.fallbackPlacements,d=o.padding,f=o.boundary,u=o.rootBoundary,p=o.altBoundary,g=o.flipVariations,h=g===void 0?!0:g,m=o.allowedAutoPlacements,y=t.options.placement,b=ke(y),C=b===y,I=c||(C||!h?[Nn(y)]:Du(y)),k=[y].concat(I).reduce(function(Ie,re){return Ie.concat(ke(re)===Oo?Fu(t,{placement:re,boundary:f,rootBoundary:u,padding:d,flipVariations:h,allowedAutoPlacements:m}):re)},[]),v=t.rects.reference,S=t.rects.popper,E=new Map,O=!0,x=k[0],N=0;N<k.length;N++){var B=k[N],T=ke(B),L=St(B)===bt,q=[ie,de].indexOf(T)>=0,V=q?"width":"height",M=Xt(t,{placement:B,boundary:f,rootBoundary:u,altBoundary:p,padding:d}),$=q?L?fe:ae:L?de:ie;v[V]>S[V]&&($=Nn($));var pe=Nn($),Y=[];if(r&&Y.push(M[T]<=0),l&&Y.push(M[$]<=0,M[pe]<=0),Y.every(function(Ie){return Ie})){x=B,O=!1;break}E.set(B,Y)}if(O)for(var Z=h?3:1,ce=function(Ie){var re=k.find(function(U){var lt=E.get(U);if(lt)return lt.slice(0,Ie).every(function(qe){return qe})});if(re)return x=re,"break"},Ee=Z;Ee>0;Ee--){var Bt=ce(Ee);if(Bt==="break")break}t.placement!==x&&(t.modifiersData[i]._skip=!0,t.placement=x,t.reset=!0)}}var zu={name:"flip",enabled:!0,phase:"main",fn:$u,requiresIfExists:["offset"],data:{_skip:!1}};function Ja(e,t,o){return o===void 0&&(o={x:0,y:0}),{top:e.top-t.height-o.y,right:e.right-t.width+o.x,bottom:e.bottom-t.height+o.y,left:e.left-t.width-o.x}}function Ya(e){return[ie,fe,de,ae].some(function(t){return e[t]>=0})}function ju(e){var t=e.state,o=e.name,i=t.rects.reference,a=t.rects.popper,r=t.modifiersData.preventOverflow,s=Xt(t,{elementContext:"reference"}),l=Xt(t,{altBoundary:!0}),c=Ja(s,i),d=Ja(l,a,r),f=Ya(c),u=Ya(d);t.modifiersData[o]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:f,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":u})}var Hu={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ju};function Ku(e,t,o){var i=ke(e),a=[ae,ie].indexOf(i)>=0?-1:1,r=typeof o=="function"?o(Object.assign({},t,{placement:e})):o,s=r[0],l=r[1];return s=s||0,l=(l||0)*a,[ae,fe].indexOf(i)>=0?{x:l,y:s}:{x:s,y:l}}function Uu(e){var t=e.state,o=e.options,i=e.name,a=o.offset,r=a===void 0?[0,0]:a,s=On.reduce(function(f,u){return f[u]=Ku(u,t.rects,r),f},{}),l=s[t.placement],c=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[i]=s}var Wu={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Uu};function qu(e){var t=e.state,o=e.name;t.modifiersData[o]=Ga({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var Za={name:"popperOffsets",enabled:!0,phase:"read",fn:qu,data:{}};function Gu(e){return e==="x"?"y":"x"}function Ju(e){var t=e.state,o=e.options,i=e.name,a=o.mainAxis,r=a===void 0?!0:a,s=o.altAxis,l=s===void 0?!1:s,c=o.boundary,d=o.rootBoundary,f=o.altBoundary,u=o.padding,p=o.tether,g=p===void 0?!0:p,h=o.tetherOffset,m=h===void 0?0:h,y=Xt(t,{boundary:c,rootBoundary:d,padding:u,altBoundary:f}),b=ke(t.placement),C=St(t.placement),I=!C,k=Bo(b),v=Gu(k),S=t.modifiersData.popperOffsets,E=t.rects.reference,O=t.rects.popper,x=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,N=typeof x=="number"?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),B=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(S){if(r){var L,q=k==="y"?ie:ae,V=k==="y"?de:fe,M=k==="y"?"height":"width",$=S[k],pe=$+y[q],Y=$-y[V],Z=g?-O[M]/2:0,ce=C===bt?E[M]:O[M],Ee=C===bt?-O[M]:-E[M],Bt=t.elements.arrow,Ie=g&&Bt?xo(Bt):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Da(),U=re[q],lt=re[V],qe=Zt(0,E[M],Ie[M]),Jn=I?E[M]/2-Z-qe-U-N.mainAxis:ce-qe-U-N.mainAxis,Yn=I?-E[M]/2+Z+qe+lt+N.mainAxis:Ee+qe+lt+N.mainAxis,rn=t.elements.arrow&&Yt(t.elements.arrow),mi=rn?k==="y"?rn.clientTop||0:rn.clientLeft||0:0,Zn=(L=B==null?void 0:B[k])!=null?L:0,gi=$+Jn-Zn-mi,yi=$+Yn-Zn,ct=Zt(g?Mn(pe,gi):pe,$,g?ot(Y,yi):Y);S[k]=ct,T[k]=ct-$}if(l){var sn,Nt=k==="x"?ie:ae,Qn=k==="x"?de:fe,Ve=S[v],_t=v==="y"?"height":"width",ln=Ve+y[Nt],Xn=Ve-y[Qn],dt=[ie,ae].indexOf(b)!==-1,cn=(sn=B==null?void 0:B[v])!=null?sn:0,dn=dt?ln:Ve-E[_t]-O[_t]-cn+N.altAxis,fn=dt?Ve+E[_t]+O[_t]-cn-N.altAxis:Xn,un=g&&dt?Su(dn,Ve,fn):Zt(g?dn:ln,Ve,g?fn:Xn);S[v]=un,T[v]=un-Ve}t.modifiersData[i]=T}}var Yu={name:"preventOverflow",enabled:!0,phase:"main",fn:Ju,requiresIfExists:["offset"]};function Zu(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Qu(e){return e===ye(e)||!ue(e)?No(e):Zu(e)}function Xu(e){var t=e.getBoundingClientRect(),o=Ct(t.width)/e.offsetWidth||1,i=Ct(t.height)/e.offsetHeight||1;return o!==1||i!==1}function ep(e,t,o){o===void 0&&(o=!1);var i=ue(t),a=ue(t)&&Xu(t),r=je(t),s=vt(e,a),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!o)&&((Se(t)!=="body"||Lo(r))&&(l=Qu(t)),ue(t)?(c=vt(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):r&&(c.x=_o(r))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function tp(e){var t=new Map,o=new Set,i=[];e.forEach(function(r){t.set(r.name,r)});function a(r){o.add(r.name);var s=[].concat(r.requires||[],r.requiresIfExists||[]);s.forEach(function(l){if(!o.has(l)){var c=t.get(l);c&&a(c)}}),i.push(r)}return e.forEach(function(r){o.has(r.name)||a(r)}),i}function np(e){var t=tp(e);return yu.reduce(function(o,i){return o.concat(t.filter(function(a){return a.phase===i}))},[])}function op(e){var t;return function(){return t||(t=new Promise(function(o){Promise.resolve().then(function(){t=void 0,o(e())})})),t}}function ip(e){var t=e.reduce(function(o,i){var a=o[i.name];return o[i.name]=a?Object.assign({},a,i,{options:Object.assign({},a.options,i.options),data:Object.assign({},a.data,i.data)}):i,o},{});return Object.keys(t).map(function(o){return t[o]})}var Qa={placement:"bottom",modifiers:[],strategy:"absolute"};function Xa(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function Vo(e){e===void 0&&(e={});var t=e,o=t.defaultModifiers,i=o===void 0?[]:o,a=t.defaultOptions,r=a===void 0?Qa:a;return function(s,l,c){c===void 0&&(c=r);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Qa,r),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},f=[],u=!1,p={state:d,setOptions:function(m){var y=typeof m=="function"?m(d.options):m;h(),d.options=Object.assign({},r,d.options,y),d.scrollParents={reference:wt(s)?Qt(s):s.contextElement?Qt(s.contextElement):[],popper:Qt(l)};var b=np(ip([].concat(i,d.options.modifiers)));return d.orderedModifiers=b.filter(function(C){return C.enabled}),g(),p.update()},forceUpdate:function(){if(!u){var m=d.elements,y=m.reference,b=m.popper;if(Xa(y,b)){d.rects={reference:ep(y,Yt(b),d.options.strategy==="fixed"),popper:xo(b)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(O){return d.modifiersData[O.name]=Object.assign({},O.data)});for(var C=0;C<d.orderedModifiers.length;C++){if(d.reset===!0){d.reset=!1,C=-1;continue}var I=d.orderedModifiers[C],k=I.fn,v=I.options,S=v===void 0?{}:v,E=I.name;typeof k=="function"&&(d=k({state:d,options:S,name:E,instance:p})||d)}}}},update:op(function(){return new Promise(function(m){p.forceUpdate(),m(d)})}),destroy:function(){h(),u=!0}};if(!Xa(s,l))return p;p.setOptions(c).then(function(m){!u&&c.onFirstUpdate&&c.onFirstUpdate(m)});function g(){d.orderedModifiers.forEach(function(m){var y=m.name,b=m.options,C=b===void 0?{}:b,I=m.effect;if(typeof I=="function"){var k=I({state:d,name:y,instance:p,options:C}),v=function(){};f.push(k||v)}})}function h(){f.forEach(function(m){return m()}),f=[]}return p}}Vo();var ap=[Ka,Za,Ha,Va];Vo({defaultModifiers:ap});var rp=[Ka,Za,Ha,Va,Wu,zu,Yu,Tu,Hu],sp=Vo({defaultModifiers:rp});const lp=(e,t,o={})=>{const i={name:"updateState",enabled:!0,phase:"write",fn:({state:c})=>{const d=cp(c);Object.assign(s.value,d)},requires:["computeStyles"]},a=n.computed(()=>{const{onFirstUpdate:c,placement:d,strategy:f,modifiers:u}=n.unref(o);return{onFirstUpdate:c,placement:d||"bottom",strategy:f||"absolute",modifiers:[...u||[],i,{name:"applyStyles",enabled:!1}]}}),r=n.shallowRef(),s=n.ref({styles:{popper:{position:n.unref(a).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=()=>{r.value&&(r.value.destroy(),r.value=void 0)};return n.watch(a,c=>{const d=n.unref(r);d&&d.setOptions(c)},{deep:!0}),n.watch([e,t],([c,d])=>{l(),!(!c||!d)&&(r.value=sp(c,d,n.unref(a)))}),n.onBeforeUnmount(()=>{l()}),{state:n.computed(()=>{var c;return{...((c=n.unref(r))==null?void 0:c.state)||{}}}),styles:n.computed(()=>n.unref(s).styles),attributes:n.computed(()=>n.unref(s).attributes),update:()=>{var c;return(c=n.unref(r))==null?void 0:c.update()},forceUpdate:()=>{var c;return(c=n.unref(r))==null?void 0:c.forceUpdate()},instanceRef:n.computed(()=>n.unref(r))}};function cp(e){const t=Object.keys(e.elements),o=ko(t.map(a=>[a,e.styles[a]||{}])),i=ko(t.map(a=>[a,e.attributes[a]]));return{styles:o,attributes:i}}const er=e=>{if(!e)return{onClick:Je,onMousedown:Je,onMouseup:Je};let t=!1,o=!1;return{onClick:s=>{t&&o&&e(s),t=o=!1},onMousedown:s=>{t=s.target===s.currentTarget},onMouseup:s=>{o=s.target===s.currentTarget}}};function tr(){let e;const t=(i,a)=>{o(),e=window.setTimeout(i,a)},o=()=>window.clearTimeout(e);return Vt(()=>o()),{registerTimeout:t,cancelTimeout:o}}const Ro={prefix:Math.floor(Math.random()*1e4),current:0},dp=Symbol("elIdInjection"),nr=()=>n.getCurrentInstance()?n.inject(dp,Ro):Ro,it=e=>{const t=nr();!K&&t===Ro&&ne("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
|
|
7
|
+
`)},{immediate:!0})},eu=(e,t,o,i)=>{let a={offsetX:0,offsetY:0};const r=d=>{const f=d.clientX,u=d.clientY,{offsetX:p,offsetY:g}=a,h=e.value.getBoundingClientRect(),m=h.left,b=h.top,y=h.width,v=h.height,T=document.documentElement.clientWidth,S=document.documentElement.clientHeight,w=-m+p,k=-b+g,E=T-m-y+p,O=S-b-v+g,B=x=>{let I=p+x.clientX-f,L=g+x.clientY-u;i!=null&&i.value||(I=Math.min(Math.max(I,w),E),L=Math.min(Math.max(L,k),O)),a={offsetX:I,offsetY:L},e.value&&(e.value.style.transform=`translate(${et(I)}, ${et(L)})`)},N=()=>{document.removeEventListener("mousemove",B),document.removeEventListener("mouseup",N)};document.addEventListener("mousemove",B),document.addEventListener("mouseup",N)},s=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",r)},l=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",r)},c=()=>{a={offsetX:0,offsetY:0},e.value&&(e.value.style.transform="none")};return n.onMounted(()=>{n.watchEffect(()=>{o.value?s():l()})}),n.onBeforeUnmount(()=>{l()}),{resetPosition:c}};var tu={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const nu=e=>(t,o)=>ou(t,o,n.unref(e)),ou=(e,t,o)=>xe(o,e,e).replace(/\{(\w+)\}/g,(i,a)=>{var r;return`${(r=t==null?void 0:t[a])!=null?r:`{${a}}`}`}),iu=e=>{const t=n.computed(()=>n.unref(e).name),o=n.isRef(e)?e:n.ref(e);return{lang:t,locale:o,t:nu(e)}},xa=Symbol("localeContextKey"),Oo=e=>{const t=e||n.inject(xa,n.ref());return iu(n.computed(()=>t.value||tu))},Wt="el",au="is-",nt=(e,t,o,i,a)=>{let r=`${e}-${t}`;return o&&(r+=`-${o}`),i&&(r+=`__${i}`),a&&(r+=`--${a}`),r},Na=Symbol("namespaceContextKey"),Mo=e=>{const t=e||(n.getCurrentInstance()?n.inject(Na,n.ref(Wt)):n.ref(Wt));return n.computed(()=>n.unref(t)||Wt)},F=(e,t)=>{const o=Mo(t);return{namespace:o,b:(m="")=>nt(o.value,e,m,"",""),e:m=>m?nt(o.value,e,"",m,""):"",m:m=>m?nt(o.value,e,"","",m):"",be:(m,b)=>m&&b?nt(o.value,e,m,b,""):"",em:(m,b)=>m&&b?nt(o.value,e,"",m,b):"",bm:(m,b)=>m&&b?nt(o.value,e,m,"",b):"",bem:(m,b,y)=>m&&b&&y?nt(o.value,e,m,b,y):"",is:(m,...b)=>{const y=b.length>=1?b[0]:!0;return m&&y?`${au}${m}`:""},cssVar:m=>{const b={};for(const y in m)m[y]&&(b[`--${o.value}-${y}`]=m[y]);return b},cssVarName:m=>`--${o.value}-${m}`,cssVarBlock:m=>{const b={};for(const y in m)m[y]&&(b[`--${o.value}-${e}-${y}`]=m[y]);return b},cssVarBlockName:m=>`--${o.value}-${e}-${m}`}},ru=(e,t={})=>{n.isRef(e)||Ta("[useLockscreen]","You need to pass a ref param to this function");const o=t.ns||F("popup"),i=n.computed(()=>o.bm("parent","hidden"));if(!K||Oa(document.body,i.value))return;let a=0,r=!1,s="0";const l=()=>{setTimeout(()=>{Ht(document==null?void 0:document.body,i.value),r&&document&&(document.body.style.width=s)},200)};n.watch(e,c=>{if(!c){l();return}r=!Oa(document.body,i.value),r&&(s=document.body.style.width),a=Wf(o.namespace.value);const d=document.documentElement.clientHeight<document.body.scrollHeight,f=mt(document.body,"overflowY");a>0&&(d||f==="scroll")&&r&&(document.body.style.width=`calc(100% - ${a}px)`),To(document.body,i.value)}),n.onScopeDispose(()=>l())},su=Tn({type:_(Boolean),default:null}),lu=Tn({type:_(Function)}),cu=e=>{const t=`update:${e}`,o=`onUpdate:${e}`,i=[t],a={[e]:su,[o]:lu};return{useModelToggle:({indicator:s,toggleReason:l,shouldHideWhenRouteChanges:c,shouldProceed:d,onShow:f,onHide:u})=>{const p=n.getCurrentInstance(),{emit:g}=p,h=p.props,m=n.computed(()=>Q(h[o])),b=n.computed(()=>h[e]===null),y=E=>{s.value!==!0&&(s.value=!0,l&&(l.value=E),Q(f)&&f(E))},v=E=>{s.value!==!1&&(s.value=!1,l&&(l.value=E),Q(u)&&u(E))},T=E=>{if(h.disabled===!0||Q(d)&&!d())return;const O=m.value&&K;O&&g(t,!0),(b.value||!O)&&y(E)},S=E=>{if(h.disabled===!0||!K)return;const O=m.value&&K;O&&g(t,!1),(b.value||!O)&&v(E)},w=E=>{_e(E)&&(h.disabled&&E?m.value&&g(t,!1):s.value!==E&&(E?y():v()))},k=()=>{s.value?S():T()};return n.watch(()=>h[e],w),c&&p.appContext.config.globalProperties.$route!==void 0&&n.watch(()=>({...p.proxy.$route}),()=>{c.value&&s.value&&S()}),n.onMounted(()=>{w(h[e])}),{hide:S,show:T,toggle:k,hasUpdateHandler:m}},useModelToggleProps:a,useModelToggleEmits:i}},_a=e=>{const t=n.getCurrentInstance();return n.computed(()=>{var o,i;return(i=(o=t==null?void 0:t.proxy)==null?void 0:o.$props)==null?void 0:i[e]})};var ie="top",de="bottom",fe="right",ae="left",Bo="auto",qt=[ie,de,fe,ae],bt="start",Gt="end",du="clippingParents",La="viewport",Jt="popper",fu="reference",Pa=qt.reduce(function(e,t){return e.concat([t+"-"+bt,t+"-"+Gt])},[]),On=[].concat(qt,[Bo]).reduce(function(e,t){return e.concat([t,t+"-"+bt,t+"-"+Gt])},[]),uu="beforeRead",pu="read",hu="afterRead",mu="beforeMain",gu="main",yu="afterMain",bu="beforeWrite",wu="write",Cu="afterWrite",vu=[uu,pu,hu,mu,gu,yu,bu,wu,Cu];function Se(e){return e?(e.nodeName||"").toLowerCase():null}function ye(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function wt(e){var t=ye(e).Element;return e instanceof t||e instanceof Element}function ue(e){var t=ye(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function xo(e){if(typeof ShadowRoot>"u")return!1;var t=ye(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Su(e){var t=e.state;Object.keys(t.elements).forEach(function(o){var i=t.styles[o]||{},a=t.attributes[o]||{},r=t.elements[o];!ue(r)||!Se(r)||(Object.assign(r.style,i),Object.keys(a).forEach(function(s){var l=a[s];l===!1?r.removeAttribute(s):r.setAttribute(s,l===!0?"":l)}))})}function ku(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach(function(i){var a=t.elements[i],r=t.attributes[i]||{},s=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:o[i]),l=s.reduce(function(c,d){return c[d]="",c},{});!ue(a)||!Se(a)||(Object.assign(a.style,l),Object.keys(r).forEach(function(c){a.removeAttribute(c)}))})}}var Va={name:"applyStyles",enabled:!0,phase:"write",fn:Su,effect:ku,requires:["computeStyles"]};function ke(e){return e.split("-")[0]}var ot=Math.max,Mn=Math.min,Ct=Math.round;function vt(e,t){t===void 0&&(t=!1);var o=e.getBoundingClientRect(),i=1,a=1;if(ue(e)&&t){var r=e.offsetHeight,s=e.offsetWidth;s>0&&(i=Ct(o.width)/s||1),r>0&&(a=Ct(o.height)/r||1)}return{width:o.width/i,height:o.height/a,top:o.top/a,right:o.right/i,bottom:o.bottom/a,left:o.left/i,x:o.left/i,y:o.top/a}}function No(e){var t=vt(e),o=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:i}}function Ra(e,t){var o=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(o&&xo(o)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Le(e){return ye(e).getComputedStyle(e)}function Eu(e){return["table","td","th"].indexOf(Se(e))>=0}function je(e){return((wt(e)?e.ownerDocument:e.document)||window.document).documentElement}function Bn(e){return Se(e)==="html"?e:e.assignedSlot||e.parentNode||(xo(e)?e.host:null)||je(e)}function Da(e){return!ue(e)||Le(e).position==="fixed"?null:e.offsetParent}function Iu(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,o=navigator.userAgent.indexOf("Trident")!==-1;if(o&&ue(e)){var i=Le(e);if(i.position==="fixed")return null}var a=Bn(e);for(xo(a)&&(a=a.host);ue(a)&&["html","body"].indexOf(Se(a))<0;){var r=Le(a);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||t&&r.willChange==="filter"||t&&r.filter&&r.filter!=="none")return a;a=a.parentNode}return null}function Yt(e){for(var t=ye(e),o=Da(e);o&&Eu(o)&&Le(o).position==="static";)o=Da(o);return o&&(Se(o)==="html"||Se(o)==="body"&&Le(o).position==="static")?t:o||Iu(e)||t}function _o(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Zt(e,t,o){return ot(e,Mn(t,o))}function Tu(e,t,o){var i=Zt(e,t,o);return i>o?o:i}function Fa(){return{top:0,right:0,bottom:0,left:0}}function $a(e){return Object.assign({},Fa(),e)}function za(e,t){return t.reduce(function(o,i){return o[i]=e,o},{})}var Au=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,$a(typeof e!="number"?e:za(e,qt))};function Ou(e){var t,o=e.state,i=e.name,a=e.options,r=o.elements.arrow,s=o.modifiersData.popperOffsets,l=ke(o.placement),c=_o(l),d=[ae,fe].indexOf(l)>=0,f=d?"height":"width";if(!(!r||!s)){var u=Au(a.padding,o),p=No(r),g=c==="y"?ie:ae,h=c==="y"?de:fe,m=o.rects.reference[f]+o.rects.reference[c]-s[c]-o.rects.popper[f],b=s[c]-o.rects.reference[c],y=Yt(r),v=y?c==="y"?y.clientHeight||0:y.clientWidth||0:0,T=m/2-b/2,S=u[g],w=v-p[f]-u[h],k=v/2-p[f]/2+T,E=Zt(S,k,w),O=c;o.modifiersData[i]=(t={},t[O]=E,t.centerOffset=E-k,t)}}function Mu(e){var t=e.state,o=e.options,i=o.element,a=i===void 0?"[data-popper-arrow]":i;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||!Ra(t.elements.popper,a)||(t.elements.arrow=a))}var Bu={name:"arrow",enabled:!0,phase:"main",fn:Ou,effect:Mu,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function St(e){return e.split("-")[1]}var xu={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Nu(e){var t=e.x,o=e.y,i=window,a=i.devicePixelRatio||1;return{x:Ct(t*a)/a||0,y:Ct(o*a)/a||0}}function ja(e){var t,o=e.popper,i=e.popperRect,a=e.placement,r=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,d=e.adaptive,f=e.roundOffsets,u=e.isFixed,p=s.x,g=p===void 0?0:p,h=s.y,m=h===void 0?0:h,b=typeof f=="function"?f({x:g,y:m}):{x:g,y:m};g=b.x,m=b.y;var y=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),T=ae,S=ie,w=window;if(d){var k=Yt(o),E="clientHeight",O="clientWidth";if(k===ye(o)&&(k=je(o),Le(k).position!=="static"&&l==="absolute"&&(E="scrollHeight",O="scrollWidth")),k=k,a===ie||(a===ae||a===fe)&&r===Gt){S=de;var B=u&&k===w&&w.visualViewport?w.visualViewport.height:k[E];m-=B-i.height,m*=c?1:-1}if(a===ae||(a===ie||a===de)&&r===Gt){T=fe;var N=u&&k===w&&w.visualViewport?w.visualViewport.width:k[O];g-=N-i.width,g*=c?1:-1}}var x=Object.assign({position:l},d&&xu),I=f===!0?Nu({x:g,y:m}):{x:g,y:m};if(g=I.x,m=I.y,c){var L;return Object.assign({},x,(L={},L[S]=v?"0":"",L[T]=y?"0":"",L.transform=(w.devicePixelRatio||1)<=1?"translate("+g+"px, "+m+"px)":"translate3d("+g+"px, "+m+"px, 0)",L))}return Object.assign({},x,(t={},t[S]=v?m+"px":"",t[T]=y?g+"px":"",t.transform="",t))}function _u(e){var t=e.state,o=e.options,i=o.gpuAcceleration,a=i===void 0?!0:i,r=o.adaptive,s=r===void 0?!0:r,l=o.roundOffsets,c=l===void 0?!0:l,d={placement:ke(t.placement),variation:St(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,ja(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ja(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Ha={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:_u,data:{}},xn={passive:!0};function Lu(e){var t=e.state,o=e.instance,i=e.options,a=i.scroll,r=a===void 0?!0:a,s=i.resize,l=s===void 0?!0:s,c=ye(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&d.forEach(function(f){f.addEventListener("scroll",o.update,xn)}),l&&c.addEventListener("resize",o.update,xn),function(){r&&d.forEach(function(f){f.removeEventListener("scroll",o.update,xn)}),l&&c.removeEventListener("resize",o.update,xn)}}var Ka={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Lu,data:{}},Pu={left:"right",right:"left",bottom:"top",top:"bottom"};function Nn(e){return e.replace(/left|right|bottom|top/g,function(t){return Pu[t]})}var Vu={start:"end",end:"start"};function Ua(e){return e.replace(/start|end/g,function(t){return Vu[t]})}function Lo(e){var t=ye(e),o=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:o,scrollTop:i}}function Po(e){return vt(je(e)).left+Lo(e).scrollLeft}function Ru(e){var t=ye(e),o=je(e),i=t.visualViewport,a=o.clientWidth,r=o.clientHeight,s=0,l=0;return i&&(a=i.width,r=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=i.offsetLeft,l=i.offsetTop)),{width:a,height:r,x:s+Po(e),y:l}}function Du(e){var t,o=je(e),i=Lo(e),a=(t=e.ownerDocument)==null?void 0:t.body,r=ot(o.scrollWidth,o.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=ot(o.scrollHeight,o.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),l=-i.scrollLeft+Po(e),c=-i.scrollTop;return Le(a||o).direction==="rtl"&&(l+=ot(o.clientWidth,a?a.clientWidth:0)-r),{width:r,height:s,x:l,y:c}}function Vo(e){var t=Le(e),o=t.overflow,i=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+a+i)}function Wa(e){return["html","body","#document"].indexOf(Se(e))>=0?e.ownerDocument.body:ue(e)&&Vo(e)?e:Wa(Bn(e))}function Qt(e,t){var o;t===void 0&&(t=[]);var i=Wa(e),a=i===((o=e.ownerDocument)==null?void 0:o.body),r=ye(i),s=a?[r].concat(r.visualViewport||[],Vo(i)?i:[]):i,l=t.concat(s);return a?l:l.concat(Qt(Bn(s)))}function Ro(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Fu(e){var t=vt(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 qa(e,t){return t===La?Ro(Ru(e)):wt(t)?Fu(t):Ro(Du(je(e)))}function $u(e){var t=Qt(Bn(e)),o=["absolute","fixed"].indexOf(Le(e).position)>=0,i=o&&ue(e)?Yt(e):e;return wt(i)?t.filter(function(a){return wt(a)&&Ra(a,i)&&Se(a)!=="body"}):[]}function zu(e,t,o){var i=t==="clippingParents"?$u(e):[].concat(t),a=[].concat(i,[o]),r=a[0],s=a.reduce(function(l,c){var d=qa(e,c);return l.top=ot(d.top,l.top),l.right=Mn(d.right,l.right),l.bottom=Mn(d.bottom,l.bottom),l.left=ot(d.left,l.left),l},qa(e,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Ga(e){var t=e.reference,o=e.element,i=e.placement,a=i?ke(i):null,r=i?St(i):null,s=t.x+t.width/2-o.width/2,l=t.y+t.height/2-o.height/2,c;switch(a){case ie:c={x:s,y:t.y-o.height};break;case de:c={x:s,y:t.y+t.height};break;case fe:c={x:t.x+t.width,y:l};break;case ae:c={x:t.x-o.width,y:l};break;default:c={x:t.x,y:t.y}}var d=a?_o(a):null;if(d!=null){var f=d==="y"?"height":"width";switch(r){case bt:c[d]=c[d]-(t[f]/2-o[f]/2);break;case Gt:c[d]=c[d]+(t[f]/2-o[f]/2);break}}return c}function Xt(e,t){t===void 0&&(t={});var o=t,i=o.placement,a=i===void 0?e.placement:i,r=o.boundary,s=r===void 0?du:r,l=o.rootBoundary,c=l===void 0?La:l,d=o.elementContext,f=d===void 0?Jt:d,u=o.altBoundary,p=u===void 0?!1:u,g=o.padding,h=g===void 0?0:g,m=$a(typeof h!="number"?h:za(h,qt)),b=f===Jt?fu:Jt,y=e.rects.popper,v=e.elements[p?b:f],T=zu(wt(v)?v:v.contextElement||je(e.elements.popper),s,c),S=vt(e.elements.reference),w=Ga({reference:S,element:y,placement:a}),k=Ro(Object.assign({},y,w)),E=f===Jt?k:S,O={top:T.top-E.top+m.top,bottom:E.bottom-T.bottom+m.bottom,left:T.left-E.left+m.left,right:E.right-T.right+m.right},B=e.modifiersData.offset;if(f===Jt&&B){var N=B[a];Object.keys(O).forEach(function(x){var I=[fe,de].indexOf(x)>=0?1:-1,L=[ie,de].indexOf(x)>=0?"y":"x";O[x]+=N[L]*I})}return O}function ju(e,t){t===void 0&&(t={});var o=t,i=o.placement,a=o.boundary,r=o.rootBoundary,s=o.padding,l=o.flipVariations,c=o.allowedAutoPlacements,d=c===void 0?On:c,f=St(i),u=f?l?Pa:Pa.filter(function(h){return St(h)===f}):qt,p=u.filter(function(h){return d.indexOf(h)>=0});p.length===0&&(p=u);var g=p.reduce(function(h,m){return h[m]=Xt(e,{placement:m,boundary:a,rootBoundary:r,padding:s})[ke(m)],h},{});return Object.keys(g).sort(function(h,m){return g[h]-g[m]})}function Hu(e){if(ke(e)===Bo)return[];var t=Nn(e);return[Ua(e),t,Ua(t)]}function Ku(e){var t=e.state,o=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var a=o.mainAxis,r=a===void 0?!0:a,s=o.altAxis,l=s===void 0?!0:s,c=o.fallbackPlacements,d=o.padding,f=o.boundary,u=o.rootBoundary,p=o.altBoundary,g=o.flipVariations,h=g===void 0?!0:g,m=o.allowedAutoPlacements,b=t.options.placement,y=ke(b),v=y===b,T=c||(v||!h?[Nn(b)]:Hu(b)),S=[b].concat(T).reduce(function(Ie,re){return Ie.concat(ke(re)===Bo?ju(t,{placement:re,boundary:f,rootBoundary:u,padding:d,flipVariations:h,allowedAutoPlacements:m}):re)},[]),w=t.rects.reference,k=t.rects.popper,E=new Map,O=!0,B=S[0],N=0;N<S.length;N++){var x=S[N],I=ke(x),L=St(x)===bt,q=[ie,de].indexOf(I)>=0,V=q?"width":"height",M=Xt(t,{placement:x,boundary:f,rootBoundary:u,altBoundary:p,padding:d}),$=q?L?fe:ae:L?de:ie;w[V]>k[V]&&($=Nn($));var pe=Nn($),Y=[];if(r&&Y.push(M[I]<=0),l&&Y.push(M[$]<=0,M[pe]<=0),Y.every(function(Ie){return Ie})){B=x,O=!1;break}E.set(x,Y)}if(O)for(var Z=h?3:1,ce=function(Ie){var re=S.find(function(U){var lt=E.get(U);if(lt)return lt.slice(0,Ie).every(function(qe){return qe})});if(re)return B=re,"break"},Ee=Z;Ee>0;Ee--){var xt=ce(Ee);if(xt==="break")break}t.placement!==B&&(t.modifiersData[i]._skip=!0,t.placement=B,t.reset=!0)}}var Uu={name:"flip",enabled:!0,phase:"main",fn:Ku,requiresIfExists:["offset"],data:{_skip:!1}};function Ja(e,t,o){return o===void 0&&(o={x:0,y:0}),{top:e.top-t.height-o.y,right:e.right-t.width+o.x,bottom:e.bottom-t.height+o.y,left:e.left-t.width-o.x}}function Ya(e){return[ie,fe,de,ae].some(function(t){return e[t]>=0})}function Wu(e){var t=e.state,o=e.name,i=t.rects.reference,a=t.rects.popper,r=t.modifiersData.preventOverflow,s=Xt(t,{elementContext:"reference"}),l=Xt(t,{altBoundary:!0}),c=Ja(s,i),d=Ja(l,a,r),f=Ya(c),u=Ya(d);t.modifiersData[o]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:f,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":u})}var qu={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Wu};function Gu(e,t,o){var i=ke(e),a=[ae,ie].indexOf(i)>=0?-1:1,r=typeof o=="function"?o(Object.assign({},t,{placement:e})):o,s=r[0],l=r[1];return s=s||0,l=(l||0)*a,[ae,fe].indexOf(i)>=0?{x:l,y:s}:{x:s,y:l}}function Ju(e){var t=e.state,o=e.options,i=e.name,a=o.offset,r=a===void 0?[0,0]:a,s=On.reduce(function(f,u){return f[u]=Gu(u,t.rects,r),f},{}),l=s[t.placement],c=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[i]=s}var Yu={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ju};function Zu(e){var t=e.state,o=e.name;t.modifiersData[o]=Ga({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var Za={name:"popperOffsets",enabled:!0,phase:"read",fn:Zu,data:{}};function Qu(e){return e==="x"?"y":"x"}function Xu(e){var t=e.state,o=e.options,i=e.name,a=o.mainAxis,r=a===void 0?!0:a,s=o.altAxis,l=s===void 0?!1:s,c=o.boundary,d=o.rootBoundary,f=o.altBoundary,u=o.padding,p=o.tether,g=p===void 0?!0:p,h=o.tetherOffset,m=h===void 0?0:h,b=Xt(t,{boundary:c,rootBoundary:d,padding:u,altBoundary:f}),y=ke(t.placement),v=St(t.placement),T=!v,S=_o(y),w=Qu(S),k=t.modifiersData.popperOffsets,E=t.rects.reference,O=t.rects.popper,B=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,N=typeof B=="number"?{mainAxis:B,altAxis:B}:Object.assign({mainAxis:0,altAxis:0},B),x=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(k){if(r){var L,q=S==="y"?ie:ae,V=S==="y"?de:fe,M=S==="y"?"height":"width",$=k[S],pe=$+b[q],Y=$-b[V],Z=g?-O[M]/2:0,ce=v===bt?E[M]:O[M],Ee=v===bt?-O[M]:-E[M],xt=t.elements.arrow,Ie=g&&xt?No(xt):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Fa(),U=re[q],lt=re[V],qe=Zt(0,E[M],Ie[M]),Zn=T?E[M]/2-Z-qe-U-N.mainAxis:ce-qe-U-N.mainAxis,Qn=T?-E[M]/2+Z+qe+lt+N.mainAxis:Ee+qe+lt+N.mainAxis,rn=t.elements.arrow&&Yt(t.elements.arrow),mi=rn?S==="y"?rn.clientTop||0:rn.clientLeft||0:0,Xn=(L=x==null?void 0:x[S])!=null?L:0,gi=$+Zn-Xn-mi,yi=$+Qn-Xn,ct=Zt(g?Mn(pe,gi):pe,$,g?ot(Y,yi):Y);k[S]=ct,I[S]=ct-$}if(l){var sn,Nt=S==="x"?ie:ae,eo=S==="x"?de:fe,Ve=k[w],_t=w==="y"?"height":"width",ln=Ve+b[Nt],to=Ve-b[eo],dt=[ie,ae].indexOf(y)!==-1,cn=(sn=x==null?void 0:x[w])!=null?sn:0,dn=dt?ln:Ve-E[_t]-O[_t]-cn+N.altAxis,fn=dt?Ve+E[_t]+O[_t]-cn-N.altAxis:to,un=g&&dt?Tu(dn,Ve,fn):Zt(g?dn:ln,Ve,g?fn:to);k[w]=un,I[w]=un-Ve}t.modifiersData[i]=I}}var ep={name:"preventOverflow",enabled:!0,phase:"main",fn:Xu,requiresIfExists:["offset"]};function tp(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function np(e){return e===ye(e)||!ue(e)?Lo(e):tp(e)}function op(e){var t=e.getBoundingClientRect(),o=Ct(t.width)/e.offsetWidth||1,i=Ct(t.height)/e.offsetHeight||1;return o!==1||i!==1}function ip(e,t,o){o===void 0&&(o=!1);var i=ue(t),a=ue(t)&&op(t),r=je(t),s=vt(e,a),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!o)&&((Se(t)!=="body"||Vo(r))&&(l=np(t)),ue(t)?(c=vt(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):r&&(c.x=Po(r))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function ap(e){var t=new Map,o=new Set,i=[];e.forEach(function(r){t.set(r.name,r)});function a(r){o.add(r.name);var s=[].concat(r.requires||[],r.requiresIfExists||[]);s.forEach(function(l){if(!o.has(l)){var c=t.get(l);c&&a(c)}}),i.push(r)}return e.forEach(function(r){o.has(r.name)||a(r)}),i}function rp(e){var t=ap(e);return vu.reduce(function(o,i){return o.concat(t.filter(function(a){return a.phase===i}))},[])}function sp(e){var t;return function(){return t||(t=new Promise(function(o){Promise.resolve().then(function(){t=void 0,o(e())})})),t}}function lp(e){var t=e.reduce(function(o,i){var a=o[i.name];return o[i.name]=a?Object.assign({},a,i,{options:Object.assign({},a.options,i.options),data:Object.assign({},a.data,i.data)}):i,o},{});return Object.keys(t).map(function(o){return t[o]})}var Qa={placement:"bottom",modifiers:[],strategy:"absolute"};function Xa(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function Do(e){e===void 0&&(e={});var t=e,o=t.defaultModifiers,i=o===void 0?[]:o,a=t.defaultOptions,r=a===void 0?Qa:a;return function(s,l,c){c===void 0&&(c=r);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Qa,r),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},f=[],u=!1,p={state:d,setOptions:function(m){var b=typeof m=="function"?m(d.options):m;h(),d.options=Object.assign({},r,d.options,b),d.scrollParents={reference:wt(s)?Qt(s):s.contextElement?Qt(s.contextElement):[],popper:Qt(l)};var y=rp(lp([].concat(i,d.options.modifiers)));return d.orderedModifiers=y.filter(function(v){return v.enabled}),g(),p.update()},forceUpdate:function(){if(!u){var m=d.elements,b=m.reference,y=m.popper;if(Xa(b,y)){d.rects={reference:ip(b,Yt(y),d.options.strategy==="fixed"),popper:No(y)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(O){return d.modifiersData[O.name]=Object.assign({},O.data)});for(var v=0;v<d.orderedModifiers.length;v++){if(d.reset===!0){d.reset=!1,v=-1;continue}var T=d.orderedModifiers[v],S=T.fn,w=T.options,k=w===void 0?{}:w,E=T.name;typeof S=="function"&&(d=S({state:d,options:k,name:E,instance:p})||d)}}}},update:sp(function(){return new Promise(function(m){p.forceUpdate(),m(d)})}),destroy:function(){h(),u=!0}};if(!Xa(s,l))return p;p.setOptions(c).then(function(m){!u&&c.onFirstUpdate&&c.onFirstUpdate(m)});function g(){d.orderedModifiers.forEach(function(m){var b=m.name,y=m.options,v=y===void 0?{}:y,T=m.effect;if(typeof T=="function"){var S=T({state:d,name:b,instance:p,options:v}),w=function(){};f.push(S||w)}})}function h(){f.forEach(function(m){return m()}),f=[]}return p}}Do();var cp=[Ka,Za,Ha,Va];Do({defaultModifiers:cp});var dp=[Ka,Za,Ha,Va,Yu,Uu,ep,Bu,qu],fp=Do({defaultModifiers:dp});const up=(e,t,o={})=>{const i={name:"updateState",enabled:!0,phase:"write",fn:({state:c})=>{const d=pp(c);Object.assign(s.value,d)},requires:["computeStyles"]},a=n.computed(()=>{const{onFirstUpdate:c,placement:d,strategy:f,modifiers:u}=n.unref(o);return{onFirstUpdate:c,placement:d||"bottom",strategy:f||"absolute",modifiers:[...u||[],i,{name:"applyStyles",enabled:!1}]}}),r=n.shallowRef(),s=n.ref({styles:{popper:{position:n.unref(a).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=()=>{r.value&&(r.value.destroy(),r.value=void 0)};return n.watch(a,c=>{const d=n.unref(r);d&&d.setOptions(c)},{deep:!0}),n.watch([e,t],([c,d])=>{l(),!(!c||!d)&&(r.value=fp(c,d,n.unref(a)))}),n.onBeforeUnmount(()=>{l()}),{state:n.computed(()=>{var c;return{...((c=n.unref(r))==null?void 0:c.state)||{}}}),styles:n.computed(()=>n.unref(s).styles),attributes:n.computed(()=>n.unref(s).attributes),update:()=>{var c;return(c=n.unref(r))==null?void 0:c.update()},forceUpdate:()=>{var c;return(c=n.unref(r))==null?void 0:c.forceUpdate()},instanceRef:n.computed(()=>n.unref(r))}};function pp(e){const t=Object.keys(e.elements),o=Io(t.map(a=>[a,e.styles[a]||{}])),i=Io(t.map(a=>[a,e.attributes[a]]));return{styles:o,attributes:i}}const er=e=>{if(!e)return{onClick:Je,onMousedown:Je,onMouseup:Je};let t=!1,o=!1;return{onClick:s=>{t&&o&&e(s),t=o=!1},onMousedown:s=>{t=s.target===s.currentTarget},onMouseup:s=>{o=s.target===s.currentTarget}}};function tr(){let e;const t=(i,a)=>{o(),e=window.setTimeout(i,a)},o=()=>window.clearTimeout(e);return Vt(()=>o()),{registerTimeout:t,cancelTimeout:o}}const Fo={prefix:Math.floor(Math.random()*1e4),current:0},hp=Symbol("elIdInjection"),nr=()=>n.getCurrentInstance()?n.inject(hp,Fo):Fo,it=e=>{const t=nr();!K&&t===Fo&&ne("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
|
|
8
8
|
usage: app.provide(ID_INJECTION_KEY, {
|
|
9
9
|
prefix: number,
|
|
10
10
|
current: number,
|
|
11
|
-
})`);const o=
|
|
12
|
-
usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:i,currentZIndex:a,nextZIndex:r}},Et=Tn({type:String,values:xa,required:!1}),ur=Symbol("size"),bp=()=>{const e=n.inject(ur,{});return n.computed(()=>n.unref(e.size)||"")};function wp(e,{beforeFocus:t,afterFocus:o,beforeBlur:i,afterBlur:a}={}){const r=n.getCurrentInstance(),{emit:s}=r,l=n.shallowRef(),c=n.ref(!1),d=p=>{Q(t)&&t(p)||c.value||(c.value=!0,s("focus",p),o==null||o())},f=p=>{var g;Q(i)&&i(p)||p.relatedTarget&&((g=l.value)!=null&&g.contains(p.relatedTarget))||(c.value=!1,s("blur",p),a==null||a())},u=()=>{var p,g;(p=l.value)!=null&&p.contains(document.activeElement)&&l.value!==document.activeElement||(g=e.value)==null||g.focus()};return n.watch(l,p=>{p&&p.setAttribute("tabindex","-1")}),he(l,"focus",d,!0),he(l,"blur",f,!0),he(l,"click",u,!0),process.env.NODE_ENV==="test"&&n.onMounted(()=>{const p=Xe(e.value)?e.value:document.querySelector("input,textarea");p&&(he(p,"focus",d,!0),he(p,"blur",f,!0))}),{isFocused:c,wrapperRef:l,handleFocus:d,handleBlur:f}}function Cp({afterComposition:e,emit:t}){const o=n.ref(!1),i=l=>{t==null||t("compositionstart",l),o.value=!0},a=l=>{var c;t==null||t("compositionupdate",l);const d=(c=l.target)==null?void 0:c.value,f=d[d.length-1]||"";o.value=!Jf(f)},r=l=>{t==null||t("compositionend",l),o.value&&(o.value=!1,n.nextTick(()=>e(l)))};return{isComposing:o,handleComposition:l=>{l.type==="compositionend"?r(l):a(l)},handleCompositionStart:i,handleCompositionUpdate:a,handleCompositionEnd:r}}const pr=Symbol("emptyValuesContextKey"),vp="use-empty-values",Sp=["",void 0,null],kp=void 0,Ep=R({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:e=>Q(e)?!e():!e}}),Ip=(e,t)=>{const o=n.getCurrentInstance()?n.inject(pr,n.ref({})):n.ref({}),i=n.computed(()=>e.emptyValues||o.value.emptyValues||Sp),a=n.computed(()=>Q(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:Q(o.value.valueOnClear)?o.value.valueOnClear():o.value.valueOnClear!==void 0?o.value.valueOnClear:kp),r=s=>i.value.includes(s);return i.value.includes(a.value)||ne(vp,"value-on-clear should be a value of empty-values"),{emptyValues:i,valueOnClear:a,isEmptyValue:r}},Tp=R({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),at=e=>ka(Tp,e),hr=Symbol(),_n=n.ref();function Ln(e,t=void 0){const o=n.getCurrentInstance()?n.inject(hr,_n):_n;return e?n.computed(()=>{var i,a;return(a=(i=o.value)==null?void 0:i[e])!=null?a:t}):o}function Ap(e,t){const o=Ln(),i=D(e,n.computed(()=>{var l;return((l=o.value)==null?void 0:l.namespace)||Wt})),a=To(n.computed(()=>{var l;return(l=o.value)==null?void 0:l.locale})),r=Fo(n.computed(()=>{var l;return((l=o.value)==null?void 0:l.zIndex)||cr})),s=n.computed(()=>{var l;return n.unref(t)||((l=o.value)==null?void 0:l.size)||""});return Op(n.computed(()=>n.unref(o)||{})),{ns:i,locale:a,zIndex:r,size:s}}const Op=(e,t,o=!1)=>{var i;const a=!!n.getCurrentInstance(),r=a?Ln():void 0,s=(i=void 0)!=null?i:a?n.provide:void 0;if(!s){ne("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const l=n.computed(()=>{const c=n.unref(e);return r!=null&&r.value?Mp(r.value,c):c});return s(hr,l),s(Ba,n.computed(()=>l.value.locale)),s(Na,n.computed(()=>l.value.namespace)),s(fr,n.computed(()=>l.value.zIndex)),s(ur,{size:n.computed(()=>l.value.size||"")}),s(pr,n.computed(()=>({emptyValues:l.value.emptyValues,valueOnClear:l.value.valueOnClear}))),(o||!_n.value)&&(_n.value=l.value),l},Mp=(e,t)=>{const o=[...new Set([...Ea(e),...Ea(t)])],i={};for(const a of o)i[a]=t[a]!==void 0?t[a]:e[a];return i};var F=(e,t)=>{const o=e.__vccOpts||e;for(const[i,a]of t)o[i]=a;return o};const xp=R({size:{type:_([Number,String])},color:{type:String}}),Bp=n.defineComponent({name:"ElIcon",inheritAttrs:!1}),Np=n.defineComponent({...Bp,props:xp,setup(e){const t=e,o=D("icon"),i=n.computed(()=>{const{size:a,color:r}=t;return!a&&!r?{}:{fontSize:ze(a)?void 0:et(a),"--color":r}});return(a,r)=>(n.openBlock(),n.createElementBlock("i",n.mergeProps({class:n.unref(o).b(),style:n.unref(i)},a.$attrs),[n.renderSlot(a.$slots,"default")],16))}});var _p=F(Np,[["__file","icon.vue"]]);const be=oe(_p),Do=Symbol("formContextKey"),Pn=Symbol("formItemContextKey"),It=(e,t={})=>{const o=n.ref(void 0),i=t.prop?o:_a("size"),a=t.global?o:bp(),r=t.form?{size:void 0}:n.inject(Do,void 0),s=t.formItem?{size:void 0}:n.inject(Pn,void 0);return n.computed(()=>i.value||n.unref(e)||(s==null?void 0:s.size)||(r==null?void 0:r.size)||a.value||"")},Vn=e=>{const t=_a("disabled"),o=n.inject(Do,void 0);return n.computed(()=>t.value||n.unref(e)||(o==null?void 0:o.disabled)||!1)},Tt=()=>{const e=n.inject(Do,void 0),t=n.inject(Pn,void 0);return{form:e,formItem:t}},Rn=(e,{formItemContext:t,disableIdGeneration:o,disableIdManagement:i})=>{o||(o=n.ref(!1)),i||(i=n.ref(!1));const a=n.ref();let r;const s=n.computed(()=>{var l;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((l=t.inputIds)==null?void 0:l.length)<=1)});return n.onMounted(()=>{r=n.watch([n.toRef(e,"id"),o],([l,c])=>{const d=l??(c?void 0:it().value);d!==a.value&&(t!=null&&t.removeInputId&&(a.value&&t.removeInputId(a.value),!(i!=null&&i.value)&&!c&&d&&t.addInputId(d)),a.value=d)},{immediate:!0})}),n.onUnmounted(()=>{r&&r(),t!=null&&t.removeInputId&&a.value&&t.removeInputId(a.value)}),{isLabeledByFormItem:s,inputId:a}},At=4,Lp={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},Pp=({move:e,size:t,bar:o})=>({[o.size]:t,transform:`translate${o.axis}(${e}%)`}),$o=Symbol("scrollbarContextKey"),Vp=R({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),Rp="Thumb";var mr=F(n.defineComponent({__name:"thumb",props:Vp,setup(e){const t=e,o=n.inject($o),i=D("scrollbar");o||Ta(Rp,"can not inject scrollbar context");const a=n.ref(),r=n.ref(),s=n.ref({}),l=n.ref(!1);let c=!1,d=!1,f=K?document.onselectstart:null;const u=n.computed(()=>Lp[t.vertical?"vertical":"horizontal"]),p=n.computed(()=>Pp({size:t.size,move:t.move,bar:u.value})),g=n.computed(()=>a.value[u.value.offset]**2/o.wrapElement[u.value.scrollSize]/t.ratio/r.value[u.value.offset]),h=S=>{var E;if(S.stopPropagation(),S.ctrlKey||[1,2].includes(S.button))return;(E=window.getSelection())==null||E.removeAllRanges(),y(S);const O=S.currentTarget;O&&(s.value[u.value.axis]=O[u.value.offset]-(S[u.value.client]-O.getBoundingClientRect()[u.value.direction]))},m=S=>{if(!r.value||!a.value||!o.wrapElement)return;const E=Math.abs(S.target.getBoundingClientRect()[u.value.direction]-S[u.value.client]),O=r.value[u.value.offset]/2,x=(E-O)*100*g.value/a.value[u.value.offset];o.wrapElement[u.value.scroll]=x*o.wrapElement[u.value.scrollSize]/100},y=S=>{S.stopImmediatePropagation(),c=!0,document.addEventListener("mousemove",b),document.addEventListener("mouseup",C),f=document.onselectstart,document.onselectstart=()=>!1},b=S=>{if(!a.value||!r.value||c===!1)return;const E=s.value[u.value.axis];if(!E)return;const O=(a.value.getBoundingClientRect()[u.value.direction]-S[u.value.client])*-1,x=r.value[u.value.offset]-E,N=(O-x)*100*g.value/a.value[u.value.offset];o.wrapElement[u.value.scroll]=N*o.wrapElement[u.value.scrollSize]/100},C=()=>{c=!1,s.value[u.value.axis]=0,document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",C),v(),d&&(l.value=!1)},I=()=>{d=!1,l.value=!!t.size},k=()=>{d=!0,l.value=c};n.onBeforeUnmount(()=>{v(),document.removeEventListener("mouseup",C)});const v=()=>{document.onselectstart!==f&&(document.onselectstart=f)};return he(n.toRef(o,"scrollbarElement"),"mousemove",I),he(n.toRef(o,"scrollbarElement"),"mouseleave",k),(S,E)=>(n.openBlock(),n.createBlock(n.Transition,{name:n.unref(i).b("fade"),persisted:""},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{ref_key:"instance",ref:a,class:n.normalizeClass([n.unref(i).e("bar"),n.unref(i).is(n.unref(u).key)]),onMousedown:m},[n.createElementVNode("div",{ref_key:"thumb",ref:r,class:n.normalizeClass(n.unref(i).e("thumb")),style:n.normalizeStyle(n.unref(p)),onMousedown:h},null,38)],34),[[n.vShow,S.always||l.value]])]),_:1},8,["name"]))}}),[["__file","thumb.vue"]]);const Fp=R({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}});var Dp=F(n.defineComponent({__name:"bar",props:Fp,setup(e,{expose:t}){const o=e,i=n.inject($o),a=n.ref(0),r=n.ref(0),s=n.ref(""),l=n.ref(""),c=n.ref(1),d=n.ref(1);return t({handleScroll:p=>{if(p){const g=p.offsetHeight-At,h=p.offsetWidth-At;r.value=p.scrollTop*100/g*c.value,a.value=p.scrollLeft*100/h*d.value}},update:()=>{const p=i==null?void 0:i.wrapElement;if(!p)return;const g=p.offsetHeight-At,h=p.offsetWidth-At,m=g**2/p.scrollHeight,y=h**2/p.scrollWidth,b=Math.max(m,o.minSize),C=Math.max(y,o.minSize);c.value=m/(g-m)/(b/(g-b)),d.value=y/(h-y)/(C/(h-C)),l.value=b+At<g?`${b}px`:"",s.value=C+At<h?`${C}px`:""}}),(p,g)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(mr,{move:a.value,ratio:d.value,size:s.value,always:p.always},null,8,["move","ratio","size","always"]),n.createVNode(mr,{move:r.value,ratio:c.value,size:l.value,vertical:"",always:p.always},null,8,["move","ratio","size","always"])],64))}}),[["__file","bar.vue"]]);const $p=R({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:_([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...at(["ariaLabel","ariaOrientation"])}),zp={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(G)},zo="ElScrollbar",jp=n.defineComponent({name:zo}),Hp=n.defineComponent({...jp,props:$p,emits:zp,setup(e,{expose:t,emit:o}){const i=e,a=D("scrollbar");let r,s,l=0,c=0;const d=n.ref(),f=n.ref(),u=n.ref(),p=n.ref(),g=n.computed(()=>{const v={};return i.height&&(v.height=et(i.height)),i.maxHeight&&(v.maxHeight=et(i.maxHeight)),[i.wrapStyle,v]}),h=n.computed(()=>[i.wrapClass,a.e("wrap"),{[a.em("wrap","hidden-default")]:!i.native}]),m=n.computed(()=>[a.e("view"),i.viewClass]),y=()=>{var v;f.value&&((v=p.value)==null||v.handleScroll(f.value),l=f.value.scrollTop,c=f.value.scrollLeft,o("scroll",{scrollTop:f.value.scrollTop,scrollLeft:f.value.scrollLeft}))};function b(v,S){te(v)?f.value.scrollTo(v):G(v)&&G(S)&&f.value.scrollTo(v,S)}const C=v=>{if(!G(v)){ne(zo,"value must be a number");return}f.value.scrollTop=v},I=v=>{if(!G(v)){ne(zo,"value must be a number");return}f.value.scrollLeft=v},k=()=>{var v;(v=p.value)==null||v.update()};return n.watch(()=>i.noresize,v=>{v?(r==null||r(),s==null||s()):({stop:r}=Re(u,k),s=he("resize",k))},{immediate:!0}),n.watch(()=>[i.maxHeight,i.height],()=>{i.native||n.nextTick(()=>{var v;k(),f.value&&((v=p.value)==null||v.handleScroll(f.value))})}),n.provide($o,n.reactive({scrollbarElement:d,wrapElement:f})),n.onActivated(()=>{f.value&&(f.value.scrollTop=l,f.value.scrollLeft=c)}),n.onMounted(()=>{i.native||n.nextTick(()=>{k()})}),n.onUpdated(()=>k()),t({wrapRef:f,update:k,scrollTo:b,setScrollTop:C,setScrollLeft:I,handleScroll:y}),(v,S)=>(n.openBlock(),n.createElementBlock("div",{ref_key:"scrollbarRef",ref:d,class:n.normalizeClass(n.unref(a).b())},[n.createElementVNode("div",{ref_key:"wrapRef",ref:f,class:n.normalizeClass(n.unref(h)),style:n.normalizeStyle(n.unref(g)),tabindex:v.tabindex,onScroll:y},[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(v.tag),{id:v.id,ref_key:"resizeRef",ref:u,class:n.normalizeClass(n.unref(m)),style:n.normalizeStyle(v.viewStyle),role:v.role,"aria-label":v.ariaLabel,"aria-orientation":v.ariaOrientation},{default:n.withCtx(()=>[n.renderSlot(v.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),v.native?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createBlock(Dp,{key:0,ref_key:"barRef",ref:p,always:v.always,"min-size":v.minSize},null,8,["always","min-size"]))],2))}});var Kp=F(Hp,[["__file","scrollbar.vue"]]);const Up=oe(Kp),jo=Symbol("popper"),gr=Symbol("popperContent"),yr=R({role:{type:String,values:["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],default:"tooltip"}}),Wp=n.defineComponent({name:"ElPopper",inheritAttrs:!1}),qp=n.defineComponent({...Wp,props:yr,setup(e,{expose:t}){const o=e,i=n.ref(),a=n.ref(),r=n.ref(),s=n.ref(),l=n.computed(()=>o.role),c={triggerRef:i,popperInstanceRef:a,contentRef:r,referenceRef:s,role:l};return t(c),n.provide(jo,c),(d,f)=>n.renderSlot(d.$slots,"default")}});var Gp=F(qp,[["__file","popper.vue"]]);const br=R({arrowOffset:{type:Number,default:5}}),Jp=n.defineComponent({name:"ElPopperArrow",inheritAttrs:!1}),Yp=n.defineComponent({...Jp,props:br,setup(e,{expose:t}){const o=e,i=D("popper"),{arrowOffset:a,arrowRef:r,arrowStyle:s}=n.inject(gr,void 0);return n.watch(()=>o.arrowOffset,l=>{a.value=l}),n.onBeforeUnmount(()=>{r.value=void 0}),t({arrowRef:r}),(l,c)=>(n.openBlock(),n.createElementBlock("span",{ref_key:"arrowRef",ref:r,class:n.normalizeClass(n.unref(i).e("arrow")),style:n.normalizeStyle(n.unref(s)),"data-popper-arrow":""},null,6))}});var Zp=F(Yp,[["__file","arrow.vue"]]);const Ho="ElOnlyChild",Qp=n.defineComponent({name:Ho,setup(e,{slots:t,attrs:o}){var i;const a=n.inject(rr),r=yp((i=a==null?void 0:a.setForwardRef)!=null?i:Je);return()=>{var s;const l=(s=t.default)==null?void 0:s.call(t,o);if(!l)return null;if(l.length>1)return ne(Ho,"requires exact only one valid child."),null;const c=wr(l);return c?n.withDirectives(n.cloneVNode(c,o),[[r]]):(ne(Ho,"no valid child node found"),null)}}});function wr(e){if(!e)return null;const t=e;for(const o of t){if(te(o))switch(o.type){case n.Comment:continue;case n.Text:case"svg":return Cr(o);case n.Fragment:return wr(o.children);default:return o}return Cr(o)}return null}function Cr(e){const t=D("only-child");return n.createVNode("span",{class:t.e("content")},[e])}const vr=R({virtualRef:{type:_(Object)},virtualTriggering:Boolean,onMouseenter:{type:_(Function)},onMouseleave:{type:_(Function)},onClick:{type:_(Function)},onKeydown:{type:_(Function)},onFocus:{type:_(Function)},onBlur:{type:_(Function)},onContextmenu:{type:_(Function)},id:String,open:Boolean}),Xp=n.defineComponent({name:"ElPopperTrigger",inheritAttrs:!1}),eh=n.defineComponent({...Xp,props:vr,setup(e,{expose:t}){const o=e,{role:i,triggerRef:a}=n.inject(jo,void 0);gp(a);const r=n.computed(()=>l.value?o.id:void 0),s=n.computed(()=>{if(i&&i.value==="tooltip")return o.open&&o.id?o.id:void 0}),l=n.computed(()=>{if(i&&i.value!=="tooltip")return i.value}),c=n.computed(()=>l.value?`${o.open}`:void 0);let d;const f=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return n.onMounted(()=>{n.watch(()=>o.virtualRef,u=>{u&&(a.value=Oe(u))},{immediate:!0}),n.watch(a,(u,p)=>{d==null||d(),d=void 0,Xe(u)&&(f.forEach(g=>{var h;const m=o[g];m&&(u.addEventListener(g.slice(2).toLowerCase(),m),(h=p==null?void 0:p.removeEventListener)==null||h.call(p,g.slice(2).toLowerCase(),m))}),d=n.watch([r,s,l,c],g=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((h,m)=>{En(g[m])?u.removeAttribute(h):u.setAttribute(h,g[m])})},{immediate:!0})),Xe(p)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(g=>p.removeAttribute(g))},{immediate:!0})}),n.onBeforeUnmount(()=>{if(d==null||d(),d=void 0,a.value&&Xe(a.value)){const u=a.value;f.forEach(p=>{const g=o[p];g&&u.removeEventListener(p.slice(2).toLowerCase(),g)}),a.value=void 0}}),t({triggerRef:a}),(u,p)=>u.virtualTriggering?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createBlock(n.unref(Qp),n.mergeProps({key:0},u.$attrs,{"aria-controls":n.unref(r),"aria-describedby":n.unref(s),"aria-expanded":n.unref(c),"aria-haspopup":n.unref(l)}),{default:n.withCtx(()=>[n.renderSlot(u.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var th=F(eh,[["__file","trigger.vue"]]);const Ko="focus-trap.focus-after-trapped",Uo="focus-trap.focus-after-released",nh="focus-trap.focusout-prevented",Sr={cancelable:!0,bubbles:!1},oh={cancelable:!0,bubbles:!1},kr="focusAfterTrapped",Er="focusAfterReleased",Ir=Symbol("elFocusTrap"),Wo=n.ref(),Fn=n.ref(0),qo=n.ref(0);let Dn=0;const Tr=e=>{const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const a=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||a?NodeFilter.FILTER_SKIP:i.tabIndex>=0||i===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t},Ar=(e,t)=>{for(const o of e)if(!ih(o,t))return o},ih=(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},ah=e=>{const t=Tr(e),o=Ar(t,e),i=Ar(t.reverse(),e);return[o,i]},rh=e=>e instanceof HTMLInputElement&&"select"in e,He=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),qo.value=window.performance.now(),e!==o&&rh(e)&&t&&e.select()}};function Or(e,t){const o=[...e],i=e.indexOf(t);return i!==-1&&o.splice(i,1),o}const sh=()=>{let e=[];return{push:i=>{const a=e[0];a&&i!==a&&a.pause(),e=Or(e,i),e.unshift(i)},remove:i=>{var a,r;e=Or(e,i),(r=(a=e[0])==null?void 0:a.resume)==null||r.call(a)}}},lh=(e,t=!1)=>{const o=document.activeElement;for(const i of e)if(He(i,t),document.activeElement!==o)return},Mr=sh(),ch=()=>Fn.value>qo.value,$n=()=>{Wo.value="pointer",Fn.value=window.performance.now()},xr=()=>{Wo.value="keyboard",Fn.value=window.performance.now()},dh=()=>(n.onMounted(()=>{Dn===0&&(document.addEventListener("mousedown",$n),document.addEventListener("touchstart",$n),document.addEventListener("keydown",xr)),Dn++}),n.onBeforeUnmount(()=>{Dn--,Dn<=0&&(document.removeEventListener("mousedown",$n),document.removeEventListener("touchstart",$n),document.removeEventListener("keydown",xr))}),{focusReason:Wo,lastUserFocusTimestamp:Fn,lastAutomatedFocusTimestamp:qo}),zn=e=>new CustomEvent(nh,{...oh,detail:e}),fh=n.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[kr,Er,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const o=n.ref();let i,a;const{focusReason:r}=dh();fp(h=>{e.trapped&&!s.paused&&t("release-requested",h)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},l=h=>{if(!e.loop&&!e.trapped||s.paused)return;const{key:m,altKey:y,ctrlKey:b,metaKey:C,currentTarget:I,shiftKey:k}=h,{loop:v}=e,S=m===Kt.tab&&!y&&!b&&!C,E=document.activeElement;if(S&&E){const O=I,[x,N]=ah(O);if(x&&N){if(!k&&E===N){const T=zn({focusReason:r.value});t("focusout-prevented",T),T.defaultPrevented||(h.preventDefault(),v&&He(x,!0))}else if(k&&[x,O].includes(E)){const T=zn({focusReason:r.value});t("focusout-prevented",T),T.defaultPrevented||(h.preventDefault(),v&&He(N,!0))}}else if(E===O){const T=zn({focusReason:r.value});t("focusout-prevented",T),T.defaultPrevented||h.preventDefault()}}};n.provide(Ir,{focusTrapRef:o,onKeydown:l}),n.watch(()=>e.focusTrapEl,h=>{h&&(o.value=h)},{immediate:!0}),n.watch([o],([h],[m])=>{h&&(h.addEventListener("keydown",l),h.addEventListener("focusin",f),h.addEventListener("focusout",u)),m&&(m.removeEventListener("keydown",l),m.removeEventListener("focusin",f),m.removeEventListener("focusout",u))});const c=h=>{t(kr,h)},d=h=>t(Er,h),f=h=>{const m=n.unref(o);if(!m)return;const y=h.target,b=h.relatedTarget,C=y&&m.contains(y);e.trapped||b&&m.contains(b)||(i=b),C&&t("focusin",h),!s.paused&&e.trapped&&(C?a=y:He(a,!0))},u=h=>{const m=n.unref(o);if(!(s.paused||!m))if(e.trapped){const y=h.relatedTarget;!En(y)&&!m.contains(y)&&setTimeout(()=>{if(!s.paused&&e.trapped){const b=zn({focusReason:r.value});t("focusout-prevented",b),b.defaultPrevented||He(a,!0)}},0)}else{const y=h.target;y&&m.contains(y)||t("focusout",h)}};async function p(){await n.nextTick();const h=n.unref(o);if(h){Mr.push(s);const m=h.contains(document.activeElement)?i:document.activeElement;if(i=m,!h.contains(m)){const b=new Event(Ko,Sr);h.addEventListener(Ko,c),h.dispatchEvent(b),b.defaultPrevented||n.nextTick(()=>{let C=e.focusStartEl;me(C)||(He(C),document.activeElement!==C&&(C="first")),C==="first"&&lh(Tr(h),!0),(document.activeElement===m||C==="container")&&He(h)})}}}function g(){const h=n.unref(o);if(h){h.removeEventListener(Ko,c);const m=new CustomEvent(Uo,{...Sr,detail:{focusReason:r.value}});h.addEventListener(Uo,d),h.dispatchEvent(m),!m.defaultPrevented&&(r.value=="keyboard"||!ch()||h.contains(document.activeElement))&&He(i??document.body),h.removeEventListener(Uo,d),Mr.remove(s)}}return n.onMounted(()=>{e.trapped&&p(),n.watch(()=>e.trapped,h=>{h?p():g()})}),n.onBeforeUnmount(()=>{e.trapped&&g(),o.value&&(o.value.removeEventListener("keydown",l),o.value.removeEventListener("focusin",f),o.value.removeEventListener("focusout",u),o.value=void 0)}),{onKeydown:l}}});function uh(e,t,o,i,a,r){return n.renderSlot(e.$slots,"default",{handleKeydown:e.onKeydown})}var Br=F(fh,[["render",uh],["__file","focus-trap.vue"]]);const ph=["fixed","absolute"],hh=R({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:_(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:On,default:"bottom"},popperOptions:{type:_(Object),default:()=>({})},strategy:{type:String,values:ph,default:"absolute"}}),Nr=R({...hh,id:String,style:{type:_([String,Array,Object])},className:{type:_([String,Array,Object])},effect:{type:_(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:_([String,Array,Object])},popperStyle:{type:_([String,Array,Object])},referenceEl:{type:_(Object)},triggerTargetEl:{type:_(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...at(["ariaLabel"])}),mh={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},gh=(e,t=[])=>{const{placement:o,strategy:i,popperOptions:a}=e,r={placement:o,strategy:i,...a,modifiers:[...bh(e),...t]};return wh(r,a==null?void 0:a.modifiers),r},yh=e=>{if(K)return Oe(e)};function bh(e){const{offset:t,gpuAcceleration:o,fallbackPlacements:i}=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:i}},{name:"computeStyles",options:{gpuAcceleration:o}}]}function wh(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const Ch=0,vh=e=>{const{popperInstanceRef:t,contentRef:o,triggerRef:i,role:a}=n.inject(jo,void 0),r=n.ref(),s=n.ref(),l=n.computed(()=>({name:"eventListeners",enabled:!!e.visible})),c=n.computed(()=>{var b;const C=n.unref(r),I=(b=n.unref(s))!=null?b:Ch;return{name:"arrow",enabled:!Sa(C),options:{element:C,padding:I}}}),d=n.computed(()=>({onFirstUpdate:()=>{h()},...gh(e,[n.unref(c),n.unref(l)])})),f=n.computed(()=>yh(e.referenceEl)||n.unref(i)),{attributes:u,state:p,styles:g,update:h,forceUpdate:m,instanceRef:y}=lp(f,o,d);return n.watch(y,b=>t.value=b),n.onMounted(()=>{n.watch(()=>{var b;return(b=n.unref(f))==null?void 0:b.getBoundingClientRect()},()=>{h()})}),{attributes:u,arrowRef:r,contentRef:o,instanceRef:y,state:p,styles:g,role:a,forceUpdate:m,update:h}},Sh=(e,{attributes:t,styles:o,role:i})=>{const{nextZIndex:a}=Fo(),r=D("popper"),s=n.computed(()=>n.unref(t).popper),l=n.ref(G(e.zIndex)?e.zIndex:a()),c=n.computed(()=>[r.b(),r.is("pure",e.pure),r.is(e.effect),e.popperClass]),d=n.computed(()=>[{zIndex:n.unref(l)},n.unref(o).popper,e.popperStyle||{}]),f=n.computed(()=>i.value==="dialog"?"false":void 0),u=n.computed(()=>n.unref(o).arrow||{});return{ariaModal:f,arrowStyle:u,contentAttrs:s,contentClass:c,contentStyle:d,contentZIndex:l,updateZIndex:()=>{l.value=G(e.zIndex)?e.zIndex:a()}}},kh=(e,t)=>{const o=n.ref(!1),i=n.ref();return{focusStartRef:i,trapped:o,onFocusAfterReleased:d=>{var f;((f=d.detail)==null?void 0:f.focusReason)!=="pointer"&&(i.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:d=>{e.visible&&!o.value&&(d.target&&(i.value=d.target),o.value=!0)},onFocusoutPrevented:d=>{e.trapping||(d.detail.focusReason==="pointer"&&d.preventDefault(),o.value=!1)},onReleaseRequested:()=>{o.value=!1,t("close")}}},Eh=n.defineComponent({name:"ElPopperContent"}),Ih=n.defineComponent({...Eh,props:Nr,emits:mh,setup(e,{expose:t,emit:o}){const i=e,{focusStartRef:a,trapped:r,onFocusAfterReleased:s,onFocusAfterTrapped:l,onFocusInTrap:c,onFocusoutPrevented:d,onReleaseRequested:f}=kh(i,o),{attributes:u,arrowRef:p,contentRef:g,styles:h,instanceRef:m,role:y,update:b}=vh(i),{ariaModal:C,arrowStyle:I,contentAttrs:k,contentClass:v,contentStyle:S,updateZIndex:E}=Sh(i,{styles:h,attributes:u,role:y}),O=n.inject(Pn,void 0),x=n.ref();n.provide(gr,{arrowStyle:I,arrowRef:p,arrowOffset:x}),O&&n.provide(Pn,{...O,addInputId:Je,removeInputId:Je});let N;const B=(L=!0)=>{b(),L&&E()},T=()=>{B(!1),i.visible&&i.focusOnShow?r.value=!0:i.visible===!1&&(r.value=!1)};return n.onMounted(()=>{n.watch(()=>i.triggerTargetEl,(L,q)=>{N==null||N(),N=void 0;const V=n.unref(L||g.value),M=n.unref(q||g.value);Xe(V)&&(N=n.watch([y,()=>i.ariaLabel,C,()=>i.id],$=>{["role","aria-label","aria-modal","id"].forEach((pe,Y)=>{En($[Y])?V.removeAttribute(pe):V.setAttribute(pe,$[Y])})},{immediate:!0})),M!==V&&Xe(M)&&["role","aria-label","aria-modal","id"].forEach($=>{M.removeAttribute($)})},{immediate:!0}),n.watch(()=>i.visible,T,{immediate:!0})}),n.onBeforeUnmount(()=>{N==null||N(),N=void 0}),t({popperContentRef:g,popperInstanceRef:m,updatePopper:B,contentStyle:S}),(L,q)=>(n.openBlock(),n.createElementBlock("div",n.mergeProps({ref_key:"contentRef",ref:g},n.unref(k),{style:n.unref(S),class:n.unref(v),tabindex:"-1",onMouseenter:V=>L.$emit("mouseenter",V),onMouseleave:V=>L.$emit("mouseleave",V)}),[n.createVNode(n.unref(Br),{trapped:n.unref(r),"trap-on-focus-in":!0,"focus-trap-el":n.unref(g),"focus-start-el":n.unref(a),onFocusAfterTrapped:n.unref(l),onFocusAfterReleased:n.unref(s),onFocusin:n.unref(c),onFocusoutPrevented:n.unref(d),onReleaseRequested:n.unref(f)},{default:n.withCtx(()=>[n.renderSlot(L.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}});var Th=F(Ih,[["__file","content.vue"]]);const Ah=oe(Gp),Go=Symbol("elTooltip"),se=R({...hp,...Nr,appendTo:{type:_([String,Object])},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:_(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...at(["ariaLabel"])}),en=R({...vr,disabled:Boolean,trigger:{type:_([String,Array]),default:"hover"},triggerKeys:{type:_(Array),default:()=>[Kt.enter,Kt.space]}}),{useModelToggleProps:Oh,useModelToggleEmits:Mh,useModelToggle:xh}=au("visible"),Bh=R({...yr,...Oh,...se,...en,...br,showArrow:{type:Boolean,default:!0}}),Nh=[...Mh,"before-show","before-hide","show","hide","open","close"],_h=(e,t)=>ee(e)?e.includes(t):e===t,Ot=(e,t,o)=>i=>{_h(n.unref(e),t)&&o(i)},Lh=n.defineComponent({name:"ElTooltipTrigger"}),Ph=n.defineComponent({...Lh,props:en,setup(e,{expose:t}){const o=e,i=D("tooltip"),{controlled:a,id:r,open:s,onOpen:l,onClose:c,onToggle:d}=n.inject(Go,void 0),f=n.ref(null),u=()=>{if(n.unref(a)||o.disabled)return!0},p=n.toRef(o,"trigger"),g=Ae(u,Ot(p,"hover",l)),h=Ae(u,Ot(p,"hover",c)),m=Ae(u,Ot(p,"click",k=>{k.button===0&&d(k)})),y=Ae(u,Ot(p,"focus",l)),b=Ae(u,Ot(p,"focus",c)),C=Ae(u,Ot(p,"contextmenu",k=>{k.preventDefault(),d(k)})),I=Ae(u,k=>{const{code:v}=k;o.triggerKeys.includes(v)&&(k.preventDefault(),d(k))});return t({triggerRef:f}),(k,v)=>(n.openBlock(),n.createBlock(n.unref(th),{id:n.unref(r),"virtual-ref":k.virtualRef,open:n.unref(s),"virtual-triggering":k.virtualTriggering,class:n.normalizeClass(n.unref(i).e("trigger")),onBlur:n.unref(b),onClick:n.unref(m),onContextmenu:n.unref(C),onFocus:n.unref(y),onMouseenter:n.unref(g),onMouseleave:n.unref(h),onKeydown:n.unref(I)},{default:n.withCtx(()=>[n.renderSlot(k.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var Vh=F(Ph,[["__file","trigger.vue"]]);const Rh=R({to:{type:_([String,Object]),required:!0},disabled:Boolean});var Fh=F(n.defineComponent({__name:"teleport",props:Rh,setup(e){return(t,o)=>t.disabled?n.renderSlot(t.$slots,"default",{key:0}):(n.openBlock(),n.createBlock(n.Teleport,{key:1,to:t.to},[n.renderSlot(t.$slots,"default")],8,["to"]))}}),[["__file","teleport.vue"]]);const _r=oe(Fh),Dh=n.defineComponent({name:"ElTooltipContent",inheritAttrs:!1}),$h=n.defineComponent({...Dh,props:se,setup(e,{expose:t}){const o=e,{selector:i}=ar(),a=D("tooltip"),r=n.ref(null);let s;const{controlled:l,id:c,open:d,trigger:f,onClose:u,onOpen:p,onShow:g,onHide:h,onBeforeShow:m,onBeforeHide:y}=n.inject(Go,void 0),b=n.computed(()=>o.transition||`${a.namespace.value}-fade-in-linear`),C=n.computed(()=>process.env.NODE_ENV==="test"?!0:o.persistent);n.onBeforeUnmount(()=>{s==null||s()});const I=n.computed(()=>n.unref(C)?!0:n.unref(d)),k=n.computed(()=>o.disabled?!1:n.unref(d)),v=n.computed(()=>o.appendTo||i.value),S=n.computed(()=>{var M;return(M=o.style)!=null?M:{}}),E=n.ref(!0),O=()=>{h(),E.value=!0},x=()=>{if(n.unref(l))return!0},N=Ae(x,()=>{o.enterable&&n.unref(f)==="hover"&&p()}),B=Ae(x,()=>{n.unref(f)==="hover"&&u()}),T=()=>{var M,$;($=(M=r.value)==null?void 0:M.updatePopper)==null||$.call(M),m==null||m()},L=()=>{y==null||y()},q=()=>{g(),s=Bs(n.computed(()=>{var M;return(M=r.value)==null?void 0:M.popperContentRef}),()=>{if(n.unref(l))return;n.unref(f)!=="hover"&&u()})},V=()=>{o.virtualTriggering||u()};return n.watch(()=>n.unref(d),M=>{M?E.value=!1:s==null||s()},{flush:"post"}),n.watch(()=>o.content,()=>{var M,$;($=(M=r.value)==null?void 0:M.updatePopper)==null||$.call(M)}),t({contentRef:r}),(M,$)=>(n.openBlock(),n.createBlock(n.unref(_r),{disabled:!M.teleported,to:n.unref(v)},{default:n.withCtx(()=>[n.createVNode(n.Transition,{name:n.unref(b),onAfterLeave:O,onBeforeEnter:T,onAfterEnter:q,onBeforeLeave:L},{default:n.withCtx(()=>[n.unref(I)?n.withDirectives((n.openBlock(),n.createBlock(n.unref(Th),n.mergeProps({key:0,id:n.unref(c),ref_key:"contentRef",ref:r},M.$attrs,{"aria-label":M.ariaLabel,"aria-hidden":E.value,"boundaries-padding":M.boundariesPadding,"fallback-placements":M.fallbackPlacements,"gpu-acceleration":M.gpuAcceleration,offset:M.offset,placement:M.placement,"popper-options":M.popperOptions,strategy:M.strategy,effect:M.effect,enterable:M.enterable,pure:M.pure,"popper-class":M.popperClass,"popper-style":[M.popperStyle,n.unref(S)],"reference-el":M.referenceEl,"trigger-target-el":M.triggerTargetEl,visible:n.unref(k),"z-index":M.zIndex,onMouseenter:n.unref(N),onMouseleave:n.unref(B),onBlur:V,onClose:n.unref(u)}),{default:n.withCtx(()=>[n.renderSlot(M.$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"])),[[n.vShow,n.unref(k)]]):n.createCommentVNode("v-if",!0)]),_:3},8,["name"])]),_:3},8,["disabled","to"]))}});var zh=F($h,[["__file","content.vue"]]);const jh=n.defineComponent({name:"ElTooltip"}),Hh=n.defineComponent({...jh,props:Bh,emits:Nh,setup(e,{expose:t,emit:o}){const i=e;pp();const a=it(),r=n.ref(),s=n.ref(),l=()=>{var b;const C=n.unref(r);C&&((b=C.popperInstanceRef)==null||b.update())},c=n.ref(!1),d=n.ref(),{show:f,hide:u,hasUpdateHandler:p}=xh({indicator:c,toggleReason:d}),{onOpen:g,onClose:h}=mp({showAfter:n.toRef(i,"showAfter"),hideAfter:n.toRef(i,"hideAfter"),autoClose:n.toRef(i,"autoClose"),open:f,close:u}),m=n.computed(()=>_e(i.visible)&&!p.value);n.provide(Go,{controlled:m,id:a,open:n.readonly(c),trigger:n.toRef(i,"trigger"),onOpen:b=>{g(b)},onClose:b=>{h(b)},onToggle:b=>{n.unref(c)?h(b):g(b)},onShow:()=>{o("show",d.value)},onHide:()=>{o("hide",d.value)},onBeforeShow:()=>{o("before-show",d.value)},onBeforeHide:()=>{o("before-hide",d.value)},updatePopper:l}),n.watch(()=>i.disabled,b=>{b&&c.value&&(c.value=!1)});const y=b=>{var C,I;const k=(I=(C=s.value)==null?void 0:C.contentRef)==null?void 0:I.popperContentRef,v=(b==null?void 0:b.relatedTarget)||document.activeElement;return k&&k.contains(v)};return n.onDeactivated(()=>c.value&&u()),t({popperRef:r,contentRef:s,isFocusInsideContent:y,updatePopper:l,onOpen:g,onClose:h,hide:u}),(b,C)=>(n.openBlock(),n.createBlock(n.unref(Ah),{ref_key:"popperRef",ref:r,role:b.role},{default:n.withCtx(()=>[n.createVNode(Vh,{disabled:b.disabled,trigger:b.trigger,"trigger-keys":b.triggerKeys,"virtual-ref":b.virtualRef,"virtual-triggering":b.virtualTriggering},{default:n.withCtx(()=>[b.$slots.default?n.renderSlot(b.$slots,"default",{key:0}):n.createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),n.createVNode(zh,{ref_key:"contentRef",ref:s,"aria-label":b.ariaLabel,"boundaries-padding":b.boundariesPadding,content:b.content,disabled:b.disabled,effect:b.effect,enterable:b.enterable,"fallback-placements":b.fallbackPlacements,"hide-after":b.hideAfter,"gpu-acceleration":b.gpuAcceleration,offset:b.offset,persistent:b.persistent,"popper-class":b.popperClass,"popper-style":b.popperStyle,placement:b.placement,"popper-options":b.popperOptions,pure:b.pure,"raw-content":b.rawContent,"reference-el":b.referenceEl,"trigger-target-el":b.triggerTargetEl,"show-after":b.showAfter,strategy:b.strategy,teleported:b.teleported,transition:b.transition,"virtual-triggering":b.virtualTriggering,"z-index":b.zIndex,"append-to":b.appendTo},{default:n.withCtx(()=>[n.renderSlot(b.$slots,"content",{},()=>[b.rawContent?(n.openBlock(),n.createElementBlock("span",{key:0,innerHTML:b.content},null,8,["innerHTML"])):(n.openBlock(),n.createElementBlock("span",{key:1},n.toDisplayString(b.content),1))]),b.showArrow?(n.openBlock(),n.createBlock(n.unref(Zp),{key:0,"arrow-offset":b.arrowOffset},null,8,["arrow-offset"])):n.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 Kh=F(Hh,[["__file","tooltip.vue"]]);const Lr=oe(Kh),Pr=Symbol("buttonGroupContextKey"),Uh=(e,t)=>{yt({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},n.computed(()=>e.type==="text"));const o=n.inject(Pr,void 0),i=Ln("button"),{form:a}=Tt(),r=It(n.computed(()=>o==null?void 0:o.size)),s=Vn(),l=n.ref(),c=n.useSlots(),d=n.computed(()=>e.type||(o==null?void 0:o.type)||""),f=n.computed(()=>{var h,m,y;return(y=(m=e.autoInsertSpace)!=null?m:(h=i.value)==null?void 0:h.autoInsertSpace)!=null?y:!1}),u=n.computed(()=>e.tag==="button"?{ariaDisabled:s.value||e.loading,disabled:s.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),p=n.computed(()=>{var h;const m=(h=c.default)==null?void 0:h.call(c);if(f.value&&(m==null?void 0:m.length)===1){const y=m[0];if((y==null?void 0:y.type)===n.Text){const b=y.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(b.trim())}}return!1});return{_disabled:s,_size:r,_type:d,_ref:l,_props:u,shouldAddSpace:p,handleClick:h=>{if(s.value||e.loading){h.stopPropagation();return}e.nativeType==="reset"&&(a==null||a.resetFields()),t("click",h)}}},Jo=R({size:Et,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:gt},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:gt,default:()=>W.Loading},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:_([String,Object]),default:"button"}}),Wh={click:e=>e instanceof MouseEvent};function J(e,t){qh(e)&&(e="100%");var o=Gh(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),o&&(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 jn(e){return Math.min(1,Math.max(0,e))}function qh(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Gh(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Vr(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Hn(e){return e<=1?"".concat(Number(e)*100,"%"):e}function rt(e){return e.length===1?"0"+e:String(e)}function Jh(e,t,o){return{r:J(e,255)*255,g:J(t,255)*255,b:J(o,255)*255}}function Rr(e,t,o){e=J(e,255),t=J(t,255),o=J(o,255);var i=Math.max(e,t,o),a=Math.min(e,t,o),r=0,s=0,l=(i+a)/2;if(i===a)s=0,r=0;else{var c=i-a;switch(s=l>.5?c/(2-i-a):c/(i+a),i){case e:r=(t-o)/c+(t<o?6:0);break;case t:r=(o-e)/c+2;break;case o:r=(e-t)/c+4;break}r/=6}return{h:r,s,l}}function Yo(e,t,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+(t-e)*(6*o):o<1/2?t:o<2/3?e+(t-e)*(2/3-o)*6:e}function Yh(e,t,o){var i,a,r;if(e=J(e,360),t=J(t,100),o=J(o,100),t===0)a=o,r=o,i=o;else{var s=o<.5?o*(1+t):o+t-o*t,l=2*o-s;i=Yo(l,s,e+1/3),a=Yo(l,s,e),r=Yo(l,s,e-1/3)}return{r:i*255,g:a*255,b:r*255}}function Fr(e,t,o){e=J(e,255),t=J(t,255),o=J(o,255);var i=Math.max(e,t,o),a=Math.min(e,t,o),r=0,s=i,l=i-a,c=i===0?0:l/i;if(i===a)r=0;else{switch(i){case e:r=(t-o)/l+(t<o?6:0);break;case t:r=(o-e)/l+2;break;case o:r=(e-t)/l+4;break}r/=6}return{h:r,s:c,v:s}}function Zh(e,t,o){e=J(e,360)*6,t=J(t,100),o=J(o,100);var i=Math.floor(e),a=e-i,r=o*(1-t),s=o*(1-a*t),l=o*(1-(1-a)*t),c=i%6,d=[o,s,r,r,l,o][c],f=[l,o,o,s,r,r][c],u=[r,r,l,o,o,s][c];return{r:d*255,g:f*255,b:u*255}}function Dr(e,t,o,i){var a=[rt(Math.round(e).toString(16)),rt(Math.round(t).toString(16)),rt(Math.round(o).toString(16))];return i&&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 Qh(e,t,o,i,a){var r=[rt(Math.round(e).toString(16)),rt(Math.round(t).toString(16)),rt(Math.round(o).toString(16)),rt(Xh(i))];return a&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))&&r[3].startsWith(r[3].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0)+r[3].charAt(0):r.join("")}function Xh(e){return Math.round(parseFloat(e)*255).toString(16)}function $r(e){return le(e)/255}function le(e){return parseInt(e,16)}function em(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Zo={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 tm(e){var t={r:0,g:0,b:0},o=1,i=null,a=null,r=null,s=!1,l=!1;return typeof e=="string"&&(e=im(e)),typeof e=="object"&&(Pe(e.r)&&Pe(e.g)&&Pe(e.b)?(t=Jh(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Pe(e.h)&&Pe(e.s)&&Pe(e.v)?(i=Hn(e.s),a=Hn(e.v),t=Zh(e.h,i,a),s=!0,l="hsv"):Pe(e.h)&&Pe(e.s)&&Pe(e.l)&&(i=Hn(e.s),r=Hn(e.l),t=Yh(e.h,i,r),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(o=e.a)),o=Vr(o),{ok:s,format:e.format||l,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:o}}var nm="[-\\+]?\\d+%?",om="[-\\+]?\\d*\\.\\d+%?",Ke="(?:".concat(om,")|(?:").concat(nm,")"),Qo="[\\s|\\(]+(".concat(Ke,")[,|\\s]+(").concat(Ke,")[,|\\s]+(").concat(Ke,")\\s*\\)?"),Xo="[\\s|\\(]+(".concat(Ke,")[,|\\s]+(").concat(Ke,")[,|\\s]+(").concat(Ke,")[,|\\s]+(").concat(Ke,")\\s*\\)?"),we={CSS_UNIT:new RegExp(Ke),rgb:new RegExp("rgb"+Qo),rgba:new RegExp("rgba"+Xo),hsl:new RegExp("hsl"+Qo),hsla:new RegExp("hsla"+Xo),hsv:new RegExp("hsv"+Qo),hsva:new RegExp("hsva"+Xo),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 im(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Zo[e])e=Zo[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var o=we.rgb.exec(e);return o?{r:o[1],g:o[2],b:o[3]}:(o=we.rgba.exec(e),o?{r:o[1],g:o[2],b:o[3],a:o[4]}:(o=we.hsl.exec(e),o?{h:o[1],s:o[2],l:o[3]}:(o=we.hsla.exec(e),o?{h:o[1],s:o[2],l:o[3],a:o[4]}:(o=we.hsv.exec(e),o?{h:o[1],s:o[2],v:o[3]}:(o=we.hsva.exec(e),o?{h:o[1],s:o[2],v:o[3],a:o[4]}:(o=we.hex8.exec(e),o?{r:le(o[1]),g:le(o[2]),b:le(o[3]),a:$r(o[4]),format:t?"name":"hex8"}:(o=we.hex6.exec(e),o?{r:le(o[1]),g:le(o[2]),b:le(o[3]),format:t?"name":"hex"}:(o=we.hex4.exec(e),o?{r:le(o[1]+o[1]),g:le(o[2]+o[2]),b:le(o[3]+o[3]),a:$r(o[4]+o[4]),format:t?"name":"hex8"}:(o=we.hex3.exec(e),o?{r:le(o[1]+o[1]),g:le(o[2]+o[2]),b:le(o[3]+o[3]),format:t?"name":"hex"}:!1)))))))))}function Pe(e){return!!we.CSS_UNIT.exec(String(e))}var am=function(){function e(t,o){t===void 0&&(t=""),o===void 0&&(o={});var i;if(t instanceof e)return t;typeof t=="number"&&(t=em(t)),this.originalInput=t;var a=tm(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=(i=o.format)!==null&&i!==void 0?i:a.format,this.gradientType=o.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(),o,i,a,r=t.r/255,s=t.g/255,l=t.b/255;return r<=.03928?o=r/12.92:o=Math.pow((r+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),l<=.03928?a=l/12.92:a=Math.pow((l+.055)/1.055,2.4),.2126*o+.7152*i+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Vr(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=Fr(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=Fr(this.r,this.g,this.b),o=Math.round(t.h*360),i=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(o,", ").concat(i,"%, ").concat(a,"%)"):"hsva(".concat(o,", ").concat(i,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Rr(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=Rr(this.r,this.g,this.b),o=Math.round(t.h*360),i=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(o,", ").concat(i,"%, ").concat(a,"%)"):"hsla(".concat(o,", ").concat(i,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Dr(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),Qh(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),o=Math.round(this.g),i=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(o,", ").concat(i,")"):"rgba(".concat(t,", ").concat(o,", ").concat(i,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(o){return"".concat(Math.round(J(o,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(o){return Math.round(J(o,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="#"+Dr(this.r,this.g,this.b,!1),o=0,i=Object.entries(Zo);o<i.length;o++){var a=i[o],r=a[0],s=a[1];if(t===s)return r}return!1},e.prototype.toString=function(t){var o=!!t;t=t??this.format;var i=!1,a=this.a<1&&this.a>=0,r=!o&&a&&(t.startsWith("hex")||t==="name");return r?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(i=this.toRgbString()),t==="prgb"&&(i=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(i=this.toHexString()),t==="hex3"&&(i=this.toHexString(!0)),t==="hex4"&&(i=this.toHex8String(!0)),t==="hex8"&&(i=this.toHex8String()),t==="name"&&(i=this.toName()),t==="hsl"&&(i=this.toHslString()),t==="hsv"&&(i=this.toHsvString()),i||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 o=this.toHsl();return o.l+=t/100,o.l=jn(o.l),new e(o)},e.prototype.brighten=function(t){t===void 0&&(t=10);var o=this.toRgb();return o.r=Math.max(0,Math.min(255,o.r-Math.round(255*-(t/100)))),o.g=Math.max(0,Math.min(255,o.g-Math.round(255*-(t/100)))),o.b=Math.max(0,Math.min(255,o.b-Math.round(255*-(t/100)))),new e(o)},e.prototype.darken=function(t){t===void 0&&(t=10);var o=this.toHsl();return o.l-=t/100,o.l=jn(o.l),new e(o)},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 o=this.toHsl();return o.s-=t/100,o.s=jn(o.s),new e(o)},e.prototype.saturate=function(t){t===void 0&&(t=10);var o=this.toHsl();return o.s+=t/100,o.s=jn(o.s),new e(o)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var o=this.toHsl(),i=(o.h+t)%360;return o.h=i<0?360+i:i,new e(o)},e.prototype.mix=function(t,o){o===void 0&&(o=50);var i=this.toRgb(),a=new e(t).toRgb(),r=o/100,s={r:(a.r-i.r)*r+i.r,g:(a.g-i.g)*r+i.g,b:(a.b-i.b)*r+i.b,a:(a.a-i.a)*r+i.a};return new e(s)},e.prototype.analogous=function(t,o){t===void 0&&(t=6),o===void 0&&(o=30);var i=this.toHsl(),a=360/o,r=[this];for(i.h=(i.h-(a*t>>1)+720)%360;--t;)i.h=(i.h+a)%360,r.push(new e(i));return r},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 o=this.toHsv(),i=o.h,a=o.s,r=o.v,s=[],l=1/t;t--;)s.push(new e({h:i,s:a,v:r})),r=(r+l)%1;return s},e.prototype.splitcomplement=function(){var t=this.toHsl(),o=t.h;return[this,new e({h:(o+72)%360,s:t.s,l:t.l}),new e({h:(o+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var o=this.toRgb(),i=new e(t).toRgb(),a=o.a+i.a*(1-o.a);return new e({r:(o.r*o.a+i.r*i.a*(1-o.a))/a,g:(o.g*o.a+i.g*i.a*(1-o.a))/a,b:(o.b*o.a+i.b*i.a*(1-o.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 o=this.toHsl(),i=o.h,a=[this],r=360/t,s=1;s<t;s++)a.push(new e({h:(i+s*r)%360,s:o.s,l:o.l}));return a},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function Ue(e,t=20){return e.mix("#141414",t).toString()}function rm(e){const t=Vn(),o=D("button");return n.computed(()=>{let i={},a=e.color;if(a){const r=a.match(/var\((.*?)\)/);r&&(a=window.getComputedStyle(window.document.documentElement).getPropertyValue(r[1]));const s=new am(a),l=e.dark?s.tint(20).toString():Ue(s,20);if(e.plain)i=o.cssVarBlock({"bg-color":e.dark?Ue(s,90):s.tint(90).toString(),"text-color":a,"border-color":e.dark?Ue(s,50):s.tint(50).toString(),"hover-text-color":`var(${o.cssVarName("color-white")})`,"hover-bg-color":a,"hover-border-color":a,"active-bg-color":l,"active-text-color":`var(${o.cssVarName("color-white")})`,"active-border-color":l}),t.value&&(i[o.cssVarBlockName("disabled-bg-color")]=e.dark?Ue(s,90):s.tint(90).toString(),i[o.cssVarBlockName("disabled-text-color")]=e.dark?Ue(s,50):s.tint(50).toString(),i[o.cssVarBlockName("disabled-border-color")]=e.dark?Ue(s,80):s.tint(80).toString());else{const c=e.dark?Ue(s,30):s.tint(30).toString(),d=s.isDark()?`var(${o.cssVarName("color-white")})`:`var(${o.cssVarName("color-black")})`;if(i=o.cssVarBlock({"bg-color":a,"text-color":d,"border-color":a,"hover-bg-color":c,"hover-text-color":d,"hover-border-color":c,"active-bg-color":l,"active-border-color":l}),t.value){const f=e.dark?Ue(s,50):s.tint(50).toString();i[o.cssVarBlockName("disabled-bg-color")]=f,i[o.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${o.cssVarName("color-white")})`,i[o.cssVarBlockName("disabled-border-color")]=f}}}return i})}const sm=n.defineComponent({name:"ElButton"}),lm=n.defineComponent({...sm,props:Jo,emits:Wh,setup(e,{expose:t,emit:o}){const i=e,a=rm(i),r=D("button"),{_ref:s,_size:l,_type:c,_disabled:d,_props:f,shouldAddSpace:u,handleClick:p}=Uh(i,o),g=n.computed(()=>[r.b(),r.m(c.value),r.m(l.value),r.is("disabled",d.value),r.is("loading",i.loading),r.is("plain",i.plain),r.is("round",i.round),r.is("circle",i.circle),r.is("text",i.text),r.is("link",i.link),r.is("has-bg",i.bg)]);return t({ref:s,size:l,type:c,disabled:d,shouldAddSpace:u}),(h,m)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(h.tag),n.mergeProps({ref_key:"_ref",ref:s},n.unref(f),{class:n.unref(g),style:n.unref(a),onClick:n.unref(p)}),{default:n.withCtx(()=>[h.loading?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[h.$slots.loading?n.renderSlot(h.$slots,"loading",{key:0}):(n.openBlock(),n.createBlock(n.unref(be),{key:1,class:n.normalizeClass(n.unref(r).is("loading"))},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(h.loadingIcon)))]),_:1},8,["class"]))],64)):h.icon||h.$slots.icon?(n.openBlock(),n.createBlock(n.unref(be),{key:1},{default:n.withCtx(()=>[h.icon?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(h.icon),{key:0})):n.renderSlot(h.$slots,"icon",{key:1})]),_:3})):n.createCommentVNode("v-if",!0),h.$slots.default?(n.openBlock(),n.createElementBlock("span",{key:2,class:n.normalizeClass({[n.unref(r).em("text","expand")]:n.unref(u)})},[n.renderSlot(h.$slots,"default")],2)):n.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var cm=F(lm,[["__file","button.vue"]]);const dm={size:Jo.size,type:Jo.type},fm=n.defineComponent({name:"ElButtonGroup"}),um=n.defineComponent({...fm,props:dm,setup(e){const t=e;n.provide(Pr,n.reactive({size:n.toRef(t,"size"),type:n.toRef(t,"type")}));const o=D("button");return(i,a)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(n.unref(o).b("group"))},[n.renderSlot(i.$slots,"default")],2))}});var zr=F(um,[["__file","button-group.vue"]]);const ei=oe(cm,{ButtonGroup:zr});tt(zr);var pm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const We=new Map;if(K){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const o of We.values())for(const{documentHandler:i}of o)i(t,e);e=void 0}})}function jr(e,t){let o=[];return Array.isArray(t.arg)?o=t.arg:Xe(t.arg)&&o.push(t.arg),function(i,a){const r=t.instance.popperRef,s=i.target,l=a==null?void 0:a.target,c=!t||!t.instance,d=!s||!l,f=e.contains(s)||e.contains(l),u=e===s,p=o.length&&o.some(h=>h==null?void 0:h.contains(s))||o.length&&o.includes(l),g=r&&(r.contains(s)||r.contains(l));c||d||f||u||p||g||t.value(i,a)}}const mm={beforeMount(e,t){We.has(e)||We.set(e,[]),We.get(e).push({documentHandler:jr(e,t),bindingFn:t.value})},updated(e,t){We.has(e)||We.set(e,[]);const o=We.get(e),i=o.findIndex(r=>r.bindingFn===t.oldValue),a={documentHandler:jr(e,t),bindingFn:t.value};i>=0?o.splice(i,1,a):o.push(a)},unmounted(e){We.delete(e)}},Hr={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:Et,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...at(["ariaControls"])},Kr={[X]:e=>me(e)||G(e)||_e(e),change:e=>me(e)||G(e)||_e(e)},Mt=Symbol("checkboxGroupContextKey"),gm=({model:e,isChecked:t})=>{const o=n.inject(Mt,void 0),i=n.computed(()=>{var r,s;const l=(r=o==null?void 0:o.max)==null?void 0:r.value,c=(s=o==null?void 0:o.min)==null?void 0:s.value;return!ze(l)&&e.value.length>=l&&!t.value||!ze(c)&&e.value.length<=c&&t.value});return{isDisabled:Vn(n.computed(()=>(o==null?void 0:o.disabled.value)||i.value)),isLimitDisabled:i}},ym=(e,{model:t,isLimitExceeded:o,hasOwnLabel:i,isDisabled:a,isLabeledByFormItem:r})=>{const s=n.inject(Mt,void 0),{formItem:l}=Tt(),{emit:c}=n.getCurrentInstance();function d(h){var m,y,b,C;return[!0,e.trueValue,e.trueLabel].includes(h)?(y=(m=e.trueValue)!=null?m:e.trueLabel)!=null?y:!0:(C=(b=e.falseValue)!=null?b:e.falseLabel)!=null?C:!1}function f(h,m){c("change",d(h),m)}function u(h){if(o.value)return;const m=h.target;c("change",d(m.checked),h)}async function p(h){o.value||!i.value&&!a.value&&r.value&&(h.composedPath().some(b=>b.tagName==="LABEL")||(t.value=d([!1,e.falseValue,e.falseLabel].includes(t.value)),await n.nextTick(),f(t.value,h)))}const g=n.computed(()=>(s==null?void 0:s.validateEvent)||e.validateEvent);return n.watch(()=>e.modelValue,()=>{g.value&&(l==null||l.validate("change").catch(h=>ne(h)))}),{handleChange:u,onClickRoot:p}},bm=e=>{const t=n.ref(!1),{emit:o}=n.getCurrentInstance(),i=n.inject(Mt,void 0),a=n.computed(()=>ze(i)===!1),r=n.ref(!1),s=n.computed({get(){var l,c;return a.value?(l=i==null?void 0:i.modelValue)==null?void 0:l.value:(c=e.modelValue)!=null?c:t.value},set(l){var c,d;a.value&&ee(l)?(r.value=((c=i==null?void 0:i.max)==null?void 0:c.value)!==void 0&&l.length>(i==null?void 0:i.max.value)&&l.length>s.value.length,r.value===!1&&((d=i==null?void 0:i.changeEvent)==null||d.call(i,l))):(o(X,l),t.value=l)}});return{model:s,isGroup:a,isLimitExceeded:r}},wm=(e,t,{model:o})=>{const i=n.inject(Mt,void 0),a=n.ref(!1),r=n.computed(()=>jt(e.value)?e.label:e.value),s=n.computed(()=>{const f=o.value;return _e(f)?f:ee(f)?te(r.value)?f.map(n.toRaw).some(u=>kn(u,r.value)):f.map(n.toRaw).includes(r.value):f!=null?f===e.trueValue||f===e.trueLabel:!!f}),l=It(n.computed(()=>{var f;return(f=i==null?void 0:i.size)==null?void 0:f.value}),{prop:!0}),c=It(n.computed(()=>{var f;return(f=i==null?void 0:i.size)==null?void 0:f.value})),d=n.computed(()=>!!t.default||!jt(r.value));return{checkboxButtonSize:l,isChecked:s,isFocused:a,checkboxSize:c,hasOwnLabel:d,actualValue:r}},Ur=(e,t)=>{const{formItem:o}=Tt(),{model:i,isGroup:a,isLimitExceeded:r}=bm(e),{isFocused:s,isChecked:l,checkboxButtonSize:c,checkboxSize:d,hasOwnLabel:f,actualValue:u}=wm(e,t,{model:i}),{isDisabled:p}=gm({model:i,isChecked:l}),{inputId:g,isLabeledByFormItem:h}=Rn(e,{formItemContext:o,disableIdGeneration:f,disableIdManagement:a}),{handleChange:m,onClickRoot:y}=ym(e,{model:i,isLimitExceeded:r,hasOwnLabel:f,isDisabled:p,isLabeledByFormItem:h});return(()=>{function C(){var I,k;ee(i.value)&&!i.value.includes(u.value)?i.value.push(u.value):i.value=(k=(I=e.trueValue)!=null?I:e.trueLabel)!=null?k:!0}e.checked&&C()})(),yt({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},n.computed(()=>a.value&&jt(e.value))),yt({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},n.computed(()=>!!e.trueLabel)),yt({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},n.computed(()=>!!e.falseLabel)),{inputId:g,isLabeledByFormItem:h,isChecked:l,isDisabled:p,isFocused:s,checkboxButtonSize:c,checkboxSize:d,hasOwnLabel:f,model:i,actualValue:u,handleChange:m,onClickRoot:y}},Cm=n.defineComponent({name:"ElCheckbox"}),vm=n.defineComponent({...Cm,props:Hr,emits:Kr,setup(e){const t=e,o=n.useSlots(),{inputId:i,isLabeledByFormItem:a,isChecked:r,isDisabled:s,isFocused:l,checkboxSize:c,hasOwnLabel:d,model:f,actualValue:u,handleChange:p,onClickRoot:g}=Ur(t,o),h=D("checkbox"),m=n.computed(()=>[h.b(),h.m(c.value),h.is("disabled",s.value),h.is("bordered",t.border),h.is("checked",r.value)]),y=n.computed(()=>[h.e("input"),h.is("disabled",s.value),h.is("checked",r.value),h.is("indeterminate",t.indeterminate),h.is("focus",l.value)]);return(b,C)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(!n.unref(d)&&n.unref(a)?"span":"label"),{class:n.normalizeClass(n.unref(m)),"aria-controls":b.indeterminate?b.ariaControls:null,onClick:n.unref(g)},{default:n.withCtx(()=>{var I,k,v,S;return[n.createElementVNode("span",{class:n.normalizeClass(n.unref(y))},[b.trueValue||b.falseValue||b.trueLabel||b.falseLabel?n.withDirectives((n.openBlock(),n.createElementBlock("input",{key:0,id:n.unref(i),"onUpdate:modelValue":E=>n.isRef(f)?f.value=E:null,class:n.normalizeClass(n.unref(h).e("original")),type:"checkbox",indeterminate:b.indeterminate,name:b.name,tabindex:b.tabindex,disabled:n.unref(s),"true-value":(k=(I=b.trueValue)!=null?I:b.trueLabel)!=null?k:!0,"false-value":(S=(v=b.falseValue)!=null?v:b.falseLabel)!=null?S:!1,onChange:n.unref(p),onFocus:E=>l.value=!0,onBlur:E=>l.value=!1,onClick:n.withModifiers(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[n.vModelCheckbox,n.unref(f)]]):n.withDirectives((n.openBlock(),n.createElementBlock("input",{key:1,id:n.unref(i),"onUpdate:modelValue":E=>n.isRef(f)?f.value=E:null,class:n.normalizeClass(n.unref(h).e("original")),type:"checkbox",indeterminate:b.indeterminate,disabled:n.unref(s),value:n.unref(u),name:b.name,tabindex:b.tabindex,onChange:n.unref(p),onFocus:E=>l.value=!0,onBlur:E=>l.value=!1,onClick:n.withModifiers(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","disabled","value","name","tabindex","onChange","onFocus","onBlur","onClick"])),[[n.vModelCheckbox,n.unref(f)]]),n.createElementVNode("span",{class:n.normalizeClass(n.unref(h).e("inner"))},null,2)],2),n.unref(d)?(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass(n.unref(h).e("label"))},[n.renderSlot(b.$slots,"default"),b.$slots.default?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(b.label),1)],64))],2)):n.createCommentVNode("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}});var Sm=F(vm,[["__file","checkbox.vue"]]);const km=n.defineComponent({name:"ElCheckboxButton"}),Em=n.defineComponent({...km,props:Hr,emits:Kr,setup(e){const t=e,o=n.useSlots(),{isFocused:i,isChecked:a,isDisabled:r,checkboxButtonSize:s,model:l,actualValue:c,handleChange:d}=Ur(t,o),f=n.inject(Mt,void 0),u=D("checkbox"),p=n.computed(()=>{var h,m,y,b;const C=(m=(h=f==null?void 0:f.fill)==null?void 0:h.value)!=null?m:"";return{backgroundColor:C,borderColor:C,color:(b=(y=f==null?void 0:f.textColor)==null?void 0:y.value)!=null?b:"",boxShadow:C?`-1px 0 0 0 ${C}`:void 0}}),g=n.computed(()=>[u.b("button"),u.bm("button",s.value),u.is("disabled",r.value),u.is("checked",a.value),u.is("focus",i.value)]);return(h,m)=>{var y,b,C,I;return n.openBlock(),n.createElementBlock("label",{class:n.normalizeClass(n.unref(g))},[h.trueValue||h.falseValue||h.trueLabel||h.falseLabel?n.withDirectives((n.openBlock(),n.createElementBlock("input",{key:0,"onUpdate:modelValue":k=>n.isRef(l)?l.value=k:null,class:n.normalizeClass(n.unref(u).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:n.unref(r),"true-value":(b=(y=h.trueValue)!=null?y:h.trueLabel)!=null?b:!0,"false-value":(I=(C=h.falseValue)!=null?C:h.falseLabel)!=null?I:!1,onChange:n.unref(d),onFocus:k=>i.value=!0,onBlur:k=>i.value=!1,onClick:n.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[n.vModelCheckbox,n.unref(l)]]):n.withDirectives((n.openBlock(),n.createElementBlock("input",{key:1,"onUpdate:modelValue":k=>n.isRef(l)?l.value=k:null,class:n.normalizeClass(n.unref(u).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:n.unref(r),value:n.unref(c),onChange:n.unref(d),onFocus:k=>i.value=!0,onBlur:k=>i.value=!1,onClick:n.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","value","onChange","onFocus","onBlur","onClick"])),[[n.vModelCheckbox,n.unref(l)]]),h.$slots.default||h.label?(n.openBlock(),n.createElementBlock("span",{key:2,class:n.normalizeClass(n.unref(u).be("button","inner")),style:n.normalizeStyle(n.unref(a)?n.unref(p):void 0)},[n.renderSlot(h.$slots,"default",{},()=>[n.createTextVNode(n.toDisplayString(h.label),1)])],6)):n.createCommentVNode("v-if",!0)],2)}}});var Wr=F(Em,[["__file","checkbox-button.vue"]]);const Im=R({modelValue:{type:_(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Et,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},...at(["ariaLabel"])}),Tm={[X]:e=>ee(e),change:e=>ee(e)},Am=n.defineComponent({name:"ElCheckboxGroup"}),Om=n.defineComponent({...Am,props:Im,emits:Tm,setup(e,{emit:t}){const o=e,i=D("checkbox"),{formItem:a}=Tt(),{inputId:r,isLabeledByFormItem:s}=Rn(o,{formItemContext:a}),l=async d=>{t(X,d),await n.nextTick(),t("change",d)},c=n.computed({get(){return o.modelValue},set(d){l(d)}});return n.provide(Mt,{...ka(n.toRefs(o),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:c,changeEvent:l}),n.watch(()=>o.modelValue,()=>{o.validateEvent&&(a==null||a.validate("change").catch(d=>ne(d)))}),(d,f)=>{var u;return n.openBlock(),n.createBlock(n.resolveDynamicComponent(d.tag),{id:n.unref(r),class:n.normalizeClass(n.unref(i).b("group")),role:"group","aria-label":n.unref(s)?void 0:d.ariaLabel||"checkbox-group","aria-labelledby":n.unref(s)?(u=n.unref(a))==null?void 0:u.labelId:void 0},{default:n.withCtx(()=>[n.renderSlot(d.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var qr=F(Om,[["__file","checkbox-group.vue"]]);const Gr=oe(Sm,{CheckboxButton:Wr,CheckboxGroup:qr});tt(Wr);const Jr=tt(qr),Yr=R({modelValue:{type:[String,Number,Boolean],default:void 0},size:Et,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),Mm=R({...Yr,border:Boolean}),Zr={[X]:e=>me(e)||G(e)||_e(e),[Io]:e=>me(e)||G(e)||_e(e)},Qr=Symbol("radioGroupKey"),Xr=(e,t)=>{const o=n.ref(),i=n.inject(Qr,void 0),a=n.computed(()=>!!i),r=n.computed(()=>jt(e.value)?e.label:e.value),s=n.computed({get(){return a.value?i.modelValue:e.modelValue},set(u){a.value?i.changeEvent(u):t&&t(X,u),o.value.checked=e.modelValue===r.value}}),l=It(n.computed(()=>i==null?void 0:i.size)),c=Vn(n.computed(()=>i==null?void 0:i.disabled)),d=n.ref(!1),f=n.computed(()=>c.value||a.value&&s.value!==r.value?-1:0);return yt({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},n.computed(()=>a.value&&jt(e.value))),{radioRef:o,isGroup:a,radioGroup:i,focus:d,size:l,disabled:c,tabIndex:f,modelValue:s,actualValue:r}},xm=n.defineComponent({name:"ElRadio"}),Bm=n.defineComponent({...xm,props:Mm,emits:Zr,setup(e,{emit:t}){const o=e,i=D("radio"),{radioRef:a,radioGroup:r,focus:s,size:l,disabled:c,modelValue:d,actualValue:f}=Xr(o,t);function u(){n.nextTick(()=>t("change",d.value))}return(p,g)=>{var h;return n.openBlock(),n.createElementBlock("label",{class:n.normalizeClass([n.unref(i).b(),n.unref(i).is("disabled",n.unref(c)),n.unref(i).is("focus",n.unref(s)),n.unref(i).is("bordered",p.border),n.unref(i).is("checked",n.unref(d)===n.unref(f)),n.unref(i).m(n.unref(l))])},[n.createElementVNode("span",{class:n.normalizeClass([n.unref(i).e("input"),n.unref(i).is("disabled",n.unref(c)),n.unref(i).is("checked",n.unref(d)===n.unref(f))])},[n.withDirectives(n.createElementVNode("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":m=>n.isRef(d)?d.value=m:null,class:n.normalizeClass(n.unref(i).e("original")),value:n.unref(f),name:p.name||((h=n.unref(r))==null?void 0:h.name),disabled:n.unref(c),checked:n.unref(d)===n.unref(f),type:"radio",onFocus:m=>s.value=!0,onBlur:m=>s.value=!1,onChange:u,onClick:n.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","checked","onFocus","onBlur","onClick"]),[[n.vModelRadio,n.unref(d)]]),n.createElementVNode("span",{class:n.normalizeClass(n.unref(i).e("inner"))},null,2)],2),n.createElementVNode("span",{class:n.normalizeClass(n.unref(i).e("label")),onKeydown:n.withModifiers(()=>{},["stop"])},[n.renderSlot(p.$slots,"default",{},()=>[n.createTextVNode(n.toDisplayString(p.label),1)])],42,["onKeydown"])],2)}}});var Nm=F(Bm,[["__file","radio.vue"]]);const _m=R({...Yr}),Lm=n.defineComponent({name:"ElRadioButton"}),Pm=n.defineComponent({...Lm,props:_m,setup(e){const t=e,o=D("radio"),{radioRef:i,focus:a,size:r,disabled:s,modelValue:l,radioGroup:c,actualValue:d}=Xr(t),f=n.computed(()=>({backgroundColor:(c==null?void 0:c.fill)||"",borderColor:(c==null?void 0:c.fill)||"",boxShadow:c!=null&&c.fill?`-1px 0 0 0 ${c.fill}`:"",color:(c==null?void 0:c.textColor)||""}));return(u,p)=>{var g;return n.openBlock(),n.createElementBlock("label",{class:n.normalizeClass([n.unref(o).b("button"),n.unref(o).is("active",n.unref(l)===n.unref(d)),n.unref(o).is("disabled",n.unref(s)),n.unref(o).is("focus",n.unref(a)),n.unref(o).bm("button",n.unref(r))])},[n.withDirectives(n.createElementVNode("input",{ref_key:"radioRef",ref:i,"onUpdate:modelValue":h=>n.isRef(l)?l.value=h:null,class:n.normalizeClass(n.unref(o).be("button","original-radio")),value:n.unref(d),type:"radio",name:u.name||((g=n.unref(c))==null?void 0:g.name),disabled:n.unref(s),onFocus:h=>a.value=!0,onBlur:h=>a.value=!1,onClick:n.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","onFocus","onBlur","onClick"]),[[n.vModelRadio,n.unref(l)]]),n.createElementVNode("span",{class:n.normalizeClass(n.unref(o).be("button","inner")),style:n.normalizeStyle(n.unref(l)===n.unref(d)?n.unref(f):{}),onKeydown:n.withModifiers(()=>{},["stop"])},[n.renderSlot(u.$slots,"default",{},()=>[n.createTextVNode(n.toDisplayString(u.label),1)])],46,["onKeydown"])],2)}}});var es=F(Pm,[["__file","radio-button.vue"]]);const Vm=R({id:{type:String,default:void 0},size:Et,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},...at(["ariaLabel"])}),Rm=Zr,Fm=n.defineComponent({name:"ElRadioGroup"}),Dm=n.defineComponent({...Fm,props:Vm,emits:Rm,setup(e,{emit:t}){const o=e,i=D("radio"),a=it(),r=n.ref(),{formItem:s}=Tt(),{inputId:l,isLabeledByFormItem:c}=Rn(o,{formItemContext:s}),d=u=>{t(X,u),n.nextTick(()=>t("change",u))};n.onMounted(()=>{const u=r.value.querySelectorAll("[type=radio]"),p=u[0];!Array.from(u).some(g=>g.checked)&&p&&(p.tabIndex=0)});const f=n.computed(()=>o.name||a.value);return n.provide(Qr,n.reactive({...n.toRefs(o),changeEvent:d,name:f})),n.watch(()=>o.modelValue,()=>{o.validateEvent&&(s==null||s.validate("change").catch(u=>ne(u)))}),(u,p)=>(n.openBlock(),n.createElementBlock("div",{id:n.unref(l),ref_key:"radioGroupRef",ref:r,class:n.normalizeClass(n.unref(i).b("group")),role:"radiogroup","aria-label":n.unref(c)?void 0:u.ariaLabel||"radio-group","aria-labelledby":n.unref(c)?n.unref(s).labelId:void 0},[n.renderSlot(u.$slots,"default")],10,["id","aria-label","aria-labelledby"]))}});var ts=F(Dm,[["__file","radio-group.vue"]]);const ns=oe(Nm,{RadioButton:es,RadioGroup:ts}),os=tt(ts);tt(es);const ti=R({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:xa},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),$m={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},zm=n.defineComponent({name:"ElTag"}),jm=n.defineComponent({...zm,props:ti,emits:$m,setup(e,{emit:t}){const o=e,i=It(),a=D("tag"),r=n.computed(()=>{const{type:d,hit:f,effect:u,closable:p,round:g}=o;return[a.b(),a.is("closable",p),a.m(d||"primary"),a.m(i.value),a.m(u),a.is("hit",f),a.is("round",g)]}),s=d=>{t("close",d)},l=d=>{t("click",d)},c=d=>{d.component.subTree.component.bum=null};return(d,f)=>d.disableTransitions?(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass(n.unref(r)),style:n.normalizeStyle({backgroundColor:d.color}),onClick:l},[n.createElementVNode("span",{class:n.normalizeClass(n.unref(a).e("content"))},[n.renderSlot(d.$slots,"default")],2),d.closable?(n.openBlock(),n.createBlock(n.unref(be),{key:0,class:n.normalizeClass(n.unref(a).e("close")),onClick:n.withModifiers(s,["stop"])},{default:n.withCtx(()=>[n.createVNode(n.unref(W.Close))]),_:1},8,["class","onClick"])):n.createCommentVNode("v-if",!0)],6)):(n.openBlock(),n.createBlock(n.Transition,{key:1,name:`${n.unref(a).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:c},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(n.unref(r)),style:n.normalizeStyle({backgroundColor:d.color}),onClick:l},[n.createElementVNode("span",{class:n.normalizeClass(n.unref(a).e("content"))},[n.renderSlot(d.$slots,"default")],2),d.closable?(n.openBlock(),n.createBlock(n.unref(be),{key:0,class:n.normalizeClass(n.unref(a).e("close")),onClick:n.withModifiers(s,["stop"])},{default:n.withCtx(()=>[n.createVNode(n.unref(W.Close))]),_:1},8,["class","onClick"])):n.createCommentVNode("v-if",!0)],6)]),_:3},8,["name"]))}});var Hm=F(jm,[["__file","tag.vue"]]);const Km=oe(Hm),is=Symbol("rowContextKey"),Um=R({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:["start","center","end","space-around","space-between","space-evenly"],default:"start"},align:{type:String,values:["top","middle","bottom"]}}),Wm=n.defineComponent({name:"ElRow"}),qm=n.defineComponent({...Wm,props:Um,setup(e){const t=e,o=D("row"),i=n.computed(()=>t.gutter);n.provide(is,{gutter:i});const a=n.computed(()=>{const s={};return t.gutter&&(s.marginRight=s.marginLeft=`-${t.gutter/2}px`),s}),r=n.computed(()=>[o.b(),o.is(`justify-${t.justify}`,t.justify!=="start"),o.is(`align-${t.align}`,!!t.align)]);return(s,l)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(s.tag),{class:n.normalizeClass(n.unref(r)),style:n.normalizeStyle(n.unref(a))},{default:n.withCtx(()=>[n.renderSlot(s.$slots,"default")]),_:3},8,["class","style"]))}});var Gm=F(qm,[["__file","row.vue"]]);const tn=oe(Gm),Jm=R({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:_([Number,Object]),default:()=>Ut({})},sm:{type:_([Number,Object]),default:()=>Ut({})},md:{type:_([Number,Object]),default:()=>Ut({})},lg:{type:_([Number,Object]),default:()=>Ut({})},xl:{type:_([Number,Object]),default:()=>Ut({})}}),Ym=n.defineComponent({name:"ElCol"}),Zm=n.defineComponent({...Ym,props:Jm,setup(e){const t=e,{gutter:o}=n.inject(is,{gutter:n.computed(()=>0)}),i=D("col"),a=n.computed(()=>{const s={};return o.value&&(s.paddingLeft=s.paddingRight=`${o.value/2}px`),s}),r=n.computed(()=>{const s=[];return["span","offset","pull","push"].forEach(d=>{const f=t[d];G(f)&&(d==="span"?s.push(i.b(`${t[d]}`)):f>0&&s.push(i.b(`${d}-${t[d]}`)))}),["xs","sm","md","lg","xl"].forEach(d=>{G(t[d])?s.push(i.b(`${d}-${t[d]}`)):te(t[d])&&Object.entries(t[d]).forEach(([f,u])=>{s.push(f!=="span"?i.b(`${d}-${f}-${u}`):i.b(`${d}-${u}`))})}),o.value&&s.push(i.is("guttered")),[i.b(),s]});return(s,l)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(s.tag),{class:n.normalizeClass(n.unref(r)),style:n.normalizeStyle(n.unref(a))},{default:n.withCtx(()=>[n.renderSlot(s.$slots,"default")]),_:3},8,["class","style"]))}});var Qm=F(Zm,[["__file","col.vue"]]);const nn=oe(Qm),Xm=R({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:_([String,Array,Object])},zIndex:{type:_([String,Number])}}),eg={click:e=>e instanceof MouseEvent},tg="overlay";var ng=n.defineComponent({name:"ElOverlay",props:Xm,emits:eg,setup(e,{slots:t,emit:o}){const i=D(tg),a=c=>{o("click",c)},{onClick:r,onMousedown:s,onMouseup:l}=er(e.customMaskEvent?void 0:a);return()=>e.mask?n.createVNode("div",{class:[i.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:r,onMousedown:s,onMouseup:l},[n.renderSlot(t,"default")],An.STYLE|An.CLASS|An.PROPS,["onClick","onMouseup","onMousedown"]):n.h("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[n.renderSlot(t,"default")])}});const og=ng,as=Symbol("dialogInjectionKey"),rs=R({center:Boolean,alignCenter:Boolean,closeIcon:{type:gt},draggable:Boolean,overflow:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),ig={close:()=>!0},ag=n.defineComponent({name:"ElDialogContent"}),rg=n.defineComponent({...ag,props:rs,emits:ig,setup(e,{expose:t}){const o=e,{t:i}=To(),{Close:a}=Uf,{dialogRef:r,headerRef:s,bodyId:l,ns:c,style:d}=n.inject(as),{focusTrapRef:f}=n.inject(Ir),u=n.computed(()=>[c.b(),c.is("fullscreen",o.fullscreen),c.is("draggable",o.draggable),c.is("align-center",o.alignCenter),{[c.m("center")]:o.center}]),p=Gf(f,r),g=n.computed(()=>o.draggable),h=n.computed(()=>o.overflow),{resetPosition:m}=Yf(r,s,g,h);return t({resetPosition:m}),(y,b)=>(n.openBlock(),n.createElementBlock("div",{ref:n.unref(p),class:n.normalizeClass(n.unref(u)),style:n.normalizeStyle(n.unref(d)),tabindex:"-1"},[n.createElementVNode("header",{ref_key:"headerRef",ref:s,class:n.normalizeClass([n.unref(c).e("header"),{"show-close":y.showClose}])},[n.renderSlot(y.$slots,"header",{},()=>[n.createElementVNode("span",{role:"heading","aria-level":y.ariaLevel,class:n.normalizeClass(n.unref(c).e("title"))},n.toDisplayString(y.title),11,["aria-level"])]),y.showClose?(n.openBlock(),n.createElementBlock("button",{key:0,"aria-label":n.unref(i)("el.dialog.close"),class:n.normalizeClass(n.unref(c).e("headerbtn")),type:"button",onClick:C=>y.$emit("close")},[n.createVNode(n.unref(be),{class:n.normalizeClass(n.unref(c).e("close"))},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(y.closeIcon||n.unref(a))))]),_:1},8,["class"])],10,["aria-label","onClick"])):n.createCommentVNode("v-if",!0)],2),n.createElementVNode("div",{id:n.unref(l),class:n.normalizeClass(n.unref(c).e("body"))},[n.renderSlot(y.$slots,"default")],10,["id"]),y.$slots.footer?(n.openBlock(),n.createElementBlock("footer",{key:0,class:n.normalizeClass(n.unref(c).e("footer"))},[n.renderSlot(y.$slots,"footer")],2)):n.createCommentVNode("v-if",!0)],6))}});var sg=F(rg,[["__file","dialog-content.vue"]]);const lg=R({...rs,appendToBody:Boolean,appendTo:{type:_([String,Object]),default:"body"},beforeClose:{type:_(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:Boolean,headerAriaLevel:{type:String,default:"2"}}),cg={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[X]:e=>_e(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},dg=(e,t)=>{var o;const a=n.getCurrentInstance().emit,{nextZIndex:r}=Fo();let s="";const l=it(),c=it(),d=n.ref(!1),f=n.ref(!1),u=n.ref(!1),p=n.ref((o=e.zIndex)!=null?o:r());let g,h;const m=Ln("namespace",Wt),y=n.computed(()=>{const V={},M=`--${m.value}-dialog`;return e.fullscreen||(e.top&&(V[`${M}-margin-top`]=e.top),e.width&&(V[`${M}-width`]=et(e.width))),V}),b=n.computed(()=>e.alignCenter?{display:"flex"}:{});function C(){a("opened")}function I(){a("closed"),a(X,!1),e.destroyOnClose&&(u.value=!1)}function k(){a("close")}function v(){h==null||h(),g==null||g(),e.openDelay&&e.openDelay>0?{stop:g}=Ei(()=>x(),e.openDelay):x()}function S(){g==null||g(),h==null||h(),e.closeDelay&&e.closeDelay>0?{stop:h}=Ei(()=>N(),e.closeDelay):N()}function E(){function V(M){M||(f.value=!0,d.value=!1)}e.beforeClose?e.beforeClose(V):S()}function O(){e.closeOnClickModal&&E()}function x(){K&&(d.value=!0)}function N(){d.value=!1}function B(){a("openAutoFocus")}function T(){a("closeAutoFocus")}function L(V){var M;((M=V.detail)==null?void 0:M.focusReason)==="pointer"&&V.preventDefault()}e.lockScroll&&nu(d);function q(){e.closeOnPressEscape&&E()}return n.watch(()=>e.modelValue,V=>{V?(f.value=!1,v(),u.value=!0,p.value=Sa(e.zIndex)?r():p.value++,n.nextTick(()=>{a("open"),t.value&&(t.value.scrollTop=0)})):d.value&&S()}),n.watch(()=>e.fullscreen,V=>{t.value&&(V?(s=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=s)}),n.onMounted(()=>{e.modelValue&&(d.value=!0,u.value=!0,v())}),{afterEnter:C,afterLeave:I,beforeLeave:k,handleClose:E,onModalClick:O,close:S,doClose:N,onOpenAutoFocus:B,onCloseAutoFocus:T,onCloseRequested:q,onFocusoutPrevented:L,titleId:l,bodyId:c,closed:f,style:y,overlayDialogStyle:b,rendered:u,visible:d,zIndex:p}},fg=n.defineComponent({name:"ElDialog",inheritAttrs:!1}),ug=n.defineComponent({...fg,props:lg,emits:cg,setup(e,{expose:t}){const o=e,i=n.useSlots();yt({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},n.computed(()=>!!i.title));const a=D("dialog"),r=n.ref(),s=n.ref(),l=n.ref(),{visible:c,titleId:d,bodyId:f,style:u,overlayDialogStyle:p,rendered:g,zIndex:h,afterEnter:m,afterLeave:y,beforeLeave:b,handleClose:C,onModalClick:I,onOpenAutoFocus:k,onCloseAutoFocus:v,onCloseRequested:S,onFocusoutPrevented:E}=dg(o,r);n.provide(as,{dialogRef:r,headerRef:s,bodyId:f,ns:a,rendered:g,style:u});const O=er(I),x=n.computed(()=>o.draggable&&!o.fullscreen);return t({visible:c,dialogContentRef:l,resetPosition:()=>{var B;(B=l.value)==null||B.resetPosition()}}),(B,T)=>(n.openBlock(),n.createBlock(n.unref(_r),{to:B.appendTo,disabled:B.appendTo!=="body"?!1:!B.appendToBody},{default:n.withCtx(()=>[n.createVNode(n.Transition,{name:"dialog-fade",onAfterEnter:n.unref(m),onAfterLeave:n.unref(y),onBeforeLeave:n.unref(b),persisted:""},{default:n.withCtx(()=>[n.withDirectives(n.createVNode(n.unref(og),{"custom-mask-event":"",mask:B.modal,"overlay-class":B.modalClass,"z-index":n.unref(h)},{default:n.withCtx(()=>[n.createElementVNode("div",{role:"dialog","aria-modal":"true","aria-label":B.title||void 0,"aria-labelledby":B.title?void 0:n.unref(d),"aria-describedby":n.unref(f),class:n.normalizeClass(`${n.unref(a).namespace.value}-overlay-dialog`),style:n.normalizeStyle(n.unref(p)),onClick:n.unref(O).onClick,onMousedown:n.unref(O).onMousedown,onMouseup:n.unref(O).onMouseup},[n.createVNode(n.unref(Br),{loop:"",trapped:n.unref(c),"focus-start-el":"container",onFocusAfterTrapped:n.unref(k),onFocusAfterReleased:n.unref(v),onFocusoutPrevented:n.unref(E),onReleaseRequested:n.unref(S)},{default:n.withCtx(()=>[n.unref(g)?(n.openBlock(),n.createBlock(sg,n.mergeProps({key:0,ref_key:"dialogContentRef",ref:l},B.$attrs,{center:B.center,"align-center":B.alignCenter,"close-icon":B.closeIcon,draggable:n.unref(x),overflow:B.overflow,fullscreen:B.fullscreen,"show-close":B.showClose,title:B.title,"aria-level":B.headerAriaLevel,onClose:n.unref(C)}),n.createSlots({header:n.withCtx(()=>[B.$slots.title?n.renderSlot(B.$slots,"title",{key:1}):n.renderSlot(B.$slots,"header",{key:0,close:n.unref(C),titleId:n.unref(d),titleClass:n.unref(a).e("title")})]),default:n.withCtx(()=>[n.renderSlot(B.$slots,"default")]),_:2},[B.$slots.footer?{name:"footer",fn:n.withCtx(()=>[n.renderSlot(B.$slots,"footer")])}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","show-close","title","aria-level","onClose"])):n.createCommentVNode("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,["aria-label","aria-labelledby","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["mask","overlay-class","z-index"]),[[n.vShow,n.unref(c)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});var pg=F(ug,[["__file","dialog.vue"]]);const hg=oe(pg),mg=n.defineComponent({inheritAttrs:!1});function gg(e,t,o,i,a,r){return n.renderSlot(e.$slots,"default")}var yg=F(mg,[["render",gg],["__file","collection.vue"]]);const bg=n.defineComponent({name:"ElCollectionItem",inheritAttrs:!1});function wg(e,t,o,i,a,r){return n.renderSlot(e.$slots,"default")}var Cg=F(bg,[["render",wg],["__file","collection-item.vue"]]);const vg="data-el-collection-item",Sg=e=>{const t=`El${e}Collection`,o=`${t}Item`,i=Symbol(t),a=Symbol(o),r={...yg,name:t,setup(){const l=n.ref(null),c=new Map,d=()=>{const f=n.unref(l);if(!f)return[];const u=Array.from(f.querySelectorAll(`[${vg}]`));return[...c.values()].sort((g,h)=>u.indexOf(g.ref)-u.indexOf(h.ref))};n.provide(i,{itemMap:c,getItems:d,collectionRef:l})}},s={...Cg,name:o,setup(l,{attrs:c}){const d=n.ref(null),f=n.inject(i,void 0);n.provide(a,{collectionItemRef:d}),n.onMounted(()=>{const u=n.unref(d);u&&f.itemMap.set(u,{ref:u,...c})}),n.onBeforeUnmount(()=>{const u=n.unref(d);f.itemMap.delete(u)})}};return{COLLECTION_INJECTION_KEY:i,COLLECTION_ITEM_INJECTION_KEY:a,ElCollection:r,ElCollectionItem:s}},ni=R({trigger:en.trigger,effect:{...se.effect,default:"light"},type:{type:_(String)},placement:{type:_(String),default:"bottom"},popperOptions:{type:_(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:_([Number,String]),default:0},maxHeight:{type:_([Number,String]),default:""},popperClass:{type:String,default:""},disabled:Boolean,role:{type:String,default:"menu"},buttonProps:{type:_(Object)},teleported:se.teleported});R({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:gt}}),R({onKeydown:{type:_(Function)}}),Sg("Dropdown");const ss=Symbol("ElSelectGroup"),Kn=Symbol("ElSelect");function kg(e,t){const o=n.inject(Kn),i=n.inject(ss,{disabled:!1}),a=n.computed(()=>f(De(o.props.modelValue),e.value)),r=n.computed(()=>{var g;if(o.props.multiple){const h=De((g=o.props.modelValue)!=null?g:[]);return!a.value&&h.length>=o.props.multipleLimit&&o.props.multipleLimit>0}else return!1}),s=n.computed(()=>e.label||(te(e.value)?"":e.value)),l=n.computed(()=>e.value||e.label||""),c=n.computed(()=>e.disabled||t.groupDisabled||r.value),d=n.getCurrentInstance(),f=(g=[],h)=>{if(te(e.value)){const m=o.props.valueKey;return g&&g.some(y=>n.toRaw(Be(y,m))===Be(h,m))}else return g&&g.includes(h)},u=()=>{!e.disabled&&!i.disabled&&(o.states.hoveringIndex=o.optionsArray.indexOf(d.proxy))},p=g=>{const h=new RegExp($f(g),"i");t.visible=h.test(s.value)||e.created};return n.watch(()=>s.value,()=>{!e.created&&!o.props.remote&&o.setSelected()}),n.watch(()=>e.value,(g,h)=>{const{remote:m,valueKey:y}=o.props;if(g!==h&&(o.onOptionDestroy(h,d.proxy),o.onOptionCreate(d.proxy)),!e.created&&!m){if(y&&te(g)&&te(h)&&g[y]===h[y])return;o.setSelected()}}),n.watch(()=>i.disabled,()=>{t.groupDisabled=i.disabled},{immediate:!0}),{select:o,currentLabel:s,currentValue:l,itemSelected:a,isDisabled:c,hoverItem:u,updateOption:p}}const Eg=n.defineComponent({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=D("select"),o=it(),i=n.computed(()=>[t.be("dropdown","item"),t.is("disabled",n.unref(l)),t.is("selected",n.unref(s)),t.is("hovering",n.unref(p))]),a=n.reactive({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:r,itemSelected:s,isDisabled:l,select:c,hoverItem:d,updateOption:f}=kg(e,a),{visible:u,hover:p}=n.toRefs(a),g=n.getCurrentInstance().proxy;c.onOptionCreate(g),n.onBeforeUnmount(()=>{const m=g.value,{selected:y}=c.states,C=(c.props.multiple?y:[y]).some(I=>I.value===g.value);n.nextTick(()=>{c.states.cachedOptions.get(m)===g&&!C&&c.states.cachedOptions.delete(m)}),c.onOptionDestroy(m,g)});function h(){l.value||c.handleOptionSelect(g)}return{ns:t,id:o,containerKls:i,currentLabel:r,itemSelected:s,isDisabled:l,select:c,hoverItem:d,updateOption:f,visible:u,hover:p,selectOptionClick:h,states:a}}});function Ig(e,t,o,i,a,r){return n.withDirectives((n.openBlock(),n.createElementBlock("li",{id:e.id,class:n.normalizeClass(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMouseenter:e.hoverItem,onClick:n.withModifiers(e.selectOptionClick,["stop"])},[n.renderSlot(e.$slots,"default",{},()=>[n.createElementVNode("span",null,n.toDisplayString(e.currentLabel),1)])],42,["id","aria-disabled","aria-selected","onMouseenter","onClick"])),[[n.vShow,e.visible]])}var oi=F(Eg,[["render",Ig],["__file","option.vue"]]);const Tg=n.defineComponent({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=n.inject(Kn),t=D("select"),o=n.computed(()=>e.props.popperClass),i=n.computed(()=>e.props.multiple),a=n.computed(()=>e.props.fitInputWidth),r=n.ref("");function s(){var l;r.value=`${(l=e.selectRef)==null?void 0:l.offsetWidth}px`}return n.onMounted(()=>{s(),Re(e.selectRef,s)}),{ns:t,minWidth:r,popperClass:o,isMultiple:i,isFitInputWidth:a}}});function Ag(e,t,o,i,a,r){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:n.normalizeStyle({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(e.ns.be("dropdown","header"))},[n.renderSlot(e.$slots,"header")],2)):n.createCommentVNode("v-if",!0),n.renderSlot(e.$slots,"default"),e.$slots.footer?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(e.ns.be("dropdown","footer"))},[n.renderSlot(e.$slots,"footer")],2)):n.createCommentVNode("v-if",!0)],6)}var Og=F(Tg,[["render",Ag],["__file","select-dropdown.vue"]]);const Mg=11,xg=(e,t)=>{const{t:o}=To(),i=it(),a=D("select"),r=D("input"),s=n.reactive({inputValue:"",options:new Map,cachedOptions:new Map,disabledOptions:new Map,optionValues:[],selected:[],selectionWidth:0,calculatorWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),l=n.ref(null),c=n.ref(null),d=n.ref(null),f=n.ref(null),u=n.ref(null),p=n.ref(null),g=n.ref(null),h=n.ref(null),m=n.ref(null),y=n.ref(null),b=n.ref(null),C=n.ref(null),{isComposing:I,handleCompositionStart:k,handleCompositionUpdate:v,handleCompositionEnd:S}=Cp({afterComposition:w=>fn(w)}),{wrapperRef:E,isFocused:O}=wp(u,{beforeFocus(){return M.value},afterFocus(){e.automaticDropdown&&!x.value&&(x.value=!0,s.menuVisibleOnFocus=!0)},beforeBlur(w){var A,P;return((A=d.value)==null?void 0:A.isFocusInsideContent(w))||((P=f.value)==null?void 0:P.isFocusInsideContent(w))},afterBlur(){x.value=!1,s.menuVisibleOnFocus=!1}}),x=n.ref(!1),N=n.ref(),{form:B,formItem:T}=Tt(),{inputId:L}=Rn(e,{formItemContext:T}),{valueOnClear:q,isEmptyValue:V}=Ip(e),M=n.computed(()=>e.disabled||(B==null?void 0:B.disabled)),$=n.computed(()=>ee(e.modelValue)?e.modelValue.length>0:!V(e.modelValue)),pe=n.computed(()=>e.clearable&&!M.value&&s.inputHovering&&$.value),Y=n.computed(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),Z=n.computed(()=>a.is("reverse",Y.value&&x.value)),ce=n.computed(()=>(T==null?void 0:T.validateState)||""),Ee=n.computed(()=>Wf[ce.value]),Bt=n.computed(()=>e.remote?300:0),Ie=n.computed(()=>e.loading?e.loadingText||o("el.select.loading"):e.remote&&!s.inputValue&&s.options.size===0?!1:e.filterable&&s.inputValue&&s.options.size>0&&re.value===0?e.noMatchText||o("el.select.noMatch"):s.options.size===0?e.noDataText||o("el.select.noData"):null),re=n.computed(()=>U.value.filter(w=>w.visible).length),U=n.computed(()=>{const w=Array.from(s.options.values()),A=[];return s.optionValues.forEach(P=>{const z=w.findIndex(Ge=>Ge.value===P);z>-1&&A.push(w[z])}),A.length>=w.length?A:w}),lt=n.computed(()=>Array.from(s.cachedOptions.values())),qe=n.computed(()=>{const w=U.value.filter(A=>!A.created).some(A=>A.currentLabel===s.inputValue);return e.filterable&&e.allowCreate&&s.inputValue!==""&&!w}),Jn=()=>{e.filterable&&Q(e.filterMethod)||e.filterable&&e.remote&&Q(e.remoteMethod)||U.value.forEach(w=>{var A;(A=w.updateOption)==null||A.call(w,s.inputValue)})},Yn=It(),rn=n.computed(()=>["small"].includes(Yn.value)?"small":"default"),mi=n.computed({get(){return x.value&&Ie.value!==!1},set(w){x.value=w}}),Zn=n.computed(()=>{if(e.multiple&&!ze(e.modelValue))return De(e.modelValue).length===0&&!s.inputValue;const w=ee(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||ze(w)?!s.inputValue:!0}),gi=n.computed(()=>{var w;const A=(w=e.placeholder)!=null?w:o("el.select.placeholder");return e.multiple||!$.value?A:s.selectedLabel}),yi=n.computed(()=>oo?null:"mouseenter");n.watch(()=>e.modelValue,(w,A)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(s.inputValue="",ct("")),Nt(),!kn(w,A)&&e.validateEvent&&(T==null||T.validate("change").catch(P=>ne(P)))},{flush:"post",deep:!0}),n.watch(()=>x.value,w=>{w?ct(s.inputValue):(s.inputValue="",s.previousQuery=null,s.isBeforeHide=!0),t("visible-change",w)}),n.watch(()=>s.options.entries(),()=>{var w;if(!K)return;const A=((w=l.value)==null?void 0:w.querySelectorAll("input"))||[];(!e.filterable&&!e.defaultFirstOption&&!ze(e.modelValue)||!Array.from(A).includes(document.activeElement))&&Nt(),e.defaultFirstOption&&(e.filterable||e.remote)&&re.value&&sn()},{flush:"post"}),n.watch(()=>s.hoveringIndex,w=>{G(w)&&w>-1?N.value=U.value[w]||{}:N.value={},U.value.forEach(A=>{A.hover=N.value===A})}),n.watchEffect(()=>{s.isBeforeHide||Jn()});const ct=w=>{s.previousQuery===w||I.value||(s.previousQuery=w,e.filterable&&Q(e.filterMethod)?e.filterMethod(w):e.filterable&&e.remote&&Q(e.remoteMethod)&&e.remoteMethod(w),e.defaultFirstOption&&(e.filterable||e.remote)&&re.value?n.nextTick(sn):n.nextTick(Ve))},sn=()=>{const w=U.value.filter(z=>z.visible&&!z.disabled&&!z.states.groupDisabled),A=w.find(z=>z.created),P=w[0];s.hoveringIndex=vs(U.value,A||P)},Nt=()=>{if(e.multiple)s.selectedLabel="";else{const A=ee(e.modelValue)?e.modelValue[0]:e.modelValue,P=Qn(A);s.selectedLabel=P.currentLabel,s.selected=[P];return}const w=[];ze(e.modelValue)||De(e.modelValue).forEach(A=>{w.push(Qn(A))}),s.selected=w},Qn=w=>{let A;const P=ao(w).toLowerCase()==="object",z=ao(w).toLowerCase()==="null",Ge=ao(w).toLowerCase()==="undefined";for(let ft=s.cachedOptions.size-1;ft>=0;ft--){const Te=lt.value[ft];if(P?Be(Te.value,e.valueKey)===Be(w,e.valueKey):Te.value===w){A={value:w,currentLabel:Te.currentLabel,get isDisabled(){return Te.isDisabled}};break}}if(A)return A;const Lt=P?w.label:!z&&!Ge?w:"";return{value:w,currentLabel:Lt}},Ve=()=>{s.hoveringIndex=U.value.findIndex(w=>s.selected.some(A=>bi(A)===bi(w)))},_t=()=>{s.selectionWidth=c.value.getBoundingClientRect().width},ln=()=>{s.calculatorWidth=p.value.getBoundingClientRect().width},Xn=()=>{s.collapseItemWidth=b.value.getBoundingClientRect().width},dt=()=>{var w,A;(A=(w=d.value)==null?void 0:w.updatePopper)==null||A.call(w)},cn=()=>{var w,A;(A=(w=f.value)==null?void 0:w.updatePopper)==null||A.call(w)},dn=()=>{s.inputValue.length>0&&!x.value&&(x.value=!0),ct(s.inputValue)},fn=w=>{if(s.inputValue=w.target.value,e.remote)un();else return dn()},un=Lf(()=>{dn()},Bt.value),pn=w=>{kn(e.modelValue,w)||t(Io,w)},rb=w=>Pf(w,A=>!s.disabledOptions.has(A)),sb=w=>{if(e.multiple&&w.code!==Kt.delete&&w.target.value.length<=0){const A=De(e.modelValue).slice(),P=rb(A);if(P<0)return;const z=A[P];A.splice(P,1),t(X,A),pn(A),t("remove-tag",z)}},lb=(w,A)=>{const P=s.selected.indexOf(A);if(P>-1&&!M.value){const z=De(e.modelValue).slice();z.splice(P,1),t(X,z),pn(z),t("remove-tag",A.value)}w.stopPropagation(),to()},ws=w=>{w.stopPropagation();const A=e.multiple?[]:q.value;if(e.multiple)for(const P of s.selected)P.isDisabled&&A.push(P.value);t(X,A),pn(A),s.hoveringIndex=-1,x.value=!1,t("clear"),to()},Cs=w=>{var A;if(e.multiple){const P=De((A=e.modelValue)!=null?A:[]).slice(),z=vs(P,w.value);z>-1?P.splice(z,1):(e.multipleLimit<=0||P.length<e.multipleLimit)&&P.push(w.value),t(X,P),pn(P),w.created&&ct(""),e.filterable&&!e.reserveKeyword&&(s.inputValue="")}else t(X,w.value),pn(w.value),x.value=!1;to(),!x.value&&n.nextTick(()=>{eo(w)})},vs=(w=[],A)=>{if(!te(A))return w.indexOf(A);const P=e.valueKey;let z=-1;return w.some((Ge,Lt)=>n.toRaw(Be(Ge,P))===Be(A,P)?(z=Lt,!0):!1),z},eo=w=>{var A,P,z,Ge,Lt;const no=ee(w)?w[0]:w;let ft=null;if(no!=null&&no.value){const Te=U.value.filter(Is=>Is.value===no.value);Te.length>0&&(ft=Te[0].$el)}if(d.value&&ft){const Te=(Ge=(z=(P=(A=d.value)==null?void 0:A.popperRef)==null?void 0:P.contentRef)==null?void 0:z.querySelector)==null?void 0:Ge.call(z,`.${a.be("dropdown","wrap")}`);Te&&Hf(Te,ft)}(Lt=C.value)==null||Lt.handleScroll()},cb=w=>{s.options.set(w.value,w),s.cachedOptions.set(w.value,w),w.disabled&&s.disabledOptions.set(w.value,w)},db=(w,A)=>{s.options.get(w)===A&&s.options.delete(w)},fb=n.computed(()=>{var w,A;return(A=(w=d.value)==null?void 0:w.popperRef)==null?void 0:A.contentRef}),ub=()=>{s.isBeforeHide=!1,n.nextTick(()=>eo(s.selected))},to=()=>{var w;(w=u.value)==null||w.focus()},Ss=()=>{var w;(w=u.value)==null||w.blur()},pb=w=>{ws(w)},hb=()=>{x.value=!1,O.value&&Ss()},mb=()=>{s.inputValue.length>0?s.inputValue="":x.value=!1},ks=()=>{M.value||(oo&&(s.inputHovering=!0),s.menuVisibleOnFocus?s.menuVisibleOnFocus=!1:x.value=!x.value)},gb=()=>{x.value?U.value[s.hoveringIndex]&&Cs(U.value[s.hoveringIndex]):ks()},bi=w=>te(w.value)?Be(w.value,e.valueKey):w.value,yb=n.computed(()=>U.value.filter(w=>w.visible).every(w=>w.disabled)),bb=n.computed(()=>e.multiple?e.collapseTags?s.selected.slice(0,e.maxCollapseTags):s.selected:[]),wb=n.computed(()=>e.multiple?e.collapseTags?s.selected.slice(e.maxCollapseTags):[]:[]),Es=w=>{if(!x.value){x.value=!0;return}if(!(s.options.size===0||s.filteredOptionsCount===0||I.value)&&!yb.value){w==="next"?(s.hoveringIndex++,s.hoveringIndex===s.options.size&&(s.hoveringIndex=0)):w==="prev"&&(s.hoveringIndex--,s.hoveringIndex<0&&(s.hoveringIndex=s.options.size-1));const A=U.value[s.hoveringIndex];(A.disabled===!0||A.states.groupDisabled===!0||!A.visible)&&Es(w),n.nextTick(()=>eo(N.value))}},Cb=()=>{if(!c.value)return 0;const w=window.getComputedStyle(c.value);return Number.parseFloat(w.gap||"6px")},vb=n.computed(()=>{const w=Cb();return{maxWidth:`${b.value&&e.maxCollapseTags===1?s.selectionWidth-s.collapseItemWidth-w:s.selectionWidth}px`}}),Sb=n.computed(()=>({maxWidth:`${s.selectionWidth}px`})),kb=n.computed(()=>({width:`${Math.max(s.calculatorWidth,Mg)}px`}));return Re(c,_t),Re(p,ln),Re(m,dt),Re(E,dt),Re(y,cn),Re(b,Xn),n.onMounted(()=>{Nt()}),{inputId:L,contentId:i,nsSelect:a,nsInput:r,states:s,isFocused:O,expanded:x,optionsArray:U,hoverOption:N,selectSize:Yn,filteredOptionsCount:re,resetCalculatorWidth:ln,updateTooltip:dt,updateTagTooltip:cn,debouncedOnInputChange:un,onInput:fn,deletePrevTag:sb,deleteTag:lb,deleteSelected:ws,handleOptionSelect:Cs,scrollToOption:eo,hasModelValue:$,shouldShowPlaceholder:Zn,currentPlaceholder:gi,mouseEnterEventName:yi,showClose:pe,iconComponent:Y,iconReverse:Z,validateState:ce,validateIcon:Ee,showNewOption:qe,updateOptions:Jn,collapseTagSize:rn,setSelected:Nt,selectDisabled:M,emptyText:Ie,handleCompositionStart:k,handleCompositionUpdate:v,handleCompositionEnd:S,onOptionCreate:cb,onOptionDestroy:db,handleMenuEnter:ub,focus:to,blur:Ss,handleClearClick:pb,handleClickOutside:hb,handleEsc:mb,toggleMenu:ks,selectOption:gb,getValueKey:bi,navigateOptions:Es,dropdownMenuVisible:mi,showTagList:bb,collapseTagList:wb,tagStyle:vb,collapseTagStyle:Sb,inputStyle:kb,popperRef:fb,inputRef:u,tooltipRef:d,tagTooltipRef:f,calculatorRef:p,prefixRef:g,suffixRef:h,selectRef:l,wrapperRef:E,selectionRef:c,scrollbarRef:C,menuRef:m,tagMenuRef:y,collapseItemRef:b}};var Bg=n.defineComponent({name:"ElOptions",setup(e,{slots:t}){const o=n.inject(Kn);let i=[];return()=>{var a,r;const s=(a=t.default)==null?void 0:a.call(t),l=[];function c(d){ee(d)&&d.forEach(f=>{var u,p,g,h;const m=(u=(f==null?void 0:f.type)||{})==null?void 0:u.name;m==="ElOptionGroup"?c(!me(f.children)&&!ee(f.children)&&Q((p=f.children)==null?void 0:p.default)?(g=f.children)==null?void 0:g.default():f.children):m==="ElOption"?l.push((h=f.props)==null?void 0:h.value):ee(f.children)&&c(f.children)})}return s.length&&c((r=s[0])==null?void 0:r.children),kn(l,i)||(i=l,o&&(o.states.optionValues=l)),s}}});const Ng=R({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:Et,effect:{type:_(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:_(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:se.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:gt,default:W.CircleClose},fitInputWidth:Boolean,suffixIcon:{type:gt,default:W.ArrowDown},tagType:{...ti.type,default:"info"},tagEffect:{...ti.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,placement:{type:_(String),values:On,default:"bottom-start"},fallbackPlacements:{type:_(Array),default:["bottom-start","top-start","right","left"]},appendTo:String,...Ep,...at(["ariaLabel"])}),ls="ElSelect",_g=n.defineComponent({name:ls,componentName:ls,components:{ElSelectMenu:Og,ElOption:oi,ElOptions:Bg,ElTag:Km,ElScrollbar:Up,ElTooltip:Lr,ElIcon:be},directives:{ClickOutside:mm},props:Ng,emits:[X,Io,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const o=n.computed(()=>{const{modelValue:r,multiple:s}=e,l=s?[]:void 0;return ee(r)?s?r:l:s?l:r}),i=n.reactive({...n.toRefs(e),modelValue:o}),a=xg(i,t);return n.provide(Kn,n.reactive({props:i,states:a.states,optionsArray:a.optionsArray,handleOptionSelect:a.handleOptionSelect,onOptionCreate:a.onOptionCreate,onOptionDestroy:a.onOptionDestroy,selectRef:a.selectRef,setSelected:a.setSelected})),{...a,modelValue:o}}});function Lg(e,t,o,i,a,r){const s=n.resolveComponent("el-tag"),l=n.resolveComponent("el-tooltip"),c=n.resolveComponent("el-icon"),d=n.resolveComponent("el-option"),f=n.resolveComponent("el-options"),u=n.resolveComponent("el-scrollbar"),p=n.resolveComponent("el-select-menu"),g=n.resolveDirective("click-outside");return n.withDirectives((n.openBlock(),n.createElementBlock("div",{ref:"selectRef",class:n.normalizeClass([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),[n.toHandlerKey(e.mouseEnterEventName)]:h=>e.states.inputHovering=!0,onMouseleave:h=>e.states.inputHovering=!1},[n.createVNode(l,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,"append-to":e.appendTo,onBeforeShow:e.handleMenuEnter,onHide:h=>e.states.isBeforeHide=!1},{default:n.withCtx(()=>{var h;return[n.createElementVNode("div",{ref:"wrapperRef",class:n.normalizeClass([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:n.withModifiers(e.toggleMenu,["prevent"])},[e.$slots.prefix?(n.openBlock(),n.createElementBlock("div",{key:0,ref:"prefixRef",class:n.normalizeClass(e.nsSelect.e("prefix"))},[n.renderSlot(e.$slots,"prefix")],2)):n.createCommentVNode("v-if",!0),n.createElementVNode("div",{ref:"selectionRef",class:n.normalizeClass([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?n.renderSlot(e.$slots,"tag",{key:0},()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.showTagList,m=>(n.openBlock(),n.createElementBlock("div",{key:e.getValueKey(m),class:n.normalizeClass(e.nsSelect.e("selected-item"))},[n.createVNode(s,{closable:!e.selectDisabled&&!m.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:n.normalizeStyle(e.tagStyle),onClose:y=>e.deleteTag(y,m)},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(e.nsSelect.e("tags-text"))},[n.renderSlot(e.$slots,"label",{label:m.currentLabel,value:m.value},()=>[n.createTextVNode(n.toDisplayString(m.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(n.openBlock(),n.createBlock(l,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:n.withCtx(()=>[n.createElementVNode("div",{ref:"collapseItemRef",class:n.normalizeClass(e.nsSelect.e("selected-item"))},[n.createVNode(s,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:n.normalizeStyle(e.collapseTagStyle)},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(e.nsSelect.e("tags-text"))}," + "+n.toDisplayString(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:n.withCtx(()=>[n.createElementVNode("div",{ref:"tagMenuRef",class:n.normalizeClass(e.nsSelect.e("selection"))},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.collapseTagList,m=>(n.openBlock(),n.createElementBlock("div",{key:e.getValueKey(m),class:n.normalizeClass(e.nsSelect.e("selected-item"))},[n.createVNode(s,{class:"in-tooltip",closable:!e.selectDisabled&&!m.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:y=>e.deleteTag(y,m)},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(e.nsSelect.e("tags-text"))},[n.renderSlot(e.$slots,"label",{label:m.currentLabel,value:m.value},()=>[n.createTextVNode(n.toDisplayString(m.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","teleported"])):n.createCommentVNode("v-if",!0)]):n.createCommentVNode("v-if",!0),e.selectDisabled?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[n.withDirectives(n.createElementVNode("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":m=>e.states.inputValue=m,type:"text",name:e.name,class:n.normalizeClass([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:n.normalizeStyle(e.inputStyle),role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((h=e.hoverOption)==null?void 0:h.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:[n.withKeys(n.withModifiers(m=>e.navigateOptions("next"),["stop","prevent"]),["down"]),n.withKeys(n.withModifiers(m=>e.navigateOptions("prev"),["stop","prevent"]),["up"]),n.withKeys(n.withModifiers(e.handleEsc,["stop","prevent"]),["esc"]),n.withKeys(n.withModifiers(e.selectOption,["stop","prevent"]),["enter"]),n.withKeys(n.withModifiers(e.deletePrevTag,["stop"]),["delete"])],onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onInput:e.onInput,onClick:n.withModifiers(e.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","name","disabled","autocomplete","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onClick"]),[[n.vModelText,e.states.inputValue]]),e.filterable?(n.openBlock(),n.createElementBlock("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:n.normalizeClass(e.nsSelect.e("input-calculator")),textContent:n.toDisplayString(e.states.inputValue)},null,10,["textContent"])):n.createCommentVNode("v-if",!0)],2)),e.shouldShowPlaceholder?(n.openBlock(),n.createElementBlock("div",{key:2,class:n.normalizeClass([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?n.renderSlot(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[n.createElementVNode("span",null,n.toDisplayString(e.currentPlaceholder),1)]):(n.openBlock(),n.createElementBlock("span",{key:1},n.toDisplayString(e.currentPlaceholder),1))],2)):n.createCommentVNode("v-if",!0)],2),n.createElementVNode("div",{ref:"suffixRef",class:n.normalizeClass(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClose?(n.openBlock(),n.createBlock(c,{key:0,class:n.normalizeClass([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):n.createCommentVNode("v-if",!0),e.showClose&&e.clearIcon?(n.openBlock(),n.createBlock(c,{key:1,class:n.normalizeClass([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.clearIcon)))]),_:1},8,["class","onClick"])):n.createCommentVNode("v-if",!0),e.validateState&&e.validateIcon?(n.openBlock(),n.createBlock(c,{key:2,class:n.normalizeClass([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.validateIcon)))]),_:1},8,["class"])):n.createCommentVNode("v-if",!0)],2)],10,["onClick"])]}),content:n.withCtx(()=>[n.createVNode(p,{ref:"menuRef"},{default:n.withCtx(()=>[e.$slots.header?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(e.nsSelect.be("dropdown","header")),onClick:n.withModifiers(()=>{},["stop"])},[n.renderSlot(e.$slots,"header")],10,["onClick"])):n.createCommentVNode("v-if",!0),n.withDirectives(n.createVNode(u,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:n.normalizeClass([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:n.withCtx(()=>[e.showNewOption?(n.openBlock(),n.createBlock(d,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):n.createCommentVNode("v-if",!0),n.createVNode(f,null,{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[n.vShow,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(e.nsSelect.be("dropdown","loading"))},[n.renderSlot(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(n.openBlock(),n.createElementBlock("div",{key:2,class:n.normalizeClass(e.nsSelect.be("dropdown","empty"))},[n.renderSlot(e.$slots,"empty",{},()=>[n.createElementVNode("span",null,n.toDisplayString(e.emptyText),1)])],2)):n.createCommentVNode("v-if",!0),e.$slots.footer?(n.openBlock(),n.createElementBlock("div",{key:3,class:n.normalizeClass(e.nsSelect.be("dropdown","footer")),onClick:n.withModifiers(()=>{},["stop"])},[n.renderSlot(e.$slots,"footer")],10,["onClick"])):n.createCommentVNode("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","append-to","onBeforeShow","onHide"])],16,["onMouseleave"])),[[g,e.handleClickOutside,e.popperRef]])}var Pg=F(_g,[["render",Lg],["__file","select.vue"]]);const Vg=n.defineComponent({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=D("select"),o=n.ref(null),i=n.getCurrentInstance(),a=n.ref([]);n.provide(ss,n.reactive({...n.toRefs(e)}));const r=n.computed(()=>a.value.some(d=>d.visible===!0)),s=d=>{var f,u;return((f=d.type)==null?void 0:f.name)==="ElOption"&&!!((u=d.component)!=null&&u.proxy)},l=d=>{const f=De(d),u=[];return f.forEach(p=>{var g,h;s(p)?u.push(p.component.proxy):(g=p.children)!=null&&g.length?u.push(...l(p.children)):(h=p.component)!=null&&h.subTree&&u.push(...l(p.component.subTree))}),u},c=()=>{a.value=l(i.subTree)};return n.onMounted(()=>{c()}),Fs(o,c,{attributes:!0,subtree:!0,childList:!0}),{groupRef:o,visible:r,ns:t}}});function Rg(e,t,o,i,a,r){return n.withDirectives((n.openBlock(),n.createElementBlock("ul",{ref:"groupRef",class:n.normalizeClass(e.ns.be("group","wrap"))},[n.createElementVNode("li",{class:n.normalizeClass(e.ns.be("group","title"))},n.toDisplayString(e.label),3),n.createElementVNode("li",null,[n.createElementVNode("ul",{class:n.normalizeClass(e.ns.b("group"))},[n.renderSlot(e.$slots,"default")],2)])],2)),[[n.vShow,e.visible]])}var cs=F(Vg,[["render",Rg],["__file","option-group.vue"]]);const Un=oe(Pg,{Option:oi,OptionGroup:cs}),ii=tt(oi);tt(cs);const Fg=R({trigger:en.trigger,placement:ni.placement,disabled:en.disabled,visible:se.visible,transition:se.transition,popperOptions:ni.popperOptions,tabindex:ni.tabindex,content:se.content,popperStyle:se.popperStyle,popperClass:se.popperClass,enterable:{...se.enterable,default:!0},effect:{...se.effect,default:"light"},teleported:se.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),Dg={"update:visible":e=>_e(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},$g="onUpdate:visible",zg=n.defineComponent({name:"ElPopover"}),jg=n.defineComponent({...zg,props:Fg,emits:Dg,setup(e,{expose:t,emit:o}){const i=e,a=n.computed(()=>i[$g]),r=D("popover"),s=n.ref(),l=n.computed(()=>{var y;return(y=n.unref(s))==null?void 0:y.popperRef}),c=n.computed(()=>[{width:et(i.width)},i.popperStyle]),d=n.computed(()=>[r.b(),i.popperClass,{[r.m("plain")]:!!i.content}]),f=n.computed(()=>i.transition===`${r.namespace.value}-fade-in-linear`),u=()=>{var y;(y=s.value)==null||y.hide()},p=()=>{o("before-enter")},g=()=>{o("before-leave")},h=()=>{o("after-enter")},m=()=>{o("update:visible",!1),o("after-leave")};return t({popperRef:l,hide:u}),(y,b)=>(n.openBlock(),n.createBlock(n.unref(Lr),n.mergeProps({ref_key:"tooltipRef",ref:s},y.$attrs,{trigger:y.trigger,placement:y.placement,disabled:y.disabled,visible:y.visible,transition:y.transition,"popper-options":y.popperOptions,tabindex:y.tabindex,content:y.content,offset:y.offset,"show-after":y.showAfter,"hide-after":y.hideAfter,"auto-close":y.autoClose,"show-arrow":y.showArrow,"aria-label":y.title,effect:y.effect,enterable:y.enterable,"popper-class":n.unref(d),"popper-style":n.unref(c),teleported:y.teleported,persistent:y.persistent,"gpu-acceleration":n.unref(f),"onUpdate:visible":n.unref(a),onBeforeShow:p,onBeforeHide:g,onShow:h,onHide:m}),{content:n.withCtx(()=>[y.title?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(n.unref(r).e("title")),role:"title"},n.toDisplayString(y.title),3)):n.createCommentVNode("v-if",!0),n.renderSlot(y.$slots,"default",{},()=>[n.createTextVNode(n.toDisplayString(y.content),1)])]),default:n.withCtx(()=>[y.$slots.reference?n.renderSlot(y.$slots,"reference",{key:0}):n.createCommentVNode("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var Hg=F(jg,[["__file","popover.vue"]]);const ds=(e,t)=>{const o=t.arg||t.value,i=o==null?void 0:o.popperRef;i&&(i.triggerRef=e)};var Kg={mounted(e,t){ds(e,t)},updated(e,t){ds(e,t)}};const ai=qf(Kg,"popover"),on=oe(Hg,{directive:ai});function Ug(e){let t;const o=n.ref(!1),i=n.reactive({...e,originalPosition:"",originalOverflow:"",visible:!1});function a(p){i.text=p}function r(){const p=i.parent,g=u.ns;if(!p.vLoadingAddClassList){let h=p.getAttribute("loading-number");h=Number.parseInt(h)-1,h?p.setAttribute("loading-number",h.toString()):(Ht(p,g.bm("parent","relative")),p.removeAttribute("loading-number")),Ht(p,g.bm("parent","hidden"))}s(),f.unmount()}function s(){var p,g;(g=(p=u.$el)==null?void 0:p.parentNode)==null||g.removeChild(u.$el)}function l(){var p;e.beforeClose&&!e.beforeClose()||(o.value=!0,clearTimeout(t),t=setTimeout(c,400),i.visible=!1,(p=e.closed)==null||p.call(e))}function c(){if(!o.value)return;const p=i.parent;o.value=!1,p.vLoadingAddClassList=void 0,r()}const d=n.defineComponent({name:"ElLoading",setup(p,{expose:g}){const{ns:h,zIndex:m}=Ap("loading");return g({ns:h,zIndex:m}),()=>{const y=i.spinner||i.svg,b=n.h("svg",{class:"circular",viewBox:i.svgViewBox?i.svgViewBox:"0 0 50 50",...y?{innerHTML:y}:{}},[n.h("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),C=i.text?n.h("p",{class:h.b("text")},[i.text]):void 0;return n.h(n.Transition,{name:h.b("fade"),onAfterLeave:c},{default:n.withCtx(()=>[n.withDirectives(n.createVNode("div",{style:{backgroundColor:i.background||""},class:[h.b("mask"),i.customClass,i.fullscreen?"is-fullscreen":""]},[n.h("div",{class:h.b("spinner")},[b,C])]),[[n.vShow,i.visible]])])})}}}),f=n.createApp(d),u=f.mount(document.createElement("div"));return{...n.toRefs(i),setText:a,removeElLoadingChild:s,close:l,handleAfterLeave:c,vm:u,get $el(){return u.$el}}}let Wn;const ri=function(e={}){if(!K)return;const t=Wg(e);if(t.fullscreen&&Wn)return Wn;const o=Ug({...t,closed:()=>{var a;(a=t.closed)==null||a.call(t),t.fullscreen&&(Wn=void 0)}});qg(t,t.parent,o),fs(t,t.parent,o),t.parent.vLoadingAddClassList=()=>fs(t,t.parent,o);let i=t.parent.getAttribute("loading-number");return i?i=`${Number.parseInt(i)+1}`:i="1",t.parent.setAttribute("loading-number",i),t.parent.appendChild(o.$el),n.nextTick(()=>o.visible.value=t.visible),t.fullscreen&&(Wn=o),o},Wg=e=>{var t,o,i,a;let r;return me(e.target)?r=(t=document.querySelector(e.target))!=null?t:document.body:r=e.target||document.body,{parent:r===document.body||e.body?document.body:r,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:r===document.body&&((o=e.fullscreen)!=null?o:!0),lock:(i=e.lock)!=null?i:!1,customClass:e.customClass||"",visible:(a=e.visible)!=null?a:!0,beforeClose:e.beforeClose,closed:e.closed,target:r}},qg=async(e,t,o)=>{const{nextZIndex:i}=o.vm.zIndex||o.vm._.exposed.zIndex,a={};if(e.fullscreen)o.originalPosition.value=mt(document.body,"position"),o.originalOverflow.value=mt(document.body,"overflow"),a.zIndex=i();else if(e.parent===document.body){o.originalPosition.value=mt(document.body,"position"),await n.nextTick();for(const r of["top","left"]){const s=r==="top"?"scrollTop":"scrollLeft";a[r]=`${e.target.getBoundingClientRect()[r]+document.body[s]+document.documentElement[s]-Number.parseInt(mt(document.body,`margin-${r}`),10)}px`}for(const r of["height","width"])a[r]=`${e.target.getBoundingClientRect()[r]}px`}else o.originalPosition.value=mt(t,"position");for(const[r,s]of Object.entries(a))o.$el.style[r]=s},fs=(e,t,o)=>{const i=o.vm.ns||o.vm._.exposed.ns;["absolute","fixed","sticky"].includes(o.originalPosition.value)?Ht(t,i.bm("parent","relative")):Eo(t,i.bm("parent","relative")),e.fullscreen&&e.lock?Eo(t,i.bm("parent","hidden")):Ht(t,i.bm("parent","hidden"))},qn=Symbol("ElLoading"),us=(e,t)=>{var o,i,a,r;const s=t.instance,l=p=>te(t.value)?t.value[p]:void 0,c=p=>{const g=me(p)&&(s==null?void 0:s[p])||p;return g&&n.ref(g)},d=p=>c(l(p)||e.getAttribute(`element-loading-${Js(p)}`)),f=(o=l("fullscreen"))!=null?o:t.modifiers.fullscreen,u={text:d("text"),svg:d("svg"),svgViewBox:d("svgViewBox"),spinner:d("spinner"),background:d("background"),customClass:d("customClass"),fullscreen:f,target:(i=l("target"))!=null?i:f?void 0:e,body:(a=l("body"))!=null?a:t.modifiers.body,lock:(r=l("lock"))!=null?r:t.modifiers.lock};e[qn]={options:u,instance:ri(u)}},Gg=(e,t)=>{for(const o of Object.keys(t))n.isRef(t[o])&&(t[o].value=e[o])},si={mounted(e,t){t.value&&us(e,t)},updated(e,t){const o=e[qn];t.oldValue!==t.value&&(t.value&&!t.oldValue?us(e,t):t.value&&t.oldValue?te(t.value)&&Gg(t.value,o.options):o==null||o.instance.close())},unmounted(e){var t;(t=e[qn])==null||t.instance.close(),e[qn]=null}},Jg={install(e){e.directive("loading",si),e.config.globalProperties.$loading=ri},directive:si,service:ri},st=(e,t)=>{const o=e.__vccOpts||e;for(const[i,a]of t)o[i]=a;return o},Yg={name:"SelectionsGroup",components:{Checkbox:Gr,CheckboxGroup:Jr,Col:nn,Icon:be,Row:tn,ElIconWarning:W.Warning},methods:{reset:function(){this.checkAll=!0,this.checkedItems=[],this.selections.forEach(e=>{!("enabled"in e)||e.enabled===!0?this.checkedItems.push(e[this.identifierKey]):this.checkAll=!1})},setCheckboxActionData:function(e,t){if(e){const o=e.querySelector('input[type="checkbox"]'),i=e.querySelector(".el-checkbox__label"),r=e.closest(".selections-container").querySelector(".checkall-display-text");let s="";o&&(s=o.checked?"checked":"unchecked"),this.checkboxActionData={selectionsTitle:r?r.innerText:"",property:o&&t!=="all"?o.value:"",label:i?i.innerText:"",checked:s}}else this.checkboxActionData={selectionsTitle:"",property:"",label:"",checked:""}},onCheckboxNativeChange:function(e){const t=e.target.closest(".checkbox-container");this.setCheckboxActionData(t,"individual")},onAllCheckboxNativeChange:function(e){const t=e.target.closest(".all-checkbox");this.setCheckboxActionData(t,"all")},visibilityToggle:function(e,t){this.$emit("changed",{key:e,value:t}),e===this.checkboxActionData.property&&(this.checkboxActionData.checked=t?"checked":"unchecked"),this.$emit("selections-data-changed",this.checkboxActionData)},checkboxMouseEnterEmit:function(e,t){this.$emit("checkboxMouseEnter",{key:e,value:t,selections:this.selections,checked:this.checkedItems})},handleCheckedItemsChange:function(e){let t=e.length;this.checkAll=t===this.selections.length},handleCheckAllChange:function(e){this.checkedItems=e?this.selections.map(t=>t[this.identifierKey]):[],this.$emit("checkAll",{keys:this.selections.map(t=>t[this.identifierKey]),value:e}),this.checkboxActionData.property=this.identifierKey,this.checkboxActionData.checked=e?"checked":"unchecked",this.$emit("selections-data-changed",this.checkboxActionData)},getBackgroundStyles:function(e){return"colour"in e&&this.colourStyle==="background"?{background:e.colour}:{}},getState:function(){const t=this.checkedItems.length===this.selections.length;return{checkAll:t,checked:t?[]:this.checkedItems}},setState:function(e){var t;if(this.checkAll=e.checkAll,this.checkedItems.length=0,(t=e.checked)!=null&&t.length)this.checkedItems.push(...e.checked),this.selections.forEach(o=>{const i=o[this.identifierKey];this.$emit("changed",{key:i,value:this.checkedItems.includes(i)})});else{const o=this.selections.map(a=>a[this.identifierKey]);let i=!1;this.checkAll&&(i=!0,this.checkedItems.push(...o)),this.$emit("checkAll",{keys:o,value:i})}},hasLineStyles:function(e){return"colour"in e&&this.colourStyle==="line"},getLineStyles:function(e){return"colour"in e&&this.colourStyle==="line"?"dashed"in e&&e.dashed===!0?{background:`repeating-linear-gradient(90deg,${e.colour},${e.colour} 6px,transparent 0,transparent 9px)`}:{background:e.colour}:{display:"None"}}},props:{colourStyle:{type:String,default:"line"},helpMessage:{type:String,default:""},identifierKey:{type:String,default:"id"},labelKey:{type:String,default:"label"},title:{type:String,default:""},selections:{type:Array,default:function(){return[]}},showAsLegend:{type:Boolean,default:!1}},computed:{isIndeterminate:function(){return!(this.checkedItems.length===0||this.checkAll)}},data:function(){return{checkedItems:[],checkAll:!0,checkboxActionData:{selectionsTitle:"",property:"",label:"",checked:""}}},mounted:function(){this.reset()}},Zg={class:"selections-container"},Qg={class:"checkall-display-text"},Xg={style:{"word-break":"keep-all"}},ey={class:"checkbox-group-inner"},ty=["onMouseenter","onMouseleave"];function ny(e,t,o,i,a,r){const s=W.Warning,l=be,c=on,d=nn,f=Gr,u=tn,p=Jr;return n.openBlock(),n.createElementBlock("div",Zg,[n.createVNode(u,null,{default:n.withCtx(()=>[n.createVNode(d,{span:12},{default:n.withCtx(()=>[n.createElementVNode("span",Qg,n.toDisplayString(o.title),1),o.helpMessage?(n.openBlock(),n.createBlock(c,{key:0,width:"250",trigger:"hover",teleported:!1,"popper-class":"popover-origin-help"},n.createSlots({default:n.withCtx(()=>[n.createElementVNode("span",Xg,n.toDisplayString(o.helpMessage),1)]),_:2},[o.helpMessage?{name:"reference",fn:n.withCtx(()=>[n.createVNode(l,{class:"info"},{default:n.withCtx(()=>[n.createVNode(s)]),_:1})]),key:"0"}:void 0]),1024)):n.createCommentVNode("",!0)]),_:1}),n.createVNode(d,{span:12},{default:n.withCtx(()=>[o.selections&&o.selections.length>1&&!o.showAsLegend?(n.openBlock(),n.createBlock(f,{key:0,class:"all-checkbox",indeterminate:r.isIndeterminate,modelValue:e.checkAll,"onUpdate:modelValue":t[0]||(t[0]=g=>e.checkAll=g),onChange:r.handleCheckAllChange,onClick:r.onAllCheckboxNativeChange},{default:n.withCtx(()=>t[2]||(t[2]=[n.createTextVNode("Display all")])),_:1},8,["indeterminate","modelValue","onChange","onClick"])):n.createCommentVNode("",!0)]),_:1})]),_:1}),n.createVNode(p,{class:n.normalizeClass({"show-as-legend":o.showAsLegend,"checkbox-group":!o.showAsLegend}),modelValue:e.checkedItems,"onUpdate:modelValue":t[1]||(t[1]=g=>e.checkedItems=g),size:"small",onChange:r.handleCheckedItemsChange},{default:n.withCtx(()=>[n.createElementVNode("div",ey,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.selections,g=>(n.openBlock(),n.createBlock(u,{key:g[o.identifierKey],label:g[o.identifierKey]},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"checkbox-container",onMouseenter:h=>r.checkboxMouseEnterEmit(g[o.identifierKey],!0),onMouseleave:h=>r.checkboxMouseEnterEmit(g[o.identifierKey],!1)},[n.createVNode(f,{class:"my-checkbox",label:g[o.identifierKey],value:g[o.identifierKey],onChange:h=>r.visibilityToggle(g[o.identifierKey],h),onClick:r.onCheckboxNativeChange,checked:!("enabled"in g)||g.enabled===!0},{default:n.withCtx(()=>[n.createVNode(u,{class:"checkbox-row"},{default:n.withCtx(()=>[r.hasLineStyles(g)?(n.openBlock(),n.createBlock(d,{key:0,span:4},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"path-visual",style:n.normalizeStyle(r.getLineStyles(g))},null,4)]),_:2},1024)):n.createCommentVNode("",!0),n.createVNode(d,{span:20},{default:n.withCtx(()=>[n.createElementVNode("div",{style:n.normalizeStyle(r.getBackgroundStyles(g))},n.toDisplayString(g[o.labelKey]),5)]),_:2},1024)]),_:2},1024)]),_:2},1032,["label","value","onChange","onClick","checked"])],40,ty)]),_:2},1032,["label"]))),128))])]),_:1},8,["class","modelValue","onChange"])])}const ps=st(Yg,[["render",ny],["__scopeId","data-v-35fb97d0"]]),oy='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="<fillColor>" stroke="<borderColor>" stroke-width="<borderWidth>" d="M11.0748 3.25583C11.4141 2.42845 12.5859 2.42845 12.9252 3.25583L14.6493 7.45955C14.793 7.80979 15.1221 8.04889 15.4995 8.07727L20.0303 8.41798C20.922 8.48504 21.2841 9.59942 20.6021 10.1778L17.1369 13.1166C16.8482 13.3614 16.7225 13.7483 16.8122 14.1161L17.8882 18.5304C18.1 19.3992 17.152 20.0879 16.3912 19.618L12.5255 17.2305C12.2034 17.0316 11.7966 17.0316 11.4745 17.2305L7.60881 19.618C6.84796 20.0879 5.90001 19.3992 6.1118 18.5304L7.18785 14.1161C7.2775 13.7483 7.1518 13.3614 6.86309 13.1166L3.3979 10.1778C2.71588 9.59942 3.07796 8.48504 3.96971 8.41798L8.50046 8.07727C8.87794 8.04889 9.20704 7.80979 9.35068 7.45955L11.0748 3.25583Z"/></svg>',iy={name:"LegendItem",props:{item:{type:Object,required:!0},identifierKey:{type:String,default:"id"},styleKey:{type:String,default:"style"},showStarInLegend:{type:Boolean,default:!1}},computed:{clipPathLegends:function(){return["exoid","hexagon"]},legendStyleValue:function(){return this.item[this.styleKey]==="star"?this.item[this.identifierKey]==="Featured dataset marker"&&!this.showStarInLegend?void 0:"star":this.clipPathLegends.includes(this.item[this.styleKey])?this.item[this.styleKey]:this.item[this.styleKey]==="line"?[this.item[this.styleKey],this.item.dashed?"dashed":"",this.item.arrow?"arrow":""]:[this.item[this.styleKey],"shape"]},customStyle:function(){const e=this.item.color?this.item.color:this.item.colour;let t=e||"transparent",o=this.item.border?this.item.border:"black",i=this.item.borderStyle?this.item.borderStyle:"default";if(e&&!this.item.border&&(o=t),this.item[this.styleKey]==="star"){let a=oy.replace("<fillColor>",t);return a=a.replace("<borderColor>",o),a=a.replace("<borderWidth>",o?"2":"0"),a="data:image/svg+xml,"+encodeURIComponent(a),{color:t,"background-image":`url(${a})`}}else return this.item[this.styleKey]==="line"?{color:t}:{"background-color":t,"border-color":o,"border-style":i}}},methods:{capitalise:function(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()},customClipPathStyle:function(e){const t={...this.customStyle};return e?t["background-color"]=t["border-color"]:t.scale=.7,t}}},ay={key:0,class:"legend-item"},ry={class:"label"};function sy(e,t,o,i,a,r){return r.legendStyleValue?(n.openBlock(),n.createElementBlock("div",ay,[r.clipPathLegends.includes(r.legendStyleValue)?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(r.legendStyleValue),style:n.normalizeStyle(r.customClipPathStyle(!0))},[n.createElementVNode("div",{class:n.normalizeClass(r.legendStyleValue),style:n.normalizeStyle(r.customClipPathStyle(!1))},null,6)],6)):(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(r.legendStyleValue),style:n.normalizeStyle(r.customStyle)},null,6)),n.createElementVNode("div",ry,n.toDisplayString(r.capitalise(o.item[o.identifierKey])),1)])):n.createCommentVNode("",!0)}const hs=st(iy,[["render",sy],["__scopeId","data-v-b7e5b095"]]),ly={name:"DynamicLegends",components:{LegendItem:hs},props:{identifierKey:{type:String,default:"id"},styleKey:{type:String,default:"style"},title:{type:String,default:""},legends:{type:Array,default:function(){return[]}},showStarInLegend:{type:Boolean,default:!1},showDatasetMarkerTooltip:{type:Boolean,default:!1}},data(){return{isHovering:!1,hoverTimeout:null}},computed:{tooltipVisible(){return this.showDatasetMarkerTooltip&&this.showStarInLegend||this.isHovering}},methods:{onMouseOver(){clearTimeout(this.hoverTimeout),this.hoverTimeout=setTimeout(()=>{this.isHovering=!0},500)},onMouseOut(){clearTimeout(this.hoverTimeout),this.hoverTimeout=setTimeout(()=>{this.isHovering=!1},500)}}},cy={class:"legend-group"},dy=["label"];function fy(e,t,o,i,a,r){const s=hs,l=on,c=ai;return n.openBlock(),n.createElementBlock("div",cy,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.legends,d=>(n.openBlock(),n.createElementBlock("div",{class:"legend-container",key:d[o.identifierKey],label:d[o.identifierKey]},[d[o.identifierKey]==="Featured dataset marker"?(n.openBlock(),n.createBlock(l,{key:0,content:"Location of the featured dataset",placement:"right",teleported:!0,trigger:"manual",width:"max-content",offset:0,"popper-class":"flatmap-popper flatmap-teleport-popper",visible:r.tooltipVisible,ref_for:!0,ref:"featuredMarkerPopover"},{reference:n.withCtx(()=>[n.withDirectives((n.openBlock(),n.createElementBlock("div",{onMouseover:t[0]||(t[0]=(...f)=>r.onMouseOver&&r.onMouseOver(...f)),onMouseout:t[1]||(t[1]=(...f)=>r.onMouseOut&&r.onMouseOut(...f))},[n.createVNode(s,{item:d,identifierKey:o.identifierKey,styleKey:o.styleKey,showStarInLegend:o.showStarInLegend},null,8,["item","identifierKey","styleKey","showStarInLegend"])],32)),[[c,void 0,"featuredMarkerPopover"]])]),_:2},1032,["visible"])):(n.openBlock(),n.createBlock(s,{key:1,item:d,identifierKey:o.identifierKey,styleKey:o.styleKey,showStarInLegend:o.showStarInLegend},null,8,["item","identifierKey","styleKey","showStarInLegend"]))],8,dy))),128))])}const uy=st(ly,[["render",fy],["__scopeId","data-v-32c93a1a"]]),py={name:"FlatmapError",props:{flatmapError:{type:Object,default:()=>({})}}},hy={class:"flatmap-error"},my={class:"flatmap-error-title"},gy={key:0},yy={key:0,class:"flatmap-error-message"},by=["innerHTML"],wy={key:1};function Cy(e,t,o,i,a,r){const s=W.DocumentDelete,l=be,c=ei;return n.openBlock(),n.createElementBlock("div",hy,[n.createElementVNode("div",my,[n.createVNode(l,{size:"24"},{default:n.withCtx(()=>[n.createVNode(s)]),_:1}),o.flatmapError.title?(n.openBlock(),n.createElementBlock("div",gy,n.toDisplayString(o.flatmapError.title),1)):n.createCommentVNode("",!0)]),o.flatmapError.messages?(n.openBlock(),n.createElementBlock("div",yy,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.flatmapError.messages,(d,f)=>(n.openBlock(),n.createElementBlock("div",{key:f},[n.createElementVNode("div",{innerHTML:d},null,8,by)]))),128))])):n.createCommentVNode("",!0),o.flatmapError.button?(n.openBlock(),n.createElementBlock("div",wy,[n.createVNode(c,{class:"button",type:"primary",onClick:o.flatmapError.button.callback},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(o.flatmapError.button.text),1)]),_:1},8,["onClick"])])):n.createCommentVNode("",!0)])}const li=st(py,[["render",Cy],["__scopeId","data-v-8961361a"]]),vy={name:"SvgLegends"},Sy={class:"legends-container"},ky={version:"1.1",id:"Layer_1",x:"0px",y:"0px",viewBox:"0 0 500 500",style:{"enable-background":"new 0 0 500 500"},xmlns:"http://www.w3.org/2000/svg","xmlns:bx":"https://boxy-svg.com"};function Ey(e,t,o,i,a,r){return n.openBlock(),n.createElementBlock("div",Sy,[(n.openBlock(),n.createElementBlock("svg",ky,t[0]||(t[0]=[n.createStaticVNode('<defs data-v-88079d87><bx:grid height="30.447" width="32.516" x="0" y="0" data-v-88079d87></bx:grid></defs><path class="st0 st0-translate" d="M61.3,103.8c-15.9,0-28.8-12.3-28.8-27.3c0-15,13-27.3,28.8-27.3s28.8,12.3,28.8,27.3 C90.1,91.5,77.2,103.8,61.3,103.8z" data-v-88079d87></path><path class="st1" d="M40.3,356.1C29.5,345,29.8,328,41.5,317.5c11.7-10.5,29.6-9.9,40.7,1.1c11.1,11,10.5,28.1-1.2,38.5 C69.3,367.4,51.1,366.9,40.3,356.1z" data-v-88079d87></path><path class="st2" d="M61.2,396.9c-5.3,9.3-15.3,15.1-26.1,15.1l-0.4,0.6c5.1,9,5.1,20,0,29l0.4,0.6c10.7,0,20.8,5.8,26.1,15.1 c5.3-9.3,15.3-15.1,26.1-15.1c-5.3-9.3-5.3-20.9,0-30.4C76.6,412.1,66.7,406.3,61.2,396.9z" data-v-88079d87></path><text transform="matrix(0.9908 0 0 1 118.0161 171.7975)" class="st3 st4 st5" style="white-space:pre;" data-v-88079d87> Tissue region </text><path class="st6" d="M40.9,231.1c11.3-10.6,29.5-10.6,40.8,0c11.3,10.6,11.3,27.9,0,38.5c-11.3,10.6-29.5,10.6-40.8,0 C29.7,259,29.7,241.7,40.9,231.1z" data-v-88079d87></path><text transform="matrix(0.9908 0 0 1 118.0161 257.675)" class="st3 st4 st5" style="white-space:pre;" data-v-88079d87> Brain nuclei </text><text transform="matrix(0.9908 0 0 1 118.0903 345.5266)" class="st3 st4 st5" style="white-space:pre;" data-v-88079d87> Ganglia </text><text transform="matrix(0.9908 0 0 1 118.0903 433.1613)" class="st3 st4 st5" style="white-space:pre;" data-v-88079d87> Ganglionated nerve plexus </text>',9)]))),t[1]||(t[1]=n.createElementVNode("svg",{width:"72px",height:"72px",viewBox:"0 0 24 24",fill:"yellow"},null,-1))])}const Iy=st(vy,[["render",Ey],["__scopeId","data-v-88079d87"]]),Ty=`<div class="flatmap-marker">
|
|
11
|
+
})`);const o=Mo();return n.computed(()=>n.unref(e)||`${o.value}-id-${t.prefix}-${t.current++}`)};let kt=[];const or=e=>{const t=e;t.key===Kt.esc&&kt.forEach(o=>o(t))},mp=e=>{n.onMounted(()=>{kt.length===0&&document.addEventListener("keydown",or),K&&kt.push(e)}),n.onBeforeUnmount(()=>{kt=kt.filter(t=>t!==e),kt.length===0&&K&&document.removeEventListener("keydown",or)})};let ir;const ar=()=>{const e=Mo(),t=nr(),o=n.computed(()=>`${e.value}-popper-container-${t.prefix}`),i=n.computed(()=>`#${o.value}`);return{id:o,selector:i}},gp=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},yp=()=>{const{id:e,selector:t}=ar();return n.onBeforeMount(()=>{K&&(process.env.NODE_ENV==="test"||!ir||!document.body.querySelector(t.value))&&(ir=gp(e.value))}),{id:e,selector:t}},bp=R({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),wp=({showAfter:e,hideAfter:t,autoClose:o,open:i,close:a})=>{const{registerTimeout:r}=tr(),{registerTimeout:s,cancelTimeout:l}=tr();return{onOpen:f=>{r(()=>{i(f);const u=n.unref(o);G(u)&&u>0&&s(()=>{a(f)},u)},n.unref(e))},onClose:f=>{l(),r(()=>{a(f)},n.unref(t))}}},rr=Symbol("elForwardRef"),Cp=e=>{const t=o=>{e.value=o};n.provide(rr,{setForwardRef:t})},vp=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),sr={current:0},lr=n.ref(0),cr=2e3,dr=Symbol("elZIndexContextKey"),fr=Symbol("zIndexContextKey"),$o=e=>{const t=n.getCurrentInstance()?n.inject(dr,sr):sr,o=e||(n.getCurrentInstance()?n.inject(fr,void 0):void 0),i=n.computed(()=>{const s=n.unref(o);return G(s)?s:cr}),a=n.computed(()=>i.value+lr.value),r=()=>(t.current++,lr.value=t.current,a.value);return!K&&!n.inject(dr)&&ne("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:i,currentZIndex:a,nextZIndex:r}},Et=Tn({type:String,values:Ba,required:!1}),ur=Symbol("size"),Sp=()=>{const e=n.inject(ur,{});return n.computed(()=>n.unref(e.size)||"")};function kp(e,{beforeFocus:t,afterFocus:o,beforeBlur:i,afterBlur:a}={}){const r=n.getCurrentInstance(),{emit:s}=r,l=n.shallowRef(),c=n.ref(!1),d=p=>{Q(t)&&t(p)||c.value||(c.value=!0,s("focus",p),o==null||o())},f=p=>{var g;Q(i)&&i(p)||p.relatedTarget&&((g=l.value)!=null&&g.contains(p.relatedTarget))||(c.value=!1,s("blur",p),a==null||a())},u=()=>{var p,g;(p=l.value)!=null&&p.contains(document.activeElement)&&l.value!==document.activeElement||(g=e.value)==null||g.focus()};return n.watch(l,p=>{p&&p.setAttribute("tabindex","-1")}),he(l,"focus",d,!0),he(l,"blur",f,!0),he(l,"click",u,!0),process.env.NODE_ENV==="test"&&n.onMounted(()=>{const p=Xe(e.value)?e.value:document.querySelector("input,textarea");p&&(he(p,"focus",d,!0),he(p,"blur",f,!0))}),{isFocused:c,wrapperRef:l,handleFocus:d,handleBlur:f}}function Ep({afterComposition:e,emit:t}){const o=n.ref(!1),i=l=>{t==null||t("compositionstart",l),o.value=!0},a=l=>{var c;t==null||t("compositionupdate",l);const d=(c=l.target)==null?void 0:c.value,f=d[d.length-1]||"";o.value=!Xf(f)},r=l=>{t==null||t("compositionend",l),o.value&&(o.value=!1,n.nextTick(()=>e(l)))};return{isComposing:o,handleComposition:l=>{l.type==="compositionend"?r(l):a(l)},handleCompositionStart:i,handleCompositionUpdate:a,handleCompositionEnd:r}}const pr=Symbol("emptyValuesContextKey"),Ip="use-empty-values",Tp=["",void 0,null],Ap=void 0,Op=R({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:e=>Q(e)?!e():!e}}),Mp=(e,t)=>{const o=n.getCurrentInstance()?n.inject(pr,n.ref({})):n.ref({}),i=n.computed(()=>e.emptyValues||o.value.emptyValues||Tp),a=n.computed(()=>Q(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:Q(o.value.valueOnClear)?o.value.valueOnClear():o.value.valueOnClear!==void 0?o.value.valueOnClear:Ap),r=s=>i.value.includes(s);return i.value.includes(a.value)||ne(Ip,"value-on-clear should be a value of empty-values"),{emptyValues:i,valueOnClear:a,isEmptyValue:r}},Bp=R({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),at=e=>ka(Bp,e),hr=Symbol(),_n=n.ref();function Ln(e,t=void 0){const o=n.getCurrentInstance()?n.inject(hr,_n):_n;return e?n.computed(()=>{var i,a;return(a=(i=o.value)==null?void 0:i[e])!=null?a:t}):o}function xp(e,t){const o=Ln(),i=F(e,n.computed(()=>{var l;return((l=o.value)==null?void 0:l.namespace)||Wt})),a=Oo(n.computed(()=>{var l;return(l=o.value)==null?void 0:l.locale})),r=$o(n.computed(()=>{var l;return((l=o.value)==null?void 0:l.zIndex)||cr})),s=n.computed(()=>{var l;return n.unref(t)||((l=o.value)==null?void 0:l.size)||""});return Np(n.computed(()=>n.unref(o)||{})),{ns:i,locale:a,zIndex:r,size:s}}const Np=(e,t,o=!1)=>{var i;const a=!!n.getCurrentInstance(),r=a?Ln():void 0,s=(i=void 0)!=null?i:a?n.provide:void 0;if(!s){ne("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const l=n.computed(()=>{const c=n.unref(e);return r!=null&&r.value?_p(r.value,c):c});return s(hr,l),s(xa,n.computed(()=>l.value.locale)),s(Na,n.computed(()=>l.value.namespace)),s(fr,n.computed(()=>l.value.zIndex)),s(ur,{size:n.computed(()=>l.value.size||"")}),s(pr,n.computed(()=>({emptyValues:l.value.emptyValues,valueOnClear:l.value.valueOnClear}))),(o||!_n.value)&&(_n.value=l.value),l},_p=(e,t)=>{const o=[...new Set([...Ea(e),...Ea(t)])],i={};for(const a of o)i[a]=t[a]!==void 0?t[a]:e[a];return i};var D=(e,t)=>{const o=e.__vccOpts||e;for(const[i,a]of t)o[i]=a;return o};const Lp=R({size:{type:_([Number,String])},color:{type:String}}),Pp=n.defineComponent({name:"ElIcon",inheritAttrs:!1}),Vp=n.defineComponent({...Pp,props:Lp,setup(e){const t=e,o=F("icon"),i=n.computed(()=>{const{size:a,color:r}=t;return!a&&!r?{}:{fontSize:ze(a)?void 0:et(a),"--color":r}});return(a,r)=>(n.openBlock(),n.createElementBlock("i",n.mergeProps({class:n.unref(o).b(),style:n.unref(i)},a.$attrs),[n.renderSlot(a.$slots,"default")],16))}});var Rp=D(Vp,[["__file","icon.vue"]]);const be=oe(Rp),zo=Symbol("formContextKey"),Pn=Symbol("formItemContextKey"),It=(e,t={})=>{const o=n.ref(void 0),i=t.prop?o:_a("size"),a=t.global?o:Sp(),r=t.form?{size:void 0}:n.inject(zo,void 0),s=t.formItem?{size:void 0}:n.inject(Pn,void 0);return n.computed(()=>i.value||n.unref(e)||(s==null?void 0:s.size)||(r==null?void 0:r.size)||a.value||"")},Vn=e=>{const t=_a("disabled"),o=n.inject(zo,void 0);return n.computed(()=>t.value||n.unref(e)||(o==null?void 0:o.disabled)||!1)},Tt=()=>{const e=n.inject(zo,void 0),t=n.inject(Pn,void 0);return{form:e,formItem:t}},Rn=(e,{formItemContext:t,disableIdGeneration:o,disableIdManagement:i})=>{o||(o=n.ref(!1)),i||(i=n.ref(!1));const a=n.ref();let r;const s=n.computed(()=>{var l;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((l=t.inputIds)==null?void 0:l.length)<=1)});return n.onMounted(()=>{r=n.watch([n.toRef(e,"id"),o],([l,c])=>{const d=l??(c?void 0:it().value);d!==a.value&&(t!=null&&t.removeInputId&&(a.value&&t.removeInputId(a.value),!(i!=null&&i.value)&&!c&&d&&t.addInputId(d)),a.value=d)},{immediate:!0})}),n.onUnmounted(()=>{r&&r(),t!=null&&t.removeInputId&&a.value&&t.removeInputId(a.value)}),{isLabeledByFormItem:s,inputId:a}},At=4,Dp={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},Fp=({move:e,size:t,bar:o})=>({[o.size]:t,transform:`translate${o.axis}(${e}%)`}),jo=Symbol("scrollbarContextKey"),$p=R({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),zp="Thumb";var mr=D(n.defineComponent({__name:"thumb",props:$p,setup(e){const t=e,o=n.inject(jo),i=F("scrollbar");o||Ta(zp,"can not inject scrollbar context");const a=n.ref(),r=n.ref(),s=n.ref({}),l=n.ref(!1);let c=!1,d=!1,f=K?document.onselectstart:null;const u=n.computed(()=>Dp[t.vertical?"vertical":"horizontal"]),p=n.computed(()=>Fp({size:t.size,move:t.move,bar:u.value})),g=n.computed(()=>a.value[u.value.offset]**2/o.wrapElement[u.value.scrollSize]/t.ratio/r.value[u.value.offset]),h=k=>{var E;if(k.stopPropagation(),k.ctrlKey||[1,2].includes(k.button))return;(E=window.getSelection())==null||E.removeAllRanges(),b(k);const O=k.currentTarget;O&&(s.value[u.value.axis]=O[u.value.offset]-(k[u.value.client]-O.getBoundingClientRect()[u.value.direction]))},m=k=>{if(!r.value||!a.value||!o.wrapElement)return;const E=Math.abs(k.target.getBoundingClientRect()[u.value.direction]-k[u.value.client]),O=r.value[u.value.offset]/2,B=(E-O)*100*g.value/a.value[u.value.offset];o.wrapElement[u.value.scroll]=B*o.wrapElement[u.value.scrollSize]/100},b=k=>{k.stopImmediatePropagation(),c=!0,document.addEventListener("mousemove",y),document.addEventListener("mouseup",v),f=document.onselectstart,document.onselectstart=()=>!1},y=k=>{if(!a.value||!r.value||c===!1)return;const E=s.value[u.value.axis];if(!E)return;const O=(a.value.getBoundingClientRect()[u.value.direction]-k[u.value.client])*-1,B=r.value[u.value.offset]-E,N=(O-B)*100*g.value/a.value[u.value.offset];o.wrapElement[u.value.scroll]=N*o.wrapElement[u.value.scrollSize]/100},v=()=>{c=!1,s.value[u.value.axis]=0,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",v),w(),d&&(l.value=!1)},T=()=>{d=!1,l.value=!!t.size},S=()=>{d=!0,l.value=c};n.onBeforeUnmount(()=>{w(),document.removeEventListener("mouseup",v)});const w=()=>{document.onselectstart!==f&&(document.onselectstart=f)};return he(n.toRef(o,"scrollbarElement"),"mousemove",T),he(n.toRef(o,"scrollbarElement"),"mouseleave",S),(k,E)=>(n.openBlock(),n.createBlock(n.Transition,{name:n.unref(i).b("fade"),persisted:""},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{ref_key:"instance",ref:a,class:n.normalizeClass([n.unref(i).e("bar"),n.unref(i).is(n.unref(u).key)]),onMousedown:m},[n.createElementVNode("div",{ref_key:"thumb",ref:r,class:n.normalizeClass(n.unref(i).e("thumb")),style:n.normalizeStyle(n.unref(p)),onMousedown:h},null,38)],34),[[n.vShow,k.always||l.value]])]),_:1},8,["name"]))}}),[["__file","thumb.vue"]]);const jp=R({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}});var Hp=D(n.defineComponent({__name:"bar",props:jp,setup(e,{expose:t}){const o=e,i=n.inject(jo),a=n.ref(0),r=n.ref(0),s=n.ref(""),l=n.ref(""),c=n.ref(1),d=n.ref(1);return t({handleScroll:p=>{if(p){const g=p.offsetHeight-At,h=p.offsetWidth-At;r.value=p.scrollTop*100/g*c.value,a.value=p.scrollLeft*100/h*d.value}},update:()=>{const p=i==null?void 0:i.wrapElement;if(!p)return;const g=p.offsetHeight-At,h=p.offsetWidth-At,m=g**2/p.scrollHeight,b=h**2/p.scrollWidth,y=Math.max(m,o.minSize),v=Math.max(b,o.minSize);c.value=m/(g-m)/(y/(g-y)),d.value=b/(h-b)/(v/(h-v)),l.value=y+At<g?`${y}px`:"",s.value=v+At<h?`${v}px`:""}}),(p,g)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(mr,{move:a.value,ratio:d.value,size:s.value,always:p.always},null,8,["move","ratio","size","always"]),n.createVNode(mr,{move:r.value,ratio:c.value,size:l.value,vertical:"",always:p.always},null,8,["move","ratio","size","always"])],64))}}),[["__file","bar.vue"]]);const Kp=R({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:_([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...at(["ariaLabel","ariaOrientation"])}),Up={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(G)},Ho="ElScrollbar",Wp=n.defineComponent({name:Ho}),qp=n.defineComponent({...Wp,props:Kp,emits:Up,setup(e,{expose:t,emit:o}){const i=e,a=F("scrollbar");let r,s,l=0,c=0;const d=n.ref(),f=n.ref(),u=n.ref(),p=n.ref(),g=n.computed(()=>{const w={};return i.height&&(w.height=et(i.height)),i.maxHeight&&(w.maxHeight=et(i.maxHeight)),[i.wrapStyle,w]}),h=n.computed(()=>[i.wrapClass,a.e("wrap"),{[a.em("wrap","hidden-default")]:!i.native}]),m=n.computed(()=>[a.e("view"),i.viewClass]),b=()=>{var w;f.value&&((w=p.value)==null||w.handleScroll(f.value),l=f.value.scrollTop,c=f.value.scrollLeft,o("scroll",{scrollTop:f.value.scrollTop,scrollLeft:f.value.scrollLeft}))};function y(w,k){te(w)?f.value.scrollTo(w):G(w)&&G(k)&&f.value.scrollTo(w,k)}const v=w=>{if(!G(w)){ne(Ho,"value must be a number");return}f.value.scrollTop=w},T=w=>{if(!G(w)){ne(Ho,"value must be a number");return}f.value.scrollLeft=w},S=()=>{var w;(w=p.value)==null||w.update()};return n.watch(()=>i.noresize,w=>{w?(r==null||r(),s==null||s()):({stop:r}=Re(u,S),s=he("resize",S))},{immediate:!0}),n.watch(()=>[i.maxHeight,i.height],()=>{i.native||n.nextTick(()=>{var w;S(),f.value&&((w=p.value)==null||w.handleScroll(f.value))})}),n.provide(jo,n.reactive({scrollbarElement:d,wrapElement:f})),n.onActivated(()=>{f.value&&(f.value.scrollTop=l,f.value.scrollLeft=c)}),n.onMounted(()=>{i.native||n.nextTick(()=>{S()})}),n.onUpdated(()=>S()),t({wrapRef:f,update:S,scrollTo:y,setScrollTop:v,setScrollLeft:T,handleScroll:b}),(w,k)=>(n.openBlock(),n.createElementBlock("div",{ref_key:"scrollbarRef",ref:d,class:n.normalizeClass(n.unref(a).b())},[n.createElementVNode("div",{ref_key:"wrapRef",ref:f,class:n.normalizeClass(n.unref(h)),style:n.normalizeStyle(n.unref(g)),tabindex:w.tabindex,onScroll:b},[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(w.tag),{id:w.id,ref_key:"resizeRef",ref:u,class:n.normalizeClass(n.unref(m)),style:n.normalizeStyle(w.viewStyle),role:w.role,"aria-label":w.ariaLabel,"aria-orientation":w.ariaOrientation},{default:n.withCtx(()=>[n.renderSlot(w.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),w.native?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createBlock(Hp,{key:0,ref_key:"barRef",ref:p,always:w.always,"min-size":w.minSize},null,8,["always","min-size"]))],2))}});var Gp=D(qp,[["__file","scrollbar.vue"]]);const Jp=oe(Gp),Ko=Symbol("popper"),gr=Symbol("popperContent"),yr=R({role:{type:String,values:["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],default:"tooltip"}}),Yp=n.defineComponent({name:"ElPopper",inheritAttrs:!1}),Zp=n.defineComponent({...Yp,props:yr,setup(e,{expose:t}){const o=e,i=n.ref(),a=n.ref(),r=n.ref(),s=n.ref(),l=n.computed(()=>o.role),c={triggerRef:i,popperInstanceRef:a,contentRef:r,referenceRef:s,role:l};return t(c),n.provide(Ko,c),(d,f)=>n.renderSlot(d.$slots,"default")}});var Qp=D(Zp,[["__file","popper.vue"]]);const br=R({arrowOffset:{type:Number,default:5}}),Xp=n.defineComponent({name:"ElPopperArrow",inheritAttrs:!1}),eh=n.defineComponent({...Xp,props:br,setup(e,{expose:t}){const o=e,i=F("popper"),{arrowOffset:a,arrowRef:r,arrowStyle:s}=n.inject(gr,void 0);return n.watch(()=>o.arrowOffset,l=>{a.value=l}),n.onBeforeUnmount(()=>{r.value=void 0}),t({arrowRef:r}),(l,c)=>(n.openBlock(),n.createElementBlock("span",{ref_key:"arrowRef",ref:r,class:n.normalizeClass(n.unref(i).e("arrow")),style:n.normalizeStyle(n.unref(s)),"data-popper-arrow":""},null,6))}});var th=D(eh,[["__file","arrow.vue"]]);const Uo="ElOnlyChild",nh=n.defineComponent({name:Uo,setup(e,{slots:t,attrs:o}){var i;const a=n.inject(rr),r=vp((i=a==null?void 0:a.setForwardRef)!=null?i:Je);return()=>{var s;const l=(s=t.default)==null?void 0:s.call(t,o);if(!l)return null;if(l.length>1)return ne(Uo,"requires exact only one valid child."),null;const c=wr(l);return c?n.withDirectives(n.cloneVNode(c,o),[[r]]):(ne(Uo,"no valid child node found"),null)}}});function wr(e){if(!e)return null;const t=e;for(const o of t){if(te(o))switch(o.type){case n.Comment:continue;case n.Text:case"svg":return Cr(o);case n.Fragment:return wr(o.children);default:return o}return Cr(o)}return null}function Cr(e){const t=F("only-child");return n.createVNode("span",{class:t.e("content")},[e])}const vr=R({virtualRef:{type:_(Object)},virtualTriggering:Boolean,onMouseenter:{type:_(Function)},onMouseleave:{type:_(Function)},onClick:{type:_(Function)},onKeydown:{type:_(Function)},onFocus:{type:_(Function)},onBlur:{type:_(Function)},onContextmenu:{type:_(Function)},id:String,open:Boolean}),oh=n.defineComponent({name:"ElPopperTrigger",inheritAttrs:!1}),ih=n.defineComponent({...oh,props:vr,setup(e,{expose:t}){const o=e,{role:i,triggerRef:a}=n.inject(Ko,void 0);Cp(a);const r=n.computed(()=>l.value?o.id:void 0),s=n.computed(()=>{if(i&&i.value==="tooltip")return o.open&&o.id?o.id:void 0}),l=n.computed(()=>{if(i&&i.value!=="tooltip")return i.value}),c=n.computed(()=>l.value?`${o.open}`:void 0);let d;const f=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return n.onMounted(()=>{n.watch(()=>o.virtualRef,u=>{u&&(a.value=Oe(u))},{immediate:!0}),n.watch(a,(u,p)=>{d==null||d(),d=void 0,Xe(u)&&(f.forEach(g=>{var h;const m=o[g];m&&(u.addEventListener(g.slice(2).toLowerCase(),m),(h=p==null?void 0:p.removeEventListener)==null||h.call(p,g.slice(2).toLowerCase(),m))}),d=n.watch([r,s,l,c],g=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((h,m)=>{En(g[m])?u.removeAttribute(h):u.setAttribute(h,g[m])})},{immediate:!0})),Xe(p)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(g=>p.removeAttribute(g))},{immediate:!0})}),n.onBeforeUnmount(()=>{if(d==null||d(),d=void 0,a.value&&Xe(a.value)){const u=a.value;f.forEach(p=>{const g=o[p];g&&u.removeEventListener(p.slice(2).toLowerCase(),g)}),a.value=void 0}}),t({triggerRef:a}),(u,p)=>u.virtualTriggering?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createBlock(n.unref(nh),n.mergeProps({key:0},u.$attrs,{"aria-controls":n.unref(r),"aria-describedby":n.unref(s),"aria-expanded":n.unref(c),"aria-haspopup":n.unref(l)}),{default:n.withCtx(()=>[n.renderSlot(u.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var ah=D(ih,[["__file","trigger.vue"]]);const Wo="focus-trap.focus-after-trapped",qo="focus-trap.focus-after-released",rh="focus-trap.focusout-prevented",Sr={cancelable:!0,bubbles:!1},sh={cancelable:!0,bubbles:!1},kr="focusAfterTrapped",Er="focusAfterReleased",Ir=Symbol("elFocusTrap"),Go=n.ref(),Dn=n.ref(0),Jo=n.ref(0);let Fn=0;const Tr=e=>{const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const a=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||a?NodeFilter.FILTER_SKIP:i.tabIndex>=0||i===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t},Ar=(e,t)=>{for(const o of e)if(!lh(o,t))return o},lh=(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},ch=e=>{const t=Tr(e),o=Ar(t,e),i=Ar(t.reverse(),e);return[o,i]},dh=e=>e instanceof HTMLInputElement&&"select"in e,He=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),Jo.value=window.performance.now(),e!==o&&dh(e)&&t&&e.select()}};function Or(e,t){const o=[...e],i=e.indexOf(t);return i!==-1&&o.splice(i,1),o}const fh=()=>{let e=[];return{push:i=>{const a=e[0];a&&i!==a&&a.pause(),e=Or(e,i),e.unshift(i)},remove:i=>{var a,r;e=Or(e,i),(r=(a=e[0])==null?void 0:a.resume)==null||r.call(a)}}},uh=(e,t=!1)=>{const o=document.activeElement;for(const i of e)if(He(i,t),document.activeElement!==o)return},Mr=fh(),ph=()=>Dn.value>Jo.value,$n=()=>{Go.value="pointer",Dn.value=window.performance.now()},Br=()=>{Go.value="keyboard",Dn.value=window.performance.now()},hh=()=>(n.onMounted(()=>{Fn===0&&(document.addEventListener("mousedown",$n),document.addEventListener("touchstart",$n),document.addEventListener("keydown",Br)),Fn++}),n.onBeforeUnmount(()=>{Fn--,Fn<=0&&(document.removeEventListener("mousedown",$n),document.removeEventListener("touchstart",$n),document.removeEventListener("keydown",Br))}),{focusReason:Go,lastUserFocusTimestamp:Dn,lastAutomatedFocusTimestamp:Jo}),zn=e=>new CustomEvent(rh,{...sh,detail:e}),mh=n.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[kr,Er,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const o=n.ref();let i,a;const{focusReason:r}=hh();mp(h=>{e.trapped&&!s.paused&&t("release-requested",h)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},l=h=>{if(!e.loop&&!e.trapped||s.paused)return;const{key:m,altKey:b,ctrlKey:y,metaKey:v,currentTarget:T,shiftKey:S}=h,{loop:w}=e,k=m===Kt.tab&&!b&&!y&&!v,E=document.activeElement;if(k&&E){const O=T,[B,N]=ch(O);if(B&&N){if(!S&&E===N){const I=zn({focusReason:r.value});t("focusout-prevented",I),I.defaultPrevented||(h.preventDefault(),w&&He(B,!0))}else if(S&&[B,O].includes(E)){const I=zn({focusReason:r.value});t("focusout-prevented",I),I.defaultPrevented||(h.preventDefault(),w&&He(N,!0))}}else if(E===O){const I=zn({focusReason:r.value});t("focusout-prevented",I),I.defaultPrevented||h.preventDefault()}}};n.provide(Ir,{focusTrapRef:o,onKeydown:l}),n.watch(()=>e.focusTrapEl,h=>{h&&(o.value=h)},{immediate:!0}),n.watch([o],([h],[m])=>{h&&(h.addEventListener("keydown",l),h.addEventListener("focusin",f),h.addEventListener("focusout",u)),m&&(m.removeEventListener("keydown",l),m.removeEventListener("focusin",f),m.removeEventListener("focusout",u))});const c=h=>{t(kr,h)},d=h=>t(Er,h),f=h=>{const m=n.unref(o);if(!m)return;const b=h.target,y=h.relatedTarget,v=b&&m.contains(b);e.trapped||y&&m.contains(y)||(i=y),v&&t("focusin",h),!s.paused&&e.trapped&&(v?a=b:He(a,!0))},u=h=>{const m=n.unref(o);if(!(s.paused||!m))if(e.trapped){const b=h.relatedTarget;!En(b)&&!m.contains(b)&&setTimeout(()=>{if(!s.paused&&e.trapped){const y=zn({focusReason:r.value});t("focusout-prevented",y),y.defaultPrevented||He(a,!0)}},0)}else{const b=h.target;b&&m.contains(b)||t("focusout",h)}};async function p(){await n.nextTick();const h=n.unref(o);if(h){Mr.push(s);const m=h.contains(document.activeElement)?i:document.activeElement;if(i=m,!h.contains(m)){const y=new Event(Wo,Sr);h.addEventListener(Wo,c),h.dispatchEvent(y),y.defaultPrevented||n.nextTick(()=>{let v=e.focusStartEl;me(v)||(He(v),document.activeElement!==v&&(v="first")),v==="first"&&uh(Tr(h),!0),(document.activeElement===m||v==="container")&&He(h)})}}}function g(){const h=n.unref(o);if(h){h.removeEventListener(Wo,c);const m=new CustomEvent(qo,{...Sr,detail:{focusReason:r.value}});h.addEventListener(qo,d),h.dispatchEvent(m),!m.defaultPrevented&&(r.value=="keyboard"||!ph()||h.contains(document.activeElement))&&He(i??document.body),h.removeEventListener(qo,d),Mr.remove(s)}}return n.onMounted(()=>{e.trapped&&p(),n.watch(()=>e.trapped,h=>{h?p():g()})}),n.onBeforeUnmount(()=>{e.trapped&&g(),o.value&&(o.value.removeEventListener("keydown",l),o.value.removeEventListener("focusin",f),o.value.removeEventListener("focusout",u),o.value=void 0)}),{onKeydown:l}}});function gh(e,t,o,i,a,r){return n.renderSlot(e.$slots,"default",{handleKeydown:e.onKeydown})}var xr=D(mh,[["render",gh],["__file","focus-trap.vue"]]);const yh=["fixed","absolute"],bh=R({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:_(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:On,default:"bottom"},popperOptions:{type:_(Object),default:()=>({})},strategy:{type:String,values:yh,default:"absolute"}}),Nr=R({...bh,id:String,style:{type:_([String,Array,Object])},className:{type:_([String,Array,Object])},effect:{type:_(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:_([String,Array,Object])},popperStyle:{type:_([String,Array,Object])},referenceEl:{type:_(Object)},triggerTargetEl:{type:_(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...at(["ariaLabel"])}),wh={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},Ch=(e,t=[])=>{const{placement:o,strategy:i,popperOptions:a}=e,r={placement:o,strategy:i,...a,modifiers:[...Sh(e),...t]};return kh(r,a==null?void 0:a.modifiers),r},vh=e=>{if(K)return Oe(e)};function Sh(e){const{offset:t,gpuAcceleration:o,fallbackPlacements:i}=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:i}},{name:"computeStyles",options:{gpuAcceleration:o}}]}function kh(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const Eh=0,Ih=e=>{const{popperInstanceRef:t,contentRef:o,triggerRef:i,role:a}=n.inject(Ko,void 0),r=n.ref(),s=n.ref(),l=n.computed(()=>({name:"eventListeners",enabled:!!e.visible})),c=n.computed(()=>{var y;const v=n.unref(r),T=(y=n.unref(s))!=null?y:Eh;return{name:"arrow",enabled:!Sa(v),options:{element:v,padding:T}}}),d=n.computed(()=>({onFirstUpdate:()=>{h()},...Ch(e,[n.unref(c),n.unref(l)])})),f=n.computed(()=>vh(e.referenceEl)||n.unref(i)),{attributes:u,state:p,styles:g,update:h,forceUpdate:m,instanceRef:b}=up(f,o,d);return n.watch(b,y=>t.value=y),n.onMounted(()=>{n.watch(()=>{var y;return(y=n.unref(f))==null?void 0:y.getBoundingClientRect()},()=>{h()})}),{attributes:u,arrowRef:r,contentRef:o,instanceRef:b,state:p,styles:g,role:a,forceUpdate:m,update:h}},Th=(e,{attributes:t,styles:o,role:i})=>{const{nextZIndex:a}=$o(),r=F("popper"),s=n.computed(()=>n.unref(t).popper),l=n.ref(G(e.zIndex)?e.zIndex:a()),c=n.computed(()=>[r.b(),r.is("pure",e.pure),r.is(e.effect),e.popperClass]),d=n.computed(()=>[{zIndex:n.unref(l)},n.unref(o).popper,e.popperStyle||{}]),f=n.computed(()=>i.value==="dialog"?"false":void 0),u=n.computed(()=>n.unref(o).arrow||{});return{ariaModal:f,arrowStyle:u,contentAttrs:s,contentClass:c,contentStyle:d,contentZIndex:l,updateZIndex:()=>{l.value=G(e.zIndex)?e.zIndex:a()}}},Ah=(e,t)=>{const o=n.ref(!1),i=n.ref();return{focusStartRef:i,trapped:o,onFocusAfterReleased:d=>{var f;((f=d.detail)==null?void 0:f.focusReason)!=="pointer"&&(i.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:d=>{e.visible&&!o.value&&(d.target&&(i.value=d.target),o.value=!0)},onFocusoutPrevented:d=>{e.trapping||(d.detail.focusReason==="pointer"&&d.preventDefault(),o.value=!1)},onReleaseRequested:()=>{o.value=!1,t("close")}}},Oh=n.defineComponent({name:"ElPopperContent"}),Mh=n.defineComponent({...Oh,props:Nr,emits:wh,setup(e,{expose:t,emit:o}){const i=e,{focusStartRef:a,trapped:r,onFocusAfterReleased:s,onFocusAfterTrapped:l,onFocusInTrap:c,onFocusoutPrevented:d,onReleaseRequested:f}=Ah(i,o),{attributes:u,arrowRef:p,contentRef:g,styles:h,instanceRef:m,role:b,update:y}=Ih(i),{ariaModal:v,arrowStyle:T,contentAttrs:S,contentClass:w,contentStyle:k,updateZIndex:E}=Th(i,{styles:h,attributes:u,role:b}),O=n.inject(Pn,void 0),B=n.ref();n.provide(gr,{arrowStyle:T,arrowRef:p,arrowOffset:B}),O&&n.provide(Pn,{...O,addInputId:Je,removeInputId:Je});let N;const x=(L=!0)=>{y(),L&&E()},I=()=>{x(!1),i.visible&&i.focusOnShow?r.value=!0:i.visible===!1&&(r.value=!1)};return n.onMounted(()=>{n.watch(()=>i.triggerTargetEl,(L,q)=>{N==null||N(),N=void 0;const V=n.unref(L||g.value),M=n.unref(q||g.value);Xe(V)&&(N=n.watch([b,()=>i.ariaLabel,v,()=>i.id],$=>{["role","aria-label","aria-modal","id"].forEach((pe,Y)=>{En($[Y])?V.removeAttribute(pe):V.setAttribute(pe,$[Y])})},{immediate:!0})),M!==V&&Xe(M)&&["role","aria-label","aria-modal","id"].forEach($=>{M.removeAttribute($)})},{immediate:!0}),n.watch(()=>i.visible,I,{immediate:!0})}),n.onBeforeUnmount(()=>{N==null||N(),N=void 0}),t({popperContentRef:g,popperInstanceRef:m,updatePopper:x,contentStyle:k}),(L,q)=>(n.openBlock(),n.createElementBlock("div",n.mergeProps({ref_key:"contentRef",ref:g},n.unref(S),{style:n.unref(k),class:n.unref(w),tabindex:"-1",onMouseenter:V=>L.$emit("mouseenter",V),onMouseleave:V=>L.$emit("mouseleave",V)}),[n.createVNode(n.unref(xr),{trapped:n.unref(r),"trap-on-focus-in":!0,"focus-trap-el":n.unref(g),"focus-start-el":n.unref(a),onFocusAfterTrapped:n.unref(l),onFocusAfterReleased:n.unref(s),onFocusin:n.unref(c),onFocusoutPrevented:n.unref(d),onReleaseRequested:n.unref(f)},{default:n.withCtx(()=>[n.renderSlot(L.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}});var Bh=D(Mh,[["__file","content.vue"]]);const xh=oe(Qp),Yo=Symbol("elTooltip"),se=R({...bp,...Nr,appendTo:{type:_([String,Object])},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:_(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...at(["ariaLabel"])}),en=R({...vr,disabled:Boolean,trigger:{type:_([String,Array]),default:"hover"},triggerKeys:{type:_(Array),default:()=>[Kt.enter,Kt.space]}}),{useModelToggleProps:Nh,useModelToggleEmits:_h,useModelToggle:Lh}=cu("visible"),Ph=R({...yr,...Nh,...se,...en,...br,showArrow:{type:Boolean,default:!0}}),Vh=[..._h,"before-show","before-hide","show","hide","open","close"],Rh=(e,t)=>ee(e)?e.includes(t):e===t,Ot=(e,t,o)=>i=>{Rh(n.unref(e),t)&&o(i)},Dh=n.defineComponent({name:"ElTooltipTrigger"}),Fh=n.defineComponent({...Dh,props:en,setup(e,{expose:t}){const o=e,i=F("tooltip"),{controlled:a,id:r,open:s,onOpen:l,onClose:c,onToggle:d}=n.inject(Yo,void 0),f=n.ref(null),u=()=>{if(n.unref(a)||o.disabled)return!0},p=n.toRef(o,"trigger"),g=Ae(u,Ot(p,"hover",l)),h=Ae(u,Ot(p,"hover",c)),m=Ae(u,Ot(p,"click",S=>{S.button===0&&d(S)})),b=Ae(u,Ot(p,"focus",l)),y=Ae(u,Ot(p,"focus",c)),v=Ae(u,Ot(p,"contextmenu",S=>{S.preventDefault(),d(S)})),T=Ae(u,S=>{const{code:w}=S;o.triggerKeys.includes(w)&&(S.preventDefault(),d(S))});return t({triggerRef:f}),(S,w)=>(n.openBlock(),n.createBlock(n.unref(ah),{id:n.unref(r),"virtual-ref":S.virtualRef,open:n.unref(s),"virtual-triggering":S.virtualTriggering,class:n.normalizeClass(n.unref(i).e("trigger")),onBlur:n.unref(y),onClick:n.unref(m),onContextmenu:n.unref(v),onFocus:n.unref(b),onMouseenter:n.unref(g),onMouseleave:n.unref(h),onKeydown:n.unref(T)},{default:n.withCtx(()=>[n.renderSlot(S.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var $h=D(Fh,[["__file","trigger.vue"]]);const zh=R({to:{type:_([String,Object]),required:!0},disabled:Boolean});var jh=D(n.defineComponent({__name:"teleport",props:zh,setup(e){return(t,o)=>t.disabled?n.renderSlot(t.$slots,"default",{key:0}):(n.openBlock(),n.createBlock(n.Teleport,{key:1,to:t.to},[n.renderSlot(t.$slots,"default")],8,["to"]))}}),[["__file","teleport.vue"]]);const _r=oe(jh),Hh=n.defineComponent({name:"ElTooltipContent",inheritAttrs:!1}),Kh=n.defineComponent({...Hh,props:se,setup(e,{expose:t}){const o=e,{selector:i}=ar(),a=F("tooltip"),r=n.ref(null);let s;const{controlled:l,id:c,open:d,trigger:f,onClose:u,onOpen:p,onShow:g,onHide:h,onBeforeShow:m,onBeforeHide:b}=n.inject(Yo,void 0),y=n.computed(()=>o.transition||`${a.namespace.value}-fade-in-linear`),v=n.computed(()=>process.env.NODE_ENV==="test"?!0:o.persistent);n.onBeforeUnmount(()=>{s==null||s()});const T=n.computed(()=>n.unref(v)?!0:n.unref(d)),S=n.computed(()=>o.disabled?!1:n.unref(d)),w=n.computed(()=>o.appendTo||i.value),k=n.computed(()=>{var M;return(M=o.style)!=null?M:{}}),E=n.ref(!0),O=()=>{h(),E.value=!0},B=()=>{if(n.unref(l))return!0},N=Ae(B,()=>{o.enterable&&n.unref(f)==="hover"&&p()}),x=Ae(B,()=>{n.unref(f)==="hover"&&u()}),I=()=>{var M,$;($=(M=r.value)==null?void 0:M.updatePopper)==null||$.call(M),m==null||m()},L=()=>{b==null||b()},q=()=>{g(),s=Ps(n.computed(()=>{var M;return(M=r.value)==null?void 0:M.popperContentRef}),()=>{if(n.unref(l))return;n.unref(f)!=="hover"&&u()})},V=()=>{o.virtualTriggering||u()};return n.watch(()=>n.unref(d),M=>{M?E.value=!1:s==null||s()},{flush:"post"}),n.watch(()=>o.content,()=>{var M,$;($=(M=r.value)==null?void 0:M.updatePopper)==null||$.call(M)}),t({contentRef:r}),(M,$)=>(n.openBlock(),n.createBlock(n.unref(_r),{disabled:!M.teleported,to:n.unref(w)},{default:n.withCtx(()=>[n.createVNode(n.Transition,{name:n.unref(y),onAfterLeave:O,onBeforeEnter:I,onAfterEnter:q,onBeforeLeave:L},{default:n.withCtx(()=>[n.unref(T)?n.withDirectives((n.openBlock(),n.createBlock(n.unref(Bh),n.mergeProps({key:0,id:n.unref(c),ref_key:"contentRef",ref:r},M.$attrs,{"aria-label":M.ariaLabel,"aria-hidden":E.value,"boundaries-padding":M.boundariesPadding,"fallback-placements":M.fallbackPlacements,"gpu-acceleration":M.gpuAcceleration,offset:M.offset,placement:M.placement,"popper-options":M.popperOptions,strategy:M.strategy,effect:M.effect,enterable:M.enterable,pure:M.pure,"popper-class":M.popperClass,"popper-style":[M.popperStyle,n.unref(k)],"reference-el":M.referenceEl,"trigger-target-el":M.triggerTargetEl,visible:n.unref(S),"z-index":M.zIndex,onMouseenter:n.unref(N),onMouseleave:n.unref(x),onBlur:V,onClose:n.unref(u)}),{default:n.withCtx(()=>[n.renderSlot(M.$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"])),[[n.vShow,n.unref(S)]]):n.createCommentVNode("v-if",!0)]),_:3},8,["name"])]),_:3},8,["disabled","to"]))}});var Uh=D(Kh,[["__file","content.vue"]]);const Wh=n.defineComponent({name:"ElTooltip"}),qh=n.defineComponent({...Wh,props:Ph,emits:Vh,setup(e,{expose:t,emit:o}){const i=e;yp();const a=it(),r=n.ref(),s=n.ref(),l=()=>{var y;const v=n.unref(r);v&&((y=v.popperInstanceRef)==null||y.update())},c=n.ref(!1),d=n.ref(),{show:f,hide:u,hasUpdateHandler:p}=Lh({indicator:c,toggleReason:d}),{onOpen:g,onClose:h}=wp({showAfter:n.toRef(i,"showAfter"),hideAfter:n.toRef(i,"hideAfter"),autoClose:n.toRef(i,"autoClose"),open:f,close:u}),m=n.computed(()=>_e(i.visible)&&!p.value);n.provide(Yo,{controlled:m,id:a,open:n.readonly(c),trigger:n.toRef(i,"trigger"),onOpen:y=>{g(y)},onClose:y=>{h(y)},onToggle:y=>{n.unref(c)?h(y):g(y)},onShow:()=>{o("show",d.value)},onHide:()=>{o("hide",d.value)},onBeforeShow:()=>{o("before-show",d.value)},onBeforeHide:()=>{o("before-hide",d.value)},updatePopper:l}),n.watch(()=>i.disabled,y=>{y&&c.value&&(c.value=!1)});const b=y=>{var v,T;const S=(T=(v=s.value)==null?void 0:v.contentRef)==null?void 0:T.popperContentRef,w=(y==null?void 0:y.relatedTarget)||document.activeElement;return S&&S.contains(w)};return n.onDeactivated(()=>c.value&&u()),t({popperRef:r,contentRef:s,isFocusInsideContent:b,updatePopper:l,onOpen:g,onClose:h,hide:u}),(y,v)=>(n.openBlock(),n.createBlock(n.unref(xh),{ref_key:"popperRef",ref:r,role:y.role},{default:n.withCtx(()=>[n.createVNode($h,{disabled:y.disabled,trigger:y.trigger,"trigger-keys":y.triggerKeys,"virtual-ref":y.virtualRef,"virtual-triggering":y.virtualTriggering},{default:n.withCtx(()=>[y.$slots.default?n.renderSlot(y.$slots,"default",{key:0}):n.createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),n.createVNode(Uh,{ref_key:"contentRef",ref:s,"aria-label":y.ariaLabel,"boundaries-padding":y.boundariesPadding,content:y.content,disabled:y.disabled,effect:y.effect,enterable:y.enterable,"fallback-placements":y.fallbackPlacements,"hide-after":y.hideAfter,"gpu-acceleration":y.gpuAcceleration,offset:y.offset,persistent:y.persistent,"popper-class":y.popperClass,"popper-style":y.popperStyle,placement:y.placement,"popper-options":y.popperOptions,pure:y.pure,"raw-content":y.rawContent,"reference-el":y.referenceEl,"trigger-target-el":y.triggerTargetEl,"show-after":y.showAfter,strategy:y.strategy,teleported:y.teleported,transition:y.transition,"virtual-triggering":y.virtualTriggering,"z-index":y.zIndex,"append-to":y.appendTo},{default:n.withCtx(()=>[n.renderSlot(y.$slots,"content",{},()=>[y.rawContent?(n.openBlock(),n.createElementBlock("span",{key:0,innerHTML:y.content},null,8,["innerHTML"])):(n.openBlock(),n.createElementBlock("span",{key:1},n.toDisplayString(y.content),1))]),y.showArrow?(n.openBlock(),n.createBlock(n.unref(th),{key:0,"arrow-offset":y.arrowOffset},null,8,["arrow-offset"])):n.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 Gh=D(qh,[["__file","tooltip.vue"]]);const Lr=oe(Gh),Pr=Symbol("buttonGroupContextKey"),Jh=(e,t)=>{yt({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},n.computed(()=>e.type==="text"));const o=n.inject(Pr,void 0),i=Ln("button"),{form:a}=Tt(),r=It(n.computed(()=>o==null?void 0:o.size)),s=Vn(),l=n.ref(),c=n.useSlots(),d=n.computed(()=>e.type||(o==null?void 0:o.type)||""),f=n.computed(()=>{var h,m,b;return(b=(m=e.autoInsertSpace)!=null?m:(h=i.value)==null?void 0:h.autoInsertSpace)!=null?b:!1}),u=n.computed(()=>e.tag==="button"?{ariaDisabled:s.value||e.loading,disabled:s.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),p=n.computed(()=>{var h;const m=(h=c.default)==null?void 0:h.call(c);if(f.value&&(m==null?void 0:m.length)===1){const b=m[0];if((b==null?void 0:b.type)===n.Text){const y=b.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(y.trim())}}return!1});return{_disabled:s,_size:r,_type:d,_ref:l,_props:u,shouldAddSpace:p,handleClick:h=>{if(s.value||e.loading){h.stopPropagation();return}e.nativeType==="reset"&&(a==null||a.resetFields()),t("click",h)}}},Zo=R({size:Et,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:gt},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:gt,default:()=>W.Loading},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:_([String,Object]),default:"button"}}),Yh={click:e=>e instanceof MouseEvent};function J(e,t){Zh(e)&&(e="100%");var o=Qh(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),o&&(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 jn(e){return Math.min(1,Math.max(0,e))}function Zh(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Qh(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Vr(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Hn(e){return e<=1?"".concat(Number(e)*100,"%"):e}function rt(e){return e.length===1?"0"+e:String(e)}function Xh(e,t,o){return{r:J(e,255)*255,g:J(t,255)*255,b:J(o,255)*255}}function Rr(e,t,o){e=J(e,255),t=J(t,255),o=J(o,255);var i=Math.max(e,t,o),a=Math.min(e,t,o),r=0,s=0,l=(i+a)/2;if(i===a)s=0,r=0;else{var c=i-a;switch(s=l>.5?c/(2-i-a):c/(i+a),i){case e:r=(t-o)/c+(t<o?6:0);break;case t:r=(o-e)/c+2;break;case o:r=(e-t)/c+4;break}r/=6}return{h:r,s,l}}function Qo(e,t,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+(t-e)*(6*o):o<1/2?t:o<2/3?e+(t-e)*(2/3-o)*6:e}function em(e,t,o){var i,a,r;if(e=J(e,360),t=J(t,100),o=J(o,100),t===0)a=o,r=o,i=o;else{var s=o<.5?o*(1+t):o+t-o*t,l=2*o-s;i=Qo(l,s,e+1/3),a=Qo(l,s,e),r=Qo(l,s,e-1/3)}return{r:i*255,g:a*255,b:r*255}}function Dr(e,t,o){e=J(e,255),t=J(t,255),o=J(o,255);var i=Math.max(e,t,o),a=Math.min(e,t,o),r=0,s=i,l=i-a,c=i===0?0:l/i;if(i===a)r=0;else{switch(i){case e:r=(t-o)/l+(t<o?6:0);break;case t:r=(o-e)/l+2;break;case o:r=(e-t)/l+4;break}r/=6}return{h:r,s:c,v:s}}function tm(e,t,o){e=J(e,360)*6,t=J(t,100),o=J(o,100);var i=Math.floor(e),a=e-i,r=o*(1-t),s=o*(1-a*t),l=o*(1-(1-a)*t),c=i%6,d=[o,s,r,r,l,o][c],f=[l,o,o,s,r,r][c],u=[r,r,l,o,o,s][c];return{r:d*255,g:f*255,b:u*255}}function Fr(e,t,o,i){var a=[rt(Math.round(e).toString(16)),rt(Math.round(t).toString(16)),rt(Math.round(o).toString(16))];return i&&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 nm(e,t,o,i,a){var r=[rt(Math.round(e).toString(16)),rt(Math.round(t).toString(16)),rt(Math.round(o).toString(16)),rt(om(i))];return a&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))&&r[3].startsWith(r[3].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0)+r[3].charAt(0):r.join("")}function om(e){return Math.round(parseFloat(e)*255).toString(16)}function $r(e){return le(e)/255}function le(e){return parseInt(e,16)}function im(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Xo={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 am(e){var t={r:0,g:0,b:0},o=1,i=null,a=null,r=null,s=!1,l=!1;return typeof e=="string"&&(e=lm(e)),typeof e=="object"&&(Pe(e.r)&&Pe(e.g)&&Pe(e.b)?(t=Xh(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Pe(e.h)&&Pe(e.s)&&Pe(e.v)?(i=Hn(e.s),a=Hn(e.v),t=tm(e.h,i,a),s=!0,l="hsv"):Pe(e.h)&&Pe(e.s)&&Pe(e.l)&&(i=Hn(e.s),r=Hn(e.l),t=em(e.h,i,r),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(o=e.a)),o=Vr(o),{ok:s,format:e.format||l,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:o}}var rm="[-\\+]?\\d+%?",sm="[-\\+]?\\d*\\.\\d+%?",Ke="(?:".concat(sm,")|(?:").concat(rm,")"),ei="[\\s|\\(]+(".concat(Ke,")[,|\\s]+(").concat(Ke,")[,|\\s]+(").concat(Ke,")\\s*\\)?"),ti="[\\s|\\(]+(".concat(Ke,")[,|\\s]+(").concat(Ke,")[,|\\s]+(").concat(Ke,")[,|\\s]+(").concat(Ke,")\\s*\\)?"),we={CSS_UNIT:new RegExp(Ke),rgb:new RegExp("rgb"+ei),rgba:new RegExp("rgba"+ti),hsl:new RegExp("hsl"+ei),hsla:new RegExp("hsla"+ti),hsv:new RegExp("hsv"+ei),hsva:new RegExp("hsva"+ti),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 lm(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Xo[e])e=Xo[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var o=we.rgb.exec(e);return o?{r:o[1],g:o[2],b:o[3]}:(o=we.rgba.exec(e),o?{r:o[1],g:o[2],b:o[3],a:o[4]}:(o=we.hsl.exec(e),o?{h:o[1],s:o[2],l:o[3]}:(o=we.hsla.exec(e),o?{h:o[1],s:o[2],l:o[3],a:o[4]}:(o=we.hsv.exec(e),o?{h:o[1],s:o[2],v:o[3]}:(o=we.hsva.exec(e),o?{h:o[1],s:o[2],v:o[3],a:o[4]}:(o=we.hex8.exec(e),o?{r:le(o[1]),g:le(o[2]),b:le(o[3]),a:$r(o[4]),format:t?"name":"hex8"}:(o=we.hex6.exec(e),o?{r:le(o[1]),g:le(o[2]),b:le(o[3]),format:t?"name":"hex"}:(o=we.hex4.exec(e),o?{r:le(o[1]+o[1]),g:le(o[2]+o[2]),b:le(o[3]+o[3]),a:$r(o[4]+o[4]),format:t?"name":"hex8"}:(o=we.hex3.exec(e),o?{r:le(o[1]+o[1]),g:le(o[2]+o[2]),b:le(o[3]+o[3]),format:t?"name":"hex"}:!1)))))))))}function Pe(e){return!!we.CSS_UNIT.exec(String(e))}var cm=function(){function e(t,o){t===void 0&&(t=""),o===void 0&&(o={});var i;if(t instanceof e)return t;typeof t=="number"&&(t=im(t)),this.originalInput=t;var a=am(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=(i=o.format)!==null&&i!==void 0?i:a.format,this.gradientType=o.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(),o,i,a,r=t.r/255,s=t.g/255,l=t.b/255;return r<=.03928?o=r/12.92:o=Math.pow((r+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),l<=.03928?a=l/12.92:a=Math.pow((l+.055)/1.055,2.4),.2126*o+.7152*i+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Vr(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=Dr(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=Dr(this.r,this.g,this.b),o=Math.round(t.h*360),i=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(o,", ").concat(i,"%, ").concat(a,"%)"):"hsva(".concat(o,", ").concat(i,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Rr(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=Rr(this.r,this.g,this.b),o=Math.round(t.h*360),i=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(o,", ").concat(i,"%, ").concat(a,"%)"):"hsla(".concat(o,", ").concat(i,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Fr(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),nm(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),o=Math.round(this.g),i=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(o,", ").concat(i,")"):"rgba(".concat(t,", ").concat(o,", ").concat(i,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(o){return"".concat(Math.round(J(o,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(o){return Math.round(J(o,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="#"+Fr(this.r,this.g,this.b,!1),o=0,i=Object.entries(Xo);o<i.length;o++){var a=i[o],r=a[0],s=a[1];if(t===s)return r}return!1},e.prototype.toString=function(t){var o=!!t;t=t??this.format;var i=!1,a=this.a<1&&this.a>=0,r=!o&&a&&(t.startsWith("hex")||t==="name");return r?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(i=this.toRgbString()),t==="prgb"&&(i=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(i=this.toHexString()),t==="hex3"&&(i=this.toHexString(!0)),t==="hex4"&&(i=this.toHex8String(!0)),t==="hex8"&&(i=this.toHex8String()),t==="name"&&(i=this.toName()),t==="hsl"&&(i=this.toHslString()),t==="hsv"&&(i=this.toHsvString()),i||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 o=this.toHsl();return o.l+=t/100,o.l=jn(o.l),new e(o)},e.prototype.brighten=function(t){t===void 0&&(t=10);var o=this.toRgb();return o.r=Math.max(0,Math.min(255,o.r-Math.round(255*-(t/100)))),o.g=Math.max(0,Math.min(255,o.g-Math.round(255*-(t/100)))),o.b=Math.max(0,Math.min(255,o.b-Math.round(255*-(t/100)))),new e(o)},e.prototype.darken=function(t){t===void 0&&(t=10);var o=this.toHsl();return o.l-=t/100,o.l=jn(o.l),new e(o)},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 o=this.toHsl();return o.s-=t/100,o.s=jn(o.s),new e(o)},e.prototype.saturate=function(t){t===void 0&&(t=10);var o=this.toHsl();return o.s+=t/100,o.s=jn(o.s),new e(o)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var o=this.toHsl(),i=(o.h+t)%360;return o.h=i<0?360+i:i,new e(o)},e.prototype.mix=function(t,o){o===void 0&&(o=50);var i=this.toRgb(),a=new e(t).toRgb(),r=o/100,s={r:(a.r-i.r)*r+i.r,g:(a.g-i.g)*r+i.g,b:(a.b-i.b)*r+i.b,a:(a.a-i.a)*r+i.a};return new e(s)},e.prototype.analogous=function(t,o){t===void 0&&(t=6),o===void 0&&(o=30);var i=this.toHsl(),a=360/o,r=[this];for(i.h=(i.h-(a*t>>1)+720)%360;--t;)i.h=(i.h+a)%360,r.push(new e(i));return r},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 o=this.toHsv(),i=o.h,a=o.s,r=o.v,s=[],l=1/t;t--;)s.push(new e({h:i,s:a,v:r})),r=(r+l)%1;return s},e.prototype.splitcomplement=function(){var t=this.toHsl(),o=t.h;return[this,new e({h:(o+72)%360,s:t.s,l:t.l}),new e({h:(o+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var o=this.toRgb(),i=new e(t).toRgb(),a=o.a+i.a*(1-o.a);return new e({r:(o.r*o.a+i.r*i.a*(1-o.a))/a,g:(o.g*o.a+i.g*i.a*(1-o.a))/a,b:(o.b*o.a+i.b*i.a*(1-o.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 o=this.toHsl(),i=o.h,a=[this],r=360/t,s=1;s<t;s++)a.push(new e({h:(i+s*r)%360,s:o.s,l:o.l}));return a},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function Ue(e,t=20){return e.mix("#141414",t).toString()}function dm(e){const t=Vn(),o=F("button");return n.computed(()=>{let i={},a=e.color;if(a){const r=a.match(/var\((.*?)\)/);r&&(a=window.getComputedStyle(window.document.documentElement).getPropertyValue(r[1]));const s=new cm(a),l=e.dark?s.tint(20).toString():Ue(s,20);if(e.plain)i=o.cssVarBlock({"bg-color":e.dark?Ue(s,90):s.tint(90).toString(),"text-color":a,"border-color":e.dark?Ue(s,50):s.tint(50).toString(),"hover-text-color":`var(${o.cssVarName("color-white")})`,"hover-bg-color":a,"hover-border-color":a,"active-bg-color":l,"active-text-color":`var(${o.cssVarName("color-white")})`,"active-border-color":l}),t.value&&(i[o.cssVarBlockName("disabled-bg-color")]=e.dark?Ue(s,90):s.tint(90).toString(),i[o.cssVarBlockName("disabled-text-color")]=e.dark?Ue(s,50):s.tint(50).toString(),i[o.cssVarBlockName("disabled-border-color")]=e.dark?Ue(s,80):s.tint(80).toString());else{const c=e.dark?Ue(s,30):s.tint(30).toString(),d=s.isDark()?`var(${o.cssVarName("color-white")})`:`var(${o.cssVarName("color-black")})`;if(i=o.cssVarBlock({"bg-color":a,"text-color":d,"border-color":a,"hover-bg-color":c,"hover-text-color":d,"hover-border-color":c,"active-bg-color":l,"active-border-color":l}),t.value){const f=e.dark?Ue(s,50):s.tint(50).toString();i[o.cssVarBlockName("disabled-bg-color")]=f,i[o.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${o.cssVarName("color-white")})`,i[o.cssVarBlockName("disabled-border-color")]=f}}}return i})}const fm=n.defineComponent({name:"ElButton"}),um=n.defineComponent({...fm,props:Zo,emits:Yh,setup(e,{expose:t,emit:o}){const i=e,a=dm(i),r=F("button"),{_ref:s,_size:l,_type:c,_disabled:d,_props:f,shouldAddSpace:u,handleClick:p}=Jh(i,o),g=n.computed(()=>[r.b(),r.m(c.value),r.m(l.value),r.is("disabled",d.value),r.is("loading",i.loading),r.is("plain",i.plain),r.is("round",i.round),r.is("circle",i.circle),r.is("text",i.text),r.is("link",i.link),r.is("has-bg",i.bg)]);return t({ref:s,size:l,type:c,disabled:d,shouldAddSpace:u}),(h,m)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(h.tag),n.mergeProps({ref_key:"_ref",ref:s},n.unref(f),{class:n.unref(g),style:n.unref(a),onClick:n.unref(p)}),{default:n.withCtx(()=>[h.loading?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[h.$slots.loading?n.renderSlot(h.$slots,"loading",{key:0}):(n.openBlock(),n.createBlock(n.unref(be),{key:1,class:n.normalizeClass(n.unref(r).is("loading"))},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(h.loadingIcon)))]),_:1},8,["class"]))],64)):h.icon||h.$slots.icon?(n.openBlock(),n.createBlock(n.unref(be),{key:1},{default:n.withCtx(()=>[h.icon?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(h.icon),{key:0})):n.renderSlot(h.$slots,"icon",{key:1})]),_:3})):n.createCommentVNode("v-if",!0),h.$slots.default?(n.openBlock(),n.createElementBlock("span",{key:2,class:n.normalizeClass({[n.unref(r).em("text","expand")]:n.unref(u)})},[n.renderSlot(h.$slots,"default")],2)):n.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var pm=D(um,[["__file","button.vue"]]);const hm={size:Zo.size,type:Zo.type},mm=n.defineComponent({name:"ElButtonGroup"}),gm=n.defineComponent({...mm,props:hm,setup(e){const t=e;n.provide(Pr,n.reactive({size:n.toRef(t,"size"),type:n.toRef(t,"type")}));const o=F("button");return(i,a)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(n.unref(o).b("group"))},[n.renderSlot(i.$slots,"default")],2))}});var zr=D(gm,[["__file","button-group.vue"]]);const ni=oe(pm,{ButtonGroup:zr});tt(zr);var ym=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const We=new Map;if(K){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const o of We.values())for(const{documentHandler:i}of o)i(t,e);e=void 0}})}function jr(e,t){let o=[];return Array.isArray(t.arg)?o=t.arg:Xe(t.arg)&&o.push(t.arg),function(i,a){const r=t.instance.popperRef,s=i.target,l=a==null?void 0:a.target,c=!t||!t.instance,d=!s||!l,f=e.contains(s)||e.contains(l),u=e===s,p=o.length&&o.some(h=>h==null?void 0:h.contains(s))||o.length&&o.includes(l),g=r&&(r.contains(s)||r.contains(l));c||d||f||u||p||g||t.value(i,a)}}const wm={beforeMount(e,t){We.has(e)||We.set(e,[]),We.get(e).push({documentHandler:jr(e,t),bindingFn:t.value})},updated(e,t){We.has(e)||We.set(e,[]);const o=We.get(e),i=o.findIndex(r=>r.bindingFn===t.oldValue),a={documentHandler:jr(e,t),bindingFn:t.value};i>=0?o.splice(i,1,a):o.push(a)},unmounted(e){We.delete(e)}},Hr={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:Et,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...at(["ariaControls"])},Kr={[X]:e=>me(e)||G(e)||_e(e),change:e=>me(e)||G(e)||_e(e)},Mt=Symbol("checkboxGroupContextKey"),Cm=({model:e,isChecked:t})=>{const o=n.inject(Mt,void 0),i=n.computed(()=>{var r,s;const l=(r=o==null?void 0:o.max)==null?void 0:r.value,c=(s=o==null?void 0:o.min)==null?void 0:s.value;return!ze(l)&&e.value.length>=l&&!t.value||!ze(c)&&e.value.length<=c&&t.value});return{isDisabled:Vn(n.computed(()=>(o==null?void 0:o.disabled.value)||i.value)),isLimitDisabled:i}},vm=(e,{model:t,isLimitExceeded:o,hasOwnLabel:i,isDisabled:a,isLabeledByFormItem:r})=>{const s=n.inject(Mt,void 0),{formItem:l}=Tt(),{emit:c}=n.getCurrentInstance();function d(h){var m,b,y,v;return[!0,e.trueValue,e.trueLabel].includes(h)?(b=(m=e.trueValue)!=null?m:e.trueLabel)!=null?b:!0:(v=(y=e.falseValue)!=null?y:e.falseLabel)!=null?v:!1}function f(h,m){c("change",d(h),m)}function u(h){if(o.value)return;const m=h.target;c("change",d(m.checked),h)}async function p(h){o.value||!i.value&&!a.value&&r.value&&(h.composedPath().some(y=>y.tagName==="LABEL")||(t.value=d([!1,e.falseValue,e.falseLabel].includes(t.value)),await n.nextTick(),f(t.value,h)))}const g=n.computed(()=>(s==null?void 0:s.validateEvent)||e.validateEvent);return n.watch(()=>e.modelValue,()=>{g.value&&(l==null||l.validate("change").catch(h=>ne(h)))}),{handleChange:u,onClickRoot:p}},Sm=e=>{const t=n.ref(!1),{emit:o}=n.getCurrentInstance(),i=n.inject(Mt,void 0),a=n.computed(()=>ze(i)===!1),r=n.ref(!1),s=n.computed({get(){var l,c;return a.value?(l=i==null?void 0:i.modelValue)==null?void 0:l.value:(c=e.modelValue)!=null?c:t.value},set(l){var c,d;a.value&&ee(l)?(r.value=((c=i==null?void 0:i.max)==null?void 0:c.value)!==void 0&&l.length>(i==null?void 0:i.max.value)&&l.length>s.value.length,r.value===!1&&((d=i==null?void 0:i.changeEvent)==null||d.call(i,l))):(o(X,l),t.value=l)}});return{model:s,isGroup:a,isLimitExceeded:r}},km=(e,t,{model:o})=>{const i=n.inject(Mt,void 0),a=n.ref(!1),r=n.computed(()=>jt(e.value)?e.label:e.value),s=n.computed(()=>{const f=o.value;return _e(f)?f:ee(f)?te(r.value)?f.map(n.toRaw).some(u=>kn(u,r.value)):f.map(n.toRaw).includes(r.value):f!=null?f===e.trueValue||f===e.trueLabel:!!f}),l=It(n.computed(()=>{var f;return(f=i==null?void 0:i.size)==null?void 0:f.value}),{prop:!0}),c=It(n.computed(()=>{var f;return(f=i==null?void 0:i.size)==null?void 0:f.value})),d=n.computed(()=>!!t.default||!jt(r.value));return{checkboxButtonSize:l,isChecked:s,isFocused:a,checkboxSize:c,hasOwnLabel:d,actualValue:r}},Ur=(e,t)=>{const{formItem:o}=Tt(),{model:i,isGroup:a,isLimitExceeded:r}=Sm(e),{isFocused:s,isChecked:l,checkboxButtonSize:c,checkboxSize:d,hasOwnLabel:f,actualValue:u}=km(e,t,{model:i}),{isDisabled:p}=Cm({model:i,isChecked:l}),{inputId:g,isLabeledByFormItem:h}=Rn(e,{formItemContext:o,disableIdGeneration:f,disableIdManagement:a}),{handleChange:m,onClickRoot:b}=vm(e,{model:i,isLimitExceeded:r,hasOwnLabel:f,isDisabled:p,isLabeledByFormItem:h});return(()=>{function v(){var T,S;ee(i.value)&&!i.value.includes(u.value)?i.value.push(u.value):i.value=(S=(T=e.trueValue)!=null?T:e.trueLabel)!=null?S:!0}e.checked&&v()})(),yt({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},n.computed(()=>a.value&&jt(e.value))),yt({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},n.computed(()=>!!e.trueLabel)),yt({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},n.computed(()=>!!e.falseLabel)),{inputId:g,isLabeledByFormItem:h,isChecked:l,isDisabled:p,isFocused:s,checkboxButtonSize:c,checkboxSize:d,hasOwnLabel:f,model:i,actualValue:u,handleChange:m,onClickRoot:b}},Em=n.defineComponent({name:"ElCheckbox"}),Im=n.defineComponent({...Em,props:Hr,emits:Kr,setup(e){const t=e,o=n.useSlots(),{inputId:i,isLabeledByFormItem:a,isChecked:r,isDisabled:s,isFocused:l,checkboxSize:c,hasOwnLabel:d,model:f,actualValue:u,handleChange:p,onClickRoot:g}=Ur(t,o),h=F("checkbox"),m=n.computed(()=>[h.b(),h.m(c.value),h.is("disabled",s.value),h.is("bordered",t.border),h.is("checked",r.value)]),b=n.computed(()=>[h.e("input"),h.is("disabled",s.value),h.is("checked",r.value),h.is("indeterminate",t.indeterminate),h.is("focus",l.value)]);return(y,v)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(!n.unref(d)&&n.unref(a)?"span":"label"),{class:n.normalizeClass(n.unref(m)),"aria-controls":y.indeterminate?y.ariaControls:null,onClick:n.unref(g)},{default:n.withCtx(()=>{var T,S,w,k;return[n.createElementVNode("span",{class:n.normalizeClass(n.unref(b))},[y.trueValue||y.falseValue||y.trueLabel||y.falseLabel?n.withDirectives((n.openBlock(),n.createElementBlock("input",{key:0,id:n.unref(i),"onUpdate:modelValue":E=>n.isRef(f)?f.value=E:null,class:n.normalizeClass(n.unref(h).e("original")),type:"checkbox",indeterminate:y.indeterminate,name:y.name,tabindex:y.tabindex,disabled:n.unref(s),"true-value":(S=(T=y.trueValue)!=null?T:y.trueLabel)!=null?S:!0,"false-value":(k=(w=y.falseValue)!=null?w:y.falseLabel)!=null?k:!1,onChange:n.unref(p),onFocus:E=>l.value=!0,onBlur:E=>l.value=!1,onClick:n.withModifiers(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[n.vModelCheckbox,n.unref(f)]]):n.withDirectives((n.openBlock(),n.createElementBlock("input",{key:1,id:n.unref(i),"onUpdate:modelValue":E=>n.isRef(f)?f.value=E:null,class:n.normalizeClass(n.unref(h).e("original")),type:"checkbox",indeterminate:y.indeterminate,disabled:n.unref(s),value:n.unref(u),name:y.name,tabindex:y.tabindex,onChange:n.unref(p),onFocus:E=>l.value=!0,onBlur:E=>l.value=!1,onClick:n.withModifiers(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","disabled","value","name","tabindex","onChange","onFocus","onBlur","onClick"])),[[n.vModelCheckbox,n.unref(f)]]),n.createElementVNode("span",{class:n.normalizeClass(n.unref(h).e("inner"))},null,2)],2),n.unref(d)?(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass(n.unref(h).e("label"))},[n.renderSlot(y.$slots,"default"),y.$slots.default?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(y.label),1)],64))],2)):n.createCommentVNode("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}});var Tm=D(Im,[["__file","checkbox.vue"]]);const Am=n.defineComponent({name:"ElCheckboxButton"}),Om=n.defineComponent({...Am,props:Hr,emits:Kr,setup(e){const t=e,o=n.useSlots(),{isFocused:i,isChecked:a,isDisabled:r,checkboxButtonSize:s,model:l,actualValue:c,handleChange:d}=Ur(t,o),f=n.inject(Mt,void 0),u=F("checkbox"),p=n.computed(()=>{var h,m,b,y;const v=(m=(h=f==null?void 0:f.fill)==null?void 0:h.value)!=null?m:"";return{backgroundColor:v,borderColor:v,color:(y=(b=f==null?void 0:f.textColor)==null?void 0:b.value)!=null?y:"",boxShadow:v?`-1px 0 0 0 ${v}`:void 0}}),g=n.computed(()=>[u.b("button"),u.bm("button",s.value),u.is("disabled",r.value),u.is("checked",a.value),u.is("focus",i.value)]);return(h,m)=>{var b,y,v,T;return n.openBlock(),n.createElementBlock("label",{class:n.normalizeClass(n.unref(g))},[h.trueValue||h.falseValue||h.trueLabel||h.falseLabel?n.withDirectives((n.openBlock(),n.createElementBlock("input",{key:0,"onUpdate:modelValue":S=>n.isRef(l)?l.value=S:null,class:n.normalizeClass(n.unref(u).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:n.unref(r),"true-value":(y=(b=h.trueValue)!=null?b:h.trueLabel)!=null?y:!0,"false-value":(T=(v=h.falseValue)!=null?v:h.falseLabel)!=null?T:!1,onChange:n.unref(d),onFocus:S=>i.value=!0,onBlur:S=>i.value=!1,onClick:n.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[n.vModelCheckbox,n.unref(l)]]):n.withDirectives((n.openBlock(),n.createElementBlock("input",{key:1,"onUpdate:modelValue":S=>n.isRef(l)?l.value=S:null,class:n.normalizeClass(n.unref(u).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:n.unref(r),value:n.unref(c),onChange:n.unref(d),onFocus:S=>i.value=!0,onBlur:S=>i.value=!1,onClick:n.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","value","onChange","onFocus","onBlur","onClick"])),[[n.vModelCheckbox,n.unref(l)]]),h.$slots.default||h.label?(n.openBlock(),n.createElementBlock("span",{key:2,class:n.normalizeClass(n.unref(u).be("button","inner")),style:n.normalizeStyle(n.unref(a)?n.unref(p):void 0)},[n.renderSlot(h.$slots,"default",{},()=>[n.createTextVNode(n.toDisplayString(h.label),1)])],6)):n.createCommentVNode("v-if",!0)],2)}}});var Wr=D(Om,[["__file","checkbox-button.vue"]]);const Mm=R({modelValue:{type:_(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Et,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},...at(["ariaLabel"])}),Bm={[X]:e=>ee(e),change:e=>ee(e)},xm=n.defineComponent({name:"ElCheckboxGroup"}),Nm=n.defineComponent({...xm,props:Mm,emits:Bm,setup(e,{emit:t}){const o=e,i=F("checkbox"),{formItem:a}=Tt(),{inputId:r,isLabeledByFormItem:s}=Rn(o,{formItemContext:a}),l=async d=>{t(X,d),await n.nextTick(),t("change",d)},c=n.computed({get(){return o.modelValue},set(d){l(d)}});return n.provide(Mt,{...ka(n.toRefs(o),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:c,changeEvent:l}),n.watch(()=>o.modelValue,()=>{o.validateEvent&&(a==null||a.validate("change").catch(d=>ne(d)))}),(d,f)=>{var u;return n.openBlock(),n.createBlock(n.resolveDynamicComponent(d.tag),{id:n.unref(r),class:n.normalizeClass(n.unref(i).b("group")),role:"group","aria-label":n.unref(s)?void 0:d.ariaLabel||"checkbox-group","aria-labelledby":n.unref(s)?(u=n.unref(a))==null?void 0:u.labelId:void 0},{default:n.withCtx(()=>[n.renderSlot(d.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var qr=D(Nm,[["__file","checkbox-group.vue"]]);const Gr=oe(Tm,{CheckboxButton:Wr,CheckboxGroup:qr});tt(Wr);const Jr=tt(qr),Yr=R({modelValue:{type:[String,Number,Boolean],default:void 0},size:Et,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),_m=R({...Yr,border:Boolean}),Zr={[X]:e=>me(e)||G(e)||_e(e),[Ao]:e=>me(e)||G(e)||_e(e)},Qr=Symbol("radioGroupKey"),Xr=(e,t)=>{const o=n.ref(),i=n.inject(Qr,void 0),a=n.computed(()=>!!i),r=n.computed(()=>jt(e.value)?e.label:e.value),s=n.computed({get(){return a.value?i.modelValue:e.modelValue},set(u){a.value?i.changeEvent(u):t&&t(X,u),o.value.checked=e.modelValue===r.value}}),l=It(n.computed(()=>i==null?void 0:i.size)),c=Vn(n.computed(()=>i==null?void 0:i.disabled)),d=n.ref(!1),f=n.computed(()=>c.value||a.value&&s.value!==r.value?-1:0);return yt({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},n.computed(()=>a.value&&jt(e.value))),{radioRef:o,isGroup:a,radioGroup:i,focus:d,size:l,disabled:c,tabIndex:f,modelValue:s,actualValue:r}},Lm=n.defineComponent({name:"ElRadio"}),Pm=n.defineComponent({...Lm,props:_m,emits:Zr,setup(e,{emit:t}){const o=e,i=F("radio"),{radioRef:a,radioGroup:r,focus:s,size:l,disabled:c,modelValue:d,actualValue:f}=Xr(o,t);function u(){n.nextTick(()=>t("change",d.value))}return(p,g)=>{var h;return n.openBlock(),n.createElementBlock("label",{class:n.normalizeClass([n.unref(i).b(),n.unref(i).is("disabled",n.unref(c)),n.unref(i).is("focus",n.unref(s)),n.unref(i).is("bordered",p.border),n.unref(i).is("checked",n.unref(d)===n.unref(f)),n.unref(i).m(n.unref(l))])},[n.createElementVNode("span",{class:n.normalizeClass([n.unref(i).e("input"),n.unref(i).is("disabled",n.unref(c)),n.unref(i).is("checked",n.unref(d)===n.unref(f))])},[n.withDirectives(n.createElementVNode("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":m=>n.isRef(d)?d.value=m:null,class:n.normalizeClass(n.unref(i).e("original")),value:n.unref(f),name:p.name||((h=n.unref(r))==null?void 0:h.name),disabled:n.unref(c),checked:n.unref(d)===n.unref(f),type:"radio",onFocus:m=>s.value=!0,onBlur:m=>s.value=!1,onChange:u,onClick:n.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","checked","onFocus","onBlur","onClick"]),[[n.vModelRadio,n.unref(d)]]),n.createElementVNode("span",{class:n.normalizeClass(n.unref(i).e("inner"))},null,2)],2),n.createElementVNode("span",{class:n.normalizeClass(n.unref(i).e("label")),onKeydown:n.withModifiers(()=>{},["stop"])},[n.renderSlot(p.$slots,"default",{},()=>[n.createTextVNode(n.toDisplayString(p.label),1)])],42,["onKeydown"])],2)}}});var Vm=D(Pm,[["__file","radio.vue"]]);const Rm=R({...Yr}),Dm=n.defineComponent({name:"ElRadioButton"}),Fm=n.defineComponent({...Dm,props:Rm,setup(e){const t=e,o=F("radio"),{radioRef:i,focus:a,size:r,disabled:s,modelValue:l,radioGroup:c,actualValue:d}=Xr(t),f=n.computed(()=>({backgroundColor:(c==null?void 0:c.fill)||"",borderColor:(c==null?void 0:c.fill)||"",boxShadow:c!=null&&c.fill?`-1px 0 0 0 ${c.fill}`:"",color:(c==null?void 0:c.textColor)||""}));return(u,p)=>{var g;return n.openBlock(),n.createElementBlock("label",{class:n.normalizeClass([n.unref(o).b("button"),n.unref(o).is("active",n.unref(l)===n.unref(d)),n.unref(o).is("disabled",n.unref(s)),n.unref(o).is("focus",n.unref(a)),n.unref(o).bm("button",n.unref(r))])},[n.withDirectives(n.createElementVNode("input",{ref_key:"radioRef",ref:i,"onUpdate:modelValue":h=>n.isRef(l)?l.value=h:null,class:n.normalizeClass(n.unref(o).be("button","original-radio")),value:n.unref(d),type:"radio",name:u.name||((g=n.unref(c))==null?void 0:g.name),disabled:n.unref(s),onFocus:h=>a.value=!0,onBlur:h=>a.value=!1,onClick:n.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","onFocus","onBlur","onClick"]),[[n.vModelRadio,n.unref(l)]]),n.createElementVNode("span",{class:n.normalizeClass(n.unref(o).be("button","inner")),style:n.normalizeStyle(n.unref(l)===n.unref(d)?n.unref(f):{}),onKeydown:n.withModifiers(()=>{},["stop"])},[n.renderSlot(u.$slots,"default",{},()=>[n.createTextVNode(n.toDisplayString(u.label),1)])],46,["onKeydown"])],2)}}});var es=D(Fm,[["__file","radio-button.vue"]]);const $m=R({id:{type:String,default:void 0},size:Et,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},...at(["ariaLabel"])}),zm=Zr,jm=n.defineComponent({name:"ElRadioGroup"}),Hm=n.defineComponent({...jm,props:$m,emits:zm,setup(e,{emit:t}){const o=e,i=F("radio"),a=it(),r=n.ref(),{formItem:s}=Tt(),{inputId:l,isLabeledByFormItem:c}=Rn(o,{formItemContext:s}),d=u=>{t(X,u),n.nextTick(()=>t("change",u))};n.onMounted(()=>{const u=r.value.querySelectorAll("[type=radio]"),p=u[0];!Array.from(u).some(g=>g.checked)&&p&&(p.tabIndex=0)});const f=n.computed(()=>o.name||a.value);return n.provide(Qr,n.reactive({...n.toRefs(o),changeEvent:d,name:f})),n.watch(()=>o.modelValue,()=>{o.validateEvent&&(s==null||s.validate("change").catch(u=>ne(u)))}),(u,p)=>(n.openBlock(),n.createElementBlock("div",{id:n.unref(l),ref_key:"radioGroupRef",ref:r,class:n.normalizeClass(n.unref(i).b("group")),role:"radiogroup","aria-label":n.unref(c)?void 0:u.ariaLabel||"radio-group","aria-labelledby":n.unref(c)?n.unref(s).labelId:void 0},[n.renderSlot(u.$slots,"default")],10,["id","aria-label","aria-labelledby"]))}});var ts=D(Hm,[["__file","radio-group.vue"]]);const ns=oe(Vm,{RadioButton:es,RadioGroup:ts}),os=tt(ts);tt(es);const oi=R({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:Ba},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),Km={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},Um=n.defineComponent({name:"ElTag"}),Wm=n.defineComponent({...Um,props:oi,emits:Km,setup(e,{emit:t}){const o=e,i=It(),a=F("tag"),r=n.computed(()=>{const{type:d,hit:f,effect:u,closable:p,round:g}=o;return[a.b(),a.is("closable",p),a.m(d||"primary"),a.m(i.value),a.m(u),a.is("hit",f),a.is("round",g)]}),s=d=>{t("close",d)},l=d=>{t("click",d)},c=d=>{d.component.subTree.component.bum=null};return(d,f)=>d.disableTransitions?(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass(n.unref(r)),style:n.normalizeStyle({backgroundColor:d.color}),onClick:l},[n.createElementVNode("span",{class:n.normalizeClass(n.unref(a).e("content"))},[n.renderSlot(d.$slots,"default")],2),d.closable?(n.openBlock(),n.createBlock(n.unref(be),{key:0,class:n.normalizeClass(n.unref(a).e("close")),onClick:n.withModifiers(s,["stop"])},{default:n.withCtx(()=>[n.createVNode(n.unref(W.Close))]),_:1},8,["class","onClick"])):n.createCommentVNode("v-if",!0)],6)):(n.openBlock(),n.createBlock(n.Transition,{key:1,name:`${n.unref(a).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:c},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(n.unref(r)),style:n.normalizeStyle({backgroundColor:d.color}),onClick:l},[n.createElementVNode("span",{class:n.normalizeClass(n.unref(a).e("content"))},[n.renderSlot(d.$slots,"default")],2),d.closable?(n.openBlock(),n.createBlock(n.unref(be),{key:0,class:n.normalizeClass(n.unref(a).e("close")),onClick:n.withModifiers(s,["stop"])},{default:n.withCtx(()=>[n.createVNode(n.unref(W.Close))]),_:1},8,["class","onClick"])):n.createCommentVNode("v-if",!0)],6)]),_:3},8,["name"]))}});var qm=D(Wm,[["__file","tag.vue"]]);const Gm=oe(qm),is=Symbol("rowContextKey"),Jm=R({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:["start","center","end","space-around","space-between","space-evenly"],default:"start"},align:{type:String,values:["top","middle","bottom"]}}),Ym=n.defineComponent({name:"ElRow"}),Zm=n.defineComponent({...Ym,props:Jm,setup(e){const t=e,o=F("row"),i=n.computed(()=>t.gutter);n.provide(is,{gutter:i});const a=n.computed(()=>{const s={};return t.gutter&&(s.marginRight=s.marginLeft=`-${t.gutter/2}px`),s}),r=n.computed(()=>[o.b(),o.is(`justify-${t.justify}`,t.justify!=="start"),o.is(`align-${t.align}`,!!t.align)]);return(s,l)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(s.tag),{class:n.normalizeClass(n.unref(r)),style:n.normalizeStyle(n.unref(a))},{default:n.withCtx(()=>[n.renderSlot(s.$slots,"default")]),_:3},8,["class","style"]))}});var Qm=D(Zm,[["__file","row.vue"]]);const tn=oe(Qm),Xm=R({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:_([Number,Object]),default:()=>Ut({})},sm:{type:_([Number,Object]),default:()=>Ut({})},md:{type:_([Number,Object]),default:()=>Ut({})},lg:{type:_([Number,Object]),default:()=>Ut({})},xl:{type:_([Number,Object]),default:()=>Ut({})}}),eg=n.defineComponent({name:"ElCol"}),tg=n.defineComponent({...eg,props:Xm,setup(e){const t=e,{gutter:o}=n.inject(is,{gutter:n.computed(()=>0)}),i=F("col"),a=n.computed(()=>{const s={};return o.value&&(s.paddingLeft=s.paddingRight=`${o.value/2}px`),s}),r=n.computed(()=>{const s=[];return["span","offset","pull","push"].forEach(d=>{const f=t[d];G(f)&&(d==="span"?s.push(i.b(`${t[d]}`)):f>0&&s.push(i.b(`${d}-${t[d]}`)))}),["xs","sm","md","lg","xl"].forEach(d=>{G(t[d])?s.push(i.b(`${d}-${t[d]}`)):te(t[d])&&Object.entries(t[d]).forEach(([f,u])=>{s.push(f!=="span"?i.b(`${d}-${f}-${u}`):i.b(`${d}-${u}`))})}),o.value&&s.push(i.is("guttered")),[i.b(),s]});return(s,l)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(s.tag),{class:n.normalizeClass(n.unref(r)),style:n.normalizeStyle(n.unref(a))},{default:n.withCtx(()=>[n.renderSlot(s.$slots,"default")]),_:3},8,["class","style"]))}});var ng=D(tg,[["__file","col.vue"]]);const nn=oe(ng),og=R({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:_([String,Array,Object])},zIndex:{type:_([String,Number])}}),ig={click:e=>e instanceof MouseEvent},ag="overlay";var rg=n.defineComponent({name:"ElOverlay",props:og,emits:ig,setup(e,{slots:t,emit:o}){const i=F(ag),a=c=>{o("click",c)},{onClick:r,onMousedown:s,onMouseup:l}=er(e.customMaskEvent?void 0:a);return()=>e.mask?n.createVNode("div",{class:[i.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:r,onMousedown:s,onMouseup:l},[n.renderSlot(t,"default")],An.STYLE|An.CLASS|An.PROPS,["onClick","onMouseup","onMousedown"]):n.h("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[n.renderSlot(t,"default")])}});const sg=rg,as=Symbol("dialogInjectionKey"),rs=R({center:Boolean,alignCenter:Boolean,closeIcon:{type:gt},draggable:Boolean,overflow:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),lg={close:()=>!0},cg=n.defineComponent({name:"ElDialogContent"}),dg=n.defineComponent({...cg,props:rs,emits:lg,setup(e,{expose:t}){const o=e,{t:i}=Oo(),{Close:a}=Jf,{dialogRef:r,headerRef:s,bodyId:l,ns:c,style:d}=n.inject(as),{focusTrapRef:f}=n.inject(Ir),u=n.computed(()=>[c.b(),c.is("fullscreen",o.fullscreen),c.is("draggable",o.draggable),c.is("align-center",o.alignCenter),{[c.m("center")]:o.center}]),p=Qf(f,r),g=n.computed(()=>o.draggable),h=n.computed(()=>o.overflow),{resetPosition:m}=eu(r,s,g,h);return t({resetPosition:m}),(b,y)=>(n.openBlock(),n.createElementBlock("div",{ref:n.unref(p),class:n.normalizeClass(n.unref(u)),style:n.normalizeStyle(n.unref(d)),tabindex:"-1"},[n.createElementVNode("header",{ref_key:"headerRef",ref:s,class:n.normalizeClass([n.unref(c).e("header"),{"show-close":b.showClose}])},[n.renderSlot(b.$slots,"header",{},()=>[n.createElementVNode("span",{role:"heading","aria-level":b.ariaLevel,class:n.normalizeClass(n.unref(c).e("title"))},n.toDisplayString(b.title),11,["aria-level"])]),b.showClose?(n.openBlock(),n.createElementBlock("button",{key:0,"aria-label":n.unref(i)("el.dialog.close"),class:n.normalizeClass(n.unref(c).e("headerbtn")),type:"button",onClick:v=>b.$emit("close")},[n.createVNode(n.unref(be),{class:n.normalizeClass(n.unref(c).e("close"))},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(b.closeIcon||n.unref(a))))]),_:1},8,["class"])],10,["aria-label","onClick"])):n.createCommentVNode("v-if",!0)],2),n.createElementVNode("div",{id:n.unref(l),class:n.normalizeClass(n.unref(c).e("body"))},[n.renderSlot(b.$slots,"default")],10,["id"]),b.$slots.footer?(n.openBlock(),n.createElementBlock("footer",{key:0,class:n.normalizeClass(n.unref(c).e("footer"))},[n.renderSlot(b.$slots,"footer")],2)):n.createCommentVNode("v-if",!0)],6))}});var fg=D(dg,[["__file","dialog-content.vue"]]);const ug=R({...rs,appendToBody:Boolean,appendTo:{type:_([String,Object]),default:"body"},beforeClose:{type:_(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:Boolean,headerAriaLevel:{type:String,default:"2"}}),pg={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[X]:e=>_e(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},hg=(e,t)=>{var o;const a=n.getCurrentInstance().emit,{nextZIndex:r}=$o();let s="";const l=it(),c=it(),d=n.ref(!1),f=n.ref(!1),u=n.ref(!1),p=n.ref((o=e.zIndex)!=null?o:r());let g,h;const m=Ln("namespace",Wt),b=n.computed(()=>{const V={},M=`--${m.value}-dialog`;return e.fullscreen||(e.top&&(V[`${M}-margin-top`]=e.top),e.width&&(V[`${M}-width`]=et(e.width))),V}),y=n.computed(()=>e.alignCenter?{display:"flex"}:{});function v(){a("opened")}function T(){a("closed"),a(X,!1),e.destroyOnClose&&(u.value=!1)}function S(){a("close")}function w(){h==null||h(),g==null||g(),e.openDelay&&e.openDelay>0?{stop:g}=Ei(()=>B(),e.openDelay):B()}function k(){g==null||g(),h==null||h(),e.closeDelay&&e.closeDelay>0?{stop:h}=Ei(()=>N(),e.closeDelay):N()}function E(){function V(M){M||(f.value=!0,d.value=!1)}e.beforeClose?e.beforeClose(V):k()}function O(){e.closeOnClickModal&&E()}function B(){K&&(d.value=!0)}function N(){d.value=!1}function x(){a("openAutoFocus")}function I(){a("closeAutoFocus")}function L(V){var M;((M=V.detail)==null?void 0:M.focusReason)==="pointer"&&V.preventDefault()}e.lockScroll&&ru(d);function q(){e.closeOnPressEscape&&E()}return n.watch(()=>e.modelValue,V=>{V?(f.value=!1,w(),u.value=!0,p.value=Sa(e.zIndex)?r():p.value++,n.nextTick(()=>{a("open"),t.value&&(t.value.scrollTop=0)})):d.value&&k()}),n.watch(()=>e.fullscreen,V=>{t.value&&(V?(s=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=s)}),n.onMounted(()=>{e.modelValue&&(d.value=!0,u.value=!0,w())}),{afterEnter:v,afterLeave:T,beforeLeave:S,handleClose:E,onModalClick:O,close:k,doClose:N,onOpenAutoFocus:x,onCloseAutoFocus:I,onCloseRequested:q,onFocusoutPrevented:L,titleId:l,bodyId:c,closed:f,style:b,overlayDialogStyle:y,rendered:u,visible:d,zIndex:p}},mg=n.defineComponent({name:"ElDialog",inheritAttrs:!1}),gg=n.defineComponent({...mg,props:ug,emits:pg,setup(e,{expose:t}){const o=e,i=n.useSlots();yt({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},n.computed(()=>!!i.title));const a=F("dialog"),r=n.ref(),s=n.ref(),l=n.ref(),{visible:c,titleId:d,bodyId:f,style:u,overlayDialogStyle:p,rendered:g,zIndex:h,afterEnter:m,afterLeave:b,beforeLeave:y,handleClose:v,onModalClick:T,onOpenAutoFocus:S,onCloseAutoFocus:w,onCloseRequested:k,onFocusoutPrevented:E}=hg(o,r);n.provide(as,{dialogRef:r,headerRef:s,bodyId:f,ns:a,rendered:g,style:u});const O=er(T),B=n.computed(()=>o.draggable&&!o.fullscreen);return t({visible:c,dialogContentRef:l,resetPosition:()=>{var x;(x=l.value)==null||x.resetPosition()}}),(x,I)=>(n.openBlock(),n.createBlock(n.unref(_r),{to:x.appendTo,disabled:x.appendTo!=="body"?!1:!x.appendToBody},{default:n.withCtx(()=>[n.createVNode(n.Transition,{name:"dialog-fade",onAfterEnter:n.unref(m),onAfterLeave:n.unref(b),onBeforeLeave:n.unref(y),persisted:""},{default:n.withCtx(()=>[n.withDirectives(n.createVNode(n.unref(sg),{"custom-mask-event":"",mask:x.modal,"overlay-class":x.modalClass,"z-index":n.unref(h)},{default:n.withCtx(()=>[n.createElementVNode("div",{role:"dialog","aria-modal":"true","aria-label":x.title||void 0,"aria-labelledby":x.title?void 0:n.unref(d),"aria-describedby":n.unref(f),class:n.normalizeClass(`${n.unref(a).namespace.value}-overlay-dialog`),style:n.normalizeStyle(n.unref(p)),onClick:n.unref(O).onClick,onMousedown:n.unref(O).onMousedown,onMouseup:n.unref(O).onMouseup},[n.createVNode(n.unref(xr),{loop:"",trapped:n.unref(c),"focus-start-el":"container",onFocusAfterTrapped:n.unref(S),onFocusAfterReleased:n.unref(w),onFocusoutPrevented:n.unref(E),onReleaseRequested:n.unref(k)},{default:n.withCtx(()=>[n.unref(g)?(n.openBlock(),n.createBlock(fg,n.mergeProps({key:0,ref_key:"dialogContentRef",ref:l},x.$attrs,{center:x.center,"align-center":x.alignCenter,"close-icon":x.closeIcon,draggable:n.unref(B),overflow:x.overflow,fullscreen:x.fullscreen,"show-close":x.showClose,title:x.title,"aria-level":x.headerAriaLevel,onClose:n.unref(v)}),n.createSlots({header:n.withCtx(()=>[x.$slots.title?n.renderSlot(x.$slots,"title",{key:1}):n.renderSlot(x.$slots,"header",{key:0,close:n.unref(v),titleId:n.unref(d),titleClass:n.unref(a).e("title")})]),default:n.withCtx(()=>[n.renderSlot(x.$slots,"default")]),_:2},[x.$slots.footer?{name:"footer",fn:n.withCtx(()=>[n.renderSlot(x.$slots,"footer")])}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","show-close","title","aria-level","onClose"])):n.createCommentVNode("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,["aria-label","aria-labelledby","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["mask","overlay-class","z-index"]),[[n.vShow,n.unref(c)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});var yg=D(gg,[["__file","dialog.vue"]]);const bg=oe(yg),wg=n.defineComponent({inheritAttrs:!1});function Cg(e,t,o,i,a,r){return n.renderSlot(e.$slots,"default")}var vg=D(wg,[["render",Cg],["__file","collection.vue"]]);const Sg=n.defineComponent({name:"ElCollectionItem",inheritAttrs:!1});function kg(e,t,o,i,a,r){return n.renderSlot(e.$slots,"default")}var Eg=D(Sg,[["render",kg],["__file","collection-item.vue"]]);const Ig="data-el-collection-item",Tg=e=>{const t=`El${e}Collection`,o=`${t}Item`,i=Symbol(t),a=Symbol(o),r={...vg,name:t,setup(){const l=n.ref(null),c=new Map,d=()=>{const f=n.unref(l);if(!f)return[];const u=Array.from(f.querySelectorAll(`[${Ig}]`));return[...c.values()].sort((g,h)=>u.indexOf(g.ref)-u.indexOf(h.ref))};n.provide(i,{itemMap:c,getItems:d,collectionRef:l})}},s={...Eg,name:o,setup(l,{attrs:c}){const d=n.ref(null),f=n.inject(i,void 0);n.provide(a,{collectionItemRef:d}),n.onMounted(()=>{const u=n.unref(d);u&&f.itemMap.set(u,{ref:u,...c})}),n.onBeforeUnmount(()=>{const u=n.unref(d);f.itemMap.delete(u)})}};return{COLLECTION_INJECTION_KEY:i,COLLECTION_ITEM_INJECTION_KEY:a,ElCollection:r,ElCollectionItem:s}},ii=R({trigger:en.trigger,effect:{...se.effect,default:"light"},type:{type:_(String)},placement:{type:_(String),default:"bottom"},popperOptions:{type:_(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:_([Number,String]),default:0},maxHeight:{type:_([Number,String]),default:""},popperClass:{type:String,default:""},disabled:Boolean,role:{type:String,default:"menu"},buttonProps:{type:_(Object)},teleported:se.teleported});R({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:gt}}),R({onKeydown:{type:_(Function)}}),Tg("Dropdown");const ss=Symbol("ElSelectGroup"),Kn=Symbol("ElSelect");function Ag(e,t){const o=n.inject(Kn),i=n.inject(ss,{disabled:!1}),a=n.computed(()=>f(Fe(o.props.modelValue),e.value)),r=n.computed(()=>{var g;if(o.props.multiple){const h=Fe((g=o.props.modelValue)!=null?g:[]);return!a.value&&h.length>=o.props.multipleLimit&&o.props.multipleLimit>0}else return!1}),s=n.computed(()=>e.label||(te(e.value)?"":e.value)),l=n.computed(()=>e.value||e.label||""),c=n.computed(()=>e.disabled||t.groupDisabled||r.value),d=n.getCurrentInstance(),f=(g=[],h)=>{if(te(e.value)){const m=o.props.valueKey;return g&&g.some(b=>n.toRaw(xe(b,m))===xe(h,m))}else return g&&g.includes(h)},u=()=>{!e.disabled&&!i.disabled&&(o.states.hoveringIndex=o.optionsArray.indexOf(d.proxy))},p=g=>{const h=new RegExp(Kf(g),"i");t.visible=h.test(s.value)||e.created};return n.watch(()=>s.value,()=>{!e.created&&!o.props.remote&&o.setSelected()}),n.watch(()=>e.value,(g,h)=>{const{remote:m,valueKey:b}=o.props;if(g!==h&&(o.onOptionDestroy(h,d.proxy),o.onOptionCreate(d.proxy)),!e.created&&!m){if(b&&te(g)&&te(h)&&g[b]===h[b])return;o.setSelected()}}),n.watch(()=>i.disabled,()=>{t.groupDisabled=i.disabled},{immediate:!0}),{select:o,currentLabel:s,currentValue:l,itemSelected:a,isDisabled:c,hoverItem:u,updateOption:p}}const Og=n.defineComponent({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=F("select"),o=it(),i=n.computed(()=>[t.be("dropdown","item"),t.is("disabled",n.unref(l)),t.is("selected",n.unref(s)),t.is("hovering",n.unref(p))]),a=n.reactive({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:r,itemSelected:s,isDisabled:l,select:c,hoverItem:d,updateOption:f}=Ag(e,a),{visible:u,hover:p}=n.toRefs(a),g=n.getCurrentInstance().proxy;c.onOptionCreate(g),n.onBeforeUnmount(()=>{const m=g.value,{selected:b}=c.states,v=(c.props.multiple?b:[b]).some(T=>T.value===g.value);n.nextTick(()=>{c.states.cachedOptions.get(m)===g&&!v&&c.states.cachedOptions.delete(m)}),c.onOptionDestroy(m,g)});function h(){l.value||c.handleOptionSelect(g)}return{ns:t,id:o,containerKls:i,currentLabel:r,itemSelected:s,isDisabled:l,select:c,hoverItem:d,updateOption:f,visible:u,hover:p,selectOptionClick:h,states:a}}});function Mg(e,t,o,i,a,r){return n.withDirectives((n.openBlock(),n.createElementBlock("li",{id:e.id,class:n.normalizeClass(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMouseenter:e.hoverItem,onClick:n.withModifiers(e.selectOptionClick,["stop"])},[n.renderSlot(e.$slots,"default",{},()=>[n.createElementVNode("span",null,n.toDisplayString(e.currentLabel),1)])],42,["id","aria-disabled","aria-selected","onMouseenter","onClick"])),[[n.vShow,e.visible]])}var ai=D(Og,[["render",Mg],["__file","option.vue"]]);const Bg=n.defineComponent({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=n.inject(Kn),t=F("select"),o=n.computed(()=>e.props.popperClass),i=n.computed(()=>e.props.multiple),a=n.computed(()=>e.props.fitInputWidth),r=n.ref("");function s(){var l;r.value=`${(l=e.selectRef)==null?void 0:l.offsetWidth}px`}return n.onMounted(()=>{s(),Re(e.selectRef,s)}),{ns:t,minWidth:r,popperClass:o,isMultiple:i,isFitInputWidth:a}}});function xg(e,t,o,i,a,r){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:n.normalizeStyle({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(e.ns.be("dropdown","header"))},[n.renderSlot(e.$slots,"header")],2)):n.createCommentVNode("v-if",!0),n.renderSlot(e.$slots,"default"),e.$slots.footer?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(e.ns.be("dropdown","footer"))},[n.renderSlot(e.$slots,"footer")],2)):n.createCommentVNode("v-if",!0)],6)}var Ng=D(Bg,[["render",xg],["__file","select-dropdown.vue"]]);const _g=11,Lg=(e,t)=>{const{t:o}=Oo(),i=it(),a=F("select"),r=F("input"),s=n.reactive({inputValue:"",options:new Map,cachedOptions:new Map,disabledOptions:new Map,optionValues:[],selected:[],selectionWidth:0,calculatorWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),l=n.ref(null),c=n.ref(null),d=n.ref(null),f=n.ref(null),u=n.ref(null),p=n.ref(null),g=n.ref(null),h=n.ref(null),m=n.ref(null),b=n.ref(null),y=n.ref(null),v=n.ref(null),{isComposing:T,handleCompositionStart:S,handleCompositionUpdate:w,handleCompositionEnd:k}=Ep({afterComposition:C=>fn(C)}),{wrapperRef:E,isFocused:O}=kp(u,{beforeFocus(){return M.value},afterFocus(){e.automaticDropdown&&!B.value&&(B.value=!0,s.menuVisibleOnFocus=!0)},beforeBlur(C){var A,P;return((A=d.value)==null?void 0:A.isFocusInsideContent(C))||((P=f.value)==null?void 0:P.isFocusInsideContent(C))},afterBlur(){B.value=!1,s.menuVisibleOnFocus=!1}}),B=n.ref(!1),N=n.ref(),{form:x,formItem:I}=Tt(),{inputId:L}=Rn(e,{formItemContext:I}),{valueOnClear:q,isEmptyValue:V}=Mp(e),M=n.computed(()=>e.disabled||(x==null?void 0:x.disabled)),$=n.computed(()=>ee(e.modelValue)?e.modelValue.length>0:!V(e.modelValue)),pe=n.computed(()=>e.clearable&&!M.value&&s.inputHovering&&$.value),Y=n.computed(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),Z=n.computed(()=>a.is("reverse",Y.value&&B.value)),ce=n.computed(()=>(I==null?void 0:I.validateState)||""),Ee=n.computed(()=>Yf[ce.value]),xt=n.computed(()=>e.remote?300:0),Ie=n.computed(()=>e.loading?e.loadingText||o("el.select.loading"):e.remote&&!s.inputValue&&s.options.size===0?!1:e.filterable&&s.inputValue&&s.options.size>0&&re.value===0?e.noMatchText||o("el.select.noMatch"):s.options.size===0?e.noDataText||o("el.select.noData"):null),re=n.computed(()=>U.value.filter(C=>C.visible).length),U=n.computed(()=>{const C=Array.from(s.options.values()),A=[];return s.optionValues.forEach(P=>{const j=C.findIndex(Ge=>Ge.value===P);j>-1&&A.push(C[j])}),A.length>=C.length?A:C}),lt=n.computed(()=>Array.from(s.cachedOptions.values())),qe=n.computed(()=>{const C=U.value.filter(A=>!A.created).some(A=>A.currentLabel===s.inputValue);return e.filterable&&e.allowCreate&&s.inputValue!==""&&!C}),Zn=()=>{e.filterable&&Q(e.filterMethod)||e.filterable&&e.remote&&Q(e.remoteMethod)||U.value.forEach(C=>{var A;(A=C.updateOption)==null||A.call(C,s.inputValue)})},Qn=It(),rn=n.computed(()=>["small"].includes(Qn.value)?"small":"default"),mi=n.computed({get(){return B.value&&Ie.value!==!1},set(C){B.value=C}}),Xn=n.computed(()=>{if(e.multiple&&!ze(e.modelValue))return Fe(e.modelValue).length===0&&!s.inputValue;const C=ee(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||ze(C)?!s.inputValue:!0}),gi=n.computed(()=>{var C;const A=(C=e.placeholder)!=null?C:o("el.select.placeholder");return e.multiple||!$.value?A:s.selectedLabel}),yi=n.computed(()=>ao?null:"mouseenter");n.watch(()=>e.modelValue,(C,A)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(s.inputValue="",ct("")),Nt(),!kn(C,A)&&e.validateEvent&&(I==null||I.validate("change").catch(P=>ne(P)))},{flush:"post",deep:!0}),n.watch(()=>B.value,C=>{C?ct(s.inputValue):(s.inputValue="",s.previousQuery=null,s.isBeforeHide=!0),t("visible-change",C)}),n.watch(()=>s.options.entries(),()=>{var C;if(!K)return;const A=((C=l.value)==null?void 0:C.querySelectorAll("input"))||[];(!e.filterable&&!e.defaultFirstOption&&!ze(e.modelValue)||!Array.from(A).includes(document.activeElement))&&Nt(),e.defaultFirstOption&&(e.filterable||e.remote)&&re.value&&sn()},{flush:"post"}),n.watch(()=>s.hoveringIndex,C=>{G(C)&&C>-1?N.value=U.value[C]||{}:N.value={},U.value.forEach(A=>{A.hover=N.value===A})}),n.watchEffect(()=>{s.isBeforeHide||Zn()});const ct=C=>{s.previousQuery===C||T.value||(s.previousQuery=C,e.filterable&&Q(e.filterMethod)?e.filterMethod(C):e.filterable&&e.remote&&Q(e.remoteMethod)&&e.remoteMethod(C),e.defaultFirstOption&&(e.filterable||e.remote)&&re.value?n.nextTick(sn):n.nextTick(Ve))},sn=()=>{const C=U.value.filter(j=>j.visible&&!j.disabled&&!j.states.groupDisabled),A=C.find(j=>j.created),P=C[0];s.hoveringIndex=Is(U.value,A||P)},Nt=()=>{if(e.multiple)s.selectedLabel="";else{const A=ee(e.modelValue)?e.modelValue[0]:e.modelValue,P=eo(A);s.selectedLabel=P.currentLabel,s.selected=[P];return}const C=[];ze(e.modelValue)||Fe(e.modelValue).forEach(A=>{C.push(eo(A))}),s.selected=C},eo=C=>{let A;const P=so(C).toLowerCase()==="object",j=so(C).toLowerCase()==="null",Ge=so(C).toLowerCase()==="undefined";for(let ft=s.cachedOptions.size-1;ft>=0;ft--){const Te=lt.value[ft];if(P?xe(Te.value,e.valueKey)===xe(C,e.valueKey):Te.value===C){A={value:C,currentLabel:Te.currentLabel,get isDisabled(){return Te.isDisabled}};break}}if(A)return A;const Lt=P?C.label:!j&&!Ge?C:"";return{value:C,currentLabel:Lt}},Ve=()=>{s.hoveringIndex=U.value.findIndex(C=>s.selected.some(A=>bi(A)===bi(C)))},_t=()=>{s.selectionWidth=c.value.getBoundingClientRect().width},ln=()=>{s.calculatorWidth=p.value.getBoundingClientRect().width},to=()=>{s.collapseItemWidth=y.value.getBoundingClientRect().width},dt=()=>{var C,A;(A=(C=d.value)==null?void 0:C.updatePopper)==null||A.call(C)},cn=()=>{var C,A;(A=(C=f.value)==null?void 0:C.updatePopper)==null||A.call(C)},dn=()=>{s.inputValue.length>0&&!B.value&&(B.value=!0),ct(s.inputValue)},fn=C=>{if(s.inputValue=C.target.value,e.remote)un();else return dn()},un=Df(()=>{dn()},xt.value),pn=C=>{kn(e.modelValue,C)||t(Ao,C)},rb=C=>Ff(C,A=>!s.disabledOptions.has(A)),sb=C=>{if(e.multiple&&C.code!==Kt.delete&&C.target.value.length<=0){const A=Fe(e.modelValue).slice(),P=rb(A);if(P<0)return;const j=A[P];A.splice(P,1),t(X,A),pn(A),t("remove-tag",j)}},lb=(C,A)=>{const P=s.selected.indexOf(A);if(P>-1&&!M.value){const j=Fe(e.modelValue).slice();j.splice(P,1),t(X,j),pn(j),t("remove-tag",A.value)}C.stopPropagation(),oo()},ks=C=>{C.stopPropagation();const A=e.multiple?[]:q.value;if(e.multiple)for(const P of s.selected)P.isDisabled&&A.push(P.value);t(X,A),pn(A),s.hoveringIndex=-1,B.value=!1,t("clear"),oo()},Es=C=>{var A;if(e.multiple){const P=Fe((A=e.modelValue)!=null?A:[]).slice(),j=Is(P,C.value);j>-1?P.splice(j,1):(e.multipleLimit<=0||P.length<e.multipleLimit)&&P.push(C.value),t(X,P),pn(P),C.created&&ct(""),e.filterable&&!e.reserveKeyword&&(s.inputValue="")}else t(X,C.value),pn(C.value),B.value=!1;oo(),!B.value&&n.nextTick(()=>{no(C)})},Is=(C=[],A)=>{if(!te(A))return C.indexOf(A);const P=e.valueKey;let j=-1;return C.some((Ge,Lt)=>n.toRaw(xe(Ge,P))===xe(A,P)?(j=Lt,!0):!1),j},no=C=>{var A,P,j,Ge,Lt;const io=ee(C)?C[0]:C;let ft=null;if(io!=null&&io.value){const Te=U.value.filter(Ms=>Ms.value===io.value);Te.length>0&&(ft=Te[0].$el)}if(d.value&&ft){const Te=(Ge=(j=(P=(A=d.value)==null?void 0:A.popperRef)==null?void 0:P.contentRef)==null?void 0:j.querySelector)==null?void 0:Ge.call(j,`.${a.be("dropdown","wrap")}`);Te&&qf(Te,ft)}(Lt=v.value)==null||Lt.handleScroll()},cb=C=>{s.options.set(C.value,C),s.cachedOptions.set(C.value,C),C.disabled&&s.disabledOptions.set(C.value,C)},db=(C,A)=>{s.options.get(C)===A&&s.options.delete(C)},fb=n.computed(()=>{var C,A;return(A=(C=d.value)==null?void 0:C.popperRef)==null?void 0:A.contentRef}),ub=()=>{s.isBeforeHide=!1,n.nextTick(()=>no(s.selected))},oo=()=>{var C;(C=u.value)==null||C.focus()},Ts=()=>{var C;(C=u.value)==null||C.blur()},pb=C=>{ks(C)},hb=()=>{B.value=!1,O.value&&Ts()},mb=()=>{s.inputValue.length>0?s.inputValue="":B.value=!1},As=()=>{M.value||(ao&&(s.inputHovering=!0),s.menuVisibleOnFocus?s.menuVisibleOnFocus=!1:B.value=!B.value)},gb=()=>{B.value?U.value[s.hoveringIndex]&&Es(U.value[s.hoveringIndex]):As()},bi=C=>te(C.value)?xe(C.value,e.valueKey):C.value,yb=n.computed(()=>U.value.filter(C=>C.visible).every(C=>C.disabled)),bb=n.computed(()=>e.multiple?e.collapseTags?s.selected.slice(0,e.maxCollapseTags):s.selected:[]),wb=n.computed(()=>e.multiple?e.collapseTags?s.selected.slice(e.maxCollapseTags):[]:[]),Os=C=>{if(!B.value){B.value=!0;return}if(!(s.options.size===0||s.filteredOptionsCount===0||T.value)&&!yb.value){C==="next"?(s.hoveringIndex++,s.hoveringIndex===s.options.size&&(s.hoveringIndex=0)):C==="prev"&&(s.hoveringIndex--,s.hoveringIndex<0&&(s.hoveringIndex=s.options.size-1));const A=U.value[s.hoveringIndex];(A.disabled===!0||A.states.groupDisabled===!0||!A.visible)&&Os(C),n.nextTick(()=>no(N.value))}},Cb=()=>{if(!c.value)return 0;const C=window.getComputedStyle(c.value);return Number.parseFloat(C.gap||"6px")},vb=n.computed(()=>{const C=Cb();return{maxWidth:`${y.value&&e.maxCollapseTags===1?s.selectionWidth-s.collapseItemWidth-C:s.selectionWidth}px`}}),Sb=n.computed(()=>({maxWidth:`${s.selectionWidth}px`})),kb=n.computed(()=>({width:`${Math.max(s.calculatorWidth,_g)}px`}));return Re(c,_t),Re(p,ln),Re(m,dt),Re(E,dt),Re(b,cn),Re(y,to),n.onMounted(()=>{Nt()}),{inputId:L,contentId:i,nsSelect:a,nsInput:r,states:s,isFocused:O,expanded:B,optionsArray:U,hoverOption:N,selectSize:Qn,filteredOptionsCount:re,resetCalculatorWidth:ln,updateTooltip:dt,updateTagTooltip:cn,debouncedOnInputChange:un,onInput:fn,deletePrevTag:sb,deleteTag:lb,deleteSelected:ks,handleOptionSelect:Es,scrollToOption:no,hasModelValue:$,shouldShowPlaceholder:Xn,currentPlaceholder:gi,mouseEnterEventName:yi,showClose:pe,iconComponent:Y,iconReverse:Z,validateState:ce,validateIcon:Ee,showNewOption:qe,updateOptions:Zn,collapseTagSize:rn,setSelected:Nt,selectDisabled:M,emptyText:Ie,handleCompositionStart:S,handleCompositionUpdate:w,handleCompositionEnd:k,onOptionCreate:cb,onOptionDestroy:db,handleMenuEnter:ub,focus:oo,blur:Ts,handleClearClick:pb,handleClickOutside:hb,handleEsc:mb,toggleMenu:As,selectOption:gb,getValueKey:bi,navigateOptions:Os,dropdownMenuVisible:mi,showTagList:bb,collapseTagList:wb,tagStyle:vb,collapseTagStyle:Sb,inputStyle:kb,popperRef:fb,inputRef:u,tooltipRef:d,tagTooltipRef:f,calculatorRef:p,prefixRef:g,suffixRef:h,selectRef:l,wrapperRef:E,selectionRef:c,scrollbarRef:v,menuRef:m,tagMenuRef:b,collapseItemRef:y}};var Pg=n.defineComponent({name:"ElOptions",setup(e,{slots:t}){const o=n.inject(Kn);let i=[];return()=>{var a,r;const s=(a=t.default)==null?void 0:a.call(t),l=[];function c(d){ee(d)&&d.forEach(f=>{var u,p,g,h;const m=(u=(f==null?void 0:f.type)||{})==null?void 0:u.name;m==="ElOptionGroup"?c(!me(f.children)&&!ee(f.children)&&Q((p=f.children)==null?void 0:p.default)?(g=f.children)==null?void 0:g.default():f.children):m==="ElOption"?l.push((h=f.props)==null?void 0:h.value):ee(f.children)&&c(f.children)})}return s.length&&c((r=s[0])==null?void 0:r.children),kn(l,i)||(i=l,o&&(o.states.optionValues=l)),s}}});const Vg=R({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:Et,effect:{type:_(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:_(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:se.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:gt,default:W.CircleClose},fitInputWidth:Boolean,suffixIcon:{type:gt,default:W.ArrowDown},tagType:{...oi.type,default:"info"},tagEffect:{...oi.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,placement:{type:_(String),values:On,default:"bottom-start"},fallbackPlacements:{type:_(Array),default:["bottom-start","top-start","right","left"]},appendTo:String,...Op,...at(["ariaLabel"])}),ls="ElSelect",Rg=n.defineComponent({name:ls,componentName:ls,components:{ElSelectMenu:Ng,ElOption:ai,ElOptions:Pg,ElTag:Gm,ElScrollbar:Jp,ElTooltip:Lr,ElIcon:be},directives:{ClickOutside:wm},props:Vg,emits:[X,Ao,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const o=n.computed(()=>{const{modelValue:r,multiple:s}=e,l=s?[]:void 0;return ee(r)?s?r:l:s?l:r}),i=n.reactive({...n.toRefs(e),modelValue:o}),a=Lg(i,t);return n.provide(Kn,n.reactive({props:i,states:a.states,optionsArray:a.optionsArray,handleOptionSelect:a.handleOptionSelect,onOptionCreate:a.onOptionCreate,onOptionDestroy:a.onOptionDestroy,selectRef:a.selectRef,setSelected:a.setSelected})),{...a,modelValue:o}}});function Dg(e,t,o,i,a,r){const s=n.resolveComponent("el-tag"),l=n.resolveComponent("el-tooltip"),c=n.resolveComponent("el-icon"),d=n.resolveComponent("el-option"),f=n.resolveComponent("el-options"),u=n.resolveComponent("el-scrollbar"),p=n.resolveComponent("el-select-menu"),g=n.resolveDirective("click-outside");return n.withDirectives((n.openBlock(),n.createElementBlock("div",{ref:"selectRef",class:n.normalizeClass([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),[n.toHandlerKey(e.mouseEnterEventName)]:h=>e.states.inputHovering=!0,onMouseleave:h=>e.states.inputHovering=!1},[n.createVNode(l,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,"append-to":e.appendTo,onBeforeShow:e.handleMenuEnter,onHide:h=>e.states.isBeforeHide=!1},{default:n.withCtx(()=>{var h;return[n.createElementVNode("div",{ref:"wrapperRef",class:n.normalizeClass([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:n.withModifiers(e.toggleMenu,["prevent"])},[e.$slots.prefix?(n.openBlock(),n.createElementBlock("div",{key:0,ref:"prefixRef",class:n.normalizeClass(e.nsSelect.e("prefix"))},[n.renderSlot(e.$slots,"prefix")],2)):n.createCommentVNode("v-if",!0),n.createElementVNode("div",{ref:"selectionRef",class:n.normalizeClass([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?n.renderSlot(e.$slots,"tag",{key:0},()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.showTagList,m=>(n.openBlock(),n.createElementBlock("div",{key:e.getValueKey(m),class:n.normalizeClass(e.nsSelect.e("selected-item"))},[n.createVNode(s,{closable:!e.selectDisabled&&!m.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:n.normalizeStyle(e.tagStyle),onClose:b=>e.deleteTag(b,m)},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(e.nsSelect.e("tags-text"))},[n.renderSlot(e.$slots,"label",{label:m.currentLabel,value:m.value},()=>[n.createTextVNode(n.toDisplayString(m.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(n.openBlock(),n.createBlock(l,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:n.withCtx(()=>[n.createElementVNode("div",{ref:"collapseItemRef",class:n.normalizeClass(e.nsSelect.e("selected-item"))},[n.createVNode(s,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:n.normalizeStyle(e.collapseTagStyle)},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(e.nsSelect.e("tags-text"))}," + "+n.toDisplayString(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:n.withCtx(()=>[n.createElementVNode("div",{ref:"tagMenuRef",class:n.normalizeClass(e.nsSelect.e("selection"))},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.collapseTagList,m=>(n.openBlock(),n.createElementBlock("div",{key:e.getValueKey(m),class:n.normalizeClass(e.nsSelect.e("selected-item"))},[n.createVNode(s,{class:"in-tooltip",closable:!e.selectDisabled&&!m.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:b=>e.deleteTag(b,m)},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(e.nsSelect.e("tags-text"))},[n.renderSlot(e.$slots,"label",{label:m.currentLabel,value:m.value},()=>[n.createTextVNode(n.toDisplayString(m.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","teleported"])):n.createCommentVNode("v-if",!0)]):n.createCommentVNode("v-if",!0),e.selectDisabled?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[n.withDirectives(n.createElementVNode("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":m=>e.states.inputValue=m,type:"text",name:e.name,class:n.normalizeClass([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:n.normalizeStyle(e.inputStyle),role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((h=e.hoverOption)==null?void 0:h.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:[n.withKeys(n.withModifiers(m=>e.navigateOptions("next"),["stop","prevent"]),["down"]),n.withKeys(n.withModifiers(m=>e.navigateOptions("prev"),["stop","prevent"]),["up"]),n.withKeys(n.withModifiers(e.handleEsc,["stop","prevent"]),["esc"]),n.withKeys(n.withModifiers(e.selectOption,["stop","prevent"]),["enter"]),n.withKeys(n.withModifiers(e.deletePrevTag,["stop"]),["delete"])],onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onInput:e.onInput,onClick:n.withModifiers(e.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","name","disabled","autocomplete","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onClick"]),[[n.vModelText,e.states.inputValue]]),e.filterable?(n.openBlock(),n.createElementBlock("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:n.normalizeClass(e.nsSelect.e("input-calculator")),textContent:n.toDisplayString(e.states.inputValue)},null,10,["textContent"])):n.createCommentVNode("v-if",!0)],2)),e.shouldShowPlaceholder?(n.openBlock(),n.createElementBlock("div",{key:2,class:n.normalizeClass([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?n.renderSlot(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[n.createElementVNode("span",null,n.toDisplayString(e.currentPlaceholder),1)]):(n.openBlock(),n.createElementBlock("span",{key:1},n.toDisplayString(e.currentPlaceholder),1))],2)):n.createCommentVNode("v-if",!0)],2),n.createElementVNode("div",{ref:"suffixRef",class:n.normalizeClass(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClose?(n.openBlock(),n.createBlock(c,{key:0,class:n.normalizeClass([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):n.createCommentVNode("v-if",!0),e.showClose&&e.clearIcon?(n.openBlock(),n.createBlock(c,{key:1,class:n.normalizeClass([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.clearIcon)))]),_:1},8,["class","onClick"])):n.createCommentVNode("v-if",!0),e.validateState&&e.validateIcon?(n.openBlock(),n.createBlock(c,{key:2,class:n.normalizeClass([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.validateIcon)))]),_:1},8,["class"])):n.createCommentVNode("v-if",!0)],2)],10,["onClick"])]}),content:n.withCtx(()=>[n.createVNode(p,{ref:"menuRef"},{default:n.withCtx(()=>[e.$slots.header?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(e.nsSelect.be("dropdown","header")),onClick:n.withModifiers(()=>{},["stop"])},[n.renderSlot(e.$slots,"header")],10,["onClick"])):n.createCommentVNode("v-if",!0),n.withDirectives(n.createVNode(u,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:n.normalizeClass([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:n.withCtx(()=>[e.showNewOption?(n.openBlock(),n.createBlock(d,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):n.createCommentVNode("v-if",!0),n.createVNode(f,null,{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[n.vShow,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(e.nsSelect.be("dropdown","loading"))},[n.renderSlot(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(n.openBlock(),n.createElementBlock("div",{key:2,class:n.normalizeClass(e.nsSelect.be("dropdown","empty"))},[n.renderSlot(e.$slots,"empty",{},()=>[n.createElementVNode("span",null,n.toDisplayString(e.emptyText),1)])],2)):n.createCommentVNode("v-if",!0),e.$slots.footer?(n.openBlock(),n.createElementBlock("div",{key:3,class:n.normalizeClass(e.nsSelect.be("dropdown","footer")),onClick:n.withModifiers(()=>{},["stop"])},[n.renderSlot(e.$slots,"footer")],10,["onClick"])):n.createCommentVNode("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","append-to","onBeforeShow","onHide"])],16,["onMouseleave"])),[[g,e.handleClickOutside,e.popperRef]])}var Fg=D(Rg,[["render",Dg],["__file","select.vue"]]);const $g=n.defineComponent({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=F("select"),o=n.ref(null),i=n.getCurrentInstance(),a=n.ref([]);n.provide(ss,n.reactive({...n.toRefs(e)}));const r=n.computed(()=>a.value.some(d=>d.visible===!0)),s=d=>{var f,u;return((f=d.type)==null?void 0:f.name)==="ElOption"&&!!((u=d.component)!=null&&u.proxy)},l=d=>{const f=Fe(d),u=[];return f.forEach(p=>{var g,h;s(p)?u.push(p.component.proxy):(g=p.children)!=null&&g.length?u.push(...l(p.children)):(h=p.component)!=null&&h.subTree&&u.push(...l(p.component.subTree))}),u},c=()=>{a.value=l(i.subTree)};return n.onMounted(()=>{c()}),js(o,c,{attributes:!0,subtree:!0,childList:!0}),{groupRef:o,visible:r,ns:t}}});function zg(e,t,o,i,a,r){return n.withDirectives((n.openBlock(),n.createElementBlock("ul",{ref:"groupRef",class:n.normalizeClass(e.ns.be("group","wrap"))},[n.createElementVNode("li",{class:n.normalizeClass(e.ns.be("group","title"))},n.toDisplayString(e.label),3),n.createElementVNode("li",null,[n.createElementVNode("ul",{class:n.normalizeClass(e.ns.b("group"))},[n.renderSlot(e.$slots,"default")],2)])],2)),[[n.vShow,e.visible]])}var cs=D($g,[["render",zg],["__file","option-group.vue"]]);const Un=oe(Fg,{Option:ai,OptionGroup:cs}),ri=tt(ai);tt(cs);const jg=R({trigger:en.trigger,placement:ii.placement,disabled:en.disabled,visible:se.visible,transition:se.transition,popperOptions:ii.popperOptions,tabindex:ii.tabindex,content:se.content,popperStyle:se.popperStyle,popperClass:se.popperClass,enterable:{...se.enterable,default:!0},effect:{...se.effect,default:"light"},teleported:se.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),Hg={"update:visible":e=>_e(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},Kg="onUpdate:visible",Ug=n.defineComponent({name:"ElPopover"}),Wg=n.defineComponent({...Ug,props:jg,emits:Hg,setup(e,{expose:t,emit:o}){const i=e,a=n.computed(()=>i[Kg]),r=F("popover"),s=n.ref(),l=n.computed(()=>{var b;return(b=n.unref(s))==null?void 0:b.popperRef}),c=n.computed(()=>[{width:et(i.width)},i.popperStyle]),d=n.computed(()=>[r.b(),i.popperClass,{[r.m("plain")]:!!i.content}]),f=n.computed(()=>i.transition===`${r.namespace.value}-fade-in-linear`),u=()=>{var b;(b=s.value)==null||b.hide()},p=()=>{o("before-enter")},g=()=>{o("before-leave")},h=()=>{o("after-enter")},m=()=>{o("update:visible",!1),o("after-leave")};return t({popperRef:l,hide:u}),(b,y)=>(n.openBlock(),n.createBlock(n.unref(Lr),n.mergeProps({ref_key:"tooltipRef",ref:s},b.$attrs,{trigger:b.trigger,placement:b.placement,disabled:b.disabled,visible:b.visible,transition:b.transition,"popper-options":b.popperOptions,tabindex:b.tabindex,content:b.content,offset:b.offset,"show-after":b.showAfter,"hide-after":b.hideAfter,"auto-close":b.autoClose,"show-arrow":b.showArrow,"aria-label":b.title,effect:b.effect,enterable:b.enterable,"popper-class":n.unref(d),"popper-style":n.unref(c),teleported:b.teleported,persistent:b.persistent,"gpu-acceleration":n.unref(f),"onUpdate:visible":n.unref(a),onBeforeShow:p,onBeforeHide:g,onShow:h,onHide:m}),{content:n.withCtx(()=>[b.title?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(n.unref(r).e("title")),role:"title"},n.toDisplayString(b.title),3)):n.createCommentVNode("v-if",!0),n.renderSlot(b.$slots,"default",{},()=>[n.createTextVNode(n.toDisplayString(b.content),1)])]),default:n.withCtx(()=>[b.$slots.reference?n.renderSlot(b.$slots,"reference",{key:0}):n.createCommentVNode("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var qg=D(Wg,[["__file","popover.vue"]]);const ds=(e,t)=>{const o=t.arg||t.value,i=o==null?void 0:o.popperRef;i&&(i.triggerRef=e)};var Gg={mounted(e,t){ds(e,t)},updated(e,t){ds(e,t)}};const si=Zf(Gg,"popover"),on=oe(qg,{directive:si});function Jg(e){let t;const o=n.ref(!1),i=n.reactive({...e,originalPosition:"",originalOverflow:"",visible:!1});function a(p){i.text=p}function r(){const p=i.parent,g=u.ns;if(!p.vLoadingAddClassList){let h=p.getAttribute("loading-number");h=Number.parseInt(h)-1,h?p.setAttribute("loading-number",h.toString()):(Ht(p,g.bm("parent","relative")),p.removeAttribute("loading-number")),Ht(p,g.bm("parent","hidden"))}s(),f.unmount()}function s(){var p,g;(g=(p=u.$el)==null?void 0:p.parentNode)==null||g.removeChild(u.$el)}function l(){var p;e.beforeClose&&!e.beforeClose()||(o.value=!0,clearTimeout(t),t=setTimeout(c,400),i.visible=!1,(p=e.closed)==null||p.call(e))}function c(){if(!o.value)return;const p=i.parent;o.value=!1,p.vLoadingAddClassList=void 0,r()}const d=n.defineComponent({name:"ElLoading",setup(p,{expose:g}){const{ns:h,zIndex:m}=xp("loading");return g({ns:h,zIndex:m}),()=>{const b=i.spinner||i.svg,y=n.h("svg",{class:"circular",viewBox:i.svgViewBox?i.svgViewBox:"0 0 50 50",...b?{innerHTML:b}:{}},[n.h("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),v=i.text?n.h("p",{class:h.b("text")},[i.text]):void 0;return n.h(n.Transition,{name:h.b("fade"),onAfterLeave:c},{default:n.withCtx(()=>[n.withDirectives(n.createVNode("div",{style:{backgroundColor:i.background||""},class:[h.b("mask"),i.customClass,i.fullscreen?"is-fullscreen":""]},[n.h("div",{class:h.b("spinner")},[y,v])]),[[n.vShow,i.visible]])])})}}}),f=n.createApp(d),u=f.mount(document.createElement("div"));return{...n.toRefs(i),setText:a,removeElLoadingChild:s,close:l,handleAfterLeave:c,vm:u,get $el(){return u.$el}}}let Wn;const li=function(e={}){if(!K)return;const t=Yg(e);if(t.fullscreen&&Wn)return Wn;const o=Jg({...t,closed:()=>{var a;(a=t.closed)==null||a.call(t),t.fullscreen&&(Wn=void 0)}});Zg(t,t.parent,o),fs(t,t.parent,o),t.parent.vLoadingAddClassList=()=>fs(t,t.parent,o);let i=t.parent.getAttribute("loading-number");return i?i=`${Number.parseInt(i)+1}`:i="1",t.parent.setAttribute("loading-number",i),t.parent.appendChild(o.$el),n.nextTick(()=>o.visible.value=t.visible),t.fullscreen&&(Wn=o),o},Yg=e=>{var t,o,i,a;let r;return me(e.target)?r=(t=document.querySelector(e.target))!=null?t:document.body:r=e.target||document.body,{parent:r===document.body||e.body?document.body:r,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:r===document.body&&((o=e.fullscreen)!=null?o:!0),lock:(i=e.lock)!=null?i:!1,customClass:e.customClass||"",visible:(a=e.visible)!=null?a:!0,beforeClose:e.beforeClose,closed:e.closed,target:r}},Zg=async(e,t,o)=>{const{nextZIndex:i}=o.vm.zIndex||o.vm._.exposed.zIndex,a={};if(e.fullscreen)o.originalPosition.value=mt(document.body,"position"),o.originalOverflow.value=mt(document.body,"overflow"),a.zIndex=i();else if(e.parent===document.body){o.originalPosition.value=mt(document.body,"position"),await n.nextTick();for(const r of["top","left"]){const s=r==="top"?"scrollTop":"scrollLeft";a[r]=`${e.target.getBoundingClientRect()[r]+document.body[s]+document.documentElement[s]-Number.parseInt(mt(document.body,`margin-${r}`),10)}px`}for(const r of["height","width"])a[r]=`${e.target.getBoundingClientRect()[r]}px`}else o.originalPosition.value=mt(t,"position");for(const[r,s]of Object.entries(a))o.$el.style[r]=s},fs=(e,t,o)=>{const i=o.vm.ns||o.vm._.exposed.ns;["absolute","fixed","sticky"].includes(o.originalPosition.value)?Ht(t,i.bm("parent","relative")):To(t,i.bm("parent","relative")),e.fullscreen&&e.lock?To(t,i.bm("parent","hidden")):Ht(t,i.bm("parent","hidden"))},qn=Symbol("ElLoading"),us=(e,t)=>{var o,i,a,r;const s=t.instance,l=p=>te(t.value)?t.value[p]:void 0,c=p=>{const g=me(p)&&(s==null?void 0:s[p])||p;return g&&n.ref(g)},d=p=>c(l(p)||e.getAttribute(`element-loading-${Xs(p)}`)),f=(o=l("fullscreen"))!=null?o:t.modifiers.fullscreen,u={text:d("text"),svg:d("svg"),svgViewBox:d("svgViewBox"),spinner:d("spinner"),background:d("background"),customClass:d("customClass"),fullscreen:f,target:(i=l("target"))!=null?i:f?void 0:e,body:(a=l("body"))!=null?a:t.modifiers.body,lock:(r=l("lock"))!=null?r:t.modifiers.lock};e[qn]={options:u,instance:li(u)}},Qg=(e,t)=>{for(const o of Object.keys(t))n.isRef(t[o])&&(t[o].value=e[o])},ci={mounted(e,t){t.value&&us(e,t)},updated(e,t){const o=e[qn];t.oldValue!==t.value&&(t.value&&!t.oldValue?us(e,t):t.value&&t.oldValue?te(t.value)&&Qg(t.value,o.options):o==null||o.instance.close())},unmounted(e){var t;(t=e[qn])==null||t.instance.close(),e[qn]=null}},Xg={install(e){e.directive("loading",ci),e.config.globalProperties.$loading=li},directive:ci,service:li},st=(e,t)=>{const o=e.__vccOpts||e;for(const[i,a]of t)o[i]=a;return o},ey={name:"SelectionsGroup",components:{Checkbox:Gr,CheckboxGroup:Jr,Col:nn,Icon:be,Row:tn,ElIconWarning:W.Warning},methods:{reset:function(){this.checkAll=!0,this.checkedItems=[],this.selections.forEach(e=>{!("enabled"in e)||e.enabled===!0?this.checkedItems.push(e[this.identifierKey]):this.checkAll=!1})},setCheckboxActionData:function(e,t){if(e){const o=e.querySelector('input[type="checkbox"]'),i=e.querySelector(".el-checkbox__label"),r=e.closest(".selections-container").querySelector(".checkall-display-text");let s="";o&&(s=o.checked?"checked":"unchecked"),this.checkboxActionData={selectionsTitle:r?r.innerText:"",property:o&&t!=="all"?o.value:"",label:i?i.innerText:"",checked:s}}else this.checkboxActionData={selectionsTitle:"",property:"",label:"",checked:""}},onCheckboxNativeChange:function(e){const t=e.target.closest(".checkbox-container");this.setCheckboxActionData(t,"individual")},onAllCheckboxNativeChange:function(e){const t=e.target.closest(".all-checkbox");this.setCheckboxActionData(t,"all")},visibilityToggle:function(e,t){this.$emit("changed",{key:e,value:t}),e===this.checkboxActionData.property&&(this.checkboxActionData.checked=t?"checked":"unchecked"),this.$emit("selections-data-changed",this.checkboxActionData)},checkboxMouseEnterEmit:function(e,t){this.$emit("checkboxMouseEnter",{key:e,value:t,selections:this.selections,checked:this.checkedItems})},handleCheckedItemsChange:function(e){let t=e.length;this.checkAll=t===this.selections.length},handleCheckAllChange:function(e){this.checkedItems=e?this.selections.map(t=>t[this.identifierKey]):[],this.$emit("checkAll",{keys:this.selections.map(t=>t[this.identifierKey]),value:e}),this.checkboxActionData.property=this.identifierKey,this.checkboxActionData.checked=e?"checked":"unchecked",this.$emit("selections-data-changed",this.checkboxActionData)},getBackgroundStyles:function(e){return"colour"in e&&this.colourStyle==="background"?{background:e.colour}:{}},getState:function(){const t=this.checkedItems.length===this.selections.length;return{checkAll:t,checked:t?[]:this.checkedItems}},setState:function(e){var t;if(this.checkAll=e.checkAll,this.checkedItems.length=0,(t=e.checked)!=null&&t.length)this.checkedItems.push(...e.checked),this.selections.forEach(o=>{const i=o[this.identifierKey];this.$emit("changed",{key:i,value:this.checkedItems.includes(i)})});else{const o=this.selections.map(a=>a[this.identifierKey]);let i=!1;this.checkAll&&(i=!0,this.checkedItems.push(...o)),this.$emit("checkAll",{keys:o,value:i})}},hasLineStyles:function(e){return"colour"in e&&this.colourStyle==="line"},getLineStyles:function(e){return"colour"in e&&this.colourStyle==="line"?"dashed"in e&&e.dashed===!0?{background:`repeating-linear-gradient(90deg,${e.colour},${e.colour} 6px,transparent 0,transparent 9px)`}:{background:e.colour}:{display:"None"}}},props:{colourStyle:{type:String,default:"line"},helpMessage:{type:String,default:""},identifierKey:{type:String,default:"id"},labelKey:{type:String,default:"label"},title:{type:String,default:""},selections:{type:Array,default:function(){return[]}},showAsLegend:{type:Boolean,default:!1}},computed:{isIndeterminate:function(){return!(this.checkedItems.length===0||this.checkAll)}},data:function(){return{checkedItems:[],checkAll:!0,checkboxActionData:{selectionsTitle:"",property:"",label:"",checked:""}}},mounted:function(){this.reset()}},ty={class:"selections-container"},ny={class:"checkall-display-text"},oy={style:{"word-break":"keep-all"}},iy={class:"checkbox-group-inner"},ay=["onMouseenter","onMouseleave"];function ry(e,t,o,i,a,r){const s=W.Warning,l=be,c=on,d=nn,f=Gr,u=tn,p=Jr;return n.openBlock(),n.createElementBlock("div",ty,[n.createVNode(u,null,{default:n.withCtx(()=>[n.createVNode(d,{span:12},{default:n.withCtx(()=>[n.createElementVNode("span",ny,n.toDisplayString(o.title),1),o.helpMessage?(n.openBlock(),n.createBlock(c,{key:0,width:"250",trigger:"hover",teleported:!1,"popper-class":"popover-origin-help"},n.createSlots({default:n.withCtx(()=>[n.createElementVNode("span",oy,n.toDisplayString(o.helpMessage),1)]),_:2},[o.helpMessage?{name:"reference",fn:n.withCtx(()=>[n.createVNode(l,{class:"info"},{default:n.withCtx(()=>[n.createVNode(s)]),_:1})]),key:"0"}:void 0]),1024)):n.createCommentVNode("",!0)]),_:1}),n.createVNode(d,{span:12},{default:n.withCtx(()=>[o.selections&&o.selections.length>1&&!o.showAsLegend?(n.openBlock(),n.createBlock(f,{key:0,class:"all-checkbox",indeterminate:r.isIndeterminate,modelValue:e.checkAll,"onUpdate:modelValue":t[0]||(t[0]=g=>e.checkAll=g),onChange:r.handleCheckAllChange,onClick:r.onAllCheckboxNativeChange},{default:n.withCtx(()=>t[2]||(t[2]=[n.createTextVNode("Display all")])),_:1},8,["indeterminate","modelValue","onChange","onClick"])):n.createCommentVNode("",!0)]),_:1})]),_:1}),n.createVNode(p,{class:n.normalizeClass({"show-as-legend":o.showAsLegend,"checkbox-group":!o.showAsLegend}),modelValue:e.checkedItems,"onUpdate:modelValue":t[1]||(t[1]=g=>e.checkedItems=g),size:"small",onChange:r.handleCheckedItemsChange},{default:n.withCtx(()=>[n.createElementVNode("div",iy,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.selections,g=>(n.openBlock(),n.createBlock(u,{key:g[o.identifierKey],label:g[o.identifierKey]},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"checkbox-container",onMouseenter:h=>r.checkboxMouseEnterEmit(g[o.identifierKey],!0),onMouseleave:h=>r.checkboxMouseEnterEmit(g[o.identifierKey],!1)},[n.createVNode(f,{class:"my-checkbox",label:g[o.identifierKey],value:g[o.identifierKey],onChange:h=>r.visibilityToggle(g[o.identifierKey],h),onClick:r.onCheckboxNativeChange,checked:!("enabled"in g)||g.enabled===!0},{default:n.withCtx(()=>[n.createVNode(u,{class:"checkbox-row"},{default:n.withCtx(()=>[r.hasLineStyles(g)?(n.openBlock(),n.createBlock(d,{key:0,span:4},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"path-visual",style:n.normalizeStyle(r.getLineStyles(g))},null,4)]),_:2},1024)):n.createCommentVNode("",!0),n.createVNode(d,{span:20},{default:n.withCtx(()=>[n.createElementVNode("div",{style:n.normalizeStyle(r.getBackgroundStyles(g))},n.toDisplayString(g[o.labelKey]),5)]),_:2},1024)]),_:2},1024)]),_:2},1032,["label","value","onChange","onClick","checked"])],40,ay)]),_:2},1032,["label"]))),128))])]),_:1},8,["class","modelValue","onChange"])])}const ps=st(ey,[["render",ry],["__scopeId","data-v-35fb97d0"]]),sy='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="<fillColor>" stroke="<borderColor>" stroke-width="<borderWidth>" d="M11.0748 3.25583C11.4141 2.42845 12.5859 2.42845 12.9252 3.25583L14.6493 7.45955C14.793 7.80979 15.1221 8.04889 15.4995 8.07727L20.0303 8.41798C20.922 8.48504 21.2841 9.59942 20.6021 10.1778L17.1369 13.1166C16.8482 13.3614 16.7225 13.7483 16.8122 14.1161L17.8882 18.5304C18.1 19.3992 17.152 20.0879 16.3912 19.618L12.5255 17.2305C12.2034 17.0316 11.7966 17.0316 11.4745 17.2305L7.60881 19.618C6.84796 20.0879 5.90001 19.3992 6.1118 18.5304L7.18785 14.1161C7.2775 13.7483 7.1518 13.3614 6.86309 13.1166L3.3979 10.1778C2.71588 9.59942 3.07796 8.48504 3.96971 8.41798L8.50046 8.07727C8.87794 8.04889 9.20704 7.80979 9.35068 7.45955L11.0748 3.25583Z"/></svg>',ly={name:"LegendItem",props:{item:{type:Object,required:!0},identifierKey:{type:String,default:"id"},styleKey:{type:String,default:"style"},showStarInLegend:{type:Boolean,default:!1}},computed:{clipPathLegends:function(){return["exoid","hexagon"]},legendStyleValue:function(){return this.item[this.styleKey]==="star"?this.item[this.identifierKey]==="Featured dataset marker"&&!this.showStarInLegend?void 0:"star":this.clipPathLegends.includes(this.item[this.styleKey])?this.item[this.styleKey]:this.item[this.styleKey]==="line"?[this.item[this.styleKey],this.item.dashed?"dashed":"",this.item.arrow?"arrow":""]:[this.item[this.styleKey],"shape"]},customStyle:function(){const e=this.item.color?this.item.color:this.item.colour;let t=e||"transparent",o=this.item.border?this.item.border:"black",i=this.item.borderStyle?this.item.borderStyle:"default";if(e&&!this.item.border&&(o=t),this.item[this.styleKey]==="star"){let a=sy.replace("<fillColor>",t);return a=a.replace("<borderColor>",o),a=a.replace("<borderWidth>",o?"2":"0"),a="data:image/svg+xml,"+encodeURIComponent(a),{color:t,"background-image":`url(${a})`}}else return this.item[this.styleKey]==="line"?{color:t}:{"background-color":t,"border-color":o,"border-style":i}}},methods:{capitalise:function(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()},customClipPathStyle:function(e){const t={...this.customStyle};return e?t["background-color"]=t["border-color"]:t.scale=.7,t}}},cy={key:0,class:"legend-item"},dy={class:"label"};function fy(e,t,o,i,a,r){return r.legendStyleValue?(n.openBlock(),n.createElementBlock("div",cy,[r.clipPathLegends.includes(r.legendStyleValue)?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(r.legendStyleValue),style:n.normalizeStyle(r.customClipPathStyle(!0))},[n.createElementVNode("div",{class:n.normalizeClass(r.legendStyleValue),style:n.normalizeStyle(r.customClipPathStyle(!1))},null,6)],6)):(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(r.legendStyleValue),style:n.normalizeStyle(r.customStyle)},null,6)),n.createElementVNode("div",dy,n.toDisplayString(r.capitalise(o.item[o.identifierKey])),1)])):n.createCommentVNode("",!0)}const hs=st(ly,[["render",fy],["__scopeId","data-v-b7e5b095"]]),uy={name:"DynamicLegends",components:{LegendItem:hs},props:{identifierKey:{type:String,default:"id"},styleKey:{type:String,default:"style"},title:{type:String,default:""},legends:{type:Array,default:function(){return[]}},showStarInLegend:{type:Boolean,default:!1},showDatasetMarkerTooltip:{type:Boolean,default:!1}},data(){return{isHovering:!1,hoverTimeout:null}},computed:{tooltipVisible(){return this.showDatasetMarkerTooltip&&this.showStarInLegend||this.isHovering}},methods:{onMouseOver(){clearTimeout(this.hoverTimeout),this.hoverTimeout=setTimeout(()=>{this.isHovering=!0},500)},onMouseOut(){clearTimeout(this.hoverTimeout),this.hoverTimeout=setTimeout(()=>{this.isHovering=!1},500)}}},py={class:"legend-group"},hy=["label"];function my(e,t,o,i,a,r){const s=hs,l=on,c=si;return n.openBlock(),n.createElementBlock("div",py,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.legends,d=>(n.openBlock(),n.createElementBlock("div",{class:"legend-container",key:d[o.identifierKey],label:d[o.identifierKey]},[d[o.identifierKey]==="Featured dataset marker"?(n.openBlock(),n.createBlock(l,{key:0,content:"Location of the featured dataset",placement:"right",teleported:!0,trigger:"manual",width:"max-content",offset:0,"popper-class":"flatmap-popper flatmap-teleport-popper",visible:r.tooltipVisible,ref_for:!0,ref:"featuredMarkerPopover"},{reference:n.withCtx(()=>[n.withDirectives((n.openBlock(),n.createElementBlock("div",{onMouseover:t[0]||(t[0]=(...f)=>r.onMouseOver&&r.onMouseOver(...f)),onMouseout:t[1]||(t[1]=(...f)=>r.onMouseOut&&r.onMouseOut(...f))},[n.createVNode(s,{item:d,identifierKey:o.identifierKey,styleKey:o.styleKey,showStarInLegend:o.showStarInLegend},null,8,["item","identifierKey","styleKey","showStarInLegend"])],32)),[[c,void 0,"featuredMarkerPopover"]])]),_:2},1032,["visible"])):(n.openBlock(),n.createBlock(s,{key:1,item:d,identifierKey:o.identifierKey,styleKey:o.styleKey,showStarInLegend:o.showStarInLegend},null,8,["item","identifierKey","styleKey","showStarInLegend"]))],8,hy))),128))])}const ms=st(uy,[["render",my],["__scopeId","data-v-32c93a1a"]]),gy={name:"FlatmapError",props:{flatmapError:{type:Object,default:()=>({})}}},yy={class:"flatmap-error"},by={class:"flatmap-error-title"},wy={key:0},Cy={key:0,class:"flatmap-error-message"},vy=["innerHTML"],Sy={key:1};function ky(e,t,o,i,a,r){const s=W.DocumentDelete,l=be,c=ni;return n.openBlock(),n.createElementBlock("div",yy,[n.createElementVNode("div",by,[n.createVNode(l,{size:"24"},{default:n.withCtx(()=>[n.createVNode(s)]),_:1}),o.flatmapError.title?(n.openBlock(),n.createElementBlock("div",wy,n.toDisplayString(o.flatmapError.title),1)):n.createCommentVNode("",!0)]),o.flatmapError.messages?(n.openBlock(),n.createElementBlock("div",Cy,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.flatmapError.messages,(d,f)=>(n.openBlock(),n.createElementBlock("div",{key:f},[n.createElementVNode("div",{innerHTML:d},null,8,vy)]))),128))])):n.createCommentVNode("",!0),o.flatmapError.button?(n.openBlock(),n.createElementBlock("div",Sy,[n.createVNode(c,{class:"button",type:"primary",onClick:o.flatmapError.button.callback},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(o.flatmapError.button.text),1)]),_:1},8,["onClick"])])):n.createCommentVNode("",!0)])}const Gn=st(gy,[["render",ky],["__scopeId","data-v-8961361a"]]),Ey={name:"SvgLegends"},Iy={class:"legends-container"},Ty={version:"1.1",id:"Layer_1",x:"0px",y:"0px",viewBox:"0 0 500 500",style:{"enable-background":"new 0 0 500 500"},xmlns:"http://www.w3.org/2000/svg","xmlns:bx":"https://boxy-svg.com"};function Ay(e,t,o,i,a,r){return n.openBlock(),n.createElementBlock("div",Iy,[(n.openBlock(),n.createElementBlock("svg",Ty,t[0]||(t[0]=[n.createStaticVNode('<defs data-v-88079d87><bx:grid height="30.447" width="32.516" x="0" y="0" data-v-88079d87></bx:grid></defs><path class="st0 st0-translate" d="M61.3,103.8c-15.9,0-28.8-12.3-28.8-27.3c0-15,13-27.3,28.8-27.3s28.8,12.3,28.8,27.3 C90.1,91.5,77.2,103.8,61.3,103.8z" data-v-88079d87></path><path class="st1" d="M40.3,356.1C29.5,345,29.8,328,41.5,317.5c11.7-10.5,29.6-9.9,40.7,1.1c11.1,11,10.5,28.1-1.2,38.5 C69.3,367.4,51.1,366.9,40.3,356.1z" data-v-88079d87></path><path class="st2" d="M61.2,396.9c-5.3,9.3-15.3,15.1-26.1,15.1l-0.4,0.6c5.1,9,5.1,20,0,29l0.4,0.6c10.7,0,20.8,5.8,26.1,15.1 c5.3-9.3,15.3-15.1,26.1-15.1c-5.3-9.3-5.3-20.9,0-30.4C76.6,412.1,66.7,406.3,61.2,396.9z" data-v-88079d87></path><text transform="matrix(0.9908 0 0 1 118.0161 171.7975)" class="st3 st4 st5" style="white-space:pre;" data-v-88079d87> Tissue region </text><path class="st6" d="M40.9,231.1c11.3-10.6,29.5-10.6,40.8,0c11.3,10.6,11.3,27.9,0,38.5c-11.3,10.6-29.5,10.6-40.8,0 C29.7,259,29.7,241.7,40.9,231.1z" data-v-88079d87></path><text transform="matrix(0.9908 0 0 1 118.0161 257.675)" class="st3 st4 st5" style="white-space:pre;" data-v-88079d87> Brain nuclei </text><text transform="matrix(0.9908 0 0 1 118.0903 345.5266)" class="st3 st4 st5" style="white-space:pre;" data-v-88079d87> Ganglia </text><text transform="matrix(0.9908 0 0 1 118.0903 433.1613)" class="st3 st4 st5" style="white-space:pre;" data-v-88079d87> Ganglionated nerve plexus </text>',9)]))),t[1]||(t[1]=n.createElementVNode("svg",{width:"72px",height:"72px",viewBox:"0 0 24 24",fill:"yellow"},null,-1))])}const Oy=st(Ey,[["render",Ay],["__scopeId","data-v-88079d87"]]),My=`<div class="flatmap-marker">
|
|
13
13
|
<svg xmlns="http://www.w3.org/2000/svg" width="28" height="39" viewBox="-1 -1 27 42">
|
|
14
14
|
<ellipse style="fill: rgb(0, 0, 0); fill-opacity: 0.2;" cx="12" cy="36" rx="8" ry="4"></ellipse>
|
|
15
15
|
<path d="M12.25.25a12.254 12.254 0 0 0-12 12.494c0 6.444 6.488 12.109 11.059 22.564.549 1.256 1.333 1.256 1.882 0
|
|
@@ -17,17 +17,17 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:i,curr
|
|
|
17
17
|
<circle cx="12.5" cy="12.5" r="9" fill="#fff"></circle>
|
|
18
18
|
<text x="12" y="17.5" style="font-size:14px;fill:#000;text-anchor:middle">2</text>
|
|
19
19
|
</svg>
|
|
20
|
-
</div>`,an=function(e){return e?[...new Set(e.map(t=>JSON.stringify(t)))].map(t=>JSON.parse(t)):[]},ci=[],di=async function(e,t){const o=t.filter(r=>ci.some(s=>s.taxon===r)),i=ci.filter(r=>o.includes(r.taxon)),a=t.filter(r=>!o.includes(r));if(a.length){const r=await e.queryLabels(a);if(r.length)return r.forEach(s=>{let{entity:l,label:c}=s;c==="Mammalia"&&(c="Mammalia not otherwise specified");const d={taxon:l,label:c};i.push(d),ci.push(d)}),i}else return i},fi=function(e,t){if(!e||!t)return!1;let o=JSON.stringify(e),i=JSON.stringify(t);return o.indexOf(i)!==-1},xt=(e,t)=>{const o=e.name??e,i=t.name??t,a=o.toUpperCase(),r=i.toUpperCase();return a<r?-1:a>r?1:0};let Ay=function(){this.initialise=function(e){this.flatmapAPI=e,this.destinations=[],this.origins=[],this.components=[],this.destinationsWithDatasets=[],this.originsWithDatasets=[],this.componentsWithDatasets=[],this.destinationsCombinations=[],this.originsCombinations=[],this.componentsCombinations=[],this.singleConnectivityList=[],this.hasSingleConnectivityList=!1,this.rawURLs=[],this.controller=void 0,this.uberons=[],this.lookUp=[],this.connectivitySource="map",this.noMapConnectivity=!1},this.createTooltipData=async function(e,t){let o=[];t.feature.hyperlinks&&t.feature.hyperlinks.length>0?o=t.feature.hyperlinks:o=this.rawURLs;let i;if(t.provenanceTaxonomy){i=[];try{const r=await di(e,t.provenanceTaxonomy);r.length&&r.forEach(s=>{const{label:l}=s;i.push(l)})}catch(r){console.log(r)}}return{destinations:this.destinations,origins:this.origins,components:this.components,destinationsWithDatasets:this.destinationsWithDatasets,originsWithDatasets:this.originsWithDatasets,componentsWithDatasets:this.componentsWithDatasets,destinationsCombinations:this.destinationsCombinations,originsCombinations:this.originsCombinations,componentsCombinations:this.componentsCombinations,hasSingleConnectivityList:this.singleConnectivityList.length>0,title:t.label,featureId:t.resource,hyperlinks:o,provenanceTaxonomy:t.provenanceTaxonomy,provenanceTaxonomyLabel:i,connectivitySource:this.connectivitySource,noMapConnectivity:this.noMapConnectivity}},this.updateTooltipData=function(e){return{...e,origins:this.origins,originsWithDatasets:this.originsWithDatasets,components:this.components,componentsWithDatasets:this.componentsWithDatasets,destinations:this.destinations,destinationsWithDatasets:this.destinationsWithDatasets,destinationsCombinations:this.destinationsCombinations,originsCombinations:this.originsCombinations,componentsCombinations:this.componentsCombinations,connectivitySource:this.connectivitySource,noMapConnectivity:this.noMapConnectivity}},this.createComponentsLabelList=function(e,t){let o=[];return e.forEach(i=>{o.push(this.createLabelFromNeuralNode(i[0]),t),i.length===2&&o.push(this.createLabelFromNeuralNode(i[1]),t)}),o},this.createLabelLookup=function(e,t){return new Promise(async o=>{let i={};this.uberons=[];const a=await di(e,t);a.length&&(a.forEach(r=>{const{taxon:s,label:l}=r;i[s]=l,this.uberons.push({id:s,name:l})}),o(i))})},this.buildConnectivitySqlStatement=function(e){let t="select knowledge from knowledge where entity in (";if(e.length===1)t+=`'${e[0]}')`;else if(e.length>1)for(let o in e)t+=`'${e[o]}'${o>=e.length-1?")":","} `;return t},this.buildLabelSqlStatement=function(e){let t="select entity, label from labels where entity in (";if(e.length===1)t+=`'${e[0]}')`;else if(e.length>1)for(let o in e)t+=`'${e[o]}'${o>=e.length-1?")":","} `;return t},this.findAllIdsFromConnectivity=function(e){let t=e.connectivity.flat(),o=[...new Set(t)],i=[];return o.forEach(a=>{Array.isArray(a)?i.push(a.flat()):i.push(a)}),[...new Set(i.flat())]},this.flattenConnectivity=function(e){let t=e.flat(),o=[...new Set(t)],i=[];return o.forEach(a=>{Array.isArray(a)?i.push(a.flat()):i.push(a)}),i.flat()},this.findComponents=function(e,t,o,i){let a=e.connectivity.flat(),r=an(a),s=[],l=!1;return r.forEach(c=>{l=!1,fi(t,c)&&(l=!0),i&&fi(i,c)&&(l=!0),fi(o,c)&&(l=!0),l||s.push(c)}),s},this.retrieveFlatmapKnowledgeForEvent=async function(e,t){this.controller&&this.controller.abort(),this.controller=new AbortController,this.controller.signal;const o=t.resource;if(this.destinations=[],this.origins=[],this.components=[],this.destinationsWithDatasets=[],this.originsWithDatasets=[],this.componentsWithDatasets=[],this.destinationsCombinations=[],this.originsCombinations=[],this.componentsCombinations=[],this.singleConnectivityList=[],this.rawURLs=[],!o||o.length===0||!o[0])return;let i=await this.queryForConnectivityNew(e,o[0]);return await Promise.all([i])},this.queryForConnectivityNew=async function(e,t,o="map",i=!0){const a=/^sckan-(\d{4})/.exec(e.knowledgeSource||""),s=(a?Number(a[1]):0)>=2026,l=e.mapMetadata.uuid,c=this.flatmapAPI;return this.connectivitySource=s?"sckan":o,s&&(this.singleConnectivityList=await ut.querySingleConnectivityList(c,l,t)),new Promise(d=>{(this.connectivitySource==="map"?this.queryMapConnectivity(e.mapMetadata.uuid,t):e.queryKnowledge(t)).then(u=>{if(this.checkConnectivityExists(u)){this.connectivitySource==="map"&&(this.noMapConnectivity=!1);let p=u;i?this.processConnectivity(e,p).then(g=>{u.references&&(this.rawURLs=[...u.references]),d(g)}):d(p)}else this.connectivitySource==="map"?(this.connectivitySource="sckan",this.noMapConnectivity=!0,e.queryKnowledge(t).then(p=>{if(this.checkConnectivityExists(p)){let g=p;i?this.processConnectivity(e,g).then(h=>{p.references&&(this.rawURLs=[...p.references]),d(h)}):d(g)}else d(!1)}).catch(()=>d(!1))):d(!1)}).catch(u=>{u.name==="AbortError"||console.warn(`Unable to get the knowledge for the entity ${t}.`),d(!1)})})},this.queryMapConnectivity=async function(e,t){const o=this.flatmapAPI+`flatmap/${e}/connectivity/${t}`;try{const i=await fetch(o);if(!i.ok)throw new Error(`Response status: ${i.status}`);return await i.json()}catch(i){throw new Error(i)}},this.queryForConnectivity=function(e,t,o,i=!0){const a={sql:this.buildConnectivitySqlStatement(t)},r={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a),...o?{signal:o}:{}};return new Promise(s=>{fetch(`${this.flatmapAPI}knowledge/query/`,r).then(l=>l.json()).then(l=>{if(this.connectivityExists(l)){let c=JSON.parse(l.values[0][0]);i?this.processConnectivity(e,c).then(d=>{s(d)}):s(c)}else s(!1)}).catch(l=>{l.name==="AbortError"||console.error("Error:",l),s(!1)})})},this.checkConnectivityExists=function(e){var t;return e&&((t=e.connectivity)==null?void 0:t.length)},this.connectivityExists=function(e){return!!(e.values&&e.values.length>0&&JSON.parse(e.values[0][0]).connectivity&&JSON.parse(e.values[0][0]).connectivity.length>0)},this.findIfNodeIsSingle=function(e){return e.length===1?(console.error("Server returns a single node",e),e[0]):e.length===2&&e[1].length===0?e[0]:!1},this.createLabelFromNeuralNode=function(e,t){let o=this.findIfNodeIsSingle(e);if(o)return t[o];let i=t[e[0]];return e.length===2&&e[1].length>0&&e[1].forEach(a=>{t[a]==null?i+=`, ${a}`:i+=`, ${t[a]}`}),i},this.flattenAndFindDatasets=function(e,t,o){let i=this.flattenConnectivity(e),a=this.flattenConnectivity(t),r=this.flattenConnectivity(o);this.originsWithDatasets=this.uberons.filter(s=>i.indexOf(s.id)!==-1).sort(xt),this.componentsWithDatasets=this.uberons.filter(s=>a.indexOf(s.id)!==-1).sort(xt),this.destinationsWithDatasets=this.uberons.filter(s=>r.indexOf(s.id)!==-1).sort(xt),this.singleConnectivityList.length>0&&this.singleConnectivityList.forEach(s=>{const{sckanNodeId:l,sckanNodeLabel:c,mapNodeId:d,mapNodeLabel:f}=s;o.find(u=>JSON.stringify(u)===JSON.stringify(l))&&(this.destinationsCombinations.push({sckanId:l,sckanLabel:c,mapId:d,mapLabel:f}),d.forEach((u,p)=>{const g=typeof u=="string"?u:u[0];g&&this.destinationsWithDatasets.push({id:g,name:f.split(",")[p]})})),e.find(u=>JSON.stringify(u)===JSON.stringify(l))&&(this.originsCombinations.push({sckanId:l,sckanLabel:c,mapId:d,mapLabel:f}),d.forEach((u,p)=>{const g=typeof u=="string"?u:u[0];g&&this.originsWithDatasets.push({id:g,name:f.split(",")[p]})})),t.find(u=>JSON.stringify(u)===JSON.stringify(l))&&(this.componentsCombinations.push({sckanId:l,sckanLabel:c,mapId:d,mapLabel:f}),d.forEach((u,p)=>{const g=typeof u=="string"?u:u[0];g&&this.componentsWithDatasets.push({id:g,name:f.split(",")[p]})}))})},this.processConnectivity=function(e,t){return new Promise(o=>{let i=[],a=[],r;if(t&&t["node-phenotypes"]){const c=["ilxtr:hasSomaLocatedIn"],d=["ilxtr:hasAxonPresynapticElementIn","ilxtr:hasAxonSensorySubcellularElementIn"];c.forEach(f=>{f in t["node-phenotypes"]&&i.push(...t["node-phenotypes"][f])}),i=an(i),d.forEach(f=>{f in t["node-phenotypes"]&&a.push(...t["node-phenotypes"][f])}),a=an(a)}else a=an(t.axons),t.somas&&t.somas.length>0&&i.push(...t.somas),t.dendrites&&t.dendrites.length>0&&i.push(...t.dendrites),i=an(i),r=t.somas;const s=this.findComponents(t,a,i,r),l=this.findAllIdsFromConnectivity(t);this.createLabelLookup(e,l).then(c=>{this.origins=i.map(d=>this.createLabelFromNeuralNode(d,c)).sort(xt),this.components=s.map(d=>this.createLabelFromNeuralNode(d,c)).sort(xt),this.destinations=a.map(d=>this.createLabelFromNeuralNode(d,c)).sort(xt),this.flattenAndFindDatasets(i,s,a),o({ids:{dendrites:i,components:s,axons:a},labels:{origins:this.origins,components:this.components,destinations:this.destinations}})})})},this.buildPubmedSqlStatement=function(e){let t="select distinct publication from publications where entity in (";if(e.length===1)t+=`'${e[0]}')`;else if(e.length>1)for(let o in e)t+=`'${e[o]}'${o>=e.length-1?")":","} `;return t},this.buildPubmedSqlStatementForModels=function(e){return`select distinct publication from publications where entity = '${e}'`},this.queryKnowledge=async(e,t)=>{const o=`${this.flatmapAPI}knowledge/query/`,a=await fetch(o,{method:"POST",headers:{Accept:"application/json"},body:JSON.stringify({sql:e,params:t})});if(!a.ok)throw new Error(`Cannot access ${o}`);const r=await a.json();if("error"in r)throw new TypeError(r.error);return r.values}};async function Oy(e){const t=sessionStorage.getItem("flatmap-knowledge");if(t){const a=JSON.parse(t).filter(r=>r.references&&r.references.length).filter(r=>r.references.includes(e));if(a.length)return a.map(s=>s.id)}return[]}async function My(e,t,o){const a=`select knowledge from knowledge
|
|
21
|
-
where source="${
|
|
22
|
-
knowledge like "%${t}%" order by source desc`;return(await o.queryKnowledge(a)).map(c=>JSON.parse(c)).map(c=>c.id)}function
|
|
20
|
+
</div>`,an=function(e){return e?[...new Set(e.map(t=>JSON.stringify(t)))].map(t=>JSON.parse(t)):[]},di=[],fi=async function(e,t){const o=t.filter(r=>di.some(s=>s.taxon===r)),i=di.filter(r=>o.includes(r.taxon)),a=t.filter(r=>!o.includes(r));if(a.length){const r=await e.queryLabels(a);if(r.length)return r.forEach(s=>{let{entity:l,label:c}=s;c==="Mammalia"&&(c="Mammalia not otherwise specified");const d={taxon:l,label:c};i.push(d),di.push(d)}),i}else return i},ui=function(e,t){if(!e||!t)return!1;let o=JSON.stringify(e),i=JSON.stringify(t);return o.indexOf(i)!==-1},Bt=(e,t)=>{const o=e.name??e,i=t.name??t,a=o.toUpperCase(),r=i.toUpperCase();return a<r?-1:a>r?1:0};let gs=function(){this.initialise=function(e){this.flatmapAPI=e,this.destinations=[],this.origins=[],this.components=[],this.destinationsWithDatasets=[],this.originsWithDatasets=[],this.componentsWithDatasets=[],this.destinationsCombinations=[],this.originsCombinations=[],this.componentsCombinations=[],this.singleConnectivityList=[],this.hasSingleConnectivityList=!1,this.rawURLs=[],this.controller=void 0,this.uberons=[],this.lookUp=[],this.connectivitySource="map",this.noMapConnectivity=!1},this.createTooltipData=async function(e,t){let o=[];t.feature.hyperlinks&&t.feature.hyperlinks.length>0?o=t.feature.hyperlinks:o=this.rawURLs;let i;if(t.provenanceTaxonomy){i=[];try{const r=await fi(e,t.provenanceTaxonomy);r.length&&r.forEach(s=>{const{label:l}=s;i.push(l)})}catch(r){console.log(r)}}return{destinations:this.destinations,origins:this.origins,components:this.components,destinationsWithDatasets:this.destinationsWithDatasets,originsWithDatasets:this.originsWithDatasets,componentsWithDatasets:this.componentsWithDatasets,destinationsCombinations:this.destinationsCombinations,originsCombinations:this.originsCombinations,componentsCombinations:this.componentsCombinations,hasSingleConnectivityList:this.singleConnectivityList.length>0,title:t.label,featureId:t.resource,hyperlinks:o,provenanceTaxonomy:t.provenanceTaxonomy,provenanceTaxonomyLabel:i,connectivitySource:this.connectivitySource,noMapConnectivity:this.noMapConnectivity}},this.updateTooltipData=function(e){return{...e,origins:this.origins,originsWithDatasets:this.originsWithDatasets,components:this.components,componentsWithDatasets:this.componentsWithDatasets,destinations:this.destinations,destinationsWithDatasets:this.destinationsWithDatasets,destinationsCombinations:this.destinationsCombinations,originsCombinations:this.originsCombinations,componentsCombinations:this.componentsCombinations,connectivitySource:this.connectivitySource,noMapConnectivity:this.noMapConnectivity}},this.createComponentsLabelList=function(e,t){let o=[];return e.forEach(i=>{o.push(this.createLabelFromNeuralNode(i[0]),t),i.length===2&&o.push(this.createLabelFromNeuralNode(i[1]),t)}),o},this.createLabelLookup=function(e,t){return new Promise(async o=>{let i={};this.uberons=[];const a=await fi(e,t);a.length&&(a.forEach(r=>{const{taxon:s,label:l}=r;i[s]=l,this.uberons.push({id:s,name:l})}),o(i))})},this.buildConnectivitySqlStatement=function(e){let t="select knowledge from knowledge where entity in (";if(e.length===1)t+=`'${e[0]}')`;else if(e.length>1)for(let o in e)t+=`'${e[o]}'${o>=e.length-1?")":","} `;return t},this.buildLabelSqlStatement=function(e){let t="select entity, label from labels where entity in (";if(e.length===1)t+=`'${e[0]}')`;else if(e.length>1)for(let o in e)t+=`'${e[o]}'${o>=e.length-1?")":","} `;return t},this.findAllIdsFromConnectivity=function(e){let t=e.connectivity.flat(),o=[...new Set(t)],i=[];return o.forEach(a=>{Array.isArray(a)?i.push(a.flat()):i.push(a)}),[...new Set(i.flat())]},this.flattenConnectivity=function(e){let t=e.flat(),o=[...new Set(t)],i=[];return o.forEach(a=>{Array.isArray(a)?i.push(a.flat()):i.push(a)}),i.flat()},this.findComponents=function(e,t,o,i){let a=e.connectivity.flat(),r=an(a),s=[],l=!1;return r.forEach(c=>{l=!1,ui(t,c)&&(l=!0),i&&ui(i,c)&&(l=!0),ui(o,c)&&(l=!0),l||s.push(c)}),s},this.retrieveFlatmapKnowledgeForEvent=async function(e,t){this.controller&&this.controller.abort(),this.controller=new AbortController,this.controller.signal;const o=t.resource;if(this.destinations=[],this.origins=[],this.components=[],this.destinationsWithDatasets=[],this.originsWithDatasets=[],this.componentsWithDatasets=[],this.destinationsCombinations=[],this.originsCombinations=[],this.componentsCombinations=[],this.singleConnectivityList=[],this.rawURLs=[],!o||o.length===0||!o[0])return;let i=await this.queryForConnectivityNew(e,o[0]);return await Promise.all([i])},this.queryForConnectivityNew=async function(e,t,o="map",i=!0){const a=/^sckan-(\d{4})/.exec(e.knowledgeSource||""),s=(a?Number(a[1]):0)>=2026,l=e.mapMetadata.uuid,c=this.flatmapAPI;return this.connectivitySource=s?"sckan":o,s&&(this.singleConnectivityList=await ut.querySingleConnectivityList(c,l,t)),new Promise(d=>{(this.connectivitySource==="map"?this.queryMapConnectivity(e.mapMetadata.uuid,t):e.queryKnowledge(t)).then(u=>{if(this.checkConnectivityExists(u)){this.connectivitySource==="map"&&(this.noMapConnectivity=!1);let p=u;i?this.processConnectivity(e,p).then(g=>{u.references&&(this.rawURLs=[...u.references]),d(g)}):d(p)}else this.connectivitySource==="map"?(this.connectivitySource="sckan",this.noMapConnectivity=!0,e.queryKnowledge(t).then(p=>{if(this.checkConnectivityExists(p)){let g=p;i?this.processConnectivity(e,g).then(h=>{p.references&&(this.rawURLs=[...p.references]),d(h)}):d(g)}else d(!1)}).catch(()=>d(!1))):d(!1)}).catch(u=>{u.name==="AbortError"||console.warn(`Unable to get the knowledge for the entity ${t}.`),d(!1)})})},this.queryMapConnectivity=async function(e,t){const o=this.flatmapAPI+`flatmap/${e}/connectivity/${t}`;try{const i=await fetch(o);if(!i.ok)throw new Error(`Response status: ${i.status}`);return await i.json()}catch(i){throw new Error(i)}},this.queryForConnectivity=function(e,t,o,i=!0){const a={sql:this.buildConnectivitySqlStatement(t)},r={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a),...o?{signal:o}:{}};return new Promise(s=>{fetch(`${this.flatmapAPI}knowledge/query/`,r).then(l=>l.json()).then(l=>{if(this.connectivityExists(l)){let c=JSON.parse(l.values[0][0]);i?this.processConnectivity(e,c).then(d=>{s(d)}):s(c)}else s(!1)}).catch(l=>{l.name==="AbortError"||console.error("Error:",l),s(!1)})})},this.checkConnectivityExists=function(e){var t;return e&&((t=e.connectivity)==null?void 0:t.length)},this.connectivityExists=function(e){return!!(e.values&&e.values.length>0&&JSON.parse(e.values[0][0]).connectivity&&JSON.parse(e.values[0][0]).connectivity.length>0)},this.findIfNodeIsSingle=function(e){return e.length===1?(console.error("Server returns a single node",e),e[0]):e.length===2&&e[1].length===0?e[0]:!1},this.createLabelFromNeuralNode=function(e,t){let o=this.findIfNodeIsSingle(e);if(o)return t[o];let i=t[e[0]];return e.length===2&&e[1].length>0&&e[1].forEach(a=>{t[a]==null?i+=`, ${a}`:i+=`, ${t[a]}`}),i},this.flattenAndFindDatasets=function(e,t,o){let i=this.flattenConnectivity(e),a=this.flattenConnectivity(t),r=this.flattenConnectivity(o);this.originsWithDatasets=this.uberons.filter(s=>i.indexOf(s.id)!==-1).sort(Bt),this.componentsWithDatasets=this.uberons.filter(s=>a.indexOf(s.id)!==-1).sort(Bt),this.destinationsWithDatasets=this.uberons.filter(s=>r.indexOf(s.id)!==-1).sort(Bt),this.singleConnectivityList.length>0&&this.singleConnectivityList.forEach(s=>{const{sckanNodeId:l,sckanNodeLabel:c,mapNodeId:d,mapNodeLabel:f}=s;o.find(u=>JSON.stringify(u)===JSON.stringify(l))&&(this.destinationsCombinations.push({sckanId:l,sckanLabel:c,mapId:d,mapLabel:f}),d.forEach((u,p)=>{const g=typeof u=="string"?u:u[0];g&&this.destinationsWithDatasets.push({id:g,name:f.split(",")[p]})})),e.find(u=>JSON.stringify(u)===JSON.stringify(l))&&(this.originsCombinations.push({sckanId:l,sckanLabel:c,mapId:d,mapLabel:f}),d.forEach((u,p)=>{const g=typeof u=="string"?u:u[0];g&&this.originsWithDatasets.push({id:g,name:f.split(",")[p]})})),t.find(u=>JSON.stringify(u)===JSON.stringify(l))&&(this.componentsCombinations.push({sckanId:l,sckanLabel:c,mapId:d,mapLabel:f}),d.forEach((u,p)=>{const g=typeof u=="string"?u:u[0];g&&this.componentsWithDatasets.push({id:g,name:f.split(",")[p]})}))})},this.processConnectivity=function(e,t){return new Promise(o=>{let i=[],a=[],r;if(t&&t["node-phenotypes"]){const c=["ilxtr:hasSomaLocatedIn"],d=["ilxtr:hasAxonPresynapticElementIn","ilxtr:hasAxonSensorySubcellularElementIn"];c.forEach(f=>{f in t["node-phenotypes"]&&i.push(...t["node-phenotypes"][f])}),i=an(i),d.forEach(f=>{f in t["node-phenotypes"]&&a.push(...t["node-phenotypes"][f])}),a=an(a)}else a=an(t.axons),t.somas&&t.somas.length>0&&i.push(...t.somas),t.dendrites&&t.dendrites.length>0&&i.push(...t.dendrites),i=an(i),r=t.somas;const s=this.findComponents(t,a,i,r),l=this.findAllIdsFromConnectivity(t);this.createLabelLookup(e,l).then(c=>{this.origins=i.map(d=>this.createLabelFromNeuralNode(d,c)).sort(Bt),this.components=s.map(d=>this.createLabelFromNeuralNode(d,c)).sort(Bt),this.destinations=a.map(d=>this.createLabelFromNeuralNode(d,c)).sort(Bt),this.flattenAndFindDatasets(i,s,a),o({ids:{dendrites:i,components:s,axons:a},labels:{origins:this.origins,components:this.components,destinations:this.destinations}})})})},this.buildPubmedSqlStatement=function(e){let t="select distinct publication from publications where entity in (";if(e.length===1)t+=`'${e[0]}')`;else if(e.length>1)for(let o in e)t+=`'${e[o]}'${o>=e.length-1?")":","} `;return t},this.buildPubmedSqlStatementForModels=function(e){return`select distinct publication from publications where entity = '${e}'`},this.queryKnowledge=async(e,t)=>{const o=`${this.flatmapAPI}knowledge/query/`,a=await fetch(o,{method:"POST",headers:{Accept:"application/json"},body:JSON.stringify({sql:e,params:t})});if(!a.ok)throw new Error(`Cannot access ${o}`);const r=await a.json();if("error"in r)throw new TypeError(r.error);return r.values}};async function By(e){const t=sessionStorage.getItem("flatmap-knowledge");if(t){const a=JSON.parse(t).filter(r=>r.references&&r.references.length).filter(r=>r.references.includes(e));if(a.length)return a.map(s=>s.id)}return[]}async function xy(e,t,o){const a=`select knowledge from knowledge
|
|
21
|
+
where source="${Jn(e)}" and
|
|
22
|
+
knowledge like "%${t}%" order by source desc`;return(await o.queryKnowledge(a)).map(c=>JSON.parse(c)).map(c=>c.id)}function Jn(e){return ys(e.mapMetadata)}function ys(e){let t="";if(e!=null&&e.connectivity){const o=e.connectivity;"knowledge-source"in o?t=o["knowledge-source"]:"npo"in o&&(t=`${o.npo.release}-npo`)}return t}async function bs(e,t){const o=Jn(e),i=`select knowledge from knowledge
|
|
23
23
|
where source="${o}"
|
|
24
|
-
order by source desc`;ms();const a=sessionStorage.getItem("flatmap-knowledge"),r=sessionStorage.getItem("flatmap-knowledge-source");if(!a||r!==o){const l=(await t.queryKnowledge(i)).map(c=>JSON.parse(c));return sessionStorage.setItem("flatmap-knowledge",JSON.stringify(l)),sessionStorage.setItem("flatmap-knowledge-source",o),Ny(),l}return JSON.parse(a)}function Ny(){const o=new Date().getTime()+864e5;sessionStorage.setItem("flatmap-knowledge-expiry",o)}function _y(){["flatmap-knowledge","flatmap-knowledge-expiry","flatmap-knowledge-source"].forEach(t=>{sessionStorage.removeItem(t)})}function ms(){const e=sessionStorage.getItem("flatmap-knowledge-expiry");new Date().getTime()>e&&_y()}const Gn=e=>e&&e.charAt(0).toUpperCase()+e.slice(1),Ly='<svg width="195px" height="24px" viewBox="0 0 200 24" fill="yellow"><path d="M22.0748 3.25583C22.4141 2.42845 23.5859 2.42845 23.9252 3.25583L25.6493 7.45955C25.793 7.80979 26.1221 8.04889 26.4995 8.07727L31.0303 8.41798C31.922 8.48504 32.2841 9.59942 31.6021 10.1778L28.1369 13.1166C27.8482 13.3614 27.7225 13.7483 27.8122 14.1161L28.8882 18.5304C29.1 19.3992 28.152 20.0879 27.3912 19.618L23.5255 17.2305C23.2034 17.0316 22.7966 17.0316 22.4745 17.2305L18.60881 19.618C17.84796 20.0879 16.9 19.3992 17.1118 18.5304L18.18785 14.1161C18.2775 13.7483 18.1518 13.3614 17.86309 13.1166L14.3979 10.1778C13.71588 9.59942 14.07796 8.48504 14.96971 8.41798L19.50046 8.07727C19.87794 8.04889 20.20704 7.80979 20.35068 7.45955L22.0748 3.25583Z" stroke="#000000" stroke-width="2"/><text x="47" y="52%" style="white-space: pre" dominant-baseline="middle" text-anchor="start" font-family="Asap, sans-serif" font-size="12" fill="#333333">Featured dataset marker</text></svg>';var gs={exports:{}};(function(e,t){(function(o,i){e.exports=i()})(typeof window<"u"?window:pm,function(){if(typeof window>"u")return null;var o=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")(),i=o.requestAnimationFrame||o.mozRequestAnimationFrame||o.webkitRequestAnimationFrame||function(f){return o.setTimeout(f,20)},a=o.cancelAnimationFrame||o.mozCancelAnimationFrame||o.webkitCancelAnimationFrame||function(f){o.clearTimeout(f)};function r(f,u){var p=Object.prototype.toString.call(f),g=p==="[object Array]"||p==="[object NodeList]"||p==="[object HTMLCollection]"||p==="[object Object]"||typeof jQuery<"u"&&f instanceof jQuery||typeof Elements<"u"&&f instanceof Elements,h=0,m=f.length;if(g)for(;h<m;h++)u(f[h]);else u(f)}function s(f){if(!f.getBoundingClientRect)return{width:f.offsetWidth,height:f.offsetHeight};var u=f.getBoundingClientRect();return{width:Math.round(u.width),height:Math.round(u.height)}}function l(f,u){Object.keys(u).forEach(function(p){f.style[p]=u[p]})}var c=function(f,u){var p=0;function g(){var m=[];this.add=function(C){m.push(C)};var y,b;this.call=function(C){for(y=0,b=m.length;y<b;y++)m[y].call(this,C)},this.remove=function(C){var I=[];for(y=0,b=m.length;y<b;y++)m[y]!==C&&I.push(m[y]);m=I},this.length=function(){return m.length}}function h(m,y){if(m){if(m.resizedAttached){m.resizedAttached.add(y);return}m.resizedAttached=new g,m.resizedAttached.add(y),m.resizeSensor=document.createElement("div"),m.resizeSensor.dir="ltr",m.resizeSensor.className="resize-sensor";var b={pointerEvents:"none",position:"absolute",left:"0px",top:"0px",right:"0px",bottom:"0px",overflow:"hidden",zIndex:"-1",visibility:"hidden",maxWidth:"100%"},C={position:"absolute",left:"0px",top:"0px",transition:"0s"};l(m.resizeSensor,b);var I=document.createElement("div");I.className="resize-sensor-expand",l(I,b);var k=document.createElement("div");l(k,C),I.appendChild(k);var v=document.createElement("div");v.className="resize-sensor-shrink",l(v,b);var S=document.createElement("div");l(S,C),l(S,{width:"200%",height:"200%"}),v.appendChild(S),m.resizeSensor.appendChild(I),m.resizeSensor.appendChild(v),m.appendChild(m.resizeSensor);var E=window.getComputedStyle(m),O=E?E.getPropertyValue("position"):null;O!=="absolute"&&O!=="relative"&&O!=="fixed"&&O!=="sticky"&&(m.style.position="relative");var x=!1,N=0,B=s(m),T=0,L=0,q=!0;p=0;var V=function(){var Z=m.offsetWidth,ce=m.offsetHeight;k.style.width=Z+10+"px",k.style.height=ce+10+"px",I.scrollLeft=Z+10,I.scrollTop=ce+10,v.scrollLeft=Z+10,v.scrollTop=ce+10},M=function(){if(q){var Z=m.offsetWidth===0&&m.offsetHeight===0;if(Z){p||(p=i(function(){p=0,M()}));return}else q=!1}V()};m.resizeSensor.resetSensor=M;var $=function(){N=0,x&&(T=B.width,L=B.height,m.resizedAttached&&m.resizedAttached.call(B))},pe=function(){B=s(m),x=B.width!==T||B.height!==L,x&&!N&&(N=i($)),M()},Y=function(Z,ce,Ee){Z.attachEvent?Z.attachEvent("on"+ce,Ee):Z.addEventListener(ce,Ee)};Y(I,"scroll",pe),Y(v,"scroll",pe),p=i(function(){p=0,M()})}}r(f,function(m){h(m,u)}),this.detach=function(m){p||(a(p),p=0),c.detach(f,m)},this.reset=function(){f.resizeSensor.resetSensor()}};if(c.reset=function(f){r(f,function(u){u.resizeSensor.resetSensor()})},c.detach=function(f,u){r(f,function(p){p&&(p.resizedAttached&&typeof u=="function"&&(p.resizedAttached.remove(u),p.resizedAttached.length())||p.resizeSensor&&(p.contains(p.resizeSensor)&&p.removeChild(p.resizeSensor),delete p.resizeSensor,delete p.resizedAttached))})},typeof MutationObserver<"u"){var d=new MutationObserver(function(f){for(var u in f)if(f.hasOwnProperty(u))for(var p=f[u].addedNodes,g=0;g<p.length;g++)p[g].resizeSensor&&c.reset(p[g])});document.addEventListener("DOMContentLoaded",function(f){d.observe(document.body,{childList:!0,subtree:!0})})}return c})})(gs);var Py=gs.exports;const Vy=hm(Py),Ry=Ci.defineStore("main",{state:()=>({userProfile:{token:""}}),getters:{userToken(e){return e.userProfile.token}},actions:{setUserToken(e){this.userProfile.token=e}}});function Fy(e){return{all:e=e||new Map,on:function(t,o){var i=e.get(t);i?i.push(o):e.set(t,[o])},off:function(t,o){var i=e.get(t);i&&(o?i.splice(i.indexOf(o)>>>0,1):e.set(t,[]))},emit:function(t,o){var i=e.get(t);i&&i.slice().map(function(a){a(o)}),(i=e.get("*"))&&i.slice().map(function(a){a(t,o)})}}}const pi=new Fy,Dy="cannot be found on the map.",$y=e=>{let t={lng:0,lat:0},o;return e.type==="Polygon"?e.coordinates.length&&(o=e.coordinates[0]):o=e.coordinates,o&&(e.type!=="Point"?(o.map(i=>{t.lng+=parseFloat(i[0]),t.lat+=parseFloat(i[1])}),t.lng=t.lng/o.length,t.lat=t.lat/o.length):(t.lng+=parseFloat(o[0]),t.lat+=parseFloat(o[1]))),t},ys=(e,t)=>{const o=[];let i=e.organs?e.organs:e.ftus;const a=i?i.filter((r,s)=>i.findIndex(l=>l.label===r.label)===s):void 0;return a&&a.forEach(r=>{const s={label:r.label,models:r.models,key:`${t}.${r.label}`},l=ys(r,s.key);l.length>0&&(s.children=l),o.push(s)}),o},zy={name:"FlatmapVuer",components:{Button:ei,Col:nn,Loading:Jg,Radio:ns,Icon:be,RadioGroup:os,Row:tn,Select:Un,Dialog:hg,MapSvgIcon:wi.MapSvgIcon,MapSvgSpriteColor:wi.MapSvgSpriteColor,Tooltip:ut.Tooltip,TreeControls:ut.TreeControls,SelectionsGroup:ps,SvgLegends:Iy,ElIconWarningFilled:W.WarningFilled,ElIconArrowDown:W.ArrowDown,ElIconArrowLeft:W.ArrowLeft,DrawToolbar:ut.DrawToolbar,FlatmapError:li},beforeCreate:function(){this.setStateRequired=!1},setup(e){let t=n.inject("$annotator");return t||(t=n.markRaw(new Ts.AnnotationService(`${e.flatmapAPI}annotator`)),n.provide("$annotator",t)),{annotator:t}},methods:{enableFeatureResetOnClick:function(e){this.mapImp&&this.mapImp.enableFeatureResetOnClick(e)},setVisibilityFilter:function(e){this.mapImp&&(this.mapImp.contextLost?e?this.filterToRestore=n.markRaw(JSON.parse(JSON.stringify(e))):this.filterToRestore=void 0:(e?this.mapImp.setVisibilityFilter(e):this.mapImp.clearVisibilityFilter(),this.filterToRestore=void 0))},manualAbortedOnClose:function(){this.annotationSidebar&&this.$emit("annotation-close"),this.closeTooltip(),this.annotationEventCallback({},{type:"aborted"}),this.initialiseDrawing()},initialiseDrawing:function(){this.connectionEntry={},this.activeDrawTool=void 0,this.activeDrawMode=void 0,this.drawnCreatedEvent={}},cancelDrawnFeature:function(){this.isValidDrawnCreated&&(this.annotationSidebar&&this.$emit("annotation-close"),this.closeTooltip(),this.annotationEntry=[{...this.drawnCreatedEvent.feature,resourceId:this.serverURL}],this.rollbackAnnotationEvent(),this.initialiseDrawing())},connectedFeatureTooltip:function(e){if(this.mapImp)if(e){const t=Number(e);let i={feature:t?this.mapImp.featureProperties(t):{feature:this.existDrawnFeatures.find(a=>a.id===e.trim())}};this.checkAndCreatePopups([i],!1)}else this.closeTooltip()},confirmDrawnFeature:function(){this.isValidDrawnCreated&&(this.checkAndCreatePopups([this.drawnCreatedEvent],!1),Object.keys(this.connectionEntry).length>0&&(this.annotationEntry[0].feature.connection=this.connectionEntry),this.initialiseDrawing())},toolbarEvent:function(e,t){if(!this.isValidDrawnCreated){if(this.manualAbortedOnClose(),this.doubleClickedFeature=!1,this.changeAnnotationDrawMode({mode:"simple_select"}),e==="mode")this.activeDrawMode=t;else if(e==="tool"){if(this.cancelDrawnFeature(),t){const o=t.replace(/[A-Z]/g,i=>`_${i.toLowerCase()}`);this.changeAnnotationDrawMode({mode:`draw${o}`})}this.activeDrawTool=t}}},annotationDrawModeEvent:function(e){this.activeDrawMode==="Edit"?this.doubleClickedFeature&&(e.feature.feature.geometry.type!=="Point"&&(this.changeAnnotationDrawMode({mode:"direct_select",options:{featureId:e.feature.feature.id}}),this.modifyAnnotationFeature()),this.doubleClickedFeature=!1):this.activeDrawMode==="Delete"&&(this.changeAnnotationDrawMode({mode:"simple_select",options:{featureIds:[e.feature.feature.id]}}),this.modifyAnnotationFeature())},createConnectivityBody:function(){if(Object.keys(this.connectionEntry).length>0){const e=Object.values(this.connectionEntry),t={type:"connectivity",source:e[0],target:e[e.length-1],intermediates:e.filter((o,i)=>i!==0&&i!==e.length-1)};this.annotationEntry[0].body=t}},changeAnnotationDrawMode:function(e){this.mapImp&&this.mapImp.changeAnnotationDrawMode(e)},clearAnnotationFeature:function(){this.mapImp&&this.mapImp.clearAnnotationFeature()},forceContextLoss:function(){this.mapImp&&!this.mapImp.contextLost&&!this.loading&&this.mapImp.forceContextLoss()},forceContextRestore:function(){this.mapImp&&(this.flatmapError=null,this.mapImp.forceContextRestore())},modifyAnnotationFeature:function(){this.mapImp&&this.mapImp.removeAnnotationFeature()},rollbackAnnotationEvent:function(){this.mapImp&&this.annotationEntry.length>0&&["created","updated","deleted"].includes(this.annotationEntry[0].type)&&(this.mapImp.rollbackAnnotationEvent(this.annotationEntry[0]),this.annotationEntry=[])},commitAnnotationEvent:function(e){this.mapImp&&(this.offlineAnnotationEnabled&&(this.offlineAnnotations=JSON.parse(sessionStorage.getItem("anonymous-annotation"))||[],this.offlineAnnotations.push(e),this.annotationEntry[0].type==="deleted"&&(this.offlineAnnotations=this.offlineAnnotations.filter(t=>t.resource!==this.serverURL||t.item.id!==e.item.id)),sessionStorage.setItem("anonymous-annotation",JSON.stringify(this.offlineAnnotations))),["created","updated","deleted"].includes(this.annotationEntry[0].type)&&(this.featureAnnotationSubmitted=!0,this.mapImp.commitAnnotationEvent(this.annotationEntry[0]),e.body.comment==="Position Updated"?this.annotationEntry[0].positionUpdated=!1:this.annotationEntry[0].type==="deleted"&&(this.annotationSidebar&&this.$emit("annotation-close"),this.closeTooltip(),this.annotationEntry=[]),this.addAnnotationFeature()))},fetchAnnotatedItemIds:async function(e=void 0,t=void 0){let o;return this.offlineAnnotationEnabled?(this.offlineAnnotations=JSON.parse(sessionStorage.getItem("anonymous-annotation"))||[],o=this.offlineAnnotations.filter(i=>i.resource===this.serverURL).map(i=>i.item.id)):(o=await this.annotator.annotatedItemIds(this.userToken,this.serverURL,e,t),"resource"in o&&(o=o.itemIds)),o},setFeatureAnnotated:async function(){if(this.mapImp){const e=await this.fetchAnnotatedItemIds();for(const t of e)this.mapImp.setFeatureAnnotated(t)}},fetchDrawnFeatures:async function(e,t){let o;if(this.offlineAnnotationEnabled)this.offlineAnnotations=JSON.parse(sessionStorage.getItem("anonymous-annotation"))||[],o=this.offlineAnnotations.filter(i=>i.feature&&i.resource===this.serverURL).map(i=>i.feature);else{const i=await this.fetchAnnotatedItemIds(e,t);o=await this.annotator.drawnFeatures(this.userToken,this.serverURL,i),"resource"in o&&(o=o.features)}return o},addAnnotationFeature:async function(){if(this.mapImp){this.featureAnnotationSubmitted||(this.clearAnnotationFeature(),this.loading=!0);const e=this.annotationFrom==="Anyone"?void 0:this.authorisedUser.orcid?this.authorisedUser.orcid:"0000-0000-0000-0000",t=this.annotationFrom==="Anyone"?void 0:this.annotationFrom==="Me",o=await this.fetchDrawnFeatures(e,t);if(this.existDrawnFeatures=o,this.loading=!1,!this.featureAnnotationSubmitted)for(const i of o)this.mapImp.addAnnotationFeature(i)}},showAnnotator:function(e){this.mapImp&&(this.mapImp.showAnnotator(e),this.$el.querySelector(".maplibregl-ctrl-group").style.display="none")},setAnnotationFrom:function(e){this.annotationFrom=e,this.mapImp&&(this.manualAbortedOnClose(),this.addAnnotationFeature())},emitOfflineAnnotationUpdate:function(){this.$emit("update-offline-annotation-enabled",this.offlineAnnotationEnabled)},setFlightPath3D:function(e){this.flightPath3DRadio=e,this.mapImp&&this.mapImp.enableFlightPaths(e)},viewLatestMap:function(){let e=this.biologicalSex?this.biologicalSex:void 0;this.entry==="NCBITaxon:9606"&&(e="PATO:0000384");const t={entry:this.entry,biologicalSex:e,viewport:this.mapImp.getState()};this.$emit("view-latest-map",t)},backgroundChangeCallback:function(e){this.currentBackground=e,this.mapImp&&this.mapImp.setBackgroundColour(this.currentBackground,1)},processSystems:function(e){if(this.systems.length=0,e&&e.length>0){const t={label:"All",key:"All",children:[]};e.forEach(o=>{const i={colour:o.colour,enabled:o.enabled,label:o.id,key:o.id},a=ys(o,i.key);a.length>0&&(i.children=a),t.children.push(i)}),this.systems.push(t)}},processTaxon:function(e,t){this.taxonConnectivity.length=0,di(this.mapImp,e).then(o=>{o.length&&o.forEach(i=>{let a=!0;t&&(a=t.checkAll?!0:t.checked.includes(i.taxon)),this.taxonConnectivity.push({...i,enabled:a}),this.mapImp&&this.mapImp.enableConnectivityByTaxonIds(i.taxon,a)})})},toggleDrawer:function(){this.drawerOpen=!this.drawerOpen},setColour:function(e){this.colourRadio=e,this.mapImp&&this.mapImp.setPaint({coloured:e,outlined:this.outlinesRadio})},setOutlines:function(e){this.outlinesRadio=e,this.mapImp&&this.mapImp.setPaint({coloured:this.colourRadio,outlined:e})},setInitMapState:function(){if(this.mapImp){const e=this.mapImp.map,t=this.mapImp.options.bounds,o=[[t[0],t[1]],[t[2],t[3]]];e.setMaxBounds(null),e.setRenderWorldCopies(!1),this.initMapState=n.markRaw({initBounds:o})}},resetView:function(){if(this.mapImp){const e=this.mapImp.map,{initBounds:t}=this.initMapState;e.resetNorthPitch({animate:!1}),t&&e.fitBounds(t,{animate:!1}),this.$refs.skcanSelection&&this.$refs.skcanSelection.reset(),this.$refs.layersSelection&&this.$refs.layersSelection.reset(),this.$refs.systemsSelection&&this.$refs.pathwaysSelection.reset(),this.$refs.pathwaysSelection&&this.$refs.pathwaysSelection.reset()}},zoomIn:function(){this.mapImp&&this.mapImp.zoomIn()},zoomOut:function(){this.mapImp&&this.mapImp.zoomOut()},onSelectionsDataChanged:function(e){this.$emit("pathway-selection-changed",e)},sckanSelected:function(e){this.mapImp&&this.mapImp.enableSckanPath(e.key,e.value)},checkAllSCKAN:function(e){this.mapImp&&e.keys.forEach(t=>this.mapImp.enableSckanPath(t,e.value))},zoomToFeatures:function(e){this.mapImp&&this.mapImp.zoomToFeatures(e)},retrieveConnectedPaths:async function(e,t={}){var o,i,a,r,s;if(this.mapImp){let l=[],c=(o=t.target)!=null&&o.length?t.target:[];const d=[...this.mapImp.pathModelNodes(e)],f=await this.mapImp.queryPathsForFeatures(e);if(d.length){if(!c.length){const u=(i=t.type)!=null&&i.length?t.type:["all"],p=await this.flatmapQueries.queryForConnectivityNew(this.mapImp,e[0]),g=(a=p==null?void 0:p.ids)==null?void 0:a.dendrites.flat(1/0),h=(r=p==null?void 0:p.ids)==null?void 0:r.components.flat(1/0),m=(s=p==null?void 0:p.ids)==null?void 0:s.axons.flat(1/0);let y=[];u.includes("origins")&&y.push(...g),u.includes("components")&&y.push(...h),u.includes("destinations")&&y.push(...m),u.includes("all")&&y.push(...g,...h,...m),c=[...new Set(y)]}d.forEach(u=>{this.mapImp.nodePathModels(u).forEach(g=>{const m=this.mapImp.pathModelNodes(g).map(b=>this.mapImp.featureProperties(b).models);c.filter(b=>m.includes(b)).length&&!l.includes(g)&&l.push(g)})})}else f.length&&(c.length?f.forEach(u=>{const g=this.mapImp.pathModelNodes(u).map(m=>this.mapImp.featureProperties(m).models);c.filter(m=>g.includes(m)).length&&!l.includes(u)&&l.push(u)}):l=f);return l=[...new Set([...l,...e])],l}},resetMapFilter:function(){const e=this.mapFilters.alert;let t;const o={"tile-layer":"pathways"},i={NOT:o};e.with&&!e.without?t={OR:[i,{AND:[o,{HAS:"alert"}]}]}:!e.with&&e.without?t={OR:[i,{AND:[o,{NOT:{HAS:"alert"}}]}]}:!e.with&&!e.without&&(t=i),this.setVisibilityFilter(t)},alertMouseEnterEmitted:function(e){if(this.mapImp)if(e.value){let t;const o={"tile-layer":"pathways"},i={NOT:o};if(e.key==="alert"||e.key==="withoutAlert"){const a=e.key==="alert"?{HAS:"alert"}:{NOT:{HAS:"alert"}};t={OR:[i,{AND:[o,a]}]}}this.setVisibilityFilter(t)}else this.resetMapFilter()},alertSelected:function(e){this.mapImp&&(e.key==="alert"?e.value?this.mapFilters.alert.with=!0:this.mapFilters.alert.with=!1:e.key==="withoutAlert"&&(e.value?this.mapFilters.alert.without=!0:this.mapFilters.alert.without=!1),this.resetMapFilter())},checkAllAlerts:function(e){this.mapImp&&(e.value?(this.mapFilters.alert.without=!0,this.mapFilters.alert.with=!0):(this.mapFilters.alert.without=!1,this.mapFilters.alert.with=!1),this.resetMapFilter())},systemSelected:function(e){this.mapImp&&this.mapImp.enableSystem(e.key,e.value)},checkAllSystems:function(e){this.mapImp&&this.systems[0].children.forEach(t=>this.mapImp.enableSystem(t.label,e))},ftuSelected:function(e){this.searchAndShowResult(e,!0,!0)},layersSelected:function(e){this.mapImp&&this.mapImp.enableLayer(e.key,e.value)},checkAllLayers:function(e){this.mapImp&&e.keys.forEach(t=>this.mapImp.enableLayer(t,e.value))},taxonsSelected:function(e){this.mapImp&&this.mapImp.enableConnectivityByTaxonIds(e.key,e.value)},taxonMouseEnterEmitted:function(e){if(this.mapImp)if(e.value){clearTimeout(this.taxonLeaveDelay);let t=this.mapImp.taxonFeatureIds(e.key);this.mapImp.enableConnectivityByTaxonIds(e.key,e.value),this.mapImp.zoomToGeoJSONFeatures(t,{noZoomIn:!0})}else this.taxonLeaveDelay=setTimeout(()=>{this.mapImp.unselectGeoJSONFeatures(),e.selections.forEach(t=>{let o=e.checked.includes(t.taxon);this.mapImp.enableConnectivityByTaxonIds(t.taxon,o)})},1e3)},checkAllTaxons:function(e){this.mapImp&&this.mapImp.enableConnectivityByTaxonIds(e.keys,e.value)},pathwaysSelected:function(e){this.mapImp&&this.mapImp.enablePath(e.key,e.value)},checkAllPathways:function(e){this.mapImp&&e.keys.forEach(t=>this.mapImp.enablePath(t,e.value))},enablePanZoomEvents:function(e){this.mapImp.enablePanZoomEvents(e)},annotationEventCallback:function(e,t){if(t.type==="aborted")this.featureAnnotationSubmitted?this.featureAnnotationSubmitted=!1:this.rollbackAnnotationEvent(),this.annotationEntry=[];else if(t.type==="modeChanged")t.feature.mode==="direct_select"&&(this.doubleClickedFeature=!0),this.annotationSidebar&&t.feature.mode==="simple_select"&&this.activeDrawMode==="Deleted"&&this.annotationEventCallback({},{type:"aborted"});else if(t.type==="selectionChanged"){if(this.selectedDrawnFeature=t.feature.features.length===0?void 0:t.feature.features[0],e.feature.feature=this.selectedDrawnFeature,!this.activeDrawTool)if(this.connectionEntry={},this.selectedDrawnFeature){const o=this.existDrawnFeatures.find(i=>i.id===this.selectedDrawnFeature.id);o&&o.connection&&(this.connectionEntry=o.connection),this.annotationDrawModeEvent(e)}else this.annotationSidebar&&this.previousEditEvent.type==="updated"&&(this.annotationEntry=[{...this.previousEditEvent,resourceId:this.serverURL}],this.annotationEventCallback({},{type:"aborted"})),this.previousEditEvent={}}else{if(t.type==="created"||t.type==="updated"){t.type==="updated"&&t.feature.action&&(t.positionUpdated=t.feature.action==="move");const o=this.mapImp.refreshAnnotationFeatureGeometry(t.feature);e.feature.feature=o}t.type==="created"?this.drawnCreatedEvent=e:this.checkAndCreatePopups([e])}t.type==="updated"&&(this.previousEditEvent=t),t.type==="deleted"?this.previousDeletedEvent=t:this.previousDeletedEvent={}},getTaxons:function(e){let t;return e.taxons&&(typeof e.taxons!="object"?t=JSON.parse(e.taxons):t=e.taxons),t},eventCallback:function(){return(e,t,...o)=>{if(e==="annotation"){const i={feature:t,userData:o,eventType:e};this.annotationEventCallback(i,t)}else if(e==="context-lost")this.onContextLost();else if(e==="context-restored")this.onContextRestored();else if(e==="pan-zoom")this.$emit("pan-zoom-callback",t);else{const i=t.label,a=[t.models],r=this.entry,s=this.biologicalSex,l=t.alert,c=this.getTaxons(t);let d=[{dataset:t.dataset,biologicalSex:s,taxonomy:r,resource:a,label:i,feature:t,userData:o,eventType:e,provenanceTaxonomy:c,alert:l}];if(e==="click"){const f=!t[0];if(!f){d=[];const p=t.mapUUID,g=new Set;for(let[h,m]of Object.entries(t))if(h!=="mapUUID"){const y=m.featureId,b=m.label,C=[m.models],I=this.getTaxons(m);if(g.has(y))continue;g.add(y),d.push({dataset:m.dataset,biologicalSex:s,taxonomy:r,resource:C,label:b,feature:m,userData:o,eventType:e,provenanceTaxonomy:I,alert:m.alert,mapUUID:p})}}const u=f?t:t[0];if(this.setConnectivityDataSource(this.viewingMode,u),this.viewingMode!=="Neuron Connection"){if(this.currentActive=u.models?u.models:"",this.activeDrawTool&&!this.isValidDrawnCreated){const p=u.featureId||this.existDrawnFeatures.find(g=>g.id===u.id);if(this.activeDrawTool==="LineString"&&p){const g=u.featureId?u.featureId:u.id,h=u.label?u.label:`Feature ${u.id}`;this.connectionEntry[` ${g}`]=Object.assign({label:h},Object.fromEntries(Object.entries(u).filter(([m])=>["featureId","models"].includes(m)).map(([m,y])=>[m==="featureId"?"id":m,y])))}}}t&&t.type!=="marker"&&!this.activeDrawTool&&this.checkAndCreatePopups(d)}else e==="mouseenter"&&this.viewingMode!=="Neuron Connection"&&(this.currentHover=t.models?t.models:"");this.$emit("resource-selected",d)}}},setConnectivityDataSource:function(e,t){var o;e==="Exploration"?this.connectivityDataSource=(o=t.models)!=null&&o.startsWith("ilxtr:")?t.models:"":this.connectivityDataSource=t.featureId||t.id},changeViewingMode:function(e){e&&(this.viewingMode=e),this.manualAbortedOnClose()},removeActiveTooltips:function(){this.mapImp&&this.mapImp.removePopup(),this.$el.querySelectorAll(".flatmap-tooltip-popup").forEach(t=>t.remove())},createTooltipForConnectivity:function(e,t){const o=document.createElement("div");o.classList.add("flatmap-feature-label"),e.forEach((i,a)=>{const{label:r}=i;if(o.append(Gn(r)),a+1<e.length){const s=document.createElement("hr");o.appendChild(s)}}),this.mapImp.showPopup(t,o,{className:"custom-popup flatmap-tooltip-popup",positionAtLastClick:!1,preserveSelection:!0})},showConnectivityTooltips:function(e){const{connectivityInfo:t,data:o}=e,i=[],a=[],r=[],s=[];if(t&&t.featureId&&i.push(...t.featureId),this.mapImp){if(o.forEach(p=>{const g=this.mapImp.search(p.id);if(g!=null&&g.results.length){const h=g==null?void 0:g.results[0].featureId;r.push({featureId:h,...p})}else s.push(p)}),r.length){let p=r[0].featureId;this.mapImp.annotations.forEach(g=>{const h=g["anatomical-nodes"];if(h){const m=h.join("");r.every(b=>m.indexOf(b.id)!==-1)&&(p=g.featureId,a.push(p))}}),this.createTooltipForConnectivity(r,p)}else this.removeActiveTooltips();s.length&&this.emitConnectivityError(s);const l=i.reduce((p,g)=>{const h=this.mapImp.pathways.paths[g],m=h?h.connectivity:null;if(m){const y=m.flat(1/0);p.push(...y)}return p},[]),c=[...new Set(l)],d=[...i,...c],u=[...this.mapImp.modelFeatureIdList(d),...a];this.mapImp.selectGeoJSONFeatures(u)}},showConnectivitiesByReference:function(e){this.searchConnectivitiesByReference(e).then(t=>{this.mapImp.selectFeatures(t)})},searchConnectivitiesByReference:async function(e){const t=sessionStorage.getItem("flatmap-knowledge");let o=[];return t?o=await Oy(e):o=await My(this.mapImp,e,this.flatmapQueries),o},getFlatmapKnowledge:function(){let e=[];const t=sessionStorage.getItem("flatmap-knowledge");return t&&(e=JSON.parse(t)),e},emitConnectivityError:function(e){this.$emit("connectivity-error",{data:{errorData:e,errorMessage:Dy}})},checkConnectivityTooltipEntry:function(e){return e!=null&&e.length?e.find(t=>{var o,i;return((o=t==null?void 0:t.destinations)==null?void 0:o.length)||((i=t==null?void 0:t.components)==null?void 0:i.length)})!==void 0:!1},changeConnectivitySource:async function(e){const{entry:t,connectivitySource:o}=e;t.mapId===this.mapImp.id&&(await this.flatmapQueries.queryForConnectivityNew(this.mapImp,t.featureId[0],o),this.tooltipEntry=this.tooltipEntry.map(i=>i.featureId[0]===t.featureId[0]?this.flatmapQueries.updateTooltipData(i):i),this.checkConnectivityTooltipEntry(this.tooltipEntry)&&this.$emit("connectivity-info-open",this.tooltipEntry))},checkAndCreatePopups:async function(e,t=!0){var o;if(this.viewingMode==="Annotation"){const i=e.filter(a=>a.feature).map(a=>a.feature);if(i.length>0)if(this.annotationSidebar&&this.previousDeletedEvent.type==="deleted"&&(this.annotationEntry=[{...this.previousDeletedEvent,resourceId:this.serverURL}],this.annotationEventCallback({},{type:"aborted"})),this.annotationEntry=[],i.forEach(a=>{var r;this.annotationEntry.push({...a,resourceId:this.serverURL,featureId:a.featureId?a.featureId:(r=a.feature)==null?void 0:r.id,offline:this.offlineAnnotationEnabled})}),i[0].feature)this.activeDrawTool||this.activeDrawMode||this.isValidDrawnCreated?(this.featureAnnotationSubmitted=!1,this.activeDrawTool&&this.createConnectivityBody(),this.displayTooltip(i[0].feature.id,$y(i[0].feature.geometry))):this.rollbackAnnotationEvent();else{const a=this.annotationEntry.filter(r=>r.featureId&&r.models).map(r=>r.models);a.length>0&&this.displayTooltip(a)}else this.annotation={}}else if(this.viewingMode==="Neuron Connection"&&t){const i=e.map(r=>r.resource[0]);if(i.find(r=>!r.startsWith("ilxtr:"))){const r=Array.isArray(i)?[...i]:[i];r.length===1&&r.push([]);const s=(o=e[0].feature)==null?void 0:o.featureId,l=this.mapImp.annotations.get(s),c=l==null?void 0:l["anatomical-nodes"],d=l==null?void 0:l.models;let f,u=r;const p=l==null?void 0:l.models;c!=null&&c.length&&(f=c.find(S=>JSON.parse(S)[0]===d)),f?u=JSON.parse(f):p&&(u=[p,[]]);const g=this.mapImp.knowledgeSource,h=u.flat(1/0),m=[...new Set(h)],b=(await ut.fetchLabels(this.flatmapAPI,m)).reduce((S,E)=>{const O=E[0],x=JSON.parse(E[1]);return S.push({id:O,label:x.label,source:x.source}),S},[]);b.sort((S,E)=>S.id===E.id?S.source===g&&E.source!==g?-1:S.source!==g&&E.source===g?1:0:S.id.localeCompare(E.id));const C=[];for(let S=0;S<m.length;S++){const E=b.find(O=>O.id===m[S]);E&&C.push(E.label)}const I=Gn(C.join(", ")),k={facet:JSON.stringify(u),facetPropPath:`flatmap.connectivity.source.${this.connectionType.toLowerCase()}`,tagLabel:I,term:this.connectionType};this.connectivityFilters.some(S=>S.facet===k.facet&&S.facetPropPath===k.facetPropPath)||this.connectivityFilters.push(k),this.$emit("neuron-connection-feature-click",{filters:this.connectivityFilters,search:""})}else await this.openConnectivityInfo(e)}else await this.openConnectivityInfo(e)},openConnectivityInfo:async function(e){By(this.mapImp,this.flatmapQueries);let t=[];if(this.tooltipEntry=e.filter(o=>o.resource[0]in this.mapImp.pathways.paths).map(o=>({title:o.label,featureId:o.resource,ready:!1})),this.tooltipEntry.length){this.$emit("connectivity-info-open",this.tooltipEntry);for(let i=0;i<e.length;i++)t.push(await this.getKnowledgeTooltip(e[i]));this.tooltipEntry=await Promise.all(t);const o=this.tooltipEntry.map(i=>i.featureId[0]);o.length>0&&this.displayTooltip(o)}},updateConnectivityFilters:function(e){e.length&&(this.connectivityFilters=e.filter(t=>t.facet.toLowerCase()!=="show all"))},resetConnectivityfilters:function(e){e.length?this.connectivityFilters=this.connectivityFilters.filter(t=>e.some(o=>o.facetPropPath===t.facetPropPath&&o.facet!==t.facet)):this.connectivityFilters=[]},getKnowledgeTooltip:async function(e){const t=await this.flatmapQueries.retrieveFlatmapKnowledgeForEvent(this.mapImp,e);let o=await this.flatmapQueries.createTooltipData(this.mapImp,e);return(t&&t[0]||e.feature.hyperlinks&&e.feature.hyperlinks.length>0)&&(o.featuresAlert=e.alert,o.knowledgeSource=ui(this.mapImp),o.mapId=this.mapImp.mapMetadata.id,o.mapuuid=this.mapImp.mapMetadata.uuid),o.ready=!0,o},popUpCssHacks:function(){const e=document.querySelector(".flatmap-tooltip-popup"),t=document.querySelector(".maplibregl-popup-close-button");e&&(e.style.display="none"),t.style.display="block",this.$refs.tooltip.$el.style.display="flex",t.onclick=()=>{this.$emit("connectivity-info-close"),e&&(e.style.display="block")}},closeTooltip:function(){this.$refs.tooltip&&(this.$refs.tooltip.$el.style.display="none"),document.querySelectorAll(".maplibregl-popup").forEach(e=>{e.style.display="none"})},showPopup:function(e,t,o){let i=o;this.mapImp&&(i?i.className||(i.className="custom-popup"):i={className:"custom-popup",positionAtLastClick:!0},this.mapImp.showPopup(e,t,i))},showMarkerPopup:function(e,t,o){this.mapImp&&this.mapImp.showMarkerPopup(e,t,o)},closeMinimap:function(){let e=this.$refs.flatmapContainer.querySelector(".maplibregl-ctrl-minimap");this.minimapSmall?(e.classList.add("enlarge"),e.classList.remove("shrink")):(e.classList.add("shrink"),e.classList.remove("enlarge")),this.minimapSmall=!this.minimapSmall},addResizeButtonToMinimap:function(){let e=this.$refs.flatmapContainer.querySelector(".maplibregl-ctrl-minimap");e&&(this.$refs.minimapResize&&this.$refs.minimapResize.$el.parentNode&&this.$refs.minimapResize.$el.parentNode.removeChild(this.$refs.minimapResize.$el),e.appendChild(this.$refs.minimapResize.$el),this.minimapResizeShow=!0)},setHelpMode:function(e){const t=this.hoverVisibilities.length,o=t-1,i=this.hoverVisibilities[this.helpModeActiveIndex];if(i){const r=i==null?void 0:i.refs,s=i==null?void 0:i.ref,l=this.$refs[r||s];if(l){const{parentElement:c,nextElementSibling:d}=l.$el,f=u=>u&&(u.classList.contains("pathway-container")||u.classList.contains("pathway-location"));(f(c)||f(d))&&(this.requiresDrawer?this.drawerOpen=!0:this.helpModeActiveIndex+=1)}else this.helpModeActiveIndex+=1,this.setHelpMode(e)}const a=this.hoverVisibilities[this.helpModeActiveIndex];(a==null?void 0:a.ref)==="checkBoxPopover"&&!this.showPathwayFilter&&(this.helpModeActiveIndex+=1,this.setHelpMode(e)),e||(this.helpModeActiveIndex=this.helpModeInitialIndex),this.viewingMode!=="Annotation"&&this.helpModeActiveIndex>9&&(this.helpModeActiveIndex=o),e&&this.helpModeActiveIndex>=o&&this.$emit("help-mode-last-item",!0),e&&!this.helpModeDialog?(this.inHelp=!0,this.hoverVisibilities.forEach(r=>{r.value=!0})):e&&this.helpModeDialog&&t>this.helpModeActiveIndex?this.helpModeActiveIndex>-1?(this.closeFlatmapHelpPopup(),setTimeout(()=>{this.inHelp=!1,this.hoverVisibilities.forEach(r=>{r.value=!1}),this.showTooltip(this.helpModeActiveIndex,200)},300)):this.helpModeActiveIndex===-1&&this.openFlatmapHelpPopup():(this.inHelp=!1,this.hoverVisibilities.forEach(r=>{r.value=!1}),this.closeFlatmapHelpPopup())},showTooltip:function(e,t=500){this.inHelp||(clearTimeout(this.tooltipWait[e]),this.tooltipWait[e]=setTimeout(()=>{this.hoverVisibilities[e].value=!0,this.$emit("shown-tooltip")},t))},hideTooltip:function(e,t=500){this.inHelp||(clearTimeout(this.tooltipWait[e]),this.tooltipWait[e]=setTimeout(()=>{this.hoverVisibilities[e].value=!1},t))},displayTooltip:function(e,t=void 0){let o,i={className:"flatmapvuer-popover"};if(t)o=e,i.annotationFeatureGeometry=t,this.annotationEntry.length&&(i.annotationEvent={type:this.annotationEntry[0].type,feature:this.annotationEntry[0].feature});else{const a=Array.isArray(e)?e[0]:e;a&&(o=this.mapImp.modelFeatureIds(a)[0]),this.activeDrawTool||(i.positionAtLastClick=!0)}this.connectivityInfoSidebar&&this.tooltipEntry.length&&this.viewingMode!=="Annotation"&&this.checkConnectivityTooltipEntry(this.tooltipEntry)&&this.$emit("connectivity-info-open",this.tooltipEntry),this.annotationSidebar&&this.viewingMode==="Annotation"&&this.$emit("annotation-open",{annotationEntry:this.annotationEntry,commitCallback:this.commitAnnotationEvent}),o&&!this.disableUI&&(this.viewingMode==="Annotation"&&!this.annotationSidebar||this.viewingMode==="Exploration"&&!this.connectivityInfoSidebar)&&(this.tooltipDisplay=!0,this.$nextTick(()=>{this.mapImp.showPopup(o,this.$refs.tooltip.$el,i),this.popUpCssHacks()}))},moveMap:function(e,t={}){if(this.mapImp){const{offsetX:o=0,offsetY:i=0,zoom:a=4}=t,r=this.mapImp.map,s=this.mapImp.bounds.toArray();this.mapImp.zoomToFeatures(e,{noZoomIn:!0}),this.showPathwaysDrawer(!1),s!=null&&s.length&&setTimeout(()=>{r.fitBounds(s,{offset:[o,i],zoom:a,animate:!0})})}},openFlatmapHelpPopup:function(){if(this.mapImp){let e=this.mapImp.modelFeatureIds("UBERON:0000948");e&&e.length>0&&(this.mapImp.showPopup(e[0],"Click for more information",{anchor:"top",className:"flatmap-popup-popper"}),this.$emit("shown-map-tooltip"))}},closeFlatmapHelpPopup:function(){this.$el.querySelectorAll(".maplibregl-popup-close-button").forEach(e=>{e.click()})},getLabels:function(){let e=[];if(this.mapImp){let t=this.mapImp.annotations;for(let o of t.values())o.label&&e.push(o.label);return Array.from(new Set(e))}},getVisibilityState:function(e){if(["alertSelection","pathwaysSelection","taxonSelection"].forEach(o=>{let i=this.$refs[o];i&&(e[o]=i.getState())}),this.$refs.treeControls){const o=this.$refs.treeControls.$refs.regionTree.getCheckedKeys();e.systemsSelection=o.filter(i=>!i.includes("."))}},setVisibilityState:function(e){["alertSelection","pathwaysSelection","taxonSelection"].forEach(o=>{const i=e[o];if(i){const a=this.$refs[o];a&&a.setState(i)}}),"systemsSelection"in e&&this.$refs.treeControls&&(this.$refs.treeControls.$refs.regionTree.setCheckedKeys(e.systemsSelection),this.systems[0].children.forEach(o=>{this.mapImp.enableSystem(o.key,e.systemsSelection.includes(o.key))}))},getState:function(){if(this.mapImp){let e={entry:this.entry,viewport:this.mapImp.getState()};const t=this.mapImp.getIdentifier();return this.biologicalSex?e.biologicalSex=this.biologicalSex:t&&t.biologicalSex&&(e.biologicalSex=t.biologicalSex),t&&t.uuid&&(e.uuid=t.uuid),e.viewingMode=this.viewingMode,e.searchTerm=this.searchTerm,e.flightPath3D=this.flightPath3DRadio,e.colour=this.colourRadio,e.outlines=this.outlinesRadio,e.background=this.currentBackground,this.offlineAnnotationEnabled&&(e.offlineAnnotations=sessionStorage.getItem("anonymous-annotation")),this.getVisibilityState(e),e}},setState:function(e){e&&(this.mapImp&&e.entry&&this.entry==e.entry&&(!e.biologicalSex||e.biologicalSex===this.biologicalSex)?this.restoreMapState(e):this.createFlatmap(e),this.setStateRequired=!1)},restoreMapState:function(e){if(e){if(e.viewport&&this.mapImp.setState(e.viewport),e.offlineAnnotations&&sessionStorage.setItem("anonymous-annotation",e.offlineAnnotations),e.viewingMode&&this.changeViewingMode(e.viewingMode),"flightPath3D"in e&&this.setFlightPath3D(e.flightPath3D),"colour"in e&&this.setColour(e.colour),"outlines"in e&&this.setOutlines(e.outlines),e.background&&this.backgroundChangeCallback(e.background),e.searchTerm){const t=e.searchTerm;this.searchAndShowResult(t,!0,!0)}this.setVisibilityState(e)}},setFlightPathInfo:function(e){(e===1.6||e>1.6)&&(this.displayFlightPathOption=!0,this.setFlightPath3D(!1))},createFlatmap:function(e){if(!this.mapImp&&!this.loading){this.loading=!0,this.flatmapError=null;let t={taxon:this.entry};this.uuid&&(t.uuid=this.uuid),e?(e.uuid?t={uuid:e.uuid}:e.entry&&(t.taxon=e.entry),e.biologicalSex?t.biologicalSex=e.biologicalSex:t.taxon==="NCBITaxon:9606"&&(t.biologicalSex="PATO:0000384")):this.biologicalSex&&(t.biologicalSex=this.biologicalSex),this.mapManagerRef.loadMap(t,this.eventCallback(),{minZoom:this.minZoom,tooltips:this.tooltips,minimap:!1,container:this.$refs.display}).then(i=>{this.mapImp=i,this.serverURL=this.mapImp.makeServerUrl("").slice(0,-1);let a=this.mapImp.details.version;this.setFlightPathInfo(a);const r=this._stateToBeSet?this._stateToBeSet:e;this.onFlatmapReady(r),this.$nextTick(()=>this.restoreMapState(r))}).catch(i=>{var a,r;if(console.error("Flatmap loading error:",i),this.flatmapError={},i.message&&i.message.indexOf("Unknown map")!==-1?(this.flatmapError.title="Unknown Map!",this.flatmapError.messages=Object.keys(t).map(s=>`${s==="uuid"?"UUID":Gn(s)}: ${t[s]}`)):(this.flatmapError.title="Error Loading Map!",this.flatmapError.messages=[i.message?i.message:i.toString(),"Please try again later or contact support if the problem persists."]),(r=(a=this.$parent)==null?void 0:a.$refs)!=null&&r.multiContainer){const s=this.$parent;this.flatmapError.button={text:"Load Default Map",callback:()=>{const l=s.initial;s.setSpecies(l,void 0,3)}}}this.loading=!1})}else e&&(this._stateToBeSet={...e},this.mapImp&&!this.loading&&this.restoreMapState(this._stateToBeSet))},computePathControlsMaximumHeight(){const e=this.$refs.display;if(e){const t=getComputedStyle(e),o=parseInt(t.paddingTop)+parseInt(t.paddingBottom),i=e.clientHeight-o;this.pathwaysMaxHeight=i-170}},mapResize:function(){try{this.computePathControlsMaximumHeight(),this.mapImp&&this.mapImp.resize()}catch{console.error("Map resize error")}},getFilterSources:function(){const e=["kind","taxons"];let t=new Set,o=new Set,i=new Map;for(const r of this.mapImp.annotations.values())if(r.source){"alert"in r?t.add(r.source):o.add(r.source);for(const[s,l]of Object.entries(r))if(e.includes(s)){i.has(s)||i.set(s,new Map);const c=i.get(s),d=f=>{const u=f;c.has(u)||c.set(u,new Set),c.get(u).add(`${r.source}`)};Array.isArray(l)?l.forEach(d):d(l)}}let a={alert:{with:[...t],without:[...o]}};for(const[r,s]of i.entries()){a[r]={};for(const[l,c]of s.entries())a[r][l]=[...c.values()]}return a},getFilterOptions:async function(e,t){const o=t||this.getFlatmapKnowledge(),i=this.pathways;return await ut.getFlatmapFilterOptions(this.flatmapAPI,e,o,i)},onFlatmapReady:function(e){var t;if(this.sensor=n.markRaw(new Vy(this.$refs.display,this.mapResize)),((t=this.mapImp.options)==null?void 0:t.style)==="functional"&&(this.isFC=!0),this.mapImp.setBackgroundOpacity(1),this.backgroundChangeCallback(this.currentBackground),this.pathways=this.mapImp.pathTypes(),this.pathways=this.pathways.filter(o=>o.enabled&&o.type!=="other"),this.processSystems(this.mapImp.getSystems()),this.processTaxon(this.mapImp.taxonIdentifiers,e?e.taxonSelection:void 0),this.containsAlert="alert"in this.mapImp.featureFilterRanges(),this.flatmapLegends=this.mapImp.flatmapLegend,this.loading=!1,this.computePathControlsMaximumHeight(),this.mapResize(),this.handleMapClick(),this.setInitMapState(),this.displayMinimap){const o={position:"top-right"};this.mapImp.createMinimap(o),this.addResizeButtonToMinimap()}this.$emit("ready",this)},handleMapClick:function(){const e=this.mapImp.map;e&&e.on("click",t=>{this.connectivityDataSource||this.$emit("connectivity-info-close"),this.connectivityDataSource=""})},onContextLost:function(){this.lastViewport=n.markRaw(this.mapImp.getState()),this.flatmapError={},this.flatmapError.title="GL context lost!",this.flatmapError.messages=[`A display issue has occurred due
|
|
24
|
+
order by source desc`;ws();const a=sessionStorage.getItem("flatmap-knowledge"),r=sessionStorage.getItem("flatmap-knowledge-source");if(!a||r!==o){const l=(await t.queryKnowledge(i)).map(c=>JSON.parse(c));return sessionStorage.setItem("flatmap-knowledge",JSON.stringify(l)),sessionStorage.setItem("flatmap-knowledge-source",o),Ny(),l}return JSON.parse(a)}function Ny(){const o=new Date().getTime()+864e5;sessionStorage.setItem("flatmap-knowledge-expiry",o)}function _y(){["flatmap-knowledge","flatmap-knowledge-expiry","flatmap-knowledge-source"].forEach(t=>{sessionStorage.removeItem(t)})}function ws(){const e=sessionStorage.getItem("flatmap-knowledge-expiry");new Date().getTime()>e&&_y()}const Yn=e=>e&&e.charAt(0).toUpperCase()+e.slice(1),Ly='<svg width="195px" height="24px" viewBox="0 0 200 24" fill="yellow"><path d="M22.0748 3.25583C22.4141 2.42845 23.5859 2.42845 23.9252 3.25583L25.6493 7.45955C25.793 7.80979 26.1221 8.04889 26.4995 8.07727L31.0303 8.41798C31.922 8.48504 32.2841 9.59942 31.6021 10.1778L28.1369 13.1166C27.8482 13.3614 27.7225 13.7483 27.8122 14.1161L28.8882 18.5304C29.1 19.3992 28.152 20.0879 27.3912 19.618L23.5255 17.2305C23.2034 17.0316 22.7966 17.0316 22.4745 17.2305L18.60881 19.618C17.84796 20.0879 16.9 19.3992 17.1118 18.5304L18.18785 14.1161C18.2775 13.7483 18.1518 13.3614 17.86309 13.1166L14.3979 10.1778C13.71588 9.59942 14.07796 8.48504 14.96971 8.41798L19.50046 8.07727C19.87794 8.04889 20.20704 7.80979 20.35068 7.45955L22.0748 3.25583Z" stroke="#000000" stroke-width="2"/><text x="47" y="52%" style="white-space: pre" dominant-baseline="middle" text-anchor="start" font-family="Asap, sans-serif" font-size="12" fill="#333333">Featured dataset marker</text></svg>';var Cs={exports:{}};(function(e,t){(function(o,i){e.exports=i()})(typeof window<"u"?window:ym,function(){if(typeof window>"u")return null;var o=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")(),i=o.requestAnimationFrame||o.mozRequestAnimationFrame||o.webkitRequestAnimationFrame||function(f){return o.setTimeout(f,20)},a=o.cancelAnimationFrame||o.mozCancelAnimationFrame||o.webkitCancelAnimationFrame||function(f){o.clearTimeout(f)};function r(f,u){var p=Object.prototype.toString.call(f),g=p==="[object Array]"||p==="[object NodeList]"||p==="[object HTMLCollection]"||p==="[object Object]"||typeof jQuery<"u"&&f instanceof jQuery||typeof Elements<"u"&&f instanceof Elements,h=0,m=f.length;if(g)for(;h<m;h++)u(f[h]);else u(f)}function s(f){if(!f.getBoundingClientRect)return{width:f.offsetWidth,height:f.offsetHeight};var u=f.getBoundingClientRect();return{width:Math.round(u.width),height:Math.round(u.height)}}function l(f,u){Object.keys(u).forEach(function(p){f.style[p]=u[p]})}var c=function(f,u){var p=0;function g(){var m=[];this.add=function(v){m.push(v)};var b,y;this.call=function(v){for(b=0,y=m.length;b<y;b++)m[b].call(this,v)},this.remove=function(v){var T=[];for(b=0,y=m.length;b<y;b++)m[b]!==v&&T.push(m[b]);m=T},this.length=function(){return m.length}}function h(m,b){if(m){if(m.resizedAttached){m.resizedAttached.add(b);return}m.resizedAttached=new g,m.resizedAttached.add(b),m.resizeSensor=document.createElement("div"),m.resizeSensor.dir="ltr",m.resizeSensor.className="resize-sensor";var y={pointerEvents:"none",position:"absolute",left:"0px",top:"0px",right:"0px",bottom:"0px",overflow:"hidden",zIndex:"-1",visibility:"hidden",maxWidth:"100%"},v={position:"absolute",left:"0px",top:"0px",transition:"0s"};l(m.resizeSensor,y);var T=document.createElement("div");T.className="resize-sensor-expand",l(T,y);var S=document.createElement("div");l(S,v),T.appendChild(S);var w=document.createElement("div");w.className="resize-sensor-shrink",l(w,y);var k=document.createElement("div");l(k,v),l(k,{width:"200%",height:"200%"}),w.appendChild(k),m.resizeSensor.appendChild(T),m.resizeSensor.appendChild(w),m.appendChild(m.resizeSensor);var E=window.getComputedStyle(m),O=E?E.getPropertyValue("position"):null;O!=="absolute"&&O!=="relative"&&O!=="fixed"&&O!=="sticky"&&(m.style.position="relative");var B=!1,N=0,x=s(m),I=0,L=0,q=!0;p=0;var V=function(){var Z=m.offsetWidth,ce=m.offsetHeight;S.style.width=Z+10+"px",S.style.height=ce+10+"px",T.scrollLeft=Z+10,T.scrollTop=ce+10,w.scrollLeft=Z+10,w.scrollTop=ce+10},M=function(){if(q){var Z=m.offsetWidth===0&&m.offsetHeight===0;if(Z){p||(p=i(function(){p=0,M()}));return}else q=!1}V()};m.resizeSensor.resetSensor=M;var $=function(){N=0,B&&(I=x.width,L=x.height,m.resizedAttached&&m.resizedAttached.call(x))},pe=function(){x=s(m),B=x.width!==I||x.height!==L,B&&!N&&(N=i($)),M()},Y=function(Z,ce,Ee){Z.attachEvent?Z.attachEvent("on"+ce,Ee):Z.addEventListener(ce,Ee)};Y(T,"scroll",pe),Y(w,"scroll",pe),p=i(function(){p=0,M()})}}r(f,function(m){h(m,u)}),this.detach=function(m){p||(a(p),p=0),c.detach(f,m)},this.reset=function(){f.resizeSensor.resetSensor()}};if(c.reset=function(f){r(f,function(u){u.resizeSensor.resetSensor()})},c.detach=function(f,u){r(f,function(p){p&&(p.resizedAttached&&typeof u=="function"&&(p.resizedAttached.remove(u),p.resizedAttached.length())||p.resizeSensor&&(p.contains(p.resizeSensor)&&p.removeChild(p.resizeSensor),delete p.resizeSensor,delete p.resizedAttached))})},typeof MutationObserver<"u"){var d=new MutationObserver(function(f){for(var u in f)if(f.hasOwnProperty(u))for(var p=f[u].addedNodes,g=0;g<p.length;g++)p[g].resizeSensor&&c.reset(p[g])});document.addEventListener("DOMContentLoaded",function(f){d.observe(document.body,{childList:!0,subtree:!0})})}return c})})(Cs);var Py=Cs.exports;const Vy=bm(Py),Ry=Ci.defineStore("main",{state:()=>({userProfile:{token:""}}),getters:{userToken(e){return e.userProfile.token}},actions:{setUserToken(e){this.userProfile.token=e}}});function Dy(e){return{all:e=e||new Map,on:function(t,o){var i=e.get(t);i?i.push(o):e.set(t,[o])},off:function(t,o){var i=e.get(t);i&&(o?i.splice(i.indexOf(o)>>>0,1):e.set(t,[]))},emit:function(t,o){var i=e.get(t);i&&i.slice().map(function(a){a(o)}),(i=e.get("*"))&&i.slice().map(function(a){a(t,o)})}}}const pi=new Dy,Fy="cannot be found on the map.",$y=e=>{let t={lng:0,lat:0},o;return e.type==="Polygon"?e.coordinates.length&&(o=e.coordinates[0]):o=e.coordinates,o&&(e.type!=="Point"?(o.map(i=>{t.lng+=parseFloat(i[0]),t.lat+=parseFloat(i[1])}),t.lng=t.lng/o.length,t.lat=t.lat/o.length):(t.lng+=parseFloat(o[0]),t.lat+=parseFloat(o[1]))),t},vs=(e,t)=>{const o=[];let i=e.organs?e.organs:e.ftus;const a=i?i.filter((r,s)=>i.findIndex(l=>l.label===r.label)===s):void 0;return a&&a.forEach(r=>{const s={label:r.label,models:r.models,key:`${t}.${r.label}`},l=vs(r,s.key);l.length>0&&(s.children=l),o.push(s)}),o},zy={name:"FlatmapVuer",components:{Button:ni,Col:nn,Loading:Xg,Radio:ns,Icon:be,RadioGroup:os,Row:tn,Select:Un,Dialog:bg,MapSvgIcon:wi.MapSvgIcon,MapSvgSpriteColor:wi.MapSvgSpriteColor,Tooltip:ut.Tooltip,TreeControls:ut.TreeControls,SelectionsGroup:ps,SvgLegends:Oy,ElIconWarningFilled:W.WarningFilled,ElIconArrowDown:W.ArrowDown,ElIconArrowLeft:W.ArrowLeft,DrawToolbar:ut.DrawToolbar,DynamicLegends:ms,FlatmapError:Gn},beforeCreate:function(){this.setStateRequired=!1},setup(e){let t=n.inject("$annotator");return t||(t=n.markRaw(new Bs.AnnotationService(`${e.flatmapAPI}annotator`)),n.provide("$annotator",t)),{annotator:t}},methods:{enableFeatureResetOnClick:function(e){this.mapImp&&this.mapImp.enableFeatureResetOnClick(e)},setVisibilityFilter:function(e){this.mapImp&&(this.mapImp.contextLost?e?this.filterToRestore=n.markRaw(JSON.parse(JSON.stringify(e))):this.filterToRestore=void 0:(e?this.mapImp.setVisibilityFilter(e):this.mapImp.clearVisibilityFilter(),this.filterToRestore=void 0))},manualAbortedOnClose:function(){this.annotationSidebar&&this.$emit("annotation-close"),this.closeTooltip(),this.annotationEventCallback({},{type:"aborted"}),this.initialiseDrawing()},initialiseDrawing:function(){this.connectionEntry={},this.activeDrawTool=void 0,this.activeDrawMode=void 0,this.drawnCreatedEvent={}},cancelDrawnFeature:function(){this.isValidDrawnCreated&&(this.annotationSidebar&&this.$emit("annotation-close"),this.closeTooltip(),this.annotationEntry=[{...this.drawnCreatedEvent.feature,resourceId:this.serverURL}],this.rollbackAnnotationEvent(),this.initialiseDrawing())},connectedFeatureTooltip:function(e){if(this.mapImp)if(e){const t=Number(e);let i={feature:t?this.mapImp.featureProperties(t):{feature:this.existDrawnFeatures.find(a=>a.id===e.trim())}};this.checkAndCreatePopups([i],!1)}else this.closeTooltip()},confirmDrawnFeature:function(){this.isValidDrawnCreated&&(this.checkAndCreatePopups([this.drawnCreatedEvent],!1),Object.keys(this.connectionEntry).length>0&&(this.annotationEntry[0].feature.connection=this.connectionEntry),this.initialiseDrawing())},toolbarEvent:function(e,t){if(!this.isValidDrawnCreated){if(this.manualAbortedOnClose(),this.doubleClickedFeature=!1,this.changeAnnotationDrawMode({mode:"simple_select"}),e==="mode")this.activeDrawMode=t;else if(e==="tool"){if(this.cancelDrawnFeature(),t){const o=t.replace(/[A-Z]/g,i=>`_${i.toLowerCase()}`);this.changeAnnotationDrawMode({mode:`draw${o}`})}this.activeDrawTool=t}}},annotationDrawModeEvent:function(e){this.activeDrawMode==="Edit"?this.doubleClickedFeature&&(e.feature.feature.geometry.type!=="Point"&&(this.changeAnnotationDrawMode({mode:"direct_select",options:{featureId:e.feature.feature.id}}),this.modifyAnnotationFeature()),this.doubleClickedFeature=!1):this.activeDrawMode==="Delete"&&(this.changeAnnotationDrawMode({mode:"simple_select",options:{featureIds:[e.feature.feature.id]}}),this.modifyAnnotationFeature())},createConnectivityBody:function(){if(Object.keys(this.connectionEntry).length>0){const e=Object.values(this.connectionEntry),t={type:"connectivity",source:e[0],target:e[e.length-1],intermediates:e.filter((o,i)=>i!==0&&i!==e.length-1)};this.annotationEntry[0].body=t}},changeAnnotationDrawMode:function(e){this.mapImp&&this.mapImp.changeAnnotationDrawMode(e)},clearAnnotationFeature:function(){this.mapImp&&this.mapImp.clearAnnotationFeature()},forceContextLoss:function(){this.mapImp&&!this.mapImp.contextLost&&!this.loading&&this.mapImp.forceContextLoss()},forceContextRestore:function(){this.mapImp&&(this.flatmapError=null,this.mapImp.forceContextRestore())},modifyAnnotationFeature:function(){this.mapImp&&this.mapImp.removeAnnotationFeature()},rollbackAnnotationEvent:function(){this.mapImp&&this.annotationEntry.length>0&&["created","updated","deleted"].includes(this.annotationEntry[0].type)&&(this.mapImp.rollbackAnnotationEvent(this.annotationEntry[0]),this.annotationEntry=[])},commitAnnotationEvent:function(e){this.mapImp&&(this.offlineAnnotationEnabled&&(this.offlineAnnotations=JSON.parse(sessionStorage.getItem("anonymous-annotation"))||[],this.offlineAnnotations.push(e),this.annotationEntry[0].type==="deleted"&&(this.offlineAnnotations=this.offlineAnnotations.filter(t=>t.resource!==this.serverURL||t.item.id!==e.item.id)),sessionStorage.setItem("anonymous-annotation",JSON.stringify(this.offlineAnnotations))),["created","updated","deleted"].includes(this.annotationEntry[0].type)&&(this.featureAnnotationSubmitted=!0,this.mapImp.commitAnnotationEvent(this.annotationEntry[0]),e.body.comment==="Position Updated"?this.annotationEntry[0].positionUpdated=!1:this.annotationEntry[0].type==="deleted"&&(this.annotationSidebar&&this.$emit("annotation-close"),this.closeTooltip(),this.annotationEntry=[]),this.addAnnotationFeature()))},fetchAnnotatedItemIds:async function(e=void 0,t=void 0){let o;return this.offlineAnnotationEnabled?(this.offlineAnnotations=JSON.parse(sessionStorage.getItem("anonymous-annotation"))||[],o=this.offlineAnnotations.filter(i=>i.resource===this.serverURL).map(i=>i.item.id)):(o=await this.annotator.annotatedItemIds(this.userToken,this.serverURL,e,t),"resource"in o&&(o=o.itemIds)),o},setFeatureAnnotated:async function(){if(this.mapImp){const e=await this.fetchAnnotatedItemIds();for(const t of e)this.mapImp.setFeatureAnnotated(t)}},fetchDrawnFeatures:async function(e,t){let o;if(this.offlineAnnotationEnabled)this.offlineAnnotations=JSON.parse(sessionStorage.getItem("anonymous-annotation"))||[],o=this.offlineAnnotations.filter(i=>i.feature&&i.resource===this.serverURL).map(i=>i.feature);else{const i=await this.fetchAnnotatedItemIds(e,t);o=await this.annotator.drawnFeatures(this.userToken,this.serverURL,i),"resource"in o&&(o=o.features)}return o},addAnnotationFeature:async function(){if(this.mapImp){this.featureAnnotationSubmitted||(this.clearAnnotationFeature(),this.loading=!0);const e=this.annotationFrom==="Anyone"?void 0:this.authorisedUser.orcid?this.authorisedUser.orcid:"0000-0000-0000-0000",t=this.annotationFrom==="Anyone"?void 0:this.annotationFrom==="Me",o=await this.fetchDrawnFeatures(e,t);if(this.existDrawnFeatures=o,this.loading=!1,!this.featureAnnotationSubmitted)for(const i of o)this.mapImp.addAnnotationFeature(i)}},showAnnotator:function(e){this.mapImp&&(this.mapImp.showAnnotator(e),this.$el.querySelector(".maplibregl-ctrl-group").style.display="none")},setAnnotationFrom:function(e){this.annotationFrom=e,this.mapImp&&(this.manualAbortedOnClose(),this.addAnnotationFeature())},emitOfflineAnnotationUpdate:function(){this.$emit("update-offline-annotation-enabled",this.offlineAnnotationEnabled)},setFlightPath3D:function(e){this.flightPath3DRadio=e,this.mapImp&&this.mapImp.enableFlightPaths(e)},viewLatestMap:function(){let e=this.biologicalSex?this.biologicalSex:void 0;this.entry==="NCBITaxon:9606"&&(e="PATO:0000384");const t={entry:this.entry,biologicalSex:e,viewport:this.mapImp.getState()};this.$emit("view-latest-map",t)},backgroundChangeCallback:function(e){this.currentBackground=e,this.mapImp&&this.mapImp.setBackgroundColour(this.currentBackground,1)},processSystems:function(e){if(this.systems.length=0,e&&e.length>0){const t={label:"All",key:"All",children:[]};e.forEach(o=>{const i={colour:o.colour,enabled:o.enabled,label:o.id,key:o.id},a=vs(o,i.key);a.length>0&&(i.children=a),t.children.push(i)}),this.systems.push(t)}},processTaxon:function(e,t){this.taxonConnectivity.length=0,fi(this.mapImp,e).then(o=>{o.length&&o.forEach(i=>{let a=!0;t&&(a=t.checkAll?!0:t.checked.includes(i.taxon)),this.taxonConnectivity.push({...i,enabled:a}),this.mapImp&&this.mapImp.enableConnectivityByTaxonIds(i.taxon,a)})})},toggleDrawer:function(){this.drawerOpen=!this.drawerOpen},setColour:function(e){this.colourRadio=e,this.mapImp&&this.mapImp.setPaint({coloured:e,outlined:this.outlinesRadio})},setOutlines:function(e){this.outlinesRadio=e,this.mapImp&&this.mapImp.setPaint({coloured:this.colourRadio,outlined:e})},setInitMapState:function(){if(this.mapImp){const e=this.mapImp.map,t=this.mapImp.options.bounds,o=[[t[0],t[1]],[t[2],t[3]]];e.setMaxBounds(null),e.setRenderWorldCopies(!1),this.initMapState=n.markRaw({initBounds:o})}},resetView:function(){if(this.mapImp){const e=this.mapImp.map,{initBounds:t}=this.initMapState;e.resetNorthPitch({animate:!1}),t&&e.fitBounds(t,{animate:!1}),this.$refs.skcanSelection&&this.$refs.skcanSelection.reset(),this.$refs.layersSelection&&this.$refs.layersSelection.reset(),this.$refs.systemsSelection&&this.$refs.pathwaysSelection.reset(),this.$refs.pathwaysSelection&&this.$refs.pathwaysSelection.reset()}},zoomIn:function(){this.mapImp&&this.mapImp.zoomIn()},zoomOut:function(){this.mapImp&&this.mapImp.zoomOut()},onSelectionsDataChanged:function(e){this.$emit("pathway-selection-changed",e)},sckanSelected:function(e){this.mapImp&&this.mapImp.enableSckanPath(e.key,e.value)},checkAllSCKAN:function(e){this.mapImp&&e.keys.forEach(t=>this.mapImp.enableSckanPath(t,e.value))},zoomToFeatures:function(e){this.mapImp&&this.mapImp.zoomToFeatures(e)},retrieveConnectedPaths:async function(e,t={}){var o,i,a,r,s;if(this.mapImp){let l=[],c=(o=t.target)!=null&&o.length?t.target:[];const d=[...this.mapImp.pathModelNodes(e)],f=await this.mapImp.queryPathsForFeatures(e);if(d.length){if(!c.length){const u=(i=t.type)!=null&&i.length?t.type:["all"],p=await this.flatmapQueries.queryForConnectivityNew(this.mapImp,e[0]),g=(a=p==null?void 0:p.ids)==null?void 0:a.dendrites.flat(1/0),h=(r=p==null?void 0:p.ids)==null?void 0:r.components.flat(1/0),m=(s=p==null?void 0:p.ids)==null?void 0:s.axons.flat(1/0);let b=[];u.includes("origins")&&b.push(...g),u.includes("components")&&b.push(...h),u.includes("destinations")&&b.push(...m),u.includes("all")&&b.push(...g,...h,...m),c=[...new Set(b)]}d.forEach(u=>{this.mapImp.nodePathModels(u).forEach(g=>{const m=this.mapImp.pathModelNodes(g).map(y=>this.mapImp.featureProperties(y).models);c.filter(y=>m.includes(y)).length&&!l.includes(g)&&l.push(g)})})}else f.length&&(c.length?f.forEach(u=>{const g=this.mapImp.pathModelNodes(u).map(m=>this.mapImp.featureProperties(m).models);c.filter(m=>g.includes(m)).length&&!l.includes(u)&&l.push(u)}):l=f);return l=[...new Set([...l,...e])],l}},resetMapFilter:function(){const e=this.mapFilters.alert;let t;const o={"tile-layer":"pathways"},i={NOT:o};e.with&&!e.without?t={OR:[i,{AND:[o,{HAS:"alert"}]}]}:!e.with&&e.without?t={OR:[i,{AND:[o,{NOT:{HAS:"alert"}}]}]}:!e.with&&!e.without&&(t=i),this.setVisibilityFilter(t)},alertMouseEnterEmitted:function(e){if(this.mapImp)if(e.value){let t;const o={"tile-layer":"pathways"},i={NOT:o};if(e.key==="alert"||e.key==="withoutAlert"){const a=e.key==="alert"?{HAS:"alert"}:{NOT:{HAS:"alert"}};t={OR:[i,{AND:[o,a]}]}}this.setVisibilityFilter(t)}else this.resetMapFilter()},alertSelected:function(e){this.mapImp&&(e.key==="alert"?e.value?this.mapFilters.alert.with=!0:this.mapFilters.alert.with=!1:e.key==="withoutAlert"&&(e.value?this.mapFilters.alert.without=!0:this.mapFilters.alert.without=!1),this.resetMapFilter())},checkAllAlerts:function(e){this.mapImp&&(e.value?(this.mapFilters.alert.without=!0,this.mapFilters.alert.with=!0):(this.mapFilters.alert.without=!1,this.mapFilters.alert.with=!1),this.resetMapFilter())},systemSelected:function(e){this.mapImp&&this.mapImp.enableSystem(e.key,e.value)},checkAllSystems:function(e){this.mapImp&&this.systems[0].children.forEach(t=>this.mapImp.enableSystem(t.label,e))},ftuSelected:function(e){this.searchAndShowResult(e,!0,!0)},layersSelected:function(e){this.mapImp&&this.mapImp.enableLayer(e.key,e.value)},checkAllLayers:function(e){this.mapImp&&e.keys.forEach(t=>this.mapImp.enableLayer(t,e.value))},taxonsSelected:function(e){this.mapImp&&this.mapImp.enableConnectivityByTaxonIds(e.key,e.value)},taxonMouseEnterEmitted:function(e){if(this.mapImp)if(e.value){clearTimeout(this.taxonLeaveDelay);let t=this.mapImp.taxonFeatureIds(e.key);this.mapImp.enableConnectivityByTaxonIds(e.key,e.value),this.mapImp.zoomToGeoJSONFeatures(t,{noZoomIn:!0})}else this.taxonLeaveDelay=setTimeout(()=>{this.mapImp.unselectGeoJSONFeatures(),e.selections.forEach(t=>{let o=e.checked.includes(t.taxon);this.mapImp.enableConnectivityByTaxonIds(t.taxon,o)})},1e3)},checkAllTaxons:function(e){this.mapImp&&this.mapImp.enableConnectivityByTaxonIds(e.keys,e.value)},pathwaysSelected:function(e){this.mapImp&&this.mapImp.enablePath(e.key,e.value)},checkAllPathways:function(e){this.mapImp&&e.keys.forEach(t=>this.mapImp.enablePath(t,e.value))},enablePanZoomEvents:function(e){this.mapImp.enablePanZoomEvents(e)},annotationEventCallback:function(e,t){if(t.type==="aborted")this.featureAnnotationSubmitted?this.featureAnnotationSubmitted=!1:this.rollbackAnnotationEvent(),this.annotationEntry=[];else if(t.type==="modeChanged")t.feature.mode==="direct_select"&&(this.doubleClickedFeature=!0),this.annotationSidebar&&t.feature.mode==="simple_select"&&this.activeDrawMode==="Deleted"&&this.annotationEventCallback({},{type:"aborted"});else if(t.type==="selectionChanged"){if(this.selectedDrawnFeature=t.feature.features.length===0?void 0:t.feature.features[0],e.feature.feature=this.selectedDrawnFeature,!this.activeDrawTool)if(this.connectionEntry={},this.selectedDrawnFeature){const o=this.existDrawnFeatures.find(i=>i.id===this.selectedDrawnFeature.id);o&&o.connection&&(this.connectionEntry=o.connection),this.annotationDrawModeEvent(e)}else this.annotationSidebar&&this.previousEditEvent.type==="updated"&&(this.annotationEntry=[{...this.previousEditEvent,resourceId:this.serverURL}],this.annotationEventCallback({},{type:"aborted"})),this.previousEditEvent={}}else{if(t.type==="created"||t.type==="updated"){t.type==="updated"&&t.feature.action&&(t.positionUpdated=t.feature.action==="move");const o=this.mapImp.refreshAnnotationFeatureGeometry(t.feature);e.feature.feature=o}t.type==="created"?this.drawnCreatedEvent=e:this.checkAndCreatePopups([e])}t.type==="updated"&&(this.previousEditEvent=t),t.type==="deleted"?this.previousDeletedEvent=t:this.previousDeletedEvent={}},getTaxons:function(e){let t;return e.taxons&&(typeof e.taxons!="object"?t=JSON.parse(e.taxons):t=e.taxons),t},eventCallback:function(){return(e,t,...o)=>{if(e==="annotation"){const i={feature:t,userData:o,eventType:e};this.annotationEventCallback(i,t)}else if(e==="context-lost")this.onContextLost();else if(e==="context-restored")this.onContextRestored();else if(e==="pan-zoom")this.$emit("pan-zoom-callback",t);else{const i=t.label,a=[t.models],r=this.entry,s=this.biologicalSex,l=t.alert,c=this.getTaxons(t);let d=[{dataset:t.dataset,biologicalSex:s,taxonomy:r,resource:a,label:i,feature:t,protocol:this.selectedSimulation,userData:o,eventType:e,provenanceTaxonomy:c,alert:l}];if(e==="click"){const f=!t[0];if(!f){d=[];const p=t.mapUUID,g=new Set;for(let[h,m]of Object.entries(t))if(h!=="mapUUID"){const b=m.featureId,y=m.label,v=[m.models],T=this.getTaxons(m);if(g.has(b))continue;g.add(b),d.push({dataset:m.dataset,biologicalSex:s,taxonomy:r,resource:v,label:y,feature:m,userData:o,eventType:e,provenanceTaxonomy:T,alert:m.alert,mapUUID:p})}}const u=f?t:t[0];if(this.setConnectivityDataSource(this.viewingMode,u),this.viewingMode!=="Neuron Connection"){if(this.currentActive=u.models?u.models:"",this.activeDrawTool&&!this.isValidDrawnCreated){const p=u.featureId||this.existDrawnFeatures.find(g=>g.id===u.id);if(this.activeDrawTool==="LineString"&&p){const g=u.featureId?u.featureId:u.id,h=u.label?u.label:`Feature ${u.id}`;this.connectionEntry[` ${g}`]=Object.assign({label:h},Object.fromEntries(Object.entries(u).filter(([m])=>["featureId","models"].includes(m)).map(([m,b])=>[m==="featureId"?"id":m,b])))}}}t&&t.type!=="marker"&&!this.activeDrawTool&&this.checkAndCreatePopups(d)}else e==="mouseenter"&&this.viewingMode!=="Neuron Connection"&&(this.currentHover=t.models?t.models:"");this.$emit("resource-selected",d)}}},setConnectivityDataSource:function(e,t){var o;e==="Exploration"?this.connectivityDataSource=(o=t.models)!=null&&o.startsWith("ilxtr:")?t.models:"":this.connectivityDataSource=t.featureId||t.id},changeViewingMode:function(e){e&&(this.viewingMode=e),this.manualAbortedOnClose()},removeActiveTooltips:function(){this.mapImp&&this.mapImp.removePopup(),this.$el.querySelectorAll(".flatmap-tooltip-popup").forEach(t=>t.remove())},createTooltipForConnectivity:function(e,t){const o=document.createElement("div");o.classList.add("flatmap-feature-label"),e.forEach((i,a)=>{const{label:r}=i;if(o.append(Yn(r)),a+1<e.length){const s=document.createElement("hr");o.appendChild(s)}}),this.mapImp.showPopup(t,o,{className:"custom-popup flatmap-tooltip-popup",positionAtLastClick:!1,preserveSelection:!0})},showConnectivityTooltips:function(e){const{connectivityInfo:t,data:o}=e,i=[],a=[],r=[],s=[];if(t&&t.featureId&&i.push(...t.featureId),this.mapImp){if(o.forEach(p=>{const g=this.mapImp.search(p.id);if(g!=null&&g.results.length){const h=g==null?void 0:g.results[0].featureId;r.push({featureId:h,...p})}else s.push(p)}),r.length){let p=r[0].featureId;this.mapImp.annotations.forEach(g=>{const h=g["anatomical-nodes"];if(h){const m=h.join("");r.every(y=>m.indexOf(y.id)!==-1)&&(p=g.featureId,a.push(p))}}),this.createTooltipForConnectivity(r,p)}else this.removeActiveTooltips();s.length&&this.emitConnectivityError(s);const l=i.reduce((p,g)=>{const h=this.mapImp.pathways.paths[g],m=h?h.connectivity:null;if(m){const b=m.flat(1/0);p.push(...b)}return p},[]),c=[...new Set(l)],d=[...i,...c],u=[...this.mapImp.modelFeatureIdList(d),...a];this.mapImp.selectGeoJSONFeatures(u)}},showConnectivitiesByReference:function(e){this.searchConnectivitiesByReference(e).then(t=>{this.mapImp.selectFeatures(t)})},searchConnectivitiesByReference:async function(e){const t=sessionStorage.getItem("flatmap-knowledge");let o=[];return t?o=await By(e):o=await xy(this.mapImp,e,this.flatmapQueries),o},emitConnectivityError:function(e){this.$emit("connectivity-error",{data:{errorData:e,errorMessage:Fy}})},checkConnectivityTooltipEntry:function(e){return e!=null&&e.length?e.find(t=>{var o,i;return((o=t==null?void 0:t.destinations)==null?void 0:o.length)||((i=t==null?void 0:t.components)==null?void 0:i.length)})!==void 0:!1},changeConnectivitySource:async function(e){const{entry:t,connectivitySource:o}=e;t.mapId===this.mapImp.id&&(await this.flatmapQueries.queryForConnectivityNew(this.mapImp,t.featureId[0],o),this.tooltipEntry=this.tooltipEntry.map(i=>i.featureId[0]===t.featureId[0]?this.flatmapQueries.updateTooltipData(i):i),this.checkConnectivityTooltipEntry(this.tooltipEntry)&&this.$emit("connectivity-info-open",this.tooltipEntry))},checkAndCreatePopups:async function(e,t=!0){var o;if(this.viewingMode==="Annotation"){const i=e.filter(a=>a.feature).map(a=>a.feature);if(i.length>0)if(this.annotationSidebar&&this.previousDeletedEvent.type==="deleted"&&(this.annotationEntry=[{...this.previousDeletedEvent,resourceId:this.serverURL}],this.annotationEventCallback({},{type:"aborted"})),this.annotationEntry=[],i.forEach(a=>{var r;this.annotationEntry.push({...a,resourceId:this.serverURL,featureId:a.featureId?a.featureId:(r=a.feature)==null?void 0:r.id,offline:this.offlineAnnotationEnabled})}),i[0].feature)this.activeDrawTool||this.activeDrawMode||this.isValidDrawnCreated?(this.featureAnnotationSubmitted=!1,this.activeDrawTool&&this.createConnectivityBody(),this.displayTooltip(i[0].feature.id,$y(i[0].feature.geometry))):this.rollbackAnnotationEvent();else{const a=this.annotationEntry.filter(r=>r.featureId&&r.models).map(r=>r.models);a.length>0&&this.displayTooltip(a)}else this.annotation={}}else if(this.viewingMode==="Neuron Connection"&&t){const i=e.map(r=>r.resource[0]);if(i.find(r=>!r.startsWith("ilxtr:"))){const r=Array.isArray(i)?[...i]:[i];r.length===1&&r.push([]);const s=(o=e[0].feature)==null?void 0:o.featureId,l=this.mapImp.annotations.get(s),c=l==null?void 0:l["anatomical-nodes"],d=l==null?void 0:l.models;let f,u=r;const p=l==null?void 0:l.models;c!=null&&c.length&&(f=c.find(k=>JSON.parse(k)[0]===d)),f?u=JSON.parse(f):p&&(u=[p,[]]);const g=this.mapImp.knowledgeSource,h=u.flat(1/0),m=[...new Set(h)],y=(await ut.fetchLabels(this.flatmapAPI,m)).reduce((k,E)=>{const O=E[0],B=JSON.parse(E[1]);return k.push({id:O,label:B.label,source:B.source}),k},[]);y.sort((k,E)=>k.id===E.id?k.source===g&&E.source!==g?-1:k.source!==g&&E.source===g?1:0:k.id.localeCompare(E.id));const v=[];for(let k=0;k<m.length;k++){const E=y.find(O=>O.id===m[k]);E&&v.push(E.label)}const T=Yn(v.join(", ")),S={facet:JSON.stringify(u),facetPropPath:`flatmap.connectivity.source.${this.connectionType.toLowerCase()}`,tagLabel:T,term:this.connectionType};this.connectivityFilters.some(k=>k.facet===S.facet&&k.facetPropPath===S.facetPropPath)||this.connectivityFilters.push(S),this.$emit("neuron-connection-feature-click",{filters:this.connectivityFilters,search:""})}else await this.openConnectivityInfo(e)}else await this.openConnectivityInfo(e)},openConnectivityInfo:async function(e){bs(this.mapImp,this.flatmapQueries);let t=[];if(this.tooltipEntry=e.filter(o=>o.resource[0]in this.mapImp.pathways.paths).map(o=>({title:o.label,featureId:o.resource,ready:!1})),this.tooltipEntry.length){this.$emit("connectivity-info-open",this.tooltipEntry);for(let i=0;i<e.length;i++)t.push(await this.getKnowledgeTooltip(e[i]));this.tooltipEntry=await Promise.all(t);const o=this.tooltipEntry.map(i=>i.featureId[0]);o.length>0&&this.displayTooltip(o)}},updateConnectivityFilters:function(e){e.length&&(this.connectivityFilters=e.filter(t=>t.facet.toLowerCase()!=="show all"))},resetConnectivityfilters:function(e){e.length?this.connectivityFilters=this.connectivityFilters.filter(t=>e.some(o=>o.facetPropPath===t.facetPropPath&&o.facet!==t.facet)):this.connectivityFilters=[]},getKnowledgeTooltip:async function(e){const t=await this.flatmapQueries.retrieveFlatmapKnowledgeForEvent(this.mapImp,e);let o=await this.flatmapQueries.createTooltipData(this.mapImp,e);return(t&&t[0]||e.feature.hyperlinks&&e.feature.hyperlinks.length>0)&&(o.featuresAlert=e.alert,o.knowledgeSource=Jn(this.mapImp),o.mapId=this.mapImp.mapMetadata.id,o.mapuuid=this.mapImp.mapMetadata.uuid),o.ready=!0,o},popUpCssHacks:function(){const e=document.querySelector(".flatmap-tooltip-popup"),t=document.querySelector(".maplibregl-popup-close-button");e&&(e.style.display="none"),t.style.display="block",this.$refs.tooltip.$el.style.display="flex",t.onclick=()=>{this.$emit("connectivity-info-close"),e&&(e.style.display="block")}},closeTooltip:function(){this.$refs.tooltip&&(this.$refs.tooltip.$el.style.display="none"),document.querySelectorAll(".maplibregl-popup").forEach(e=>{e.style.display="none"})},showPopup:function(e,t,o){let i=o;this.mapImp&&(i?i.className||(i.className="custom-popup"):i={className:"custom-popup",positionAtLastClick:!0},this.mapImp.showPopup(e,t,i))},showMarkerPopup:function(e,t,o){this.mapImp&&this.mapImp.showMarkerPopup(e,t,o)},closeMinimap:function(){let e=this.$refs.flatmapContainer.querySelector(".maplibregl-ctrl-minimap");this.minimapSmall?(e.classList.add("enlarge"),e.classList.remove("shrink")):(e.classList.add("shrink"),e.classList.remove("enlarge")),this.minimapSmall=!this.minimapSmall},addResizeButtonToMinimap:function(){let e=this.$refs.flatmapContainer.querySelector(".maplibregl-ctrl-minimap");e&&(this.$refs.minimapResize&&this.$refs.minimapResize.$el.parentNode&&this.$refs.minimapResize.$el.parentNode.removeChild(this.$refs.minimapResize.$el),e.appendChild(this.$refs.minimapResize.$el),this.minimapResizeShow=!0)},setHelpMode:function(e){const t=this.hoverVisibilities.length,o=t-1,i=this.hoverVisibilities[this.helpModeActiveIndex];if(i){const r=i==null?void 0:i.refs,s=i==null?void 0:i.ref,l=this.$refs[r||s];if(l){const{parentElement:c,nextElementSibling:d}=l.$el,f=u=>u&&(u.classList.contains("pathway-container")||u.classList.contains("pathway-location"));(f(c)||f(d))&&(this.requiresDrawer?this.drawerOpen=!0:this.helpModeActiveIndex+=1)}else this.helpModeActiveIndex+=1,this.setHelpMode(e)}const a=this.hoverVisibilities[this.helpModeActiveIndex];(a==null?void 0:a.ref)==="checkBoxPopover"&&!this.showPathwayFilter&&(this.helpModeActiveIndex+=1,this.setHelpMode(e)),e||(this.helpModeActiveIndex=this.helpModeInitialIndex),this.viewingMode!=="Annotation"&&this.helpModeActiveIndex>9&&(this.helpModeActiveIndex=o),e&&this.helpModeActiveIndex>=o&&this.$emit("help-mode-last-item",!0),e&&!this.helpModeDialog?(this.inHelp=!0,this.hoverVisibilities.forEach(r=>{r.value=!0})):e&&this.helpModeDialog&&t>this.helpModeActiveIndex?this.helpModeActiveIndex>-1?(this.closeFlatmapHelpPopup(),setTimeout(()=>{this.inHelp=!1,this.hoverVisibilities.forEach(r=>{r.value=!1}),this.showTooltip(this.helpModeActiveIndex,200)},300)):this.helpModeActiveIndex===-1&&this.openFlatmapHelpPopup():(this.inHelp=!1,this.hoverVisibilities.forEach(r=>{r.value=!1}),this.closeFlatmapHelpPopup())},showTooltip:function(e,t=500){this.inHelp||(clearTimeout(this.tooltipWait[e]),this.tooltipWait[e]=setTimeout(()=>{this.hoverVisibilities[e].value=!0,this.$emit("shown-tooltip")},t))},hideTooltip:function(e,t=500){this.inHelp||(clearTimeout(this.tooltipWait[e]),this.tooltipWait[e]=setTimeout(()=>{this.hoverVisibilities[e].value=!1},t))},displayTooltip:function(e,t=void 0){let o;console.log("Displaying tooltip for feature:",e);let i={className:"flatmapvuer-popover"};if(t)o=e,i.annotationFeatureGeometry=t,this.annotationEntry.length&&(i.annotationEvent={type:this.annotationEntry[0].type,feature:this.annotationEntry[0].feature});else{const a=Array.isArray(e)?e[0]:e;a&&(o=this.mapImp.modelFeatureIds(a)[0]),this.activeDrawTool||(i.positionAtLastClick=!0)}this.connectivityInfoSidebar&&this.tooltipEntry.length&&this.viewingMode!=="Annotation"&&this.checkConnectivityTooltipEntry(this.tooltipEntry)&&this.$emit("connectivity-info-open",this.tooltipEntry),this.annotationSidebar&&this.viewingMode==="Annotation"&&this.$emit("annotation-open",{annotationEntry:this.annotationEntry,commitCallback:this.commitAnnotationEvent}),o&&!this.disableUI&&(this.viewingMode==="Annotation"&&!this.annotationSidebar||this.viewingMode==="Exploration"&&!this.connectivityInfoSidebar)&&(this.tooltipDisplay=!0,this.$nextTick(()=>{this.mapImp.showPopup(o,this.$refs.tooltip.$el,i),this.popUpCssHacks()}))},moveMap:function(e,t={}){if(this.mapImp){const{offsetX:o=0,offsetY:i=0,zoom:a=4}=t,r=this.mapImp.map,s=this.mapImp.bounds.toArray();this.mapImp.zoomToFeatures(e,{noZoomIn:!0}),this.showPathwaysDrawer(!1),s!=null&&s.length&&setTimeout(()=>{r.fitBounds(s,{offset:[o,i],zoom:a,animate:!0})})}},openFlatmapHelpPopup:function(){if(this.mapImp){let e=this.mapImp.modelFeatureIds("UBERON:0000948");e&&e.length>0&&(this.mapImp.showPopup(e[0],"Click for more information",{anchor:"top",className:"flatmap-popup-popper"}),this.$emit("shown-map-tooltip"))}},closeFlatmapHelpPopup:function(){this.$el.querySelectorAll(".maplibregl-popup-close-button").forEach(e=>{e.click()})},getLabels:function(){let e=[];if(this.mapImp){let t=this.mapImp.annotations;for(let o of t.values())o.label&&e.push(o.label);return Array.from(new Set(e))}},getVisibilityState:function(e){if(["alertSelection","pathwaysSelection","taxonSelection"].forEach(o=>{let i=this.$refs[o];i&&(e[o]=i.getState())}),this.$refs.treeControls){const o=this.$refs.treeControls.$refs.regionTree.getCheckedKeys();e.systemsSelection=o.filter(i=>!i.includes("."))}},setVisibilityState:function(e){["alertSelection","pathwaysSelection","taxonSelection"].forEach(o=>{const i=e[o];if(i){const a=this.$refs[o];a&&a.setState(i)}}),"systemsSelection"in e&&this.$refs.treeControls&&(this.$refs.treeControls.$refs.regionTree.setCheckedKeys(e.systemsSelection),this.systems[0].children.forEach(o=>{this.mapImp.enableSystem(o.key,e.systemsSelection.includes(o.key))}))},getState:function(){if(this.mapImp){let e={entry:this.entry,viewport:this.mapImp.getState()};const t=this.mapImp.getIdentifier();return this.biologicalSex?e.biologicalSex=this.biologicalSex:t&&t.biologicalSex&&(e.biologicalSex=t.biologicalSex),t&&t.uuid&&(e.uuid=t.uuid),e.viewingMode=this.viewingMode,e.searchTerm=this.searchTerm,e.flightPath3D=this.flightPath3DRadio,e.colour=this.colourRadio,e.outlines=this.outlinesRadio,e.background=this.currentBackground,this.offlineAnnotationEnabled&&(e.offlineAnnotations=sessionStorage.getItem("anonymous-annotation")),this.getVisibilityState(e),e}},setState:function(e){e&&(this.mapImp&&e.entry&&this.entry==e.entry&&(!e.biologicalSex||e.biologicalSex===this.biologicalSex)?this.restoreMapState(e):this.createFlatmap(e),this.setStateRequired=!1)},restoreMapState:function(e){if(e){if(e.viewport&&this.mapImp.setState(e.viewport),e.offlineAnnotations&&sessionStorage.setItem("anonymous-annotation",e.offlineAnnotations),e.viewingMode&&this.changeViewingMode(e.viewingMode),"flightPath3D"in e&&this.setFlightPath3D(e.flightPath3D),"colour"in e&&this.setColour(e.colour),"outlines"in e&&this.setOutlines(e.outlines),e.background&&this.backgroundChangeCallback(e.background),e.searchTerm){const t=e.searchTerm;this.searchAndShowResult(t,!0,!0)}this.setVisibilityState(e)}},setFlightPathInfo:function(e){(e===1.6||e>1.6)&&(this.displayFlightPathOption=!0,this.setFlightPath3D(!1))},createFlatmap:function(e){if(!this.mapImp&&!this.loading){this.loading=!0,this.flatmapError=null;let t={taxon:this.entry};this.uuid&&(t.uuid=this.uuid),e?(e.uuid?t={uuid:e.uuid}:e.entry&&(t.taxon=e.entry),e.biologicalSex?t.biologicalSex=e.biologicalSex:t.taxon==="NCBITaxon:9606"&&(t.biologicalSex="PATO:0000384")):this.biologicalSex&&(t.biologicalSex=this.biologicalSex),console.log("tooltip delay"),this.mapManagerRef.loadMap(t,this.eventCallback(),{minZoom:this.minZoom,tooltips:this.tooltips,minimap:!1,container:this.$refs.display,tooltipDelay:15}).then(i=>{this.mapImp=i,this.serverURL=this.mapImp.makeServerUrl("").slice(0,-1);let a=this.mapImp.details.version;this.setFlightPathInfo(a);const r=this._stateToBeSet?this._stateToBeSet:e;this.onFlatmapReady(r),this.$nextTick(()=>this.restoreMapState(r))}).catch(i=>{var a,r;if(console.error("Flatmap loading error:",i),this.flatmapError={},i.message&&i.message.indexOf("Unknown map")!==-1?(this.flatmapError.title="Unknown Map!",this.flatmapError.messages=Object.keys(t).map(s=>`${s==="uuid"?"UUID":Yn(s)}: ${t[s]}`)):(this.flatmapError.title="Error Loading Map!",this.flatmapError.messages=[i.message?i.message:i.toString(),"Please try again later or contact support if the problem persists."]),(r=(a=this.$parent)==null?void 0:a.$refs)!=null&&r.multiContainer){const s=this.$parent;this.flatmapError.button={text:"Load Default Map",callback:()=>{const l=s.initial;s.setSpecies(l,void 0,3)}}}this.loading=!1})}else e&&(this._stateToBeSet={...e},this.mapImp&&!this.loading&&this.restoreMapState(this._stateToBeSet))},computePathControlsMaximumHeight(){const e=this.$refs.display;if(e){const t=getComputedStyle(e),o=parseInt(t.paddingTop)+parseInt(t.paddingBottom),i=e.clientHeight-o;this.pathwaysMaxHeight=i-170}},mapResize:function(){try{this.computePathControlsMaximumHeight(),this.mapImp&&this.mapImp.resize()}catch{console.error("Map resize error")}},getFilterSources:function(){const e=["kind","taxons"];let t=new Set,o=new Set,i=new Map;for(const r of this.mapImp.annotations.values())if(r.source){"alert"in r?t.add(r.source):o.add(r.source);for(const[s,l]of Object.entries(r))if(e.includes(s)){i.has(s)||i.set(s,new Map);const c=i.get(s),d=f=>{const u=f;c.has(u)||c.set(u,new Set),c.get(u).add(`${r.source}`)};Array.isArray(l)?l.forEach(d):d(l)}}let a={alert:{with:[...t],without:[...o]}};for(const[r,s]of i.entries()){a[r]={};for(const[l,c]of s.entries())a[r][l]=[...c.values()]}return a},getFilterOptions:async function(e,t){const o=t||this.getFlatmapKnowledge(),i=this.pathways;return await ut.getFlatmapFilterOptions(this.flatmapAPI,e,o,i)},onFlatmapReady:function(e){var t,o,i;if(this.sensor=n.markRaw(new Vy(this.$refs.display,this.mapResize)),((t=this.mapImp.options)==null?void 0:t.style)==="functional"&&(this.isFC=!0),this.mapImp.setBackgroundOpacity(1),this.backgroundChangeCallback(this.currentBackground),this.pathways=this.mapImp.pathTypes(),this.pathways=this.pathways.filter(a=>a.enabled&&a.type!=="other"),this.processSystems(this.mapImp.getSystems()),this.processTaxon(this.mapImp.taxonIdentifiers,e?e.taxonSelection:void 0),this.containsAlert="alert"in this.mapImp.featureFilterRanges(),this.flatmapLegends=this.mapImp.flatmapLegend,this.loading=!1,this.computePathControlsMaximumHeight(),this.mapResize(),this.handleMapClick(),this.setInitMapState(),this.displayMinimap){const a={position:"top-right"};this.mapImp.createMinimap(a),this.addResizeButtonToMinimap()}this.currentFlatmapUuid=(i=(o=this.mapImp)==null?void 0:o.mapMetadata)==null?void 0:i.uuid,this.$emit("ready",this)},handleMapClick:function(){const e=this.mapImp.map;e&&e.on("click",t=>{this.connectivityDataSource||this.$emit("connectivity-info-close"),this.connectivityDataSource=""})},onContextLost:function(){this.lastViewport=n.markRaw(this.mapImp.getState()),this.flatmapError={},this.flatmapError.title="GL context lost!",this.flatmapError.messages=[`A display issue has occurred due
|
|
25
25
|
to a limit on available WebGL contexts. You can restore the display
|
|
26
26
|
using the Restore Context button. Please see the
|
|
27
27
|
<a href="https://docs.sparc.science/docs/integrated-maps-viewer-overview#limit-on-available-webgl-contexts" target='_blank'>documentation</a>
|
|
28
|
-
for more details.`],this.flatmapError.button={text:"Restore Context",callback:()=>{this.forceContextRestore()}}},onContextRestored:function(){if(this.mapImp){this.handleMapClick(),this.setInitMapState();const e=this.getState();if(e&&(e.viewport=this.lastViewport),this.restoreMapState(e),this.displayMinimap){const t={position:"top-right"};this.mapImp.createMinimap(t),this.addResizeButtonToMinimap()}this.filterToRestore&&(this.mapImp.setVisibilityFilter(this.filterToRestore),this.filterToRestore=void 0),this.$emit("context-restored",this)}},showPathwaysDrawer:function(e){this.drawerOpen=e},searchAndShowResult:function(e,t,o=!0){var i;if(this.mapImp){if(e===void 0||e==="")return this.mapImp.clearSearchResults(),this.viewingMode==="Exploration"?this.$emit("connectivity-info-close"):this.viewingMode==="Annotation"&&this.manualAbortedOnClose(),this.searchTerm="",!0;{const a=this.mapImp.search(e);if((i=a==null?void 0:a.results)!=null&&i.length){if(this.mapImp.showSearchResults(a),t){let r;for(let s=0;s<a.results.length;s++){r=a.results[s].featureId;const l=this.mapImp.annotation(r);if(r&&(l!=null&&l.label))break}if(r){const s=this.mapImp.featureProperties(r),l={resource:[s.models],feature:s,label:s.label,provenanceTaxonomy:s.taxons,alert:s.alert};this.checkAndCreatePopups([l],o),this.mapImp.showPopup(r,Gn(s.label),{className:"custom-popup",positionAtLastClick:!1,preserveSelection:!0})}}return this.searchTerm=e,!0}else this.mapImp.clearSearchResults()}}return!1},highlightConnectedPaths:function(e){if(e.length){const t=e.filter(i=>i in this.mapImp.pathways.paths),o=this.mapImp.modelFeatureIdList(t);this.mapImp.selectGeoJSONFeatures(o)}},searchSuggestions:function(e){return this.mapImp?this.mapImp.search(e):[]},onActionClick:function(e){pi.emit("onActionClick",e)},setConnectionType:function(e){this.connectionType=e}},props:{entry:{type:String,required:!0},uuid:String,biologicalSex:{type:String,default:""},minZoom:{type:Number,default:1},tooltips:{type:Boolean,default:!0},helpMode:{type:Boolean,default:!1},helpModeActiveItem:{type:Number,default:0},helpModeDialog:{type:Boolean,default:!1},helpModeLastItem:{type:Boolean,default:!1},helpModeInitialIndex:{type:Number,default:0},render:{type:Boolean,default:!0},renderAtMounted:{type:Boolean,default:!0},displayMinimap:{type:Boolean,default:!1},displayWarning:{type:Boolean,default:!1},enableOpenMapUI:{type:Boolean,default:!1},openMapOptions:{type:Array,default:function(){return[{display:"Open AC Map",key:"AC"},{display:"Open FC Map",key:"FC"},{display:"Open 3D Human Map",key:"3D"}]}},showStarInLegend:{type:Boolean,default:!1},isLegacy:{type:Boolean,default:!1},displayLatestChanges:{type:Boolean,default:!1},state:{type:Object,default:void 0},mapManager:{type:Object,default:void 0},flatmapAPI:{type:String,default:"https://mapcore-demo.org/current/flatmap/v3/"},sparcAPI:{type:String,default:"https://api.sparc.science/"},disableUI:{type:Boolean,default:!1},connectivityInfoSidebar:{type:Boolean,default:!1},annotationSidebar:{type:Boolean,default:!1},showLocalSettings:{type:Boolean,default:!0},showOpenMapButton:{type:Boolean,default:!0},showPathwayFilter:{type:Boolean,default:!0},externalLegends:{type:Array,default:function(){return[]}}},provide(){return{flatmapAPI:this.flatmapAPI,sparcAPI:this.sparcAPI,userApiKey:this.userToken}},data:function(){return{filterToRestore:void 0,flatmapError:null,sensor:null,mapManagerRef:void 0,flatmapQueries:void 0,annotationEntry:[],tooltipDisplay:!1,serverURL:void 0,layers:[],pathways:[],initMapState:n.markRaw({}),sckanDisplay:[{label:"Display Path with SCKAN",key:"VALID"}],systems:[],taxonConnectivity:[],pathwaysMaxHeight:1e3,tooltipWait:n.markRaw([]),hoverVisibilities:[{value:!1,ref:"markerPopover"},{value:!1,ref:"zoomInPopover"},{value:!1,ref:"zoomOutPopover"},{value:!1,ref:"zoomFitPopover"},{value:!1,ref:"openMapPopover"},{value:!1,ref:"settingsPopover"},{value:!1,ref:"checkBoxPopover"},{value:!1,ref:"warningPopover"},{value:!1,ref:"whatsNewPopover"},{value:!1,ref:"featuredMarkerPopover"},{value:!1,refs:"toolbarPopover",ref:"editPopover"},{value:!1,refs:"toolbarPopover",ref:"deletePopover"},{value:!1,refs:"toolbarPopover",ref:"pointPopover"},{value:!1,refs:"toolbarPopover",ref:"lineStringPopover"},{value:!1,refs:"toolbarPopover",ref:"polygonPopover"},{value:!1,refs:"toolbarPopover",ref:"connectionPopover"}],helpModeActiveIndex:this.helpModeInitialIndex,yellowstar:Ly,isFC:!1,inHelp:!1,currentBackground:"white",availableBackground:["white","lightskyblue","black"],loading:!1,flatmapMarker:Ty,tooltipEntry:[],connectivityDataSource:"",connectivityTooltipVisible:!1,drawerOpen:!1,flightPath3DRadio:!1,displayFlightPathOption:!1,colourRadio:!0,outlinesRadio:!0,minimapResizeShow:!1,minimapSmall:!1,currentActive:"",selectedDrawnFeature:void 0,currentHover:"",viewingMode:"Exploration",viewingModes:{Exploration:"Find relevant research and view detail of neural pathways by selecting a pathway to view its connections and data sources","Neuron Connection":"Discover Neuron connections by selecting a neuron and viewing its associated network connections",Annotation:["View feature annotations","Add, comment on and view feature annotations"]},connectionType:"All",offlineAnnotationEnabled:!1,offlineAnnotations:[],annotationFrom:"Anyone",annotatedSource:["Anyone","Me","Others"],openMapRef:void 0,backgroundIconRef:void 0,toolbarOptions:["Edit","Delete","Point","LineString","Polygon","Connection"],annotator:void 0,authorisedUser:void 0,activeDrawMode:void 0,activeDrawTool:void 0,featureAnnotationSubmitted:!1,drawnCreatedEvent:{},previousEditEvent:{},previousDeletedEvent:{},connectionEntry:{},existDrawnFeatures:[],doubleClickedFeature:!1,containsAlert:!1,alertOptions:[{label:"Display Path With Alerts",key:"alert",enabled:!0},{label:"Display Path Without Alerts",key:"withoutAlert",enabled:!0}],mapFilters:n.markRaw({alert:{with:!0,without:!0}}),searchTerm:"",taxonLeaveDelay:void 0,connectivityFilters:[],flatmapLegends:[],lastViewport:void 0}},computed:{...Ci.mapState(Ry,["userToken"]),isValidDrawnCreated:function(){return Object.keys(this.drawnCreatedEvent).length>0},requiresDrawer:function(){var e,t,o,i;return this.loading?(this.drawerOpen=!1,!1):((e=this.systems)==null?void 0:e.length)>0||this.containsAlert&&this.alertOptions||((t=this.pathways)==null?void 0:t.length)>0||((o=this.taxonConnectivity)==null?void 0:o.length)>0||((i=this.legendEntry)==null?void 0:i.length)>0?(this.drawerOpen=!0,!0):(this.drawerOpen=!1,!1)},modeDescription:function(){let e=this.viewingModes[this.viewingMode];return this.viewingMode==="Annotation"?this.authorisedUser?e[1]:e[0]:e},legendEntry:function(){return[...this.flatmapLegends,...this.externalLegends]},showDatasetMarkerTooltip:function(){return this.hoverVisibilities[9].value}},watch:{entry:function(){this.state||this.createFlatmap()},helpMode:function(e,t){e!==t&&this.setHelpMode(e)},helpModeActiveItem:function(){this.helpMode&&(this.helpModeActiveIndex+=1,this.setHelpMode(this.helpMode))},render:function(e){e&&this.mapImp&&this.mapImp.contextLost&&!this.loading&&this.$nextTick(()=>{this.forceContextRestore()})},state:{handler:function(e,t){e!==t&&(this.mapManagerRef?this.setState(e):this.setStateRequired=!0)},immediate:!0,deep:!0},viewingMode:function(e){this.clearAnnotationFeature(),e==="Annotation"&&(this.loading=!0,this.annotator.authenticate(this.userToken).then(t=>{t.name&&t.email&&t.canUpdate?(this.authorisedUser=t,this.offlineAnnotationEnabled=!1):(this.authorisedUser=void 0,this.offlineAnnotationEnabled=!0),this.emitOfflineAnnotationUpdate(),this.setFeatureAnnotated(),this.addAnnotationFeature(),this.loading=!1}))},disableUI:function(e){e&&this.closeTooltip()},activeDrawTool:function(e){let t=[],o={x:null,y:null};const i=this.$el.querySelector(".maplibregl-canvas"),a=()=>{i.removeEventListener("keydown",r),i.removeEventListener("click",s)},r=l=>{if(!["Escape","Enter"].includes(l.key))return;const c=e==="Point"&&t.length===1||e==="LineString"&&t.length>=2||e==="Polygon"&&t.length>=3;(l.key==="Escape"||l.key==="Enter"&&!c)&&(this.activeDrawTool=void 0),a()},s=l=>{const c=i.getBoundingClientRect(),d=l.clientX-c.left,f=l.clientY-c.top;if(Math.sqrt((d-o.x)**2+(f-o.y)**2)<8){this.isValidDrawnCreated||(this.activeDrawTool=void 0),a();return}o={x:d,y:f},t.push(o)};e&&(a(),i.addEventListener("keydown",r),i.addEventListener("click",s))}},created:function(){this.mapManager?this.mapManagerRef=this.mapManager:(this.mapManagerRef=n.markRaw(new vi.MapViewer(this.flatmapAPI,{container:void 0})),this.$emit("mapmanager-loaded",this.mapManagerRef))},mounted:function(){this.openMapRef=n.shallowRef(this.$refs.openMapRef),this.backgroundIconRef=n.shallowRef(this.$refs.backgroundIconRef),this.tooltipWait.length=this.hoverVisibilities.length,this.flatmapQueries=n.markRaw(new Ay),this.flatmapQueries.initialise(this.flatmapAPI),this.state?this.setStateRequired&&this.setState(this.state):this.renderAtMounted&&this.createFlatmap(),ms()}},jy={class:"flatmap-container",ref:"flatmapContainer","element-loading-text":"Loading...","element-loading-background":"rgba(0, 0, 0, 0.3)"},Hy={style:{height:"100%",width:"100%",position:"relative","overflow-y":"none"}},Ky={style:{height:"100%",width:"100%"},ref:"display",class:"flatmap-display"},Uy={class:"beta-popovers"},Wy={key:2,class:"warning-text"},qy={class:"bottom-right-control"},Gy=["innerHTML"],Jy={style:{"margin-bottom":"2px"}},Yy={key:0,class:"viewing-mode-title"},Zy=["onClick"],Qy=["onClick"];function Xy(e,t,o,i,a,r){const s=n.resolveComponent("map-svg-sprite-color"),l=li,c=W.WarningFilled,d=be,f=on,u=W.ArrowDown,p=n.resolveComponent("DrawToolbar"),g=n.resolveComponent("map-svg-icon"),h=uy,m=n.resolveComponent("tree-controls"),y=ps,b=W.ArrowLeft,C=ei,I=tn,k=nn,v=ii,S=Un,E=ns,O=os,x=n.resolveComponent("Tooltip"),N=ai,B=si;return n.withDirectives((n.openBlock(),n.createElementBlock("div",jy,[n.createVNode(s),n.createElementVNode("div",Hy,[n.createElementVNode("div",Ky,null,512),e.flatmapError?(n.openBlock(),n.createBlock(l,{key:0,flatmapError:e.flatmapError},null,8,["flatmapError"])):n.createCommentVNode("",!0),n.withDirectives(n.createElementVNode("div",Uy,[n.createElementVNode("div",null,[o.displayWarning||o.isLegacy?(n.openBlock(),n.createBlock(f,{key:0,placement:"right","popper-class":"warning-popper flatmap-popper",teleported:!1,visible:e.hoverVisibilities[7].value,ref:"warningPopover"},{reference:n.withCtx(()=>[n.createElementVNode("div",{class:"warning-icon",onMouseover:t[7]||(t[7]=T=>r.showTooltip(7)),onMouseout:t[8]||(t[8]=T=>r.hideTooltip(7))},[o.displayWarning||o.isLegacy?(n.openBlock(),n.createBlock(d,{key:0},{default:n.withCtx(()=>[n.createVNode(c)]),_:1})):n.createCommentVNode("",!0),o.isLegacy?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[t[31]||(t[31]=n.createElementVNode("span",{class:"warning-text"},"Legacy Map",-1)),n.createElementVNode("div",{class:"latest-map-text",onClick:t[6]||(t[6]=(...T)=>r.viewLatestMap&&r.viewLatestMap(...T))}," Click here for the latest map ")],64)):o.displayWarning?(n.openBlock(),n.createElementBlock("span",Wy,"Beta")):n.createCommentVNode("",!0)],32)]),default:n.withCtx(()=>[o.isLegacy?(n.openBlock(),n.createElementBlock("p",{key:0,onMouseover:t[0]||(t[0]=T=>r.showTooltip(7)),onMouseout:t[1]||(t[1]=T=>r.hideTooltip(7))}," This is a legacy map, you may view the latest map instead. ",32)):e.isFC?(n.openBlock(),n.createElementBlock("p",{key:1,onMouseover:t[2]||(t[2]=T=>r.showTooltip(7)),onMouseout:t[3]||(t[3]=T=>r.hideTooltip(7))},t[29]||(t[29]=[n.createTextVNode(" This map displays the connectivity of individual neurons. Specifically, those which align with (parts of) the neuron populations from the "),n.createElementVNode("a",{href:"https://sparc.science/resources/1ZUKXU2YmLcn2reCyXjlew",target:"_blank"}," ApiNATOMY ",-1),n.createTextVNode(" models available in "),n.createElementVNode("a",{href:"https://sparc.science/resources/6eg3VpJbwQR4B84CjrvmyD",target:"_blank"}," SCKAN ",-1),n.createTextVNode(". ")]),32)):(n.openBlock(),n.createElementBlock("p",{key:2,onMouseover:t[4]||(t[4]=T=>r.showTooltip(7)),onMouseout:t[5]||(t[5]=T=>r.hideTooltip(7))},t[30]||(t[30]=[n.createTextVNode(" This map displays the connectivity of neuron populations. Specifically, those from the primarily rat-based "),n.createElementVNode("a",{href:"https://sparc.science/resources/1ZUKXU2YmLcn2reCyXjlew",target:"_blank"}," ApiNATOMY ",-1),n.createTextVNode(" models available in "),n.createElementVNode("a",{href:"https://sparc.science/resources/6eg3VpJbwQR4B84CjrvmyD",target:"_blank"}," SCKAN ",-1),n.createTextVNode(". New connectivity and species specificity will be added as the SPARC program progresses. ")]),32))]),_:1},8,["visible"])):n.createCommentVNode("",!0)]),o.displayLatestChanges?(n.openBlock(),n.createBlock(f,{key:0,placement:"right",teleported:!1,trigger:"manual","popper-class":"warning-popper flatmap-popper",visible:e.hoverVisibilities[8].value,ref:"whatsNewPopover"},{reference:n.withCtx(()=>[o.displayLatestChanges?(n.openBlock(),n.createElementBlock("div",{key:0,class:"latest-changesicon",onMouseover:t[9]||(t[9]=T=>r.showTooltip(8)),onMouseout:t[10]||(t[10]=T=>r.hideTooltip(8))},[n.createVNode(d,null,{default:n.withCtx(()=>[n.createVNode(c)]),_:1}),t[32]||(t[32]=n.createElementVNode("span",{class:"warning-text"},"What's new?",-1))],32)):n.createCommentVNode("",!0)]),default:n.withCtx(()=>t[33]||(t[33]=[n.createElementVNode("b",null,"Connectivity References",-1),n.createElementVNode("p",null," Connectivity references have been improved and available in various formats. ",-1),n.createElementVNode("b",null,"Improved state storing",-1),n.createElementVNode("p",null," Current selection and visibility filters are now stored when creating a permalink. ",-1)])),_:1},8,["visible"])):n.createCommentVNode("",!0)],512),[[n.vShow,!o.disableUI]]),n.withDirectives(n.createVNode(d,{class:n.normalizeClass(["minimap-resize",{enlarge:e.minimapSmall,shrink:!e.minimapSmall}]),ref:"minimapResize",onClick:r.closeMinimap},{default:n.withCtx(()=>[n.createVNode(u)]),_:1},8,["class","onClick"]),[[n.vShow,e.minimapResizeShow]]),e.viewingMode==="Annotation"&&(e.authorisedUser||e.offlineAnnotationEnabled)&&!o.disableUI?(n.openBlock(),n.createBlock(p,{key:1,mapCanvas:{containerHTML:this.$el,class:".maplibregl-canvas"},toolbarOptions:e.toolbarOptions,activeDrawTool:e.activeDrawTool,activeDrawMode:e.activeDrawMode,newlyDrawnEntry:e.drawnCreatedEvent,connectionEntry:e.connectionEntry,hoverVisibilities:e.hoverVisibilities,onClickToolbar:r.toolbarEvent,onFeatureTooltip:r.connectedFeatureTooltip,onConfirmDrawn:r.confirmDrawnFeature,onCancelDrawn:r.cancelDrawnFeature,onShowTooltip:r.showTooltip,onHideTooltip:r.hideTooltip,ref:"toolbarPopover"},null,8,["mapCanvas","toolbarOptions","activeDrawTool","activeDrawMode","newlyDrawnEntry","connectionEntry","hoverVisibilities","onClickToolbar","onFeatureTooltip","onConfirmDrawn","onCancelDrawn","onShowTooltip","onHideTooltip"])):n.createCommentVNode("",!0),n.withDirectives(n.createElementVNode("div",qy,[n.createVNode(f,{content:"Zoom in",placement:"left",teleported:!1,trigger:"manual",width:"70","popper-class":"flatmap-popper",visible:e.hoverVisibilities[1].value,ref:"zoomInPopover"},{reference:n.withCtx(()=>[n.createElementVNode("div",{class:"icon-button-container",onClick:t[11]||(t[11]=T=>r.zoomIn()),onMouseover:t[12]||(t[12]=T=>r.showTooltip(1)),onMouseout:t[13]||(t[13]=T=>r.hideTooltip(1))},[n.createVNode(g,{class:"icon-button zoomIn",icon:"zoomIn"})],32)]),_:1},8,["visible"]),n.createVNode(f,{content:"Zoom out",placement:"top-end",teleported:!1,trigger:"manual",width:"70","popper-class":"flatmap-popper",visible:e.hoverVisibilities[2].value,ref:"zoomOutPopover"},{reference:n.withCtx(()=>[n.createElementVNode("div",{class:"icon-button-container",onClick:t[14]||(t[14]=T=>r.zoomOut()),onMouseover:t[15]||(t[15]=T=>r.showTooltip(2)),onMouseout:t[16]||(t[16]=T=>r.hideTooltip(2))},[n.createVNode(g,{class:"icon-button zoomOut",icon:"zoomOut"})],32)]),_:1},8,["visible"]),n.createVNode(f,{content:"Reset",placement:"top",teleported:!1,trigger:"manual",width:"70","popper-class":"flatmap-popper",visible:e.hoverVisibilities[3].value,ref:"zoomFitPopover"},{reference:n.withCtx(()=>[n.createElementVNode("div",{class:"icon-button-container",onClick:t[17]||(t[17]=T=>r.resetView()),onMouseover:t[18]||(t[18]=T=>r.showTooltip(3)),onMouseout:t[19]||(t[19]=T=>r.hideTooltip(3))},[n.createVNode(g,{class:"icon-button fitWindow",icon:"fitWindow"})],32)]),default:n.withCtx(()=>[t[34]||(t[34]=n.createElementVNode("div",null,[n.createTextVNode(" Fit to "),n.createElementVNode("br"),n.createTextVNode(" window ")],-1))]),_:1},8,["visible"])],512),[[n.vShow,!o.disableUI]]),n.createVNode(f,{content:"Change pathway visibility",placement:"right",teleported:!1,trigger:"manual",offset:-18,"popper-class":"flatmap-popper",visible:e.hoverVisibilities[6].value,ref:"checkBoxPopover"},{reference:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{class:n.normalizeClass(["pathway-location",{open:e.drawerOpen,close:!e.drawerOpen}])},[n.withDirectives((n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["pathway-container",{open:e.drawerOpen,close:!e.drawerOpen}]),style:n.normalizeStyle({"max-height":e.pathwaysMaxHeight+"px"})},[r.legendEntry.length?(n.openBlock(),n.createBlock(h,{key:0,identifierKey:"prompt",colourKey:"colour",styleKey:"style",legends:r.legendEntry,showStarInLegend:!0,showDatasetMarkerTooltip:r.showDatasetMarkerTooltip,ref:"featuredMarkerPopover",class:"svg-legends-container"},null,8,["legends","showDatasetMarkerTooltip"])):n.createCommentVNode("",!0),n.createVNode(f,{content:"Find these markers for data. The number inside the markers is the number of datasets available for each marker.",placement:"right",teleported:!1,width:"200",trigger:"manual","popper-class":"flatmap-popper flatmap-marker-popper",visible:e.hoverVisibilities[0].value,ref:"markerPopover"},{reference:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{class:"flatmap-marker-help",innerHTML:e.flatmapMarker},null,8,Gy),[[n.vShow,e.hoverVisibilities[0].value],[N,void 0,"markerPopover"]])]),_:1},8,["visible"]),e.isFC&&e.systems&&e.systems.length>0?(n.openBlock(),n.createBlock(m,{key:1,class:"treeControls",mapType:"flatmap",title:"Systems",treeData:e.systems,active:e.currentActive,hover:e.currentHover,onCheckChanged:r.systemSelected,onCheckAll:r.checkAllSystems,onChangeActive:r.ftuSelected,ref:"treeControls"},null,8,["treeData","active","hover","onCheckChanged","onCheckAll","onChangeActive"])):n.createCommentVNode("",!0),e.containsAlert&&e.alertOptions&&o.showPathwayFilter?(n.openBlock(),n.createBlock(y,{title:"Alert",labelKey:"label",identifierKey:"key",selections:e.alertOptions,onChanged:r.alertSelected,onCheckboxMouseEnter:r.alertMouseEnterEmitted,onSelectionsDataChanged:r.onSelectionsDataChanged,onCheckAll:r.checkAllAlerts,ref:"alertSelection",key:"alertSelection"},null,8,["selections","onChanged","onCheckboxMouseEnter","onSelectionsDataChanged","onCheckAll"])):n.createCommentVNode("",!0),e.pathways&&e.pathways.length>0?(n.openBlock(),n.createBlock(y,{title:"Pathways",labelKey:"label",identifierKey:"type",colourStyle:"line",selections:e.pathways,showAsLegend:!o.showPathwayFilter,onChanged:r.pathwaysSelected,onSelectionsDataChanged:r.onSelectionsDataChanged,onCheckAll:r.checkAllPathways,ref:"pathwaysSelection",key:"pathwaysSelection"},null,8,["selections","showAsLegend","onChanged","onSelectionsDataChanged","onCheckAll"])):n.createCommentVNode("",!0),e.taxonConnectivity&&e.taxonConnectivity.length>0&&o.showPathwayFilter?(n.openBlock(),n.createBlock(y,{title:"Studied in",labelKey:"label",identifierKey:"taxon",helpMessage:"Evidence exists that this set of neuron populations have been studied in the given species.",selections:e.taxonConnectivity,onChanged:r.taxonsSelected,onCheckboxMouseEnter:r.taxonMouseEnterEmitted,onSelectionsDataChanged:r.onSelectionsDataChanged,onCheckAll:r.checkAllTaxons,ref:"taxonSelection",key:"taxonSelection"},null,8,["selections","onChanged","onCheckboxMouseEnter","onSelectionsDataChanged","onCheckAll"])):n.createCommentVNode("",!0)],6)),[[N,void 0,"checkBoxPopover"]]),n.createElementVNode("div",{onClick:t[20]||(t[20]=(...T)=>r.toggleDrawer&&r.toggleDrawer(...T)),class:n.normalizeClass(["drawer-button",{open:e.drawerOpen,close:!e.drawerOpen}])},[n.createVNode(d,null,{default:n.withCtx(()=>[n.createVNode(b)]),_:1})],2)],2),[[n.vShow,!o.disableUI&&r.requiresDrawer]])]),_:1},8,["visible"]),e.openMapRef?(n.openBlock(),n.createBlock(f,{key:2,ref:"open-map-popover","virtual-ref":e.openMapRef,placement:"top-start",width:"136",teleported:!1,trigger:"click","popper-class":"open-map-popper non-selectable","virtual-triggering":""},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.openMapOptions,T=>(n.openBlock(),n.createBlock(I,{key:T.key},{default:n.withCtx(()=>[n.createVNode(C,{type:"primary",plain:"",onClick:L=>e.$emit("open-map",T.key)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(T.display),1)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1},8,["virtual-ref"])):n.createCommentVNode("",!0),n.createVNode(f,{ref:"backgroundPopover","virtual-ref":e.backgroundIconRef,placement:"top-start",width:"320",teleported:!1,trigger:"click","popper-class":"background-popper h-auto","virtual-triggering":""},{default:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(I,{class:"backgroundText"},{default:n.withCtx(()=>t[35]||(t[35]=[n.createTextVNode("Viewing Mode")])),_:1}),n.createVNode(I,{class:"backgroundControl"},{default:n.withCtx(()=>[n.createElementVNode("div",Jy,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.viewingModes,(T,L,q)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:L},[L===e.viewingMode?(n.openBlock(),n.createElementBlock("span",Yy,[n.createElementVNode("b",null,n.toDisplayString(L),1)])):(n.openBlock(),n.createElementBlock("span",{key:1,class:"viewing-mode-unselected",onClick:V=>r.changeViewingMode(L)},n.toDisplayString(L),9,Zy))],64))),128))]),n.createVNode(I,{class:"viewing-mode-description"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(r.modeDescription),1)]),_:1}),e.viewingMode==="Annotation"&&e.offlineAnnotationEnabled?(n.openBlock(),n.createBlock(I,{key:0,class:"viewing-mode-description"},{default:n.withCtx(()=>t[36]||(t[36]=[n.createTextVNode(" (Anonymous annotate) ")])),_:1})):n.createCommentVNode("",!0)]),_:1}),e.viewingMode==="Annotation"&&e.authorisedUser?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createVNode(I,{class:"backgroundText"},{default:n.withCtx(()=>t[37]||(t[37]=[n.createTextVNode("Annotations From")])),_:1}),n.createVNode(I,{class:"backgroundControl"},{default:n.withCtx(()=>[n.createVNode(S,{teleported:!1,modelValue:e.annotationFrom,"onUpdate:modelValue":t[21]||(t[21]=T=>e.annotationFrom=T),placeholder:"Select",class:"select-box","popper-class":"flatmap_dropdown",onChange:r.setAnnotationFrom},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.annotatedSource,T=>(n.openBlock(),n.createBlock(v,{key:T,label:T,value:T},{default:n.withCtx(()=>[n.createVNode(I,null,{default:n.withCtx(()=>[n.createVNode(k,{span:12},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(T),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1})],64)):n.createCommentVNode("",!0),e.displayFlightPathOption?(n.openBlock(),n.createBlock(I,{key:1,class:"backgroundSpacer"})):n.createCommentVNode("",!0),e.displayFlightPathOption?(n.openBlock(),n.createBlock(I,{key:2,class:"backgroundText"},{default:n.withCtx(()=>t[38]||(t[38]=[n.createTextVNode("Flight path display")])),_:1})):n.createCommentVNode("",!0),e.displayFlightPathOption?(n.openBlock(),n.createBlock(I,{key:3,class:"backgroundControl"},{default:n.withCtx(()=>[n.createVNode(O,{modelValue:e.flightPath3DRadio,"onUpdate:modelValue":t[22]||(t[22]=T=>e.flightPath3DRadio=T),class:"flatmap-radio",onChange:r.setFlightPath3D},{default:n.withCtx(()=>[n.createVNode(E,{value:!1},{default:n.withCtx(()=>t[39]||(t[39]=[n.createTextVNode("2D")])),_:1}),n.createVNode(E,{value:!0},{default:n.withCtx(()=>t[40]||(t[40]=[n.createTextVNode("3D")])),_:1})]),_:1},8,["modelValue","onChange"])]),_:1})):n.createCommentVNode("",!0),n.createVNode(I,{class:"backgroundSpacer"}),n.createVNode(I,{class:"backgroundText"},{default:n.withCtx(()=>t[41]||(t[41]=[n.createTextVNode("Organs display")])),_:1}),n.createVNode(I,{class:"backgroundControl"},{default:n.withCtx(()=>[n.createVNode(O,{modelValue:e.colourRadio,"onUpdate:modelValue":t[23]||(t[23]=T=>e.colourRadio=T),class:"flatmap-radio",onChange:r.setColour},{default:n.withCtx(()=>[n.createVNode(E,{value:!0},{default:n.withCtx(()=>t[42]||(t[42]=[n.createTextVNode("Colour")])),_:1}),n.createVNode(E,{value:!1},{default:n.withCtx(()=>t[43]||(t[43]=[n.createTextVNode("Greyscale")])),_:1})]),_:1},8,["modelValue","onChange"])]),_:1}),n.createVNode(I,{class:"backgroundSpacer"}),n.createVNode(I,{class:"backgroundText"},{default:n.withCtx(()=>t[44]||(t[44]=[n.createTextVNode("Outlines display")])),_:1}),n.createVNode(I,{class:"backgroundControl"},{default:n.withCtx(()=>[n.createVNode(O,{modelValue:e.outlinesRadio,"onUpdate:modelValue":t[24]||(t[24]=T=>e.outlinesRadio=T),class:"flatmap-radio",onChange:r.setOutlines},{default:n.withCtx(()=>[n.createVNode(E,{value:!0},{default:n.withCtx(()=>t[45]||(t[45]=[n.createTextVNode("Show")])),_:1}),n.createVNode(E,{value:!1},{default:n.withCtx(()=>t[46]||(t[46]=[n.createTextVNode("Hide")])),_:1})]),_:1},8,["modelValue","onChange"])]),_:1}),n.createVNode(I,{class:"backgroundSpacer"}),n.createVNode(I,{class:"backgroundText"},{default:n.withCtx(()=>t[47]||(t[47]=[n.createTextVNode("Change background")])),_:1}),n.createVNode(I,{class:"backgroundControl"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.availableBackground,T=>(n.openBlock(),n.createElementBlock("div",{key:T,class:n.normalizeClass(["backgroundChoice",T,T==e.currentBackground?"active":""]),onClick:L=>r.backgroundChangeCallback(T)},null,10,Qy))),128))]),_:1})])]),_:1},8,["virtual-ref"]),n.withDirectives(n.createElementVNode("div",{class:n.normalizeClass(["settings-group",{open:e.drawerOpen,close:!e.drawerOpen}])},[o.showOpenMapButton?(n.openBlock(),n.createBlock(I,{key:0},{default:n.withCtx(()=>[n.createVNode(f,{visible:e.hoverVisibilities[4].value,content:"Open new map",placement:"right",teleported:!1,"popper-class":"flatmap-popper",ref:"openMapPopover"},{reference:n.withCtx(()=>[o.enableOpenMapUI&&o.openMapOptions.length>0?(n.openBlock(),n.createElementBlock("div",{key:0,ref:"openMapRef",class:"icon-button-container",onMouseover:t[25]||(t[25]=T=>r.showTooltip(4)),onMouseout:t[26]||(t[26]=T=>r.hideTooltip(4))},[n.createVNode(g,{icon:"openMap",class:"icon-button open-map-button"})],544)):n.createCommentVNode("",!0)]),_:1},8,["visible"])]),_:1})):n.createCommentVNode("",!0),o.showLocalSettings?(n.openBlock(),n.createBlock(I,{key:1},{default:n.withCtx(()=>[n.createVNode(f,{content:"Change settings",placement:"right",visible:e.hoverVisibilities[5].value,teleported:!1,trigger:"manual","popper-class":"flatmap-popper",ref:"settingsPopover"},{reference:n.withCtx(()=>[n.createElementVNode("div",{ref:"backgroundIconRef",class:"icon-button-container",onMouseover:t[27]||(t[27]=T=>r.showTooltip(5)),onMouseout:t[28]||(t[28]=T=>r.hideTooltip(5))},[n.createVNode(g,{icon:"changeBckgd",class:"icon-button"})],544)]),_:1},8,["visible"])]),_:1})):n.createCommentVNode("",!0)],2),[[n.vShow,!o.disableUI]]),e.tooltipDisplay?(n.openBlock(),n.createBlock(x,{key:3,ref:"tooltip",class:"tooltip",annotationEntry:e.annotationEntry,tooltipEntry:e.tooltipEntry,annotationDisplay:e.viewingMode==="Annotation",onAnnotation:r.commitAnnotationEvent,onOnActionClick:r.onActionClick},null,8,["annotationEntry","tooltipEntry","annotationDisplay","onAnnotation","onOnActionClick"])):n.createCommentVNode("",!0)])])),[[B,e.loading]])}const hi=st(zy,[["render",Xy],["__scopeId","data-v-468bd4d8"]]),bs={"NCBITaxon:10114":"01fedbf9-d783-509c-a10c-827941ab13da","NCBITaxon:9823":"a336ac04-24db-561f-a25f-1c994fe17410","NCBITaxon:9606":"42ed6323-f645-5fbe-bada-9581819cf689","NCBITaxon:10090":"25285fab-48a0-5620-a6a0-f9a0374837d5","NCBITaxon:9685":"73060497-46a6-52bf-b975-cac511c127cb"},eb={name:"MultiFlatmapVuer",components:{Col:nn,Row:tn,Option:ii,Select:Un,Popover:on,FlatmapVuer:hi},created:function(){this.loadMapManager()},mounted:function(){this.initialise(),pi.on("onActionClick",e=>{this.resourceSelected(e)}),pi.on("open-pubmed-url",e=>{this.$emit("open-pubmed-url",e)})},methods:{initialise:function(){return this.multiflatmapError=null,new Promise(e=>{if(this.requireInitialisation){this.requireInitialisation=!1;const t=new AbortController,o=t.signal,i=setTimeout(()=>t.abort(),5e3);fetch(this.flatmapAPI,{signal:o}).then(a=>{if(!a.ok){if(a.status===404)return this.multiflatmapError={},this.multiflatmapError.title="MultiFlatmap Error!",this.multiflatmapError.messages=[`Sorry, the component could not be loaded because the specified
|
|
28
|
+
for more details.`],this.flatmapError.button={text:"Restore Context",callback:()=>{this.forceContextRestore()}}},onContextRestored:function(){if(this.mapImp){this.handleMapClick(),this.setInitMapState();const e=this.getState();if(e&&(e.viewport=this.lastViewport),this.restoreMapState(e),this.displayMinimap){const t={position:"top-right"};this.mapImp.createMinimap(t),this.addResizeButtonToMinimap()}this.filterToRestore&&(this.mapImp.setVisibilityFilter(this.filterToRestore),this.filterToRestore=void 0),this.$emit("context-restored",this)}},showPathwaysDrawer:function(e){this.drawerOpen=e},searchAndShowResult:function(e,t,o=!0){var i;if(this.mapImp){if(e===void 0||e==="")return this.mapImp.clearSearchResults(),this.viewingMode==="Exploration"?this.$emit("connectivity-info-close"):this.viewingMode==="Annotation"&&this.manualAbortedOnClose(),this.searchTerm="",!0;{const a=this.mapImp.search(e);if((i=a==null?void 0:a.results)!=null&&i.length){if(this.mapImp.showSearchResults(a),t){let r;for(let s=0;s<a.results.length;s++){r=a.results[s].featureId;const l=this.mapImp.annotation(r);if(r&&(l!=null&&l.label))break}if(r){const s=this.mapImp.featureProperties(r),l={resource:[s.models],feature:s,label:s.label,provenanceTaxonomy:s.taxons,alert:s.alert};this.checkAndCreatePopups([l],o),this.mapImp.showPopup(r,Yn(s.label),{className:"custom-popup",positionAtLastClick:!1,preserveSelection:!0})}}return this.searchTerm=e,!0}else this.mapImp.clearSearchResults()}}return!1},highlightConnectedPaths:function(e){if(e.length){const t=e.filter(i=>i in this.mapImp.pathways.paths),o=this.mapImp.modelFeatureIdList(t);this.mapImp.selectGeoJSONFeatures(o)}},searchSuggestions:function(e){return this.mapImp?this.mapImp.search(e):[]},onActionClick:function(e){pi.emit("onActionClick",e)},setConnectionType:function(e){this.connectionType=e},async fetchFlatmapProtocols(e){const t=`flatmap_dataset_${e}`,o=this.getSessionCache(t);if(o){this.datasetInfo=o,this.processDatasetFiles(o);return}const i="https://alan-wu-portal-api.herokuapp.com/";try{console.log("Fetching dataset info from API...");const a=await fetch(`${i}flatmap/uuid?uuid=${e}`);if(!a.ok)throw new Error(`API call failed: ${a.statusText}`);const r=await a.json();this.setSessionCache(t,r),this.datasetInfo=r,this.processDatasetFiles(r)}catch(a){console.error("Error fetching flatmap protocols:",a)}},extractBucketNameFromS3Uri(e){try{return new URL(e).hostname}catch(t){return console.error("Error converting S3 URI:",t),null}},async processDatasetFiles(e){if(!e||e.length===0)return;this.simulationInfo=[];const t=e[0],i=`https://alan-wu-portal-api.herokuapp.com//s3-resource/${t.dataset_id}/files`,a=this.extractBucketNameFromS3Uri(t.s3uri);t.urls.map(async r=>{const s=`${i}/${r}?s3BucketName=${a}`;this.simulationInfo.push({label:t.title,s3uri:t.s3uri,dataset_id:t.dataset_id,version:t.version,path:r,type:"Simulation",resource:s})})},getSessionCache(e){const t=sessionStorage.getItem(e);if(!t)return null;try{const o=JSON.parse(t);return new Date().getTime()>o.expiry?(sessionStorage.removeItem(e),null):o.value}catch{return null}},setSessionCache(e,t){const a={value:t,expiry:new Date().getTime()+864e5};try{sessionStorage.setItem(e,JSON.stringify(a))}catch(r){console.warn("Session storage full or disabled",r)}},getSimulationLabel(e){return console.log(e.path),e.path.split("/").pop()},openSimulation(){this.selectedSimulation&&this.$emit("open-simulation",this.selectedSimulation)}},props:{entry:{type:String,required:!0},uuid:String,biologicalSex:{type:String,default:""},minZoom:{type:Number,default:1},tooltips:{type:Boolean,default:!0},helpMode:{type:Boolean,default:!1},helpModeActiveItem:{type:Number,default:0},helpModeDialog:{type:Boolean,default:!1},helpModeLastItem:{type:Boolean,default:!1},helpModeInitialIndex:{type:Number,default:0},render:{type:Boolean,default:!0},renderAtMounted:{type:Boolean,default:!0},displayMinimap:{type:Boolean,default:!1},displayWarning:{type:Boolean,default:!1},enableOpenMapUI:{type:Boolean,default:!1},openMapOptions:{type:Array,default:function(){return[{display:"Open AC Map",key:"AC"},{display:"Open FC Map",key:"FC"},{display:"Open 3D Human Map",key:"3D"}]}},showStarInLegend:{type:Boolean,default:!1},isLegacy:{type:Boolean,default:!1},displayLatestChanges:{type:Boolean,default:!1},state:{type:Object,default:void 0},mapManager:{type:Object,default:void 0},flatmapAPI:{type:String,default:"https://mapcore-demo.org/current/flatmap/v3/"},sparcAPI:{type:String,default:"https://api.sparc.science/"},disableUI:{type:Boolean,default:!1},connectivityInfoSidebar:{type:Boolean,default:!1},annotationSidebar:{type:Boolean,default:!1},showLocalSettings:{type:Boolean,default:!0},showOpenMapButton:{type:Boolean,default:!0},showPathwayFilter:{type:Boolean,default:!0},externalLegends:{type:Array,default:function(){return[]}}},provide(){return{flatmapAPI:this.flatmapAPI,sparcAPI:this.sparcAPI,userApiKey:this.userToken}},data:function(){return{filterToRestore:void 0,flatmapError:null,sensor:null,mapManagerRef:void 0,currentFlatmapUuid:void 0,flatmapQueries:void 0,annotationEntry:[],tooltipDisplay:!1,tooltipTimer:null,serverURL:void 0,layers:[],pathways:[],initMapState:n.markRaw({}),sckanDisplay:[{label:"Display Path with SCKAN",key:"VALID"}],systems:[],taxonConnectivity:[],pathwaysMaxHeight:1e3,tooltipWait:n.markRaw([]),hoverVisibilities:[{value:!1,ref:"markerPopover"},{value:!1,ref:"zoomInPopover"},{value:!1,ref:"zoomOutPopover"},{value:!1,ref:"zoomFitPopover"},{value:!1,ref:"openMapPopover"},{value:!1,ref:"settingsPopover"},{value:!1,ref:"checkBoxPopover"},{value:!1,ref:"warningPopover"},{value:!1,ref:"whatsNewPopover"},{value:!1,ref:"featuredMarkerPopover"},{value:!1,refs:"toolbarPopover",ref:"editPopover"},{value:!1,refs:"toolbarPopover",ref:"deletePopover"},{value:!1,refs:"toolbarPopover",ref:"pointPopover"},{value:!1,refs:"toolbarPopover",ref:"lineStringPopover"},{value:!1,refs:"toolbarPopover",ref:"polygonPopover"},{value:!1,refs:"toolbarPopover",ref:"connectionPopover"},{value:!1,ref:"simulationPopover"}],helpModeActiveIndex:this.helpModeInitialIndex,yellowstar:Ly,isFC:!1,inHelp:!1,currentBackground:"white",availableBackground:["white","lightskyblue","black"],loading:!1,flatmapMarker:My,tooltipEntry:[],connectivityDataSource:"",connectivityTooltipVisible:!1,drawerOpen:!1,flightPath3DRadio:!1,displayFlightPathOption:!1,colourRadio:!0,outlinesRadio:!0,minimapResizeShow:!1,minimapSmall:!1,currentActive:"",selectedDrawnFeature:void 0,currentHover:"",viewingMode:"Exploration",viewingModes:{Exploration:"Find relevant research and view detail of neural pathways by selecting a pathway to view its connections and data sources","Neuron Connection":"Discover Neuron connections by selecting a neuron and viewing its associated network connections",Annotation:["View feature annotations","Add, comment on and view feature annotations"]},connectionType:"All",offlineAnnotationEnabled:!1,offlineAnnotations:[],annotationFrom:"Anyone",annotatedSource:["Anyone","Me","Others"],openMapRef:void 0,backgroundIconRef:void 0,toolbarOptions:["Edit","Delete","Point","LineString","Polygon","Connection"],annotator:void 0,authorisedUser:void 0,activeDrawMode:void 0,activeDrawTool:void 0,featureAnnotationSubmitted:!1,drawnCreatedEvent:{},previousEditEvent:{},previousDeletedEvent:{},connectionEntry:{},existDrawnFeatures:[],doubleClickedFeature:!1,containsAlert:!1,alertOptions:[{label:"Display Path With Alerts",key:"alert",enabled:!0},{label:"Display Path Without Alerts",key:"withoutAlert",enabled:!0}],mapFilters:n.markRaw({alert:{with:!0,without:!0}}),searchTerm:"",taxonLeaveDelay:void 0,connectivityFilters:[],flatmapLegends:[],lastViewport:void 0,simulationInfo:[],datasetInfo:null,simulationDrawerOpen:!1,selectedSimulation:null}},computed:{...Ci.mapState(Ry,["userToken"]),isValidDrawnCreated:function(){return Object.keys(this.drawnCreatedEvent).length>0},requiresDrawer:function(){var e,t,o,i;return this.loading?(this.drawerOpen=!1,!1):((e=this.systems)==null?void 0:e.length)>0||this.containsAlert&&this.alertOptions||((t=this.pathways)==null?void 0:t.length)>0||((o=this.taxonConnectivity)==null?void 0:o.length)>0||((i=this.legendEntry)==null?void 0:i.length)>0?(this.drawerOpen=!0,!0):(this.drawerOpen=!1,!1)},modeDescription:function(){let e=this.viewingModes[this.viewingMode];return this.viewingMode==="Annotation"?this.authorisedUser?e[1]:e[0]:e},legendEntry:function(){return[...this.flatmapLegends,...this.externalLegends]},showDatasetMarkerTooltip:function(){return this.hoverVisibilities[9].value}},watch:{entry:function(){this.state||this.createFlatmap()},helpMode:function(e,t){e!==t&&this.setHelpMode(e)},helpModeActiveItem:function(){this.helpMode&&(this.helpModeActiveIndex+=1,this.setHelpMode(this.helpMode))},render:function(e){e&&this.mapImp&&this.mapImp.contextLost&&!this.loading&&this.$nextTick(()=>{this.forceContextRestore()})},state:{handler:function(e,t){e!==t&&(this.mapManagerRef?this.setState(e):this.setStateRequired=!0)},immediate:!0,deep:!0},viewingMode:function(e){this.clearAnnotationFeature(),e==="Annotation"&&(this.loading=!0,this.annotator.authenticate(this.userToken).then(t=>{t.name&&t.email&&t.canUpdate?(this.authorisedUser=t,this.offlineAnnotationEnabled=!1):(this.authorisedUser=void 0,this.offlineAnnotationEnabled=!0),this.emitOfflineAnnotationUpdate(),this.setFeatureAnnotated(),this.addAnnotationFeature(),this.loading=!1}))},disableUI:function(e){e&&this.closeTooltip()},activeDrawTool:function(e){let t=[],o={x:null,y:null};const i=this.$el.querySelector(".maplibregl-canvas"),a=()=>{i.removeEventListener("keydown",r),i.removeEventListener("click",s)},r=l=>{if(!["Escape","Enter"].includes(l.key))return;const c=e==="Point"&&t.length===1||e==="LineString"&&t.length>=2||e==="Polygon"&&t.length>=3;(l.key==="Escape"||l.key==="Enter"&&!c)&&(this.activeDrawTool=void 0),a()},s=l=>{const c=i.getBoundingClientRect(),d=l.clientX-c.left,f=l.clientY-c.top;if(Math.sqrt((d-o.x)**2+(f-o.y)**2)<8){this.isValidDrawnCreated||(this.activeDrawTool=void 0),a();return}o={x:d,y:f},t.push(o)};e&&(a(),i.addEventListener("keydown",r),i.addEventListener("click",s))},currentFlatmapUuid:{handler(e){e&&this.fetchFlatmapProtocols(e)}}},created:function(){this.mapManager?this.mapManagerRef=this.mapManager:(this.mapManagerRef=n.markRaw(new vi.MapViewer(this.flatmapAPI,{container:void 0})),this.$emit("mapmanager-loaded",this.mapManagerRef))},mounted:function(){this.openMapRef=n.shallowRef(this.$refs.openMapRef),this.backgroundIconRef=n.shallowRef(this.$refs.backgroundIconRef),this.tooltipWait.length=this.hoverVisibilities.length,this.flatmapQueries=n.markRaw(new gs),this.flatmapQueries.initialise(this.flatmapAPI),this.state?this.setStateRequired&&this.setState(this.state):this.renderAtMounted&&this.createFlatmap(),ws()}},jy={class:"flatmap-container",ref:"flatmapContainer","element-loading-text":"Loading...","element-loading-background":"rgba(0, 0, 0, 0.3)"},Hy={style:{height:"100%",width:"100%",position:"relative","overflow-y":"none"}},Ky={style:{height:"100%",width:"100%"},ref:"display",class:"flatmap-display"},Uy={class:"beta-popovers"},Wy={key:2,class:"warning-text"},qy={class:"bottom-right-control"},Gy=["innerHTML"],Jy={style:{"margin-bottom":"2px"}},Yy={key:0,class:"viewing-mode-title"},Zy=["onClick"],Qy=["onClick"];function Xy(e,t,o,i,a,r){const s=n.resolveComponent("map-svg-sprite-color"),l=Gn,c=W.WarningFilled,d=be,f=on,u=W.ArrowDown,p=n.resolveComponent("DrawToolbar"),g=ri,h=Un,m=ni,b=W.ArrowLeft,y=n.resolveComponent("map-svg-icon"),v=ms,T=n.resolveComponent("tree-controls"),S=ps,w=tn,k=nn,E=ns,O=os,B=n.resolveComponent("Tooltip"),N=si,x=ci;return n.withDirectives((n.openBlock(),n.createElementBlock("div",jy,[n.createVNode(s),n.createElementVNode("div",Hy,[n.createElementVNode("div",Ky,null,512),e.flatmapError?(n.openBlock(),n.createBlock(l,{key:0,flatmapError:e.flatmapError},null,8,["flatmapError"])):n.createCommentVNode("",!0),n.withDirectives(n.createElementVNode("div",Uy,[n.createElementVNode("div",null,[o.displayWarning||o.isLegacy?(n.openBlock(),n.createBlock(f,{key:0,placement:"right","popper-class":"warning-popper flatmap-popper",teleported:!1,visible:e.hoverVisibilities[7].value,ref:"warningPopover"},{reference:n.withCtx(()=>[n.createElementVNode("div",{class:"warning-icon",onMouseover:t[7]||(t[7]=I=>r.showTooltip(7)),onMouseout:t[8]||(t[8]=I=>r.hideTooltip(7))},[o.displayWarning||o.isLegacy?(n.openBlock(),n.createBlock(d,{key:0},{default:n.withCtx(()=>[n.createVNode(c)]),_:1})):n.createCommentVNode("",!0),o.isLegacy?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[t[31]||(t[31]=n.createElementVNode("span",{class:"warning-text"},"Legacy Map",-1)),n.createElementVNode("div",{class:"latest-map-text",onClick:t[6]||(t[6]=(...I)=>r.viewLatestMap&&r.viewLatestMap(...I))}," Click here for the latest map ")],64)):o.displayWarning?(n.openBlock(),n.createElementBlock("span",Wy,"Beta")):n.createCommentVNode("",!0)],32)]),default:n.withCtx(()=>[o.isLegacy?(n.openBlock(),n.createElementBlock("p",{key:0,onMouseover:t[0]||(t[0]=I=>r.showTooltip(7)),onMouseout:t[1]||(t[1]=I=>r.hideTooltip(7))}," This is a legacy map, you may view the latest map instead. ",32)):e.isFC?(n.openBlock(),n.createElementBlock("p",{key:1,onMouseover:t[2]||(t[2]=I=>r.showTooltip(7)),onMouseout:t[3]||(t[3]=I=>r.hideTooltip(7))},t[29]||(t[29]=[n.createTextVNode(" This map displays the connectivity of individual neurons. Specifically, those which align with (parts of) the neuron populations from the "),n.createElementVNode("a",{href:"https://sparc.science/resources/1ZUKXU2YmLcn2reCyXjlew",target:"_blank"}," ApiNATOMY ",-1),n.createTextVNode(" models available in "),n.createElementVNode("a",{href:"https://sparc.science/resources/6eg3VpJbwQR4B84CjrvmyD",target:"_blank"}," SCKAN ",-1),n.createTextVNode(". ")]),32)):(n.openBlock(),n.createElementBlock("p",{key:2,onMouseover:t[4]||(t[4]=I=>r.showTooltip(7)),onMouseout:t[5]||(t[5]=I=>r.hideTooltip(7))},t[30]||(t[30]=[n.createTextVNode(" This map displays the connectivity of neuron populations. Specifically, those from the primarily rat-based "),n.createElementVNode("a",{href:"https://sparc.science/resources/1ZUKXU2YmLcn2reCyXjlew",target:"_blank"}," ApiNATOMY ",-1),n.createTextVNode(" models available in "),n.createElementVNode("a",{href:"https://sparc.science/resources/6eg3VpJbwQR4B84CjrvmyD",target:"_blank"}," SCKAN ",-1),n.createTextVNode(". New connectivity and species specificity will be added as the SPARC program progresses. ")]),32))]),_:1},8,["visible"])):n.createCommentVNode("",!0)]),o.displayLatestChanges?(n.openBlock(),n.createBlock(f,{key:0,placement:"right",teleported:!1,trigger:"manual","popper-class":"warning-popper flatmap-popper",visible:e.hoverVisibilities[8].value,ref:"whatsNewPopover"},{reference:n.withCtx(()=>[o.displayLatestChanges?(n.openBlock(),n.createElementBlock("div",{key:0,class:"latest-changesicon",onMouseover:t[9]||(t[9]=I=>r.showTooltip(8)),onMouseout:t[10]||(t[10]=I=>r.hideTooltip(8))},[n.createVNode(d,null,{default:n.withCtx(()=>[n.createVNode(c)]),_:1}),t[32]||(t[32]=n.createElementVNode("span",{class:"warning-text"},"What's new?",-1))],32)):n.createCommentVNode("",!0)]),default:n.withCtx(()=>t[33]||(t[33]=[n.createElementVNode("b",null,"Connectivity References",-1),n.createElementVNode("p",null," Connectivity references have been improved and available in various formats. ",-1),n.createElementVNode("b",null,"Improved state storing",-1),n.createElementVNode("p",null," Current selection and visibility filters are now stored when creating a permalink. ",-1)])),_:1},8,["visible"])):n.createCommentVNode("",!0)],512),[[n.vShow,!o.disableUI]]),n.withDirectives(n.createVNode(d,{class:n.normalizeClass(["minimap-resize",{enlarge:e.minimapSmall,shrink:!e.minimapSmall}]),ref:"minimapResize",onClick:r.closeMinimap},{default:n.withCtx(()=>[n.createVNode(u)]),_:1},8,["class","onClick"]),[[n.vShow,e.minimapResizeShow]]),e.viewingMode==="Annotation"&&(e.authorisedUser||e.offlineAnnotationEnabled)&&!o.disableUI?(n.openBlock(),n.createBlock(p,{key:1,mapCanvas:{containerHTML:this.$el,class:".maplibregl-canvas"},toolbarOptions:e.toolbarOptions,activeDrawTool:e.activeDrawTool,activeDrawMode:e.activeDrawMode,newlyDrawnEntry:e.drawnCreatedEvent,connectionEntry:e.connectionEntry,hoverVisibilities:e.hoverVisibilities,onClickToolbar:r.toolbarEvent,onFeatureTooltip:r.connectedFeatureTooltip,onConfirmDrawn:r.confirmDrawnFeature,onCancelDrawn:r.cancelDrawnFeature,onShowTooltip:r.showTooltip,onHideTooltip:r.hideTooltip,ref:"toolbarPopover"},null,8,["mapCanvas","toolbarOptions","activeDrawTool","activeDrawMode","newlyDrawnEntry","connectionEntry","hoverVisibilities","onClickToolbar","onFeatureTooltip","onConfirmDrawn","onCancelDrawn","onShowTooltip","onHideTooltip"])):n.createCommentVNode("",!0),e.simulationInfo.length>0?(n.openBlock(),n.createBlock(f,{key:2,content:"Open simulation protocols",placement:"right",teleported:!1,trigger:"manual",offset:-18,"popper-class":"flatmap-popper",visible:e.hoverVisibilities[16].value,ref:"simulationPopover"},{reference:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{class:n.normalizeClass(["popover-location top",{open:e.simulationDrawerOpen,close:!e.simulationDrawerOpen}])},[n.withDirectives((n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["pathway-container",{open:e.simulationDrawerOpen,close:!e.simulationDrawerOpen}])},[t[35]||(t[35]=n.createElementVNode("h4",{style:{"margin-top":"0","margin-bottom":"10px"}}," Available Protocols ",-1)),n.createVNode(h,{modelValue:e.selectedSimulation,"onUpdate:modelValue":t[11]||(t[11]=I=>e.selectedSimulation=I),placeholder:"Select a simulation",size:"default",style:{width:"100%","margin-bottom":"10px"},"value-key":"path"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.simulationInfo,I=>(n.openBlock(),n.createBlock(g,{key:I.path,label:r.getSimulationLabel(I),value:I},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),n.createVNode(m,{type:"primary",onClick:r.openSimulation,disabled:!e.selectedSimulation,style:{width:"100%"}},{default:n.withCtx(()=>t[34]||(t[34]=[n.createTextVNode(" Open Simulation ")])),_:1},8,["onClick","disabled"])],2)),[[N,void 0,"simulationPopover"]]),n.createElementVNode("div",{onClick:t[12]||(t[12]=I=>e.simulationDrawerOpen=!e.simulationDrawerOpen),class:n.normalizeClass(["drawer-button",{open:e.simulationDrawerOpen,close:!e.simulationDrawerOpen}]),title:"Toggle Simulation Panel"},[n.createVNode(d,null,{default:n.withCtx(()=>[n.createVNode(b)]),_:1})],2)],2),[[n.vShow,!o.disableUI]])]),_:1},8,["visible"])):n.createCommentVNode("",!0),n.withDirectives(n.createElementVNode("div",qy,[n.createVNode(f,{content:"Zoom in",placement:"left",teleported:!1,trigger:"manual",width:"70","popper-class":"flatmap-popper",visible:e.hoverVisibilities[1].value,ref:"zoomInPopover"},{reference:n.withCtx(()=>[n.createElementVNode("div",{class:"icon-button-container",onClick:t[13]||(t[13]=I=>r.zoomIn()),onMouseover:t[14]||(t[14]=I=>r.showTooltip(1)),onMouseout:t[15]||(t[15]=I=>r.hideTooltip(1))},[n.createVNode(y,{class:"icon-button zoomIn",icon:"zoomIn"})],32)]),_:1},8,["visible"]),n.createVNode(f,{content:"Zoom out",placement:"top-end",teleported:!1,"auto-close":1300,width:"70","popper-class":"flatmap-popper",ref:"zoomOutPopover"},{reference:n.withCtx(()=>[n.createElementVNode("div",{class:"icon-button-container",onClick:t[16]||(t[16]=I=>r.zoomOut())},[n.createVNode(y,{class:"icon-button zoomOut",icon:"zoomOut"})])]),_:1},512),n.createVNode(f,{content:"Reset",placement:"top",teleported:!1,trigger:"manual",width:"70","popper-class":"flatmap-popper",visible:e.hoverVisibilities[3].value,ref:"zoomFitPopover"},{reference:n.withCtx(()=>[n.createElementVNode("div",{class:"icon-button-container",onClick:t[17]||(t[17]=I=>r.resetView()),onMouseover:t[18]||(t[18]=I=>r.showTooltip(3)),onMouseout:t[19]||(t[19]=I=>r.hideTooltip(3))},[n.createVNode(y,{class:"icon-button fitWindow",icon:"fitWindow"})],32)]),default:n.withCtx(()=>[t[36]||(t[36]=n.createElementVNode("div",null,[n.createTextVNode(" Fit to "),n.createElementVNode("br"),n.createTextVNode(" window ")],-1))]),_:1},8,["visible"])],512),[[n.vShow,!o.disableUI]]),n.createVNode(f,{content:"Change pathway visibility",class:"somerandomclass",placement:"right",teleported:!1,trigger:"manual",offset:-18,"popper-class":"flatmap-popper",visible:e.hoverVisibilities[6].value,ref:"checkBoxPopover"},{reference:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{class:n.normalizeClass(["popover-location bottom",{open:e.drawerOpen,close:!e.drawerOpen}])},[n.withDirectives((n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["pathway-container",{open:e.drawerOpen,close:!e.drawerOpen}]),style:n.normalizeStyle({"max-height":e.pathwaysMaxHeight+"px"})},[r.legendEntry.length?(n.openBlock(),n.createBlock(v,{key:0,identifierKey:"prompt",colourKey:"colour",styleKey:"style",legends:r.legendEntry,showStarInLegend:!0,showDatasetMarkerTooltip:r.showDatasetMarkerTooltip,ref:"featuredMarkerPopover",class:"svg-legends-container"},null,8,["legends","showDatasetMarkerTooltip"])):n.createCommentVNode("",!0),n.createVNode(f,{content:"Find these markers for data. The number inside the markers is the number of datasets available for each marker.",placement:"right",teleported:!1,width:"200",trigger:"manual","popper-class":"flatmap-popper flatmap-marker-popper",visible:e.hoverVisibilities[0].value,ref:"markerPopover"},{reference:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{class:"flatmap-marker-help",innerHTML:e.flatmapMarker},null,8,Gy),[[n.vShow,e.hoverVisibilities[0].value],[N,void 0,"markerPopover"]])]),_:1},8,["visible"]),e.isFC&&e.systems&&e.systems.length>0?(n.openBlock(),n.createBlock(T,{key:1,class:"treeControls",mapType:"flatmap",title:"Systems",treeData:e.systems,active:e.currentActive,hover:e.currentHover,onCheckChanged:r.systemSelected,onCheckAll:r.checkAllSystems,onChangeActive:r.ftuSelected,ref:"treeControls"},null,8,["treeData","active","hover","onCheckChanged","onCheckAll","onChangeActive"])):n.createCommentVNode("",!0),e.containsAlert&&e.alertOptions&&o.showPathwayFilter?(n.openBlock(),n.createBlock(S,{title:"Alert",labelKey:"label",identifierKey:"key",selections:e.alertOptions,onChanged:r.alertSelected,onCheckboxMouseEnter:r.alertMouseEnterEmitted,onSelectionsDataChanged:r.onSelectionsDataChanged,onCheckAll:r.checkAllAlerts,ref:"alertSelection",key:"alertSelection"},null,8,["selections","onChanged","onCheckboxMouseEnter","onSelectionsDataChanged","onCheckAll"])):n.createCommentVNode("",!0),e.pathways&&e.pathways.length>0?(n.openBlock(),n.createBlock(S,{title:"Pathways",labelKey:"label",identifierKey:"type",colourStyle:"line",selections:e.pathways,showAsLegend:!o.showPathwayFilter,onChanged:r.pathwaysSelected,onSelectionsDataChanged:r.onSelectionsDataChanged,onCheckAll:r.checkAllPathways,ref:"pathwaysSelection",key:"pathwaysSelection"},null,8,["selections","showAsLegend","onChanged","onSelectionsDataChanged","onCheckAll"])):n.createCommentVNode("",!0),e.taxonConnectivity&&e.taxonConnectivity.length>0&&o.showPathwayFilter?(n.openBlock(),n.createBlock(S,{title:"Studied in",labelKey:"label",identifierKey:"taxon",helpMessage:"Evidence exists that this set of neuron populations have been studied in the given species.",selections:e.taxonConnectivity,onChanged:r.taxonsSelected,onCheckboxMouseEnter:r.taxonMouseEnterEmitted,onSelectionsDataChanged:r.onSelectionsDataChanged,onCheckAll:r.checkAllTaxons,ref:"taxonSelection",key:"taxonSelection"},null,8,["selections","onChanged","onCheckboxMouseEnter","onSelectionsDataChanged","onCheckAll"])):n.createCommentVNode("",!0)],6)),[[N,void 0,"checkBoxPopover"]]),n.createElementVNode("div",{onClick:t[20]||(t[20]=(...I)=>r.toggleDrawer&&r.toggleDrawer(...I)),class:n.normalizeClass(["drawer-button",{open:e.drawerOpen,close:!e.drawerOpen}])},[n.createVNode(d,null,{default:n.withCtx(()=>[n.createVNode(b)]),_:1})],2)],2),[[n.vShow,!o.disableUI&&r.requiresDrawer]])]),_:1},8,["visible"]),e.openMapRef?(n.openBlock(),n.createBlock(f,{key:3,ref:"open-map-popover","virtual-ref":e.openMapRef,placement:"top-start",width:"136",teleported:!1,trigger:"click","popper-class":"open-map-popper non-selectable","virtual-triggering":""},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.openMapOptions,I=>(n.openBlock(),n.createBlock(w,{key:I.key},{default:n.withCtx(()=>[n.createVNode(m,{type:"primary",plain:"",onClick:L=>e.$emit("open-map",I.key)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(I.display),1)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1},8,["virtual-ref"])):n.createCommentVNode("",!0),n.createVNode(f,{ref:"backgroundPopover","virtual-ref":e.backgroundIconRef,placement:"top-start",width:"320",teleported:!1,trigger:"click","popper-class":"background-popper h-auto","virtual-triggering":""},{default:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(w,{class:"backgroundText"},{default:n.withCtx(()=>t[37]||(t[37]=[n.createTextVNode("Viewing Mode")])),_:1}),n.createVNode(w,{class:"backgroundControl"},{default:n.withCtx(()=>[n.createElementVNode("div",Jy,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.viewingModes,(I,L,q)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:L},[L===e.viewingMode?(n.openBlock(),n.createElementBlock("span",Yy,[n.createElementVNode("b",null,n.toDisplayString(L),1)])):(n.openBlock(),n.createElementBlock("span",{key:1,class:"viewing-mode-unselected",onClick:V=>r.changeViewingMode(L)},n.toDisplayString(L),9,Zy))],64))),128))]),n.createVNode(w,{class:"viewing-mode-description"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(r.modeDescription),1)]),_:1}),e.viewingMode==="Annotation"&&e.offlineAnnotationEnabled?(n.openBlock(),n.createBlock(w,{key:0,class:"viewing-mode-description"},{default:n.withCtx(()=>t[38]||(t[38]=[n.createTextVNode(" (Anonymous annotate) ")])),_:1})):n.createCommentVNode("",!0)]),_:1}),e.viewingMode==="Annotation"&&e.authorisedUser?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createVNode(w,{class:"backgroundText"},{default:n.withCtx(()=>t[39]||(t[39]=[n.createTextVNode("Annotations From")])),_:1}),n.createVNode(w,{class:"backgroundControl"},{default:n.withCtx(()=>[n.createVNode(h,{teleported:!1,modelValue:e.annotationFrom,"onUpdate:modelValue":t[21]||(t[21]=I=>e.annotationFrom=I),placeholder:"Select",class:"select-box","popper-class":"flatmap_dropdown",onChange:r.setAnnotationFrom},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.annotatedSource,I=>(n.openBlock(),n.createBlock(g,{key:I,label:I,value:I},{default:n.withCtx(()=>[n.createVNode(w,null,{default:n.withCtx(()=>[n.createVNode(k,{span:12},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(I),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1})],64)):n.createCommentVNode("",!0),e.displayFlightPathOption?(n.openBlock(),n.createBlock(w,{key:1,class:"backgroundSpacer"})):n.createCommentVNode("",!0),e.displayFlightPathOption?(n.openBlock(),n.createBlock(w,{key:2,class:"backgroundText"},{default:n.withCtx(()=>t[40]||(t[40]=[n.createTextVNode("Flight path display")])),_:1})):n.createCommentVNode("",!0),e.displayFlightPathOption?(n.openBlock(),n.createBlock(w,{key:3,class:"backgroundControl"},{default:n.withCtx(()=>[n.createVNode(O,{modelValue:e.flightPath3DRadio,"onUpdate:modelValue":t[22]||(t[22]=I=>e.flightPath3DRadio=I),class:"flatmap-radio",onChange:r.setFlightPath3D},{default:n.withCtx(()=>[n.createVNode(E,{value:!1},{default:n.withCtx(()=>t[41]||(t[41]=[n.createTextVNode("2D")])),_:1}),n.createVNode(E,{value:!0},{default:n.withCtx(()=>t[42]||(t[42]=[n.createTextVNode("3D")])),_:1})]),_:1},8,["modelValue","onChange"])]),_:1})):n.createCommentVNode("",!0),n.createVNode(w,{class:"backgroundSpacer"}),n.createVNode(w,{class:"backgroundText"},{default:n.withCtx(()=>t[43]||(t[43]=[n.createTextVNode("Organs display")])),_:1}),n.createVNode(w,{class:"backgroundControl"},{default:n.withCtx(()=>[n.createVNode(O,{modelValue:e.colourRadio,"onUpdate:modelValue":t[23]||(t[23]=I=>e.colourRadio=I),class:"flatmap-radio",onChange:r.setColour},{default:n.withCtx(()=>[n.createVNode(E,{value:!0},{default:n.withCtx(()=>t[44]||(t[44]=[n.createTextVNode("Colour")])),_:1}),n.createVNode(E,{value:!1},{default:n.withCtx(()=>t[45]||(t[45]=[n.createTextVNode("Greyscale")])),_:1})]),_:1},8,["modelValue","onChange"])]),_:1}),n.createVNode(w,{class:"backgroundSpacer"}),n.createVNode(w,{class:"backgroundText"},{default:n.withCtx(()=>t[46]||(t[46]=[n.createTextVNode("Outlines display")])),_:1}),n.createVNode(w,{class:"backgroundControl"},{default:n.withCtx(()=>[n.createVNode(O,{modelValue:e.outlinesRadio,"onUpdate:modelValue":t[24]||(t[24]=I=>e.outlinesRadio=I),class:"flatmap-radio",onChange:r.setOutlines},{default:n.withCtx(()=>[n.createVNode(E,{value:!0},{default:n.withCtx(()=>t[47]||(t[47]=[n.createTextVNode("Show")])),_:1}),n.createVNode(E,{value:!1},{default:n.withCtx(()=>t[48]||(t[48]=[n.createTextVNode("Hide")])),_:1})]),_:1},8,["modelValue","onChange"])]),_:1}),n.createVNode(w,{class:"backgroundSpacer"}),n.createVNode(w,{class:"backgroundText"},{default:n.withCtx(()=>t[49]||(t[49]=[n.createTextVNode("Change background")])),_:1}),n.createVNode(w,{class:"backgroundControl"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.availableBackground,I=>(n.openBlock(),n.createElementBlock("div",{key:I,class:n.normalizeClass(["backgroundChoice",I,I==e.currentBackground?"active":""]),onClick:L=>r.backgroundChangeCallback(I)},null,10,Qy))),128))]),_:1})])]),_:1},8,["virtual-ref"]),n.withDirectives(n.createElementVNode("div",{class:n.normalizeClass(["settings-group",{open:e.drawerOpen,close:!e.drawerOpen}])},[o.showOpenMapButton?(n.openBlock(),n.createBlock(w,{key:0},{default:n.withCtx(()=>[n.createVNode(f,{visible:e.hoverVisibilities[4].value,content:"Open new map",placement:"right",teleported:!1,"popper-class":"flatmap-popper",ref:"openMapPopover"},{reference:n.withCtx(()=>[o.enableOpenMapUI&&o.openMapOptions.length>0?(n.openBlock(),n.createElementBlock("div",{key:0,ref:"openMapRef",class:"icon-button-container",onMouseover:t[25]||(t[25]=I=>r.showTooltip(4)),onMouseout:t[26]||(t[26]=I=>r.hideTooltip(4))},[n.createVNode(y,{icon:"openMap",class:"icon-button open-map-button"})],544)):n.createCommentVNode("",!0)]),_:1},8,["visible"])]),_:1})):n.createCommentVNode("",!0),o.showLocalSettings?(n.openBlock(),n.createBlock(w,{key:1},{default:n.withCtx(()=>[n.createVNode(f,{content:"Change settings",placement:"right",visible:e.hoverVisibilities[5].value,teleported:!1,trigger:"manual","popper-class":"flatmap-popper",ref:"settingsPopover"},{reference:n.withCtx(()=>[n.createElementVNode("div",{ref:"backgroundIconRef",class:"icon-button-container",onMouseover:t[27]||(t[27]=I=>r.showTooltip(5)),onMouseout:t[28]||(t[28]=I=>r.hideTooltip(5))},[n.createVNode(y,{icon:"changeBckgd",class:"icon-button"})],544)]),_:1},8,["visible"])]),_:1})):n.createCommentVNode("",!0)],2),[[n.vShow,!o.disableUI]]),e.tooltipDisplay?(n.openBlock(),n.createBlock(B,{key:4,ref:"tooltip",class:"tooltip",annotationEntry:e.annotationEntry,tooltipEntry:e.tooltipEntry,annotationDisplay:e.viewingMode==="Annotation",onAnnotation:r.commitAnnotationEvent,onOnActionClick:r.onActionClick},null,8,["annotationEntry","tooltipEntry","annotationDisplay","onAnnotation","onOnActionClick"])):n.createCommentVNode("",!0)])])),[[x,e.loading]])}const hi=st(zy,[["render",Xy],["__scopeId","data-v-2dbeeff5"]]),Ss={"NCBITaxon:10114":"01fedbf9-d783-509c-a10c-827941ab13da","NCBITaxon:9823":"a336ac04-24db-561f-a25f-1c994fe17410","NCBITaxon:9606":"42ed6323-f645-5fbe-bada-9581819cf689","NCBITaxon:10090":"25285fab-48a0-5620-a6a0-f9a0374837d5","NCBITaxon:9685":"73060497-46a6-52bf-b975-cac511c127cb"},eb={name:"MultiFlatmapVuer",components:{Col:nn,Row:tn,Option:ri,Select:Un,Popover:on,FlatmapVuer:hi,FlatmapError:Gn},created:function(){this.loadMapManager()},mounted:function(){this.initialise(),pi.on("onActionClick",e=>{this.resourceSelected(e)}),pi.on("open-pubmed-url",e=>{this.$emit("open-pubmed-url",e)})},methods:{initialise:function(){return this.multiflatmapError=null,new Promise(e=>{if(this.requireInitialisation){this.requireInitialisation=!1;const t=new AbortController,o=t.signal,i=setTimeout(()=>t.abort(),5e3);fetch(this.flatmapAPI,{signal:o}).then(a=>{if(!a.ok){if(a.status===404)return this.multiflatmapError={},this.multiflatmapError.title="MultiFlatmap Error!",this.multiflatmapError.messages=[`Sorry, the component could not be loaded because the specified
|
|
29
29
|
flatmap API endpoint is incorrect. Please check the endpoint URL
|
|
30
30
|
or contact support if the problem persists.`],this.initialised=!0,e(),this.resolveList.forEach(r=>r()),Promise.reject({handled:!0});throw new Error(`HTTP ${a.status}: ${a.statusText}`)}return a.json()}).then(a=>{if(a&&a.status_code===404){console.error("Flatmap API endpoint is incorrect",a),this.multiflatmapError={},this.multiflatmapError.title="MultiFlatmap Error!",this.multiflatmapError.messages=[`Sorry, the component could not be loaded because the specified
|
|
31
31
|
flatmap API endpoint is incorrect. Please check the endpoint URL
|
|
32
32
|
or contact support if the problem persists.`],this.initialised=!0,e(),this.resolveList.forEach(s=>s());return}Object.keys(this.availableSpecies).forEach(s=>{const l=this.availableSpecies[s].uuid;if(l&&a.length&&a.map(c=>c.uuid).indexOf(l)>0)this.speciesList[s]=this.availableSpecies[s];else for(let c=0;c<a.length;c++)if(this.availableSpecies[s].taxo===a[c].taxon)if(this.availableSpecies[s].biologicalSex){if(a[c].biologicalSex&&a[c].biologicalSex===this.availableSpecies[s].biologicalSex){this.speciesList[s]=this.availableSpecies[s];break}}else{this.speciesList[s]=this.availableSpecies[s];break}});let r=this.initial;if(this.state){const s=this.state.state;(!s||!s.uuid&&!s.entry)&&this.state.species?r=this.state.species:r=void 0}r&&(r&&this.speciesList[r]!==void 0?this.activeSpecies=r:this.activeSpecies=Object.keys(this.speciesList)[0],this.setSpecies(this.activeSpecies,this.state?this.state.state:void 0,5)),this.initialised=!0,e(),this.resolveList.forEach(s=>{s()})}).catch(a=>{a&&a.handled||(console.error("Error fetching flatmap:",a),this.initialised=!0,this.multiflatmapError={},this.multiflatmapError.title="MultiFlatmap Error!",this.multiflatmapError.messages=[`Sorry, the component could not be loaded due to an unexpected error.
|
|
33
|
-
Please try again later or contact support if the problem persists.`],e(),this.resolveList.forEach(r=>{r()}))}).finally(()=>{clearTimeout(i)})}else this.initialised?e():this.resolveList.push(e)})},loadMapManager:function(){this.mapManagerRef||(this.mapManager?this.mapManagerRef=this.mapManager:(this.mapManagerRef=n.markRaw(new vi.MapViewer(this.flatmapAPI,{container:void 0})),this.$emit("mapmanager-loaded",this.mapManagerRef)))},resourceSelected:function(e){this.$emit("resource-selected",e)},onContextRestored:function(e){this.$emit("context-restored",e)},FlatmapReady:function(e){this.$emit("ready",e)},getCurrentFlatmap:function(){return this.$refs[this.activeSpecies][0]},panZoomCallback:function(e){this.$emit("pan-zoom-callback",e)},onAnnotationClose:function(){this.$emit("annotation-close")},onAnnotationOpen:function(e){this.$emit("annotation-open",e)},updateOfflineAnnotationEnabled:function(e){this.$emit("update-offline-annotation-enabled",e)},onConnectivityInfoClose:function(){this.$emit("connectivity-info-close")},onConnectivityInfoOpen:function(e){this.$emit("connectivity-info-open",e)},onConnectivityError:function(e){this.$emit("connectivity-error",e)},onNeuronConnectionFeatureClick:function(e){this.$emit("neuron-connection-feature-click",e)},onSelectionsDataChanged:function(e){this.$emit("pathway-selection-changed",e)},showPopup:function(e,t,o){this.getCurrentFlatmap().showPopup(e,t,o)},showMarkerPopup:function(e,t,o){this.getCurrentFlatmap().showMarkerPopup(e,t,o)},setSpecies:function(e,t,o){if(this.$refs&&e in this.$refs)this.activeSpecies=e,this.$refs[this.activeSpecies][0].createFlatmap(t),this.$emit("flatmapChanged",this.activeSpecies);else if(o){const i=o-1;i>=0&&this.$nextTick(()=>{this.setSpecies(e,t,i)})}},viewLatestMap:function(e){const t=Object.keys(this.speciesList);for(let o=0;o<t.length;o++){const i=this.speciesList[t[o]];if(!i.isLegacy&&i.taxo===e.entry&&i.biologicalSex===e.biologicalSex){this.setSpecies(t[o],e,0);return}}},createLegacyEntry:function(e,t,o){if(o&&t){let i="Legacy";return e.species&&(e.species.slice(0,6)==="Legacy"?i=e.species:i=i+` ${e.species}`),this.speciesList[i]={taxo:t,isLegacy:!0,displayWarning:!0},{species:i,state:{entry:t,uuid:o,viewport:e.state.viewport,searchTerm:e.state.searchTerm}}}},updateState:function(e){return new Promise(t=>{if(e&&e.state){const o=e.state;if(o.uuid){if(o.entry)return new Promise(()=>{const i={taxon:o.entry};o.biologicalSex&&(i.biologicalSex=o.biologicalSex),this.mapManagerRef.findMap(i).then(a=>{if(a.uuid!==o.uuid)return this.createLegacyEntry(e,o.entry,o.uuid)}).then(a=>{t(a||e)}).catch(()=>{t(e)})})}else if(o.entry){const i=o.entry in
|
|
33
|
+
Please try again later or contact support if the problem persists.`],e(),this.resolveList.forEach(r=>{r()}))}).finally(()=>{clearTimeout(i)})}else this.initialised?e():this.resolveList.push(e)})},loadMapManager:function(){this.mapManagerRef||(this.mapManager?this.mapManagerRef=this.mapManager:(this.mapManagerRef=n.markRaw(new vi.MapViewer(this.flatmapAPI,{container:void 0})),this.$emit("mapmanager-loaded",this.mapManagerRef)))},resourceSelected:function(e){this.$emit("resource-selected",e)},onContextRestored:function(e){this.$emit("context-restored",e)},FlatmapReady:function(e){this.$emit("ready",e)},getCurrentFlatmap:function(){return this.$refs[this.activeSpecies][0]},panZoomCallback:function(e){this.$emit("pan-zoom-callback",e)},onAnnotationClose:function(){this.$emit("annotation-close")},onAnnotationOpen:function(e){this.$emit("annotation-open",e)},updateOfflineAnnotationEnabled:function(e){this.$emit("update-offline-annotation-enabled",e)},onConnectivityInfoClose:function(){this.$emit("connectivity-info-close")},onConnectivityInfoOpen:function(e){this.$emit("connectivity-info-open",e)},onConnectivityError:function(e){this.$emit("connectivity-error",e)},onNeuronConnectionFeatureClick:function(e){this.$emit("neuron-connection-feature-click",e)},onSelectionsDataChanged:function(e){this.$emit("pathway-selection-changed",e)},showPopup:function(e,t,o){this.getCurrentFlatmap().showPopup(e,t,o)},showMarkerPopup:function(e,t,o){this.getCurrentFlatmap().showMarkerPopup(e,t,o)},setSpecies:function(e,t,o){if(this.$refs&&e in this.$refs)this.activeSpecies=e,this.$refs[this.activeSpecies][0].createFlatmap(t),this.$emit("flatmapChanged",this.activeSpecies);else if(o){const i=o-1;i>=0&&this.$nextTick(()=>{this.setSpecies(e,t,i)})}},viewLatestMap:function(e){const t=Object.keys(this.speciesList);for(let o=0;o<t.length;o++){const i=this.speciesList[t[o]];if(!i.isLegacy&&i.taxo===e.entry&&i.biologicalSex===e.biologicalSex){this.setSpecies(t[o],e,0);return}}},createLegacyEntry:function(e,t,o){if(o&&t){let i="Legacy";return e.species&&(e.species.slice(0,6)==="Legacy"?i=e.species:i=i+` ${e.species}`),this.speciesList[i]={taxo:t,isLegacy:!0,displayWarning:!0},{species:i,state:{entry:t,uuid:o,viewport:e.state.viewport,searchTerm:e.state.searchTerm}}}},updateState:function(e){return new Promise(t=>{if(e&&e.state){const o=e.state;if(o.uuid){if(o.entry)return new Promise(()=>{const i={taxon:o.entry};o.biologicalSex&&(i.biologicalSex=o.biologicalSex),this.mapManagerRef.findMap(i).then(a=>{if(a.uuid!==o.uuid)return this.createLegacyEntry(e,o.entry,o.uuid)}).then(a=>{t(a||e)}).catch(()=>{t(e)})})}else if(o.entry){const i=o.entry in Ss?Ss[o.entry]:void 0,a=this.createLegacyEntry(e,o.entry,i);t(a||e)}}t(e)})},getState:function(){let e={species:this.activeSpecies,state:void 0},t=this.getCurrentFlatmap();return e.state=t.getState(),e},setState:function(e){e&&(this.loadMapManager(),this.updateState(e).then(t=>{this.initialise().then(()=>{t.species&&t.species!==this.activeSpecies?this.setSpecies(t.species,t.state,5):t.state&&this.getCurrentFlatmap().setState(t.state)})}))},activateTooltipByIndex:function(e){return e===this.helpModeActiveItem&&this.helpMode},onHelpModeLastItem:function(e){e&&this.$emit("help-mode-last-item",!0)},onTooltipShown:function(){this.$emit("shown-tooltip")},onMapTooltipShown:function(){this.$emit("shown-map-tooltip")},changeViewingMode:function(e){this.getCurrentFlatmap().changeViewingMode(e)},setConnectionType:function(e){this.getCurrentFlatmap().setConnectionType(e)}},props:{initial:{type:String,default:""},minZoom:{type:Number,default:1},renderAtMounted:{type:Boolean,default:!1},render:{type:Boolean,default:!0},helpMode:{type:Boolean,default:!1},helpModeActiveItem:{type:Number,default:0},helpModeDialog:{type:Boolean,default:!1},helpModeLastItem:{type:Boolean,default:!1},displayMinimap:{type:Boolean,default:!1},showStarInLegend:{type:Boolean,default:!1},enableOpenMapUI:{type:Boolean,default:!1},openMapOptions:{type:Array},availableSpecies:{type:Object,default:function(){return{"Human Female":{taxo:"NCBITaxon:9606",biologicalSex:"PATO:0000383",iconClass:"mapicon-icon_human",displayWarning:!0},"Human Male":{taxo:"NCBITaxon:9606",biologicalSex:"PATO:0000384",iconClass:"mapicon-icon_human",displayWarning:!0},Rat:{taxo:"NCBITaxon:10114",iconClass:"mapicon-icon_rat",displayLatestChanges:!0},Mouse:{taxo:"NCBITaxon:10090",iconClass:"mapicon-icon_mouse",displayWarning:!0},Pig:{taxo:"NCBITaxon:9823",iconClass:"mapicon-icon_pig",displayWarning:!0},Cat:{taxo:"NCBITaxon:9685",iconClass:"mapicon-icon_cat",displayWarning:!0}}}},state:{type:Object,default:void 0},mapManager:{type:Object,default:void 0},flatmapAPI:{type:String,default:"https://mapcore-demo.org/current/flatmap/v3/"},sparcAPI:{type:String,default:"https://api.sparc.science/"},disableUI:{type:Boolean,default:!1},connectivityInfoSidebar:{type:Boolean,default:!1},annotationSidebar:{type:Boolean,default:!1},showLocalSettings:{type:Boolean,default:!0},showOpenMapButton:{type:Boolean,default:!0},showPathwayFilter:{type:Boolean,default:!0},externalLegends:{type:Array,default:function(){return[]}}},data:function(){return{activeSpecies:void 0,speciesList:{},requireInitialisation:!0,resolveList:n.markRaw([]),initialised:!1,mapManagerRef:void 0,multiflatmapError:null}},watch:{state:{handler:function(e){this.setState(e)},immediate:!0,deep:!0},activeSpecies:{handler:function(e,t){t&&this.$refs[t][0].forceContextLoss()}}}},tb={class:"multi-container",ref:"multiContainer"},nb={key:0,style:{position:"absolute","z-index":"100"}},ob={class:"select-box-icon"};function ib(e,t,o,i,a,r){const s=ri,l=Un,c=on,d=hi,f=Gn;return n.openBlock(),n.createElementBlock("div",tb,[o.disableUI?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",nb,[t[2]||(t[2]=n.createElementVNode("div",{class:"species-display-text"},"Species",-1)),n.createVNode(c,{content:"Select a species",placement:"right",trigger:"manual","popper-class":"flatmap-popper flatmap-teleport-popper right-popper",width:"max-content",visible:r.activateTooltipByIndex(0),teleported:!1,ref:"selectPopover"},{reference:n.withCtx(()=>[n.createVNode(l,{id:"flatmap-select",teleported:!1,modelValue:e.activeSpecies,"onUpdate:modelValue":t[0]||(t[0]=u=>e.activeSpecies=u),placeholder:"Select",class:"select-box","popper-class":"flatmap-dropdown",onChange:r.setSpecies},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.speciesList,(u,p)=>(n.openBlock(),n.createBlock(s,{key:p,label:p,value:p},{default:n.withCtx(()=>[n.createElementVNode("span",ob,[n.createElementVNode("i",{class:n.normalizeClass(u.iconClass)},null,2)]),n.createTextVNode(" "+n.toDisplayString(p),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1},8,["visible"])])),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.speciesList,(u,p)=>n.withDirectives((n.openBlock(),n.createBlock(d,{key:p,entry:u.taxo,uuid:u.uuid,biologicalSex:u.biologicalSex,displayWarning:u.displayWarning,displayLatestChanges:u.displayLatestChanges,isLegacy:u.isLegacy,ref_for:!0,ref:p,enableOpenMapUI:o.enableOpenMapUI,openMapOptions:o.openMapOptions,disableUI:o.disableUI,onContextRestored:r.onContextRestored,onViewLatestMap:r.viewLatestMap,onResourceSelected:r.resourceSelected,onReady:r.FlatmapReady,onPanZoomCallback:r.panZoomCallback,annotationSidebar:o.annotationSidebar,onAnnotationOpen:r.onAnnotationOpen,onAnnotationClose:r.onAnnotationClose,onUpdateOfflineAnnotationEnabled:r.updateOfflineAnnotationEnabled,connectivityInfoSidebar:o.connectivityInfoSidebar,onConnectivityInfoOpen:r.onConnectivityInfoOpen,onConnectivityInfoClose:r.onConnectivityInfoClose,onConnectivityError:r.onConnectivityError,onNeuronConnectionFeatureClick:r.onNeuronConnectionFeatureClick,onOpenMap:t[1]||(t[1]=g=>e.$emit("open-map",g)),onPathwaySelectionChanged:r.onSelectionsDataChanged,minZoom:o.minZoom,helpMode:e.activeSpecies==p&&o.helpMode,helpModeActiveItem:o.helpModeActiveItem,helpModeDialog:o.helpModeDialog,helpModeInitialIndex:-2,onHelpModeLastItem:r.onHelpModeLastItem,onShownTooltip:r.onTooltipShown,onShownMapTooltip:r.onMapTooltipShown,renderAtMounted:o.renderAtMounted,render:o.render&&e.activeSpecies==p,displayMinimap:o.displayMinimap,showStarInLegend:o.showStarInLegend,style:{height:"100%"},mapManager:e.mapManagerRef,flatmapAPI:o.flatmapAPI,sparcAPI:o.sparcAPI,showLocalSettings:o.showLocalSettings,showOpenMapButton:o.showOpenMapButton,showPathwayFilter:o.showPathwayFilter,externalLegends:o.externalLegends},null,8,["entry","uuid","biologicalSex","displayWarning","displayLatestChanges","isLegacy","enableOpenMapUI","openMapOptions","disableUI","onContextRestored","onViewLatestMap","onResourceSelected","onReady","onPanZoomCallback","annotationSidebar","onAnnotationOpen","onAnnotationClose","onUpdateOfflineAnnotationEnabled","connectivityInfoSidebar","onConnectivityInfoOpen","onConnectivityInfoClose","onConnectivityError","onNeuronConnectionFeatureClick","onPathwaySelectionChanged","minZoom","helpMode","helpModeActiveItem","helpModeDialog","onHelpModeLastItem","onShownTooltip","onShownMapTooltip","renderAtMounted","render","displayMinimap","showStarInLegend","mapManager","flatmapAPI","sparcAPI","showLocalSettings","showOpenMapButton","showPathwayFilter","externalLegends"])),[[n.vShow,e.activeSpecies==p]])),128)),e.multiflatmapError?(n.openBlock(),n.createBlock(f,{key:1,flatmapError:e.multiflatmapError},null,8,["flatmapError"])):n.createCommentVNode("",!0)],512)}const ab=st(eb,[["render",ib],["__scopeId","data-v-1d2454a8"]]);z.FlatmapQueries=gs,z.FlatmapVuer=hi,z.MultiFlatmapVuer=ab,z.getKnowledgeSource=Jn,z.getKnowledgeSourceFromProvenance=ys,z.loadAndStoreKnowledge=bs,Object.defineProperty(z,Symbol.toStringTag,{value:"Module"})});
|